diff --git a/src/promptflow-devkit/CHANGELOG.md b/src/promptflow-devkit/CHANGELOG.md index fba3eb5eb3d..e4a58352f59 100644 --- a/src/promptflow-devkit/CHANGELOG.md +++ b/src/promptflow-devkit/CHANGELOG.md @@ -1,5 +1,9 @@ # promptflow-devkit package +## v1.15.0 (Upcoming) +### Bugs fixed +- Fixed trace view can't display boolean output (#3613) + ## v1.14.0 (2024.07.25) ### Improvements - Add `promptflow` to dockerfile when build flow with `python_requirements_txt` incase promptflow not exists in custom requirements. diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/icon-oxB8RKmI.svg b/src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/icon-IVYk8x5p.svg similarity index 100% rename from src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/icon-oxB8RKmI.svg rename to src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/icon-IVYk8x5p.svg diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/icon_for_dark-7fdboOJT.svg b/src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/icon_for_dark-3C8HbOu4.svg similarity index 100% rename from src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/icon_for_dark-7fdboOJT.svg rename to src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/icon_for_dark-3C8HbOu4.svg diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/index-uhZP70pN.js b/src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/index-Gv8oRpaG.js similarity index 93% rename from src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/index-uhZP70pN.js rename to src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/index-Gv8oRpaG.js index 273477d4e2d..f1f9e00cfd1 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/index-uhZP70pN.js +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/trace/assets/index-Gv8oRpaG.js @@ -23,7 +23,7 @@ var KXt=Object.defineProperty;var YXt=(eo,to,no)=>to in eo?KXt(eo,to,{enumerable * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(eo){function to(gs,ys){var vs=gs.length;gs.push(ys);e:for(;0>>1,Os=gs[ks];if(0>>1;ksso(Ws,vs))Psso(qs,Ws)?(gs[ks]=qs,gs[Ps]=vs,ks=Ps):(gs[ks]=Ws,gs[Xs]=vs,ks=Xs);else if(Psso(qs,vs))gs[ks]=qs,gs[Ps]=vs,ks=Ps;else break e}}return ys}function so(gs,ys){var vs=gs.sortIndex-ys.sortIndex;return vs!==0?vs:gs.id-ys.id}if(typeof performance=="object"&&typeof performance.now=="function"){var ao=performance;eo.unstable_now=function(){return ao.now()}}else{var lo=Date,uo=lo.now();eo.unstable_now=function(){return lo.now()-uo}}var ho=[],go=[],mo=1,yo=null,So=3,_o=!1,ko=!1,Co=!1,$o=typeof setTimeout=="function"?setTimeout:null,Ro=typeof clearTimeout=="function"?clearTimeout:null,Oo=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function No(gs){for(var ys=no(go);ys!==null;){if(ys.callback===null)io(go);else if(ys.startTime<=gs)io(go),ys.sortIndex=ys.expirationTime,to(ho,ys);else break;ys=no(go)}}function Mo(gs){if(Co=!1,No(gs),!ko)if(no(ho)!==null)ko=!0,Qo(Bo);else{var ys=no(go);ys!==null&&hs(Mo,ys.startTime-gs)}}function Bo(gs,ys){ko=!1,Co&&(Co=!1,Ro(Go),Go=-1),_o=!0;var vs=So;try{for(No(ys),yo=no(ho);yo!==null&&(!(yo.expirationTime>ys)||gs&&!Ho());){var ks=yo.callback;if(typeof ks=="function"){yo.callback=null,So=yo.priorityLevel;var Os=ks(yo.expirationTime<=ys);ys=eo.unstable_now(),typeof Os=="function"?yo.callback=Os:yo===no(ho)&&io(ho),No(ys)}else io(ho);yo=no(ho)}if(yo!==null)var Ts=!0;else{var Xs=no(go);Xs!==null&&hs(Mo,Xs.startTime-ys),Ts=!1}return Ts}finally{yo=null,So=vs,_o=!1}}var Po=!1,Lo=null,Go=-1,Do=5,Uo=-1;function Ho(){return!(eo.unstable_now()-Uogs||125ks?(gs.sortIndex=vs,to(go,gs),no(ho)===null&&gs===no(go)&&(Co?(Ro(Go),Go=-1):Co=!0,hs(Mo,vs-ks))):(gs.sortIndex=Os,to(ho,gs),ko||_o||(ko=!0,Qo(Bo))),gs},eo.unstable_shouldYield=Ho,eo.unstable_wrapCallback=function(gs){var ys=So;return function(){var vs=So;So=ys;try{return gs.apply(this,arguments)}finally{So=vs}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + */(function(eo){function to(gs,ys){var vs=gs.length;gs.push(ys);e:for(;0>>1,Os=gs[ks];if(0>>1;ksso(Ws,vs))Psso(qs,Ws)?(gs[ks]=qs,gs[Ps]=vs,ks=Ps):(gs[ks]=Ws,gs[Xs]=vs,ks=Xs);else if(Psso(qs,vs))gs[ks]=qs,gs[Ps]=vs,ks=Ps;else break e}}return ys}function so(gs,ys){var vs=gs.sortIndex-ys.sortIndex;return vs!==0?vs:gs.id-ys.id}if(typeof performance=="object"&&typeof performance.now=="function"){var ao=performance;eo.unstable_now=function(){return ao.now()}}else{var lo=Date,uo=lo.now();eo.unstable_now=function(){return lo.now()-uo}}var ho=[],go=[],mo=1,yo=null,So=3,_o=!1,ko=!1,Co=!1,$o=typeof setTimeout=="function"?setTimeout:null,Ro=typeof clearTimeout=="function"?clearTimeout:null,Oo=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function No(gs){for(var ys=no(go);ys!==null;){if(ys.callback===null)io(go);else if(ys.startTime<=gs)io(go),ys.sortIndex=ys.expirationTime,to(ho,ys);else break;ys=no(go)}}function Mo(gs){if(Co=!1,No(gs),!ko)if(no(ho)!==null)ko=!0,Qo(Bo);else{var ys=no(go);ys!==null&&hs(Mo,ys.startTime-gs)}}function Bo(gs,ys){ko=!1,Co&&(Co=!1,Ro(Go),Go=-1),_o=!0;var vs=So;try{for(No(ys),yo=no(ho);yo!==null&&(!(yo.expirationTime>ys)||gs&&!Ho());){var ks=yo.callback;if(typeof ks=="function"){yo.callback=null,So=yo.priorityLevel;var Os=ks(yo.expirationTime<=ys);ys=eo.unstable_now(),typeof Os=="function"?yo.callback=Os:yo===no(ho)&&io(ho),No(ys)}else io(ho);yo=no(ho)}if(yo!==null)var Ts=!0;else{var Xs=no(go);Xs!==null&&hs(Mo,Xs.startTime-ys),Ts=!1}return Ts}finally{yo=null,So=vs,_o=!1}}var Fo=!1,Lo=null,Go=-1,Do=5,Uo=-1;function Ho(){return!(eo.unstable_now()-Uogs||125ks?(gs.sortIndex=vs,to(go,gs),no(ho)===null&&gs===no(go)&&(Co?(Ro(Go),Go=-1):Co=!0,hs(Mo,vs-ks))):(gs.sortIndex=Os,to(ho,gs),ko||_o||(ko=!0,Qo(Bo))),gs},eo.unstable_shouldYield=Ho,eo.unstable_wrapCallback=function(gs){var ys=So;return function(){var vs=So;So=ys;try{return gs.apply(this,arguments)}finally{So=vs}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** * @license React * react-dom.production.min.js * @@ -35,8 +35,8 @@ var KXt=Object.defineProperty;var YXt=(eo,to,no)=>to in eo?KXt(eo,to,{enumerable `+La+eo}var Na=!1;function Oa(eo,to){if(!eo||Na)return"";Na=!0;var no=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(to)if(to=function(){throw Error()},Object.defineProperty(to.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(to,[])}catch(go){var io=go}Reflect.construct(eo,[],to)}else{try{to.call()}catch(go){io=go}eo.call(to.prototype)}else{try{throw Error()}catch(go){io=go}eo()}}catch(go){if(go&&io&&typeof go.stack=="string"){for(var so=go.stack.split(` `),ao=io.stack.split(` `),lo=so.length-1,uo=ao.length-1;1<=lo&&0<=uo&&so[lo]!==ao[uo];)uo--;for(;1<=lo&&0<=uo;lo--,uo--)if(so[lo]!==ao[uo]){if(lo!==1||uo!==1)do if(lo--,uo--,0>uo||so[lo]!==ao[uo]){var ho=` -`+so[lo].replace(" at new "," at ");return eo.displayName&&ho.includes("")&&(ho=ho.replace("",eo.displayName)),ho}while(1<=lo&&0<=uo);break}}}finally{Na=!1,Error.prepareStackTrace=no}return(eo=eo?eo.displayName||eo.name:"")?Ma(eo):""}function Pa(eo){switch(eo.tag){case 5:return Ma(eo.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return eo=Oa(eo.type,!1),eo;case 11:return eo=Oa(eo.type.render,!1),eo;case 1:return eo=Oa(eo.type,!0),eo;default:return""}}function Qa(eo){if(eo==null)return null;if(typeof eo=="function")return eo.displayName||eo.name||null;if(typeof eo=="string")return eo;switch(eo){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof eo=="object")switch(eo.$$typeof){case Ca:return(eo.displayName||"Context")+".Consumer";case Ba:return(eo._context.displayName||"Context")+".Provider";case Da:var to=eo.render;return eo=eo.displayName,eo||(eo=to.displayName||to.name||"",eo=eo!==""?"ForwardRef("+eo+")":"ForwardRef"),eo;case Ga:return to=eo.displayName||null,to!==null?to:Qa(eo.type)||"Memo";case Ha:to=eo._payload,eo=eo._init;try{return Qa(eo(to))}catch{}}return null}function Ra(eo){var to=eo.type;switch(eo.tag){case 24:return"Cache";case 9:return(to.displayName||"Context")+".Consumer";case 10:return(to._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return eo=to.render,eo=eo.displayName||eo.name||"",to.displayName||(eo!==""?"ForwardRef("+eo+")":"ForwardRef");case 7:return"Fragment";case 5:return to;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(to);case 8:return to===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof to=="function")return to.displayName||to.name||null;if(typeof to=="string")return to}return null}function Sa(eo){switch(typeof eo){case"boolean":case"number":case"string":case"undefined":return eo;case"object":return eo;default:return""}}function Ta(eo){var to=eo.type;return(eo=eo.nodeName)&&eo.toLowerCase()==="input"&&(to==="checkbox"||to==="radio")}function Ua(eo){var to=Ta(eo)?"checked":"value",no=Object.getOwnPropertyDescriptor(eo.constructor.prototype,to),io=""+eo[to];if(!eo.hasOwnProperty(to)&&typeof no<"u"&&typeof no.get=="function"&&typeof no.set=="function"){var so=no.get,ao=no.set;return Object.defineProperty(eo,to,{configurable:!0,get:function(){return so.call(this)},set:function(lo){io=""+lo,ao.call(this,lo)}}),Object.defineProperty(eo,to,{enumerable:no.enumerable}),{getValue:function(){return io},setValue:function(lo){io=""+lo},stopTracking:function(){eo._valueTracker=null,delete eo[to]}}}}function Va(eo){eo._valueTracker||(eo._valueTracker=Ua(eo))}function Wa(eo){if(!eo)return!1;var to=eo._valueTracker;if(!to)return!0;var no=to.getValue(),io="";return eo&&(io=Ta(eo)?eo.checked?"true":"false":eo.value),eo=io,eo!==no?(to.setValue(eo),!0):!1}function Xa(eo){if(eo=eo||(typeof document<"u"?document:void 0),typeof eo>"u")return null;try{return eo.activeElement||eo.body}catch{return eo.body}}function Ya(eo,to){var no=to.checked;return A$6({},to,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:no??eo._wrapperState.initialChecked})}function Za(eo,to){var no=to.defaultValue==null?"":to.defaultValue,io=to.checked!=null?to.checked:to.defaultChecked;no=Sa(to.value!=null?to.value:no),eo._wrapperState={initialChecked:io,initialValue:no,controlled:to.type==="checkbox"||to.type==="radio"?to.checked!=null:to.value!=null}}function ab(eo,to){to=to.checked,to!=null&&ta(eo,"checked",to,!1)}function bb(eo,to){ab(eo,to);var no=Sa(to.value),io=to.type;if(no!=null)io==="number"?(no===0&&eo.value===""||eo.value!=no)&&(eo.value=""+no):eo.value!==""+no&&(eo.value=""+no);else if(io==="submit"||io==="reset"){eo.removeAttribute("value");return}to.hasOwnProperty("value")?cb(eo,to.type,no):to.hasOwnProperty("defaultValue")&&cb(eo,to.type,Sa(to.defaultValue)),to.checked==null&&to.defaultChecked!=null&&(eo.defaultChecked=!!to.defaultChecked)}function db$g(eo,to,no){if(to.hasOwnProperty("value")||to.hasOwnProperty("defaultValue")){var io=to.type;if(!(io!=="submit"&&io!=="reset"||to.value!==void 0&&to.value!==null))return;to=""+eo._wrapperState.initialValue,no||to===eo.value||(eo.value=to),eo.defaultValue=to}no=eo.name,no!==""&&(eo.name=""),eo.defaultChecked=!!eo._wrapperState.initialChecked,no!==""&&(eo.name=no)}function cb(eo,to,no){(to!=="number"||Xa(eo.ownerDocument)!==eo)&&(no==null?eo.defaultValue=""+eo._wrapperState.initialValue:eo.defaultValue!==""+no&&(eo.defaultValue=""+no))}var eb=Array.isArray;function fb(eo,to,no,io){if(eo=eo.options,to){to={};for(var so=0;so"+to.valueOf().toString()+"",to=mb.firstChild;eo.firstChild;)eo.removeChild(eo.firstChild);for(;to.firstChild;)eo.appendChild(to.firstChild)}});function ob(eo,to){if(to){var no=eo.firstChild;if(no&&no===eo.lastChild&&no.nodeType===3){no.nodeValue=to;return}}eo.textContent=to}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(eo){qb.forEach(function(to){to=to+eo.charAt(0).toUpperCase()+eo.substring(1),pb[to]=pb[eo]})});function rb(eo,to,no){return to==null||typeof to=="boolean"||to===""?"":no||typeof to!="number"||to===0||pb.hasOwnProperty(eo)&&pb[eo]?(""+to).trim():to+"px"}function sb(eo,to){eo=eo.style;for(var no in to)if(to.hasOwnProperty(no)){var io=no.indexOf("--")===0,so=rb(no,to[no],io);no==="float"&&(no="cssFloat"),io?eo.setProperty(no,so):eo[no]=so}}var tb=A$6({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(eo,to){if(to){if(tb[eo]&&(to.children!=null||to.dangerouslySetInnerHTML!=null))throw Error(p$a(137,eo));if(to.dangerouslySetInnerHTML!=null){if(to.children!=null)throw Error(p$a(60));if(typeof to.dangerouslySetInnerHTML!="object"||!("__html"in to.dangerouslySetInnerHTML))throw Error(p$a(61))}if(to.style!=null&&typeof to.style!="object")throw Error(p$a(62))}}function vb(eo,to){if(eo.indexOf("-")===-1)return typeof to.is=="string";switch(eo){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(eo){return eo=eo.target||eo.srcElement||window,eo.correspondingUseElement&&(eo=eo.correspondingUseElement),eo.nodeType===3?eo.parentNode:eo}var yb=null,zb=null,Ab=null;function Bb(eo){if(eo=Cb(eo)){if(typeof yb!="function")throw Error(p$a(280));var to=eo.stateNode;to&&(to=Db(to),yb(eo.stateNode,eo.type,to))}}function Eb(eo){zb?Ab?Ab.push(eo):Ab=[eo]:zb=eo}function Fb(){if(zb){var eo=zb,to=Ab;if(Ab=zb=null,Bb(eo),to)for(eo=0;eo>>=0,eo===0?32:31-(pc(eo)/qc|0)|0}var rc=64,sc=4194304;function tc(eo){switch(eo&-eo){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return eo&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return eo&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return eo}}function uc(eo,to){var no=eo.pendingLanes;if(no===0)return 0;var io=0,so=eo.suspendedLanes,ao=eo.pingedLanes,lo=no&268435455;if(lo!==0){var uo=lo&~so;uo!==0?io=tc(uo):(ao&=lo,ao!==0&&(io=tc(ao)))}else lo=no&~so,lo!==0?io=tc(lo):ao!==0&&(io=tc(ao));if(io===0)return 0;if(to!==0&&to!==io&&!(to&so)&&(so=io&-io,ao=to&-to,so>=ao||so===16&&(ao&4194240)!==0))return to;if(io&4&&(io|=no&16),to=eo.entangledLanes,to!==0)for(eo=eo.entanglements,to&=io;0no;no++)to.push(eo);return to}function Ac(eo,to,no){eo.pendingLanes|=to,to!==536870912&&(eo.suspendedLanes=0,eo.pingedLanes=0),eo=eo.eventTimes,to=31-oc(to),eo[to]=no}function Bc(eo,to){var no=eo.pendingLanes&~to;eo.pendingLanes=to,eo.suspendedLanes=0,eo.pingedLanes=0,eo.expiredLanes&=to,eo.mutableReadLanes&=to,eo.entangledLanes&=to,to=eo.entanglements;var io=eo.eventTimes;for(eo=eo.expirationTimes;0=be$2),ee$2=" ",fe$2=!1;function ge$1(eo,to){switch(eo){case"keyup":return $d.indexOf(to.keyCode)!==-1;case"keydown":return to.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$2(eo){return eo=eo.detail,typeof eo=="object"&&"data"in eo?eo.data:null}var ie$4=!1;function je$1(eo,to){switch(eo){case"compositionend":return he$2(to);case"keypress":return to.which!==32?null:(fe$2=!0,ee$2);case"textInput":return eo=to.data,eo===ee$2&&fe$2?null:eo;default:return null}}function ke$1(eo,to){if(ie$4)return eo==="compositionend"||!ae$2&&ge$1(eo,to)?(eo=nd(),md=ld=kd=null,ie$4=!1,eo):null;switch(eo){case"paste":return null;case"keypress":if(!(to.ctrlKey||to.altKey||to.metaKey)||to.ctrlKey&&to.altKey){if(to.char&&1=to)return{node:no,offset:to-eo};eo=io}e:{for(;no;){if(no.nextSibling){no=no.nextSibling;break e}no=no.parentNode}no=void 0}no=Je$1(no)}}function Le$1(eo,to){return eo&&to?eo===to?!0:eo&&eo.nodeType===3?!1:to&&to.nodeType===3?Le$1(eo,to.parentNode):"contains"in eo?eo.contains(to):eo.compareDocumentPosition?!!(eo.compareDocumentPosition(to)&16):!1:!1}function Me$2(){for(var eo=window,to=Xa();to instanceof eo.HTMLIFrameElement;){try{var no=typeof to.contentWindow.location.href=="string"}catch{no=!1}if(no)eo=to.contentWindow;else break;to=Xa(eo.document)}return to}function Ne$1(eo){var to=eo&&eo.nodeName&&eo.nodeName.toLowerCase();return to&&(to==="input"&&(eo.type==="text"||eo.type==="search"||eo.type==="tel"||eo.type==="url"||eo.type==="password")||to==="textarea"||eo.contentEditable==="true")}function Oe$2(eo){var to=Me$2(),no=eo.focusedElem,io=eo.selectionRange;if(to!==no&&no&&no.ownerDocument&&Le$1(no.ownerDocument.documentElement,no)){if(io!==null&&Ne$1(no)){if(to=io.start,eo=io.end,eo===void 0&&(eo=to),"selectionStart"in no)no.selectionStart=to,no.selectionEnd=Math.min(eo,no.value.length);else if(eo=(to=no.ownerDocument||document)&&to.defaultView||window,eo.getSelection){eo=eo.getSelection();var so=no.textContent.length,ao=Math.min(io.start,so);io=io.end===void 0?ao:Math.min(io.end,so),!eo.extend&&ao>io&&(so=io,io=ao,ao=so),so=Ke$1(no,ao);var lo=Ke$1(no,io);so&&lo&&(eo.rangeCount!==1||eo.anchorNode!==so.node||eo.anchorOffset!==so.offset||eo.focusNode!==lo.node||eo.focusOffset!==lo.offset)&&(to=to.createRange(),to.setStart(so.node,so.offset),eo.removeAllRanges(),ao>io?(eo.addRange(to),eo.extend(lo.node,lo.offset)):(to.setEnd(lo.node,lo.offset),eo.addRange(to)))}}for(to=[],eo=no;eo=eo.parentNode;)eo.nodeType===1&&to.push({element:eo,left:eo.scrollLeft,top:eo.scrollTop});for(typeof no.focus=="function"&&no.focus(),no=0;no=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(eo,to,no){var io=no.window===no?no.document:no.nodeType===9?no:no.ownerDocument;Te$1||Qe$1==null||Qe$1!==Xa(io)||(io=Qe$1,"selectionStart"in io&&Ne$1(io)?io={start:io.selectionStart,end:io.selectionEnd}:(io=(io.ownerDocument&&io.ownerDocument.defaultView||window).getSelection(),io={anchorNode:io.anchorNode,anchorOffset:io.anchorOffset,focusNode:io.focusNode,focusOffset:io.focusOffset}),Se$1&&Ie$1(Se$1,io)||(Se$1=io,io=oe$1(Re$1,"onSelect"),0Tf||(eo.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$1(eo,to){Tf++,Sf[Tf]=eo.current,eo.current=to}var Vf={},H$3=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(eo,to){var no=eo.type.contextTypes;if(!no)return Vf;var io=eo.stateNode;if(io&&io.__reactInternalMemoizedUnmaskedChildContext===to)return io.__reactInternalMemoizedMaskedChildContext;var so={},ao;for(ao in no)so[ao]=to[ao];return io&&(eo=eo.stateNode,eo.__reactInternalMemoizedUnmaskedChildContext=to,eo.__reactInternalMemoizedMaskedChildContext=so),so}function Zf(eo){return eo=eo.childContextTypes,eo!=null}function $f(){E$5(Wf),E$5(H$3)}function ag(eo,to,no){if(H$3.current!==Vf)throw Error(p$a(168));G$1(H$3,to),G$1(Wf,no)}function bg(eo,to,no){var io=eo.stateNode;if(to=to.childContextTypes,typeof io.getChildContext!="function")return no;io=io.getChildContext();for(var so in io)if(!(so in to))throw Error(p$a(108,Ra(eo)||"Unknown",so));return A$6({},no,io)}function cg(eo){return eo=(eo=eo.stateNode)&&eo.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$3.current,G$1(H$3,eo),G$1(Wf,Wf.current),!0}function dg(eo,to,no){var io=eo.stateNode;if(!io)throw Error(p$a(169));no?(eo=bg(eo,to,Xf),io.__reactInternalMemoizedMergedChildContext=eo,E$5(Wf),E$5(H$3),G$1(H$3,eo)):E$5(Wf),G$1(Wf,no)}var eg=null,fg=!1,gg=!1;function hg(eo){eg===null?eg=[eo]:eg.push(eo)}function ig(eo){fg=!0,hg(eo)}function jg(){if(!gg&&eg!==null){gg=!0;var eo=0,to=C$6;try{var no=eg;for(C$6=1;eo>=lo,so-=lo,rg=1<<32-oc(to)+so|no<Go?(Do=Lo,Lo=null):Do=Lo.sibling;var Uo=So(Ro,Lo,No[Go],Mo);if(Uo===null){Lo===null&&(Lo=Do);break}eo&&Lo&&Uo.alternate===null&&to(Ro,Lo),Oo=ao(Uo,Oo,Go),Po===null?Bo=Uo:Po.sibling=Uo,Po=Uo,Lo=Do}if(Go===No.length)return no(Ro,Lo),I$2&&tg(Ro,Go),Bo;if(Lo===null){for(;GoGo?(Do=Lo,Lo=null):Do=Lo.sibling;var Ho=So(Ro,Lo,Uo.value,Mo);if(Ho===null){Lo===null&&(Lo=Do);break}eo&&Lo&&Ho.alternate===null&&to(Ro,Lo),Oo=ao(Ho,Oo,Go),Po===null?Bo=Ho:Po.sibling=Ho,Po=Ho,Lo=Do}if(Uo.done)return no(Ro,Lo),I$2&&tg(Ro,Go),Bo;if(Lo===null){for(;!Uo.done;Go++,Uo=No.next())Uo=yo(Ro,Uo.value,Mo),Uo!==null&&(Oo=ao(Uo,Oo,Go),Po===null?Bo=Uo:Po.sibling=Uo,Po=Uo);return I$2&&tg(Ro,Go),Bo}for(Lo=io(Ro,Lo);!Uo.done;Go++,Uo=No.next())Uo=_o(Lo,Ro,Go,Uo.value,Mo),Uo!==null&&(eo&&Uo.alternate!==null&&Lo.delete(Uo.key===null?Go:Uo.key),Oo=ao(Uo,Oo,Go),Po===null?Bo=Uo:Po.sibling=Uo,Po=Uo);return eo&&Lo.forEach(function(Yo){return to(Ro,Yo)}),I$2&&tg(Ro,Go),Bo}function $o(Ro,Oo,No,Mo){if(typeof No=="object"&&No!==null&&No.type===ya&&No.key===null&&(No=No.props.children),typeof No=="object"&&No!==null){switch(No.$$typeof){case va:e:{for(var Bo=No.key,Po=Oo;Po!==null;){if(Po.key===Bo){if(Bo=No.type,Bo===ya){if(Po.tag===7){no(Ro,Po.sibling),Oo=so(Po,No.props.children),Oo.return=Ro,Ro=Oo;break e}}else if(Po.elementType===Bo||typeof Bo=="object"&&Bo!==null&&Bo.$$typeof===Ha&&uh(Bo)===Po.type){no(Ro,Po.sibling),Oo=so(Po,No.props),Oo.ref=sh(Ro,Po,No),Oo.return=Ro,Ro=Oo;break e}no(Ro,Po);break}else to(Ro,Po);Po=Po.sibling}No.type===ya?(Oo=Ah(No.props.children,Ro.mode,Mo,No.key),Oo.return=Ro,Ro=Oo):(Mo=yh(No.type,No.key,No.props,null,Ro.mode,Mo),Mo.ref=sh(Ro,Oo,No),Mo.return=Ro,Ro=Mo)}return lo(Ro);case wa:e:{for(Po=No.key;Oo!==null;){if(Oo.key===Po)if(Oo.tag===4&&Oo.stateNode.containerInfo===No.containerInfo&&Oo.stateNode.implementation===No.implementation){no(Ro,Oo.sibling),Oo=so(Oo,No.children||[]),Oo.return=Ro,Ro=Oo;break e}else{no(Ro,Oo);break}else to(Ro,Oo);Oo=Oo.sibling}Oo=zh(No,Ro.mode,Mo),Oo.return=Ro,Ro=Oo}return lo(Ro);case Ha:return Po=No._init,$o(Ro,Oo,Po(No._payload),Mo)}if(eb(No))return ko(Ro,Oo,No,Mo);if(Ka(No))return Co(Ro,Oo,No,Mo);th(Ro,No)}return typeof No=="string"&&No!==""||typeof No=="number"?(No=""+No,Oo!==null&&Oo.tag===6?(no(Ro,Oo.sibling),Oo=so(Oo,No),Oo.return=Ro,Ro=Oo):(no(Ro,Oo),Oo=xh(No,Ro.mode,Mo),Oo.return=Ro,Ro=Oo),lo(Ro)):no(Ro,Oo)}return $o}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(eo){if(eo===Dh)throw Error(p$a(174));return eo}function Ih(eo,to){switch(G$1(Gh,to),G$1(Fh,eo),G$1(Eh,Dh),eo=to.nodeType,eo){case 9:case 11:to=(to=to.documentElement)?to.namespaceURI:lb(null,"");break;default:eo=eo===8?to.parentNode:to,to=eo.namespaceURI||null,eo=eo.tagName,to=lb(to,eo)}E$5(Eh),G$1(Eh,to)}function Jh(){E$5(Eh),E$5(Fh),E$5(Gh)}function Kh(eo){Hh(Gh.current);var to=Hh(Eh.current),no=lb(to,eo.type);to!==no&&(G$1(Fh,eo),G$1(Eh,no))}function Lh(eo){Fh.current===eo&&(E$5(Eh),E$5(Fh))}var M$4=Uf(0);function Mh(eo){for(var to=eo;to!==null;){if(to.tag===13){var no=to.memoizedState;if(no!==null&&(no=no.dehydrated,no===null||no.data==="$?"||no.data==="$!"))return to}else if(to.tag===19&&to.memoizedProps.revealOrder!==void 0){if(to.flags&128)return to}else if(to.child!==null){to.child.return=to,to=to.child;continue}if(to===eo)break;for(;to.sibling===null;){if(to.return===null||to.return===eo)return null;to=to.return}to.sibling.return=to.return,to=to.sibling}return null}var Nh=[];function Oh(){for(var eo=0;eono?no:4,eo(!0);var io=Qh.transition;Qh.transition={};try{eo(!1),to()}finally{C$6=no,Qh.transition=io}}function Fi$1(){return di$1().memoizedState}function Gi$1(eo,to,no){var io=lh(eo);if(no={lane:io,action:no,hasEagerState:!1,eagerState:null,next:null},Hi$1(eo))Ii$1(to,no);else if(no=Yg(eo,to,no,io),no!==null){var so=L$3();mh(no,eo,io,so),Ji$1(no,to,io)}}function ri$1(eo,to,no){var io=lh(eo),so={lane:io,action:no,hasEagerState:!1,eagerState:null,next:null};if(Hi$1(eo))Ii$1(to,so);else{var ao=eo.alternate;if(eo.lanes===0&&(ao===null||ao.lanes===0)&&(ao=to.lastRenderedReducer,ao!==null))try{var lo=to.lastRenderedState,uo=ao(lo,no);if(so.hasEagerState=!0,so.eagerState=uo,He$2(uo,lo)){var ho=to.interleaved;ho===null?(so.next=so,Xg(to)):(so.next=ho.next,ho.next=so),to.interleaved=so;return}}catch{}finally{}no=Yg(eo,to,so,io),no!==null&&(so=L$3(),mh(no,eo,io,so),Ji$1(no,to,io))}}function Hi$1(eo){var to=eo.alternate;return eo===N$4||to!==null&&to===N$4}function Ii$1(eo,to){Th$1=Sh=!0;var no=eo.pending;no===null?to.next=to:(to.next=no.next,no.next=to),eo.pending=to}function Ji$1(eo,to,no){if(no&4194240){var io=to.lanes;io&=eo.pendingLanes,no|=io,to.lanes=no,Cc(eo,no)}}var ai$1={readContext:Vg,useCallback:Q$1,useContext:Q$1,useEffect:Q$1,useImperativeHandle:Q$1,useInsertionEffect:Q$1,useLayoutEffect:Q$1,useMemo:Q$1,useReducer:Q$1,useRef:Q$1,useState:Q$1,useDebugValue:Q$1,useDeferredValue:Q$1,useTransition:Q$1,useMutableSource:Q$1,useSyncExternalStore:Q$1,useId:Q$1,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(eo,to){return ci$1().memoizedState=[eo,to===void 0?null:to],eo},useContext:Vg,useEffect:vi$1,useImperativeHandle:function(eo,to,no){return no=no!=null?no.concat([eo]):null,ti$1(4194308,4,yi$1.bind(null,to,eo),no)},useLayoutEffect:function(eo,to){return ti$1(4194308,4,eo,to)},useInsertionEffect:function(eo,to){return ti$1(4,2,eo,to)},useMemo:function(eo,to){var no=ci$1();return to=to===void 0?null:to,eo=eo(),no.memoizedState=[eo,to],eo},useReducer:function(eo,to,no){var io=ci$1();return to=no!==void 0?no(to):to,io.memoizedState=io.baseState=to,eo={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:to},io.queue=eo,eo=eo.dispatch=Gi$1.bind(null,N$4,eo),[io.memoizedState,eo]},useRef:function(eo){var to=ci$1();return eo={current:eo},to.memoizedState=eo},useState:qi$1,useDebugValue:Ai$1,useDeferredValue:function(eo){return ci$1().memoizedState=eo},useTransition:function(){var eo=qi$1(!1),to=eo[0];return eo=Ei$1.bind(null,eo[1]),ci$1().memoizedState=eo,[to,eo]},useMutableSource:function(){},useSyncExternalStore:function(eo,to,no){var io=N$4,so=ci$1();if(I$2){if(no===void 0)throw Error(p$a(407));no=no()}else{if(no=to(),R$3===null)throw Error(p$a(349));Rh&30||ni$1(io,to,no)}so.memoizedState=no;var ao={value:no,getSnapshot:to};return so.queue=ao,vi$1(ki$1.bind(null,io,ao,eo),[eo]),io.flags|=2048,li$1(9,mi$1.bind(null,io,ao,no,to),void 0,null),no},useId:function(){var eo=ci$1(),to=R$3.identifierPrefix;if(I$2){var no=sg,io=rg;no=(io&~(1<<32-oc(io)-1)).toString(32)+no,to=":"+to+"R"+no,no=Uh++,0")&&(ho=ho.replace("",eo.displayName)),ho}while(1<=lo&&0<=uo);break}}}finally{Na=!1,Error.prepareStackTrace=no}return(eo=eo?eo.displayName||eo.name:"")?Ma(eo):""}function Pa(eo){switch(eo.tag){case 5:return Ma(eo.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return eo=Oa(eo.type,!1),eo;case 11:return eo=Oa(eo.type.render,!1),eo;case 1:return eo=Oa(eo.type,!0),eo;default:return""}}function Qa(eo){if(eo==null)return null;if(typeof eo=="function")return eo.displayName||eo.name||null;if(typeof eo=="string")return eo;switch(eo){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof eo=="object")switch(eo.$$typeof){case Ca:return(eo.displayName||"Context")+".Consumer";case Ba:return(eo._context.displayName||"Context")+".Provider";case Da:var to=eo.render;return eo=eo.displayName,eo||(eo=to.displayName||to.name||"",eo=eo!==""?"ForwardRef("+eo+")":"ForwardRef"),eo;case Ga:return to=eo.displayName||null,to!==null?to:Qa(eo.type)||"Memo";case Ha:to=eo._payload,eo=eo._init;try{return Qa(eo(to))}catch{}}return null}function Ra(eo){var to=eo.type;switch(eo.tag){case 24:return"Cache";case 9:return(to.displayName||"Context")+".Consumer";case 10:return(to._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return eo=to.render,eo=eo.displayName||eo.name||"",to.displayName||(eo!==""?"ForwardRef("+eo+")":"ForwardRef");case 7:return"Fragment";case 5:return to;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(to);case 8:return to===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof to=="function")return to.displayName||to.name||null;if(typeof to=="string")return to}return null}function Sa(eo){switch(typeof eo){case"boolean":case"number":case"string":case"undefined":return eo;case"object":return eo;default:return""}}function Ta(eo){var to=eo.type;return(eo=eo.nodeName)&&eo.toLowerCase()==="input"&&(to==="checkbox"||to==="radio")}function Ua(eo){var to=Ta(eo)?"checked":"value",no=Object.getOwnPropertyDescriptor(eo.constructor.prototype,to),io=""+eo[to];if(!eo.hasOwnProperty(to)&&typeof no<"u"&&typeof no.get=="function"&&typeof no.set=="function"){var so=no.get,ao=no.set;return Object.defineProperty(eo,to,{configurable:!0,get:function(){return so.call(this)},set:function(lo){io=""+lo,ao.call(this,lo)}}),Object.defineProperty(eo,to,{enumerable:no.enumerable}),{getValue:function(){return io},setValue:function(lo){io=""+lo},stopTracking:function(){eo._valueTracker=null,delete eo[to]}}}}function Va(eo){eo._valueTracker||(eo._valueTracker=Ua(eo))}function Wa(eo){if(!eo)return!1;var to=eo._valueTracker;if(!to)return!0;var no=to.getValue(),io="";return eo&&(io=Ta(eo)?eo.checked?"true":"false":eo.value),eo=io,eo!==no?(to.setValue(eo),!0):!1}function Xa(eo){if(eo=eo||(typeof document<"u"?document:void 0),typeof eo>"u")return null;try{return eo.activeElement||eo.body}catch{return eo.body}}function Ya(eo,to){var no=to.checked;return A$6({},to,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:no??eo._wrapperState.initialChecked})}function Za(eo,to){var no=to.defaultValue==null?"":to.defaultValue,io=to.checked!=null?to.checked:to.defaultChecked;no=Sa(to.value!=null?to.value:no),eo._wrapperState={initialChecked:io,initialValue:no,controlled:to.type==="checkbox"||to.type==="radio"?to.checked!=null:to.value!=null}}function ab(eo,to){to=to.checked,to!=null&&ta(eo,"checked",to,!1)}function bb(eo,to){ab(eo,to);var no=Sa(to.value),io=to.type;if(no!=null)io==="number"?(no===0&&eo.value===""||eo.value!=no)&&(eo.value=""+no):eo.value!==""+no&&(eo.value=""+no);else if(io==="submit"||io==="reset"){eo.removeAttribute("value");return}to.hasOwnProperty("value")?cb(eo,to.type,no):to.hasOwnProperty("defaultValue")&&cb(eo,to.type,Sa(to.defaultValue)),to.checked==null&&to.defaultChecked!=null&&(eo.defaultChecked=!!to.defaultChecked)}function db$g(eo,to,no){if(to.hasOwnProperty("value")||to.hasOwnProperty("defaultValue")){var io=to.type;if(!(io!=="submit"&&io!=="reset"||to.value!==void 0&&to.value!==null))return;to=""+eo._wrapperState.initialValue,no||to===eo.value||(eo.value=to),eo.defaultValue=to}no=eo.name,no!==""&&(eo.name=""),eo.defaultChecked=!!eo._wrapperState.initialChecked,no!==""&&(eo.name=no)}function cb(eo,to,no){(to!=="number"||Xa(eo.ownerDocument)!==eo)&&(no==null?eo.defaultValue=""+eo._wrapperState.initialValue:eo.defaultValue!==""+no&&(eo.defaultValue=""+no))}var eb=Array.isArray;function fb(eo,to,no,io){if(eo=eo.options,to){to={};for(var so=0;so"+to.valueOf().toString()+"",to=mb.firstChild;eo.firstChild;)eo.removeChild(eo.firstChild);for(;to.firstChild;)eo.appendChild(to.firstChild)}});function ob(eo,to){if(to){var no=eo.firstChild;if(no&&no===eo.lastChild&&no.nodeType===3){no.nodeValue=to;return}}eo.textContent=to}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(eo){qb.forEach(function(to){to=to+eo.charAt(0).toUpperCase()+eo.substring(1),pb[to]=pb[eo]})});function rb(eo,to,no){return to==null||typeof to=="boolean"||to===""?"":no||typeof to!="number"||to===0||pb.hasOwnProperty(eo)&&pb[eo]?(""+to).trim():to+"px"}function sb(eo,to){eo=eo.style;for(var no in to)if(to.hasOwnProperty(no)){var io=no.indexOf("--")===0,so=rb(no,to[no],io);no==="float"&&(no="cssFloat"),io?eo.setProperty(no,so):eo[no]=so}}var tb=A$6({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(eo,to){if(to){if(tb[eo]&&(to.children!=null||to.dangerouslySetInnerHTML!=null))throw Error(p$a(137,eo));if(to.dangerouslySetInnerHTML!=null){if(to.children!=null)throw Error(p$a(60));if(typeof to.dangerouslySetInnerHTML!="object"||!("__html"in to.dangerouslySetInnerHTML))throw Error(p$a(61))}if(to.style!=null&&typeof to.style!="object")throw Error(p$a(62))}}function vb(eo,to){if(eo.indexOf("-")===-1)return typeof to.is=="string";switch(eo){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(eo){return eo=eo.target||eo.srcElement||window,eo.correspondingUseElement&&(eo=eo.correspondingUseElement),eo.nodeType===3?eo.parentNode:eo}var yb=null,zb=null,Ab=null;function Bb(eo){if(eo=Cb(eo)){if(typeof yb!="function")throw Error(p$a(280));var to=eo.stateNode;to&&(to=Db(to),yb(eo.stateNode,eo.type,to))}}function Eb(eo){zb?Ab?Ab.push(eo):Ab=[eo]:zb=eo}function Fb(){if(zb){var eo=zb,to=Ab;if(Ab=zb=null,Bb(eo),to)for(eo=0;eo>>=0,eo===0?32:31-(pc(eo)/qc|0)|0}var rc=64,sc=4194304;function tc(eo){switch(eo&-eo){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return eo&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return eo&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return eo}}function uc(eo,to){var no=eo.pendingLanes;if(no===0)return 0;var io=0,so=eo.suspendedLanes,ao=eo.pingedLanes,lo=no&268435455;if(lo!==0){var uo=lo&~so;uo!==0?io=tc(uo):(ao&=lo,ao!==0&&(io=tc(ao)))}else lo=no&~so,lo!==0?io=tc(lo):ao!==0&&(io=tc(ao));if(io===0)return 0;if(to!==0&&to!==io&&!(to&so)&&(so=io&-io,ao=to&-to,so>=ao||so===16&&(ao&4194240)!==0))return to;if(io&4&&(io|=no&16),to=eo.entangledLanes,to!==0)for(eo=eo.entanglements,to&=io;0no;no++)to.push(eo);return to}function Ac(eo,to,no){eo.pendingLanes|=to,to!==536870912&&(eo.suspendedLanes=0,eo.pingedLanes=0),eo=eo.eventTimes,to=31-oc(to),eo[to]=no}function Bc(eo,to){var no=eo.pendingLanes&~to;eo.pendingLanes=to,eo.suspendedLanes=0,eo.pingedLanes=0,eo.expiredLanes&=to,eo.mutableReadLanes&=to,eo.entangledLanes&=to,to=eo.entanglements;var io=eo.eventTimes;for(eo=eo.expirationTimes;0=be$2),ee$2=" ",fe$2=!1;function ge$1(eo,to){switch(eo){case"keyup":return $d.indexOf(to.keyCode)!==-1;case"keydown":return to.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$2(eo){return eo=eo.detail,typeof eo=="object"&&"data"in eo?eo.data:null}var ie$4=!1;function je$1(eo,to){switch(eo){case"compositionend":return he$2(to);case"keypress":return to.which!==32?null:(fe$2=!0,ee$2);case"textInput":return eo=to.data,eo===ee$2&&fe$2?null:eo;default:return null}}function ke$1(eo,to){if(ie$4)return eo==="compositionend"||!ae$2&&ge$1(eo,to)?(eo=nd(),md=ld=kd=null,ie$4=!1,eo):null;switch(eo){case"paste":return null;case"keypress":if(!(to.ctrlKey||to.altKey||to.metaKey)||to.ctrlKey&&to.altKey){if(to.char&&1=to)return{node:no,offset:to-eo};eo=io}e:{for(;no;){if(no.nextSibling){no=no.nextSibling;break e}no=no.parentNode}no=void 0}no=Je$1(no)}}function Le$1(eo,to){return eo&&to?eo===to?!0:eo&&eo.nodeType===3?!1:to&&to.nodeType===3?Le$1(eo,to.parentNode):"contains"in eo?eo.contains(to):eo.compareDocumentPosition?!!(eo.compareDocumentPosition(to)&16):!1:!1}function Me$2(){for(var eo=window,to=Xa();to instanceof eo.HTMLIFrameElement;){try{var no=typeof to.contentWindow.location.href=="string"}catch{no=!1}if(no)eo=to.contentWindow;else break;to=Xa(eo.document)}return to}function Ne$1(eo){var to=eo&&eo.nodeName&&eo.nodeName.toLowerCase();return to&&(to==="input"&&(eo.type==="text"||eo.type==="search"||eo.type==="tel"||eo.type==="url"||eo.type==="password")||to==="textarea"||eo.contentEditable==="true")}function Oe$2(eo){var to=Me$2(),no=eo.focusedElem,io=eo.selectionRange;if(to!==no&&no&&no.ownerDocument&&Le$1(no.ownerDocument.documentElement,no)){if(io!==null&&Ne$1(no)){if(to=io.start,eo=io.end,eo===void 0&&(eo=to),"selectionStart"in no)no.selectionStart=to,no.selectionEnd=Math.min(eo,no.value.length);else if(eo=(to=no.ownerDocument||document)&&to.defaultView||window,eo.getSelection){eo=eo.getSelection();var so=no.textContent.length,ao=Math.min(io.start,so);io=io.end===void 0?ao:Math.min(io.end,so),!eo.extend&&ao>io&&(so=io,io=ao,ao=so),so=Ke$1(no,ao);var lo=Ke$1(no,io);so&&lo&&(eo.rangeCount!==1||eo.anchorNode!==so.node||eo.anchorOffset!==so.offset||eo.focusNode!==lo.node||eo.focusOffset!==lo.offset)&&(to=to.createRange(),to.setStart(so.node,so.offset),eo.removeAllRanges(),ao>io?(eo.addRange(to),eo.extend(lo.node,lo.offset)):(to.setEnd(lo.node,lo.offset),eo.addRange(to)))}}for(to=[],eo=no;eo=eo.parentNode;)eo.nodeType===1&&to.push({element:eo,left:eo.scrollLeft,top:eo.scrollTop});for(typeof no.focus=="function"&&no.focus(),no=0;no=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(eo,to,no){var io=no.window===no?no.document:no.nodeType===9?no:no.ownerDocument;Te$1||Qe$1==null||Qe$1!==Xa(io)||(io=Qe$1,"selectionStart"in io&&Ne$1(io)?io={start:io.selectionStart,end:io.selectionEnd}:(io=(io.ownerDocument&&io.ownerDocument.defaultView||window).getSelection(),io={anchorNode:io.anchorNode,anchorOffset:io.anchorOffset,focusNode:io.focusNode,focusOffset:io.focusOffset}),Se$1&&Ie$1(Se$1,io)||(Se$1=io,io=oe$1(Re$1,"onSelect"),0Tf||(eo.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$1(eo,to){Tf++,Sf[Tf]=eo.current,eo.current=to}var Vf={},H$3=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(eo,to){var no=eo.type.contextTypes;if(!no)return Vf;var io=eo.stateNode;if(io&&io.__reactInternalMemoizedUnmaskedChildContext===to)return io.__reactInternalMemoizedMaskedChildContext;var so={},ao;for(ao in no)so[ao]=to[ao];return io&&(eo=eo.stateNode,eo.__reactInternalMemoizedUnmaskedChildContext=to,eo.__reactInternalMemoizedMaskedChildContext=so),so}function Zf(eo){return eo=eo.childContextTypes,eo!=null}function $f(){E$5(Wf),E$5(H$3)}function ag(eo,to,no){if(H$3.current!==Vf)throw Error(p$a(168));G$1(H$3,to),G$1(Wf,no)}function bg(eo,to,no){var io=eo.stateNode;if(to=to.childContextTypes,typeof io.getChildContext!="function")return no;io=io.getChildContext();for(var so in io)if(!(so in to))throw Error(p$a(108,Ra(eo)||"Unknown",so));return A$6({},no,io)}function cg(eo){return eo=(eo=eo.stateNode)&&eo.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$3.current,G$1(H$3,eo),G$1(Wf,Wf.current),!0}function dg(eo,to,no){var io=eo.stateNode;if(!io)throw Error(p$a(169));no?(eo=bg(eo,to,Xf),io.__reactInternalMemoizedMergedChildContext=eo,E$5(Wf),E$5(H$3),G$1(H$3,eo)):E$5(Wf),G$1(Wf,no)}var eg=null,fg=!1,gg=!1;function hg(eo){eg===null?eg=[eo]:eg.push(eo)}function ig(eo){fg=!0,hg(eo)}function jg(){if(!gg&&eg!==null){gg=!0;var eo=0,to=C$6;try{var no=eg;for(C$6=1;eo>=lo,so-=lo,rg=1<<32-oc(to)+so|no<Go?(Do=Lo,Lo=null):Do=Lo.sibling;var Uo=So(Ro,Lo,No[Go],Mo);if(Uo===null){Lo===null&&(Lo=Do);break}eo&&Lo&&Uo.alternate===null&&to(Ro,Lo),Oo=ao(Uo,Oo,Go),Fo===null?Bo=Uo:Fo.sibling=Uo,Fo=Uo,Lo=Do}if(Go===No.length)return no(Ro,Lo),I$2&&tg(Ro,Go),Bo;if(Lo===null){for(;GoGo?(Do=Lo,Lo=null):Do=Lo.sibling;var Ho=So(Ro,Lo,Uo.value,Mo);if(Ho===null){Lo===null&&(Lo=Do);break}eo&&Lo&&Ho.alternate===null&&to(Ro,Lo),Oo=ao(Ho,Oo,Go),Fo===null?Bo=Ho:Fo.sibling=Ho,Fo=Ho,Lo=Do}if(Uo.done)return no(Ro,Lo),I$2&&tg(Ro,Go),Bo;if(Lo===null){for(;!Uo.done;Go++,Uo=No.next())Uo=yo(Ro,Uo.value,Mo),Uo!==null&&(Oo=ao(Uo,Oo,Go),Fo===null?Bo=Uo:Fo.sibling=Uo,Fo=Uo);return I$2&&tg(Ro,Go),Bo}for(Lo=io(Ro,Lo);!Uo.done;Go++,Uo=No.next())Uo=_o(Lo,Ro,Go,Uo.value,Mo),Uo!==null&&(eo&&Uo.alternate!==null&&Lo.delete(Uo.key===null?Go:Uo.key),Oo=ao(Uo,Oo,Go),Fo===null?Bo=Uo:Fo.sibling=Uo,Fo=Uo);return eo&&Lo.forEach(function(Yo){return to(Ro,Yo)}),I$2&&tg(Ro,Go),Bo}function $o(Ro,Oo,No,Mo){if(typeof No=="object"&&No!==null&&No.type===ya&&No.key===null&&(No=No.props.children),typeof No=="object"&&No!==null){switch(No.$$typeof){case va:e:{for(var Bo=No.key,Fo=Oo;Fo!==null;){if(Fo.key===Bo){if(Bo=No.type,Bo===ya){if(Fo.tag===7){no(Ro,Fo.sibling),Oo=so(Fo,No.props.children),Oo.return=Ro,Ro=Oo;break e}}else if(Fo.elementType===Bo||typeof Bo=="object"&&Bo!==null&&Bo.$$typeof===Ha&&uh(Bo)===Fo.type){no(Ro,Fo.sibling),Oo=so(Fo,No.props),Oo.ref=sh(Ro,Fo,No),Oo.return=Ro,Ro=Oo;break e}no(Ro,Fo);break}else to(Ro,Fo);Fo=Fo.sibling}No.type===ya?(Oo=Ah(No.props.children,Ro.mode,Mo,No.key),Oo.return=Ro,Ro=Oo):(Mo=yh(No.type,No.key,No.props,null,Ro.mode,Mo),Mo.ref=sh(Ro,Oo,No),Mo.return=Ro,Ro=Mo)}return lo(Ro);case wa:e:{for(Fo=No.key;Oo!==null;){if(Oo.key===Fo)if(Oo.tag===4&&Oo.stateNode.containerInfo===No.containerInfo&&Oo.stateNode.implementation===No.implementation){no(Ro,Oo.sibling),Oo=so(Oo,No.children||[]),Oo.return=Ro,Ro=Oo;break e}else{no(Ro,Oo);break}else to(Ro,Oo);Oo=Oo.sibling}Oo=zh(No,Ro.mode,Mo),Oo.return=Ro,Ro=Oo}return lo(Ro);case Ha:return Fo=No._init,$o(Ro,Oo,Fo(No._payload),Mo)}if(eb(No))return ko(Ro,Oo,No,Mo);if(Ka(No))return Co(Ro,Oo,No,Mo);th(Ro,No)}return typeof No=="string"&&No!==""||typeof No=="number"?(No=""+No,Oo!==null&&Oo.tag===6?(no(Ro,Oo.sibling),Oo=so(Oo,No),Oo.return=Ro,Ro=Oo):(no(Ro,Oo),Oo=xh(No,Ro.mode,Mo),Oo.return=Ro,Ro=Oo),lo(Ro)):no(Ro,Oo)}return $o}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(eo){if(eo===Dh)throw Error(p$a(174));return eo}function Ih(eo,to){switch(G$1(Gh,to),G$1(Fh,eo),G$1(Eh,Dh),eo=to.nodeType,eo){case 9:case 11:to=(to=to.documentElement)?to.namespaceURI:lb(null,"");break;default:eo=eo===8?to.parentNode:to,to=eo.namespaceURI||null,eo=eo.tagName,to=lb(to,eo)}E$5(Eh),G$1(Eh,to)}function Jh(){E$5(Eh),E$5(Fh),E$5(Gh)}function Kh(eo){Hh(Gh.current);var to=Hh(Eh.current),no=lb(to,eo.type);to!==no&&(G$1(Fh,eo),G$1(Eh,no))}function Lh(eo){Fh.current===eo&&(E$5(Eh),E$5(Fh))}var M$4=Uf(0);function Mh(eo){for(var to=eo;to!==null;){if(to.tag===13){var no=to.memoizedState;if(no!==null&&(no=no.dehydrated,no===null||no.data==="$?"||no.data==="$!"))return to}else if(to.tag===19&&to.memoizedProps.revealOrder!==void 0){if(to.flags&128)return to}else if(to.child!==null){to.child.return=to,to=to.child;continue}if(to===eo)break;for(;to.sibling===null;){if(to.return===null||to.return===eo)return null;to=to.return}to.sibling.return=to.return,to=to.sibling}return null}var Nh=[];function Oh(){for(var eo=0;eono?no:4,eo(!0);var io=Qh.transition;Qh.transition={};try{eo(!1),to()}finally{C$6=no,Qh.transition=io}}function Fi$1(){return di$1().memoizedState}function Gi$1(eo,to,no){var io=lh(eo);if(no={lane:io,action:no,hasEagerState:!1,eagerState:null,next:null},Hi$1(eo))Ii$1(to,no);else if(no=Yg(eo,to,no,io),no!==null){var so=L$3();mh(no,eo,io,so),Ji$1(no,to,io)}}function ri$1(eo,to,no){var io=lh(eo),so={lane:io,action:no,hasEagerState:!1,eagerState:null,next:null};if(Hi$1(eo))Ii$1(to,so);else{var ao=eo.alternate;if(eo.lanes===0&&(ao===null||ao.lanes===0)&&(ao=to.lastRenderedReducer,ao!==null))try{var lo=to.lastRenderedState,uo=ao(lo,no);if(so.hasEagerState=!0,so.eagerState=uo,He$2(uo,lo)){var ho=to.interleaved;ho===null?(so.next=so,Xg(to)):(so.next=ho.next,ho.next=so),to.interleaved=so;return}}catch{}finally{}no=Yg(eo,to,so,io),no!==null&&(so=L$3(),mh(no,eo,io,so),Ji$1(no,to,io))}}function Hi$1(eo){var to=eo.alternate;return eo===N$4||to!==null&&to===N$4}function Ii$1(eo,to){Th$1=Sh=!0;var no=eo.pending;no===null?to.next=to:(to.next=no.next,no.next=to),eo.pending=to}function Ji$1(eo,to,no){if(no&4194240){var io=to.lanes;io&=eo.pendingLanes,no|=io,to.lanes=no,Cc(eo,no)}}var ai$1={readContext:Vg,useCallback:Q$1,useContext:Q$1,useEffect:Q$1,useImperativeHandle:Q$1,useInsertionEffect:Q$1,useLayoutEffect:Q$1,useMemo:Q$1,useReducer:Q$1,useRef:Q$1,useState:Q$1,useDebugValue:Q$1,useDeferredValue:Q$1,useTransition:Q$1,useMutableSource:Q$1,useSyncExternalStore:Q$1,useId:Q$1,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(eo,to){return ci$1().memoizedState=[eo,to===void 0?null:to],eo},useContext:Vg,useEffect:vi$1,useImperativeHandle:function(eo,to,no){return no=no!=null?no.concat([eo]):null,ti$1(4194308,4,yi$1.bind(null,to,eo),no)},useLayoutEffect:function(eo,to){return ti$1(4194308,4,eo,to)},useInsertionEffect:function(eo,to){return ti$1(4,2,eo,to)},useMemo:function(eo,to){var no=ci$1();return to=to===void 0?null:to,eo=eo(),no.memoizedState=[eo,to],eo},useReducer:function(eo,to,no){var io=ci$1();return to=no!==void 0?no(to):to,io.memoizedState=io.baseState=to,eo={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:to},io.queue=eo,eo=eo.dispatch=Gi$1.bind(null,N$4,eo),[io.memoizedState,eo]},useRef:function(eo){var to=ci$1();return eo={current:eo},to.memoizedState=eo},useState:qi$1,useDebugValue:Ai$1,useDeferredValue:function(eo){return ci$1().memoizedState=eo},useTransition:function(){var eo=qi$1(!1),to=eo[0];return eo=Ei$1.bind(null,eo[1]),ci$1().memoizedState=eo,[to,eo]},useMutableSource:function(){},useSyncExternalStore:function(eo,to,no){var io=N$4,so=ci$1();if(I$2){if(no===void 0)throw Error(p$a(407));no=no()}else{if(no=to(),R$3===null)throw Error(p$a(349));Rh&30||ni$1(io,to,no)}so.memoizedState=no;var ao={value:no,getSnapshot:to};return so.queue=ao,vi$1(ki$1.bind(null,io,ao,eo),[eo]),io.flags|=2048,li$1(9,mi$1.bind(null,io,ao,no,to),void 0,null),no},useId:function(){var eo=ci$1(),to=R$3.identifierPrefix;if(I$2){var no=sg,io=rg;no=(io&~(1<<32-oc(io)-1)).toString(32)+no,to=":"+to+"R"+no,no=Uh++,0<\/script>",eo=eo.removeChild(eo.firstChild)):typeof io.is=="string"?eo=lo.createElement(no,{is:io.is}):(eo=lo.createElement(no),no==="select"&&(lo=eo,io.multiple?lo.multiple=!0:io.size&&(lo.size=io.size))):eo=lo.createElementNS(eo,no),eo[Of]=to,eo[Pf]=io,Aj(eo,to,!1,!1),to.stateNode=eo;e:{switch(lo=vb(no,io),no){case"dialog":D$5("cancel",eo),D$5("close",eo),so=io;break;case"iframe":case"object":case"embed":D$5("load",eo),so=io;break;case"video":case"audio":for(so=0;soHj&&(to.flags|=128,io=!0,Ej(ao,!1),to.lanes=4194304)}else{if(!io)if(eo=Mh(lo),eo!==null){if(to.flags|=128,io=!0,no=eo.updateQueue,no!==null&&(to.updateQueue=no,to.flags|=4),Ej(ao,!0),ao.tail===null&&ao.tailMode==="hidden"&&!lo.alternate&&!I$2)return S$6(to),null}else 2*B$3()-ao.renderingStartTime>Hj&&no!==1073741824&&(to.flags|=128,io=!0,Ej(ao,!1),to.lanes=4194304);ao.isBackwards?(lo.sibling=to.child,to.child=lo):(no=ao.last,no!==null?no.sibling=lo:to.child=lo,ao.last=lo)}return ao.tail!==null?(to=ao.tail,ao.rendering=to,ao.tail=to.sibling,ao.renderingStartTime=B$3(),to.sibling=null,no=M$4.current,G$1(M$4,io?no&1|2:no&1),to):(S$6(to),null);case 22:case 23:return Ij(),io=to.memoizedState!==null,eo!==null&&eo.memoizedState!==null!==io&&(to.flags|=8192),io&&to.mode&1?gj&1073741824&&(S$6(to),to.subtreeFlags&6&&(to.flags|=8192)):S$6(to),null;case 24:return null;case 25:return null}throw Error(p$a(156,to.tag))}function Jj(eo,to){switch(wg(to),to.tag){case 1:return Zf(to.type)&&$f(),eo=to.flags,eo&65536?(to.flags=eo&-65537|128,to):null;case 3:return Jh(),E$5(Wf),E$5(H$3),Oh(),eo=to.flags,eo&65536&&!(eo&128)?(to.flags=eo&-65537|128,to):null;case 5:return Lh(to),null;case 13:if(E$5(M$4),eo=to.memoizedState,eo!==null&&eo.dehydrated!==null){if(to.alternate===null)throw Error(p$a(340));Ig()}return eo=to.flags,eo&65536?(to.flags=eo&-65537|128,to):null;case 19:return E$5(M$4),null;case 4:return Jh(),null;case 10:return Rg(to.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Mj(eo,to){var no=eo.ref;if(no!==null)if(typeof no=="function")try{no(null)}catch(io){W$1(eo,to,io)}else no.current=null}function Nj(eo,to,no){try{no()}catch(io){W$1(eo,to,io)}}var Oj=!1;function Pj(eo,to){if(Cf=dd,eo=Me$2(),Ne$1(eo)){if("selectionStart"in eo)var no={start:eo.selectionStart,end:eo.selectionEnd};else e:{no=(no=eo.ownerDocument)&&no.defaultView||window;var io=no.getSelection&&no.getSelection();if(io&&io.rangeCount!==0){no=io.anchorNode;var so=io.anchorOffset,ao=io.focusNode;io=io.focusOffset;try{no.nodeType,ao.nodeType}catch{no=null;break e}var lo=0,uo=-1,ho=-1,go=0,mo=0,yo=eo,So=null;t:for(;;){for(var _o;yo!==no||so!==0&&yo.nodeType!==3||(uo=lo+so),yo!==ao||io!==0&&yo.nodeType!==3||(ho=lo+io),yo.nodeType===3&&(lo+=yo.nodeValue.length),(_o=yo.firstChild)!==null;)So=yo,yo=_o;for(;;){if(yo===eo)break t;if(So===no&&++go===so&&(uo=lo),So===ao&&++mo===io&&(ho=lo),(_o=yo.nextSibling)!==null)break;yo=So,So=yo.parentNode}yo=_o}no=uo===-1||ho===-1?null:{start:uo,end:ho}}else no=null}no=no||{start:0,end:0}}else no=null;for(Df={focusedElem:eo,selectionRange:no},dd=!1,V$1=to;V$1!==null;)if(to=V$1,eo=to.child,(to.subtreeFlags&1028)!==0&&eo!==null)eo.return=to,V$1=eo;else for(;V$1!==null;){to=V$1;try{var ko=to.alternate;if(to.flags&1024)switch(to.tag){case 0:case 11:case 15:break;case 1:if(ko!==null){var Co=ko.memoizedProps,$o=ko.memoizedState,Ro=to.stateNode,Oo=Ro.getSnapshotBeforeUpdate(to.elementType===to.type?Co:Lg(to.type,Co),$o);Ro.__reactInternalSnapshotBeforeUpdate=Oo}break;case 3:var No=to.stateNode.containerInfo;No.nodeType===1?No.textContent="":No.nodeType===9&&No.documentElement&&No.removeChild(No.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$a(163))}}catch(Mo){W$1(to,to.return,Mo)}if(eo=to.sibling,eo!==null){eo.return=to.return,V$1=eo;break}V$1=to.return}return ko=Oj,Oj=!1,ko}function Qj(eo,to,no){var io=to.updateQueue;if(io=io!==null?io.lastEffect:null,io!==null){var so=io=io.next;do{if((so.tag&eo)===eo){var ao=so.destroy;so.destroy=void 0,ao!==void 0&&Nj(to,no,ao)}so=so.next}while(so!==io)}}function Rj(eo,to){if(to=to.updateQueue,to=to!==null?to.lastEffect:null,to!==null){var no=to=to.next;do{if((no.tag&eo)===eo){var io=no.create;no.destroy=io()}no=no.next}while(no!==to)}}function Sj(eo){var to=eo.ref;if(to!==null){var no=eo.stateNode;switch(eo.tag){case 5:eo=no;break;default:eo=no}typeof to=="function"?to(eo):to.current=eo}}function Tj(eo){var to=eo.alternate;to!==null&&(eo.alternate=null,Tj(to)),eo.child=null,eo.deletions=null,eo.sibling=null,eo.tag===5&&(to=eo.stateNode,to!==null&&(delete to[Of],delete to[Pf],delete to[of$1],delete to[Qf],delete to[Rf])),eo.stateNode=null,eo.return=null,eo.dependencies=null,eo.memoizedProps=null,eo.memoizedState=null,eo.pendingProps=null,eo.stateNode=null,eo.updateQueue=null}function Uj(eo){return eo.tag===5||eo.tag===3||eo.tag===4}function Vj(eo){e:for(;;){for(;eo.sibling===null;){if(eo.return===null||Uj(eo.return))return null;eo=eo.return}for(eo.sibling.return=eo.return,eo=eo.sibling;eo.tag!==5&&eo.tag!==6&&eo.tag!==18;){if(eo.flags&2||eo.child===null||eo.tag===4)continue e;eo.child.return=eo,eo=eo.child}if(!(eo.flags&2))return eo.stateNode}}function Wj(eo,to,no){var io=eo.tag;if(io===5||io===6)eo=eo.stateNode,to?no.nodeType===8?no.parentNode.insertBefore(eo,to):no.insertBefore(eo,to):(no.nodeType===8?(to=no.parentNode,to.insertBefore(eo,no)):(to=no,to.appendChild(eo)),no=no._reactRootContainer,no!=null||to.onclick!==null||(to.onclick=Bf));else if(io!==4&&(eo=eo.child,eo!==null))for(Wj(eo,to,no),eo=eo.sibling;eo!==null;)Wj(eo,to,no),eo=eo.sibling}function Xj(eo,to,no){var io=eo.tag;if(io===5||io===6)eo=eo.stateNode,to?no.insertBefore(eo,to):no.appendChild(eo);else if(io!==4&&(eo=eo.child,eo!==null))for(Xj(eo,to,no),eo=eo.sibling;eo!==null;)Xj(eo,to,no),eo=eo.sibling}var X$1=null,Yj=!1;function Zj(eo,to,no){for(no=no.child;no!==null;)ak(eo,to,no),no=no.sibling}function ak(eo,to,no){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,no)}catch{}switch(no.tag){case 5:U$1||Mj(no,to);case 6:var io=X$1,so=Yj;X$1=null,Zj(eo,to,no),X$1=io,Yj=so,X$1!==null&&(Yj?(eo=X$1,no=no.stateNode,eo.nodeType===8?eo.parentNode.removeChild(no):eo.removeChild(no)):X$1.removeChild(no.stateNode));break;case 18:X$1!==null&&(Yj?(eo=X$1,no=no.stateNode,eo.nodeType===8?Kf(eo.parentNode,no):eo.nodeType===1&&Kf(eo,no),bd(eo)):Kf(X$1,no.stateNode));break;case 4:io=X$1,so=Yj,X$1=no.stateNode.containerInfo,Yj=!0,Zj(eo,to,no),X$1=io,Yj=so;break;case 0:case 11:case 14:case 15:if(!U$1&&(io=no.updateQueue,io!==null&&(io=io.lastEffect,io!==null))){so=io=io.next;do{var ao=so,lo=ao.destroy;ao=ao.tag,lo!==void 0&&(ao&2||ao&4)&&Nj(no,to,lo),so=so.next}while(so!==io)}Zj(eo,to,no);break;case 1:if(!U$1&&(Mj(no,to),io=no.stateNode,typeof io.componentWillUnmount=="function"))try{io.props=no.memoizedProps,io.state=no.memoizedState,io.componentWillUnmount()}catch(uo){W$1(no,to,uo)}Zj(eo,to,no);break;case 21:Zj(eo,to,no);break;case 22:no.mode&1?(U$1=(io=U$1)||no.memoizedState!==null,Zj(eo,to,no),U$1=io):Zj(eo,to,no);break;default:Zj(eo,to,no)}}function bk$1(eo){var to=eo.updateQueue;if(to!==null){eo.updateQueue=null;var no=eo.stateNode;no===null&&(no=eo.stateNode=new Lj),to.forEach(function(io){var so=ck.bind(null,eo,io);no.has(io)||(no.add(io),io.then(so,so))})}}function dk(eo,to){var no=to.deletions;if(no!==null)for(var io=0;ioso&&(so=lo),io&=~ao}if(io=so,io=B$3()-io,io=(120>io?120:480>io?480:1080>io?1080:1920>io?1920:3e3>io?3e3:4320>io?4320:1960*mk(io/1960))-io,10eo?16:eo,xk===null)var io=!1;else{if(eo=xk,xk=null,yk=0,K$5&6)throw Error(p$a(331));var so=K$5;for(K$5|=4,V$1=eo.current;V$1!==null;){var ao=V$1,lo=ao.child;if(V$1.flags&16){var uo=ao.deletions;if(uo!==null){for(var ho=0;hoB$3()-gk?Lk(eo,0):sk|=no),Ek(eo,to)}function Zk(eo,to){to===0&&(eo.mode&1?(to=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):to=1);var no=L$3();eo=Zg(eo,to),eo!==null&&(Ac(eo,to,no),Ek(eo,no))}function vj(eo){var to=eo.memoizedState,no=0;to!==null&&(no=to.retryLane),Zk(eo,no)}function ck(eo,to){var no=0;switch(eo.tag){case 13:var io=eo.stateNode,so=eo.memoizedState;so!==null&&(no=so.retryLane);break;case 19:io=eo.stateNode;break;default:throw Error(p$a(314))}io!==null&&io.delete(to),Zk(eo,no)}var Wk;Wk=function(eo,to,no){if(eo!==null)if(eo.memoizedProps!==to.pendingProps||Wf.current)Ug=!0;else{if(!(eo.lanes&no)&&!(to.flags&128))return Ug=!1,zj(eo,to,no);Ug=!!(eo.flags&131072)}else Ug=!1,I$2&&to.flags&1048576&&ug(to,ng,to.index);switch(to.lanes=0,to.tag){case 2:var io=to.type;jj(eo,to),eo=to.pendingProps;var so=Yf(to,H$3.current);Tg(to,no),so=Xh(null,to,io,eo,so,no);var ao=bi$1();return to.flags|=1,typeof so=="object"&&so!==null&&typeof so.render=="function"&&so.$$typeof===void 0?(to.tag=1,to.memoizedState=null,to.updateQueue=null,Zf(io)?(ao=!0,cg(to)):ao=!1,to.memoizedState=so.state!==null&&so.state!==void 0?so.state:null,ah(to),so.updater=nh,to.stateNode=so,so._reactInternals=to,rh(to,io,eo,no),to=kj(null,to,io,!0,ao,no)):(to.tag=0,I$2&&ao&&vg(to),Yi$1(null,to,so,no),to=to.child),to;case 16:io=to.elementType;e:{switch(jj(eo,to),eo=to.pendingProps,so=io._init,io=so(io._payload),to.type=io,so=to.tag=$k(io),eo=Lg(io,eo),so){case 0:to=dj(null,to,io,eo,no);break e;case 1:to=ij(null,to,io,eo,no);break e;case 11:to=Zi$1(null,to,io,eo,no);break e;case 14:to=aj(null,to,io,Lg(io.type,eo),no);break e}throw Error(p$a(306,io,""))}return to;case 0:return io=to.type,so=to.pendingProps,so=to.elementType===io?so:Lg(io,so),dj(eo,to,io,so,no);case 1:return io=to.type,so=to.pendingProps,so=to.elementType===io?so:Lg(io,so),ij(eo,to,io,so,no);case 3:e:{if(lj(to),eo===null)throw Error(p$a(387));io=to.pendingProps,ao=to.memoizedState,so=ao.element,bh(eo,to),gh(to,io,null,no);var lo=to.memoizedState;if(io=lo.element,ao.isDehydrated)if(ao={element:io,isDehydrated:!1,cache:lo.cache,pendingSuspenseBoundaries:lo.pendingSuspenseBoundaries,transitions:lo.transitions},to.updateQueue.baseState=ao,to.memoizedState=ao,to.flags&256){so=Ki$1(Error(p$a(423)),to),to=mj(eo,to,io,no,so);break e}else if(io!==so){so=Ki$1(Error(p$a(424)),to),to=mj(eo,to,io,no,so);break e}else for(yg=Lf(to.stateNode.containerInfo.firstChild),xg=to,I$2=!0,zg=null,no=Ch(to,null,io,no),to.child=no;no;)no.flags=no.flags&-3|4096,no=no.sibling;else{if(Ig(),io===so){to=$i$1(eo,to,no);break e}Yi$1(eo,to,io,no)}to=to.child}return to;case 5:return Kh(to),eo===null&&Eg(to),io=to.type,so=to.pendingProps,ao=eo!==null?eo.memoizedProps:null,lo=so.children,Ef(io,so)?lo=null:ao!==null&&Ef(io,ao)&&(to.flags|=32),hj(eo,to),Yi$1(eo,to,lo,no),to.child;case 6:return eo===null&&Eg(to),null;case 13:return pj(eo,to,no);case 4:return Ih(to,to.stateNode.containerInfo),io=to.pendingProps,eo===null?to.child=Bh(to,null,io,no):Yi$1(eo,to,io,no),to.child;case 11:return io=to.type,so=to.pendingProps,so=to.elementType===io?so:Lg(io,so),Zi$1(eo,to,io,so,no);case 7:return Yi$1(eo,to,to.pendingProps,no),to.child;case 8:return Yi$1(eo,to,to.pendingProps.children,no),to.child;case 12:return Yi$1(eo,to,to.pendingProps.children,no),to.child;case 10:e:{if(io=to.type._context,so=to.pendingProps,ao=to.memoizedProps,lo=so.value,G$1(Mg,io._currentValue),io._currentValue=lo,ao!==null)if(He$2(ao.value,lo)){if(ao.children===so.children&&!Wf.current){to=$i$1(eo,to,no);break e}}else for(ao=to.child,ao!==null&&(ao.return=to);ao!==null;){var uo=ao.dependencies;if(uo!==null){lo=ao.child;for(var ho=uo.firstContext;ho!==null;){if(ho.context===io){if(ao.tag===1){ho=ch$1(-1,no&-no),ho.tag=2;var go=ao.updateQueue;if(go!==null){go=go.shared;var mo=go.pending;mo===null?ho.next=ho:(ho.next=mo.next,mo.next=ho),go.pending=ho}}ao.lanes|=no,ho=ao.alternate,ho!==null&&(ho.lanes|=no),Sg(ao.return,no,to),uo.lanes|=no;break}ho=ho.next}}else if(ao.tag===10)lo=ao.type===to.type?null:ao.child;else if(ao.tag===18){if(lo=ao.return,lo===null)throw Error(p$a(341));lo.lanes|=no,uo=lo.alternate,uo!==null&&(uo.lanes|=no),Sg(lo,no,to),lo=ao.sibling}else lo=ao.child;if(lo!==null)lo.return=ao;else for(lo=ao;lo!==null;){if(lo===to){lo=null;break}if(ao=lo.sibling,ao!==null){ao.return=lo.return,lo=ao;break}lo=lo.return}ao=lo}Yi$1(eo,to,so.children,no),to=to.child}return to;case 9:return so=to.type,io=to.pendingProps.children,Tg(to,no),so=Vg(so),io=io(so),to.flags|=1,Yi$1(eo,to,io,no),to.child;case 14:return io=to.type,so=Lg(io,to.pendingProps),so=Lg(io.type,so),aj(eo,to,io,so,no);case 15:return cj(eo,to,to.type,to.pendingProps,no);case 17:return io=to.type,so=to.pendingProps,so=to.elementType===io?so:Lg(io,so),jj(eo,to),to.tag=1,Zf(io)?(eo=!0,cg(to)):eo=!1,Tg(to,no),ph(to,io,so),rh(to,io,so,no),kj(null,to,io,!0,eo,no);case 19:return yj(eo,to,no);case 22:return ej(eo,to,no)}throw Error(p$a(156,to.tag))};function Gk(eo,to){return ac(eo,to)}function al(eo,to,no,io){this.tag=eo,this.key=no,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=to,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=io,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(eo,to,no,io){return new al(eo,to,no,io)}function bj(eo){return eo=eo.prototype,!(!eo||!eo.isReactComponent)}function $k(eo){if(typeof eo=="function")return bj(eo)?1:0;if(eo!=null){if(eo=eo.$$typeof,eo===Da)return 11;if(eo===Ga)return 14}return 2}function wh(eo,to){var no=eo.alternate;return no===null?(no=Bg(eo.tag,to,eo.key,eo.mode),no.elementType=eo.elementType,no.type=eo.type,no.stateNode=eo.stateNode,no.alternate=eo,eo.alternate=no):(no.pendingProps=to,no.type=eo.type,no.flags=0,no.subtreeFlags=0,no.deletions=null),no.flags=eo.flags&14680064,no.childLanes=eo.childLanes,no.lanes=eo.lanes,no.child=eo.child,no.memoizedProps=eo.memoizedProps,no.memoizedState=eo.memoizedState,no.updateQueue=eo.updateQueue,to=eo.dependencies,no.dependencies=to===null?null:{lanes:to.lanes,firstContext:to.firstContext},no.sibling=eo.sibling,no.index=eo.index,no.ref=eo.ref,no}function yh(eo,to,no,io,so,ao){var lo=2;if(io=eo,typeof eo=="function")bj(eo)&&(lo=1);else if(typeof eo=="string")lo=5;else e:switch(eo){case ya:return Ah(no.children,so,ao,to);case za:lo=8,so|=8;break;case Aa:return eo=Bg(12,no,to,so|2),eo.elementType=Aa,eo.lanes=ao,eo;case Ea:return eo=Bg(13,no,to,so),eo.elementType=Ea,eo.lanes=ao,eo;case Fa:return eo=Bg(19,no,to,so),eo.elementType=Fa,eo.lanes=ao,eo;case Ia:return qj(no,so,ao,to);default:if(typeof eo=="object"&&eo!==null)switch(eo.$$typeof){case Ba:lo=10;break e;case Ca:lo=9;break e;case Da:lo=11;break e;case Ga:lo=14;break e;case Ha:lo=16,io=null;break e}throw Error(p$a(130,eo==null?eo:typeof eo,""))}return to=Bg(lo,no,to,so),to.elementType=eo,to.type=io,to.lanes=ao,to}function Ah(eo,to,no,io){return eo=Bg(7,eo,io,to),eo.lanes=no,eo}function qj(eo,to,no,io){return eo=Bg(22,eo,io,to),eo.elementType=Ia,eo.lanes=no,eo.stateNode={isHidden:!1},eo}function xh(eo,to,no){return eo=Bg(6,eo,null,to),eo.lanes=no,eo}function zh(eo,to,no){return to=Bg(4,eo.children!==null?eo.children:[],eo.key,to),to.lanes=no,to.stateNode={containerInfo:eo.containerInfo,pendingChildren:null,implementation:eo.implementation},to}function bl(eo,to,no,io,so){this.tag=to,this.containerInfo=eo,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=io,this.onRecoverableError=so,this.mutableSourceEagerHydrationData=null}function cl(eo,to,no,io,so,ao,lo,uo,ho){return eo=new bl(eo,to,no,uo,ho),to===1?(to=1,ao===!0&&(to|=8)):to=0,ao=Bg(3,null,null,to),eo.current=ao,ao.stateNode=eo,ao.memoizedState={element:io,isDehydrated:no,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(ao),eo}function dl(eo,to,no){var io=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(eo){console.error(eo)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var m$9=reactDomExports;client.createRoot=m$9.createRoot,client.hydrateRoot=m$9.hydrateRoot;/** * @remix-run/router v1.7.1 @@ -65,9 +65,9 @@ Error generating stack: `+ao.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _extends$d(){return _extends$d=Object.assign?Object.assign.bind():function(eo){for(var to=1;to=0)&&(no[so]=eo[so]);return no}function isModifiedEvent(eo){return!!(eo.metaKey||eo.altKey||eo.ctrlKey||eo.shiftKey)}function shouldProcessLinkClick(eo,to){return eo.button===0&&(!to||to==="_self")&&!isModifiedEvent(eo)}const _excluded$2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],START_TRANSITION="startTransition",startTransitionImpl=React$1[START_TRANSITION];function BrowserRouter(eo){let{basename:to,children:no,future:io,window:so}=eo,ao=reactExports.useRef();ao.current==null&&(ao.current=createBrowserHistory({window:so,v5Compat:!0}));let lo=ao.current,[uo,ho]=reactExports.useState({action:lo.action,location:lo.location}),{v7_startTransition:go}=io||{},mo=reactExports.useCallback(yo=>{go&&startTransitionImpl?startTransitionImpl(()=>ho(yo)):ho(yo)},[ho,go]);return reactExports.useLayoutEffect(()=>lo.listen(mo),[lo,mo]),reactExports.createElement(Router,{basename:to,children:no,location:uo.location,navigationType:uo.action,navigator:lo})}const isBrowser$3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link$2=reactExports.forwardRef(function(to,no){let{onClick:io,relative:so,reloadDocument:ao,replace:lo,state:uo,target:ho,to:go,preventScrollReset:mo}=to,yo=_objectWithoutPropertiesLoose$4(to,_excluded$2),{basename:So}=reactExports.useContext(NavigationContext),_o,ko=!1;if(typeof go=="string"&&ABSOLUTE_URL_REGEX.test(go)&&(_o=go,isBrowser$3))try{let Oo=new URL(window.location.href),No=go.startsWith("//")?new URL(Oo.protocol+go):new URL(go),Mo=stripBasename(No.pathname,So);No.origin===Oo.origin&&Mo!=null?go=Mo+No.search+No.hash:ko=!0}catch{}let Co=useHref(go,{relative:so}),$o=useLinkClickHandler(go,{replace:lo,state:uo,target:ho,preventScrollReset:mo,relative:so});function Ro(Oo){io&&io(Oo),Oo.defaultPrevented||$o(Oo)}return reactExports.createElement("a",_extends$d({},yo,{href:_o||Co,onClick:ko||ao?io:Ro,ref:no,target:ho}))});var DataRouterHook;(function(eo){eo.UseScrollRestoration="useScrollRestoration",eo.UseSubmit="useSubmit",eo.UseSubmitFetcher="useSubmitFetcher",eo.UseFetcher="useFetcher"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(eo){eo.UseFetchers="useFetchers",eo.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(eo,to){let{target:no,replace:io,state:so,preventScrollReset:ao,relative:lo}=to===void 0?{}:to,uo=useNavigate(),ho=useLocation(),go=useResolvedPath(eo,{relative:lo});return reactExports.useCallback(mo=>{if(shouldProcessLinkClick(mo,no)){mo.preventDefault();let yo=io!==void 0?io:createPath(ho)===createPath(go);uo(eo,{replace:yo,state:so,preventScrollReset:ao,relative:lo})}},[ho,uo,go,io,so,no,eo,ao,lo])}const positionMap=["Top","Right","Bottom","Left"];function generateStyles(eo,to,...no){const[io,so=io,ao=io,lo=so]=no,uo=[io,so,ao,lo],ho={};for(let go=0;gotypeof eo=="string"&&/(\d+(\w+|%))/.test(eo),isUnitless=eo=>typeof eo=="number"&&!Number.isNaN(eo),isInitial=eo=>eo==="initial",isAuto=eo=>eo==="auto",isNone=eo=>eo==="none",widthReservedKeys=["content","fit-content","max-content","min-content"],isWidth=eo=>widthReservedKeys.some(to=>eo===to)||isUnit(eo);function flex(...eo){const to=eo.length===1,no=eo.length===2,io=eo.length===3;if(to){const[so]=eo;if(isInitial(so))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(isAuto(so))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(isNone(so))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(isUnitless(so))return{flexGrow:so,flexShrink:1,flexBasis:0};if(isWidth(so))return{flexGrow:1,flexShrink:1,flexBasis:so}}if(no){const[so,ao]=eo;if(isUnitless(ao))return{flexGrow:so,flexShrink:ao,flexBasis:0};if(isWidth(ao))return{flexGrow:so,flexShrink:1,flexBasis:ao}}if(io){const[so,ao,lo]=eo;if(isUnitless(so)&&isUnitless(ao)&&(isAuto(lo)||isWidth(lo)))return{flexGrow:so,flexShrink:ao,flexBasis:lo}}return{}}function gap(eo,to=eo){return{columnGap:eo,rowGap:to}}const cssVarRegEx=/var\(.*\)/gi;function isValidGridAreaInput(eo){return eo===void 0||typeof eo=="number"||typeof eo=="string"&&!cssVarRegEx.test(eo)}const customIdentRegEx=/^[a-zA-Z0-9\-_\\#;]+$/,nonCustomIdentRegEx=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function isCustomIdent(eo){return eo!==void 0&&typeof eo=="string"&&customIdentRegEx.test(eo)&&!nonCustomIdentRegEx.test(eo)}function gridArea(...eo){if(eo.some(ao=>!isValidGridAreaInput(ao)))return{};const to=eo[0]!==void 0?eo[0]:"auto",no=eo[1]!==void 0?eo[1]:isCustomIdent(to)?to:"auto",io=eo[2]!==void 0?eo[2]:isCustomIdent(to)?to:"auto",so=eo[3]!==void 0?eo[3]:isCustomIdent(no)?no:"auto";return{gridRowStart:to,gridColumnStart:no,gridRowEnd:io,gridColumnEnd:so}}function margin(...eo){return generateStyles("margin","",...eo)}function marginBlock(eo,to=eo){return{marginBlockStart:eo,marginBlockEnd:to}}function marginInline(eo,to=eo){return{marginInlineStart:eo,marginInlineEnd:to}}function padding$2(...eo){return generateStyles("padding","",...eo)}function paddingBlock(eo,to=eo){return{paddingBlockStart:eo,paddingBlockEnd:to}}function paddingInline(eo,to=eo){return{paddingInlineStart:eo,paddingInlineEnd:to}}function overflow(eo,to=eo){return{overflowX:eo,overflowY:to}}function inset(...eo){const[to,no=to,io=to,so=no]=eo;return{top:to,right:no,bottom:io,left:so}}function outline(eo,to,no){return{outlineWidth:eo,...to&&{outlineStyle:to},...no&&{outlineColor:no}}}function transition$1(...eo){return isTransitionGlobalInputs(eo)?{transitionDelay:eo[0],transitionDuration:eo[0],transitionProperty:eo[0],transitionTimingFunction:eo[0]}:normalizeTransitionInputs(eo).reduce((no,[io,so="0s",ao="0s",lo="ease"],uo)=>(uo===0?(no.transitionProperty=io,no.transitionDuration=so,no.transitionDelay=ao,no.transitionTimingFunction=lo):(no.transitionProperty+=`, ${io}`,no.transitionDuration+=`, ${so}`,no.transitionDelay+=`, ${ao}`,no.transitionTimingFunction+=`, ${lo}`),no),{})}const transitionGlobalInputs=["-moz-initial","inherit","initial","revert","unset"];function isTransitionGlobalInputs(eo){return eo.length===1&&transitionGlobalInputs.includes(eo[0])}function normalizeTransitionInputs(eo){return eo.length===1&&Array.isArray(eo[0])?eo[0]:[eo]}function textDecoration(eo,...to){if(to.length===0)return isTextDecorationStyleInput(eo)?{textDecorationStyle:eo}:{textDecorationLine:eo};const[no,io,so]=to;return{textDecorationLine:eo,...no&&{textDecorationStyle:no},...io&&{textDecorationColor:io},...so&&{textDecorationThickness:so}}}const textDecorationStyleInputs=["dashed","dotted","double","solid","wavy"];function isTextDecorationStyleInput(eo){return textDecorationStyleInputs.includes(eo)}const __GLOBAL__=typeof window>"u"?global:window,__NAMESPACE_PREFIX__="@griffel/";function getGlobalVar(eo,to){return __GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]||(__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]=to),__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]}const DEFINITION_LOOKUP_TABLE=getGlobalVar("DEFINITION_LOOKUP_TABLE",{}),DATA_BUCKET_ATTR="data-make-styles-bucket",HASH_PREFIX="f",SEQUENCE_HASH_LENGTH=7,SEQUENCE_PREFIX="___",SEQUENCE_SIZE=SEQUENCE_PREFIX.length+SEQUENCE_HASH_LENGTH,LOOKUP_DEFINITIONS_INDEX=0,LOOKUP_DIR_INDEX=1,UNSUPPORTED_CSS_PROPERTIES={all:1,animation:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1};function murmur2(eo){for(var to=0,no,io=0,so=eo.length;so>=4;++io,so-=4)no=eo.charCodeAt(io)&255|(eo.charCodeAt(++io)&255)<<8|(eo.charCodeAt(++io)&255)<<16|(eo.charCodeAt(++io)&255)<<24,no=(no&65535)*1540483477+((no>>>16)*59797<<16),no^=no>>>24,to=(no&65535)*1540483477+((no>>>16)*59797<<16)^(to&65535)*1540483477+((to>>>16)*59797<<16);switch(so){case 3:to^=(eo.charCodeAt(io+2)&255)<<16;case 2:to^=(eo.charCodeAt(io+1)&255)<<8;case 1:to^=eo.charCodeAt(io)&255,to=(to&65535)*1540483477+((to>>>16)*59797<<16)}return to^=to>>>13,to=(to&65535)*1540483477+((to>>>16)*59797<<16),((to^to>>>15)>>>0).toString(36)}function padEndHash(eo){const to=eo.length;if(to===SEQUENCE_HASH_LENGTH)return eo;for(let no=to;no0&&(to+=mo.slice(0,yo)),no+=So,io[go]=So}}}if(no==="")return to.slice(0,-1);const so=mergeClassesCachedResults[no];if(so!==void 0)return to+so;const ao=[];for(let go=0;go{const to=Object.keys(mergeClassesCachedResults).find(no=>mergeClassesCachedResults[no].startsWith(eo));return to?to.split(SEQUENCE_PREFIX).filter(no=>no.length).map(no=>SEQUENCE_PREFIX+no):[]},addCSSRule:eo=>{cssRules.add(eo)},addSequenceDetails:(eo,to)=>{Object.entries(eo).forEach(([no,io])=>{sequenceDetails[io.substring(0,SEQUENCE_SIZE)]={slotName:no,sourceURL:to}})},getCSSRules:()=>Array.from(cssRules),getSequenceDetails:eo=>sequenceDetails[eo]};function getDirectionalClassName(eo,to){return Array.isArray(eo)?to==="rtl"?eo[1]:eo[0]:eo}function getDebugClassNames(eo,to,no,io){const so=eo[0],ao=eo[1];return Object.entries(so).map(([lo,uo])=>{const ho=getDirectionalClassName(uo,ao);let go;if(no&&to){const mo=no.find(({className:yo})=>yo===ho);!mo&&to[0][lo]?go=getDirectionalClassName(to[0][lo],to[1]):mo&&to[0][lo]?go=(io?io.filter(({debugClassNames:So})=>So.filter(({className:_o})=>_o===ho).length>0).length>0:!1)?mo.className:mo.overriddenBy:(!mo&&!to[0][lo]||mo&&!to[0][lo])&&(go=void 0)}return{className:ho,overriddenBy:go}})}function getDebugTree(eo,to){const no=DEFINITION_LOOKUP_TABLE[eo];if(no===void 0)return;const io=to?DEFINITION_LOOKUP_TABLE[to.sequenceHash]:void 0,so=getDebugClassNames(no,io,to==null?void 0:to.debugClassNames,to==null?void 0:to.children),ao={sequenceHash:eo,direction:no[1],children:[],debugClassNames:so};return debugData.getChildrenSequences(ao.sequenceHash).reverse().forEach(uo=>{const ho=getDebugTree(uo,ao);ho&&ao.children.push(ho)}),ao.children.length||(ao.rules={},ao.debugClassNames.forEach(({className:uo})=>{const ho=debugData.getSequenceDetails(eo);ho&&(ao.slot=ho.slotName,ao.sourceURL=ho.sourceURL);const go=debugData.getCSSRules().find(mo=>mo.includes(uo));ao.rules[uo]=go})),ao}function injectDevTools(eo){const to=eo.defaultView;if(!to||to.__GRIFFEL_DEVTOOLS__)return;const no={getInfo:io=>{const so=Array.from(io.classList).find(ao=>ao.startsWith(SEQUENCE_PREFIX));if(so!==void 0)return getDebugTree(so)}};Object.defineProperty(to,"__GRIFFEL_DEVTOOLS__",{configurable:!1,enumerable:!1,get(){return no}})}function normalizeCSSBucketEntry(eo){return Array.isArray(eo)?eo:[eo]}function createIsomorphicStyleSheet(eo,to,no){const io=[];if(no[DATA_BUCKET_ATTR]=to,eo)for(const ao in no)eo.setAttribute(ao,no[ao]);function so(ao){return eo!=null&&eo.sheet?eo.sheet.insertRule(ao,eo.sheet.cssRules.length):io.push(ao)}return{elementAttributes:no,insertRule:so,element:eo,bucketName:to,cssRules(){return eo!=null&&eo.sheet?Array.from(eo.sheet.cssRules).map(ao=>ao.cssText):io}}}const styleBucketOrdering=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],styleBucketOrderingMap=styleBucketOrdering.reduce((eo,to,no)=>(eo[to]=no,eo),{});function getStyleSheetForBucket(eo,to,no,io,so={}){const ao=eo==="m",lo=ao?eo+so.m:eo;if(!io.stylesheets[lo]){const uo=to&&to.createElement("style"),ho=createIsomorphicStyleSheet(uo,eo,{...io.styleElementAttributes,...ao&&{media:so.m}});io.stylesheets[lo]=ho,to&&uo&&to.head.insertBefore(uo,findInsertionPoint(to,no,eo,io,so))}return io.stylesheets[lo]}function findInsertionPoint(eo,to,no,io,so){const ao=styleBucketOrderingMap[no];let lo=mo=>ao-styleBucketOrderingMap[mo.getAttribute(DATA_BUCKET_ATTR)],uo=eo.head.querySelectorAll(`[${DATA_BUCKET_ATTR}]`);if(no==="m"&&so){const mo=eo.head.querySelectorAll(`[${DATA_BUCKET_ATTR}="${no}"]`);mo.length&&(uo=mo,lo=yo=>io.compareMediaQueries(so.m,yo.media))}const ho=uo.length;let go=ho-1;for(;go>=0;){const mo=uo.item(go);if(lo(mo)>0)return mo.nextSibling;go--}return ho>0?uo.item(0):to?to.nextSibling:null}function safeInsertRule(eo,to){try{eo.insertRule(to)}catch{}}let lastIndex=0;const defaultCompareMediaQueries=(eo,to)=>eoto?1:0;function createDOMRenderer(eo=typeof document>"u"?void 0:document,to={}){const{unstable_filterCSSRule:no,insertionPoint:io,styleElementAttributes:so,compareMediaQueries:ao=defaultCompareMediaQueries}=to,lo={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(so),compareMediaQueries:ao,id:`d${lastIndex++}`,insertCSSRules(uo){for(const ho in uo){const go=uo[ho];for(let mo=0,yo=go.length;mo{const eo={};return function(no,io){eo[no.id]===void 0&&(no.insertCSSRules(io),eo[no.id]=!0)}};function arrayToObject(eo){return eo.reduce(function(to,no){var io=no[0],so=no[1];return to[io]=so,to[so]=io,to},{})}function isBoolean$1(eo){return typeof eo=="boolean"}function isFunction$9(eo){return typeof eo=="function"}function isNumber$2(eo){return typeof eo=="number"}function isNullOrUndefined$1(eo){return eo===null||typeof eo>"u"}function isObject$l(eo){return eo&&typeof eo=="object"}function isString$2(eo){return typeof eo=="string"}function includes$1(eo,to){return eo.indexOf(to)!==-1}function flipSign(eo){return parseFloat(eo)===0?eo:eo[0]==="-"?eo.slice(1):"-"+eo}function flipTransformSign(eo,to,no,io){return to+flipSign(no)+io}function calculateNewBackgroundPosition(eo){var to=eo.indexOf(".");if(to===-1)eo=100-parseFloat(eo)+"%";else{var no=eo.length-to-2;eo=100-parseFloat(eo),eo=eo.toFixed(no)+"%"}return eo}function getValuesAsList(eo){return eo.replace(/ +/g," ").split(" ").map(function(to){return to.trim()}).filter(Boolean).reduce(function(to,no){var io=to.list,so=to.state,ao=(no.match(/\(/g)||[]).length,lo=(no.match(/\)/g)||[]).length;return so.parensDepth>0?io[io.length-1]=io[io.length-1]+" "+no:io.push(no),so.parensDepth+=ao-lo,{list:io,state:so}},{list:[],state:{parensDepth:0}}).list}function handleQuartetValues(eo){var to=getValuesAsList(eo);if(to.length<=3||to.length>4)return eo;var no=to[0],io=to[1],so=to[2],ao=to[3];return[no,ao,so,io].join(" ")}function canConvertValue(eo){return!isBoolean$1(eo)&&!isNullOrUndefined$1(eo)}function splitShadow(eo){for(var to=[],no=0,io=0,so=!1;io0?charat$2(characters$2,--position$7):0,column$2--,character$2===10&&(column$2=1,line$4--),character$2}function next$3(){return character$2=position$72||token$3(character$2)>3?"":" "}function tokenizer(eo){for(;next$3();)switch(token$3(character$2)){case 0:append$3(identifier$2(position$7-1),eo);break;case 2:append$3(delimit$2(character$2),eo);break;default:append$3(from$3(character$2),eo)}return eo}function escaping$2(eo,to){for(;--to&&next$3()&&!(character$2<48||character$2>102||character$2>57&&character$2<65||character$2>70&&character$2<97););return slice$3(eo,caret$2()+(to<6&&peek$2()==32&&next$3()==32))}function delimiter$3(eo){for(;next$3();)switch(character$2){case eo:return position$7;case 34:case 39:eo!==34&&eo!==39&&delimiter$3(character$2);break;case 40:eo===41&&delimiter$3(eo);break;case 92:next$3();break}return position$7}function commenter$2(eo,to){for(;next$3()&&eo+character$2!==57;)if(eo+character$2===84&&peek$2()===47)break;return"/*"+slice$3(to,position$7-1)+"*"+from$3(eo===47?eo:next$3())}function identifier$2(eo){for(;!token$3(peek$2());)next$3();return slice$3(eo,position$7)}function compile$2(eo){return dealloc$2(parse$w("",null,null,null,[""],eo=alloc$2(eo),0,[0],eo))}function parse$w(eo,to,no,io,so,ao,lo,uo,ho){for(var go=0,mo=0,yo=lo,So=0,_o=0,ko=0,Co=1,$o=1,Ro=1,Oo=0,No="",Mo=so,Bo=ao,Po=io,Lo=No;$o;)switch(ko=Oo,Oo=next$3()){case 40:if(ko!=108&&charat$2(Lo,yo-1)==58){indexof$2(Lo+=replace$3(delimit$2(Oo),"&","&\f"),"&\f")!=-1&&(Ro=-1);break}case 34:case 39:case 91:Lo+=delimit$2(Oo);break;case 9:case 10:case 13:case 32:Lo+=whitespace$2(ko);break;case 92:Lo+=escaping$2(caret$2()-1,7);continue;case 47:switch(peek$2()){case 42:case 47:append$3(comment$3(commenter$2(next$3(),caret$2()),to,no,ho),ho);break;default:Lo+="/"}break;case 123*Co:uo[go++]=strlen$2(Lo)*Ro;case 125*Co:case 59:case 0:switch(Oo){case 0:case 125:$o=0;case 59+mo:Ro==-1&&(Lo=replace$3(Lo,/\f/g,"")),_o>0&&strlen$2(Lo)-yo&&append$3(_o>32?declaration$2(Lo+";",io,no,yo-1,ho):declaration$2(replace$3(Lo," ","")+";",io,no,yo-2,ho),ho);break;case 59:Lo+=";";default:if(append$3(Po=ruleset$2(Lo,to,no,go,mo,so,uo,No,Mo=[],Bo=[],yo,ao),ao),Oo===123)if(mo===0)parse$w(Lo,to,Po,Po,Mo,ao,yo,uo,Bo);else switch(So===99&&charat$2(Lo,3)===110?100:So){case 100:case 108:case 109:case 115:parse$w(eo,Po,Po,io&&append$3(ruleset$2(eo,Po,Po,0,0,so,uo,No,so,Mo=[],yo,Bo),Bo),so,Bo,yo,uo,io?Mo:Bo);break;default:parse$w(Lo,Po,Po,Po,[""],Bo,0,uo,Bo)}}go=mo=_o=0,Co=Ro=1,No=Lo="",yo=lo;break;case 58:yo=1+strlen$2(Lo),_o=ko;default:if(Co<1){if(Oo==123)--Co;else if(Oo==125&&Co++==0&&prev$2()==125)continue}switch(Lo+=from$3(Oo),Oo*Co){case 38:Ro=mo>0?1:(Lo+="\f",-1);break;case 44:uo[go++]=(strlen$2(Lo)-1)*Ro,Ro=1;break;case 64:peek$2()===45&&(Lo+=delimit$2(next$3())),So=peek$2(),mo=yo=strlen$2(No=Lo+=identifier$2(caret$2())),Oo++;break;case 45:ko===45&&strlen$2(Lo)==2&&(Co=0)}}return ao}function ruleset$2(eo,to,no,io,so,ao,lo,uo,ho,go,mo,yo){for(var So=so-1,_o=so===0?ao:[""],ko=sizeof$2(_o),Co=0,$o=0,Ro=0;Co0?_o[Oo]+" "+No:replace$3(No,/&\f/g,_o[Oo])))&&(ho[Ro++]=Mo);return node$3(eo,to,no,so===0?RULESET$2:uo,ho,go,mo,yo)}function comment$3(eo,to,no,io){return node$3(eo,to,no,COMMENT$2,from$3(char$2()),substr$2(eo,2,-2),0,io)}function declaration$2(eo,to,no,io,so){return node$3(eo,to,no,DECLARATION$2,substr$2(eo,0,io),substr$2(eo,io+1,-1),io,so)}function serialize$2(eo,to){for(var no="",io=0;io{switch(eo.type){case RULESET$2:if(typeof eo.props=="string")return;eo.props=eo.props.map(to=>to.indexOf(":global(")===-1?to:tokenize(to).reduce((no,io,so,ao)=>{if(io==="")return no;if(io===":"&&ao[so+1]==="global"){const lo=ao[so+2].slice(1,-1)+" ";return no.unshift(lo),ao[so+1]="",ao[so+2]="",no}return no.push(io),no},[]).join(""))}};function prefix$3(eo,to,no){switch(hash$3(eo,to)){case 5103:return WEBKIT$1+"print-"+eo+eo;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return WEBKIT$1+eo+eo;case 4215:if(charat$2(eo,9)===102||charat$2(eo,to+1)===116)return WEBKIT$1+eo+eo;break;case 4789:return MOZ$1+eo+eo;case 5349:case 4246:case 6968:return WEBKIT$1+eo+MOZ$1+eo+eo;case 6187:if(!match$q(eo,/grab/))return replace$3(replace$3(replace$3(eo,/(zoom-|grab)/,WEBKIT$1+"$1"),/(image-set)/,WEBKIT$1+"$1"),eo,"")+eo;case 5495:case 3959:return replace$3(eo,/(image-set\([^]*)/,WEBKIT$1+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return replace$3(eo,/(.+)-inline(.+)/,WEBKIT$1+"$1$2")+eo;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen$2(eo)-1-to>6)switch(charat$2(eo,to+1)){case 102:if(charat$2(eo,to+3)===108)return replace$3(eo,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT$1+"$2-$3$1"+MOZ$1+(charat$2(eo,to+3)==108?"$3":"$2-$3"))+eo;case 115:return~indexof$2(eo,"stretch")?prefix$3(replace$3(eo,"stretch","fill-available"),to)+eo:eo}break}return eo}function prefixerPlugin(eo,to,no,io){if(eo.length>-1&&!eo.return)switch(eo.type){case DECLARATION$2:eo.return=prefix$3(eo.value,eo.length);return;case RULESET$2:if(eo.length)return combine$1(eo.props,function(so){switch(match$q(so,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$2([copy$6(eo,{props:[replace$3(so,/:(read-\w+)/,":"+MOZ$1+"$1")]})],io);case"::placeholder":return serialize$2([copy$6(eo,{props:[replace$3(so,/:(plac\w+)/,":"+WEBKIT$1+"input-$1")]}),copy$6(eo,{props:[replace$3(so,/:(plac\w+)/,":"+MOZ$1+"$1")]})],io)}return""})}}function isAtRuleElement(eo){switch(eo.type){case"@container":case MEDIA:case SUPPORTS:case LAYER$2:return!0}return!1}const sortClassesInAtRulesPlugin=eo=>{isAtRuleElement(eo)&&Array.isArray(eo.children)&&eo.children.sort((to,no)=>to.props[0]>no.props[0]?1:-1)};function noop$e(){}function compileCSSRules(eo,to){const no=[];return serialize$2(compile$2(eo),middleware$1([globalPlugin,to?sortClassesInAtRulesPlugin:noop$e,prefixerPlugin,stringify$3,rulesheet$1(io=>no.push(io))])),no}const PSEUDO_SELECTOR_REGEX=/,( *[^ &])/g;function normalizePseudoSelector(eo){return"&"+normalizeNestedProperty(eo.replace(PSEUDO_SELECTOR_REGEX,",&$1"))}function createCSSRule(eo,to,no){let io=to;return no.length>0&&(io=no.reduceRight((so,ao)=>`${normalizePseudoSelector(ao)} { ${so} }`,to)),`${eo}{${io}}`}function compileAtomicCSSRule(eo){const{className:to,media:no,layer:io,selectors:so,support:ao,property:lo,rtlClassName:uo,rtlProperty:ho,rtlValue:go,value:mo,container:yo}=eo,So=`.${to}`,_o=Array.isArray(mo)?`${mo.map(Co=>`${hyphenateProperty(lo)}: ${Co}`).join(";")};`:`${hyphenateProperty(lo)}: ${mo};`;let ko=createCSSRule(So,_o,so);if(ho&&uo){const Co=`.${uo}`,$o=Array.isArray(go)?`${go.map(Ro=>`${hyphenateProperty(ho)}: ${Ro}`).join(";")};`:`${hyphenateProperty(ho)}: ${go};`;ko+=createCSSRule(Co,$o,so)}return no&&(ko=`@media ${no} { ${ko} }`),io&&(ko=`@layer ${io} { ${ko} }`),ao&&(ko=`@supports ${ao} { ${ko} }`),yo&&(ko=`@container ${yo} { ${ko} }`),compileCSSRules(ko,!0)}function cssifyObject(eo){let to="";for(const no in eo){const io=eo[no];typeof io!="string"&&typeof io!="number"||(to+=hyphenateProperty(no)+":"+io+";")}return to}function compileKeyframeRule(eo){let to="";for(const no in eo)to+=`${no}{${cssifyObject(eo[no])}}`;return to}function compileKeyframesCSS(eo,to){const no=`@keyframes ${eo} {${to}}`,io=[];return serialize$2(compile$2(no),middleware$1([stringify$3,prefixerPlugin,rulesheet$1(so=>io.push(so))])),io}function generateCombinedQuery(eo,to){return eo.length===0?to:`${eo} and ${to}`}function isMediaQuerySelector(eo){return eo.substr(0,6)==="@media"}function isLayerSelector(eo){return eo.substr(0,6)==="@layer"}const regex=/^(:|\[|>|&)/;function isNestedSelector(eo){return regex.test(eo)}function isSupportQuerySelector(eo){return eo.substr(0,9)==="@supports"}function isContainerQuerySelector(eo){return eo.substring(0,10)==="@container"}function isObject$k(eo){return eo!=null&&typeof eo=="object"&&Array.isArray(eo)===!1}const pseudosMap={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function getStyleBucketName(eo,to,no,io,so){if(no)return"m";if(to||io)return"t";if(so)return"c";if(eo.length>0){const ao=eo[0].trim();if(ao.charCodeAt(0)===58)return pseudosMap[ao.slice(4,8)]||pseudosMap[ao.slice(3,5)]||"d"}return"d"}function hashClassName({container:eo,media:to,layer:no,property:io,selector:so,support:ao,value:lo}){const uo=murmur2(so+eo+to+no+ao+io+lo.trim());return HASH_PREFIX+uo}function hashPropertyKey(eo,to,no,io,so){const ao=eo+to+no+io+so,lo=murmur2(ao),uo=lo.charCodeAt(0);return uo>=48&&uo<=57?String.fromCharCode(uo+17)+lo.slice(1):lo}function trimSelector(eo){return eo.replace(/>\s+/g,">")}function warnAboutUnresolvedRule(eo,to){const no=JSON.stringify(to,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${eo}": ${no.split(` + */function _extends$d(){return _extends$d=Object.assign?Object.assign.bind():function(eo){for(var to=1;to=0)&&(no[so]=eo[so]);return no}function isModifiedEvent(eo){return!!(eo.metaKey||eo.altKey||eo.ctrlKey||eo.shiftKey)}function shouldProcessLinkClick(eo,to){return eo.button===0&&(!to||to==="_self")&&!isModifiedEvent(eo)}const _excluded$2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],START_TRANSITION="startTransition",startTransitionImpl=React$1[START_TRANSITION];function BrowserRouter(eo){let{basename:to,children:no,future:io,window:so}=eo,ao=reactExports.useRef();ao.current==null&&(ao.current=createBrowserHistory({window:so,v5Compat:!0}));let lo=ao.current,[uo,ho]=reactExports.useState({action:lo.action,location:lo.location}),{v7_startTransition:go}=io||{},mo=reactExports.useCallback(yo=>{go&&startTransitionImpl?startTransitionImpl(()=>ho(yo)):ho(yo)},[ho,go]);return reactExports.useLayoutEffect(()=>lo.listen(mo),[lo,mo]),reactExports.createElement(Router,{basename:to,children:no,location:uo.location,navigationType:uo.action,navigator:lo})}const isBrowser$3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link$2=reactExports.forwardRef(function(to,no){let{onClick:io,relative:so,reloadDocument:ao,replace:lo,state:uo,target:ho,to:go,preventScrollReset:mo}=to,yo=_objectWithoutPropertiesLoose$4(to,_excluded$2),{basename:So}=reactExports.useContext(NavigationContext),_o,ko=!1;if(typeof go=="string"&&ABSOLUTE_URL_REGEX.test(go)&&(_o=go,isBrowser$3))try{let Oo=new URL(window.location.href),No=go.startsWith("//")?new URL(Oo.protocol+go):new URL(go),Mo=stripBasename(No.pathname,So);No.origin===Oo.origin&&Mo!=null?go=Mo+No.search+No.hash:ko=!0}catch{}let Co=useHref(go,{relative:so}),$o=useLinkClickHandler(go,{replace:lo,state:uo,target:ho,preventScrollReset:mo,relative:so});function Ro(Oo){io&&io(Oo),Oo.defaultPrevented||$o(Oo)}return reactExports.createElement("a",_extends$d({},yo,{href:_o||Co,onClick:ko||ao?io:Ro,ref:no,target:ho}))});var DataRouterHook;(function(eo){eo.UseScrollRestoration="useScrollRestoration",eo.UseSubmit="useSubmit",eo.UseSubmitFetcher="useSubmitFetcher",eo.UseFetcher="useFetcher"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(eo){eo.UseFetchers="useFetchers",eo.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(eo,to){let{target:no,replace:io,state:so,preventScrollReset:ao,relative:lo}=to===void 0?{}:to,uo=useNavigate(),ho=useLocation(),go=useResolvedPath(eo,{relative:lo});return reactExports.useCallback(mo=>{if(shouldProcessLinkClick(mo,no)){mo.preventDefault();let yo=io!==void 0?io:createPath(ho)===createPath(go);uo(eo,{replace:yo,state:so,preventScrollReset:ao,relative:lo})}},[ho,uo,go,io,so,no,eo,ao,lo])}const positionMap=["Top","Right","Bottom","Left"];function generateStyles(eo,to,...no){const[io,so=io,ao=io,lo=so]=no,uo=[io,so,ao,lo],ho={};for(let go=0;gotypeof eo=="string"&&/(\d+(\w+|%))/.test(eo),isUnitless=eo=>typeof eo=="number"&&!Number.isNaN(eo),isInitial=eo=>eo==="initial",isAuto=eo=>eo==="auto",isNone=eo=>eo==="none",widthReservedKeys=["content","fit-content","max-content","min-content"],isWidth=eo=>widthReservedKeys.some(to=>eo===to)||isUnit(eo);function flex(...eo){const to=eo.length===1,no=eo.length===2,io=eo.length===3;if(to){const[so]=eo;if(isInitial(so))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(isAuto(so))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(isNone(so))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(isUnitless(so))return{flexGrow:so,flexShrink:1,flexBasis:0};if(isWidth(so))return{flexGrow:1,flexShrink:1,flexBasis:so}}if(no){const[so,ao]=eo;if(isUnitless(ao))return{flexGrow:so,flexShrink:ao,flexBasis:0};if(isWidth(ao))return{flexGrow:so,flexShrink:1,flexBasis:ao}}if(io){const[so,ao,lo]=eo;if(isUnitless(so)&&isUnitless(ao)&&(isAuto(lo)||isWidth(lo)))return{flexGrow:so,flexShrink:ao,flexBasis:lo}}return{}}function gap(eo,to=eo){return{columnGap:eo,rowGap:to}}const cssVarRegEx=/var\(.*\)/gi;function isValidGridAreaInput(eo){return eo===void 0||typeof eo=="number"||typeof eo=="string"&&!cssVarRegEx.test(eo)}const customIdentRegEx=/^[a-zA-Z0-9\-_\\#;]+$/,nonCustomIdentRegEx=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function isCustomIdent(eo){return eo!==void 0&&typeof eo=="string"&&customIdentRegEx.test(eo)&&!nonCustomIdentRegEx.test(eo)}function gridArea(...eo){if(eo.some(ao=>!isValidGridAreaInput(ao)))return{};const to=eo[0]!==void 0?eo[0]:"auto",no=eo[1]!==void 0?eo[1]:isCustomIdent(to)?to:"auto",io=eo[2]!==void 0?eo[2]:isCustomIdent(to)?to:"auto",so=eo[3]!==void 0?eo[3]:isCustomIdent(no)?no:"auto";return{gridRowStart:to,gridColumnStart:no,gridRowEnd:io,gridColumnEnd:so}}function margin(...eo){return generateStyles("margin","",...eo)}function marginBlock(eo,to=eo){return{marginBlockStart:eo,marginBlockEnd:to}}function marginInline(eo,to=eo){return{marginInlineStart:eo,marginInlineEnd:to}}function padding$2(...eo){return generateStyles("padding","",...eo)}function paddingBlock(eo,to=eo){return{paddingBlockStart:eo,paddingBlockEnd:to}}function paddingInline(eo,to=eo){return{paddingInlineStart:eo,paddingInlineEnd:to}}function overflow(eo,to=eo){return{overflowX:eo,overflowY:to}}function inset(...eo){const[to,no=to,io=to,so=no]=eo;return{top:to,right:no,bottom:io,left:so}}function outline(eo,to,no){return{outlineWidth:eo,...to&&{outlineStyle:to},...no&&{outlineColor:no}}}function transition$1(...eo){return isTransitionGlobalInputs(eo)?{transitionDelay:eo[0],transitionDuration:eo[0],transitionProperty:eo[0],transitionTimingFunction:eo[0]}:normalizeTransitionInputs(eo).reduce((no,[io,so="0s",ao="0s",lo="ease"],uo)=>(uo===0?(no.transitionProperty=io,no.transitionDuration=so,no.transitionDelay=ao,no.transitionTimingFunction=lo):(no.transitionProperty+=`, ${io}`,no.transitionDuration+=`, ${so}`,no.transitionDelay+=`, ${ao}`,no.transitionTimingFunction+=`, ${lo}`),no),{})}const transitionGlobalInputs=["-moz-initial","inherit","initial","revert","unset"];function isTransitionGlobalInputs(eo){return eo.length===1&&transitionGlobalInputs.includes(eo[0])}function normalizeTransitionInputs(eo){return eo.length===1&&Array.isArray(eo[0])?eo[0]:[eo]}function textDecoration(eo,...to){if(to.length===0)return isTextDecorationStyleInput(eo)?{textDecorationStyle:eo}:{textDecorationLine:eo};const[no,io,so]=to;return{textDecorationLine:eo,...no&&{textDecorationStyle:no},...io&&{textDecorationColor:io},...so&&{textDecorationThickness:so}}}const textDecorationStyleInputs=["dashed","dotted","double","solid","wavy"];function isTextDecorationStyleInput(eo){return textDecorationStyleInputs.includes(eo)}const __GLOBAL__=typeof window>"u"?global:window,__NAMESPACE_PREFIX__="@griffel/";function getGlobalVar(eo,to){return __GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]||(__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]=to),__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]}const DEFINITION_LOOKUP_TABLE=getGlobalVar("DEFINITION_LOOKUP_TABLE",{}),DATA_BUCKET_ATTR="data-make-styles-bucket",HASH_PREFIX="f",SEQUENCE_HASH_LENGTH=7,SEQUENCE_PREFIX="___",SEQUENCE_SIZE=SEQUENCE_PREFIX.length+SEQUENCE_HASH_LENGTH,LOOKUP_DEFINITIONS_INDEX=0,LOOKUP_DIR_INDEX=1,UNSUPPORTED_CSS_PROPERTIES={all:1,animation:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1};function murmur2(eo){for(var to=0,no,io=0,so=eo.length;so>=4;++io,so-=4)no=eo.charCodeAt(io)&255|(eo.charCodeAt(++io)&255)<<8|(eo.charCodeAt(++io)&255)<<16|(eo.charCodeAt(++io)&255)<<24,no=(no&65535)*1540483477+((no>>>16)*59797<<16),no^=no>>>24,to=(no&65535)*1540483477+((no>>>16)*59797<<16)^(to&65535)*1540483477+((to>>>16)*59797<<16);switch(so){case 3:to^=(eo.charCodeAt(io+2)&255)<<16;case 2:to^=(eo.charCodeAt(io+1)&255)<<8;case 1:to^=eo.charCodeAt(io)&255,to=(to&65535)*1540483477+((to>>>16)*59797<<16)}return to^=to>>>13,to=(to&65535)*1540483477+((to>>>16)*59797<<16),((to^to>>>15)>>>0).toString(36)}function padEndHash(eo){const to=eo.length;if(to===SEQUENCE_HASH_LENGTH)return eo;for(let no=to;no0&&(to+=mo.slice(0,yo)),no+=So,io[go]=So}}}if(no==="")return to.slice(0,-1);const so=mergeClassesCachedResults[no];if(so!==void 0)return to+so;const ao=[];for(let go=0;go{const to=Object.keys(mergeClassesCachedResults).find(no=>mergeClassesCachedResults[no].startsWith(eo));return to?to.split(SEQUENCE_PREFIX).filter(no=>no.length).map(no=>SEQUENCE_PREFIX+no):[]},addCSSRule:eo=>{cssRules.add(eo)},addSequenceDetails:(eo,to)=>{Object.entries(eo).forEach(([no,io])=>{sequenceDetails[io.substring(0,SEQUENCE_SIZE)]={slotName:no,sourceURL:to}})},getCSSRules:()=>Array.from(cssRules),getSequenceDetails:eo=>sequenceDetails[eo]};function getDirectionalClassName(eo,to){return Array.isArray(eo)?to==="rtl"?eo[1]:eo[0]:eo}function getDebugClassNames(eo,to,no,io){const so=eo[0],ao=eo[1];return Object.entries(so).map(([lo,uo])=>{const ho=getDirectionalClassName(uo,ao);let go;if(no&&to){const mo=no.find(({className:yo})=>yo===ho);!mo&&to[0][lo]?go=getDirectionalClassName(to[0][lo],to[1]):mo&&to[0][lo]?go=(io?io.filter(({debugClassNames:So})=>So.filter(({className:_o})=>_o===ho).length>0).length>0:!1)?mo.className:mo.overriddenBy:(!mo&&!to[0][lo]||mo&&!to[0][lo])&&(go=void 0)}return{className:ho,overriddenBy:go}})}function getDebugTree(eo,to){const no=DEFINITION_LOOKUP_TABLE[eo];if(no===void 0)return;const io=to?DEFINITION_LOOKUP_TABLE[to.sequenceHash]:void 0,so=getDebugClassNames(no,io,to==null?void 0:to.debugClassNames,to==null?void 0:to.children),ao={sequenceHash:eo,direction:no[1],children:[],debugClassNames:so};return debugData.getChildrenSequences(ao.sequenceHash).reverse().forEach(uo=>{const ho=getDebugTree(uo,ao);ho&&ao.children.push(ho)}),ao.children.length||(ao.rules={},ao.debugClassNames.forEach(({className:uo})=>{const ho=debugData.getSequenceDetails(eo);ho&&(ao.slot=ho.slotName,ao.sourceURL=ho.sourceURL);const go=debugData.getCSSRules().find(mo=>mo.includes(uo));ao.rules[uo]=go})),ao}function injectDevTools(eo){const to=eo.defaultView;if(!to||to.__GRIFFEL_DEVTOOLS__)return;const no={getInfo:io=>{const so=Array.from(io.classList).find(ao=>ao.startsWith(SEQUENCE_PREFIX));if(so!==void 0)return getDebugTree(so)}};Object.defineProperty(to,"__GRIFFEL_DEVTOOLS__",{configurable:!1,enumerable:!1,get(){return no}})}function normalizeCSSBucketEntry(eo){return Array.isArray(eo)?eo:[eo]}function createIsomorphicStyleSheet(eo,to,no){const io=[];if(no[DATA_BUCKET_ATTR]=to,eo)for(const ao in no)eo.setAttribute(ao,no[ao]);function so(ao){return eo!=null&&eo.sheet?eo.sheet.insertRule(ao,eo.sheet.cssRules.length):io.push(ao)}return{elementAttributes:no,insertRule:so,element:eo,bucketName:to,cssRules(){return eo!=null&&eo.sheet?Array.from(eo.sheet.cssRules).map(ao=>ao.cssText):io}}}const styleBucketOrdering=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],styleBucketOrderingMap=styleBucketOrdering.reduce((eo,to,no)=>(eo[to]=no,eo),{});function getStyleSheetForBucket(eo,to,no,io,so={}){const ao=eo==="m",lo=ao?eo+so.m:eo;if(!io.stylesheets[lo]){const uo=to&&to.createElement("style"),ho=createIsomorphicStyleSheet(uo,eo,{...io.styleElementAttributes,...ao&&{media:so.m}});io.stylesheets[lo]=ho,to&&uo&&to.head.insertBefore(uo,findInsertionPoint(to,no,eo,io,so))}return io.stylesheets[lo]}function findInsertionPoint(eo,to,no,io,so){const ao=styleBucketOrderingMap[no];let lo=mo=>ao-styleBucketOrderingMap[mo.getAttribute(DATA_BUCKET_ATTR)],uo=eo.head.querySelectorAll(`[${DATA_BUCKET_ATTR}]`);if(no==="m"&&so){const mo=eo.head.querySelectorAll(`[${DATA_BUCKET_ATTR}="${no}"]`);mo.length&&(uo=mo,lo=yo=>io.compareMediaQueries(so.m,yo.media))}const ho=uo.length;let go=ho-1;for(;go>=0;){const mo=uo.item(go);if(lo(mo)>0)return mo.nextSibling;go--}return ho>0?uo.item(0):to?to.nextSibling:null}function safeInsertRule(eo,to){try{eo.insertRule(to)}catch{}}let lastIndex=0;const defaultCompareMediaQueries=(eo,to)=>eoto?1:0;function createDOMRenderer(eo=typeof document>"u"?void 0:document,to={}){const{unstable_filterCSSRule:no,insertionPoint:io,styleElementAttributes:so,compareMediaQueries:ao=defaultCompareMediaQueries}=to,lo={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(so),compareMediaQueries:ao,id:`d${lastIndex++}`,insertCSSRules(uo){for(const ho in uo){const go=uo[ho];for(let mo=0,yo=go.length;mo{const eo={};return function(no,io){eo[no.id]===void 0&&(no.insertCSSRules(io),eo[no.id]=!0)}};function arrayToObject(eo){return eo.reduce(function(to,no){var io=no[0],so=no[1];return to[io]=so,to[so]=io,to},{})}function isBoolean$1(eo){return typeof eo=="boolean"}function isFunction$9(eo){return typeof eo=="function"}function isNumber$2(eo){return typeof eo=="number"}function isNullOrUndefined$1(eo){return eo===null||typeof eo>"u"}function isObject$l(eo){return eo&&typeof eo=="object"}function isString$2(eo){return typeof eo=="string"}function includes$1(eo,to){return eo.indexOf(to)!==-1}function flipSign(eo){return parseFloat(eo)===0?eo:eo[0]==="-"?eo.slice(1):"-"+eo}function flipTransformSign(eo,to,no,io){return to+flipSign(no)+io}function calculateNewBackgroundPosition(eo){var to=eo.indexOf(".");if(to===-1)eo=100-parseFloat(eo)+"%";else{var no=eo.length-to-2;eo=100-parseFloat(eo),eo=eo.toFixed(no)+"%"}return eo}function getValuesAsList(eo){return eo.replace(/ +/g," ").split(" ").map(function(to){return to.trim()}).filter(Boolean).reduce(function(to,no){var io=to.list,so=to.state,ao=(no.match(/\(/g)||[]).length,lo=(no.match(/\)/g)||[]).length;return so.parensDepth>0?io[io.length-1]=io[io.length-1]+" "+no:io.push(no),so.parensDepth+=ao-lo,{list:io,state:so}},{list:[],state:{parensDepth:0}}).list}function handleQuartetValues(eo){var to=getValuesAsList(eo);if(to.length<=3||to.length>4)return eo;var no=to[0],io=to[1],so=to[2],ao=to[3];return[no,ao,so,io].join(" ")}function canConvertValue(eo){return!isBoolean$1(eo)&&!isNullOrUndefined$1(eo)}function splitShadow(eo){for(var to=[],no=0,io=0,so=!1;io0?charat$2(characters$2,--position$7):0,column$2--,character$2===10&&(column$2=1,line$4--),character$2}function next$3(){return character$2=position$72||token$3(character$2)>3?"":" "}function tokenizer(eo){for(;next$3();)switch(token$3(character$2)){case 0:append$3(identifier$2(position$7-1),eo);break;case 2:append$3(delimit$2(character$2),eo);break;default:append$3(from$3(character$2),eo)}return eo}function escaping$2(eo,to){for(;--to&&next$3()&&!(character$2<48||character$2>102||character$2>57&&character$2<65||character$2>70&&character$2<97););return slice$3(eo,caret$2()+(to<6&&peek$2()==32&&next$3()==32))}function delimiter$3(eo){for(;next$3();)switch(character$2){case eo:return position$7;case 34:case 39:eo!==34&&eo!==39&&delimiter$3(character$2);break;case 40:eo===41&&delimiter$3(eo);break;case 92:next$3();break}return position$7}function commenter$2(eo,to){for(;next$3()&&eo+character$2!==57;)if(eo+character$2===84&&peek$2()===47)break;return"/*"+slice$3(to,position$7-1)+"*"+from$3(eo===47?eo:next$3())}function identifier$2(eo){for(;!token$3(peek$2());)next$3();return slice$3(eo,position$7)}function compile$2(eo){return dealloc$2(parse$w("",null,null,null,[""],eo=alloc$2(eo),0,[0],eo))}function parse$w(eo,to,no,io,so,ao,lo,uo,ho){for(var go=0,mo=0,yo=lo,So=0,_o=0,ko=0,Co=1,$o=1,Ro=1,Oo=0,No="",Mo=so,Bo=ao,Fo=io,Lo=No;$o;)switch(ko=Oo,Oo=next$3()){case 40:if(ko!=108&&charat$2(Lo,yo-1)==58){indexof$2(Lo+=replace$3(delimit$2(Oo),"&","&\f"),"&\f")!=-1&&(Ro=-1);break}case 34:case 39:case 91:Lo+=delimit$2(Oo);break;case 9:case 10:case 13:case 32:Lo+=whitespace$2(ko);break;case 92:Lo+=escaping$2(caret$2()-1,7);continue;case 47:switch(peek$2()){case 42:case 47:append$3(comment$3(commenter$2(next$3(),caret$2()),to,no,ho),ho);break;default:Lo+="/"}break;case 123*Co:uo[go++]=strlen$2(Lo)*Ro;case 125*Co:case 59:case 0:switch(Oo){case 0:case 125:$o=0;case 59+mo:Ro==-1&&(Lo=replace$3(Lo,/\f/g,"")),_o>0&&strlen$2(Lo)-yo&&append$3(_o>32?declaration$2(Lo+";",io,no,yo-1,ho):declaration$2(replace$3(Lo," ","")+";",io,no,yo-2,ho),ho);break;case 59:Lo+=";";default:if(append$3(Fo=ruleset$2(Lo,to,no,go,mo,so,uo,No,Mo=[],Bo=[],yo,ao),ao),Oo===123)if(mo===0)parse$w(Lo,to,Fo,Fo,Mo,ao,yo,uo,Bo);else switch(So===99&&charat$2(Lo,3)===110?100:So){case 100:case 108:case 109:case 115:parse$w(eo,Fo,Fo,io&&append$3(ruleset$2(eo,Fo,Fo,0,0,so,uo,No,so,Mo=[],yo,Bo),Bo),so,Bo,yo,uo,io?Mo:Bo);break;default:parse$w(Lo,Fo,Fo,Fo,[""],Bo,0,uo,Bo)}}go=mo=_o=0,Co=Ro=1,No=Lo="",yo=lo;break;case 58:yo=1+strlen$2(Lo),_o=ko;default:if(Co<1){if(Oo==123)--Co;else if(Oo==125&&Co++==0&&prev$2()==125)continue}switch(Lo+=from$3(Oo),Oo*Co){case 38:Ro=mo>0?1:(Lo+="\f",-1);break;case 44:uo[go++]=(strlen$2(Lo)-1)*Ro,Ro=1;break;case 64:peek$2()===45&&(Lo+=delimit$2(next$3())),So=peek$2(),mo=yo=strlen$2(No=Lo+=identifier$2(caret$2())),Oo++;break;case 45:ko===45&&strlen$2(Lo)==2&&(Co=0)}}return ao}function ruleset$2(eo,to,no,io,so,ao,lo,uo,ho,go,mo,yo){for(var So=so-1,_o=so===0?ao:[""],ko=sizeof$2(_o),Co=0,$o=0,Ro=0;Co0?_o[Oo]+" "+No:replace$3(No,/&\f/g,_o[Oo])))&&(ho[Ro++]=Mo);return node$3(eo,to,no,so===0?RULESET$2:uo,ho,go,mo,yo)}function comment$3(eo,to,no,io){return node$3(eo,to,no,COMMENT$2,from$3(char$2()),substr$2(eo,2,-2),0,io)}function declaration$2(eo,to,no,io,so){return node$3(eo,to,no,DECLARATION$2,substr$2(eo,0,io),substr$2(eo,io+1,-1),io,so)}function serialize$2(eo,to){for(var no="",io=0;io{switch(eo.type){case RULESET$2:if(typeof eo.props=="string")return;eo.props=eo.props.map(to=>to.indexOf(":global(")===-1?to:tokenize(to).reduce((no,io,so,ao)=>{if(io==="")return no;if(io===":"&&ao[so+1]==="global"){const lo=ao[so+2].slice(1,-1)+" ";return no.unshift(lo),ao[so+1]="",ao[so+2]="",no}return no.push(io),no},[]).join(""))}};function prefix$3(eo,to,no){switch(hash$3(eo,to)){case 5103:return WEBKIT$1+"print-"+eo+eo;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return WEBKIT$1+eo+eo;case 4215:if(charat$2(eo,9)===102||charat$2(eo,to+1)===116)return WEBKIT$1+eo+eo;break;case 4789:return MOZ$1+eo+eo;case 5349:case 4246:case 6968:return WEBKIT$1+eo+MOZ$1+eo+eo;case 6187:if(!match$q(eo,/grab/))return replace$3(replace$3(replace$3(eo,/(zoom-|grab)/,WEBKIT$1+"$1"),/(image-set)/,WEBKIT$1+"$1"),eo,"")+eo;case 5495:case 3959:return replace$3(eo,/(image-set\([^]*)/,WEBKIT$1+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return replace$3(eo,/(.+)-inline(.+)/,WEBKIT$1+"$1$2")+eo;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen$2(eo)-1-to>6)switch(charat$2(eo,to+1)){case 102:if(charat$2(eo,to+3)===108)return replace$3(eo,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT$1+"$2-$3$1"+MOZ$1+(charat$2(eo,to+3)==108?"$3":"$2-$3"))+eo;case 115:return~indexof$2(eo,"stretch")?prefix$3(replace$3(eo,"stretch","fill-available"),to)+eo:eo}break}return eo}function prefixerPlugin(eo,to,no,io){if(eo.length>-1&&!eo.return)switch(eo.type){case DECLARATION$2:eo.return=prefix$3(eo.value,eo.length);return;case RULESET$2:if(eo.length)return combine$1(eo.props,function(so){switch(match$q(so,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$2([copy$6(eo,{props:[replace$3(so,/:(read-\w+)/,":"+MOZ$1+"$1")]})],io);case"::placeholder":return serialize$2([copy$6(eo,{props:[replace$3(so,/:(plac\w+)/,":"+WEBKIT$1+"input-$1")]}),copy$6(eo,{props:[replace$3(so,/:(plac\w+)/,":"+MOZ$1+"$1")]})],io)}return""})}}function isAtRuleElement(eo){switch(eo.type){case"@container":case MEDIA:case SUPPORTS:case LAYER$2:return!0}return!1}const sortClassesInAtRulesPlugin=eo=>{isAtRuleElement(eo)&&Array.isArray(eo.children)&&eo.children.sort((to,no)=>to.props[0]>no.props[0]?1:-1)};function noop$e(){}function compileCSSRules(eo,to){const no=[];return serialize$2(compile$2(eo),middleware$1([globalPlugin,to?sortClassesInAtRulesPlugin:noop$e,prefixerPlugin,stringify$3,rulesheet$1(io=>no.push(io))])),no}const PSEUDO_SELECTOR_REGEX=/,( *[^ &])/g;function normalizePseudoSelector(eo){return"&"+normalizeNestedProperty(eo.replace(PSEUDO_SELECTOR_REGEX,",&$1"))}function createCSSRule(eo,to,no){let io=to;return no.length>0&&(io=no.reduceRight((so,ao)=>`${normalizePseudoSelector(ao)} { ${so} }`,to)),`${eo}{${io}}`}function compileAtomicCSSRule(eo){const{className:to,media:no,layer:io,selectors:so,support:ao,property:lo,rtlClassName:uo,rtlProperty:ho,rtlValue:go,value:mo,container:yo}=eo,So=`.${to}`,_o=Array.isArray(mo)?`${mo.map(Co=>`${hyphenateProperty(lo)}: ${Co}`).join(";")};`:`${hyphenateProperty(lo)}: ${mo};`;let ko=createCSSRule(So,_o,so);if(ho&&uo){const Co=`.${uo}`,$o=Array.isArray(go)?`${go.map(Ro=>`${hyphenateProperty(ho)}: ${Ro}`).join(";")};`:`${hyphenateProperty(ho)}: ${go};`;ko+=createCSSRule(Co,$o,so)}return no&&(ko=`@media ${no} { ${ko} }`),io&&(ko=`@layer ${io} { ${ko} }`),ao&&(ko=`@supports ${ao} { ${ko} }`),yo&&(ko=`@container ${yo} { ${ko} }`),compileCSSRules(ko,!0)}function cssifyObject(eo){let to="";for(const no in eo){const io=eo[no];typeof io!="string"&&typeof io!="number"||(to+=hyphenateProperty(no)+":"+io+";")}return to}function compileKeyframeRule(eo){let to="";for(const no in eo)to+=`${no}{${cssifyObject(eo[no])}}`;return to}function compileKeyframesCSS(eo,to){const no=`@keyframes ${eo} {${to}}`,io=[];return serialize$2(compile$2(no),middleware$1([stringify$3,prefixerPlugin,rulesheet$1(so=>io.push(so))])),io}function generateCombinedQuery(eo,to){return eo.length===0?to:`${eo} and ${to}`}function isMediaQuerySelector(eo){return eo.substr(0,6)==="@media"}function isLayerSelector(eo){return eo.substr(0,6)==="@layer"}const regex=/^(:|\[|>|&)/;function isNestedSelector(eo){return regex.test(eo)}function isSupportQuerySelector(eo){return eo.substr(0,9)==="@supports"}function isContainerQuerySelector(eo){return eo.substring(0,10)==="@container"}function isObject$k(eo){return eo!=null&&typeof eo=="object"&&Array.isArray(eo)===!1}const pseudosMap={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function getStyleBucketName(eo,to,no,io,so){if(no)return"m";if(to||io)return"t";if(so)return"c";if(eo.length>0){const ao=eo[0].trim();if(ao.charCodeAt(0)===58)return pseudosMap[ao.slice(4,8)]||pseudosMap[ao.slice(3,5)]||"d"}return"d"}function hashClassName({container:eo,media:to,layer:no,property:io,selector:so,support:ao,value:lo}){const uo=murmur2(so+eo+to+no+ao+io+lo.trim());return HASH_PREFIX+uo}function hashPropertyKey(eo,to,no,io,so){const ao=eo+to+no+io+so,lo=murmur2(ao),uo=lo.charCodeAt(0);return uo>=48&&uo<=57?String.fromCharCode(uo+17)+lo.slice(1):lo}function trimSelector(eo){return eo.replace(/>\s+/g,">")}function warnAboutUnresolvedRule(eo,to){const no=JSON.stringify(to,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${eo}": ${no.split(` `).map((io,so)=>" ".repeat(so===0?0:6)+io).join(` -`)}`," ".repeat(4)+""," ".repeat(2)+"",eo.indexOf("&")}function warnAboutUnsupportedProperties(eo,to){}function pushToClassesMap(eo,to,no,io){eo[to]=io?[no,io]:no}function createBucketEntry(eo,to){return to?[eo,to]:eo}function pushToCSSRules(eo,to,no,io,so){var ao;let lo;to==="m"&&so&&(lo={m:so}),(ao=eo[to])!==null&&ao!==void 0||(eo[to]=[]),no&&eo[to].push(createBucketEntry(no,lo)),io&&eo[to].push(createBucketEntry(io,lo))}function resolveStyleRules(eo,to=[],no="",io="",so="",ao="",lo={},uo={},ho){for(const go in eo){if(UNSUPPORTED_CSS_PROPERTIES.hasOwnProperty(go)){eo[go];continue}const mo=eo[go];if(mo!=null){if(typeof mo=="string"||typeof mo=="number"){const yo=trimSelector(to.join("")),So=hashPropertyKey(yo,ao,no,so,go),_o=hashClassName({container:ao,media:no,layer:io,value:mo.toString(),support:so,selector:yo,property:go}),ko=ho&&{key:go,value:ho}||convertProperty(go,mo),Co=ko.key!==go||ko.value!==mo,$o=Co?hashClassName({container:ao,value:ko.value.toString(),property:ko.key,selector:yo,media:no,layer:io,support:so}):void 0,Ro=Co?{rtlClassName:$o,rtlProperty:ko.key,rtlValue:ko.value}:void 0,Oo=getStyleBucketName(to,io,no,so,ao),[No,Mo]=compileAtomicCSSRule({className:_o,media:no,layer:io,selectors:to,property:go,support:so,container:ao,value:mo,...Ro});pushToClassesMap(lo,So,_o,$o),pushToCSSRules(uo,Oo,No,Mo,no)}else if(go==="animationName"){const yo=Array.isArray(mo)?mo:[mo],So=[],_o=[];for(const ko of yo){const Co=compileKeyframeRule(ko),$o=compileKeyframeRule(convert(ko)),Ro=HASH_PREFIX+murmur2(Co);let Oo;const No=compileKeyframesCSS(Ro,Co);let Mo=[];Co===$o?Oo=Ro:(Oo=HASH_PREFIX+murmur2($o),Mo=compileKeyframesCSS(Oo,$o));for(let Bo=0;Bo(Po??"").toString()).join(";"),support:so,selector:yo,property:go}),ko=mo.map(Po=>convertProperty(go,Po));if(!!ko.some(Po=>Po.key!==ko[0].key))continue;const $o=ko[0].key!==go||ko.some((Po,Lo)=>Po.value!==mo[Lo]),Ro=$o?hashClassName({container:ao,value:ko.map(Po=>{var Lo;return((Lo=Po==null?void 0:Po.value)!==null&&Lo!==void 0?Lo:"").toString()}).join(";"),property:ko[0].key,selector:yo,layer:io,media:no,support:so}):void 0,Oo=$o?{rtlClassName:Ro,rtlProperty:ko[0].key,rtlValue:ko.map(Po=>Po.value)}:void 0,No=getStyleBucketName(to,io,no,so,ao),[Mo,Bo]=compileAtomicCSSRule({className:_o,media:no,layer:io,selectors:to,property:go,support:so,container:ao,value:mo,...Oo});pushToClassesMap(lo,So,_o,Ro),pushToCSSRules(uo,No,Mo,Bo,no)}else if(isObject$k(mo))if(isNestedSelector(go))resolveStyleRules(mo,to.concat(normalizeNestedProperty(go)),no,io,so,ao,lo,uo);else if(isMediaQuerySelector(go)){const yo=generateCombinedQuery(no,go.slice(6).trim());resolveStyleRules(mo,to,yo,io,so,ao,lo,uo)}else if(isLayerSelector(go)){const yo=(io?`${io}.`:"")+go.slice(6).trim();resolveStyleRules(mo,to,no,yo,so,ao,lo,uo)}else if(isSupportQuerySelector(go)){const yo=generateCombinedQuery(so,go.slice(9).trim());resolveStyleRules(mo,to,no,io,yo,ao,lo,uo)}else if(isContainerQuerySelector(go)){const yo=go.slice(10).trim();resolveStyleRules(mo,to,no,io,so,yo,lo,uo)}else warnAboutUnresolvedRule(go,mo)}}return[lo,uo]}function resolveStyleRulesForSlots(eo){const to={},no={};for(const io in eo){const so=eo[io],[ao,lo]=resolveStyleRules(so);to[io]=ao,Object.keys(lo).forEach(uo=>{no[uo]=(no[uo]||[]).concat(lo[uo])})}return[to,no]}function makeStyles$1(eo,to=insertionFactory$1){const no=to();let io=null,so=null,ao=null,lo=null;function uo(ho){const{dir:go,renderer:mo}=ho;io===null&&([io,so]=resolveStyleRulesForSlots(eo));const yo=go==="ltr";return yo?ao===null&&(ao=reduceToClassNameForSlots(io,go)):lo===null&&(lo=reduceToClassNameForSlots(io,go)),no(mo,so),yo?ao:lo}return uo}function compileStaticCSS(eo,to){const no=`${eo} {${cssifyObject(to)}}`;return compileCSSRules(no,!1)[0]}function resolveStaticStyleRules(eo){return eo.reduce((to,no)=>{if(typeof no=="string"){const io=compileCSSRules(no,!1);for(const so of io)to.push(so);return to}for(const io in no){const so=no[io],ao=compileStaticCSS(io,so);to.push(ao)}return to},[])}function makeStaticStyles$1(eo,to=insertionFactory$1){const no=to(),io=Array.isArray(eo)?eo:[eo];function so(ao){no(ao.renderer,{d:resolveStaticStyleRules(io)})}return so}function __styles$1(eo,to,no=insertionFactory$1){const io=no();let so=null,ao=null;function lo(uo){const{dir:ho,renderer:go}=uo,mo=ho==="ltr";return mo?so===null&&(so=reduceToClassNameForSlots(eo,ho)):ao===null&&(ao=reduceToClassNameForSlots(eo,ho)),io(go,to),mo?so:ao}return lo}function __resetStyles$1(eo,to,no,io=insertionFactory$1){const so=io();function ao(lo){const{dir:uo,renderer:ho}=lo,go=uo==="ltr"?eo:to||eo;return so(ho,Array.isArray(no)?{r:no}:no),go}return ao}const shorthands={border,borderLeft,borderBottom,borderRight,borderTop,borderColor,borderStyle,borderRadius:borderRadius$1,borderWidth:borderWidth$1,flex,gap,gridArea,margin,marginBlock,marginInline,padding:padding$2,paddingBlock,paddingInline,overflow,inset,outline,transition:transition$1,textDecoration};function canUseDOM$4(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const useInsertionEffect$2=React$1.useInsertionEffect?React$1.useInsertionEffect:void 0,insertionFactory=()=>{const eo={};return function(no,io){if(useInsertionEffect$2&&canUseDOM$4()){useInsertionEffect$2(()=>{no.insertCSSRules(io)},[no,io]);return}eo[no.id]===void 0&&(no.insertCSSRules(io),eo[no.id]=!0)}},RendererContext=reactExports.createContext(createDOMRenderer());function useRenderer(){return reactExports.useContext(RendererContext)}const TextDirectionContext=reactExports.createContext("ltr"),TextDirectionProvider=({children:eo,dir:to})=>reactExports.createElement(TextDirectionContext.Provider,{value:to},eo);function useTextDirection(){return reactExports.useContext(TextDirectionContext)}function makeStyles(eo){const to=makeStyles$1(eo,insertionFactory);return function(){const io=useTextDirection(),so=useRenderer();return to({dir:io,renderer:so})}}function makeStaticStyles(eo){const to=makeStaticStyles$1(eo,insertionFactory);return function(){const so={renderer:useRenderer()};return to(so)}}function __styles(eo,to){const no=__styles$1(eo,to,insertionFactory);return function(){const so=useTextDirection(),ao=useRenderer();return no({dir:so,renderer:ao})}}function __resetStyles(eo,to,no){const io=__resetStyles$1(eo,to,no,insertionFactory);return function(){const ao=useTextDirection(),lo=useRenderer();return io({dir:ao,renderer:lo})}}function createCSSRuleFromTheme(eo,to){if(to){const no=Object.keys(to).reduce((io,so)=>`${io}--${so}: ${to[so]}; `,"");return`${eo} { ${no} }`}return`${eo} {}`}const SLOT_RENDER_FUNCTION_SYMBOL=Symbol("fui.slotRenderFunction"),SLOT_ELEMENT_TYPE_SYMBOL=Symbol("fui.slotElementType");function always(eo,to){const{defaultProps:no,elementType:io}=to,so=resolveShorthand(eo),ao={...no,...so,[SLOT_ELEMENT_TYPE_SYMBOL]:io};return so&&typeof so.children=="function"&&(ao[SLOT_RENDER_FUNCTION_SYMBOL]=so.children,ao.children=no==null?void 0:no.children),ao}function optional(eo,to){if(!(eo===null||eo===void 0&&!to.renderByDefault))return always(eo,to)}function resolveShorthand(eo){return typeof eo=="string"||typeof eo=="number"||Array.isArray(eo)||reactExports.isValidElement(eo)?{children:eo}:eo}function isSlot(eo){return!!(eo!=null&&eo.hasOwnProperty(SLOT_ELEMENT_TYPE_SYMBOL))}function isResolvedShorthand(eo){return eo!==null&&typeof eo=="object"&&!Array.isArray(eo)&&!reactExports.isValidElement(eo)}const toObjectMap$1=(...eo)=>{const to={};for(const no of eo){const io=Array.isArray(no)?no:Object.keys(no);for(const so of io)to[so]=1}return to},baseElementEvents$1=toObjectMap$1(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),baseElementProperties$1=toObjectMap$1(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),microdataProperties=toObjectMap$1(["itemID","itemProp","itemRef","itemScope","itemType"]),htmlElementProperties$1=toObjectMap$1(baseElementProperties$1,baseElementEvents$1,microdataProperties),labelProperties=toObjectMap$1(htmlElementProperties$1,["form"]),audioProperties$1=toObjectMap$1(htmlElementProperties$1,["height","loop","muted","preload","src","width"]),videoProperties=toObjectMap$1(audioProperties$1,["poster"]),olProperties=toObjectMap$1(htmlElementProperties$1,["start"]),liProperties=toObjectMap$1(htmlElementProperties$1,["value"]),anchorProperties$1=toObjectMap$1(htmlElementProperties$1,["download","href","hrefLang","media","rel","target","type"]),timeProperties=toObjectMap$1(htmlElementProperties$1,["dateTime"]),buttonProperties$1=toObjectMap$1(htmlElementProperties$1,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),inputProperties=toObjectMap$1(buttonProperties$1,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textAreaProperties=toObjectMap$1(buttonProperties$1,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),selectProperties=toObjectMap$1(buttonProperties$1,["form","multiple","required"]),optionProperties=toObjectMap$1(htmlElementProperties$1,["selected","value"]),tableProperties=toObjectMap$1(htmlElementProperties$1,["cellPadding","cellSpacing"]),trProperties=htmlElementProperties$1,thProperties=toObjectMap$1(htmlElementProperties$1,["colSpan","rowSpan","scope"]),tdProperties=toObjectMap$1(htmlElementProperties$1,["colSpan","headers","rowSpan","scope"]),colGroupProperties=toObjectMap$1(htmlElementProperties$1,["span"]),colProperties=toObjectMap$1(htmlElementProperties$1,["span"]),fieldsetProperties=toObjectMap$1(htmlElementProperties$1,["disabled","form"]),formProperties=toObjectMap$1(htmlElementProperties$1,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframeProperties=toObjectMap$1(htmlElementProperties$1,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),imgProperties$1=toObjectMap$1(htmlElementProperties$1,["alt","crossOrigin","height","src","srcSet","useMap","width"]),dialogProperties=toObjectMap$1(htmlElementProperties$1,["open","onCancel","onClose"]);function getNativeProps$1(eo,to,no){const io=Array.isArray(to),so={},ao=Object.keys(eo);for(const lo of ao)(!io&&to[lo]||io&&to.indexOf(lo)>=0||lo.indexOf("data-")===0||lo.indexOf("aria-")===0)&&(!no||(no==null?void 0:no.indexOf(lo))===-1)&&(so[lo]=eo[lo]);return so}const nativeElementMap={label:labelProperties,audio:audioProperties$1,video:videoProperties,ol:olProperties,li:liProperties,a:anchorProperties$1,button:buttonProperties$1,input:inputProperties,textarea:textAreaProperties,select:selectProperties,option:optionProperties,table:tableProperties,tr:trProperties,th:thProperties,td:tdProperties,colGroup:colGroupProperties,col:colProperties,fieldset:fieldsetProperties,form:formProperties,iframe:iframeProperties,img:imgProperties$1,time:timeProperties,dialog:dialogProperties};function getNativeElementProps(eo,to,no){const io=eo&&nativeElementMap[eo]||htmlElementProperties$1;return io.as=1,getNativeProps$1(to,io,no)}const getPartitionedNativeProps=({primarySlotTagName:eo,props:to,excludedPropNames:no})=>({root:{style:to.style,className:to.className},primary:getNativeElementProps(eo,to,[...no||[],"style","className"])}),getIntrinsicElementProps=(eo,to,no)=>{var io;return getNativeElementProps((io=to.as)!==null&&io!==void 0?io:eo,to,no)};function canUseDOM$3(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function useBrowserTimer(eo,to){const no=reactExports.useRef(void 0),io=reactExports.useCallback((ao,lo)=>(no.current!==void 0&&to(no.current),no.current=eo(ao,lo),no.current),[to,eo]),so=reactExports.useCallback(()=>{no.current!==void 0&&(to(no.current),no.current=void 0)},[to]);return reactExports.useEffect(()=>so,[so]),[io,so]}const setAnimationFrameNoop=eo=>(eo(0),0),cancelAnimationFrameNoop=eo=>eo;function useAnimationFrame(){const eo=canUseDOM$3();return useBrowserTimer(eo?requestAnimationFrame:setAnimationFrameNoop,eo?cancelAnimationFrame:cancelAnimationFrameNoop)}function isFactoryDispatch(eo){return typeof eo=="function"}const useControllableState=eo=>{const[to,no]=reactExports.useState(()=>eo.defaultState===void 0?eo.initialState:isInitializer(eo.defaultState)?eo.defaultState():eo.defaultState),io=reactExports.useRef(eo.state);reactExports.useEffect(()=>{io.current=eo.state},[eo.state]);const so=reactExports.useCallback(ao=>{isFactoryDispatch(ao)&&ao(io.current)},[]);return useIsControlled(eo.state)?[eo.state,so]:[to,no]};function isInitializer(eo){return typeof eo=="function"}const useIsControlled=eo=>{const[to]=reactExports.useState(()=>eo!==void 0);return to},defaultSSRContextValue={current:0},SSRContext=reactExports.createContext(void 0);function useSSRContext(){var eo;return(eo=reactExports.useContext(SSRContext))!==null&&eo!==void 0?eo:defaultSSRContextValue}function useIsSSR(){const eo=useSSRContext()!==defaultSSRContextValue,[to,no]=reactExports.useState(eo);return canUseDOM$3()&&eo&&reactExports.useLayoutEffect(()=>{no(!1)},[]),to}const useIsomorphicLayoutEffect$1=canUseDOM$3()?reactExports.useLayoutEffect:reactExports.useEffect,useEventCallback$3=eo=>{const to=reactExports.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect$1(()=>{to.current=eo},[eo]),reactExports.useCallback((...no)=>{const io=to.current;return io(...no)},[to])};function useFirstMount(){const eo=reactExports.useRef(!0);return eo.current?(eo.current=!1,!0):eo.current}const IdPrefixContext=reactExports.createContext(void 0);IdPrefixContext.Provider;function useIdPrefix(){return reactExports.useContext(IdPrefixContext)||""}function useId$1(eo="fui-",to){const no=useSSRContext(),io=useIdPrefix(),so=React$1.useId;if(so){const ao=so(),lo=reactExports.useMemo(()=>ao.replace(/:/g,""),[ao]);return to||`${io}${eo}${lo}`}return reactExports.useMemo(()=>to||`${io}${eo}${++no.current}`,[io,eo,to,no])}function useMergedRefs$1(...eo){const to=reactExports.useCallback(no=>{to.current=no;for(const io of eo)typeof io=="function"?io(no):io&&(io.current=no)},[...eo]);return to}const ThemeContext$2=reactExports.createContext(void 0),ThemeProvider=ThemeContext$2.Provider,ThemeClassNameContext=reactExports.createContext(void 0),themeClassNameContextDefaultVaue="",ThemeClassNameProvider=ThemeClassNameContext.Provider;function useThemeClassName(){var eo;return(eo=reactExports.useContext(ThemeClassNameContext))!==null&&eo!==void 0?eo:themeClassNameContextDefaultVaue}const TooltipVisibilityContext=reactExports.createContext(void 0),tooltipVisibilityContextDefaultValue={},TooltipVisibilityProvider=TooltipVisibilityContext.Provider;function useTooltipVisibility(){var eo;return(eo=reactExports.useContext(TooltipVisibilityContext))!==null&&eo!==void 0?eo:tooltipVisibilityContextDefaultValue}const ProviderContext=reactExports.createContext(void 0),providerContextDefaultValue={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},Provider$1=ProviderContext.Provider;function useFluent(){var eo;return(eo=reactExports.useContext(ProviderContext))!==null&&eo!==void 0?eo:providerContextDefaultValue}const OverridesContext=reactExports.createContext(void 0),OverridesProvider=OverridesContext.Provider;function useOverrides(){var eo;return(eo=reactExports.useContext(OverridesContext))!==null&&eo!==void 0?eo:{}}const CustomStyleHooksContext=reactExports.createContext(void 0),noop$d=()=>{},CustomStyleHooksProvider=CustomStyleHooksContext.Provider,useCustomStyleHook=eo=>{var to,no;return(no=(to=reactExports.useContext(CustomStyleHooksContext))===null||to===void 0?void 0:to[eo])!==null&&no!==void 0?no:noop$d},BackgroundAppearanceContext=reactExports.createContext(void 0);BackgroundAppearanceContext.Provider;function useBackgroundAppearance(){return reactExports.useContext(BackgroundAppearanceContext)}const PortalMountNodeContext=reactExports.createContext(void 0);PortalMountNodeContext.Provider;function usePortalMountNode$1(){return reactExports.useContext(PortalMountNodeContext)}const AnnounceContext=reactExports.createContext(void 0);AnnounceContext.Provider;function useAnnounce(){var eo;return(eo=reactExports.useContext(AnnounceContext))!==null&&eo!==void 0?eo:{announce:()=>{}}}const DEFAULT_CONTAINS=(eo,to)=>!!(eo!=null&&eo.contains(to)),useOnClickOutside=eo=>{const{targetDocument:to}=useFluent(),no=to==null?void 0:to.defaultView,{refs:io,callback:so,element:ao,disabled:lo,disabledFocusOnIframe:uo,contains:ho=DEFAULT_CONTAINS}=eo,go=reactExports.useRef(void 0);useIFrameFocus({element:ao,disabled:uo||lo,callback:so,refs:io,contains:ho});const mo=reactExports.useRef(!1),yo=useEventCallback$3(_o=>{if(mo.current){mo.current=!1;return}const ko=_o.composedPath()[0];io.every($o=>!ho($o.current||null,ko))&&!lo&&so(_o)}),So=useEventCallback$3(_o=>{mo.current=io.some(ko=>ho(ko.current||null,_o.target))});reactExports.useEffect(()=>{if(lo)return;let _o=getWindowEvent(no);const ko=Co=>{if(Co===_o){_o=void 0;return}yo(Co)};return ao==null||ao.addEventListener("click",ko,!0),ao==null||ao.addEventListener("touchstart",ko,!0),ao==null||ao.addEventListener("contextmenu",ko,!0),ao==null||ao.addEventListener("mousedown",So,!0),go.current=no==null?void 0:no.setTimeout(()=>{_o=void 0},1),()=>{ao==null||ao.removeEventListener("click",ko,!0),ao==null||ao.removeEventListener("touchstart",ko,!0),ao==null||ao.removeEventListener("contextmenu",ko,!0),ao==null||ao.removeEventListener("mousedown",So,!0),no==null||no.clearTimeout(go.current),_o=void 0}},[yo,ao,lo,So,no])},getWindowEvent=eo=>{if(eo){var to,no;if(typeof eo.window=="object"&&eo.window===eo)return eo.event;var io;return(io=(no=eo.ownerDocument)===null||no===void 0||(to=no.defaultView)===null||to===void 0?void 0:to.event)!==null&&io!==void 0?io:void 0}},FUI_FRAME_EVENT="fuiframefocus",useIFrameFocus=eo=>{const{disabled:to,element:no,callback:io,contains:so=DEFAULT_CONTAINS,pollDuration:ao=1e3,refs:lo}=eo,uo=reactExports.useRef(),ho=useEventCallback$3(go=>{lo.every(yo=>!so(yo.current||null,go.target))&&!to&&io(go)});reactExports.useEffect(()=>{if(!to)return no==null||no.addEventListener(FUI_FRAME_EVENT,ho,!0),()=>{no==null||no.removeEventListener(FUI_FRAME_EVENT,ho,!0)}},[no,to,ho]),reactExports.useEffect(()=>{var go;if(!to)return uo.current=no==null||(go=no.defaultView)===null||go===void 0?void 0:go.setInterval(()=>{const mo=no==null?void 0:no.activeElement;if((mo==null?void 0:mo.tagName)==="IFRAME"||(mo==null?void 0:mo.tagName)==="WEBVIEW"){const yo=new CustomEvent(FUI_FRAME_EVENT,{bubbles:!0});mo.dispatchEvent(yo)}},ao),()=>{var mo;no==null||(mo=no.defaultView)===null||mo===void 0||mo.clearTimeout(uo.current)}},[no,to,ao])},useOnScrollOutside=eo=>{const{refs:to,callback:no,element:io,disabled:so,contains:ao}=eo,lo=useEventCallback$3(uo=>{const ho=ao||((yo,So)=>!!(yo!=null&&yo.contains(So))),go=uo.composedPath()[0];to.every(yo=>!ho(yo.current||null,go))&&!so&&no(uo)});reactExports.useEffect(()=>{if(!so)return io==null||io.addEventListener("wheel",lo),io==null||io.addEventListener("touchmove",lo),()=>{io==null||io.removeEventListener("wheel",lo),io==null||io.removeEventListener("touchmove",lo)}},[lo,io,so])};function useTimeout(){return useBrowserTimer(setTimeout,clearTimeout)}function mergeCallbacks(eo,to){return(...no)=>{eo==null||eo(...no),to==null||to(...no)}}function isHTMLElement$6(eo,to){var no;const io=eo;var so;return!!(!(io==null||(no=io.ownerDocument)===null||no===void 0)&&no.defaultView&&io instanceof io.ownerDocument.defaultView[(so=to==null?void 0:to.constructorName)!==null&&so!==void 0?so:"HTMLElement"])}function isFluentTrigger(eo){return!!eo.type.isFluentTriggerComponent}function applyTriggerPropsToChildren(eo,to){return typeof eo=="function"?eo(to):eo?cloneTriggerTree(eo,to):eo||null}function cloneTriggerTree(eo,to){if(!reactExports.isValidElement(eo)||eo.type===reactExports.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(isFluentTrigger(eo)){const no=cloneTriggerTree(eo.props.children,to);return reactExports.cloneElement(eo,void 0,no)}else return reactExports.cloneElement(eo,to)}function getTriggerChild(eo){return reactExports.isValidElement(eo)?isFluentTrigger(eo)?getTriggerChild(eo.props.children):eo:null}function isVirtualElement$1(eo){return eo&&!!eo._virtual}function getVirtualParent$1(eo){return isVirtualElement$1(eo)&&eo._virtual.parent||null}function getParent$2(eo,to={}){if(!eo)return null;if(!to.skipVirtual){const no=getVirtualParent$1(eo);if(no)return no}return(eo==null?void 0:eo.parentNode)||null}function elementContains$1(eo,to){if(!eo||!to)return!1;if(eo===to)return!0;{const no=new WeakSet;for(;to;){const io=getParent$2(to,{skipVirtual:no.has(to)});if(no.add(to),io===eo)return!0;to=io}}return!1}function setVirtualParent$1(eo,to){if(!eo)return;const no=eo;no._virtual||(no._virtual={}),no._virtual.parent=to}function createCompatSlotComponent(eo,to){return{...to,[SLOT_ELEMENT_TYPE_SYMBOL]:eo}}function createJSX(eo,to){return function(io,so,ao,lo,uo){return isSlot(so)?to(createCompatSlotComponent(io,so),null,ao,lo,uo):isSlot(io)?to(io,so,ao,lo,uo):eo(io,so,ao,lo,uo)}}function getMetadataFromSlotComponent(eo){const{as:to,[SLOT_ELEMENT_TYPE_SYMBOL]:no,[SLOT_RENDER_FUNCTION_SYMBOL]:io,...so}=eo,ao=so,lo=typeof no=="string"?to??no:no;return typeof lo!="string"&&to&&(ao.as=to),{elementType:lo,props:ao,renderFunction:io}}const Runtime=ReactRuntime,jsxSlot=(eo,to,no)=>{const{elementType:io,renderFunction:so,props:ao}=getMetadataFromSlotComponent(eo),lo={...ao,...to};return so?Runtime.jsx(reactExports.Fragment,{children:so(io,lo)},no):Runtime.jsx(io,lo,no)},jsxsSlot=(eo,to,no)=>{const{elementType:io,renderFunction:so,props:ao}=getMetadataFromSlotComponent(eo),lo={...ao,...to};return so?Runtime.jsx(reactExports.Fragment,{children:so(io,{...lo,children:Runtime.jsxs(reactExports.Fragment,{children:lo.children},void 0)})},no):Runtime.jsxs(io,lo,no)},jsx$1=createJSX(Runtime.jsx,jsxSlot),jsxs=createJSX(Runtime.jsxs,jsxsSlot),IconDirectionContext=reactExports.createContext(void 0),IconDirectionContextDefaultValue={},IconDirectionContextProvider=IconDirectionContext.Provider,useIconContext=()=>reactExports.useContext(IconDirectionContext)?reactExports.useContext(IconDirectionContext):IconDirectionContextDefaultValue,useRootStyles$c=__styles({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),useIconState=(eo,to)=>{const{title:no,primaryFill:io="currentColor",...so}=eo,ao={...so,title:void 0,fill:io},lo=useRootStyles$c(),uo=useIconContext();return ao.className=mergeClasses(lo.root,(to==null?void 0:to.flipInRtl)&&(uo==null?void 0:uo.textDirection)==="rtl"&&lo.rtl,ao.className),no&&(ao["aria-label"]=no),!ao["aria-label"]&&!ao["aria-labelledby"]?ao["aria-hidden"]=!0:ao.role="img",ao},createFluentIcon=(eo,to,no,io)=>{const so=to==="1em"?"20":to,ao=reactExports.forwardRef((lo,uo)=>{const ho={...useIconState(lo,{flipInRtl:io==null?void 0:io.flipInRtl}),ref:uo,width:to,height:to,viewBox:`0 0 ${so} ${so}`,xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement("svg",ho,...no.map(go=>reactExports.createElement("path",{d:go,fill:ho.fill})))});return ao.displayName=eo,ao},CheckmarkFilled=createFluentIcon("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),CheckmarkRegular=createFluentIcon("CheckmarkRegular","1em",["M3.37 10.17a.5.5 0 0 0-.74.66l4 4.5c.19.22.52.23.72.02l10.5-10.5a.5.5 0 0 0-.7-.7L7.02 14.27l-3.65-4.1Z"]),CheckmarkCircleFilled=createFluentIcon("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),ChevronDownRegular=createFluentIcon("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),ChevronLeftFilled=createFluentIcon("ChevronLeftFilled","1em",["M12.27 15.8a.75.75 0 0 1-1.06-.03l-5-5.25a.75.75 0 0 1 0-1.04l5-5.25a.75.75 0 1 1 1.08 1.04L7.8 10l4.5 4.73c.29.3.28.78-.02 1.06Z"]),ChevronLeftRegular=createFluentIcon("ChevronLeftRegular","1em",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),ChevronRightFilled=createFluentIcon("ChevronRightFilled","1em",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]),ChevronRightRegular=createFluentIcon("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),CircleFilled=createFluentIcon("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),CopyRegular=createFluentIcon("CopyRegular","1em",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z"]),DismissRegular=createFluentIcon("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),ErrorCircleFilled=createFluentIcon("ErrorCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),FlowchartRegular=createFluentIcon("FlowchartRegular","1em",["M4.5 3C3.67 3 3 3.67 3 4.5v2C3 7.33 3.67 8 4.5 8H5v3.84a1 1 0 0 0-.2.16L3 13.8a1 1 0 0 0 0 1.4L4.8 17a1 1 0 0 0 1.4 0L8 15.2a1 1 0 0 0 .16-.2H12v.5c0 .83.67 1.5 1.5 1.5h2c.83 0 1.5-.67 1.5-1.5v-2c0-.83-.67-1.5-1.5-1.5h-2c-.83 0-1.5.67-1.5 1.5v.5H8.16a1 1 0 0 0-.16-.2L6.2 12a1 1 0 0 0-.2-.16V8h.5C7.33 8 8 7.33 8 6.5v-2C8 3.67 7.33 3 6.5 3h-2ZM4 4.5c0-.28.22-.5.5-.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2Zm-.3 10 1.8-1.8 1.8 1.8-1.8 1.8-1.8-1.8Zm9.8-1.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2c0-.28.22-.5.5-.5Z"]),InfoFilled=createFluentIcon("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),MoreHorizontalFilled=createFluentIcon("MoreHorizontalFilled","1em",["M6.75 10a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Zm5 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0ZM15 11.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"]),MoreHorizontalRegular=createFluentIcon("MoreHorizontalRegular","1em",["M6.25 10a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm5 0a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM15 11.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"]),SelectObjectRegular=createFluentIcon("SelectObjectRegular","1em",["M6 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm11 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-11 11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm11 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM7 4.5c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5Zm0 11c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5Zm-3-8a.5.5 0 0 1 1 0v5a.5.5 0 0 1-1 0v-5Zm11 0a.5.5 0 0 1 1 0v5a.5.5 0 0 1-1 0v-5Z"]),ThinkingRegular=createFluentIcon("ThinkingRegular","1em",["M10 2a3.55 3.55 0 0 0-3.52 2.1c-.33.7-.43 1.44-.46 1.92-.65.05-1.31.2-1.86.56C3.44 7.06 3 7.85 3 9s.44 1.94 1.16 2.42c.68.45 1.55.58 2.34.58h7c.78 0 1.65-.11 2.34-.56C16.56 10.97 17 10.17 17 9c0-1.15-.44-1.94-1.16-2.42a3.84 3.84 0 0 0-1.86-.56 5.53 5.53 0 0 0-.46-1.92A3.56 3.56 0 0 0 10 2ZM7 6.5c0-.24 0-1.15.4-1.98.18-.4.46-.78.86-1.05A3 3 0 0 1 10 3a3 3 0 0 1 1.74.47c.4.27.68.65.87 1.05.39.83.39 1.74.39 1.98 0 .28.22.5.5.5.71 0 1.34.12 1.79.42.4.27.71.73.71 1.58 0 .89-.31 1.34-.71 1.6-.44.3-1.07.4-1.79.4h-7c-.71 0-1.34-.12-1.79-.42C4.31 10.31 4 9.85 4 9c0-.85.3-1.31.71-1.58C5.16 7.12 5.8 7 6.5 7a.5.5 0 0 0 .5-.5ZM8 17a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0-1a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4.5 2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0-1a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1Z"]),WarningFilled=createFluentIcon("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),AddCircle20Regular=createFluentIcon("AddCircle20Regular","20",["M6 10c0-.28.22-.5.5-.5h3v-3a.5.5 0 0 1 1 0v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3A.5.5 0 0 1 6 10Zm4 8a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0-1a7 7 0 1 1 0-14 7 7 0 0 1 0 14Z"]),ArrowClockwise16Regular=createFluentIcon("ArrowClockwise16Regular","16",["M3 8a5 5 0 0 1 9-3H9.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-1 0v1.03A6 6 0 1 0 14 8a.5.5 0 0 0-1 0A5 5 0 0 1 3 8Z"]),ArrowClockwiseDashes20Filled=createFluentIcon("ArrowClockwiseDashes20Filled","20",["M8.44 2.15a8.03 8.03 0 0 1 3.12 0 .75.75 0 0 1-.3 1.47 6.54 6.54 0 0 0-2.53 0 .75.75 0 0 1-.29-1.47Zm4.96 1.4a.75.75 0 0 1 1.05-.2c.57.38 1.1.84 1.55 1.36V2.75a.75.75 0 0 1 1.5 0v4c0 .41-.34.75-.75.75h-4a.75.75 0 0 1 0-1.5h2.37a6.54 6.54 0 0 0-1.5-1.4.75.75 0 0 1-.21-1.05ZM6.4 4.6a.75.75 0 0 0-.84-1.24 8.04 8.04 0 0 0-2.2 2.2.75.75 0 0 0 1.24.84 6.54 6.54 0 0 1 1.8-1.8ZM3.03 7.85c.41.08.67.47.6.88a6.54 6.54 0 0 0 0 2.54.75.75 0 0 1-1.48.29 8.04 8.04 0 0 1 0-3.12c.08-.4.48-.67.88-.6ZM18 10v-.25a.75.75 0 0 0-1.5 0V10c0 .44-.04.86-.12 1.27a.75.75 0 1 0 1.47.29c.1-.5.15-1.03.15-1.56ZM3.55 13.4a.75.75 0 0 1 1.04.21c.48.71 1.09 1.32 1.8 1.8a.75.75 0 0 1-.84 1.24 8.04 8.04 0 0 1-2.2-2.2.75.75 0 0 1 .2-1.04Zm13.1 1.05a.75.75 0 0 0-1.24-.84 6.54 6.54 0 0 1-1.8 1.8.75.75 0 0 0 .84 1.24 8.04 8.04 0 0 0 2.2-2.2Zm-8.8 2.52c.08-.41.47-.67.88-.6a6.54 6.54 0 0 0 2.54 0 .75.75 0 1 1 .29 1.48 8.03 8.03 0 0 1-3.12 0 .75.75 0 0 1-.6-.88Z"]),ArrowDown20Regular=createFluentIcon("ArrowDown20Regular","20",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),ArrowUp20Regular=createFluentIcon("ArrowUp20Regular","20",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"]),ArrowUpload24Regular=createFluentIcon("ArrowUpload24Regular","24",["M18.25 3.51a.75.75 0 1 0 0-1.5h-13a.75.75 0 1 0 0 1.5h13ZM11.65 22h.1c.38 0 .7-.28.74-.64l.01-.1V7.56l3.72 3.72c.27.27.68.29.98.07l.08-.07a.75.75 0 0 0 .07-.98l-.07-.08-5-5a.75.75 0 0 0-.97-.07l-.09.07-5 5a.75.75 0 0 0 .98 1.13l.08-.07L11 7.58v13.67c0 .38.28.7.65.75Z"]),Attach16Regular=createFluentIcon("Attach16Regular","16",["M2.28 7.97a.5.5 0 0 0 .86.36l4.6-4.6A2.5 2.5 0 0 1 12 5.5a2.5 2.5 0 0 1-.73 1.77l-5.3 5.3a1 1 0 0 1-1.71-.7 1 1 0 0 1 .3-.71l5.3-5.3a.5.5 0 0 0-.7-.7l-5.32 5.29a2 2 0 1 0 2.83 2.83l5.3-5.3A3.49 3.49 0 0 0 9.5 2c-.9 0-1.8.34-2.48 1.02l-4.6 4.6a.5.5 0 0 0-.14.35Z"]),BranchRequest16Regular=createFluentIcon("BranchRequest16Regular","16",["M13 10.05V5.5A2.5 2.5 0 0 0 10.5 3H8.71l1.14-1.15c.2-.19.2-.51 0-.7a.48.48 0 0 0-.7 0l-2 2c-.2.19-.2.51 0 .7l2 2c.19.2.51.2.7 0 .2-.19.2-.51 0-.7L8.71 4h1.79c.83 0 1.5.67 1.5 1.5v4.55a2.5 2.5 0 1 0 1 0ZM12.5 14a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM6 3.5a2.5 2.5 0 1 0-3 2.45v4.1a2.5 2.5 0 1 0 1 0v-4.1A2.5 2.5 0 0 0 6 3.5Zm-4 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm3 9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),Checkmark12Filled=createFluentIcon("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),Checkmark16Filled=createFluentIcon("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),CheckmarkCircle20Filled=createFluentIcon("CheckmarkCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),ChevronDown16Regular=createFluentIcon("ChevronDown16Regular","16",["M3.15 5.65c.2-.2.5-.2.7 0L8 9.79l4.15-4.14a.5.5 0 0 1 .7.7l-4.5 4.5a.5.5 0 0 1-.7 0l-4.5-4.5a.5.5 0 0 1 0-.7Z"]),ChevronLeft12Regular=createFluentIcon("ChevronLeft12Regular","12",["M7.35 2.15c.2.2.2.5 0 .7L4.21 6l3.14 3.15a.5.5 0 1 1-.7.7l-3.5-3.5a.5.5 0 0 1 0-.7l3.5-3.5c.2-.2.5-.2.7 0Z"]),ChevronLeft16Regular=createFluentIcon("ChevronLeft16Regular","16",["M10.35 3.15c.2.2.2.5 0 .7L6.21 8l4.14 4.15a.5.5 0 0 1-.7.7l-4.5-4.5a.5.5 0 0 1 0-.7l4.5-4.5c.2-.2.5-.2.7 0Z"]),ChevronLeft20Regular=createFluentIcon("ChevronLeft20Regular","20",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),ChevronRight12Regular=createFluentIcon("ChevronRight12Regular","12",["M4.65 2.15a.5.5 0 0 0 0 .7L7.79 6 4.65 9.15a.5.5 0 1 0 .7.7l3.5-3.5a.5.5 0 0 0 0-.7l-3.5-3.5a.5.5 0 0 0-.7 0Z"]),ChevronRight16Regular=createFluentIcon("ChevronRight16Regular","16",["M5.65 3.15a.5.5 0 0 0 0 .7L9.79 8l-4.14 4.15a.5.5 0 0 0 .7.7l4.5-4.5a.5.5 0 0 0 0-.7l-4.5-4.5a.5.5 0 0 0-.7 0Z"]),ChevronRight20Regular=createFluentIcon("ChevronRight20Regular","20",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),Clock12Regular=createFluentIcon("Clock12Regular","12",["M6 1a5 5 0 1 1 0 10A5 5 0 0 1 6 1Zm0 1a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-.5 1.5a.5.5 0 0 1 .5.41V6h1.5a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.5-.41V4c0-.28.22-.5.5-.5Z"]),Clock20Regular=createFluentIcon("Clock20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm-.5 2a.5.5 0 0 1 .5.41V10h2.5a.5.5 0 0 1 .09 1H9.5a.5.5 0 0 1-.5-.41V5.5c0-.28.22-.5.5-.5Z"]),Code16Regular=createFluentIcon("Code16Regular","16",["M9.8 3.04c.26.12.37.41.26.66l-4 9a.5.5 0 0 1-.92-.4l4-9a.5.5 0 0 1 .66-.26ZM4.33 5.38c.2.18.23.5.04.7L2.67 8l1.7 1.92a.5.5 0 1 1-.74.66l-2-2.25a.5.5 0 0 1 0-.66l2-2.25a.5.5 0 0 1 .7-.04Zm7.34 0a.5.5 0 0 1 .7.04l2 2.25a.5.5 0 0 1 0 .66l-2 2.25a.5.5 0 1 1-.74-.66L13.33 8l-1.7-1.92a.5.5 0 0 1 .04-.7Z"]),Copy20Regular=createFluentIcon("Copy20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z"]),CopyArrowRight20Regular=createFluentIcon("CopyArrowRight20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h1.2c-.08-.32-.15-.66-.18-1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v5.02c.34.03.68.1 1 .19V4a2 2 0 0 0-2-2H8Zm-.5 15h2.1c.18.36.4.7.66 1H7.5A3.5 3.5 0 0 1 4 14.5V6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17Zm7-7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm2.35 4.85a.5.5 0 0 0 .15-.35.5.5 0 0 0-.15-.35l-2-2a.5.5 0 0 0-.7.7L15.29 14H12.5a.5.5 0 0 0 0 1h2.8l-1.15 1.15a.5.5 0 0 0 .7.7l2-2Z"]),Dismiss20Regular=createFluentIcon("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),Dismiss24Regular=createFluentIcon("Dismiss24Regular","24",["m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"]),DismissCircle12Filled=createFluentIcon("DismissCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm1.85-6.85c.2.2.2.5 0 .7L6.71 6l1.14 1.15a.5.5 0 1 1-.7.7L6 6.71 4.85 7.85a.5.5 0 1 1-.7-.7L5.29 6 4.15 4.85a.5.5 0 1 1 .7-.7L6 5.29l1.15-1.14c.2-.2.5-.2.7 0Z"]),DismissCircle20Filled=createFluentIcon("DismissCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z"]),DismissCircle20Regular=createFluentIcon("DismissCircle20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM7.8 7.11l.08.06L10 9.3l2.12-2.12a.5.5 0 0 1 .64-.06l.07.06c.17.18.2.44.06.64l-.06.07L10.7 10l2.12 2.12c.17.17.2.44.06.64l-.06.07a.5.5 0 0 1-.64.06l-.07-.06L10 10.7l-2.12 2.12a.5.5 0 0 1-.64.06l-.07-.06a.5.5 0 0 1-.06-.64l.06-.07L9.3 10 7.17 7.88a.5.5 0 0 1-.06-.64l.06-.07a.5.5 0 0 1 .64-.06Z"]),Document16Regular=createFluentIcon("Document16Regular","16",["M5 1a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V5.41c0-.4-.16-.78-.44-1.06L9.65 1.44A1.5 1.5 0 0 0 8.59 1H5ZM4 3a1 1 0 0 1 1-1h3v2.5C8 5.33 8.67 6 9.5 6H12v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V3Zm7.8 2H9.5a.5.5 0 0 1-.5-.5V2.2L11.8 5Z"]),EmojiSparkle16Regular=createFluentIcon("EmojiSparkle16Regular","16",["M13.8 2.22h-.02l-.76-.26a1.58 1.58 0 0 1-1-1L11.77.2a.3.3 0 0 0-.57 0l-.25.77a1.58 1.58 0 0 1-.98 1l-.6.19-.17.05a.3.3 0 0 0-.15.11.3.3 0 0 0 .15.46l.77.25.08.03a1.58 1.58 0 0 1 .89.9l.03.07.24.77a.3.3 0 0 0 .29.2.3.3 0 0 0 .29-.2l.24-.77a1.58 1.58 0 0 1 1-1l.77-.24a.3.3 0 0 0 0-.57Zm1.41 3.35.62.2a.24.24 0 0 1 0 .46l-.6.2a1.26 1.26 0 0 0-.8.8l-.2.6a.24.24 0 0 1-.24.17.24.24 0 0 1-.22-.16l-.2-.61a1.26 1.26 0 0 0-.8-.8l-.03-.01-.58-.2a.24.24 0 0 1 0-.45l.61-.2a1.26 1.26 0 0 0 .8-.8l.19-.6a.24.24 0 0 1 .46 0l.2.6a1.26 1.26 0 0 0 .8.8ZM8.06 2.9 8.1 3H8a5 5 0 1 0 4.98 5.46 1.25 1.25 0 0 0 .94.54A6 6 0 1 1 8.1 2a1.3 1.3 0 0 0-.04.9ZM6.25 7.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-.11 1.92a.5.5 0 1 0-.75.66 3.5 3.5 0 0 0 5.22 0 .5.5 0 0 0-.75-.66 2.5 2.5 0 0 1-3.72 0ZM10.5 7A.75.75 0 1 1 9 7a.75.75 0 0 1 1.5 0Z"]),ErrorCircle16Filled=createFluentIcon("ErrorCircle16Filled","16",["M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 8a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-5.5a.5.5 0 0 0-.5.41V8.59a.5.5 0 0 0 1 0V4.91A.5.5 0 0 0 8 4.5Z"]),ErrorCircle20Filled=createFluentIcon("ErrorCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),Flow16Regular=createFluentIcon("Flow16Regular","16",["M12.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm-2.45 2a2.5 2.5 0 1 0 0-1H9.5a2 2 0 0 0-2 2v2a1 1 0 0 1-1 1h-.55a2.5 2.5 0 1 0 0 1h.55a2 2 0 0 0 2-2V7a1 1 0 0 1 1-1h.55ZM5 10.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),GanttChart20Regular=createFluentIcon("GanttChart20Regular","20",["M4.5 7a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4ZM9 9.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5Zm3.5 1.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3Zm-8-7A2.5 2.5 0 0 0 2 6.5v7A2.5 2.5 0 0 0 4.5 16h11a2.5 2.5 0 0 0 2.5-2.5v-7A2.5 2.5 0 0 0 15.5 4h-11ZM3 6.5C3 5.67 3.67 5 4.5 5H7v1h1V5h4v3h1V5h2.5c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5H13v-2h-1v2H8V9H7v6H4.5A1.5 1.5 0 0 1 3 13.5v-7Z"]),HexagonThree16Regular=createFluentIcon("HexagonThree16Regular","16",["M3.47 2a1 1 0 0 1 .87-.5h2.32a1 1 0 0 1 .87.5l1.16 2a1 1 0 0 1 0 1L7.53 7a1 1 0 0 1-.87.5H4.34a1 1 0 0 1-.87-.5L2.31 5a1 1 0 0 1 0-1l1.16-2Zm3.2.5H4.33l-1.16 2 1.16 2h2.32l1.16-2-1.16-2ZM3.46 9a1 1 0 0 1 .87-.5h2.32a1 1 0 0 1 .87.5l1.16 2a1 1 0 0 1 0 1l-1.16 2a1 1 0 0 1-.87.5H4.34a1 1 0 0 1-.87-.5l-1.16-2a1 1 0 0 1 0-1l1.16-2Zm3.2.5H4.33l-1.16 2 1.16 2h2.32l1.16-2-1.16-2ZM10.33 5a1 1 0 0 0-.87.5l-1.16 2a1 1 0 0 0 0 1l1.16 2c.18.31.51.5.87.5h2.32a1 1 0 0 0 .87-.5l1.16-2a1 1 0 0 0 0-1l-1.16-2a1 1 0 0 0-.87-.5h-2.32Zm0 1h2.32l1.16 2-1.16 2h-2.32L9.18 8l1.16-2Z"]),Laptop16Regular=createFluentIcon("Laptop16Regular","16",["M4.5 4C3.67 4 3 4.67 3 5.5v4c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5v-4c0-.83-.67-1.5-1.5-1.5h-7ZM4 5.5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4ZM2.5 12a.5.5 0 0 0 0 1h11a.5.5 0 0 0 0-1h-11Z"]),Laptop24Regular=createFluentIcon("Laptop24Regular","24",["M2.75 16.5h18.5a.75.75 0 0 1 .1 1.5H2.75a.75.75 0 0 1-.1-1.5h18.6-18.5ZM18.25 5c.97 0 1.75.78 1.75 1.75v7.5c0 .97-.78 1.75-1.75 1.75H5.75C4.78 16 4 15.22 4 14.25v-7.5C4 5.78 4.78 5 5.75 5h12.5Zm0 1.5H5.75a.25.25 0 0 0-.25.25v7.5c0 .14.11.25.25.25h12.5c.14 0 .25-.11.25-.25v-7.5a.25.25 0 0 0-.25-.25Z"]),Link16Regular=createFluentIcon("Link16Regular","16",["M9.5 4h1a3.5 3.5 0 0 1 .2 7H9.5a.5.5 0 0 1-.1-.99h.1l1-.01a2.5 2.5 0 0 0 .16-5H9.5a.5.5 0 0 1-.09-1h1.09-1Zm-4 0h1a.5.5 0 0 1 .09 1H5.5a2.5 2.5 0 0 0-.16 5H6.5a.5.5 0 0 1 .09 1H5.5a3.5 3.5 0 0 1-.2-7h1.2-1Zm0 3h5a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.09-1h.09Z"]),Mail16Regular=createFluentIcon("Mail16Regular","16",["M2 6.04V11c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v1.04ZM4 4h8a1 1 0 0 1 1 1v.74l-5 2.7-5-2.7V5a1 1 0 0 1 1-1ZM3 6.88l4.76 2.56a.5.5 0 0 0 .48 0L13 6.88V11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6.88Z"]),NumberCircle020Regular=createFluentIcon("NumberCircle020Regular","20",["M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-7 8a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm-2-8c0-1.07.15-1.97.49-2.6.16-.3.36-.51.6-.66.23-.15.52-.24.91-.24s.68.1.92.24c.23.15.43.37.6.67.33.62.48 1.52.48 2.59 0 1.07-.15 1.97-.49 2.6-.16.3-.36.51-.6.66-.23.15-.52.24-.91.24s-.68-.1-.92-.24a1.74 1.74 0 0 1-.6-.67A5.65 5.65 0 0 1 8 10Zm2-4.5c-.55 0-1.04.13-1.45.4-.4.25-.72.61-.94 1.03A6.6 6.6 0 0 0 7 10c0 1.14.16 2.23.6 3.07.23.42.54.78.95 1.04.41.26.9.39 1.45.39.55 0 1.04-.13 1.45-.4.4-.25.72-.61.94-1.03.45-.84.61-1.93.61-3.07a6.6 6.6 0 0 0-.6-3.07 2.74 2.74 0 0 0-.95-1.04c-.41-.26-.9-.39-1.45-.39Z"]),PanelRightContract20Regular=createFluentIcon("PanelRightContract20Regular","20",["m9.18 10.5-1 .87a.5.5 0 1 0 .66.76l2-1.75a.5.5 0 0 0 0-.76l-2-1.75a.5.5 0 1 0-.66.76l1 .87H5.5a.5.5 0 0 0 0 1h3.68ZM16 16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h12Zm1-2a1 1 0 0 1-1 1h-3V5h3a1 1 0 0 1 1 1v8Zm-5-9v10H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h8Z"]),PanelRightExpand20Regular=createFluentIcon("PanelRightExpand20Regular","20",["m6.82 10.5 1 .87a.5.5 0 0 1-.66.76l-2-1.75a.5.5 0 0 1 0-.76l2-1.75a.5.5 0 0 1 .66.76l-1 .87h3.68a.5.5 0 0 1 0 1H6.82ZM18 14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v8Zm-2 1a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-3v10h3Zm-4 0V5H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8Z"]),Person16Regular=createFluentIcon("Person16Regular","16",["M11.5 8c.83 0 1.5.67 1.5 1.5v.5c0 1.97-1.86 4-5 4-3.14 0-5-2.03-5-4v-.5C3 8.67 3.67 8 4.5 8h7Zm0 1h-7a.5.5 0 0 0-.5.5v.5c0 1.44 1.43 3 4 3 2.57 0 4-1.56 4-3v-.5a.5.5 0 0 0-.5-.5ZM8 1.5A2.75 2.75 0 1 1 8 7a2.75 2.75 0 0 1 0-5.5Zm0 1A1.75 1.75 0 1 0 8 6a1.75 1.75 0 0 0 0-3.5Z"]),Person24Regular=createFluentIcon("Person24Regular","24",["M17.75 14C19 14 20 15 20 16.25v.57c0 .9-.32 1.76-.9 2.44C17.53 21.1 15.15 22 12 22c-3.15 0-5.53-.9-7.1-2.74a3.75 3.75 0 0 1-.9-2.43v-.58C4 15 5.01 14 6.25 14h11.5Zm0 1.5H6.25a.75.75 0 0 0-.75.75v.58c0 .53.2 1.05.54 1.46C7.3 19.76 9.26 20.5 12 20.5c2.74 0 4.7-.74 5.96-2.21.35-.41.54-.93.54-1.47v-.57a.75.75 0 0 0-.75-.75ZM12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z"]),QuestionCircle16Regular=createFluentIcon("QuestionCircle16Regular","16",["M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 1a5 5 0 1 0 0 10A5 5 0 0 0 8 3Zm0 7.5A.75.75 0 1 1 8 12a.75.75 0 0 1 0-1.5Zm0-6a2 2 0 0 1 2 2c0 .73-.21 1.14-.75 1.7l-.27.28c-.38.4-.48.6-.48 1.02a.5.5 0 0 1-1 0c0-.73.21-1.14.75-1.7l.27-.28c.38-.4.48-.6.48-1.02a1 1 0 0 0-2 0 .5.5 0 0 1-1 0c0-1.1.9-2 2-2Z"]),QuestionCircle20Filled=createFluentIcon("QuestionCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 11.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-8A2.5 2.5 0 0 0 7.5 8a.5.5 0 0 0 1 0 1.5 1.5 0 1 1 2.63.98l-.1.11-.12.1-.25.19A3.2 3.2 0 0 0 9.5 12a.5.5 0 0 0 1 0c0-.76.2-1.25.53-1.61l.08-.08.08-.07.09-.07.22-.17.15-.12A2.5 2.5 0 0 0 10 5.5Z"]),Run16Regular=createFluentIcon("Run16Regular","16",["M7.31 1.04a.5.5 0 0 1 .39 0l4.9 2.1a.5.5 0 0 1 .08.88h-.02a2.69 2.69 0 0 0-.22.17c-.15.11-.35.28-.55.48-.4.38-.75.85-.87 1.3a26.17 26.17 0 0 0 1.36 3.18l1.6.96A2.1 2.1 0 0 1 15 11.9v1.59a.5.5 0 0 1-.48.5l-.02-.5.02.5h-.04a7.94 7.94 0 0 1-.42 0 21.2 21.2 0 0 1-5-.72c-2.9-.79-6.32-2.47-8.01-6.07a.5.5 0 0 1 0-.43 12.84 12.84 0 0 1 2.72-3.32 13 13 0 0 1 3.54-2.42ZM14 13v-.54C7.67 11.9 4.16 9.28 2.44 6.42c-.15.2-.27.4-.38.59 1.55 3.06 4.55 4.57 7.27 5.3A20.2 20.2 0 0 0 14 13Zm-.53-2.04-1.4-.83-.88.89c.83.19 1.73.33 2.71.43a1.1 1.1 0 0 0-.43-.49Zm-3.32-.31 1.24-1.25v-.02a43.7 43.7 0 0 1-1.27-2.94l-1.56-.26 1.36 2.04a.5.5 0 0 1-.02.58l-1.12 1.49c.41.16.84.3 1.3.44a.5.5 0 0 1 .07-.08Zm0-5.22a4.45 4.45 0 0 1 1.28-1.7L7.5 2.04c-.82.37-1.84 1.09-2.81 1.94l1.16 1.17c.1.09.15.22.15.35v3.3c.54.39 1.15.75 1.84 1.08l1.05-1.4-1.8-2.7a.5.5 0 0 1 .5-.77l2.55.42Zm-6.2-.77c-.3.3-.59.61-.85.92A9.45 9.45 0 0 0 5 7.98V5.71L3.96 4.66Z"]),Search20Regular=createFluentIcon("Search20Regular","20",["M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),Settings16Regular=createFluentIcon("Settings16Regular","16",["M8 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM7 8a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm3.62-3.6a.7.7 0 0 1-.83-.57l-.26-1.42a.35.35 0 0 0-.27-.28 6.07 6.07 0 0 0-2.52 0 .35.35 0 0 0-.27.29L6.2 3.83a.71.71 0 0 1-.94.54l-1.36-.49a.36.36 0 0 0-.38.1c-.57.63-1 1.37-1.26 2.17-.05.14 0 .29.1.38l1.1.93a.7.7 0 0 1 0 1.08l-1.1.93c-.1.1-.15.24-.1.38.26.8.69 1.54 1.26 2.17.1.1.25.14.38.1l1.36-.49a.7.7 0 0 1 .94.54l.26 1.41c.02.15.13.26.27.29a6.07 6.07 0 0 0 2.52 0 .35.35 0 0 0 .27-.29l.26-1.41a.71.71 0 0 1 .94-.54l1.36.49c.13.04.28 0 .38-.1.57-.63 1-1.37 1.26-2.17a.35.35 0 0 0-.1-.38l-1.1-.93a.7.7 0 0 1 0-1.08l1.1-.93c.1-.1.15-.24.1-.38-.26-.8-.69-1.54-1.26-2.17a.36.36 0 0 0-.38-.1l-1.36.49a.71.71 0 0 1-.11.03ZM4 4.98l.94.33a1.71 1.71 0 0 0 2.25-1.3l.18-.97a5.1 5.1 0 0 1 1.26 0l.18.97a1.7 1.7 0 0 0 2.25 1.3l.94-.33c.26.33.47.7.63 1.08l-.75.64a1.7 1.7 0 0 0 0 2.6l.75.64c-.16.39-.37.75-.63 1.08l-.94-.33a1.7 1.7 0 0 0-2.25 1.3l-.18.97a5.1 5.1 0 0 1-1.26 0l-.18-.97a1.7 1.7 0 0 0-2.25-1.3l-.94.33c-.26-.33-.47-.7-.63-1.08l.75-.64a1.7 1.7 0 0 0 0-2.6l-.75-.64c.16-.39.37-.75.63-1.08Z"]),Share20Regular=createFluentIcon("Share20Regular","20",["m13.33 12.84 4.5-4.42.05-.07a.59.59 0 0 0-.05-.77l-4.5-4.42-.06-.05c-.36-.27-.9-.01-.9.47V5.7l-.22.01C8.6 6.01 6.5 8.26 6 12.35c-.06.53.54.85.93.5a9.64 9.64 0 0 1 4.45-2.38c.24-.06.5-.1.74-.12l.26-.02v2.17c.06.46.61.67.95.34Zm-1.1-6.12 1.15-.08V4.61L16.82 8l-3.44 3.39V9.23l-1.36.12c-1.7.19-3.32.87-4.83 2 .3-1.33.8-2.34 1.47-3.06a5.2 5.2 0 0 1 3.57-1.57ZM5.5 4A2.5 2.5 0 0 0 3 6.5v8A2.5 2.5 0 0 0 5.5 17h8a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1c0 .83-.67 1.5-1.5 1.5h-8A1.5 1.5 0 0 1 4 14.5v-8C4 5.67 4.67 5 5.5 5h3a.5.5 0 0 0 0-1h-3Z"]),ShieldCheckmark24Regular=createFluentIcon("ShieldCheckmark24Regular","24",["M3 5.75c0-.41.34-.75.75-.75 2.66 0 5.26-.94 7.8-2.85.27-.2.63-.2.9 0C14.99 4.05 17.59 5 20.25 5c.41 0 .75.34.75.75V11c0 .34-.01.67-.04 1a6.47 6.47 0 0 0-1.46-.69V6.48a14.36 14.36 0 0 1-7.5-2.8 14.36 14.36 0 0 1-7.5 2.8V11c0 4.15 2.33 7.22 7.13 9.28.26.56.6 1.07 1 1.52l-.36.15a.75.75 0 0 1-.54 0C5.96 19.68 3 16 3 11V5.75ZM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Zm-2.15-2.35a.5.5 0 0 0-.7 0l-3.65 3.64-1.65-1.64a.5.5 0 0 0-.7.7l2 2c.2.2.5.2.7 0l4-4a.5.5 0 0 0 0-.7Z"]),Square12Filled=createFluentIcon("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),Square16Filled=createFluentIcon("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),TextBulletListSquareWarning24Regular=createFluentIcon("TextBulletListSquareWarning24Regular","24",["M7.75 9.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm3.5-1.75a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Zm0 3.75a.75.75 0 1 0 0 1.5h3.83l.19-.37c.26-.53.67-.9 1.13-1.13h-5.15Zm0 3.75h2.7l-.74 1.5h-1.96a.75.75 0 1 1 0-1.5Zm-5 4.5h5.46l-.44.88c-.1.2-.17.41-.22.62h-4.8A3.25 3.25 0 0 1 3 17.75V6.25C3 4.45 4.46 3 6.25 3h11.5C19.55 3 21 4.46 21 6.25v8.65l-1.26-2.52a2.6 2.6 0 0 0-.24-.39V6.25c0-.97-.78-1.75-1.75-1.75H6.25c-.97 0-1.75.78-1.75 1.75v11.5c0 .97.78 1.75 1.75 1.75Zm2.5-7.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 4.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm8.41-3.92a1.5 1.5 0 0 1 2.69 0l4 8c.5 1-.23 2.17-1.35 2.17h-8a1.5 1.5 0 0 1-1.34-2.17l4-8ZM18 15.5a.5.5 0 0 0-1 0v3a.5.5 0 0 0 1 0v-3Zm-.5 5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"]),TextWrap16Regular=createFluentIcon("TextWrap16Regular","16",["M2 3.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm0 4c0-.28.22-.5.5-.5h10a2.5 2.5 0 0 1 0 5H9.7l.65.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7l1.5-1.5a.5.5 0 0 1 .7.7l-.64.65h2.79a1.5 1.5 0 0 0 0-3h-10a.5.5 0 0 1-.5-.5ZM6 11a.5.5 0 0 1 0 1H2.5a.5.5 0 0 1 0-1H6Z"]),TextWrapOff16Regular=createFluentIcon("TextWrapOff16Regular","16",["M14.15 14.85 11.29 12H9.71l.64.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7L9.29 10l-2-2H2.5a.5.5 0 0 1 0-1h3.8l-3-3h-.8a.5.5 0 0 1-.18-.97L1.15 1.85a.5.5 0 1 1 .7-.7l13 13a.5.5 0 0 1-.7.7ZM10.12 8l-1-1h3.38a2.5 2.5 0 0 1 1.27 4.65l-.74-.74A1.5 1.5 0 0 0 12.5 8h-2.38Zm-4-4-1-1h8.38a.5.5 0 0 1 0 1H6.12ZM6 11a.5.5 0 0 1 0 1H2.5a.5.5 0 0 1 0-1H6Z"]),ZoomIn20Regular=createFluentIcon("ZoomIn20Regular","20",["M11.5 8.5A.5.5 0 0 0 11 8H9V6a.5.5 0 0 0-1 0v2H6a.5.5 0 0 0 0 1h2v2a.5.5 0 0 0 1 0V9h2a.5.5 0 0 0 .5-.5ZM8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),iconFilledClassName="fui-Icon-filled",iconRegularClassName="fui-Icon-regular",useBundledIconStyles=__styles({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),bundleIcon=(eo,to)=>{const no=io=>{const{className:so,primaryFill:ao="currentColor",filled:lo,...uo}=io,ho=useBundledIconStyles();return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(eo,Object.assign({},uo,{className:mergeClasses(ho.root,lo&&ho.visible,iconFilledClassName,so),fill:ao})),reactExports.createElement(to,Object.assign({},uo,{className:mergeClasses(ho.root,!lo&&ho.visible,iconRegularClassName,so),fill:ao})))};return no.displayName="CompoundIcon",no},bundleIcon$1=bundleIcon,renderFluentProvider_unstable=(eo,to)=>jsx$1(Provider$1,{value:to.provider,children:jsx$1(ThemeProvider,{value:to.theme,children:jsx$1(ThemeClassNameProvider,{value:to.themeClassName,children:jsx$1(CustomStyleHooksProvider,{value:to.customStyleHooks_unstable,children:jsx$1(TooltipVisibilityProvider,{value:to.tooltip,children:jsx$1(TextDirectionProvider,{dir:to.textDirection,children:jsx$1(IconDirectionContextProvider,{value:to.iconDirection,children:jsx$1(OverridesProvider,{value:to.overrides_unstable,children:jsxs(eo.root,{children:[canUseDOM$3()?null:jsx$1("style",{dangerouslySetInnerHTML:{__html:eo.serverStyleProps.cssRule},...eo.serverStyleProps.attributes}),eo.root.children]})})})})})})})})});/*! +`)}`," ".repeat(4)+""," ".repeat(2)+"",eo.indexOf("&")}function warnAboutUnsupportedProperties(eo,to){}function pushToClassesMap(eo,to,no,io){eo[to]=io?[no,io]:no}function createBucketEntry(eo,to){return to?[eo,to]:eo}function pushToCSSRules(eo,to,no,io,so){var ao;let lo;to==="m"&&so&&(lo={m:so}),(ao=eo[to])!==null&&ao!==void 0||(eo[to]=[]),no&&eo[to].push(createBucketEntry(no,lo)),io&&eo[to].push(createBucketEntry(io,lo))}function resolveStyleRules(eo,to=[],no="",io="",so="",ao="",lo={},uo={},ho){for(const go in eo){if(UNSUPPORTED_CSS_PROPERTIES.hasOwnProperty(go)){eo[go];continue}const mo=eo[go];if(mo!=null){if(typeof mo=="string"||typeof mo=="number"){const yo=trimSelector(to.join("")),So=hashPropertyKey(yo,ao,no,so,go),_o=hashClassName({container:ao,media:no,layer:io,value:mo.toString(),support:so,selector:yo,property:go}),ko=ho&&{key:go,value:ho}||convertProperty(go,mo),Co=ko.key!==go||ko.value!==mo,$o=Co?hashClassName({container:ao,value:ko.value.toString(),property:ko.key,selector:yo,media:no,layer:io,support:so}):void 0,Ro=Co?{rtlClassName:$o,rtlProperty:ko.key,rtlValue:ko.value}:void 0,Oo=getStyleBucketName(to,io,no,so,ao),[No,Mo]=compileAtomicCSSRule({className:_o,media:no,layer:io,selectors:to,property:go,support:so,container:ao,value:mo,...Ro});pushToClassesMap(lo,So,_o,$o),pushToCSSRules(uo,Oo,No,Mo,no)}else if(go==="animationName"){const yo=Array.isArray(mo)?mo:[mo],So=[],_o=[];for(const ko of yo){const Co=compileKeyframeRule(ko),$o=compileKeyframeRule(convert(ko)),Ro=HASH_PREFIX+murmur2(Co);let Oo;const No=compileKeyframesCSS(Ro,Co);let Mo=[];Co===$o?Oo=Ro:(Oo=HASH_PREFIX+murmur2($o),Mo=compileKeyframesCSS(Oo,$o));for(let Bo=0;Bo(Fo??"").toString()).join(";"),support:so,selector:yo,property:go}),ko=mo.map(Fo=>convertProperty(go,Fo));if(!!ko.some(Fo=>Fo.key!==ko[0].key))continue;const $o=ko[0].key!==go||ko.some((Fo,Lo)=>Fo.value!==mo[Lo]),Ro=$o?hashClassName({container:ao,value:ko.map(Fo=>{var Lo;return((Lo=Fo==null?void 0:Fo.value)!==null&&Lo!==void 0?Lo:"").toString()}).join(";"),property:ko[0].key,selector:yo,layer:io,media:no,support:so}):void 0,Oo=$o?{rtlClassName:Ro,rtlProperty:ko[0].key,rtlValue:ko.map(Fo=>Fo.value)}:void 0,No=getStyleBucketName(to,io,no,so,ao),[Mo,Bo]=compileAtomicCSSRule({className:_o,media:no,layer:io,selectors:to,property:go,support:so,container:ao,value:mo,...Oo});pushToClassesMap(lo,So,_o,Ro),pushToCSSRules(uo,No,Mo,Bo,no)}else if(isObject$k(mo))if(isNestedSelector(go))resolveStyleRules(mo,to.concat(normalizeNestedProperty(go)),no,io,so,ao,lo,uo);else if(isMediaQuerySelector(go)){const yo=generateCombinedQuery(no,go.slice(6).trim());resolveStyleRules(mo,to,yo,io,so,ao,lo,uo)}else if(isLayerSelector(go)){const yo=(io?`${io}.`:"")+go.slice(6).trim();resolveStyleRules(mo,to,no,yo,so,ao,lo,uo)}else if(isSupportQuerySelector(go)){const yo=generateCombinedQuery(so,go.slice(9).trim());resolveStyleRules(mo,to,no,io,yo,ao,lo,uo)}else if(isContainerQuerySelector(go)){const yo=go.slice(10).trim();resolveStyleRules(mo,to,no,io,so,yo,lo,uo)}else warnAboutUnresolvedRule(go,mo)}}return[lo,uo]}function resolveStyleRulesForSlots(eo){const to={},no={};for(const io in eo){const so=eo[io],[ao,lo]=resolveStyleRules(so);to[io]=ao,Object.keys(lo).forEach(uo=>{no[uo]=(no[uo]||[]).concat(lo[uo])})}return[to,no]}function makeStyles$1(eo,to=insertionFactory$1){const no=to();let io=null,so=null,ao=null,lo=null;function uo(ho){const{dir:go,renderer:mo}=ho;io===null&&([io,so]=resolveStyleRulesForSlots(eo));const yo=go==="ltr";return yo?ao===null&&(ao=reduceToClassNameForSlots(io,go)):lo===null&&(lo=reduceToClassNameForSlots(io,go)),no(mo,so),yo?ao:lo}return uo}function compileStaticCSS(eo,to){const no=`${eo} {${cssifyObject(to)}}`;return compileCSSRules(no,!1)[0]}function resolveStaticStyleRules(eo){return eo.reduce((to,no)=>{if(typeof no=="string"){const io=compileCSSRules(no,!1);for(const so of io)to.push(so);return to}for(const io in no){const so=no[io],ao=compileStaticCSS(io,so);to.push(ao)}return to},[])}function makeStaticStyles$1(eo,to=insertionFactory$1){const no=to(),io=Array.isArray(eo)?eo:[eo];function so(ao){no(ao.renderer,{d:resolveStaticStyleRules(io)})}return so}function __styles$1(eo,to,no=insertionFactory$1){const io=no();let so=null,ao=null;function lo(uo){const{dir:ho,renderer:go}=uo,mo=ho==="ltr";return mo?so===null&&(so=reduceToClassNameForSlots(eo,ho)):ao===null&&(ao=reduceToClassNameForSlots(eo,ho)),io(go,to),mo?so:ao}return lo}function __resetStyles$1(eo,to,no,io=insertionFactory$1){const so=io();function ao(lo){const{dir:uo,renderer:ho}=lo,go=uo==="ltr"?eo:to||eo;return so(ho,Array.isArray(no)?{r:no}:no),go}return ao}const shorthands={border,borderLeft,borderBottom,borderRight,borderTop,borderColor,borderStyle,borderRadius:borderRadius$1,borderWidth:borderWidth$1,flex,gap,gridArea,margin,marginBlock,marginInline,padding:padding$2,paddingBlock,paddingInline,overflow,inset,outline,transition:transition$1,textDecoration};function canUseDOM$4(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const useInsertionEffect$2=React$1.useInsertionEffect?React$1.useInsertionEffect:void 0,insertionFactory=()=>{const eo={};return function(no,io){if(useInsertionEffect$2&&canUseDOM$4()){useInsertionEffect$2(()=>{no.insertCSSRules(io)},[no,io]);return}eo[no.id]===void 0&&(no.insertCSSRules(io),eo[no.id]=!0)}},RendererContext=reactExports.createContext(createDOMRenderer());function useRenderer(){return reactExports.useContext(RendererContext)}const TextDirectionContext=reactExports.createContext("ltr"),TextDirectionProvider=({children:eo,dir:to})=>reactExports.createElement(TextDirectionContext.Provider,{value:to},eo);function useTextDirection(){return reactExports.useContext(TextDirectionContext)}function makeStyles(eo){const to=makeStyles$1(eo,insertionFactory);return function(){const io=useTextDirection(),so=useRenderer();return to({dir:io,renderer:so})}}function makeStaticStyles(eo){const to=makeStaticStyles$1(eo,insertionFactory);return function(){const so={renderer:useRenderer()};return to(so)}}function __styles(eo,to){const no=__styles$1(eo,to,insertionFactory);return function(){const so=useTextDirection(),ao=useRenderer();return no({dir:so,renderer:ao})}}function __resetStyles(eo,to,no){const io=__resetStyles$1(eo,to,no,insertionFactory);return function(){const ao=useTextDirection(),lo=useRenderer();return io({dir:ao,renderer:lo})}}function createCSSRuleFromTheme(eo,to){if(to){const no=Object.keys(to).reduce((io,so)=>`${io}--${so}: ${to[so]}; `,"");return`${eo} { ${no} }`}return`${eo} {}`}const SLOT_RENDER_FUNCTION_SYMBOL=Symbol("fui.slotRenderFunction"),SLOT_ELEMENT_TYPE_SYMBOL=Symbol("fui.slotElementType");function always(eo,to){const{defaultProps:no,elementType:io}=to,so=resolveShorthand(eo),ao={...no,...so,[SLOT_ELEMENT_TYPE_SYMBOL]:io};return so&&typeof so.children=="function"&&(ao[SLOT_RENDER_FUNCTION_SYMBOL]=so.children,ao.children=no==null?void 0:no.children),ao}function optional(eo,to){if(!(eo===null||eo===void 0&&!to.renderByDefault))return always(eo,to)}function resolveShorthand(eo){return typeof eo=="string"||typeof eo=="number"||Array.isArray(eo)||reactExports.isValidElement(eo)?{children:eo}:eo}function isSlot(eo){return!!(eo!=null&&eo.hasOwnProperty(SLOT_ELEMENT_TYPE_SYMBOL))}function isResolvedShorthand(eo){return eo!==null&&typeof eo=="object"&&!Array.isArray(eo)&&!reactExports.isValidElement(eo)}const toObjectMap$1=(...eo)=>{const to={};for(const no of eo){const io=Array.isArray(no)?no:Object.keys(no);for(const so of io)to[so]=1}return to},baseElementEvents$1=toObjectMap$1(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),baseElementProperties$1=toObjectMap$1(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),microdataProperties=toObjectMap$1(["itemID","itemProp","itemRef","itemScope","itemType"]),htmlElementProperties$1=toObjectMap$1(baseElementProperties$1,baseElementEvents$1,microdataProperties),labelProperties=toObjectMap$1(htmlElementProperties$1,["form"]),audioProperties$1=toObjectMap$1(htmlElementProperties$1,["height","loop","muted","preload","src","width"]),videoProperties=toObjectMap$1(audioProperties$1,["poster"]),olProperties=toObjectMap$1(htmlElementProperties$1,["start"]),liProperties=toObjectMap$1(htmlElementProperties$1,["value"]),anchorProperties$1=toObjectMap$1(htmlElementProperties$1,["download","href","hrefLang","media","rel","target","type"]),timeProperties=toObjectMap$1(htmlElementProperties$1,["dateTime"]),buttonProperties$1=toObjectMap$1(htmlElementProperties$1,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),inputProperties=toObjectMap$1(buttonProperties$1,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textAreaProperties=toObjectMap$1(buttonProperties$1,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),selectProperties=toObjectMap$1(buttonProperties$1,["form","multiple","required"]),optionProperties=toObjectMap$1(htmlElementProperties$1,["selected","value"]),tableProperties=toObjectMap$1(htmlElementProperties$1,["cellPadding","cellSpacing"]),trProperties=htmlElementProperties$1,thProperties=toObjectMap$1(htmlElementProperties$1,["colSpan","rowSpan","scope"]),tdProperties=toObjectMap$1(htmlElementProperties$1,["colSpan","headers","rowSpan","scope"]),colGroupProperties=toObjectMap$1(htmlElementProperties$1,["span"]),colProperties=toObjectMap$1(htmlElementProperties$1,["span"]),fieldsetProperties=toObjectMap$1(htmlElementProperties$1,["disabled","form"]),formProperties=toObjectMap$1(htmlElementProperties$1,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframeProperties=toObjectMap$1(htmlElementProperties$1,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),imgProperties$1=toObjectMap$1(htmlElementProperties$1,["alt","crossOrigin","height","src","srcSet","useMap","width"]),dialogProperties=toObjectMap$1(htmlElementProperties$1,["open","onCancel","onClose"]);function getNativeProps$1(eo,to,no){const io=Array.isArray(to),so={},ao=Object.keys(eo);for(const lo of ao)(!io&&to[lo]||io&&to.indexOf(lo)>=0||lo.indexOf("data-")===0||lo.indexOf("aria-")===0)&&(!no||(no==null?void 0:no.indexOf(lo))===-1)&&(so[lo]=eo[lo]);return so}const nativeElementMap={label:labelProperties,audio:audioProperties$1,video:videoProperties,ol:olProperties,li:liProperties,a:anchorProperties$1,button:buttonProperties$1,input:inputProperties,textarea:textAreaProperties,select:selectProperties,option:optionProperties,table:tableProperties,tr:trProperties,th:thProperties,td:tdProperties,colGroup:colGroupProperties,col:colProperties,fieldset:fieldsetProperties,form:formProperties,iframe:iframeProperties,img:imgProperties$1,time:timeProperties,dialog:dialogProperties};function getNativeElementProps(eo,to,no){const io=eo&&nativeElementMap[eo]||htmlElementProperties$1;return io.as=1,getNativeProps$1(to,io,no)}const getPartitionedNativeProps=({primarySlotTagName:eo,props:to,excludedPropNames:no})=>({root:{style:to.style,className:to.className},primary:getNativeElementProps(eo,to,[...no||[],"style","className"])}),getIntrinsicElementProps=(eo,to,no)=>{var io;return getNativeElementProps((io=to.as)!==null&&io!==void 0?io:eo,to,no)};function canUseDOM$3(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function useBrowserTimer(eo,to){const no=reactExports.useRef(void 0),io=reactExports.useCallback((ao,lo)=>(no.current!==void 0&&to(no.current),no.current=eo(ao,lo),no.current),[to,eo]),so=reactExports.useCallback(()=>{no.current!==void 0&&(to(no.current),no.current=void 0)},[to]);return reactExports.useEffect(()=>so,[so]),[io,so]}const setAnimationFrameNoop=eo=>(eo(0),0),cancelAnimationFrameNoop=eo=>eo;function useAnimationFrame(){const eo=canUseDOM$3();return useBrowserTimer(eo?requestAnimationFrame:setAnimationFrameNoop,eo?cancelAnimationFrame:cancelAnimationFrameNoop)}function isFactoryDispatch(eo){return typeof eo=="function"}const useControllableState=eo=>{const[to,no]=reactExports.useState(()=>eo.defaultState===void 0?eo.initialState:isInitializer(eo.defaultState)?eo.defaultState():eo.defaultState),io=reactExports.useRef(eo.state);reactExports.useEffect(()=>{io.current=eo.state},[eo.state]);const so=reactExports.useCallback(ao=>{isFactoryDispatch(ao)&&ao(io.current)},[]);return useIsControlled(eo.state)?[eo.state,so]:[to,no]};function isInitializer(eo){return typeof eo=="function"}const useIsControlled=eo=>{const[to]=reactExports.useState(()=>eo!==void 0);return to},defaultSSRContextValue={current:0},SSRContext=reactExports.createContext(void 0);function useSSRContext(){var eo;return(eo=reactExports.useContext(SSRContext))!==null&&eo!==void 0?eo:defaultSSRContextValue}function useIsSSR(){const eo=useSSRContext()!==defaultSSRContextValue,[to,no]=reactExports.useState(eo);return canUseDOM$3()&&eo&&reactExports.useLayoutEffect(()=>{no(!1)},[]),to}const useIsomorphicLayoutEffect$1=canUseDOM$3()?reactExports.useLayoutEffect:reactExports.useEffect,useEventCallback$3=eo=>{const to=reactExports.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect$1(()=>{to.current=eo},[eo]),reactExports.useCallback((...no)=>{const io=to.current;return io(...no)},[to])};function useFirstMount(){const eo=reactExports.useRef(!0);return eo.current?(eo.current=!1,!0):eo.current}const IdPrefixContext=reactExports.createContext(void 0);IdPrefixContext.Provider;function useIdPrefix(){return reactExports.useContext(IdPrefixContext)||""}function useId$1(eo="fui-",to){const no=useSSRContext(),io=useIdPrefix(),so=React$1.useId;if(so){const ao=so(),lo=reactExports.useMemo(()=>ao.replace(/:/g,""),[ao]);return to||`${io}${eo}${lo}`}return reactExports.useMemo(()=>to||`${io}${eo}${++no.current}`,[io,eo,to,no])}function useMergedRefs$1(...eo){const to=reactExports.useCallback(no=>{to.current=no;for(const io of eo)typeof io=="function"?io(no):io&&(io.current=no)},[...eo]);return to}const ThemeContext$2=reactExports.createContext(void 0),ThemeProvider=ThemeContext$2.Provider,ThemeClassNameContext=reactExports.createContext(void 0),themeClassNameContextDefaultVaue="",ThemeClassNameProvider=ThemeClassNameContext.Provider;function useThemeClassName(){var eo;return(eo=reactExports.useContext(ThemeClassNameContext))!==null&&eo!==void 0?eo:themeClassNameContextDefaultVaue}const TooltipVisibilityContext=reactExports.createContext(void 0),tooltipVisibilityContextDefaultValue={},TooltipVisibilityProvider=TooltipVisibilityContext.Provider;function useTooltipVisibility(){var eo;return(eo=reactExports.useContext(TooltipVisibilityContext))!==null&&eo!==void 0?eo:tooltipVisibilityContextDefaultValue}const ProviderContext=reactExports.createContext(void 0),providerContextDefaultValue={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},Provider$1=ProviderContext.Provider;function useFluent(){var eo;return(eo=reactExports.useContext(ProviderContext))!==null&&eo!==void 0?eo:providerContextDefaultValue}const OverridesContext=reactExports.createContext(void 0),OverridesProvider=OverridesContext.Provider;function useOverrides(){var eo;return(eo=reactExports.useContext(OverridesContext))!==null&&eo!==void 0?eo:{}}const CustomStyleHooksContext=reactExports.createContext(void 0),noop$d=()=>{},CustomStyleHooksProvider=CustomStyleHooksContext.Provider,useCustomStyleHook=eo=>{var to,no;return(no=(to=reactExports.useContext(CustomStyleHooksContext))===null||to===void 0?void 0:to[eo])!==null&&no!==void 0?no:noop$d},BackgroundAppearanceContext=reactExports.createContext(void 0);BackgroundAppearanceContext.Provider;function useBackgroundAppearance(){return reactExports.useContext(BackgroundAppearanceContext)}const PortalMountNodeContext=reactExports.createContext(void 0);PortalMountNodeContext.Provider;function usePortalMountNode$1(){return reactExports.useContext(PortalMountNodeContext)}const AnnounceContext=reactExports.createContext(void 0);AnnounceContext.Provider;function useAnnounce(){var eo;return(eo=reactExports.useContext(AnnounceContext))!==null&&eo!==void 0?eo:{announce:()=>{}}}const DEFAULT_CONTAINS=(eo,to)=>!!(eo!=null&&eo.contains(to)),useOnClickOutside=eo=>{const{targetDocument:to}=useFluent(),no=to==null?void 0:to.defaultView,{refs:io,callback:so,element:ao,disabled:lo,disabledFocusOnIframe:uo,contains:ho=DEFAULT_CONTAINS}=eo,go=reactExports.useRef(void 0);useIFrameFocus({element:ao,disabled:uo||lo,callback:so,refs:io,contains:ho});const mo=reactExports.useRef(!1),yo=useEventCallback$3(_o=>{if(mo.current){mo.current=!1;return}const ko=_o.composedPath()[0];io.every($o=>!ho($o.current||null,ko))&&!lo&&so(_o)}),So=useEventCallback$3(_o=>{mo.current=io.some(ko=>ho(ko.current||null,_o.target))});reactExports.useEffect(()=>{if(lo)return;let _o=getWindowEvent(no);const ko=Co=>{if(Co===_o){_o=void 0;return}yo(Co)};return ao==null||ao.addEventListener("click",ko,!0),ao==null||ao.addEventListener("touchstart",ko,!0),ao==null||ao.addEventListener("contextmenu",ko,!0),ao==null||ao.addEventListener("mousedown",So,!0),go.current=no==null?void 0:no.setTimeout(()=>{_o=void 0},1),()=>{ao==null||ao.removeEventListener("click",ko,!0),ao==null||ao.removeEventListener("touchstart",ko,!0),ao==null||ao.removeEventListener("contextmenu",ko,!0),ao==null||ao.removeEventListener("mousedown",So,!0),no==null||no.clearTimeout(go.current),_o=void 0}},[yo,ao,lo,So,no])},getWindowEvent=eo=>{if(eo){var to,no;if(typeof eo.window=="object"&&eo.window===eo)return eo.event;var io;return(io=(no=eo.ownerDocument)===null||no===void 0||(to=no.defaultView)===null||to===void 0?void 0:to.event)!==null&&io!==void 0?io:void 0}},FUI_FRAME_EVENT="fuiframefocus",useIFrameFocus=eo=>{const{disabled:to,element:no,callback:io,contains:so=DEFAULT_CONTAINS,pollDuration:ao=1e3,refs:lo}=eo,uo=reactExports.useRef(),ho=useEventCallback$3(go=>{lo.every(yo=>!so(yo.current||null,go.target))&&!to&&io(go)});reactExports.useEffect(()=>{if(!to)return no==null||no.addEventListener(FUI_FRAME_EVENT,ho,!0),()=>{no==null||no.removeEventListener(FUI_FRAME_EVENT,ho,!0)}},[no,to,ho]),reactExports.useEffect(()=>{var go;if(!to)return uo.current=no==null||(go=no.defaultView)===null||go===void 0?void 0:go.setInterval(()=>{const mo=no==null?void 0:no.activeElement;if((mo==null?void 0:mo.tagName)==="IFRAME"||(mo==null?void 0:mo.tagName)==="WEBVIEW"){const yo=new CustomEvent(FUI_FRAME_EVENT,{bubbles:!0});mo.dispatchEvent(yo)}},ao),()=>{var mo;no==null||(mo=no.defaultView)===null||mo===void 0||mo.clearTimeout(uo.current)}},[no,to,ao])},useOnScrollOutside=eo=>{const{refs:to,callback:no,element:io,disabled:so,contains:ao}=eo,lo=useEventCallback$3(uo=>{const ho=ao||((yo,So)=>!!(yo!=null&&yo.contains(So))),go=uo.composedPath()[0];to.every(yo=>!ho(yo.current||null,go))&&!so&&no(uo)});reactExports.useEffect(()=>{if(!so)return io==null||io.addEventListener("wheel",lo),io==null||io.addEventListener("touchmove",lo),()=>{io==null||io.removeEventListener("wheel",lo),io==null||io.removeEventListener("touchmove",lo)}},[lo,io,so])};function useTimeout(){return useBrowserTimer(setTimeout,clearTimeout)}function mergeCallbacks(eo,to){return(...no)=>{eo==null||eo(...no),to==null||to(...no)}}function isHTMLElement$6(eo,to){var no;const io=eo;var so;return!!(!(io==null||(no=io.ownerDocument)===null||no===void 0)&&no.defaultView&&io instanceof io.ownerDocument.defaultView[(so=to==null?void 0:to.constructorName)!==null&&so!==void 0?so:"HTMLElement"])}function isFluentTrigger(eo){return!!eo.type.isFluentTriggerComponent}function applyTriggerPropsToChildren(eo,to){return typeof eo=="function"?eo(to):eo?cloneTriggerTree(eo,to):eo||null}function cloneTriggerTree(eo,to){if(!reactExports.isValidElement(eo)||eo.type===reactExports.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(isFluentTrigger(eo)){const no=cloneTriggerTree(eo.props.children,to);return reactExports.cloneElement(eo,void 0,no)}else return reactExports.cloneElement(eo,to)}function getTriggerChild(eo){return reactExports.isValidElement(eo)?isFluentTrigger(eo)?getTriggerChild(eo.props.children):eo:null}function isVirtualElement$1(eo){return eo&&!!eo._virtual}function getVirtualParent$1(eo){return isVirtualElement$1(eo)&&eo._virtual.parent||null}function getParent$2(eo,to={}){if(!eo)return null;if(!to.skipVirtual){const no=getVirtualParent$1(eo);if(no)return no}return(eo==null?void 0:eo.parentNode)||null}function elementContains$1(eo,to){if(!eo||!to)return!1;if(eo===to)return!0;{const no=new WeakSet;for(;to;){const io=getParent$2(to,{skipVirtual:no.has(to)});if(no.add(to),io===eo)return!0;to=io}}return!1}function setVirtualParent$1(eo,to){if(!eo)return;const no=eo;no._virtual||(no._virtual={}),no._virtual.parent=to}function createCompatSlotComponent(eo,to){return{...to,[SLOT_ELEMENT_TYPE_SYMBOL]:eo}}function createJSX(eo,to){return function(io,so,ao,lo,uo){return isSlot(so)?to(createCompatSlotComponent(io,so),null,ao,lo,uo):isSlot(io)?to(io,so,ao,lo,uo):eo(io,so,ao,lo,uo)}}function getMetadataFromSlotComponent(eo){const{as:to,[SLOT_ELEMENT_TYPE_SYMBOL]:no,[SLOT_RENDER_FUNCTION_SYMBOL]:io,...so}=eo,ao=so,lo=typeof no=="string"?to??no:no;return typeof lo!="string"&&to&&(ao.as=to),{elementType:lo,props:ao,renderFunction:io}}const Runtime=ReactRuntime,jsxSlot=(eo,to,no)=>{const{elementType:io,renderFunction:so,props:ao}=getMetadataFromSlotComponent(eo),lo={...ao,...to};return so?Runtime.jsx(reactExports.Fragment,{children:so(io,lo)},no):Runtime.jsx(io,lo,no)},jsxsSlot=(eo,to,no)=>{const{elementType:io,renderFunction:so,props:ao}=getMetadataFromSlotComponent(eo),lo={...ao,...to};return so?Runtime.jsx(reactExports.Fragment,{children:so(io,{...lo,children:Runtime.jsxs(reactExports.Fragment,{children:lo.children},void 0)})},no):Runtime.jsxs(io,lo,no)},jsx$1=createJSX(Runtime.jsx,jsxSlot),jsxs=createJSX(Runtime.jsxs,jsxsSlot),IconDirectionContext=reactExports.createContext(void 0),IconDirectionContextDefaultValue={},IconDirectionContextProvider=IconDirectionContext.Provider,useIconContext=()=>reactExports.useContext(IconDirectionContext)?reactExports.useContext(IconDirectionContext):IconDirectionContextDefaultValue,useRootStyles$c=__styles({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),useIconState=(eo,to)=>{const{title:no,primaryFill:io="currentColor",...so}=eo,ao={...so,title:void 0,fill:io},lo=useRootStyles$c(),uo=useIconContext();return ao.className=mergeClasses(lo.root,(to==null?void 0:to.flipInRtl)&&(uo==null?void 0:uo.textDirection)==="rtl"&&lo.rtl,ao.className),no&&(ao["aria-label"]=no),!ao["aria-label"]&&!ao["aria-labelledby"]?ao["aria-hidden"]=!0:ao.role="img",ao},createFluentIcon=(eo,to,no,io)=>{const so=to==="1em"?"20":to,ao=reactExports.forwardRef((lo,uo)=>{const ho={...useIconState(lo,{flipInRtl:io==null?void 0:io.flipInRtl}),ref:uo,width:to,height:to,viewBox:`0 0 ${so} ${so}`,xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement("svg",ho,...no.map(go=>reactExports.createElement("path",{d:go,fill:ho.fill})))});return ao.displayName=eo,ao},CheckmarkFilled=createFluentIcon("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),CheckmarkRegular=createFluentIcon("CheckmarkRegular","1em",["M3.37 10.17a.5.5 0 0 0-.74.66l4 4.5c.19.22.52.23.72.02l10.5-10.5a.5.5 0 0 0-.7-.7L7.02 14.27l-3.65-4.1Z"]),CheckmarkCircleFilled=createFluentIcon("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),ChevronDownRegular=createFluentIcon("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),ChevronLeftFilled=createFluentIcon("ChevronLeftFilled","1em",["M12.27 15.8a.75.75 0 0 1-1.06-.03l-5-5.25a.75.75 0 0 1 0-1.04l5-5.25a.75.75 0 1 1 1.08 1.04L7.8 10l4.5 4.73c.29.3.28.78-.02 1.06Z"]),ChevronLeftRegular=createFluentIcon("ChevronLeftRegular","1em",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),ChevronRightFilled=createFluentIcon("ChevronRightFilled","1em",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]),ChevronRightRegular=createFluentIcon("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),CircleFilled=createFluentIcon("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),CopyRegular=createFluentIcon("CopyRegular","1em",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z"]),DismissRegular=createFluentIcon("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),ErrorCircleFilled=createFluentIcon("ErrorCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),FlowchartRegular=createFluentIcon("FlowchartRegular","1em",["M4.5 3C3.67 3 3 3.67 3 4.5v2C3 7.33 3.67 8 4.5 8H5v3.84a1 1 0 0 0-.2.16L3 13.8a1 1 0 0 0 0 1.4L4.8 17a1 1 0 0 0 1.4 0L8 15.2a1 1 0 0 0 .16-.2H12v.5c0 .83.67 1.5 1.5 1.5h2c.83 0 1.5-.67 1.5-1.5v-2c0-.83-.67-1.5-1.5-1.5h-2c-.83 0-1.5.67-1.5 1.5v.5H8.16a1 1 0 0 0-.16-.2L6.2 12a1 1 0 0 0-.2-.16V8h.5C7.33 8 8 7.33 8 6.5v-2C8 3.67 7.33 3 6.5 3h-2ZM4 4.5c0-.28.22-.5.5-.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2Zm-.3 10 1.8-1.8 1.8 1.8-1.8 1.8-1.8-1.8Zm9.8-1.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2c0-.28.22-.5.5-.5Z"]),InfoFilled=createFluentIcon("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),MoreHorizontalFilled=createFluentIcon("MoreHorizontalFilled","1em",["M6.75 10a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Zm5 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0ZM15 11.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"]),MoreHorizontalRegular=createFluentIcon("MoreHorizontalRegular","1em",["M6.25 10a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm5 0a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM15 11.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"]),SelectObjectRegular=createFluentIcon("SelectObjectRegular","1em",["M6 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm11 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-11 11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm11 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM7 4.5c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5Zm0 11c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5Zm-3-8a.5.5 0 0 1 1 0v5a.5.5 0 0 1-1 0v-5Zm11 0a.5.5 0 0 1 1 0v5a.5.5 0 0 1-1 0v-5Z"]),ThinkingRegular=createFluentIcon("ThinkingRegular","1em",["M10 2a3.55 3.55 0 0 0-3.52 2.1c-.33.7-.43 1.44-.46 1.92-.65.05-1.31.2-1.86.56C3.44 7.06 3 7.85 3 9s.44 1.94 1.16 2.42c.68.45 1.55.58 2.34.58h7c.78 0 1.65-.11 2.34-.56C16.56 10.97 17 10.17 17 9c0-1.15-.44-1.94-1.16-2.42a3.84 3.84 0 0 0-1.86-.56 5.53 5.53 0 0 0-.46-1.92A3.56 3.56 0 0 0 10 2ZM7 6.5c0-.24 0-1.15.4-1.98.18-.4.46-.78.86-1.05A3 3 0 0 1 10 3a3 3 0 0 1 1.74.47c.4.27.68.65.87 1.05.39.83.39 1.74.39 1.98 0 .28.22.5.5.5.71 0 1.34.12 1.79.42.4.27.71.73.71 1.58 0 .89-.31 1.34-.71 1.6-.44.3-1.07.4-1.79.4h-7c-.71 0-1.34-.12-1.79-.42C4.31 10.31 4 9.85 4 9c0-.85.3-1.31.71-1.58C5.16 7.12 5.8 7 6.5 7a.5.5 0 0 0 .5-.5ZM8 17a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0-1a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4.5 2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0-1a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1Z"]),WarningFilled=createFluentIcon("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),AddCircle20Regular=createFluentIcon("AddCircle20Regular","20",["M6 10c0-.28.22-.5.5-.5h3v-3a.5.5 0 0 1 1 0v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3A.5.5 0 0 1 6 10Zm4 8a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0-1a7 7 0 1 1 0-14 7 7 0 0 1 0 14Z"]),ArrowClockwise16Regular=createFluentIcon("ArrowClockwise16Regular","16",["M3 8a5 5 0 0 1 9-3H9.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-1 0v1.03A6 6 0 1 0 14 8a.5.5 0 0 0-1 0A5 5 0 0 1 3 8Z"]),ArrowClockwiseDashes20Filled=createFluentIcon("ArrowClockwiseDashes20Filled","20",["M8.44 2.15a8.03 8.03 0 0 1 3.12 0 .75.75 0 0 1-.3 1.47 6.54 6.54 0 0 0-2.53 0 .75.75 0 0 1-.29-1.47Zm4.96 1.4a.75.75 0 0 1 1.05-.2c.57.38 1.1.84 1.55 1.36V2.75a.75.75 0 0 1 1.5 0v4c0 .41-.34.75-.75.75h-4a.75.75 0 0 1 0-1.5h2.37a6.54 6.54 0 0 0-1.5-1.4.75.75 0 0 1-.21-1.05ZM6.4 4.6a.75.75 0 0 0-.84-1.24 8.04 8.04 0 0 0-2.2 2.2.75.75 0 0 0 1.24.84 6.54 6.54 0 0 1 1.8-1.8ZM3.03 7.85c.41.08.67.47.6.88a6.54 6.54 0 0 0 0 2.54.75.75 0 0 1-1.48.29 8.04 8.04 0 0 1 0-3.12c.08-.4.48-.67.88-.6ZM18 10v-.25a.75.75 0 0 0-1.5 0V10c0 .44-.04.86-.12 1.27a.75.75 0 1 0 1.47.29c.1-.5.15-1.03.15-1.56ZM3.55 13.4a.75.75 0 0 1 1.04.21c.48.71 1.09 1.32 1.8 1.8a.75.75 0 0 1-.84 1.24 8.04 8.04 0 0 1-2.2-2.2.75.75 0 0 1 .2-1.04Zm13.1 1.05a.75.75 0 0 0-1.24-.84 6.54 6.54 0 0 1-1.8 1.8.75.75 0 0 0 .84 1.24 8.04 8.04 0 0 0 2.2-2.2Zm-8.8 2.52c.08-.41.47-.67.88-.6a6.54 6.54 0 0 0 2.54 0 .75.75 0 1 1 .29 1.48 8.03 8.03 0 0 1-3.12 0 .75.75 0 0 1-.6-.88Z"]),ArrowDown20Regular=createFluentIcon("ArrowDown20Regular","20",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),ArrowUp20Regular=createFluentIcon("ArrowUp20Regular","20",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"]),ArrowUpload24Regular=createFluentIcon("ArrowUpload24Regular","24",["M18.25 3.51a.75.75 0 1 0 0-1.5h-13a.75.75 0 1 0 0 1.5h13ZM11.65 22h.1c.38 0 .7-.28.74-.64l.01-.1V7.56l3.72 3.72c.27.27.68.29.98.07l.08-.07a.75.75 0 0 0 .07-.98l-.07-.08-5-5a.75.75 0 0 0-.97-.07l-.09.07-5 5a.75.75 0 0 0 .98 1.13l.08-.07L11 7.58v13.67c0 .38.28.7.65.75Z"]),Attach16Regular=createFluentIcon("Attach16Regular","16",["M2.28 7.97a.5.5 0 0 0 .86.36l4.6-4.6A2.5 2.5 0 0 1 12 5.5a2.5 2.5 0 0 1-.73 1.77l-5.3 5.3a1 1 0 0 1-1.71-.7 1 1 0 0 1 .3-.71l5.3-5.3a.5.5 0 0 0-.7-.7l-5.32 5.29a2 2 0 1 0 2.83 2.83l5.3-5.3A3.49 3.49 0 0 0 9.5 2c-.9 0-1.8.34-2.48 1.02l-4.6 4.6a.5.5 0 0 0-.14.35Z"]),BranchRequest16Regular=createFluentIcon("BranchRequest16Regular","16",["M13 10.05V5.5A2.5 2.5 0 0 0 10.5 3H8.71l1.14-1.15c.2-.19.2-.51 0-.7a.48.48 0 0 0-.7 0l-2 2c-.2.19-.2.51 0 .7l2 2c.19.2.51.2.7 0 .2-.19.2-.51 0-.7L8.71 4h1.79c.83 0 1.5.67 1.5 1.5v4.55a2.5 2.5 0 1 0 1 0ZM12.5 14a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM6 3.5a2.5 2.5 0 1 0-3 2.45v4.1a2.5 2.5 0 1 0 1 0v-4.1A2.5 2.5 0 0 0 6 3.5Zm-4 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm3 9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),Checkmark12Filled=createFluentIcon("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),Checkmark16Filled=createFluentIcon("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),CheckmarkCircle20Filled=createFluentIcon("CheckmarkCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),ChevronDown16Regular=createFluentIcon("ChevronDown16Regular","16",["M3.15 5.65c.2-.2.5-.2.7 0L8 9.79l4.15-4.14a.5.5 0 0 1 .7.7l-4.5 4.5a.5.5 0 0 1-.7 0l-4.5-4.5a.5.5 0 0 1 0-.7Z"]),ChevronLeft12Regular=createFluentIcon("ChevronLeft12Regular","12",["M7.35 2.15c.2.2.2.5 0 .7L4.21 6l3.14 3.15a.5.5 0 1 1-.7.7l-3.5-3.5a.5.5 0 0 1 0-.7l3.5-3.5c.2-.2.5-.2.7 0Z"]),ChevronLeft16Regular=createFluentIcon("ChevronLeft16Regular","16",["M10.35 3.15c.2.2.2.5 0 .7L6.21 8l4.14 4.15a.5.5 0 0 1-.7.7l-4.5-4.5a.5.5 0 0 1 0-.7l4.5-4.5c.2-.2.5-.2.7 0Z"]),ChevronLeft20Regular=createFluentIcon("ChevronLeft20Regular","20",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),ChevronRight12Regular=createFluentIcon("ChevronRight12Regular","12",["M4.65 2.15a.5.5 0 0 0 0 .7L7.79 6 4.65 9.15a.5.5 0 1 0 .7.7l3.5-3.5a.5.5 0 0 0 0-.7l-3.5-3.5a.5.5 0 0 0-.7 0Z"]),ChevronRight16Regular=createFluentIcon("ChevronRight16Regular","16",["M5.65 3.15a.5.5 0 0 0 0 .7L9.79 8l-4.14 4.15a.5.5 0 0 0 .7.7l4.5-4.5a.5.5 0 0 0 0-.7l-4.5-4.5a.5.5 0 0 0-.7 0Z"]),ChevronRight20Regular=createFluentIcon("ChevronRight20Regular","20",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),Clock12Regular=createFluentIcon("Clock12Regular","12",["M6 1a5 5 0 1 1 0 10A5 5 0 0 1 6 1Zm0 1a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-.5 1.5a.5.5 0 0 1 .5.41V6h1.5a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.5-.41V4c0-.28.22-.5.5-.5Z"]),Clock20Regular=createFluentIcon("Clock20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm-.5 2a.5.5 0 0 1 .5.41V10h2.5a.5.5 0 0 1 .09 1H9.5a.5.5 0 0 1-.5-.41V5.5c0-.28.22-.5.5-.5Z"]),Code16Regular=createFluentIcon("Code16Regular","16",["M9.8 3.04c.26.12.37.41.26.66l-4 9a.5.5 0 0 1-.92-.4l4-9a.5.5 0 0 1 .66-.26ZM4.33 5.38c.2.18.23.5.04.7L2.67 8l1.7 1.92a.5.5 0 1 1-.74.66l-2-2.25a.5.5 0 0 1 0-.66l2-2.25a.5.5 0 0 1 .7-.04Zm7.34 0a.5.5 0 0 1 .7.04l2 2.25a.5.5 0 0 1 0 .66l-2 2.25a.5.5 0 1 1-.74-.66L13.33 8l-1.7-1.92a.5.5 0 0 1 .04-.7Z"]),Copy20Regular=createFluentIcon("Copy20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z"]),CopyArrowRight20Regular=createFluentIcon("CopyArrowRight20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h1.2c-.08-.32-.15-.66-.18-1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v5.02c.34.03.68.1 1 .19V4a2 2 0 0 0-2-2H8Zm-.5 15h2.1c.18.36.4.7.66 1H7.5A3.5 3.5 0 0 1 4 14.5V6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17Zm7-7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm2.35 4.85a.5.5 0 0 0 .15-.35.5.5 0 0 0-.15-.35l-2-2a.5.5 0 0 0-.7.7L15.29 14H12.5a.5.5 0 0 0 0 1h2.8l-1.15 1.15a.5.5 0 0 0 .7.7l2-2Z"]),Dismiss20Regular=createFluentIcon("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),Dismiss24Regular=createFluentIcon("Dismiss24Regular","24",["m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"]),DismissCircle12Filled=createFluentIcon("DismissCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm1.85-6.85c.2.2.2.5 0 .7L6.71 6l1.14 1.15a.5.5 0 1 1-.7.7L6 6.71 4.85 7.85a.5.5 0 1 1-.7-.7L5.29 6 4.15 4.85a.5.5 0 1 1 .7-.7L6 5.29l1.15-1.14c.2-.2.5-.2.7 0Z"]),DismissCircle20Filled=createFluentIcon("DismissCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z"]),DismissCircle20Regular=createFluentIcon("DismissCircle20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM7.8 7.11l.08.06L10 9.3l2.12-2.12a.5.5 0 0 1 .64-.06l.07.06c.17.18.2.44.06.64l-.06.07L10.7 10l2.12 2.12c.17.17.2.44.06.64l-.06.07a.5.5 0 0 1-.64.06l-.07-.06L10 10.7l-2.12 2.12a.5.5 0 0 1-.64.06l-.07-.06a.5.5 0 0 1-.06-.64l.06-.07L9.3 10 7.17 7.88a.5.5 0 0 1-.06-.64l.06-.07a.5.5 0 0 1 .64-.06Z"]),Document16Regular=createFluentIcon("Document16Regular","16",["M5 1a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V5.41c0-.4-.16-.78-.44-1.06L9.65 1.44A1.5 1.5 0 0 0 8.59 1H5ZM4 3a1 1 0 0 1 1-1h3v2.5C8 5.33 8.67 6 9.5 6H12v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V3Zm7.8 2H9.5a.5.5 0 0 1-.5-.5V2.2L11.8 5Z"]),EmojiSparkle16Regular=createFluentIcon("EmojiSparkle16Regular","16",["M13.8 2.22h-.02l-.76-.26a1.58 1.58 0 0 1-1-1L11.77.2a.3.3 0 0 0-.57 0l-.25.77a1.58 1.58 0 0 1-.98 1l-.6.19-.17.05a.3.3 0 0 0-.15.11.3.3 0 0 0 .15.46l.77.25.08.03a1.58 1.58 0 0 1 .89.9l.03.07.24.77a.3.3 0 0 0 .29.2.3.3 0 0 0 .29-.2l.24-.77a1.58 1.58 0 0 1 1-1l.77-.24a.3.3 0 0 0 0-.57Zm1.41 3.35.62.2a.24.24 0 0 1 0 .46l-.6.2a1.26 1.26 0 0 0-.8.8l-.2.6a.24.24 0 0 1-.24.17.24.24 0 0 1-.22-.16l-.2-.61a1.26 1.26 0 0 0-.8-.8l-.03-.01-.58-.2a.24.24 0 0 1 0-.45l.61-.2a1.26 1.26 0 0 0 .8-.8l.19-.6a.24.24 0 0 1 .46 0l.2.6a1.26 1.26 0 0 0 .8.8ZM8.06 2.9 8.1 3H8a5 5 0 1 0 4.98 5.46 1.25 1.25 0 0 0 .94.54A6 6 0 1 1 8.1 2a1.3 1.3 0 0 0-.04.9ZM6.25 7.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-.11 1.92a.5.5 0 1 0-.75.66 3.5 3.5 0 0 0 5.22 0 .5.5 0 0 0-.75-.66 2.5 2.5 0 0 1-3.72 0ZM10.5 7A.75.75 0 1 1 9 7a.75.75 0 0 1 1.5 0Z"]),ErrorCircle16Filled=createFluentIcon("ErrorCircle16Filled","16",["M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 8a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-5.5a.5.5 0 0 0-.5.41V8.59a.5.5 0 0 0 1 0V4.91A.5.5 0 0 0 8 4.5Z"]),ErrorCircle20Filled=createFluentIcon("ErrorCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),Flow16Regular=createFluentIcon("Flow16Regular","16",["M12.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm-2.45 2a2.5 2.5 0 1 0 0-1H9.5a2 2 0 0 0-2 2v2a1 1 0 0 1-1 1h-.55a2.5 2.5 0 1 0 0 1h.55a2 2 0 0 0 2-2V7a1 1 0 0 1 1-1h.55ZM5 10.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),GanttChart20Regular=createFluentIcon("GanttChart20Regular","20",["M4.5 7a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4ZM9 9.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5Zm3.5 1.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3Zm-8-7A2.5 2.5 0 0 0 2 6.5v7A2.5 2.5 0 0 0 4.5 16h11a2.5 2.5 0 0 0 2.5-2.5v-7A2.5 2.5 0 0 0 15.5 4h-11ZM3 6.5C3 5.67 3.67 5 4.5 5H7v1h1V5h4v3h1V5h2.5c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5H13v-2h-1v2H8V9H7v6H4.5A1.5 1.5 0 0 1 3 13.5v-7Z"]),HexagonThree16Regular=createFluentIcon("HexagonThree16Regular","16",["M3.47 2a1 1 0 0 1 .87-.5h2.32a1 1 0 0 1 .87.5l1.16 2a1 1 0 0 1 0 1L7.53 7a1 1 0 0 1-.87.5H4.34a1 1 0 0 1-.87-.5L2.31 5a1 1 0 0 1 0-1l1.16-2Zm3.2.5H4.33l-1.16 2 1.16 2h2.32l1.16-2-1.16-2ZM3.46 9a1 1 0 0 1 .87-.5h2.32a1 1 0 0 1 .87.5l1.16 2a1 1 0 0 1 0 1l-1.16 2a1 1 0 0 1-.87.5H4.34a1 1 0 0 1-.87-.5l-1.16-2a1 1 0 0 1 0-1l1.16-2Zm3.2.5H4.33l-1.16 2 1.16 2h2.32l1.16-2-1.16-2ZM10.33 5a1 1 0 0 0-.87.5l-1.16 2a1 1 0 0 0 0 1l1.16 2c.18.31.51.5.87.5h2.32a1 1 0 0 0 .87-.5l1.16-2a1 1 0 0 0 0-1l-1.16-2a1 1 0 0 0-.87-.5h-2.32Zm0 1h2.32l1.16 2-1.16 2h-2.32L9.18 8l1.16-2Z"]),Laptop16Regular=createFluentIcon("Laptop16Regular","16",["M4.5 4C3.67 4 3 4.67 3 5.5v4c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5v-4c0-.83-.67-1.5-1.5-1.5h-7ZM4 5.5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4ZM2.5 12a.5.5 0 0 0 0 1h11a.5.5 0 0 0 0-1h-11Z"]),Laptop24Regular=createFluentIcon("Laptop24Regular","24",["M2.75 16.5h18.5a.75.75 0 0 1 .1 1.5H2.75a.75.75 0 0 1-.1-1.5h18.6-18.5ZM18.25 5c.97 0 1.75.78 1.75 1.75v7.5c0 .97-.78 1.75-1.75 1.75H5.75C4.78 16 4 15.22 4 14.25v-7.5C4 5.78 4.78 5 5.75 5h12.5Zm0 1.5H5.75a.25.25 0 0 0-.25.25v7.5c0 .14.11.25.25.25h12.5c.14 0 .25-.11.25-.25v-7.5a.25.25 0 0 0-.25-.25Z"]),Link16Regular=createFluentIcon("Link16Regular","16",["M9.5 4h1a3.5 3.5 0 0 1 .2 7H9.5a.5.5 0 0 1-.1-.99h.1l1-.01a2.5 2.5 0 0 0 .16-5H9.5a.5.5 0 0 1-.09-1h1.09-1Zm-4 0h1a.5.5 0 0 1 .09 1H5.5a2.5 2.5 0 0 0-.16 5H6.5a.5.5 0 0 1 .09 1H5.5a3.5 3.5 0 0 1-.2-7h1.2-1Zm0 3h5a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.09-1h.09Z"]),Mail16Regular=createFluentIcon("Mail16Regular","16",["M2 6.04V11c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v1.04ZM4 4h8a1 1 0 0 1 1 1v.74l-5 2.7-5-2.7V5a1 1 0 0 1 1-1ZM3 6.88l4.76 2.56a.5.5 0 0 0 .48 0L13 6.88V11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6.88Z"]),NumberCircle020Regular=createFluentIcon("NumberCircle020Regular","20",["M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-7 8a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm-2-8c0-1.07.15-1.97.49-2.6.16-.3.36-.51.6-.66.23-.15.52-.24.91-.24s.68.1.92.24c.23.15.43.37.6.67.33.62.48 1.52.48 2.59 0 1.07-.15 1.97-.49 2.6-.16.3-.36.51-.6.66-.23.15-.52.24-.91.24s-.68-.1-.92-.24a1.74 1.74 0 0 1-.6-.67A5.65 5.65 0 0 1 8 10Zm2-4.5c-.55 0-1.04.13-1.45.4-.4.25-.72.61-.94 1.03A6.6 6.6 0 0 0 7 10c0 1.14.16 2.23.6 3.07.23.42.54.78.95 1.04.41.26.9.39 1.45.39.55 0 1.04-.13 1.45-.4.4-.25.72-.61.94-1.03.45-.84.61-1.93.61-3.07a6.6 6.6 0 0 0-.6-3.07 2.74 2.74 0 0 0-.95-1.04c-.41-.26-.9-.39-1.45-.39Z"]),PanelRightContract20Regular=createFluentIcon("PanelRightContract20Regular","20",["m9.18 10.5-1 .87a.5.5 0 1 0 .66.76l2-1.75a.5.5 0 0 0 0-.76l-2-1.75a.5.5 0 1 0-.66.76l1 .87H5.5a.5.5 0 0 0 0 1h3.68ZM16 16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h12Zm1-2a1 1 0 0 1-1 1h-3V5h3a1 1 0 0 1 1 1v8Zm-5-9v10H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h8Z"]),PanelRightExpand20Regular=createFluentIcon("PanelRightExpand20Regular","20",["m6.82 10.5 1 .87a.5.5 0 0 1-.66.76l-2-1.75a.5.5 0 0 1 0-.76l2-1.75a.5.5 0 0 1 .66.76l-1 .87h3.68a.5.5 0 0 1 0 1H6.82ZM18 14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v8Zm-2 1a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-3v10h3Zm-4 0V5H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8Z"]),Person16Regular=createFluentIcon("Person16Regular","16",["M11.5 8c.83 0 1.5.67 1.5 1.5v.5c0 1.97-1.86 4-5 4-3.14 0-5-2.03-5-4v-.5C3 8.67 3.67 8 4.5 8h7Zm0 1h-7a.5.5 0 0 0-.5.5v.5c0 1.44 1.43 3 4 3 2.57 0 4-1.56 4-3v-.5a.5.5 0 0 0-.5-.5ZM8 1.5A2.75 2.75 0 1 1 8 7a2.75 2.75 0 0 1 0-5.5Zm0 1A1.75 1.75 0 1 0 8 6a1.75 1.75 0 0 0 0-3.5Z"]),Person24Regular=createFluentIcon("Person24Regular","24",["M17.75 14C19 14 20 15 20 16.25v.57c0 .9-.32 1.76-.9 2.44C17.53 21.1 15.15 22 12 22c-3.15 0-5.53-.9-7.1-2.74a3.75 3.75 0 0 1-.9-2.43v-.58C4 15 5.01 14 6.25 14h11.5Zm0 1.5H6.25a.75.75 0 0 0-.75.75v.58c0 .53.2 1.05.54 1.46C7.3 19.76 9.26 20.5 12 20.5c2.74 0 4.7-.74 5.96-2.21.35-.41.54-.93.54-1.47v-.57a.75.75 0 0 0-.75-.75ZM12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z"]),QuestionCircle16Regular=createFluentIcon("QuestionCircle16Regular","16",["M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 1a5 5 0 1 0 0 10A5 5 0 0 0 8 3Zm0 7.5A.75.75 0 1 1 8 12a.75.75 0 0 1 0-1.5Zm0-6a2 2 0 0 1 2 2c0 .73-.21 1.14-.75 1.7l-.27.28c-.38.4-.48.6-.48 1.02a.5.5 0 0 1-1 0c0-.73.21-1.14.75-1.7l.27-.28c.38-.4.48-.6.48-1.02a1 1 0 0 0-2 0 .5.5 0 0 1-1 0c0-1.1.9-2 2-2Z"]),QuestionCircle20Filled=createFluentIcon("QuestionCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 11.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-8A2.5 2.5 0 0 0 7.5 8a.5.5 0 0 0 1 0 1.5 1.5 0 1 1 2.63.98l-.1.11-.12.1-.25.19A3.2 3.2 0 0 0 9.5 12a.5.5 0 0 0 1 0c0-.76.2-1.25.53-1.61l.08-.08.08-.07.09-.07.22-.17.15-.12A2.5 2.5 0 0 0 10 5.5Z"]),Run16Regular=createFluentIcon("Run16Regular","16",["M7.31 1.04a.5.5 0 0 1 .39 0l4.9 2.1a.5.5 0 0 1 .08.88h-.02a2.69 2.69 0 0 0-.22.17c-.15.11-.35.28-.55.48-.4.38-.75.85-.87 1.3a26.17 26.17 0 0 0 1.36 3.18l1.6.96A2.1 2.1 0 0 1 15 11.9v1.59a.5.5 0 0 1-.48.5l-.02-.5.02.5h-.04a7.94 7.94 0 0 1-.42 0 21.2 21.2 0 0 1-5-.72c-2.9-.79-6.32-2.47-8.01-6.07a.5.5 0 0 1 0-.43 12.84 12.84 0 0 1 2.72-3.32 13 13 0 0 1 3.54-2.42ZM14 13v-.54C7.67 11.9 4.16 9.28 2.44 6.42c-.15.2-.27.4-.38.59 1.55 3.06 4.55 4.57 7.27 5.3A20.2 20.2 0 0 0 14 13Zm-.53-2.04-1.4-.83-.88.89c.83.19 1.73.33 2.71.43a1.1 1.1 0 0 0-.43-.49Zm-3.32-.31 1.24-1.25v-.02a43.7 43.7 0 0 1-1.27-2.94l-1.56-.26 1.36 2.04a.5.5 0 0 1-.02.58l-1.12 1.49c.41.16.84.3 1.3.44a.5.5 0 0 1 .07-.08Zm0-5.22a4.45 4.45 0 0 1 1.28-1.7L7.5 2.04c-.82.37-1.84 1.09-2.81 1.94l1.16 1.17c.1.09.15.22.15.35v3.3c.54.39 1.15.75 1.84 1.08l1.05-1.4-1.8-2.7a.5.5 0 0 1 .5-.77l2.55.42Zm-6.2-.77c-.3.3-.59.61-.85.92A9.45 9.45 0 0 0 5 7.98V5.71L3.96 4.66Z"]),Search20Regular=createFluentIcon("Search20Regular","20",["M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),Settings16Regular=createFluentIcon("Settings16Regular","16",["M8 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM7 8a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm3.62-3.6a.7.7 0 0 1-.83-.57l-.26-1.42a.35.35 0 0 0-.27-.28 6.07 6.07 0 0 0-2.52 0 .35.35 0 0 0-.27.29L6.2 3.83a.71.71 0 0 1-.94.54l-1.36-.49a.36.36 0 0 0-.38.1c-.57.63-1 1.37-1.26 2.17-.05.14 0 .29.1.38l1.1.93a.7.7 0 0 1 0 1.08l-1.1.93c-.1.1-.15.24-.1.38.26.8.69 1.54 1.26 2.17.1.1.25.14.38.1l1.36-.49a.7.7 0 0 1 .94.54l.26 1.41c.02.15.13.26.27.29a6.07 6.07 0 0 0 2.52 0 .35.35 0 0 0 .27-.29l.26-1.41a.71.71 0 0 1 .94-.54l1.36.49c.13.04.28 0 .38-.1.57-.63 1-1.37 1.26-2.17a.35.35 0 0 0-.1-.38l-1.1-.93a.7.7 0 0 1 0-1.08l1.1-.93c.1-.1.15-.24.1-.38-.26-.8-.69-1.54-1.26-2.17a.36.36 0 0 0-.38-.1l-1.36.49a.71.71 0 0 1-.11.03ZM4 4.98l.94.33a1.71 1.71 0 0 0 2.25-1.3l.18-.97a5.1 5.1 0 0 1 1.26 0l.18.97a1.7 1.7 0 0 0 2.25 1.3l.94-.33c.26.33.47.7.63 1.08l-.75.64a1.7 1.7 0 0 0 0 2.6l.75.64c-.16.39-.37.75-.63 1.08l-.94-.33a1.7 1.7 0 0 0-2.25 1.3l-.18.97a5.1 5.1 0 0 1-1.26 0l-.18-.97a1.7 1.7 0 0 0-2.25-1.3l-.94.33c-.26-.33-.47-.7-.63-1.08l.75-.64a1.7 1.7 0 0 0 0-2.6l-.75-.64c.16-.39.37-.75.63-1.08Z"]),Share20Regular=createFluentIcon("Share20Regular","20",["m13.33 12.84 4.5-4.42.05-.07a.59.59 0 0 0-.05-.77l-4.5-4.42-.06-.05c-.36-.27-.9-.01-.9.47V5.7l-.22.01C8.6 6.01 6.5 8.26 6 12.35c-.06.53.54.85.93.5a9.64 9.64 0 0 1 4.45-2.38c.24-.06.5-.1.74-.12l.26-.02v2.17c.06.46.61.67.95.34Zm-1.1-6.12 1.15-.08V4.61L16.82 8l-3.44 3.39V9.23l-1.36.12c-1.7.19-3.32.87-4.83 2 .3-1.33.8-2.34 1.47-3.06a5.2 5.2 0 0 1 3.57-1.57ZM5.5 4A2.5 2.5 0 0 0 3 6.5v8A2.5 2.5 0 0 0 5.5 17h8a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1c0 .83-.67 1.5-1.5 1.5h-8A1.5 1.5 0 0 1 4 14.5v-8C4 5.67 4.67 5 5.5 5h3a.5.5 0 0 0 0-1h-3Z"]),ShieldCheckmark24Regular=createFluentIcon("ShieldCheckmark24Regular","24",["M3 5.75c0-.41.34-.75.75-.75 2.66 0 5.26-.94 7.8-2.85.27-.2.63-.2.9 0C14.99 4.05 17.59 5 20.25 5c.41 0 .75.34.75.75V11c0 .34-.01.67-.04 1a6.47 6.47 0 0 0-1.46-.69V6.48a14.36 14.36 0 0 1-7.5-2.8 14.36 14.36 0 0 1-7.5 2.8V11c0 4.15 2.33 7.22 7.13 9.28.26.56.6 1.07 1 1.52l-.36.15a.75.75 0 0 1-.54 0C5.96 19.68 3 16 3 11V5.75ZM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Zm-2.15-2.35a.5.5 0 0 0-.7 0l-3.65 3.64-1.65-1.64a.5.5 0 0 0-.7.7l2 2c.2.2.5.2.7 0l4-4a.5.5 0 0 0 0-.7Z"]),Square12Filled=createFluentIcon("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),Square16Filled=createFluentIcon("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),TextBulletListSquareWarning24Regular=createFluentIcon("TextBulletListSquareWarning24Regular","24",["M7.75 9.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm3.5-1.75a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Zm0 3.75a.75.75 0 1 0 0 1.5h3.83l.19-.37c.26-.53.67-.9 1.13-1.13h-5.15Zm0 3.75h2.7l-.74 1.5h-1.96a.75.75 0 1 1 0-1.5Zm-5 4.5h5.46l-.44.88c-.1.2-.17.41-.22.62h-4.8A3.25 3.25 0 0 1 3 17.75V6.25C3 4.45 4.46 3 6.25 3h11.5C19.55 3 21 4.46 21 6.25v8.65l-1.26-2.52a2.6 2.6 0 0 0-.24-.39V6.25c0-.97-.78-1.75-1.75-1.75H6.25c-.97 0-1.75.78-1.75 1.75v11.5c0 .97.78 1.75 1.75 1.75Zm2.5-7.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 4.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm8.41-3.92a1.5 1.5 0 0 1 2.69 0l4 8c.5 1-.23 2.17-1.35 2.17h-8a1.5 1.5 0 0 1-1.34-2.17l4-8ZM18 15.5a.5.5 0 0 0-1 0v3a.5.5 0 0 0 1 0v-3Zm-.5 5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"]),TextWrap16Regular=createFluentIcon("TextWrap16Regular","16",["M2 3.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm0 4c0-.28.22-.5.5-.5h10a2.5 2.5 0 0 1 0 5H9.7l.65.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7l1.5-1.5a.5.5 0 0 1 .7.7l-.64.65h2.79a1.5 1.5 0 0 0 0-3h-10a.5.5 0 0 1-.5-.5ZM6 11a.5.5 0 0 1 0 1H2.5a.5.5 0 0 1 0-1H6Z"]),TextWrapOff16Regular=createFluentIcon("TextWrapOff16Regular","16",["M14.15 14.85 11.29 12H9.71l.64.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7L9.29 10l-2-2H2.5a.5.5 0 0 1 0-1h3.8l-3-3h-.8a.5.5 0 0 1-.18-.97L1.15 1.85a.5.5 0 1 1 .7-.7l13 13a.5.5 0 0 1-.7.7ZM10.12 8l-1-1h3.38a2.5 2.5 0 0 1 1.27 4.65l-.74-.74A1.5 1.5 0 0 0 12.5 8h-2.38Zm-4-4-1-1h8.38a.5.5 0 0 1 0 1H6.12ZM6 11a.5.5 0 0 1 0 1H2.5a.5.5 0 0 1 0-1H6Z"]),ZoomIn20Regular=createFluentIcon("ZoomIn20Regular","20",["M11.5 8.5A.5.5 0 0 0 11 8H9V6a.5.5 0 0 0-1 0v2H6a.5.5 0 0 0 0 1h2v2a.5.5 0 0 0 1 0V9h2a.5.5 0 0 0 .5-.5ZM8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),iconFilledClassName="fui-Icon-filled",iconRegularClassName="fui-Icon-regular",useBundledIconStyles=__styles({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),bundleIcon=(eo,to)=>{const no=io=>{const{className:so,primaryFill:ao="currentColor",filled:lo,...uo}=io,ho=useBundledIconStyles();return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(eo,Object.assign({},uo,{className:mergeClasses(ho.root,lo&&ho.visible,iconFilledClassName,so),fill:ao})),reactExports.createElement(to,Object.assign({},uo,{className:mergeClasses(ho.root,!lo&&ho.visible,iconRegularClassName,so),fill:ao})))};return no.displayName="CompoundIcon",no},bundleIcon$1=bundleIcon,renderFluentProvider_unstable=(eo,to)=>jsx$1(Provider$1,{value:to.provider,children:jsx$1(ThemeProvider,{value:to.theme,children:jsx$1(ThemeClassNameProvider,{value:to.themeClassName,children:jsx$1(CustomStyleHooksProvider,{value:to.customStyleHooks_unstable,children:jsx$1(TooltipVisibilityProvider,{value:to.tooltip,children:jsx$1(TextDirectionProvider,{dir:to.textDirection,children:jsx$1(IconDirectionContextProvider,{value:to.iconDirection,children:jsx$1(OverridesProvider,{value:to.overrides_unstable,children:jsxs(eo.root,{children:[canUseDOM$3()?null:jsx$1("style",{dangerouslySetInnerHTML:{__html:eo.serverStyleProps.cssRule},...eo.serverStyleProps.attributes}),eo.root.children]})})})})})})})})});/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */const _canUseWeakRef=typeof WeakRef<"u";class WeakRefInstance{constructor(to){_canUseWeakRef&&typeof to=="object"?this._weakRef=new WeakRef(to):this._instance=to}deref(){var to,no,io;let so;return this._weakRef?(so=(to=this._weakRef)===null||to===void 0?void 0:to.deref(),so||delete this._weakRef):(so=this._instance,!((io=(no=so)===null||no===void 0?void 0:no.isDisposed)===null||io===void 0)&&io.call(no)&&delete this._instance),so}}/*! @@ -88,7 +88,7 @@ Error generating stack: `+ao.message+` */function createEventTarget(eo){const to=eo();try{if(to.EventTarget)return new to.EventTarget}catch(no){if(!(no instanceof TypeError))throw no}return to.document.createElement("div")}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */let _isBrokenIE11;const _DOMRect=typeof DOMRect<"u"?DOMRect:class{constructor(eo,to,no,io){this.left=eo||0,this.top=to||0,this.right=(eo||0)+(no||0),this.bottom=(to||0)+(io||0)}};let _uidCounter=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),_isBrokenIE11=!1}catch{_isBrokenIE11=!0}const _updateDummyInputsTimeout=100;function getInstanceContext(eo){const to=eo();let no=to.__tabsterInstanceContext;return no||(no={elementByUId:{},basics:{Promise:to.Promise||void 0,WeakRef:to.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},to.__tabsterInstanceContext=no),no}function disposeInstanceContext(eo){const to=eo.__tabsterInstanceContext;to&&(to.elementByUId={},delete to.WeakRef,to.containerBoundingRectCache={},to.containerBoundingRectCacheTimer&&eo.clearTimeout(to.containerBoundingRectCacheTimer),to.fakeWeakRefsTimer&&eo.clearTimeout(to.fakeWeakRefsTimer),to.fakeWeakRefs=[],delete eo.__tabsterInstanceContext)}function createWeakMap(eo){const to=eo.__tabsterInstanceContext;return new((to==null?void 0:to.basics.WeakMap)||WeakMap)}function hasSubFocusable(eo){return!!eo.querySelector(FocusableSelector)}class FakeWeakRef{constructor(to){this._target=to}deref(){return this._target}static cleanup(to,no){return to._target?no||!documentContains(to._target.ownerDocument,to._target)?(delete to._target,!0):!1:!0}}class WeakHTMLElement{constructor(to,no,io){const so=getInstanceContext(to);let ao;so.WeakRef?ao=new so.WeakRef(no):(ao=new FakeWeakRef(no),so.fakeWeakRefs.push(ao)),this._ref=ao,this._data=io}get(){const to=this._ref;let no;return to&&(no=to.deref(),no||delete this._ref),no}getData(){return this._data}}function cleanupFakeWeakRefs(eo,to){const no=getInstanceContext(eo);no.fakeWeakRefs=no.fakeWeakRefs.filter(io=>!FakeWeakRef.cleanup(io,to))}function startFakeWeakRefsCleanup(eo){const to=getInstanceContext(eo);to.fakeWeakRefsStarted||(to.fakeWeakRefsStarted=!0,to.WeakRef=getWeakRef(to)),to.fakeWeakRefsTimer||(to.fakeWeakRefsTimer=eo().setTimeout(()=>{to.fakeWeakRefsTimer=void 0,cleanupFakeWeakRefs(eo),startFakeWeakRefsCleanup(eo)},2*60*1e3))}function stopFakeWeakRefsCleanupAndClearStorage(eo){const to=getInstanceContext(eo);to.fakeWeakRefsStarted=!1,to.fakeWeakRefsTimer&&(eo().clearTimeout(to.fakeWeakRefsTimer),to.fakeWeakRefsTimer=void 0,to.fakeWeakRefs=[])}function createElementTreeWalker(eo,to,no){if(to.nodeType!==Node.ELEMENT_NODE)return;const io=_isBrokenIE11?no:{acceptNode:no};return eo.createTreeWalker(to,NodeFilter.SHOW_ELEMENT,io,!1)}function getBoundingRect(eo,to){let no=to.__tabsterCacheId;const io=getInstanceContext(eo),so=no?io.containerBoundingRectCache[no]:void 0;if(so)return so.rect;const ao=to.ownerDocument&&to.ownerDocument.documentElement;if(!ao)return new _DOMRect;let lo=0,uo=0,ho=ao.clientWidth,go=ao.clientHeight;if(to!==ao){const yo=to.getBoundingClientRect();lo=Math.max(lo,yo.left),uo=Math.max(uo,yo.top),ho=Math.min(ho,yo.right),go=Math.min(go,yo.bottom)}const mo=new _DOMRect(lo{io.containerBoundingRectCacheTimer=void 0;for(const yo of Object.keys(io.containerBoundingRectCache))delete io.containerBoundingRectCache[yo].element.__tabsterCacheId;io.containerBoundingRectCache={}},50)),mo}function isElementVerticallyVisibleInContainer(eo,to,no){const io=getScrollableContainer(to);if(!io)return!1;const so=getBoundingRect(eo,io),ao=to.getBoundingClientRect(),lo=ao.height*(1-no),uo=Math.max(0,so.top-ao.top),ho=Math.max(0,ao.bottom-so.bottom),go=uo+ho;return go===0||go<=lo}function scrollIntoView$4(eo,to,no){const io=getScrollableContainer(to);if(io){const so=getBoundingRect(eo,io),ao=to.getBoundingClientRect();no?io.scrollTop+=ao.top-so.top:io.scrollTop+=ao.bottom-so.bottom}}function getScrollableContainer(eo){const to=eo.ownerDocument;if(to){for(let no=eo.parentElement;no;no=no.parentElement)if(no.scrollWidth>no.clientWidth||no.scrollHeight>no.clientHeight)return no;return to.documentElement}return null}function makeFocusIgnored(eo){eo.__shouldIgnoreFocus=!0}function shouldIgnoreFocus(eo){return!!eo.__shouldIgnoreFocus}function getUId(eo){const to=new Uint32Array(4);if(eo.crypto&&eo.crypto.getRandomValues)eo.crypto.getRandomValues(to);else if(eo.msCrypto&&eo.msCrypto.getRandomValues)eo.msCrypto.getRandomValues(to);else for(let io=0;io{if(this._fixedTarget){const So=this._fixedTarget.get();So&&nativeFocus(So);return}const yo=this.input;if(this.onFocusIn&&yo){const So=mo.relatedTarget;this.onFocusIn(this,this._isBackward(!0,yo,So),So)}},this._focusOut=mo=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const yo=this.input;if(this.onFocusOut&&yo){const So=mo.relatedTarget;this.onFocusOut(this,this._isBackward(!1,yo,So),So)}};const uo=to(),ho=uo.document.createElement("i");ho.tabIndex=0,ho.setAttribute("role","none"),ho.setAttribute(TabsterDummyInputAttributeName,""),ho.setAttribute("aria-hidden","true");const go=ho.style;go.position="fixed",go.width=go.height="1px",go.opacity="0.001",go.zIndex="-1",go.setProperty("content-visibility","hidden"),makeFocusIgnored(ho),this.input=ho,this.isFirst=io.isFirst,this.isOutside=no,this._isPhantom=(lo=io.isPhantom)!==null&&lo!==void 0?lo:!1,this._fixedTarget=ao,ho.addEventListener("focusin",this._focusIn),ho.addEventListener("focusout",this._focusOut),ho.__tabsterDummyContainer=so,this._isPhantom&&(this._disposeTimer=uo.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(uo.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var to;this._clearDisposeTimeout&&this._clearDisposeTimeout();const no=this.input;no&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,no.removeEventListener("focusin",this._focusIn),no.removeEventListener("focusout",this._focusOut),delete no.__tabsterDummyContainer,(to=no.parentElement)===null||to===void 0||to.removeChild(no))}setTopLeft(to,no){var io;const so=(io=this.input)===null||io===void 0?void 0:io.style;so&&(so.top=`${to}px`,so.left=`${no}px`)}_isBackward(to,no,io){return to&&!io?!this.isFirst:!!(io&&no.compareDocumentPosition(io)&Node.DOCUMENT_POSITION_FOLLOWING)}}const DummyInputManagerPriorities={Root:1,Modalizer:2,Mover:3,Groupper:4};class DummyInputManager{constructor(to,no,io,so,ao,lo){this._element=no,this._instance=new DummyInputManagerCore(to,no,this,io,so,ao,lo)}_setHandlers(to,no){this._onFocusIn=to,this._onFocusOut=no}moveOut(to){var no;(no=this._instance)===null||no===void 0||no.moveOut(to)}moveOutWithDefaultAction(to,no){var io;(io=this._instance)===null||io===void 0||io.moveOutWithDefaultAction(to,no)}getHandler(to){return to?this._onFocusIn:this._onFocusOut}setTabbable(to){var no;(no=this._instance)===null||no===void 0||no.setTabbable(this,to)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(to,no,io,so,ao){var lo;const ho=new DummyInput(to.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(ho){let go,mo;if(no.tagName==="BODY")go=no,mo=io&&so||!io&&!so?no.firstElementChild:null;else{io&&(!so||so&&!to.focusable.isFocusable(no,!1,!0,!0))?(go=no,mo=so?no.firstElementChild:null):(go=no.parentElement,mo=io&&so||!io&&!so?no:no.nextElementSibling);let yo,So;do yo=io&&so||!io&&!so?mo==null?void 0:mo.previousElementSibling:mo,So=(lo=yo==null?void 0:yo.__tabsterDummyContainer)===null||lo===void 0?void 0:lo.get(),So===no?mo=io&&so||!io&&!so?yo:yo==null?void 0:yo.nextElementSibling:So=void 0;while(So)}go&&triggerMoveFocusEvent({by:"root",owner:go,next:null,relatedEvent:ao})&&(go.insertBefore(ho,mo),nativeFocus(ho))}}static addPhantomDummyWithTarget(to,no,io,so){const lo=new DummyInput(to.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new WeakHTMLElement(to.getWindow,so)).input;if(lo){let uo,ho;hasSubFocusable(no)&&!io?(uo=no,ho=no.firstElementChild):(uo=no.parentElement,ho=io?no:no.nextElementSibling),uo==null||uo.insertBefore(lo,ho)}}}class DummyInputObserver{constructor(to){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=no=>{var io;this._changedParents.has(no)||(this._changedParents.add(no),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(io=this._win)===null||io===void 0?void 0:io.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const so of this._dummyElements){const ao=so.get();if(ao){const lo=this._dummyCallbacks.get(ao);if(lo){const uo=ao.parentElement;(!uo||this._changedParents.has(uo))&&lo()}}}this._changedParents=new WeakSet},_updateDummyInputsTimeout)))},this._win=to}add(to,no){!this._dummyCallbacks.has(to)&&this._win&&(this._dummyElements.push(new WeakHTMLElement(this._win,to)),this._dummyCallbacks.set(to,no),this.domChanged=this._domChanged)}remove(to){this._dummyElements=this._dummyElements.filter(no=>{const io=no.get();return io&&io!==to}),this._dummyCallbacks.delete(to),this._dummyElements.length===0&&delete this.domChanged}dispose(){var to;const no=(to=this._win)===null||to===void 0?void 0:to.call(this);this._updateTimer&&(no==null||no.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(no==null||no.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(to){this._win&&(this._updateQueue.add(to),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var to;this._updateTimer||(this._updateTimer=(to=this._win)===null||to===void 0?void 0:to.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+_updateDummyInputsTimeout<=Date.now()){const no=new Map,io=[];for(const so of this._updateQueue)io.push(so(no));this._updateQueue.clear();for(const so of io)so();no.clear()}else this._scheduledUpdatePositions()},_updateDummyInputsTimeout))}}class DummyInputManagerCore{constructor(to,no,io,so,ao,lo,uo){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(_o,ko,Co)=>{this._onFocus(!0,_o,ko,Co)},this._onFocusOut=(_o,ko,Co)=>{this._onFocus(!1,_o,ko,Co)},this.moveOut=_o=>{var ko;const Co=this._firstDummy,$o=this._lastDummy;if(Co&&$o){this._ensurePosition();const Ro=Co.input,Oo=$o.input,No=(ko=this._element)===null||ko===void 0?void 0:ko.get();if(Ro&&Oo&&No){let Mo;_o?(Ro.tabIndex=0,Mo=Ro):(Oo.tabIndex=0,Mo=Oo),Mo&&nativeFocus(Mo)}}},this.moveOutWithDefaultAction=(_o,ko)=>{var Co;const $o=this._firstDummy,Ro=this._lastDummy;if($o&&Ro){this._ensurePosition();const Oo=$o.input,No=Ro.input,Mo=(Co=this._element)===null||Co===void 0?void 0:Co.get();if(Oo&&No&&Mo){let Bo;_o?!$o.isOutside&&this._tabster.focusable.isFocusable(Mo,!0,!0,!0)?Bo=Mo:($o.useDefaultAction=!0,Oo.tabIndex=0,Bo=Oo):(Ro.useDefaultAction=!0,No.tabIndex=0,Bo=No),Bo&&triggerMoveFocusEvent({by:"root",owner:Mo,next:null,relatedEvent:ko})&&nativeFocus(Bo)}}},this.setTabbable=(_o,ko)=>{var Co,$o;for(const Oo of this._wrappers)if(Oo.manager===_o){Oo.tabbable=ko;break}const Ro=this._getCurrent();if(Ro){const Oo=Ro.tabbable?0:-1;let No=(Co=this._firstDummy)===null||Co===void 0?void 0:Co.input;No&&(No.tabIndex=Oo),No=($o=this._lastDummy)===null||$o===void 0?void 0:$o.input,No&&(No.tabIndex=Oo)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=_o=>{var ko,Co;const $o=((ko=this._firstDummy)===null||ko===void 0?void 0:ko.input)||((Co=this._lastDummy)===null||Co===void 0?void 0:Co.input),Ro=this._transformElements,Oo=new Set;let No=0,Mo=0;const Bo=this._getWindow();for(let Po=$o;Po&&Po.nodeType===Node.ELEMENT_NODE;Po=Po.parentElement){let Lo=_o.get(Po);if(Lo===void 0){const Go=Bo.getComputedStyle(Po).transform;Go&&Go!=="none"&&(Lo={scrollTop:Po.scrollTop,scrollLeft:Po.scrollLeft}),_o.set(Po,Lo||null)}Lo&&(Oo.add(Po),Ro.has(Po)||Po.addEventListener("scroll",this._addTransformOffsets),No+=Lo.scrollTop,Mo+=Lo.scrollLeft)}for(const Po of Ro)Oo.has(Po)||Po.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=Oo,()=>{var Po,Lo;(Po=this._firstDummy)===null||Po===void 0||Po.setTopLeft(No,Mo),(Lo=this._lastDummy)===null||Lo===void 0||Lo.setTopLeft(No,Mo)}};const ho=no.get();if(!ho)throw new Error("No element");this._tabster=to,this._getWindow=to.getWindow,this._callForDefaultAction=uo;const go=ho.__tabsterDummy;if((go||this)._wrappers.push({manager:io,priority:so,tabbable:!0}),go)return go;ho.__tabsterDummy=this;const mo=ao==null?void 0:ao.dummyInputsPosition,yo=ho.tagName;this._isOutside=mo?mo===SysDummyInputsPositions.Outside:(lo||yo==="UL"||yo==="OL"||yo==="TABLE")&&!(yo==="LI"||yo==="TD"||yo==="TH"),this._firstDummy=new DummyInput(this._getWindow,this._isOutside,{isFirst:!0},no),this._lastDummy=new DummyInput(this._getWindow,this._isOutside,{isFirst:!1},no);const So=this._firstDummy.input;So&&to._dummyObserver.add(So,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=no,this._addDummyInputs()}dispose(to,no){var io,so,ao,lo;if((this._wrappers=this._wrappers.filter(ho=>ho.manager!==to&&!no)).length===0){delete((io=this._element)===null||io===void 0?void 0:io.get()).__tabsterDummy;for(const mo of this._transformElements)mo.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const ho=this._getWindow();this._addTimer&&(ho.clearTimeout(this._addTimer),delete this._addTimer);const go=(so=this._firstDummy)===null||so===void 0?void 0:so.input;go&&this._tabster._dummyObserver.remove(go),(ao=this._firstDummy)===null||ao===void 0||ao.dispose(),(lo=this._lastDummy)===null||lo===void 0||lo.dispose()}}_onFocus(to,no,io,so){var ao;const lo=this._getCurrent();lo&&(!no.useDefaultAction||this._callForDefaultAction)&&((ao=lo.manager.getHandler(to))===null||ao===void 0||ao(no,io,so))}_getCurrent(){return this._wrappers.sort((to,no)=>to.tabbable!==no.tabbable?to.tabbable?-1:1:to.priority-no.priority),this._wrappers[0]}_ensurePosition(){var to,no,io;const so=(to=this._element)===null||to===void 0?void 0:to.get(),ao=(no=this._firstDummy)===null||no===void 0?void 0:no.input,lo=(io=this._lastDummy)===null||io===void 0?void 0:io.input;if(!(!so||!ao||!lo))if(this._isOutside){const uo=so.parentElement;if(uo){const ho=so.nextElementSibling;ho!==lo&&uo.insertBefore(lo,ho),so.previousElementSibling!==ao&&uo.insertBefore(ao,so)}}else{so.lastElementChild!==lo&&so.appendChild(lo);const uo=so.firstElementChild;uo&&uo!==ao&&so.insertBefore(ao,uo)}}}function getLastChild(eo){let to=null;for(let no=eo.lastElementChild;no;no=no.lastElementChild)to=no;return to||void 0}function getAdjacentElement(eo,to){let no=eo,io=null;for(;no&&!io;)io=to?no.previousElementSibling:no.nextElementSibling,no=no.parentElement;return io||void 0}function triggerEvent(eo,to,no){const io=document.createEvent("HTMLEvents");return io.initEvent(to,!0,!0),io.details=no,eo.dispatchEvent(io),!io.defaultPrevented}function triggerMoveFocusEvent(eo){return triggerEvent(eo.owner,MoveFocusEventName,eo)}function augmentAttribute(eo,to,no,io){const so=eo.storageEntry(to,!0);let ao=!1;if(!so.aug){if(io===void 0)return ao;so.aug={}}if(io===void 0){if(no in so.aug){const lo=so.aug[no];delete so.aug[no],lo===null?to.removeAttribute(no):to.setAttribute(no,lo),ao=!0}}else{let lo;no in so.aug||(lo=to.getAttribute(no)),lo!==void 0&&lo!==io&&(so.aug[no]=lo,io===null?to.removeAttribute(no):to.setAttribute(no,io),ao=!0)}return io===void 0&&Object.keys(so.aug).length===0&&(delete so.aug,eo.storageEntry(to,!1)),ao}/*! + */let _isBrokenIE11;const _DOMRect=typeof DOMRect<"u"?DOMRect:class{constructor(eo,to,no,io){this.left=eo||0,this.top=to||0,this.right=(eo||0)+(no||0),this.bottom=(to||0)+(io||0)}};let _uidCounter=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),_isBrokenIE11=!1}catch{_isBrokenIE11=!0}const _updateDummyInputsTimeout=100;function getInstanceContext(eo){const to=eo();let no=to.__tabsterInstanceContext;return no||(no={elementByUId:{},basics:{Promise:to.Promise||void 0,WeakRef:to.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},to.__tabsterInstanceContext=no),no}function disposeInstanceContext(eo){const to=eo.__tabsterInstanceContext;to&&(to.elementByUId={},delete to.WeakRef,to.containerBoundingRectCache={},to.containerBoundingRectCacheTimer&&eo.clearTimeout(to.containerBoundingRectCacheTimer),to.fakeWeakRefsTimer&&eo.clearTimeout(to.fakeWeakRefsTimer),to.fakeWeakRefs=[],delete eo.__tabsterInstanceContext)}function createWeakMap(eo){const to=eo.__tabsterInstanceContext;return new((to==null?void 0:to.basics.WeakMap)||WeakMap)}function hasSubFocusable(eo){return!!eo.querySelector(FocusableSelector)}class FakeWeakRef{constructor(to){this._target=to}deref(){return this._target}static cleanup(to,no){return to._target?no||!documentContains(to._target.ownerDocument,to._target)?(delete to._target,!0):!1:!0}}class WeakHTMLElement{constructor(to,no,io){const so=getInstanceContext(to);let ao;so.WeakRef?ao=new so.WeakRef(no):(ao=new FakeWeakRef(no),so.fakeWeakRefs.push(ao)),this._ref=ao,this._data=io}get(){const to=this._ref;let no;return to&&(no=to.deref(),no||delete this._ref),no}getData(){return this._data}}function cleanupFakeWeakRefs(eo,to){const no=getInstanceContext(eo);no.fakeWeakRefs=no.fakeWeakRefs.filter(io=>!FakeWeakRef.cleanup(io,to))}function startFakeWeakRefsCleanup(eo){const to=getInstanceContext(eo);to.fakeWeakRefsStarted||(to.fakeWeakRefsStarted=!0,to.WeakRef=getWeakRef(to)),to.fakeWeakRefsTimer||(to.fakeWeakRefsTimer=eo().setTimeout(()=>{to.fakeWeakRefsTimer=void 0,cleanupFakeWeakRefs(eo),startFakeWeakRefsCleanup(eo)},2*60*1e3))}function stopFakeWeakRefsCleanupAndClearStorage(eo){const to=getInstanceContext(eo);to.fakeWeakRefsStarted=!1,to.fakeWeakRefsTimer&&(eo().clearTimeout(to.fakeWeakRefsTimer),to.fakeWeakRefsTimer=void 0,to.fakeWeakRefs=[])}function createElementTreeWalker(eo,to,no){if(to.nodeType!==Node.ELEMENT_NODE)return;const io=_isBrokenIE11?no:{acceptNode:no};return eo.createTreeWalker(to,NodeFilter.SHOW_ELEMENT,io,!1)}function getBoundingRect(eo,to){let no=to.__tabsterCacheId;const io=getInstanceContext(eo),so=no?io.containerBoundingRectCache[no]:void 0;if(so)return so.rect;const ao=to.ownerDocument&&to.ownerDocument.documentElement;if(!ao)return new _DOMRect;let lo=0,uo=0,ho=ao.clientWidth,go=ao.clientHeight;if(to!==ao){const yo=to.getBoundingClientRect();lo=Math.max(lo,yo.left),uo=Math.max(uo,yo.top),ho=Math.min(ho,yo.right),go=Math.min(go,yo.bottom)}const mo=new _DOMRect(lo{io.containerBoundingRectCacheTimer=void 0;for(const yo of Object.keys(io.containerBoundingRectCache))delete io.containerBoundingRectCache[yo].element.__tabsterCacheId;io.containerBoundingRectCache={}},50)),mo}function isElementVerticallyVisibleInContainer(eo,to,no){const io=getScrollableContainer(to);if(!io)return!1;const so=getBoundingRect(eo,io),ao=to.getBoundingClientRect(),lo=ao.height*(1-no),uo=Math.max(0,so.top-ao.top),ho=Math.max(0,ao.bottom-so.bottom),go=uo+ho;return go===0||go<=lo}function scrollIntoView$4(eo,to,no){const io=getScrollableContainer(to);if(io){const so=getBoundingRect(eo,io),ao=to.getBoundingClientRect();no?io.scrollTop+=ao.top-so.top:io.scrollTop+=ao.bottom-so.bottom}}function getScrollableContainer(eo){const to=eo.ownerDocument;if(to){for(let no=eo.parentElement;no;no=no.parentElement)if(no.scrollWidth>no.clientWidth||no.scrollHeight>no.clientHeight)return no;return to.documentElement}return null}function makeFocusIgnored(eo){eo.__shouldIgnoreFocus=!0}function shouldIgnoreFocus(eo){return!!eo.__shouldIgnoreFocus}function getUId(eo){const to=new Uint32Array(4);if(eo.crypto&&eo.crypto.getRandomValues)eo.crypto.getRandomValues(to);else if(eo.msCrypto&&eo.msCrypto.getRandomValues)eo.msCrypto.getRandomValues(to);else for(let io=0;io{if(this._fixedTarget){const So=this._fixedTarget.get();So&&nativeFocus(So);return}const yo=this.input;if(this.onFocusIn&&yo){const So=mo.relatedTarget;this.onFocusIn(this,this._isBackward(!0,yo,So),So)}},this._focusOut=mo=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const yo=this.input;if(this.onFocusOut&&yo){const So=mo.relatedTarget;this.onFocusOut(this,this._isBackward(!1,yo,So),So)}};const uo=to(),ho=uo.document.createElement("i");ho.tabIndex=0,ho.setAttribute("role","none"),ho.setAttribute(TabsterDummyInputAttributeName,""),ho.setAttribute("aria-hidden","true");const go=ho.style;go.position="fixed",go.width=go.height="1px",go.opacity="0.001",go.zIndex="-1",go.setProperty("content-visibility","hidden"),makeFocusIgnored(ho),this.input=ho,this.isFirst=io.isFirst,this.isOutside=no,this._isPhantom=(lo=io.isPhantom)!==null&&lo!==void 0?lo:!1,this._fixedTarget=ao,ho.addEventListener("focusin",this._focusIn),ho.addEventListener("focusout",this._focusOut),ho.__tabsterDummyContainer=so,this._isPhantom&&(this._disposeTimer=uo.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(uo.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var to;this._clearDisposeTimeout&&this._clearDisposeTimeout();const no=this.input;no&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,no.removeEventListener("focusin",this._focusIn),no.removeEventListener("focusout",this._focusOut),delete no.__tabsterDummyContainer,(to=no.parentElement)===null||to===void 0||to.removeChild(no))}setTopLeft(to,no){var io;const so=(io=this.input)===null||io===void 0?void 0:io.style;so&&(so.top=`${to}px`,so.left=`${no}px`)}_isBackward(to,no,io){return to&&!io?!this.isFirst:!!(io&&no.compareDocumentPosition(io)&Node.DOCUMENT_POSITION_FOLLOWING)}}const DummyInputManagerPriorities={Root:1,Modalizer:2,Mover:3,Groupper:4};class DummyInputManager{constructor(to,no,io,so,ao,lo){this._element=no,this._instance=new DummyInputManagerCore(to,no,this,io,so,ao,lo)}_setHandlers(to,no){this._onFocusIn=to,this._onFocusOut=no}moveOut(to){var no;(no=this._instance)===null||no===void 0||no.moveOut(to)}moveOutWithDefaultAction(to,no){var io;(io=this._instance)===null||io===void 0||io.moveOutWithDefaultAction(to,no)}getHandler(to){return to?this._onFocusIn:this._onFocusOut}setTabbable(to){var no;(no=this._instance)===null||no===void 0||no.setTabbable(this,to)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(to,no,io,so,ao){var lo;const ho=new DummyInput(to.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(ho){let go,mo;if(no.tagName==="BODY")go=no,mo=io&&so||!io&&!so?no.firstElementChild:null;else{io&&(!so||so&&!to.focusable.isFocusable(no,!1,!0,!0))?(go=no,mo=so?no.firstElementChild:null):(go=no.parentElement,mo=io&&so||!io&&!so?no:no.nextElementSibling);let yo,So;do yo=io&&so||!io&&!so?mo==null?void 0:mo.previousElementSibling:mo,So=(lo=yo==null?void 0:yo.__tabsterDummyContainer)===null||lo===void 0?void 0:lo.get(),So===no?mo=io&&so||!io&&!so?yo:yo==null?void 0:yo.nextElementSibling:So=void 0;while(So)}go&&triggerMoveFocusEvent({by:"root",owner:go,next:null,relatedEvent:ao})&&(go.insertBefore(ho,mo),nativeFocus(ho))}}static addPhantomDummyWithTarget(to,no,io,so){const lo=new DummyInput(to.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new WeakHTMLElement(to.getWindow,so)).input;if(lo){let uo,ho;hasSubFocusable(no)&&!io?(uo=no,ho=no.firstElementChild):(uo=no.parentElement,ho=io?no:no.nextElementSibling),uo==null||uo.insertBefore(lo,ho)}}}class DummyInputObserver{constructor(to){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=no=>{var io;this._changedParents.has(no)||(this._changedParents.add(no),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(io=this._win)===null||io===void 0?void 0:io.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const so of this._dummyElements){const ao=so.get();if(ao){const lo=this._dummyCallbacks.get(ao);if(lo){const uo=ao.parentElement;(!uo||this._changedParents.has(uo))&&lo()}}}this._changedParents=new WeakSet},_updateDummyInputsTimeout)))},this._win=to}add(to,no){!this._dummyCallbacks.has(to)&&this._win&&(this._dummyElements.push(new WeakHTMLElement(this._win,to)),this._dummyCallbacks.set(to,no),this.domChanged=this._domChanged)}remove(to){this._dummyElements=this._dummyElements.filter(no=>{const io=no.get();return io&&io!==to}),this._dummyCallbacks.delete(to),this._dummyElements.length===0&&delete this.domChanged}dispose(){var to;const no=(to=this._win)===null||to===void 0?void 0:to.call(this);this._updateTimer&&(no==null||no.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(no==null||no.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(to){this._win&&(this._updateQueue.add(to),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var to;this._updateTimer||(this._updateTimer=(to=this._win)===null||to===void 0?void 0:to.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+_updateDummyInputsTimeout<=Date.now()){const no=new Map,io=[];for(const so of this._updateQueue)io.push(so(no));this._updateQueue.clear();for(const so of io)so();no.clear()}else this._scheduledUpdatePositions()},_updateDummyInputsTimeout))}}class DummyInputManagerCore{constructor(to,no,io,so,ao,lo,uo){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(_o,ko,Co)=>{this._onFocus(!0,_o,ko,Co)},this._onFocusOut=(_o,ko,Co)=>{this._onFocus(!1,_o,ko,Co)},this.moveOut=_o=>{var ko;const Co=this._firstDummy,$o=this._lastDummy;if(Co&&$o){this._ensurePosition();const Ro=Co.input,Oo=$o.input,No=(ko=this._element)===null||ko===void 0?void 0:ko.get();if(Ro&&Oo&&No){let Mo;_o?(Ro.tabIndex=0,Mo=Ro):(Oo.tabIndex=0,Mo=Oo),Mo&&nativeFocus(Mo)}}},this.moveOutWithDefaultAction=(_o,ko)=>{var Co;const $o=this._firstDummy,Ro=this._lastDummy;if($o&&Ro){this._ensurePosition();const Oo=$o.input,No=Ro.input,Mo=(Co=this._element)===null||Co===void 0?void 0:Co.get();if(Oo&&No&&Mo){let Bo;_o?!$o.isOutside&&this._tabster.focusable.isFocusable(Mo,!0,!0,!0)?Bo=Mo:($o.useDefaultAction=!0,Oo.tabIndex=0,Bo=Oo):(Ro.useDefaultAction=!0,No.tabIndex=0,Bo=No),Bo&&triggerMoveFocusEvent({by:"root",owner:Mo,next:null,relatedEvent:ko})&&nativeFocus(Bo)}}},this.setTabbable=(_o,ko)=>{var Co,$o;for(const Oo of this._wrappers)if(Oo.manager===_o){Oo.tabbable=ko;break}const Ro=this._getCurrent();if(Ro){const Oo=Ro.tabbable?0:-1;let No=(Co=this._firstDummy)===null||Co===void 0?void 0:Co.input;No&&(No.tabIndex=Oo),No=($o=this._lastDummy)===null||$o===void 0?void 0:$o.input,No&&(No.tabIndex=Oo)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=_o=>{var ko,Co;const $o=((ko=this._firstDummy)===null||ko===void 0?void 0:ko.input)||((Co=this._lastDummy)===null||Co===void 0?void 0:Co.input),Ro=this._transformElements,Oo=new Set;let No=0,Mo=0;const Bo=this._getWindow();for(let Fo=$o;Fo&&Fo.nodeType===Node.ELEMENT_NODE;Fo=Fo.parentElement){let Lo=_o.get(Fo);if(Lo===void 0){const Go=Bo.getComputedStyle(Fo).transform;Go&&Go!=="none"&&(Lo={scrollTop:Fo.scrollTop,scrollLeft:Fo.scrollLeft}),_o.set(Fo,Lo||null)}Lo&&(Oo.add(Fo),Ro.has(Fo)||Fo.addEventListener("scroll",this._addTransformOffsets),No+=Lo.scrollTop,Mo+=Lo.scrollLeft)}for(const Fo of Ro)Oo.has(Fo)||Fo.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=Oo,()=>{var Fo,Lo;(Fo=this._firstDummy)===null||Fo===void 0||Fo.setTopLeft(No,Mo),(Lo=this._lastDummy)===null||Lo===void 0||Lo.setTopLeft(No,Mo)}};const ho=no.get();if(!ho)throw new Error("No element");this._tabster=to,this._getWindow=to.getWindow,this._callForDefaultAction=uo;const go=ho.__tabsterDummy;if((go||this)._wrappers.push({manager:io,priority:so,tabbable:!0}),go)return go;ho.__tabsterDummy=this;const mo=ao==null?void 0:ao.dummyInputsPosition,yo=ho.tagName;this._isOutside=mo?mo===SysDummyInputsPositions.Outside:(lo||yo==="UL"||yo==="OL"||yo==="TABLE")&&!(yo==="LI"||yo==="TD"||yo==="TH"),this._firstDummy=new DummyInput(this._getWindow,this._isOutside,{isFirst:!0},no),this._lastDummy=new DummyInput(this._getWindow,this._isOutside,{isFirst:!1},no);const So=this._firstDummy.input;So&&to._dummyObserver.add(So,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=no,this._addDummyInputs()}dispose(to,no){var io,so,ao,lo;if((this._wrappers=this._wrappers.filter(ho=>ho.manager!==to&&!no)).length===0){delete((io=this._element)===null||io===void 0?void 0:io.get()).__tabsterDummy;for(const mo of this._transformElements)mo.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const ho=this._getWindow();this._addTimer&&(ho.clearTimeout(this._addTimer),delete this._addTimer);const go=(so=this._firstDummy)===null||so===void 0?void 0:so.input;go&&this._tabster._dummyObserver.remove(go),(ao=this._firstDummy)===null||ao===void 0||ao.dispose(),(lo=this._lastDummy)===null||lo===void 0||lo.dispose()}}_onFocus(to,no,io,so){var ao;const lo=this._getCurrent();lo&&(!no.useDefaultAction||this._callForDefaultAction)&&((ao=lo.manager.getHandler(to))===null||ao===void 0||ao(no,io,so))}_getCurrent(){return this._wrappers.sort((to,no)=>to.tabbable!==no.tabbable?to.tabbable?-1:1:to.priority-no.priority),this._wrappers[0]}_ensurePosition(){var to,no,io;const so=(to=this._element)===null||to===void 0?void 0:to.get(),ao=(no=this._firstDummy)===null||no===void 0?void 0:no.input,lo=(io=this._lastDummy)===null||io===void 0?void 0:io.input;if(!(!so||!ao||!lo))if(this._isOutside){const uo=so.parentElement;if(uo){const ho=so.nextElementSibling;ho!==lo&&uo.insertBefore(lo,ho),so.previousElementSibling!==ao&&uo.insertBefore(ao,so)}}else{so.lastElementChild!==lo&&so.appendChild(lo);const uo=so.firstElementChild;uo&&uo!==ao&&so.insertBefore(ao,uo)}}}function getLastChild(eo){let to=null;for(let no=eo.lastElementChild;no;no=no.lastElementChild)to=no;return to||void 0}function getAdjacentElement(eo,to){let no=eo,io=null;for(;no&&!io;)io=to?no.previousElementSibling:no.nextElementSibling,no=no.parentElement;return io||void 0}function triggerEvent(eo,to,no){const io=document.createEvent("HTMLEvents");return io.initEvent(to,!0,!0),io.details=no,eo.dispatchEvent(io),!io.defaultPrevented}function triggerMoveFocusEvent(eo){return triggerEvent(eo.owner,MoveFocusEventName,eo)}function augmentAttribute(eo,to,no,io){const so=eo.storageEntry(to,!0);let ao=!1;if(!so.aug){if(io===void 0)return ao;so.aug={}}if(io===void 0){if(no in so.aug){const lo=so.aug[no];delete so.aug[no],lo===null?to.removeAttribute(no):to.setAttribute(no,lo),ao=!0}}else{let lo;no in so.aug||(lo=to.getAttribute(no)),lo!==void 0&&lo!==io&&(so.aug[no]=lo,io===null?to.removeAttribute(no):to.setAttribute(no,io),ao=!0)}return io===void 0&&Object.keys(so.aug).length===0&&(delete so.aug,eo.storageEntry(to,!1)),ao}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */function getTabsterAttribute(eo,to){const no=JSON.stringify(eo);return to===!0?no:{[TabsterAttributeName]:no}}function mergeTabsterProps(eo,to){for(const no of Object.keys(to)){const io=to[no];io?eo[no]=io:delete eo[no]}}function setTabsterAttribute(eo,to,no){let io;if(no){const so=eo.getAttribute(TabsterAttributeName);if(so)try{io=JSON.parse(so)}catch{}}io||(io={}),mergeTabsterProps(io,to),Object.keys(io).length>0?eo.setAttribute(TabsterAttributeName,getTabsterAttribute(io,!0)):eo.removeAttribute(TabsterAttributeName)}class RootDummyManager extends DummyInputManager{constructor(to,no,io,so){super(to,no,DummyInputManagerPriorities.Root,so,void 0,!0),this._onDummyInputFocus=ao=>{var lo;if(ao.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const uo=this._element.get();if(uo){this._setFocused(!0);const ho=this._tabster.focusedElement.getFirstOrLastTabbable(ao.isFirst,{container:uo,ignoreAccessibility:!0});if(ho){nativeFocus(ho);return}}(lo=ao.input)===null||lo===void 0||lo.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=to,this._setFocused=io}}class Root extends TabsterPart{constructor(to,no,io,so,ao){super(to,no,so),this._isFocused=!1,this._setFocused=ho=>{var go;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===ho)return;const mo=this._element.get();mo&&(ho?(this._isFocused=!0,(go=this._dummyManager)===null||go===void 0||go.setTabbable(!1),triggerEvent(this._tabster.root.eventTarget,"focus",{element:mo})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var yo;delete this._setFocusedTimer,this._isFocused=!1,(yo=this._dummyManager)===null||yo===void 0||yo.setTabbable(!0),triggerEvent(this._tabster.root.eventTarget,"blur",{element:mo})},0))},this._onFocusIn=ho=>{const go=this._tabster.getParent,mo=this._element.get();let yo=ho.target;do{if(yo===mo){this._setFocused(!0);return}yo=yo&&go(yo)}while(yo)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=io;const lo=to.getWindow;this.uid=getElementUId(lo,no),this._sys=ao,(to.controlTab||to.rootDummyInputs)&&this.addDummyInputs();const uo=lo();uo.document.addEventListener("focusin",this._onFocusIn),uo.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new RootDummyManager(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var to;this._onDispose(this);const no=this._tabster.getWindow();no.document.removeEventListener("focusin",this._onFocusIn),no.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(no.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(to=this._dummyManager)===null||to===void 0||to.dispose(),this._remove()}moveOutWithDefaultAction(to,no){const io=this._dummyManager;if(io)io.moveOutWithDefaultAction(to,no);else{const so=this.getElement();so&&RootDummyManager.moveWithPhantomDummy(this._tabster,so,!0,to,no)}}_add(){}_remove(){}}class RootAPI{constructor(to,no){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var io;const so=this._win().document,ao=so.body;if(ao){this._autoRootUnwait(so);const lo=this._autoRoot;if(lo)return setTabsterAttribute(ao,{root:lo},!0),updateTabsterByAttribute(this._tabster,ao),(io=getTabsterOnElement(this._tabster,ao))===null||io===void 0?void 0:io.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,so.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=io=>{delete this._roots[io.id]},this._tabster=to,this._win=to.getWindow,this._autoRoot=no,this.eventTarget=createEventTarget(this._win),to.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(to){to.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const to=this._win();this._autoRootUnwait(to.document),delete this._autoRoot,Object.keys(this._roots).forEach(no=>{this._roots[no]&&(this._roots[no].dispose(),delete this._roots[no])}),this.rootById={}}createRoot(to,no,io){const so=new Root(this._tabster,to,this._onRootDispose,no,io);return this._roots[so.id]=so,this._forceDummy&&so.addDummyInputs(),so}addDummyInputs(){this._forceDummy=!0;const to=this._roots;for(const no of Object.keys(to))to[no].addDummyInputs()}static getRootByUId(to,no){const io=to().__tabsterInstance;return io&&io.root.rootById[no]}static getTabsterContext(to,no,io){io===void 0&&(io={});var so,ao,lo,uo;if(!no.ownerDocument)return;const{checkRtl:ho,referenceElement:go}=io,mo=to.getParent;to.drainInitQueue();let yo,So,_o,ko,Co=!1,$o,Ro,Oo,No,Mo=go||no;const Bo={};for(;Mo&&(!yo||ho);){const Lo=getTabsterOnElement(to,Mo);if(ho&&Oo===void 0){const Yo=Mo.dir;Yo&&(Oo=Yo.toLowerCase()==="rtl")}if(!Lo){Mo=mo(Mo);continue}const Go=Mo.tagName;(Lo.uncontrolled||Go==="IFRAME"||Go==="WEBVIEW")&&(No=Mo),!ko&&(!((so=Lo.focusable)===null||so===void 0)&&so.excludeFromMover)&&!_o&&(Co=!0);const Do=Lo.modalizer,Uo=Lo.groupper,Ho=Lo.mover;!So&&Do&&(So=Do),!_o&&Uo&&(!So||Do)&&(So?(!Uo.isActive()&&Uo.getProps().tabbability&&So.userId!==((ao=to.modalizer)===null||ao===void 0?void 0:ao.activeId)&&(So=void 0,_o=Uo),Ro=Uo):_o=Uo),!ko&&Ho&&(!So||Do)&&(!Uo||Mo!==no)&&(ko=Ho,$o=!!_o&&_o!==Uo),Lo.root&&(yo=Lo.root),!((lo=Lo.focusable)===null||lo===void 0)&&lo.ignoreKeydown&&Object.assign(Bo,Lo.focusable.ignoreKeydown),Mo=mo(Mo)}if(!yo){const Lo=to.root;Lo._autoRoot&&!((uo=no.ownerDocument)===null||uo===void 0)&&uo.body&&(yo=Lo._autoRootCreate())}return _o&&!ko&&($o=!0),yo?{root:yo,modalizer:So,groupper:_o,mover:ko,groupperBeforeMover:$o,modalizerInGroupper:Ro,rtl:ho?!!Oo:void 0,uncontrolled:No,excludedFromMover:Co,ignoreKeydown:Lo=>!!Bo[Lo.key]}:void 0}static getRoot(to,no){var io;const so=to.getParent;for(let ao=no;ao;ao=so(ao)){const lo=(io=getTabsterOnElement(to,ao))===null||io===void 0?void 0:io.root;if(lo)return lo}}onRoot(to,no){no?delete this.rootById[to.uid]:this.rootById[to.uid]=to}}/*! @@ -97,7 +97,7 @@ Error generating stack: `+ao.message+` */class Subscribable{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(to){const no=this._callbacks;no.indexOf(to)<0&&no.push(to)}subscribeFirst(to){const no=this._callbacks,io=no.indexOf(to);io>=0&&no.splice(io,1),no.unshift(to)}unsubscribe(to){const no=this._callbacks.indexOf(to);no>=0&&this._callbacks.splice(no,1)}setVal(to,no){this._val!==to&&(this._val=to,this._callCallbacks(to,no))}getVal(){return this._val}trigger(to,no){this._callCallbacks(to,no)}_callCallbacks(to,no){this._callbacks.forEach(io=>io(to,no))}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class FocusableAPI{constructor(to){this._tabster=to}dispose(){}getProps(to){const no=getTabsterOnElement(this._tabster,to);return no&&no.focusable||{}}isFocusable(to,no,io,so){return matchesSelector(to,FocusableSelector)&&(no||to.tabIndex!==-1)?(io||this.isVisible(to))&&(so||this.isAccessible(to)):!1}isVisible(to){if(!to.ownerDocument||to.nodeType!==Node.ELEMENT_NODE||to.offsetParent===null&&to.ownerDocument.body!==to)return!1;const no=to.ownerDocument.defaultView;if(!no)return!1;const io=to.ownerDocument.body.getBoundingClientRect();return!(io.width===0&&io.height===0||no.getComputedStyle(to).visibility==="hidden")}isAccessible(to){var no;for(let io=to;io;io=io.parentElement){const so=getTabsterOnElement(this._tabster,io);if(this._isHidden(io)||!((no=so==null?void 0:so.focusable)===null||no===void 0?void 0:no.ignoreAriaDisabled)&&this._isDisabled(io))return!1}return!0}_isDisabled(to){return to.hasAttribute("disabled")}_isHidden(to){var no;const io=to.getAttribute("aria-hidden");return!!(io&&io.toLowerCase()==="true"&&!(!((no=this._tabster.modalizer)===null||no===void 0)&&no.isAugmented(to)))}findFirst(to,no){return this.findElement({...to},no)}findLast(to,no){return this.findElement({isBackward:!0,...to},no)}findNext(to,no){return this.findElement({...to},no)}findPrev(to,no){return this.findElement({...to,isBackward:!0},no)}findDefault(to,no){return this.findElement({...to,acceptCondition:io=>this.isFocusable(io,to.includeProgrammaticallyFocusable)&&!!this.getProps(io).isDefault},no)||null}findAll(to){return this._findElements(!0,to)||[]}findElement(to,no){const io=this._findElements(!1,to,no);return io&&io[0]}_findElements(to,no,io){var so,ao,lo;const{container:uo,currentElement:ho=null,includeProgrammaticallyFocusable:go,useActiveModalizer:mo,ignoreAccessibility:yo,modalizerId:So,isBackward:_o,onElement:ko}=no;io||(io={});const Co=[];let{acceptCondition:$o}=no;const Ro=!!$o;if(!uo)return null;$o||($o=Bo=>this.isFocusable(Bo,go,!1,yo));const Oo={container:uo,modalizerUserId:So===void 0&&mo?(so=this._tabster.modalizer)===null||so===void 0?void 0:so.activeId:So||((lo=(ao=RootAPI.getTabsterContext(this._tabster,uo))===null||ao===void 0?void 0:ao.modalizer)===null||lo===void 0?void 0:lo.userId),from:ho||uo,isBackward:_o,acceptCondition:$o,hasCustomCondition:Ro,includeProgrammaticallyFocusable:go,ignoreAccessibility:yo,cachedGrouppers:{}},No=createElementTreeWalker(uo.ownerDocument,uo,Bo=>this._acceptElement(Bo,Oo));if(!No)return null;const Mo=Bo=>{var Po,Lo;const Go=(Po=Oo.foundElement)!==null&&Po!==void 0?Po:Oo.foundBackward;return Go&&Co.push(Go),to?Go&&(Oo.found=!1,delete Oo.foundElement,delete Oo.foundBackward,delete Oo.fromCtx,Oo.from=Go,ko&&!ko(Go))?!1:!!(Go||Bo):(Go&&io&&(io.uncontrolled=(Lo=RootAPI.getTabsterContext(this._tabster,Go))===null||Lo===void 0?void 0:Lo.uncontrolled),!!(Bo&&!Go))};if(ho||(io.outOfDOMOrder=!0),ho)No.currentNode=ho;else if(_o){const Bo=getLastChild(uo);if(!Bo)return null;if(this._acceptElement(Bo,Oo)===NodeFilter.FILTER_ACCEPT&&!Mo(!0))return Oo.skippedFocusable&&(io.outOfDOMOrder=!0),Co;No.currentNode=Bo}do _o?No.previousNode():No.nextNode();while(Mo());return Oo.skippedFocusable&&(io.outOfDOMOrder=!0),Co.length?Co:null}_acceptElement(to,no){var io,so,ao,lo;if(no.found)return NodeFilter.FILTER_ACCEPT;const uo=no.foundBackward;if(uo&&(to===uo||!uo.contains(to)))return no.found=!0,no.foundElement=uo,NodeFilter.FILTER_ACCEPT;const ho=no.container;if(to===ho)return NodeFilter.FILTER_SKIP;if(!ho.contains(to)||to.__tabsterDummyContainer||!((io=no.rejectElementsFrom)===null||io===void 0)&&io.contains(to))return NodeFilter.FILTER_REJECT;const go=no.currentCtx=RootAPI.getTabsterContext(this._tabster,to);if(!go)return NodeFilter.FILTER_SKIP;if(shouldIgnoreFocus(to))return this.isFocusable(to,void 0,!0,!0)&&(no.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!no.hasCustomCondition&&(to.tagName==="IFRAME"||to.tagName==="WEBVIEW"))return((so=go.modalizer)===null||so===void 0?void 0:so.userId)===((ao=this._tabster.modalizer)===null||ao===void 0?void 0:ao.activeId)?(no.found=!0,no.rejectElementsFrom=no.foundElement=to,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!no.ignoreAccessibility&&!this.isAccessible(to))return this.isFocusable(to,!1,!0,!0)&&(no.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let mo,yo=no.fromCtx;yo||(yo=no.fromCtx=RootAPI.getTabsterContext(this._tabster,no.from));const So=yo==null?void 0:yo.mover;let _o=go.groupper,ko=go.mover;if(mo=(lo=this._tabster.modalizer)===null||lo===void 0?void 0:lo.acceptElement(to,no),mo!==void 0&&(no.skippedFocusable=!0),mo===void 0&&(_o||ko||So)){const Co=_o==null?void 0:_o.getElement(),$o=So==null?void 0:So.getElement();let Ro=ko==null?void 0:ko.getElement();Ro&&($o!=null&&$o.contains(Ro))&&ho.contains($o)&&(!Co||!ko||$o.contains(Co))&&(ko=So,Ro=$o),Co&&(Co===ho||!ho.contains(Co))&&(_o=void 0),Ro&&!ho.contains(Ro)&&(ko=void 0),_o&&ko&&(Ro&&Co&&!Co.contains(Ro)?ko=void 0:_o=void 0),_o&&(mo=_o.acceptElement(to,no)),ko&&(mo=ko.acceptElement(to,no))}return mo===void 0&&(mo=no.acceptCondition(to)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,mo===NodeFilter.FILTER_SKIP&&this.isFocusable(to,!1,!0,!0)&&(no.skippedFocusable=!0)),mo===NodeFilter.FILTER_ACCEPT&&!no.found&&(no.isBackward?(no.foundBackward=to,mo=NodeFilter.FILTER_SKIP):(no.found=!0,no.foundElement=to)),mo}}/*! + */class FocusableAPI{constructor(to){this._tabster=to}dispose(){}getProps(to){const no=getTabsterOnElement(this._tabster,to);return no&&no.focusable||{}}isFocusable(to,no,io,so){return matchesSelector(to,FocusableSelector)&&(no||to.tabIndex!==-1)?(io||this.isVisible(to))&&(so||this.isAccessible(to)):!1}isVisible(to){if(!to.ownerDocument||to.nodeType!==Node.ELEMENT_NODE||to.offsetParent===null&&to.ownerDocument.body!==to)return!1;const no=to.ownerDocument.defaultView;if(!no)return!1;const io=to.ownerDocument.body.getBoundingClientRect();return!(io.width===0&&io.height===0||no.getComputedStyle(to).visibility==="hidden")}isAccessible(to){var no;for(let io=to;io;io=io.parentElement){const so=getTabsterOnElement(this._tabster,io);if(this._isHidden(io)||!((no=so==null?void 0:so.focusable)===null||no===void 0?void 0:no.ignoreAriaDisabled)&&this._isDisabled(io))return!1}return!0}_isDisabled(to){return to.hasAttribute("disabled")}_isHidden(to){var no;const io=to.getAttribute("aria-hidden");return!!(io&&io.toLowerCase()==="true"&&!(!((no=this._tabster.modalizer)===null||no===void 0)&&no.isAugmented(to)))}findFirst(to,no){return this.findElement({...to},no)}findLast(to,no){return this.findElement({isBackward:!0,...to},no)}findNext(to,no){return this.findElement({...to},no)}findPrev(to,no){return this.findElement({...to,isBackward:!0},no)}findDefault(to,no){return this.findElement({...to,acceptCondition:io=>this.isFocusable(io,to.includeProgrammaticallyFocusable)&&!!this.getProps(io).isDefault},no)||null}findAll(to){return this._findElements(!0,to)||[]}findElement(to,no){const io=this._findElements(!1,to,no);return io&&io[0]}_findElements(to,no,io){var so,ao,lo;const{container:uo,currentElement:ho=null,includeProgrammaticallyFocusable:go,useActiveModalizer:mo,ignoreAccessibility:yo,modalizerId:So,isBackward:_o,onElement:ko}=no;io||(io={});const Co=[];let{acceptCondition:$o}=no;const Ro=!!$o;if(!uo)return null;$o||($o=Bo=>this.isFocusable(Bo,go,!1,yo));const Oo={container:uo,modalizerUserId:So===void 0&&mo?(so=this._tabster.modalizer)===null||so===void 0?void 0:so.activeId:So||((lo=(ao=RootAPI.getTabsterContext(this._tabster,uo))===null||ao===void 0?void 0:ao.modalizer)===null||lo===void 0?void 0:lo.userId),from:ho||uo,isBackward:_o,acceptCondition:$o,hasCustomCondition:Ro,includeProgrammaticallyFocusable:go,ignoreAccessibility:yo,cachedGrouppers:{}},No=createElementTreeWalker(uo.ownerDocument,uo,Bo=>this._acceptElement(Bo,Oo));if(!No)return null;const Mo=Bo=>{var Fo,Lo;const Go=(Fo=Oo.foundElement)!==null&&Fo!==void 0?Fo:Oo.foundBackward;return Go&&Co.push(Go),to?Go&&(Oo.found=!1,delete Oo.foundElement,delete Oo.foundBackward,delete Oo.fromCtx,Oo.from=Go,ko&&!ko(Go))?!1:!!(Go||Bo):(Go&&io&&(io.uncontrolled=(Lo=RootAPI.getTabsterContext(this._tabster,Go))===null||Lo===void 0?void 0:Lo.uncontrolled),!!(Bo&&!Go))};if(ho||(io.outOfDOMOrder=!0),ho)No.currentNode=ho;else if(_o){const Bo=getLastChild(uo);if(!Bo)return null;if(this._acceptElement(Bo,Oo)===NodeFilter.FILTER_ACCEPT&&!Mo(!0))return Oo.skippedFocusable&&(io.outOfDOMOrder=!0),Co;No.currentNode=Bo}do _o?No.previousNode():No.nextNode();while(Mo());return Oo.skippedFocusable&&(io.outOfDOMOrder=!0),Co.length?Co:null}_acceptElement(to,no){var io,so,ao,lo;if(no.found)return NodeFilter.FILTER_ACCEPT;const uo=no.foundBackward;if(uo&&(to===uo||!uo.contains(to)))return no.found=!0,no.foundElement=uo,NodeFilter.FILTER_ACCEPT;const ho=no.container;if(to===ho)return NodeFilter.FILTER_SKIP;if(!ho.contains(to)||to.__tabsterDummyContainer||!((io=no.rejectElementsFrom)===null||io===void 0)&&io.contains(to))return NodeFilter.FILTER_REJECT;const go=no.currentCtx=RootAPI.getTabsterContext(this._tabster,to);if(!go)return NodeFilter.FILTER_SKIP;if(shouldIgnoreFocus(to))return this.isFocusable(to,void 0,!0,!0)&&(no.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!no.hasCustomCondition&&(to.tagName==="IFRAME"||to.tagName==="WEBVIEW"))return((so=go.modalizer)===null||so===void 0?void 0:so.userId)===((ao=this._tabster.modalizer)===null||ao===void 0?void 0:ao.activeId)?(no.found=!0,no.rejectElementsFrom=no.foundElement=to,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!no.ignoreAccessibility&&!this.isAccessible(to))return this.isFocusable(to,!1,!0,!0)&&(no.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let mo,yo=no.fromCtx;yo||(yo=no.fromCtx=RootAPI.getTabsterContext(this._tabster,no.from));const So=yo==null?void 0:yo.mover;let _o=go.groupper,ko=go.mover;if(mo=(lo=this._tabster.modalizer)===null||lo===void 0?void 0:lo.acceptElement(to,no),mo!==void 0&&(no.skippedFocusable=!0),mo===void 0&&(_o||ko||So)){const Co=_o==null?void 0:_o.getElement(),$o=So==null?void 0:So.getElement();let Ro=ko==null?void 0:ko.getElement();Ro&&($o!=null&&$o.contains(Ro))&&ho.contains($o)&&(!Co||!ko||$o.contains(Co))&&(ko=So,Ro=$o),Co&&(Co===ho||!ho.contains(Co))&&(_o=void 0),Ro&&!ho.contains(Ro)&&(ko=void 0),_o&&ko&&(Ro&&Co&&!Co.contains(Ro)?ko=void 0:_o=void 0),_o&&(mo=_o.acceptElement(to,no)),ko&&(mo=ko.acceptElement(to,no))}return mo===void 0&&(mo=no.acceptCondition(to)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,mo===NodeFilter.FILTER_SKIP&&this.isFocusable(to,!1,!0,!0)&&(no.skippedFocusable=!0)),mo===NodeFilter.FILTER_ACCEPT&&!no.found&&(no.isBackward?(no.foundBackward=to,mo=NodeFilter.FILTER_SKIP):(no.found=!0,no.foundElement=to)),mo}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */const Keys={Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40};/*! @@ -115,7 +115,7 @@ Error generating stack: `+ao.message+` */let _wasFocusedCounter=0;const _ariaHidden="aria-hidden";class ModalizerDummyManager extends DummyInputManager{constructor(to,no,io){super(no,to,DummyInputManagerPriorities.Modalizer,io),this._setHandlers((so,ao)=>{var lo,uo,ho;const go=to.get(),mo=go&&((lo=RootAPI.getRoot(no,go))===null||lo===void 0?void 0:lo.getElement()),yo=so.input;let So;if(mo&&yo){const _o=(uo=yo.__tabsterDummyContainer)===null||uo===void 0?void 0:uo.get(),ko=RootAPI.getTabsterContext(no,_o||yo);ko&&(So=(ho=FocusedElementState.findNextTabbable(no,ko,mo,yo,void 0,ao,!0))===null||ho===void 0?void 0:ho.element),So&&nativeFocus(So)}})}}class Modalizer extends TabsterPart{constructor(to,no,io,so,ao,lo){super(to,no,so),this._wasFocused=0,this.userId=so.id,this._onDispose=io,this._activeElements=lo,to.controlTab||(this.dummyManager=new ModalizerDummyManager(this._element,to,ao))}makeActive(to){if(this._isActive!==to){this._isActive=to;const no=this.getElement();if(no){const io=this._activeElements,so=io.map(ao=>ao.get()).indexOf(no);to?so<0&&io.push(new WeakHTMLElement(this._tabster.getWindow,no)):so>=0&&io.splice(so,1)}this.triggerFocusEvent(to?ModalizerActiveEventName:ModalizerInactiveEventName)}}focused(to){return to||(this._wasFocused=++_wasFocusedCounter),this._wasFocused}setProps(to){to.id&&(this.userId=to.id),this._props={...to}}dispose(){var to;this.makeActive(!1),this._onDispose(this),(to=this.dummyManager)===null||to===void 0||to.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(to){var no;return!!(!((no=this.getElement())===null||no===void 0)&&no.contains(to))}findNextTabbable(to,no,io,so){var ao,lo;if(!this.getElement())return null;const ho=this._tabster;let go=null,mo=!1,yo;const So=to&&((ao=RootAPI.getRoot(ho,to))===null||ao===void 0?void 0:ao.getElement());if(So){const _o={container:So,currentElement:to,referenceElement:no,ignoreAccessibility:so,useActiveModalizer:!0},ko={};go=ho.focusable[io?"findPrev":"findNext"](_o,ko),!go&&this._props.isTrapped&&(!((lo=ho.modalizer)===null||lo===void 0)&&lo.activeId)?(go=ho.focusable[io?"findLast":"findFirst"]({container:So,ignoreAccessibility:so,useActiveModalizer:!0},ko),mo=!0):mo=!!ko.outOfDOMOrder,yo=ko.uncontrolled}return{element:go,uncontrolled:yo,outOfDOMOrder:mo}}triggerFocusEvent(to,no){const io=this.getElement();let so=!1;if(io){const ao=no?this._activeElements.map(lo=>lo.get()):[io];for(const lo of ao)lo&&!triggerEvent(lo,to,{id:this.userId,element:io,eventName:to})&&(so=!0)}return so}_remove(){}}class ModalizerAPI{constructor(to,no,io){this._onModalizerDispose=ao=>{const lo=ao.id,uo=ao.userId,ho=this._parts[uo];delete this._modalizers[lo],ho&&(delete ho[lo],Object.keys(ho).length===0&&(delete this._parts[uo],this.activeId===uo&&this.setActive(void 0)))},this._onKeyDown=ao=>{var lo;if(ao.keyCode!==Keys.Esc)return;const uo=this._tabster,ho=uo.focusedElement.getFocusedElement();if(ho){const go=RootAPI.getTabsterContext(uo,ho),mo=go==null?void 0:go.modalizer;if(go&&!go.groupper&&(mo!=null&&mo.isActive())&&!go.ignoreKeydown(ao)){const yo=mo.userId;if(yo){const So=this._parts[yo];if(So){const _o=Object.keys(So).map(ko=>{var Co;const $o=So[ko],Ro=$o.getElement();let Oo;return Ro&&(Oo=(Co=getTabsterOnElement(this._tabster,Ro))===null||Co===void 0?void 0:Co.groupper),$o&&Ro&&Oo?{el:Ro,focusedSince:$o.focused(!0)}:{focusedSince:0}}).filter(ko=>ko.focusedSince>0).sort((ko,Co)=>ko.focusedSince>Co.focusedSince?-1:ko.focusedSince{var uo,ho;const go=ao&&RootAPI.getTabsterContext(this._tabster,ao);if(!go||!ao)return;const mo=this._augMap;for(let So=ao;So;So=So.parentElement)mo.has(So)&&(mo.delete(So),augmentAttribute(this._tabster,So,_ariaHidden));const yo=go.modalizer;if((ho=yo||((uo=getTabsterOnElement(this._tabster,ao))===null||uo===void 0?void 0:uo.modalizer))===null||ho===void 0||ho.focused(),(yo==null?void 0:yo.userId)===this.activeId){this.currentIsOthersAccessible=yo==null?void 0:yo.getProps().isOthersAccessible;return}if(lo.isFocusedProgrammatically||this.currentIsOthersAccessible||yo!=null&&yo.getProps().isAlwaysAccessible)this.setActive(yo);else{const So=this._win();So.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=So.setTimeout(()=>this._restoreModalizerFocus(ao),100)}},this._tabster=to,this._win=to.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=no,this._accessibleCheck=io,this.activeElements=[],to.controlTab||to.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),to.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const to=this._win();to.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(no=>{this._modalizers[no]&&(this._modalizers[no].dispose(),delete this._modalizers[no])}),to.clearTimeout(this._restoreModalizerFocusTimer),to.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(to,no,io){var so;const ao=new Modalizer(this._tabster,to,this._onModalizerDispose,no,io,this.activeElements),lo=ao.id,uo=no.id;this._modalizers[lo]=ao;let ho=this._parts[uo];return ho||(ho=this._parts[uo]={}),ho[lo]=ao,to.contains((so=this._tabster.focusedElement.getFocusedElement())!==null&&so!==void 0?so:null)&&(uo!==this.activeId?this.setActive(ao):ao.makeActive(!0)),ao}isAugmented(to){return this._augMap.has(to)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(to){const no=to==null?void 0:to.userId,io=this.activeId;if(io!==no){if(this.activeId=no,io){const so=this._parts[io];if(so)for(const ao of Object.keys(so))so[ao].makeActive(!1)}if(no){const so=this._parts[no];if(so)for(const ao of Object.keys(so))so[ao].makeActive(!0)}this.currentIsOthersAccessible=to==null?void 0:to.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(to,no,io){const so=RootAPI.getTabsterContext(this._tabster,to),ao=so==null?void 0:so.modalizer;if(ao){this.setActive(ao);const lo=ao.getProps(),uo=ao.getElement();if(uo){if(no===void 0&&(no=lo.isNoFocusFirst),!no&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:uo})||(io===void 0&&(io=lo.isNoFocusDefault),!io&&this._tabster.focusedElement.focusDefault(uo)))return!0;this._tabster.focusedElement.resetFocus(uo)}}return!1}acceptElement(to,no){var io;const so=no.modalizerUserId,ao=(io=no.currentCtx)===null||io===void 0?void 0:io.modalizer;if(so)for(const uo of this.activeElements){const ho=uo.get();if(ho&&(to.contains(ho)||ho===to))return NodeFilter.FILTER_SKIP}const lo=so===(ao==null?void 0:ao.userId)||!so&&(ao!=null&&ao.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return lo!==void 0&&(no.skippedFocusable=!0),lo}_hiddenUpdate(){var to;const no=this._tabster,io=no.getWindow().document.body,so=this.activeId,ao=this._parts,lo=[],uo=[],ho=this._alwaysAccessibleSelector,go=ho?Array.from(io.querySelectorAll(ho)):[],mo=[];for(const Ro of Object.keys(ao)){const Oo=ao[Ro];for(const No of Object.keys(Oo)){const Mo=Oo[No],Bo=Mo.getElement(),Lo=Mo.getProps().isAlwaysAccessible;Bo&&(Ro===so?(mo.push(Bo),this.currentIsOthersAccessible||lo.push(Bo)):Lo?go.push(Bo):uo.push(Bo))}}const yo=this._augMap,So=lo.length>0?[...lo,...go]:void 0,_o=[],ko=new WeakMap,Co=(Ro,Oo)=>{var No;const Mo=Ro.tagName;if(Mo==="SCRIPT"||Mo==="STYLE")return;let Bo=!1;yo.has(Ro)?Oo?Bo=!0:(yo.delete(Ro),augmentAttribute(no,Ro,_ariaHidden)):Oo&&!(!((No=this._accessibleCheck)===null||No===void 0)&&No.call(this,Ro,mo))&&augmentAttribute(no,Ro,_ariaHidden,"true")&&(yo.set(Ro,!0),Bo=!0),Bo&&(_o.push(new WeakHTMLElement(no.getWindow,Ro)),ko.set(Ro,!0))},$o=Ro=>{for(let Oo=Ro.firstElementChild;Oo;Oo=Oo.nextElementSibling){let No=!1,Mo=!1;if(So){for(const Bo of So){if(Oo===Bo){No=!0;break}if(Oo.contains(Bo)){Mo=!0;break}}Mo?$o(Oo):No||Co(Oo,!0)}else Co(Oo,!1)}};So||go.forEach(Ro=>Co(Ro,!1)),uo.forEach(Ro=>Co(Ro,!0)),io&&$o(io),(to=this._aug)===null||to===void 0||to.map(Ro=>Ro.get()).forEach(Ro=>{Ro&&!ko.get(Ro)&&Co(Ro,!1)}),this._aug=_o,this._augMap=ko}_restoreModalizerFocus(to){const no=to==null?void 0:to.ownerDocument;if(!to||!no)return;const io=RootAPI.getTabsterContext(this._tabster,to),so=io==null?void 0:io.modalizer,ao=this.activeId;if(!so&&!ao||so&&ao===so.userId)return;const lo=io==null?void 0:io.root.getElement();if(lo){let uo=this._tabster.focusable.findFirst({container:lo,useActiveModalizer:!0});if(uo){if(to.compareDocumentPosition(uo)&document.DOCUMENT_POSITION_PRECEDING&&(uo=this._tabster.focusable.findLast({container:lo,useActiveModalizer:!0}),!uo))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(uo);return}}to.blur()}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const _inputSelector=["input","textarea","*[contenteditable]"].join(", ");class MoverDummyManager extends DummyInputManager{constructor(to,no,io,so){super(no,to,DummyInputManagerPriorities.Mover,so),this._onFocusDummyInput=ao=>{var lo,uo;const ho=this._element.get(),go=ao.input;if(ho&&go){const mo=RootAPI.getTabsterContext(this._tabster,ho);let yo;mo&&(yo=(lo=FocusedElementState.findNextTabbable(this._tabster,mo,void 0,go,void 0,!ao.isFirst,!0))===null||lo===void 0?void 0:lo.element);const So=(uo=this._getMemorized())===null||uo===void 0?void 0:uo.get();So&&(yo=So),yo&&nativeFocus(yo)}},this._tabster=no,this._getMemorized=io,this._setHandlers(this._onFocusDummyInput)}}const _moverUpdateAdd=1,_moverUpdateAttr=2,_moverUpdateRemove=3;class Mover extends TabsterPart{constructor(to,no,io,so,ao){var lo;super(to,no,so),this._visible={},this._onIntersection=ho=>{for(const go of ho){const mo=go.target,yo=getElementUId(this._win,mo);let So,_o=this._fullyVisible;if(go.intersectionRatio>=.25?(So=go.intersectionRatio>=.75?Visibilities.Visible:Visibilities.PartiallyVisible,So===Visibilities.Visible&&(_o=yo)):So=Visibilities.Invisible,this._visible[yo]!==So){So===void 0?(delete this._visible[yo],_o===yo&&delete this._fullyVisible):(this._visible[yo]=So,this._fullyVisible=_o);const ko=this.getState(mo);ko&&triggerEvent(mo,MoverEventName,ko)}}},this._win=to.getWindow,this.visibilityTolerance=(lo=so.visibilityTolerance)!==null&&lo!==void 0?lo:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=io;const uo=()=>so.memorizeCurrent?this._current:void 0;to.controlTab||(this.dummyManager=new MoverDummyManager(this._element,to,uo,ao))}dispose(){var to;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const no=this._win();this._setCurrentTimer&&(no.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(no.clearTimeout(this._updateTimer),delete this._updateTimer),(to=this.dummyManager)===null||to===void 0||to.dispose(),delete this.dummyManager}setCurrent(to){to?this._current=new WeakHTMLElement(this._win,to):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var no;delete this._setCurrentTimer;const io=[];this._current!==this._prevCurrent&&(io.push(this._current),io.push(this._prevCurrent),this._prevCurrent=this._current);for(const so of io){const ao=so==null?void 0:so.get();if(ao&&((no=this._allElements)===null||no===void 0?void 0:no.get(ao))===this){const lo=this._props;if(ao&&(lo.visibilityAware!==void 0||lo.trackState)){const uo=this.getState(ao);uo&&triggerEvent(ao,MoverEventName,uo)}}}}))}getCurrent(){var to;return((to=this._current)===null||to===void 0?void 0:to.get())||null}findNextTabbable(to,no,io,so){var ao;const lo=this.getElement(),uo=lo&&((ao=to==null?void 0:to.__tabsterDummyContainer)===null||ao===void 0?void 0:ao.get())===lo;if(!lo)return null;let ho=null,go=!1,mo;if(this._props.tabbable||uo||to&&!lo.contains(to)){const yo={currentElement:to,referenceElement:no,container:lo,ignoreAccessibility:so,useActiveModalizer:!0},So={};ho=this._tabster.focusable[io?"findPrev":"findNext"](yo,So),go=!!So.outOfDOMOrder,mo=So.uncontrolled}return{element:ho,uncontrolled:mo,outOfDOMOrder:go}}acceptElement(to,no){var io,so,ao;if(!FocusedElementState.isTabbing)return!((io=no.currentCtx)===null||io===void 0)&&io.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:lo,visibilityAware:uo,hasDefault:ho=!0}=this._props,go=this.getElement();if(go&&(lo||uo||ho)&&(!go.contains(no.from)||((so=no.from.__tabsterDummyContainer)===null||so===void 0?void 0:so.get())===go)){let mo;if(lo){const yo=(ao=this._current)===null||ao===void 0?void 0:ao.get();yo&&no.acceptCondition(yo)&&(mo=yo)}if(!mo&&ho&&(mo=this._tabster.focusable.findDefault({container:go,useActiveModalizer:!0})),!mo&&uo&&(mo=this._tabster.focusable.findElement({container:go,useActiveModalizer:!0,isBackward:no.isBackward,acceptCondition:yo=>{var So;const _o=getElementUId(this._win,yo),ko=this._visible[_o];return go!==yo&&!!(!((So=this._allElements)===null||So===void 0)&&So.get(yo))&&no.acceptCondition(yo)&&(ko===Visibilities.Visible||ko===Visibilities.PartiallyVisible&&(uo===Visibilities.PartiallyVisible||!this._fullyVisible))}})),mo)return no.found=!0,no.foundElement=mo,no.rejectElementsFrom=go,no.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const to=this.getElement();if(this._unobserve||!to||typeof MutationObserver>"u")return;const no=this._win(),io=this._allElements=new WeakMap,so=this._tabster.focusable;let ao=this._updateQueue=[];const lo=new MutationObserver(_o=>{for(const ko of _o){const Co=ko.target,$o=ko.removedNodes,Ro=ko.addedNodes;if(ko.type==="attributes")ko.attributeName==="tabindex"&&ao.push({element:Co,type:_moverUpdateAttr});else{for(let Oo=0;Oo<$o.length;Oo++)ao.push({element:$o[Oo],type:_moverUpdateRemove});for(let Oo=0;Oo{var Co,$o;const Ro=io.get(_o);Ro&&ko&&((Co=this._intersectionObserver)===null||Co===void 0||Co.unobserve(_o),io.delete(_o)),!Ro&&!ko&&(io.set(_o,this),($o=this._intersectionObserver)===null||$o===void 0||$o.observe(_o))},ho=_o=>{const ko=so.isFocusable(_o);io.get(_o)?ko||uo(_o,!0):ko&&uo(_o)},go=_o=>{const{mover:ko}=So(_o);if(ko&&ko!==this)if(ko.getElement()===_o&&so.isFocusable(_o))uo(_o);else return;const Co=createElementTreeWalker(no.document,_o,$o=>{const{mover:Ro,groupper:Oo}=So($o);if(Ro&&Ro!==this)return NodeFilter.FILTER_REJECT;const No=Oo==null?void 0:Oo.getFirst(!0);return Oo&&Oo.getElement()!==$o&&No&&No!==$o?NodeFilter.FILTER_REJECT:(so.isFocusable($o)&&uo($o),NodeFilter.FILTER_SKIP)});if(Co)for(Co.currentNode=_o;Co.nextNode(););},mo=_o=>{io.get(_o)&&uo(_o,!0);for(let Co=_o.firstElementChild;Co;Co=Co.nextElementSibling)mo(Co)},yo=()=>{!this._updateTimer&&ao.length&&(this._updateTimer=no.setTimeout(()=>{delete this._updateTimer;for(const{element:_o,type:ko}of ao)switch(ko){case _moverUpdateAttr:ho(_o);break;case _moverUpdateAdd:go(_o);break;case _moverUpdateRemove:mo(_o);break}ao=this._updateQueue=[]},0))},So=_o=>{const ko={};for(let Co=_o;Co;Co=Co.parentElement){const $o=getTabsterOnElement(this._tabster,Co);if($o&&($o.groupper&&!ko.groupper&&(ko.groupper=$o.groupper),$o.mover)){ko.mover=$o.mover;break}}return ko};ao.push({element:to,type:_moverUpdateAdd}),yo(),lo.observe(to,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{lo.disconnect()}}getState(to){const no=getElementUId(this._win,to);if(no in this._visible){const io=this._visible[no]||Visibilities.Invisible;return{isCurrent:this._current?this._current.get()===to:void 0,visibility:io}}}}function getDistance$1(eo,to,no,io,so,ao,lo,uo){const ho=no{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=io=>{delete this._movers[io.id]},this._onFocus=io=>{var so;let ao=io,lo=io;for(let uo=io==null?void 0:io.parentElement;uo;uo=uo.parentElement){const ho=(so=getTabsterOnElement(this._tabster,uo))===null||so===void 0?void 0:so.mover;ho&&(ho.setCurrent(lo),ao=void 0),!ao&&this._tabster.focusable.isFocusable(uo)&&(ao=lo=uo)}},this._onKeyDown=async io=>{var so,ao,lo,uo;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(so=this._ignoredInputResolve)===null||so===void 0||so.call(this,!1);let ho=io.keyCode;if(io.ctrlKey||io.altKey||io.shiftKey||io.metaKey)return;switch(ho){case Keys.Down:case Keys.Right:case Keys.Up:case Keys.Left:case Keys.PageDown:case Keys.PageUp:case Keys.Home:case Keys.End:break;default:return}const go=this._tabster,mo=go.focusedElement.getFocusedElement();if(!mo||await this._isIgnoredInput(mo,ho))return;const yo=RootAPI.getTabsterContext(go,mo,{checkRtl:!0});if(!yo||!yo.mover||yo.excludedFromMover||yo.ignoreKeydown(io))return;const So=yo.mover,_o=So.getElement();if(yo.groupperBeforeMover){const Yo=yo.groupper;if(Yo&&!Yo.isActive(!0)){for(let qo=(ao=Yo.getElement())===null||ao===void 0?void 0:ao.parentElement;qo&&qo!==_o;qo=qo.parentElement)if(!((uo=(lo=getTabsterOnElement(go,qo))===null||lo===void 0?void 0:lo.groupper)===null||uo===void 0)&&uo.isActive(!0))return}else return}if(!_o)return;const ko=go.focusable,Co=So.getProps(),$o=Co.direction||MoverDirections.Both,Ro=$o===MoverDirections.Both,Oo=Ro||$o===MoverDirections.Vertical,No=Ro||$o===MoverDirections.Horizontal,Mo=$o===MoverDirections.GridLinear,Bo=Mo||$o===MoverDirections.Grid,Po=Co.cyclic;let Lo,Go,Do,Uo=0,Ho=0;if(Bo&&(Do=mo.getBoundingClientRect(),Uo=Math.ceil(Do.left),Ho=Math.floor(Do.right)),yo.rtl&&(ho===Keys.Right?ho=Keys.Left:ho===Keys.Left&&(ho=Keys.Right)),ho===Keys.Down&&Oo||ho===Keys.Right&&(No||Bo))if(Lo=ko.findNext({currentElement:mo,container:_o,useActiveModalizer:!0}),Lo&&Bo){const Yo=Math.ceil(Lo.getBoundingClientRect().left);!Mo&&Ho>Yo&&(Lo=void 0)}else!Lo&&Po&&(Lo=ko.findFirst({container:_o,useActiveModalizer:!0}));else if(ho===Keys.Up&&Oo||ho===Keys.Left&&(No||Bo))if(Lo=ko.findPrev({currentElement:mo,container:_o,useActiveModalizer:!0}),Lo&&Bo){const Yo=Math.floor(Lo.getBoundingClientRect().right);!Mo&&Yo>Uo&&(Lo=void 0)}else!Lo&&Po&&(Lo=ko.findLast({container:_o,useActiveModalizer:!0}));else if(ho===Keys.Home)Bo?ko.findElement({container:_o,currentElement:mo,useActiveModalizer:!0,isBackward:!0,acceptCondition:Yo=>{var qo;if(!ko.isFocusable(Yo))return!1;const Jo=Math.ceil((qo=Yo.getBoundingClientRect().left)!==null&&qo!==void 0?qo:0);return Yo!==mo&&Uo<=Jo?!0:(Lo=Yo,!1)}}):Lo=ko.findFirst({container:_o,useActiveModalizer:!0});else if(ho===Keys.End)Bo?ko.findElement({container:_o,currentElement:mo,useActiveModalizer:!0,acceptCondition:Yo=>{var qo;if(!ko.isFocusable(Yo))return!1;const Jo=Math.ceil((qo=Yo.getBoundingClientRect().left)!==null&&qo!==void 0?qo:0);return Yo!==mo&&Uo>=Jo?!0:(Lo=Yo,!1)}}):Lo=ko.findLast({container:_o,useActiveModalizer:!0});else if(ho===Keys.PageUp){if(ko.findElement({currentElement:mo,container:_o,useActiveModalizer:!0,isBackward:!0,acceptCondition:Yo=>ko.isFocusable(Yo)?isElementVerticallyVisibleInContainer(this._win,Yo,So.visibilityTolerance)?(Lo=Yo,!1):!0:!1}),Bo&&Lo){const Yo=Math.ceil(Lo.getBoundingClientRect().left);ko.findElement({currentElement:Lo,container:_o,useActiveModalizer:!0,acceptCondition:qo=>{if(!ko.isFocusable(qo))return!1;const Jo=Math.ceil(qo.getBoundingClientRect().left);return Uo=Jo?!0:(Lo=qo,!1)}})}Go=!1}else if(ho===Keys.PageDown){if(ko.findElement({currentElement:mo,container:_o,useActiveModalizer:!0,acceptCondition:Yo=>ko.isFocusable(Yo)?isElementVerticallyVisibleInContainer(this._win,Yo,So.visibilityTolerance)?(Lo=Yo,!1):!0:!1}),Bo&&Lo){const Yo=Math.ceil(Lo.getBoundingClientRect().left);ko.findElement({currentElement:Lo,container:_o,useActiveModalizer:!0,isBackward:!0,acceptCondition:qo=>{if(!ko.isFocusable(qo))return!1;const Jo=Math.ceil(qo.getBoundingClientRect().left);return Uo>Jo||Yo<=Jo?!0:(Lo=qo,!1)}})}Go=!0}else if(Bo){const Yo=ho===Keys.Up,qo=Uo,Jo=Math.ceil(Do.top),ps=Ho,Qo=Math.floor(Do.bottom);let hs,gs,ys=0;ko.findAll({container:_o,currentElement:mo,isBackward:Yo,onElement:vs=>{const ks=vs.getBoundingClientRect(),Os=Math.ceil(ks.left),Ts=Math.ceil(ks.top),Xs=Math.floor(ks.right),Ws=Math.floor(ks.bottom);if(Yo&&JoTs)return!0;const Ps=Math.ceil(Math.min(ps,Xs))-Math.floor(Math.max(qo,Os)),qs=Math.ceil(Math.min(ps-qo,Xs-Os));if(Ps>0&&qs>=Ps){const ga=Ps/qs;ga>ys&&(hs=vs,ys=ga)}else if(ys===0){const ga=getDistance$1(qo,Jo,ps,Qo,Os,Ts,Xs,Ws);(gs===void 0||ga0)return!1;return!0}}),Lo=hs}Lo&&triggerMoveFocusEvent({by:"mover",owner:_o,next:Lo,relatedEvent:io})&&(Go!==void 0&&scrollIntoView$4(this._win,Lo,Go),io.preventDefault(),io.stopImmediatePropagation(),nativeFocus(Lo))},this._tabster=to,this._win=no,this._movers={},to.queueInit(this._init)}dispose(){var to;const no=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(to=this._ignoredInputResolve)===null||to===void 0||to.call(this,!1),this._ignoredInputTimer&&(no.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),no.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(io=>{this._movers[io]&&(this._movers[io].dispose(),delete this._movers[io])})}createMover(to,no,io){const so=new Mover(this._tabster,to,this._onMoverDispose,no,io);return this._movers[so.id]=so,so}async _isIgnoredInput(to,no){var io;if(to.getAttribute("aria-expanded")==="true"&&to.hasAttribute("aria-activedescendant"))return!0;if(matchesSelector(to,_inputSelector)){let so=0,ao=0,lo=0,uo;if(to.tagName==="INPUT"||to.tagName==="TEXTAREA"){const ho=to.type;if(lo=(to.value||"").length,ho==="email"||ho==="number"){if(lo){const mo=(io=to.ownerDocument.defaultView)===null||io===void 0?void 0:io.getSelection();if(mo){const yo=mo.toString().length,So=no===Keys.Left||no===Keys.Up;if(mo.modify("extend",So?"backward":"forward","character"),yo!==mo.toString().length)return mo.modify("extend",So?"forward":"backward","character"),!0;lo=0}}}else{const mo=to.selectionStart;if(mo===null)return ho==="hidden";so=mo||0,ao=to.selectionEnd||0}}else to.contentEditable==="true"&&(uo=new(getPromise(this._win))(ho=>{this._ignoredInputResolve=ko=>{delete this._ignoredInputResolve,ho(ko)};const go=this._win();this._ignoredInputTimer&&go.clearTimeout(this._ignoredInputTimer);const{anchorNode:mo,focusNode:yo,anchorOffset:So,focusOffset:_o}=go.getSelection()||{};this._ignoredInputTimer=go.setTimeout(()=>{var ko,Co,$o;delete this._ignoredInputTimer;const{anchorNode:Ro,focusNode:Oo,anchorOffset:No,focusOffset:Mo}=go.getSelection()||{};if(Ro!==mo||Oo!==yo||No!==So||Mo!==_o){(ko=this._ignoredInputResolve)===null||ko===void 0||ko.call(this,!1);return}if(so=No||0,ao=Mo||0,lo=((Co=to.textContent)===null||Co===void 0?void 0:Co.length)||0,Ro&&Oo&&to.contains(Ro)&&to.contains(Oo)&&Ro!==to){let Bo=!1;const Po=Lo=>{if(Lo===Ro)Bo=!0;else if(Lo===Oo)return!0;const Go=Lo.textContent;if(Go&&!Lo.firstChild){const Uo=Go.length;Bo?Oo!==Ro&&(ao+=Uo):(so+=Uo,ao+=Uo)}let Do=!1;for(let Uo=Lo.firstChild;Uo&&!Do;Uo=Uo.nextSibling)Do=Po(Uo);return Do};Po(to)}($o=this._ignoredInputResolve)===null||$o===void 0||$o.call(this,!0)},0)}));if(uo&&!await uo||so!==ao||so>0&&(no===Keys.Left||no===Keys.Up||no===Keys.Home)||so{var lo,uo;const ho=this._element.get(),go=ao.input;if(ho&&go){const mo=RootAPI.getTabsterContext(this._tabster,ho);let yo;mo&&(yo=(lo=FocusedElementState.findNextTabbable(this._tabster,mo,void 0,go,void 0,!ao.isFirst,!0))===null||lo===void 0?void 0:lo.element);const So=(uo=this._getMemorized())===null||uo===void 0?void 0:uo.get();So&&(yo=So),yo&&nativeFocus(yo)}},this._tabster=no,this._getMemorized=io,this._setHandlers(this._onFocusDummyInput)}}const _moverUpdateAdd=1,_moverUpdateAttr=2,_moverUpdateRemove=3;class Mover extends TabsterPart{constructor(to,no,io,so,ao){var lo;super(to,no,so),this._visible={},this._onIntersection=ho=>{for(const go of ho){const mo=go.target,yo=getElementUId(this._win,mo);let So,_o=this._fullyVisible;if(go.intersectionRatio>=.25?(So=go.intersectionRatio>=.75?Visibilities.Visible:Visibilities.PartiallyVisible,So===Visibilities.Visible&&(_o=yo)):So=Visibilities.Invisible,this._visible[yo]!==So){So===void 0?(delete this._visible[yo],_o===yo&&delete this._fullyVisible):(this._visible[yo]=So,this._fullyVisible=_o);const ko=this.getState(mo);ko&&triggerEvent(mo,MoverEventName,ko)}}},this._win=to.getWindow,this.visibilityTolerance=(lo=so.visibilityTolerance)!==null&&lo!==void 0?lo:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=io;const uo=()=>so.memorizeCurrent?this._current:void 0;to.controlTab||(this.dummyManager=new MoverDummyManager(this._element,to,uo,ao))}dispose(){var to;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const no=this._win();this._setCurrentTimer&&(no.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(no.clearTimeout(this._updateTimer),delete this._updateTimer),(to=this.dummyManager)===null||to===void 0||to.dispose(),delete this.dummyManager}setCurrent(to){to?this._current=new WeakHTMLElement(this._win,to):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var no;delete this._setCurrentTimer;const io=[];this._current!==this._prevCurrent&&(io.push(this._current),io.push(this._prevCurrent),this._prevCurrent=this._current);for(const so of io){const ao=so==null?void 0:so.get();if(ao&&((no=this._allElements)===null||no===void 0?void 0:no.get(ao))===this){const lo=this._props;if(ao&&(lo.visibilityAware!==void 0||lo.trackState)){const uo=this.getState(ao);uo&&triggerEvent(ao,MoverEventName,uo)}}}}))}getCurrent(){var to;return((to=this._current)===null||to===void 0?void 0:to.get())||null}findNextTabbable(to,no,io,so){var ao;const lo=this.getElement(),uo=lo&&((ao=to==null?void 0:to.__tabsterDummyContainer)===null||ao===void 0?void 0:ao.get())===lo;if(!lo)return null;let ho=null,go=!1,mo;if(this._props.tabbable||uo||to&&!lo.contains(to)){const yo={currentElement:to,referenceElement:no,container:lo,ignoreAccessibility:so,useActiveModalizer:!0},So={};ho=this._tabster.focusable[io?"findPrev":"findNext"](yo,So),go=!!So.outOfDOMOrder,mo=So.uncontrolled}return{element:ho,uncontrolled:mo,outOfDOMOrder:go}}acceptElement(to,no){var io,so,ao;if(!FocusedElementState.isTabbing)return!((io=no.currentCtx)===null||io===void 0)&&io.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:lo,visibilityAware:uo,hasDefault:ho=!0}=this._props,go=this.getElement();if(go&&(lo||uo||ho)&&(!go.contains(no.from)||((so=no.from.__tabsterDummyContainer)===null||so===void 0?void 0:so.get())===go)){let mo;if(lo){const yo=(ao=this._current)===null||ao===void 0?void 0:ao.get();yo&&no.acceptCondition(yo)&&(mo=yo)}if(!mo&&ho&&(mo=this._tabster.focusable.findDefault({container:go,useActiveModalizer:!0})),!mo&&uo&&(mo=this._tabster.focusable.findElement({container:go,useActiveModalizer:!0,isBackward:no.isBackward,acceptCondition:yo=>{var So;const _o=getElementUId(this._win,yo),ko=this._visible[_o];return go!==yo&&!!(!((So=this._allElements)===null||So===void 0)&&So.get(yo))&&no.acceptCondition(yo)&&(ko===Visibilities.Visible||ko===Visibilities.PartiallyVisible&&(uo===Visibilities.PartiallyVisible||!this._fullyVisible))}})),mo)return no.found=!0,no.foundElement=mo,no.rejectElementsFrom=go,no.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const to=this.getElement();if(this._unobserve||!to||typeof MutationObserver>"u")return;const no=this._win(),io=this._allElements=new WeakMap,so=this._tabster.focusable;let ao=this._updateQueue=[];const lo=new MutationObserver(_o=>{for(const ko of _o){const Co=ko.target,$o=ko.removedNodes,Ro=ko.addedNodes;if(ko.type==="attributes")ko.attributeName==="tabindex"&&ao.push({element:Co,type:_moverUpdateAttr});else{for(let Oo=0;Oo<$o.length;Oo++)ao.push({element:$o[Oo],type:_moverUpdateRemove});for(let Oo=0;Oo{var Co,$o;const Ro=io.get(_o);Ro&&ko&&((Co=this._intersectionObserver)===null||Co===void 0||Co.unobserve(_o),io.delete(_o)),!Ro&&!ko&&(io.set(_o,this),($o=this._intersectionObserver)===null||$o===void 0||$o.observe(_o))},ho=_o=>{const ko=so.isFocusable(_o);io.get(_o)?ko||uo(_o,!0):ko&&uo(_o)},go=_o=>{const{mover:ko}=So(_o);if(ko&&ko!==this)if(ko.getElement()===_o&&so.isFocusable(_o))uo(_o);else return;const Co=createElementTreeWalker(no.document,_o,$o=>{const{mover:Ro,groupper:Oo}=So($o);if(Ro&&Ro!==this)return NodeFilter.FILTER_REJECT;const No=Oo==null?void 0:Oo.getFirst(!0);return Oo&&Oo.getElement()!==$o&&No&&No!==$o?NodeFilter.FILTER_REJECT:(so.isFocusable($o)&&uo($o),NodeFilter.FILTER_SKIP)});if(Co)for(Co.currentNode=_o;Co.nextNode(););},mo=_o=>{io.get(_o)&&uo(_o,!0);for(let Co=_o.firstElementChild;Co;Co=Co.nextElementSibling)mo(Co)},yo=()=>{!this._updateTimer&&ao.length&&(this._updateTimer=no.setTimeout(()=>{delete this._updateTimer;for(const{element:_o,type:ko}of ao)switch(ko){case _moverUpdateAttr:ho(_o);break;case _moverUpdateAdd:go(_o);break;case _moverUpdateRemove:mo(_o);break}ao=this._updateQueue=[]},0))},So=_o=>{const ko={};for(let Co=_o;Co;Co=Co.parentElement){const $o=getTabsterOnElement(this._tabster,Co);if($o&&($o.groupper&&!ko.groupper&&(ko.groupper=$o.groupper),$o.mover)){ko.mover=$o.mover;break}}return ko};ao.push({element:to,type:_moverUpdateAdd}),yo(),lo.observe(to,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{lo.disconnect()}}getState(to){const no=getElementUId(this._win,to);if(no in this._visible){const io=this._visible[no]||Visibilities.Invisible;return{isCurrent:this._current?this._current.get()===to:void 0,visibility:io}}}}function getDistance$1(eo,to,no,io,so,ao,lo,uo){const ho=no{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=io=>{delete this._movers[io.id]},this._onFocus=io=>{var so;let ao=io,lo=io;for(let uo=io==null?void 0:io.parentElement;uo;uo=uo.parentElement){const ho=(so=getTabsterOnElement(this._tabster,uo))===null||so===void 0?void 0:so.mover;ho&&(ho.setCurrent(lo),ao=void 0),!ao&&this._tabster.focusable.isFocusable(uo)&&(ao=lo=uo)}},this._onKeyDown=async io=>{var so,ao,lo,uo;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(so=this._ignoredInputResolve)===null||so===void 0||so.call(this,!1);let ho=io.keyCode;if(io.ctrlKey||io.altKey||io.shiftKey||io.metaKey)return;switch(ho){case Keys.Down:case Keys.Right:case Keys.Up:case Keys.Left:case Keys.PageDown:case Keys.PageUp:case Keys.Home:case Keys.End:break;default:return}const go=this._tabster,mo=go.focusedElement.getFocusedElement();if(!mo||await this._isIgnoredInput(mo,ho))return;const yo=RootAPI.getTabsterContext(go,mo,{checkRtl:!0});if(!yo||!yo.mover||yo.excludedFromMover||yo.ignoreKeydown(io))return;const So=yo.mover,_o=So.getElement();if(yo.groupperBeforeMover){const Yo=yo.groupper;if(Yo&&!Yo.isActive(!0)){for(let qo=(ao=Yo.getElement())===null||ao===void 0?void 0:ao.parentElement;qo&&qo!==_o;qo=qo.parentElement)if(!((uo=(lo=getTabsterOnElement(go,qo))===null||lo===void 0?void 0:lo.groupper)===null||uo===void 0)&&uo.isActive(!0))return}else return}if(!_o)return;const ko=go.focusable,Co=So.getProps(),$o=Co.direction||MoverDirections.Both,Ro=$o===MoverDirections.Both,Oo=Ro||$o===MoverDirections.Vertical,No=Ro||$o===MoverDirections.Horizontal,Mo=$o===MoverDirections.GridLinear,Bo=Mo||$o===MoverDirections.Grid,Fo=Co.cyclic;let Lo,Go,Do,Uo=0,Ho=0;if(Bo&&(Do=mo.getBoundingClientRect(),Uo=Math.ceil(Do.left),Ho=Math.floor(Do.right)),yo.rtl&&(ho===Keys.Right?ho=Keys.Left:ho===Keys.Left&&(ho=Keys.Right)),ho===Keys.Down&&Oo||ho===Keys.Right&&(No||Bo))if(Lo=ko.findNext({currentElement:mo,container:_o,useActiveModalizer:!0}),Lo&&Bo){const Yo=Math.ceil(Lo.getBoundingClientRect().left);!Mo&&Ho>Yo&&(Lo=void 0)}else!Lo&&Fo&&(Lo=ko.findFirst({container:_o,useActiveModalizer:!0}));else if(ho===Keys.Up&&Oo||ho===Keys.Left&&(No||Bo))if(Lo=ko.findPrev({currentElement:mo,container:_o,useActiveModalizer:!0}),Lo&&Bo){const Yo=Math.floor(Lo.getBoundingClientRect().right);!Mo&&Yo>Uo&&(Lo=void 0)}else!Lo&&Fo&&(Lo=ko.findLast({container:_o,useActiveModalizer:!0}));else if(ho===Keys.Home)Bo?ko.findElement({container:_o,currentElement:mo,useActiveModalizer:!0,isBackward:!0,acceptCondition:Yo=>{var qo;if(!ko.isFocusable(Yo))return!1;const Jo=Math.ceil((qo=Yo.getBoundingClientRect().left)!==null&&qo!==void 0?qo:0);return Yo!==mo&&Uo<=Jo?!0:(Lo=Yo,!1)}}):Lo=ko.findFirst({container:_o,useActiveModalizer:!0});else if(ho===Keys.End)Bo?ko.findElement({container:_o,currentElement:mo,useActiveModalizer:!0,acceptCondition:Yo=>{var qo;if(!ko.isFocusable(Yo))return!1;const Jo=Math.ceil((qo=Yo.getBoundingClientRect().left)!==null&&qo!==void 0?qo:0);return Yo!==mo&&Uo>=Jo?!0:(Lo=Yo,!1)}}):Lo=ko.findLast({container:_o,useActiveModalizer:!0});else if(ho===Keys.PageUp){if(ko.findElement({currentElement:mo,container:_o,useActiveModalizer:!0,isBackward:!0,acceptCondition:Yo=>ko.isFocusable(Yo)?isElementVerticallyVisibleInContainer(this._win,Yo,So.visibilityTolerance)?(Lo=Yo,!1):!0:!1}),Bo&&Lo){const Yo=Math.ceil(Lo.getBoundingClientRect().left);ko.findElement({currentElement:Lo,container:_o,useActiveModalizer:!0,acceptCondition:qo=>{if(!ko.isFocusable(qo))return!1;const Jo=Math.ceil(qo.getBoundingClientRect().left);return Uo=Jo?!0:(Lo=qo,!1)}})}Go=!1}else if(ho===Keys.PageDown){if(ko.findElement({currentElement:mo,container:_o,useActiveModalizer:!0,acceptCondition:Yo=>ko.isFocusable(Yo)?isElementVerticallyVisibleInContainer(this._win,Yo,So.visibilityTolerance)?(Lo=Yo,!1):!0:!1}),Bo&&Lo){const Yo=Math.ceil(Lo.getBoundingClientRect().left);ko.findElement({currentElement:Lo,container:_o,useActiveModalizer:!0,isBackward:!0,acceptCondition:qo=>{if(!ko.isFocusable(qo))return!1;const Jo=Math.ceil(qo.getBoundingClientRect().left);return Uo>Jo||Yo<=Jo?!0:(Lo=qo,!1)}})}Go=!0}else if(Bo){const Yo=ho===Keys.Up,qo=Uo,Jo=Math.ceil(Do.top),ps=Ho,Qo=Math.floor(Do.bottom);let hs,gs,ys=0;ko.findAll({container:_o,currentElement:mo,isBackward:Yo,onElement:vs=>{const ks=vs.getBoundingClientRect(),Os=Math.ceil(ks.left),Ts=Math.ceil(ks.top),Xs=Math.floor(ks.right),Ws=Math.floor(ks.bottom);if(Yo&&JoTs)return!0;const Ps=Math.ceil(Math.min(ps,Xs))-Math.floor(Math.max(qo,Os)),qs=Math.ceil(Math.min(ps-qo,Xs-Os));if(Ps>0&&qs>=Ps){const ga=Ps/qs;ga>ys&&(hs=vs,ys=ga)}else if(ys===0){const ga=getDistance$1(qo,Jo,ps,Qo,Os,Ts,Xs,Ws);(gs===void 0||ga0)return!1;return!0}}),Lo=hs}Lo&&triggerMoveFocusEvent({by:"mover",owner:_o,next:Lo,relatedEvent:io})&&(Go!==void 0&&scrollIntoView$4(this._win,Lo,Go),io.preventDefault(),io.stopImmediatePropagation(),nativeFocus(Lo))},this._tabster=to,this._win=no,this._movers={},to.queueInit(this._init)}dispose(){var to;const no=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(to=this._ignoredInputResolve)===null||to===void 0||to.call(this,!1),this._ignoredInputTimer&&(no.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),no.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(io=>{this._movers[io]&&(this._movers[io].dispose(),delete this._movers[io])})}createMover(to,no,io){const so=new Mover(this._tabster,to,this._onMoverDispose,no,io);return this._movers[so.id]=so,so}async _isIgnoredInput(to,no){var io;if(to.getAttribute("aria-expanded")==="true"&&to.hasAttribute("aria-activedescendant"))return!0;if(matchesSelector(to,_inputSelector)){let so=0,ao=0,lo=0,uo;if(to.tagName==="INPUT"||to.tagName==="TEXTAREA"){const ho=to.type;if(lo=(to.value||"").length,ho==="email"||ho==="number"){if(lo){const mo=(io=to.ownerDocument.defaultView)===null||io===void 0?void 0:io.getSelection();if(mo){const yo=mo.toString().length,So=no===Keys.Left||no===Keys.Up;if(mo.modify("extend",So?"backward":"forward","character"),yo!==mo.toString().length)return mo.modify("extend",So?"forward":"backward","character"),!0;lo=0}}}else{const mo=to.selectionStart;if(mo===null)return ho==="hidden";so=mo||0,ao=to.selectionEnd||0}}else to.contentEditable==="true"&&(uo=new(getPromise(this._win))(ho=>{this._ignoredInputResolve=ko=>{delete this._ignoredInputResolve,ho(ko)};const go=this._win();this._ignoredInputTimer&&go.clearTimeout(this._ignoredInputTimer);const{anchorNode:mo,focusNode:yo,anchorOffset:So,focusOffset:_o}=go.getSelection()||{};this._ignoredInputTimer=go.setTimeout(()=>{var ko,Co,$o;delete this._ignoredInputTimer;const{anchorNode:Ro,focusNode:Oo,anchorOffset:No,focusOffset:Mo}=go.getSelection()||{};if(Ro!==mo||Oo!==yo||No!==So||Mo!==_o){(ko=this._ignoredInputResolve)===null||ko===void 0||ko.call(this,!1);return}if(so=No||0,ao=Mo||0,lo=((Co=to.textContent)===null||Co===void 0?void 0:Co.length)||0,Ro&&Oo&&to.contains(Ro)&&to.contains(Oo)&&Ro!==to){let Bo=!1;const Fo=Lo=>{if(Lo===Ro)Bo=!0;else if(Lo===Oo)return!0;const Go=Lo.textContent;if(Go&&!Lo.firstChild){const Uo=Go.length;Bo?Oo!==Ro&&(ao+=Uo):(so+=Uo,ao+=Uo)}let Do=!1;for(let Uo=Lo.firstChild;Uo&&!Do;Uo=Uo.nextSibling)Do=Fo(Uo);return Do};Fo(to)}($o=this._ignoredInputResolve)===null||$o===void 0||$o.call(this,!0)},0)}));if(uo&&!await uo||so!==ao||so>0&&(no===Keys.Left||no===Keys.Up||no===Keys.Home)||so"u")return()=>{};const so=to.getWindow;let ao;const lo=mo=>{var yo,So,_o,ko,Co;for(const $o of mo){const Ro=$o.target,Oo=$o.removedNodes,No=$o.addedNodes;if($o.type==="attributes")$o.attributeName===TabsterAttributeName&&no(to,Ro);else{for(let Mo=0;Moho(_o,yo));if(So)for(;So.nextNode(););}function ho(mo,yo){var So;if(!mo.getAttribute)return NodeFilter.FILTER_SKIP;const _o=mo.__tabsterElementUID;return _o&&ao&&(yo?delete ao[_o]:(So=ao[_o])!==null&&So!==void 0||(ao[_o]=new WeakHTMLElement(so,mo))),(getTabsterOnElement(to,mo)||mo.hasAttribute(TabsterAttributeName))&&no(to,mo,yo),NodeFilter.FILTER_SKIP}const go=new MutationObserver(lo);return io&&uo(so().document.body),go.observe(eo,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[TabsterAttributeName]}),()=>{go.disconnect()}}/*! @@ -127,7 +127,7 @@ Error generating stack: `+ao.message+` */const EVENT_NAME="restorer:restorefocus",HISOTRY_DEPTH=10;class Restorer extends TabsterPart{constructor(to,no,io){var so;if(super(to,no,io),this._hasFocus=!1,this._onFocusOut=ao=>{var lo;const uo=(lo=this._element)===null||lo===void 0?void 0:lo.get();uo&&ao.relatedTarget===null&&uo.dispatchEvent(new Event(EVENT_NAME,{bubbles:!0})),uo&&!uo.contains(ao.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===RestorerTypes.Source){const ao=(so=this._element)===null||so===void 0?void 0:so.get();ao==null||ao.addEventListener("focusout",this._onFocusOut),ao==null||ao.addEventListener("focusin",this._onFocusIn)}}dispose(){var to,no;if(this._props.type===RestorerTypes.Source){const io=(to=this._element)===null||to===void 0?void 0:to.get();io==null||io.removeEventListener("focusout",this._onFocusOut),io==null||io.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((no=this._tabster.getWindow().document.body)===null||no===void 0||no.dispatchEvent(new Event(EVENT_NAME,{bubbles:!0})))}}}class RestorerAPI{constructor(to){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=no=>{const io=this._getWindow();this._restoreFocusTimeout&&io.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=io.setTimeout(()=>this._restoreFocus(no.target))},this._onFocusIn=no=>{var io;if(!no)return;const so=getTabsterOnElement(this._tabster,no);((io=so==null?void 0:so.restorer)===null||io===void 0?void 0:io.getProps().type)===RestorerTypes.Target&&this._addToHistory(no)},this._restoreFocus=no=>{var io,so,ao;const lo=this._getWindow().document;if(lo.activeElement!==lo.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&lo.body.contains(no))return;let uo=this._history.pop();for(;uo&&!lo.body.contains((so=(io=uo.get())===null||io===void 0?void 0:io.parentElement)!==null&&so!==void 0?so:null);)uo=this._history.pop();(ao=uo==null?void 0:uo.get())===null||ao===void 0||ao.focus()},this._tabster=to,this._getWindow=to.getWindow,this._getWindow().addEventListener(EVENT_NAME,this._onRestoreFocus),this._keyboardNavState=to.keyboardNavigation,this._focusedElementState=to.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const to=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),to.removeEventListener(EVENT_NAME,this._onRestoreFocus),this._restoreFocusTimeout&&to.clearTimeout(this._restoreFocusTimeout)}_addToHistory(to){var no;((no=this._history[this._history.length-1])===null||no===void 0?void 0:no.get())!==to&&(this._history.length>HISOTRY_DEPTH&&this._history.shift(),this._history.push(new WeakHTMLElement(this._getWindow,to)))}createRestorer(to,no){const io=new Restorer(this._tabster,to,no);return no.type===RestorerTypes.Target&&to.ownerDocument.activeElement===to&&this._addToHistory(to),io}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class Tabster{constructor(to){this.keyboardNavigation=to.keyboardNavigation,this.focusedElement=to.focusedElement,this.focusable=to.focusable,this.root=to.root,this.uncontrolled=to.uncontrolled,this.core=to}}class TabsterCore{constructor(to,no){var io,so;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.2.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=createWeakMap(to),this._win=to;const ao=this.getWindow;this.keyboardNavigation=new KeyboardNavigationState(ao),this.focusedElement=new FocusedElementState(this,ao),this.focusable=new FocusableAPI(this),this.root=new RootAPI(this,no==null?void 0:no.autoRoot),this.uncontrolled=new UncontrolledAPI((no==null?void 0:no.checkUncontrolledCompletely)||(no==null?void 0:no.checkUncontrolledTrappingFocus)),this.controlTab=(io=no==null?void 0:no.controlTab)!==null&&io!==void 0?io:!0,this.rootDummyInputs=!!(no!=null&&no.rootDummyInputs),this._dummyObserver=new DummyInputObserver(ao),this.getParent=(so=no==null?void 0:no.getParent)!==null&&so!==void 0?so:lo=>lo.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:lo=>{if(!this._unobserve){const uo=ao().document;this._unobserve=observeMutations(uo,this,updateTabsterByAttribute,lo)}}},startFakeWeakRefsCleanup(ao),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(to){var no;to&&(this.getParent=(no=to.getParent)!==null&&no!==void 0?no:this.getParent)}createTabster(to,no){const io=new Tabster(this);return to||this._wrappers.add(io),this._mergeProps(no),io}disposeTabster(to,no){no?this._wrappers.clear():this._wrappers.delete(to),this._wrappers.size===0&&this.dispose()}dispose(){var to,no,io,so,ao,lo,uo,ho;this.internal.stopObserver();const go=this._win;go==null||go.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],go&&this._forgetMemorizedTimer&&(go.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(to=this.outline)===null||to===void 0||to.dispose(),(no=this.crossOrigin)===null||no===void 0||no.dispose(),(io=this.deloser)===null||io===void 0||io.dispose(),(so=this.groupper)===null||so===void 0||so.dispose(),(ao=this.mover)===null||ao===void 0||ao.dispose(),(lo=this.modalizer)===null||lo===void 0||lo.dispose(),(uo=this.observedElement)===null||uo===void 0||uo.dispose(),(ho=this.restorer)===null||ho===void 0||ho.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),stopFakeWeakRefsCleanupAndClearStorage(this.getWindow),clearElementCache(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),go&&(disposeInstanceContext(go),delete go.__tabsterInstance,delete this._win)}storageEntry(to,no){const io=this._storage;let so=io.get(to);return so?no===!1&&Object.keys(so).length===0&&io.delete(to):no===!0&&(so={},io.set(to,so)),so}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let to=this._forgetMemorizedElements.shift();to;to=this._forgetMemorizedElements.shift())clearElementCache(this.getWindow,to),FocusedElementState.forgetMemorized(this.focusedElement,to)},0),cleanupFakeWeakRefs(this.getWindow,!0)))}queueInit(to){var no;this._win&&(this._initQueue.push(to),this._initTimer||(this._initTimer=(no=this._win)===null||no===void 0?void 0:no.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const to=this._initQueue;this._initQueue=[],to.forEach(no=>no())}}function createTabster(eo,to){let no=getCurrentTabster(eo);return no?no.createTabster(!1,to):(no=new TabsterCore(eo,to),eo.__tabsterInstance=no,no.createTabster())}function getGroupper(eo){const to=eo.core;return to.groupper||(to.groupper=new GroupperAPI(to,to.getWindow)),to.groupper}function getMover(eo){const to=eo.core;return to.mover||(to.mover=new MoverAPI(to,to.getWindow)),to.mover}function getModalizer(eo,to,no){const io=eo.core;return io.modalizer||(io.modalizer=new ModalizerAPI(io,to,no)),io.modalizer}function getRestorer(eo){const to=eo.core;return to.restorer||(to.restorer=new RestorerAPI(to)),to.restorer}function disposeTabster(eo,to){eo.core.disposeTabster(eo,to)}function getCurrentTabster(eo){return eo.__tabsterInstance}const useTabster=()=>{const{targetDocument:eo}=useFluent(),to=(eo==null?void 0:eo.defaultView)||void 0,no=reactExports.useMemo(()=>to?createTabster(to,{autoRoot:{},controlTab:!1,getParent:getParent$2,checkUncontrolledTrappingFocus:io=>{var so;return!!(!((so=io.firstElementChild)===null||so===void 0)&&so.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[to]);return useIsomorphicLayoutEffect$1(()=>()=>{no&&disposeTabster(no)},[no]),no},useTabsterAttributes=eo=>(useTabster(),getTabsterAttribute(eo)),useArrowNavigationGroup=(eo={})=>{const{circular:to,axis:no,memorizeCurrent:io,tabbable:so,ignoreDefaultKeydown:ao,unstable_hasDefault:lo}=eo,uo=useTabster();return uo&&getMover(uo),useTabsterAttributes({mover:{cyclic:!!to,direction:axisToMoverDirection(no??"vertical"),memorizeCurrent:io,tabbable:so,hasDefault:lo},...ao&&{focusable:{ignoreKeydown:ao}}})};function axisToMoverDirection(eo){switch(eo){case"horizontal":return Types.MoverDirections.Horizontal;case"grid":return Types.MoverDirections.Grid;case"grid-linear":return Types.MoverDirections.GridLinear;case"both":return Types.MoverDirections.Both;case"vertical":default:return Types.MoverDirections.Vertical}}const useFocusableGroup=eo=>{const to=useTabster();return to&&getGroupper(to),useTabsterAttributes({groupper:{tabbability:getTabbability(eo==null?void 0:eo.tabBehavior)},focusable:{ignoreKeydown:eo==null?void 0:eo.ignoreDefaultKeydown}})},getTabbability=eo=>{switch(eo){case"unlimited":return Types.GroupperTabbabilities.Unlimited;case"limited":return Types.GroupperTabbabilities.Limited;case"limited-trap-focus":return Types.GroupperTabbabilities.LimitedTrapFocus;default:return}},useFocusFinders=()=>{const eo=useTabster(),{targetDocument:to}=useFluent(),no=reactExports.useCallback((uo,ho)=>(eo==null?void 0:eo.focusable.findAll({container:uo,acceptCondition:ho}))||[],[eo]),io=reactExports.useCallback(uo=>eo==null?void 0:eo.focusable.findFirst({container:uo}),[eo]),so=reactExports.useCallback(uo=>eo==null?void 0:eo.focusable.findLast({container:uo}),[eo]),ao=reactExports.useCallback((uo,ho={})=>{if(!eo||!to)return null;const{container:go=to.body}=ho;return eo.focusable.findNext({currentElement:uo,container:go})},[eo,to]),lo=reactExports.useCallback((uo,ho={})=>{if(!eo||!to)return null;const{container:go=to.body}=ho;return eo.focusable.findPrev({currentElement:uo,container:go})},[eo,to]);return{findAllFocusable:no,findFirstFocusable:io,findLastFocusable:so,findNextFocusable:ao,findPrevFocusable:lo}},FOCUS_VISIBLE_ATTR="data-fui-focus-visible",FOCUS_WITHIN_ATTR="data-fui-focus-within";function applyFocusVisiblePolyfill(eo,to){if(alreadyInScope(eo))return()=>{};const no={current:void 0},io=createKeyborg(to);function so(ho){io.isNavigatingWithKeyboard()&&isHTMLElement$6(ho)&&(no.current=ho,ho.setAttribute(FOCUS_VISIBLE_ATTR,""))}function ao(){no.current&&(no.current.removeAttribute(FOCUS_VISIBLE_ATTR),no.current=void 0)}io.subscribe(ho=>{ho||ao()});const lo=ho=>{ao();const go=ho.composedPath()[0];so(go)},uo=ho=>{(!ho.relatedTarget||isHTMLElement$6(ho.relatedTarget)&&!eo.contains(ho.relatedTarget))&&ao()};return eo.addEventListener(KEYBORG_FOCUSIN,lo),eo.addEventListener("focusout",uo),eo.focusVisible=!0,so(to.document.activeElement),()=>{ao(),eo.removeEventListener(KEYBORG_FOCUSIN,lo),eo.removeEventListener("focusout",uo),delete eo.focusVisible,disposeKeyborg(io)}}function alreadyInScope(eo){return eo?eo.focusVisible?!0:alreadyInScope(eo==null?void 0:eo.parentElement):!1}function useFocusVisible(eo={}){const to=useFluent(),no=reactExports.useRef(null);var io;const so=(io=eo.targetDocument)!==null&&io!==void 0?io:to.targetDocument;return reactExports.useEffect(()=>{if(so!=null&&so.defaultView&&no.current)return applyFocusVisiblePolyfill(no.current,so.defaultView)},[no,so]),no}function applyFocusWithinPolyfill(eo,to){const no=createKeyborg(to);no.subscribe(ao=>{ao||removeFocusWithinClass(eo)});const io=ao=>{no.isNavigatingWithKeyboard()&&isHTMLElement$5(ao.target)&&applyFocusWithinClass(eo)},so=ao=>{(!ao.relatedTarget||isHTMLElement$5(ao.relatedTarget)&&!eo.contains(ao.relatedTarget))&&removeFocusWithinClass(eo)};return eo.addEventListener(KEYBORG_FOCUSIN,io),eo.addEventListener("focusout",so),()=>{eo.removeEventListener(KEYBORG_FOCUSIN,io),eo.removeEventListener("focusout",so),disposeKeyborg(no)}}function applyFocusWithinClass(eo){eo.setAttribute(FOCUS_WITHIN_ATTR,"")}function removeFocusWithinClass(eo){eo.removeAttribute(FOCUS_WITHIN_ATTR)}function isHTMLElement$5(eo){return eo?!!(eo&&typeof eo=="object"&&"classList"in eo&&"contains"in eo):!1}function useFocusWithin(){const{targetDocument:eo}=useFluent(),to=reactExports.useRef(null);return reactExports.useEffect(()=>{if(eo!=null&&eo.defaultView&&to.current)return applyFocusWithinPolyfill(to.current,eo.defaultView)},[to,eo]),to}const useModalAttributes=(eo={})=>{const{trapFocus:to,alwaysFocusable:no,legacyTrapFocus:io}=eo,so=useTabster();so&&(getModalizer(so),getRestorer(so));const ao=useId$1("modal-",eo.id),lo=useTabsterAttributes({restorer:{type:Types.RestorerTypes.Source},...to&&{modalizer:{id:ao,isOthersAccessible:!to,isAlwaysAccessible:no,isTrapped:io&&to}}}),uo=useTabsterAttributes({restorer:{type:Types.RestorerTypes.Target}});return{modalAttributes:lo,triggerAttributes:uo}};function useRestoreFocusTarget(){const eo=useTabster();return eo&&getRestorer(eo),getTabsterAttribute({restorer:{type:Types.RestorerTypes.Target}})}function useRestoreFocusSource(){const eo=useTabster();return eo&&getRestorer(eo),getTabsterAttribute({restorer:{type:Types.RestorerTypes.Source}})}const grey={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},whiteAlpha={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},blackAlpha={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},grey10Alpha={5:"rgba(26, 26, 26, 0.05)",10:"rgba(26, 26, 26, 0.1)",20:"rgba(26, 26, 26, 0.2)",30:"rgba(26, 26, 26, 0.3)",40:"rgba(26, 26, 26, 0.4)",50:"rgba(26, 26, 26, 0.5)",60:"rgba(26, 26, 26, 0.6)",70:"rgba(26, 26, 26, 0.7)",80:"rgba(26, 26, 26, 0.8)",90:"rgba(26, 26, 26, 0.9)"},grey12Alpha={5:"rgba(31, 31, 31, 0.05)",10:"rgba(31, 31, 31, 0.1)",20:"rgba(31, 31, 31, 0.2)",30:"rgba(31, 31, 31, 0.3)",40:"rgba(31, 31, 31, 0.4)",50:"rgba(31, 31, 31, 0.5)",60:"rgba(31, 31, 31, 0.6)",70:"rgba(31, 31, 31, 0.7)",80:"rgba(31, 31, 31, 0.8)",90:"rgba(31, 31, 31, 0.9)"},grey14Alpha={5:"rgba(36, 36, 36, 0.05)",10:"rgba(36, 36, 36, 0.1)",20:"rgba(36, 36, 36, 0.2)",30:"rgba(36, 36, 36, 0.3)",40:"rgba(36, 36, 36, 0.4)",50:"rgba(36, 36, 36, 0.5)",60:"rgba(36, 36, 36, 0.6)",70:"rgba(36, 36, 36, 0.7)",80:"rgba(36, 36, 36, 0.8)",90:"rgba(36, 36, 36, 0.9)"},white="#ffffff",black="#000000",darkRed={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},cranberry={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},red={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},darkOrange={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},pumpkin={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},orange={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},peach={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},marigold={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},yellow={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},gold={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},brass={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},brown={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},forest={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},seafoam={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},lightGreen={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},green={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},darkGreen={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},lightTeal={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},teal={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},steel={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},blue={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},royalBlue={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},cornflower={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},navy={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},lavender={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},purple={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},grape={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},berry={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},lilac={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},pink={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},magenta={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},plum={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},beige={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},mink={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},platinum={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},anchor={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},statusSharedColors={red,green,darkOrange,yellow,berry,lightGreen,marigold},personaSharedColors={darkRed,cranberry,pumpkin,peach,gold,brass,brown,forest,seafoam,darkGreen,lightTeal,teal,steel,blue,royalBlue,cornflower,navy,lavender,purple,grape,lilac,pink,magenta,plum,beige,mink,platinum,anchor},mappedStatusColors={cranberry,green,orange},statusSharedColorNames=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],personaSharedColorNames=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],statusColorMapping={success:"green",warning:"orange",danger:"cranberry"},statusColorPaletteTokens$1=statusSharedColorNames.reduce((eo,to)=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),io={[`colorPalette${no}Background1`]:statusSharedColors[to].tint60,[`colorPalette${no}Background2`]:statusSharedColors[to].tint40,[`colorPalette${no}Background3`]:statusSharedColors[to].primary,[`colorPalette${no}Foreground1`]:statusSharedColors[to].shade10,[`colorPalette${no}Foreground2`]:statusSharedColors[to].shade30,[`colorPalette${no}Foreground3`]:statusSharedColors[to].primary,[`colorPalette${no}BorderActive`]:statusSharedColors[to].primary,[`colorPalette${no}Border1`]:statusSharedColors[to].tint40,[`colorPalette${no}Border2`]:statusSharedColors[to].primary};return Object.assign(eo,io)},{});statusColorPaletteTokens$1.colorPaletteYellowForeground1=statusSharedColors.yellow.shade30;statusColorPaletteTokens$1.colorPaletteRedForegroundInverted=statusSharedColors.red.tint20;statusColorPaletteTokens$1.colorPaletteGreenForegroundInverted=statusSharedColors.green.tint20;statusColorPaletteTokens$1.colorPaletteYellowForegroundInverted=statusSharedColors.yellow.tint40;const personaColorPaletteTokens$1=personaSharedColorNames.reduce((eo,to)=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),io={[`colorPalette${no}Background2`]:personaSharedColors[to].tint40,[`colorPalette${no}Foreground2`]:personaSharedColors[to].shade30,[`colorPalette${no}BorderActive`]:personaSharedColors[to].primary};return Object.assign(eo,io)},{}),colorPaletteTokens$1={...statusColorPaletteTokens$1,...personaColorPaletteTokens$1},colorStatusTokens$1=Object.entries(statusColorMapping).reduce((eo,[to,no])=>{const io=to.slice(0,1).toUpperCase()+to.slice(1),so={[`colorStatus${io}Background1`]:mappedStatusColors[no].tint60,[`colorStatus${io}Background2`]:mappedStatusColors[no].tint40,[`colorStatus${io}Background3`]:mappedStatusColors[no].primary,[`colorStatus${io}Foreground1`]:mappedStatusColors[no].shade10,[`colorStatus${io}Foreground2`]:mappedStatusColors[no].shade30,[`colorStatus${io}Foreground3`]:mappedStatusColors[no].primary,[`colorStatus${io}ForegroundInverted`]:mappedStatusColors[no].tint30,[`colorStatus${io}BorderActive`]:mappedStatusColors[no].primary,[`colorStatus${io}Border1`]:mappedStatusColors[no].tint40,[`colorStatus${io}Border2`]:mappedStatusColors[no].primary};return Object.assign(eo,so)},{});colorStatusTokens$1.colorStatusWarningForeground1=mappedStatusColors[statusColorMapping.warning].shade20;colorStatusTokens$1.colorStatusWarningForeground3=mappedStatusColors[statusColorMapping.warning].shade20;colorStatusTokens$1.colorStatusWarningBorder2=mappedStatusColors[statusColorMapping.warning].shade20;const generateColorTokens$1=eo=>({colorNeutralForeground1:grey[14],colorNeutralForeground1Hover:grey[14],colorNeutralForeground1Pressed:grey[14],colorNeutralForeground1Selected:grey[14],colorNeutralForeground2:grey[26],colorNeutralForeground2Hover:grey[14],colorNeutralForeground2Pressed:grey[14],colorNeutralForeground2Selected:grey[14],colorNeutralForeground2BrandHover:eo[80],colorNeutralForeground2BrandPressed:eo[70],colorNeutralForeground2BrandSelected:eo[80],colorNeutralForeground3:grey[38],colorNeutralForeground3Hover:grey[26],colorNeutralForeground3Pressed:grey[26],colorNeutralForeground3Selected:grey[26],colorNeutralForeground3BrandHover:eo[80],colorNeutralForeground3BrandPressed:eo[70],colorNeutralForeground3BrandSelected:eo[80],colorNeutralForeground4:grey[44],colorNeutralForegroundDisabled:grey[74],colorNeutralForegroundInvertedDisabled:whiteAlpha[40],colorBrandForegroundLink:eo[70],colorBrandForegroundLinkHover:eo[60],colorBrandForegroundLinkPressed:eo[40],colorBrandForegroundLinkSelected:eo[70],colorNeutralForeground2Link:grey[26],colorNeutralForeground2LinkHover:grey[14],colorNeutralForeground2LinkPressed:grey[14],colorNeutralForeground2LinkSelected:grey[14],colorCompoundBrandForeground1:eo[80],colorCompoundBrandForeground1Hover:eo[70],colorCompoundBrandForeground1Pressed:eo[60],colorBrandForeground1:eo[80],colorBrandForeground2:eo[70],colorBrandForeground2Hover:eo[60],colorBrandForeground2Pressed:eo[30],colorNeutralForeground1Static:grey[14],colorNeutralForegroundStaticInverted:white,colorNeutralForegroundInverted:white,colorNeutralForegroundInvertedHover:white,colorNeutralForegroundInvertedPressed:white,colorNeutralForegroundInvertedSelected:white,colorNeutralForegroundInverted2:white,colorNeutralForegroundOnBrand:white,colorNeutralForegroundInvertedLink:white,colorNeutralForegroundInvertedLinkHover:white,colorNeutralForegroundInvertedLinkPressed:white,colorNeutralForegroundInvertedLinkSelected:white,colorBrandForegroundInverted:eo[100],colorBrandForegroundInvertedHover:eo[110],colorBrandForegroundInvertedPressed:eo[100],colorBrandForegroundOnLight:eo[80],colorBrandForegroundOnLightHover:eo[70],colorBrandForegroundOnLightPressed:eo[50],colorBrandForegroundOnLightSelected:eo[60],colorNeutralBackground1:white,colorNeutralBackground1Hover:grey[96],colorNeutralBackground1Pressed:grey[88],colorNeutralBackground1Selected:grey[92],colorNeutralBackground2:grey[98],colorNeutralBackground2Hover:grey[94],colorNeutralBackground2Pressed:grey[86],colorNeutralBackground2Selected:grey[90],colorNeutralBackground3:grey[96],colorNeutralBackground3Hover:grey[92],colorNeutralBackground3Pressed:grey[84],colorNeutralBackground3Selected:grey[88],colorNeutralBackground4:grey[94],colorNeutralBackground4Hover:grey[98],colorNeutralBackground4Pressed:grey[96],colorNeutralBackground4Selected:white,colorNeutralBackground5:grey[92],colorNeutralBackground5Hover:grey[96],colorNeutralBackground5Pressed:grey[94],colorNeutralBackground5Selected:grey[98],colorNeutralBackground6:grey[90],colorNeutralBackgroundInverted:grey[16],colorNeutralBackgroundStatic:grey[20],colorNeutralBackgroundAlpha:whiteAlpha[50],colorNeutralBackgroundAlpha2:whiteAlpha[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:grey[96],colorSubtleBackgroundPressed:grey[88],colorSubtleBackgroundSelected:grey[92],colorSubtleBackgroundLightAlphaHover:whiteAlpha[70],colorSubtleBackgroundLightAlphaPressed:whiteAlpha[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:blackAlpha[10],colorSubtleBackgroundInvertedPressed:blackAlpha[30],colorSubtleBackgroundInvertedSelected:blackAlpha[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:grey[94],colorNeutralBackgroundInvertedDisabled:whiteAlpha[10],colorNeutralStencil1:grey[90],colorNeutralStencil2:grey[98],colorNeutralStencil1Alpha:blackAlpha[10],colorNeutralStencil2Alpha:blackAlpha[5],colorBackgroundOverlay:blackAlpha[40],colorScrollbarOverlay:blackAlpha[50],colorBrandBackground:eo[80],colorBrandBackgroundHover:eo[70],colorBrandBackgroundPressed:eo[40],colorBrandBackgroundSelected:eo[60],colorCompoundBrandBackground:eo[80],colorCompoundBrandBackgroundHover:eo[70],colorCompoundBrandBackgroundPressed:eo[60],colorBrandBackgroundStatic:eo[80],colorBrandBackground2:eo[160],colorBrandBackground2Hover:eo[150],colorBrandBackground2Pressed:eo[130],colorBrandBackgroundInverted:white,colorBrandBackgroundInvertedHover:eo[160],colorBrandBackgroundInvertedPressed:eo[140],colorBrandBackgroundInvertedSelected:eo[150],colorNeutralStrokeAccessible:grey[38],colorNeutralStrokeAccessibleHover:grey[34],colorNeutralStrokeAccessiblePressed:grey[30],colorNeutralStrokeAccessibleSelected:eo[80],colorNeutralStroke1:grey[82],colorNeutralStroke1Hover:grey[78],colorNeutralStroke1Pressed:grey[70],colorNeutralStroke1Selected:grey[74],colorNeutralStroke2:grey[88],colorNeutralStroke3:grey[94],colorNeutralStrokeSubtle:grey[88],colorNeutralStrokeOnBrand:white,colorNeutralStrokeOnBrand2:white,colorNeutralStrokeOnBrand2Hover:white,colorNeutralStrokeOnBrand2Pressed:white,colorNeutralStrokeOnBrand2Selected:white,colorBrandStroke1:eo[80],colorBrandStroke2:eo[140],colorBrandStroke2Hover:eo[120],colorBrandStroke2Pressed:eo[80],colorBrandStroke2Contrast:eo[140],colorCompoundBrandStroke:eo[80],colorCompoundBrandStrokeHover:eo[70],colorCompoundBrandStrokePressed:eo[60],colorNeutralStrokeDisabled:grey[88],colorNeutralStrokeInvertedDisabled:whiteAlpha[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:blackAlpha[5],colorNeutralStrokeAlpha2:whiteAlpha[20],colorStrokeFocus1:white,colorStrokeFocus2:black,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),borderRadius={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},curves={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},durations={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},fontSizes={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},lineHeights={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},fontWeights={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},fontFamilies={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},spacings$1={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},horizontalSpacings={spacingHorizontalNone:spacings$1.none,spacingHorizontalXXS:spacings$1.xxs,spacingHorizontalXS:spacings$1.xs,spacingHorizontalSNudge:spacings$1.sNudge,spacingHorizontalS:spacings$1.s,spacingHorizontalMNudge:spacings$1.mNudge,spacingHorizontalM:spacings$1.m,spacingHorizontalL:spacings$1.l,spacingHorizontalXL:spacings$1.xl,spacingHorizontalXXL:spacings$1.xxl,spacingHorizontalXXXL:spacings$1.xxxl},verticalSpacings={spacingVerticalNone:spacings$1.none,spacingVerticalXXS:spacings$1.xxs,spacingVerticalXS:spacings$1.xs,spacingVerticalSNudge:spacings$1.sNudge,spacingVerticalS:spacings$1.s,spacingVerticalMNudge:spacings$1.mNudge,spacingVerticalM:spacings$1.m,spacingVerticalL:spacings$1.l,spacingVerticalXL:spacings$1.xl,spacingVerticalXXL:spacings$1.xxl,spacingVerticalXXXL:spacings$1.xxxl},strokeWidths={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},tokens$1={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function createShadowTokens(eo,to,no=""){return{[`shadow2${no}`]:`0 0 2px ${eo}, 0 1px 2px ${to}`,[`shadow4${no}`]:`0 0 2px ${eo}, 0 2px 4px ${to}`,[`shadow8${no}`]:`0 0 2px ${eo}, 0 4px 8px ${to}`,[`shadow16${no}`]:`0 0 2px ${eo}, 0 8px 16px ${to}`,[`shadow28${no}`]:`0 0 8px ${eo}, 0 14px 28px ${to}`,[`shadow64${no}`]:`0 0 8px ${eo}, 0 32px 64px ${to}`}}const createLightTheme=eo=>{const to=generateColorTokens$1(eo);return{...borderRadius,...fontSizes,...lineHeights,...fontFamilies,...fontWeights,...strokeWidths,...horizontalSpacings,...verticalSpacings,...durations,...curves,...to,...colorPaletteTokens$1,...colorStatusTokens$1,...createShadowTokens(to.colorNeutralShadowAmbient,to.colorNeutralShadowKey),...createShadowTokens(to.colorBrandShadowAmbient,to.colorBrandShadowKey,"Brand")}},brandWeb={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},statusColorPaletteTokens=statusSharedColorNames.reduce((eo,to)=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),io={[`colorPalette${no}Background1`]:statusSharedColors[to].shade40,[`colorPalette${no}Background2`]:statusSharedColors[to].shade30,[`colorPalette${no}Background3`]:statusSharedColors[to].primary,[`colorPalette${no}Foreground1`]:statusSharedColors[to].tint30,[`colorPalette${no}Foreground2`]:statusSharedColors[to].tint40,[`colorPalette${no}Foreground3`]:statusSharedColors[to].tint20,[`colorPalette${no}BorderActive`]:statusSharedColors[to].tint30,[`colorPalette${no}Border1`]:statusSharedColors[to].primary,[`colorPalette${no}Border2`]:statusSharedColors[to].tint20};return Object.assign(eo,io)},{});statusColorPaletteTokens.colorPaletteRedForeground3=statusSharedColors.red.tint30;statusColorPaletteTokens.colorPaletteRedBorder2=statusSharedColors.red.tint30;statusColorPaletteTokens.colorPaletteGreenForeground3=statusSharedColors.green.tint40;statusColorPaletteTokens.colorPaletteGreenBorder2=statusSharedColors.green.tint40;statusColorPaletteTokens.colorPaletteDarkOrangeForeground3=statusSharedColors.darkOrange.tint30;statusColorPaletteTokens.colorPaletteDarkOrangeBorder2=statusSharedColors.darkOrange.tint30;statusColorPaletteTokens.colorPaletteRedForegroundInverted=statusSharedColors.red.primary;statusColorPaletteTokens.colorPaletteGreenForegroundInverted=statusSharedColors.green.primary;statusColorPaletteTokens.colorPaletteYellowForegroundInverted=statusSharedColors.yellow.shade30;const personaColorPaletteTokens=personaSharedColorNames.reduce((eo,to)=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),io={[`colorPalette${no}Background2`]:personaSharedColors[to].shade30,[`colorPalette${no}Foreground2`]:personaSharedColors[to].tint40,[`colorPalette${no}BorderActive`]:personaSharedColors[to].tint30};return Object.assign(eo,io)},{});personaColorPaletteTokens.colorPaletteDarkRedBackground2=personaSharedColors.darkRed.shade20;personaColorPaletteTokens.colorPalettePlumBackground2=personaSharedColors.plum.shade20;const colorPaletteTokens={...statusColorPaletteTokens,...personaColorPaletteTokens},colorStatusTokens=Object.entries(statusColorMapping).reduce((eo,[to,no])=>{const io=to.slice(0,1).toUpperCase()+to.slice(1),so={[`colorStatus${io}Background1`]:mappedStatusColors[no].shade40,[`colorStatus${io}Background2`]:mappedStatusColors[no].shade30,[`colorStatus${io}Background3`]:mappedStatusColors[no].primary,[`colorStatus${io}Foreground1`]:mappedStatusColors[no].tint30,[`colorStatus${io}Foreground2`]:mappedStatusColors[no].tint40,[`colorStatus${io}Foreground3`]:mappedStatusColors[no].tint20,[`colorStatus${io}BorderActive`]:mappedStatusColors[no].tint30,[`colorStatus${io}ForegroundInverted`]:mappedStatusColors[no].shade10,[`colorStatus${io}Border1`]:mappedStatusColors[no].primary,[`colorStatus${io}Border2`]:mappedStatusColors[no].tint20};return Object.assign(eo,so)},{});colorStatusTokens.colorStatusDangerForeground3=mappedStatusColors[statusColorMapping.danger].tint30;colorStatusTokens.colorStatusDangerBorder2=mappedStatusColors[statusColorMapping.danger].tint30;colorStatusTokens.colorStatusSuccessForeground3=mappedStatusColors[statusColorMapping.success].tint40;colorStatusTokens.colorStatusSuccessBorder2=mappedStatusColors[statusColorMapping.success].tint40;colorStatusTokens.colorStatusWarningForegroundInverted=mappedStatusColors[statusColorMapping.warning].shade20;const webLightTheme=createLightTheme(brandWeb),generateColorTokens=eo=>({colorNeutralForeground1:white,colorNeutralForeground1Hover:white,colorNeutralForeground1Pressed:white,colorNeutralForeground1Selected:white,colorNeutralForeground2:grey[84],colorNeutralForeground2Hover:white,colorNeutralForeground2Pressed:white,colorNeutralForeground2Selected:white,colorNeutralForeground2BrandHover:eo[100],colorNeutralForeground2BrandPressed:eo[90],colorNeutralForeground2BrandSelected:eo[100],colorNeutralForeground3:grey[68],colorNeutralForeground3Hover:grey[84],colorNeutralForeground3Pressed:grey[84],colorNeutralForeground3Selected:grey[84],colorNeutralForeground3BrandHover:eo[100],colorNeutralForeground3BrandPressed:eo[90],colorNeutralForeground3BrandSelected:eo[100],colorNeutralForeground4:grey[60],colorNeutralForegroundDisabled:grey[36],colorNeutralForegroundInvertedDisabled:whiteAlpha[40],colorBrandForegroundLink:eo[100],colorBrandForegroundLinkHover:eo[110],colorBrandForegroundLinkPressed:eo[90],colorBrandForegroundLinkSelected:eo[100],colorNeutralForeground2Link:grey[84],colorNeutralForeground2LinkHover:white,colorNeutralForeground2LinkPressed:white,colorNeutralForeground2LinkSelected:white,colorCompoundBrandForeground1:eo[100],colorCompoundBrandForeground1Hover:eo[110],colorCompoundBrandForeground1Pressed:eo[90],colorBrandForeground1:eo[100],colorBrandForeground2:eo[110],colorBrandForeground2Hover:eo[130],colorBrandForeground2Pressed:eo[160],colorNeutralForeground1Static:grey[14],colorNeutralForegroundStaticInverted:white,colorNeutralForegroundInverted:grey[14],colorNeutralForegroundInvertedHover:grey[14],colorNeutralForegroundInvertedPressed:grey[14],colorNeutralForegroundInvertedSelected:grey[14],colorNeutralForegroundInverted2:grey[14],colorNeutralForegroundOnBrand:white,colorNeutralForegroundInvertedLink:white,colorNeutralForegroundInvertedLinkHover:white,colorNeutralForegroundInvertedLinkPressed:white,colorNeutralForegroundInvertedLinkSelected:white,colorBrandForegroundInverted:eo[80],colorBrandForegroundInvertedHover:eo[70],colorBrandForegroundInvertedPressed:eo[60],colorBrandForegroundOnLight:eo[80],colorBrandForegroundOnLightHover:eo[70],colorBrandForegroundOnLightPressed:eo[50],colorBrandForegroundOnLightSelected:eo[60],colorNeutralBackground1:grey[16],colorNeutralBackground1Hover:grey[24],colorNeutralBackground1Pressed:grey[12],colorNeutralBackground1Selected:grey[22],colorNeutralBackground2:grey[12],colorNeutralBackground2Hover:grey[20],colorNeutralBackground2Pressed:grey[8],colorNeutralBackground2Selected:grey[18],colorNeutralBackground3:grey[8],colorNeutralBackground3Hover:grey[16],colorNeutralBackground3Pressed:grey[4],colorNeutralBackground3Selected:grey[14],colorNeutralBackground4:grey[4],colorNeutralBackground4Hover:grey[12],colorNeutralBackground4Pressed:black,colorNeutralBackground4Selected:grey[10],colorNeutralBackground5:black,colorNeutralBackground5Hover:grey[8],colorNeutralBackground5Pressed:grey[2],colorNeutralBackground5Selected:grey[6],colorNeutralBackground6:grey[20],colorNeutralBackgroundInverted:white,colorNeutralBackgroundStatic:grey[24],colorNeutralBackgroundAlpha:grey10Alpha[50],colorNeutralBackgroundAlpha2:grey12Alpha[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:grey[22],colorSubtleBackgroundPressed:grey[18],colorSubtleBackgroundSelected:grey[20],colorSubtleBackgroundLightAlphaHover:grey14Alpha[80],colorSubtleBackgroundLightAlphaPressed:grey14Alpha[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:blackAlpha[10],colorSubtleBackgroundInvertedPressed:blackAlpha[30],colorSubtleBackgroundInvertedSelected:blackAlpha[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:grey[8],colorNeutralBackgroundInvertedDisabled:whiteAlpha[10],colorNeutralStencil1:grey[34],colorNeutralStencil2:grey[20],colorNeutralStencil1Alpha:whiteAlpha[10],colorNeutralStencil2Alpha:whiteAlpha[5],colorBackgroundOverlay:blackAlpha[50],colorScrollbarOverlay:whiteAlpha[60],colorBrandBackground:eo[70],colorBrandBackgroundHover:eo[80],colorBrandBackgroundPressed:eo[40],colorBrandBackgroundSelected:eo[60],colorCompoundBrandBackground:eo[100],colorCompoundBrandBackgroundHover:eo[110],colorCompoundBrandBackgroundPressed:eo[90],colorBrandBackgroundStatic:eo[80],colorBrandBackground2:eo[20],colorBrandBackground2Hover:eo[40],colorBrandBackground2Pressed:eo[10],colorBrandBackgroundInverted:white,colorBrandBackgroundInvertedHover:eo[160],colorBrandBackgroundInvertedPressed:eo[140],colorBrandBackgroundInvertedSelected:eo[150],colorNeutralStrokeAccessible:grey[68],colorNeutralStrokeAccessibleHover:grey[74],colorNeutralStrokeAccessiblePressed:grey[70],colorNeutralStrokeAccessibleSelected:eo[100],colorNeutralStroke1:grey[40],colorNeutralStroke1Hover:grey[46],colorNeutralStroke1Pressed:grey[42],colorNeutralStroke1Selected:grey[44],colorNeutralStroke2:grey[32],colorNeutralStroke3:grey[24],colorNeutralStrokeSubtle:grey[4],colorNeutralStrokeOnBrand:grey[16],colorNeutralStrokeOnBrand2:white,colorNeutralStrokeOnBrand2Hover:white,colorNeutralStrokeOnBrand2Pressed:white,colorNeutralStrokeOnBrand2Selected:white,colorBrandStroke1:eo[100],colorBrandStroke2:eo[50],colorBrandStroke2Hover:eo[50],colorBrandStroke2Pressed:eo[30],colorBrandStroke2Contrast:eo[50],colorCompoundBrandStroke:eo[100],colorCompoundBrandStrokeHover:eo[110],colorCompoundBrandStrokePressed:eo[90],colorNeutralStrokeDisabled:grey[26],colorNeutralStrokeInvertedDisabled:whiteAlpha[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:whiteAlpha[10],colorNeutralStrokeAlpha2:whiteAlpha[20],colorStrokeFocus1:black,colorStrokeFocus2:white,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),createDarkTheme=eo=>{const to=generateColorTokens(eo);return{...borderRadius,...fontSizes,...lineHeights,...fontFamilies,...fontWeights,...strokeWidths,...horizontalSpacings,...verticalSpacings,...durations,...curves,...to,...colorPaletteTokens,...colorStatusTokens,...createShadowTokens(to.colorNeutralShadowAmbient,to.colorNeutralShadowKey),...createShadowTokens(to.colorBrandShadowAmbient,to.colorBrandShadowKey,"Brand")}},webDarkTheme=createDarkTheme(brandWeb),fluentProviderClassNames={root:"fui-FluentProvider"},useStyles$O=__styles$1({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),useFluentProviderStyles_unstable=eo=>{const to=useRenderer(),no=useStyles$O({dir:eo.dir,renderer:to});return eo.root.className=mergeClasses(fluentProviderClassNames.root,eo.themeClassName,no.root,eo.root.className),eo},useInsertionEffect$1=reactExports.useInsertionEffect?reactExports.useInsertionEffect:useIsomorphicLayoutEffect$1,createStyleTag=(eo,to)=>{if(!eo)return;const no=eo.createElement("style");return Object.keys(to).forEach(io=>{no.setAttribute(io,to[io])}),eo.head.appendChild(no),no},insertSheet=(eo,to)=>{const no=eo.sheet;no&&(no.cssRules.length>0&&no.deleteRule(0),no.insertRule(to,0))},useFluentProviderThemeStyleTag=eo=>{const{targetDocument:to,theme:no,rendererAttributes:io}=eo,so=reactExports.useRef(),ao=useId$1(fluentProviderClassNames.root),lo=io,uo=reactExports.useMemo(()=>createCSSRuleFromTheme(`.${ao}`,no),[no,ao]);return useHandleSSRStyleElements(to,ao),useInsertionEffect$1(()=>{const ho=to==null?void 0:to.getElementById(ao);return ho?so.current=ho:(so.current=createStyleTag(to,{...lo,id:ao}),so.current&&insertSheet(so.current,uo)),()=>{var go;(go=so.current)===null||go===void 0||go.remove()}},[ao,to,uo,lo]),{styleTagId:ao,rule:uo}};function useHandleSSRStyleElements(eo,to){reactExports.useState(()=>{if(!eo)return;const no=eo.getElementById(to);no&&eo.head.append(no)})}const EMPTY_OBJECT={},useFluentProvider_unstable=(eo,to)=>{const no=useFluent(),io=useTheme(),so=useOverrides(),ao=reactExports.useContext(CustomStyleHooksContext)||EMPTY_OBJECT,{applyStylesToPortals:lo=!0,customStyleHooks_unstable:uo,dir:ho=no.dir,targetDocument:go=no.targetDocument,theme:mo,overrides_unstable:yo={}}=eo,So=shallowMerge(io,mo),_o=shallowMerge(so,yo),ko=shallowMerge(ao,uo),Co=useRenderer();var $o;const{styleTagId:Ro,rule:Oo}=useFluentProviderThemeStyleTag({theme:So,targetDocument:go,rendererAttributes:($o=Co.styleElementAttributes)!==null&&$o!==void 0?$o:{}});return{applyStylesToPortals:lo,customStyleHooks_unstable:ko,dir:ho,targetDocument:go,theme:So,overrides_unstable:_o,themeClassName:Ro,components:{root:"div"},root:always(getIntrinsicElementProps("div",{...eo,dir:ho,ref:useMergedRefs$1(to,useFocusVisible({targetDocument:go}))}),{elementType:"div"}),serverStyleProps:{cssRule:Oo,attributes:{...Co.styleElementAttributes,id:Ro}}}};function shallowMerge(eo,to){return eo&&to?{...eo,...to}:eo||to}function useTheme(){return reactExports.useContext(ThemeContext$2)}function useFluentProviderContextValues_unstable(eo){const{applyStylesToPortals:to,customStyleHooks_unstable:no,dir:io,root:so,targetDocument:ao,theme:lo,themeClassName:uo,overrides_unstable:ho}=eo,go=reactExports.useMemo(()=>({dir:io,targetDocument:ao}),[io,ao]),[mo]=reactExports.useState(()=>({})),yo=reactExports.useMemo(()=>({textDirection:io}),[io]);return{customStyleHooks_unstable:no,overrides_unstable:ho,provider:go,textDirection:io,iconDirection:yo,tooltip:mo,theme:lo,themeClassName:to?so.className:uo}}const FluentProvider=reactExports.forwardRef((eo,to)=>{const no=useFluentProvider_unstable(eo,to);useFluentProviderStyles_unstable(no);const io=useFluentProviderContextValues_unstable(no);return renderFluentProvider_unstable(no,io)});FluentProvider.displayName="FluentProvider";const createProvider=eo=>no=>{const io=reactExports.useRef(no.value),so=reactExports.useRef(0),ao=reactExports.useRef();return ao.current||(ao.current={value:io,version:so,listeners:[]}),useIsomorphicLayoutEffect$1(()=>{io.current=no.value,so.current+=1,schedulerExports.unstable_runWithPriority(schedulerExports.unstable_NormalPriority,()=>{ao.current.listeners.forEach(lo=>{lo([so.current,no.value])})})},[no.value]),reactExports.createElement(eo,{value:ao.current},no.children)},createContext=eo=>{const to=reactExports.createContext({value:{current:eo},version:{current:-1},listeners:[]});return to.Provider=createProvider(to.Provider),delete to.Consumer,to},useContextSelector=(eo,to)=>{const no=reactExports.useContext(eo),{value:{current:io},version:{current:so},listeners:ao}=no,lo=to(io),[uo,ho]=reactExports.useReducer((go,mo)=>{if(!mo)return[io,lo];if(mo[0]<=so)return objectIs(go[1],lo)?go:[io,lo];try{if(objectIs(go[0],mo[1]))return go;const yo=to(mo[1]);return objectIs(go[1],yo)?go:[mo[1],yo]}catch{}return[go[0],go[1]]},[io,lo]);return objectIs(uo[1],lo)||ho(void 0),useIsomorphicLayoutEffect$1(()=>(ao.push(ho),()=>{const go=ao.indexOf(ho);ao.splice(go,1)}),[ao]),uo[1]};function is$3(eo,to){return eo===to&&(eo!==0||1/eo===1/to)||eo!==eo&&to!==to}const objectIs=typeof Object.is=="function"?Object.is:is$3;function useHasParentContext(eo){const to=reactExports.useContext(eo);return to.version?to.version.current!==-1:!1}const AccordionContext=createContext(void 0),accordionContextDefaultValue={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:AccordionProvider}=AccordionContext,useAccordionContext_unstable=eo=>useContextSelector(AccordionContext,(to=accordionContextDefaultValue)=>eo(to)),renderAccordion_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(AccordionProvider,{value:to.accordion,children:eo.root.children})}),useAccordion_unstable=(eo,to)=>{const{openItems:no,defaultOpenItems:io,multiple:so=!1,collapsible:ao=!1,onToggle:lo,navigation:uo}=eo,[ho,go]=useControllableState({state:reactExports.useMemo(()=>normalizeValues(no),[no]),defaultState:()=>initializeUncontrolledOpenItems({defaultOpenItems:io,multiple:so}),initialState:[]}),mo=useArrowNavigationGroup({circular:uo==="circular",tabbable:!0}),yo=useEventCallback$3(So=>{const _o=updateOpenItems(So.value,ho,so,ao);lo==null||lo(So.event,{value:So.value,openItems:_o}),go(_o)});return{collapsible:ao,multiple:so,navigation:uo,openItems:ho,requestToggle:yo,components:{root:"div"},root:always(getIntrinsicElementProps("div",{...eo,...uo?mo:void 0,ref:to}),{elementType:"div"})}};function initializeUncontrolledOpenItems({defaultOpenItems:eo,multiple:to}){return eo!==void 0?Array.isArray(eo)?to?eo:[eo[0]]:[eo]:[]}function updateOpenItems(eo,to,no,io){if(no)if(to.includes(eo)){if(to.length>1||io)return to.filter(so=>so!==eo)}else return[...to,eo].sort();else return to[0]===eo&&io?[]:[eo];return to}function normalizeValues(eo){if(eo!==void 0)return Array.isArray(eo)?eo:[eo]}function useAccordionContextValues_unstable(eo){const{navigation:to,openItems:no,requestToggle:io,multiple:so,collapsible:ao}=eo;return{accordion:{navigation:to,openItems:no,requestToggle:io,collapsible:ao,multiple:so}}}const accordionClassNames={root:"fui-Accordion"},useAccordionStyles_unstable=eo=>(eo.root.className=mergeClasses(accordionClassNames.root,eo.root.className),eo),Accordion=reactExports.forwardRef((eo,to)=>{const no=useAccordion_unstable(eo,to),io=useAccordionContextValues_unstable(no);return useAccordionStyles_unstable(no),useCustomStyleHook("useAccordionStyles_unstable")(no),renderAccordion_unstable(no,io)});Accordion.displayName="Accordion";const useAccordionItem_unstable=(eo,to)=>{const{value:no,disabled:io=!1}=eo,so=useAccordionContext_unstable(uo=>uo.requestToggle),ao=useAccordionContext_unstable(uo=>uo.openItems.includes(no)),lo=useEventCallback$3(uo=>so({event:uo,value:no}));return{open:ao,value:no,disabled:io,onHeaderClick:lo,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"})}};function useAccordionItemContextValues_unstable(eo){const{disabled:to,open:no,value:io,onHeaderClick:so}=eo;return{accordionItem:reactExports.useMemo(()=>({disabled:to,open:no,value:io,onHeaderClick:so}),[to,no,io,so])}}const AccordionItemContext=reactExports.createContext(void 0),accordionItemContextDefaultValue={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:AccordionItemProvider}=AccordionItemContext,useAccordionItemContext_unstable=()=>{var eo;return(eo=reactExports.useContext(AccordionItemContext))!==null&&eo!==void 0?eo:accordionItemContextDefaultValue},renderAccordionItem_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(AccordionItemProvider,{value:to.accordionItem,children:eo.root.children})}),accordionItemClassNames={root:"fui-AccordionItem"},useAccordionItemStyles_unstable=eo=>(eo.root.className=mergeClasses(accordionItemClassNames.root,eo.root.className),eo),AccordionItem=reactExports.forwardRef((eo,to)=>{const no=useAccordionItem_unstable(eo,to),io=useAccordionItemContextValues_unstable(no);return useAccordionItemStyles_unstable(no),useCustomStyleHook("useAccordionItemStyles_unstable")(no),renderAccordionItem_unstable(no,io)});AccordionItem.displayName="AccordionItem";const Enter="Enter",Space=" ",Tab$2="Tab",ArrowDown="ArrowDown",ArrowLeft="ArrowLeft",ArrowRight="ArrowRight",ArrowUp="ArrowUp",End="End",Home="Home",PageDown="PageDown",PageUp="PageUp",Backspace="Backspace",Delete="Delete",Escape$1="Escape";function useARIAButtonProps(eo,to){const{disabled:no,disabledFocusable:io=!1,["aria-disabled"]:so,onClick:ao,onKeyDown:lo,onKeyUp:uo,...ho}=to??{},go=typeof so=="string"?so==="true":so,mo=no||io||go,yo=useEventCallback$3(ko=>{mo?(ko.preventDefault(),ko.stopPropagation()):ao==null||ao(ko)}),So=useEventCallback$3(ko=>{if(lo==null||lo(ko),ko.isDefaultPrevented())return;const Co=ko.key;if(mo&&(Co===Enter||Co===Space)){ko.preventDefault(),ko.stopPropagation();return}if(Co===Space){ko.preventDefault();return}else Co===Enter&&(ko.preventDefault(),ko.currentTarget.click())}),_o=useEventCallback$3(ko=>{if(uo==null||uo(ko),ko.isDefaultPrevented())return;const Co=ko.key;if(mo&&(Co===Enter||Co===Space)){ko.preventDefault(),ko.stopPropagation();return}Co===Space&&(ko.preventDefault(),ko.currentTarget.click())});if(eo==="button"||eo===void 0)return{...ho,disabled:no&&!io,"aria-disabled":io?!0:go,onClick:io?void 0:yo,onKeyUp:io?void 0:uo,onKeyDown:io?void 0:lo};{const ko={role:"button",tabIndex:no&&!io?void 0:0,...ho,onClick:yo,onKeyUp:_o,onKeyDown:So,"aria-disabled":no||io||go};return eo==="a"&&mo&&(ko.href=void 0),ko}}const useAccordionHeader_unstable=(eo,to)=>{const{icon:no,button:io,expandIcon:so,inline:ao=!1,size:lo="medium",expandIconPosition:uo="start"}=eo,{value:ho,disabled:go,open:mo}=useAccordionItemContext_unstable(),yo=useAccordionContext_unstable($o=>$o.requestToggle),So=useAccordionContext_unstable($o=>!$o.collapsible&&$o.openItems.length===1&&mo),{dir:_o}=useFluent();let ko;uo==="end"?ko=mo?-90:90:ko=mo?90:_o!=="rtl"?0:180;const Co=always(io,{elementType:"button",defaultProps:{disabled:go,disabledFocusable:So,"aria-expanded":mo,type:"button"}});return Co.onClick=useEventCallback$3($o=>{if(isResolvedShorthand(io)){var Ro;(Ro=io.onClick)===null||Ro===void 0||Ro.call(io,$o)}$o.defaultPrevented||yo({value:ho,event:$o})}),{disabled:go,open:mo,size:lo,inline:ao,expandIconPosition:uo,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),icon:optional(no,{elementType:"div"}),expandIcon:optional(so,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(ChevronRightRegular,{style:{transform:`rotate(${ko}deg)`}}),"aria-hidden":!0},elementType:"span"}),button:useARIAButtonProps(Co.as,Co)}},AccordionHeaderContext=reactExports.createContext(void 0),{Provider:AccordionHeaderProvider}=AccordionHeaderContext,renderAccordionHeader_unstable=(eo,to)=>jsx$1(AccordionHeaderProvider,{value:to.accordionHeader,children:jsx$1(eo.root,{children:jsxs(eo.button,{children:[eo.expandIconPosition==="start"&&eo.expandIcon&&jsx$1(eo.expandIcon,{}),eo.icon&&jsx$1(eo.icon,{}),eo.root.children,eo.expandIconPosition==="end"&&eo.expandIcon&&jsx$1(eo.expandIcon,{})]})})}),accordionHeaderClassNames={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},useStyles$N=__styles({resetButton:{B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],Bv0vk6g:"f37px4s",fsow6f:"fgusgyc"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"frrh606",clg4pj:["f1v5zibi","fo2hd23"],hgwjuy:"ful5kiu",Bonggc9:["fo2hd23","f1v5zibi"],B1tsrr9:["f1jqcqds","ftffrms"],Dah5zi:["ftffrms","f1jqcqds"],Bkh64rk:["f2e7qr6","fsr1zz6"],qqdqy8:["fsr1zz6","f2e7qr6"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},root:{sj55zd:"f19n0e5",De3pzq:"f1c21dwh",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},rootDisabled:{Bcmaq0h:"fwrgwhw",sj55zd:"f1s2aq7o"},rootInline:{mc9l5x:"f14t3ns0"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],z8tnut:"f1g0x7ka",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"f1qch9an",uwmqm3:["f1ng84yb","f11gcy0p"],sshi5w:"f5pgtk9",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B7ck84d:"f1ewtqcl"},buttonSmall:{sshi5w:"f1nxs5xn",Be2twd7:"fy9rknc"},buttonLarge:{Bg96gwp:"faaz57k",Be2twd7:"fod5ikn"},buttonExtraLarge:{Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},buttonInline:{mc9l5x:"ftuwxu6"},buttonExpandIconEndNoIcon:{uwmqm3:["f1uw59to","fw5db7e"]},buttonExpandIconEnd:{z189sj:["f11gcy0p","f1ng84yb"]},buttonDisabled:{Bceei9c:"fdrzuqr"},expandIcon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},expandIconStart:{z189sj:["f1vdfbxk","f1f5gg8d"]},expandIconEnd:{Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"flqd7gy",mc9l5x:"f22iagw",Brf1p80:"f9c4gz4",uwmqm3:["f1f5gg8d","f1vdfbxk"]},icon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",z189sj:["f1vdfbxk","f1f5gg8d"],Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"}},{d:[".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f37px4s{-webkit-appearance:button;}",".fgusgyc{text-align:unset;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".frrh606[data-fui-focus-visible]::after{border-top-width:2px;}",".f1v5zibi[data-fui-focus-visible]::after{border-right-width:2px;}",".fo2hd23[data-fui-focus-visible]::after{border-left-width:2px;}",".ful5kiu[data-fui-focus-visible]::after{border-bottom-width:2px;}",".f1jqcqds[data-fui-focus-visible]::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".ftffrms[data-fui-focus-visible]::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f2e7qr6[data-fui-focus-visible]::after{border-top-right-radius:var(--borderRadiusMedium);}",".fsr1zz6[data-fui-focus-visible]::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fwrgwhw{background-image:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f14t3ns0{display:inline-block;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f5pgtk9{min-height:44px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1ewtqcl{box-sizing:border-box;}",".f1nxs5xn{min-height:32px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".ftuwxu6{display:inline-flex;}",".fdrzuqr{cursor:not-allowed;}",".f1l02sjl{height:100%;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".flqd7gy{flex-basis:0%;}",".f9c4gz4{justify-content:flex-end;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),useAccordionHeaderStyles_unstable=eo=>{const to=useStyles$N();return eo.root.className=mergeClasses(accordionHeaderClassNames.root,to.root,eo.inline&&to.rootInline,eo.disabled&&to.rootDisabled,eo.root.className),eo.button.className=mergeClasses(accordionHeaderClassNames.button,to.resetButton,to.button,to.focusIndicator,eo.expandIconPosition==="end"&&!eo.icon&&to.buttonExpandIconEndNoIcon,eo.expandIconPosition==="end"&&to.buttonExpandIconEnd,eo.inline&&to.buttonInline,eo.size==="small"&&to.buttonSmall,eo.size==="large"&&to.buttonLarge,eo.size==="extra-large"&&to.buttonExtraLarge,eo.disabled&&to.buttonDisabled,eo.button.className),eo.expandIcon&&(eo.expandIcon.className=mergeClasses(accordionHeaderClassNames.expandIcon,to.expandIcon,eo.expandIconPosition==="start"&&to.expandIconStart,eo.expandIconPosition==="end"&&to.expandIconEnd,eo.expandIcon.className)),eo.icon&&(eo.icon.className=mergeClasses(accordionHeaderClassNames.icon,to.icon,eo.icon.className)),eo};function useAccordionHeaderContextValues_unstable(eo){const{disabled:to,expandIconPosition:no,open:io,size:so}=eo;return{accordionHeader:reactExports.useMemo(()=>({disabled:to,expandIconPosition:no,open:io,size:so}),[to,no,io,so])}}const AccordionHeader=reactExports.forwardRef((eo,to)=>{const no=useAccordionHeader_unstable(eo,to),io=useAccordionHeaderContextValues_unstable(no);return useAccordionHeaderStyles_unstable(no),useCustomStyleHook("useAccordionHeaderStyles_unstable")(no),renderAccordionHeader_unstable(no,io)});AccordionHeader.displayName="AccordionHeader";const useAccordionPanel_unstable=(eo,to)=>{const{open:no}=useAccordionItemContext_unstable(),io=useTabsterAttributes({focusable:{excludeFromMover:!0}}),so=useAccordionContext_unstable(ao=>ao.navigation);return{open:no,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo,...so&&io}),{elementType:"div"})}},renderAccordionPanel_unstable=eo=>eo.open?jsx$1(eo.root,{children:eo.root.children}):null,accordionPanelClassNames={root:"fui-AccordionPanel"},useStyles$M=__styles({root:{B6of3ja:"f1hu3pq6",t21cq0:["fkujibs","f199hnxi"],jrapky:"f19f4twv",Frg6f3:["f199hnxi","fkujibs"]}},{d:[".f1hu3pq6{margin-top:0;}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f19f4twv{margin-bottom:0;}"]}),useAccordionPanelStyles_unstable=eo=>{const to=useStyles$M();return eo.root.className=mergeClasses(accordionPanelClassNames.root,to.root,eo.root.className),eo},AccordionPanel=reactExports.forwardRef((eo,to)=>{const no=useAccordionPanel_unstable(eo,to);return useAccordionPanelStyles_unstable(no),useCustomStyleHook("useAccordionPanelStyles_unstable")(no),renderAccordionPanel_unstable(no)});AccordionPanel.displayName="AccordionPanel";const useBadge_unstable=(eo,to)=>{const{shape:no="circular",size:io="medium",iconPosition:so="before",appearance:ao="filled",color:lo="brand"}=eo;return{shape:no,size:io,iconPosition:so,appearance:ao,color:lo,components:{root:"div",icon:"span"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),icon:optional(eo.icon,{elementType:"span"})}},badgeClassNames={root:"fui-Badge",icon:"fui-Badge__icon"},useRootClassName$1=__resetStyles("r1l7mb74","rntuq2r",[".r1l7mb74{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1l7mb74::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".rntuq2r{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.rntuq2r::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}']),useRootStyles$b=__styles({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},small:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",z8tnut:"f1g0x7ka",z189sj:["fps1v9c","f17ae1jz"],Byoj8tv:"f1qch9an",uwmqm3:["f17ae1jz","fps1v9c"]},medium:{},large:{a9b677:"fq4mcun",Bqenvij:"frvgh55",z8tnut:"f1g0x7ka",z189sj:["f17a92cs","f1pe0i86"],Byoj8tv:"f1qch9an",uwmqm3:["f1pe0i86","f17a92cs"]},"extra-large":{a9b677:"f1szoe96",Bqenvij:"f1d2rq10",z8tnut:"f1g0x7ka",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},roundedSmallToTiny:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",".f1q8r6hh{padding-top:unset;}",".fio2s09{padding-right:unset;}",".fkiw60q{padding-left:unset;}",".f9yu9nh{padding-bottom:unset;}",".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f1g0x7ka{padding-top:0;}",".fps1v9c{padding-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f17ae1jz{padding-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1qch9an{padding-bottom:0;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f17a92cs{padding-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1pe0i86{padding-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),useIconRootClassName=__resetStyles("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),useIconStyles$6=__styles({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),useBadgeStyles_unstable=eo=>{const to=useRootClassName$1(),no=useRootStyles$b(),io=eo.size==="small"||eo.size==="extra-small"||eo.size==="tiny";eo.root.className=mergeClasses(badgeClassNames.root,to,io&&no.fontSmallToTiny,no[eo.size],no[eo.shape],eo.shape==="rounded"&&io&&no.roundedSmallToTiny,eo.appearance==="ghost"&&no.borderGhost,no[eo.appearance],no[`${eo.appearance}-${eo.color}`],eo.root.className);const so=useIconRootClassName(),ao=useIconStyles$6();if(eo.icon){let lo;eo.root.children&&(eo.size==="extra-large"?lo=eo.iconPosition==="after"?ao.afterTextXL:ao.beforeTextXL:lo=eo.iconPosition==="after"?ao.afterText:ao.beforeText),eo.icon.className=mergeClasses(badgeClassNames.icon,so,lo,ao[eo.size],eo.icon.className)}return eo},renderBadge_unstable=eo=>jsxs(eo.root,{children:[eo.iconPosition==="before"&&eo.icon&&jsx$1(eo.icon,{}),eo.root.children,eo.iconPosition==="after"&&eo.icon&&jsx$1(eo.icon,{})]}),Badge$2=reactExports.forwardRef((eo,to)=>{const no=useBadge_unstable(eo,to);return useBadgeStyles_unstable(no),useCustomStyleHook("useBadgeStyles_unstable")(no),renderBadge_unstable(no)});Badge$2.displayName="Badge";const useCounterBadge_unstable=(eo,to)=>{const{shape:no="circular",appearance:io="filled",showZero:so=!1,overflowCount:ao=99,count:lo=0,dot:uo=!1}=eo,ho={...useBadge_unstable(eo,to),shape:no,appearance:io,showZero:so,count:lo,dot:uo};return(lo!==0||so)&&!uo&&!ho.root.children&&(ho.root.children=lo>ao?`${ao}+`:`${lo}`),ho},counterBadgeClassNames={root:"fui-CounterBadge",icon:"fui-CounterBadge__icon"},useStyles$L=__styles({dot:{Bf4jedk:"fgfkb25",a9b677:"f16dn6v3",Bqenvij:"f3mu39s",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"]},hide:{mc9l5x:"fjseox"}},{d:[".fgfkb25{min-width:auto;}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fjseox{display:none;}"]}),useCounterBadgeStyles_unstable=eo=>{const to=useStyles$L();return eo.root.className=mergeClasses(counterBadgeClassNames.root,eo.dot&&to.dot,!eo.root.children&&!eo.dot&&to.hide,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(counterBadgeClassNames.icon,eo.icon.className)),useBadgeStyles_unstable(eo)},CounterBadge=reactExports.forwardRef((eo,to)=>{const no=useCounterBadge_unstable(eo,to);return useCounterBadgeStyles_unstable(no),useCustomStyleHook("useCounterBadgeStyles_unstable")(no),renderBadge_unstable(no)});CounterBadge.displayName="CounterBadge";const avatarContext=reactExports.createContext(void 0),AvatarContextProvider=avatarContext.Provider;function createVirtualElementFromClick(eo){const to=eo.clientX,no=eo.clientY,io=to+1,so=no+1;function ao(){return{left:to,top:no,right:io,bottom:so,x:to,y:no,height:1,width:1}}return{getBoundingClientRect:ao}}const DATA_POSITIONING_INTERSECTING="data-popper-is-intersecting",DATA_POSITIONING_ESCAPED="data-popper-escaped",DATA_POSITIONING_HIDDEN="data-popper-reference-hidden",DATA_POSITIONING_PLACEMENT="data-popper-placement",sides=["top","right","bottom","left"],min$7=Math.min,max$7=Math.max,round$1=Math.round,createCoords=eo=>({x:eo,y:eo}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$2(eo,to,no){return max$7(eo,min$7(to,no))}function evaluate$1(eo,to){return typeof eo=="function"?eo(to):eo}function getSide(eo){return eo.split("-")[0]}function getAlignment(eo){return eo.split("-")[1]}function getOppositeAxis(eo){return eo==="x"?"y":"x"}function getAxisLength(eo){return eo==="y"?"height":"width"}function getSideAxis(eo){return["top","bottom"].includes(getSide(eo))?"y":"x"}function getAlignmentAxis(eo){return getOppositeAxis(getSideAxis(eo))}function getAlignmentSides(eo,to,no){no===void 0&&(no=!1);const io=getAlignment(eo),so=getAlignmentAxis(eo),ao=getAxisLength(so);let lo=so==="x"?io===(no?"end":"start")?"right":"left":io==="start"?"bottom":"top";return to.reference[ao]>to.floating[ao]&&(lo=getOppositePlacement(lo)),[lo,getOppositePlacement(lo)]}function getExpandedPlacements(eo){const to=getOppositePlacement(eo);return[getOppositeAlignmentPlacement(eo),to,getOppositeAlignmentPlacement(to)]}function getOppositeAlignmentPlacement(eo){return eo.replace(/start|end/g,to=>oppositeAlignmentMap[to])}function getSideList(eo,to,no){const io=["left","right"],so=["right","left"],ao=["top","bottom"],lo=["bottom","top"];switch(eo){case"top":case"bottom":return no?to?so:io:to?io:so;case"left":case"right":return to?ao:lo;default:return[]}}function getOppositeAxisPlacements(eo,to,no,io){const so=getAlignment(eo);let ao=getSideList(getSide(eo),no==="start",io);return so&&(ao=ao.map(lo=>lo+"-"+so),to&&(ao=ao.concat(ao.map(getOppositeAlignmentPlacement)))),ao}function getOppositePlacement(eo){return eo.replace(/left|right|bottom|top/g,to=>oppositeSideMap[to])}function expandPaddingObject(eo){return{top:0,right:0,bottom:0,left:0,...eo}}function getPaddingObject(eo){return typeof eo!="number"?expandPaddingObject(eo):{top:eo,right:eo,bottom:eo,left:eo}}function rectToClientRect(eo){return{...eo,top:eo.y,left:eo.x,right:eo.x+eo.width,bottom:eo.y+eo.height}}function computeCoordsFromPlacement(eo,to,no){let{reference:io,floating:so}=eo;const ao=getSideAxis(to),lo=getAlignmentAxis(to),uo=getAxisLength(lo),ho=getSide(to),go=ao==="y",mo=io.x+io.width/2-so.width/2,yo=io.y+io.height/2-so.height/2,So=io[uo]/2-so[uo]/2;let _o;switch(ho){case"top":_o={x:mo,y:io.y-so.height};break;case"bottom":_o={x:mo,y:io.y+io.height};break;case"right":_o={x:io.x+io.width,y:yo};break;case"left":_o={x:io.x-so.width,y:yo};break;default:_o={x:io.x,y:io.y}}switch(getAlignment(to)){case"start":_o[lo]-=So*(no&&go?-1:1);break;case"end":_o[lo]+=So*(no&&go?-1:1);break}return _o}const computePosition$1=async(eo,to,no)=>{const{placement:io="bottom",strategy:so="absolute",middleware:ao=[],platform:lo}=no,uo=ao.filter(Boolean),ho=await(lo.isRTL==null?void 0:lo.isRTL(to));let go=await lo.getElementRects({reference:eo,floating:to,strategy:so}),{x:mo,y:yo}=computeCoordsFromPlacement(go,io,ho),So=io,_o={},ko=0;for(let Co=0;Co({name:"arrow",options:eo,async fn(to){const{x:no,y:io,placement:so,rects:ao,platform:lo,elements:uo,middlewareData:ho}=to,{element:go,padding:mo=0}=evaluate$1(eo,to)||{};if(go==null)return{};const yo=getPaddingObject(mo),So={x:no,y:io},_o=getAlignmentAxis(so),ko=getAxisLength(_o),Co=await lo.getDimensions(go),$o=_o==="y",Ro=$o?"top":"left",Oo=$o?"bottom":"right",No=$o?"clientHeight":"clientWidth",Mo=ao.reference[ko]+ao.reference[_o]-So[_o]-ao.floating[ko],Bo=So[_o]-ao.reference[_o],Po=await(lo.getOffsetParent==null?void 0:lo.getOffsetParent(go));let Lo=Po?Po[No]:0;(!Lo||!await(lo.isElement==null?void 0:lo.isElement(Po)))&&(Lo=uo.floating[No]||ao.floating[ko]);const Go=Mo/2-Bo/2,Do=Lo/2-Co[ko]/2-1,Uo=min$7(yo[Ro],Do),Ho=min$7(yo[Oo],Do),Yo=Uo,qo=Lo-Co[ko]-Ho,Jo=Lo/2-Co[ko]/2+Go,ps=clamp$2(Yo,Jo,qo),Qo=!ho.arrow&&getAlignment(so)!=null&&Jo!=ps&&ao.reference[ko]/2-(JoYo<=0)){var Do,Uo;const Yo=(((Do=ao.flip)==null?void 0:Do.index)||0)+1,qo=Bo[Yo];if(qo)return{data:{index:Yo,overflows:Go},reset:{placement:qo}};let Jo=(Uo=Go.filter(ps=>ps.overflows[0]<=0).sort((ps,Qo)=>ps.overflows[1]-Qo.overflows[1])[0])==null?void 0:Uo.placement;if(!Jo)switch(_o){case"bestFit":{var Ho;const ps=(Ho=Go.map(Qo=>[Qo.placement,Qo.overflows.filter(hs=>hs>0).reduce((hs,gs)=>hs+gs,0)]).sort((Qo,hs)=>Qo[1]-hs[1])[0])==null?void 0:Ho[0];ps&&(Jo=ps);break}case"initialPlacement":Jo=uo;break}if(so!==Jo)return{reset:{placement:Jo}}}return{}}}};function getSideOffsets(eo,to){return{top:eo.top-to.height,right:eo.right-to.width,bottom:eo.bottom-to.height,left:eo.left-to.width}}function isAnySideFullyClipped(eo){return sides.some(to=>eo[to]>=0)}const hide=function(eo){return eo===void 0&&(eo={}),{name:"hide",options:eo,async fn(to){const{rects:no}=to,{strategy:io="referenceHidden",...so}=evaluate$1(eo,to);switch(io){case"referenceHidden":{const ao=await detectOverflow(to,{...so,elementContext:"reference"}),lo=getSideOffsets(ao,no.reference);return{data:{referenceHiddenOffsets:lo,referenceHidden:isAnySideFullyClipped(lo)}}}case"escaped":{const ao=await detectOverflow(to,{...so,altBoundary:!0}),lo=getSideOffsets(ao,no.floating);return{data:{escapedOffsets:lo,escaped:isAnySideFullyClipped(lo)}}}default:return{}}}}};async function convertValueToCoords(eo,to){const{placement:no,platform:io,elements:so}=eo,ao=await(io.isRTL==null?void 0:io.isRTL(so.floating)),lo=getSide(no),uo=getAlignment(no),ho=getSideAxis(no)==="y",go=["left","top"].includes(lo)?-1:1,mo=ao&&ho?-1:1,yo=evaluate$1(to,eo);let{mainAxis:So,crossAxis:_o,alignmentAxis:ko}=typeof yo=="number"?{mainAxis:yo,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...yo};return uo&&typeof ko=="number"&&(_o=uo==="end"?ko*-1:ko),ho?{x:_o*mo,y:So*go}:{x:So*go,y:_o*mo}}const offset$1=function(eo){return eo===void 0&&(eo=0),{name:"offset",options:eo,async fn(to){var no,io;const{x:so,y:ao,placement:lo,middlewareData:uo}=to,ho=await convertValueToCoords(to,eo);return lo===((no=uo.offset)==null?void 0:no.placement)&&(io=uo.arrow)!=null&&io.alignmentOffset?{}:{x:so+ho.x,y:ao+ho.y,data:{...ho,placement:lo}}}}},shift$2=function(eo){return eo===void 0&&(eo={}),{name:"shift",options:eo,async fn(to){const{x:no,y:io,placement:so}=to,{mainAxis:ao=!0,crossAxis:lo=!1,limiter:uo={fn:$o=>{let{x:Ro,y:Oo}=$o;return{x:Ro,y:Oo}}},...ho}=evaluate$1(eo,to),go={x:no,y:io},mo=await detectOverflow(to,ho),yo=getSideAxis(getSide(so)),So=getOppositeAxis(yo);let _o=go[So],ko=go[yo];if(ao){const $o=So==="y"?"top":"left",Ro=So==="y"?"bottom":"right",Oo=_o+mo[$o],No=_o-mo[Ro];_o=clamp$2(Oo,_o,No)}if(lo){const $o=yo==="y"?"top":"left",Ro=yo==="y"?"bottom":"right",Oo=ko+mo[$o],No=ko-mo[Ro];ko=clamp$2(Oo,ko,No)}const Co=uo.fn({...to,[So]:_o,[yo]:ko});return{...Co,data:{x:Co.x-no,y:Co.y-io}}}}},limitShift=function(eo){return eo===void 0&&(eo={}),{options:eo,fn(to){const{x:no,y:io,placement:so,rects:ao,middlewareData:lo}=to,{offset:uo=0,mainAxis:ho=!0,crossAxis:go=!0}=evaluate$1(eo,to),mo={x:no,y:io},yo=getSideAxis(so),So=getOppositeAxis(yo);let _o=mo[So],ko=mo[yo];const Co=evaluate$1(uo,to),$o=typeof Co=="number"?{mainAxis:Co,crossAxis:0}:{mainAxis:0,crossAxis:0,...Co};if(ho){const No=So==="y"?"height":"width",Mo=ao.reference[So]-ao.floating[No]+$o.mainAxis,Bo=ao.reference[So]+ao.reference[No]-$o.mainAxis;_oBo&&(_o=Bo)}if(go){var Ro,Oo;const No=So==="y"?"width":"height",Mo=["top","left"].includes(getSide(so)),Bo=ao.reference[yo]-ao.floating[No]+(Mo&&((Ro=lo.offset)==null?void 0:Ro[yo])||0)+(Mo?0:$o.crossAxis),Po=ao.reference[yo]+ao.reference[No]+(Mo?0:((Oo=lo.offset)==null?void 0:Oo[yo])||0)-(Mo?$o.crossAxis:0);koPo&&(ko=Po)}return{[So]:_o,[yo]:ko}}}},size=function(eo){return eo===void 0&&(eo={}),{name:"size",options:eo,async fn(to){const{placement:no,rects:io,platform:so,elements:ao}=to,{apply:lo=()=>{},...uo}=evaluate$1(eo,to),ho=await detectOverflow(to,uo),go=getSide(no),mo=getAlignment(no),yo=getSideAxis(no)==="y",{width:So,height:_o}=io.floating;let ko,Co;go==="top"||go==="bottom"?(ko=go,Co=mo===(await(so.isRTL==null?void 0:so.isRTL(ao.floating))?"start":"end")?"left":"right"):(Co=go,ko=mo==="end"?"top":"bottom");const $o=_o-ho[ko],Ro=So-ho[Co],Oo=!to.middlewareData.shift;let No=$o,Mo=Ro;if(yo){const Po=So-ho.left-ho.right;Mo=mo||Oo?min$7(Ro,Po):Po}else{const Po=_o-ho.top-ho.bottom;No=mo||Oo?min$7($o,Po):Po}if(Oo&&!mo){const Po=max$7(ho.left,0),Lo=max$7(ho.right,0),Go=max$7(ho.top,0),Do=max$7(ho.bottom,0);yo?Mo=So-2*(Po!==0||Lo!==0?Po+Lo:max$7(ho.left,ho.right)):No=_o-2*(Go!==0||Do!==0?Go+Do:max$7(ho.top,ho.bottom))}await lo({...to,availableWidth:Mo,availableHeight:No});const Bo=await so.getDimensions(ao.floating);return So!==Bo.width||_o!==Bo.height?{reset:{rects:!0}}:{}}}};function getNodeName(eo){return isNode(eo)?(eo.nodeName||"").toLowerCase():"#document"}function getWindow$1(eo){var to;return(eo==null||(to=eo.ownerDocument)==null?void 0:to.defaultView)||window}function getDocumentElement(eo){var to;return(to=(isNode(eo)?eo.ownerDocument:eo.document)||window.document)==null?void 0:to.documentElement}function isNode(eo){return eo instanceof Node||eo instanceof getWindow$1(eo).Node}function isElement$1(eo){return eo instanceof Element||eo instanceof getWindow$1(eo).Element}function isHTMLElement$4(eo){return eo instanceof HTMLElement||eo instanceof getWindow$1(eo).HTMLElement}function isShadowRoot(eo){return typeof ShadowRoot>"u"?!1:eo instanceof ShadowRoot||eo instanceof getWindow$1(eo).ShadowRoot}function isOverflowElement(eo){const{overflow:to,overflowX:no,overflowY:io,display:so}=getComputedStyle$1(eo);return/auto|scroll|overlay|hidden|clip/.test(to+io+no)&&!["inline","contents"].includes(so)}function isTableElement(eo){return["table","td","th"].includes(getNodeName(eo))}function isContainingBlock(eo){const to=isWebKit(),no=getComputedStyle$1(eo);return no.transform!=="none"||no.perspective!=="none"||(no.containerType?no.containerType!=="normal":!1)||!to&&(no.backdropFilter?no.backdropFilter!=="none":!1)||!to&&(no.filter?no.filter!=="none":!1)||["transform","perspective","filter"].some(io=>(no.willChange||"").includes(io))||["paint","layout","strict","content"].some(io=>(no.contain||"").includes(io))}function getContainingBlock(eo){let to=getParentNode$1(eo);for(;isHTMLElement$4(to)&&!isLastTraversableNode(to);){if(isContainingBlock(to))return to;to=getParentNode$1(to)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(eo){return["html","body","#document"].includes(getNodeName(eo))}function getComputedStyle$1(eo){return getWindow$1(eo).getComputedStyle(eo)}function getNodeScroll(eo){return isElement$1(eo)?{scrollLeft:eo.scrollLeft,scrollTop:eo.scrollTop}:{scrollLeft:eo.pageXOffset,scrollTop:eo.pageYOffset}}function getParentNode$1(eo){if(getNodeName(eo)==="html")return eo;const to=eo.assignedSlot||eo.parentNode||isShadowRoot(eo)&&eo.host||getDocumentElement(eo);return isShadowRoot(to)?to.host:to}function getNearestOverflowAncestor(eo){const to=getParentNode$1(eo);return isLastTraversableNode(to)?eo.ownerDocument?eo.ownerDocument.body:eo.body:isHTMLElement$4(to)&&isOverflowElement(to)?to:getNearestOverflowAncestor(to)}function getOverflowAncestors(eo,to,no){var io;to===void 0&&(to=[]),no===void 0&&(no=!0);const so=getNearestOverflowAncestor(eo),ao=so===((io=eo.ownerDocument)==null?void 0:io.body),lo=getWindow$1(so);return ao?to.concat(lo,lo.visualViewport||[],isOverflowElement(so)?so:[],lo.frameElement&&no?getOverflowAncestors(lo.frameElement):[]):to.concat(so,getOverflowAncestors(so,[],no))}function getCssDimensions(eo){const to=getComputedStyle$1(eo);let no=parseFloat(to.width)||0,io=parseFloat(to.height)||0;const so=isHTMLElement$4(eo),ao=so?eo.offsetWidth:no,lo=so?eo.offsetHeight:io,uo=round$1(no)!==ao||round$1(io)!==lo;return uo&&(no=ao,io=lo),{width:no,height:io,$:uo}}function unwrapElement(eo){return isElement$1(eo)?eo:eo.contextElement}function getScale$1(eo){const to=unwrapElement(eo);if(!isHTMLElement$4(to))return createCoords(1);const no=to.getBoundingClientRect(),{width:io,height:so,$:ao}=getCssDimensions(to);let lo=(ao?round$1(no.width):no.width)/io,uo=(ao?round$1(no.height):no.height)/so;return(!lo||!Number.isFinite(lo))&&(lo=1),(!uo||!Number.isFinite(uo))&&(uo=1),{x:lo,y:uo}}const noOffsets=createCoords(0);function getVisualOffsets(eo){const to=getWindow$1(eo);return!isWebKit()||!to.visualViewport?noOffsets:{x:to.visualViewport.offsetLeft,y:to.visualViewport.offsetTop}}function shouldAddVisualOffsets(eo,to,no){return to===void 0&&(to=!1),!no||to&&no!==getWindow$1(eo)?!1:to}function getBoundingClientRect(eo,to,no,io){to===void 0&&(to=!1),no===void 0&&(no=!1);const so=eo.getBoundingClientRect(),ao=unwrapElement(eo);let lo=createCoords(1);to&&(io?isElement$1(io)&&(lo=getScale$1(io)):lo=getScale$1(eo));const uo=shouldAddVisualOffsets(ao,no,io)?getVisualOffsets(ao):createCoords(0);let ho=(so.left+uo.x)/lo.x,go=(so.top+uo.y)/lo.y,mo=so.width/lo.x,yo=so.height/lo.y;if(ao){const So=getWindow$1(ao),_o=io&&isElement$1(io)?getWindow$1(io):io;let ko=So.frameElement;for(;ko&&io&&_o!==So;){const Co=getScale$1(ko),$o=ko.getBoundingClientRect(),Ro=getComputedStyle$1(ko),Oo=$o.left+(ko.clientLeft+parseFloat(Ro.paddingLeft))*Co.x,No=$o.top+(ko.clientTop+parseFloat(Ro.paddingTop))*Co.y;ho*=Co.x,go*=Co.y,mo*=Co.x,yo*=Co.y,ho+=Oo,go+=No,ko=getWindow$1(ko).frameElement}}return rectToClientRect({width:mo,height:yo,x:ho,y:go})}function convertOffsetParentRelativeRectToViewportRelativeRect(eo){let{rect:to,offsetParent:no,strategy:io}=eo;const so=isHTMLElement$4(no),ao=getDocumentElement(no);if(no===ao)return to;let lo={scrollLeft:0,scrollTop:0},uo=createCoords(1);const ho=createCoords(0);if((so||!so&&io!=="fixed")&&((getNodeName(no)!=="body"||isOverflowElement(ao))&&(lo=getNodeScroll(no)),isHTMLElement$4(no))){const go=getBoundingClientRect(no);uo=getScale$1(no),ho.x=go.x+no.clientLeft,ho.y=go.y+no.clientTop}return{width:to.width*uo.x,height:to.height*uo.y,x:to.x*uo.x-lo.scrollLeft*uo.x+ho.x,y:to.y*uo.y-lo.scrollTop*uo.y+ho.y}}function getClientRects(eo){return Array.from(eo.getClientRects())}function getWindowScrollBarX(eo){return getBoundingClientRect(getDocumentElement(eo)).left+getNodeScroll(eo).scrollLeft}function getDocumentRect(eo){const to=getDocumentElement(eo),no=getNodeScroll(eo),io=eo.ownerDocument.body,so=max$7(to.scrollWidth,to.clientWidth,io.scrollWidth,io.clientWidth),ao=max$7(to.scrollHeight,to.clientHeight,io.scrollHeight,io.clientHeight);let lo=-no.scrollLeft+getWindowScrollBarX(eo);const uo=-no.scrollTop;return getComputedStyle$1(io).direction==="rtl"&&(lo+=max$7(to.clientWidth,io.clientWidth)-so),{width:so,height:ao,x:lo,y:uo}}function getViewportRect(eo,to){const no=getWindow$1(eo),io=getDocumentElement(eo),so=no.visualViewport;let ao=io.clientWidth,lo=io.clientHeight,uo=0,ho=0;if(so){ao=so.width,lo=so.height;const go=isWebKit();(!go||go&&to==="fixed")&&(uo=so.offsetLeft,ho=so.offsetTop)}return{width:ao,height:lo,x:uo,y:ho}}function getInnerBoundingClientRect(eo,to){const no=getBoundingClientRect(eo,!0,to==="fixed"),io=no.top+eo.clientTop,so=no.left+eo.clientLeft,ao=isHTMLElement$4(eo)?getScale$1(eo):createCoords(1),lo=eo.clientWidth*ao.x,uo=eo.clientHeight*ao.y,ho=so*ao.x,go=io*ao.y;return{width:lo,height:uo,x:ho,y:go}}function getClientRectFromClippingAncestor(eo,to,no){let io;if(to==="viewport")io=getViewportRect(eo,no);else if(to==="document")io=getDocumentRect(getDocumentElement(eo));else if(isElement$1(to))io=getInnerBoundingClientRect(to,no);else{const so=getVisualOffsets(eo);io={...to,x:to.x-so.x,y:to.y-so.y}}return rectToClientRect(io)}function hasFixedPositionAncestor(eo,to){const no=getParentNode$1(eo);return no===to||!isElement$1(no)||isLastTraversableNode(no)?!1:getComputedStyle$1(no).position==="fixed"||hasFixedPositionAncestor(no,to)}function getClippingElementAncestors(eo,to){const no=to.get(eo);if(no)return no;let io=getOverflowAncestors(eo,[],!1).filter(uo=>isElement$1(uo)&&getNodeName(uo)!=="body"),so=null;const ao=getComputedStyle$1(eo).position==="fixed";let lo=ao?getParentNode$1(eo):eo;for(;isElement$1(lo)&&!isLastTraversableNode(lo);){const uo=getComputedStyle$1(lo),ho=isContainingBlock(lo);!ho&&uo.position==="fixed"&&(so=null),(ao?!ho&&!so:!ho&&uo.position==="static"&&!!so&&["absolute","fixed"].includes(so.position)||isOverflowElement(lo)&&!ho&&hasFixedPositionAncestor(eo,lo))?io=io.filter(mo=>mo!==lo):so=uo,lo=getParentNode$1(lo)}return to.set(eo,io),io}function getClippingRect(eo){let{element:to,boundary:no,rootBoundary:io,strategy:so}=eo;const lo=[...no==="clippingAncestors"?getClippingElementAncestors(to,this._c):[].concat(no),io],uo=lo[0],ho=lo.reduce((go,mo)=>{const yo=getClientRectFromClippingAncestor(to,mo,so);return go.top=max$7(yo.top,go.top),go.right=min$7(yo.right,go.right),go.bottom=min$7(yo.bottom,go.bottom),go.left=max$7(yo.left,go.left),go},getClientRectFromClippingAncestor(to,uo,so));return{width:ho.right-ho.left,height:ho.bottom-ho.top,x:ho.left,y:ho.top}}function getDimensions(eo){return getCssDimensions(eo)}function getRectRelativeToOffsetParent(eo,to,no){const io=isHTMLElement$4(to),so=getDocumentElement(to),ao=no==="fixed",lo=getBoundingClientRect(eo,!0,ao,to);let uo={scrollLeft:0,scrollTop:0};const ho=createCoords(0);if(io||!io&&!ao)if((getNodeName(to)!=="body"||isOverflowElement(so))&&(uo=getNodeScroll(to)),io){const go=getBoundingClientRect(to,!0,ao,to);ho.x=go.x+to.clientLeft,ho.y=go.y+to.clientTop}else so&&(ho.x=getWindowScrollBarX(so));return{x:lo.left+uo.scrollLeft-ho.x,y:lo.top+uo.scrollTop-ho.y,width:lo.width,height:lo.height}}function getTrueOffsetParent(eo,to){return!isHTMLElement$4(eo)||getComputedStyle$1(eo).position==="fixed"?null:to?to(eo):eo.offsetParent}function getOffsetParent(eo,to){const no=getWindow$1(eo);if(!isHTMLElement$4(eo))return no;let io=getTrueOffsetParent(eo,to);for(;io&&isTableElement(io)&&getComputedStyle$1(io).position==="static";)io=getTrueOffsetParent(io,to);return io&&(getNodeName(io)==="html"||getNodeName(io)==="body"&&getComputedStyle$1(io).position==="static"&&!isContainingBlock(io))?no:io||getContainingBlock(eo)||no}const getElementRects=async function(eo){let{reference:to,floating:no,strategy:io}=eo;const so=this.getOffsetParent||getOffsetParent,ao=this.getDimensions;return{reference:getRectRelativeToOffsetParent(to,await so(no),io),floating:{x:0,y:0,...await ao(no)}}};function isRTL(eo){return getComputedStyle$1(eo).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale:getScale$1,isElement:isElement$1,isRTL},computePosition=(eo,to,no)=>{const io=new Map,so={platform,...no},ao={...so.platform,_c:io};return computePosition$1(eo,to,{...so,platform:ao})};function parseFloatingUIPlacement(eo){const to=eo.split("-");return{side:to[0],alignment:to[1]}}const getParentNode=eo=>eo.nodeName==="HTML"?eo:eo.parentNode||eo.host,getStyleComputedProperty=eo=>{var to;return eo.nodeType!==1?{}:((to=eo.ownerDocument)===null||to===void 0?void 0:to.defaultView).getComputedStyle(eo,null)},getScrollParent=eo=>{const to=eo&&getParentNode(eo);if(!to)return document.body;switch(to.nodeName){case"HTML":case"BODY":return to.ownerDocument.body;case"#document":return to.body}const{overflow:no,overflowX:io,overflowY:so}=getStyleComputedProperty(to);return/(auto|scroll|overlay)/.test(no+so+io)?to:getScrollParent(to)},hasScrollParent=eo=>{var to;const no=getScrollParent(eo);return no?no!==((to=no.ownerDocument)===null||to===void 0?void 0:to.body):!1};function getBoundary(eo,to){if(to==="window")return eo==null?void 0:eo.ownerDocument.documentElement;if(to==="clippingParents")return"clippingAncestors";if(to==="scrollParent"){let no=getScrollParent(eo);return no.nodeName==="BODY"&&(no=eo==null?void 0:eo.ownerDocument.documentElement),no}return to}function mergeArrowOffset(eo,to){return typeof eo=="number"||typeof eo=="object"&&eo!==null?addArrowOffset(eo,to):typeof eo=="function"?no=>{const io=eo(no);return addArrowOffset(io,to)}:{mainAxis:to}}const addArrowOffset=(eo,to)=>{if(typeof eo=="number")return{mainAxis:eo+to};var no;return{...eo,mainAxis:((no=eo.mainAxis)!==null&&no!==void 0?no:0)+to}};function toFloatingUIPadding(eo,to){if(typeof eo=="number")return eo;const{start:no,end:io,...so}=eo,ao=so,lo=to?"end":"start",uo=to?"start":"end";return eo[lo]&&(ao.left=eo[lo]),eo[uo]&&(ao.right=eo[uo]),ao}const getPositionMap$1=eo=>({above:"top",below:"bottom",before:eo?"right":"left",after:eo?"left":"right"}),getAlignmentMap$1=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),shouldAlignToCenter=(eo,to)=>{const no=eo==="above"||eo==="below",io=to==="top"||to==="bottom";return no&&io||!no&&!io},toFloatingUIPlacement=(eo,to,no)=>{const io=shouldAlignToCenter(to,eo)?"center":eo,so=to&&getPositionMap$1(no)[to],ao=io&&getAlignmentMap$1()[io];return so&&ao?`${so}-${ao}`:so},getPositionMap=()=>({top:"above",bottom:"below",right:"after",left:"before"}),getAlignmentMap=eo=>eo==="above"||eo==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},fromFloatingUIPlacement=eo=>{const{side:to,alignment:no}=parseFloatingUIPlacement(eo),io=getPositionMap()[to],so=no&&getAlignmentMap(io)[no];return{position:io,alignment:so}},shorthandLookup={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function resolvePositioningShorthand(eo){return eo==null?{}:typeof eo=="string"?shorthandLookup[eo]:eo}function useCallbackRef(eo,to,no){const io=reactExports.useRef(!0),[so]=reactExports.useState(()=>({value:eo,callback:to,facade:{get current(){return so.value},set current(ao){const lo=so.value;if(lo!==ao){if(so.value=ao,no&&io.current)return;so.callback(ao,lo)}}}}));return useIsomorphicLayoutEffect$1(()=>{io.current=!1},[]),so.callback=to,so.facade}function debounce$2(eo){let to;return()=>(to||(to=new Promise(no=>{Promise.resolve().then(()=>{to=void 0,no(eo())})})),to)}function writeArrowUpdates(eo){const{arrow:to,middlewareData:no}=eo;if(!no.arrow||!to)return;const{x:io,y:so}=no.arrow;Object.assign(to.style,{left:`${io}px`,top:`${so}px`})}function writeContainerUpdates(eo){var to,no,io;const{container:so,placement:ao,middlewareData:lo,strategy:uo,lowPPI:ho,coordinates:go,useTransform:mo=!0}=eo;if(!so)return;so.setAttribute(DATA_POSITIONING_PLACEMENT,ao),so.removeAttribute(DATA_POSITIONING_INTERSECTING),lo.intersectionObserver.intersecting&&so.setAttribute(DATA_POSITIONING_INTERSECTING,""),so.removeAttribute(DATA_POSITIONING_ESCAPED),!((to=lo.hide)===null||to===void 0)&&to.escaped&&so.setAttribute(DATA_POSITIONING_ESCAPED,""),so.removeAttribute(DATA_POSITIONING_HIDDEN),!((no=lo.hide)===null||no===void 0)&&no.referenceHidden&&so.setAttribute(DATA_POSITIONING_HIDDEN,"");const yo=((io=so.ownerDocument.defaultView)===null||io===void 0?void 0:io.devicePixelRatio)||1,So=Math.round(go.x*yo)/yo,_o=Math.round(go.y*yo)/yo;if(Object.assign(so.style,{position:uo}),mo){Object.assign(so.style,{transform:ho?`translate(${So}px, ${_o}px)`:`translate3d(${So}px, ${_o}px, 0)`});return}Object.assign(so.style,{left:`${So}px`,top:`${_o}px`})}const normalizeAutoSize=eo=>{switch(eo){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function coverTarget(){return{name:"coverTarget",fn:eo=>{const{placement:to,rects:no,x:io,y:so}=eo,ao=parseFloatingUIPlacement(to).side,lo={x:io,y:so};switch(ao){case"bottom":lo.y-=no.reference.height;break;case"top":lo.y+=no.reference.height;break;case"left":lo.x+=no.reference.width;break;case"right":lo.x-=no.reference.width;break}return lo}}}function flip(eo){const{hasScrollableElement:to,flipBoundary:no,container:io,fallbackPositions:so=[],isRtl:ao}=eo,lo=so.reduce((uo,ho)=>{const{position:go,align:mo}=resolvePositioningShorthand(ho),yo=toFloatingUIPlacement(mo,go,ao);return yo&&uo.push(yo),uo},[]);return flip$1({...to&&{boundary:"clippingAncestors"},...no&&{altBoundary:!0,boundary:getBoundary(io,no)},fallbackStrategy:"bestFit",...lo.length&&{fallbackPlacements:lo}})}function intersecting(){return{name:"intersectionObserver",fn:async eo=>{const to=eo.rects.floating,no=await detectOverflow(eo,{altBoundary:!0}),io=no.top0,so=no.bottom0;return{data:{intersecting:io||so}}}}}const resetMaxSize=eo=>({name:"resetMaxSize",fn({middlewareData:to,elements:no}){var io;if(!((io=to.resetMaxSize)===null||io===void 0)&&io.maxSizeAlreadyReset)return{};const{applyMaxWidth:so,applyMaxHeight:ao}=eo;return so&&(no.floating.style.removeProperty("box-sizing"),no.floating.style.removeProperty("max-width"),no.floating.style.removeProperty("width")),ao&&(no.floating.style.removeProperty("box-sizing"),no.floating.style.removeProperty("max-height"),no.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function maxSize(eo,to){const{container:no,overflowBoundary:io}=to;return size({...io&&{altBoundary:!0,boundary:getBoundary(no,io)},apply({availableHeight:so,availableWidth:ao,elements:lo,rects:uo}){const ho=(yo,So,_o)=>{if(yo&&(lo.floating.style.setProperty("box-sizing","border-box"),lo.floating.style.setProperty(`max-${So}`,`${_o}px`),uo.floating[So]>_o)){lo.floating.style.setProperty(So,`${_o}px`);const ko=So==="width"?"x":"y";lo.floating.style.getPropertyValue(`overflow-${ko}`)||lo.floating.style.setProperty(`overflow-${ko}`,"auto")}},{applyMaxWidth:go,applyMaxHeight:mo}=eo;ho(go,"width",ao),ho(mo,"height",so)}})}function getFloatingUIOffset(eo){return!eo||typeof eo=="number"||typeof eo=="object"?eo:({rects:{floating:to,reference:no},placement:io})=>{const{position:so,alignment:ao}=fromFloatingUIPlacement(io);return eo({positionedRect:to,targetRect:no,position:so,alignment:ao})}}function offset(eo){const to=getFloatingUIOffset(eo);return offset$1(to)}function shift$1(eo){const{hasScrollableElement:to,disableTether:no,overflowBoundary:io,container:so,overflowBoundaryPadding:ao,isRtl:lo}=eo;return shift$2({...to&&{boundary:"clippingAncestors"},...no&&{crossAxis:no==="all",limiter:limitShift({crossAxis:no!=="all",mainAxis:!1})},...ao&&{padding:toFloatingUIPadding(ao,lo)},...io&&{altBoundary:!0,boundary:getBoundary(so,io)}})}const matchTargetSizeCssVar="--fui-match-target-size";function matchTargetSize(){return{name:"matchTargetSize",fn:async eo=>{const{rects:{reference:to,floating:no},elements:{floating:io},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:so=!1}={}}}=eo;if(to.width===no.width||so)return{};const{width:ao}=to;return io.style.setProperty(matchTargetSizeCssVar,`${ao}px`),io.style.width||(io.style.width=`var(${matchTargetSizeCssVar})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function listScrollParents(eo){const to=[];let no=eo;for(;no;){const io=getScrollParent(no);if(eo.ownerDocument.body===io){to.push(io);break}to.push(io),no=io}return to}function createPositionManager(eo){const{container:to,target:no,arrow:io,strategy:so,middleware:ao,placement:lo,useTransform:uo=!0}=eo;let ho=!1;if(!no||!to)return{updatePosition:()=>{},dispose:()=>{}};let go=!0;const mo=new Set,yo=to.ownerDocument.defaultView;Object.assign(to.style,{position:"fixed",left:0,top:0,margin:0});const So=()=>{ho||(go&&(listScrollParents(to).forEach(Co=>mo.add(Co)),isHTMLElement$6(no)&&listScrollParents(no).forEach(Co=>mo.add(Co)),mo.forEach(Co=>{Co.addEventListener("scroll",_o,{passive:!0})}),go=!1),Object.assign(to.style,{position:so}),computePosition(no,to,{placement:lo,middleware:ao,strategy:so}).then(({x:Co,y:$o,middlewareData:Ro,placement:Oo})=>{ho||(writeArrowUpdates({arrow:io,middlewareData:Ro}),writeContainerUpdates({container:to,middlewareData:Ro,placement:Oo,coordinates:{x:Co,y:$o},lowPPI:((yo==null?void 0:yo.devicePixelRatio)||1)<=1,strategy:so,useTransform:uo}))}).catch(Co=>{}))},_o=debounce$2(()=>So()),ko=()=>{ho=!0,yo&&(yo.removeEventListener("scroll",_o),yo.removeEventListener("resize",_o)),mo.forEach(Co=>{Co.removeEventListener("scroll",_o)}),mo.clear()};return yo&&(yo.addEventListener("scroll",_o,{passive:!0}),yo.addEventListener("resize",_o)),_o(),{updatePosition:_o,dispose:ko}}function usePositioning(eo){const to=reactExports.useRef(null),no=reactExports.useRef(null),io=reactExports.useRef(null),so=reactExports.useRef(null),ao=reactExports.useRef(null),{enabled:lo=!0}=eo,uo=usePositioningOptions(eo),ho=reactExports.useCallback(()=>{to.current&&to.current.dispose(),to.current=null;var _o;const ko=(_o=io.current)!==null&&_o!==void 0?_o:no.current;lo&&canUseDOM$3()&&ko&&so.current&&(to.current=createPositionManager({container:so.current,target:ko,arrow:ao.current,...uo(so.current,ao.current)}))},[lo,uo]),go=useEventCallback$3(_o=>{io.current=_o,ho()});reactExports.useImperativeHandle(eo.positioningRef,()=>({updatePosition:()=>{var _o;return(_o=to.current)===null||_o===void 0?void 0:_o.updatePosition()},setTarget:_o=>{eo.target,go(_o)}}),[eo.target,go]),useIsomorphicLayoutEffect$1(()=>{var _o;go((_o=eo.target)!==null&&_o!==void 0?_o:null)},[eo.target,go]),useIsomorphicLayoutEffect$1(()=>{ho()},[ho]);const mo=useCallbackRef(null,_o=>{no.current!==_o&&(no.current=_o,ho())}),yo=useCallbackRef(null,_o=>{so.current!==_o&&(so.current=_o,ho())}),So=useCallbackRef(null,_o=>{ao.current!==_o&&(ao.current=_o,ho())});return{targetRef:mo,containerRef:yo,arrowRef:So}}function usePositioningOptions(eo){const{align:to,arrowPadding:no,autoSize:io,coverTarget:so,flipBoundary:ao,offset:lo,overflowBoundary:uo,pinned:ho,position:go,unstable_disableTether:mo,positionFixed:yo,strategy:So,overflowBoundaryPadding:_o,fallbackPositions:ko,useTransform:Co,matchTargetSize:$o}=eo,{dir:Ro,targetDocument:Oo}=useFluent(),No=Ro==="rtl",Mo=So??yo?"fixed":"absolute",Bo=normalizeAutoSize(io);return reactExports.useCallback((Po,Lo)=>{const Go=hasScrollParent(Po),Do=[Bo&&resetMaxSize(Bo),$o&&matchTargetSize(),lo&&offset(lo),so&&coverTarget(),!ho&&flip({container:Po,flipBoundary:ao,hasScrollableElement:Go,isRtl:No,fallbackPositions:ko}),shift$1({container:Po,hasScrollableElement:Go,overflowBoundary:uo,disableTether:mo,overflowBoundaryPadding:_o,isRtl:No}),Bo&&maxSize(Bo,{container:Po,overflowBoundary:uo}),intersecting(),Lo&&arrow$1({element:Lo,padding:no}),hide({strategy:"referenceHidden"}),hide({strategy:"escaped"}),!1].filter(Boolean);return{placement:toFloatingUIPlacement(to,go,No),middleware:Do,strategy:Mo,useTransform:Co}},[to,no,Bo,so,mo,ao,No,lo,uo,ho,go,Mo,_o,ko,Co,$o,Oo])}const usePositioningMouseTarget=eo=>{const[to,no]=reactExports.useState(eo);return[to,so=>{if(so==null){no(void 0);return}let ao;so instanceof MouseEvent?ao=so:ao=so.nativeEvent,ao instanceof MouseEvent;const lo=createVirtualElementFromClick(ao);no(lo)}]},PopoverContext=createContext(void 0),popoverContextDefaultValue={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};PopoverContext.Provider;const usePopoverContext_unstable=eo=>useContextSelector(PopoverContext,(to=popoverContextDefaultValue)=>eo(to)),usePopoverSurface_unstable=(eo,to)=>{const no=usePopoverContext_unstable(Oo=>Oo.contentRef),io=usePopoverContext_unstable(Oo=>Oo.openOnHover),so=usePopoverContext_unstable(Oo=>Oo.setOpen),ao=usePopoverContext_unstable(Oo=>Oo.mountNode),lo=usePopoverContext_unstable(Oo=>Oo.arrowRef),uo=usePopoverContext_unstable(Oo=>Oo.size),ho=usePopoverContext_unstable(Oo=>Oo.withArrow),go=usePopoverContext_unstable(Oo=>Oo.appearance),mo=usePopoverContext_unstable(Oo=>Oo.trapFocus),yo=usePopoverContext_unstable(Oo=>Oo.inertTrapFocus),So=usePopoverContext_unstable(Oo=>Oo.inline),{modalAttributes:_o}=useModalAttributes({trapFocus:mo,legacyTrapFocus:!yo,alwaysFocusable:!mo}),ko={inline:So,appearance:go,withArrow:ho,size:uo,arrowRef:lo,mountNode:ao,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,no),role:mo?"dialog":"group","aria-modal":mo?!0:void 0,..._o,...eo}),{elementType:"div"})},{onMouseEnter:Co,onMouseLeave:$o,onKeyDown:Ro}=ko.root;return ko.root.onMouseEnter=Oo=>{io&&so(Oo,!0),Co==null||Co(Oo)},ko.root.onMouseLeave=Oo=>{io&&so(Oo,!1),$o==null||$o(Oo)},ko.root.onKeyDown=Oo=>{var No;Oo.key==="Escape"&&(!((No=no.current)===null||No===void 0)&&No.contains(Oo.target))&&(Oo.preventDefault(),so(Oo,!1)),Ro==null||Ro(Oo)},ko};function toMountNodeProps(eo){return isHTMLElement$6(eo)?{element:eo}:typeof eo=="object"?eo===null?{element:null}:eo:{}}var getCurrentOwner=()=>reactExports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,useIsStrictMode=()=>!1,effectSet=new WeakSet;function useStrictEffect(eo,to){const no=getCurrentOwner();reactExports.useEffect(()=>{if(!effectSet.has(no)){effectSet.add(no),eo();return}return eo()},to)}var memoSet=new WeakSet;function useStrictMemo(eo,to){return reactExports.useMemo(()=>{const no=getCurrentOwner();return memoSet.has(no)?eo():(memoSet.add(no),null)},to)}function useDisposable(eo,to){var no;const io=useIsStrictMode()&&!1,so=io?useStrictMemo:reactExports.useMemo,ao=io?useStrictEffect:reactExports.useEffect,[lo,uo]=(no=so(()=>eo(),to))!=null?no:[null,()=>null];return ao(()=>uo,to),lo}const usePortalMountNodeStylesStyles=__styles({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),useInsertionEffect=React$1.useInsertionEffect,usePortalMountNode=eo=>{const{targetDocument:to,dir:no}=useFluent(),io=usePortalMountNode$1(),so=useFocusVisible(),ao=usePortalMountNodeStylesStyles(),lo=useThemeClassName(),uo=mergeClasses(lo,ao.root,eo.className),ho=io??(to==null?void 0:to.body),go=useDisposable(()=>{if(ho===void 0||eo.disabled)return[null,()=>null];const mo=ho.ownerDocument.createElement("div");return ho.appendChild(mo),[mo,()=>mo.remove()]},[ho]);return useInsertionEffect?useInsertionEffect(()=>{if(!go)return;const mo=uo.split(" ").filter(Boolean);return go.classList.add(...mo),go.setAttribute("dir",no),so.current=go,()=>{go.classList.remove(...mo),go.removeAttribute("dir")}},[uo,no,go,so]):reactExports.useMemo(()=>{go&&(go.className=uo,go.setAttribute("dir",no),so.current=go)},[uo,no,go,so]),go},usePortal_unstable=eo=>{const{element:to,className:no}=toMountNodeProps(eo.mountNode),io=reactExports.useRef(null),so=usePortalMountNode({disabled:!!to,className:no}),ao=to??so,lo={children:eo.children,mountNode:ao,virtualParentRootRef:io};return reactExports.useEffect(()=>{if(!ao)return;const uo=io.current,ho=ao.contains(uo);if(uo&&!ho)return setVirtualParent$1(ao,uo),()=>{setVirtualParent$1(ao,void 0)}},[io,ao]),lo},renderPortal_unstable=eo=>reactExports.createElement("span",{hidden:!0,ref:eo.virtualParentRootRef},eo.mountNode&&reactDomExports.createPortal(eo.children,eo.mountNode)),Portal$1=eo=>{const to=usePortal_unstable(eo);return renderPortal_unstable(to)};Portal$1.displayName="Portal";const renderPopoverSurface_unstable=eo=>{const to=jsxs(eo.root,{children:[eo.withArrow&&jsx$1("div",{ref:eo.arrowRef,className:eo.arrowClassName}),eo.root.children]});return eo.inline?to:jsx$1(Portal$1,{mountNode:eo.mountNode,children:to})},popoverSurfaceClassNames={root:"fui-PopoverSurface"},arrowHeights={small:6,medium:8,large:8},useStyles$K=__styles({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),usePopoverSurfaceStyles_unstable=eo=>{const to=useStyles$K();return eo.root.className=mergeClasses(popoverSurfaceClassNames.root,to.root,eo.inline&&to.inline,eo.size==="small"&&to.smallPadding,eo.size==="medium"&&to.mediumPadding,eo.size==="large"&&to.largePadding,eo.appearance==="inverted"&&to.inverted,eo.appearance==="brand"&&to.brand,eo.root.className),eo.arrowClassName=mergeClasses(to.arrow,eo.size==="small"?to.smallArrow:to.mediumLargeArrow),eo},PopoverSurface=reactExports.forwardRef((eo,to)=>{const no=usePopoverSurface_unstable(eo,to);return usePopoverSurfaceStyles_unstable(no),useCustomStyleHook("usePopoverSurfaceStyles_unstable")(no),renderPopoverSurface_unstable(no)});PopoverSurface.displayName="PopoverSurface";const popoverSurfaceBorderRadius=4,usePopover_unstable=eo=>{const[to,no]=usePositioningMouseTarget(),io={size:"medium",contextTarget:to,setContextTarget:no,...eo},so=reactExports.Children.toArray(eo.children);let ao,lo;so.length===2?(ao=so[0],lo=so[1]):so.length===1&&(lo=so[0]);const[uo,ho]=useOpenState(io),go=reactExports.useRef(0),mo=useEventCallback$3((No,Mo)=>{if(clearTimeout(go.current),!(No instanceof Event)&&No.persist&&No.persist(),No.type==="mouseleave"){var Bo;go.current=setTimeout(()=>{ho(No,Mo)},(Bo=eo.mouseLeaveDelay)!==null&&Bo!==void 0?Bo:500)}else ho(No,Mo)});reactExports.useEffect(()=>()=>{clearTimeout(go.current)},[]);const yo=reactExports.useCallback(No=>{mo(No,!uo)},[mo,uo]),So=usePopoverRefs(io),{targetDocument:_o}=useFluent();var ko;useOnClickOutside({contains:elementContains$1,element:_o,callback:No=>mo(No,!1),refs:[So.triggerRef,So.contentRef],disabled:!uo,disabledFocusOnIframe:!(!((ko=eo.closeOnIframeFocus)!==null&&ko!==void 0)||ko)});const Co=io.openOnContext||io.closeOnScroll;useOnScrollOutside({contains:elementContains$1,element:_o,callback:No=>mo(No,!1),refs:[So.triggerRef,So.contentRef],disabled:!uo||!Co});const{findFirstFocusable:$o}=useFocusFinders();reactExports.useEffect(()=>{if(!eo.unstable_disableAutoFocus&&uo&&So.contentRef.current){var No;const Mo=(No=So.contentRef.current.getAttribute("tabIndex"))!==null&&No!==void 0?No:void 0,Bo=isNaN(Mo)?$o(So.contentRef.current):So.contentRef.current;Bo==null||Bo.focus()}},[$o,uo,So.contentRef,eo.unstable_disableAutoFocus]);var Ro,Oo;return{...io,...So,inertTrapFocus:(Ro=eo.inertTrapFocus)!==null&&Ro!==void 0?Ro:eo.legacyTrapFocus===void 0?!1:!eo.legacyTrapFocus,popoverTrigger:ao,popoverSurface:lo,open:uo,setOpen:mo,toggleOpen:yo,setContextTarget:no,contextTarget:to,inline:(Oo=eo.inline)!==null&&Oo!==void 0?Oo:!1}};function useOpenState(eo){const to=useEventCallback$3((lo,uo)=>{var ho;return(ho=eo.onOpenChange)===null||ho===void 0?void 0:ho.call(eo,lo,uo)}),[no,io]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1});eo.open=no!==void 0?no:eo.open;const so=eo.setContextTarget,ao=reactExports.useCallback((lo,uo)=>{uo&&lo.type==="contextmenu"&&so(lo),uo||so(void 0),io(uo),to==null||to(lo,{open:uo})},[io,to,so]);return[no,ao]}function usePopoverRefs(eo){const to={position:"above",align:"center",arrowPadding:2*popoverSurfaceBorderRadius,target:eo.openOnContext?eo.contextTarget:void 0,...resolvePositioningShorthand(eo.positioning)};to.coverTarget&&(eo.withArrow=!1),eo.withArrow&&(to.offset=mergeArrowOffset(to.offset,arrowHeights[eo.size]));const{targetRef:no,containerRef:io,arrowRef:so}=usePositioning(to);return{triggerRef:no,contentRef:io,arrowRef:so}}const renderPopover_unstable=eo=>{const{appearance:to,arrowRef:no,contentRef:io,inline:so,mountNode:ao,open:lo,openOnContext:uo,openOnHover:ho,setOpen:go,size:mo,toggleOpen:yo,trapFocus:So,triggerRef:_o,withArrow:ko,inertTrapFocus:Co}=eo;return reactExports.createElement(PopoverContext.Provider,{value:{appearance:to,arrowRef:no,contentRef:io,inline:so,mountNode:ao,open:lo,openOnContext:uo,openOnHover:ho,setOpen:go,toggleOpen:yo,triggerRef:_o,size:mo,trapFocus:So,inertTrapFocus:Co,withArrow:ko}},eo.popoverTrigger,eo.open&&eo.popoverSurface)},Popover=eo=>{const to=usePopover_unstable(eo);return renderPopover_unstable(to)};Popover.displayName="Popover";const usePopoverTrigger_unstable=eo=>{const{children:to,disableButtonEnhancement:no=!1}=eo,io=getTriggerChild(to),so=usePopoverContext_unstable(No=>No.open),ao=usePopoverContext_unstable(No=>No.setOpen),lo=usePopoverContext_unstable(No=>No.toggleOpen),uo=usePopoverContext_unstable(No=>No.triggerRef),ho=usePopoverContext_unstable(No=>No.openOnHover),go=usePopoverContext_unstable(No=>No.openOnContext),{triggerAttributes:mo}=useModalAttributes(),yo=No=>{go&&(No.preventDefault(),ao(No,!0))},So=No=>{go||lo(No)},_o=No=>{No.key===Escape$1&&so&&!No.isDefaultPrevented()&&(ao(No,!1),No.preventDefault())},ko=No=>{ho&&ao(No,!0)},Co=No=>{ho&&ao(No,!1)},$o={...mo,"aria-expanded":`${so}`,...io==null?void 0:io.props,onMouseEnter:useEventCallback$3(mergeCallbacks(io==null?void 0:io.props.onMouseEnter,ko)),onMouseLeave:useEventCallback$3(mergeCallbacks(io==null?void 0:io.props.onMouseLeave,Co)),onContextMenu:useEventCallback$3(mergeCallbacks(io==null?void 0:io.props.onContextMenu,yo)),ref:useMergedRefs$1(uo,io==null?void 0:io.ref)},Ro={...$o,onClick:useEventCallback$3(mergeCallbacks(io==null?void 0:io.props.onClick,So)),onKeyDown:useEventCallback$3(mergeCallbacks(io==null?void 0:io.props.onKeyDown,_o))},Oo=useARIAButtonProps((io==null?void 0:io.type)==="button"||(io==null?void 0:io.type)==="a"?io.type:"div",Ro);return{children:applyTriggerPropsToChildren(eo.children,useARIAButtonProps((io==null?void 0:io.type)==="button"||(io==null?void 0:io.type)==="a"?io.type:"div",go?$o:no?Ro:Oo))}},renderPopoverTrigger_unstable=eo=>eo.children,PopoverTrigger=eo=>{const to=usePopoverTrigger_unstable(eo);return renderPopoverTrigger_unstable(to)};PopoverTrigger.displayName="PopoverTrigger";PopoverTrigger.isFluentTriggerComponent=!0;const arrowHeight=6,tooltipBorderRadius=4,useTooltip_unstable=eo=>{var to,no,io,so;const ao=useTooltipVisibility(),lo=useIsSSR(),{targetDocument:uo}=useFluent(),[ho,go]=useTimeout(),{appearance:mo="normal",children:yo,content:So,withArrow:_o=!1,positioning:ko="above",onVisibleChange:Co,relationship:$o,showDelay:Ro=250,hideDelay:Oo=250,mountNode:No}=eo,[Mo,Bo]=useControllableState({state:eo.visible,initialState:!1}),Po=reactExports.useCallback((gs,ys)=>{go(),Bo(vs=>(ys.visible!==vs&&(Co==null||Co(gs,ys)),ys.visible))},[go,Bo,Co]),Lo={withArrow:_o,positioning:ko,showDelay:Ro,hideDelay:Oo,relationship:$o,visible:Mo,shouldRenderTooltip:Mo,appearance:mo,mountNode:No,components:{content:"div"},content:always(So,{defaultProps:{role:"tooltip"},elementType:"div"})};Lo.content.id=useId$1("tooltip-",Lo.content.id);const Go={enabled:Lo.visible,arrowPadding:2*tooltipBorderRadius,position:"above",align:"center",offset:4,...resolvePositioningShorthand(Lo.positioning)};Lo.withArrow&&(Go.offset=mergeArrowOffset(Go.offset,arrowHeight));const{targetRef:Do,containerRef:Uo,arrowRef:Ho}=usePositioning(Go);Lo.content.ref=useMergedRefs$1(Lo.content.ref,Uo),Lo.arrowRef=Ho,useIsomorphicLayoutEffect$1(()=>{if(Mo){var gs;const ys={hide:ks=>Po(void 0,{visible:!1,documentKeyboardEvent:ks})};(gs=ao.visibleTooltip)===null||gs===void 0||gs.hide(),ao.visibleTooltip=ys;const vs=ks=>{ks.key===Escape$1&&!ks.defaultPrevented&&(ys.hide(ks),ks.preventDefault())};return uo==null||uo.addEventListener("keydown",vs,{capture:!0}),()=>{ao.visibleTooltip===ys&&(ao.visibleTooltip=void 0),uo==null||uo.removeEventListener("keydown",vs,{capture:!0})}}},[ao,uo,Mo,Po]);const Yo=reactExports.useRef(!1),qo=reactExports.useCallback(gs=>{if(gs.type==="focus"&&Yo.current){Yo.current=!1;return}const ys=ao.visibleTooltip?0:Lo.showDelay;ho(()=>{Po(gs,{visible:!0})},ys),gs.persist()},[ho,Po,Lo.showDelay,ao]),[Jo]=reactExports.useState(()=>{const gs=vs=>{var ks;!((ks=vs.detail)===null||ks===void 0)&&ks.isFocusedProgrammatically&&(Yo.current=!0)};let ys=null;return vs=>{ys==null||ys.removeEventListener(KEYBORG_FOCUSIN,gs),vs==null||vs.addEventListener(KEYBORG_FOCUSIN,gs),ys=vs}}),ps=reactExports.useCallback(gs=>{let ys=Lo.hideDelay;gs.type==="blur"&&(ys=0,Yo.current=(uo==null?void 0:uo.activeElement)===gs.target),ho(()=>{Po(gs,{visible:!1})},ys),gs.persist()},[ho,Po,Lo.hideDelay,uo]);Lo.content.onPointerEnter=mergeCallbacks(Lo.content.onPointerEnter,go),Lo.content.onPointerLeave=mergeCallbacks(Lo.content.onPointerLeave,ps),Lo.content.onFocus=mergeCallbacks(Lo.content.onFocus,go),Lo.content.onBlur=mergeCallbacks(Lo.content.onBlur,ps);const Qo=getTriggerChild(yo),hs={};return $o==="label"?typeof Lo.content.children=="string"?hs["aria-label"]=Lo.content.children:(hs["aria-labelledby"]=Lo.content.id,Lo.shouldRenderTooltip=!0):$o==="description"&&(hs["aria-describedby"]=Lo.content.id,Lo.shouldRenderTooltip=!0),lo&&(Lo.shouldRenderTooltip=!1),Lo.children=applyTriggerPropsToChildren(yo,{...hs,...Qo==null?void 0:Qo.props,ref:useMergedRefs$1(Qo==null?void 0:Qo.ref,Jo,Go.target===void 0?Do:void 0),onPointerEnter:useEventCallback$3(mergeCallbacks(Qo==null||(to=Qo.props)===null||to===void 0?void 0:to.onPointerEnter,qo)),onPointerLeave:useEventCallback$3(mergeCallbacks(Qo==null||(no=Qo.props)===null||no===void 0?void 0:no.onPointerLeave,ps)),onFocus:useEventCallback$3(mergeCallbacks(Qo==null||(io=Qo.props)===null||io===void 0?void 0:io.onFocus,qo)),onBlur:useEventCallback$3(mergeCallbacks(Qo==null||(so=Qo.props)===null||so===void 0?void 0:so.onBlur,ps))}),Lo},renderTooltip_unstable=eo=>jsxs(reactExports.Fragment,{children:[eo.children,eo.shouldRenderTooltip&&jsx$1(Portal$1,{mountNode:eo.mountNode,children:jsxs(eo.content,{children:[eo.withArrow&&jsx$1("div",{ref:eo.arrowRef,className:eo.arrowClassName}),eo.content.children]})})]}),tooltipClassNames={content:"fui-Tooltip__content"},useStyles$J=__styles({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],z8tnut:"f10ra9hq",z189sj:["fd9xhir","f1jlaasf"],Byoj8tv:"f1d7kygh",uwmqm3:["f1jlaasf","fd9xhir"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",a9b677:"f1ekdpwm",Bqenvij:"f83vc9z",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f10ra9hq{padding-top:4px;}",".fd9xhir{padding-right:11px;}",".f1jlaasf{padding-left:11px;}",".f1d7kygh{padding-bottom:6px;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}']}),useTooltipStyles_unstable=eo=>{const to=useStyles$J();return eo.content.className=mergeClasses(tooltipClassNames.content,to.root,eo.appearance==="inverted"&&to.inverted,eo.visible&&to.visible,eo.content.className),eo.arrowClassName=to.arrow,eo},Tooltip=eo=>{const to=useTooltip_unstable(eo);return useTooltipStyles_unstable(to),useCustomStyleHook("useTooltipStyles_unstable")(to),renderTooltip_unstable(to)};Tooltip.displayName="Tooltip";Tooltip.isFluentTriggerComponent=!0;const renderButton_unstable=eo=>{const{iconOnly:to,iconPosition:no}=eo;return jsxs(eo.root,{children:[no!=="after"&&eo.icon&&jsx$1(eo.icon,{}),!to&&eo.root.children,no==="after"&&eo.icon&&jsx$1(eo.icon,{})]})},buttonContext=reactExports.createContext(void 0),buttonContextDefaultValue={},ButtonContextProvider=buttonContext.Provider,useButtonContext=()=>{var eo;return(eo=reactExports.useContext(buttonContext))!==null&&eo!==void 0?eo:buttonContextDefaultValue},useButton_unstable=(eo,to)=>{const{size:no}=useButtonContext(),{appearance:io="secondary",as:so="button",disabled:ao=!1,disabledFocusable:lo=!1,icon:uo,iconPosition:ho="before",shape:go="rounded",size:mo=no??"medium"}=eo,yo=optional(uo,{elementType:"span"});return{appearance:io,disabled:ao,disabledFocusable:lo,iconPosition:ho,shape:go,size:mo,iconOnly:!!(yo!=null&&yo.children&&!eo.children),components:{root:"button",icon:"span"},root:always(getIntrinsicElementProps(so,useARIAButtonProps(eo.as,eo)),{elementType:"button",defaultProps:{ref:to,type:"button"}}),icon:yo}},buttonClassNames={root:"fui-Button",icon:"fui-Button__icon"},useRootBaseClassName$3=__resetStyles("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),useIconBaseClassName=__resetStyles("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),useRootStyles$a=__styles({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),useRootDisabledStyles$2=__styles({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useRootFocusStyles=__styles({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),useRootIconOnlyStyles=__styles({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),useIconStyles$5=__styles({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),useButtonStyles_unstable=eo=>{const to=useRootBaseClassName$3(),no=useIconBaseClassName(),io=useRootStyles$a(),so=useRootDisabledStyles$2(),ao=useRootFocusStyles(),lo=useRootIconOnlyStyles(),uo=useIconStyles$5(),{appearance:ho,disabled:go,disabledFocusable:mo,icon:yo,iconOnly:So,iconPosition:_o,shape:ko,size:Co}=eo;return eo.root.className=mergeClasses(buttonClassNames.root,to,ho&&io[ho],io[Co],yo&&Co==="small"&&io.smallWithIcon,yo&&Co==="large"&&io.largeWithIcon,io[ko],(go||mo)&&so.base,(go||mo)&&so.highContrast,ho&&(go||mo)&&so[ho],ho==="primary"&&ao.primary,ao[Co],ao[ko],So&&lo[Co],eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(buttonClassNames.icon,no,!!eo.root.children&&uo[_o],uo[Co],eo.icon.className)),eo},Button$2=reactExports.forwardRef((eo,to)=>{const no=useButton_unstable(eo,to);return useButtonStyles_unstable(no),useCustomStyleHook("useButtonStyles_unstable")(no),renderButton_unstable(no)});Button$2.displayName="Button";function useToggleState(eo,to){const{checked:no,defaultChecked:io,disabled:so,disabledFocusable:ao}=eo,{onClick:lo,role:uo}=to.root,[ho,go]=useControllableState({state:no,defaultState:io,initialState:!1}),mo=uo==="menuitemcheckbox"||uo==="checkbox",yo=reactExports.useCallback(So=>{if(!so&&!ao){if(So.defaultPrevented)return;go(!ho)}},[ho,so,ao,go]);return{...to,checked:ho,root:{...to.root,[mo?"aria-checked":"aria-pressed"]:ho,onClick:useEventCallback$3(mergeCallbacks(lo,yo))}}}const useToggleButton_unstable=(eo,to)=>{const no=useButton_unstable(eo,to);return useToggleState(eo,no)},toggleButtonClassNames={root:"fui-ToggleButton",icon:"fui-ToggleButton__icon"},useRootCheckedStyles=__styles({base:{De3pzq:"f1nfm20t",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],sj55zd:"f14nttnl",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],D0sxk3:"fxoiby5",t6yez3:"f15q0o9g",Jwef8y:"f1knas48",Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1xlaoq0",gg5e9n:["f1m52nbi","f1ub3y4t"],Bi91k9c:"feu1g3u",iro3zm:"f141de4g",b661bw:"f11v6sdu",Bk6r4ia:["f9yn8i4","f1ajwf28"],B9zn80p:"f1uwu36w",Bpld233:["f1ajwf28","f9yn8i4"],B2d53fq:"f9olfzr"},highContrast:{Bsw6fvg:"f1rirnrt",Bjwas2f:"f132fbg1",Bn1d65q:["f1ene5x0","fzbc999"],Bxeuatn:"f6jgcol",n51gp8:["fzbc999","f1ene5x0"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3",Btyszwp:"f1j4zkqc",B8jyv7h:["f1ug3svw","f10xfdm4"],l9kbep:"f4xlnbu",By5cl00:["f10xfdm4","f1ug3svw"],abbn9y:"f1jhcl7q",Bw5jppy:["fokje0w","fpctg2v"],B0tp99d:"f1yfuj62",B55dcl7:["fpctg2v","fokje0w"],G867l3:"fk75khc",gdbnj:["f90nk7n","f16eiqta"],mxns5l:"fnz8tm1",o3nasb:["f16eiqta","f90nk7n"],B7d2ofm:"fkom8lu"},outline:{De3pzq:"f1q9pm1r",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],B4j52fo:"fgx37oo",Bekrc4i:["f130t4y6","f1efpmoh"],Bn0qgzm:"fv51ejd",ibv6hh:["f1efpmoh","f130t4y6"],Jwef8y:"fjxutwb",iro3zm:"fwiml72",B8q5s1w:"fcaw57c",Bci5o5g:["fpwd27e","f1999bjr"],n8qw10:"f1hi52o4",Bdrgwmp:["f1999bjr","fpwd27e"]},primary:{De3pzq:"f8w4g0q",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2"},secondary:{},subtle:{De3pzq:"fq5gl1p",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1eryozh",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd"},transparent:{De3pzq:"f1q9pm1r",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1qj7y59",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m"}},{d:[".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fgx37oo{border-top-width:var(--strokeWidthThicker);}",".f130t4y6{border-right-width:var(--strokeWidthThicker);}",".f1efpmoh{border-left-width:var(--strokeWidthThicker);}",".fv51ejd{border-bottom-width:var(--strokeWidthThicker);}",".fcaw57c[data-fui-focus-visible]{border-top-color:var(--colorNeutralStroke1);}",".fpwd27e[data-fui-focus-visible]{border-right-color:var(--colorNeutralStroke1);}",".f1999bjr[data-fui-focus-visible]{border-left-color:var(--colorNeutralStroke1);}",".f1hi52o4[data-fui-focus-visible]{border-bottom-color:var(--colorNeutralStroke1);}",".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1eryozh{color:var(--colorNeutralForeground2Selected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1xlaoq0:hover{border-bottom-color:var(--colorNeutralStroke1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f141de4g:hover:active{background-color:var(--colorNeutralBackground1Pressed);}",".f11v6sdu:hover:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f9yn8i4:hover:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1ajwf28:hover:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1uwu36w:hover:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f9olfzr:hover:active{color:var(--colorNeutralForeground1Pressed);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f132fbg1{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ene5x0{border-right-color:Highlight;}.fzbc999{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f6jgcol{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j4zkqc:focus{border-top-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f10xfdm4:focus{border-left-width:1px;}.f1ug3svw:focus{border-right-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xlnbu:focus{border-bottom-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1jhcl7q:focus{border-top-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fokje0w:focus{border-right-style:solid;}.fpctg2v:focus{border-left-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yfuj62:focus{border-bottom-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk75khc:focus{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16eiqta:focus{border-left-color:HighlightText;}.f90nk7n:focus{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnz8tm1:focus{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkom8lu:focus{outline-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),useRootDisabledStyles$1=__styles({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo"},outline:{},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}"]}),useIconCheckedStyles=__styles({subtleOrTransparent:{sj55zd:"f1qj7y59"},highContrast:{ycbfsm:"fg4l7m0"}},{d:[".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),usePrimaryHighContrastStyles=__styles({base:{Bsw6fvg:"f4lkoma",Bjwas2f:"f1bauw5b",Bn1d65q:["fbpknfk","fedl69w"],Bxeuatn:"f15s25nd",n51gp8:["fedl69w","fbpknfk"],Bbusuzp:"f1e4kh5",ycbfsm:"fg4l7m0"},disabled:{Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"]}},{m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1bauw5b{border-top-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbpknfk{border-right-color:ButtonBorder;}.fedl69w{border-left-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f15s25nd{border-bottom-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e4kh5{color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useToggleButtonStyles_unstable=eo=>{const to=useRootCheckedStyles(),no=useRootDisabledStyles$1(),io=useIconCheckedStyles(),so=usePrimaryHighContrastStyles(),{appearance:ao,checked:lo,disabled:uo,disabledFocusable:ho}=eo;return eo.root.className=mergeClasses(toggleButtonClassNames.root,ao==="primary"&&so.base,ao==="primary"&&(uo||ho)&&so.disabled,lo&&to.base,lo&&to.highContrast,ao&&lo&&to[ao],(uo||ho)&&no.base,ao&&(uo||ho)&&no[ao],eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(toggleButtonClassNames.icon,(ao==="subtle"||ao==="transparent")&&io.subtleOrTransparent&&io.highContrast,eo.icon.className)),useButtonStyles_unstable(eo),eo},FieldContext=reactExports.createContext(void 0);FieldContext.Provider;const useFieldContext_unstable=()=>reactExports.useContext(FieldContext);function useFieldControlProps_unstable(eo,to){return getFieldControlProps(useFieldContext_unstable(),eo,to)}function getFieldControlProps(eo,to,no){if(!eo)return to;to={...to};const{generatedControlId:io,hintId:so,labelFor:ao,labelId:lo,required:uo,validationMessageId:ho,validationState:go}=eo;if(io){var mo,yo;(yo=(mo=to).id)!==null&&yo!==void 0||(mo.id=io)}if(lo&&(!(no!=null&&no.supportsLabelFor)||ao!==to.id)){var So,_o,ko;(ko=(So=to)[_o="aria-labelledby"])!==null&&ko!==void 0||(So[_o]=lo)}if((ho||so)&&(to["aria-describedby"]=[ho,so,to==null?void 0:to["aria-describedby"]].filter(Boolean).join(" ")),go==="error"){var Co,$o,Ro;(Ro=(Co=to)[$o="aria-invalid"])!==null&&Ro!==void 0||(Co[$o]=!0)}if(uo)if(no!=null&&no.supportsRequired){var Oo,No;(No=(Oo=to).required)!==null&&No!==void 0||(Oo.required=!0)}else{var Mo,Bo,Po;(Po=(Mo=to)[Bo="aria-required"])!==null&&Po!==void 0||(Mo[Bo]=!0)}if(no!=null&&no.supportsSize){var Lo,Go;(Go=(Lo=to).size)!==null&&Go!==void 0||(Lo.size=eo.size)}return to}const useLabel_unstable=(eo,to)=>{const{disabled:no=!1,required:io=!1,weight:so="regular",size:ao="medium"}=eo;return{disabled:no,required:optional(io===!0?"*":io||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:so,size:ao,components:{root:"label",required:"span"},root:always(getIntrinsicElementProps("label",{ref:to,...eo}),{elementType:"label"})}},renderLabel_unstable=eo=>jsxs(eo.root,{children:[eo.root.children,eo.required&&jsx$1(eo.required,{})]}),labelClassNames={root:"fui-Label",required:"fui-Label__required"},useStyles$I=__styles({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),useLabelStyles_unstable=eo=>{const to=useStyles$I();return eo.root.className=mergeClasses(labelClassNames.root,to.root,eo.disabled&&to.disabled,to[eo.size],eo.weight==="semibold"&&to.semibold,eo.root.className),eo.required&&(eo.required.className=mergeClasses(labelClassNames.required,to.required,eo.disabled&&to.requiredDisabled,eo.required.className)),eo},Label=reactExports.forwardRef((eo,to)=>{const no=useLabel_unstable(eo,to);return useLabelStyles_unstable(no),useCustomStyleHook("useLabelStyles_unstable")(no),renderLabel_unstable(no)});Label.displayName="Label";const useCheckbox_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:no=!1,required:io,shape:so="square",size:ao="medium",labelPosition:lo="after",onChange:uo}=eo,[ho,go]=useControllableState({defaultState:eo.defaultChecked,state:eo.checked,initialState:!1}),mo=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),yo=ho==="mixed",So=useId$1("checkbox-",mo.primary.id);let _o;yo?so==="circular"?_o=reactExports.createElement(CircleFilled,null):_o=ao==="large"?reactExports.createElement(Square16Filled,null):reactExports.createElement(Square12Filled,null):ho&&(_o=ao==="large"?reactExports.createElement(Checkmark16Filled,null):reactExports.createElement(Checkmark12Filled,null));const ko={shape:so,checked:ho,disabled:no,size:ao,labelPosition:lo,components:{root:"span",input:"input",indicator:"div",label:Label},root:always(eo.root,{defaultProps:{ref:useFocusWithin(),...mo.root},elementType:"span"}),input:always(eo.input,{defaultProps:{type:"checkbox",id:So,ref:to,checked:ho===!0,...mo.primary},elementType:"input"}),label:optional(eo.label,{defaultProps:{htmlFor:So,disabled:no,required:io,size:"medium"},elementType:Label}),indicator:optional(eo.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:_o},elementType:"div"})};ko.input.onChange=useEventCallback$3($o=>{const Ro=$o.currentTarget.indeterminate?"mixed":$o.currentTarget.checked;uo==null||uo($o,{checked:Ro}),go(Ro)});const Co=useMergedRefs$1(ko.input.ref);return ko.input.ref=Co,useIsomorphicLayoutEffect$1(()=>{Co.current&&(Co.current.indeterminate=yo)},[Co,yo]),ko},renderCheckbox_unstable=eo=>jsxs(eo.root,{children:[jsx$1(eo.input,{}),eo.labelPosition==="before"&&eo.label&&jsx$1(eo.label,{}),jsx$1(eo.indicator,{}),eo.labelPosition==="after"&&eo.label&&jsx$1(eo.label,{})]}),checkboxClassNames={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},useRootBaseClassName$2=__resetStyles("r10zo65y","rpa3v06",{r:[".r10zo65y{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r10zo65y:focus{outline-style:none;}",".r10zo65y:focus-visible{outline-style:none;}",".r10zo65y[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r10zo65y[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rpa3v06{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".rpa3v06:focus{outline-style:none;}",".rpa3v06:focus-visible{outline-style:none;}",".rpa3v06[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rpa3v06[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r10zo65y[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rpa3v06[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useRootStyles$9=__styles({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",Bbusuzp:"f1dcs8yz",mrqfp9:"fxb3eh3"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxb3eh3{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useInputBaseClassName$2=__resetStyles("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),useInputStyles$3=__styles({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),useIndicatorBaseClassName$2=__resetStyles("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),useIndicatorStyles$1=__styles({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}"]}),useLabelStyles$3=__styles({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),useCheckboxStyles_unstable=eo=>{const{checked:to,disabled:no,labelPosition:io,shape:so,size:ao}=eo,lo=useRootBaseClassName$2(),uo=useRootStyles$9();eo.root.className=mergeClasses(checkboxClassNames.root,lo,no?uo.disabled:to==="mixed"?uo.mixed:to?uo.checked:uo.unchecked,eo.root.className);const ho=useInputBaseClassName$2(),go=useInputStyles$3();eo.input.className=mergeClasses(checkboxClassNames.input,ho,ao==="large"&&go.large,go[io],eo.input.className);const mo=useIndicatorBaseClassName$2(),yo=useIndicatorStyles$1();eo.indicator&&(eo.indicator.className=mergeClasses(checkboxClassNames.indicator,mo,ao==="large"&&yo.large,so==="circular"&&yo.circular,eo.indicator.className));const So=useLabelStyles$3();return eo.label&&(eo.label.className=mergeClasses(checkboxClassNames.label,So.base,So[ao],So[io],eo.label.className)),eo},Checkbox$2=reactExports.forwardRef((eo,to)=>{const no=useCheckbox_unstable(eo,to);return useCheckboxStyles_unstable(no),useCustomStyleHook("useCheckboxStyles_unstable")(no),renderCheckbox_unstable(no)});Checkbox$2.displayName="Checkbox";const ComboboxContext=createContext({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});ComboboxContext.Provider;const ListboxContext=createContext({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});ListboxContext.Provider;function useComboboxContextValues(eo){const{activeOption:to,appearance:no,focusVisible:io,open:so,registerOption:ao,selectedOptions:lo,selectOption:uo,setActiveOption:ho,setOpen:go,size:mo}=eo;return{combobox:{activeOption:to,appearance:no,focusVisible:io,open:so,registerOption:ao,selectedOptions:lo,selectOption:uo,setActiveOption:ho,setOpen:go,size:mo}}}function useListboxContextValues(eo){const to=useHasParentContext(ComboboxContext),{activeOption:no,focusVisible:io,multiselect:so,registerOption:ao,selectedOptions:lo,selectOption:uo,setActiveOption:ho}=eo,go=useContextSelector(ComboboxContext,So=>So.registerOption);return{listbox:{activeOption:no,focusVisible:io,multiselect:so,registerOption:to?go:ao,selectedOptions:lo,selectOption:uo,setActiveOption:ho}}}function getDropdownActionFromKey(eo,to={}){const{open:no=!0,multiselect:io=!1}=to,so=eo.key,{altKey:ao,ctrlKey:lo,key:uo,metaKey:ho}=eo;return uo.length===1&&so!==Space&&!ao&&!lo&&!ho?"Type":no?so===ArrowUp&&ao||so===Enter||!io&&so===Space?"CloseSelect":io&&so===Space?"Select":so===Escape$1?"Close":so===ArrowDown?"Next":so===ArrowUp?"Previous":so===Home?"First":so===End?"Last":so===PageUp?"PageUp":so===PageDown?"PageDown":so===Tab$2?"Tab":"None":so===ArrowDown||so===ArrowUp||so===Enter||so===Space?"Open":"None"}function getIndexFromAction(eo,to,no){switch(eo){case"Next":return Math.min(no,to+1);case"Previous":return Math.max(0,to-1);case"First":return 0;case"Last":return no;case"PageDown":return Math.min(no,to+10);case"PageUp":return Math.max(0,to-10);default:return to}}const useOptionCollection=()=>{const eo=reactExports.useRef([]),to=reactExports.useMemo(()=>({getCount:()=>eo.current.length,getOptionAtIndex:go=>{var mo;return(mo=eo.current[go])===null||mo===void 0?void 0:mo.option},getIndexOfId:go=>eo.current.findIndex(mo=>mo.option.id===go),getOptionById:go=>{const mo=eo.current.find(yo=>yo.option.id===go);return mo==null?void 0:mo.option},getOptionsMatchingText:go=>eo.current.filter(mo=>go(mo.option.text)).map(mo=>mo.option),getOptionsMatchingValue:go=>eo.current.filter(mo=>go(mo.option.value)).map(mo=>mo.option)}),[]),no=reactExports.useCallback((io,so)=>{var ao;const lo=eo.current.findIndex(uo=>!uo.element||!so?!1:uo.option.id===io.id?!0:uo.element.compareDocumentPosition(so)&Node.DOCUMENT_POSITION_PRECEDING);if(((ao=eo.current[lo])===null||ao===void 0?void 0:ao.option.id)!==io.id){const uo={element:so,option:io};lo===-1?eo.current=[...eo.current,uo]:eo.current.splice(lo,0,uo)}return()=>{eo.current=eo.current.filter(uo=>uo.option.id!==io.id)}},[]);return{...to,options:eo.current.map(io=>io.option),registerOption:no}};function useScrollOptionsIntoView(eo){const{activeOption:to}=eo,no=reactExports.useRef(null);return reactExports.useEffect(()=>{if(no.current&&to&&canUseDOM$3()){const io=no.current.querySelector(`#${to.id}`);if(!io)return;const{offsetHeight:so,offsetTop:ao}=io,{offsetHeight:lo,scrollTop:uo}=no.current,ho=aouo+lo,mo=2;ho?no.current.scrollTo(0,ao-mo):go&&no.current.scrollTo(0,ao-lo+so+mo)}},[to]),no}const useSelection=eo=>{const{defaultSelectedOptions:to,multiselect:no,onOptionSelect:io}=eo,[so,ao]=useControllableState({state:eo.selectedOptions,defaultState:to,initialState:[]}),lo=reactExports.useCallback((ho,go)=>{if(go.disabled)return;let mo=[go.value];if(no){const yo=so.findIndex(So=>So===go.value);yo>-1?mo=[...so.slice(0,yo),...so.slice(yo+1)]:mo=[...so,go.value]}ao(mo),io==null||io(ho,{optionValue:go.value,optionText:go.text,selectedOptions:mo})},[io,no,so,ao]);return{clearSelection:ho=>{ao([]),io==null||io(ho,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:lo,selectedOptions:so}},useListbox_unstable=(eo,to)=>{const{multiselect:no}=eo,io=useOptionCollection(),{getCount:so,getOptionAtIndex:ao,getIndexOfId:lo}=io,{clearSelection:uo,selectedOptions:ho,selectOption:go}=useSelection(eo),[mo,yo]=reactExports.useState(),[So,_o]=reactExports.useState(!1),ko=Do=>{const Uo=getDropdownActionFromKey(Do,{open:!0}),Ho=so()-1,Yo=mo?lo(mo.id):-1;let qo=Yo;switch(Uo){case"Select":case"CloseSelect":mo&&go(Do,mo);break;default:qo=getIndexFromAction(Uo,Yo,Ho)}qo!==Yo&&(Do.preventDefault(),yo(ao(qo)),_o(!0))},Co=Do=>{_o(!1)},$o=useHasParentContext(ComboboxContext),Ro=useContextSelector(ComboboxContext,Do=>Do.activeOption),Oo=useContextSelector(ComboboxContext,Do=>Do.focusVisible),No=useContextSelector(ComboboxContext,Do=>Do.selectedOptions),Mo=useContextSelector(ComboboxContext,Do=>Do.selectOption),Bo=useContextSelector(ComboboxContext,Do=>Do.setActiveOption),Po=$o?{activeOption:Ro,focusVisible:Oo,selectedOptions:No,selectOption:Mo,setActiveOption:Bo}:{activeOption:mo,focusVisible:So,selectedOptions:ho,selectOption:go,setActiveOption:yo},Lo={components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,role:no?"menu":"listbox","aria-activedescendant":$o||mo==null?void 0:mo.id,"aria-multiselectable":no,tabIndex:0,...eo}),{elementType:"div"}),multiselect:no,clearSelection:uo,...io,...Po},Go=useScrollOptionsIntoView(Lo);return Lo.root.ref=useMergedRefs$1(Lo.root.ref,Go),Lo.root.onKeyDown=useEventCallback$3(mergeCallbacks(Lo.root.onKeyDown,ko)),Lo.root.onMouseOver=useEventCallback$3(mergeCallbacks(Lo.root.onMouseOver,Co)),Lo},renderListbox_unstable=(eo,to)=>jsx$1(ListboxContext.Provider,{value:to.listbox,children:jsx$1(eo.root,{})}),listboxClassNames={root:"fui-Listbox"},useStyles$H=__styles({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),useListboxStyles_unstable=eo=>{const to=useStyles$H();return eo.root.className=mergeClasses(listboxClassNames.root,to.root,eo.root.className),eo},Listbox$1=reactExports.forwardRef((eo,to)=>{const no=useListbox_unstable(eo,to),io=useListboxContextValues(no);return useListboxStyles_unstable(no),useCustomStyleHook("useListboxStyles_unstable")(no),renderListbox_unstable(no,io)});Listbox$1.displayName="Listbox";function getTextString(eo,to){if(eo!==void 0)return eo;let no="",io=!1;return reactExports.Children.forEach(to,so=>{typeof so=="string"?no+=so:io=!0}),io&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),no}const useOption_unstable=(eo,to)=>{const{children:no,disabled:io,text:so,value:ao}=eo,lo=reactExports.useRef(null),uo=getTextString(so,no),ho=ao??uo,go=useId$1("fluent-option",eo.id),mo=reactExports.useMemo(()=>({id:go,disabled:io,text:uo,value:ho}),[go,io,uo,ho]),yo=useContextSelector(ListboxContext,Po=>Po.focusVisible),So=useContextSelector(ListboxContext,Po=>Po.multiselect),_o=useContextSelector(ListboxContext,Po=>Po.registerOption),ko=useContextSelector(ListboxContext,Po=>{const Lo=Po.selectedOptions;return!!ho&&!!Lo.find(Go=>Go===ho)}),Co=useContextSelector(ListboxContext,Po=>Po.selectOption),$o=useContextSelector(ListboxContext,Po=>Po.setActiveOption),Ro=useContextSelector(ComboboxContext,Po=>Po.setOpen),Oo=useContextSelector(ListboxContext,Po=>{var Lo,Go;return((Lo=Po.activeOption)===null||Lo===void 0?void 0:Lo.id)!==void 0&&((Go=Po.activeOption)===null||Go===void 0?void 0:Go.id)===go});let No=reactExports.createElement(CheckmarkFilled,null);So&&(No=ko?reactExports.createElement(Checkmark12Filled,null):"");const Mo=Po=>{var Lo;if(io){Po.preventDefault();return}$o(mo),So||Ro==null||Ro(Po,!1),Co(Po,mo),(Lo=eo.onClick)===null||Lo===void 0||Lo.call(eo,Po)};reactExports.useEffect(()=>{if(go&&lo.current)return _o(mo,lo.current)},[go,mo,_o]);const Bo=So?{role:"menuitemcheckbox","aria-checked":ko}:{role:"option","aria-selected":ko};return{components:{root:"div",checkIcon:"span"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,lo),"aria-disabled":io?"true":void 0,id:go,...Bo,...eo,onClick:Mo}),{elementType:"div"}),checkIcon:optional(eo.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:No},elementType:"span"}),active:Oo,disabled:io,focusVisible:yo,multiselect:So,selected:ko}},renderOption_unstable=eo=>jsxs(eo.root,{children:[eo.checkIcon&&jsx$1(eo.checkIcon,{}),eo.root.children]}),optionClassNames={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},useStyles$G=__styles({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",ecr2s2:"fb40n2d"},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",ecr2s2:"fgj9um3",Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useOptionStyles_unstable=eo=>{const{active:to,disabled:no,focusVisible:io,multiselect:so,selected:ao}=eo,lo=useStyles$G();return eo.root.className=mergeClasses(optionClassNames.root,lo.root,to&&io&&lo.active,no&&lo.disabled,ao&&lo.selected,eo.root.className),eo.checkIcon&&(eo.checkIcon.className=mergeClasses(optionClassNames.checkIcon,lo.checkIcon,so&&lo.multiselectCheck,ao&&lo.selectedCheck,ao&&so&&lo.selectedMultiselectCheck,no&&lo.checkDisabled,eo.checkIcon.className)),eo},Option$3=reactExports.forwardRef((eo,to)=>{const no=useOption_unstable(eo,to);return useOptionStyles_unstable(no),useCustomStyleHook("useOptionStyles_unstable")(no),renderOption_unstable(no)});Option$3.displayName="Option";const useComboboxBaseState=eo=>{const{appearance:to="outline",children:no,editable:io=!1,inlinePopup:so=!1,mountNode:ao=void 0,multiselect:lo,onOpenChange:uo,size:ho="medium"}=eo,go=useOptionCollection(),{getOptionAtIndex:mo,getOptionsMatchingValue:yo}=go,[So,_o]=reactExports.useState(),[ko,Co]=reactExports.useState(!1),[$o,Ro]=reactExports.useState(!1),Oo=reactExports.useRef(!1),No=useSelection(eo),{selectedOptions:Mo}=No,Bo=useFirstMount(),[Po,Lo]=useControllableState({state:eo.value,initialState:void 0}),Go=reactExports.useMemo(()=>{if(Po!==void 0)return Po;if(Bo&&eo.defaultValue!==void 0)return eo.defaultValue;const Yo=yo(qo=>Mo.includes(qo)).map(qo=>qo.text);return lo?io?"":Yo.join(", "):Yo[0]},[Po,io,yo,lo,eo.defaultValue,Mo]),[Do,Uo]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1}),Ho=reactExports.useCallback((Yo,qo)=>{uo==null||uo(Yo,{open:qo}),Uo(qo)},[uo,Uo]);return reactExports.useEffect(()=>{if(Do&&!So)if(!lo&&Mo.length>0){const Yo=yo(qo=>qo===Mo[0]).pop();Yo&&_o(Yo)}else _o(mo(0));else Do||_o(void 0)},[Do,no]),{...go,...No,activeOption:So,appearance:to,focusVisible:ko,hasFocus:$o,ignoreNextBlur:Oo,inlinePopup:so,mountNode:ao,open:Do,setActiveOption:_o,setFocusVisible:Co,setHasFocus:Ro,setOpen:Ho,setValue:Lo,size:ho,value:Go,multiselect:lo}};function useComboboxPositioning(eo){const{positioning:to}=eo,io={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...resolvePositioningShorthand(to)},{targetRef:so,containerRef:ao}=usePositioning(io);return[ao,so]}function useListboxSlot(eo,to,no){const{state:{multiselect:io},triggerRef:so,defaultProps:ao}=no,lo=useId$1("fluent-listbox",isResolvedShorthand(eo)?eo.id:void 0),uo=optional(eo,{renderByDefault:!0,elementType:Listbox$1,defaultProps:{id:lo,multiselect:io,tabIndex:void 0,...ao}}),ho=useEventCallback$3(mergeCallbacks(yo=>{yo.preventDefault()},uo==null?void 0:uo.onMouseDown)),go=useEventCallback$3(mergeCallbacks(yo=>{var So;yo.preventDefault(),(So=so.current)===null||So===void 0||So.focus()},uo==null?void 0:uo.onClick)),mo=useMergedRefs$1(uo==null?void 0:uo.ref,to);return uo&&(uo.ref=mo,uo.onMouseDown=ho,uo.onClick=go),uo}function useTriggerSlot(eo,to,no){const{state:{activeOption:io,getCount:so,getIndexOfId:ao,getOptionAtIndex:lo,open:uo,selectOption:ho,setActiveOption:go,setFocusVisible:mo,setOpen:yo,multiselect:So},defaultProps:_o,elementType:ko}=no,Co=always(eo,{defaultProps:{type:"text","aria-expanded":uo,"aria-activedescendant":uo?io==null?void 0:io.id:void 0,role:"combobox",...typeof _o=="object"&&_o},elementType:ko}),$o=reactExports.useRef(null);return Co.ref=useMergedRefs$1($o,Co.ref,to),Co.onBlur=mergeCallbacks(Ro=>{yo(Ro,!1)},Co.onBlur),Co.onClick=mergeCallbacks(Ro=>{yo(Ro,!uo)},Co.onClick),Co.onKeyDown=mergeCallbacks(Ro=>{const Oo=getDropdownActionFromKey(Ro,{open:uo,multiselect:So}),No=so()-1,Mo=io?ao(io.id):-1;let Bo=Mo;switch(Oo){case"Open":Ro.preventDefault(),mo(!0),yo(Ro,!0);break;case"Close":Ro.stopPropagation(),Ro.preventDefault(),yo(Ro,!1);break;case"CloseSelect":!So&&!(io!=null&&io.disabled)&&yo(Ro,!1);case"Select":io&&ho(Ro,io),Ro.preventDefault();break;case"Tab":!So&&io&&ho(Ro,io);break;default:Bo=getIndexFromAction(Oo,Mo,No)}Bo!==Mo&&(Ro.preventDefault(),go(lo(Bo)),mo(!0))},Co.onKeyDown),Co.onMouseOver=mergeCallbacks(Ro=>{mo(!1)},Co.onMouseOver),Co}function useInputTriggerSlot(eo,to,no){const{state:{open:io,value:so,activeOption:ao,selectOption:lo,setValue:uo,setActiveOption:ho,setFocusVisible:go,multiselect:mo,selectedOptions:yo,clearSelection:So,getOptionsMatchingText:_o,getIndexOfId:ko,setOpen:Co},freeform:$o,defaultProps:Ro}=no,Oo=Ho=>{!io&&!$o&&(so&&ao&&so.trim().toLowerCase()===(ao==null?void 0:ao.text.toLowerCase())&&lo(Ho,ao),uo(void 0))},No=Ho=>{const Yo=Ho==null?void 0:Ho.trim().toLowerCase();if(!Yo||Yo.length===0)return;const Jo=_o(Qo=>Qo.toLowerCase().indexOf(Yo)===0);if(Jo.length>1&&ao){const Qo=ko(ao.id),hs=Jo.find(gs=>ko(gs.id)>=Qo);return hs??Jo[0]}var ps;return(ps=Jo[0])!==null&&ps!==void 0?ps:void 0},Mo=Ho=>{const Yo=Ho.target.value;uo(Yo);const qo=No(Yo);ho(qo),go(!0),!mo&&yo.length===1&&(Yo.length<1||!qo)&&So(Ho)},Bo=useTriggerSlot(eo,to,{state:no.state,defaultProps:Ro,elementType:"input"});Bo.onChange=mergeCallbacks(Bo.onChange,Mo),Bo.onBlur=mergeCallbacks(Bo.onBlur,Oo);const[Po,Lo]=reactExports.useState(!1),Go=reactExports.useRef(!1),Do=Bo.onKeyDown,Uo=useEventCallback$3(Ho=>{!io&&getDropdownActionFromKey(Ho)==="Type"&&Co(Ho,!0),Ho.key===ArrowLeft||Ho.key===ArrowRight?Lo(!0):Lo(!1);const Yo=getDropdownActionFromKey(Ho,{open:io,multiselect:mo});if(Yo==="Type"?Go.current=!0:(Yo==="Open"&&Ho.key!==" "||Yo==="Next"||Yo==="Previous"||Yo==="First"||Yo==="Last"||Yo==="PageUp"||Yo==="PageDown")&&(Go.current=!1),$o&&(Go.current||!io)&&Ho.key===" "){var qo;eo==null||(qo=eo.onKeyDown)===null||qo===void 0||qo.call(eo,Ho);return}Do==null||Do(Ho)});return Bo.onKeyDown=Uo,Po&&(Bo["aria-activedescendant"]=void 0),Bo}const useCombobox_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const no=useComboboxBaseState({...eo,editable:!0}),{open:io,selectOption:so,setOpen:ao,setValue:lo,value:uo}=no,[ho,go]=useComboboxPositioning(eo),{disabled:mo,freeform:yo,inlinePopup:So}=eo,_o=useId$1("combobox-"),{primary:ko,root:Co}=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["children","size"]});no.selectOption=(Do,Uo)=>{lo(void 0),so(Do,Uo)},no.setOpen=(Do,Uo)=>{mo||(!Uo&&!yo&&lo(void 0),ao(Do,Uo))};const $o=reactExports.useRef(null),Ro=useListboxSlot(eo.listbox,ho,{state:no,triggerRef:$o,defaultProps:{children:eo.children}});var Oo;const No=useInputTriggerSlot((Oo=eo.input)!==null&&Oo!==void 0?Oo:{},useMergedRefs$1($o,to),{state:no,freeform:yo,defaultProps:{type:"text",value:uo??"",...ko}}),Mo=always(eo.root,{defaultProps:{"aria-owns":!So&&io?Ro==null?void 0:Ro.id:void 0,...Co},elementType:"div"});Mo.ref=useMergedRefs$1(Mo.ref,go);const Bo={components:{root:"div",input:"input",expandIcon:"span",listbox:Listbox$1},root:Mo,input:No,listbox:io?Ro:void 0,expandIcon:optional(eo.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":io,children:reactExports.createElement(ChevronDownRegular,null),role:"button"},elementType:"span"}),...no},{onMouseDown:Po}=Bo.expandIcon||{},Lo=useEventCallback$3(mergeCallbacks(Po,Do=>{var Uo;Do.preventDefault(),Bo.setOpen(Do,!Bo.open),(Uo=$o.current)===null||Uo===void 0||Uo.focus()}));if(Bo.expandIcon){Bo.expandIcon.onMouseDown=Lo;const Do=Bo.expandIcon["aria-label"]||Bo.expandIcon["aria-labelledby"],Uo="Open";if(!Do)if(eo["aria-labelledby"]){var Go;const Ho=(Go=Bo.expandIcon.id)!==null&&Go!==void 0?Go:`${_o}-chevron`,Yo=`${Ho} ${Bo.input["aria-labelledby"]}`;Bo.expandIcon["aria-label"]=Uo,Bo.expandIcon.id=Ho,Bo.expandIcon["aria-labelledby"]=Yo}else eo["aria-label"]?Bo.expandIcon["aria-label"]=`${Uo} ${eo["aria-label"]}`:Bo.expandIcon["aria-label"]=Uo}return Bo},renderCombobox_unstable=(eo,to)=>jsx$1(eo.root,{children:jsxs(ComboboxContext.Provider,{value:to.combobox,children:[jsx$1(eo.input,{}),eo.expandIcon&&jsx$1(eo.expandIcon,{}),eo.listbox&&(eo.inlinePopup?jsx$1(eo.listbox,{}):jsx$1(Portal$1,{mountNode:eo.mountNode,children:jsx$1(eo.listbox,{})}))]})}),comboboxClassNames={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",listbox:"fui-Combobox__listbox"},useStyles$F=__styles({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),useInputStyles$2=__styles({input:{De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bqenvij:"f50nw0v",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bqenvij:"f1tvdnth",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1e60jzv","f135dnwl"]},large:{Bqenvij:"f1ihhdec",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["fnphzt9","flt1dlf"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f50nw0v{height:22px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1tvdnth{height:30px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1ihhdec{height:38px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),useIconStyles$4=__styles({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),useComboboxStyles_unstable=eo=>{const{appearance:to,open:no,size:io}=eo,so=`${eo.input["aria-invalid"]}`=="true",ao=eo.input.disabled,lo=useStyles$F(),uo=useIconStyles$4(),ho=useInputStyles$2();return eo.root.className=mergeClasses(comboboxClassNames.root,lo.root,lo[to],lo[io],!ao&&to==="outline"&&lo.outlineInteractive,so&&to!=="underline"&&lo.invalid,so&&to==="underline"&&lo.invalidUnderline,ao&&lo.disabled,eo.root.className),eo.input.className=mergeClasses(comboboxClassNames.input,ho.input,ho[io],ao&&ho.disabled,eo.input.className),eo.listbox&&(eo.listbox.className=mergeClasses(comboboxClassNames.listbox,lo.listbox,!no&&lo.listboxCollapsed,eo.listbox.className)),eo.expandIcon&&(eo.expandIcon.className=mergeClasses(comboboxClassNames.expandIcon,uo.icon,uo[io],ao&&uo.disabled,eo.expandIcon.className)),eo},Combobox=reactExports.forwardRef((eo,to)=>{const no=useCombobox_unstable(eo,to),io=useComboboxContextValues(no);return useComboboxStyles_unstable(no),useCustomStyleHook("useComboboxStyles_unstable")(no),renderCombobox_unstable(no,io)});Combobox.displayName="Combobox";const useOptionGroup_unstable=(eo,to)=>{const no=useId$1("group-label"),{label:io}=eo;return{components:{root:"div",label:"span"},root:always(getIntrinsicElementProps("div",{ref:to,role:"group","aria-labelledby":io?no:void 0,...eo}),{elementType:"div"}),label:optional(io,{defaultProps:{id:no,role:"presentation"},elementType:"span"})}},renderOptionGroup_unstable=eo=>jsxs(eo.root,{children:[eo.label&&jsx$1(eo.label,{children:eo.label.children}),eo.root.children]}),optionGroupClassNames={root:"fui-OptionGroup",label:"fui-OptionGroup__label"},useStyles$E=__styles({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Belr9w4:"fiut8dr",B8lkq7l:"f1xxzjds",Gwp8xu:"fu19d3i",H93o2g:"flylvvz",eii1in:"f1ug5m11",om0q45:"f5642y",Hl9o3s:"ffdf81h",Bi9x0x4:"flgyru6",B0i58d9:["f1fjgumo","f1sgo0dv"],sl1c2c:"fwsdxdw",z4hxbw:["f1sgo0dv","f1fjgumo"]},label:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f11d4kpn",mc9l5x:"ftgm304",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm",z8tnut:"f17mpqex",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fdvome7",uwmqm3:["fk8j09s","fdw0yi8"]}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}",'.f1xxzjds:not(:last-child)::after{content:"";}',".fu19d3i:not(:last-child)::after{border-bottom-width:var(--strokeWidthThin);}",".flylvvz:not(:last-child)::after{border-bottom-style:solid;}",".f1ug5m11:not(:last-child)::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5642y:not(:last-child)::after{display:block;}",".ffdf81h:not(:last-child)::after{padding-bottom:var(--spacingHorizontalXS);}",".flgyru6:not(:last-child)::after{margin-top:0;}",".f1fjgumo:not(:last-child)::after{margin-right:calc(var(--spacingHorizontalXS) * -1);}",".f1sgo0dv:not(:last-child)::after{margin-left:calc(var(--spacingHorizontalXS) * -1);}",".fwsdxdw:not(:last-child)::after{margin-bottom:var(--spacingVerticalXS);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".ftgm304{display:block;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mpqex{padding-top:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdvome7{padding-bottom:var(--spacingHorizontalS);}"]}),useOptionGroupStyles_unstable=eo=>{const to=useStyles$E();return eo.root.className=mergeClasses(optionGroupClassNames.root,to.root,eo.root.className),eo.label&&(eo.label.className=mergeClasses(optionGroupClassNames.label,to.label,eo.label.className)),eo},OptionGroup=reactExports.forwardRef((eo,to)=>{const no=useOptionGroup_unstable(eo,to);return useOptionGroupStyles_unstable(no),useCustomStyleHook("useOptionGroupStyles_unstable")(no),renderOptionGroup_unstable(no)});OptionGroup.displayName="OptionGroup";const renderDivider_unstable=eo=>jsx$1(eo.root,{children:eo.root.children!==void 0&&jsx$1(eo.wrapper,{children:eo.root.children})}),useDivider_unstable=(eo,to)=>{const{alignContent:no="center",appearance:io="default",inset:so=!1,vertical:ao=!1,wrapper:lo}=eo,uo=useId$1("divider-");return{alignContent:no,appearance:io,inset:so,vertical:ao,components:{root:"div",wrapper:"div"},root:always(getIntrinsicElementProps("div",{role:"separator","aria-orientation":ao?"vertical":"horizontal","aria-labelledby":eo.children?uo:void 0,...eo,ref:to}),{elementType:"div"}),wrapper:always(lo,{defaultProps:{id:uo,children:eo.children},elementType:"div"})}},dividerClassNames={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},useBaseStyles$4=__styles({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),useHorizontalStyles=__styles({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),useVerticalStyles=__styles({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),useDividerStyles_unstable=eo=>{const to=useBaseStyles$4(),no=useHorizontalStyles(),io=useVerticalStyles(),{alignContent:so,appearance:ao,inset:lo,vertical:uo}=eo;return eo.root.className=mergeClasses(dividerClassNames.root,to.base,to[so],ao&&to[ao],!uo&&no.base,!uo&&lo&&no.inset,!uo&&no[so],uo&&io.base,uo&&lo&&io.inset,uo&&io[so],uo&&eo.root.children!==void 0&&io.withChildren,eo.root.children===void 0&&to.childless,eo.root.className),eo.wrapper&&(eo.wrapper.className=mergeClasses(dividerClassNames.wrapper,eo.wrapper.className)),eo},Divider$2=reactExports.forwardRef((eo,to)=>{const no=useDivider_unstable(eo,to);return useDividerStyles_unstable(no),useCustomStyleHook("useDividerStyles_unstable")(no),renderDivider_unstable(no)});Divider$2.displayName="Divider";const useInput_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const no=useOverrides();var io;const{size:so="medium",appearance:ao=(io=no.inputDefaultAppearance)!==null&&io!==void 0?io:"outline",onChange:lo}=eo,[uo,ho]=useControllableState({state:eo.value,defaultState:eo.defaultValue,initialState:""}),go=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),mo={size:so,appearance:ao,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:always(eo.input,{defaultProps:{type:"text",ref:to,...go.primary},elementType:"input"}),contentAfter:optional(eo.contentAfter,{elementType:"span"}),contentBefore:optional(eo.contentBefore,{elementType:"span"}),root:always(eo.root,{defaultProps:go.root,elementType:"span"})};return mo.input.value=uo,mo.input.onChange=useEventCallback$3(yo=>{const So=yo.target.value;lo==null||lo(yo,{value:So}),ho(So)}),mo},renderInput_unstable=eo=>jsxs(eo.root,{children:[eo.contentBefore&&jsx$1(eo.contentBefore,{}),jsx$1(eo.input,{}),eo.contentAfter&&jsx$1(eo.contentAfter,{})]}),inputClassNames={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},useRootClassName=__resetStyles("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),useRootStyles$8=__styles({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),useInputClassName=__resetStyles("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),useInputElementStyles=__styles({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),useContentClassName=__resetStyles("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),useContentStyles$1=__styles({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),useInputStyles_unstable=eo=>{const{size:to,appearance:no}=eo,io=eo.input.disabled,so=`${eo.input["aria-invalid"]}`=="true",ao=no.startsWith("filled"),lo=useRootStyles$8(),uo=useInputElementStyles(),ho=useContentStyles$1();eo.root.className=mergeClasses(inputClassNames.root,useRootClassName(),lo[to],lo[no],!io&&no==="outline"&&lo.outlineInteractive,!io&&no==="underline"&&lo.underlineInteractive,!io&&ao&&lo.filledInteractive,ao&&lo.filled,!io&&so&&lo.invalid,io&&lo.disabled,eo.root.className),eo.input.className=mergeClasses(inputClassNames.input,useInputClassName(),to==="large"&&uo.large,io&&uo.disabled,eo.input.className);const go=[useContentClassName(),io&&ho.disabled,ho[to]];return eo.contentBefore&&(eo.contentBefore.className=mergeClasses(inputClassNames.contentBefore,...go,eo.contentBefore.className)),eo.contentAfter&&(eo.contentAfter.className=mergeClasses(inputClassNames.contentAfter,...go,eo.contentAfter.className)),eo},Input=reactExports.forwardRef((eo,to)=>{const no=useInput_unstable(eo,to);return useInputStyles_unstable(no),useCustomStyleHook("useInputStyles_unstable")(no),renderInput_unstable(no)});Input.displayName="Input";const renderImage_unstable=eo=>jsx$1(eo.root,{}),useImage_unstable=(eo,to)=>{const{bordered:no=!1,fit:io="default",block:so=!1,shape:ao="square",shadow:lo=!1}=eo;return{bordered:no,fit:io,block:so,shape:ao,shadow:lo,components:{root:"img"},root:always(getIntrinsicElementProps("img",{ref:to,...eo}),{elementType:"img"})}},imageClassNames={root:"fui-Image"},useStyles$D=__styles({base:{g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"],B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0"},bordered:{icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"]},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},square:{},shadow:{E5pizo:"f1whvlc6"},center:{st4lth:"f1plgu50",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},contain:{st4lth:"f1kle4es",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},default:{},cover:{st4lth:"f1ps3kmd",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},none:{st4lth:"f1plgu50",Ermj5k:["f13uwng7","fjmyj0p"],Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},block:{a9b677:"fly5x3f"}},{d:[".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f1plgu50{object-fit:none;}",".f14xojzb{object-position:center;}",".f1l02sjl{height:100%;}",".fly5x3f{width:100%;}",".f1kle4es{object-fit:contain;}",".f1ps3kmd{object-fit:cover;}",".f13uwng7{object-position:left top;}",".fjmyj0p{object-position:right top;}"]}),useImageStyles_unstable=eo=>{const to=useStyles$D();eo.root.className=mergeClasses(imageClassNames.root,to.base,eo.block&&to.block,eo.bordered&&to.bordered,eo.shadow&&to.shadow,to[eo.fit],to[eo.shape],eo.root.className)},Image$2=reactExports.forwardRef((eo,to)=>{const no=useImage_unstable(eo,to);return useImageStyles_unstable(no),useCustomStyleHook("useImageStyles_unstable")(no),renderImage_unstable(no)});Image$2.displayName="Image";const useLinkState_unstable=eo=>{const{disabled:to,disabledFocusable:no}=eo,{onClick:io,onKeyDown:so,role:ao,tabIndex:lo}=eo.root;return eo.root.as==="a"&&(eo.root.href=to?void 0:eo.root.href,(to||no)&&(eo.root.role=ao||"link")),(eo.root.as==="a"||eo.root.as==="span")&&(eo.root.tabIndex=lo??(to&&!no?void 0:0)),eo.root.onClick=uo=>{to||no?uo.preventDefault():io==null||io(uo)},eo.root.onKeyDown=uo=>{(to||no)&&(uo.key===Enter||uo.key===Space)?(uo.preventDefault(),uo.stopPropagation()):so==null||so(uo)},eo.disabled=to||no,eo.root["aria-disabled"]=to||no||void 0,eo.root.as==="button"&&(eo.root.disabled=to&&!no),eo},useLink_unstable=(eo,to)=>{const no=useBackgroundAppearance(),{appearance:io="default",disabled:so=!1,disabledFocusable:ao=!1,inline:lo=!1}=eo,uo=eo.as||(eo.href?"a":"button"),ho={role:uo==="span"?"button":void 0,type:uo==="button"?"button":void 0,...eo,as:uo},go={appearance:io,disabled:so,disabledFocusable:ao,inline:lo,components:{root:uo},root:always(getIntrinsicElementProps(uo,{ref:to,...ho}),{elementType:uo}),backgroundAppearance:no};return useLinkState_unstable(go),go},linkClassNames={root:"fui-Link"},useStyles$C=__styles({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),useLinkStyles_unstable=eo=>{const to=useStyles$C(),{appearance:no,disabled:io,inline:so,root:ao,backgroundAppearance:lo}=eo;return eo.root.className=mergeClasses(linkClassNames.root,to.root,to.focusIndicator,ao.as==="a"&&ao.href&&to.href,ao.as==="button"&&to.button,no==="subtle"&&to.subtle,lo==="inverted"&&to.inverted,so&&to.inline,io&&to.disabled,eo.root.className),eo},renderLink_unstable=eo=>jsx$1(eo.root,{}),Link$1=reactExports.forwardRef((eo,to)=>{const no=useLink_unstable(eo,to);return useLinkStyles_unstable(no),renderLink_unstable(no)});Link$1.displayName="Link";const MenuContext$1=createContext(void 0),menuContextDefaultValue={open:!1,setOpen:()=>!1,checkedValues:{},onCheckedValueChange:()=>null,isSubmenu:!1,triggerRef:{current:null},menuPopoverRef:{current:null},mountNode:null,triggerId:"",openOnContext:!1,openOnHover:!1,hasIcons:!1,hasCheckmarks:!1,inline:!1,persistOnItemClick:!1},MenuProvider=MenuContext$1.Provider,useMenuContext_unstable=eo=>useContextSelector(MenuContext$1,(to=menuContextDefaultValue)=>eo(to)),MenuTriggerContext=reactExports.createContext(void 0),menuTriggerContextDefaultValue=!1,MenuTriggerContextProvider=MenuTriggerContext.Provider,useMenuTriggerContext_unstable=()=>{var eo;return(eo=reactExports.useContext(MenuTriggerContext))!==null&&eo!==void 0?eo:menuTriggerContextDefaultValue},MenuListContext=createContext(void 0),menuListContextDefaultValue={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},MenuListProvider=MenuListContext.Provider,useMenuListContext_unstable=eo=>useContextSelector(MenuListContext,(to=menuListContextDefaultValue)=>eo(to)),MENU_ENTER_EVENT="fuimenuenter",useOnMenuMouseEnter=eo=>{const{refs:to,callback:no,element:io,disabled:so}=eo,ao=useEventCallback$3(lo=>{const uo=to[0],ho=lo.target;var go;!elementContains$1((go=uo.current)!==null&&go!==void 0?go:null,ho)&&!so&&no(lo)});reactExports.useEffect(()=>{if(io!=null)return so||io.addEventListener(MENU_ENTER_EVENT,ao),()=>{io.removeEventListener(MENU_ENTER_EVENT,ao)}},[ao,io,so])},dispatchMenuEnterEvent=(eo,to)=>{eo.dispatchEvent(new CustomEvent(MENU_ENTER_EVENT,{bubbles:!0,detail:{nativeEvent:to}}))};function useIsSubmenu(){const eo=useMenuContext_unstable(no=>no.isSubmenu),to=useHasParentContext(MenuListContext);return eo||to}const submenuFallbackPositions=["after","after-bottom","before-top","before","before-bottom","above"],useMenu_unstable=eo=>{const to=useIsSubmenu(),{hoverDelay:no=500,inline:io=!1,hasCheckmarks:so=!1,hasIcons:ao=!1,closeOnScroll:lo=!1,openOnContext:uo=!1,persistOnItemClick:ho=!1,openOnHover:go=to,defaultCheckedValues:mo,mountNode:yo=null}=eo,So=useId$1("menu"),[_o,ko]=usePositioningMouseTarget(),Co={position:to?"after":"below",align:to?"top":"start",target:eo.openOnContext?_o:void 0,fallbackPositions:to?submenuFallbackPositions:void 0,...resolvePositioningShorthand(eo.positioning)},$o=reactExports.Children.toArray(eo.children);let Ro,Oo;$o.length===2?(Ro=$o[0],Oo=$o[1]):$o.length===1&&(Oo=$o[0]);const{targetRef:No,containerRef:Mo}=usePositioning(Co),[Bo,Po]=useMenuOpenState({hoverDelay:no,isSubmenu:to,setContextTarget:ko,closeOnScroll:lo,menuPopoverRef:Mo,triggerRef:No,open:eo.open,defaultOpen:eo.defaultOpen,onOpenChange:eo.onOpenChange,openOnContext:uo}),[Lo,Go]=useMenuSelectableState({checkedValues:eo.checkedValues,defaultCheckedValues:mo,onCheckedValueChange:eo.onCheckedValueChange});return{inline:io,hoverDelay:no,triggerId:So,isSubmenu:to,openOnHover:go,contextTarget:_o,setContextTarget:ko,hasCheckmarks:so,hasIcons:ao,closeOnScroll:lo,menuTrigger:Ro,menuPopover:Oo,mountNode:yo,triggerRef:No,menuPopoverRef:Mo,components:{},openOnContext:uo,open:Bo,setOpen:Po,checkedValues:Lo,onCheckedValueChange:Go,persistOnItemClick:ho}},useMenuSelectableState=eo=>{const[to,no]=useControllableState({state:eo.checkedValues,defaultState:eo.defaultCheckedValues,initialState:{}}),io=useEventCallback$3((so,{name:ao,checkedItems:lo})=>{var uo;(uo=eo.onCheckedValueChange)===null||uo===void 0||uo.call(eo,so,{name:ao,checkedItems:lo}),no(ho=>({...ho,[ao]:lo}))});return[to,io]},useMenuOpenState=eo=>{const{targetDocument:to}=useFluent(),no=useMenuContext_unstable(_o=>_o.setOpen),io=useEventCallback$3((_o,ko)=>{var Co;return(Co=eo.onOpenChange)===null||Co===void 0?void 0:Co.call(eo,_o,ko)}),so=reactExports.useRef(0),ao=reactExports.useRef(!1),[lo,uo]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1}),ho=useEventCallback$3((_o,ko)=>{const Co=_o instanceof CustomEvent&&_o.type===MENU_ENTER_EVENT?_o.detail.nativeEvent:_o;io==null||io(Co,{...ko}),ko.open&&_o.type==="contextmenu"&&eo.setContextTarget(_o),ko.open||eo.setContextTarget(void 0),ko.bubble&&no(_o,{...ko}),uo(ko.open)}),go=useEventCallback$3((_o,ko)=>{if(clearTimeout(so.current),!(_o instanceof Event)&&_o.persist&&_o.persist(),_o.type==="mouseleave"||_o.type==="mouseenter"||_o.type==="mousemove"||_o.type===MENU_ENTER_EVENT){var Co;!((Co=eo.triggerRef.current)===null||Co===void 0)&&Co.contains(_o.target)&&(ao.current=_o.type==="mouseenter"||_o.type==="mousemove"),so.current=setTimeout(()=>ho(_o,ko),eo.hoverDelay)}else ho(_o,ko)});useOnClickOutside({contains:elementContains$1,disabled:!lo,element:to,refs:[eo.menuPopoverRef,!eo.openOnContext&&eo.triggerRef].filter(Boolean),callback:_o=>go(_o,{open:!1,type:"clickOutside",event:_o})});const mo=eo.openOnContext||eo.closeOnScroll;useOnScrollOutside({contains:elementContains$1,element:to,callback:_o=>go(_o,{open:!1,type:"scrollOutside",event:_o}),refs:[eo.menuPopoverRef,!eo.openOnContext&&eo.triggerRef].filter(Boolean),disabled:!lo||!mo}),useOnMenuMouseEnter({element:to,callback:_o=>{ao.current||go(_o,{open:!1,type:"menuMouseEnter",event:_o})},disabled:!lo,refs:[eo.menuPopoverRef]}),reactExports.useEffect(()=>()=>{clearTimeout(so.current)},[]);const{findFirstFocusable:yo}=useFocusFinders(),So=reactExports.useCallback(()=>{const _o=yo(eo.menuPopoverRef.current);_o==null||_o.focus()},[yo,eo.menuPopoverRef]);return reactExports.useEffect(()=>{lo&&So()},[lo,So]),[lo,go]};function useMenuContextValues_unstable(eo){const{checkedValues:to,hasCheckmarks:no,hasIcons:io,inline:so,isSubmenu:ao,menuPopoverRef:lo,mountNode:uo,onCheckedValueChange:ho,open:go,openOnContext:mo,openOnHover:yo,persistOnItemClick:So,setOpen:_o,triggerId:ko,triggerRef:Co}=eo;return{menu:{checkedValues:to,hasCheckmarks:no,hasIcons:io,inline:so,isSubmenu:ao,menuPopoverRef:lo,mountNode:uo,onCheckedValueChange:ho,open:go,openOnContext:mo,openOnHover:yo,persistOnItemClick:So,setOpen:_o,triggerId:ko,triggerRef:Co}}}const renderMenu_unstable=(eo,to)=>reactExports.createElement(MenuProvider,{value:to.menu},eo.menuTrigger,eo.open&&eo.menuPopover),Menu=eo=>{const to=useMenu_unstable(eo),no=useMenuContextValues_unstable(to);return renderMenu_unstable(to,no)};Menu.displayName="Menu";const useCharacterSearch=(eo,to)=>{const no=useMenuListContext_unstable(so=>so.setFocusByFirstCharacter),{onKeyDown:io}=eo.root;return eo.root.onKeyDown=so=>{var ao;io==null||io(so),!(((ao=so.key)===null||ao===void 0?void 0:ao.length)>1)&&to.current&&(no==null||no(so,to.current))},eo},ChevronRightIcon=bundleIcon$1(ChevronRightFilled,ChevronRightRegular),ChevronLeftIcon=bundleIcon$1(ChevronLeftFilled,ChevronLeftRegular),useMenuItem_unstable=(eo,to)=>{const no=useMenuTriggerContext_unstable(),io=useMenuContext_unstable(Co=>Co.persistOnItemClick),{as:so="div",disabled:ao=!1,hasSubmenu:lo=no,persistOnClick:uo=io}=eo,ho=useMenuListContext_unstable(Co=>Co.hasIcons),go=useMenuListContext_unstable(Co=>Co.hasCheckmarks),mo=useMenuContext_unstable(Co=>Co.setOpen),{dir:yo}=useFluent(),So=reactExports.useRef(null),_o=reactExports.useRef(!1),ko={hasSubmenu:lo,disabled:ao,persistOnClick:uo,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span"},root:always(getIntrinsicElementProps(so,useARIAButtonProps(so,{role:"menuitem",...eo,disabled:!1,disabledFocusable:ao,ref:useMergedRefs$1(to,So),onKeyDown:useEventCallback$3(Co=>{var $o;($o=eo.onKeyDown)===null||$o===void 0||$o.call(eo,Co),!Co.isDefaultPrevented()&&(Co.key===Space||Co.key===Enter)&&(_o.current=!0)}),onMouseEnter:useEventCallback$3(Co=>{var $o,Ro;($o=So.current)===null||$o===void 0||$o.focus(),(Ro=eo.onMouseEnter)===null||Ro===void 0||Ro.call(eo,Co)}),onClick:useEventCallback$3(Co=>{var $o;!lo&&!uo&&(mo(Co,{open:!1,keyboard:_o.current,bubble:!0,type:"menuItemClick",event:Co}),_o.current=!1),($o=eo.onClick)===null||$o===void 0||$o.call(eo,Co)})})),{elementType:"div"}),icon:optional(eo.icon,{renderByDefault:ho,elementType:"span"}),checkmark:optional(eo.checkmark,{renderByDefault:go,elementType:"span"}),submenuIndicator:optional(eo.submenuIndicator,{renderByDefault:lo,defaultProps:{children:yo==="ltr"?reactExports.createElement(ChevronRightIcon,null):reactExports.createElement(ChevronLeftIcon,null)},elementType:"span"}),content:optional(eo.content,{renderByDefault:!!eo.children,defaultProps:{children:eo.children},elementType:"span"}),secondaryContent:optional(eo.secondaryContent,{elementType:"span"})};return useCharacterSearch(ko,So),ko},renderMenuItem_unstable=eo=>jsxs(eo.root,{children:[eo.checkmark&&jsx$1(eo.checkmark,{}),eo.icon&&jsx$1(eo.icon,{}),eo.content&&jsx$1(eo.content,{}),eo.secondaryContent&&jsx$1(eo.secondaryContent,{}),eo.submenuIndicator&&jsx$1(eo.submenuIndicator,{})]}),useStyles$B=__styles({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0"},rootChecked:{Bcdw1i0:"f1022m68"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".f1022m68{visibility:visible;}"]}),useCheckmarkStyles_unstable=eo=>{const to=useStyles$B();eo.checkmark&&(eo.checkmark.className=mergeClasses(to.root,eo.checked&&to.rootChecked,eo.checkmark.className))},menuItemClassNames={root:"fui-MenuItem",icon:"fui-MenuItem__icon",checkmark:"fui-MenuItem__checkmark",submenuIndicator:"fui-MenuItem__submenuIndicator",content:"fui-MenuItem__content",secondaryContent:"fui-MenuItem__secondaryContent"},useRootBaseStyles$4=__resetStyles("rpii7ln","rj2dzlr",{r:[".rpii7ln{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-right:var(--spacingVerticalSNudge);padding-left:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".rpii7ln:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rpii7ln:hover .fui-Icon-filled{display:inline;}",".rpii7ln:hover .fui-Icon-regular{display:none;}",".rpii7ln:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rpii7ln:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rpii7ln:focus{outline-style:none;}",".rpii7ln:focus-visible{outline-style:none;}",".rpii7ln[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rpii7ln[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rj2dzlr{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-left:var(--spacingVerticalSNudge);padding-right:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".rj2dzlr:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rj2dzlr:hover .fui-Icon-filled{display:inline;}",".rj2dzlr:hover .fui-Icon-regular{display:none;}",".rj2dzlr:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rj2dzlr:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rj2dzlr:focus{outline-style:none;}",".rj2dzlr:focus-visible{outline-style:none;}",".rj2dzlr[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rj2dzlr[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rpii7ln[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rj2dzlr[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useContentBaseStyles=__resetStyles("r1ls86vo","rpbc5dr",[".r1ls86vo{padding-left:2px;padding-right:2px;background-color:transparent;flex-grow:1;}",".rpbc5dr{padding-right:2px;padding-left:2px;background-color:transparent;flex-grow:1;}"]),useSecondaryContentBaseStyles=__resetStyles("r79npjw","r1j24c7y",[".r79npjw{padding-left:2px;padding-right:2px;color:var(--colorNeutralForeground3);}",".r79npjw:hover{color:var(--colorNeutralForeground3Hover);}",".r79npjw:focus{color:var(--colorNeutralForeground3Hover);}",".r1j24c7y{padding-right:2px;padding-left:2px;color:var(--colorNeutralForeground3);}",".r1j24c7y:hover{color:var(--colorNeutralForeground3Hover);}",".r1j24c7y:focus{color:var(--colorNeutralForeground3Hover);}"]),useIconBaseStyles$2=__resetStyles("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),useSubmenuIndicatorBaseStyles=__resetStyles("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),useStyles$A=__styles({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},disabled:{sj55zd:"f1s2aq7o",Bi91k9c:"fvgxktp",Jwef8y:"f1ijtazh",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bg7n49j:"f1q1x1ba",t0hwav:"ft33916",Bbusuzp:"f1dcs8yz",ze5xyy:"f1kc2mi9",Bctn1xl:"fk56vqo",Bh6z0a4:"f1ikwg0d"}},{d:[".fmnzpld{margin-top:2px;}",".fqerorx{flex-grow:1;}",".f1ozlkrg{border-top-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",'.f1wl9k8s::before{content:"";}',".f1yn80uh::before{width:var(--strokeWidthThin);}",".f68mna0::before{height:24px;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],h:[".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ijtazh:hover{background-color:var(--colorNeutralBackground1);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1q1x1ba:hover .fui-MenuItem__icon{color:var(--colorNeutralForegroundDisabled);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk56vqo:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ikwg0d:focus{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useMenuItemStyles_unstable=eo=>{const to=useStyles$A(),no=useRootBaseStyles$4(),io=useContentBaseStyles(),so=useSecondaryContentBaseStyles(),ao=useIconBaseStyles$2(),lo=useSubmenuIndicatorBaseStyles();eo.root.className=mergeClasses(menuItemClassNames.root,no,eo.disabled&&to.disabled,eo.root.className),eo.content&&(eo.content.className=mergeClasses(menuItemClassNames.content,io,eo.content.className)),eo.checkmark&&(eo.checkmark.className=mergeClasses(menuItemClassNames.checkmark,to.checkmark,eo.checkmark.className)),eo.secondaryContent&&(eo.secondaryContent.className=mergeClasses(menuItemClassNames.secondaryContent,!eo.disabled&&so,eo.secondaryContent.className)),eo.icon&&(eo.icon.className=mergeClasses(menuItemClassNames.icon,ao,eo.icon.className)),eo.submenuIndicator&&(eo.submenuIndicator.className=mergeClasses(menuItemClassNames.submenuIndicator,lo,eo.submenuIndicator.className)),useCheckmarkStyles_unstable(eo)},MenuItem=reactExports.forwardRef((eo,to)=>{const no=useMenuItem_unstable(eo,to);return useMenuItemStyles_unstable(no),useCustomStyleHook("useMenuItemStyles_unstable")(no),renderMenuItem_unstable(no)});MenuItem.displayName="MenuItem";const useMenuList_unstable=(eo,to)=>{const{findAllFocusable:no}=useFocusFinders(),io=useMenuContextSelectors(),so=useHasParentContext(MenuContext$1),ao=useArrowNavigationGroup({circular:!0,ignoreDefaultKeydown:{Tab:so}});usingPropsAndMenuContext(eo,io,so)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const lo=reactExports.useRef(null),uo=reactExports.useCallback((Co,$o)=>{const Ro=["menuitem","menuitemcheckbox","menuitemradio"];if(!lo.current)return;const Oo=no(lo.current,Go=>Go.hasAttribute("role")&&Ro.indexOf(Go.getAttribute("role"))!==-1);let No=Oo.indexOf($o)+1;No===Oo.length&&(No=0);const Mo=Oo.map(Go=>{var Do;return(Do=Go.textContent)===null||Do===void 0?void 0:Do.charAt(0).toLowerCase()}),Bo=Co.key.toLowerCase(),Po=(Go,Do)=>{for(let Uo=Go;Uo-1&&Oo[Lo].focus()},[no]);var ho;const[go,mo]=useControllableState({state:(ho=eo.checkedValues)!==null&&ho!==void 0?ho:so?io.checkedValues:void 0,defaultState:eo.defaultCheckedValues,initialState:{}});var yo;const So=(yo=eo.onCheckedValueChange)!==null&&yo!==void 0?yo:so?io.onCheckedValueChange:void 0,_o=useEventCallback$3((Co,$o,Ro,Oo)=>{const Mo=[...(go==null?void 0:go[$o])||[]];Oo?Mo.splice(Mo.indexOf(Ro),1):Mo.push(Ro),So==null||So(Co,{name:$o,checkedItems:Mo}),mo(Bo=>({...Bo,[$o]:Mo}))}),ko=useEventCallback$3((Co,$o,Ro)=>{const Oo=[Ro];mo(No=>({...No,[$o]:Oo})),So==null||So(Co,{name:$o,checkedItems:Oo})});return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,lo),role:"menu","aria-labelledby":io.triggerId,...ao,...eo}),{elementType:"div"}),hasIcons:io.hasIcons||!1,hasCheckmarks:io.hasCheckmarks||!1,checkedValues:go,hasMenuContext:so,setFocusByFirstCharacter:uo,selectRadio:ko,toggleCheckbox:_o}},useMenuContextSelectors=()=>{const eo=useMenuContext_unstable(ao=>ao.checkedValues),to=useMenuContext_unstable(ao=>ao.onCheckedValueChange),no=useMenuContext_unstable(ao=>ao.triggerId),io=useMenuContext_unstable(ao=>ao.hasIcons),so=useMenuContext_unstable(ao=>ao.hasCheckmarks);return{checkedValues:eo,onCheckedValueChange:to,triggerId:no,hasIcons:io,hasCheckmarks:so}},usingPropsAndMenuContext=(eo,to,no)=>{let io=!1;for(const so in to)eo[so]&&(io=!0);return no&&io},renderMenuList_unstable=(eo,to)=>jsx$1(MenuListProvider,{value:to.menuList,children:jsx$1(eo.root,{})});function useMenuListContextValues_unstable(eo){const{checkedValues:to,hasCheckmarks:no,hasIcons:io,selectRadio:so,setFocusByFirstCharacter:ao,toggleCheckbox:lo}=eo;return{menuList:{checkedValues:to,hasCheckmarks:no,hasIcons:io,selectRadio:so,setFocusByFirstCharacter:ao,toggleCheckbox:lo}}}const menuListClassNames={root:"fui-MenuList"},useStyles$z=__styles({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:"f16mnhsx",Belr9w4:"fbi42co"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f16mnhsx{column-gap:2px;}",".fbi42co{row-gap:2px;}",".f1l02sjl{height:100%;}"]}),useMenuListStyles_unstable=eo=>{const to=useStyles$z();return eo.root.className=mergeClasses(menuListClassNames.root,to.root,eo.hasMenuContext&&to.hasMenuContext,eo.root.className),eo},MenuList=reactExports.forwardRef((eo,to)=>{const no=useMenuList_unstable(eo,to),io=useMenuListContextValues_unstable(no);return useMenuListStyles_unstable(no),useCustomStyleHook("useMenuListStyles_unstable")(no),renderMenuList_unstable(no,io)});MenuList.displayName="MenuList";const useMenuPopover_unstable=(eo,to)=>{const no=useMenuContext_unstable(Mo=>Mo.menuPopoverRef),io=useMenuContext_unstable(Mo=>Mo.setOpen),so=useMenuContext_unstable(Mo=>Mo.open),ao=useMenuContext_unstable(Mo=>Mo.openOnHover),lo=useMenuContext_unstable(Mo=>Mo.triggerRef),uo=useIsSubmenu(),ho=reactExports.useRef(!0),go=reactExports.useRef(0),mo=useRestoreFocusSource(),{dir:yo}=useFluent(),So=yo==="ltr"?ArrowLeft:ArrowRight,_o=reactExports.useCallback(Mo=>{Mo&&Mo.addEventListener("mouseover",Bo=>{ho.current&&(ho.current=!1,dispatchMenuEnterEvent(no.current,Bo),go.current=setTimeout(()=>ho.current=!0,250))})},[no,go]);reactExports.useEffect(()=>{},[]);var ko;const Co=(ko=useMenuContext_unstable(Mo=>Mo.inline))!==null&&ko!==void 0?ko:!1,$o=useMenuContext_unstable(Mo=>Mo.mountNode),Ro=always(getIntrinsicElementProps("div",{role:"presentation",...mo,...eo,ref:useMergedRefs$1(to,no,_o)}),{elementType:"div"}),{onMouseEnter:Oo,onKeyDown:No}=Ro;return Ro.onMouseEnter=useEventCallback$3(Mo=>{ao&&io(Mo,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:Mo}),Oo==null||Oo(Mo)}),Ro.onKeyDown=useEventCallback$3(Mo=>{const Bo=Mo.key;if(Bo===Escape$1||uo&&Bo===So){var Po;so&&(!((Po=no.current)===null||Po===void 0)&&Po.contains(Mo.target))&&!Mo.isDefaultPrevented()&&(io(Mo,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:Mo}),Mo.preventDefault())}if(Bo===Tab$2&&(io(Mo,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:Mo}),!uo)){var Lo;(Lo=lo.current)===null||Lo===void 0||Lo.focus()}No==null||No(Mo)}),{inline:Co,mountNode:$o,components:{root:"div"},root:Ro}},menuPopoverClassNames={root:"fui-MenuPopover"},useStyles$y=__styles({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",z8tnut:"f10ra9hq",z189sj:["f8wuabp","fycuoez"],Byoj8tv:"f1y2xyjm",uwmqm3:["fycuoez","f8wuabp"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".fl8fusi{min-width:138px;}",".f1kaai3v{max-width:300px;}",".f1p9o1ba{overflow-x:hidden;}",".f1ahpp82{width:max-content;}",".f1hg901r{box-shadow:var(--shadow16);}",".f10ra9hq{padding-top:4px;}",".f8wuabp{padding-right:4px;}",".fycuoez{padding-left:4px;}",".f1y2xyjm{padding-bottom:4px;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),useMenuPopoverStyles_unstable=eo=>{const to=useStyles$y();return eo.root.className=mergeClasses(menuPopoverClassNames.root,to.root,eo.root.className),eo},renderMenuPopover_unstable=eo=>eo.inline?jsx$1(eo.root,{}):jsx$1(Portal$1,{mountNode:eo.mountNode,children:jsx$1(eo.root,{})}),MenuPopover=reactExports.forwardRef((eo,to)=>{const no=useMenuPopover_unstable(eo,to);return useMenuPopoverStyles_unstable(no),useCustomStyleHook("useMenuPopoverStyles_unstable")(no),renderMenuPopover_unstable(no)});MenuPopover.displayName="MenuPopover";const useMenuTrigger_unstable=eo=>{const{children:to,disableButtonEnhancement:no=!1}=eo,io=useMenuContext_unstable(Yo=>Yo.triggerRef),so=useMenuContext_unstable(Yo=>Yo.menuPopoverRef),ao=useMenuContext_unstable(Yo=>Yo.setOpen),lo=useMenuContext_unstable(Yo=>Yo.open),uo=useMenuContext_unstable(Yo=>Yo.triggerId),ho=useMenuContext_unstable(Yo=>Yo.openOnHover),go=useMenuContext_unstable(Yo=>Yo.openOnContext),mo=useRestoreFocusTarget(),yo=useIsSubmenu(),{findFirstFocusable:So}=useFocusFinders(),_o=reactExports.useCallback(()=>{const Yo=So(so.current);Yo==null||Yo.focus()},[So,so]),ko=reactExports.useRef(!1),Co=reactExports.useRef(!1),{dir:$o}=useFluent(),Ro=$o==="ltr"?ArrowRight:ArrowLeft,Oo=getTriggerChild(to),No=Yo=>{isTargetDisabled(Yo)||Yo.isDefaultPrevented()||go&&(Yo.preventDefault(),ao(Yo,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:Yo}))},Mo=Yo=>{isTargetDisabled(Yo)||go||(ao(Yo,{open:!lo,keyboard:ko.current,type:"menuTriggerClick",event:Yo}),ko.current=!1)},Bo=Yo=>{if(isTargetDisabled(Yo))return;const qo=Yo.key;!go&&(yo&&qo===Ro||!yo&&qo===ArrowDown)&&ao(Yo,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:Yo}),qo===Escape$1&&!yo&&ao(Yo,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:Yo}),lo&&qo===Ro&&yo&&_o()},Po=Yo=>{isTargetDisabled(Yo)||ho&&Co.current&&ao(Yo,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:Yo})},Lo=Yo=>{isTargetDisabled(Yo)||ho&&!Co.current&&(ao(Yo,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:Yo}),Co.current=!0)},Go=Yo=>{isTargetDisabled(Yo)||ho&&ao(Yo,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:Yo})},Do={id:uo,...mo,...Oo==null?void 0:Oo.props,ref:useMergedRefs$1(io,Oo==null?void 0:Oo.ref),onMouseEnter:useEventCallback$3(mergeCallbacks(Oo==null?void 0:Oo.props.onMouseEnter,Po)),onMouseLeave:useEventCallback$3(mergeCallbacks(Oo==null?void 0:Oo.props.onMouseLeave,Go)),onContextMenu:useEventCallback$3(mergeCallbacks(Oo==null?void 0:Oo.props.onContextMenu,No)),onMouseMove:useEventCallback$3(mergeCallbacks(Oo==null?void 0:Oo.props.onMouseMove,Lo))},Uo={"aria-haspopup":"menu","aria-expanded":!lo&&!yo?void 0:lo,...Do,onClick:useEventCallback$3(mergeCallbacks(Oo==null?void 0:Oo.props.onClick,Mo)),onKeyDown:useEventCallback$3(mergeCallbacks(Oo==null?void 0:Oo.props.onKeyDown,Bo))},Ho=useARIAButtonProps((Oo==null?void 0:Oo.type)==="button"||(Oo==null?void 0:Oo.type)==="a"?Oo.type:"div",Uo);return{isSubmenu:yo,children:applyTriggerPropsToChildren(to,go?Do:no?Uo:Ho)}},isTargetDisabled=eo=>{const to=no=>no.hasAttribute("disabled")||no.hasAttribute("aria-disabled")&&no.getAttribute("aria-disabled")==="true";return isHTMLElement$6(eo.target)&&to(eo.target)?!0:isHTMLElement$6(eo.currentTarget)&&to(eo.currentTarget)},renderMenuTrigger_unstable=eo=>reactExports.createElement(MenuTriggerContextProvider,{value:eo.isSubmenu},eo.children),MenuTrigger=eo=>{const to=useMenuTrigger_unstable(eo);return renderMenuTrigger_unstable(to)};MenuTrigger.displayName="MenuTrigger";MenuTrigger.isFluentTriggerComponent=!0;const RadioGroupContext=reactExports.createContext(void 0),radioGroupContextDefaultValue={};RadioGroupContext.Provider;const useRadioGroupContextValue_unstable=()=>reactExports.useContext(RadioGroupContext)||radioGroupContextDefaultValue,renderRadio_unstable=eo=>jsxs(eo.root,{children:[jsx$1(eo.input,{}),jsx$1(eo.indicator,{}),eo.label&&jsx$1(eo.label,{})]}),useRadio_unstable=(eo,to)=>{const no=useRadioGroupContextValue_unstable(),{name:io=no.name,checked:so=no.value!==void 0?no.value===eo.value:void 0,defaultChecked:ao=no.defaultValue!==void 0?no.defaultValue===eo.value:void 0,labelPosition:lo=no.layout==="horizontal-stacked"?"below":"after",disabled:uo=no.disabled,required:ho=no.required,"aria-describedby":go=no["aria-describedby"],onChange:mo}=eo,yo=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),So=always(eo.root,{defaultProps:{ref:useFocusWithin(),...yo.root},elementType:"span"}),_o=always(eo.input,{defaultProps:{ref:to,type:"radio",id:useId$1("radio-",yo.primary.id),name:io,checked:so,defaultChecked:ao,disabled:uo,required:ho,"aria-describedby":go,...yo.primary},elementType:"input"});_o.onChange=mergeCallbacks(_o.onChange,$o=>mo==null?void 0:mo($o,{value:$o.currentTarget.value}));const ko=optional(eo.label,{defaultProps:{htmlFor:_o.id,disabled:_o.disabled},elementType:Label}),Co=always(eo.indicator,{defaultProps:{"aria-hidden":!0,children:reactExports.createElement(CircleFilled,null)},elementType:"div"});return{labelPosition:lo,components:{root:"span",input:"input",label:Label,indicator:"div"},root:So,input:_o,label:ko,indicator:Co}},radioClassNames={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},useRootBaseClassName$1=__resetStyles("rm0dkue","rjjxb3w",{r:[".rm0dkue{display:inline-flex;position:relative;}",".rm0dkue:focus{outline-style:none;}",".rm0dkue:focus-visible{outline-style:none;}",".rm0dkue[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rm0dkue[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rjjxb3w{display:inline-flex;position:relative;}",".rjjxb3w:focus{outline-style:none;}",".rjjxb3w:focus-visible{outline-style:none;}",".rjjxb3w[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rjjxb3w[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rm0dkue[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rjjxb3w[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useRootStyles$7=__styles({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),useInputBaseClassName$1=__resetStyles("r9gx1vl","r1uk1i2c",[".r9gx1vl{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".r9gx1vl:enabled{cursor:pointer;}",".r9gx1vl:enabled~.fui-Radio__label{cursor:pointer;}",".r9gx1vl:not(:checked)~.fui-Radio__indicator>*{opacity:0;}",".r9gx1vl:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".r9gx1vl:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".r9gx1vl:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".r9gx1vl:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".r9gx1vl:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r9gx1vl:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r9gx1vl:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r9gx1vl:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".r9gx1vl:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".r9gx1vl:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".r9gx1vl:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".r9gx1vl:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".r1uk1i2c{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".r1uk1i2c:enabled{cursor:pointer;}",".r1uk1i2c:enabled~.fui-Radio__label{cursor:pointer;}",".r1uk1i2c:not(:checked)~.fui-Radio__indicator>*{opacity:0;}",".r1uk1i2c:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".r1uk1i2c:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".r1uk1i2c:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".r1uk1i2c:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1uk1i2c:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r1uk1i2c:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1uk1i2c:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r1uk1i2c:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".r1uk1i2c:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".r1uk1i2c:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".r1uk1i2c:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".r1uk1i2c:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"]),useInputStyles$1=__styles({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}"]}),useIndicatorBaseClassName$1=__resetStyles("rid4516",null,[".rid4516{width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}"]),useLabelStyles$2=__styles({base:{qb2dma:"f7nlbp4",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),useRadioStyles_unstable=eo=>{const{labelPosition:to}=eo,no=useRootBaseClassName$1(),io=useRootStyles$7();eo.root.className=mergeClasses(radioClassNames.root,no,to==="below"&&io.vertical,eo.root.className);const so=useInputBaseClassName$1(),ao=useInputStyles$1();eo.input.className=mergeClasses(radioClassNames.input,so,to==="below"&&ao.below,eo.input.className);const lo=useIndicatorBaseClassName$1();eo.indicator.className=mergeClasses(radioClassNames.indicator,lo,eo.indicator.className);const uo=useLabelStyles$2();eo.label&&(eo.label.className=mergeClasses(radioClassNames.label,uo.base,uo[to],eo.label.className))},Radio$2=reactExports.forwardRef((eo,to)=>{const no=useRadio_unstable(eo,to);return useRadioStyles_unstable(no),useCustomStyleHook("useRadioStyles_unstable")(no),renderRadio_unstable(no)});Radio$2.displayName="Radio";const useSelect_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const no=useOverrides();var io;const{defaultValue:so,value:ao,select:lo,icon:uo,root:ho,appearance:go=(io=no.inputDefaultAppearance)!==null&&io!==void 0?io:"outline",onChange:mo,size:yo="medium"}=eo,So=getPartitionedNativeProps({props:eo,primarySlotTagName:"select",excludedPropNames:["appearance","defaultValue","onChange","size","value"]}),_o={size:yo,appearance:go,components:{root:"span",select:"select",icon:"span"},select:always(lo,{defaultProps:{defaultValue:so,value:ao,ref:to,...So.primary},elementType:"select"}),icon:optional(uo,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(ChevronDownRegular,null)},elementType:"span"}),root:always(ho,{defaultProps:So.root,elementType:"span"})};return _o.select.onChange=useEventCallback$3(ko=>{mo==null||mo(ko,{value:ko.target.value})}),_o},renderSelect_unstable=eo=>jsxs(eo.root,{children:[jsx$1(eo.select,{children:eo.select.children}),jsx$1(eo.icon,{})]}),selectClassNames={root:"fui-Select",select:"fui-Select__select",icon:"fui-Select__icon"},useRootStyles$6=__styles({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Eh141a:"flvyvdh",Bahqtrf:"fk6fouc",qhf8xq:"f10pi13n",h62rwi:"f7ll8cq",B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"],li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",Dlnsje:"fhwjr99",E3zdtr:"f1mdlcz9",By385i5:"fo72kxq",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o"}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".flvyvdh{flex-wrap:nowrap;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f10pi13n{position:relative;}",`.f7ll8cq::after{background-image:linear-gradient( + */class Tabster{constructor(to){this.keyboardNavigation=to.keyboardNavigation,this.focusedElement=to.focusedElement,this.focusable=to.focusable,this.root=to.root,this.uncontrolled=to.uncontrolled,this.core=to}}class TabsterCore{constructor(to,no){var io,so;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.2.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=createWeakMap(to),this._win=to;const ao=this.getWindow;this.keyboardNavigation=new KeyboardNavigationState(ao),this.focusedElement=new FocusedElementState(this,ao),this.focusable=new FocusableAPI(this),this.root=new RootAPI(this,no==null?void 0:no.autoRoot),this.uncontrolled=new UncontrolledAPI((no==null?void 0:no.checkUncontrolledCompletely)||(no==null?void 0:no.checkUncontrolledTrappingFocus)),this.controlTab=(io=no==null?void 0:no.controlTab)!==null&&io!==void 0?io:!0,this.rootDummyInputs=!!(no!=null&&no.rootDummyInputs),this._dummyObserver=new DummyInputObserver(ao),this.getParent=(so=no==null?void 0:no.getParent)!==null&&so!==void 0?so:lo=>lo.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:lo=>{if(!this._unobserve){const uo=ao().document;this._unobserve=observeMutations(uo,this,updateTabsterByAttribute,lo)}}},startFakeWeakRefsCleanup(ao),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(to){var no;to&&(this.getParent=(no=to.getParent)!==null&&no!==void 0?no:this.getParent)}createTabster(to,no){const io=new Tabster(this);return to||this._wrappers.add(io),this._mergeProps(no),io}disposeTabster(to,no){no?this._wrappers.clear():this._wrappers.delete(to),this._wrappers.size===0&&this.dispose()}dispose(){var to,no,io,so,ao,lo,uo,ho;this.internal.stopObserver();const go=this._win;go==null||go.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],go&&this._forgetMemorizedTimer&&(go.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(to=this.outline)===null||to===void 0||to.dispose(),(no=this.crossOrigin)===null||no===void 0||no.dispose(),(io=this.deloser)===null||io===void 0||io.dispose(),(so=this.groupper)===null||so===void 0||so.dispose(),(ao=this.mover)===null||ao===void 0||ao.dispose(),(lo=this.modalizer)===null||lo===void 0||lo.dispose(),(uo=this.observedElement)===null||uo===void 0||uo.dispose(),(ho=this.restorer)===null||ho===void 0||ho.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),stopFakeWeakRefsCleanupAndClearStorage(this.getWindow),clearElementCache(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),go&&(disposeInstanceContext(go),delete go.__tabsterInstance,delete this._win)}storageEntry(to,no){const io=this._storage;let so=io.get(to);return so?no===!1&&Object.keys(so).length===0&&io.delete(to):no===!0&&(so={},io.set(to,so)),so}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let to=this._forgetMemorizedElements.shift();to;to=this._forgetMemorizedElements.shift())clearElementCache(this.getWindow,to),FocusedElementState.forgetMemorized(this.focusedElement,to)},0),cleanupFakeWeakRefs(this.getWindow,!0)))}queueInit(to){var no;this._win&&(this._initQueue.push(to),this._initTimer||(this._initTimer=(no=this._win)===null||no===void 0?void 0:no.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const to=this._initQueue;this._initQueue=[],to.forEach(no=>no())}}function createTabster(eo,to){let no=getCurrentTabster(eo);return no?no.createTabster(!1,to):(no=new TabsterCore(eo,to),eo.__tabsterInstance=no,no.createTabster())}function getGroupper(eo){const to=eo.core;return to.groupper||(to.groupper=new GroupperAPI(to,to.getWindow)),to.groupper}function getMover(eo){const to=eo.core;return to.mover||(to.mover=new MoverAPI(to,to.getWindow)),to.mover}function getModalizer(eo,to,no){const io=eo.core;return io.modalizer||(io.modalizer=new ModalizerAPI(io,to,no)),io.modalizer}function getRestorer(eo){const to=eo.core;return to.restorer||(to.restorer=new RestorerAPI(to)),to.restorer}function disposeTabster(eo,to){eo.core.disposeTabster(eo,to)}function getCurrentTabster(eo){return eo.__tabsterInstance}const useTabster=()=>{const{targetDocument:eo}=useFluent(),to=(eo==null?void 0:eo.defaultView)||void 0,no=reactExports.useMemo(()=>to?createTabster(to,{autoRoot:{},controlTab:!1,getParent:getParent$2,checkUncontrolledTrappingFocus:io=>{var so;return!!(!((so=io.firstElementChild)===null||so===void 0)&&so.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[to]);return useIsomorphicLayoutEffect$1(()=>()=>{no&&disposeTabster(no)},[no]),no},useTabsterAttributes=eo=>(useTabster(),getTabsterAttribute(eo)),useArrowNavigationGroup=(eo={})=>{const{circular:to,axis:no,memorizeCurrent:io,tabbable:so,ignoreDefaultKeydown:ao,unstable_hasDefault:lo}=eo,uo=useTabster();return uo&&getMover(uo),useTabsterAttributes({mover:{cyclic:!!to,direction:axisToMoverDirection(no??"vertical"),memorizeCurrent:io,tabbable:so,hasDefault:lo},...ao&&{focusable:{ignoreKeydown:ao}}})};function axisToMoverDirection(eo){switch(eo){case"horizontal":return Types.MoverDirections.Horizontal;case"grid":return Types.MoverDirections.Grid;case"grid-linear":return Types.MoverDirections.GridLinear;case"both":return Types.MoverDirections.Both;case"vertical":default:return Types.MoverDirections.Vertical}}const useFocusableGroup=eo=>{const to=useTabster();return to&&getGroupper(to),useTabsterAttributes({groupper:{tabbability:getTabbability(eo==null?void 0:eo.tabBehavior)},focusable:{ignoreKeydown:eo==null?void 0:eo.ignoreDefaultKeydown}})},getTabbability=eo=>{switch(eo){case"unlimited":return Types.GroupperTabbabilities.Unlimited;case"limited":return Types.GroupperTabbabilities.Limited;case"limited-trap-focus":return Types.GroupperTabbabilities.LimitedTrapFocus;default:return}},useFocusFinders=()=>{const eo=useTabster(),{targetDocument:to}=useFluent(),no=reactExports.useCallback((uo,ho)=>(eo==null?void 0:eo.focusable.findAll({container:uo,acceptCondition:ho}))||[],[eo]),io=reactExports.useCallback(uo=>eo==null?void 0:eo.focusable.findFirst({container:uo}),[eo]),so=reactExports.useCallback(uo=>eo==null?void 0:eo.focusable.findLast({container:uo}),[eo]),ao=reactExports.useCallback((uo,ho={})=>{if(!eo||!to)return null;const{container:go=to.body}=ho;return eo.focusable.findNext({currentElement:uo,container:go})},[eo,to]),lo=reactExports.useCallback((uo,ho={})=>{if(!eo||!to)return null;const{container:go=to.body}=ho;return eo.focusable.findPrev({currentElement:uo,container:go})},[eo,to]);return{findAllFocusable:no,findFirstFocusable:io,findLastFocusable:so,findNextFocusable:ao,findPrevFocusable:lo}},FOCUS_VISIBLE_ATTR="data-fui-focus-visible",FOCUS_WITHIN_ATTR="data-fui-focus-within";function applyFocusVisiblePolyfill(eo,to){if(alreadyInScope(eo))return()=>{};const no={current:void 0},io=createKeyborg(to);function so(ho){io.isNavigatingWithKeyboard()&&isHTMLElement$6(ho)&&(no.current=ho,ho.setAttribute(FOCUS_VISIBLE_ATTR,""))}function ao(){no.current&&(no.current.removeAttribute(FOCUS_VISIBLE_ATTR),no.current=void 0)}io.subscribe(ho=>{ho||ao()});const lo=ho=>{ao();const go=ho.composedPath()[0];so(go)},uo=ho=>{(!ho.relatedTarget||isHTMLElement$6(ho.relatedTarget)&&!eo.contains(ho.relatedTarget))&&ao()};return eo.addEventListener(KEYBORG_FOCUSIN,lo),eo.addEventListener("focusout",uo),eo.focusVisible=!0,so(to.document.activeElement),()=>{ao(),eo.removeEventListener(KEYBORG_FOCUSIN,lo),eo.removeEventListener("focusout",uo),delete eo.focusVisible,disposeKeyborg(io)}}function alreadyInScope(eo){return eo?eo.focusVisible?!0:alreadyInScope(eo==null?void 0:eo.parentElement):!1}function useFocusVisible(eo={}){const to=useFluent(),no=reactExports.useRef(null);var io;const so=(io=eo.targetDocument)!==null&&io!==void 0?io:to.targetDocument;return reactExports.useEffect(()=>{if(so!=null&&so.defaultView&&no.current)return applyFocusVisiblePolyfill(no.current,so.defaultView)},[no,so]),no}function applyFocusWithinPolyfill(eo,to){const no=createKeyborg(to);no.subscribe(ao=>{ao||removeFocusWithinClass(eo)});const io=ao=>{no.isNavigatingWithKeyboard()&&isHTMLElement$5(ao.target)&&applyFocusWithinClass(eo)},so=ao=>{(!ao.relatedTarget||isHTMLElement$5(ao.relatedTarget)&&!eo.contains(ao.relatedTarget))&&removeFocusWithinClass(eo)};return eo.addEventListener(KEYBORG_FOCUSIN,io),eo.addEventListener("focusout",so),()=>{eo.removeEventListener(KEYBORG_FOCUSIN,io),eo.removeEventListener("focusout",so),disposeKeyborg(no)}}function applyFocusWithinClass(eo){eo.setAttribute(FOCUS_WITHIN_ATTR,"")}function removeFocusWithinClass(eo){eo.removeAttribute(FOCUS_WITHIN_ATTR)}function isHTMLElement$5(eo){return eo?!!(eo&&typeof eo=="object"&&"classList"in eo&&"contains"in eo):!1}function useFocusWithin(){const{targetDocument:eo}=useFluent(),to=reactExports.useRef(null);return reactExports.useEffect(()=>{if(eo!=null&&eo.defaultView&&to.current)return applyFocusWithinPolyfill(to.current,eo.defaultView)},[to,eo]),to}const useModalAttributes=(eo={})=>{const{trapFocus:to,alwaysFocusable:no,legacyTrapFocus:io}=eo,so=useTabster();so&&(getModalizer(so),getRestorer(so));const ao=useId$1("modal-",eo.id),lo=useTabsterAttributes({restorer:{type:Types.RestorerTypes.Source},...to&&{modalizer:{id:ao,isOthersAccessible:!to,isAlwaysAccessible:no,isTrapped:io&&to}}}),uo=useTabsterAttributes({restorer:{type:Types.RestorerTypes.Target}});return{modalAttributes:lo,triggerAttributes:uo}};function useRestoreFocusTarget(){const eo=useTabster();return eo&&getRestorer(eo),getTabsterAttribute({restorer:{type:Types.RestorerTypes.Target}})}function useRestoreFocusSource(){const eo=useTabster();return eo&&getRestorer(eo),getTabsterAttribute({restorer:{type:Types.RestorerTypes.Source}})}const grey={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},whiteAlpha={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},blackAlpha={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},grey10Alpha={5:"rgba(26, 26, 26, 0.05)",10:"rgba(26, 26, 26, 0.1)",20:"rgba(26, 26, 26, 0.2)",30:"rgba(26, 26, 26, 0.3)",40:"rgba(26, 26, 26, 0.4)",50:"rgba(26, 26, 26, 0.5)",60:"rgba(26, 26, 26, 0.6)",70:"rgba(26, 26, 26, 0.7)",80:"rgba(26, 26, 26, 0.8)",90:"rgba(26, 26, 26, 0.9)"},grey12Alpha={5:"rgba(31, 31, 31, 0.05)",10:"rgba(31, 31, 31, 0.1)",20:"rgba(31, 31, 31, 0.2)",30:"rgba(31, 31, 31, 0.3)",40:"rgba(31, 31, 31, 0.4)",50:"rgba(31, 31, 31, 0.5)",60:"rgba(31, 31, 31, 0.6)",70:"rgba(31, 31, 31, 0.7)",80:"rgba(31, 31, 31, 0.8)",90:"rgba(31, 31, 31, 0.9)"},grey14Alpha={5:"rgba(36, 36, 36, 0.05)",10:"rgba(36, 36, 36, 0.1)",20:"rgba(36, 36, 36, 0.2)",30:"rgba(36, 36, 36, 0.3)",40:"rgba(36, 36, 36, 0.4)",50:"rgba(36, 36, 36, 0.5)",60:"rgba(36, 36, 36, 0.6)",70:"rgba(36, 36, 36, 0.7)",80:"rgba(36, 36, 36, 0.8)",90:"rgba(36, 36, 36, 0.9)"},white="#ffffff",black="#000000",darkRed={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},cranberry={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},red={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},darkOrange={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},pumpkin={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},orange={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},peach={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},marigold={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},yellow={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},gold={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},brass={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},brown={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},forest={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},seafoam={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},lightGreen={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},green={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},darkGreen={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},lightTeal={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},teal={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},steel={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},blue={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},royalBlue={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},cornflower={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},navy={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},lavender={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},purple={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},grape={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},berry={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},lilac={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},pink={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},magenta={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},plum={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},beige={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},mink={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},platinum={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},anchor={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},statusSharedColors={red,green,darkOrange,yellow,berry,lightGreen,marigold},personaSharedColors={darkRed,cranberry,pumpkin,peach,gold,brass,brown,forest,seafoam,darkGreen,lightTeal,teal,steel,blue,royalBlue,cornflower,navy,lavender,purple,grape,lilac,pink,magenta,plum,beige,mink,platinum,anchor},mappedStatusColors={cranberry,green,orange},statusSharedColorNames=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],personaSharedColorNames=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],statusColorMapping={success:"green",warning:"orange",danger:"cranberry"},statusColorPaletteTokens$1=statusSharedColorNames.reduce((eo,to)=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),io={[`colorPalette${no}Background1`]:statusSharedColors[to].tint60,[`colorPalette${no}Background2`]:statusSharedColors[to].tint40,[`colorPalette${no}Background3`]:statusSharedColors[to].primary,[`colorPalette${no}Foreground1`]:statusSharedColors[to].shade10,[`colorPalette${no}Foreground2`]:statusSharedColors[to].shade30,[`colorPalette${no}Foreground3`]:statusSharedColors[to].primary,[`colorPalette${no}BorderActive`]:statusSharedColors[to].primary,[`colorPalette${no}Border1`]:statusSharedColors[to].tint40,[`colorPalette${no}Border2`]:statusSharedColors[to].primary};return Object.assign(eo,io)},{});statusColorPaletteTokens$1.colorPaletteYellowForeground1=statusSharedColors.yellow.shade30;statusColorPaletteTokens$1.colorPaletteRedForegroundInverted=statusSharedColors.red.tint20;statusColorPaletteTokens$1.colorPaletteGreenForegroundInverted=statusSharedColors.green.tint20;statusColorPaletteTokens$1.colorPaletteYellowForegroundInverted=statusSharedColors.yellow.tint40;const personaColorPaletteTokens$1=personaSharedColorNames.reduce((eo,to)=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),io={[`colorPalette${no}Background2`]:personaSharedColors[to].tint40,[`colorPalette${no}Foreground2`]:personaSharedColors[to].shade30,[`colorPalette${no}BorderActive`]:personaSharedColors[to].primary};return Object.assign(eo,io)},{}),colorPaletteTokens$1={...statusColorPaletteTokens$1,...personaColorPaletteTokens$1},colorStatusTokens$1=Object.entries(statusColorMapping).reduce((eo,[to,no])=>{const io=to.slice(0,1).toUpperCase()+to.slice(1),so={[`colorStatus${io}Background1`]:mappedStatusColors[no].tint60,[`colorStatus${io}Background2`]:mappedStatusColors[no].tint40,[`colorStatus${io}Background3`]:mappedStatusColors[no].primary,[`colorStatus${io}Foreground1`]:mappedStatusColors[no].shade10,[`colorStatus${io}Foreground2`]:mappedStatusColors[no].shade30,[`colorStatus${io}Foreground3`]:mappedStatusColors[no].primary,[`colorStatus${io}ForegroundInverted`]:mappedStatusColors[no].tint30,[`colorStatus${io}BorderActive`]:mappedStatusColors[no].primary,[`colorStatus${io}Border1`]:mappedStatusColors[no].tint40,[`colorStatus${io}Border2`]:mappedStatusColors[no].primary};return Object.assign(eo,so)},{});colorStatusTokens$1.colorStatusWarningForeground1=mappedStatusColors[statusColorMapping.warning].shade20;colorStatusTokens$1.colorStatusWarningForeground3=mappedStatusColors[statusColorMapping.warning].shade20;colorStatusTokens$1.colorStatusWarningBorder2=mappedStatusColors[statusColorMapping.warning].shade20;const generateColorTokens$1=eo=>({colorNeutralForeground1:grey[14],colorNeutralForeground1Hover:grey[14],colorNeutralForeground1Pressed:grey[14],colorNeutralForeground1Selected:grey[14],colorNeutralForeground2:grey[26],colorNeutralForeground2Hover:grey[14],colorNeutralForeground2Pressed:grey[14],colorNeutralForeground2Selected:grey[14],colorNeutralForeground2BrandHover:eo[80],colorNeutralForeground2BrandPressed:eo[70],colorNeutralForeground2BrandSelected:eo[80],colorNeutralForeground3:grey[38],colorNeutralForeground3Hover:grey[26],colorNeutralForeground3Pressed:grey[26],colorNeutralForeground3Selected:grey[26],colorNeutralForeground3BrandHover:eo[80],colorNeutralForeground3BrandPressed:eo[70],colorNeutralForeground3BrandSelected:eo[80],colorNeutralForeground4:grey[44],colorNeutralForegroundDisabled:grey[74],colorNeutralForegroundInvertedDisabled:whiteAlpha[40],colorBrandForegroundLink:eo[70],colorBrandForegroundLinkHover:eo[60],colorBrandForegroundLinkPressed:eo[40],colorBrandForegroundLinkSelected:eo[70],colorNeutralForeground2Link:grey[26],colorNeutralForeground2LinkHover:grey[14],colorNeutralForeground2LinkPressed:grey[14],colorNeutralForeground2LinkSelected:grey[14],colorCompoundBrandForeground1:eo[80],colorCompoundBrandForeground1Hover:eo[70],colorCompoundBrandForeground1Pressed:eo[60],colorBrandForeground1:eo[80],colorBrandForeground2:eo[70],colorBrandForeground2Hover:eo[60],colorBrandForeground2Pressed:eo[30],colorNeutralForeground1Static:grey[14],colorNeutralForegroundStaticInverted:white,colorNeutralForegroundInverted:white,colorNeutralForegroundInvertedHover:white,colorNeutralForegroundInvertedPressed:white,colorNeutralForegroundInvertedSelected:white,colorNeutralForegroundInverted2:white,colorNeutralForegroundOnBrand:white,colorNeutralForegroundInvertedLink:white,colorNeutralForegroundInvertedLinkHover:white,colorNeutralForegroundInvertedLinkPressed:white,colorNeutralForegroundInvertedLinkSelected:white,colorBrandForegroundInverted:eo[100],colorBrandForegroundInvertedHover:eo[110],colorBrandForegroundInvertedPressed:eo[100],colorBrandForegroundOnLight:eo[80],colorBrandForegroundOnLightHover:eo[70],colorBrandForegroundOnLightPressed:eo[50],colorBrandForegroundOnLightSelected:eo[60],colorNeutralBackground1:white,colorNeutralBackground1Hover:grey[96],colorNeutralBackground1Pressed:grey[88],colorNeutralBackground1Selected:grey[92],colorNeutralBackground2:grey[98],colorNeutralBackground2Hover:grey[94],colorNeutralBackground2Pressed:grey[86],colorNeutralBackground2Selected:grey[90],colorNeutralBackground3:grey[96],colorNeutralBackground3Hover:grey[92],colorNeutralBackground3Pressed:grey[84],colorNeutralBackground3Selected:grey[88],colorNeutralBackground4:grey[94],colorNeutralBackground4Hover:grey[98],colorNeutralBackground4Pressed:grey[96],colorNeutralBackground4Selected:white,colorNeutralBackground5:grey[92],colorNeutralBackground5Hover:grey[96],colorNeutralBackground5Pressed:grey[94],colorNeutralBackground5Selected:grey[98],colorNeutralBackground6:grey[90],colorNeutralBackgroundInverted:grey[16],colorNeutralBackgroundStatic:grey[20],colorNeutralBackgroundAlpha:whiteAlpha[50],colorNeutralBackgroundAlpha2:whiteAlpha[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:grey[96],colorSubtleBackgroundPressed:grey[88],colorSubtleBackgroundSelected:grey[92],colorSubtleBackgroundLightAlphaHover:whiteAlpha[70],colorSubtleBackgroundLightAlphaPressed:whiteAlpha[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:blackAlpha[10],colorSubtleBackgroundInvertedPressed:blackAlpha[30],colorSubtleBackgroundInvertedSelected:blackAlpha[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:grey[94],colorNeutralBackgroundInvertedDisabled:whiteAlpha[10],colorNeutralStencil1:grey[90],colorNeutralStencil2:grey[98],colorNeutralStencil1Alpha:blackAlpha[10],colorNeutralStencil2Alpha:blackAlpha[5],colorBackgroundOverlay:blackAlpha[40],colorScrollbarOverlay:blackAlpha[50],colorBrandBackground:eo[80],colorBrandBackgroundHover:eo[70],colorBrandBackgroundPressed:eo[40],colorBrandBackgroundSelected:eo[60],colorCompoundBrandBackground:eo[80],colorCompoundBrandBackgroundHover:eo[70],colorCompoundBrandBackgroundPressed:eo[60],colorBrandBackgroundStatic:eo[80],colorBrandBackground2:eo[160],colorBrandBackground2Hover:eo[150],colorBrandBackground2Pressed:eo[130],colorBrandBackgroundInverted:white,colorBrandBackgroundInvertedHover:eo[160],colorBrandBackgroundInvertedPressed:eo[140],colorBrandBackgroundInvertedSelected:eo[150],colorNeutralStrokeAccessible:grey[38],colorNeutralStrokeAccessibleHover:grey[34],colorNeutralStrokeAccessiblePressed:grey[30],colorNeutralStrokeAccessibleSelected:eo[80],colorNeutralStroke1:grey[82],colorNeutralStroke1Hover:grey[78],colorNeutralStroke1Pressed:grey[70],colorNeutralStroke1Selected:grey[74],colorNeutralStroke2:grey[88],colorNeutralStroke3:grey[94],colorNeutralStrokeSubtle:grey[88],colorNeutralStrokeOnBrand:white,colorNeutralStrokeOnBrand2:white,colorNeutralStrokeOnBrand2Hover:white,colorNeutralStrokeOnBrand2Pressed:white,colorNeutralStrokeOnBrand2Selected:white,colorBrandStroke1:eo[80],colorBrandStroke2:eo[140],colorBrandStroke2Hover:eo[120],colorBrandStroke2Pressed:eo[80],colorBrandStroke2Contrast:eo[140],colorCompoundBrandStroke:eo[80],colorCompoundBrandStrokeHover:eo[70],colorCompoundBrandStrokePressed:eo[60],colorNeutralStrokeDisabled:grey[88],colorNeutralStrokeInvertedDisabled:whiteAlpha[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:blackAlpha[5],colorNeutralStrokeAlpha2:whiteAlpha[20],colorStrokeFocus1:white,colorStrokeFocus2:black,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),borderRadius={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},curves={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},durations={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},fontSizes={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},lineHeights={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},fontWeights={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},fontFamilies={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},spacings$1={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},horizontalSpacings={spacingHorizontalNone:spacings$1.none,spacingHorizontalXXS:spacings$1.xxs,spacingHorizontalXS:spacings$1.xs,spacingHorizontalSNudge:spacings$1.sNudge,spacingHorizontalS:spacings$1.s,spacingHorizontalMNudge:spacings$1.mNudge,spacingHorizontalM:spacings$1.m,spacingHorizontalL:spacings$1.l,spacingHorizontalXL:spacings$1.xl,spacingHorizontalXXL:spacings$1.xxl,spacingHorizontalXXXL:spacings$1.xxxl},verticalSpacings={spacingVerticalNone:spacings$1.none,spacingVerticalXXS:spacings$1.xxs,spacingVerticalXS:spacings$1.xs,spacingVerticalSNudge:spacings$1.sNudge,spacingVerticalS:spacings$1.s,spacingVerticalMNudge:spacings$1.mNudge,spacingVerticalM:spacings$1.m,spacingVerticalL:spacings$1.l,spacingVerticalXL:spacings$1.xl,spacingVerticalXXL:spacings$1.xxl,spacingVerticalXXXL:spacings$1.xxxl},strokeWidths={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},tokens$1={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function createShadowTokens(eo,to,no=""){return{[`shadow2${no}`]:`0 0 2px ${eo}, 0 1px 2px ${to}`,[`shadow4${no}`]:`0 0 2px ${eo}, 0 2px 4px ${to}`,[`shadow8${no}`]:`0 0 2px ${eo}, 0 4px 8px ${to}`,[`shadow16${no}`]:`0 0 2px ${eo}, 0 8px 16px ${to}`,[`shadow28${no}`]:`0 0 8px ${eo}, 0 14px 28px ${to}`,[`shadow64${no}`]:`0 0 8px ${eo}, 0 32px 64px ${to}`}}const createLightTheme=eo=>{const to=generateColorTokens$1(eo);return{...borderRadius,...fontSizes,...lineHeights,...fontFamilies,...fontWeights,...strokeWidths,...horizontalSpacings,...verticalSpacings,...durations,...curves,...to,...colorPaletteTokens$1,...colorStatusTokens$1,...createShadowTokens(to.colorNeutralShadowAmbient,to.colorNeutralShadowKey),...createShadowTokens(to.colorBrandShadowAmbient,to.colorBrandShadowKey,"Brand")}},brandWeb={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},statusColorPaletteTokens=statusSharedColorNames.reduce((eo,to)=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),io={[`colorPalette${no}Background1`]:statusSharedColors[to].shade40,[`colorPalette${no}Background2`]:statusSharedColors[to].shade30,[`colorPalette${no}Background3`]:statusSharedColors[to].primary,[`colorPalette${no}Foreground1`]:statusSharedColors[to].tint30,[`colorPalette${no}Foreground2`]:statusSharedColors[to].tint40,[`colorPalette${no}Foreground3`]:statusSharedColors[to].tint20,[`colorPalette${no}BorderActive`]:statusSharedColors[to].tint30,[`colorPalette${no}Border1`]:statusSharedColors[to].primary,[`colorPalette${no}Border2`]:statusSharedColors[to].tint20};return Object.assign(eo,io)},{});statusColorPaletteTokens.colorPaletteRedForeground3=statusSharedColors.red.tint30;statusColorPaletteTokens.colorPaletteRedBorder2=statusSharedColors.red.tint30;statusColorPaletteTokens.colorPaletteGreenForeground3=statusSharedColors.green.tint40;statusColorPaletteTokens.colorPaletteGreenBorder2=statusSharedColors.green.tint40;statusColorPaletteTokens.colorPaletteDarkOrangeForeground3=statusSharedColors.darkOrange.tint30;statusColorPaletteTokens.colorPaletteDarkOrangeBorder2=statusSharedColors.darkOrange.tint30;statusColorPaletteTokens.colorPaletteRedForegroundInverted=statusSharedColors.red.primary;statusColorPaletteTokens.colorPaletteGreenForegroundInverted=statusSharedColors.green.primary;statusColorPaletteTokens.colorPaletteYellowForegroundInverted=statusSharedColors.yellow.shade30;const personaColorPaletteTokens=personaSharedColorNames.reduce((eo,to)=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),io={[`colorPalette${no}Background2`]:personaSharedColors[to].shade30,[`colorPalette${no}Foreground2`]:personaSharedColors[to].tint40,[`colorPalette${no}BorderActive`]:personaSharedColors[to].tint30};return Object.assign(eo,io)},{});personaColorPaletteTokens.colorPaletteDarkRedBackground2=personaSharedColors.darkRed.shade20;personaColorPaletteTokens.colorPalettePlumBackground2=personaSharedColors.plum.shade20;const colorPaletteTokens={...statusColorPaletteTokens,...personaColorPaletteTokens},colorStatusTokens=Object.entries(statusColorMapping).reduce((eo,[to,no])=>{const io=to.slice(0,1).toUpperCase()+to.slice(1),so={[`colorStatus${io}Background1`]:mappedStatusColors[no].shade40,[`colorStatus${io}Background2`]:mappedStatusColors[no].shade30,[`colorStatus${io}Background3`]:mappedStatusColors[no].primary,[`colorStatus${io}Foreground1`]:mappedStatusColors[no].tint30,[`colorStatus${io}Foreground2`]:mappedStatusColors[no].tint40,[`colorStatus${io}Foreground3`]:mappedStatusColors[no].tint20,[`colorStatus${io}BorderActive`]:mappedStatusColors[no].tint30,[`colorStatus${io}ForegroundInverted`]:mappedStatusColors[no].shade10,[`colorStatus${io}Border1`]:mappedStatusColors[no].primary,[`colorStatus${io}Border2`]:mappedStatusColors[no].tint20};return Object.assign(eo,so)},{});colorStatusTokens.colorStatusDangerForeground3=mappedStatusColors[statusColorMapping.danger].tint30;colorStatusTokens.colorStatusDangerBorder2=mappedStatusColors[statusColorMapping.danger].tint30;colorStatusTokens.colorStatusSuccessForeground3=mappedStatusColors[statusColorMapping.success].tint40;colorStatusTokens.colorStatusSuccessBorder2=mappedStatusColors[statusColorMapping.success].tint40;colorStatusTokens.colorStatusWarningForegroundInverted=mappedStatusColors[statusColorMapping.warning].shade20;const webLightTheme=createLightTheme(brandWeb),generateColorTokens=eo=>({colorNeutralForeground1:white,colorNeutralForeground1Hover:white,colorNeutralForeground1Pressed:white,colorNeutralForeground1Selected:white,colorNeutralForeground2:grey[84],colorNeutralForeground2Hover:white,colorNeutralForeground2Pressed:white,colorNeutralForeground2Selected:white,colorNeutralForeground2BrandHover:eo[100],colorNeutralForeground2BrandPressed:eo[90],colorNeutralForeground2BrandSelected:eo[100],colorNeutralForeground3:grey[68],colorNeutralForeground3Hover:grey[84],colorNeutralForeground3Pressed:grey[84],colorNeutralForeground3Selected:grey[84],colorNeutralForeground3BrandHover:eo[100],colorNeutralForeground3BrandPressed:eo[90],colorNeutralForeground3BrandSelected:eo[100],colorNeutralForeground4:grey[60],colorNeutralForegroundDisabled:grey[36],colorNeutralForegroundInvertedDisabled:whiteAlpha[40],colorBrandForegroundLink:eo[100],colorBrandForegroundLinkHover:eo[110],colorBrandForegroundLinkPressed:eo[90],colorBrandForegroundLinkSelected:eo[100],colorNeutralForeground2Link:grey[84],colorNeutralForeground2LinkHover:white,colorNeutralForeground2LinkPressed:white,colorNeutralForeground2LinkSelected:white,colorCompoundBrandForeground1:eo[100],colorCompoundBrandForeground1Hover:eo[110],colorCompoundBrandForeground1Pressed:eo[90],colorBrandForeground1:eo[100],colorBrandForeground2:eo[110],colorBrandForeground2Hover:eo[130],colorBrandForeground2Pressed:eo[160],colorNeutralForeground1Static:grey[14],colorNeutralForegroundStaticInverted:white,colorNeutralForegroundInverted:grey[14],colorNeutralForegroundInvertedHover:grey[14],colorNeutralForegroundInvertedPressed:grey[14],colorNeutralForegroundInvertedSelected:grey[14],colorNeutralForegroundInverted2:grey[14],colorNeutralForegroundOnBrand:white,colorNeutralForegroundInvertedLink:white,colorNeutralForegroundInvertedLinkHover:white,colorNeutralForegroundInvertedLinkPressed:white,colorNeutralForegroundInvertedLinkSelected:white,colorBrandForegroundInverted:eo[80],colorBrandForegroundInvertedHover:eo[70],colorBrandForegroundInvertedPressed:eo[60],colorBrandForegroundOnLight:eo[80],colorBrandForegroundOnLightHover:eo[70],colorBrandForegroundOnLightPressed:eo[50],colorBrandForegroundOnLightSelected:eo[60],colorNeutralBackground1:grey[16],colorNeutralBackground1Hover:grey[24],colorNeutralBackground1Pressed:grey[12],colorNeutralBackground1Selected:grey[22],colorNeutralBackground2:grey[12],colorNeutralBackground2Hover:grey[20],colorNeutralBackground2Pressed:grey[8],colorNeutralBackground2Selected:grey[18],colorNeutralBackground3:grey[8],colorNeutralBackground3Hover:grey[16],colorNeutralBackground3Pressed:grey[4],colorNeutralBackground3Selected:grey[14],colorNeutralBackground4:grey[4],colorNeutralBackground4Hover:grey[12],colorNeutralBackground4Pressed:black,colorNeutralBackground4Selected:grey[10],colorNeutralBackground5:black,colorNeutralBackground5Hover:grey[8],colorNeutralBackground5Pressed:grey[2],colorNeutralBackground5Selected:grey[6],colorNeutralBackground6:grey[20],colorNeutralBackgroundInverted:white,colorNeutralBackgroundStatic:grey[24],colorNeutralBackgroundAlpha:grey10Alpha[50],colorNeutralBackgroundAlpha2:grey12Alpha[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:grey[22],colorSubtleBackgroundPressed:grey[18],colorSubtleBackgroundSelected:grey[20],colorSubtleBackgroundLightAlphaHover:grey14Alpha[80],colorSubtleBackgroundLightAlphaPressed:grey14Alpha[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:blackAlpha[10],colorSubtleBackgroundInvertedPressed:blackAlpha[30],colorSubtleBackgroundInvertedSelected:blackAlpha[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:grey[8],colorNeutralBackgroundInvertedDisabled:whiteAlpha[10],colorNeutralStencil1:grey[34],colorNeutralStencil2:grey[20],colorNeutralStencil1Alpha:whiteAlpha[10],colorNeutralStencil2Alpha:whiteAlpha[5],colorBackgroundOverlay:blackAlpha[50],colorScrollbarOverlay:whiteAlpha[60],colorBrandBackground:eo[70],colorBrandBackgroundHover:eo[80],colorBrandBackgroundPressed:eo[40],colorBrandBackgroundSelected:eo[60],colorCompoundBrandBackground:eo[100],colorCompoundBrandBackgroundHover:eo[110],colorCompoundBrandBackgroundPressed:eo[90],colorBrandBackgroundStatic:eo[80],colorBrandBackground2:eo[20],colorBrandBackground2Hover:eo[40],colorBrandBackground2Pressed:eo[10],colorBrandBackgroundInverted:white,colorBrandBackgroundInvertedHover:eo[160],colorBrandBackgroundInvertedPressed:eo[140],colorBrandBackgroundInvertedSelected:eo[150],colorNeutralStrokeAccessible:grey[68],colorNeutralStrokeAccessibleHover:grey[74],colorNeutralStrokeAccessiblePressed:grey[70],colorNeutralStrokeAccessibleSelected:eo[100],colorNeutralStroke1:grey[40],colorNeutralStroke1Hover:grey[46],colorNeutralStroke1Pressed:grey[42],colorNeutralStroke1Selected:grey[44],colorNeutralStroke2:grey[32],colorNeutralStroke3:grey[24],colorNeutralStrokeSubtle:grey[4],colorNeutralStrokeOnBrand:grey[16],colorNeutralStrokeOnBrand2:white,colorNeutralStrokeOnBrand2Hover:white,colorNeutralStrokeOnBrand2Pressed:white,colorNeutralStrokeOnBrand2Selected:white,colorBrandStroke1:eo[100],colorBrandStroke2:eo[50],colorBrandStroke2Hover:eo[50],colorBrandStroke2Pressed:eo[30],colorBrandStroke2Contrast:eo[50],colorCompoundBrandStroke:eo[100],colorCompoundBrandStrokeHover:eo[110],colorCompoundBrandStrokePressed:eo[90],colorNeutralStrokeDisabled:grey[26],colorNeutralStrokeInvertedDisabled:whiteAlpha[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:whiteAlpha[10],colorNeutralStrokeAlpha2:whiteAlpha[20],colorStrokeFocus1:black,colorStrokeFocus2:white,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),createDarkTheme=eo=>{const to=generateColorTokens(eo);return{...borderRadius,...fontSizes,...lineHeights,...fontFamilies,...fontWeights,...strokeWidths,...horizontalSpacings,...verticalSpacings,...durations,...curves,...to,...colorPaletteTokens,...colorStatusTokens,...createShadowTokens(to.colorNeutralShadowAmbient,to.colorNeutralShadowKey),...createShadowTokens(to.colorBrandShadowAmbient,to.colorBrandShadowKey,"Brand")}},webDarkTheme=createDarkTheme(brandWeb),fluentProviderClassNames={root:"fui-FluentProvider"},useStyles$O=__styles$1({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),useFluentProviderStyles_unstable=eo=>{const to=useRenderer(),no=useStyles$O({dir:eo.dir,renderer:to});return eo.root.className=mergeClasses(fluentProviderClassNames.root,eo.themeClassName,no.root,eo.root.className),eo},useInsertionEffect$1=reactExports.useInsertionEffect?reactExports.useInsertionEffect:useIsomorphicLayoutEffect$1,createStyleTag=(eo,to)=>{if(!eo)return;const no=eo.createElement("style");return Object.keys(to).forEach(io=>{no.setAttribute(io,to[io])}),eo.head.appendChild(no),no},insertSheet=(eo,to)=>{const no=eo.sheet;no&&(no.cssRules.length>0&&no.deleteRule(0),no.insertRule(to,0))},useFluentProviderThemeStyleTag=eo=>{const{targetDocument:to,theme:no,rendererAttributes:io}=eo,so=reactExports.useRef(),ao=useId$1(fluentProviderClassNames.root),lo=io,uo=reactExports.useMemo(()=>createCSSRuleFromTheme(`.${ao}`,no),[no,ao]);return useHandleSSRStyleElements(to,ao),useInsertionEffect$1(()=>{const ho=to==null?void 0:to.getElementById(ao);return ho?so.current=ho:(so.current=createStyleTag(to,{...lo,id:ao}),so.current&&insertSheet(so.current,uo)),()=>{var go;(go=so.current)===null||go===void 0||go.remove()}},[ao,to,uo,lo]),{styleTagId:ao,rule:uo}};function useHandleSSRStyleElements(eo,to){reactExports.useState(()=>{if(!eo)return;const no=eo.getElementById(to);no&&eo.head.append(no)})}const EMPTY_OBJECT={},useFluentProvider_unstable=(eo,to)=>{const no=useFluent(),io=useTheme(),so=useOverrides(),ao=reactExports.useContext(CustomStyleHooksContext)||EMPTY_OBJECT,{applyStylesToPortals:lo=!0,customStyleHooks_unstable:uo,dir:ho=no.dir,targetDocument:go=no.targetDocument,theme:mo,overrides_unstable:yo={}}=eo,So=shallowMerge(io,mo),_o=shallowMerge(so,yo),ko=shallowMerge(ao,uo),Co=useRenderer();var $o;const{styleTagId:Ro,rule:Oo}=useFluentProviderThemeStyleTag({theme:So,targetDocument:go,rendererAttributes:($o=Co.styleElementAttributes)!==null&&$o!==void 0?$o:{}});return{applyStylesToPortals:lo,customStyleHooks_unstable:ko,dir:ho,targetDocument:go,theme:So,overrides_unstable:_o,themeClassName:Ro,components:{root:"div"},root:always(getIntrinsicElementProps("div",{...eo,dir:ho,ref:useMergedRefs$1(to,useFocusVisible({targetDocument:go}))}),{elementType:"div"}),serverStyleProps:{cssRule:Oo,attributes:{...Co.styleElementAttributes,id:Ro}}}};function shallowMerge(eo,to){return eo&&to?{...eo,...to}:eo||to}function useTheme(){return reactExports.useContext(ThemeContext$2)}function useFluentProviderContextValues_unstable(eo){const{applyStylesToPortals:to,customStyleHooks_unstable:no,dir:io,root:so,targetDocument:ao,theme:lo,themeClassName:uo,overrides_unstable:ho}=eo,go=reactExports.useMemo(()=>({dir:io,targetDocument:ao}),[io,ao]),[mo]=reactExports.useState(()=>({})),yo=reactExports.useMemo(()=>({textDirection:io}),[io]);return{customStyleHooks_unstable:no,overrides_unstable:ho,provider:go,textDirection:io,iconDirection:yo,tooltip:mo,theme:lo,themeClassName:to?so.className:uo}}const FluentProvider=reactExports.forwardRef((eo,to)=>{const no=useFluentProvider_unstable(eo,to);useFluentProviderStyles_unstable(no);const io=useFluentProviderContextValues_unstable(no);return renderFluentProvider_unstable(no,io)});FluentProvider.displayName="FluentProvider";const createProvider=eo=>no=>{const io=reactExports.useRef(no.value),so=reactExports.useRef(0),ao=reactExports.useRef();return ao.current||(ao.current={value:io,version:so,listeners:[]}),useIsomorphicLayoutEffect$1(()=>{io.current=no.value,so.current+=1,schedulerExports.unstable_runWithPriority(schedulerExports.unstable_NormalPriority,()=>{ao.current.listeners.forEach(lo=>{lo([so.current,no.value])})})},[no.value]),reactExports.createElement(eo,{value:ao.current},no.children)},createContext=eo=>{const to=reactExports.createContext({value:{current:eo},version:{current:-1},listeners:[]});return to.Provider=createProvider(to.Provider),delete to.Consumer,to},useContextSelector=(eo,to)=>{const no=reactExports.useContext(eo),{value:{current:io},version:{current:so},listeners:ao}=no,lo=to(io),[uo,ho]=reactExports.useReducer((go,mo)=>{if(!mo)return[io,lo];if(mo[0]<=so)return objectIs(go[1],lo)?go:[io,lo];try{if(objectIs(go[0],mo[1]))return go;const yo=to(mo[1]);return objectIs(go[1],yo)?go:[mo[1],yo]}catch{}return[go[0],go[1]]},[io,lo]);return objectIs(uo[1],lo)||ho(void 0),useIsomorphicLayoutEffect$1(()=>(ao.push(ho),()=>{const go=ao.indexOf(ho);ao.splice(go,1)}),[ao]),uo[1]};function is$3(eo,to){return eo===to&&(eo!==0||1/eo===1/to)||eo!==eo&&to!==to}const objectIs=typeof Object.is=="function"?Object.is:is$3;function useHasParentContext(eo){const to=reactExports.useContext(eo);return to.version?to.version.current!==-1:!1}const AccordionContext=createContext(void 0),accordionContextDefaultValue={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:AccordionProvider}=AccordionContext,useAccordionContext_unstable=eo=>useContextSelector(AccordionContext,(to=accordionContextDefaultValue)=>eo(to)),renderAccordion_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(AccordionProvider,{value:to.accordion,children:eo.root.children})}),useAccordion_unstable=(eo,to)=>{const{openItems:no,defaultOpenItems:io,multiple:so=!1,collapsible:ao=!1,onToggle:lo,navigation:uo}=eo,[ho,go]=useControllableState({state:reactExports.useMemo(()=>normalizeValues(no),[no]),defaultState:()=>initializeUncontrolledOpenItems({defaultOpenItems:io,multiple:so}),initialState:[]}),mo=useArrowNavigationGroup({circular:uo==="circular",tabbable:!0}),yo=useEventCallback$3(So=>{const _o=updateOpenItems(So.value,ho,so,ao);lo==null||lo(So.event,{value:So.value,openItems:_o}),go(_o)});return{collapsible:ao,multiple:so,navigation:uo,openItems:ho,requestToggle:yo,components:{root:"div"},root:always(getIntrinsicElementProps("div",{...eo,...uo?mo:void 0,ref:to}),{elementType:"div"})}};function initializeUncontrolledOpenItems({defaultOpenItems:eo,multiple:to}){return eo!==void 0?Array.isArray(eo)?to?eo:[eo[0]]:[eo]:[]}function updateOpenItems(eo,to,no,io){if(no)if(to.includes(eo)){if(to.length>1||io)return to.filter(so=>so!==eo)}else return[...to,eo].sort();else return to[0]===eo&&io?[]:[eo];return to}function normalizeValues(eo){if(eo!==void 0)return Array.isArray(eo)?eo:[eo]}function useAccordionContextValues_unstable(eo){const{navigation:to,openItems:no,requestToggle:io,multiple:so,collapsible:ao}=eo;return{accordion:{navigation:to,openItems:no,requestToggle:io,collapsible:ao,multiple:so}}}const accordionClassNames={root:"fui-Accordion"},useAccordionStyles_unstable=eo=>(eo.root.className=mergeClasses(accordionClassNames.root,eo.root.className),eo),Accordion=reactExports.forwardRef((eo,to)=>{const no=useAccordion_unstable(eo,to),io=useAccordionContextValues_unstable(no);return useAccordionStyles_unstable(no),useCustomStyleHook("useAccordionStyles_unstable")(no),renderAccordion_unstable(no,io)});Accordion.displayName="Accordion";const useAccordionItem_unstable=(eo,to)=>{const{value:no,disabled:io=!1}=eo,so=useAccordionContext_unstable(uo=>uo.requestToggle),ao=useAccordionContext_unstable(uo=>uo.openItems.includes(no)),lo=useEventCallback$3(uo=>so({event:uo,value:no}));return{open:ao,value:no,disabled:io,onHeaderClick:lo,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"})}};function useAccordionItemContextValues_unstable(eo){const{disabled:to,open:no,value:io,onHeaderClick:so}=eo;return{accordionItem:reactExports.useMemo(()=>({disabled:to,open:no,value:io,onHeaderClick:so}),[to,no,io,so])}}const AccordionItemContext=reactExports.createContext(void 0),accordionItemContextDefaultValue={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:AccordionItemProvider}=AccordionItemContext,useAccordionItemContext_unstable=()=>{var eo;return(eo=reactExports.useContext(AccordionItemContext))!==null&&eo!==void 0?eo:accordionItemContextDefaultValue},renderAccordionItem_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(AccordionItemProvider,{value:to.accordionItem,children:eo.root.children})}),accordionItemClassNames={root:"fui-AccordionItem"},useAccordionItemStyles_unstable=eo=>(eo.root.className=mergeClasses(accordionItemClassNames.root,eo.root.className),eo),AccordionItem=reactExports.forwardRef((eo,to)=>{const no=useAccordionItem_unstable(eo,to),io=useAccordionItemContextValues_unstable(no);return useAccordionItemStyles_unstable(no),useCustomStyleHook("useAccordionItemStyles_unstable")(no),renderAccordionItem_unstable(no,io)});AccordionItem.displayName="AccordionItem";const Enter="Enter",Space=" ",Tab$2="Tab",ArrowDown="ArrowDown",ArrowLeft="ArrowLeft",ArrowRight="ArrowRight",ArrowUp="ArrowUp",End="End",Home="Home",PageDown="PageDown",PageUp="PageUp",Backspace="Backspace",Delete="Delete",Escape$1="Escape";function useARIAButtonProps(eo,to){const{disabled:no,disabledFocusable:io=!1,["aria-disabled"]:so,onClick:ao,onKeyDown:lo,onKeyUp:uo,...ho}=to??{},go=typeof so=="string"?so==="true":so,mo=no||io||go,yo=useEventCallback$3(ko=>{mo?(ko.preventDefault(),ko.stopPropagation()):ao==null||ao(ko)}),So=useEventCallback$3(ko=>{if(lo==null||lo(ko),ko.isDefaultPrevented())return;const Co=ko.key;if(mo&&(Co===Enter||Co===Space)){ko.preventDefault(),ko.stopPropagation();return}if(Co===Space){ko.preventDefault();return}else Co===Enter&&(ko.preventDefault(),ko.currentTarget.click())}),_o=useEventCallback$3(ko=>{if(uo==null||uo(ko),ko.isDefaultPrevented())return;const Co=ko.key;if(mo&&(Co===Enter||Co===Space)){ko.preventDefault(),ko.stopPropagation();return}Co===Space&&(ko.preventDefault(),ko.currentTarget.click())});if(eo==="button"||eo===void 0)return{...ho,disabled:no&&!io,"aria-disabled":io?!0:go,onClick:io?void 0:yo,onKeyUp:io?void 0:uo,onKeyDown:io?void 0:lo};{const ko={role:"button",tabIndex:no&&!io?void 0:0,...ho,onClick:yo,onKeyUp:_o,onKeyDown:So,"aria-disabled":no||io||go};return eo==="a"&&mo&&(ko.href=void 0),ko}}const useAccordionHeader_unstable=(eo,to)=>{const{icon:no,button:io,expandIcon:so,inline:ao=!1,size:lo="medium",expandIconPosition:uo="start"}=eo,{value:ho,disabled:go,open:mo}=useAccordionItemContext_unstable(),yo=useAccordionContext_unstable($o=>$o.requestToggle),So=useAccordionContext_unstable($o=>!$o.collapsible&&$o.openItems.length===1&&mo),{dir:_o}=useFluent();let ko;uo==="end"?ko=mo?-90:90:ko=mo?90:_o!=="rtl"?0:180;const Co=always(io,{elementType:"button",defaultProps:{disabled:go,disabledFocusable:So,"aria-expanded":mo,type:"button"}});return Co.onClick=useEventCallback$3($o=>{if(isResolvedShorthand(io)){var Ro;(Ro=io.onClick)===null||Ro===void 0||Ro.call(io,$o)}$o.defaultPrevented||yo({value:ho,event:$o})}),{disabled:go,open:mo,size:lo,inline:ao,expandIconPosition:uo,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),icon:optional(no,{elementType:"div"}),expandIcon:optional(so,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(ChevronRightRegular,{style:{transform:`rotate(${ko}deg)`}}),"aria-hidden":!0},elementType:"span"}),button:useARIAButtonProps(Co.as,Co)}},AccordionHeaderContext=reactExports.createContext(void 0),{Provider:AccordionHeaderProvider}=AccordionHeaderContext,renderAccordionHeader_unstable=(eo,to)=>jsx$1(AccordionHeaderProvider,{value:to.accordionHeader,children:jsx$1(eo.root,{children:jsxs(eo.button,{children:[eo.expandIconPosition==="start"&&eo.expandIcon&&jsx$1(eo.expandIcon,{}),eo.icon&&jsx$1(eo.icon,{}),eo.root.children,eo.expandIconPosition==="end"&&eo.expandIcon&&jsx$1(eo.expandIcon,{})]})})}),accordionHeaderClassNames={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},useStyles$N=__styles({resetButton:{B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],Bv0vk6g:"f37px4s",fsow6f:"fgusgyc"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"frrh606",clg4pj:["f1v5zibi","fo2hd23"],hgwjuy:"ful5kiu",Bonggc9:["fo2hd23","f1v5zibi"],B1tsrr9:["f1jqcqds","ftffrms"],Dah5zi:["ftffrms","f1jqcqds"],Bkh64rk:["f2e7qr6","fsr1zz6"],qqdqy8:["fsr1zz6","f2e7qr6"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},root:{sj55zd:"f19n0e5",De3pzq:"f1c21dwh",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},rootDisabled:{Bcmaq0h:"fwrgwhw",sj55zd:"f1s2aq7o"},rootInline:{mc9l5x:"f14t3ns0"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],z8tnut:"f1g0x7ka",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"f1qch9an",uwmqm3:["f1ng84yb","f11gcy0p"],sshi5w:"f5pgtk9",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B7ck84d:"f1ewtqcl"},buttonSmall:{sshi5w:"f1nxs5xn",Be2twd7:"fy9rknc"},buttonLarge:{Bg96gwp:"faaz57k",Be2twd7:"fod5ikn"},buttonExtraLarge:{Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},buttonInline:{mc9l5x:"ftuwxu6"},buttonExpandIconEndNoIcon:{uwmqm3:["f1uw59to","fw5db7e"]},buttonExpandIconEnd:{z189sj:["f11gcy0p","f1ng84yb"]},buttonDisabled:{Bceei9c:"fdrzuqr"},expandIcon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},expandIconStart:{z189sj:["f1vdfbxk","f1f5gg8d"]},expandIconEnd:{Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"flqd7gy",mc9l5x:"f22iagw",Brf1p80:"f9c4gz4",uwmqm3:["f1f5gg8d","f1vdfbxk"]},icon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",z189sj:["f1vdfbxk","f1f5gg8d"],Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"}},{d:[".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f37px4s{-webkit-appearance:button;}",".fgusgyc{text-align:unset;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".frrh606[data-fui-focus-visible]::after{border-top-width:2px;}",".f1v5zibi[data-fui-focus-visible]::after{border-right-width:2px;}",".fo2hd23[data-fui-focus-visible]::after{border-left-width:2px;}",".ful5kiu[data-fui-focus-visible]::after{border-bottom-width:2px;}",".f1jqcqds[data-fui-focus-visible]::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".ftffrms[data-fui-focus-visible]::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f2e7qr6[data-fui-focus-visible]::after{border-top-right-radius:var(--borderRadiusMedium);}",".fsr1zz6[data-fui-focus-visible]::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fwrgwhw{background-image:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f14t3ns0{display:inline-block;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f5pgtk9{min-height:44px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1ewtqcl{box-sizing:border-box;}",".f1nxs5xn{min-height:32px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".ftuwxu6{display:inline-flex;}",".fdrzuqr{cursor:not-allowed;}",".f1l02sjl{height:100%;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".flqd7gy{flex-basis:0%;}",".f9c4gz4{justify-content:flex-end;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),useAccordionHeaderStyles_unstable=eo=>{const to=useStyles$N();return eo.root.className=mergeClasses(accordionHeaderClassNames.root,to.root,eo.inline&&to.rootInline,eo.disabled&&to.rootDisabled,eo.root.className),eo.button.className=mergeClasses(accordionHeaderClassNames.button,to.resetButton,to.button,to.focusIndicator,eo.expandIconPosition==="end"&&!eo.icon&&to.buttonExpandIconEndNoIcon,eo.expandIconPosition==="end"&&to.buttonExpandIconEnd,eo.inline&&to.buttonInline,eo.size==="small"&&to.buttonSmall,eo.size==="large"&&to.buttonLarge,eo.size==="extra-large"&&to.buttonExtraLarge,eo.disabled&&to.buttonDisabled,eo.button.className),eo.expandIcon&&(eo.expandIcon.className=mergeClasses(accordionHeaderClassNames.expandIcon,to.expandIcon,eo.expandIconPosition==="start"&&to.expandIconStart,eo.expandIconPosition==="end"&&to.expandIconEnd,eo.expandIcon.className)),eo.icon&&(eo.icon.className=mergeClasses(accordionHeaderClassNames.icon,to.icon,eo.icon.className)),eo};function useAccordionHeaderContextValues_unstable(eo){const{disabled:to,expandIconPosition:no,open:io,size:so}=eo;return{accordionHeader:reactExports.useMemo(()=>({disabled:to,expandIconPosition:no,open:io,size:so}),[to,no,io,so])}}const AccordionHeader=reactExports.forwardRef((eo,to)=>{const no=useAccordionHeader_unstable(eo,to),io=useAccordionHeaderContextValues_unstable(no);return useAccordionHeaderStyles_unstable(no),useCustomStyleHook("useAccordionHeaderStyles_unstable")(no),renderAccordionHeader_unstable(no,io)});AccordionHeader.displayName="AccordionHeader";const useAccordionPanel_unstable=(eo,to)=>{const{open:no}=useAccordionItemContext_unstable(),io=useTabsterAttributes({focusable:{excludeFromMover:!0}}),so=useAccordionContext_unstable(ao=>ao.navigation);return{open:no,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo,...so&&io}),{elementType:"div"})}},renderAccordionPanel_unstable=eo=>eo.open?jsx$1(eo.root,{children:eo.root.children}):null,accordionPanelClassNames={root:"fui-AccordionPanel"},useStyles$M=__styles({root:{B6of3ja:"f1hu3pq6",t21cq0:["fkujibs","f199hnxi"],jrapky:"f19f4twv",Frg6f3:["f199hnxi","fkujibs"]}},{d:[".f1hu3pq6{margin-top:0;}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f19f4twv{margin-bottom:0;}"]}),useAccordionPanelStyles_unstable=eo=>{const to=useStyles$M();return eo.root.className=mergeClasses(accordionPanelClassNames.root,to.root,eo.root.className),eo},AccordionPanel=reactExports.forwardRef((eo,to)=>{const no=useAccordionPanel_unstable(eo,to);return useAccordionPanelStyles_unstable(no),useCustomStyleHook("useAccordionPanelStyles_unstable")(no),renderAccordionPanel_unstable(no)});AccordionPanel.displayName="AccordionPanel";const useBadge_unstable=(eo,to)=>{const{shape:no="circular",size:io="medium",iconPosition:so="before",appearance:ao="filled",color:lo="brand"}=eo;return{shape:no,size:io,iconPosition:so,appearance:ao,color:lo,components:{root:"div",icon:"span"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),icon:optional(eo.icon,{elementType:"span"})}},badgeClassNames={root:"fui-Badge",icon:"fui-Badge__icon"},useRootClassName$1=__resetStyles("r1l7mb74","rntuq2r",[".r1l7mb74{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1l7mb74::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".rntuq2r{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.rntuq2r::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}']),useRootStyles$b=__styles({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},small:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",z8tnut:"f1g0x7ka",z189sj:["fps1v9c","f17ae1jz"],Byoj8tv:"f1qch9an",uwmqm3:["f17ae1jz","fps1v9c"]},medium:{},large:{a9b677:"fq4mcun",Bqenvij:"frvgh55",z8tnut:"f1g0x7ka",z189sj:["f17a92cs","f1pe0i86"],Byoj8tv:"f1qch9an",uwmqm3:["f1pe0i86","f17a92cs"]},"extra-large":{a9b677:"f1szoe96",Bqenvij:"f1d2rq10",z8tnut:"f1g0x7ka",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},roundedSmallToTiny:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",".f1q8r6hh{padding-top:unset;}",".fio2s09{padding-right:unset;}",".fkiw60q{padding-left:unset;}",".f9yu9nh{padding-bottom:unset;}",".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f1g0x7ka{padding-top:0;}",".fps1v9c{padding-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f17ae1jz{padding-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1qch9an{padding-bottom:0;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f17a92cs{padding-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1pe0i86{padding-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),useIconRootClassName=__resetStyles("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),useIconStyles$6=__styles({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),useBadgeStyles_unstable=eo=>{const to=useRootClassName$1(),no=useRootStyles$b(),io=eo.size==="small"||eo.size==="extra-small"||eo.size==="tiny";eo.root.className=mergeClasses(badgeClassNames.root,to,io&&no.fontSmallToTiny,no[eo.size],no[eo.shape],eo.shape==="rounded"&&io&&no.roundedSmallToTiny,eo.appearance==="ghost"&&no.borderGhost,no[eo.appearance],no[`${eo.appearance}-${eo.color}`],eo.root.className);const so=useIconRootClassName(),ao=useIconStyles$6();if(eo.icon){let lo;eo.root.children&&(eo.size==="extra-large"?lo=eo.iconPosition==="after"?ao.afterTextXL:ao.beforeTextXL:lo=eo.iconPosition==="after"?ao.afterText:ao.beforeText),eo.icon.className=mergeClasses(badgeClassNames.icon,so,lo,ao[eo.size],eo.icon.className)}return eo},renderBadge_unstable=eo=>jsxs(eo.root,{children:[eo.iconPosition==="before"&&eo.icon&&jsx$1(eo.icon,{}),eo.root.children,eo.iconPosition==="after"&&eo.icon&&jsx$1(eo.icon,{})]}),Badge$2=reactExports.forwardRef((eo,to)=>{const no=useBadge_unstable(eo,to);return useBadgeStyles_unstable(no),useCustomStyleHook("useBadgeStyles_unstable")(no),renderBadge_unstable(no)});Badge$2.displayName="Badge";const useCounterBadge_unstable=(eo,to)=>{const{shape:no="circular",appearance:io="filled",showZero:so=!1,overflowCount:ao=99,count:lo=0,dot:uo=!1}=eo,ho={...useBadge_unstable(eo,to),shape:no,appearance:io,showZero:so,count:lo,dot:uo};return(lo!==0||so)&&!uo&&!ho.root.children&&(ho.root.children=lo>ao?`${ao}+`:`${lo}`),ho},counterBadgeClassNames={root:"fui-CounterBadge",icon:"fui-CounterBadge__icon"},useStyles$L=__styles({dot:{Bf4jedk:"fgfkb25",a9b677:"f16dn6v3",Bqenvij:"f3mu39s",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"]},hide:{mc9l5x:"fjseox"}},{d:[".fgfkb25{min-width:auto;}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fjseox{display:none;}"]}),useCounterBadgeStyles_unstable=eo=>{const to=useStyles$L();return eo.root.className=mergeClasses(counterBadgeClassNames.root,eo.dot&&to.dot,!eo.root.children&&!eo.dot&&to.hide,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(counterBadgeClassNames.icon,eo.icon.className)),useBadgeStyles_unstable(eo)},CounterBadge=reactExports.forwardRef((eo,to)=>{const no=useCounterBadge_unstable(eo,to);return useCounterBadgeStyles_unstable(no),useCustomStyleHook("useCounterBadgeStyles_unstable")(no),renderBadge_unstable(no)});CounterBadge.displayName="CounterBadge";const avatarContext=reactExports.createContext(void 0),AvatarContextProvider=avatarContext.Provider;function createVirtualElementFromClick(eo){const to=eo.clientX,no=eo.clientY,io=to+1,so=no+1;function ao(){return{left:to,top:no,right:io,bottom:so,x:to,y:no,height:1,width:1}}return{getBoundingClientRect:ao}}const DATA_POSITIONING_INTERSECTING="data-popper-is-intersecting",DATA_POSITIONING_ESCAPED="data-popper-escaped",DATA_POSITIONING_HIDDEN="data-popper-reference-hidden",DATA_POSITIONING_PLACEMENT="data-popper-placement",sides=["top","right","bottom","left"],min$7=Math.min,max$7=Math.max,round$1=Math.round,createCoords=eo=>({x:eo,y:eo}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$2(eo,to,no){return max$7(eo,min$7(to,no))}function evaluate$1(eo,to){return typeof eo=="function"?eo(to):eo}function getSide(eo){return eo.split("-")[0]}function getAlignment(eo){return eo.split("-")[1]}function getOppositeAxis(eo){return eo==="x"?"y":"x"}function getAxisLength(eo){return eo==="y"?"height":"width"}function getSideAxis(eo){return["top","bottom"].includes(getSide(eo))?"y":"x"}function getAlignmentAxis(eo){return getOppositeAxis(getSideAxis(eo))}function getAlignmentSides(eo,to,no){no===void 0&&(no=!1);const io=getAlignment(eo),so=getAlignmentAxis(eo),ao=getAxisLength(so);let lo=so==="x"?io===(no?"end":"start")?"right":"left":io==="start"?"bottom":"top";return to.reference[ao]>to.floating[ao]&&(lo=getOppositePlacement(lo)),[lo,getOppositePlacement(lo)]}function getExpandedPlacements(eo){const to=getOppositePlacement(eo);return[getOppositeAlignmentPlacement(eo),to,getOppositeAlignmentPlacement(to)]}function getOppositeAlignmentPlacement(eo){return eo.replace(/start|end/g,to=>oppositeAlignmentMap[to])}function getSideList(eo,to,no){const io=["left","right"],so=["right","left"],ao=["top","bottom"],lo=["bottom","top"];switch(eo){case"top":case"bottom":return no?to?so:io:to?io:so;case"left":case"right":return to?ao:lo;default:return[]}}function getOppositeAxisPlacements(eo,to,no,io){const so=getAlignment(eo);let ao=getSideList(getSide(eo),no==="start",io);return so&&(ao=ao.map(lo=>lo+"-"+so),to&&(ao=ao.concat(ao.map(getOppositeAlignmentPlacement)))),ao}function getOppositePlacement(eo){return eo.replace(/left|right|bottom|top/g,to=>oppositeSideMap[to])}function expandPaddingObject(eo){return{top:0,right:0,bottom:0,left:0,...eo}}function getPaddingObject(eo){return typeof eo!="number"?expandPaddingObject(eo):{top:eo,right:eo,bottom:eo,left:eo}}function rectToClientRect(eo){return{...eo,top:eo.y,left:eo.x,right:eo.x+eo.width,bottom:eo.y+eo.height}}function computeCoordsFromPlacement(eo,to,no){let{reference:io,floating:so}=eo;const ao=getSideAxis(to),lo=getAlignmentAxis(to),uo=getAxisLength(lo),ho=getSide(to),go=ao==="y",mo=io.x+io.width/2-so.width/2,yo=io.y+io.height/2-so.height/2,So=io[uo]/2-so[uo]/2;let _o;switch(ho){case"top":_o={x:mo,y:io.y-so.height};break;case"bottom":_o={x:mo,y:io.y+io.height};break;case"right":_o={x:io.x+io.width,y:yo};break;case"left":_o={x:io.x-so.width,y:yo};break;default:_o={x:io.x,y:io.y}}switch(getAlignment(to)){case"start":_o[lo]-=So*(no&&go?-1:1);break;case"end":_o[lo]+=So*(no&&go?-1:1);break}return _o}const computePosition$1=async(eo,to,no)=>{const{placement:io="bottom",strategy:so="absolute",middleware:ao=[],platform:lo}=no,uo=ao.filter(Boolean),ho=await(lo.isRTL==null?void 0:lo.isRTL(to));let go=await lo.getElementRects({reference:eo,floating:to,strategy:so}),{x:mo,y:yo}=computeCoordsFromPlacement(go,io,ho),So=io,_o={},ko=0;for(let Co=0;Co({name:"arrow",options:eo,async fn(to){const{x:no,y:io,placement:so,rects:ao,platform:lo,elements:uo,middlewareData:ho}=to,{element:go,padding:mo=0}=evaluate$1(eo,to)||{};if(go==null)return{};const yo=getPaddingObject(mo),So={x:no,y:io},_o=getAlignmentAxis(so),ko=getAxisLength(_o),Co=await lo.getDimensions(go),$o=_o==="y",Ro=$o?"top":"left",Oo=$o?"bottom":"right",No=$o?"clientHeight":"clientWidth",Mo=ao.reference[ko]+ao.reference[_o]-So[_o]-ao.floating[ko],Bo=So[_o]-ao.reference[_o],Fo=await(lo.getOffsetParent==null?void 0:lo.getOffsetParent(go));let Lo=Fo?Fo[No]:0;(!Lo||!await(lo.isElement==null?void 0:lo.isElement(Fo)))&&(Lo=uo.floating[No]||ao.floating[ko]);const Go=Mo/2-Bo/2,Do=Lo/2-Co[ko]/2-1,Uo=min$7(yo[Ro],Do),Ho=min$7(yo[Oo],Do),Yo=Uo,qo=Lo-Co[ko]-Ho,Jo=Lo/2-Co[ko]/2+Go,ps=clamp$2(Yo,Jo,qo),Qo=!ho.arrow&&getAlignment(so)!=null&&Jo!=ps&&ao.reference[ko]/2-(JoYo<=0)){var Do,Uo;const Yo=(((Do=ao.flip)==null?void 0:Do.index)||0)+1,qo=Bo[Yo];if(qo)return{data:{index:Yo,overflows:Go},reset:{placement:qo}};let Jo=(Uo=Go.filter(ps=>ps.overflows[0]<=0).sort((ps,Qo)=>ps.overflows[1]-Qo.overflows[1])[0])==null?void 0:Uo.placement;if(!Jo)switch(_o){case"bestFit":{var Ho;const ps=(Ho=Go.map(Qo=>[Qo.placement,Qo.overflows.filter(hs=>hs>0).reduce((hs,gs)=>hs+gs,0)]).sort((Qo,hs)=>Qo[1]-hs[1])[0])==null?void 0:Ho[0];ps&&(Jo=ps);break}case"initialPlacement":Jo=uo;break}if(so!==Jo)return{reset:{placement:Jo}}}return{}}}};function getSideOffsets(eo,to){return{top:eo.top-to.height,right:eo.right-to.width,bottom:eo.bottom-to.height,left:eo.left-to.width}}function isAnySideFullyClipped(eo){return sides.some(to=>eo[to]>=0)}const hide=function(eo){return eo===void 0&&(eo={}),{name:"hide",options:eo,async fn(to){const{rects:no}=to,{strategy:io="referenceHidden",...so}=evaluate$1(eo,to);switch(io){case"referenceHidden":{const ao=await detectOverflow(to,{...so,elementContext:"reference"}),lo=getSideOffsets(ao,no.reference);return{data:{referenceHiddenOffsets:lo,referenceHidden:isAnySideFullyClipped(lo)}}}case"escaped":{const ao=await detectOverflow(to,{...so,altBoundary:!0}),lo=getSideOffsets(ao,no.floating);return{data:{escapedOffsets:lo,escaped:isAnySideFullyClipped(lo)}}}default:return{}}}}};async function convertValueToCoords(eo,to){const{placement:no,platform:io,elements:so}=eo,ao=await(io.isRTL==null?void 0:io.isRTL(so.floating)),lo=getSide(no),uo=getAlignment(no),ho=getSideAxis(no)==="y",go=["left","top"].includes(lo)?-1:1,mo=ao&&ho?-1:1,yo=evaluate$1(to,eo);let{mainAxis:So,crossAxis:_o,alignmentAxis:ko}=typeof yo=="number"?{mainAxis:yo,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...yo};return uo&&typeof ko=="number"&&(_o=uo==="end"?ko*-1:ko),ho?{x:_o*mo,y:So*go}:{x:So*go,y:_o*mo}}const offset$1=function(eo){return eo===void 0&&(eo=0),{name:"offset",options:eo,async fn(to){var no,io;const{x:so,y:ao,placement:lo,middlewareData:uo}=to,ho=await convertValueToCoords(to,eo);return lo===((no=uo.offset)==null?void 0:no.placement)&&(io=uo.arrow)!=null&&io.alignmentOffset?{}:{x:so+ho.x,y:ao+ho.y,data:{...ho,placement:lo}}}}},shift$2=function(eo){return eo===void 0&&(eo={}),{name:"shift",options:eo,async fn(to){const{x:no,y:io,placement:so}=to,{mainAxis:ao=!0,crossAxis:lo=!1,limiter:uo={fn:$o=>{let{x:Ro,y:Oo}=$o;return{x:Ro,y:Oo}}},...ho}=evaluate$1(eo,to),go={x:no,y:io},mo=await detectOverflow(to,ho),yo=getSideAxis(getSide(so)),So=getOppositeAxis(yo);let _o=go[So],ko=go[yo];if(ao){const $o=So==="y"?"top":"left",Ro=So==="y"?"bottom":"right",Oo=_o+mo[$o],No=_o-mo[Ro];_o=clamp$2(Oo,_o,No)}if(lo){const $o=yo==="y"?"top":"left",Ro=yo==="y"?"bottom":"right",Oo=ko+mo[$o],No=ko-mo[Ro];ko=clamp$2(Oo,ko,No)}const Co=uo.fn({...to,[So]:_o,[yo]:ko});return{...Co,data:{x:Co.x-no,y:Co.y-io}}}}},limitShift=function(eo){return eo===void 0&&(eo={}),{options:eo,fn(to){const{x:no,y:io,placement:so,rects:ao,middlewareData:lo}=to,{offset:uo=0,mainAxis:ho=!0,crossAxis:go=!0}=evaluate$1(eo,to),mo={x:no,y:io},yo=getSideAxis(so),So=getOppositeAxis(yo);let _o=mo[So],ko=mo[yo];const Co=evaluate$1(uo,to),$o=typeof Co=="number"?{mainAxis:Co,crossAxis:0}:{mainAxis:0,crossAxis:0,...Co};if(ho){const No=So==="y"?"height":"width",Mo=ao.reference[So]-ao.floating[No]+$o.mainAxis,Bo=ao.reference[So]+ao.reference[No]-$o.mainAxis;_oBo&&(_o=Bo)}if(go){var Ro,Oo;const No=So==="y"?"width":"height",Mo=["top","left"].includes(getSide(so)),Bo=ao.reference[yo]-ao.floating[No]+(Mo&&((Ro=lo.offset)==null?void 0:Ro[yo])||0)+(Mo?0:$o.crossAxis),Fo=ao.reference[yo]+ao.reference[No]+(Mo?0:((Oo=lo.offset)==null?void 0:Oo[yo])||0)-(Mo?$o.crossAxis:0);koFo&&(ko=Fo)}return{[So]:_o,[yo]:ko}}}},size=function(eo){return eo===void 0&&(eo={}),{name:"size",options:eo,async fn(to){const{placement:no,rects:io,platform:so,elements:ao}=to,{apply:lo=()=>{},...uo}=evaluate$1(eo,to),ho=await detectOverflow(to,uo),go=getSide(no),mo=getAlignment(no),yo=getSideAxis(no)==="y",{width:So,height:_o}=io.floating;let ko,Co;go==="top"||go==="bottom"?(ko=go,Co=mo===(await(so.isRTL==null?void 0:so.isRTL(ao.floating))?"start":"end")?"left":"right"):(Co=go,ko=mo==="end"?"top":"bottom");const $o=_o-ho[ko],Ro=So-ho[Co],Oo=!to.middlewareData.shift;let No=$o,Mo=Ro;if(yo){const Fo=So-ho.left-ho.right;Mo=mo||Oo?min$7(Ro,Fo):Fo}else{const Fo=_o-ho.top-ho.bottom;No=mo||Oo?min$7($o,Fo):Fo}if(Oo&&!mo){const Fo=max$7(ho.left,0),Lo=max$7(ho.right,0),Go=max$7(ho.top,0),Do=max$7(ho.bottom,0);yo?Mo=So-2*(Fo!==0||Lo!==0?Fo+Lo:max$7(ho.left,ho.right)):No=_o-2*(Go!==0||Do!==0?Go+Do:max$7(ho.top,ho.bottom))}await lo({...to,availableWidth:Mo,availableHeight:No});const Bo=await so.getDimensions(ao.floating);return So!==Bo.width||_o!==Bo.height?{reset:{rects:!0}}:{}}}};function getNodeName(eo){return isNode(eo)?(eo.nodeName||"").toLowerCase():"#document"}function getWindow$1(eo){var to;return(eo==null||(to=eo.ownerDocument)==null?void 0:to.defaultView)||window}function getDocumentElement(eo){var to;return(to=(isNode(eo)?eo.ownerDocument:eo.document)||window.document)==null?void 0:to.documentElement}function isNode(eo){return eo instanceof Node||eo instanceof getWindow$1(eo).Node}function isElement$1(eo){return eo instanceof Element||eo instanceof getWindow$1(eo).Element}function isHTMLElement$4(eo){return eo instanceof HTMLElement||eo instanceof getWindow$1(eo).HTMLElement}function isShadowRoot(eo){return typeof ShadowRoot>"u"?!1:eo instanceof ShadowRoot||eo instanceof getWindow$1(eo).ShadowRoot}function isOverflowElement(eo){const{overflow:to,overflowX:no,overflowY:io,display:so}=getComputedStyle$1(eo);return/auto|scroll|overlay|hidden|clip/.test(to+io+no)&&!["inline","contents"].includes(so)}function isTableElement(eo){return["table","td","th"].includes(getNodeName(eo))}function isContainingBlock(eo){const to=isWebKit(),no=getComputedStyle$1(eo);return no.transform!=="none"||no.perspective!=="none"||(no.containerType?no.containerType!=="normal":!1)||!to&&(no.backdropFilter?no.backdropFilter!=="none":!1)||!to&&(no.filter?no.filter!=="none":!1)||["transform","perspective","filter"].some(io=>(no.willChange||"").includes(io))||["paint","layout","strict","content"].some(io=>(no.contain||"").includes(io))}function getContainingBlock(eo){let to=getParentNode$1(eo);for(;isHTMLElement$4(to)&&!isLastTraversableNode(to);){if(isContainingBlock(to))return to;to=getParentNode$1(to)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(eo){return["html","body","#document"].includes(getNodeName(eo))}function getComputedStyle$1(eo){return getWindow$1(eo).getComputedStyle(eo)}function getNodeScroll(eo){return isElement$1(eo)?{scrollLeft:eo.scrollLeft,scrollTop:eo.scrollTop}:{scrollLeft:eo.pageXOffset,scrollTop:eo.pageYOffset}}function getParentNode$1(eo){if(getNodeName(eo)==="html")return eo;const to=eo.assignedSlot||eo.parentNode||isShadowRoot(eo)&&eo.host||getDocumentElement(eo);return isShadowRoot(to)?to.host:to}function getNearestOverflowAncestor(eo){const to=getParentNode$1(eo);return isLastTraversableNode(to)?eo.ownerDocument?eo.ownerDocument.body:eo.body:isHTMLElement$4(to)&&isOverflowElement(to)?to:getNearestOverflowAncestor(to)}function getOverflowAncestors(eo,to,no){var io;to===void 0&&(to=[]),no===void 0&&(no=!0);const so=getNearestOverflowAncestor(eo),ao=so===((io=eo.ownerDocument)==null?void 0:io.body),lo=getWindow$1(so);return ao?to.concat(lo,lo.visualViewport||[],isOverflowElement(so)?so:[],lo.frameElement&&no?getOverflowAncestors(lo.frameElement):[]):to.concat(so,getOverflowAncestors(so,[],no))}function getCssDimensions(eo){const to=getComputedStyle$1(eo);let no=parseFloat(to.width)||0,io=parseFloat(to.height)||0;const so=isHTMLElement$4(eo),ao=so?eo.offsetWidth:no,lo=so?eo.offsetHeight:io,uo=round$1(no)!==ao||round$1(io)!==lo;return uo&&(no=ao,io=lo),{width:no,height:io,$:uo}}function unwrapElement(eo){return isElement$1(eo)?eo:eo.contextElement}function getScale$1(eo){const to=unwrapElement(eo);if(!isHTMLElement$4(to))return createCoords(1);const no=to.getBoundingClientRect(),{width:io,height:so,$:ao}=getCssDimensions(to);let lo=(ao?round$1(no.width):no.width)/io,uo=(ao?round$1(no.height):no.height)/so;return(!lo||!Number.isFinite(lo))&&(lo=1),(!uo||!Number.isFinite(uo))&&(uo=1),{x:lo,y:uo}}const noOffsets=createCoords(0);function getVisualOffsets(eo){const to=getWindow$1(eo);return!isWebKit()||!to.visualViewport?noOffsets:{x:to.visualViewport.offsetLeft,y:to.visualViewport.offsetTop}}function shouldAddVisualOffsets(eo,to,no){return to===void 0&&(to=!1),!no||to&&no!==getWindow$1(eo)?!1:to}function getBoundingClientRect(eo,to,no,io){to===void 0&&(to=!1),no===void 0&&(no=!1);const so=eo.getBoundingClientRect(),ao=unwrapElement(eo);let lo=createCoords(1);to&&(io?isElement$1(io)&&(lo=getScale$1(io)):lo=getScale$1(eo));const uo=shouldAddVisualOffsets(ao,no,io)?getVisualOffsets(ao):createCoords(0);let ho=(so.left+uo.x)/lo.x,go=(so.top+uo.y)/lo.y,mo=so.width/lo.x,yo=so.height/lo.y;if(ao){const So=getWindow$1(ao),_o=io&&isElement$1(io)?getWindow$1(io):io;let ko=So.frameElement;for(;ko&&io&&_o!==So;){const Co=getScale$1(ko),$o=ko.getBoundingClientRect(),Ro=getComputedStyle$1(ko),Oo=$o.left+(ko.clientLeft+parseFloat(Ro.paddingLeft))*Co.x,No=$o.top+(ko.clientTop+parseFloat(Ro.paddingTop))*Co.y;ho*=Co.x,go*=Co.y,mo*=Co.x,yo*=Co.y,ho+=Oo,go+=No,ko=getWindow$1(ko).frameElement}}return rectToClientRect({width:mo,height:yo,x:ho,y:go})}function convertOffsetParentRelativeRectToViewportRelativeRect(eo){let{rect:to,offsetParent:no,strategy:io}=eo;const so=isHTMLElement$4(no),ao=getDocumentElement(no);if(no===ao)return to;let lo={scrollLeft:0,scrollTop:0},uo=createCoords(1);const ho=createCoords(0);if((so||!so&&io!=="fixed")&&((getNodeName(no)!=="body"||isOverflowElement(ao))&&(lo=getNodeScroll(no)),isHTMLElement$4(no))){const go=getBoundingClientRect(no);uo=getScale$1(no),ho.x=go.x+no.clientLeft,ho.y=go.y+no.clientTop}return{width:to.width*uo.x,height:to.height*uo.y,x:to.x*uo.x-lo.scrollLeft*uo.x+ho.x,y:to.y*uo.y-lo.scrollTop*uo.y+ho.y}}function getClientRects(eo){return Array.from(eo.getClientRects())}function getWindowScrollBarX(eo){return getBoundingClientRect(getDocumentElement(eo)).left+getNodeScroll(eo).scrollLeft}function getDocumentRect(eo){const to=getDocumentElement(eo),no=getNodeScroll(eo),io=eo.ownerDocument.body,so=max$7(to.scrollWidth,to.clientWidth,io.scrollWidth,io.clientWidth),ao=max$7(to.scrollHeight,to.clientHeight,io.scrollHeight,io.clientHeight);let lo=-no.scrollLeft+getWindowScrollBarX(eo);const uo=-no.scrollTop;return getComputedStyle$1(io).direction==="rtl"&&(lo+=max$7(to.clientWidth,io.clientWidth)-so),{width:so,height:ao,x:lo,y:uo}}function getViewportRect(eo,to){const no=getWindow$1(eo),io=getDocumentElement(eo),so=no.visualViewport;let ao=io.clientWidth,lo=io.clientHeight,uo=0,ho=0;if(so){ao=so.width,lo=so.height;const go=isWebKit();(!go||go&&to==="fixed")&&(uo=so.offsetLeft,ho=so.offsetTop)}return{width:ao,height:lo,x:uo,y:ho}}function getInnerBoundingClientRect(eo,to){const no=getBoundingClientRect(eo,!0,to==="fixed"),io=no.top+eo.clientTop,so=no.left+eo.clientLeft,ao=isHTMLElement$4(eo)?getScale$1(eo):createCoords(1),lo=eo.clientWidth*ao.x,uo=eo.clientHeight*ao.y,ho=so*ao.x,go=io*ao.y;return{width:lo,height:uo,x:ho,y:go}}function getClientRectFromClippingAncestor(eo,to,no){let io;if(to==="viewport")io=getViewportRect(eo,no);else if(to==="document")io=getDocumentRect(getDocumentElement(eo));else if(isElement$1(to))io=getInnerBoundingClientRect(to,no);else{const so=getVisualOffsets(eo);io={...to,x:to.x-so.x,y:to.y-so.y}}return rectToClientRect(io)}function hasFixedPositionAncestor(eo,to){const no=getParentNode$1(eo);return no===to||!isElement$1(no)||isLastTraversableNode(no)?!1:getComputedStyle$1(no).position==="fixed"||hasFixedPositionAncestor(no,to)}function getClippingElementAncestors(eo,to){const no=to.get(eo);if(no)return no;let io=getOverflowAncestors(eo,[],!1).filter(uo=>isElement$1(uo)&&getNodeName(uo)!=="body"),so=null;const ao=getComputedStyle$1(eo).position==="fixed";let lo=ao?getParentNode$1(eo):eo;for(;isElement$1(lo)&&!isLastTraversableNode(lo);){const uo=getComputedStyle$1(lo),ho=isContainingBlock(lo);!ho&&uo.position==="fixed"&&(so=null),(ao?!ho&&!so:!ho&&uo.position==="static"&&!!so&&["absolute","fixed"].includes(so.position)||isOverflowElement(lo)&&!ho&&hasFixedPositionAncestor(eo,lo))?io=io.filter(mo=>mo!==lo):so=uo,lo=getParentNode$1(lo)}return to.set(eo,io),io}function getClippingRect(eo){let{element:to,boundary:no,rootBoundary:io,strategy:so}=eo;const lo=[...no==="clippingAncestors"?getClippingElementAncestors(to,this._c):[].concat(no),io],uo=lo[0],ho=lo.reduce((go,mo)=>{const yo=getClientRectFromClippingAncestor(to,mo,so);return go.top=max$7(yo.top,go.top),go.right=min$7(yo.right,go.right),go.bottom=min$7(yo.bottom,go.bottom),go.left=max$7(yo.left,go.left),go},getClientRectFromClippingAncestor(to,uo,so));return{width:ho.right-ho.left,height:ho.bottom-ho.top,x:ho.left,y:ho.top}}function getDimensions(eo){return getCssDimensions(eo)}function getRectRelativeToOffsetParent(eo,to,no){const io=isHTMLElement$4(to),so=getDocumentElement(to),ao=no==="fixed",lo=getBoundingClientRect(eo,!0,ao,to);let uo={scrollLeft:0,scrollTop:0};const ho=createCoords(0);if(io||!io&&!ao)if((getNodeName(to)!=="body"||isOverflowElement(so))&&(uo=getNodeScroll(to)),io){const go=getBoundingClientRect(to,!0,ao,to);ho.x=go.x+to.clientLeft,ho.y=go.y+to.clientTop}else so&&(ho.x=getWindowScrollBarX(so));return{x:lo.left+uo.scrollLeft-ho.x,y:lo.top+uo.scrollTop-ho.y,width:lo.width,height:lo.height}}function getTrueOffsetParent(eo,to){return!isHTMLElement$4(eo)||getComputedStyle$1(eo).position==="fixed"?null:to?to(eo):eo.offsetParent}function getOffsetParent(eo,to){const no=getWindow$1(eo);if(!isHTMLElement$4(eo))return no;let io=getTrueOffsetParent(eo,to);for(;io&&isTableElement(io)&&getComputedStyle$1(io).position==="static";)io=getTrueOffsetParent(io,to);return io&&(getNodeName(io)==="html"||getNodeName(io)==="body"&&getComputedStyle$1(io).position==="static"&&!isContainingBlock(io))?no:io||getContainingBlock(eo)||no}const getElementRects=async function(eo){let{reference:to,floating:no,strategy:io}=eo;const so=this.getOffsetParent||getOffsetParent,ao=this.getDimensions;return{reference:getRectRelativeToOffsetParent(to,await so(no),io),floating:{x:0,y:0,...await ao(no)}}};function isRTL(eo){return getComputedStyle$1(eo).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale:getScale$1,isElement:isElement$1,isRTL},computePosition=(eo,to,no)=>{const io=new Map,so={platform,...no},ao={...so.platform,_c:io};return computePosition$1(eo,to,{...so,platform:ao})};function parseFloatingUIPlacement(eo){const to=eo.split("-");return{side:to[0],alignment:to[1]}}const getParentNode=eo=>eo.nodeName==="HTML"?eo:eo.parentNode||eo.host,getStyleComputedProperty=eo=>{var to;return eo.nodeType!==1?{}:((to=eo.ownerDocument)===null||to===void 0?void 0:to.defaultView).getComputedStyle(eo,null)},getScrollParent=eo=>{const to=eo&&getParentNode(eo);if(!to)return document.body;switch(to.nodeName){case"HTML":case"BODY":return to.ownerDocument.body;case"#document":return to.body}const{overflow:no,overflowX:io,overflowY:so}=getStyleComputedProperty(to);return/(auto|scroll|overlay)/.test(no+so+io)?to:getScrollParent(to)},hasScrollParent=eo=>{var to;const no=getScrollParent(eo);return no?no!==((to=no.ownerDocument)===null||to===void 0?void 0:to.body):!1};function getBoundary(eo,to){if(to==="window")return eo==null?void 0:eo.ownerDocument.documentElement;if(to==="clippingParents")return"clippingAncestors";if(to==="scrollParent"){let no=getScrollParent(eo);return no.nodeName==="BODY"&&(no=eo==null?void 0:eo.ownerDocument.documentElement),no}return to}function mergeArrowOffset(eo,to){return typeof eo=="number"||typeof eo=="object"&&eo!==null?addArrowOffset(eo,to):typeof eo=="function"?no=>{const io=eo(no);return addArrowOffset(io,to)}:{mainAxis:to}}const addArrowOffset=(eo,to)=>{if(typeof eo=="number")return{mainAxis:eo+to};var no;return{...eo,mainAxis:((no=eo.mainAxis)!==null&&no!==void 0?no:0)+to}};function toFloatingUIPadding(eo,to){if(typeof eo=="number")return eo;const{start:no,end:io,...so}=eo,ao=so,lo=to?"end":"start",uo=to?"start":"end";return eo[lo]&&(ao.left=eo[lo]),eo[uo]&&(ao.right=eo[uo]),ao}const getPositionMap$1=eo=>({above:"top",below:"bottom",before:eo?"right":"left",after:eo?"left":"right"}),getAlignmentMap$1=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),shouldAlignToCenter=(eo,to)=>{const no=eo==="above"||eo==="below",io=to==="top"||to==="bottom";return no&&io||!no&&!io},toFloatingUIPlacement=(eo,to,no)=>{const io=shouldAlignToCenter(to,eo)?"center":eo,so=to&&getPositionMap$1(no)[to],ao=io&&getAlignmentMap$1()[io];return so&&ao?`${so}-${ao}`:so},getPositionMap=()=>({top:"above",bottom:"below",right:"after",left:"before"}),getAlignmentMap=eo=>eo==="above"||eo==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},fromFloatingUIPlacement=eo=>{const{side:to,alignment:no}=parseFloatingUIPlacement(eo),io=getPositionMap()[to],so=no&&getAlignmentMap(io)[no];return{position:io,alignment:so}},shorthandLookup={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function resolvePositioningShorthand(eo){return eo==null?{}:typeof eo=="string"?shorthandLookup[eo]:eo}function useCallbackRef(eo,to,no){const io=reactExports.useRef(!0),[so]=reactExports.useState(()=>({value:eo,callback:to,facade:{get current(){return so.value},set current(ao){const lo=so.value;if(lo!==ao){if(so.value=ao,no&&io.current)return;so.callback(ao,lo)}}}}));return useIsomorphicLayoutEffect$1(()=>{io.current=!1},[]),so.callback=to,so.facade}function debounce$2(eo){let to;return()=>(to||(to=new Promise(no=>{Promise.resolve().then(()=>{to=void 0,no(eo())})})),to)}function writeArrowUpdates(eo){const{arrow:to,middlewareData:no}=eo;if(!no.arrow||!to)return;const{x:io,y:so}=no.arrow;Object.assign(to.style,{left:`${io}px`,top:`${so}px`})}function writeContainerUpdates(eo){var to,no,io;const{container:so,placement:ao,middlewareData:lo,strategy:uo,lowPPI:ho,coordinates:go,useTransform:mo=!0}=eo;if(!so)return;so.setAttribute(DATA_POSITIONING_PLACEMENT,ao),so.removeAttribute(DATA_POSITIONING_INTERSECTING),lo.intersectionObserver.intersecting&&so.setAttribute(DATA_POSITIONING_INTERSECTING,""),so.removeAttribute(DATA_POSITIONING_ESCAPED),!((to=lo.hide)===null||to===void 0)&&to.escaped&&so.setAttribute(DATA_POSITIONING_ESCAPED,""),so.removeAttribute(DATA_POSITIONING_HIDDEN),!((no=lo.hide)===null||no===void 0)&&no.referenceHidden&&so.setAttribute(DATA_POSITIONING_HIDDEN,"");const yo=((io=so.ownerDocument.defaultView)===null||io===void 0?void 0:io.devicePixelRatio)||1,So=Math.round(go.x*yo)/yo,_o=Math.round(go.y*yo)/yo;if(Object.assign(so.style,{position:uo}),mo){Object.assign(so.style,{transform:ho?`translate(${So}px, ${_o}px)`:`translate3d(${So}px, ${_o}px, 0)`});return}Object.assign(so.style,{left:`${So}px`,top:`${_o}px`})}const normalizeAutoSize=eo=>{switch(eo){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function coverTarget(){return{name:"coverTarget",fn:eo=>{const{placement:to,rects:no,x:io,y:so}=eo,ao=parseFloatingUIPlacement(to).side,lo={x:io,y:so};switch(ao){case"bottom":lo.y-=no.reference.height;break;case"top":lo.y+=no.reference.height;break;case"left":lo.x+=no.reference.width;break;case"right":lo.x-=no.reference.width;break}return lo}}}function flip(eo){const{hasScrollableElement:to,flipBoundary:no,container:io,fallbackPositions:so=[],isRtl:ao}=eo,lo=so.reduce((uo,ho)=>{const{position:go,align:mo}=resolvePositioningShorthand(ho),yo=toFloatingUIPlacement(mo,go,ao);return yo&&uo.push(yo),uo},[]);return flip$1({...to&&{boundary:"clippingAncestors"},...no&&{altBoundary:!0,boundary:getBoundary(io,no)},fallbackStrategy:"bestFit",...lo.length&&{fallbackPlacements:lo}})}function intersecting(){return{name:"intersectionObserver",fn:async eo=>{const to=eo.rects.floating,no=await detectOverflow(eo,{altBoundary:!0}),io=no.top0,so=no.bottom0;return{data:{intersecting:io||so}}}}}const resetMaxSize=eo=>({name:"resetMaxSize",fn({middlewareData:to,elements:no}){var io;if(!((io=to.resetMaxSize)===null||io===void 0)&&io.maxSizeAlreadyReset)return{};const{applyMaxWidth:so,applyMaxHeight:ao}=eo;return so&&(no.floating.style.removeProperty("box-sizing"),no.floating.style.removeProperty("max-width"),no.floating.style.removeProperty("width")),ao&&(no.floating.style.removeProperty("box-sizing"),no.floating.style.removeProperty("max-height"),no.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function maxSize(eo,to){const{container:no,overflowBoundary:io}=to;return size({...io&&{altBoundary:!0,boundary:getBoundary(no,io)},apply({availableHeight:so,availableWidth:ao,elements:lo,rects:uo}){const ho=(yo,So,_o)=>{if(yo&&(lo.floating.style.setProperty("box-sizing","border-box"),lo.floating.style.setProperty(`max-${So}`,`${_o}px`),uo.floating[So]>_o)){lo.floating.style.setProperty(So,`${_o}px`);const ko=So==="width"?"x":"y";lo.floating.style.getPropertyValue(`overflow-${ko}`)||lo.floating.style.setProperty(`overflow-${ko}`,"auto")}},{applyMaxWidth:go,applyMaxHeight:mo}=eo;ho(go,"width",ao),ho(mo,"height",so)}})}function getFloatingUIOffset(eo){return!eo||typeof eo=="number"||typeof eo=="object"?eo:({rects:{floating:to,reference:no},placement:io})=>{const{position:so,alignment:ao}=fromFloatingUIPlacement(io);return eo({positionedRect:to,targetRect:no,position:so,alignment:ao})}}function offset(eo){const to=getFloatingUIOffset(eo);return offset$1(to)}function shift$1(eo){const{hasScrollableElement:to,disableTether:no,overflowBoundary:io,container:so,overflowBoundaryPadding:ao,isRtl:lo}=eo;return shift$2({...to&&{boundary:"clippingAncestors"},...no&&{crossAxis:no==="all",limiter:limitShift({crossAxis:no!=="all",mainAxis:!1})},...ao&&{padding:toFloatingUIPadding(ao,lo)},...io&&{altBoundary:!0,boundary:getBoundary(so,io)}})}const matchTargetSizeCssVar="--fui-match-target-size";function matchTargetSize(){return{name:"matchTargetSize",fn:async eo=>{const{rects:{reference:to,floating:no},elements:{floating:io},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:so=!1}={}}}=eo;if(to.width===no.width||so)return{};const{width:ao}=to;return io.style.setProperty(matchTargetSizeCssVar,`${ao}px`),io.style.width||(io.style.width=`var(${matchTargetSizeCssVar})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function listScrollParents(eo){const to=[];let no=eo;for(;no;){const io=getScrollParent(no);if(eo.ownerDocument.body===io){to.push(io);break}to.push(io),no=io}return to}function createPositionManager(eo){const{container:to,target:no,arrow:io,strategy:so,middleware:ao,placement:lo,useTransform:uo=!0}=eo;let ho=!1;if(!no||!to)return{updatePosition:()=>{},dispose:()=>{}};let go=!0;const mo=new Set,yo=to.ownerDocument.defaultView;Object.assign(to.style,{position:"fixed",left:0,top:0,margin:0});const So=()=>{ho||(go&&(listScrollParents(to).forEach(Co=>mo.add(Co)),isHTMLElement$6(no)&&listScrollParents(no).forEach(Co=>mo.add(Co)),mo.forEach(Co=>{Co.addEventListener("scroll",_o,{passive:!0})}),go=!1),Object.assign(to.style,{position:so}),computePosition(no,to,{placement:lo,middleware:ao,strategy:so}).then(({x:Co,y:$o,middlewareData:Ro,placement:Oo})=>{ho||(writeArrowUpdates({arrow:io,middlewareData:Ro}),writeContainerUpdates({container:to,middlewareData:Ro,placement:Oo,coordinates:{x:Co,y:$o},lowPPI:((yo==null?void 0:yo.devicePixelRatio)||1)<=1,strategy:so,useTransform:uo}))}).catch(Co=>{}))},_o=debounce$2(()=>So()),ko=()=>{ho=!0,yo&&(yo.removeEventListener("scroll",_o),yo.removeEventListener("resize",_o)),mo.forEach(Co=>{Co.removeEventListener("scroll",_o)}),mo.clear()};return yo&&(yo.addEventListener("scroll",_o,{passive:!0}),yo.addEventListener("resize",_o)),_o(),{updatePosition:_o,dispose:ko}}function usePositioning(eo){const to=reactExports.useRef(null),no=reactExports.useRef(null),io=reactExports.useRef(null),so=reactExports.useRef(null),ao=reactExports.useRef(null),{enabled:lo=!0}=eo,uo=usePositioningOptions(eo),ho=reactExports.useCallback(()=>{to.current&&to.current.dispose(),to.current=null;var _o;const ko=(_o=io.current)!==null&&_o!==void 0?_o:no.current;lo&&canUseDOM$3()&&ko&&so.current&&(to.current=createPositionManager({container:so.current,target:ko,arrow:ao.current,...uo(so.current,ao.current)}))},[lo,uo]),go=useEventCallback$3(_o=>{io.current=_o,ho()});reactExports.useImperativeHandle(eo.positioningRef,()=>({updatePosition:()=>{var _o;return(_o=to.current)===null||_o===void 0?void 0:_o.updatePosition()},setTarget:_o=>{eo.target,go(_o)}}),[eo.target,go]),useIsomorphicLayoutEffect$1(()=>{var _o;go((_o=eo.target)!==null&&_o!==void 0?_o:null)},[eo.target,go]),useIsomorphicLayoutEffect$1(()=>{ho()},[ho]);const mo=useCallbackRef(null,_o=>{no.current!==_o&&(no.current=_o,ho())}),yo=useCallbackRef(null,_o=>{so.current!==_o&&(so.current=_o,ho())}),So=useCallbackRef(null,_o=>{ao.current!==_o&&(ao.current=_o,ho())});return{targetRef:mo,containerRef:yo,arrowRef:So}}function usePositioningOptions(eo){const{align:to,arrowPadding:no,autoSize:io,coverTarget:so,flipBoundary:ao,offset:lo,overflowBoundary:uo,pinned:ho,position:go,unstable_disableTether:mo,positionFixed:yo,strategy:So,overflowBoundaryPadding:_o,fallbackPositions:ko,useTransform:Co,matchTargetSize:$o}=eo,{dir:Ro,targetDocument:Oo}=useFluent(),No=Ro==="rtl",Mo=So??yo?"fixed":"absolute",Bo=normalizeAutoSize(io);return reactExports.useCallback((Fo,Lo)=>{const Go=hasScrollParent(Fo),Do=[Bo&&resetMaxSize(Bo),$o&&matchTargetSize(),lo&&offset(lo),so&&coverTarget(),!ho&&flip({container:Fo,flipBoundary:ao,hasScrollableElement:Go,isRtl:No,fallbackPositions:ko}),shift$1({container:Fo,hasScrollableElement:Go,overflowBoundary:uo,disableTether:mo,overflowBoundaryPadding:_o,isRtl:No}),Bo&&maxSize(Bo,{container:Fo,overflowBoundary:uo}),intersecting(),Lo&&arrow$1({element:Lo,padding:no}),hide({strategy:"referenceHidden"}),hide({strategy:"escaped"}),!1].filter(Boolean);return{placement:toFloatingUIPlacement(to,go,No),middleware:Do,strategy:Mo,useTransform:Co}},[to,no,Bo,so,mo,ao,No,lo,uo,ho,go,Mo,_o,ko,Co,$o,Oo])}const usePositioningMouseTarget=eo=>{const[to,no]=reactExports.useState(eo);return[to,so=>{if(so==null){no(void 0);return}let ao;so instanceof MouseEvent?ao=so:ao=so.nativeEvent,ao instanceof MouseEvent;const lo=createVirtualElementFromClick(ao);no(lo)}]},PopoverContext=createContext(void 0),popoverContextDefaultValue={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};PopoverContext.Provider;const usePopoverContext_unstable=eo=>useContextSelector(PopoverContext,(to=popoverContextDefaultValue)=>eo(to)),usePopoverSurface_unstable=(eo,to)=>{const no=usePopoverContext_unstable(Oo=>Oo.contentRef),io=usePopoverContext_unstable(Oo=>Oo.openOnHover),so=usePopoverContext_unstable(Oo=>Oo.setOpen),ao=usePopoverContext_unstable(Oo=>Oo.mountNode),lo=usePopoverContext_unstable(Oo=>Oo.arrowRef),uo=usePopoverContext_unstable(Oo=>Oo.size),ho=usePopoverContext_unstable(Oo=>Oo.withArrow),go=usePopoverContext_unstable(Oo=>Oo.appearance),mo=usePopoverContext_unstable(Oo=>Oo.trapFocus),yo=usePopoverContext_unstable(Oo=>Oo.inertTrapFocus),So=usePopoverContext_unstable(Oo=>Oo.inline),{modalAttributes:_o}=useModalAttributes({trapFocus:mo,legacyTrapFocus:!yo,alwaysFocusable:!mo}),ko={inline:So,appearance:go,withArrow:ho,size:uo,arrowRef:lo,mountNode:ao,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,no),role:mo?"dialog":"group","aria-modal":mo?!0:void 0,..._o,...eo}),{elementType:"div"})},{onMouseEnter:Co,onMouseLeave:$o,onKeyDown:Ro}=ko.root;return ko.root.onMouseEnter=Oo=>{io&&so(Oo,!0),Co==null||Co(Oo)},ko.root.onMouseLeave=Oo=>{io&&so(Oo,!1),$o==null||$o(Oo)},ko.root.onKeyDown=Oo=>{var No;Oo.key==="Escape"&&(!((No=no.current)===null||No===void 0)&&No.contains(Oo.target))&&(Oo.preventDefault(),so(Oo,!1)),Ro==null||Ro(Oo)},ko};function toMountNodeProps(eo){return isHTMLElement$6(eo)?{element:eo}:typeof eo=="object"?eo===null?{element:null}:eo:{}}var getCurrentOwner=()=>reactExports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,useIsStrictMode=()=>!1,effectSet=new WeakSet;function useStrictEffect(eo,to){const no=getCurrentOwner();reactExports.useEffect(()=>{if(!effectSet.has(no)){effectSet.add(no),eo();return}return eo()},to)}var memoSet=new WeakSet;function useStrictMemo(eo,to){return reactExports.useMemo(()=>{const no=getCurrentOwner();return memoSet.has(no)?eo():(memoSet.add(no),null)},to)}function useDisposable(eo,to){var no;const io=useIsStrictMode()&&!1,so=io?useStrictMemo:reactExports.useMemo,ao=io?useStrictEffect:reactExports.useEffect,[lo,uo]=(no=so(()=>eo(),to))!=null?no:[null,()=>null];return ao(()=>uo,to),lo}const usePortalMountNodeStylesStyles=__styles({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),useInsertionEffect=React$1.useInsertionEffect,usePortalMountNode=eo=>{const{targetDocument:to,dir:no}=useFluent(),io=usePortalMountNode$1(),so=useFocusVisible(),ao=usePortalMountNodeStylesStyles(),lo=useThemeClassName(),uo=mergeClasses(lo,ao.root,eo.className),ho=io??(to==null?void 0:to.body),go=useDisposable(()=>{if(ho===void 0||eo.disabled)return[null,()=>null];const mo=ho.ownerDocument.createElement("div");return ho.appendChild(mo),[mo,()=>mo.remove()]},[ho]);return useInsertionEffect?useInsertionEffect(()=>{if(!go)return;const mo=uo.split(" ").filter(Boolean);return go.classList.add(...mo),go.setAttribute("dir",no),so.current=go,()=>{go.classList.remove(...mo),go.removeAttribute("dir")}},[uo,no,go,so]):reactExports.useMemo(()=>{go&&(go.className=uo,go.setAttribute("dir",no),so.current=go)},[uo,no,go,so]),go},usePortal_unstable=eo=>{const{element:to,className:no}=toMountNodeProps(eo.mountNode),io=reactExports.useRef(null),so=usePortalMountNode({disabled:!!to,className:no}),ao=to??so,lo={children:eo.children,mountNode:ao,virtualParentRootRef:io};return reactExports.useEffect(()=>{if(!ao)return;const uo=io.current,ho=ao.contains(uo);if(uo&&!ho)return setVirtualParent$1(ao,uo),()=>{setVirtualParent$1(ao,void 0)}},[io,ao]),lo},renderPortal_unstable=eo=>reactExports.createElement("span",{hidden:!0,ref:eo.virtualParentRootRef},eo.mountNode&&reactDomExports.createPortal(eo.children,eo.mountNode)),Portal$1=eo=>{const to=usePortal_unstable(eo);return renderPortal_unstable(to)};Portal$1.displayName="Portal";const renderPopoverSurface_unstable=eo=>{const to=jsxs(eo.root,{children:[eo.withArrow&&jsx$1("div",{ref:eo.arrowRef,className:eo.arrowClassName}),eo.root.children]});return eo.inline?to:jsx$1(Portal$1,{mountNode:eo.mountNode,children:to})},popoverSurfaceClassNames={root:"fui-PopoverSurface"},arrowHeights={small:6,medium:8,large:8},useStyles$K=__styles({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),usePopoverSurfaceStyles_unstable=eo=>{const to=useStyles$K();return eo.root.className=mergeClasses(popoverSurfaceClassNames.root,to.root,eo.inline&&to.inline,eo.size==="small"&&to.smallPadding,eo.size==="medium"&&to.mediumPadding,eo.size==="large"&&to.largePadding,eo.appearance==="inverted"&&to.inverted,eo.appearance==="brand"&&to.brand,eo.root.className),eo.arrowClassName=mergeClasses(to.arrow,eo.size==="small"?to.smallArrow:to.mediumLargeArrow),eo},PopoverSurface=reactExports.forwardRef((eo,to)=>{const no=usePopoverSurface_unstable(eo,to);return usePopoverSurfaceStyles_unstable(no),useCustomStyleHook("usePopoverSurfaceStyles_unstable")(no),renderPopoverSurface_unstable(no)});PopoverSurface.displayName="PopoverSurface";const popoverSurfaceBorderRadius=4,usePopover_unstable=eo=>{const[to,no]=usePositioningMouseTarget(),io={size:"medium",contextTarget:to,setContextTarget:no,...eo},so=reactExports.Children.toArray(eo.children);let ao,lo;so.length===2?(ao=so[0],lo=so[1]):so.length===1&&(lo=so[0]);const[uo,ho]=useOpenState(io),go=reactExports.useRef(0),mo=useEventCallback$3((No,Mo)=>{if(clearTimeout(go.current),!(No instanceof Event)&&No.persist&&No.persist(),No.type==="mouseleave"){var Bo;go.current=setTimeout(()=>{ho(No,Mo)},(Bo=eo.mouseLeaveDelay)!==null&&Bo!==void 0?Bo:500)}else ho(No,Mo)});reactExports.useEffect(()=>()=>{clearTimeout(go.current)},[]);const yo=reactExports.useCallback(No=>{mo(No,!uo)},[mo,uo]),So=usePopoverRefs(io),{targetDocument:_o}=useFluent();var ko;useOnClickOutside({contains:elementContains$1,element:_o,callback:No=>mo(No,!1),refs:[So.triggerRef,So.contentRef],disabled:!uo,disabledFocusOnIframe:!(!((ko=eo.closeOnIframeFocus)!==null&&ko!==void 0)||ko)});const Co=io.openOnContext||io.closeOnScroll;useOnScrollOutside({contains:elementContains$1,element:_o,callback:No=>mo(No,!1),refs:[So.triggerRef,So.contentRef],disabled:!uo||!Co});const{findFirstFocusable:$o}=useFocusFinders();reactExports.useEffect(()=>{if(!eo.unstable_disableAutoFocus&&uo&&So.contentRef.current){var No;const Mo=(No=So.contentRef.current.getAttribute("tabIndex"))!==null&&No!==void 0?No:void 0,Bo=isNaN(Mo)?$o(So.contentRef.current):So.contentRef.current;Bo==null||Bo.focus()}},[$o,uo,So.contentRef,eo.unstable_disableAutoFocus]);var Ro,Oo;return{...io,...So,inertTrapFocus:(Ro=eo.inertTrapFocus)!==null&&Ro!==void 0?Ro:eo.legacyTrapFocus===void 0?!1:!eo.legacyTrapFocus,popoverTrigger:ao,popoverSurface:lo,open:uo,setOpen:mo,toggleOpen:yo,setContextTarget:no,contextTarget:to,inline:(Oo=eo.inline)!==null&&Oo!==void 0?Oo:!1}};function useOpenState(eo){const to=useEventCallback$3((lo,uo)=>{var ho;return(ho=eo.onOpenChange)===null||ho===void 0?void 0:ho.call(eo,lo,uo)}),[no,io]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1});eo.open=no!==void 0?no:eo.open;const so=eo.setContextTarget,ao=reactExports.useCallback((lo,uo)=>{uo&&lo.type==="contextmenu"&&so(lo),uo||so(void 0),io(uo),to==null||to(lo,{open:uo})},[io,to,so]);return[no,ao]}function usePopoverRefs(eo){const to={position:"above",align:"center",arrowPadding:2*popoverSurfaceBorderRadius,target:eo.openOnContext?eo.contextTarget:void 0,...resolvePositioningShorthand(eo.positioning)};to.coverTarget&&(eo.withArrow=!1),eo.withArrow&&(to.offset=mergeArrowOffset(to.offset,arrowHeights[eo.size]));const{targetRef:no,containerRef:io,arrowRef:so}=usePositioning(to);return{triggerRef:no,contentRef:io,arrowRef:so}}const renderPopover_unstable=eo=>{const{appearance:to,arrowRef:no,contentRef:io,inline:so,mountNode:ao,open:lo,openOnContext:uo,openOnHover:ho,setOpen:go,size:mo,toggleOpen:yo,trapFocus:So,triggerRef:_o,withArrow:ko,inertTrapFocus:Co}=eo;return reactExports.createElement(PopoverContext.Provider,{value:{appearance:to,arrowRef:no,contentRef:io,inline:so,mountNode:ao,open:lo,openOnContext:uo,openOnHover:ho,setOpen:go,toggleOpen:yo,triggerRef:_o,size:mo,trapFocus:So,inertTrapFocus:Co,withArrow:ko}},eo.popoverTrigger,eo.open&&eo.popoverSurface)},Popover=eo=>{const to=usePopover_unstable(eo);return renderPopover_unstable(to)};Popover.displayName="Popover";const usePopoverTrigger_unstable=eo=>{const{children:to,disableButtonEnhancement:no=!1}=eo,io=getTriggerChild(to),so=usePopoverContext_unstable(No=>No.open),ao=usePopoverContext_unstable(No=>No.setOpen),lo=usePopoverContext_unstable(No=>No.toggleOpen),uo=usePopoverContext_unstable(No=>No.triggerRef),ho=usePopoverContext_unstable(No=>No.openOnHover),go=usePopoverContext_unstable(No=>No.openOnContext),{triggerAttributes:mo}=useModalAttributes(),yo=No=>{go&&(No.preventDefault(),ao(No,!0))},So=No=>{go||lo(No)},_o=No=>{No.key===Escape$1&&so&&!No.isDefaultPrevented()&&(ao(No,!1),No.preventDefault())},ko=No=>{ho&&ao(No,!0)},Co=No=>{ho&&ao(No,!1)},$o={...mo,"aria-expanded":`${so}`,...io==null?void 0:io.props,onMouseEnter:useEventCallback$3(mergeCallbacks(io==null?void 0:io.props.onMouseEnter,ko)),onMouseLeave:useEventCallback$3(mergeCallbacks(io==null?void 0:io.props.onMouseLeave,Co)),onContextMenu:useEventCallback$3(mergeCallbacks(io==null?void 0:io.props.onContextMenu,yo)),ref:useMergedRefs$1(uo,io==null?void 0:io.ref)},Ro={...$o,onClick:useEventCallback$3(mergeCallbacks(io==null?void 0:io.props.onClick,So)),onKeyDown:useEventCallback$3(mergeCallbacks(io==null?void 0:io.props.onKeyDown,_o))},Oo=useARIAButtonProps((io==null?void 0:io.type)==="button"||(io==null?void 0:io.type)==="a"?io.type:"div",Ro);return{children:applyTriggerPropsToChildren(eo.children,useARIAButtonProps((io==null?void 0:io.type)==="button"||(io==null?void 0:io.type)==="a"?io.type:"div",go?$o:no?Ro:Oo))}},renderPopoverTrigger_unstable=eo=>eo.children,PopoverTrigger=eo=>{const to=usePopoverTrigger_unstable(eo);return renderPopoverTrigger_unstable(to)};PopoverTrigger.displayName="PopoverTrigger";PopoverTrigger.isFluentTriggerComponent=!0;const arrowHeight=6,tooltipBorderRadius=4,useTooltip_unstable=eo=>{var to,no,io,so;const ao=useTooltipVisibility(),lo=useIsSSR(),{targetDocument:uo}=useFluent(),[ho,go]=useTimeout(),{appearance:mo="normal",children:yo,content:So,withArrow:_o=!1,positioning:ko="above",onVisibleChange:Co,relationship:$o,showDelay:Ro=250,hideDelay:Oo=250,mountNode:No}=eo,[Mo,Bo]=useControllableState({state:eo.visible,initialState:!1}),Fo=reactExports.useCallback((gs,ys)=>{go(),Bo(vs=>(ys.visible!==vs&&(Co==null||Co(gs,ys)),ys.visible))},[go,Bo,Co]),Lo={withArrow:_o,positioning:ko,showDelay:Ro,hideDelay:Oo,relationship:$o,visible:Mo,shouldRenderTooltip:Mo,appearance:mo,mountNode:No,components:{content:"div"},content:always(So,{defaultProps:{role:"tooltip"},elementType:"div"})};Lo.content.id=useId$1("tooltip-",Lo.content.id);const Go={enabled:Lo.visible,arrowPadding:2*tooltipBorderRadius,position:"above",align:"center",offset:4,...resolvePositioningShorthand(Lo.positioning)};Lo.withArrow&&(Go.offset=mergeArrowOffset(Go.offset,arrowHeight));const{targetRef:Do,containerRef:Uo,arrowRef:Ho}=usePositioning(Go);Lo.content.ref=useMergedRefs$1(Lo.content.ref,Uo),Lo.arrowRef=Ho,useIsomorphicLayoutEffect$1(()=>{if(Mo){var gs;const ys={hide:ks=>Fo(void 0,{visible:!1,documentKeyboardEvent:ks})};(gs=ao.visibleTooltip)===null||gs===void 0||gs.hide(),ao.visibleTooltip=ys;const vs=ks=>{ks.key===Escape$1&&!ks.defaultPrevented&&(ys.hide(ks),ks.preventDefault())};return uo==null||uo.addEventListener("keydown",vs,{capture:!0}),()=>{ao.visibleTooltip===ys&&(ao.visibleTooltip=void 0),uo==null||uo.removeEventListener("keydown",vs,{capture:!0})}}},[ao,uo,Mo,Fo]);const Yo=reactExports.useRef(!1),qo=reactExports.useCallback(gs=>{if(gs.type==="focus"&&Yo.current){Yo.current=!1;return}const ys=ao.visibleTooltip?0:Lo.showDelay;ho(()=>{Fo(gs,{visible:!0})},ys),gs.persist()},[ho,Fo,Lo.showDelay,ao]),[Jo]=reactExports.useState(()=>{const gs=vs=>{var ks;!((ks=vs.detail)===null||ks===void 0)&&ks.isFocusedProgrammatically&&(Yo.current=!0)};let ys=null;return vs=>{ys==null||ys.removeEventListener(KEYBORG_FOCUSIN,gs),vs==null||vs.addEventListener(KEYBORG_FOCUSIN,gs),ys=vs}}),ps=reactExports.useCallback(gs=>{let ys=Lo.hideDelay;gs.type==="blur"&&(ys=0,Yo.current=(uo==null?void 0:uo.activeElement)===gs.target),ho(()=>{Fo(gs,{visible:!1})},ys),gs.persist()},[ho,Fo,Lo.hideDelay,uo]);Lo.content.onPointerEnter=mergeCallbacks(Lo.content.onPointerEnter,go),Lo.content.onPointerLeave=mergeCallbacks(Lo.content.onPointerLeave,ps),Lo.content.onFocus=mergeCallbacks(Lo.content.onFocus,go),Lo.content.onBlur=mergeCallbacks(Lo.content.onBlur,ps);const Qo=getTriggerChild(yo),hs={};return $o==="label"?typeof Lo.content.children=="string"?hs["aria-label"]=Lo.content.children:(hs["aria-labelledby"]=Lo.content.id,Lo.shouldRenderTooltip=!0):$o==="description"&&(hs["aria-describedby"]=Lo.content.id,Lo.shouldRenderTooltip=!0),lo&&(Lo.shouldRenderTooltip=!1),Lo.children=applyTriggerPropsToChildren(yo,{...hs,...Qo==null?void 0:Qo.props,ref:useMergedRefs$1(Qo==null?void 0:Qo.ref,Jo,Go.target===void 0?Do:void 0),onPointerEnter:useEventCallback$3(mergeCallbacks(Qo==null||(to=Qo.props)===null||to===void 0?void 0:to.onPointerEnter,qo)),onPointerLeave:useEventCallback$3(mergeCallbacks(Qo==null||(no=Qo.props)===null||no===void 0?void 0:no.onPointerLeave,ps)),onFocus:useEventCallback$3(mergeCallbacks(Qo==null||(io=Qo.props)===null||io===void 0?void 0:io.onFocus,qo)),onBlur:useEventCallback$3(mergeCallbacks(Qo==null||(so=Qo.props)===null||so===void 0?void 0:so.onBlur,ps))}),Lo},renderTooltip_unstable=eo=>jsxs(reactExports.Fragment,{children:[eo.children,eo.shouldRenderTooltip&&jsx$1(Portal$1,{mountNode:eo.mountNode,children:jsxs(eo.content,{children:[eo.withArrow&&jsx$1("div",{ref:eo.arrowRef,className:eo.arrowClassName}),eo.content.children]})})]}),tooltipClassNames={content:"fui-Tooltip__content"},useStyles$J=__styles({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],z8tnut:"f10ra9hq",z189sj:["fd9xhir","f1jlaasf"],Byoj8tv:"f1d7kygh",uwmqm3:["f1jlaasf","fd9xhir"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",a9b677:"f1ekdpwm",Bqenvij:"f83vc9z",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f10ra9hq{padding-top:4px;}",".fd9xhir{padding-right:11px;}",".f1jlaasf{padding-left:11px;}",".f1d7kygh{padding-bottom:6px;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}']}),useTooltipStyles_unstable=eo=>{const to=useStyles$J();return eo.content.className=mergeClasses(tooltipClassNames.content,to.root,eo.appearance==="inverted"&&to.inverted,eo.visible&&to.visible,eo.content.className),eo.arrowClassName=to.arrow,eo},Tooltip=eo=>{const to=useTooltip_unstable(eo);return useTooltipStyles_unstable(to),useCustomStyleHook("useTooltipStyles_unstable")(to),renderTooltip_unstable(to)};Tooltip.displayName="Tooltip";Tooltip.isFluentTriggerComponent=!0;const renderButton_unstable=eo=>{const{iconOnly:to,iconPosition:no}=eo;return jsxs(eo.root,{children:[no!=="after"&&eo.icon&&jsx$1(eo.icon,{}),!to&&eo.root.children,no==="after"&&eo.icon&&jsx$1(eo.icon,{})]})},buttonContext=reactExports.createContext(void 0),buttonContextDefaultValue={},ButtonContextProvider=buttonContext.Provider,useButtonContext=()=>{var eo;return(eo=reactExports.useContext(buttonContext))!==null&&eo!==void 0?eo:buttonContextDefaultValue},useButton_unstable=(eo,to)=>{const{size:no}=useButtonContext(),{appearance:io="secondary",as:so="button",disabled:ao=!1,disabledFocusable:lo=!1,icon:uo,iconPosition:ho="before",shape:go="rounded",size:mo=no??"medium"}=eo,yo=optional(uo,{elementType:"span"});return{appearance:io,disabled:ao,disabledFocusable:lo,iconPosition:ho,shape:go,size:mo,iconOnly:!!(yo!=null&&yo.children&&!eo.children),components:{root:"button",icon:"span"},root:always(getIntrinsicElementProps(so,useARIAButtonProps(eo.as,eo)),{elementType:"button",defaultProps:{ref:to,type:"button"}}),icon:yo}},buttonClassNames={root:"fui-Button",icon:"fui-Button__icon"},useRootBaseClassName$3=__resetStyles("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),useIconBaseClassName=__resetStyles("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),useRootStyles$a=__styles({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),useRootDisabledStyles$2=__styles({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useRootFocusStyles=__styles({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),useRootIconOnlyStyles=__styles({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),useIconStyles$5=__styles({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),useButtonStyles_unstable=eo=>{const to=useRootBaseClassName$3(),no=useIconBaseClassName(),io=useRootStyles$a(),so=useRootDisabledStyles$2(),ao=useRootFocusStyles(),lo=useRootIconOnlyStyles(),uo=useIconStyles$5(),{appearance:ho,disabled:go,disabledFocusable:mo,icon:yo,iconOnly:So,iconPosition:_o,shape:ko,size:Co}=eo;return eo.root.className=mergeClasses(buttonClassNames.root,to,ho&&io[ho],io[Co],yo&&Co==="small"&&io.smallWithIcon,yo&&Co==="large"&&io.largeWithIcon,io[ko],(go||mo)&&so.base,(go||mo)&&so.highContrast,ho&&(go||mo)&&so[ho],ho==="primary"&&ao.primary,ao[Co],ao[ko],So&&lo[Co],eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(buttonClassNames.icon,no,!!eo.root.children&&uo[_o],uo[Co],eo.icon.className)),eo},Button$2=reactExports.forwardRef((eo,to)=>{const no=useButton_unstable(eo,to);return useButtonStyles_unstable(no),useCustomStyleHook("useButtonStyles_unstable")(no),renderButton_unstable(no)});Button$2.displayName="Button";function useToggleState(eo,to){const{checked:no,defaultChecked:io,disabled:so,disabledFocusable:ao}=eo,{onClick:lo,role:uo}=to.root,[ho,go]=useControllableState({state:no,defaultState:io,initialState:!1}),mo=uo==="menuitemcheckbox"||uo==="checkbox",yo=reactExports.useCallback(So=>{if(!so&&!ao){if(So.defaultPrevented)return;go(!ho)}},[ho,so,ao,go]);return{...to,checked:ho,root:{...to.root,[mo?"aria-checked":"aria-pressed"]:ho,onClick:useEventCallback$3(mergeCallbacks(lo,yo))}}}const useToggleButton_unstable=(eo,to)=>{const no=useButton_unstable(eo,to);return useToggleState(eo,no)},toggleButtonClassNames={root:"fui-ToggleButton",icon:"fui-ToggleButton__icon"},useRootCheckedStyles=__styles({base:{De3pzq:"f1nfm20t",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],sj55zd:"f14nttnl",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],D0sxk3:"fxoiby5",t6yez3:"f15q0o9g",Jwef8y:"f1knas48",Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1xlaoq0",gg5e9n:["f1m52nbi","f1ub3y4t"],Bi91k9c:"feu1g3u",iro3zm:"f141de4g",b661bw:"f11v6sdu",Bk6r4ia:["f9yn8i4","f1ajwf28"],B9zn80p:"f1uwu36w",Bpld233:["f1ajwf28","f9yn8i4"],B2d53fq:"f9olfzr"},highContrast:{Bsw6fvg:"f1rirnrt",Bjwas2f:"f132fbg1",Bn1d65q:["f1ene5x0","fzbc999"],Bxeuatn:"f6jgcol",n51gp8:["fzbc999","f1ene5x0"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3",Btyszwp:"f1j4zkqc",B8jyv7h:["f1ug3svw","f10xfdm4"],l9kbep:"f4xlnbu",By5cl00:["f10xfdm4","f1ug3svw"],abbn9y:"f1jhcl7q",Bw5jppy:["fokje0w","fpctg2v"],B0tp99d:"f1yfuj62",B55dcl7:["fpctg2v","fokje0w"],G867l3:"fk75khc",gdbnj:["f90nk7n","f16eiqta"],mxns5l:"fnz8tm1",o3nasb:["f16eiqta","f90nk7n"],B7d2ofm:"fkom8lu"},outline:{De3pzq:"f1q9pm1r",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],B4j52fo:"fgx37oo",Bekrc4i:["f130t4y6","f1efpmoh"],Bn0qgzm:"fv51ejd",ibv6hh:["f1efpmoh","f130t4y6"],Jwef8y:"fjxutwb",iro3zm:"fwiml72",B8q5s1w:"fcaw57c",Bci5o5g:["fpwd27e","f1999bjr"],n8qw10:"f1hi52o4",Bdrgwmp:["f1999bjr","fpwd27e"]},primary:{De3pzq:"f8w4g0q",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2"},secondary:{},subtle:{De3pzq:"fq5gl1p",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1eryozh",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd"},transparent:{De3pzq:"f1q9pm1r",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1qj7y59",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m"}},{d:[".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fgx37oo{border-top-width:var(--strokeWidthThicker);}",".f130t4y6{border-right-width:var(--strokeWidthThicker);}",".f1efpmoh{border-left-width:var(--strokeWidthThicker);}",".fv51ejd{border-bottom-width:var(--strokeWidthThicker);}",".fcaw57c[data-fui-focus-visible]{border-top-color:var(--colorNeutralStroke1);}",".fpwd27e[data-fui-focus-visible]{border-right-color:var(--colorNeutralStroke1);}",".f1999bjr[data-fui-focus-visible]{border-left-color:var(--colorNeutralStroke1);}",".f1hi52o4[data-fui-focus-visible]{border-bottom-color:var(--colorNeutralStroke1);}",".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1eryozh{color:var(--colorNeutralForeground2Selected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1xlaoq0:hover{border-bottom-color:var(--colorNeutralStroke1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f141de4g:hover:active{background-color:var(--colorNeutralBackground1Pressed);}",".f11v6sdu:hover:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f9yn8i4:hover:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1ajwf28:hover:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1uwu36w:hover:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f9olfzr:hover:active{color:var(--colorNeutralForeground1Pressed);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f132fbg1{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ene5x0{border-right-color:Highlight;}.fzbc999{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f6jgcol{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j4zkqc:focus{border-top-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f10xfdm4:focus{border-left-width:1px;}.f1ug3svw:focus{border-right-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xlnbu:focus{border-bottom-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1jhcl7q:focus{border-top-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fokje0w:focus{border-right-style:solid;}.fpctg2v:focus{border-left-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yfuj62:focus{border-bottom-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk75khc:focus{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16eiqta:focus{border-left-color:HighlightText;}.f90nk7n:focus{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnz8tm1:focus{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkom8lu:focus{outline-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),useRootDisabledStyles$1=__styles({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo"},outline:{},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}"]}),useIconCheckedStyles=__styles({subtleOrTransparent:{sj55zd:"f1qj7y59"},highContrast:{ycbfsm:"fg4l7m0"}},{d:[".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),usePrimaryHighContrastStyles=__styles({base:{Bsw6fvg:"f4lkoma",Bjwas2f:"f1bauw5b",Bn1d65q:["fbpknfk","fedl69w"],Bxeuatn:"f15s25nd",n51gp8:["fedl69w","fbpknfk"],Bbusuzp:"f1e4kh5",ycbfsm:"fg4l7m0"},disabled:{Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"]}},{m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1bauw5b{border-top-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbpknfk{border-right-color:ButtonBorder;}.fedl69w{border-left-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f15s25nd{border-bottom-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e4kh5{color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useToggleButtonStyles_unstable=eo=>{const to=useRootCheckedStyles(),no=useRootDisabledStyles$1(),io=useIconCheckedStyles(),so=usePrimaryHighContrastStyles(),{appearance:ao,checked:lo,disabled:uo,disabledFocusable:ho}=eo;return eo.root.className=mergeClasses(toggleButtonClassNames.root,ao==="primary"&&so.base,ao==="primary"&&(uo||ho)&&so.disabled,lo&&to.base,lo&&to.highContrast,ao&&lo&&to[ao],(uo||ho)&&no.base,ao&&(uo||ho)&&no[ao],eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(toggleButtonClassNames.icon,(ao==="subtle"||ao==="transparent")&&io.subtleOrTransparent&&io.highContrast,eo.icon.className)),useButtonStyles_unstable(eo),eo},FieldContext=reactExports.createContext(void 0);FieldContext.Provider;const useFieldContext_unstable=()=>reactExports.useContext(FieldContext);function useFieldControlProps_unstable(eo,to){return getFieldControlProps(useFieldContext_unstable(),eo,to)}function getFieldControlProps(eo,to,no){if(!eo)return to;to={...to};const{generatedControlId:io,hintId:so,labelFor:ao,labelId:lo,required:uo,validationMessageId:ho,validationState:go}=eo;if(io){var mo,yo;(yo=(mo=to).id)!==null&&yo!==void 0||(mo.id=io)}if(lo&&(!(no!=null&&no.supportsLabelFor)||ao!==to.id)){var So,_o,ko;(ko=(So=to)[_o="aria-labelledby"])!==null&&ko!==void 0||(So[_o]=lo)}if((ho||so)&&(to["aria-describedby"]=[ho,so,to==null?void 0:to["aria-describedby"]].filter(Boolean).join(" ")),go==="error"){var Co,$o,Ro;(Ro=(Co=to)[$o="aria-invalid"])!==null&&Ro!==void 0||(Co[$o]=!0)}if(uo)if(no!=null&&no.supportsRequired){var Oo,No;(No=(Oo=to).required)!==null&&No!==void 0||(Oo.required=!0)}else{var Mo,Bo,Fo;(Fo=(Mo=to)[Bo="aria-required"])!==null&&Fo!==void 0||(Mo[Bo]=!0)}if(no!=null&&no.supportsSize){var Lo,Go;(Go=(Lo=to).size)!==null&&Go!==void 0||(Lo.size=eo.size)}return to}const useLabel_unstable=(eo,to)=>{const{disabled:no=!1,required:io=!1,weight:so="regular",size:ao="medium"}=eo;return{disabled:no,required:optional(io===!0?"*":io||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:so,size:ao,components:{root:"label",required:"span"},root:always(getIntrinsicElementProps("label",{ref:to,...eo}),{elementType:"label"})}},renderLabel_unstable=eo=>jsxs(eo.root,{children:[eo.root.children,eo.required&&jsx$1(eo.required,{})]}),labelClassNames={root:"fui-Label",required:"fui-Label__required"},useStyles$I=__styles({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),useLabelStyles_unstable=eo=>{const to=useStyles$I();return eo.root.className=mergeClasses(labelClassNames.root,to.root,eo.disabled&&to.disabled,to[eo.size],eo.weight==="semibold"&&to.semibold,eo.root.className),eo.required&&(eo.required.className=mergeClasses(labelClassNames.required,to.required,eo.disabled&&to.requiredDisabled,eo.required.className)),eo},Label=reactExports.forwardRef((eo,to)=>{const no=useLabel_unstable(eo,to);return useLabelStyles_unstable(no),useCustomStyleHook("useLabelStyles_unstable")(no),renderLabel_unstable(no)});Label.displayName="Label";const useCheckbox_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:no=!1,required:io,shape:so="square",size:ao="medium",labelPosition:lo="after",onChange:uo}=eo,[ho,go]=useControllableState({defaultState:eo.defaultChecked,state:eo.checked,initialState:!1}),mo=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),yo=ho==="mixed",So=useId$1("checkbox-",mo.primary.id);let _o;yo?so==="circular"?_o=reactExports.createElement(CircleFilled,null):_o=ao==="large"?reactExports.createElement(Square16Filled,null):reactExports.createElement(Square12Filled,null):ho&&(_o=ao==="large"?reactExports.createElement(Checkmark16Filled,null):reactExports.createElement(Checkmark12Filled,null));const ko={shape:so,checked:ho,disabled:no,size:ao,labelPosition:lo,components:{root:"span",input:"input",indicator:"div",label:Label},root:always(eo.root,{defaultProps:{ref:useFocusWithin(),...mo.root},elementType:"span"}),input:always(eo.input,{defaultProps:{type:"checkbox",id:So,ref:to,checked:ho===!0,...mo.primary},elementType:"input"}),label:optional(eo.label,{defaultProps:{htmlFor:So,disabled:no,required:io,size:"medium"},elementType:Label}),indicator:optional(eo.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:_o},elementType:"div"})};ko.input.onChange=useEventCallback$3($o=>{const Ro=$o.currentTarget.indeterminate?"mixed":$o.currentTarget.checked;uo==null||uo($o,{checked:Ro}),go(Ro)});const Co=useMergedRefs$1(ko.input.ref);return ko.input.ref=Co,useIsomorphicLayoutEffect$1(()=>{Co.current&&(Co.current.indeterminate=yo)},[Co,yo]),ko},renderCheckbox_unstable=eo=>jsxs(eo.root,{children:[jsx$1(eo.input,{}),eo.labelPosition==="before"&&eo.label&&jsx$1(eo.label,{}),jsx$1(eo.indicator,{}),eo.labelPosition==="after"&&eo.label&&jsx$1(eo.label,{})]}),checkboxClassNames={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},useRootBaseClassName$2=__resetStyles("r10zo65y","rpa3v06",{r:[".r10zo65y{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r10zo65y:focus{outline-style:none;}",".r10zo65y:focus-visible{outline-style:none;}",".r10zo65y[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r10zo65y[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rpa3v06{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".rpa3v06:focus{outline-style:none;}",".rpa3v06:focus-visible{outline-style:none;}",".rpa3v06[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rpa3v06[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r10zo65y[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rpa3v06[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useRootStyles$9=__styles({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",Bbusuzp:"f1dcs8yz",mrqfp9:"fxb3eh3"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxb3eh3{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useInputBaseClassName$2=__resetStyles("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),useInputStyles$3=__styles({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),useIndicatorBaseClassName$2=__resetStyles("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),useIndicatorStyles$1=__styles({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}"]}),useLabelStyles$3=__styles({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),useCheckboxStyles_unstable=eo=>{const{checked:to,disabled:no,labelPosition:io,shape:so,size:ao}=eo,lo=useRootBaseClassName$2(),uo=useRootStyles$9();eo.root.className=mergeClasses(checkboxClassNames.root,lo,no?uo.disabled:to==="mixed"?uo.mixed:to?uo.checked:uo.unchecked,eo.root.className);const ho=useInputBaseClassName$2(),go=useInputStyles$3();eo.input.className=mergeClasses(checkboxClassNames.input,ho,ao==="large"&&go.large,go[io],eo.input.className);const mo=useIndicatorBaseClassName$2(),yo=useIndicatorStyles$1();eo.indicator&&(eo.indicator.className=mergeClasses(checkboxClassNames.indicator,mo,ao==="large"&&yo.large,so==="circular"&&yo.circular,eo.indicator.className));const So=useLabelStyles$3();return eo.label&&(eo.label.className=mergeClasses(checkboxClassNames.label,So.base,So[ao],So[io],eo.label.className)),eo},Checkbox$2=reactExports.forwardRef((eo,to)=>{const no=useCheckbox_unstable(eo,to);return useCheckboxStyles_unstable(no),useCustomStyleHook("useCheckboxStyles_unstable")(no),renderCheckbox_unstable(no)});Checkbox$2.displayName="Checkbox";const ComboboxContext=createContext({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});ComboboxContext.Provider;const ListboxContext=createContext({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});ListboxContext.Provider;function useComboboxContextValues(eo){const{activeOption:to,appearance:no,focusVisible:io,open:so,registerOption:ao,selectedOptions:lo,selectOption:uo,setActiveOption:ho,setOpen:go,size:mo}=eo;return{combobox:{activeOption:to,appearance:no,focusVisible:io,open:so,registerOption:ao,selectedOptions:lo,selectOption:uo,setActiveOption:ho,setOpen:go,size:mo}}}function useListboxContextValues(eo){const to=useHasParentContext(ComboboxContext),{activeOption:no,focusVisible:io,multiselect:so,registerOption:ao,selectedOptions:lo,selectOption:uo,setActiveOption:ho}=eo,go=useContextSelector(ComboboxContext,So=>So.registerOption);return{listbox:{activeOption:no,focusVisible:io,multiselect:so,registerOption:to?go:ao,selectedOptions:lo,selectOption:uo,setActiveOption:ho}}}function getDropdownActionFromKey(eo,to={}){const{open:no=!0,multiselect:io=!1}=to,so=eo.key,{altKey:ao,ctrlKey:lo,key:uo,metaKey:ho}=eo;return uo.length===1&&so!==Space&&!ao&&!lo&&!ho?"Type":no?so===ArrowUp&&ao||so===Enter||!io&&so===Space?"CloseSelect":io&&so===Space?"Select":so===Escape$1?"Close":so===ArrowDown?"Next":so===ArrowUp?"Previous":so===Home?"First":so===End?"Last":so===PageUp?"PageUp":so===PageDown?"PageDown":so===Tab$2?"Tab":"None":so===ArrowDown||so===ArrowUp||so===Enter||so===Space?"Open":"None"}function getIndexFromAction(eo,to,no){switch(eo){case"Next":return Math.min(no,to+1);case"Previous":return Math.max(0,to-1);case"First":return 0;case"Last":return no;case"PageDown":return Math.min(no,to+10);case"PageUp":return Math.max(0,to-10);default:return to}}const useOptionCollection=()=>{const eo=reactExports.useRef([]),to=reactExports.useMemo(()=>({getCount:()=>eo.current.length,getOptionAtIndex:go=>{var mo;return(mo=eo.current[go])===null||mo===void 0?void 0:mo.option},getIndexOfId:go=>eo.current.findIndex(mo=>mo.option.id===go),getOptionById:go=>{const mo=eo.current.find(yo=>yo.option.id===go);return mo==null?void 0:mo.option},getOptionsMatchingText:go=>eo.current.filter(mo=>go(mo.option.text)).map(mo=>mo.option),getOptionsMatchingValue:go=>eo.current.filter(mo=>go(mo.option.value)).map(mo=>mo.option)}),[]),no=reactExports.useCallback((io,so)=>{var ao;const lo=eo.current.findIndex(uo=>!uo.element||!so?!1:uo.option.id===io.id?!0:uo.element.compareDocumentPosition(so)&Node.DOCUMENT_POSITION_PRECEDING);if(((ao=eo.current[lo])===null||ao===void 0?void 0:ao.option.id)!==io.id){const uo={element:so,option:io};lo===-1?eo.current=[...eo.current,uo]:eo.current.splice(lo,0,uo)}return()=>{eo.current=eo.current.filter(uo=>uo.option.id!==io.id)}},[]);return{...to,options:eo.current.map(io=>io.option),registerOption:no}};function useScrollOptionsIntoView(eo){const{activeOption:to}=eo,no=reactExports.useRef(null);return reactExports.useEffect(()=>{if(no.current&&to&&canUseDOM$3()){const io=no.current.querySelector(`#${to.id}`);if(!io)return;const{offsetHeight:so,offsetTop:ao}=io,{offsetHeight:lo,scrollTop:uo}=no.current,ho=aouo+lo,mo=2;ho?no.current.scrollTo(0,ao-mo):go&&no.current.scrollTo(0,ao-lo+so+mo)}},[to]),no}const useSelection=eo=>{const{defaultSelectedOptions:to,multiselect:no,onOptionSelect:io}=eo,[so,ao]=useControllableState({state:eo.selectedOptions,defaultState:to,initialState:[]}),lo=reactExports.useCallback((ho,go)=>{if(go.disabled)return;let mo=[go.value];if(no){const yo=so.findIndex(So=>So===go.value);yo>-1?mo=[...so.slice(0,yo),...so.slice(yo+1)]:mo=[...so,go.value]}ao(mo),io==null||io(ho,{optionValue:go.value,optionText:go.text,selectedOptions:mo})},[io,no,so,ao]);return{clearSelection:ho=>{ao([]),io==null||io(ho,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:lo,selectedOptions:so}},useListbox_unstable=(eo,to)=>{const{multiselect:no}=eo,io=useOptionCollection(),{getCount:so,getOptionAtIndex:ao,getIndexOfId:lo}=io,{clearSelection:uo,selectedOptions:ho,selectOption:go}=useSelection(eo),[mo,yo]=reactExports.useState(),[So,_o]=reactExports.useState(!1),ko=Do=>{const Uo=getDropdownActionFromKey(Do,{open:!0}),Ho=so()-1,Yo=mo?lo(mo.id):-1;let qo=Yo;switch(Uo){case"Select":case"CloseSelect":mo&&go(Do,mo);break;default:qo=getIndexFromAction(Uo,Yo,Ho)}qo!==Yo&&(Do.preventDefault(),yo(ao(qo)),_o(!0))},Co=Do=>{_o(!1)},$o=useHasParentContext(ComboboxContext),Ro=useContextSelector(ComboboxContext,Do=>Do.activeOption),Oo=useContextSelector(ComboboxContext,Do=>Do.focusVisible),No=useContextSelector(ComboboxContext,Do=>Do.selectedOptions),Mo=useContextSelector(ComboboxContext,Do=>Do.selectOption),Bo=useContextSelector(ComboboxContext,Do=>Do.setActiveOption),Fo=$o?{activeOption:Ro,focusVisible:Oo,selectedOptions:No,selectOption:Mo,setActiveOption:Bo}:{activeOption:mo,focusVisible:So,selectedOptions:ho,selectOption:go,setActiveOption:yo},Lo={components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,role:no?"menu":"listbox","aria-activedescendant":$o||mo==null?void 0:mo.id,"aria-multiselectable":no,tabIndex:0,...eo}),{elementType:"div"}),multiselect:no,clearSelection:uo,...io,...Fo},Go=useScrollOptionsIntoView(Lo);return Lo.root.ref=useMergedRefs$1(Lo.root.ref,Go),Lo.root.onKeyDown=useEventCallback$3(mergeCallbacks(Lo.root.onKeyDown,ko)),Lo.root.onMouseOver=useEventCallback$3(mergeCallbacks(Lo.root.onMouseOver,Co)),Lo},renderListbox_unstable=(eo,to)=>jsx$1(ListboxContext.Provider,{value:to.listbox,children:jsx$1(eo.root,{})}),listboxClassNames={root:"fui-Listbox"},useStyles$H=__styles({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),useListboxStyles_unstable=eo=>{const to=useStyles$H();return eo.root.className=mergeClasses(listboxClassNames.root,to.root,eo.root.className),eo},Listbox$1=reactExports.forwardRef((eo,to)=>{const no=useListbox_unstable(eo,to),io=useListboxContextValues(no);return useListboxStyles_unstable(no),useCustomStyleHook("useListboxStyles_unstable")(no),renderListbox_unstable(no,io)});Listbox$1.displayName="Listbox";function getTextString(eo,to){if(eo!==void 0)return eo;let no="",io=!1;return reactExports.Children.forEach(to,so=>{typeof so=="string"?no+=so:io=!0}),io&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),no}const useOption_unstable=(eo,to)=>{const{children:no,disabled:io,text:so,value:ao}=eo,lo=reactExports.useRef(null),uo=getTextString(so,no),ho=ao??uo,go=useId$1("fluent-option",eo.id),mo=reactExports.useMemo(()=>({id:go,disabled:io,text:uo,value:ho}),[go,io,uo,ho]),yo=useContextSelector(ListboxContext,Fo=>Fo.focusVisible),So=useContextSelector(ListboxContext,Fo=>Fo.multiselect),_o=useContextSelector(ListboxContext,Fo=>Fo.registerOption),ko=useContextSelector(ListboxContext,Fo=>{const Lo=Fo.selectedOptions;return!!ho&&!!Lo.find(Go=>Go===ho)}),Co=useContextSelector(ListboxContext,Fo=>Fo.selectOption),$o=useContextSelector(ListboxContext,Fo=>Fo.setActiveOption),Ro=useContextSelector(ComboboxContext,Fo=>Fo.setOpen),Oo=useContextSelector(ListboxContext,Fo=>{var Lo,Go;return((Lo=Fo.activeOption)===null||Lo===void 0?void 0:Lo.id)!==void 0&&((Go=Fo.activeOption)===null||Go===void 0?void 0:Go.id)===go});let No=reactExports.createElement(CheckmarkFilled,null);So&&(No=ko?reactExports.createElement(Checkmark12Filled,null):"");const Mo=Fo=>{var Lo;if(io){Fo.preventDefault();return}$o(mo),So||Ro==null||Ro(Fo,!1),Co(Fo,mo),(Lo=eo.onClick)===null||Lo===void 0||Lo.call(eo,Fo)};reactExports.useEffect(()=>{if(go&&lo.current)return _o(mo,lo.current)},[go,mo,_o]);const Bo=So?{role:"menuitemcheckbox","aria-checked":ko}:{role:"option","aria-selected":ko};return{components:{root:"div",checkIcon:"span"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,lo),"aria-disabled":io?"true":void 0,id:go,...Bo,...eo,onClick:Mo}),{elementType:"div"}),checkIcon:optional(eo.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:No},elementType:"span"}),active:Oo,disabled:io,focusVisible:yo,multiselect:So,selected:ko}},renderOption_unstable=eo=>jsxs(eo.root,{children:[eo.checkIcon&&jsx$1(eo.checkIcon,{}),eo.root.children]}),optionClassNames={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},useStyles$G=__styles({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",ecr2s2:"fb40n2d"},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",ecr2s2:"fgj9um3",Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useOptionStyles_unstable=eo=>{const{active:to,disabled:no,focusVisible:io,multiselect:so,selected:ao}=eo,lo=useStyles$G();return eo.root.className=mergeClasses(optionClassNames.root,lo.root,to&&io&&lo.active,no&&lo.disabled,ao&&lo.selected,eo.root.className),eo.checkIcon&&(eo.checkIcon.className=mergeClasses(optionClassNames.checkIcon,lo.checkIcon,so&&lo.multiselectCheck,ao&&lo.selectedCheck,ao&&so&&lo.selectedMultiselectCheck,no&&lo.checkDisabled,eo.checkIcon.className)),eo},Option$3=reactExports.forwardRef((eo,to)=>{const no=useOption_unstable(eo,to);return useOptionStyles_unstable(no),useCustomStyleHook("useOptionStyles_unstable")(no),renderOption_unstable(no)});Option$3.displayName="Option";const useComboboxBaseState=eo=>{const{appearance:to="outline",children:no,editable:io=!1,inlinePopup:so=!1,mountNode:ao=void 0,multiselect:lo,onOpenChange:uo,size:ho="medium"}=eo,go=useOptionCollection(),{getOptionAtIndex:mo,getOptionsMatchingValue:yo}=go,[So,_o]=reactExports.useState(),[ko,Co]=reactExports.useState(!1),[$o,Ro]=reactExports.useState(!1),Oo=reactExports.useRef(!1),No=useSelection(eo),{selectedOptions:Mo}=No,Bo=useFirstMount(),[Fo,Lo]=useControllableState({state:eo.value,initialState:void 0}),Go=reactExports.useMemo(()=>{if(Fo!==void 0)return Fo;if(Bo&&eo.defaultValue!==void 0)return eo.defaultValue;const Yo=yo(qo=>Mo.includes(qo)).map(qo=>qo.text);return lo?io?"":Yo.join(", "):Yo[0]},[Fo,io,yo,lo,eo.defaultValue,Mo]),[Do,Uo]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1}),Ho=reactExports.useCallback((Yo,qo)=>{uo==null||uo(Yo,{open:qo}),Uo(qo)},[uo,Uo]);return reactExports.useEffect(()=>{if(Do&&!So)if(!lo&&Mo.length>0){const Yo=yo(qo=>qo===Mo[0]).pop();Yo&&_o(Yo)}else _o(mo(0));else Do||_o(void 0)},[Do,no]),{...go,...No,activeOption:So,appearance:to,focusVisible:ko,hasFocus:$o,ignoreNextBlur:Oo,inlinePopup:so,mountNode:ao,open:Do,setActiveOption:_o,setFocusVisible:Co,setHasFocus:Ro,setOpen:Ho,setValue:Lo,size:ho,value:Go,multiselect:lo}};function useComboboxPositioning(eo){const{positioning:to}=eo,io={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...resolvePositioningShorthand(to)},{targetRef:so,containerRef:ao}=usePositioning(io);return[ao,so]}function useListboxSlot(eo,to,no){const{state:{multiselect:io},triggerRef:so,defaultProps:ao}=no,lo=useId$1("fluent-listbox",isResolvedShorthand(eo)?eo.id:void 0),uo=optional(eo,{renderByDefault:!0,elementType:Listbox$1,defaultProps:{id:lo,multiselect:io,tabIndex:void 0,...ao}}),ho=useEventCallback$3(mergeCallbacks(yo=>{yo.preventDefault()},uo==null?void 0:uo.onMouseDown)),go=useEventCallback$3(mergeCallbacks(yo=>{var So;yo.preventDefault(),(So=so.current)===null||So===void 0||So.focus()},uo==null?void 0:uo.onClick)),mo=useMergedRefs$1(uo==null?void 0:uo.ref,to);return uo&&(uo.ref=mo,uo.onMouseDown=ho,uo.onClick=go),uo}function useTriggerSlot(eo,to,no){const{state:{activeOption:io,getCount:so,getIndexOfId:ao,getOptionAtIndex:lo,open:uo,selectOption:ho,setActiveOption:go,setFocusVisible:mo,setOpen:yo,multiselect:So},defaultProps:_o,elementType:ko}=no,Co=always(eo,{defaultProps:{type:"text","aria-expanded":uo,"aria-activedescendant":uo?io==null?void 0:io.id:void 0,role:"combobox",...typeof _o=="object"&&_o},elementType:ko}),$o=reactExports.useRef(null);return Co.ref=useMergedRefs$1($o,Co.ref,to),Co.onBlur=mergeCallbacks(Ro=>{yo(Ro,!1)},Co.onBlur),Co.onClick=mergeCallbacks(Ro=>{yo(Ro,!uo)},Co.onClick),Co.onKeyDown=mergeCallbacks(Ro=>{const Oo=getDropdownActionFromKey(Ro,{open:uo,multiselect:So}),No=so()-1,Mo=io?ao(io.id):-1;let Bo=Mo;switch(Oo){case"Open":Ro.preventDefault(),mo(!0),yo(Ro,!0);break;case"Close":Ro.stopPropagation(),Ro.preventDefault(),yo(Ro,!1);break;case"CloseSelect":!So&&!(io!=null&&io.disabled)&&yo(Ro,!1);case"Select":io&&ho(Ro,io),Ro.preventDefault();break;case"Tab":!So&&io&&ho(Ro,io);break;default:Bo=getIndexFromAction(Oo,Mo,No)}Bo!==Mo&&(Ro.preventDefault(),go(lo(Bo)),mo(!0))},Co.onKeyDown),Co.onMouseOver=mergeCallbacks(Ro=>{mo(!1)},Co.onMouseOver),Co}function useInputTriggerSlot(eo,to,no){const{state:{open:io,value:so,activeOption:ao,selectOption:lo,setValue:uo,setActiveOption:ho,setFocusVisible:go,multiselect:mo,selectedOptions:yo,clearSelection:So,getOptionsMatchingText:_o,getIndexOfId:ko,setOpen:Co},freeform:$o,defaultProps:Ro}=no,Oo=Ho=>{!io&&!$o&&(so&&ao&&so.trim().toLowerCase()===(ao==null?void 0:ao.text.toLowerCase())&&lo(Ho,ao),uo(void 0))},No=Ho=>{const Yo=Ho==null?void 0:Ho.trim().toLowerCase();if(!Yo||Yo.length===0)return;const Jo=_o(Qo=>Qo.toLowerCase().indexOf(Yo)===0);if(Jo.length>1&&ao){const Qo=ko(ao.id),hs=Jo.find(gs=>ko(gs.id)>=Qo);return hs??Jo[0]}var ps;return(ps=Jo[0])!==null&&ps!==void 0?ps:void 0},Mo=Ho=>{const Yo=Ho.target.value;uo(Yo);const qo=No(Yo);ho(qo),go(!0),!mo&&yo.length===1&&(Yo.length<1||!qo)&&So(Ho)},Bo=useTriggerSlot(eo,to,{state:no.state,defaultProps:Ro,elementType:"input"});Bo.onChange=mergeCallbacks(Bo.onChange,Mo),Bo.onBlur=mergeCallbacks(Bo.onBlur,Oo);const[Fo,Lo]=reactExports.useState(!1),Go=reactExports.useRef(!1),Do=Bo.onKeyDown,Uo=useEventCallback$3(Ho=>{!io&&getDropdownActionFromKey(Ho)==="Type"&&Co(Ho,!0),Ho.key===ArrowLeft||Ho.key===ArrowRight?Lo(!0):Lo(!1);const Yo=getDropdownActionFromKey(Ho,{open:io,multiselect:mo});if(Yo==="Type"?Go.current=!0:(Yo==="Open"&&Ho.key!==" "||Yo==="Next"||Yo==="Previous"||Yo==="First"||Yo==="Last"||Yo==="PageUp"||Yo==="PageDown")&&(Go.current=!1),$o&&(Go.current||!io)&&Ho.key===" "){var qo;eo==null||(qo=eo.onKeyDown)===null||qo===void 0||qo.call(eo,Ho);return}Do==null||Do(Ho)});return Bo.onKeyDown=Uo,Fo&&(Bo["aria-activedescendant"]=void 0),Bo}const useCombobox_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const no=useComboboxBaseState({...eo,editable:!0}),{open:io,selectOption:so,setOpen:ao,setValue:lo,value:uo}=no,[ho,go]=useComboboxPositioning(eo),{disabled:mo,freeform:yo,inlinePopup:So}=eo,_o=useId$1("combobox-"),{primary:ko,root:Co}=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["children","size"]});no.selectOption=(Do,Uo)=>{lo(void 0),so(Do,Uo)},no.setOpen=(Do,Uo)=>{mo||(!Uo&&!yo&&lo(void 0),ao(Do,Uo))};const $o=reactExports.useRef(null),Ro=useListboxSlot(eo.listbox,ho,{state:no,triggerRef:$o,defaultProps:{children:eo.children}});var Oo;const No=useInputTriggerSlot((Oo=eo.input)!==null&&Oo!==void 0?Oo:{},useMergedRefs$1($o,to),{state:no,freeform:yo,defaultProps:{type:"text",value:uo??"",...ko}}),Mo=always(eo.root,{defaultProps:{"aria-owns":!So&&io?Ro==null?void 0:Ro.id:void 0,...Co},elementType:"div"});Mo.ref=useMergedRefs$1(Mo.ref,go);const Bo={components:{root:"div",input:"input",expandIcon:"span",listbox:Listbox$1},root:Mo,input:No,listbox:io?Ro:void 0,expandIcon:optional(eo.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":io,children:reactExports.createElement(ChevronDownRegular,null),role:"button"},elementType:"span"}),...no},{onMouseDown:Fo}=Bo.expandIcon||{},Lo=useEventCallback$3(mergeCallbacks(Fo,Do=>{var Uo;Do.preventDefault(),Bo.setOpen(Do,!Bo.open),(Uo=$o.current)===null||Uo===void 0||Uo.focus()}));if(Bo.expandIcon){Bo.expandIcon.onMouseDown=Lo;const Do=Bo.expandIcon["aria-label"]||Bo.expandIcon["aria-labelledby"],Uo="Open";if(!Do)if(eo["aria-labelledby"]){var Go;const Ho=(Go=Bo.expandIcon.id)!==null&&Go!==void 0?Go:`${_o}-chevron`,Yo=`${Ho} ${Bo.input["aria-labelledby"]}`;Bo.expandIcon["aria-label"]=Uo,Bo.expandIcon.id=Ho,Bo.expandIcon["aria-labelledby"]=Yo}else eo["aria-label"]?Bo.expandIcon["aria-label"]=`${Uo} ${eo["aria-label"]}`:Bo.expandIcon["aria-label"]=Uo}return Bo},renderCombobox_unstable=(eo,to)=>jsx$1(eo.root,{children:jsxs(ComboboxContext.Provider,{value:to.combobox,children:[jsx$1(eo.input,{}),eo.expandIcon&&jsx$1(eo.expandIcon,{}),eo.listbox&&(eo.inlinePopup?jsx$1(eo.listbox,{}):jsx$1(Portal$1,{mountNode:eo.mountNode,children:jsx$1(eo.listbox,{})}))]})}),comboboxClassNames={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",listbox:"fui-Combobox__listbox"},useStyles$F=__styles({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),useInputStyles$2=__styles({input:{De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bqenvij:"f50nw0v",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bqenvij:"f1tvdnth",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1e60jzv","f135dnwl"]},large:{Bqenvij:"f1ihhdec",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["fnphzt9","flt1dlf"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f50nw0v{height:22px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1tvdnth{height:30px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1ihhdec{height:38px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),useIconStyles$4=__styles({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),useComboboxStyles_unstable=eo=>{const{appearance:to,open:no,size:io}=eo,so=`${eo.input["aria-invalid"]}`=="true",ao=eo.input.disabled,lo=useStyles$F(),uo=useIconStyles$4(),ho=useInputStyles$2();return eo.root.className=mergeClasses(comboboxClassNames.root,lo.root,lo[to],lo[io],!ao&&to==="outline"&&lo.outlineInteractive,so&&to!=="underline"&&lo.invalid,so&&to==="underline"&&lo.invalidUnderline,ao&&lo.disabled,eo.root.className),eo.input.className=mergeClasses(comboboxClassNames.input,ho.input,ho[io],ao&&ho.disabled,eo.input.className),eo.listbox&&(eo.listbox.className=mergeClasses(comboboxClassNames.listbox,lo.listbox,!no&&lo.listboxCollapsed,eo.listbox.className)),eo.expandIcon&&(eo.expandIcon.className=mergeClasses(comboboxClassNames.expandIcon,uo.icon,uo[io],ao&&uo.disabled,eo.expandIcon.className)),eo},Combobox=reactExports.forwardRef((eo,to)=>{const no=useCombobox_unstable(eo,to),io=useComboboxContextValues(no);return useComboboxStyles_unstable(no),useCustomStyleHook("useComboboxStyles_unstable")(no),renderCombobox_unstable(no,io)});Combobox.displayName="Combobox";const useOptionGroup_unstable=(eo,to)=>{const no=useId$1("group-label"),{label:io}=eo;return{components:{root:"div",label:"span"},root:always(getIntrinsicElementProps("div",{ref:to,role:"group","aria-labelledby":io?no:void 0,...eo}),{elementType:"div"}),label:optional(io,{defaultProps:{id:no,role:"presentation"},elementType:"span"})}},renderOptionGroup_unstable=eo=>jsxs(eo.root,{children:[eo.label&&jsx$1(eo.label,{children:eo.label.children}),eo.root.children]}),optionGroupClassNames={root:"fui-OptionGroup",label:"fui-OptionGroup__label"},useStyles$E=__styles({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Belr9w4:"fiut8dr",B8lkq7l:"f1xxzjds",Gwp8xu:"fu19d3i",H93o2g:"flylvvz",eii1in:"f1ug5m11",om0q45:"f5642y",Hl9o3s:"ffdf81h",Bi9x0x4:"flgyru6",B0i58d9:["f1fjgumo","f1sgo0dv"],sl1c2c:"fwsdxdw",z4hxbw:["f1sgo0dv","f1fjgumo"]},label:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f11d4kpn",mc9l5x:"ftgm304",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm",z8tnut:"f17mpqex",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fdvome7",uwmqm3:["fk8j09s","fdw0yi8"]}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}",'.f1xxzjds:not(:last-child)::after{content:"";}',".fu19d3i:not(:last-child)::after{border-bottom-width:var(--strokeWidthThin);}",".flylvvz:not(:last-child)::after{border-bottom-style:solid;}",".f1ug5m11:not(:last-child)::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5642y:not(:last-child)::after{display:block;}",".ffdf81h:not(:last-child)::after{padding-bottom:var(--spacingHorizontalXS);}",".flgyru6:not(:last-child)::after{margin-top:0;}",".f1fjgumo:not(:last-child)::after{margin-right:calc(var(--spacingHorizontalXS) * -1);}",".f1sgo0dv:not(:last-child)::after{margin-left:calc(var(--spacingHorizontalXS) * -1);}",".fwsdxdw:not(:last-child)::after{margin-bottom:var(--spacingVerticalXS);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".ftgm304{display:block;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mpqex{padding-top:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdvome7{padding-bottom:var(--spacingHorizontalS);}"]}),useOptionGroupStyles_unstable=eo=>{const to=useStyles$E();return eo.root.className=mergeClasses(optionGroupClassNames.root,to.root,eo.root.className),eo.label&&(eo.label.className=mergeClasses(optionGroupClassNames.label,to.label,eo.label.className)),eo},OptionGroup=reactExports.forwardRef((eo,to)=>{const no=useOptionGroup_unstable(eo,to);return useOptionGroupStyles_unstable(no),useCustomStyleHook("useOptionGroupStyles_unstable")(no),renderOptionGroup_unstable(no)});OptionGroup.displayName="OptionGroup";const renderDivider_unstable=eo=>jsx$1(eo.root,{children:eo.root.children!==void 0&&jsx$1(eo.wrapper,{children:eo.root.children})}),useDivider_unstable=(eo,to)=>{const{alignContent:no="center",appearance:io="default",inset:so=!1,vertical:ao=!1,wrapper:lo}=eo,uo=useId$1("divider-");return{alignContent:no,appearance:io,inset:so,vertical:ao,components:{root:"div",wrapper:"div"},root:always(getIntrinsicElementProps("div",{role:"separator","aria-orientation":ao?"vertical":"horizontal","aria-labelledby":eo.children?uo:void 0,...eo,ref:to}),{elementType:"div"}),wrapper:always(lo,{defaultProps:{id:uo,children:eo.children},elementType:"div"})}},dividerClassNames={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},useBaseStyles$4=__styles({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),useHorizontalStyles=__styles({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),useVerticalStyles=__styles({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),useDividerStyles_unstable=eo=>{const to=useBaseStyles$4(),no=useHorizontalStyles(),io=useVerticalStyles(),{alignContent:so,appearance:ao,inset:lo,vertical:uo}=eo;return eo.root.className=mergeClasses(dividerClassNames.root,to.base,to[so],ao&&to[ao],!uo&&no.base,!uo&&lo&&no.inset,!uo&&no[so],uo&&io.base,uo&&lo&&io.inset,uo&&io[so],uo&&eo.root.children!==void 0&&io.withChildren,eo.root.children===void 0&&to.childless,eo.root.className),eo.wrapper&&(eo.wrapper.className=mergeClasses(dividerClassNames.wrapper,eo.wrapper.className)),eo},Divider$2=reactExports.forwardRef((eo,to)=>{const no=useDivider_unstable(eo,to);return useDividerStyles_unstable(no),useCustomStyleHook("useDividerStyles_unstable")(no),renderDivider_unstable(no)});Divider$2.displayName="Divider";const useInput_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const no=useOverrides();var io;const{size:so="medium",appearance:ao=(io=no.inputDefaultAppearance)!==null&&io!==void 0?io:"outline",onChange:lo}=eo,[uo,ho]=useControllableState({state:eo.value,defaultState:eo.defaultValue,initialState:""}),go=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),mo={size:so,appearance:ao,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:always(eo.input,{defaultProps:{type:"text",ref:to,...go.primary},elementType:"input"}),contentAfter:optional(eo.contentAfter,{elementType:"span"}),contentBefore:optional(eo.contentBefore,{elementType:"span"}),root:always(eo.root,{defaultProps:go.root,elementType:"span"})};return mo.input.value=uo,mo.input.onChange=useEventCallback$3(yo=>{const So=yo.target.value;lo==null||lo(yo,{value:So}),ho(So)}),mo},renderInput_unstable=eo=>jsxs(eo.root,{children:[eo.contentBefore&&jsx$1(eo.contentBefore,{}),jsx$1(eo.input,{}),eo.contentAfter&&jsx$1(eo.contentAfter,{})]}),inputClassNames={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},useRootClassName=__resetStyles("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),useRootStyles$8=__styles({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),useInputClassName=__resetStyles("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),useInputElementStyles=__styles({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),useContentClassName=__resetStyles("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),useContentStyles$1=__styles({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),useInputStyles_unstable=eo=>{const{size:to,appearance:no}=eo,io=eo.input.disabled,so=`${eo.input["aria-invalid"]}`=="true",ao=no.startsWith("filled"),lo=useRootStyles$8(),uo=useInputElementStyles(),ho=useContentStyles$1();eo.root.className=mergeClasses(inputClassNames.root,useRootClassName(),lo[to],lo[no],!io&&no==="outline"&&lo.outlineInteractive,!io&&no==="underline"&&lo.underlineInteractive,!io&&ao&&lo.filledInteractive,ao&&lo.filled,!io&&so&&lo.invalid,io&&lo.disabled,eo.root.className),eo.input.className=mergeClasses(inputClassNames.input,useInputClassName(),to==="large"&&uo.large,io&&uo.disabled,eo.input.className);const go=[useContentClassName(),io&&ho.disabled,ho[to]];return eo.contentBefore&&(eo.contentBefore.className=mergeClasses(inputClassNames.contentBefore,...go,eo.contentBefore.className)),eo.contentAfter&&(eo.contentAfter.className=mergeClasses(inputClassNames.contentAfter,...go,eo.contentAfter.className)),eo},Input=reactExports.forwardRef((eo,to)=>{const no=useInput_unstable(eo,to);return useInputStyles_unstable(no),useCustomStyleHook("useInputStyles_unstable")(no),renderInput_unstable(no)});Input.displayName="Input";const renderImage_unstable=eo=>jsx$1(eo.root,{}),useImage_unstable=(eo,to)=>{const{bordered:no=!1,fit:io="default",block:so=!1,shape:ao="square",shadow:lo=!1}=eo;return{bordered:no,fit:io,block:so,shape:ao,shadow:lo,components:{root:"img"},root:always(getIntrinsicElementProps("img",{ref:to,...eo}),{elementType:"img"})}},imageClassNames={root:"fui-Image"},useStyles$D=__styles({base:{g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"],B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0"},bordered:{icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"]},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},square:{},shadow:{E5pizo:"f1whvlc6"},center:{st4lth:"f1plgu50",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},contain:{st4lth:"f1kle4es",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},default:{},cover:{st4lth:"f1ps3kmd",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},none:{st4lth:"f1plgu50",Ermj5k:["f13uwng7","fjmyj0p"],Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},block:{a9b677:"fly5x3f"}},{d:[".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f1plgu50{object-fit:none;}",".f14xojzb{object-position:center;}",".f1l02sjl{height:100%;}",".fly5x3f{width:100%;}",".f1kle4es{object-fit:contain;}",".f1ps3kmd{object-fit:cover;}",".f13uwng7{object-position:left top;}",".fjmyj0p{object-position:right top;}"]}),useImageStyles_unstable=eo=>{const to=useStyles$D();eo.root.className=mergeClasses(imageClassNames.root,to.base,eo.block&&to.block,eo.bordered&&to.bordered,eo.shadow&&to.shadow,to[eo.fit],to[eo.shape],eo.root.className)},Image$2=reactExports.forwardRef((eo,to)=>{const no=useImage_unstable(eo,to);return useImageStyles_unstable(no),useCustomStyleHook("useImageStyles_unstable")(no),renderImage_unstable(no)});Image$2.displayName="Image";const useLinkState_unstable=eo=>{const{disabled:to,disabledFocusable:no}=eo,{onClick:io,onKeyDown:so,role:ao,tabIndex:lo}=eo.root;return eo.root.as==="a"&&(eo.root.href=to?void 0:eo.root.href,(to||no)&&(eo.root.role=ao||"link")),(eo.root.as==="a"||eo.root.as==="span")&&(eo.root.tabIndex=lo??(to&&!no?void 0:0)),eo.root.onClick=uo=>{to||no?uo.preventDefault():io==null||io(uo)},eo.root.onKeyDown=uo=>{(to||no)&&(uo.key===Enter||uo.key===Space)?(uo.preventDefault(),uo.stopPropagation()):so==null||so(uo)},eo.disabled=to||no,eo.root["aria-disabled"]=to||no||void 0,eo.root.as==="button"&&(eo.root.disabled=to&&!no),eo},useLink_unstable=(eo,to)=>{const no=useBackgroundAppearance(),{appearance:io="default",disabled:so=!1,disabledFocusable:ao=!1,inline:lo=!1}=eo,uo=eo.as||(eo.href?"a":"button"),ho={role:uo==="span"?"button":void 0,type:uo==="button"?"button":void 0,...eo,as:uo},go={appearance:io,disabled:so,disabledFocusable:ao,inline:lo,components:{root:uo},root:always(getIntrinsicElementProps(uo,{ref:to,...ho}),{elementType:uo}),backgroundAppearance:no};return useLinkState_unstable(go),go},linkClassNames={root:"fui-Link"},useStyles$C=__styles({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),useLinkStyles_unstable=eo=>{const to=useStyles$C(),{appearance:no,disabled:io,inline:so,root:ao,backgroundAppearance:lo}=eo;return eo.root.className=mergeClasses(linkClassNames.root,to.root,to.focusIndicator,ao.as==="a"&&ao.href&&to.href,ao.as==="button"&&to.button,no==="subtle"&&to.subtle,lo==="inverted"&&to.inverted,so&&to.inline,io&&to.disabled,eo.root.className),eo},renderLink_unstable=eo=>jsx$1(eo.root,{}),Link$1=reactExports.forwardRef((eo,to)=>{const no=useLink_unstable(eo,to);return useLinkStyles_unstable(no),renderLink_unstable(no)});Link$1.displayName="Link";const MenuContext$1=createContext(void 0),menuContextDefaultValue={open:!1,setOpen:()=>!1,checkedValues:{},onCheckedValueChange:()=>null,isSubmenu:!1,triggerRef:{current:null},menuPopoverRef:{current:null},mountNode:null,triggerId:"",openOnContext:!1,openOnHover:!1,hasIcons:!1,hasCheckmarks:!1,inline:!1,persistOnItemClick:!1},MenuProvider=MenuContext$1.Provider,useMenuContext_unstable=eo=>useContextSelector(MenuContext$1,(to=menuContextDefaultValue)=>eo(to)),MenuTriggerContext=reactExports.createContext(void 0),menuTriggerContextDefaultValue=!1,MenuTriggerContextProvider=MenuTriggerContext.Provider,useMenuTriggerContext_unstable=()=>{var eo;return(eo=reactExports.useContext(MenuTriggerContext))!==null&&eo!==void 0?eo:menuTriggerContextDefaultValue},MenuListContext=createContext(void 0),menuListContextDefaultValue={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},MenuListProvider=MenuListContext.Provider,useMenuListContext_unstable=eo=>useContextSelector(MenuListContext,(to=menuListContextDefaultValue)=>eo(to)),MENU_ENTER_EVENT="fuimenuenter",useOnMenuMouseEnter=eo=>{const{refs:to,callback:no,element:io,disabled:so}=eo,ao=useEventCallback$3(lo=>{const uo=to[0],ho=lo.target;var go;!elementContains$1((go=uo.current)!==null&&go!==void 0?go:null,ho)&&!so&&no(lo)});reactExports.useEffect(()=>{if(io!=null)return so||io.addEventListener(MENU_ENTER_EVENT,ao),()=>{io.removeEventListener(MENU_ENTER_EVENT,ao)}},[ao,io,so])},dispatchMenuEnterEvent=(eo,to)=>{eo.dispatchEvent(new CustomEvent(MENU_ENTER_EVENT,{bubbles:!0,detail:{nativeEvent:to}}))};function useIsSubmenu(){const eo=useMenuContext_unstable(no=>no.isSubmenu),to=useHasParentContext(MenuListContext);return eo||to}const submenuFallbackPositions=["after","after-bottom","before-top","before","before-bottom","above"],useMenu_unstable=eo=>{const to=useIsSubmenu(),{hoverDelay:no=500,inline:io=!1,hasCheckmarks:so=!1,hasIcons:ao=!1,closeOnScroll:lo=!1,openOnContext:uo=!1,persistOnItemClick:ho=!1,openOnHover:go=to,defaultCheckedValues:mo,mountNode:yo=null}=eo,So=useId$1("menu"),[_o,ko]=usePositioningMouseTarget(),Co={position:to?"after":"below",align:to?"top":"start",target:eo.openOnContext?_o:void 0,fallbackPositions:to?submenuFallbackPositions:void 0,...resolvePositioningShorthand(eo.positioning)},$o=reactExports.Children.toArray(eo.children);let Ro,Oo;$o.length===2?(Ro=$o[0],Oo=$o[1]):$o.length===1&&(Oo=$o[0]);const{targetRef:No,containerRef:Mo}=usePositioning(Co),[Bo,Fo]=useMenuOpenState({hoverDelay:no,isSubmenu:to,setContextTarget:ko,closeOnScroll:lo,menuPopoverRef:Mo,triggerRef:No,open:eo.open,defaultOpen:eo.defaultOpen,onOpenChange:eo.onOpenChange,openOnContext:uo}),[Lo,Go]=useMenuSelectableState({checkedValues:eo.checkedValues,defaultCheckedValues:mo,onCheckedValueChange:eo.onCheckedValueChange});return{inline:io,hoverDelay:no,triggerId:So,isSubmenu:to,openOnHover:go,contextTarget:_o,setContextTarget:ko,hasCheckmarks:so,hasIcons:ao,closeOnScroll:lo,menuTrigger:Ro,menuPopover:Oo,mountNode:yo,triggerRef:No,menuPopoverRef:Mo,components:{},openOnContext:uo,open:Bo,setOpen:Fo,checkedValues:Lo,onCheckedValueChange:Go,persistOnItemClick:ho}},useMenuSelectableState=eo=>{const[to,no]=useControllableState({state:eo.checkedValues,defaultState:eo.defaultCheckedValues,initialState:{}}),io=useEventCallback$3((so,{name:ao,checkedItems:lo})=>{var uo;(uo=eo.onCheckedValueChange)===null||uo===void 0||uo.call(eo,so,{name:ao,checkedItems:lo}),no(ho=>({...ho,[ao]:lo}))});return[to,io]},useMenuOpenState=eo=>{const{targetDocument:to}=useFluent(),no=useMenuContext_unstable(_o=>_o.setOpen),io=useEventCallback$3((_o,ko)=>{var Co;return(Co=eo.onOpenChange)===null||Co===void 0?void 0:Co.call(eo,_o,ko)}),so=reactExports.useRef(0),ao=reactExports.useRef(!1),[lo,uo]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1}),ho=useEventCallback$3((_o,ko)=>{const Co=_o instanceof CustomEvent&&_o.type===MENU_ENTER_EVENT?_o.detail.nativeEvent:_o;io==null||io(Co,{...ko}),ko.open&&_o.type==="contextmenu"&&eo.setContextTarget(_o),ko.open||eo.setContextTarget(void 0),ko.bubble&&no(_o,{...ko}),uo(ko.open)}),go=useEventCallback$3((_o,ko)=>{if(clearTimeout(so.current),!(_o instanceof Event)&&_o.persist&&_o.persist(),_o.type==="mouseleave"||_o.type==="mouseenter"||_o.type==="mousemove"||_o.type===MENU_ENTER_EVENT){var Co;!((Co=eo.triggerRef.current)===null||Co===void 0)&&Co.contains(_o.target)&&(ao.current=_o.type==="mouseenter"||_o.type==="mousemove"),so.current=setTimeout(()=>ho(_o,ko),eo.hoverDelay)}else ho(_o,ko)});useOnClickOutside({contains:elementContains$1,disabled:!lo,element:to,refs:[eo.menuPopoverRef,!eo.openOnContext&&eo.triggerRef].filter(Boolean),callback:_o=>go(_o,{open:!1,type:"clickOutside",event:_o})});const mo=eo.openOnContext||eo.closeOnScroll;useOnScrollOutside({contains:elementContains$1,element:to,callback:_o=>go(_o,{open:!1,type:"scrollOutside",event:_o}),refs:[eo.menuPopoverRef,!eo.openOnContext&&eo.triggerRef].filter(Boolean),disabled:!lo||!mo}),useOnMenuMouseEnter({element:to,callback:_o=>{ao.current||go(_o,{open:!1,type:"menuMouseEnter",event:_o})},disabled:!lo,refs:[eo.menuPopoverRef]}),reactExports.useEffect(()=>()=>{clearTimeout(so.current)},[]);const{findFirstFocusable:yo}=useFocusFinders(),So=reactExports.useCallback(()=>{const _o=yo(eo.menuPopoverRef.current);_o==null||_o.focus()},[yo,eo.menuPopoverRef]);return reactExports.useEffect(()=>{lo&&So()},[lo,So]),[lo,go]};function useMenuContextValues_unstable(eo){const{checkedValues:to,hasCheckmarks:no,hasIcons:io,inline:so,isSubmenu:ao,menuPopoverRef:lo,mountNode:uo,onCheckedValueChange:ho,open:go,openOnContext:mo,openOnHover:yo,persistOnItemClick:So,setOpen:_o,triggerId:ko,triggerRef:Co}=eo;return{menu:{checkedValues:to,hasCheckmarks:no,hasIcons:io,inline:so,isSubmenu:ao,menuPopoverRef:lo,mountNode:uo,onCheckedValueChange:ho,open:go,openOnContext:mo,openOnHover:yo,persistOnItemClick:So,setOpen:_o,triggerId:ko,triggerRef:Co}}}const renderMenu_unstable=(eo,to)=>reactExports.createElement(MenuProvider,{value:to.menu},eo.menuTrigger,eo.open&&eo.menuPopover),Menu=eo=>{const to=useMenu_unstable(eo),no=useMenuContextValues_unstable(to);return renderMenu_unstable(to,no)};Menu.displayName="Menu";const useCharacterSearch=(eo,to)=>{const no=useMenuListContext_unstable(so=>so.setFocusByFirstCharacter),{onKeyDown:io}=eo.root;return eo.root.onKeyDown=so=>{var ao;io==null||io(so),!(((ao=so.key)===null||ao===void 0?void 0:ao.length)>1)&&to.current&&(no==null||no(so,to.current))},eo},ChevronRightIcon=bundleIcon$1(ChevronRightFilled,ChevronRightRegular),ChevronLeftIcon=bundleIcon$1(ChevronLeftFilled,ChevronLeftRegular),useMenuItem_unstable=(eo,to)=>{const no=useMenuTriggerContext_unstable(),io=useMenuContext_unstable(Co=>Co.persistOnItemClick),{as:so="div",disabled:ao=!1,hasSubmenu:lo=no,persistOnClick:uo=io}=eo,ho=useMenuListContext_unstable(Co=>Co.hasIcons),go=useMenuListContext_unstable(Co=>Co.hasCheckmarks),mo=useMenuContext_unstable(Co=>Co.setOpen),{dir:yo}=useFluent(),So=reactExports.useRef(null),_o=reactExports.useRef(!1),ko={hasSubmenu:lo,disabled:ao,persistOnClick:uo,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span"},root:always(getIntrinsicElementProps(so,useARIAButtonProps(so,{role:"menuitem",...eo,disabled:!1,disabledFocusable:ao,ref:useMergedRefs$1(to,So),onKeyDown:useEventCallback$3(Co=>{var $o;($o=eo.onKeyDown)===null||$o===void 0||$o.call(eo,Co),!Co.isDefaultPrevented()&&(Co.key===Space||Co.key===Enter)&&(_o.current=!0)}),onMouseEnter:useEventCallback$3(Co=>{var $o,Ro;($o=So.current)===null||$o===void 0||$o.focus(),(Ro=eo.onMouseEnter)===null||Ro===void 0||Ro.call(eo,Co)}),onClick:useEventCallback$3(Co=>{var $o;!lo&&!uo&&(mo(Co,{open:!1,keyboard:_o.current,bubble:!0,type:"menuItemClick",event:Co}),_o.current=!1),($o=eo.onClick)===null||$o===void 0||$o.call(eo,Co)})})),{elementType:"div"}),icon:optional(eo.icon,{renderByDefault:ho,elementType:"span"}),checkmark:optional(eo.checkmark,{renderByDefault:go,elementType:"span"}),submenuIndicator:optional(eo.submenuIndicator,{renderByDefault:lo,defaultProps:{children:yo==="ltr"?reactExports.createElement(ChevronRightIcon,null):reactExports.createElement(ChevronLeftIcon,null)},elementType:"span"}),content:optional(eo.content,{renderByDefault:!!eo.children,defaultProps:{children:eo.children},elementType:"span"}),secondaryContent:optional(eo.secondaryContent,{elementType:"span"})};return useCharacterSearch(ko,So),ko},renderMenuItem_unstable=eo=>jsxs(eo.root,{children:[eo.checkmark&&jsx$1(eo.checkmark,{}),eo.icon&&jsx$1(eo.icon,{}),eo.content&&jsx$1(eo.content,{}),eo.secondaryContent&&jsx$1(eo.secondaryContent,{}),eo.submenuIndicator&&jsx$1(eo.submenuIndicator,{})]}),useStyles$B=__styles({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0"},rootChecked:{Bcdw1i0:"f1022m68"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".f1022m68{visibility:visible;}"]}),useCheckmarkStyles_unstable=eo=>{const to=useStyles$B();eo.checkmark&&(eo.checkmark.className=mergeClasses(to.root,eo.checked&&to.rootChecked,eo.checkmark.className))},menuItemClassNames={root:"fui-MenuItem",icon:"fui-MenuItem__icon",checkmark:"fui-MenuItem__checkmark",submenuIndicator:"fui-MenuItem__submenuIndicator",content:"fui-MenuItem__content",secondaryContent:"fui-MenuItem__secondaryContent"},useRootBaseStyles$4=__resetStyles("rpii7ln","rj2dzlr",{r:[".rpii7ln{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-right:var(--spacingVerticalSNudge);padding-left:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".rpii7ln:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rpii7ln:hover .fui-Icon-filled{display:inline;}",".rpii7ln:hover .fui-Icon-regular{display:none;}",".rpii7ln:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rpii7ln:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rpii7ln:focus{outline-style:none;}",".rpii7ln:focus-visible{outline-style:none;}",".rpii7ln[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rpii7ln[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rj2dzlr{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-left:var(--spacingVerticalSNudge);padding-right:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".rj2dzlr:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rj2dzlr:hover .fui-Icon-filled{display:inline;}",".rj2dzlr:hover .fui-Icon-regular{display:none;}",".rj2dzlr:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rj2dzlr:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rj2dzlr:focus{outline-style:none;}",".rj2dzlr:focus-visible{outline-style:none;}",".rj2dzlr[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rj2dzlr[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rpii7ln[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rj2dzlr[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useContentBaseStyles=__resetStyles("r1ls86vo","rpbc5dr",[".r1ls86vo{padding-left:2px;padding-right:2px;background-color:transparent;flex-grow:1;}",".rpbc5dr{padding-right:2px;padding-left:2px;background-color:transparent;flex-grow:1;}"]),useSecondaryContentBaseStyles=__resetStyles("r79npjw","r1j24c7y",[".r79npjw{padding-left:2px;padding-right:2px;color:var(--colorNeutralForeground3);}",".r79npjw:hover{color:var(--colorNeutralForeground3Hover);}",".r79npjw:focus{color:var(--colorNeutralForeground3Hover);}",".r1j24c7y{padding-right:2px;padding-left:2px;color:var(--colorNeutralForeground3);}",".r1j24c7y:hover{color:var(--colorNeutralForeground3Hover);}",".r1j24c7y:focus{color:var(--colorNeutralForeground3Hover);}"]),useIconBaseStyles$2=__resetStyles("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),useSubmenuIndicatorBaseStyles=__resetStyles("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),useStyles$A=__styles({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},disabled:{sj55zd:"f1s2aq7o",Bi91k9c:"fvgxktp",Jwef8y:"f1ijtazh",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bg7n49j:"f1q1x1ba",t0hwav:"ft33916",Bbusuzp:"f1dcs8yz",ze5xyy:"f1kc2mi9",Bctn1xl:"fk56vqo",Bh6z0a4:"f1ikwg0d"}},{d:[".fmnzpld{margin-top:2px;}",".fqerorx{flex-grow:1;}",".f1ozlkrg{border-top-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",'.f1wl9k8s::before{content:"";}',".f1yn80uh::before{width:var(--strokeWidthThin);}",".f68mna0::before{height:24px;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],h:[".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ijtazh:hover{background-color:var(--colorNeutralBackground1);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1q1x1ba:hover .fui-MenuItem__icon{color:var(--colorNeutralForegroundDisabled);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk56vqo:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ikwg0d:focus{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useMenuItemStyles_unstable=eo=>{const to=useStyles$A(),no=useRootBaseStyles$4(),io=useContentBaseStyles(),so=useSecondaryContentBaseStyles(),ao=useIconBaseStyles$2(),lo=useSubmenuIndicatorBaseStyles();eo.root.className=mergeClasses(menuItemClassNames.root,no,eo.disabled&&to.disabled,eo.root.className),eo.content&&(eo.content.className=mergeClasses(menuItemClassNames.content,io,eo.content.className)),eo.checkmark&&(eo.checkmark.className=mergeClasses(menuItemClassNames.checkmark,to.checkmark,eo.checkmark.className)),eo.secondaryContent&&(eo.secondaryContent.className=mergeClasses(menuItemClassNames.secondaryContent,!eo.disabled&&so,eo.secondaryContent.className)),eo.icon&&(eo.icon.className=mergeClasses(menuItemClassNames.icon,ao,eo.icon.className)),eo.submenuIndicator&&(eo.submenuIndicator.className=mergeClasses(menuItemClassNames.submenuIndicator,lo,eo.submenuIndicator.className)),useCheckmarkStyles_unstable(eo)},MenuItem=reactExports.forwardRef((eo,to)=>{const no=useMenuItem_unstable(eo,to);return useMenuItemStyles_unstable(no),useCustomStyleHook("useMenuItemStyles_unstable")(no),renderMenuItem_unstable(no)});MenuItem.displayName="MenuItem";const useMenuList_unstable=(eo,to)=>{const{findAllFocusable:no}=useFocusFinders(),io=useMenuContextSelectors(),so=useHasParentContext(MenuContext$1),ao=useArrowNavigationGroup({circular:!0,ignoreDefaultKeydown:{Tab:so}});usingPropsAndMenuContext(eo,io,so)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const lo=reactExports.useRef(null),uo=reactExports.useCallback((Co,$o)=>{const Ro=["menuitem","menuitemcheckbox","menuitemradio"];if(!lo.current)return;const Oo=no(lo.current,Go=>Go.hasAttribute("role")&&Ro.indexOf(Go.getAttribute("role"))!==-1);let No=Oo.indexOf($o)+1;No===Oo.length&&(No=0);const Mo=Oo.map(Go=>{var Do;return(Do=Go.textContent)===null||Do===void 0?void 0:Do.charAt(0).toLowerCase()}),Bo=Co.key.toLowerCase(),Fo=(Go,Do)=>{for(let Uo=Go;Uo-1&&Oo[Lo].focus()},[no]);var ho;const[go,mo]=useControllableState({state:(ho=eo.checkedValues)!==null&&ho!==void 0?ho:so?io.checkedValues:void 0,defaultState:eo.defaultCheckedValues,initialState:{}});var yo;const So=(yo=eo.onCheckedValueChange)!==null&&yo!==void 0?yo:so?io.onCheckedValueChange:void 0,_o=useEventCallback$3((Co,$o,Ro,Oo)=>{const Mo=[...(go==null?void 0:go[$o])||[]];Oo?Mo.splice(Mo.indexOf(Ro),1):Mo.push(Ro),So==null||So(Co,{name:$o,checkedItems:Mo}),mo(Bo=>({...Bo,[$o]:Mo}))}),ko=useEventCallback$3((Co,$o,Ro)=>{const Oo=[Ro];mo(No=>({...No,[$o]:Oo})),So==null||So(Co,{name:$o,checkedItems:Oo})});return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,lo),role:"menu","aria-labelledby":io.triggerId,...ao,...eo}),{elementType:"div"}),hasIcons:io.hasIcons||!1,hasCheckmarks:io.hasCheckmarks||!1,checkedValues:go,hasMenuContext:so,setFocusByFirstCharacter:uo,selectRadio:ko,toggleCheckbox:_o}},useMenuContextSelectors=()=>{const eo=useMenuContext_unstable(ao=>ao.checkedValues),to=useMenuContext_unstable(ao=>ao.onCheckedValueChange),no=useMenuContext_unstable(ao=>ao.triggerId),io=useMenuContext_unstable(ao=>ao.hasIcons),so=useMenuContext_unstable(ao=>ao.hasCheckmarks);return{checkedValues:eo,onCheckedValueChange:to,triggerId:no,hasIcons:io,hasCheckmarks:so}},usingPropsAndMenuContext=(eo,to,no)=>{let io=!1;for(const so in to)eo[so]&&(io=!0);return no&&io},renderMenuList_unstable=(eo,to)=>jsx$1(MenuListProvider,{value:to.menuList,children:jsx$1(eo.root,{})});function useMenuListContextValues_unstable(eo){const{checkedValues:to,hasCheckmarks:no,hasIcons:io,selectRadio:so,setFocusByFirstCharacter:ao,toggleCheckbox:lo}=eo;return{menuList:{checkedValues:to,hasCheckmarks:no,hasIcons:io,selectRadio:so,setFocusByFirstCharacter:ao,toggleCheckbox:lo}}}const menuListClassNames={root:"fui-MenuList"},useStyles$z=__styles({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:"f16mnhsx",Belr9w4:"fbi42co"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f16mnhsx{column-gap:2px;}",".fbi42co{row-gap:2px;}",".f1l02sjl{height:100%;}"]}),useMenuListStyles_unstable=eo=>{const to=useStyles$z();return eo.root.className=mergeClasses(menuListClassNames.root,to.root,eo.hasMenuContext&&to.hasMenuContext,eo.root.className),eo},MenuList=reactExports.forwardRef((eo,to)=>{const no=useMenuList_unstable(eo,to),io=useMenuListContextValues_unstable(no);return useMenuListStyles_unstable(no),useCustomStyleHook("useMenuListStyles_unstable")(no),renderMenuList_unstable(no,io)});MenuList.displayName="MenuList";const useMenuPopover_unstable=(eo,to)=>{const no=useMenuContext_unstable(Mo=>Mo.menuPopoverRef),io=useMenuContext_unstable(Mo=>Mo.setOpen),so=useMenuContext_unstable(Mo=>Mo.open),ao=useMenuContext_unstable(Mo=>Mo.openOnHover),lo=useMenuContext_unstable(Mo=>Mo.triggerRef),uo=useIsSubmenu(),ho=reactExports.useRef(!0),go=reactExports.useRef(0),mo=useRestoreFocusSource(),{dir:yo}=useFluent(),So=yo==="ltr"?ArrowLeft:ArrowRight,_o=reactExports.useCallback(Mo=>{Mo&&Mo.addEventListener("mouseover",Bo=>{ho.current&&(ho.current=!1,dispatchMenuEnterEvent(no.current,Bo),go.current=setTimeout(()=>ho.current=!0,250))})},[no,go]);reactExports.useEffect(()=>{},[]);var ko;const Co=(ko=useMenuContext_unstable(Mo=>Mo.inline))!==null&&ko!==void 0?ko:!1,$o=useMenuContext_unstable(Mo=>Mo.mountNode),Ro=always(getIntrinsicElementProps("div",{role:"presentation",...mo,...eo,ref:useMergedRefs$1(to,no,_o)}),{elementType:"div"}),{onMouseEnter:Oo,onKeyDown:No}=Ro;return Ro.onMouseEnter=useEventCallback$3(Mo=>{ao&&io(Mo,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:Mo}),Oo==null||Oo(Mo)}),Ro.onKeyDown=useEventCallback$3(Mo=>{const Bo=Mo.key;if(Bo===Escape$1||uo&&Bo===So){var Fo;so&&(!((Fo=no.current)===null||Fo===void 0)&&Fo.contains(Mo.target))&&!Mo.isDefaultPrevented()&&(io(Mo,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:Mo}),Mo.preventDefault())}if(Bo===Tab$2&&(io(Mo,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:Mo}),!uo)){var Lo;(Lo=lo.current)===null||Lo===void 0||Lo.focus()}No==null||No(Mo)}),{inline:Co,mountNode:$o,components:{root:"div"},root:Ro}},menuPopoverClassNames={root:"fui-MenuPopover"},useStyles$y=__styles({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",z8tnut:"f10ra9hq",z189sj:["f8wuabp","fycuoez"],Byoj8tv:"f1y2xyjm",uwmqm3:["fycuoez","f8wuabp"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".fl8fusi{min-width:138px;}",".f1kaai3v{max-width:300px;}",".f1p9o1ba{overflow-x:hidden;}",".f1ahpp82{width:max-content;}",".f1hg901r{box-shadow:var(--shadow16);}",".f10ra9hq{padding-top:4px;}",".f8wuabp{padding-right:4px;}",".fycuoez{padding-left:4px;}",".f1y2xyjm{padding-bottom:4px;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),useMenuPopoverStyles_unstable=eo=>{const to=useStyles$y();return eo.root.className=mergeClasses(menuPopoverClassNames.root,to.root,eo.root.className),eo},renderMenuPopover_unstable=eo=>eo.inline?jsx$1(eo.root,{}):jsx$1(Portal$1,{mountNode:eo.mountNode,children:jsx$1(eo.root,{})}),MenuPopover=reactExports.forwardRef((eo,to)=>{const no=useMenuPopover_unstable(eo,to);return useMenuPopoverStyles_unstable(no),useCustomStyleHook("useMenuPopoverStyles_unstable")(no),renderMenuPopover_unstable(no)});MenuPopover.displayName="MenuPopover";const useMenuTrigger_unstable=eo=>{const{children:to,disableButtonEnhancement:no=!1}=eo,io=useMenuContext_unstable(Yo=>Yo.triggerRef),so=useMenuContext_unstable(Yo=>Yo.menuPopoverRef),ao=useMenuContext_unstable(Yo=>Yo.setOpen),lo=useMenuContext_unstable(Yo=>Yo.open),uo=useMenuContext_unstable(Yo=>Yo.triggerId),ho=useMenuContext_unstable(Yo=>Yo.openOnHover),go=useMenuContext_unstable(Yo=>Yo.openOnContext),mo=useRestoreFocusTarget(),yo=useIsSubmenu(),{findFirstFocusable:So}=useFocusFinders(),_o=reactExports.useCallback(()=>{const Yo=So(so.current);Yo==null||Yo.focus()},[So,so]),ko=reactExports.useRef(!1),Co=reactExports.useRef(!1),{dir:$o}=useFluent(),Ro=$o==="ltr"?ArrowRight:ArrowLeft,Oo=getTriggerChild(to),No=Yo=>{isTargetDisabled(Yo)||Yo.isDefaultPrevented()||go&&(Yo.preventDefault(),ao(Yo,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:Yo}))},Mo=Yo=>{isTargetDisabled(Yo)||go||(ao(Yo,{open:!lo,keyboard:ko.current,type:"menuTriggerClick",event:Yo}),ko.current=!1)},Bo=Yo=>{if(isTargetDisabled(Yo))return;const qo=Yo.key;!go&&(yo&&qo===Ro||!yo&&qo===ArrowDown)&&ao(Yo,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:Yo}),qo===Escape$1&&!yo&&ao(Yo,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:Yo}),lo&&qo===Ro&&yo&&_o()},Fo=Yo=>{isTargetDisabled(Yo)||ho&&Co.current&&ao(Yo,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:Yo})},Lo=Yo=>{isTargetDisabled(Yo)||ho&&!Co.current&&(ao(Yo,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:Yo}),Co.current=!0)},Go=Yo=>{isTargetDisabled(Yo)||ho&&ao(Yo,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:Yo})},Do={id:uo,...mo,...Oo==null?void 0:Oo.props,ref:useMergedRefs$1(io,Oo==null?void 0:Oo.ref),onMouseEnter:useEventCallback$3(mergeCallbacks(Oo==null?void 0:Oo.props.onMouseEnter,Fo)),onMouseLeave:useEventCallback$3(mergeCallbacks(Oo==null?void 0:Oo.props.onMouseLeave,Go)),onContextMenu:useEventCallback$3(mergeCallbacks(Oo==null?void 0:Oo.props.onContextMenu,No)),onMouseMove:useEventCallback$3(mergeCallbacks(Oo==null?void 0:Oo.props.onMouseMove,Lo))},Uo={"aria-haspopup":"menu","aria-expanded":!lo&&!yo?void 0:lo,...Do,onClick:useEventCallback$3(mergeCallbacks(Oo==null?void 0:Oo.props.onClick,Mo)),onKeyDown:useEventCallback$3(mergeCallbacks(Oo==null?void 0:Oo.props.onKeyDown,Bo))},Ho=useARIAButtonProps((Oo==null?void 0:Oo.type)==="button"||(Oo==null?void 0:Oo.type)==="a"?Oo.type:"div",Uo);return{isSubmenu:yo,children:applyTriggerPropsToChildren(to,go?Do:no?Uo:Ho)}},isTargetDisabled=eo=>{const to=no=>no.hasAttribute("disabled")||no.hasAttribute("aria-disabled")&&no.getAttribute("aria-disabled")==="true";return isHTMLElement$6(eo.target)&&to(eo.target)?!0:isHTMLElement$6(eo.currentTarget)&&to(eo.currentTarget)},renderMenuTrigger_unstable=eo=>reactExports.createElement(MenuTriggerContextProvider,{value:eo.isSubmenu},eo.children),MenuTrigger=eo=>{const to=useMenuTrigger_unstable(eo);return renderMenuTrigger_unstable(to)};MenuTrigger.displayName="MenuTrigger";MenuTrigger.isFluentTriggerComponent=!0;const RadioGroupContext=reactExports.createContext(void 0),radioGroupContextDefaultValue={};RadioGroupContext.Provider;const useRadioGroupContextValue_unstable=()=>reactExports.useContext(RadioGroupContext)||radioGroupContextDefaultValue,renderRadio_unstable=eo=>jsxs(eo.root,{children:[jsx$1(eo.input,{}),jsx$1(eo.indicator,{}),eo.label&&jsx$1(eo.label,{})]}),useRadio_unstable=(eo,to)=>{const no=useRadioGroupContextValue_unstable(),{name:io=no.name,checked:so=no.value!==void 0?no.value===eo.value:void 0,defaultChecked:ao=no.defaultValue!==void 0?no.defaultValue===eo.value:void 0,labelPosition:lo=no.layout==="horizontal-stacked"?"below":"after",disabled:uo=no.disabled,required:ho=no.required,"aria-describedby":go=no["aria-describedby"],onChange:mo}=eo,yo=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),So=always(eo.root,{defaultProps:{ref:useFocusWithin(),...yo.root},elementType:"span"}),_o=always(eo.input,{defaultProps:{ref:to,type:"radio",id:useId$1("radio-",yo.primary.id),name:io,checked:so,defaultChecked:ao,disabled:uo,required:ho,"aria-describedby":go,...yo.primary},elementType:"input"});_o.onChange=mergeCallbacks(_o.onChange,$o=>mo==null?void 0:mo($o,{value:$o.currentTarget.value}));const ko=optional(eo.label,{defaultProps:{htmlFor:_o.id,disabled:_o.disabled},elementType:Label}),Co=always(eo.indicator,{defaultProps:{"aria-hidden":!0,children:reactExports.createElement(CircleFilled,null)},elementType:"div"});return{labelPosition:lo,components:{root:"span",input:"input",label:Label,indicator:"div"},root:So,input:_o,label:ko,indicator:Co}},radioClassNames={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},useRootBaseClassName$1=__resetStyles("rm0dkue","rjjxb3w",{r:[".rm0dkue{display:inline-flex;position:relative;}",".rm0dkue:focus{outline-style:none;}",".rm0dkue:focus-visible{outline-style:none;}",".rm0dkue[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rm0dkue[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rjjxb3w{display:inline-flex;position:relative;}",".rjjxb3w:focus{outline-style:none;}",".rjjxb3w:focus-visible{outline-style:none;}",".rjjxb3w[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rjjxb3w[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rm0dkue[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rjjxb3w[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useRootStyles$7=__styles({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),useInputBaseClassName$1=__resetStyles("r9gx1vl","r1uk1i2c",[".r9gx1vl{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".r9gx1vl:enabled{cursor:pointer;}",".r9gx1vl:enabled~.fui-Radio__label{cursor:pointer;}",".r9gx1vl:not(:checked)~.fui-Radio__indicator>*{opacity:0;}",".r9gx1vl:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".r9gx1vl:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".r9gx1vl:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".r9gx1vl:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".r9gx1vl:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r9gx1vl:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r9gx1vl:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r9gx1vl:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".r9gx1vl:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".r9gx1vl:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".r9gx1vl:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".r9gx1vl:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".r1uk1i2c{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".r1uk1i2c:enabled{cursor:pointer;}",".r1uk1i2c:enabled~.fui-Radio__label{cursor:pointer;}",".r1uk1i2c:not(:checked)~.fui-Radio__indicator>*{opacity:0;}",".r1uk1i2c:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".r1uk1i2c:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".r1uk1i2c:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".r1uk1i2c:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1uk1i2c:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r1uk1i2c:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1uk1i2c:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r1uk1i2c:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".r1uk1i2c:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".r1uk1i2c:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".r1uk1i2c:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".r1uk1i2c:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"]),useInputStyles$1=__styles({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}"]}),useIndicatorBaseClassName$1=__resetStyles("rid4516",null,[".rid4516{width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}"]),useLabelStyles$2=__styles({base:{qb2dma:"f7nlbp4",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),useRadioStyles_unstable=eo=>{const{labelPosition:to}=eo,no=useRootBaseClassName$1(),io=useRootStyles$7();eo.root.className=mergeClasses(radioClassNames.root,no,to==="below"&&io.vertical,eo.root.className);const so=useInputBaseClassName$1(),ao=useInputStyles$1();eo.input.className=mergeClasses(radioClassNames.input,so,to==="below"&&ao.below,eo.input.className);const lo=useIndicatorBaseClassName$1();eo.indicator.className=mergeClasses(radioClassNames.indicator,lo,eo.indicator.className);const uo=useLabelStyles$2();eo.label&&(eo.label.className=mergeClasses(radioClassNames.label,uo.base,uo[to],eo.label.className))},Radio$2=reactExports.forwardRef((eo,to)=>{const no=useRadio_unstable(eo,to);return useRadioStyles_unstable(no),useCustomStyleHook("useRadioStyles_unstable")(no),renderRadio_unstable(no)});Radio$2.displayName="Radio";const useSelect_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const no=useOverrides();var io;const{defaultValue:so,value:ao,select:lo,icon:uo,root:ho,appearance:go=(io=no.inputDefaultAppearance)!==null&&io!==void 0?io:"outline",onChange:mo,size:yo="medium"}=eo,So=getPartitionedNativeProps({props:eo,primarySlotTagName:"select",excludedPropNames:["appearance","defaultValue","onChange","size","value"]}),_o={size:yo,appearance:go,components:{root:"span",select:"select",icon:"span"},select:always(lo,{defaultProps:{defaultValue:so,value:ao,ref:to,...So.primary},elementType:"select"}),icon:optional(uo,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(ChevronDownRegular,null)},elementType:"span"}),root:always(ho,{defaultProps:So.root,elementType:"span"})};return _o.select.onChange=useEventCallback$3(ko=>{mo==null||mo(ko,{value:ko.target.value})}),_o},renderSelect_unstable=eo=>jsxs(eo.root,{children:[jsx$1(eo.select,{children:eo.select.children}),jsx$1(eo.icon,{})]}),selectClassNames={root:"fui-Select",select:"fui-Select__select",icon:"fui-Select__icon"},useRootStyles$6=__styles({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Eh141a:"flvyvdh",Bahqtrf:"fk6fouc",qhf8xq:"f10pi13n",h62rwi:"f7ll8cq",B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"],li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",Dlnsje:"fhwjr99",E3zdtr:"f1mdlcz9",By385i5:"fo72kxq",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o"}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".flvyvdh{flex-wrap:nowrap;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f10pi13n{position:relative;}",`.f7ll8cq::after{background-image:linear-gradient( 0deg, var(--colorCompoundBrandStroke) 0%, var(--colorCompoundBrandStroke) 50%, @@ -167,17 +167,17 @@ Error generating stack: `+ao.message+` to left, var(--colorNeutralStencil1Alpha) 0%, var(--colorNeutralStencil2Alpha) 50%, - var(--colorNeutralStencil1Alpha) 100%);}`,".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f4akx1t{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f18p5put{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f9jxvrw{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes fma800j{from{background-position-x:300%;}to{background-position-x:0%;}}","@keyframes fj9wi3p{from{background-position-x:0%;}to{background-position-x:300%;}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),useRectangleStyles=__styles({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Bbmb7ep:["fff7au0","f1bjk9e1"],Beyfa6y:["f1bjk9e1","fff7au0"],B7oj6ja:["fwsfkhu","f8wkphi"],Btl43ni:["f8wkphi","fwsfkhu"]}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",".fff7au0{border-bottom-right-radius:4px;}",".f1bjk9e1{border-bottom-left-radius:4px;}",".fwsfkhu{border-top-right-radius:4px;}",".f8wkphi{border-top-left-radius:4px;}"]}),useSizeStyles=__styles({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),useCircleSizeStyles=__styles({root:{Bbmb7ep:["fqgqgel","fchfifz"],Beyfa6y:["fchfifz","fqgqgel"],B7oj6ja:["fc7b1hi","f1dpx5h9"],Btl43ni:["f1dpx5h9","fc7b1hi"]}},{d:[".fqgqgel{border-bottom-right-radius:50%;}",".fchfifz{border-bottom-left-radius:50%;}",".fc7b1hi{border-top-right-radius:50%;}",".f1dpx5h9{border-top-left-radius:50%;}"]}),useSkeletonItemStyles_unstable=eo=>{const{animation:to,appearance:no,size:io,shape:so}=eo,{dir:ao}=useFluent(),lo=useStyles$x(),uo=useRectangleStyles(),ho=useSizeStyles(),go=useCircleSizeStyles();return eo.root.className=mergeClasses(skeletonItemClassNames.root,lo.root,to==="wave"&&lo.wave,to==="wave"&&ao==="rtl"&&lo.waveRtl,to==="pulse"&&lo.pulse,no==="translucent"&&lo.translucent,to==="pulse"&&no==="translucent"&&lo.translucentPulse,so==="rectangle"&&uo.root,so==="rectangle"&&uo[io],so==="square"&&ho[io],so==="circle"&&go.root,so==="circle"&&ho[io],eo.root.className),eo},SkeletonItem=reactExports.forwardRef((eo,to)=>{const no=useSkeletonItem_unstable(eo,to);return useSkeletonItemStyles_unstable(no),renderSkeletonItem_unstable(no)});SkeletonItem.displayName="SkeletonItem";const DefaultSvg=()=>reactExports.createElement("svg",{className:"fui-Spinner__Progressbar"},reactExports.createElement("circle",{className:"fui-Spinner__Track"}),reactExports.createElement("circle",{className:"fui-Spinner__Tail"})),SpinnerContext=reactExports.createContext(void 0),SpinnerContextDefaultValue={};SpinnerContext.Provider;const useSpinnerContext=()=>{var eo;return(eo=reactExports.useContext(SpinnerContext))!==null&&eo!==void 0?eo:SpinnerContextDefaultValue},useSpinner_unstable=(eo,to)=>{const{size:no}=useSpinnerContext(),{appearance:io="primary",labelPosition:so="after",size:ao=no??"medium",delay:lo=0}=eo,uo=useId$1("spinner"),{role:ho="progressbar",tabIndex:go,...mo}=eo,yo=always(getIntrinsicElementProps("div",{ref:to,role:ho,...mo},["size"]),{elementType:"div"}),[So,_o]=reactExports.useState(!0),[ko,Co]=useTimeout();reactExports.useEffect(()=>{if(!(lo<=0))return _o(!1),ko(()=>{_o(!0)},lo),()=>{Co()}},[ko,Co,lo]);const $o=optional(eo.label,{defaultProps:{id:uo},renderByDefault:!1,elementType:Label}),Ro=optional(eo.spinner,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(DefaultSvg,null),tabIndex:go},elementType:"span"});return $o&&yo&&!yo["aria-labelledby"]&&(yo["aria-labelledby"]=$o.id),{appearance:io,delay:lo,labelPosition:so,size:ao,shouldRenderSpinner:So,components:{root:"div",spinner:"span",label:Label},root:yo,spinner:Ro,label:$o}},renderSpinner_unstable=eo=>{const{labelPosition:to,shouldRenderSpinner:no}=eo;return jsxs(eo.root,{children:[eo.label&&no&&(to==="above"||to==="before")&&jsx$1(eo.label,{}),eo.spinner&&no&&jsx$1(eo.spinner,{}),eo.label&&no&&(to==="below"||to==="after")&&jsx$1(eo.label,{})]})},spinnerClassNames={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},useRootStyles$5=__styles({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),useLoaderStyles=__styles({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),useTrackStyles=__styles({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),useLabelStyles$1=__styles({inverted:{sj55zd:"f15aqcq"},primary:{},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),useSpinnerStyles_unstable=eo=>{const{labelPosition:to,size:no,appearance:io="primary"}=eo,so=useRootStyles$5(),ao=useLoaderStyles(),lo=useLabelStyles$1(),uo=useTrackStyles();return eo.root.className=mergeClasses(spinnerClassNames.root,so.root,(to==="above"||to==="below")&&so.vertical,(to==="before"||to==="after")&&so.horizontal,eo.root.className),eo.spinner&&(eo.spinner.className=mergeClasses(spinnerClassNames.spinner,ao.spinnerSVG,ao[no],uo[io],eo.spinner.className)),eo.label&&(eo.label.className=mergeClasses(spinnerClassNames.label,lo[no],lo[io],eo.label.className)),eo},Spinner=reactExports.forwardRef((eo,to)=>{const no=useSpinner_unstable(eo,to);return useSpinnerStyles_unstable(no),useCustomStyleHook("useSpinnerStyles_unstable")(no),renderSpinner_unstable(no)});Spinner.displayName="Spinner";const useSwitch_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0});const{checked:no,defaultChecked:io,disabled:so,labelPosition:ao="after",onChange:lo,required:uo}=eo,ho=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),go=useId$1("switch-",ho.primary.id),mo=always(eo.root,{defaultProps:{ref:useFocusWithin(),...ho.root},elementType:"div"}),yo=always(eo.indicator,{defaultProps:{"aria-hidden":!0,children:reactExports.createElement(CircleFilled,null)},elementType:"div"}),So=always(eo.input,{defaultProps:{checked:no,defaultChecked:io,id:go,ref:to,role:"switch",type:"checkbox",...ho.primary},elementType:"input"});So.onChange=mergeCallbacks(So.onChange,ko=>lo==null?void 0:lo(ko,{checked:ko.currentTarget.checked}));const _o=optional(eo.label,{defaultProps:{disabled:so,htmlFor:go,required:uo,size:"medium"},elementType:Label});return{labelPosition:ao,components:{root:"div",indicator:"div",input:"input",label:Label},root:mo,indicator:yo,input:So,label:_o}},renderSwitch_unstable=eo=>{const{labelPosition:to}=eo;return jsxs(eo.root,{children:[jsx$1(eo.input,{}),to!=="after"&&eo.label&&jsx$1(eo.label,{}),jsx$1(eo.indicator,{}),to==="after"&&eo.label&&jsx$1(eo.label,{})]})},switchClassNames={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},useRootBaseClassName=__resetStyles("r1i56xw0","rk4yt03",{r:[".r1i56xw0{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r1i56xw0:focus{outline-style:none;}",".r1i56xw0:focus-visible{outline-style:none;}",".r1i56xw0[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1i56xw0[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rk4yt03{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rk4yt03:focus{outline-style:none;}",".rk4yt03:focus-visible{outline-style:none;}",".rk4yt03[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rk4yt03[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1i56xw0[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rk4yt03[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useRootStyles$4=__styles({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),useIndicatorBaseClassName=__resetStyles("r13wlxb8",null,{r:[".r13wlxb8{border-radius:var(--borderRadiusCircular);border:1px solid;line-height:0;box-sizing:border-box;fill:currentColor;flex-shrink:0;font-size:18px;height:20px;margin:var(--spacingVerticalS) var(--spacingHorizontalS);pointer-events:none;transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:background,border,color;width:40px;}",".r13wlxb8>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r13wlxb8{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r13wlxb8>*{transition-duration:0.01ms;}}"]}),useIndicatorStyles=__styles({labelAbove:{B6of3ja:"f1hu3pq6"}},{d:[".f1hu3pq6{margin-top:0;}"]}),useInputBaseClassName=__resetStyles("rw4brat","r1f4bxyr",{r:[".rw4brat{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rw4brat:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",".rw4brat:disabled{cursor:default;}",".rw4brat:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".rw4brat:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".rw4brat:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".rw4brat:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".rw4brat:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".rw4brat:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rw4brat:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".rw4brat:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}",".r1f4bxyr{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r1f4bxyr:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",".r1f4bxyr:disabled{cursor:default;}",".r1f4bxyr:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".r1f4bxyr:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1f4bxyr:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".r1f4bxyr:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}"],s:["@media (forced-colors: active){.rw4brat:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rw4brat:disabled~.fui-Switch__label{color:GrayText;}.rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rw4brat:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}","@media (forced-colors: active){.r1f4bxyr:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r1f4bxyr:disabled~.fui-Switch__label{color:GrayText;}.r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}"]}),useInputStyles=__styles({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}"]}),useLabelStyles=__styles({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},above:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun",a9b677:"fly5x3f"},after:{uwmqm3:["fruq291","f7x41pl"]},before:{z189sj:["f7x41pl","fruq291"]}},{d:[".f1k6fduh{cursor:pointer;}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),useSwitchStyles_unstable=eo=>{const to=useRootBaseClassName(),no=useRootStyles$4(),io=useIndicatorBaseClassName(),so=useIndicatorStyles(),ao=useInputBaseClassName(),lo=useInputStyles(),uo=useLabelStyles(),{label:ho,labelPosition:go}=eo;return eo.root.className=mergeClasses(switchClassNames.root,to,go==="above"&&no.vertical,eo.root.className),eo.indicator.className=mergeClasses(switchClassNames.indicator,io,ho&&go==="above"&&so.labelAbove,eo.indicator.className),eo.input.className=mergeClasses(switchClassNames.input,ao,ho&&lo[go],eo.input.className),eo.label&&(eo.label.className=mergeClasses(switchClassNames.label,uo.base,uo[go],eo.label.className)),eo},Switch=reactExports.forwardRef((eo,to)=>{const no=useSwitch_unstable(eo,to);return useSwitchStyles_unstable(no),useCustomStyleHook("useSwitchStyles_unstable")(no),renderSwitch_unstable(no)});Switch.displayName="Switch";const tabListContextDefaultValue={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},TabListContext=createContext(void 0),TabListProvider=TabListContext.Provider,useTabListContext_unstable=eo=>useContextSelector(TabListContext,(to=tabListContextDefaultValue)=>eo(to)),useTab_unstable=(eo,to)=>{const{content:no,disabled:io=!1,icon:so,onClick:ao,onFocus:lo,value:uo}=eo,ho=useTabListContext_unstable(Uo=>Uo.appearance),go=useTabListContext_unstable(Uo=>Uo.reserveSelectedTabSpace),mo=useTabListContext_unstable(Uo=>Uo.selectTabOnFocus),yo=useTabListContext_unstable(Uo=>Uo.disabled),So=useTabListContext_unstable(Uo=>Uo.selectedValue===uo),_o=useTabListContext_unstable(Uo=>Uo.onRegister),ko=useTabListContext_unstable(Uo=>Uo.onUnregister),Co=useTabListContext_unstable(Uo=>Uo.onSelect),$o=useTabListContext_unstable(Uo=>Uo.size),Ro=useTabListContext_unstable(Uo=>!!Uo.vertical),Oo=yo||io,No=reactExports.useRef(null),Mo=Uo=>Co(Uo,{value:uo}),Bo=useEventCallback$3(mergeCallbacks(ao,Mo)),Po=useEventCallback$3(mergeCallbacks(lo,Mo));reactExports.useEffect(()=>(_o({value:uo,ref:No}),()=>{ko({value:uo,ref:No})}),[_o,ko,No,uo]);const Lo=optional(so,{elementType:"span"}),Go=always(no,{defaultProps:{children:eo.children},elementType:"span"}),Do=!!(Lo!=null&&Lo.children&&!Go.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:always(getIntrinsicElementProps("button",{ref:useMergedRefs$1(to,No),role:"tab",type:"button","aria-selected":Oo?void 0:`${So}`,...eo,disabled:Oo,onClick:Bo,onFocus:mo?Po:lo}),{elementType:"button"}),icon:Lo,iconOnly:Do,content:Go,contentReservedSpace:optional(no,{renderByDefault:!So&&!Do&&go,defaultProps:{children:eo.children},elementType:"span"}),appearance:ho,disabled:Oo,selected:So,size:$o,value:uo,vertical:Ro}},renderTab_unstable=eo=>jsxs(eo.root,{children:[eo.icon&&jsx$1(eo.icon,{}),!eo.iconOnly&&jsx$1(eo.content,{}),eo.contentReservedSpace&&jsx$1(eo.contentReservedSpace,{})]}),tabIndicatorCssVars_unstable={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},useActiveIndicatorStyles$1=__styles({base:{B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),calculateTabRect=eo=>{if(eo){var to;const no=((to=eo.parentElement)===null||to===void 0?void 0:to.getBoundingClientRect())||{x:0,y:0,width:0,height:0},io=eo.getBoundingClientRect();return{x:io.x-no.x,y:io.y-no.y,width:io.width,height:io.height}}},getRegisteredTabRect=(eo,to)=>{var no;const io=to!=null?(no=eo[JSON.stringify(to)])===null||no===void 0?void 0:no.ref.current:void 0;return io?calculateTabRect(io):void 0},useTabAnimatedIndicatorStyles_unstable=eo=>{const{disabled:to,selected:no,vertical:io}=eo,so=useActiveIndicatorStyles$1(),[ao,lo]=reactExports.useState(),[uo,ho]=reactExports.useState({offset:0,scale:1}),go=useTabListContext_unstable(So=>So.getRegisteredTabs);if(reactExports.useEffect(()=>{ao&&ho({offset:0,scale:1})},[ao]),no){const{previousSelectedValue:So,selectedValue:_o,registeredTabs:ko}=go();if(So&&ao!==So){const Co=getRegisteredTabRect(ko,So),$o=getRegisteredTabRect(ko,_o);if($o&&Co){const Ro=io?Co.y-$o.y:Co.x-$o.x,Oo=io?Co.height/$o.height:Co.width/$o.width;ho({offset:Ro,scale:Oo}),lo(So)}}}else ao&&lo(void 0);if(to)return eo;const mo=uo.offset===0&&uo.scale===1;eo.root.className=mergeClasses(eo.root.className,no&&so.base,no&&mo&&so.animated,no&&(io?so.vertical:so.horizontal));const yo={[tabIndicatorCssVars_unstable.offsetVar]:`${uo.offset}px`,[tabIndicatorCssVars_unstable.scaleVar]:`${uo.scale}`};return eo.root.style={...yo,...eo.root.style},eo},tabClassNames={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},reservedSpaceClassNames={content:"fui-Tab__content--reserved-space"},useRootStyles$3=__styles({base:{Bt984gj:"f122n59",g2u3we:"fwhevhj",h3c5rm:["f61n433","f1q8l70w"],B9xav0g:"fv1dfc8",zhjwy3:["f1q8l70w","f61n433"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",z8tnut:"fp2oml8",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1tdddsa",uwmqm3:["fk8j09s","fdw0yi8"]},smallVertical:{i8kkvl:"f14mj54c",z8tnut:"fclwglc",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fywfov9",uwmqm3:["fk8j09s","fdw0yi8"]},mediumHorizontal:{i8kkvl:"f1rjii52",z8tnut:"f5yzyt",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fx3omr",uwmqm3:["f1ng84yb","f11gcy0p"]},mediumVertical:{i8kkvl:"f1rjii52",z8tnut:"fp2oml8",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f1tdddsa",uwmqm3:["f1ng84yb","f11gcy0p"]},largeHorizontal:{i8kkvl:"f1rjii52",z8tnut:"fikn0iw",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdxej3c",uwmqm3:["f1ng84yb","f11gcy0p"]},largeVertical:{i8kkvl:"f1rjii52",z8tnut:"f1kwiid1",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f5b47ha",uwmqm3:["f1ng84yb","f11gcy0p"]},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",".fwhevhj{border-top-color:none;}",".f61n433{border-right-color:none;}",".f1q8l70w{border-left-color:none;}",".fv1dfc8{border-bottom-color:none;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f5yzyt{padding-top:var(--spacingVerticalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fx3omr{padding-bottom:var(--spacingVerticalM);}",".fikn0iw{padding-top:var(--spacingVerticalL);}",".fdxej3c{padding-bottom:var(--spacingVerticalL);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),useFocusStyles=__styles({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}"]}),usePendingIndicatorStyles=__styles({base:{az7l2e:"fhw179n",Bv4n3vi:["f10y1uxy","f6aiuy0"],vqofr:["f6aiuy0","f10y1uxy"],B0uxbk8:["f1kfpfnu","f1dx5wco"],Bgqb9hq:["f1dx5wco","f1kfpfnu"],amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",vzq8l0:["f105swax","fscdmel"],Bka2azo:["fscdmel","f105swax"],Br4ovkg:["f1tkcw1w","f1u11x8o"],csmgbd:["f1u11x8o","f1tkcw1w"],y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",".f10y1uxy:hover::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f6aiuy0:hover::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1kfpfnu:hover::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1dx5wco:hover::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",".f105swax:active::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".fscdmel:active::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1tkcw1w:active::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1u11x8o:active::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),useActiveIndicatorStyles=__styles({base:{Bjyk6c5:"f1rp0jgh",B3778ie:["fprarqb","f14vs0nd"],d9w3h3:["f14vs0nd","fprarqb"],Bl18szs:["f1gtfqs9","f18zvfd9"],B4j8arr:["f18zvfd9","f1gtfqs9"],Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",t2ki1e:"ffmd2fr"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",".fprarqb::after{border-bottom-right-radius:var(--borderRadiusCircular);}",".f14vs0nd::after{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1gtfqs9::after{border-top-right-radius:var(--borderRadiusCircular);}",".f18zvfd9::after{border-top-left-radius:var(--borderRadiusCircular);}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".ffmd2fr::after{z-index:1;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),useIconStyles$2=__styles({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),useContentStyles=__styles({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"fztplxc",z189sj:["ffczdla","fgiv446"],Byoj8tv:"f9g1xly",uwmqm3:["fgiv446","ffczdla"]},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fztplxc{padding-top:var(--spacingVerticalNone);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),useTabStyles_unstable=eo=>{const to=useRootStyles$3(),no=useFocusStyles(),io=usePendingIndicatorStyles(),so=useActiveIndicatorStyles(),ao=useIconStyles$2(),lo=useContentStyles(),{appearance:uo,disabled:ho,selected:go,size:mo,vertical:yo}=eo;return eo.root.className=mergeClasses(tabClassNames.root,to.base,yo?to.vertical:to.horizontal,mo==="small"&&(yo?to.smallVertical:to.smallHorizontal),mo==="medium"&&(yo?to.mediumVertical:to.mediumHorizontal),mo==="large"&&(yo?to.largeVertical:to.largeHorizontal),no.base,!ho&&uo==="subtle"&&to.subtle,!ho&&uo==="transparent"&&to.transparent,!ho&&go&&to.selected,ho&&to.disabled,io.base,mo==="small"&&(yo?io.smallVertical:io.smallHorizontal),mo==="medium"&&(yo?io.mediumVertical:io.mediumHorizontal),mo==="large"&&(yo?io.largeVertical:io.largeHorizontal),ho&&io.disabled,go&&so.base,go&&!ho&&so.selected,go&&mo==="small"&&(yo?so.smallVertical:so.smallHorizontal),go&&mo==="medium"&&(yo?so.mediumVertical:so.mediumHorizontal),go&&mo==="large"&&(yo?so.largeVertical:so.largeHorizontal),go&&ho&&so.disabled,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(tabClassNames.icon,ao.base,ao[mo],go&&ao.selected,eo.icon.className)),eo.contentReservedSpace&&(eo.contentReservedSpace.className=mergeClasses(reservedSpaceClassNames.content,lo.base,mo==="large"?lo.largeSelected:lo.selected,eo.icon?lo.iconBefore:lo.noIconBefore,lo.placeholder,eo.content.className),eo.contentReservedSpaceClassName=eo.contentReservedSpace.className),eo.content.className=mergeClasses(tabClassNames.content,lo.base,mo==="large"&&lo.large,go&&(mo==="large"?lo.largeSelected:lo.selected),eo.icon?lo.iconBefore:lo.noIconBefore,eo.content.className),useTabAnimatedIndicatorStyles_unstable(eo),eo},Tab$1=reactExports.forwardRef((eo,to)=>{const no=useTab_unstable(eo,to);return useTabStyles_unstable(no),useCustomStyleHook("useTabStyles_unstable")(no),renderTab_unstable(no)});Tab$1.displayName="Tab";const useTabList_unstable=(eo,to)=>{const{appearance:no="transparent",reserveSelectedTabSpace:io=!0,disabled:so=!1,onTabSelect:ao,selectTabOnFocus:lo=!1,size:uo="medium",vertical:ho=!1}=eo,go=reactExports.useRef(null),mo=useArrowNavigationGroup({circular:!0,axis:ho?"vertical":"horizontal",memorizeCurrent:!0}),[yo,So]=useControllableState({state:eo.selectedValue,defaultState:eo.defaultSelectedValue,initialState:void 0}),_o=reactExports.useRef(void 0),ko=reactExports.useRef(void 0);reactExports.useEffect(()=>{ko.current=_o.current,_o.current=yo},[yo]);const Co=useEventCallback$3((Mo,Bo)=>{So(Bo.value),ao==null||ao(Mo,Bo)}),$o=reactExports.useRef({}),Ro=useEventCallback$3(Mo=>{$o.current[JSON.stringify(Mo.value)]=Mo}),Oo=useEventCallback$3(Mo=>{delete $o.current[JSON.stringify(Mo.value)]}),No=reactExports.useCallback(()=>({selectedValue:_o.current,previousSelectedValue:ko.current,registeredTabs:$o.current}),[]);return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,go),role:"tablist","aria-orientation":ho?"vertical":"horizontal",...mo,...eo}),{elementType:"div"}),appearance:no,reserveSelectedTabSpace:io,disabled:so,selectTabOnFocus:lo,selectedValue:yo,size:uo,vertical:ho,onRegister:Ro,onUnregister:Oo,onSelect:Co,getRegisteredTabs:No}},renderTabList_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(TabListProvider,{value:to.tabList,children:eo.root.children})}),tabListClassNames={root:"fui-TabList"},useStyles$w=__styles({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}"]}),useTabListStyles_unstable=eo=>{const{vertical:to}=eo,no=useStyles$w();return eo.root.className=mergeClasses(tabListClassNames.root,no.root,to?no.vertical:no.horizontal,eo.root.className),eo};function useTabListContextValues_unstable(eo){const{appearance:to,reserveSelectedTabSpace:no,disabled:io,selectTabOnFocus:so,selectedValue:ao,onRegister:lo,onUnregister:uo,onSelect:ho,getRegisteredTabs:go,size:mo,vertical:yo}=eo;return{tabList:{appearance:to,reserveSelectedTabSpace:no,disabled:io,selectTabOnFocus:so,selectedValue:ao,onSelect:ho,onRegister:lo,onUnregister:uo,getRegisteredTabs:go,size:mo,vertical:yo}}}const TabList=reactExports.forwardRef((eo,to)=>{const no=useTabList_unstable(eo,to),io=useTabListContextValues_unstable(no);return useTabListStyles_unstable(no),useCustomStyleHook("useTabListStyles_unstable")(no),renderTabList_unstable(no,io)});TabList.displayName="TabList";const useText_unstable=(eo,to)=>{const{wrap:no,truncate:io,block:so,italic:ao,underline:lo,strikethrough:uo,size:ho,font:go,weight:mo,align:yo}=eo;return{align:yo??"start",block:so??!1,font:go??"base",italic:ao??!1,size:ho??300,strikethrough:uo??!1,truncate:io??!1,underline:lo??!1,weight:mo??"regular",wrap:no??!0,components:{root:"span"},root:always(getIntrinsicElementProps("span",{ref:to,...eo}),{elementType:"span"})}},renderText_unstable=eo=>jsx$1(eo.root,{}),textClassNames={root:"fui-Text"},useStyles$v=__styles({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),useTextStyles_unstable=eo=>{const to=useStyles$v();return eo.root.className=mergeClasses(textClassNames.root,to.root,eo.wrap===!1&&to.nowrap,eo.truncate&&to.truncate,eo.block&&to.block,eo.italic&&to.italic,eo.underline&&to.underline,eo.strikethrough&&to.strikethrough,eo.underline&&eo.strikethrough&&to.strikethroughUnderline,eo.size===100&&to.base100,eo.size===200&&to.base200,eo.size===400&&to.base400,eo.size===500&&to.base500,eo.size===600&&to.base600,eo.size===700&&to.hero700,eo.size===800&&to.hero800,eo.size===900&&to.hero900,eo.size===1e3&&to.hero1000,eo.font==="monospace"&&to.monospace,eo.font==="numeric"&&to.numeric,eo.weight==="medium"&&to.weightMedium,eo.weight==="semibold"&&to.weightSemibold,eo.weight==="bold"&&to.weightBold,eo.align==="center"&&to.alignCenter,eo.align==="end"&&to.alignEnd,eo.align==="justify"&&to.alignJustify,eo.root.className),eo},Text$2=reactExports.forwardRef((eo,to)=>{const no=useText_unstable(eo,to);return useTextStyles_unstable(no),useCustomStyleHook("useTextStyles_unstable")(no),renderText_unstable(no)});Text$2.displayName="Text";const disableScrollElementProp="__fluentDisableScrollElement";function useDisableBodyScroll(){const{targetDocument:eo}=useFluent();return reactExports.useCallback(()=>{if(eo)return disableScroll(eo.body)},[eo])}function disableScroll(eo){var to;const{clientWidth:no}=eo.ownerDocument.documentElement;var io;const so=(io=(to=eo.ownerDocument.defaultView)===null||to===void 0?void 0:to.innerWidth)!==null&&io!==void 0?io:0;return assertIsDisableScrollElement(eo),eo[disableScrollElementProp].count===0&&(eo.style.overflow="hidden",eo.style.paddingRight=`${so-no}px`),eo[disableScrollElementProp].count++,()=>{eo[disableScrollElementProp].count--,eo[disableScrollElementProp].count===0&&(eo.style.overflow=eo[disableScrollElementProp].previousOverflowStyle,eo.style.paddingRight=eo[disableScrollElementProp].previousPaddingRightStyle)}}function assertIsDisableScrollElement(eo){var to,no,io;(io=(to=eo)[no=disableScrollElementProp])!==null&&io!==void 0||(to[no]={count:0,previousOverflowStyle:eo.style.overflow,previousPaddingRightStyle:eo.style.paddingRight})}function useFocusFirstElement(eo,to){const{findFirstFocusable:no}=useFocusFinders(),{targetDocument:io}=useFluent(),so=reactExports.useRef(null);return reactExports.useEffect(()=>{if(!eo)return;const ao=so.current&&no(so.current);if(ao)ao.focus();else{var lo;(lo=so.current)===null||lo===void 0||lo.focus()}},[no,eo,to,io]),so}const defaultContextValue$3={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},DialogContext=createContext(void 0),DialogProvider=DialogContext.Provider,useDialogContext_unstable=eo=>useContextSelector(DialogContext,(to=defaultContextValue$3)=>eo(to)),defaultContextValue$2=!1,DialogSurfaceContext=reactExports.createContext(void 0),DialogSurfaceProvider=DialogSurfaceContext.Provider,useDialogSurfaceContext_unstable=()=>{var eo;return(eo=reactExports.useContext(DialogSurfaceContext))!==null&&eo!==void 0?eo:defaultContextValue$2},useDialog_unstable=eo=>{const{children:to,modalType:no="modal",onOpenChange:io,inertTrapFocus:so=!1}=eo,[ao,lo]=childrenToTriggerAndContent(to),[uo,ho]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1}),go=useEventCallback$3(Co=>{io==null||io(Co.event,Co),Co.event.isDefaultPrevented()||ho(Co.open)}),mo=useFocusFirstElement(uo,no),yo=useDisableBodyScroll(),So=!!(uo&&no!=="non-modal");useIsomorphicLayoutEffect$1(()=>{if(So)return yo()},[yo,So]);const{modalAttributes:_o,triggerAttributes:ko}=useModalAttributes({trapFocus:no!=="non-modal",legacyTrapFocus:!so});return{components:{backdrop:"div"},inertTrapFocus:so,open:uo,modalType:no,content:lo,trigger:ao,requestOpenChange:go,dialogTitleId:useId$1("dialog-title-"),isNestedDialog:useHasParentContext(DialogContext),dialogRef:mo,modalAttributes:no!=="non-modal"?_o:void 0,triggerAttributes:ko}};function childrenToTriggerAndContent(eo){const to=reactExports.Children.toArray(eo);switch(to.length){case 2:return to;case 1:return[void 0,to[0]];default:return[void 0,void 0]}}function _extends$c(){return _extends$c=Object.assign?Object.assign.bind():function(eo){for(var to=1;to=0)&&(no[so]=eo[so]);return no}function _setPrototypeOf$2(eo,to){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(io,so){return io.__proto__=so,io},_setPrototypeOf$2(eo,to)}function _inheritsLoose$1(eo,to){eo.prototype=Object.create(to.prototype),eo.prototype.constructor=eo,_setPrototypeOf$2(eo,to)}var propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function eo(io,so,ao,lo,uo,ho){if(ho!==ReactPropTypesSecret){var go=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 go.name="Invariant Violation",go}}eo.isRequired=eo;function to(){return eo}var no={array:eo,bigint:eo,bool:eo,func:eo,number:eo,object:eo,string:eo,symbol:eo,any:eo,arrayOf:to,element:eo,elementType:eo,instanceOf:to,node:eo,objectOf:to,oneOf:to,oneOfType:to,shape:to,exact:to,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return no.PropTypes=no,no};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports),config$8={disabled:!1},TransitionGroupContext=React.createContext(null);var forceReflow=function(to){return to.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition$1=function(eo){_inheritsLoose$1(to,eo);function to(io,so){var ao;ao=eo.call(this,io,so)||this;var lo=so,uo=lo&&!lo.isMounting?io.enter:io.appear,ho;return ao.appearStatus=null,io.in?uo?(ho=EXITED,ao.appearStatus=ENTERING):ho=ENTERED:io.unmountOnExit||io.mountOnEnter?ho=UNMOUNTED:ho=EXITED,ao.state={status:ho},ao.nextCallback=null,ao}to.getDerivedStateFromProps=function(so,ao){var lo=so.in;return lo&&ao.status===UNMOUNTED?{status:EXITED}:null};var no=to.prototype;return no.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},no.componentDidUpdate=function(so){var ao=null;if(so!==this.props){var lo=this.state.status;this.props.in?lo!==ENTERING&&lo!==ENTERED&&(ao=ENTERING):(lo===ENTERING||lo===ENTERED)&&(ao=EXITING)}this.updateStatus(!1,ao)},no.componentWillUnmount=function(){this.cancelNextCallback()},no.getTimeouts=function(){var so=this.props.timeout,ao,lo,uo;return ao=lo=uo=so,so!=null&&typeof so!="number"&&(ao=so.exit,lo=so.enter,uo=so.appear!==void 0?so.appear:lo),{exit:ao,enter:lo,appear:uo}},no.updateStatus=function(so,ao){if(so===void 0&&(so=!1),ao!==null)if(this.cancelNextCallback(),ao===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var lo=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);lo&&forceReflow(lo)}this.performEnter(so)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},no.performEnter=function(so){var ao=this,lo=this.props.enter,uo=this.context?this.context.isMounting:so,ho=this.props.nodeRef?[uo]:[ReactDOM.findDOMNode(this),uo],go=ho[0],mo=ho[1],yo=this.getTimeouts(),So=uo?yo.appear:yo.enter;if(!so&&!lo||config$8.disabled){this.safeSetState({status:ENTERED},function(){ao.props.onEntered(go)});return}this.props.onEnter(go,mo),this.safeSetState({status:ENTERING},function(){ao.props.onEntering(go,mo),ao.onTransitionEnd(So,function(){ao.safeSetState({status:ENTERED},function(){ao.props.onEntered(go,mo)})})})},no.performExit=function(){var so=this,ao=this.props.exit,lo=this.getTimeouts(),uo=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!ao||config$8.disabled){this.safeSetState({status:EXITED},function(){so.props.onExited(uo)});return}this.props.onExit(uo),this.safeSetState({status:EXITING},function(){so.props.onExiting(uo),so.onTransitionEnd(lo.exit,function(){so.safeSetState({status:EXITED},function(){so.props.onExited(uo)})})})},no.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},no.safeSetState=function(so,ao){ao=this.setNextCallback(ao),this.setState(so,ao)},no.setNextCallback=function(so){var ao=this,lo=!0;return this.nextCallback=function(uo){lo&&(lo=!1,ao.nextCallback=null,so(uo))},this.nextCallback.cancel=function(){lo=!1},this.nextCallback},no.onTransitionEnd=function(so,ao){this.setNextCallback(ao);var lo=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),uo=so==null&&!this.props.addEndListener;if(!lo||uo){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ho=this.props.nodeRef?[this.nextCallback]:[lo,this.nextCallback],go=ho[0],mo=ho[1];this.props.addEndListener(go,mo)}so!=null&&setTimeout(this.nextCallback,so)},no.render=function(){var so=this.state.status;if(so===UNMOUNTED)return null;var ao=this.props,lo=ao.children;ao.in,ao.mountOnEnter,ao.unmountOnExit,ao.appear,ao.enter,ao.exit,ao.timeout,ao.addEndListener,ao.onEnter,ao.onEntering,ao.onEntered,ao.onExit,ao.onExiting,ao.onExited,ao.nodeRef;var uo=_objectWithoutPropertiesLoose$3(ao,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(TransitionGroupContext.Provider,{value:null},typeof lo=="function"?lo(so,uo):React.cloneElement(React.Children.only(lo),uo))},to}(React.Component);Transition$1.contextType=TransitionGroupContext;Transition$1.propTypes={};function noop$c(){}Transition$1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$c,onEntering:noop$c,onEntered:noop$c,onExit:noop$c,onExiting:noop$c,onExited:noop$c};Transition$1.UNMOUNTED=UNMOUNTED;Transition$1.EXITED=EXITED;Transition$1.ENTERING=ENTERING;Transition$1.ENTERED=ENTERED;Transition$1.EXITING=EXITING;const Transition$2=Transition$1;function _assertThisInitialized$3(eo){if(eo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eo}const defaultContextValue$1=void 0,DialogTransitionContext=reactExports.createContext(void 0),DialogTransitionProvider=DialogTransitionContext.Provider,useDialogTransitionContext_unstable=()=>{var eo;return(eo=reactExports.useContext(DialogTransitionContext))!==null&&eo!==void 0?eo:defaultContextValue$1},renderDialog_unstable=(eo,to)=>{const{content:no,trigger:io}=eo;return jsx$1(DialogProvider,{value:to.dialog,children:jsxs(DialogSurfaceProvider,{value:to.dialogSurface,children:[io,jsx$1(Transition$2,{mountOnEnter:!0,unmountOnExit:!0,in:eo.open,nodeRef:eo.dialogRef,appear:!0,timeout:250,children:so=>jsx$1(DialogTransitionProvider,{value:so,children:no})})]})})};function useDialogContextValues_unstable(eo){const{modalType:to,open:no,dialogRef:io,dialogTitleId:so,isNestedDialog:ao,inertTrapFocus:lo,requestOpenChange:uo,modalAttributes:ho,triggerAttributes:go}=eo;return{dialog:{open:no,modalType:to,dialogRef:io,dialogTitleId:so,isNestedDialog:ao,inertTrapFocus:lo,modalAttributes:ho,triggerAttributes:go,requestOpenChange:uo},dialogSurface:!1}}const Dialog=reactExports.memo(eo=>{const to=useDialog_unstable(eo),no=useDialogContextValues_unstable(to);return renderDialog_unstable(to,no)});Dialog.displayName="Dialog";const useDialogTrigger_unstable=eo=>{const to=useDialogSurfaceContext_unstable(),{children:no,disableButtonEnhancement:io=!1,action:so=to?"close":"open"}=eo,ao=getTriggerChild(no),lo=useDialogContext_unstable(yo=>yo.requestOpenChange),{triggerAttributes:uo}=useModalAttributes(),ho=useEventCallback$3(yo=>{var So,_o;ao==null||(So=(_o=ao.props).onClick)===null||So===void 0||So.call(_o,yo),yo.isDefaultPrevented()||lo({event:yo,type:"triggerClick",open:so==="open"})}),go={...ao==null?void 0:ao.props,ref:ao==null?void 0:ao.ref,onClick:ho,...uo},mo=useARIAButtonProps((ao==null?void 0:ao.type)==="button"||(ao==null?void 0:ao.type)==="a"?ao.type:"div",{...go,type:"button"});return{children:applyTriggerPropsToChildren(no,io?go:mo)}},renderDialogTrigger_unstable=eo=>eo.children,DialogTrigger=eo=>{const to=useDialogTrigger_unstable(eo);return renderDialogTrigger_unstable(to)};DialogTrigger.displayName="DialogTrigger";DialogTrigger.isFluentTriggerComponent=!0;const useDialogActions_unstable=(eo,to)=>{const{position:no="end",fluid:io=!1}=eo;return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),position:no,fluid:io}},renderDialogActions_unstable=eo=>jsx$1(eo.root,{}),dialogActionsClassNames={root:"fui-DialogActions"},useResetStyles$1=__resetStyles("r78gbj",null,{r:[".r78gbj{column-gap:8px;row-gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.r78gbj{flex-direction:column;justify-self:stretch;}}"]}),useStyles$u=__styles({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",B6n781s:"f1f41i0t",Bv5d0be:"f1jaqex3",v4ugfu:"f2ao6jk"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Bojbm9c:"f11ihkml",Bv5d0be:"fce5bvx",v4ugfu:"f2ao6jk"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1f41i0t{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1jaqex3{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f2ao6jk{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f11ihkml{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.fce5bvx{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),useDialogActionsStyles_unstable=eo=>{const to=useResetStyles$1(),no=useStyles$u();return eo.root.className=mergeClasses(dialogActionsClassNames.root,to,eo.position==="start"&&no.gridPositionStart,eo.position==="end"&&no.gridPositionEnd,eo.fluid&&eo.position==="start"&&no.fluidStart,eo.fluid&&eo.position==="end"&&no.fluidEnd,eo.root.className),eo},DialogActions=reactExports.forwardRef((eo,to)=>{const no=useDialogActions_unstable(eo,to);return useDialogActionsStyles_unstable(no),useCustomStyleHook("useDialogActionsStyles_unstable")(no),renderDialogActions_unstable(no)});DialogActions.displayName="DialogActions";const useDialogBody_unstable=(eo,to)=>{var no;return{components:{root:"div"},root:always(getIntrinsicElementProps((no=eo.as)!==null&&no!==void 0?no:"div",{ref:to,...eo}),{elementType:"div"})}},renderDialogBody_unstable=eo=>jsx$1(eo.root,{}),dialogBodyClassNames={root:"fui-DialogBody"},useResetStyles=__resetStyles("r71plkv",null,{r:[".r71plkv{overflow-x:unset;overflow-y:unset;column-gap:8px;row-gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.r71plkv{max-width:100vw;grid-template-rows:auto 1fr auto;}}"]}),useDialogBodyStyles_unstable=eo=>{const to=useResetStyles();return eo.root.className=mergeClasses(dialogBodyClassNames.root,to,eo.root.className),eo},DialogBody=reactExports.forwardRef((eo,to)=>{const no=useDialogBody_unstable(eo,to);return useDialogBodyStyles_unstable(no),useCustomStyleHook("useDialogBodyStyles_unstable")(no),renderDialogBody_unstable(no)});DialogBody.displayName="DialogBody";const dialogTitleClassNames={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},useRootResetStyles=__resetStyles("rztv7rx","rt0yqbx",[".rztv7rx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}",".rt0yqbx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-left:0;margin-bottom:0;margin-right:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),useStyles$t=__styles({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),useActionResetStyles=__resetStyles("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),useDialogTitleInternalStyles=__resetStyles("r51tj","rgre5d",{r:[".r51tj{overflow-x:visible;overflow-y:visible;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r51tj:focus{outline-style:none;}",".r51tj:focus-visible{outline-style:none;}",".r51tj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r51tj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rgre5d{overflow-x:visible;overflow-y:visible;padding-top:0;padding-left:0;padding-bottom:0;padding-right:0;border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".rgre5d:focus{outline-style:none;}",".rgre5d:focus-visible{outline-style:none;}",".rgre5d[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rgre5d[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r51tj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rgre5d[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useDialogTitleStyles_unstable=eo=>{const to=useRootResetStyles(),no=useActionResetStyles(),io=useStyles$t();return eo.root.className=mergeClasses(dialogTitleClassNames.root,to,!eo.action&&io.rootWithoutAction,eo.root.className),eo.action&&(eo.action.className=mergeClasses(dialogTitleClassNames.action,no,eo.action.className)),eo},useDialogTitle_unstable=(eo,to)=>{const{action:no}=eo,io=useDialogContext_unstable(ao=>ao.modalType),so=useDialogTitleInternalStyles();return{components:{root:"h2",action:"div"},root:always(getIntrinsicElementProps("h2",{ref:to,id:useDialogContext_unstable(ao=>ao.dialogTitleId),...eo}),{elementType:"h2"}),action:optional(no,{renderByDefault:io==="non-modal",defaultProps:{children:reactExports.createElement(DialogTrigger,{disableButtonEnhancement:!0,action:"close"},reactExports.createElement("button",{type:"button",className:so,"aria-label":"close"},reactExports.createElement(Dismiss20Regular,null)))},elementType:"div"})}},renderDialogTitle_unstable=eo=>jsxs(reactExports.Fragment,{children:[jsx$1(eo.root,{children:eo.root.children}),eo.action&&jsx$1(eo.action,{})]}),DialogTitle=reactExports.forwardRef((eo,to)=>{const no=useDialogTitle_unstable(eo,to);return useDialogTitleStyles_unstable(no),useCustomStyleHook("useDialogTitleStyles_unstable")(no),renderDialogTitle_unstable(no)});DialogTitle.displayName="DialogTitle";const useDialogSurface_unstable=(eo,to)=>{const no=useDialogContext_unstable(So=>So.modalType),io=useDialogContext_unstable(So=>So.isNestedDialog),so=useDialogTransitionContext_unstable(),ao=useDialogContext_unstable(So=>So.modalAttributes),lo=useDialogContext_unstable(So=>So.dialogRef),uo=useDialogContext_unstable(So=>So.requestOpenChange),ho=useDialogContext_unstable(So=>So.dialogTitleId),go=useEventCallback$3(So=>{if(isResolvedShorthand(eo.backdrop)){var _o,ko;(_o=(ko=eo.backdrop).onClick)===null||_o===void 0||_o.call(ko,So)}no==="modal"&&!So.isDefaultPrevented()&&uo({event:So,open:!1,type:"backdropClick"})}),mo=useEventCallback$3(So=>{var _o;(_o=eo.onKeyDown)===null||_o===void 0||_o.call(eo,So),So.key===Escape$1&&!So.isDefaultPrevented()&&(uo({event:So,open:!1,type:"escapeKeyDown"}),So.preventDefault())}),yo=optional(eo.backdrop,{renderByDefault:no!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return yo&&(yo.onClick=go),{components:{backdrop:"div",root:"div"},backdrop:yo,isNestedDialog:io,transitionStatus:so,mountNode:eo.mountNode,root:always(getIntrinsicElementProps("div",{tabIndex:-1,"aria-modal":no!=="non-modal",role:no==="alert"?"alertdialog":"dialog","aria-labelledby":eo["aria-label"]?void 0:ho,...eo,...ao,onKeyDown:mo,ref:useMergedRefs$1(to,lo)}),{elementType:"div"})}},renderDialogSurface_unstable=(eo,to)=>jsxs(Portal$1,{mountNode:eo.mountNode,children:[eo.backdrop&&jsx$1(eo.backdrop,{}),jsx$1(DialogSurfaceProvider,{value:to.dialogSurface,children:jsx$1(eo.root,{})})]}),dialogSurfaceClassNames={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},useRootBaseStyle=__resetStyles("rhhzfde","r1n1tr5u",{r:[".rhhzfde{top:0;right:0;bottom:0;left:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-right-radius:var(--borderRadiusXLarge);border-bottom-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".rhhzfde:focus{outline-style:none;}",".rhhzfde:focus-visible{outline-style:none;}",".rhhzfde[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rhhzfde[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1n1tr5u{top:0;left:0;bottom:0;right:0;padding-top:24px;padding-left:24px;padding-bottom:24px;padding-right:24px;margin-top:auto;margin-left:auto;margin-bottom:auto;margin-right:auto;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-left-radius:var(--borderRadiusXLarge);border-bottom-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".r1n1tr5u:focus{outline-style:none;}",".r1n1tr5u:focus-visible{outline-style:none;}",".r1n1tr5u[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1n1tr5u[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rhhzfde[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.rhhzfde{max-width:100vw;}}","@media (forced-colors: active){.r1n1tr5u[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r1n1tr5u{max-width:100vw;}}"]}),useRootStyles$2=__styles({animated:{abs64n:"fk73vx1",B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f18ad807",E5pizo:"f1yzz98r",Bz10aip:"f15ofi6c"},unmounted:{},entering:{},entered:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".fk73vx1{opacity:0;}",".fc397y7{transition-duration:var(--durationGentle);}",".f1b86uth{transition-property:opacity,transform,box-shadow;}",".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1yzz98r{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.1);}",".f15ofi6c{transform:scale(0.85) translateZ(0);}",".f10nrhrw{box-shadow:var(--shadow64);}",".f186d0ee{transform:scale(1) translateZ(0);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),useBackdropBaseStyle=__resetStyles("raidwwn","r17vltcu",[".raidwwn{top:0px;right:0px;bottom:0px;left:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}",".r17vltcu{top:0px;left:0px;bottom:0px;right:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}"]),useBackdropStyles$1=__styles({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},unmounted:{},entering:{},entered:{abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),useDialogSurfaceStyles_unstable=eo=>{const{isNestedDialog:to,root:no,backdrop:io,transitionStatus:so}=eo,ao=useRootBaseStyle(),lo=useRootStyles$2(),uo=useBackdropBaseStyle(),ho=useBackdropStyles$1();return no.className=mergeClasses(dialogSurfaceClassNames.root,ao,so&&lo.animated,so&&lo[so],no.className),io&&(io.className=mergeClasses(dialogSurfaceClassNames.backdrop,uo,to&&ho.nestedDialogBackdrop,so&&ho[so],io.className)),eo};function useDialogSurfaceContextValues_unstable(eo){return{dialogSurface:!0}}const DialogSurface=reactExports.forwardRef((eo,to)=>{const no=useDialogSurface_unstable(eo,to),io=useDialogSurfaceContextValues_unstable();return useDialogSurfaceStyles_unstable(no),useCustomStyleHook("useDialogSurfaceStyles_unstable")(no),renderDialogSurface_unstable(no,io)});DialogSurface.displayName="DialogSurface";const useDialogContent_unstable=(eo,to)=>{var no;return{components:{root:"div"},root:always(getIntrinsicElementProps((no=eo.as)!==null&&no!==void 0?no:"div",{ref:to,...eo}),{elementType:"div"})}},renderDialogContent_unstable=eo=>jsx$1(eo.root,{}),dialogContentClassNames={root:"fui-DialogContent"},useStyles$s=__resetStyles("r1e0mpcm","r1equu0b",[".r1e0mpcm{padding-top:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}",".r1equu0b{padding-top:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"]),useDialogContentStyles_unstable=eo=>{const to=useStyles$s();return eo.root.className=mergeClasses(dialogContentClassNames.root,to,eo.root.className),eo},DialogContent=reactExports.forwardRef((eo,to)=>{const no=useDialogContent_unstable(eo,to);return useDialogContentStyles_unstable(no),useCustomStyleHook("useDialogContentStyles_unstable")(no),renderDialogContent_unstable(no)});DialogContent.displayName="DialogContent";const OverflowContext=createContext(void 0),overflowContextDefaultValue={itemVisibility:{},groupVisibility:{},hasOverflow:!1,registerItem:()=>()=>null,updateOverflow:()=>null,registerOverflowMenu:()=>()=>null,registerDivider:()=>()=>null},useOverflowContext=eo=>useContextSelector(OverflowContext,(to=overflowContextDefaultValue)=>eo(to)),DATA_OVERFLOWING$1="data-overflowing",DATA_OVERFLOW_GROUP="data-overflow-group";function observeResize(eo,to){var no;const io=(no=eo.ownerDocument.defaultView)===null||no===void 0?void 0:no.ResizeObserver;if(!io)return()=>null;let so=new io(to);return so.observe(eo),()=>{so==null||so.disconnect(),so=void 0}}function debounce$1(eo){let to;return()=>{to||(to=!0,queueMicrotask(()=>{to=!1,eo()}))}}function createPriorityQueue(eo){const to=[];let no=0;const io=Co=>2*Co+1,so=Co=>2*Co+2,ao=Co=>Math.floor((Co-1)/2),lo=(Co,$o)=>{const Ro=to[Co];to[Co]=to[$o],to[$o]=Ro},uo=Co=>{let $o=Co;const Ro=io(Co),Oo=so(Co);Roto.slice(0,no),clear:()=>{no=0},contains:Co=>{const $o=to.indexOf(Co);return $o>=0&&$o{if(no===0)throw new Error("Priority queue empty");const Co=to[0];return to[0]=to[--no],uo(0),Co},enqueue:Co=>{to[no++]=Co;let $o=no-1,Ro=ao($o);for(;$o>0&&eo(to[Ro],to[$o])>0;)lo(Ro,$o),$o=Ro,Ro=ao($o)},peek:()=>no===0?null:to[0],remove:Co=>{const $o=to.indexOf(Co);$o===-1||$o>=no||(to[$o]=to[--no],uo($o))},size:()=>no}}function createOverflowManager(){const eo=new Map;let to,no,io=!1,so=!0;const ao={padding:10,overflowAxis:"horizontal",overflowDirection:"end",minimumVisible:0,onUpdateItemVisibility:()=>{},onUpdateOverflow:()=>{}},lo={},uo={};let ho=()=>null;const go=(Qo,hs)=>{const gs=Qo.dequeue();return hs.enqueue(gs),lo[gs]},mo=createGroupManager();function yo(Qo,hs){if(!Qo||!hs)return 0;const gs=lo[Qo],ys=lo[hs];if(gs.priority!==ys.priority)return gs.priority>ys.priority?1:-1;const vs=ao.overflowDirection==="end"?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING;return gs.element.compareDocumentPosition(ys.element)&vs?1:-1}function So(Qo,hs,gs){return eo.has(gs)||eo.set(gs,ao.overflowAxis==="horizontal"?gs[Qo]:gs[hs]),eo.get(gs)}const _o=So.bind(null,"offsetWidth","offsetHeight"),ko=So.bind(null,"clientWidth","clientHeight"),Co=createPriorityQueue((Qo,hs)=>-1*yo(Qo,hs)),$o=createPriorityQueue(yo);function Ro(){const Qo=$o.all().map(ys=>lo[ys].element).map(_o).reduce((ys,vs)=>ys+vs,0),hs=Object.entries(mo.groupVisibility()).reduce((ys,[vs,ks])=>ys+(ks!=="hidden"&&uo[vs]?_o(uo[vs].element):0),0),gs=Co.size()>0&&no?_o(no):0;return Qo+hs+gs}const Oo=()=>{const Qo=go(Co,$o);if(ao.onUpdateItemVisibility({item:Qo,visible:!0}),Qo.groupId&&(mo.showItem(Qo.id,Qo.groupId),mo.isSingleItemVisible(Qo.id,Qo.groupId))){var hs;(hs=uo[Qo.groupId])===null||hs===void 0||hs.element.removeAttribute(DATA_OVERFLOWING$1)}},No=()=>{const Qo=go($o,Co);if(ao.onUpdateItemVisibility({item:Qo,visible:!1}),Qo.groupId){if(mo.isSingleItemVisible(Qo.id,Qo.groupId)){var hs;(hs=uo[Qo.groupId])===null||hs===void 0||hs.element.setAttribute(DATA_OVERFLOWING$1,"")}mo.hideItem(Qo.id,Qo.groupId)}},Mo=()=>{const Qo=$o.all(),hs=Co.all(),gs=Qo.map(vs=>lo[vs]),ys=hs.map(vs=>lo[vs]);ao.onUpdateOverflow({visibleItems:gs,invisibleItems:ys,groupVisibility:mo.groupVisibility()})},Bo=()=>{if(!to)return!1;eo.clear();const Qo=ko(to)-ao.padding,hs=$o.peek(),gs=Co.peek();for(;yo(Co.peek(),$o.peek())>0;)No();for(let ys=0;ys<2;ys++){for(;Ro()0||Co.size()===1;)Oo();for(;Ro()>Qo&&$o.size()>ao.minimumVisible;)No()}return $o.peek()!==hs||Co.peek()!==gs},Po=()=>{(Bo()||so)&&(so=!1,Mo())},Lo=debounce$1(Po),Go=(Qo,hs)=>{Object.assign(ao,hs),io=!0,Object.values(lo).forEach(gs=>$o.enqueue(gs.id)),to=Qo,ho=observeResize(to,gs=>{!gs[0]||!to||Lo()})},Do=Qo=>{lo[Qo.id]||(lo[Qo.id]=Qo,io&&(so=!0,$o.enqueue(Qo.id)),Qo.groupId&&(mo.addItem(Qo.id,Qo.groupId),Qo.element.setAttribute(DATA_OVERFLOW_GROUP,Qo.groupId)),Lo())},Uo=Qo=>{no=Qo},Ho=Qo=>{!Qo.groupId||uo[Qo.groupId]||(Qo.element.setAttribute(DATA_OVERFLOW_GROUP,Qo.groupId),uo[Qo.groupId]=Qo)},Yo=()=>{no=void 0},qo=Qo=>{if(!uo[Qo])return;const hs=uo[Qo];hs.groupId&&(delete uo[Qo],hs.element.removeAttribute(DATA_OVERFLOW_GROUP))},Jo=Qo=>{if(!lo[Qo])return;const hs=lo[Qo];$o.remove(Qo),Co.remove(Qo),hs.groupId&&(mo.removeItem(hs.id,hs.groupId),hs.element.removeAttribute(DATA_OVERFLOW_GROUP)),eo.delete(hs.element),delete lo[Qo],Lo()};return{addItem:Do,disconnect:()=>{ho(),to=void 0,io=!1,so=!0,Object.keys(lo).forEach(Qo=>Jo(Qo)),Object.keys(uo).forEach(Qo=>qo(Qo)),Yo(),eo.clear()},forceUpdate:Po,observe:Go,removeItem:Jo,update:Lo,addOverflowMenu:Uo,removeOverflowMenu:Yo,addDivider:Ho,removeDivider:qo}}const createGroupManager=()=>{const eo={},to={};function no(so){const ao=to[so];ao.invisibleItemIds.size&&ao.visibleItemIds.size?eo[so]="overflow":ao.visibleItemIds.size===0?eo[so]="hidden":eo[so]="visible"}function io(so){return eo[so]==="visible"||eo[so]==="overflow"}return{groupVisibility:()=>eo,isSingleItemVisible(so,ao){return io(ao)&&to[ao].visibleItemIds.has(so)&&to[ao].visibleItemIds.size===1},addItem(so,ao){var lo,uo,ho;(ho=(lo=to)[uo=ao])!==null&&ho!==void 0||(lo[uo]={visibleItemIds:new Set,invisibleItemIds:new Set}),to[ao].visibleItemIds.add(so),no(ao)},removeItem(so,ao){to[ao].invisibleItemIds.delete(so),to[ao].visibleItemIds.delete(so),no(ao)},showItem(so,ao){to[ao].invisibleItemIds.delete(so),to[ao].visibleItemIds.add(so),no(ao)},hideItem(so,ao){to[ao].invisibleItemIds.add(so),to[ao].visibleItemIds.delete(so),no(ao)}}},DATA_OVERFLOWING="data-overflowing",DATA_OVERFLOW_ITEM="data-overflow-item",DATA_OVERFLOW_MENU="data-overflow-menu",DATA_OVERFLOW_DIVIDER="data-overflow-divider",noop$b=()=>null,useOverflowContainer=(eo,to)=>{const{overflowAxis:no="horizontal",overflowDirection:io="end",padding:so=10,minimumVisible:ao=0,onUpdateItemVisibility:lo=noop$b}=to,uo=useEventCallback$3(eo),ho=reactExports.useMemo(()=>({overflowAxis:no,overflowDirection:io,padding:so,minimumVisible:ao,onUpdateItemVisibility:lo,onUpdateOverflow:uo}),[ao,lo,no,io,so,uo]),go=useFirstMount(),mo=reactExports.useRef(null),[yo,So]=reactExports.useState(()=>canUseDOM$3()?createOverflowManager():null);useIsomorphicLayoutEffect$1(()=>{go&&mo.current&&(yo==null||yo.observe(mo.current,ho))},[go,yo,ho]),useIsomorphicLayoutEffect$1(()=>{if(!mo.current||!canUseDOM$3()||go)return;const Ro=createOverflowManager();return Ro.observe(mo.current,ho),So(Ro),()=>{Ro.disconnect()}},[ho,go]);const _o=reactExports.useCallback(Ro=>(yo==null||yo.addItem(Ro),Ro.element.setAttribute(DATA_OVERFLOW_ITEM,""),()=>{Ro.element.removeAttribute(DATA_OVERFLOWING),Ro.element.removeAttribute(DATA_OVERFLOW_ITEM),yo==null||yo.removeItem(Ro.id)}),[yo]),ko=reactExports.useCallback(Ro=>{const Oo=Ro.element;return yo==null||yo.addDivider(Ro),Oo.setAttribute(DATA_OVERFLOW_DIVIDER,""),()=>{Ro.groupId&&(yo==null||yo.removeDivider(Ro.groupId)),Oo.removeAttribute(DATA_OVERFLOW_DIVIDER)}},[yo]),Co=reactExports.useCallback(Ro=>(yo==null||yo.addOverflowMenu(Ro),Ro.setAttribute(DATA_OVERFLOW_MENU,""),()=>{yo==null||yo.removeOverflowMenu(),Ro.removeAttribute(DATA_OVERFLOW_MENU)}),[yo]),$o=reactExports.useCallback(()=>{yo==null||yo.update()},[yo]);return{registerItem:_o,registerDivider:ko,registerOverflowMenu:Co,updateOverflow:$o,containerRef:mo}},updateVisibilityAttribute=({item:eo,visible:to})=>{to?eo.element.removeAttribute(DATA_OVERFLOWING):eo.element.setAttribute(DATA_OVERFLOWING,"")},useOverflowStyles=__styles({overflowMenu:{Brvla84:"fyfkpbf"},overflowingItems:{zb22lx:"f10570jf"}},{d:[".fyfkpbf [data-overflow-menu]{flex-shrink:0;}",".f10570jf [data-overflowing]{display:none;}"]}),Overflow=reactExports.forwardRef((eo,to)=>{const no=useOverflowStyles(),{children:io,minimumVisible:so,overflowAxis:ao="horizontal",overflowDirection:lo,padding:uo}=eo,[ho,go]=reactExports.useState({hasOverflow:!1,itemVisibility:{},groupVisibility:{}}),mo=Ro=>{const{visibleItems:Oo,invisibleItems:No,groupVisibility:Mo}=Ro,Bo={};Oo.forEach(Po=>{Bo[Po.id]=!0}),No.forEach(Po=>Bo[Po.id]=!1),go(()=>({hasOverflow:Ro.invisibleItems.length>0,itemVisibility:Bo,groupVisibility:Mo}))},{containerRef:yo,registerItem:So,updateOverflow:_o,registerOverflowMenu:ko,registerDivider:Co}=useOverflowContainer(mo,{overflowDirection:lo,overflowAxis:ao,padding:uo,minimumVisible:so,onUpdateItemVisibility:updateVisibilityAttribute}),$o=applyTriggerPropsToChildren(io,{ref:useMergedRefs$1(yo,to),className:mergeClasses(no.overflowMenu,no.overflowingItems,io.props.className)});return reactExports.createElement(OverflowContext.Provider,{value:{itemVisibility:ho.itemVisibility,groupVisibility:ho.groupVisibility,hasOverflow:ho.hasOverflow,registerItem:So,updateOverflow:_o,registerOverflowMenu:ko,registerDivider:Co}},$o)});function useIsOverflowItemVisible(eo){return!!useOverflowContext(to=>to.itemVisibility[eo])}const useOverflowCount=()=>useOverflowContext(eo=>Object.entries(eo.itemVisibility).reduce((to,[no,io])=>(io||to++,to),0));function useOverflowItem(eo,to,no){const io=reactExports.useRef(null),so=useOverflowContext(ao=>ao.registerItem);return useIsomorphicLayoutEffect$1(()=>{if(io.current)return so({element:io.current,id:eo,priority:to??0,groupId:no})},[eo,to,so,no]),io}function useOverflowMenu(eo){const to=useId$1("overflow-menu",eo),no=useOverflowCount(),io=useOverflowContext(uo=>uo.registerOverflowMenu),so=useOverflowContext(uo=>uo.updateOverflow),ao=reactExports.useRef(null),lo=no>0;return useIsomorphicLayoutEffect$1(()=>{if(ao.current)return io(ao.current)},[io,lo,to]),useIsomorphicLayoutEffect$1(()=>{lo&&so()},[lo,so,ao]),{ref:ao,overflowCount:no,isOverflowing:lo}}const OverflowItem=reactExports.forwardRef((eo,to)=>{const{id:no,groupId:io,priority:so,children:ao}=eo,lo=useOverflowItem(no,so,io);return applyTriggerPropsToChildren(ao,{ref:useMergedRefs$1(lo,to)})}),useToolbar_unstable=(eo,to)=>{const{size:no="medium",vertical:io=!1}=eo,so=useArrowNavigationGroup({circular:!0,axis:"both"}),ao={size:no,vertical:io,components:{root:"div"},root:always(getIntrinsicElementProps("div",{role:"toolbar",ref:to,...io&&{"aria-orientation":"vertical"},...so,...eo}),{elementType:"div"})},[lo,uo]=useToolbarSelectableState({checkedValues:eo.checkedValues,defaultCheckedValues:eo.defaultCheckedValues,onCheckedValueChange:eo.onCheckedValueChange}),ho=useEventCallback$3((mo,yo,So,_o)=>{if(yo&&So){const Co=[...(lo==null?void 0:lo[yo])||[]];_o?Co.splice(Co.indexOf(So),1):Co.push(So),uo==null||uo(mo,{name:yo,checkedItems:Co})}}),go=useEventCallback$3((mo,yo,So,_o)=>{yo&&So&&(uo==null||uo(mo,{name:yo,checkedItems:[So]}))});return{...ao,handleToggleButton:ho,handleRadio:go,checkedValues:lo??{}}},useToolbarSelectableState=eo=>{const[to,no]=useControllableState({state:eo.checkedValues,defaultState:eo.defaultCheckedValues,initialState:{}}),{onCheckedValueChange:io}=eo,so=useEventCallback$3((ao,{name:lo,checkedItems:uo})=>{io&&io(ao,{name:lo,checkedItems:uo}),no(ho=>ho?{...ho,[lo]:uo}:{[lo]:uo})});return[to,so]},ToolbarContext=createContext(void 0),toolbarContextDefaultValue={size:"medium",handleToggleButton:()=>null,handleRadio:()=>null,vertical:!1,checkedValues:{}},useToolbarContext_unstable=eo=>useContextSelector(ToolbarContext,(to=toolbarContextDefaultValue)=>eo(to)),renderToolbar_unstable=(eo,to)=>jsx$1(ToolbarContext.Provider,{value:to.toolbar,children:jsx$1(eo.root,{children:eo.root.children})}),toolbarClassNames={root:"fui-Toolbar"},useStyles$r=__styles({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"f10ra9hq",z189sj:["f19lj068","f177v4lu"],Byoj8tv:"f1y2xyjm",uwmqm3:["f177v4lu","f19lj068"]},vertical:{Beiy3e4:"f1vx9l62",a9b677:"f1acs6jw"},small:{z8tnut:"f1nbblvp",z189sj:["f8wuabp","fycuoez"],Byoj8tv:"f1ov4xf1",uwmqm3:["fycuoez","f8wuabp"]},medium:{z8tnut:"f10ra9hq",z189sj:["f19lj068","f177v4lu"],Byoj8tv:"f1y2xyjm",uwmqm3:["f177v4lu","f19lj068"]},large:{z8tnut:"f10ra9hq",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"f1y2xyjm",uwmqm3:["fekwl8i","fat0sn4"]}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f10ra9hq{padding-top:4px;}",".f19lj068{padding-right:8px;}",".f177v4lu{padding-left:8px;}",".f1y2xyjm{padding-bottom:4px;}",".f1vx9l62{flex-direction:column;}",".f1acs6jw{width:fit-content;}",".f1nbblvp{padding-top:0px;}",".f8wuabp{padding-right:4px;}",".fycuoez{padding-left:4px;}",".f1ov4xf1{padding-bottom:0px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}"]}),useToolbarStyles_unstable=eo=>{const to=useStyles$r(),{vertical:no,size:io}=eo;return eo.root.className=mergeClasses(toolbarClassNames.root,to.root,no&&to.vertical,io==="small"&&!no&&to.small,io==="medium"&&!no&&to.medium,io==="large"&&!no&&to.large,eo.root.className),eo};function useToolbarContextValues_unstable(eo){const{size:to,handleToggleButton:no,vertical:io,checkedValues:so,handleRadio:ao}=eo;return{toolbar:{size:to,vertical:io,handleToggleButton:no,handleRadio:ao,checkedValues:so}}}const Toolbar=reactExports.forwardRef((eo,to)=>{const no=useToolbar_unstable(eo,to),io=useToolbarContextValues_unstable(no);return useToolbarStyles_unstable(no),useCustomStyleHook("useToolbarStyles_unstable")(no),renderToolbar_unstable(no,io)});Toolbar.displayName="Toolbar";const useToolbarToggleButton_unstable=(eo,to)=>{const no=useToolbarContext_unstable(ho=>ho.handleToggleButton),io=useToolbarContext_unstable(ho=>{var go;return!!(!((go=ho.checkedValues[eo.name])===null||go===void 0)&&go.includes(eo.value))}),{onClick:so}=eo,lo={...useToggleButton_unstable({checked:io,...eo},to),name:eo.name,value:eo.value},uo=ho=>{if(lo.disabled){ho.preventDefault(),ho.stopPropagation();return}no==null||no(ho,lo.name,lo.value,lo.checked),so==null||so(ho)};return lo.root.onClick=uo,lo},useBaseStyles$3=__styles({selected:{sj55zd:"f16muhyy"}},{d:[".f16muhyy{color:var(--colorBrandForeground1);}"]}),useToolbarToggleButtonStyles_unstable=eo=>{useToggleButtonStyles_unstable(eo);const to=useBaseStyles$3();eo.root.className=mergeClasses(eo.root.className,eo.checked&&to.selected)},ToolbarToggleButton=reactExports.forwardRef((eo,to)=>{const no=useToolbarToggleButton_unstable(eo,to);return useToolbarToggleButtonStyles_unstable(no),useCustomStyleHook("useToolbarToggleButtonStyles_unstable")(no),renderButton_unstable(no)});ToolbarToggleButton.displayName="ToolbarToggleButton";const useToolbarRadioButton_unstable=(eo,to)=>{const no=useToolbarContext_unstable(go=>go.handleRadio),io=useToolbarContext_unstable(go=>{var mo;return!!(!((mo=go.checkedValues[eo.name])===null||mo===void 0)&&mo.includes(eo.value))}),so=useToolbarContext_unstable(go=>go.size),{onClick:ao}=eo,uo={...useToggleButton_unstable({size:so,checked:io,role:"radio","aria-checked":io,...eo},to),name:eo.name,value:eo.value},ho=useEventCallback$3(go=>{no==null||no(go,uo.name,uo.value,uo.checked),ao==null||ao(go)});return uo.root["aria-pressed"]=void 0,uo.root.onClick=ho,uo},useBaseStyles$2=__styles({selected:{sj55zd:"f16muhyy"}},{d:[".f16muhyy{color:var(--colorBrandForeground1);}"]}),useToolbarRadioButtonStyles_unstable=eo=>{useToggleButtonStyles_unstable(eo);const to=useBaseStyles$2();eo.root.className=mergeClasses(eo.root.className,eo.checked&&to.selected)},ToolbarRadioButton=reactExports.forwardRef((eo,to)=>{const no=useToolbarRadioButton_unstable(eo,to);return useToolbarRadioButtonStyles_unstable(no),useCustomStyleHook("useToolbarRadioButtonStyles_unstable")(no),renderButton_unstable(no)});ToolbarRadioButton.displayName="ToolbarRadioButton";const useToolbarGroup_unstable=(eo,to)=>({components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,role:"presentation",...eo}),{elementType:"div"})}),toolbarGroupClassNames={root:"fui-ToolbarGroup"},useToolbarGroupStyles_unstable=eo=>(eo.root.className=mergeClasses(toolbarGroupClassNames.root,eo.root.className),eo),renderToolbarGroup_unstable=eo=>jsx$1(eo.root,{children:eo.root.children}),ToolbarRadioGroup=reactExports.forwardRef((eo,to)=>{const no=useToolbarGroup_unstable({role:"radiogroup",...eo},to);return useToolbarGroupStyles_unstable(no),useCustomStyleHook("useToolbarGroupStyles_unstable")(no),renderToolbarGroup_unstable(no)});ToolbarRadioGroup.displayName="ToolbarRadioGroup";const useCardSelectable=(eo,{referenceLabel:to,referenceId:no},io)=>{const{checkbox:so={},onSelectionChange:ao,floatingAction:lo,onClick:uo,onKeyDown:ho}=eo,{findAllFocusable:go}=useFocusFinders(),mo=reactExports.useRef(null),[yo,So]=useControllableState({state:eo.selected,defaultState:eo.defaultSelected,initialState:!1}),_o=[eo.selected,eo.defaultSelected,ao].some(Po=>typeof Po<"u"),[ko,Co]=reactExports.useState(!1),$o=reactExports.useCallback(Po=>{if(!io.current)return!1;const Lo=go(io.current),Go=Po.target,Do=Lo.some(Ho=>Ho.contains(Go)),Uo=(mo==null?void 0:mo.current)===Go;return Do&&!Uo},[io,go]),Ro=reactExports.useCallback(Po=>{if($o(Po))return;const Lo=!yo;So(Lo),ao&&ao(Po,{selected:Lo})},[ao,yo,So,$o]),Oo=reactExports.useCallback(Po=>{[Enter].includes(Po.key)&&(Po.preventDefault(),Ro(Po))},[Ro]),No=reactExports.useMemo(()=>{if(!_o||lo)return;const Po={};return no?Po["aria-labelledby"]=no:to&&(Po["aria-label"]=to),optional(so,{defaultProps:{ref:mo,type:"checkbox",checked:yo,onChange:Lo=>Ro(Lo),onFocus:()=>Co(!0),onBlur:()=>Co(!1),...Po},elementType:"input"})},[so,lo,yo,_o,Ro,no,to]),Mo=reactExports.useMemo(()=>{if(lo)return optional(lo,{defaultProps:{ref:mo},elementType:"div"})},[lo]),Bo=reactExports.useMemo(()=>_o?{onClick:mergeCallbacks(uo,Ro),onKeyDown:mergeCallbacks(ho,Oo)}:null,[_o,Ro,uo,ho,Oo]);return{selected:yo,selectable:_o,selectFocused:ko,selectableCardProps:Bo,checkboxSlot:No,floatingActionSlot:Mo}},cardContext=reactExports.createContext(void 0),cardContextDefaultValue={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},CardProvider=cardContext.Provider,useCardContext_unstable=()=>{var eo;return(eo=reactExports.useContext(cardContext))!==null&&eo!==void 0?eo:cardContextDefaultValue},focusMap={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},useCardInteractive=({focusMode:eo="off",...to})=>{const no=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(ao=>to[ao]),so={...useFocusableGroup({tabBehavior:focusMap[no?"no-tab":eo]}),tabIndex:0};return{interactive:no,focusAttributes:!no&&eo==="off"?null:so}},useCard_unstable=(eo,to)=>{const{appearance:no="filled",orientation:io="vertical",size:so="medium"}=eo,[ao,lo]=reactExports.useState(cardContextDefaultValue.selectableA11yProps.referenceId),[uo,ho]=reactExports.useState(cardContextDefaultValue.selectableA11yProps.referenceId),go=useFocusWithin(),{selectable:mo,selected:yo,selectableCardProps:So,selectFocused:_o,checkboxSlot:ko,floatingActionSlot:Co}=useCardSelectable(eo,{referenceId:ao,referenceLabel:uo},go),$o=useMergedRefs$1(go,to),{interactive:Ro,focusAttributes:Oo}=useCardInteractive(eo);return{appearance:no,orientation:io,size:so,interactive:Ro,selectable:mo,selectFocused:_o,selected:yo,selectableA11yProps:{setReferenceId:lo,referenceId:ao,referenceLabel:uo,setReferenceLabel:ho},components:{root:"div",floatingAction:"div",checkbox:"input"},root:always(getIntrinsicElementProps("div",{ref:$o,role:"group",...Oo,...eo,...So}),{elementType:"div"}),floatingAction:Co,checkbox:ko}},renderCard_unstable=(eo,to)=>jsx$1(eo.root,{children:jsxs(CardProvider,{value:to,children:[eo.checkbox?jsx$1(eo.checkbox,{}):null,eo.floatingAction?jsx$1(eo.floatingAction,{}):null,eo.root.children]})}),cardHeaderClassNames={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},useStyles$q=__styles({root:{Bkc6ea2:"fkufhic",mc9l5x:"f13qh94s",t4k1zu:"f8a668j",Bt984gj:"f122n59"},image:{mc9l5x:"ftuwxu6",t21cq0:["fql5097","f6yss9k"],Br312pm:"fwpfdsa",Ijaq50:"fldnz9j"},header:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94",mc9l5x:"f22iagw"},description:{Br312pm:"fd46tj4",Ijaq50:"faunodf",mc9l5x:"f22iagw"},action:{Frg6f3:["f6yss9k","fql5097"],Br312pm:"fis13di",Ijaq50:"fldnz9j"}},{d:[".fkufhic{--fui-CardHeader--gap:12px;}",".f13qh94s{display:grid;}",".f8a668j{grid-auto-columns:min-content 1fr min-content;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".fql5097{margin-right:var(--fui-CardHeader--gap);}",".f6yss9k{margin-left:var(--fui-CardHeader--gap);}",".fwpfdsa{grid-column-start:1;}",".fldnz9j{grid-row-start:span 2;}",".fd46tj4{grid-column-start:2;}",".f16hsg94{grid-row-start:1;}",".f22iagw{display:flex;}",".faunodf{grid-row-start:2;}",".fis13di{grid-column-start:3;}"]}),useCardHeaderStyles_unstable=eo=>{const to=useStyles$q();return eo.root.className=mergeClasses(cardHeaderClassNames.root,to.root,eo.root.className),eo.image&&(eo.image.className=mergeClasses(cardHeaderClassNames.image,to.image,eo.image.className)),eo.header&&(eo.header.className=mergeClasses(cardHeaderClassNames.header,to.header,eo.header.className)),eo.description&&(eo.description.className=mergeClasses(cardHeaderClassNames.description,to.description,eo.description.className)),eo.action&&(eo.action.className=mergeClasses(cardHeaderClassNames.action,to.action,eo.action.className)),eo},cardClassNames={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},useStyles$p=__styles({root:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bbmb7ep:["fifeqxg","f899z7z"],Beyfa6y:["f899z7z","fifeqxg"],B7oj6ja:["f4h3tyx","f18ur2pz"],Btl43ni:["f18ur2pz","f4h3tyx"],z8tnut:"f1lplnzb",z189sj:["f10m5gbb","f1k04kkk"],Byoj8tv:"fhftqfp",uwmqm3:["f1k04kkk","f10m5gbb"],i8kkvl:"fxsr4vj",Belr9w4:"fcvsdzp",mc9l5x:"f22iagw",qhf8xq:"f10pi13n",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],By385i5:"fo72kxq",Bsft5z2:"f13zj6fq",B80jsxd:"f1nwj1ja",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"f6czdpx",Ihftqj:["f13hvwk3","f1en4csx"],Bcgy8vk:"f1i1u9k0",Bhxzhr1:["f1en4csx","f13hvwk3"],B3778ie:["f1qnomq5","f2fl922"],d9w3h3:["f2fl922","f1qnomq5"],Bl18szs:["f1anhtl","f1n2zcl3"],B4j8arr:["f1n2zcl3","f1anhtl"],B2jhnfs:"f16v3d5c",wiictr:"f1su8t2g"},focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"f99gebs",clg4pj:["f13b0oaq","f8t2bz6"],hgwjuy:"f1jvq617",Bonggc9:["f8t2bz6","f13b0oaq"],B1tsrr9:["f11unbnk","fbd201q"],Dah5zi:["fbd201q","f11unbnk"],Bkh64rk:["f12nqxso","f1uguk4w"],qqdqy8:["f1uguk4w","f12nqxso"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f125hn41",Bil7v7r:["fgxkx34","f1v56tyl"],skfxo0:"fdxas6f",jo1ztg:["f1v56tyl","fgxkx34"],Ba3ybja:["fxwickw","f1ia5cve"],az1dzo:["f1ia5cve","fxwickw"],vppk2z:["f194aguw","fqicc6c"],B6352mv:["fqicc6c","f194aguw"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Bnoktp0:"fpfyeui",Idhjb2:"fwi74qw",ihgzqh:["ffcmwrh","f6ppoih"],Bgp6ld0:["f1dc9p14","fd933vt"],Bbucpmy:"f18esqgw"},orientationVertical:{Beiy3e4:"f1vx9l62",Bt4kzjz:["fobhde4","fx5r7kn"],B1ou843:["fx5r7kn","fobhde4"],y1433z:"f19chtn8",B7egwnw:"fuvs6re",B49b4xf:"fy4glsf"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{d:[".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fifeqxg{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f899z7z{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f4h3tyx{border-top-right-radius:var(--fui-Card--border-radius);}",".f18ur2pz{border-top-left-radius:var(--fui-Card--border-radius);}",".f1lplnzb{padding-top:var(--fui-Card--size);}",".f10m5gbb{padding-right:var(--fui-Card--size);}",".f1k04kkk{padding-left:var(--fui-Card--size);}",".fhftqfp{padding-bottom:var(--fui-Card--size);}",".fxsr4vj{column-gap:var(--fui-Card--size);}",".fcvsdzp{row-gap:var(--fui-Card--size);}",".f22iagw{display:flex;}",".f10pi13n{position:relative;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fo72kxq::after{bottom:0;}",'.f13zj6fq::after{content:"";}',".f1nwj1ja::after{pointer-events:none;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f1i1u9k0::after{border-bottom-width:var(--strokeWidthThin);}",".f1qnomq5::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f2fl922::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f1anhtl::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1n2zcl3::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f16v3d5c>.fui-CardHeader,.f16v3d5c>.fui-CardFooter{flex-shrink:0;}",".f1su8t2g>:not(.fui-CardPreview):not(.fui-CardHeader):not(.fui-CardFooter){flex-grow:1;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".f99gebs[data-fui-focus-visible]::after{border-top-width:var(--strokeWidthThick);}",".f13b0oaq[data-fui-focus-visible]::after{border-right-width:var(--strokeWidthThick);}",".f8t2bz6[data-fui-focus-visible]::after{border-left-width:var(--strokeWidthThick);}",".f1jvq617[data-fui-focus-visible]::after{border-bottom-width:var(--strokeWidthThick);}",".f11unbnk[data-fui-focus-visible]::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".fbd201q[data-fui-focus-visible]::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f12nqxso[data-fui-focus-visible]::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1uguk4w[data-fui-focus-visible]::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f125hn41[data-fui-focus-within]:focus-within::after{border-top-width:var(--strokeWidthThick);}",".fgxkx34[data-fui-focus-within]:focus-within::after{border-right-width:var(--strokeWidthThick);}",".f1v56tyl[data-fui-focus-within]:focus-within::after{border-left-width:var(--strokeWidthThick);}",".fdxas6f[data-fui-focus-within]:focus-within::after{border-bottom-width:var(--strokeWidthThick);}",".fxwickw[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f1ia5cve[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f194aguw[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--fui-Card--border-radius);}",".fqicc6c[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--fui-Card--border-radius);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".fpfyeui>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".fwi74qw>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.ffcmwrh>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.f6ppoih>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1dc9p14>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.fd933vt>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f18esqgw>.fui-CardHeader:last-of-type,.f18esqgw>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".fobhde4>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".fx5r7kn>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.f19chtn8>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".fuvs6re>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.fy4glsf>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),useCardStyles_unstable=eo=>{const to=useStyles$p(),no={horizontal:to.orientationHorizontal,vertical:to.orientationVertical},io={small:to.sizeSmall,medium:to.sizeMedium,large:to.sizeLarge},so={filled:to.filled,"filled-alternative":to.filledAlternative,outline:to.outline,subtle:to.subtle},ao={filled:to.filledInteractiveSelected,"filled-alternative":to.filledAlternativeInteractiveSelected,outline:to.outlineInteractiveSelected,subtle:to.subtleInteractiveSelected},lo={filled:to.filledInteractive,"filled-alternative":to.filledAlternativeInteractive,outline:to.outlineInteractive,subtle:to.subtleInteractive},uo=eo.interactive||eo.selectable,ho=reactExports.useMemo(()=>eo.selectable?eo.selectFocused?to.selectableFocused:"":to.focused,[eo.selectFocused,eo.selectable,to.focused,to.selectableFocused]);return eo.root.className=mergeClasses(cardClassNames.root,to.root,no[eo.orientation],io[eo.size],so[eo.appearance],uo&&lo[eo.appearance],eo.selected&&ao[eo.appearance],ho,uo&&to.highContrastInteractive,eo.selected&&to.highContrastSelected,eo.root.className),eo.floatingAction&&(eo.floatingAction.className=mergeClasses(cardClassNames.floatingAction,to.select,eo.floatingAction.className)),eo.checkbox&&(eo.checkbox.className=mergeClasses(cardClassNames.checkbox,to.hiddenCheckbox,eo.checkbox.className)),eo};function useCardContextValue({selectableA11yProps:eo}){return{selectableA11yProps:eo}}const Card=reactExports.forwardRef((eo,to)=>{const no=useCard_unstable(eo,to),io=useCardContextValue(no);return useCardStyles_unstable(no),renderCard_unstable(no,io)});Card.displayName="Card";function getChildWithId(eo){function to(no){return reactExports.isValidElement(no)&&!!no.props.id}return reactExports.Children.toArray(eo).find(to)}function getReferenceId(eo,to,no){return eo||(to!=null&&to.props.id?to.props.id:no)}const useCardHeader_unstable=(eo,to)=>{const{image:no,header:io,description:so,action:ao}=eo,{selectableA11yProps:{referenceId:lo,setReferenceId:uo}}=useCardContext_unstable(),ho=reactExports.useRef(null),go=reactExports.useRef(!1),mo=useId$1(cardHeaderClassNames.header,lo),yo=optional(io,{renderByDefault:!0,defaultProps:{ref:ho,id:go.current?void 0:lo},elementType:"div"});return reactExports.useEffect(()=>{var So;const _o=go.current||(So=ho.current)===null||So===void 0?void 0:So.id,ko=getChildWithId(yo==null?void 0:yo.children);go.current=!!ko,uo(getReferenceId(_o,ko,mo))},[mo,io,yo,uo]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),image:optional(no,{elementType:"div"}),header:yo,description:optional(so,{elementType:"div"}),action:optional(ao,{elementType:"div"})}},renderCardHeader_unstable=eo=>jsxs(eo.root,{children:[eo.image&&jsx$1(eo.image,{}),jsx$1(eo.header,{}),eo.description&&jsx$1(eo.description,{}),eo.action&&jsx$1(eo.action,{})]}),CardHeader=reactExports.forwardRef((eo,to)=>{const no=useCardHeader_unstable(eo,to);return useCardHeaderStyles_unstable(no),renderCardHeader_unstable(no)});CardHeader.displayName="CardHeader";const emptyImmutableSet=createImmutableSet();function dangerouslyCreateImmutableSet(eo){return{size:eo.size,add(to){const no=new Set(eo);return no.add(to),dangerouslyCreateImmutableSet(no)},clear(){return emptyImmutableSet},delete(to){const no=new Set(eo);return no.delete(to),dangerouslyCreateImmutableSet(no)},has(to){return eo.has(to)},[Symbol.iterator](){return eo[Symbol.iterator]()},dangerouslyGetInternalSet_unstable:()=>eo}}function isImmutableSet(eo){return typeof eo=="object"&&eo!==null&&"dangerouslyGetInternalSet_unstable"in eo}function createImmutableSet(eo){const to=new Set(eo);return dangerouslyCreateImmutableSet(to)}const ImmutableSet={empty:emptyImmutableSet,create:createImmutableSet,isImmutableSet,dangerouslyCreate_unstable:dangerouslyCreateImmutableSet};function createOpenItems(eo){return eo===void 0?ImmutableSet.empty:ImmutableSet.isImmutableSet(eo)?eo:ImmutableSet.create(eo)}function useControllableOpenItems(eo){return useControllableState({state:reactExports.useMemo(()=>eo.openItems&&createOpenItems(eo.openItems),[eo.openItems]),defaultState:()=>createOpenItems(eo.defaultOpenItems),initialState:ImmutableSet.empty})}function createNextOpenItems(eo,to){if(eo.value===null)return to;const no=to.has(eo.value);if(eo.open?no:!no)return to;const io=ImmutableSet.create(to);return eo.open?io.add(eo.value):io.delete(eo.value)}const emptyImmutableMap=createImmutableMap();function createImmutableMap(eo){const to=new Map(eo);return dangerouslyCreateImmutableMap(to)}function dangerouslyCreateImmutableMap(eo){return{size:eo.size,set:(to,no)=>{const io=new Map(eo);return io.set(to,no),dangerouslyCreateImmutableMap(io)},get:to=>eo.get(to),clear:()=>emptyImmutableMap,delete(to){const no=new Map(eo);return no.delete(to),dangerouslyCreateImmutableMap(no)},has:to=>eo.has(to),[Symbol.iterator]:()=>eo[Symbol.iterator](),dangerouslyGetInternalMap_unstable:()=>eo}}function isImmutableMap(eo){return typeof eo=="object"&&eo!==null&&"dangerouslyGetInternalMap_unstable"in eo}const ImmutableMap={empty:emptyImmutableMap,create:createImmutableMap,isImmutableMap,dangerouslyCreate_unstable:dangerouslyCreateImmutableMap};function createCheckedItems(eo){if(eo===void 0)return ImmutableMap.empty;if(ImmutableMap.isImmutableMap(eo))return eo;const to=new Map;for(const no of eo)Array.isArray(no)?to.set(no[0],no[1]):to.set(no,!0);return ImmutableMap.dangerouslyCreate_unstable(to)}function useNestedCheckedItems(eo){return reactExports.useMemo(()=>createCheckedItems(eo.checkedItems),[eo.checkedItems])}function createNextNestedCheckedItems(eo,to){return eo.selectionMode==="single"?ImmutableMap.create([[eo.value,eo.checked]]):eo.selectionMode==="multiselect"?to.set(eo.value,eo.checked):to}const defaultSubTreeContextValue={level:0,contextType:"subtree"},SubtreeContext=reactExports.createContext(void 0),useSubtreeContext_unstable=()=>{var eo;return(eo=reactExports.useContext(SubtreeContext))!==null&&eo!==void 0?eo:defaultSubTreeContextValue},treeItemLevelToken="--fluent-TreeItem--level",treeDataTypes={ArrowLeft,ArrowRight,Enter,Click:"Click",ExpandIconClick:"ExpandIconClick",End,Home,ArrowUp,ArrowDown,TypeAhead:"TypeAhead",Change:"Change"};function useRootTree(eo,to){const{appearance:no="subtle",size:io="medium",selectionMode:so="none"}=eo,ao=reactExports.useMemo(()=>createOpenItems(eo.openItems),[eo.openItems]),lo=reactExports.useMemo(()=>createCheckedItems(eo.checkedItems),[eo.checkedItems]),uo=yo=>{var So;const _o=yo.itemType==="branch"&&!ao.has(yo.value),ko=createNextOpenItems({value:yo.value,open:_o},ao);(So=eo.onOpenChange)===null||So===void 0||So.call(eo,yo.event,{...yo,open:_o,openItems:ko.dangerouslyGetInternalSet_unstable()})},ho=yo=>{var So;so!=="none"&&((So=eo.onCheckedChange)===null||So===void 0||So.call(eo,yo.event,{...yo,selectionMode:so,checkedItems:lo.dangerouslyGetInternalMap_unstable()}))},go=yo=>{var So;switch((So=eo.onNavigation)===null||So===void 0||So.call(eo,yo.event,yo),yo.type){case treeDataTypes.ArrowDown:case treeDataTypes.ArrowUp:case treeDataTypes.Home:case treeDataTypes.End:yo.event.preventDefault()}},mo=useEventCallback$3(yo=>{switch(yo.requestType){case"navigate":return go(yo);case"open":return uo(yo);case"selection":return ho(yo)}});return{components:{root:"div"},contextType:"root",selectionMode:so,open:!0,appearance:no,size:io,level:1,openItems:ao,checkedItems:lo,requestTreeResponse:mo,root:always(getIntrinsicElementProps("div",{ref:to,role:"tree","aria-multiselectable":so==="multiselect"?!0:void 0,...eo}),{elementType:"div"})}}const defaultTreeContextValue={level:0,contextType:"root",treeType:"nested",selectionMode:"none",openItems:ImmutableSet.empty,checkedItems:ImmutableMap.empty,requestTreeResponse:noop$a,appearance:"subtle",size:"medium"};function noop$a(){}const TreeContext=createContext(void 0),useTreeContext_unstable=eo=>useContextSelector(TreeContext,(to=defaultTreeContextValue)=>eo(to)),headlessTreeRootId="__fuiHeadlessTreeRoot",defaultContextValue={value:headlessTreeRootId,selectionRef:reactExports.createRef(),layoutRef:reactExports.createRef(),treeItemRef:reactExports.createRef(),subtreeRef:reactExports.createRef(),actionsRef:reactExports.createRef(),expandIconRef:reactExports.createRef(),isActionsVisible:!1,isAsideVisible:!1,itemType:"leaf",open:!1,checked:!1},TreeItemContext=createContext(void 0),{Provider:TreeItemProvider}=TreeItemContext,useTreeItemContext_unstable=eo=>useContextSelector(TreeItemContext,(to=defaultContextValue)=>eo(to));function useSubtree(eo,to){const no=useTreeItemContext_unstable(ao=>ao.subtreeRef),{level:io}=useSubtreeContext_unstable();return{contextType:"subtree",open:useTreeItemContext_unstable(ao=>ao.open),components:{root:"div"},level:io+1,root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,no),role:"group",...eo}),{elementType:"div"})}}function nextTypeAheadElement(eo,to){const no=to.toLowerCase(),io=ao=>{var lo;return((lo=ao.textContent)===null||lo===void 0?void 0:lo.trim().charAt(0).toLowerCase())===no?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP};let so=eo.nextElement(io);return so||(eo.currentElement=eo.root,so=eo.nextElement(io)),so}function useRovingTabIndex$1(){const eo=reactExports.useRef(),to=reactExports.useCallback(io=>{io.currentElement=io.root;let so=io.firstChild(lo=>lo.tabIndex===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);if(io.currentElement=io.root,so??(so=io.firstChild()),!so)return;so.tabIndex=0,eo.current=so;let ao=null;for(;(ao=io.nextElement())&&ao!==so;)ao.tabIndex=-1},[]);return{rove:reactExports.useCallback(io=>{eo.current&&(eo.current.tabIndex=-1,io.tabIndex=0,io.focus(),eo.current=io)},[]),initialize:to}}function createHTMLElementWalker(eo,to,no=()=>NodeFilter.FILTER_ACCEPT){let io;const so=to.createTreeWalker(eo,NodeFilter.SHOW_ELEMENT,{acceptNode(ao){if(!isHTMLElement$6(ao))return NodeFilter.FILTER_REJECT;const lo=no(ao);var uo;return lo===NodeFilter.FILTER_ACCEPT&&(uo=io==null?void 0:io(ao))!==null&&uo!==void 0?uo:lo}});return{get root(){return so.root},get currentElement(){return so.currentNode},set currentElement(ao){so.currentNode=ao},firstChild:ao=>{io=ao;const lo=so.firstChild();return io=void 0,lo},lastChild:ao=>{io=ao;const lo=so.lastChild();return io=void 0,lo},nextElement:ao=>{io=ao;const lo=so.nextNode();return io=void 0,lo},nextSibling:ao=>{io=ao;const lo=so.nextSibling();return io=void 0,lo},parentElement:ao=>{io=ao;const lo=so.parentNode();return io=void 0,lo},previousElement:ao=>{io=ao;const lo=so.previousNode();return io=void 0,lo},previousSibling:ao=>{io=ao;const lo=so.previousSibling();return io=void 0,lo}}}const treeItemFilter=eo=>eo.getAttribute("role")==="treeitem"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP;function useHTMLElementWalkerRef(){const{targetDocument:eo}=useFluent(),to=reactExports.useRef(),no=reactExports.useCallback(io=>{to.current=eo&&io?createHTMLElementWalker(io,eo,treeItemFilter):void 0},[eo]);return{walkerRef:to,rootRef:no}}function useTreeNavigation(){const{rove:eo,initialize:to}=useRovingTabIndex$1(),{walkerRef:no,rootRef:io}=useHTMLElementWalkerRef(),so=reactExports.useCallback(uo=>{uo&&no.current&&to(no.current)},[no,to]),ao=uo=>{if(!no.current)return null;switch(uo.type){case treeDataTypes.Click:return uo.target;case treeDataTypes.TypeAhead:return no.current.currentElement=uo.target,nextTypeAheadElement(no.current,uo.event.key);case treeDataTypes.ArrowLeft:return no.current.currentElement=uo.target,no.current.parentElement();case treeDataTypes.ArrowRight:return no.current.currentElement=uo.target,no.current.firstChild();case treeDataTypes.End:return no.current.currentElement=no.current.root,lastChildRecursive(no.current);case treeDataTypes.Home:return no.current.currentElement=no.current.root,no.current.firstChild();case treeDataTypes.ArrowDown:return no.current.currentElement=uo.target,no.current.nextElement();case treeDataTypes.ArrowUp:return no.current.currentElement=uo.target,no.current.previousElement()}};function lo(uo){const ho=ao(uo);ho&&eo(ho)}return{navigate:lo,rootRef:useMergedRefs$1(io,so)}}function lastChildRecursive(eo){let to=null,no=null;for(;no=eo.lastChild();)to=no;return to}const useTree_unstable=(eo,to)=>reactExports.useContext(SubtreeContext)===void 0?useNestedRootTree(eo,to):useNestedSubtree(eo,to);function useNestedRootTree(eo,to){const[no,io]=useControllableOpenItems(eo),so=useNestedCheckedItems(eo),ao=useTreeNavigation();return Object.assign(useRootTree({...eo,openItems:no,checkedItems:so,onOpenChange:useEventCallback$3((lo,uo)=>{var ho;const go=createNextOpenItems(uo,no);(ho=eo.onOpenChange)===null||ho===void 0||ho.call(eo,lo,{...uo,openItems:go.dangerouslyGetInternalSet_unstable()}),io(go)}),onNavigation:useEventCallback$3((lo,uo)=>{var ho;(ho=eo.onNavigation)===null||ho===void 0||ho.call(eo,lo,uo),lo.isDefaultPrevented()||ao.navigate(uo)}),onCheckedChange:useEventCallback$3((lo,uo)=>{var ho;const go=createNextNestedCheckedItems(uo,so);(ho=eo.onCheckedChange)===null||ho===void 0||ho.call(eo,lo,{...uo,checkedItems:go.dangerouslyGetInternalMap_unstable()})})},useMergedRefs$1(to,ao.rootRef)),{treeType:"nested"})}function useNestedSubtree(eo,to){return useSubtree(eo,to)}function useTreeContextValues_unstable(eo){if(eo.contextType==="root"){const{openItems:to,level:no,contextType:io,treeType:so,checkedItems:ao,selectionMode:lo,appearance:uo,size:ho,requestTreeResponse:go}=eo;return{tree:{treeType:so,size:ho,openItems:to,appearance:uo,checkedItems:ao,selectionMode:lo,contextType:io,level:no,requestTreeResponse:go}}}return{tree:reactExports.useMemo(()=>({level:eo.level,contextType:"subtree"}),[eo.level])}}const treeClassNames={root:"fui-Tree"},useBaseStyles$1=__resetStyles("rnv2ez3",null,[".rnv2ez3{display:flex;flex-direction:column;row-gap:var(--spacingVerticalXXS);}"]),useStyles$o=__styles({subtree:{z8tnut:"fclwglc"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}"]}),useTreeStyles_unstable=eo=>{const to=useBaseStyles$1(),no=useStyles$o(),io=eo.level>1;return eo.root.className=mergeClasses(treeClassNames.root,to,io&&no.subtree,eo.root.className),eo},rootSubtreeContextValue={level:1,contextType:"subtree"},TreeProvider=eo=>eo.value.contextType==="subtree"?reactExports.createElement(SubtreeContext.Provider,{value:eo.value},eo.children):reactExports.createElement(TreeContext.Provider,{value:eo.value},reactExports.createElement(SubtreeContext.Provider,{value:rootSubtreeContextValue},eo.children));TreeProvider.displayName="TreeProvider";const renderTree_unstable=(eo,to)=>jsx$1(TreeProvider,{value:to.tree,children:eo.open&&jsx$1(eo.root,{children:eo.root.children})}),Tree$1=reactExports.forwardRef((eo,to)=>{const no=useTree_unstable(eo,to),io=useTreeContextValues_unstable(no);return useTreeStyles_unstable(no),renderTree_unstable(no,io)});Tree$1.displayName="Tree";const dataTreeItemValueAttrName="data-fui-tree-item-value";function useTreeItem_unstable(eo,to){useTreeContext_unstable(ps=>ps.treeType);const no=useTreeContext_unstable(ps=>ps.requestTreeResponse),{level:io}=useSubtreeContext_unstable(),so=useTreeItemContext_unstable(ps=>{var Qo;return(Qo=eo.parentValue)!==null&&Qo!==void 0?Qo:ps.value}),ao=useId$1("fuiTreeItemValue-");var lo;const uo=(lo=eo.value)!==null&&lo!==void 0?lo:ao,{onClick:ho,onKeyDown:go,onMouseOver:mo,onFocus:yo,onMouseOut:So,onBlur:_o,onChange:ko,as:Co="div",itemType:$o="leaf","aria-level":Ro=io,...Oo}=eo,No=reactExports.useRef(null),Mo=reactExports.useRef(null),Bo=reactExports.useRef(null),Po=reactExports.useRef(null),Lo=reactExports.useRef(null),Go=reactExports.useRef(null),Do=useTreeContext_unstable(ps=>{var Qo;return(Qo=eo.open)!==null&&Qo!==void 0?Qo:ps.openItems.has(uo)}),Uo=useTreeContext_unstable(ps=>ps.selectionMode),Ho=useTreeContext_unstable(ps=>{var Qo;return(Qo=ps.checkedItems.get(uo))!==null&&Qo!==void 0?Qo:!1}),Yo=useEventCallback$3(ps=>{if(ho==null||ho(ps),ps.isDefaultPrevented()||No.current&&elementContains$1(No.current,ps.target)||Po.current&&elementContains$1(Po.current,ps.target)||Lo.current&&elementContains$1(Lo.current,ps.target))return;const ys=Mo.current&&elementContains$1(Mo.current,ps.target);reactDomExports.unstable_batchedUpdates(()=>{var vs;const ks={event:ps,value:uo,open:!Do,target:ps.currentTarget,type:ys?treeDataTypes.ExpandIconClick:treeDataTypes.Click};(vs=eo.onOpenChange)===null||vs===void 0||vs.call(eo,ps,ks),no({...ks,itemType:$o,requestType:"open"}),no({...ks,itemType:$o,parentValue:so,requestType:"navigate",type:treeDataTypes.Click})})}),qo=useEventCallback$3(ps=>{if(go==null||go(ps),ps.isDefaultPrevented()||ps.currentTarget!==ps.target)return;switch(ps.key){case Space:if(Uo!=="none"){var Qo;(Qo=Lo.current)===null||Qo===void 0||Qo.click(),ps.preventDefault()}return;case treeDataTypes.Enter:return ps.currentTarget.click();case treeDataTypes.End:case treeDataTypes.Home:case treeDataTypes.ArrowUp:case treeDataTypes.ArrowDown:return no({requestType:"navigate",event:ps,value:uo,itemType:$o,parentValue:so,type:ps.key,target:ps.currentTarget});case treeDataTypes.ArrowLeft:{if(Ro===1&&!Do)return;const ks={value:uo,event:ps,open:!Do,type:ps.key,target:ps.currentTarget};if(Do){var hs;(hs=eo.onOpenChange)===null||hs===void 0||hs.call(eo,ps,ks)}return no({...ks,itemType:$o,parentValue:so,requestType:Do?"open":"navigate"})}case treeDataTypes.ArrowRight:if($o==="leaf")return;const vs={value:uo,event:ps,open:!Do,type:ps.key,target:ps.currentTarget};if(!Do){var gs;(gs=eo.onOpenChange)===null||gs===void 0||gs.call(eo,ps,vs)}return no({...vs,itemType:$o,parentValue:so,requestType:Do?"navigate":"open"})}ps.key.length===1&&ps.key.match(/\w/)&&!ps.altKey&&!ps.ctrlKey&&!ps.metaKey&&no({requestType:"navigate",event:ps,target:ps.currentTarget,value:uo,itemType:$o,type:treeDataTypes.TypeAhead,parentValue:so})}),Jo=useEventCallback$3(ps=>{ko==null||ko(ps),!(ps.isDefaultPrevented()||Po.current&&elementContains$1(Po.current,ps.target))&&no({requestType:"selection",event:ps,value:uo,itemType:$o,type:"Change",target:ps.currentTarget,checked:Ho==="mixed"?!0:!Ho})});return{value:uo,open:Do,checked:Ho,subtreeRef:Po,layoutRef:Bo,selectionRef:Lo,expandIconRef:Mo,treeItemRef:Go,actionsRef:No,itemType:$o,level:Ro,components:{root:"div"},isAsideVisible:!1,isActionsVisible:!1,root:always(getIntrinsicElementProps(Co,{tabIndex:-1,[dataTreeItemValueAttrName]:uo,...Oo,ref:useMergedRefs$1(to,Go),role:"treeitem","aria-level":Ro,"aria-checked":Uo==="multiselect"?Ho:void 0,"aria-selected":Uo==="single"?Ho:"false","aria-expanded":$o==="branch"?Do:void 0,onClick:Yo,onKeyDown:qo,onChange:Jo}),{elementType:"div"})}}const renderTreeItem_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(TreeItemProvider,{value:to.treeItem,children:eo.root.children})}),treeItemLayoutClassNames={root:"fui-TreeItemLayout",iconBefore:"fui-TreeItemLayout__iconBefore",main:"fui-TreeItemLayout__main",iconAfter:"fui-TreeItemLayout__iconAfter",expandIcon:"fui-TreeItemLayout__expandIcon",aside:"fui-TreeItemLayout__aside",actions:"fui-TreeItemLayout__actions",selector:"fui-TreeItemLayout__selector"},useRootBaseStyles$3=__resetStyles("rcu2h5o",null,[".rcu2h5o{display:flex;align-items:center;min-height:32px;box-sizing:border-box;grid-row-start:layout;grid-column-start:layout;grid-row-end:layout;grid-column-end:layout;}",".rcu2h5o:active{color:var(--colorNeutralForeground2Pressed);background-color:var(--colorSubtleBackgroundPressed);}",".rcu2h5o:active .fui-TreeItemLayout__expandIcon{color:var(--colorNeutralForeground3Pressed);}",".rcu2h5o:hover{color:var(--colorNeutralForeground2Hover);background-color:var(--colorSubtleBackgroundHover);}",".rcu2h5o:hover .fui-TreeItemLayout__expandIcon{color:var(--colorNeutralForeground3Hover);}"]),useRootStyles$1=__styles({leaf:{uwmqm3:["f1k1erfc","faevyjx"]},branch:{uwmqm3:["fo100m9","f6yw3pu"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},subtle:{},"subtle-alpha":{Jwef8y:"f146ro5n",ecr2s2:"fkam630"},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak"}},{d:[".f1k1erfc{padding-left:calc(var(--fluent-TreeItem--level, 1) * var(--spacingHorizontalXXL));}",".faevyjx{padding-right:calc(var(--fluent-TreeItem--level, 1) * var(--spacingHorizontalXXL));}",".fo100m9{padding-left:calc((var(--fluent-TreeItem--level, 1) - 1) * var(--spacingHorizontalXXL));}",".f6yw3pu{padding-right:calc((var(--fluent-TreeItem--level, 1) - 1) * var(--spacingHorizontalXXL));}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1pha7fy{min-height:24px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}"],h:[".f146ro5n:hover{background-color:var(--colorSubtleBackgroundLightAlphaHover);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}"],a:[".fkam630:active{background-color:var(--colorSubtleBackgroundLightAlphaPressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}"]}),useActionsBaseStyles=__resetStyles("r1i8xcbw","r12wgp0u",[".r1i8xcbw{display:flex;margin-left:auto;position:relative;z-index:1;grid-row-start:aside;grid-column-start:aside;grid-row-end:aside;grid-column-end:aside;padding-top:0;padding-right:var(--spacingHorizontalS);padding-bottom:0;padding-left:var(--spacingHorizontalS);}",".r12wgp0u{display:flex;margin-right:auto;position:relative;z-index:1;grid-row-start:aside;grid-column-start:aside;grid-row-end:aside;grid-column-end:aside;padding-top:0;padding-left:var(--spacingHorizontalS);padding-bottom:0;padding-right:var(--spacingHorizontalS);}"]),useAsideBaseStyles=__resetStyles("rviw63k","r1kawtgt",[".rviw63k{display:flex;margin-left:auto;align-items:center;z-index:0;grid-row-start:aside;grid-column-start:aside;grid-row-end:aside;grid-column-end:aside;padding-top:0;padding-right:var(--spacingHorizontalM);padding-bottom:0;padding-left:var(--spacingHorizontalM);column-gap:var(--spacingHorizontalXS);row-gap:var(--spacingHorizontalXS);}",".r1kawtgt{display:flex;margin-right:auto;align-items:center;z-index:0;grid-row-start:aside;grid-column-start:aside;grid-row-end:aside;grid-column-end:aside;padding-top:0;padding-left:var(--spacingHorizontalM);padding-bottom:0;padding-right:var(--spacingHorizontalM);column-gap:var(--spacingHorizontalXS);row-gap:var(--spacingHorizontalXS);}"]),useExpandIconBaseStyles=__resetStyles("rogdio4","rkb1wm1",[".rogdio4{display:flex;align-items:center;justify-content:center;min-width:24px;box-sizing:border-box;color:var(--colorNeutralForeground3);flex-grow:0;flex-shrink:0;flex-basis:auto;padding-top:var(--spacingVerticalXS);padding-right:0;padding-bottom:var(--spacingVerticalXS);padding-left:0;}",".rkb1wm1{display:flex;align-items:center;justify-content:center;min-width:24px;box-sizing:border-box;color:var(--colorNeutralForeground3);flex-grow:0;flex-shrink:0;flex-basis:auto;padding-top:var(--spacingVerticalXS);padding-left:0;padding-bottom:var(--spacingVerticalXS);padding-right:0;}"]),useMainBaseStyles=__resetStyles("rfjd92f","r9y1vtu",[".rfjd92f{padding-top:0;padding-right:var(--spacingHorizontalXXS);padding-bottom:0;padding-left:var(--spacingHorizontalXXS);}",".r9y1vtu{padding-top:0;padding-left:var(--spacingHorizontalXXS);padding-bottom:0;padding-right:var(--spacingHorizontalXXS);}"]),useIconBaseStyles$1=__resetStyles("rphzgg1",null,[".rphzgg1{display:flex;align-items:center;color:var(--colorNeutralForeground2);line-height:var(--lineHeightBase500);font-size:var(--fontSizeBase500);}"]),useIconBeforeStyles=__styles({medium:{z189sj:["f7x41pl","fruq291"]},small:{z189sj:["ffczdla","fgiv446"]}},{d:[".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}"]}),useIconAfterStyles=__styles({medium:{uwmqm3:["fruq291","f7x41pl"]},small:{uwmqm3:["fgiv446","ffczdla"]}},{d:[".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}"]}),useTreeItemLayoutStyles_unstable=eo=>{const{main:to,iconAfter:no,iconBefore:io,expandIcon:so,root:ao,aside:lo,actions:uo,selector:ho}=eo,go=useRootStyles$1(),mo=useRootBaseStyles$3(),yo=useActionsBaseStyles(),So=useAsideBaseStyles(),_o=useMainBaseStyles(),ko=useExpandIconBaseStyles(),Co=useIconBaseStyles$1(),$o=useIconBeforeStyles(),Ro=useIconAfterStyles(),Oo=useTreeContext_unstable(Bo=>Bo.size),No=useTreeContext_unstable(Bo=>Bo.appearance),Mo=useTreeItemContext_unstable(Bo=>Bo.itemType);return ao.className=mergeClasses(treeItemLayoutClassNames.root,mo,go[No],go[Oo],go[Mo],ao.className),to.className=mergeClasses(treeItemLayoutClassNames.main,_o,to.className),so&&(so.className=mergeClasses(treeItemLayoutClassNames.expandIcon,ko,so.className)),io&&(io.className=mergeClasses(treeItemLayoutClassNames.iconBefore,Co,$o[Oo],io.className)),no&&(no.className=mergeClasses(treeItemLayoutClassNames.iconAfter,Co,Ro[Oo],no.className)),uo&&(uo.className=mergeClasses(treeItemLayoutClassNames.actions,yo,uo.className)),lo&&(lo.className=mergeClasses(treeItemLayoutClassNames.aside,So,lo.className)),ho&&(ho.className=mergeClasses(treeItemLayoutClassNames.selector,ho.className)),eo},treeItemClassNames={root:"fui-TreeItem"},useBaseStyles=__resetStyles("r1hiwysc","r1eoub7o",[".r1hiwysc{position:relative;cursor:pointer;display:flex;flex-direction:column;box-sizing:border-box;background-color:var(--colorSubtleBackground);color:var(--colorNeutralForeground2);padding-right:var(--spacingHorizontalNone);}",".r1hiwysc:focus{outline-style:none;}",".r1hiwysc:focus-visible{outline-style:none;}",".r1hiwysc[data-fui-focus-visible]>.fui-TreeItemLayout,.r1hiwysc[data-fui-focus-visible]>.fui-TreeItemPersonaLayout{border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);outline-color:var(--colorStrokeFocus2);outline-radius:var(--borderRadiusMedium);outline-width:2px;outline-style:solid;}",".r1eoub7o{position:relative;cursor:pointer;display:flex;flex-direction:column;box-sizing:border-box;background-color:var(--colorSubtleBackground);color:var(--colorNeutralForeground2);padding-left:var(--spacingHorizontalNone);}",".r1eoub7o:focus{outline-style:none;}",".r1eoub7o:focus-visible{outline-style:none;}",".r1eoub7o[data-fui-focus-visible]>.fui-TreeItemLayout,.r1eoub7o[data-fui-focus-visible]>.fui-TreeItemPersonaLayout{border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);outline-color:var(--colorStrokeFocus2);outline-radius:var(--borderRadiusMedium);outline-width:2px;outline-style:solid;}"]),useStyles$n=__styles({level1:{iytv0q:"f10bgyvd"},level2:{iytv0q:"f1h0rod3"},level3:{iytv0q:"fgoqafk"},level4:{iytv0q:"f75dvuh"},level5:{iytv0q:"fqk7yw6"},level6:{iytv0q:"f1r3z17b"},level7:{iytv0q:"f1hrpd1h"},level8:{iytv0q:"f1iy65d0"},level9:{iytv0q:"ftg42e5"},level10:{iytv0q:"fyat3t"}},{d:[".f10bgyvd{--fluent-TreeItem--level:1;}",".f1h0rod3{--fluent-TreeItem--level:2;}",".fgoqafk{--fluent-TreeItem--level:3;}",".f75dvuh{--fluent-TreeItem--level:4;}",".fqk7yw6{--fluent-TreeItem--level:5;}",".f1r3z17b{--fluent-TreeItem--level:6;}",".f1hrpd1h{--fluent-TreeItem--level:7;}",".f1iy65d0{--fluent-TreeItem--level:8;}",".ftg42e5{--fluent-TreeItem--level:9;}",".fyat3t{--fluent-TreeItem--level:10;}"]}),useTreeItemStyles_unstable=eo=>{const to=useBaseStyles(),no=useStyles$n(),{level:io}=eo;return eo.root.className=mergeClasses(treeItemClassNames.root,to,isStaticallyDefinedLevel(io)&&no[`level${io}`],eo.root.className),eo};function isStaticallyDefinedLevel(eo){return eo>=1&&eo<=10}function useTreeItemContextValues_unstable(eo){const{value:to,itemType:no,layoutRef:io,subtreeRef:so,open:ao,expandIconRef:lo,actionsRef:uo,treeItemRef:ho,isActionsVisible:go,isAsideVisible:mo,selectionRef:yo,checked:So}=eo;return{treeItem:{value:to,checked:So,itemType:no,layoutRef:io,subtreeRef:so,open:ao,selectionRef:yo,isActionsVisible:go,isAsideVisible:mo,actionsRef:uo,treeItemRef:ho,expandIconRef:lo}}}const TreeItem=reactExports.forwardRef((eo,to)=>{const no=useTreeItem_unstable(eo,to);useTreeItemStyles_unstable(no);const io=useTreeItemContextValues_unstable(no);return renderTreeItem_unstable(no,io)});TreeItem.displayName="TreeItem";const TreeItemChevron=reactExports.memo(()=>{const eo=useTreeItemContext_unstable(io=>io.open),{dir:to}=useFluent(),no=eo?90:to!=="rtl"?0:180;return reactExports.createElement(ChevronRight12Regular,{style:expandIconInlineStyles[no]})});TreeItemChevron.displayName="TreeItemChevron";const expandIconInlineStyles={90:{transform:"rotate(90deg)"},0:{transform:"rotate(0deg)"},180:{transform:"rotate(180deg)"}},useTreeItemLayout_unstable=(eo,to)=>{const{main:no,iconAfter:io,iconBefore:so}=eo,ao=useTreeItemContext_unstable(Yo=>Yo.layoutRef),lo=useTreeContext_unstable(Yo=>Yo.selectionMode),[uo,ho]=isResolvedShorthand(eo.actions)?[eo.actions.visible,{...eo.actions,visible:void 0}]:[void 0,eo.actions],[go,mo]=useControllableState({state:uo,initialState:!1}),yo=useTreeItemContext_unstable(Yo=>Yo.selectionRef),So=useTreeItemContext_unstable(Yo=>Yo.expandIconRef),_o=useTreeItemContext_unstable(Yo=>Yo.actionsRef),ko=reactExports.useRef(null),Co=useTreeItemContext_unstable(Yo=>Yo.treeItemRef),$o=useTreeItemContext_unstable(Yo=>Yo.subtreeRef),Ro=useTreeItemContext_unstable(Yo=>Yo.checked),Oo=useTreeItemContext_unstable(Yo=>Yo.itemType==="branch"),No=reactExports.useCallback(Yo=>{!!($o.current&&elementContains$1($o.current,Yo.target))||mo(!0)},[$o,mo]),Mo=reactExports.useCallback(Yo=>{if(!!(ko.current&&elementContains$1(ko.current,Yo.relatedTarget))){mo(!0);return}if(!!!($o.current&&elementContains$1($o.current,Yo.target))){mo(!1);return}},[$o,mo]),Bo=optional(eo.expandIcon,{renderByDefault:Oo,defaultProps:{children:reactExports.createElement(TreeItemChevron,null),"aria-hidden":!0},elementType:"div"}),Po=useMergedRefs$1(Bo==null?void 0:Bo.ref,So);Bo&&(Bo.ref=Po);const Lo=useArrowNavigationGroup({circular:!0,axis:"horizontal"}),Go=go?optional(ho,{defaultProps:{...Lo,role:"toolbar"},elementType:"div"}):void 0,Do=useMergedRefs$1(Go==null?void 0:Go.ref,_o,ko),Uo=useEventCallback$3(Yo=>{if(isResolvedShorthand(ho)){var qo;(qo=ho.onBlur)===null||qo===void 0||qo.call(ho,Yo)}const Jo=!!elementContains$1(Yo.currentTarget,Yo.relatedTarget);mo(Jo)});Go&&(Go.ref=Do,Go.onBlur=Uo);const Ho=!!ho;return reactExports.useEffect(()=>{if(Co.current&&Ho&&uo===void 0){const Yo=Co.current,qo=No,Jo=Mo,ps=No,Qo=Mo;return Yo.addEventListener("mouseover",qo),Yo.addEventListener("mouseout",Jo),Yo.addEventListener("focus",ps),Yo.addEventListener("blur",Qo),()=>{Yo.removeEventListener("mouseover",qo),Yo.removeEventListener("mouseout",Jo),Yo.removeEventListener("focus",ps),Yo.removeEventListener("blur",Qo)}}},[Ho,Co,uo,No,Mo]),{components:{root:"div",expandIcon:"div",iconBefore:"div",main:"div",iconAfter:"div",actions:"div",aside:"div",selector:lo==="multiselect"?Checkbox$2:Radio$2},buttonContextValue:{size:"small"},root:always(getIntrinsicElementProps("div",{...eo,ref:useMergedRefs$1(to,ao)}),{elementType:"div"}),iconBefore:optional(so,{defaultProps:{"aria-hidden":!0},elementType:"div"}),main:always(no,{elementType:"div"}),iconAfter:optional(io,{defaultProps:{"aria-hidden":!0},elementType:"div"}),aside:go?void 0:optional(eo.aside,{defaultProps:{"aria-hidden":!0},elementType:"div"}),actions:Go,expandIcon:Bo,selector:optional(eo.selector,{renderByDefault:lo!=="none",defaultProps:{checked:Ro,tabIndex:-1,"aria-hidden":!0,ref:yo},elementType:lo==="multiselect"?Checkbox$2:Radio$2})}},renderTreeItemLayout_unstable=eo=>jsxs(eo.root,{children:[eo.expandIcon&&jsx$1(eo.expandIcon,{}),eo.selector&&jsx$1(eo.selector,{}),eo.iconBefore&&jsx$1(eo.iconBefore,{}),jsx$1(eo.main,{children:eo.root.children}),eo.iconAfter&&jsx$1(eo.iconAfter,{}),jsxs(ButtonContextProvider,{value:eo.buttonContextValue,children:[eo.actions&&jsx$1(eo.actions,{}),eo.aside&&jsx$1(eo.aside,{})]})]}),TreeItemLayout=reactExports.forwardRef((eo,to)=>{const no=useTreeItemLayout_unstable(eo,to);return useTreeItemLayoutStyles_unstable(no),renderTreeItemLayout_unstable(no)});TreeItemLayout.displayName="TreeItemLayout";const TagGroupContext=reactExports.createContext(void 0),tagGroupContextDefaultValue={handleTagDismiss:()=>({}),size:"medium"};TagGroupContext.Provider;const useTagGroupContext_unstable=()=>{var eo;return(eo=reactExports.useContext(TagGroupContext))!==null&&eo!==void 0?eo:tagGroupContextDefaultValue},tagAvatarSizeMap={medium:28,small:20,"extra-small":16},tagAvatarShapeMap={rounded:"square",circular:"circular"},useTag_unstable=(eo,to)=>{const{handleTagDismiss:no,size:io}=useTagGroupContext_unstable(),so=useId$1("fui-Tag",eo.id),{appearance:ao="filled",disabled:lo=!1,dismissible:uo=!1,shape:ho="rounded",size:go=io,value:mo=so}=eo,yo=useEventCallback$3(ko=>{var Co;(Co=eo.onClick)===null||Co===void 0||Co.call(eo,ko),ko.defaultPrevented||no==null||no(ko,{value:mo})}),So=useEventCallback$3(ko=>{var Co;eo==null||(Co=eo.onKeyDown)===null||Co===void 0||Co.call(eo,ko),!ko.defaultPrevented&&(ko.key===Delete||ko.key===Backspace)&&(no==null||no(ko,{value:mo}))}),_o=uo?"button":"span";return{appearance:ao,avatarShape:tagAvatarShapeMap[ho],avatarSize:tagAvatarSizeMap[go],disabled:lo,dismissible:uo,shape:ho,size:go,components:{root:_o,media:"span",icon:"span",primaryText:"span",secondaryText:"span",dismissIcon:"span"},root:always(getIntrinsicElementProps(_o,{ref:to,...eo,id:so,...uo&&{onClick:yo,onKeyDown:So}}),{elementType:_o}),media:optional(eo.media,{elementType:"span"}),icon:optional(eo.icon,{elementType:"span"}),primaryText:optional(eo.primaryText,{renderByDefault:!0,defaultProps:{children:eo.children},elementType:"span"}),secondaryText:optional(eo.secondaryText,{elementType:"span"}),dismissIcon:optional(eo.dismissIcon,{renderByDefault:uo,defaultProps:{children:reactExports.createElement(DismissRegular,null),role:"img"},elementType:"span"})}},renderTag_unstable=(eo,to)=>jsxs(eo.root,{children:[eo.media&&jsx$1(AvatarContextProvider,{value:to.avatar,children:jsx$1(eo.media,{})}),eo.icon&&jsx$1(eo.icon,{}),eo.primaryText&&jsx$1(eo.primaryText,{}),eo.secondaryText&&jsx$1(eo.secondaryText,{}),eo.dismissIcon&&eo.dismissible&&jsx$1(eo.dismissIcon,{})]}),tagClassNames={root:"fui-Tag",media:"fui-Tag__media",icon:"fui-Tag__icon",primaryText:"fui-Tag__primaryText",secondaryText:"fui-Tag__secondaryText",dismissIcon:"fui-Tag__dismissIcon"},useRootRoundedBaseClassName=__resetStyles("r1d3fbai","r89ofxt",{r:['.r1d3fbai{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r1d3fbai[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",'.r89ofxt{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r89ofxt[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r1d3fbai{position:relative;}.r1d3fbai::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);}}','@media (forced-colors: active){.r89ofxt{position:relative;}.r89ofxt::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);}}']}),useRootCircularBaseClassName=__resetStyles("r76els4","r1g7lw0i",{r:['.r76els4{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r76els4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);border-bottom-left-radius:var(--borderRadiusCircular);border-top-right-radius:var(--borderRadiusCircular);border-top-left-radius:var(--borderRadiusCircular);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",'.r1g7lw0i{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r1g7lw0i[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);border-bottom-right-radius:var(--borderRadiusCircular);border-top-left-radius:var(--borderRadiusCircular);border-top-right-radius:var(--borderRadiusCircular);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r76els4{position:relative;}.r76els4::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;border-left-width:var(--strokeWidthThin);border-left-style:solid;border-right-width:var(--strokeWidthThin);border-right-style:solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}','@media (forced-colors: active){.r1g7lw0i{position:relative;}.r1g7lw0i::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;border-right-width:var(--strokeWidthThin);border-right-style:solid;border-left-width:var(--strokeWidthThin);border-left-style:solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}']}),useRootStyles=__styles({filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb"},outline:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"]},brand:{De3pzq:"f16xkysk",sj55zd:"faj9fo0"},medium:{Bqenvij:"f1d2rq10"},small:{Bqenvij:"frvgh55"},"extra-small":{Bqenvij:"fjamq6b"}},{d:[".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f1d2rq10{height:32px;}",".frvgh55{height:24px;}",".fjamq6b{height:20px;}"]}),useRootDisabledStyles=__styles({filled:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]},outline:{Bceei9c:"fdrzuqr",De3pzq:"fhovq9v",sj55zd:"f1s2aq7o",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"]},brand:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]}),useRootWithoutMediaStyles=__styles({medium:{uwmqm3:["f1rtp3s9","f18k1jr3"]},small:{uwmqm3:["f15vdbe4","fwiuce9"]},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"]}},{d:[".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}"]}),useRootWithoutDismissStyles=__styles({medium:{z189sj:["f18k1jr3","f1rtp3s9"]},small:{z189sj:["fwiuce9","f15vdbe4"]},"extra-small":{z189sj:["fwiuce9","f15vdbe4"]}},{d:[".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}"]}),useIconStyles$1=__styles({base:{Ijaq50:"f11uok23",Br312pm:"f1qdfnnj",nk6f5a:"f1s27gz",Bw0ie65:"f86d0yl",mc9l5x:"f22iagw"},medium:{uwmqm3:["f1rtp3s9","f18k1jr3"],z189sj:["f7x41pl","fruq291"],a9b677:"f64fuq3",Be2twd7:"fe5j1ua"},small:{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"fjw5fx7",Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"frx94fk",Be2twd7:"f1ugzwwg"}},{d:[".f11uok23{grid-row-start:media;}",".f1qdfnnj{grid-column-start:media;}",".f1s27gz{grid-row-end:media;}",".f86d0yl{grid-column-end:media;}",".f22iagw{display:flex;}",".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f64fuq3{width:20px;}",".fe5j1ua{font-size:20px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".fjw5fx7{width:16px;}",".f4ybsrx{font-size:16px;}",".frx94fk{width:12px;}",".f1ugzwwg{font-size:12px;}"]}),useMediaStyles=__styles({base:{Ijaq50:"f11uok23",Br312pm:"f1qdfnnj",nk6f5a:"f1s27gz",Bw0ie65:"f86d0yl",mc9l5x:"f22iagw",uwmqm3:["f10xn8zz","f136y8j8"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},small:{z189sj:["fdw0yi8","fk8j09s"]},"extra-small":{z189sj:["fdw0yi8","fk8j09s"]}},{d:[".f11uok23{grid-row-start:media;}",".f1qdfnnj{grid-column-start:media;}",".f1s27gz{grid-row-end:media;}",".f86d0yl{grid-column-end:media;}",".f22iagw{display:flex;}",".f10xn8zz{padding-left:1px;}",".f136y8j8{padding-right:1px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}"]}),useDismissIconStyles=__styles({base:{Ijaq50:"fneo8i2",Br312pm:"frbqjvc",nk6f5a:"f1a6k60w",Bw0ie65:"f1ay3jj",mc9l5x:"f22iagw",ze5xyy:"f4xjyn1",oy3o9n:"f1xtr1b3"},medium:{uwmqm3:["fruq291","f7x41pl"],z189sj:["f18k1jr3","f1rtp3s9"],Be2twd7:"fe5j1ua"},small:{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f1ugzwwg"},filled:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},outline:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},brand:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"}},{d:[".fneo8i2{grid-row-start:dismissIcon;}",".frbqjvc{grid-column-start:dismissIcon;}",".f1a6k60w{grid-row-end:dismissIcon;}",".f1ay3jj{grid-column-end:dismissIcon;}",".f22iagw{display:flex;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fe5j1ua{font-size:20px;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".f4ybsrx{font-size:16px;}",".f1ugzwwg{font-size:12px;}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xtr1b3:active{color:Highlight;}}",{m:"(forced-colors: active)"}]],h:[".f8491dx:hover{cursor:pointer;}",".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}"],a:[".fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}"]}),usePrimaryTextStyles=__styles({base:{Huce71:"fz5stix",uwmqm3:["fgiv446","ffczdla"],z189sj:["ffczdla","fgiv446"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},withoutSecondaryText:{Br312pm:"faqcfhe",Ijaq50:"f1q3ipgb",nk6f5a:"fc0ab3q",Byoj8tv:"f1g03r3y"},withSecondaryText:{Ijaq50:"f1q3ipgb",Br312pm:"faqcfhe",nk6f5a:"fs32cm1",Bw0ie65:"f1bo7viq",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",B6of3ja:"f1ryq6si"}},{d:[".fz5stix{white-space:nowrap;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".faqcfhe{grid-column-start:primary;}",".f1q3ipgb{grid-row-start:primary;}",".fc0ab3q{grid-row-end:secondary;}",".f1g03r3y{padding-bottom:var(--spacingHorizontalXXS);}",".fs32cm1{grid-row-end:primary;}",".f1bo7viq{grid-column-end:primary;}",".f1ryq6si{margin-top:-2px;}"]}),useSecondaryTextBaseClassName=__resetStyles("r7hv1ps","rnrslm9",[".r7hv1ps{grid-area:secondary;padding-left:var(--spacingHorizontalXXS);padding-right:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}",".rnrslm9{grid-area:secondary;padding-right:var(--spacingHorizontalXXS);padding-left:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}"]),useTagStyles_unstable=eo=>{const to=useRootRoundedBaseClassName(),no=useRootCircularBaseClassName(),io=useRootStyles(),so=useRootDisabledStyles(),ao=useRootWithoutMediaStyles(),lo=useRootWithoutDismissStyles(),uo=useIconStyles$1(),ho=useMediaStyles(),go=useDismissIconStyles(),mo=usePrimaryTextStyles(),yo=useSecondaryTextBaseClassName(),{shape:So,size:_o,appearance:ko}=eo;return eo.root.className=mergeClasses(tagClassNames.root,So==="rounded"?to:no,eo.disabled?so[ko]:io[ko],io[_o],!eo.media&&!eo.icon&&ao[_o],!eo.dismissIcon&&lo[_o],eo.root.className),eo.media&&(eo.media.className=mergeClasses(tagClassNames.media,ho.base,ho[_o],eo.media.className)),eo.icon&&(eo.icon.className=mergeClasses(tagClassNames.icon,uo.base,uo[_o],eo.icon.className)),eo.primaryText&&(eo.primaryText.className=mergeClasses(tagClassNames.primaryText,mo.base,mo[_o],eo.secondaryText?mo.withSecondaryText:mo.withoutSecondaryText,eo.primaryText.className)),eo.secondaryText&&(eo.secondaryText.className=mergeClasses(tagClassNames.secondaryText,yo,eo.secondaryText.className)),eo.dismissIcon&&(eo.dismissIcon.className=mergeClasses(tagClassNames.dismissIcon,go.base,go[_o],!eo.disabled&&go[ko],eo.dismissIcon.className)),eo};function useTagAvatarContextValues_unstable(eo){const{avatarSize:to,avatarShape:no}=eo;return{avatar:reactExports.useMemo(()=>({size:to,shape:no}),[no,to])}}const Tag$2=reactExports.forwardRef((eo,to)=>{const no=useTag_unstable(eo,to);return useTagStyles_unstable(no),useCustomStyleHook("useTagStyles_unstable")(no),renderTag_unstable(no,useTagAvatarContextValues_unstable(no))});Tag$2.displayName="Tag";function getIntentIcon(eo){switch(eo){case"info":return reactExports.createElement(InfoFilled,null);case"warning":return reactExports.createElement(WarningFilled,null);case"error":return reactExports.createElement(ErrorCircleFilled,null);case"success":return reactExports.createElement(CheckmarkCircleFilled,null);default:return null}}function useMessageBarReflow(eo=!1){const{targetDocument:to}=useFluent(),no=reactExports.useReducer(()=>({}),{})[1],io=reactExports.useRef(!1),so=reactExports.useRef(null),ao=reactExports.useRef(-1),lo=reactExports.useCallback(ho=>{const go=ho[0],mo=go==null?void 0:go.borderBoxSize[0];if(!mo||!go)return;const{inlineSize:yo}=mo,{target:So}=go;if(!isHTMLElement$6(So))return;let _o;if(io.current)ao.current{var go;if(!eo||!ho||!(to!=null&&to.defaultView))return;(go=so.current)===null||go===void 0||go.disconnect();const mo=to.defaultView,yo=new mo.ResizeObserver(lo);so.current=yo,yo.observe(ho,{box:"border-box"})},[to,lo,eo]);return reactExports.useEffect(()=>()=>{var ho;(ho=so.current)===null||ho===void 0||ho.disconnect()},[]),{ref:uo,reflowing:io.current}}const messageBarTransitionContext=reactExports.createContext(void 0),messageBarTransitionContextDefaultValue={className:"",nodeRef:reactExports.createRef()};messageBarTransitionContext.Provider;const useMessageBarTransitionContext=()=>{var eo;return(eo=reactExports.useContext(messageBarTransitionContext))!==null&&eo!==void 0?eo:messageBarTransitionContextDefaultValue},useMessageBar_unstable=(eo,to)=>{const{layout:no="auto",intent:io="info",politeness:so,shape:ao="rounded"}=eo,lo=so??io==="info"?"polite":"assertive",uo=no==="auto",{ref:ho,reflowing:go}=useMessageBarReflow(uo),mo=uo?go?"multiline":"singleline":no,{className:yo,nodeRef:So}=useMessageBarTransitionContext(),_o=reactExports.useRef(null),ko=reactExports.useRef(null),{announce:Co}=useAnnounce(),$o=useId$1();return reactExports.useEffect(()=>{var Ro,Oo;const No=(Ro=ko.current)===null||Ro===void 0?void 0:Ro.textContent,Mo=(Oo=_o.current)===null||Oo===void 0?void 0:Oo.textContent,Bo=[No,Mo].filter(Boolean).join(",");Co(Bo,{polite:lo==="polite",alert:lo==="assertive"})},[ko,_o,Co,lo]),{components:{root:"div",icon:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,ho,So),role:"group","aria-labelledby":$o,...eo}),{elementType:"div"}),icon:optional(eo.icon,{renderByDefault:!0,elementType:"div",defaultProps:{children:getIntentIcon(io)}}),layout:mo,intent:io,transitionClassName:yo,actionsRef:_o,bodyRef:ko,titleId:$o,shape:ao}},messageBarContext=reactExports.createContext(void 0),messageBarContextDefaultValue={titleId:"",layout:"singleline",actionsRef:reactExports.createRef(),bodyRef:reactExports.createRef()},MessageBarContextProvider=messageBarContext.Provider,useMessageBarContext=()=>{var eo;return(eo=reactExports.useContext(messageBarContext))!==null&&eo!==void 0?eo:messageBarContextDefaultValue},renderMessageBar_unstable=(eo,to)=>jsx$1(MessageBarContextProvider,{value:to.messageBar,children:jsxs(eo.root,{children:[eo.icon&&jsx$1(eo.icon,{}),eo.root.children]})}),messageBarClassNames={root:"fui-MessageBar",icon:"fui-MessageBar__icon"},useRootBaseStyles$2=__resetStyles("rashqx","ri1c0vc",['.rashqx{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-left:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}','.ri1c0vc{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-right:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}']),useIconBaseStyles=__resetStyles("r1bxgyar","rv8i6h8",[".r1bxgyar{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-right:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}",".rv8i6h8{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-left:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}"]),useStyles$m=__styles({rootMultiline:{Huce71:"f6juhto",Bt984gj:"f1s2louj",z8tnut:"f1ngh7ph",Budl1dq:"f17g0uqy",zoa1oz:"f1w7oly7"},secondaryActionsMultiline:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"]},square:{Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]}},{d:[".f6juhto{white-space:normal;}",".f1s2louj{align-items:start;}",".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",".f17g0uqy{grid-template-columns:auto 1fr auto;}",'.f1w7oly7{grid-template-areas:"icon body actions" "secondaryActions secondaryActions secondaryActions";}',".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}"]}),useIconIntentStyles=__styles({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),useRootIntentStyles=__styles({info:{},error:{De3pzq:"f1eon7jj",g2u3we:"f1f8dvr7",h3c5rm:["f1g1ijmo","f1nxacbt"],B9xav0g:"fo25q1j",zhjwy3:["f1nxacbt","f1g1ijmo"]},warning:{De3pzq:"f13ftzij",g2u3we:"frd1ypx",h3c5rm:["f1gyjrma","f18qd5xz"],B9xav0g:"fqyqtrt",zhjwy3:["f18qd5xz","f1gyjrma"]},success:{De3pzq:"f64thcm",g2u3we:"f1b4u7v",h3c5rm:["f1nyd2b1","f70v3om"],B9xav0g:"fk173vo",zhjwy3:["f70v3om","f1nyd2b1"]}},{d:[".f1eon7jj{background-color:var(--colorStatusDangerBackground1);}",".f1f8dvr7{border-top-color:var(--colorStatusDangerBorder1);}",".f1g1ijmo{border-right-color:var(--colorStatusDangerBorder1);}",".f1nxacbt{border-left-color:var(--colorStatusDangerBorder1);}",".fo25q1j{border-bottom-color:var(--colorStatusDangerBorder1);}",".f13ftzij{background-color:var(--colorStatusWarningBackground1);}",".frd1ypx{border-top-color:var(--colorStatusWarningBorder1);}",".f1gyjrma{border-right-color:var(--colorStatusWarningBorder1);}",".f18qd5xz{border-left-color:var(--colorStatusWarningBorder1);}",".fqyqtrt{border-bottom-color:var(--colorStatusWarningBorder1);}",".f64thcm{background-color:var(--colorStatusSuccessBackground1);}",".f1b4u7v{border-top-color:var(--colorStatusSuccessBorder1);}",".f1nyd2b1{border-right-color:var(--colorStatusSuccessBorder1);}",".f70v3om{border-left-color:var(--colorStatusSuccessBorder1);}",".fk173vo{border-bottom-color:var(--colorStatusSuccessBorder1);}"]}),useMessageBarStyles_unstable=eo=>{const to=useRootBaseStyles$2(),no=useIconBaseStyles(),io=useIconIntentStyles(),so=useRootIntentStyles(),ao=useStyles$m();return eo.root.className=mergeClasses(messageBarClassNames.root,to,eo.layout==="multiline"&&ao.rootMultiline,eo.shape==="square"&&ao.square,so[eo.intent],eo.transitionClassName,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(messageBarClassNames.icon,no,io[eo.intent],eo.icon.className)),eo};function useMessageBarContextValue_unstable(eo){const{layout:to,actionsRef:no,bodyRef:io,titleId:so}=eo;return{messageBar:reactExports.useMemo(()=>({layout:to,actionsRef:no,bodyRef:io,titleId:so}),[to,no,io,so])}}const MessageBar=reactExports.forwardRef((eo,to)=>{const no=useMessageBar_unstable(eo,to);return useMessageBarStyles_unstable(no),useCustomStyleHook("useMessageBarStyles_unstable")(no),renderMessageBar_unstable(no,useMessageBarContextValue_unstable(no))});MessageBar.displayName="MessageBar";const useMessageBarTitle_unstable=(eo,to)=>{const{titleId:no}=useMessageBarContext();return{components:{root:"span"},root:always(getIntrinsicElementProps("span",{ref:to,id:no,...eo}),{elementType:"span"})}},renderMessageBarTitle_unstable=eo=>jsx$1(eo.root,{}),messageBarTitleClassNames={root:"fui-MessageBarTitle"},useRootBaseStyles$1=__resetStyles("r168xkm9",null,[".r168xkm9{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);}",'.r168xkm9::after{content:" ";}']),useMessageBarTitleStyles_unstable=eo=>{const to=useRootBaseStyles$1();return eo.root.className=mergeClasses(messageBarTitleClassNames.root,to,eo.root.className),eo},MessageBarTitle=reactExports.forwardRef((eo,to)=>{const no=useMessageBarTitle_unstable(eo,to);return useMessageBarTitleStyles_unstable(no),useCustomStyleHook("useMessageBarTitleStyles_unstable")(no),renderMessageBarTitle_unstable(no)});MessageBarTitle.displayName="MessageBarTitle";const useMessageBarBody_unstable=(eo,to)=>{const{bodyRef:no}=useMessageBarContext();return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,no),...eo}),{elementType:"div"})}},renderMessageBarBody_unstable=eo=>jsx$1(eo.root,{}),messageBarBodyClassNames={root:"fui-MessageBarBody"},useRootBaseStyles=__resetStyles("rnv3mfe","r1ixc1x8",[".rnv3mfe{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-right:var(--spacingHorizontalM);}",".r1ixc1x8{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-left:var(--spacingHorizontalM);}"]),useMessageBarBodyStyles_unstable=eo=>{const to=useRootBaseStyles();return eo.root.className=mergeClasses(messageBarBodyClassNames.root,to,eo.root.className),eo},MessageBarBody=reactExports.forwardRef((eo,to)=>{const no=useMessageBarBody_unstable(eo,to);return useMessageBarBodyStyles_unstable(no),useCustomStyleHook("useMessageBarBodyStyles_unstable")(no),renderMessageBarBody_unstable(no)});MessageBarBody.displayName="MessageBarBody";const useReducedMotion=()=>{var eo;const to=useFluent(),no=reactExports.useRef(!1),io=canUseDOM$3()&&((eo=to.targetDocument)===null||eo===void 0?void 0:eo.defaultView),so=reactExports.useCallback(ao=>{no.current=ao.matches},[]);return useIsomorphicLayoutEffect$1(()=>{if(!io||!io.matchMedia)return;const ao=io.matchMedia("screen and (prefers-reduced-motion: reduce)");return ao.matches&&(no.current=!0),ao.addEventListener("change",so),()=>ao.removeEventListener("change",so)},[so,io]),no.current},getCSSStyle=eo=>hasCSSOMSupport(eo)?eo.computedStyleMap():getElementComputedStyle(eo),hasCSSOMSupport=eo=>!!(typeof CSS<"u"&&CSS.number&&eo.computedStyleMap),getElementComputedStyle=eo=>{var to,no;const io=canUseDOM$3()&&((no=(to=eo.ownerDocument)===null||to===void 0?void 0:to.defaultView)!==null&&no!==void 0?no:window);return io?io.getComputedStyle(eo,null):{getPropertyValue:so=>""}};function toMs(eo){const to=eo.trim();if(to.includes("auto"))return 0;if(to.endsWith("ms")){const no=Number(to.replace("ms",""));return isNaN(no)?0:no}return Number(to.slice(0,-1).replace(",","."))*1e3}const getComputedMapProp=(eo,to)=>{const no=eo.getAll(to);return no.length>0?no.map(({value:io,unit:so})=>`${io}${so}`):["0"]},getComputedStyleProp=(eo,to)=>{const no=eo.getPropertyValue(to);return no?no.split(","):["0"]},getMaxCSSDuration=(eo,to)=>{const no=Math.max(eo.length,to.length),io=[];if(no===0)return 0;for(let so=0;so{const to=hasCSSOMSupport(eo),no=getCSSStyle(eo),io=lo=>to?getComputedMapProp(no,lo):getComputedStyleProp(no,lo),so=getMaxCSSDuration(io("transition-duration"),io("transition-delay")),ao=getMaxCSSDuration(io("animation-duration"),io("animation-delay"));return Math.max(so,ao)},useFirstMountCondition=eo=>{const to=reactExports.useRef(!0);return to.current&&eo?(to.current=!1,!0):to.current};function useMotionPresence(eo,to={}){const{animateOnFirstMount:no,duration:io}={animateOnFirstMount:!1,...to},[so,ao]=reactExports.useState(eo&&no?"entering":eo?"idle":"unmounted"),[lo,uo]=reactExports.useState(!no&&eo),[ho,go]=useTimeout(),[mo,yo]=useTimeout(),[So,_o]=useAnimationFrame(),[ko,Co]=reactExports.useState(null),$o=useReducedMotion(),Ro=useFirstMount(),Oo=useFirstMountCondition(!!ko),No=reactExports.useRef(eo).current,Mo=$o||Oo&&No&&!no,Bo=reactExports.useCallback(Go=>{Go&&Co(Go)},[]),Po=reactExports.useCallback(Go=>(mo(()=>So(Go),0),()=>{yo(),_o()}),[_o,yo,So,mo]),Lo=reactExports.useCallback(()=>{ao(eo?"entered":"exited"),Po(()=>ao(eo?"idle":"unmounted"))},[Po,eo]);return reactExports.useEffect(()=>{if(!Ro){if(Mo){ao(eo?"idle":"unmounted"),uo(eo);return}if(ao(eo?"entering":"exiting"),!!ko)return Po(()=>{uo(eo),Po(()=>{const Go=io||getMotionDuration(ko);if(Go===0){Lo();return}ho(()=>Lo(),Go)})}),()=>go()}},[ko,Mo,Lo,eo]),reactExports.useMemo(()=>({ref:Bo,type:so,active:lo,canRender:eo||so!=="unmounted"}),[lo,so,eo])}function useMotion(eo,to){const no=typeof eo=="object",io=useMotionPresence(no?!1:eo,to);return no?eo:io}const useReducedMotionStyles=__styles({reduced:{Hwfdqs:"f1bggi9a"}},{m:[["@media screen and (prefers-reduced-motion: reduce){.f1bggi9a{transition-duration:0.01ms!important;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]});function assertMotionStyles(eo){}const useMotionClassNames=(eo,to)=>{const{reduced:no}=useReducedMotionStyles(),io=reactExports.useMemo(()=>!to.enter&&!to.exit?"":eo.active||eo.type==="idle"?to.enter:eo.active?"":to.exit,[eo.active,eo.type,to.enter,to.exit]);return reactExports.useEffect(()=>void 0,[to]),mergeClasses(to.default,io,to[eo.type],no)};function useDrawerDefaultProps(eo){const{open:to=!1,size:no="small",position:io="start"}=eo;return{size:no,position:io,open:to}}const useBackdropResetStyles=__resetStyles("rivxbo","r1trjn1z",[".rivxbo{top:0px;right:0px;bottom:0px;left:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}",".r1trjn1z{top:0px;left:0px;bottom:0px;right:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}"]),useBackdropStyles=__styles({nested:{De3pzq:"f1c21dwh"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}"]}),useOverlayDrawerSurfaceStyles_unstable=eo=>{const to=useBackdropResetStyles(),no=useBackdropStyles();return eo.backdrop&&(eo.backdrop.className=mergeClasses(to,eo.isNestedDialog&&no.nested,eo.backdrop.className)),eo},OverlayDrawerSurface=reactExports.forwardRef((eo,to)=>{const no=useDialogSurface_unstable(eo,to),io=useDialogSurfaceContextValues_unstable();return useOverlayDrawerSurfaceStyles_unstable(no),renderDialogSurface_unstable(no,io)});OverlayDrawerSurface.displayName="OverlayDrawerSurface";const useOverlayDrawer_unstable=(eo,to)=>{const{open:no,size:io,position:so}=useDrawerDefaultProps(eo),{modalType:ao="modal",inertTrapFocus:lo,defaultOpen:uo=!1,onOpenChange:ho}=eo,go=useMotion(no),mo=resolveShorthand(eo.backdrop),So=always({...eo,backdrop:ao!=="non-modal"&&mo!==null?{...mo}:null},{elementType:OverlayDrawerSurface,defaultProps:{ref:useMergedRefs$1(to,go.ref)}}),_o=always({open:!0,defaultOpen:uo,onOpenChange:ho,inertTrapFocus:lo,modalType:ao,children:null},{elementType:Dialog});return{components:{root:OverlayDrawerSurface,dialog:Dialog},root:So,dialog:_o,size:io,position:so,motion:go}},renderOverlayDrawer_unstable=eo=>eo.motion.canRender?jsx$1(eo.dialog,{children:jsx$1(eo.root,{})}):null,useDrawerStyles=__styles({entering:{Bkqvd7p:"f18ad807"},exiting:{Bkqvd7p:"f1mfizis"},reducedMotion:{Hwfdqs:"f5e8c63"},start:{Bekrc4i:["f5tn483","f1ojsxk5"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["f1gn591s","fjscplz"],oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["fvfyk4","frppm18"]},end:{ibv6hh:["f1ojsxk5","f5tn483"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["fjscplz","f1gn591s"],j35jbq:["f1e31b4d","f1vgc2s3"],oyh7mz:["frppm18","fvfyk4"]},small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fsdmzs6"}},{d:[".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fvfyk4{right:auto;}",".frppm18{left:auto;}",".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".fsdmzs6{--fui-Drawer--size:100vw;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f5e8c63{transition-duration:0.001ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),useDrawerDurationStyles=__styles({small:{B3o57yi:"fc397y7"},medium:{B3o57yi:"f78771"},large:{B3o57yi:"f9ymmep"},full:{B3o57yi:"f1loko9l"}},{d:[".fc397y7{transition-duration:var(--durationGentle);}",".f78771{transition-duration:var(--durationSlow);}",".f9ymmep{transition-duration:var(--durationSlower);}",".f1loko9l{transition-duration:var(--durationUltraSlow);}"]}),useDrawerBaseClassNames=({position:eo,size:to,motion:no})=>{const io=useDrawerStyles(),so=useDrawerDurationStyles();return mergeClasses(io[eo],so[to],io[to],io.reducedMotion,no.type==="entering"&&io.entering,no.type==="exiting"&&io.exiting)},overlayDrawerClassNames={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},useDrawerResetStyles=__resetStyles("r1vxc6jp","r1uky7bi",{r:[".r1vxc6jp{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1vxc6jp:focus{outline-style:none;}",".r1vxc6jp:focus-visible{outline-style:none;}",".r1vxc6jp[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1vxc6jp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1uky7bi{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1uky7bi:focus{outline-style:none;}",".r1uky7bi:focus-visible{outline-style:none;}",".r1uky7bi[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1uky7bi[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1vxc6jp[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r1uky7bi[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useDrawerRootStyles=__styles({start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1g0pcr8"}},{d:[".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1g0pcr8{transform:translate3D(calc(var(--fui-Drawer--size) * 1), 0, 0);}"]}),useDrawerMotionStyles=__styles({default:{abs64n:"fk73vx1",E5pizo:"ff88big",Bmy1vo4:"f1neo61",Es3by:"f1ytgekk"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx",E5pizo:"f10nrhrw"}},{d:[".fk73vx1{opacity:0;}",".ff88big{box-shadow:0px var(--colorTransparentBackground);}",".f1neo61{transition-property:transform,box-shadow,opacity;}",".f1ytgekk{will-change:transform,box-shadow,opacity;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}",".f10nrhrw{box-shadow:var(--shadow64);}"]}),useBackdropMotionStyles=__styles({default:{abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",Bkqvd7p:"f17wnm97",Es3by:"f1gqqdtu"},enter:{abs64n:"f5p0z4x"}},{d:[".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".f17wnm97{transition-timing-function:var(--curveEasyEase);}",".f1gqqdtu{will-change:opacity;}",".f5p0z4x{opacity:1;}"]}),useOverlayDrawerStyles_unstable=eo=>{const to=useDrawerBaseClassNames(eo),no=useDrawerResetStyles(),io=useDrawerRootStyles(),so=useDrawerDurationStyles(),ao=useMotionClassNames(eo.motion,useDrawerMotionStyles()),lo=useMotionClassNames(eo.motion,useBackdropMotionStyles()),uo=eo.root.backdrop;return eo.root.className=mergeClasses(overlayDrawerClassNames.root,to,no,io[eo.position],ao,eo.root.className),uo&&(uo.className=mergeClasses(overlayDrawerClassNames.backdrop,lo,so[eo.size],uo.className)),eo},OverlayDrawer=reactExports.forwardRef((eo,to)=>{const no=useOverlayDrawer_unstable(eo,to);return useOverlayDrawerStyles_unstable(no),useCustomStyleHook("useDrawerOverlayStyles_unstable")(no),useCustomStyleHook("useOverlayDrawerStyles_unstable")(no),renderOverlayDrawer_unstable(no)});OverlayDrawer.displayName="OverlayDrawer";const useBreadcrumb_unstable=(eo,to)=>{const{focusMode:no="tab",size:io="medium",list:so,...ao}=eo,lo=useArrowNavigationGroup({circular:!0,axis:"horizontal",memorizeCurrent:!0});var uo;return{components:{root:"nav",list:"ol"},root:always(getIntrinsicElementProps("nav",{ref:to,"aria-label":(uo=eo["aria-label"])!==null&&uo!==void 0?uo:"breadcrumb",...no==="arrow"?lo:{},...ao}),{elementType:"nav"}),list:optional(so,{renderByDefault:!0,defaultProps:{role:"list"},elementType:"ol"}),size:io}},BreadcrumbContext=reactExports.createContext(void 0),breadcrumbDefaultValue={size:"medium"},BreadcrumbProvider=BreadcrumbContext.Provider,useBreadcrumbContext_unstable=()=>{var eo;return(eo=reactExports.useContext(BreadcrumbContext))!==null&&eo!==void 0?eo:breadcrumbDefaultValue},renderBreadcrumb_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(BreadcrumbProvider,{value:to,children:eo.list&&jsx$1(eo.list,{children:eo.root.children})})}),breadcrumbClassNames={root:"fui-Breadcrumb",list:"fui-Breadcrumb__list"},useListClassName=__resetStyles("rc5rb6b",null,[".rc5rb6b{list-style-type:none;display:flex;align-items:center;margin:0;padding:0;}"]),useBreadcrumbStyles_unstable=eo=>{const to=useListClassName();return eo.root.className=mergeClasses(breadcrumbClassNames.root,eo.root.className),eo.list&&(eo.list.className=mergeClasses(to,breadcrumbClassNames.list,eo.list.className)),eo};function useBreadcrumbContextValues_unstable(eo){const{size:to}=eo;return reactExports.useMemo(()=>({size:to}),[to])}const Breadcrumb=reactExports.forwardRef((eo,to)=>{const no=useBreadcrumb_unstable(eo,to),io=useBreadcrumbContextValues_unstable(no);return useBreadcrumbStyles_unstable(no),useCustomStyleHook("useBreadcrumbStyles_unstable")(no),renderBreadcrumb_unstable(no,io)});Breadcrumb.displayName="Breadcrumb";const useBreadcrumbDivider_unstable=(eo,to)=>{const{size:no}=useBreadcrumbContext_unstable(),{dir:io}=useFluent(),so=getDividerIcon(no,io);return{components:{root:"li"},root:always(getIntrinsicElementProps("li",{ref:to,"aria-hidden":!0,children:so,...eo}),{elementType:"li"})}},dividerIcons={rtl:{small:reactExports.createElement(ChevronLeft12Regular,null),medium:reactExports.createElement(ChevronLeft16Regular,null),large:reactExports.createElement(ChevronLeft20Regular,null)},ltr:{small:reactExports.createElement(ChevronRight12Regular,null),medium:reactExports.createElement(ChevronRight16Regular,null),large:reactExports.createElement(ChevronRight20Regular,null)}};function getDividerIcon(eo="medium",to){const no=to==="rtl"?dividerIcons.rtl:dividerIcons.ltr;return eo==="small"?no.small:eo==="large"?no.large:no.medium}const renderBreadcrumbDivider_unstable=eo=>jsx$1(eo.root,{}),breadcrumbDividerClassNames={root:"fui-BreadcrumbDivider"},useStyles$l=__styles({root:{mc9l5x:"f22iagw"}},{d:[".f22iagw{display:flex;}"]}),useBreadcrumbDividerStyles_unstable=eo=>{const to=useStyles$l();return eo.root.className=mergeClasses(breadcrumbDividerClassNames.root,to.root,eo.root.className),eo},BreadcrumbDivider=reactExports.forwardRef((eo,to)=>{const no=useBreadcrumbDivider_unstable(eo,to);return useBreadcrumbDividerStyles_unstable(no),useCustomStyleHook("useBreadcrumbDividerStyles_unstable")(no),renderBreadcrumbDivider_unstable(no)});BreadcrumbDivider.displayName="BreadcrumbDivider";const useBreadcrumbItem_unstable=(eo,to)=>{const{size:no}=useBreadcrumbContext_unstable();return{components:{root:"li"},root:always(getIntrinsicElementProps("li",{ref:to,...eo}),{elementType:"li"}),size:no}},renderBreadcrumbItem_unstable=eo=>jsx$1(eo.root,{children:eo.root.children}),breadcrumbItemClassNames={root:"fui-BreadcrumbItem"},useBreadcrumbItemResetStyles=__resetStyles("r1tl60rs",null,[".r1tl60rs{display:flex;align-items:center;color:var(--colorNeutralForeground2);box-sizing:border-box;text-wrap:nowrap;}"]),useBreadcrumbItemStyles_unstable=eo=>{const to=useBreadcrumbItemResetStyles();return eo.root.className=mergeClasses(breadcrumbItemClassNames.root,to,eo.root.className),eo},BreadcrumbItem=reactExports.forwardRef((eo,to)=>{const no=useBreadcrumbItem_unstable(eo,to);return useBreadcrumbItemStyles_unstable(no),useCustomStyleHook("useBreadcrumbItemStyles_unstable")(no),renderBreadcrumbItem_unstable(no)});BreadcrumbItem.displayName="BreadcrumbItem";const useBreadcrumbButton_unstable=(eo,to)=>{const{size:no}=useBreadcrumbContext_unstable(),{current:io=!1,as:so,...ao}=eo,lo=so??eo.href?"a":"button";var uo,ho;return{...useButton_unstable({appearance:"subtle",role:void 0,type:void 0,as:lo,iconPosition:"before","aria-current":io?(uo=eo["aria-current"])!==null&&uo!==void 0?uo:"page":void 0,"aria-disabled":io?(ho=eo["aria-disabled"])!==null&&ho!==void 0?ho:!0:void 0,...ao},to),current:io,size:no}},renderBreadcrumbButton_unstable=eo=>renderButton_unstable(eo),breadcrumbButtonClassNames={root:"fui-BreadcrumbButton",icon:"fui-BreadcrumbButton__icon"},useIconStyles=__styles({base:{Be2twd7:"fsj74e5",Bqenvij:"f1qfv4wv",Bg96gwp:"f15xapk4",a9b677:"f17j33op",t21cq0:["fm0x6gh","fbyavb5"]},small:{u3h8gg:"f1qfi7kw",Biu6dll:"f1876atl"},medium:{u3h8gg:"f1h9446d",Biu6dll:"f10xfswh"},large:{u3h8gg:"f5hcofs",Biu6dll:"f1a6v6zl"}},{d:[".fsj74e5{font-size:var(--fui-Breadcrumb--icon-size);}",".f1qfv4wv{height:var(--fui-Breadcrumb--icon-size);}",".f15xapk4{line-height:var(--fui-Breadcrumb--icon-line-height);}",".f17j33op{width:var(--fui-Breadcrumb--icon-size);}",".fm0x6gh{margin-right:var(--spacingHorizontalXS);}",".fbyavb5{margin-left:var(--spacingHorizontalXS);}",".f1qfi7kw{--fui-Breadcrumb--icon-size:12px;}",".f1876atl{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase200);}",".f1h9446d{--fui-Breadcrumb--icon-size:16px;}",".f10xfswh{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase400);}",".f5hcofs{--fui-Breadcrumb--icon-size:20px;}",".f1a6v6zl{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase600);}"]}),useStyles$k=__styles({root:{Bf4jedk:"f18p0k4z",j4b8c3:"fv6wr3j",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},small:{Bqenvij:"frvgh55",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f16k8034",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1angvds",uwmqm3:["fk8j09s","fdw0yi8"]},medium:{Bqenvij:"f1d2rq10",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f16k8034",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1angvds",uwmqm3:["fk8j09s","fdw0yi8"]},large:{Bqenvij:"fbhnoac",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f17mpqex",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"fdvome7",uwmqm3:["f1f5gg8d","f1vdfbxk"]},current:{Jwef8y:"f9ql6rf",Bi91k9c:"f3p8bqa",eoavqd:"f14w7a5u",Bbdnnc7:"f1irjp3o",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",iro3zm:"f3h1zc4",B2d53fq:"f1xkgyln",c3iz72:"f17wbbfx",x3br3k:"fofxw0a",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",Bszkowt:"ff24m",Dyrjrp:"ft5r8e9",ezr58z:"f1cbpfqp",nhk3du:"f1motppv",Bfrek18:"fi9vkhg",G209fr:"f1fg3nnv"},currentSmall:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm"},currentMedium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},currentLarge:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"}},{d:[".f18p0k4z{min-width:unset;}",".fv6wr3j{text-wrap:nowrap;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".frvgh55{height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f16k8034{padding-top:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1angvds{padding-bottom:var(--spacingHorizontalSNudge);}",".f1d2rq10{height:32px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fbhnoac{height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f17mpqex{padding-top:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdvome7{padding-bottom:var(--spacingHorizontalS);}",".ff24m:disabled{background-color:var(--colorTransparentBackground);}",".ft5r8e9:disabled{color:var(--colorNeutralForeground2);}",".f1cbpfqp:disabled{cursor:auto;}",".f1motppv:disabled .fui-Button__icon{color:unset;}",".fi9vkhg:disabled .fui-Icon-filled{display:none;}",".f1fg3nnv:disabled .fui-Icon-regular{display:inline;}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],h:[".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".f14w7a5u:hover{cursor:auto;}",".f1irjp3o:hover .fui-Button__icon{color:unset;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1xkgyln:hover:active{color:var(--colorNeutralForeground2);}",".f17wbbfx:hover:active{cursor:auto;}",".fofxw0a:hover:active .fui-Button__icon{color:unset;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}"]}),useBreadcrumbButtonStyles_unstable=eo=>{const to=useStyles$k(),no=useIconStyles(),io={small:to.currentSmall,medium:to.currentMedium,large:to.currentLarge};return eo.root.className=mergeClasses(breadcrumbButtonClassNames.root,to[eo.size],to.root,eo.current&&io[eo.size],eo.current&&to.current,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(no.base,no[eo.size],eo.icon.className)),useButtonStyles_unstable(eo),eo},BreadcrumbButton=reactExports.forwardRef((eo,to)=>{const no=useBreadcrumbButton_unstable(eo,to);return useBreadcrumbButtonStyles_unstable(no),useCustomStyleHook("useBreadcrumbButtonStyles_unstable")(no),renderBreadcrumbButton_unstable(no)});BreadcrumbButton.displayName="BreadcrumbButton";var axios$1={exports:{}},bind$2=function(to,no){return function(){for(var so=new Array(arguments.length),ao=0;ao"u"}function isBuffer$6(eo){return eo!==null&&!isUndefined$1(eo)&&eo.constructor!==null&&!isUndefined$1(eo.constructor)&&typeof eo.constructor.isBuffer=="function"&&eo.constructor.isBuffer(eo)}function isArrayBuffer(eo){return toString$7.call(eo)==="[object ArrayBuffer]"}function isFormData(eo){return typeof FormData<"u"&&eo instanceof FormData}function isArrayBufferView(eo){var to;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?to=ArrayBuffer.isView(eo):to=eo&&eo.buffer&&eo.buffer instanceof ArrayBuffer,to}function isString$1(eo){return typeof eo=="string"}function isNumber$1(eo){return typeof eo=="number"}function isObject$j(eo){return eo!==null&&typeof eo=="object"}function isPlainObject$3(eo){if(toString$7.call(eo)!=="[object Object]")return!1;var to=Object.getPrototypeOf(eo);return to===null||to===Object.prototype}function isDate(eo){return toString$7.call(eo)==="[object Date]"}function isFile(eo){return toString$7.call(eo)==="[object File]"}function isBlob(eo){return toString$7.call(eo)==="[object Blob]"}function isFunction$8(eo){return toString$7.call(eo)==="[object Function]"}function isStream(eo){return isObject$j(eo)&&isFunction$8(eo.pipe)}function isURLSearchParams(eo){return typeof URLSearchParams<"u"&&eo instanceof URLSearchParams}function trim$2(eo){return eo.trim?eo.trim():eo.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach$1(eo,to){if(!(eo===null||typeof eo>"u"))if(typeof eo!="object"&&(eo=[eo]),isArray$i(eo))for(var no=0,io=eo.length;no"u"||(utils$a.isArray(ho)?go=go+"[]":ho=[ho],utils$a.forEach(ho,function(yo){utils$a.isDate(yo)?yo=yo.toISOString():utils$a.isObject(yo)&&(yo=JSON.stringify(yo)),ao.push(encode$1(go)+"="+encode$1(yo))}))}),so=ao.join("&")}if(so){var lo=to.indexOf("#");lo!==-1&&(to=to.slice(0,lo)),to+=(to.indexOf("?")===-1?"?":"&")+so}return to},utils$9=utils$b;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(to,no,io){return this.handlers.push({fulfilled:to,rejected:no,synchronous:io?io.synchronous:!1,runWhen:io?io.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(to){this.handlers[to]&&(this.handlers[to]=null)};InterceptorManager$1.prototype.forEach=function(to){utils$9.forEach(this.handlers,function(io){io!==null&&to(io)})};var InterceptorManager_1=InterceptorManager$1,utils$8=utils$b,normalizeHeaderName$1=function(to,no){utils$8.forEach(to,function(so,ao){ao!==no&&ao.toUpperCase()===no.toUpperCase()&&(to[no]=so,delete to[ao])})},enhanceError$1=function(to,no,io,so,ao){return to.config=no,io&&(to.code=io),to.request=so,to.response=ao,to.isAxiosError=!0,to.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}},to},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var eo=enhanceError$1;return createError=function(no,io,so,ao,lo){var uo=new Error(no);return eo(uo,io,so,ao,lo)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var eo=requireCreateError();return settle=function(no,io,so){var ao=so.config.validateStatus;!so.status||!ao||ao(so.status)?no(so):io(eo("Request failed with status code "+so.status,so.config,null,so.request,so))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var eo=utils$b;return cookies=eo.isStandardBrowserEnv()?function(){return{write:function(io,so,ao,lo,uo,ho){var go=[];go.push(io+"="+encodeURIComponent(so)),eo.isNumber(ao)&&go.push("expires="+new Date(ao).toGMTString()),eo.isString(lo)&&go.push("path="+lo),eo.isString(uo)&&go.push("domain="+uo),ho===!0&&go.push("secure"),document.cookie=go.join("; ")},read:function(io){var so=document.cookie.match(new RegExp("(^|;\\s*)("+io+")=([^;]*)"));return so?decodeURIComponent(so[3]):null},remove:function(io){this.write(io,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(to){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(to)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(to,no){return no?to.replace(/\/+$/,"")+"/"+no.replace(/^\/+/,""):to}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var eo=requireIsAbsoluteURL(),to=requireCombineURLs();return buildFullPath=function(io,so){return io&&!eo(so)?to(io,so):so},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var eo=utils$b,to=["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"];return parseHeaders=function(io){var so={},ao,lo,uo;return io&&eo.forEach(io.split(` -`),function(go){if(uo=go.indexOf(":"),ao=eo.trim(go.substr(0,uo)).toLowerCase(),lo=eo.trim(go.substr(uo+1)),ao){if(so[ao]&&to.indexOf(ao)>=0)return;ao==="set-cookie"?so[ao]=(so[ao]?so[ao]:[]).concat([lo]):so[ao]=so[ao]?so[ao]+", "+lo:lo}}),so},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var eo=utils$b;return isURLSameOrigin=eo.isStandardBrowserEnv()?function(){var no=/(msie|trident)/i.test(navigator.userAgent),io=document.createElement("a"),so;function ao(lo){var uo=lo;return no&&(io.setAttribute("href",uo),uo=io.href),io.setAttribute("href",uo),{href:io.href,protocol:io.protocol?io.protocol.replace(/:$/,""):"",host:io.host,search:io.search?io.search.replace(/^\?/,""):"",hash:io.hash?io.hash.replace(/^#/,""):"",hostname:io.hostname,port:io.port,pathname:io.pathname.charAt(0)==="/"?io.pathname:"/"+io.pathname}}return so=ao(window.location.href),function(uo){var ho=eo.isString(uo)?ao(uo):uo;return ho.protocol===so.protocol&&ho.host===so.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var eo=utils$b,to=requireSettle(),no=requireCookies(),io=buildURL$1,so=requireBuildFullPath(),ao=requireParseHeaders(),lo=requireIsURLSameOrigin(),uo=requireCreateError();return xhr=function(go){return new Promise(function(yo,So){var _o=go.data,ko=go.headers,Co=go.responseType;eo.isFormData(_o)&&delete ko["Content-Type"];var $o=new XMLHttpRequest;if(go.auth){var Ro=go.auth.username||"",Oo=go.auth.password?unescape(encodeURIComponent(go.auth.password)):"";ko.Authorization="Basic "+btoa(Ro+":"+Oo)}var No=so(go.baseURL,go.url);$o.open(go.method.toUpperCase(),io(No,go.params,go.paramsSerializer),!0),$o.timeout=go.timeout;function Mo(){if($o){var Po="getAllResponseHeaders"in $o?ao($o.getAllResponseHeaders()):null,Lo=!Co||Co==="text"||Co==="json"?$o.responseText:$o.response,Go={data:Lo,status:$o.status,statusText:$o.statusText,headers:Po,config:go,request:$o};to(yo,So,Go),$o=null}}if("onloadend"in $o?$o.onloadend=Mo:$o.onreadystatechange=function(){!$o||$o.readyState!==4||$o.status===0&&!($o.responseURL&&$o.responseURL.indexOf("file:")===0)||setTimeout(Mo)},$o.onabort=function(){$o&&(So(uo("Request aborted",go,"ECONNABORTED",$o)),$o=null)},$o.onerror=function(){So(uo("Network Error",go,null,$o)),$o=null},$o.ontimeout=function(){var Lo="timeout of "+go.timeout+"ms exceeded";go.timeoutErrorMessage&&(Lo=go.timeoutErrorMessage),So(uo(Lo,go,go.transitional&&go.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",$o)),$o=null},eo.isStandardBrowserEnv()){var Bo=(go.withCredentials||lo(No))&&go.xsrfCookieName?no.read(go.xsrfCookieName):void 0;Bo&&(ko[go.xsrfHeaderName]=Bo)}"setRequestHeader"in $o&&eo.forEach(ko,function(Lo,Go){typeof _o>"u"&&Go.toLowerCase()==="content-type"?delete ko[Go]:$o.setRequestHeader(Go,Lo)}),eo.isUndefined(go.withCredentials)||($o.withCredentials=!!go.withCredentials),Co&&Co!=="json"&&($o.responseType=go.responseType),typeof go.onDownloadProgress=="function"&&$o.addEventListener("progress",go.onDownloadProgress),typeof go.onUploadProgress=="function"&&$o.upload&&$o.upload.addEventListener("progress",go.onUploadProgress),go.cancelToken&&go.cancelToken.promise.then(function(Lo){$o&&($o.abort(),So(Lo),$o=null)}),_o||(_o=null),$o.send(_o)})},xhr}var utils$7=utils$b,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(eo,to){!utils$7.isUndefined(eo)&&utils$7.isUndefined(eo["Content-Type"])&&(eo["Content-Type"]=to)}function getDefaultAdapter(){var eo;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(eo=requireXhr()),eo}function stringifySafely(eo,to,no){if(utils$7.isString(eo))try{return(to||JSON.parse)(eo),utils$7.trim(eo)}catch(io){if(io.name!=="SyntaxError")throw io}return(no||JSON.stringify)(eo)}var defaults$o={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function(to,no){return normalizeHeaderName(no,"Accept"),normalizeHeaderName(no,"Content-Type"),utils$7.isFormData(to)||utils$7.isArrayBuffer(to)||utils$7.isBuffer(to)||utils$7.isStream(to)||utils$7.isFile(to)||utils$7.isBlob(to)?to:utils$7.isArrayBufferView(to)?to.buffer:utils$7.isURLSearchParams(to)?(setContentTypeIfUnset(no,"application/x-www-form-urlencoded;charset=utf-8"),to.toString()):utils$7.isObject(to)||no&&no["Content-Type"]==="application/json"?(setContentTypeIfUnset(no,"application/json"),stringifySafely(to)):to}],transformResponse:[function(to){var no=this.transitional,io=no&&no.silentJSONParsing,so=no&&no.forcedJSONParsing,ao=!io&&this.responseType==="json";if(ao||so&&utils$7.isString(to)&&to.length)try{return JSON.parse(to)}catch(lo){if(ao)throw lo.name==="SyntaxError"?enhanceError(lo,this,"E_JSON_PARSE"):lo}return to}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(to){return to>=200&&to<300}};defaults$o.headers={common:{Accept:"application/json, text/plain, */*"}};utils$7.forEach(["delete","get","head"],function(to){defaults$o.headers[to]={}});utils$7.forEach(["post","put","patch"],function(to){defaults$o.headers[to]=utils$7.merge(DEFAULT_CONTENT_TYPE)});var defaults_1$1=defaults$o,utils$6=utils$b,defaults$n=defaults_1$1,transformData$1=function(to,no,io){var so=this||defaults$n;return utils$6.forEach(io,function(lo){to=lo.call(so,to,no)}),to},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(to){return!!(to&&to.__CANCEL__)}),isCancel$1}var utils$5=utils$b,transformData=transformData$1,isCancel=requireIsCancel(),defaults$m=defaults_1$1;function throwIfCancellationRequested(eo){eo.cancelToken&&eo.cancelToken.throwIfRequested()}var dispatchRequest$1=function(to){throwIfCancellationRequested(to),to.headers=to.headers||{},to.data=transformData.call(to,to.data,to.headers,to.transformRequest),to.headers=utils$5.merge(to.headers.common||{},to.headers[to.method]||{},to.headers),utils$5.forEach(["delete","get","head","post","put","patch","common"],function(so){delete to.headers[so]});var no=to.adapter||defaults$m.adapter;return no(to).then(function(so){return throwIfCancellationRequested(to),so.data=transformData.call(to,so.data,so.headers,to.transformResponse),so},function(so){return isCancel(so)||(throwIfCancellationRequested(to),so&&so.response&&(so.response.data=transformData.call(to,so.response.data,so.response.headers,to.transformResponse))),Promise.reject(so)})},utils$4=utils$b,mergeConfig$2=function(to,no){no=no||{};var io={},so=["url","method","data"],ao=["headers","auth","proxy","params"],lo=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],uo=["validateStatus"];function ho(So,_o){return utils$4.isPlainObject(So)&&utils$4.isPlainObject(_o)?utils$4.merge(So,_o):utils$4.isPlainObject(_o)?utils$4.merge({},_o):utils$4.isArray(_o)?_o.slice():_o}function go(So){utils$4.isUndefined(no[So])?utils$4.isUndefined(to[So])||(io[So]=ho(void 0,to[So])):io[So]=ho(to[So],no[So])}utils$4.forEach(so,function(_o){utils$4.isUndefined(no[_o])||(io[_o]=ho(void 0,no[_o]))}),utils$4.forEach(ao,go),utils$4.forEach(lo,function(_o){utils$4.isUndefined(no[_o])?utils$4.isUndefined(to[_o])||(io[_o]=ho(void 0,to[_o])):io[_o]=ho(void 0,no[_o])}),utils$4.forEach(uo,function(_o){_o in no?io[_o]=ho(to[_o],no[_o]):_o in to&&(io[_o]=ho(void 0,to[_o]))});var mo=so.concat(ao).concat(lo).concat(uo),yo=Object.keys(to).concat(Object.keys(no)).filter(function(_o){return mo.indexOf(_o)===-1});return utils$4.forEach(yo,go),io};const name$1="axios",version$5="0.21.4",description="Promise based HTTP client for the browser and node.js",main$2="index.js",scripts={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository={type:"git",url:"https://github.com/axios/axios.git"},keywords$1=["xhr","http","ajax","promise","node"],author="Matt Zabriskie",license="MIT",bugs={url:"https://github.com/axios/axios/issues"},homepage="https://axios-http.com",devDependencies={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser$2={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr="dist/axios.min.js",unpkg="dist/axios.min.js",typings="./index.d.ts",dependencies={"follow-redirects":"^1.14.0"},bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}],require$$0={name:name$1,version:version$5,description,main:main$2,scripts,repository,keywords:keywords$1,author,license,bugs,homepage,devDependencies,browser:browser$2,jsdelivr,unpkg,typings,dependencies,bundlesize};var pkg=require$$0,validators$3={};["object","boolean","number","function","string","symbol"].forEach(function(eo,to){validators$3[eo]=function(io){return typeof io===eo||"a"+(to<1?"n ":" ")+eo}});var deprecatedWarnings={},currentVerArr=pkg.version.split(".");function isOlderVersion(eo,to){for(var no=to?to.split("."):currentVerArr,io=eo.split("."),so=0;so<3;so++){if(no[so]>io[so])return!0;if(no[so]0;){var ao=io[so],lo=to[ao];if(lo){var uo=eo[ao],ho=uo===void 0||lo(uo,ao,eo);if(ho!==!0)throw new TypeError("option "+ao+" must be "+ho);continue}if(no!==!0)throw Error("Unknown option "+ao)}}var validator$1={isOlderVersion,assertOptions,validators:validators$3},utils$3=utils$b,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators$2=validator.validators;function Axios$1(eo){this.defaults=eo,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(to){typeof to=="string"?(to=arguments[1]||{},to.url=arguments[0]):to=to||{},to=mergeConfig$1(this.defaults,to),to.method?to.method=to.method.toLowerCase():this.defaults.method?to.method=this.defaults.method.toLowerCase():to.method="get";var no=to.transitional;no!==void 0&&validator.assertOptions(no,{silentJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),forcedJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),clarifyTimeoutError:validators$2.transitional(validators$2.boolean,"1.0.0")},!1);var io=[],so=!0;this.interceptors.request.forEach(function(So){typeof So.runWhen=="function"&&So.runWhen(to)===!1||(so=so&&So.synchronous,io.unshift(So.fulfilled,So.rejected))});var ao=[];this.interceptors.response.forEach(function(So){ao.push(So.fulfilled,So.rejected)});var lo;if(!so){var uo=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(uo,io),uo=uo.concat(ao),lo=Promise.resolve(to);uo.length;)lo=lo.then(uo.shift(),uo.shift());return lo}for(var ho=to;io.length;){var go=io.shift(),mo=io.shift();try{ho=go(ho)}catch(yo){mo(yo);break}}try{lo=dispatchRequest(ho)}catch(yo){return Promise.reject(yo)}for(;ao.length;)lo=lo.then(ao.shift(),ao.shift());return lo};Axios$1.prototype.getUri=function(to){return to=mergeConfig$1(this.defaults,to),buildURL(to.url,to.params,to.paramsSerializer).replace(/^\?/,"")};utils$3.forEach(["delete","get","head","options"],function(to){Axios$1.prototype[to]=function(no,io){return this.request(mergeConfig$1(io||{},{method:to,url:no,data:(io||{}).data}))}});utils$3.forEach(["post","put","patch"],function(to){Axios$1.prototype[to]=function(no,io,so){return this.request(mergeConfig$1(so||{},{method:to,url:no,data:io}))}});var Axios_1=Axios$1,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function eo(to){this.message=to}return eo.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},eo.prototype.__CANCEL__=!0,Cancel_1=eo,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var eo=requireCancel();function to(no){if(typeof no!="function")throw new TypeError("executor must be a function.");var io;this.promise=new Promise(function(lo){io=lo});var so=this;no(function(lo){so.reason||(so.reason=new eo(lo),io(so.reason))})}return to.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},to.source=function(){var io,so=new to(function(lo){io=lo});return{token:so,cancel:io}},CancelToken_1=to,CancelToken_1}var spread$1,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread$1=function(to){return function(io){return to.apply(null,io)}}),spread$1}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(to){return typeof to=="object"&&to.isAxiosError===!0}),isAxiosError}var utils$2=utils$b,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults$l=defaults_1$1;function createInstance(eo){var to=new Axios(eo),no=bind(Axios.prototype.request,to);return utils$2.extend(no,Axios.prototype,to),utils$2.extend(no,to),no}var axios=createInstance(defaults$l);axios.Axios=Axios;axios.create=function(to){return createInstance(mergeConfig(axios.defaults,to))};axios.Cancel=requireCancel();axios.CancelToken=requireCancelToken();axios.isCancel=requireIsCancel();axios.all=function(to){return Promise.all(to)};axios.spread=requireSpread();axios.isAxiosError=requireIsAxiosError();axios$1.exports=axios;axios$1.exports.default=axios;var rngBrowser={exports:{}},getRandomValues$1=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues$1){var rnds8$1=new Uint8Array(16);rngBrowser.exports=function(){return getRandomValues$1(rnds8$1),rnds8$1}}else{var rnds=new Array(16);rngBrowser.exports=function(){for(var to=0,no;to<16;to++)to&3||(no=Math.random()*4294967296),rnds[to]=no>>>((to&3)<<3)&255;return rnds}}var rngBrowserExports=rngBrowser.exports,byteToHex$2=[];for(var i$8=0;i$8<256;++i$8)byteToHex$2[i$8]=(i$8+256).toString(16).substr(1);function bytesToUuid$3(eo,to){var no=to||0,io=byteToHex$2;return[io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]]].join("")}var bytesToUuid_1=bytesToUuid$3,rng$2=rngBrowserExports,bytesToUuid$2=bytesToUuid_1,_nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1$2(eo,to,no){var io=to&&no||0,so=to||[];eo=eo||{};var ao=eo.node||_nodeId,lo=eo.clockseq!==void 0?eo.clockseq:_clockseq;if(ao==null||lo==null){var uo=rng$2();ao==null&&(ao=_nodeId=[uo[0]|1,uo[1],uo[2],uo[3],uo[4],uo[5]]),lo==null&&(lo=_clockseq=(uo[6]<<8|uo[7])&16383)}var ho=eo.msecs!==void 0?eo.msecs:new Date().getTime(),go=eo.nsecs!==void 0?eo.nsecs:_lastNSecs+1,mo=ho-_lastMSecs+(go-_lastNSecs)/1e4;if(mo<0&&eo.clockseq===void 0&&(lo=lo+1&16383),(mo<0||ho>_lastMSecs)&&eo.nsecs===void 0&&(go=0),go>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=ho,_lastNSecs=go,_clockseq=lo,ho+=122192928e5;var yo=((ho&268435455)*1e4+go)%4294967296;so[io++]=yo>>>24&255,so[io++]=yo>>>16&255,so[io++]=yo>>>8&255,so[io++]=yo&255;var So=ho/4294967296*1e4&268435455;so[io++]=So>>>8&255,so[io++]=So&255,so[io++]=So>>>24&15|16,so[io++]=So>>>16&255,so[io++]=lo>>>8|128,so[io++]=lo&255;for(var _o=0;_o<6;++_o)so[io+_o]=ao[_o];return to||bytesToUuid$2(so)}var v1_1=v1$2,rng$1=rngBrowserExports,bytesToUuid$1=bytesToUuid_1;function v4$2(eo,to,no){var io=to&&no||0;typeof eo=="string"&&(to=eo==="binary"?new Array(16):null,eo=null),eo=eo||{};var so=eo.random||(eo.rng||rng$1)();if(so[6]=so[6]&15|64,so[8]=so[8]&63|128,to)for(var ao=0;ao<16;++ao)to[io+ao]=so[ao];return to||bytesToUuid$1(so)}var v4_1=v4$2,v1$1=v1_1,v4$1=v4_1,uuid$1=v4$1;uuid$1.v1=v1$1;uuid$1.v4=v4$1;var uuid_1=uuid$1;const BASELINE_VARIANT_ID="variant_0",DEFAULT_CHAT_INPUT_NAME="chat_input",DEFAULT_CHAT_HISTORY_NAME="chat_history",DEFAULT_CHAT_OUTPUT_NAME="chat_output";var FlowFeatures=(eo=>(eo.OpenCodeFileInNode="OpenCodeFileInNode",eo.ShowWarningIconOnNode="ShowWarningIconOnNode",eo))(FlowFeatures||{}),ConnectionType=(eo=>(eo.OpenAI="OpenAI",eo.AzureOpenAI="AzureOpenAI",eo.Serp="Serp",eo.Bing="Bing",eo.AzureContentModerator="AzureContentModerator",eo.Custom="Custom",eo.AzureContentSafety="AzureContentSafety",eo.CognitiveSearch="CognitiveSearch",eo.SubstrateLLM="SubstrateLLM",eo.Pinecone="Pinecone",eo.Qdrant="Qdrant",eo.Weaviate="Weaviate",eo.FormRecognizer="FormRecognizer",eo.Serverless="Serverless",eo))(ConnectionType||{}),FlowType=(eo=>(eo.Default="Default",eo.Evaluation="Evaluation",eo.Chat="Chat",eo.Rag="Rag",eo))(FlowType||{}),InputType=(eo=>(eo.default="default",eo.uionly_hidden="uionly_hidden",eo))(InputType||{}),Orientation$1=(eo=>(eo.Horizontal="Horizontal",eo.Vertical="Vertical",eo))(Orientation$1||{}),ToolType=(eo=>(eo.llm="llm",eo.python="python",eo.action="action",eo.prompt="prompt",eo.custom_llm="custom_llm",eo.csharp="csharp",eo.typescript="typescript",eo))(ToolType||{}),ValueType=(eo=>(eo.int="int",eo.double="double",eo.bool="bool",eo.string="string",eo.secret="secret",eo.prompt_template="prompt_template",eo.object="object",eo.list="list",eo.BingConnection="BingConnection",eo.OpenAIConnection="OpenAIConnection",eo.AzureOpenAIConnection="AzureOpenAIConnection",eo.AzureContentModeratorConnection="AzureContentModeratorConnection",eo.CustomConnection="CustomConnection",eo.AzureContentSafetyConnection="AzureContentSafetyConnection",eo.SerpConnection="SerpConnection",eo.CognitiveSearchConnection="CognitiveSearchConnection",eo.SubstrateLLMConnection="SubstrateLLMConnection",eo.PineconeConnection="PineconeConnection",eo.QdrantConnection="QdrantConnection",eo.WeaviateConnection="WeaviateConnection",eo.function_list="function_list",eo.function_str="function_str",eo.FormRecognizerConnection="FormRecognizerConnection",eo.file_path="file_path",eo.image="image",eo.assistant_definition="assistant_definition",eo.ServerlessConnection="ServerlessConnection",eo))(ValueType||{});const FLOW_INPUT_REF_NAME_FLOW="flow",FLOW_INPUT_REF_NAME_INPUT="inputs",FLOW_INPUT_NODE_NAME="inputs",FLOW_OUTPUT_NODE_NAME="outputs",isFlowInput=eo=>[FLOW_INPUT_REF_NAME_FLOW,FLOW_INPUT_REF_NAME_INPUT].includes(eo),SystemColors=["#637CEF","#E61C99","#00A5AF","#9470BD","#689920","#3487C7","#CA5010","#009B51","#B27C00","#B146C2","#4F6BED","#EE5FB7","#008B94","#D77440","#BA58C9","#3A96DD","#E3008C","#57811B","#C36BD1","#D06228","#6E0811","#C50F1F","#F7630C","#107C10","#094509"];var ValidationErrorType=(eo=>(eo.CircularDependency="CircularDependency",eo.InputDependencyNotFound="InputDependencyNotFound",eo.InputGenerateError="InputGenerateError",eo.InputSelfReference="InputSelfReference",eo.InputEmpty="InputEmpty",eo.InputInvalidType="InputInvalidType",eo.NodeConfigInvalid="NodeConfigInvalid",eo.UnparsedCode="UnparsedCode",eo.EmptyCode="EmptyCode",eo.MissingTool="MissingTool",eo.AutoParseInputError="AutoParseInputError",eo.RuntimeNameEmpty="RuntimeNameEmpty",eo.RuntimeStatusInvalid="RuntimeStatusInvalid",eo))(ValidationErrorType||{}),ChatMessageFrom=(eo=>(eo.System="system",eo.ErrorHandler="error",eo.Chatbot="chatbot",eo.User="user",eo))(ChatMessageFrom||{}),ChatMessageType$1=(eo=>(eo.Text="text",eo.Typing="typing",eo.SessionSplit="session-split",eo))(ChatMessageType$1||{});const convertToBool=eo=>eo==="true"||eo==="True"||eo===!0,basicValueTypeDetector=eo=>Array.isArray(eo)?ValueType.list:typeof eo=="boolean"?ValueType.bool:typeof eo=="string"?ValueType.string:typeof eo=="number"?Number.isInteger(eo)?ValueType.int:ValueType.double:ValueType.object;function valueStringify(eo){if(eo==null)return;switch(basicValueTypeDetector(eo)){case ValueType.string:return eo;case ValueType.int:case ValueType.double:return eo.toString();case ValueType.bool:return eo?"True":"False";case ValueType.object:case ValueType.list:return JSON.stringify(eo);default:return String(eo)}}var lodash$1={exports:{}};/** + var(--colorNeutralStencil1Alpha) 100%);}`,".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f4akx1t{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f18p5put{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f9jxvrw{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes fma800j{from{background-position-x:300%;}to{background-position-x:0%;}}","@keyframes fj9wi3p{from{background-position-x:0%;}to{background-position-x:300%;}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),useRectangleStyles=__styles({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Bbmb7ep:["fff7au0","f1bjk9e1"],Beyfa6y:["f1bjk9e1","fff7au0"],B7oj6ja:["fwsfkhu","f8wkphi"],Btl43ni:["f8wkphi","fwsfkhu"]}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",".fff7au0{border-bottom-right-radius:4px;}",".f1bjk9e1{border-bottom-left-radius:4px;}",".fwsfkhu{border-top-right-radius:4px;}",".f8wkphi{border-top-left-radius:4px;}"]}),useSizeStyles=__styles({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),useCircleSizeStyles=__styles({root:{Bbmb7ep:["fqgqgel","fchfifz"],Beyfa6y:["fchfifz","fqgqgel"],B7oj6ja:["fc7b1hi","f1dpx5h9"],Btl43ni:["f1dpx5h9","fc7b1hi"]}},{d:[".fqgqgel{border-bottom-right-radius:50%;}",".fchfifz{border-bottom-left-radius:50%;}",".fc7b1hi{border-top-right-radius:50%;}",".f1dpx5h9{border-top-left-radius:50%;}"]}),useSkeletonItemStyles_unstable=eo=>{const{animation:to,appearance:no,size:io,shape:so}=eo,{dir:ao}=useFluent(),lo=useStyles$x(),uo=useRectangleStyles(),ho=useSizeStyles(),go=useCircleSizeStyles();return eo.root.className=mergeClasses(skeletonItemClassNames.root,lo.root,to==="wave"&&lo.wave,to==="wave"&&ao==="rtl"&&lo.waveRtl,to==="pulse"&&lo.pulse,no==="translucent"&&lo.translucent,to==="pulse"&&no==="translucent"&&lo.translucentPulse,so==="rectangle"&&uo.root,so==="rectangle"&&uo[io],so==="square"&&ho[io],so==="circle"&&go.root,so==="circle"&&ho[io],eo.root.className),eo},SkeletonItem=reactExports.forwardRef((eo,to)=>{const no=useSkeletonItem_unstable(eo,to);return useSkeletonItemStyles_unstable(no),renderSkeletonItem_unstable(no)});SkeletonItem.displayName="SkeletonItem";const DefaultSvg=()=>reactExports.createElement("svg",{className:"fui-Spinner__Progressbar"},reactExports.createElement("circle",{className:"fui-Spinner__Track"}),reactExports.createElement("circle",{className:"fui-Spinner__Tail"})),SpinnerContext=reactExports.createContext(void 0),SpinnerContextDefaultValue={};SpinnerContext.Provider;const useSpinnerContext=()=>{var eo;return(eo=reactExports.useContext(SpinnerContext))!==null&&eo!==void 0?eo:SpinnerContextDefaultValue},useSpinner_unstable=(eo,to)=>{const{size:no}=useSpinnerContext(),{appearance:io="primary",labelPosition:so="after",size:ao=no??"medium",delay:lo=0}=eo,uo=useId$1("spinner"),{role:ho="progressbar",tabIndex:go,...mo}=eo,yo=always(getIntrinsicElementProps("div",{ref:to,role:ho,...mo},["size"]),{elementType:"div"}),[So,_o]=reactExports.useState(!0),[ko,Co]=useTimeout();reactExports.useEffect(()=>{if(!(lo<=0))return _o(!1),ko(()=>{_o(!0)},lo),()=>{Co()}},[ko,Co,lo]);const $o=optional(eo.label,{defaultProps:{id:uo},renderByDefault:!1,elementType:Label}),Ro=optional(eo.spinner,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(DefaultSvg,null),tabIndex:go},elementType:"span"});return $o&&yo&&!yo["aria-labelledby"]&&(yo["aria-labelledby"]=$o.id),{appearance:io,delay:lo,labelPosition:so,size:ao,shouldRenderSpinner:So,components:{root:"div",spinner:"span",label:Label},root:yo,spinner:Ro,label:$o}},renderSpinner_unstable=eo=>{const{labelPosition:to,shouldRenderSpinner:no}=eo;return jsxs(eo.root,{children:[eo.label&&no&&(to==="above"||to==="before")&&jsx$1(eo.label,{}),eo.spinner&&no&&jsx$1(eo.spinner,{}),eo.label&&no&&(to==="below"||to==="after")&&jsx$1(eo.label,{})]})},spinnerClassNames={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},useRootStyles$5=__styles({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),useLoaderStyles=__styles({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),useTrackStyles=__styles({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),useLabelStyles$1=__styles({inverted:{sj55zd:"f15aqcq"},primary:{},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),useSpinnerStyles_unstable=eo=>{const{labelPosition:to,size:no,appearance:io="primary"}=eo,so=useRootStyles$5(),ao=useLoaderStyles(),lo=useLabelStyles$1(),uo=useTrackStyles();return eo.root.className=mergeClasses(spinnerClassNames.root,so.root,(to==="above"||to==="below")&&so.vertical,(to==="before"||to==="after")&&so.horizontal,eo.root.className),eo.spinner&&(eo.spinner.className=mergeClasses(spinnerClassNames.spinner,ao.spinnerSVG,ao[no],uo[io],eo.spinner.className)),eo.label&&(eo.label.className=mergeClasses(spinnerClassNames.label,lo[no],lo[io],eo.label.className)),eo},Spinner=reactExports.forwardRef((eo,to)=>{const no=useSpinner_unstable(eo,to);return useSpinnerStyles_unstable(no),useCustomStyleHook("useSpinnerStyles_unstable")(no),renderSpinner_unstable(no)});Spinner.displayName="Spinner";const useSwitch_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0});const{checked:no,defaultChecked:io,disabled:so,labelPosition:ao="after",onChange:lo,required:uo}=eo,ho=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),go=useId$1("switch-",ho.primary.id),mo=always(eo.root,{defaultProps:{ref:useFocusWithin(),...ho.root},elementType:"div"}),yo=always(eo.indicator,{defaultProps:{"aria-hidden":!0,children:reactExports.createElement(CircleFilled,null)},elementType:"div"}),So=always(eo.input,{defaultProps:{checked:no,defaultChecked:io,id:go,ref:to,role:"switch",type:"checkbox",...ho.primary},elementType:"input"});So.onChange=mergeCallbacks(So.onChange,ko=>lo==null?void 0:lo(ko,{checked:ko.currentTarget.checked}));const _o=optional(eo.label,{defaultProps:{disabled:so,htmlFor:go,required:uo,size:"medium"},elementType:Label});return{labelPosition:ao,components:{root:"div",indicator:"div",input:"input",label:Label},root:mo,indicator:yo,input:So,label:_o}},renderSwitch_unstable=eo=>{const{labelPosition:to}=eo;return jsxs(eo.root,{children:[jsx$1(eo.input,{}),to!=="after"&&eo.label&&jsx$1(eo.label,{}),jsx$1(eo.indicator,{}),to==="after"&&eo.label&&jsx$1(eo.label,{})]})},switchClassNames={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},useRootBaseClassName=__resetStyles("r1i56xw0","rk4yt03",{r:[".r1i56xw0{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r1i56xw0:focus{outline-style:none;}",".r1i56xw0:focus-visible{outline-style:none;}",".r1i56xw0[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1i56xw0[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rk4yt03{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rk4yt03:focus{outline-style:none;}",".rk4yt03:focus-visible{outline-style:none;}",".rk4yt03[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rk4yt03[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1i56xw0[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rk4yt03[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useRootStyles$4=__styles({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),useIndicatorBaseClassName=__resetStyles("r13wlxb8",null,{r:[".r13wlxb8{border-radius:var(--borderRadiusCircular);border:1px solid;line-height:0;box-sizing:border-box;fill:currentColor;flex-shrink:0;font-size:18px;height:20px;margin:var(--spacingVerticalS) var(--spacingHorizontalS);pointer-events:none;transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:background,border,color;width:40px;}",".r13wlxb8>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r13wlxb8{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r13wlxb8>*{transition-duration:0.01ms;}}"]}),useIndicatorStyles=__styles({labelAbove:{B6of3ja:"f1hu3pq6"}},{d:[".f1hu3pq6{margin-top:0;}"]}),useInputBaseClassName=__resetStyles("rw4brat","r1f4bxyr",{r:[".rw4brat{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rw4brat:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",".rw4brat:disabled{cursor:default;}",".rw4brat:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".rw4brat:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".rw4brat:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".rw4brat:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".rw4brat:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".rw4brat:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rw4brat:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".rw4brat:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}",".r1f4bxyr{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r1f4bxyr:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",".r1f4bxyr:disabled{cursor:default;}",".r1f4bxyr:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".r1f4bxyr:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1f4bxyr:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".r1f4bxyr:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}"],s:["@media (forced-colors: active){.rw4brat:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rw4brat:disabled~.fui-Switch__label{color:GrayText;}.rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rw4brat:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}","@media (forced-colors: active){.r1f4bxyr:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r1f4bxyr:disabled~.fui-Switch__label{color:GrayText;}.r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}"]}),useInputStyles=__styles({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}"]}),useLabelStyles=__styles({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},above:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun",a9b677:"fly5x3f"},after:{uwmqm3:["fruq291","f7x41pl"]},before:{z189sj:["f7x41pl","fruq291"]}},{d:[".f1k6fduh{cursor:pointer;}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),useSwitchStyles_unstable=eo=>{const to=useRootBaseClassName(),no=useRootStyles$4(),io=useIndicatorBaseClassName(),so=useIndicatorStyles(),ao=useInputBaseClassName(),lo=useInputStyles(),uo=useLabelStyles(),{label:ho,labelPosition:go}=eo;return eo.root.className=mergeClasses(switchClassNames.root,to,go==="above"&&no.vertical,eo.root.className),eo.indicator.className=mergeClasses(switchClassNames.indicator,io,ho&&go==="above"&&so.labelAbove,eo.indicator.className),eo.input.className=mergeClasses(switchClassNames.input,ao,ho&&lo[go],eo.input.className),eo.label&&(eo.label.className=mergeClasses(switchClassNames.label,uo.base,uo[go],eo.label.className)),eo},Switch=reactExports.forwardRef((eo,to)=>{const no=useSwitch_unstable(eo,to);return useSwitchStyles_unstable(no),useCustomStyleHook("useSwitchStyles_unstable")(no),renderSwitch_unstable(no)});Switch.displayName="Switch";const tabListContextDefaultValue={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},TabListContext=createContext(void 0),TabListProvider=TabListContext.Provider,useTabListContext_unstable=eo=>useContextSelector(TabListContext,(to=tabListContextDefaultValue)=>eo(to)),useTab_unstable=(eo,to)=>{const{content:no,disabled:io=!1,icon:so,onClick:ao,onFocus:lo,value:uo}=eo,ho=useTabListContext_unstable(Uo=>Uo.appearance),go=useTabListContext_unstable(Uo=>Uo.reserveSelectedTabSpace),mo=useTabListContext_unstable(Uo=>Uo.selectTabOnFocus),yo=useTabListContext_unstable(Uo=>Uo.disabled),So=useTabListContext_unstable(Uo=>Uo.selectedValue===uo),_o=useTabListContext_unstable(Uo=>Uo.onRegister),ko=useTabListContext_unstable(Uo=>Uo.onUnregister),Co=useTabListContext_unstable(Uo=>Uo.onSelect),$o=useTabListContext_unstable(Uo=>Uo.size),Ro=useTabListContext_unstable(Uo=>!!Uo.vertical),Oo=yo||io,No=reactExports.useRef(null),Mo=Uo=>Co(Uo,{value:uo}),Bo=useEventCallback$3(mergeCallbacks(ao,Mo)),Fo=useEventCallback$3(mergeCallbacks(lo,Mo));reactExports.useEffect(()=>(_o({value:uo,ref:No}),()=>{ko({value:uo,ref:No})}),[_o,ko,No,uo]);const Lo=optional(so,{elementType:"span"}),Go=always(no,{defaultProps:{children:eo.children},elementType:"span"}),Do=!!(Lo!=null&&Lo.children&&!Go.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:always(getIntrinsicElementProps("button",{ref:useMergedRefs$1(to,No),role:"tab",type:"button","aria-selected":Oo?void 0:`${So}`,...eo,disabled:Oo,onClick:Bo,onFocus:mo?Fo:lo}),{elementType:"button"}),icon:Lo,iconOnly:Do,content:Go,contentReservedSpace:optional(no,{renderByDefault:!So&&!Do&&go,defaultProps:{children:eo.children},elementType:"span"}),appearance:ho,disabled:Oo,selected:So,size:$o,value:uo,vertical:Ro}},renderTab_unstable=eo=>jsxs(eo.root,{children:[eo.icon&&jsx$1(eo.icon,{}),!eo.iconOnly&&jsx$1(eo.content,{}),eo.contentReservedSpace&&jsx$1(eo.contentReservedSpace,{})]}),tabIndicatorCssVars_unstable={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},useActiveIndicatorStyles$1=__styles({base:{B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),calculateTabRect=eo=>{if(eo){var to;const no=((to=eo.parentElement)===null||to===void 0?void 0:to.getBoundingClientRect())||{x:0,y:0,width:0,height:0},io=eo.getBoundingClientRect();return{x:io.x-no.x,y:io.y-no.y,width:io.width,height:io.height}}},getRegisteredTabRect=(eo,to)=>{var no;const io=to!=null?(no=eo[JSON.stringify(to)])===null||no===void 0?void 0:no.ref.current:void 0;return io?calculateTabRect(io):void 0},useTabAnimatedIndicatorStyles_unstable=eo=>{const{disabled:to,selected:no,vertical:io}=eo,so=useActiveIndicatorStyles$1(),[ao,lo]=reactExports.useState(),[uo,ho]=reactExports.useState({offset:0,scale:1}),go=useTabListContext_unstable(So=>So.getRegisteredTabs);if(reactExports.useEffect(()=>{ao&&ho({offset:0,scale:1})},[ao]),no){const{previousSelectedValue:So,selectedValue:_o,registeredTabs:ko}=go();if(So&&ao!==So){const Co=getRegisteredTabRect(ko,So),$o=getRegisteredTabRect(ko,_o);if($o&&Co){const Ro=io?Co.y-$o.y:Co.x-$o.x,Oo=io?Co.height/$o.height:Co.width/$o.width;ho({offset:Ro,scale:Oo}),lo(So)}}}else ao&&lo(void 0);if(to)return eo;const mo=uo.offset===0&&uo.scale===1;eo.root.className=mergeClasses(eo.root.className,no&&so.base,no&&mo&&so.animated,no&&(io?so.vertical:so.horizontal));const yo={[tabIndicatorCssVars_unstable.offsetVar]:`${uo.offset}px`,[tabIndicatorCssVars_unstable.scaleVar]:`${uo.scale}`};return eo.root.style={...yo,...eo.root.style},eo},tabClassNames={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},reservedSpaceClassNames={content:"fui-Tab__content--reserved-space"},useRootStyles$3=__styles({base:{Bt984gj:"f122n59",g2u3we:"fwhevhj",h3c5rm:["f61n433","f1q8l70w"],B9xav0g:"fv1dfc8",zhjwy3:["f1q8l70w","f61n433"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",z8tnut:"fp2oml8",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1tdddsa",uwmqm3:["fk8j09s","fdw0yi8"]},smallVertical:{i8kkvl:"f14mj54c",z8tnut:"fclwglc",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fywfov9",uwmqm3:["fk8j09s","fdw0yi8"]},mediumHorizontal:{i8kkvl:"f1rjii52",z8tnut:"f5yzyt",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fx3omr",uwmqm3:["f1ng84yb","f11gcy0p"]},mediumVertical:{i8kkvl:"f1rjii52",z8tnut:"fp2oml8",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f1tdddsa",uwmqm3:["f1ng84yb","f11gcy0p"]},largeHorizontal:{i8kkvl:"f1rjii52",z8tnut:"fikn0iw",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdxej3c",uwmqm3:["f1ng84yb","f11gcy0p"]},largeVertical:{i8kkvl:"f1rjii52",z8tnut:"f1kwiid1",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f5b47ha",uwmqm3:["f1ng84yb","f11gcy0p"]},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",".fwhevhj{border-top-color:none;}",".f61n433{border-right-color:none;}",".f1q8l70w{border-left-color:none;}",".fv1dfc8{border-bottom-color:none;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f5yzyt{padding-top:var(--spacingVerticalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fx3omr{padding-bottom:var(--spacingVerticalM);}",".fikn0iw{padding-top:var(--spacingVerticalL);}",".fdxej3c{padding-bottom:var(--spacingVerticalL);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),useFocusStyles=__styles({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}"]}),usePendingIndicatorStyles=__styles({base:{az7l2e:"fhw179n",Bv4n3vi:["f10y1uxy","f6aiuy0"],vqofr:["f6aiuy0","f10y1uxy"],B0uxbk8:["f1kfpfnu","f1dx5wco"],Bgqb9hq:["f1dx5wco","f1kfpfnu"],amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",vzq8l0:["f105swax","fscdmel"],Bka2azo:["fscdmel","f105swax"],Br4ovkg:["f1tkcw1w","f1u11x8o"],csmgbd:["f1u11x8o","f1tkcw1w"],y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",".f10y1uxy:hover::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f6aiuy0:hover::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1kfpfnu:hover::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1dx5wco:hover::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",".f105swax:active::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".fscdmel:active::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1tkcw1w:active::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1u11x8o:active::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),useActiveIndicatorStyles=__styles({base:{Bjyk6c5:"f1rp0jgh",B3778ie:["fprarqb","f14vs0nd"],d9w3h3:["f14vs0nd","fprarqb"],Bl18szs:["f1gtfqs9","f18zvfd9"],B4j8arr:["f18zvfd9","f1gtfqs9"],Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",t2ki1e:"ffmd2fr"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",".fprarqb::after{border-bottom-right-radius:var(--borderRadiusCircular);}",".f14vs0nd::after{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1gtfqs9::after{border-top-right-radius:var(--borderRadiusCircular);}",".f18zvfd9::after{border-top-left-radius:var(--borderRadiusCircular);}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".ffmd2fr::after{z-index:1;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),useIconStyles$2=__styles({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),useContentStyles=__styles({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"fztplxc",z189sj:["ffczdla","fgiv446"],Byoj8tv:"f9g1xly",uwmqm3:["fgiv446","ffczdla"]},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fztplxc{padding-top:var(--spacingVerticalNone);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),useTabStyles_unstable=eo=>{const to=useRootStyles$3(),no=useFocusStyles(),io=usePendingIndicatorStyles(),so=useActiveIndicatorStyles(),ao=useIconStyles$2(),lo=useContentStyles(),{appearance:uo,disabled:ho,selected:go,size:mo,vertical:yo}=eo;return eo.root.className=mergeClasses(tabClassNames.root,to.base,yo?to.vertical:to.horizontal,mo==="small"&&(yo?to.smallVertical:to.smallHorizontal),mo==="medium"&&(yo?to.mediumVertical:to.mediumHorizontal),mo==="large"&&(yo?to.largeVertical:to.largeHorizontal),no.base,!ho&&uo==="subtle"&&to.subtle,!ho&&uo==="transparent"&&to.transparent,!ho&&go&&to.selected,ho&&to.disabled,io.base,mo==="small"&&(yo?io.smallVertical:io.smallHorizontal),mo==="medium"&&(yo?io.mediumVertical:io.mediumHorizontal),mo==="large"&&(yo?io.largeVertical:io.largeHorizontal),ho&&io.disabled,go&&so.base,go&&!ho&&so.selected,go&&mo==="small"&&(yo?so.smallVertical:so.smallHorizontal),go&&mo==="medium"&&(yo?so.mediumVertical:so.mediumHorizontal),go&&mo==="large"&&(yo?so.largeVertical:so.largeHorizontal),go&&ho&&so.disabled,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(tabClassNames.icon,ao.base,ao[mo],go&&ao.selected,eo.icon.className)),eo.contentReservedSpace&&(eo.contentReservedSpace.className=mergeClasses(reservedSpaceClassNames.content,lo.base,mo==="large"?lo.largeSelected:lo.selected,eo.icon?lo.iconBefore:lo.noIconBefore,lo.placeholder,eo.content.className),eo.contentReservedSpaceClassName=eo.contentReservedSpace.className),eo.content.className=mergeClasses(tabClassNames.content,lo.base,mo==="large"&&lo.large,go&&(mo==="large"?lo.largeSelected:lo.selected),eo.icon?lo.iconBefore:lo.noIconBefore,eo.content.className),useTabAnimatedIndicatorStyles_unstable(eo),eo},Tab$1=reactExports.forwardRef((eo,to)=>{const no=useTab_unstable(eo,to);return useTabStyles_unstable(no),useCustomStyleHook("useTabStyles_unstable")(no),renderTab_unstable(no)});Tab$1.displayName="Tab";const useTabList_unstable=(eo,to)=>{const{appearance:no="transparent",reserveSelectedTabSpace:io=!0,disabled:so=!1,onTabSelect:ao,selectTabOnFocus:lo=!1,size:uo="medium",vertical:ho=!1}=eo,go=reactExports.useRef(null),mo=useArrowNavigationGroup({circular:!0,axis:ho?"vertical":"horizontal",memorizeCurrent:!0}),[yo,So]=useControllableState({state:eo.selectedValue,defaultState:eo.defaultSelectedValue,initialState:void 0}),_o=reactExports.useRef(void 0),ko=reactExports.useRef(void 0);reactExports.useEffect(()=>{ko.current=_o.current,_o.current=yo},[yo]);const Co=useEventCallback$3((Mo,Bo)=>{So(Bo.value),ao==null||ao(Mo,Bo)}),$o=reactExports.useRef({}),Ro=useEventCallback$3(Mo=>{$o.current[JSON.stringify(Mo.value)]=Mo}),Oo=useEventCallback$3(Mo=>{delete $o.current[JSON.stringify(Mo.value)]}),No=reactExports.useCallback(()=>({selectedValue:_o.current,previousSelectedValue:ko.current,registeredTabs:$o.current}),[]);return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,go),role:"tablist","aria-orientation":ho?"vertical":"horizontal",...mo,...eo}),{elementType:"div"}),appearance:no,reserveSelectedTabSpace:io,disabled:so,selectTabOnFocus:lo,selectedValue:yo,size:uo,vertical:ho,onRegister:Ro,onUnregister:Oo,onSelect:Co,getRegisteredTabs:No}},renderTabList_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(TabListProvider,{value:to.tabList,children:eo.root.children})}),tabListClassNames={root:"fui-TabList"},useStyles$w=__styles({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}"]}),useTabListStyles_unstable=eo=>{const{vertical:to}=eo,no=useStyles$w();return eo.root.className=mergeClasses(tabListClassNames.root,no.root,to?no.vertical:no.horizontal,eo.root.className),eo};function useTabListContextValues_unstable(eo){const{appearance:to,reserveSelectedTabSpace:no,disabled:io,selectTabOnFocus:so,selectedValue:ao,onRegister:lo,onUnregister:uo,onSelect:ho,getRegisteredTabs:go,size:mo,vertical:yo}=eo;return{tabList:{appearance:to,reserveSelectedTabSpace:no,disabled:io,selectTabOnFocus:so,selectedValue:ao,onSelect:ho,onRegister:lo,onUnregister:uo,getRegisteredTabs:go,size:mo,vertical:yo}}}const TabList=reactExports.forwardRef((eo,to)=>{const no=useTabList_unstable(eo,to),io=useTabListContextValues_unstable(no);return useTabListStyles_unstable(no),useCustomStyleHook("useTabListStyles_unstable")(no),renderTabList_unstable(no,io)});TabList.displayName="TabList";const useText_unstable=(eo,to)=>{const{wrap:no,truncate:io,block:so,italic:ao,underline:lo,strikethrough:uo,size:ho,font:go,weight:mo,align:yo}=eo;return{align:yo??"start",block:so??!1,font:go??"base",italic:ao??!1,size:ho??300,strikethrough:uo??!1,truncate:io??!1,underline:lo??!1,weight:mo??"regular",wrap:no??!0,components:{root:"span"},root:always(getIntrinsicElementProps("span",{ref:to,...eo}),{elementType:"span"})}},renderText_unstable=eo=>jsx$1(eo.root,{}),textClassNames={root:"fui-Text"},useStyles$v=__styles({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),useTextStyles_unstable=eo=>{const to=useStyles$v();return eo.root.className=mergeClasses(textClassNames.root,to.root,eo.wrap===!1&&to.nowrap,eo.truncate&&to.truncate,eo.block&&to.block,eo.italic&&to.italic,eo.underline&&to.underline,eo.strikethrough&&to.strikethrough,eo.underline&&eo.strikethrough&&to.strikethroughUnderline,eo.size===100&&to.base100,eo.size===200&&to.base200,eo.size===400&&to.base400,eo.size===500&&to.base500,eo.size===600&&to.base600,eo.size===700&&to.hero700,eo.size===800&&to.hero800,eo.size===900&&to.hero900,eo.size===1e3&&to.hero1000,eo.font==="monospace"&&to.monospace,eo.font==="numeric"&&to.numeric,eo.weight==="medium"&&to.weightMedium,eo.weight==="semibold"&&to.weightSemibold,eo.weight==="bold"&&to.weightBold,eo.align==="center"&&to.alignCenter,eo.align==="end"&&to.alignEnd,eo.align==="justify"&&to.alignJustify,eo.root.className),eo},Text$2=reactExports.forwardRef((eo,to)=>{const no=useText_unstable(eo,to);return useTextStyles_unstable(no),useCustomStyleHook("useTextStyles_unstable")(no),renderText_unstable(no)});Text$2.displayName="Text";const disableScrollElementProp="__fluentDisableScrollElement";function useDisableBodyScroll(){const{targetDocument:eo}=useFluent();return reactExports.useCallback(()=>{if(eo)return disableScroll(eo.body)},[eo])}function disableScroll(eo){var to;const{clientWidth:no}=eo.ownerDocument.documentElement;var io;const so=(io=(to=eo.ownerDocument.defaultView)===null||to===void 0?void 0:to.innerWidth)!==null&&io!==void 0?io:0;return assertIsDisableScrollElement(eo),eo[disableScrollElementProp].count===0&&(eo.style.overflow="hidden",eo.style.paddingRight=`${so-no}px`),eo[disableScrollElementProp].count++,()=>{eo[disableScrollElementProp].count--,eo[disableScrollElementProp].count===0&&(eo.style.overflow=eo[disableScrollElementProp].previousOverflowStyle,eo.style.paddingRight=eo[disableScrollElementProp].previousPaddingRightStyle)}}function assertIsDisableScrollElement(eo){var to,no,io;(io=(to=eo)[no=disableScrollElementProp])!==null&&io!==void 0||(to[no]={count:0,previousOverflowStyle:eo.style.overflow,previousPaddingRightStyle:eo.style.paddingRight})}function useFocusFirstElement(eo,to){const{findFirstFocusable:no}=useFocusFinders(),{targetDocument:io}=useFluent(),so=reactExports.useRef(null);return reactExports.useEffect(()=>{if(!eo)return;const ao=so.current&&no(so.current);if(ao)ao.focus();else{var lo;(lo=so.current)===null||lo===void 0||lo.focus()}},[no,eo,to,io]),so}const defaultContextValue$3={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},DialogContext=createContext(void 0),DialogProvider=DialogContext.Provider,useDialogContext_unstable=eo=>useContextSelector(DialogContext,(to=defaultContextValue$3)=>eo(to)),defaultContextValue$2=!1,DialogSurfaceContext=reactExports.createContext(void 0),DialogSurfaceProvider=DialogSurfaceContext.Provider,useDialogSurfaceContext_unstable=()=>{var eo;return(eo=reactExports.useContext(DialogSurfaceContext))!==null&&eo!==void 0?eo:defaultContextValue$2},useDialog_unstable=eo=>{const{children:to,modalType:no="modal",onOpenChange:io,inertTrapFocus:so=!1}=eo,[ao,lo]=childrenToTriggerAndContent(to),[uo,ho]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1}),go=useEventCallback$3(Co=>{io==null||io(Co.event,Co),Co.event.isDefaultPrevented()||ho(Co.open)}),mo=useFocusFirstElement(uo,no),yo=useDisableBodyScroll(),So=!!(uo&&no!=="non-modal");useIsomorphicLayoutEffect$1(()=>{if(So)return yo()},[yo,So]);const{modalAttributes:_o,triggerAttributes:ko}=useModalAttributes({trapFocus:no!=="non-modal",legacyTrapFocus:!so});return{components:{backdrop:"div"},inertTrapFocus:so,open:uo,modalType:no,content:lo,trigger:ao,requestOpenChange:go,dialogTitleId:useId$1("dialog-title-"),isNestedDialog:useHasParentContext(DialogContext),dialogRef:mo,modalAttributes:no!=="non-modal"?_o:void 0,triggerAttributes:ko}};function childrenToTriggerAndContent(eo){const to=reactExports.Children.toArray(eo);switch(to.length){case 2:return to;case 1:return[void 0,to[0]];default:return[void 0,void 0]}}function _extends$c(){return _extends$c=Object.assign?Object.assign.bind():function(eo){for(var to=1;to=0)&&(no[so]=eo[so]);return no}function _setPrototypeOf$2(eo,to){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(io,so){return io.__proto__=so,io},_setPrototypeOf$2(eo,to)}function _inheritsLoose$1(eo,to){eo.prototype=Object.create(to.prototype),eo.prototype.constructor=eo,_setPrototypeOf$2(eo,to)}var propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function eo(io,so,ao,lo,uo,ho){if(ho!==ReactPropTypesSecret){var go=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 go.name="Invariant Violation",go}}eo.isRequired=eo;function to(){return eo}var no={array:eo,bigint:eo,bool:eo,func:eo,number:eo,object:eo,string:eo,symbol:eo,any:eo,arrayOf:to,element:eo,elementType:eo,instanceOf:to,node:eo,objectOf:to,oneOf:to,oneOfType:to,shape:to,exact:to,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return no.PropTypes=no,no};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports),config$8={disabled:!1},TransitionGroupContext=React.createContext(null);var forceReflow=function(to){return to.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition$1=function(eo){_inheritsLoose$1(to,eo);function to(io,so){var ao;ao=eo.call(this,io,so)||this;var lo=so,uo=lo&&!lo.isMounting?io.enter:io.appear,ho;return ao.appearStatus=null,io.in?uo?(ho=EXITED,ao.appearStatus=ENTERING):ho=ENTERED:io.unmountOnExit||io.mountOnEnter?ho=UNMOUNTED:ho=EXITED,ao.state={status:ho},ao.nextCallback=null,ao}to.getDerivedStateFromProps=function(so,ao){var lo=so.in;return lo&&ao.status===UNMOUNTED?{status:EXITED}:null};var no=to.prototype;return no.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},no.componentDidUpdate=function(so){var ao=null;if(so!==this.props){var lo=this.state.status;this.props.in?lo!==ENTERING&&lo!==ENTERED&&(ao=ENTERING):(lo===ENTERING||lo===ENTERED)&&(ao=EXITING)}this.updateStatus(!1,ao)},no.componentWillUnmount=function(){this.cancelNextCallback()},no.getTimeouts=function(){var so=this.props.timeout,ao,lo,uo;return ao=lo=uo=so,so!=null&&typeof so!="number"&&(ao=so.exit,lo=so.enter,uo=so.appear!==void 0?so.appear:lo),{exit:ao,enter:lo,appear:uo}},no.updateStatus=function(so,ao){if(so===void 0&&(so=!1),ao!==null)if(this.cancelNextCallback(),ao===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var lo=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);lo&&forceReflow(lo)}this.performEnter(so)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},no.performEnter=function(so){var ao=this,lo=this.props.enter,uo=this.context?this.context.isMounting:so,ho=this.props.nodeRef?[uo]:[ReactDOM.findDOMNode(this),uo],go=ho[0],mo=ho[1],yo=this.getTimeouts(),So=uo?yo.appear:yo.enter;if(!so&&!lo||config$8.disabled){this.safeSetState({status:ENTERED},function(){ao.props.onEntered(go)});return}this.props.onEnter(go,mo),this.safeSetState({status:ENTERING},function(){ao.props.onEntering(go,mo),ao.onTransitionEnd(So,function(){ao.safeSetState({status:ENTERED},function(){ao.props.onEntered(go,mo)})})})},no.performExit=function(){var so=this,ao=this.props.exit,lo=this.getTimeouts(),uo=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!ao||config$8.disabled){this.safeSetState({status:EXITED},function(){so.props.onExited(uo)});return}this.props.onExit(uo),this.safeSetState({status:EXITING},function(){so.props.onExiting(uo),so.onTransitionEnd(lo.exit,function(){so.safeSetState({status:EXITED},function(){so.props.onExited(uo)})})})},no.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},no.safeSetState=function(so,ao){ao=this.setNextCallback(ao),this.setState(so,ao)},no.setNextCallback=function(so){var ao=this,lo=!0;return this.nextCallback=function(uo){lo&&(lo=!1,ao.nextCallback=null,so(uo))},this.nextCallback.cancel=function(){lo=!1},this.nextCallback},no.onTransitionEnd=function(so,ao){this.setNextCallback(ao);var lo=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),uo=so==null&&!this.props.addEndListener;if(!lo||uo){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ho=this.props.nodeRef?[this.nextCallback]:[lo,this.nextCallback],go=ho[0],mo=ho[1];this.props.addEndListener(go,mo)}so!=null&&setTimeout(this.nextCallback,so)},no.render=function(){var so=this.state.status;if(so===UNMOUNTED)return null;var ao=this.props,lo=ao.children;ao.in,ao.mountOnEnter,ao.unmountOnExit,ao.appear,ao.enter,ao.exit,ao.timeout,ao.addEndListener,ao.onEnter,ao.onEntering,ao.onEntered,ao.onExit,ao.onExiting,ao.onExited,ao.nodeRef;var uo=_objectWithoutPropertiesLoose$3(ao,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(TransitionGroupContext.Provider,{value:null},typeof lo=="function"?lo(so,uo):React.cloneElement(React.Children.only(lo),uo))},to}(React.Component);Transition$1.contextType=TransitionGroupContext;Transition$1.propTypes={};function noop$c(){}Transition$1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$c,onEntering:noop$c,onEntered:noop$c,onExit:noop$c,onExiting:noop$c,onExited:noop$c};Transition$1.UNMOUNTED=UNMOUNTED;Transition$1.EXITED=EXITED;Transition$1.ENTERING=ENTERING;Transition$1.ENTERED=ENTERED;Transition$1.EXITING=EXITING;const Transition$2=Transition$1;function _assertThisInitialized$3(eo){if(eo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eo}const defaultContextValue$1=void 0,DialogTransitionContext=reactExports.createContext(void 0),DialogTransitionProvider=DialogTransitionContext.Provider,useDialogTransitionContext_unstable=()=>{var eo;return(eo=reactExports.useContext(DialogTransitionContext))!==null&&eo!==void 0?eo:defaultContextValue$1},renderDialog_unstable=(eo,to)=>{const{content:no,trigger:io}=eo;return jsx$1(DialogProvider,{value:to.dialog,children:jsxs(DialogSurfaceProvider,{value:to.dialogSurface,children:[io,jsx$1(Transition$2,{mountOnEnter:!0,unmountOnExit:!0,in:eo.open,nodeRef:eo.dialogRef,appear:!0,timeout:250,children:so=>jsx$1(DialogTransitionProvider,{value:so,children:no})})]})})};function useDialogContextValues_unstable(eo){const{modalType:to,open:no,dialogRef:io,dialogTitleId:so,isNestedDialog:ao,inertTrapFocus:lo,requestOpenChange:uo,modalAttributes:ho,triggerAttributes:go}=eo;return{dialog:{open:no,modalType:to,dialogRef:io,dialogTitleId:so,isNestedDialog:ao,inertTrapFocus:lo,modalAttributes:ho,triggerAttributes:go,requestOpenChange:uo},dialogSurface:!1}}const Dialog=reactExports.memo(eo=>{const to=useDialog_unstable(eo),no=useDialogContextValues_unstable(to);return renderDialog_unstable(to,no)});Dialog.displayName="Dialog";const useDialogTrigger_unstable=eo=>{const to=useDialogSurfaceContext_unstable(),{children:no,disableButtonEnhancement:io=!1,action:so=to?"close":"open"}=eo,ao=getTriggerChild(no),lo=useDialogContext_unstable(yo=>yo.requestOpenChange),{triggerAttributes:uo}=useModalAttributes(),ho=useEventCallback$3(yo=>{var So,_o;ao==null||(So=(_o=ao.props).onClick)===null||So===void 0||So.call(_o,yo),yo.isDefaultPrevented()||lo({event:yo,type:"triggerClick",open:so==="open"})}),go={...ao==null?void 0:ao.props,ref:ao==null?void 0:ao.ref,onClick:ho,...uo},mo=useARIAButtonProps((ao==null?void 0:ao.type)==="button"||(ao==null?void 0:ao.type)==="a"?ao.type:"div",{...go,type:"button"});return{children:applyTriggerPropsToChildren(no,io?go:mo)}},renderDialogTrigger_unstable=eo=>eo.children,DialogTrigger=eo=>{const to=useDialogTrigger_unstable(eo);return renderDialogTrigger_unstable(to)};DialogTrigger.displayName="DialogTrigger";DialogTrigger.isFluentTriggerComponent=!0;const useDialogActions_unstable=(eo,to)=>{const{position:no="end",fluid:io=!1}=eo;return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),position:no,fluid:io}},renderDialogActions_unstable=eo=>jsx$1(eo.root,{}),dialogActionsClassNames={root:"fui-DialogActions"},useResetStyles$1=__resetStyles("r78gbj",null,{r:[".r78gbj{column-gap:8px;row-gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.r78gbj{flex-direction:column;justify-self:stretch;}}"]}),useStyles$u=__styles({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",B6n781s:"f1f41i0t",Bv5d0be:"f1jaqex3",v4ugfu:"f2ao6jk"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Bojbm9c:"f11ihkml",Bv5d0be:"fce5bvx",v4ugfu:"f2ao6jk"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1f41i0t{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1jaqex3{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f2ao6jk{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f11ihkml{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.fce5bvx{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),useDialogActionsStyles_unstable=eo=>{const to=useResetStyles$1(),no=useStyles$u();return eo.root.className=mergeClasses(dialogActionsClassNames.root,to,eo.position==="start"&&no.gridPositionStart,eo.position==="end"&&no.gridPositionEnd,eo.fluid&&eo.position==="start"&&no.fluidStart,eo.fluid&&eo.position==="end"&&no.fluidEnd,eo.root.className),eo},DialogActions=reactExports.forwardRef((eo,to)=>{const no=useDialogActions_unstable(eo,to);return useDialogActionsStyles_unstable(no),useCustomStyleHook("useDialogActionsStyles_unstable")(no),renderDialogActions_unstable(no)});DialogActions.displayName="DialogActions";const useDialogBody_unstable=(eo,to)=>{var no;return{components:{root:"div"},root:always(getIntrinsicElementProps((no=eo.as)!==null&&no!==void 0?no:"div",{ref:to,...eo}),{elementType:"div"})}},renderDialogBody_unstable=eo=>jsx$1(eo.root,{}),dialogBodyClassNames={root:"fui-DialogBody"},useResetStyles=__resetStyles("r71plkv",null,{r:[".r71plkv{overflow-x:unset;overflow-y:unset;column-gap:8px;row-gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.r71plkv{max-width:100vw;grid-template-rows:auto 1fr auto;}}"]}),useDialogBodyStyles_unstable=eo=>{const to=useResetStyles();return eo.root.className=mergeClasses(dialogBodyClassNames.root,to,eo.root.className),eo},DialogBody=reactExports.forwardRef((eo,to)=>{const no=useDialogBody_unstable(eo,to);return useDialogBodyStyles_unstable(no),useCustomStyleHook("useDialogBodyStyles_unstable")(no),renderDialogBody_unstable(no)});DialogBody.displayName="DialogBody";const dialogTitleClassNames={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},useRootResetStyles=__resetStyles("rztv7rx","rt0yqbx",[".rztv7rx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}",".rt0yqbx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-left:0;margin-bottom:0;margin-right:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),useStyles$t=__styles({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),useActionResetStyles=__resetStyles("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),useDialogTitleInternalStyles=__resetStyles("r51tj","rgre5d",{r:[".r51tj{overflow-x:visible;overflow-y:visible;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r51tj:focus{outline-style:none;}",".r51tj:focus-visible{outline-style:none;}",".r51tj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r51tj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rgre5d{overflow-x:visible;overflow-y:visible;padding-top:0;padding-left:0;padding-bottom:0;padding-right:0;border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".rgre5d:focus{outline-style:none;}",".rgre5d:focus-visible{outline-style:none;}",".rgre5d[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rgre5d[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r51tj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rgre5d[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useDialogTitleStyles_unstable=eo=>{const to=useRootResetStyles(),no=useActionResetStyles(),io=useStyles$t();return eo.root.className=mergeClasses(dialogTitleClassNames.root,to,!eo.action&&io.rootWithoutAction,eo.root.className),eo.action&&(eo.action.className=mergeClasses(dialogTitleClassNames.action,no,eo.action.className)),eo},useDialogTitle_unstable=(eo,to)=>{const{action:no}=eo,io=useDialogContext_unstable(ao=>ao.modalType),so=useDialogTitleInternalStyles();return{components:{root:"h2",action:"div"},root:always(getIntrinsicElementProps("h2",{ref:to,id:useDialogContext_unstable(ao=>ao.dialogTitleId),...eo}),{elementType:"h2"}),action:optional(no,{renderByDefault:io==="non-modal",defaultProps:{children:reactExports.createElement(DialogTrigger,{disableButtonEnhancement:!0,action:"close"},reactExports.createElement("button",{type:"button",className:so,"aria-label":"close"},reactExports.createElement(Dismiss20Regular,null)))},elementType:"div"})}},renderDialogTitle_unstable=eo=>jsxs(reactExports.Fragment,{children:[jsx$1(eo.root,{children:eo.root.children}),eo.action&&jsx$1(eo.action,{})]}),DialogTitle=reactExports.forwardRef((eo,to)=>{const no=useDialogTitle_unstable(eo,to);return useDialogTitleStyles_unstable(no),useCustomStyleHook("useDialogTitleStyles_unstable")(no),renderDialogTitle_unstable(no)});DialogTitle.displayName="DialogTitle";const useDialogSurface_unstable=(eo,to)=>{const no=useDialogContext_unstable(So=>So.modalType),io=useDialogContext_unstable(So=>So.isNestedDialog),so=useDialogTransitionContext_unstable(),ao=useDialogContext_unstable(So=>So.modalAttributes),lo=useDialogContext_unstable(So=>So.dialogRef),uo=useDialogContext_unstable(So=>So.requestOpenChange),ho=useDialogContext_unstable(So=>So.dialogTitleId),go=useEventCallback$3(So=>{if(isResolvedShorthand(eo.backdrop)){var _o,ko;(_o=(ko=eo.backdrop).onClick)===null||_o===void 0||_o.call(ko,So)}no==="modal"&&!So.isDefaultPrevented()&&uo({event:So,open:!1,type:"backdropClick"})}),mo=useEventCallback$3(So=>{var _o;(_o=eo.onKeyDown)===null||_o===void 0||_o.call(eo,So),So.key===Escape$1&&!So.isDefaultPrevented()&&(uo({event:So,open:!1,type:"escapeKeyDown"}),So.preventDefault())}),yo=optional(eo.backdrop,{renderByDefault:no!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return yo&&(yo.onClick=go),{components:{backdrop:"div",root:"div"},backdrop:yo,isNestedDialog:io,transitionStatus:so,mountNode:eo.mountNode,root:always(getIntrinsicElementProps("div",{tabIndex:-1,"aria-modal":no!=="non-modal",role:no==="alert"?"alertdialog":"dialog","aria-labelledby":eo["aria-label"]?void 0:ho,...eo,...ao,onKeyDown:mo,ref:useMergedRefs$1(to,lo)}),{elementType:"div"})}},renderDialogSurface_unstable=(eo,to)=>jsxs(Portal$1,{mountNode:eo.mountNode,children:[eo.backdrop&&jsx$1(eo.backdrop,{}),jsx$1(DialogSurfaceProvider,{value:to.dialogSurface,children:jsx$1(eo.root,{})})]}),dialogSurfaceClassNames={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},useRootBaseStyle=__resetStyles("rhhzfde","r1n1tr5u",{r:[".rhhzfde{top:0;right:0;bottom:0;left:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-right-radius:var(--borderRadiusXLarge);border-bottom-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".rhhzfde:focus{outline-style:none;}",".rhhzfde:focus-visible{outline-style:none;}",".rhhzfde[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rhhzfde[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1n1tr5u{top:0;left:0;bottom:0;right:0;padding-top:24px;padding-left:24px;padding-bottom:24px;padding-right:24px;margin-top:auto;margin-left:auto;margin-bottom:auto;margin-right:auto;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-left-radius:var(--borderRadiusXLarge);border-bottom-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".r1n1tr5u:focus{outline-style:none;}",".r1n1tr5u:focus-visible{outline-style:none;}",".r1n1tr5u[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1n1tr5u[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rhhzfde[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.rhhzfde{max-width:100vw;}}","@media (forced-colors: active){.r1n1tr5u[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r1n1tr5u{max-width:100vw;}}"]}),useRootStyles$2=__styles({animated:{abs64n:"fk73vx1",B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f18ad807",E5pizo:"f1yzz98r",Bz10aip:"f15ofi6c"},unmounted:{},entering:{},entered:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".fk73vx1{opacity:0;}",".fc397y7{transition-duration:var(--durationGentle);}",".f1b86uth{transition-property:opacity,transform,box-shadow;}",".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1yzz98r{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.1);}",".f15ofi6c{transform:scale(0.85) translateZ(0);}",".f10nrhrw{box-shadow:var(--shadow64);}",".f186d0ee{transform:scale(1) translateZ(0);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),useBackdropBaseStyle=__resetStyles("raidwwn","r17vltcu",[".raidwwn{top:0px;right:0px;bottom:0px;left:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}",".r17vltcu{top:0px;left:0px;bottom:0px;right:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}"]),useBackdropStyles$1=__styles({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},unmounted:{},entering:{},entered:{abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),useDialogSurfaceStyles_unstable=eo=>{const{isNestedDialog:to,root:no,backdrop:io,transitionStatus:so}=eo,ao=useRootBaseStyle(),lo=useRootStyles$2(),uo=useBackdropBaseStyle(),ho=useBackdropStyles$1();return no.className=mergeClasses(dialogSurfaceClassNames.root,ao,so&&lo.animated,so&&lo[so],no.className),io&&(io.className=mergeClasses(dialogSurfaceClassNames.backdrop,uo,to&&ho.nestedDialogBackdrop,so&&ho[so],io.className)),eo};function useDialogSurfaceContextValues_unstable(eo){return{dialogSurface:!0}}const DialogSurface=reactExports.forwardRef((eo,to)=>{const no=useDialogSurface_unstable(eo,to),io=useDialogSurfaceContextValues_unstable();return useDialogSurfaceStyles_unstable(no),useCustomStyleHook("useDialogSurfaceStyles_unstable")(no),renderDialogSurface_unstable(no,io)});DialogSurface.displayName="DialogSurface";const useDialogContent_unstable=(eo,to)=>{var no;return{components:{root:"div"},root:always(getIntrinsicElementProps((no=eo.as)!==null&&no!==void 0?no:"div",{ref:to,...eo}),{elementType:"div"})}},renderDialogContent_unstable=eo=>jsx$1(eo.root,{}),dialogContentClassNames={root:"fui-DialogContent"},useStyles$s=__resetStyles("r1e0mpcm","r1equu0b",[".r1e0mpcm{padding-top:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}",".r1equu0b{padding-top:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"]),useDialogContentStyles_unstable=eo=>{const to=useStyles$s();return eo.root.className=mergeClasses(dialogContentClassNames.root,to,eo.root.className),eo},DialogContent=reactExports.forwardRef((eo,to)=>{const no=useDialogContent_unstable(eo,to);return useDialogContentStyles_unstable(no),useCustomStyleHook("useDialogContentStyles_unstable")(no),renderDialogContent_unstable(no)});DialogContent.displayName="DialogContent";const OverflowContext=createContext(void 0),overflowContextDefaultValue={itemVisibility:{},groupVisibility:{},hasOverflow:!1,registerItem:()=>()=>null,updateOverflow:()=>null,registerOverflowMenu:()=>()=>null,registerDivider:()=>()=>null},useOverflowContext=eo=>useContextSelector(OverflowContext,(to=overflowContextDefaultValue)=>eo(to)),DATA_OVERFLOWING$1="data-overflowing",DATA_OVERFLOW_GROUP="data-overflow-group";function observeResize(eo,to){var no;const io=(no=eo.ownerDocument.defaultView)===null||no===void 0?void 0:no.ResizeObserver;if(!io)return()=>null;let so=new io(to);return so.observe(eo),()=>{so==null||so.disconnect(),so=void 0}}function debounce$1(eo){let to;return()=>{to||(to=!0,queueMicrotask(()=>{to=!1,eo()}))}}function createPriorityQueue(eo){const to=[];let no=0;const io=Co=>2*Co+1,so=Co=>2*Co+2,ao=Co=>Math.floor((Co-1)/2),lo=(Co,$o)=>{const Ro=to[Co];to[Co]=to[$o],to[$o]=Ro},uo=Co=>{let $o=Co;const Ro=io(Co),Oo=so(Co);Roto.slice(0,no),clear:()=>{no=0},contains:Co=>{const $o=to.indexOf(Co);return $o>=0&&$o{if(no===0)throw new Error("Priority queue empty");const Co=to[0];return to[0]=to[--no],uo(0),Co},enqueue:Co=>{to[no++]=Co;let $o=no-1,Ro=ao($o);for(;$o>0&&eo(to[Ro],to[$o])>0;)lo(Ro,$o),$o=Ro,Ro=ao($o)},peek:()=>no===0?null:to[0],remove:Co=>{const $o=to.indexOf(Co);$o===-1||$o>=no||(to[$o]=to[--no],uo($o))},size:()=>no}}function createOverflowManager(){const eo=new Map;let to,no,io=!1,so=!0;const ao={padding:10,overflowAxis:"horizontal",overflowDirection:"end",minimumVisible:0,onUpdateItemVisibility:()=>{},onUpdateOverflow:()=>{}},lo={},uo={};let ho=()=>null;const go=(Qo,hs)=>{const gs=Qo.dequeue();return hs.enqueue(gs),lo[gs]},mo=createGroupManager();function yo(Qo,hs){if(!Qo||!hs)return 0;const gs=lo[Qo],ys=lo[hs];if(gs.priority!==ys.priority)return gs.priority>ys.priority?1:-1;const vs=ao.overflowDirection==="end"?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING;return gs.element.compareDocumentPosition(ys.element)&vs?1:-1}function So(Qo,hs,gs){return eo.has(gs)||eo.set(gs,ao.overflowAxis==="horizontal"?gs[Qo]:gs[hs]),eo.get(gs)}const _o=So.bind(null,"offsetWidth","offsetHeight"),ko=So.bind(null,"clientWidth","clientHeight"),Co=createPriorityQueue((Qo,hs)=>-1*yo(Qo,hs)),$o=createPriorityQueue(yo);function Ro(){const Qo=$o.all().map(ys=>lo[ys].element).map(_o).reduce((ys,vs)=>ys+vs,0),hs=Object.entries(mo.groupVisibility()).reduce((ys,[vs,ks])=>ys+(ks!=="hidden"&&uo[vs]?_o(uo[vs].element):0),0),gs=Co.size()>0&&no?_o(no):0;return Qo+hs+gs}const Oo=()=>{const Qo=go(Co,$o);if(ao.onUpdateItemVisibility({item:Qo,visible:!0}),Qo.groupId&&(mo.showItem(Qo.id,Qo.groupId),mo.isSingleItemVisible(Qo.id,Qo.groupId))){var hs;(hs=uo[Qo.groupId])===null||hs===void 0||hs.element.removeAttribute(DATA_OVERFLOWING$1)}},No=()=>{const Qo=go($o,Co);if(ao.onUpdateItemVisibility({item:Qo,visible:!1}),Qo.groupId){if(mo.isSingleItemVisible(Qo.id,Qo.groupId)){var hs;(hs=uo[Qo.groupId])===null||hs===void 0||hs.element.setAttribute(DATA_OVERFLOWING$1,"")}mo.hideItem(Qo.id,Qo.groupId)}},Mo=()=>{const Qo=$o.all(),hs=Co.all(),gs=Qo.map(vs=>lo[vs]),ys=hs.map(vs=>lo[vs]);ao.onUpdateOverflow({visibleItems:gs,invisibleItems:ys,groupVisibility:mo.groupVisibility()})},Bo=()=>{if(!to)return!1;eo.clear();const Qo=ko(to)-ao.padding,hs=$o.peek(),gs=Co.peek();for(;yo(Co.peek(),$o.peek())>0;)No();for(let ys=0;ys<2;ys++){for(;Ro()0||Co.size()===1;)Oo();for(;Ro()>Qo&&$o.size()>ao.minimumVisible;)No()}return $o.peek()!==hs||Co.peek()!==gs},Fo=()=>{(Bo()||so)&&(so=!1,Mo())},Lo=debounce$1(Fo),Go=(Qo,hs)=>{Object.assign(ao,hs),io=!0,Object.values(lo).forEach(gs=>$o.enqueue(gs.id)),to=Qo,ho=observeResize(to,gs=>{!gs[0]||!to||Lo()})},Do=Qo=>{lo[Qo.id]||(lo[Qo.id]=Qo,io&&(so=!0,$o.enqueue(Qo.id)),Qo.groupId&&(mo.addItem(Qo.id,Qo.groupId),Qo.element.setAttribute(DATA_OVERFLOW_GROUP,Qo.groupId)),Lo())},Uo=Qo=>{no=Qo},Ho=Qo=>{!Qo.groupId||uo[Qo.groupId]||(Qo.element.setAttribute(DATA_OVERFLOW_GROUP,Qo.groupId),uo[Qo.groupId]=Qo)},Yo=()=>{no=void 0},qo=Qo=>{if(!uo[Qo])return;const hs=uo[Qo];hs.groupId&&(delete uo[Qo],hs.element.removeAttribute(DATA_OVERFLOW_GROUP))},Jo=Qo=>{if(!lo[Qo])return;const hs=lo[Qo];$o.remove(Qo),Co.remove(Qo),hs.groupId&&(mo.removeItem(hs.id,hs.groupId),hs.element.removeAttribute(DATA_OVERFLOW_GROUP)),eo.delete(hs.element),delete lo[Qo],Lo()};return{addItem:Do,disconnect:()=>{ho(),to=void 0,io=!1,so=!0,Object.keys(lo).forEach(Qo=>Jo(Qo)),Object.keys(uo).forEach(Qo=>qo(Qo)),Yo(),eo.clear()},forceUpdate:Fo,observe:Go,removeItem:Jo,update:Lo,addOverflowMenu:Uo,removeOverflowMenu:Yo,addDivider:Ho,removeDivider:qo}}const createGroupManager=()=>{const eo={},to={};function no(so){const ao=to[so];ao.invisibleItemIds.size&&ao.visibleItemIds.size?eo[so]="overflow":ao.visibleItemIds.size===0?eo[so]="hidden":eo[so]="visible"}function io(so){return eo[so]==="visible"||eo[so]==="overflow"}return{groupVisibility:()=>eo,isSingleItemVisible(so,ao){return io(ao)&&to[ao].visibleItemIds.has(so)&&to[ao].visibleItemIds.size===1},addItem(so,ao){var lo,uo,ho;(ho=(lo=to)[uo=ao])!==null&&ho!==void 0||(lo[uo]={visibleItemIds:new Set,invisibleItemIds:new Set}),to[ao].visibleItemIds.add(so),no(ao)},removeItem(so,ao){to[ao].invisibleItemIds.delete(so),to[ao].visibleItemIds.delete(so),no(ao)},showItem(so,ao){to[ao].invisibleItemIds.delete(so),to[ao].visibleItemIds.add(so),no(ao)},hideItem(so,ao){to[ao].invisibleItemIds.add(so),to[ao].visibleItemIds.delete(so),no(ao)}}},DATA_OVERFLOWING="data-overflowing",DATA_OVERFLOW_ITEM="data-overflow-item",DATA_OVERFLOW_MENU="data-overflow-menu",DATA_OVERFLOW_DIVIDER="data-overflow-divider",noop$b=()=>null,useOverflowContainer=(eo,to)=>{const{overflowAxis:no="horizontal",overflowDirection:io="end",padding:so=10,minimumVisible:ao=0,onUpdateItemVisibility:lo=noop$b}=to,uo=useEventCallback$3(eo),ho=reactExports.useMemo(()=>({overflowAxis:no,overflowDirection:io,padding:so,minimumVisible:ao,onUpdateItemVisibility:lo,onUpdateOverflow:uo}),[ao,lo,no,io,so,uo]),go=useFirstMount(),mo=reactExports.useRef(null),[yo,So]=reactExports.useState(()=>canUseDOM$3()?createOverflowManager():null);useIsomorphicLayoutEffect$1(()=>{go&&mo.current&&(yo==null||yo.observe(mo.current,ho))},[go,yo,ho]),useIsomorphicLayoutEffect$1(()=>{if(!mo.current||!canUseDOM$3()||go)return;const Ro=createOverflowManager();return Ro.observe(mo.current,ho),So(Ro),()=>{Ro.disconnect()}},[ho,go]);const _o=reactExports.useCallback(Ro=>(yo==null||yo.addItem(Ro),Ro.element.setAttribute(DATA_OVERFLOW_ITEM,""),()=>{Ro.element.removeAttribute(DATA_OVERFLOWING),Ro.element.removeAttribute(DATA_OVERFLOW_ITEM),yo==null||yo.removeItem(Ro.id)}),[yo]),ko=reactExports.useCallback(Ro=>{const Oo=Ro.element;return yo==null||yo.addDivider(Ro),Oo.setAttribute(DATA_OVERFLOW_DIVIDER,""),()=>{Ro.groupId&&(yo==null||yo.removeDivider(Ro.groupId)),Oo.removeAttribute(DATA_OVERFLOW_DIVIDER)}},[yo]),Co=reactExports.useCallback(Ro=>(yo==null||yo.addOverflowMenu(Ro),Ro.setAttribute(DATA_OVERFLOW_MENU,""),()=>{yo==null||yo.removeOverflowMenu(),Ro.removeAttribute(DATA_OVERFLOW_MENU)}),[yo]),$o=reactExports.useCallback(()=>{yo==null||yo.update()},[yo]);return{registerItem:_o,registerDivider:ko,registerOverflowMenu:Co,updateOverflow:$o,containerRef:mo}},updateVisibilityAttribute=({item:eo,visible:to})=>{to?eo.element.removeAttribute(DATA_OVERFLOWING):eo.element.setAttribute(DATA_OVERFLOWING,"")},useOverflowStyles=__styles({overflowMenu:{Brvla84:"fyfkpbf"},overflowingItems:{zb22lx:"f10570jf"}},{d:[".fyfkpbf [data-overflow-menu]{flex-shrink:0;}",".f10570jf [data-overflowing]{display:none;}"]}),Overflow=reactExports.forwardRef((eo,to)=>{const no=useOverflowStyles(),{children:io,minimumVisible:so,overflowAxis:ao="horizontal",overflowDirection:lo,padding:uo}=eo,[ho,go]=reactExports.useState({hasOverflow:!1,itemVisibility:{},groupVisibility:{}}),mo=Ro=>{const{visibleItems:Oo,invisibleItems:No,groupVisibility:Mo}=Ro,Bo={};Oo.forEach(Fo=>{Bo[Fo.id]=!0}),No.forEach(Fo=>Bo[Fo.id]=!1),go(()=>({hasOverflow:Ro.invisibleItems.length>0,itemVisibility:Bo,groupVisibility:Mo}))},{containerRef:yo,registerItem:So,updateOverflow:_o,registerOverflowMenu:ko,registerDivider:Co}=useOverflowContainer(mo,{overflowDirection:lo,overflowAxis:ao,padding:uo,minimumVisible:so,onUpdateItemVisibility:updateVisibilityAttribute}),$o=applyTriggerPropsToChildren(io,{ref:useMergedRefs$1(yo,to),className:mergeClasses(no.overflowMenu,no.overflowingItems,io.props.className)});return reactExports.createElement(OverflowContext.Provider,{value:{itemVisibility:ho.itemVisibility,groupVisibility:ho.groupVisibility,hasOverflow:ho.hasOverflow,registerItem:So,updateOverflow:_o,registerOverflowMenu:ko,registerDivider:Co}},$o)});function useIsOverflowItemVisible(eo){return!!useOverflowContext(to=>to.itemVisibility[eo])}const useOverflowCount=()=>useOverflowContext(eo=>Object.entries(eo.itemVisibility).reduce((to,[no,io])=>(io||to++,to),0));function useOverflowItem(eo,to,no){const io=reactExports.useRef(null),so=useOverflowContext(ao=>ao.registerItem);return useIsomorphicLayoutEffect$1(()=>{if(io.current)return so({element:io.current,id:eo,priority:to??0,groupId:no})},[eo,to,so,no]),io}function useOverflowMenu(eo){const to=useId$1("overflow-menu",eo),no=useOverflowCount(),io=useOverflowContext(uo=>uo.registerOverflowMenu),so=useOverflowContext(uo=>uo.updateOverflow),ao=reactExports.useRef(null),lo=no>0;return useIsomorphicLayoutEffect$1(()=>{if(ao.current)return io(ao.current)},[io,lo,to]),useIsomorphicLayoutEffect$1(()=>{lo&&so()},[lo,so,ao]),{ref:ao,overflowCount:no,isOverflowing:lo}}const OverflowItem=reactExports.forwardRef((eo,to)=>{const{id:no,groupId:io,priority:so,children:ao}=eo,lo=useOverflowItem(no,so,io);return applyTriggerPropsToChildren(ao,{ref:useMergedRefs$1(lo,to)})}),useToolbar_unstable=(eo,to)=>{const{size:no="medium",vertical:io=!1}=eo,so=useArrowNavigationGroup({circular:!0,axis:"both"}),ao={size:no,vertical:io,components:{root:"div"},root:always(getIntrinsicElementProps("div",{role:"toolbar",ref:to,...io&&{"aria-orientation":"vertical"},...so,...eo}),{elementType:"div"})},[lo,uo]=useToolbarSelectableState({checkedValues:eo.checkedValues,defaultCheckedValues:eo.defaultCheckedValues,onCheckedValueChange:eo.onCheckedValueChange}),ho=useEventCallback$3((mo,yo,So,_o)=>{if(yo&&So){const Co=[...(lo==null?void 0:lo[yo])||[]];_o?Co.splice(Co.indexOf(So),1):Co.push(So),uo==null||uo(mo,{name:yo,checkedItems:Co})}}),go=useEventCallback$3((mo,yo,So,_o)=>{yo&&So&&(uo==null||uo(mo,{name:yo,checkedItems:[So]}))});return{...ao,handleToggleButton:ho,handleRadio:go,checkedValues:lo??{}}},useToolbarSelectableState=eo=>{const[to,no]=useControllableState({state:eo.checkedValues,defaultState:eo.defaultCheckedValues,initialState:{}}),{onCheckedValueChange:io}=eo,so=useEventCallback$3((ao,{name:lo,checkedItems:uo})=>{io&&io(ao,{name:lo,checkedItems:uo}),no(ho=>ho?{...ho,[lo]:uo}:{[lo]:uo})});return[to,so]},ToolbarContext=createContext(void 0),toolbarContextDefaultValue={size:"medium",handleToggleButton:()=>null,handleRadio:()=>null,vertical:!1,checkedValues:{}},useToolbarContext_unstable=eo=>useContextSelector(ToolbarContext,(to=toolbarContextDefaultValue)=>eo(to)),renderToolbar_unstable=(eo,to)=>jsx$1(ToolbarContext.Provider,{value:to.toolbar,children:jsx$1(eo.root,{children:eo.root.children})}),toolbarClassNames={root:"fui-Toolbar"},useStyles$r=__styles({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"f10ra9hq",z189sj:["f19lj068","f177v4lu"],Byoj8tv:"f1y2xyjm",uwmqm3:["f177v4lu","f19lj068"]},vertical:{Beiy3e4:"f1vx9l62",a9b677:"f1acs6jw"},small:{z8tnut:"f1nbblvp",z189sj:["f8wuabp","fycuoez"],Byoj8tv:"f1ov4xf1",uwmqm3:["fycuoez","f8wuabp"]},medium:{z8tnut:"f10ra9hq",z189sj:["f19lj068","f177v4lu"],Byoj8tv:"f1y2xyjm",uwmqm3:["f177v4lu","f19lj068"]},large:{z8tnut:"f10ra9hq",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"f1y2xyjm",uwmqm3:["fekwl8i","fat0sn4"]}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f10ra9hq{padding-top:4px;}",".f19lj068{padding-right:8px;}",".f177v4lu{padding-left:8px;}",".f1y2xyjm{padding-bottom:4px;}",".f1vx9l62{flex-direction:column;}",".f1acs6jw{width:fit-content;}",".f1nbblvp{padding-top:0px;}",".f8wuabp{padding-right:4px;}",".fycuoez{padding-left:4px;}",".f1ov4xf1{padding-bottom:0px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}"]}),useToolbarStyles_unstable=eo=>{const to=useStyles$r(),{vertical:no,size:io}=eo;return eo.root.className=mergeClasses(toolbarClassNames.root,to.root,no&&to.vertical,io==="small"&&!no&&to.small,io==="medium"&&!no&&to.medium,io==="large"&&!no&&to.large,eo.root.className),eo};function useToolbarContextValues_unstable(eo){const{size:to,handleToggleButton:no,vertical:io,checkedValues:so,handleRadio:ao}=eo;return{toolbar:{size:to,vertical:io,handleToggleButton:no,handleRadio:ao,checkedValues:so}}}const Toolbar=reactExports.forwardRef((eo,to)=>{const no=useToolbar_unstable(eo,to),io=useToolbarContextValues_unstable(no);return useToolbarStyles_unstable(no),useCustomStyleHook("useToolbarStyles_unstable")(no),renderToolbar_unstable(no,io)});Toolbar.displayName="Toolbar";const useToolbarToggleButton_unstable=(eo,to)=>{const no=useToolbarContext_unstable(ho=>ho.handleToggleButton),io=useToolbarContext_unstable(ho=>{var go;return!!(!((go=ho.checkedValues[eo.name])===null||go===void 0)&&go.includes(eo.value))}),{onClick:so}=eo,lo={...useToggleButton_unstable({checked:io,...eo},to),name:eo.name,value:eo.value},uo=ho=>{if(lo.disabled){ho.preventDefault(),ho.stopPropagation();return}no==null||no(ho,lo.name,lo.value,lo.checked),so==null||so(ho)};return lo.root.onClick=uo,lo},useBaseStyles$3=__styles({selected:{sj55zd:"f16muhyy"}},{d:[".f16muhyy{color:var(--colorBrandForeground1);}"]}),useToolbarToggleButtonStyles_unstable=eo=>{useToggleButtonStyles_unstable(eo);const to=useBaseStyles$3();eo.root.className=mergeClasses(eo.root.className,eo.checked&&to.selected)},ToolbarToggleButton=reactExports.forwardRef((eo,to)=>{const no=useToolbarToggleButton_unstable(eo,to);return useToolbarToggleButtonStyles_unstable(no),useCustomStyleHook("useToolbarToggleButtonStyles_unstable")(no),renderButton_unstable(no)});ToolbarToggleButton.displayName="ToolbarToggleButton";const useToolbarRadioButton_unstable=(eo,to)=>{const no=useToolbarContext_unstable(go=>go.handleRadio),io=useToolbarContext_unstable(go=>{var mo;return!!(!((mo=go.checkedValues[eo.name])===null||mo===void 0)&&mo.includes(eo.value))}),so=useToolbarContext_unstable(go=>go.size),{onClick:ao}=eo,uo={...useToggleButton_unstable({size:so,checked:io,role:"radio","aria-checked":io,...eo},to),name:eo.name,value:eo.value},ho=useEventCallback$3(go=>{no==null||no(go,uo.name,uo.value,uo.checked),ao==null||ao(go)});return uo.root["aria-pressed"]=void 0,uo.root.onClick=ho,uo},useBaseStyles$2=__styles({selected:{sj55zd:"f16muhyy"}},{d:[".f16muhyy{color:var(--colorBrandForeground1);}"]}),useToolbarRadioButtonStyles_unstable=eo=>{useToggleButtonStyles_unstable(eo);const to=useBaseStyles$2();eo.root.className=mergeClasses(eo.root.className,eo.checked&&to.selected)},ToolbarRadioButton=reactExports.forwardRef((eo,to)=>{const no=useToolbarRadioButton_unstable(eo,to);return useToolbarRadioButtonStyles_unstable(no),useCustomStyleHook("useToolbarRadioButtonStyles_unstable")(no),renderButton_unstable(no)});ToolbarRadioButton.displayName="ToolbarRadioButton";const useToolbarGroup_unstable=(eo,to)=>({components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,role:"presentation",...eo}),{elementType:"div"})}),toolbarGroupClassNames={root:"fui-ToolbarGroup"},useToolbarGroupStyles_unstable=eo=>(eo.root.className=mergeClasses(toolbarGroupClassNames.root,eo.root.className),eo),renderToolbarGroup_unstable=eo=>jsx$1(eo.root,{children:eo.root.children}),ToolbarRadioGroup=reactExports.forwardRef((eo,to)=>{const no=useToolbarGroup_unstable({role:"radiogroup",...eo},to);return useToolbarGroupStyles_unstable(no),useCustomStyleHook("useToolbarGroupStyles_unstable")(no),renderToolbarGroup_unstable(no)});ToolbarRadioGroup.displayName="ToolbarRadioGroup";const useCardSelectable=(eo,{referenceLabel:to,referenceId:no},io)=>{const{checkbox:so={},onSelectionChange:ao,floatingAction:lo,onClick:uo,onKeyDown:ho}=eo,{findAllFocusable:go}=useFocusFinders(),mo=reactExports.useRef(null),[yo,So]=useControllableState({state:eo.selected,defaultState:eo.defaultSelected,initialState:!1}),_o=[eo.selected,eo.defaultSelected,ao].some(Fo=>typeof Fo<"u"),[ko,Co]=reactExports.useState(!1),$o=reactExports.useCallback(Fo=>{if(!io.current)return!1;const Lo=go(io.current),Go=Fo.target,Do=Lo.some(Ho=>Ho.contains(Go)),Uo=(mo==null?void 0:mo.current)===Go;return Do&&!Uo},[io,go]),Ro=reactExports.useCallback(Fo=>{if($o(Fo))return;const Lo=!yo;So(Lo),ao&&ao(Fo,{selected:Lo})},[ao,yo,So,$o]),Oo=reactExports.useCallback(Fo=>{[Enter].includes(Fo.key)&&(Fo.preventDefault(),Ro(Fo))},[Ro]),No=reactExports.useMemo(()=>{if(!_o||lo)return;const Fo={};return no?Fo["aria-labelledby"]=no:to&&(Fo["aria-label"]=to),optional(so,{defaultProps:{ref:mo,type:"checkbox",checked:yo,onChange:Lo=>Ro(Lo),onFocus:()=>Co(!0),onBlur:()=>Co(!1),...Fo},elementType:"input"})},[so,lo,yo,_o,Ro,no,to]),Mo=reactExports.useMemo(()=>{if(lo)return optional(lo,{defaultProps:{ref:mo},elementType:"div"})},[lo]),Bo=reactExports.useMemo(()=>_o?{onClick:mergeCallbacks(uo,Ro),onKeyDown:mergeCallbacks(ho,Oo)}:null,[_o,Ro,uo,ho,Oo]);return{selected:yo,selectable:_o,selectFocused:ko,selectableCardProps:Bo,checkboxSlot:No,floatingActionSlot:Mo}},cardContext=reactExports.createContext(void 0),cardContextDefaultValue={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},CardProvider=cardContext.Provider,useCardContext_unstable=()=>{var eo;return(eo=reactExports.useContext(cardContext))!==null&&eo!==void 0?eo:cardContextDefaultValue},focusMap={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},useCardInteractive=({focusMode:eo="off",...to})=>{const no=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(ao=>to[ao]),so={...useFocusableGroup({tabBehavior:focusMap[no?"no-tab":eo]}),tabIndex:0};return{interactive:no,focusAttributes:!no&&eo==="off"?null:so}},useCard_unstable=(eo,to)=>{const{appearance:no="filled",orientation:io="vertical",size:so="medium"}=eo,[ao,lo]=reactExports.useState(cardContextDefaultValue.selectableA11yProps.referenceId),[uo,ho]=reactExports.useState(cardContextDefaultValue.selectableA11yProps.referenceId),go=useFocusWithin(),{selectable:mo,selected:yo,selectableCardProps:So,selectFocused:_o,checkboxSlot:ko,floatingActionSlot:Co}=useCardSelectable(eo,{referenceId:ao,referenceLabel:uo},go),$o=useMergedRefs$1(go,to),{interactive:Ro,focusAttributes:Oo}=useCardInteractive(eo);return{appearance:no,orientation:io,size:so,interactive:Ro,selectable:mo,selectFocused:_o,selected:yo,selectableA11yProps:{setReferenceId:lo,referenceId:ao,referenceLabel:uo,setReferenceLabel:ho},components:{root:"div",floatingAction:"div",checkbox:"input"},root:always(getIntrinsicElementProps("div",{ref:$o,role:"group",...Oo,...eo,...So}),{elementType:"div"}),floatingAction:Co,checkbox:ko}},renderCard_unstable=(eo,to)=>jsx$1(eo.root,{children:jsxs(CardProvider,{value:to,children:[eo.checkbox?jsx$1(eo.checkbox,{}):null,eo.floatingAction?jsx$1(eo.floatingAction,{}):null,eo.root.children]})}),cardHeaderClassNames={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},useStyles$q=__styles({root:{Bkc6ea2:"fkufhic",mc9l5x:"f13qh94s",t4k1zu:"f8a668j",Bt984gj:"f122n59"},image:{mc9l5x:"ftuwxu6",t21cq0:["fql5097","f6yss9k"],Br312pm:"fwpfdsa",Ijaq50:"fldnz9j"},header:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94",mc9l5x:"f22iagw"},description:{Br312pm:"fd46tj4",Ijaq50:"faunodf",mc9l5x:"f22iagw"},action:{Frg6f3:["f6yss9k","fql5097"],Br312pm:"fis13di",Ijaq50:"fldnz9j"}},{d:[".fkufhic{--fui-CardHeader--gap:12px;}",".f13qh94s{display:grid;}",".f8a668j{grid-auto-columns:min-content 1fr min-content;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".fql5097{margin-right:var(--fui-CardHeader--gap);}",".f6yss9k{margin-left:var(--fui-CardHeader--gap);}",".fwpfdsa{grid-column-start:1;}",".fldnz9j{grid-row-start:span 2;}",".fd46tj4{grid-column-start:2;}",".f16hsg94{grid-row-start:1;}",".f22iagw{display:flex;}",".faunodf{grid-row-start:2;}",".fis13di{grid-column-start:3;}"]}),useCardHeaderStyles_unstable=eo=>{const to=useStyles$q();return eo.root.className=mergeClasses(cardHeaderClassNames.root,to.root,eo.root.className),eo.image&&(eo.image.className=mergeClasses(cardHeaderClassNames.image,to.image,eo.image.className)),eo.header&&(eo.header.className=mergeClasses(cardHeaderClassNames.header,to.header,eo.header.className)),eo.description&&(eo.description.className=mergeClasses(cardHeaderClassNames.description,to.description,eo.description.className)),eo.action&&(eo.action.className=mergeClasses(cardHeaderClassNames.action,to.action,eo.action.className)),eo},cardClassNames={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},useStyles$p=__styles({root:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bbmb7ep:["fifeqxg","f899z7z"],Beyfa6y:["f899z7z","fifeqxg"],B7oj6ja:["f4h3tyx","f18ur2pz"],Btl43ni:["f18ur2pz","f4h3tyx"],z8tnut:"f1lplnzb",z189sj:["f10m5gbb","f1k04kkk"],Byoj8tv:"fhftqfp",uwmqm3:["f1k04kkk","f10m5gbb"],i8kkvl:"fxsr4vj",Belr9w4:"fcvsdzp",mc9l5x:"f22iagw",qhf8xq:"f10pi13n",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],By385i5:"fo72kxq",Bsft5z2:"f13zj6fq",B80jsxd:"f1nwj1ja",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"f6czdpx",Ihftqj:["f13hvwk3","f1en4csx"],Bcgy8vk:"f1i1u9k0",Bhxzhr1:["f1en4csx","f13hvwk3"],B3778ie:["f1qnomq5","f2fl922"],d9w3h3:["f2fl922","f1qnomq5"],Bl18szs:["f1anhtl","f1n2zcl3"],B4j8arr:["f1n2zcl3","f1anhtl"],B2jhnfs:"f16v3d5c",wiictr:"f1su8t2g"},focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"f99gebs",clg4pj:["f13b0oaq","f8t2bz6"],hgwjuy:"f1jvq617",Bonggc9:["f8t2bz6","f13b0oaq"],B1tsrr9:["f11unbnk","fbd201q"],Dah5zi:["fbd201q","f11unbnk"],Bkh64rk:["f12nqxso","f1uguk4w"],qqdqy8:["f1uguk4w","f12nqxso"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f125hn41",Bil7v7r:["fgxkx34","f1v56tyl"],skfxo0:"fdxas6f",jo1ztg:["f1v56tyl","fgxkx34"],Ba3ybja:["fxwickw","f1ia5cve"],az1dzo:["f1ia5cve","fxwickw"],vppk2z:["f194aguw","fqicc6c"],B6352mv:["fqicc6c","f194aguw"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Bnoktp0:"fpfyeui",Idhjb2:"fwi74qw",ihgzqh:["ffcmwrh","f6ppoih"],Bgp6ld0:["f1dc9p14","fd933vt"],Bbucpmy:"f18esqgw"},orientationVertical:{Beiy3e4:"f1vx9l62",Bt4kzjz:["fobhde4","fx5r7kn"],B1ou843:["fx5r7kn","fobhde4"],y1433z:"f19chtn8",B7egwnw:"fuvs6re",B49b4xf:"fy4glsf"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{d:[".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fifeqxg{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f899z7z{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f4h3tyx{border-top-right-radius:var(--fui-Card--border-radius);}",".f18ur2pz{border-top-left-radius:var(--fui-Card--border-radius);}",".f1lplnzb{padding-top:var(--fui-Card--size);}",".f10m5gbb{padding-right:var(--fui-Card--size);}",".f1k04kkk{padding-left:var(--fui-Card--size);}",".fhftqfp{padding-bottom:var(--fui-Card--size);}",".fxsr4vj{column-gap:var(--fui-Card--size);}",".fcvsdzp{row-gap:var(--fui-Card--size);}",".f22iagw{display:flex;}",".f10pi13n{position:relative;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fo72kxq::after{bottom:0;}",'.f13zj6fq::after{content:"";}',".f1nwj1ja::after{pointer-events:none;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f1i1u9k0::after{border-bottom-width:var(--strokeWidthThin);}",".f1qnomq5::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f2fl922::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f1anhtl::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1n2zcl3::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f16v3d5c>.fui-CardHeader,.f16v3d5c>.fui-CardFooter{flex-shrink:0;}",".f1su8t2g>:not(.fui-CardPreview):not(.fui-CardHeader):not(.fui-CardFooter){flex-grow:1;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".f99gebs[data-fui-focus-visible]::after{border-top-width:var(--strokeWidthThick);}",".f13b0oaq[data-fui-focus-visible]::after{border-right-width:var(--strokeWidthThick);}",".f8t2bz6[data-fui-focus-visible]::after{border-left-width:var(--strokeWidthThick);}",".f1jvq617[data-fui-focus-visible]::after{border-bottom-width:var(--strokeWidthThick);}",".f11unbnk[data-fui-focus-visible]::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".fbd201q[data-fui-focus-visible]::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f12nqxso[data-fui-focus-visible]::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1uguk4w[data-fui-focus-visible]::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f125hn41[data-fui-focus-within]:focus-within::after{border-top-width:var(--strokeWidthThick);}",".fgxkx34[data-fui-focus-within]:focus-within::after{border-right-width:var(--strokeWidthThick);}",".f1v56tyl[data-fui-focus-within]:focus-within::after{border-left-width:var(--strokeWidthThick);}",".fdxas6f[data-fui-focus-within]:focus-within::after{border-bottom-width:var(--strokeWidthThick);}",".fxwickw[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f1ia5cve[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f194aguw[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--fui-Card--border-radius);}",".fqicc6c[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--fui-Card--border-radius);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".fpfyeui>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".fwi74qw>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.ffcmwrh>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.f6ppoih>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1dc9p14>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.fd933vt>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f18esqgw>.fui-CardHeader:last-of-type,.f18esqgw>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".fobhde4>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".fx5r7kn>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.f19chtn8>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".fuvs6re>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.fy4glsf>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),useCardStyles_unstable=eo=>{const to=useStyles$p(),no={horizontal:to.orientationHorizontal,vertical:to.orientationVertical},io={small:to.sizeSmall,medium:to.sizeMedium,large:to.sizeLarge},so={filled:to.filled,"filled-alternative":to.filledAlternative,outline:to.outline,subtle:to.subtle},ao={filled:to.filledInteractiveSelected,"filled-alternative":to.filledAlternativeInteractiveSelected,outline:to.outlineInteractiveSelected,subtle:to.subtleInteractiveSelected},lo={filled:to.filledInteractive,"filled-alternative":to.filledAlternativeInteractive,outline:to.outlineInteractive,subtle:to.subtleInteractive},uo=eo.interactive||eo.selectable,ho=reactExports.useMemo(()=>eo.selectable?eo.selectFocused?to.selectableFocused:"":to.focused,[eo.selectFocused,eo.selectable,to.focused,to.selectableFocused]);return eo.root.className=mergeClasses(cardClassNames.root,to.root,no[eo.orientation],io[eo.size],so[eo.appearance],uo&&lo[eo.appearance],eo.selected&&ao[eo.appearance],ho,uo&&to.highContrastInteractive,eo.selected&&to.highContrastSelected,eo.root.className),eo.floatingAction&&(eo.floatingAction.className=mergeClasses(cardClassNames.floatingAction,to.select,eo.floatingAction.className)),eo.checkbox&&(eo.checkbox.className=mergeClasses(cardClassNames.checkbox,to.hiddenCheckbox,eo.checkbox.className)),eo};function useCardContextValue({selectableA11yProps:eo}){return{selectableA11yProps:eo}}const Card=reactExports.forwardRef((eo,to)=>{const no=useCard_unstable(eo,to),io=useCardContextValue(no);return useCardStyles_unstable(no),renderCard_unstable(no,io)});Card.displayName="Card";function getChildWithId(eo){function to(no){return reactExports.isValidElement(no)&&!!no.props.id}return reactExports.Children.toArray(eo).find(to)}function getReferenceId(eo,to,no){return eo||(to!=null&&to.props.id?to.props.id:no)}const useCardHeader_unstable=(eo,to)=>{const{image:no,header:io,description:so,action:ao}=eo,{selectableA11yProps:{referenceId:lo,setReferenceId:uo}}=useCardContext_unstable(),ho=reactExports.useRef(null),go=reactExports.useRef(!1),mo=useId$1(cardHeaderClassNames.header,lo),yo=optional(io,{renderByDefault:!0,defaultProps:{ref:ho,id:go.current?void 0:lo},elementType:"div"});return reactExports.useEffect(()=>{var So;const _o=go.current||(So=ho.current)===null||So===void 0?void 0:So.id,ko=getChildWithId(yo==null?void 0:yo.children);go.current=!!ko,uo(getReferenceId(_o,ko,mo))},[mo,io,yo,uo]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),image:optional(no,{elementType:"div"}),header:yo,description:optional(so,{elementType:"div"}),action:optional(ao,{elementType:"div"})}},renderCardHeader_unstable=eo=>jsxs(eo.root,{children:[eo.image&&jsx$1(eo.image,{}),jsx$1(eo.header,{}),eo.description&&jsx$1(eo.description,{}),eo.action&&jsx$1(eo.action,{})]}),CardHeader=reactExports.forwardRef((eo,to)=>{const no=useCardHeader_unstable(eo,to);return useCardHeaderStyles_unstable(no),renderCardHeader_unstable(no)});CardHeader.displayName="CardHeader";const emptyImmutableSet=createImmutableSet();function dangerouslyCreateImmutableSet(eo){return{size:eo.size,add(to){const no=new Set(eo);return no.add(to),dangerouslyCreateImmutableSet(no)},clear(){return emptyImmutableSet},delete(to){const no=new Set(eo);return no.delete(to),dangerouslyCreateImmutableSet(no)},has(to){return eo.has(to)},[Symbol.iterator](){return eo[Symbol.iterator]()},dangerouslyGetInternalSet_unstable:()=>eo}}function isImmutableSet(eo){return typeof eo=="object"&&eo!==null&&"dangerouslyGetInternalSet_unstable"in eo}function createImmutableSet(eo){const to=new Set(eo);return dangerouslyCreateImmutableSet(to)}const ImmutableSet={empty:emptyImmutableSet,create:createImmutableSet,isImmutableSet,dangerouslyCreate_unstable:dangerouslyCreateImmutableSet};function createOpenItems(eo){return eo===void 0?ImmutableSet.empty:ImmutableSet.isImmutableSet(eo)?eo:ImmutableSet.create(eo)}function useControllableOpenItems(eo){return useControllableState({state:reactExports.useMemo(()=>eo.openItems&&createOpenItems(eo.openItems),[eo.openItems]),defaultState:()=>createOpenItems(eo.defaultOpenItems),initialState:ImmutableSet.empty})}function createNextOpenItems(eo,to){if(eo.value===null)return to;const no=to.has(eo.value);if(eo.open?no:!no)return to;const io=ImmutableSet.create(to);return eo.open?io.add(eo.value):io.delete(eo.value)}const emptyImmutableMap=createImmutableMap();function createImmutableMap(eo){const to=new Map(eo);return dangerouslyCreateImmutableMap(to)}function dangerouslyCreateImmutableMap(eo){return{size:eo.size,set:(to,no)=>{const io=new Map(eo);return io.set(to,no),dangerouslyCreateImmutableMap(io)},get:to=>eo.get(to),clear:()=>emptyImmutableMap,delete(to){const no=new Map(eo);return no.delete(to),dangerouslyCreateImmutableMap(no)},has:to=>eo.has(to),[Symbol.iterator]:()=>eo[Symbol.iterator](),dangerouslyGetInternalMap_unstable:()=>eo}}function isImmutableMap(eo){return typeof eo=="object"&&eo!==null&&"dangerouslyGetInternalMap_unstable"in eo}const ImmutableMap={empty:emptyImmutableMap,create:createImmutableMap,isImmutableMap,dangerouslyCreate_unstable:dangerouslyCreateImmutableMap};function createCheckedItems(eo){if(eo===void 0)return ImmutableMap.empty;if(ImmutableMap.isImmutableMap(eo))return eo;const to=new Map;for(const no of eo)Array.isArray(no)?to.set(no[0],no[1]):to.set(no,!0);return ImmutableMap.dangerouslyCreate_unstable(to)}function useNestedCheckedItems(eo){return reactExports.useMemo(()=>createCheckedItems(eo.checkedItems),[eo.checkedItems])}function createNextNestedCheckedItems(eo,to){return eo.selectionMode==="single"?ImmutableMap.create([[eo.value,eo.checked]]):eo.selectionMode==="multiselect"?to.set(eo.value,eo.checked):to}const defaultSubTreeContextValue={level:0,contextType:"subtree"},SubtreeContext=reactExports.createContext(void 0),useSubtreeContext_unstable=()=>{var eo;return(eo=reactExports.useContext(SubtreeContext))!==null&&eo!==void 0?eo:defaultSubTreeContextValue},treeItemLevelToken="--fluent-TreeItem--level",treeDataTypes={ArrowLeft,ArrowRight,Enter,Click:"Click",ExpandIconClick:"ExpandIconClick",End,Home,ArrowUp,ArrowDown,TypeAhead:"TypeAhead",Change:"Change"};function useRootTree(eo,to){const{appearance:no="subtle",size:io="medium",selectionMode:so="none"}=eo,ao=reactExports.useMemo(()=>createOpenItems(eo.openItems),[eo.openItems]),lo=reactExports.useMemo(()=>createCheckedItems(eo.checkedItems),[eo.checkedItems]),uo=yo=>{var So;const _o=yo.itemType==="branch"&&!ao.has(yo.value),ko=createNextOpenItems({value:yo.value,open:_o},ao);(So=eo.onOpenChange)===null||So===void 0||So.call(eo,yo.event,{...yo,open:_o,openItems:ko.dangerouslyGetInternalSet_unstable()})},ho=yo=>{var So;so!=="none"&&((So=eo.onCheckedChange)===null||So===void 0||So.call(eo,yo.event,{...yo,selectionMode:so,checkedItems:lo.dangerouslyGetInternalMap_unstable()}))},go=yo=>{var So;switch((So=eo.onNavigation)===null||So===void 0||So.call(eo,yo.event,yo),yo.type){case treeDataTypes.ArrowDown:case treeDataTypes.ArrowUp:case treeDataTypes.Home:case treeDataTypes.End:yo.event.preventDefault()}},mo=useEventCallback$3(yo=>{switch(yo.requestType){case"navigate":return go(yo);case"open":return uo(yo);case"selection":return ho(yo)}});return{components:{root:"div"},contextType:"root",selectionMode:so,open:!0,appearance:no,size:io,level:1,openItems:ao,checkedItems:lo,requestTreeResponse:mo,root:always(getIntrinsicElementProps("div",{ref:to,role:"tree","aria-multiselectable":so==="multiselect"?!0:void 0,...eo}),{elementType:"div"})}}const defaultTreeContextValue={level:0,contextType:"root",treeType:"nested",selectionMode:"none",openItems:ImmutableSet.empty,checkedItems:ImmutableMap.empty,requestTreeResponse:noop$a,appearance:"subtle",size:"medium"};function noop$a(){}const TreeContext=createContext(void 0),useTreeContext_unstable=eo=>useContextSelector(TreeContext,(to=defaultTreeContextValue)=>eo(to)),headlessTreeRootId="__fuiHeadlessTreeRoot",defaultContextValue={value:headlessTreeRootId,selectionRef:reactExports.createRef(),layoutRef:reactExports.createRef(),treeItemRef:reactExports.createRef(),subtreeRef:reactExports.createRef(),actionsRef:reactExports.createRef(),expandIconRef:reactExports.createRef(),isActionsVisible:!1,isAsideVisible:!1,itemType:"leaf",open:!1,checked:!1},TreeItemContext=createContext(void 0),{Provider:TreeItemProvider}=TreeItemContext,useTreeItemContext_unstable=eo=>useContextSelector(TreeItemContext,(to=defaultContextValue)=>eo(to));function useSubtree(eo,to){const no=useTreeItemContext_unstable(ao=>ao.subtreeRef),{level:io}=useSubtreeContext_unstable();return{contextType:"subtree",open:useTreeItemContext_unstable(ao=>ao.open),components:{root:"div"},level:io+1,root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,no),role:"group",...eo}),{elementType:"div"})}}function nextTypeAheadElement(eo,to){const no=to.toLowerCase(),io=ao=>{var lo;return((lo=ao.textContent)===null||lo===void 0?void 0:lo.trim().charAt(0).toLowerCase())===no?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP};let so=eo.nextElement(io);return so||(eo.currentElement=eo.root,so=eo.nextElement(io)),so}function useRovingTabIndex$1(){const eo=reactExports.useRef(),to=reactExports.useCallback(io=>{io.currentElement=io.root;let so=io.firstChild(lo=>lo.tabIndex===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);if(io.currentElement=io.root,so??(so=io.firstChild()),!so)return;so.tabIndex=0,eo.current=so;let ao=null;for(;(ao=io.nextElement())&&ao!==so;)ao.tabIndex=-1},[]);return{rove:reactExports.useCallback(io=>{eo.current&&(eo.current.tabIndex=-1,io.tabIndex=0,io.focus(),eo.current=io)},[]),initialize:to}}function createHTMLElementWalker(eo,to,no=()=>NodeFilter.FILTER_ACCEPT){let io;const so=to.createTreeWalker(eo,NodeFilter.SHOW_ELEMENT,{acceptNode(ao){if(!isHTMLElement$6(ao))return NodeFilter.FILTER_REJECT;const lo=no(ao);var uo;return lo===NodeFilter.FILTER_ACCEPT&&(uo=io==null?void 0:io(ao))!==null&&uo!==void 0?uo:lo}});return{get root(){return so.root},get currentElement(){return so.currentNode},set currentElement(ao){so.currentNode=ao},firstChild:ao=>{io=ao;const lo=so.firstChild();return io=void 0,lo},lastChild:ao=>{io=ao;const lo=so.lastChild();return io=void 0,lo},nextElement:ao=>{io=ao;const lo=so.nextNode();return io=void 0,lo},nextSibling:ao=>{io=ao;const lo=so.nextSibling();return io=void 0,lo},parentElement:ao=>{io=ao;const lo=so.parentNode();return io=void 0,lo},previousElement:ao=>{io=ao;const lo=so.previousNode();return io=void 0,lo},previousSibling:ao=>{io=ao;const lo=so.previousSibling();return io=void 0,lo}}}const treeItemFilter=eo=>eo.getAttribute("role")==="treeitem"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP;function useHTMLElementWalkerRef(){const{targetDocument:eo}=useFluent(),to=reactExports.useRef(),no=reactExports.useCallback(io=>{to.current=eo&&io?createHTMLElementWalker(io,eo,treeItemFilter):void 0},[eo]);return{walkerRef:to,rootRef:no}}function useTreeNavigation(){const{rove:eo,initialize:to}=useRovingTabIndex$1(),{walkerRef:no,rootRef:io}=useHTMLElementWalkerRef(),so=reactExports.useCallback(uo=>{uo&&no.current&&to(no.current)},[no,to]),ao=uo=>{if(!no.current)return null;switch(uo.type){case treeDataTypes.Click:return uo.target;case treeDataTypes.TypeAhead:return no.current.currentElement=uo.target,nextTypeAheadElement(no.current,uo.event.key);case treeDataTypes.ArrowLeft:return no.current.currentElement=uo.target,no.current.parentElement();case treeDataTypes.ArrowRight:return no.current.currentElement=uo.target,no.current.firstChild();case treeDataTypes.End:return no.current.currentElement=no.current.root,lastChildRecursive(no.current);case treeDataTypes.Home:return no.current.currentElement=no.current.root,no.current.firstChild();case treeDataTypes.ArrowDown:return no.current.currentElement=uo.target,no.current.nextElement();case treeDataTypes.ArrowUp:return no.current.currentElement=uo.target,no.current.previousElement()}};function lo(uo){const ho=ao(uo);ho&&eo(ho)}return{navigate:lo,rootRef:useMergedRefs$1(io,so)}}function lastChildRecursive(eo){let to=null,no=null;for(;no=eo.lastChild();)to=no;return to}const useTree_unstable=(eo,to)=>reactExports.useContext(SubtreeContext)===void 0?useNestedRootTree(eo,to):useNestedSubtree(eo,to);function useNestedRootTree(eo,to){const[no,io]=useControllableOpenItems(eo),so=useNestedCheckedItems(eo),ao=useTreeNavigation();return Object.assign(useRootTree({...eo,openItems:no,checkedItems:so,onOpenChange:useEventCallback$3((lo,uo)=>{var ho;const go=createNextOpenItems(uo,no);(ho=eo.onOpenChange)===null||ho===void 0||ho.call(eo,lo,{...uo,openItems:go.dangerouslyGetInternalSet_unstable()}),io(go)}),onNavigation:useEventCallback$3((lo,uo)=>{var ho;(ho=eo.onNavigation)===null||ho===void 0||ho.call(eo,lo,uo),lo.isDefaultPrevented()||ao.navigate(uo)}),onCheckedChange:useEventCallback$3((lo,uo)=>{var ho;const go=createNextNestedCheckedItems(uo,so);(ho=eo.onCheckedChange)===null||ho===void 0||ho.call(eo,lo,{...uo,checkedItems:go.dangerouslyGetInternalMap_unstable()})})},useMergedRefs$1(to,ao.rootRef)),{treeType:"nested"})}function useNestedSubtree(eo,to){return useSubtree(eo,to)}function useTreeContextValues_unstable(eo){if(eo.contextType==="root"){const{openItems:to,level:no,contextType:io,treeType:so,checkedItems:ao,selectionMode:lo,appearance:uo,size:ho,requestTreeResponse:go}=eo;return{tree:{treeType:so,size:ho,openItems:to,appearance:uo,checkedItems:ao,selectionMode:lo,contextType:io,level:no,requestTreeResponse:go}}}return{tree:reactExports.useMemo(()=>({level:eo.level,contextType:"subtree"}),[eo.level])}}const treeClassNames={root:"fui-Tree"},useBaseStyles$1=__resetStyles("rnv2ez3",null,[".rnv2ez3{display:flex;flex-direction:column;row-gap:var(--spacingVerticalXXS);}"]),useStyles$o=__styles({subtree:{z8tnut:"fclwglc"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}"]}),useTreeStyles_unstable=eo=>{const to=useBaseStyles$1(),no=useStyles$o(),io=eo.level>1;return eo.root.className=mergeClasses(treeClassNames.root,to,io&&no.subtree,eo.root.className),eo},rootSubtreeContextValue={level:1,contextType:"subtree"},TreeProvider=eo=>eo.value.contextType==="subtree"?reactExports.createElement(SubtreeContext.Provider,{value:eo.value},eo.children):reactExports.createElement(TreeContext.Provider,{value:eo.value},reactExports.createElement(SubtreeContext.Provider,{value:rootSubtreeContextValue},eo.children));TreeProvider.displayName="TreeProvider";const renderTree_unstable=(eo,to)=>jsx$1(TreeProvider,{value:to.tree,children:eo.open&&jsx$1(eo.root,{children:eo.root.children})}),Tree$1=reactExports.forwardRef((eo,to)=>{const no=useTree_unstable(eo,to),io=useTreeContextValues_unstable(no);return useTreeStyles_unstable(no),renderTree_unstable(no,io)});Tree$1.displayName="Tree";const dataTreeItemValueAttrName="data-fui-tree-item-value";function useTreeItem_unstable(eo,to){useTreeContext_unstable(ps=>ps.treeType);const no=useTreeContext_unstable(ps=>ps.requestTreeResponse),{level:io}=useSubtreeContext_unstable(),so=useTreeItemContext_unstable(ps=>{var Qo;return(Qo=eo.parentValue)!==null&&Qo!==void 0?Qo:ps.value}),ao=useId$1("fuiTreeItemValue-");var lo;const uo=(lo=eo.value)!==null&&lo!==void 0?lo:ao,{onClick:ho,onKeyDown:go,onMouseOver:mo,onFocus:yo,onMouseOut:So,onBlur:_o,onChange:ko,as:Co="div",itemType:$o="leaf","aria-level":Ro=io,...Oo}=eo,No=reactExports.useRef(null),Mo=reactExports.useRef(null),Bo=reactExports.useRef(null),Fo=reactExports.useRef(null),Lo=reactExports.useRef(null),Go=reactExports.useRef(null),Do=useTreeContext_unstable(ps=>{var Qo;return(Qo=eo.open)!==null&&Qo!==void 0?Qo:ps.openItems.has(uo)}),Uo=useTreeContext_unstable(ps=>ps.selectionMode),Ho=useTreeContext_unstable(ps=>{var Qo;return(Qo=ps.checkedItems.get(uo))!==null&&Qo!==void 0?Qo:!1}),Yo=useEventCallback$3(ps=>{if(ho==null||ho(ps),ps.isDefaultPrevented()||No.current&&elementContains$1(No.current,ps.target)||Fo.current&&elementContains$1(Fo.current,ps.target)||Lo.current&&elementContains$1(Lo.current,ps.target))return;const ys=Mo.current&&elementContains$1(Mo.current,ps.target);reactDomExports.unstable_batchedUpdates(()=>{var vs;const ks={event:ps,value:uo,open:!Do,target:ps.currentTarget,type:ys?treeDataTypes.ExpandIconClick:treeDataTypes.Click};(vs=eo.onOpenChange)===null||vs===void 0||vs.call(eo,ps,ks),no({...ks,itemType:$o,requestType:"open"}),no({...ks,itemType:$o,parentValue:so,requestType:"navigate",type:treeDataTypes.Click})})}),qo=useEventCallback$3(ps=>{if(go==null||go(ps),ps.isDefaultPrevented()||ps.currentTarget!==ps.target)return;switch(ps.key){case Space:if(Uo!=="none"){var Qo;(Qo=Lo.current)===null||Qo===void 0||Qo.click(),ps.preventDefault()}return;case treeDataTypes.Enter:return ps.currentTarget.click();case treeDataTypes.End:case treeDataTypes.Home:case treeDataTypes.ArrowUp:case treeDataTypes.ArrowDown:return no({requestType:"navigate",event:ps,value:uo,itemType:$o,parentValue:so,type:ps.key,target:ps.currentTarget});case treeDataTypes.ArrowLeft:{if(Ro===1&&!Do)return;const ks={value:uo,event:ps,open:!Do,type:ps.key,target:ps.currentTarget};if(Do){var hs;(hs=eo.onOpenChange)===null||hs===void 0||hs.call(eo,ps,ks)}return no({...ks,itemType:$o,parentValue:so,requestType:Do?"open":"navigate"})}case treeDataTypes.ArrowRight:if($o==="leaf")return;const vs={value:uo,event:ps,open:!Do,type:ps.key,target:ps.currentTarget};if(!Do){var gs;(gs=eo.onOpenChange)===null||gs===void 0||gs.call(eo,ps,vs)}return no({...vs,itemType:$o,parentValue:so,requestType:Do?"navigate":"open"})}ps.key.length===1&&ps.key.match(/\w/)&&!ps.altKey&&!ps.ctrlKey&&!ps.metaKey&&no({requestType:"navigate",event:ps,target:ps.currentTarget,value:uo,itemType:$o,type:treeDataTypes.TypeAhead,parentValue:so})}),Jo=useEventCallback$3(ps=>{ko==null||ko(ps),!(ps.isDefaultPrevented()||Fo.current&&elementContains$1(Fo.current,ps.target))&&no({requestType:"selection",event:ps,value:uo,itemType:$o,type:"Change",target:ps.currentTarget,checked:Ho==="mixed"?!0:!Ho})});return{value:uo,open:Do,checked:Ho,subtreeRef:Fo,layoutRef:Bo,selectionRef:Lo,expandIconRef:Mo,treeItemRef:Go,actionsRef:No,itemType:$o,level:Ro,components:{root:"div"},isAsideVisible:!1,isActionsVisible:!1,root:always(getIntrinsicElementProps(Co,{tabIndex:-1,[dataTreeItemValueAttrName]:uo,...Oo,ref:useMergedRefs$1(to,Go),role:"treeitem","aria-level":Ro,"aria-checked":Uo==="multiselect"?Ho:void 0,"aria-selected":Uo==="single"?Ho:"false","aria-expanded":$o==="branch"?Do:void 0,onClick:Yo,onKeyDown:qo,onChange:Jo}),{elementType:"div"})}}const renderTreeItem_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(TreeItemProvider,{value:to.treeItem,children:eo.root.children})}),treeItemLayoutClassNames={root:"fui-TreeItemLayout",iconBefore:"fui-TreeItemLayout__iconBefore",main:"fui-TreeItemLayout__main",iconAfter:"fui-TreeItemLayout__iconAfter",expandIcon:"fui-TreeItemLayout__expandIcon",aside:"fui-TreeItemLayout__aside",actions:"fui-TreeItemLayout__actions",selector:"fui-TreeItemLayout__selector"},useRootBaseStyles$3=__resetStyles("rcu2h5o",null,[".rcu2h5o{display:flex;align-items:center;min-height:32px;box-sizing:border-box;grid-row-start:layout;grid-column-start:layout;grid-row-end:layout;grid-column-end:layout;}",".rcu2h5o:active{color:var(--colorNeutralForeground2Pressed);background-color:var(--colorSubtleBackgroundPressed);}",".rcu2h5o:active .fui-TreeItemLayout__expandIcon{color:var(--colorNeutralForeground3Pressed);}",".rcu2h5o:hover{color:var(--colorNeutralForeground2Hover);background-color:var(--colorSubtleBackgroundHover);}",".rcu2h5o:hover .fui-TreeItemLayout__expandIcon{color:var(--colorNeutralForeground3Hover);}"]),useRootStyles$1=__styles({leaf:{uwmqm3:["f1k1erfc","faevyjx"]},branch:{uwmqm3:["fo100m9","f6yw3pu"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},subtle:{},"subtle-alpha":{Jwef8y:"f146ro5n",ecr2s2:"fkam630"},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak"}},{d:[".f1k1erfc{padding-left:calc(var(--fluent-TreeItem--level, 1) * var(--spacingHorizontalXXL));}",".faevyjx{padding-right:calc(var(--fluent-TreeItem--level, 1) * var(--spacingHorizontalXXL));}",".fo100m9{padding-left:calc((var(--fluent-TreeItem--level, 1) - 1) * var(--spacingHorizontalXXL));}",".f6yw3pu{padding-right:calc((var(--fluent-TreeItem--level, 1) - 1) * var(--spacingHorizontalXXL));}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1pha7fy{min-height:24px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}"],h:[".f146ro5n:hover{background-color:var(--colorSubtleBackgroundLightAlphaHover);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}"],a:[".fkam630:active{background-color:var(--colorSubtleBackgroundLightAlphaPressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}"]}),useActionsBaseStyles=__resetStyles("r1i8xcbw","r12wgp0u",[".r1i8xcbw{display:flex;margin-left:auto;position:relative;z-index:1;grid-row-start:aside;grid-column-start:aside;grid-row-end:aside;grid-column-end:aside;padding-top:0;padding-right:var(--spacingHorizontalS);padding-bottom:0;padding-left:var(--spacingHorizontalS);}",".r12wgp0u{display:flex;margin-right:auto;position:relative;z-index:1;grid-row-start:aside;grid-column-start:aside;grid-row-end:aside;grid-column-end:aside;padding-top:0;padding-left:var(--spacingHorizontalS);padding-bottom:0;padding-right:var(--spacingHorizontalS);}"]),useAsideBaseStyles=__resetStyles("rviw63k","r1kawtgt",[".rviw63k{display:flex;margin-left:auto;align-items:center;z-index:0;grid-row-start:aside;grid-column-start:aside;grid-row-end:aside;grid-column-end:aside;padding-top:0;padding-right:var(--spacingHorizontalM);padding-bottom:0;padding-left:var(--spacingHorizontalM);column-gap:var(--spacingHorizontalXS);row-gap:var(--spacingHorizontalXS);}",".r1kawtgt{display:flex;margin-right:auto;align-items:center;z-index:0;grid-row-start:aside;grid-column-start:aside;grid-row-end:aside;grid-column-end:aside;padding-top:0;padding-left:var(--spacingHorizontalM);padding-bottom:0;padding-right:var(--spacingHorizontalM);column-gap:var(--spacingHorizontalXS);row-gap:var(--spacingHorizontalXS);}"]),useExpandIconBaseStyles=__resetStyles("rogdio4","rkb1wm1",[".rogdio4{display:flex;align-items:center;justify-content:center;min-width:24px;box-sizing:border-box;color:var(--colorNeutralForeground3);flex-grow:0;flex-shrink:0;flex-basis:auto;padding-top:var(--spacingVerticalXS);padding-right:0;padding-bottom:var(--spacingVerticalXS);padding-left:0;}",".rkb1wm1{display:flex;align-items:center;justify-content:center;min-width:24px;box-sizing:border-box;color:var(--colorNeutralForeground3);flex-grow:0;flex-shrink:0;flex-basis:auto;padding-top:var(--spacingVerticalXS);padding-left:0;padding-bottom:var(--spacingVerticalXS);padding-right:0;}"]),useMainBaseStyles=__resetStyles("rfjd92f","r9y1vtu",[".rfjd92f{padding-top:0;padding-right:var(--spacingHorizontalXXS);padding-bottom:0;padding-left:var(--spacingHorizontalXXS);}",".r9y1vtu{padding-top:0;padding-left:var(--spacingHorizontalXXS);padding-bottom:0;padding-right:var(--spacingHorizontalXXS);}"]),useIconBaseStyles$1=__resetStyles("rphzgg1",null,[".rphzgg1{display:flex;align-items:center;color:var(--colorNeutralForeground2);line-height:var(--lineHeightBase500);font-size:var(--fontSizeBase500);}"]),useIconBeforeStyles=__styles({medium:{z189sj:["f7x41pl","fruq291"]},small:{z189sj:["ffczdla","fgiv446"]}},{d:[".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}"]}),useIconAfterStyles=__styles({medium:{uwmqm3:["fruq291","f7x41pl"]},small:{uwmqm3:["fgiv446","ffczdla"]}},{d:[".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}"]}),useTreeItemLayoutStyles_unstable=eo=>{const{main:to,iconAfter:no,iconBefore:io,expandIcon:so,root:ao,aside:lo,actions:uo,selector:ho}=eo,go=useRootStyles$1(),mo=useRootBaseStyles$3(),yo=useActionsBaseStyles(),So=useAsideBaseStyles(),_o=useMainBaseStyles(),ko=useExpandIconBaseStyles(),Co=useIconBaseStyles$1(),$o=useIconBeforeStyles(),Ro=useIconAfterStyles(),Oo=useTreeContext_unstable(Bo=>Bo.size),No=useTreeContext_unstable(Bo=>Bo.appearance),Mo=useTreeItemContext_unstable(Bo=>Bo.itemType);return ao.className=mergeClasses(treeItemLayoutClassNames.root,mo,go[No],go[Oo],go[Mo],ao.className),to.className=mergeClasses(treeItemLayoutClassNames.main,_o,to.className),so&&(so.className=mergeClasses(treeItemLayoutClassNames.expandIcon,ko,so.className)),io&&(io.className=mergeClasses(treeItemLayoutClassNames.iconBefore,Co,$o[Oo],io.className)),no&&(no.className=mergeClasses(treeItemLayoutClassNames.iconAfter,Co,Ro[Oo],no.className)),uo&&(uo.className=mergeClasses(treeItemLayoutClassNames.actions,yo,uo.className)),lo&&(lo.className=mergeClasses(treeItemLayoutClassNames.aside,So,lo.className)),ho&&(ho.className=mergeClasses(treeItemLayoutClassNames.selector,ho.className)),eo},treeItemClassNames={root:"fui-TreeItem"},useBaseStyles=__resetStyles("r1hiwysc","r1eoub7o",[".r1hiwysc{position:relative;cursor:pointer;display:flex;flex-direction:column;box-sizing:border-box;background-color:var(--colorSubtleBackground);color:var(--colorNeutralForeground2);padding-right:var(--spacingHorizontalNone);}",".r1hiwysc:focus{outline-style:none;}",".r1hiwysc:focus-visible{outline-style:none;}",".r1hiwysc[data-fui-focus-visible]>.fui-TreeItemLayout,.r1hiwysc[data-fui-focus-visible]>.fui-TreeItemPersonaLayout{border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);outline-color:var(--colorStrokeFocus2);outline-radius:var(--borderRadiusMedium);outline-width:2px;outline-style:solid;}",".r1eoub7o{position:relative;cursor:pointer;display:flex;flex-direction:column;box-sizing:border-box;background-color:var(--colorSubtleBackground);color:var(--colorNeutralForeground2);padding-left:var(--spacingHorizontalNone);}",".r1eoub7o:focus{outline-style:none;}",".r1eoub7o:focus-visible{outline-style:none;}",".r1eoub7o[data-fui-focus-visible]>.fui-TreeItemLayout,.r1eoub7o[data-fui-focus-visible]>.fui-TreeItemPersonaLayout{border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);outline-color:var(--colorStrokeFocus2);outline-radius:var(--borderRadiusMedium);outline-width:2px;outline-style:solid;}"]),useStyles$n=__styles({level1:{iytv0q:"f10bgyvd"},level2:{iytv0q:"f1h0rod3"},level3:{iytv0q:"fgoqafk"},level4:{iytv0q:"f75dvuh"},level5:{iytv0q:"fqk7yw6"},level6:{iytv0q:"f1r3z17b"},level7:{iytv0q:"f1hrpd1h"},level8:{iytv0q:"f1iy65d0"},level9:{iytv0q:"ftg42e5"},level10:{iytv0q:"fyat3t"}},{d:[".f10bgyvd{--fluent-TreeItem--level:1;}",".f1h0rod3{--fluent-TreeItem--level:2;}",".fgoqafk{--fluent-TreeItem--level:3;}",".f75dvuh{--fluent-TreeItem--level:4;}",".fqk7yw6{--fluent-TreeItem--level:5;}",".f1r3z17b{--fluent-TreeItem--level:6;}",".f1hrpd1h{--fluent-TreeItem--level:7;}",".f1iy65d0{--fluent-TreeItem--level:8;}",".ftg42e5{--fluent-TreeItem--level:9;}",".fyat3t{--fluent-TreeItem--level:10;}"]}),useTreeItemStyles_unstable=eo=>{const to=useBaseStyles(),no=useStyles$n(),{level:io}=eo;return eo.root.className=mergeClasses(treeItemClassNames.root,to,isStaticallyDefinedLevel(io)&&no[`level${io}`],eo.root.className),eo};function isStaticallyDefinedLevel(eo){return eo>=1&&eo<=10}function useTreeItemContextValues_unstable(eo){const{value:to,itemType:no,layoutRef:io,subtreeRef:so,open:ao,expandIconRef:lo,actionsRef:uo,treeItemRef:ho,isActionsVisible:go,isAsideVisible:mo,selectionRef:yo,checked:So}=eo;return{treeItem:{value:to,checked:So,itemType:no,layoutRef:io,subtreeRef:so,open:ao,selectionRef:yo,isActionsVisible:go,isAsideVisible:mo,actionsRef:uo,treeItemRef:ho,expandIconRef:lo}}}const TreeItem=reactExports.forwardRef((eo,to)=>{const no=useTreeItem_unstable(eo,to);useTreeItemStyles_unstable(no);const io=useTreeItemContextValues_unstable(no);return renderTreeItem_unstable(no,io)});TreeItem.displayName="TreeItem";const TreeItemChevron=reactExports.memo(()=>{const eo=useTreeItemContext_unstable(io=>io.open),{dir:to}=useFluent(),no=eo?90:to!=="rtl"?0:180;return reactExports.createElement(ChevronRight12Regular,{style:expandIconInlineStyles[no]})});TreeItemChevron.displayName="TreeItemChevron";const expandIconInlineStyles={90:{transform:"rotate(90deg)"},0:{transform:"rotate(0deg)"},180:{transform:"rotate(180deg)"}},useTreeItemLayout_unstable=(eo,to)=>{const{main:no,iconAfter:io,iconBefore:so}=eo,ao=useTreeItemContext_unstable(Yo=>Yo.layoutRef),lo=useTreeContext_unstable(Yo=>Yo.selectionMode),[uo,ho]=isResolvedShorthand(eo.actions)?[eo.actions.visible,{...eo.actions,visible:void 0}]:[void 0,eo.actions],[go,mo]=useControllableState({state:uo,initialState:!1}),yo=useTreeItemContext_unstable(Yo=>Yo.selectionRef),So=useTreeItemContext_unstable(Yo=>Yo.expandIconRef),_o=useTreeItemContext_unstable(Yo=>Yo.actionsRef),ko=reactExports.useRef(null),Co=useTreeItemContext_unstable(Yo=>Yo.treeItemRef),$o=useTreeItemContext_unstable(Yo=>Yo.subtreeRef),Ro=useTreeItemContext_unstable(Yo=>Yo.checked),Oo=useTreeItemContext_unstable(Yo=>Yo.itemType==="branch"),No=reactExports.useCallback(Yo=>{!!($o.current&&elementContains$1($o.current,Yo.target))||mo(!0)},[$o,mo]),Mo=reactExports.useCallback(Yo=>{if(!!(ko.current&&elementContains$1(ko.current,Yo.relatedTarget))){mo(!0);return}if(!!!($o.current&&elementContains$1($o.current,Yo.target))){mo(!1);return}},[$o,mo]),Bo=optional(eo.expandIcon,{renderByDefault:Oo,defaultProps:{children:reactExports.createElement(TreeItemChevron,null),"aria-hidden":!0},elementType:"div"}),Fo=useMergedRefs$1(Bo==null?void 0:Bo.ref,So);Bo&&(Bo.ref=Fo);const Lo=useArrowNavigationGroup({circular:!0,axis:"horizontal"}),Go=go?optional(ho,{defaultProps:{...Lo,role:"toolbar"},elementType:"div"}):void 0,Do=useMergedRefs$1(Go==null?void 0:Go.ref,_o,ko),Uo=useEventCallback$3(Yo=>{if(isResolvedShorthand(ho)){var qo;(qo=ho.onBlur)===null||qo===void 0||qo.call(ho,Yo)}const Jo=!!elementContains$1(Yo.currentTarget,Yo.relatedTarget);mo(Jo)});Go&&(Go.ref=Do,Go.onBlur=Uo);const Ho=!!ho;return reactExports.useEffect(()=>{if(Co.current&&Ho&&uo===void 0){const Yo=Co.current,qo=No,Jo=Mo,ps=No,Qo=Mo;return Yo.addEventListener("mouseover",qo),Yo.addEventListener("mouseout",Jo),Yo.addEventListener("focus",ps),Yo.addEventListener("blur",Qo),()=>{Yo.removeEventListener("mouseover",qo),Yo.removeEventListener("mouseout",Jo),Yo.removeEventListener("focus",ps),Yo.removeEventListener("blur",Qo)}}},[Ho,Co,uo,No,Mo]),{components:{root:"div",expandIcon:"div",iconBefore:"div",main:"div",iconAfter:"div",actions:"div",aside:"div",selector:lo==="multiselect"?Checkbox$2:Radio$2},buttonContextValue:{size:"small"},root:always(getIntrinsicElementProps("div",{...eo,ref:useMergedRefs$1(to,ao)}),{elementType:"div"}),iconBefore:optional(so,{defaultProps:{"aria-hidden":!0},elementType:"div"}),main:always(no,{elementType:"div"}),iconAfter:optional(io,{defaultProps:{"aria-hidden":!0},elementType:"div"}),aside:go?void 0:optional(eo.aside,{defaultProps:{"aria-hidden":!0},elementType:"div"}),actions:Go,expandIcon:Bo,selector:optional(eo.selector,{renderByDefault:lo!=="none",defaultProps:{checked:Ro,tabIndex:-1,"aria-hidden":!0,ref:yo},elementType:lo==="multiselect"?Checkbox$2:Radio$2})}},renderTreeItemLayout_unstable=eo=>jsxs(eo.root,{children:[eo.expandIcon&&jsx$1(eo.expandIcon,{}),eo.selector&&jsx$1(eo.selector,{}),eo.iconBefore&&jsx$1(eo.iconBefore,{}),jsx$1(eo.main,{children:eo.root.children}),eo.iconAfter&&jsx$1(eo.iconAfter,{}),jsxs(ButtonContextProvider,{value:eo.buttonContextValue,children:[eo.actions&&jsx$1(eo.actions,{}),eo.aside&&jsx$1(eo.aside,{})]})]}),TreeItemLayout=reactExports.forwardRef((eo,to)=>{const no=useTreeItemLayout_unstable(eo,to);return useTreeItemLayoutStyles_unstable(no),renderTreeItemLayout_unstable(no)});TreeItemLayout.displayName="TreeItemLayout";const TagGroupContext=reactExports.createContext(void 0),tagGroupContextDefaultValue={handleTagDismiss:()=>({}),size:"medium"};TagGroupContext.Provider;const useTagGroupContext_unstable=()=>{var eo;return(eo=reactExports.useContext(TagGroupContext))!==null&&eo!==void 0?eo:tagGroupContextDefaultValue},tagAvatarSizeMap={medium:28,small:20,"extra-small":16},tagAvatarShapeMap={rounded:"square",circular:"circular"},useTag_unstable=(eo,to)=>{const{handleTagDismiss:no,size:io}=useTagGroupContext_unstable(),so=useId$1("fui-Tag",eo.id),{appearance:ao="filled",disabled:lo=!1,dismissible:uo=!1,shape:ho="rounded",size:go=io,value:mo=so}=eo,yo=useEventCallback$3(ko=>{var Co;(Co=eo.onClick)===null||Co===void 0||Co.call(eo,ko),ko.defaultPrevented||no==null||no(ko,{value:mo})}),So=useEventCallback$3(ko=>{var Co;eo==null||(Co=eo.onKeyDown)===null||Co===void 0||Co.call(eo,ko),!ko.defaultPrevented&&(ko.key===Delete||ko.key===Backspace)&&(no==null||no(ko,{value:mo}))}),_o=uo?"button":"span";return{appearance:ao,avatarShape:tagAvatarShapeMap[ho],avatarSize:tagAvatarSizeMap[go],disabled:lo,dismissible:uo,shape:ho,size:go,components:{root:_o,media:"span",icon:"span",primaryText:"span",secondaryText:"span",dismissIcon:"span"},root:always(getIntrinsicElementProps(_o,{ref:to,...eo,id:so,...uo&&{onClick:yo,onKeyDown:So}}),{elementType:_o}),media:optional(eo.media,{elementType:"span"}),icon:optional(eo.icon,{elementType:"span"}),primaryText:optional(eo.primaryText,{renderByDefault:!0,defaultProps:{children:eo.children},elementType:"span"}),secondaryText:optional(eo.secondaryText,{elementType:"span"}),dismissIcon:optional(eo.dismissIcon,{renderByDefault:uo,defaultProps:{children:reactExports.createElement(DismissRegular,null),role:"img"},elementType:"span"})}},renderTag_unstable=(eo,to)=>jsxs(eo.root,{children:[eo.media&&jsx$1(AvatarContextProvider,{value:to.avatar,children:jsx$1(eo.media,{})}),eo.icon&&jsx$1(eo.icon,{}),eo.primaryText&&jsx$1(eo.primaryText,{}),eo.secondaryText&&jsx$1(eo.secondaryText,{}),eo.dismissIcon&&eo.dismissible&&jsx$1(eo.dismissIcon,{})]}),tagClassNames={root:"fui-Tag",media:"fui-Tag__media",icon:"fui-Tag__icon",primaryText:"fui-Tag__primaryText",secondaryText:"fui-Tag__secondaryText",dismissIcon:"fui-Tag__dismissIcon"},useRootRoundedBaseClassName=__resetStyles("r1d3fbai","r89ofxt",{r:['.r1d3fbai{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r1d3fbai[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",'.r89ofxt{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r89ofxt[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r1d3fbai{position:relative;}.r1d3fbai::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);}}','@media (forced-colors: active){.r89ofxt{position:relative;}.r89ofxt::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);}}']}),useRootCircularBaseClassName=__resetStyles("r76els4","r1g7lw0i",{r:['.r76els4{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r76els4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);border-bottom-left-radius:var(--borderRadiusCircular);border-top-right-radius:var(--borderRadiusCircular);border-top-left-radius:var(--borderRadiusCircular);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",'.r1g7lw0i{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r1g7lw0i[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);border-bottom-right-radius:var(--borderRadiusCircular);border-top-left-radius:var(--borderRadiusCircular);border-top-right-radius:var(--borderRadiusCircular);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r76els4{position:relative;}.r76els4::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;border-left-width:var(--strokeWidthThin);border-left-style:solid;border-right-width:var(--strokeWidthThin);border-right-style:solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}','@media (forced-colors: active){.r1g7lw0i{position:relative;}.r1g7lw0i::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;border-right-width:var(--strokeWidthThin);border-right-style:solid;border-left-width:var(--strokeWidthThin);border-left-style:solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}']}),useRootStyles=__styles({filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb"},outline:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"]},brand:{De3pzq:"f16xkysk",sj55zd:"faj9fo0"},medium:{Bqenvij:"f1d2rq10"},small:{Bqenvij:"frvgh55"},"extra-small":{Bqenvij:"fjamq6b"}},{d:[".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f1d2rq10{height:32px;}",".frvgh55{height:24px;}",".fjamq6b{height:20px;}"]}),useRootDisabledStyles=__styles({filled:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]},outline:{Bceei9c:"fdrzuqr",De3pzq:"fhovq9v",sj55zd:"f1s2aq7o",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"]},brand:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]}),useRootWithoutMediaStyles=__styles({medium:{uwmqm3:["f1rtp3s9","f18k1jr3"]},small:{uwmqm3:["f15vdbe4","fwiuce9"]},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"]}},{d:[".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}"]}),useRootWithoutDismissStyles=__styles({medium:{z189sj:["f18k1jr3","f1rtp3s9"]},small:{z189sj:["fwiuce9","f15vdbe4"]},"extra-small":{z189sj:["fwiuce9","f15vdbe4"]}},{d:[".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}"]}),useIconStyles$1=__styles({base:{Ijaq50:"f11uok23",Br312pm:"f1qdfnnj",nk6f5a:"f1s27gz",Bw0ie65:"f86d0yl",mc9l5x:"f22iagw"},medium:{uwmqm3:["f1rtp3s9","f18k1jr3"],z189sj:["f7x41pl","fruq291"],a9b677:"f64fuq3",Be2twd7:"fe5j1ua"},small:{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"fjw5fx7",Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"frx94fk",Be2twd7:"f1ugzwwg"}},{d:[".f11uok23{grid-row-start:media;}",".f1qdfnnj{grid-column-start:media;}",".f1s27gz{grid-row-end:media;}",".f86d0yl{grid-column-end:media;}",".f22iagw{display:flex;}",".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f64fuq3{width:20px;}",".fe5j1ua{font-size:20px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".fjw5fx7{width:16px;}",".f4ybsrx{font-size:16px;}",".frx94fk{width:12px;}",".f1ugzwwg{font-size:12px;}"]}),useMediaStyles=__styles({base:{Ijaq50:"f11uok23",Br312pm:"f1qdfnnj",nk6f5a:"f1s27gz",Bw0ie65:"f86d0yl",mc9l5x:"f22iagw",uwmqm3:["f10xn8zz","f136y8j8"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},small:{z189sj:["fdw0yi8","fk8j09s"]},"extra-small":{z189sj:["fdw0yi8","fk8j09s"]}},{d:[".f11uok23{grid-row-start:media;}",".f1qdfnnj{grid-column-start:media;}",".f1s27gz{grid-row-end:media;}",".f86d0yl{grid-column-end:media;}",".f22iagw{display:flex;}",".f10xn8zz{padding-left:1px;}",".f136y8j8{padding-right:1px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}"]}),useDismissIconStyles=__styles({base:{Ijaq50:"fneo8i2",Br312pm:"frbqjvc",nk6f5a:"f1a6k60w",Bw0ie65:"f1ay3jj",mc9l5x:"f22iagw",ze5xyy:"f4xjyn1",oy3o9n:"f1xtr1b3"},medium:{uwmqm3:["fruq291","f7x41pl"],z189sj:["f18k1jr3","f1rtp3s9"],Be2twd7:"fe5j1ua"},small:{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f1ugzwwg"},filled:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},outline:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},brand:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"}},{d:[".fneo8i2{grid-row-start:dismissIcon;}",".frbqjvc{grid-column-start:dismissIcon;}",".f1a6k60w{grid-row-end:dismissIcon;}",".f1ay3jj{grid-column-end:dismissIcon;}",".f22iagw{display:flex;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fe5j1ua{font-size:20px;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".f4ybsrx{font-size:16px;}",".f1ugzwwg{font-size:12px;}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xtr1b3:active{color:Highlight;}}",{m:"(forced-colors: active)"}]],h:[".f8491dx:hover{cursor:pointer;}",".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}"],a:[".fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}"]}),usePrimaryTextStyles=__styles({base:{Huce71:"fz5stix",uwmqm3:["fgiv446","ffczdla"],z189sj:["ffczdla","fgiv446"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},withoutSecondaryText:{Br312pm:"faqcfhe",Ijaq50:"f1q3ipgb",nk6f5a:"fc0ab3q",Byoj8tv:"f1g03r3y"},withSecondaryText:{Ijaq50:"f1q3ipgb",Br312pm:"faqcfhe",nk6f5a:"fs32cm1",Bw0ie65:"f1bo7viq",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",B6of3ja:"f1ryq6si"}},{d:[".fz5stix{white-space:nowrap;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".faqcfhe{grid-column-start:primary;}",".f1q3ipgb{grid-row-start:primary;}",".fc0ab3q{grid-row-end:secondary;}",".f1g03r3y{padding-bottom:var(--spacingHorizontalXXS);}",".fs32cm1{grid-row-end:primary;}",".f1bo7viq{grid-column-end:primary;}",".f1ryq6si{margin-top:-2px;}"]}),useSecondaryTextBaseClassName=__resetStyles("r7hv1ps","rnrslm9",[".r7hv1ps{grid-area:secondary;padding-left:var(--spacingHorizontalXXS);padding-right:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}",".rnrslm9{grid-area:secondary;padding-right:var(--spacingHorizontalXXS);padding-left:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}"]),useTagStyles_unstable=eo=>{const to=useRootRoundedBaseClassName(),no=useRootCircularBaseClassName(),io=useRootStyles(),so=useRootDisabledStyles(),ao=useRootWithoutMediaStyles(),lo=useRootWithoutDismissStyles(),uo=useIconStyles$1(),ho=useMediaStyles(),go=useDismissIconStyles(),mo=usePrimaryTextStyles(),yo=useSecondaryTextBaseClassName(),{shape:So,size:_o,appearance:ko}=eo;return eo.root.className=mergeClasses(tagClassNames.root,So==="rounded"?to:no,eo.disabled?so[ko]:io[ko],io[_o],!eo.media&&!eo.icon&&ao[_o],!eo.dismissIcon&&lo[_o],eo.root.className),eo.media&&(eo.media.className=mergeClasses(tagClassNames.media,ho.base,ho[_o],eo.media.className)),eo.icon&&(eo.icon.className=mergeClasses(tagClassNames.icon,uo.base,uo[_o],eo.icon.className)),eo.primaryText&&(eo.primaryText.className=mergeClasses(tagClassNames.primaryText,mo.base,mo[_o],eo.secondaryText?mo.withSecondaryText:mo.withoutSecondaryText,eo.primaryText.className)),eo.secondaryText&&(eo.secondaryText.className=mergeClasses(tagClassNames.secondaryText,yo,eo.secondaryText.className)),eo.dismissIcon&&(eo.dismissIcon.className=mergeClasses(tagClassNames.dismissIcon,go.base,go[_o],!eo.disabled&&go[ko],eo.dismissIcon.className)),eo};function useTagAvatarContextValues_unstable(eo){const{avatarSize:to,avatarShape:no}=eo;return{avatar:reactExports.useMemo(()=>({size:to,shape:no}),[no,to])}}const Tag$2=reactExports.forwardRef((eo,to)=>{const no=useTag_unstable(eo,to);return useTagStyles_unstable(no),useCustomStyleHook("useTagStyles_unstable")(no),renderTag_unstable(no,useTagAvatarContextValues_unstable(no))});Tag$2.displayName="Tag";function getIntentIcon(eo){switch(eo){case"info":return reactExports.createElement(InfoFilled,null);case"warning":return reactExports.createElement(WarningFilled,null);case"error":return reactExports.createElement(ErrorCircleFilled,null);case"success":return reactExports.createElement(CheckmarkCircleFilled,null);default:return null}}function useMessageBarReflow(eo=!1){const{targetDocument:to}=useFluent(),no=reactExports.useReducer(()=>({}),{})[1],io=reactExports.useRef(!1),so=reactExports.useRef(null),ao=reactExports.useRef(-1),lo=reactExports.useCallback(ho=>{const go=ho[0],mo=go==null?void 0:go.borderBoxSize[0];if(!mo||!go)return;const{inlineSize:yo}=mo,{target:So}=go;if(!isHTMLElement$6(So))return;let _o;if(io.current)ao.current{var go;if(!eo||!ho||!(to!=null&&to.defaultView))return;(go=so.current)===null||go===void 0||go.disconnect();const mo=to.defaultView,yo=new mo.ResizeObserver(lo);so.current=yo,yo.observe(ho,{box:"border-box"})},[to,lo,eo]);return reactExports.useEffect(()=>()=>{var ho;(ho=so.current)===null||ho===void 0||ho.disconnect()},[]),{ref:uo,reflowing:io.current}}const messageBarTransitionContext=reactExports.createContext(void 0),messageBarTransitionContextDefaultValue={className:"",nodeRef:reactExports.createRef()};messageBarTransitionContext.Provider;const useMessageBarTransitionContext=()=>{var eo;return(eo=reactExports.useContext(messageBarTransitionContext))!==null&&eo!==void 0?eo:messageBarTransitionContextDefaultValue},useMessageBar_unstable=(eo,to)=>{const{layout:no="auto",intent:io="info",politeness:so,shape:ao="rounded"}=eo,lo=so??io==="info"?"polite":"assertive",uo=no==="auto",{ref:ho,reflowing:go}=useMessageBarReflow(uo),mo=uo?go?"multiline":"singleline":no,{className:yo,nodeRef:So}=useMessageBarTransitionContext(),_o=reactExports.useRef(null),ko=reactExports.useRef(null),{announce:Co}=useAnnounce(),$o=useId$1();return reactExports.useEffect(()=>{var Ro,Oo;const No=(Ro=ko.current)===null||Ro===void 0?void 0:Ro.textContent,Mo=(Oo=_o.current)===null||Oo===void 0?void 0:Oo.textContent,Bo=[No,Mo].filter(Boolean).join(",");Co(Bo,{polite:lo==="polite",alert:lo==="assertive"})},[ko,_o,Co,lo]),{components:{root:"div",icon:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,ho,So),role:"group","aria-labelledby":$o,...eo}),{elementType:"div"}),icon:optional(eo.icon,{renderByDefault:!0,elementType:"div",defaultProps:{children:getIntentIcon(io)}}),layout:mo,intent:io,transitionClassName:yo,actionsRef:_o,bodyRef:ko,titleId:$o,shape:ao}},messageBarContext=reactExports.createContext(void 0),messageBarContextDefaultValue={titleId:"",layout:"singleline",actionsRef:reactExports.createRef(),bodyRef:reactExports.createRef()},MessageBarContextProvider=messageBarContext.Provider,useMessageBarContext=()=>{var eo;return(eo=reactExports.useContext(messageBarContext))!==null&&eo!==void 0?eo:messageBarContextDefaultValue},renderMessageBar_unstable=(eo,to)=>jsx$1(MessageBarContextProvider,{value:to.messageBar,children:jsxs(eo.root,{children:[eo.icon&&jsx$1(eo.icon,{}),eo.root.children]})}),messageBarClassNames={root:"fui-MessageBar",icon:"fui-MessageBar__icon"},useRootBaseStyles$2=__resetStyles("rashqx","ri1c0vc",['.rashqx{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-left:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}','.ri1c0vc{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-right:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}']),useIconBaseStyles=__resetStyles("r1bxgyar","rv8i6h8",[".r1bxgyar{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-right:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}",".rv8i6h8{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-left:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}"]),useStyles$m=__styles({rootMultiline:{Huce71:"f6juhto",Bt984gj:"f1s2louj",z8tnut:"f1ngh7ph",Budl1dq:"f17g0uqy",zoa1oz:"f1w7oly7"},secondaryActionsMultiline:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"]},square:{Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]}},{d:[".f6juhto{white-space:normal;}",".f1s2louj{align-items:start;}",".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",".f17g0uqy{grid-template-columns:auto 1fr auto;}",'.f1w7oly7{grid-template-areas:"icon body actions" "secondaryActions secondaryActions secondaryActions";}',".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}"]}),useIconIntentStyles=__styles({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),useRootIntentStyles=__styles({info:{},error:{De3pzq:"f1eon7jj",g2u3we:"f1f8dvr7",h3c5rm:["f1g1ijmo","f1nxacbt"],B9xav0g:"fo25q1j",zhjwy3:["f1nxacbt","f1g1ijmo"]},warning:{De3pzq:"f13ftzij",g2u3we:"frd1ypx",h3c5rm:["f1gyjrma","f18qd5xz"],B9xav0g:"fqyqtrt",zhjwy3:["f18qd5xz","f1gyjrma"]},success:{De3pzq:"f64thcm",g2u3we:"f1b4u7v",h3c5rm:["f1nyd2b1","f70v3om"],B9xav0g:"fk173vo",zhjwy3:["f70v3om","f1nyd2b1"]}},{d:[".f1eon7jj{background-color:var(--colorStatusDangerBackground1);}",".f1f8dvr7{border-top-color:var(--colorStatusDangerBorder1);}",".f1g1ijmo{border-right-color:var(--colorStatusDangerBorder1);}",".f1nxacbt{border-left-color:var(--colorStatusDangerBorder1);}",".fo25q1j{border-bottom-color:var(--colorStatusDangerBorder1);}",".f13ftzij{background-color:var(--colorStatusWarningBackground1);}",".frd1ypx{border-top-color:var(--colorStatusWarningBorder1);}",".f1gyjrma{border-right-color:var(--colorStatusWarningBorder1);}",".f18qd5xz{border-left-color:var(--colorStatusWarningBorder1);}",".fqyqtrt{border-bottom-color:var(--colorStatusWarningBorder1);}",".f64thcm{background-color:var(--colorStatusSuccessBackground1);}",".f1b4u7v{border-top-color:var(--colorStatusSuccessBorder1);}",".f1nyd2b1{border-right-color:var(--colorStatusSuccessBorder1);}",".f70v3om{border-left-color:var(--colorStatusSuccessBorder1);}",".fk173vo{border-bottom-color:var(--colorStatusSuccessBorder1);}"]}),useMessageBarStyles_unstable=eo=>{const to=useRootBaseStyles$2(),no=useIconBaseStyles(),io=useIconIntentStyles(),so=useRootIntentStyles(),ao=useStyles$m();return eo.root.className=mergeClasses(messageBarClassNames.root,to,eo.layout==="multiline"&&ao.rootMultiline,eo.shape==="square"&&ao.square,so[eo.intent],eo.transitionClassName,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(messageBarClassNames.icon,no,io[eo.intent],eo.icon.className)),eo};function useMessageBarContextValue_unstable(eo){const{layout:to,actionsRef:no,bodyRef:io,titleId:so}=eo;return{messageBar:reactExports.useMemo(()=>({layout:to,actionsRef:no,bodyRef:io,titleId:so}),[to,no,io,so])}}const MessageBar=reactExports.forwardRef((eo,to)=>{const no=useMessageBar_unstable(eo,to);return useMessageBarStyles_unstable(no),useCustomStyleHook("useMessageBarStyles_unstable")(no),renderMessageBar_unstable(no,useMessageBarContextValue_unstable(no))});MessageBar.displayName="MessageBar";const useMessageBarTitle_unstable=(eo,to)=>{const{titleId:no}=useMessageBarContext();return{components:{root:"span"},root:always(getIntrinsicElementProps("span",{ref:to,id:no,...eo}),{elementType:"span"})}},renderMessageBarTitle_unstable=eo=>jsx$1(eo.root,{}),messageBarTitleClassNames={root:"fui-MessageBarTitle"},useRootBaseStyles$1=__resetStyles("r168xkm9",null,[".r168xkm9{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);}",'.r168xkm9::after{content:" ";}']),useMessageBarTitleStyles_unstable=eo=>{const to=useRootBaseStyles$1();return eo.root.className=mergeClasses(messageBarTitleClassNames.root,to,eo.root.className),eo},MessageBarTitle=reactExports.forwardRef((eo,to)=>{const no=useMessageBarTitle_unstable(eo,to);return useMessageBarTitleStyles_unstable(no),useCustomStyleHook("useMessageBarTitleStyles_unstable")(no),renderMessageBarTitle_unstable(no)});MessageBarTitle.displayName="MessageBarTitle";const useMessageBarBody_unstable=(eo,to)=>{const{bodyRef:no}=useMessageBarContext();return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,no),...eo}),{elementType:"div"})}},renderMessageBarBody_unstable=eo=>jsx$1(eo.root,{}),messageBarBodyClassNames={root:"fui-MessageBarBody"},useRootBaseStyles=__resetStyles("rnv3mfe","r1ixc1x8",[".rnv3mfe{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-right:var(--spacingHorizontalM);}",".r1ixc1x8{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-left:var(--spacingHorizontalM);}"]),useMessageBarBodyStyles_unstable=eo=>{const to=useRootBaseStyles();return eo.root.className=mergeClasses(messageBarBodyClassNames.root,to,eo.root.className),eo},MessageBarBody=reactExports.forwardRef((eo,to)=>{const no=useMessageBarBody_unstable(eo,to);return useMessageBarBodyStyles_unstable(no),useCustomStyleHook("useMessageBarBodyStyles_unstable")(no),renderMessageBarBody_unstable(no)});MessageBarBody.displayName="MessageBarBody";const useReducedMotion=()=>{var eo;const to=useFluent(),no=reactExports.useRef(!1),io=canUseDOM$3()&&((eo=to.targetDocument)===null||eo===void 0?void 0:eo.defaultView),so=reactExports.useCallback(ao=>{no.current=ao.matches},[]);return useIsomorphicLayoutEffect$1(()=>{if(!io||!io.matchMedia)return;const ao=io.matchMedia("screen and (prefers-reduced-motion: reduce)");return ao.matches&&(no.current=!0),ao.addEventListener("change",so),()=>ao.removeEventListener("change",so)},[so,io]),no.current},getCSSStyle=eo=>hasCSSOMSupport(eo)?eo.computedStyleMap():getElementComputedStyle(eo),hasCSSOMSupport=eo=>!!(typeof CSS<"u"&&CSS.number&&eo.computedStyleMap),getElementComputedStyle=eo=>{var to,no;const io=canUseDOM$3()&&((no=(to=eo.ownerDocument)===null||to===void 0?void 0:to.defaultView)!==null&&no!==void 0?no:window);return io?io.getComputedStyle(eo,null):{getPropertyValue:so=>""}};function toMs(eo){const to=eo.trim();if(to.includes("auto"))return 0;if(to.endsWith("ms")){const no=Number(to.replace("ms",""));return isNaN(no)?0:no}return Number(to.slice(0,-1).replace(",","."))*1e3}const getComputedMapProp=(eo,to)=>{const no=eo.getAll(to);return no.length>0?no.map(({value:io,unit:so})=>`${io}${so}`):["0"]},getComputedStyleProp=(eo,to)=>{const no=eo.getPropertyValue(to);return no?no.split(","):["0"]},getMaxCSSDuration=(eo,to)=>{const no=Math.max(eo.length,to.length),io=[];if(no===0)return 0;for(let so=0;so{const to=hasCSSOMSupport(eo),no=getCSSStyle(eo),io=lo=>to?getComputedMapProp(no,lo):getComputedStyleProp(no,lo),so=getMaxCSSDuration(io("transition-duration"),io("transition-delay")),ao=getMaxCSSDuration(io("animation-duration"),io("animation-delay"));return Math.max(so,ao)},useFirstMountCondition=eo=>{const to=reactExports.useRef(!0);return to.current&&eo?(to.current=!1,!0):to.current};function useMotionPresence(eo,to={}){const{animateOnFirstMount:no,duration:io}={animateOnFirstMount:!1,...to},[so,ao]=reactExports.useState(eo&&no?"entering":eo?"idle":"unmounted"),[lo,uo]=reactExports.useState(!no&&eo),[ho,go]=useTimeout(),[mo,yo]=useTimeout(),[So,_o]=useAnimationFrame(),[ko,Co]=reactExports.useState(null),$o=useReducedMotion(),Ro=useFirstMount(),Oo=useFirstMountCondition(!!ko),No=reactExports.useRef(eo).current,Mo=$o||Oo&&No&&!no,Bo=reactExports.useCallback(Go=>{Go&&Co(Go)},[]),Fo=reactExports.useCallback(Go=>(mo(()=>So(Go),0),()=>{yo(),_o()}),[_o,yo,So,mo]),Lo=reactExports.useCallback(()=>{ao(eo?"entered":"exited"),Fo(()=>ao(eo?"idle":"unmounted"))},[Fo,eo]);return reactExports.useEffect(()=>{if(!Ro){if(Mo){ao(eo?"idle":"unmounted"),uo(eo);return}if(ao(eo?"entering":"exiting"),!!ko)return Fo(()=>{uo(eo),Fo(()=>{const Go=io||getMotionDuration(ko);if(Go===0){Lo();return}ho(()=>Lo(),Go)})}),()=>go()}},[ko,Mo,Lo,eo]),reactExports.useMemo(()=>({ref:Bo,type:so,active:lo,canRender:eo||so!=="unmounted"}),[lo,so,eo])}function useMotion(eo,to){const no=typeof eo=="object",io=useMotionPresence(no?!1:eo,to);return no?eo:io}const useReducedMotionStyles=__styles({reduced:{Hwfdqs:"f1bggi9a"}},{m:[["@media screen and (prefers-reduced-motion: reduce){.f1bggi9a{transition-duration:0.01ms!important;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]});function assertMotionStyles(eo){}const useMotionClassNames=(eo,to)=>{const{reduced:no}=useReducedMotionStyles(),io=reactExports.useMemo(()=>!to.enter&&!to.exit?"":eo.active||eo.type==="idle"?to.enter:eo.active?"":to.exit,[eo.active,eo.type,to.enter,to.exit]);return reactExports.useEffect(()=>void 0,[to]),mergeClasses(to.default,io,to[eo.type],no)};function useDrawerDefaultProps(eo){const{open:to=!1,size:no="small",position:io="start"}=eo;return{size:no,position:io,open:to}}const useBackdropResetStyles=__resetStyles("rivxbo","r1trjn1z",[".rivxbo{top:0px;right:0px;bottom:0px;left:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}",".r1trjn1z{top:0px;left:0px;bottom:0px;right:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}"]),useBackdropStyles=__styles({nested:{De3pzq:"f1c21dwh"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}"]}),useOverlayDrawerSurfaceStyles_unstable=eo=>{const to=useBackdropResetStyles(),no=useBackdropStyles();return eo.backdrop&&(eo.backdrop.className=mergeClasses(to,eo.isNestedDialog&&no.nested,eo.backdrop.className)),eo},OverlayDrawerSurface=reactExports.forwardRef((eo,to)=>{const no=useDialogSurface_unstable(eo,to),io=useDialogSurfaceContextValues_unstable();return useOverlayDrawerSurfaceStyles_unstable(no),renderDialogSurface_unstable(no,io)});OverlayDrawerSurface.displayName="OverlayDrawerSurface";const useOverlayDrawer_unstable=(eo,to)=>{const{open:no,size:io,position:so}=useDrawerDefaultProps(eo),{modalType:ao="modal",inertTrapFocus:lo,defaultOpen:uo=!1,onOpenChange:ho}=eo,go=useMotion(no),mo=resolveShorthand(eo.backdrop),So=always({...eo,backdrop:ao!=="non-modal"&&mo!==null?{...mo}:null},{elementType:OverlayDrawerSurface,defaultProps:{ref:useMergedRefs$1(to,go.ref)}}),_o=always({open:!0,defaultOpen:uo,onOpenChange:ho,inertTrapFocus:lo,modalType:ao,children:null},{elementType:Dialog});return{components:{root:OverlayDrawerSurface,dialog:Dialog},root:So,dialog:_o,size:io,position:so,motion:go}},renderOverlayDrawer_unstable=eo=>eo.motion.canRender?jsx$1(eo.dialog,{children:jsx$1(eo.root,{})}):null,useDrawerStyles=__styles({entering:{Bkqvd7p:"f18ad807"},exiting:{Bkqvd7p:"f1mfizis"},reducedMotion:{Hwfdqs:"f5e8c63"},start:{Bekrc4i:["f5tn483","f1ojsxk5"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["f1gn591s","fjscplz"],oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["fvfyk4","frppm18"]},end:{ibv6hh:["f1ojsxk5","f5tn483"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["fjscplz","f1gn591s"],j35jbq:["f1e31b4d","f1vgc2s3"],oyh7mz:["frppm18","fvfyk4"]},small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fsdmzs6"}},{d:[".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fvfyk4{right:auto;}",".frppm18{left:auto;}",".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".fsdmzs6{--fui-Drawer--size:100vw;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f5e8c63{transition-duration:0.001ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),useDrawerDurationStyles=__styles({small:{B3o57yi:"fc397y7"},medium:{B3o57yi:"f78771"},large:{B3o57yi:"f9ymmep"},full:{B3o57yi:"f1loko9l"}},{d:[".fc397y7{transition-duration:var(--durationGentle);}",".f78771{transition-duration:var(--durationSlow);}",".f9ymmep{transition-duration:var(--durationSlower);}",".f1loko9l{transition-duration:var(--durationUltraSlow);}"]}),useDrawerBaseClassNames=({position:eo,size:to,motion:no})=>{const io=useDrawerStyles(),so=useDrawerDurationStyles();return mergeClasses(io[eo],so[to],io[to],io.reducedMotion,no.type==="entering"&&io.entering,no.type==="exiting"&&io.exiting)},overlayDrawerClassNames={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},useDrawerResetStyles=__resetStyles("r1vxc6jp","r1uky7bi",{r:[".r1vxc6jp{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1vxc6jp:focus{outline-style:none;}",".r1vxc6jp:focus-visible{outline-style:none;}",".r1vxc6jp[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1vxc6jp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1uky7bi{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1uky7bi:focus{outline-style:none;}",".r1uky7bi:focus-visible{outline-style:none;}",".r1uky7bi[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1uky7bi[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1vxc6jp[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r1uky7bi[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useDrawerRootStyles=__styles({start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1g0pcr8"}},{d:[".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1g0pcr8{transform:translate3D(calc(var(--fui-Drawer--size) * 1), 0, 0);}"]}),useDrawerMotionStyles=__styles({default:{abs64n:"fk73vx1",E5pizo:"ff88big",Bmy1vo4:"f1neo61",Es3by:"f1ytgekk"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx",E5pizo:"f10nrhrw"}},{d:[".fk73vx1{opacity:0;}",".ff88big{box-shadow:0px var(--colorTransparentBackground);}",".f1neo61{transition-property:transform,box-shadow,opacity;}",".f1ytgekk{will-change:transform,box-shadow,opacity;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}",".f10nrhrw{box-shadow:var(--shadow64);}"]}),useBackdropMotionStyles=__styles({default:{abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",Bkqvd7p:"f17wnm97",Es3by:"f1gqqdtu"},enter:{abs64n:"f5p0z4x"}},{d:[".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".f17wnm97{transition-timing-function:var(--curveEasyEase);}",".f1gqqdtu{will-change:opacity;}",".f5p0z4x{opacity:1;}"]}),useOverlayDrawerStyles_unstable=eo=>{const to=useDrawerBaseClassNames(eo),no=useDrawerResetStyles(),io=useDrawerRootStyles(),so=useDrawerDurationStyles(),ao=useMotionClassNames(eo.motion,useDrawerMotionStyles()),lo=useMotionClassNames(eo.motion,useBackdropMotionStyles()),uo=eo.root.backdrop;return eo.root.className=mergeClasses(overlayDrawerClassNames.root,to,no,io[eo.position],ao,eo.root.className),uo&&(uo.className=mergeClasses(overlayDrawerClassNames.backdrop,lo,so[eo.size],uo.className)),eo},OverlayDrawer=reactExports.forwardRef((eo,to)=>{const no=useOverlayDrawer_unstable(eo,to);return useOverlayDrawerStyles_unstable(no),useCustomStyleHook("useDrawerOverlayStyles_unstable")(no),useCustomStyleHook("useOverlayDrawerStyles_unstable")(no),renderOverlayDrawer_unstable(no)});OverlayDrawer.displayName="OverlayDrawer";const useBreadcrumb_unstable=(eo,to)=>{const{focusMode:no="tab",size:io="medium",list:so,...ao}=eo,lo=useArrowNavigationGroup({circular:!0,axis:"horizontal",memorizeCurrent:!0});var uo;return{components:{root:"nav",list:"ol"},root:always(getIntrinsicElementProps("nav",{ref:to,"aria-label":(uo=eo["aria-label"])!==null&&uo!==void 0?uo:"breadcrumb",...no==="arrow"?lo:{},...ao}),{elementType:"nav"}),list:optional(so,{renderByDefault:!0,defaultProps:{role:"list"},elementType:"ol"}),size:io}},BreadcrumbContext=reactExports.createContext(void 0),breadcrumbDefaultValue={size:"medium"},BreadcrumbProvider=BreadcrumbContext.Provider,useBreadcrumbContext_unstable=()=>{var eo;return(eo=reactExports.useContext(BreadcrumbContext))!==null&&eo!==void 0?eo:breadcrumbDefaultValue},renderBreadcrumb_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(BreadcrumbProvider,{value:to,children:eo.list&&jsx$1(eo.list,{children:eo.root.children})})}),breadcrumbClassNames={root:"fui-Breadcrumb",list:"fui-Breadcrumb__list"},useListClassName=__resetStyles("rc5rb6b",null,[".rc5rb6b{list-style-type:none;display:flex;align-items:center;margin:0;padding:0;}"]),useBreadcrumbStyles_unstable=eo=>{const to=useListClassName();return eo.root.className=mergeClasses(breadcrumbClassNames.root,eo.root.className),eo.list&&(eo.list.className=mergeClasses(to,breadcrumbClassNames.list,eo.list.className)),eo};function useBreadcrumbContextValues_unstable(eo){const{size:to}=eo;return reactExports.useMemo(()=>({size:to}),[to])}const Breadcrumb=reactExports.forwardRef((eo,to)=>{const no=useBreadcrumb_unstable(eo,to),io=useBreadcrumbContextValues_unstable(no);return useBreadcrumbStyles_unstable(no),useCustomStyleHook("useBreadcrumbStyles_unstable")(no),renderBreadcrumb_unstable(no,io)});Breadcrumb.displayName="Breadcrumb";const useBreadcrumbDivider_unstable=(eo,to)=>{const{size:no}=useBreadcrumbContext_unstable(),{dir:io}=useFluent(),so=getDividerIcon(no,io);return{components:{root:"li"},root:always(getIntrinsicElementProps("li",{ref:to,"aria-hidden":!0,children:so,...eo}),{elementType:"li"})}},dividerIcons={rtl:{small:reactExports.createElement(ChevronLeft12Regular,null),medium:reactExports.createElement(ChevronLeft16Regular,null),large:reactExports.createElement(ChevronLeft20Regular,null)},ltr:{small:reactExports.createElement(ChevronRight12Regular,null),medium:reactExports.createElement(ChevronRight16Regular,null),large:reactExports.createElement(ChevronRight20Regular,null)}};function getDividerIcon(eo="medium",to){const no=to==="rtl"?dividerIcons.rtl:dividerIcons.ltr;return eo==="small"?no.small:eo==="large"?no.large:no.medium}const renderBreadcrumbDivider_unstable=eo=>jsx$1(eo.root,{}),breadcrumbDividerClassNames={root:"fui-BreadcrumbDivider"},useStyles$l=__styles({root:{mc9l5x:"f22iagw"}},{d:[".f22iagw{display:flex;}"]}),useBreadcrumbDividerStyles_unstable=eo=>{const to=useStyles$l();return eo.root.className=mergeClasses(breadcrumbDividerClassNames.root,to.root,eo.root.className),eo},BreadcrumbDivider=reactExports.forwardRef((eo,to)=>{const no=useBreadcrumbDivider_unstable(eo,to);return useBreadcrumbDividerStyles_unstable(no),useCustomStyleHook("useBreadcrumbDividerStyles_unstable")(no),renderBreadcrumbDivider_unstable(no)});BreadcrumbDivider.displayName="BreadcrumbDivider";const useBreadcrumbItem_unstable=(eo,to)=>{const{size:no}=useBreadcrumbContext_unstable();return{components:{root:"li"},root:always(getIntrinsicElementProps("li",{ref:to,...eo}),{elementType:"li"}),size:no}},renderBreadcrumbItem_unstable=eo=>jsx$1(eo.root,{children:eo.root.children}),breadcrumbItemClassNames={root:"fui-BreadcrumbItem"},useBreadcrumbItemResetStyles=__resetStyles("r1tl60rs",null,[".r1tl60rs{display:flex;align-items:center;color:var(--colorNeutralForeground2);box-sizing:border-box;text-wrap:nowrap;}"]),useBreadcrumbItemStyles_unstable=eo=>{const to=useBreadcrumbItemResetStyles();return eo.root.className=mergeClasses(breadcrumbItemClassNames.root,to,eo.root.className),eo},BreadcrumbItem=reactExports.forwardRef((eo,to)=>{const no=useBreadcrumbItem_unstable(eo,to);return useBreadcrumbItemStyles_unstable(no),useCustomStyleHook("useBreadcrumbItemStyles_unstable")(no),renderBreadcrumbItem_unstable(no)});BreadcrumbItem.displayName="BreadcrumbItem";const useBreadcrumbButton_unstable=(eo,to)=>{const{size:no}=useBreadcrumbContext_unstable(),{current:io=!1,as:so,...ao}=eo,lo=so??eo.href?"a":"button";var uo,ho;return{...useButton_unstable({appearance:"subtle",role:void 0,type:void 0,as:lo,iconPosition:"before","aria-current":io?(uo=eo["aria-current"])!==null&&uo!==void 0?uo:"page":void 0,"aria-disabled":io?(ho=eo["aria-disabled"])!==null&&ho!==void 0?ho:!0:void 0,...ao},to),current:io,size:no}},renderBreadcrumbButton_unstable=eo=>renderButton_unstable(eo),breadcrumbButtonClassNames={root:"fui-BreadcrumbButton",icon:"fui-BreadcrumbButton__icon"},useIconStyles=__styles({base:{Be2twd7:"fsj74e5",Bqenvij:"f1qfv4wv",Bg96gwp:"f15xapk4",a9b677:"f17j33op",t21cq0:["fm0x6gh","fbyavb5"]},small:{u3h8gg:"f1qfi7kw",Biu6dll:"f1876atl"},medium:{u3h8gg:"f1h9446d",Biu6dll:"f10xfswh"},large:{u3h8gg:"f5hcofs",Biu6dll:"f1a6v6zl"}},{d:[".fsj74e5{font-size:var(--fui-Breadcrumb--icon-size);}",".f1qfv4wv{height:var(--fui-Breadcrumb--icon-size);}",".f15xapk4{line-height:var(--fui-Breadcrumb--icon-line-height);}",".f17j33op{width:var(--fui-Breadcrumb--icon-size);}",".fm0x6gh{margin-right:var(--spacingHorizontalXS);}",".fbyavb5{margin-left:var(--spacingHorizontalXS);}",".f1qfi7kw{--fui-Breadcrumb--icon-size:12px;}",".f1876atl{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase200);}",".f1h9446d{--fui-Breadcrumb--icon-size:16px;}",".f10xfswh{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase400);}",".f5hcofs{--fui-Breadcrumb--icon-size:20px;}",".f1a6v6zl{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase600);}"]}),useStyles$k=__styles({root:{Bf4jedk:"f18p0k4z",j4b8c3:"fv6wr3j",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},small:{Bqenvij:"frvgh55",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f16k8034",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1angvds",uwmqm3:["fk8j09s","fdw0yi8"]},medium:{Bqenvij:"f1d2rq10",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f16k8034",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1angvds",uwmqm3:["fk8j09s","fdw0yi8"]},large:{Bqenvij:"fbhnoac",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f17mpqex",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"fdvome7",uwmqm3:["f1f5gg8d","f1vdfbxk"]},current:{Jwef8y:"f9ql6rf",Bi91k9c:"f3p8bqa",eoavqd:"f14w7a5u",Bbdnnc7:"f1irjp3o",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",iro3zm:"f3h1zc4",B2d53fq:"f1xkgyln",c3iz72:"f17wbbfx",x3br3k:"fofxw0a",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",Bszkowt:"ff24m",Dyrjrp:"ft5r8e9",ezr58z:"f1cbpfqp",nhk3du:"f1motppv",Bfrek18:"fi9vkhg",G209fr:"f1fg3nnv"},currentSmall:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm"},currentMedium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},currentLarge:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"}},{d:[".f18p0k4z{min-width:unset;}",".fv6wr3j{text-wrap:nowrap;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".frvgh55{height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f16k8034{padding-top:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1angvds{padding-bottom:var(--spacingHorizontalSNudge);}",".f1d2rq10{height:32px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fbhnoac{height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f17mpqex{padding-top:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdvome7{padding-bottom:var(--spacingHorizontalS);}",".ff24m:disabled{background-color:var(--colorTransparentBackground);}",".ft5r8e9:disabled{color:var(--colorNeutralForeground2);}",".f1cbpfqp:disabled{cursor:auto;}",".f1motppv:disabled .fui-Button__icon{color:unset;}",".fi9vkhg:disabled .fui-Icon-filled{display:none;}",".f1fg3nnv:disabled .fui-Icon-regular{display:inline;}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],h:[".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".f14w7a5u:hover{cursor:auto;}",".f1irjp3o:hover .fui-Button__icon{color:unset;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1xkgyln:hover:active{color:var(--colorNeutralForeground2);}",".f17wbbfx:hover:active{cursor:auto;}",".fofxw0a:hover:active .fui-Button__icon{color:unset;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}"]}),useBreadcrumbButtonStyles_unstable=eo=>{const to=useStyles$k(),no=useIconStyles(),io={small:to.currentSmall,medium:to.currentMedium,large:to.currentLarge};return eo.root.className=mergeClasses(breadcrumbButtonClassNames.root,to[eo.size],to.root,eo.current&&io[eo.size],eo.current&&to.current,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(no.base,no[eo.size],eo.icon.className)),useButtonStyles_unstable(eo),eo},BreadcrumbButton=reactExports.forwardRef((eo,to)=>{const no=useBreadcrumbButton_unstable(eo,to);return useBreadcrumbButtonStyles_unstable(no),useCustomStyleHook("useBreadcrumbButtonStyles_unstable")(no),renderBreadcrumbButton_unstable(no)});BreadcrumbButton.displayName="BreadcrumbButton";var axios$1={exports:{}},bind$2=function(to,no){return function(){for(var so=new Array(arguments.length),ao=0;ao"u"}function isBuffer$6(eo){return eo!==null&&!isUndefined$1(eo)&&eo.constructor!==null&&!isUndefined$1(eo.constructor)&&typeof eo.constructor.isBuffer=="function"&&eo.constructor.isBuffer(eo)}function isArrayBuffer(eo){return toString$7.call(eo)==="[object ArrayBuffer]"}function isFormData(eo){return typeof FormData<"u"&&eo instanceof FormData}function isArrayBufferView(eo){var to;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?to=ArrayBuffer.isView(eo):to=eo&&eo.buffer&&eo.buffer instanceof ArrayBuffer,to}function isString$1(eo){return typeof eo=="string"}function isNumber$1(eo){return typeof eo=="number"}function isObject$j(eo){return eo!==null&&typeof eo=="object"}function isPlainObject$3(eo){if(toString$7.call(eo)!=="[object Object]")return!1;var to=Object.getPrototypeOf(eo);return to===null||to===Object.prototype}function isDate(eo){return toString$7.call(eo)==="[object Date]"}function isFile(eo){return toString$7.call(eo)==="[object File]"}function isBlob(eo){return toString$7.call(eo)==="[object Blob]"}function isFunction$8(eo){return toString$7.call(eo)==="[object Function]"}function isStream(eo){return isObject$j(eo)&&isFunction$8(eo.pipe)}function isURLSearchParams(eo){return typeof URLSearchParams<"u"&&eo instanceof URLSearchParams}function trim$2(eo){return eo.trim?eo.trim():eo.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach$1(eo,to){if(!(eo===null||typeof eo>"u"))if(typeof eo!="object"&&(eo=[eo]),isArray$i(eo))for(var no=0,io=eo.length;no"u"||(utils$a.isArray(ho)?go=go+"[]":ho=[ho],utils$a.forEach(ho,function(yo){utils$a.isDate(yo)?yo=yo.toISOString():utils$a.isObject(yo)&&(yo=JSON.stringify(yo)),ao.push(encode$1(go)+"="+encode$1(yo))}))}),so=ao.join("&")}if(so){var lo=to.indexOf("#");lo!==-1&&(to=to.slice(0,lo)),to+=(to.indexOf("?")===-1?"?":"&")+so}return to},utils$9=utils$b;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(to,no,io){return this.handlers.push({fulfilled:to,rejected:no,synchronous:io?io.synchronous:!1,runWhen:io?io.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(to){this.handlers[to]&&(this.handlers[to]=null)};InterceptorManager$1.prototype.forEach=function(to){utils$9.forEach(this.handlers,function(io){io!==null&&to(io)})};var InterceptorManager_1=InterceptorManager$1,utils$8=utils$b,normalizeHeaderName$1=function(to,no){utils$8.forEach(to,function(so,ao){ao!==no&&ao.toUpperCase()===no.toUpperCase()&&(to[no]=so,delete to[ao])})},enhanceError$1=function(to,no,io,so,ao){return to.config=no,io&&(to.code=io),to.request=so,to.response=ao,to.isAxiosError=!0,to.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}},to},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var eo=enhanceError$1;return createError=function(no,io,so,ao,lo){var uo=new Error(no);return eo(uo,io,so,ao,lo)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var eo=requireCreateError();return settle=function(no,io,so){var ao=so.config.validateStatus;!so.status||!ao||ao(so.status)?no(so):io(eo("Request failed with status code "+so.status,so.config,null,so.request,so))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var eo=utils$b;return cookies=eo.isStandardBrowserEnv()?function(){return{write:function(io,so,ao,lo,uo,ho){var go=[];go.push(io+"="+encodeURIComponent(so)),eo.isNumber(ao)&&go.push("expires="+new Date(ao).toGMTString()),eo.isString(lo)&&go.push("path="+lo),eo.isString(uo)&&go.push("domain="+uo),ho===!0&&go.push("secure"),document.cookie=go.join("; ")},read:function(io){var so=document.cookie.match(new RegExp("(^|;\\s*)("+io+")=([^;]*)"));return so?decodeURIComponent(so[3]):null},remove:function(io){this.write(io,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(to){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(to)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(to,no){return no?to.replace(/\/+$/,"")+"/"+no.replace(/^\/+/,""):to}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var eo=requireIsAbsoluteURL(),to=requireCombineURLs();return buildFullPath=function(io,so){return io&&!eo(so)?to(io,so):so},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var eo=utils$b,to=["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"];return parseHeaders=function(io){var so={},ao,lo,uo;return io&&eo.forEach(io.split(` +`),function(go){if(uo=go.indexOf(":"),ao=eo.trim(go.substr(0,uo)).toLowerCase(),lo=eo.trim(go.substr(uo+1)),ao){if(so[ao]&&to.indexOf(ao)>=0)return;ao==="set-cookie"?so[ao]=(so[ao]?so[ao]:[]).concat([lo]):so[ao]=so[ao]?so[ao]+", "+lo:lo}}),so},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var eo=utils$b;return isURLSameOrigin=eo.isStandardBrowserEnv()?function(){var no=/(msie|trident)/i.test(navigator.userAgent),io=document.createElement("a"),so;function ao(lo){var uo=lo;return no&&(io.setAttribute("href",uo),uo=io.href),io.setAttribute("href",uo),{href:io.href,protocol:io.protocol?io.protocol.replace(/:$/,""):"",host:io.host,search:io.search?io.search.replace(/^\?/,""):"",hash:io.hash?io.hash.replace(/^#/,""):"",hostname:io.hostname,port:io.port,pathname:io.pathname.charAt(0)==="/"?io.pathname:"/"+io.pathname}}return so=ao(window.location.href),function(uo){var ho=eo.isString(uo)?ao(uo):uo;return ho.protocol===so.protocol&&ho.host===so.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var eo=utils$b,to=requireSettle(),no=requireCookies(),io=buildURL$1,so=requireBuildFullPath(),ao=requireParseHeaders(),lo=requireIsURLSameOrigin(),uo=requireCreateError();return xhr=function(go){return new Promise(function(yo,So){var _o=go.data,ko=go.headers,Co=go.responseType;eo.isFormData(_o)&&delete ko["Content-Type"];var $o=new XMLHttpRequest;if(go.auth){var Ro=go.auth.username||"",Oo=go.auth.password?unescape(encodeURIComponent(go.auth.password)):"";ko.Authorization="Basic "+btoa(Ro+":"+Oo)}var No=so(go.baseURL,go.url);$o.open(go.method.toUpperCase(),io(No,go.params,go.paramsSerializer),!0),$o.timeout=go.timeout;function Mo(){if($o){var Fo="getAllResponseHeaders"in $o?ao($o.getAllResponseHeaders()):null,Lo=!Co||Co==="text"||Co==="json"?$o.responseText:$o.response,Go={data:Lo,status:$o.status,statusText:$o.statusText,headers:Fo,config:go,request:$o};to(yo,So,Go),$o=null}}if("onloadend"in $o?$o.onloadend=Mo:$o.onreadystatechange=function(){!$o||$o.readyState!==4||$o.status===0&&!($o.responseURL&&$o.responseURL.indexOf("file:")===0)||setTimeout(Mo)},$o.onabort=function(){$o&&(So(uo("Request aborted",go,"ECONNABORTED",$o)),$o=null)},$o.onerror=function(){So(uo("Network Error",go,null,$o)),$o=null},$o.ontimeout=function(){var Lo="timeout of "+go.timeout+"ms exceeded";go.timeoutErrorMessage&&(Lo=go.timeoutErrorMessage),So(uo(Lo,go,go.transitional&&go.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",$o)),$o=null},eo.isStandardBrowserEnv()){var Bo=(go.withCredentials||lo(No))&&go.xsrfCookieName?no.read(go.xsrfCookieName):void 0;Bo&&(ko[go.xsrfHeaderName]=Bo)}"setRequestHeader"in $o&&eo.forEach(ko,function(Lo,Go){typeof _o>"u"&&Go.toLowerCase()==="content-type"?delete ko[Go]:$o.setRequestHeader(Go,Lo)}),eo.isUndefined(go.withCredentials)||($o.withCredentials=!!go.withCredentials),Co&&Co!=="json"&&($o.responseType=go.responseType),typeof go.onDownloadProgress=="function"&&$o.addEventListener("progress",go.onDownloadProgress),typeof go.onUploadProgress=="function"&&$o.upload&&$o.upload.addEventListener("progress",go.onUploadProgress),go.cancelToken&&go.cancelToken.promise.then(function(Lo){$o&&($o.abort(),So(Lo),$o=null)}),_o||(_o=null),$o.send(_o)})},xhr}var utils$7=utils$b,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(eo,to){!utils$7.isUndefined(eo)&&utils$7.isUndefined(eo["Content-Type"])&&(eo["Content-Type"]=to)}function getDefaultAdapter(){var eo;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(eo=requireXhr()),eo}function stringifySafely(eo,to,no){if(utils$7.isString(eo))try{return(to||JSON.parse)(eo),utils$7.trim(eo)}catch(io){if(io.name!=="SyntaxError")throw io}return(no||JSON.stringify)(eo)}var defaults$o={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function(to,no){return normalizeHeaderName(no,"Accept"),normalizeHeaderName(no,"Content-Type"),utils$7.isFormData(to)||utils$7.isArrayBuffer(to)||utils$7.isBuffer(to)||utils$7.isStream(to)||utils$7.isFile(to)||utils$7.isBlob(to)?to:utils$7.isArrayBufferView(to)?to.buffer:utils$7.isURLSearchParams(to)?(setContentTypeIfUnset(no,"application/x-www-form-urlencoded;charset=utf-8"),to.toString()):utils$7.isObject(to)||no&&no["Content-Type"]==="application/json"?(setContentTypeIfUnset(no,"application/json"),stringifySafely(to)):to}],transformResponse:[function(to){var no=this.transitional,io=no&&no.silentJSONParsing,so=no&&no.forcedJSONParsing,ao=!io&&this.responseType==="json";if(ao||so&&utils$7.isString(to)&&to.length)try{return JSON.parse(to)}catch(lo){if(ao)throw lo.name==="SyntaxError"?enhanceError(lo,this,"E_JSON_PARSE"):lo}return to}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(to){return to>=200&&to<300}};defaults$o.headers={common:{Accept:"application/json, text/plain, */*"}};utils$7.forEach(["delete","get","head"],function(to){defaults$o.headers[to]={}});utils$7.forEach(["post","put","patch"],function(to){defaults$o.headers[to]=utils$7.merge(DEFAULT_CONTENT_TYPE)});var defaults_1$1=defaults$o,utils$6=utils$b,defaults$n=defaults_1$1,transformData$1=function(to,no,io){var so=this||defaults$n;return utils$6.forEach(io,function(lo){to=lo.call(so,to,no)}),to},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(to){return!!(to&&to.__CANCEL__)}),isCancel$1}var utils$5=utils$b,transformData=transformData$1,isCancel=requireIsCancel(),defaults$m=defaults_1$1;function throwIfCancellationRequested(eo){eo.cancelToken&&eo.cancelToken.throwIfRequested()}var dispatchRequest$1=function(to){throwIfCancellationRequested(to),to.headers=to.headers||{},to.data=transformData.call(to,to.data,to.headers,to.transformRequest),to.headers=utils$5.merge(to.headers.common||{},to.headers[to.method]||{},to.headers),utils$5.forEach(["delete","get","head","post","put","patch","common"],function(so){delete to.headers[so]});var no=to.adapter||defaults$m.adapter;return no(to).then(function(so){return throwIfCancellationRequested(to),so.data=transformData.call(to,so.data,so.headers,to.transformResponse),so},function(so){return isCancel(so)||(throwIfCancellationRequested(to),so&&so.response&&(so.response.data=transformData.call(to,so.response.data,so.response.headers,to.transformResponse))),Promise.reject(so)})},utils$4=utils$b,mergeConfig$2=function(to,no){no=no||{};var io={},so=["url","method","data"],ao=["headers","auth","proxy","params"],lo=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],uo=["validateStatus"];function ho(So,_o){return utils$4.isPlainObject(So)&&utils$4.isPlainObject(_o)?utils$4.merge(So,_o):utils$4.isPlainObject(_o)?utils$4.merge({},_o):utils$4.isArray(_o)?_o.slice():_o}function go(So){utils$4.isUndefined(no[So])?utils$4.isUndefined(to[So])||(io[So]=ho(void 0,to[So])):io[So]=ho(to[So],no[So])}utils$4.forEach(so,function(_o){utils$4.isUndefined(no[_o])||(io[_o]=ho(void 0,no[_o]))}),utils$4.forEach(ao,go),utils$4.forEach(lo,function(_o){utils$4.isUndefined(no[_o])?utils$4.isUndefined(to[_o])||(io[_o]=ho(void 0,to[_o])):io[_o]=ho(void 0,no[_o])}),utils$4.forEach(uo,function(_o){_o in no?io[_o]=ho(to[_o],no[_o]):_o in to&&(io[_o]=ho(void 0,to[_o]))});var mo=so.concat(ao).concat(lo).concat(uo),yo=Object.keys(to).concat(Object.keys(no)).filter(function(_o){return mo.indexOf(_o)===-1});return utils$4.forEach(yo,go),io};const name$1="axios",version$5="0.21.4",description="Promise based HTTP client for the browser and node.js",main$2="index.js",scripts={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository={type:"git",url:"https://github.com/axios/axios.git"},keywords$1=["xhr","http","ajax","promise","node"],author="Matt Zabriskie",license="MIT",bugs={url:"https://github.com/axios/axios/issues"},homepage="https://axios-http.com",devDependencies={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser$2={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr="dist/axios.min.js",unpkg="dist/axios.min.js",typings="./index.d.ts",dependencies={"follow-redirects":"^1.14.0"},bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}],require$$0={name:name$1,version:version$5,description,main:main$2,scripts,repository,keywords:keywords$1,author,license,bugs,homepage,devDependencies,browser:browser$2,jsdelivr,unpkg,typings,dependencies,bundlesize};var pkg=require$$0,validators$3={};["object","boolean","number","function","string","symbol"].forEach(function(eo,to){validators$3[eo]=function(io){return typeof io===eo||"a"+(to<1?"n ":" ")+eo}});var deprecatedWarnings={},currentVerArr=pkg.version.split(".");function isOlderVersion(eo,to){for(var no=to?to.split("."):currentVerArr,io=eo.split("."),so=0;so<3;so++){if(no[so]>io[so])return!0;if(no[so]0;){var ao=io[so],lo=to[ao];if(lo){var uo=eo[ao],ho=uo===void 0||lo(uo,ao,eo);if(ho!==!0)throw new TypeError("option "+ao+" must be "+ho);continue}if(no!==!0)throw Error("Unknown option "+ao)}}var validator$1={isOlderVersion,assertOptions,validators:validators$3},utils$3=utils$b,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators$2=validator.validators;function Axios$1(eo){this.defaults=eo,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(to){typeof to=="string"?(to=arguments[1]||{},to.url=arguments[0]):to=to||{},to=mergeConfig$1(this.defaults,to),to.method?to.method=to.method.toLowerCase():this.defaults.method?to.method=this.defaults.method.toLowerCase():to.method="get";var no=to.transitional;no!==void 0&&validator.assertOptions(no,{silentJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),forcedJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),clarifyTimeoutError:validators$2.transitional(validators$2.boolean,"1.0.0")},!1);var io=[],so=!0;this.interceptors.request.forEach(function(So){typeof So.runWhen=="function"&&So.runWhen(to)===!1||(so=so&&So.synchronous,io.unshift(So.fulfilled,So.rejected))});var ao=[];this.interceptors.response.forEach(function(So){ao.push(So.fulfilled,So.rejected)});var lo;if(!so){var uo=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(uo,io),uo=uo.concat(ao),lo=Promise.resolve(to);uo.length;)lo=lo.then(uo.shift(),uo.shift());return lo}for(var ho=to;io.length;){var go=io.shift(),mo=io.shift();try{ho=go(ho)}catch(yo){mo(yo);break}}try{lo=dispatchRequest(ho)}catch(yo){return Promise.reject(yo)}for(;ao.length;)lo=lo.then(ao.shift(),ao.shift());return lo};Axios$1.prototype.getUri=function(to){return to=mergeConfig$1(this.defaults,to),buildURL(to.url,to.params,to.paramsSerializer).replace(/^\?/,"")};utils$3.forEach(["delete","get","head","options"],function(to){Axios$1.prototype[to]=function(no,io){return this.request(mergeConfig$1(io||{},{method:to,url:no,data:(io||{}).data}))}});utils$3.forEach(["post","put","patch"],function(to){Axios$1.prototype[to]=function(no,io,so){return this.request(mergeConfig$1(so||{},{method:to,url:no,data:io}))}});var Axios_1=Axios$1,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function eo(to){this.message=to}return eo.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},eo.prototype.__CANCEL__=!0,Cancel_1=eo,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var eo=requireCancel();function to(no){if(typeof no!="function")throw new TypeError("executor must be a function.");var io;this.promise=new Promise(function(lo){io=lo});var so=this;no(function(lo){so.reason||(so.reason=new eo(lo),io(so.reason))})}return to.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},to.source=function(){var io,so=new to(function(lo){io=lo});return{token:so,cancel:io}},CancelToken_1=to,CancelToken_1}var spread$1,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread$1=function(to){return function(io){return to.apply(null,io)}}),spread$1}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(to){return typeof to=="object"&&to.isAxiosError===!0}),isAxiosError}var utils$2=utils$b,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults$l=defaults_1$1;function createInstance(eo){var to=new Axios(eo),no=bind(Axios.prototype.request,to);return utils$2.extend(no,Axios.prototype,to),utils$2.extend(no,to),no}var axios=createInstance(defaults$l);axios.Axios=Axios;axios.create=function(to){return createInstance(mergeConfig(axios.defaults,to))};axios.Cancel=requireCancel();axios.CancelToken=requireCancelToken();axios.isCancel=requireIsCancel();axios.all=function(to){return Promise.all(to)};axios.spread=requireSpread();axios.isAxiosError=requireIsAxiosError();axios$1.exports=axios;axios$1.exports.default=axios;var rngBrowser={exports:{}},getRandomValues$1=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues$1){var rnds8$1=new Uint8Array(16);rngBrowser.exports=function(){return getRandomValues$1(rnds8$1),rnds8$1}}else{var rnds=new Array(16);rngBrowser.exports=function(){for(var to=0,no;to<16;to++)to&3||(no=Math.random()*4294967296),rnds[to]=no>>>((to&3)<<3)&255;return rnds}}var rngBrowserExports=rngBrowser.exports,byteToHex$2=[];for(var i$8=0;i$8<256;++i$8)byteToHex$2[i$8]=(i$8+256).toString(16).substr(1);function bytesToUuid$3(eo,to){var no=to||0,io=byteToHex$2;return[io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]]].join("")}var bytesToUuid_1=bytesToUuid$3,rng$2=rngBrowserExports,bytesToUuid$2=bytesToUuid_1,_nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1$2(eo,to,no){var io=to&&no||0,so=to||[];eo=eo||{};var ao=eo.node||_nodeId,lo=eo.clockseq!==void 0?eo.clockseq:_clockseq;if(ao==null||lo==null){var uo=rng$2();ao==null&&(ao=_nodeId=[uo[0]|1,uo[1],uo[2],uo[3],uo[4],uo[5]]),lo==null&&(lo=_clockseq=(uo[6]<<8|uo[7])&16383)}var ho=eo.msecs!==void 0?eo.msecs:new Date().getTime(),go=eo.nsecs!==void 0?eo.nsecs:_lastNSecs+1,mo=ho-_lastMSecs+(go-_lastNSecs)/1e4;if(mo<0&&eo.clockseq===void 0&&(lo=lo+1&16383),(mo<0||ho>_lastMSecs)&&eo.nsecs===void 0&&(go=0),go>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=ho,_lastNSecs=go,_clockseq=lo,ho+=122192928e5;var yo=((ho&268435455)*1e4+go)%4294967296;so[io++]=yo>>>24&255,so[io++]=yo>>>16&255,so[io++]=yo>>>8&255,so[io++]=yo&255;var So=ho/4294967296*1e4&268435455;so[io++]=So>>>8&255,so[io++]=So&255,so[io++]=So>>>24&15|16,so[io++]=So>>>16&255,so[io++]=lo>>>8|128,so[io++]=lo&255;for(var _o=0;_o<6;++_o)so[io+_o]=ao[_o];return to||bytesToUuid$2(so)}var v1_1=v1$2,rng$1=rngBrowserExports,bytesToUuid$1=bytesToUuid_1;function v4$2(eo,to,no){var io=to&&no||0;typeof eo=="string"&&(to=eo==="binary"?new Array(16):null,eo=null),eo=eo||{};var so=eo.random||(eo.rng||rng$1)();if(so[6]=so[6]&15|64,so[8]=so[8]&63|128,to)for(var ao=0;ao<16;++ao)to[io+ao]=so[ao];return to||bytesToUuid$1(so)}var v4_1=v4$2,v1$1=v1_1,v4$1=v4_1,uuid$1=v4$1;uuid$1.v1=v1$1;uuid$1.v4=v4$1;var uuid_1=uuid$1;const BASELINE_VARIANT_ID="variant_0",DEFAULT_CHAT_INPUT_NAME="chat_input",DEFAULT_CHAT_HISTORY_NAME="chat_history",DEFAULT_CHAT_OUTPUT_NAME="chat_output";var FlowFeatures=(eo=>(eo.OpenCodeFileInNode="OpenCodeFileInNode",eo.ShowWarningIconOnNode="ShowWarningIconOnNode",eo))(FlowFeatures||{}),ConnectionType=(eo=>(eo.OpenAI="OpenAI",eo.AzureOpenAI="AzureOpenAI",eo.Serp="Serp",eo.Bing="Bing",eo.AzureContentModerator="AzureContentModerator",eo.Custom="Custom",eo.AzureContentSafety="AzureContentSafety",eo.CognitiveSearch="CognitiveSearch",eo.SubstrateLLM="SubstrateLLM",eo.Pinecone="Pinecone",eo.Qdrant="Qdrant",eo.Weaviate="Weaviate",eo.FormRecognizer="FormRecognizer",eo.Serverless="Serverless",eo))(ConnectionType||{}),FlowType=(eo=>(eo.Default="Default",eo.Evaluation="Evaluation",eo.Chat="Chat",eo.Rag="Rag",eo))(FlowType||{}),InputType=(eo=>(eo.default="default",eo.uionly_hidden="uionly_hidden",eo))(InputType||{}),Orientation$1=(eo=>(eo.Horizontal="Horizontal",eo.Vertical="Vertical",eo))(Orientation$1||{}),ToolType=(eo=>(eo.llm="llm",eo.python="python",eo.action="action",eo.prompt="prompt",eo.custom_llm="custom_llm",eo.csharp="csharp",eo.typescript="typescript",eo))(ToolType||{}),ValueType=(eo=>(eo.int="int",eo.double="double",eo.bool="bool",eo.string="string",eo.secret="secret",eo.prompt_template="prompt_template",eo.object="object",eo.list="list",eo.BingConnection="BingConnection",eo.OpenAIConnection="OpenAIConnection",eo.AzureOpenAIConnection="AzureOpenAIConnection",eo.AzureContentModeratorConnection="AzureContentModeratorConnection",eo.CustomConnection="CustomConnection",eo.AzureContentSafetyConnection="AzureContentSafetyConnection",eo.SerpConnection="SerpConnection",eo.CognitiveSearchConnection="CognitiveSearchConnection",eo.SubstrateLLMConnection="SubstrateLLMConnection",eo.PineconeConnection="PineconeConnection",eo.QdrantConnection="QdrantConnection",eo.WeaviateConnection="WeaviateConnection",eo.function_list="function_list",eo.function_str="function_str",eo.FormRecognizerConnection="FormRecognizerConnection",eo.file_path="file_path",eo.image="image",eo.assistant_definition="assistant_definition",eo.ServerlessConnection="ServerlessConnection",eo))(ValueType||{});const FLOW_INPUT_REF_NAME_FLOW="flow",FLOW_INPUT_REF_NAME_INPUT="inputs",FLOW_INPUT_NODE_NAME="inputs",FLOW_OUTPUT_NODE_NAME="outputs",isFlowInput=eo=>[FLOW_INPUT_REF_NAME_FLOW,FLOW_INPUT_REF_NAME_INPUT].includes(eo),SystemColors=["#637CEF","#E61C99","#00A5AF","#9470BD","#689920","#3487C7","#CA5010","#009B51","#B27C00","#B146C2","#4F6BED","#EE5FB7","#008B94","#D77440","#BA58C9","#3A96DD","#E3008C","#57811B","#C36BD1","#D06228","#6E0811","#C50F1F","#F7630C","#107C10","#094509"];var ValidationErrorType=(eo=>(eo.CircularDependency="CircularDependency",eo.InputDependencyNotFound="InputDependencyNotFound",eo.InputGenerateError="InputGenerateError",eo.InputSelfReference="InputSelfReference",eo.InputEmpty="InputEmpty",eo.InputInvalidType="InputInvalidType",eo.NodeConfigInvalid="NodeConfigInvalid",eo.UnparsedCode="UnparsedCode",eo.EmptyCode="EmptyCode",eo.MissingTool="MissingTool",eo.AutoParseInputError="AutoParseInputError",eo.RuntimeNameEmpty="RuntimeNameEmpty",eo.RuntimeStatusInvalid="RuntimeStatusInvalid",eo))(ValidationErrorType||{}),ChatMessageFrom=(eo=>(eo.System="system",eo.ErrorHandler="error",eo.Chatbot="chatbot",eo.User="user",eo))(ChatMessageFrom||{}),ChatMessageType$1=(eo=>(eo.Text="text",eo.Typing="typing",eo.SessionSplit="session-split",eo))(ChatMessageType$1||{});const convertToBool=eo=>eo==="true"||eo==="True"||eo===!0,basicValueTypeDetector=eo=>Array.isArray(eo)?ValueType.list:typeof eo=="boolean"?ValueType.bool:typeof eo=="string"?ValueType.string:typeof eo=="number"?Number.isInteger(eo)?ValueType.int:ValueType.double:ValueType.object;function valueStringify(eo){if(eo==null)return;switch(basicValueTypeDetector(eo)){case ValueType.string:return eo;case ValueType.int:case ValueType.double:return eo.toString();case ValueType.bool:return eo?"True":"False";case ValueType.object:case ValueType.list:return JSON.stringify(eo);default:return String(eo)}}var lodash$1={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */lodash$1.exports;(function(eo,to){(function(){var no,io="4.17.21",so=200,ao="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",lo="Expected a function",uo="Invalid `variable` option passed into `_.template`",ho="__lodash_hash_undefined__",go=500,mo="__lodash_placeholder__",yo=1,So=2,_o=4,ko=1,Co=2,$o=1,Ro=2,Oo=4,No=8,Mo=16,Bo=32,Po=64,Lo=128,Go=256,Do=512,Uo=30,Ho="...",Yo=800,qo=16,Jo=1,ps=2,Qo=3,hs=1/0,gs=9007199254740991,ys=17976931348623157e292,vs=NaN,ks=4294967295,Os=ks-1,Ts=ks>>>1,Xs=[["ary",Lo],["bind",$o],["bindKey",Ro],["curry",No],["curryRight",Mo],["flip",Do],["partial",Bo],["partialRight",Po],["rearg",Go]],Ws="[object Arguments]",Ps="[object Array]",qs="[object AsyncFunction]",ga="[object Boolean]",Fs="[object Date]",Js="[object DOMException]",Vs="[object Error]",El="[object Function]",yl="[object GeneratorFunction]",Gl="[object Map]",Qs="[object Number]",du="[object Null]",Ol="[object Object]",Fu="[object Promise]",ju="[object Proxy]",F1="[object RegExp]",y1="[object Set]",r1="[object String]",$u="[object Symbol]",Kl="[object Undefined]",Is="[object WeakMap]",Ks="[object WeakSet]",Bs="[object ArrayBuffer]",Ds="[object DataView]",Zs="[object Float32Array]",Cl="[object Float64Array]",ba="[object Int8Array]",fu="[object Int16Array]",Lu="[object Int32Array]",e1="[object Uint8Array]",Gu="[object Uint8ClampedArray]",w1="[object Uint16Array]",Zu="[object Uint32Array]",L1=/\b__p \+= '';/g,K1=/\b(__p \+=) '' \+/g,yp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wp=/&(?:amp|lt|gt|quot|#39);/g,j0=/[&<>"']/g,h0=RegExp(wp.source),cp=RegExp(j0.source),k0=/<%-([\s\S]+?)%>/g,ap=/<%([\s\S]+?)%>/g,x0=/<%=([\s\S]+?)%>/g,b0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P1=/^\w*$/,c1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V0=/[\\^$.*+?()[\]{}|]/g,P0=RegExp(V0.source),up=/^\s+/,Lp=/\s/,Mv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$v=/\{\n\/\* \[wrapped with (.+)\] \*/,Gv=/,? & /,C1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ll=/[()=,{}\[\]\/\s]/,Ul=/\\(\\)?/g,_l=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$l=/\w*$/,Us=/^[-+]0x[0-9a-f]+$/i,Rl=/^0b[01]+$/i,Sl=/^\[object .+?Constructor\]$/,eu=/^0o[0-7]+$/i,_c=/^(?:0|[1-9]\d*)$/,zu=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,N1=/($^)/,K0=/['\n\r\u2028\u2029\\]/g,J0="\\ud800-\\udfff",S1="\\u0300-\\u036f",O1="\\ufe20-\\ufe2f",r0="\\u20d0-\\u20ff",I1=S1+O1+r0,R0="\\u2700-\\u27bf",tu="a-z\\xdf-\\xf6\\xf8-\\xff",T2="\\xac\\xb1\\xd7\\xf7",hu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Z2="\\u2000-\\u206f",r_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",G4="A-Z\\xc0-\\xd6\\xd8-\\xde",bE="\\ufe0e\\ufe0f",hw=T2+hu+Z2+r_,Ay="['’]",NS="["+J0+"]",i_="["+hw+"]",JE="["+I1+"]",_k="\\d+",W4="["+R0+"]",B2="["+tu+"]",DS="[^"+J0+hw+_k+R0+tu+G4+"]",Tw="\\ud83c[\\udffb-\\udfff]",yE="(?:"+JE+"|"+Tw+")",LS="[^"+J0+"]",U4="(?:\\ud83c[\\udde6-\\uddff]){2}",D_="[\\ud800-\\udbff][\\udc00-\\udfff]",K4="["+G4+"]",cC="\\u200d",uC="(?:"+B2+"|"+DS+")",BS="(?:"+K4+"|"+DS+")",q7="(?:"+Ay+"(?:d|ll|m|re|s|t|ve))?",V7="(?:"+Ay+"(?:D|LL|M|RE|S|T|VE))?",fC=yE+"?",t$="["+bE+"]?",dP="(?:"+cC+"(?:"+[LS,U4,D_].join("|")+")"+t$+fC+")*",vM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hP="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ZR=t$+fC+dP,pP="(?:"+[W4,U4,D_].join("|")+")"+ZR,gP="(?:"+[LS+JE+"?",JE,U4,D_,NS].join("|")+")",VA=RegExp(Ay,"g"),mP=RegExp(JE,"g"),dC=RegExp(Tw+"(?="+Tw+")|"+gP+ZR,"g"),JR=RegExp([K4+"?"+B2+"+"+q7+"(?="+[i_,K4,"$"].join("|")+")",BS+"+"+V7+"(?="+[i_,K4+uC,"$"].join("|")+")",K4+"?"+uC+"+"+q7,K4+"+"+V7,hP,vM,_k,pP].join("|"),"g"),A0=RegExp("["+cC+J0+I1+bE+"]"),Y0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rm=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wm=-1,jp={};jp[Zs]=jp[Cl]=jp[ba]=jp[fu]=jp[Lu]=jp[e1]=jp[Gu]=jp[w1]=jp[Zu]=!0,jp[Ws]=jp[Ps]=jp[Bs]=jp[ga]=jp[Ds]=jp[Fs]=jp[Vs]=jp[El]=jp[Gl]=jp[Qs]=jp[Ol]=jp[F1]=jp[y1]=jp[r1]=jp[Is]=!1;var im={};im[Ws]=im[Ps]=im[Bs]=im[Ds]=im[ga]=im[Fs]=im[Zs]=im[Cl]=im[ba]=im[fu]=im[Lu]=im[Gl]=im[Qs]=im[Ol]=im[F1]=im[y1]=im[r1]=im[$u]=im[e1]=im[Gu]=im[w1]=im[Zu]=!0,im[Vs]=im[El]=im[Is]=!1;var i2={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},f2={"&":"&","<":"<",">":">",'"':""","'":"'"},Ox={"&":"&","<":"<",">":">",""":'"',"'":"'"},P5={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},hC=parseFloat,vP=parseInt,G7=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,eO=typeof self=="object"&&self&&self.Object===Object&&self,Ix=G7||eO||Function("return this")(),bP=to&&!to.nodeType&&to,GA=bP&&!0&&eo&&!eo.nodeType&&eo,ZG=GA&&GA.exports===bP,yP=ZG&&G7.process,j5=function(){try{var Bu=GA&&GA.require&&GA.require("util").types;return Bu||yP&&yP.binding&&yP.binding("util")}catch{}}(),JG=j5&&j5.isArrayBuffer,eW=j5&&j5.isDate,tW=j5&&j5.isMap,nW=j5&&j5.isRegExp,rW=j5&&j5.isSet,iW=j5&&j5.isTypedArray;function t5(Bu,$1,h1){switch(h1.length){case 0:return Bu.call($1);case 1:return Bu.call($1,h1[0]);case 2:return Bu.call($1,h1[0],h1[1]);case 3:return Bu.call($1,h1[0],h1[1],h1[2])}return Bu.apply($1,h1)}function bne(Bu,$1,h1,_p){for(var Wm=-1,Ry=Bu==null?0:Bu.length;++Wm-1}function wP(Bu,$1,h1){for(var _p=-1,Wm=Bu==null?0:Bu.length;++_p-1;);return h1}function dW(Bu,$1){for(var h1=Bu.length;h1--&&W7($1,Bu[h1],0)>-1;);return h1}function Cne(Bu,$1){for(var h1=Bu.length,_p=0;h1--;)Bu[h1]===$1&&++_p;return _p}var $ne=EP(i2),Ane=EP(f2);function Rne(Bu){return"\\"+P5[Bu]}function One(Bu,$1){return Bu==null?no:Bu[$1]}function U7(Bu){return A0.test(Bu)}function Ine(Bu){return Y0.test(Bu)}function Nne(Bu){for(var $1,h1=[];!($1=Bu.next()).done;)h1.push($1.value);return h1}function $P(Bu){var $1=-1,h1=Array(Bu.size);return Bu.forEach(function(_p,Wm){h1[++$1]=[Wm,_p]}),h1}function hW(Bu,$1){return function(h1){return Bu($1(h1))}}function i$(Bu,$1){for(var h1=-1,_p=Bu.length,Wm=0,Ry=[];++h1<_p;){var Nx=Bu[h1];(Nx===$1||Nx===mo)&&(Bu[h1]=mo,Ry[Wm++]=h1)}return Ry}function wM(Bu){var $1=-1,h1=Array(Bu.size);return Bu.forEach(function(_p){h1[++$1]=_p}),h1}function Mne(Bu){var $1=-1,h1=Array(Bu.size);return Bu.forEach(function(_p){h1[++$1]=[_p,_p]}),h1}function Dne(Bu,$1,h1){for(var _p=h1-1,Wm=Bu.length;++_p-1}function wre(jo,Ko){var xs=this.__data__,Ms=lO(xs,jo);return Ms<0?(++this.size,xs.push([jo,Ko])):xs[Ms][1]=Ko,this}pC.prototype.clear=mre,pC.prototype.delete=vre,pC.prototype.get=bre,pC.prototype.has=yre,pC.prototype.set=wre;function gC(jo){var Ko=-1,xs=jo==null?0:jo.length;for(this.clear();++Ko=Ko?jo:Ko)),jo}function V5(jo,Ko,xs,Ms,xa,Dl){var su,Cu=Ko&yo,Vu=Ko&So,B1=Ko&_o;if(xs&&(su=xa?xs(jo,Ms,xa,Dl):xs(jo)),su!==no)return su;if(!pw(jo))return jo;var M1=Zm(jo);if(M1){if(su=wie(jo),!Cu)return wE(jo,su)}else{var Z1=B_(jo),L0=Z1==El||Z1==yl;if(f$(jo))return QW(jo,Cu);if(Z1==Ol||Z1==Ws||L0&&!xa){if(su=Vu||L0?{}:gU(jo),!Cu)return Vu?uie(jo,CW(su,jo)):cie(jo,MP(su,jo))}else{if(!im[Z1])return xa?jo:{};su=xie(jo,Z1,Cu)}}Dl||(Dl=new X4);var pp=Dl.get(jo);if(pp)return pp;Dl.set(jo,su),HU(jo)?jo.forEach(function(um){su.add(V5(um,Ko,xs,um,jo,Dl))}):jU(jo)&&jo.forEach(function(um,Jm){su.set(Jm,V5(um,Ko,xs,Jm,jo,Dl))});var xm=B1?Vu?tz:ez:Vu?SE:rS,mv=M1?no:xm(jo);return z5(mv||jo,function(um,Jm){mv&&(Jm=um,um=jo[Jm]),e8(su,Jm,V5(um,Ko,xs,Jm,jo,Dl))}),su}function Mre(jo){var Ko=rS(jo);return function(xs){return $W(xs,jo,Ko)}}function $W(jo,Ko,xs){var Ms=xs.length;if(jo==null)return!Ms;for(jo=d2(jo);Ms--;){var xa=xs[Ms],Dl=Ko[xa],su=jo[xa];if(su===no&&!(xa in jo)||!Dl(su))return!1}return!0}function AW(jo,Ko,xs){if(typeof jo!="function")throw new H5(lo);return mO(function(){jo.apply(no,xs)},Ko)}function cO(jo,Ko,xs,Ms){var xa=-1,Dl=bM,su=!0,Cu=jo.length,Vu=[],B1=Ko.length;if(!Cu)return Vu;xs&&(Ko=J2(Ko,n5(xs))),Ms?(Dl=wP,su=!1):Ko.length>=so&&(Dl=tO,su=!1,Ko=new KA(Ko));e:for(;++xaxa?0:xa+xs),Ms=Ms===no||Ms>xa?xa:uv(Ms),Ms<0&&(Ms+=xa),Ms=xs>Ms?0:VU(Ms);xs0&&xs(Cu)?Ko>1?FS(Cu,Ko-1,xs,Ms,xa):r$(xa,Cu):Ms||(xa[xa.length]=Cu)}return xa}var LP=rU(),IW=rU(!0);function rT(jo,Ko){return jo&&LP(jo,Ko,rS)}function BP(jo,Ko){return jo&&IW(jo,Ko,rS)}function MM(jo,Ko){return n$(Ko,function(xs){return xC(jo[xs])})}function XA(jo,Ko){Ko=l$(Ko,jo);for(var xs=0,Ms=Ko.length;jo!=null&&xsKo}function Bre(jo,Ko){return jo!=null&&Hy.call(jo,Ko)}function Fre(jo,Ko){return jo!=null&&Ko in d2(jo)}function Pre(jo,Ko,xs){return jo>=o_(Ko,xs)&&jo=120&&M1.length>=120)?new KA(su&&M1):no}M1=jo[0];var Z1=-1,L0=Cu[0];e:for(;++Z1-1;)Cu!==jo&&CM.call(Cu,Vu,1),CM.call(jo,Vu,1);return jo}function qW(jo,Ko){for(var xs=jo?Ko.length:0,Ms=xs-1;xs--;){var xa=Ko[xs];if(xs==Ms||xa!==Dl){var Dl=xa;wC(xa)?CM.call(jo,xa,1):UP(jo,xa)}}return jo}function VP(jo,Ko){return jo+RM(xW()*(Ko-jo+1))}function Zre(jo,Ko,xs,Ms){for(var xa=-1,Dl=Mx(AM((Ko-jo)/(xs||1)),0),su=h1(Dl);Dl--;)su[Ms?Dl:++xa]=jo,jo+=xs;return su}function GP(jo,Ko){var xs="";if(!jo||Ko<1||Ko>gs)return xs;do Ko%2&&(xs+=jo),Ko=RM(Ko/2),Ko&&(jo+=jo);while(Ko);return xs}function yv(jo,Ko){return az(bU(jo,Ko,o5),jo+"")}function Jre(jo){return TW(o8(jo))}function eie(jo,Ko){var xs=o8(jo);return UM(xs,YA(Ko,0,xs.length))}function hO(jo,Ko,xs,Ms){if(!pw(jo))return jo;Ko=l$(Ko,jo);for(var xa=-1,Dl=Ko.length,su=Dl-1,Cu=jo;Cu!=null&&++xaxa?0:xa+Ko),xs=xs>xa?xa:xs,xs<0&&(xs+=xa),xa=Ko>xs?0:xs-Ko>>>0,Ko>>>=0;for(var Dl=h1(xa);++Ms>>1,su=jo[Dl];su!==null&&!i5(su)&&(xs?su<=Ko:su=so){var B1=Ko?null:gie(jo);if(B1)return wM(B1);su=!1,xa=tO,Vu=new KA}else Vu=Ko?[]:Cu;e:for(;++Ms=Ms?jo:G5(jo,Ko,xs)}var XW=Kne||function(jo){return Ix.clearTimeout(jo)};function QW(jo,Ko){if(Ko)return jo.slice();var xs=jo.length,Ms=mW?mW(xs):new jo.constructor(xs);return jo.copy(Ms),Ms}function QP(jo){var Ko=new jo.constructor(jo.byteLength);return new kM(Ko).set(new kM(jo)),Ko}function oie(jo,Ko){var xs=Ko?QP(jo.buffer):jo.buffer;return new jo.constructor(xs,jo.byteOffset,jo.byteLength)}function sie(jo){var Ko=new jo.constructor(jo.source,$l.exec(jo));return Ko.lastIndex=jo.lastIndex,Ko}function aie(jo){return aO?d2(aO.call(jo)):{}}function ZW(jo,Ko){var xs=Ko?QP(jo.buffer):jo.buffer;return new jo.constructor(xs,jo.byteOffset,jo.length)}function JW(jo,Ko){if(jo!==Ko){var xs=jo!==no,Ms=jo===null,xa=jo===jo,Dl=i5(jo),su=Ko!==no,Cu=Ko===null,Vu=Ko===Ko,B1=i5(Ko);if(!Cu&&!B1&&!Dl&&jo>Ko||Dl&&su&&Vu&&!Cu&&!B1||Ms&&su&&Vu||!xs&&Vu||!xa)return 1;if(!Ms&&!Dl&&!B1&&jo=Cu)return Vu;var B1=xs[Ms];return Vu*(B1=="desc"?-1:1)}}return jo.index-Ko.index}function eU(jo,Ko,xs,Ms){for(var xa=-1,Dl=jo.length,su=xs.length,Cu=-1,Vu=Ko.length,B1=Mx(Dl-su,0),M1=h1(Vu+B1),Z1=!Ms;++Cu1?xs[xa-1]:no,su=xa>2?xs[2]:no;for(Dl=jo.length>3&&typeof Dl=="function"?(xa--,Dl):no,su&&Cw(xs[0],xs[1],su)&&(Dl=xa<3?no:Dl,xa=1),Ko=d2(Ko);++Ms-1?xa[Dl?Ko[su]:su]:no}}function sU(jo){return yC(function(Ko){var xs=Ko.length,Ms=xs,xa=q5.prototype.thru;for(jo&&Ko.reverse();Ms--;){var Dl=Ko[Ms];if(typeof Dl!="function")throw new H5(lo);if(xa&&!su&&VM(Dl)=="wrapper")var su=new q5([],!0)}for(Ms=su?Ms:xs;++Ms1&&fv.reverse(),M1&&VuCu))return!1;var B1=Dl.get(jo),M1=Dl.get(Ko);if(B1&&M1)return B1==Ko&&M1==jo;var Z1=-1,L0=!0,pp=xs&Co?new KA:no;for(Dl.set(jo,Ko),Dl.set(Ko,jo);++Z11?"& ":"")+Ko[Ms],Ko=Ko.join(xs>2?", ":" "),jo.replace(Mv,`{ + */lodash$1.exports;(function(eo,to){(function(){var no,io="4.17.21",so=200,ao="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",lo="Expected a function",uo="Invalid `variable` option passed into `_.template`",ho="__lodash_hash_undefined__",go=500,mo="__lodash_placeholder__",yo=1,So=2,_o=4,ko=1,Co=2,$o=1,Ro=2,Oo=4,No=8,Mo=16,Bo=32,Fo=64,Lo=128,Go=256,Do=512,Uo=30,Ho="...",Yo=800,qo=16,Jo=1,ps=2,Qo=3,hs=1/0,gs=9007199254740991,ys=17976931348623157e292,vs=NaN,ks=4294967295,Os=ks-1,Ts=ks>>>1,Xs=[["ary",Lo],["bind",$o],["bindKey",Ro],["curry",No],["curryRight",Mo],["flip",Do],["partial",Bo],["partialRight",Fo],["rearg",Go]],Ws="[object Arguments]",Ps="[object Array]",qs="[object AsyncFunction]",ga="[object Boolean]",Fs="[object Date]",Js="[object DOMException]",Vs="[object Error]",El="[object Function]",yl="[object GeneratorFunction]",Gl="[object Map]",Qs="[object Number]",du="[object Null]",Ol="[object Object]",Fu="[object Promise]",ju="[object Proxy]",F1="[object RegExp]",y1="[object Set]",r1="[object String]",$u="[object Symbol]",Kl="[object Undefined]",Is="[object WeakMap]",Ks="[object WeakSet]",Bs="[object ArrayBuffer]",Ds="[object DataView]",Zs="[object Float32Array]",Cl="[object Float64Array]",ba="[object Int8Array]",fu="[object Int16Array]",Lu="[object Int32Array]",e1="[object Uint8Array]",Gu="[object Uint8ClampedArray]",w1="[object Uint16Array]",Zu="[object Uint32Array]",L1=/\b__p \+= '';/g,K1=/\b(__p \+=) '' \+/g,yp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wp=/&(?:amp|lt|gt|quot|#39);/g,j0=/[&<>"']/g,h0=RegExp(wp.source),cp=RegExp(j0.source),k0=/<%-([\s\S]+?)%>/g,ap=/<%([\s\S]+?)%>/g,x0=/<%=([\s\S]+?)%>/g,b0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P1=/^\w*$/,c1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V0=/[\\^$.*+?()[\]{}|]/g,P0=RegExp(V0.source),up=/^\s+/,Lp=/\s/,Mv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$v=/\{\n\/\* \[wrapped with (.+)\] \*/,Gv=/,? & /,C1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ll=/[()=,{}\[\]\/\s]/,Ul=/\\(\\)?/g,_l=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$l=/\w*$/,Us=/^[-+]0x[0-9a-f]+$/i,Rl=/^0b[01]+$/i,Sl=/^\[object .+?Constructor\]$/,eu=/^0o[0-7]+$/i,_c=/^(?:0|[1-9]\d*)$/,zu=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,N1=/($^)/,K0=/['\n\r\u2028\u2029\\]/g,J0="\\ud800-\\udfff",S1="\\u0300-\\u036f",O1="\\ufe20-\\ufe2f",r0="\\u20d0-\\u20ff",I1=S1+O1+r0,R0="\\u2700-\\u27bf",tu="a-z\\xdf-\\xf6\\xf8-\\xff",T2="\\xac\\xb1\\xd7\\xf7",hu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Z2="\\u2000-\\u206f",r_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",G4="A-Z\\xc0-\\xd6\\xd8-\\xde",bE="\\ufe0e\\ufe0f",hw=T2+hu+Z2+r_,Ay="['’]",NS="["+J0+"]",i_="["+hw+"]",JE="["+I1+"]",_k="\\d+",W4="["+R0+"]",B2="["+tu+"]",DS="[^"+J0+hw+_k+R0+tu+G4+"]",Tw="\\ud83c[\\udffb-\\udfff]",yE="(?:"+JE+"|"+Tw+")",LS="[^"+J0+"]",U4="(?:\\ud83c[\\udde6-\\uddff]){2}",D_="[\\ud800-\\udbff][\\udc00-\\udfff]",K4="["+G4+"]",cC="\\u200d",uC="(?:"+B2+"|"+DS+")",BS="(?:"+K4+"|"+DS+")",q7="(?:"+Ay+"(?:d|ll|m|re|s|t|ve))?",V7="(?:"+Ay+"(?:D|LL|M|RE|S|T|VE))?",fC=yE+"?",t$="["+bE+"]?",dP="(?:"+cC+"(?:"+[LS,U4,D_].join("|")+")"+t$+fC+")*",vM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hP="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ZR=t$+fC+dP,pP="(?:"+[W4,U4,D_].join("|")+")"+ZR,gP="(?:"+[LS+JE+"?",JE,U4,D_,NS].join("|")+")",VA=RegExp(Ay,"g"),mP=RegExp(JE,"g"),dC=RegExp(Tw+"(?="+Tw+")|"+gP+ZR,"g"),JR=RegExp([K4+"?"+B2+"+"+q7+"(?="+[i_,K4,"$"].join("|")+")",BS+"+"+V7+"(?="+[i_,K4+uC,"$"].join("|")+")",K4+"?"+uC+"+"+q7,K4+"+"+V7,hP,vM,_k,pP].join("|"),"g"),A0=RegExp("["+cC+J0+I1+bE+"]"),Y0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rm=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wm=-1,jp={};jp[Zs]=jp[Cl]=jp[ba]=jp[fu]=jp[Lu]=jp[e1]=jp[Gu]=jp[w1]=jp[Zu]=!0,jp[Ws]=jp[Ps]=jp[Bs]=jp[ga]=jp[Ds]=jp[Fs]=jp[Vs]=jp[El]=jp[Gl]=jp[Qs]=jp[Ol]=jp[F1]=jp[y1]=jp[r1]=jp[Is]=!1;var im={};im[Ws]=im[Ps]=im[Bs]=im[Ds]=im[ga]=im[Fs]=im[Zs]=im[Cl]=im[ba]=im[fu]=im[Lu]=im[Gl]=im[Qs]=im[Ol]=im[F1]=im[y1]=im[r1]=im[$u]=im[e1]=im[Gu]=im[w1]=im[Zu]=!0,im[Vs]=im[El]=im[Is]=!1;var i2={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},f2={"&":"&","<":"<",">":">",'"':""","'":"'"},Ox={"&":"&","<":"<",">":">",""":'"',"'":"'"},P5={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},hC=parseFloat,vP=parseInt,G7=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,eO=typeof self=="object"&&self&&self.Object===Object&&self,Ix=G7||eO||Function("return this")(),bP=to&&!to.nodeType&&to,GA=bP&&!0&&eo&&!eo.nodeType&&eo,ZG=GA&&GA.exports===bP,yP=ZG&&G7.process,j5=function(){try{var Bu=GA&&GA.require&&GA.require("util").types;return Bu||yP&&yP.binding&&yP.binding("util")}catch{}}(),JG=j5&&j5.isArrayBuffer,eW=j5&&j5.isDate,tW=j5&&j5.isMap,nW=j5&&j5.isRegExp,rW=j5&&j5.isSet,iW=j5&&j5.isTypedArray;function t5(Bu,$1,h1){switch(h1.length){case 0:return Bu.call($1);case 1:return Bu.call($1,h1[0]);case 2:return Bu.call($1,h1[0],h1[1]);case 3:return Bu.call($1,h1[0],h1[1],h1[2])}return Bu.apply($1,h1)}function bne(Bu,$1,h1,_p){for(var Wm=-1,Ry=Bu==null?0:Bu.length;++Wm-1}function wP(Bu,$1,h1){for(var _p=-1,Wm=Bu==null?0:Bu.length;++_p-1;);return h1}function dW(Bu,$1){for(var h1=Bu.length;h1--&&W7($1,Bu[h1],0)>-1;);return h1}function Cne(Bu,$1){for(var h1=Bu.length,_p=0;h1--;)Bu[h1]===$1&&++_p;return _p}var $ne=EP(i2),Ane=EP(f2);function Rne(Bu){return"\\"+P5[Bu]}function One(Bu,$1){return Bu==null?no:Bu[$1]}function U7(Bu){return A0.test(Bu)}function Ine(Bu){return Y0.test(Bu)}function Nne(Bu){for(var $1,h1=[];!($1=Bu.next()).done;)h1.push($1.value);return h1}function $P(Bu){var $1=-1,h1=Array(Bu.size);return Bu.forEach(function(_p,Wm){h1[++$1]=[Wm,_p]}),h1}function hW(Bu,$1){return function(h1){return Bu($1(h1))}}function i$(Bu,$1){for(var h1=-1,_p=Bu.length,Wm=0,Ry=[];++h1<_p;){var Nx=Bu[h1];(Nx===$1||Nx===mo)&&(Bu[h1]=mo,Ry[Wm++]=h1)}return Ry}function wM(Bu){var $1=-1,h1=Array(Bu.size);return Bu.forEach(function(_p){h1[++$1]=_p}),h1}function Mne(Bu){var $1=-1,h1=Array(Bu.size);return Bu.forEach(function(_p){h1[++$1]=[_p,_p]}),h1}function Dne(Bu,$1,h1){for(var _p=h1-1,Wm=Bu.length;++_p-1}function wre(jo,Ko){var xs=this.__data__,Ms=lO(xs,jo);return Ms<0?(++this.size,xs.push([jo,Ko])):xs[Ms][1]=Ko,this}pC.prototype.clear=mre,pC.prototype.delete=vre,pC.prototype.get=bre,pC.prototype.has=yre,pC.prototype.set=wre;function gC(jo){var Ko=-1,xs=jo==null?0:jo.length;for(this.clear();++Ko=Ko?jo:Ko)),jo}function V5(jo,Ko,xs,Ms,xa,Dl){var su,Cu=Ko&yo,Vu=Ko&So,B1=Ko&_o;if(xs&&(su=xa?xs(jo,Ms,xa,Dl):xs(jo)),su!==no)return su;if(!pw(jo))return jo;var M1=Zm(jo);if(M1){if(su=wie(jo),!Cu)return wE(jo,su)}else{var Z1=B_(jo),L0=Z1==El||Z1==yl;if(f$(jo))return QW(jo,Cu);if(Z1==Ol||Z1==Ws||L0&&!xa){if(su=Vu||L0?{}:gU(jo),!Cu)return Vu?uie(jo,CW(su,jo)):cie(jo,MP(su,jo))}else{if(!im[Z1])return xa?jo:{};su=xie(jo,Z1,Cu)}}Dl||(Dl=new X4);var pp=Dl.get(jo);if(pp)return pp;Dl.set(jo,su),HU(jo)?jo.forEach(function(um){su.add(V5(um,Ko,xs,um,jo,Dl))}):jU(jo)&&jo.forEach(function(um,Jm){su.set(Jm,V5(um,Ko,xs,Jm,jo,Dl))});var xm=B1?Vu?tz:ez:Vu?SE:rS,mv=M1?no:xm(jo);return z5(mv||jo,function(um,Jm){mv&&(Jm=um,um=jo[Jm]),e8(su,Jm,V5(um,Ko,xs,Jm,jo,Dl))}),su}function Mre(jo){var Ko=rS(jo);return function(xs){return $W(xs,jo,Ko)}}function $W(jo,Ko,xs){var Ms=xs.length;if(jo==null)return!Ms;for(jo=d2(jo);Ms--;){var xa=xs[Ms],Dl=Ko[xa],su=jo[xa];if(su===no&&!(xa in jo)||!Dl(su))return!1}return!0}function AW(jo,Ko,xs){if(typeof jo!="function")throw new H5(lo);return mO(function(){jo.apply(no,xs)},Ko)}function cO(jo,Ko,xs,Ms){var xa=-1,Dl=bM,su=!0,Cu=jo.length,Vu=[],B1=Ko.length;if(!Cu)return Vu;xs&&(Ko=J2(Ko,n5(xs))),Ms?(Dl=wP,su=!1):Ko.length>=so&&(Dl=tO,su=!1,Ko=new KA(Ko));e:for(;++xaxa?0:xa+xs),Ms=Ms===no||Ms>xa?xa:uv(Ms),Ms<0&&(Ms+=xa),Ms=xs>Ms?0:VU(Ms);xs0&&xs(Cu)?Ko>1?FS(Cu,Ko-1,xs,Ms,xa):r$(xa,Cu):Ms||(xa[xa.length]=Cu)}return xa}var LP=rU(),IW=rU(!0);function rT(jo,Ko){return jo&&LP(jo,Ko,rS)}function BP(jo,Ko){return jo&&IW(jo,Ko,rS)}function MM(jo,Ko){return n$(Ko,function(xs){return xC(jo[xs])})}function XA(jo,Ko){Ko=l$(Ko,jo);for(var xs=0,Ms=Ko.length;jo!=null&&xsKo}function Bre(jo,Ko){return jo!=null&&Hy.call(jo,Ko)}function Fre(jo,Ko){return jo!=null&&Ko in d2(jo)}function Pre(jo,Ko,xs){return jo>=o_(Ko,xs)&&jo=120&&M1.length>=120)?new KA(su&&M1):no}M1=jo[0];var Z1=-1,L0=Cu[0];e:for(;++Z1-1;)Cu!==jo&&CM.call(Cu,Vu,1),CM.call(jo,Vu,1);return jo}function qW(jo,Ko){for(var xs=jo?Ko.length:0,Ms=xs-1;xs--;){var xa=Ko[xs];if(xs==Ms||xa!==Dl){var Dl=xa;wC(xa)?CM.call(jo,xa,1):UP(jo,xa)}}return jo}function VP(jo,Ko){return jo+RM(xW()*(Ko-jo+1))}function Zre(jo,Ko,xs,Ms){for(var xa=-1,Dl=Mx(AM((Ko-jo)/(xs||1)),0),su=h1(Dl);Dl--;)su[Ms?Dl:++xa]=jo,jo+=xs;return su}function GP(jo,Ko){var xs="";if(!jo||Ko<1||Ko>gs)return xs;do Ko%2&&(xs+=jo),Ko=RM(Ko/2),Ko&&(jo+=jo);while(Ko);return xs}function yv(jo,Ko){return az(bU(jo,Ko,o5),jo+"")}function Jre(jo){return TW(o8(jo))}function eie(jo,Ko){var xs=o8(jo);return UM(xs,YA(Ko,0,xs.length))}function hO(jo,Ko,xs,Ms){if(!pw(jo))return jo;Ko=l$(Ko,jo);for(var xa=-1,Dl=Ko.length,su=Dl-1,Cu=jo;Cu!=null&&++xaxa?0:xa+Ko),xs=xs>xa?xa:xs,xs<0&&(xs+=xa),xa=Ko>xs?0:xs-Ko>>>0,Ko>>>=0;for(var Dl=h1(xa);++Ms>>1,su=jo[Dl];su!==null&&!i5(su)&&(xs?su<=Ko:su=so){var B1=Ko?null:gie(jo);if(B1)return wM(B1);su=!1,xa=tO,Vu=new KA}else Vu=Ko?[]:Cu;e:for(;++Ms=Ms?jo:G5(jo,Ko,xs)}var XW=Kne||function(jo){return Ix.clearTimeout(jo)};function QW(jo,Ko){if(Ko)return jo.slice();var xs=jo.length,Ms=mW?mW(xs):new jo.constructor(xs);return jo.copy(Ms),Ms}function QP(jo){var Ko=new jo.constructor(jo.byteLength);return new kM(Ko).set(new kM(jo)),Ko}function oie(jo,Ko){var xs=Ko?QP(jo.buffer):jo.buffer;return new jo.constructor(xs,jo.byteOffset,jo.byteLength)}function sie(jo){var Ko=new jo.constructor(jo.source,$l.exec(jo));return Ko.lastIndex=jo.lastIndex,Ko}function aie(jo){return aO?d2(aO.call(jo)):{}}function ZW(jo,Ko){var xs=Ko?QP(jo.buffer):jo.buffer;return new jo.constructor(xs,jo.byteOffset,jo.length)}function JW(jo,Ko){if(jo!==Ko){var xs=jo!==no,Ms=jo===null,xa=jo===jo,Dl=i5(jo),su=Ko!==no,Cu=Ko===null,Vu=Ko===Ko,B1=i5(Ko);if(!Cu&&!B1&&!Dl&&jo>Ko||Dl&&su&&Vu&&!Cu&&!B1||Ms&&su&&Vu||!xs&&Vu||!xa)return 1;if(!Ms&&!Dl&&!B1&&jo=Cu)return Vu;var B1=xs[Ms];return Vu*(B1=="desc"?-1:1)}}return jo.index-Ko.index}function eU(jo,Ko,xs,Ms){for(var xa=-1,Dl=jo.length,su=xs.length,Cu=-1,Vu=Ko.length,B1=Mx(Dl-su,0),M1=h1(Vu+B1),Z1=!Ms;++Cu1?xs[xa-1]:no,su=xa>2?xs[2]:no;for(Dl=jo.length>3&&typeof Dl=="function"?(xa--,Dl):no,su&&Cw(xs[0],xs[1],su)&&(Dl=xa<3?no:Dl,xa=1),Ko=d2(Ko);++Ms-1?xa[Dl?Ko[su]:su]:no}}function sU(jo){return yC(function(Ko){var xs=Ko.length,Ms=xs,xa=q5.prototype.thru;for(jo&&Ko.reverse();Ms--;){var Dl=Ko[Ms];if(typeof Dl!="function")throw new H5(lo);if(xa&&!su&&VM(Dl)=="wrapper")var su=new q5([],!0)}for(Ms=su?Ms:xs;++Ms1&&fv.reverse(),M1&&VuCu))return!1;var B1=Dl.get(jo),M1=Dl.get(Ko);if(B1&&M1)return B1==Ko&&M1==jo;var Z1=-1,L0=!0,pp=xs&Co?new KA:no;for(Dl.set(jo,Ko),Dl.set(Ko,jo);++Z11?"& ":"")+Ko[Ms],Ko=Ko.join(xs>2?", ":" "),jo.replace(Mv,`{ /* [wrapped with `+Ko+`] */ -`)}function W5(jo){return Zm(jo)||JA(jo)||!!(yW&&jo&&jo[yW])}function wC(jo,Ko){var xs=typeof jo;return Ko=Ko??gs,!!Ko&&(xs=="number"||xs!="symbol"&&_c.test(jo))&&jo>-1&&jo%1==0&&jo0){if(++Ko>=Yo)return arguments[0]}else Ko=0;return jo.apply(no,arguments)}}function UM(jo,Ko){var xs=-1,Ms=jo.length,xa=Ms-1;for(Ko=Ko===no?Ms:Ko;++xs1?jo[Ko-1]:no;return xs=typeof xs=="function"?(jo.pop(),xs):no,$U(jo,xs)});function AU(jo){var Ko=Il(jo);return Ko.__chain__=!0,Ko}function _oe(jo,Ko){return Ko(jo),jo}function JM(jo,Ko){return Ko(jo)}var Eoe=yC(function(jo){var Ko=jo.length,xs=Ko?jo[0]:0,Ms=this.__wrapped__,xa=function(Dl){return DP(Dl,jo)};return Ko>1||this.__actions__.length||!(Ms instanceof Wv)||!wC(xs)?this.thru(xa):(Ms=Ms.slice(xs,+xs+(Ko?1:0)),Ms.__actions__.push({func:JM,args:[xa],thisArg:no}),new q5(Ms,this.__chain__).thru(function(Dl){return Ko&&!Dl.length&&Dl.push(no),Dl}))});function koe(){return AU(this)}function Toe(){return new q5(this.value(),this.__chain__)}function Coe(){this.__values__===no&&(this.__values__=qU(this.value()));var jo=this.__index__>=this.__values__.length,Ko=jo?no:this.__values__[this.__index__++];return{done:jo,value:Ko}}function $oe(){return this}function Aoe(jo){for(var Ko,xs=this;xs instanceof NM;){var Ms=_U(xs);Ms.__index__=0,Ms.__values__=no,Ko?xa.__wrapped__=Ms:Ko=Ms;var xa=Ms;xs=xs.__wrapped__}return xa.__wrapped__=jo,Ko}function Roe(){var jo=this.__wrapped__;if(jo instanceof Wv){var Ko=jo;return this.__actions__.length&&(Ko=new Wv(this)),Ko=Ko.reverse(),Ko.__actions__.push({func:JM,args:[ZM],thisArg:no}),new q5(Ko,this.__chain__)}return this.thru(ZM)}function Ooe(){return KW(this.__wrapped__,this.__actions__)}var Ioe=FM(function(jo,Ko,xs){Hy.call(jo,xs)?++jo[xs]:mC(jo,xs,1)});function Noe(jo,Ko,xs){var Ms=Zm(jo)?oW:Dre;return xs&&Cw(jo,Ko,xs)&&(Ko=no),Ms(jo,gm(Ko,3))}function Moe(jo,Ko){var xs=Zm(jo)?n$:OW;return xs(jo,gm(Ko,3))}var Doe=oU(vO),Loe=oU(EU);function Boe(jo,Ko){return FS(eD(jo,Ko),1)}function Foe(jo,Ko){return FS(eD(jo,Ko),hs)}function Poe(jo,Ko,xs){return xs=xs===no?1:uv(xs),FS(eD(jo,Ko),xs)}function RU(jo,Ko){var xs=Zm(jo)?z5:s$;return xs(jo,gm(Ko,3))}function OU(jo,Ko){var xs=Zm(jo)?yne:RW;return xs(jo,gm(Ko,3))}var joe=FM(function(jo,Ko,xs){Hy.call(jo,xs)?jo[xs].push(Ko):mC(jo,xs,[Ko])});function zoe(jo,Ko,xs,Ms){jo=xE(jo)?jo:o8(jo),xs=xs&&!Ms?uv(xs):0;var xa=jo.length;return xs<0&&(xs=Mx(xa+xs,0)),oD(jo)?xs<=xa&&jo.indexOf(Ko,xs)>-1:!!xa&&W7(jo,Ko,xs)>-1}var Hoe=yv(function(jo,Ko,xs){var Ms=-1,xa=typeof Ko=="function",Dl=xE(jo)?h1(jo.length):[];return s$(jo,function(su){Dl[++Ms]=xa?t5(Ko,su,xs):fO(su,Ko,xs)}),Dl}),qoe=FM(function(jo,Ko,xs){mC(jo,xs,Ko)});function eD(jo,Ko){var xs=Zm(jo)?J2:BW;return xs(jo,gm(Ko,3))}function Voe(jo,Ko,xs,Ms){return jo==null?[]:(Zm(Ko)||(Ko=Ko==null?[]:[Ko]),xs=Ms?no:xs,Zm(xs)||(xs=xs==null?[]:[xs]),zW(jo,Ko,xs))}var Goe=FM(function(jo,Ko,xs){jo[xs?0:1].push(Ko)},function(){return[[],[]]});function Woe(jo,Ko,xs){var Ms=Zm(jo)?xP:cW,xa=arguments.length<3;return Ms(jo,gm(Ko,4),xs,xa,s$)}function Uoe(jo,Ko,xs){var Ms=Zm(jo)?wne:cW,xa=arguments.length<3;return Ms(jo,gm(Ko,4),xs,xa,RW)}function Koe(jo,Ko){var xs=Zm(jo)?n$:OW;return xs(jo,rD(gm(Ko,3)))}function Yoe(jo){var Ko=Zm(jo)?TW:Jre;return Ko(jo)}function Xoe(jo,Ko,xs){(xs?Cw(jo,Ko,xs):Ko===no)?Ko=1:Ko=uv(Ko);var Ms=Zm(jo)?Ore:eie;return Ms(jo,Ko)}function Qoe(jo){var Ko=Zm(jo)?Ire:nie;return Ko(jo)}function Zoe(jo){if(jo==null)return 0;if(xE(jo))return oD(jo)?K7(jo):jo.length;var Ko=B_(jo);return Ko==Gl||Ko==y1?jo.size:zP(jo).length}function Joe(jo,Ko,xs){var Ms=Zm(jo)?SP:rie;return xs&&Cw(jo,Ko,xs)&&(Ko=no),Ms(jo,gm(Ko,3))}var ese=yv(function(jo,Ko){if(jo==null)return[];var xs=Ko.length;return xs>1&&Cw(jo,Ko[0],Ko[1])?Ko=[]:xs>2&&Cw(Ko[0],Ko[1],Ko[2])&&(Ko=[Ko[0]]),zW(jo,FS(Ko,1),[])}),tD=Yne||function(){return Ix.Date.now()};function tse(jo,Ko){if(typeof Ko!="function")throw new H5(lo);return jo=uv(jo),function(){if(--jo<1)return Ko.apply(this,arguments)}}function IU(jo,Ko,xs){return Ko=xs?no:Ko,Ko=jo&&Ko==null?jo.length:Ko,bC(jo,Lo,no,no,no,no,Ko)}function NU(jo,Ko){var xs;if(typeof Ko!="function")throw new H5(lo);return jo=uv(jo),function(){return--jo>0&&(xs=Ko.apply(this,arguments)),jo<=1&&(Ko=no),xs}}var dz=yv(function(jo,Ko,xs){var Ms=$o;if(xs.length){var xa=i$(xs,r8(dz));Ms|=Bo}return bC(jo,Ms,Ko,xs,xa)}),MU=yv(function(jo,Ko,xs){var Ms=$o|Ro;if(xs.length){var xa=i$(xs,r8(MU));Ms|=Bo}return bC(Ko,Ms,jo,xs,xa)});function DU(jo,Ko,xs){Ko=xs?no:Ko;var Ms=bC(jo,No,no,no,no,no,no,Ko);return Ms.placeholder=DU.placeholder,Ms}function LU(jo,Ko,xs){Ko=xs?no:Ko;var Ms=bC(jo,Mo,no,no,no,no,no,Ko);return Ms.placeholder=LU.placeholder,Ms}function BU(jo,Ko,xs){var Ms,xa,Dl,su,Cu,Vu,B1=0,M1=!1,Z1=!1,L0=!0;if(typeof jo!="function")throw new H5(lo);Ko=K5(Ko)||0,pw(xs)&&(M1=!!xs.leading,Z1="maxWait"in xs,Dl=Z1?Mx(K5(xs.maxWait)||0,Ko):Dl,L0="trailing"in xs?!!xs.trailing:L0);function pp(_s){var Z4=Ms,EE=xa;return Ms=xa=no,B1=_s,su=jo.apply(EE,Z4),su}function xm(_s){return B1=_s,Cu=mO(Jm,Ko),M1?pp(_s):su}function mv(_s){var Z4=_s-Vu,EE=_s-B1,Tz=Ko-Z4;return Z1?o_(Tz,Dl-EE):Tz}function um(_s){var Z4=_s-Vu,EE=_s-B1;return Vu===no||Z4>=Ko||Z4<0||Z1&&EE>=Dl}function Jm(){var _s=tD();if(um(_s))return fv(_s);Cu=mO(Jm,mv(_s))}function fv(_s){return Cu=no,L0&&Ms?pp(_s):(Ms=xa=no,su)}function F_(){Cu!==no&&XW(Cu),B1=0,Ms=Vu=xa=Cu=no}function P_(){return Cu===no?su:fv(tD())}function j_(){var _s=tD(),Z4=um(_s);if(Ms=arguments,xa=this,Vu=_s,Z4){if(Cu===no)return xm(Vu);if(Z1)return XW(Cu),Cu=mO(Jm,Ko),pp(Vu)}return Cu===no&&(Cu=mO(Jm,Ko)),su}return j_.cancel=F_,j_.flush=P_,j_}var nse=yv(function(jo,Ko){return AW(jo,1,Ko)}),rse=yv(function(jo,Ko,xs){return AW(jo,K5(Ko)||0,xs)});function ise(jo){return bC(jo,Do)}function nD(jo,Ko){if(typeof jo!="function"||Ko!=null&&typeof Ko!="function")throw new H5(lo);var xs=function(){var Ms=arguments,xa=Ko?Ko.apply(this,Ms):Ms[0],Dl=xs.cache;if(Dl.has(xa))return Dl.get(xa);var su=jo.apply(this,Ms);return xs.cache=Dl.set(xa,su)||Dl,su};return xs.cache=new(nD.Cache||gC),xs}nD.Cache=gC;function rD(jo){if(typeof jo!="function")throw new H5(lo);return function(){var Ko=arguments;switch(Ko.length){case 0:return!jo.call(this);case 1:return!jo.call(this,Ko[0]);case 2:return!jo.call(this,Ko[0],Ko[1]);case 3:return!jo.call(this,Ko[0],Ko[1],Ko[2])}return!jo.apply(this,Ko)}}function ose(jo){return NU(2,jo)}var sse=iie(function(jo,Ko){Ko=Ko.length==1&&Zm(Ko[0])?J2(Ko[0],n5(gm())):J2(FS(Ko,1),n5(gm()));var xs=Ko.length;return yv(function(Ms){for(var xa=-1,Dl=o_(Ms.length,xs);++xa=Ko}),JA=MW(function(){return arguments}())?MW:function(jo){return gw(jo)&&Hy.call(jo,"callee")&&!bW.call(jo,"callee")},Zm=h1.isArray,xse=JG?n5(JG):zre;function xE(jo){return jo!=null&&iD(jo.length)&&!xC(jo)}function Lw(jo){return gw(jo)&&xE(jo)}function Sse(jo){return jo===!0||jo===!1||gw(jo)&&L_(jo)==ga}var f$=Qne||hK,_se=eW?n5(eW):Hre;function Ese(jo){return gw(jo)&&jo.nodeType===1&&!yO(jo)}function kse(jo){if(jo==null)return!0;if(xE(jo)&&(Zm(jo)||typeof jo=="string"||typeof jo.splice=="function"||f$(jo)||i8(jo)||JA(jo)))return!jo.length;var Ko=B_(jo);if(Ko==Gl||Ko==y1)return!jo.size;if(gO(jo))return!zP(jo).length;for(var xs in jo)if(Hy.call(jo,xs))return!1;return!0}function Tse(jo,Ko){return dO(jo,Ko)}function Cse(jo,Ko,xs){xs=typeof xs=="function"?xs:no;var Ms=xs?xs(jo,Ko):no;return Ms===no?dO(jo,Ko,no,xs):!!Ms}function pz(jo){if(!gw(jo))return!1;var Ko=L_(jo);return Ko==Vs||Ko==Js||typeof jo.message=="string"&&typeof jo.name=="string"&&!yO(jo)}function $se(jo){return typeof jo=="number"&&wW(jo)}function xC(jo){if(!pw(jo))return!1;var Ko=L_(jo);return Ko==El||Ko==yl||Ko==qs||Ko==ju}function PU(jo){return typeof jo=="number"&&jo==uv(jo)}function iD(jo){return typeof jo=="number"&&jo>-1&&jo%1==0&&jo<=gs}function pw(jo){var Ko=typeof jo;return jo!=null&&(Ko=="object"||Ko=="function")}function gw(jo){return jo!=null&&typeof jo=="object"}var jU=tW?n5(tW):Vre;function Ase(jo,Ko){return jo===Ko||jP(jo,Ko,rz(Ko))}function gz(jo,Ko,xs){return xs=typeof xs=="function"?xs:no,jP(jo,Ko,rz(Ko),xs)}function Rse(jo){return zU(jo)&&jo!=+jo}function Ose(jo){if(kie(jo))throw new Wm(ao);return DW(jo)}function Ise(jo){return jo===null}function Nse(jo){return jo==null}function zU(jo){return typeof jo=="number"||gw(jo)&&L_(jo)==Qs}function yO(jo){if(!gw(jo)||L_(jo)!=Ol)return!1;var Ko=TM(jo);if(Ko===null)return!0;var xs=Hy.call(Ko,"constructor")&&Ko.constructor;return typeof xs=="function"&&xs instanceof xs&&nO.call(xs)==Gne}var mz=nW?n5(nW):Gre;function Mse(jo){return PU(jo)&&jo>=-gs&&jo<=gs}var HU=rW?n5(rW):Wre;function oD(jo){return typeof jo=="string"||!Zm(jo)&&gw(jo)&&L_(jo)==r1}function i5(jo){return typeof jo=="symbol"||gw(jo)&&L_(jo)==$u}var i8=iW?n5(iW):Ure;function Dse(jo){return jo===no}function Lse(jo){return gw(jo)&&B_(jo)==Is}function Bse(jo){return gw(jo)&&L_(jo)==Ks}var Fse=HM(HP),Pse=HM(function(jo,Ko){return jo<=Ko});function qU(jo){if(!jo)return[];if(xE(jo))return oD(jo)?Y4(jo):wE(jo);if(rO&&jo[rO])return Nne(jo[rO]());var Ko=B_(jo),xs=Ko==Gl?$P:Ko==y1?wM:o8;return xs(jo)}function SC(jo){if(!jo)return jo===0?jo:0;if(jo=K5(jo),jo===hs||jo===-hs){var Ko=jo<0?-1:1;return Ko*ys}return jo===jo?jo:0}function uv(jo){var Ko=SC(jo),xs=Ko%1;return Ko===Ko?xs?Ko-xs:Ko:0}function VU(jo){return jo?YA(uv(jo),0,ks):0}function K5(jo){if(typeof jo=="number")return jo;if(i5(jo))return vs;if(pw(jo)){var Ko=typeof jo.valueOf=="function"?jo.valueOf():jo;jo=pw(Ko)?Ko+"":Ko}if(typeof jo!="string")return jo===0?jo:+jo;jo=uW(jo);var xs=Rl.test(jo);return xs||eu.test(jo)?vP(jo.slice(2),xs?2:8):Us.test(jo)?vs:+jo}function GU(jo){return vC(jo,SE(jo))}function jse(jo){return jo?YA(uv(jo),-gs,gs):jo===0?jo:0}function By(jo){return jo==null?"":r5(jo)}var zse=t8(function(jo,Ko){if(gO(Ko)||xE(Ko)){vC(Ko,rS(Ko),jo);return}for(var xs in Ko)Hy.call(Ko,xs)&&e8(jo,xs,Ko[xs])}),WU=t8(function(jo,Ko){vC(Ko,SE(Ko),jo)}),sD=t8(function(jo,Ko,xs,Ms){vC(Ko,SE(Ko),jo,Ms)}),Hse=t8(function(jo,Ko,xs,Ms){vC(Ko,rS(Ko),jo,Ms)}),qse=yC(DP);function Vse(jo,Ko){var xs=J7(jo);return Ko==null?xs:MP(xs,Ko)}var Gse=yv(function(jo,Ko){jo=d2(jo);var xs=-1,Ms=Ko.length,xa=Ms>2?Ko[2]:no;for(xa&&Cw(Ko[0],Ko[1],xa)&&(Ms=1);++xs1),Dl}),vC(jo,tz(jo),xs),Ms&&(xs=V5(xs,yo|So|_o,_j));for(var xa=Ko.length;xa--;)UP(xs,Ko[xa]);return xs});function sae(jo,Ko){return XU(jo,rD(gm(Ko)))}var YU=yC(function(jo,Ko){return jo==null?{}:Xre(jo,Ko)});function XU(jo,Ko){if(jo==null)return{};var xs=J2(tz(jo),function(Ms){return[Ms]});return Ko=gm(Ko),HW(jo,xs,function(Ms,xa){return Ko(Ms,xa[0])})}function aD(jo,Ko,xs){Ko=l$(Ko,jo);var Ms=-1,xa=Ko.length;for(xa||(xa=1,jo=no);++MsKo){var Ms=jo;jo=Ko,Ko=Ms}if(xs||jo%1||Ko%1){var xa=xW();return o_(jo+xa*(Ko-jo+hC("1e-"+((xa+"").length-1))),Ko)}return VP(jo,Ko)}var xz=n8(function(jo,Ko,xs){return Ko=Ko.toLowerCase(),jo+(xs?lD(Ko):Ko)});function lD(jo){return oK(By(jo).toLowerCase())}function tK(jo){return jo=By(jo),jo&&jo.replace(zu,$ne).replace(mP,"")}function Sz(jo,Ko,xs){jo=By(jo),Ko=r5(Ko);var Ms=jo.length;xs=xs===no?Ms:YA(uv(xs),0,Ms);var xa=xs;return xs-=Ko.length,xs>=0&&jo.slice(xs,xa)==Ko}function pae(jo){return jo=By(jo),jo&&cp.test(jo)?jo.replace(j0,Ane):jo}function gae(jo){return jo=By(jo),jo&&P0.test(jo)?jo.replace(V0,"\\$&"):jo}var mae=n8(function(jo,Ko,xs){return jo+(xs?"-":"")+Ko.toLowerCase()}),nK=n8(function(jo,Ko,xs){return jo+(xs?" ":"")+Ko.toLowerCase()}),vae=iU("toLowerCase");function bae(jo,Ko,xs){jo=By(jo),Ko=uv(Ko);var Ms=Ko?K7(jo):0;if(!Ko||Ms>=Ko)return jo;var xa=(Ko-Ms)/2;return zM(RM(xa),xs)+jo+zM(AM(xa),xs)}function yae(jo,Ko,xs){jo=By(jo),Ko=uv(Ko);var Ms=Ko?K7(jo):0;return Ko&&Ms>>0,xs?(jo=By(jo),jo&&(typeof Ko=="string"||Ko!=null&&!mz(Ko))&&(Ko=r5(Ko),!Ko&&U7(jo))?c$(Y4(jo),0,xs):jo.split(Ko,xs)):[]}var Tae=n8(function(jo,Ko,xs){return jo+(xs?" ":"")+oK(Ko)});function Cae(jo,Ko,xs){return jo=By(jo),xs=xs==null?0:YA(uv(xs),0,jo.length),Ko=r5(Ko),jo.slice(xs,xs+Ko.length)==Ko}function $ae(jo,Ko,xs){var Ms=Il.templateSettings;xs&&Cw(jo,Ko,xs)&&(Ko=no),jo=By(jo),Ko=sD({},Ko,Ms,fU);var xa=sD({},Ko.imports,Ms.imports,fU),Dl=rS(xa),su=CP(xa,Dl),Cu,Vu,B1=0,M1=Ko.interpolate||N1,Z1="__p += '",L0=AP((Ko.escape||N1).source+"|"+M1.source+"|"+(M1===x0?_l:N1).source+"|"+(Ko.evaluate||N1).source+"|$","g"),pp="//# sourceURL="+(Hy.call(Ko,"sourceURL")?(Ko.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wm+"]")+` +`)}function W5(jo){return Zm(jo)||JA(jo)||!!(yW&&jo&&jo[yW])}function wC(jo,Ko){var xs=typeof jo;return Ko=Ko??gs,!!Ko&&(xs=="number"||xs!="symbol"&&_c.test(jo))&&jo>-1&&jo%1==0&&jo0){if(++Ko>=Yo)return arguments[0]}else Ko=0;return jo.apply(no,arguments)}}function UM(jo,Ko){var xs=-1,Ms=jo.length,xa=Ms-1;for(Ko=Ko===no?Ms:Ko;++xs1?jo[Ko-1]:no;return xs=typeof xs=="function"?(jo.pop(),xs):no,$U(jo,xs)});function AU(jo){var Ko=Il(jo);return Ko.__chain__=!0,Ko}function _oe(jo,Ko){return Ko(jo),jo}function JM(jo,Ko){return Ko(jo)}var Eoe=yC(function(jo){var Ko=jo.length,xs=Ko?jo[0]:0,Ms=this.__wrapped__,xa=function(Dl){return DP(Dl,jo)};return Ko>1||this.__actions__.length||!(Ms instanceof Wv)||!wC(xs)?this.thru(xa):(Ms=Ms.slice(xs,+xs+(Ko?1:0)),Ms.__actions__.push({func:JM,args:[xa],thisArg:no}),new q5(Ms,this.__chain__).thru(function(Dl){return Ko&&!Dl.length&&Dl.push(no),Dl}))});function koe(){return AU(this)}function Toe(){return new q5(this.value(),this.__chain__)}function Coe(){this.__values__===no&&(this.__values__=qU(this.value()));var jo=this.__index__>=this.__values__.length,Ko=jo?no:this.__values__[this.__index__++];return{done:jo,value:Ko}}function $oe(){return this}function Aoe(jo){for(var Ko,xs=this;xs instanceof NM;){var Ms=_U(xs);Ms.__index__=0,Ms.__values__=no,Ko?xa.__wrapped__=Ms:Ko=Ms;var xa=Ms;xs=xs.__wrapped__}return xa.__wrapped__=jo,Ko}function Roe(){var jo=this.__wrapped__;if(jo instanceof Wv){var Ko=jo;return this.__actions__.length&&(Ko=new Wv(this)),Ko=Ko.reverse(),Ko.__actions__.push({func:JM,args:[ZM],thisArg:no}),new q5(Ko,this.__chain__)}return this.thru(ZM)}function Ooe(){return KW(this.__wrapped__,this.__actions__)}var Ioe=FM(function(jo,Ko,xs){Hy.call(jo,xs)?++jo[xs]:mC(jo,xs,1)});function Noe(jo,Ko,xs){var Ms=Zm(jo)?oW:Dre;return xs&&Cw(jo,Ko,xs)&&(Ko=no),Ms(jo,gm(Ko,3))}function Moe(jo,Ko){var xs=Zm(jo)?n$:OW;return xs(jo,gm(Ko,3))}var Doe=oU(vO),Loe=oU(EU);function Boe(jo,Ko){return FS(eD(jo,Ko),1)}function Foe(jo,Ko){return FS(eD(jo,Ko),hs)}function Poe(jo,Ko,xs){return xs=xs===no?1:uv(xs),FS(eD(jo,Ko),xs)}function RU(jo,Ko){var xs=Zm(jo)?z5:s$;return xs(jo,gm(Ko,3))}function OU(jo,Ko){var xs=Zm(jo)?yne:RW;return xs(jo,gm(Ko,3))}var joe=FM(function(jo,Ko,xs){Hy.call(jo,xs)?jo[xs].push(Ko):mC(jo,xs,[Ko])});function zoe(jo,Ko,xs,Ms){jo=xE(jo)?jo:o8(jo),xs=xs&&!Ms?uv(xs):0;var xa=jo.length;return xs<0&&(xs=Mx(xa+xs,0)),oD(jo)?xs<=xa&&jo.indexOf(Ko,xs)>-1:!!xa&&W7(jo,Ko,xs)>-1}var Hoe=yv(function(jo,Ko,xs){var Ms=-1,xa=typeof Ko=="function",Dl=xE(jo)?h1(jo.length):[];return s$(jo,function(su){Dl[++Ms]=xa?t5(Ko,su,xs):fO(su,Ko,xs)}),Dl}),qoe=FM(function(jo,Ko,xs){mC(jo,xs,Ko)});function eD(jo,Ko){var xs=Zm(jo)?J2:BW;return xs(jo,gm(Ko,3))}function Voe(jo,Ko,xs,Ms){return jo==null?[]:(Zm(Ko)||(Ko=Ko==null?[]:[Ko]),xs=Ms?no:xs,Zm(xs)||(xs=xs==null?[]:[xs]),zW(jo,Ko,xs))}var Goe=FM(function(jo,Ko,xs){jo[xs?0:1].push(Ko)},function(){return[[],[]]});function Woe(jo,Ko,xs){var Ms=Zm(jo)?xP:cW,xa=arguments.length<3;return Ms(jo,gm(Ko,4),xs,xa,s$)}function Uoe(jo,Ko,xs){var Ms=Zm(jo)?wne:cW,xa=arguments.length<3;return Ms(jo,gm(Ko,4),xs,xa,RW)}function Koe(jo,Ko){var xs=Zm(jo)?n$:OW;return xs(jo,rD(gm(Ko,3)))}function Yoe(jo){var Ko=Zm(jo)?TW:Jre;return Ko(jo)}function Xoe(jo,Ko,xs){(xs?Cw(jo,Ko,xs):Ko===no)?Ko=1:Ko=uv(Ko);var Ms=Zm(jo)?Ore:eie;return Ms(jo,Ko)}function Qoe(jo){var Ko=Zm(jo)?Ire:nie;return Ko(jo)}function Zoe(jo){if(jo==null)return 0;if(xE(jo))return oD(jo)?K7(jo):jo.length;var Ko=B_(jo);return Ko==Gl||Ko==y1?jo.size:zP(jo).length}function Joe(jo,Ko,xs){var Ms=Zm(jo)?SP:rie;return xs&&Cw(jo,Ko,xs)&&(Ko=no),Ms(jo,gm(Ko,3))}var ese=yv(function(jo,Ko){if(jo==null)return[];var xs=Ko.length;return xs>1&&Cw(jo,Ko[0],Ko[1])?Ko=[]:xs>2&&Cw(Ko[0],Ko[1],Ko[2])&&(Ko=[Ko[0]]),zW(jo,FS(Ko,1),[])}),tD=Yne||function(){return Ix.Date.now()};function tse(jo,Ko){if(typeof Ko!="function")throw new H5(lo);return jo=uv(jo),function(){if(--jo<1)return Ko.apply(this,arguments)}}function IU(jo,Ko,xs){return Ko=xs?no:Ko,Ko=jo&&Ko==null?jo.length:Ko,bC(jo,Lo,no,no,no,no,Ko)}function NU(jo,Ko){var xs;if(typeof Ko!="function")throw new H5(lo);return jo=uv(jo),function(){return--jo>0&&(xs=Ko.apply(this,arguments)),jo<=1&&(Ko=no),xs}}var dz=yv(function(jo,Ko,xs){var Ms=$o;if(xs.length){var xa=i$(xs,r8(dz));Ms|=Bo}return bC(jo,Ms,Ko,xs,xa)}),MU=yv(function(jo,Ko,xs){var Ms=$o|Ro;if(xs.length){var xa=i$(xs,r8(MU));Ms|=Bo}return bC(Ko,Ms,jo,xs,xa)});function DU(jo,Ko,xs){Ko=xs?no:Ko;var Ms=bC(jo,No,no,no,no,no,no,Ko);return Ms.placeholder=DU.placeholder,Ms}function LU(jo,Ko,xs){Ko=xs?no:Ko;var Ms=bC(jo,Mo,no,no,no,no,no,Ko);return Ms.placeholder=LU.placeholder,Ms}function BU(jo,Ko,xs){var Ms,xa,Dl,su,Cu,Vu,B1=0,M1=!1,Z1=!1,L0=!0;if(typeof jo!="function")throw new H5(lo);Ko=K5(Ko)||0,pw(xs)&&(M1=!!xs.leading,Z1="maxWait"in xs,Dl=Z1?Mx(K5(xs.maxWait)||0,Ko):Dl,L0="trailing"in xs?!!xs.trailing:L0);function pp(_s){var Z4=Ms,EE=xa;return Ms=xa=no,B1=_s,su=jo.apply(EE,Z4),su}function xm(_s){return B1=_s,Cu=mO(Jm,Ko),M1?pp(_s):su}function mv(_s){var Z4=_s-Vu,EE=_s-B1,Tz=Ko-Z4;return Z1?o_(Tz,Dl-EE):Tz}function um(_s){var Z4=_s-Vu,EE=_s-B1;return Vu===no||Z4>=Ko||Z4<0||Z1&&EE>=Dl}function Jm(){var _s=tD();if(um(_s))return fv(_s);Cu=mO(Jm,mv(_s))}function fv(_s){return Cu=no,L0&&Ms?pp(_s):(Ms=xa=no,su)}function F_(){Cu!==no&&XW(Cu),B1=0,Ms=Vu=xa=Cu=no}function P_(){return Cu===no?su:fv(tD())}function j_(){var _s=tD(),Z4=um(_s);if(Ms=arguments,xa=this,Vu=_s,Z4){if(Cu===no)return xm(Vu);if(Z1)return XW(Cu),Cu=mO(Jm,Ko),pp(Vu)}return Cu===no&&(Cu=mO(Jm,Ko)),su}return j_.cancel=F_,j_.flush=P_,j_}var nse=yv(function(jo,Ko){return AW(jo,1,Ko)}),rse=yv(function(jo,Ko,xs){return AW(jo,K5(Ko)||0,xs)});function ise(jo){return bC(jo,Do)}function nD(jo,Ko){if(typeof jo!="function"||Ko!=null&&typeof Ko!="function")throw new H5(lo);var xs=function(){var Ms=arguments,xa=Ko?Ko.apply(this,Ms):Ms[0],Dl=xs.cache;if(Dl.has(xa))return Dl.get(xa);var su=jo.apply(this,Ms);return xs.cache=Dl.set(xa,su)||Dl,su};return xs.cache=new(nD.Cache||gC),xs}nD.Cache=gC;function rD(jo){if(typeof jo!="function")throw new H5(lo);return function(){var Ko=arguments;switch(Ko.length){case 0:return!jo.call(this);case 1:return!jo.call(this,Ko[0]);case 2:return!jo.call(this,Ko[0],Ko[1]);case 3:return!jo.call(this,Ko[0],Ko[1],Ko[2])}return!jo.apply(this,Ko)}}function ose(jo){return NU(2,jo)}var sse=iie(function(jo,Ko){Ko=Ko.length==1&&Zm(Ko[0])?J2(Ko[0],n5(gm())):J2(FS(Ko,1),n5(gm()));var xs=Ko.length;return yv(function(Ms){for(var xa=-1,Dl=o_(Ms.length,xs);++xa=Ko}),JA=MW(function(){return arguments}())?MW:function(jo){return gw(jo)&&Hy.call(jo,"callee")&&!bW.call(jo,"callee")},Zm=h1.isArray,xse=JG?n5(JG):zre;function xE(jo){return jo!=null&&iD(jo.length)&&!xC(jo)}function Lw(jo){return gw(jo)&&xE(jo)}function Sse(jo){return jo===!0||jo===!1||gw(jo)&&L_(jo)==ga}var f$=Qne||hK,_se=eW?n5(eW):Hre;function Ese(jo){return gw(jo)&&jo.nodeType===1&&!yO(jo)}function kse(jo){if(jo==null)return!0;if(xE(jo)&&(Zm(jo)||typeof jo=="string"||typeof jo.splice=="function"||f$(jo)||i8(jo)||JA(jo)))return!jo.length;var Ko=B_(jo);if(Ko==Gl||Ko==y1)return!jo.size;if(gO(jo))return!zP(jo).length;for(var xs in jo)if(Hy.call(jo,xs))return!1;return!0}function Tse(jo,Ko){return dO(jo,Ko)}function Cse(jo,Ko,xs){xs=typeof xs=="function"?xs:no;var Ms=xs?xs(jo,Ko):no;return Ms===no?dO(jo,Ko,no,xs):!!Ms}function pz(jo){if(!gw(jo))return!1;var Ko=L_(jo);return Ko==Vs||Ko==Js||typeof jo.message=="string"&&typeof jo.name=="string"&&!yO(jo)}function $se(jo){return typeof jo=="number"&&wW(jo)}function xC(jo){if(!pw(jo))return!1;var Ko=L_(jo);return Ko==El||Ko==yl||Ko==qs||Ko==ju}function PU(jo){return typeof jo=="number"&&jo==uv(jo)}function iD(jo){return typeof jo=="number"&&jo>-1&&jo%1==0&&jo<=gs}function pw(jo){var Ko=typeof jo;return jo!=null&&(Ko=="object"||Ko=="function")}function gw(jo){return jo!=null&&typeof jo=="object"}var jU=tW?n5(tW):Vre;function Ase(jo,Ko){return jo===Ko||jP(jo,Ko,rz(Ko))}function gz(jo,Ko,xs){return xs=typeof xs=="function"?xs:no,jP(jo,Ko,rz(Ko),xs)}function Rse(jo){return zU(jo)&&jo!=+jo}function Ose(jo){if(kie(jo))throw new Wm(ao);return DW(jo)}function Ise(jo){return jo===null}function Nse(jo){return jo==null}function zU(jo){return typeof jo=="number"||gw(jo)&&L_(jo)==Qs}function yO(jo){if(!gw(jo)||L_(jo)!=Ol)return!1;var Ko=TM(jo);if(Ko===null)return!0;var xs=Hy.call(Ko,"constructor")&&Ko.constructor;return typeof xs=="function"&&xs instanceof xs&&nO.call(xs)==Gne}var mz=nW?n5(nW):Gre;function Mse(jo){return PU(jo)&&jo>=-gs&&jo<=gs}var HU=rW?n5(rW):Wre;function oD(jo){return typeof jo=="string"||!Zm(jo)&&gw(jo)&&L_(jo)==r1}function i5(jo){return typeof jo=="symbol"||gw(jo)&&L_(jo)==$u}var i8=iW?n5(iW):Ure;function Dse(jo){return jo===no}function Lse(jo){return gw(jo)&&B_(jo)==Is}function Bse(jo){return gw(jo)&&L_(jo)==Ks}var Fse=HM(HP),Pse=HM(function(jo,Ko){return jo<=Ko});function qU(jo){if(!jo)return[];if(xE(jo))return oD(jo)?Y4(jo):wE(jo);if(rO&&jo[rO])return Nne(jo[rO]());var Ko=B_(jo),xs=Ko==Gl?$P:Ko==y1?wM:o8;return xs(jo)}function SC(jo){if(!jo)return jo===0?jo:0;if(jo=K5(jo),jo===hs||jo===-hs){var Ko=jo<0?-1:1;return Ko*ys}return jo===jo?jo:0}function uv(jo){var Ko=SC(jo),xs=Ko%1;return Ko===Ko?xs?Ko-xs:Ko:0}function VU(jo){return jo?YA(uv(jo),0,ks):0}function K5(jo){if(typeof jo=="number")return jo;if(i5(jo))return vs;if(pw(jo)){var Ko=typeof jo.valueOf=="function"?jo.valueOf():jo;jo=pw(Ko)?Ko+"":Ko}if(typeof jo!="string")return jo===0?jo:+jo;jo=uW(jo);var xs=Rl.test(jo);return xs||eu.test(jo)?vP(jo.slice(2),xs?2:8):Us.test(jo)?vs:+jo}function GU(jo){return vC(jo,SE(jo))}function jse(jo){return jo?YA(uv(jo),-gs,gs):jo===0?jo:0}function By(jo){return jo==null?"":r5(jo)}var zse=t8(function(jo,Ko){if(gO(Ko)||xE(Ko)){vC(Ko,rS(Ko),jo);return}for(var xs in Ko)Hy.call(Ko,xs)&&e8(jo,xs,Ko[xs])}),WU=t8(function(jo,Ko){vC(Ko,SE(Ko),jo)}),sD=t8(function(jo,Ko,xs,Ms){vC(Ko,SE(Ko),jo,Ms)}),Hse=t8(function(jo,Ko,xs,Ms){vC(Ko,rS(Ko),jo,Ms)}),qse=yC(DP);function Vse(jo,Ko){var xs=J7(jo);return Ko==null?xs:MP(xs,Ko)}var Gse=yv(function(jo,Ko){jo=d2(jo);var xs=-1,Ms=Ko.length,xa=Ms>2?Ko[2]:no;for(xa&&Cw(Ko[0],Ko[1],xa)&&(Ms=1);++xs1),Dl}),vC(jo,tz(jo),xs),Ms&&(xs=V5(xs,yo|So|_o,_j));for(var xa=Ko.length;xa--;)UP(xs,Ko[xa]);return xs});function sae(jo,Ko){return XU(jo,rD(gm(Ko)))}var YU=yC(function(jo,Ko){return jo==null?{}:Xre(jo,Ko)});function XU(jo,Ko){if(jo==null)return{};var xs=J2(tz(jo),function(Ms){return[Ms]});return Ko=gm(Ko),HW(jo,xs,function(Ms,xa){return Ko(Ms,xa[0])})}function aD(jo,Ko,xs){Ko=l$(Ko,jo);var Ms=-1,xa=Ko.length;for(xa||(xa=1,jo=no);++MsKo){var Ms=jo;jo=Ko,Ko=Ms}if(xs||jo%1||Ko%1){var xa=xW();return o_(jo+xa*(Ko-jo+hC("1e-"+((xa+"").length-1))),Ko)}return VP(jo,Ko)}var xz=n8(function(jo,Ko,xs){return Ko=Ko.toLowerCase(),jo+(xs?lD(Ko):Ko)});function lD(jo){return oK(By(jo).toLowerCase())}function tK(jo){return jo=By(jo),jo&&jo.replace(zu,$ne).replace(mP,"")}function Sz(jo,Ko,xs){jo=By(jo),Ko=r5(Ko);var Ms=jo.length;xs=xs===no?Ms:YA(uv(xs),0,Ms);var xa=xs;return xs-=Ko.length,xs>=0&&jo.slice(xs,xa)==Ko}function pae(jo){return jo=By(jo),jo&&cp.test(jo)?jo.replace(j0,Ane):jo}function gae(jo){return jo=By(jo),jo&&P0.test(jo)?jo.replace(V0,"\\$&"):jo}var mae=n8(function(jo,Ko,xs){return jo+(xs?"-":"")+Ko.toLowerCase()}),nK=n8(function(jo,Ko,xs){return jo+(xs?" ":"")+Ko.toLowerCase()}),vae=iU("toLowerCase");function bae(jo,Ko,xs){jo=By(jo),Ko=uv(Ko);var Ms=Ko?K7(jo):0;if(!Ko||Ms>=Ko)return jo;var xa=(Ko-Ms)/2;return zM(RM(xa),xs)+jo+zM(AM(xa),xs)}function yae(jo,Ko,xs){jo=By(jo),Ko=uv(Ko);var Ms=Ko?K7(jo):0;return Ko&&Ms>>0,xs?(jo=By(jo),jo&&(typeof Ko=="string"||Ko!=null&&!mz(Ko))&&(Ko=r5(Ko),!Ko&&U7(jo))?c$(Y4(jo),0,xs):jo.split(Ko,xs)):[]}var Tae=n8(function(jo,Ko,xs){return jo+(xs?" ":"")+oK(Ko)});function Cae(jo,Ko,xs){return jo=By(jo),xs=xs==null?0:YA(uv(xs),0,jo.length),Ko=r5(Ko),jo.slice(xs,xs+Ko.length)==Ko}function $ae(jo,Ko,xs){var Ms=Il.templateSettings;xs&&Cw(jo,Ko,xs)&&(Ko=no),jo=By(jo),Ko=sD({},Ko,Ms,fU);var xa=sD({},Ko.imports,Ms.imports,fU),Dl=rS(xa),su=CP(xa,Dl),Cu,Vu,B1=0,M1=Ko.interpolate||N1,Z1="__p += '",L0=AP((Ko.escape||N1).source+"|"+M1.source+"|"+(M1===x0?_l:N1).source+"|"+(Ko.evaluate||N1).source+"|$","g"),pp="//# sourceURL="+(Hy.call(Ko,"sourceURL")?(Ko.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wm+"]")+` `;jo.replace(L0,function(um,Jm,fv,F_,P_,j_){return fv||(fv=F_),Z1+=jo.slice(B1,j_).replace(K0,Rne),Jm&&(Cu=!0,Z1+=`' + __e(`+Jm+`) + '`),P_&&(Vu=!0,Z1+=`'; @@ -203,15 +203,15 @@ https://github.com/mholt/PapaParse License: MIT */(function(eo,to){(function(no,io){eo.exports=io()})(commonjsGlobal$1,function no(){var io=typeof self<"u"?self:typeof window<"u"?window:io!==void 0?io:{},so=!io.document&&!!io.postMessage,ao=io.IS_PAPA_WORKER||!1,lo={},uo=0,ho={parse:function(Go,Do){var Uo=(Do=Do||{}).dynamicTyping||!1;if(Lo(Uo)&&(Do.dynamicTypingFunction=Uo,Uo={}),Do.dynamicTyping=Uo,Do.transform=!!Lo(Do.transform)&&Do.transform,Do.worker&&ho.WORKERS_SUPPORTED){var Ho=function(){if(!ho.WORKERS_SUPPORTED)return!1;var qo=(ps=io.URL||io.webkitURL||null,Qo=no.toString(),ho.BLOB_URL||(ho.BLOB_URL=ps.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",Qo,")();"],{type:"text/javascript"})))),Jo=new io.Worker(qo),ps,Qo;return Jo.onmessage=Oo,Jo.id=uo++,lo[Jo.id]=Jo}();return Ho.userStep=Do.step,Ho.userChunk=Do.chunk,Ho.userComplete=Do.complete,Ho.userError=Do.error,Do.step=Lo(Do.step),Do.chunk=Lo(Do.chunk),Do.complete=Lo(Do.complete),Do.error=Lo(Do.error),delete Do.worker,void Ho.postMessage({input:Go,config:Do,workerId:Ho.id})}var Yo=null;return ho.NODE_STREAM_INPUT,typeof Go=="string"?(Go=function(qo){return qo.charCodeAt(0)===65279?qo.slice(1):qo}(Go),Yo=Do.download?new yo(Do):new _o(Do)):Go.readable===!0&&Lo(Go.read)&&Lo(Go.on)?Yo=new ko(Do):(io.File&&Go instanceof File||Go instanceof Object)&&(Yo=new So(Do)),Yo.stream(Go)},unparse:function(Go,Do){var Uo=!1,Ho=!0,Yo=",",qo=`\r `,Jo='"',ps=Jo+Jo,Qo=!1,hs=null,gs=!1;(function(){if(typeof Do=="object"){if(typeof Do.delimiter!="string"||ho.BAD_DELIMITERS.filter(function(Os){return Do.delimiter.indexOf(Os)!==-1}).length||(Yo=Do.delimiter),(typeof Do.quotes=="boolean"||typeof Do.quotes=="function"||Array.isArray(Do.quotes))&&(Uo=Do.quotes),typeof Do.skipEmptyLines!="boolean"&&typeof Do.skipEmptyLines!="string"||(Qo=Do.skipEmptyLines),typeof Do.newline=="string"&&(qo=Do.newline),typeof Do.quoteChar=="string"&&(Jo=Do.quoteChar),typeof Do.header=="boolean"&&(Ho=Do.header),Array.isArray(Do.columns)){if(Do.columns.length===0)throw new Error("Option columns is empty");hs=Do.columns}Do.escapeChar!==void 0&&(ps=Do.escapeChar+Jo),(typeof Do.escapeFormulae=="boolean"||Do.escapeFormulae instanceof RegExp)&&(gs=Do.escapeFormulae instanceof RegExp?Do.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var ys=new RegExp($o(Jo),"g");if(typeof Go=="string"&&(Go=JSON.parse(Go)),Array.isArray(Go)){if(!Go.length||Array.isArray(Go[0]))return vs(null,Go,Qo);if(typeof Go[0]=="object")return vs(hs||Object.keys(Go[0]),Go,Qo)}else if(typeof Go=="object")return typeof Go.data=="string"&&(Go.data=JSON.parse(Go.data)),Array.isArray(Go.data)&&(Go.fields||(Go.fields=Go.meta&&Go.meta.fields||hs),Go.fields||(Go.fields=Array.isArray(Go.data[0])?Go.fields:typeof Go.data[0]=="object"?Object.keys(Go.data[0]):[]),Array.isArray(Go.data[0])||typeof Go.data[0]=="object"||(Go.data=[Go.data])),vs(Go.fields||[],Go.data||[],Qo);throw new Error("Unable to serialize unrecognized input");function vs(Os,Ts,Xs){var Ws="";typeof Os=="string"&&(Os=JSON.parse(Os)),typeof Ts=="string"&&(Ts=JSON.parse(Ts));var Ps=Array.isArray(Os)&&0=this._config.preview;if(ao)io.postMessage({results:qo,workerId:ho.WORKER_ID,finished:ps});else if(Lo(this._config.chunk)&&!Uo){if(this._config.chunk(qo,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);qo=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(qo.data),this._completeResults.errors=this._completeResults.errors.concat(qo.errors),this._completeResults.meta=qo.meta),this._completed||!ps||!Lo(this._config.complete)||qo&&qo.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ps||qo&&qo.meta.paused||this._nextChunk(),qo}this._halted=!0},this._sendError=function(Do){Lo(this._config.error)?this._config.error(Do):ao&&this._config.error&&io.postMessage({workerId:ho.WORKER_ID,error:Do,finished:!1})}}function yo(Go){var Do;(Go=Go||{}).chunkSize||(Go.chunkSize=ho.RemoteChunkSize),mo.call(this,Go),this._nextChunk=so?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(Uo){this._input=Uo,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(Do=new XMLHttpRequest,this._config.withCredentials&&(Do.withCredentials=this._config.withCredentials),so||(Do.onload=Po(this._chunkLoaded,this),Do.onerror=Po(this._chunkError,this)),Do.open(this._config.downloadRequestBody?"POST":"GET",this._input,!so),this._config.downloadRequestHeaders){var Uo=this._config.downloadRequestHeaders;for(var Ho in Uo)Do.setRequestHeader(Ho,Uo[Ho])}if(this._config.chunkSize){var Yo=this._start+this._config.chunkSize-1;Do.setRequestHeader("Range","bytes="+this._start+"-"+Yo)}try{Do.send(this._config.downloadRequestBody)}catch(qo){this._chunkError(qo.message)}so&&Do.status===0&&this._chunkError()}},this._chunkLoaded=function(){Do.readyState===4&&(Do.status<200||400<=Do.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:Do.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(Uo){var Ho=Uo.getResponseHeader("Content-Range");return Ho===null?-1:parseInt(Ho.substring(Ho.lastIndexOf("/")+1))}(Do),this.parseChunk(Do.responseText)))},this._chunkError=function(Uo){var Ho=Do.statusText||Uo;this._sendError(new Error(Ho))}}function So(Go){var Do,Uo;(Go=Go||{}).chunkSize||(Go.chunkSize=ho.LocalChunkSize),mo.call(this,Go);var Ho=typeof FileReader<"u";this.stream=function(Yo){this._input=Yo,Uo=Yo.slice||Yo.webkitSlice||Yo.mozSlice,Ho?((Do=new FileReader).onload=Po(this._chunkLoaded,this),Do.onerror=Po(this._chunkError,this)):Do=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(Yo.target.result)},this._chunkError=function(){this._sendError(Do.error)}}function _o(Go){var Do;mo.call(this,Go=Go||{}),this.stream=function(Uo){return Do=Uo,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var Uo,Ho=this._config.chunkSize;return Ho?(Uo=Do.substring(0,Ho),Do=Do.substring(Ho)):(Uo=Do,Do=""),this._finished=!Do,this.parseChunk(Uo)}}}function ko(Go){mo.call(this,Go=Go||{});var Do=[],Uo=!0,Ho=!1;this.pause=function(){mo.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){mo.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(Yo){this._input=Yo,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){Ho&&Do.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),Do.length?this.parseChunk(Do.shift()):Uo=!0},this._streamData=Po(function(Yo){try{Do.push(typeof Yo=="string"?Yo:Yo.toString(this._config.encoding)),Uo&&(Uo=!1,this._checkIsFinished(),this.parseChunk(Do.shift()))}catch(qo){this._streamError(qo)}},this),this._streamError=Po(function(Yo){this._streamCleanUp(),this._sendError(Yo)},this),this._streamEnd=Po(function(){this._streamCleanUp(),Ho=!0,this._streamData("")},this),this._streamCleanUp=Po(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function Co(Go){var Do,Uo,Ho,Yo=Math.pow(2,53),qo=-Yo,Jo=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,ps=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Qo=this,hs=0,gs=0,ys=!1,vs=!1,ks=[],Os={data:[],errors:[],meta:{}};if(Lo(Go.step)){var Ts=Go.step;Go.step=function(Fs){if(Os=Fs,Ps())Ws();else{if(Ws(),Os.data.length===0)return;hs+=Fs.data.length,Go.preview&&hs>Go.preview?Uo.abort():(Os.data=Os.data[0],Ts(Os,Qo))}}}function Xs(Fs){return Go.skipEmptyLines==="greedy"?Fs.join("").trim()==="":Fs.length===1&&Fs[0].length===0}function Ws(){return Os&&Ho&&(ga("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+ho.DefaultDelimiter+"'"),Ho=!1),Go.skipEmptyLines&&(Os.data=Os.data.filter(function(Fs){return!Xs(Fs)})),Ps()&&function(){if(!Os)return;function Fs(Vs,El){Lo(Go.transformHeader)&&(Vs=Go.transformHeader(Vs,El)),ks.push(Vs)}if(Array.isArray(Os.data[0])){for(var Js=0;Ps()&&Js=ks.length?"__parsed_extra":ks[yl]),Go.transform&&(du=Go.transform(du,Qs)),du=qs(Qs,du),Qs==="__parsed_extra"?(Gl[Qs]=Gl[Qs]||[],Gl[Qs].push(du)):Gl[Qs]=du}return Go.header&&(yl>ks.length?ga("FieldMismatch","TooManyFields","Too many fields: expected "+ks.length+" fields but parsed "+yl,gs+El):yl=this._config.preview;if(ao)io.postMessage({results:qo,workerId:ho.WORKER_ID,finished:ps});else if(Lo(this._config.chunk)&&!Uo){if(this._config.chunk(qo,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);qo=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(qo.data),this._completeResults.errors=this._completeResults.errors.concat(qo.errors),this._completeResults.meta=qo.meta),this._completed||!ps||!Lo(this._config.complete)||qo&&qo.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ps||qo&&qo.meta.paused||this._nextChunk(),qo}this._halted=!0},this._sendError=function(Do){Lo(this._config.error)?this._config.error(Do):ao&&this._config.error&&io.postMessage({workerId:ho.WORKER_ID,error:Do,finished:!1})}}function yo(Go){var Do;(Go=Go||{}).chunkSize||(Go.chunkSize=ho.RemoteChunkSize),mo.call(this,Go),this._nextChunk=so?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(Uo){this._input=Uo,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(Do=new XMLHttpRequest,this._config.withCredentials&&(Do.withCredentials=this._config.withCredentials),so||(Do.onload=Fo(this._chunkLoaded,this),Do.onerror=Fo(this._chunkError,this)),Do.open(this._config.downloadRequestBody?"POST":"GET",this._input,!so),this._config.downloadRequestHeaders){var Uo=this._config.downloadRequestHeaders;for(var Ho in Uo)Do.setRequestHeader(Ho,Uo[Ho])}if(this._config.chunkSize){var Yo=this._start+this._config.chunkSize-1;Do.setRequestHeader("Range","bytes="+this._start+"-"+Yo)}try{Do.send(this._config.downloadRequestBody)}catch(qo){this._chunkError(qo.message)}so&&Do.status===0&&this._chunkError()}},this._chunkLoaded=function(){Do.readyState===4&&(Do.status<200||400<=Do.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:Do.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(Uo){var Ho=Uo.getResponseHeader("Content-Range");return Ho===null?-1:parseInt(Ho.substring(Ho.lastIndexOf("/")+1))}(Do),this.parseChunk(Do.responseText)))},this._chunkError=function(Uo){var Ho=Do.statusText||Uo;this._sendError(new Error(Ho))}}function So(Go){var Do,Uo;(Go=Go||{}).chunkSize||(Go.chunkSize=ho.LocalChunkSize),mo.call(this,Go);var Ho=typeof FileReader<"u";this.stream=function(Yo){this._input=Yo,Uo=Yo.slice||Yo.webkitSlice||Yo.mozSlice,Ho?((Do=new FileReader).onload=Fo(this._chunkLoaded,this),Do.onerror=Fo(this._chunkError,this)):Do=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(Yo.target.result)},this._chunkError=function(){this._sendError(Do.error)}}function _o(Go){var Do;mo.call(this,Go=Go||{}),this.stream=function(Uo){return Do=Uo,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var Uo,Ho=this._config.chunkSize;return Ho?(Uo=Do.substring(0,Ho),Do=Do.substring(Ho)):(Uo=Do,Do=""),this._finished=!Do,this.parseChunk(Uo)}}}function ko(Go){mo.call(this,Go=Go||{});var Do=[],Uo=!0,Ho=!1;this.pause=function(){mo.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){mo.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(Yo){this._input=Yo,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){Ho&&Do.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),Do.length?this.parseChunk(Do.shift()):Uo=!0},this._streamData=Fo(function(Yo){try{Do.push(typeof Yo=="string"?Yo:Yo.toString(this._config.encoding)),Uo&&(Uo=!1,this._checkIsFinished(),this.parseChunk(Do.shift()))}catch(qo){this._streamError(qo)}},this),this._streamError=Fo(function(Yo){this._streamCleanUp(),this._sendError(Yo)},this),this._streamEnd=Fo(function(){this._streamCleanUp(),Ho=!0,this._streamData("")},this),this._streamCleanUp=Fo(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function Co(Go){var Do,Uo,Ho,Yo=Math.pow(2,53),qo=-Yo,Jo=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,ps=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Qo=this,hs=0,gs=0,ys=!1,vs=!1,ks=[],Os={data:[],errors:[],meta:{}};if(Lo(Go.step)){var Ts=Go.step;Go.step=function(Fs){if(Os=Fs,Ps())Ws();else{if(Ws(),Os.data.length===0)return;hs+=Fs.data.length,Go.preview&&hs>Go.preview?Uo.abort():(Os.data=Os.data[0],Ts(Os,Qo))}}}function Xs(Fs){return Go.skipEmptyLines==="greedy"?Fs.join("").trim()==="":Fs.length===1&&Fs[0].length===0}function Ws(){return Os&&Ho&&(ga("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+ho.DefaultDelimiter+"'"),Ho=!1),Go.skipEmptyLines&&(Os.data=Os.data.filter(function(Fs){return!Xs(Fs)})),Ps()&&function(){if(!Os)return;function Fs(Vs,El){Lo(Go.transformHeader)&&(Vs=Go.transformHeader(Vs,El)),ks.push(Vs)}if(Array.isArray(Os.data[0])){for(var Js=0;Ps()&&Js=ks.length?"__parsed_extra":ks[yl]),Go.transform&&(du=Go.transform(du,Qs)),du=qs(Qs,du),Qs==="__parsed_extra"?(Gl[Qs]=Gl[Qs]||[],Gl[Qs].push(du)):Gl[Qs]=du}return Go.header&&(yl>ks.length?ga("FieldMismatch","TooManyFields","Too many fields: expected "+ks.length+" fields but parsed "+yl,gs+El):yl=Fu.length/2?`\r `:"\r"}(Fs,El)),Ho=!1,Go.delimiter)Lo(Go.delimiter)&&(Go.delimiter=Go.delimiter(Fs),Os.meta.delimiter=Go.delimiter);else{var yl=function(Qs,du,Ol,Fu,ju){var F1,y1,r1,$u;ju=ju||[","," ","|",";",ho.RECORD_SEP,ho.UNIT_SEP];for(var Kl=0;Kl=Jo)return fu(!0)}else for(Is=hs,hs++;;){if((Is=ys.indexOf(Do,Is+1))===-1)return ks||ga.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:qs.length,index:hs}),Cl();if(Is===Os-1)return Cl(ys.substring(hs,Is).replace(Kl,Do));if(Do!==Qo||ys[Is+1]!==Qo){if(Do===Qo||Is===0||ys[Is-1]!==Qo){r1!==-1&&r1=Jo)return fu(!0);break}ga.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:qs.length,index:hs}),Is++}}else Is++}return Cl();function Ds(e1){qs.push(e1),Js=hs}function Zs(e1){var Gu=0;if(e1!==-1){var w1=ys.substring(Is+1,e1);w1&&w1.trim()===""&&(Gu=w1.length)}return Gu}function Cl(e1){return ks||(e1===void 0&&(e1=ys.substring(hs)),Fs.push(e1),hs=Os,Ds(Fs),Ps&&Lu()),fu()}function ba(e1){hs=e1,Ds(Fs),Fs=[],$u=ys.indexOf(Ho,hs)}function fu(e1){return{data:qs,errors:ga,meta:{delimiter:Uo,linebreak:Ho,aborted:gs,truncated:!!e1,cursor:Js+(vs||0)}}}function Lu(){qo(fu()),qs=[],ga=[]}},this.abort=function(){gs=!0},this.getCharIndex=function(){return hs}}function Oo(Go){var Do=Go.data,Uo=lo[Do.workerId],Ho=!1;if(Do.error)Uo.userError(Do.error,Do.file);else if(Do.results&&Do.results.data){var Yo={abort:function(){Ho=!0,No(Do.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:Mo,resume:Mo};if(Lo(Uo.userStep)){for(var qo=0;qo{const io={};return Object.keys(eo).forEach(so=>{const ao=eo[so];so===to?io[no]=ao:io[so]=ao}),io},getDefaultNodeVariant=eo=>{const{defaultVariantId:to=BASELINE_VARIANT_ID,variants:no={}}=eo,io=no[to];return io==null?void 0:io.node},getDefaultNodeList=(eo,to)=>{const no=[];return eo.forEach(io=>{const so=to.get(io);if(!so)return;const ao=getDefaultNodeVariant(so);ao&&no.push(ao)}),no},getFlowSnapshotNodeList=(eo,to,no)=>{const io=[];return eo.forEach(so=>{if(no.includes(so)){io.push({name:so,use_variants:!0});return}const ao=to[so];if(!ao)return;const lo={inputs:{},...getDefaultNodeVariant(ao)};lo&&io.push(lo)}),io};ToolType.llm;ToolType.prompt;ValueType.string,ToolType.python;ValueType.string,ToolType.typescript;const getTokensUsageByRow=eo=>{var to,no,io,so,ao,lo;return eo.children&&eo.children.length>0?eo.children.reduce((uo,ho)=>{const go=getTokensUsageByRow(ho);return{totalTokens:uo.totalTokens+go.totalTokens,promptTokens:uo.promptTokens+go.promptTokens,completionTokens:uo.completionTokens+go.completionTokens}},{totalTokens:0,promptTokens:0,completionTokens:0}):{totalTokens:((no=(to=eo.output)==null?void 0:to.usage)==null?void 0:no.total_tokens)??0,promptTokens:((so=(io=eo.output)==null?void 0:io.usage)==null?void 0:so.prompt_tokens)??0,completionTokens:((lo=(ao=eo.output)==null?void 0:ao.usage)==null?void 0:lo.completion_tokens)??0}},numberToDigitsString=eo=>eo.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),timePDTFormatter=eo=>{const to=new Date(eo),no=getUTCTimezoneOffset();return`${to.getFullYear()}-${to.getMonth()+1}-${to.getDate()} ${to.getHours()}:${to.getMinutes()}:${to.getSeconds()}:${to.getMilliseconds()} (${no})`},getUTCTimezoneOffset=()=>{const eo=new Date().getTimezoneOffset(),to=Math.abs(eo);return`UTC${(eo<0?"+":"-")+`00${Math.floor(to/60)}`.slice(-2)}:${`00${to%60}`.slice(-2)}`},hasOwn=(eo,to)=>Object.prototype.hasOwnProperty.call(eo,to),resolveTool=(eo,to,no,io)=>{var so,ao,lo;if(((so=eo==null?void 0:eo.source)==null?void 0:so.type)==="code")return to;if(((ao=eo==null?void 0:eo.source)==null?void 0:ao.type)==="package_with_prompt"){const uo=(lo=eo==null?void 0:eo.source)==null?void 0:lo.path,ho=io(uo??"");return no?{...no,inputs:{...ho==null?void 0:ho.inputs,...addPositionField(no==null?void 0:no.inputs,"parameter")},code:ho==null?void 0:ho.code}:void 0}return no},addPositionField=(eo,to)=>{if(!eo)return eo;const no={...eo};return Object.keys(no).forEach(io=>{no[io]={...no[io],position:to}}),no},keyWords=["and","as","assert","break","class","continue","def","del","elif","else","except","False","finally","for","from","global","if","import","in","is","lambda","None","nonlocal","not","or","pass","raise","return","True","try","while","with","yield"],keyFunction=["abs","all","any","ascii","bin","bool","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","str","sum","super","tuple","type","vars","zip"],flowWords=["input","inputs","output","outputs","flow","flows"],checkNodeNameValid=eo=>keyWords.some(to=>to===eo)||keyFunction.some(to=>to===eo)||flowWords.some(to=>to===eo)?!1:/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(eo),getNodesThatMoreThanOneVariant=(eo={})=>{const to=[];return Object.keys(eo).forEach(no=>{const io=eo[no],{variants:so={},defaultVariantId:ao,default_variant_id:lo}=io,uo=Object.keys(so).length;uo>1&&to.push({nodeName:no,variantsCount:uo,defaultVariantId:ao??lo??BASELINE_VARIANT_ID,variants:so})}),to},getVariantNodes=(eo={})=>{const to={};return Object.keys(eo).forEach(no=>{const io=eo[no],{variants:so={}}=io;if(Object.keys(so).length>1){const lo=lodashExports.cloneDeep(io);Object.entries((lo==null?void 0:lo.variants)??{}).forEach(([ho,go])=>{go.node&&delete go.node.name});const uo=lo.defaultVariantId;delete lo.defaultVariantId,to[no]={default_variant_id:uo,...lo}}}),Object.keys(to).length>0?to:void 0},revValueRegex=/^\$\{(\S+)\}$/,getRefValueFromRaw=eo=>{var to,no;return(no=(to=`${eo??""}`)==null?void 0:to.match(revValueRegex))==null?void 0:no[1]},generateRandomStrings=eo=>{const to="abcdefghijklmnopqrstuvwxyz0123456789";let no="";for(let io=0;iogenerateRandomStrings(8),getRandomOutputDefinitionId=getRandomInputDefinitionId,intNumberRegExp=/^[+-]?\d+$/,doubleNumberRegExp=/^[+-]?\d+(\.\d+)?$/,isBool=eo=>eo.toLowerCase()==="true"||eo.toLowerCase()==="false",isNumber=eo=>doubleNumberRegExp.test(eo.trim())?eo===eo.trim()&&eo.length>0&&!Number.isNaN(Number(eo)):!1,isInt=eo=>intNumberRegExp.test(eo.trim())?isNumber(eo)&&Number.isInteger(Number(eo)):!1,isList$1=eo=>{try{const to=JSON.parse(eo);return Array.isArray(to)}catch{return!1}},isObject$i=eo=>{try{const to=JSON.parse(eo);return Object.prototype.toString.call(to)==="[object Object]"}catch{return!1}},isTypeValid=(eo,to)=>{const no=typeof eo,io=no==="string";switch(to){case ValueType.int:return io?isInt(eo):Number.isInteger(eo);case ValueType.double:return io?isNumber(eo):no==="number";case ValueType.list:return io?isList$1(eo):Array.isArray(eo);case ValueType.object:return io?isObject$i(eo):no==="object";case ValueType.bool:return io?isBool(eo):no==="boolean";case ValueType.function_str:return!0;default:return!0}},getCycle=(eo,to,no,io)=>{var lo,uo;const so=[],ao=new Set(eo.keys());for(eo.forEach((ho,go)=>{ho===0&&so.push(go)});so.length>0;){const ho=so.shift();ho&&(ao.delete(ho),(lo=to.get(ho))==null||lo.forEach(go=>{const mo=(eo.get(go)??0)-1;eo.set(go,mo),mo===0&&so.push(go)}))}for(no.forEach((ho,go)=>{ho===0&&so.push(go)});so.length>0;){const ho=so.shift();ho&&(ao.delete(ho),(uo=io.get(ho))==null||uo.forEach(go=>{const mo=(no.get(go)??0)-1;no.set(go,mo),mo===0&&so.push(go)}))}return ao};function commonjsRequire$1(eo){throw new Error('Could not dynamically require "'+eo+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function listCacheClear$3(){this.__data__=[],this.size=0}var _listCacheClear$1=listCacheClear$3;function eq$6(eo,to){return eo===to||eo!==eo&&to!==to}var eq_1$1=eq$6,eq$5=eq_1$1;function assocIndexOf$6(eo,to){for(var no=eo.length;no--;)if(eq$5(eo[no][0],to))return no;return-1}var _assocIndexOf$1=assocIndexOf$6,assocIndexOf$5=_assocIndexOf$1,arrayProto$2=Array.prototype,splice$3=arrayProto$2.splice;function listCacheDelete$3(eo){var to=this.__data__,no=assocIndexOf$5(to,eo);if(no<0)return!1;var io=to.length-1;return no==io?to.pop():splice$3.call(to,no,1),--this.size,!0}var _listCacheDelete$1=listCacheDelete$3,assocIndexOf$4=_assocIndexOf$1;function listCacheGet$3(eo){var to=this.__data__,no=assocIndexOf$4(to,eo);return no<0?void 0:to[no][1]}var _listCacheGet$1=listCacheGet$3,assocIndexOf$3=_assocIndexOf$1;function listCacheHas$3(eo){return assocIndexOf$3(this.__data__,eo)>-1}var _listCacheHas$1=listCacheHas$3,assocIndexOf$2=_assocIndexOf$1;function listCacheSet$3(eo,to){var no=this.__data__,io=assocIndexOf$2(no,eo);return io<0?(++this.size,no.push([eo,to])):no[io][1]=to,this}var _listCacheSet$1=listCacheSet$3,listCacheClear$2=_listCacheClear$1,listCacheDelete$2=_listCacheDelete$1,listCacheGet$2=_listCacheGet$1,listCacheHas$2=_listCacheHas$1,listCacheSet$2=_listCacheSet$1;function ListCache$6(eo){var to=-1,no=eo==null?0:eo.length;for(this.clear();++to-1&&eo%1==0&&eo-1&&eo%1==0&&eo<=MAX_SAFE_INTEGER$3}var isLength_1=isLength$4,baseGetTag$6=_baseGetTag$1,isLength$3=isLength_1,isObjectLike$8=isObjectLike_1$1,argsTag$6="[object Arguments]",arrayTag$5="[object Array]",boolTag$7="[object Boolean]",dateTag$7="[object Date]",errorTag$5="[object Error]",funcTag$5="[object Function]",mapTag$c="[object Map]",numberTag$7="[object Number]",objectTag$9="[object Object]",regexpTag$7="[object RegExp]",setTag$c="[object Set]",stringTag$8="[object String]",weakMapTag$5="[object WeakMap]",arrayBufferTag$7="[object ArrayBuffer]",dataViewTag$9="[object DataView]",float32Tag$5="[object Float32Array]",float64Tag$5="[object Float64Array]",int8Tag$5="[object Int8Array]",int16Tag$5="[object Int16Array]",int32Tag$5="[object Int32Array]",uint8Tag$5="[object Uint8Array]",uint8ClampedTag$5="[object Uint8ClampedArray]",uint16Tag$5="[object Uint16Array]",uint32Tag$5="[object Uint32Array]",typedArrayTags$1={};typedArrayTags$1[float32Tag$5]=typedArrayTags$1[float64Tag$5]=typedArrayTags$1[int8Tag$5]=typedArrayTags$1[int16Tag$5]=typedArrayTags$1[int32Tag$5]=typedArrayTags$1[uint8Tag$5]=typedArrayTags$1[uint8ClampedTag$5]=typedArrayTags$1[uint16Tag$5]=typedArrayTags$1[uint32Tag$5]=!0;typedArrayTags$1[argsTag$6]=typedArrayTags$1[arrayTag$5]=typedArrayTags$1[arrayBufferTag$7]=typedArrayTags$1[boolTag$7]=typedArrayTags$1[dataViewTag$9]=typedArrayTags$1[dateTag$7]=typedArrayTags$1[errorTag$5]=typedArrayTags$1[funcTag$5]=typedArrayTags$1[mapTag$c]=typedArrayTags$1[numberTag$7]=typedArrayTags$1[objectTag$9]=typedArrayTags$1[regexpTag$7]=typedArrayTags$1[setTag$c]=typedArrayTags$1[stringTag$8]=typedArrayTags$1[weakMapTag$5]=!1;function baseIsTypedArray$2(eo){return isObjectLike$8(eo)&&isLength$3(eo.length)&&!!typedArrayTags$1[baseGetTag$6(eo)]}var _baseIsTypedArray=baseIsTypedArray$2;function baseUnary$5(eo){return function(to){return eo(to)}}var _baseUnary=baseUnary$5,_nodeUtil={exports:{}};_nodeUtil.exports;(function(eo,to){var no=_freeGlobal$1,io=to&&!to.nodeType&&to,so=io&&!0&&eo&&!eo.nodeType&&eo,ao=so&&so.exports===io,lo=ao&&no.process,uo=function(){try{var ho=so&&so.require&&so.require("util").types;return ho||lo&&lo.binding&&lo.binding("util")}catch{}}();eo.exports=uo})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray$1=_baseIsTypedArray,baseUnary$4=_baseUnary,nodeUtil$4=_nodeUtilExports,nodeIsTypedArray$1=nodeUtil$4&&nodeUtil$4.isTypedArray,isTypedArray$4=nodeIsTypedArray$1?baseUnary$4(nodeIsTypedArray$1):baseIsTypedArray$1,isTypedArray_1=isTypedArray$4,baseTimes$1=_baseTimes,isArguments$4=isArguments_1,isArray$g=isArray_1$1,isBuffer$4=isBufferExports,isIndex$4=_isIndex$1,isTypedArray$3=isTypedArray_1,objectProto$x=Object.prototype,hasOwnProperty$u=objectProto$x.hasOwnProperty;function arrayLikeKeys$3(eo,to){var no=isArray$g(eo),io=!no&&isArguments$4(eo),so=!no&&!io&&isBuffer$4(eo),ao=!no&&!io&&!so&&isTypedArray$3(eo),lo=no||io||so||ao,uo=lo?baseTimes$1(eo.length,String):[],ho=uo.length;for(var go in eo)(to||hasOwnProperty$u.call(eo,go))&&!(lo&&(go=="length"||so&&(go=="offset"||go=="parent")||ao&&(go=="buffer"||go=="byteLength"||go=="byteOffset")||isIndex$4(go,ho)))&&uo.push(go);return uo}var _arrayLikeKeys=arrayLikeKeys$3,objectProto$w=Object.prototype;function isPrototype$4(eo){var to=eo&&eo.constructor,no=typeof to=="function"&&to.prototype||objectProto$w;return eo===no}var _isPrototype=isPrototype$4;function overArg$3(eo,to){return function(no){return eo(to(no))}}var _overArg=overArg$3,overArg$2=_overArg,nativeKeys$3=overArg$2(Object.keys,Object),_nativeKeys=nativeKeys$3,isPrototype$3=_isPrototype,nativeKeys$2=_nativeKeys,objectProto$v=Object.prototype,hasOwnProperty$t=objectProto$v.hasOwnProperty;function baseKeys$2(eo){if(!isPrototype$3(eo))return nativeKeys$2(eo);var to=[];for(var no in Object(eo))hasOwnProperty$t.call(eo,no)&&no!="constructor"&&to.push(no);return to}var _baseKeys=baseKeys$2,isFunction$5=isFunction_1$1,isLength$2=isLength_1;function isArrayLike$9(eo){return eo!=null&&isLength$2(eo.length)&&!isFunction$5(eo)}var isArrayLike_1=isArrayLike$9,arrayLikeKeys$2=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$8=isArrayLike_1;function keys$8(eo){return isArrayLike$8(eo)?arrayLikeKeys$2(eo):baseKeys$1(eo)}var keys_1=keys$8,copyObject$4=_copyObject,keys$7=keys_1;function baseAssign$2(eo,to){return eo&©Object$4(to,keys$7(to),eo)}var _baseAssign=baseAssign$2;function nativeKeysIn$2(eo){var to=[];if(eo!=null)for(var no in Object(eo))to.push(no);return to}var _nativeKeysIn=nativeKeysIn$2,isObject$e=isObject_1$2,isPrototype$2=_isPrototype,nativeKeysIn$1=_nativeKeysIn,objectProto$u=Object.prototype,hasOwnProperty$s=objectProto$u.hasOwnProperty;function baseKeysIn$2(eo){if(!isObject$e(eo))return nativeKeysIn$1(eo);var to=isPrototype$2(eo),no=[];for(var io in eo)io=="constructor"&&(to||!hasOwnProperty$s.call(eo,io))||no.push(io);return no}var _baseKeysIn=baseKeysIn$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeysIn$1=_baseKeysIn,isArrayLike$7=isArrayLike_1;function keysIn$4(eo){return isArrayLike$7(eo)?arrayLikeKeys$1(eo,!0):baseKeysIn$1(eo)}var keysIn_1=keysIn$4,copyObject$3=_copyObject,keysIn$3=keysIn_1;function baseAssignIn$2(eo,to){return eo&©Object$3(to,keysIn$3(to),eo)}var _baseAssignIn=baseAssignIn$2,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(eo,to){var no=_root$2,io=to&&!to.nodeType&&to,so=io&&!0&&eo&&!eo.nodeType&&eo,ao=so&&so.exports===io,lo=ao?no.Buffer:void 0,uo=lo?lo.allocUnsafe:void 0;function ho(go,mo){if(mo)return go.slice();var yo=go.length,So=uo?uo(yo):new go.constructor(yo);return go.copy(So),So}eo.exports=ho})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$4(eo,to){var no=-1,io=eo.length;for(to||(to=Array(io));++nouo))return!1;var go=ao.get(eo),mo=ao.get(to);if(go&&mo)return go==to&&mo==eo;var yo=-1,So=!0,_o=no&COMPARE_UNORDERED_FLAG$7?new SetCache$2:void 0;for(ao.set(eo,to),ao.set(to,eo);++yo0&&no(uo)?to>1?baseFlatten$3(uo,to-1,no,io,so):arrayPush$3(so,uo):io||(so[so.length]=uo)}return so}var _baseFlatten=baseFlatten$3;function apply$5(eo,to,no){switch(no.length){case 0:return eo.call(to);case 1:return eo.call(to,no[0]);case 2:return eo.call(to,no[0],no[1]);case 3:return eo.call(to,no[0],no[1],no[2])}return eo.apply(to,no)}var _apply=apply$5,apply$4=_apply,nativeMax$6=Math.max;function overRest$3(eo,to,no){return to=nativeMax$6(to===void 0?eo.length-1:to,0),function(){for(var io=arguments,so=-1,ao=nativeMax$6(io.length-to,0),lo=Array(ao);++so0){if(++to>=HOT_COUNT$1)return arguments[0]}else to=0;return eo.apply(void 0,arguments)}}var _shortOut=shortOut$2,baseSetToString$2=_baseSetToString,shortOut$1=_shortOut,setToString$4=shortOut$1(baseSetToString$2),_setToString=setToString$4,identity$b=identity_1,overRest$2=_overRest,setToString$3=_setToString;function baseRest$2(eo,to){return setToString$3(overRest$2(eo,to,identity$b),eo+"")}var _baseRest=baseRest$2;function baseFindIndex$3(eo,to,no,io){for(var so=eo.length,ao=no+(io?1:-1);io?ao--:++ao-1}var _arrayIncludes=arrayIncludes$2;function arrayIncludesWith$2(eo,to,no){for(var io=-1,so=eo==null?0:eo.length;++io=LARGE_ARRAY_SIZE$2){var go=to?null:createSet$2(eo);if(go)return setToArray$1(go);lo=!1,so=cacheHas$1,ho=new SetCache$1}else ho=to?[]:uo;e:for(;++io1?_o.setNode(ko,yo):_o.setNode(ko)}),this},so.prototype.setNode=function(mo,yo){return eo.has(this._nodes,mo)?(arguments.length>1&&(this._nodes[mo]=yo),this):(this._nodes[mo]=arguments.length>1?yo:this._defaultNodeLabelFn(mo),this._isCompound&&(this._parent[mo]=no,this._children[mo]={},this._children[no][mo]=!0),this._in[mo]={},this._preds[mo]={},this._out[mo]={},this._sucs[mo]={},++this._nodeCount,this)},so.prototype.node=function(mo){return this._nodes[mo]},so.prototype.hasNode=function(mo){return eo.has(this._nodes,mo)},so.prototype.removeNode=function(mo){var yo=this;if(eo.has(this._nodes,mo)){var So=function(_o){yo.removeEdge(yo._edgeObjs[_o])};delete this._nodes[mo],this._isCompound&&(this._removeFromParentsChildList(mo),delete this._parent[mo],eo.each(this.children(mo),function(_o){yo.setParent(_o)}),delete this._children[mo]),eo.each(eo.keys(this._in[mo]),So),delete this._in[mo],delete this._preds[mo],eo.each(eo.keys(this._out[mo]),So),delete this._out[mo],delete this._sucs[mo],--this._nodeCount}return this},so.prototype.setParent=function(mo,yo){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(eo.isUndefined(yo))yo=no;else{yo+="";for(var So=yo;!eo.isUndefined(So);So=this.parent(So))if(So===mo)throw new Error("Setting "+yo+" as parent of "+mo+" would create a cycle");this.setNode(yo)}return this.setNode(mo),this._removeFromParentsChildList(mo),this._parent[mo]=yo,this._children[yo][mo]=!0,this},so.prototype._removeFromParentsChildList=function(mo){delete this._children[this._parent[mo]][mo]},so.prototype.parent=function(mo){if(this._isCompound){var yo=this._parent[mo];if(yo!==no)return yo}},so.prototype.children=function(mo){if(eo.isUndefined(mo)&&(mo=no),this._isCompound){var yo=this._children[mo];if(yo)return eo.keys(yo)}else{if(mo===no)return this.nodes();if(this.hasNode(mo))return[]}},so.prototype.predecessors=function(mo){var yo=this._preds[mo];if(yo)return eo.keys(yo)},so.prototype.successors=function(mo){var yo=this._sucs[mo];if(yo)return eo.keys(yo)},so.prototype.neighbors=function(mo){var yo=this.predecessors(mo);if(yo)return eo.union(yo,this.successors(mo))},so.prototype.isLeaf=function(mo){var yo;return this.isDirected()?yo=this.successors(mo):yo=this.neighbors(mo),yo.length===0},so.prototype.filterNodes=function(mo){var yo=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});yo.setGraph(this.graph());var So=this;eo.each(this._nodes,function(Co,$o){mo($o)&&yo.setNode($o,Co)}),eo.each(this._edgeObjs,function(Co){yo.hasNode(Co.v)&&yo.hasNode(Co.w)&&yo.setEdge(Co,So.edge(Co))});var _o={};function ko(Co){var $o=So.parent(Co);return $o===void 0||yo.hasNode($o)?(_o[Co]=$o,$o):$o in _o?_o[$o]:ko($o)}return this._isCompound&&eo.each(yo.nodes(),function(Co){yo.setParent(Co,ko(Co))}),yo},so.prototype.setDefaultEdgeLabel=function(mo){return eo.isFunction(mo)||(mo=eo.constant(mo)),this._defaultEdgeLabelFn=mo,this},so.prototype.edgeCount=function(){return this._edgeCount},so.prototype.edges=function(){return eo.values(this._edgeObjs)},so.prototype.setPath=function(mo,yo){var So=this,_o=arguments;return eo.reduce(mo,function(ko,Co){return _o.length>1?So.setEdge(ko,Co,yo):So.setEdge(ko,Co),Co}),this},so.prototype.setEdge=function(){var mo,yo,So,_o,ko=!1,Co=arguments[0];typeof Co=="object"&&Co!==null&&"v"in Co?(mo=Co.v,yo=Co.w,So=Co.name,arguments.length===2&&(_o=arguments[1],ko=!0)):(mo=Co,yo=arguments[1],So=arguments[3],arguments.length>2&&(_o=arguments[2],ko=!0)),mo=""+mo,yo=""+yo,eo.isUndefined(So)||(So=""+So);var $o=uo(this._isDirected,mo,yo,So);if(eo.has(this._edgeLabels,$o))return ko&&(this._edgeLabels[$o]=_o),this;if(!eo.isUndefined(So)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(mo),this.setNode(yo),this._edgeLabels[$o]=ko?_o:this._defaultEdgeLabelFn(mo,yo,So);var Ro=ho(this._isDirected,mo,yo,So);return mo=Ro.v,yo=Ro.w,Object.freeze(Ro),this._edgeObjs[$o]=Ro,ao(this._preds[yo],mo),ao(this._sucs[mo],yo),this._in[yo][$o]=Ro,this._out[mo][$o]=Ro,this._edgeCount++,this},so.prototype.edge=function(mo,yo,So){var _o=arguments.length===1?go(this._isDirected,arguments[0]):uo(this._isDirected,mo,yo,So);return this._edgeLabels[_o]},so.prototype.hasEdge=function(mo,yo,So){var _o=arguments.length===1?go(this._isDirected,arguments[0]):uo(this._isDirected,mo,yo,So);return eo.has(this._edgeLabels,_o)},so.prototype.removeEdge=function(mo,yo,So){var _o=arguments.length===1?go(this._isDirected,arguments[0]):uo(this._isDirected,mo,yo,So),ko=this._edgeObjs[_o];return ko&&(mo=ko.v,yo=ko.w,delete this._edgeLabels[_o],delete this._edgeObjs[_o],lo(this._preds[yo],mo),lo(this._sucs[mo],yo),delete this._in[yo][_o],delete this._out[mo][_o],this._edgeCount--),this},so.prototype.inEdges=function(mo,yo){var So=this._in[mo];if(So){var _o=eo.values(So);return yo?eo.filter(_o,function(ko){return ko.v===yo}):_o}},so.prototype.outEdges=function(mo,yo){var So=this._out[mo];if(So){var _o=eo.values(So);return yo?eo.filter(_o,function(ko){return ko.w===yo}):_o}},so.prototype.nodeEdges=function(mo,yo){var So=this.inEdges(mo,yo);if(So)return So.concat(this.outEdges(mo,yo))};function ao(mo,yo){mo[yo]?mo[yo]++:mo[yo]=1}function lo(mo,yo){--mo[yo]||delete mo[yo]}function uo(mo,yo,So,_o){var ko=""+yo,Co=""+So;if(!mo&&ko>Co){var $o=ko;ko=Co,Co=$o}return ko+io+Co+io+(eo.isUndefined(_o)?to:_o)}function ho(mo,yo,So,_o){var ko=""+yo,Co=""+So;if(!mo&&ko>Co){var $o=ko;ko=Co,Co=$o}var Ro={v:ko,w:Co};return _o&&(Ro.name=_o),Ro}function go(mo,yo){return uo(mo,yo.v,yo.w,yo.name)}return graph}var version$4,hasRequiredVersion;function requireVersion(){return hasRequiredVersion||(hasRequiredVersion=1,version$4="2.1.8"),version$4}var lib,hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,lib={Graph:requireGraph(),version:requireVersion()}),lib}var json$1,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json$1;hasRequiredJson=1;var eo=requireLodash(),to=requireGraph();json$1={write:no,read:ao};function no(lo){var uo={options:{directed:lo.isDirected(),multigraph:lo.isMultigraph(),compound:lo.isCompound()},nodes:io(lo),edges:so(lo)};return eo.isUndefined(lo.graph())||(uo.value=eo.clone(lo.graph())),uo}function io(lo){return eo.map(lo.nodes(),function(uo){var ho=lo.node(uo),go=lo.parent(uo),mo={v:uo};return eo.isUndefined(ho)||(mo.value=ho),eo.isUndefined(go)||(mo.parent=go),mo})}function so(lo){return eo.map(lo.edges(),function(uo){var ho=lo.edge(uo),go={v:uo.v,w:uo.w};return eo.isUndefined(uo.name)||(go.name=uo.name),eo.isUndefined(ho)||(go.value=ho),go})}function ao(lo){var uo=new to(lo.options).setGraph(lo.value);return eo.each(lo.nodes,function(ho){uo.setNode(ho.v,ho.value),ho.parent&&uo.setParent(ho.v,ho.parent)}),eo.each(lo.edges,function(ho){uo.setEdge({v:ho.v,w:ho.w,name:ho.name},ho.value)}),uo}return json$1}var components_1,hasRequiredComponents;function requireComponents(){if(hasRequiredComponents)return components_1;hasRequiredComponents=1;var eo=requireLodash();components_1=to;function to(no){var io={},so=[],ao;function lo(uo){eo.has(io,uo)||(io[uo]=!0,ao.push(uo),eo.each(no.successors(uo),lo),eo.each(no.predecessors(uo),lo))}return eo.each(no.nodes(),function(uo){ao=[],lo(uo),ao.length&&so.push(ao)}),so}return components_1}var priorityQueue,hasRequiredPriorityQueue;function requirePriorityQueue(){if(hasRequiredPriorityQueue)return priorityQueue;hasRequiredPriorityQueue=1;var eo=requireLodash();priorityQueue=to;function to(){this._arr=[],this._keyIndices={}}return to.prototype.size=function(){return this._arr.length},to.prototype.keys=function(){return this._arr.map(function(no){return no.key})},to.prototype.has=function(no){return eo.has(this._keyIndices,no)},to.prototype.priority=function(no){var io=this._keyIndices[no];if(io!==void 0)return this._arr[io].priority},to.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},to.prototype.add=function(no,io){var so=this._keyIndices;if(no=String(no),!eo.has(so,no)){var ao=this._arr,lo=ao.length;return so[no]=lo,ao.push({key:no,priority:io}),this._decrease(lo),!0}return!1},to.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var no=this._arr.pop();return delete this._keyIndices[no.key],this._heapify(0),no.key},to.prototype.decrease=function(no,io){var so=this._keyIndices[no];if(io>this._arr[so].priority)throw new Error("New priority is greater than current priority. Key: "+no+" Old: "+this._arr[so].priority+" New: "+io);this._arr[so].priority=io,this._decrease(so)},to.prototype._heapify=function(no){var io=this._arr,so=2*no,ao=so+1,lo=no;so>1,!(io[ao].priority0&&(yo=mo.removeMin(),So=go[yo],So.distance!==Number.POSITIVE_INFINITY);)ho(yo).forEach(_o);return go}return dijkstra_1}var dijkstraAll_1,hasRequiredDijkstraAll;function requireDijkstraAll(){if(hasRequiredDijkstraAll)return dijkstraAll_1;hasRequiredDijkstraAll=1;var eo=requireDijkstra(),to=requireLodash();dijkstraAll_1=no;function no(io,so,ao){return to.transform(io.nodes(),function(lo,uo){lo[uo]=eo(io,uo,so,ao)},{})}return dijkstraAll_1}var tarjan_1,hasRequiredTarjan;function requireTarjan(){if(hasRequiredTarjan)return tarjan_1;hasRequiredTarjan=1;var eo=requireLodash();tarjan_1=to;function to(no){var io=0,so=[],ao={},lo=[];function uo(ho){var go=ao[ho]={onStack:!0,lowlink:io,index:io++};if(so.push(ho),no.successors(ho).forEach(function(So){eo.has(ao,So)?ao[So].onStack&&(go.lowlink=Math.min(go.lowlink,ao[So].index)):(uo(So),go.lowlink=Math.min(go.lowlink,ao[So].lowlink))}),go.lowlink===go.index){var mo=[],yo;do yo=so.pop(),ao[yo].onStack=!1,mo.push(yo);while(ho!==yo);lo.push(mo)}}return no.nodes().forEach(function(ho){eo.has(ao,ho)||uo(ho)}),lo}return tarjan_1}var findCycles_1,hasRequiredFindCycles;function requireFindCycles(){if(hasRequiredFindCycles)return findCycles_1;hasRequiredFindCycles=1;var eo=requireLodash(),to=requireTarjan();findCycles_1=no;function no(io){return eo.filter(to(io),function(so){return so.length>1||so.length===1&&io.hasEdge(so[0],so[0])})}return findCycles_1}var floydWarshall_1,hasRequiredFloydWarshall;function requireFloydWarshall(){if(hasRequiredFloydWarshall)return floydWarshall_1;hasRequiredFloydWarshall=1;var eo=requireLodash();floydWarshall_1=no;var to=eo.constant(1);function no(so,ao,lo){return io(so,ao||to,lo||function(uo){return so.outEdges(uo)})}function io(so,ao,lo){var uo={},ho=so.nodes();return ho.forEach(function(go){uo[go]={},uo[go][go]={distance:0},ho.forEach(function(mo){go!==mo&&(uo[go][mo]={distance:Number.POSITIVE_INFINITY})}),lo(go).forEach(function(mo){var yo=mo.v===go?mo.w:mo.v,So=ao(mo);uo[go][yo]={distance:So,predecessor:go}})}),ho.forEach(function(go){var mo=uo[go];ho.forEach(function(yo){var So=uo[yo];ho.forEach(function(_o){var ko=So[go],Co=mo[_o],$o=So[_o],Ro=ko.distance+Co.distance;Ro<$o.distance&&($o.distance=Ro,$o.predecessor=Co.predecessor)})})}),uo}return floydWarshall_1}var topsort_1,hasRequiredTopsort;function requireTopsort(){if(hasRequiredTopsort)return topsort_1;hasRequiredTopsort=1;var eo=requireLodash();topsort_1=to,to.CycleException=no;function to(io){var so={},ao={},lo=[];function uo(ho){if(eo.has(ao,ho))throw new no;eo.has(so,ho)||(ao[ho]=!0,so[ho]=!0,eo.each(io.predecessors(ho),uo),delete ao[ho],lo.push(ho))}if(eo.each(io.sinks(),uo),eo.size(so)!==io.nodeCount())throw new no;return lo}function no(){}return no.prototype=new Error,topsort_1}var isAcyclic_1,hasRequiredIsAcyclic;function requireIsAcyclic(){if(hasRequiredIsAcyclic)return isAcyclic_1;hasRequiredIsAcyclic=1;var eo=requireTopsort();isAcyclic_1=to;function to(no){try{eo(no)}catch(io){if(io instanceof eo.CycleException)return!1;throw io}return!0}return isAcyclic_1}var dfs_1,hasRequiredDfs;function requireDfs(){if(hasRequiredDfs)return dfs_1;hasRequiredDfs=1;var eo=requireLodash();dfs_1=to;function to(io,so,ao){eo.isArray(so)||(so=[so]);var lo=(io.isDirected()?io.successors:io.neighbors).bind(io),uo=[],ho={};return eo.each(so,function(go){if(!io.hasNode(go))throw new Error("Graph does not have node: "+go);no(io,go,ao==="post",ho,lo,uo)}),uo}function no(io,so,ao,lo,uo,ho){eo.has(lo,so)||(lo[so]=!0,ao||ho.push(so),eo.each(uo(so),function(go){no(io,go,ao,lo,uo,ho)}),ao&&ho.push(so))}return dfs_1}var postorder_1,hasRequiredPostorder;function requirePostorder(){if(hasRequiredPostorder)return postorder_1;hasRequiredPostorder=1;var eo=requireDfs();postorder_1=to;function to(no,io){return eo(no,io,"post")}return postorder_1}var preorder_1,hasRequiredPreorder;function requirePreorder(){if(hasRequiredPreorder)return preorder_1;hasRequiredPreorder=1;var eo=requireDfs();preorder_1=to;function to(no,io){return eo(no,io,"pre")}return preorder_1}var prim_1,hasRequiredPrim;function requirePrim(){if(hasRequiredPrim)return prim_1;hasRequiredPrim=1;var eo=requireLodash(),to=requireGraph(),no=requirePriorityQueue();prim_1=io;function io(so,ao){var lo=new to,uo={},ho=new no,go;function mo(So){var _o=So.v===go?So.w:So.v,ko=ho.priority(_o);if(ko!==void 0){var Co=ao(So);Co0;){if(go=ho.removeMin(),eo.has(uo,go))lo.setEdge(go,uo[go]);else{if(yo)throw new Error("Input graph is not connected: "+so);yo=!0}so.nodeEdges(go).forEach(mo)}return lo}return prim_1}var alg,hasRequiredAlg;function requireAlg(){return hasRequiredAlg||(hasRequiredAlg=1,alg={components:requireComponents(),dijkstra:requireDijkstra(),dijkstraAll:requireDijkstraAll(),findCycles:requireFindCycles(),floydWarshall:requireFloydWarshall(),isAcyclic:requireIsAcyclic(),postorder:requirePostorder(),preorder:requirePreorder(),prim:requirePrim(),tarjan:requireTarjan(),topsort:requireTopsort()}),alg}var graphlib$1,hasRequiredGraphlib;function requireGraphlib(){if(hasRequiredGraphlib)return graphlib$1;hasRequiredGraphlib=1;var eo=requireLib();return graphlib$1={Graph:eo.Graph,json:requireJson(),alg:requireAlg(),version:eo.version},graphlib$1}var graphlib;if(typeof commonjsRequire$1=="function")try{graphlib=requireGraphlib()}catch{}graphlib||(graphlib=window.graphlib);var graphlib_1=graphlib,cloneDeep_1,hasRequiredCloneDeep;function requireCloneDeep(){if(hasRequiredCloneDeep)return cloneDeep_1;hasRequiredCloneDeep=1;var eo=_baseClone,to=1,no=4;function io(so){return eo(so,to|no)}return cloneDeep_1=io,cloneDeep_1}var eq$2=eq_1$1,isArrayLike$4=isArrayLike_1,isIndex$2=_isIndex$1,isObject$a=isObject_1$2;function isIterateeCall$3(eo,to,no){if(!isObject$a(no))return!1;var io=typeof to;return(io=="number"?isArrayLike$4(no)&&isIndex$2(to,no.length):io=="string"&&to in no)?eq$2(no[to],eo):!1}var _isIterateeCall=isIterateeCall$3,defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var eo=_baseRest,to=eq_1$1,no=_isIterateeCall,io=keysIn_1,so=Object.prototype,ao=so.hasOwnProperty,lo=eo(function(uo,ho){uo=Object(uo);var go=-1,mo=ho.length,yo=mo>2?ho[2]:void 0;for(yo&&no(ho[0],ho[1],yo)&&(mo=1);++go-1?so[ao?to[lo]:lo]:void 0}}var _createFind=createFind$2,reWhitespace$2=/\s/;function trimmedEndIndex$3(eo){for(var to=eo.length;to--&&reWhitespace$2.test(eo.charAt(to)););return to}var _trimmedEndIndex$1=trimmedEndIndex$3,trimmedEndIndex$2=_trimmedEndIndex$1,reTrimStart$2=/^\s+/;function baseTrim$3(eo){return eo&&eo.slice(0,trimmedEndIndex$2(eo)+1).replace(reTrimStart$2,"")}var _baseTrim$1=baseTrim$3,baseTrim$2=_baseTrim$1,isObject$9=isObject_1$2,isSymbol$4=isSymbol_1$1,NAN$2=NaN,reIsBadHex$2=/^[-+]0x[0-9a-f]+$/i,reIsBinary$2=/^0b[01]+$/i,reIsOctal$2=/^0o[0-7]+$/i,freeParseInt$2=parseInt;function toNumber$3(eo){if(typeof eo=="number")return eo;if(isSymbol$4(eo))return NAN$2;if(isObject$9(eo)){var to=typeof eo.valueOf=="function"?eo.valueOf():eo;eo=isObject$9(to)?to+"":to}if(typeof eo!="string")return eo===0?eo:+eo;eo=baseTrim$2(eo);var no=reIsBinary$2.test(eo);return no||reIsOctal$2.test(eo)?freeParseInt$2(eo.slice(2),no?2:8):reIsBadHex$2.test(eo)?NAN$2:+eo}var toNumber_1$1=toNumber$3,toNumber$2=toNumber_1$1,INFINITY$6=1/0,MAX_INTEGER$1=17976931348623157e292;function toFinite$3(eo){if(!eo)return eo===0?eo:0;if(eo=toNumber$2(eo),eo===INFINITY$6||eo===-INFINITY$6){var to=eo<0?-1:1;return to*MAX_INTEGER$1}return eo===eo?eo:0}var toFinite_1=toFinite$3,toFinite$2=toFinite_1;function toInteger$2(eo){var to=toFinite$2(eo),no=to%1;return to===to?no?to-no:to:0}var toInteger_1=toInteger$2,baseFindIndex$1=_baseFindIndex,baseIteratee$4=_baseIteratee,toInteger$1=toInteger_1,nativeMax$5=Math.max;function findIndex$2(eo,to,no){var io=eo==null?0:eo.length;if(!io)return-1;var so=no==null?0:toInteger$1(no);return so<0&&(so=nativeMax$5(io+so,0)),baseFindIndex$1(eo,baseIteratee$4(to),so)}var findIndex_1=findIndex$2,createFind$1=_createFind,findIndex$1=findIndex_1,find$5=createFind$1(findIndex$1),find_1=find$5,baseFlatten$2=_baseFlatten;function flatten$3(eo){var to=eo==null?0:eo.length;return to?baseFlatten$2(eo,1):[]}var flatten_1=flatten$3,forIn_1,hasRequiredForIn;function requireForIn(){if(hasRequiredForIn)return forIn_1;hasRequiredForIn=1;var eo=_baseFor,to=require_castFunction(),no=keysIn_1;function io(so,ao){return so==null?so:eo(so,to(ao),no)}return forIn_1=io,forIn_1}function last$1(eo){var to=eo==null?0:eo.length;return to?eo[to-1]:void 0}var last_1=last$1,baseAssignValue$2=_baseAssignValue$1,baseForOwn$1=_baseForOwn,baseIteratee$3=_baseIteratee;function mapValues$1(eo,to){var no={};return to=baseIteratee$3(to),baseForOwn$1(eo,function(io,so,ao){baseAssignValue$2(no,so,to(io,so,ao))}),no}var mapValues_1=mapValues$1,isSymbol$3=isSymbol_1$1;function baseExtremum$4(eo,to,no){for(var io=-1,so=eo.length;++ioto}var _baseGt=baseGt$2,baseExtremum$3=_baseExtremum,baseGt$1=_baseGt,identity$a=identity_1;function max$6(eo){return eo&&eo.length?baseExtremum$3(eo,identity$a,baseGt$1):void 0}var max_1=max$6,_assignMergeValue,hasRequired_assignMergeValue;function require_assignMergeValue(){if(hasRequired_assignMergeValue)return _assignMergeValue;hasRequired_assignMergeValue=1;var eo=_baseAssignValue$1,to=eq_1$1;function no(io,so,ao){(ao!==void 0&&!to(io[so],ao)||ao===void 0&&!(so in io))&&eo(io,so,ao)}return _assignMergeValue=no,_assignMergeValue}var baseGetTag$2=_baseGetTag$1,getPrototype$2=_getPrototype,isObjectLike$2=isObjectLike_1$1,objectTag$5="[object Object]",funcProto$5=Function.prototype,objectProto$p=Object.prototype,funcToString$5=funcProto$5.toString,hasOwnProperty$o=objectProto$p.hasOwnProperty,objectCtorString$1=funcToString$5.call(Object);function isPlainObject$2(eo){if(!isObjectLike$2(eo)||baseGetTag$2(eo)!=objectTag$5)return!1;var to=getPrototype$2(eo);if(to===null)return!0;var no=hasOwnProperty$o.call(to,"constructor")&&to.constructor;return typeof no=="function"&&no instanceof no&&funcToString$5.call(no)==objectCtorString$1}var isPlainObject_1=isPlainObject$2,_safeGet,hasRequired_safeGet;function require_safeGet(){if(hasRequired_safeGet)return _safeGet;hasRequired_safeGet=1;function eo(to,no){if(!(no==="constructor"&&typeof to[no]=="function")&&no!="__proto__")return to[no]}return _safeGet=eo,_safeGet}var toPlainObject_1,hasRequiredToPlainObject;function requireToPlainObject(){if(hasRequiredToPlainObject)return toPlainObject_1;hasRequiredToPlainObject=1;var eo=_copyObject,to=keysIn_1;function no(io){return eo(io,to(io))}return toPlainObject_1=no,toPlainObject_1}var _baseMergeDeep,hasRequired_baseMergeDeep;function require_baseMergeDeep(){if(hasRequired_baseMergeDeep)return _baseMergeDeep;hasRequired_baseMergeDeep=1;var eo=require_assignMergeValue(),to=_cloneBufferExports,no=_cloneTypedArray,io=_copyArray$1,so=_initCloneObject,ao=isArguments_1,lo=isArray_1$1,uo=requireIsArrayLikeObject(),ho=isBufferExports,go=isFunction_1$1,mo=isObject_1$2,yo=isPlainObject_1,So=isTypedArray_1,_o=require_safeGet(),ko=requireToPlainObject();function Co($o,Ro,Oo,No,Mo,Bo,Po){var Lo=_o($o,Oo),Go=_o(Ro,Oo),Do=Po.get(Go);if(Do){eo($o,Oo,Do);return}var Uo=Bo?Bo(Lo,Go,Oo+"",$o,Ro,Po):void 0,Ho=Uo===void 0;if(Ho){var Yo=lo(Go),qo=!Yo&&ho(Go),Jo=!Yo&&!qo&&So(Go);Uo=Go,Yo||qo||Jo?lo(Lo)?Uo=Lo:uo(Lo)?Uo=io(Lo):qo?(Ho=!1,Uo=to(Go,!0)):Jo?(Ho=!1,Uo=no(Go,!0)):Uo=[]:yo(Go)||ao(Go)?(Uo=Lo,ao(Lo)?Uo=ko(Lo):(!mo(Lo)||go(Lo))&&(Uo=so(Go))):Ho=!1}Ho&&(Po.set(Go,Uo),Mo(Uo,Go,No,Bo,Po),Po.delete(Go)),eo($o,Oo,Uo)}return _baseMergeDeep=Co,_baseMergeDeep}var _baseMerge,hasRequired_baseMerge;function require_baseMerge(){if(hasRequired_baseMerge)return _baseMerge;hasRequired_baseMerge=1;var eo=_Stack,to=require_assignMergeValue(),no=_baseFor,io=require_baseMergeDeep(),so=isObject_1$2,ao=keysIn_1,lo=require_safeGet();function uo(ho,go,mo,yo,So){ho!==go&&no(go,function(_o,ko){if(So||(So=new eo),so(_o))io(ho,go,ko,mo,uo,yo,So);else{var Co=yo?yo(lo(ho,ko),_o,ko+"",ho,go,So):void 0;Co===void 0&&(Co=_o),to(ho,ko,Co)}},ao)}return _baseMerge=uo,_baseMerge}var _createAssigner,hasRequired_createAssigner;function require_createAssigner(){if(hasRequired_createAssigner)return _createAssigner;hasRequired_createAssigner=1;var eo=_baseRest,to=_isIterateeCall;function no(io){return eo(function(so,ao){var lo=-1,uo=ao.length,ho=uo>1?ao[uo-1]:void 0,go=uo>2?ao[2]:void 0;for(ho=io.length>3&&typeof ho=="function"?(uo--,ho):void 0,go&&to(ao[0],ao[1],go)&&(ho=uo<3?void 0:ho,uo=1),so=Object(so);++loto||ao&&lo&&ho&&!uo&&!go||io&&lo&&ho||!no&&ho||!so)return 1;if(!io&&!ao&&!go&&eo=uo)return ho;var go=no[io];return ho*(go=="desc"?-1:1)}}return eo.index-to.index}var _compareMultiple=compareMultiple$2,arrayMap$2=_arrayMap$1,baseGet$2=_baseGet$1,baseIteratee$1=_baseIteratee,baseMap$1=_baseMap,baseSortBy$1=_baseSortBy,baseUnary$1=_baseUnary,compareMultiple$1=_compareMultiple,identity$8=identity_1,isArray$4=isArray_1$1;function baseOrderBy$2(eo,to,no){to.length?to=arrayMap$2(to,function(ao){return isArray$4(ao)?function(lo){return baseGet$2(lo,ao.length===1?ao[0]:ao)}:ao}):to=[identity$8];var io=-1;to=arrayMap$2(to,baseUnary$1(baseIteratee$1));var so=baseMap$1(eo,function(ao,lo,uo){var ho=arrayMap$2(to,function(go){return go(ao)});return{criteria:ho,index:++io,value:ao}});return baseSortBy$1(so,function(ao,lo){return compareMultiple$1(ao,lo,no)})}var _baseOrderBy=baseOrderBy$2,baseFlatten$1=_baseFlatten,baseOrderBy$1=_baseOrderBy,baseRest$1=_baseRest,isIterateeCall$1=_isIterateeCall,sortBy$2=baseRest$1(function(eo,to){if(eo==null)return[];var no=to.length;return no>1&&isIterateeCall$1(eo,to[0],to[1])?to=[]:no>2&&isIterateeCall$1(to[0],to[1],to[2])&&(to=[to[0]]),baseOrderBy$1(eo,baseFlatten$1(to,1),[])}),sortBy_1=sortBy$2,uniqueId_1,hasRequiredUniqueId;function requireUniqueId(){if(hasRequiredUniqueId)return uniqueId_1;hasRequiredUniqueId=1;var eo=toString_1$1,to=0;function no(io){var so=++to;return eo(io)+so}return uniqueId_1=no,uniqueId_1}var _baseZipObject,hasRequired_baseZipObject;function require_baseZipObject(){if(hasRequired_baseZipObject)return _baseZipObject;hasRequired_baseZipObject=1;function eo(to,no,io){for(var so=-1,ao=to.length,lo=no.length,uo={};++so0;--uo)if(lo=to[uo].dequeue(),lo){io=io.concat(removeNode$1(eo,to,no,lo,!0));break}}}return io}function removeNode$1(eo,to,no,io,so){var ao=so?[]:void 0;return _$v.forEach(eo.inEdges(io.v),function(lo){var uo=eo.edge(lo),ho=eo.node(lo.v);so&&ao.push({v:lo.v,w:lo.w}),ho.out-=uo,assignBucket$1(to,no,ho)}),_$v.forEach(eo.outEdges(io.v),function(lo){var uo=eo.edge(lo),ho=lo.w,go=eo.node(ho);go.in-=uo,assignBucket$1(to,no,go)}),eo.removeNode(io.v),ao}function buildState$1(eo,to){var no=new Graph$8,io=0,so=0;_$v.forEach(eo.nodes(),function(uo){no.setNode(uo,{v:uo,in:0,out:0})}),_$v.forEach(eo.edges(),function(uo){var ho=no.edge(uo.v,uo.w)||0,go=to(uo),mo=ho+go;no.setEdge(uo.v,uo.w,mo),so=Math.max(so,no.node(uo.v).out+=go),io=Math.max(io,no.node(uo.w).in+=go)});var ao=_$v.range(so+io+3).map(function(){return new List$3}),lo=io+1;return _$v.forEach(no.nodes(),function(uo){assignBucket$1(ao,lo,no.node(uo))}),{graph:no,buckets:ao,zeroIdx:lo}}function assignBucket$1(eo,to,no){no.out?no.in?eo[no.out-no.in+to].enqueue(no):eo[eo.length-1].enqueue(no):eo[0].enqueue(no)}var _$u=lodash_1,greedyFAS$1=greedyFas,acyclic$1={run:run$6,undo:undo$7};function run$6(eo){var to=eo.graph().acyclicer==="greedy"?greedyFAS$1(eo,no(eo)):dfsFAS$1(eo);_$u.forEach(to,function(io){var so=eo.edge(io);eo.removeEdge(io),so.forwardName=io.name,so.reversed=!0,eo.setEdge(io.w,io.v,so,_$u.uniqueId("rev"))});function no(io){return function(so){return io.edge(so).weight}}}function dfsFAS$1(eo){var to=[],no={},io={};function so(ao){_$u.has(io,ao)||(io[ao]=!0,no[ao]=!0,_$u.forEach(eo.outEdges(ao),function(lo){_$u.has(no,lo.w)?to.push(lo):so(lo.w)}),delete no[ao])}return _$u.forEach(eo.nodes(),so),to}function undo$7(eo){_$u.forEach(eo.edges(),function(to){var no=eo.edge(to);if(no.reversed){eo.removeEdge(to);var io=no.forwardName;delete no.reversed,delete no.forwardName,eo.setEdge(to.w,to.v,no,io)}})}var _$t=lodash_1,Graph$7=graphlib_1.Graph,util$a={addDummyNode:addDummyNode$1,simplify:simplify$2,asNonCompoundGraph:asNonCompoundGraph$1,successorWeights,predecessorWeights,intersectRect:intersectRect$4,buildLayerMatrix:buildLayerMatrix$1,normalizeRanks:normalizeRanks$2,removeEmptyRanks:removeEmptyRanks$2,addBorderNode:addBorderNode$3,maxRank:maxRank$1,partition:partition$1,time:time$2,notime:notime$1};function addDummyNode$1(eo,to,no,io){var so;do so=_$t.uniqueId(io);while(eo.hasNode(so));return no.dummy=to,eo.setNode(so,no),so}function simplify$2(eo){var to=new Graph$7().setGraph(eo.graph());return _$t.forEach(eo.nodes(),function(no){to.setNode(no,eo.node(no))}),_$t.forEach(eo.edges(),function(no){var io=to.edge(no.v,no.w)||{weight:0,minlen:1},so=eo.edge(no);to.setEdge(no.v,no.w,{weight:io.weight+so.weight,minlen:Math.max(io.minlen,so.minlen)})}),to}function asNonCompoundGraph$1(eo){var to=new Graph$7({multigraph:eo.isMultigraph()}).setGraph(eo.graph());return _$t.forEach(eo.nodes(),function(no){eo.children(no).length||to.setNode(no,eo.node(no))}),_$t.forEach(eo.edges(),function(no){to.setEdge(no,eo.edge(no))}),to}function successorWeights(eo){var to=_$t.map(eo.nodes(),function(no){var io={};return _$t.forEach(eo.outEdges(no),function(so){io[so.w]=(io[so.w]||0)+eo.edge(so).weight}),io});return _$t.zipObject(eo.nodes(),to)}function predecessorWeights(eo){var to=_$t.map(eo.nodes(),function(no){var io={};return _$t.forEach(eo.inEdges(no),function(so){io[so.v]=(io[so.v]||0)+eo.edge(so).weight}),io});return _$t.zipObject(eo.nodes(),to)}function intersectRect$4(eo,to){var no=eo.x,io=eo.y,so=to.x-no,ao=to.y-io,lo=eo.width/2,uo=eo.height/2;if(!so&&!ao)throw new Error("Not possible to find intersection inside of the rectangle");var ho,go;return Math.abs(ao)*lo>Math.abs(so)*uo?(ao<0&&(uo=-uo),ho=uo*so/ao,go=uo):(so<0&&(lo=-lo),ho=lo,go=lo*ao/so),{x:no+ho,y:io+go}}function buildLayerMatrix$1(eo){var to=_$t.map(_$t.range(maxRank$1(eo)+1),function(){return[]});return _$t.forEach(eo.nodes(),function(no){var io=eo.node(no),so=io.rank;_$t.isUndefined(so)||(to[so][io.order]=no)}),to}function normalizeRanks$2(eo){var to=_$t.min(_$t.map(eo.nodes(),function(no){return eo.node(no).rank}));_$t.forEach(eo.nodes(),function(no){var io=eo.node(no);_$t.has(io,"rank")&&(io.rank-=to)})}function removeEmptyRanks$2(eo){var to=_$t.min(_$t.map(eo.nodes(),function(ao){return eo.node(ao).rank})),no=[];_$t.forEach(eo.nodes(),function(ao){var lo=eo.node(ao).rank-to;no[lo]||(no[lo]=[]),no[lo].push(ao)});var io=0,so=eo.graph().nodeRankFactor;_$t.forEach(no,function(ao,lo){_$t.isUndefined(ao)&&lo%so!==0?--io:io&&_$t.forEach(ao,function(uo){eo.node(uo).rank+=io})})}function addBorderNode$3(eo,to,no,io){var so={width:0,height:0};return arguments.length>=4&&(so.rank=no,so.order=io),addDummyNode$1(eo,"border",so,to)}function maxRank$1(eo){return _$t.max(_$t.map(eo.nodes(),function(to){var no=eo.node(to).rank;if(!_$t.isUndefined(no))return no}))}function partition$1(eo,to){var no={lhs:[],rhs:[]};return _$t.forEach(eo,function(io){to(io)?no.lhs.push(io):no.rhs.push(io)}),no}function time$2(eo,to){var no=_$t.now();try{return to()}finally{console.log(eo+" time: "+(_$t.now()-no)+"ms")}}function notime$1(eo,to){return to()}var _$s=lodash_1,util$9=util$a,normalize$3={run:run$5,undo:undo$6};function run$5(eo){eo.graph().dummyChains=[],_$s.forEach(eo.edges(),function(to){normalizeEdge$1(eo,to)})}function normalizeEdge$1(eo,to){var no=to.v,io=eo.node(no).rank,so=to.w,ao=eo.node(so).rank,lo=to.name,uo=eo.edge(to),ho=uo.labelRank;if(ao!==io+1){eo.removeEdge(to);var go,mo,yo;for(yo=0,++io;iolo.lim&&(uo=lo,ho=!0);var go=_$p.filter(to.edges(),function(mo){return ho===isDescendant$2(eo,eo.node(mo.v),uo)&&ho!==isDescendant$2(eo,eo.node(mo.w),uo)});return _$p.minBy(go,function(mo){return slack$1(to,mo)})}function exchangeEdges$1(eo,to,no,io){var so=no.v,ao=no.w;eo.removeEdge(so,ao),eo.setEdge(io.v,io.w,{}),initLowLimValues$1(eo),initCutValues$1(eo,to),updateRanks$1(eo,to)}function updateRanks$1(eo,to){var no=_$p.find(eo.nodes(),function(so){return!to.node(so).parent}),io=preorder$1(eo,no);io=io.slice(1),_$p.forEach(io,function(so){var ao=eo.node(so).parent,lo=to.edge(so,ao),uo=!1;lo||(lo=to.edge(ao,so),uo=!0),to.node(so).rank=to.node(ao).rank+(uo?lo.minlen:-lo.minlen)})}function isTreeEdge$1(eo,to,no){return eo.hasEdge(to,no)}function isDescendant$2(eo,to,no){return no.low<=to.lim&&to.lim<=no.lim}var rankUtil=util$8,longestPath$1=rankUtil.longestPath,feasibleTree$1=feasibleTree_1,networkSimplex$1=networkSimplex_1,rank_1=rank$2;function rank$2(eo){switch(eo.graph().ranker){case"network-simplex":networkSimplexRanker$1(eo);break;case"tight-tree":tightTreeRanker$1(eo);break;case"longest-path":longestPathRanker$1(eo);break;default:networkSimplexRanker$1(eo)}}var longestPathRanker$1=longestPath$1;function tightTreeRanker$1(eo){longestPath$1(eo),feasibleTree$1(eo)}function networkSimplexRanker$1(eo){networkSimplex$1(eo)}var _$o=lodash_1,parentDummyChains_1=parentDummyChains$2;function parentDummyChains$2(eo){var to=postorder$2(eo);_$o.forEach(eo.graph().dummyChains,function(no){for(var io=eo.node(no),so=io.edgeObj,ao=findPath$1(eo,to,so.v,so.w),lo=ao.path,uo=ao.lca,ho=0,go=lo[ho],mo=!0;no!==so.w;){if(io=eo.node(no),mo){for(;(go=lo[ho])!==uo&&eo.node(go).maxRanklo||uo>to[ho].lim));for(go=ho,ho=io;(ho=eo.parent(ho))!==go;)ao.push(ho);return{path:so.concat(ao.reverse()),lca:go}}function postorder$2(eo){var to={},no=0;function io(so){var ao=no;_$o.forEach(eo.children(so),io),to[so]={low:ao,lim:no++}}return _$o.forEach(eo.children(),io),to}var _$n=lodash_1,util$7=util$a,nestingGraph$1={run:run$4,cleanup:cleanup$2};function run$4(eo){var to=util$7.addDummyNode(eo,"root",{},"_root"),no=treeDepths$1(eo),io=_$n.max(_$n.values(no))-1,so=2*io+1;eo.graph().nestingRoot=to,_$n.forEach(eo.edges(),function(lo){eo.edge(lo).minlen*=so});var ao=sumWeights$1(eo)+1;_$n.forEach(eo.children(),function(lo){dfs$2(eo,to,so,ao,io,no,lo)}),eo.graph().nodeRankFactor=so}function dfs$2(eo,to,no,io,so,ao,lo){var uo=eo.children(lo);if(!uo.length){lo!==to&&eo.setEdge(to,lo,{weight:0,minlen:no});return}var ho=util$7.addBorderNode(eo,"_bt"),go=util$7.addBorderNode(eo,"_bb"),mo=eo.node(lo);eo.setParent(ho,lo),mo.borderTop=ho,eo.setParent(go,lo),mo.borderBottom=go,_$n.forEach(uo,function(yo){dfs$2(eo,to,no,io,so,ao,yo);var So=eo.node(yo),_o=So.borderTop?So.borderTop:yo,ko=So.borderBottom?So.borderBottom:yo,Co=So.borderTop?io:2*io,$o=_o!==ko?1:so-ao[lo]+1;eo.setEdge(ho,_o,{weight:Co,minlen:$o,nestingEdge:!0}),eo.setEdge(ko,go,{weight:Co,minlen:$o,nestingEdge:!0})}),eo.parent(lo)||eo.setEdge(to,ho,{weight:0,minlen:so+ao[lo]})}function treeDepths$1(eo){var to={};function no(io,so){var ao=eo.children(io);ao&&ao.length&&_$n.forEach(ao,function(lo){no(lo,so+1)}),to[io]=so}return _$n.forEach(eo.children(),function(io){no(io,1)}),to}function sumWeights$1(eo){return _$n.reduce(eo.edges(),function(to,no){return to+eo.edge(no).weight},0)}function cleanup$2(eo){var to=eo.graph();eo.removeNode(to.nestingRoot),delete to.nestingRoot,_$n.forEach(eo.edges(),function(no){var io=eo.edge(no);io.nestingEdge&&eo.removeEdge(no)})}var _$m=lodash_1,util$6=util$a,addBorderSegments_1=addBorderSegments$2;function addBorderSegments$2(eo){function to(no){var io=eo.children(no),so=eo.node(no);if(io.length&&_$m.forEach(io,to),_$m.has(so,"minRank")){so.borderLeft=[],so.borderRight=[];for(var ao=so.minRank,lo=so.maxRank+1;ao0;)mo%2&&(yo+=uo[mo+1]),mo=mo-1>>1,uo[mo]+=go.weight;ho+=go.weight*yo})),ho}var _$i=lodash_1,barycenter_1=barycenter$2;function barycenter$2(eo,to){return _$i.map(to,function(no){var io=eo.inEdges(no);if(io.length){var so=_$i.reduce(io,function(ao,lo){var uo=eo.edge(lo),ho=eo.node(lo.v);return{sum:ao.sum+uo.weight*ho.order,weight:ao.weight+uo.weight}},{sum:0,weight:0});return{v:no,barycenter:so.sum/so.weight,weight:so.weight}}else return{v:no}})}var _$h=lodash_1,resolveConflicts_1=resolveConflicts$2;function resolveConflicts$2(eo,to){var no={};_$h.forEach(eo,function(so,ao){var lo=no[so.v]={indegree:0,in:[],out:[],vs:[so.v],i:ao};_$h.isUndefined(so.barycenter)||(lo.barycenter=so.barycenter,lo.weight=so.weight)}),_$h.forEach(to.edges(),function(so){var ao=no[so.v],lo=no[so.w];!_$h.isUndefined(ao)&&!_$h.isUndefined(lo)&&(lo.indegree++,ao.out.push(no[so.w]))});var io=_$h.filter(no,function(so){return!so.indegree});return doResolveConflicts$1(io)}function doResolveConflicts$1(eo){var to=[];function no(ao){return function(lo){lo.merged||(_$h.isUndefined(lo.barycenter)||_$h.isUndefined(ao.barycenter)||lo.barycenter>=ao.barycenter)&&mergeEntries$1(ao,lo)}}function io(ao){return function(lo){lo.in.push(ao),--lo.indegree===0&&eo.push(lo)}}for(;eo.length;){var so=eo.pop();to.push(so),_$h.forEach(so.in.reverse(),no(so)),_$h.forEach(so.out,io(so))}return _$h.map(_$h.filter(to,function(ao){return!ao.merged}),function(ao){return _$h.pick(ao,["vs","i","barycenter","weight"])})}function mergeEntries$1(eo,to){var no=0,io=0;eo.weight&&(no+=eo.barycenter*eo.weight,io+=eo.weight),to.weight&&(no+=to.barycenter*to.weight,io+=to.weight),eo.vs=to.vs.concat(eo.vs),eo.barycenter=no/io,eo.weight=io,eo.i=Math.min(to.i,eo.i),to.merged=!0}var _$g=lodash_1,util$5=util$a,sort_1=sort$2;function sort$2(eo,to){var no=util$5.partition(eo,function(mo){return _$g.has(mo,"barycenter")}),io=no.lhs,so=_$g.sortBy(no.rhs,function(mo){return-mo.i}),ao=[],lo=0,uo=0,ho=0;io.sort(compareWithBias$1(!!to)),ho=consumeUnsortable$1(ao,so,ho),_$g.forEach(io,function(mo){ho+=mo.vs.length,ao.push(mo.vs),lo+=mo.barycenter*mo.weight,uo+=mo.weight,ho=consumeUnsortable$1(ao,so,ho)});var go={vs:_$g.flatten(ao,!0)};return uo&&(go.barycenter=lo/uo,go.weight=uo),go}function consumeUnsortable$1(eo,to,no){for(var io;to.length&&(io=_$g.last(to)).i<=no;)to.pop(),eo.push(io.vs),no++;return no}function compareWithBias$1(eo){return function(to,no){return to.barycenterno.barycenter?1:eo?no.i-to.i:to.i-no.i}}var _$f=lodash_1,barycenter$1=barycenter_1,resolveConflicts$1=resolveConflicts_1,sort$1=sort_1,sortSubgraph_1=sortSubgraph$2;function sortSubgraph$2(eo,to,no,io){var so=eo.children(to),ao=eo.node(to),lo=ao?ao.borderLeft:void 0,uo=ao?ao.borderRight:void 0,ho={};lo&&(so=_$f.filter(so,function(ko){return ko!==lo&&ko!==uo}));var go=barycenter$1(eo,so);_$f.forEach(go,function(ko){if(eo.children(ko.v).length){var Co=sortSubgraph$2(eo,ko.v,no,io);ho[ko.v]=Co,_$f.has(Co,"barycenter")&&mergeBarycenters$1(ko,Co)}});var mo=resolveConflicts$1(go,no);expandSubgraphs$1(mo,ho);var yo=sort$1(mo,io);if(lo&&(yo.vs=_$f.flatten([lo,yo.vs,uo],!0),eo.predecessors(lo).length)){var So=eo.node(eo.predecessors(lo)[0]),_o=eo.node(eo.predecessors(uo)[0]);_$f.has(yo,"barycenter")||(yo.barycenter=0,yo.weight=0),yo.barycenter=(yo.barycenter*yo.weight+So.order+_o.order)/(yo.weight+2),yo.weight+=2}return yo}function expandSubgraphs$1(eo,to){_$f.forEach(eo,function(no){no.vs=_$f.flatten(no.vs.map(function(io){return to[io]?to[io].vs:io}),!0)})}function mergeBarycenters$1(eo,to){_$f.isUndefined(eo.barycenter)?(eo.barycenter=to.barycenter,eo.weight=to.weight):(eo.barycenter=(eo.barycenter*eo.weight+to.barycenter*to.weight)/(eo.weight+to.weight),eo.weight+=to.weight)}var _$e=lodash_1,Graph$5=graphlib_1.Graph,buildLayerGraph_1=buildLayerGraph$2;function buildLayerGraph$2(eo,to,no){var io=createRootNode$1(eo),so=new Graph$5({compound:!0}).setGraph({root:io}).setDefaultNodeLabel(function(ao){return eo.node(ao)});return _$e.forEach(eo.nodes(),function(ao){var lo=eo.node(ao),uo=eo.parent(ao);(lo.rank===to||lo.minRank<=to&&to<=lo.maxRank)&&(so.setNode(ao),so.setParent(ao,uo||io),_$e.forEach(eo[no](ao),function(ho){var go=ho.v===ao?ho.w:ho.v,mo=so.edge(go,ao),yo=_$e.isUndefined(mo)?0:mo.weight;so.setEdge(go,ao,{weight:eo.edge(ho).weight+yo})}),_$e.has(lo,"minRank")&&so.setNode(ao,{borderLeft:lo.borderLeft[to],borderRight:lo.borderRight[to]}))}),so}function createRootNode$1(eo){for(var to;eo.hasNode(to=_$e.uniqueId("_root")););return to}var _$d=lodash_1,addSubgraphConstraints_1=addSubgraphConstraints$2;function addSubgraphConstraints$2(eo,to,no){var io={},so;_$d.forEach(no,function(ao){for(var lo=eo.parent(ao),uo,ho;lo;){if(uo=eo.parent(lo),uo?(ho=io[uo],io[uo]=lo):(ho=so,so=lo),ho&&ho!==lo){to.setEdge(ho,lo);return}lo=uo}})}var _$c=lodash_1,initOrder$1=initOrder_1,crossCount$1=crossCount_1,sortSubgraph$1=sortSubgraph_1,buildLayerGraph$1=buildLayerGraph_1,addSubgraphConstraints$1=addSubgraphConstraints_1,Graph$4=graphlib_1.Graph,util$4=util$a,order_1=order$2;function order$2(eo){var to=util$4.maxRank(eo),no=buildLayerGraphs$1(eo,_$c.range(1,to+1),"inEdges"),io=buildLayerGraphs$1(eo,_$c.range(to-1,-1,-1),"outEdges"),so=initOrder$1(eo);assignOrder$1(eo,so);for(var ao=Number.POSITIVE_INFINITY,lo,uo=0,ho=0;ho<4;++uo,++ho){sweepLayerGraphs$1(uo%2?no:io,uo%4>=2),so=util$4.buildLayerMatrix(eo);var go=crossCount$1(eo,so);gogo)&&addConflict$1(no,So,mo)})})}function so(ao,lo){var uo=-1,ho,go=0;return _$b.forEach(lo,function(mo,yo){if(eo.node(mo).dummy==="border"){var So=eo.predecessors(mo);So.length&&(ho=eo.node(So[0]).order,io(lo,go,yo,uo,ho),go=yo,uo=ho)}io(lo,go,lo.length,ho,ao.length)}),lo}return _$b.reduce(to,so),no}function findOtherInnerSegmentNode$1(eo,to){if(eo.node(to).dummy)return _$b.find(eo.predecessors(to),function(no){return eo.node(no).dummy})}function addConflict$1(eo,to,no){if(to>no){var io=to;to=no,no=io}var so=eo[to];so||(eo[to]=so={}),so[no]=!0}function hasConflict$1(eo,to,no){if(to>no){var io=to;to=no,no=io}return _$b.has(eo[to],no)}function verticalAlignment$1(eo,to,no,io){var so={},ao={},lo={};return _$b.forEach(to,function(uo){_$b.forEach(uo,function(ho,go){so[ho]=ho,ao[ho]=ho,lo[ho]=go})}),_$b.forEach(to,function(uo){var ho=-1;_$b.forEach(uo,function(go){var mo=io(go);if(mo.length){mo=_$b.sortBy(mo,function(Co){return lo[Co]});for(var yo=(mo.length-1)/2,So=Math.floor(yo),_o=Math.ceil(yo);So<=_o;++So){var ko=mo[So];ao[go]===go&&ho=0;uo--)(lo=eo[uo])&&(ao=(so<3?lo(ao):so>3?lo(to,no,ao):lo(to,no))||ao);return so>3&&ao&&Object.defineProperty(to,no,ao),ao}function __spreadArray$1(eo,to,no){if(no||arguments.length===2)for(var io=0,so=to.length,ao;io"u"?InjectionMode$1.none:InjectionMode$1.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},to),this._classNameToArgs=(io=no==null?void 0:no.classNameToArgs)!==null&&io!==void 0?io:this._classNameToArgs,this._counter=(so=no==null?void 0:no.counter)!==null&&so!==void 0?so:this._counter,this._keyToClassName=(lo=(ao=this._config.classNameCache)!==null&&ao!==void 0?ao:no==null?void 0:no.keyToClassName)!==null&&lo!==void 0?lo:this._keyToClassName,this._preservedRules=(uo=no==null?void 0:no.preservedRules)!==null&&uo!==void 0?uo:this._preservedRules,this._rules=(ho=no==null?void 0:no.rules)!==null&&ho!==void 0?ho:this._rules}return eo.getInstance=function(){if(_stylesheet$1=_global$2[STYLESHEET_SETTING$1],!_stylesheet$1||_stylesheet$1._lastStyleElement&&_stylesheet$1._lastStyleElement.ownerDocument!==document){var to=(_global$2==null?void 0:_global$2.FabricConfig)||{},no=new eo(to.mergeStyles,to.serializedStylesheet);_stylesheet$1=no,_global$2[STYLESHEET_SETTING$1]=no}return _stylesheet$1},eo.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},eo.prototype.setConfig=function(to){this._config=__assign$4(__assign$4({},this._config),to)},eo.prototype.onReset=function(to){var no=this;return this._onResetCallbacks.push(to),function(){no._onResetCallbacks=no._onResetCallbacks.filter(function(io){return io!==to})}},eo.prototype.onInsertRule=function(to){var no=this;return this._onInsertRuleCallbacks.push(to),function(){no._onInsertRuleCallbacks=no._onInsertRuleCallbacks.filter(function(io){return io!==to})}},eo.prototype.getClassName=function(to){var no=this._config.namespace,io=to||this._config.defaultPrefix;return"".concat(no?no+"-":"").concat(io,"-").concat(this._counter++)},eo.prototype.cacheClassName=function(to,no,io,so){this._keyToClassName[no]=to,this._classNameToArgs[to]={args:io,rules:so}},eo.prototype.classNameFromKey=function(to){return this._keyToClassName[to]},eo.prototype.getClassNameCache=function(){return this._keyToClassName},eo.prototype.argsFromClassName=function(to){var no=this._classNameToArgs[to];return no&&no.args},eo.prototype.insertedRulesFromClassName=function(to){var no=this._classNameToArgs[to];return no&&no.rules},eo.prototype.insertRule=function(to,no){var io=this._config.injectionMode,so=io!==InjectionMode$1.none?this._getStyleElement():void 0;if(no&&this._preservedRules.push(to),so)switch(io){case InjectionMode$1.insertNode:var ao=so.sheet;try{ao.insertRule(to,ao.cssRules.length)}catch{}break;case InjectionMode$1.appendChild:so.appendChild(document.createTextNode(to));break}else this._rules.push(to);this._config.onInsertRule&&this._config.onInsertRule(to),this._onInsertRuleCallbacks.forEach(function(lo){return lo()})},eo.prototype.getRules=function(to){return(to?this._preservedRules.join(""):"")+this._rules.join("")},eo.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(to){return to()})},eo.prototype.resetKeys=function(){this._keyToClassName={}},eo.prototype._getStyleElement=function(){var to=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE$1||window.requestAnimationFrame(function(){to._styleElement=void 0})),this._styleElement},eo.prototype._createStyleElement=function(){var to=document.head,no=document.createElement("style"),io=null;no.setAttribute("data-merge-styles","true");var so=this._config.cspSettings;if(so&&so.nonce&&no.setAttribute("nonce",so.nonce),this._lastStyleElement)io=this._lastStyleElement.nextElementSibling;else{var ao=this._findPlaceholderStyleTag();ao?io=ao.nextElementSibling:io=to.childNodes[0]}return to.insertBefore(no,to.contains(io)?io:null),this._lastStyleElement=no,no},eo.prototype._findPlaceholderStyleTag=function(){var to=document.head;return to?to.querySelector("style[data-merge-styles]"):null},eo}();function extractStyleParts$1(){for(var eo=[],to=0;to=0)ao(go.split(" "));else{var mo=so.argsFromClassName(go);mo?ao(mo):no.indexOf(go)===-1&&no.push(go)}else Array.isArray(go)?ao(go):typeof go=="object"&&io.push(go)}}return ao(eo),{classes:no,objects:io}}function setRTL$1(eo){_rtl$1!==eo&&(_rtl$1=eo)}function getRTL$2(){return _rtl$1===void 0&&(_rtl$1=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl$1}var _rtl$1;_rtl$1=getRTL$2();function getStyleOptions$1(){return{rtl:getRTL$2()}}var rules$1={};function kebabRules$1(eo,to){var no=eo[to];no.charAt(0)!=="-"&&(eo[to]=rules$1[no]=rules$1[no]||no.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings$1;function getVendorSettings$1(){var eo;if(!_vendorSettings$1){var to=typeof document<"u"?document:void 0,no=typeof navigator<"u"?navigator:void 0,io=(eo=no==null?void 0:no.userAgent)===null||eo===void 0?void 0:eo.toLowerCase();to?_vendorSettings$1={isWebkit:!!(to&&"WebkitAppearance"in to.documentElement.style),isMoz:!!(io&&io.indexOf("firefox")>-1),isOpera:!!(io&&io.indexOf("opera")>-1),isMs:!!(no&&(/rv:11.0/i.test(no.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings$1={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings$1}var autoPrefixNames$1={"user-select":1};function prefixRules$1(eo,to){var no=getVendorSettings$1(),io=eo[to];if(autoPrefixNames$1[io]){var so=eo[to+1];autoPrefixNames$1[io]&&(no.isWebkit&&eo.push("-webkit-"+io,so),no.isMoz&&eo.push("-moz-"+io,so),no.isMs&&eo.push("-ms-"+io,so),no.isOpera&&eo.push("-o-"+io,so))}}var NON_PIXEL_NUMBER_PROPS$1=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits$1(eo,to){var no=eo[to],io=eo[to+1];if(typeof io=="number"){var so=NON_PIXEL_NUMBER_PROPS$1.indexOf(no)>-1,ao=no.indexOf("--")>-1,lo=so||ao?"":"px";eo[to+1]="".concat(io).concat(lo)}}var _a$c,LEFT$1="left",RIGHT$1="right",NO_FLIP$1="@noflip",NAME_REPLACEMENTS$1=(_a$c={},_a$c[LEFT$1]=RIGHT$1,_a$c[RIGHT$1]=LEFT$1,_a$c),VALUE_REPLACEMENTS$1={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules$1(eo,to,no){if(eo.rtl){var io=to[no];if(!io)return;var so=to[no+1];if(typeof so=="string"&&so.indexOf(NO_FLIP$1)>=0)to[no+1]=so.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(io.indexOf(LEFT$1)>=0)to[no]=io.replace(LEFT$1,RIGHT$1);else if(io.indexOf(RIGHT$1)>=0)to[no]=io.replace(RIGHT$1,LEFT$1);else if(String(so).indexOf(LEFT$1)>=0)to[no+1]=so.replace(LEFT$1,RIGHT$1);else if(String(so).indexOf(RIGHT$1)>=0)to[no+1]=so.replace(RIGHT$1,LEFT$1);else if(NAME_REPLACEMENTS$1[io])to[no]=NAME_REPLACEMENTS$1[io];else if(VALUE_REPLACEMENTS$1[so])to[no+1]=VALUE_REPLACEMENTS$1[so];else switch(io){case"margin":case"padding":to[no+1]=flipQuad$1(so);break;case"box-shadow":to[no+1]=negateNum$1(so,0);break}}}function negateNum$1(eo,to){var no=eo.split(" "),io=parseInt(no[to],10);return no[0]=no[0].replace(String(io),String(io*-1)),no.join(" ")}function flipQuad$1(eo){if(typeof eo=="string"){var to=eo.split(" ");if(to.length===4)return"".concat(to[0]," ").concat(to[3]," ").concat(to[2]," ").concat(to[1])}return eo}function tokenizeWithParentheses$1(eo){for(var to=[],no=0,io=0,so=0;sono&&to.push(eo.substring(no,so)),no=so+1);break}return no-1&&to.push([io.index,io.index+io[0].length,io[1].split(",").map(function(so){return":global(".concat(so.trim(),")")}).join(", ")]);return to.reverse().reduce(function(so,ao){var lo=ao[0],uo=ao[1],ho=ao[2],go=so.slice(0,lo),mo=so.slice(uo);return go+ho+mo},eo)}function expandSelector$1(eo,to){return eo.indexOf(":global(")>=0?eo.replace(globalSelectorRegExp$1,"$1"):eo.indexOf(":")===0?to+eo:eo.indexOf("&")<0?to+" "+eo:eo}function extractSelector$1(eo,to,no,io){to===void 0&&(to={__order:[]}),no.indexOf("@")===0?(no=no+"{"+eo,extractRules$1([io],to,no)):no.indexOf(",")>-1?expandCommaSeparatedGlobals$1(no).split(",").map(function(so){return so.trim()}).forEach(function(so){return extractRules$1([io],to,expandSelector$1(so,eo))}):extractRules$1([io],to,expandSelector$1(no,eo))}function extractRules$1(eo,to,no){to===void 0&&(to={__order:[]}),no===void 0&&(no="&");var io=Stylesheet$2.getInstance(),so=to[no];so||(so={},to[no]=so,to.__order.push(no));for(var ao=0,lo=eo;ao0){no.subComponentStyles={};var So=no.subComponentStyles,_o=function(ko){if(io.hasOwnProperty(ko)){var Co=io[ko];So[ko]=function($o){return concatStyleSets.apply(void 0,Co.map(function(Ro){return typeof Ro=="function"?Ro($o):Ro}))}}};for(var go in io)_o(go)}return no}function mergeStyleSets(){for(var eo=[],to=0;to"u")){var to=eo;return to&&to.ownerDocument&&to.ownerDocument.defaultView?to.ownerDocument.defaultView:_window$1}}var Async=function(){function eo(to,no){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=to||null,this._onErrorHandler=no,this._noop=function(){}}return eo.prototype.dispose=function(){var to;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(to in this._timeoutIds)this._timeoutIds.hasOwnProperty(to)&&this.clearTimeout(parseInt(to,10));this._timeoutIds=null}if(this._immediateIds){for(to in this._immediateIds)this._immediateIds.hasOwnProperty(to)&&this.clearImmediate(parseInt(to,10));this._immediateIds=null}if(this._intervalIds){for(to in this._intervalIds)this._intervalIds.hasOwnProperty(to)&&this.clearInterval(parseInt(to,10));this._intervalIds=null}if(this._animationFrameIds){for(to in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(to)&&this.cancelAnimationFrame(parseInt(to,10));this._animationFrameIds=null}},eo.prototype.setTimeout=function(to,no){var io=this,so=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),so=setTimeout(function(){try{io._timeoutIds&&delete io._timeoutIds[so],to.apply(io._parent)}catch(ao){io._logError(ao)}},no),this._timeoutIds[so]=!0),so},eo.prototype.clearTimeout=function(to){this._timeoutIds&&this._timeoutIds[to]&&(clearTimeout(to),delete this._timeoutIds[to])},eo.prototype.setImmediate=function(to,no){var io=this,so=0,ao=getWindow(no);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var lo=function(){try{io._immediateIds&&delete io._immediateIds[so],to.apply(io._parent)}catch(uo){io._logError(uo)}};so=ao.setTimeout(lo,0),this._immediateIds[so]=!0}return so},eo.prototype.clearImmediate=function(to,no){var io=getWindow(no);this._immediateIds&&this._immediateIds[to]&&(io.clearTimeout(to),delete this._immediateIds[to])},eo.prototype.setInterval=function(to,no){var io=this,so=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),so=setInterval(function(){try{to.apply(io._parent)}catch(ao){io._logError(ao)}},no),this._intervalIds[so]=!0),so},eo.prototype.clearInterval=function(to){this._intervalIds&&this._intervalIds[to]&&(clearInterval(to),delete this._intervalIds[to])},eo.prototype.throttle=function(to,no,io){var so=this;if(this._isDisposed)return this._noop;var ao=no||0,lo=!0,uo=!0,ho=0,go,mo,yo=null;io&&typeof io.leading=="boolean"&&(lo=io.leading),io&&typeof io.trailing=="boolean"&&(uo=io.trailing);var So=function(ko){var Co=Date.now(),$o=Co-ho,Ro=lo?ao-$o:ao;return $o>=ao&&(!ko||lo)?(ho=Co,yo&&(so.clearTimeout(yo),yo=null),go=to.apply(so._parent,mo)):yo===null&&uo&&(yo=so.setTimeout(So,Ro)),go},_o=function(){for(var ko=[],Co=0;Co=lo&&(Go=!0),mo=Lo);var Do=Lo-mo,Uo=lo-Do,Ho=Lo-yo,Yo=!1;return go!==null&&(Ho>=go&&ko?Yo=!0:Uo=Math.min(Uo,go-Ho)),Do>=lo||Yo||Go?$o(Lo):(ko===null||!Po)&&ho&&(ko=so.setTimeout(Ro,Uo)),So},Oo=function(){return!!ko},No=function(){Oo()&&Co(Date.now())},Mo=function(){return Oo()&&$o(Date.now()),So},Bo=function(){for(var Po=[],Lo=0;Lo-1)for(var lo=no.split(/[ ,]+/),uo=0;uo"u")){var to=eo;return to&&to.ownerDocument?to.ownerDocument:document}}var _scrollbarWidth,_bodyScrollDisabledCount=0,DisabledScrollClassName=mergeStyles$1({overflow:"hidden !important"}),DATA_IS_SCROLLABLE_ATTRIBUTE="data-is-scrollable",allowScrollOnElement=function(eo,to){if(eo){var no=0,io=null,so=function(lo){lo.targetTouches.length===1&&(no=lo.targetTouches[0].clientY)},ao=function(lo){if(lo.targetTouches.length===1&&(lo.stopPropagation(),!!io)){var uo=lo.targetTouches[0].clientY-no,ho=findScrollableParent(lo.target);ho&&(io=ho),io.scrollTop===0&&uo>0&&lo.preventDefault(),io.scrollHeight-Math.ceil(io.scrollTop)<=io.clientHeight&&uo<0&&lo.preventDefault()}};to.on(eo,"touchstart",so,{passive:!1}),to.on(eo,"touchmove",ao,{passive:!1}),io=eo}},allowOverscrollOnElement=function(eo,to){if(eo){var no=function(io){io.stopPropagation()};to.on(eo,"touchmove",no,{passive:!1})}},_disableIosBodyScroll=function(eo){eo.preventDefault()};function disableBodyScroll(){var eo=getDocument();eo&&eo.body&&!_bodyScrollDisabledCount&&(eo.body.classList.add(DisabledScrollClassName),eo.body.addEventListener("touchmove",_disableIosBodyScroll,{passive:!1,capture:!1})),_bodyScrollDisabledCount++}function enableBodyScroll(){if(_bodyScrollDisabledCount>0){var eo=getDocument();eo&&eo.body&&_bodyScrollDisabledCount===1&&(eo.body.classList.remove(DisabledScrollClassName),eo.body.removeEventListener("touchmove",_disableIosBodyScroll)),_bodyScrollDisabledCount--}}function getScrollbarWidth(){if(_scrollbarWidth===void 0){var eo=document.createElement("div");eo.style.setProperty("width","100px"),eo.style.setProperty("height","100px"),eo.style.setProperty("overflow","scroll"),eo.style.setProperty("position","absolute"),eo.style.setProperty("top","-9999px"),document.body.appendChild(eo),_scrollbarWidth=eo.offsetWidth-eo.clientWidth,document.body.removeChild(eo)}return _scrollbarWidth}function findScrollableParent(eo){for(var to=eo,no=getDocument(eo);to&&to!==no.body;){if(to.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)==="true")return to;to=to.parentElement}for(to=eo;to&&to!==no.body;){if(to.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)!=="false"){var io=getComputedStyle(to),so=io?io.getPropertyValue("overflow-y"):"";if(so&&(so==="scroll"||so==="auto"))return to}to=to.parentElement}return(!to||to===no.body)&&(to=getWindow(eo)),to}var _warningCallback=void 0;function warn$1(eo){console&&console.warn&&console.warn(eo)}var GLOBAL_SETTINGS_PROP_NAME="__globalSettings__",CALLBACK_STATE_PROP_NAME="__callbacks__",_counter=0,GlobalSettings=function(){function eo(){}return eo.getValue=function(to,no){var io=_getGlobalSettings();return io[to]===void 0&&(io[to]=typeof no=="function"?no():no),io[to]},eo.setValue=function(to,no){var io=_getGlobalSettings(),so=io[CALLBACK_STATE_PROP_NAME],ao=io[to];if(no!==ao){io[to]=no;var lo={oldValue:ao,value:no,key:to};for(var uo in so)so.hasOwnProperty(uo)&&so[uo](lo)}return no},eo.addChangeListener=function(to){var no=to.__id__,io=_getCallbacks();no||(no=to.__id__=String(_counter++)),io[no]=to},eo.removeChangeListener=function(to){var no=_getCallbacks();delete no[to.__id__]},eo}();function _getGlobalSettings(){var eo,to=getWindow(),no=to||{};return no[GLOBAL_SETTINGS_PROP_NAME]||(no[GLOBAL_SETTINGS_PROP_NAME]=(eo={},eo[CALLBACK_STATE_PROP_NAME]={},eo)),no[GLOBAL_SETTINGS_PROP_NAME]}function _getCallbacks(){var eo=_getGlobalSettings();return eo[CALLBACK_STATE_PROP_NAME]}var KeyCodes$1={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,colon:58,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222},Rectangle=function(){function eo(to,no,io,so){to===void 0&&(to=0),no===void 0&&(no=0),io===void 0&&(io=0),so===void 0&&(so=0),this.top=io,this.bottom=so,this.left=to,this.right=no}return Object.defineProperty(eo.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),eo.prototype.equals=function(to){return parseFloat(this.top.toFixed(4))===parseFloat(to.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(to.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(to.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(to.right.toFixed(4))},eo}();function appendFunction(eo){for(var to=[],no=1;no-1&&so._virtual.children.splice(ao,1)}no._virtual.parent=io||void 0,io&&(io._virtual||(io._virtual={children:[]}),io._virtual.children.push(no))}var IS_FOCUSABLE_ATTRIBUTE$1="data-is-focusable",IS_VISIBLE_ATTRIBUTE="data-is-visible",FOCUSZONE_ID_ATTRIBUTE$1="data-focuszone-id",FOCUSZONE_SUB_ATTRIBUTE="data-is-sub-focuszone";function getFirstFocusable(eo,to,no){return getNextElement(eo,to,!0,!1,!1,no)}function getLastFocusable(eo,to,no){return getPreviousElement(eo,to,!0,!1,!0,no)}function getFirstTabbable(eo,to,no,io){return io===void 0&&(io=!0),getNextElement(eo,to,io,!1,!1,no,!1,!0)}function getLastTabbable(eo,to,no,io){return io===void 0&&(io=!0),getPreviousElement(eo,to,io,!1,!0,no,!1,!0)}function focusFirstChild(eo,to){var no=getNextElement(eo,eo,!0,!1,!1,!0,void 0,void 0,to);return no?(focusAsync(no),!0):!1}function getPreviousElement(eo,to,no,io,so,ao,lo,uo){if(!to||!lo&&to===eo)return null;var ho=isElementVisible(to);if(so&&ho&&(ao||!(isElementFocusZone(to)||isElementFocusSubZone(to)))){var go=getPreviousElement(eo,to.lastElementChild,!0,!0,!0,ao,lo,uo);if(go){if(uo&&isElementTabbable(go,!0)||!uo)return go;var mo=getPreviousElement(eo,go.previousElementSibling,!0,!0,!0,ao,lo,uo);if(mo)return mo;for(var yo=go.parentElement;yo&&yo!==to;){var So=getPreviousElement(eo,yo.previousElementSibling,!0,!0,!0,ao,lo,uo);if(So)return So;yo=yo.parentElement}}}if(no&&ho&&isElementTabbable(to,uo))return to;var _o=getPreviousElement(eo,to.previousElementSibling,!0,!0,!0,ao,lo,uo);return _o||(io?null:getPreviousElement(eo,to.parentElement,!0,!1,!1,ao,lo,uo))}function getNextElement(eo,to,no,io,so,ao,lo,uo,ho){if(!to||to===eo&&so&&!lo)return null;var go=ho?isElementVisibleAndNotHidden:isElementVisible,mo=go(to);if(no&&mo&&isElementTabbable(to,uo))return to;if(!so&&mo&&(ao||!(isElementFocusZone(to)||isElementFocusSubZone(to)))){var yo=getNextElement(eo,to.firstElementChild,!0,!0,!1,ao,lo,uo,ho);if(yo)return yo}if(to===eo)return null;var So=getNextElement(eo,to.nextElementSibling,!0,!0,!1,ao,lo,uo,ho);return So||(io?null:getNextElement(eo,to.parentElement,!1,!1,!0,ao,lo,uo,ho))}function isElementVisible(eo){if(!eo||!eo.getAttribute)return!1;var to=eo.getAttribute(IS_VISIBLE_ATTRIBUTE);return to!=null?to==="true":eo.offsetHeight!==0||eo.offsetParent!==null||eo.isVisible===!0}function isElementVisibleAndNotHidden(eo){return!!eo&&isElementVisible(eo)&&!eo.hidden&&window.getComputedStyle(eo).visibility!=="hidden"}function isElementTabbable(eo,to){if(!eo||eo.disabled)return!1;var no=0,io=null;eo&&eo.getAttribute&&(io=eo.getAttribute("tabIndex"),io&&(no=parseInt(io,10)));var so=eo.getAttribute?eo.getAttribute(IS_FOCUSABLE_ATTRIBUTE$1):null,ao=io!==null&&no>=0,lo=!!eo&&so!=="false"&&(eo.tagName==="A"||eo.tagName==="BUTTON"||eo.tagName==="INPUT"||eo.tagName==="TEXTAREA"||eo.tagName==="SELECT"||so==="true"||ao);return to?no!==-1&&lo:lo}function isElementFocusZone(eo){return!!(eo&&eo.getAttribute&&eo.getAttribute(FOCUSZONE_ID_ATTRIBUTE$1))}function isElementFocusSubZone(eo){return!!(eo&&eo.getAttribute&&eo.getAttribute(FOCUSZONE_SUB_ATTRIBUTE)==="true")}function doesElementContainFocus(eo){var to=getDocument(eo),no=to&&to.activeElement;return!!(no&&elementContains(eo,no))}function shouldWrapFocus(eo,to){return elementContainsAttribute(eo,to)!=="true"}var animationId=void 0;function focusAsync(eo){if(eo){var to=getWindow(eo);to&&(animationId!==void 0&&to.cancelAnimationFrame(animationId),animationId=to.requestAnimationFrame(function(){eo&&eo.focus(),animationId=void 0}))}}function getFocusableByIndexPath(eo,to){for(var no=eo,io=0,so=to;io(eo.cacheSize||MAX_CACHE_COUNT)){var _o=getWindow();!((ho=_o==null?void 0:_o.FabricConfig)===null||ho===void 0)&&ho.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(no,"/").concat(io,".")),console.trace()),to.clear(),no=0,eo.disableCaching=!0}return go[retVal]};return ao}function _traverseEdge(eo,to){return to=_normalizeValue(to),eo.has(to)||eo.set(to,new Map),eo.get(to)}function _traverseMap(eo,to){if(typeof to=="function"){var no=to.__cachedInputs__;if(no)for(var io=0,so=to.__cachedInputs__;io"u"?null:WeakMap;function resetMemoizations(){_resetCounter++}function memoizeFunction(eo,to,no){if(to===void 0&&(to=100),no===void 0&&(no=!1),!_weakMap)return eo;if(!_initializedStylesheetResets$1){var io=Stylesheet$2.getInstance();io&&io.onReset&&Stylesheet$2.getInstance().onReset(resetMemoizations),_initializedStylesheetResets$1=!0}var so,ao=0,lo=_resetCounter;return function(){for(var ho=[],go=0;go0&&ao>to)&&(so=_createNode(),ao=0,lo=_resetCounter),mo=so;for(var yo=0;yo=0||ho.indexOf("data-")===0||ho.indexOf("aria-")===0;go&&(!no||(no==null?void 0:no.indexOf(ho))===-1)&&(so[ho]=eo[ho])}return so}function initializeComponentRef(eo){extendComponent(eo,{componentDidMount:_onMount,componentDidUpdate:_onUpdate,componentWillUnmount:_onUnmount})}function _onMount(){_setComponentRef(this.props.componentRef,this)}function _onUpdate(eo){eo.componentRef!==this.props.componentRef&&(_setComponentRef(eo.componentRef,null),_setComponentRef(this.props.componentRef,this))}function _onUnmount(){_setComponentRef(this.props.componentRef,null)}function _setComponentRef(eo,to){eo&&(typeof eo=="object"?eo.current=to:typeof eo=="function"&&eo(to))}var _a$b,DirectionalKeyCodes=(_a$b={},_a$b[KeyCodes$1.up]=1,_a$b[KeyCodes$1.down]=1,_a$b[KeyCodes$1.left]=1,_a$b[KeyCodes$1.right]=1,_a$b[KeyCodes$1.home]=1,_a$b[KeyCodes$1.end]=1,_a$b[KeyCodes$1.tab]=1,_a$b[KeyCodes$1.pageUp]=1,_a$b[KeyCodes$1.pageDown]=1,_a$b);function isDirectionalKeyCode(eo){return!!DirectionalKeyCodes[eo]}var IsFocusVisibleClassName="ms-Fabric--isFocusVisible",IsFocusHiddenClassName="ms-Fabric--isFocusHidden";function updateClassList(eo,to){eo&&(eo.classList.add(to?IsFocusVisibleClassName:IsFocusHiddenClassName),eo.classList.remove(to?IsFocusHiddenClassName:IsFocusVisibleClassName))}function setFocusVisibility(eo,to,no){var io;no?no.forEach(function(so){return updateClassList(so.current,eo)}):updateClassList((io=getWindow(to))===null||io===void 0?void 0:io.document.body,eo)}var mountCounters=new WeakMap,callbackMap=new WeakMap;function setMountCounters(eo,to){var no,io=mountCounters.get(eo);return io?no=io+to:no=1,mountCounters.set(eo,no),no}function setCallbackMap(eo){var to=callbackMap.get(eo);if(to)return to;var no=function(lo){return _onMouseDown(lo,eo.registeredProviders)},io=function(lo){return _onPointerDown(lo,eo.registeredProviders)},so=function(lo){return _onKeyDown(lo,eo.registeredProviders)},ao=function(lo){return _onKeyUp(lo,eo.registeredProviders)};return to={onMouseDown:no,onPointerDown:io,onKeyDown:so,onKeyUp:ao},callbackMap.set(eo,to),to}var FocusRectsContext=reactExports.createContext(void 0);function useFocusRects(eo){var to=reactExports.useContext(FocusRectsContext);reactExports.useEffect(function(){var no,io,so,ao,lo=getWindow(eo==null?void 0:eo.current);if(!(!lo||((no=lo.FabricConfig)===null||no===void 0?void 0:no.disableFocusRects)===!0)){var uo=lo,ho,go,mo,yo;if(!((io=to==null?void 0:to.providerRef)===null||io===void 0)&&io.current&&(!((ao=(so=to==null?void 0:to.providerRef)===null||so===void 0?void 0:so.current)===null||ao===void 0)&&ao.addEventListener)){uo=to.providerRef.current;var So=setCallbackMap(to);ho=So.onMouseDown,go=So.onPointerDown,mo=So.onKeyDown,yo=So.onKeyUp}else ho=_onMouseDown,go=_onPointerDown,mo=_onKeyDown,yo=_onKeyUp;var _o=setMountCounters(uo,1);return _o<=1&&(uo.addEventListener("mousedown",ho,!0),uo.addEventListener("pointerdown",go,!0),uo.addEventListener("keydown",mo,!0),uo.addEventListener("keyup",yo,!0)),function(){var ko;!lo||((ko=lo.FabricConfig)===null||ko===void 0?void 0:ko.disableFocusRects)===!0||(_o=setMountCounters(uo,-1),_o===0&&(uo.removeEventListener("mousedown",ho,!0),uo.removeEventListener("pointerdown",go,!0),uo.removeEventListener("keydown",mo,!0),uo.removeEventListener("keyup",yo,!0)))}}},[to,eo])}var FocusRects=function(eo){return useFocusRects(eo.rootRef),null};function _onMouseDown(eo,to){setFocusVisibility(!1,eo.target,to)}function _onPointerDown(eo,to){eo.pointerType!=="mouse"&&setFocusVisibility(!1,eo.target,to)}function _onKeyDown(eo,to){isDirectionalKeyCode(eo.which)&&setFocusVisibility(!0,eo.target,to)}function _onKeyUp(eo,to){isDirectionalKeyCode(eo.which)&&setFocusVisibility(!0,eo.target,to)}var FocusRectsProvider=function(eo){var to=eo.providerRef,no=eo.layerRoot,io=reactExports.useState([])[0],so=reactExports.useContext(FocusRectsContext),ao=so!==void 0&&!no,lo=reactExports.useMemo(function(){return ao?void 0:{providerRef:to,registeredProviders:io,registerProvider:function(uo){io.push(uo),so==null||so.registerProvider(uo)},unregisterProvider:function(uo){so==null||so.unregisterProvider(uo);var ho=io.indexOf(uo);ho>=0&&io.splice(ho,1)}}},[to,io,so,ao]);return reactExports.useEffect(function(){if(lo)return lo.registerProvider(lo.providerRef),function(){return lo.unregisterProvider(lo.providerRef)}},[lo]),lo?reactExports.createElement(FocusRectsContext.Provider,{value:lo},eo.children):reactExports.createElement(reactExports.Fragment,null,eo.children)};function getItem(eo){var to=null;try{var no=getWindow();to=no?no.localStorage.getItem(eo):null}catch{}return to}var _language,STORAGE_KEY="language";function getLanguage(eo){if(eo===void 0&&(eo="sessionStorage"),_language===void 0){var to=getDocument(),no=eo==="localStorage"?getItem(STORAGE_KEY):eo==="sessionStorage"?getItem$1(STORAGE_KEY):void 0;no&&(_language=no),_language===void 0&&to&&(_language=to.documentElement.getAttribute("lang")),_language===void 0&&(_language="en")}return _language}function merge$7(eo){for(var to=[],no=1;no-1;eo[io]=ao?so:_merge(eo[io]||{},so,no)}else eo[io]=so}return no.pop(),eo}var isIOS=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},tagsToIgnore=["TEMPLATE","STYLE","SCRIPT"];function modalize(eo){var to=getDocument(eo);if(!to)return function(){};for(var no=[];eo!==to.body&&eo.parentElement;){for(var io=0,so=eo.parentElement.children;io"u"||eo){var no=getWindow(),io=(to=no==null?void 0:no.navigator)===null||to===void 0?void 0:to.userAgent;isMacResult=!!io&&io.indexOf("Macintosh")!==-1}return!!isMacResult}function createComposedRenderFunction(eo){var to=createMemoizer(function(no){var io=createMemoizer(function(so){return function(ao){return no(ao,so)}});return function(so,ao){return eo(so,ao?io(ao):no)}});return to}var memoizer=createMemoizer(createComposedRenderFunction);function composeRenderFunction(eo,to){return memoizer(eo)(to)}var DefaultFields=["theme","styles"];function styled(eo,to,no,io,so){io=io||{scope:"",fields:void 0};var ao=io.scope,lo=io.fields,uo=lo===void 0?DefaultFields:lo,ho=reactExports.forwardRef(function(mo,yo){var So=reactExports.useRef(),_o=useCustomizationSettings(uo,ao),ko=_o.styles;_o.dir;var Co=__rest$1(_o,["styles","dir"]),$o=no?no(mo):void 0,Ro=So.current&&So.current.__cachedInputs__||[],Oo=mo.styles;if(!So.current||ko!==Ro[1]||Oo!==Ro[2]){var No=function(Mo){return concatStyleSetsWithProps(Mo,to,ko,Oo)};No.__cachedInputs__=[to,ko,Oo],No.__noStyleOverride__=!ko&&!Oo,So.current=No}return reactExports.createElement(eo,__assign$4({ref:yo},Co,$o,mo,{styles:So.current}))});ho.displayName="Styled".concat(eo.displayName||eo.name);var go=so?reactExports.memo(ho):ho;return ho.displayName&&(go.displayName=ho.displayName),go}function getPropsWithDefaults(eo,to){for(var no=__assign$4({},to),io=0,so=Object.keys(eo);ioio?" (+ ".concat(_missingIcons.length-io," more)"):"")),_missingIconsTimer=void 0,_missingIcons=[]},no)))}function makeSemanticColors(eo,to,no,io,so){so===void 0&&(so=!1);var ao=__assign$4({primaryButtonBorder:"transparent",errorText:io?"#F1707B":"#a4262c",messageText:io?"#F3F2F1":"#323130",messageLink:io?"#6CB8F6":"#005A9E",messageLinkHovered:io?"#82C7FF":"#004578",infoIcon:io?"#C8C6C4":"#605e5c",errorIcon:io?"#F1707B":"#A80000",blockingIcon:io?"#442726":"#FDE7E9",warningIcon:io?"#C8C6C4":"#797775",severeWarningIcon:io?"#FCE100":"#D83B01",successIcon:io?"#92C353":"#107C10",infoBackground:io?"#323130":"#f3f2f1",errorBackground:io?"#442726":"#FDE7E9",blockingBackground:io?"#442726":"#FDE7E9",warningBackground:io?"#433519":"#FFF4CE",severeWarningBackground:io?"#4F2A0F":"#FED9CC",successBackground:io?"#393D1B":"#DFF6DD",warningHighlight:io?"#fff100":"#ffb900",successText:io?"#92c353":"#107C10"},no),lo=getSemanticColors(eo,to,ao,io);return _fixDeprecatedSlots(lo,so)}function getSemanticColors(eo,to,no,io,so){var ao={},lo=eo||{},uo=lo.white,ho=lo.black,go=lo.themePrimary,mo=lo.themeDark,yo=lo.themeDarker,So=lo.themeDarkAlt,_o=lo.themeLighter,ko=lo.neutralLight,Co=lo.neutralLighter,$o=lo.neutralDark,Ro=lo.neutralQuaternary,Oo=lo.neutralQuaternaryAlt,No=lo.neutralPrimary,Mo=lo.neutralSecondary,Bo=lo.neutralSecondaryAlt,Po=lo.neutralTertiary,Lo=lo.neutralTertiaryAlt,Go=lo.neutralLighterAlt,Do=lo.accent;return uo&&(ao.bodyBackground=uo,ao.bodyFrameBackground=uo,ao.accentButtonText=uo,ao.buttonBackground=uo,ao.primaryButtonText=uo,ao.primaryButtonTextHovered=uo,ao.primaryButtonTextPressed=uo,ao.inputBackground=uo,ao.inputForegroundChecked=uo,ao.listBackground=uo,ao.menuBackground=uo,ao.cardStandoutBackground=uo),ho&&(ao.bodyTextChecked=ho,ao.buttonTextCheckedHovered=ho),go&&(ao.link=go,ao.primaryButtonBackground=go,ao.inputBackgroundChecked=go,ao.inputIcon=go,ao.inputFocusBorderAlt=go,ao.menuIcon=go,ao.menuHeader=go,ao.accentButtonBackground=go),mo&&(ao.primaryButtonBackgroundPressed=mo,ao.inputBackgroundCheckedHovered=mo,ao.inputIconHovered=mo),yo&&(ao.linkHovered=yo),So&&(ao.primaryButtonBackgroundHovered=So),_o&&(ao.inputPlaceholderBackgroundChecked=_o),ko&&(ao.bodyBackgroundChecked=ko,ao.bodyFrameDivider=ko,ao.bodyDivider=ko,ao.variantBorder=ko,ao.buttonBackgroundCheckedHovered=ko,ao.buttonBackgroundPressed=ko,ao.listItemBackgroundChecked=ko,ao.listHeaderBackgroundPressed=ko,ao.menuItemBackgroundPressed=ko,ao.menuItemBackgroundChecked=ko),Co&&(ao.bodyBackgroundHovered=Co,ao.buttonBackgroundHovered=Co,ao.buttonBackgroundDisabled=Co,ao.buttonBorderDisabled=Co,ao.primaryButtonBackgroundDisabled=Co,ao.disabledBackground=Co,ao.listItemBackgroundHovered=Co,ao.listHeaderBackgroundHovered=Co,ao.menuItemBackgroundHovered=Co),Ro&&(ao.primaryButtonTextDisabled=Ro,ao.disabledSubtext=Ro),Oo&&(ao.listItemBackgroundCheckedHovered=Oo),Po&&(ao.disabledBodyText=Po,ao.variantBorderHovered=(no==null?void 0:no.variantBorderHovered)||Po,ao.buttonTextDisabled=Po,ao.inputIconDisabled=Po,ao.disabledText=Po),No&&(ao.bodyText=No,ao.actionLink=No,ao.buttonText=No,ao.inputBorderHovered=No,ao.inputText=No,ao.listText=No,ao.menuItemText=No),Go&&(ao.bodyStandoutBackground=Go,ao.defaultStateBackground=Go),$o&&(ao.actionLinkHovered=$o,ao.buttonTextHovered=$o,ao.buttonTextChecked=$o,ao.buttonTextPressed=$o,ao.inputTextHovered=$o,ao.menuItemTextHovered=$o),Mo&&(ao.bodySubtext=Mo,ao.focusBorder=Mo,ao.inputBorder=Mo,ao.smallInputBorder=Mo,ao.inputPlaceholderText=Mo),Bo&&(ao.buttonBorder=Bo),Lo&&(ao.disabledBodySubtext=Lo,ao.disabledBorder=Lo,ao.buttonBackgroundChecked=Lo,ao.menuDivider=Lo),Do&&(ao.accentButtonBackground=Do),to!=null&&to.elevation4&&(ao.cardShadow=to.elevation4),!io&&(to!=null&&to.elevation8)?ao.cardShadowHovered=to.elevation8:ao.variantBorderHovered&&(ao.cardShadowHovered="0 0 1px "+ao.variantBorderHovered),ao=__assign$4(__assign$4({},ao),no),ao}function _fixDeprecatedSlots(eo,to){var no="";return to===!0&&(no=" /* @deprecated */"),eo.listTextColor=eo.listText+no,eo.menuItemBackgroundChecked+=no,eo.warningHighlight+=no,eo.warningText=eo.messageText+no,eo.successText+=no,eo}function mergeThemes(eo,to){var no,io,so;to===void 0&&(to={});var ao=merge$7({},eo,to,{semanticColors:getSemanticColors(to.palette,to.effects,to.semanticColors,to.isInverted===void 0?eo.isInverted:to.isInverted)});if(!((no=to.palette)===null||no===void 0)&&no.themePrimary&&!(!((io=to.palette)===null||io===void 0)&&io.accent)&&(ao.palette.accent=to.palette.themePrimary),to.defaultFontStyle)for(var lo=0,uo=Object.keys(ao.fonts);lo"u"?global:window,_styleNonce=_root$1&&_root$1.CSPSettings&&_root$1.CSPSettings.nonce,_themeState=initializeThemeState();function initializeThemeState(){var eo=_root$1.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return eo.runState||(eo=__assign$3(__assign$3({},eo),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),eo.registeredThemableStyles||(eo=__assign$3(__assign$3({},eo),{registeredThemableStyles:[]})),_root$1.__themeState__=eo,eo}function applyThemableStyles(eo,to){_themeState.loadStyles?_themeState.loadStyles(resolveThemableArray(eo).styleString,eo):registerStyles$1(eo)}function loadTheme$1(eo){_themeState.theme=eo,reloadStyles()}function clearStyles(eo){eo===void 0&&(eo=3),(eo===3||eo===2)&&(clearStylesInternal(_themeState.registeredStyles),_themeState.registeredStyles=[]),(eo===3||eo===1)&&(clearStylesInternal(_themeState.registeredThemableStyles),_themeState.registeredThemableStyles=[])}function clearStylesInternal(eo){eo.forEach(function(to){var no=to&&to.styleElement;no&&no.parentElement&&no.parentElement.removeChild(no)})}function reloadStyles(){if(_themeState.theme){for(var eo=[],to=0,no=_themeState.registeredThemableStyles;to0&&(clearStyles(1),applyThemableStyles([].concat.apply([],eo)))}}function resolveThemableArray(eo){var to=_themeState.theme,no=!1,io=(eo||[]).map(function(so){var ao=so.theme;if(ao){no=!0;var lo=to?to[ao]:void 0,uo=so.defaultValue||"inherit";return to&&!lo&&console&&!(ao in to)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(ao,'". Falling back to "').concat(uo,'".')),lo||uo}else return so.rawString});return{styleString:io.join(""),themable:no}}function registerStyles$1(eo){if(!(typeof document>"u")){var to=document.getElementsByTagName("head")[0],no=document.createElement("style"),io=resolveThemableArray(eo),so=io.styleString,ao=io.themable;no.setAttribute("data-load-themed-styles","true"),_styleNonce&&no.setAttribute("nonce",_styleNonce),no.appendChild(document.createTextNode(so)),_themeState.perf.count++,to.appendChild(no);var lo=document.createEvent("HTMLEvents");lo.initEvent("styleinsert",!0,!1),lo.args={newStyle:no},document.dispatchEvent(lo);var uo={styleElement:no,themableStyle:eo};ao?_themeState.registeredThemableStyles.push(uo):_themeState.registeredStyles.push(uo)}}var _theme=createTheme$1({}),_onThemeChangeCallbacks=[],ThemeSettingName="theme";function initializeThemeInCustomizations(){var eo,to,no,io=getWindow();!((to=io==null?void 0:io.FabricConfig)===null||to===void 0)&&to.legacyTheme?loadTheme(io.FabricConfig.legacyTheme):Customizations.getSettings([ThemeSettingName]).theme||(!((no=io==null?void 0:io.FabricConfig)===null||no===void 0)&&no.theme&&(_theme=createTheme$1(io.FabricConfig.theme)),Customizations.applySettings((eo={},eo[ThemeSettingName]=_theme,eo)))}initializeThemeInCustomizations();function getTheme(eo){return eo===void 0&&(eo=!1),eo===!0&&(_theme=createTheme$1({},eo)),_theme}function loadTheme(eo,to){var no;return to===void 0&&(to=!1),_theme=createTheme$1(eo,to),loadTheme$1(__assign$4(__assign$4(__assign$4(__assign$4({},_theme.palette),_theme.semanticColors),_theme.effects),_loadFonts(_theme))),Customizations.applySettings((no={},no[ThemeSettingName]=_theme,no)),_onThemeChangeCallbacks.forEach(function(io){try{io(_theme)}catch{}}),_theme}function _loadFonts(eo){for(var to={},no=0,io=Object.keys(eo.fonts);noto.bottom||eo.leftto.right)}function _getOutOfBoundsEdges(eo,to){var no=[];return eo.topto.bottom&&no.push(RectangleEdge.bottom),eo.leftto.right&&no.push(RectangleEdge.right),no}function _getEdgeValue(eo,to){return eo[RectangleEdge[to]]}function _setEdgeValue(eo,to,no){return eo[RectangleEdge[to]]=no,eo}function _getCenterValue(eo,to){var no=_getFlankingEdges(to);return(_getEdgeValue(eo,no.positiveEdge)+_getEdgeValue(eo,no.negativeEdge))/2}function _getRelativeEdgeValue(eo,to){return eo>0?to:to*-1}function _getRelativeRectEdgeValue(eo,to){return _getRelativeEdgeValue(eo,_getEdgeValue(to,eo))}function _getRelativeEdgeDifference(eo,to,no){var io=_getEdgeValue(eo,no)-_getEdgeValue(to,no);return _getRelativeEdgeValue(no,io)}function _moveEdge(eo,to,no,io){io===void 0&&(io=!0);var so=_getEdgeValue(eo,to)-no,ao=_setEdgeValue(eo,to,no);return io&&(ao=_setEdgeValue(eo,to*-1,_getEdgeValue(eo,to*-1)-so)),ao}function _alignEdges(eo,to,no,io){return io===void 0&&(io=0),_moveEdge(eo,no,_getEdgeValue(to,no)+_getRelativeEdgeValue(no,io))}function _alignOppositeEdges(eo,to,no,io){io===void 0&&(io=0);var so=no*-1,ao=_getRelativeEdgeValue(so,io);return _moveEdge(eo,no*-1,_getEdgeValue(to,no)+ao)}function _isEdgeInBounds(eo,to,no){var io=_getRelativeRectEdgeValue(no,eo);return io>_getRelativeRectEdgeValue(no,to)}function _getOutOfBoundsDegree(eo,to){for(var no=_getOutOfBoundsEdges(eo,to),io=0,so=0,ao=no;so=io}function _flipToFit(eo,to,no,io,so,ao,lo){so===void 0&&(so=!1),lo===void 0&&(lo=0);var uo=[RectangleEdge.left,RectangleEdge.right,RectangleEdge.bottom,RectangleEdge.top];getRTL$1()&&(uo[0]*=-1,uo[1]*=-1);for(var ho=eo,go=io.targetEdge,mo=io.alignmentEdge,yo,So=go,_o=mo,ko=0;ko<4;ko++){if(_isEdgeInBounds(ho,no,go))return{elementRectangle:ho,targetEdge:go,alignmentEdge:mo};if(so&&_canScrollResizeToFitEdge(to,no,go,ao)){switch(go){case RectangleEdge.bottom:ho.bottom=no.bottom;break;case RectangleEdge.top:ho.top=no.top;break}return{elementRectangle:ho,targetEdge:go,alignmentEdge:mo,forcedInBounds:!0}}else{var Co=_getOutOfBoundsDegree(ho,no);(!yo||Co0&&(uo.indexOf(go*-1)>-1?go=go*-1:(mo=go,go=uo.slice(-1)[0]),ho=_estimatePosition(eo,to,{targetEdge:go,alignmentEdge:mo},lo))}}return ho=_estimatePosition(eo,to,{targetEdge:So,alignmentEdge:_o},lo),{elementRectangle:ho,targetEdge:So,alignmentEdge:_o}}function _flipAlignmentEdge(eo,to,no,io){var so=eo.alignmentEdge,ao=eo.targetEdge,lo=eo.elementRectangle,uo=so*-1,ho=_estimatePosition(lo,to,{targetEdge:ao,alignmentEdge:uo},no,io);return{elementRectangle:ho,targetEdge:ao,alignmentEdge:uo}}function _adjustFitWithinBounds(eo,to,no,io,so,ao,lo,uo,ho){so===void 0&&(so=!1),lo===void 0&&(lo=0);var go=io.alignmentEdge,mo=io.alignTargetEdge,yo={elementRectangle:eo,targetEdge:io.targetEdge,alignmentEdge:go};!uo&&!ho&&(yo=_flipToFit(eo,to,no,io,so,ao,lo));var So=_getOutOfBoundsEdges(yo.elementRectangle,no),_o=uo?-yo.targetEdge:void 0;if(So.length>0)if(mo)if(yo.alignmentEdge&&So.indexOf(yo.alignmentEdge*-1)>-1){var ko=_flipAlignmentEdge(yo,to,lo,ho);if(_isRectangleWithinBounds(ko.elementRectangle,no))return ko;yo=_alignOutOfBoundsEdges(_getOutOfBoundsEdges(ko.elementRectangle,no),yo,no,_o)}else yo=_alignOutOfBoundsEdges(So,yo,no,_o);else yo=_alignOutOfBoundsEdges(So,yo,no,_o);return yo}function _alignOutOfBoundsEdges(eo,to,no,io){for(var so=0,ao=eo;soMath.abs(_getRelativeEdgeDifference(eo,no,to*-1))?to*-1:to}function _isEdgeOnBounds(eo,to,no){return no!==void 0&&_getEdgeValue(eo,to)===_getEdgeValue(no,to)}function _finalizeElementPosition(eo,to,no,io,so,ao,lo,uo){var ho={},go=_getRectangleFromElement(to),mo=ao?no:no*-1,yo=so||_getFlankingEdges(no).positiveEdge;return(!lo||_isEdgeOnBounds(eo,getOppositeEdge(yo),io))&&(yo=_finalizeReturnEdge(eo,yo,io)),ho[RectangleEdge[mo]]=_getRelativeEdgeDifference(eo,go,mo),ho[RectangleEdge[yo]]=_getRelativeEdgeDifference(eo,go,yo),uo&&(ho[RectangleEdge[mo*-1]]=_getRelativeEdgeDifference(eo,go,mo*-1),ho[RectangleEdge[yo*-1]]=_getRelativeEdgeDifference(eo,go,yo*-1)),ho}function _calculateActualBeakWidthInPixels(eo){return Math.sqrt(eo*eo*2)}function _getPositionData(eo,to,no){if(eo===void 0&&(eo=DirectionalHint.bottomAutoEdge),no)return{alignmentEdge:no.alignmentEdge,isAuto:no.isAuto,targetEdge:no.targetEdge};var io=__assign$4({},DirectionalDictionary[eo]);return getRTL$1()?(io.alignmentEdge&&io.alignmentEdge%2===0&&(io.alignmentEdge=io.alignmentEdge*-1),to!==void 0?DirectionalDictionary[to]:io):io}function _getAlignmentData(eo,to,no,io,so){return eo.isAuto&&(eo.alignmentEdge=getClosestEdge(eo.targetEdge,to,no)),eo.alignTargetEdge=so,eo}function getClosestEdge(eo,to,no){var io=_getCenterValue(to,eo),so=_getCenterValue(no,eo),ao=_getFlankingEdges(eo),lo=ao.positiveEdge,uo=ao.negativeEdge;return io<=so?lo:uo}function _positionElementWithinBounds(eo,to,no,io,so,ao,lo,uo,ho){ao===void 0&&(ao=!1);var go=_estimatePosition(eo,to,io,so,ho);return _isRectangleWithinBounds(go,no)?{elementRectangle:go,targetEdge:io.targetEdge,alignmentEdge:io.alignmentEdge}:_adjustFitWithinBounds(go,to,no,io,ao,lo,so,uo,ho)}function _finalizeBeakPosition(eo,to,no){var io=eo.targetEdge*-1,so=new Rectangle(0,eo.elementRectangle.width,0,eo.elementRectangle.height),ao={},lo=_finalizeReturnEdge(eo.elementRectangle,eo.alignmentEdge?eo.alignmentEdge:_getFlankingEdges(io).positiveEdge,no),uo=_getRelativeEdgeDifference(eo.elementRectangle,eo.targetRectangle,io),ho=uo>Math.abs(_getEdgeValue(to,io));return ao[RectangleEdge[io]]=_getEdgeValue(to,io),ao[RectangleEdge[lo]]=_getRelativeEdgeDifference(to,so,lo),{elementPosition:__assign$4({},ao),closestEdge:getClosestEdge(eo.targetEdge,to,so),targetEdge:io,hideBeak:!ho}}function _positionBeak(eo,to){var no=to.targetRectangle,io=_getFlankingEdges(to.targetEdge),so=io.positiveEdge,ao=io.negativeEdge,lo=_getCenterValue(no,to.targetEdge),uo=new Rectangle(eo/2,to.elementRectangle.width-eo/2,eo/2,to.elementRectangle.height-eo/2),ho=new Rectangle(0,eo,0,eo);return ho=_moveEdge(ho,to.targetEdge*-1,-eo/2),ho=_centerEdgeToPoint(ho,to.targetEdge*-1,lo-_getRelativeRectEdgeValue(so,to.elementRectangle)),_isEdgeInBounds(ho,uo,so)?_isEdgeInBounds(ho,uo,ao)||(ho=_alignEdges(ho,uo,ao)):ho=_alignEdges(ho,uo,so),ho}function _getRectangleFromElement(eo){var to=eo.getBoundingClientRect();return new Rectangle(to.left,to.right,to.top,to.bottom)}function _getRectangleFromIRect(eo){return new Rectangle(eo.left,eo.right,eo.top,eo.bottom)}function _getTargetRect(eo,to){var no;if(to){if(to.preventDefault){var io=to;no=new Rectangle(io.clientX,io.clientX,io.clientY,io.clientY)}else if(to.getBoundingClientRect)no=_getRectangleFromElement(to);else{var so=to,ao=so.left||so.x,lo=so.top||so.y,uo=so.right||ao,ho=so.bottom||lo;no=new Rectangle(ao,uo,lo,ho)}if(!_isRectangleWithinBounds(no,eo))for(var go=_getOutOfBoundsEdges(no,eo),mo=0,yo=go;mo=io&&so&&go.top<=so&&go.bottom>=so&&(lo={top:go.top,left:go.left,right:go.right,bottom:go.bottom,width:go.width,height:go.height})}return lo}function getBoundsFromTargetWindow(eo,to){return _getBoundsFromTargetWindow(eo,to)}function calculateGapSpace(eo,to,no){return _calculateGapSpace(eo,to,no)}function getRectangleFromTarget(eo){return _getRectangleFromTarget(eo)}function useAsync(){var eo=reactExports.useRef();return eo.current||(eo.current=new Async),reactExports.useEffect(function(){return function(){var to;(to=eo.current)===null||to===void 0||to.dispose(),eo.current=void 0}},[]),eo.current}function useConst(eo){var to=reactExports.useRef();return to.current===void 0&&(to.current={value:typeof eo=="function"?eo():eo}),to.current.value}function useBoolean(eo){var to=reactExports.useState(eo),no=to[0],io=to[1],so=useConst(function(){return function(){io(!0)}}),ao=useConst(function(){return function(){io(!1)}}),lo=useConst(function(){return function(){io(function(uo){return!uo})}});return[no,{setTrue:so,setFalse:ao,toggle:lo}]}function useEventCallback$2(eo){var to=reactExports.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect(function(){to.current=eo},[eo]),useConst(function(){return function(){for(var no=[],io=0;io0&&go>ho&&(uo=go-ho>1)}so!==uo&&ao(uo)}}),function(){return no.dispose()}}),so}function defaultFocusRestorer(eo){var to=eo.originalElement,no=eo.containsFocus;to&&no&&to!==getWindow()&&setTimeout(function(){var io;(io=to.focus)===null||io===void 0||io.call(to)},0)}function useRestoreFocus(eo,to){var no=eo.onRestoreFocus,io=no===void 0?defaultFocusRestorer:no,so=reactExports.useRef(),ao=reactExports.useRef(!1);reactExports.useEffect(function(){return so.current=getDocument().activeElement,doesElementContainFocus(to.current)&&(ao.current=!0),function(){var lo;io==null||io({originalElement:so.current,containsFocus:ao.current,documentContainsFocus:((lo=getDocument())===null||lo===void 0?void 0:lo.hasFocus())||!1}),so.current=void 0}},[]),useOnEvent(to,"focus",reactExports.useCallback(function(){ao.current=!0},[]),!0),useOnEvent(to,"blur",reactExports.useCallback(function(lo){to.current&&lo.relatedTarget&&!to.current.contains(lo.relatedTarget)&&(ao.current=!1)},[]),!0)}function useHideSiblingNodes(eo,to){var no=String(eo["aria-modal"]).toLowerCase()==="true"&&eo.enableAriaHiddenSiblings;reactExports.useEffect(function(){if(no&&to.current){var io=modalize(to.current);return io}},[to,no])}var Popup=reactExports.forwardRef(function(eo,to){var no=getPropsWithDefaults({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},eo),io=reactExports.useRef(),so=useMergedRefs(io,to);useHideSiblingNodes(no,io),useRestoreFocus(no,io);var ao=no.role,lo=no.className,uo=no.ariaLabel,ho=no.ariaLabelledBy,go=no.ariaDescribedBy,mo=no.style,yo=no.children,So=no.onDismiss,_o=useScrollbarAsync(no,io),ko=reactExports.useCallback(function($o){switch($o.which){case KeyCodes$1.escape:So&&(So($o),$o.preventDefault(),$o.stopPropagation());break}},[So]),Co=useWindow();return useOnEvent(Co,"keydown",ko),reactExports.createElement("div",__assign$4({ref:so},getNativeProps(no,divProperties),{className:lo,role:ao,"aria-label":uo,"aria-labelledby":ho,"aria-describedby":go,onKeyDown:ko,style:__assign$4({overflowY:_o?"scroll":void 0,outline:"none"},mo)}),yo)});Popup.displayName="Popup";var _a$9,COMPONENT_NAME$2="CalloutContentBase",ANIMATIONS=(_a$9={},_a$9[RectangleEdge.top]=AnimationClassNames.slideUpIn10,_a$9[RectangleEdge.bottom]=AnimationClassNames.slideDownIn10,_a$9[RectangleEdge.left]=AnimationClassNames.slideLeftIn10,_a$9[RectangleEdge.right]=AnimationClassNames.slideRightIn10,_a$9),BEAK_ORIGIN_POSITION={top:0,left:0},OFF_SCREEN_STYLE={opacity:0,filter:"opacity(0)",pointerEvents:"none"},ARIA_ROLE_ATTRIBUTES=["role","aria-roledescription"],DEFAULT_PROPS$3={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:DirectionalHint.bottomAutoEdge},getClassNames$9=classNamesFunction({disableCaching:!0});function useBounds(eo,to,no){var io=eo.bounds,so=eo.minPagePadding,ao=so===void 0?DEFAULT_PROPS$3.minPagePadding:so,lo=eo.target,uo=reactExports.useState(!1),ho=uo[0],go=uo[1],mo=reactExports.useRef(),yo=reactExports.useCallback(function(){if(!mo.current||ho){var _o=typeof io=="function"?no?io(lo,no):void 0:io;!_o&&no&&(_o=getBoundsFromTargetWindow(to.current,no),_o={top:_o.top+ao,left:_o.left+ao,right:_o.right-ao,bottom:_o.bottom-ao,width:_o.width-ao*2,height:_o.height-ao*2}),mo.current=_o,ho&&go(!1)}return mo.current},[io,ao,lo,to,no,ho]),So=useAsync();return useOnEvent(no,"resize",So.debounce(function(){go(!0)},500,{leading:!0})),yo}function useMaxHeight(eo,to,no,io){var so,ao=eo.calloutMaxHeight,lo=eo.finalHeight,uo=eo.directionalHint,ho=eo.directionalHintFixed,go=eo.hidden,mo=eo.gapSpace,yo=eo.beakWidth,So=eo.isBeakVisible,_o=reactExports.useState(),ko=_o[0],Co=_o[1],$o=(so=io==null?void 0:io.elementPosition)!==null&&so!==void 0?so:{},Ro=$o.top,Oo=$o.bottom,No=no!=null&&no.current?getRectangleFromTarget(no.current):void 0;return reactExports.useEffect(function(){var Mo,Bo=(Mo=to())!==null&&Mo!==void 0?Mo:{},Po=Bo.top,Lo=Bo.bottom,Go;(io==null?void 0:io.targetEdge)===RectangleEdge.top&&(No!=null&&No.top)&&(Lo=No.top-calculateGapSpace(So,yo,mo)),typeof Ro=="number"&&Lo?Go=Lo-Ro:typeof Oo=="number"&&typeof Po=="number"&&Lo&&(Go=Lo-Po-Oo),!ao&&!go||ao&&Go&&ao>Go?Co(Go):Co(ao||void 0)},[Oo,ao,lo,uo,ho,to,go,io,Ro,mo,yo,So,No]),ko}function usePositions(eo,to,no,io,so,ao){var lo=reactExports.useState(),uo=lo[0],ho=lo[1],go=reactExports.useRef(0),mo=reactExports.useRef(),yo=useAsync(),So=eo.hidden,_o=eo.target,ko=eo.finalHeight,Co=eo.calloutMaxHeight,$o=eo.onPositioned,Ro=eo.directionalHint,Oo=eo.hideOverflow,No=eo.preferScrollResizePositioning,Mo=useWindow(),Bo=reactExports.useRef(),Po;Bo.current!==ao.current&&(Bo.current=ao.current,Po=ao.current?Mo==null?void 0:Mo.getComputedStyle(ao.current):void 0);var Lo=Po==null?void 0:Po.overflowY;return reactExports.useEffect(function(){if(So)ho(void 0),go.current=0;else{var Go=yo.requestAnimationFrame(function(){var Do,Uo;if(to.current&&no){var Ho=__assign$4(__assign$4({},eo),{target:io.current,bounds:so()}),Yo=no.cloneNode(!0);Yo.style.maxHeight=Co?"".concat(Co):"",Yo.style.visibility="hidden",(Do=no.parentElement)===null||Do===void 0||Do.appendChild(Yo);var qo=mo.current===_o?uo:void 0,Jo=Oo||Lo==="clip"||Lo==="hidden",ps=No&&!Jo,Qo=ko?positionCard(Ho,to.current,Yo,qo):positionCallout(Ho,to.current,Yo,qo,ps);(Uo=no.parentElement)===null||Uo===void 0||Uo.removeChild(Yo),!uo&&Qo||uo&&Qo&&!arePositionsEqual(uo,Qo)&&go.current<5?(go.current++,ho(Qo)):go.current>0&&(go.current=0,$o==null||$o(uo))}},no);return mo.current=_o,function(){yo.cancelAnimationFrame(Go),mo.current=void 0}}},[So,Ro,yo,no,Co,to,io,ko,so,$o,uo,eo,_o,Oo,No,Lo]),uo}function useAutoFocus(eo,to,no){var io=eo.hidden,so=eo.setInitialFocus,ao=useAsync(),lo=!!to;reactExports.useEffect(function(){if(!io&&so&&lo&&no){var uo=ao.requestAnimationFrame(function(){return focusFirstChild(no)},no);return function(){return ao.cancelAnimationFrame(uo)}}},[io,lo,ao,no,so])}function useDismissHandlers(eo,to,no,io,so){var ao=eo.hidden,lo=eo.onDismiss,uo=eo.preventDismissOnScroll,ho=eo.preventDismissOnResize,go=eo.preventDismissOnLostFocus,mo=eo.dismissOnTargetClick,yo=eo.shouldDismissOnWindowFocus,So=eo.preventDismissOnEvent,_o=reactExports.useRef(!1),ko=useAsync(),Co=useConst([function(){_o.current=!0},function(){_o.current=!1}]),$o=!!to;return reactExports.useEffect(function(){var Ro=function(Lo){$o&&!uo&&Mo(Lo)},Oo=function(Lo){!ho&&!(So&&So(Lo))&&(lo==null||lo(Lo))},No=function(Lo){go||Mo(Lo)},Mo=function(Lo){var Go=Lo.composedPath?Lo.composedPath():[],Do=Go.length>0?Go[0]:Lo.target,Uo=no.current&&!elementContains(no.current,Do);if(Uo&&_o.current){_o.current=!1;return}if(!io.current&&Uo||Lo.target!==so&&Uo&&(!io.current||"stopPropagation"in io.current||mo||Do!==io.current&&!elementContains(io.current,Do))){if(So&&So(Lo))return;lo==null||lo(Lo)}},Bo=function(Lo){yo&&(So&&!So(Lo)||!So&&!go)&&!(so!=null&&so.document.hasFocus())&&Lo.relatedTarget===null&&(lo==null||lo(Lo))},Po=new Promise(function(Lo){ko.setTimeout(function(){if(!ao&&so){var Go=[on$1(so,"scroll",Ro,!0),on$1(so,"resize",Oo,!0),on$1(so.document.documentElement,"focus",No,!0),on$1(so.document.documentElement,"click",No,!0),on$1(so,"blur",Bo,!0)];Lo(function(){Go.forEach(function(Do){return Do()})})}},0)});return function(){Po.then(function(Lo){return Lo()})}},[ao,ko,no,io,so,lo,yo,mo,go,ho,uo,$o,So]),Co}var CalloutContentBase=reactExports.memo(reactExports.forwardRef(function(eo,to){var no=getPropsWithDefaults(DEFAULT_PROPS$3,eo),io=no.styles,so=no.style,ao=no.ariaLabel,lo=no.ariaDescribedBy,uo=no.ariaLabelledBy,ho=no.className,go=no.isBeakVisible,mo=no.children,yo=no.beakWidth,So=no.calloutWidth,_o=no.calloutMaxWidth,ko=no.calloutMinWidth,Co=no.doNotLayer,$o=no.finalHeight,Ro=no.hideOverflow,Oo=Ro===void 0?!!$o:Ro,No=no.backgroundColor,Mo=no.calloutMaxHeight,Bo=no.onScroll,Po=no.shouldRestoreFocus,Lo=Po===void 0?!0:Po,Go=no.target,Do=no.hidden,Uo=no.onLayerMounted,Ho=no.popupProps,Yo=reactExports.useRef(null),qo=reactExports.useRef(null),Jo=useMergedRefs(qo,Ho==null?void 0:Ho.ref),ps=reactExports.useState(null),Qo=ps[0],hs=ps[1],gs=reactExports.useCallback(function(du){hs(du)},[]),ys=useMergedRefs(Yo,to),vs=useTarget(no.target,{current:Qo}),ks=vs[0],Os=vs[1],Ts=useBounds(no,ks,Os),Xs=usePositions(no,Yo,Qo,ks,Ts,Jo),Ws=useMaxHeight(no,Ts,ks,Xs),Ps=useDismissHandlers(no,Xs,Yo,ks,Os),qs=Ps[0],ga=Ps[1],Fs=(Xs==null?void 0:Xs.elementPosition.top)&&(Xs==null?void 0:Xs.elementPosition.bottom),Js=__assign$4(__assign$4({},Xs==null?void 0:Xs.elementPosition),{maxHeight:Ws});if(Fs&&(Js.bottom=void 0),useAutoFocus(no,Xs,Qo),reactExports.useEffect(function(){Do||Uo==null||Uo()},[Do]),!Os)return null;var Vs=Oo,El=go&&!!Go,yl=getClassNames$9(io,{theme:no.theme,className:ho,overflowYHidden:Vs,calloutWidth:So,positions:Xs,beakWidth:yo,backgroundColor:No,calloutMaxWidth:_o,calloutMinWidth:ko,doNotLayer:Co}),Gl=__assign$4(__assign$4({maxHeight:Mo||"100%"},so),Vs&&{overflowY:"hidden"}),Qs=no.hidden?{visibility:"hidden"}:void 0;return reactExports.createElement("div",{ref:ys,className:yl.container,style:Qs},reactExports.createElement("div",__assign$4({},getNativeProps(no,divProperties,ARIA_ROLE_ATTRIBUTES),{className:css$3(yl.root,Xs&&Xs.targetEdge&&ANIMATIONS[Xs.targetEdge]),style:Xs?__assign$4({},Js):OFF_SCREEN_STYLE,tabIndex:-1,ref:gs}),El&&reactExports.createElement("div",{className:yl.beak,style:getBeakPosition(Xs)}),El&&reactExports.createElement("div",{className:yl.beakCurtain}),reactExports.createElement(Popup,__assign$4({role:no.role,"aria-roledescription":no["aria-roledescription"],ariaDescribedBy:lo,ariaLabel:ao,ariaLabelledBy:uo,className:yl.calloutMain,onDismiss:no.onDismiss,onMouseDown:qs,onMouseUp:ga,onRestoreFocus:no.onRestoreFocus,onScroll:Bo,shouldRestoreFocus:Lo,style:Gl},Ho,{ref:Jo}),mo)))}),function(eo,to){return!to.shouldUpdateWhenHidden&&eo.hidden&&to.hidden?!0:shallowCompare(eo,to)});function getBeakPosition(eo){var to,no,io=__assign$4(__assign$4({},(to=eo==null?void 0:eo.beakPosition)===null||to===void 0?void 0:to.elementPosition),{display:!((no=eo==null?void 0:eo.beakPosition)===null||no===void 0)&&no.hideBeak?"none":void 0});return!io.top&&!io.bottom&&!io.left&&!io.right&&(io.left=BEAK_ORIGIN_POSITION.left,io.top=BEAK_ORIGIN_POSITION.top),io}function arePositionsEqual(eo,to){return comparePositions(eo.elementPosition,to.elementPosition)&&comparePositions(eo.beakPosition.elementPosition,to.beakPosition.elementPosition)}function comparePositions(eo,to){for(var no in to)if(to.hasOwnProperty(no)){var io=eo[no],so=to[no];if(io!==void 0&&so!==void 0){if(io.toFixed(2)!==so.toFixed(2))return!1}else return!1}return!0}CalloutContentBase.displayName=COMPONENT_NAME$2;function getBeakStyle(eo){return{height:eo,width:eo}}var GlobalClassNames$8={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},getStyles$p=function(eo){var to,no=eo.theme,io=eo.className,so=eo.overflowYHidden,ao=eo.calloutWidth,lo=eo.beakWidth,uo=eo.backgroundColor,ho=eo.calloutMaxWidth,go=eo.calloutMinWidth,mo=eo.doNotLayer,yo=getGlobalClassNames(GlobalClassNames$8,no),So=no.semanticColors,_o=no.effects;return{container:[yo.container,{position:"relative"}],root:[yo.root,no.fonts.medium,{position:"absolute",display:"flex",zIndex:mo?ZIndexes.Layer:void 0,boxSizing:"border-box",borderRadius:_o.roundedCorner2,boxShadow:_o.elevation16,selectors:(to={},to[HighContrastSelector]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},to)},focusClear(),io,!!ao&&{width:ao},!!ho&&{maxWidth:ho},!!go&&{minWidth:go}],beak:[yo.beak,{position:"absolute",backgroundColor:So.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},getBeakStyle(lo),uo&&{backgroundColor:uo}],beakCurtain:[yo.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:So.menuBackground,borderRadius:_o.roundedCorner2}],calloutMain:[yo.calloutMain,{backgroundColor:So.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:_o.roundedCorner2},so&&{overflowY:"hidden"},uo&&{backgroundColor:uo}]}},CalloutContent=styled(CalloutContentBase,getStyles$p,void 0,{scope:"CalloutContent"});const PortalCompatContext=reactExports.createContext(void 0),portalCompatContextDefaultValue=()=>()=>{};PortalCompatContext.Provider;function usePortalCompat(){var eo;return(eo=reactExports.useContext(PortalCompatContext))!==null&&eo!==void 0?eo:portalCompatContextDefaultValue}var getClassNames$8=classNamesFunction(),getFabricTheme=memoizeFunction(function(eo,to){return createTheme$1(__assign$4(__assign$4({},eo),{rtl:to}))}),getDir$1=function(eo){var to=eo.theme,no=eo.dir,io=getRTL$1(to)?"rtl":"ltr",so=getRTL$1()?"rtl":"ltr",ao=no||io;return{rootDir:ao!==io||ao!==so?ao:no,needsTheme:ao!==io}},FabricBase=reactExports.forwardRef(function(eo,to){var no=eo.className,io=eo.theme,so=eo.applyTheme,ao=eo.applyThemeToBody,lo=eo.styles,uo=getClassNames$8(lo,{theme:io,applyTheme:so,className:no}),ho=reactExports.useRef(null);return useApplyThemeToBody(ao,uo,ho),reactExports.createElement(reactExports.Fragment,null,useRenderedContent(eo,uo,ho,to))});FabricBase.displayName="FabricBase";function useRenderedContent(eo,to,no,io){var so=to.root,ao=eo.as,lo=ao===void 0?"div":ao,uo=eo.dir,ho=eo.theme,go=getNativeProps(eo,divProperties,["dir"]),mo=getDir$1(eo),yo=mo.rootDir,So=mo.needsTheme,_o=reactExports.createElement(FocusRectsProvider,{providerRef:no},reactExports.createElement(lo,__assign$4({dir:yo},go,{className:so,ref:useMergedRefs(no,io)})));return So&&(_o=reactExports.createElement(Customizer,{settings:{theme:getFabricTheme(ho,uo==="rtl")}},_o)),_o}function useApplyThemeToBody(eo,to,no){var io=to.bodyThemed;return reactExports.useEffect(function(){if(eo){var so=getDocument(no.current);if(so)return so.body.classList.add(io),function(){so.body.classList.remove(io)}}},[io,eo,no]),no}var inheritFont={fontFamily:"inherit"},GlobalClassNames$7={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},getStyles$o=function(eo){var to=eo.applyTheme,no=eo.className,io=eo.preventBlanketFontInheritance,so=eo.theme,ao=getGlobalClassNames(GlobalClassNames$7,so);return{root:[ao.root,so.fonts.medium,{color:so.palette.neutralPrimary},!io&&{"& button":inheritFont,"& input":inheritFont,"& textarea":inheritFont},to&&{color:so.semanticColors.bodyText,backgroundColor:so.semanticColors.bodyBackground},no],bodyThemed:[{backgroundColor:so.semanticColors.bodyBackground}]}},Fabric=styled(FabricBase,getStyles$o,void 0,{scope:"Fabric"}),_layersByHostId={},_layerHostsById={},defaultHostId="fluent-default-layer-host",_defaultHostSelector="#".concat(defaultHostId);function registerLayer(eo,to){_layersByHostId[eo]||(_layersByHostId[eo]=[]),_layersByHostId[eo].push(to);var no=_layerHostsById[eo];if(no)for(var io=0,so=no;io=0&&(no.splice(io,1),no.length===0&&delete _layersByHostId[eo])}var so=_layerHostsById[eo];if(so)for(var ao=0,lo=so;ao0&&to.current.naturalHeight>0||to.current.complete&&SVG_REGEX.test(ao):!1;yo&&ho(ImageLoadState.loaded)}}),reactExports.useEffect(function(){no==null||no(uo)},[uo]);var go=reactExports.useCallback(function(yo){io==null||io(yo),ao&&ho(ImageLoadState.loaded)},[ao,io]),mo=reactExports.useCallback(function(yo){so==null||so(yo),ho(ImageLoadState.error)},[so]);return[uo,go,mo]}var ImageBase=reactExports.forwardRef(function(eo,to){var no=reactExports.useRef(),io=reactExports.useRef(),so=useLoadState(eo,io),ao=so[0],lo=so[1],uo=so[2],ho=getNativeProps(eo,imgProperties,["width","height"]),go=eo.src,mo=eo.alt,yo=eo.width,So=eo.height,_o=eo.shouldFadeIn,ko=_o===void 0?!0:_o,Co=eo.shouldStartVisible,$o=eo.className,Ro=eo.imageFit,Oo=eo.role,No=eo.maximizeFrame,Mo=eo.styles,Bo=eo.theme,Po=eo.loading,Lo=useCoverStyle(eo,ao,io,no),Go=getClassNames$6(Mo,{theme:Bo,className:$o,width:yo,height:So,maximizeFrame:No,shouldFadeIn:ko,shouldStartVisible:Co,isLoaded:ao===ImageLoadState.loaded||ao===ImageLoadState.notLoaded&&eo.shouldStartVisible,isLandscape:Lo===ImageCoverStyle.landscape,isCenter:Ro===ImageFit.center,isCenterContain:Ro===ImageFit.centerContain,isCenterCover:Ro===ImageFit.centerCover,isContain:Ro===ImageFit.contain,isCover:Ro===ImageFit.cover,isNone:Ro===ImageFit.none,isError:ao===ImageLoadState.error,isNotImageFit:Ro===void 0});return reactExports.createElement("div",{className:Go.root,style:{width:yo,height:So},ref:no},reactExports.createElement("img",__assign$4({},ho,{onLoad:lo,onError:uo,key:KEY_PREFIX+eo.src||"",className:Go.image,ref:useMergedRefs(io,to),src:go,alt:mo,role:Oo,loading:Po})))});ImageBase.displayName="ImageBase";function useCoverStyle(eo,to,no,io){var so=reactExports.useRef(to),ao=reactExports.useRef();return(ao===void 0||so.current===ImageLoadState.notLoaded&&to===ImageLoadState.loaded)&&(ao.current=computeCoverStyle(eo,to,no,io)),so.current=to,ao.current}function computeCoverStyle(eo,to,no,io){var so=eo.imageFit,ao=eo.width,lo=eo.height;if(eo.coverStyle!==void 0)return eo.coverStyle;if(to===ImageLoadState.loaded&&(so===ImageFit.cover||so===ImageFit.contain||so===ImageFit.centerContain||so===ImageFit.centerCover)&&no.current&&io.current){var uo=void 0;typeof ao=="number"&&typeof lo=="number"&&so!==ImageFit.centerContain&&so!==ImageFit.centerCover?uo=ao/lo:uo=io.current.clientWidth/io.current.clientHeight;var ho=no.current.naturalWidth/no.current.naturalHeight;if(ho>uo)return ImageCoverStyle.landscape}return ImageCoverStyle.portrait}var GlobalClassNames$5={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},getStyles$m=function(eo){var to=eo.className,no=eo.width,io=eo.height,so=eo.maximizeFrame,ao=eo.isLoaded,lo=eo.shouldFadeIn,uo=eo.shouldStartVisible,ho=eo.isLandscape,go=eo.isCenter,mo=eo.isContain,yo=eo.isCover,So=eo.isCenterContain,_o=eo.isCenterCover,ko=eo.isNone,Co=eo.isError,$o=eo.isNotImageFit,Ro=eo.theme,Oo=getGlobalClassNames(GlobalClassNames$5,Ro),No={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},Mo=getWindow(),Bo=Mo!==void 0&&Mo.navigator.msMaxTouchPoints===void 0,Po=mo&&ho||yo&&!ho?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[Oo.root,Ro.fonts.medium,{overflow:"hidden"},so&&[Oo.rootMaximizeFrame,{height:"100%",width:"100%"}],ao&&lo&&!uo&&AnimationClassNames.fadeIn400,(go||mo||yo||So||_o)&&{position:"relative"},to],image:[Oo.image,{display:"block",opacity:0},ao&&["is-loaded",{opacity:1}],go&&[Oo.imageCenter,No],mo&&[Oo.imageContain,Bo&&{width:"100%",height:"100%",objectFit:"contain"},!Bo&&Po,!Bo&&No],yo&&[Oo.imageCover,Bo&&{width:"100%",height:"100%",objectFit:"cover"},!Bo&&Po,!Bo&&No],So&&[Oo.imageCenterContain,ho&&{maxWidth:"100%"},!ho&&{maxHeight:"100%"},No],_o&&[Oo.imageCenterCover,ho&&{maxHeight:"100%"},!ho&&{maxWidth:"100%"},No],ko&&[Oo.imageNone,{width:"auto",height:"auto"}],$o&&[!!no&&!io&&{height:"auto",width:"100%"},!no&&!!io&&{height:"100%",width:"auto"},!!no&&!!io&&{height:"100%",width:"100%"}],ho&&Oo.imageLandscape,!ho&&Oo.imagePortrait,!ao&&"is-notLoaded",lo&&"is-fadeIn",Co&&"is-error"]}},Image$1=styled(ImageBase,getStyles$m,void 0,{scope:"Image"},!0);Image$1.displayName="Image";var classNames=mergeStyleSets({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),MS_ICON="ms-Icon",getStyles$l=function(eo){var to=eo.className,no=eo.iconClassName,io=eo.isPlaceholder,so=eo.isImage,ao=eo.styles;return{root:[io&&classNames.placeholder,classNames.root,so&&classNames.image,no,to,ao&&ao.root,ao&&ao.imageContainer]}},getIconContent=memoizeFunction(function(eo){var to=getIcon(eo)||{subset:{},code:void 0},no=to.code,io=to.subset;return no?{children:no,iconClassName:io.className,fontFamily:io.fontFace&&io.fontFace.fontFamily,mergeImageProps:io.mergeImageProps}:null},void 0,!0),FontIcon=function(eo){var to=eo.iconName,no=eo.className,io=eo.style,so=io===void 0?{}:io,ao=getIconContent(to)||{},lo=ao.iconClassName,uo=ao.children,ho=ao.fontFamily,go=ao.mergeImageProps,mo=getNativeProps(eo,htmlElementProperties),yo=eo["aria-label"]||eo.title,So=eo["aria-label"]||eo["aria-labelledby"]||eo.title?{role:go?void 0:"img"}:{"aria-hidden":!0},_o=uo;return go&&typeof uo=="object"&&typeof uo.props=="object"&&yo&&(_o=reactExports.cloneElement(uo,{alt:yo})),reactExports.createElement("i",__assign$4({"data-icon-name":to},So,mo,go?{title:void 0,"aria-label":void 0}:{},{className:css$3(MS_ICON,classNames.root,lo,!to&&classNames.placeholder,no),style:__assign$4({fontFamily:ho},so)}),_o)};memoizeFunction(function(eo,to,no){return FontIcon({iconName:eo,className:to,"aria-label":no})});var getClassNames$5=classNamesFunction({cacheSize:100}),IconBase=function(eo){__extends$3(to,eo);function to(no){var io=eo.call(this,no)||this;return io._onImageLoadingStateChange=function(so){io.props.imageProps&&io.props.imageProps.onLoadingStateChange&&io.props.imageProps.onLoadingStateChange(so),so===ImageLoadState.error&&io.setState({imageLoadError:!0})},io.state={imageLoadError:!1},io}return to.prototype.render=function(){var no=this.props,io=no.children,so=no.className,ao=no.styles,lo=no.iconName,uo=no.imageErrorAs,ho=no.theme,go=typeof lo=="string"&&lo.length===0,mo=!!this.props.imageProps||this.props.iconType===IconType.image||this.props.iconType===IconType.Image,yo=getIconContent(lo)||{},So=yo.iconClassName,_o=yo.children,ko=yo.mergeImageProps,Co=getClassNames$5(ao,{theme:ho,className:so,iconClassName:So,isImage:mo,isPlaceholder:go}),$o=mo?"span":"i",Ro=getNativeProps(this.props,htmlElementProperties,["aria-label"]),Oo=this.state.imageLoadError,No=__assign$4(__assign$4({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),Mo=Oo&&uo||Image$1,Bo=this.props["aria-label"]||this.props.ariaLabel,Po=No.alt||Bo||this.props.title,Lo=!!(Po||this.props["aria-labelledby"]||No["aria-label"]||No["aria-labelledby"]),Go=Lo?{role:mo||ko?void 0:"img","aria-label":mo||ko?void 0:Po}:{"aria-hidden":!0},Do=_o;return ko&&_o&&typeof _o=="object"&&Po&&(Do=reactExports.cloneElement(_o,{alt:Po})),reactExports.createElement($o,__assign$4({"data-icon-name":lo},Go,Ro,ko?{title:void 0,"aria-label":void 0}:{},{className:Co.root}),mo?reactExports.createElement(Mo,__assign$4({},No)):io||Do)},to}(reactExports.Component),Icon=styled(IconBase,getStyles$l,void 0,{scope:"Icon"},!0);Icon.displayName="Icon";var FocusZoneTabbableElements={none:0,all:1,inputOnly:2},FocusZoneDirection;(function(eo){eo[eo.vertical=0]="vertical",eo[eo.horizontal=1]="horizontal",eo[eo.bidirectional=2]="bidirectional",eo[eo.domOrder=3]="domOrder"})(FocusZoneDirection||(FocusZoneDirection={}));var IS_FOCUSABLE_ATTRIBUTE="data-is-focusable",IS_ENTER_DISABLED_ATTRIBUTE="data-disable-click-on-enter",FOCUSZONE_ID_ATTRIBUTE="data-focuszone-id",TABINDEX="tabindex",NO_VERTICAL_WRAP="data-no-vertical-wrap",NO_HORIZONTAL_WRAP="data-no-horizontal-wrap",LARGE_DISTANCE_FROM_CENTER=999999999,LARGE_NEGATIVE_DISTANCE_FROM_CENTER=-999999999,focusZoneStyles,focusZoneClass="ms-FocusZone";function raiseClickFromKeyboardEvent(eo,to){var no;typeof MouseEvent=="function"?no=new MouseEvent("click",{ctrlKey:to==null?void 0:to.ctrlKey,metaKey:to==null?void 0:to.metaKey,shiftKey:to==null?void 0:to.shiftKey,altKey:to==null?void 0:to.altKey,bubbles:to==null?void 0:to.bubbles,cancelable:to==null?void 0:to.cancelable}):(no=document.createEvent("MouseEvents"),no.initMouseEvent("click",to?to.bubbles:!1,to?to.cancelable:!1,window,0,0,0,0,0,to?to.ctrlKey:!1,to?to.altKey:!1,to?to.shiftKey:!1,to?to.metaKey:!1,0,null)),eo.dispatchEvent(no)}function getRootClass(){return focusZoneStyles||(focusZoneStyles=mergeStyles$1({selectors:{":focus":{outline:"none"}}},focusZoneClass)),focusZoneStyles}var _allInstances={},_outerZones=new Set,ALLOWED_INPUT_TYPES=["text","number","password","email","tel","url","search","textarea"],ALLOW_VIRTUAL_ELEMENTS=!1,FocusZone=function(eo){__extends$3(to,eo);function to(no){var io=this,so,ao,lo,uo;io=eo.call(this,no)||this,io._root=reactExports.createRef(),io._mergedRef=createMergedRef(),io._onFocus=function(go){if(!io._portalContainsElement(go.target)){var mo=io.props,yo=mo.onActiveElementChanged,So=mo.doNotAllowFocusEventToPropagate,_o=mo.stopFocusPropagation,ko=mo.onFocusNotification,Co=mo.onFocus,$o=mo.shouldFocusInnerElementWhenReceivedFocus,Ro=mo.defaultTabbableElement,Oo=io._isImmediateDescendantOfZone(go.target),No;if(Oo)No=go.target;else for(var Mo=go.target;Mo&&Mo!==io._root.current;){if(isElementTabbable(Mo)&&io._isImmediateDescendantOfZone(Mo)){No=Mo;break}Mo=getParent$1(Mo,ALLOW_VIRTUAL_ELEMENTS)}if($o&&go.target===io._root.current){var Bo=Ro&&typeof Ro=="function"&&io._root.current&&Ro(io._root.current);Bo&&isElementTabbable(Bo)?(No=Bo,Bo.focus()):(io.focus(!0),io._activeElement&&(No=null))}var Po=!io._activeElement;No&&No!==io._activeElement&&((Oo||Po)&&io._setFocusAlignment(No,!0,!0),io._activeElement=No,Po&&io._updateTabIndexes()),yo&&yo(io._activeElement,go),(_o||So)&&go.stopPropagation(),Co?Co(go):ko&&ko()}},io._onBlur=function(){io._setParkedFocus(!1)},io._onMouseDown=function(go){if(!io._portalContainsElement(go.target)){var mo=io.props.disabled;if(!mo){for(var yo=go.target,So=[];yo&&yo!==io._root.current;)So.push(yo),yo=getParent$1(yo,ALLOW_VIRTUAL_ELEMENTS);for(;So.length&&(yo=So.pop(),yo&&isElementTabbable(yo)&&io._setActiveElement(yo,!0),!isElementFocusZone(yo)););}}},io._onKeyDown=function(go,mo){if(!io._portalContainsElement(go.target)){var yo=io.props,So=yo.direction,_o=yo.disabled,ko=yo.isInnerZoneKeystroke,Co=yo.pagingSupportDisabled,$o=yo.shouldEnterInnerZone;if(!_o&&(io.props.onKeyDown&&io.props.onKeyDown(go),!go.isDefaultPrevented()&&!(io._getDocument().activeElement===io._root.current&&io._isInnerZone))){if(($o&&$o(go)||ko&&ko(go))&&io._isImmediateDescendantOfZone(go.target)){var Ro=io._getFirstInnerZone();if(Ro){if(!Ro.focus(!0))return}else if(isElementFocusSubZone(go.target)){if(!io.focusElement(getNextElement(go.target,go.target.firstChild,!0)))return}else return}else{if(go.altKey)return;switch(go.which){case KeyCodes$1.space:if(io._shouldRaiseClicksOnSpace&&io._tryInvokeClickForFocusable(go.target,go))break;return;case KeyCodes$1.left:if(So!==FocusZoneDirection.vertical&&(io._preventDefaultWhenHandled(go),io._moveFocusLeft(mo)))break;return;case KeyCodes$1.right:if(So!==FocusZoneDirection.vertical&&(io._preventDefaultWhenHandled(go),io._moveFocusRight(mo)))break;return;case KeyCodes$1.up:if(So!==FocusZoneDirection.horizontal&&(io._preventDefaultWhenHandled(go),io._moveFocusUp()))break;return;case KeyCodes$1.down:if(So!==FocusZoneDirection.horizontal&&(io._preventDefaultWhenHandled(go),io._moveFocusDown()))break;return;case KeyCodes$1.pageDown:if(!Co&&io._moveFocusPaging(!0))break;return;case KeyCodes$1.pageUp:if(!Co&&io._moveFocusPaging(!1))break;return;case KeyCodes$1.tab:if(io.props.allowTabKey||io.props.handleTabKey===FocusZoneTabbableElements.all||io.props.handleTabKey===FocusZoneTabbableElements.inputOnly&&io._isElementInput(go.target)){var Oo=!1;if(io._processingTabKey=!0,So===FocusZoneDirection.vertical||!io._shouldWrapFocus(io._activeElement,NO_HORIZONTAL_WRAP))Oo=go.shiftKey?io._moveFocusUp():io._moveFocusDown();else{var No=getRTL$1(mo)?!go.shiftKey:go.shiftKey;Oo=No?io._moveFocusLeft(mo):io._moveFocusRight(mo)}if(io._processingTabKey=!1,Oo)break;io.props.shouldResetActiveElementWhenTabFromZone&&(io._activeElement=null)}return;case KeyCodes$1.home:if(io._isContentEditableElement(go.target)||io._isElementInput(go.target)&&!io._shouldInputLoseFocus(go.target,!1))return!1;var Mo=io._root.current&&io._root.current.firstChild;if(io._root.current&&Mo&&io.focusElement(getNextElement(io._root.current,Mo,!0)))break;return;case KeyCodes$1.end:if(io._isContentEditableElement(go.target)||io._isElementInput(go.target)&&!io._shouldInputLoseFocus(go.target,!0))return!1;var Bo=io._root.current&&io._root.current.lastChild;if(io._root.current&&io.focusElement(getPreviousElement(io._root.current,Bo,!0,!0,!0)))break;return;case KeyCodes$1.enter:if(io._shouldRaiseClicksOnEnter&&io._tryInvokeClickForFocusable(go.target,go))break;return;default:return}}go.preventDefault(),go.stopPropagation()}}},io._getHorizontalDistanceFromCenter=function(go,mo,yo){var So=io._focusAlignment.left||io._focusAlignment.x||0,_o=Math.floor(yo.top),ko=Math.floor(mo.bottom),Co=Math.floor(yo.bottom),$o=Math.floor(mo.top),Ro=go&&_o>ko,Oo=!go&&Co<$o;return Ro||Oo?So>=yo.left&&So<=yo.left+yo.width?0:Math.abs(yo.left+yo.width/2-So):io._shouldWrapFocus(io._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER},initializeComponentRef(io),io._id=getId$1("FocusZone"),io._focusAlignment={left:0,top:0},io._processingTabKey=!1;var ho=(ao=(so=no.shouldRaiseClicks)!==null&&so!==void 0?so:to.defaultProps.shouldRaiseClicks)!==null&&ao!==void 0?ao:!0;return io._shouldRaiseClicksOnEnter=(lo=no.shouldRaiseClicksOnEnter)!==null&&lo!==void 0?lo:ho,io._shouldRaiseClicksOnSpace=(uo=no.shouldRaiseClicksOnSpace)!==null&&uo!==void 0?uo:ho,io}return to.getOuterZones=function(){return _outerZones.size},to._onKeyDownCapture=function(no){no.which===KeyCodes$1.tab&&_outerZones.forEach(function(io){return io._updateTabIndexes()})},to.prototype.componentDidMount=function(){var no=this._root.current;if(_allInstances[this._id]=this,no){for(var io=getParent$1(no,ALLOW_VIRTUAL_ELEMENTS);io&&io!==this._getDocument().body&&io.nodeType===1;){if(isElementFocusZone(io)){this._isInnerZone=!0;break}io=getParent$1(io,ALLOW_VIRTUAL_ELEMENTS)}this._isInnerZone||(_outerZones.add(this),this._root.current&&this._root.current.addEventListener("keydown",to._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},to.prototype.componentDidUpdate=function(){var no=this._root.current,io=this._getDocument();if((this._activeElement&&!elementContains(this._root.current,this._activeElement,ALLOW_VIRTUAL_ELEMENTS)||this._defaultFocusElement&&!elementContains(this._root.current,this._defaultFocusElement,ALLOW_VIRTUAL_ELEMENTS))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&io&&this._lastIndexPath&&(io.activeElement===io.body||io.activeElement===null||io.activeElement===no)){var so=getFocusableByIndexPath(no,this._lastIndexPath);so?(this._setActiveElement(so,!0),so.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},to.prototype.componentWillUnmount=function(){delete _allInstances[this._id],this._isInnerZone||(_outerZones.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",to._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},to.prototype.render=function(){var no=this,io=this.props,so=io.as,ao=io.elementType,lo=io.rootProps,uo=io.ariaDescribedBy,ho=io.ariaLabelledBy,go=io.className,mo=getNativeProps(this.props,htmlElementProperties),yo=so||ao||"div";this._evaluateFocusBeforeRender();var So=getTheme();return reactExports.createElement(yo,__assign$4({"aria-labelledby":ho,"aria-describedby":uo},mo,lo,{className:css$3(getRootClass(),go),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(_o){return no._onKeyDown(_o,So)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},to.prototype.focus=function(no,io){if(no===void 0&&(no=!1),io===void 0&&(io=!1),this._root.current)if(!no&&this._root.current.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&this._isInnerZone){var so=this._getOwnerZone(this._root.current);if(so!==this._root.current){var ao=_allInstances[so.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];return!!ao&&ao.focusElement(this._root.current)}return!1}else{if(!no&&this._activeElement&&elementContains(this._root.current,this._activeElement)&&isElementTabbable(this._activeElement)&&(!io||isElementVisibleAndNotHidden(this._activeElement)))return this._activeElement.focus(),!0;var lo=this._root.current.firstChild;return this.focusElement(getNextElement(this._root.current,lo,!0,void 0,void 0,void 0,void 0,void 0,io))}return!1},to.prototype.focusLast=function(){if(this._root.current){var no=this._root.current&&this._root.current.lastChild;return this.focusElement(getPreviousElement(this._root.current,no,!0,!0,!0))}return!1},to.prototype.focusElement=function(no,io){var so=this.props,ao=so.onBeforeFocus,lo=so.shouldReceiveFocus;return lo&&!lo(no)||ao&&!ao(no)?!1:no?(this._setActiveElement(no,io),this._activeElement&&this._activeElement.focus(),!0):!1},to.prototype.setFocusAlignment=function(no){this._focusAlignment=no},Object.defineProperty(to.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),to.prototype._evaluateFocusBeforeRender=function(){var no=this._root.current,io=this._getDocument();if(io){var so=io.activeElement;if(so!==no){var ao=elementContains(no,so,!1);this._lastIndexPath=ao?getElementIndexPath(no,so):void 0}}},to.prototype._setParkedFocus=function(no){var io=this._root.current;io&&this._isParked!==no&&(this._isParked=no,no?(this.props.allowFocusRoot||(this._parkedTabIndex=io.getAttribute("tabindex"),io.setAttribute("tabindex","-1")),io.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(io.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):io.removeAttribute("tabindex")))},to.prototype._setActiveElement=function(no,io){var so=this._activeElement;this._activeElement=no,so&&(isElementFocusZone(so)&&this._updateTabIndexes(so),so.tabIndex=-1),this._activeElement&&((!this._focusAlignment||io)&&this._setFocusAlignment(no,!0,!0),this._activeElement.tabIndex=0)},to.prototype._preventDefaultWhenHandled=function(no){this.props.preventDefaultWhenHandled&&no.preventDefault()},to.prototype._tryInvokeClickForFocusable=function(no,io){var so=no;if(so===this._root.current)return!1;do{if(so.tagName==="BUTTON"||so.tagName==="A"||so.tagName==="INPUT"||so.tagName==="TEXTAREA"||so.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(so)&&so.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&so.getAttribute(IS_ENTER_DISABLED_ATTRIBUTE)!=="true")return raiseClickFromKeyboardEvent(so,io),!0;so=getParent$1(so,ALLOW_VIRTUAL_ELEMENTS)}while(so!==this._root.current);return!1},to.prototype._getFirstInnerZone=function(no){if(no=no||this._activeElement||this._root.current,!no)return null;if(isElementFocusZone(no))return _allInstances[no.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];for(var io=no.firstElementChild;io;){if(isElementFocusZone(io))return _allInstances[io.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];var so=this._getFirstInnerZone(io);if(so)return so;io=io.nextElementSibling}return null},to.prototype._moveFocus=function(no,io,so,ao){ao===void 0&&(ao=!0);var lo=this._activeElement,uo=-1,ho=void 0,go=!1,mo=this.props.direction===FocusZoneDirection.bidirectional;if(!lo||!this._root.current||this._isElementInput(lo)&&!this._shouldInputLoseFocus(lo,no))return!1;var yo=mo?lo.getBoundingClientRect():null;do if(lo=no?getNextElement(this._root.current,lo):getPreviousElement(this._root.current,lo),mo){if(lo){var So=lo.getBoundingClientRect(),_o=io(yo,So);if(_o===-1&&uo===-1){ho=lo;break}if(_o>-1&&(uo===-1||_o=0&&_o<0)break}}else{ho=lo;break}while(lo);if(ho&&ho!==this._activeElement)go=!0,this.focusElement(ho);else if(this.props.isCircularNavigation&&ao)return no?this.focusElement(getNextElement(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(getPreviousElement(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return go},to.prototype._moveFocusDown=function(){var no=this,io=-1,so=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(ao,lo){var uo=-1,ho=Math.floor(lo.top),go=Math.floor(ao.bottom);return ho=go||ho===io)&&(io=ho,so>=lo.left&&so<=lo.left+lo.width?uo=0:uo=Math.abs(lo.left+lo.width/2-so)),uo)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},to.prototype._moveFocusUp=function(){var no=this,io=-1,so=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(ao,lo){var uo=-1,ho=Math.floor(lo.bottom),go=Math.floor(lo.top),mo=Math.floor(ao.top);return ho>mo?no._shouldWrapFocus(no._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER:((io===-1&&ho<=mo||go===io)&&(io=go,so>=lo.left&&so<=lo.left+lo.width?uo=0:uo=Math.abs(lo.left+lo.width/2-so)),uo)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},to.prototype._moveFocusLeft=function(no){var io=this,so=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(getRTL$1(no),function(ao,lo){var uo=-1,ho;return getRTL$1(no)?ho=parseFloat(lo.top.toFixed(3))parseFloat(ao.top.toFixed(3)),ho&&lo.right<=ao.right&&io.props.direction!==FocusZoneDirection.vertical?uo=ao.right-lo.right:so||(uo=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),uo},void 0,so)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},to.prototype._moveFocusRight=function(no){var io=this,so=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(!getRTL$1(no),function(ao,lo){var uo=-1,ho;return getRTL$1(no)?ho=parseFloat(lo.bottom.toFixed(3))>parseFloat(ao.top.toFixed(3)):ho=parseFloat(lo.top.toFixed(3))=ao.left&&io.props.direction!==FocusZoneDirection.vertical?uo=lo.left-ao.left:so||(uo=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),uo},void 0,so)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},to.prototype._moveFocusPaging=function(no,io){io===void 0&&(io=!0);var so=this._activeElement;if(!so||!this._root.current||this._isElementInput(so)&&!this._shouldInputLoseFocus(so,no))return!1;var ao=findScrollableParent(so);if(!ao)return!1;var lo=-1,uo=void 0,ho=-1,go=-1,mo=ao.clientHeight,yo=so.getBoundingClientRect();do if(so=no?getNextElement(this._root.current,so):getPreviousElement(this._root.current,so),so){var So=so.getBoundingClientRect(),_o=Math.floor(So.top),ko=Math.floor(yo.bottom),Co=Math.floor(So.bottom),$o=Math.floor(yo.top),Ro=this._getHorizontalDistanceFromCenter(no,yo,So),Oo=no&&_o>ko+mo,No=!no&&Co<$o-mo;if(Oo||No)break;Ro>-1&&(no&&_o>ho?(ho=_o,lo=Ro,uo=so):!no&&Co-1){var so=no.selectionStart,ao=no.selectionEnd,lo=so!==ao,uo=no.value,ho=no.readOnly;if(lo||so>0&&!io&&!ho||so!==uo.length&&io&&!ho||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(no)))return!1}return!0},to.prototype._shouldWrapFocus=function(no,io){return this.props.checkForNoWrap?shouldWrapFocus(no,io):!0},to.prototype._portalContainsElement=function(no){return no&&!!this._root.current&&portalContainsElement(no,this._root.current)},to.prototype._getDocument=function(){return getDocument(this._root.current)},to.defaultProps={isCircularNavigation:!1,direction:FocusZoneDirection.bidirectional,shouldRaiseClicks:!0},to}(reactExports.Component),ContextualMenuItemType;(function(eo){eo[eo.Normal=0]="Normal",eo[eo.Divider=1]="Divider",eo[eo.Header=2]="Header",eo[eo.Section=3]="Section"})(ContextualMenuItemType||(ContextualMenuItemType={}));function getIsChecked(eo){return eo.canCheck?!!(eo.isChecked||eo.checked):typeof eo.isChecked=="boolean"?eo.isChecked:typeof eo.checked=="boolean"?eo.checked:null}function hasSubmenu(eo){return!!(eo.subMenuProps||eo.items)}function isItemDisabled(eo){return!!(eo.isDisabled||eo.disabled)}function getMenuItemAriaRole(eo){var to=getIsChecked(eo),no=to!==null;return no?"menuitemcheckbox":"menuitem"}var defaultIconRenderer=function(eo){var to=eo.item,no=eo.classNames,io=to.iconProps;return reactExports.createElement(Icon,__assign$4({},io,{className:no.icon}))},renderItemIcon=function(eo){var to=eo.item,no=eo.hasIcons;return no?to.onRenderIcon?to.onRenderIcon(eo,defaultIconRenderer):defaultIconRenderer(eo):null},renderCheckMarkIcon=function(eo){var to=eo.onCheckmarkClick,no=eo.item,io=eo.classNames,so=getIsChecked(no);if(to){var ao=function(lo){return to(no,lo)};return reactExports.createElement(Icon,{iconName:no.canCheck!==!1&&so?"CheckMark":"",className:io.checkmarkIcon,onClick:ao})}return null},renderItemName=function(eo){var to=eo.item,no=eo.classNames;return to.text||to.name?reactExports.createElement("span",{className:no.label},to.text||to.name):null},renderSecondaryText=function(eo){var to=eo.item,no=eo.classNames;return to.secondaryText?reactExports.createElement("span",{className:no.secondaryText},to.secondaryText):null},renderSubMenuIcon=function(eo){var to=eo.item,no=eo.classNames,io=eo.theme;return hasSubmenu(to)?reactExports.createElement(Icon,__assign$4({iconName:getRTL$1(io)?"ChevronLeft":"ChevronRight"},to.submenuIconProps,{className:no.subMenuIcon})):null},ContextualMenuItemBase=function(eo){__extends$3(to,eo);function to(no){var io=eo.call(this,no)||this;return io.openSubMenu=function(){var so=io.props,ao=so.item,lo=so.openSubMenu,uo=so.getSubmenuTarget;if(uo){var ho=uo();hasSubmenu(ao)&&lo&&ho&&lo(ao,ho)}},io.dismissSubMenu=function(){var so=io.props,ao=so.item,lo=so.dismissSubMenu;hasSubmenu(ao)&&lo&&lo()},io.dismissMenu=function(so){var ao=io.props.dismissMenu;ao&&ao(void 0,so)},initializeComponentRef(io),io}return to.prototype.render=function(){var no=this.props,io=no.item,so=no.classNames,ao=io.onRenderContent||this._renderLayout;return reactExports.createElement("div",{className:io.split?so.linkContentMenu:so.linkContent},ao(this.props,{renderCheckMarkIcon,renderItemIcon,renderItemName,renderSecondaryText,renderSubMenuIcon}))},to.prototype._renderLayout=function(no,io){return reactExports.createElement(reactExports.Fragment,null,io.renderCheckMarkIcon(no),io.renderItemIcon(no),io.renderItemName(no),io.renderSecondaryText(no),io.renderSubMenuIcon(no))},to}(reactExports.Component),getDividerClassNames=memoizeFunction(function(eo){return mergeStyleSets({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:eo.palette.neutralTertiaryAlt}})}),CONTEXTUAL_MENU_ITEM_HEIGHT=36,MediumScreenSelector$1=getScreenSelector(0,ScreenWidthMaxMedium),getMenuItemStyles=memoizeFunction(function(eo){var to,no,io,so,ao,lo=eo.semanticColors,uo=eo.fonts,ho=eo.palette,go=lo.menuItemBackgroundHovered,mo=lo.menuItemTextHovered,yo=lo.menuItemBackgroundPressed,So=lo.bodyDivider,_o={item:[uo.medium,{color:lo.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:So,position:"relative"},root:[getFocusStyle(eo),uo.medium,{color:lo.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:lo.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(to={},to[HighContrastSelector]={color:"GrayText",opacity:1},to)},rootHovered:{backgroundColor:go,color:mo,selectors:{".ms-ContextualMenu-icon":{color:ho.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:ho.neutralPrimary}}},rootFocused:{backgroundColor:ho.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:ho.neutralPrimary}}},rootPressed:{backgroundColor:yo,selectors:{".ms-ContextualMenu-icon":{color:ho.themeDark},".ms-ContextualMenu-submenuIcon":{color:ho.neutralPrimary}}},rootExpanded:{backgroundColor:yo,color:lo.bodyTextChecked,selectors:(no={".ms-ContextualMenu-submenuIcon":(io={},io[HighContrastSelector]={color:"inherit"},io)},no[HighContrastSelector]=__assign$4({},getHighContrastNoAdjustStyle()),no)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:eo.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,fontSize:IconFontSizes.medium,width:IconFontSizes.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(so={},so[MediumScreenSelector$1]={fontSize:IconFontSizes.large,width:IconFontSizes.large},so)},iconColor:{color:lo.menuIcon},iconDisabled:{color:lo.disabledBodyText},checkmarkIcon:{color:lo.bodySubtext},subMenuIcon:{height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,color:ho.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:IconFontSizes.small,selectors:(ao={":hover":{color:ho.neutralPrimary},":active":{color:ho.neutralPrimary}},ao[MediumScreenSelector$1]={fontSize:IconFontSizes.medium},ao)},splitButtonFlexContainer:[getFocusStyle(eo),{display:"flex",height:CONTEXTUAL_MENU_ITEM_HEIGHT,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return concatStyleSets(_o)}),CONTEXTUAL_SPLIT_MENU_MINWIDTH="28px",MediumScreenSelector=getScreenSelector(0,ScreenWidthMaxMedium),getSplitButtonVerticalDividerClassNames=memoizeFunction(function(eo){var to;return mergeStyleSets(getDividerClassNames(eo),{wrapper:{position:"absolute",right:28,selectors:(to={},to[MediumScreenSelector]={right:32},to)},divider:{height:16,width:1}})}),GlobalClassNames$4={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},getItemClassNames=memoizeFunction(function(eo,to,no,io,so,ao,lo,uo,ho,go,mo,yo){var So,_o,ko,Co,$o=getMenuItemStyles(eo),Ro=getGlobalClassNames(GlobalClassNames$4,eo);return mergeStyleSets({item:[Ro.item,$o.item,lo],divider:[Ro.divider,$o.divider,uo],root:[Ro.root,$o.root,io&&[Ro.isChecked,$o.rootChecked],so&&$o.anchorLink,no&&[Ro.isExpanded,$o.rootExpanded],to&&[Ro.isDisabled,$o.rootDisabled],!to&&!no&&[{selectors:(So={":hover":$o.rootHovered,":active":$o.rootPressed},So[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=$o.rootFocused,So[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},So)}],yo],splitPrimary:[$o.root,{width:"calc(100% - ".concat(CONTEXTUAL_SPLIT_MENU_MINWIDTH,")")},io&&["is-checked",$o.rootChecked],(to||mo)&&["is-disabled",$o.rootDisabled],!(to||mo)&&!io&&[{selectors:(_o={":hover":$o.rootHovered},_o[":hover ~ .".concat(Ro.splitMenu)]=$o.rootHovered,_o[":active"]=$o.rootPressed,_o[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=$o.rootFocused,_o[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},_o)}]],splitMenu:[Ro.splitMenu,$o.root,{flexBasis:"0",padding:"0 8px",minWidth:CONTEXTUAL_SPLIT_MENU_MINWIDTH},no&&["is-expanded",$o.rootExpanded],to&&["is-disabled",$o.rootDisabled],!to&&!no&&[{selectors:(ko={":hover":$o.rootHovered,":active":$o.rootPressed},ko[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=$o.rootFocused,ko[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},ko)}]],anchorLink:$o.anchorLink,linkContent:[Ro.linkContent,$o.linkContent],linkContentMenu:[Ro.linkContentMenu,$o.linkContent,{justifyContent:"center"}],icon:[Ro.icon,ao&&$o.iconColor,$o.icon,ho,to&&[Ro.isDisabled,$o.iconDisabled]],iconColor:$o.iconColor,checkmarkIcon:[Ro.checkmarkIcon,ao&&$o.checkmarkIcon,$o.icon,ho],subMenuIcon:[Ro.subMenuIcon,$o.subMenuIcon,go,no&&{color:eo.palette.neutralPrimary},to&&[$o.iconDisabled]],label:[Ro.label,$o.label],secondaryText:[Ro.secondaryText,$o.secondaryText],splitContainer:[$o.splitButtonFlexContainer,!to&&!io&&[{selectors:(Co={},Co[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=$o.rootFocused,Co)}]],screenReaderText:[Ro.screenReaderText,$o.screenReaderText,hiddenContentStyle,{visibility:"hidden"}]})}),getItemStyles=function(eo){var to=eo.theme,no=eo.disabled,io=eo.expanded,so=eo.checked,ao=eo.isAnchorLink,lo=eo.knownIcon,uo=eo.itemClassName,ho=eo.dividerClassName,go=eo.iconClassName,mo=eo.subMenuClassName,yo=eo.primaryDisabled,So=eo.className;return getItemClassNames(to,no,io,so,ao,lo,uo,ho,go,mo,yo,So)},ContextualMenuItem=styled(ContextualMenuItemBase,getItemStyles,void 0,{scope:"ContextualMenuItem"}),ContextualMenuItemWrapper=function(eo){__extends$3(to,eo);function to(no){var io=eo.call(this,no)||this;return io._onItemMouseEnter=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseEnter;uo&&uo(lo,so,so.currentTarget)},io._onItemClick=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemClickBase;uo&&uo(lo,so,so.currentTarget)},io._onItemMouseLeave=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseLeave;uo&&uo(lo,so)},io._onItemKeyDown=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemKeyDown;uo&&uo(lo,so)},io._onItemMouseMove=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseMove;uo&&uo(lo,so,so.currentTarget)},io._getSubmenuTarget=function(){},initializeComponentRef(io),io}return to.prototype.shouldComponentUpdate=function(no){return!shallowCompare(no,this.props)},to}(reactExports.Component),KTP_PREFIX="ktp",KTP_SEPARATOR="-",DATAKTP_TARGET="data-ktp-target",DATAKTP_EXECUTE_TARGET="data-ktp-execute-target",KTP_LAYER_ID="ktp-layer-id",KeytipEvents;(function(eo){eo.KEYTIP_ADDED="keytipAdded",eo.KEYTIP_REMOVED="keytipRemoved",eo.KEYTIP_UPDATED="keytipUpdated",eo.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",eo.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",eo.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",eo.ENTER_KEYTIP_MODE="enterKeytipMode",eo.EXIT_KEYTIP_MODE="exitKeytipMode"})(KeytipEvents||(KeytipEvents={}));var KeytipManager=function(){function eo(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return eo.getInstance=function(){return this._instance},eo.prototype.init=function(to){this.delayUpdatingKeytipChange=to},eo.prototype.register=function(to,no){no===void 0&&(no=!1);var io=to;no||(io=this.addParentOverflow(to),this.sequenceMapping[io.keySequences.toString()]=io);var so=this._getUniqueKtp(io);if(no?this.persistedKeytips[so.uniqueID]=so:this.keytips[so.uniqueID]=so,this.inKeytipMode||!this.delayUpdatingKeytipChange){var ao=no?KeytipEvents.PERSISTED_KEYTIP_ADDED:KeytipEvents.KEYTIP_ADDED;EventGroup.raise(this,ao,{keytip:io,uniqueID:so.uniqueID})}return so.uniqueID},eo.prototype.update=function(to,no){var io=this.addParentOverflow(to),so=this._getUniqueKtp(io,no),ao=this.keytips[no];ao&&(so.keytip.visible=ao.keytip.visible,this.keytips[no]=so,delete this.sequenceMapping[ao.keytip.keySequences.toString()],this.sequenceMapping[so.keytip.keySequences.toString()]=so.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,KeytipEvents.KEYTIP_UPDATED,{keytip:so.keytip,uniqueID:so.uniqueID}))},eo.prototype.unregister=function(to,no,io){io===void 0&&(io=!1),io?delete this.persistedKeytips[no]:delete this.keytips[no],!io&&delete this.sequenceMapping[to.keySequences.toString()];var so=io?KeytipEvents.PERSISTED_KEYTIP_REMOVED:KeytipEvents.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,so,{keytip:to,uniqueID:no})},eo.prototype.enterKeytipMode=function(){EventGroup.raise(this,KeytipEvents.ENTER_KEYTIP_MODE)},eo.prototype.exitKeytipMode=function(){EventGroup.raise(this,KeytipEvents.EXIT_KEYTIP_MODE)},eo.prototype.getKeytips=function(){var to=this;return Object.keys(this.keytips).map(function(no){return to.keytips[no].keytip})},eo.prototype.addParentOverflow=function(to){var no=__spreadArray$1([],to.keySequences,!0);if(no.pop(),no.length!==0){var io=this.sequenceMapping[no.toString()];if(io&&io.overflowSetSequence)return __assign$4(__assign$4({},to),{overflowSetSequence:io.overflowSetSequence})}return to},eo.prototype.menuExecute=function(to,no){EventGroup.raise(this,KeytipEvents.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:to,keytipSequences:no})},eo.prototype._getUniqueKtp=function(to,no){return no===void 0&&(no=getId$1()),{keytip:__assign$4({},to),uniqueID:no}},eo._instance=new eo,eo}();function sequencesToID(eo){return eo.reduce(function(to,no){return to+KTP_SEPARATOR+no.split("").join(KTP_SEPARATOR)},KTP_PREFIX)}function mergeOverflows(eo,to){var no=to.length,io=__spreadArray$1([],to,!0).pop(),so=__spreadArray$1([],eo,!0);return addElementAtIndex(so,no-1,io)}function getAriaDescribedBy(eo){var to=" "+KTP_LAYER_ID;return eo.length?to+" "+sequencesToID(eo):to}function useKeytipData(eo){var to=reactExports.useRef(),no=eo.keytipProps?__assign$4({disabled:eo.disabled},eo.keytipProps):void 0,io=useConst(KeytipManager.getInstance()),so=usePrevious(eo);useIsomorphicLayoutEffect(function(){to.current&&no&&((so==null?void 0:so.keytipProps)!==eo.keytipProps||(so==null?void 0:so.disabled)!==eo.disabled)&&io.update(no,to.current)}),useIsomorphicLayoutEffect(function(){return no&&(to.current=io.register(no)),function(){no&&io.unregister(no,to.current)}},[]);var ao={ariaDescribedBy:void 0,keytipId:void 0};return no&&(ao=getKeytipData(io,no,eo.ariaDescribedBy)),ao}function getKeytipData(eo,to,no){var io=eo.addParentOverflow(to),so=mergeAriaAttributeValues(no,getAriaDescribedBy(io.keySequences)),ao=__spreadArray$1([],io.keySequences,!0);io.overflowSetSequence&&(ao=mergeOverflows(ao,io.overflowSetSequence));var lo=sequencesToID(ao);return{ariaDescribedBy:so,keytipId:lo}}var KeytipData=function(eo){var to,no=eo.children,io=__rest$1(eo,["children"]),so=useKeytipData(io),ao=so.keytipId,lo=so.ariaDescribedBy;return no((to={},to[DATAKTP_TARGET]=ao,to[DATAKTP_EXECUTE_TARGET]=ao,to["aria-describedby"]=lo,to))},ContextualMenuAnchor=function(eo){__extends$3(to,eo);function to(){var no=eo!==null&&eo.apply(this,arguments)||this;return no._anchor=reactExports.createRef(),no._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(io){return __assign$4(__assign$4({},io),{hasMenu:!0})}),no._getSubmenuTarget=function(){return no._anchor.current?no._anchor.current:void 0},no._onItemClick=function(io){var so=no.props,ao=so.item,lo=so.onItemClick;lo&&lo(ao,io)},no._renderAriaDescription=function(io,so){return io?reactExports.createElement("span",{id:no._ariaDescriptionId,className:so},io):null},no}return to.prototype.render=function(){var no=this,io=this.props,so=io.item,ao=io.classNames,lo=io.index,uo=io.focusableElementIndex,ho=io.totalItemCount,go=io.hasCheckmarks,mo=io.hasIcons,yo=io.expandedMenuItemKey,So=io.onItemClick,_o=io.openSubMenu,ko=io.dismissSubMenu,Co=io.dismissMenu,$o=ContextualMenuItem;this.props.item.contextualMenuItemAs&&($o=composeComponentAs(this.props.item.contextualMenuItemAs,$o)),this.props.contextualMenuItemAs&&($o=composeComponentAs(this.props.contextualMenuItemAs,$o));var Ro=so.rel;so.target&&so.target.toLowerCase()==="_blank"&&(Ro=Ro||"nofollow noopener noreferrer");var Oo=hasSubmenu(so),No=getNativeProps(so,anchorProperties),Mo=isItemDisabled(so),Bo=so.itemProps,Po=so.ariaDescription,Lo=so.keytipProps;Lo&&Oo&&(Lo=this._getMemoizedMenuButtonKeytipProps(Lo)),Po&&(this._ariaDescriptionId=getId$1());var Go=mergeAriaAttributeValues(so.ariaDescribedBy,Po?this._ariaDescriptionId:void 0,No["aria-describedby"]),Do={"aria-describedby":Go};return reactExports.createElement("div",null,reactExports.createElement(KeytipData,{keytipProps:so.keytipProps,ariaDescribedBy:Go,disabled:Mo},function(Uo){return reactExports.createElement("a",__assign$4({},Do,No,Uo,{ref:no._anchor,href:so.href,target:so.target,rel:Ro,className:ao.root,role:"menuitem","aria-haspopup":Oo||void 0,"aria-expanded":Oo?so.key===yo:void 0,"aria-posinset":uo+1,"aria-setsize":ho,"aria-disabled":isItemDisabled(so),style:so.style,onClick:no._onItemClick,onMouseEnter:no._onItemMouseEnter,onMouseLeave:no._onItemMouseLeave,onMouseMove:no._onItemMouseMove,onKeyDown:Oo?no._onItemKeyDown:void 0}),reactExports.createElement($o,__assign$4({componentRef:so.componentRef,item:so,classNames:ao,index:lo,onCheckmarkClick:go&&So?So:void 0,hasIcons:mo,openSubMenu:_o,dismissSubMenu:ko,dismissMenu:Co,getSubmenuTarget:no._getSubmenuTarget},Bo)),no._renderAriaDescription(Po,ao.screenReaderText))}))},to}(ContextualMenuItemWrapper),ContextualMenuButton=function(eo){__extends$3(to,eo);function to(){var no=eo!==null&&eo.apply(this,arguments)||this;return no._btn=reactExports.createRef(),no._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(io){return __assign$4(__assign$4({},io),{hasMenu:!0})}),no._renderAriaDescription=function(io,so){return io?reactExports.createElement("span",{id:no._ariaDescriptionId,className:so},io):null},no._getSubmenuTarget=function(){return no._btn.current?no._btn.current:void 0},no}return to.prototype.render=function(){var no=this,io=this.props,so=io.item,ao=io.classNames,lo=io.index,uo=io.focusableElementIndex,ho=io.totalItemCount,go=io.hasCheckmarks,mo=io.hasIcons,yo=io.contextualMenuItemAs,So=io.expandedMenuItemKey,_o=io.onItemMouseDown,ko=io.onItemClick,Co=io.openSubMenu,$o=io.dismissSubMenu,Ro=io.dismissMenu,Oo=ContextualMenuItem;so.contextualMenuItemAs&&(Oo=composeComponentAs(so.contextualMenuItemAs,Oo)),yo&&(Oo=composeComponentAs(yo,Oo));var No=getIsChecked(so),Mo=No!==null,Bo=getMenuItemAriaRole(so),Po=hasSubmenu(so),Lo=so.itemProps,Go=so.ariaLabel,Do=so.ariaDescription,Uo=getNativeProps(so,buttonProperties);delete Uo.disabled;var Ho=so.role||Bo;Do&&(this._ariaDescriptionId=getId$1());var Yo=mergeAriaAttributeValues(so.ariaDescribedBy,Do?this._ariaDescriptionId:void 0,Uo["aria-describedby"]),qo={className:ao.root,onClick:this._onItemClick,onKeyDown:Po?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(ps){return _o?_o(so,ps):void 0},onMouseMove:this._onItemMouseMove,href:so.href,title:so.title,"aria-label":Go,"aria-describedby":Yo,"aria-haspopup":Po||void 0,"aria-expanded":Po?so.key===So:void 0,"aria-posinset":uo+1,"aria-setsize":ho,"aria-disabled":isItemDisabled(so),"aria-checked":(Ho==="menuitemcheckbox"||Ho==="menuitemradio")&&Mo?!!No:void 0,"aria-selected":Ho==="menuitem"&&Mo?!!No:void 0,role:Ho,style:so.style},Jo=so.keytipProps;return Jo&&Po&&(Jo=this._getMemoizedMenuButtonKeytipProps(Jo)),reactExports.createElement(KeytipData,{keytipProps:Jo,ariaDescribedBy:Yo,disabled:isItemDisabled(so)},function(ps){return reactExports.createElement("button",__assign$4({ref:no._btn},Uo,qo,ps),reactExports.createElement(Oo,__assign$4({componentRef:so.componentRef,item:so,classNames:ao,index:lo,onCheckmarkClick:go&&ko?ko:void 0,hasIcons:mo,openSubMenu:Co,dismissSubMenu:$o,dismissMenu:Ro,getSubmenuTarget:no._getSubmenuTarget},Lo)),no._renderAriaDescription(Do,ao.screenReaderText))})},to}(ContextualMenuItemWrapper),getStyles$k=function(eo){var to=eo.theme,no=eo.getClassNames,io=eo.className;if(!to)throw new Error("Theme is undefined or null.");if(no){var so=no(to);return{wrapper:[so.wrapper],divider:[so.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},io],divider:[{width:1,height:"100%",backgroundColor:to.palette.neutralTertiaryAlt}]}},getClassNames$4=classNamesFunction(),VerticalDividerBase=reactExports.forwardRef(function(eo,to){var no=eo.styles,io=eo.theme,so=eo.getClassNames,ao=eo.className,lo=getClassNames$4(no,{theme:io,getClassNames:so,className:ao});return reactExports.createElement("span",{className:lo.wrapper,ref:to},reactExports.createElement("span",{className:lo.divider}))});VerticalDividerBase.displayName="VerticalDividerBase";var VerticalDivider=styled(VerticalDividerBase,getStyles$k,void 0,{scope:"VerticalDivider"}),TouchIdleDelay=500,ContextualMenuSplitButton=function(eo){__extends$3(to,eo);function to(no){var io=eo.call(this,no)||this;return io._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(so){return __assign$4(__assign$4({},so),{hasMenu:!0})}),io._onItemKeyDown=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemKeyDown;so.which===KeyCodes$1.enter?(io._executeItemClick(so),so.preventDefault(),so.stopPropagation()):uo&&uo(lo,so)},io._getSubmenuTarget=function(){return io._splitButton},io._renderAriaDescription=function(so,ao){return so?reactExports.createElement("span",{id:io._ariaDescriptionId,className:ao},so):null},io._onItemMouseEnterPrimary=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseEnter;uo&&uo(__assign$4(__assign$4({},lo),{subMenuProps:void 0,items:void 0}),so,io._splitButton)},io._onItemMouseEnterIcon=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseEnter;uo&&uo(lo,so,io._splitButton)},io._onItemMouseMovePrimary=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseMove;uo&&uo(__assign$4(__assign$4({},lo),{subMenuProps:void 0,items:void 0}),so,io._splitButton)},io._onItemMouseMoveIcon=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseMove;uo&&uo(lo,so,io._splitButton)},io._onIconItemClick=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemClickBase;uo&&uo(lo,so,io._splitButton?io._splitButton:so.currentTarget)},io._executeItemClick=function(so){var ao=io.props,lo=ao.item,uo=ao.executeItemClick,ho=ao.onItemClick;if(!(lo.disabled||lo.isDisabled)){if(io._processingTouch&&!lo.canCheck&&ho)return ho(lo,so);uo&&uo(lo,so)}},io._onTouchStart=function(so){io._splitButton&&!("onpointerdown"in io._splitButton)&&io._handleTouchAndPointerEvent(so)},io._onPointerDown=function(so){so.pointerType==="touch"&&(io._handleTouchAndPointerEvent(so),so.preventDefault(),so.stopImmediatePropagation())},io._async=new Async(io),io._events=new EventGroup(io),io._dismissLabelId=getId$1(),io}return to.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},to.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},to.prototype.render=function(){var no=this,io,so=this.props,ao=so.item,lo=so.classNames,uo=so.index,ho=so.focusableElementIndex,go=so.totalItemCount,mo=so.hasCheckmarks,yo=so.hasIcons,So=so.onItemMouseLeave,_o=so.expandedMenuItemKey,ko=hasSubmenu(ao),Co=ao.keytipProps;Co&&(Co=this._getMemoizedMenuButtonKeytipProps(Co));var $o=ao.ariaDescription;$o&&(this._ariaDescriptionId=getId$1());var Ro=(io=getIsChecked(ao))!==null&&io!==void 0?io:void 0;return reactExports.createElement(KeytipData,{keytipProps:Co,disabled:isItemDisabled(ao)},function(Oo){return reactExports.createElement("div",{"data-ktp-target":Oo["data-ktp-target"],ref:function(No){return no._splitButton=No},role:getMenuItemAriaRole(ao),"aria-label":ao.ariaLabel,className:lo.splitContainer,"aria-disabled":isItemDisabled(ao),"aria-expanded":ko?ao.key===_o:void 0,"aria-haspopup":!0,"aria-describedby":mergeAriaAttributeValues(ao.ariaDescribedBy,$o?no._ariaDescriptionId:void 0,Oo["aria-describedby"]),"aria-checked":Ro,"aria-posinset":ho+1,"aria-setsize":go,onMouseEnter:no._onItemMouseEnterPrimary,onMouseLeave:So?So.bind(no,__assign$4(__assign$4({},ao),{subMenuProps:null,items:null})):void 0,onMouseMove:no._onItemMouseMovePrimary,onKeyDown:no._onItemKeyDown,onClick:no._executeItemClick,onTouchStart:no._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":ao["aria-roledescription"]},no._renderSplitPrimaryButton(ao,lo,uo,mo,yo),no._renderSplitDivider(ao),no._renderSplitIconButton(ao,lo,uo,Oo),no._renderAriaDescription($o,lo.screenReaderText))})},to.prototype._renderSplitPrimaryButton=function(no,io,so,ao,lo){var uo=this.props,ho=uo.contextualMenuItemAs,go=ho===void 0?ContextualMenuItem:ho,mo=uo.onItemClick,yo={key:no.key,disabled:isItemDisabled(no)||no.primaryDisabled,name:no.name,text:no.text||no.name,secondaryText:no.secondaryText,className:io.splitPrimary,canCheck:no.canCheck,isChecked:no.isChecked,checked:no.checked,iconProps:no.iconProps,id:this._dismissLabelId,onRenderIcon:no.onRenderIcon,data:no.data,"data-is-focusable":!1},So=no.itemProps;return reactExports.createElement("button",__assign$4({},getNativeProps(yo,buttonProperties)),reactExports.createElement(go,__assign$4({"data-is-focusable":!1,item:yo,classNames:io,index:so,onCheckmarkClick:ao&&mo?mo:void 0,hasIcons:lo},So)))},to.prototype._renderSplitDivider=function(no){var io=no.getSplitButtonVerticalDividerClassNames||getSplitButtonVerticalDividerClassNames;return reactExports.createElement(VerticalDivider,{getClassNames:io})},to.prototype._renderSplitIconButton=function(no,io,so,ao){var lo=this.props,uo=lo.onItemMouseLeave,ho=lo.onItemMouseDown,go=lo.openSubMenu,mo=lo.dismissSubMenu,yo=lo.dismissMenu,So=ContextualMenuItem;this.props.item.contextualMenuItemAs&&(So=composeComponentAs(this.props.item.contextualMenuItemAs,So)),this.props.contextualMenuItemAs&&(So=composeComponentAs(this.props.contextualMenuItemAs,So));var _o={onClick:this._onIconItemClick,disabled:isItemDisabled(no),className:io.splitMenu,subMenuProps:no.subMenuProps,submenuIconProps:no.submenuIconProps,split:!0,key:no.key,"aria-labelledby":this._dismissLabelId},ko=__assign$4(__assign$4({},getNativeProps(_o,buttonProperties)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:uo?uo.bind(this,no):void 0,onMouseDown:function($o){return ho?ho(no,$o):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":ao["data-ktp-execute-target"],"aria-haspopup":!0}),Co=no.itemProps;return reactExports.createElement("button",__assign$4({},ko),reactExports.createElement(So,__assign$4({componentRef:no.componentRef,item:_o,classNames:io,index:so,hasIcons:!1,openSubMenu:go,dismissSubMenu:mo,dismissMenu:yo,getSubmenuTarget:this._getSubmenuTarget},Co)))},to.prototype._handleTouchAndPointerEvent=function(no){var io=this,so=this.props.onTap;so&&so(no),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){io._processingTouch=!1,io._lastTouchTimeoutId=void 0},TouchIdleDelay)},to}(ContextualMenuItemWrapper),ResponsiveMode;(function(eo){eo[eo.small=0]="small",eo[eo.medium=1]="medium",eo[eo.large=2]="large",eo[eo.xLarge=3]="xLarge",eo[eo.xxLarge=4]="xxLarge",eo[eo.xxxLarge=5]="xxxLarge",eo[eo.unknown=999]="unknown"})(ResponsiveMode||(ResponsiveMode={}));var RESPONSIVE_MAX_CONSTRAINT=[479,639,1023,1365,1919,99999999],_defaultMode,_lastMode;function getInitialResponsiveMode(){var eo;return(eo=_defaultMode??_lastMode)!==null&&eo!==void 0?eo:ResponsiveMode.large}function getWidthOfCurrentWindow(eo){try{return eo.document.documentElement.clientWidth}catch{return eo.innerWidth}}function getResponsiveMode(eo){var to=ResponsiveMode.small;if(eo){try{for(;getWidthOfCurrentWindow(eo)>RESPONSIVE_MAX_CONSTRAINT[to];)to++}catch{to=getInitialResponsiveMode()}_lastMode=to}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return to}var useResponsiveMode=function(eo,to){var no=reactExports.useState(getInitialResponsiveMode()),io=no[0],so=no[1],ao=reactExports.useCallback(function(){var uo=getResponsiveMode(getWindow(eo.current));io!==uo&&so(uo)},[eo,io]),lo=useWindow();return useOnEvent(lo,"resize",ao),reactExports.useEffect(function(){to===void 0&&ao()},[to]),to??io},MenuContext=reactExports.createContext({}),getClassNames$3=classNamesFunction(),getContextualMenuItemClassNames=classNamesFunction(),DEFAULT_PROPS$1={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:DirectionalHint.bottomAutoEdge,beakWidth:16};function getItemCount(eo){for(var to=0,no=0,io=eo;no0){var J0=0;return reactExports.createElement("li",{role:"presentation",key:Rl.key||C1.key||"section-".concat(_l)},reactExports.createElement("div",__assign$4({},eu),reactExports.createElement("ul",{className:Ul.list,role:"presentation"},Rl.topDivider&&yl(_l,Ll,!0,!0),Sl&&El(Sl,C1.key||_l,Ll,C1.title),Rl.items.map(function(S1,O1){var r0=Fs(S1,O1,J0,getItemCount(Rl.items),$l,Us,Ul);if(S1.itemType!==ContextualMenuItemType.Divider&&S1.itemType!==ContextualMenuItemType.Header){var I1=S1.customOnRenderListLength?S1.customOnRenderListLength:1;J0+=I1}return r0}),Rl.bottomDivider&&yl(_l,Ll,!1,!0))))}}},El=function(C1,Ll,Ul,_l){return reactExports.createElement("li",{role:"presentation",title:_l,key:Ll,className:Ul.item},C1)},yl=function(C1,Ll,Ul,_l){return _l||C1>0?reactExports.createElement("li",{role:"separator",key:"separator-"+C1+(Ul===void 0?"":Ul?"-top":"-bottom"),className:Ll.divider,"aria-hidden":"true"}):null},Gl=function(C1,Ll,Ul,_l,$l,Us,Rl){if(C1.onRender)return C1.onRender(__assign$4({"aria-posinset":_l+1,"aria-setsize":$l},C1),ho);var Sl=so.contextualMenuItemAs,eu={item:C1,classNames:Ll,index:Ul,focusableElementIndex:_l,totalItemCount:$l,hasCheckmarks:Us,hasIcons:Rl,contextualMenuItemAs:Sl,onItemMouseEnter:vs,onItemMouseLeave:Os,onItemMouseMove:ks,onItemMouseDown,executeItemClick:Ws,onItemKeyDown:gs,expandedMenuItemKey:ko,openSubMenu:Co,dismissSubMenu:Ro,dismissMenu:ho};if(C1.href){var _c=ContextualMenuAnchor;return C1.contextualMenuItemWrapperAs&&(_c=composeComponentAs(C1.contextualMenuItemWrapperAs,_c)),reactExports.createElement(_c,__assign$4({},eu,{onItemClick:Xs}))}if(C1.split&&hasSubmenu(C1)){var zu=ContextualMenuSplitButton;return C1.contextualMenuItemWrapperAs&&(zu=composeComponentAs(C1.contextualMenuItemWrapperAs,zu)),reactExports.createElement(zu,__assign$4({},eu,{onItemClick:Ts,onItemClickBase:Ps,onTap:Uo}))}var N1=ContextualMenuButton;return C1.contextualMenuItemWrapperAs&&(N1=composeComponentAs(C1.contextualMenuItemWrapperAs,N1)),reactExports.createElement(N1,__assign$4({},eu,{onItemClick:Ts,onItemClickBase:Ps}))},Qs=function(C1,Ll,Ul,_l,$l,Us){var Rl=ContextualMenuItem;C1.contextualMenuItemAs&&(Rl=composeComponentAs(C1.contextualMenuItemAs,Rl)),so.contextualMenuItemAs&&(Rl=composeComponentAs(so.contextualMenuItemAs,Rl));var Sl=C1.itemProps,eu=C1.id,_c=Sl&&getNativeProps(Sl,divProperties);return reactExports.createElement("div",__assign$4({id:eu,className:Ul.header},_c,{style:C1.style}),reactExports.createElement(Rl,__assign$4({item:C1,classNames:Ll,index:_l,onCheckmarkClick:$l?Ts:void 0,hasIcons:Us},Sl)))},du=so.isBeakVisible,Ol=so.items,Fu=so.labelElementId,ju=so.id,F1=so.className,y1=so.beakWidth,r1=so.directionalHint,$u=so.directionalHintForRTL,Kl=so.alignTargetEdge,Is=so.gapSpace,Ks=so.coverTarget,Bs=so.ariaLabel,Ds=so.doNotLayer,Zs=so.target,Cl=so.bounds,ba=so.useTargetWidth,fu=so.useTargetAsMinWidth,Lu=so.directionalHintFixed,e1=so.shouldFocusOnMount,Gu=so.shouldFocusOnContainer,w1=so.title,Zu=so.styles,L1=so.theme,K1=so.calloutProps,yp=so.onRenderSubMenu,wp=yp===void 0?onDefaultRenderSubMenu:yp,j0=so.onRenderMenuList,h0=j0===void 0?function(C1,Ll){return qs(C1,ap)}:j0,cp=so.focusZoneProps,k0=so.getMenuClassNames,ap=k0?k0(L1,F1):getClassNames$3(Zu,{theme:L1,className:F1}),x0=b0(Ol);function b0(C1){for(var Ll=0,Ul=C1;Ll0){var $v=getItemCount(Ol),Gv=ap.subComponentStyles?ap.subComponentStyles.callout:void 0;return reactExports.createElement(MenuContext.Consumer,null,function(C1){return reactExports.createElement(Callout,__assign$4({styles:Gv,onRestoreFocus:So},K1,{target:Zs||C1.target,isBeakVisible:du,beakWidth:y1,directionalHint:r1,directionalHintForRTL:$u,gapSpace:Is,coverTarget:Ks,doNotLayer:Ds,className:css$3("ms-ContextualMenu-Callout",K1&&K1.className),setInitialFocus:e1,onDismiss:so.onDismiss||C1.onDismiss,onScroll:Lo,bounds:Cl,directionalHintFixed:Lu,alignTargetEdge:Kl,hidden:so.hidden||C1.hidden,ref:to}),reactExports.createElement("div",{style:P0,ref:ao,id:ju,className:ap.container,tabIndex:Gu?0:-1,onKeyDown:hs,onKeyUp:Qo,onFocusCapture:Bo,"aria-label":Bs,"aria-labelledby":Fu,role:"menu"},w1&&reactExports.createElement("div",{className:ap.title}," ",w1," "),Ol&&Ol.length?ga(h0({ariaLabel:Bs,items:Ol,totalItemCount:$v,hasCheckmarks:c1,hasIcons:x0,defaultMenuItemRenderer:function(Ll){return Js(Ll,ap)},labelElementId:Fu},function(Ll,Ul){return qs(Ll,ap)}),P1):null,V0&&wp(V0,onDefaultRenderSubMenu)),reactExports.createElement(FocusRects,null))})}else return null}),function(eo,to){return!to.shouldUpdateWhenHidden&&eo.hidden&&to.hidden?!0:shallowCompare(eo,to)});ContextualMenuBase.displayName="ContextualMenuBase";function isAltOrMeta(eo){return eo.which===KeyCodes$1.alt||eo.key==="Meta"}function onItemMouseDown(eo,to){var no;(no=eo.onMouseDown)===null||no===void 0||no.call(eo,eo,to)}function onDefaultRenderSubMenu(eo,to){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function findItemByKeyFromItems(eo,to){for(var no=0,io=to;no=(Qo||ResponsiveMode.small)&&reactExports.createElement(Layer,__assign$4({ref:qs},w1),reactExports.createElement(Popup,__assign$4({role:Lu?"alertdialog":"dialog",ariaLabelledBy:Ho,ariaDescribedBy:qo,onDismiss:Lo,shouldRestoreFocus:!Oo,enableAriaHiddenSiblings:ks,"aria-modal":!gs},Os),reactExports.createElement("div",{className:Gu.root,role:gs?void 0:"document"},!gs&&reactExports.createElement(Overlay,__assign$4({"aria-hidden":!0,isDarkThemed:Po,onClick:No?void 0:Lo,allowTouchBodyScroll:ho},Do)),ys?reactExports.createElement(DraggableZone,{handleSelector:ys.dragHandleSelector||"#".concat(Fs),preventDragSelector:"button",onStart:wp,onDragChange:j0,onStop:h0,position:y1},x0):x0)))||null});ModalBase.displayName="Modal";var Modal=styled(ModalBase,getStyles$i,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});Modal.displayName="Modal";var assign$4=__assign$4;function withSlots(eo,to){for(var no=[],io=2;io0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return _renderSlot(to[lo],ho,io[lo],io.slots&&io.slots[lo],io._defaultStyles&&io._defaultStyles[lo],io.theme)};uo.isSlot=!0,no[lo]=uo}};for(var ao in to)so(ao);return no}function _translateShorthand(eo,to){var no,io;return typeof to=="string"||typeof to=="number"||typeof to=="boolean"?io=(no={},no[eo]=to,no):io=to,io}function _constructFinalProps(eo,to){for(var no=[],io=2;io2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(no.length===2)return{rowGap:_getValueUnitGap(_getThemedSpacing(no[0],to)),columnGap:_getValueUnitGap(_getThemedSpacing(no[1],to))};var io=_getValueUnitGap(_getThemedSpacing(eo,to));return{rowGap:io,columnGap:io}},parsePadding=function(eo,to){if(eo===void 0||typeof eo=="number"||eo==="")return eo;var no=eo.split(" ");return no.length<2?_getThemedSpacing(eo,to):no.reduce(function(io,so){return _getThemedSpacing(io,to)+" "+_getThemedSpacing(so,to)})},nameMap={start:"flex-start",end:"flex-end"},GlobalClassNames={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},styles$d=function(eo,to,no){var io,so,ao,lo,uo,ho,go,mo,yo,So,_o,ko,Co,$o=eo.className,Ro=eo.disableShrink,Oo=eo.enableScopedSelectors,No=eo.grow,Mo=eo.horizontal,Bo=eo.horizontalAlign,Po=eo.reversed,Lo=eo.verticalAlign,Go=eo.verticalFill,Do=eo.wrap,Uo=getGlobalClassNames(GlobalClassNames,to),Ho=no&&no.childrenGap?no.childrenGap:eo.gap,Yo=no&&no.maxHeight?no.maxHeight:eo.maxHeight,qo=no&&no.maxWidth?no.maxWidth:eo.maxWidth,Jo=no&&no.padding?no.padding:eo.padding,ps=parseGap(Ho,to),Qo=ps.rowGap,hs=ps.columnGap,gs="".concat(-.5*hs.value).concat(hs.unit),ys="".concat(-.5*Qo.value).concat(Qo.unit),vs={textOverflow:"ellipsis"},ks="> "+(Oo?"."+GlobalClassNames.child:"*"),Os=(io={},io["".concat(ks,":not(.").concat(GlobalClassNames$1.root,")")]={flexShrink:0},io);return Do?{root:[Uo.root,{flexWrap:"wrap",maxWidth:qo,maxHeight:Yo,width:"auto",overflow:"visible",height:"100%"},Bo&&(so={},so[Mo?"justifyContent":"alignItems"]=nameMap[Bo]||Bo,so),Lo&&(ao={},ao[Mo?"alignItems":"justifyContent"]=nameMap[Lo]||Lo,ao),$o,{display:"flex"},Mo&&{height:Go?"100%":"auto"}],inner:[Uo.inner,(lo={display:"flex",flexWrap:"wrap",marginLeft:gs,marginRight:gs,marginTop:ys,marginBottom:ys,overflow:"visible",boxSizing:"border-box",padding:parsePadding(Jo,to),width:hs.value===0?"100%":"calc(100% + ".concat(hs.value).concat(hs.unit,")"),maxWidth:"100vw"},lo[ks]=__assign$4({margin:"".concat(.5*Qo.value).concat(Qo.unit," ").concat(.5*hs.value).concat(hs.unit)},vs),lo),Ro&&Os,Bo&&(uo={},uo[Mo?"justifyContent":"alignItems"]=nameMap[Bo]||Bo,uo),Lo&&(ho={},ho[Mo?"alignItems":"justifyContent"]=nameMap[Lo]||Lo,ho),Mo&&(go={flexDirection:Po?"row-reverse":"row",height:Qo.value===0?"100%":"calc(100% + ".concat(Qo.value).concat(Qo.unit,")")},go[ks]={maxWidth:hs.value===0?"100%":"calc(100% - ".concat(hs.value).concat(hs.unit,")")},go),!Mo&&(mo={flexDirection:Po?"column-reverse":"column",height:"calc(100% + ".concat(Qo.value).concat(Qo.unit,")")},mo[ks]={maxHeight:Qo.value===0?"100%":"calc(100% - ".concat(Qo.value).concat(Qo.unit,")")},mo)]}:{root:[Uo.root,(yo={display:"flex",flexDirection:Mo?Po?"row-reverse":"row":Po?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:Go?"100%":"auto",maxWidth:qo,maxHeight:Yo,padding:parsePadding(Jo,to),boxSizing:"border-box"},yo[ks]=vs,yo),Ro&&Os,No&&{flexGrow:No===!0?1:No},Bo&&(So={},So[Mo?"justifyContent":"alignItems"]=nameMap[Bo]||Bo,So),Lo&&(_o={},_o[Mo?"alignItems":"justifyContent"]=nameMap[Lo]||Lo,_o),Mo&&hs.value>0&&(ko={},ko[Po?"".concat(ks,":not(:last-child)"):"".concat(ks,":not(:first-child)")]={marginLeft:"".concat(hs.value).concat(hs.unit)},ko),!Mo&&Qo.value>0&&(Co={},Co[Po?"".concat(ks,":not(:last-child)"):"".concat(ks,":not(:first-child)")]={marginTop:"".concat(Qo.value).concat(Qo.unit)},Co),$o]}},StackView=function(eo){var to=eo.as,no=to===void 0?"div":to,io=eo.disableShrink,so=io===void 0?!1:io,ao=eo.doNotRenderFalsyValues,lo=ao===void 0?!1:ao,uo=eo.enableScopedSelectors,ho=uo===void 0?!1:uo,go=eo.wrap,mo=__rest$1(eo,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]),yo=_processStackChildren(eo.children,{disableShrink:so,enableScopedSelectors:ho,doNotRenderFalsyValues:lo}),So=getNativeProps(mo,htmlElementProperties),_o=getSlots(eo,{root:no,inner:"div"});return go?withSlots(_o.root,__assign$4({},So),withSlots(_o.inner,null,yo)):withSlots(_o.root,__assign$4({},So),yo)};function _processStackChildren(eo,to){var no=to.disableShrink,io=to.enableScopedSelectors,so=to.doNotRenderFalsyValues,ao=reactExports.Children.toArray(eo);return ao=reactExports.Children.map(ao,function(lo){if(!lo)return so?null:lo;if(!reactExports.isValidElement(lo))return lo;if(lo.type===reactExports.Fragment)return lo.props.children?_processStackChildren(lo.props.children,{disableShrink:no,enableScopedSelectors:io,doNotRenderFalsyValues:so}):null;var uo=lo,ho={};_isStackItem(lo)&&(ho={shrink:!no});var go=uo.props.className;return reactExports.cloneElement(uo,__assign$4(__assign$4(__assign$4(__assign$4({},ho),uo.props),go&&{className:go}),io&&{className:css$3(GlobalClassNames.child,go)}))}),ao}function _isStackItem(eo){return!!eo&&typeof eo=="object"&&!!eo.type&&eo.type.displayName===StackItem.displayName}var StackStatics={Item:StackItem},Stack$3=createComponent(StackView,{displayName:"Stack",styles:styles$d,statics:StackStatics});const AzureContentSafetyIcon="data:image/svg+xml,%3csvg%20id='uuid-40011f3f-22d0-4882-8376-afe2ef514a7e'%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%3e%3cdefs%3e%3clinearGradient%20id='uuid-5c4dfc33-1236-40a5-b487-5c8d33e4013b'%20x1='12.062'%20y1='5.427'%20x2='12.062'%20y2='3.991'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2376bc2d'/%3e%3cstop%20offset='1'%20stop-color='%2386d633'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-5dc2ae3c-3a23-47ff-9dc1-e087ff0e2742'%20x1='2.902'%20y1='6.762'%20x2='9.455'%20y2='6.762'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e6e6e6'/%3e%3cstop%20offset='1'%20stop-color='%23999'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-d781b8b0-afbe-4f6e-a478-ee1974441cbf'%20x1='-1288.505'%20y1='-521.774'%20x2='-1284.777'%20y2='-521.774'%20gradientTransform='translate(-512.319%201291.819)%20rotate(90)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2386d633'/%3e%3cstop%20offset='1'%20stop-color='%2376bc2d'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-efb884ed-afc6-4667-82f2-34983e82b107'%20x1='2.902'%20y1='11.544'%20x2='9.455'%20y2='11.544'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e6e6e6'/%3e%3cstop%20offset='1'%20stop-color='%23999'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-e8c8c19d-aa6c-48ed-823e-cfec5a014d78'%20x1='-274.183'%20y1='-521.774'%20x2='-279.397'%20y2='-521.774'%20gradientTransform='translate(-512.319%20-263.224)%20rotate(-90)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23faa21d'/%3e%3cstop%20offset='.999'%20stop-color='%23f78d1e'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-7a6a88dd-1778-43da-9238-45bfc5a17b3e'%20x1='-140.646'%20y1='13.626'%20x2='-143.764'%20y2='4.784'%20gradientTransform='translate(149.182)%20skewX(-19.425)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2350e6ff'/%3e%3cstop%20offset='1'%20stop-color='%239cebff'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='m16.62,4.541l-2.765-1.597c-.129-.075-.291.019-.291.168v.822h-6.158v1.55h6.158v.822c0,.149.161.242.291.168l2.765-1.597c.129-.075.129-.261,0-.336Z'%20fill='url(%23uuid-5c4dfc33-1236-40a5-b487-5c8d33e4013b)'/%3e%3cpath%20d='m4.495,9.616h-1.592v-4.634c-.002-.591.476-1.071,1.067-1.073,0,0,.001,0,.002,0h5.484v1.592h-4.96v4.115Z'%20fill='url(%23uuid-5dc2ae3c-3a23-47ff-9dc1-e087ff0e2742)'/%3e%3ccircle%20cx='9.455'%20cy='4.603'%20r='2.607'%20fill='url(%23uuid-d781b8b0-afbe-4f6e-a478-ee1974441cbf)'/%3e%3cpath%20d='m9.455,14.4H3.971c-.591,0-1.07-.48-1.069-1.071,0,0,0-.001,0-.002v-4.638h1.592v4.115h4.96v1.596Z'%20fill='url(%23uuid-efb884ed-afc6-4667-82f2-34983e82b107)'/%3e%3ccircle%20cx='9.455'%20cy='13.397'%20r='2.607'%20fill='url(%23uuid-e8c8c19d-aa6c-48ed-823e-cfec5a014d78)'/%3e%3cpath%20d='m5.008,12.097H1.696c-.272,0-.453-.301-.405-.673l.584-4.534c.048-.372.307-.673.578-.673h3.312c.272,0,.453.301.405.673l-.584,4.534c-.048.372-.307.673-.578.673Z'%20fill='url(%23uuid-7a6a88dd-1778-43da-9238-45bfc5a17b3e)'/%3e%3cpath%20d='m.362,3.138C.162,3.138,0,2.976,0,2.777h0V.361C0,.162.162,0,.362,0h2.266c.2,0,.362.162.362.361,0,.199-.162.361-.362.361H.724v2.053c0,.199-.161.362-.361.362,0,0,0,0-.001,0Zm17.638-.361V.361C18,.162,17.838,0,17.638,0h-2.266c-.2,0-.362.162-.362.361s.162.361.362.361h1.904v2.053c0,.199.162.361.362.361.2,0,.361-.162.362-.361h0ZM2.99,17.639c0-.199-.162-.361-.362-.361H.724v-2.053c0-.199-.162-.361-.362-.361-.2,0-.362.162-.362.361v2.415c0,.199.163.36.362.36h2.266c.2,0,.362-.162.362-.361Zm15.01.001v-2.415c0-.199-.162-.361-.362-.361-.2,0-.361.162-.362.361v2.053h-1.904c-.2,0-.362.162-.362.362,0,.199.162.361.362.361h2.266c.199,0,.361-.161.362-.36Z'%20fill='%2376bc2d'/%3e%3c/svg%3e",BingLogoIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20234%20343.41'%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='-29.25'%20y1='662.02'%20x2='-23.09'%20y2='658.46'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2337bdff'/%3e%3cstop%20offset='0.18'%20stop-color='%2333bffd'/%3e%3cstop%20offset='0.36'%20stop-color='%2328c5f5'/%3e%3cstop%20offset='0.53'%20stop-color='%2315d0e9'/%3e%3cstop%20offset='0.55'%20stop-color='%2312d1e7'/%3e%3cstop%20offset='0.59'%20stop-color='%231cd2e5'/%3e%3cstop%20offset='0.77'%20stop-color='%2342d8dc'/%3e%3cstop%20offset='0.91'%20stop-color='%2359dbd6'/%3e%3cstop%20offset='1'%20stop-color='%2362dcd4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='-32.86'%20y1='656.68'%20x2='-23.89'%20y2='656.68'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2339d2ff'/%3e%3cstop%20offset='0.15'%20stop-color='%2338cefe'/%3e%3cstop%20offset='0.29'%20stop-color='%2335c3fa'/%3e%3cstop%20offset='0.43'%20stop-color='%232fb0f3'/%3e%3cstop%20offset='0.55'%20stop-color='%23299aeb'/%3e%3cstop%20offset='0.58'%20stop-color='%232692ec'/%3e%3cstop%20offset='0.76'%20stop-color='%231a6cf1'/%3e%3cstop%20offset='0.91'%20stop-color='%231355f4'/%3e%3cstop%20offset='1'%20stop-color='%23104cf5'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='-31.2'%20y1='655.9'%20x2='-31.2'%20y2='667.89'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%231b48ef'/%3e%3cstop%20offset='0.12'%20stop-color='%231c51f0'/%3e%3cstop%20offset='0.32'%20stop-color='%231e69f5'/%3e%3cstop%20offset='0.57'%20stop-color='%232190fb'/%3e%3cstop%20offset='1'%20stop-color='%2326b8f4'/%3e%3c/linearGradient%3e%3cclipPath%20id='d'%20transform='translate(-163%20-82.94)'%3e%3crect%20x='163.02'%20y='288.38'%20width='227.17'%20height='140.76'%20style='fill:none'/%3e%3c/clipPath%3e%3clinearGradient%20id='e'%20x1='-31.08'%20y1='654.47'%20x2='-25.54'%20y2='660'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20offset='0.37'%20stop-color='%23fdfdfd'/%3e%3cstop%20offset='0.51'%20stop-color='%23f6f6f6'/%3e%3cstop%20offset='0.6'%20stop-color='%23ebebeb'/%3e%3cstop%20offset='0.68'%20stop-color='%23dadada'/%3e%3cstop%20offset='0.75'%20stop-color='%23c4c4c4'/%3e%3cstop%20offset='0.81'%20stop-color='%23a8a8a8'/%3e%3cstop%20offset='0.86'%20stop-color='%23888'/%3e%3cstop%20offset='0.91'%20stop-color='%23626262'/%3e%3cstop%20offset='0.95'%20stop-color='%23373737'/%3e%3cstop%20offset='0.99'%20stop-color='%23090909'/%3e%3cstop%20offset='1'/%3e%3c/linearGradient%3e%3cclipPath%20id='f'%20transform='translate(-163%20-82.94)'%3e%3crect%20x='163.02'%20y='82.87'%20width='86.51'%20height='302.96'%20style='fill:none'/%3e%3c/clipPath%3e%3clinearGradient%20id='g'%20x1='-31.2'%20y1='668.1'%20x2='-31.2'%20y2='656.02'%20xlink:href='%23e'/%3e%3c/defs%3e%3ctitle%3ebing-logo%3c/title%3e%3cpath%20d='M397,303.4a92.73,92.73,0,0,1-24.84,63.16,41.81,41.81,0,0,0,4.5-6,38.11,38.11,0,0,0,2.69-5.08,17.7,17.7,0,0,0,.74-1.78,17.25,17.25,0,0,0,.65-1.78c.21-.56.39-1.14.55-1.72s.33-1.2.46-1.81l.07-.21c.14-.6.25-1.2.37-1.81s.23-1.25.33-1.88v0c.09-.58.16-1.16.21-1.76a40,40,0,0,0,.21-4.13A41.41,41.41,0,0,0,377,317.11a36.51,36.51,0,0,0-2.85-4.17,39.93,39.93,0,0,0-4-4.43,41.45,41.45,0,0,0-12.36-8.28,38.78,38.78,0,0,0-6.22-2.14l-.09,0-.74-.25-10.81-3.71v0l-28.27-9.72c-.09,0-.21,0-.28,0l-1.77-.65A26.23,26.23,0,0,1,296.29,272L286,245.62l-11.83-30.16-2.27-5.82-.58-1.18a13.35,13.35,0,0,1-1-5.08,12,12,0,0,1,0-1.35,13.19,13.19,0,0,1,18.26-10.79l52.69,27,10.39,5.31A91.11,91.11,0,0,1,367,235a92.45,92.45,0,0,1,29.79,61.87C396.91,299.06,397,301.22,397,303.4Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23a)'/%3e%3cpath%20d='M382.91,338.56a42.8,42.8,0,0,1-.72,7.82c-.14.67-.28,1.35-.44,2-.3,1.2-.62,2.36-1,3.53-.21.6-.42,1.2-.65,1.78s-.49,1.18-.74,1.78a38.1,38.1,0,0,1-2.69,5.08,42.22,42.22,0,0,1-4.5,6c-7.68,8.49-33.75,23.63-43.36,29.79l-21.33,13c-15.63,9.63-30.41,16.45-49,16.91-.88,0-1.74,0-2.6,0-1.2,0-2.39,0-3.57-.07a92.86,92.86,0,0,1-74.92-43.17,91.58,91.58,0,0,1-13.68-38.67,41.13,41.13,0,0,0,60,28.95l.14-.07,2.09-1.25,8.49-5,10.81-6.4v-.3l1.39-.83,96.71-57.29,7.44-4.41.74.25.09,0a38.31,38.31,0,0,1,6.22,2.14,41.45,41.45,0,0,1,12.36,8.28,40,40,0,0,1,4,4.43,37,37,0,0,1,2.85,4.17A41.64,41.64,0,0,1,382.91,338.56Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23b)'/%3e%3cpath%20d='M245.24,147.35l0,213.29L234.39,367l-8.5,5-2.09,1.27a.24.24,0,0,0-.13.06,41.13,41.13,0,0,1-60-28.94c-.16-.89-.28-1.81-.38-2.7-.13-1.68-.22-3.33-.25-5v-240a13.77,13.77,0,0,1,21.46-11.41l42.07,27.48a5.55,5.55,0,0,0,.73.51A41.14,41.14,0,0,1,245.24,147.35Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23c)'/%3e%3cg%20style='opacity:0.14900000393390656;isolation:isolate'%3e%3cg%20style='clip-path:url(%23d)'%3e%3cpath%20d='M382.91,338.56a42.8,42.8,0,0,1-.72,7.82c-.14.67-.28,1.35-.44,2-.3,1.2-.62,2.36-1,3.53-.21.6-.42,1.2-.65,1.78s-.49,1.18-.74,1.78a38.1,38.1,0,0,1-2.69,5.08,41.81,41.81,0,0,1-4.5,6c-7.68,8.49-33.75,23.63-43.36,29.79l-21.33,13c-15.63,9.63-30.41,16.45-49,16.91-.88,0-1.74,0-2.6,0-1.2,0-2.39,0-3.57-.07a92.86,92.86,0,0,1-74.92-43.17,91.58,91.58,0,0,1-13.68-38.67,41.13,41.13,0,0,0,60,28.95l.14-.07,2.09-1.25,8.49-5,10.81-6.4v-.3l1.39-.83,96.71-57.29,7.44-4.41.74.25.09,0a38.31,38.31,0,0,1,6.22,2.14,41.45,41.45,0,0,1,12.36,8.28,40,40,0,0,1,4,4.43,37,37,0,0,1,2.85,4.17A41.64,41.64,0,0,1,382.91,338.56Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23e)'/%3e%3c/g%3e%3c/g%3e%3cg%20style='opacity:0.09799999743700027;isolation:isolate'%3e%3cg%20style='clip-path:url(%23f)'%3e%3cpath%20d='M245.24,147.35l0,213.29L234.39,367l-8.5,5-2.09,1.27a.24.24,0,0,0-.13.06,41.13,41.13,0,0,1-60-28.94c-.16-.89-.28-1.81-.38-2.7-.13-1.68-.22-3.33-.25-5v-240a13.77,13.77,0,0,1,21.46-11.41l42.07,27.48a5.55,5.55,0,0,0,.73.51A41.14,41.14,0,0,1,245.24,147.35Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23g)'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",DefaultIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",children:[jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{id:"a5efbc52-c9a4-425f-9d94-50e000195659",x1:"9",y1:"18.967",x2:"9",y2:"3.398",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"#0078d4"}),jsxRuntimeExports.jsx("stop",{offset:"0.156",stopColor:"#1380da"}),jsxRuntimeExports.jsx("stop",{offset:"0.528",stopColor:"#3c91e5"}),jsxRuntimeExports.jsx("stop",{offset:"0.822",stopColor:"#559cec"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#5ea0ef"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"a110d41d-e4ca-48ee-9efe-328e60a20dcc",x1:"9",y1:"5.019",x2:"9",y2:"13.676",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0.22",stopColor:"#fff"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"bcf81335-a15c-4e8a-85c4-cb14c4ef74b0",x1:"8.991",y1:"2.883",x2:"8.991",y2:"11.32",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0.22",stopColor:"#fff"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]})]}),jsxRuntimeExports.jsx("g",{id:"b5d797c5-507f-4358-b61e-ca040c36ef52",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{d:"M.038,9.142,4.4,16.69a.285.285,0,0,0,.246.142h8.716a.285.285,0,0,0,.246-.142l4.358-7.548a.283.283,0,0,0,0-.284L13.6,1.31a.285.285,0,0,0-.246-.142H4.642A.285.285,0,0,0,4.4,1.31L.038,8.858A.283.283,0,0,0,.038,9.142Z",fill:"url(#a5efbc52-c9a4-425f-9d94-50e000195659)"}),jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{id:"a81cd782-d573-434f-a6f1-758ffbb6f88b",d:"M12.239,6.083l.048.042a.085.085,0,0,0,.115,0l.447-.374.808-1.334a.083.083,0,0,0,0-.1l-.138-.145a.085.085,0,0,0-.1,0l-1.273.863L11.78,5.5a.086.086,0,0,0,0,.109l.049.048L9.2,8.394l-.543-.6-.6.6a1.093,1.093,0,0,1-.26.911.945.945,0,0,1-.826.3L4.376,12.232a.163.163,0,0,0,0,.231l0,.005,1.255,1.3a.162.162,0,0,0,.23.011l.011-.011L8.4,11.14a1.037,1.037,0,0,1,.3-.869.964.964,0,0,1,.826-.3l.6-.6L9.6,8.78Z",opacity:"0.4",fill:"url(#a110d41d-e4ca-48ee-9efe-328e60a20dcc)"}),jsxRuntimeExports.jsx("path",{d:"M13.283,12.057l-.6-.645L8.648,7.278h0l-.2-.218a2.242,2.242,0,0,0-.525-2.2,2.067,2.067,0,0,0-1.865-.6.09.09,0,0,0-.065.11.088.088,0,0,0,.017.035l1.05,1.068a.091.091,0,0,1,0,.085L6.808,6.65a.084.084,0,0,1-.061.06l-1.074.3a.084.084,0,0,1-.084,0l-1.02-1.08a.084.084,0,0,0-.145.054,2.19,2.19,0,0,0,.6,1.919,2.035,2.035,0,0,0,2.034.543l.036.043.23.235h0l4.592,4.828a.954.954,0,0,0,1.34.048l.048-.048a1.017,1.017,0,0,0,.284-.724A1.117,1.117,0,0,0,13.283,12.057Z",fill:"url(#bcf81335-a15c-4e8a-85c4-cb14c4ef74b0)"})]})]})})]}),OpenAIIcon$1=()=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",width:"16px",height:"16px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"OpenAI icon"}),jsxRuntimeExports.jsx("path",{d:"M832 676l575 288v760l-575 288-575-288V964l575-288zm0 144l-368 184 368 183 368-183-368-184zm-447 825l383 191v-538l-383-191v538zm894 0v-538l-383 191v538l383-191zm577-733q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9zM704 496q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9zm1206-48q0 23-15 38t-39 16q-27 0-57 11t-58 28-54 37-45 40q-19 19-39 44t-38 54-28 59-11 57q0 23-15 38t-39 16q-23 0-38-15t-16-39q0-27-11-57t-28-58-37-54-40-45q-19-19-44-39t-54-38-59-28-57-11q-23 0-38-15t-16-39q0-23 15-38t39-16q27 0 57-11t58-28 54-37 45-40q19-19 39-44t38-54 28-59 11-57q0-23 15-38t39-16q23 0 38 15t16 39q0 27 11 57t28 58 37 54 40 45q19 19 44 39t54 38 59 28 57 11q23 0 38 15t16 39zm-438 212q38-65 92-119t120-93q-65-38-119-92t-93-120q-38 65-92 119t-120 93q65 38 119 92t93 120z"})]}),PromptIcon=()=>jsxRuntimeExports.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.5 6.50238C9.5 6.22624 9.72386 6.00238 10 6.00238C10.2761 6.00238 10.5 6.22624 10.5 6.50238V7.50391C10.5 7.78005 10.2761 8.00391 10 8.00391C9.72386 8.00391 9.5 7.78005 9.5 7.50391V6.50238ZM12.8506 7.44332C12.6553 7.24806 12.3388 7.24806 12.1435 7.44332L11.4353 8.15151C11.2401 8.34677 11.2401 8.66335 11.4353 8.85861C11.6306 9.05388 11.9472 9.05388 12.1424 8.85861L12.8506 8.15043C13.0459 7.95517 13.0459 7.63858 12.8506 7.44332ZM7.8521 7.44332C7.65684 7.24806 7.34026 7.24806 7.145 7.44332C6.94973 7.63858 6.94973 7.95517 7.145 8.15043L7.85318 8.85861C8.04844 9.05388 8.36503 9.05388 8.56029 8.85861C8.75555 8.66335 8.75555 8.34677 8.56029 8.15151L7.8521 7.44332ZM10 2C13.3137 2 16 4.59693 16 7.80041C16 9.47737 15.2546 11.0164 13.7961 12.3942C13.7324 12.4544 13.6831 12.5269 13.6512 12.6065L13.6251 12.6883L12.6891 16.6051C12.5048 17.3763 11.8236 17.935 11.0181 17.9947L10.8748 18H9.12546C8.30655 18 7.59 17.4839 7.34866 16.7385L7.31108 16.6047L6.37626 12.6886C6.34955 12.5766 6.29016 12.4745 6.20516 12.3942C4.8153 11.0819 4.07265 9.62354 4.00507 8.03903L4 7.80041L4.00321 7.60894C4.1077 4.49409 6.75257 2 10 2ZM7.955 15L8.27386 16.3344L8.30004 16.4305C8.39695 16.7298 8.67583 16.9517 9.0116 16.993L9.12546 17L10.8379 17.0007L10.9442 16.9974C11.2865 16.9721 11.5726 16.7609 11.6854 16.4718L11.7165 16.3727L12.045 15H7.955ZM10 3C7.36782 3 5.21188 4.95301 5.0151 7.41357L5.00307 7.62569L4.99977 7.77916L5.00416 7.99642C5.05977 9.30026 5.67758 10.5208 6.89167 11.6671C7.07995 11.8449 7.22191 12.0647 7.30572 12.3078L7.34894 12.4564L7.716 14H9.50024V9.49707C9.50024 9.22093 9.7241 8.99707 10.0002 8.99707C10.2764 8.99707 10.5002 9.22093 10.5002 9.49707V14H12.285L12.6722 12.3851L12.7231 12.2343C12.8091 12.0198 12.9409 11.8265 13.1094 11.6673C14.3825 10.4646 15 9.18054 15 7.80041C15 5.15693 12.7689 3 10 3Z",fill:"currentColor"})}),PythonIcon=()=>jsxRuntimeExports.jsxs("svg",{width:"16px",height:"16px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0164 2C10.8193 2 9.03825 3.72453 9.03825 5.85185V8.51852H15.9235V9.25926H5.97814C3.78107 9.25926 2 10.9838 2 13.1111L2 18.8889C2 21.0162 3.78107 22.7407 5.97814 22.7407H8.27322V19.4815C8.27322 17.3542 10.0543 15.6296 12.2514 15.6296H19.5956C21.4547 15.6296 22.9617 14.1704 22.9617 12.3704V5.85185C22.9617 3.72453 21.1807 2 18.9836 2H13.0164ZM12.0984 6.74074C12.8589 6.74074 13.4754 6.14378 13.4754 5.40741C13.4754 4.67103 12.8589 4.07407 12.0984 4.07407C11.3378 4.07407 10.7213 4.67103 10.7213 5.40741C10.7213 6.14378 11.3378 6.74074 12.0984 6.74074Z",fill:"#327EBD"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9834 30C21.1805 30 22.9616 28.2755 22.9616 26.1482V23.4815L16.0763 23.4815L16.0763 22.7408L26.0217 22.7408C28.2188 22.7408 29.9998 21.0162 29.9998 18.8889V13.1111C29.9998 10.9838 28.2188 9.25928 26.0217 9.25928L23.7266 9.25928V12.5185C23.7266 14.6459 21.9455 16.3704 19.7485 16.3704L12.4042 16.3704C10.5451 16.3704 9.03809 17.8296 9.03809 19.6296L9.03809 26.1482C9.03809 28.2755 10.8192 30 13.0162 30H18.9834ZM19.9015 25.2593C19.1409 25.2593 18.5244 25.8562 18.5244 26.5926C18.5244 27.329 19.1409 27.9259 19.9015 27.9259C20.662 27.9259 21.2785 27.329 21.2785 26.5926C21.2785 25.8562 20.662 25.2593 19.9015 25.2593Z",fill:"#FFDA4B"})]}),TypeScriptIcon="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20aria-label='TypeScript'%20role='img'%20viewBox='0%200%20512%20512'%3e%3crect%20width='512'%20height='512'%20rx='15%25'%20fill='%233178c6'/%3e%3cpath%20fill='%23ffffff'%20d='m233%20284h64v-41H118v41h64v183h51zm84%20173c8.1%204.2%2018%207.3%2029%209.4s23%203.1%2035%203.1c12%200%2023-1.1%2034-3.4c11-2.3%2020-6.1%2028-11c8.1-5.3%2015-12%2019-21s7.1-19%207.1-32c0-9.1-1.4-17-4.1-24s-6.6-13-12-18c-5.1-5.3-11-10-18-14s-15-8.2-24-12c-6.6-2.7-12-5.3-18-7.9c-5.2-2.6-9.7-5.2-13-7.8c-3.7-2.7-6.5-5.5-8.5-8.4c-2-3-3-6.3-3-10c0-3.4.89-6.5%202.7-9.3s4.3-5.1%207.5-7.1c3.2-2%207.2-3.5%2012-4.6c4.7-1.1%209.9-1.6%2016-1.6c4.2%200%208.6.31%2013%20.94c4.6.63%209.3%201.6%2014%202.9c4.7%201.3%209.3%202.9%2014%204.9c4.4%202%208.5%204.3%2012%206.9v-47c-7.6-2.9-16-5.1-25-6.5s-19-2.1-31-2.1c-12%200-23%201.3-34%203.8s-20%206.5-28%2012c-8.1%205.4-14%2012-19%2021c-4.7%208.4-7%2018-7%2030c0%2015%204.3%2028%2013%2038c8.6%2011%2022%2019%2039%2027c6.9%202.8%2013%205.6%2019%208.3s11%205.5%2015%208.4c4.3%202.9%207.7%206.1%2010%209.5c2.5%203.4%203.8%207.4%203.8%2012c0%203.2-.78%206.2-2.3%209s-3.9%205.2-7.1%207.2s-7.1%203.6-12%204.8c-4.7%201.1-10%201.7-17%201.7c-11%200-22-1.9-32-5.7c-11-3.8-21-9.5-28.1-15.44z'/%3e%3c/svg%3e",VectorSearchIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",role:"img",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("linearGradient",{id:"fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2",x1:"-6428.21",y1:"9646.124",x2:"-6428.21",y2:"9617.899",gradientTransform:"matrix(0.5, 0, 0, -0.5, 3224.856, 4823.856)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"#5ea0ef"}),jsxRuntimeExports.jsx("stop",{offset:"0.178",stopColor:"#589eed"}),jsxRuntimeExports.jsx("stop",{offset:"0.406",stopColor:"#4897e9"}),jsxRuntimeExports.jsx("stop",{offset:"0.662",stopColor:"#2e8ce1"}),jsxRuntimeExports.jsx("stop",{offset:"0.936",stopColor:"#0a7cd7"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#0078d4"})]})}),jsxRuntimeExports.jsx("g",{id:"a05a9809-540f-4ec8-9a73-07896b5e7f5c",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{d:"M8.438,10.379h4.234v4.234H8.438ZM3.5,4.734H7.732V.5H4.086a.588.588,0,0,0-.588.588Zm.588,9.879H7.732V10.379H3.5v3.646A.588.588,0,0,0,4.086,14.613ZM3.5,9.674H7.732V5.44H3.5Zm9.88,4.939h3.646a.588.588,0,0,0,.588-.588V10.379H13.378ZM8.438,9.674h4.234V5.44H8.438Zm4.94,0h4.234V5.44H13.378Zm0-9.174V4.734h4.234V1.088A.588.588,0,0,0,17.024.5ZM8.438,4.734h4.234V.5H8.438Z",fill:"url(#fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2)"}),jsxRuntimeExports.jsx("rect",{x:"-0.212",y:"14.751",width:"5.457",height:"1.243",rx:"0.581",transform:"translate(-10.133 6.282) rotate(-45)",fill:"#198ab3"}),jsxRuntimeExports.jsx("circle",{cx:"5.959",cy:"11.709",r:"3.744",fill:"#50e6ff"}),jsxRuntimeExports.jsx("circle",{cx:"5.952",cy:"11.642",r:"2.94",fill:"#fff"})]})})]}),DEFAULT_SIZE$1=16,toolsIcons={PromptFlowToolAzureContentSafety:jsxRuntimeExports.jsx(AzureContentSafetyIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolSerpAPI:jsxRuntimeExports.jsx(DefaultIcon,{}),PromptFlowToolBing:jsxRuntimeExports.jsx(BingLogoIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolAzureContentModerator:jsxRuntimeExports.jsx(AzureContentSafetyIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolVectorIndexLookupByText:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolFaissIndexLookup:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolVectorDBLookup:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolVectorSearch:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolLlm:jsxRuntimeExports.jsx(OpenAIIcon$1,{}),PromptFlowToolPython:jsxRuntimeExports.jsx(PythonIcon,{}),PromptFlowToolTypeScript:jsxRuntimeExports.jsx(TypeScriptIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolPrompt:jsxRuntimeExports.jsx(PromptIcon,{}),PromptFlowToolDefault:jsxRuntimeExports.jsx(DefaultIcon,{})};registerIcons({icons:{...toolsIcons}});var getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var byteToHex$1=[];for(var i$7=0;i$7<256;++i$7)byteToHex$1[i$7]=(i$7+256).toString(16).substr(1);function bytesToUuid(eo,to){var no=to||0,io=byteToHex$1;return[io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]]].join("")}function v4(eo,to,no){var io=to&&no||0;typeof eo=="string"&&(to=eo==="binary"?new Array(16):null,eo=null),eo=eo||{};var so=eo.random||(eo.rng||rng)();if(so[6]=so[6]&15|64,so[8]=so[8]&63|128,to)for(var ao=0;ao<16;++ao)to[io+ao]=so[ao];return to||bytesToUuid(so)}var toposort$1={exports:{}};toposort$1.exports=function(eo){return toposort(uniqueNodes(eo),eo)};toposort$1.exports.array=toposort;function toposort(eo,to){for(var no=eo.length,io=new Array(no),so={},ao=no;ao--;)so[ao]||lo(eo[ao],ao,[]);return io;function lo(uo,ho,go){if(go.indexOf(uo)>=0){var mo;try{mo=", node was:"+JSON.stringify(uo)}catch{mo=""}throw new Error("Cyclic dependency"+mo)}if(!~eo.indexOf(uo))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(uo));if(!so[ho]){so[ho]=!0;var yo=to.filter(function(ko){return ko[0]===uo});if(ho=yo.length){var So=go.concat(uo);do{var _o=yo[--ho][1];lo(_o,eo.indexOf(_o),So)}while(ho)}io[--no]=uo}}}function uniqueNodes(eo){for(var to=[],no=0,io=eo.length;no1?no-1:0),so=1;so2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase$1;setPrototypeOf$1&&setPrototypeOf$1(eo,null);let io=to.length;for(;io--;){let so=to[io];if(typeof so=="string"){const ao=no(so);ao!==so&&(isFrozen$1(to)||(to[io]=ao),so=ao)}eo[so]=!0}return eo}function cleanArray$1(eo){for(let to=0;to/gm),TMPLIT_EXPR$1=seal$1(/\${[\w\W]*}/gm),DATA_ATTR$1=seal$1(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR$1=seal$1(/^aria-[\-\w]+$/),IS_ALLOWED_URI$1=seal$1(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA$1=seal$1(/^(?:\w+script|data):/i),ATTR_WHITESPACE$1=seal$1(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME$1=seal$1(/^html$/i);var EXPRESSIONS$1=Object.freeze({__proto__:null,MUSTACHE_EXPR:MUSTACHE_EXPR$1,ERB_EXPR:ERB_EXPR$1,TMPLIT_EXPR:TMPLIT_EXPR$1,DATA_ATTR:DATA_ATTR$1,ARIA_ATTR:ARIA_ATTR$1,IS_ALLOWED_URI:IS_ALLOWED_URI$1,IS_SCRIPT_OR_DATA:IS_SCRIPT_OR_DATA$1,ATTR_WHITESPACE:ATTR_WHITESPACE$1,DOCTYPE_NAME:DOCTYPE_NAME$1});const getGlobal$1=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy$1=function(to,no){if(typeof to!="object"||typeof to.createPolicy!="function")return null;let io=null;const so="data-tt-policy-suffix";no&&no.hasAttribute(so)&&(io=no.getAttribute(so));const ao="dompurify"+(io?"#"+io:"");try{return to.createPolicy(ao,{createHTML(lo){return lo},createScriptURL(lo){return lo}})}catch{return console.warn("TrustedTypes policy "+ao+" could not be created."),null}};function createDOMPurify$1(){let eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal$1();const to=$l=>createDOMPurify$1($l);if(to.version="3.0.9",to.removed=[],!eo||!eo.document||eo.document.nodeType!==9)return to.isSupported=!1,to;let{document:no}=eo;const io=no,so=io.currentScript,{DocumentFragment:ao,HTMLTemplateElement:lo,Node:uo,Element:ho,NodeFilter:go,NamedNodeMap:mo=eo.NamedNodeMap||eo.MozNamedAttrMap,HTMLFormElement:yo,DOMParser:So,trustedTypes:_o}=eo,ko=ho.prototype,Co=lookupGetter$1(ko,"cloneNode"),$o=lookupGetter$1(ko,"nextSibling"),Ro=lookupGetter$1(ko,"childNodes"),Oo=lookupGetter$1(ko,"parentNode");if(typeof lo=="function"){const $l=no.createElement("template");$l.content&&$l.content.ownerDocument&&(no=$l.content.ownerDocument)}let No,Mo="";const{implementation:Bo,createNodeIterator:Po,createDocumentFragment:Lo,getElementsByTagName:Go}=no,{importNode:Do}=io;let Uo={};to.isSupported=typeof entries$1=="function"&&typeof Oo=="function"&&Bo&&Bo.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ho,ERB_EXPR:Yo,TMPLIT_EXPR:qo,DATA_ATTR:Jo,ARIA_ATTR:ps,IS_SCRIPT_OR_DATA:Qo,ATTR_WHITESPACE:hs}=EXPRESSIONS$1;let{IS_ALLOWED_URI:gs}=EXPRESSIONS$1,ys=null;const vs=addToSet$1({},[...html$1$1,...svg$1$1,...svgFilters$1,...mathMl$1$1,...text$5]);let ks=null;const Os=addToSet$1({},[...html$3,...svg$4,...mathMl$2,...xml$1]);let Ts=Object.seal(create$6(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Xs=null,Ws=null,Ps=!0,qs=!0,ga=!1,Fs=!0,Js=!1,Vs=!1,El=!1,yl=!1,Gl=!1,Qs=!1,du=!1,Ol=!0,Fu=!1;const ju="user-content-";let F1=!0,y1=!1,r1={},$u=null;const Kl=addToSet$1({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Is=null;const Ks=addToSet$1({},["audio","video","img","source","image","track"]);let Bs=null;const Ds=addToSet$1({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zs="http://www.w3.org/1998/Math/MathML",Cl="http://www.w3.org/2000/svg",ba="http://www.w3.org/1999/xhtml";let fu=ba,Lu=!1,e1=null;const Gu=addToSet$1({},[Zs,Cl,ba],stringToString$1);let w1=null;const Zu=["application/xhtml+xml","text/html"],L1="text/html";let K1=null,yp=null;const wp=no.createElement("form"),j0=function(Us){return Us instanceof RegExp||Us instanceof Function},h0=function(){let Us=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(yp&&yp===Us)){if((!Us||typeof Us!="object")&&(Us={}),Us=clone$4(Us),w1=Zu.indexOf(Us.PARSER_MEDIA_TYPE)===-1?L1:Us.PARSER_MEDIA_TYPE,K1=w1==="application/xhtml+xml"?stringToString$1:stringToLowerCase$1,ys=objectHasOwnProperty$1(Us,"ALLOWED_TAGS")?addToSet$1({},Us.ALLOWED_TAGS,K1):vs,ks=objectHasOwnProperty$1(Us,"ALLOWED_ATTR")?addToSet$1({},Us.ALLOWED_ATTR,K1):Os,e1=objectHasOwnProperty$1(Us,"ALLOWED_NAMESPACES")?addToSet$1({},Us.ALLOWED_NAMESPACES,stringToString$1):Gu,Bs=objectHasOwnProperty$1(Us,"ADD_URI_SAFE_ATTR")?addToSet$1(clone$4(Ds),Us.ADD_URI_SAFE_ATTR,K1):Ds,Is=objectHasOwnProperty$1(Us,"ADD_DATA_URI_TAGS")?addToSet$1(clone$4(Ks),Us.ADD_DATA_URI_TAGS,K1):Ks,$u=objectHasOwnProperty$1(Us,"FORBID_CONTENTS")?addToSet$1({},Us.FORBID_CONTENTS,K1):Kl,Xs=objectHasOwnProperty$1(Us,"FORBID_TAGS")?addToSet$1({},Us.FORBID_TAGS,K1):{},Ws=objectHasOwnProperty$1(Us,"FORBID_ATTR")?addToSet$1({},Us.FORBID_ATTR,K1):{},r1=objectHasOwnProperty$1(Us,"USE_PROFILES")?Us.USE_PROFILES:!1,Ps=Us.ALLOW_ARIA_ATTR!==!1,qs=Us.ALLOW_DATA_ATTR!==!1,ga=Us.ALLOW_UNKNOWN_PROTOCOLS||!1,Fs=Us.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Js=Us.SAFE_FOR_TEMPLATES||!1,Vs=Us.WHOLE_DOCUMENT||!1,Gl=Us.RETURN_DOM||!1,Qs=Us.RETURN_DOM_FRAGMENT||!1,du=Us.RETURN_TRUSTED_TYPE||!1,yl=Us.FORCE_BODY||!1,Ol=Us.SANITIZE_DOM!==!1,Fu=Us.SANITIZE_NAMED_PROPS||!1,F1=Us.KEEP_CONTENT!==!1,y1=Us.IN_PLACE||!1,gs=Us.ALLOWED_URI_REGEXP||IS_ALLOWED_URI$1,fu=Us.NAMESPACE||ba,Ts=Us.CUSTOM_ELEMENT_HANDLING||{},Us.CUSTOM_ELEMENT_HANDLING&&j0(Us.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ts.tagNameCheck=Us.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Us.CUSTOM_ELEMENT_HANDLING&&j0(Us.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ts.attributeNameCheck=Us.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Us.CUSTOM_ELEMENT_HANDLING&&typeof Us.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ts.allowCustomizedBuiltInElements=Us.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Js&&(qs=!1),Qs&&(Gl=!0),r1&&(ys=addToSet$1({},text$5),ks=[],r1.html===!0&&(addToSet$1(ys,html$1$1),addToSet$1(ks,html$3)),r1.svg===!0&&(addToSet$1(ys,svg$1$1),addToSet$1(ks,svg$4),addToSet$1(ks,xml$1)),r1.svgFilters===!0&&(addToSet$1(ys,svgFilters$1),addToSet$1(ks,svg$4),addToSet$1(ks,xml$1)),r1.mathMl===!0&&(addToSet$1(ys,mathMl$1$1),addToSet$1(ks,mathMl$2),addToSet$1(ks,xml$1))),Us.ADD_TAGS&&(ys===vs&&(ys=clone$4(ys)),addToSet$1(ys,Us.ADD_TAGS,K1)),Us.ADD_ATTR&&(ks===Os&&(ks=clone$4(ks)),addToSet$1(ks,Us.ADD_ATTR,K1)),Us.ADD_URI_SAFE_ATTR&&addToSet$1(Bs,Us.ADD_URI_SAFE_ATTR,K1),Us.FORBID_CONTENTS&&($u===Kl&&($u=clone$4($u)),addToSet$1($u,Us.FORBID_CONTENTS,K1)),F1&&(ys["#text"]=!0),Vs&&addToSet$1(ys,["html","head","body"]),ys.table&&(addToSet$1(ys,["tbody"]),delete Xs.tbody),Us.TRUSTED_TYPES_POLICY){if(typeof Us.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate$1('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Us.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate$1('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');No=Us.TRUSTED_TYPES_POLICY,Mo=No.createHTML("")}else No===void 0&&(No=_createTrustedTypesPolicy$1(_o,so)),No!==null&&typeof Mo=="string"&&(Mo=No.createHTML(""));freeze$1&&freeze$1(Us),yp=Us}},cp=addToSet$1({},["mi","mo","mn","ms","mtext"]),k0=addToSet$1({},["foreignobject","desc","title","annotation-xml"]),ap=addToSet$1({},["title","style","font","a","script"]),x0=addToSet$1({},[...svg$1$1,...svgFilters$1,...svgDisallowed$1]),b0=addToSet$1({},[...mathMl$1$1,...mathMlDisallowed$1]),P1=function(Us){let Rl=Oo(Us);(!Rl||!Rl.tagName)&&(Rl={namespaceURI:fu,tagName:"template"});const Sl=stringToLowerCase$1(Us.tagName),eu=stringToLowerCase$1(Rl.tagName);return e1[Us.namespaceURI]?Us.namespaceURI===Cl?Rl.namespaceURI===ba?Sl==="svg":Rl.namespaceURI===Zs?Sl==="svg"&&(eu==="annotation-xml"||cp[eu]):!!x0[Sl]:Us.namespaceURI===Zs?Rl.namespaceURI===ba?Sl==="math":Rl.namespaceURI===Cl?Sl==="math"&&k0[eu]:!!b0[Sl]:Us.namespaceURI===ba?Rl.namespaceURI===Cl&&!k0[eu]||Rl.namespaceURI===Zs&&!cp[eu]?!1:!b0[Sl]&&(ap[Sl]||!x0[Sl]):!!(w1==="application/xhtml+xml"&&e1[Us.namespaceURI]):!1},c1=function(Us){arrayPush$2(to.removed,{element:Us});try{Us.parentNode.removeChild(Us)}catch{Us.remove()}},V0=function(Us,Rl){try{arrayPush$2(to.removed,{attribute:Rl.getAttributeNode(Us),from:Rl})}catch{arrayPush$2(to.removed,{attribute:null,from:Rl})}if(Rl.removeAttribute(Us),Us==="is"&&!ks[Us])if(Gl||Qs)try{c1(Rl)}catch{}else try{Rl.setAttribute(Us,"")}catch{}},P0=function(Us){let Rl=null,Sl=null;if(yl)Us=""+Us;else{const zu=stringMatch$1(Us,/^[\r\n\t ]+/);Sl=zu&&zu[0]}w1==="application/xhtml+xml"&&fu===ba&&(Us=''+Us+"");const eu=No?No.createHTML(Us):Us;if(fu===ba)try{Rl=new So().parseFromString(eu,w1)}catch{}if(!Rl||!Rl.documentElement){Rl=Bo.createDocument(fu,"template",null);try{Rl.documentElement.innerHTML=Lu?Mo:eu}catch{}}const _c=Rl.body||Rl.documentElement;return Us&&Sl&&_c.insertBefore(no.createTextNode(Sl),_c.childNodes[0]||null),fu===ba?Go.call(Rl,Vs?"html":"body")[0]:Vs?Rl.documentElement:_c},up=function(Us){return Po.call(Us.ownerDocument||Us,Us,go.SHOW_ELEMENT|go.SHOW_COMMENT|go.SHOW_TEXT,null)},Lp=function(Us){return Us instanceof yo&&(typeof Us.nodeName!="string"||typeof Us.textContent!="string"||typeof Us.removeChild!="function"||!(Us.attributes instanceof mo)||typeof Us.removeAttribute!="function"||typeof Us.setAttribute!="function"||typeof Us.namespaceURI!="string"||typeof Us.insertBefore!="function"||typeof Us.hasChildNodes!="function")},Mv=function(Us){return typeof uo=="function"&&Us instanceof uo},$v=function(Us,Rl,Sl){Uo[Us]&&arrayForEach$1(Uo[Us],eu=>{eu.call(to,Rl,Sl,yp)})},Gv=function(Us){let Rl=null;if($v("beforeSanitizeElements",Us,null),Lp(Us))return c1(Us),!0;const Sl=K1(Us.nodeName);if($v("uponSanitizeElement",Us,{tagName:Sl,allowedTags:ys}),Us.hasChildNodes()&&!Mv(Us.firstElementChild)&®ExpTest$1(/<[/\w]/g,Us.innerHTML)&®ExpTest$1(/<[/\w]/g,Us.textContent))return c1(Us),!0;if(!ys[Sl]||Xs[Sl]){if(!Xs[Sl]&&Ll(Sl)&&(Ts.tagNameCheck instanceof RegExp&®ExpTest$1(Ts.tagNameCheck,Sl)||Ts.tagNameCheck instanceof Function&&Ts.tagNameCheck(Sl)))return!1;if(F1&&!$u[Sl]){const eu=Oo(Us)||Us.parentNode,_c=Ro(Us)||Us.childNodes;if(_c&&eu){const zu=_c.length;for(let N1=zu-1;N1>=0;--N1)eu.insertBefore(Co(_c[N1],!0),$o(Us))}}return c1(Us),!0}return Us instanceof ho&&!P1(Us)||(Sl==="noscript"||Sl==="noembed"||Sl==="noframes")&®ExpTest$1(/<\/no(script|embed|frames)/i,Us.innerHTML)?(c1(Us),!0):(Js&&Us.nodeType===3&&(Rl=Us.textContent,arrayForEach$1([Ho,Yo,qo],eu=>{Rl=stringReplace$1(Rl,eu," ")}),Us.textContent!==Rl&&(arrayPush$2(to.removed,{element:Us.cloneNode()}),Us.textContent=Rl)),$v("afterSanitizeElements",Us,null),!1)},C1=function(Us,Rl,Sl){if(Ol&&(Rl==="id"||Rl==="name")&&(Sl in no||Sl in wp))return!1;if(!(qs&&!Ws[Rl]&®ExpTest$1(Jo,Rl))){if(!(Ps&®ExpTest$1(ps,Rl))){if(!ks[Rl]||Ws[Rl]){if(!(Ll(Us)&&(Ts.tagNameCheck instanceof RegExp&®ExpTest$1(Ts.tagNameCheck,Us)||Ts.tagNameCheck instanceof Function&&Ts.tagNameCheck(Us))&&(Ts.attributeNameCheck instanceof RegExp&®ExpTest$1(Ts.attributeNameCheck,Rl)||Ts.attributeNameCheck instanceof Function&&Ts.attributeNameCheck(Rl))||Rl==="is"&&Ts.allowCustomizedBuiltInElements&&(Ts.tagNameCheck instanceof RegExp&®ExpTest$1(Ts.tagNameCheck,Sl)||Ts.tagNameCheck instanceof Function&&Ts.tagNameCheck(Sl))))return!1}else if(!Bs[Rl]){if(!regExpTest$1(gs,stringReplace$1(Sl,hs,""))){if(!((Rl==="src"||Rl==="xlink:href"||Rl==="href")&&Us!=="script"&&stringIndexOf$1(Sl,"data:")===0&&Is[Us])){if(!(ga&&!regExpTest$1(Qo,stringReplace$1(Sl,hs,"")))){if(Sl)return!1}}}}}}return!0},Ll=function(Us){return Us!=="annotation-xml"&&Us.indexOf("-")>0},Ul=function(Us){$v("beforeSanitizeAttributes",Us,null);const{attributes:Rl}=Us;if(!Rl)return;const Sl={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ks};let eu=Rl.length;for(;eu--;){const _c=Rl[eu],{name:zu,namespaceURI:N1,value:K0}=_c,J0=K1(zu);let S1=zu==="value"?K0:stringTrim$1(K0);if(Sl.attrName=J0,Sl.attrValue=S1,Sl.keepAttr=!0,Sl.forceKeepAttr=void 0,$v("uponSanitizeAttribute",Us,Sl),S1=Sl.attrValue,Sl.forceKeepAttr||(V0(zu,Us),!Sl.keepAttr))continue;if(!Fs&®ExpTest$1(/\/>/i,S1)){V0(zu,Us);continue}Js&&arrayForEach$1([Ho,Yo,qo],r0=>{S1=stringReplace$1(S1,r0," ")});const O1=K1(Us.nodeName);if(C1(O1,J0,S1)){if(Fu&&(J0==="id"||J0==="name")&&(V0(zu,Us),S1=ju+S1),No&&typeof _o=="object"&&typeof _o.getAttributeType=="function"&&!N1)switch(_o.getAttributeType(O1,J0)){case"TrustedHTML":{S1=No.createHTML(S1);break}case"TrustedScriptURL":{S1=No.createScriptURL(S1);break}}try{N1?Us.setAttributeNS(N1,zu,S1):Us.setAttribute(zu,S1),arrayPop$1(to.removed)}catch{}}}$v("afterSanitizeAttributes",Us,null)},_l=function $l(Us){let Rl=null;const Sl=up(Us);for($v("beforeSanitizeShadowDOM",Us,null);Rl=Sl.nextNode();)$v("uponSanitizeShadowNode",Rl,null),!Gv(Rl)&&(Rl.content instanceof ao&&$l(Rl.content),Ul(Rl));$v("afterSanitizeShadowDOM",Us,null)};return to.sanitize=function($l){let Us=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rl=null,Sl=null,eu=null,_c=null;if(Lu=!$l,Lu&&($l=""),typeof $l!="string"&&!Mv($l))if(typeof $l.toString=="function"){if($l=$l.toString(),typeof $l!="string")throw typeErrorCreate$1("dirty is not a string, aborting")}else throw typeErrorCreate$1("toString is not a function");if(!to.isSupported)return $l;if(El||h0(Us),to.removed=[],typeof $l=="string"&&(y1=!1),y1){if($l.nodeName){const K0=K1($l.nodeName);if(!ys[K0]||Xs[K0])throw typeErrorCreate$1("root node is forbidden and cannot be sanitized in-place")}}else if($l instanceof uo)Rl=P0(""),Sl=Rl.ownerDocument.importNode($l,!0),Sl.nodeType===1&&Sl.nodeName==="BODY"||Sl.nodeName==="HTML"?Rl=Sl:Rl.appendChild(Sl);else{if(!Gl&&!Js&&!Vs&&$l.indexOf("<")===-1)return No&&du?No.createHTML($l):$l;if(Rl=P0($l),!Rl)return Gl?null:du?Mo:""}Rl&&yl&&c1(Rl.firstChild);const zu=up(y1?$l:Rl);for(;eu=zu.nextNode();)Gv(eu)||(eu.content instanceof ao&&_l(eu.content),Ul(eu));if(y1)return $l;if(Gl){if(Qs)for(_c=Lo.call(Rl.ownerDocument);Rl.firstChild;)_c.appendChild(Rl.firstChild);else _c=Rl;return(ks.shadowroot||ks.shadowrootmode)&&(_c=Do.call(io,_c,!0)),_c}let N1=Vs?Rl.outerHTML:Rl.innerHTML;return Vs&&ys["!doctype"]&&Rl.ownerDocument&&Rl.ownerDocument.doctype&&Rl.ownerDocument.doctype.name&®ExpTest$1(DOCTYPE_NAME$1,Rl.ownerDocument.doctype.name)&&(N1=" +`);var hs=0,gs=!1;this.parse=function(ys,vs,ks){if(typeof ys!="string")throw new Error("Input must be a string");var Os=ys.length,Ts=Uo.length,Xs=Ho.length,Ws=Yo.length,Ps=Lo(qo),qs=[],ga=[],Fs=[],Js=hs=0;if(!ys)return fu();if(Go.header&&!vs){var Vs=ys.split(Ho)[0].split(Uo),El=[],yl={},Gl=!1;for(var Qs in Vs){var du=Vs[Qs];Lo(Go.transformHeader)&&(du=Go.transformHeader(du,Qs));var Ol=du,Fu=yl[du]||0;for(0=Jo)return fu(!0)}else for(Is=hs,hs++;;){if((Is=ys.indexOf(Do,Is+1))===-1)return ks||ga.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:qs.length,index:hs}),Cl();if(Is===Os-1)return Cl(ys.substring(hs,Is).replace(Kl,Do));if(Do!==Qo||ys[Is+1]!==Qo){if(Do===Qo||Is===0||ys[Is-1]!==Qo){r1!==-1&&r1=Jo)return fu(!0);break}ga.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:qs.length,index:hs}),Is++}}else Is++}return Cl();function Ds(e1){qs.push(e1),Js=hs}function Zs(e1){var Gu=0;if(e1!==-1){var w1=ys.substring(Is+1,e1);w1&&w1.trim()===""&&(Gu=w1.length)}return Gu}function Cl(e1){return ks||(e1===void 0&&(e1=ys.substring(hs)),Fs.push(e1),hs=Os,Ds(Fs),Ps&&Lu()),fu()}function ba(e1){hs=e1,Ds(Fs),Fs=[],$u=ys.indexOf(Ho,hs)}function fu(e1){return{data:qs,errors:ga,meta:{delimiter:Uo,linebreak:Ho,aborted:gs,truncated:!!e1,cursor:Js+(vs||0)}}}function Lu(){qo(fu()),qs=[],ga=[]}},this.abort=function(){gs=!0},this.getCharIndex=function(){return hs}}function Oo(Go){var Do=Go.data,Uo=lo[Do.workerId],Ho=!1;if(Do.error)Uo.userError(Do.error,Do.file);else if(Do.results&&Do.results.data){var Yo={abort:function(){Ho=!0,No(Do.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:Mo,resume:Mo};if(Lo(Uo.userStep)){for(var qo=0;qo{const io={};return Object.keys(eo).forEach(so=>{const ao=eo[so];so===to?io[no]=ao:io[so]=ao}),io},getDefaultNodeVariant=eo=>{const{defaultVariantId:to=BASELINE_VARIANT_ID,variants:no={}}=eo,io=no[to];return io==null?void 0:io.node},getDefaultNodeList=(eo,to)=>{const no=[];return eo.forEach(io=>{const so=to.get(io);if(!so)return;const ao=getDefaultNodeVariant(so);ao&&no.push(ao)}),no},getFlowSnapshotNodeList=(eo,to,no)=>{const io=[];return eo.forEach(so=>{if(no.includes(so)){io.push({name:so,use_variants:!0});return}const ao=to[so];if(!ao)return;const lo={inputs:{},...getDefaultNodeVariant(ao)};lo&&io.push(lo)}),io};ToolType.llm;ToolType.prompt;ValueType.string,ToolType.python;ValueType.string,ToolType.typescript;const getTokensUsageByRow=eo=>{var to,no,io,so,ao,lo;return eo.children&&eo.children.length>0?eo.children.reduce((uo,ho)=>{const go=getTokensUsageByRow(ho);return{totalTokens:uo.totalTokens+go.totalTokens,promptTokens:uo.promptTokens+go.promptTokens,completionTokens:uo.completionTokens+go.completionTokens}},{totalTokens:0,promptTokens:0,completionTokens:0}):{totalTokens:((no=(to=eo.output)==null?void 0:to.usage)==null?void 0:no.total_tokens)??0,promptTokens:((so=(io=eo.output)==null?void 0:io.usage)==null?void 0:so.prompt_tokens)??0,completionTokens:((lo=(ao=eo.output)==null?void 0:ao.usage)==null?void 0:lo.completion_tokens)??0}},numberToDigitsString=eo=>eo.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),timePDTFormatter=eo=>{const to=new Date(eo),no=getUTCTimezoneOffset();return`${to.getFullYear()}-${to.getMonth()+1}-${to.getDate()} ${to.getHours()}:${to.getMinutes()}:${to.getSeconds()}:${to.getMilliseconds()} (${no})`},getUTCTimezoneOffset=()=>{const eo=new Date().getTimezoneOffset(),to=Math.abs(eo);return`UTC${(eo<0?"+":"-")+`00${Math.floor(to/60)}`.slice(-2)}:${`00${to%60}`.slice(-2)}`},hasOwn=(eo,to)=>Object.prototype.hasOwnProperty.call(eo,to),resolveTool=(eo,to,no,io)=>{var so,ao,lo;if(((so=eo==null?void 0:eo.source)==null?void 0:so.type)==="code")return to;if(((ao=eo==null?void 0:eo.source)==null?void 0:ao.type)==="package_with_prompt"){const uo=(lo=eo==null?void 0:eo.source)==null?void 0:lo.path,ho=io(uo??"");return no?{...no,inputs:{...ho==null?void 0:ho.inputs,...addPositionField(no==null?void 0:no.inputs,"parameter")},code:ho==null?void 0:ho.code}:void 0}return no},addPositionField=(eo,to)=>{if(!eo)return eo;const no={...eo};return Object.keys(no).forEach(io=>{no[io]={...no[io],position:to}}),no},keyWords=["and","as","assert","break","class","continue","def","del","elif","else","except","False","finally","for","from","global","if","import","in","is","lambda","None","nonlocal","not","or","pass","raise","return","True","try","while","with","yield"],keyFunction=["abs","all","any","ascii","bin","bool","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","str","sum","super","tuple","type","vars","zip"],flowWords=["input","inputs","output","outputs","flow","flows"],checkNodeNameValid=eo=>keyWords.some(to=>to===eo)||keyFunction.some(to=>to===eo)||flowWords.some(to=>to===eo)?!1:/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(eo),getNodesThatMoreThanOneVariant=(eo={})=>{const to=[];return Object.keys(eo).forEach(no=>{const io=eo[no],{variants:so={},defaultVariantId:ao,default_variant_id:lo}=io,uo=Object.keys(so).length;uo>1&&to.push({nodeName:no,variantsCount:uo,defaultVariantId:ao??lo??BASELINE_VARIANT_ID,variants:so})}),to},getVariantNodes=(eo={})=>{const to={};return Object.keys(eo).forEach(no=>{const io=eo[no],{variants:so={}}=io;if(Object.keys(so).length>1){const lo=lodashExports.cloneDeep(io);Object.entries((lo==null?void 0:lo.variants)??{}).forEach(([ho,go])=>{go.node&&delete go.node.name});const uo=lo.defaultVariantId;delete lo.defaultVariantId,to[no]={default_variant_id:uo,...lo}}}),Object.keys(to).length>0?to:void 0},revValueRegex=/^\$\{(\S+)\}$/,getRefValueFromRaw=eo=>{var to,no;return(no=(to=`${eo??""}`)==null?void 0:to.match(revValueRegex))==null?void 0:no[1]},generateRandomStrings=eo=>{const to="abcdefghijklmnopqrstuvwxyz0123456789";let no="";for(let io=0;iogenerateRandomStrings(8),getRandomOutputDefinitionId=getRandomInputDefinitionId,intNumberRegExp=/^[+-]?\d+$/,doubleNumberRegExp=/^[+-]?\d+(\.\d+)?$/,isBool=eo=>eo.toLowerCase()==="true"||eo.toLowerCase()==="false",isNumber=eo=>doubleNumberRegExp.test(eo.trim())?eo===eo.trim()&&eo.length>0&&!Number.isNaN(Number(eo)):!1,isInt=eo=>intNumberRegExp.test(eo.trim())?isNumber(eo)&&Number.isInteger(Number(eo)):!1,isList$1=eo=>{try{const to=JSON.parse(eo);return Array.isArray(to)}catch{return!1}},isObject$i=eo=>{try{const to=JSON.parse(eo);return Object.prototype.toString.call(to)==="[object Object]"}catch{return!1}},isTypeValid=(eo,to)=>{const no=typeof eo,io=no==="string";switch(to){case ValueType.int:return io?isInt(eo):Number.isInteger(eo);case ValueType.double:return io?isNumber(eo):no==="number";case ValueType.list:return io?isList$1(eo):Array.isArray(eo);case ValueType.object:return io?isObject$i(eo):no==="object";case ValueType.bool:return io?isBool(eo):no==="boolean";case ValueType.function_str:return!0;default:return!0}},getCycle=(eo,to,no,io)=>{var lo,uo;const so=[],ao=new Set(eo.keys());for(eo.forEach((ho,go)=>{ho===0&&so.push(go)});so.length>0;){const ho=so.shift();ho&&(ao.delete(ho),(lo=to.get(ho))==null||lo.forEach(go=>{const mo=(eo.get(go)??0)-1;eo.set(go,mo),mo===0&&so.push(go)}))}for(no.forEach((ho,go)=>{ho===0&&so.push(go)});so.length>0;){const ho=so.shift();ho&&(ao.delete(ho),(uo=io.get(ho))==null||uo.forEach(go=>{const mo=(no.get(go)??0)-1;no.set(go,mo),mo===0&&so.push(go)}))}return ao};function commonjsRequire$1(eo){throw new Error('Could not dynamically require "'+eo+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function listCacheClear$3(){this.__data__=[],this.size=0}var _listCacheClear$1=listCacheClear$3;function eq$6(eo,to){return eo===to||eo!==eo&&to!==to}var eq_1$1=eq$6,eq$5=eq_1$1;function assocIndexOf$6(eo,to){for(var no=eo.length;no--;)if(eq$5(eo[no][0],to))return no;return-1}var _assocIndexOf$1=assocIndexOf$6,assocIndexOf$5=_assocIndexOf$1,arrayProto$2=Array.prototype,splice$3=arrayProto$2.splice;function listCacheDelete$3(eo){var to=this.__data__,no=assocIndexOf$5(to,eo);if(no<0)return!1;var io=to.length-1;return no==io?to.pop():splice$3.call(to,no,1),--this.size,!0}var _listCacheDelete$1=listCacheDelete$3,assocIndexOf$4=_assocIndexOf$1;function listCacheGet$3(eo){var to=this.__data__,no=assocIndexOf$4(to,eo);return no<0?void 0:to[no][1]}var _listCacheGet$1=listCacheGet$3,assocIndexOf$3=_assocIndexOf$1;function listCacheHas$3(eo){return assocIndexOf$3(this.__data__,eo)>-1}var _listCacheHas$1=listCacheHas$3,assocIndexOf$2=_assocIndexOf$1;function listCacheSet$3(eo,to){var no=this.__data__,io=assocIndexOf$2(no,eo);return io<0?(++this.size,no.push([eo,to])):no[io][1]=to,this}var _listCacheSet$1=listCacheSet$3,listCacheClear$2=_listCacheClear$1,listCacheDelete$2=_listCacheDelete$1,listCacheGet$2=_listCacheGet$1,listCacheHas$2=_listCacheHas$1,listCacheSet$2=_listCacheSet$1;function ListCache$6(eo){var to=-1,no=eo==null?0:eo.length;for(this.clear();++to-1&&eo%1==0&&eo-1&&eo%1==0&&eo<=MAX_SAFE_INTEGER$3}var isLength_1=isLength$4,baseGetTag$6=_baseGetTag$1,isLength$3=isLength_1,isObjectLike$8=isObjectLike_1$1,argsTag$6="[object Arguments]",arrayTag$5="[object Array]",boolTag$7="[object Boolean]",dateTag$7="[object Date]",errorTag$5="[object Error]",funcTag$5="[object Function]",mapTag$c="[object Map]",numberTag$7="[object Number]",objectTag$9="[object Object]",regexpTag$7="[object RegExp]",setTag$c="[object Set]",stringTag$8="[object String]",weakMapTag$5="[object WeakMap]",arrayBufferTag$7="[object ArrayBuffer]",dataViewTag$9="[object DataView]",float32Tag$5="[object Float32Array]",float64Tag$5="[object Float64Array]",int8Tag$5="[object Int8Array]",int16Tag$5="[object Int16Array]",int32Tag$5="[object Int32Array]",uint8Tag$5="[object Uint8Array]",uint8ClampedTag$5="[object Uint8ClampedArray]",uint16Tag$5="[object Uint16Array]",uint32Tag$5="[object Uint32Array]",typedArrayTags$1={};typedArrayTags$1[float32Tag$5]=typedArrayTags$1[float64Tag$5]=typedArrayTags$1[int8Tag$5]=typedArrayTags$1[int16Tag$5]=typedArrayTags$1[int32Tag$5]=typedArrayTags$1[uint8Tag$5]=typedArrayTags$1[uint8ClampedTag$5]=typedArrayTags$1[uint16Tag$5]=typedArrayTags$1[uint32Tag$5]=!0;typedArrayTags$1[argsTag$6]=typedArrayTags$1[arrayTag$5]=typedArrayTags$1[arrayBufferTag$7]=typedArrayTags$1[boolTag$7]=typedArrayTags$1[dataViewTag$9]=typedArrayTags$1[dateTag$7]=typedArrayTags$1[errorTag$5]=typedArrayTags$1[funcTag$5]=typedArrayTags$1[mapTag$c]=typedArrayTags$1[numberTag$7]=typedArrayTags$1[objectTag$9]=typedArrayTags$1[regexpTag$7]=typedArrayTags$1[setTag$c]=typedArrayTags$1[stringTag$8]=typedArrayTags$1[weakMapTag$5]=!1;function baseIsTypedArray$2(eo){return isObjectLike$8(eo)&&isLength$3(eo.length)&&!!typedArrayTags$1[baseGetTag$6(eo)]}var _baseIsTypedArray=baseIsTypedArray$2;function baseUnary$5(eo){return function(to){return eo(to)}}var _baseUnary=baseUnary$5,_nodeUtil={exports:{}};_nodeUtil.exports;(function(eo,to){var no=_freeGlobal$1,io=to&&!to.nodeType&&to,so=io&&!0&&eo&&!eo.nodeType&&eo,ao=so&&so.exports===io,lo=ao&&no.process,uo=function(){try{var ho=so&&so.require&&so.require("util").types;return ho||lo&&lo.binding&&lo.binding("util")}catch{}}();eo.exports=uo})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray$1=_baseIsTypedArray,baseUnary$4=_baseUnary,nodeUtil$4=_nodeUtilExports,nodeIsTypedArray$1=nodeUtil$4&&nodeUtil$4.isTypedArray,isTypedArray$4=nodeIsTypedArray$1?baseUnary$4(nodeIsTypedArray$1):baseIsTypedArray$1,isTypedArray_1=isTypedArray$4,baseTimes$1=_baseTimes,isArguments$4=isArguments_1,isArray$g=isArray_1$1,isBuffer$4=isBufferExports,isIndex$4=_isIndex$1,isTypedArray$3=isTypedArray_1,objectProto$x=Object.prototype,hasOwnProperty$u=objectProto$x.hasOwnProperty;function arrayLikeKeys$3(eo,to){var no=isArray$g(eo),io=!no&&isArguments$4(eo),so=!no&&!io&&isBuffer$4(eo),ao=!no&&!io&&!so&&isTypedArray$3(eo),lo=no||io||so||ao,uo=lo?baseTimes$1(eo.length,String):[],ho=uo.length;for(var go in eo)(to||hasOwnProperty$u.call(eo,go))&&!(lo&&(go=="length"||so&&(go=="offset"||go=="parent")||ao&&(go=="buffer"||go=="byteLength"||go=="byteOffset")||isIndex$4(go,ho)))&&uo.push(go);return uo}var _arrayLikeKeys=arrayLikeKeys$3,objectProto$w=Object.prototype;function isPrototype$4(eo){var to=eo&&eo.constructor,no=typeof to=="function"&&to.prototype||objectProto$w;return eo===no}var _isPrototype=isPrototype$4;function overArg$3(eo,to){return function(no){return eo(to(no))}}var _overArg=overArg$3,overArg$2=_overArg,nativeKeys$3=overArg$2(Object.keys,Object),_nativeKeys=nativeKeys$3,isPrototype$3=_isPrototype,nativeKeys$2=_nativeKeys,objectProto$v=Object.prototype,hasOwnProperty$t=objectProto$v.hasOwnProperty;function baseKeys$2(eo){if(!isPrototype$3(eo))return nativeKeys$2(eo);var to=[];for(var no in Object(eo))hasOwnProperty$t.call(eo,no)&&no!="constructor"&&to.push(no);return to}var _baseKeys=baseKeys$2,isFunction$5=isFunction_1$1,isLength$2=isLength_1;function isArrayLike$9(eo){return eo!=null&&isLength$2(eo.length)&&!isFunction$5(eo)}var isArrayLike_1=isArrayLike$9,arrayLikeKeys$2=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$8=isArrayLike_1;function keys$8(eo){return isArrayLike$8(eo)?arrayLikeKeys$2(eo):baseKeys$1(eo)}var keys_1=keys$8,copyObject$4=_copyObject,keys$7=keys_1;function baseAssign$2(eo,to){return eo&©Object$4(to,keys$7(to),eo)}var _baseAssign=baseAssign$2;function nativeKeysIn$2(eo){var to=[];if(eo!=null)for(var no in Object(eo))to.push(no);return to}var _nativeKeysIn=nativeKeysIn$2,isObject$e=isObject_1$2,isPrototype$2=_isPrototype,nativeKeysIn$1=_nativeKeysIn,objectProto$u=Object.prototype,hasOwnProperty$s=objectProto$u.hasOwnProperty;function baseKeysIn$2(eo){if(!isObject$e(eo))return nativeKeysIn$1(eo);var to=isPrototype$2(eo),no=[];for(var io in eo)io=="constructor"&&(to||!hasOwnProperty$s.call(eo,io))||no.push(io);return no}var _baseKeysIn=baseKeysIn$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeysIn$1=_baseKeysIn,isArrayLike$7=isArrayLike_1;function keysIn$4(eo){return isArrayLike$7(eo)?arrayLikeKeys$1(eo,!0):baseKeysIn$1(eo)}var keysIn_1=keysIn$4,copyObject$3=_copyObject,keysIn$3=keysIn_1;function baseAssignIn$2(eo,to){return eo&©Object$3(to,keysIn$3(to),eo)}var _baseAssignIn=baseAssignIn$2,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(eo,to){var no=_root$2,io=to&&!to.nodeType&&to,so=io&&!0&&eo&&!eo.nodeType&&eo,ao=so&&so.exports===io,lo=ao?no.Buffer:void 0,uo=lo?lo.allocUnsafe:void 0;function ho(go,mo){if(mo)return go.slice();var yo=go.length,So=uo?uo(yo):new go.constructor(yo);return go.copy(So),So}eo.exports=ho})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$4(eo,to){var no=-1,io=eo.length;for(to||(to=Array(io));++nouo))return!1;var go=ao.get(eo),mo=ao.get(to);if(go&&mo)return go==to&&mo==eo;var yo=-1,So=!0,_o=no&COMPARE_UNORDERED_FLAG$7?new SetCache$2:void 0;for(ao.set(eo,to),ao.set(to,eo);++yo0&&no(uo)?to>1?baseFlatten$3(uo,to-1,no,io,so):arrayPush$3(so,uo):io||(so[so.length]=uo)}return so}var _baseFlatten=baseFlatten$3;function apply$5(eo,to,no){switch(no.length){case 0:return eo.call(to);case 1:return eo.call(to,no[0]);case 2:return eo.call(to,no[0],no[1]);case 3:return eo.call(to,no[0],no[1],no[2])}return eo.apply(to,no)}var _apply=apply$5,apply$4=_apply,nativeMax$6=Math.max;function overRest$3(eo,to,no){return to=nativeMax$6(to===void 0?eo.length-1:to,0),function(){for(var io=arguments,so=-1,ao=nativeMax$6(io.length-to,0),lo=Array(ao);++so0){if(++to>=HOT_COUNT$1)return arguments[0]}else to=0;return eo.apply(void 0,arguments)}}var _shortOut=shortOut$2,baseSetToString$2=_baseSetToString,shortOut$1=_shortOut,setToString$4=shortOut$1(baseSetToString$2),_setToString=setToString$4,identity$b=identity_1,overRest$2=_overRest,setToString$3=_setToString;function baseRest$2(eo,to){return setToString$3(overRest$2(eo,to,identity$b),eo+"")}var _baseRest=baseRest$2;function baseFindIndex$3(eo,to,no,io){for(var so=eo.length,ao=no+(io?1:-1);io?ao--:++ao-1}var _arrayIncludes=arrayIncludes$2;function arrayIncludesWith$2(eo,to,no){for(var io=-1,so=eo==null?0:eo.length;++io=LARGE_ARRAY_SIZE$2){var go=to?null:createSet$2(eo);if(go)return setToArray$1(go);lo=!1,so=cacheHas$1,ho=new SetCache$1}else ho=to?[]:uo;e:for(;++io1?_o.setNode(ko,yo):_o.setNode(ko)}),this},so.prototype.setNode=function(mo,yo){return eo.has(this._nodes,mo)?(arguments.length>1&&(this._nodes[mo]=yo),this):(this._nodes[mo]=arguments.length>1?yo:this._defaultNodeLabelFn(mo),this._isCompound&&(this._parent[mo]=no,this._children[mo]={},this._children[no][mo]=!0),this._in[mo]={},this._preds[mo]={},this._out[mo]={},this._sucs[mo]={},++this._nodeCount,this)},so.prototype.node=function(mo){return this._nodes[mo]},so.prototype.hasNode=function(mo){return eo.has(this._nodes,mo)},so.prototype.removeNode=function(mo){var yo=this;if(eo.has(this._nodes,mo)){var So=function(_o){yo.removeEdge(yo._edgeObjs[_o])};delete this._nodes[mo],this._isCompound&&(this._removeFromParentsChildList(mo),delete this._parent[mo],eo.each(this.children(mo),function(_o){yo.setParent(_o)}),delete this._children[mo]),eo.each(eo.keys(this._in[mo]),So),delete this._in[mo],delete this._preds[mo],eo.each(eo.keys(this._out[mo]),So),delete this._out[mo],delete this._sucs[mo],--this._nodeCount}return this},so.prototype.setParent=function(mo,yo){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(eo.isUndefined(yo))yo=no;else{yo+="";for(var So=yo;!eo.isUndefined(So);So=this.parent(So))if(So===mo)throw new Error("Setting "+yo+" as parent of "+mo+" would create a cycle");this.setNode(yo)}return this.setNode(mo),this._removeFromParentsChildList(mo),this._parent[mo]=yo,this._children[yo][mo]=!0,this},so.prototype._removeFromParentsChildList=function(mo){delete this._children[this._parent[mo]][mo]},so.prototype.parent=function(mo){if(this._isCompound){var yo=this._parent[mo];if(yo!==no)return yo}},so.prototype.children=function(mo){if(eo.isUndefined(mo)&&(mo=no),this._isCompound){var yo=this._children[mo];if(yo)return eo.keys(yo)}else{if(mo===no)return this.nodes();if(this.hasNode(mo))return[]}},so.prototype.predecessors=function(mo){var yo=this._preds[mo];if(yo)return eo.keys(yo)},so.prototype.successors=function(mo){var yo=this._sucs[mo];if(yo)return eo.keys(yo)},so.prototype.neighbors=function(mo){var yo=this.predecessors(mo);if(yo)return eo.union(yo,this.successors(mo))},so.prototype.isLeaf=function(mo){var yo;return this.isDirected()?yo=this.successors(mo):yo=this.neighbors(mo),yo.length===0},so.prototype.filterNodes=function(mo){var yo=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});yo.setGraph(this.graph());var So=this;eo.each(this._nodes,function(Co,$o){mo($o)&&yo.setNode($o,Co)}),eo.each(this._edgeObjs,function(Co){yo.hasNode(Co.v)&&yo.hasNode(Co.w)&&yo.setEdge(Co,So.edge(Co))});var _o={};function ko(Co){var $o=So.parent(Co);return $o===void 0||yo.hasNode($o)?(_o[Co]=$o,$o):$o in _o?_o[$o]:ko($o)}return this._isCompound&&eo.each(yo.nodes(),function(Co){yo.setParent(Co,ko(Co))}),yo},so.prototype.setDefaultEdgeLabel=function(mo){return eo.isFunction(mo)||(mo=eo.constant(mo)),this._defaultEdgeLabelFn=mo,this},so.prototype.edgeCount=function(){return this._edgeCount},so.prototype.edges=function(){return eo.values(this._edgeObjs)},so.prototype.setPath=function(mo,yo){var So=this,_o=arguments;return eo.reduce(mo,function(ko,Co){return _o.length>1?So.setEdge(ko,Co,yo):So.setEdge(ko,Co),Co}),this},so.prototype.setEdge=function(){var mo,yo,So,_o,ko=!1,Co=arguments[0];typeof Co=="object"&&Co!==null&&"v"in Co?(mo=Co.v,yo=Co.w,So=Co.name,arguments.length===2&&(_o=arguments[1],ko=!0)):(mo=Co,yo=arguments[1],So=arguments[3],arguments.length>2&&(_o=arguments[2],ko=!0)),mo=""+mo,yo=""+yo,eo.isUndefined(So)||(So=""+So);var $o=uo(this._isDirected,mo,yo,So);if(eo.has(this._edgeLabels,$o))return ko&&(this._edgeLabels[$o]=_o),this;if(!eo.isUndefined(So)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(mo),this.setNode(yo),this._edgeLabels[$o]=ko?_o:this._defaultEdgeLabelFn(mo,yo,So);var Ro=ho(this._isDirected,mo,yo,So);return mo=Ro.v,yo=Ro.w,Object.freeze(Ro),this._edgeObjs[$o]=Ro,ao(this._preds[yo],mo),ao(this._sucs[mo],yo),this._in[yo][$o]=Ro,this._out[mo][$o]=Ro,this._edgeCount++,this},so.prototype.edge=function(mo,yo,So){var _o=arguments.length===1?go(this._isDirected,arguments[0]):uo(this._isDirected,mo,yo,So);return this._edgeLabels[_o]},so.prototype.hasEdge=function(mo,yo,So){var _o=arguments.length===1?go(this._isDirected,arguments[0]):uo(this._isDirected,mo,yo,So);return eo.has(this._edgeLabels,_o)},so.prototype.removeEdge=function(mo,yo,So){var _o=arguments.length===1?go(this._isDirected,arguments[0]):uo(this._isDirected,mo,yo,So),ko=this._edgeObjs[_o];return ko&&(mo=ko.v,yo=ko.w,delete this._edgeLabels[_o],delete this._edgeObjs[_o],lo(this._preds[yo],mo),lo(this._sucs[mo],yo),delete this._in[yo][_o],delete this._out[mo][_o],this._edgeCount--),this},so.prototype.inEdges=function(mo,yo){var So=this._in[mo];if(So){var _o=eo.values(So);return yo?eo.filter(_o,function(ko){return ko.v===yo}):_o}},so.prototype.outEdges=function(mo,yo){var So=this._out[mo];if(So){var _o=eo.values(So);return yo?eo.filter(_o,function(ko){return ko.w===yo}):_o}},so.prototype.nodeEdges=function(mo,yo){var So=this.inEdges(mo,yo);if(So)return So.concat(this.outEdges(mo,yo))};function ao(mo,yo){mo[yo]?mo[yo]++:mo[yo]=1}function lo(mo,yo){--mo[yo]||delete mo[yo]}function uo(mo,yo,So,_o){var ko=""+yo,Co=""+So;if(!mo&&ko>Co){var $o=ko;ko=Co,Co=$o}return ko+io+Co+io+(eo.isUndefined(_o)?to:_o)}function ho(mo,yo,So,_o){var ko=""+yo,Co=""+So;if(!mo&&ko>Co){var $o=ko;ko=Co,Co=$o}var Ro={v:ko,w:Co};return _o&&(Ro.name=_o),Ro}function go(mo,yo){return uo(mo,yo.v,yo.w,yo.name)}return graph}var version$4,hasRequiredVersion;function requireVersion(){return hasRequiredVersion||(hasRequiredVersion=1,version$4="2.1.8"),version$4}var lib,hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,lib={Graph:requireGraph(),version:requireVersion()}),lib}var json$1,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json$1;hasRequiredJson=1;var eo=requireLodash(),to=requireGraph();json$1={write:no,read:ao};function no(lo){var uo={options:{directed:lo.isDirected(),multigraph:lo.isMultigraph(),compound:lo.isCompound()},nodes:io(lo),edges:so(lo)};return eo.isUndefined(lo.graph())||(uo.value=eo.clone(lo.graph())),uo}function io(lo){return eo.map(lo.nodes(),function(uo){var ho=lo.node(uo),go=lo.parent(uo),mo={v:uo};return eo.isUndefined(ho)||(mo.value=ho),eo.isUndefined(go)||(mo.parent=go),mo})}function so(lo){return eo.map(lo.edges(),function(uo){var ho=lo.edge(uo),go={v:uo.v,w:uo.w};return eo.isUndefined(uo.name)||(go.name=uo.name),eo.isUndefined(ho)||(go.value=ho),go})}function ao(lo){var uo=new to(lo.options).setGraph(lo.value);return eo.each(lo.nodes,function(ho){uo.setNode(ho.v,ho.value),ho.parent&&uo.setParent(ho.v,ho.parent)}),eo.each(lo.edges,function(ho){uo.setEdge({v:ho.v,w:ho.w,name:ho.name},ho.value)}),uo}return json$1}var components_1,hasRequiredComponents;function requireComponents(){if(hasRequiredComponents)return components_1;hasRequiredComponents=1;var eo=requireLodash();components_1=to;function to(no){var io={},so=[],ao;function lo(uo){eo.has(io,uo)||(io[uo]=!0,ao.push(uo),eo.each(no.successors(uo),lo),eo.each(no.predecessors(uo),lo))}return eo.each(no.nodes(),function(uo){ao=[],lo(uo),ao.length&&so.push(ao)}),so}return components_1}var priorityQueue,hasRequiredPriorityQueue;function requirePriorityQueue(){if(hasRequiredPriorityQueue)return priorityQueue;hasRequiredPriorityQueue=1;var eo=requireLodash();priorityQueue=to;function to(){this._arr=[],this._keyIndices={}}return to.prototype.size=function(){return this._arr.length},to.prototype.keys=function(){return this._arr.map(function(no){return no.key})},to.prototype.has=function(no){return eo.has(this._keyIndices,no)},to.prototype.priority=function(no){var io=this._keyIndices[no];if(io!==void 0)return this._arr[io].priority},to.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},to.prototype.add=function(no,io){var so=this._keyIndices;if(no=String(no),!eo.has(so,no)){var ao=this._arr,lo=ao.length;return so[no]=lo,ao.push({key:no,priority:io}),this._decrease(lo),!0}return!1},to.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var no=this._arr.pop();return delete this._keyIndices[no.key],this._heapify(0),no.key},to.prototype.decrease=function(no,io){var so=this._keyIndices[no];if(io>this._arr[so].priority)throw new Error("New priority is greater than current priority. Key: "+no+" Old: "+this._arr[so].priority+" New: "+io);this._arr[so].priority=io,this._decrease(so)},to.prototype._heapify=function(no){var io=this._arr,so=2*no,ao=so+1,lo=no;so>1,!(io[ao].priority0&&(yo=mo.removeMin(),So=go[yo],So.distance!==Number.POSITIVE_INFINITY);)ho(yo).forEach(_o);return go}return dijkstra_1}var dijkstraAll_1,hasRequiredDijkstraAll;function requireDijkstraAll(){if(hasRequiredDijkstraAll)return dijkstraAll_1;hasRequiredDijkstraAll=1;var eo=requireDijkstra(),to=requireLodash();dijkstraAll_1=no;function no(io,so,ao){return to.transform(io.nodes(),function(lo,uo){lo[uo]=eo(io,uo,so,ao)},{})}return dijkstraAll_1}var tarjan_1,hasRequiredTarjan;function requireTarjan(){if(hasRequiredTarjan)return tarjan_1;hasRequiredTarjan=1;var eo=requireLodash();tarjan_1=to;function to(no){var io=0,so=[],ao={},lo=[];function uo(ho){var go=ao[ho]={onStack:!0,lowlink:io,index:io++};if(so.push(ho),no.successors(ho).forEach(function(So){eo.has(ao,So)?ao[So].onStack&&(go.lowlink=Math.min(go.lowlink,ao[So].index)):(uo(So),go.lowlink=Math.min(go.lowlink,ao[So].lowlink))}),go.lowlink===go.index){var mo=[],yo;do yo=so.pop(),ao[yo].onStack=!1,mo.push(yo);while(ho!==yo);lo.push(mo)}}return no.nodes().forEach(function(ho){eo.has(ao,ho)||uo(ho)}),lo}return tarjan_1}var findCycles_1,hasRequiredFindCycles;function requireFindCycles(){if(hasRequiredFindCycles)return findCycles_1;hasRequiredFindCycles=1;var eo=requireLodash(),to=requireTarjan();findCycles_1=no;function no(io){return eo.filter(to(io),function(so){return so.length>1||so.length===1&&io.hasEdge(so[0],so[0])})}return findCycles_1}var floydWarshall_1,hasRequiredFloydWarshall;function requireFloydWarshall(){if(hasRequiredFloydWarshall)return floydWarshall_1;hasRequiredFloydWarshall=1;var eo=requireLodash();floydWarshall_1=no;var to=eo.constant(1);function no(so,ao,lo){return io(so,ao||to,lo||function(uo){return so.outEdges(uo)})}function io(so,ao,lo){var uo={},ho=so.nodes();return ho.forEach(function(go){uo[go]={},uo[go][go]={distance:0},ho.forEach(function(mo){go!==mo&&(uo[go][mo]={distance:Number.POSITIVE_INFINITY})}),lo(go).forEach(function(mo){var yo=mo.v===go?mo.w:mo.v,So=ao(mo);uo[go][yo]={distance:So,predecessor:go}})}),ho.forEach(function(go){var mo=uo[go];ho.forEach(function(yo){var So=uo[yo];ho.forEach(function(_o){var ko=So[go],Co=mo[_o],$o=So[_o],Ro=ko.distance+Co.distance;Ro<$o.distance&&($o.distance=Ro,$o.predecessor=Co.predecessor)})})}),uo}return floydWarshall_1}var topsort_1,hasRequiredTopsort;function requireTopsort(){if(hasRequiredTopsort)return topsort_1;hasRequiredTopsort=1;var eo=requireLodash();topsort_1=to,to.CycleException=no;function to(io){var so={},ao={},lo=[];function uo(ho){if(eo.has(ao,ho))throw new no;eo.has(so,ho)||(ao[ho]=!0,so[ho]=!0,eo.each(io.predecessors(ho),uo),delete ao[ho],lo.push(ho))}if(eo.each(io.sinks(),uo),eo.size(so)!==io.nodeCount())throw new no;return lo}function no(){}return no.prototype=new Error,topsort_1}var isAcyclic_1,hasRequiredIsAcyclic;function requireIsAcyclic(){if(hasRequiredIsAcyclic)return isAcyclic_1;hasRequiredIsAcyclic=1;var eo=requireTopsort();isAcyclic_1=to;function to(no){try{eo(no)}catch(io){if(io instanceof eo.CycleException)return!1;throw io}return!0}return isAcyclic_1}var dfs_1,hasRequiredDfs;function requireDfs(){if(hasRequiredDfs)return dfs_1;hasRequiredDfs=1;var eo=requireLodash();dfs_1=to;function to(io,so,ao){eo.isArray(so)||(so=[so]);var lo=(io.isDirected()?io.successors:io.neighbors).bind(io),uo=[],ho={};return eo.each(so,function(go){if(!io.hasNode(go))throw new Error("Graph does not have node: "+go);no(io,go,ao==="post",ho,lo,uo)}),uo}function no(io,so,ao,lo,uo,ho){eo.has(lo,so)||(lo[so]=!0,ao||ho.push(so),eo.each(uo(so),function(go){no(io,go,ao,lo,uo,ho)}),ao&&ho.push(so))}return dfs_1}var postorder_1,hasRequiredPostorder;function requirePostorder(){if(hasRequiredPostorder)return postorder_1;hasRequiredPostorder=1;var eo=requireDfs();postorder_1=to;function to(no,io){return eo(no,io,"post")}return postorder_1}var preorder_1,hasRequiredPreorder;function requirePreorder(){if(hasRequiredPreorder)return preorder_1;hasRequiredPreorder=1;var eo=requireDfs();preorder_1=to;function to(no,io){return eo(no,io,"pre")}return preorder_1}var prim_1,hasRequiredPrim;function requirePrim(){if(hasRequiredPrim)return prim_1;hasRequiredPrim=1;var eo=requireLodash(),to=requireGraph(),no=requirePriorityQueue();prim_1=io;function io(so,ao){var lo=new to,uo={},ho=new no,go;function mo(So){var _o=So.v===go?So.w:So.v,ko=ho.priority(_o);if(ko!==void 0){var Co=ao(So);Co0;){if(go=ho.removeMin(),eo.has(uo,go))lo.setEdge(go,uo[go]);else{if(yo)throw new Error("Input graph is not connected: "+so);yo=!0}so.nodeEdges(go).forEach(mo)}return lo}return prim_1}var alg,hasRequiredAlg;function requireAlg(){return hasRequiredAlg||(hasRequiredAlg=1,alg={components:requireComponents(),dijkstra:requireDijkstra(),dijkstraAll:requireDijkstraAll(),findCycles:requireFindCycles(),floydWarshall:requireFloydWarshall(),isAcyclic:requireIsAcyclic(),postorder:requirePostorder(),preorder:requirePreorder(),prim:requirePrim(),tarjan:requireTarjan(),topsort:requireTopsort()}),alg}var graphlib$1,hasRequiredGraphlib;function requireGraphlib(){if(hasRequiredGraphlib)return graphlib$1;hasRequiredGraphlib=1;var eo=requireLib();return graphlib$1={Graph:eo.Graph,json:requireJson(),alg:requireAlg(),version:eo.version},graphlib$1}var graphlib;if(typeof commonjsRequire$1=="function")try{graphlib=requireGraphlib()}catch{}graphlib||(graphlib=window.graphlib);var graphlib_1=graphlib,cloneDeep_1,hasRequiredCloneDeep;function requireCloneDeep(){if(hasRequiredCloneDeep)return cloneDeep_1;hasRequiredCloneDeep=1;var eo=_baseClone,to=1,no=4;function io(so){return eo(so,to|no)}return cloneDeep_1=io,cloneDeep_1}var eq$2=eq_1$1,isArrayLike$4=isArrayLike_1,isIndex$2=_isIndex$1,isObject$a=isObject_1$2;function isIterateeCall$3(eo,to,no){if(!isObject$a(no))return!1;var io=typeof to;return(io=="number"?isArrayLike$4(no)&&isIndex$2(to,no.length):io=="string"&&to in no)?eq$2(no[to],eo):!1}var _isIterateeCall=isIterateeCall$3,defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var eo=_baseRest,to=eq_1$1,no=_isIterateeCall,io=keysIn_1,so=Object.prototype,ao=so.hasOwnProperty,lo=eo(function(uo,ho){uo=Object(uo);var go=-1,mo=ho.length,yo=mo>2?ho[2]:void 0;for(yo&&no(ho[0],ho[1],yo)&&(mo=1);++go-1?so[ao?to[lo]:lo]:void 0}}var _createFind=createFind$2,reWhitespace$2=/\s/;function trimmedEndIndex$3(eo){for(var to=eo.length;to--&&reWhitespace$2.test(eo.charAt(to)););return to}var _trimmedEndIndex$1=trimmedEndIndex$3,trimmedEndIndex$2=_trimmedEndIndex$1,reTrimStart$2=/^\s+/;function baseTrim$3(eo){return eo&&eo.slice(0,trimmedEndIndex$2(eo)+1).replace(reTrimStart$2,"")}var _baseTrim$1=baseTrim$3,baseTrim$2=_baseTrim$1,isObject$9=isObject_1$2,isSymbol$4=isSymbol_1$1,NAN$2=NaN,reIsBadHex$2=/^[-+]0x[0-9a-f]+$/i,reIsBinary$2=/^0b[01]+$/i,reIsOctal$2=/^0o[0-7]+$/i,freeParseInt$2=parseInt;function toNumber$3(eo){if(typeof eo=="number")return eo;if(isSymbol$4(eo))return NAN$2;if(isObject$9(eo)){var to=typeof eo.valueOf=="function"?eo.valueOf():eo;eo=isObject$9(to)?to+"":to}if(typeof eo!="string")return eo===0?eo:+eo;eo=baseTrim$2(eo);var no=reIsBinary$2.test(eo);return no||reIsOctal$2.test(eo)?freeParseInt$2(eo.slice(2),no?2:8):reIsBadHex$2.test(eo)?NAN$2:+eo}var toNumber_1$1=toNumber$3,toNumber$2=toNumber_1$1,INFINITY$6=1/0,MAX_INTEGER$1=17976931348623157e292;function toFinite$3(eo){if(!eo)return eo===0?eo:0;if(eo=toNumber$2(eo),eo===INFINITY$6||eo===-INFINITY$6){var to=eo<0?-1:1;return to*MAX_INTEGER$1}return eo===eo?eo:0}var toFinite_1=toFinite$3,toFinite$2=toFinite_1;function toInteger$2(eo){var to=toFinite$2(eo),no=to%1;return to===to?no?to-no:to:0}var toInteger_1=toInteger$2,baseFindIndex$1=_baseFindIndex,baseIteratee$4=_baseIteratee,toInteger$1=toInteger_1,nativeMax$5=Math.max;function findIndex$2(eo,to,no){var io=eo==null?0:eo.length;if(!io)return-1;var so=no==null?0:toInteger$1(no);return so<0&&(so=nativeMax$5(io+so,0)),baseFindIndex$1(eo,baseIteratee$4(to),so)}var findIndex_1=findIndex$2,createFind$1=_createFind,findIndex$1=findIndex_1,find$5=createFind$1(findIndex$1),find_1=find$5,baseFlatten$2=_baseFlatten;function flatten$3(eo){var to=eo==null?0:eo.length;return to?baseFlatten$2(eo,1):[]}var flatten_1=flatten$3,forIn_1,hasRequiredForIn;function requireForIn(){if(hasRequiredForIn)return forIn_1;hasRequiredForIn=1;var eo=_baseFor,to=require_castFunction(),no=keysIn_1;function io(so,ao){return so==null?so:eo(so,to(ao),no)}return forIn_1=io,forIn_1}function last$1(eo){var to=eo==null?0:eo.length;return to?eo[to-1]:void 0}var last_1=last$1,baseAssignValue$2=_baseAssignValue$1,baseForOwn$1=_baseForOwn,baseIteratee$3=_baseIteratee;function mapValues$1(eo,to){var no={};return to=baseIteratee$3(to),baseForOwn$1(eo,function(io,so,ao){baseAssignValue$2(no,so,to(io,so,ao))}),no}var mapValues_1=mapValues$1,isSymbol$3=isSymbol_1$1;function baseExtremum$4(eo,to,no){for(var io=-1,so=eo.length;++ioto}var _baseGt=baseGt$2,baseExtremum$3=_baseExtremum,baseGt$1=_baseGt,identity$a=identity_1;function max$6(eo){return eo&&eo.length?baseExtremum$3(eo,identity$a,baseGt$1):void 0}var max_1=max$6,_assignMergeValue,hasRequired_assignMergeValue;function require_assignMergeValue(){if(hasRequired_assignMergeValue)return _assignMergeValue;hasRequired_assignMergeValue=1;var eo=_baseAssignValue$1,to=eq_1$1;function no(io,so,ao){(ao!==void 0&&!to(io[so],ao)||ao===void 0&&!(so in io))&&eo(io,so,ao)}return _assignMergeValue=no,_assignMergeValue}var baseGetTag$2=_baseGetTag$1,getPrototype$2=_getPrototype,isObjectLike$2=isObjectLike_1$1,objectTag$5="[object Object]",funcProto$5=Function.prototype,objectProto$p=Object.prototype,funcToString$5=funcProto$5.toString,hasOwnProperty$o=objectProto$p.hasOwnProperty,objectCtorString$1=funcToString$5.call(Object);function isPlainObject$2(eo){if(!isObjectLike$2(eo)||baseGetTag$2(eo)!=objectTag$5)return!1;var to=getPrototype$2(eo);if(to===null)return!0;var no=hasOwnProperty$o.call(to,"constructor")&&to.constructor;return typeof no=="function"&&no instanceof no&&funcToString$5.call(no)==objectCtorString$1}var isPlainObject_1=isPlainObject$2,_safeGet,hasRequired_safeGet;function require_safeGet(){if(hasRequired_safeGet)return _safeGet;hasRequired_safeGet=1;function eo(to,no){if(!(no==="constructor"&&typeof to[no]=="function")&&no!="__proto__")return to[no]}return _safeGet=eo,_safeGet}var toPlainObject_1,hasRequiredToPlainObject;function requireToPlainObject(){if(hasRequiredToPlainObject)return toPlainObject_1;hasRequiredToPlainObject=1;var eo=_copyObject,to=keysIn_1;function no(io){return eo(io,to(io))}return toPlainObject_1=no,toPlainObject_1}var _baseMergeDeep,hasRequired_baseMergeDeep;function require_baseMergeDeep(){if(hasRequired_baseMergeDeep)return _baseMergeDeep;hasRequired_baseMergeDeep=1;var eo=require_assignMergeValue(),to=_cloneBufferExports,no=_cloneTypedArray,io=_copyArray$1,so=_initCloneObject,ao=isArguments_1,lo=isArray_1$1,uo=requireIsArrayLikeObject(),ho=isBufferExports,go=isFunction_1$1,mo=isObject_1$2,yo=isPlainObject_1,So=isTypedArray_1,_o=require_safeGet(),ko=requireToPlainObject();function Co($o,Ro,Oo,No,Mo,Bo,Fo){var Lo=_o($o,Oo),Go=_o(Ro,Oo),Do=Fo.get(Go);if(Do){eo($o,Oo,Do);return}var Uo=Bo?Bo(Lo,Go,Oo+"",$o,Ro,Fo):void 0,Ho=Uo===void 0;if(Ho){var Yo=lo(Go),qo=!Yo&&ho(Go),Jo=!Yo&&!qo&&So(Go);Uo=Go,Yo||qo||Jo?lo(Lo)?Uo=Lo:uo(Lo)?Uo=io(Lo):qo?(Ho=!1,Uo=to(Go,!0)):Jo?(Ho=!1,Uo=no(Go,!0)):Uo=[]:yo(Go)||ao(Go)?(Uo=Lo,ao(Lo)?Uo=ko(Lo):(!mo(Lo)||go(Lo))&&(Uo=so(Go))):Ho=!1}Ho&&(Fo.set(Go,Uo),Mo(Uo,Go,No,Bo,Fo),Fo.delete(Go)),eo($o,Oo,Uo)}return _baseMergeDeep=Co,_baseMergeDeep}var _baseMerge,hasRequired_baseMerge;function require_baseMerge(){if(hasRequired_baseMerge)return _baseMerge;hasRequired_baseMerge=1;var eo=_Stack,to=require_assignMergeValue(),no=_baseFor,io=require_baseMergeDeep(),so=isObject_1$2,ao=keysIn_1,lo=require_safeGet();function uo(ho,go,mo,yo,So){ho!==go&&no(go,function(_o,ko){if(So||(So=new eo),so(_o))io(ho,go,ko,mo,uo,yo,So);else{var Co=yo?yo(lo(ho,ko),_o,ko+"",ho,go,So):void 0;Co===void 0&&(Co=_o),to(ho,ko,Co)}},ao)}return _baseMerge=uo,_baseMerge}var _createAssigner,hasRequired_createAssigner;function require_createAssigner(){if(hasRequired_createAssigner)return _createAssigner;hasRequired_createAssigner=1;var eo=_baseRest,to=_isIterateeCall;function no(io){return eo(function(so,ao){var lo=-1,uo=ao.length,ho=uo>1?ao[uo-1]:void 0,go=uo>2?ao[2]:void 0;for(ho=io.length>3&&typeof ho=="function"?(uo--,ho):void 0,go&&to(ao[0],ao[1],go)&&(ho=uo<3?void 0:ho,uo=1),so=Object(so);++loto||ao&&lo&&ho&&!uo&&!go||io&&lo&&ho||!no&&ho||!so)return 1;if(!io&&!ao&&!go&&eo=uo)return ho;var go=no[io];return ho*(go=="desc"?-1:1)}}return eo.index-to.index}var _compareMultiple=compareMultiple$2,arrayMap$2=_arrayMap$1,baseGet$2=_baseGet$1,baseIteratee$1=_baseIteratee,baseMap$1=_baseMap,baseSortBy$1=_baseSortBy,baseUnary$1=_baseUnary,compareMultiple$1=_compareMultiple,identity$8=identity_1,isArray$4=isArray_1$1;function baseOrderBy$2(eo,to,no){to.length?to=arrayMap$2(to,function(ao){return isArray$4(ao)?function(lo){return baseGet$2(lo,ao.length===1?ao[0]:ao)}:ao}):to=[identity$8];var io=-1;to=arrayMap$2(to,baseUnary$1(baseIteratee$1));var so=baseMap$1(eo,function(ao,lo,uo){var ho=arrayMap$2(to,function(go){return go(ao)});return{criteria:ho,index:++io,value:ao}});return baseSortBy$1(so,function(ao,lo){return compareMultiple$1(ao,lo,no)})}var _baseOrderBy=baseOrderBy$2,baseFlatten$1=_baseFlatten,baseOrderBy$1=_baseOrderBy,baseRest$1=_baseRest,isIterateeCall$1=_isIterateeCall,sortBy$2=baseRest$1(function(eo,to){if(eo==null)return[];var no=to.length;return no>1&&isIterateeCall$1(eo,to[0],to[1])?to=[]:no>2&&isIterateeCall$1(to[0],to[1],to[2])&&(to=[to[0]]),baseOrderBy$1(eo,baseFlatten$1(to,1),[])}),sortBy_1=sortBy$2,uniqueId_1,hasRequiredUniqueId;function requireUniqueId(){if(hasRequiredUniqueId)return uniqueId_1;hasRequiredUniqueId=1;var eo=toString_1$1,to=0;function no(io){var so=++to;return eo(io)+so}return uniqueId_1=no,uniqueId_1}var _baseZipObject,hasRequired_baseZipObject;function require_baseZipObject(){if(hasRequired_baseZipObject)return _baseZipObject;hasRequired_baseZipObject=1;function eo(to,no,io){for(var so=-1,ao=to.length,lo=no.length,uo={};++so0;--uo)if(lo=to[uo].dequeue(),lo){io=io.concat(removeNode$1(eo,to,no,lo,!0));break}}}return io}function removeNode$1(eo,to,no,io,so){var ao=so?[]:void 0;return _$v.forEach(eo.inEdges(io.v),function(lo){var uo=eo.edge(lo),ho=eo.node(lo.v);so&&ao.push({v:lo.v,w:lo.w}),ho.out-=uo,assignBucket$1(to,no,ho)}),_$v.forEach(eo.outEdges(io.v),function(lo){var uo=eo.edge(lo),ho=lo.w,go=eo.node(ho);go.in-=uo,assignBucket$1(to,no,go)}),eo.removeNode(io.v),ao}function buildState$1(eo,to){var no=new Graph$8,io=0,so=0;_$v.forEach(eo.nodes(),function(uo){no.setNode(uo,{v:uo,in:0,out:0})}),_$v.forEach(eo.edges(),function(uo){var ho=no.edge(uo.v,uo.w)||0,go=to(uo),mo=ho+go;no.setEdge(uo.v,uo.w,mo),so=Math.max(so,no.node(uo.v).out+=go),io=Math.max(io,no.node(uo.w).in+=go)});var ao=_$v.range(so+io+3).map(function(){return new List$3}),lo=io+1;return _$v.forEach(no.nodes(),function(uo){assignBucket$1(ao,lo,no.node(uo))}),{graph:no,buckets:ao,zeroIdx:lo}}function assignBucket$1(eo,to,no){no.out?no.in?eo[no.out-no.in+to].enqueue(no):eo[eo.length-1].enqueue(no):eo[0].enqueue(no)}var _$u=lodash_1,greedyFAS$1=greedyFas,acyclic$1={run:run$6,undo:undo$7};function run$6(eo){var to=eo.graph().acyclicer==="greedy"?greedyFAS$1(eo,no(eo)):dfsFAS$1(eo);_$u.forEach(to,function(io){var so=eo.edge(io);eo.removeEdge(io),so.forwardName=io.name,so.reversed=!0,eo.setEdge(io.w,io.v,so,_$u.uniqueId("rev"))});function no(io){return function(so){return io.edge(so).weight}}}function dfsFAS$1(eo){var to=[],no={},io={};function so(ao){_$u.has(io,ao)||(io[ao]=!0,no[ao]=!0,_$u.forEach(eo.outEdges(ao),function(lo){_$u.has(no,lo.w)?to.push(lo):so(lo.w)}),delete no[ao])}return _$u.forEach(eo.nodes(),so),to}function undo$7(eo){_$u.forEach(eo.edges(),function(to){var no=eo.edge(to);if(no.reversed){eo.removeEdge(to);var io=no.forwardName;delete no.reversed,delete no.forwardName,eo.setEdge(to.w,to.v,no,io)}})}var _$t=lodash_1,Graph$7=graphlib_1.Graph,util$a={addDummyNode:addDummyNode$1,simplify:simplify$2,asNonCompoundGraph:asNonCompoundGraph$1,successorWeights,predecessorWeights,intersectRect:intersectRect$4,buildLayerMatrix:buildLayerMatrix$1,normalizeRanks:normalizeRanks$2,removeEmptyRanks:removeEmptyRanks$2,addBorderNode:addBorderNode$3,maxRank:maxRank$1,partition:partition$1,time:time$2,notime:notime$1};function addDummyNode$1(eo,to,no,io){var so;do so=_$t.uniqueId(io);while(eo.hasNode(so));return no.dummy=to,eo.setNode(so,no),so}function simplify$2(eo){var to=new Graph$7().setGraph(eo.graph());return _$t.forEach(eo.nodes(),function(no){to.setNode(no,eo.node(no))}),_$t.forEach(eo.edges(),function(no){var io=to.edge(no.v,no.w)||{weight:0,minlen:1},so=eo.edge(no);to.setEdge(no.v,no.w,{weight:io.weight+so.weight,minlen:Math.max(io.minlen,so.minlen)})}),to}function asNonCompoundGraph$1(eo){var to=new Graph$7({multigraph:eo.isMultigraph()}).setGraph(eo.graph());return _$t.forEach(eo.nodes(),function(no){eo.children(no).length||to.setNode(no,eo.node(no))}),_$t.forEach(eo.edges(),function(no){to.setEdge(no,eo.edge(no))}),to}function successorWeights(eo){var to=_$t.map(eo.nodes(),function(no){var io={};return _$t.forEach(eo.outEdges(no),function(so){io[so.w]=(io[so.w]||0)+eo.edge(so).weight}),io});return _$t.zipObject(eo.nodes(),to)}function predecessorWeights(eo){var to=_$t.map(eo.nodes(),function(no){var io={};return _$t.forEach(eo.inEdges(no),function(so){io[so.v]=(io[so.v]||0)+eo.edge(so).weight}),io});return _$t.zipObject(eo.nodes(),to)}function intersectRect$4(eo,to){var no=eo.x,io=eo.y,so=to.x-no,ao=to.y-io,lo=eo.width/2,uo=eo.height/2;if(!so&&!ao)throw new Error("Not possible to find intersection inside of the rectangle");var ho,go;return Math.abs(ao)*lo>Math.abs(so)*uo?(ao<0&&(uo=-uo),ho=uo*so/ao,go=uo):(so<0&&(lo=-lo),ho=lo,go=lo*ao/so),{x:no+ho,y:io+go}}function buildLayerMatrix$1(eo){var to=_$t.map(_$t.range(maxRank$1(eo)+1),function(){return[]});return _$t.forEach(eo.nodes(),function(no){var io=eo.node(no),so=io.rank;_$t.isUndefined(so)||(to[so][io.order]=no)}),to}function normalizeRanks$2(eo){var to=_$t.min(_$t.map(eo.nodes(),function(no){return eo.node(no).rank}));_$t.forEach(eo.nodes(),function(no){var io=eo.node(no);_$t.has(io,"rank")&&(io.rank-=to)})}function removeEmptyRanks$2(eo){var to=_$t.min(_$t.map(eo.nodes(),function(ao){return eo.node(ao).rank})),no=[];_$t.forEach(eo.nodes(),function(ao){var lo=eo.node(ao).rank-to;no[lo]||(no[lo]=[]),no[lo].push(ao)});var io=0,so=eo.graph().nodeRankFactor;_$t.forEach(no,function(ao,lo){_$t.isUndefined(ao)&&lo%so!==0?--io:io&&_$t.forEach(ao,function(uo){eo.node(uo).rank+=io})})}function addBorderNode$3(eo,to,no,io){var so={width:0,height:0};return arguments.length>=4&&(so.rank=no,so.order=io),addDummyNode$1(eo,"border",so,to)}function maxRank$1(eo){return _$t.max(_$t.map(eo.nodes(),function(to){var no=eo.node(to).rank;if(!_$t.isUndefined(no))return no}))}function partition$1(eo,to){var no={lhs:[],rhs:[]};return _$t.forEach(eo,function(io){to(io)?no.lhs.push(io):no.rhs.push(io)}),no}function time$2(eo,to){var no=_$t.now();try{return to()}finally{console.log(eo+" time: "+(_$t.now()-no)+"ms")}}function notime$1(eo,to){return to()}var _$s=lodash_1,util$9=util$a,normalize$3={run:run$5,undo:undo$6};function run$5(eo){eo.graph().dummyChains=[],_$s.forEach(eo.edges(),function(to){normalizeEdge$1(eo,to)})}function normalizeEdge$1(eo,to){var no=to.v,io=eo.node(no).rank,so=to.w,ao=eo.node(so).rank,lo=to.name,uo=eo.edge(to),ho=uo.labelRank;if(ao!==io+1){eo.removeEdge(to);var go,mo,yo;for(yo=0,++io;iolo.lim&&(uo=lo,ho=!0);var go=_$p.filter(to.edges(),function(mo){return ho===isDescendant$2(eo,eo.node(mo.v),uo)&&ho!==isDescendant$2(eo,eo.node(mo.w),uo)});return _$p.minBy(go,function(mo){return slack$1(to,mo)})}function exchangeEdges$1(eo,to,no,io){var so=no.v,ao=no.w;eo.removeEdge(so,ao),eo.setEdge(io.v,io.w,{}),initLowLimValues$1(eo),initCutValues$1(eo,to),updateRanks$1(eo,to)}function updateRanks$1(eo,to){var no=_$p.find(eo.nodes(),function(so){return!to.node(so).parent}),io=preorder$1(eo,no);io=io.slice(1),_$p.forEach(io,function(so){var ao=eo.node(so).parent,lo=to.edge(so,ao),uo=!1;lo||(lo=to.edge(ao,so),uo=!0),to.node(so).rank=to.node(ao).rank+(uo?lo.minlen:-lo.minlen)})}function isTreeEdge$1(eo,to,no){return eo.hasEdge(to,no)}function isDescendant$2(eo,to,no){return no.low<=to.lim&&to.lim<=no.lim}var rankUtil=util$8,longestPath$1=rankUtil.longestPath,feasibleTree$1=feasibleTree_1,networkSimplex$1=networkSimplex_1,rank_1=rank$2;function rank$2(eo){switch(eo.graph().ranker){case"network-simplex":networkSimplexRanker$1(eo);break;case"tight-tree":tightTreeRanker$1(eo);break;case"longest-path":longestPathRanker$1(eo);break;default:networkSimplexRanker$1(eo)}}var longestPathRanker$1=longestPath$1;function tightTreeRanker$1(eo){longestPath$1(eo),feasibleTree$1(eo)}function networkSimplexRanker$1(eo){networkSimplex$1(eo)}var _$o=lodash_1,parentDummyChains_1=parentDummyChains$2;function parentDummyChains$2(eo){var to=postorder$2(eo);_$o.forEach(eo.graph().dummyChains,function(no){for(var io=eo.node(no),so=io.edgeObj,ao=findPath$1(eo,to,so.v,so.w),lo=ao.path,uo=ao.lca,ho=0,go=lo[ho],mo=!0;no!==so.w;){if(io=eo.node(no),mo){for(;(go=lo[ho])!==uo&&eo.node(go).maxRanklo||uo>to[ho].lim));for(go=ho,ho=io;(ho=eo.parent(ho))!==go;)ao.push(ho);return{path:so.concat(ao.reverse()),lca:go}}function postorder$2(eo){var to={},no=0;function io(so){var ao=no;_$o.forEach(eo.children(so),io),to[so]={low:ao,lim:no++}}return _$o.forEach(eo.children(),io),to}var _$n=lodash_1,util$7=util$a,nestingGraph$1={run:run$4,cleanup:cleanup$2};function run$4(eo){var to=util$7.addDummyNode(eo,"root",{},"_root"),no=treeDepths$1(eo),io=_$n.max(_$n.values(no))-1,so=2*io+1;eo.graph().nestingRoot=to,_$n.forEach(eo.edges(),function(lo){eo.edge(lo).minlen*=so});var ao=sumWeights$1(eo)+1;_$n.forEach(eo.children(),function(lo){dfs$2(eo,to,so,ao,io,no,lo)}),eo.graph().nodeRankFactor=so}function dfs$2(eo,to,no,io,so,ao,lo){var uo=eo.children(lo);if(!uo.length){lo!==to&&eo.setEdge(to,lo,{weight:0,minlen:no});return}var ho=util$7.addBorderNode(eo,"_bt"),go=util$7.addBorderNode(eo,"_bb"),mo=eo.node(lo);eo.setParent(ho,lo),mo.borderTop=ho,eo.setParent(go,lo),mo.borderBottom=go,_$n.forEach(uo,function(yo){dfs$2(eo,to,no,io,so,ao,yo);var So=eo.node(yo),_o=So.borderTop?So.borderTop:yo,ko=So.borderBottom?So.borderBottom:yo,Co=So.borderTop?io:2*io,$o=_o!==ko?1:so-ao[lo]+1;eo.setEdge(ho,_o,{weight:Co,minlen:$o,nestingEdge:!0}),eo.setEdge(ko,go,{weight:Co,minlen:$o,nestingEdge:!0})}),eo.parent(lo)||eo.setEdge(to,ho,{weight:0,minlen:so+ao[lo]})}function treeDepths$1(eo){var to={};function no(io,so){var ao=eo.children(io);ao&&ao.length&&_$n.forEach(ao,function(lo){no(lo,so+1)}),to[io]=so}return _$n.forEach(eo.children(),function(io){no(io,1)}),to}function sumWeights$1(eo){return _$n.reduce(eo.edges(),function(to,no){return to+eo.edge(no).weight},0)}function cleanup$2(eo){var to=eo.graph();eo.removeNode(to.nestingRoot),delete to.nestingRoot,_$n.forEach(eo.edges(),function(no){var io=eo.edge(no);io.nestingEdge&&eo.removeEdge(no)})}var _$m=lodash_1,util$6=util$a,addBorderSegments_1=addBorderSegments$2;function addBorderSegments$2(eo){function to(no){var io=eo.children(no),so=eo.node(no);if(io.length&&_$m.forEach(io,to),_$m.has(so,"minRank")){so.borderLeft=[],so.borderRight=[];for(var ao=so.minRank,lo=so.maxRank+1;ao0;)mo%2&&(yo+=uo[mo+1]),mo=mo-1>>1,uo[mo]+=go.weight;ho+=go.weight*yo})),ho}var _$i=lodash_1,barycenter_1=barycenter$2;function barycenter$2(eo,to){return _$i.map(to,function(no){var io=eo.inEdges(no);if(io.length){var so=_$i.reduce(io,function(ao,lo){var uo=eo.edge(lo),ho=eo.node(lo.v);return{sum:ao.sum+uo.weight*ho.order,weight:ao.weight+uo.weight}},{sum:0,weight:0});return{v:no,barycenter:so.sum/so.weight,weight:so.weight}}else return{v:no}})}var _$h=lodash_1,resolveConflicts_1=resolveConflicts$2;function resolveConflicts$2(eo,to){var no={};_$h.forEach(eo,function(so,ao){var lo=no[so.v]={indegree:0,in:[],out:[],vs:[so.v],i:ao};_$h.isUndefined(so.barycenter)||(lo.barycenter=so.barycenter,lo.weight=so.weight)}),_$h.forEach(to.edges(),function(so){var ao=no[so.v],lo=no[so.w];!_$h.isUndefined(ao)&&!_$h.isUndefined(lo)&&(lo.indegree++,ao.out.push(no[so.w]))});var io=_$h.filter(no,function(so){return!so.indegree});return doResolveConflicts$1(io)}function doResolveConflicts$1(eo){var to=[];function no(ao){return function(lo){lo.merged||(_$h.isUndefined(lo.barycenter)||_$h.isUndefined(ao.barycenter)||lo.barycenter>=ao.barycenter)&&mergeEntries$1(ao,lo)}}function io(ao){return function(lo){lo.in.push(ao),--lo.indegree===0&&eo.push(lo)}}for(;eo.length;){var so=eo.pop();to.push(so),_$h.forEach(so.in.reverse(),no(so)),_$h.forEach(so.out,io(so))}return _$h.map(_$h.filter(to,function(ao){return!ao.merged}),function(ao){return _$h.pick(ao,["vs","i","barycenter","weight"])})}function mergeEntries$1(eo,to){var no=0,io=0;eo.weight&&(no+=eo.barycenter*eo.weight,io+=eo.weight),to.weight&&(no+=to.barycenter*to.weight,io+=to.weight),eo.vs=to.vs.concat(eo.vs),eo.barycenter=no/io,eo.weight=io,eo.i=Math.min(to.i,eo.i),to.merged=!0}var _$g=lodash_1,util$5=util$a,sort_1=sort$2;function sort$2(eo,to){var no=util$5.partition(eo,function(mo){return _$g.has(mo,"barycenter")}),io=no.lhs,so=_$g.sortBy(no.rhs,function(mo){return-mo.i}),ao=[],lo=0,uo=0,ho=0;io.sort(compareWithBias$1(!!to)),ho=consumeUnsortable$1(ao,so,ho),_$g.forEach(io,function(mo){ho+=mo.vs.length,ao.push(mo.vs),lo+=mo.barycenter*mo.weight,uo+=mo.weight,ho=consumeUnsortable$1(ao,so,ho)});var go={vs:_$g.flatten(ao,!0)};return uo&&(go.barycenter=lo/uo,go.weight=uo),go}function consumeUnsortable$1(eo,to,no){for(var io;to.length&&(io=_$g.last(to)).i<=no;)to.pop(),eo.push(io.vs),no++;return no}function compareWithBias$1(eo){return function(to,no){return to.barycenterno.barycenter?1:eo?no.i-to.i:to.i-no.i}}var _$f=lodash_1,barycenter$1=barycenter_1,resolveConflicts$1=resolveConflicts_1,sort$1=sort_1,sortSubgraph_1=sortSubgraph$2;function sortSubgraph$2(eo,to,no,io){var so=eo.children(to),ao=eo.node(to),lo=ao?ao.borderLeft:void 0,uo=ao?ao.borderRight:void 0,ho={};lo&&(so=_$f.filter(so,function(ko){return ko!==lo&&ko!==uo}));var go=barycenter$1(eo,so);_$f.forEach(go,function(ko){if(eo.children(ko.v).length){var Co=sortSubgraph$2(eo,ko.v,no,io);ho[ko.v]=Co,_$f.has(Co,"barycenter")&&mergeBarycenters$1(ko,Co)}});var mo=resolveConflicts$1(go,no);expandSubgraphs$1(mo,ho);var yo=sort$1(mo,io);if(lo&&(yo.vs=_$f.flatten([lo,yo.vs,uo],!0),eo.predecessors(lo).length)){var So=eo.node(eo.predecessors(lo)[0]),_o=eo.node(eo.predecessors(uo)[0]);_$f.has(yo,"barycenter")||(yo.barycenter=0,yo.weight=0),yo.barycenter=(yo.barycenter*yo.weight+So.order+_o.order)/(yo.weight+2),yo.weight+=2}return yo}function expandSubgraphs$1(eo,to){_$f.forEach(eo,function(no){no.vs=_$f.flatten(no.vs.map(function(io){return to[io]?to[io].vs:io}),!0)})}function mergeBarycenters$1(eo,to){_$f.isUndefined(eo.barycenter)?(eo.barycenter=to.barycenter,eo.weight=to.weight):(eo.barycenter=(eo.barycenter*eo.weight+to.barycenter*to.weight)/(eo.weight+to.weight),eo.weight+=to.weight)}var _$e=lodash_1,Graph$5=graphlib_1.Graph,buildLayerGraph_1=buildLayerGraph$2;function buildLayerGraph$2(eo,to,no){var io=createRootNode$1(eo),so=new Graph$5({compound:!0}).setGraph({root:io}).setDefaultNodeLabel(function(ao){return eo.node(ao)});return _$e.forEach(eo.nodes(),function(ao){var lo=eo.node(ao),uo=eo.parent(ao);(lo.rank===to||lo.minRank<=to&&to<=lo.maxRank)&&(so.setNode(ao),so.setParent(ao,uo||io),_$e.forEach(eo[no](ao),function(ho){var go=ho.v===ao?ho.w:ho.v,mo=so.edge(go,ao),yo=_$e.isUndefined(mo)?0:mo.weight;so.setEdge(go,ao,{weight:eo.edge(ho).weight+yo})}),_$e.has(lo,"minRank")&&so.setNode(ao,{borderLeft:lo.borderLeft[to],borderRight:lo.borderRight[to]}))}),so}function createRootNode$1(eo){for(var to;eo.hasNode(to=_$e.uniqueId("_root")););return to}var _$d=lodash_1,addSubgraphConstraints_1=addSubgraphConstraints$2;function addSubgraphConstraints$2(eo,to,no){var io={},so;_$d.forEach(no,function(ao){for(var lo=eo.parent(ao),uo,ho;lo;){if(uo=eo.parent(lo),uo?(ho=io[uo],io[uo]=lo):(ho=so,so=lo),ho&&ho!==lo){to.setEdge(ho,lo);return}lo=uo}})}var _$c=lodash_1,initOrder$1=initOrder_1,crossCount$1=crossCount_1,sortSubgraph$1=sortSubgraph_1,buildLayerGraph$1=buildLayerGraph_1,addSubgraphConstraints$1=addSubgraphConstraints_1,Graph$4=graphlib_1.Graph,util$4=util$a,order_1=order$2;function order$2(eo){var to=util$4.maxRank(eo),no=buildLayerGraphs$1(eo,_$c.range(1,to+1),"inEdges"),io=buildLayerGraphs$1(eo,_$c.range(to-1,-1,-1),"outEdges"),so=initOrder$1(eo);assignOrder$1(eo,so);for(var ao=Number.POSITIVE_INFINITY,lo,uo=0,ho=0;ho<4;++uo,++ho){sweepLayerGraphs$1(uo%2?no:io,uo%4>=2),so=util$4.buildLayerMatrix(eo);var go=crossCount$1(eo,so);gogo)&&addConflict$1(no,So,mo)})})}function so(ao,lo){var uo=-1,ho,go=0;return _$b.forEach(lo,function(mo,yo){if(eo.node(mo).dummy==="border"){var So=eo.predecessors(mo);So.length&&(ho=eo.node(So[0]).order,io(lo,go,yo,uo,ho),go=yo,uo=ho)}io(lo,go,lo.length,ho,ao.length)}),lo}return _$b.reduce(to,so),no}function findOtherInnerSegmentNode$1(eo,to){if(eo.node(to).dummy)return _$b.find(eo.predecessors(to),function(no){return eo.node(no).dummy})}function addConflict$1(eo,to,no){if(to>no){var io=to;to=no,no=io}var so=eo[to];so||(eo[to]=so={}),so[no]=!0}function hasConflict$1(eo,to,no){if(to>no){var io=to;to=no,no=io}return _$b.has(eo[to],no)}function verticalAlignment$1(eo,to,no,io){var so={},ao={},lo={};return _$b.forEach(to,function(uo){_$b.forEach(uo,function(ho,go){so[ho]=ho,ao[ho]=ho,lo[ho]=go})}),_$b.forEach(to,function(uo){var ho=-1;_$b.forEach(uo,function(go){var mo=io(go);if(mo.length){mo=_$b.sortBy(mo,function(Co){return lo[Co]});for(var yo=(mo.length-1)/2,So=Math.floor(yo),_o=Math.ceil(yo);So<=_o;++So){var ko=mo[So];ao[go]===go&&ho=0;uo--)(lo=eo[uo])&&(ao=(so<3?lo(ao):so>3?lo(to,no,ao):lo(to,no))||ao);return so>3&&ao&&Object.defineProperty(to,no,ao),ao}function __spreadArray$1(eo,to,no){if(no||arguments.length===2)for(var io=0,so=to.length,ao;io"u"?InjectionMode$1.none:InjectionMode$1.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},to),this._classNameToArgs=(io=no==null?void 0:no.classNameToArgs)!==null&&io!==void 0?io:this._classNameToArgs,this._counter=(so=no==null?void 0:no.counter)!==null&&so!==void 0?so:this._counter,this._keyToClassName=(lo=(ao=this._config.classNameCache)!==null&&ao!==void 0?ao:no==null?void 0:no.keyToClassName)!==null&&lo!==void 0?lo:this._keyToClassName,this._preservedRules=(uo=no==null?void 0:no.preservedRules)!==null&&uo!==void 0?uo:this._preservedRules,this._rules=(ho=no==null?void 0:no.rules)!==null&&ho!==void 0?ho:this._rules}return eo.getInstance=function(){if(_stylesheet$1=_global$2[STYLESHEET_SETTING$1],!_stylesheet$1||_stylesheet$1._lastStyleElement&&_stylesheet$1._lastStyleElement.ownerDocument!==document){var to=(_global$2==null?void 0:_global$2.FabricConfig)||{},no=new eo(to.mergeStyles,to.serializedStylesheet);_stylesheet$1=no,_global$2[STYLESHEET_SETTING$1]=no}return _stylesheet$1},eo.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},eo.prototype.setConfig=function(to){this._config=__assign$4(__assign$4({},this._config),to)},eo.prototype.onReset=function(to){var no=this;return this._onResetCallbacks.push(to),function(){no._onResetCallbacks=no._onResetCallbacks.filter(function(io){return io!==to})}},eo.prototype.onInsertRule=function(to){var no=this;return this._onInsertRuleCallbacks.push(to),function(){no._onInsertRuleCallbacks=no._onInsertRuleCallbacks.filter(function(io){return io!==to})}},eo.prototype.getClassName=function(to){var no=this._config.namespace,io=to||this._config.defaultPrefix;return"".concat(no?no+"-":"").concat(io,"-").concat(this._counter++)},eo.prototype.cacheClassName=function(to,no,io,so){this._keyToClassName[no]=to,this._classNameToArgs[to]={args:io,rules:so}},eo.prototype.classNameFromKey=function(to){return this._keyToClassName[to]},eo.prototype.getClassNameCache=function(){return this._keyToClassName},eo.prototype.argsFromClassName=function(to){var no=this._classNameToArgs[to];return no&&no.args},eo.prototype.insertedRulesFromClassName=function(to){var no=this._classNameToArgs[to];return no&&no.rules},eo.prototype.insertRule=function(to,no){var io=this._config.injectionMode,so=io!==InjectionMode$1.none?this._getStyleElement():void 0;if(no&&this._preservedRules.push(to),so)switch(io){case InjectionMode$1.insertNode:var ao=so.sheet;try{ao.insertRule(to,ao.cssRules.length)}catch{}break;case InjectionMode$1.appendChild:so.appendChild(document.createTextNode(to));break}else this._rules.push(to);this._config.onInsertRule&&this._config.onInsertRule(to),this._onInsertRuleCallbacks.forEach(function(lo){return lo()})},eo.prototype.getRules=function(to){return(to?this._preservedRules.join(""):"")+this._rules.join("")},eo.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(to){return to()})},eo.prototype.resetKeys=function(){this._keyToClassName={}},eo.prototype._getStyleElement=function(){var to=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE$1||window.requestAnimationFrame(function(){to._styleElement=void 0})),this._styleElement},eo.prototype._createStyleElement=function(){var to=document.head,no=document.createElement("style"),io=null;no.setAttribute("data-merge-styles","true");var so=this._config.cspSettings;if(so&&so.nonce&&no.setAttribute("nonce",so.nonce),this._lastStyleElement)io=this._lastStyleElement.nextElementSibling;else{var ao=this._findPlaceholderStyleTag();ao?io=ao.nextElementSibling:io=to.childNodes[0]}return to.insertBefore(no,to.contains(io)?io:null),this._lastStyleElement=no,no},eo.prototype._findPlaceholderStyleTag=function(){var to=document.head;return to?to.querySelector("style[data-merge-styles]"):null},eo}();function extractStyleParts$1(){for(var eo=[],to=0;to=0)ao(go.split(" "));else{var mo=so.argsFromClassName(go);mo?ao(mo):no.indexOf(go)===-1&&no.push(go)}else Array.isArray(go)?ao(go):typeof go=="object"&&io.push(go)}}return ao(eo),{classes:no,objects:io}}function setRTL$1(eo){_rtl$1!==eo&&(_rtl$1=eo)}function getRTL$2(){return _rtl$1===void 0&&(_rtl$1=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl$1}var _rtl$1;_rtl$1=getRTL$2();function getStyleOptions$1(){return{rtl:getRTL$2()}}var rules$1={};function kebabRules$1(eo,to){var no=eo[to];no.charAt(0)!=="-"&&(eo[to]=rules$1[no]=rules$1[no]||no.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings$1;function getVendorSettings$1(){var eo;if(!_vendorSettings$1){var to=typeof document<"u"?document:void 0,no=typeof navigator<"u"?navigator:void 0,io=(eo=no==null?void 0:no.userAgent)===null||eo===void 0?void 0:eo.toLowerCase();to?_vendorSettings$1={isWebkit:!!(to&&"WebkitAppearance"in to.documentElement.style),isMoz:!!(io&&io.indexOf("firefox")>-1),isOpera:!!(io&&io.indexOf("opera")>-1),isMs:!!(no&&(/rv:11.0/i.test(no.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings$1={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings$1}var autoPrefixNames$1={"user-select":1};function prefixRules$1(eo,to){var no=getVendorSettings$1(),io=eo[to];if(autoPrefixNames$1[io]){var so=eo[to+1];autoPrefixNames$1[io]&&(no.isWebkit&&eo.push("-webkit-"+io,so),no.isMoz&&eo.push("-moz-"+io,so),no.isMs&&eo.push("-ms-"+io,so),no.isOpera&&eo.push("-o-"+io,so))}}var NON_PIXEL_NUMBER_PROPS$1=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits$1(eo,to){var no=eo[to],io=eo[to+1];if(typeof io=="number"){var so=NON_PIXEL_NUMBER_PROPS$1.indexOf(no)>-1,ao=no.indexOf("--")>-1,lo=so||ao?"":"px";eo[to+1]="".concat(io).concat(lo)}}var _a$c,LEFT$1="left",RIGHT$1="right",NO_FLIP$1="@noflip",NAME_REPLACEMENTS$1=(_a$c={},_a$c[LEFT$1]=RIGHT$1,_a$c[RIGHT$1]=LEFT$1,_a$c),VALUE_REPLACEMENTS$1={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules$1(eo,to,no){if(eo.rtl){var io=to[no];if(!io)return;var so=to[no+1];if(typeof so=="string"&&so.indexOf(NO_FLIP$1)>=0)to[no+1]=so.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(io.indexOf(LEFT$1)>=0)to[no]=io.replace(LEFT$1,RIGHT$1);else if(io.indexOf(RIGHT$1)>=0)to[no]=io.replace(RIGHT$1,LEFT$1);else if(String(so).indexOf(LEFT$1)>=0)to[no+1]=so.replace(LEFT$1,RIGHT$1);else if(String(so).indexOf(RIGHT$1)>=0)to[no+1]=so.replace(RIGHT$1,LEFT$1);else if(NAME_REPLACEMENTS$1[io])to[no]=NAME_REPLACEMENTS$1[io];else if(VALUE_REPLACEMENTS$1[so])to[no+1]=VALUE_REPLACEMENTS$1[so];else switch(io){case"margin":case"padding":to[no+1]=flipQuad$1(so);break;case"box-shadow":to[no+1]=negateNum$1(so,0);break}}}function negateNum$1(eo,to){var no=eo.split(" "),io=parseInt(no[to],10);return no[0]=no[0].replace(String(io),String(io*-1)),no.join(" ")}function flipQuad$1(eo){if(typeof eo=="string"){var to=eo.split(" ");if(to.length===4)return"".concat(to[0]," ").concat(to[3]," ").concat(to[2]," ").concat(to[1])}return eo}function tokenizeWithParentheses$1(eo){for(var to=[],no=0,io=0,so=0;sono&&to.push(eo.substring(no,so)),no=so+1);break}return no-1&&to.push([io.index,io.index+io[0].length,io[1].split(",").map(function(so){return":global(".concat(so.trim(),")")}).join(", ")]);return to.reverse().reduce(function(so,ao){var lo=ao[0],uo=ao[1],ho=ao[2],go=so.slice(0,lo),mo=so.slice(uo);return go+ho+mo},eo)}function expandSelector$1(eo,to){return eo.indexOf(":global(")>=0?eo.replace(globalSelectorRegExp$1,"$1"):eo.indexOf(":")===0?to+eo:eo.indexOf("&")<0?to+" "+eo:eo}function extractSelector$1(eo,to,no,io){to===void 0&&(to={__order:[]}),no.indexOf("@")===0?(no=no+"{"+eo,extractRules$1([io],to,no)):no.indexOf(",")>-1?expandCommaSeparatedGlobals$1(no).split(",").map(function(so){return so.trim()}).forEach(function(so){return extractRules$1([io],to,expandSelector$1(so,eo))}):extractRules$1([io],to,expandSelector$1(no,eo))}function extractRules$1(eo,to,no){to===void 0&&(to={__order:[]}),no===void 0&&(no="&");var io=Stylesheet$2.getInstance(),so=to[no];so||(so={},to[no]=so,to.__order.push(no));for(var ao=0,lo=eo;ao0){no.subComponentStyles={};var So=no.subComponentStyles,_o=function(ko){if(io.hasOwnProperty(ko)){var Co=io[ko];So[ko]=function($o){return concatStyleSets.apply(void 0,Co.map(function(Ro){return typeof Ro=="function"?Ro($o):Ro}))}}};for(var go in io)_o(go)}return no}function mergeStyleSets(){for(var eo=[],to=0;to"u")){var to=eo;return to&&to.ownerDocument&&to.ownerDocument.defaultView?to.ownerDocument.defaultView:_window$1}}var Async=function(){function eo(to,no){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=to||null,this._onErrorHandler=no,this._noop=function(){}}return eo.prototype.dispose=function(){var to;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(to in this._timeoutIds)this._timeoutIds.hasOwnProperty(to)&&this.clearTimeout(parseInt(to,10));this._timeoutIds=null}if(this._immediateIds){for(to in this._immediateIds)this._immediateIds.hasOwnProperty(to)&&this.clearImmediate(parseInt(to,10));this._immediateIds=null}if(this._intervalIds){for(to in this._intervalIds)this._intervalIds.hasOwnProperty(to)&&this.clearInterval(parseInt(to,10));this._intervalIds=null}if(this._animationFrameIds){for(to in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(to)&&this.cancelAnimationFrame(parseInt(to,10));this._animationFrameIds=null}},eo.prototype.setTimeout=function(to,no){var io=this,so=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),so=setTimeout(function(){try{io._timeoutIds&&delete io._timeoutIds[so],to.apply(io._parent)}catch(ao){io._logError(ao)}},no),this._timeoutIds[so]=!0),so},eo.prototype.clearTimeout=function(to){this._timeoutIds&&this._timeoutIds[to]&&(clearTimeout(to),delete this._timeoutIds[to])},eo.prototype.setImmediate=function(to,no){var io=this,so=0,ao=getWindow(no);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var lo=function(){try{io._immediateIds&&delete io._immediateIds[so],to.apply(io._parent)}catch(uo){io._logError(uo)}};so=ao.setTimeout(lo,0),this._immediateIds[so]=!0}return so},eo.prototype.clearImmediate=function(to,no){var io=getWindow(no);this._immediateIds&&this._immediateIds[to]&&(io.clearTimeout(to),delete this._immediateIds[to])},eo.prototype.setInterval=function(to,no){var io=this,so=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),so=setInterval(function(){try{to.apply(io._parent)}catch(ao){io._logError(ao)}},no),this._intervalIds[so]=!0),so},eo.prototype.clearInterval=function(to){this._intervalIds&&this._intervalIds[to]&&(clearInterval(to),delete this._intervalIds[to])},eo.prototype.throttle=function(to,no,io){var so=this;if(this._isDisposed)return this._noop;var ao=no||0,lo=!0,uo=!0,ho=0,go,mo,yo=null;io&&typeof io.leading=="boolean"&&(lo=io.leading),io&&typeof io.trailing=="boolean"&&(uo=io.trailing);var So=function(ko){var Co=Date.now(),$o=Co-ho,Ro=lo?ao-$o:ao;return $o>=ao&&(!ko||lo)?(ho=Co,yo&&(so.clearTimeout(yo),yo=null),go=to.apply(so._parent,mo)):yo===null&&uo&&(yo=so.setTimeout(So,Ro)),go},_o=function(){for(var ko=[],Co=0;Co=lo&&(Go=!0),mo=Lo);var Do=Lo-mo,Uo=lo-Do,Ho=Lo-yo,Yo=!1;return go!==null&&(Ho>=go&&ko?Yo=!0:Uo=Math.min(Uo,go-Ho)),Do>=lo||Yo||Go?$o(Lo):(ko===null||!Fo)&&ho&&(ko=so.setTimeout(Ro,Uo)),So},Oo=function(){return!!ko},No=function(){Oo()&&Co(Date.now())},Mo=function(){return Oo()&&$o(Date.now()),So},Bo=function(){for(var Fo=[],Lo=0;Lo-1)for(var lo=no.split(/[ ,]+/),uo=0;uo"u")){var to=eo;return to&&to.ownerDocument?to.ownerDocument:document}}var _scrollbarWidth,_bodyScrollDisabledCount=0,DisabledScrollClassName=mergeStyles$1({overflow:"hidden !important"}),DATA_IS_SCROLLABLE_ATTRIBUTE="data-is-scrollable",allowScrollOnElement=function(eo,to){if(eo){var no=0,io=null,so=function(lo){lo.targetTouches.length===1&&(no=lo.targetTouches[0].clientY)},ao=function(lo){if(lo.targetTouches.length===1&&(lo.stopPropagation(),!!io)){var uo=lo.targetTouches[0].clientY-no,ho=findScrollableParent(lo.target);ho&&(io=ho),io.scrollTop===0&&uo>0&&lo.preventDefault(),io.scrollHeight-Math.ceil(io.scrollTop)<=io.clientHeight&&uo<0&&lo.preventDefault()}};to.on(eo,"touchstart",so,{passive:!1}),to.on(eo,"touchmove",ao,{passive:!1}),io=eo}},allowOverscrollOnElement=function(eo,to){if(eo){var no=function(io){io.stopPropagation()};to.on(eo,"touchmove",no,{passive:!1})}},_disableIosBodyScroll=function(eo){eo.preventDefault()};function disableBodyScroll(){var eo=getDocument();eo&&eo.body&&!_bodyScrollDisabledCount&&(eo.body.classList.add(DisabledScrollClassName),eo.body.addEventListener("touchmove",_disableIosBodyScroll,{passive:!1,capture:!1})),_bodyScrollDisabledCount++}function enableBodyScroll(){if(_bodyScrollDisabledCount>0){var eo=getDocument();eo&&eo.body&&_bodyScrollDisabledCount===1&&(eo.body.classList.remove(DisabledScrollClassName),eo.body.removeEventListener("touchmove",_disableIosBodyScroll)),_bodyScrollDisabledCount--}}function getScrollbarWidth(){if(_scrollbarWidth===void 0){var eo=document.createElement("div");eo.style.setProperty("width","100px"),eo.style.setProperty("height","100px"),eo.style.setProperty("overflow","scroll"),eo.style.setProperty("position","absolute"),eo.style.setProperty("top","-9999px"),document.body.appendChild(eo),_scrollbarWidth=eo.offsetWidth-eo.clientWidth,document.body.removeChild(eo)}return _scrollbarWidth}function findScrollableParent(eo){for(var to=eo,no=getDocument(eo);to&&to!==no.body;){if(to.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)==="true")return to;to=to.parentElement}for(to=eo;to&&to!==no.body;){if(to.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)!=="false"){var io=getComputedStyle(to),so=io?io.getPropertyValue("overflow-y"):"";if(so&&(so==="scroll"||so==="auto"))return to}to=to.parentElement}return(!to||to===no.body)&&(to=getWindow(eo)),to}var _warningCallback=void 0;function warn$1(eo){console&&console.warn&&console.warn(eo)}var GLOBAL_SETTINGS_PROP_NAME="__globalSettings__",CALLBACK_STATE_PROP_NAME="__callbacks__",_counter=0,GlobalSettings=function(){function eo(){}return eo.getValue=function(to,no){var io=_getGlobalSettings();return io[to]===void 0&&(io[to]=typeof no=="function"?no():no),io[to]},eo.setValue=function(to,no){var io=_getGlobalSettings(),so=io[CALLBACK_STATE_PROP_NAME],ao=io[to];if(no!==ao){io[to]=no;var lo={oldValue:ao,value:no,key:to};for(var uo in so)so.hasOwnProperty(uo)&&so[uo](lo)}return no},eo.addChangeListener=function(to){var no=to.__id__,io=_getCallbacks();no||(no=to.__id__=String(_counter++)),io[no]=to},eo.removeChangeListener=function(to){var no=_getCallbacks();delete no[to.__id__]},eo}();function _getGlobalSettings(){var eo,to=getWindow(),no=to||{};return no[GLOBAL_SETTINGS_PROP_NAME]||(no[GLOBAL_SETTINGS_PROP_NAME]=(eo={},eo[CALLBACK_STATE_PROP_NAME]={},eo)),no[GLOBAL_SETTINGS_PROP_NAME]}function _getCallbacks(){var eo=_getGlobalSettings();return eo[CALLBACK_STATE_PROP_NAME]}var KeyCodes$1={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,colon:58,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222},Rectangle=function(){function eo(to,no,io,so){to===void 0&&(to=0),no===void 0&&(no=0),io===void 0&&(io=0),so===void 0&&(so=0),this.top=io,this.bottom=so,this.left=to,this.right=no}return Object.defineProperty(eo.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),eo.prototype.equals=function(to){return parseFloat(this.top.toFixed(4))===parseFloat(to.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(to.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(to.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(to.right.toFixed(4))},eo}();function appendFunction(eo){for(var to=[],no=1;no-1&&so._virtual.children.splice(ao,1)}no._virtual.parent=io||void 0,io&&(io._virtual||(io._virtual={children:[]}),io._virtual.children.push(no))}var IS_FOCUSABLE_ATTRIBUTE$1="data-is-focusable",IS_VISIBLE_ATTRIBUTE="data-is-visible",FOCUSZONE_ID_ATTRIBUTE$1="data-focuszone-id",FOCUSZONE_SUB_ATTRIBUTE="data-is-sub-focuszone";function getFirstFocusable(eo,to,no){return getNextElement(eo,to,!0,!1,!1,no)}function getLastFocusable(eo,to,no){return getPreviousElement(eo,to,!0,!1,!0,no)}function getFirstTabbable(eo,to,no,io){return io===void 0&&(io=!0),getNextElement(eo,to,io,!1,!1,no,!1,!0)}function getLastTabbable(eo,to,no,io){return io===void 0&&(io=!0),getPreviousElement(eo,to,io,!1,!0,no,!1,!0)}function focusFirstChild(eo,to){var no=getNextElement(eo,eo,!0,!1,!1,!0,void 0,void 0,to);return no?(focusAsync(no),!0):!1}function getPreviousElement(eo,to,no,io,so,ao,lo,uo){if(!to||!lo&&to===eo)return null;var ho=isElementVisible(to);if(so&&ho&&(ao||!(isElementFocusZone(to)||isElementFocusSubZone(to)))){var go=getPreviousElement(eo,to.lastElementChild,!0,!0,!0,ao,lo,uo);if(go){if(uo&&isElementTabbable(go,!0)||!uo)return go;var mo=getPreviousElement(eo,go.previousElementSibling,!0,!0,!0,ao,lo,uo);if(mo)return mo;for(var yo=go.parentElement;yo&&yo!==to;){var So=getPreviousElement(eo,yo.previousElementSibling,!0,!0,!0,ao,lo,uo);if(So)return So;yo=yo.parentElement}}}if(no&&ho&&isElementTabbable(to,uo))return to;var _o=getPreviousElement(eo,to.previousElementSibling,!0,!0,!0,ao,lo,uo);return _o||(io?null:getPreviousElement(eo,to.parentElement,!0,!1,!1,ao,lo,uo))}function getNextElement(eo,to,no,io,so,ao,lo,uo,ho){if(!to||to===eo&&so&&!lo)return null;var go=ho?isElementVisibleAndNotHidden:isElementVisible,mo=go(to);if(no&&mo&&isElementTabbable(to,uo))return to;if(!so&&mo&&(ao||!(isElementFocusZone(to)||isElementFocusSubZone(to)))){var yo=getNextElement(eo,to.firstElementChild,!0,!0,!1,ao,lo,uo,ho);if(yo)return yo}if(to===eo)return null;var So=getNextElement(eo,to.nextElementSibling,!0,!0,!1,ao,lo,uo,ho);return So||(io?null:getNextElement(eo,to.parentElement,!1,!1,!0,ao,lo,uo,ho))}function isElementVisible(eo){if(!eo||!eo.getAttribute)return!1;var to=eo.getAttribute(IS_VISIBLE_ATTRIBUTE);return to!=null?to==="true":eo.offsetHeight!==0||eo.offsetParent!==null||eo.isVisible===!0}function isElementVisibleAndNotHidden(eo){return!!eo&&isElementVisible(eo)&&!eo.hidden&&window.getComputedStyle(eo).visibility!=="hidden"}function isElementTabbable(eo,to){if(!eo||eo.disabled)return!1;var no=0,io=null;eo&&eo.getAttribute&&(io=eo.getAttribute("tabIndex"),io&&(no=parseInt(io,10)));var so=eo.getAttribute?eo.getAttribute(IS_FOCUSABLE_ATTRIBUTE$1):null,ao=io!==null&&no>=0,lo=!!eo&&so!=="false"&&(eo.tagName==="A"||eo.tagName==="BUTTON"||eo.tagName==="INPUT"||eo.tagName==="TEXTAREA"||eo.tagName==="SELECT"||so==="true"||ao);return to?no!==-1&&lo:lo}function isElementFocusZone(eo){return!!(eo&&eo.getAttribute&&eo.getAttribute(FOCUSZONE_ID_ATTRIBUTE$1))}function isElementFocusSubZone(eo){return!!(eo&&eo.getAttribute&&eo.getAttribute(FOCUSZONE_SUB_ATTRIBUTE)==="true")}function doesElementContainFocus(eo){var to=getDocument(eo),no=to&&to.activeElement;return!!(no&&elementContains(eo,no))}function shouldWrapFocus(eo,to){return elementContainsAttribute(eo,to)!=="true"}var animationId=void 0;function focusAsync(eo){if(eo){var to=getWindow(eo);to&&(animationId!==void 0&&to.cancelAnimationFrame(animationId),animationId=to.requestAnimationFrame(function(){eo&&eo.focus(),animationId=void 0}))}}function getFocusableByIndexPath(eo,to){for(var no=eo,io=0,so=to;io(eo.cacheSize||MAX_CACHE_COUNT)){var _o=getWindow();!((ho=_o==null?void 0:_o.FabricConfig)===null||ho===void 0)&&ho.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(no,"/").concat(io,".")),console.trace()),to.clear(),no=0,eo.disableCaching=!0}return go[retVal]};return ao}function _traverseEdge(eo,to){return to=_normalizeValue(to),eo.has(to)||eo.set(to,new Map),eo.get(to)}function _traverseMap(eo,to){if(typeof to=="function"){var no=to.__cachedInputs__;if(no)for(var io=0,so=to.__cachedInputs__;io"u"?null:WeakMap;function resetMemoizations(){_resetCounter++}function memoizeFunction(eo,to,no){if(to===void 0&&(to=100),no===void 0&&(no=!1),!_weakMap)return eo;if(!_initializedStylesheetResets$1){var io=Stylesheet$2.getInstance();io&&io.onReset&&Stylesheet$2.getInstance().onReset(resetMemoizations),_initializedStylesheetResets$1=!0}var so,ao=0,lo=_resetCounter;return function(){for(var ho=[],go=0;go0&&ao>to)&&(so=_createNode(),ao=0,lo=_resetCounter),mo=so;for(var yo=0;yo=0||ho.indexOf("data-")===0||ho.indexOf("aria-")===0;go&&(!no||(no==null?void 0:no.indexOf(ho))===-1)&&(so[ho]=eo[ho])}return so}function initializeComponentRef(eo){extendComponent(eo,{componentDidMount:_onMount,componentDidUpdate:_onUpdate,componentWillUnmount:_onUnmount})}function _onMount(){_setComponentRef(this.props.componentRef,this)}function _onUpdate(eo){eo.componentRef!==this.props.componentRef&&(_setComponentRef(eo.componentRef,null),_setComponentRef(this.props.componentRef,this))}function _onUnmount(){_setComponentRef(this.props.componentRef,null)}function _setComponentRef(eo,to){eo&&(typeof eo=="object"?eo.current=to:typeof eo=="function"&&eo(to))}var _a$b,DirectionalKeyCodes=(_a$b={},_a$b[KeyCodes$1.up]=1,_a$b[KeyCodes$1.down]=1,_a$b[KeyCodes$1.left]=1,_a$b[KeyCodes$1.right]=1,_a$b[KeyCodes$1.home]=1,_a$b[KeyCodes$1.end]=1,_a$b[KeyCodes$1.tab]=1,_a$b[KeyCodes$1.pageUp]=1,_a$b[KeyCodes$1.pageDown]=1,_a$b);function isDirectionalKeyCode(eo){return!!DirectionalKeyCodes[eo]}var IsFocusVisibleClassName="ms-Fabric--isFocusVisible",IsFocusHiddenClassName="ms-Fabric--isFocusHidden";function updateClassList(eo,to){eo&&(eo.classList.add(to?IsFocusVisibleClassName:IsFocusHiddenClassName),eo.classList.remove(to?IsFocusHiddenClassName:IsFocusVisibleClassName))}function setFocusVisibility(eo,to,no){var io;no?no.forEach(function(so){return updateClassList(so.current,eo)}):updateClassList((io=getWindow(to))===null||io===void 0?void 0:io.document.body,eo)}var mountCounters=new WeakMap,callbackMap=new WeakMap;function setMountCounters(eo,to){var no,io=mountCounters.get(eo);return io?no=io+to:no=1,mountCounters.set(eo,no),no}function setCallbackMap(eo){var to=callbackMap.get(eo);if(to)return to;var no=function(lo){return _onMouseDown(lo,eo.registeredProviders)},io=function(lo){return _onPointerDown(lo,eo.registeredProviders)},so=function(lo){return _onKeyDown(lo,eo.registeredProviders)},ao=function(lo){return _onKeyUp(lo,eo.registeredProviders)};return to={onMouseDown:no,onPointerDown:io,onKeyDown:so,onKeyUp:ao},callbackMap.set(eo,to),to}var FocusRectsContext=reactExports.createContext(void 0);function useFocusRects(eo){var to=reactExports.useContext(FocusRectsContext);reactExports.useEffect(function(){var no,io,so,ao,lo=getWindow(eo==null?void 0:eo.current);if(!(!lo||((no=lo.FabricConfig)===null||no===void 0?void 0:no.disableFocusRects)===!0)){var uo=lo,ho,go,mo,yo;if(!((io=to==null?void 0:to.providerRef)===null||io===void 0)&&io.current&&(!((ao=(so=to==null?void 0:to.providerRef)===null||so===void 0?void 0:so.current)===null||ao===void 0)&&ao.addEventListener)){uo=to.providerRef.current;var So=setCallbackMap(to);ho=So.onMouseDown,go=So.onPointerDown,mo=So.onKeyDown,yo=So.onKeyUp}else ho=_onMouseDown,go=_onPointerDown,mo=_onKeyDown,yo=_onKeyUp;var _o=setMountCounters(uo,1);return _o<=1&&(uo.addEventListener("mousedown",ho,!0),uo.addEventListener("pointerdown",go,!0),uo.addEventListener("keydown",mo,!0),uo.addEventListener("keyup",yo,!0)),function(){var ko;!lo||((ko=lo.FabricConfig)===null||ko===void 0?void 0:ko.disableFocusRects)===!0||(_o=setMountCounters(uo,-1),_o===0&&(uo.removeEventListener("mousedown",ho,!0),uo.removeEventListener("pointerdown",go,!0),uo.removeEventListener("keydown",mo,!0),uo.removeEventListener("keyup",yo,!0)))}}},[to,eo])}var FocusRects=function(eo){return useFocusRects(eo.rootRef),null};function _onMouseDown(eo,to){setFocusVisibility(!1,eo.target,to)}function _onPointerDown(eo,to){eo.pointerType!=="mouse"&&setFocusVisibility(!1,eo.target,to)}function _onKeyDown(eo,to){isDirectionalKeyCode(eo.which)&&setFocusVisibility(!0,eo.target,to)}function _onKeyUp(eo,to){isDirectionalKeyCode(eo.which)&&setFocusVisibility(!0,eo.target,to)}var FocusRectsProvider=function(eo){var to=eo.providerRef,no=eo.layerRoot,io=reactExports.useState([])[0],so=reactExports.useContext(FocusRectsContext),ao=so!==void 0&&!no,lo=reactExports.useMemo(function(){return ao?void 0:{providerRef:to,registeredProviders:io,registerProvider:function(uo){io.push(uo),so==null||so.registerProvider(uo)},unregisterProvider:function(uo){so==null||so.unregisterProvider(uo);var ho=io.indexOf(uo);ho>=0&&io.splice(ho,1)}}},[to,io,so,ao]);return reactExports.useEffect(function(){if(lo)return lo.registerProvider(lo.providerRef),function(){return lo.unregisterProvider(lo.providerRef)}},[lo]),lo?reactExports.createElement(FocusRectsContext.Provider,{value:lo},eo.children):reactExports.createElement(reactExports.Fragment,null,eo.children)};function getItem(eo){var to=null;try{var no=getWindow();to=no?no.localStorage.getItem(eo):null}catch{}return to}var _language,STORAGE_KEY="language";function getLanguage(eo){if(eo===void 0&&(eo="sessionStorage"),_language===void 0){var to=getDocument(),no=eo==="localStorage"?getItem(STORAGE_KEY):eo==="sessionStorage"?getItem$1(STORAGE_KEY):void 0;no&&(_language=no),_language===void 0&&to&&(_language=to.documentElement.getAttribute("lang")),_language===void 0&&(_language="en")}return _language}function merge$7(eo){for(var to=[],no=1;no-1;eo[io]=ao?so:_merge(eo[io]||{},so,no)}else eo[io]=so}return no.pop(),eo}var isIOS=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},tagsToIgnore=["TEMPLATE","STYLE","SCRIPT"];function modalize(eo){var to=getDocument(eo);if(!to)return function(){};for(var no=[];eo!==to.body&&eo.parentElement;){for(var io=0,so=eo.parentElement.children;io"u"||eo){var no=getWindow(),io=(to=no==null?void 0:no.navigator)===null||to===void 0?void 0:to.userAgent;isMacResult=!!io&&io.indexOf("Macintosh")!==-1}return!!isMacResult}function createComposedRenderFunction(eo){var to=createMemoizer(function(no){var io=createMemoizer(function(so){return function(ao){return no(ao,so)}});return function(so,ao){return eo(so,ao?io(ao):no)}});return to}var memoizer=createMemoizer(createComposedRenderFunction);function composeRenderFunction(eo,to){return memoizer(eo)(to)}var DefaultFields=["theme","styles"];function styled(eo,to,no,io,so){io=io||{scope:"",fields:void 0};var ao=io.scope,lo=io.fields,uo=lo===void 0?DefaultFields:lo,ho=reactExports.forwardRef(function(mo,yo){var So=reactExports.useRef(),_o=useCustomizationSettings(uo,ao),ko=_o.styles;_o.dir;var Co=__rest$1(_o,["styles","dir"]),$o=no?no(mo):void 0,Ro=So.current&&So.current.__cachedInputs__||[],Oo=mo.styles;if(!So.current||ko!==Ro[1]||Oo!==Ro[2]){var No=function(Mo){return concatStyleSetsWithProps(Mo,to,ko,Oo)};No.__cachedInputs__=[to,ko,Oo],No.__noStyleOverride__=!ko&&!Oo,So.current=No}return reactExports.createElement(eo,__assign$4({ref:yo},Co,$o,mo,{styles:So.current}))});ho.displayName="Styled".concat(eo.displayName||eo.name);var go=so?reactExports.memo(ho):ho;return ho.displayName&&(go.displayName=ho.displayName),go}function getPropsWithDefaults(eo,to){for(var no=__assign$4({},to),io=0,so=Object.keys(eo);ioio?" (+ ".concat(_missingIcons.length-io," more)"):"")),_missingIconsTimer=void 0,_missingIcons=[]},no)))}function makeSemanticColors(eo,to,no,io,so){so===void 0&&(so=!1);var ao=__assign$4({primaryButtonBorder:"transparent",errorText:io?"#F1707B":"#a4262c",messageText:io?"#F3F2F1":"#323130",messageLink:io?"#6CB8F6":"#005A9E",messageLinkHovered:io?"#82C7FF":"#004578",infoIcon:io?"#C8C6C4":"#605e5c",errorIcon:io?"#F1707B":"#A80000",blockingIcon:io?"#442726":"#FDE7E9",warningIcon:io?"#C8C6C4":"#797775",severeWarningIcon:io?"#FCE100":"#D83B01",successIcon:io?"#92C353":"#107C10",infoBackground:io?"#323130":"#f3f2f1",errorBackground:io?"#442726":"#FDE7E9",blockingBackground:io?"#442726":"#FDE7E9",warningBackground:io?"#433519":"#FFF4CE",severeWarningBackground:io?"#4F2A0F":"#FED9CC",successBackground:io?"#393D1B":"#DFF6DD",warningHighlight:io?"#fff100":"#ffb900",successText:io?"#92c353":"#107C10"},no),lo=getSemanticColors(eo,to,ao,io);return _fixDeprecatedSlots(lo,so)}function getSemanticColors(eo,to,no,io,so){var ao={},lo=eo||{},uo=lo.white,ho=lo.black,go=lo.themePrimary,mo=lo.themeDark,yo=lo.themeDarker,So=lo.themeDarkAlt,_o=lo.themeLighter,ko=lo.neutralLight,Co=lo.neutralLighter,$o=lo.neutralDark,Ro=lo.neutralQuaternary,Oo=lo.neutralQuaternaryAlt,No=lo.neutralPrimary,Mo=lo.neutralSecondary,Bo=lo.neutralSecondaryAlt,Fo=lo.neutralTertiary,Lo=lo.neutralTertiaryAlt,Go=lo.neutralLighterAlt,Do=lo.accent;return uo&&(ao.bodyBackground=uo,ao.bodyFrameBackground=uo,ao.accentButtonText=uo,ao.buttonBackground=uo,ao.primaryButtonText=uo,ao.primaryButtonTextHovered=uo,ao.primaryButtonTextPressed=uo,ao.inputBackground=uo,ao.inputForegroundChecked=uo,ao.listBackground=uo,ao.menuBackground=uo,ao.cardStandoutBackground=uo),ho&&(ao.bodyTextChecked=ho,ao.buttonTextCheckedHovered=ho),go&&(ao.link=go,ao.primaryButtonBackground=go,ao.inputBackgroundChecked=go,ao.inputIcon=go,ao.inputFocusBorderAlt=go,ao.menuIcon=go,ao.menuHeader=go,ao.accentButtonBackground=go),mo&&(ao.primaryButtonBackgroundPressed=mo,ao.inputBackgroundCheckedHovered=mo,ao.inputIconHovered=mo),yo&&(ao.linkHovered=yo),So&&(ao.primaryButtonBackgroundHovered=So),_o&&(ao.inputPlaceholderBackgroundChecked=_o),ko&&(ao.bodyBackgroundChecked=ko,ao.bodyFrameDivider=ko,ao.bodyDivider=ko,ao.variantBorder=ko,ao.buttonBackgroundCheckedHovered=ko,ao.buttonBackgroundPressed=ko,ao.listItemBackgroundChecked=ko,ao.listHeaderBackgroundPressed=ko,ao.menuItemBackgroundPressed=ko,ao.menuItemBackgroundChecked=ko),Co&&(ao.bodyBackgroundHovered=Co,ao.buttonBackgroundHovered=Co,ao.buttonBackgroundDisabled=Co,ao.buttonBorderDisabled=Co,ao.primaryButtonBackgroundDisabled=Co,ao.disabledBackground=Co,ao.listItemBackgroundHovered=Co,ao.listHeaderBackgroundHovered=Co,ao.menuItemBackgroundHovered=Co),Ro&&(ao.primaryButtonTextDisabled=Ro,ao.disabledSubtext=Ro),Oo&&(ao.listItemBackgroundCheckedHovered=Oo),Fo&&(ao.disabledBodyText=Fo,ao.variantBorderHovered=(no==null?void 0:no.variantBorderHovered)||Fo,ao.buttonTextDisabled=Fo,ao.inputIconDisabled=Fo,ao.disabledText=Fo),No&&(ao.bodyText=No,ao.actionLink=No,ao.buttonText=No,ao.inputBorderHovered=No,ao.inputText=No,ao.listText=No,ao.menuItemText=No),Go&&(ao.bodyStandoutBackground=Go,ao.defaultStateBackground=Go),$o&&(ao.actionLinkHovered=$o,ao.buttonTextHovered=$o,ao.buttonTextChecked=$o,ao.buttonTextPressed=$o,ao.inputTextHovered=$o,ao.menuItemTextHovered=$o),Mo&&(ao.bodySubtext=Mo,ao.focusBorder=Mo,ao.inputBorder=Mo,ao.smallInputBorder=Mo,ao.inputPlaceholderText=Mo),Bo&&(ao.buttonBorder=Bo),Lo&&(ao.disabledBodySubtext=Lo,ao.disabledBorder=Lo,ao.buttonBackgroundChecked=Lo,ao.menuDivider=Lo),Do&&(ao.accentButtonBackground=Do),to!=null&&to.elevation4&&(ao.cardShadow=to.elevation4),!io&&(to!=null&&to.elevation8)?ao.cardShadowHovered=to.elevation8:ao.variantBorderHovered&&(ao.cardShadowHovered="0 0 1px "+ao.variantBorderHovered),ao=__assign$4(__assign$4({},ao),no),ao}function _fixDeprecatedSlots(eo,to){var no="";return to===!0&&(no=" /* @deprecated */"),eo.listTextColor=eo.listText+no,eo.menuItemBackgroundChecked+=no,eo.warningHighlight+=no,eo.warningText=eo.messageText+no,eo.successText+=no,eo}function mergeThemes(eo,to){var no,io,so;to===void 0&&(to={});var ao=merge$7({},eo,to,{semanticColors:getSemanticColors(to.palette,to.effects,to.semanticColors,to.isInverted===void 0?eo.isInverted:to.isInverted)});if(!((no=to.palette)===null||no===void 0)&&no.themePrimary&&!(!((io=to.palette)===null||io===void 0)&&io.accent)&&(ao.palette.accent=to.palette.themePrimary),to.defaultFontStyle)for(var lo=0,uo=Object.keys(ao.fonts);lo"u"?global:window,_styleNonce=_root$1&&_root$1.CSPSettings&&_root$1.CSPSettings.nonce,_themeState=initializeThemeState();function initializeThemeState(){var eo=_root$1.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return eo.runState||(eo=__assign$3(__assign$3({},eo),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),eo.registeredThemableStyles||(eo=__assign$3(__assign$3({},eo),{registeredThemableStyles:[]})),_root$1.__themeState__=eo,eo}function applyThemableStyles(eo,to){_themeState.loadStyles?_themeState.loadStyles(resolveThemableArray(eo).styleString,eo):registerStyles$1(eo)}function loadTheme$1(eo){_themeState.theme=eo,reloadStyles()}function clearStyles(eo){eo===void 0&&(eo=3),(eo===3||eo===2)&&(clearStylesInternal(_themeState.registeredStyles),_themeState.registeredStyles=[]),(eo===3||eo===1)&&(clearStylesInternal(_themeState.registeredThemableStyles),_themeState.registeredThemableStyles=[])}function clearStylesInternal(eo){eo.forEach(function(to){var no=to&&to.styleElement;no&&no.parentElement&&no.parentElement.removeChild(no)})}function reloadStyles(){if(_themeState.theme){for(var eo=[],to=0,no=_themeState.registeredThemableStyles;to0&&(clearStyles(1),applyThemableStyles([].concat.apply([],eo)))}}function resolveThemableArray(eo){var to=_themeState.theme,no=!1,io=(eo||[]).map(function(so){var ao=so.theme;if(ao){no=!0;var lo=to?to[ao]:void 0,uo=so.defaultValue||"inherit";return to&&!lo&&console&&!(ao in to)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(ao,'". Falling back to "').concat(uo,'".')),lo||uo}else return so.rawString});return{styleString:io.join(""),themable:no}}function registerStyles$1(eo){if(!(typeof document>"u")){var to=document.getElementsByTagName("head")[0],no=document.createElement("style"),io=resolveThemableArray(eo),so=io.styleString,ao=io.themable;no.setAttribute("data-load-themed-styles","true"),_styleNonce&&no.setAttribute("nonce",_styleNonce),no.appendChild(document.createTextNode(so)),_themeState.perf.count++,to.appendChild(no);var lo=document.createEvent("HTMLEvents");lo.initEvent("styleinsert",!0,!1),lo.args={newStyle:no},document.dispatchEvent(lo);var uo={styleElement:no,themableStyle:eo};ao?_themeState.registeredThemableStyles.push(uo):_themeState.registeredStyles.push(uo)}}var _theme=createTheme$1({}),_onThemeChangeCallbacks=[],ThemeSettingName="theme";function initializeThemeInCustomizations(){var eo,to,no,io=getWindow();!((to=io==null?void 0:io.FabricConfig)===null||to===void 0)&&to.legacyTheme?loadTheme(io.FabricConfig.legacyTheme):Customizations.getSettings([ThemeSettingName]).theme||(!((no=io==null?void 0:io.FabricConfig)===null||no===void 0)&&no.theme&&(_theme=createTheme$1(io.FabricConfig.theme)),Customizations.applySettings((eo={},eo[ThemeSettingName]=_theme,eo)))}initializeThemeInCustomizations();function getTheme(eo){return eo===void 0&&(eo=!1),eo===!0&&(_theme=createTheme$1({},eo)),_theme}function loadTheme(eo,to){var no;return to===void 0&&(to=!1),_theme=createTheme$1(eo,to),loadTheme$1(__assign$4(__assign$4(__assign$4(__assign$4({},_theme.palette),_theme.semanticColors),_theme.effects),_loadFonts(_theme))),Customizations.applySettings((no={},no[ThemeSettingName]=_theme,no)),_onThemeChangeCallbacks.forEach(function(io){try{io(_theme)}catch{}}),_theme}function _loadFonts(eo){for(var to={},no=0,io=Object.keys(eo.fonts);noto.bottom||eo.leftto.right)}function _getOutOfBoundsEdges(eo,to){var no=[];return eo.topto.bottom&&no.push(RectangleEdge.bottom),eo.leftto.right&&no.push(RectangleEdge.right),no}function _getEdgeValue(eo,to){return eo[RectangleEdge[to]]}function _setEdgeValue(eo,to,no){return eo[RectangleEdge[to]]=no,eo}function _getCenterValue(eo,to){var no=_getFlankingEdges(to);return(_getEdgeValue(eo,no.positiveEdge)+_getEdgeValue(eo,no.negativeEdge))/2}function _getRelativeEdgeValue(eo,to){return eo>0?to:to*-1}function _getRelativeRectEdgeValue(eo,to){return _getRelativeEdgeValue(eo,_getEdgeValue(to,eo))}function _getRelativeEdgeDifference(eo,to,no){var io=_getEdgeValue(eo,no)-_getEdgeValue(to,no);return _getRelativeEdgeValue(no,io)}function _moveEdge(eo,to,no,io){io===void 0&&(io=!0);var so=_getEdgeValue(eo,to)-no,ao=_setEdgeValue(eo,to,no);return io&&(ao=_setEdgeValue(eo,to*-1,_getEdgeValue(eo,to*-1)-so)),ao}function _alignEdges(eo,to,no,io){return io===void 0&&(io=0),_moveEdge(eo,no,_getEdgeValue(to,no)+_getRelativeEdgeValue(no,io))}function _alignOppositeEdges(eo,to,no,io){io===void 0&&(io=0);var so=no*-1,ao=_getRelativeEdgeValue(so,io);return _moveEdge(eo,no*-1,_getEdgeValue(to,no)+ao)}function _isEdgeInBounds(eo,to,no){var io=_getRelativeRectEdgeValue(no,eo);return io>_getRelativeRectEdgeValue(no,to)}function _getOutOfBoundsDegree(eo,to){for(var no=_getOutOfBoundsEdges(eo,to),io=0,so=0,ao=no;so=io}function _flipToFit(eo,to,no,io,so,ao,lo){so===void 0&&(so=!1),lo===void 0&&(lo=0);var uo=[RectangleEdge.left,RectangleEdge.right,RectangleEdge.bottom,RectangleEdge.top];getRTL$1()&&(uo[0]*=-1,uo[1]*=-1);for(var ho=eo,go=io.targetEdge,mo=io.alignmentEdge,yo,So=go,_o=mo,ko=0;ko<4;ko++){if(_isEdgeInBounds(ho,no,go))return{elementRectangle:ho,targetEdge:go,alignmentEdge:mo};if(so&&_canScrollResizeToFitEdge(to,no,go,ao)){switch(go){case RectangleEdge.bottom:ho.bottom=no.bottom;break;case RectangleEdge.top:ho.top=no.top;break}return{elementRectangle:ho,targetEdge:go,alignmentEdge:mo,forcedInBounds:!0}}else{var Co=_getOutOfBoundsDegree(ho,no);(!yo||Co0&&(uo.indexOf(go*-1)>-1?go=go*-1:(mo=go,go=uo.slice(-1)[0]),ho=_estimatePosition(eo,to,{targetEdge:go,alignmentEdge:mo},lo))}}return ho=_estimatePosition(eo,to,{targetEdge:So,alignmentEdge:_o},lo),{elementRectangle:ho,targetEdge:So,alignmentEdge:_o}}function _flipAlignmentEdge(eo,to,no,io){var so=eo.alignmentEdge,ao=eo.targetEdge,lo=eo.elementRectangle,uo=so*-1,ho=_estimatePosition(lo,to,{targetEdge:ao,alignmentEdge:uo},no,io);return{elementRectangle:ho,targetEdge:ao,alignmentEdge:uo}}function _adjustFitWithinBounds(eo,to,no,io,so,ao,lo,uo,ho){so===void 0&&(so=!1),lo===void 0&&(lo=0);var go=io.alignmentEdge,mo=io.alignTargetEdge,yo={elementRectangle:eo,targetEdge:io.targetEdge,alignmentEdge:go};!uo&&!ho&&(yo=_flipToFit(eo,to,no,io,so,ao,lo));var So=_getOutOfBoundsEdges(yo.elementRectangle,no),_o=uo?-yo.targetEdge:void 0;if(So.length>0)if(mo)if(yo.alignmentEdge&&So.indexOf(yo.alignmentEdge*-1)>-1){var ko=_flipAlignmentEdge(yo,to,lo,ho);if(_isRectangleWithinBounds(ko.elementRectangle,no))return ko;yo=_alignOutOfBoundsEdges(_getOutOfBoundsEdges(ko.elementRectangle,no),yo,no,_o)}else yo=_alignOutOfBoundsEdges(So,yo,no,_o);else yo=_alignOutOfBoundsEdges(So,yo,no,_o);return yo}function _alignOutOfBoundsEdges(eo,to,no,io){for(var so=0,ao=eo;soMath.abs(_getRelativeEdgeDifference(eo,no,to*-1))?to*-1:to}function _isEdgeOnBounds(eo,to,no){return no!==void 0&&_getEdgeValue(eo,to)===_getEdgeValue(no,to)}function _finalizeElementPosition(eo,to,no,io,so,ao,lo,uo){var ho={},go=_getRectangleFromElement(to),mo=ao?no:no*-1,yo=so||_getFlankingEdges(no).positiveEdge;return(!lo||_isEdgeOnBounds(eo,getOppositeEdge(yo),io))&&(yo=_finalizeReturnEdge(eo,yo,io)),ho[RectangleEdge[mo]]=_getRelativeEdgeDifference(eo,go,mo),ho[RectangleEdge[yo]]=_getRelativeEdgeDifference(eo,go,yo),uo&&(ho[RectangleEdge[mo*-1]]=_getRelativeEdgeDifference(eo,go,mo*-1),ho[RectangleEdge[yo*-1]]=_getRelativeEdgeDifference(eo,go,yo*-1)),ho}function _calculateActualBeakWidthInPixels(eo){return Math.sqrt(eo*eo*2)}function _getPositionData(eo,to,no){if(eo===void 0&&(eo=DirectionalHint.bottomAutoEdge),no)return{alignmentEdge:no.alignmentEdge,isAuto:no.isAuto,targetEdge:no.targetEdge};var io=__assign$4({},DirectionalDictionary[eo]);return getRTL$1()?(io.alignmentEdge&&io.alignmentEdge%2===0&&(io.alignmentEdge=io.alignmentEdge*-1),to!==void 0?DirectionalDictionary[to]:io):io}function _getAlignmentData(eo,to,no,io,so){return eo.isAuto&&(eo.alignmentEdge=getClosestEdge(eo.targetEdge,to,no)),eo.alignTargetEdge=so,eo}function getClosestEdge(eo,to,no){var io=_getCenterValue(to,eo),so=_getCenterValue(no,eo),ao=_getFlankingEdges(eo),lo=ao.positiveEdge,uo=ao.negativeEdge;return io<=so?lo:uo}function _positionElementWithinBounds(eo,to,no,io,so,ao,lo,uo,ho){ao===void 0&&(ao=!1);var go=_estimatePosition(eo,to,io,so,ho);return _isRectangleWithinBounds(go,no)?{elementRectangle:go,targetEdge:io.targetEdge,alignmentEdge:io.alignmentEdge}:_adjustFitWithinBounds(go,to,no,io,ao,lo,so,uo,ho)}function _finalizeBeakPosition(eo,to,no){var io=eo.targetEdge*-1,so=new Rectangle(0,eo.elementRectangle.width,0,eo.elementRectangle.height),ao={},lo=_finalizeReturnEdge(eo.elementRectangle,eo.alignmentEdge?eo.alignmentEdge:_getFlankingEdges(io).positiveEdge,no),uo=_getRelativeEdgeDifference(eo.elementRectangle,eo.targetRectangle,io),ho=uo>Math.abs(_getEdgeValue(to,io));return ao[RectangleEdge[io]]=_getEdgeValue(to,io),ao[RectangleEdge[lo]]=_getRelativeEdgeDifference(to,so,lo),{elementPosition:__assign$4({},ao),closestEdge:getClosestEdge(eo.targetEdge,to,so),targetEdge:io,hideBeak:!ho}}function _positionBeak(eo,to){var no=to.targetRectangle,io=_getFlankingEdges(to.targetEdge),so=io.positiveEdge,ao=io.negativeEdge,lo=_getCenterValue(no,to.targetEdge),uo=new Rectangle(eo/2,to.elementRectangle.width-eo/2,eo/2,to.elementRectangle.height-eo/2),ho=new Rectangle(0,eo,0,eo);return ho=_moveEdge(ho,to.targetEdge*-1,-eo/2),ho=_centerEdgeToPoint(ho,to.targetEdge*-1,lo-_getRelativeRectEdgeValue(so,to.elementRectangle)),_isEdgeInBounds(ho,uo,so)?_isEdgeInBounds(ho,uo,ao)||(ho=_alignEdges(ho,uo,ao)):ho=_alignEdges(ho,uo,so),ho}function _getRectangleFromElement(eo){var to=eo.getBoundingClientRect();return new Rectangle(to.left,to.right,to.top,to.bottom)}function _getRectangleFromIRect(eo){return new Rectangle(eo.left,eo.right,eo.top,eo.bottom)}function _getTargetRect(eo,to){var no;if(to){if(to.preventDefault){var io=to;no=new Rectangle(io.clientX,io.clientX,io.clientY,io.clientY)}else if(to.getBoundingClientRect)no=_getRectangleFromElement(to);else{var so=to,ao=so.left||so.x,lo=so.top||so.y,uo=so.right||ao,ho=so.bottom||lo;no=new Rectangle(ao,uo,lo,ho)}if(!_isRectangleWithinBounds(no,eo))for(var go=_getOutOfBoundsEdges(no,eo),mo=0,yo=go;mo=io&&so&&go.top<=so&&go.bottom>=so&&(lo={top:go.top,left:go.left,right:go.right,bottom:go.bottom,width:go.width,height:go.height})}return lo}function getBoundsFromTargetWindow(eo,to){return _getBoundsFromTargetWindow(eo,to)}function calculateGapSpace(eo,to,no){return _calculateGapSpace(eo,to,no)}function getRectangleFromTarget(eo){return _getRectangleFromTarget(eo)}function useAsync(){var eo=reactExports.useRef();return eo.current||(eo.current=new Async),reactExports.useEffect(function(){return function(){var to;(to=eo.current)===null||to===void 0||to.dispose(),eo.current=void 0}},[]),eo.current}function useConst(eo){var to=reactExports.useRef();return to.current===void 0&&(to.current={value:typeof eo=="function"?eo():eo}),to.current.value}function useBoolean(eo){var to=reactExports.useState(eo),no=to[0],io=to[1],so=useConst(function(){return function(){io(!0)}}),ao=useConst(function(){return function(){io(!1)}}),lo=useConst(function(){return function(){io(function(uo){return!uo})}});return[no,{setTrue:so,setFalse:ao,toggle:lo}]}function useEventCallback$2(eo){var to=reactExports.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect(function(){to.current=eo},[eo]),useConst(function(){return function(){for(var no=[],io=0;io0&&go>ho&&(uo=go-ho>1)}so!==uo&&ao(uo)}}),function(){return no.dispose()}}),so}function defaultFocusRestorer(eo){var to=eo.originalElement,no=eo.containsFocus;to&&no&&to!==getWindow()&&setTimeout(function(){var io;(io=to.focus)===null||io===void 0||io.call(to)},0)}function useRestoreFocus(eo,to){var no=eo.onRestoreFocus,io=no===void 0?defaultFocusRestorer:no,so=reactExports.useRef(),ao=reactExports.useRef(!1);reactExports.useEffect(function(){return so.current=getDocument().activeElement,doesElementContainFocus(to.current)&&(ao.current=!0),function(){var lo;io==null||io({originalElement:so.current,containsFocus:ao.current,documentContainsFocus:((lo=getDocument())===null||lo===void 0?void 0:lo.hasFocus())||!1}),so.current=void 0}},[]),useOnEvent(to,"focus",reactExports.useCallback(function(){ao.current=!0},[]),!0),useOnEvent(to,"blur",reactExports.useCallback(function(lo){to.current&&lo.relatedTarget&&!to.current.contains(lo.relatedTarget)&&(ao.current=!1)},[]),!0)}function useHideSiblingNodes(eo,to){var no=String(eo["aria-modal"]).toLowerCase()==="true"&&eo.enableAriaHiddenSiblings;reactExports.useEffect(function(){if(no&&to.current){var io=modalize(to.current);return io}},[to,no])}var Popup=reactExports.forwardRef(function(eo,to){var no=getPropsWithDefaults({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},eo),io=reactExports.useRef(),so=useMergedRefs(io,to);useHideSiblingNodes(no,io),useRestoreFocus(no,io);var ao=no.role,lo=no.className,uo=no.ariaLabel,ho=no.ariaLabelledBy,go=no.ariaDescribedBy,mo=no.style,yo=no.children,So=no.onDismiss,_o=useScrollbarAsync(no,io),ko=reactExports.useCallback(function($o){switch($o.which){case KeyCodes$1.escape:So&&(So($o),$o.preventDefault(),$o.stopPropagation());break}},[So]),Co=useWindow();return useOnEvent(Co,"keydown",ko),reactExports.createElement("div",__assign$4({ref:so},getNativeProps(no,divProperties),{className:lo,role:ao,"aria-label":uo,"aria-labelledby":ho,"aria-describedby":go,onKeyDown:ko,style:__assign$4({overflowY:_o?"scroll":void 0,outline:"none"},mo)}),yo)});Popup.displayName="Popup";var _a$9,COMPONENT_NAME$2="CalloutContentBase",ANIMATIONS=(_a$9={},_a$9[RectangleEdge.top]=AnimationClassNames.slideUpIn10,_a$9[RectangleEdge.bottom]=AnimationClassNames.slideDownIn10,_a$9[RectangleEdge.left]=AnimationClassNames.slideLeftIn10,_a$9[RectangleEdge.right]=AnimationClassNames.slideRightIn10,_a$9),BEAK_ORIGIN_POSITION={top:0,left:0},OFF_SCREEN_STYLE={opacity:0,filter:"opacity(0)",pointerEvents:"none"},ARIA_ROLE_ATTRIBUTES=["role","aria-roledescription"],DEFAULT_PROPS$3={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:DirectionalHint.bottomAutoEdge},getClassNames$9=classNamesFunction({disableCaching:!0});function useBounds(eo,to,no){var io=eo.bounds,so=eo.minPagePadding,ao=so===void 0?DEFAULT_PROPS$3.minPagePadding:so,lo=eo.target,uo=reactExports.useState(!1),ho=uo[0],go=uo[1],mo=reactExports.useRef(),yo=reactExports.useCallback(function(){if(!mo.current||ho){var _o=typeof io=="function"?no?io(lo,no):void 0:io;!_o&&no&&(_o=getBoundsFromTargetWindow(to.current,no),_o={top:_o.top+ao,left:_o.left+ao,right:_o.right-ao,bottom:_o.bottom-ao,width:_o.width-ao*2,height:_o.height-ao*2}),mo.current=_o,ho&&go(!1)}return mo.current},[io,ao,lo,to,no,ho]),So=useAsync();return useOnEvent(no,"resize",So.debounce(function(){go(!0)},500,{leading:!0})),yo}function useMaxHeight(eo,to,no,io){var so,ao=eo.calloutMaxHeight,lo=eo.finalHeight,uo=eo.directionalHint,ho=eo.directionalHintFixed,go=eo.hidden,mo=eo.gapSpace,yo=eo.beakWidth,So=eo.isBeakVisible,_o=reactExports.useState(),ko=_o[0],Co=_o[1],$o=(so=io==null?void 0:io.elementPosition)!==null&&so!==void 0?so:{},Ro=$o.top,Oo=$o.bottom,No=no!=null&&no.current?getRectangleFromTarget(no.current):void 0;return reactExports.useEffect(function(){var Mo,Bo=(Mo=to())!==null&&Mo!==void 0?Mo:{},Fo=Bo.top,Lo=Bo.bottom,Go;(io==null?void 0:io.targetEdge)===RectangleEdge.top&&(No!=null&&No.top)&&(Lo=No.top-calculateGapSpace(So,yo,mo)),typeof Ro=="number"&&Lo?Go=Lo-Ro:typeof Oo=="number"&&typeof Fo=="number"&&Lo&&(Go=Lo-Fo-Oo),!ao&&!go||ao&&Go&&ao>Go?Co(Go):Co(ao||void 0)},[Oo,ao,lo,uo,ho,to,go,io,Ro,mo,yo,So,No]),ko}function usePositions(eo,to,no,io,so,ao){var lo=reactExports.useState(),uo=lo[0],ho=lo[1],go=reactExports.useRef(0),mo=reactExports.useRef(),yo=useAsync(),So=eo.hidden,_o=eo.target,ko=eo.finalHeight,Co=eo.calloutMaxHeight,$o=eo.onPositioned,Ro=eo.directionalHint,Oo=eo.hideOverflow,No=eo.preferScrollResizePositioning,Mo=useWindow(),Bo=reactExports.useRef(),Fo;Bo.current!==ao.current&&(Bo.current=ao.current,Fo=ao.current?Mo==null?void 0:Mo.getComputedStyle(ao.current):void 0);var Lo=Fo==null?void 0:Fo.overflowY;return reactExports.useEffect(function(){if(So)ho(void 0),go.current=0;else{var Go=yo.requestAnimationFrame(function(){var Do,Uo;if(to.current&&no){var Ho=__assign$4(__assign$4({},eo),{target:io.current,bounds:so()}),Yo=no.cloneNode(!0);Yo.style.maxHeight=Co?"".concat(Co):"",Yo.style.visibility="hidden",(Do=no.parentElement)===null||Do===void 0||Do.appendChild(Yo);var qo=mo.current===_o?uo:void 0,Jo=Oo||Lo==="clip"||Lo==="hidden",ps=No&&!Jo,Qo=ko?positionCard(Ho,to.current,Yo,qo):positionCallout(Ho,to.current,Yo,qo,ps);(Uo=no.parentElement)===null||Uo===void 0||Uo.removeChild(Yo),!uo&&Qo||uo&&Qo&&!arePositionsEqual(uo,Qo)&&go.current<5?(go.current++,ho(Qo)):go.current>0&&(go.current=0,$o==null||$o(uo))}},no);return mo.current=_o,function(){yo.cancelAnimationFrame(Go),mo.current=void 0}}},[So,Ro,yo,no,Co,to,io,ko,so,$o,uo,eo,_o,Oo,No,Lo]),uo}function useAutoFocus(eo,to,no){var io=eo.hidden,so=eo.setInitialFocus,ao=useAsync(),lo=!!to;reactExports.useEffect(function(){if(!io&&so&&lo&&no){var uo=ao.requestAnimationFrame(function(){return focusFirstChild(no)},no);return function(){return ao.cancelAnimationFrame(uo)}}},[io,lo,ao,no,so])}function useDismissHandlers(eo,to,no,io,so){var ao=eo.hidden,lo=eo.onDismiss,uo=eo.preventDismissOnScroll,ho=eo.preventDismissOnResize,go=eo.preventDismissOnLostFocus,mo=eo.dismissOnTargetClick,yo=eo.shouldDismissOnWindowFocus,So=eo.preventDismissOnEvent,_o=reactExports.useRef(!1),ko=useAsync(),Co=useConst([function(){_o.current=!0},function(){_o.current=!1}]),$o=!!to;return reactExports.useEffect(function(){var Ro=function(Lo){$o&&!uo&&Mo(Lo)},Oo=function(Lo){!ho&&!(So&&So(Lo))&&(lo==null||lo(Lo))},No=function(Lo){go||Mo(Lo)},Mo=function(Lo){var Go=Lo.composedPath?Lo.composedPath():[],Do=Go.length>0?Go[0]:Lo.target,Uo=no.current&&!elementContains(no.current,Do);if(Uo&&_o.current){_o.current=!1;return}if(!io.current&&Uo||Lo.target!==so&&Uo&&(!io.current||"stopPropagation"in io.current||mo||Do!==io.current&&!elementContains(io.current,Do))){if(So&&So(Lo))return;lo==null||lo(Lo)}},Bo=function(Lo){yo&&(So&&!So(Lo)||!So&&!go)&&!(so!=null&&so.document.hasFocus())&&Lo.relatedTarget===null&&(lo==null||lo(Lo))},Fo=new Promise(function(Lo){ko.setTimeout(function(){if(!ao&&so){var Go=[on$1(so,"scroll",Ro,!0),on$1(so,"resize",Oo,!0),on$1(so.document.documentElement,"focus",No,!0),on$1(so.document.documentElement,"click",No,!0),on$1(so,"blur",Bo,!0)];Lo(function(){Go.forEach(function(Do){return Do()})})}},0)});return function(){Fo.then(function(Lo){return Lo()})}},[ao,ko,no,io,so,lo,yo,mo,go,ho,uo,$o,So]),Co}var CalloutContentBase=reactExports.memo(reactExports.forwardRef(function(eo,to){var no=getPropsWithDefaults(DEFAULT_PROPS$3,eo),io=no.styles,so=no.style,ao=no.ariaLabel,lo=no.ariaDescribedBy,uo=no.ariaLabelledBy,ho=no.className,go=no.isBeakVisible,mo=no.children,yo=no.beakWidth,So=no.calloutWidth,_o=no.calloutMaxWidth,ko=no.calloutMinWidth,Co=no.doNotLayer,$o=no.finalHeight,Ro=no.hideOverflow,Oo=Ro===void 0?!!$o:Ro,No=no.backgroundColor,Mo=no.calloutMaxHeight,Bo=no.onScroll,Fo=no.shouldRestoreFocus,Lo=Fo===void 0?!0:Fo,Go=no.target,Do=no.hidden,Uo=no.onLayerMounted,Ho=no.popupProps,Yo=reactExports.useRef(null),qo=reactExports.useRef(null),Jo=useMergedRefs(qo,Ho==null?void 0:Ho.ref),ps=reactExports.useState(null),Qo=ps[0],hs=ps[1],gs=reactExports.useCallback(function(du){hs(du)},[]),ys=useMergedRefs(Yo,to),vs=useTarget(no.target,{current:Qo}),ks=vs[0],Os=vs[1],Ts=useBounds(no,ks,Os),Xs=usePositions(no,Yo,Qo,ks,Ts,Jo),Ws=useMaxHeight(no,Ts,ks,Xs),Ps=useDismissHandlers(no,Xs,Yo,ks,Os),qs=Ps[0],ga=Ps[1],Fs=(Xs==null?void 0:Xs.elementPosition.top)&&(Xs==null?void 0:Xs.elementPosition.bottom),Js=__assign$4(__assign$4({},Xs==null?void 0:Xs.elementPosition),{maxHeight:Ws});if(Fs&&(Js.bottom=void 0),useAutoFocus(no,Xs,Qo),reactExports.useEffect(function(){Do||Uo==null||Uo()},[Do]),!Os)return null;var Vs=Oo,El=go&&!!Go,yl=getClassNames$9(io,{theme:no.theme,className:ho,overflowYHidden:Vs,calloutWidth:So,positions:Xs,beakWidth:yo,backgroundColor:No,calloutMaxWidth:_o,calloutMinWidth:ko,doNotLayer:Co}),Gl=__assign$4(__assign$4({maxHeight:Mo||"100%"},so),Vs&&{overflowY:"hidden"}),Qs=no.hidden?{visibility:"hidden"}:void 0;return reactExports.createElement("div",{ref:ys,className:yl.container,style:Qs},reactExports.createElement("div",__assign$4({},getNativeProps(no,divProperties,ARIA_ROLE_ATTRIBUTES),{className:css$3(yl.root,Xs&&Xs.targetEdge&&ANIMATIONS[Xs.targetEdge]),style:Xs?__assign$4({},Js):OFF_SCREEN_STYLE,tabIndex:-1,ref:gs}),El&&reactExports.createElement("div",{className:yl.beak,style:getBeakPosition(Xs)}),El&&reactExports.createElement("div",{className:yl.beakCurtain}),reactExports.createElement(Popup,__assign$4({role:no.role,"aria-roledescription":no["aria-roledescription"],ariaDescribedBy:lo,ariaLabel:ao,ariaLabelledBy:uo,className:yl.calloutMain,onDismiss:no.onDismiss,onMouseDown:qs,onMouseUp:ga,onRestoreFocus:no.onRestoreFocus,onScroll:Bo,shouldRestoreFocus:Lo,style:Gl},Ho,{ref:Jo}),mo)))}),function(eo,to){return!to.shouldUpdateWhenHidden&&eo.hidden&&to.hidden?!0:shallowCompare(eo,to)});function getBeakPosition(eo){var to,no,io=__assign$4(__assign$4({},(to=eo==null?void 0:eo.beakPosition)===null||to===void 0?void 0:to.elementPosition),{display:!((no=eo==null?void 0:eo.beakPosition)===null||no===void 0)&&no.hideBeak?"none":void 0});return!io.top&&!io.bottom&&!io.left&&!io.right&&(io.left=BEAK_ORIGIN_POSITION.left,io.top=BEAK_ORIGIN_POSITION.top),io}function arePositionsEqual(eo,to){return comparePositions(eo.elementPosition,to.elementPosition)&&comparePositions(eo.beakPosition.elementPosition,to.beakPosition.elementPosition)}function comparePositions(eo,to){for(var no in to)if(to.hasOwnProperty(no)){var io=eo[no],so=to[no];if(io!==void 0&&so!==void 0){if(io.toFixed(2)!==so.toFixed(2))return!1}else return!1}return!0}CalloutContentBase.displayName=COMPONENT_NAME$2;function getBeakStyle(eo){return{height:eo,width:eo}}var GlobalClassNames$8={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},getStyles$p=function(eo){var to,no=eo.theme,io=eo.className,so=eo.overflowYHidden,ao=eo.calloutWidth,lo=eo.beakWidth,uo=eo.backgroundColor,ho=eo.calloutMaxWidth,go=eo.calloutMinWidth,mo=eo.doNotLayer,yo=getGlobalClassNames(GlobalClassNames$8,no),So=no.semanticColors,_o=no.effects;return{container:[yo.container,{position:"relative"}],root:[yo.root,no.fonts.medium,{position:"absolute",display:"flex",zIndex:mo?ZIndexes.Layer:void 0,boxSizing:"border-box",borderRadius:_o.roundedCorner2,boxShadow:_o.elevation16,selectors:(to={},to[HighContrastSelector]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},to)},focusClear(),io,!!ao&&{width:ao},!!ho&&{maxWidth:ho},!!go&&{minWidth:go}],beak:[yo.beak,{position:"absolute",backgroundColor:So.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},getBeakStyle(lo),uo&&{backgroundColor:uo}],beakCurtain:[yo.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:So.menuBackground,borderRadius:_o.roundedCorner2}],calloutMain:[yo.calloutMain,{backgroundColor:So.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:_o.roundedCorner2},so&&{overflowY:"hidden"},uo&&{backgroundColor:uo}]}},CalloutContent=styled(CalloutContentBase,getStyles$p,void 0,{scope:"CalloutContent"});const PortalCompatContext=reactExports.createContext(void 0),portalCompatContextDefaultValue=()=>()=>{};PortalCompatContext.Provider;function usePortalCompat(){var eo;return(eo=reactExports.useContext(PortalCompatContext))!==null&&eo!==void 0?eo:portalCompatContextDefaultValue}var getClassNames$8=classNamesFunction(),getFabricTheme=memoizeFunction(function(eo,to){return createTheme$1(__assign$4(__assign$4({},eo),{rtl:to}))}),getDir$1=function(eo){var to=eo.theme,no=eo.dir,io=getRTL$1(to)?"rtl":"ltr",so=getRTL$1()?"rtl":"ltr",ao=no||io;return{rootDir:ao!==io||ao!==so?ao:no,needsTheme:ao!==io}},FabricBase=reactExports.forwardRef(function(eo,to){var no=eo.className,io=eo.theme,so=eo.applyTheme,ao=eo.applyThemeToBody,lo=eo.styles,uo=getClassNames$8(lo,{theme:io,applyTheme:so,className:no}),ho=reactExports.useRef(null);return useApplyThemeToBody(ao,uo,ho),reactExports.createElement(reactExports.Fragment,null,useRenderedContent(eo,uo,ho,to))});FabricBase.displayName="FabricBase";function useRenderedContent(eo,to,no,io){var so=to.root,ao=eo.as,lo=ao===void 0?"div":ao,uo=eo.dir,ho=eo.theme,go=getNativeProps(eo,divProperties,["dir"]),mo=getDir$1(eo),yo=mo.rootDir,So=mo.needsTheme,_o=reactExports.createElement(FocusRectsProvider,{providerRef:no},reactExports.createElement(lo,__assign$4({dir:yo},go,{className:so,ref:useMergedRefs(no,io)})));return So&&(_o=reactExports.createElement(Customizer,{settings:{theme:getFabricTheme(ho,uo==="rtl")}},_o)),_o}function useApplyThemeToBody(eo,to,no){var io=to.bodyThemed;return reactExports.useEffect(function(){if(eo){var so=getDocument(no.current);if(so)return so.body.classList.add(io),function(){so.body.classList.remove(io)}}},[io,eo,no]),no}var inheritFont={fontFamily:"inherit"},GlobalClassNames$7={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},getStyles$o=function(eo){var to=eo.applyTheme,no=eo.className,io=eo.preventBlanketFontInheritance,so=eo.theme,ao=getGlobalClassNames(GlobalClassNames$7,so);return{root:[ao.root,so.fonts.medium,{color:so.palette.neutralPrimary},!io&&{"& button":inheritFont,"& input":inheritFont,"& textarea":inheritFont},to&&{color:so.semanticColors.bodyText,backgroundColor:so.semanticColors.bodyBackground},no],bodyThemed:[{backgroundColor:so.semanticColors.bodyBackground}]}},Fabric=styled(FabricBase,getStyles$o,void 0,{scope:"Fabric"}),_layersByHostId={},_layerHostsById={},defaultHostId="fluent-default-layer-host",_defaultHostSelector="#".concat(defaultHostId);function registerLayer(eo,to){_layersByHostId[eo]||(_layersByHostId[eo]=[]),_layersByHostId[eo].push(to);var no=_layerHostsById[eo];if(no)for(var io=0,so=no;io=0&&(no.splice(io,1),no.length===0&&delete _layersByHostId[eo])}var so=_layerHostsById[eo];if(so)for(var ao=0,lo=so;ao0&&to.current.naturalHeight>0||to.current.complete&&SVG_REGEX.test(ao):!1;yo&&ho(ImageLoadState.loaded)}}),reactExports.useEffect(function(){no==null||no(uo)},[uo]);var go=reactExports.useCallback(function(yo){io==null||io(yo),ao&&ho(ImageLoadState.loaded)},[ao,io]),mo=reactExports.useCallback(function(yo){so==null||so(yo),ho(ImageLoadState.error)},[so]);return[uo,go,mo]}var ImageBase=reactExports.forwardRef(function(eo,to){var no=reactExports.useRef(),io=reactExports.useRef(),so=useLoadState(eo,io),ao=so[0],lo=so[1],uo=so[2],ho=getNativeProps(eo,imgProperties,["width","height"]),go=eo.src,mo=eo.alt,yo=eo.width,So=eo.height,_o=eo.shouldFadeIn,ko=_o===void 0?!0:_o,Co=eo.shouldStartVisible,$o=eo.className,Ro=eo.imageFit,Oo=eo.role,No=eo.maximizeFrame,Mo=eo.styles,Bo=eo.theme,Fo=eo.loading,Lo=useCoverStyle(eo,ao,io,no),Go=getClassNames$6(Mo,{theme:Bo,className:$o,width:yo,height:So,maximizeFrame:No,shouldFadeIn:ko,shouldStartVisible:Co,isLoaded:ao===ImageLoadState.loaded||ao===ImageLoadState.notLoaded&&eo.shouldStartVisible,isLandscape:Lo===ImageCoverStyle.landscape,isCenter:Ro===ImageFit.center,isCenterContain:Ro===ImageFit.centerContain,isCenterCover:Ro===ImageFit.centerCover,isContain:Ro===ImageFit.contain,isCover:Ro===ImageFit.cover,isNone:Ro===ImageFit.none,isError:ao===ImageLoadState.error,isNotImageFit:Ro===void 0});return reactExports.createElement("div",{className:Go.root,style:{width:yo,height:So},ref:no},reactExports.createElement("img",__assign$4({},ho,{onLoad:lo,onError:uo,key:KEY_PREFIX+eo.src||"",className:Go.image,ref:useMergedRefs(io,to),src:go,alt:mo,role:Oo,loading:Fo})))});ImageBase.displayName="ImageBase";function useCoverStyle(eo,to,no,io){var so=reactExports.useRef(to),ao=reactExports.useRef();return(ao===void 0||so.current===ImageLoadState.notLoaded&&to===ImageLoadState.loaded)&&(ao.current=computeCoverStyle(eo,to,no,io)),so.current=to,ao.current}function computeCoverStyle(eo,to,no,io){var so=eo.imageFit,ao=eo.width,lo=eo.height;if(eo.coverStyle!==void 0)return eo.coverStyle;if(to===ImageLoadState.loaded&&(so===ImageFit.cover||so===ImageFit.contain||so===ImageFit.centerContain||so===ImageFit.centerCover)&&no.current&&io.current){var uo=void 0;typeof ao=="number"&&typeof lo=="number"&&so!==ImageFit.centerContain&&so!==ImageFit.centerCover?uo=ao/lo:uo=io.current.clientWidth/io.current.clientHeight;var ho=no.current.naturalWidth/no.current.naturalHeight;if(ho>uo)return ImageCoverStyle.landscape}return ImageCoverStyle.portrait}var GlobalClassNames$5={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},getStyles$m=function(eo){var to=eo.className,no=eo.width,io=eo.height,so=eo.maximizeFrame,ao=eo.isLoaded,lo=eo.shouldFadeIn,uo=eo.shouldStartVisible,ho=eo.isLandscape,go=eo.isCenter,mo=eo.isContain,yo=eo.isCover,So=eo.isCenterContain,_o=eo.isCenterCover,ko=eo.isNone,Co=eo.isError,$o=eo.isNotImageFit,Ro=eo.theme,Oo=getGlobalClassNames(GlobalClassNames$5,Ro),No={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},Mo=getWindow(),Bo=Mo!==void 0&&Mo.navigator.msMaxTouchPoints===void 0,Fo=mo&&ho||yo&&!ho?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[Oo.root,Ro.fonts.medium,{overflow:"hidden"},so&&[Oo.rootMaximizeFrame,{height:"100%",width:"100%"}],ao&&lo&&!uo&&AnimationClassNames.fadeIn400,(go||mo||yo||So||_o)&&{position:"relative"},to],image:[Oo.image,{display:"block",opacity:0},ao&&["is-loaded",{opacity:1}],go&&[Oo.imageCenter,No],mo&&[Oo.imageContain,Bo&&{width:"100%",height:"100%",objectFit:"contain"},!Bo&&Fo,!Bo&&No],yo&&[Oo.imageCover,Bo&&{width:"100%",height:"100%",objectFit:"cover"},!Bo&&Fo,!Bo&&No],So&&[Oo.imageCenterContain,ho&&{maxWidth:"100%"},!ho&&{maxHeight:"100%"},No],_o&&[Oo.imageCenterCover,ho&&{maxHeight:"100%"},!ho&&{maxWidth:"100%"},No],ko&&[Oo.imageNone,{width:"auto",height:"auto"}],$o&&[!!no&&!io&&{height:"auto",width:"100%"},!no&&!!io&&{height:"100%",width:"auto"},!!no&&!!io&&{height:"100%",width:"100%"}],ho&&Oo.imageLandscape,!ho&&Oo.imagePortrait,!ao&&"is-notLoaded",lo&&"is-fadeIn",Co&&"is-error"]}},Image$1=styled(ImageBase,getStyles$m,void 0,{scope:"Image"},!0);Image$1.displayName="Image";var classNames=mergeStyleSets({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),MS_ICON="ms-Icon",getStyles$l=function(eo){var to=eo.className,no=eo.iconClassName,io=eo.isPlaceholder,so=eo.isImage,ao=eo.styles;return{root:[io&&classNames.placeholder,classNames.root,so&&classNames.image,no,to,ao&&ao.root,ao&&ao.imageContainer]}},getIconContent=memoizeFunction(function(eo){var to=getIcon(eo)||{subset:{},code:void 0},no=to.code,io=to.subset;return no?{children:no,iconClassName:io.className,fontFamily:io.fontFace&&io.fontFace.fontFamily,mergeImageProps:io.mergeImageProps}:null},void 0,!0),FontIcon=function(eo){var to=eo.iconName,no=eo.className,io=eo.style,so=io===void 0?{}:io,ao=getIconContent(to)||{},lo=ao.iconClassName,uo=ao.children,ho=ao.fontFamily,go=ao.mergeImageProps,mo=getNativeProps(eo,htmlElementProperties),yo=eo["aria-label"]||eo.title,So=eo["aria-label"]||eo["aria-labelledby"]||eo.title?{role:go?void 0:"img"}:{"aria-hidden":!0},_o=uo;return go&&typeof uo=="object"&&typeof uo.props=="object"&&yo&&(_o=reactExports.cloneElement(uo,{alt:yo})),reactExports.createElement("i",__assign$4({"data-icon-name":to},So,mo,go?{title:void 0,"aria-label":void 0}:{},{className:css$3(MS_ICON,classNames.root,lo,!to&&classNames.placeholder,no),style:__assign$4({fontFamily:ho},so)}),_o)};memoizeFunction(function(eo,to,no){return FontIcon({iconName:eo,className:to,"aria-label":no})});var getClassNames$5=classNamesFunction({cacheSize:100}),IconBase=function(eo){__extends$3(to,eo);function to(no){var io=eo.call(this,no)||this;return io._onImageLoadingStateChange=function(so){io.props.imageProps&&io.props.imageProps.onLoadingStateChange&&io.props.imageProps.onLoadingStateChange(so),so===ImageLoadState.error&&io.setState({imageLoadError:!0})},io.state={imageLoadError:!1},io}return to.prototype.render=function(){var no=this.props,io=no.children,so=no.className,ao=no.styles,lo=no.iconName,uo=no.imageErrorAs,ho=no.theme,go=typeof lo=="string"&&lo.length===0,mo=!!this.props.imageProps||this.props.iconType===IconType.image||this.props.iconType===IconType.Image,yo=getIconContent(lo)||{},So=yo.iconClassName,_o=yo.children,ko=yo.mergeImageProps,Co=getClassNames$5(ao,{theme:ho,className:so,iconClassName:So,isImage:mo,isPlaceholder:go}),$o=mo?"span":"i",Ro=getNativeProps(this.props,htmlElementProperties,["aria-label"]),Oo=this.state.imageLoadError,No=__assign$4(__assign$4({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),Mo=Oo&&uo||Image$1,Bo=this.props["aria-label"]||this.props.ariaLabel,Fo=No.alt||Bo||this.props.title,Lo=!!(Fo||this.props["aria-labelledby"]||No["aria-label"]||No["aria-labelledby"]),Go=Lo?{role:mo||ko?void 0:"img","aria-label":mo||ko?void 0:Fo}:{"aria-hidden":!0},Do=_o;return ko&&_o&&typeof _o=="object"&&Fo&&(Do=reactExports.cloneElement(_o,{alt:Fo})),reactExports.createElement($o,__assign$4({"data-icon-name":lo},Go,Ro,ko?{title:void 0,"aria-label":void 0}:{},{className:Co.root}),mo?reactExports.createElement(Mo,__assign$4({},No)):io||Do)},to}(reactExports.Component),Icon=styled(IconBase,getStyles$l,void 0,{scope:"Icon"},!0);Icon.displayName="Icon";var FocusZoneTabbableElements={none:0,all:1,inputOnly:2},FocusZoneDirection;(function(eo){eo[eo.vertical=0]="vertical",eo[eo.horizontal=1]="horizontal",eo[eo.bidirectional=2]="bidirectional",eo[eo.domOrder=3]="domOrder"})(FocusZoneDirection||(FocusZoneDirection={}));var IS_FOCUSABLE_ATTRIBUTE="data-is-focusable",IS_ENTER_DISABLED_ATTRIBUTE="data-disable-click-on-enter",FOCUSZONE_ID_ATTRIBUTE="data-focuszone-id",TABINDEX="tabindex",NO_VERTICAL_WRAP="data-no-vertical-wrap",NO_HORIZONTAL_WRAP="data-no-horizontal-wrap",LARGE_DISTANCE_FROM_CENTER=999999999,LARGE_NEGATIVE_DISTANCE_FROM_CENTER=-999999999,focusZoneStyles,focusZoneClass="ms-FocusZone";function raiseClickFromKeyboardEvent(eo,to){var no;typeof MouseEvent=="function"?no=new MouseEvent("click",{ctrlKey:to==null?void 0:to.ctrlKey,metaKey:to==null?void 0:to.metaKey,shiftKey:to==null?void 0:to.shiftKey,altKey:to==null?void 0:to.altKey,bubbles:to==null?void 0:to.bubbles,cancelable:to==null?void 0:to.cancelable}):(no=document.createEvent("MouseEvents"),no.initMouseEvent("click",to?to.bubbles:!1,to?to.cancelable:!1,window,0,0,0,0,0,to?to.ctrlKey:!1,to?to.altKey:!1,to?to.shiftKey:!1,to?to.metaKey:!1,0,null)),eo.dispatchEvent(no)}function getRootClass(){return focusZoneStyles||(focusZoneStyles=mergeStyles$1({selectors:{":focus":{outline:"none"}}},focusZoneClass)),focusZoneStyles}var _allInstances={},_outerZones=new Set,ALLOWED_INPUT_TYPES=["text","number","password","email","tel","url","search","textarea"],ALLOW_VIRTUAL_ELEMENTS=!1,FocusZone=function(eo){__extends$3(to,eo);function to(no){var io=this,so,ao,lo,uo;io=eo.call(this,no)||this,io._root=reactExports.createRef(),io._mergedRef=createMergedRef(),io._onFocus=function(go){if(!io._portalContainsElement(go.target)){var mo=io.props,yo=mo.onActiveElementChanged,So=mo.doNotAllowFocusEventToPropagate,_o=mo.stopFocusPropagation,ko=mo.onFocusNotification,Co=mo.onFocus,$o=mo.shouldFocusInnerElementWhenReceivedFocus,Ro=mo.defaultTabbableElement,Oo=io._isImmediateDescendantOfZone(go.target),No;if(Oo)No=go.target;else for(var Mo=go.target;Mo&&Mo!==io._root.current;){if(isElementTabbable(Mo)&&io._isImmediateDescendantOfZone(Mo)){No=Mo;break}Mo=getParent$1(Mo,ALLOW_VIRTUAL_ELEMENTS)}if($o&&go.target===io._root.current){var Bo=Ro&&typeof Ro=="function"&&io._root.current&&Ro(io._root.current);Bo&&isElementTabbable(Bo)?(No=Bo,Bo.focus()):(io.focus(!0),io._activeElement&&(No=null))}var Fo=!io._activeElement;No&&No!==io._activeElement&&((Oo||Fo)&&io._setFocusAlignment(No,!0,!0),io._activeElement=No,Fo&&io._updateTabIndexes()),yo&&yo(io._activeElement,go),(_o||So)&&go.stopPropagation(),Co?Co(go):ko&&ko()}},io._onBlur=function(){io._setParkedFocus(!1)},io._onMouseDown=function(go){if(!io._portalContainsElement(go.target)){var mo=io.props.disabled;if(!mo){for(var yo=go.target,So=[];yo&&yo!==io._root.current;)So.push(yo),yo=getParent$1(yo,ALLOW_VIRTUAL_ELEMENTS);for(;So.length&&(yo=So.pop(),yo&&isElementTabbable(yo)&&io._setActiveElement(yo,!0),!isElementFocusZone(yo)););}}},io._onKeyDown=function(go,mo){if(!io._portalContainsElement(go.target)){var yo=io.props,So=yo.direction,_o=yo.disabled,ko=yo.isInnerZoneKeystroke,Co=yo.pagingSupportDisabled,$o=yo.shouldEnterInnerZone;if(!_o&&(io.props.onKeyDown&&io.props.onKeyDown(go),!go.isDefaultPrevented()&&!(io._getDocument().activeElement===io._root.current&&io._isInnerZone))){if(($o&&$o(go)||ko&&ko(go))&&io._isImmediateDescendantOfZone(go.target)){var Ro=io._getFirstInnerZone();if(Ro){if(!Ro.focus(!0))return}else if(isElementFocusSubZone(go.target)){if(!io.focusElement(getNextElement(go.target,go.target.firstChild,!0)))return}else return}else{if(go.altKey)return;switch(go.which){case KeyCodes$1.space:if(io._shouldRaiseClicksOnSpace&&io._tryInvokeClickForFocusable(go.target,go))break;return;case KeyCodes$1.left:if(So!==FocusZoneDirection.vertical&&(io._preventDefaultWhenHandled(go),io._moveFocusLeft(mo)))break;return;case KeyCodes$1.right:if(So!==FocusZoneDirection.vertical&&(io._preventDefaultWhenHandled(go),io._moveFocusRight(mo)))break;return;case KeyCodes$1.up:if(So!==FocusZoneDirection.horizontal&&(io._preventDefaultWhenHandled(go),io._moveFocusUp()))break;return;case KeyCodes$1.down:if(So!==FocusZoneDirection.horizontal&&(io._preventDefaultWhenHandled(go),io._moveFocusDown()))break;return;case KeyCodes$1.pageDown:if(!Co&&io._moveFocusPaging(!0))break;return;case KeyCodes$1.pageUp:if(!Co&&io._moveFocusPaging(!1))break;return;case KeyCodes$1.tab:if(io.props.allowTabKey||io.props.handleTabKey===FocusZoneTabbableElements.all||io.props.handleTabKey===FocusZoneTabbableElements.inputOnly&&io._isElementInput(go.target)){var Oo=!1;if(io._processingTabKey=!0,So===FocusZoneDirection.vertical||!io._shouldWrapFocus(io._activeElement,NO_HORIZONTAL_WRAP))Oo=go.shiftKey?io._moveFocusUp():io._moveFocusDown();else{var No=getRTL$1(mo)?!go.shiftKey:go.shiftKey;Oo=No?io._moveFocusLeft(mo):io._moveFocusRight(mo)}if(io._processingTabKey=!1,Oo)break;io.props.shouldResetActiveElementWhenTabFromZone&&(io._activeElement=null)}return;case KeyCodes$1.home:if(io._isContentEditableElement(go.target)||io._isElementInput(go.target)&&!io._shouldInputLoseFocus(go.target,!1))return!1;var Mo=io._root.current&&io._root.current.firstChild;if(io._root.current&&Mo&&io.focusElement(getNextElement(io._root.current,Mo,!0)))break;return;case KeyCodes$1.end:if(io._isContentEditableElement(go.target)||io._isElementInput(go.target)&&!io._shouldInputLoseFocus(go.target,!0))return!1;var Bo=io._root.current&&io._root.current.lastChild;if(io._root.current&&io.focusElement(getPreviousElement(io._root.current,Bo,!0,!0,!0)))break;return;case KeyCodes$1.enter:if(io._shouldRaiseClicksOnEnter&&io._tryInvokeClickForFocusable(go.target,go))break;return;default:return}}go.preventDefault(),go.stopPropagation()}}},io._getHorizontalDistanceFromCenter=function(go,mo,yo){var So=io._focusAlignment.left||io._focusAlignment.x||0,_o=Math.floor(yo.top),ko=Math.floor(mo.bottom),Co=Math.floor(yo.bottom),$o=Math.floor(mo.top),Ro=go&&_o>ko,Oo=!go&&Co<$o;return Ro||Oo?So>=yo.left&&So<=yo.left+yo.width?0:Math.abs(yo.left+yo.width/2-So):io._shouldWrapFocus(io._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER},initializeComponentRef(io),io._id=getId$1("FocusZone"),io._focusAlignment={left:0,top:0},io._processingTabKey=!1;var ho=(ao=(so=no.shouldRaiseClicks)!==null&&so!==void 0?so:to.defaultProps.shouldRaiseClicks)!==null&&ao!==void 0?ao:!0;return io._shouldRaiseClicksOnEnter=(lo=no.shouldRaiseClicksOnEnter)!==null&&lo!==void 0?lo:ho,io._shouldRaiseClicksOnSpace=(uo=no.shouldRaiseClicksOnSpace)!==null&&uo!==void 0?uo:ho,io}return to.getOuterZones=function(){return _outerZones.size},to._onKeyDownCapture=function(no){no.which===KeyCodes$1.tab&&_outerZones.forEach(function(io){return io._updateTabIndexes()})},to.prototype.componentDidMount=function(){var no=this._root.current;if(_allInstances[this._id]=this,no){for(var io=getParent$1(no,ALLOW_VIRTUAL_ELEMENTS);io&&io!==this._getDocument().body&&io.nodeType===1;){if(isElementFocusZone(io)){this._isInnerZone=!0;break}io=getParent$1(io,ALLOW_VIRTUAL_ELEMENTS)}this._isInnerZone||(_outerZones.add(this),this._root.current&&this._root.current.addEventListener("keydown",to._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},to.prototype.componentDidUpdate=function(){var no=this._root.current,io=this._getDocument();if((this._activeElement&&!elementContains(this._root.current,this._activeElement,ALLOW_VIRTUAL_ELEMENTS)||this._defaultFocusElement&&!elementContains(this._root.current,this._defaultFocusElement,ALLOW_VIRTUAL_ELEMENTS))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&io&&this._lastIndexPath&&(io.activeElement===io.body||io.activeElement===null||io.activeElement===no)){var so=getFocusableByIndexPath(no,this._lastIndexPath);so?(this._setActiveElement(so,!0),so.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},to.prototype.componentWillUnmount=function(){delete _allInstances[this._id],this._isInnerZone||(_outerZones.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",to._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},to.prototype.render=function(){var no=this,io=this.props,so=io.as,ao=io.elementType,lo=io.rootProps,uo=io.ariaDescribedBy,ho=io.ariaLabelledBy,go=io.className,mo=getNativeProps(this.props,htmlElementProperties),yo=so||ao||"div";this._evaluateFocusBeforeRender();var So=getTheme();return reactExports.createElement(yo,__assign$4({"aria-labelledby":ho,"aria-describedby":uo},mo,lo,{className:css$3(getRootClass(),go),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(_o){return no._onKeyDown(_o,So)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},to.prototype.focus=function(no,io){if(no===void 0&&(no=!1),io===void 0&&(io=!1),this._root.current)if(!no&&this._root.current.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&this._isInnerZone){var so=this._getOwnerZone(this._root.current);if(so!==this._root.current){var ao=_allInstances[so.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];return!!ao&&ao.focusElement(this._root.current)}return!1}else{if(!no&&this._activeElement&&elementContains(this._root.current,this._activeElement)&&isElementTabbable(this._activeElement)&&(!io||isElementVisibleAndNotHidden(this._activeElement)))return this._activeElement.focus(),!0;var lo=this._root.current.firstChild;return this.focusElement(getNextElement(this._root.current,lo,!0,void 0,void 0,void 0,void 0,void 0,io))}return!1},to.prototype.focusLast=function(){if(this._root.current){var no=this._root.current&&this._root.current.lastChild;return this.focusElement(getPreviousElement(this._root.current,no,!0,!0,!0))}return!1},to.prototype.focusElement=function(no,io){var so=this.props,ao=so.onBeforeFocus,lo=so.shouldReceiveFocus;return lo&&!lo(no)||ao&&!ao(no)?!1:no?(this._setActiveElement(no,io),this._activeElement&&this._activeElement.focus(),!0):!1},to.prototype.setFocusAlignment=function(no){this._focusAlignment=no},Object.defineProperty(to.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),to.prototype._evaluateFocusBeforeRender=function(){var no=this._root.current,io=this._getDocument();if(io){var so=io.activeElement;if(so!==no){var ao=elementContains(no,so,!1);this._lastIndexPath=ao?getElementIndexPath(no,so):void 0}}},to.prototype._setParkedFocus=function(no){var io=this._root.current;io&&this._isParked!==no&&(this._isParked=no,no?(this.props.allowFocusRoot||(this._parkedTabIndex=io.getAttribute("tabindex"),io.setAttribute("tabindex","-1")),io.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(io.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):io.removeAttribute("tabindex")))},to.prototype._setActiveElement=function(no,io){var so=this._activeElement;this._activeElement=no,so&&(isElementFocusZone(so)&&this._updateTabIndexes(so),so.tabIndex=-1),this._activeElement&&((!this._focusAlignment||io)&&this._setFocusAlignment(no,!0,!0),this._activeElement.tabIndex=0)},to.prototype._preventDefaultWhenHandled=function(no){this.props.preventDefaultWhenHandled&&no.preventDefault()},to.prototype._tryInvokeClickForFocusable=function(no,io){var so=no;if(so===this._root.current)return!1;do{if(so.tagName==="BUTTON"||so.tagName==="A"||so.tagName==="INPUT"||so.tagName==="TEXTAREA"||so.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(so)&&so.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&so.getAttribute(IS_ENTER_DISABLED_ATTRIBUTE)!=="true")return raiseClickFromKeyboardEvent(so,io),!0;so=getParent$1(so,ALLOW_VIRTUAL_ELEMENTS)}while(so!==this._root.current);return!1},to.prototype._getFirstInnerZone=function(no){if(no=no||this._activeElement||this._root.current,!no)return null;if(isElementFocusZone(no))return _allInstances[no.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];for(var io=no.firstElementChild;io;){if(isElementFocusZone(io))return _allInstances[io.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];var so=this._getFirstInnerZone(io);if(so)return so;io=io.nextElementSibling}return null},to.prototype._moveFocus=function(no,io,so,ao){ao===void 0&&(ao=!0);var lo=this._activeElement,uo=-1,ho=void 0,go=!1,mo=this.props.direction===FocusZoneDirection.bidirectional;if(!lo||!this._root.current||this._isElementInput(lo)&&!this._shouldInputLoseFocus(lo,no))return!1;var yo=mo?lo.getBoundingClientRect():null;do if(lo=no?getNextElement(this._root.current,lo):getPreviousElement(this._root.current,lo),mo){if(lo){var So=lo.getBoundingClientRect(),_o=io(yo,So);if(_o===-1&&uo===-1){ho=lo;break}if(_o>-1&&(uo===-1||_o=0&&_o<0)break}}else{ho=lo;break}while(lo);if(ho&&ho!==this._activeElement)go=!0,this.focusElement(ho);else if(this.props.isCircularNavigation&&ao)return no?this.focusElement(getNextElement(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(getPreviousElement(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return go},to.prototype._moveFocusDown=function(){var no=this,io=-1,so=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(ao,lo){var uo=-1,ho=Math.floor(lo.top),go=Math.floor(ao.bottom);return ho=go||ho===io)&&(io=ho,so>=lo.left&&so<=lo.left+lo.width?uo=0:uo=Math.abs(lo.left+lo.width/2-so)),uo)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},to.prototype._moveFocusUp=function(){var no=this,io=-1,so=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(ao,lo){var uo=-1,ho=Math.floor(lo.bottom),go=Math.floor(lo.top),mo=Math.floor(ao.top);return ho>mo?no._shouldWrapFocus(no._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER:((io===-1&&ho<=mo||go===io)&&(io=go,so>=lo.left&&so<=lo.left+lo.width?uo=0:uo=Math.abs(lo.left+lo.width/2-so)),uo)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},to.prototype._moveFocusLeft=function(no){var io=this,so=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(getRTL$1(no),function(ao,lo){var uo=-1,ho;return getRTL$1(no)?ho=parseFloat(lo.top.toFixed(3))parseFloat(ao.top.toFixed(3)),ho&&lo.right<=ao.right&&io.props.direction!==FocusZoneDirection.vertical?uo=ao.right-lo.right:so||(uo=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),uo},void 0,so)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},to.prototype._moveFocusRight=function(no){var io=this,so=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(!getRTL$1(no),function(ao,lo){var uo=-1,ho;return getRTL$1(no)?ho=parseFloat(lo.bottom.toFixed(3))>parseFloat(ao.top.toFixed(3)):ho=parseFloat(lo.top.toFixed(3))=ao.left&&io.props.direction!==FocusZoneDirection.vertical?uo=lo.left-ao.left:so||(uo=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),uo},void 0,so)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},to.prototype._moveFocusPaging=function(no,io){io===void 0&&(io=!0);var so=this._activeElement;if(!so||!this._root.current||this._isElementInput(so)&&!this._shouldInputLoseFocus(so,no))return!1;var ao=findScrollableParent(so);if(!ao)return!1;var lo=-1,uo=void 0,ho=-1,go=-1,mo=ao.clientHeight,yo=so.getBoundingClientRect();do if(so=no?getNextElement(this._root.current,so):getPreviousElement(this._root.current,so),so){var So=so.getBoundingClientRect(),_o=Math.floor(So.top),ko=Math.floor(yo.bottom),Co=Math.floor(So.bottom),$o=Math.floor(yo.top),Ro=this._getHorizontalDistanceFromCenter(no,yo,So),Oo=no&&_o>ko+mo,No=!no&&Co<$o-mo;if(Oo||No)break;Ro>-1&&(no&&_o>ho?(ho=_o,lo=Ro,uo=so):!no&&Co-1){var so=no.selectionStart,ao=no.selectionEnd,lo=so!==ao,uo=no.value,ho=no.readOnly;if(lo||so>0&&!io&&!ho||so!==uo.length&&io&&!ho||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(no)))return!1}return!0},to.prototype._shouldWrapFocus=function(no,io){return this.props.checkForNoWrap?shouldWrapFocus(no,io):!0},to.prototype._portalContainsElement=function(no){return no&&!!this._root.current&&portalContainsElement(no,this._root.current)},to.prototype._getDocument=function(){return getDocument(this._root.current)},to.defaultProps={isCircularNavigation:!1,direction:FocusZoneDirection.bidirectional,shouldRaiseClicks:!0},to}(reactExports.Component),ContextualMenuItemType;(function(eo){eo[eo.Normal=0]="Normal",eo[eo.Divider=1]="Divider",eo[eo.Header=2]="Header",eo[eo.Section=3]="Section"})(ContextualMenuItemType||(ContextualMenuItemType={}));function getIsChecked(eo){return eo.canCheck?!!(eo.isChecked||eo.checked):typeof eo.isChecked=="boolean"?eo.isChecked:typeof eo.checked=="boolean"?eo.checked:null}function hasSubmenu(eo){return!!(eo.subMenuProps||eo.items)}function isItemDisabled(eo){return!!(eo.isDisabled||eo.disabled)}function getMenuItemAriaRole(eo){var to=getIsChecked(eo),no=to!==null;return no?"menuitemcheckbox":"menuitem"}var defaultIconRenderer=function(eo){var to=eo.item,no=eo.classNames,io=to.iconProps;return reactExports.createElement(Icon,__assign$4({},io,{className:no.icon}))},renderItemIcon=function(eo){var to=eo.item,no=eo.hasIcons;return no?to.onRenderIcon?to.onRenderIcon(eo,defaultIconRenderer):defaultIconRenderer(eo):null},renderCheckMarkIcon=function(eo){var to=eo.onCheckmarkClick,no=eo.item,io=eo.classNames,so=getIsChecked(no);if(to){var ao=function(lo){return to(no,lo)};return reactExports.createElement(Icon,{iconName:no.canCheck!==!1&&so?"CheckMark":"",className:io.checkmarkIcon,onClick:ao})}return null},renderItemName=function(eo){var to=eo.item,no=eo.classNames;return to.text||to.name?reactExports.createElement("span",{className:no.label},to.text||to.name):null},renderSecondaryText=function(eo){var to=eo.item,no=eo.classNames;return to.secondaryText?reactExports.createElement("span",{className:no.secondaryText},to.secondaryText):null},renderSubMenuIcon=function(eo){var to=eo.item,no=eo.classNames,io=eo.theme;return hasSubmenu(to)?reactExports.createElement(Icon,__assign$4({iconName:getRTL$1(io)?"ChevronLeft":"ChevronRight"},to.submenuIconProps,{className:no.subMenuIcon})):null},ContextualMenuItemBase=function(eo){__extends$3(to,eo);function to(no){var io=eo.call(this,no)||this;return io.openSubMenu=function(){var so=io.props,ao=so.item,lo=so.openSubMenu,uo=so.getSubmenuTarget;if(uo){var ho=uo();hasSubmenu(ao)&&lo&&ho&&lo(ao,ho)}},io.dismissSubMenu=function(){var so=io.props,ao=so.item,lo=so.dismissSubMenu;hasSubmenu(ao)&&lo&&lo()},io.dismissMenu=function(so){var ao=io.props.dismissMenu;ao&&ao(void 0,so)},initializeComponentRef(io),io}return to.prototype.render=function(){var no=this.props,io=no.item,so=no.classNames,ao=io.onRenderContent||this._renderLayout;return reactExports.createElement("div",{className:io.split?so.linkContentMenu:so.linkContent},ao(this.props,{renderCheckMarkIcon,renderItemIcon,renderItemName,renderSecondaryText,renderSubMenuIcon}))},to.prototype._renderLayout=function(no,io){return reactExports.createElement(reactExports.Fragment,null,io.renderCheckMarkIcon(no),io.renderItemIcon(no),io.renderItemName(no),io.renderSecondaryText(no),io.renderSubMenuIcon(no))},to}(reactExports.Component),getDividerClassNames=memoizeFunction(function(eo){return mergeStyleSets({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:eo.palette.neutralTertiaryAlt}})}),CONTEXTUAL_MENU_ITEM_HEIGHT=36,MediumScreenSelector$1=getScreenSelector(0,ScreenWidthMaxMedium),getMenuItemStyles=memoizeFunction(function(eo){var to,no,io,so,ao,lo=eo.semanticColors,uo=eo.fonts,ho=eo.palette,go=lo.menuItemBackgroundHovered,mo=lo.menuItemTextHovered,yo=lo.menuItemBackgroundPressed,So=lo.bodyDivider,_o={item:[uo.medium,{color:lo.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:So,position:"relative"},root:[getFocusStyle(eo),uo.medium,{color:lo.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:lo.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(to={},to[HighContrastSelector]={color:"GrayText",opacity:1},to)},rootHovered:{backgroundColor:go,color:mo,selectors:{".ms-ContextualMenu-icon":{color:ho.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:ho.neutralPrimary}}},rootFocused:{backgroundColor:ho.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:ho.neutralPrimary}}},rootPressed:{backgroundColor:yo,selectors:{".ms-ContextualMenu-icon":{color:ho.themeDark},".ms-ContextualMenu-submenuIcon":{color:ho.neutralPrimary}}},rootExpanded:{backgroundColor:yo,color:lo.bodyTextChecked,selectors:(no={".ms-ContextualMenu-submenuIcon":(io={},io[HighContrastSelector]={color:"inherit"},io)},no[HighContrastSelector]=__assign$4({},getHighContrastNoAdjustStyle()),no)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:eo.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,fontSize:IconFontSizes.medium,width:IconFontSizes.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(so={},so[MediumScreenSelector$1]={fontSize:IconFontSizes.large,width:IconFontSizes.large},so)},iconColor:{color:lo.menuIcon},iconDisabled:{color:lo.disabledBodyText},checkmarkIcon:{color:lo.bodySubtext},subMenuIcon:{height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,color:ho.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:IconFontSizes.small,selectors:(ao={":hover":{color:ho.neutralPrimary},":active":{color:ho.neutralPrimary}},ao[MediumScreenSelector$1]={fontSize:IconFontSizes.medium},ao)},splitButtonFlexContainer:[getFocusStyle(eo),{display:"flex",height:CONTEXTUAL_MENU_ITEM_HEIGHT,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return concatStyleSets(_o)}),CONTEXTUAL_SPLIT_MENU_MINWIDTH="28px",MediumScreenSelector=getScreenSelector(0,ScreenWidthMaxMedium),getSplitButtonVerticalDividerClassNames=memoizeFunction(function(eo){var to;return mergeStyleSets(getDividerClassNames(eo),{wrapper:{position:"absolute",right:28,selectors:(to={},to[MediumScreenSelector]={right:32},to)},divider:{height:16,width:1}})}),GlobalClassNames$4={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},getItemClassNames=memoizeFunction(function(eo,to,no,io,so,ao,lo,uo,ho,go,mo,yo){var So,_o,ko,Co,$o=getMenuItemStyles(eo),Ro=getGlobalClassNames(GlobalClassNames$4,eo);return mergeStyleSets({item:[Ro.item,$o.item,lo],divider:[Ro.divider,$o.divider,uo],root:[Ro.root,$o.root,io&&[Ro.isChecked,$o.rootChecked],so&&$o.anchorLink,no&&[Ro.isExpanded,$o.rootExpanded],to&&[Ro.isDisabled,$o.rootDisabled],!to&&!no&&[{selectors:(So={":hover":$o.rootHovered,":active":$o.rootPressed},So[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=$o.rootFocused,So[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},So)}],yo],splitPrimary:[$o.root,{width:"calc(100% - ".concat(CONTEXTUAL_SPLIT_MENU_MINWIDTH,")")},io&&["is-checked",$o.rootChecked],(to||mo)&&["is-disabled",$o.rootDisabled],!(to||mo)&&!io&&[{selectors:(_o={":hover":$o.rootHovered},_o[":hover ~ .".concat(Ro.splitMenu)]=$o.rootHovered,_o[":active"]=$o.rootPressed,_o[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=$o.rootFocused,_o[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},_o)}]],splitMenu:[Ro.splitMenu,$o.root,{flexBasis:"0",padding:"0 8px",minWidth:CONTEXTUAL_SPLIT_MENU_MINWIDTH},no&&["is-expanded",$o.rootExpanded],to&&["is-disabled",$o.rootDisabled],!to&&!no&&[{selectors:(ko={":hover":$o.rootHovered,":active":$o.rootPressed},ko[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=$o.rootFocused,ko[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},ko)}]],anchorLink:$o.anchorLink,linkContent:[Ro.linkContent,$o.linkContent],linkContentMenu:[Ro.linkContentMenu,$o.linkContent,{justifyContent:"center"}],icon:[Ro.icon,ao&&$o.iconColor,$o.icon,ho,to&&[Ro.isDisabled,$o.iconDisabled]],iconColor:$o.iconColor,checkmarkIcon:[Ro.checkmarkIcon,ao&&$o.checkmarkIcon,$o.icon,ho],subMenuIcon:[Ro.subMenuIcon,$o.subMenuIcon,go,no&&{color:eo.palette.neutralPrimary},to&&[$o.iconDisabled]],label:[Ro.label,$o.label],secondaryText:[Ro.secondaryText,$o.secondaryText],splitContainer:[$o.splitButtonFlexContainer,!to&&!io&&[{selectors:(Co={},Co[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=$o.rootFocused,Co)}]],screenReaderText:[Ro.screenReaderText,$o.screenReaderText,hiddenContentStyle,{visibility:"hidden"}]})}),getItemStyles=function(eo){var to=eo.theme,no=eo.disabled,io=eo.expanded,so=eo.checked,ao=eo.isAnchorLink,lo=eo.knownIcon,uo=eo.itemClassName,ho=eo.dividerClassName,go=eo.iconClassName,mo=eo.subMenuClassName,yo=eo.primaryDisabled,So=eo.className;return getItemClassNames(to,no,io,so,ao,lo,uo,ho,go,mo,yo,So)},ContextualMenuItem=styled(ContextualMenuItemBase,getItemStyles,void 0,{scope:"ContextualMenuItem"}),ContextualMenuItemWrapper=function(eo){__extends$3(to,eo);function to(no){var io=eo.call(this,no)||this;return io._onItemMouseEnter=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseEnter;uo&&uo(lo,so,so.currentTarget)},io._onItemClick=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemClickBase;uo&&uo(lo,so,so.currentTarget)},io._onItemMouseLeave=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseLeave;uo&&uo(lo,so)},io._onItemKeyDown=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemKeyDown;uo&&uo(lo,so)},io._onItemMouseMove=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseMove;uo&&uo(lo,so,so.currentTarget)},io._getSubmenuTarget=function(){},initializeComponentRef(io),io}return to.prototype.shouldComponentUpdate=function(no){return!shallowCompare(no,this.props)},to}(reactExports.Component),KTP_PREFIX="ktp",KTP_SEPARATOR="-",DATAKTP_TARGET="data-ktp-target",DATAKTP_EXECUTE_TARGET="data-ktp-execute-target",KTP_LAYER_ID="ktp-layer-id",KeytipEvents;(function(eo){eo.KEYTIP_ADDED="keytipAdded",eo.KEYTIP_REMOVED="keytipRemoved",eo.KEYTIP_UPDATED="keytipUpdated",eo.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",eo.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",eo.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",eo.ENTER_KEYTIP_MODE="enterKeytipMode",eo.EXIT_KEYTIP_MODE="exitKeytipMode"})(KeytipEvents||(KeytipEvents={}));var KeytipManager=function(){function eo(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return eo.getInstance=function(){return this._instance},eo.prototype.init=function(to){this.delayUpdatingKeytipChange=to},eo.prototype.register=function(to,no){no===void 0&&(no=!1);var io=to;no||(io=this.addParentOverflow(to),this.sequenceMapping[io.keySequences.toString()]=io);var so=this._getUniqueKtp(io);if(no?this.persistedKeytips[so.uniqueID]=so:this.keytips[so.uniqueID]=so,this.inKeytipMode||!this.delayUpdatingKeytipChange){var ao=no?KeytipEvents.PERSISTED_KEYTIP_ADDED:KeytipEvents.KEYTIP_ADDED;EventGroup.raise(this,ao,{keytip:io,uniqueID:so.uniqueID})}return so.uniqueID},eo.prototype.update=function(to,no){var io=this.addParentOverflow(to),so=this._getUniqueKtp(io,no),ao=this.keytips[no];ao&&(so.keytip.visible=ao.keytip.visible,this.keytips[no]=so,delete this.sequenceMapping[ao.keytip.keySequences.toString()],this.sequenceMapping[so.keytip.keySequences.toString()]=so.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,KeytipEvents.KEYTIP_UPDATED,{keytip:so.keytip,uniqueID:so.uniqueID}))},eo.prototype.unregister=function(to,no,io){io===void 0&&(io=!1),io?delete this.persistedKeytips[no]:delete this.keytips[no],!io&&delete this.sequenceMapping[to.keySequences.toString()];var so=io?KeytipEvents.PERSISTED_KEYTIP_REMOVED:KeytipEvents.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,so,{keytip:to,uniqueID:no})},eo.prototype.enterKeytipMode=function(){EventGroup.raise(this,KeytipEvents.ENTER_KEYTIP_MODE)},eo.prototype.exitKeytipMode=function(){EventGroup.raise(this,KeytipEvents.EXIT_KEYTIP_MODE)},eo.prototype.getKeytips=function(){var to=this;return Object.keys(this.keytips).map(function(no){return to.keytips[no].keytip})},eo.prototype.addParentOverflow=function(to){var no=__spreadArray$1([],to.keySequences,!0);if(no.pop(),no.length!==0){var io=this.sequenceMapping[no.toString()];if(io&&io.overflowSetSequence)return __assign$4(__assign$4({},to),{overflowSetSequence:io.overflowSetSequence})}return to},eo.prototype.menuExecute=function(to,no){EventGroup.raise(this,KeytipEvents.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:to,keytipSequences:no})},eo.prototype._getUniqueKtp=function(to,no){return no===void 0&&(no=getId$1()),{keytip:__assign$4({},to),uniqueID:no}},eo._instance=new eo,eo}();function sequencesToID(eo){return eo.reduce(function(to,no){return to+KTP_SEPARATOR+no.split("").join(KTP_SEPARATOR)},KTP_PREFIX)}function mergeOverflows(eo,to){var no=to.length,io=__spreadArray$1([],to,!0).pop(),so=__spreadArray$1([],eo,!0);return addElementAtIndex(so,no-1,io)}function getAriaDescribedBy(eo){var to=" "+KTP_LAYER_ID;return eo.length?to+" "+sequencesToID(eo):to}function useKeytipData(eo){var to=reactExports.useRef(),no=eo.keytipProps?__assign$4({disabled:eo.disabled},eo.keytipProps):void 0,io=useConst(KeytipManager.getInstance()),so=usePrevious(eo);useIsomorphicLayoutEffect(function(){to.current&&no&&((so==null?void 0:so.keytipProps)!==eo.keytipProps||(so==null?void 0:so.disabled)!==eo.disabled)&&io.update(no,to.current)}),useIsomorphicLayoutEffect(function(){return no&&(to.current=io.register(no)),function(){no&&io.unregister(no,to.current)}},[]);var ao={ariaDescribedBy:void 0,keytipId:void 0};return no&&(ao=getKeytipData(io,no,eo.ariaDescribedBy)),ao}function getKeytipData(eo,to,no){var io=eo.addParentOverflow(to),so=mergeAriaAttributeValues(no,getAriaDescribedBy(io.keySequences)),ao=__spreadArray$1([],io.keySequences,!0);io.overflowSetSequence&&(ao=mergeOverflows(ao,io.overflowSetSequence));var lo=sequencesToID(ao);return{ariaDescribedBy:so,keytipId:lo}}var KeytipData=function(eo){var to,no=eo.children,io=__rest$1(eo,["children"]),so=useKeytipData(io),ao=so.keytipId,lo=so.ariaDescribedBy;return no((to={},to[DATAKTP_TARGET]=ao,to[DATAKTP_EXECUTE_TARGET]=ao,to["aria-describedby"]=lo,to))},ContextualMenuAnchor=function(eo){__extends$3(to,eo);function to(){var no=eo!==null&&eo.apply(this,arguments)||this;return no._anchor=reactExports.createRef(),no._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(io){return __assign$4(__assign$4({},io),{hasMenu:!0})}),no._getSubmenuTarget=function(){return no._anchor.current?no._anchor.current:void 0},no._onItemClick=function(io){var so=no.props,ao=so.item,lo=so.onItemClick;lo&&lo(ao,io)},no._renderAriaDescription=function(io,so){return io?reactExports.createElement("span",{id:no._ariaDescriptionId,className:so},io):null},no}return to.prototype.render=function(){var no=this,io=this.props,so=io.item,ao=io.classNames,lo=io.index,uo=io.focusableElementIndex,ho=io.totalItemCount,go=io.hasCheckmarks,mo=io.hasIcons,yo=io.expandedMenuItemKey,So=io.onItemClick,_o=io.openSubMenu,ko=io.dismissSubMenu,Co=io.dismissMenu,$o=ContextualMenuItem;this.props.item.contextualMenuItemAs&&($o=composeComponentAs(this.props.item.contextualMenuItemAs,$o)),this.props.contextualMenuItemAs&&($o=composeComponentAs(this.props.contextualMenuItemAs,$o));var Ro=so.rel;so.target&&so.target.toLowerCase()==="_blank"&&(Ro=Ro||"nofollow noopener noreferrer");var Oo=hasSubmenu(so),No=getNativeProps(so,anchorProperties),Mo=isItemDisabled(so),Bo=so.itemProps,Fo=so.ariaDescription,Lo=so.keytipProps;Lo&&Oo&&(Lo=this._getMemoizedMenuButtonKeytipProps(Lo)),Fo&&(this._ariaDescriptionId=getId$1());var Go=mergeAriaAttributeValues(so.ariaDescribedBy,Fo?this._ariaDescriptionId:void 0,No["aria-describedby"]),Do={"aria-describedby":Go};return reactExports.createElement("div",null,reactExports.createElement(KeytipData,{keytipProps:so.keytipProps,ariaDescribedBy:Go,disabled:Mo},function(Uo){return reactExports.createElement("a",__assign$4({},Do,No,Uo,{ref:no._anchor,href:so.href,target:so.target,rel:Ro,className:ao.root,role:"menuitem","aria-haspopup":Oo||void 0,"aria-expanded":Oo?so.key===yo:void 0,"aria-posinset":uo+1,"aria-setsize":ho,"aria-disabled":isItemDisabled(so),style:so.style,onClick:no._onItemClick,onMouseEnter:no._onItemMouseEnter,onMouseLeave:no._onItemMouseLeave,onMouseMove:no._onItemMouseMove,onKeyDown:Oo?no._onItemKeyDown:void 0}),reactExports.createElement($o,__assign$4({componentRef:so.componentRef,item:so,classNames:ao,index:lo,onCheckmarkClick:go&&So?So:void 0,hasIcons:mo,openSubMenu:_o,dismissSubMenu:ko,dismissMenu:Co,getSubmenuTarget:no._getSubmenuTarget},Bo)),no._renderAriaDescription(Fo,ao.screenReaderText))}))},to}(ContextualMenuItemWrapper),ContextualMenuButton=function(eo){__extends$3(to,eo);function to(){var no=eo!==null&&eo.apply(this,arguments)||this;return no._btn=reactExports.createRef(),no._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(io){return __assign$4(__assign$4({},io),{hasMenu:!0})}),no._renderAriaDescription=function(io,so){return io?reactExports.createElement("span",{id:no._ariaDescriptionId,className:so},io):null},no._getSubmenuTarget=function(){return no._btn.current?no._btn.current:void 0},no}return to.prototype.render=function(){var no=this,io=this.props,so=io.item,ao=io.classNames,lo=io.index,uo=io.focusableElementIndex,ho=io.totalItemCount,go=io.hasCheckmarks,mo=io.hasIcons,yo=io.contextualMenuItemAs,So=io.expandedMenuItemKey,_o=io.onItemMouseDown,ko=io.onItemClick,Co=io.openSubMenu,$o=io.dismissSubMenu,Ro=io.dismissMenu,Oo=ContextualMenuItem;so.contextualMenuItemAs&&(Oo=composeComponentAs(so.contextualMenuItemAs,Oo)),yo&&(Oo=composeComponentAs(yo,Oo));var No=getIsChecked(so),Mo=No!==null,Bo=getMenuItemAriaRole(so),Fo=hasSubmenu(so),Lo=so.itemProps,Go=so.ariaLabel,Do=so.ariaDescription,Uo=getNativeProps(so,buttonProperties);delete Uo.disabled;var Ho=so.role||Bo;Do&&(this._ariaDescriptionId=getId$1());var Yo=mergeAriaAttributeValues(so.ariaDescribedBy,Do?this._ariaDescriptionId:void 0,Uo["aria-describedby"]),qo={className:ao.root,onClick:this._onItemClick,onKeyDown:Fo?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(ps){return _o?_o(so,ps):void 0},onMouseMove:this._onItemMouseMove,href:so.href,title:so.title,"aria-label":Go,"aria-describedby":Yo,"aria-haspopup":Fo||void 0,"aria-expanded":Fo?so.key===So:void 0,"aria-posinset":uo+1,"aria-setsize":ho,"aria-disabled":isItemDisabled(so),"aria-checked":(Ho==="menuitemcheckbox"||Ho==="menuitemradio")&&Mo?!!No:void 0,"aria-selected":Ho==="menuitem"&&Mo?!!No:void 0,role:Ho,style:so.style},Jo=so.keytipProps;return Jo&&Fo&&(Jo=this._getMemoizedMenuButtonKeytipProps(Jo)),reactExports.createElement(KeytipData,{keytipProps:Jo,ariaDescribedBy:Yo,disabled:isItemDisabled(so)},function(ps){return reactExports.createElement("button",__assign$4({ref:no._btn},Uo,qo,ps),reactExports.createElement(Oo,__assign$4({componentRef:so.componentRef,item:so,classNames:ao,index:lo,onCheckmarkClick:go&&ko?ko:void 0,hasIcons:mo,openSubMenu:Co,dismissSubMenu:$o,dismissMenu:Ro,getSubmenuTarget:no._getSubmenuTarget},Lo)),no._renderAriaDescription(Do,ao.screenReaderText))})},to}(ContextualMenuItemWrapper),getStyles$k=function(eo){var to=eo.theme,no=eo.getClassNames,io=eo.className;if(!to)throw new Error("Theme is undefined or null.");if(no){var so=no(to);return{wrapper:[so.wrapper],divider:[so.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},io],divider:[{width:1,height:"100%",backgroundColor:to.palette.neutralTertiaryAlt}]}},getClassNames$4=classNamesFunction(),VerticalDividerBase=reactExports.forwardRef(function(eo,to){var no=eo.styles,io=eo.theme,so=eo.getClassNames,ao=eo.className,lo=getClassNames$4(no,{theme:io,getClassNames:so,className:ao});return reactExports.createElement("span",{className:lo.wrapper,ref:to},reactExports.createElement("span",{className:lo.divider}))});VerticalDividerBase.displayName="VerticalDividerBase";var VerticalDivider=styled(VerticalDividerBase,getStyles$k,void 0,{scope:"VerticalDivider"}),TouchIdleDelay=500,ContextualMenuSplitButton=function(eo){__extends$3(to,eo);function to(no){var io=eo.call(this,no)||this;return io._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(so){return __assign$4(__assign$4({},so),{hasMenu:!0})}),io._onItemKeyDown=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemKeyDown;so.which===KeyCodes$1.enter?(io._executeItemClick(so),so.preventDefault(),so.stopPropagation()):uo&&uo(lo,so)},io._getSubmenuTarget=function(){return io._splitButton},io._renderAriaDescription=function(so,ao){return so?reactExports.createElement("span",{id:io._ariaDescriptionId,className:ao},so):null},io._onItemMouseEnterPrimary=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseEnter;uo&&uo(__assign$4(__assign$4({},lo),{subMenuProps:void 0,items:void 0}),so,io._splitButton)},io._onItemMouseEnterIcon=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseEnter;uo&&uo(lo,so,io._splitButton)},io._onItemMouseMovePrimary=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseMove;uo&&uo(__assign$4(__assign$4({},lo),{subMenuProps:void 0,items:void 0}),so,io._splitButton)},io._onItemMouseMoveIcon=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemMouseMove;uo&&uo(lo,so,io._splitButton)},io._onIconItemClick=function(so){var ao=io.props,lo=ao.item,uo=ao.onItemClickBase;uo&&uo(lo,so,io._splitButton?io._splitButton:so.currentTarget)},io._executeItemClick=function(so){var ao=io.props,lo=ao.item,uo=ao.executeItemClick,ho=ao.onItemClick;if(!(lo.disabled||lo.isDisabled)){if(io._processingTouch&&!lo.canCheck&&ho)return ho(lo,so);uo&&uo(lo,so)}},io._onTouchStart=function(so){io._splitButton&&!("onpointerdown"in io._splitButton)&&io._handleTouchAndPointerEvent(so)},io._onPointerDown=function(so){so.pointerType==="touch"&&(io._handleTouchAndPointerEvent(so),so.preventDefault(),so.stopImmediatePropagation())},io._async=new Async(io),io._events=new EventGroup(io),io._dismissLabelId=getId$1(),io}return to.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},to.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},to.prototype.render=function(){var no=this,io,so=this.props,ao=so.item,lo=so.classNames,uo=so.index,ho=so.focusableElementIndex,go=so.totalItemCount,mo=so.hasCheckmarks,yo=so.hasIcons,So=so.onItemMouseLeave,_o=so.expandedMenuItemKey,ko=hasSubmenu(ao),Co=ao.keytipProps;Co&&(Co=this._getMemoizedMenuButtonKeytipProps(Co));var $o=ao.ariaDescription;$o&&(this._ariaDescriptionId=getId$1());var Ro=(io=getIsChecked(ao))!==null&&io!==void 0?io:void 0;return reactExports.createElement(KeytipData,{keytipProps:Co,disabled:isItemDisabled(ao)},function(Oo){return reactExports.createElement("div",{"data-ktp-target":Oo["data-ktp-target"],ref:function(No){return no._splitButton=No},role:getMenuItemAriaRole(ao),"aria-label":ao.ariaLabel,className:lo.splitContainer,"aria-disabled":isItemDisabled(ao),"aria-expanded":ko?ao.key===_o:void 0,"aria-haspopup":!0,"aria-describedby":mergeAriaAttributeValues(ao.ariaDescribedBy,$o?no._ariaDescriptionId:void 0,Oo["aria-describedby"]),"aria-checked":Ro,"aria-posinset":ho+1,"aria-setsize":go,onMouseEnter:no._onItemMouseEnterPrimary,onMouseLeave:So?So.bind(no,__assign$4(__assign$4({},ao),{subMenuProps:null,items:null})):void 0,onMouseMove:no._onItemMouseMovePrimary,onKeyDown:no._onItemKeyDown,onClick:no._executeItemClick,onTouchStart:no._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":ao["aria-roledescription"]},no._renderSplitPrimaryButton(ao,lo,uo,mo,yo),no._renderSplitDivider(ao),no._renderSplitIconButton(ao,lo,uo,Oo),no._renderAriaDescription($o,lo.screenReaderText))})},to.prototype._renderSplitPrimaryButton=function(no,io,so,ao,lo){var uo=this.props,ho=uo.contextualMenuItemAs,go=ho===void 0?ContextualMenuItem:ho,mo=uo.onItemClick,yo={key:no.key,disabled:isItemDisabled(no)||no.primaryDisabled,name:no.name,text:no.text||no.name,secondaryText:no.secondaryText,className:io.splitPrimary,canCheck:no.canCheck,isChecked:no.isChecked,checked:no.checked,iconProps:no.iconProps,id:this._dismissLabelId,onRenderIcon:no.onRenderIcon,data:no.data,"data-is-focusable":!1},So=no.itemProps;return reactExports.createElement("button",__assign$4({},getNativeProps(yo,buttonProperties)),reactExports.createElement(go,__assign$4({"data-is-focusable":!1,item:yo,classNames:io,index:so,onCheckmarkClick:ao&&mo?mo:void 0,hasIcons:lo},So)))},to.prototype._renderSplitDivider=function(no){var io=no.getSplitButtonVerticalDividerClassNames||getSplitButtonVerticalDividerClassNames;return reactExports.createElement(VerticalDivider,{getClassNames:io})},to.prototype._renderSplitIconButton=function(no,io,so,ao){var lo=this.props,uo=lo.onItemMouseLeave,ho=lo.onItemMouseDown,go=lo.openSubMenu,mo=lo.dismissSubMenu,yo=lo.dismissMenu,So=ContextualMenuItem;this.props.item.contextualMenuItemAs&&(So=composeComponentAs(this.props.item.contextualMenuItemAs,So)),this.props.contextualMenuItemAs&&(So=composeComponentAs(this.props.contextualMenuItemAs,So));var _o={onClick:this._onIconItemClick,disabled:isItemDisabled(no),className:io.splitMenu,subMenuProps:no.subMenuProps,submenuIconProps:no.submenuIconProps,split:!0,key:no.key,"aria-labelledby":this._dismissLabelId},ko=__assign$4(__assign$4({},getNativeProps(_o,buttonProperties)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:uo?uo.bind(this,no):void 0,onMouseDown:function($o){return ho?ho(no,$o):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":ao["data-ktp-execute-target"],"aria-haspopup":!0}),Co=no.itemProps;return reactExports.createElement("button",__assign$4({},ko),reactExports.createElement(So,__assign$4({componentRef:no.componentRef,item:_o,classNames:io,index:so,hasIcons:!1,openSubMenu:go,dismissSubMenu:mo,dismissMenu:yo,getSubmenuTarget:this._getSubmenuTarget},Co)))},to.prototype._handleTouchAndPointerEvent=function(no){var io=this,so=this.props.onTap;so&&so(no),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){io._processingTouch=!1,io._lastTouchTimeoutId=void 0},TouchIdleDelay)},to}(ContextualMenuItemWrapper),ResponsiveMode;(function(eo){eo[eo.small=0]="small",eo[eo.medium=1]="medium",eo[eo.large=2]="large",eo[eo.xLarge=3]="xLarge",eo[eo.xxLarge=4]="xxLarge",eo[eo.xxxLarge=5]="xxxLarge",eo[eo.unknown=999]="unknown"})(ResponsiveMode||(ResponsiveMode={}));var RESPONSIVE_MAX_CONSTRAINT=[479,639,1023,1365,1919,99999999],_defaultMode,_lastMode;function getInitialResponsiveMode(){var eo;return(eo=_defaultMode??_lastMode)!==null&&eo!==void 0?eo:ResponsiveMode.large}function getWidthOfCurrentWindow(eo){try{return eo.document.documentElement.clientWidth}catch{return eo.innerWidth}}function getResponsiveMode(eo){var to=ResponsiveMode.small;if(eo){try{for(;getWidthOfCurrentWindow(eo)>RESPONSIVE_MAX_CONSTRAINT[to];)to++}catch{to=getInitialResponsiveMode()}_lastMode=to}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return to}var useResponsiveMode=function(eo,to){var no=reactExports.useState(getInitialResponsiveMode()),io=no[0],so=no[1],ao=reactExports.useCallback(function(){var uo=getResponsiveMode(getWindow(eo.current));io!==uo&&so(uo)},[eo,io]),lo=useWindow();return useOnEvent(lo,"resize",ao),reactExports.useEffect(function(){to===void 0&&ao()},[to]),to??io},MenuContext=reactExports.createContext({}),getClassNames$3=classNamesFunction(),getContextualMenuItemClassNames=classNamesFunction(),DEFAULT_PROPS$1={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:DirectionalHint.bottomAutoEdge,beakWidth:16};function getItemCount(eo){for(var to=0,no=0,io=eo;no0){var J0=0;return reactExports.createElement("li",{role:"presentation",key:Rl.key||C1.key||"section-".concat(_l)},reactExports.createElement("div",__assign$4({},eu),reactExports.createElement("ul",{className:Ul.list,role:"presentation"},Rl.topDivider&&yl(_l,Ll,!0,!0),Sl&&El(Sl,C1.key||_l,Ll,C1.title),Rl.items.map(function(S1,O1){var r0=Fs(S1,O1,J0,getItemCount(Rl.items),$l,Us,Ul);if(S1.itemType!==ContextualMenuItemType.Divider&&S1.itemType!==ContextualMenuItemType.Header){var I1=S1.customOnRenderListLength?S1.customOnRenderListLength:1;J0+=I1}return r0}),Rl.bottomDivider&&yl(_l,Ll,!1,!0))))}}},El=function(C1,Ll,Ul,_l){return reactExports.createElement("li",{role:"presentation",title:_l,key:Ll,className:Ul.item},C1)},yl=function(C1,Ll,Ul,_l){return _l||C1>0?reactExports.createElement("li",{role:"separator",key:"separator-"+C1+(Ul===void 0?"":Ul?"-top":"-bottom"),className:Ll.divider,"aria-hidden":"true"}):null},Gl=function(C1,Ll,Ul,_l,$l,Us,Rl){if(C1.onRender)return C1.onRender(__assign$4({"aria-posinset":_l+1,"aria-setsize":$l},C1),ho);var Sl=so.contextualMenuItemAs,eu={item:C1,classNames:Ll,index:Ul,focusableElementIndex:_l,totalItemCount:$l,hasCheckmarks:Us,hasIcons:Rl,contextualMenuItemAs:Sl,onItemMouseEnter:vs,onItemMouseLeave:Os,onItemMouseMove:ks,onItemMouseDown,executeItemClick:Ws,onItemKeyDown:gs,expandedMenuItemKey:ko,openSubMenu:Co,dismissSubMenu:Ro,dismissMenu:ho};if(C1.href){var _c=ContextualMenuAnchor;return C1.contextualMenuItemWrapperAs&&(_c=composeComponentAs(C1.contextualMenuItemWrapperAs,_c)),reactExports.createElement(_c,__assign$4({},eu,{onItemClick:Xs}))}if(C1.split&&hasSubmenu(C1)){var zu=ContextualMenuSplitButton;return C1.contextualMenuItemWrapperAs&&(zu=composeComponentAs(C1.contextualMenuItemWrapperAs,zu)),reactExports.createElement(zu,__assign$4({},eu,{onItemClick:Ts,onItemClickBase:Ps,onTap:Uo}))}var N1=ContextualMenuButton;return C1.contextualMenuItemWrapperAs&&(N1=composeComponentAs(C1.contextualMenuItemWrapperAs,N1)),reactExports.createElement(N1,__assign$4({},eu,{onItemClick:Ts,onItemClickBase:Ps}))},Qs=function(C1,Ll,Ul,_l,$l,Us){var Rl=ContextualMenuItem;C1.contextualMenuItemAs&&(Rl=composeComponentAs(C1.contextualMenuItemAs,Rl)),so.contextualMenuItemAs&&(Rl=composeComponentAs(so.contextualMenuItemAs,Rl));var Sl=C1.itemProps,eu=C1.id,_c=Sl&&getNativeProps(Sl,divProperties);return reactExports.createElement("div",__assign$4({id:eu,className:Ul.header},_c,{style:C1.style}),reactExports.createElement(Rl,__assign$4({item:C1,classNames:Ll,index:_l,onCheckmarkClick:$l?Ts:void 0,hasIcons:Us},Sl)))},du=so.isBeakVisible,Ol=so.items,Fu=so.labelElementId,ju=so.id,F1=so.className,y1=so.beakWidth,r1=so.directionalHint,$u=so.directionalHintForRTL,Kl=so.alignTargetEdge,Is=so.gapSpace,Ks=so.coverTarget,Bs=so.ariaLabel,Ds=so.doNotLayer,Zs=so.target,Cl=so.bounds,ba=so.useTargetWidth,fu=so.useTargetAsMinWidth,Lu=so.directionalHintFixed,e1=so.shouldFocusOnMount,Gu=so.shouldFocusOnContainer,w1=so.title,Zu=so.styles,L1=so.theme,K1=so.calloutProps,yp=so.onRenderSubMenu,wp=yp===void 0?onDefaultRenderSubMenu:yp,j0=so.onRenderMenuList,h0=j0===void 0?function(C1,Ll){return qs(C1,ap)}:j0,cp=so.focusZoneProps,k0=so.getMenuClassNames,ap=k0?k0(L1,F1):getClassNames$3(Zu,{theme:L1,className:F1}),x0=b0(Ol);function b0(C1){for(var Ll=0,Ul=C1;Ll0){var $v=getItemCount(Ol),Gv=ap.subComponentStyles?ap.subComponentStyles.callout:void 0;return reactExports.createElement(MenuContext.Consumer,null,function(C1){return reactExports.createElement(Callout,__assign$4({styles:Gv,onRestoreFocus:So},K1,{target:Zs||C1.target,isBeakVisible:du,beakWidth:y1,directionalHint:r1,directionalHintForRTL:$u,gapSpace:Is,coverTarget:Ks,doNotLayer:Ds,className:css$3("ms-ContextualMenu-Callout",K1&&K1.className),setInitialFocus:e1,onDismiss:so.onDismiss||C1.onDismiss,onScroll:Lo,bounds:Cl,directionalHintFixed:Lu,alignTargetEdge:Kl,hidden:so.hidden||C1.hidden,ref:to}),reactExports.createElement("div",{style:P0,ref:ao,id:ju,className:ap.container,tabIndex:Gu?0:-1,onKeyDown:hs,onKeyUp:Qo,onFocusCapture:Bo,"aria-label":Bs,"aria-labelledby":Fu,role:"menu"},w1&&reactExports.createElement("div",{className:ap.title}," ",w1," "),Ol&&Ol.length?ga(h0({ariaLabel:Bs,items:Ol,totalItemCount:$v,hasCheckmarks:c1,hasIcons:x0,defaultMenuItemRenderer:function(Ll){return Js(Ll,ap)},labelElementId:Fu},function(Ll,Ul){return qs(Ll,ap)}),P1):null,V0&&wp(V0,onDefaultRenderSubMenu)),reactExports.createElement(FocusRects,null))})}else return null}),function(eo,to){return!to.shouldUpdateWhenHidden&&eo.hidden&&to.hidden?!0:shallowCompare(eo,to)});ContextualMenuBase.displayName="ContextualMenuBase";function isAltOrMeta(eo){return eo.which===KeyCodes$1.alt||eo.key==="Meta"}function onItemMouseDown(eo,to){var no;(no=eo.onMouseDown)===null||no===void 0||no.call(eo,eo,to)}function onDefaultRenderSubMenu(eo,to){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function findItemByKeyFromItems(eo,to){for(var no=0,io=to;no=(Qo||ResponsiveMode.small)&&reactExports.createElement(Layer,__assign$4({ref:qs},w1),reactExports.createElement(Popup,__assign$4({role:Lu?"alertdialog":"dialog",ariaLabelledBy:Ho,ariaDescribedBy:qo,onDismiss:Lo,shouldRestoreFocus:!Oo,enableAriaHiddenSiblings:ks,"aria-modal":!gs},Os),reactExports.createElement("div",{className:Gu.root,role:gs?void 0:"document"},!gs&&reactExports.createElement(Overlay,__assign$4({"aria-hidden":!0,isDarkThemed:Fo,onClick:No?void 0:Lo,allowTouchBodyScroll:ho},Do)),ys?reactExports.createElement(DraggableZone,{handleSelector:ys.dragHandleSelector||"#".concat(Fs),preventDragSelector:"button",onStart:wp,onDragChange:j0,onStop:h0,position:y1},x0):x0)))||null});ModalBase.displayName="Modal";var Modal=styled(ModalBase,getStyles$i,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});Modal.displayName="Modal";var assign$4=__assign$4;function withSlots(eo,to){for(var no=[],io=2;io0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return _renderSlot(to[lo],ho,io[lo],io.slots&&io.slots[lo],io._defaultStyles&&io._defaultStyles[lo],io.theme)};uo.isSlot=!0,no[lo]=uo}};for(var ao in to)so(ao);return no}function _translateShorthand(eo,to){var no,io;return typeof to=="string"||typeof to=="number"||typeof to=="boolean"?io=(no={},no[eo]=to,no):io=to,io}function _constructFinalProps(eo,to){for(var no=[],io=2;io2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(no.length===2)return{rowGap:_getValueUnitGap(_getThemedSpacing(no[0],to)),columnGap:_getValueUnitGap(_getThemedSpacing(no[1],to))};var io=_getValueUnitGap(_getThemedSpacing(eo,to));return{rowGap:io,columnGap:io}},parsePadding=function(eo,to){if(eo===void 0||typeof eo=="number"||eo==="")return eo;var no=eo.split(" ");return no.length<2?_getThemedSpacing(eo,to):no.reduce(function(io,so){return _getThemedSpacing(io,to)+" "+_getThemedSpacing(so,to)})},nameMap={start:"flex-start",end:"flex-end"},GlobalClassNames={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},styles$d=function(eo,to,no){var io,so,ao,lo,uo,ho,go,mo,yo,So,_o,ko,Co,$o=eo.className,Ro=eo.disableShrink,Oo=eo.enableScopedSelectors,No=eo.grow,Mo=eo.horizontal,Bo=eo.horizontalAlign,Fo=eo.reversed,Lo=eo.verticalAlign,Go=eo.verticalFill,Do=eo.wrap,Uo=getGlobalClassNames(GlobalClassNames,to),Ho=no&&no.childrenGap?no.childrenGap:eo.gap,Yo=no&&no.maxHeight?no.maxHeight:eo.maxHeight,qo=no&&no.maxWidth?no.maxWidth:eo.maxWidth,Jo=no&&no.padding?no.padding:eo.padding,ps=parseGap(Ho,to),Qo=ps.rowGap,hs=ps.columnGap,gs="".concat(-.5*hs.value).concat(hs.unit),ys="".concat(-.5*Qo.value).concat(Qo.unit),vs={textOverflow:"ellipsis"},ks="> "+(Oo?"."+GlobalClassNames.child:"*"),Os=(io={},io["".concat(ks,":not(.").concat(GlobalClassNames$1.root,")")]={flexShrink:0},io);return Do?{root:[Uo.root,{flexWrap:"wrap",maxWidth:qo,maxHeight:Yo,width:"auto",overflow:"visible",height:"100%"},Bo&&(so={},so[Mo?"justifyContent":"alignItems"]=nameMap[Bo]||Bo,so),Lo&&(ao={},ao[Mo?"alignItems":"justifyContent"]=nameMap[Lo]||Lo,ao),$o,{display:"flex"},Mo&&{height:Go?"100%":"auto"}],inner:[Uo.inner,(lo={display:"flex",flexWrap:"wrap",marginLeft:gs,marginRight:gs,marginTop:ys,marginBottom:ys,overflow:"visible",boxSizing:"border-box",padding:parsePadding(Jo,to),width:hs.value===0?"100%":"calc(100% + ".concat(hs.value).concat(hs.unit,")"),maxWidth:"100vw"},lo[ks]=__assign$4({margin:"".concat(.5*Qo.value).concat(Qo.unit," ").concat(.5*hs.value).concat(hs.unit)},vs),lo),Ro&&Os,Bo&&(uo={},uo[Mo?"justifyContent":"alignItems"]=nameMap[Bo]||Bo,uo),Lo&&(ho={},ho[Mo?"alignItems":"justifyContent"]=nameMap[Lo]||Lo,ho),Mo&&(go={flexDirection:Fo?"row-reverse":"row",height:Qo.value===0?"100%":"calc(100% + ".concat(Qo.value).concat(Qo.unit,")")},go[ks]={maxWidth:hs.value===0?"100%":"calc(100% - ".concat(hs.value).concat(hs.unit,")")},go),!Mo&&(mo={flexDirection:Fo?"column-reverse":"column",height:"calc(100% + ".concat(Qo.value).concat(Qo.unit,")")},mo[ks]={maxHeight:Qo.value===0?"100%":"calc(100% - ".concat(Qo.value).concat(Qo.unit,")")},mo)]}:{root:[Uo.root,(yo={display:"flex",flexDirection:Mo?Fo?"row-reverse":"row":Fo?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:Go?"100%":"auto",maxWidth:qo,maxHeight:Yo,padding:parsePadding(Jo,to),boxSizing:"border-box"},yo[ks]=vs,yo),Ro&&Os,No&&{flexGrow:No===!0?1:No},Bo&&(So={},So[Mo?"justifyContent":"alignItems"]=nameMap[Bo]||Bo,So),Lo&&(_o={},_o[Mo?"alignItems":"justifyContent"]=nameMap[Lo]||Lo,_o),Mo&&hs.value>0&&(ko={},ko[Fo?"".concat(ks,":not(:last-child)"):"".concat(ks,":not(:first-child)")]={marginLeft:"".concat(hs.value).concat(hs.unit)},ko),!Mo&&Qo.value>0&&(Co={},Co[Fo?"".concat(ks,":not(:last-child)"):"".concat(ks,":not(:first-child)")]={marginTop:"".concat(Qo.value).concat(Qo.unit)},Co),$o]}},StackView=function(eo){var to=eo.as,no=to===void 0?"div":to,io=eo.disableShrink,so=io===void 0?!1:io,ao=eo.doNotRenderFalsyValues,lo=ao===void 0?!1:ao,uo=eo.enableScopedSelectors,ho=uo===void 0?!1:uo,go=eo.wrap,mo=__rest$1(eo,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]),yo=_processStackChildren(eo.children,{disableShrink:so,enableScopedSelectors:ho,doNotRenderFalsyValues:lo}),So=getNativeProps(mo,htmlElementProperties),_o=getSlots(eo,{root:no,inner:"div"});return go?withSlots(_o.root,__assign$4({},So),withSlots(_o.inner,null,yo)):withSlots(_o.root,__assign$4({},So),yo)};function _processStackChildren(eo,to){var no=to.disableShrink,io=to.enableScopedSelectors,so=to.doNotRenderFalsyValues,ao=reactExports.Children.toArray(eo);return ao=reactExports.Children.map(ao,function(lo){if(!lo)return so?null:lo;if(!reactExports.isValidElement(lo))return lo;if(lo.type===reactExports.Fragment)return lo.props.children?_processStackChildren(lo.props.children,{disableShrink:no,enableScopedSelectors:io,doNotRenderFalsyValues:so}):null;var uo=lo,ho={};_isStackItem(lo)&&(ho={shrink:!no});var go=uo.props.className;return reactExports.cloneElement(uo,__assign$4(__assign$4(__assign$4(__assign$4({},ho),uo.props),go&&{className:go}),io&&{className:css$3(GlobalClassNames.child,go)}))}),ao}function _isStackItem(eo){return!!eo&&typeof eo=="object"&&!!eo.type&&eo.type.displayName===StackItem.displayName}var StackStatics={Item:StackItem},Stack$3=createComponent(StackView,{displayName:"Stack",styles:styles$d,statics:StackStatics});const AzureContentSafetyIcon="data:image/svg+xml,%3csvg%20id='uuid-40011f3f-22d0-4882-8376-afe2ef514a7e'%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%3e%3cdefs%3e%3clinearGradient%20id='uuid-5c4dfc33-1236-40a5-b487-5c8d33e4013b'%20x1='12.062'%20y1='5.427'%20x2='12.062'%20y2='3.991'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2376bc2d'/%3e%3cstop%20offset='1'%20stop-color='%2386d633'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-5dc2ae3c-3a23-47ff-9dc1-e087ff0e2742'%20x1='2.902'%20y1='6.762'%20x2='9.455'%20y2='6.762'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e6e6e6'/%3e%3cstop%20offset='1'%20stop-color='%23999'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-d781b8b0-afbe-4f6e-a478-ee1974441cbf'%20x1='-1288.505'%20y1='-521.774'%20x2='-1284.777'%20y2='-521.774'%20gradientTransform='translate(-512.319%201291.819)%20rotate(90)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2386d633'/%3e%3cstop%20offset='1'%20stop-color='%2376bc2d'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-efb884ed-afc6-4667-82f2-34983e82b107'%20x1='2.902'%20y1='11.544'%20x2='9.455'%20y2='11.544'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e6e6e6'/%3e%3cstop%20offset='1'%20stop-color='%23999'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-e8c8c19d-aa6c-48ed-823e-cfec5a014d78'%20x1='-274.183'%20y1='-521.774'%20x2='-279.397'%20y2='-521.774'%20gradientTransform='translate(-512.319%20-263.224)%20rotate(-90)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23faa21d'/%3e%3cstop%20offset='.999'%20stop-color='%23f78d1e'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-7a6a88dd-1778-43da-9238-45bfc5a17b3e'%20x1='-140.646'%20y1='13.626'%20x2='-143.764'%20y2='4.784'%20gradientTransform='translate(149.182)%20skewX(-19.425)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2350e6ff'/%3e%3cstop%20offset='1'%20stop-color='%239cebff'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='m16.62,4.541l-2.765-1.597c-.129-.075-.291.019-.291.168v.822h-6.158v1.55h6.158v.822c0,.149.161.242.291.168l2.765-1.597c.129-.075.129-.261,0-.336Z'%20fill='url(%23uuid-5c4dfc33-1236-40a5-b487-5c8d33e4013b)'/%3e%3cpath%20d='m4.495,9.616h-1.592v-4.634c-.002-.591.476-1.071,1.067-1.073,0,0,.001,0,.002,0h5.484v1.592h-4.96v4.115Z'%20fill='url(%23uuid-5dc2ae3c-3a23-47ff-9dc1-e087ff0e2742)'/%3e%3ccircle%20cx='9.455'%20cy='4.603'%20r='2.607'%20fill='url(%23uuid-d781b8b0-afbe-4f6e-a478-ee1974441cbf)'/%3e%3cpath%20d='m9.455,14.4H3.971c-.591,0-1.07-.48-1.069-1.071,0,0,0-.001,0-.002v-4.638h1.592v4.115h4.96v1.596Z'%20fill='url(%23uuid-efb884ed-afc6-4667-82f2-34983e82b107)'/%3e%3ccircle%20cx='9.455'%20cy='13.397'%20r='2.607'%20fill='url(%23uuid-e8c8c19d-aa6c-48ed-823e-cfec5a014d78)'/%3e%3cpath%20d='m5.008,12.097H1.696c-.272,0-.453-.301-.405-.673l.584-4.534c.048-.372.307-.673.578-.673h3.312c.272,0,.453.301.405.673l-.584,4.534c-.048.372-.307.673-.578.673Z'%20fill='url(%23uuid-7a6a88dd-1778-43da-9238-45bfc5a17b3e)'/%3e%3cpath%20d='m.362,3.138C.162,3.138,0,2.976,0,2.777h0V.361C0,.162.162,0,.362,0h2.266c.2,0,.362.162.362.361,0,.199-.162.361-.362.361H.724v2.053c0,.199-.161.362-.361.362,0,0,0,0-.001,0Zm17.638-.361V.361C18,.162,17.838,0,17.638,0h-2.266c-.2,0-.362.162-.362.361s.162.361.362.361h1.904v2.053c0,.199.162.361.362.361.2,0,.361-.162.362-.361h0ZM2.99,17.639c0-.199-.162-.361-.362-.361H.724v-2.053c0-.199-.162-.361-.362-.361-.2,0-.362.162-.362.361v2.415c0,.199.163.36.362.36h2.266c.2,0,.362-.162.362-.361Zm15.01.001v-2.415c0-.199-.162-.361-.362-.361-.2,0-.361.162-.362.361v2.053h-1.904c-.2,0-.362.162-.362.362,0,.199.162.361.362.361h2.266c.199,0,.361-.161.362-.36Z'%20fill='%2376bc2d'/%3e%3c/svg%3e",BingLogoIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20234%20343.41'%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='-29.25'%20y1='662.02'%20x2='-23.09'%20y2='658.46'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2337bdff'/%3e%3cstop%20offset='0.18'%20stop-color='%2333bffd'/%3e%3cstop%20offset='0.36'%20stop-color='%2328c5f5'/%3e%3cstop%20offset='0.53'%20stop-color='%2315d0e9'/%3e%3cstop%20offset='0.55'%20stop-color='%2312d1e7'/%3e%3cstop%20offset='0.59'%20stop-color='%231cd2e5'/%3e%3cstop%20offset='0.77'%20stop-color='%2342d8dc'/%3e%3cstop%20offset='0.91'%20stop-color='%2359dbd6'/%3e%3cstop%20offset='1'%20stop-color='%2362dcd4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='-32.86'%20y1='656.68'%20x2='-23.89'%20y2='656.68'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2339d2ff'/%3e%3cstop%20offset='0.15'%20stop-color='%2338cefe'/%3e%3cstop%20offset='0.29'%20stop-color='%2335c3fa'/%3e%3cstop%20offset='0.43'%20stop-color='%232fb0f3'/%3e%3cstop%20offset='0.55'%20stop-color='%23299aeb'/%3e%3cstop%20offset='0.58'%20stop-color='%232692ec'/%3e%3cstop%20offset='0.76'%20stop-color='%231a6cf1'/%3e%3cstop%20offset='0.91'%20stop-color='%231355f4'/%3e%3cstop%20offset='1'%20stop-color='%23104cf5'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='-31.2'%20y1='655.9'%20x2='-31.2'%20y2='667.89'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%231b48ef'/%3e%3cstop%20offset='0.12'%20stop-color='%231c51f0'/%3e%3cstop%20offset='0.32'%20stop-color='%231e69f5'/%3e%3cstop%20offset='0.57'%20stop-color='%232190fb'/%3e%3cstop%20offset='1'%20stop-color='%2326b8f4'/%3e%3c/linearGradient%3e%3cclipPath%20id='d'%20transform='translate(-163%20-82.94)'%3e%3crect%20x='163.02'%20y='288.38'%20width='227.17'%20height='140.76'%20style='fill:none'/%3e%3c/clipPath%3e%3clinearGradient%20id='e'%20x1='-31.08'%20y1='654.47'%20x2='-25.54'%20y2='660'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20offset='0.37'%20stop-color='%23fdfdfd'/%3e%3cstop%20offset='0.51'%20stop-color='%23f6f6f6'/%3e%3cstop%20offset='0.6'%20stop-color='%23ebebeb'/%3e%3cstop%20offset='0.68'%20stop-color='%23dadada'/%3e%3cstop%20offset='0.75'%20stop-color='%23c4c4c4'/%3e%3cstop%20offset='0.81'%20stop-color='%23a8a8a8'/%3e%3cstop%20offset='0.86'%20stop-color='%23888'/%3e%3cstop%20offset='0.91'%20stop-color='%23626262'/%3e%3cstop%20offset='0.95'%20stop-color='%23373737'/%3e%3cstop%20offset='0.99'%20stop-color='%23090909'/%3e%3cstop%20offset='1'/%3e%3c/linearGradient%3e%3cclipPath%20id='f'%20transform='translate(-163%20-82.94)'%3e%3crect%20x='163.02'%20y='82.87'%20width='86.51'%20height='302.96'%20style='fill:none'/%3e%3c/clipPath%3e%3clinearGradient%20id='g'%20x1='-31.2'%20y1='668.1'%20x2='-31.2'%20y2='656.02'%20xlink:href='%23e'/%3e%3c/defs%3e%3ctitle%3ebing-logo%3c/title%3e%3cpath%20d='M397,303.4a92.73,92.73,0,0,1-24.84,63.16,41.81,41.81,0,0,0,4.5-6,38.11,38.11,0,0,0,2.69-5.08,17.7,17.7,0,0,0,.74-1.78,17.25,17.25,0,0,0,.65-1.78c.21-.56.39-1.14.55-1.72s.33-1.2.46-1.81l.07-.21c.14-.6.25-1.2.37-1.81s.23-1.25.33-1.88v0c.09-.58.16-1.16.21-1.76a40,40,0,0,0,.21-4.13A41.41,41.41,0,0,0,377,317.11a36.51,36.51,0,0,0-2.85-4.17,39.93,39.93,0,0,0-4-4.43,41.45,41.45,0,0,0-12.36-8.28,38.78,38.78,0,0,0-6.22-2.14l-.09,0-.74-.25-10.81-3.71v0l-28.27-9.72c-.09,0-.21,0-.28,0l-1.77-.65A26.23,26.23,0,0,1,296.29,272L286,245.62l-11.83-30.16-2.27-5.82-.58-1.18a13.35,13.35,0,0,1-1-5.08,12,12,0,0,1,0-1.35,13.19,13.19,0,0,1,18.26-10.79l52.69,27,10.39,5.31A91.11,91.11,0,0,1,367,235a92.45,92.45,0,0,1,29.79,61.87C396.91,299.06,397,301.22,397,303.4Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23a)'/%3e%3cpath%20d='M382.91,338.56a42.8,42.8,0,0,1-.72,7.82c-.14.67-.28,1.35-.44,2-.3,1.2-.62,2.36-1,3.53-.21.6-.42,1.2-.65,1.78s-.49,1.18-.74,1.78a38.1,38.1,0,0,1-2.69,5.08,42.22,42.22,0,0,1-4.5,6c-7.68,8.49-33.75,23.63-43.36,29.79l-21.33,13c-15.63,9.63-30.41,16.45-49,16.91-.88,0-1.74,0-2.6,0-1.2,0-2.39,0-3.57-.07a92.86,92.86,0,0,1-74.92-43.17,91.58,91.58,0,0,1-13.68-38.67,41.13,41.13,0,0,0,60,28.95l.14-.07,2.09-1.25,8.49-5,10.81-6.4v-.3l1.39-.83,96.71-57.29,7.44-4.41.74.25.09,0a38.31,38.31,0,0,1,6.22,2.14,41.45,41.45,0,0,1,12.36,8.28,40,40,0,0,1,4,4.43,37,37,0,0,1,2.85,4.17A41.64,41.64,0,0,1,382.91,338.56Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23b)'/%3e%3cpath%20d='M245.24,147.35l0,213.29L234.39,367l-8.5,5-2.09,1.27a.24.24,0,0,0-.13.06,41.13,41.13,0,0,1-60-28.94c-.16-.89-.28-1.81-.38-2.7-.13-1.68-.22-3.33-.25-5v-240a13.77,13.77,0,0,1,21.46-11.41l42.07,27.48a5.55,5.55,0,0,0,.73.51A41.14,41.14,0,0,1,245.24,147.35Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23c)'/%3e%3cg%20style='opacity:0.14900000393390656;isolation:isolate'%3e%3cg%20style='clip-path:url(%23d)'%3e%3cpath%20d='M382.91,338.56a42.8,42.8,0,0,1-.72,7.82c-.14.67-.28,1.35-.44,2-.3,1.2-.62,2.36-1,3.53-.21.6-.42,1.2-.65,1.78s-.49,1.18-.74,1.78a38.1,38.1,0,0,1-2.69,5.08,41.81,41.81,0,0,1-4.5,6c-7.68,8.49-33.75,23.63-43.36,29.79l-21.33,13c-15.63,9.63-30.41,16.45-49,16.91-.88,0-1.74,0-2.6,0-1.2,0-2.39,0-3.57-.07a92.86,92.86,0,0,1-74.92-43.17,91.58,91.58,0,0,1-13.68-38.67,41.13,41.13,0,0,0,60,28.95l.14-.07,2.09-1.25,8.49-5,10.81-6.4v-.3l1.39-.83,96.71-57.29,7.44-4.41.74.25.09,0a38.31,38.31,0,0,1,6.22,2.14,41.45,41.45,0,0,1,12.36,8.28,40,40,0,0,1,4,4.43,37,37,0,0,1,2.85,4.17A41.64,41.64,0,0,1,382.91,338.56Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23e)'/%3e%3c/g%3e%3c/g%3e%3cg%20style='opacity:0.09799999743700027;isolation:isolate'%3e%3cg%20style='clip-path:url(%23f)'%3e%3cpath%20d='M245.24,147.35l0,213.29L234.39,367l-8.5,5-2.09,1.27a.24.24,0,0,0-.13.06,41.13,41.13,0,0,1-60-28.94c-.16-.89-.28-1.81-.38-2.7-.13-1.68-.22-3.33-.25-5v-240a13.77,13.77,0,0,1,21.46-11.41l42.07,27.48a5.55,5.55,0,0,0,.73.51A41.14,41.14,0,0,1,245.24,147.35Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23g)'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",DefaultIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",children:[jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{id:"a5efbc52-c9a4-425f-9d94-50e000195659",x1:"9",y1:"18.967",x2:"9",y2:"3.398",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"#0078d4"}),jsxRuntimeExports.jsx("stop",{offset:"0.156",stopColor:"#1380da"}),jsxRuntimeExports.jsx("stop",{offset:"0.528",stopColor:"#3c91e5"}),jsxRuntimeExports.jsx("stop",{offset:"0.822",stopColor:"#559cec"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#5ea0ef"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"a110d41d-e4ca-48ee-9efe-328e60a20dcc",x1:"9",y1:"5.019",x2:"9",y2:"13.676",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0.22",stopColor:"#fff"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"bcf81335-a15c-4e8a-85c4-cb14c4ef74b0",x1:"8.991",y1:"2.883",x2:"8.991",y2:"11.32",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0.22",stopColor:"#fff"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]})]}),jsxRuntimeExports.jsx("g",{id:"b5d797c5-507f-4358-b61e-ca040c36ef52",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{d:"M.038,9.142,4.4,16.69a.285.285,0,0,0,.246.142h8.716a.285.285,0,0,0,.246-.142l4.358-7.548a.283.283,0,0,0,0-.284L13.6,1.31a.285.285,0,0,0-.246-.142H4.642A.285.285,0,0,0,4.4,1.31L.038,8.858A.283.283,0,0,0,.038,9.142Z",fill:"url(#a5efbc52-c9a4-425f-9d94-50e000195659)"}),jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{id:"a81cd782-d573-434f-a6f1-758ffbb6f88b",d:"M12.239,6.083l.048.042a.085.085,0,0,0,.115,0l.447-.374.808-1.334a.083.083,0,0,0,0-.1l-.138-.145a.085.085,0,0,0-.1,0l-1.273.863L11.78,5.5a.086.086,0,0,0,0,.109l.049.048L9.2,8.394l-.543-.6-.6.6a1.093,1.093,0,0,1-.26.911.945.945,0,0,1-.826.3L4.376,12.232a.163.163,0,0,0,0,.231l0,.005,1.255,1.3a.162.162,0,0,0,.23.011l.011-.011L8.4,11.14a1.037,1.037,0,0,1,.3-.869.964.964,0,0,1,.826-.3l.6-.6L9.6,8.78Z",opacity:"0.4",fill:"url(#a110d41d-e4ca-48ee-9efe-328e60a20dcc)"}),jsxRuntimeExports.jsx("path",{d:"M13.283,12.057l-.6-.645L8.648,7.278h0l-.2-.218a2.242,2.242,0,0,0-.525-2.2,2.067,2.067,0,0,0-1.865-.6.09.09,0,0,0-.065.11.088.088,0,0,0,.017.035l1.05,1.068a.091.091,0,0,1,0,.085L6.808,6.65a.084.084,0,0,1-.061.06l-1.074.3a.084.084,0,0,1-.084,0l-1.02-1.08a.084.084,0,0,0-.145.054,2.19,2.19,0,0,0,.6,1.919,2.035,2.035,0,0,0,2.034.543l.036.043.23.235h0l4.592,4.828a.954.954,0,0,0,1.34.048l.048-.048a1.017,1.017,0,0,0,.284-.724A1.117,1.117,0,0,0,13.283,12.057Z",fill:"url(#bcf81335-a15c-4e8a-85c4-cb14c4ef74b0)"})]})]})})]}),OpenAIIcon$1=()=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",width:"16px",height:"16px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"OpenAI icon"}),jsxRuntimeExports.jsx("path",{d:"M832 676l575 288v760l-575 288-575-288V964l575-288zm0 144l-368 184 368 183 368-183-368-184zm-447 825l383 191v-538l-383-191v538zm894 0v-538l-383 191v538l383-191zm577-733q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9zM704 496q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9zm1206-48q0 23-15 38t-39 16q-27 0-57 11t-58 28-54 37-45 40q-19 19-39 44t-38 54-28 59-11 57q0 23-15 38t-39 16q-23 0-38-15t-16-39q0-27-11-57t-28-58-37-54-40-45q-19-19-44-39t-54-38-59-28-57-11q-23 0-38-15t-16-39q0-23 15-38t39-16q27 0 57-11t58-28 54-37 45-40q19-19 39-44t38-54 28-59 11-57q0-23 15-38t39-16q23 0 38 15t16 39q0 27 11 57t28 58 37 54 40 45q19 19 44 39t54 38 59 28 57 11q23 0 38 15t16 39zm-438 212q38-65 92-119t120-93q-65-38-119-92t-93-120q-38 65-92 119t-120 93q65 38 119 92t93 120z"})]}),PromptIcon=()=>jsxRuntimeExports.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.5 6.50238C9.5 6.22624 9.72386 6.00238 10 6.00238C10.2761 6.00238 10.5 6.22624 10.5 6.50238V7.50391C10.5 7.78005 10.2761 8.00391 10 8.00391C9.72386 8.00391 9.5 7.78005 9.5 7.50391V6.50238ZM12.8506 7.44332C12.6553 7.24806 12.3388 7.24806 12.1435 7.44332L11.4353 8.15151C11.2401 8.34677 11.2401 8.66335 11.4353 8.85861C11.6306 9.05388 11.9472 9.05388 12.1424 8.85861L12.8506 8.15043C13.0459 7.95517 13.0459 7.63858 12.8506 7.44332ZM7.8521 7.44332C7.65684 7.24806 7.34026 7.24806 7.145 7.44332C6.94973 7.63858 6.94973 7.95517 7.145 8.15043L7.85318 8.85861C8.04844 9.05388 8.36503 9.05388 8.56029 8.85861C8.75555 8.66335 8.75555 8.34677 8.56029 8.15151L7.8521 7.44332ZM10 2C13.3137 2 16 4.59693 16 7.80041C16 9.47737 15.2546 11.0164 13.7961 12.3942C13.7324 12.4544 13.6831 12.5269 13.6512 12.6065L13.6251 12.6883L12.6891 16.6051C12.5048 17.3763 11.8236 17.935 11.0181 17.9947L10.8748 18H9.12546C8.30655 18 7.59 17.4839 7.34866 16.7385L7.31108 16.6047L6.37626 12.6886C6.34955 12.5766 6.29016 12.4745 6.20516 12.3942C4.8153 11.0819 4.07265 9.62354 4.00507 8.03903L4 7.80041L4.00321 7.60894C4.1077 4.49409 6.75257 2 10 2ZM7.955 15L8.27386 16.3344L8.30004 16.4305C8.39695 16.7298 8.67583 16.9517 9.0116 16.993L9.12546 17L10.8379 17.0007L10.9442 16.9974C11.2865 16.9721 11.5726 16.7609 11.6854 16.4718L11.7165 16.3727L12.045 15H7.955ZM10 3C7.36782 3 5.21188 4.95301 5.0151 7.41357L5.00307 7.62569L4.99977 7.77916L5.00416 7.99642C5.05977 9.30026 5.67758 10.5208 6.89167 11.6671C7.07995 11.8449 7.22191 12.0647 7.30572 12.3078L7.34894 12.4564L7.716 14H9.50024V9.49707C9.50024 9.22093 9.7241 8.99707 10.0002 8.99707C10.2764 8.99707 10.5002 9.22093 10.5002 9.49707V14H12.285L12.6722 12.3851L12.7231 12.2343C12.8091 12.0198 12.9409 11.8265 13.1094 11.6673C14.3825 10.4646 15 9.18054 15 7.80041C15 5.15693 12.7689 3 10 3Z",fill:"currentColor"})}),PythonIcon=()=>jsxRuntimeExports.jsxs("svg",{width:"16px",height:"16px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0164 2C10.8193 2 9.03825 3.72453 9.03825 5.85185V8.51852H15.9235V9.25926H5.97814C3.78107 9.25926 2 10.9838 2 13.1111L2 18.8889C2 21.0162 3.78107 22.7407 5.97814 22.7407H8.27322V19.4815C8.27322 17.3542 10.0543 15.6296 12.2514 15.6296H19.5956C21.4547 15.6296 22.9617 14.1704 22.9617 12.3704V5.85185C22.9617 3.72453 21.1807 2 18.9836 2H13.0164ZM12.0984 6.74074C12.8589 6.74074 13.4754 6.14378 13.4754 5.40741C13.4754 4.67103 12.8589 4.07407 12.0984 4.07407C11.3378 4.07407 10.7213 4.67103 10.7213 5.40741C10.7213 6.14378 11.3378 6.74074 12.0984 6.74074Z",fill:"#327EBD"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9834 30C21.1805 30 22.9616 28.2755 22.9616 26.1482V23.4815L16.0763 23.4815L16.0763 22.7408L26.0217 22.7408C28.2188 22.7408 29.9998 21.0162 29.9998 18.8889V13.1111C29.9998 10.9838 28.2188 9.25928 26.0217 9.25928L23.7266 9.25928V12.5185C23.7266 14.6459 21.9455 16.3704 19.7485 16.3704L12.4042 16.3704C10.5451 16.3704 9.03809 17.8296 9.03809 19.6296L9.03809 26.1482C9.03809 28.2755 10.8192 30 13.0162 30H18.9834ZM19.9015 25.2593C19.1409 25.2593 18.5244 25.8562 18.5244 26.5926C18.5244 27.329 19.1409 27.9259 19.9015 27.9259C20.662 27.9259 21.2785 27.329 21.2785 26.5926C21.2785 25.8562 20.662 25.2593 19.9015 25.2593Z",fill:"#FFDA4B"})]}),TypeScriptIcon="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20aria-label='TypeScript'%20role='img'%20viewBox='0%200%20512%20512'%3e%3crect%20width='512'%20height='512'%20rx='15%25'%20fill='%233178c6'/%3e%3cpath%20fill='%23ffffff'%20d='m233%20284h64v-41H118v41h64v183h51zm84%20173c8.1%204.2%2018%207.3%2029%209.4s23%203.1%2035%203.1c12%200%2023-1.1%2034-3.4c11-2.3%2020-6.1%2028-11c8.1-5.3%2015-12%2019-21s7.1-19%207.1-32c0-9.1-1.4-17-4.1-24s-6.6-13-12-18c-5.1-5.3-11-10-18-14s-15-8.2-24-12c-6.6-2.7-12-5.3-18-7.9c-5.2-2.6-9.7-5.2-13-7.8c-3.7-2.7-6.5-5.5-8.5-8.4c-2-3-3-6.3-3-10c0-3.4.89-6.5%202.7-9.3s4.3-5.1%207.5-7.1c3.2-2%207.2-3.5%2012-4.6c4.7-1.1%209.9-1.6%2016-1.6c4.2%200%208.6.31%2013%20.94c4.6.63%209.3%201.6%2014%202.9c4.7%201.3%209.3%202.9%2014%204.9c4.4%202%208.5%204.3%2012%206.9v-47c-7.6-2.9-16-5.1-25-6.5s-19-2.1-31-2.1c-12%200-23%201.3-34%203.8s-20%206.5-28%2012c-8.1%205.4-14%2012-19%2021c-4.7%208.4-7%2018-7%2030c0%2015%204.3%2028%2013%2038c8.6%2011%2022%2019%2039%2027c6.9%202.8%2013%205.6%2019%208.3s11%205.5%2015%208.4c4.3%202.9%207.7%206.1%2010%209.5c2.5%203.4%203.8%207.4%203.8%2012c0%203.2-.78%206.2-2.3%209s-3.9%205.2-7.1%207.2s-7.1%203.6-12%204.8c-4.7%201.1-10%201.7-17%201.7c-11%200-22-1.9-32-5.7c-11-3.8-21-9.5-28.1-15.44z'/%3e%3c/svg%3e",VectorSearchIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",role:"img",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("linearGradient",{id:"fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2",x1:"-6428.21",y1:"9646.124",x2:"-6428.21",y2:"9617.899",gradientTransform:"matrix(0.5, 0, 0, -0.5, 3224.856, 4823.856)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"#5ea0ef"}),jsxRuntimeExports.jsx("stop",{offset:"0.178",stopColor:"#589eed"}),jsxRuntimeExports.jsx("stop",{offset:"0.406",stopColor:"#4897e9"}),jsxRuntimeExports.jsx("stop",{offset:"0.662",stopColor:"#2e8ce1"}),jsxRuntimeExports.jsx("stop",{offset:"0.936",stopColor:"#0a7cd7"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#0078d4"})]})}),jsxRuntimeExports.jsx("g",{id:"a05a9809-540f-4ec8-9a73-07896b5e7f5c",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{d:"M8.438,10.379h4.234v4.234H8.438ZM3.5,4.734H7.732V.5H4.086a.588.588,0,0,0-.588.588Zm.588,9.879H7.732V10.379H3.5v3.646A.588.588,0,0,0,4.086,14.613ZM3.5,9.674H7.732V5.44H3.5Zm9.88,4.939h3.646a.588.588,0,0,0,.588-.588V10.379H13.378ZM8.438,9.674h4.234V5.44H8.438Zm4.94,0h4.234V5.44H13.378Zm0-9.174V4.734h4.234V1.088A.588.588,0,0,0,17.024.5ZM8.438,4.734h4.234V.5H8.438Z",fill:"url(#fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2)"}),jsxRuntimeExports.jsx("rect",{x:"-0.212",y:"14.751",width:"5.457",height:"1.243",rx:"0.581",transform:"translate(-10.133 6.282) rotate(-45)",fill:"#198ab3"}),jsxRuntimeExports.jsx("circle",{cx:"5.959",cy:"11.709",r:"3.744",fill:"#50e6ff"}),jsxRuntimeExports.jsx("circle",{cx:"5.952",cy:"11.642",r:"2.94",fill:"#fff"})]})})]}),DEFAULT_SIZE$1=16,toolsIcons={PromptFlowToolAzureContentSafety:jsxRuntimeExports.jsx(AzureContentSafetyIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolSerpAPI:jsxRuntimeExports.jsx(DefaultIcon,{}),PromptFlowToolBing:jsxRuntimeExports.jsx(BingLogoIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolAzureContentModerator:jsxRuntimeExports.jsx(AzureContentSafetyIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolVectorIndexLookupByText:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolFaissIndexLookup:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolVectorDBLookup:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolVectorSearch:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolLlm:jsxRuntimeExports.jsx(OpenAIIcon$1,{}),PromptFlowToolPython:jsxRuntimeExports.jsx(PythonIcon,{}),PromptFlowToolTypeScript:jsxRuntimeExports.jsx(TypeScriptIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolPrompt:jsxRuntimeExports.jsx(PromptIcon,{}),PromptFlowToolDefault:jsxRuntimeExports.jsx(DefaultIcon,{})};registerIcons({icons:{...toolsIcons}});var getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var byteToHex$1=[];for(var i$7=0;i$7<256;++i$7)byteToHex$1[i$7]=(i$7+256).toString(16).substr(1);function bytesToUuid(eo,to){var no=to||0,io=byteToHex$1;return[io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],"-",io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]],io[eo[no++]]].join("")}function v4(eo,to,no){var io=to&&no||0;typeof eo=="string"&&(to=eo==="binary"?new Array(16):null,eo=null),eo=eo||{};var so=eo.random||(eo.rng||rng)();if(so[6]=so[6]&15|64,so[8]=so[8]&63|128,to)for(var ao=0;ao<16;++ao)to[io+ao]=so[ao];return to||bytesToUuid(so)}var toposort$1={exports:{}};toposort$1.exports=function(eo){return toposort(uniqueNodes(eo),eo)};toposort$1.exports.array=toposort;function toposort(eo,to){for(var no=eo.length,io=new Array(no),so={},ao=no;ao--;)so[ao]||lo(eo[ao],ao,[]);return io;function lo(uo,ho,go){if(go.indexOf(uo)>=0){var mo;try{mo=", node was:"+JSON.stringify(uo)}catch{mo=""}throw new Error("Cyclic dependency"+mo)}if(!~eo.indexOf(uo))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(uo));if(!so[ho]){so[ho]=!0;var yo=to.filter(function(ko){return ko[0]===uo});if(ho=yo.length){var So=go.concat(uo);do{var _o=yo[--ho][1];lo(_o,eo.indexOf(_o),So)}while(ho)}io[--no]=uo}}}function uniqueNodes(eo){for(var to=[],no=0,io=eo.length;no1?no-1:0),so=1;so2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase$1;setPrototypeOf$1&&setPrototypeOf$1(eo,null);let io=to.length;for(;io--;){let so=to[io];if(typeof so=="string"){const ao=no(so);ao!==so&&(isFrozen$1(to)||(to[io]=ao),so=ao)}eo[so]=!0}return eo}function cleanArray$1(eo){for(let to=0;to/gm),TMPLIT_EXPR$1=seal$1(/\${[\w\W]*}/gm),DATA_ATTR$1=seal$1(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR$1=seal$1(/^aria-[\-\w]+$/),IS_ALLOWED_URI$1=seal$1(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA$1=seal$1(/^(?:\w+script|data):/i),ATTR_WHITESPACE$1=seal$1(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME$1=seal$1(/^html$/i);var EXPRESSIONS$1=Object.freeze({__proto__:null,MUSTACHE_EXPR:MUSTACHE_EXPR$1,ERB_EXPR:ERB_EXPR$1,TMPLIT_EXPR:TMPLIT_EXPR$1,DATA_ATTR:DATA_ATTR$1,ARIA_ATTR:ARIA_ATTR$1,IS_ALLOWED_URI:IS_ALLOWED_URI$1,IS_SCRIPT_OR_DATA:IS_SCRIPT_OR_DATA$1,ATTR_WHITESPACE:ATTR_WHITESPACE$1,DOCTYPE_NAME:DOCTYPE_NAME$1});const getGlobal$1=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy$1=function(to,no){if(typeof to!="object"||typeof to.createPolicy!="function")return null;let io=null;const so="data-tt-policy-suffix";no&&no.hasAttribute(so)&&(io=no.getAttribute(so));const ao="dompurify"+(io?"#"+io:"");try{return to.createPolicy(ao,{createHTML(lo){return lo},createScriptURL(lo){return lo}})}catch{return console.warn("TrustedTypes policy "+ao+" could not be created."),null}};function createDOMPurify$1(){let eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal$1();const to=$l=>createDOMPurify$1($l);if(to.version="3.0.9",to.removed=[],!eo||!eo.document||eo.document.nodeType!==9)return to.isSupported=!1,to;let{document:no}=eo;const io=no,so=io.currentScript,{DocumentFragment:ao,HTMLTemplateElement:lo,Node:uo,Element:ho,NodeFilter:go,NamedNodeMap:mo=eo.NamedNodeMap||eo.MozNamedAttrMap,HTMLFormElement:yo,DOMParser:So,trustedTypes:_o}=eo,ko=ho.prototype,Co=lookupGetter$1(ko,"cloneNode"),$o=lookupGetter$1(ko,"nextSibling"),Ro=lookupGetter$1(ko,"childNodes"),Oo=lookupGetter$1(ko,"parentNode");if(typeof lo=="function"){const $l=no.createElement("template");$l.content&&$l.content.ownerDocument&&(no=$l.content.ownerDocument)}let No,Mo="";const{implementation:Bo,createNodeIterator:Fo,createDocumentFragment:Lo,getElementsByTagName:Go}=no,{importNode:Do}=io;let Uo={};to.isSupported=typeof entries$1=="function"&&typeof Oo=="function"&&Bo&&Bo.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ho,ERB_EXPR:Yo,TMPLIT_EXPR:qo,DATA_ATTR:Jo,ARIA_ATTR:ps,IS_SCRIPT_OR_DATA:Qo,ATTR_WHITESPACE:hs}=EXPRESSIONS$1;let{IS_ALLOWED_URI:gs}=EXPRESSIONS$1,ys=null;const vs=addToSet$1({},[...html$1$1,...svg$1$1,...svgFilters$1,...mathMl$1$1,...text$5]);let ks=null;const Os=addToSet$1({},[...html$3,...svg$4,...mathMl$2,...xml$1]);let Ts=Object.seal(create$6(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Xs=null,Ws=null,Ps=!0,qs=!0,ga=!1,Fs=!0,Js=!1,Vs=!1,El=!1,yl=!1,Gl=!1,Qs=!1,du=!1,Ol=!0,Fu=!1;const ju="user-content-";let F1=!0,y1=!1,r1={},$u=null;const Kl=addToSet$1({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Is=null;const Ks=addToSet$1({},["audio","video","img","source","image","track"]);let Bs=null;const Ds=addToSet$1({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zs="http://www.w3.org/1998/Math/MathML",Cl="http://www.w3.org/2000/svg",ba="http://www.w3.org/1999/xhtml";let fu=ba,Lu=!1,e1=null;const Gu=addToSet$1({},[Zs,Cl,ba],stringToString$1);let w1=null;const Zu=["application/xhtml+xml","text/html"],L1="text/html";let K1=null,yp=null;const wp=no.createElement("form"),j0=function(Us){return Us instanceof RegExp||Us instanceof Function},h0=function(){let Us=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(yp&&yp===Us)){if((!Us||typeof Us!="object")&&(Us={}),Us=clone$4(Us),w1=Zu.indexOf(Us.PARSER_MEDIA_TYPE)===-1?L1:Us.PARSER_MEDIA_TYPE,K1=w1==="application/xhtml+xml"?stringToString$1:stringToLowerCase$1,ys=objectHasOwnProperty$1(Us,"ALLOWED_TAGS")?addToSet$1({},Us.ALLOWED_TAGS,K1):vs,ks=objectHasOwnProperty$1(Us,"ALLOWED_ATTR")?addToSet$1({},Us.ALLOWED_ATTR,K1):Os,e1=objectHasOwnProperty$1(Us,"ALLOWED_NAMESPACES")?addToSet$1({},Us.ALLOWED_NAMESPACES,stringToString$1):Gu,Bs=objectHasOwnProperty$1(Us,"ADD_URI_SAFE_ATTR")?addToSet$1(clone$4(Ds),Us.ADD_URI_SAFE_ATTR,K1):Ds,Is=objectHasOwnProperty$1(Us,"ADD_DATA_URI_TAGS")?addToSet$1(clone$4(Ks),Us.ADD_DATA_URI_TAGS,K1):Ks,$u=objectHasOwnProperty$1(Us,"FORBID_CONTENTS")?addToSet$1({},Us.FORBID_CONTENTS,K1):Kl,Xs=objectHasOwnProperty$1(Us,"FORBID_TAGS")?addToSet$1({},Us.FORBID_TAGS,K1):{},Ws=objectHasOwnProperty$1(Us,"FORBID_ATTR")?addToSet$1({},Us.FORBID_ATTR,K1):{},r1=objectHasOwnProperty$1(Us,"USE_PROFILES")?Us.USE_PROFILES:!1,Ps=Us.ALLOW_ARIA_ATTR!==!1,qs=Us.ALLOW_DATA_ATTR!==!1,ga=Us.ALLOW_UNKNOWN_PROTOCOLS||!1,Fs=Us.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Js=Us.SAFE_FOR_TEMPLATES||!1,Vs=Us.WHOLE_DOCUMENT||!1,Gl=Us.RETURN_DOM||!1,Qs=Us.RETURN_DOM_FRAGMENT||!1,du=Us.RETURN_TRUSTED_TYPE||!1,yl=Us.FORCE_BODY||!1,Ol=Us.SANITIZE_DOM!==!1,Fu=Us.SANITIZE_NAMED_PROPS||!1,F1=Us.KEEP_CONTENT!==!1,y1=Us.IN_PLACE||!1,gs=Us.ALLOWED_URI_REGEXP||IS_ALLOWED_URI$1,fu=Us.NAMESPACE||ba,Ts=Us.CUSTOM_ELEMENT_HANDLING||{},Us.CUSTOM_ELEMENT_HANDLING&&j0(Us.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ts.tagNameCheck=Us.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Us.CUSTOM_ELEMENT_HANDLING&&j0(Us.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ts.attributeNameCheck=Us.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Us.CUSTOM_ELEMENT_HANDLING&&typeof Us.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ts.allowCustomizedBuiltInElements=Us.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Js&&(qs=!1),Qs&&(Gl=!0),r1&&(ys=addToSet$1({},text$5),ks=[],r1.html===!0&&(addToSet$1(ys,html$1$1),addToSet$1(ks,html$3)),r1.svg===!0&&(addToSet$1(ys,svg$1$1),addToSet$1(ks,svg$4),addToSet$1(ks,xml$1)),r1.svgFilters===!0&&(addToSet$1(ys,svgFilters$1),addToSet$1(ks,svg$4),addToSet$1(ks,xml$1)),r1.mathMl===!0&&(addToSet$1(ys,mathMl$1$1),addToSet$1(ks,mathMl$2),addToSet$1(ks,xml$1))),Us.ADD_TAGS&&(ys===vs&&(ys=clone$4(ys)),addToSet$1(ys,Us.ADD_TAGS,K1)),Us.ADD_ATTR&&(ks===Os&&(ks=clone$4(ks)),addToSet$1(ks,Us.ADD_ATTR,K1)),Us.ADD_URI_SAFE_ATTR&&addToSet$1(Bs,Us.ADD_URI_SAFE_ATTR,K1),Us.FORBID_CONTENTS&&($u===Kl&&($u=clone$4($u)),addToSet$1($u,Us.FORBID_CONTENTS,K1)),F1&&(ys["#text"]=!0),Vs&&addToSet$1(ys,["html","head","body"]),ys.table&&(addToSet$1(ys,["tbody"]),delete Xs.tbody),Us.TRUSTED_TYPES_POLICY){if(typeof Us.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate$1('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Us.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate$1('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');No=Us.TRUSTED_TYPES_POLICY,Mo=No.createHTML("")}else No===void 0&&(No=_createTrustedTypesPolicy$1(_o,so)),No!==null&&typeof Mo=="string"&&(Mo=No.createHTML(""));freeze$1&&freeze$1(Us),yp=Us}},cp=addToSet$1({},["mi","mo","mn","ms","mtext"]),k0=addToSet$1({},["foreignobject","desc","title","annotation-xml"]),ap=addToSet$1({},["title","style","font","a","script"]),x0=addToSet$1({},[...svg$1$1,...svgFilters$1,...svgDisallowed$1]),b0=addToSet$1({},[...mathMl$1$1,...mathMlDisallowed$1]),P1=function(Us){let Rl=Oo(Us);(!Rl||!Rl.tagName)&&(Rl={namespaceURI:fu,tagName:"template"});const Sl=stringToLowerCase$1(Us.tagName),eu=stringToLowerCase$1(Rl.tagName);return e1[Us.namespaceURI]?Us.namespaceURI===Cl?Rl.namespaceURI===ba?Sl==="svg":Rl.namespaceURI===Zs?Sl==="svg"&&(eu==="annotation-xml"||cp[eu]):!!x0[Sl]:Us.namespaceURI===Zs?Rl.namespaceURI===ba?Sl==="math":Rl.namespaceURI===Cl?Sl==="math"&&k0[eu]:!!b0[Sl]:Us.namespaceURI===ba?Rl.namespaceURI===Cl&&!k0[eu]||Rl.namespaceURI===Zs&&!cp[eu]?!1:!b0[Sl]&&(ap[Sl]||!x0[Sl]):!!(w1==="application/xhtml+xml"&&e1[Us.namespaceURI]):!1},c1=function(Us){arrayPush$2(to.removed,{element:Us});try{Us.parentNode.removeChild(Us)}catch{Us.remove()}},V0=function(Us,Rl){try{arrayPush$2(to.removed,{attribute:Rl.getAttributeNode(Us),from:Rl})}catch{arrayPush$2(to.removed,{attribute:null,from:Rl})}if(Rl.removeAttribute(Us),Us==="is"&&!ks[Us])if(Gl||Qs)try{c1(Rl)}catch{}else try{Rl.setAttribute(Us,"")}catch{}},P0=function(Us){let Rl=null,Sl=null;if(yl)Us=""+Us;else{const zu=stringMatch$1(Us,/^[\r\n\t ]+/);Sl=zu&&zu[0]}w1==="application/xhtml+xml"&&fu===ba&&(Us=''+Us+"");const eu=No?No.createHTML(Us):Us;if(fu===ba)try{Rl=new So().parseFromString(eu,w1)}catch{}if(!Rl||!Rl.documentElement){Rl=Bo.createDocument(fu,"template",null);try{Rl.documentElement.innerHTML=Lu?Mo:eu}catch{}}const _c=Rl.body||Rl.documentElement;return Us&&Sl&&_c.insertBefore(no.createTextNode(Sl),_c.childNodes[0]||null),fu===ba?Go.call(Rl,Vs?"html":"body")[0]:Vs?Rl.documentElement:_c},up=function(Us){return Fo.call(Us.ownerDocument||Us,Us,go.SHOW_ELEMENT|go.SHOW_COMMENT|go.SHOW_TEXT,null)},Lp=function(Us){return Us instanceof yo&&(typeof Us.nodeName!="string"||typeof Us.textContent!="string"||typeof Us.removeChild!="function"||!(Us.attributes instanceof mo)||typeof Us.removeAttribute!="function"||typeof Us.setAttribute!="function"||typeof Us.namespaceURI!="string"||typeof Us.insertBefore!="function"||typeof Us.hasChildNodes!="function")},Mv=function(Us){return typeof uo=="function"&&Us instanceof uo},$v=function(Us,Rl,Sl){Uo[Us]&&arrayForEach$1(Uo[Us],eu=>{eu.call(to,Rl,Sl,yp)})},Gv=function(Us){let Rl=null;if($v("beforeSanitizeElements",Us,null),Lp(Us))return c1(Us),!0;const Sl=K1(Us.nodeName);if($v("uponSanitizeElement",Us,{tagName:Sl,allowedTags:ys}),Us.hasChildNodes()&&!Mv(Us.firstElementChild)&®ExpTest$1(/<[/\w]/g,Us.innerHTML)&®ExpTest$1(/<[/\w]/g,Us.textContent))return c1(Us),!0;if(!ys[Sl]||Xs[Sl]){if(!Xs[Sl]&&Ll(Sl)&&(Ts.tagNameCheck instanceof RegExp&®ExpTest$1(Ts.tagNameCheck,Sl)||Ts.tagNameCheck instanceof Function&&Ts.tagNameCheck(Sl)))return!1;if(F1&&!$u[Sl]){const eu=Oo(Us)||Us.parentNode,_c=Ro(Us)||Us.childNodes;if(_c&&eu){const zu=_c.length;for(let N1=zu-1;N1>=0;--N1)eu.insertBefore(Co(_c[N1],!0),$o(Us))}}return c1(Us),!0}return Us instanceof ho&&!P1(Us)||(Sl==="noscript"||Sl==="noembed"||Sl==="noframes")&®ExpTest$1(/<\/no(script|embed|frames)/i,Us.innerHTML)?(c1(Us),!0):(Js&&Us.nodeType===3&&(Rl=Us.textContent,arrayForEach$1([Ho,Yo,qo],eu=>{Rl=stringReplace$1(Rl,eu," ")}),Us.textContent!==Rl&&(arrayPush$2(to.removed,{element:Us.cloneNode()}),Us.textContent=Rl)),$v("afterSanitizeElements",Us,null),!1)},C1=function(Us,Rl,Sl){if(Ol&&(Rl==="id"||Rl==="name")&&(Sl in no||Sl in wp))return!1;if(!(qs&&!Ws[Rl]&®ExpTest$1(Jo,Rl))){if(!(Ps&®ExpTest$1(ps,Rl))){if(!ks[Rl]||Ws[Rl]){if(!(Ll(Us)&&(Ts.tagNameCheck instanceof RegExp&®ExpTest$1(Ts.tagNameCheck,Us)||Ts.tagNameCheck instanceof Function&&Ts.tagNameCheck(Us))&&(Ts.attributeNameCheck instanceof RegExp&®ExpTest$1(Ts.attributeNameCheck,Rl)||Ts.attributeNameCheck instanceof Function&&Ts.attributeNameCheck(Rl))||Rl==="is"&&Ts.allowCustomizedBuiltInElements&&(Ts.tagNameCheck instanceof RegExp&®ExpTest$1(Ts.tagNameCheck,Sl)||Ts.tagNameCheck instanceof Function&&Ts.tagNameCheck(Sl))))return!1}else if(!Bs[Rl]){if(!regExpTest$1(gs,stringReplace$1(Sl,hs,""))){if(!((Rl==="src"||Rl==="xlink:href"||Rl==="href")&&Us!=="script"&&stringIndexOf$1(Sl,"data:")===0&&Is[Us])){if(!(ga&&!regExpTest$1(Qo,stringReplace$1(Sl,hs,"")))){if(Sl)return!1}}}}}}return!0},Ll=function(Us){return Us!=="annotation-xml"&&Us.indexOf("-")>0},Ul=function(Us){$v("beforeSanitizeAttributes",Us,null);const{attributes:Rl}=Us;if(!Rl)return;const Sl={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ks};let eu=Rl.length;for(;eu--;){const _c=Rl[eu],{name:zu,namespaceURI:N1,value:K0}=_c,J0=K1(zu);let S1=zu==="value"?K0:stringTrim$1(K0);if(Sl.attrName=J0,Sl.attrValue=S1,Sl.keepAttr=!0,Sl.forceKeepAttr=void 0,$v("uponSanitizeAttribute",Us,Sl),S1=Sl.attrValue,Sl.forceKeepAttr||(V0(zu,Us),!Sl.keepAttr))continue;if(!Fs&®ExpTest$1(/\/>/i,S1)){V0(zu,Us);continue}Js&&arrayForEach$1([Ho,Yo,qo],r0=>{S1=stringReplace$1(S1,r0," ")});const O1=K1(Us.nodeName);if(C1(O1,J0,S1)){if(Fu&&(J0==="id"||J0==="name")&&(V0(zu,Us),S1=ju+S1),No&&typeof _o=="object"&&typeof _o.getAttributeType=="function"&&!N1)switch(_o.getAttributeType(O1,J0)){case"TrustedHTML":{S1=No.createHTML(S1);break}case"TrustedScriptURL":{S1=No.createScriptURL(S1);break}}try{N1?Us.setAttributeNS(N1,zu,S1):Us.setAttribute(zu,S1),arrayPop$1(to.removed)}catch{}}}$v("afterSanitizeAttributes",Us,null)},_l=function $l(Us){let Rl=null;const Sl=up(Us);for($v("beforeSanitizeShadowDOM",Us,null);Rl=Sl.nextNode();)$v("uponSanitizeShadowNode",Rl,null),!Gv(Rl)&&(Rl.content instanceof ao&&$l(Rl.content),Ul(Rl));$v("afterSanitizeShadowDOM",Us,null)};return to.sanitize=function($l){let Us=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rl=null,Sl=null,eu=null,_c=null;if(Lu=!$l,Lu&&($l=""),typeof $l!="string"&&!Mv($l))if(typeof $l.toString=="function"){if($l=$l.toString(),typeof $l!="string")throw typeErrorCreate$1("dirty is not a string, aborting")}else throw typeErrorCreate$1("toString is not a function");if(!to.isSupported)return $l;if(El||h0(Us),to.removed=[],typeof $l=="string"&&(y1=!1),y1){if($l.nodeName){const K0=K1($l.nodeName);if(!ys[K0]||Xs[K0])throw typeErrorCreate$1("root node is forbidden and cannot be sanitized in-place")}}else if($l instanceof uo)Rl=P0(""),Sl=Rl.ownerDocument.importNode($l,!0),Sl.nodeType===1&&Sl.nodeName==="BODY"||Sl.nodeName==="HTML"?Rl=Sl:Rl.appendChild(Sl);else{if(!Gl&&!Js&&!Vs&&$l.indexOf("<")===-1)return No&&du?No.createHTML($l):$l;if(Rl=P0($l),!Rl)return Gl?null:du?Mo:""}Rl&&yl&&c1(Rl.firstChild);const zu=up(y1?$l:Rl);for(;eu=zu.nextNode();)Gv(eu)||(eu.content instanceof ao&&_l(eu.content),Ul(eu));if(y1)return $l;if(Gl){if(Qs)for(_c=Lo.call(Rl.ownerDocument);Rl.firstChild;)_c.appendChild(Rl.firstChild);else _c=Rl;return(ks.shadowroot||ks.shadowrootmode)&&(_c=Do.call(io,_c,!0)),_c}let N1=Vs?Rl.outerHTML:Rl.innerHTML;return Vs&&ys["!doctype"]&&Rl.ownerDocument&&Rl.ownerDocument.doctype&&Rl.ownerDocument.doctype.name&®ExpTest$1(DOCTYPE_NAME$1,Rl.ownerDocument.doctype.name)&&(N1=" `+N1),Js&&arrayForEach$1([Ho,Yo,qo],K0=>{N1=stringReplace$1(N1,K0," ")}),No&&du?No.createHTML(N1):N1},to.setConfig=function(){let $l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};h0($l),El=!0},to.clearConfig=function(){yp=null,El=!1},to.isValidAttribute=function($l,Us,Rl){yp||h0({});const Sl=K1($l),eu=K1(Us);return C1(Sl,eu,Rl)},to.addHook=function($l,Us){typeof Us=="function"&&(Uo[$l]=Uo[$l]||[],arrayPush$2(Uo[$l],Us))},to.removeHook=function($l){if(Uo[$l])return arrayPop$1(Uo[$l])},to.removeHooks=function($l){Uo[$l]&&(Uo[$l]=[])},to.removeAllHooks=function(){Uo={}},to}var purify$1=createDOMPurify$1(),eventemitter3={exports:{}};(function(eo){var to=Object.prototype.hasOwnProperty,no="~";function io(){}Object.create&&(io.prototype=Object.create(null),new io().__proto__||(no=!1));function so(ho,go,mo){this.fn=ho,this.context=go,this.once=mo||!1}function ao(ho,go,mo,yo,So){if(typeof mo!="function")throw new TypeError("The listener must be a function");var _o=new so(mo,yo||ho,So),ko=no?no+go:go;return ho._events[ko]?ho._events[ko].fn?ho._events[ko]=[ho._events[ko],_o]:ho._events[ko].push(_o):(ho._events[ko]=_o,ho._eventsCount++),ho}function lo(ho,go){--ho._eventsCount===0?ho._events=new io:delete ho._events[go]}function uo(){this._events=new io,this._eventsCount=0}uo.prototype.eventNames=function(){var go=[],mo,yo;if(this._eventsCount===0)return go;for(yo in mo=this._events)to.call(mo,yo)&&go.push(no?yo.slice(1):yo);return Object.getOwnPropertySymbols?go.concat(Object.getOwnPropertySymbols(mo)):go},uo.prototype.listeners=function(go){var mo=no?no+go:go,yo=this._events[mo];if(!yo)return[];if(yo.fn)return[yo.fn];for(var So=0,_o=yo.length,ko=new Array(_o);So<_o;So++)ko[So]=yo[So].fn;return ko},uo.prototype.listenerCount=function(go){var mo=no?no+go:go,yo=this._events[mo];return yo?yo.fn?1:yo.length:0},uo.prototype.emit=function(go,mo,yo,So,_o,ko){var Co=no?no+go:go;if(!this._events[Co])return!1;var $o=this._events[Co],Ro=arguments.length,Oo,No;if($o.fn){switch($o.once&&this.removeListener(go,$o.fn,void 0,!0),Ro){case 1:return $o.fn.call($o.context),!0;case 2:return $o.fn.call($o.context,mo),!0;case 3:return $o.fn.call($o.context,mo,yo),!0;case 4:return $o.fn.call($o.context,mo,yo,So),!0;case 5:return $o.fn.call($o.context,mo,yo,So,_o),!0;case 6:return $o.fn.call($o.context,mo,yo,So,_o,ko),!0}for(No=1,Oo=new Array(Ro-1);No-1)return registerClass(eo,to.split(" "));var so=eo.options,ao=so.parent;if(to[0]==="$"){var lo=ao.getRule(to.substr(1));return!lo||lo===eo?!1:(ao.classes[eo.key]+=" "+ao.classes[lo.key],!0)}return ao.classes[eo.key]+=" "+to,!0}function jssCompose(){function eo(to,no){return"composes"in to&&(registerClass(no,to.composes),delete to.composes),to}return{onProcessStyle:eo}}var uppercasePattern=/[A-Z]/g,msPattern=/^ms-/,cache$4={};function toHyphenLower(eo){return"-"+eo.toLowerCase()}function hyphenateStyleName(eo){if(cache$4.hasOwnProperty(eo))return cache$4[eo];var to=eo.replace(uppercasePattern,toHyphenLower);return cache$4[eo]=msPattern.test(to)?"-"+to:to}function convertCase(eo){var to={};for(var no in eo){var io=no.indexOf("--")===0?no:hyphenateStyleName(no);to[io]=eo[no]}return eo.fallbacks&&(Array.isArray(eo.fallbacks)?to.fallbacks=eo.fallbacks.map(convertCase):to.fallbacks=convertCase(eo.fallbacks)),to}function camelCase(){function eo(no){if(Array.isArray(no)){for(var io=0;ioeo.length)&&(to=eo.length);for(var no=0,io=new Array(to);no-1){var ao=propMap$1[to];if(!Array.isArray(ao))return prefix$2.js+pascalize(ao)in no?prefix$2.css+ao:!1;if(!so)return!1;for(var lo=0;loio?1:-1:no.length-io.length};return{onProcessStyle:function(no,io){if(io.type!=="style")return no;for(var so={},ao=Object.keys(no).sort(eo),lo=0;loMAX_RULES_PER_SHEET)&&(so=to.createStyleSheet().attach()),so};function lo(){var uo=arguments,ho=JSON.stringify(uo),go=no.get(ho);if(go)return go.className;var mo=[];for(var yo in uo){var So=uo[yo];if(!Array.isArray(So)){mo.push(So);continue}for(var _o=0;_oto=>!!pick$3(eo)(to),add$1=eo=>to=>{const no=to||0;return Array.isArray(eo)?eo.reduce((io,so)=>io|so,no):no|eo},pick$3=eo=>to=>(to||0)&eo,remove$3=eo=>to=>{const no=to||0;return Array.isArray(eo)?eo.reduce((io,so)=>io&~so,no):no&~eo},replace$2=eo=>()=>eo,EMPTY_STATUS=0,SELECTED_STATUS=1,ACTIVATED_STATUS=2;var GraphEdgeStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.ConnectedToSelected=4]="ConnectedToSelected",eo[eo.UnconnectedToSelected=8]="UnconnectedToSelected",eo[eo.Editing=16]="Editing"})(GraphEdgeStatus||(GraphEdgeStatus={}));var GraphNodeStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.Editing=4]="Editing",eo[eo.ConnectedToSelected=8]="ConnectedToSelected",eo[eo.UnconnectedToSelected=16]="UnconnectedToSelected"})(GraphNodeStatus||(GraphNodeStatus={}));var GraphPortStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.Connecting=4]="Connecting",eo[eo.ConnectingAsTarget=8]="ConnectingAsTarget"})(GraphPortStatus||(GraphPortStatus={}));const updateStatus=eo=>to=>{var no;const io=eo((no=to.status)!==null&&no!==void 0?no:0);return io===to.status?to:Object.assign(Object.assign({},to),{status:io})};function isNodeEditing(eo){return has$2(GraphNodeStatus.Editing)(eo.status)}function isSelected(eo){return has$2(SELECTED_STATUS)(eo.status)}function notSelected(eo){return!isSelected(eo)}const resetConnectStatus=eo=>to=>(to||0)&GraphNodeStatus.Activated|eo;class Debug{static log(to){}static warn(to){}static error(...to){console.error(...to)}static never(to,no){throw new Error(no??`${to} is unexpected`)}}const getNodeConfig=(eo,to)=>{const no=to.getNodeConfig(eo);if(!no){Debug.warn(`invalid node ${JSON.stringify(eo)}`);return}return no};function getRectWidth(eo,to){var no;const io=(no=eo==null?void 0:eo.getMinWidth(to))!==null&&no!==void 0?no:0;return to.width&&to.width>=io?to.width:io}function getRectHeight(eo,to){var no;const io=(no=eo==null?void 0:eo.getMinHeight(to))!==null&&no!==void 0?no:0;return to.height&&to.height>=io?to.height:io}function getNodeSize(eo,to){const no=getNodeConfig(eo,to),io=getRectWidth(no,eo);return{height:getRectHeight(no,eo),width:io}}function getGroupRect(eo,to,no){var io,so,ao,lo,uo,ho,go,mo;const yo=new Set(eo.nodeIds),So=Array.from(to.values()).filter(Bo=>yo.has(Bo.id)),_o=Math.min(...So.map(Bo=>Bo.x)),ko=Math.max(...So.map(Bo=>Bo.x+getNodeSize(Bo,no).width)),Co=Math.min(...So.map(Bo=>Bo.y)),$o=Math.max(...So.map(Bo=>Bo.y+getNodeSize(Bo,no).height)),Ro=_o-((so=(io=eo.padding)===null||io===void 0?void 0:io.left)!==null&&so!==void 0?so:0),Oo=Co-((lo=(ao=eo.padding)===null||ao===void 0?void 0:ao.top)!==null&&lo!==void 0?lo:0),No=$o-Oo+((ho=(uo=eo.padding)===null||uo===void 0?void 0:uo.bottom)!==null&&ho!==void 0?ho:0),Mo=ko-Ro+((mo=(go=eo.padding)===null||go===void 0?void 0:go.left)!==null&&mo!==void 0?mo:0);return{x:Ro,y:Oo,width:Mo,height:No}}var MouseEventButton;(function(eo){eo[eo.Primary=0]="Primary",eo[eo.Auxiliary=1]="Auxiliary",eo[eo.Secondary=2]="Secondary",eo[eo.Fourth=4]="Fourth",eo[eo.Fifth=5]="Fifth"})(MouseEventButton||(MouseEventButton={}));var MouseEventButtons;(function(eo){eo[eo.None=0]="None",eo[eo.Left=1]="Left",eo[eo.Right=2]="Right",eo[eo.Middle=4]="Middle"})(MouseEventButtons||(MouseEventButtons={}));const COPIED_NODE_SPACING=50,NODE_MIN_VISIBLE_LENGTH=5,NODE_MAX_VISIBLE_LENGTH=500,defaultColors={controlPointColor:"#333333",primaryColor:"#0078D4",defaultColor:"#CCCCCC",borderColor:"#B3B0AD",defaultBorderColor:"#FFFFFF",unConnectableBgColor:"#E1DFDD",defaultBackgroundColor:"#FFFFFF",portStroke:"#ccc",portFill:"#fff",connectedPortColor:"gray",nodeActivateFill:"#ffffff",nodeActivateStroke:"#0078D4",nodeFill:"#ffffff",nodeStroke:"#cccccc",contextMenuBackground:"#FFFFFF",contextMenuBorder:"#E1DFDD",contextMenuHoverBackground:"rgba(0, 120, 212, 0.05)",fontColor:"#000000",canvasBackground:"#EDEDED",minimapBackground:"#EDEDED",edgeColor:"#ccc",edgeColorSelected:"#015cda",minimapShadow:"#000000",outlineStyle:"none",focusOutlineColor:"#000000",dummyNodeStroke:"#015cda",inputFocusBorderAlt:"#0078d4",buttonBorder:"#797775",scrollbarColor:"#c8c8c8"},RectComponent=eo=>{const{style:to,node:no,width:io,height:so,textY:ao}=eo,lo=no.data&&no.data.comment?no.data.comment:"",uo=isNodeEditing(no);return jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("rect",{width:io,height:so,x:no.x,y:no.y,style:to,rx:to.borderRadius}),jsxRuntimeExports.jsx("text",Object.assign({x:no.x,y:ao,fontSize:12},{children:no.name})),no.data&&no.data.comment&&!uo&&jsxRuntimeExports.jsx("text",Object.assign({x:no.x,y:ao+20,fontSize:12,className:`comment-${no.id}`},{children:no.data.comment})),uo&&jsxRuntimeExports.jsx("foreignObject",Object.assign({x:no.x,y:ao,height:so/2.5,width:io-5},{children:jsxRuntimeExports.jsx("input",{value:lo,placeholder:"Input your comment here"})}))]},no.id)},rect$3={getMinHeight(){return 150},getMinWidth(){return 150},render(eo){const to=eo.model,no=getRectWidth(rect$3,to),io=getRectHeight(rect$3,to),so=has$2(GraphNodeStatus.Selected|GraphNodeStatus.Activated)(to.status)?{fill:defaultColors.nodeActivateFill,stroke:defaultColors.nodeActivateStroke}:{fill:defaultColors.nodeFill,fillOpacity:.1,stroke:defaultColors.nodeStroke,borderRadius:"5"},ao=to.y+io/3;return jsxRuntimeExports.jsx(RectComponent,{style:so,node:to,width:no,height:io,textY:ao})}},getCurvePathD=(eo,to,no,io)=>`M${eo},${no}C${eo},${no-getControlPointDistance(no,io)},${to},${io+5+getControlPointDistance(no,io)},${to},${io+5}`,getControlPointDistance=(eo,to)=>Math.min(5*15,Math.max(5*3,Math.abs((eo-(to+5))/2))),line$3={render(eo){const to=eo.model,no={cursor:"crosshair",stroke:has$2(GraphEdgeStatus.Selected)(to.status)?defaultColors.edgeColorSelected:defaultColors.edgeColor,strokeWidth:"2"};return jsxRuntimeExports.jsx("path",{d:getCurvePathD(eo.x2,eo.x1,eo.y2,eo.y1),fill:"none",style:no,id:`edge${to.id}`},to.id)}};class DefaultPort{getStyle(to,no,io,so,ao){const lo=defaultColors.portStroke;let uo=defaultColors.portFill;return(so||ao)&&(uo=defaultColors.connectedPortColor),has$2(GraphPortStatus.Activated)(to.status)&&(uo=defaultColors.primaryColor),{stroke:lo,fill:uo}}getIsConnectable(){return!0}render(to){const{model:no,data:io,parentNode:so}=to,ao=io.isPortConnectedAsSource(so.id,no.id),lo=io.isPortConnectedAsTarget(so.id,no.id),uo=this.getStyle(no,so,io,ao,lo),{x:ho,y:go}=to,mo=`${ho-5} ${go}, ${ho+7} ${go}, ${ho+1} ${go+8}`;return lo?jsxRuntimeExports.jsx("polygon",{points:mo,style:uo}):jsxRuntimeExports.jsx("circle",{r:5,cx:ho,cy:go,style:uo},`${to.parentNode.id}-${to.model.id}`)}}const defaultPort=new DefaultPort;class DefaultClipboard{constructor(to){this.storage=to}write(to){this.storage.setItem("graph-clipboard",JSON.stringify({nodes:to.nodes.map(no=>Object.assign(Object.assign({},no),{data:{}})),edges:to.edges.map(no=>Object.assign(Object.assign({},no),{data:{}}))}))}read(){const to=this.storage.getItem("graph-clipboard");if(!to)return null;try{const no=JSON.parse(to),io=new Map;return{nodes:no.nodes.map(so=>{const ao=v4();return io.set(so.id,ao),Object.assign(Object.assign({},so),{x:so.x+COPIED_NODE_SPACING,y:so.y+COPIED_NODE_SPACING,id:ao})}),edges:no.edges.map(so=>Object.assign(Object.assign({},so),{id:v4(),source:io.get(so.source)||"",target:io.get(so.target)||""}))}}catch{return null}}}class DefaultStorage{get length(){return this.items.size}constructor(){this.key=()=>"DefaultLocalStorage",this.items=new Map}clear(){this.items=new Map}setItem(to,no){this.items.set(to,no)}getItem(to){return this.items.has(to)?this.items.get(to):null}removeItem(to){this.items.delete(to)}}class GraphConfigBuilder{constructor(){const to=new DefaultStorage,no=new DefaultClipboard(to);this.draft={getNodeConfig:()=>rect$3,getEdgeConfig:()=>line$3,getPortConfig:()=>defaultPort,getGroupConfig:()=>{},getClipboard:()=>no}}static default(){return new GraphConfigBuilder}static from(to){return new GraphConfigBuilder().registerNode(to.getNodeConfig.bind(to)).registerEdge(to.getEdgeConfig.bind(to)).registerPort(to.getPortConfig.bind(to)).registerGroup(to.getGroupConfig.bind(to)).registerClipboard(to.getClipboard.bind(to))}registerNode(to){return this.draft.getNodeConfig=to,this}registerEdge(to){return this.draft.getEdgeConfig=to,this}registerPort(to){return this.draft.getPortConfig=to,this}registerGroup(to){return this.draft.getGroupConfig=to,this}registerClipboard(to){return this.draft.getClipboard=to,this}build(){return this.draft}}const GraphConfigContext=reactExports.createContext(GraphConfigBuilder.default().build());var MenuType;(function(eo){eo.Node="node",eo.Edge="edge",eo.Port="port",eo.Canvas="canvas",eo.Multi="multi"})(MenuType||(MenuType={}));const emptySelectBoxPosition=()=>({startX:0,startY:0,height:0,width:0});var GraphFeatures;(function(eo){eo.NodeDraggable="nodeDraggable",eo.NodeResizable="nodeResizable",eo.ClickNodeToSelect="clickNodeToSelect",eo.PanCanvas="panCanvas",eo.MultipleSelect="multipleSelect",eo.LassoSelect="lassoSelect",eo.Delete="delete",eo.AddNewNodes="addNewNodes",eo.AddNewEdges="addNewEdges",eo.AddNewPorts="addNewPorts",eo.AutoFit="autoFit",eo.CanvasHorizontalScrollable="canvasHorizontalScrollable",eo.CanvasVerticalScrollable="canvasVerticalScrollable",eo.NodeHoverView="nodeHoverView",eo.PortHoverView="portHoverView",eo.AddEdgesByKeyboard="addEdgesByKeyboard",eo.A11yFeatures="a11YFeatures",eo.EditNode="editNode",eo.AutoAlign="autoAlign",eo.UndoStack="undoStack",eo.CtrlKeyZoom="ctrlKeyZoom",eo.LimitBoundary="limitBoundary",eo.EditEdge="editEdge",eo.InvisibleScrollbar="InvisibleScrollbar"})(GraphFeatures||(GraphFeatures={}));GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.LassoSelect,GraphFeatures.Delete,GraphFeatures.AddNewNodes,GraphFeatures.AddNewEdges,GraphFeatures.AddNewPorts,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AddEdgesByKeyboard,GraphFeatures.A11yFeatures,GraphFeatures.AutoFit,GraphFeatures.EditNode,GraphFeatures.AutoAlign,GraphFeatures.UndoStack,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary,GraphFeatures.EditEdge;const defaultFeatures=new Set([GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.Delete,GraphFeatures.AddNewNodes,GraphFeatures.AddNewEdges,GraphFeatures.AddNewPorts,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AddEdgesByKeyboard,GraphFeatures.A11yFeatures,GraphFeatures.EditNode,GraphFeatures.AutoAlign,GraphFeatures.UndoStack,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary]),dataReadonlyMode=new Set([GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.A11yFeatures,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary]);GraphFeatures.ClickNodeToSelect,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.A11yFeatures,GraphFeatures.LassoSelect,GraphFeatures.LimitBoundary;GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AutoFit;const emptyDummyNodes=()=>({dx:0,dy:0,dWidth:0,dHeight:0,alignedDX:void 0,alignedDY:void 0,nodes:[],isVisible:!1}),is$1$1=Object.is;let MapIterator$1=class{constructor(to,no){this.upstream=to,this.f=no}[Symbol.iterator](){return this}next(){const to=this.upstream.next();return to.done?to:{done:!1,value:this.f(to.value)}}};var NodeType$1;(function(eo){eo[eo.Bitmap=0]="Bitmap",eo[eo.Collision=1]="Collision"})(NodeType$1||(NodeType$1={}));const HASH_CODE_LENGTH=30,BIT_PARTITION_SIZE=5,FULL_MASK=1073741823;function bitPosFrom(eo){return 1<>>to&31}function bitCount(eo){return eo|=0,eo-=eo>>>1&1431655765,eo=(eo&858993459)+(eo>>>2&858993459),eo=eo+(eo>>>4)&252645135,eo+=eo>>>8,eo+=eo>>>16,eo&127}let BitmapIndexedNode$1=class mne{get valueCount(){return this.values.length}get nodeCount(){return this.children.length}constructor(to,no,io,so,ao,lo,uo,ho){this.type=NodeType$1.Bitmap,this.owner=to,this.dataMap=no,this.nodeMap=io,this.keys=so,this.values=ao,this.children=lo,this.hashes=uo,this.size=ho}static empty(to){return new mne(to,0,0,[],[],[],[],0)}getKey(to){return this.keys[to]}getValue(to){return this.values[to]}getHash(to){return this.hashes[to]}getNode(to){return this.children[to]}contains(to,no,io){const so=maskFrom(no,io),ao=bitPosFrom(so),{dataMap:lo,nodeMap:uo}=this;if(lo&ao){const ho=indexFrom(lo,so,ao),go=this.getKey(ho);return is$1$1(go,to)}else if(uo&ao){const ho=indexFrom(uo,so,ao);return this.getNode(ho).contains(to,no,io+BIT_PARTITION_SIZE)}return!1}get(to,no,io){const so=maskFrom(no,io),ao=bitPosFrom(so),{dataMap:lo,nodeMap:uo}=this;if(lo&ao){const ho=indexFrom(lo,so,ao),go=this.getKey(ho);return is$1$1(go,to)?this.getValue(ho):void 0}else if(uo&ao){const ho=indexFrom(uo,so,ao);return this.getNode(ho).get(to,no,io+BIT_PARTITION_SIZE)}}insert(to,no,io,so,ao){const lo=maskFrom(so,ao),uo=bitPosFrom(lo),{dataMap:ho,nodeMap:go}=this;if(ho&uo){const mo=indexFrom(ho,lo,uo),yo=this.getKey(mo),So=this.getValue(mo),_o=this.getHash(mo);if(_o===so&&is$1$1(yo,no))return is$1$1(So,io)?this:this.setValue(to,io,mo);{const ko=mergeTwoKeyValPairs(to,yo,So,_o,no,io,so,ao+BIT_PARTITION_SIZE);return this.migrateInlineToNode(to,uo,ko)}}else if(go&uo){const mo=indexFrom(go,lo,uo),So=this.getNode(mo).insert(to,no,io,so,ao+BIT_PARTITION_SIZE);return this.setNode(to,1,So,uo)}return this.insertValue(to,uo,no,so,io)}update(to,no,io,so,ao){const lo=maskFrom(so,ao),uo=bitPosFrom(lo),{dataMap:ho,nodeMap:go}=this;if(ho&uo){const mo=indexFrom(ho,lo,uo),yo=this.getKey(mo);if(this.getHash(mo)===so&&is$1$1(yo,no)){const _o=this.getValue(mo),ko=io(_o);return is$1$1(_o,ko)?this:this.setValue(to,ko,mo)}}else if(go&uo){const mo=indexFrom(go,lo,uo),yo=this.getNode(mo),So=yo.update(to,no,io,so,ao+BIT_PARTITION_SIZE);return So===yo?this:this.setNode(to,0,So,uo)}return this}remove(to,no,io,so){const ao=maskFrom(io,so),lo=bitPosFrom(ao);if(this.dataMap&lo){const uo=indexFrom(this.dataMap,ao,lo),ho=this.getKey(uo);return is$1$1(ho,no)?this.removeValue(to,lo):void 0}else if(this.nodeMap&lo){const uo=indexFrom(this.nodeMap,ao,lo),ho=this.getNode(uo),go=ho.remove(to,no,io,so+BIT_PARTITION_SIZE);if(go===void 0)return;const[mo,yo]=go;return mo.size===1?this.size===ho.size?[new mne(to,lo,0,[mo.getKey(0)],[mo.getValue(0)],[],[mo.getHash(0)],1),yo]:[this.migrateNodeToInline(to,lo,mo),yo]:[this.setNode(to,-1,mo,lo),yo]}}toOwned(to){return this.owner===to?this:new mne(to,this.dataMap,this.nodeMap,this.keys.slice(),this.values.slice(),this.children.slice(),this.hashes.slice(),this.size)}iter(){return new BitmapIndexedNodeIterator(this)}map(to,no){const io=this.valueCount,so=[],ao=[],lo=[];let uo=!0;for(let ho=0;ho=HASH_CODE_LENGTH)return new HashCollisionNode$1(eo,io,[to,so],[no,ao]);{const ho=maskFrom(io,uo),go=maskFrom(lo,uo);if(ho!==go){const mo=bitPosFrom(ho)|bitPosFrom(go);return hois$1$1(io,to));return no>=0?this.values[no]:void 0}insert(to,no,io){const so=this.keys.findIndex(ao=>is$1$1(ao,no));if(so>=0){const ao=this.values[so];if(is$1$1(ao,io))return this;const lo=this.toOwned(to);return lo.values[so]=io,lo}else{const ao=this.toOwned(to);return ao.keys.push(no),ao.values.push(io),ao}}update(to,no,io){const so=this.keys.findIndex(ao=>is$1$1(ao,no));if(so>=0){const ao=this.values[so],lo=io(ao);if(is$1$1(ao,lo))return this;const uo=this.toOwned(to);return uo.values[so]=lo,uo}return this}remove(to,no){const io=this.keys.findIndex(ao=>is$1$1(ao,no));if(io===-1)return;const so=this.getValue(io);return[new gbe(to,this.hash,this.keys.filter((ao,lo)=>lo!==io),this.values.filter((ao,lo)=>lo!==io)),so]}getKey(to){return this.keys[to]}getValue(to){return this.values[to]}getHash(){return this.hash}iter(){return new HashCollisionNodeIterator(this)}map(to,no){const io=this.size,so=[];let ao=!1;for(let lo=0;lo=this.node.size)return{done:!0,value:void 0};const to=this.node.getKey(this.index),no=this.node.getValue(this.index);return this.index+=1,{done:!1,value:[to,no]}}clone(){const to=new HashCollisionNodeIterator(this.node);return to.index=this.index,to}}function hashing(eo){if(eo===null)return 1108378658;switch(typeof eo){case"boolean":return eo?839943201:839943200;case"number":return hashNumber$1(eo);case"string":return hashString$2(eo);case"object":case"function":case"symbol":throw new Error("Using object, function and symbol as hash map key is not supported");case"undefined":return 839943203;default:return hashString$2(String(eo))}}function hashString$2(eo){let to=0;for(let no=0;no4294967295;)eo/=4294967295,to^=eo;return smi$1(to)}function smi$1(eo){return eo&1073741823}let Uid$1=class{constructor(){this.id=0}take(){return this.id+=1,this.id}peek(){return this.id+1}};const uid$1=new Uid$1;class HashMap{get size(){return this.root.size}constructor(to){this.id=uid$1.take(),this.root=to}static empty(){return HashMapBuilder.empty().finish()}static from(to){return HashMapBuilder.from(to).finish()}get(to){const no=hashing(to);return this.root.get(to,no,0)}has(to){const no=hashing(to);return this.root.contains(to,no,0)}set(to,no){return this.withRoot(this.root.insert(uid$1.peek(),to,no,hashing(to),0))}update(to,no){return this.withRoot(this.root.update(uid$1.peek(),to,no,hashing(to),0))}delete(to){const no=hashing(to),io=uid$1.peek(),so=this.root.remove(io,to,no,0);return so===void 0?this:new HashMap(so[0])}clone(){return new HashMap(this.root)}[Symbol.iterator](){return this.entries()}entries(){return this.root.iter()}values(){return new MapIterator$1(this.entries(),([,to])=>to)}mutate(){return new HashMapBuilder(this.root)}map(to){return new HashMap(this.root.map(uid$1.peek(),to))}filter(to){const no=this.mutate();return this.forEach((io,so)=>{to(io,so)||no.delete(so)}),no.finish()}forEach(to){this.root.forEach(to)}find(to){return this.root.find(to)}withRoot(to){return to===this.root?this:new HashMap(to)}}class HashMapBuilder{constructor(to){this.id=uid$1.take(),this.root=to}static empty(){const to=uid$1.peek(),no=BitmapIndexedNode$1.empty(to);return new HashMapBuilder(no)}static from(to){if(Array.isArray(to))return HashMapBuilder.fromArray(to);const no=to[Symbol.iterator](),io=HashMapBuilder.empty();let so=no.next();for(;!so.done;){const[ao,lo]=so.value;io.set(ao,lo),so=no.next()}return io}static fromArray(to){const no=HashMapBuilder.empty();for(let io=0;io=to?no:io;const so=no+io>>>1;if(eo[so]===to)return so;to=MIN_SIZE$1)return go;if(io===so)return go.balanceTail(ho),go;const mo=this.getValue(io);return go.balanceChild(to,ho,uo,mo,io)}}removeMostRight(to){const no=this.selfSize,[io,so,ao]=this.getChild(no).removeMostRight(to),lo=this.toOwned(to);return lo.size-=1,lo.children[no]=ao,ao.selfSizeMIN_SIZE$1)this.rotateRight(no,uo,ao,lo);else if(ho.selfSize>MIN_SIZE$1)this.rotateLeft(no,ho,ao,lo);else{const go=uo.toOwned(to),mo=ho.toOwned(to),yo=no.getKey(HALF_NODE_SPLIT),So=no.getValue(HALF_NODE_SPLIT);go.keys.push(this.getKey(ao-1)),go.values.push(this.getValue(ao-1)),go.keys.push(...no.keys.slice(0,HALF_NODE_SPLIT)),go.values.push(...no.values.slice(0,HALF_NODE_SPLIT)),mo.keys.unshift(io),mo.values.unshift(so),mo.keys.unshift(...no.keys.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1)),mo.values.unshift(...no.values.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1)),this.keys.splice(ao-1,2,yo),this.values.splice(ao-1,2,So),this.children.splice(ao-1,3,go,mo),lo&&(go.children.push(...no.children.slice(0,HALF_NODE_SPLIT+1)),mo.children.unshift(...no.children.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1+1)),go.updateSize(),mo.updateSize())}return this}rotateLeft(to,no,io,so){const ao=no.toOwned(this.owner),lo=ao.keys.shift(),uo=ao.values.shift(),ho=this.getKey(io),go=this.getValue(io);if(to.keys.push(ho),to.values.push(go),this.keys[io]=lo,this.values[io]=uo,this.children[io+1]=ao,so){const mo=ao.children.shift();to.children.push(mo);const yo=mo.size+1;to.size+=yo,ao.size-=yo}}rotateRight(to,no,io,so){const ao=no.toOwned(this.owner),lo=ao.keys.pop(),uo=ao.values.pop(),ho=this.getKey(io-1),go=this.getValue(io-1);if(to.keys.unshift(ho),to.values.unshift(go),this.keys[io-1]=lo,this.values[io-1]=uo,this.children[io-1]=ao,so){const mo=ao.children.pop();to.children.unshift(mo);const yo=mo.size+1;to.size+=yo,ao.size-=yo}}balanceTail(to){const no=this.selfSize,io=this.getChild(no-1),so=to.type===NodeType$2.Internal;io.selfSize===MIN_SIZE$1?(to.keys.unshift(this.getKey(no-1)),to.values.unshift(this.getValue(no-1)),to.keys.unshift(...io.keys),to.values.unshift(...io.values),this.keys.splice(no-1,1),this.values.splice(no-1,1),this.children.splice(no-1,1),so&&(to.children.unshift(...io.children),to.size+=io.size+1)):this.rotateRight(to,io,no,so)}balanceHead(to){const no=this.getChild(1),io=to.type===NodeType$2.Internal;no.selfSize===MIN_SIZE$1?(to.keys.push(this.getKey(0)),to.values.push(this.getValue(0)),to.keys.push(...no.keys),to.values.push(...no.values),this.keys.splice(0,1),this.values.splice(0,1),this.children.splice(1,1),io&&(to.children.push(...no.children),to.size+=no.size+1)):this.rotateLeft(to,no,0,io)}updateWithSplit(to,no,io,so,ao,lo){const uo=this.toOwned(to);uo.keys.splice(lo,0,so),uo.values.splice(lo,0,ao),uo.children.splice(lo,1,no,io);const ho=new InternalNode(to,uo.keys.splice(16,16),uo.values.splice(16,16),uo.children.splice(16,17),0),go=uo.keys.pop(),mo=uo.values.pop();return uo.updateSize(),ho.updateSize(),[uo,ho,go,mo]}updateSize(){let to=this.selfSize;const no=this.children.length;for(let io=0;io{const[lo,uo]=ao,ho=no(uo);return is$1$1(ho,uo)?ao:[lo,ho]});return this.withRoot(this.itemId,this.hashRoot,so)}[Symbol.iterator](){return this.entries()}clone(){return new vne(this.itemId,this.hashRoot,this.sortedRoot)}entries(){return new OrderedMapIterator(new BTreeIterator(this.sortedRoot))}values(){return new MapIterator$1(this.entries(),([,to])=>to)}mutate(){return new OrderedMapBuilder(this.itemId,this.hashRoot,this.sortedRoot)}map(to){const no=uid.peek(),io=ao=>{const[lo,uo]=ao,ho=to(uo,lo);return is$1$1(uo,ho)?ao:[lo,ho]},so=this.sortedRoot.map(no,io);return new vne(this.itemId,this.hashRoot,so)}forEach(to){this.sortedRoot.forEach(([no,io])=>{to(io,no)})}find(to){const no=this.sortedRoot.find(([,io])=>to(io));return no?no[1]:void 0}first(){const to=this.entries().next();if(!to.done)return to.value[1]}filter(to){const no=this.mutate();return this.forEach((io,so)=>{to(io,so)||no.delete(so)}),no.finish()}withRoot(to,no,io){return no===this.hashRoot&&io===this.sortedRoot?this:new vne(to,no,io)}};class OrderedMapIterator{constructor(to){this.delegate=to}[Symbol.iterator](){return this.clone()}next(){const to=this.delegate.next();return to.done?{done:!0,value:void 0}:{done:!1,value:to.value[1]}}clone(){return new OrderedMapIterator(this.delegate.clone())}}class OrderedMapBuilder{constructor(to,no,io){this.id=uid.take(),this.itemId=to,this.hashRoot=no,this.sortedRoot=io}static empty(){const to=uid.peek(),no=BitmapIndexedNode$1.empty(to),io=emptyRoot(to);return new OrderedMapBuilder(0,no,io)}static from(to){if(Array.isArray(to))return OrderedMapBuilder.fromArray(to);const no=OrderedMapBuilder.empty(),io=to[Symbol.iterator]();let so=io.next();for(;!so.done;){const[ao,lo]=so.value;no.set(ao,lo),so=io.next()}return no}static fromArray(to){const no=OrderedMapBuilder.empty();for(let io=0;io{const[ao,lo]=so,uo=no(lo);return is$1$1(uo,lo)?so:[ao,uo]}),this):this}finish(){return new OrderedMap$1(this.itemId,this.hashRoot,this.sortedRoot)}}const getPortPosition=(eo,to,no)=>{const io=getRectWidth(no,eo),so=getRectHeight(no,eo),ao=to.position?to.position[0]*io:io*.5,lo=eo.x+ao,uo=to.position?to.position[1]*so:so,ho=eo.y+uo;return{x:lo,y:ho}},getPortPositionByPortId=(eo,to,no)=>{const io=getNodeConfig(eo,no);if(!io)return;const ao=(eo.ports||[]).find(lo=>lo.id===to);if(!ao){Debug.warn(`invalid port id ${JSON.stringify(ao)}`);return}return getPortPosition(eo,ao,io)},identical=eo=>eo;var BrowserType;(function(eo){eo.Unknown="Unknown",eo.Edge="Edge",eo.EdgeChromium="EdgeChromium",eo.Opera="Opera",eo.Chrome="Chrome",eo.IE="IE",eo.Firefox="Firefox",eo.Safari="Safari",eo.Electron="Electron"})(BrowserType||(BrowserType={}));const getBrowser=()=>{const eo=navigator.userAgent.toLowerCase();if(eo.indexOf("electron")>-1)return BrowserType.Electron;switch(!0){case eo.indexOf("edge")>-1:return BrowserType.Edge;case eo.indexOf("edg")>-1:return BrowserType.EdgeChromium;case(eo.indexOf("opr")>-1&&!!window.opr):return BrowserType.Opera;case(eo.indexOf("chrome")>-1&&!!window.chrome):return BrowserType.Chrome;case eo.indexOf("trident")>-1:return BrowserType.IE;case eo.indexOf("firefox")>-1:return BrowserType.Firefox;case eo.indexOf("safari")>-1:return BrowserType.Safari;default:return BrowserType.Unknown}},isMacOs=navigator.userAgent.includes("Macintosh"),metaControl=eo=>isMacOs?eo.metaKey:eo.ctrlKey,checkIsMultiSelect=eo=>eo.shiftKey||metaControl(eo),transformPoint=(eo,to,no)=>({x:no[0]*eo+no[2]*to+no[4],y:no[1]*eo+no[3]*to+no[5]}),reverseTransformPoint=(eo,to,no)=>{const[io,so,ao,lo,uo,ho]=no;return{x:((eo-uo)*lo-(to-ho)*ao)/(io*lo-so*ao),y:((eo-uo)*so-(to-ho)*io)/(so*ao-io*lo)}},getPointDeltaByClientDelta=(eo,to,no)=>{const[io,so,ao,lo]=no,uo=lo*eo/(io*lo-so*ao)+ao*to/(so*ao-io*lo),ho=so*eo/(so*ao-io*lo)+io*to/(io*lo-so*ao);return{x:uo,y:ho}},getClientDeltaByPointDelta=(eo,to,no)=>{if(!no)return{x:eo,y:to};const[io,so,ao,lo]=no;return transformPoint(eo,to,[io,so,ao,lo,0,0])},getRealPointFromClientPoint=(eo,to,no)=>{const{rect:io}=no,so=eo-io.left,ao=to-io.top;return reverseTransformPoint(so,ao,no.transformMatrix)},getClientPointFromRealPoint=(eo,to,no)=>{const{x:io,y:so}=transformPoint(eo,to,no.transformMatrix),{rect:ao}=no;return{x:io+ao.left,y:so+ao.top}},getContainerClientPoint=(eo,to,no)=>{const io=getClientPointFromRealPoint(eo,to,no),{rect:so}=no;return{x:io.x-so.left,y:io.y-so.top}};function markEdgeDirty(eo,to){eo.update(to,no=>no.shallow())}const getNearestConnectablePort=eo=>{const{parentNode:to,clientX:no,clientY:io,graphConfig:so,viewport:ao}=eo;let lo=1/0,uo;if(!to.ports)return;const ho=getRealPointFromClientPoint(no,io,ao);return to.ports.forEach(go=>{if(isConnectable(so,Object.assign(Object.assign({},eo),{model:go}))){const mo=getPortPositionByPortId(to,go.id,so);if(!mo)return;const yo=ho.x-mo.x,So=ho.y-mo.y,_o=yo*yo+So*So;_o{const no=eo.getPortConfig(to.model);return no?no.getIsConnectable(to):!1},unSelectAllEntity=()=>eo=>eo.mapNodes(to=>to.update(no=>{var io;const so=Object.assign(Object.assign({},no),{ports:(io=no.ports)===null||io===void 0?void 0:io.map(updateStatus(replace$2(GraphPortStatus.Default)))});return updateStatus(replace$2(GraphNodeStatus.Default))(so)})).mapEdges(to=>to.update(updateStatus(replace$2(GraphEdgeStatus.Default)))),nodeSelection=(eo,to)=>{if(isNodeEditing(to))return identical;const no=checkIsMultiSelect(eo);return isSelected(to)&&!no?identical:io=>{const so=no?ao=>ao.id!==to.id?isSelected(ao):eo.button===MouseEventButton.Secondary?!0:!isSelected(to):ao=>ao.id===to.id;return io.selectNodes(so,to.id)}},getNodeAutomationId=eo=>{var to;return`node-container-${(to=eo.name)!==null&&to!==void 0?to:"unnamed"}-${eo.id}`},getPortAutomationId=(eo,to)=>`port-${to.name}-${to.id}-${eo.name}-${eo.id}`,getNodeUid=(eo,to)=>`node:${eo}:${to.id}`,getPortUid=(eo,to,no)=>`port:${eo}:${to.id}:${no.id}`,getEdgeUid=(eo,to)=>`edge:${eo}:${to.id}`;function preventSpread(eo){Object.defineProperty(eo,"__preventSpread",{enumerable:!0,configurable:!1,get(){document.currentScript&&Debug.error(`${eo.constructor.name} is a class, which should not be used in the spread syntax or argument of Object.assign`)}})}class EdgeModel{get id(){return this.inner.id}get automationId(){return this.inner.automationId}get source(){return this.inner.source}get target(){return this.inner.target}get sourcePortId(){return this.inner.sourcePortId}get targetPortId(){return this.inner.targetPortId}get status(){return this.inner.status}get data(){return this.inner.data}constructor(to){this.inner=to,preventSpread(this)}static fromJSON(to){return new EdgeModel(to)}updateStatus(to){return this.update(updateStatus(to))}update(to){const no=to(this.inner);return no===this.inner?this:new EdgeModel(no)}shallow(){return new EdgeModel(this.inner)}toJSON(){return this.inner}}const is$2=Object.is;function mapCow(eo,to){const no=[];let io=!0;for(let so=0;soio.id===to)}link({prev:to,next:no}){return to===this.prev&&no===this.next?this:new fP(this.inner,this.portPositionCache,to??this.prev,no??this.next)}updateStatus(to){return this.update(updateStatus(to))}update(to){const no=to(this.inner);return no===this.inner?this:new fP(no,new Map,this.prev,this.next)}updateData(to){return this.data?this.update(no=>{const io=to(no.data);return io===no.data?no:Object.assign(Object.assign({},no),{data:io})}):this}getPortPosition(to,no){let io=this.portPositionCache.get(to);return io||(io=getPortPositionByPortId(this.inner,to,no),this.portPositionCache.set(to,io)),io}hasPort(to){var no;return!!(!((no=this.inner.ports)===null||no===void 0)&&no.find(io=>io.id===to))}updatePositionAndSize(to){const{x:no,y:io,width:so,height:ao}=to,lo=Object.assign(Object.assign({},this.inner),{x:no,y:io,width:so??this.inner.width,height:ao??this.inner.height});return new fP(lo,new Map,this.prev,this.next)}updatePorts(to){if(!this.inner.ports)return this;const no=mapCow(this.inner.ports,to),io=this.inner.ports===no?this.inner:Object.assign(Object.assign({},this.inner),{ports:no});return io===this.inner?this:new fP(io,new Map,this.prev,this.next)}invalidCache(){return new fP(this.inner,new Map,this.prev,this.next)}toJSON(){return this.inner}};class GraphModel{constructor(to){this.nodes=to.nodes,this.edges=to.edges,this.groups=to.groups,this.head=to.head,this.tail=to.tail,this.edgesBySource=to.edgesBySource,this.edgesByTarget=to.edgesByTarget,this.selectedNodes=to.selectedNodes,preventSpread(this)}static empty(){return new GraphModel({nodes:OrderedMap$1.empty(),edges:HashMap.empty(),groups:[],head:void 0,tail:void 0,edgesBySource:HashMap.empty(),edgesByTarget:HashMap.empty(),selectedNodes:new Set})}static fromJSON(to){var no;const io=OrderedMap$1.empty().mutate(),so=HashMap.empty().mutate();let ao,lo;if(to.nodes.length===0)ao=void 0,lo=void 0;else if(to.nodes.length===1){const go=to.nodes[0];io.set(go.id,NodeModel$1.fromJSON(go,void 0,void 0)),ao=go.id,lo=go.id}else{const go=to.nodes[0],mo=to.nodes[1],yo=to.nodes[to.nodes.length-1];ao=go.id,lo=yo.id,io.set(go.id,NodeModel$1.fromJSON(go,void 0,mo.id));let So=to.nodes[0];if(to.nodes.length>2)for(let _o=1;_ouo.update(no));if(ao===this.nodes)return this;const lo=this.edges.mutate();return(io=this.edgesBySource.get(to))===null||io===void 0||io.forEach(uo=>{uo.forEach(ho=>{markEdgeDirty(lo,ho)})}),(so=this.edgesByTarget.get(to))===null||so===void 0||so.forEach(uo=>{uo.forEach(ho=>{markEdgeDirty(lo,ho)})}),this.merge({nodes:ao,edges:lo.finish()})}updateNodeData(to,no){return this.merge({nodes:this.nodes.update(to,io=>io.updateData(no))})}updatePort(to,no,io){const so=this.nodes.update(to,ao=>ao.updatePorts(lo=>lo.id===no?io(lo):lo));return this.merge({nodes:so})}insertNode(to){const no=this.nodes.mutate().set(to.id,NodeModel$1.fromJSON(to,this.tail,void 0));return this.tail&&!this.nodes.has(to.id)&&no.update(this.tail,io=>io.link({next:to.id})),this.merge({nodes:no.finish(),head:this.nodes.size===0?to.id:this.head,tail:to.id})}deleteItems(to){var no;const io=new Set,so=this.nodes.mutate();let ao=this.head===void 0?void 0:this.nodes.get(this.head),lo=ao,uo;const ho=this.edgesBySource.mutate(),go=this.edgesByTarget.mutate();for(;lo!==void 0;){const yo=lo.next?this.nodes.get(lo.next):void 0;!((no=to.node)===null||no===void 0)&&no.call(to,lo.inner)?(so.update(lo.id,So=>So.link({prev:uo==null?void 0:uo.id}).update(_o=>has$2(GraphNodeStatus.Editing)(_o.status)?_o:Object.assign(Object.assign({},_o),{status:GraphNodeStatus.Default}))),uo=lo):(so.delete(lo.id),ho.delete(lo.id),go.delete(lo.id),io.add(lo.id),uo&&so.update(uo.id,So=>So.link({next:lo==null?void 0:lo.next})),yo&&so.update(yo.id,So=>So.link({prev:uo==null?void 0:uo.id})),lo===ao&&(ao=yo)),lo=yo}const mo=this.edges.mutate();return this.edges.forEach(yo=>{var So,_o;!io.has(yo.source)&&!io.has(yo.target)&&(!((_o=(So=to.edge)===null||So===void 0?void 0:So.call(to,yo))!==null&&_o!==void 0)||_o)?mo.update(yo.id,ko=>ko.update(updateStatus(replace$2(GraphEdgeStatus.Default)))):(mo.delete(yo.id),deleteEdgeByPort(ho,yo.id,yo.source,yo.sourcePortId),deleteEdgeByPort(go,yo.id,yo.target,yo.targetPortId))}),this.merge({nodes:so.finish(),edges:mo.finish(),head:ao==null?void 0:ao.id,tail:uo==null?void 0:uo.id,edgesBySource:ho.finish(),edgesByTarget:go.finish()})}insertEdge(to){if(this.isEdgeExist(to.source,to.sourcePortId,to.target,to.targetPortId)||!this.nodes.has(to.source)||!this.nodes.has(to.target))return this;const no=setEdgeByPort(this.edgesBySource,to.id,to.source,to.sourcePortId),io=setEdgeByPort(this.edgesByTarget,to.id,to.target,to.targetPortId);return this.merge({nodes:this.nodes.update(to.source,so=>so.invalidCache()).update(to.target,so=>so.invalidCache()),edges:this.edges.set(to.id,EdgeModel.fromJSON(to)).map(so=>so.updateStatus(replace$2(GraphEdgeStatus.Default))),edgesBySource:no,edgesByTarget:io})}updateEdge(to,no){return this.merge({edges:this.edges.update(to,io=>io.update(no))})}deleteEdge(to){const no=this.edges.get(to);return no?this.merge({edges:this.edges.delete(to),edgesBySource:deleteEdgeByPort(this.edgesBySource,no.id,no.source,no.sourcePortId),edgesByTarget:deleteEdgeByPort(this.edgesByTarget,no.id,no.target,no.targetPortId)}):this}updateNodesPositionAndSize(to){const no=new Set,io=this.nodes.mutate(),so=this.edges.mutate();return to.forEach(ao=>{var lo,uo;no.add(ao.id),io.update(ao.id,ho=>ho.updatePositionAndSize(ao)),(lo=this.edgesBySource.get(ao.id))===null||lo===void 0||lo.forEach(ho=>{ho.forEach(go=>{markEdgeDirty(so,go)})}),(uo=this.edgesByTarget.get(ao.id))===null||uo===void 0||uo.forEach(ho=>{ho.forEach(go=>{markEdgeDirty(so,go)})})}),this.merge({nodes:io.finish(),edges:so.finish()})}mapNodes(to){return this.merge({nodes:this.nodes.map(to)})}mapEdges(to){return this.merge({edges:this.edges.map(to)})}selectNodes(to,no){const io=new Set,so=this.nodes.map(uo=>{const ho=to(uo.inner);return ho&&io.add(uo.id),uo.updatePorts(updateStatus(replace$2(GraphPortStatus.Default))).updateStatus(resetConnectStatus(ho?GraphNodeStatus.Selected:GraphNodeStatus.UnconnectedToSelected))}).mutate();if(io.size===0)this.nodes.forEach(uo=>so.update(uo.id,ho=>ho.updateStatus(replace$2(GraphNodeStatus.Default))));else if(no){const uo=so.get(no);uo&&(so.delete(no),so.set(uo.id,uo))}const ao=uo=>{so.update(uo,ho=>ho.updateStatus(replace$2(isSelected(ho)?GraphNodeStatus.Selected:GraphNodeStatus.ConnectedToSelected)))},lo=io.size?this.edges.map(uo=>{let ho=GraphEdgeStatus.UnconnectedToSelected;return io.has(uo.source)&&(ao(uo.target),ho=GraphEdgeStatus.ConnectedToSelected),io.has(uo.target)&&(ao(uo.source),ho=GraphEdgeStatus.ConnectedToSelected),uo.updateStatus(replace$2(ho))}):this.edges.map(uo=>uo.updateStatus(replace$2(GraphEdgeStatus.Default)));return this.merge({nodes:so.finish(),edges:lo,selectedNodes:io})}getEdgesBySource(to,no){var io;return(io=this.edgesBySource.get(to))===null||io===void 0?void 0:io.get(no)}getEdgesByTarget(to,no){var io;return(io=this.edgesByTarget.get(to))===null||io===void 0?void 0:io.get(no)}isPortConnectedAsSource(to,no){var io,so;return((so=(io=this.getEdgesBySource(to,no))===null||io===void 0?void 0:io.size)!==null&&so!==void 0?so:0)>0}isPortConnectedAsTarget(to,no){var io,so;return((so=(io=this.getEdgesByTarget(to,no))===null||io===void 0?void 0:io.size)!==null&&so!==void 0?so:0)>0}shallow(){return this.merge({})}toJSON(){const to=[];let no=this.head&&this.nodes.get(this.head);for(;no;)to.push(no.inner),no=no.next&&this.nodes.get(no.next);const io=Array.from(this.edges.values()).map(so=>so.inner);return{nodes:to,edges:io}}isEdgeExist(to,no,io,so){const ao=this.getEdgesBySource(to,no),lo=this.getEdgesByTarget(io,so);if(!ao||!lo)return!1;let uo=!1;return ao.forEach(ho=>{lo.has(ho)&&(uo=!0)}),uo}merge(to){var no,io,so,ao,lo,uo,ho,go;return new GraphModel({nodes:(no=to.nodes)!==null&&no!==void 0?no:this.nodes,edges:(io=to.edges)!==null&&io!==void 0?io:this.edges,groups:(so=to.groups)!==null&&so!==void 0?so:this.groups,head:(ao=to.head)!==null&&ao!==void 0?ao:this.head,tail:(lo=to.tail)!==null&&lo!==void 0?lo:this.tail,edgesBySource:(uo=to.edgesBySource)!==null&&uo!==void 0?uo:this.edgesBySource,edgesByTarget:(ho=to.edgesByTarget)!==null&&ho!==void 0?ho:this.edgesByTarget,selectedNodes:(go=to.selectedNodes)!==null&&go!==void 0?go:this.selectedNodes})}}function setEdgeByPort(eo,to,no,io){return eo.has(no)?eo.update(no,so=>{const ao=so.get(io);return new Map(so).set(io,(ao?new Set(ao):new Set).add(to))}):eo.set(no,new Map([[io,new Set([to])]]))}function setEdgeByPortMutable(eo,to,no,io){eo.has(no)?eo.update(no,so=>{let ao=so.get(io);return ao||(ao=new Set,so.set(io,ao)),ao.add(to),so}):eo.set(no,new Map([[io,new Set([to])]]))}function deleteEdgeByPort(eo,to,no,io){return eo.has(no)?eo.update(no,so=>{const ao=so.get(io);if(!ao)return so;const lo=new Set(ao);return lo.delete(to),new Map(so).set(io,lo)}):eo}var CanvasMouseMode;(function(eo){eo.Pan="Pan",eo.Select="Select"})(CanvasMouseMode||(CanvasMouseMode={}));var GraphBehavior;(function(eo){eo.Default="default",eo.Dragging="dragging",eo.Panning="panning",eo.MultiSelect="multiSelect",eo.Connecting="connecting",eo.AddingNode="addingNode"})(GraphBehavior||(GraphBehavior={}));function clamp$1(eo,to,no){return eo>no?eo:to{const no=eo.maxXto.maxX,so=eo.minY>to.maxY,ao=eo.maxY{const{minX:no,minY:io,maxX:so,maxY:ao}=eo,{x:lo,y:uo}=to;return lo>no&&loio&&uoeo===no?()=>Number.MAX_SAFE_INTEGER:so=>(io-to)/(no-eo)*so+(to*no-io*eo)/(no-eo),shallowEqual=(eo,to)=>{if(!eo||eo.length!==to.length)return!1;for(let no=0;no{const ao=to?Array.isArray(to)?to:to.apply(void 0,so):so;return shallowEqual(no,ao)||(no=ao,io=eo.apply(void 0,so)),io}}var Direction$2;(function(eo){eo[eo.X=0]="X",eo[eo.Y=1]="Y",eo[eo.XY=2]="XY"})(Direction$2||(Direction$2={}));const isViewportComplete=eo=>!!eo.rect,getNodeRect=(eo,to)=>{const{x:no,y:io}=eo,{width:so,height:ao}=getNodeSize(eo,to);return{x:no,y:io,width:so,height:ao}},isNodeVisible=(eo,to,no)=>isRectVisible(getNodeRect(eo,no),to),isRectVisible=(eo,to)=>{const{x:no,y:io,width:so,height:ao}=eo;return isPointVisible({x:no,y:io},to)||isPointVisible({x:no+so,y:io},to)||isPointVisible({x:no+so,y:io+ao},to)||isPointVisible({x:no,y:io+ao},to)},isPointVisible=(eo,to)=>{const{x:no,y:io}=getContainerClientPoint(eo.x,eo.y,to),{height:so,width:ao}=to.rect;return no>0&&no0&&io{const io=[];return eo.forEach(so=>{isNodeVisible(so,to,no)&&io.push(so.inner)}),io},getRenderedNodes=(eo,to)=>{const no=[],io=getRenderedArea(to);return eo.forEach(so=>{isNodeInRenderedArea(so,io)&&no.push(so.inner)}),no},isNodeInRenderedArea=(eo,to)=>isPointInRect(to,eo),getRenderedArea=eo=>{if(!isViewportComplete(eo))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:to,transformMatrix:no}=eo,io=0,so=0,ao=to.width,lo=to.height,uo=reverseTransformPoint(io-to.width,so-to.height,no),ho=reverseTransformPoint(ao+to.width,lo+to.height,no);return{minX:uo.x,minY:uo.y,maxX:ho.x,maxY:ho.y}},normalizeSpacing=eo=>eo?typeof eo=="number"?{top:eo,right:eo,bottom:eo,left:eo}:Object.assign({top:0,right:0,bottom:0,left:0},eo):{top:0,right:0,bottom:0,left:0},zoomTo=({scale:eo,anchor:to,direction:no,limitScale:io})=>so=>{const ao=io(eo)/so.transformMatrix[0],lo=io(eo)/so.transformMatrix[3],{x:uo,y:ho}=to,go=uo*(1-ao),mo=ho*(1-lo);let yo;switch(no){case Direction$2.X:yo=[eo,0,0,so.transformMatrix[3],so.transformMatrix[4]*ao+go,so.transformMatrix[5]];break;case Direction$2.Y:yo=[so.transformMatrix[0],0,0,eo,so.transformMatrix[4],so.transformMatrix[5]*lo+mo];break;case Direction$2.XY:default:yo=[eo,0,0,eo,so.transformMatrix[4]*ao+go,so.transformMatrix[5]*lo+mo]}return Object.assign(Object.assign({},so),{transformMatrix:yo})},zoom=({scale:eo,anchor:to,direction:no,limitScale:io})=>eo===1?identical:so=>{let ao;switch(no){case Direction$2.X:return zoomTo({anchor:to,direction:no,limitScale:io,scale:so.transformMatrix[0]*eo})(so);case Direction$2.Y:return zoomTo({anchor:to,direction:no,limitScale:io,scale:so.transformMatrix[3]*eo})(so);case Direction$2.XY:default:{const lo=io(so.transformMatrix[0]*eo),uo=io(so.transformMatrix[3]*eo),ho=lo/so.transformMatrix[0],go=uo/so.transformMatrix[3],{x:mo,y:yo}=to,So=mo*(1-ho),_o=yo*(1-go);ao=[lo,0,0,uo,so.transformMatrix[4]*ho+So,so.transformMatrix[5]*go+_o]}}return Object.assign(Object.assign({},so),{transformMatrix:ao})},pan=(eo,to)=>eo===0&&to===0?identical:no=>Object.assign(Object.assign({},no),{transformMatrix:[no.transformMatrix[0],no.transformMatrix[1],no.transformMatrix[2],no.transformMatrix[3],no.transformMatrix[4]+eo,no.transformMatrix[5]+to]}),minimapPan=(eo,to)=>eo===0&&to===0?identical:no=>{const[io,so,ao,lo]=no.transformMatrix;return Object.assign(Object.assign({},no),{transformMatrix:[io,so,ao,lo,no.transformMatrix[4]+io*eo+so*to,no.transformMatrix[5]+ao*eo+lo*to]})},getContentArea$1=(eo,to,no)=>{let io=1/0,so=1/0,ao=1/0,lo=1/0,uo=-1/0,ho=-1/0;return(no===void 0?So=>eo.nodes.forEach(So):So=>no==null?void 0:no.forEach(_o=>{const ko=eo.nodes.get(_o);ko&&So(ko)}))(So=>{const{width:_o,height:ko}=getNodeSize(So,to);So.xuo&&(uo=So.x+_o),So.y+ko>ho&&(ho=So.y+ko),_o{let{width:no,height:io}=eo,{width:so,height:ao}=to;if(no>so){const lo=no;no=so,so=lo}if(io>ao){const lo=io;io=ao,ao=lo}return{nodeMinVisibleWidth:no,nodeMinVisibleHeight:io,nodeMaxVisibleWidth:so,nodeMaxVisibleHeight:ao}},getScaleRange=(eo,{width:to,height:no})=>{const{nodeMinVisibleWidth:io,nodeMinVisibleHeight:so,nodeMaxVisibleWidth:ao,nodeMaxVisibleHeight:lo}=normalizeNodeVisibleMinMax(eo);let uo=0,ho=0,go=1/0,mo=1/0;return to&&(uo=io/to,go=ao/to),no&&(ho=so/no,mo=lo/no),{minScaleX:uo,minScaleY:ho,maxScaleX:go,maxScaleY:mo}},getZoomFitMatrix=eo=>{const{data:to,graphConfig:no,disablePan:io,direction:so,rect:ao}=eo,{nodes:lo}=to;if(lo.size===0)return[1,0,0,1,0,0];const{minNodeWidth:uo,minNodeHeight:ho,minNodeX:go,minNodeY:mo,maxNodeX:yo,maxNodeY:So}=getContentArea$1(to,no),{minScaleX:_o,minScaleY:ko,maxScaleX:Co,maxScaleY:$o}=getScaleRange(eo,{width:uo,height:ho}),Ro=normalizeSpacing(eo.spacing),{width:Oo,height:No}=ao,Mo=Oo/(yo-go+Ro.left+Ro.right),Bo=No/(So-mo+Ro.top+Ro.bottom),Po=so===Direction$2.Y?Math.min(Math.max(_o,ko,Bo),Co,$o):Math.min(Math.max(_o,ko,Math.min(Mo,Bo)),$o,$o),Lo=so===Direction$2.XY?Math.min(Math.max(_o,Mo),Co):Po,Go=so===Direction$2.XY?Math.min(Math.max(ko,Bo),$o):Po;if(io)return[Lo,0,0,Go,0,0];const Do=-Lo*(go-Ro.left),Uo=-Go*(mo-Ro.top);if(getVisibleNodes(to.nodes,{rect:ao,transformMatrix:[Lo,0,0,Go,Do,Uo]},no).length>0)return[Lo,0,0,Go,Do,Uo];let Yo=to.nodes.first();return Yo&&to.nodes.forEach(qo=>{Yo.y>qo.y&&(Yo=qo)}),[Lo,0,0,Go,-Lo*(Yo.x-Ro.left),-Go*(Yo.y-Ro.top)]},focusArea=(eo,to,no,io,so)=>{const ao=no-eo,lo=io-to,uo=Math.min(so.rect.width/ao,so.rect.height/lo),ho=-uo*(eo+ao/2)+so.rect.width/2,go=-uo*(to+lo/2)+so.rect.height/2;return Object.assign(Object.assign({},so),{transformMatrix:[uo,0,0,uo,ho,go]})};function getRelativePoint(eo,to){const no=to.clientX-eo.left,io=to.clientY-eo.top;return{x:no,y:io}}const scrollIntoView$3=(eo,to,no,io,so)=>{if(!no)return identical;const{width:ao,height:lo}=no;return!(eo<0||eo>ao||to<0||to>lo)&&!io?identical:ho=>{const go=so?so.x-eo:ao/2-eo,mo=so?so.y-to:lo/2-to;return Object.assign(Object.assign({},ho),{transformMatrix:[ho.transformMatrix[0],ho.transformMatrix[1],ho.transformMatrix[2],ho.transformMatrix[3],ho.transformMatrix[4]+go,ho.transformMatrix[5]+mo]})}},getScaleLimit=(eo,to)=>{const{minNodeWidth:no,minNodeHeight:io}=getContentArea$1(eo,to.graphConfig),{minScaleX:so,minScaleY:ao}=getScaleRange(to,{width:no,height:io});return Math.max(so,ao)},getContentArea=memoize$4(getContentArea$1),getOffsetLimit=({data:eo,graphConfig:to,rect:no,transformMatrix:io,canvasBoundaryPadding:so,groupPadding:ao})=>{var lo,uo,ho,go;const mo=getContentArea(eo,to),yo=getClientDeltaByPointDelta(mo.minNodeX-((ao==null?void 0:ao.left)||0),mo.minNodeY-((ao==null?void 0:ao.top)||0),io);yo.x-=(lo=so==null?void 0:so.left)!==null&&lo!==void 0?lo:0,yo.y-=(uo=so==null?void 0:so.top)!==null&&uo!==void 0?uo:0;const So=getClientDeltaByPointDelta(mo.maxNodeX+((ao==null?void 0:ao.right)||0),mo.maxNodeY+((ao==null?void 0:ao.bottom)||0),io);So.x+=(ho=so==null?void 0:so.right)!==null&&ho!==void 0?ho:0,So.y+=(go=so==null?void 0:so.bottom)!==null&&go!==void 0?go:0;let _o=-yo.x||0,ko=-yo.y||0,Co=no.width-So.x||0,$o=no.height-So.y||0;if(Co<_o){const Ro=Co;Co=_o,_o=Ro}if($o({present:to,past:{next:eo.past,value:no(eo.present)},future:null}),undo$4=eo=>eo.past?{present:eo.past.value,past:eo.past.next,future:{next:eo.future,value:eo.present}}:eo,redo$1=eo=>eo.future?{present:eo.future.value,past:{next:eo.past,value:eo.present},future:eo.future.next}:eo,resetUndoStack=eo=>({present:eo,future:null,past:null}),EMPTY_TRANSFORM_MATRIX=[1,0,0,1,0,0],EMPTY_GAP={top:0,right:0,bottom:0,left:0},DEFAULT_NODE_MIN_VISIBLE_SIZE={width:NODE_MIN_VISIBLE_LENGTH,height:NODE_MIN_VISIBLE_LENGTH},DEFAULT_NODE_MAX_VISIBLE_SIZE={width:NODE_MAX_VISIBLE_LENGTH,height:NODE_MAX_VISIBLE_LENGTH},DEFAULT_GRAPH_SETTINGS={features:defaultFeatures,graphConfig:GraphConfigBuilder.default().build(),canvasBoundaryPadding:EMPTY_GAP,nodeMinVisibleSize:DEFAULT_NODE_MIN_VISIBLE_SIZE,nodeMaxVisibleSize:DEFAULT_NODE_MAX_VISIBLE_SIZE},EMPTY_GRAPH_STATE=createGraphState({});function createGraphState(eo){const{data:to,transformMatrix:no,settings:io}=eo;return{settings:Object.assign(Object.assign({},DEFAULT_GRAPH_SETTINGS),io),data:resetUndoStack(to??GraphModel.empty()),viewport:{rect:void 0,transformMatrix:no??EMPTY_TRANSFORM_MATRIX},behavior:GraphBehavior.Default,dummyNodes:emptyDummyNodes(),alignmentLines:[],activeKeys:new Set,selectBoxPosition:emptySelectBoxPosition(),connectState:void 0}}const EMPTY_CONNECT_STATE={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0,movingPoint:{x:0,y:0}};new Proxy(GraphModel.empty(),{get:(eo,to)=>(console.warn("Default graph data value is being used. Please check if you forget rendering Graph component"),Reflect.get(eo,to))});const SlotsContext=reactExports.createContext({});class EventChannel{constructor(){this.listenersRef=reactExports.createRef(),this.externalHandlerRef=reactExports.createRef(),this.queue=[],this.working=!1}trigger(to){this.working?this.queue.push(to):(this.working=!0,reactDomExports.unstable_batchedUpdates(()=>{this.callHandlers(to);for(let no=0;no{this.dispatchDelegate(io,so)},this.state=to,this.UNSAFE_latestState=to,this.dispatchDelegate=no}setMouseClientPosition(to){this.mouseClientPoint=to}unsetMouseClientPosition(){this.mouseClientPoint=void 0}getMouseClientPosition(){return this.mouseClientPoint}getEnabledFeatures(){return this.state.settings.features}getBehavior(){return this.behavior}setBehavior(to){this.behavior=to}getData(){return this.state.data.present}getGlobalEventTarget(){var to,no;return(no=(to=this.getGlobalEventTargetDelegate)===null||to===void 0?void 0:to.call(this))!==null&&no!==void 0?no:window}}const noop$7=()=>{},EMPTY_CONNECT_CONTEXT={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0},ConnectingStateContext=reactExports.createContext(EMPTY_CONNECT_CONTEXT);ConnectingStateContext.displayName="ConnectingStateContext";const AlignmentLinesContext=reactExports.createContext([]),GraphControllerContext=reactExports.createContext(new GraphController(EMPTY_GRAPH_STATE,noop$7));var GraphNodeEvent;(function(eo){eo.Click="[Node]Click",eo.DoubleClick="[Node]DoubleClick",eo.MouseDown="[Node]MouseDown",eo.MouseUp="[Node]MouseUp",eo.MouseEnter="[Node]MouseEnter",eo.MouseLeave="[Node]MouseLeave",eo.MouseOver="[Node]MouseOver",eo.MouseOut="[Node]MouseOut",eo.MouseMove="[Node]MouseMove",eo.ContextMenu="[Node]ContextMenu",eo.Drag="[Node]Drag",eo.DragStart="[Node]DragStart",eo.DragEnd="[Node]DragEnd",eo.PointerDown="[Node]PointerDown",eo.PointerEnter="[Node]PointerEnter",eo.PointerMove="[Node]PointerMove",eo.PointerLeave="[Node]PointerLeave",eo.PointerUp="[Node]PointerUp",eo.Resizing="[Node]Resizing",eo.ResizingStart="[Node]ResizingStart",eo.ResizingEnd="[Node]ResizingEnd",eo.KeyDown="[Node]KeyDown",eo.Select="[Node]Select",eo.SelectAll="[Node]SelectAll",eo.Centralize="[Node]Centralize",eo.Locate="[Node]Locate",eo.Add="[Node]Add"})(GraphNodeEvent||(GraphNodeEvent={}));var GraphEdgeEvent;(function(eo){eo.Click="[Edge]Click",eo.DoubleClick="[Edge]DoubleClick",eo.MouseEnter="[Edge]MouseEnter",eo.MouseLeave="[Edge]MouseLeave",eo.MouseOver="[Edge]MouseOver",eo.MouseOut="[Edge]MouseOut",eo.MouseMove="[Edge]MouseMove",eo.MouseDown="[Edge]MouseDown",eo.MouseUp="[Edge]MouseUp",eo.ContextMenu="[Edge]ContextMenu",eo.ConnectStart="[Edge]ConnectStart",eo.ConnectMove="[Edge]ConnectMove",eo.ConnectEnd="[Edge]ConnectEnd",eo.ConnectNavigate="[Edge]ConnectNavigate",eo.Add="[Edge]Add"})(GraphEdgeEvent||(GraphEdgeEvent={}));var GraphPortEvent;(function(eo){eo.Click="[Port]Click",eo.DoubleClick="[Port]DoubleClick",eo.MouseDown="[Port]MouseDown",eo.PointerDown="[Port]PointerDown",eo.PointerUp="[Port]PointerUp",eo.PointerEnter="[Port]PointerEnter",eo.PointerLeave="[Port]PointerLeave",eo.MouseUp="[Port]MouseUp",eo.MouseEnter="[Port]MouseEnter",eo.MouseLeave="[Port]MouseLeave",eo.MouseOver="[Port]MouseOver",eo.MouseOut="[Port]MouseOut",eo.MouseMove="[Port]MouseMove",eo.ContextMenu="[Port]ContextMenu",eo.KeyDown="[Port]KeyDown",eo.Focus="[Port]Focus",eo.Blur="[Port]Blur"})(GraphPortEvent||(GraphPortEvent={}));var GraphCanvasEvent;(function(eo){eo.Click="[Canvas]Click",eo.DoubleClick="[Canvas]DoubleClick",eo.MouseDown="[Canvas]MouseDown",eo.MouseUp="[Canvas]MouseUp",eo.MouseEnter="[Canvas]MouseEnter",eo.MouseLeave="[Canvas]MouseLeave",eo.MouseOver="[Canvas]MouseOver",eo.MouseOut="[Canvas]MouseOut",eo.MouseMove="[Canvas]MouseMove",eo.ContextMenu="[Canvas]ContextMenu",eo.DragStart="[Canvas]DragStart",eo.Drag="[Canvas]Drag",eo.DragEnd="[Canvas]DragEnd",eo.Pan="[Canvas]Pan",eo.Focus="[Canvas]Focus",eo.Blur="[Canvas]Blur",eo.Zoom="[Canvas]Zoom",eo.Pinch="[Canvas]Pinch",eo.KeyDown="[Canvas]KeyDown",eo.KeyUp="[Canvas]KeyUp",eo.SelectStart="[Canvas]SelectStart",eo.SelectMove="[Canvas]SelectMove",eo.SelectEnd="[Canvas]SelectEnd",eo.UpdateNodeSelectionBySelectBox="[Canvas]UpdateNodeSelectionBySelectBox",eo.MouseWheelScroll="[Canvas]MouseWheelScroll",eo.DraggingNodeFromItemPanel="[Canvas]DraggingNodeFromItemPanel",eo.DraggingNodeFromItemPanelStart="[Canvas]DraggingNodeFromItemPanelStart",eo.DraggingNodeFromItemPanelEnd="[Canvas]DraggingNodeFromItemPanelEnd",eo.ViewportResize="[Canvas]ViewportResize",eo.Navigate="[Canvas]Navigate",eo.VirtualizationRecalculated="[Canvas]VirtualizationRecalculated",eo.ResetSelection="[Canvas]ResetSelection",eo.Copy="[Canvas]Copy",eo.Paste="[Canvas]Paste",eo.Delete="[Canvas]Delete",eo.Undo="[Canvas]Undo",eo.Redo="[Canvas]Redo",eo.ScrollIntoView="[Canvas]ScrollIntoView",eo.ResetUndoStack="[Canvas]ResetUndoStack",eo.ResetViewport="[Canvas]ResetViewport",eo.ZoomTo="[Canvas]ZoomTo",eo.ZoomToFit="[Canvas]ZoomToFit",eo.SetData="[Canvas]SetData",eo.UpdateData="[Canvas]UpdateData",eo.ScrollTo="[Canvas]ScrollTo",eo.UpdateSettings="[Canvas]UpdateSettings"})(GraphCanvasEvent||(GraphCanvasEvent={}));var GraphScrollBarEvent;(function(eo){eo.ScrollStart="[ScrollBar]ScrollStart",eo.Scroll="[ScrollBar]Scroll",eo.ScrollEnd="[ScrollBar]ScrollEnd"})(GraphScrollBarEvent||(GraphScrollBarEvent={}));var GraphMinimapEvent;(function(eo){eo.PanStart="[Minimap]PanStart",eo.Pan="[Minimap]Pan",eo.PanEnd="[Minimap]PanEnd",eo.Click="[Minimap]Click"})(GraphMinimapEvent||(GraphMinimapEvent={}));var GraphContextMenuEvent;(function(eo){eo.Open="[ContextMenu]Open",eo.Close="[ContextMenu]Close"})(GraphContextMenuEvent||(GraphContextMenuEvent={}));function getScrollLineHeight(){try{const eo=document.createElement("iframe");eo.src="#",document.body.appendChild(eo);const{contentDocument:to}=eo;if(!to)throw new Error("Fail to create iframe");to.documentElement.innerHTML=purify$1.sanitize("a",{RETURN_TRUSTED_TYPE:!0});const io=to.body.firstElementChild.offsetHeight;return document.body.removeChild(eo),io}catch(eo){return Debug.error("failed to calculate scroll line height",eo),16}}getScrollLineHeight();const EMPTY_RECT={height:0,width:0,x:0,y:0,bottom:0,left:0,right:0,top:0,toJSON(){return this}},VirtualizationContext=reactExports.createContext({viewport:{rect:EMPTY_RECT,transformMatrix:EMPTY_TRANSFORM_MATRIX},renderedArea:{minX:0,minY:0,maxX:0,maxY:0},visibleArea:{minX:0,minY:0,maxX:0,maxY:0},renderedNodes:new Set,renderedEdges:new Set,timestamp:0});function useGraphConfig(){return reactExports.useContext(GraphConfigContext)}function useGraphController(){return reactExports.useContext(GraphControllerContext)}function useAlignmentLines(){return reactExports.useContext(AlignmentLinesContext)}function useConnectingState(){return reactExports.useContext(ConnectingStateContext)}function useVirtualization(){return reactExports.useContext(VirtualizationContext)}function makeScheduledCallback(eo,to,no){let io=!1,so,ao;const lo=(...uo)=>{so=uo,io||(io=!0,ao=to(()=>{io=!1,reactDomExports.unstable_batchedUpdates(()=>{eo.apply(null,so)})}))};return lo.cancel=()=>{no(ao)},lo}const animationFramed=eo=>makeScheduledCallback(eo,requestAnimationFrame,cancelAnimationFrame);class DragController{constructor(to,no){this.onMove=noop$7,this.onEnd=noop$7,this.lastEvent=null,this.startX=0,this.startY=0,this.prevClientX=0,this.prevClientY=0,this.onMouseUp=io=>{this.lastEvent=io,this.doOnMouseUp(io),this.lastEvent=null},this.onMouseMove=io=>{this.lastEvent=io,io.preventDefault(),this.mouseMove(io)},this.eventProvider=to,this.getPositionFromEvent=no,this.mouseMove=animationFramed(io=>{this.doOnMouseMove(io)})}start(to){this.lastEvent=to;const{x:no,y:io}=this.getPositionFromEvent(to);this.startX=no,this.startY=io,this.prevClientX=no,this.prevClientY=io,this.eventProvider.on("move",this.onMouseMove),this.eventProvider.on("end",this.onMouseUp)}stop(){this.mouseMove.cancel(),this.eventProvider.off("move",this.onMouseMove),this.eventProvider.off("end",this.onMouseUp)}getDelta(to,no){const io=to-this.prevClientX,so=no-this.prevClientY;return this.prevClientX=to,this.prevClientY=no,{x:io,y:so}}getTotalDelta(to){const no=to.clientX-this.startX,io=to.clientY-this.startY;return{x:no,y:io}}doOnMouseMove(to){const{x:no,y:io}=this.getPositionFromEvent(to),{x:so,y:ao}=this.getDelta(no,io),{x:lo,y:uo}=this.getTotalDelta(to);this.onMove({clientX:no,clientY:io,dx:so,dy:ao,totalDX:lo,totalDY:uo,e:to})}doOnMouseUp(to){to.preventDefault();const{x:no,y:io}=this.getTotalDelta(to);this.onEnd({totalDX:no,totalDY:io,e:to}),this.stop()}}function defaultGetPositionFromEvent(eo){return{x:eo.clientX,y:eo.clientY}}getBrowser(),BrowserType.Safari;const handleBehaviorChange=(eo,to)=>{switch(to.type){case GraphNodeEvent.DragStart:return GraphBehavior.Dragging;case GraphEdgeEvent.ConnectStart:return GraphBehavior.Connecting;case GraphCanvasEvent.SelectStart:return GraphBehavior.MultiSelect;case GraphCanvasEvent.DragStart:return GraphBehavior.Panning;case GraphCanvasEvent.DraggingNodeFromItemPanelStart:return GraphBehavior.AddingNode;case GraphNodeEvent.DragEnd:case GraphEdgeEvent.ConnectEnd:case GraphCanvasEvent.SelectEnd:case GraphCanvasEvent.DragEnd:case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:return GraphBehavior.Default;default:return eo}},behaviorReducer=(eo,to)=>{const no=handleBehaviorChange(eo.behavior,to);return no===eo.behavior?eo:Object.assign(Object.assign({},eo),{behavior:no})};function __rest(eo,to){var no={};for(var io in eo)Object.prototype.hasOwnProperty.call(eo,io)&&to.indexOf(io)<0&&(no[io]=eo[io]);if(eo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var so=0,io=Object.getOwnPropertySymbols(eo);so{switch(to.type){case GraphCanvasEvent.Paste:{const{position:no}=to;if(!isViewportComplete(eo.viewport))return eo;const{rect:io}=eo.viewport;let so=to.data.nodes;if(no&&io){const lo=getRealPointFromClientPoint(no.x,no.y,eo.viewport);let uo,ho;so=so.map((go,mo)=>(mo===0&&(uo=lo.x-go.x,ho=lo.y-go.y),Object.assign(Object.assign({},go),{x:uo?go.x-COPIED_NODE_SPACING+uo:go.x,y:ho?go.y-COPIED_NODE_SPACING+ho:go.y,state:GraphNodeStatus.Selected})))}let ao=unSelectAllEntity()(eo.data.present);return so.forEach(lo=>{ao=ao.insertNode(lo)}),to.data.edges.forEach(lo=>{ao=ao.insertEdge(lo)}),Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,ao)})}case GraphCanvasEvent.Delete:return eo.settings.features.has(GraphFeatures.Delete)?Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,eo.data.present.deleteItems({node:notSelected,edge:notSelected}),unSelectAllEntity())}):eo;case GraphCanvasEvent.Undo:return Object.assign(Object.assign({},eo),{data:undo$4(eo.data)});case GraphCanvasEvent.Redo:return Object.assign(Object.assign({},eo),{data:redo$1(eo.data)});case GraphCanvasEvent.KeyDown:{const no=to.rawEvent.key.toLowerCase();if(eo.activeKeys.has(no))return eo;const io=new Set(eo.activeKeys);return io.add(no),Object.assign(Object.assign({},eo),{activeKeys:io})}case GraphCanvasEvent.KeyUp:{const no=to.rawEvent.key.toLowerCase();if(!eo.activeKeys.has(no))return eo;const io=new Set(eo.activeKeys);return io.delete(no),Object.assign(Object.assign({},eo),{activeKeys:io})}case GraphCanvasEvent.SetData:return Object.assign(Object.assign({},eo),{data:resetUndoStack(to.data)});case GraphCanvasEvent.UpdateData:return Object.assign(Object.assign({},eo),{data:to.shouldRecord?pushHistory(eo.data,to.updater(eo.data.present)):Object.assign(Object.assign({},eo.data),{present:to.updater(eo.data.present)})});case GraphCanvasEvent.ResetUndoStack:return Object.assign(Object.assign({},eo),{data:resetUndoStack(eo.data.present)});case GraphCanvasEvent.UpdateSettings:{const no=__rest(to,["type"]);return Object.assign(Object.assign({},eo),{settings:Object.assign(Object.assign({},eo.settings),no)})}default:return eo}};function composeReducers(eo){return to=>eo.reduceRight((no,io)=>io(no),to)}const item=(eo=void 0,to=void 0)=>({node:eo,port:to}),getNextItem=(eo,to,no)=>{if(to.ports){const ao=(no?to.ports.findIndex(lo=>lo.id===no.id):-1)+1;if(ao(no,io,so)=>{var ao,lo,uo;let ho=getNextItem(no,io,so);for(;!(((ao=ho.node)===null||ao===void 0?void 0:ao.id)===io.id&&((lo=ho.port)===null||lo===void 0?void 0:lo.id)===(so==null?void 0:so.id));){if(!ho.node)ho=item(no.getNavigationFirstNode());else if(ho.port&&!((uo=eo.getPortConfig(ho.port))===null||uo===void 0)&&uo.getIsConnectable(Object.assign(Object.assign({},to),{data:no,parentNode:ho.node,model:ho.port})))return ho;ho=getNextItem(no,ho.node,ho.port)}return item()};function attachPort(eo,to,no){if(!eo.connectState)return eo;let io=eo.data.present;return io=io.updatePort(to,no,updateStatus(add$1(GraphPortStatus.ConnectingAsTarget))),eo.connectState.targetNode&&eo.connectState.targetPort&&(io=io.updatePort(eo.connectState.targetNode,eo.connectState.targetPort,updateStatus(remove$3(GraphPortStatus.ConnectingAsTarget)))),Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{targetNode:to,targetPort:no}),data:Object.assign(Object.assign({},eo.data),{present:io})})}function clearAttach(eo){if(!eo.connectState)return eo;let to=eo.data.present;const{targetPort:no,targetNode:io}=eo.connectState;return io&&no&&(to=to.updatePort(io,no,updateStatus(remove$3(GraphPortStatus.ConnectingAsTarget)))),Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{targetNode:void 0,targetPort:void 0}),data:Object.assign(Object.assign({},eo.data),{present:to})})}const connectingReducer=(eo,to)=>{var no,io,so;if(!isViewportComplete(eo.viewport))return eo;const{rect:ao}=eo.viewport;switch(to.type){case GraphEdgeEvent.ConnectStart:return Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},EMPTY_CONNECT_STATE),{sourceNode:to.nodeId,sourcePort:to.portId,movingPoint:to.clientPoint?{x:to.clientPoint.x-ao.left,y:to.clientPoint.y-ao.top}:void 0}),data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.nodeId,to.portId,updateStatus(add$1(GraphPortStatus.Connecting)))})});case GraphEdgeEvent.ConnectMove:return eo.connectState?Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{movingPoint:{x:to.clientX-ao.left,y:to.clientY-ao.top}})}):eo;case GraphEdgeEvent.ConnectEnd:if(eo.connectState){const{edgeWillAdd:lo,isCancel:uo}=to,{sourceNode:ho,sourcePort:go,targetNode:mo,targetPort:yo}=eo.connectState;let So=eo.data.present;if(So=So.updatePort(ho,go,updateStatus(replace$2(GraphPortStatus.Default))),!uo&&mo&&yo){let _o={source:ho,sourcePortId:go,target:mo,targetPortId:yo,id:v4(),status:GraphEdgeStatus.Default};return lo&&(_o=lo(_o,So)),So=So.insertEdge(_o).updatePort(mo,yo,updateStatus(replace$2(GraphPortStatus.Default))),Object.assign(Object.assign({},eo),{connectState:void 0,data:pushHistory(eo.data,So,unSelectAllEntity())})}return Object.assign(Object.assign({},eo),{connectState:void 0,data:Object.assign(Object.assign({},eo.data),{present:So})})}return eo;case GraphEdgeEvent.ConnectNavigate:if(eo.connectState){const lo=eo.data.present,uo=lo.nodes.get(eo.connectState.sourceNode),ho=uo==null?void 0:uo.getPort(eo.connectState.sourcePort),go=eo.connectState.targetNode?lo.nodes.get(eo.connectState.targetNode):void 0,mo=eo.connectState.targetPort?go==null?void 0:go.getPort(eo.connectState.targetPort):void 0;if(!uo||!ho)return eo;const yo=nextConnectablePort(eo.settings.graphConfig,{anotherNode:uo,anotherPort:ho})(lo,go||uo,mo);return!yo.node||!yo.port||yo.node.id===uo.id&&yo.port.id===ho.id?eo:attachPort(eo,yo.node.id,yo.port.id)}return eo;case GraphPortEvent.PointerEnter:if(eo.connectState){const{sourceNode:lo,sourcePort:uo}=eo.connectState,ho=eo.data.present,go=ho.nodes.get(to.node.id),mo=go==null?void 0:go.getPort(to.port.id),yo=ho.nodes.get(lo),So=yo==null?void 0:yo.getPort(uo);if(go&&mo&&yo&&So&&isConnectable(eo.settings.graphConfig,{parentNode:go,model:mo,data:ho,anotherPort:So,anotherNode:yo}))return attachPort(eo,go.id,mo.id)}return eo;case GraphNodeEvent.PointerEnter:case GraphNodeEvent.PointerMove:if(eo.connectState){const{clientX:lo,clientY:uo}=to.rawEvent,{sourceNode:ho,sourcePort:go}=eo.connectState,mo=eo.data.present,yo=mo.nodes.get(to.node.id),So=mo.nodes.get(ho),_o=So==null?void 0:So.getPort(go);if(yo&&So&&_o){const ko=getNearestConnectablePort({parentNode:yo,clientX:lo,clientY:uo,graphConfig:eo.settings.graphConfig,data:eo.data.present,viewport:eo.viewport,anotherPort:_o,anotherNode:So});return ko?attachPort(eo,yo.id,ko.id):eo}}return eo;case GraphNodeEvent.PointerLeave:return((no=eo.connectState)===null||no===void 0?void 0:no.targetNode)===to.node.id?clearAttach(eo):eo;case GraphPortEvent.PointerLeave:return((io=eo.connectState)===null||io===void 0?void 0:io.targetNode)===to.node.id&&((so=eo.connectState)===null||so===void 0?void 0:so.targetPort)===to.port.id?clearAttach(eo):eo;default:return eo}},contextMenuReducer=(eo,to)=>{let no=eo.contextMenuPosition;switch(to.type){case GraphCanvasEvent.ContextMenu:case GraphNodeEvent.ContextMenu:case GraphEdgeEvent.ContextMenu:case GraphPortEvent.ContextMenu:{const io=to.rawEvent;io.button===MouseEventButton.Secondary&&(no={x:io.clientX,y:io.clientY})}break;case GraphCanvasEvent.Click:case GraphNodeEvent.Click:case GraphEdgeEvent.Click:case GraphPortEvent.Click:no=void 0;break;case GraphContextMenuEvent.Open:no={x:to.x,y:to.y};break;case GraphContextMenuEvent.Close:no=void 0;break}return eo.contextMenuPosition===no?eo:Object.assign(Object.assign({},eo),{contextMenuPosition:no})},edgeReducer=(eo,to)=>{switch(to.type){case GraphEdgeEvent.DoubleClick:return eo.settings.features.has(GraphFeatures.EditEdge)?Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(replace$2(GraphEdgeStatus.Editing)))})}):eo;case GraphEdgeEvent.MouseEnter:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(add$1(GraphEdgeStatus.Activated)))})});case GraphEdgeEvent.MouseLeave:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(remove$3(GraphEdgeStatus.Activated)))})});case GraphEdgeEvent.Click:case GraphEdgeEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(eo.data.present).updateEdge(to.edge.id,updateStatus(add$1(GraphEdgeStatus.Selected)))})});case GraphEdgeEvent.Add:return Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,eo.data.present.insertEdge(to.edge))});default:return eo}},getAlignmentLines=(eo,to,no,io=2)=>{const so=getDummyDraggingNode(eo),ao=getClosestNodes(so,eo,to,no,io);return getLines(so,ao,eo.length)},getAutoAlignDisplacement=(eo,to,no,io)=>{let so=1/0,ao=0;const lo=getDummyDraggingNode(to),uo=io==="x"?lo.width||0:lo.height||0;return eo.forEach(ho=>{let go;if(io==="x"&&ho.x1===ho.x2)go=ho.x1;else if(io==="y"&&ho.y1===ho.y2)go=ho.y1;else return;const mo=lo[io]-go,yo=lo[io]+(uo||0)/2-go,So=lo[io]+(uo||0)-go;Math.abs(mo)0?-so:so),Math.abs(yo)0?-so:so),Math.abs(So)0?-so:so)}),ao},getMinCoordinate=(eo,to)=>{if(eo.length)return Math.min(...eo.map(no=>no[to]))},getMaxCoordinate=(eo,to)=>{if(eo.length)return Math.max(...eo.map(no=>no[to]+(to==="y"?no.height||0:no.width||0)))},setSizeForNode=(eo,to)=>Object.assign(Object.assign({},eo),getNodeSize(eo,to)),getBoundingBoxOfNodes=eo=>{let to=1/0,no=1/0,io=-1/0,so=-1/0;return eo.forEach(ao=>{const lo=ao.x,uo=ao.y,ho=ao.x+(ao.width||0),go=ao.y+(ao.height||0);loio&&(io=ho),go>so&&(so=go)}),{x:to,y:no,width:io-to,height:so-no}},getDummyDraggingNode=eo=>{const{x:to,y:no,width:io,height:so}=getBoundingBoxOfNodes(eo);return{id:v4(),x:to,y:no,width:io,height:so}},getClosestNodes=(eo,to,no,io,so=2)=>{const ao=[],lo=[],{x:uo,y:ho,width:go=0,height:mo=0}=eo;let yo=so,So=so;return no.forEach(_o=>{if(to.find(Ro=>Ro.id===_o.id))return;const ko=setSizeForNode(_o,io),{width:Co=0,height:$o=0}=ko;[uo,uo+go/2,uo+go].forEach((Ro,Oo)=>{ao[Oo]||(ao[Oo]={}),ao[Oo].closestNodes||(ao[Oo].closestNodes=[]),[ko.x,ko.x+Co/2,ko.x+Co].forEach(No=>{var Mo;const Bo=Math.abs(Ro-No);Bo<=yo&&((Mo=ao[Oo].closestNodes)===null||Mo===void 0||Mo.push(ko),ao[Oo].alignCoordinateValue=No,yo=Bo)})}),[ho,ho+mo/2,ho+mo].forEach((Ro,Oo)=>{lo[Oo]||(lo[Oo]={}),lo[Oo].closestNodes||(lo[Oo].closestNodes=[]),[ko.y,ko.y+$o/2,ko.y+$o].forEach(No=>{var Mo;const Bo=Math.abs(Ro-No);Bo<=So&&((Mo=lo[Oo].closestNodes)===null||Mo===void 0||Mo.push(ko),lo[Oo].alignCoordinateValue=No,So=Bo)})})}),{closestX:ao,closestY:lo}},getLines=(eo,to,no=1)=>{const io=[],so=[],ao=to.closestX,lo=to.closestY;return ao.forEach((uo,ho)=>{var go;if(uo.alignCoordinateValue===void 0||ho===1&&(io.length||no>1))return;const mo=[],yo=uo.alignCoordinateValue;(go=uo.closestNodes)===null||go===void 0||go.forEach(ko=>{(ko.x===yo||ko.x+(ko.width||0)/2===yo||ko.x+(ko.width||0)===yo)&&mo.push(ko)});const So=getMinCoordinate([eo,...mo],"y"),_o=getMaxCoordinate([eo,...mo],"y");So!==void 0&&_o!==void 0&&io.push({x1:yo,y1:So,x2:yo,y2:_o,visible:!0})}),lo.forEach((uo,ho)=>{var go;if(uo.alignCoordinateValue===void 0||ho===1&&(so.length||no>1))return;const mo=[],yo=uo.alignCoordinateValue;(go=uo.closestNodes)===null||go===void 0||go.forEach(ko=>{(ko.y===yo||ko.y+(ko.height||0)/2===yo||ko.y+(ko.height||0)===yo)&&mo.push(ko)});const So=getMinCoordinate([eo,...mo],"x"),_o=getMaxCoordinate([eo,...mo],"x");So!==void 0&&_o!==void 0&&so.push({x1:So,y1:yo,x2:_o,y2:yo,visible:!0})}),[...io,...so]};function pipe(...eo){return eo.reduceRight((to,no)=>io=>to(no(io)),identical)}const getDelta=(eo,to,no)=>noto?10:0;function getSelectedNodes(eo,to){const no=[];return eo.nodes.forEach(io=>{isSelected(io)&&no.push(Object.assign({id:io.id,x:io.x,y:io.y},getNodeSize(io,to)))}),no}function dragNodeHandler(eo,to){if(!isViewportComplete(eo.viewport))return eo;const no=_o=>Math.max(_o,getScaleLimit(lo,eo.settings)),io=to.rawEvent,{rect:so}=eo.viewport,ao=Object.assign({},eo),lo=eo.data.present,uo=getDelta(so.left,so.right,io.clientX),ho=getDelta(so.top,so.bottom,io.clientY),go=uo!==0||ho!==0?.999:1,mo=uo!==0||uo!==0?pipe(pan(-uo,-ho),zoom({scale:go,anchor:getRelativePoint(so,io),direction:Direction$2.XY,limitScale:no}))(eo.viewport):eo.viewport,yo=getPointDeltaByClientDelta(to.dx+uo*go,to.dy+ho*go,mo.transformMatrix),So=Object.assign(Object.assign({},eo.dummyNodes),{dx:eo.dummyNodes.dx+yo.x,dy:eo.dummyNodes.dy+yo.y,isVisible:to.isVisible});if(to.isAutoAlignEnable){const _o=getRenderedNodes(lo.nodes,eo.viewport);if(_o.lengthObject.assign(Object.assign({},$o),{x:$o.x+So.dx,y:$o.y+So.dy})),Co=getAlignmentLines(ko,_o,eo.settings.graphConfig,eo.viewport.transformMatrix[0]>.3?2:5);if(Co.length){const $o=getAutoAlignDisplacement(Co,ko,eo.settings.graphConfig,"x"),Ro=getAutoAlignDisplacement(Co,ko,eo.settings.graphConfig,"y");So.alignedDX=So.dx+$o,So.alignedDY=So.dy+Ro}else So.alignedDX=void 0,So.alignedDY=void 0;ao.alignmentLines=Co}else So.alignedDX=void 0,So.alignedDY=void 0}return ao.dummyNodes=So,ao.viewport=mo,ao}function handleDraggingNewNode(eo,to){if(!eo.settings.features.has(GraphFeatures.AutoAlign))return eo;const no=eo.data.present,io=getRenderedNodes(no.nodes,eo.viewport),so=getAlignmentLines([to.node],io,eo.settings.graphConfig,eo.viewport.transformMatrix[0]>.3?2:5);return Object.assign(Object.assign({},eo),{alignmentLines:so})}function dragStart(eo,to){let no=eo.data.present;const io=no.nodes.get(to.node.id);if(!io)return eo;let so;return to.isMultiSelect?(no=no.selectNodes(ao=>ao.id===to.node.id||isSelected(ao)),so=getSelectedNodes(no,eo.settings.graphConfig)):isSelected(io)?so=getSelectedNodes(no,eo.settings.graphConfig):so=[Object.assign({id:to.node.id,x:to.node.x,y:to.node.y},getNodeSize(to.node,eo.settings.graphConfig))],Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:no}),dummyNodes:Object.assign(Object.assign({},emptyDummyNodes()),{isVisible:!1,nodes:so})})}function dragEnd(eo,to){let no=eo.data.present;if(to.isDragCanceled)return Object.assign(Object.assign({},eo),{alignmentLines:[],dummyNodes:emptyDummyNodes()});const{dx:io,dy:so}=eo.dummyNodes;return no=no.updateNodesPositionAndSize(eo.dummyNodes.nodes.map(ao=>Object.assign(Object.assign({},ao),{x:ao.x+io,y:ao.y+so,width:void 0,height:void 0}))),Object.assign(Object.assign({},eo),{alignmentLines:[],dummyNodes:emptyDummyNodes(),data:pushHistory(eo.data,no,unSelectAllEntity())})}function locateNode(eo,to){const no=to.data.present;if(!isViewportComplete(to.viewport)||!eo.nodes.length)return to;if(eo.nodes.length===1){const uo=eo.nodes[0],ho=no.nodes.get(uo);if(!ho)return to;const{width:go,height:mo}=getNodeSize(ho,to.settings.graphConfig),yo=eo.type===GraphNodeEvent.Centralize?ho.x+go/2:ho.x,So=eo.type===GraphNodeEvent.Centralize?ho.y+mo/2:ho.y,{x:_o,y:ko}=transformPoint(yo,So,to.viewport.transformMatrix),Co=eo.type===GraphNodeEvent.Locate?eo.position:void 0;return Object.assign(Object.assign({},to),{viewport:scrollIntoView$3(_o,ko,to.viewport.rect,!0,Co)(to.viewport)})}const{minNodeX:io,minNodeY:so,maxNodeX:ao,maxNodeY:lo}=getContentArea$1(no,to.settings.graphConfig,new Set(eo.nodes));return Object.assign(Object.assign({},to),{viewport:focusArea(io,so,ao,lo,to.viewport)})}const nodeReducer=(eo,to)=>{const no=eo.data.present;switch(to.type){case GraphNodeEvent.ResizingStart:return Object.assign(Object.assign({},eo),{dummyNodes:Object.assign(Object.assign({},emptyDummyNodes()),{isVisible:!0,nodes:getSelectedNodes(no,eo.settings.graphConfig)})});case GraphNodeEvent.Resizing:return Object.assign(Object.assign({},eo),{dummyNodes:Object.assign(Object.assign({},eo.dummyNodes),{dx:to.dx,dy:to.dy,dWidth:to.dWidth,dHeight:to.dHeight})});case GraphNodeEvent.ResizingEnd:{const{dx:io,dy:so,dWidth:ao,dHeight:lo}=eo.dummyNodes;return Object.assign(Object.assign({},eo),{dummyNodes:emptyDummyNodes(),data:pushHistory(eo.data,no.updateNodesPositionAndSize(eo.dummyNodes.nodes.map(uo=>Object.assign(Object.assign({},uo),{x:uo.x+io,y:uo.y+so,width:uo.width+ao,height:uo.height+lo}))),unSelectAllEntity())})}case GraphNodeEvent.DragStart:return dragStart(eo,to);case GraphNodeEvent.Drag:return dragNodeHandler(eo,to);case GraphNodeEvent.DragEnd:return dragEnd(eo,to);case GraphNodeEvent.PointerEnter:switch(eo.behavior){case GraphBehavior.Default:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:no.updateNode(to.node.id,updateStatus(add$1(GraphNodeStatus.Activated)))})});default:return eo}case GraphNodeEvent.PointerLeave:switch(eo.behavior){case GraphBehavior.Default:case GraphBehavior.Connecting:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:no.updateNode(to.node.id,updateStatus(remove$3(GraphNodeStatus.Activated)))})});default:return eo}case GraphCanvasEvent.DraggingNodeFromItemPanel:return handleDraggingNewNode(eo,to);case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:return to.node?Object.assign(Object.assign({},eo),{alignmentLines:[],data:pushHistory(eo.data,eo.data.present.insertNode(Object.assign(Object.assign({},to.node),{status:GraphNodeStatus.Selected})),unSelectAllEntity())}):Object.assign(Object.assign({},eo),{alignmentLines:[]});case GraphNodeEvent.Centralize:case GraphNodeEvent.Locate:return locateNode(to,eo);case GraphNodeEvent.Add:return Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,no.insertNode(to.node))});case GraphNodeEvent.DoubleClick:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateNode(to.node.id,updateStatus(add$1(GraphNodeStatus.Editing)))})});default:return eo}},portReducer=(eo,to)=>{switch(to.type){case GraphPortEvent.Focus:case GraphPortEvent.PointerEnter:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.node.id,to.port.id,updateStatus(add$1(GraphPortStatus.Activated)))})});case GraphPortEvent.Blur:case GraphPortEvent.PointerLeave:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.node.id,to.port.id,updateStatus(remove$3(GraphPortStatus.Activated)))})});case GraphPortEvent.Click:case GraphPortEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(eo.data.present).updatePort(to.node.id,to.port.id,updateStatus(add$1(GraphPortStatus.Selected)))})});default:return eo}},selectNodeBySelectBox=(eo,to,no,io)=>{if(!no.width||!no.height)return io;const so=Math.min(no.startX,no.startX+no.width),ao=Math.max(no.startX,no.startX+no.width),lo=Math.min(no.startY,no.startY+no.height),uo=Math.max(no.startY,no.startY+no.height),ho=reverseTransformPoint(so,lo,to),go=reverseTransformPoint(ao,uo,to),mo={minX:ho.x,minY:ho.y,maxX:go.x,maxY:go.y};return io.selectNodes(yo=>{const{width:So,height:_o}=getNodeSize(yo,eo),ko={minX:yo.x,minY:yo.y,maxX:yo.x+So,maxY:yo.y+_o};return checkRectIntersect(mo,ko)})};function handleNavigate(eo,to){let no=unSelectAllEntity()(eo.data.present);if(to.node&&to.port)no=no.updatePort(to.node.id,to.port.id,updateStatus(add$1(GraphPortStatus.Selected)));else if(to.node){const io=to.node.id;no=no.selectNodes(so=>so.id===io)}return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:no})})}const selectionReducer=(eo,to)=>{var no,io;const so=eo.data.present,ao=eo.settings.features.has(GraphFeatures.LassoSelect);switch(to.type){case GraphCanvasEvent.Click:case GraphCanvasEvent.ResetSelection:case GraphCanvasEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(so)})});case GraphNodeEvent.Click:case GraphNodeEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:nodeSelection(to.rawEvent,to.node)(so)})});case GraphCanvasEvent.SelectStart:{if(!isViewportComplete(eo.viewport))return eo;const lo=getRelativePoint(eo.viewport.rect,to.rawEvent);return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(so)}),selectBoxPosition:{startX:lo.x,startY:ao?0:lo.y,width:0,height:0}})}case GraphCanvasEvent.SelectMove:return eo.behavior!==GraphBehavior.MultiSelect?eo:Object.assign(Object.assign({},eo),{selectBoxPosition:Object.assign(Object.assign({},eo.selectBoxPosition),{width:eo.selectBoxPosition.width+to.dx,height:ao?(io=(no=eo.viewport.rect)===null||no===void 0?void 0:no.height)!==null&&io!==void 0?io:eo.selectBoxPosition.height:eo.selectBoxPosition.height+to.dy})});case GraphCanvasEvent.SelectEnd:return Object.assign(Object.assign({},eo),{selectBoxPosition:emptySelectBoxPosition(),data:Object.assign(Object.assign({},eo.data),{present:selectNodeBySelectBox(eo.settings.graphConfig,eo.viewport.transformMatrix,eo.selectBoxPosition,so)})});case GraphCanvasEvent.UpdateNodeSelectionBySelectBox:return eo.behavior!==GraphBehavior.MultiSelect?eo:Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:selectNodeBySelectBox(eo.settings.graphConfig,eo.viewport.transformMatrix,eo.selectBoxPosition,so)})});case GraphCanvasEvent.Navigate:return handleNavigate(eo,to);case GraphNodeEvent.SelectAll:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:so.selectNodes(()=>!0)})});case GraphNodeEvent.Select:{const lo=new Set(to.nodes);return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:so.selectNodes(uo=>lo.has(uo.id))})})}default:return eo}};function getRectCenter(eo){return{x:eo.width/2,y:eo.height/2}}function resetViewport(eo,to,no,io){if(!isViewportComplete(eo))return eo;if(!io.ensureNodeVisible)return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const{nodes:so,groups:ao}=to;if(so.size===0)return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const lo=_o=>isRectVisible(_o,eo),uo=so.map(_o=>getNodeRect(_o,no));if(uo.find(lo))return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const go=ao.map(_o=>getGroupRect(_o,so,no));if(go.find(lo))return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});let yo=uo.first();const So=_o=>{yo.y>_o.y&&(yo=_o)};return uo.forEach(So),go.forEach(So),Object.assign(Object.assign({},eo),{transformMatrix:[1,0,0,1,-yo.x,-yo.y]})}function zoomToFit(eo,to,no,io){if(!isViewportComplete(eo))return eo;const{graphConfig:so,nodeMaxVisibleSize:ao,nodeMinVisibleSize:lo}=no,uo=getZoomFitMatrix(Object.assign(Object.assign({},io),{data:to,graphConfig:so,rect:eo.rect,nodeMaxVisibleSize:ao,nodeMinVisibleSize:lo}));return Object.assign(Object.assign({},eo),{transformMatrix:uo})}const reducer=(eo,to,no,io)=>{var so,ao,lo,uo;const{graphConfig:ho,canvasBoundaryPadding:go,features:mo}=io,yo=So=>Math.max(So,getScaleLimit(no,io));switch(to.type){case GraphCanvasEvent.ViewportResize:return Object.assign(Object.assign({},eo),{rect:to.viewportRect});case GraphCanvasEvent.Zoom:return isViewportComplete(eo)?zoom({scale:to.scale,anchor:(so=to.anchor)!==null&&so!==void 0?so:getRectCenter(eo.rect),direction:to.direction,limitScale:yo})(eo):eo;case GraphScrollBarEvent.Scroll:case GraphCanvasEvent.MouseWheelScroll:case GraphCanvasEvent.Pan:case GraphCanvasEvent.Drag:{if(!isViewportComplete(eo))return eo;const{transformMatrix:So,rect:_o}=eo;let{dx:ko,dy:Co}=to;const $o=mo.has(GraphFeatures.LimitBoundary),Ro=(lo=(ao=no.groups)===null||ao===void 0?void 0:ao[0])===null||lo===void 0?void 0:lo.padding;if($o){const{minX:Oo,maxX:No,minY:Mo,maxY:Bo}=getOffsetLimit({data:no,graphConfig:ho,rect:_o,transformMatrix:So,canvasBoundaryPadding:go,groupPadding:Ro});ko=clamp$1(Oo-So[4],No-So[4],ko),Co=clamp$1(Mo-So[5],Bo-So[5],Co)}return pan(ko,Co)(eo)}case GraphCanvasEvent.Pinch:{const{dx:So,dy:_o,scale:ko,anchor:Co}=to;return pipe(pan(So,_o),zoom({scale:ko,anchor:Co,limitScale:yo}))(eo)}case GraphMinimapEvent.Pan:return minimapPan(to.dx,to.dy)(eo);case GraphCanvasEvent.ResetViewport:return resetViewport(eo,no,ho,to);case GraphCanvasEvent.ZoomTo:return isViewportComplete(eo)?zoomTo({scale:to.scale,anchor:(uo=to.anchor)!==null&&uo!==void 0?uo:getRectCenter(eo.rect),direction:to.direction,limitScale:yo})(eo):eo;case GraphCanvasEvent.ZoomToFit:return zoomToFit(eo,no,io,to);case GraphCanvasEvent.ScrollIntoView:if(eo.rect){const{x:So,y:_o}=transformPoint(to.x,to.y,eo.transformMatrix);return scrollIntoView$3(So,_o,eo.rect,!0)(eo)}return eo;default:return eo}},viewportReducer=(eo,to)=>{const no=reducer(eo.viewport,to,eo.data.present,eo.settings);return no===eo.viewport?eo:Object.assign(Object.assign({},eo),{viewport:no})},builtinReducer=composeReducers([behaviorReducer,viewportReducer,nodeReducer,portReducer,edgeReducer,canvasReducer,connectingReducer,selectionReducer,contextMenuReducer].map(eo=>to=>(no,io)=>to(eo(no,io),io)));function getGraphReducer(eo=void 0,to=identical){return(eo?composeReducers([eo,builtinReducer]):builtinReducer)(to)}class MouseMoveEventProvider{constructor(to){this.target=to}off(to,no){switch(to){case"move":this.target.removeEventListener("mousemove",no);break;case"end":this.target.removeEventListener("mouseup",no);break}return this}on(to,no){switch(to){case"move":this.target.addEventListener("mousemove",no);break;case"end":this.target.addEventListener("mouseup",no);break}return this}}const useGetMouseDownOnAnchor=(eo,to)=>{const no=useGraphController();return reactExports.useCallback(io=>so=>{so.preventDefault(),so.stopPropagation(),to.trigger({type:GraphNodeEvent.ResizingStart,rawEvent:so,node:eo});const ao=new DragController(new MouseMoveEventProvider(no.getGlobalEventTarget()),defaultGetPositionFromEvent);ao.onMove=({totalDX:lo,totalDY:uo,e:ho})=>{to.trigger(Object.assign({type:GraphNodeEvent.Resizing,rawEvent:ho,node:eo,dx:0,dy:0,dWidth:0,dHeight:0},io(lo,uo)))},ao.onEnd=({e:lo})=>{to.trigger({type:GraphNodeEvent.ResizingEnd,rawEvent:lo,node:eo})},to.trigger({type:GraphNodeEvent.ResizingStart,rawEvent:so,node:eo}),ao.start(so.nativeEvent)},[to,no,eo])},emptyLine=()=>({x1:0,y1:0,x2:0,y2:0,visible:!1}),Line$1=eo=>{var to;const{line:no,style:io}=eo,so=Object.assign(Object.assign({strokeWidth:1},io),{stroke:no.visible?(to=io==null?void 0:io.stroke)!==null&&to!==void 0?to:"#ea4300":"none"});return jsxRuntimeExports.jsx("line",{className:"auto-align-hint",x1:no.x1,y1:no.y1,x2:no.x2,y2:no.y2,style:so})},AlignmentLines=reactExports.memo(({style:eo})=>{const to=useAlignmentLines();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:to.map((no,io)=>no.visible?jsxRuntimeExports.jsx(Line$1,{line:no,style:eo},io):null)})});AlignmentLines.displayName="AlignmentLines";const NodeFrame=eo=>{var to,no;const io=reactExports.useContext(SlotsContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(no=(to=io.renderNodeFrame)===null||to===void 0?void 0:to.call(io,eo))!==null&&no!==void 0?no:eo.children})},NodeResizeHandler=eo=>{var to,no;const io=reactExports.useContext(SlotsContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(no=(to=io.renderNodeResizeHandler)===null||to===void 0?void 0:to.call(io,eo))!==null&&no!==void 0?no:eo.children})},Slots={NodeFrame,NodeResizeHandler},ConnectingLine=eo=>{const{autoAttachLine:to,connectingLine:no,styles:io}=eo,so=(io==null?void 0:io.stroke)||defaultColors.primaryColor,ao=(io==null?void 0:io.fill)||"none",lo=(io==null?void 0:io.strokeDasharray)||"4,4",uo=no.visible?so:"none";return jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("marker",Object.assign({id:"markerArrow",markerWidth:"10",markerHeight:"10",refX:"6",refY:"5",orient:"auto",markerUnits:"strokeWidth"},{children:jsxRuntimeExports.jsx("path",{d:"M0,0 L6,5 L0,10",style:{stroke:uo,fill:"none"}})}))}),jsxRuntimeExports.jsx("line",{x1:no.x1,y1:no.y1,x2:no.x2,y2:no.y2,style:{stroke:uo,fill:ao,strokeDasharray:lo},markerEnd:"url(#markerArrow)"}),jsxRuntimeExports.jsx("path",{d:getCurvePathD(to.x2,to.x1,to.y2,to.y1),style:{stroke:to.visible?so:"none",fill:"none"}})]})},Connecting=reactExports.memo(eo=>{const{styles:to,graphConfig:no,viewport:io,movingPoint:so}=eo,{sourcePort:ao,sourceNode:lo,targetPort:uo,targetNode:ho}=useConnectingState();if(!lo||!ao)return null;const go=lo.getPortPosition(ao.id,no);let mo,yo=!1;if(ho&&uo?(yo=!0,mo=ho==null?void 0:ho.getPortPosition(uo.id,no)):mo=go,!go||!mo)return null;const So=transformPoint(go.x,go.y,io.transformMatrix),_o=transformPoint(mo.x,mo.y,io.transformMatrix),ko=so?{x1:So.x,y1:So.y,x2:so.x,y2:so.y,visible:!yo}:emptyLine(),Co={x1:So.x,y1:So.y,x2:_o.x,y2:_o.y,visible:yo};return jsxRuntimeExports.jsx(ConnectingLine,{connectingLine:ko,autoAttachLine:Co,styles:to})});Connecting.displayName="Connecting";const SCROLL_BAR_WIDTH=10,wrapperCommonStyle={position:"absolute",cursor:"initial"};createUseStyles({verticalScrollWrapper:Object.assign(Object.assign({},wrapperCommonStyle),{height:"100%",width:SCROLL_BAR_WIDTH,top:0,right:0}),horizontalScrollWrapper:Object.assign(Object.assign({},wrapperCommonStyle),{height:SCROLL_BAR_WIDTH,width:"100%",bottom:0,left:0}),verticalScrollStyle:eo=>({height:eo.scrollbarLayout.verticalScrollHeight,width:"100%",backgroundColor:defaultColors.scrollbarColor,position:"absolute",top:0,right:0,transform:`translateY(${eo.scrollbarLayout.verticalScrollTop}px)`}),horizontalScrollStyle:eo=>({width:eo.scrollbarLayout.horizontalScrollWidth-SCROLL_BAR_WIDTH,height:"100%",backgroundColor:defaultColors.scrollbarColor,position:"absolute",left:0,bottom:0,transform:`translateX(${eo.scrollbarLayout.horizontalScrollLeft}px)`})});function getHintPoints(eo,to,{minX:no,minY:io,maxX:so,maxY:ao},lo,uo,ho,go){return eo.x===to.x?{x:eo.x,y:eo.y=io?{x:so,y:lo}:{x:ho,y:io}:eo.yno?{x:uo,y:ao}:{x:no,y:go}:go>io?{x:no,y:go}:{x:ho,y:io}}const GraphEdge=reactExports.memo(eo=>{var to;const{edge:no,data:io,eventChannel:so,source:ao,target:lo,graphId:uo}=eo,ho=useGraphConfig(),go=useVirtualization(),{viewport:mo,renderedArea:yo,visibleArea:So}=go,_o=Go=>Do=>{Do.persist(),so.trigger({type:Go,edge:no,rawEvent:Do})},ko=isPointInRect(yo,ao),Co=isPointInRect(yo,lo),$o=ko&&Co;if(reactExports.useLayoutEffect(()=>{$o&&go.renderedEdges.add(no.id)},[go]),!$o)return null;const Ro=ho.getEdgeConfig(no);if(!Ro)return Debug.warn(`invalid edge ${JSON.stringify(no)}`),null;if(!Ro.render)return Debug.warn(`Missing "render" method in edge config ${JSON.stringify(no)}`),null;const Oo=isPointInRect(So,ao),No=isPointInRect(So,lo);let Mo=Ro.render({model:no,data:io,x1:ao.x,y1:ao.y,x2:lo.x,y2:lo.y,viewport:mo});if(has$2(GraphEdgeStatus.ConnectedToSelected)(no.status)&&(!Oo||!No)){const Go=getLinearFunction(ao.x,ao.y,lo.x,lo.y),Do=getLinearFunction(ao.y,ao.x,lo.y,lo.x),Uo=Oo?ao:lo,Ho=Oo?lo:ao,Yo=Go(So.maxX),qo=Do(So.maxY),Jo=Do(So.minY),ps=Go(So.minX),Qo=getHintPoints(Uo,Ho,So,Yo,qo,Jo,ps);Oo&&Ro.renderWithTargetHint?Mo=Ro.renderWithTargetHint({model:no,data:io,x1:ao.x,y1:ao.y,x2:Qo.x,y2:Qo.y,viewport:mo}):No&&Ro.renderWithSourceHint&&(Mo=Ro.renderWithSourceHint({model:no,data:io,x1:Qo.x,y1:Qo.y,x2:lo.x,y2:lo.y,viewport:mo}))}const Bo=getEdgeUid(uo,no),Po=`edge-container-${no.id}`,Lo=(to=no.automationId)!==null&&to!==void 0?to:Po;return jsxRuntimeExports.jsx("g",Object.assign({id:Bo,onClick:_o(GraphEdgeEvent.Click),onDoubleClick:_o(GraphEdgeEvent.DoubleClick),onMouseDown:_o(GraphEdgeEvent.MouseDown),onMouseUp:_o(GraphEdgeEvent.MouseUp),onMouseEnter:_o(GraphEdgeEvent.MouseEnter),onMouseLeave:_o(GraphEdgeEvent.MouseLeave),onContextMenu:_o(GraphEdgeEvent.ContextMenu),onMouseMove:_o(GraphEdgeEvent.MouseMove),onMouseOver:_o(GraphEdgeEvent.MouseOver),onMouseOut:_o(GraphEdgeEvent.MouseOut),onFocus:void 0,onBlur:void 0,className:Po,"data-automation-id":Lo},{children:Mo}))});function compareEqual(eo,to){return eo.node===to.node}const EdgeChampNodeRender=reactExports.memo(eo=>{var to,no;const{node:io,data:so}=eo,ao=__rest(eo,["node","data"]),lo=useGraphConfig(),uo=[],ho=io.valueCount;for(let yo=0;yo{const{data:to,node:no}=eo,io=__rest(eo,["data","node"]),so=useGraphConfig();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:no.values.map(ao=>{var lo,uo;const ho=(lo=to.nodes.get(ao.source))===null||lo===void 0?void 0:lo.getPortPosition(ao.sourcePortId,so),go=(uo=to.nodes.get(ao.target))===null||uo===void 0?void 0:uo.getPortPosition(ao.targetPortId,so);return ho&&go?reactExports.createElement(GraphEdge,Object.assign({},io,{key:ao.id,data:to,edge:ao,source:ho,target:go})):null})})},compareEqual);EdgeHashCollisionNodeRender.displayName="EdgeHashCollisionNodeRender";const styles$c=mergeStyleSets({svg:[{position:"absolute",overflow:"hidden",top:0,left:0,width:"100%",height:"100%"},{"&:focus":{outline:"none"}}],node:{cursor:"move"},container:{position:"relative",width:"100%",height:"100%",overflow:"hidden",touchAction:"none"},buttonA11Y:{opacity:0,width:0,height:0,overflow:"hidden"},addingNodeSvg:{zIndex:1e6,position:"fixed",left:0,top:0,width:"100%",height:"100%"},moduleItem:{userSelect:"none",cursor:"pointer"},minimap:{height:320,width:320,userSelect:"none",touchAction:"none"},minimapSvg:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),GraphNode=eo=>{var to;const{node:no,eventChannel:io,getNodeAriaLabel:so,viewport:ao,graphId:lo}=eo,uo=useGraphConfig(),ho=getNodeConfig(no,uo),go=_o=>ko=>{ko.persist();const Co={type:_o,node:no,rawEvent:ko};io.trigger(Co)},mo=_o=>{_o.persist();const ko=checkIsMultiSelect(_o);io.trigger({type:GraphNodeEvent.Click,rawEvent:_o,isMultiSelect:ko,node:no})},yo=getNodeUid(lo,no),So=(to=no.automationId)!==null&&to!==void 0?to:getNodeAutomationId(no);return ho!=null&&ho.render?jsxRuntimeExports.jsx("g",Object.assign({id:yo,focusable:"true",tabIndex:0,className:styles$c.node,onPointerDown:go(GraphNodeEvent.PointerDown),onPointerEnter:go(GraphNodeEvent.PointerEnter),onPointerMove:go(GraphNodeEvent.PointerMove),onPointerLeave:go(GraphNodeEvent.PointerLeave),onPointerUp:go(GraphNodeEvent.PointerUp),onDoubleClick:go(GraphNodeEvent.DoubleClick),onMouseDown:go(GraphNodeEvent.MouseDown),onMouseUp:go(GraphNodeEvent.MouseUp),onMouseEnter:go(GraphNodeEvent.MouseEnter),onMouseLeave:go(GraphNodeEvent.MouseLeave),onContextMenu:go(GraphNodeEvent.ContextMenu),onMouseMove:go(GraphNodeEvent.MouseMove),onMouseOver:go(GraphNodeEvent.MouseOver),onMouseOut:go(GraphNodeEvent.MouseOut),onClick:mo,onKeyDown:go(GraphNodeEvent.KeyDown),"aria-label":so(no),role:"group","aria-roledescription":"node","data-automation-id":So},{children:jsxRuntimeExports.jsx("g",Object.assign({className:"node-box-container"},{children:ho.render({model:no,viewport:ao})}))})):null},RESIZE_POINT_WIDTH=8,RESIZE_POINT_HEIGHT=8,NodeAnchor=({x:eo,y:to,cursor:no,onMouseDown:io})=>jsxRuntimeExports.jsx(Slots.NodeResizeHandler,Object.assign({x:eo,y:to,cursor:no,onMouseDown:io},{children:jsxRuntimeExports.jsx("rect",{x:eo,y:to,height:RESIZE_POINT_HEIGHT,width:RESIZE_POINT_WIDTH,stroke:defaultColors.controlPointColor,fill:"transparent",cursor:no,onMouseDown:io})})),BBOX_PADDING=15,GraphNodeAnchors=eo=>{var to,no;const{node:io,getMouseDown:so}=eo,ao=useGraphConfig(),lo=getNodeConfig(io,ao),uo=(to=lo==null?void 0:lo.getMinWidth(io))!==null&&to!==void 0?to:0,ho=(no=lo==null?void 0:lo.getMinHeight(io))!==null&&no!==void 0?no:0,go=getRectHeight(lo,io),mo=getRectWidth(lo,io),yo=so((No,Mo)=>{const Bo=Math.min(No,mo-uo),Po=Math.min(Mo,go-ho);return{dx:+Bo,dy:+Po,dWidth:-Bo,dHeight:-Po}}),So=so((No,Mo)=>{const Bo=Math.min(Mo,go-ho);return{dy:+Bo,dHeight:-Bo}}),_o=so((No,Mo)=>{const Bo=Math.max(No,uo-mo),Po=Math.min(Mo,go-ho);return{dy:+Po,dWidth:+Bo,dHeight:-Po}}),ko=so(No=>({dWidth:+Math.max(No,uo-mo)})),Co=so((No,Mo)=>{const Bo=Math.max(No,uo-mo),Po=Math.max(Mo,ho-go);return{dWidth:+Bo,dHeight:+Po}}),$o=so((No,Mo)=>({dHeight:+Math.max(Mo,ho-go)})),Ro=so((No,Mo)=>{const Bo=Math.min(No,mo-uo),Po=Math.max(Mo,ho-go);return{dx:+Bo,dWidth:-Bo,dHeight:+Po}}),Oo=so(No=>{const Mo=Math.min(No,mo-uo);return{dx:Mo,dWidth:-Mo}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(NodeAnchor,{cursor:"nw-resize",x:io.x-BBOX_PADDING,y:io.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,onMouseDown:yo},"nw-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x+mo/2-RESIZE_POINT_WIDTH/2,y:io.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,cursor:"n-resize",onMouseDown:So},"n-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x+mo+BBOX_PADDING-RESIZE_POINT_WIDTH,y:io.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,cursor:"ne-resize",onMouseDown:_o},"ne-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x+mo+BBOX_PADDING-RESIZE_POINT_WIDTH,y:io.y+go/2-RESIZE_POINT_HEIGHT/2,cursor:"e-resize",onMouseDown:ko},"e-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x+mo+BBOX_PADDING-RESIZE_POINT_WIDTH,y:io.y+go+BBOX_PADDING,cursor:"se-resize",onMouseDown:Co},"se-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x+mo/2-RESIZE_POINT_WIDTH/2,y:io.y+go+BBOX_PADDING,cursor:"s-resize",onMouseDown:$o},"s-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x-BBOX_PADDING,y:io.y+go+BBOX_PADDING,cursor:"sw-resize",onMouseDown:Ro},"sw-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x-BBOX_PADDING,y:io.y+go/2-RESIZE_POINT_HEIGHT/2,cursor:"w-resize",onMouseDown:Oo},"w-resize")]})},GraphOneNodePorts=eo=>{const{data:to,node:no,getPortAriaLabel:io,eventChannel:so,viewport:ao,graphId:lo}=eo,uo=useGraphConfig(),ho=no.ports;if(!ho)return null;const go=(mo,yo)=>So=>{So.persist(),so.trigger({type:mo,node:no,port:yo,rawEvent:So})};return jsxRuntimeExports.jsx("g",{children:ho.map(mo=>{var yo;const So=uo.getPortConfig(mo);if(!So||!So.render)return Debug.warn(`invalid port config ${no.id}:${no.name} - ${mo.id}:${mo.name}`),null;const _o=no.getPortPosition(mo.id,uo);if(!_o)return null;const ko=getPortUid(lo,no,mo),Co=(yo=mo.automationId)!==null&&yo!==void 0?yo:getPortAutomationId(mo,no);return jsxRuntimeExports.jsx("g",Object.assign({id:ko,tabIndex:0,focusable:"true",onPointerDown:go(GraphPortEvent.PointerDown,mo),onPointerUp:go(GraphPortEvent.PointerUp,mo),onDoubleClick:go(GraphPortEvent.DoubleClick,mo),onMouseDown:go(GraphPortEvent.MouseDown,mo),onMouseUp:go(GraphPortEvent.MouseUp,mo),onContextMenu:go(GraphPortEvent.ContextMenu,mo),onPointerEnter:go(GraphPortEvent.PointerEnter,mo),onPointerLeave:go(GraphPortEvent.PointerLeave,mo),onMouseMove:go(GraphPortEvent.MouseMove,mo),onMouseOver:go(GraphPortEvent.MouseOver,mo),onMouseOut:go(GraphPortEvent.MouseOut,mo),onFocus:go(GraphPortEvent.Focus,mo),onBlur:go(GraphPortEvent.Blur,mo),onKeyDown:go(GraphPortEvent.KeyDown,mo),onClick:go(GraphPortEvent.Click,mo),"aria-label":io(to,no,mo),role:"group","aria-roledescription":"port","data-automation-id":Co},{children:jsxRuntimeExports.jsx(ConnectingStateContext.Consumer,{children:({sourceNode:$o,sourcePort:Ro})=>So==null?void 0:So.render(Object.assign({model:mo,data:to,parentNode:no,anotherNode:$o,anotherPort:Ro,viewport:ao},_o))})}),ko)})})},GraphNodeParts=eo=>{var{node:to,isNodeResizable:no,renderNodeAnchors:io}=eo,so=__rest(eo,["node","isNodeResizable","renderNodeAnchors"]);const ao=useVirtualization(),{renderedArea:lo,viewport:uo}=ao,ho=useGetMouseDownOnAnchor(to,so.eventChannel),go=isPointInRect(lo,to);if(reactExports.useLayoutEffect(()=>{go&&ao.renderedEdges.add(to.id)},[ao]),!go)return null;let mo;if(no&&isNodeEditing(to)){const yo=jsxRuntimeExports.jsx(GraphNodeAnchors,{node:to,getMouseDown:ho});mo=io?io(to,ho,yo):yo}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(GraphNode,Object.assign({},so,{node:to,viewport:uo})),jsxRuntimeExports.jsx(GraphOneNodePorts,Object.assign({},so,{node:to,viewport:uo})),mo]})},GraphNodePartsMemo=reactExports.memo(GraphNodeParts),NodeTreeNode=reactExports.memo(eo=>{var{node:to}=eo,no=__rest(eo,["node"]);const io=to.values.map(ao=>{const lo=ao[1];return jsxRuntimeExports.jsx(GraphNodePartsMemo,Object.assign({node:lo},no),lo.id)}),so=to.type===NodeType$2.Internal?to.children.map((ao,lo)=>{const uo=loeo.node===to.node);NodeTreeNode.displayName="NodeTreeNode";const el=document.createElement("div");document.body.appendChild(el);const StaticNode=eo=>{const{node:to}=eo,no=useGraphConfig(),io=getNodeConfig(to,no);if(io!=null&&io.renderStatic)return jsxRuntimeExports.jsx("g",{children:io.renderStatic({model:to})});const so=getRectHeight(io,to),ao=getRectWidth(io,to);return jsxRuntimeExports.jsx("rect",{transform:`translate(${to.x}, ${to.y})`,height:so,width:ao,fill:defaultColors.dummyNodeStroke})},StaticNodeWithMemo=reactExports.memo(StaticNode,(eo,to)=>{const no=eo.node,io=to.node;return no.x===io.x&&no.y===io.y&&no.height===io.height&&no.width===io.width&&no.isInSearchResults===io.isInSearchResults&&no.isCurrentSearchResult===io.isCurrentSearchResult}),ReadonlyNodeTreeNode=reactExports.memo(({node:eo})=>{const to=eo.values.map(io=>jsxRuntimeExports.jsx(StaticNodeWithMemo,{node:io[1]},io[1].id)),no=eo.type===NodeType$2.Internal?eo.children.map((io,so)=>{const ao=so>>0;if(""+no!==to||no===4294967295)return NaN;to=no}return to<0?ensureSize(eo)+to:to}function returnTrue$1(){return!0}function wholeSlice(eo,to,no){return(eo===0&&!isNeg(eo)||no!==void 0&&eo<=-no)&&(to===void 0||no!==void 0&&to>=no)}function resolveBegin(eo,to){return resolveIndex(eo,to,0)}function resolveEnd(eo,to){return resolveIndex(eo,to,to)}function resolveIndex(eo,to,no){return eo===void 0?no:isNeg(eo)?to===1/0?to:Math.max(0,to+eo)|0:to===void 0||to===eo?eo:Math.min(to,eo)|0}function isNeg(eo){return eo<0||eo===0&&1/eo===-1/0}var IS_COLLECTION_SYMBOL="@@__IMMUTABLE_ITERABLE__@@";function isCollection(eo){return!!(eo&&eo[IS_COLLECTION_SYMBOL])}var IS_KEYED_SYMBOL="@@__IMMUTABLE_KEYED__@@";function isKeyed(eo){return!!(eo&&eo[IS_KEYED_SYMBOL])}var IS_INDEXED_SYMBOL="@@__IMMUTABLE_INDEXED__@@";function isIndexed(eo){return!!(eo&&eo[IS_INDEXED_SYMBOL])}function isAssociative(eo){return isKeyed(eo)||isIndexed(eo)}var Collection$2=function(to){return isCollection(to)?to:Seq(to)},KeyedCollection=function(eo){function to(no){return isKeyed(no)?no:KeyedSeq(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$2),IndexedCollection=function(eo){function to(no){return isIndexed(no)?no:IndexedSeq(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$2),SetCollection=function(eo){function to(no){return isCollection(no)&&!isAssociative(no)?no:SetSeq(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$2);Collection$2.Keyed=KeyedCollection;Collection$2.Indexed=IndexedCollection;Collection$2.Set=SetCollection;var IS_SEQ_SYMBOL="@@__IMMUTABLE_SEQ__@@";function isSeq(eo){return!!(eo&&eo[IS_SEQ_SYMBOL])}var IS_RECORD_SYMBOL="@@__IMMUTABLE_RECORD__@@";function isRecord(eo){return!!(eo&&eo[IS_RECORD_SYMBOL])}function isImmutable(eo){return isCollection(eo)||isRecord(eo)}var IS_ORDERED_SYMBOL="@@__IMMUTABLE_ORDERED__@@";function isOrdered(eo){return!!(eo&&eo[IS_ORDERED_SYMBOL])}var ITERATE_KEYS=0,ITERATE_VALUES=1,ITERATE_ENTRIES=2,REAL_ITERATOR_SYMBOL=typeof Symbol=="function"&&Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator",ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||FAUX_ITERATOR_SYMBOL,Iterator=function(to){this.next=to};Iterator.prototype.toString=function(){return"[Iterator]"};Iterator.KEYS=ITERATE_KEYS;Iterator.VALUES=ITERATE_VALUES;Iterator.ENTRIES=ITERATE_ENTRIES;Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()};Iterator.prototype[ITERATOR_SYMBOL]=function(){return this};function iteratorValue(eo,to,no,io){var so=eo===0?to:eo===1?no:[to,no];return io?io.value=so:io={value:so,done:!1},io}function iteratorDone(){return{value:void 0,done:!0}}function hasIterator(eo){return Array.isArray(eo)?!0:!!getIteratorFn(eo)}function isIterator(eo){return eo&&typeof eo.next=="function"}function getIterator(eo){var to=getIteratorFn(eo);return to&&to.call(eo)}function getIteratorFn(eo){var to=eo&&(REAL_ITERATOR_SYMBOL&&eo[REAL_ITERATOR_SYMBOL]||eo[FAUX_ITERATOR_SYMBOL]);if(typeof to=="function")return to}function isEntriesIterable(eo){var to=getIteratorFn(eo);return to&&to===eo.entries}function isKeysIterable(eo){var to=getIteratorFn(eo);return to&&to===eo.keys}var hasOwnProperty$n=Object.prototype.hasOwnProperty;function isArrayLike$2(eo){return Array.isArray(eo)||typeof eo=="string"?!0:eo&&typeof eo=="object"&&Number.isInteger(eo.length)&&eo.length>=0&&(eo.length===0?Object.keys(eo).length===1:eo.hasOwnProperty(eo.length-1))}var Seq=function(eo){function to(no){return no==null?emptySequence():isImmutable(no)?no.toSeq():seqFromValue(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.toSeq=function(){return this},to.prototype.toString=function(){return this.__toString("Seq {","}")},to.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},to.prototype.__iterate=function(io,so){var ao=this._cache;if(ao){for(var lo=ao.length,uo=0;uo!==lo;){var ho=ao[so?lo-++uo:uo++];if(io(ho[1],ho[0],this)===!1)break}return uo}return this.__iterateUncached(io,so)},to.prototype.__iterator=function(io,so){var ao=this._cache;if(ao){var lo=ao.length,uo=0;return new Iterator(function(){if(uo===lo)return iteratorDone();var ho=ao[so?lo-++uo:uo++];return iteratorValue(io,ho[0],ho[1])})}return this.__iteratorUncached(io,so)},to}(Collection$2),KeyedSeq=function(eo){function to(no){return no==null?emptySequence().toKeyedSeq():isCollection(no)?isKeyed(no)?no.toSeq():no.fromEntrySeq():isRecord(no)?no.toSeq():keyedSeqFromValue(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.toKeyedSeq=function(){return this},to}(Seq),IndexedSeq=function(eo){function to(no){return no==null?emptySequence():isCollection(no)?isKeyed(no)?no.entrySeq():no.toIndexedSeq():isRecord(no)?no.toSeq().entrySeq():indexedSeqFromValue(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return to(arguments)},to.prototype.toIndexedSeq=function(){return this},to.prototype.toString=function(){return this.__toString("Seq [","]")},to}(Seq),SetSeq=function(eo){function to(no){return(isCollection(no)&&!isAssociative(no)?no:IndexedSeq(no)).toSetSeq()}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return to(arguments)},to.prototype.toSetSeq=function(){return this},to}(Seq);Seq.isSeq=isSeq;Seq.Keyed=KeyedSeq;Seq.Set=SetSeq;Seq.Indexed=IndexedSeq;Seq.prototype[IS_SEQ_SYMBOL]=!0;var ArraySeq=function(eo){function to(no){this._array=no,this.size=no.length}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(io,so){return this.has(io)?this._array[wrapIndex(this,io)]:so},to.prototype.__iterate=function(io,so){for(var ao=this._array,lo=ao.length,uo=0;uo!==lo;){var ho=so?lo-++uo:uo++;if(io(ao[ho],ho,this)===!1)break}return uo},to.prototype.__iterator=function(io,so){var ao=this._array,lo=ao.length,uo=0;return new Iterator(function(){if(uo===lo)return iteratorDone();var ho=so?lo-++uo:uo++;return iteratorValue(io,ho,ao[ho])})},to}(IndexedSeq),ObjectSeq=function(eo){function to(no){var io=Object.keys(no).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(no):[]);this._object=no,this._keys=io,this.size=io.length}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(io,so){return so!==void 0&&!this.has(io)?so:this._object[io]},to.prototype.has=function(io){return hasOwnProperty$n.call(this._object,io)},to.prototype.__iterate=function(io,so){for(var ao=this._object,lo=this._keys,uo=lo.length,ho=0;ho!==uo;){var go=lo[so?uo-++ho:ho++];if(io(ao[go],go,this)===!1)break}return ho},to.prototype.__iterator=function(io,so){var ao=this._object,lo=this._keys,uo=lo.length,ho=0;return new Iterator(function(){if(ho===uo)return iteratorDone();var go=lo[so?uo-++ho:ho++];return iteratorValue(io,go,ao[go])})},to}(KeyedSeq);ObjectSeq.prototype[IS_ORDERED_SYMBOL]=!0;var CollectionSeq=function(eo){function to(no){this._collection=no,this.size=no.length||no.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.__iterateUncached=function(io,so){if(so)return this.cacheResult().__iterate(io,so);var ao=this._collection,lo=getIterator(ao),uo=0;if(isIterator(lo))for(var ho;!(ho=lo.next()).done&&io(ho.value,uo++,this)!==!1;);return uo},to.prototype.__iteratorUncached=function(io,so){if(so)return this.cacheResult().__iterator(io,so);var ao=this._collection,lo=getIterator(ao);if(!isIterator(lo))return new Iterator(iteratorDone);var uo=0;return new Iterator(function(){var ho=lo.next();return ho.done?ho:iteratorValue(io,uo++,ho.value)})},to}(IndexedSeq),EMPTY_SEQ;function emptySequence(){return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]))}function keyedSeqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return to.fromEntrySeq();if(typeof eo=="object")return new ObjectSeq(eo);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+eo)}function indexedSeqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return to;throw new TypeError("Expected Array or collection object of values: "+eo)}function seqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return isEntriesIterable(eo)?to.fromEntrySeq():isKeysIterable(eo)?to.toSetSeq():to;if(typeof eo=="object")return new ObjectSeq(eo);throw new TypeError("Expected Array or collection object of values, or keyed object: "+eo)}function maybeIndexedSeqFromValue(eo){return isArrayLike$2(eo)?new ArraySeq(eo):hasIterator(eo)?new CollectionSeq(eo):void 0}var IS_MAP_SYMBOL="@@__IMMUTABLE_MAP__@@";function isMap$2(eo){return!!(eo&&eo[IS_MAP_SYMBOL])}function isOrderedMap(eo){return isMap$2(eo)&&isOrdered(eo)}function isValueObject(eo){return!!(eo&&typeof eo.equals=="function"&&typeof eo.hashCode=="function")}function is$1(eo,to){if(eo===to||eo!==eo&&to!==to)return!0;if(!eo||!to)return!1;if(typeof eo.valueOf=="function"&&typeof to.valueOf=="function"){if(eo=eo.valueOf(),to=to.valueOf(),eo===to||eo!==eo&&to!==to)return!0;if(!eo||!to)return!1}return!!(isValueObject(eo)&&isValueObject(to)&&eo.equals(to))}var imul=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(to,no){to|=0,no|=0;var io=to&65535,so=no&65535;return io*so+((to>>>16)*so+io*(no>>>16)<<16>>>0)|0};function smi(eo){return eo>>>1&1073741824|eo&3221225471}var defaultValueOf=Object.prototype.valueOf;function hash$2(eo){if(eo==null)return hashNullish(eo);if(typeof eo.hashCode=="function")return smi(eo.hashCode(eo));var to=valueOf(eo);if(to==null)return hashNullish(to);switch(typeof to){case"boolean":return to?1108378657:1108378656;case"number":return hashNumber(to);case"string":return to.length>STRING_HASH_CACHE_MIN_STRLEN?cachedHashString(to):hashString$1(to);case"object":case"function":return hashJSObj(to);case"symbol":return hashSymbol(to);default:if(typeof to.toString=="function")return hashString$1(to.toString());throw new Error("Value type "+typeof to+" cannot be hashed.")}}function hashNullish(eo){return eo===null?1108378658:1108378659}function hashNumber(eo){if(eo!==eo||eo===1/0)return 0;var to=eo|0;for(to!==eo&&(to^=eo*4294967295);eo>4294967295;)eo/=4294967295,to^=eo;return smi(to)}function cachedHashString(eo){var to=stringHashCache[eo];return to===void 0&&(to=hashString$1(eo),STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE&&(STRING_HASH_CACHE_SIZE=0,stringHashCache={}),STRING_HASH_CACHE_SIZE++,stringHashCache[eo]=to),to}function hashString$1(eo){for(var to=0,no=0;no0)switch(eo.nodeType){case 1:return eo.uniqueID;case 9:return eo.documentElement&&eo.documentElement.uniqueID}}function valueOf(eo){return eo.valueOf!==defaultValueOf&&typeof eo.valueOf=="function"?eo.valueOf(eo):eo}function nextHash(){var eo=++_objHashUID;return _objHashUID&1073741824&&(_objHashUID=0),eo}var usingWeakMap=typeof WeakMap=="function",weakMap;usingWeakMap&&(weakMap=new WeakMap);var symbolMap=Object.create(null),_objHashUID=0,UID_HASH_KEY="__immutablehash__";typeof Symbol=="function"&&(UID_HASH_KEY=Symbol(UID_HASH_KEY));var STRING_HASH_CACHE_MIN_STRLEN=16,STRING_HASH_CACHE_MAX_SIZE=255,STRING_HASH_CACHE_SIZE=0,stringHashCache={},ToKeyedSequence=function(eo){function to(no,io){this._iter=no,this._useKeys=io,this.size=no.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(io,so){return this._iter.get(io,so)},to.prototype.has=function(io){return this._iter.has(io)},to.prototype.valueSeq=function(){return this._iter.valueSeq()},to.prototype.reverse=function(){var io=this,so=reverseFactory(this,!0);return this._useKeys||(so.valueSeq=function(){return io._iter.toSeq().reverse()}),so},to.prototype.map=function(io,so){var ao=this,lo=mapFactory(this,io,so);return this._useKeys||(lo.valueSeq=function(){return ao._iter.toSeq().map(io,so)}),lo},to.prototype.__iterate=function(io,so){var ao=this;return this._iter.__iterate(function(lo,uo){return io(lo,uo,ao)},so)},to.prototype.__iterator=function(io,so){return this._iter.__iterator(io,so)},to}(KeyedSeq);ToKeyedSequence.prototype[IS_ORDERED_SYMBOL]=!0;var ToIndexedSequence=function(eo){function to(no){this._iter=no,this.size=no.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.includes=function(io){return this._iter.includes(io)},to.prototype.__iterate=function(io,so){var ao=this,lo=0;return so&&ensureSize(this),this._iter.__iterate(function(uo){return io(uo,so?ao.size-++lo:lo++,ao)},so)},to.prototype.__iterator=function(io,so){var ao=this,lo=this._iter.__iterator(ITERATE_VALUES,so),uo=0;return so&&ensureSize(this),new Iterator(function(){var ho=lo.next();return ho.done?ho:iteratorValue(io,so?ao.size-++uo:uo++,ho.value,ho)})},to}(IndexedSeq),ToSetSequence=function(eo){function to(no){this._iter=no,this.size=no.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.has=function(io){return this._iter.includes(io)},to.prototype.__iterate=function(io,so){var ao=this;return this._iter.__iterate(function(lo){return io(lo,lo,ao)},so)},to.prototype.__iterator=function(io,so){var ao=this._iter.__iterator(ITERATE_VALUES,so);return new Iterator(function(){var lo=ao.next();return lo.done?lo:iteratorValue(io,lo.value,lo.value,lo)})},to}(SetSeq),FromEntriesSequence=function(eo){function to(no){this._iter=no,this.size=no.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.entrySeq=function(){return this._iter.toSeq()},to.prototype.__iterate=function(io,so){var ao=this;return this._iter.__iterate(function(lo){if(lo){validateEntry(lo);var uo=isCollection(lo);return io(uo?lo.get(1):lo[1],uo?lo.get(0):lo[0],ao)}},so)},to.prototype.__iterator=function(io,so){var ao=this._iter.__iterator(ITERATE_VALUES,so);return new Iterator(function(){for(;;){var lo=ao.next();if(lo.done)return lo;var uo=lo.value;if(uo){validateEntry(uo);var ho=isCollection(uo);return iteratorValue(io,ho?uo.get(0):uo[0],ho?uo.get(1):uo[1],lo)}}})},to}(KeyedSeq);ToIndexedSequence.prototype.cacheResult=ToKeyedSequence.prototype.cacheResult=ToSetSequence.prototype.cacheResult=FromEntriesSequence.prototype.cacheResult=cacheResultThrough;function flipFactory(eo){var to=makeSequence(eo);return to._iter=eo,to.size=eo.size,to.flip=function(){return eo},to.reverse=function(){var no=eo.reverse.apply(this);return no.flip=function(){return eo.reverse()},no},to.has=function(no){return eo.includes(no)},to.includes=function(no){return eo.has(no)},to.cacheResult=cacheResultThrough,to.__iterateUncached=function(no,io){var so=this;return eo.__iterate(function(ao,lo){return no(lo,ao,so)!==!1},io)},to.__iteratorUncached=function(no,io){if(no===ITERATE_ENTRIES){var so=eo.__iterator(no,io);return new Iterator(function(){var ao=so.next();if(!ao.done){var lo=ao.value[0];ao.value[0]=ao.value[1],ao.value[1]=lo}return ao})}return eo.__iterator(no===ITERATE_VALUES?ITERATE_KEYS:ITERATE_VALUES,io)},to}function mapFactory(eo,to,no){var io=makeSequence(eo);return io.size=eo.size,io.has=function(so){return eo.has(so)},io.get=function(so,ao){var lo=eo.get(so,NOT_SET);return lo===NOT_SET?ao:to.call(no,lo,so,eo)},io.__iterateUncached=function(so,ao){var lo=this;return eo.__iterate(function(uo,ho,go){return so(to.call(no,uo,ho,go),ho,lo)!==!1},ao)},io.__iteratorUncached=function(so,ao){var lo=eo.__iterator(ITERATE_ENTRIES,ao);return new Iterator(function(){var uo=lo.next();if(uo.done)return uo;var ho=uo.value,go=ho[0];return iteratorValue(so,go,to.call(no,ho[1],go,eo),uo)})},io}function reverseFactory(eo,to){var no=this,io=makeSequence(eo);return io._iter=eo,io.size=eo.size,io.reverse=function(){return eo},eo.flip&&(io.flip=function(){var so=flipFactory(eo);return so.reverse=function(){return eo.flip()},so}),io.get=function(so,ao){return eo.get(to?so:-1-so,ao)},io.has=function(so){return eo.has(to?so:-1-so)},io.includes=function(so){return eo.includes(so)},io.cacheResult=cacheResultThrough,io.__iterate=function(so,ao){var lo=this,uo=0;return ao&&ensureSize(eo),eo.__iterate(function(ho,go){return so(ho,to?go:ao?lo.size-++uo:uo++,lo)},!ao)},io.__iterator=function(so,ao){var lo=0;ao&&ensureSize(eo);var uo=eo.__iterator(ITERATE_ENTRIES,!ao);return new Iterator(function(){var ho=uo.next();if(ho.done)return ho;var go=ho.value;return iteratorValue(so,to?go[0]:ao?no.size-++lo:lo++,go[1],ho)})},io}function filterFactory(eo,to,no,io){var so=makeSequence(eo);return io&&(so.has=function(ao){var lo=eo.get(ao,NOT_SET);return lo!==NOT_SET&&!!to.call(no,lo,ao,eo)},so.get=function(ao,lo){var uo=eo.get(ao,NOT_SET);return uo!==NOT_SET&&to.call(no,uo,ao,eo)?uo:lo}),so.__iterateUncached=function(ao,lo){var uo=this,ho=0;return eo.__iterate(function(go,mo,yo){if(to.call(no,go,mo,yo))return ho++,ao(go,io?mo:ho-1,uo)},lo),ho},so.__iteratorUncached=function(ao,lo){var uo=eo.__iterator(ITERATE_ENTRIES,lo),ho=0;return new Iterator(function(){for(;;){var go=uo.next();if(go.done)return go;var mo=go.value,yo=mo[0],So=mo[1];if(to.call(no,So,yo,eo))return iteratorValue(ao,io?yo:ho++,So,go)}})},so}function countByFactory(eo,to,no){var io=Map$5().asMutable();return eo.__iterate(function(so,ao){io.update(to.call(no,so,ao,eo),0,function(lo){return lo+1})}),io.asImmutable()}function groupByFactory(eo,to,no){var io=isKeyed(eo),so=(isOrdered(eo)?OrderedMap():Map$5()).asMutable();eo.__iterate(function(lo,uo){so.update(to.call(no,lo,uo,eo),function(ho){return ho=ho||[],ho.push(io?[uo,lo]:lo),ho})});var ao=collectionClass(eo);return so.map(function(lo){return reify(eo,ao(lo))}).asImmutable()}function partitionFactory(eo,to,no){var io=isKeyed(eo),so=[[],[]];eo.__iterate(function(lo,uo){so[to.call(no,lo,uo,eo)?1:0].push(io?[uo,lo]:lo)});var ao=collectionClass(eo);return so.map(function(lo){return reify(eo,ao(lo))})}function sliceFactory(eo,to,no,io){var so=eo.size;if(wholeSlice(to,no,so))return eo;var ao=resolveBegin(to,so),lo=resolveEnd(no,so);if(ao!==ao||lo!==lo)return sliceFactory(eo.toSeq().cacheResult(),to,no,io);var uo=lo-ao,ho;uo===uo&&(ho=uo<0?0:uo);var go=makeSequence(eo);return go.size=ho===0?ho:eo.size&&ho||void 0,!io&&isSeq(eo)&&ho>=0&&(go.get=function(mo,yo){return mo=wrapIndex(this,mo),mo>=0&&moho)return iteratorDone();var Co=So.next();return io||mo===ITERATE_VALUES||Co.done?Co:mo===ITERATE_KEYS?iteratorValue(mo,ko-1,void 0,Co):iteratorValue(mo,ko-1,Co.value[1],Co)})},go}function takeWhileFactory(eo,to,no){var io=makeSequence(eo);return io.__iterateUncached=function(so,ao){var lo=this;if(ao)return this.cacheResult().__iterate(so,ao);var uo=0;return eo.__iterate(function(ho,go,mo){return to.call(no,ho,go,mo)&&++uo&&so(ho,go,lo)}),uo},io.__iteratorUncached=function(so,ao){var lo=this;if(ao)return this.cacheResult().__iterator(so,ao);var uo=eo.__iterator(ITERATE_ENTRIES,ao),ho=!0;return new Iterator(function(){if(!ho)return iteratorDone();var go=uo.next();if(go.done)return go;var mo=go.value,yo=mo[0],So=mo[1];return to.call(no,So,yo,lo)?so===ITERATE_ENTRIES?go:iteratorValue(so,yo,So,go):(ho=!1,iteratorDone())})},io}function skipWhileFactory(eo,to,no,io){var so=makeSequence(eo);return so.__iterateUncached=function(ao,lo){var uo=this;if(lo)return this.cacheResult().__iterate(ao,lo);var ho=!0,go=0;return eo.__iterate(function(mo,yo,So){if(!(ho&&(ho=to.call(no,mo,yo,So))))return go++,ao(mo,io?yo:go-1,uo)}),go},so.__iteratorUncached=function(ao,lo){var uo=this;if(lo)return this.cacheResult().__iterator(ao,lo);var ho=eo.__iterator(ITERATE_ENTRIES,lo),go=!0,mo=0;return new Iterator(function(){var yo,So,_o;do{if(yo=ho.next(),yo.done)return io||ao===ITERATE_VALUES?yo:ao===ITERATE_KEYS?iteratorValue(ao,mo++,void 0,yo):iteratorValue(ao,mo++,yo.value[1],yo);var ko=yo.value;So=ko[0],_o=ko[1],go&&(go=to.call(no,_o,So,uo))}while(go);return ao===ITERATE_ENTRIES?yo:iteratorValue(ao,So,_o,yo)})},so}function concatFactory(eo,to){var no=isKeyed(eo),io=[eo].concat(to).map(function(lo){return isCollection(lo)?no&&(lo=KeyedCollection(lo)):lo=no?keyedSeqFromValue(lo):indexedSeqFromValue(Array.isArray(lo)?lo:[lo]),lo}).filter(function(lo){return lo.size!==0});if(io.length===0)return eo;if(io.length===1){var so=io[0];if(so===eo||no&&isKeyed(so)||isIndexed(eo)&&isIndexed(so))return so}var ao=new ArraySeq(io);return no?ao=ao.toKeyedSeq():isIndexed(eo)||(ao=ao.toSetSeq()),ao=ao.flatten(!0),ao.size=io.reduce(function(lo,uo){if(lo!==void 0){var ho=uo.size;if(ho!==void 0)return lo+ho}},0),ao}function flattenFactory(eo,to,no){var io=makeSequence(eo);return io.__iterateUncached=function(so,ao){if(ao)return this.cacheResult().__iterate(so,ao);var lo=0,uo=!1;function ho(go,mo){go.__iterate(function(yo,So){return(!to||mo0}function zipWithFactory(eo,to,no,io){var so=makeSequence(eo),ao=new ArraySeq(no).map(function(lo){return lo.size});return so.size=io?ao.max():ao.min(),so.__iterate=function(lo,uo){for(var ho=this.__iterator(ITERATE_VALUES,uo),go,mo=0;!(go=ho.next()).done&&lo(go.value,mo++,this)!==!1;);return mo},so.__iteratorUncached=function(lo,uo){var ho=no.map(function(yo){return yo=Collection$2(yo),getIterator(uo?yo.reverse():yo)}),go=0,mo=!1;return new Iterator(function(){var yo;return mo||(yo=ho.map(function(So){return So.next()}),mo=io?yo.every(function(So){return So.done}):yo.some(function(So){return So.done})),mo?iteratorDone():iteratorValue(lo,go++,to.apply(null,yo.map(function(So){return So.value})))})},so}function reify(eo,to){return eo===to?eo:isSeq(eo)?to:eo.constructor(to)}function validateEntry(eo){if(eo!==Object(eo))throw new TypeError("Expected [K, V] tuple: "+eo)}function collectionClass(eo){return isKeyed(eo)?KeyedCollection:isIndexed(eo)?IndexedCollection:SetCollection}function makeSequence(eo){return Object.create((isKeyed(eo)?KeyedSeq:isIndexed(eo)?IndexedSeq:SetSeq).prototype)}function cacheResultThrough(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Seq.prototype.cacheResult.call(this)}function defaultComparator(eo,to){return eo===void 0&&to===void 0?0:eo===void 0?1:to===void 0?-1:eo>to?1:eo0;)to[no]=arguments[no+1];if(typeof eo!="function")throw new TypeError("Invalid merger function: "+eo);return mergeIntoKeyedWith(this,to,eo)}function mergeIntoKeyedWith(eo,to,no){for(var io=[],so=0;so0;)to[no]=arguments[no+1];return mergeDeepWithSources(this,to,eo)}function mergeIn(eo){for(var to=[],no=arguments.length-1;no-- >0;)to[no]=arguments[no+1];return updateIn$1(this,eo,emptyMap(),function(io){return mergeWithSources(io,to)})}function mergeDeepIn(eo){for(var to=[],no=arguments.length-1;no-- >0;)to[no]=arguments[no+1];return updateIn$1(this,eo,emptyMap(),function(io){return mergeDeepWithSources(io,to)})}function withMutations(eo){var to=this.asMutable();return eo(to),to.wasAltered()?to.__ensureOwner(this.__ownerID):this}function asMutable(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)}function asImmutable(){return this.__ensureOwner()}function wasAltered(){return this.__altered}var Map$5=function(eo){function to(no){return no==null?emptyMap():isMap$2(no)&&!isOrdered(no)?no:emptyMap().withMutations(function(io){var so=eo(no);assertNotInfinite(so.size),so.forEach(function(ao,lo){return io.set(lo,ao)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){for(var io=[],so=arguments.length;so--;)io[so]=arguments[so];return emptyMap().withMutations(function(ao){for(var lo=0;lo=io.length)throw new Error("Missing value for key: "+io[lo]);ao.set(io[lo],io[lo+1])}})},to.prototype.toString=function(){return this.__toString("Map {","}")},to.prototype.get=function(io,so){return this._root?this._root.get(0,void 0,io,so):so},to.prototype.set=function(io,so){return updateMap(this,io,so)},to.prototype.remove=function(io){return updateMap(this,io,NOT_SET)},to.prototype.deleteAll=function(io){var so=Collection$2(io);return so.size===0?this:this.withMutations(function(ao){so.forEach(function(lo){return ao.remove(lo)})})},to.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):emptyMap()},to.prototype.sort=function(io){return OrderedMap(sortFactory(this,io))},to.prototype.sortBy=function(io,so){return OrderedMap(sortFactory(this,so,io))},to.prototype.map=function(io,so){var ao=this;return this.withMutations(function(lo){lo.forEach(function(uo,ho){lo.set(ho,io.call(so,uo,ho,ao))})})},to.prototype.__iterator=function(io,so){return new MapIterator(this,io,so)},to.prototype.__iterate=function(io,so){var ao=this,lo=0;return this._root&&this._root.iterate(function(uo){return lo++,io(uo[1],uo[0],ao)},so),lo},to.prototype.__ensureOwner=function(io){return io===this.__ownerID?this:io?makeMap(this.size,this._root,io,this.__hash):this.size===0?emptyMap():(this.__ownerID=io,this.__altered=!1,this)},to}(KeyedCollection);Map$5.isMap=isMap$2;var MapPrototype=Map$5.prototype;MapPrototype[IS_MAP_SYMBOL]=!0;MapPrototype[DELETE]=MapPrototype.remove;MapPrototype.removeAll=MapPrototype.deleteAll;MapPrototype.setIn=setIn;MapPrototype.removeIn=MapPrototype.deleteIn=deleteIn;MapPrototype.update=update$2;MapPrototype.updateIn=updateIn;MapPrototype.merge=MapPrototype.concat=merge$1$1;MapPrototype.mergeWith=mergeWith$1;MapPrototype.mergeDeep=mergeDeep;MapPrototype.mergeDeepWith=mergeDeepWith;MapPrototype.mergeIn=mergeIn;MapPrototype.mergeDeepIn=mergeDeepIn;MapPrototype.withMutations=withMutations;MapPrototype.wasAltered=wasAltered;MapPrototype.asImmutable=asImmutable;MapPrototype["@@transducer/init"]=MapPrototype.asMutable=asMutable;MapPrototype["@@transducer/step"]=function(eo,to){return eo.set(to[0],to[1])};MapPrototype["@@transducer/result"]=function(eo){return eo.asImmutable()};var ArrayMapNode=function(to,no){this.ownerID=to,this.entries=no};ArrayMapNode.prototype.get=function(to,no,io,so){for(var ao=this.entries,lo=0,uo=ao.length;lo=MAX_ARRAY_MAP_SIZE)return createNodes$1(to,go,so,ao);var _o=to&&to===this.ownerID,ko=_o?go:arrCopy(go);return So?ho?mo===yo-1?ko.pop():ko[mo]=ko.pop():ko[mo]=[so,ao]:ko.push([so,ao]),_o?(this.entries=ko,this):new ArrayMapNode(to,ko)}};var BitmapIndexedNode=function(to,no,io){this.ownerID=to,this.bitmap=no,this.nodes=io};BitmapIndexedNode.prototype.get=function(to,no,io,so){no===void 0&&(no=hash$2(io));var ao=1<<((to===0?no:no>>>to)&MASK),lo=this.bitmap;return lo&ao?this.nodes[popCount(lo&ao-1)].get(to+SHIFT,no,io,so):so};BitmapIndexedNode.prototype.update=function(to,no,io,so,ao,lo,uo){io===void 0&&(io=hash$2(so));var ho=(no===0?io:io>>>no)&MASK,go=1<=MAX_BITMAP_INDEXED_SIZE)return expandNodes(to,_o,mo,ho,Co);if(yo&&!Co&&_o.length===2&&isLeafNode(_o[So^1]))return _o[So^1];if(yo&&Co&&_o.length===1&&isLeafNode(Co))return Co;var $o=to&&to===this.ownerID,Ro=yo?Co?mo:mo^go:mo|go,Oo=yo?Co?setAt(_o,So,Co,$o):spliceOut(_o,So,$o):spliceIn(_o,So,Co,$o);return $o?(this.bitmap=Ro,this.nodes=Oo,this):new BitmapIndexedNode(to,Ro,Oo)};var HashArrayMapNode=function(to,no,io){this.ownerID=to,this.count=no,this.nodes=io};HashArrayMapNode.prototype.get=function(to,no,io,so){no===void 0&&(no=hash$2(io));var ao=(to===0?no:no>>>to)&MASK,lo=this.nodes[ao];return lo?lo.get(to+SHIFT,no,io,so):so};HashArrayMapNode.prototype.update=function(to,no,io,so,ao,lo,uo){io===void 0&&(io=hash$2(so));var ho=(no===0?io:io>>>no)&MASK,go=ao===NOT_SET,mo=this.nodes,yo=mo[ho];if(go&&!yo)return this;var So=updateNode(yo,to,no+SHIFT,io,so,ao,lo,uo);if(So===yo)return this;var _o=this.count;if(!yo)_o++;else if(!So&&(_o--,_o>>no)&MASK,lo=(no===0?io:io>>>no)&MASK,uo,ho=ao===lo?[mergeIntoNode(eo,to,no+SHIFT,io,so)]:(uo=new ValueNode(to,io,so),ao>>=1)lo[uo]=no&1?to[ao++]:void 0;return lo[io]=so,new HashArrayMapNode(eo,ao+1,lo)}function popCount(eo){return eo-=eo>>1&1431655765,eo=(eo&858993459)+(eo>>2&858993459),eo=eo+(eo>>4)&252645135,eo+=eo>>8,eo+=eo>>16,eo&127}function setAt(eo,to,no,io){var so=io?eo:arrCopy(eo);return so[to]=no,so}function spliceIn(eo,to,no,io){var so=eo.length+1;if(io&&to+1===so)return eo[to]=no,eo;for(var ao=new Array(so),lo=0,uo=0;uo0&&ao=0&&io>>no&MASK;if(so>=this.array.length)return new VNode([],to);var ao=so===0,lo;if(no>0){var uo=this.array[so];if(lo=uo&&uo.removeBefore(to,no-SHIFT,io),lo===uo&&ao)return this}if(ao&&!lo)return this;var ho=editableVNode(this,to);if(!ao)for(var go=0;go>>no&MASK;if(so>=this.array.length)return this;var ao;if(no>0){var lo=this.array[so];if(ao=lo&&lo.removeAfter(to,no-SHIFT,io),ao===lo&&so===this.array.length-1)return this}var uo=editableVNode(this,to);return uo.array.splice(so+1),ao&&(uo.array[so]=ao),uo};var DONE={};function iterateList(eo,to){var no=eo._origin,io=eo._capacity,so=getTailOffset(io),ao=eo._tail;return lo(eo._root,eo._level,0);function lo(go,mo,yo){return mo===0?uo(go,yo):ho(go,mo,yo)}function uo(go,mo){var yo=mo===so?ao&&ao.array:go&&go.array,So=mo>no?0:no-mo,_o=io-mo;return _o>SIZE&&(_o=SIZE),function(){if(So===_o)return DONE;var ko=to?--_o:So++;return yo&&yo[ko]}}function ho(go,mo,yo){var So,_o=go&&go.array,ko=yo>no?0:no-yo>>mo,Co=(io-yo>>mo)+1;return Co>SIZE&&(Co=SIZE),function(){for(;;){if(So){var $o=So();if($o!==DONE)return $o;So=null}if(ko===Co)return DONE;var Ro=to?--Co:ko++;So=lo(_o&&_o[Ro],mo-SHIFT,yo+(Ro<=eo.size||to<0)return eo.withMutations(function(lo){to<0?setListBounds(lo,to).set(0,no):setListBounds(lo,0,to+1).set(to,no)});to+=eo._origin;var io=eo._tail,so=eo._root,ao=MakeRef();return to>=getTailOffset(eo._capacity)?io=updateVNode(io,eo.__ownerID,0,to,no,ao):so=updateVNode(so,eo.__ownerID,eo._level,to,no,ao),ao.value?eo.__ownerID?(eo._root=so,eo._tail=io,eo.__hash=void 0,eo.__altered=!0,eo):makeList(eo._origin,eo._capacity,eo._level,so,io):eo}function updateVNode(eo,to,no,io,so,ao){var lo=io>>>no&MASK,uo=eo&&lo0){var go=eo&&eo.array[lo],mo=updateVNode(go,to,no-SHIFT,io,so,ao);return mo===go?eo:(ho=editableVNode(eo,to),ho.array[lo]=mo,ho)}return uo&&eo.array[lo]===so?eo:(ao&&SetRef(ao),ho=editableVNode(eo,to),so===void 0&&lo===ho.array.length-1?ho.array.pop():ho.array[lo]=so,ho)}function editableVNode(eo,to){return to&&eo&&to===eo.ownerID?eo:new VNode(eo?eo.array.slice():[],to)}function listNodeFor(eo,to){if(to>=getTailOffset(eo._capacity))return eo._tail;if(to<1<0;)no=no.array[to>>>io&MASK],io-=SHIFT;return no}}function setListBounds(eo,to,no){to!==void 0&&(to|=0),no!==void 0&&(no|=0);var io=eo.__ownerID||new OwnerID,so=eo._origin,ao=eo._capacity,lo=so+to,uo=no===void 0?ao:no<0?ao+no:so+no;if(lo===so&&uo===ao)return eo;if(lo>=uo)return eo.clear();for(var ho=eo._level,go=eo._root,mo=0;lo+mo<0;)go=new VNode(go&&go.array.length?[void 0,go]:[],io),ho+=SHIFT,mo+=1<=1<yo?new VNode([],io):_o;if(_o&&So>yo&&loSHIFT;$o-=SHIFT){var Ro=yo>>>$o&MASK;Co=Co.array[Ro]=editableVNode(Co.array[Ro],io)}Co.array[yo>>>SHIFT&MASK]=_o}if(uo=So)lo-=So,uo-=So,ho=SHIFT,go=null,ko=ko&&ko.removeBefore(io,0,lo);else if(lo>so||So>>ho&MASK;if(Oo!==So>>>ho&MASK)break;Oo&&(mo+=(1<so&&(go=go.removeBefore(io,ho,lo-mo)),go&&So>>SHIFT<=SIZE&&so.size>=io.size*2?(ho=so.filter(function(go,mo){return go!==void 0&&ao!==mo}),uo=ho.toKeyedSeq().map(function(go){return go[0]}).flip().toMap(),eo.__ownerID&&(uo.__ownerID=ho.__ownerID=eo.__ownerID)):(uo=io.remove(to),ho=ao===so.size-1?so.pop():so.set(ao,void 0))}else if(lo){if(no===so.get(ao)[1])return eo;uo=io,ho=so.set(ao,[to,no])}else uo=io.set(to,so.size),ho=so.set(so.size,[to,no]);return eo.__ownerID?(eo.size=uo.size,eo._map=uo,eo._list=ho,eo.__hash=void 0,eo.__altered=!0,eo):makeOrderedMap(uo,ho)}var IS_STACK_SYMBOL="@@__IMMUTABLE_STACK__@@";function isStack(eo){return!!(eo&&eo[IS_STACK_SYMBOL])}var Stack$2=function(eo){function to(no){return no==null?emptyStack():isStack(no)?no:emptyStack().pushAll(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.prototype.toString=function(){return this.__toString("Stack [","]")},to.prototype.get=function(io,so){var ao=this._head;for(io=wrapIndex(this,io);ao&&io--;)ao=ao.next;return ao?ao.value:so},to.prototype.peek=function(){return this._head&&this._head.value},to.prototype.push=function(){var io=arguments;if(arguments.length===0)return this;for(var so=this.size+arguments.length,ao=this._head,lo=arguments.length-1;lo>=0;lo--)ao={value:io[lo],next:ao};return this.__ownerID?(this.size=so,this._head=ao,this.__hash=void 0,this.__altered=!0,this):makeStack(so,ao)},to.prototype.pushAll=function(io){if(io=eo(io),io.size===0)return this;if(this.size===0&&isStack(io))return io;assertNotInfinite(io.size);var so=this.size,ao=this._head;return io.__iterate(function(lo){so++,ao={value:lo,next:ao}},!0),this.__ownerID?(this.size=so,this._head=ao,this.__hash=void 0,this.__altered=!0,this):makeStack(so,ao)},to.prototype.pop=function(){return this.slice(1)},to.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):emptyStack()},to.prototype.slice=function(io,so){if(wholeSlice(io,so,this.size))return this;var ao=resolveBegin(io,this.size),lo=resolveEnd(so,this.size);if(lo!==this.size)return eo.prototype.slice.call(this,io,so);for(var uo=this.size-ao,ho=this._head;ao--;)ho=ho.next;return this.__ownerID?(this.size=uo,this._head=ho,this.__hash=void 0,this.__altered=!0,this):makeStack(uo,ho)},to.prototype.__ensureOwner=function(io){return io===this.__ownerID?this:io?makeStack(this.size,this._head,io,this.__hash):this.size===0?emptyStack():(this.__ownerID=io,this.__altered=!1,this)},to.prototype.__iterate=function(io,so){var ao=this;if(so)return new ArraySeq(this.toArray()).__iterate(function(ho,go){return io(ho,go,ao)},so);for(var lo=0,uo=this._head;uo&&io(uo.value,lo++,this)!==!1;)uo=uo.next;return lo},to.prototype.__iterator=function(io,so){if(so)return new ArraySeq(this.toArray()).__iterator(io,so);var ao=0,lo=this._head;return new Iterator(function(){if(lo){var uo=lo.value;return lo=lo.next,iteratorValue(io,ao++,uo)}return iteratorDone()})},to}(IndexedCollection);Stack$2.isStack=isStack;var StackPrototype=Stack$2.prototype;StackPrototype[IS_STACK_SYMBOL]=!0;StackPrototype.shift=StackPrototype.pop;StackPrototype.unshift=StackPrototype.push;StackPrototype.unshiftAll=StackPrototype.pushAll;StackPrototype.withMutations=withMutations;StackPrototype.wasAltered=wasAltered;StackPrototype.asImmutable=asImmutable;StackPrototype["@@transducer/init"]=StackPrototype.asMutable=asMutable;StackPrototype["@@transducer/step"]=function(eo,to){return eo.unshift(to)};StackPrototype["@@transducer/result"]=function(eo){return eo.asImmutable()};function makeStack(eo,to,no,io){var so=Object.create(StackPrototype);return so.size=eo,so._head=to,so.__ownerID=no,so.__hash=io,so.__altered=!1,so}var EMPTY_STACK;function emptyStack(){return EMPTY_STACK||(EMPTY_STACK=makeStack(0))}var IS_SET_SYMBOL="@@__IMMUTABLE_SET__@@";function isSet$2(eo){return!!(eo&&eo[IS_SET_SYMBOL])}function isOrderedSet(eo){return isSet$2(eo)&&isOrdered(eo)}function deepEqual(eo,to){if(eo===to)return!0;if(!isCollection(to)||eo.size!==void 0&&to.size!==void 0&&eo.size!==to.size||eo.__hash!==void 0&&to.__hash!==void 0&&eo.__hash!==to.__hash||isKeyed(eo)!==isKeyed(to)||isIndexed(eo)!==isIndexed(to)||isOrdered(eo)!==isOrdered(to))return!1;if(eo.size===0&&to.size===0)return!0;var no=!isAssociative(eo);if(isOrdered(eo)){var io=eo.entries();return to.every(function(ho,go){var mo=io.next().value;return mo&&is$1(mo[1],ho)&&(no||is$1(mo[0],go))})&&io.next().done}var so=!1;if(eo.size===void 0)if(to.size===void 0)typeof eo.cacheResult=="function"&&eo.cacheResult();else{so=!0;var ao=eo;eo=to,to=ao}var lo=!0,uo=to.__iterate(function(ho,go){if(no?!eo.has(ho):so?!is$1(ho,eo.get(go,NOT_SET)):!is$1(eo.get(go,NOT_SET),ho))return lo=!1,!1});return lo&&eo.size===uo}function mixin(eo,to){var no=function(io){eo.prototype[io]=to[io]};return Object.keys(to).forEach(no),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(to).forEach(no),eo}function toJS(eo){if(!eo||typeof eo!="object")return eo;if(!isCollection(eo)){if(!isDataStructure(eo))return eo;eo=Seq(eo)}if(isKeyed(eo)){var to={};return eo.__iterate(function(io,so){to[so]=toJS(io)}),to}var no=[];return eo.__iterate(function(io){no.push(toJS(io))}),no}var Set$4=function(eo){function to(no){return no==null?emptySet():isSet$2(no)&&!isOrdered(no)?no:emptySet().withMutations(function(io){var so=eo(no);assertNotInfinite(so.size),so.forEach(function(ao){return io.add(ao)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.fromKeys=function(io){return this(KeyedCollection(io).keySeq())},to.intersect=function(io){return io=Collection$2(io).toArray(),io.length?SetPrototype.intersect.apply(to(io.pop()),io):emptySet()},to.union=function(io){return io=Collection$2(io).toArray(),io.length?SetPrototype.union.apply(to(io.pop()),io):emptySet()},to.prototype.toString=function(){return this.__toString("Set {","}")},to.prototype.has=function(io){return this._map.has(io)},to.prototype.add=function(io){return updateSet(this,this._map.set(io,io))},to.prototype.remove=function(io){return updateSet(this,this._map.remove(io))},to.prototype.clear=function(){return updateSet(this,this._map.clear())},to.prototype.map=function(io,so){var ao=this,lo=!1,uo=updateSet(this,this._map.mapEntries(function(ho){var go=ho[1],mo=io.call(so,go,go,ao);return mo!==go&&(lo=!0),[mo,mo]},so));return lo?uo:this},to.prototype.union=function(){for(var io=[],so=arguments.length;so--;)io[so]=arguments[so];return io=io.filter(function(ao){return ao.size!==0}),io.length===0?this:this.size===0&&!this.__ownerID&&io.length===1?this.constructor(io[0]):this.withMutations(function(ao){for(var lo=0;lo=0&&so=0&&aothis.size?no:this.find(function(io,so){return so===to},void 0,no)},has:function(to){return to=wrapIndex(this,to),to>=0&&(this.size!==void 0?this.size===1/0||toto?-1:0}function hashCollection(eo){if(eo.size===1/0)return 0;var to=isOrdered(eo),no=isKeyed(eo),io=to?1:0,so=eo.__iterate(no?to?function(ao,lo){io=31*io+hashMerge(hash$2(ao),hash$2(lo))|0}:function(ao,lo){io=io+hashMerge(hash$2(ao),hash$2(lo))|0}:to?function(ao){io=31*io+hash$2(ao)|0}:function(ao){io=io+hash$2(ao)|0});return murmurHashOfSize(so,io)}function murmurHashOfSize(eo,to){return to=imul(to,3432918353),to=imul(to<<15|to>>>-15,461845907),to=imul(to<<13|to>>>-13,5),to=(to+3864292196|0)^eo,to=imul(to^to>>>16,2246822507),to=imul(to^to>>>13,3266489909),to=smi(to^to>>>16),to}function hashMerge(eo,to){return eo^to+2654435769+(eo<<6)+(eo>>2)|0}var OrderedSet=function(eo){function to(no){return no==null?emptyOrderedSet():isOrderedSet(no)?no:emptyOrderedSet().withMutations(function(io){var so=SetCollection(no);assertNotInfinite(so.size),so.forEach(function(ao){return io.add(ao)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.fromKeys=function(io){return this(KeyedCollection(io).keySeq())},to.prototype.toString=function(){return this.__toString("OrderedSet {","}")},to}(Set$4);OrderedSet.isOrderedSet=isOrderedSet;var OrderedSetPrototype=OrderedSet.prototype;OrderedSetPrototype[IS_ORDERED_SYMBOL]=!0;OrderedSetPrototype.zip=IndexedCollectionPrototype.zip;OrderedSetPrototype.zipWith=IndexedCollectionPrototype.zipWith;OrderedSetPrototype.zipAll=IndexedCollectionPrototype.zipAll;OrderedSetPrototype.__empty=emptyOrderedSet;OrderedSetPrototype.__make=makeOrderedSet;function makeOrderedSet(eo,to){var no=Object.create(OrderedSetPrototype);return no.size=eo?eo.size:0,no._map=eo,no.__ownerID=to,no}var EMPTY_ORDERED_SET;function emptyOrderedSet(){return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()))}function throwOnInvalidDefaultValues(eo){if(isRecord(eo))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(isImmutable(eo))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(eo===null||typeof eo!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Record=function(to,no){var io;throwOnInvalidDefaultValues(to);var so=function(uo){var ho=this;if(uo instanceof so)return uo;if(!(this instanceof so))return new so(uo);if(!io){io=!0;var go=Object.keys(to),mo=ao._indices={};ao._name=no,ao._keys=go,ao._defaultValues=to;for(var yo=0;yo-1){var ao=propMap$1[to];if(!Array.isArray(ao))return prefix$2.js+pascalize(ao)in no?prefix$2.css+ao:!1;if(!so)return!1;for(var lo=0;loio?1:-1:no.length-io.length};return{onProcessStyle:function(no,io){if(io.type!=="style")return no;for(var so={},ao=Object.keys(no).sort(eo),lo=0;loMAX_RULES_PER_SHEET)&&(so=to.createStyleSheet().attach()),so};function lo(){var uo=arguments,ho=JSON.stringify(uo),go=no.get(ho);if(go)return go.className;var mo=[];for(var yo in uo){var So=uo[yo];if(!Array.isArray(So)){mo.push(So);continue}for(var _o=0;_oto=>!!pick$3(eo)(to),add$1=eo=>to=>{const no=to||0;return Array.isArray(eo)?eo.reduce((io,so)=>io|so,no):no|eo},pick$3=eo=>to=>(to||0)&eo,remove$3=eo=>to=>{const no=to||0;return Array.isArray(eo)?eo.reduce((io,so)=>io&~so,no):no&~eo},replace$2=eo=>()=>eo,EMPTY_STATUS=0,SELECTED_STATUS=1,ACTIVATED_STATUS=2;var GraphEdgeStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.ConnectedToSelected=4]="ConnectedToSelected",eo[eo.UnconnectedToSelected=8]="UnconnectedToSelected",eo[eo.Editing=16]="Editing"})(GraphEdgeStatus||(GraphEdgeStatus={}));var GraphNodeStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.Editing=4]="Editing",eo[eo.ConnectedToSelected=8]="ConnectedToSelected",eo[eo.UnconnectedToSelected=16]="UnconnectedToSelected"})(GraphNodeStatus||(GraphNodeStatus={}));var GraphPortStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.Connecting=4]="Connecting",eo[eo.ConnectingAsTarget=8]="ConnectingAsTarget"})(GraphPortStatus||(GraphPortStatus={}));const updateStatus=eo=>to=>{var no;const io=eo((no=to.status)!==null&&no!==void 0?no:0);return io===to.status?to:Object.assign(Object.assign({},to),{status:io})};function isNodeEditing(eo){return has$2(GraphNodeStatus.Editing)(eo.status)}function isSelected(eo){return has$2(SELECTED_STATUS)(eo.status)}function notSelected(eo){return!isSelected(eo)}const resetConnectStatus=eo=>to=>(to||0)&GraphNodeStatus.Activated|eo;class Debug{static log(to){}static warn(to){}static error(...to){console.error(...to)}static never(to,no){throw new Error(no??`${to} is unexpected`)}}const getNodeConfig=(eo,to)=>{const no=to.getNodeConfig(eo);if(!no){Debug.warn(`invalid node ${JSON.stringify(eo)}`);return}return no};function getRectWidth(eo,to){var no;const io=(no=eo==null?void 0:eo.getMinWidth(to))!==null&&no!==void 0?no:0;return to.width&&to.width>=io?to.width:io}function getRectHeight(eo,to){var no;const io=(no=eo==null?void 0:eo.getMinHeight(to))!==null&&no!==void 0?no:0;return to.height&&to.height>=io?to.height:io}function getNodeSize(eo,to){const no=getNodeConfig(eo,to),io=getRectWidth(no,eo);return{height:getRectHeight(no,eo),width:io}}function getGroupRect(eo,to,no){var io,so,ao,lo,uo,ho,go,mo;const yo=new Set(eo.nodeIds),So=Array.from(to.values()).filter(Bo=>yo.has(Bo.id)),_o=Math.min(...So.map(Bo=>Bo.x)),ko=Math.max(...So.map(Bo=>Bo.x+getNodeSize(Bo,no).width)),Co=Math.min(...So.map(Bo=>Bo.y)),$o=Math.max(...So.map(Bo=>Bo.y+getNodeSize(Bo,no).height)),Ro=_o-((so=(io=eo.padding)===null||io===void 0?void 0:io.left)!==null&&so!==void 0?so:0),Oo=Co-((lo=(ao=eo.padding)===null||ao===void 0?void 0:ao.top)!==null&&lo!==void 0?lo:0),No=$o-Oo+((ho=(uo=eo.padding)===null||uo===void 0?void 0:uo.bottom)!==null&&ho!==void 0?ho:0),Mo=ko-Ro+((mo=(go=eo.padding)===null||go===void 0?void 0:go.left)!==null&&mo!==void 0?mo:0);return{x:Ro,y:Oo,width:Mo,height:No}}var MouseEventButton;(function(eo){eo[eo.Primary=0]="Primary",eo[eo.Auxiliary=1]="Auxiliary",eo[eo.Secondary=2]="Secondary",eo[eo.Fourth=4]="Fourth",eo[eo.Fifth=5]="Fifth"})(MouseEventButton||(MouseEventButton={}));var MouseEventButtons;(function(eo){eo[eo.None=0]="None",eo[eo.Left=1]="Left",eo[eo.Right=2]="Right",eo[eo.Middle=4]="Middle"})(MouseEventButtons||(MouseEventButtons={}));const COPIED_NODE_SPACING=50,NODE_MIN_VISIBLE_LENGTH=5,NODE_MAX_VISIBLE_LENGTH=500,defaultColors={controlPointColor:"#333333",primaryColor:"#0078D4",defaultColor:"#CCCCCC",borderColor:"#B3B0AD",defaultBorderColor:"#FFFFFF",unConnectableBgColor:"#E1DFDD",defaultBackgroundColor:"#FFFFFF",portStroke:"#ccc",portFill:"#fff",connectedPortColor:"gray",nodeActivateFill:"#ffffff",nodeActivateStroke:"#0078D4",nodeFill:"#ffffff",nodeStroke:"#cccccc",contextMenuBackground:"#FFFFFF",contextMenuBorder:"#E1DFDD",contextMenuHoverBackground:"rgba(0, 120, 212, 0.05)",fontColor:"#000000",canvasBackground:"#EDEDED",minimapBackground:"#EDEDED",edgeColor:"#ccc",edgeColorSelected:"#015cda",minimapShadow:"#000000",outlineStyle:"none",focusOutlineColor:"#000000",dummyNodeStroke:"#015cda",inputFocusBorderAlt:"#0078d4",buttonBorder:"#797775",scrollbarColor:"#c8c8c8"},RectComponent=eo=>{const{style:to,node:no,width:io,height:so,textY:ao}=eo,lo=no.data&&no.data.comment?no.data.comment:"",uo=isNodeEditing(no);return jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("rect",{width:io,height:so,x:no.x,y:no.y,style:to,rx:to.borderRadius}),jsxRuntimeExports.jsx("text",Object.assign({x:no.x,y:ao,fontSize:12},{children:no.name})),no.data&&no.data.comment&&!uo&&jsxRuntimeExports.jsx("text",Object.assign({x:no.x,y:ao+20,fontSize:12,className:`comment-${no.id}`},{children:no.data.comment})),uo&&jsxRuntimeExports.jsx("foreignObject",Object.assign({x:no.x,y:ao,height:so/2.5,width:io-5},{children:jsxRuntimeExports.jsx("input",{value:lo,placeholder:"Input your comment here"})}))]},no.id)},rect$3={getMinHeight(){return 150},getMinWidth(){return 150},render(eo){const to=eo.model,no=getRectWidth(rect$3,to),io=getRectHeight(rect$3,to),so=has$2(GraphNodeStatus.Selected|GraphNodeStatus.Activated)(to.status)?{fill:defaultColors.nodeActivateFill,stroke:defaultColors.nodeActivateStroke}:{fill:defaultColors.nodeFill,fillOpacity:.1,stroke:defaultColors.nodeStroke,borderRadius:"5"},ao=to.y+io/3;return jsxRuntimeExports.jsx(RectComponent,{style:so,node:to,width:no,height:io,textY:ao})}},getCurvePathD=(eo,to,no,io)=>`M${eo},${no}C${eo},${no-getControlPointDistance(no,io)},${to},${io+5+getControlPointDistance(no,io)},${to},${io+5}`,getControlPointDistance=(eo,to)=>Math.min(5*15,Math.max(5*3,Math.abs((eo-(to+5))/2))),line$3={render(eo){const to=eo.model,no={cursor:"crosshair",stroke:has$2(GraphEdgeStatus.Selected)(to.status)?defaultColors.edgeColorSelected:defaultColors.edgeColor,strokeWidth:"2"};return jsxRuntimeExports.jsx("path",{d:getCurvePathD(eo.x2,eo.x1,eo.y2,eo.y1),fill:"none",style:no,id:`edge${to.id}`},to.id)}};class DefaultPort{getStyle(to,no,io,so,ao){const lo=defaultColors.portStroke;let uo=defaultColors.portFill;return(so||ao)&&(uo=defaultColors.connectedPortColor),has$2(GraphPortStatus.Activated)(to.status)&&(uo=defaultColors.primaryColor),{stroke:lo,fill:uo}}getIsConnectable(){return!0}render(to){const{model:no,data:io,parentNode:so}=to,ao=io.isPortConnectedAsSource(so.id,no.id),lo=io.isPortConnectedAsTarget(so.id,no.id),uo=this.getStyle(no,so,io,ao,lo),{x:ho,y:go}=to,mo=`${ho-5} ${go}, ${ho+7} ${go}, ${ho+1} ${go+8}`;return lo?jsxRuntimeExports.jsx("polygon",{points:mo,style:uo}):jsxRuntimeExports.jsx("circle",{r:5,cx:ho,cy:go,style:uo},`${to.parentNode.id}-${to.model.id}`)}}const defaultPort=new DefaultPort;class DefaultClipboard{constructor(to){this.storage=to}write(to){this.storage.setItem("graph-clipboard",JSON.stringify({nodes:to.nodes.map(no=>Object.assign(Object.assign({},no),{data:{}})),edges:to.edges.map(no=>Object.assign(Object.assign({},no),{data:{}}))}))}read(){const to=this.storage.getItem("graph-clipboard");if(!to)return null;try{const no=JSON.parse(to),io=new Map;return{nodes:no.nodes.map(so=>{const ao=v4();return io.set(so.id,ao),Object.assign(Object.assign({},so),{x:so.x+COPIED_NODE_SPACING,y:so.y+COPIED_NODE_SPACING,id:ao})}),edges:no.edges.map(so=>Object.assign(Object.assign({},so),{id:v4(),source:io.get(so.source)||"",target:io.get(so.target)||""}))}}catch{return null}}}class DefaultStorage{get length(){return this.items.size}constructor(){this.key=()=>"DefaultLocalStorage",this.items=new Map}clear(){this.items=new Map}setItem(to,no){this.items.set(to,no)}getItem(to){return this.items.has(to)?this.items.get(to):null}removeItem(to){this.items.delete(to)}}class GraphConfigBuilder{constructor(){const to=new DefaultStorage,no=new DefaultClipboard(to);this.draft={getNodeConfig:()=>rect$3,getEdgeConfig:()=>line$3,getPortConfig:()=>defaultPort,getGroupConfig:()=>{},getClipboard:()=>no}}static default(){return new GraphConfigBuilder}static from(to){return new GraphConfigBuilder().registerNode(to.getNodeConfig.bind(to)).registerEdge(to.getEdgeConfig.bind(to)).registerPort(to.getPortConfig.bind(to)).registerGroup(to.getGroupConfig.bind(to)).registerClipboard(to.getClipboard.bind(to))}registerNode(to){return this.draft.getNodeConfig=to,this}registerEdge(to){return this.draft.getEdgeConfig=to,this}registerPort(to){return this.draft.getPortConfig=to,this}registerGroup(to){return this.draft.getGroupConfig=to,this}registerClipboard(to){return this.draft.getClipboard=to,this}build(){return this.draft}}const GraphConfigContext=reactExports.createContext(GraphConfigBuilder.default().build());var MenuType;(function(eo){eo.Node="node",eo.Edge="edge",eo.Port="port",eo.Canvas="canvas",eo.Multi="multi"})(MenuType||(MenuType={}));const emptySelectBoxPosition=()=>({startX:0,startY:0,height:0,width:0});var GraphFeatures;(function(eo){eo.NodeDraggable="nodeDraggable",eo.NodeResizable="nodeResizable",eo.ClickNodeToSelect="clickNodeToSelect",eo.PanCanvas="panCanvas",eo.MultipleSelect="multipleSelect",eo.LassoSelect="lassoSelect",eo.Delete="delete",eo.AddNewNodes="addNewNodes",eo.AddNewEdges="addNewEdges",eo.AddNewPorts="addNewPorts",eo.AutoFit="autoFit",eo.CanvasHorizontalScrollable="canvasHorizontalScrollable",eo.CanvasVerticalScrollable="canvasVerticalScrollable",eo.NodeHoverView="nodeHoverView",eo.PortHoverView="portHoverView",eo.AddEdgesByKeyboard="addEdgesByKeyboard",eo.A11yFeatures="a11YFeatures",eo.EditNode="editNode",eo.AutoAlign="autoAlign",eo.UndoStack="undoStack",eo.CtrlKeyZoom="ctrlKeyZoom",eo.LimitBoundary="limitBoundary",eo.EditEdge="editEdge",eo.InvisibleScrollbar="InvisibleScrollbar"})(GraphFeatures||(GraphFeatures={}));GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.LassoSelect,GraphFeatures.Delete,GraphFeatures.AddNewNodes,GraphFeatures.AddNewEdges,GraphFeatures.AddNewPorts,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AddEdgesByKeyboard,GraphFeatures.A11yFeatures,GraphFeatures.AutoFit,GraphFeatures.EditNode,GraphFeatures.AutoAlign,GraphFeatures.UndoStack,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary,GraphFeatures.EditEdge;const defaultFeatures=new Set([GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.Delete,GraphFeatures.AddNewNodes,GraphFeatures.AddNewEdges,GraphFeatures.AddNewPorts,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AddEdgesByKeyboard,GraphFeatures.A11yFeatures,GraphFeatures.EditNode,GraphFeatures.AutoAlign,GraphFeatures.UndoStack,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary]),dataReadonlyMode=new Set([GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.A11yFeatures,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary]);GraphFeatures.ClickNodeToSelect,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.A11yFeatures,GraphFeatures.LassoSelect,GraphFeatures.LimitBoundary;GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AutoFit;const emptyDummyNodes=()=>({dx:0,dy:0,dWidth:0,dHeight:0,alignedDX:void 0,alignedDY:void 0,nodes:[],isVisible:!1}),is$1$1=Object.is;let MapIterator$1=class{constructor(to,no){this.upstream=to,this.f=no}[Symbol.iterator](){return this}next(){const to=this.upstream.next();return to.done?to:{done:!1,value:this.f(to.value)}}};var NodeType$1;(function(eo){eo[eo.Bitmap=0]="Bitmap",eo[eo.Collision=1]="Collision"})(NodeType$1||(NodeType$1={}));const HASH_CODE_LENGTH=30,BIT_PARTITION_SIZE=5,FULL_MASK=1073741823;function bitPosFrom(eo){return 1<>>to&31}function bitCount(eo){return eo|=0,eo-=eo>>>1&1431655765,eo=(eo&858993459)+(eo>>>2&858993459),eo=eo+(eo>>>4)&252645135,eo+=eo>>>8,eo+=eo>>>16,eo&127}let BitmapIndexedNode$1=class mne{get valueCount(){return this.values.length}get nodeCount(){return this.children.length}constructor(to,no,io,so,ao,lo,uo,ho){this.type=NodeType$1.Bitmap,this.owner=to,this.dataMap=no,this.nodeMap=io,this.keys=so,this.values=ao,this.children=lo,this.hashes=uo,this.size=ho}static empty(to){return new mne(to,0,0,[],[],[],[],0)}getKey(to){return this.keys[to]}getValue(to){return this.values[to]}getHash(to){return this.hashes[to]}getNode(to){return this.children[to]}contains(to,no,io){const so=maskFrom(no,io),ao=bitPosFrom(so),{dataMap:lo,nodeMap:uo}=this;if(lo&ao){const ho=indexFrom(lo,so,ao),go=this.getKey(ho);return is$1$1(go,to)}else if(uo&ao){const ho=indexFrom(uo,so,ao);return this.getNode(ho).contains(to,no,io+BIT_PARTITION_SIZE)}return!1}get(to,no,io){const so=maskFrom(no,io),ao=bitPosFrom(so),{dataMap:lo,nodeMap:uo}=this;if(lo&ao){const ho=indexFrom(lo,so,ao),go=this.getKey(ho);return is$1$1(go,to)?this.getValue(ho):void 0}else if(uo&ao){const ho=indexFrom(uo,so,ao);return this.getNode(ho).get(to,no,io+BIT_PARTITION_SIZE)}}insert(to,no,io,so,ao){const lo=maskFrom(so,ao),uo=bitPosFrom(lo),{dataMap:ho,nodeMap:go}=this;if(ho&uo){const mo=indexFrom(ho,lo,uo),yo=this.getKey(mo),So=this.getValue(mo),_o=this.getHash(mo);if(_o===so&&is$1$1(yo,no))return is$1$1(So,io)?this:this.setValue(to,io,mo);{const ko=mergeTwoKeyValPairs(to,yo,So,_o,no,io,so,ao+BIT_PARTITION_SIZE);return this.migrateInlineToNode(to,uo,ko)}}else if(go&uo){const mo=indexFrom(go,lo,uo),So=this.getNode(mo).insert(to,no,io,so,ao+BIT_PARTITION_SIZE);return this.setNode(to,1,So,uo)}return this.insertValue(to,uo,no,so,io)}update(to,no,io,so,ao){const lo=maskFrom(so,ao),uo=bitPosFrom(lo),{dataMap:ho,nodeMap:go}=this;if(ho&uo){const mo=indexFrom(ho,lo,uo),yo=this.getKey(mo);if(this.getHash(mo)===so&&is$1$1(yo,no)){const _o=this.getValue(mo),ko=io(_o);return is$1$1(_o,ko)?this:this.setValue(to,ko,mo)}}else if(go&uo){const mo=indexFrom(go,lo,uo),yo=this.getNode(mo),So=yo.update(to,no,io,so,ao+BIT_PARTITION_SIZE);return So===yo?this:this.setNode(to,0,So,uo)}return this}remove(to,no,io,so){const ao=maskFrom(io,so),lo=bitPosFrom(ao);if(this.dataMap&lo){const uo=indexFrom(this.dataMap,ao,lo),ho=this.getKey(uo);return is$1$1(ho,no)?this.removeValue(to,lo):void 0}else if(this.nodeMap&lo){const uo=indexFrom(this.nodeMap,ao,lo),ho=this.getNode(uo),go=ho.remove(to,no,io,so+BIT_PARTITION_SIZE);if(go===void 0)return;const[mo,yo]=go;return mo.size===1?this.size===ho.size?[new mne(to,lo,0,[mo.getKey(0)],[mo.getValue(0)],[],[mo.getHash(0)],1),yo]:[this.migrateNodeToInline(to,lo,mo),yo]:[this.setNode(to,-1,mo,lo),yo]}}toOwned(to){return this.owner===to?this:new mne(to,this.dataMap,this.nodeMap,this.keys.slice(),this.values.slice(),this.children.slice(),this.hashes.slice(),this.size)}iter(){return new BitmapIndexedNodeIterator(this)}map(to,no){const io=this.valueCount,so=[],ao=[],lo=[];let uo=!0;for(let ho=0;ho=HASH_CODE_LENGTH)return new HashCollisionNode$1(eo,io,[to,so],[no,ao]);{const ho=maskFrom(io,uo),go=maskFrom(lo,uo);if(ho!==go){const mo=bitPosFrom(ho)|bitPosFrom(go);return hois$1$1(io,to));return no>=0?this.values[no]:void 0}insert(to,no,io){const so=this.keys.findIndex(ao=>is$1$1(ao,no));if(so>=0){const ao=this.values[so];if(is$1$1(ao,io))return this;const lo=this.toOwned(to);return lo.values[so]=io,lo}else{const ao=this.toOwned(to);return ao.keys.push(no),ao.values.push(io),ao}}update(to,no,io){const so=this.keys.findIndex(ao=>is$1$1(ao,no));if(so>=0){const ao=this.values[so],lo=io(ao);if(is$1$1(ao,lo))return this;const uo=this.toOwned(to);return uo.values[so]=lo,uo}return this}remove(to,no){const io=this.keys.findIndex(ao=>is$1$1(ao,no));if(io===-1)return;const so=this.getValue(io);return[new gbe(to,this.hash,this.keys.filter((ao,lo)=>lo!==io),this.values.filter((ao,lo)=>lo!==io)),so]}getKey(to){return this.keys[to]}getValue(to){return this.values[to]}getHash(){return this.hash}iter(){return new HashCollisionNodeIterator(this)}map(to,no){const io=this.size,so=[];let ao=!1;for(let lo=0;lo=this.node.size)return{done:!0,value:void 0};const to=this.node.getKey(this.index),no=this.node.getValue(this.index);return this.index+=1,{done:!1,value:[to,no]}}clone(){const to=new HashCollisionNodeIterator(this.node);return to.index=this.index,to}}function hashing(eo){if(eo===null)return 1108378658;switch(typeof eo){case"boolean":return eo?839943201:839943200;case"number":return hashNumber$1(eo);case"string":return hashString$2(eo);case"object":case"function":case"symbol":throw new Error("Using object, function and symbol as hash map key is not supported");case"undefined":return 839943203;default:return hashString$2(String(eo))}}function hashString$2(eo){let to=0;for(let no=0;no4294967295;)eo/=4294967295,to^=eo;return smi$1(to)}function smi$1(eo){return eo&1073741823}let Uid$1=class{constructor(){this.id=0}take(){return this.id+=1,this.id}peek(){return this.id+1}};const uid$1=new Uid$1;class HashMap{get size(){return this.root.size}constructor(to){this.id=uid$1.take(),this.root=to}static empty(){return HashMapBuilder.empty().finish()}static from(to){return HashMapBuilder.from(to).finish()}get(to){const no=hashing(to);return this.root.get(to,no,0)}has(to){const no=hashing(to);return this.root.contains(to,no,0)}set(to,no){return this.withRoot(this.root.insert(uid$1.peek(),to,no,hashing(to),0))}update(to,no){return this.withRoot(this.root.update(uid$1.peek(),to,no,hashing(to),0))}delete(to){const no=hashing(to),io=uid$1.peek(),so=this.root.remove(io,to,no,0);return so===void 0?this:new HashMap(so[0])}clone(){return new HashMap(this.root)}[Symbol.iterator](){return this.entries()}entries(){return this.root.iter()}values(){return new MapIterator$1(this.entries(),([,to])=>to)}mutate(){return new HashMapBuilder(this.root)}map(to){return new HashMap(this.root.map(uid$1.peek(),to))}filter(to){const no=this.mutate();return this.forEach((io,so)=>{to(io,so)||no.delete(so)}),no.finish()}forEach(to){this.root.forEach(to)}find(to){return this.root.find(to)}withRoot(to){return to===this.root?this:new HashMap(to)}}class HashMapBuilder{constructor(to){this.id=uid$1.take(),this.root=to}static empty(){const to=uid$1.peek(),no=BitmapIndexedNode$1.empty(to);return new HashMapBuilder(no)}static from(to){if(Array.isArray(to))return HashMapBuilder.fromArray(to);const no=to[Symbol.iterator](),io=HashMapBuilder.empty();let so=no.next();for(;!so.done;){const[ao,lo]=so.value;io.set(ao,lo),so=no.next()}return io}static fromArray(to){const no=HashMapBuilder.empty();for(let io=0;io=to?no:io;const so=no+io>>>1;if(eo[so]===to)return so;to=MIN_SIZE$1)return go;if(io===so)return go.balanceTail(ho),go;const mo=this.getValue(io);return go.balanceChild(to,ho,uo,mo,io)}}removeMostRight(to){const no=this.selfSize,[io,so,ao]=this.getChild(no).removeMostRight(to),lo=this.toOwned(to);return lo.size-=1,lo.children[no]=ao,ao.selfSizeMIN_SIZE$1)this.rotateRight(no,uo,ao,lo);else if(ho.selfSize>MIN_SIZE$1)this.rotateLeft(no,ho,ao,lo);else{const go=uo.toOwned(to),mo=ho.toOwned(to),yo=no.getKey(HALF_NODE_SPLIT),So=no.getValue(HALF_NODE_SPLIT);go.keys.push(this.getKey(ao-1)),go.values.push(this.getValue(ao-1)),go.keys.push(...no.keys.slice(0,HALF_NODE_SPLIT)),go.values.push(...no.values.slice(0,HALF_NODE_SPLIT)),mo.keys.unshift(io),mo.values.unshift(so),mo.keys.unshift(...no.keys.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1)),mo.values.unshift(...no.values.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1)),this.keys.splice(ao-1,2,yo),this.values.splice(ao-1,2,So),this.children.splice(ao-1,3,go,mo),lo&&(go.children.push(...no.children.slice(0,HALF_NODE_SPLIT+1)),mo.children.unshift(...no.children.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1+1)),go.updateSize(),mo.updateSize())}return this}rotateLeft(to,no,io,so){const ao=no.toOwned(this.owner),lo=ao.keys.shift(),uo=ao.values.shift(),ho=this.getKey(io),go=this.getValue(io);if(to.keys.push(ho),to.values.push(go),this.keys[io]=lo,this.values[io]=uo,this.children[io+1]=ao,so){const mo=ao.children.shift();to.children.push(mo);const yo=mo.size+1;to.size+=yo,ao.size-=yo}}rotateRight(to,no,io,so){const ao=no.toOwned(this.owner),lo=ao.keys.pop(),uo=ao.values.pop(),ho=this.getKey(io-1),go=this.getValue(io-1);if(to.keys.unshift(ho),to.values.unshift(go),this.keys[io-1]=lo,this.values[io-1]=uo,this.children[io-1]=ao,so){const mo=ao.children.pop();to.children.unshift(mo);const yo=mo.size+1;to.size+=yo,ao.size-=yo}}balanceTail(to){const no=this.selfSize,io=this.getChild(no-1),so=to.type===NodeType$2.Internal;io.selfSize===MIN_SIZE$1?(to.keys.unshift(this.getKey(no-1)),to.values.unshift(this.getValue(no-1)),to.keys.unshift(...io.keys),to.values.unshift(...io.values),this.keys.splice(no-1,1),this.values.splice(no-1,1),this.children.splice(no-1,1),so&&(to.children.unshift(...io.children),to.size+=io.size+1)):this.rotateRight(to,io,no,so)}balanceHead(to){const no=this.getChild(1),io=to.type===NodeType$2.Internal;no.selfSize===MIN_SIZE$1?(to.keys.push(this.getKey(0)),to.values.push(this.getValue(0)),to.keys.push(...no.keys),to.values.push(...no.values),this.keys.splice(0,1),this.values.splice(0,1),this.children.splice(1,1),io&&(to.children.push(...no.children),to.size+=no.size+1)):this.rotateLeft(to,no,0,io)}updateWithSplit(to,no,io,so,ao,lo){const uo=this.toOwned(to);uo.keys.splice(lo,0,so),uo.values.splice(lo,0,ao),uo.children.splice(lo,1,no,io);const ho=new InternalNode(to,uo.keys.splice(16,16),uo.values.splice(16,16),uo.children.splice(16,17),0),go=uo.keys.pop(),mo=uo.values.pop();return uo.updateSize(),ho.updateSize(),[uo,ho,go,mo]}updateSize(){let to=this.selfSize;const no=this.children.length;for(let io=0;io{const[lo,uo]=ao,ho=no(uo);return is$1$1(ho,uo)?ao:[lo,ho]});return this.withRoot(this.itemId,this.hashRoot,so)}[Symbol.iterator](){return this.entries()}clone(){return new vne(this.itemId,this.hashRoot,this.sortedRoot)}entries(){return new OrderedMapIterator(new BTreeIterator(this.sortedRoot))}values(){return new MapIterator$1(this.entries(),([,to])=>to)}mutate(){return new OrderedMapBuilder(this.itemId,this.hashRoot,this.sortedRoot)}map(to){const no=uid.peek(),io=ao=>{const[lo,uo]=ao,ho=to(uo,lo);return is$1$1(uo,ho)?ao:[lo,ho]},so=this.sortedRoot.map(no,io);return new vne(this.itemId,this.hashRoot,so)}forEach(to){this.sortedRoot.forEach(([no,io])=>{to(io,no)})}find(to){const no=this.sortedRoot.find(([,io])=>to(io));return no?no[1]:void 0}first(){const to=this.entries().next();if(!to.done)return to.value[1]}filter(to){const no=this.mutate();return this.forEach((io,so)=>{to(io,so)||no.delete(so)}),no.finish()}withRoot(to,no,io){return no===this.hashRoot&&io===this.sortedRoot?this:new vne(to,no,io)}};class OrderedMapIterator{constructor(to){this.delegate=to}[Symbol.iterator](){return this.clone()}next(){const to=this.delegate.next();return to.done?{done:!0,value:void 0}:{done:!1,value:to.value[1]}}clone(){return new OrderedMapIterator(this.delegate.clone())}}class OrderedMapBuilder{constructor(to,no,io){this.id=uid.take(),this.itemId=to,this.hashRoot=no,this.sortedRoot=io}static empty(){const to=uid.peek(),no=BitmapIndexedNode$1.empty(to),io=emptyRoot(to);return new OrderedMapBuilder(0,no,io)}static from(to){if(Array.isArray(to))return OrderedMapBuilder.fromArray(to);const no=OrderedMapBuilder.empty(),io=to[Symbol.iterator]();let so=io.next();for(;!so.done;){const[ao,lo]=so.value;no.set(ao,lo),so=io.next()}return no}static fromArray(to){const no=OrderedMapBuilder.empty();for(let io=0;io{const[ao,lo]=so,uo=no(lo);return is$1$1(uo,lo)?so:[ao,uo]}),this):this}finish(){return new OrderedMap$1(this.itemId,this.hashRoot,this.sortedRoot)}}const getPortPosition=(eo,to,no)=>{const io=getRectWidth(no,eo),so=getRectHeight(no,eo),ao=to.position?to.position[0]*io:io*.5,lo=eo.x+ao,uo=to.position?to.position[1]*so:so,ho=eo.y+uo;return{x:lo,y:ho}},getPortPositionByPortId=(eo,to,no)=>{const io=getNodeConfig(eo,no);if(!io)return;const ao=(eo.ports||[]).find(lo=>lo.id===to);if(!ao){Debug.warn(`invalid port id ${JSON.stringify(ao)}`);return}return getPortPosition(eo,ao,io)},identical=eo=>eo;var BrowserType;(function(eo){eo.Unknown="Unknown",eo.Edge="Edge",eo.EdgeChromium="EdgeChromium",eo.Opera="Opera",eo.Chrome="Chrome",eo.IE="IE",eo.Firefox="Firefox",eo.Safari="Safari",eo.Electron="Electron"})(BrowserType||(BrowserType={}));const getBrowser=()=>{const eo=navigator.userAgent.toLowerCase();if(eo.indexOf("electron")>-1)return BrowserType.Electron;switch(!0){case eo.indexOf("edge")>-1:return BrowserType.Edge;case eo.indexOf("edg")>-1:return BrowserType.EdgeChromium;case(eo.indexOf("opr")>-1&&!!window.opr):return BrowserType.Opera;case(eo.indexOf("chrome")>-1&&!!window.chrome):return BrowserType.Chrome;case eo.indexOf("trident")>-1:return BrowserType.IE;case eo.indexOf("firefox")>-1:return BrowserType.Firefox;case eo.indexOf("safari")>-1:return BrowserType.Safari;default:return BrowserType.Unknown}},isMacOs=navigator.userAgent.includes("Macintosh"),metaControl=eo=>isMacOs?eo.metaKey:eo.ctrlKey,checkIsMultiSelect=eo=>eo.shiftKey||metaControl(eo),transformPoint=(eo,to,no)=>({x:no[0]*eo+no[2]*to+no[4],y:no[1]*eo+no[3]*to+no[5]}),reverseTransformPoint=(eo,to,no)=>{const[io,so,ao,lo,uo,ho]=no;return{x:((eo-uo)*lo-(to-ho)*ao)/(io*lo-so*ao),y:((eo-uo)*so-(to-ho)*io)/(so*ao-io*lo)}},getPointDeltaByClientDelta=(eo,to,no)=>{const[io,so,ao,lo]=no,uo=lo*eo/(io*lo-so*ao)+ao*to/(so*ao-io*lo),ho=so*eo/(so*ao-io*lo)+io*to/(io*lo-so*ao);return{x:uo,y:ho}},getClientDeltaByPointDelta=(eo,to,no)=>{if(!no)return{x:eo,y:to};const[io,so,ao,lo]=no;return transformPoint(eo,to,[io,so,ao,lo,0,0])},getRealPointFromClientPoint=(eo,to,no)=>{const{rect:io}=no,so=eo-io.left,ao=to-io.top;return reverseTransformPoint(so,ao,no.transformMatrix)},getClientPointFromRealPoint=(eo,to,no)=>{const{x:io,y:so}=transformPoint(eo,to,no.transformMatrix),{rect:ao}=no;return{x:io+ao.left,y:so+ao.top}},getContainerClientPoint=(eo,to,no)=>{const io=getClientPointFromRealPoint(eo,to,no),{rect:so}=no;return{x:io.x-so.left,y:io.y-so.top}};function markEdgeDirty(eo,to){eo.update(to,no=>no.shallow())}const getNearestConnectablePort=eo=>{const{parentNode:to,clientX:no,clientY:io,graphConfig:so,viewport:ao}=eo;let lo=1/0,uo;if(!to.ports)return;const ho=getRealPointFromClientPoint(no,io,ao);return to.ports.forEach(go=>{if(isConnectable(so,Object.assign(Object.assign({},eo),{model:go}))){const mo=getPortPositionByPortId(to,go.id,so);if(!mo)return;const yo=ho.x-mo.x,So=ho.y-mo.y,_o=yo*yo+So*So;_o{const no=eo.getPortConfig(to.model);return no?no.getIsConnectable(to):!1},unSelectAllEntity=()=>eo=>eo.mapNodes(to=>to.update(no=>{var io;const so=Object.assign(Object.assign({},no),{ports:(io=no.ports)===null||io===void 0?void 0:io.map(updateStatus(replace$2(GraphPortStatus.Default)))});return updateStatus(replace$2(GraphNodeStatus.Default))(so)})).mapEdges(to=>to.update(updateStatus(replace$2(GraphEdgeStatus.Default)))),nodeSelection=(eo,to)=>{if(isNodeEditing(to))return identical;const no=checkIsMultiSelect(eo);return isSelected(to)&&!no?identical:io=>{const so=no?ao=>ao.id!==to.id?isSelected(ao):eo.button===MouseEventButton.Secondary?!0:!isSelected(to):ao=>ao.id===to.id;return io.selectNodes(so,to.id)}},getNodeAutomationId=eo=>{var to;return`node-container-${(to=eo.name)!==null&&to!==void 0?to:"unnamed"}-${eo.id}`},getPortAutomationId=(eo,to)=>`port-${to.name}-${to.id}-${eo.name}-${eo.id}`,getNodeUid=(eo,to)=>`node:${eo}:${to.id}`,getPortUid=(eo,to,no)=>`port:${eo}:${to.id}:${no.id}`,getEdgeUid=(eo,to)=>`edge:${eo}:${to.id}`;function preventSpread(eo){Object.defineProperty(eo,"__preventSpread",{enumerable:!0,configurable:!1,get(){document.currentScript&&Debug.error(`${eo.constructor.name} is a class, which should not be used in the spread syntax or argument of Object.assign`)}})}class EdgeModel{get id(){return this.inner.id}get automationId(){return this.inner.automationId}get source(){return this.inner.source}get target(){return this.inner.target}get sourcePortId(){return this.inner.sourcePortId}get targetPortId(){return this.inner.targetPortId}get status(){return this.inner.status}get data(){return this.inner.data}constructor(to){this.inner=to,preventSpread(this)}static fromJSON(to){return new EdgeModel(to)}updateStatus(to){return this.update(updateStatus(to))}update(to){const no=to(this.inner);return no===this.inner?this:new EdgeModel(no)}shallow(){return new EdgeModel(this.inner)}toJSON(){return this.inner}}const is$2=Object.is;function mapCow(eo,to){const no=[];let io=!0;for(let so=0;soio.id===to)}link({prev:to,next:no}){return to===this.prev&&no===this.next?this:new fP(this.inner,this.portPositionCache,to??this.prev,no??this.next)}updateStatus(to){return this.update(updateStatus(to))}update(to){const no=to(this.inner);return no===this.inner?this:new fP(no,new Map,this.prev,this.next)}updateData(to){return this.data?this.update(no=>{const io=to(no.data);return io===no.data?no:Object.assign(Object.assign({},no),{data:io})}):this}getPortPosition(to,no){let io=this.portPositionCache.get(to);return io||(io=getPortPositionByPortId(this.inner,to,no),this.portPositionCache.set(to,io)),io}hasPort(to){var no;return!!(!((no=this.inner.ports)===null||no===void 0)&&no.find(io=>io.id===to))}updatePositionAndSize(to){const{x:no,y:io,width:so,height:ao}=to,lo=Object.assign(Object.assign({},this.inner),{x:no,y:io,width:so??this.inner.width,height:ao??this.inner.height});return new fP(lo,new Map,this.prev,this.next)}updatePorts(to){if(!this.inner.ports)return this;const no=mapCow(this.inner.ports,to),io=this.inner.ports===no?this.inner:Object.assign(Object.assign({},this.inner),{ports:no});return io===this.inner?this:new fP(io,new Map,this.prev,this.next)}invalidCache(){return new fP(this.inner,new Map,this.prev,this.next)}toJSON(){return this.inner}};class GraphModel{constructor(to){this.nodes=to.nodes,this.edges=to.edges,this.groups=to.groups,this.head=to.head,this.tail=to.tail,this.edgesBySource=to.edgesBySource,this.edgesByTarget=to.edgesByTarget,this.selectedNodes=to.selectedNodes,preventSpread(this)}static empty(){return new GraphModel({nodes:OrderedMap$1.empty(),edges:HashMap.empty(),groups:[],head:void 0,tail:void 0,edgesBySource:HashMap.empty(),edgesByTarget:HashMap.empty(),selectedNodes:new Set})}static fromJSON(to){var no;const io=OrderedMap$1.empty().mutate(),so=HashMap.empty().mutate();let ao,lo;if(to.nodes.length===0)ao=void 0,lo=void 0;else if(to.nodes.length===1){const go=to.nodes[0];io.set(go.id,NodeModel$1.fromJSON(go,void 0,void 0)),ao=go.id,lo=go.id}else{const go=to.nodes[0],mo=to.nodes[1],yo=to.nodes[to.nodes.length-1];ao=go.id,lo=yo.id,io.set(go.id,NodeModel$1.fromJSON(go,void 0,mo.id));let So=to.nodes[0];if(to.nodes.length>2)for(let _o=1;_ouo.update(no));if(ao===this.nodes)return this;const lo=this.edges.mutate();return(io=this.edgesBySource.get(to))===null||io===void 0||io.forEach(uo=>{uo.forEach(ho=>{markEdgeDirty(lo,ho)})}),(so=this.edgesByTarget.get(to))===null||so===void 0||so.forEach(uo=>{uo.forEach(ho=>{markEdgeDirty(lo,ho)})}),this.merge({nodes:ao,edges:lo.finish()})}updateNodeData(to,no){return this.merge({nodes:this.nodes.update(to,io=>io.updateData(no))})}updatePort(to,no,io){const so=this.nodes.update(to,ao=>ao.updatePorts(lo=>lo.id===no?io(lo):lo));return this.merge({nodes:so})}insertNode(to){const no=this.nodes.mutate().set(to.id,NodeModel$1.fromJSON(to,this.tail,void 0));return this.tail&&!this.nodes.has(to.id)&&no.update(this.tail,io=>io.link({next:to.id})),this.merge({nodes:no.finish(),head:this.nodes.size===0?to.id:this.head,tail:to.id})}deleteItems(to){var no;const io=new Set,so=this.nodes.mutate();let ao=this.head===void 0?void 0:this.nodes.get(this.head),lo=ao,uo;const ho=this.edgesBySource.mutate(),go=this.edgesByTarget.mutate();for(;lo!==void 0;){const yo=lo.next?this.nodes.get(lo.next):void 0;!((no=to.node)===null||no===void 0)&&no.call(to,lo.inner)?(so.update(lo.id,So=>So.link({prev:uo==null?void 0:uo.id}).update(_o=>has$2(GraphNodeStatus.Editing)(_o.status)?_o:Object.assign(Object.assign({},_o),{status:GraphNodeStatus.Default}))),uo=lo):(so.delete(lo.id),ho.delete(lo.id),go.delete(lo.id),io.add(lo.id),uo&&so.update(uo.id,So=>So.link({next:lo==null?void 0:lo.next})),yo&&so.update(yo.id,So=>So.link({prev:uo==null?void 0:uo.id})),lo===ao&&(ao=yo)),lo=yo}const mo=this.edges.mutate();return this.edges.forEach(yo=>{var So,_o;!io.has(yo.source)&&!io.has(yo.target)&&(!((_o=(So=to.edge)===null||So===void 0?void 0:So.call(to,yo))!==null&&_o!==void 0)||_o)?mo.update(yo.id,ko=>ko.update(updateStatus(replace$2(GraphEdgeStatus.Default)))):(mo.delete(yo.id),deleteEdgeByPort(ho,yo.id,yo.source,yo.sourcePortId),deleteEdgeByPort(go,yo.id,yo.target,yo.targetPortId))}),this.merge({nodes:so.finish(),edges:mo.finish(),head:ao==null?void 0:ao.id,tail:uo==null?void 0:uo.id,edgesBySource:ho.finish(),edgesByTarget:go.finish()})}insertEdge(to){if(this.isEdgeExist(to.source,to.sourcePortId,to.target,to.targetPortId)||!this.nodes.has(to.source)||!this.nodes.has(to.target))return this;const no=setEdgeByPort(this.edgesBySource,to.id,to.source,to.sourcePortId),io=setEdgeByPort(this.edgesByTarget,to.id,to.target,to.targetPortId);return this.merge({nodes:this.nodes.update(to.source,so=>so.invalidCache()).update(to.target,so=>so.invalidCache()),edges:this.edges.set(to.id,EdgeModel.fromJSON(to)).map(so=>so.updateStatus(replace$2(GraphEdgeStatus.Default))),edgesBySource:no,edgesByTarget:io})}updateEdge(to,no){return this.merge({edges:this.edges.update(to,io=>io.update(no))})}deleteEdge(to){const no=this.edges.get(to);return no?this.merge({edges:this.edges.delete(to),edgesBySource:deleteEdgeByPort(this.edgesBySource,no.id,no.source,no.sourcePortId),edgesByTarget:deleteEdgeByPort(this.edgesByTarget,no.id,no.target,no.targetPortId)}):this}updateNodesPositionAndSize(to){const no=new Set,io=this.nodes.mutate(),so=this.edges.mutate();return to.forEach(ao=>{var lo,uo;no.add(ao.id),io.update(ao.id,ho=>ho.updatePositionAndSize(ao)),(lo=this.edgesBySource.get(ao.id))===null||lo===void 0||lo.forEach(ho=>{ho.forEach(go=>{markEdgeDirty(so,go)})}),(uo=this.edgesByTarget.get(ao.id))===null||uo===void 0||uo.forEach(ho=>{ho.forEach(go=>{markEdgeDirty(so,go)})})}),this.merge({nodes:io.finish(),edges:so.finish()})}mapNodes(to){return this.merge({nodes:this.nodes.map(to)})}mapEdges(to){return this.merge({edges:this.edges.map(to)})}selectNodes(to,no){const io=new Set,so=this.nodes.map(uo=>{const ho=to(uo.inner);return ho&&io.add(uo.id),uo.updatePorts(updateStatus(replace$2(GraphPortStatus.Default))).updateStatus(resetConnectStatus(ho?GraphNodeStatus.Selected:GraphNodeStatus.UnconnectedToSelected))}).mutate();if(io.size===0)this.nodes.forEach(uo=>so.update(uo.id,ho=>ho.updateStatus(replace$2(GraphNodeStatus.Default))));else if(no){const uo=so.get(no);uo&&(so.delete(no),so.set(uo.id,uo))}const ao=uo=>{so.update(uo,ho=>ho.updateStatus(replace$2(isSelected(ho)?GraphNodeStatus.Selected:GraphNodeStatus.ConnectedToSelected)))},lo=io.size?this.edges.map(uo=>{let ho=GraphEdgeStatus.UnconnectedToSelected;return io.has(uo.source)&&(ao(uo.target),ho=GraphEdgeStatus.ConnectedToSelected),io.has(uo.target)&&(ao(uo.source),ho=GraphEdgeStatus.ConnectedToSelected),uo.updateStatus(replace$2(ho))}):this.edges.map(uo=>uo.updateStatus(replace$2(GraphEdgeStatus.Default)));return this.merge({nodes:so.finish(),edges:lo,selectedNodes:io})}getEdgesBySource(to,no){var io;return(io=this.edgesBySource.get(to))===null||io===void 0?void 0:io.get(no)}getEdgesByTarget(to,no){var io;return(io=this.edgesByTarget.get(to))===null||io===void 0?void 0:io.get(no)}isPortConnectedAsSource(to,no){var io,so;return((so=(io=this.getEdgesBySource(to,no))===null||io===void 0?void 0:io.size)!==null&&so!==void 0?so:0)>0}isPortConnectedAsTarget(to,no){var io,so;return((so=(io=this.getEdgesByTarget(to,no))===null||io===void 0?void 0:io.size)!==null&&so!==void 0?so:0)>0}shallow(){return this.merge({})}toJSON(){const to=[];let no=this.head&&this.nodes.get(this.head);for(;no;)to.push(no.inner),no=no.next&&this.nodes.get(no.next);const io=Array.from(this.edges.values()).map(so=>so.inner);return{nodes:to,edges:io}}isEdgeExist(to,no,io,so){const ao=this.getEdgesBySource(to,no),lo=this.getEdgesByTarget(io,so);if(!ao||!lo)return!1;let uo=!1;return ao.forEach(ho=>{lo.has(ho)&&(uo=!0)}),uo}merge(to){var no,io,so,ao,lo,uo,ho,go;return new GraphModel({nodes:(no=to.nodes)!==null&&no!==void 0?no:this.nodes,edges:(io=to.edges)!==null&&io!==void 0?io:this.edges,groups:(so=to.groups)!==null&&so!==void 0?so:this.groups,head:(ao=to.head)!==null&&ao!==void 0?ao:this.head,tail:(lo=to.tail)!==null&&lo!==void 0?lo:this.tail,edgesBySource:(uo=to.edgesBySource)!==null&&uo!==void 0?uo:this.edgesBySource,edgesByTarget:(ho=to.edgesByTarget)!==null&&ho!==void 0?ho:this.edgesByTarget,selectedNodes:(go=to.selectedNodes)!==null&&go!==void 0?go:this.selectedNodes})}}function setEdgeByPort(eo,to,no,io){return eo.has(no)?eo.update(no,so=>{const ao=so.get(io);return new Map(so).set(io,(ao?new Set(ao):new Set).add(to))}):eo.set(no,new Map([[io,new Set([to])]]))}function setEdgeByPortMutable(eo,to,no,io){eo.has(no)?eo.update(no,so=>{let ao=so.get(io);return ao||(ao=new Set,so.set(io,ao)),ao.add(to),so}):eo.set(no,new Map([[io,new Set([to])]]))}function deleteEdgeByPort(eo,to,no,io){return eo.has(no)?eo.update(no,so=>{const ao=so.get(io);if(!ao)return so;const lo=new Set(ao);return lo.delete(to),new Map(so).set(io,lo)}):eo}var CanvasMouseMode;(function(eo){eo.Pan="Pan",eo.Select="Select"})(CanvasMouseMode||(CanvasMouseMode={}));var GraphBehavior;(function(eo){eo.Default="default",eo.Dragging="dragging",eo.Panning="panning",eo.MultiSelect="multiSelect",eo.Connecting="connecting",eo.AddingNode="addingNode"})(GraphBehavior||(GraphBehavior={}));function clamp$1(eo,to,no){return eo>no?eo:to{const no=eo.maxXto.maxX,so=eo.minY>to.maxY,ao=eo.maxY{const{minX:no,minY:io,maxX:so,maxY:ao}=eo,{x:lo,y:uo}=to;return lo>no&&loio&&uoeo===no?()=>Number.MAX_SAFE_INTEGER:so=>(io-to)/(no-eo)*so+(to*no-io*eo)/(no-eo),shallowEqual=(eo,to)=>{if(!eo||eo.length!==to.length)return!1;for(let no=0;no{const ao=to?Array.isArray(to)?to:to.apply(void 0,so):so;return shallowEqual(no,ao)||(no=ao,io=eo.apply(void 0,so)),io}}var Direction$2;(function(eo){eo[eo.X=0]="X",eo[eo.Y=1]="Y",eo[eo.XY=2]="XY"})(Direction$2||(Direction$2={}));const isViewportComplete=eo=>!!eo.rect,getNodeRect=(eo,to)=>{const{x:no,y:io}=eo,{width:so,height:ao}=getNodeSize(eo,to);return{x:no,y:io,width:so,height:ao}},isNodeVisible=(eo,to,no)=>isRectVisible(getNodeRect(eo,no),to),isRectVisible=(eo,to)=>{const{x:no,y:io,width:so,height:ao}=eo;return isPointVisible({x:no,y:io},to)||isPointVisible({x:no+so,y:io},to)||isPointVisible({x:no+so,y:io+ao},to)||isPointVisible({x:no,y:io+ao},to)},isPointVisible=(eo,to)=>{const{x:no,y:io}=getContainerClientPoint(eo.x,eo.y,to),{height:so,width:ao}=to.rect;return no>0&&no0&&io{const io=[];return eo.forEach(so=>{isNodeVisible(so,to,no)&&io.push(so.inner)}),io},getRenderedNodes=(eo,to)=>{const no=[],io=getRenderedArea(to);return eo.forEach(so=>{isNodeInRenderedArea(so,io)&&no.push(so.inner)}),no},isNodeInRenderedArea=(eo,to)=>isPointInRect(to,eo),getRenderedArea=eo=>{if(!isViewportComplete(eo))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:to,transformMatrix:no}=eo,io=0,so=0,ao=to.width,lo=to.height,uo=reverseTransformPoint(io-to.width,so-to.height,no),ho=reverseTransformPoint(ao+to.width,lo+to.height,no);return{minX:uo.x,minY:uo.y,maxX:ho.x,maxY:ho.y}},normalizeSpacing=eo=>eo?typeof eo=="number"?{top:eo,right:eo,bottom:eo,left:eo}:Object.assign({top:0,right:0,bottom:0,left:0},eo):{top:0,right:0,bottom:0,left:0},zoomTo=({scale:eo,anchor:to,direction:no,limitScale:io})=>so=>{const ao=io(eo)/so.transformMatrix[0],lo=io(eo)/so.transformMatrix[3],{x:uo,y:ho}=to,go=uo*(1-ao),mo=ho*(1-lo);let yo;switch(no){case Direction$2.X:yo=[eo,0,0,so.transformMatrix[3],so.transformMatrix[4]*ao+go,so.transformMatrix[5]];break;case Direction$2.Y:yo=[so.transformMatrix[0],0,0,eo,so.transformMatrix[4],so.transformMatrix[5]*lo+mo];break;case Direction$2.XY:default:yo=[eo,0,0,eo,so.transformMatrix[4]*ao+go,so.transformMatrix[5]*lo+mo]}return Object.assign(Object.assign({},so),{transformMatrix:yo})},zoom=({scale:eo,anchor:to,direction:no,limitScale:io})=>eo===1?identical:so=>{let ao;switch(no){case Direction$2.X:return zoomTo({anchor:to,direction:no,limitScale:io,scale:so.transformMatrix[0]*eo})(so);case Direction$2.Y:return zoomTo({anchor:to,direction:no,limitScale:io,scale:so.transformMatrix[3]*eo})(so);case Direction$2.XY:default:{const lo=io(so.transformMatrix[0]*eo),uo=io(so.transformMatrix[3]*eo),ho=lo/so.transformMatrix[0],go=uo/so.transformMatrix[3],{x:mo,y:yo}=to,So=mo*(1-ho),_o=yo*(1-go);ao=[lo,0,0,uo,so.transformMatrix[4]*ho+So,so.transformMatrix[5]*go+_o]}}return Object.assign(Object.assign({},so),{transformMatrix:ao})},pan=(eo,to)=>eo===0&&to===0?identical:no=>Object.assign(Object.assign({},no),{transformMatrix:[no.transformMatrix[0],no.transformMatrix[1],no.transformMatrix[2],no.transformMatrix[3],no.transformMatrix[4]+eo,no.transformMatrix[5]+to]}),minimapPan=(eo,to)=>eo===0&&to===0?identical:no=>{const[io,so,ao,lo]=no.transformMatrix;return Object.assign(Object.assign({},no),{transformMatrix:[io,so,ao,lo,no.transformMatrix[4]+io*eo+so*to,no.transformMatrix[5]+ao*eo+lo*to]})},getContentArea$1=(eo,to,no)=>{let io=1/0,so=1/0,ao=1/0,lo=1/0,uo=-1/0,ho=-1/0;return(no===void 0?So=>eo.nodes.forEach(So):So=>no==null?void 0:no.forEach(_o=>{const ko=eo.nodes.get(_o);ko&&So(ko)}))(So=>{const{width:_o,height:ko}=getNodeSize(So,to);So.xuo&&(uo=So.x+_o),So.y+ko>ho&&(ho=So.y+ko),_o{let{width:no,height:io}=eo,{width:so,height:ao}=to;if(no>so){const lo=no;no=so,so=lo}if(io>ao){const lo=io;io=ao,ao=lo}return{nodeMinVisibleWidth:no,nodeMinVisibleHeight:io,nodeMaxVisibleWidth:so,nodeMaxVisibleHeight:ao}},getScaleRange=(eo,{width:to,height:no})=>{const{nodeMinVisibleWidth:io,nodeMinVisibleHeight:so,nodeMaxVisibleWidth:ao,nodeMaxVisibleHeight:lo}=normalizeNodeVisibleMinMax(eo);let uo=0,ho=0,go=1/0,mo=1/0;return to&&(uo=io/to,go=ao/to),no&&(ho=so/no,mo=lo/no),{minScaleX:uo,minScaleY:ho,maxScaleX:go,maxScaleY:mo}},getZoomFitMatrix=eo=>{const{data:to,graphConfig:no,disablePan:io,direction:so,rect:ao}=eo,{nodes:lo}=to;if(lo.size===0)return[1,0,0,1,0,0];const{minNodeWidth:uo,minNodeHeight:ho,minNodeX:go,minNodeY:mo,maxNodeX:yo,maxNodeY:So}=getContentArea$1(to,no),{minScaleX:_o,minScaleY:ko,maxScaleX:Co,maxScaleY:$o}=getScaleRange(eo,{width:uo,height:ho}),Ro=normalizeSpacing(eo.spacing),{width:Oo,height:No}=ao,Mo=Oo/(yo-go+Ro.left+Ro.right),Bo=No/(So-mo+Ro.top+Ro.bottom),Fo=so===Direction$2.Y?Math.min(Math.max(_o,ko,Bo),Co,$o):Math.min(Math.max(_o,ko,Math.min(Mo,Bo)),$o,$o),Lo=so===Direction$2.XY?Math.min(Math.max(_o,Mo),Co):Fo,Go=so===Direction$2.XY?Math.min(Math.max(ko,Bo),$o):Fo;if(io)return[Lo,0,0,Go,0,0];const Do=-Lo*(go-Ro.left),Uo=-Go*(mo-Ro.top);if(getVisibleNodes(to.nodes,{rect:ao,transformMatrix:[Lo,0,0,Go,Do,Uo]},no).length>0)return[Lo,0,0,Go,Do,Uo];let Yo=to.nodes.first();return Yo&&to.nodes.forEach(qo=>{Yo.y>qo.y&&(Yo=qo)}),[Lo,0,0,Go,-Lo*(Yo.x-Ro.left),-Go*(Yo.y-Ro.top)]},focusArea=(eo,to,no,io,so)=>{const ao=no-eo,lo=io-to,uo=Math.min(so.rect.width/ao,so.rect.height/lo),ho=-uo*(eo+ao/2)+so.rect.width/2,go=-uo*(to+lo/2)+so.rect.height/2;return Object.assign(Object.assign({},so),{transformMatrix:[uo,0,0,uo,ho,go]})};function getRelativePoint(eo,to){const no=to.clientX-eo.left,io=to.clientY-eo.top;return{x:no,y:io}}const scrollIntoView$3=(eo,to,no,io,so)=>{if(!no)return identical;const{width:ao,height:lo}=no;return!(eo<0||eo>ao||to<0||to>lo)&&!io?identical:ho=>{const go=so?so.x-eo:ao/2-eo,mo=so?so.y-to:lo/2-to;return Object.assign(Object.assign({},ho),{transformMatrix:[ho.transformMatrix[0],ho.transformMatrix[1],ho.transformMatrix[2],ho.transformMatrix[3],ho.transformMatrix[4]+go,ho.transformMatrix[5]+mo]})}},getScaleLimit=(eo,to)=>{const{minNodeWidth:no,minNodeHeight:io}=getContentArea$1(eo,to.graphConfig),{minScaleX:so,minScaleY:ao}=getScaleRange(to,{width:no,height:io});return Math.max(so,ao)},getContentArea=memoize$4(getContentArea$1),getOffsetLimit=({data:eo,graphConfig:to,rect:no,transformMatrix:io,canvasBoundaryPadding:so,groupPadding:ao})=>{var lo,uo,ho,go;const mo=getContentArea(eo,to),yo=getClientDeltaByPointDelta(mo.minNodeX-((ao==null?void 0:ao.left)||0),mo.minNodeY-((ao==null?void 0:ao.top)||0),io);yo.x-=(lo=so==null?void 0:so.left)!==null&&lo!==void 0?lo:0,yo.y-=(uo=so==null?void 0:so.top)!==null&&uo!==void 0?uo:0;const So=getClientDeltaByPointDelta(mo.maxNodeX+((ao==null?void 0:ao.right)||0),mo.maxNodeY+((ao==null?void 0:ao.bottom)||0),io);So.x+=(ho=so==null?void 0:so.right)!==null&&ho!==void 0?ho:0,So.y+=(go=so==null?void 0:so.bottom)!==null&&go!==void 0?go:0;let _o=-yo.x||0,ko=-yo.y||0,Co=no.width-So.x||0,$o=no.height-So.y||0;if(Co<_o){const Ro=Co;Co=_o,_o=Ro}if($o({present:to,past:{next:eo.past,value:no(eo.present)},future:null}),undo$4=eo=>eo.past?{present:eo.past.value,past:eo.past.next,future:{next:eo.future,value:eo.present}}:eo,redo$1=eo=>eo.future?{present:eo.future.value,past:{next:eo.past,value:eo.present},future:eo.future.next}:eo,resetUndoStack=eo=>({present:eo,future:null,past:null}),EMPTY_TRANSFORM_MATRIX=[1,0,0,1,0,0],EMPTY_GAP={top:0,right:0,bottom:0,left:0},DEFAULT_NODE_MIN_VISIBLE_SIZE={width:NODE_MIN_VISIBLE_LENGTH,height:NODE_MIN_VISIBLE_LENGTH},DEFAULT_NODE_MAX_VISIBLE_SIZE={width:NODE_MAX_VISIBLE_LENGTH,height:NODE_MAX_VISIBLE_LENGTH},DEFAULT_GRAPH_SETTINGS={features:defaultFeatures,graphConfig:GraphConfigBuilder.default().build(),canvasBoundaryPadding:EMPTY_GAP,nodeMinVisibleSize:DEFAULT_NODE_MIN_VISIBLE_SIZE,nodeMaxVisibleSize:DEFAULT_NODE_MAX_VISIBLE_SIZE},EMPTY_GRAPH_STATE=createGraphState({});function createGraphState(eo){const{data:to,transformMatrix:no,settings:io}=eo;return{settings:Object.assign(Object.assign({},DEFAULT_GRAPH_SETTINGS),io),data:resetUndoStack(to??GraphModel.empty()),viewport:{rect:void 0,transformMatrix:no??EMPTY_TRANSFORM_MATRIX},behavior:GraphBehavior.Default,dummyNodes:emptyDummyNodes(),alignmentLines:[],activeKeys:new Set,selectBoxPosition:emptySelectBoxPosition(),connectState:void 0}}const EMPTY_CONNECT_STATE={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0,movingPoint:{x:0,y:0}};new Proxy(GraphModel.empty(),{get:(eo,to)=>(console.warn("Default graph data value is being used. Please check if you forget rendering Graph component"),Reflect.get(eo,to))});const SlotsContext=reactExports.createContext({});class EventChannel{constructor(){this.listenersRef=reactExports.createRef(),this.externalHandlerRef=reactExports.createRef(),this.queue=[],this.working=!1}trigger(to){this.working?this.queue.push(to):(this.working=!0,reactDomExports.unstable_batchedUpdates(()=>{this.callHandlers(to);for(let no=0;no{this.dispatchDelegate(io,so)},this.state=to,this.UNSAFE_latestState=to,this.dispatchDelegate=no}setMouseClientPosition(to){this.mouseClientPoint=to}unsetMouseClientPosition(){this.mouseClientPoint=void 0}getMouseClientPosition(){return this.mouseClientPoint}getEnabledFeatures(){return this.state.settings.features}getBehavior(){return this.behavior}setBehavior(to){this.behavior=to}getData(){return this.state.data.present}getGlobalEventTarget(){var to,no;return(no=(to=this.getGlobalEventTargetDelegate)===null||to===void 0?void 0:to.call(this))!==null&&no!==void 0?no:window}}const noop$7=()=>{},EMPTY_CONNECT_CONTEXT={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0},ConnectingStateContext=reactExports.createContext(EMPTY_CONNECT_CONTEXT);ConnectingStateContext.displayName="ConnectingStateContext";const AlignmentLinesContext=reactExports.createContext([]),GraphControllerContext=reactExports.createContext(new GraphController(EMPTY_GRAPH_STATE,noop$7));var GraphNodeEvent;(function(eo){eo.Click="[Node]Click",eo.DoubleClick="[Node]DoubleClick",eo.MouseDown="[Node]MouseDown",eo.MouseUp="[Node]MouseUp",eo.MouseEnter="[Node]MouseEnter",eo.MouseLeave="[Node]MouseLeave",eo.MouseOver="[Node]MouseOver",eo.MouseOut="[Node]MouseOut",eo.MouseMove="[Node]MouseMove",eo.ContextMenu="[Node]ContextMenu",eo.Drag="[Node]Drag",eo.DragStart="[Node]DragStart",eo.DragEnd="[Node]DragEnd",eo.PointerDown="[Node]PointerDown",eo.PointerEnter="[Node]PointerEnter",eo.PointerMove="[Node]PointerMove",eo.PointerLeave="[Node]PointerLeave",eo.PointerUp="[Node]PointerUp",eo.Resizing="[Node]Resizing",eo.ResizingStart="[Node]ResizingStart",eo.ResizingEnd="[Node]ResizingEnd",eo.KeyDown="[Node]KeyDown",eo.Select="[Node]Select",eo.SelectAll="[Node]SelectAll",eo.Centralize="[Node]Centralize",eo.Locate="[Node]Locate",eo.Add="[Node]Add"})(GraphNodeEvent||(GraphNodeEvent={}));var GraphEdgeEvent;(function(eo){eo.Click="[Edge]Click",eo.DoubleClick="[Edge]DoubleClick",eo.MouseEnter="[Edge]MouseEnter",eo.MouseLeave="[Edge]MouseLeave",eo.MouseOver="[Edge]MouseOver",eo.MouseOut="[Edge]MouseOut",eo.MouseMove="[Edge]MouseMove",eo.MouseDown="[Edge]MouseDown",eo.MouseUp="[Edge]MouseUp",eo.ContextMenu="[Edge]ContextMenu",eo.ConnectStart="[Edge]ConnectStart",eo.ConnectMove="[Edge]ConnectMove",eo.ConnectEnd="[Edge]ConnectEnd",eo.ConnectNavigate="[Edge]ConnectNavigate",eo.Add="[Edge]Add"})(GraphEdgeEvent||(GraphEdgeEvent={}));var GraphPortEvent;(function(eo){eo.Click="[Port]Click",eo.DoubleClick="[Port]DoubleClick",eo.MouseDown="[Port]MouseDown",eo.PointerDown="[Port]PointerDown",eo.PointerUp="[Port]PointerUp",eo.PointerEnter="[Port]PointerEnter",eo.PointerLeave="[Port]PointerLeave",eo.MouseUp="[Port]MouseUp",eo.MouseEnter="[Port]MouseEnter",eo.MouseLeave="[Port]MouseLeave",eo.MouseOver="[Port]MouseOver",eo.MouseOut="[Port]MouseOut",eo.MouseMove="[Port]MouseMove",eo.ContextMenu="[Port]ContextMenu",eo.KeyDown="[Port]KeyDown",eo.Focus="[Port]Focus",eo.Blur="[Port]Blur"})(GraphPortEvent||(GraphPortEvent={}));var GraphCanvasEvent;(function(eo){eo.Click="[Canvas]Click",eo.DoubleClick="[Canvas]DoubleClick",eo.MouseDown="[Canvas]MouseDown",eo.MouseUp="[Canvas]MouseUp",eo.MouseEnter="[Canvas]MouseEnter",eo.MouseLeave="[Canvas]MouseLeave",eo.MouseOver="[Canvas]MouseOver",eo.MouseOut="[Canvas]MouseOut",eo.MouseMove="[Canvas]MouseMove",eo.ContextMenu="[Canvas]ContextMenu",eo.DragStart="[Canvas]DragStart",eo.Drag="[Canvas]Drag",eo.DragEnd="[Canvas]DragEnd",eo.Pan="[Canvas]Pan",eo.Focus="[Canvas]Focus",eo.Blur="[Canvas]Blur",eo.Zoom="[Canvas]Zoom",eo.Pinch="[Canvas]Pinch",eo.KeyDown="[Canvas]KeyDown",eo.KeyUp="[Canvas]KeyUp",eo.SelectStart="[Canvas]SelectStart",eo.SelectMove="[Canvas]SelectMove",eo.SelectEnd="[Canvas]SelectEnd",eo.UpdateNodeSelectionBySelectBox="[Canvas]UpdateNodeSelectionBySelectBox",eo.MouseWheelScroll="[Canvas]MouseWheelScroll",eo.DraggingNodeFromItemPanel="[Canvas]DraggingNodeFromItemPanel",eo.DraggingNodeFromItemPanelStart="[Canvas]DraggingNodeFromItemPanelStart",eo.DraggingNodeFromItemPanelEnd="[Canvas]DraggingNodeFromItemPanelEnd",eo.ViewportResize="[Canvas]ViewportResize",eo.Navigate="[Canvas]Navigate",eo.VirtualizationRecalculated="[Canvas]VirtualizationRecalculated",eo.ResetSelection="[Canvas]ResetSelection",eo.Copy="[Canvas]Copy",eo.Paste="[Canvas]Paste",eo.Delete="[Canvas]Delete",eo.Undo="[Canvas]Undo",eo.Redo="[Canvas]Redo",eo.ScrollIntoView="[Canvas]ScrollIntoView",eo.ResetUndoStack="[Canvas]ResetUndoStack",eo.ResetViewport="[Canvas]ResetViewport",eo.ZoomTo="[Canvas]ZoomTo",eo.ZoomToFit="[Canvas]ZoomToFit",eo.SetData="[Canvas]SetData",eo.UpdateData="[Canvas]UpdateData",eo.ScrollTo="[Canvas]ScrollTo",eo.UpdateSettings="[Canvas]UpdateSettings"})(GraphCanvasEvent||(GraphCanvasEvent={}));var GraphScrollBarEvent;(function(eo){eo.ScrollStart="[ScrollBar]ScrollStart",eo.Scroll="[ScrollBar]Scroll",eo.ScrollEnd="[ScrollBar]ScrollEnd"})(GraphScrollBarEvent||(GraphScrollBarEvent={}));var GraphMinimapEvent;(function(eo){eo.PanStart="[Minimap]PanStart",eo.Pan="[Minimap]Pan",eo.PanEnd="[Minimap]PanEnd",eo.Click="[Minimap]Click"})(GraphMinimapEvent||(GraphMinimapEvent={}));var GraphContextMenuEvent;(function(eo){eo.Open="[ContextMenu]Open",eo.Close="[ContextMenu]Close"})(GraphContextMenuEvent||(GraphContextMenuEvent={}));function getScrollLineHeight(){try{const eo=document.createElement("iframe");eo.src="#",document.body.appendChild(eo);const{contentDocument:to}=eo;if(!to)throw new Error("Fail to create iframe");to.documentElement.innerHTML=purify$1.sanitize("a",{RETURN_TRUSTED_TYPE:!0});const io=to.body.firstElementChild.offsetHeight;return document.body.removeChild(eo),io}catch(eo){return Debug.error("failed to calculate scroll line height",eo),16}}getScrollLineHeight();const EMPTY_RECT={height:0,width:0,x:0,y:0,bottom:0,left:0,right:0,top:0,toJSON(){return this}},VirtualizationContext=reactExports.createContext({viewport:{rect:EMPTY_RECT,transformMatrix:EMPTY_TRANSFORM_MATRIX},renderedArea:{minX:0,minY:0,maxX:0,maxY:0},visibleArea:{minX:0,minY:0,maxX:0,maxY:0},renderedNodes:new Set,renderedEdges:new Set,timestamp:0});function useGraphConfig(){return reactExports.useContext(GraphConfigContext)}function useGraphController(){return reactExports.useContext(GraphControllerContext)}function useAlignmentLines(){return reactExports.useContext(AlignmentLinesContext)}function useConnectingState(){return reactExports.useContext(ConnectingStateContext)}function useVirtualization(){return reactExports.useContext(VirtualizationContext)}function makeScheduledCallback(eo,to,no){let io=!1,so,ao;const lo=(...uo)=>{so=uo,io||(io=!0,ao=to(()=>{io=!1,reactDomExports.unstable_batchedUpdates(()=>{eo.apply(null,so)})}))};return lo.cancel=()=>{no(ao)},lo}const animationFramed=eo=>makeScheduledCallback(eo,requestAnimationFrame,cancelAnimationFrame);class DragController{constructor(to,no){this.onMove=noop$7,this.onEnd=noop$7,this.lastEvent=null,this.startX=0,this.startY=0,this.prevClientX=0,this.prevClientY=0,this.onMouseUp=io=>{this.lastEvent=io,this.doOnMouseUp(io),this.lastEvent=null},this.onMouseMove=io=>{this.lastEvent=io,io.preventDefault(),this.mouseMove(io)},this.eventProvider=to,this.getPositionFromEvent=no,this.mouseMove=animationFramed(io=>{this.doOnMouseMove(io)})}start(to){this.lastEvent=to;const{x:no,y:io}=this.getPositionFromEvent(to);this.startX=no,this.startY=io,this.prevClientX=no,this.prevClientY=io,this.eventProvider.on("move",this.onMouseMove),this.eventProvider.on("end",this.onMouseUp)}stop(){this.mouseMove.cancel(),this.eventProvider.off("move",this.onMouseMove),this.eventProvider.off("end",this.onMouseUp)}getDelta(to,no){const io=to-this.prevClientX,so=no-this.prevClientY;return this.prevClientX=to,this.prevClientY=no,{x:io,y:so}}getTotalDelta(to){const no=to.clientX-this.startX,io=to.clientY-this.startY;return{x:no,y:io}}doOnMouseMove(to){const{x:no,y:io}=this.getPositionFromEvent(to),{x:so,y:ao}=this.getDelta(no,io),{x:lo,y:uo}=this.getTotalDelta(to);this.onMove({clientX:no,clientY:io,dx:so,dy:ao,totalDX:lo,totalDY:uo,e:to})}doOnMouseUp(to){to.preventDefault();const{x:no,y:io}=this.getTotalDelta(to);this.onEnd({totalDX:no,totalDY:io,e:to}),this.stop()}}function defaultGetPositionFromEvent(eo){return{x:eo.clientX,y:eo.clientY}}getBrowser(),BrowserType.Safari;const handleBehaviorChange=(eo,to)=>{switch(to.type){case GraphNodeEvent.DragStart:return GraphBehavior.Dragging;case GraphEdgeEvent.ConnectStart:return GraphBehavior.Connecting;case GraphCanvasEvent.SelectStart:return GraphBehavior.MultiSelect;case GraphCanvasEvent.DragStart:return GraphBehavior.Panning;case GraphCanvasEvent.DraggingNodeFromItemPanelStart:return GraphBehavior.AddingNode;case GraphNodeEvent.DragEnd:case GraphEdgeEvent.ConnectEnd:case GraphCanvasEvent.SelectEnd:case GraphCanvasEvent.DragEnd:case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:return GraphBehavior.Default;default:return eo}},behaviorReducer=(eo,to)=>{const no=handleBehaviorChange(eo.behavior,to);return no===eo.behavior?eo:Object.assign(Object.assign({},eo),{behavior:no})};function __rest(eo,to){var no={};for(var io in eo)Object.prototype.hasOwnProperty.call(eo,io)&&to.indexOf(io)<0&&(no[io]=eo[io]);if(eo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var so=0,io=Object.getOwnPropertySymbols(eo);so{switch(to.type){case GraphCanvasEvent.Paste:{const{position:no}=to;if(!isViewportComplete(eo.viewport))return eo;const{rect:io}=eo.viewport;let so=to.data.nodes;if(no&&io){const lo=getRealPointFromClientPoint(no.x,no.y,eo.viewport);let uo,ho;so=so.map((go,mo)=>(mo===0&&(uo=lo.x-go.x,ho=lo.y-go.y),Object.assign(Object.assign({},go),{x:uo?go.x-COPIED_NODE_SPACING+uo:go.x,y:ho?go.y-COPIED_NODE_SPACING+ho:go.y,state:GraphNodeStatus.Selected})))}let ao=unSelectAllEntity()(eo.data.present);return so.forEach(lo=>{ao=ao.insertNode(lo)}),to.data.edges.forEach(lo=>{ao=ao.insertEdge(lo)}),Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,ao)})}case GraphCanvasEvent.Delete:return eo.settings.features.has(GraphFeatures.Delete)?Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,eo.data.present.deleteItems({node:notSelected,edge:notSelected}),unSelectAllEntity())}):eo;case GraphCanvasEvent.Undo:return Object.assign(Object.assign({},eo),{data:undo$4(eo.data)});case GraphCanvasEvent.Redo:return Object.assign(Object.assign({},eo),{data:redo$1(eo.data)});case GraphCanvasEvent.KeyDown:{const no=to.rawEvent.key.toLowerCase();if(eo.activeKeys.has(no))return eo;const io=new Set(eo.activeKeys);return io.add(no),Object.assign(Object.assign({},eo),{activeKeys:io})}case GraphCanvasEvent.KeyUp:{const no=to.rawEvent.key.toLowerCase();if(!eo.activeKeys.has(no))return eo;const io=new Set(eo.activeKeys);return io.delete(no),Object.assign(Object.assign({},eo),{activeKeys:io})}case GraphCanvasEvent.SetData:return Object.assign(Object.assign({},eo),{data:resetUndoStack(to.data)});case GraphCanvasEvent.UpdateData:return Object.assign(Object.assign({},eo),{data:to.shouldRecord?pushHistory(eo.data,to.updater(eo.data.present)):Object.assign(Object.assign({},eo.data),{present:to.updater(eo.data.present)})});case GraphCanvasEvent.ResetUndoStack:return Object.assign(Object.assign({},eo),{data:resetUndoStack(eo.data.present)});case GraphCanvasEvent.UpdateSettings:{const no=__rest(to,["type"]);return Object.assign(Object.assign({},eo),{settings:Object.assign(Object.assign({},eo.settings),no)})}default:return eo}};function composeReducers(eo){return to=>eo.reduceRight((no,io)=>io(no),to)}const item=(eo=void 0,to=void 0)=>({node:eo,port:to}),getNextItem=(eo,to,no)=>{if(to.ports){const ao=(no?to.ports.findIndex(lo=>lo.id===no.id):-1)+1;if(ao(no,io,so)=>{var ao,lo,uo;let ho=getNextItem(no,io,so);for(;!(((ao=ho.node)===null||ao===void 0?void 0:ao.id)===io.id&&((lo=ho.port)===null||lo===void 0?void 0:lo.id)===(so==null?void 0:so.id));){if(!ho.node)ho=item(no.getNavigationFirstNode());else if(ho.port&&!((uo=eo.getPortConfig(ho.port))===null||uo===void 0)&&uo.getIsConnectable(Object.assign(Object.assign({},to),{data:no,parentNode:ho.node,model:ho.port})))return ho;ho=getNextItem(no,ho.node,ho.port)}return item()};function attachPort(eo,to,no){if(!eo.connectState)return eo;let io=eo.data.present;return io=io.updatePort(to,no,updateStatus(add$1(GraphPortStatus.ConnectingAsTarget))),eo.connectState.targetNode&&eo.connectState.targetPort&&(io=io.updatePort(eo.connectState.targetNode,eo.connectState.targetPort,updateStatus(remove$3(GraphPortStatus.ConnectingAsTarget)))),Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{targetNode:to,targetPort:no}),data:Object.assign(Object.assign({},eo.data),{present:io})})}function clearAttach(eo){if(!eo.connectState)return eo;let to=eo.data.present;const{targetPort:no,targetNode:io}=eo.connectState;return io&&no&&(to=to.updatePort(io,no,updateStatus(remove$3(GraphPortStatus.ConnectingAsTarget)))),Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{targetNode:void 0,targetPort:void 0}),data:Object.assign(Object.assign({},eo.data),{present:to})})}const connectingReducer=(eo,to)=>{var no,io,so;if(!isViewportComplete(eo.viewport))return eo;const{rect:ao}=eo.viewport;switch(to.type){case GraphEdgeEvent.ConnectStart:return Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},EMPTY_CONNECT_STATE),{sourceNode:to.nodeId,sourcePort:to.portId,movingPoint:to.clientPoint?{x:to.clientPoint.x-ao.left,y:to.clientPoint.y-ao.top}:void 0}),data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.nodeId,to.portId,updateStatus(add$1(GraphPortStatus.Connecting)))})});case GraphEdgeEvent.ConnectMove:return eo.connectState?Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{movingPoint:{x:to.clientX-ao.left,y:to.clientY-ao.top}})}):eo;case GraphEdgeEvent.ConnectEnd:if(eo.connectState){const{edgeWillAdd:lo,isCancel:uo}=to,{sourceNode:ho,sourcePort:go,targetNode:mo,targetPort:yo}=eo.connectState;let So=eo.data.present;if(So=So.updatePort(ho,go,updateStatus(replace$2(GraphPortStatus.Default))),!uo&&mo&&yo){let _o={source:ho,sourcePortId:go,target:mo,targetPortId:yo,id:v4(),status:GraphEdgeStatus.Default};return lo&&(_o=lo(_o,So)),So=So.insertEdge(_o).updatePort(mo,yo,updateStatus(replace$2(GraphPortStatus.Default))),Object.assign(Object.assign({},eo),{connectState:void 0,data:pushHistory(eo.data,So,unSelectAllEntity())})}return Object.assign(Object.assign({},eo),{connectState:void 0,data:Object.assign(Object.assign({},eo.data),{present:So})})}return eo;case GraphEdgeEvent.ConnectNavigate:if(eo.connectState){const lo=eo.data.present,uo=lo.nodes.get(eo.connectState.sourceNode),ho=uo==null?void 0:uo.getPort(eo.connectState.sourcePort),go=eo.connectState.targetNode?lo.nodes.get(eo.connectState.targetNode):void 0,mo=eo.connectState.targetPort?go==null?void 0:go.getPort(eo.connectState.targetPort):void 0;if(!uo||!ho)return eo;const yo=nextConnectablePort(eo.settings.graphConfig,{anotherNode:uo,anotherPort:ho})(lo,go||uo,mo);return!yo.node||!yo.port||yo.node.id===uo.id&&yo.port.id===ho.id?eo:attachPort(eo,yo.node.id,yo.port.id)}return eo;case GraphPortEvent.PointerEnter:if(eo.connectState){const{sourceNode:lo,sourcePort:uo}=eo.connectState,ho=eo.data.present,go=ho.nodes.get(to.node.id),mo=go==null?void 0:go.getPort(to.port.id),yo=ho.nodes.get(lo),So=yo==null?void 0:yo.getPort(uo);if(go&&mo&&yo&&So&&isConnectable(eo.settings.graphConfig,{parentNode:go,model:mo,data:ho,anotherPort:So,anotherNode:yo}))return attachPort(eo,go.id,mo.id)}return eo;case GraphNodeEvent.PointerEnter:case GraphNodeEvent.PointerMove:if(eo.connectState){const{clientX:lo,clientY:uo}=to.rawEvent,{sourceNode:ho,sourcePort:go}=eo.connectState,mo=eo.data.present,yo=mo.nodes.get(to.node.id),So=mo.nodes.get(ho),_o=So==null?void 0:So.getPort(go);if(yo&&So&&_o){const ko=getNearestConnectablePort({parentNode:yo,clientX:lo,clientY:uo,graphConfig:eo.settings.graphConfig,data:eo.data.present,viewport:eo.viewport,anotherPort:_o,anotherNode:So});return ko?attachPort(eo,yo.id,ko.id):eo}}return eo;case GraphNodeEvent.PointerLeave:return((no=eo.connectState)===null||no===void 0?void 0:no.targetNode)===to.node.id?clearAttach(eo):eo;case GraphPortEvent.PointerLeave:return((io=eo.connectState)===null||io===void 0?void 0:io.targetNode)===to.node.id&&((so=eo.connectState)===null||so===void 0?void 0:so.targetPort)===to.port.id?clearAttach(eo):eo;default:return eo}},contextMenuReducer=(eo,to)=>{let no=eo.contextMenuPosition;switch(to.type){case GraphCanvasEvent.ContextMenu:case GraphNodeEvent.ContextMenu:case GraphEdgeEvent.ContextMenu:case GraphPortEvent.ContextMenu:{const io=to.rawEvent;io.button===MouseEventButton.Secondary&&(no={x:io.clientX,y:io.clientY})}break;case GraphCanvasEvent.Click:case GraphNodeEvent.Click:case GraphEdgeEvent.Click:case GraphPortEvent.Click:no=void 0;break;case GraphContextMenuEvent.Open:no={x:to.x,y:to.y};break;case GraphContextMenuEvent.Close:no=void 0;break}return eo.contextMenuPosition===no?eo:Object.assign(Object.assign({},eo),{contextMenuPosition:no})},edgeReducer=(eo,to)=>{switch(to.type){case GraphEdgeEvent.DoubleClick:return eo.settings.features.has(GraphFeatures.EditEdge)?Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(replace$2(GraphEdgeStatus.Editing)))})}):eo;case GraphEdgeEvent.MouseEnter:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(add$1(GraphEdgeStatus.Activated)))})});case GraphEdgeEvent.MouseLeave:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(remove$3(GraphEdgeStatus.Activated)))})});case GraphEdgeEvent.Click:case GraphEdgeEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(eo.data.present).updateEdge(to.edge.id,updateStatus(add$1(GraphEdgeStatus.Selected)))})});case GraphEdgeEvent.Add:return Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,eo.data.present.insertEdge(to.edge))});default:return eo}},getAlignmentLines=(eo,to,no,io=2)=>{const so=getDummyDraggingNode(eo),ao=getClosestNodes(so,eo,to,no,io);return getLines(so,ao,eo.length)},getAutoAlignDisplacement=(eo,to,no,io)=>{let so=1/0,ao=0;const lo=getDummyDraggingNode(to),uo=io==="x"?lo.width||0:lo.height||0;return eo.forEach(ho=>{let go;if(io==="x"&&ho.x1===ho.x2)go=ho.x1;else if(io==="y"&&ho.y1===ho.y2)go=ho.y1;else return;const mo=lo[io]-go,yo=lo[io]+(uo||0)/2-go,So=lo[io]+(uo||0)-go;Math.abs(mo)0?-so:so),Math.abs(yo)0?-so:so),Math.abs(So)0?-so:so)}),ao},getMinCoordinate=(eo,to)=>{if(eo.length)return Math.min(...eo.map(no=>no[to]))},getMaxCoordinate=(eo,to)=>{if(eo.length)return Math.max(...eo.map(no=>no[to]+(to==="y"?no.height||0:no.width||0)))},setSizeForNode=(eo,to)=>Object.assign(Object.assign({},eo),getNodeSize(eo,to)),getBoundingBoxOfNodes=eo=>{let to=1/0,no=1/0,io=-1/0,so=-1/0;return eo.forEach(ao=>{const lo=ao.x,uo=ao.y,ho=ao.x+(ao.width||0),go=ao.y+(ao.height||0);loio&&(io=ho),go>so&&(so=go)}),{x:to,y:no,width:io-to,height:so-no}},getDummyDraggingNode=eo=>{const{x:to,y:no,width:io,height:so}=getBoundingBoxOfNodes(eo);return{id:v4(),x:to,y:no,width:io,height:so}},getClosestNodes=(eo,to,no,io,so=2)=>{const ao=[],lo=[],{x:uo,y:ho,width:go=0,height:mo=0}=eo;let yo=so,So=so;return no.forEach(_o=>{if(to.find(Ro=>Ro.id===_o.id))return;const ko=setSizeForNode(_o,io),{width:Co=0,height:$o=0}=ko;[uo,uo+go/2,uo+go].forEach((Ro,Oo)=>{ao[Oo]||(ao[Oo]={}),ao[Oo].closestNodes||(ao[Oo].closestNodes=[]),[ko.x,ko.x+Co/2,ko.x+Co].forEach(No=>{var Mo;const Bo=Math.abs(Ro-No);Bo<=yo&&((Mo=ao[Oo].closestNodes)===null||Mo===void 0||Mo.push(ko),ao[Oo].alignCoordinateValue=No,yo=Bo)})}),[ho,ho+mo/2,ho+mo].forEach((Ro,Oo)=>{lo[Oo]||(lo[Oo]={}),lo[Oo].closestNodes||(lo[Oo].closestNodes=[]),[ko.y,ko.y+$o/2,ko.y+$o].forEach(No=>{var Mo;const Bo=Math.abs(Ro-No);Bo<=So&&((Mo=lo[Oo].closestNodes)===null||Mo===void 0||Mo.push(ko),lo[Oo].alignCoordinateValue=No,So=Bo)})})}),{closestX:ao,closestY:lo}},getLines=(eo,to,no=1)=>{const io=[],so=[],ao=to.closestX,lo=to.closestY;return ao.forEach((uo,ho)=>{var go;if(uo.alignCoordinateValue===void 0||ho===1&&(io.length||no>1))return;const mo=[],yo=uo.alignCoordinateValue;(go=uo.closestNodes)===null||go===void 0||go.forEach(ko=>{(ko.x===yo||ko.x+(ko.width||0)/2===yo||ko.x+(ko.width||0)===yo)&&mo.push(ko)});const So=getMinCoordinate([eo,...mo],"y"),_o=getMaxCoordinate([eo,...mo],"y");So!==void 0&&_o!==void 0&&io.push({x1:yo,y1:So,x2:yo,y2:_o,visible:!0})}),lo.forEach((uo,ho)=>{var go;if(uo.alignCoordinateValue===void 0||ho===1&&(so.length||no>1))return;const mo=[],yo=uo.alignCoordinateValue;(go=uo.closestNodes)===null||go===void 0||go.forEach(ko=>{(ko.y===yo||ko.y+(ko.height||0)/2===yo||ko.y+(ko.height||0)===yo)&&mo.push(ko)});const So=getMinCoordinate([eo,...mo],"x"),_o=getMaxCoordinate([eo,...mo],"x");So!==void 0&&_o!==void 0&&so.push({x1:So,y1:yo,x2:_o,y2:yo,visible:!0})}),[...io,...so]};function pipe(...eo){return eo.reduceRight((to,no)=>io=>to(no(io)),identical)}const getDelta=(eo,to,no)=>noto?10:0;function getSelectedNodes(eo,to){const no=[];return eo.nodes.forEach(io=>{isSelected(io)&&no.push(Object.assign({id:io.id,x:io.x,y:io.y},getNodeSize(io,to)))}),no}function dragNodeHandler(eo,to){if(!isViewportComplete(eo.viewport))return eo;const no=_o=>Math.max(_o,getScaleLimit(lo,eo.settings)),io=to.rawEvent,{rect:so}=eo.viewport,ao=Object.assign({},eo),lo=eo.data.present,uo=getDelta(so.left,so.right,io.clientX),ho=getDelta(so.top,so.bottom,io.clientY),go=uo!==0||ho!==0?.999:1,mo=uo!==0||uo!==0?pipe(pan(-uo,-ho),zoom({scale:go,anchor:getRelativePoint(so,io),direction:Direction$2.XY,limitScale:no}))(eo.viewport):eo.viewport,yo=getPointDeltaByClientDelta(to.dx+uo*go,to.dy+ho*go,mo.transformMatrix),So=Object.assign(Object.assign({},eo.dummyNodes),{dx:eo.dummyNodes.dx+yo.x,dy:eo.dummyNodes.dy+yo.y,isVisible:to.isVisible});if(to.isAutoAlignEnable){const _o=getRenderedNodes(lo.nodes,eo.viewport);if(_o.lengthObject.assign(Object.assign({},$o),{x:$o.x+So.dx,y:$o.y+So.dy})),Co=getAlignmentLines(ko,_o,eo.settings.graphConfig,eo.viewport.transformMatrix[0]>.3?2:5);if(Co.length){const $o=getAutoAlignDisplacement(Co,ko,eo.settings.graphConfig,"x"),Ro=getAutoAlignDisplacement(Co,ko,eo.settings.graphConfig,"y");So.alignedDX=So.dx+$o,So.alignedDY=So.dy+Ro}else So.alignedDX=void 0,So.alignedDY=void 0;ao.alignmentLines=Co}else So.alignedDX=void 0,So.alignedDY=void 0}return ao.dummyNodes=So,ao.viewport=mo,ao}function handleDraggingNewNode(eo,to){if(!eo.settings.features.has(GraphFeatures.AutoAlign))return eo;const no=eo.data.present,io=getRenderedNodes(no.nodes,eo.viewport),so=getAlignmentLines([to.node],io,eo.settings.graphConfig,eo.viewport.transformMatrix[0]>.3?2:5);return Object.assign(Object.assign({},eo),{alignmentLines:so})}function dragStart(eo,to){let no=eo.data.present;const io=no.nodes.get(to.node.id);if(!io)return eo;let so;return to.isMultiSelect?(no=no.selectNodes(ao=>ao.id===to.node.id||isSelected(ao)),so=getSelectedNodes(no,eo.settings.graphConfig)):isSelected(io)?so=getSelectedNodes(no,eo.settings.graphConfig):so=[Object.assign({id:to.node.id,x:to.node.x,y:to.node.y},getNodeSize(to.node,eo.settings.graphConfig))],Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:no}),dummyNodes:Object.assign(Object.assign({},emptyDummyNodes()),{isVisible:!1,nodes:so})})}function dragEnd(eo,to){let no=eo.data.present;if(to.isDragCanceled)return Object.assign(Object.assign({},eo),{alignmentLines:[],dummyNodes:emptyDummyNodes()});const{dx:io,dy:so}=eo.dummyNodes;return no=no.updateNodesPositionAndSize(eo.dummyNodes.nodes.map(ao=>Object.assign(Object.assign({},ao),{x:ao.x+io,y:ao.y+so,width:void 0,height:void 0}))),Object.assign(Object.assign({},eo),{alignmentLines:[],dummyNodes:emptyDummyNodes(),data:pushHistory(eo.data,no,unSelectAllEntity())})}function locateNode(eo,to){const no=to.data.present;if(!isViewportComplete(to.viewport)||!eo.nodes.length)return to;if(eo.nodes.length===1){const uo=eo.nodes[0],ho=no.nodes.get(uo);if(!ho)return to;const{width:go,height:mo}=getNodeSize(ho,to.settings.graphConfig),yo=eo.type===GraphNodeEvent.Centralize?ho.x+go/2:ho.x,So=eo.type===GraphNodeEvent.Centralize?ho.y+mo/2:ho.y,{x:_o,y:ko}=transformPoint(yo,So,to.viewport.transformMatrix),Co=eo.type===GraphNodeEvent.Locate?eo.position:void 0;return Object.assign(Object.assign({},to),{viewport:scrollIntoView$3(_o,ko,to.viewport.rect,!0,Co)(to.viewport)})}const{minNodeX:io,minNodeY:so,maxNodeX:ao,maxNodeY:lo}=getContentArea$1(no,to.settings.graphConfig,new Set(eo.nodes));return Object.assign(Object.assign({},to),{viewport:focusArea(io,so,ao,lo,to.viewport)})}const nodeReducer=(eo,to)=>{const no=eo.data.present;switch(to.type){case GraphNodeEvent.ResizingStart:return Object.assign(Object.assign({},eo),{dummyNodes:Object.assign(Object.assign({},emptyDummyNodes()),{isVisible:!0,nodes:getSelectedNodes(no,eo.settings.graphConfig)})});case GraphNodeEvent.Resizing:return Object.assign(Object.assign({},eo),{dummyNodes:Object.assign(Object.assign({},eo.dummyNodes),{dx:to.dx,dy:to.dy,dWidth:to.dWidth,dHeight:to.dHeight})});case GraphNodeEvent.ResizingEnd:{const{dx:io,dy:so,dWidth:ao,dHeight:lo}=eo.dummyNodes;return Object.assign(Object.assign({},eo),{dummyNodes:emptyDummyNodes(),data:pushHistory(eo.data,no.updateNodesPositionAndSize(eo.dummyNodes.nodes.map(uo=>Object.assign(Object.assign({},uo),{x:uo.x+io,y:uo.y+so,width:uo.width+ao,height:uo.height+lo}))),unSelectAllEntity())})}case GraphNodeEvent.DragStart:return dragStart(eo,to);case GraphNodeEvent.Drag:return dragNodeHandler(eo,to);case GraphNodeEvent.DragEnd:return dragEnd(eo,to);case GraphNodeEvent.PointerEnter:switch(eo.behavior){case GraphBehavior.Default:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:no.updateNode(to.node.id,updateStatus(add$1(GraphNodeStatus.Activated)))})});default:return eo}case GraphNodeEvent.PointerLeave:switch(eo.behavior){case GraphBehavior.Default:case GraphBehavior.Connecting:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:no.updateNode(to.node.id,updateStatus(remove$3(GraphNodeStatus.Activated)))})});default:return eo}case GraphCanvasEvent.DraggingNodeFromItemPanel:return handleDraggingNewNode(eo,to);case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:return to.node?Object.assign(Object.assign({},eo),{alignmentLines:[],data:pushHistory(eo.data,eo.data.present.insertNode(Object.assign(Object.assign({},to.node),{status:GraphNodeStatus.Selected})),unSelectAllEntity())}):Object.assign(Object.assign({},eo),{alignmentLines:[]});case GraphNodeEvent.Centralize:case GraphNodeEvent.Locate:return locateNode(to,eo);case GraphNodeEvent.Add:return Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,no.insertNode(to.node))});case GraphNodeEvent.DoubleClick:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateNode(to.node.id,updateStatus(add$1(GraphNodeStatus.Editing)))})});default:return eo}},portReducer=(eo,to)=>{switch(to.type){case GraphPortEvent.Focus:case GraphPortEvent.PointerEnter:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.node.id,to.port.id,updateStatus(add$1(GraphPortStatus.Activated)))})});case GraphPortEvent.Blur:case GraphPortEvent.PointerLeave:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.node.id,to.port.id,updateStatus(remove$3(GraphPortStatus.Activated)))})});case GraphPortEvent.Click:case GraphPortEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(eo.data.present).updatePort(to.node.id,to.port.id,updateStatus(add$1(GraphPortStatus.Selected)))})});default:return eo}},selectNodeBySelectBox=(eo,to,no,io)=>{if(!no.width||!no.height)return io;const so=Math.min(no.startX,no.startX+no.width),ao=Math.max(no.startX,no.startX+no.width),lo=Math.min(no.startY,no.startY+no.height),uo=Math.max(no.startY,no.startY+no.height),ho=reverseTransformPoint(so,lo,to),go=reverseTransformPoint(ao,uo,to),mo={minX:ho.x,minY:ho.y,maxX:go.x,maxY:go.y};return io.selectNodes(yo=>{const{width:So,height:_o}=getNodeSize(yo,eo),ko={minX:yo.x,minY:yo.y,maxX:yo.x+So,maxY:yo.y+_o};return checkRectIntersect(mo,ko)})};function handleNavigate(eo,to){let no=unSelectAllEntity()(eo.data.present);if(to.node&&to.port)no=no.updatePort(to.node.id,to.port.id,updateStatus(add$1(GraphPortStatus.Selected)));else if(to.node){const io=to.node.id;no=no.selectNodes(so=>so.id===io)}return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:no})})}const selectionReducer=(eo,to)=>{var no,io;const so=eo.data.present,ao=eo.settings.features.has(GraphFeatures.LassoSelect);switch(to.type){case GraphCanvasEvent.Click:case GraphCanvasEvent.ResetSelection:case GraphCanvasEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(so)})});case GraphNodeEvent.Click:case GraphNodeEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:nodeSelection(to.rawEvent,to.node)(so)})});case GraphCanvasEvent.SelectStart:{if(!isViewportComplete(eo.viewport))return eo;const lo=getRelativePoint(eo.viewport.rect,to.rawEvent);return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(so)}),selectBoxPosition:{startX:lo.x,startY:ao?0:lo.y,width:0,height:0}})}case GraphCanvasEvent.SelectMove:return eo.behavior!==GraphBehavior.MultiSelect?eo:Object.assign(Object.assign({},eo),{selectBoxPosition:Object.assign(Object.assign({},eo.selectBoxPosition),{width:eo.selectBoxPosition.width+to.dx,height:ao?(io=(no=eo.viewport.rect)===null||no===void 0?void 0:no.height)!==null&&io!==void 0?io:eo.selectBoxPosition.height:eo.selectBoxPosition.height+to.dy})});case GraphCanvasEvent.SelectEnd:return Object.assign(Object.assign({},eo),{selectBoxPosition:emptySelectBoxPosition(),data:Object.assign(Object.assign({},eo.data),{present:selectNodeBySelectBox(eo.settings.graphConfig,eo.viewport.transformMatrix,eo.selectBoxPosition,so)})});case GraphCanvasEvent.UpdateNodeSelectionBySelectBox:return eo.behavior!==GraphBehavior.MultiSelect?eo:Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:selectNodeBySelectBox(eo.settings.graphConfig,eo.viewport.transformMatrix,eo.selectBoxPosition,so)})});case GraphCanvasEvent.Navigate:return handleNavigate(eo,to);case GraphNodeEvent.SelectAll:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:so.selectNodes(()=>!0)})});case GraphNodeEvent.Select:{const lo=new Set(to.nodes);return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:so.selectNodes(uo=>lo.has(uo.id))})})}default:return eo}};function getRectCenter(eo){return{x:eo.width/2,y:eo.height/2}}function resetViewport(eo,to,no,io){if(!isViewportComplete(eo))return eo;if(!io.ensureNodeVisible)return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const{nodes:so,groups:ao}=to;if(so.size===0)return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const lo=_o=>isRectVisible(_o,eo),uo=so.map(_o=>getNodeRect(_o,no));if(uo.find(lo))return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const go=ao.map(_o=>getGroupRect(_o,so,no));if(go.find(lo))return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});let yo=uo.first();const So=_o=>{yo.y>_o.y&&(yo=_o)};return uo.forEach(So),go.forEach(So),Object.assign(Object.assign({},eo),{transformMatrix:[1,0,0,1,-yo.x,-yo.y]})}function zoomToFit(eo,to,no,io){if(!isViewportComplete(eo))return eo;const{graphConfig:so,nodeMaxVisibleSize:ao,nodeMinVisibleSize:lo}=no,uo=getZoomFitMatrix(Object.assign(Object.assign({},io),{data:to,graphConfig:so,rect:eo.rect,nodeMaxVisibleSize:ao,nodeMinVisibleSize:lo}));return Object.assign(Object.assign({},eo),{transformMatrix:uo})}const reducer=(eo,to,no,io)=>{var so,ao,lo,uo;const{graphConfig:ho,canvasBoundaryPadding:go,features:mo}=io,yo=So=>Math.max(So,getScaleLimit(no,io));switch(to.type){case GraphCanvasEvent.ViewportResize:return Object.assign(Object.assign({},eo),{rect:to.viewportRect});case GraphCanvasEvent.Zoom:return isViewportComplete(eo)?zoom({scale:to.scale,anchor:(so=to.anchor)!==null&&so!==void 0?so:getRectCenter(eo.rect),direction:to.direction,limitScale:yo})(eo):eo;case GraphScrollBarEvent.Scroll:case GraphCanvasEvent.MouseWheelScroll:case GraphCanvasEvent.Pan:case GraphCanvasEvent.Drag:{if(!isViewportComplete(eo))return eo;const{transformMatrix:So,rect:_o}=eo;let{dx:ko,dy:Co}=to;const $o=mo.has(GraphFeatures.LimitBoundary),Ro=(lo=(ao=no.groups)===null||ao===void 0?void 0:ao[0])===null||lo===void 0?void 0:lo.padding;if($o){const{minX:Oo,maxX:No,minY:Mo,maxY:Bo}=getOffsetLimit({data:no,graphConfig:ho,rect:_o,transformMatrix:So,canvasBoundaryPadding:go,groupPadding:Ro});ko=clamp$1(Oo-So[4],No-So[4],ko),Co=clamp$1(Mo-So[5],Bo-So[5],Co)}return pan(ko,Co)(eo)}case GraphCanvasEvent.Pinch:{const{dx:So,dy:_o,scale:ko,anchor:Co}=to;return pipe(pan(So,_o),zoom({scale:ko,anchor:Co,limitScale:yo}))(eo)}case GraphMinimapEvent.Pan:return minimapPan(to.dx,to.dy)(eo);case GraphCanvasEvent.ResetViewport:return resetViewport(eo,no,ho,to);case GraphCanvasEvent.ZoomTo:return isViewportComplete(eo)?zoomTo({scale:to.scale,anchor:(uo=to.anchor)!==null&&uo!==void 0?uo:getRectCenter(eo.rect),direction:to.direction,limitScale:yo})(eo):eo;case GraphCanvasEvent.ZoomToFit:return zoomToFit(eo,no,io,to);case GraphCanvasEvent.ScrollIntoView:if(eo.rect){const{x:So,y:_o}=transformPoint(to.x,to.y,eo.transformMatrix);return scrollIntoView$3(So,_o,eo.rect,!0)(eo)}return eo;default:return eo}},viewportReducer=(eo,to)=>{const no=reducer(eo.viewport,to,eo.data.present,eo.settings);return no===eo.viewport?eo:Object.assign(Object.assign({},eo),{viewport:no})},builtinReducer=composeReducers([behaviorReducer,viewportReducer,nodeReducer,portReducer,edgeReducer,canvasReducer,connectingReducer,selectionReducer,contextMenuReducer].map(eo=>to=>(no,io)=>to(eo(no,io),io)));function getGraphReducer(eo=void 0,to=identical){return(eo?composeReducers([eo,builtinReducer]):builtinReducer)(to)}class MouseMoveEventProvider{constructor(to){this.target=to}off(to,no){switch(to){case"move":this.target.removeEventListener("mousemove",no);break;case"end":this.target.removeEventListener("mouseup",no);break}return this}on(to,no){switch(to){case"move":this.target.addEventListener("mousemove",no);break;case"end":this.target.addEventListener("mouseup",no);break}return this}}const useGetMouseDownOnAnchor=(eo,to)=>{const no=useGraphController();return reactExports.useCallback(io=>so=>{so.preventDefault(),so.stopPropagation(),to.trigger({type:GraphNodeEvent.ResizingStart,rawEvent:so,node:eo});const ao=new DragController(new MouseMoveEventProvider(no.getGlobalEventTarget()),defaultGetPositionFromEvent);ao.onMove=({totalDX:lo,totalDY:uo,e:ho})=>{to.trigger(Object.assign({type:GraphNodeEvent.Resizing,rawEvent:ho,node:eo,dx:0,dy:0,dWidth:0,dHeight:0},io(lo,uo)))},ao.onEnd=({e:lo})=>{to.trigger({type:GraphNodeEvent.ResizingEnd,rawEvent:lo,node:eo})},to.trigger({type:GraphNodeEvent.ResizingStart,rawEvent:so,node:eo}),ao.start(so.nativeEvent)},[to,no,eo])},emptyLine=()=>({x1:0,y1:0,x2:0,y2:0,visible:!1}),Line$1=eo=>{var to;const{line:no,style:io}=eo,so=Object.assign(Object.assign({strokeWidth:1},io),{stroke:no.visible?(to=io==null?void 0:io.stroke)!==null&&to!==void 0?to:"#ea4300":"none"});return jsxRuntimeExports.jsx("line",{className:"auto-align-hint",x1:no.x1,y1:no.y1,x2:no.x2,y2:no.y2,style:so})},AlignmentLines=reactExports.memo(({style:eo})=>{const to=useAlignmentLines();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:to.map((no,io)=>no.visible?jsxRuntimeExports.jsx(Line$1,{line:no,style:eo},io):null)})});AlignmentLines.displayName="AlignmentLines";const NodeFrame=eo=>{var to,no;const io=reactExports.useContext(SlotsContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(no=(to=io.renderNodeFrame)===null||to===void 0?void 0:to.call(io,eo))!==null&&no!==void 0?no:eo.children})},NodeResizeHandler=eo=>{var to,no;const io=reactExports.useContext(SlotsContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(no=(to=io.renderNodeResizeHandler)===null||to===void 0?void 0:to.call(io,eo))!==null&&no!==void 0?no:eo.children})},Slots={NodeFrame,NodeResizeHandler},ConnectingLine=eo=>{const{autoAttachLine:to,connectingLine:no,styles:io}=eo,so=(io==null?void 0:io.stroke)||defaultColors.primaryColor,ao=(io==null?void 0:io.fill)||"none",lo=(io==null?void 0:io.strokeDasharray)||"4,4",uo=no.visible?so:"none";return jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("marker",Object.assign({id:"markerArrow",markerWidth:"10",markerHeight:"10",refX:"6",refY:"5",orient:"auto",markerUnits:"strokeWidth"},{children:jsxRuntimeExports.jsx("path",{d:"M0,0 L6,5 L0,10",style:{stroke:uo,fill:"none"}})}))}),jsxRuntimeExports.jsx("line",{x1:no.x1,y1:no.y1,x2:no.x2,y2:no.y2,style:{stroke:uo,fill:ao,strokeDasharray:lo},markerEnd:"url(#markerArrow)"}),jsxRuntimeExports.jsx("path",{d:getCurvePathD(to.x2,to.x1,to.y2,to.y1),style:{stroke:to.visible?so:"none",fill:"none"}})]})},Connecting=reactExports.memo(eo=>{const{styles:to,graphConfig:no,viewport:io,movingPoint:so}=eo,{sourcePort:ao,sourceNode:lo,targetPort:uo,targetNode:ho}=useConnectingState();if(!lo||!ao)return null;const go=lo.getPortPosition(ao.id,no);let mo,yo=!1;if(ho&&uo?(yo=!0,mo=ho==null?void 0:ho.getPortPosition(uo.id,no)):mo=go,!go||!mo)return null;const So=transformPoint(go.x,go.y,io.transformMatrix),_o=transformPoint(mo.x,mo.y,io.transformMatrix),ko=so?{x1:So.x,y1:So.y,x2:so.x,y2:so.y,visible:!yo}:emptyLine(),Co={x1:So.x,y1:So.y,x2:_o.x,y2:_o.y,visible:yo};return jsxRuntimeExports.jsx(ConnectingLine,{connectingLine:ko,autoAttachLine:Co,styles:to})});Connecting.displayName="Connecting";const SCROLL_BAR_WIDTH=10,wrapperCommonStyle={position:"absolute",cursor:"initial"};createUseStyles({verticalScrollWrapper:Object.assign(Object.assign({},wrapperCommonStyle),{height:"100%",width:SCROLL_BAR_WIDTH,top:0,right:0}),horizontalScrollWrapper:Object.assign(Object.assign({},wrapperCommonStyle),{height:SCROLL_BAR_WIDTH,width:"100%",bottom:0,left:0}),verticalScrollStyle:eo=>({height:eo.scrollbarLayout.verticalScrollHeight,width:"100%",backgroundColor:defaultColors.scrollbarColor,position:"absolute",top:0,right:0,transform:`translateY(${eo.scrollbarLayout.verticalScrollTop}px)`}),horizontalScrollStyle:eo=>({width:eo.scrollbarLayout.horizontalScrollWidth-SCROLL_BAR_WIDTH,height:"100%",backgroundColor:defaultColors.scrollbarColor,position:"absolute",left:0,bottom:0,transform:`translateX(${eo.scrollbarLayout.horizontalScrollLeft}px)`})});function getHintPoints(eo,to,{minX:no,minY:io,maxX:so,maxY:ao},lo,uo,ho,go){return eo.x===to.x?{x:eo.x,y:eo.y=io?{x:so,y:lo}:{x:ho,y:io}:eo.yno?{x:uo,y:ao}:{x:no,y:go}:go>io?{x:no,y:go}:{x:ho,y:io}}const GraphEdge=reactExports.memo(eo=>{var to;const{edge:no,data:io,eventChannel:so,source:ao,target:lo,graphId:uo}=eo,ho=useGraphConfig(),go=useVirtualization(),{viewport:mo,renderedArea:yo,visibleArea:So}=go,_o=Go=>Do=>{Do.persist(),so.trigger({type:Go,edge:no,rawEvent:Do})},ko=isPointInRect(yo,ao),Co=isPointInRect(yo,lo),$o=ko&&Co;if(reactExports.useLayoutEffect(()=>{$o&&go.renderedEdges.add(no.id)},[go]),!$o)return null;const Ro=ho.getEdgeConfig(no);if(!Ro)return Debug.warn(`invalid edge ${JSON.stringify(no)}`),null;if(!Ro.render)return Debug.warn(`Missing "render" method in edge config ${JSON.stringify(no)}`),null;const Oo=isPointInRect(So,ao),No=isPointInRect(So,lo);let Mo=Ro.render({model:no,data:io,x1:ao.x,y1:ao.y,x2:lo.x,y2:lo.y,viewport:mo});if(has$2(GraphEdgeStatus.ConnectedToSelected)(no.status)&&(!Oo||!No)){const Go=getLinearFunction(ao.x,ao.y,lo.x,lo.y),Do=getLinearFunction(ao.y,ao.x,lo.y,lo.x),Uo=Oo?ao:lo,Ho=Oo?lo:ao,Yo=Go(So.maxX),qo=Do(So.maxY),Jo=Do(So.minY),ps=Go(So.minX),Qo=getHintPoints(Uo,Ho,So,Yo,qo,Jo,ps);Oo&&Ro.renderWithTargetHint?Mo=Ro.renderWithTargetHint({model:no,data:io,x1:ao.x,y1:ao.y,x2:Qo.x,y2:Qo.y,viewport:mo}):No&&Ro.renderWithSourceHint&&(Mo=Ro.renderWithSourceHint({model:no,data:io,x1:Qo.x,y1:Qo.y,x2:lo.x,y2:lo.y,viewport:mo}))}const Bo=getEdgeUid(uo,no),Fo=`edge-container-${no.id}`,Lo=(to=no.automationId)!==null&&to!==void 0?to:Fo;return jsxRuntimeExports.jsx("g",Object.assign({id:Bo,onClick:_o(GraphEdgeEvent.Click),onDoubleClick:_o(GraphEdgeEvent.DoubleClick),onMouseDown:_o(GraphEdgeEvent.MouseDown),onMouseUp:_o(GraphEdgeEvent.MouseUp),onMouseEnter:_o(GraphEdgeEvent.MouseEnter),onMouseLeave:_o(GraphEdgeEvent.MouseLeave),onContextMenu:_o(GraphEdgeEvent.ContextMenu),onMouseMove:_o(GraphEdgeEvent.MouseMove),onMouseOver:_o(GraphEdgeEvent.MouseOver),onMouseOut:_o(GraphEdgeEvent.MouseOut),onFocus:void 0,onBlur:void 0,className:Fo,"data-automation-id":Lo},{children:Mo}))});function compareEqual(eo,to){return eo.node===to.node}const EdgeChampNodeRender=reactExports.memo(eo=>{var to,no;const{node:io,data:so}=eo,ao=__rest(eo,["node","data"]),lo=useGraphConfig(),uo=[],ho=io.valueCount;for(let yo=0;yo{const{data:to,node:no}=eo,io=__rest(eo,["data","node"]),so=useGraphConfig();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:no.values.map(ao=>{var lo,uo;const ho=(lo=to.nodes.get(ao.source))===null||lo===void 0?void 0:lo.getPortPosition(ao.sourcePortId,so),go=(uo=to.nodes.get(ao.target))===null||uo===void 0?void 0:uo.getPortPosition(ao.targetPortId,so);return ho&&go?reactExports.createElement(GraphEdge,Object.assign({},io,{key:ao.id,data:to,edge:ao,source:ho,target:go})):null})})},compareEqual);EdgeHashCollisionNodeRender.displayName="EdgeHashCollisionNodeRender";const styles$c=mergeStyleSets({svg:[{position:"absolute",overflow:"hidden",top:0,left:0,width:"100%",height:"100%"},{"&:focus":{outline:"none"}}],node:{cursor:"move"},container:{position:"relative",width:"100%",height:"100%",overflow:"hidden",touchAction:"none"},buttonA11Y:{opacity:0,width:0,height:0,overflow:"hidden"},addingNodeSvg:{zIndex:1e6,position:"fixed",left:0,top:0,width:"100%",height:"100%"},moduleItem:{userSelect:"none",cursor:"pointer"},minimap:{height:320,width:320,userSelect:"none",touchAction:"none"},minimapSvg:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),GraphNode=eo=>{var to;const{node:no,eventChannel:io,getNodeAriaLabel:so,viewport:ao,graphId:lo}=eo,uo=useGraphConfig(),ho=getNodeConfig(no,uo),go=_o=>ko=>{ko.persist();const Co={type:_o,node:no,rawEvent:ko};io.trigger(Co)},mo=_o=>{_o.persist();const ko=checkIsMultiSelect(_o);io.trigger({type:GraphNodeEvent.Click,rawEvent:_o,isMultiSelect:ko,node:no})},yo=getNodeUid(lo,no),So=(to=no.automationId)!==null&&to!==void 0?to:getNodeAutomationId(no);return ho!=null&&ho.render?jsxRuntimeExports.jsx("g",Object.assign({id:yo,focusable:"true",tabIndex:0,className:styles$c.node,onPointerDown:go(GraphNodeEvent.PointerDown),onPointerEnter:go(GraphNodeEvent.PointerEnter),onPointerMove:go(GraphNodeEvent.PointerMove),onPointerLeave:go(GraphNodeEvent.PointerLeave),onPointerUp:go(GraphNodeEvent.PointerUp),onDoubleClick:go(GraphNodeEvent.DoubleClick),onMouseDown:go(GraphNodeEvent.MouseDown),onMouseUp:go(GraphNodeEvent.MouseUp),onMouseEnter:go(GraphNodeEvent.MouseEnter),onMouseLeave:go(GraphNodeEvent.MouseLeave),onContextMenu:go(GraphNodeEvent.ContextMenu),onMouseMove:go(GraphNodeEvent.MouseMove),onMouseOver:go(GraphNodeEvent.MouseOver),onMouseOut:go(GraphNodeEvent.MouseOut),onClick:mo,onKeyDown:go(GraphNodeEvent.KeyDown),"aria-label":so(no),role:"group","aria-roledescription":"node","data-automation-id":So},{children:jsxRuntimeExports.jsx("g",Object.assign({className:"node-box-container"},{children:ho.render({model:no,viewport:ao})}))})):null},RESIZE_POINT_WIDTH=8,RESIZE_POINT_HEIGHT=8,NodeAnchor=({x:eo,y:to,cursor:no,onMouseDown:io})=>jsxRuntimeExports.jsx(Slots.NodeResizeHandler,Object.assign({x:eo,y:to,cursor:no,onMouseDown:io},{children:jsxRuntimeExports.jsx("rect",{x:eo,y:to,height:RESIZE_POINT_HEIGHT,width:RESIZE_POINT_WIDTH,stroke:defaultColors.controlPointColor,fill:"transparent",cursor:no,onMouseDown:io})})),BBOX_PADDING=15,GraphNodeAnchors=eo=>{var to,no;const{node:io,getMouseDown:so}=eo,ao=useGraphConfig(),lo=getNodeConfig(io,ao),uo=(to=lo==null?void 0:lo.getMinWidth(io))!==null&&to!==void 0?to:0,ho=(no=lo==null?void 0:lo.getMinHeight(io))!==null&&no!==void 0?no:0,go=getRectHeight(lo,io),mo=getRectWidth(lo,io),yo=so((No,Mo)=>{const Bo=Math.min(No,mo-uo),Fo=Math.min(Mo,go-ho);return{dx:+Bo,dy:+Fo,dWidth:-Bo,dHeight:-Fo}}),So=so((No,Mo)=>{const Bo=Math.min(Mo,go-ho);return{dy:+Bo,dHeight:-Bo}}),_o=so((No,Mo)=>{const Bo=Math.max(No,uo-mo),Fo=Math.min(Mo,go-ho);return{dy:+Fo,dWidth:+Bo,dHeight:-Fo}}),ko=so(No=>({dWidth:+Math.max(No,uo-mo)})),Co=so((No,Mo)=>{const Bo=Math.max(No,uo-mo),Fo=Math.max(Mo,ho-go);return{dWidth:+Bo,dHeight:+Fo}}),$o=so((No,Mo)=>({dHeight:+Math.max(Mo,ho-go)})),Ro=so((No,Mo)=>{const Bo=Math.min(No,mo-uo),Fo=Math.max(Mo,ho-go);return{dx:+Bo,dWidth:-Bo,dHeight:+Fo}}),Oo=so(No=>{const Mo=Math.min(No,mo-uo);return{dx:Mo,dWidth:-Mo}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(NodeAnchor,{cursor:"nw-resize",x:io.x-BBOX_PADDING,y:io.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,onMouseDown:yo},"nw-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x+mo/2-RESIZE_POINT_WIDTH/2,y:io.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,cursor:"n-resize",onMouseDown:So},"n-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x+mo+BBOX_PADDING-RESIZE_POINT_WIDTH,y:io.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,cursor:"ne-resize",onMouseDown:_o},"ne-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x+mo+BBOX_PADDING-RESIZE_POINT_WIDTH,y:io.y+go/2-RESIZE_POINT_HEIGHT/2,cursor:"e-resize",onMouseDown:ko},"e-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x+mo+BBOX_PADDING-RESIZE_POINT_WIDTH,y:io.y+go+BBOX_PADDING,cursor:"se-resize",onMouseDown:Co},"se-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x+mo/2-RESIZE_POINT_WIDTH/2,y:io.y+go+BBOX_PADDING,cursor:"s-resize",onMouseDown:$o},"s-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x-BBOX_PADDING,y:io.y+go+BBOX_PADDING,cursor:"sw-resize",onMouseDown:Ro},"sw-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:io.x-BBOX_PADDING,y:io.y+go/2-RESIZE_POINT_HEIGHT/2,cursor:"w-resize",onMouseDown:Oo},"w-resize")]})},GraphOneNodePorts=eo=>{const{data:to,node:no,getPortAriaLabel:io,eventChannel:so,viewport:ao,graphId:lo}=eo,uo=useGraphConfig(),ho=no.ports;if(!ho)return null;const go=(mo,yo)=>So=>{So.persist(),so.trigger({type:mo,node:no,port:yo,rawEvent:So})};return jsxRuntimeExports.jsx("g",{children:ho.map(mo=>{var yo;const So=uo.getPortConfig(mo);if(!So||!So.render)return Debug.warn(`invalid port config ${no.id}:${no.name} - ${mo.id}:${mo.name}`),null;const _o=no.getPortPosition(mo.id,uo);if(!_o)return null;const ko=getPortUid(lo,no,mo),Co=(yo=mo.automationId)!==null&&yo!==void 0?yo:getPortAutomationId(mo,no);return jsxRuntimeExports.jsx("g",Object.assign({id:ko,tabIndex:0,focusable:"true",onPointerDown:go(GraphPortEvent.PointerDown,mo),onPointerUp:go(GraphPortEvent.PointerUp,mo),onDoubleClick:go(GraphPortEvent.DoubleClick,mo),onMouseDown:go(GraphPortEvent.MouseDown,mo),onMouseUp:go(GraphPortEvent.MouseUp,mo),onContextMenu:go(GraphPortEvent.ContextMenu,mo),onPointerEnter:go(GraphPortEvent.PointerEnter,mo),onPointerLeave:go(GraphPortEvent.PointerLeave,mo),onMouseMove:go(GraphPortEvent.MouseMove,mo),onMouseOver:go(GraphPortEvent.MouseOver,mo),onMouseOut:go(GraphPortEvent.MouseOut,mo),onFocus:go(GraphPortEvent.Focus,mo),onBlur:go(GraphPortEvent.Blur,mo),onKeyDown:go(GraphPortEvent.KeyDown,mo),onClick:go(GraphPortEvent.Click,mo),"aria-label":io(to,no,mo),role:"group","aria-roledescription":"port","data-automation-id":Co},{children:jsxRuntimeExports.jsx(ConnectingStateContext.Consumer,{children:({sourceNode:$o,sourcePort:Ro})=>So==null?void 0:So.render(Object.assign({model:mo,data:to,parentNode:no,anotherNode:$o,anotherPort:Ro,viewport:ao},_o))})}),ko)})})},GraphNodeParts=eo=>{var{node:to,isNodeResizable:no,renderNodeAnchors:io}=eo,so=__rest(eo,["node","isNodeResizable","renderNodeAnchors"]);const ao=useVirtualization(),{renderedArea:lo,viewport:uo}=ao,ho=useGetMouseDownOnAnchor(to,so.eventChannel),go=isPointInRect(lo,to);if(reactExports.useLayoutEffect(()=>{go&&ao.renderedEdges.add(to.id)},[ao]),!go)return null;let mo;if(no&&isNodeEditing(to)){const yo=jsxRuntimeExports.jsx(GraphNodeAnchors,{node:to,getMouseDown:ho});mo=io?io(to,ho,yo):yo}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(GraphNode,Object.assign({},so,{node:to,viewport:uo})),jsxRuntimeExports.jsx(GraphOneNodePorts,Object.assign({},so,{node:to,viewport:uo})),mo]})},GraphNodePartsMemo=reactExports.memo(GraphNodeParts),NodeTreeNode=reactExports.memo(eo=>{var{node:to}=eo,no=__rest(eo,["node"]);const io=to.values.map(ao=>{const lo=ao[1];return jsxRuntimeExports.jsx(GraphNodePartsMemo,Object.assign({node:lo},no),lo.id)}),so=to.type===NodeType$2.Internal?to.children.map((ao,lo)=>{const uo=loeo.node===to.node);NodeTreeNode.displayName="NodeTreeNode";const el=document.createElement("div");document.body.appendChild(el);const StaticNode=eo=>{const{node:to}=eo,no=useGraphConfig(),io=getNodeConfig(to,no);if(io!=null&&io.renderStatic)return jsxRuntimeExports.jsx("g",{children:io.renderStatic({model:to})});const so=getRectHeight(io,to),ao=getRectWidth(io,to);return jsxRuntimeExports.jsx("rect",{transform:`translate(${to.x}, ${to.y})`,height:so,width:ao,fill:defaultColors.dummyNodeStroke})},StaticNodeWithMemo=reactExports.memo(StaticNode,(eo,to)=>{const no=eo.node,io=to.node;return no.x===io.x&&no.y===io.y&&no.height===io.height&&no.width===io.width&&no.isInSearchResults===io.isInSearchResults&&no.isCurrentSearchResult===io.isCurrentSearchResult}),ReadonlyNodeTreeNode=reactExports.memo(({node:eo})=>{const to=eo.values.map(io=>jsxRuntimeExports.jsx(StaticNodeWithMemo,{node:io[1]},io[1].id)),no=eo.type===NodeType$2.Internal?eo.children.map((io,so)=>{const ao=so>>0;if(""+no!==to||no===4294967295)return NaN;to=no}return to<0?ensureSize(eo)+to:to}function returnTrue$1(){return!0}function wholeSlice(eo,to,no){return(eo===0&&!isNeg(eo)||no!==void 0&&eo<=-no)&&(to===void 0||no!==void 0&&to>=no)}function resolveBegin(eo,to){return resolveIndex(eo,to,0)}function resolveEnd(eo,to){return resolveIndex(eo,to,to)}function resolveIndex(eo,to,no){return eo===void 0?no:isNeg(eo)?to===1/0?to:Math.max(0,to+eo)|0:to===void 0||to===eo?eo:Math.min(to,eo)|0}function isNeg(eo){return eo<0||eo===0&&1/eo===-1/0}var IS_COLLECTION_SYMBOL="@@__IMMUTABLE_ITERABLE__@@";function isCollection(eo){return!!(eo&&eo[IS_COLLECTION_SYMBOL])}var IS_KEYED_SYMBOL="@@__IMMUTABLE_KEYED__@@";function isKeyed(eo){return!!(eo&&eo[IS_KEYED_SYMBOL])}var IS_INDEXED_SYMBOL="@@__IMMUTABLE_INDEXED__@@";function isIndexed(eo){return!!(eo&&eo[IS_INDEXED_SYMBOL])}function isAssociative(eo){return isKeyed(eo)||isIndexed(eo)}var Collection$2=function(to){return isCollection(to)?to:Seq(to)},KeyedCollection=function(eo){function to(no){return isKeyed(no)?no:KeyedSeq(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$2),IndexedCollection=function(eo){function to(no){return isIndexed(no)?no:IndexedSeq(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$2),SetCollection=function(eo){function to(no){return isCollection(no)&&!isAssociative(no)?no:SetSeq(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$2);Collection$2.Keyed=KeyedCollection;Collection$2.Indexed=IndexedCollection;Collection$2.Set=SetCollection;var IS_SEQ_SYMBOL="@@__IMMUTABLE_SEQ__@@";function isSeq(eo){return!!(eo&&eo[IS_SEQ_SYMBOL])}var IS_RECORD_SYMBOL="@@__IMMUTABLE_RECORD__@@";function isRecord(eo){return!!(eo&&eo[IS_RECORD_SYMBOL])}function isImmutable(eo){return isCollection(eo)||isRecord(eo)}var IS_ORDERED_SYMBOL="@@__IMMUTABLE_ORDERED__@@";function isOrdered(eo){return!!(eo&&eo[IS_ORDERED_SYMBOL])}var ITERATE_KEYS=0,ITERATE_VALUES=1,ITERATE_ENTRIES=2,REAL_ITERATOR_SYMBOL=typeof Symbol=="function"&&Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator",ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||FAUX_ITERATOR_SYMBOL,Iterator=function(to){this.next=to};Iterator.prototype.toString=function(){return"[Iterator]"};Iterator.KEYS=ITERATE_KEYS;Iterator.VALUES=ITERATE_VALUES;Iterator.ENTRIES=ITERATE_ENTRIES;Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()};Iterator.prototype[ITERATOR_SYMBOL]=function(){return this};function iteratorValue(eo,to,no,io){var so=eo===0?to:eo===1?no:[to,no];return io?io.value=so:io={value:so,done:!1},io}function iteratorDone(){return{value:void 0,done:!0}}function hasIterator(eo){return Array.isArray(eo)?!0:!!getIteratorFn(eo)}function isIterator(eo){return eo&&typeof eo.next=="function"}function getIterator(eo){var to=getIteratorFn(eo);return to&&to.call(eo)}function getIteratorFn(eo){var to=eo&&(REAL_ITERATOR_SYMBOL&&eo[REAL_ITERATOR_SYMBOL]||eo[FAUX_ITERATOR_SYMBOL]);if(typeof to=="function")return to}function isEntriesIterable(eo){var to=getIteratorFn(eo);return to&&to===eo.entries}function isKeysIterable(eo){var to=getIteratorFn(eo);return to&&to===eo.keys}var hasOwnProperty$n=Object.prototype.hasOwnProperty;function isArrayLike$2(eo){return Array.isArray(eo)||typeof eo=="string"?!0:eo&&typeof eo=="object"&&Number.isInteger(eo.length)&&eo.length>=0&&(eo.length===0?Object.keys(eo).length===1:eo.hasOwnProperty(eo.length-1))}var Seq=function(eo){function to(no){return no==null?emptySequence():isImmutable(no)?no.toSeq():seqFromValue(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.toSeq=function(){return this},to.prototype.toString=function(){return this.__toString("Seq {","}")},to.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},to.prototype.__iterate=function(io,so){var ao=this._cache;if(ao){for(var lo=ao.length,uo=0;uo!==lo;){var ho=ao[so?lo-++uo:uo++];if(io(ho[1],ho[0],this)===!1)break}return uo}return this.__iterateUncached(io,so)},to.prototype.__iterator=function(io,so){var ao=this._cache;if(ao){var lo=ao.length,uo=0;return new Iterator(function(){if(uo===lo)return iteratorDone();var ho=ao[so?lo-++uo:uo++];return iteratorValue(io,ho[0],ho[1])})}return this.__iteratorUncached(io,so)},to}(Collection$2),KeyedSeq=function(eo){function to(no){return no==null?emptySequence().toKeyedSeq():isCollection(no)?isKeyed(no)?no.toSeq():no.fromEntrySeq():isRecord(no)?no.toSeq():keyedSeqFromValue(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.toKeyedSeq=function(){return this},to}(Seq),IndexedSeq=function(eo){function to(no){return no==null?emptySequence():isCollection(no)?isKeyed(no)?no.entrySeq():no.toIndexedSeq():isRecord(no)?no.toSeq().entrySeq():indexedSeqFromValue(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return to(arguments)},to.prototype.toIndexedSeq=function(){return this},to.prototype.toString=function(){return this.__toString("Seq [","]")},to}(Seq),SetSeq=function(eo){function to(no){return(isCollection(no)&&!isAssociative(no)?no:IndexedSeq(no)).toSetSeq()}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return to(arguments)},to.prototype.toSetSeq=function(){return this},to}(Seq);Seq.isSeq=isSeq;Seq.Keyed=KeyedSeq;Seq.Set=SetSeq;Seq.Indexed=IndexedSeq;Seq.prototype[IS_SEQ_SYMBOL]=!0;var ArraySeq=function(eo){function to(no){this._array=no,this.size=no.length}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(io,so){return this.has(io)?this._array[wrapIndex(this,io)]:so},to.prototype.__iterate=function(io,so){for(var ao=this._array,lo=ao.length,uo=0;uo!==lo;){var ho=so?lo-++uo:uo++;if(io(ao[ho],ho,this)===!1)break}return uo},to.prototype.__iterator=function(io,so){var ao=this._array,lo=ao.length,uo=0;return new Iterator(function(){if(uo===lo)return iteratorDone();var ho=so?lo-++uo:uo++;return iteratorValue(io,ho,ao[ho])})},to}(IndexedSeq),ObjectSeq=function(eo){function to(no){var io=Object.keys(no).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(no):[]);this._object=no,this._keys=io,this.size=io.length}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(io,so){return so!==void 0&&!this.has(io)?so:this._object[io]},to.prototype.has=function(io){return hasOwnProperty$n.call(this._object,io)},to.prototype.__iterate=function(io,so){for(var ao=this._object,lo=this._keys,uo=lo.length,ho=0;ho!==uo;){var go=lo[so?uo-++ho:ho++];if(io(ao[go],go,this)===!1)break}return ho},to.prototype.__iterator=function(io,so){var ao=this._object,lo=this._keys,uo=lo.length,ho=0;return new Iterator(function(){if(ho===uo)return iteratorDone();var go=lo[so?uo-++ho:ho++];return iteratorValue(io,go,ao[go])})},to}(KeyedSeq);ObjectSeq.prototype[IS_ORDERED_SYMBOL]=!0;var CollectionSeq=function(eo){function to(no){this._collection=no,this.size=no.length||no.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.__iterateUncached=function(io,so){if(so)return this.cacheResult().__iterate(io,so);var ao=this._collection,lo=getIterator(ao),uo=0;if(isIterator(lo))for(var ho;!(ho=lo.next()).done&&io(ho.value,uo++,this)!==!1;);return uo},to.prototype.__iteratorUncached=function(io,so){if(so)return this.cacheResult().__iterator(io,so);var ao=this._collection,lo=getIterator(ao);if(!isIterator(lo))return new Iterator(iteratorDone);var uo=0;return new Iterator(function(){var ho=lo.next();return ho.done?ho:iteratorValue(io,uo++,ho.value)})},to}(IndexedSeq),EMPTY_SEQ;function emptySequence(){return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]))}function keyedSeqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return to.fromEntrySeq();if(typeof eo=="object")return new ObjectSeq(eo);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+eo)}function indexedSeqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return to;throw new TypeError("Expected Array or collection object of values: "+eo)}function seqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return isEntriesIterable(eo)?to.fromEntrySeq():isKeysIterable(eo)?to.toSetSeq():to;if(typeof eo=="object")return new ObjectSeq(eo);throw new TypeError("Expected Array or collection object of values, or keyed object: "+eo)}function maybeIndexedSeqFromValue(eo){return isArrayLike$2(eo)?new ArraySeq(eo):hasIterator(eo)?new CollectionSeq(eo):void 0}var IS_MAP_SYMBOL="@@__IMMUTABLE_MAP__@@";function isMap$2(eo){return!!(eo&&eo[IS_MAP_SYMBOL])}function isOrderedMap(eo){return isMap$2(eo)&&isOrdered(eo)}function isValueObject(eo){return!!(eo&&typeof eo.equals=="function"&&typeof eo.hashCode=="function")}function is$1(eo,to){if(eo===to||eo!==eo&&to!==to)return!0;if(!eo||!to)return!1;if(typeof eo.valueOf=="function"&&typeof to.valueOf=="function"){if(eo=eo.valueOf(),to=to.valueOf(),eo===to||eo!==eo&&to!==to)return!0;if(!eo||!to)return!1}return!!(isValueObject(eo)&&isValueObject(to)&&eo.equals(to))}var imul=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(to,no){to|=0,no|=0;var io=to&65535,so=no&65535;return io*so+((to>>>16)*so+io*(no>>>16)<<16>>>0)|0};function smi(eo){return eo>>>1&1073741824|eo&3221225471}var defaultValueOf=Object.prototype.valueOf;function hash$2(eo){if(eo==null)return hashNullish(eo);if(typeof eo.hashCode=="function")return smi(eo.hashCode(eo));var to=valueOf(eo);if(to==null)return hashNullish(to);switch(typeof to){case"boolean":return to?1108378657:1108378656;case"number":return hashNumber(to);case"string":return to.length>STRING_HASH_CACHE_MIN_STRLEN?cachedHashString(to):hashString$1(to);case"object":case"function":return hashJSObj(to);case"symbol":return hashSymbol(to);default:if(typeof to.toString=="function")return hashString$1(to.toString());throw new Error("Value type "+typeof to+" cannot be hashed.")}}function hashNullish(eo){return eo===null?1108378658:1108378659}function hashNumber(eo){if(eo!==eo||eo===1/0)return 0;var to=eo|0;for(to!==eo&&(to^=eo*4294967295);eo>4294967295;)eo/=4294967295,to^=eo;return smi(to)}function cachedHashString(eo){var to=stringHashCache[eo];return to===void 0&&(to=hashString$1(eo),STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE&&(STRING_HASH_CACHE_SIZE=0,stringHashCache={}),STRING_HASH_CACHE_SIZE++,stringHashCache[eo]=to),to}function hashString$1(eo){for(var to=0,no=0;no0)switch(eo.nodeType){case 1:return eo.uniqueID;case 9:return eo.documentElement&&eo.documentElement.uniqueID}}function valueOf(eo){return eo.valueOf!==defaultValueOf&&typeof eo.valueOf=="function"?eo.valueOf(eo):eo}function nextHash(){var eo=++_objHashUID;return _objHashUID&1073741824&&(_objHashUID=0),eo}var usingWeakMap=typeof WeakMap=="function",weakMap;usingWeakMap&&(weakMap=new WeakMap);var symbolMap=Object.create(null),_objHashUID=0,UID_HASH_KEY="__immutablehash__";typeof Symbol=="function"&&(UID_HASH_KEY=Symbol(UID_HASH_KEY));var STRING_HASH_CACHE_MIN_STRLEN=16,STRING_HASH_CACHE_MAX_SIZE=255,STRING_HASH_CACHE_SIZE=0,stringHashCache={},ToKeyedSequence=function(eo){function to(no,io){this._iter=no,this._useKeys=io,this.size=no.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(io,so){return this._iter.get(io,so)},to.prototype.has=function(io){return this._iter.has(io)},to.prototype.valueSeq=function(){return this._iter.valueSeq()},to.prototype.reverse=function(){var io=this,so=reverseFactory(this,!0);return this._useKeys||(so.valueSeq=function(){return io._iter.toSeq().reverse()}),so},to.prototype.map=function(io,so){var ao=this,lo=mapFactory(this,io,so);return this._useKeys||(lo.valueSeq=function(){return ao._iter.toSeq().map(io,so)}),lo},to.prototype.__iterate=function(io,so){var ao=this;return this._iter.__iterate(function(lo,uo){return io(lo,uo,ao)},so)},to.prototype.__iterator=function(io,so){return this._iter.__iterator(io,so)},to}(KeyedSeq);ToKeyedSequence.prototype[IS_ORDERED_SYMBOL]=!0;var ToIndexedSequence=function(eo){function to(no){this._iter=no,this.size=no.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.includes=function(io){return this._iter.includes(io)},to.prototype.__iterate=function(io,so){var ao=this,lo=0;return so&&ensureSize(this),this._iter.__iterate(function(uo){return io(uo,so?ao.size-++lo:lo++,ao)},so)},to.prototype.__iterator=function(io,so){var ao=this,lo=this._iter.__iterator(ITERATE_VALUES,so),uo=0;return so&&ensureSize(this),new Iterator(function(){var ho=lo.next();return ho.done?ho:iteratorValue(io,so?ao.size-++uo:uo++,ho.value,ho)})},to}(IndexedSeq),ToSetSequence=function(eo){function to(no){this._iter=no,this.size=no.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.has=function(io){return this._iter.includes(io)},to.prototype.__iterate=function(io,so){var ao=this;return this._iter.__iterate(function(lo){return io(lo,lo,ao)},so)},to.prototype.__iterator=function(io,so){var ao=this._iter.__iterator(ITERATE_VALUES,so);return new Iterator(function(){var lo=ao.next();return lo.done?lo:iteratorValue(io,lo.value,lo.value,lo)})},to}(SetSeq),FromEntriesSequence=function(eo){function to(no){this._iter=no,this.size=no.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.entrySeq=function(){return this._iter.toSeq()},to.prototype.__iterate=function(io,so){var ao=this;return this._iter.__iterate(function(lo){if(lo){validateEntry(lo);var uo=isCollection(lo);return io(uo?lo.get(1):lo[1],uo?lo.get(0):lo[0],ao)}},so)},to.prototype.__iterator=function(io,so){var ao=this._iter.__iterator(ITERATE_VALUES,so);return new Iterator(function(){for(;;){var lo=ao.next();if(lo.done)return lo;var uo=lo.value;if(uo){validateEntry(uo);var ho=isCollection(uo);return iteratorValue(io,ho?uo.get(0):uo[0],ho?uo.get(1):uo[1],lo)}}})},to}(KeyedSeq);ToIndexedSequence.prototype.cacheResult=ToKeyedSequence.prototype.cacheResult=ToSetSequence.prototype.cacheResult=FromEntriesSequence.prototype.cacheResult=cacheResultThrough;function flipFactory(eo){var to=makeSequence(eo);return to._iter=eo,to.size=eo.size,to.flip=function(){return eo},to.reverse=function(){var no=eo.reverse.apply(this);return no.flip=function(){return eo.reverse()},no},to.has=function(no){return eo.includes(no)},to.includes=function(no){return eo.has(no)},to.cacheResult=cacheResultThrough,to.__iterateUncached=function(no,io){var so=this;return eo.__iterate(function(ao,lo){return no(lo,ao,so)!==!1},io)},to.__iteratorUncached=function(no,io){if(no===ITERATE_ENTRIES){var so=eo.__iterator(no,io);return new Iterator(function(){var ao=so.next();if(!ao.done){var lo=ao.value[0];ao.value[0]=ao.value[1],ao.value[1]=lo}return ao})}return eo.__iterator(no===ITERATE_VALUES?ITERATE_KEYS:ITERATE_VALUES,io)},to}function mapFactory(eo,to,no){var io=makeSequence(eo);return io.size=eo.size,io.has=function(so){return eo.has(so)},io.get=function(so,ao){var lo=eo.get(so,NOT_SET);return lo===NOT_SET?ao:to.call(no,lo,so,eo)},io.__iterateUncached=function(so,ao){var lo=this;return eo.__iterate(function(uo,ho,go){return so(to.call(no,uo,ho,go),ho,lo)!==!1},ao)},io.__iteratorUncached=function(so,ao){var lo=eo.__iterator(ITERATE_ENTRIES,ao);return new Iterator(function(){var uo=lo.next();if(uo.done)return uo;var ho=uo.value,go=ho[0];return iteratorValue(so,go,to.call(no,ho[1],go,eo),uo)})},io}function reverseFactory(eo,to){var no=this,io=makeSequence(eo);return io._iter=eo,io.size=eo.size,io.reverse=function(){return eo},eo.flip&&(io.flip=function(){var so=flipFactory(eo);return so.reverse=function(){return eo.flip()},so}),io.get=function(so,ao){return eo.get(to?so:-1-so,ao)},io.has=function(so){return eo.has(to?so:-1-so)},io.includes=function(so){return eo.includes(so)},io.cacheResult=cacheResultThrough,io.__iterate=function(so,ao){var lo=this,uo=0;return ao&&ensureSize(eo),eo.__iterate(function(ho,go){return so(ho,to?go:ao?lo.size-++uo:uo++,lo)},!ao)},io.__iterator=function(so,ao){var lo=0;ao&&ensureSize(eo);var uo=eo.__iterator(ITERATE_ENTRIES,!ao);return new Iterator(function(){var ho=uo.next();if(ho.done)return ho;var go=ho.value;return iteratorValue(so,to?go[0]:ao?no.size-++lo:lo++,go[1],ho)})},io}function filterFactory(eo,to,no,io){var so=makeSequence(eo);return io&&(so.has=function(ao){var lo=eo.get(ao,NOT_SET);return lo!==NOT_SET&&!!to.call(no,lo,ao,eo)},so.get=function(ao,lo){var uo=eo.get(ao,NOT_SET);return uo!==NOT_SET&&to.call(no,uo,ao,eo)?uo:lo}),so.__iterateUncached=function(ao,lo){var uo=this,ho=0;return eo.__iterate(function(go,mo,yo){if(to.call(no,go,mo,yo))return ho++,ao(go,io?mo:ho-1,uo)},lo),ho},so.__iteratorUncached=function(ao,lo){var uo=eo.__iterator(ITERATE_ENTRIES,lo),ho=0;return new Iterator(function(){for(;;){var go=uo.next();if(go.done)return go;var mo=go.value,yo=mo[0],So=mo[1];if(to.call(no,So,yo,eo))return iteratorValue(ao,io?yo:ho++,So,go)}})},so}function countByFactory(eo,to,no){var io=Map$5().asMutable();return eo.__iterate(function(so,ao){io.update(to.call(no,so,ao,eo),0,function(lo){return lo+1})}),io.asImmutable()}function groupByFactory(eo,to,no){var io=isKeyed(eo),so=(isOrdered(eo)?OrderedMap():Map$5()).asMutable();eo.__iterate(function(lo,uo){so.update(to.call(no,lo,uo,eo),function(ho){return ho=ho||[],ho.push(io?[uo,lo]:lo),ho})});var ao=collectionClass(eo);return so.map(function(lo){return reify(eo,ao(lo))}).asImmutable()}function partitionFactory(eo,to,no){var io=isKeyed(eo),so=[[],[]];eo.__iterate(function(lo,uo){so[to.call(no,lo,uo,eo)?1:0].push(io?[uo,lo]:lo)});var ao=collectionClass(eo);return so.map(function(lo){return reify(eo,ao(lo))})}function sliceFactory(eo,to,no,io){var so=eo.size;if(wholeSlice(to,no,so))return eo;var ao=resolveBegin(to,so),lo=resolveEnd(no,so);if(ao!==ao||lo!==lo)return sliceFactory(eo.toSeq().cacheResult(),to,no,io);var uo=lo-ao,ho;uo===uo&&(ho=uo<0?0:uo);var go=makeSequence(eo);return go.size=ho===0?ho:eo.size&&ho||void 0,!io&&isSeq(eo)&&ho>=0&&(go.get=function(mo,yo){return mo=wrapIndex(this,mo),mo>=0&&moho)return iteratorDone();var Co=So.next();return io||mo===ITERATE_VALUES||Co.done?Co:mo===ITERATE_KEYS?iteratorValue(mo,ko-1,void 0,Co):iteratorValue(mo,ko-1,Co.value[1],Co)})},go}function takeWhileFactory(eo,to,no){var io=makeSequence(eo);return io.__iterateUncached=function(so,ao){var lo=this;if(ao)return this.cacheResult().__iterate(so,ao);var uo=0;return eo.__iterate(function(ho,go,mo){return to.call(no,ho,go,mo)&&++uo&&so(ho,go,lo)}),uo},io.__iteratorUncached=function(so,ao){var lo=this;if(ao)return this.cacheResult().__iterator(so,ao);var uo=eo.__iterator(ITERATE_ENTRIES,ao),ho=!0;return new Iterator(function(){if(!ho)return iteratorDone();var go=uo.next();if(go.done)return go;var mo=go.value,yo=mo[0],So=mo[1];return to.call(no,So,yo,lo)?so===ITERATE_ENTRIES?go:iteratorValue(so,yo,So,go):(ho=!1,iteratorDone())})},io}function skipWhileFactory(eo,to,no,io){var so=makeSequence(eo);return so.__iterateUncached=function(ao,lo){var uo=this;if(lo)return this.cacheResult().__iterate(ao,lo);var ho=!0,go=0;return eo.__iterate(function(mo,yo,So){if(!(ho&&(ho=to.call(no,mo,yo,So))))return go++,ao(mo,io?yo:go-1,uo)}),go},so.__iteratorUncached=function(ao,lo){var uo=this;if(lo)return this.cacheResult().__iterator(ao,lo);var ho=eo.__iterator(ITERATE_ENTRIES,lo),go=!0,mo=0;return new Iterator(function(){var yo,So,_o;do{if(yo=ho.next(),yo.done)return io||ao===ITERATE_VALUES?yo:ao===ITERATE_KEYS?iteratorValue(ao,mo++,void 0,yo):iteratorValue(ao,mo++,yo.value[1],yo);var ko=yo.value;So=ko[0],_o=ko[1],go&&(go=to.call(no,_o,So,uo))}while(go);return ao===ITERATE_ENTRIES?yo:iteratorValue(ao,So,_o,yo)})},so}function concatFactory(eo,to){var no=isKeyed(eo),io=[eo].concat(to).map(function(lo){return isCollection(lo)?no&&(lo=KeyedCollection(lo)):lo=no?keyedSeqFromValue(lo):indexedSeqFromValue(Array.isArray(lo)?lo:[lo]),lo}).filter(function(lo){return lo.size!==0});if(io.length===0)return eo;if(io.length===1){var so=io[0];if(so===eo||no&&isKeyed(so)||isIndexed(eo)&&isIndexed(so))return so}var ao=new ArraySeq(io);return no?ao=ao.toKeyedSeq():isIndexed(eo)||(ao=ao.toSetSeq()),ao=ao.flatten(!0),ao.size=io.reduce(function(lo,uo){if(lo!==void 0){var ho=uo.size;if(ho!==void 0)return lo+ho}},0),ao}function flattenFactory(eo,to,no){var io=makeSequence(eo);return io.__iterateUncached=function(so,ao){if(ao)return this.cacheResult().__iterate(so,ao);var lo=0,uo=!1;function ho(go,mo){go.__iterate(function(yo,So){return(!to||mo0}function zipWithFactory(eo,to,no,io){var so=makeSequence(eo),ao=new ArraySeq(no).map(function(lo){return lo.size});return so.size=io?ao.max():ao.min(),so.__iterate=function(lo,uo){for(var ho=this.__iterator(ITERATE_VALUES,uo),go,mo=0;!(go=ho.next()).done&&lo(go.value,mo++,this)!==!1;);return mo},so.__iteratorUncached=function(lo,uo){var ho=no.map(function(yo){return yo=Collection$2(yo),getIterator(uo?yo.reverse():yo)}),go=0,mo=!1;return new Iterator(function(){var yo;return mo||(yo=ho.map(function(So){return So.next()}),mo=io?yo.every(function(So){return So.done}):yo.some(function(So){return So.done})),mo?iteratorDone():iteratorValue(lo,go++,to.apply(null,yo.map(function(So){return So.value})))})},so}function reify(eo,to){return eo===to?eo:isSeq(eo)?to:eo.constructor(to)}function validateEntry(eo){if(eo!==Object(eo))throw new TypeError("Expected [K, V] tuple: "+eo)}function collectionClass(eo){return isKeyed(eo)?KeyedCollection:isIndexed(eo)?IndexedCollection:SetCollection}function makeSequence(eo){return Object.create((isKeyed(eo)?KeyedSeq:isIndexed(eo)?IndexedSeq:SetSeq).prototype)}function cacheResultThrough(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Seq.prototype.cacheResult.call(this)}function defaultComparator(eo,to){return eo===void 0&&to===void 0?0:eo===void 0?1:to===void 0?-1:eo>to?1:eo0;)to[no]=arguments[no+1];if(typeof eo!="function")throw new TypeError("Invalid merger function: "+eo);return mergeIntoKeyedWith(this,to,eo)}function mergeIntoKeyedWith(eo,to,no){for(var io=[],so=0;so0;)to[no]=arguments[no+1];return mergeDeepWithSources(this,to,eo)}function mergeIn(eo){for(var to=[],no=arguments.length-1;no-- >0;)to[no]=arguments[no+1];return updateIn$1(this,eo,emptyMap(),function(io){return mergeWithSources(io,to)})}function mergeDeepIn(eo){for(var to=[],no=arguments.length-1;no-- >0;)to[no]=arguments[no+1];return updateIn$1(this,eo,emptyMap(),function(io){return mergeDeepWithSources(io,to)})}function withMutations(eo){var to=this.asMutable();return eo(to),to.wasAltered()?to.__ensureOwner(this.__ownerID):this}function asMutable(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)}function asImmutable(){return this.__ensureOwner()}function wasAltered(){return this.__altered}var Map$5=function(eo){function to(no){return no==null?emptyMap():isMap$2(no)&&!isOrdered(no)?no:emptyMap().withMutations(function(io){var so=eo(no);assertNotInfinite(so.size),so.forEach(function(ao,lo){return io.set(lo,ao)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){for(var io=[],so=arguments.length;so--;)io[so]=arguments[so];return emptyMap().withMutations(function(ao){for(var lo=0;lo=io.length)throw new Error("Missing value for key: "+io[lo]);ao.set(io[lo],io[lo+1])}})},to.prototype.toString=function(){return this.__toString("Map {","}")},to.prototype.get=function(io,so){return this._root?this._root.get(0,void 0,io,so):so},to.prototype.set=function(io,so){return updateMap(this,io,so)},to.prototype.remove=function(io){return updateMap(this,io,NOT_SET)},to.prototype.deleteAll=function(io){var so=Collection$2(io);return so.size===0?this:this.withMutations(function(ao){so.forEach(function(lo){return ao.remove(lo)})})},to.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):emptyMap()},to.prototype.sort=function(io){return OrderedMap(sortFactory(this,io))},to.prototype.sortBy=function(io,so){return OrderedMap(sortFactory(this,so,io))},to.prototype.map=function(io,so){var ao=this;return this.withMutations(function(lo){lo.forEach(function(uo,ho){lo.set(ho,io.call(so,uo,ho,ao))})})},to.prototype.__iterator=function(io,so){return new MapIterator(this,io,so)},to.prototype.__iterate=function(io,so){var ao=this,lo=0;return this._root&&this._root.iterate(function(uo){return lo++,io(uo[1],uo[0],ao)},so),lo},to.prototype.__ensureOwner=function(io){return io===this.__ownerID?this:io?makeMap(this.size,this._root,io,this.__hash):this.size===0?emptyMap():(this.__ownerID=io,this.__altered=!1,this)},to}(KeyedCollection);Map$5.isMap=isMap$2;var MapPrototype=Map$5.prototype;MapPrototype[IS_MAP_SYMBOL]=!0;MapPrototype[DELETE]=MapPrototype.remove;MapPrototype.removeAll=MapPrototype.deleteAll;MapPrototype.setIn=setIn;MapPrototype.removeIn=MapPrototype.deleteIn=deleteIn;MapPrototype.update=update$2;MapPrototype.updateIn=updateIn;MapPrototype.merge=MapPrototype.concat=merge$1$1;MapPrototype.mergeWith=mergeWith$1;MapPrototype.mergeDeep=mergeDeep;MapPrototype.mergeDeepWith=mergeDeepWith;MapPrototype.mergeIn=mergeIn;MapPrototype.mergeDeepIn=mergeDeepIn;MapPrototype.withMutations=withMutations;MapPrototype.wasAltered=wasAltered;MapPrototype.asImmutable=asImmutable;MapPrototype["@@transducer/init"]=MapPrototype.asMutable=asMutable;MapPrototype["@@transducer/step"]=function(eo,to){return eo.set(to[0],to[1])};MapPrototype["@@transducer/result"]=function(eo){return eo.asImmutable()};var ArrayMapNode=function(to,no){this.ownerID=to,this.entries=no};ArrayMapNode.prototype.get=function(to,no,io,so){for(var ao=this.entries,lo=0,uo=ao.length;lo=MAX_ARRAY_MAP_SIZE)return createNodes$1(to,go,so,ao);var _o=to&&to===this.ownerID,ko=_o?go:arrCopy(go);return So?ho?mo===yo-1?ko.pop():ko[mo]=ko.pop():ko[mo]=[so,ao]:ko.push([so,ao]),_o?(this.entries=ko,this):new ArrayMapNode(to,ko)}};var BitmapIndexedNode=function(to,no,io){this.ownerID=to,this.bitmap=no,this.nodes=io};BitmapIndexedNode.prototype.get=function(to,no,io,so){no===void 0&&(no=hash$2(io));var ao=1<<((to===0?no:no>>>to)&MASK),lo=this.bitmap;return lo&ao?this.nodes[popCount(lo&ao-1)].get(to+SHIFT,no,io,so):so};BitmapIndexedNode.prototype.update=function(to,no,io,so,ao,lo,uo){io===void 0&&(io=hash$2(so));var ho=(no===0?io:io>>>no)&MASK,go=1<=MAX_BITMAP_INDEXED_SIZE)return expandNodes(to,_o,mo,ho,Co);if(yo&&!Co&&_o.length===2&&isLeafNode(_o[So^1]))return _o[So^1];if(yo&&Co&&_o.length===1&&isLeafNode(Co))return Co;var $o=to&&to===this.ownerID,Ro=yo?Co?mo:mo^go:mo|go,Oo=yo?Co?setAt(_o,So,Co,$o):spliceOut(_o,So,$o):spliceIn(_o,So,Co,$o);return $o?(this.bitmap=Ro,this.nodes=Oo,this):new BitmapIndexedNode(to,Ro,Oo)};var HashArrayMapNode=function(to,no,io){this.ownerID=to,this.count=no,this.nodes=io};HashArrayMapNode.prototype.get=function(to,no,io,so){no===void 0&&(no=hash$2(io));var ao=(to===0?no:no>>>to)&MASK,lo=this.nodes[ao];return lo?lo.get(to+SHIFT,no,io,so):so};HashArrayMapNode.prototype.update=function(to,no,io,so,ao,lo,uo){io===void 0&&(io=hash$2(so));var ho=(no===0?io:io>>>no)&MASK,go=ao===NOT_SET,mo=this.nodes,yo=mo[ho];if(go&&!yo)return this;var So=updateNode(yo,to,no+SHIFT,io,so,ao,lo,uo);if(So===yo)return this;var _o=this.count;if(!yo)_o++;else if(!So&&(_o--,_o>>no)&MASK,lo=(no===0?io:io>>>no)&MASK,uo,ho=ao===lo?[mergeIntoNode(eo,to,no+SHIFT,io,so)]:(uo=new ValueNode(to,io,so),ao>>=1)lo[uo]=no&1?to[ao++]:void 0;return lo[io]=so,new HashArrayMapNode(eo,ao+1,lo)}function popCount(eo){return eo-=eo>>1&1431655765,eo=(eo&858993459)+(eo>>2&858993459),eo=eo+(eo>>4)&252645135,eo+=eo>>8,eo+=eo>>16,eo&127}function setAt(eo,to,no,io){var so=io?eo:arrCopy(eo);return so[to]=no,so}function spliceIn(eo,to,no,io){var so=eo.length+1;if(io&&to+1===so)return eo[to]=no,eo;for(var ao=new Array(so),lo=0,uo=0;uo0&&ao=0&&io>>no&MASK;if(so>=this.array.length)return new VNode([],to);var ao=so===0,lo;if(no>0){var uo=this.array[so];if(lo=uo&&uo.removeBefore(to,no-SHIFT,io),lo===uo&&ao)return this}if(ao&&!lo)return this;var ho=editableVNode(this,to);if(!ao)for(var go=0;go>>no&MASK;if(so>=this.array.length)return this;var ao;if(no>0){var lo=this.array[so];if(ao=lo&&lo.removeAfter(to,no-SHIFT,io),ao===lo&&so===this.array.length-1)return this}var uo=editableVNode(this,to);return uo.array.splice(so+1),ao&&(uo.array[so]=ao),uo};var DONE={};function iterateList(eo,to){var no=eo._origin,io=eo._capacity,so=getTailOffset(io),ao=eo._tail;return lo(eo._root,eo._level,0);function lo(go,mo,yo){return mo===0?uo(go,yo):ho(go,mo,yo)}function uo(go,mo){var yo=mo===so?ao&&ao.array:go&&go.array,So=mo>no?0:no-mo,_o=io-mo;return _o>SIZE&&(_o=SIZE),function(){if(So===_o)return DONE;var ko=to?--_o:So++;return yo&&yo[ko]}}function ho(go,mo,yo){var So,_o=go&&go.array,ko=yo>no?0:no-yo>>mo,Co=(io-yo>>mo)+1;return Co>SIZE&&(Co=SIZE),function(){for(;;){if(So){var $o=So();if($o!==DONE)return $o;So=null}if(ko===Co)return DONE;var Ro=to?--Co:ko++;So=lo(_o&&_o[Ro],mo-SHIFT,yo+(Ro<=eo.size||to<0)return eo.withMutations(function(lo){to<0?setListBounds(lo,to).set(0,no):setListBounds(lo,0,to+1).set(to,no)});to+=eo._origin;var io=eo._tail,so=eo._root,ao=MakeRef();return to>=getTailOffset(eo._capacity)?io=updateVNode(io,eo.__ownerID,0,to,no,ao):so=updateVNode(so,eo.__ownerID,eo._level,to,no,ao),ao.value?eo.__ownerID?(eo._root=so,eo._tail=io,eo.__hash=void 0,eo.__altered=!0,eo):makeList(eo._origin,eo._capacity,eo._level,so,io):eo}function updateVNode(eo,to,no,io,so,ao){var lo=io>>>no&MASK,uo=eo&&lo0){var go=eo&&eo.array[lo],mo=updateVNode(go,to,no-SHIFT,io,so,ao);return mo===go?eo:(ho=editableVNode(eo,to),ho.array[lo]=mo,ho)}return uo&&eo.array[lo]===so?eo:(ao&&SetRef(ao),ho=editableVNode(eo,to),so===void 0&&lo===ho.array.length-1?ho.array.pop():ho.array[lo]=so,ho)}function editableVNode(eo,to){return to&&eo&&to===eo.ownerID?eo:new VNode(eo?eo.array.slice():[],to)}function listNodeFor(eo,to){if(to>=getTailOffset(eo._capacity))return eo._tail;if(to<1<0;)no=no.array[to>>>io&MASK],io-=SHIFT;return no}}function setListBounds(eo,to,no){to!==void 0&&(to|=0),no!==void 0&&(no|=0);var io=eo.__ownerID||new OwnerID,so=eo._origin,ao=eo._capacity,lo=so+to,uo=no===void 0?ao:no<0?ao+no:so+no;if(lo===so&&uo===ao)return eo;if(lo>=uo)return eo.clear();for(var ho=eo._level,go=eo._root,mo=0;lo+mo<0;)go=new VNode(go&&go.array.length?[void 0,go]:[],io),ho+=SHIFT,mo+=1<=1<yo?new VNode([],io):_o;if(_o&&So>yo&&loSHIFT;$o-=SHIFT){var Ro=yo>>>$o&MASK;Co=Co.array[Ro]=editableVNode(Co.array[Ro],io)}Co.array[yo>>>SHIFT&MASK]=_o}if(uo=So)lo-=So,uo-=So,ho=SHIFT,go=null,ko=ko&&ko.removeBefore(io,0,lo);else if(lo>so||So>>ho&MASK;if(Oo!==So>>>ho&MASK)break;Oo&&(mo+=(1<so&&(go=go.removeBefore(io,ho,lo-mo)),go&&So>>SHIFT<=SIZE&&so.size>=io.size*2?(ho=so.filter(function(go,mo){return go!==void 0&&ao!==mo}),uo=ho.toKeyedSeq().map(function(go){return go[0]}).flip().toMap(),eo.__ownerID&&(uo.__ownerID=ho.__ownerID=eo.__ownerID)):(uo=io.remove(to),ho=ao===so.size-1?so.pop():so.set(ao,void 0))}else if(lo){if(no===so.get(ao)[1])return eo;uo=io,ho=so.set(ao,[to,no])}else uo=io.set(to,so.size),ho=so.set(so.size,[to,no]);return eo.__ownerID?(eo.size=uo.size,eo._map=uo,eo._list=ho,eo.__hash=void 0,eo.__altered=!0,eo):makeOrderedMap(uo,ho)}var IS_STACK_SYMBOL="@@__IMMUTABLE_STACK__@@";function isStack(eo){return!!(eo&&eo[IS_STACK_SYMBOL])}var Stack$2=function(eo){function to(no){return no==null?emptyStack():isStack(no)?no:emptyStack().pushAll(no)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.prototype.toString=function(){return this.__toString("Stack [","]")},to.prototype.get=function(io,so){var ao=this._head;for(io=wrapIndex(this,io);ao&&io--;)ao=ao.next;return ao?ao.value:so},to.prototype.peek=function(){return this._head&&this._head.value},to.prototype.push=function(){var io=arguments;if(arguments.length===0)return this;for(var so=this.size+arguments.length,ao=this._head,lo=arguments.length-1;lo>=0;lo--)ao={value:io[lo],next:ao};return this.__ownerID?(this.size=so,this._head=ao,this.__hash=void 0,this.__altered=!0,this):makeStack(so,ao)},to.prototype.pushAll=function(io){if(io=eo(io),io.size===0)return this;if(this.size===0&&isStack(io))return io;assertNotInfinite(io.size);var so=this.size,ao=this._head;return io.__iterate(function(lo){so++,ao={value:lo,next:ao}},!0),this.__ownerID?(this.size=so,this._head=ao,this.__hash=void 0,this.__altered=!0,this):makeStack(so,ao)},to.prototype.pop=function(){return this.slice(1)},to.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):emptyStack()},to.prototype.slice=function(io,so){if(wholeSlice(io,so,this.size))return this;var ao=resolveBegin(io,this.size),lo=resolveEnd(so,this.size);if(lo!==this.size)return eo.prototype.slice.call(this,io,so);for(var uo=this.size-ao,ho=this._head;ao--;)ho=ho.next;return this.__ownerID?(this.size=uo,this._head=ho,this.__hash=void 0,this.__altered=!0,this):makeStack(uo,ho)},to.prototype.__ensureOwner=function(io){return io===this.__ownerID?this:io?makeStack(this.size,this._head,io,this.__hash):this.size===0?emptyStack():(this.__ownerID=io,this.__altered=!1,this)},to.prototype.__iterate=function(io,so){var ao=this;if(so)return new ArraySeq(this.toArray()).__iterate(function(ho,go){return io(ho,go,ao)},so);for(var lo=0,uo=this._head;uo&&io(uo.value,lo++,this)!==!1;)uo=uo.next;return lo},to.prototype.__iterator=function(io,so){if(so)return new ArraySeq(this.toArray()).__iterator(io,so);var ao=0,lo=this._head;return new Iterator(function(){if(lo){var uo=lo.value;return lo=lo.next,iteratorValue(io,ao++,uo)}return iteratorDone()})},to}(IndexedCollection);Stack$2.isStack=isStack;var StackPrototype=Stack$2.prototype;StackPrototype[IS_STACK_SYMBOL]=!0;StackPrototype.shift=StackPrototype.pop;StackPrototype.unshift=StackPrototype.push;StackPrototype.unshiftAll=StackPrototype.pushAll;StackPrototype.withMutations=withMutations;StackPrototype.wasAltered=wasAltered;StackPrototype.asImmutable=asImmutable;StackPrototype["@@transducer/init"]=StackPrototype.asMutable=asMutable;StackPrototype["@@transducer/step"]=function(eo,to){return eo.unshift(to)};StackPrototype["@@transducer/result"]=function(eo){return eo.asImmutable()};function makeStack(eo,to,no,io){var so=Object.create(StackPrototype);return so.size=eo,so._head=to,so.__ownerID=no,so.__hash=io,so.__altered=!1,so}var EMPTY_STACK;function emptyStack(){return EMPTY_STACK||(EMPTY_STACK=makeStack(0))}var IS_SET_SYMBOL="@@__IMMUTABLE_SET__@@";function isSet$2(eo){return!!(eo&&eo[IS_SET_SYMBOL])}function isOrderedSet(eo){return isSet$2(eo)&&isOrdered(eo)}function deepEqual(eo,to){if(eo===to)return!0;if(!isCollection(to)||eo.size!==void 0&&to.size!==void 0&&eo.size!==to.size||eo.__hash!==void 0&&to.__hash!==void 0&&eo.__hash!==to.__hash||isKeyed(eo)!==isKeyed(to)||isIndexed(eo)!==isIndexed(to)||isOrdered(eo)!==isOrdered(to))return!1;if(eo.size===0&&to.size===0)return!0;var no=!isAssociative(eo);if(isOrdered(eo)){var io=eo.entries();return to.every(function(ho,go){var mo=io.next().value;return mo&&is$1(mo[1],ho)&&(no||is$1(mo[0],go))})&&io.next().done}var so=!1;if(eo.size===void 0)if(to.size===void 0)typeof eo.cacheResult=="function"&&eo.cacheResult();else{so=!0;var ao=eo;eo=to,to=ao}var lo=!0,uo=to.__iterate(function(ho,go){if(no?!eo.has(ho):so?!is$1(ho,eo.get(go,NOT_SET)):!is$1(eo.get(go,NOT_SET),ho))return lo=!1,!1});return lo&&eo.size===uo}function mixin(eo,to){var no=function(io){eo.prototype[io]=to[io]};return Object.keys(to).forEach(no),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(to).forEach(no),eo}function toJS(eo){if(!eo||typeof eo!="object")return eo;if(!isCollection(eo)){if(!isDataStructure(eo))return eo;eo=Seq(eo)}if(isKeyed(eo)){var to={};return eo.__iterate(function(io,so){to[so]=toJS(io)}),to}var no=[];return eo.__iterate(function(io){no.push(toJS(io))}),no}var Set$4=function(eo){function to(no){return no==null?emptySet():isSet$2(no)&&!isOrdered(no)?no:emptySet().withMutations(function(io){var so=eo(no);assertNotInfinite(so.size),so.forEach(function(ao){return io.add(ao)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.fromKeys=function(io){return this(KeyedCollection(io).keySeq())},to.intersect=function(io){return io=Collection$2(io).toArray(),io.length?SetPrototype.intersect.apply(to(io.pop()),io):emptySet()},to.union=function(io){return io=Collection$2(io).toArray(),io.length?SetPrototype.union.apply(to(io.pop()),io):emptySet()},to.prototype.toString=function(){return this.__toString("Set {","}")},to.prototype.has=function(io){return this._map.has(io)},to.prototype.add=function(io){return updateSet(this,this._map.set(io,io))},to.prototype.remove=function(io){return updateSet(this,this._map.remove(io))},to.prototype.clear=function(){return updateSet(this,this._map.clear())},to.prototype.map=function(io,so){var ao=this,lo=!1,uo=updateSet(this,this._map.mapEntries(function(ho){var go=ho[1],mo=io.call(so,go,go,ao);return mo!==go&&(lo=!0),[mo,mo]},so));return lo?uo:this},to.prototype.union=function(){for(var io=[],so=arguments.length;so--;)io[so]=arguments[so];return io=io.filter(function(ao){return ao.size!==0}),io.length===0?this:this.size===0&&!this.__ownerID&&io.length===1?this.constructor(io[0]):this.withMutations(function(ao){for(var lo=0;lo=0&&so=0&&aothis.size?no:this.find(function(io,so){return so===to},void 0,no)},has:function(to){return to=wrapIndex(this,to),to>=0&&(this.size!==void 0?this.size===1/0||toto?-1:0}function hashCollection(eo){if(eo.size===1/0)return 0;var to=isOrdered(eo),no=isKeyed(eo),io=to?1:0,so=eo.__iterate(no?to?function(ao,lo){io=31*io+hashMerge(hash$2(ao),hash$2(lo))|0}:function(ao,lo){io=io+hashMerge(hash$2(ao),hash$2(lo))|0}:to?function(ao){io=31*io+hash$2(ao)|0}:function(ao){io=io+hash$2(ao)|0});return murmurHashOfSize(so,io)}function murmurHashOfSize(eo,to){return to=imul(to,3432918353),to=imul(to<<15|to>>>-15,461845907),to=imul(to<<13|to>>>-13,5),to=(to+3864292196|0)^eo,to=imul(to^to>>>16,2246822507),to=imul(to^to>>>13,3266489909),to=smi(to^to>>>16),to}function hashMerge(eo,to){return eo^to+2654435769+(eo<<6)+(eo>>2)|0}var OrderedSet=function(eo){function to(no){return no==null?emptyOrderedSet():isOrderedSet(no)?no:emptyOrderedSet().withMutations(function(io){var so=SetCollection(no);assertNotInfinite(so.size),so.forEach(function(ao){return io.add(ao)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.fromKeys=function(io){return this(KeyedCollection(io).keySeq())},to.prototype.toString=function(){return this.__toString("OrderedSet {","}")},to}(Set$4);OrderedSet.isOrderedSet=isOrderedSet;var OrderedSetPrototype=OrderedSet.prototype;OrderedSetPrototype[IS_ORDERED_SYMBOL]=!0;OrderedSetPrototype.zip=IndexedCollectionPrototype.zip;OrderedSetPrototype.zipWith=IndexedCollectionPrototype.zipWith;OrderedSetPrototype.zipAll=IndexedCollectionPrototype.zipAll;OrderedSetPrototype.__empty=emptyOrderedSet;OrderedSetPrototype.__make=makeOrderedSet;function makeOrderedSet(eo,to){var no=Object.create(OrderedSetPrototype);return no.size=eo?eo.size:0,no._map=eo,no.__ownerID=to,no}var EMPTY_ORDERED_SET;function emptyOrderedSet(){return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()))}function throwOnInvalidDefaultValues(eo){if(isRecord(eo))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(isImmutable(eo))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(eo===null||typeof eo!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Record=function(to,no){var io;throwOnInvalidDefaultValues(to);var so=function(uo){var ho=this;if(uo instanceof so)return uo;if(!(this instanceof so))return new so(uo);if(!io){io=!0;var go=Object.keys(to),mo=ao._indices={};ao._name=no,ao._keys=go,ao._defaultValues=to;for(var yo=0;yo0?this._next(no.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},to}(SimpleOuterSubscriber);function mergeAll(eo){return eo===void 0&&(eo=Number.POSITIVE_INFINITY),mergeMap(identity$7,eo)}function merge$6(){for(var eo=[],to=0;to1&&typeof eo[eo.length-1]=="number"&&(no=eo.pop())):typeof so=="number"&&(no=eo.pop()),io===null&&eo.length===1&&eo[0]instanceof Observable$2?eo[0]:mergeAll(no)(fromArray(eo,io))}function filter$3(eo,to){return function(io){return io.lift(new FilterOperator(eo,to))}}var FilterOperator=function(){function eo(to,no){this.predicate=to,this.thisArg=no}return eo.prototype.call=function(to,no){return no.subscribe(new FilterSubscriber(to,this.predicate,this.thisArg))},eo}(),FilterSubscriber=function(eo){__extends$2(to,eo);function to(no,io,so){var ao=eo.call(this,no)||this;return ao.predicate=io,ao.thisArg=so,ao.count=0,ao}return to.prototype._next=function(no){var io;try{io=this.predicate.call(this.thisArg,no,this.count++)}catch(so){this.destination.error(so);return}io&&this.destination.next(no)},to}(Subscriber$1);function debounceTime(eo,to){return to===void 0&&(to=async),function(no){return no.lift(new DebounceTimeOperator(eo,to))}}var DebounceTimeOperator=function(){function eo(to,no){this.dueTime=to,this.scheduler=no}return eo.prototype.call=function(to,no){return no.subscribe(new DebounceTimeSubscriber(to,this.dueTime,this.scheduler))},eo}(),DebounceTimeSubscriber=function(eo){__extends$2(to,eo);function to(no,io,so){var ao=eo.call(this,no)||this;return ao.dueTime=io,ao.scheduler=so,ao.debouncedSubscription=null,ao.lastValue=null,ao.hasValue=!1,ao}return to.prototype._next=function(no){this.clearDebounce(),this.lastValue=no,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(dispatchNext,this.dueTime,this))},to.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},to.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var no=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(no)}},to.prototype.clearDebounce=function(){var no=this.debouncedSubscription;no!==null&&(this.remove(no),no.unsubscribe(),this.debouncedSubscription=null)},to}(Subscriber$1);function dispatchNext(eo){eo.debouncedNext()}function e$4(){return e$4=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{const uo=io.singletonCache.get(lo)||io.requestCache.get(lo)||io.transientCache.get(lo);uo&&(ao.proxyTarget.current=uo)}),io.postConstruct.forEach(ao=>{ao.postConstruct()}),this.currentCtx=null,so}child(){const to=new this.constructor;return to.parent=this,to}getParent(){return this.parent}getInjectable(to){var no;const io=this.pool.get(to);if(io)return{value:io,fromParent:!1};const so=(no=this.parent)==null?void 0:no.getInjectable(to);return so?{value:so.value,fromParent:!0}:void 0}_resolve(to,no,io){const so=this.getInjectable(to);if((no==null?void 0:no.optional)===!0&&!so)return;if(!so)throw new Error(`Key: ${a$5(to)} not found`);const{value:{value:ao,scope:lo,type:uo},fromParent:ho}=so;let go,mo=!1;if(uo===h$7.VALUE)return ao;{const yo=io.requestedKeys.get(to);if(yo){if(!yo.constructed){if(!no.lazy&&!ho){const So=Array.from(io.requestedKeys.entries()).pop(),_o=So?`[ ${String(So[0])}: ${So[1].value.name} ]`:"";throw new Error(`Circular reference detected: ${_o} -> [ ${a$5(to)}: ${ao.name} ]`)}mo=!0}}else io.requestedKeys.set(to,{constructed:!1,value:ao})}return go=mo?()=>this.createLazy(to,uo,io):()=>this.create(to,so.value,io),this.run(lo,to,go,io)}resolveDeps(to,no){const io=[];for(const so of to){const{key:ao,options:lo}=c$8(so);if(Array.isArray(ao)){const uo=[];for(const ho of ao){let go=no.singletonCache.get(ho.key);go===void 0&&(go=this._resolve(ho.key,e$4({},ho.options),no)),go===void 0&&lo.removeUndefined||uo.push(go)}io.push(uo.length?uo:lo.setToUndefinedIfEmpty?void 0:uo)}else{let uo=no.singletonCache.get(ao);uo===void 0&&(uo=this._resolve(ao,e$4({},lo),no)),io.push(uo)}}return io}createLazy(to,no,io){const so=io.delayed.get(to);if(so)return so.proxy;const ao=no===h$7.CLASS?{}:function(){},lo=function(uo,ho,go){function mo(){if(!uo.current)throw new Error(`Lazy target for key:${String(go)} not yet set`);return uo.current}return new Proxy(uo,{apply:function(yo,So){const _o=mo();return Reflect.apply(_o,ho?_o:void 0,So)},construct:function(yo,So){return Reflect.construct(mo(),So)},get:function(yo,So,_o){return So===t$7?yo.current:So===n$5||Reflect.get(mo(),So,_o)},set:function(yo,So,_o){return Reflect.set(So==="current"?yo:mo(),So,_o)},defineProperty:function(yo,So,_o){return Reflect.defineProperty(mo(),So,_o)},deleteProperty:function(yo,So){return Reflect.deleteProperty(mo(),So)},getPrototypeOf:function(yo){return Reflect.getPrototypeOf(mo())},setPrototypeOf:function(yo,So){return Reflect.setPrototypeOf(mo(),So)},getOwnPropertyDescriptor:function(yo,So){return Reflect.getOwnPropertyDescriptor(mo(),So)},has:function(yo,So){return Reflect.has(mo(),So)},isExtensible:function(yo){return Reflect.isExtensible(mo())},ownKeys:function(yo){return Reflect.ownKeys(mo())},preventExtensions:function(yo){return Reflect.preventExtensions(mo())}})}(ao,no===h$7.CLASS,to);return io.delayed.set(to,{proxy:lo,proxyTarget:ao}),lo}create(to,no,io){const{beforeResolve:so,afterResolve:ao,value:lo,type:uo}=no,ho=lo.inject;let go=[];ho&&(go=Array.isArray(ho)?this.resolveDeps(ho,io):ho.fn({container:this,ctx:io.ctx},...this.resolveDeps(ho.deps,io)));const mo=so?so({container:this,value:lo.original,ctx:io.ctx},...go):lo(...go);return ao&&ao({container:this,value:mo,ctx:io.ctx}),io.requestedKeys.get(to).constructed=!0,uo==="CLASS"&&"postConstruct"in mo&&io.postConstruct.push(mo),mo}run(to,no,io,so){if(to===f$7.SINGLETON||to===f$7.CONTAINER_SINGLETON){var ao;if(!this.pool.has(no)&&to===f$7.SINGLETON)return(ao=this.parent)==null?void 0:ao.resolve(no);const uo=so.singletonCache.get(no);if(uo!==void 0)return uo===p$8?void 0:uo;{let ho=io();return ho===void 0&&(ho=p$8),this.singletonCache.set(no,ho),ho}}if(f$7.REQUEST===to){const uo=so.requestCache.get(no);if(uo!==void 0)return uo===p$8?void 0:uo;{let ho=io();return ho===void 0&&(ho=p$8),so.requestCache.set(no,ho),ho}}const lo=io();return so.transientCache.set(no,lo),lo}};function isClassProvider(eo){return hasOwn(eo,"useClass")}function isFactoryProvider(eo){return hasOwn(eo,"useFactory")}function isValueProvider(eo){return hasOwn(eo,"useValue")}function isTokenProvider(eo){return hasOwn(eo,"useToken")}const SINGLETON=Symbol("singleton");function isConstructor(eo){return typeof eo=="function"&&!!eo.inject}function getClassScope(eo){return eo[SINGLETON]?"SINGLETON":eo.scope?eo.scope:"TRANSIENT"}class DependencyContainer extends d$6{constructor(){super(...arguments),this.name="DependencyContainer"}bindValue(to,no){return this.has(to,!1)&&this.unbind(to),super.bindValue(to,no)}bindClass(to,no,io){const so=(io==null?void 0:io.scope)??getClassScope(to);return super.bindClass(to,no,{...io,scope:so})}register(to,no){if(isValueProvider(no))this.bindValue(to,no.useValue);else if(isFactoryProvider(no)){const{useFactory:io}=no;this.bindFactory(to,{value:io,inject:[ContainerToken]},{scope:no.scope})}else if(isTokenProvider(no))this.bindFactory(to,{value:io=>io,inject:[no.useToken]});else if(isClassProvider(no)){const io=no.scope??getClassScope(no.useClass);this.bindClass(to,no.useClass,{scope:io})}}_resolve(to,no,io){if(!this.getInjectable(to)&&isConstructor(to)){const so=getClassScope(to);this.bindClass(to,to,{scope:so})}return super._resolve(to,no,io)}}const getGlobalContainer=()=>{const eo=new DependencyContainer;return eo.name="global",eo},container=getGlobalContainer();function createInjectionToken(eo,to){return container.bindValue(eo,to),eo}const ContainerToken=createInjectionToken("DependencyContainer",container),ServicesContext=reactExports.createContext(container),createRegistry=({provide:eo,name:to})=>({containerRef:io,onInitialize:so,onDispose:ao,children:lo})=>{const uo=reactExports.useContext(ServicesContext),ho=reactExports.useMemo(()=>{const go=uo.child();return to&&(go.name=to),eo==null||eo.forEach(mo=>{go.register(mo.token,mo)}),go.bindValue(ContainerToken,go),so==null||so(go),go},[so,uo]);return reactExports.useImperativeHandle(io,()=>ho,[ho]),reactExports.useEffect(()=>()=>{ao==null||ao(ho),ho.unbindAll(!0)},[ho]),jsxRuntimeExports.jsx(ServicesContext.Provider,{value:ho,children:lo})};createInjectionToken("isControlFlowEnabledToken",!1);createInjectionToken("isDoWhileLoopEnabledToken",!1);createInjectionToken("isAnnotationEnabledToken",!1);createInjectionToken("isDesignerUnifiedSubmissionFlowEnabledToken",!1);createInjectionToken("isPipelineComputeDatastoreEnabledToken",!1);createInjectionToken("TransactionalAuthoringEnabled",!1);createInjectionToken("ComponentSettingsEnabled",!1);createInjectionToken("isPipelineOwnerToken",!1);createInjectionToken("isExecutionPhaseEnabledToken",!1);createInjectionToken("isPipelineStreamingEnabledToken",!1);createInjectionToken("useFocusedNodeId",()=>{});createInjectionToken("useIsInSearchResult",()=>!1);createInjectionToken("dismissCompareCheckListPanel",()=>null);const promptFlowGraphReducer=eo=>(to,no)=>eo(to,no),graphReducer=()=>getGraphReducer(promptFlowGraphReducer);let Computed$1=class DSt extends Observable$2{constructor(to,no){super(io=>this.state$.subscribe(io)),this.getSnapshot=()=>this.state$.getValue(),this.state$=new BehaviorSubject(to),this.subscription=no.subscribe(this.state$)}static fromStates(to,no){const io=no(to.map(ao=>ao.getSnapshot())),so=combineLatest(to).pipe(map$3(no));return new DSt(io,so)}destroy(){this.subscription.unsubscribe()}},State$2=class extends BehaviorSubject{constructor(){super(...arguments),this.getState=()=>this.getValue(),this.setState=to=>{this.next(to)},this.updateState=to=>{this.next(to(this.getValue()))},this.getSnapshot=()=>this.getValue()}next(to,no){!no&&this.value===to||super.next(to)}copyFrom(to){this.next(to.getSnapshot())}};const YMe=class YMe{constructor(){this.nodesIndex$=new State$2(List$2()),this.allNodeNames$=Computed$1.fromStates([],()=>List$2()),this.orientation$=new State$2(Orientation$1.Vertical),this.language$=new State$2(void 0)}tweakFlattenNodeOrder(to,no){const io=this.nodesIndex$.getSnapshot(),so=io.findIndex(lo=>lo===to),ao=so+no;if(so>=0&&ao>=0&&ao(this.addListener(to,no),no.next(this.get(to)),()=>{this.removeListener(to,no)}))}notify(to){var no;(no=this.listeners.get(to))==null||no.forEach(io=>{io.next(this.get(to))})}next(to){const no=this.getSnapshot();super.next(to);const io=new Set;no.forEach((so,ao)=>{to.has(ao)||io.add(ao)}),to.forEach((so,ao)=>{no.has(ao)&&Object.is(no.get(ao),so)||io.add(ao)}),io.forEach(so=>{this.notify(so)})}addListener(to,no){let io=this.listeners.get(to);io||(io=new Set,this.listeners.set(to,io)),io.add(no)}removeListener(to,no){const io=this.listeners.get(to);io&&(io.delete(no),io.size===0&&this.listeners.delete(to))}}class ObservableMap extends ObservableCollection{constructor(){super(Map$5())}set(to,no){return this.updateState(io=>io.set(to,no)),this}update(to,no){return this.updateState(io=>io.update(to,no)),this}delete(to){return this.updateState(no=>no.delete(to)),this}deleteAll(to){return this.updateState(no=>no.deleteAll(to)),this}clear(){return this.next(Map$5()),this}merge(to){return this.updateState(no=>no.merge(to)),this}}class ObservableOrderedMap extends ObservableCollection{constructor(){super(OrderedMap())}set(to,no){return this.updateState(io=>io.set(to,no)),this}update(to,no){return this.updateState(io=>io.update(to,no)),this}delete(to){return this.updateState(no=>no.delete(to)),this}deleteAll(to){return this.updateState(no=>no.deleteAll(to)),this}clear(){return this.next(OrderedMap()),this}merge(to){return this.updateState(no=>no.merge(to)),this}insertBefore(to,no,io){return this.updateState(so=>OrderedMap().withMutations(ao=>{for(const[lo,uo]of so.entries())to===lo&&ao.set(no,io),ao.set(lo,uo)})),this.notify(no),this}insertAfter(to,no,io){return this.updateState(so=>OrderedMap().withMutations(ao=>{for(const[lo,uo]of so.entries())ao.set(lo,uo),to===lo&&ao.set(no,io)})),this.notify(no),this}sortByValue(to){return this.updateState(no=>no.sort(to)),this}}var _a$8;const XMe=class XMe extends FlowViewModelShared{constructor(){super(),this.isWorkspaceReady$=new State$2(!1),this.currentNodeId$=new State$2(void 0),this.graphConfig=GraphConfigBuilder.default().build(),this.graphReducer=graphReducer(),this.isReadonly$=new State$2(!1),this.name$=new State$2(""),this.flowType$=new State$2(FlowType.Default),this.owner$=new State$2(void 0),this.isArchived$=new State$2(!1),this.selectedStepId$=new State$2(void 0),this.tools$=new ObservableOrderedMap,this.toolsStatus$=new ObservableOrderedMap,this.batchInputs$=new State$2([]),this.bulkRunDataReference$=new State$2(void 0),this.chatMessages$=new State$2([]),this.nodeVariants$=new ObservableOrderedMap,this.tuningNodeNames$=new State$2([]),this.inputSpec$=new ObservableOrderedMap,this.selectedBulkIndex$=new State$2(void 0),this.nodeRuns$=new ObservableOrderedMap,this.flowRuns$=new State$2([]),this.rootFlowRunMap$=new ObservableMap,this.flowOutputs$=new ObservableOrderedMap,this.connections$=new ObservableOrderedMap,this.promptToolSetting$=new State$2(void 0),this.userInfo$=new State$2(void 0),this.bulkRunDescription$=new State$2(""),this.bulkRunTags$=new State$2([]),this.nodeParameterTypes$=new ObservableMap,this.theme$=new State$2(void 0),this.selectedRuntimeName$=new State$2(void 0),this.connectionList$=new State$2([]),this.connectionSpecList$=new State$2([]),this.connectionDeployments$=new ObservableOrderedMap,this.connectionDeploymentsLoading$=new ObservableOrderedMap,this.runStatus$=new State$2(void 0),this.flowRunType$=new State$2(void 0),this.packageToolsDictionary$=new ObservableMap,this.codeToolsDictionary$=new ObservableMap,this.isToolsJsonReady$=new State$2(!1),this.flowGraphLayout$=new State$2(void 0),this.flowUIHint$=new State$2(void 0),this.isInitialized$=new State$2(!1),this.flowFeatures$=new State$2(new Set),this.loaded=!1,this._allLlmParameterKeys=[],new Set(dataReadonlyMode).add(GraphFeatures.AutoFit);const no=new Set;no.add(FlowFeatures.OpenCodeFileInNode),this.flowFeatures$.next(no),this.canvasState$=new State$2(createGraphState({settings:{graphConfig:this.graphConfig,canvasBoundaryPadding:{top:800,bottom:800}},data:GraphModel.empty()})),this.allNodeNames$=Computed$1.fromStates([this.nodeVariants$],([io])=>List$2(Array.from(io.keys()).filter(so=>!!so&&so!==FLOW_INPUT_NODE_NAME&&so!==FLOW_OUTPUT_NODE_NAME))),merge$6(this.flowOutputs$,this.batchInputs$,this.inputSpec$,this.selectedRuntimeName$,this.bulkRunTags$,this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$).pipe(filter$3(()=>this.loaded),filter$3(()=>this.isInitialized$.getSnapshot()),debounceTime(100)).subscribe(()=>{this.notifyFlowChange()}),merge$6(this.flowGraphLayout$,this.orientation$).pipe(debounceTime(100)).subscribe(()=>{this.notifyLayoutChange()}),merge$6(this.flowUIHint$).pipe(debounceTime(100)).subscribe(()=>{this.notifyUIHintChange()}),this.invalidStepInputs$=Computed$1.fromStates([this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$,this.connectionList$,this.inputSpec$,this.nodeParameterTypes$],([io,so,ao,lo,uo,ho])=>this.validateNodeInputs(io))}attemptToRenameStep(to,no){if(!checkNodeNameValid(no))return`step name ${no} is not valid`;if(this.nodeVariants$.get(no))return`step with name ${no} already exists`;if(!this.nodeVariants$.get(to))return`step ${to} not found`;const so=(lo,uo,ho)=>{const go={...lo};return Object.keys(go).forEach(mo=>{const yo=go[mo],So=getRefValueFromRaw(yo),[_o]=(So==null?void 0:So.split("."))??[];_o===uo&&(go[mo]=yo.replace(`${uo}`,`${ho}`))}),go},ao=(lo,uo,ho)=>{if(!lo)return;const go={};return Object.entries(lo).forEach(([mo,yo])=>{var So,_o,ko;go[mo]={...yo,node:{...yo.node,name:((So=yo.node)==null?void 0:So.name)===uo?ho:(_o=yo.node)==null?void 0:_o.name,inputs:so(((ko=yo.node)==null?void 0:ko.inputs)??{},uo,ho)}}}),go};reactDomExports.unstable_batchedUpdates(()=>{this.nodeVariants$.updateState(lo=>lo.mapEntries(([uo,ho])=>{const go={...ho,variants:ao(ho.variants,to,no)};return[uo===to?no:uo,go]})),this.flowGraphLayout$.updateState(lo=>({...lo,nodeLayouts:renameKeyInObject((lo==null?void 0:lo.nodeLayouts)??{},to,no)})),this.flowUIHint$.updateState(lo=>({...lo,nodes:renameKeyInObject((lo==null?void 0:lo.nodes)??{},to,no)})),this.currentNodeId$.getSnapshot()===to&&this.currentNodeId$.next(no),this.selectedStepId$.getSnapshot()===to&&this.selectedStepId$.next(no),this.nodeRuns$.getSnapshot().forEach((lo,uo)=>{if(lo.node===to){const[,ho,go,mo]=uo.split("#"),yo=parseInt(ho,10);this.nodeRuns$.set(this.getNodeRunKey(no,isNaN(yo)?0:yo,go,mo),{...lo,node:no}),this.nodeRuns$.delete(uo)}})})}acceptFlowEdit(to,no){to!==this.viewType&&this.loadFlow(no)}loadFlow(to){this.loaded=!1;try{reactDomExports.unstable_batchedUpdates(()=>{this.baseEntity=to,this.owner$.next(to.owner),this.isArchived$.next(to.isArchived??!1),this.loadFlowDto(to),to.flowRunResult&&this.loadStatus(to.flowRunResult)}),this.loaded=!0}catch(no){throw this.loaded=!0,no}}loadCodeTool(to,no){this.codeToolsDictionary$.set(to,no)}loadPackageTool(to,no){this.packageToolsDictionary$.set(to,no)}toBatchRequestData(){return{flow:{flowGraph:this.toFlowGraph(),nodeVariants:this.toNodeVariants(),flowGraphLayout:this.flowGraphLayout$.getSnapshot()},flowSubmitRunSettings:{...this.toFlowRunSettings()},flowRunDisplayName:this.name$.getSnapshot()}}toAddOnEvaluationRequestData(){return{flowSubmitRunSettings:{...this.toFlowRunSettings()}}}loadStatus(to){var ao;this.clearStatus();let no=0;const io=[],so=new Map;if((ao=to.flow_runs)!=null&&ao.length){for(const lo of to.flow_runs)lo.index===null?so.set(lo.run_id,lo):(no=lo.index,io.push(lo));io.sort((lo,uo)=>{var ho;return lo.root_run_id===uo.root_run_id?(lo.index??0)-(uo.index??0):lo.variant_id&&uo.variant_id?lo.variant_id.localeCompare(uo.variant_id):((ho=lo.root_run_id)==null?void 0:ho.localeCompare((uo==null?void 0:uo.root_run_id)??""))??0}),this.flowRuns$.next(io),this.rootFlowRunMap$.next(Map$5(so))}to.flowRunType&&this.flowRunType$.next(to.flowRunType),to.runStatus&&this.runStatus$.next(to.runStatus),this.loadNodesStatus(to.node_runs||[]),this.selectedBulkIndex$.next(no)}loadNodesStatus(to){const no=this.tuningNodeNames$.getSnapshot()[0];to.forEach(io=>{const so=io.node===no,ao=this.getDefaultVariantId(io.node),lo=io.variant_id||ao,uo=so?lo:ao,ho=this.getNodeRunKey(io.node,io.index??0,uo,lo);this.nodeRuns$.set(ho,io)})}loadSingleNodeRunStatus(to,no,io){this.resetNodesStatus(to,no),io.forEach(so=>{const ao=this.getDefaultVariantId(so.node),lo=so.variant_id||ao,uo=so.variant_id||ao,ho=this.getNodeRunKey(so.node,so.index??0,uo,lo);this.nodeRuns$.set(ho,so)})}resetNodesStatus(to,no){this.nodeRuns$.updateState(io=>io.filter(so=>{if(so.node!==to)return!0;const ao=this.getDefaultVariantId(so.node);return(so.variant_id||ao)!==no}))}clearStatus(){this.selectedBulkIndex$.next(void 0),this.nodeRuns$.clear(),this.flowRuns$.next([]),this.rootFlowRunMap$.clear()}getDefaultVariantId(to){var no;return((no=this.nodeVariants$.get(to))==null?void 0:no.defaultVariantId)||BASELINE_VARIANT_ID}setStepInput(to,no,io,so){const ao=this.getNode(to,so);if(!(ao!=null&&ao.name))return;const lo={...ao,inputs:{...ao.inputs,[no]:io}};this.setNode(to,so,lo)}removeStepInputs(to,no,io){const so=this.getNode(to,io);if(!(so!=null&&so.name))return;const ao={...so.inputs};no.forEach(uo=>{delete ao[uo]});const lo={...so,inputs:ao};this.setNode(to,io,lo)}renameStepInput(to,no,io){const so=this.getNode(to,BASELINE_VARIANT_ID);if(!(so!=null&&so.name))return;const ao={...so,inputs:renameKeyInObject(so.inputs??{},no,io)};this.setNode(to,BASELINE_VARIANT_ID,ao)}setStepActivate(to,no,io){const so=this.getNode(to,no);if(!(so!=null&&so.name))return;const ao={...so,activate:io};this.setNode(to,no,ao)}setStepKeyValue(to,no,io,so){const ao=this.getNode(to,so);if(!(ao!=null&&ao.name))return;const lo={...ao,[no]:io};this.setNode(to,so,lo)}setStepSourcePath(to,no,io){const so=this.getNode(to,io);if(!(so!=null&&so.name))return;const ao={...so,source:{...so.source,path:no}};this.setNode(to,io,ao)}setBatchInput(to,no,io){const so=this.batchInputs$.getSnapshot();if(!so[to])return;const ao=[...so];ao[to]={...ao[to],[no]:io},this.batchInputs$.setState(ao)}setBulkRunTag(to,no,io){const so=[...this.bulkRunTags$.getSnapshot()];if(!so[to])return;const ao={};ao[no]=io,so[to]=ao,this.bulkRunTags$.next(so)}deleteBulkRunTag(to){const no=[...this.bulkRunTags$.getSnapshot()];no.splice(to,1),this.bulkRunTags$.next(no)}addBulkRunTagRow(){const to=this.bulkRunTags$.getSnapshot(),no={"":""};this.bulkRunTags$.next([...to,no])}getNodeRunKey(to,no,io=BASELINE_VARIANT_ID,so=BASELINE_VARIANT_ID){return`${to}#${no}#${io}#${so}`}dispatch(to){var ao;let no="";switch(to.type){case GraphCanvasEvent.Click:this.currentNodeId$.next(void 0);break;case GraphNodeEvent.Click:this.currentNodeId$.next(to.node.id,!0);break;case GraphNodeEvent.DragEnd:{no=to.node.name??"";break}}const io=this.canvasState$.getSnapshot(),so=this.graphReducer(io,to);if(this.canvasState$.next(so),no){const lo=so.data.present.nodes.find(go=>go.name===no),uo=this.flowGraphLayout$.getSnapshot(),ho={...uo,nodeLayouts:{...uo==null?void 0:uo.nodeLayouts,[no]:{...(ao=uo==null?void 0:uo.nodeLayouts)==null?void 0:ao[no],x:lo==null?void 0:lo.x,y:lo==null?void 0:lo.y}}};this.flowGraphLayout$.next(ho)}}setGraphConfig(to){this.graphConfig=to;const no=this.canvasState$.getSnapshot();this.canvasState$.next({...no,settings:{...no.settings,graphConfig:to}})}toFlowGraph(){const to=this.nodeVariants$.getSnapshot(),no=getDefaultNodeList(List$2.of(...to.keys()),to);return{inputs:this.inputSpec$.getSnapshot().toJSON(),outputs:this.flowOutputs$.getSnapshot().toJSON(),nodes:no,tools:void 0}}toFlowGraphSnapshot(to){const no=lodashExports.mapValues(this.inputSpec$.getSnapshot().toJSON(),ho=>{ho.default!==void 0&&(ho.default=convertValByType(ho.default,ho.type));const{name:go,id:mo,...yo}=ho;return yo}),io=lodashExports.mapValues(this.flowOutputs$.getSnapshot().toJSON(),ho=>{const{name:go,id:mo,...yo}=ho;return yo}),ao=getNodesThatMoreThanOneVariant(to).map(ho=>ho.nodeName),lo=getFlowSnapshotNodeList(List$2.of(...Object.keys(to)),to,ao),uo=getVariantNodes(to);return{inputs:no,outputs:io,nodes:lo,node_variants:uo}}toNodeVariants(){const to=this.nodeVariants$.getSnapshot().toJSON(),no={};return Object.keys(to).forEach(io=>{const so=to[io],ao={};Object.keys(so.variants??{}).forEach(lo=>{const uo=(so.variants??{})[lo];ao[lo]={...uo,node:uo.node?this.pruneNodeInputs(uo.node):void 0}}),no[io]={...so,variants:ao}}),no}toFlowRunSettings(){var to,no;return{tuningNodeNames:this.tuningNodeNames$.getSnapshot(),variants:void 0,runtimeName:(to=this.selectedRuntimeName$)==null?void 0:to.getSnapshot(),description:this.bulkRunDescription$.getSnapshot(),tags:Object.assign({},...this.bulkRunTags$.getSnapshot()),...this.bulkRunDataReference$.getSnapshot()!==void 0?{batchDataInput:{dataUri:(no=this.bulkRunDataReference$.getSnapshot())==null?void 0:no.id}}:{batch_inputs:this.batchInputs$.getSnapshot()}}}toJSON(){const to=this.toNodeVariants();return{...this.baseEntity,flow:{flowGraph:this.toFlowGraphSnapshot(to)},flowName:this.name$.getSnapshot(),flowRunSettings:this.toFlowRunSettings()}}toFlowGraphLayout(){const to=this.flowGraphLayout$.getSnapshot()??{},no=Array.from(this.nodeVariants$.getSnapshot().keys()),io={...to.nodeLayouts};return Object.keys(io).forEach(so=>{io[so]={...io[so],index:no.indexOf(so)}}),{...to,nodeLayouts:io,orientation:this.orientation$.getSnapshot()}}toFlowUIHint(){return this.flowUIHint$.getSnapshot()??{nodes:{}}}updateToolCode(to,no){const io=this.codeToolsDictionary$.get(to);io&&this.codeToolsDictionary$.set(to,{...io,code:no})}updateToolStatus(to,no){const io=this.toolsStatus$.get(to);this.toolsStatus$.set(to,{...io,...no})}updateFlowInput(to,no){const io=this.batchInputs$.getSnapshot(),so=io==null?void 0:io[0];let ao=no;try{const lo=JSON.parse(no);ao=JSON.stringify(lo)}catch{ao=no}this.batchInputs$.next([{...so,[to]:ao},...io.slice(1)])}addNewNode(to,no){if(!to.name)return;const io=to,so={defaultVariantId:BASELINE_VARIANT_ID,variants:{[BASELINE_VARIANT_ID]:{node:io}}};no?this.nodeVariants$.insertBefore(no,to.name,so):this.nodeVariants$.set(to.name,so)}patchEditData(to){var no,io,so,ao;switch(to.type){case"chatInput":{if(this.flowType$.getSnapshot()!==FlowType.Chat)return;const lo=this.batchInputs$.getSnapshot(),uo=((no=this.getChatInputDefinition())==null?void 0:no.name)??DEFAULT_CHAT_INPUT_NAME;this.batchInputs$.next([{...lo[0],[uo]:to.value}]);break}case"chatHistory":{if(this.flowType$.getSnapshot()!==FlowType.Chat)return;const lo=this.batchInputs$.getSnapshot(),uo=((io=this.getChatHistoryDefinition())==null?void 0:io.name)??DEFAULT_CHAT_HISTORY_NAME,ho=((so=this.getChatInputDefinition())==null?void 0:so.name)??DEFAULT_CHAT_INPUT_NAME,go=((ao=this.getChatOutputDefinition())==null?void 0:ao.name)??DEFAULT_CHAT_OUTPUT_NAME;this.batchInputs$.next([{...lo[0],[uo]:[...lo[0][uo],{inputs:{[ho]:to.value.chatInput},outputs:{[go]:to.value.chatOutput}}].slice(-10)}]);break}case"flowGraph":{try{this.loaded=!1,reactDomExports.unstable_batchedUpdates(()=>{this.loadFlorGraph(to.value)})}finally{this.loaded=!0}break}default:{const lo=to;throw new Error(`Didn't expect to get here: ${lo}`)}}}getChatInputDefinition(){return this.inputSpec$.getSnapshot().find(isChatInput)}getChatHistoryDefinition(){const to=this.flowType$.getSnapshot();return this.inputSpec$.getSnapshot().find(no=>isChatHistory(to,no))}getChatOutputDefinition(){return this.flowOutputs$.getSnapshot().find(isChatOutput)}clearChatMessages(){this.chatMessages$.next([]),this.syncChatMessagesToInputsValues([])}getProviderByConnection(to){var lo;if(!to)return;const no=this.connectionList$.getSnapshot(),io=this.promptToolSetting$.getSnapshot(),so=no.find(uo=>uo.connectionName===to);if(!so)return;const ao=(lo=io==null?void 0:io.providers)==null?void 0:lo.find(uo=>{var ho;return so.connectionType&&((ho=uo.connection_type)==null?void 0:ho.includes(so.connectionType))});if(ao)return ao.provider}addFlowInput(to,no){this.inputSpec$.set(to,{...no,name:to,id:(no==null?void 0:no.id)??getRandomInputDefinitionId()})}addFlowOutput(to,no){this.flowOutputs$.set(to,{...no,name:to,id:(no==null?void 0:no.id)??getRandomOutputDefinitionId()})}loadFlorGraph(to){var ao;const no=(to==null?void 0:to.nodes)||[],io=(to==null?void 0:to.outputs)||{},so=(to==null?void 0:to.inputs)||{};this.nodeVariants$.clear(),no.forEach(lo=>{lo.name&&(this.nodeVariants$.get(lo.name)||this.nodeVariants$.set(lo.name,{defaultVariantId:BASELINE_VARIANT_ID,variants:{[BASELINE_VARIANT_ID]:{node:lo}}}))}),(ao=Object.entries((to==null?void 0:to.node_variants)??{}))==null||ao.forEach(([lo,uo])=>{const ho={...uo.variants};Object.entries(ho).forEach(([go,mo])=>{mo.node&&(mo.node.name=lo)}),this.nodeVariants$.set(lo,{defaultVariantId:uo.default_variant_id??BASELINE_VARIANT_ID,variants:ho})}),this.flowOutputs$.clear(),Object.keys(io).forEach(lo=>{const uo=io[lo];uo&&this.addFlowOutput(lo,uo)}),this.inputSpec$.clear(),Object.keys(so).forEach(lo=>{const uo=so[lo];uo&&this.addFlowInput(lo,uo)})}loadFlowDto(to){var no,io,so,ao,lo,uo,ho,go,mo,yo,So,_o,ko,Co;if(this.name$.next(to.flowName??""),this.flowType$.next(to.flowType??FlowType.Default),this.loadFlorGraph((no=to.flow)==null?void 0:no.flowGraph),(io=to.flow)!=null&&io.nodeVariants&&((ao=Object.entries(((so=to.flow)==null?void 0:so.nodeVariants)??{}))==null||ao.forEach(([$o,Ro])=>{this.nodeVariants$.set($o,{...Ro,defaultVariantId:Ro.defaultVariantId??BASELINE_VARIANT_ID})})),(uo=(lo=to.flow)==null?void 0:lo.flowGraphLayout)!=null&&uo.nodeLayouts){const $o=(ho=to.flow)==null?void 0:ho.flowGraphLayout;this.flowGraphLayout$.next($o),$o.orientation&&this.orientation$.next($o.orientation)}if(this.selectedRuntimeName$.setState(((go=to.flowRunSettings)==null?void 0:go.runtimeName)??""),this.batchInputs$.setState(((mo=to.flowRunSettings)==null?void 0:mo.batch_inputs)??[{}]),this.tuningNodeNames$.setState(((yo=to.flowRunSettings)==null?void 0:yo.tuningNodeNames)??[]),this.bulkRunDescription$.next(to.description??""),this.bulkRunTags$.next([]),to.tags){const $o=[];Object.keys(to.tags).forEach(Ro=>{var Oo;$o.push({[Ro]:((Oo=to==null?void 0:to.tags)==null?void 0:Oo[Ro])??""})}),this.bulkRunTags$.next($o)}this.initNodeParameterTypes((So=to.flow)==null?void 0:So.flowGraph),to.flowType===FlowType.Chat&&(this.initChatFlow(to),this.initChatMessages(((_o=to.flowRunSettings)==null?void 0:_o.batch_inputs)??[{}])),this.language$.next((Co=(ko=to.flow)==null?void 0:ko.flowGraph)==null?void 0:Co.language)}initNodeParameterTypes(to){if(!to)return;const no=this.nodeVariants$.getSnapshot().toJSON();let io=Map$5(new Map);Object.keys(no).forEach(so=>{const ao=no[so];Object.keys(ao.variants??{}).forEach(lo=>{var ho;const uo=(ao.variants??{})[lo];if(uo.node){const go={inputs:{},activate:{is:void 0}},mo=this.getToolOfNode(uo.node);if((uo.node.type??(mo==null?void 0:mo.type))===ToolType.python){const yo=Object.keys((mo==null?void 0:mo.inputs)??{});Object.keys(uo.node.inputs??{}).filter(ko=>!yo.includes(ko)).forEach(ko=>{var Co,$o;go.inputs[ko]=inferTypeByVal(($o=(Co=uo.node)==null?void 0:Co.inputs)==null?void 0:$o[ko])??ValueType.string})}go.activate.is=inferTypeByVal((ho=uo.node.activate)==null?void 0:ho.is)??ValueType.string,io=io.set(`${so}#${lo}`,go)}})}),this.nodeParameterTypes$.next(io)}initChatFlow(to){if(to.flowType!==FlowType.Chat)return;this.inputSpec$.getSnapshot().some(ao=>isChatHistory(to.flowType,ao))||(this.addFlowInput(DEFAULT_CHAT_HISTORY_NAME,{name:DEFAULT_CHAT_HISTORY_NAME,type:ValueType.list}),this.batchInputs$.updateState(ao=>[{...ao[0],[DEFAULT_CHAT_HISTORY_NAME]:[]},...ao.slice(1)])),this.inputSpec$.getSnapshot().some(ao=>isChatInput(ao))||this.addFlowInput(DEFAULT_CHAT_INPUT_NAME,{name:DEFAULT_CHAT_INPUT_NAME,type:ValueType.string,is_chat_input:!0}),this.flowOutputs$.getSnapshot().some(ao=>isChatOutput(ao))||this.addFlowOutput(DEFAULT_CHAT_OUTPUT_NAME,{name:DEFAULT_CHAT_OUTPUT_NAME,type:ValueType.string,is_chat_output:!0})}initChatMessages(to){var uo,ho,go;const no=((uo=this.getChatHistoryDefinition())==null?void 0:uo.name)??DEFAULT_CHAT_HISTORY_NAME,io=to[0][no];if(!Array.isArray(io))return;const so=((ho=this.getChatInputDefinition())==null?void 0:ho.name)??DEFAULT_CHAT_INPUT_NAME,ao=((go=this.getChatOutputDefinition())==null?void 0:go.name)??DEFAULT_CHAT_OUTPUT_NAME,lo=parseChatMessages(so,ao,io);this.chatMessages$.next(lo),this.syncChatMessagesToInputsValues(lo)}syncChatMessagesToInputsValues(to){var io,so,ao;if(this.batchInputs$.getSnapshot().length<=1){const lo=((io=this.getChatInputDefinition())==null?void 0:io.name)??DEFAULT_CHAT_INPUT_NAME,uo=((so=this.getChatOutputDefinition())==null?void 0:so.name)??DEFAULT_CHAT_OUTPUT_NAME,ho=((ao=this.getChatHistoryDefinition())==null?void 0:ao.name)??DEFAULT_CHAT_HISTORY_NAME,go=[];for(let mo=0;mo[{...mo[0],[ho]:go}])}}getNode(to,no){var io,so,ao;return(ao=(so=(io=this.nodeVariants$.get(to))==null?void 0:io.variants)==null?void 0:so[no])==null?void 0:ao.node}setNode(to,no,io){var ao;const so=this.nodeVariants$.get(to);this.nodeVariants$.set(to,{defaultVariantId:(so==null?void 0:so.defaultVariantId)??BASELINE_VARIANT_ID,variants:{...so==null?void 0:so.variants,[no]:{...(ao=so==null?void 0:so.variants)==null?void 0:ao[no],node:io}}})}getAllLlmParameterKeys(){var to;if(this._allLlmParameterKeys.length===0){const no=this.promptToolSetting$.getSnapshot();if(!no)return[];const io=(to=no.providers)==null?void 0:to.flatMap(ao=>{var lo;return(lo=ao.apis)==null?void 0:lo.map(uo=>uo.parameters)}),so=new Set(io==null?void 0:io.flatMap(ao=>Object.keys(ao??{})));this._allLlmParameterKeys=[...so.values()]}return this._allLlmParameterKeys}pruneNodeInputs(to){var yo,So,_o,ko;const no=to?this.getToolOfNode(to):void 0,io=this.promptToolSetting$.getSnapshot(),so=this.connectionList$.getSnapshot(),ao=this.connectionSpecList$.getSnapshot();if(!no||!io)return to;if((to.type??no.type)===ToolType.python&&no.enable_kwargs){const Co={};return Object.keys(to.inputs??{}).forEach($o=>{var Ro,Oo,No,Mo;if(((Ro=to.inputs)==null?void 0:Ro[$o])!==void 0){const Bo=(Oo=no.inputs)==null?void 0:Oo[$o];Co[$o]=convertValByType((No=to.inputs)==null?void 0:No[$o],(Mo=Bo==null?void 0:Bo.type)==null?void 0:Mo[0])}}),{...to,inputs:Co}}const lo=this.getProviderByConnection(to.connection??"");if((to.type??no.type)===ToolType.llm&&(!lo||!to.api))return to;const uo=(to.type??no.type)===ToolType.llm,ho=uo?(ko=(_o=(So=(yo=io==null?void 0:io.providers)==null?void 0:yo.find(Co=>Co.provider===lo))==null?void 0:So.apis)==null?void 0:_o.find(Co=>Co.api===to.api))==null?void 0:ko.parameters:void 0,go=new Set(filterNodeInputsKeys(no.inputs,to.inputs,so,ao).concat(uo?this.getAllLlmParameterKeys():[])),mo={};return Object.keys(to.inputs??{}).forEach(Co=>{var $o,Ro,Oo,No;if(go.has(Co)&&(($o=to.inputs)==null?void 0:$o[Co])!==void 0){const Mo=((Ro=no.inputs)==null?void 0:Ro[Co])??(ho==null?void 0:ho[Co]);mo[Co]=convertValByType((Oo=to.inputs)==null?void 0:Oo[Co],(No=Mo==null?void 0:Mo.type)==null?void 0:No[0])}}),{...to,inputs:mo}}getToolOfNode(to){var so,ao;const no=this.codeToolsDictionary$.get(((so=to.source)==null?void 0:so.path)??""),io=this.packageToolsDictionary$.get(((ao=to.source)==null?void 0:ao.tool)??"");return resolveTool(to,no,io,lo=>this.codeToolsDictionary$.get(lo))}validateNodeInputs(to){const no=new Map,io=this.getNodesInCycle(to),so=this.connectionList$.getSnapshot(),ao=this.connectionSpecList$.getSnapshot(),lo=[];return this.inputSpec$.getSnapshot().forEach((ho,go)=>{const mo=ho.default,yo=ho.type;if(mo!==void 0&&mo!==""&&!isTypeValid(mo,yo)){const So={section:"inputs",parameterName:go,type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"};lo.push(So)}}),lo.length>0&&no.set(`${FLOW_INPUT_NODE_NAME}#`,lo),Array.from(to.values()).forEach(ho=>{const{variants:go={}}=ho;Object.keys(go).forEach(mo=>{var Ro,Oo,No;const yo=go[mo],{node:So}=yo,_o=So?this.getToolOfNode(So):void 0,ko=filterNodeInputsKeys(_o==null?void 0:_o.inputs,So==null?void 0:So.inputs,so,ao);if(!So||!So.name)return;if(!_o){const Mo=So;no.set(`${So.name}#${mo}`,[{type:ValidationErrorType.MissingTool,message:`Can't find tool ${((Ro=Mo==null?void 0:Mo.source)==null?void 0:Ro.tool)??((Oo=Mo==null?void 0:Mo.source)==null?void 0:Oo.path)}`}]);return}const Co=[],$o=this.validateNodeConfig(So,_o);if($o&&Co.push($o),ko.forEach(Mo=>{const Bo=this.validateNodeInputRequired(_o,So,Mo);Bo&&Co.push(Bo)}),So.inputs&&Co.push(...Object.keys(So.inputs).map(Mo=>{if(!ko.includes(Mo)&&!_o.enable_kwargs)return;const{isReference:Bo,error:Po}=this.validateNodeInputReference(So,"inputs",Mo,to,io);if(Po)return Po;if(!Bo)return this.validateNodeInputType(_o,So,mo,Mo)}).filter(Boolean)),So.activate){const{error:Mo}=this.validateNodeInputReference(So,"activate","when",to,io);Mo&&Co.push(Mo);const Bo=So.activate.is,Po=(No=this.nodeParameterTypes$.get(`${So.name}#${mo}`))==null?void 0:No.activate.is;if(!isTypeValid(Bo,Po)){const Lo={section:"activate",parameterName:"is",type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"};Co.push(Lo)}}no.set(`${So.name}#${mo}`,Co)})}),no}getNodesInCycle(to){const no=getDefaultNodeList(List$2.of(...to.keys()),to),io=new Map;no.forEach(go=>{var yo;const mo=(So,_o,ko)=>{const Co=getRefValueFromRaw(ko),[$o]=(Co==null?void 0:Co.split("."))??[];!$o||isFlowInput($o)||io.set(`${go.name}.${So}.${_o}`,$o)};Object.keys((go==null?void 0:go.inputs)??{}).forEach(So=>{var ko;const _o=(ko=go.inputs)==null?void 0:ko[So];mo("inputs",So,_o)}),mo("activate","when",(yo=go.activate)==null?void 0:yo.when)});const so=new Map,ao=new Map,lo=new Map,uo=new Map;return no.forEach(go=>{const mo=go.name;mo&&(so.set(mo,0),ao.set(mo,0),lo.set(mo,[]),uo.set(mo,[]))}),no.forEach(go=>{const mo=go.name;if(!mo)return;const yo=(So,_o)=>{const ko=io.get(`${mo}.${So}.${_o}`);ko&&(so.set(mo,(so.get(mo)??0)+1),ao.set(ko,(ao.get(ko)??0)+1),lo.set(ko,[...lo.get(ko)??[],mo]),uo.set(mo,[...uo.get(mo)??[],ko]))};Object.keys((go==null?void 0:go.inputs)??{}).forEach(So=>{yo("inputs",So)}),yo("activate","when")}),getCycle(so,lo,ao,uo)}validateNodeConfig(to,no){var so,ao,lo,uo,ho,go,mo;const io=this.promptToolSetting$.getSnapshot();if((to.type??(no==null?void 0:no.type))===ToolType.llm){if(!to.connection)return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is required"};if(!this.connectionList$.getSnapshot().some(Co=>Co.connectionName===to.connection))return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is not valid"};if(!to.api)return{parameterName:"api",type:ValidationErrorType.NodeConfigInvalid,message:"api is required"};const yo=this.getProviderByConnection(to.connection),So=(uo=(lo=(ao=(so=io==null?void 0:io.providers)==null?void 0:so.find(Co=>Co.provider===yo))==null?void 0:ao.apis)==null?void 0:lo.find(Co=>Co.api===to.api))==null?void 0:uo.parameters;if((So==null?void 0:So.model)&&!((ho=to.inputs)!=null&&ho.model))return{parameterName:"model",type:ValidationErrorType.NodeConfigInvalid,message:"model is required"};if((So==null?void 0:So.deployment_name)&&!((go=to.inputs)!=null&&go.deployment_name))return{parameterName:"deployment_name",type:ValidationErrorType.NodeConfigInvalid,message:"deployment_name is required"}}if(no&&((mo=no==null?void 0:no.connection_type)!=null&&mo.length)&&!to.connection)return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is required"}}validateNodeInputRequired(to,no,io){var ao,lo,uo;if(((lo=(ao=to.inputs)==null?void 0:ao[io])==null?void 0:lo.default)!==void 0)return;const so=(uo=no.inputs)==null?void 0:uo[io];if(so===void 0||so==="")return{section:"inputs",parameterName:io,type:ValidationErrorType.InputEmpty,message:"Input cannot be empty"}}validateNodeInputReference(to,no,io,so,ao){var yo;const lo=(yo=to==null?void 0:to[no])==null?void 0:yo[io],uo=getRefValueFromRaw(lo),[ho,go]=(uo==null?void 0:uo.split("."))??[];return ho?isFlowInput(ho)?this.inputSpec$.get(go)?{isReference:!0,error:void 0}:{isReference:!0,error:{section:no,parameterName:io,type:ValidationErrorType.InputDependencyNotFound,message:`${uo} is not a valid flow input`}}:ho===to.name?{isReference:!0,error:{section:no,parameterName:io,type:ValidationErrorType.InputSelfReference,message:"Input cannot reference itself"}}:so.get(ho)?to.name&&ao.has(to.name)&&ao.has(ho)?{isReference:!0,error:{section:no,parameterName:io,type:ValidationErrorType.CircularDependency,message:"Input cannot reference a node in a cycle"}}:{isReference:!0,error:void 0}:{isReference:!0,error:{section:no,parameterName:io,type:ValidationErrorType.InputDependencyNotFound,message:`${ho} is not a valid node name`}}:{isReference:!1,error:void 0}}validateNodeInputType(to,no,io,so){var go,mo,yo,So,_o;const ao=(go=no.inputs)==null?void 0:go[so];if(!ao)return;const lo=(mo=to==null?void 0:to.inputs)==null?void 0:mo[so],uo=((yo=lo==null?void 0:lo.type)==null?void 0:yo[0])??((_o=(So=this.nodeParameterTypes$.get(`${no.name}#${io}`))==null?void 0:So.inputs)==null?void 0:_o[so]),ho=(no.type??to.type)===ToolType.custom_llm&&so==="tool_choice";if(!(!ao||!to||!uo||ho)&&!isTypeValid(ao,uo))return{section:"inputs",parameterName:so,type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"}}};_a$8=SINGLETON,XMe[_a$8]=!0;let BaseFlowViewModel=XMe;class DefaultFlowViewModel extends BaseFlowViewModel{constructor(){super(...arguments),this.viewType="default"}fetchConnectionList(){}fetchPromptToolSetting(){}openRunListView(){}deployFlow(){}setSelectedStepId(){}notifyFlowChange(){}notifyLayoutChange(){}notifyUIHintChange(){}}createInjectionToken("FlowViewModel",new DefaultFlowViewModel);function useInjected(...eo){const to=reactExports.useContext(ServicesContext);return reactExports.useMemo(()=>eo.map(no=>{try{return to.resolve(no)}catch(io){throw[no,io]}}),[to].concat(eo))}var shim$1={exports:{}},useSyncExternalStoreShim_production_min={};/** + `):"",this.name="UnsubscriptionError",this.errors=to,this}return eo.prototype=Object.create(Error.prototype),eo}(),UnsubscriptionError=UnsubscriptionErrorImpl,Subscription=function(){function eo(to){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,to&&(this._ctorUnsubscribe=!0,this._unsubscribe=to)}return eo.prototype.unsubscribe=function(){var to;if(!this.closed){var no=this,io=no._parentOrParents,so=no._ctorUnsubscribe,ao=no._unsubscribe,lo=no._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,io instanceof eo)io.remove(this);else if(io!==null)for(var uo=0;uo0?this._next(no.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},to}(SimpleOuterSubscriber);function mergeAll(eo){return eo===void 0&&(eo=Number.POSITIVE_INFINITY),mergeMap(identity$7,eo)}function merge$6(){for(var eo=[],to=0;to1&&typeof eo[eo.length-1]=="number"&&(no=eo.pop())):typeof so=="number"&&(no=eo.pop()),io===null&&eo.length===1&&eo[0]instanceof Observable$2?eo[0]:mergeAll(no)(fromArray(eo,io))}function filter$3(eo,to){return function(io){return io.lift(new FilterOperator(eo,to))}}var FilterOperator=function(){function eo(to,no){this.predicate=to,this.thisArg=no}return eo.prototype.call=function(to,no){return no.subscribe(new FilterSubscriber(to,this.predicate,this.thisArg))},eo}(),FilterSubscriber=function(eo){__extends$2(to,eo);function to(no,io,so){var ao=eo.call(this,no)||this;return ao.predicate=io,ao.thisArg=so,ao.count=0,ao}return to.prototype._next=function(no){var io;try{io=this.predicate.call(this.thisArg,no,this.count++)}catch(so){this.destination.error(so);return}io&&this.destination.next(no)},to}(Subscriber$1);function debounceTime(eo,to){return to===void 0&&(to=async),function(no){return no.lift(new DebounceTimeOperator(eo,to))}}var DebounceTimeOperator=function(){function eo(to,no){this.dueTime=to,this.scheduler=no}return eo.prototype.call=function(to,no){return no.subscribe(new DebounceTimeSubscriber(to,this.dueTime,this.scheduler))},eo}(),DebounceTimeSubscriber=function(eo){__extends$2(to,eo);function to(no,io,so){var ao=eo.call(this,no)||this;return ao.dueTime=io,ao.scheduler=so,ao.debouncedSubscription=null,ao.lastValue=null,ao.hasValue=!1,ao}return to.prototype._next=function(no){this.clearDebounce(),this.lastValue=no,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(dispatchNext,this.dueTime,this))},to.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},to.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var no=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(no)}},to.prototype.clearDebounce=function(){var no=this.debouncedSubscription;no!==null&&(this.remove(no),no.unsubscribe(),this.debouncedSubscription=null)},to}(Subscriber$1);function dispatchNext(eo){eo.debouncedNext()}function e$4(){return e$4=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{const uo=io.singletonCache.get(lo)||io.requestCache.get(lo)||io.transientCache.get(lo);uo&&(ao.proxyTarget.current=uo)}),io.postConstruct.forEach(ao=>{ao.postConstruct()}),this.currentCtx=null,so}child(){const to=new this.constructor;return to.parent=this,to}getParent(){return this.parent}getInjectable(to){var no;const io=this.pool.get(to);if(io)return{value:io,fromParent:!1};const so=(no=this.parent)==null?void 0:no.getInjectable(to);return so?{value:so.value,fromParent:!0}:void 0}_resolve(to,no,io){const so=this.getInjectable(to);if((no==null?void 0:no.optional)===!0&&!so)return;if(!so)throw new Error(`Key: ${a$5(to)} not found`);const{value:{value:ao,scope:lo,type:uo},fromParent:ho}=so;let go,mo=!1;if(uo===h$7.VALUE)return ao;{const yo=io.requestedKeys.get(to);if(yo){if(!yo.constructed){if(!no.lazy&&!ho){const So=Array.from(io.requestedKeys.entries()).pop(),_o=So?`[ ${String(So[0])}: ${So[1].value.name} ]`:"";throw new Error(`Circular reference detected: ${_o} -> [ ${a$5(to)}: ${ao.name} ]`)}mo=!0}}else io.requestedKeys.set(to,{constructed:!1,value:ao})}return go=mo?()=>this.createLazy(to,uo,io):()=>this.create(to,so.value,io),this.run(lo,to,go,io)}resolveDeps(to,no){const io=[];for(const so of to){const{key:ao,options:lo}=c$8(so);if(Array.isArray(ao)){const uo=[];for(const ho of ao){let go=no.singletonCache.get(ho.key);go===void 0&&(go=this._resolve(ho.key,e$4({},ho.options),no)),go===void 0&&lo.removeUndefined||uo.push(go)}io.push(uo.length?uo:lo.setToUndefinedIfEmpty?void 0:uo)}else{let uo=no.singletonCache.get(ao);uo===void 0&&(uo=this._resolve(ao,e$4({},lo),no)),io.push(uo)}}return io}createLazy(to,no,io){const so=io.delayed.get(to);if(so)return so.proxy;const ao=no===h$7.CLASS?{}:function(){},lo=function(uo,ho,go){function mo(){if(!uo.current)throw new Error(`Lazy target for key:${String(go)} not yet set`);return uo.current}return new Proxy(uo,{apply:function(yo,So){const _o=mo();return Reflect.apply(_o,ho?_o:void 0,So)},construct:function(yo,So){return Reflect.construct(mo(),So)},get:function(yo,So,_o){return So===t$7?yo.current:So===n$5||Reflect.get(mo(),So,_o)},set:function(yo,So,_o){return Reflect.set(So==="current"?yo:mo(),So,_o)},defineProperty:function(yo,So,_o){return Reflect.defineProperty(mo(),So,_o)},deleteProperty:function(yo,So){return Reflect.deleteProperty(mo(),So)},getPrototypeOf:function(yo){return Reflect.getPrototypeOf(mo())},setPrototypeOf:function(yo,So){return Reflect.setPrototypeOf(mo(),So)},getOwnPropertyDescriptor:function(yo,So){return Reflect.getOwnPropertyDescriptor(mo(),So)},has:function(yo,So){return Reflect.has(mo(),So)},isExtensible:function(yo){return Reflect.isExtensible(mo())},ownKeys:function(yo){return Reflect.ownKeys(mo())},preventExtensions:function(yo){return Reflect.preventExtensions(mo())}})}(ao,no===h$7.CLASS,to);return io.delayed.set(to,{proxy:lo,proxyTarget:ao}),lo}create(to,no,io){const{beforeResolve:so,afterResolve:ao,value:lo,type:uo}=no,ho=lo.inject;let go=[];ho&&(go=Array.isArray(ho)?this.resolveDeps(ho,io):ho.fn({container:this,ctx:io.ctx},...this.resolveDeps(ho.deps,io)));const mo=so?so({container:this,value:lo.original,ctx:io.ctx},...go):lo(...go);return ao&&ao({container:this,value:mo,ctx:io.ctx}),io.requestedKeys.get(to).constructed=!0,uo==="CLASS"&&"postConstruct"in mo&&io.postConstruct.push(mo),mo}run(to,no,io,so){if(to===f$7.SINGLETON||to===f$7.CONTAINER_SINGLETON){var ao;if(!this.pool.has(no)&&to===f$7.SINGLETON)return(ao=this.parent)==null?void 0:ao.resolve(no);const uo=so.singletonCache.get(no);if(uo!==void 0)return uo===p$8?void 0:uo;{let ho=io();return ho===void 0&&(ho=p$8),this.singletonCache.set(no,ho),ho}}if(f$7.REQUEST===to){const uo=so.requestCache.get(no);if(uo!==void 0)return uo===p$8?void 0:uo;{let ho=io();return ho===void 0&&(ho=p$8),so.requestCache.set(no,ho),ho}}const lo=io();return so.transientCache.set(no,lo),lo}};function isClassProvider(eo){return hasOwn(eo,"useClass")}function isFactoryProvider(eo){return hasOwn(eo,"useFactory")}function isValueProvider(eo){return hasOwn(eo,"useValue")}function isTokenProvider(eo){return hasOwn(eo,"useToken")}const SINGLETON=Symbol("singleton");function isConstructor(eo){return typeof eo=="function"&&!!eo.inject}function getClassScope(eo){return eo[SINGLETON]?"SINGLETON":eo.scope?eo.scope:"TRANSIENT"}class DependencyContainer extends d$6{constructor(){super(...arguments),this.name="DependencyContainer"}bindValue(to,no){return this.has(to,!1)&&this.unbind(to),super.bindValue(to,no)}bindClass(to,no,io){const so=(io==null?void 0:io.scope)??getClassScope(to);return super.bindClass(to,no,{...io,scope:so})}register(to,no){if(isValueProvider(no))this.bindValue(to,no.useValue);else if(isFactoryProvider(no)){const{useFactory:io}=no;this.bindFactory(to,{value:io,inject:[ContainerToken]},{scope:no.scope})}else if(isTokenProvider(no))this.bindFactory(to,{value:io=>io,inject:[no.useToken]});else if(isClassProvider(no)){const io=no.scope??getClassScope(no.useClass);this.bindClass(to,no.useClass,{scope:io})}}_resolve(to,no,io){if(!this.getInjectable(to)&&isConstructor(to)){const so=getClassScope(to);this.bindClass(to,to,{scope:so})}return super._resolve(to,no,io)}}const getGlobalContainer=()=>{const eo=new DependencyContainer;return eo.name="global",eo},container=getGlobalContainer();function createInjectionToken(eo,to){return container.bindValue(eo,to),eo}const ContainerToken=createInjectionToken("DependencyContainer",container),ServicesContext=reactExports.createContext(container),createRegistry=({provide:eo,name:to})=>({containerRef:io,onInitialize:so,onDispose:ao,children:lo})=>{const uo=reactExports.useContext(ServicesContext),ho=reactExports.useMemo(()=>{const go=uo.child();return to&&(go.name=to),eo==null||eo.forEach(mo=>{go.register(mo.token,mo)}),go.bindValue(ContainerToken,go),so==null||so(go),go},[so,uo]);return reactExports.useImperativeHandle(io,()=>ho,[ho]),reactExports.useEffect(()=>()=>{ao==null||ao(ho),ho.unbindAll(!0)},[ho]),jsxRuntimeExports.jsx(ServicesContext.Provider,{value:ho,children:lo})};createInjectionToken("isControlFlowEnabledToken",!1);createInjectionToken("isDoWhileLoopEnabledToken",!1);createInjectionToken("isAnnotationEnabledToken",!1);createInjectionToken("isDesignerUnifiedSubmissionFlowEnabledToken",!1);createInjectionToken("isPipelineComputeDatastoreEnabledToken",!1);createInjectionToken("TransactionalAuthoringEnabled",!1);createInjectionToken("ComponentSettingsEnabled",!1);createInjectionToken("isPipelineOwnerToken",!1);createInjectionToken("isExecutionPhaseEnabledToken",!1);createInjectionToken("isPipelineStreamingEnabledToken",!1);createInjectionToken("useFocusedNodeId",()=>{});createInjectionToken("useIsInSearchResult",()=>!1);createInjectionToken("dismissCompareCheckListPanel",()=>null);const promptFlowGraphReducer=eo=>(to,no)=>eo(to,no),graphReducer=()=>getGraphReducer(promptFlowGraphReducer);let Computed$1=class DSt extends Observable$2{constructor(to,no){super(io=>this.state$.subscribe(io)),this.getSnapshot=()=>this.state$.getValue(),this.state$=new BehaviorSubject(to),this.subscription=no.subscribe(this.state$)}static fromStates(to,no){const io=no(to.map(ao=>ao.getSnapshot())),so=combineLatest(to).pipe(map$3(no));return new DSt(io,so)}destroy(){this.subscription.unsubscribe()}},State$2=class extends BehaviorSubject{constructor(){super(...arguments),this.getState=()=>this.getValue(),this.setState=to=>{this.next(to)},this.updateState=to=>{this.next(to(this.getValue()))},this.getSnapshot=()=>this.getValue()}next(to,no){!no&&this.value===to||super.next(to)}copyFrom(to){this.next(to.getSnapshot())}};const YMe=class YMe{constructor(){this.nodesIndex$=new State$2(List$2()),this.allNodeNames$=Computed$1.fromStates([],()=>List$2()),this.orientation$=new State$2(Orientation$1.Vertical),this.language$=new State$2(void 0)}tweakFlattenNodeOrder(to,no){const io=this.nodesIndex$.getSnapshot(),so=io.findIndex(lo=>lo===to),ao=so+no;if(so>=0&&ao>=0&&ao(this.addListener(to,no),no.next(this.get(to)),()=>{this.removeListener(to,no)}))}notify(to){var no;(no=this.listeners.get(to))==null||no.forEach(io=>{io.next(this.get(to))})}next(to){const no=this.getSnapshot();super.next(to);const io=new Set;no.forEach((so,ao)=>{to.has(ao)||io.add(ao)}),to.forEach((so,ao)=>{no.has(ao)&&Object.is(no.get(ao),so)||io.add(ao)}),io.forEach(so=>{this.notify(so)})}addListener(to,no){let io=this.listeners.get(to);io||(io=new Set,this.listeners.set(to,io)),io.add(no)}removeListener(to,no){const io=this.listeners.get(to);io&&(io.delete(no),io.size===0&&this.listeners.delete(to))}}class ObservableMap extends ObservableCollection{constructor(){super(Map$5())}set(to,no){return this.updateState(io=>io.set(to,no)),this}update(to,no){return this.updateState(io=>io.update(to,no)),this}delete(to){return this.updateState(no=>no.delete(to)),this}deleteAll(to){return this.updateState(no=>no.deleteAll(to)),this}clear(){return this.next(Map$5()),this}merge(to){return this.updateState(no=>no.merge(to)),this}}class ObservableOrderedMap extends ObservableCollection{constructor(){super(OrderedMap())}set(to,no){return this.updateState(io=>io.set(to,no)),this}update(to,no){return this.updateState(io=>io.update(to,no)),this}delete(to){return this.updateState(no=>no.delete(to)),this}deleteAll(to){return this.updateState(no=>no.deleteAll(to)),this}clear(){return this.next(OrderedMap()),this}merge(to){return this.updateState(no=>no.merge(to)),this}insertBefore(to,no,io){return this.updateState(so=>OrderedMap().withMutations(ao=>{for(const[lo,uo]of so.entries())to===lo&&ao.set(no,io),ao.set(lo,uo)})),this.notify(no),this}insertAfter(to,no,io){return this.updateState(so=>OrderedMap().withMutations(ao=>{for(const[lo,uo]of so.entries())ao.set(lo,uo),to===lo&&ao.set(no,io)})),this.notify(no),this}sortByValue(to){return this.updateState(no=>no.sort(to)),this}}var _a$8;const XMe=class XMe extends FlowViewModelShared{constructor(){super(),this.isWorkspaceReady$=new State$2(!1),this.currentNodeId$=new State$2(void 0),this.graphConfig=GraphConfigBuilder.default().build(),this.graphReducer=graphReducer(),this.isReadonly$=new State$2(!1),this.name$=new State$2(""),this.flowType$=new State$2(FlowType.Default),this.owner$=new State$2(void 0),this.isArchived$=new State$2(!1),this.selectedStepId$=new State$2(void 0),this.tools$=new ObservableOrderedMap,this.toolsStatus$=new ObservableOrderedMap,this.batchInputs$=new State$2([]),this.bulkRunDataReference$=new State$2(void 0),this.chatMessages$=new State$2([]),this.nodeVariants$=new ObservableOrderedMap,this.tuningNodeNames$=new State$2([]),this.inputSpec$=new ObservableOrderedMap,this.selectedBulkIndex$=new State$2(void 0),this.nodeRuns$=new ObservableOrderedMap,this.flowRuns$=new State$2([]),this.rootFlowRunMap$=new ObservableMap,this.flowOutputs$=new ObservableOrderedMap,this.connections$=new ObservableOrderedMap,this.promptToolSetting$=new State$2(void 0),this.userInfo$=new State$2(void 0),this.bulkRunDescription$=new State$2(""),this.bulkRunTags$=new State$2([]),this.nodeParameterTypes$=new ObservableMap,this.theme$=new State$2(void 0),this.selectedRuntimeName$=new State$2(void 0),this.connectionList$=new State$2([]),this.connectionSpecList$=new State$2([]),this.connectionDeployments$=new ObservableOrderedMap,this.connectionDeploymentsLoading$=new ObservableOrderedMap,this.runStatus$=new State$2(void 0),this.flowRunType$=new State$2(void 0),this.packageToolsDictionary$=new ObservableMap,this.codeToolsDictionary$=new ObservableMap,this.isToolsJsonReady$=new State$2(!1),this.flowGraphLayout$=new State$2(void 0),this.flowUIHint$=new State$2(void 0),this.isInitialized$=new State$2(!1),this.flowFeatures$=new State$2(new Set),this.loaded=!1,this._allLlmParameterKeys=[],new Set(dataReadonlyMode).add(GraphFeatures.AutoFit);const no=new Set;no.add(FlowFeatures.OpenCodeFileInNode),this.flowFeatures$.next(no),this.canvasState$=new State$2(createGraphState({settings:{graphConfig:this.graphConfig,canvasBoundaryPadding:{top:800,bottom:800}},data:GraphModel.empty()})),this.allNodeNames$=Computed$1.fromStates([this.nodeVariants$],([io])=>List$2(Array.from(io.keys()).filter(so=>!!so&&so!==FLOW_INPUT_NODE_NAME&&so!==FLOW_OUTPUT_NODE_NAME))),merge$6(this.flowOutputs$,this.batchInputs$,this.inputSpec$,this.selectedRuntimeName$,this.bulkRunTags$,this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$).pipe(filter$3(()=>this.loaded),filter$3(()=>this.isInitialized$.getSnapshot()),debounceTime(100)).subscribe(()=>{this.notifyFlowChange()}),merge$6(this.flowGraphLayout$,this.orientation$).pipe(debounceTime(100)).subscribe(()=>{this.notifyLayoutChange()}),merge$6(this.flowUIHint$).pipe(debounceTime(100)).subscribe(()=>{this.notifyUIHintChange()}),this.invalidStepInputs$=Computed$1.fromStates([this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$,this.connectionList$,this.inputSpec$,this.nodeParameterTypes$],([io,so,ao,lo,uo,ho])=>this.validateNodeInputs(io))}attemptToRenameStep(to,no){if(!checkNodeNameValid(no))return`step name ${no} is not valid`;if(this.nodeVariants$.get(no))return`step with name ${no} already exists`;if(!this.nodeVariants$.get(to))return`step ${to} not found`;const so=(lo,uo,ho)=>{const go={...lo};return Object.keys(go).forEach(mo=>{const yo=go[mo],So=getRefValueFromRaw(yo),[_o]=(So==null?void 0:So.split("."))??[];_o===uo&&(go[mo]=yo.replace(`${uo}`,`${ho}`))}),go},ao=(lo,uo,ho)=>{if(!lo)return;const go={};return Object.entries(lo).forEach(([mo,yo])=>{var So,_o,ko;go[mo]={...yo,node:{...yo.node,name:((So=yo.node)==null?void 0:So.name)===uo?ho:(_o=yo.node)==null?void 0:_o.name,inputs:so(((ko=yo.node)==null?void 0:ko.inputs)??{},uo,ho)}}}),go};reactDomExports.unstable_batchedUpdates(()=>{this.nodeVariants$.updateState(lo=>lo.mapEntries(([uo,ho])=>{const go={...ho,variants:ao(ho.variants,to,no)};return[uo===to?no:uo,go]})),this.flowGraphLayout$.updateState(lo=>({...lo,nodeLayouts:renameKeyInObject((lo==null?void 0:lo.nodeLayouts)??{},to,no)})),this.flowUIHint$.updateState(lo=>({...lo,nodes:renameKeyInObject((lo==null?void 0:lo.nodes)??{},to,no)})),this.currentNodeId$.getSnapshot()===to&&this.currentNodeId$.next(no),this.selectedStepId$.getSnapshot()===to&&this.selectedStepId$.next(no),this.nodeRuns$.getSnapshot().forEach((lo,uo)=>{if(lo.node===to){const[,ho,go,mo]=uo.split("#"),yo=parseInt(ho,10);this.nodeRuns$.set(this.getNodeRunKey(no,isNaN(yo)?0:yo,go,mo),{...lo,node:no}),this.nodeRuns$.delete(uo)}})})}acceptFlowEdit(to,no){to!==this.viewType&&this.loadFlow(no)}loadFlow(to){this.loaded=!1;try{reactDomExports.unstable_batchedUpdates(()=>{this.baseEntity=to,this.owner$.next(to.owner),this.isArchived$.next(to.isArchived??!1),this.loadFlowDto(to),to.flowRunResult&&this.loadStatus(to.flowRunResult)}),this.loaded=!0}catch(no){throw this.loaded=!0,no}}loadCodeTool(to,no){this.codeToolsDictionary$.set(to,no)}loadPackageTool(to,no){this.packageToolsDictionary$.set(to,no)}toBatchRequestData(){return{flow:{flowGraph:this.toFlowGraph(),nodeVariants:this.toNodeVariants(),flowGraphLayout:this.flowGraphLayout$.getSnapshot()},flowSubmitRunSettings:{...this.toFlowRunSettings()},flowRunDisplayName:this.name$.getSnapshot()}}toAddOnEvaluationRequestData(){return{flowSubmitRunSettings:{...this.toFlowRunSettings()}}}loadStatus(to){var ao;this.clearStatus();let no=0;const io=[],so=new Map;if((ao=to.flow_runs)!=null&&ao.length){for(const lo of to.flow_runs)lo.index===null?so.set(lo.run_id,lo):(no=lo.index,io.push(lo));io.sort((lo,uo)=>{var ho;return lo.root_run_id===uo.root_run_id?(lo.index??0)-(uo.index??0):lo.variant_id&&uo.variant_id?lo.variant_id.localeCompare(uo.variant_id):((ho=lo.root_run_id)==null?void 0:ho.localeCompare((uo==null?void 0:uo.root_run_id)??""))??0}),this.flowRuns$.next(io),this.rootFlowRunMap$.next(Map$5(so))}to.flowRunType&&this.flowRunType$.next(to.flowRunType),to.runStatus&&this.runStatus$.next(to.runStatus),this.loadNodesStatus(to.node_runs||[]),this.selectedBulkIndex$.next(no)}loadNodesStatus(to){const no=this.tuningNodeNames$.getSnapshot()[0];to.forEach(io=>{const so=io.node===no,ao=this.getDefaultVariantId(io.node),lo=io.variant_id||ao,uo=so?lo:ao,ho=this.getNodeRunKey(io.node,io.index??0,uo,lo);this.nodeRuns$.set(ho,io)})}loadSingleNodeRunStatus(to,no,io){this.resetNodesStatus(to,no),io.forEach(so=>{const ao=this.getDefaultVariantId(so.node),lo=so.variant_id||ao,uo=so.variant_id||ao,ho=this.getNodeRunKey(so.node,so.index??0,uo,lo);this.nodeRuns$.set(ho,so)})}resetNodesStatus(to,no){this.nodeRuns$.updateState(io=>io.filter(so=>{if(so.node!==to)return!0;const ao=this.getDefaultVariantId(so.node);return(so.variant_id||ao)!==no}))}clearStatus(){this.selectedBulkIndex$.next(void 0),this.nodeRuns$.clear(),this.flowRuns$.next([]),this.rootFlowRunMap$.clear()}getDefaultVariantId(to){var no;return((no=this.nodeVariants$.get(to))==null?void 0:no.defaultVariantId)||BASELINE_VARIANT_ID}setStepInput(to,no,io,so){const ao=this.getNode(to,so);if(!(ao!=null&&ao.name))return;const lo={...ao,inputs:{...ao.inputs,[no]:io}};this.setNode(to,so,lo)}removeStepInputs(to,no,io){const so=this.getNode(to,io);if(!(so!=null&&so.name))return;const ao={...so.inputs};no.forEach(uo=>{delete ao[uo]});const lo={...so,inputs:ao};this.setNode(to,io,lo)}renameStepInput(to,no,io){const so=this.getNode(to,BASELINE_VARIANT_ID);if(!(so!=null&&so.name))return;const ao={...so,inputs:renameKeyInObject(so.inputs??{},no,io)};this.setNode(to,BASELINE_VARIANT_ID,ao)}setStepActivate(to,no,io){const so=this.getNode(to,no);if(!(so!=null&&so.name))return;const ao={...so,activate:io};this.setNode(to,no,ao)}setStepKeyValue(to,no,io,so){const ao=this.getNode(to,so);if(!(ao!=null&&ao.name))return;const lo={...ao,[no]:io};this.setNode(to,so,lo)}setStepSourcePath(to,no,io){const so=this.getNode(to,io);if(!(so!=null&&so.name))return;const ao={...so,source:{...so.source,path:no}};this.setNode(to,io,ao)}setBatchInput(to,no,io){const so=this.batchInputs$.getSnapshot();if(!so[to])return;const ao=[...so];ao[to]={...ao[to],[no]:io},this.batchInputs$.setState(ao)}setBulkRunTag(to,no,io){const so=[...this.bulkRunTags$.getSnapshot()];if(!so[to])return;const ao={};ao[no]=io,so[to]=ao,this.bulkRunTags$.next(so)}deleteBulkRunTag(to){const no=[...this.bulkRunTags$.getSnapshot()];no.splice(to,1),this.bulkRunTags$.next(no)}addBulkRunTagRow(){const to=this.bulkRunTags$.getSnapshot(),no={"":""};this.bulkRunTags$.next([...to,no])}getNodeRunKey(to,no,io=BASELINE_VARIANT_ID,so=BASELINE_VARIANT_ID){return`${to}#${no}#${io}#${so}`}dispatch(to){var ao;let no="";switch(to.type){case GraphCanvasEvent.Click:this.currentNodeId$.next(void 0);break;case GraphNodeEvent.Click:this.currentNodeId$.next(to.node.id,!0);break;case GraphNodeEvent.DragEnd:{no=to.node.name??"";break}}const io=this.canvasState$.getSnapshot(),so=this.graphReducer(io,to);if(this.canvasState$.next(so),no){const lo=so.data.present.nodes.find(go=>go.name===no),uo=this.flowGraphLayout$.getSnapshot(),ho={...uo,nodeLayouts:{...uo==null?void 0:uo.nodeLayouts,[no]:{...(ao=uo==null?void 0:uo.nodeLayouts)==null?void 0:ao[no],x:lo==null?void 0:lo.x,y:lo==null?void 0:lo.y}}};this.flowGraphLayout$.next(ho)}}setGraphConfig(to){this.graphConfig=to;const no=this.canvasState$.getSnapshot();this.canvasState$.next({...no,settings:{...no.settings,graphConfig:to}})}toFlowGraph(){const to=this.nodeVariants$.getSnapshot(),no=getDefaultNodeList(List$2.of(...to.keys()),to);return{inputs:this.inputSpec$.getSnapshot().toJSON(),outputs:this.flowOutputs$.getSnapshot().toJSON(),nodes:no,tools:void 0}}toFlowGraphSnapshot(to){const no=lodashExports.mapValues(this.inputSpec$.getSnapshot().toJSON(),ho=>{ho.default!==void 0&&(ho.default=convertValByType(ho.default,ho.type));const{name:go,id:mo,...yo}=ho;return yo}),io=lodashExports.mapValues(this.flowOutputs$.getSnapshot().toJSON(),ho=>{const{name:go,id:mo,...yo}=ho;return yo}),ao=getNodesThatMoreThanOneVariant(to).map(ho=>ho.nodeName),lo=getFlowSnapshotNodeList(List$2.of(...Object.keys(to)),to,ao),uo=getVariantNodes(to);return{inputs:no,outputs:io,nodes:lo,node_variants:uo}}toNodeVariants(){const to=this.nodeVariants$.getSnapshot().toJSON(),no={};return Object.keys(to).forEach(io=>{const so=to[io],ao={};Object.keys(so.variants??{}).forEach(lo=>{const uo=(so.variants??{})[lo];ao[lo]={...uo,node:uo.node?this.pruneNodeInputs(uo.node):void 0}}),no[io]={...so,variants:ao}}),no}toFlowRunSettings(){var to,no;return{tuningNodeNames:this.tuningNodeNames$.getSnapshot(),variants:void 0,runtimeName:(to=this.selectedRuntimeName$)==null?void 0:to.getSnapshot(),description:this.bulkRunDescription$.getSnapshot(),tags:Object.assign({},...this.bulkRunTags$.getSnapshot()),...this.bulkRunDataReference$.getSnapshot()!==void 0?{batchDataInput:{dataUri:(no=this.bulkRunDataReference$.getSnapshot())==null?void 0:no.id}}:{batch_inputs:this.batchInputs$.getSnapshot()}}}toJSON(){const to=this.toNodeVariants();return{...this.baseEntity,flow:{flowGraph:this.toFlowGraphSnapshot(to)},flowName:this.name$.getSnapshot(),flowRunSettings:this.toFlowRunSettings()}}toFlowGraphLayout(){const to=this.flowGraphLayout$.getSnapshot()??{},no=Array.from(this.nodeVariants$.getSnapshot().keys()),io={...to.nodeLayouts};return Object.keys(io).forEach(so=>{io[so]={...io[so],index:no.indexOf(so)}}),{...to,nodeLayouts:io,orientation:this.orientation$.getSnapshot()}}toFlowUIHint(){return this.flowUIHint$.getSnapshot()??{nodes:{}}}updateToolCode(to,no){const io=this.codeToolsDictionary$.get(to);io&&this.codeToolsDictionary$.set(to,{...io,code:no})}updateToolStatus(to,no){const io=this.toolsStatus$.get(to);this.toolsStatus$.set(to,{...io,...no})}updateFlowInput(to,no){const io=this.batchInputs$.getSnapshot(),so=io==null?void 0:io[0];let ao=no;try{const lo=JSON.parse(no);ao=JSON.stringify(lo)}catch{ao=no}this.batchInputs$.next([{...so,[to]:ao},...io.slice(1)])}addNewNode(to,no){if(!to.name)return;const io=to,so={defaultVariantId:BASELINE_VARIANT_ID,variants:{[BASELINE_VARIANT_ID]:{node:io}}};no?this.nodeVariants$.insertBefore(no,to.name,so):this.nodeVariants$.set(to.name,so)}patchEditData(to){var no,io,so,ao;switch(to.type){case"chatInput":{if(this.flowType$.getSnapshot()!==FlowType.Chat)return;const lo=this.batchInputs$.getSnapshot(),uo=((no=this.getChatInputDefinition())==null?void 0:no.name)??DEFAULT_CHAT_INPUT_NAME;this.batchInputs$.next([{...lo[0],[uo]:to.value}]);break}case"chatHistory":{if(this.flowType$.getSnapshot()!==FlowType.Chat)return;const lo=this.batchInputs$.getSnapshot(),uo=((io=this.getChatHistoryDefinition())==null?void 0:io.name)??DEFAULT_CHAT_HISTORY_NAME,ho=((so=this.getChatInputDefinition())==null?void 0:so.name)??DEFAULT_CHAT_INPUT_NAME,go=((ao=this.getChatOutputDefinition())==null?void 0:ao.name)??DEFAULT_CHAT_OUTPUT_NAME;this.batchInputs$.next([{...lo[0],[uo]:[...lo[0][uo],{inputs:{[ho]:to.value.chatInput},outputs:{[go]:to.value.chatOutput}}].slice(-10)}]);break}case"flowGraph":{try{this.loaded=!1,reactDomExports.unstable_batchedUpdates(()=>{this.loadFlorGraph(to.value)})}finally{this.loaded=!0}break}default:{const lo=to;throw new Error(`Didn't expect to get here: ${lo}`)}}}getChatInputDefinition(){return this.inputSpec$.getSnapshot().find(isChatInput)}getChatHistoryDefinition(){const to=this.flowType$.getSnapshot();return this.inputSpec$.getSnapshot().find(no=>isChatHistory(to,no))}getChatOutputDefinition(){return this.flowOutputs$.getSnapshot().find(isChatOutput)}clearChatMessages(){this.chatMessages$.next([]),this.syncChatMessagesToInputsValues([])}getProviderByConnection(to){var lo;if(!to)return;const no=this.connectionList$.getSnapshot(),io=this.promptToolSetting$.getSnapshot(),so=no.find(uo=>uo.connectionName===to);if(!so)return;const ao=(lo=io==null?void 0:io.providers)==null?void 0:lo.find(uo=>{var ho;return so.connectionType&&((ho=uo.connection_type)==null?void 0:ho.includes(so.connectionType))});if(ao)return ao.provider}addFlowInput(to,no){this.inputSpec$.set(to,{...no,name:to,id:(no==null?void 0:no.id)??getRandomInputDefinitionId()})}addFlowOutput(to,no){this.flowOutputs$.set(to,{...no,name:to,id:(no==null?void 0:no.id)??getRandomOutputDefinitionId()})}loadFlorGraph(to){var ao;const no=(to==null?void 0:to.nodes)||[],io=(to==null?void 0:to.outputs)||{},so=(to==null?void 0:to.inputs)||{};this.nodeVariants$.clear(),no.forEach(lo=>{lo.name&&(this.nodeVariants$.get(lo.name)||this.nodeVariants$.set(lo.name,{defaultVariantId:BASELINE_VARIANT_ID,variants:{[BASELINE_VARIANT_ID]:{node:lo}}}))}),(ao=Object.entries((to==null?void 0:to.node_variants)??{}))==null||ao.forEach(([lo,uo])=>{const ho={...uo.variants};Object.entries(ho).forEach(([go,mo])=>{mo.node&&(mo.node.name=lo)}),this.nodeVariants$.set(lo,{defaultVariantId:uo.default_variant_id??BASELINE_VARIANT_ID,variants:ho})}),this.flowOutputs$.clear(),Object.keys(io).forEach(lo=>{const uo=io[lo];uo&&this.addFlowOutput(lo,uo)}),this.inputSpec$.clear(),Object.keys(so).forEach(lo=>{const uo=so[lo];uo&&this.addFlowInput(lo,uo)})}loadFlowDto(to){var no,io,so,ao,lo,uo,ho,go,mo,yo,So,_o,ko,Co;if(this.name$.next(to.flowName??""),this.flowType$.next(to.flowType??FlowType.Default),this.loadFlorGraph((no=to.flow)==null?void 0:no.flowGraph),(io=to.flow)!=null&&io.nodeVariants&&((ao=Object.entries(((so=to.flow)==null?void 0:so.nodeVariants)??{}))==null||ao.forEach(([$o,Ro])=>{this.nodeVariants$.set($o,{...Ro,defaultVariantId:Ro.defaultVariantId??BASELINE_VARIANT_ID})})),(uo=(lo=to.flow)==null?void 0:lo.flowGraphLayout)!=null&&uo.nodeLayouts){const $o=(ho=to.flow)==null?void 0:ho.flowGraphLayout;this.flowGraphLayout$.next($o),$o.orientation&&this.orientation$.next($o.orientation)}if(this.selectedRuntimeName$.setState(((go=to.flowRunSettings)==null?void 0:go.runtimeName)??""),this.batchInputs$.setState(((mo=to.flowRunSettings)==null?void 0:mo.batch_inputs)??[{}]),this.tuningNodeNames$.setState(((yo=to.flowRunSettings)==null?void 0:yo.tuningNodeNames)??[]),this.bulkRunDescription$.next(to.description??""),this.bulkRunTags$.next([]),to.tags){const $o=[];Object.keys(to.tags).forEach(Ro=>{var Oo;$o.push({[Ro]:((Oo=to==null?void 0:to.tags)==null?void 0:Oo[Ro])??""})}),this.bulkRunTags$.next($o)}this.initNodeParameterTypes((So=to.flow)==null?void 0:So.flowGraph),to.flowType===FlowType.Chat&&(this.initChatFlow(to),this.initChatMessages(((_o=to.flowRunSettings)==null?void 0:_o.batch_inputs)??[{}])),this.language$.next((Co=(ko=to.flow)==null?void 0:ko.flowGraph)==null?void 0:Co.language)}initNodeParameterTypes(to){if(!to)return;const no=this.nodeVariants$.getSnapshot().toJSON();let io=Map$5(new Map);Object.keys(no).forEach(so=>{const ao=no[so];Object.keys(ao.variants??{}).forEach(lo=>{var ho;const uo=(ao.variants??{})[lo];if(uo.node){const go={inputs:{},activate:{is:void 0}},mo=this.getToolOfNode(uo.node);if((uo.node.type??(mo==null?void 0:mo.type))===ToolType.python){const yo=Object.keys((mo==null?void 0:mo.inputs)??{});Object.keys(uo.node.inputs??{}).filter(ko=>!yo.includes(ko)).forEach(ko=>{var Co,$o;go.inputs[ko]=inferTypeByVal(($o=(Co=uo.node)==null?void 0:Co.inputs)==null?void 0:$o[ko])??ValueType.string})}go.activate.is=inferTypeByVal((ho=uo.node.activate)==null?void 0:ho.is)??ValueType.string,io=io.set(`${so}#${lo}`,go)}})}),this.nodeParameterTypes$.next(io)}initChatFlow(to){if(to.flowType!==FlowType.Chat)return;this.inputSpec$.getSnapshot().some(ao=>isChatHistory(to.flowType,ao))||(this.addFlowInput(DEFAULT_CHAT_HISTORY_NAME,{name:DEFAULT_CHAT_HISTORY_NAME,type:ValueType.list}),this.batchInputs$.updateState(ao=>[{...ao[0],[DEFAULT_CHAT_HISTORY_NAME]:[]},...ao.slice(1)])),this.inputSpec$.getSnapshot().some(ao=>isChatInput(ao))||this.addFlowInput(DEFAULT_CHAT_INPUT_NAME,{name:DEFAULT_CHAT_INPUT_NAME,type:ValueType.string,is_chat_input:!0}),this.flowOutputs$.getSnapshot().some(ao=>isChatOutput(ao))||this.addFlowOutput(DEFAULT_CHAT_OUTPUT_NAME,{name:DEFAULT_CHAT_OUTPUT_NAME,type:ValueType.string,is_chat_output:!0})}initChatMessages(to){var uo,ho,go;const no=((uo=this.getChatHistoryDefinition())==null?void 0:uo.name)??DEFAULT_CHAT_HISTORY_NAME,io=to[0][no];if(!Array.isArray(io))return;const so=((ho=this.getChatInputDefinition())==null?void 0:ho.name)??DEFAULT_CHAT_INPUT_NAME,ao=((go=this.getChatOutputDefinition())==null?void 0:go.name)??DEFAULT_CHAT_OUTPUT_NAME,lo=parseChatMessages(so,ao,io);this.chatMessages$.next(lo),this.syncChatMessagesToInputsValues(lo)}syncChatMessagesToInputsValues(to){var io,so,ao;if(this.batchInputs$.getSnapshot().length<=1){const lo=((io=this.getChatInputDefinition())==null?void 0:io.name)??DEFAULT_CHAT_INPUT_NAME,uo=((so=this.getChatOutputDefinition())==null?void 0:so.name)??DEFAULT_CHAT_OUTPUT_NAME,ho=((ao=this.getChatHistoryDefinition())==null?void 0:ao.name)??DEFAULT_CHAT_HISTORY_NAME,go=[];for(let mo=0;mo[{...mo[0],[ho]:go}])}}getNode(to,no){var io,so,ao;return(ao=(so=(io=this.nodeVariants$.get(to))==null?void 0:io.variants)==null?void 0:so[no])==null?void 0:ao.node}setNode(to,no,io){var ao;const so=this.nodeVariants$.get(to);this.nodeVariants$.set(to,{defaultVariantId:(so==null?void 0:so.defaultVariantId)??BASELINE_VARIANT_ID,variants:{...so==null?void 0:so.variants,[no]:{...(ao=so==null?void 0:so.variants)==null?void 0:ao[no],node:io}}})}getAllLlmParameterKeys(){var to;if(this._allLlmParameterKeys.length===0){const no=this.promptToolSetting$.getSnapshot();if(!no)return[];const io=(to=no.providers)==null?void 0:to.flatMap(ao=>{var lo;return(lo=ao.apis)==null?void 0:lo.map(uo=>uo.parameters)}),so=new Set(io==null?void 0:io.flatMap(ao=>Object.keys(ao??{})));this._allLlmParameterKeys=[...so.values()]}return this._allLlmParameterKeys}pruneNodeInputs(to){var yo,So,_o,ko;const no=to?this.getToolOfNode(to):void 0,io=this.promptToolSetting$.getSnapshot(),so=this.connectionList$.getSnapshot(),ao=this.connectionSpecList$.getSnapshot();if(!no||!io)return to;if((to.type??no.type)===ToolType.python&&no.enable_kwargs){const Co={};return Object.keys(to.inputs??{}).forEach($o=>{var Ro,Oo,No,Mo;if(((Ro=to.inputs)==null?void 0:Ro[$o])!==void 0){const Bo=(Oo=no.inputs)==null?void 0:Oo[$o];Co[$o]=convertValByType((No=to.inputs)==null?void 0:No[$o],(Mo=Bo==null?void 0:Bo.type)==null?void 0:Mo[0])}}),{...to,inputs:Co}}const lo=this.getProviderByConnection(to.connection??"");if((to.type??no.type)===ToolType.llm&&(!lo||!to.api))return to;const uo=(to.type??no.type)===ToolType.llm,ho=uo?(ko=(_o=(So=(yo=io==null?void 0:io.providers)==null?void 0:yo.find(Co=>Co.provider===lo))==null?void 0:So.apis)==null?void 0:_o.find(Co=>Co.api===to.api))==null?void 0:ko.parameters:void 0,go=new Set(filterNodeInputsKeys(no.inputs,to.inputs,so,ao).concat(uo?this.getAllLlmParameterKeys():[])),mo={};return Object.keys(to.inputs??{}).forEach(Co=>{var $o,Ro,Oo,No;if(go.has(Co)&&(($o=to.inputs)==null?void 0:$o[Co])!==void 0){const Mo=((Ro=no.inputs)==null?void 0:Ro[Co])??(ho==null?void 0:ho[Co]);mo[Co]=convertValByType((Oo=to.inputs)==null?void 0:Oo[Co],(No=Mo==null?void 0:Mo.type)==null?void 0:No[0])}}),{...to,inputs:mo}}getToolOfNode(to){var so,ao;const no=this.codeToolsDictionary$.get(((so=to.source)==null?void 0:so.path)??""),io=this.packageToolsDictionary$.get(((ao=to.source)==null?void 0:ao.tool)??"");return resolveTool(to,no,io,lo=>this.codeToolsDictionary$.get(lo))}validateNodeInputs(to){const no=new Map,io=this.getNodesInCycle(to),so=this.connectionList$.getSnapshot(),ao=this.connectionSpecList$.getSnapshot(),lo=[];return this.inputSpec$.getSnapshot().forEach((ho,go)=>{const mo=ho.default,yo=ho.type;if(mo!==void 0&&mo!==""&&!isTypeValid(mo,yo)){const So={section:"inputs",parameterName:go,type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"};lo.push(So)}}),lo.length>0&&no.set(`${FLOW_INPUT_NODE_NAME}#`,lo),Array.from(to.values()).forEach(ho=>{const{variants:go={}}=ho;Object.keys(go).forEach(mo=>{var Ro,Oo,No;const yo=go[mo],{node:So}=yo,_o=So?this.getToolOfNode(So):void 0,ko=filterNodeInputsKeys(_o==null?void 0:_o.inputs,So==null?void 0:So.inputs,so,ao);if(!So||!So.name)return;if(!_o){const Mo=So;no.set(`${So.name}#${mo}`,[{type:ValidationErrorType.MissingTool,message:`Can't find tool ${((Ro=Mo==null?void 0:Mo.source)==null?void 0:Ro.tool)??((Oo=Mo==null?void 0:Mo.source)==null?void 0:Oo.path)}`}]);return}const Co=[],$o=this.validateNodeConfig(So,_o);if($o&&Co.push($o),ko.forEach(Mo=>{const Bo=this.validateNodeInputRequired(_o,So,Mo);Bo&&Co.push(Bo)}),So.inputs&&Co.push(...Object.keys(So.inputs).map(Mo=>{if(!ko.includes(Mo)&&!_o.enable_kwargs)return;const{isReference:Bo,error:Fo}=this.validateNodeInputReference(So,"inputs",Mo,to,io);if(Fo)return Fo;if(!Bo)return this.validateNodeInputType(_o,So,mo,Mo)}).filter(Boolean)),So.activate){const{error:Mo}=this.validateNodeInputReference(So,"activate","when",to,io);Mo&&Co.push(Mo);const Bo=So.activate.is,Fo=(No=this.nodeParameterTypes$.get(`${So.name}#${mo}`))==null?void 0:No.activate.is;if(!isTypeValid(Bo,Fo)){const Lo={section:"activate",parameterName:"is",type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"};Co.push(Lo)}}no.set(`${So.name}#${mo}`,Co)})}),no}getNodesInCycle(to){const no=getDefaultNodeList(List$2.of(...to.keys()),to),io=new Map;no.forEach(go=>{var yo;const mo=(So,_o,ko)=>{const Co=getRefValueFromRaw(ko),[$o]=(Co==null?void 0:Co.split("."))??[];!$o||isFlowInput($o)||io.set(`${go.name}.${So}.${_o}`,$o)};Object.keys((go==null?void 0:go.inputs)??{}).forEach(So=>{var ko;const _o=(ko=go.inputs)==null?void 0:ko[So];mo("inputs",So,_o)}),mo("activate","when",(yo=go.activate)==null?void 0:yo.when)});const so=new Map,ao=new Map,lo=new Map,uo=new Map;return no.forEach(go=>{const mo=go.name;mo&&(so.set(mo,0),ao.set(mo,0),lo.set(mo,[]),uo.set(mo,[]))}),no.forEach(go=>{const mo=go.name;if(!mo)return;const yo=(So,_o)=>{const ko=io.get(`${mo}.${So}.${_o}`);ko&&(so.set(mo,(so.get(mo)??0)+1),ao.set(ko,(ao.get(ko)??0)+1),lo.set(ko,[...lo.get(ko)??[],mo]),uo.set(mo,[...uo.get(mo)??[],ko]))};Object.keys((go==null?void 0:go.inputs)??{}).forEach(So=>{yo("inputs",So)}),yo("activate","when")}),getCycle(so,lo,ao,uo)}validateNodeConfig(to,no){var so,ao,lo,uo,ho,go,mo;const io=this.promptToolSetting$.getSnapshot();if((to.type??(no==null?void 0:no.type))===ToolType.llm){if(!to.connection)return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is required"};if(!this.connectionList$.getSnapshot().some(Co=>Co.connectionName===to.connection))return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is not valid"};if(!to.api)return{parameterName:"api",type:ValidationErrorType.NodeConfigInvalid,message:"api is required"};const yo=this.getProviderByConnection(to.connection),So=(uo=(lo=(ao=(so=io==null?void 0:io.providers)==null?void 0:so.find(Co=>Co.provider===yo))==null?void 0:ao.apis)==null?void 0:lo.find(Co=>Co.api===to.api))==null?void 0:uo.parameters;if((So==null?void 0:So.model)&&!((ho=to.inputs)!=null&&ho.model))return{parameterName:"model",type:ValidationErrorType.NodeConfigInvalid,message:"model is required"};if((So==null?void 0:So.deployment_name)&&!((go=to.inputs)!=null&&go.deployment_name))return{parameterName:"deployment_name",type:ValidationErrorType.NodeConfigInvalid,message:"deployment_name is required"}}if(no&&((mo=no==null?void 0:no.connection_type)!=null&&mo.length)&&!to.connection)return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is required"}}validateNodeInputRequired(to,no,io){var ao,lo,uo;if(((lo=(ao=to.inputs)==null?void 0:ao[io])==null?void 0:lo.default)!==void 0)return;const so=(uo=no.inputs)==null?void 0:uo[io];if(so===void 0||so==="")return{section:"inputs",parameterName:io,type:ValidationErrorType.InputEmpty,message:"Input cannot be empty"}}validateNodeInputReference(to,no,io,so,ao){var yo;const lo=(yo=to==null?void 0:to[no])==null?void 0:yo[io],uo=getRefValueFromRaw(lo),[ho,go]=(uo==null?void 0:uo.split("."))??[];return ho?isFlowInput(ho)?this.inputSpec$.get(go)?{isReference:!0,error:void 0}:{isReference:!0,error:{section:no,parameterName:io,type:ValidationErrorType.InputDependencyNotFound,message:`${uo} is not a valid flow input`}}:ho===to.name?{isReference:!0,error:{section:no,parameterName:io,type:ValidationErrorType.InputSelfReference,message:"Input cannot reference itself"}}:so.get(ho)?to.name&&ao.has(to.name)&&ao.has(ho)?{isReference:!0,error:{section:no,parameterName:io,type:ValidationErrorType.CircularDependency,message:"Input cannot reference a node in a cycle"}}:{isReference:!0,error:void 0}:{isReference:!0,error:{section:no,parameterName:io,type:ValidationErrorType.InputDependencyNotFound,message:`${ho} is not a valid node name`}}:{isReference:!1,error:void 0}}validateNodeInputType(to,no,io,so){var go,mo,yo,So,_o;const ao=(go=no.inputs)==null?void 0:go[so];if(!ao)return;const lo=(mo=to==null?void 0:to.inputs)==null?void 0:mo[so],uo=((yo=lo==null?void 0:lo.type)==null?void 0:yo[0])??((_o=(So=this.nodeParameterTypes$.get(`${no.name}#${io}`))==null?void 0:So.inputs)==null?void 0:_o[so]),ho=(no.type??to.type)===ToolType.custom_llm&&so==="tool_choice";if(!(!ao||!to||!uo||ho)&&!isTypeValid(ao,uo))return{section:"inputs",parameterName:so,type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"}}};_a$8=SINGLETON,XMe[_a$8]=!0;let BaseFlowViewModel=XMe;class DefaultFlowViewModel extends BaseFlowViewModel{constructor(){super(...arguments),this.viewType="default"}fetchConnectionList(){}fetchPromptToolSetting(){}openRunListView(){}deployFlow(){}setSelectedStepId(){}notifyFlowChange(){}notifyLayoutChange(){}notifyUIHintChange(){}}createInjectionToken("FlowViewModel",new DefaultFlowViewModel);function useInjected(...eo){const to=reactExports.useContext(ServicesContext);return reactExports.useMemo(()=>eo.map(no=>{try{return to.resolve(no)}catch(io){throw[no,io]}}),[to].concat(eo))}var shim$1={exports:{}},useSyncExternalStoreShim_production_min={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -276,10 +276,10 @@ PERFORMANCE OF THIS SOFTWARE. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var b$3=typeof Symbol=="function"&&Symbol.for,c$7=b$3?Symbol.for("react.element"):60103,d$5=b$3?Symbol.for("react.portal"):60106,e$2=b$3?Symbol.for("react.fragment"):60107,f$6=b$3?Symbol.for("react.strict_mode"):60108,g$7=b$3?Symbol.for("react.profiler"):60114,h$5=b$3?Symbol.for("react.provider"):60109,k$4=b$3?Symbol.for("react.context"):60110,l$5=b$3?Symbol.for("react.async_mode"):60111,m$6=b$3?Symbol.for("react.concurrent_mode"):60111,n$3=b$3?Symbol.for("react.forward_ref"):60112,p$6=b$3?Symbol.for("react.suspense"):60113,q$1=b$3?Symbol.for("react.suspense_list"):60120,r$3=b$3?Symbol.for("react.memo"):60115,t$5=b$3?Symbol.for("react.lazy"):60116,v$5=b$3?Symbol.for("react.block"):60121,w$5=b$3?Symbol.for("react.fundamental"):60117,x$9=b$3?Symbol.for("react.responder"):60118,y$8=b$3?Symbol.for("react.scope"):60119;function z$2(eo){if(typeof eo=="object"&&eo!==null){var to=eo.$$typeof;switch(to){case c$7:switch(eo=eo.type,eo){case l$5:case m$6:case e$2:case g$7:case f$6:case p$6:return eo;default:switch(eo=eo&&eo.$$typeof,eo){case k$4:case n$3:case t$5:case r$3:case h$5:return eo;default:return to}}case d$5:return to}}}function A$4(eo){return z$2(eo)===m$6}var AsyncMode=l$5,ConcurrentMode=m$6,ContextConsumer=k$4,ContextProvider=h$5,Element$1$1=c$7,ForwardRef=n$3,Fragment=e$2,Lazy=t$5,Memo=r$3,Portal=d$5,Profiler=g$7,StrictMode=f$6,Suspense=p$6,isAsyncMode=function(eo){return A$4(eo)||z$2(eo)===l$5},isConcurrentMode=A$4,isContextConsumer=function(eo){return z$2(eo)===k$4},isContextProvider=function(eo){return z$2(eo)===h$5},isElement=function(eo){return typeof eo=="object"&&eo!==null&&eo.$$typeof===c$7},isForwardRef=function(eo){return z$2(eo)===n$3},isFragment=function(eo){return z$2(eo)===e$2},isLazy=function(eo){return z$2(eo)===t$5},isMemo=function(eo){return z$2(eo)===r$3},isPortal=function(eo){return z$2(eo)===d$5},isProfiler=function(eo){return z$2(eo)===g$7},isStrictMode=function(eo){return z$2(eo)===f$6},isSuspense=function(eo){return z$2(eo)===p$6},isValidElementType=function(eo){return typeof eo=="string"||typeof eo=="function"||eo===e$2||eo===m$6||eo===g$7||eo===f$6||eo===p$6||eo===q$1||typeof eo=="object"&&eo!==null&&(eo.$$typeof===t$5||eo.$$typeof===r$3||eo.$$typeof===h$5||eo.$$typeof===k$4||eo.$$typeof===n$3||eo.$$typeof===w$5||eo.$$typeof===x$9||eo.$$typeof===y$8||eo.$$typeof===v$5)},typeOf=z$2,reactIs_production_min={AsyncMode,ConcurrentMode,ContextConsumer,ContextProvider,Element:Element$1$1,ForwardRef,Fragment,Lazy,Memo,Portal,Profiler,StrictMode,Suspense,isAsyncMode,isConcurrentMode,isContextConsumer,isContextProvider,isElement,isForwardRef,isFragment,isLazy,isMemo,isPortal,isProfiler,isStrictMode,isSuspense,isValidElementType,typeOf};createCommonjsModule$1(function(eo,to){});var reactIs=createCommonjsModule$1(function(eo){eo.exports=reactIs_production_min});function toArray$1(eo){var to=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},no=[];return React.Children.forEach(eo,function(io){io==null&&!to.keepEmpty||(Array.isArray(io)?no=no.concat(toArray$1(io)):reactIs.isFragment(io)&&io.props?no=no.concat(toArray$1(io.props.children,to)):no.push(io))}),no}function _defineProperty$3$1(eo,to,no){return to in eo?Object.defineProperty(eo,to,{value:no,enumerable:!0,configurable:!0,writable:!0}):eo[to]=no,eo}function ownKeys$2(eo,to){var no=Object.keys(eo);if(Object.getOwnPropertySymbols){var io=Object.getOwnPropertySymbols(eo);to&&(io=io.filter(function(so){return Object.getOwnPropertyDescriptor(eo,so).enumerable})),no.push.apply(no,io)}return no}function _objectSpread2$2(eo){for(var to=1;to0},eo.prototype.connect_=function(){!isBrowser$1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},eo.prototype.disconnect_=function(){!isBrowser$1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},eo.prototype.onTransitionEnd_=function(to){var no=to.propertyName,io=no===void 0?"":no,so=transitionKeys.some(function(ao){return!!~io.indexOf(ao)});so&&this.refresh()},eo.getInstance=function(){return this.instance_||(this.instance_=new eo),this.instance_},eo.instance_=null,eo}(),defineConfigurable=function(eo,to){for(var no=0,io=Object.keys(to);no"u"||!(Element instanceof Object))){if(!(to instanceof getWindowOf(to).Element))throw new TypeError('parameter 1 is not of type "Element".');var no=this.observations_;no.has(to)||(no.set(to,new ResizeObservation(to)),this.controller_.addObserver(this),this.controller_.refresh())}},eo.prototype.unobserve=function(to){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(to instanceof getWindowOf(to).Element))throw new TypeError('parameter 1 is not of type "Element".');var no=this.observations_;no.has(to)&&(no.delete(to),no.size||this.controller_.removeObserver(this))}},eo.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},eo.prototype.gatherActive=function(){var to=this;this.clearActive(),this.observations_.forEach(function(no){no.isActive()&&to.activeObservations_.push(no)})},eo.prototype.broadcastActive=function(){if(this.hasActive()){var to=this.callbackCtx_,no=this.activeObservations_.map(function(io){return new ResizeObserverEntry(io.target,io.broadcastRect())});this.callback_.call(to,no,to),this.clearActive()}},eo.prototype.clearActive=function(){this.activeObservations_.splice(0)},eo.prototype.hasActive=function(){return this.activeObservations_.length>0},eo}(),observers$1=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$1=function(){function eo(to){if(!(this instanceof eo))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var no=ResizeObserverController.getInstance(),io=new ResizeObserverSPI(to,no,this);observers$1.set(this,io)}return eo}();["observe","unobserve","disconnect"].forEach(function(eo){ResizeObserver$1.prototype[eo]=function(){var to;return(to=observers$1.get(this))[eo].apply(to,arguments)}});var index$2=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$1}(),elementListeners=new Map;function onResize(eo){eo.forEach(function(to){var no,io=to.target;(no=elementListeners.get(io))===null||no===void 0||no.forEach(function(so){return so(io)})})}var resizeObserver=new index$2(onResize);function observe(eo,to){elementListeners.has(eo)||(elementListeners.set(eo,new Set),resizeObserver.observe(eo)),elementListeners.get(eo).add(to)}function unobserve(eo,to){elementListeners.has(eo)&&(elementListeners.get(eo).delete(to),elementListeners.get(eo).size||(resizeObserver.unobserve(eo),elementListeners.delete(eo)))}function _classCallCheck$2(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(eo,to){for(var no=0;no"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _typeof$3(eo){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$3(eo)}function _assertThisInitialized$1(eo){if(eo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eo}function _possibleConstructorReturn$1(eo,to){if(to&&(_typeof$3(to)==="object"||typeof to=="function"))return to;if(to!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(eo)}function _createSuper$1(eo){var to=_isNativeReflectConstruct$1();return function(){var io=_getPrototypeOf$1(eo),so;if(to){var ao=_getPrototypeOf$1(this).constructor;so=Reflect.construct(io,arguments,ao)}else so=io.apply(this,arguments);return _possibleConstructorReturn$1(this,so)}}var DomWrapper=function(eo){_inherits$1(no,eo);var to=_createSuper$1(no);function no(){return _classCallCheck$2(this,no),to.apply(this,arguments)}return _createClass$2(no,[{key:"render",value:function(){return this.props.children}}]),no}(reactExports.Component),CollectionContext=reactExports.createContext(null);function Collection$1(eo){var to=eo.children,no=eo.onBatchResize,io=reactExports.useRef(0),so=reactExports.useRef([]),ao=reactExports.useContext(CollectionContext),lo=reactExports.useCallback(function(uo,ho,go){io.current+=1;var mo=io.current;so.current.push({size:uo,element:ho,data:go}),Promise.resolve().then(function(){mo===io.current&&(no==null||no(so.current),so.current=[])}),ao==null||ao(uo,ho,go)},[no,ao]);return reactExports.createElement(CollectionContext.Provider,{value:lo},to)}function SingleObserver(eo){var to=eo.children,no=eo.disabled,io=reactExports.useRef(null),so=reactExports.useRef(null),ao=reactExports.useContext(CollectionContext),lo=typeof to=="function",uo=lo?to(io):to,ho=reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),go=!lo&&reactExports.isValidElement(uo)&&supportRef(uo),mo=go?uo.ref:null,yo=reactExports.useMemo(function(){return composeRef(mo,io)},[mo,io]),So=reactExports.useRef(eo);So.current=eo;var _o=reactExports.useCallback(function(ko){var Co=So.current,$o=Co.onResize,Ro=Co.data,Oo=ko.getBoundingClientRect(),No=Oo.width,Mo=Oo.height,Bo=ko.offsetWidth,Po=ko.offsetHeight,Lo=Math.floor(No),Go=Math.floor(Mo);if(ho.current.width!==Lo||ho.current.height!==Go||ho.current.offsetWidth!==Bo||ho.current.offsetHeight!==Po){var Do={width:Lo,height:Go,offsetWidth:Bo,offsetHeight:Po};ho.current=Do;var Uo=Bo===Math.round(No)?No:Bo,Ho=Po===Math.round(Mo)?Mo:Po,Yo=_objectSpread2$2(_objectSpread2$2({},Do),{},{offsetWidth:Uo,offsetHeight:Ho});ao==null||ao(Yo,ko,Ro),$o&&Promise.resolve().then(function(){$o(Yo,ko)})}},[]);return reactExports.useEffect(function(){var ko=findDOMNode(io.current)||findDOMNode(so.current);return ko&&!no&&observe(ko,_o),function(){return unobserve(ko,_o)}},[io.current,no]),reactExports.createElement(DomWrapper,{ref:so},go?reactExports.cloneElement(uo,{ref:yo}):uo)}var INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$2(eo){var to=eo.children,no=typeof to=="function"?[to]:toArray$1(to);return no.map(function(io,so){var ao=(io==null?void 0:io.key)||"".concat(INTERNAL_PREFIX_KEY,"-").concat(so);return reactExports.createElement(SingleObserver,_extends$1$1({},eo,{key:ao}),io)})}ResizeObserver$2.Collection=Collection$1;function ownKeys$1$1(eo,to){var no=Object.keys(eo);if(Object.getOwnPropertySymbols){var io=Object.getOwnPropertySymbols(eo);to&&(io=io.filter(function(so){return Object.getOwnPropertyDescriptor(eo,so).enumerable})),no.push.apply(no,io)}return no}function _objectSpread$1(eo){for(var to=1;to1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var no=rafUUID;function io(so){if(so===0)cleanup$1(no),eo();else{var ao=raf$1(function(){io(so-1)});rafIds.set(no,ao)}}return io(to),no}wrapperRaf.cancel=function(eo){var to=rafIds.get(eo);return cleanup$1(to),caf(to)};function _typeof$2(eo){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$2(eo)}function _defineProperty$1$1(eo,to,no){return to in eo?Object.defineProperty(eo,to,{value:no,enumerable:!0,configurable:!0,writable:!0}):eo[to]=no,eo}function _classCallCheck$1(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(eo,to){for(var no=0;no"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf(eo){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(no){return no.__proto__||Object.getPrototypeOf(no)},_getPrototypeOf(eo)}var MIN_SIZE=20;function getPageY(eo){return"touches"in eo?eo.touches[0].pageY:eo.pageY}var ScrollBar=function(eo){_inherits(no,eo);var to=_createSuper(no);function no(){var io;_classCallCheck$1(this,no);for(var so=arguments.length,ao=new Array(so),lo=0;loho},io}return _createClass$1(no,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(so){so.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var so=this.state,ao=so.dragging,lo=so.visible,uo=this.props.prefixCls,ho=this.getSpinHeight(),go=this.getTop(),mo=this.showScroll(),yo=mo&&lo;return reactExports.createElement("div",{ref:this.scrollbarRef,className:classnames$1("".concat(uo,"-scrollbar"),_defineProperty$1$1({},"".concat(uo,"-scrollbar-show"),mo)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:yo?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},reactExports.createElement("div",{ref:this.thumbRef,className:classnames$1("".concat(uo,"-scrollbar-thumb"),_defineProperty$1$1({},"".concat(uo,"-scrollbar-thumb-moving"),ao)),style:{width:"100%",height:ho,top:go,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),no}(reactExports.Component);function Item(eo){var to=eo.children,no=eo.setRef,io=reactExports.useCallback(function(so){no(so)},[]);return reactExports.cloneElement(to,{ref:io})}function useChildren(eo,to,no,io,so,ao){var lo=ao.getKey;return eo.slice(to,no+1).map(function(uo,ho){var go=to+ho,mo=so(uo,go,{}),yo=lo(uo);return reactExports.createElement(Item,{key:yo,setRef:function(_o){return io(uo,_o)}},mo)})}function _classCallCheck$3(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(eo,to){for(var no=0;noeo.length)&&(to=eo.length);for(var no=0,io=new Array(to);nops&&(Mo="bottom")}}qo!==null&&qo!==eo.current.scrollTop&&lo(qo)}ho.current=wrapperRaf(function(){No&&ao(),Co($o-1,Mo)})}};ko(3)}}}function findListDiffIndex(eo,to,no){var io=eo.length,so=to.length,ao,lo;if(io===0&&so===0)return null;io1&&arguments[1]!==void 0?arguments[1]:{},no=[];return React.Children.forEach(eo,function(io){io==null&&!to.keepEmpty||(Array.isArray(io)?no=no.concat(toArray$1(io)):reactIs.isFragment(io)&&io.props?no=no.concat(toArray$1(io.props.children,to)):no.push(io))}),no}function _defineProperty$3$1(eo,to,no){return to in eo?Object.defineProperty(eo,to,{value:no,enumerable:!0,configurable:!0,writable:!0}):eo[to]=no,eo}function ownKeys$2(eo,to){var no=Object.keys(eo);if(Object.getOwnPropertySymbols){var io=Object.getOwnPropertySymbols(eo);to&&(io=io.filter(function(so){return Object.getOwnPropertyDescriptor(eo,so).enumerable})),no.push.apply(no,io)}return no}function _objectSpread2$2(eo){for(var to=1;to0},eo.prototype.connect_=function(){!isBrowser$1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},eo.prototype.disconnect_=function(){!isBrowser$1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},eo.prototype.onTransitionEnd_=function(to){var no=to.propertyName,io=no===void 0?"":no,so=transitionKeys.some(function(ao){return!!~io.indexOf(ao)});so&&this.refresh()},eo.getInstance=function(){return this.instance_||(this.instance_=new eo),this.instance_},eo.instance_=null,eo}(),defineConfigurable=function(eo,to){for(var no=0,io=Object.keys(to);no"u"||!(Element instanceof Object))){if(!(to instanceof getWindowOf(to).Element))throw new TypeError('parameter 1 is not of type "Element".');var no=this.observations_;no.has(to)||(no.set(to,new ResizeObservation(to)),this.controller_.addObserver(this),this.controller_.refresh())}},eo.prototype.unobserve=function(to){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(to instanceof getWindowOf(to).Element))throw new TypeError('parameter 1 is not of type "Element".');var no=this.observations_;no.has(to)&&(no.delete(to),no.size||this.controller_.removeObserver(this))}},eo.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},eo.prototype.gatherActive=function(){var to=this;this.clearActive(),this.observations_.forEach(function(no){no.isActive()&&to.activeObservations_.push(no)})},eo.prototype.broadcastActive=function(){if(this.hasActive()){var to=this.callbackCtx_,no=this.activeObservations_.map(function(io){return new ResizeObserverEntry(io.target,io.broadcastRect())});this.callback_.call(to,no,to),this.clearActive()}},eo.prototype.clearActive=function(){this.activeObservations_.splice(0)},eo.prototype.hasActive=function(){return this.activeObservations_.length>0},eo}(),observers$1=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$1=function(){function eo(to){if(!(this instanceof eo))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var no=ResizeObserverController.getInstance(),io=new ResizeObserverSPI(to,no,this);observers$1.set(this,io)}return eo}();["observe","unobserve","disconnect"].forEach(function(eo){ResizeObserver$1.prototype[eo]=function(){var to;return(to=observers$1.get(this))[eo].apply(to,arguments)}});var index$2=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$1}(),elementListeners=new Map;function onResize(eo){eo.forEach(function(to){var no,io=to.target;(no=elementListeners.get(io))===null||no===void 0||no.forEach(function(so){return so(io)})})}var resizeObserver=new index$2(onResize);function observe(eo,to){elementListeners.has(eo)||(elementListeners.set(eo,new Set),resizeObserver.observe(eo)),elementListeners.get(eo).add(to)}function unobserve(eo,to){elementListeners.has(eo)&&(elementListeners.get(eo).delete(to),elementListeners.get(eo).size||(resizeObserver.unobserve(eo),elementListeners.delete(eo)))}function _classCallCheck$2(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(eo,to){for(var no=0;no"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _typeof$3(eo){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$3(eo)}function _assertThisInitialized$1(eo){if(eo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eo}function _possibleConstructorReturn$1(eo,to){if(to&&(_typeof$3(to)==="object"||typeof to=="function"))return to;if(to!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(eo)}function _createSuper$1(eo){var to=_isNativeReflectConstruct$1();return function(){var io=_getPrototypeOf$1(eo),so;if(to){var ao=_getPrototypeOf$1(this).constructor;so=Reflect.construct(io,arguments,ao)}else so=io.apply(this,arguments);return _possibleConstructorReturn$1(this,so)}}var DomWrapper=function(eo){_inherits$1(no,eo);var to=_createSuper$1(no);function no(){return _classCallCheck$2(this,no),to.apply(this,arguments)}return _createClass$2(no,[{key:"render",value:function(){return this.props.children}}]),no}(reactExports.Component),CollectionContext=reactExports.createContext(null);function Collection$1(eo){var to=eo.children,no=eo.onBatchResize,io=reactExports.useRef(0),so=reactExports.useRef([]),ao=reactExports.useContext(CollectionContext),lo=reactExports.useCallback(function(uo,ho,go){io.current+=1;var mo=io.current;so.current.push({size:uo,element:ho,data:go}),Promise.resolve().then(function(){mo===io.current&&(no==null||no(so.current),so.current=[])}),ao==null||ao(uo,ho,go)},[no,ao]);return reactExports.createElement(CollectionContext.Provider,{value:lo},to)}function SingleObserver(eo){var to=eo.children,no=eo.disabled,io=reactExports.useRef(null),so=reactExports.useRef(null),ao=reactExports.useContext(CollectionContext),lo=typeof to=="function",uo=lo?to(io):to,ho=reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),go=!lo&&reactExports.isValidElement(uo)&&supportRef(uo),mo=go?uo.ref:null,yo=reactExports.useMemo(function(){return composeRef(mo,io)},[mo,io]),So=reactExports.useRef(eo);So.current=eo;var _o=reactExports.useCallback(function(ko){var Co=So.current,$o=Co.onResize,Ro=Co.data,Oo=ko.getBoundingClientRect(),No=Oo.width,Mo=Oo.height,Bo=ko.offsetWidth,Fo=ko.offsetHeight,Lo=Math.floor(No),Go=Math.floor(Mo);if(ho.current.width!==Lo||ho.current.height!==Go||ho.current.offsetWidth!==Bo||ho.current.offsetHeight!==Fo){var Do={width:Lo,height:Go,offsetWidth:Bo,offsetHeight:Fo};ho.current=Do;var Uo=Bo===Math.round(No)?No:Bo,Ho=Fo===Math.round(Mo)?Mo:Fo,Yo=_objectSpread2$2(_objectSpread2$2({},Do),{},{offsetWidth:Uo,offsetHeight:Ho});ao==null||ao(Yo,ko,Ro),$o&&Promise.resolve().then(function(){$o(Yo,ko)})}},[]);return reactExports.useEffect(function(){var ko=findDOMNode(io.current)||findDOMNode(so.current);return ko&&!no&&observe(ko,_o),function(){return unobserve(ko,_o)}},[io.current,no]),reactExports.createElement(DomWrapper,{ref:so},go?reactExports.cloneElement(uo,{ref:yo}):uo)}var INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$2(eo){var to=eo.children,no=typeof to=="function"?[to]:toArray$1(to);return no.map(function(io,so){var ao=(io==null?void 0:io.key)||"".concat(INTERNAL_PREFIX_KEY,"-").concat(so);return reactExports.createElement(SingleObserver,_extends$1$1({},eo,{key:ao}),io)})}ResizeObserver$2.Collection=Collection$1;function ownKeys$1$1(eo,to){var no=Object.keys(eo);if(Object.getOwnPropertySymbols){var io=Object.getOwnPropertySymbols(eo);to&&(io=io.filter(function(so){return Object.getOwnPropertyDescriptor(eo,so).enumerable})),no.push.apply(no,io)}return no}function _objectSpread$1(eo){for(var to=1;to1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var no=rafUUID;function io(so){if(so===0)cleanup$1(no),eo();else{var ao=raf$1(function(){io(so-1)});rafIds.set(no,ao)}}return io(to),no}wrapperRaf.cancel=function(eo){var to=rafIds.get(eo);return cleanup$1(to),caf(to)};function _typeof$2(eo){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$2(eo)}function _defineProperty$1$1(eo,to,no){return to in eo?Object.defineProperty(eo,to,{value:no,enumerable:!0,configurable:!0,writable:!0}):eo[to]=no,eo}function _classCallCheck$1(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(eo,to){for(var no=0;no"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf(eo){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(no){return no.__proto__||Object.getPrototypeOf(no)},_getPrototypeOf(eo)}var MIN_SIZE=20;function getPageY(eo){return"touches"in eo?eo.touches[0].pageY:eo.pageY}var ScrollBar=function(eo){_inherits(no,eo);var to=_createSuper(no);function no(){var io;_classCallCheck$1(this,no);for(var so=arguments.length,ao=new Array(so),lo=0;loho},io}return _createClass$1(no,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(so){so.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var so=this.state,ao=so.dragging,lo=so.visible,uo=this.props.prefixCls,ho=this.getSpinHeight(),go=this.getTop(),mo=this.showScroll(),yo=mo&&lo;return reactExports.createElement("div",{ref:this.scrollbarRef,className:classnames$1("".concat(uo,"-scrollbar"),_defineProperty$1$1({},"".concat(uo,"-scrollbar-show"),mo)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:yo?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},reactExports.createElement("div",{ref:this.thumbRef,className:classnames$1("".concat(uo,"-scrollbar-thumb"),_defineProperty$1$1({},"".concat(uo,"-scrollbar-thumb-moving"),ao)),style:{width:"100%",height:ho,top:go,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),no}(reactExports.Component);function Item(eo){var to=eo.children,no=eo.setRef,io=reactExports.useCallback(function(so){no(so)},[]);return reactExports.cloneElement(to,{ref:io})}function useChildren(eo,to,no,io,so,ao){var lo=ao.getKey;return eo.slice(to,no+1).map(function(uo,ho){var go=to+ho,mo=so(uo,go,{}),yo=lo(uo);return reactExports.createElement(Item,{key:yo,setRef:function(_o){return io(uo,_o)}},mo)})}function _classCallCheck$3(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(eo,to){for(var no=0;noeo.length)&&(to=eo.length);for(var no=0,io=new Array(to);nops&&(Mo="bottom")}}qo!==null&&qo!==eo.current.scrollTop&&lo(qo)}ho.current=wrapperRaf(function(){No&&ao(),Co($o-1,Mo)})}};ko(3)}}}function findListDiffIndex(eo,to,no){var io=eo.length,so=to.length,ao,lo;if(io===0&&so===0)return null;ioeo.length)&&(to=eo.length);for(var no=0,io=new Array(to);no"u"?"undefined":_typeof$5(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),useOriginScroll=function(eo,to){var no=reactExports.useRef(!1),io=reactExports.useRef(null);function so(){clearTimeout(io.current),no.current=!0,io.current=setTimeout(function(){no.current=!1},50)}var ao=reactExports.useRef({top:eo,bottom:to});return ao.current.top=eo,ao.current.bottom=to,function(lo){var uo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ho=lo<0&&ao.current.top||lo>0&&ao.current.bottom;return uo&&ho?(clearTimeout(io.current),no.current=!1):(!ho||no.current)&&so(),!no.current&&ho}};function useFrameWheel(eo,to,no,io){var so=reactExports.useRef(0),ao=reactExports.useRef(null),lo=reactExports.useRef(null),uo=reactExports.useRef(!1),ho=useOriginScroll(to,no);function go(yo){if(eo){wrapperRaf.cancel(ao.current);var So=yo.deltaY;so.current+=So,lo.current=So,!ho(So)&&(isFF||yo.preventDefault(),ao.current=wrapperRaf(function(){var _o=uo.current?10:1;io(so.current*_o),so.current=0}))}}function mo(yo){eo&&(uo.current=yo.detail===lo.current)}return[go,mo]}function canUseDom(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var useLayoutEffect$1=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect,SMOOTH_PTG=14/15;function useMobileTouchMove(eo,to,no){var io=reactExports.useRef(!1),so=reactExports.useRef(0),ao=reactExports.useRef(null),lo=reactExports.useRef(null),uo,ho=function(So){if(io.current){var _o=Math.ceil(So.touches[0].pageY),ko=so.current-_o;so.current=_o,no(ko)&&So.preventDefault(),clearInterval(lo.current),lo.current=setInterval(function(){ko*=SMOOTH_PTG,(!no(ko,!0)||Math.abs(ko)<=.1)&&clearInterval(lo.current)},16)}},go=function(){io.current=!1,uo()},mo=function(So){uo(),So.touches.length===1&&!io.current&&(io.current=!0,so.current=Math.ceil(So.touches[0].pageY),ao.current=So.target,ao.current.addEventListener("touchmove",ho),ao.current.addEventListener("touchend",go))};uo=function(){ao.current&&(ao.current.removeEventListener("touchmove",ho),ao.current.removeEventListener("touchend",go))},useLayoutEffect$1(function(){return eo&&to.current.addEventListener("touchstart",mo),function(){var yo;(yo=to.current)===null||yo===void 0||yo.removeEventListener("touchstart",mo),uo(),clearInterval(lo.current)}},[eo])}var _excluded$1=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function _extends$a(){return _extends$a=Object.assign||function(eo){for(var to=1;toeo.length)&&(to=eo.length);for(var no=0,io=new Array(to);no=0)&&Object.prototype.propertyIsEnumerable.call(eo,io)&&(no[io]=eo[io])}return no}function _objectWithoutPropertiesLoose$2(eo,to){if(eo==null)return{};var no={},io=Object.keys(eo),so,ao;for(ao=0;ao=0)&&(no[so]=eo[so]);return no}var EMPTY_DATA=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(eo,to){var no=eo.prefixCls,io=no===void 0?"rc-virtual-list":no,so=eo.className,ao=eo.height,lo=eo.itemHeight,uo=eo.fullHeight,ho=uo===void 0?!0:uo,go=eo.style,mo=eo.data,yo=eo.children,So=eo.itemKey,_o=eo.virtual,ko=eo.component,Co=ko===void 0?"div":ko,$o=eo.onScroll,Ro=eo.onVisibleChange,Oo=_objectWithoutProperties$1(eo,_excluded$1),No=!!(_o!==!1&&ao&&lo),Mo=No&&mo&&lo*mo.length>ao,Bo=reactExports.useState(0),Po=_slicedToArray$3(Bo,2),Lo=Po[0],Go=Po[1],Do=reactExports.useState(!1),Uo=_slicedToArray$3(Do,2),Ho=Uo[0],Yo=Uo[1],qo=classnames$1(io,so),Jo=mo||EMPTY_DATA,ps=reactExports.useRef(),Qo=reactExports.useRef(),hs=reactExports.useRef(),gs=reactExports.useCallback(function(fu){return typeof So=="function"?So(fu):fu==null?void 0:fu[So]},[So]),ys={getKey:gs};function vs(fu){Go(function(Lu){var e1;typeof fu=="function"?e1=fu(Lu):e1=fu;var Gu=ju(e1);return ps.current.scrollTop=Gu,Gu})}var ks=reactExports.useRef({start:0,end:Jo.length}),Os=reactExports.useRef(),Ts=useDiffItem(Jo,gs),Xs=_slicedToArray$3(Ts,1),Ws=Xs[0];Os.current=Ws;var Ps=useHeights(gs,null,null),qs=_slicedToArray$3(Ps,4),ga=qs[0],Fs=qs[1],Js=qs[2],Vs=qs[3],El=reactExports.useMemo(function(){if(!No)return{scrollHeight:void 0,start:0,end:Jo.length-1,offset:void 0};if(!Mo){var fu;return{scrollHeight:((fu=Qo.current)===null||fu===void 0?void 0:fu.offsetHeight)||0,start:0,end:Jo.length-1,offset:void 0}}for(var Lu=0,e1,Gu,w1,Zu=Jo.length,L1=0;L1=Lo&&e1===void 0&&(e1=L1,Gu=Lu),j0>Lo+ao&&w1===void 0&&(w1=L1),Lu=j0}return e1===void 0&&(e1=0,Gu=0),w1===void 0&&(w1=Jo.length-1),w1=Math.min(w1+1,Jo.length),{scrollHeight:Lu,start:e1,end:w1,offset:Gu}},[Mo,No,Lo,Jo,Vs,ao]),yl=El.scrollHeight,Gl=El.start,Qs=El.end,du=El.offset;ks.current.start=Gl,ks.current.end=Qs;var Ol=yl-ao,Fu=reactExports.useRef(Ol);Fu.current=Ol;function ju(fu){var Lu=fu;return Number.isNaN(Fu.current)||(Lu=Math.min(Lu,Fu.current)),Lu=Math.max(Lu,0),Lu}var F1=Lo<=0,y1=Lo>=Ol,r1=useOriginScroll(F1,y1);function $u(fu){var Lu=fu;vs(Lu)}function Kl(fu){var Lu=fu.currentTarget.scrollTop;Lu!==Lo&&vs(Lu),$o==null||$o(fu)}var Is=useFrameWheel(No,F1,y1,function(fu){vs(function(Lu){var e1=Lu+fu;return e1})}),Ks=_slicedToArray$3(Is,2),Bs=Ks[0],Ds=Ks[1];useMobileTouchMove(No,ps,function(fu,Lu){return r1(fu,Lu)?!1:(Bs({preventDefault:function(){},deltaY:fu}),!0)}),useLayoutEffect$1(function(){function fu(Lu){No&&Lu.preventDefault()}return ps.current.addEventListener("wheel",Bs),ps.current.addEventListener("DOMMouseScroll",Ds),ps.current.addEventListener("MozMousePixelScroll",fu),function(){ps.current&&(ps.current.removeEventListener("wheel",Bs),ps.current.removeEventListener("DOMMouseScroll",Ds),ps.current.removeEventListener("MozMousePixelScroll",fu))}},[No]);var Zs=useScrollTo(ps,Jo,Js,lo,gs,Fs,vs,function(){var fu;(fu=hs.current)===null||fu===void 0||fu.delayHidden()});reactExports.useImperativeHandle(to,function(){return{scrollTo:Zs}}),useLayoutEffect$1(function(){if(Ro){var fu=Jo.slice(Gl,Qs+1);Ro(fu,Jo)}},[Gl,Qs,Jo]);var Cl=useChildren(Jo,Gl,Qs,ga,yo,ys),ba=null;return ao&&(ba=_objectSpread(_defineProperty$4({},ho?"height":"maxHeight",ao),ScrollStyle),No&&(ba.overflowY="hidden",Ho&&(ba.pointerEvents="none"))),reactExports.createElement("div",_extends$a({style:_objectSpread(_objectSpread({},go),{},{position:"relative"}),className:qo},Oo),reactExports.createElement(Co,{className:"".concat(io,"-holder"),style:ba,ref:ps,onScroll:Kl},reactExports.createElement(Filler,{prefixCls:io,height:yl,offset:du,onInnerResize:Fs,ref:Qo},Cl)),No&&reactExports.createElement(ScrollBar,{ref:hs,prefixCls:io,scrollTop:Lo,height:ao,scrollHeight:yl,count:Jo.length,onScroll:$u,onStartMove:function(){Yo(!0)},onStopMove:function(){Yo(!1)}}))}var List$1=reactExports.forwardRef(RawList);List$1.displayName="List";var arrDel=function(eo,to){var no=eo.slice(),io=no.indexOf(to);return io>=0&&no.splice(io,1),no},arrAdd=function(eo,to){var no=eo.slice();return no.indexOf(to)===-1&&no.push(to),no},ROOT_NODE_ID="$root",Node$1=function(){function eo(to){var no=this,io,so,ao,lo=to.node,uo=to.flattenNodes,ho=to.parent,go=to.selectedKeySet,mo=go===void 0?new Set:go,yo=to.expandedKeySet,So=yo===void 0?new Set:yo,_o=to.loadInfo,ko=_o===void 0?{loadingKeys:[],loadedKeys:[]}:_o;this.internal=lo,this.parent=ho,this.level=((so=(io=this.parent)===null||io===void 0?void 0:io.level)!==null&&so!==void 0?so:-1)+1,this.selected=mo.has(lo.id),this.expanded=So.has(lo.id)||lo.id===ROOT_NODE_ID,this.ancestorExpanded=!!(ho!=null&&ho.expanded&&(ho!=null&&ho.ancestorExpanded))||lo.id===ROOT_NODE_ID,this.loading=ko.loadingKeys.includes(lo.id),this.loaded=ko.loadedKeys.includes(lo.id),this.isLeaf=(ao=lo.isLeaf)!==null&&ao!==void 0?ao:!(lo.children.length>0),eo.nodesMap.set(lo.id,this),this.level>0&&this.ancestorExpanded&&uo.push(this),this.childNodes=lo.children.map(function(Co){return new eo({node:Co,parent:no,selectedKeySet:mo,expandedKeySet:So,loadInfo:ko,flattenNodes:uo})})}return Object.defineProperty(eo.prototype,"id",{get:function(){return this.internal.id},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"title",{get:function(){return this.internal.title},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"searchKeys",{get:function(){return this.internal.searchKeys},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"isTag",{get:function(){return this.internal.isTag},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"ariaLabel",{get:function(){return this.internal.ariaLabel},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"extra",{get:function(){return this.internal.extra},enumerable:!1,configurable:!0}),eo.init=function(to,no,io,so){no===void 0&&(no=[]),io===void 0&&(io=[]),eo.nodesMap=new Map;var ao=[];return eo.root=new eo({node:{title:"",children:to,searchKeys:[],id:ROOT_NODE_ID},selectedKeySet:new Set(no),expandedKeySet:new Set(io),loadInfo:so,flattenNodes:ao}),ao},eo.nodesMap=new Map,eo}();/*! ***************************************************************************** +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$3(eo,to){if(eo){if(typeof eo=="string")return _arrayLikeToArray$3(eo,to);var no=Object.prototype.toString.call(eo).slice(8,-1);if(no==="Object"&&eo.constructor&&(no=eo.constructor.name),no==="Map"||no==="Set")return Array.from(eo);if(no==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(no))return _arrayLikeToArray$3(eo,to)}}function _arrayLikeToArray$3(eo,to){(to==null||to>eo.length)&&(to=eo.length);for(var no=0,io=new Array(to);no=0)&&Object.prototype.propertyIsEnumerable.call(eo,io)&&(no[io]=eo[io])}return no}function _objectWithoutPropertiesLoose$2(eo,to){if(eo==null)return{};var no={},io=Object.keys(eo),so,ao;for(ao=0;ao=0)&&(no[so]=eo[so]);return no}var EMPTY_DATA=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(eo,to){var no=eo.prefixCls,io=no===void 0?"rc-virtual-list":no,so=eo.className,ao=eo.height,lo=eo.itemHeight,uo=eo.fullHeight,ho=uo===void 0?!0:uo,go=eo.style,mo=eo.data,yo=eo.children,So=eo.itemKey,_o=eo.virtual,ko=eo.component,Co=ko===void 0?"div":ko,$o=eo.onScroll,Ro=eo.onVisibleChange,Oo=_objectWithoutProperties$1(eo,_excluded$1),No=!!(_o!==!1&&ao&&lo),Mo=No&&mo&&lo*mo.length>ao,Bo=reactExports.useState(0),Fo=_slicedToArray$3(Bo,2),Lo=Fo[0],Go=Fo[1],Do=reactExports.useState(!1),Uo=_slicedToArray$3(Do,2),Ho=Uo[0],Yo=Uo[1],qo=classnames$1(io,so),Jo=mo||EMPTY_DATA,ps=reactExports.useRef(),Qo=reactExports.useRef(),hs=reactExports.useRef(),gs=reactExports.useCallback(function(fu){return typeof So=="function"?So(fu):fu==null?void 0:fu[So]},[So]),ys={getKey:gs};function vs(fu){Go(function(Lu){var e1;typeof fu=="function"?e1=fu(Lu):e1=fu;var Gu=ju(e1);return ps.current.scrollTop=Gu,Gu})}var ks=reactExports.useRef({start:0,end:Jo.length}),Os=reactExports.useRef(),Ts=useDiffItem(Jo,gs),Xs=_slicedToArray$3(Ts,1),Ws=Xs[0];Os.current=Ws;var Ps=useHeights(gs,null,null),qs=_slicedToArray$3(Ps,4),ga=qs[0],Fs=qs[1],Js=qs[2],Vs=qs[3],El=reactExports.useMemo(function(){if(!No)return{scrollHeight:void 0,start:0,end:Jo.length-1,offset:void 0};if(!Mo){var fu;return{scrollHeight:((fu=Qo.current)===null||fu===void 0?void 0:fu.offsetHeight)||0,start:0,end:Jo.length-1,offset:void 0}}for(var Lu=0,e1,Gu,w1,Zu=Jo.length,L1=0;L1=Lo&&e1===void 0&&(e1=L1,Gu=Lu),j0>Lo+ao&&w1===void 0&&(w1=L1),Lu=j0}return e1===void 0&&(e1=0,Gu=0),w1===void 0&&(w1=Jo.length-1),w1=Math.min(w1+1,Jo.length),{scrollHeight:Lu,start:e1,end:w1,offset:Gu}},[Mo,No,Lo,Jo,Vs,ao]),yl=El.scrollHeight,Gl=El.start,Qs=El.end,du=El.offset;ks.current.start=Gl,ks.current.end=Qs;var Ol=yl-ao,Fu=reactExports.useRef(Ol);Fu.current=Ol;function ju(fu){var Lu=fu;return Number.isNaN(Fu.current)||(Lu=Math.min(Lu,Fu.current)),Lu=Math.max(Lu,0),Lu}var F1=Lo<=0,y1=Lo>=Ol,r1=useOriginScroll(F1,y1);function $u(fu){var Lu=fu;vs(Lu)}function Kl(fu){var Lu=fu.currentTarget.scrollTop;Lu!==Lo&&vs(Lu),$o==null||$o(fu)}var Is=useFrameWheel(No,F1,y1,function(fu){vs(function(Lu){var e1=Lu+fu;return e1})}),Ks=_slicedToArray$3(Is,2),Bs=Ks[0],Ds=Ks[1];useMobileTouchMove(No,ps,function(fu,Lu){return r1(fu,Lu)?!1:(Bs({preventDefault:function(){},deltaY:fu}),!0)}),useLayoutEffect$1(function(){function fu(Lu){No&&Lu.preventDefault()}return ps.current.addEventListener("wheel",Bs),ps.current.addEventListener("DOMMouseScroll",Ds),ps.current.addEventListener("MozMousePixelScroll",fu),function(){ps.current&&(ps.current.removeEventListener("wheel",Bs),ps.current.removeEventListener("DOMMouseScroll",Ds),ps.current.removeEventListener("MozMousePixelScroll",fu))}},[No]);var Zs=useScrollTo(ps,Jo,Js,lo,gs,Fs,vs,function(){var fu;(fu=hs.current)===null||fu===void 0||fu.delayHidden()});reactExports.useImperativeHandle(to,function(){return{scrollTo:Zs}}),useLayoutEffect$1(function(){if(Ro){var fu=Jo.slice(Gl,Qs+1);Ro(fu,Jo)}},[Gl,Qs,Jo]);var Cl=useChildren(Jo,Gl,Qs,ga,yo,ys),ba=null;return ao&&(ba=_objectSpread(_defineProperty$4({},ho?"height":"maxHeight",ao),ScrollStyle),No&&(ba.overflowY="hidden",Ho&&(ba.pointerEvents="none"))),reactExports.createElement("div",_extends$a({style:_objectSpread(_objectSpread({},go),{},{position:"relative"}),className:qo},Oo),reactExports.createElement(Co,{className:"".concat(io,"-holder"),style:ba,ref:ps,onScroll:Kl},reactExports.createElement(Filler,{prefixCls:io,height:yl,offset:du,onInnerResize:Fs,ref:Qo},Cl)),No&&reactExports.createElement(ScrollBar,{ref:hs,prefixCls:io,scrollTop:Lo,height:ao,scrollHeight:yl,count:Jo.length,onScroll:$u,onStartMove:function(){Yo(!0)},onStopMove:function(){Yo(!1)}}))}var List$1=reactExports.forwardRef(RawList);List$1.displayName="List";var arrDel=function(eo,to){var no=eo.slice(),io=no.indexOf(to);return io>=0&&no.splice(io,1),no},arrAdd=function(eo,to){var no=eo.slice();return no.indexOf(to)===-1&&no.push(to),no},ROOT_NODE_ID="$root",Node$1=function(){function eo(to){var no=this,io,so,ao,lo=to.node,uo=to.flattenNodes,ho=to.parent,go=to.selectedKeySet,mo=go===void 0?new Set:go,yo=to.expandedKeySet,So=yo===void 0?new Set:yo,_o=to.loadInfo,ko=_o===void 0?{loadingKeys:[],loadedKeys:[]}:_o;this.internal=lo,this.parent=ho,this.level=((so=(io=this.parent)===null||io===void 0?void 0:io.level)!==null&&so!==void 0?so:-1)+1,this.selected=mo.has(lo.id),this.expanded=So.has(lo.id)||lo.id===ROOT_NODE_ID,this.ancestorExpanded=!!(ho!=null&&ho.expanded&&(ho!=null&&ho.ancestorExpanded))||lo.id===ROOT_NODE_ID,this.loading=ko.loadingKeys.includes(lo.id),this.loaded=ko.loadedKeys.includes(lo.id),this.isLeaf=(ao=lo.isLeaf)!==null&&ao!==void 0?ao:!(lo.children.length>0),eo.nodesMap.set(lo.id,this),this.level>0&&this.ancestorExpanded&&uo.push(this),this.childNodes=lo.children.map(function(Co){return new eo({node:Co,parent:no,selectedKeySet:mo,expandedKeySet:So,loadInfo:ko,flattenNodes:uo})})}return Object.defineProperty(eo.prototype,"id",{get:function(){return this.internal.id},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"title",{get:function(){return this.internal.title},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"searchKeys",{get:function(){return this.internal.searchKeys},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"isTag",{get:function(){return this.internal.isTag},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"ariaLabel",{get:function(){return this.internal.ariaLabel},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"extra",{get:function(){return this.internal.extra},enumerable:!1,configurable:!0}),eo.init=function(to,no,io,so){no===void 0&&(no=[]),io===void 0&&(io=[]),eo.nodesMap=new Map;var ao=[];return eo.root=new eo({node:{title:"",children:to,searchKeys:[],id:ROOT_NODE_ID},selectedKeySet:new Set(no),expandedKeySet:new Set(io),loadInfo:so,flattenNodes:ao}),ao},eo.nodesMap=new Map,eo}();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -292,8 +292,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var __assign$2=function(){return __assign$2=Object.assign||function(to){for(var no,io=1,so=arguments.length;io"u"?InjectionMode.none:InjectionMode.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},to),this._classNameToArgs=(io=no==null?void 0:no.classNameToArgs)!==null&&io!==void 0?io:this._classNameToArgs,this._counter=(so=no==null?void 0:no.counter)!==null&&so!==void 0?so:this._counter,this._keyToClassName=(lo=(ao=this._config.classNameCache)!==null&&ao!==void 0?ao:no==null?void 0:no.keyToClassName)!==null&&lo!==void 0?lo:this._keyToClassName,this._preservedRules=(uo=no==null?void 0:no.preservedRules)!==null&&uo!==void 0?uo:this._preservedRules,this._rules=(ho=no==null?void 0:no.rules)!==null&&ho!==void 0?ho:this._rules}return eo.getInstance=function(){if(_stylesheet=_global[STYLESHEET_SETTING],!_stylesheet||_stylesheet._lastStyleElement&&_stylesheet._lastStyleElement.ownerDocument!==document){var to=(_global==null?void 0:_global.FabricConfig)||{},no=new eo(to.mergeStyles,to.serializedStylesheet);_stylesheet=no,_global[STYLESHEET_SETTING]=no}return _stylesheet},eo.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},eo.prototype.setConfig=function(to){this._config=__assign$2(__assign$2({},this._config),to)},eo.prototype.onReset=function(to){var no=this;return this._onResetCallbacks.push(to),function(){no._onResetCallbacks=no._onResetCallbacks.filter(function(io){return io!==to})}},eo.prototype.onInsertRule=function(to){var no=this;return this._onInsertRuleCallbacks.push(to),function(){no._onInsertRuleCallbacks=no._onInsertRuleCallbacks.filter(function(io){return io!==to})}},eo.prototype.getClassName=function(to){var no=this._config.namespace,io=to||this._config.defaultPrefix;return(no?no+"-":"")+io+"-"+this._counter++},eo.prototype.cacheClassName=function(to,no,io,so){this._keyToClassName[no]=to,this._classNameToArgs[to]={args:io,rules:so}},eo.prototype.classNameFromKey=function(to){return this._keyToClassName[to]},eo.prototype.getClassNameCache=function(){return this._keyToClassName},eo.prototype.argsFromClassName=function(to){var no=this._classNameToArgs[to];return no&&no.args},eo.prototype.insertedRulesFromClassName=function(to){var no=this._classNameToArgs[to];return no&&no.rules},eo.prototype.insertRule=function(to,no){var io=this._config.injectionMode,so=io!==InjectionMode.none?this._getStyleElement():void 0;if(no&&this._preservedRules.push(to),so)switch(io){case InjectionMode.insertNode:var ao=so.sheet;try{ao.insertRule(to,ao.cssRules.length)}catch{}break;case InjectionMode.appendChild:so.appendChild(document.createTextNode(to));break}else this._rules.push(to);this._config.onInsertRule&&this._config.onInsertRule(to),this._onInsertRuleCallbacks.forEach(function(lo){return lo()})},eo.prototype.getRules=function(to){return(to?this._preservedRules.join(""):"")+this._rules.join("")},eo.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(to){return to()})},eo.prototype.resetKeys=function(){this._keyToClassName={}},eo.prototype._getStyleElement=function(){var to=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE||window.requestAnimationFrame(function(){to._styleElement=void 0})),this._styleElement},eo.prototype._createStyleElement=function(){var to=document.head,no=document.createElement("style"),io=null;no.setAttribute("data-merge-styles","true");var so=this._config.cspSettings;if(so&&so.nonce&&no.setAttribute("nonce",so.nonce),this._lastStyleElement)io=this._lastStyleElement.nextElementSibling;else{var ao=this._findPlaceholderStyleTag();ao?io=ao.nextElementSibling:io=to.childNodes[0]}return to.insertBefore(no,to.contains(io)?io:null),this._lastStyleElement=no,no},eo.prototype._findPlaceholderStyleTag=function(){var to=document.head;return to?to.querySelector("style[data-merge-styles]"):null},eo}();function extractStyleParts(){for(var eo=[],to=0;to=0)ao(go.split(" "));else{var mo=so.argsFromClassName(go);mo?ao(mo):no.indexOf(go)===-1&&no.push(go)}else Array.isArray(go)?ao(go):typeof go=="object"&&io.push(go)}}return ao(eo),{classes:no,objects:io}}function getRTL(){return _rtl===void 0&&(_rtl=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl}var _rtl;_rtl=getRTL();function getStyleOptions(){return{rtl:getRTL()}}var rules={};function kebabRules(eo,to){var no=eo[to];no.charAt(0)!=="-"&&(eo[to]=rules[no]=rules[no]||no.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings;function getVendorSettings(){var eo;if(!_vendorSettings){var to=typeof document<"u"?document:void 0,no=typeof navigator<"u"?navigator:void 0,io=(eo=no==null?void 0:no.userAgent)===null||eo===void 0?void 0:eo.toLowerCase();to?_vendorSettings={isWebkit:!!(to&&"WebkitAppearance"in to.documentElement.style),isMoz:!!(io&&io.indexOf("firefox")>-1),isOpera:!!(io&&io.indexOf("opera")>-1),isMs:!!(no&&(/rv:11.0/i.test(no.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings}var autoPrefixNames={"user-select":1};function prefixRules(eo,to){var no=getVendorSettings(),io=eo[to];if(autoPrefixNames[io]){var so=eo[to+1];autoPrefixNames[io]&&(no.isWebkit&&eo.push("-webkit-"+io,so),no.isMoz&&eo.push("-moz-"+io,so),no.isMs&&eo.push("-ms-"+io,so),no.isOpera&&eo.push("-o-"+io,so))}}var NON_PIXEL_NUMBER_PROPS=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits(eo,to){var no=eo[to],io=eo[to+1];if(typeof io=="number"){var so=NON_PIXEL_NUMBER_PROPS.indexOf(no)>-1,ao=no.indexOf("--")>-1,lo=so||ao?"":"px";eo[to+1]=""+io+lo}}var _a$4,LEFT="left",RIGHT="right",NO_FLIP="@noflip",NAME_REPLACEMENTS=(_a$4={},_a$4[LEFT]=RIGHT,_a$4[RIGHT]=LEFT,_a$4),VALUE_REPLACEMENTS={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules(eo,to,no){if(eo.rtl){var io=to[no];if(!io)return;var so=to[no+1];if(typeof so=="string"&&so.indexOf(NO_FLIP)>=0)to[no+1]=so.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(io.indexOf(LEFT)>=0)to[no]=io.replace(LEFT,RIGHT);else if(io.indexOf(RIGHT)>=0)to[no]=io.replace(RIGHT,LEFT);else if(String(so).indexOf(LEFT)>=0)to[no+1]=so.replace(LEFT,RIGHT);else if(String(so).indexOf(RIGHT)>=0)to[no+1]=so.replace(RIGHT,LEFT);else if(NAME_REPLACEMENTS[io])to[no]=NAME_REPLACEMENTS[io];else if(VALUE_REPLACEMENTS[so])to[no+1]=VALUE_REPLACEMENTS[so];else switch(io){case"margin":case"padding":to[no+1]=flipQuad(so);break;case"box-shadow":to[no+1]=negateNum(so,0);break}}}function negateNum(eo,to){var no=eo.split(" "),io=parseInt(no[to],10);return no[0]=no[0].replace(String(io),String(io*-1)),no.join(" ")}function flipQuad(eo){if(typeof eo=="string"){var to=eo.split(" ");if(to.length===4)return to[0]+" "+to[3]+" "+to[2]+" "+to[1]}return eo}function tokenizeWithParentheses(eo){for(var to=[],no=0,io=0,so=0;sono&&to.push(eo.substring(no,so)),no=so+1);break}return no-1&&to.push([io.index,io.index+io[0].length,io[1].split(",").map(function(so){return":global("+so.trim()+")"}).join(", ")]);return to.reverse().reduce(function(so,ao){var lo=ao[0],uo=ao[1],ho=ao[2],go=so.slice(0,lo),mo=so.slice(uo);return go+ho+mo},eo)}function expandSelector(eo,to){return eo.indexOf(":global(")>=0?eo.replace(globalSelectorRegExp,"$1"):eo.indexOf(":")===0?to+eo:eo.indexOf("&")<0?to+" "+eo:eo}function extractSelector(eo,to,no,io){to===void 0&&(to={__order:[]}),no.indexOf("@")===0?(no=no+"{"+eo,extractRules([io],to,no)):no.indexOf(",")>-1?expandCommaSeparatedGlobals(no).split(",").map(function(so){return so.trim()}).forEach(function(so){return extractRules([io],to,expandSelector(so,eo))}):extractRules([io],to,expandSelector(no,eo))}function extractRules(eo,to,no){to===void 0&&(to={__order:[]}),no===void 0&&(no="&");var io=Stylesheet$1.getInstance(),so=to[no];so||(so={},to[no]=so,to.__order.push(no));for(var ao=0,lo=eo;ao"u")){var io=document.head||document.getElementsByTagName("head")[0],so=document.createElement("style");so.type="text/css",no==="top"&&io.firstChild?io.insertBefore(so,io.firstChild):io.appendChild(so),so.styleSheet?so.styleSheet.cssText=eo:so.appendChild(document.createTextNode(eo))}}var css_248z=".root_ce9fd48c{margin:0;padding:0}.item_34141342{list-style:none}.content_6abc12be{display:flex;align-items:center}.content_6abc12be:hover{cursor:pointer;background-color:#f3f2f1}.icon_aaa0d589{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #8a8886;margin:0 11px 0 3px}.expanded_6233c4e1{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #8a8886;margin:3px 8px 0 0}.leaf_f2922997{border:6px solid transparent;margin:0 8px 0 0}.group_7e2ac704,.inner_683a43d6{padding:0;margin:0}",classes$7={root:"root_ce9fd48c",item:"item_34141342",content:"content_6abc12be",icon:"icon_aaa0d589",expanded:"expanded_6233c4e1",leaf:"leaf_f2922997",group:"group_7e2ac704",inner:"inner_683a43d6"};styleInject(css_248z);var mergeTreeClasses=function(eo){return{root:mergeStyles(classes$7.root,eo==null?void 0:eo.root)}},mergeTreeNodeClasses=function(eo,to){var no,io,so;return{item:mergeStyles(classes$7.item,to==null?void 0:to.item),icon:mergeStyles(classes$7.icon,eo.expanded&&classes$7.expanded,eo.isLeaf&&classes$7.leaf),group:mergeStyles(classes$7.group,to==null?void 0:to.group),inner:mergeStyles(classes$7.inner,to==null?void 0:to.inner),content:mergeStyles(classes$7.content,(no=to==null?void 0:to.content)===null||no===void 0?void 0:no.base,eo.expanded&&((io=to==null?void 0:to.content)===null||io===void 0?void 0:io.expand),eo.isLeaf&&((so=to==null?void 0:to.content)===null||so===void 0?void 0:so.leaf))}},TreeNode$2=reactExports.forwardRef(function(eo,to){var no,io,so,ao,lo,uo,ho,go,mo=eo.node,yo=eo.classes,So=eo.indent,_o=eo.calcIndent,ko=eo.onNodeClick,Co=eo.renderIcon,$o=eo.renderContent,Ro=eo.renderInnerContent,Oo=!mo.isLeaf&&mo.expanded,No=mergeTreeNodeClasses(mo,yo),Mo=_o?_o(mo):{item:(mo.level-1)*((no=So==null?void 0:So.item)!==null&&no!==void 0?no:20)+((io=So==null?void 0:So.root)!==null&&io!==void 0?io:0),innerItem:mo.level*((so=So==null?void 0:So.item)!==null&&so!==void 0?so:20)+((ao=So==null?void 0:So.root)!==null&&ao!==void 0?ao:0)},Bo=reactExports.useCallback(function(Po){Po.preventDefault(),Po.stopPropagation()},[]);return reactExports.createElement("div",{key:mo.id,role:"treeitem","aria-selected":mo.selected,"aria-expanded":mo.expanded,tabIndex:-1,className:No.item,onClick:ko.bind(null,mo),"data-item-id":mo.id,ref:to},reactExports.createElement("div",{className:No.content,style:{paddingLeft:(lo=Mo.item)!==null&&lo!==void 0?lo:20}},(uo=Co==null?void 0:Co(mo))!==null&&uo!==void 0?uo:reactExports.createElement("span",{className:No.icon}),(ho=$o==null?void 0:$o(mo))!==null&&ho!==void 0?ho:reactExports.createElement("span",{role:"button"},mo.title)),Oo&&reactExports.createElement(reactExports.Fragment,null,Ro&&reactExports.createElement("div",{role:"group",key:"innerContent",className:No.inner,style:{paddingLeft:(go=Mo.innerItem)!==null&&go!==void 0?go:40},onClick:Bo},Ro(mo))))});TreeNode$2.displayName="TreeNode";var ReactAccessibleTree=reactExports.forwardRef(function(eo,to){var no=eo.selectedKeys,io=no===void 0?[]:no,so=eo.expandedKeys,ao=so===void 0?[]:so,lo=eo.treeData,uo=eo.classes,ho=eo.indent,go=eo.height,mo=eo.itemHeight,yo=eo.virtual,So=eo.calcIndent,_o=eo.onKeyDown,ko=eo.renderIcon,Co=eo.renderContent,$o=eo.renderInnerContent,Ro=eo.onSelect,Oo=eo.multiple,No=eo.onExpand,Mo=eo.loadData,Bo=reactExports.useState({loadedKeys:[],loadingKeys:[]}),Po=Bo[0],Lo=Bo[1],Go=reactExports.useRef(null),Do=reactExports.useRef(null),Uo=reactExports.useMemo(function(){return Node$1.init(lo,io,ao,Po)},[lo,io,ao,Po]);reactExports.useImperativeHandle(to,function(){return{scrollTo:function(vs){var ks;(ks=Do.current)===null||ks===void 0||ks.scrollTo(vs)}}}),reactExports.useEffect(function(){Jo(0)},[]);var Ho=function(vs,ks){var Os=io,Ts=ks.id,Xs=!ks.selected;Xs?Oo?Os=arrAdd(Os,Ts):Os=[Ts]:Os=arrDel(Os,Ts),Ro==null||Ro(Os,{node:ks,selected:Xs,nativeEvent:vs})},Yo=function(vs,ks){var Os=ao,Ts=ks.id,Xs=!ks.expanded;Xs?Os=arrAdd(Os,Ts):Os=arrDel(Os,Ts),No==null||No(Os,{node:ks,expanded:Xs,nativeEvent:vs}),Xs&&Mo&&qo(ks)},qo=function(vs){Lo(function(ks){var Os=ks.loadedKeys,Ts=ks.loadingKeys,Xs=vs.id;if(!Mo||Os.includes(Xs)||Ts.includes(Xs))return Po;var Ws=Mo(vs);return Ws.then(function(){var Ps=Po.loadedKeys,qs=Po.loadingKeys,ga=arrAdd(Ps,Xs),Fs=arrDel(qs,Xs);Lo({loadedKeys:ga,loadingKeys:Fs})}),{loadedKeys:Os,loadingKeys:arrAdd(Ts,Xs)}})},Jo=function(vs){var ks,Os,Ts=Array.from((Os=(ks=Go.current)===null||ks===void 0?void 0:ks.querySelectorAll("div[role='treeitem']"))!==null&&Os!==void 0?Os:[]);Ts.forEach(function(Xs,Ws){Ws===vs?Xs.setAttribute("tabindex","0"):Xs.setAttribute("tabindex","-1")})},ps=function(vs){var ks,Os,Ts;vs.stopPropagation();var Xs=vs.target;if(Xs.getAttribute("role")!=="treeitem"||vs.ctrlKey||vs.metaKey)return-1;var Ws=Array.from((Os=(ks=Go.current)===null||ks===void 0?void 0:ks.querySelectorAll("div[role='treeitem']"))!==null&&Os!==void 0?Os:[]),Ps=Ws.indexOf(Xs),qs=vs.keyCode>=65&&vs.keyCode<=90;if(qs){var ga=-1,Fs=Ws.findIndex(function(El,yl){var Gl=El.getAttribute("data-item-id"),Qs=Node$1.nodesMap.get(Gl??""),du=Qs==null?void 0:Qs.searchKeys.some(function(Ol){return Ol.match(new RegExp("^"+vs.key,"i"))});return du&&yl>Ps?!0:(du&&yl<=Ps&&(ga=ga===-1?yl:ga),!1)}),Js=Fs===-1?ga:Fs;return(Ts=Ws[Js])===null||Ts===void 0||Ts.focus(),Js}switch(vs.key){case"ArrowDown":{var Vs=(Ps+1)%Ws.length;return Ws[Vs].focus(),Vs}case"ArrowUp":{var Vs=(Ps-1+Ws.length)%Ws.length;return Ws[Vs].focus(),Vs}case"ArrowLeft":case"ArrowRight":return Xs.click(),Ps;case"Home":return Ws[0].focus(),0;case"End":return Ws[Ws.length-1].focus(),Ws.length-1;default:return _o==null||_o(vs),Ps}},Qo=function(vs){var ks=ps(vs);ks>-1&&Jo(ks)},hs=function(vs,ks){ks.stopPropagation(),Ho(ks,vs),!(vs.loading||vs.loaded&&vs.isLeaf)&&Yo(ks,vs)},gs=mergeTreeClasses(uo),ys=function(vs){return vs.id};return reactExports.createElement("div",{role:"tree",className:gs.root,onKeyDown:Qo,ref:Go},reactExports.createElement(List$1,{data:Uo,itemKey:ys,height:go,fullHeight:!1,virtual:yo,itemHeight:mo,ref:Do},function(vs){return reactExports.createElement(TreeNode$2,{key:vs.id,node:vs,classes:uo,indent:ho,calcIndent:So,renderIcon:ko,renderContent:Co,renderInnerContent:$o,onNodeClick:hs})}))});ReactAccessibleTree.displayName="ReactAccessibleTree";var __extends$1=function(){var eo=function(to,no){return eo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(io,so){io.__proto__=so}||function(io,so){for(var ao in so)Object.prototype.hasOwnProperty.call(so,ao)&&(io[ao]=so[ao])},eo(to,no)};return function(to,no){eo(to,no);function io(){this.constructor=to}to.prototype=no===null?Object.create(no):(io.prototype=no.prototype,new io)}}(),__assign$1=function(){return __assign$1=Object.assign||function(eo){for(var to,no=1,io=arguments.length;no"u"?void 0:Number(io),maxHeight:typeof so>"u"?void 0:Number(so),minWidth:typeof ao>"u"?void 0:Number(ao),minHeight:typeof lo>"u"?void 0:Number(lo)}},definedProps=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],baseClassName="__resizable_base__",Resizable=function(eo){__extends(to,eo);function to(no){var io=eo.call(this,no)||this;return io.ratio=1,io.resizable=null,io.parentLeft=0,io.parentTop=0,io.resizableLeft=0,io.resizableRight=0,io.resizableTop=0,io.resizableBottom=0,io.targetLeft=0,io.targetTop=0,io.appendBase=function(){if(!io.resizable||!io.window)return null;var so=io.parentNode;if(!so)return null;var ao=io.window.document.createElement("div");return ao.style.width="100%",ao.style.height="100%",ao.style.position="absolute",ao.style.transform="scale(0, 0)",ao.style.left="0",ao.style.flex="0 0 100%",ao.classList?ao.classList.add(baseClassName):ao.className+=baseClassName,so.appendChild(ao),ao},io.removeBase=function(so){var ao=io.parentNode;ao&&ao.removeChild(so)},io.ref=function(so){so&&(io.resizable=so)},io.state={isResizing:!1,width:typeof(io.propsSize&&io.propsSize.width)>"u"?"auto":io.propsSize&&io.propsSize.width,height:typeof(io.propsSize&&io.propsSize.height)>"u"?"auto":io.propsSize&&io.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},io.onResizeStart=io.onResizeStart.bind(io),io.onMouseMove=io.onMouseMove.bind(io),io.onMouseUp=io.onMouseUp.bind(io),io}return Object.defineProperty(to.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||DEFAULT_SIZE},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"size",{get:function(){var no=0,io=0;if(this.resizable&&this.window){var so=this.resizable.offsetWidth,ao=this.resizable.offsetHeight,lo=this.resizable.style.position;lo!=="relative"&&(this.resizable.style.position="relative"),no=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:so,io=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:ao,this.resizable.style.position=lo}return{width:no,height:io}},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"sizeStyle",{get:function(){var no=this,io=this.props.size,so=function(uo){if(typeof no.state[uo]>"u"||no.state[uo]==="auto")return"auto";if(no.propsSize&&no.propsSize[uo]&&no.propsSize[uo].toString().endsWith("%")){if(no.state[uo].toString().endsWith("%"))return no.state[uo].toString();var ho=no.getParentSize(),go=Number(no.state[uo].toString().replace("px","")),mo=go/ho[uo]*100;return mo+"%"}return getStringSize(no.state[uo])},ao=io&&typeof io.width<"u"&&!this.state.isResizing?getStringSize(io.width):so("width"),lo=io&&typeof io.height<"u"&&!this.state.isResizing?getStringSize(io.height):so("height");return{width:ao,height:lo}},enumerable:!1,configurable:!0}),to.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var no=this.appendBase();if(!no)return{width:0,height:0};var io=!1,so=this.parentNode.style.flexWrap;so!=="wrap"&&(io=!0,this.parentNode.style.flexWrap="wrap"),no.style.position="relative",no.style.minWidth="100%",no.style.minHeight="100%";var ao={width:no.offsetWidth,height:no.offsetHeight};return io&&(this.parentNode.style.flexWrap=so),this.removeBase(no),ao},to.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},to.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},to.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var no=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:no.flexBasis!=="auto"?no.flexBasis:void 0})}},to.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},to.prototype.createSizeForCssProperty=function(no,io){var so=this.propsSize&&this.propsSize[io];return this.state[io]==="auto"&&this.state.original[io]===no&&(typeof so>"u"||so==="auto")?"auto":no},to.prototype.calculateNewMaxFromBoundary=function(no,io){var so=this.props.boundsByDirection,ao=this.state.direction,lo=so&&hasDirection("left",ao),uo=so&&hasDirection("top",ao),ho,go;if(this.props.bounds==="parent"){var mo=this.parentNode;mo&&(ho=lo?this.resizableRight-this.parentLeft:mo.offsetWidth+(this.parentLeft-this.resizableLeft),go=uo?this.resizableBottom-this.parentTop:mo.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(ho=lo?this.resizableRight:this.window.innerWidth-this.resizableLeft,go=uo?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(ho=lo?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),go=uo?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return ho&&Number.isFinite(ho)&&(no=no&&no"u"?10:ao.width,yo=typeof so.width>"u"||so.width<0?no:so.width,So=typeof ao.height>"u"?10:ao.height,_o=typeof so.height>"u"||so.height<0?io:so.height,ko=ho||0,Co=go||0;if(uo){var $o=(So-ko)*this.ratio+Co,Ro=(_o-ko)*this.ratio+Co,Oo=(mo-Co)/this.ratio+ko,No=(yo-Co)/this.ratio+ko,Mo=Math.max(mo,$o),Bo=Math.min(yo,Ro),Po=Math.max(So,Oo),Lo=Math.min(_o,No);no=clamp(no,Mo,Bo),io=clamp(io,Po,Lo)}else no=clamp(no,mo,yo),io=clamp(io,So,_o);return{newWidth:no,newHeight:io}},to.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var no=this.parentNode;if(no){var io=no.getBoundingClientRect();this.parentLeft=io.left,this.parentTop=io.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var so=this.props.bounds.getBoundingClientRect();this.targetLeft=so.left,this.targetTop=so.top}if(this.resizable){var ao=this.resizable.getBoundingClientRect(),lo=ao.left,uo=ao.top,ho=ao.right,go=ao.bottom;this.resizableLeft=lo,this.resizableRight=ho,this.resizableTop=uo,this.resizableBottom=go}},to.prototype.onResizeStart=function(no,io){if(!(!this.resizable||!this.window)){var so=0,ao=0;if(no.nativeEvent&&isMouseEvent(no.nativeEvent)?(so=no.nativeEvent.clientX,ao=no.nativeEvent.clientY):no.nativeEvent&&isTouchEvent(no.nativeEvent)&&(so=no.nativeEvent.touches[0].clientX,ao=no.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var lo=this.props.onResizeStart(no,io,this.resizable);if(lo===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var uo,ho=this.window.getComputedStyle(this.resizable);if(ho.flexBasis!=="auto"){var go=this.parentNode;if(go){var mo=this.window.getComputedStyle(go).flexDirection;this.flexDir=mo.startsWith("row")?"row":"column",uo=ho.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var yo={original:{x:so,y:ao,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(no.target).cursor||"auto"}),direction:io,flexBasis:uo};this.setState(yo)}},to.prototype.onMouseMove=function(no){var io=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&isTouchEvent(no))try{no.preventDefault(),no.stopPropagation()}catch{}var so=this.props,ao=so.maxWidth,lo=so.maxHeight,uo=so.minWidth,ho=so.minHeight,go=isTouchEvent(no)?no.touches[0].clientX:no.clientX,mo=isTouchEvent(no)?no.touches[0].clientY:no.clientY,yo=this.state,So=yo.direction,_o=yo.original,ko=yo.width,Co=yo.height,$o=this.getParentSize(),Ro=calculateNewMax($o,this.window.innerWidth,this.window.innerHeight,ao,lo,uo,ho);ao=Ro.maxWidth,lo=Ro.maxHeight,uo=Ro.minWidth,ho=Ro.minHeight;var Oo=this.calculateNewSizeFromDirection(go,mo),No=Oo.newHeight,Mo=Oo.newWidth,Bo=this.calculateNewMaxFromBoundary(ao,lo);this.props.snap&&this.props.snap.x&&(Mo=findClosestSnap(Mo,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(No=findClosestSnap(No,this.props.snap.y,this.props.snapGap));var Po=this.calculateNewSizeFromAspectRatio(Mo,No,{width:Bo.maxWidth,height:Bo.maxHeight},{width:uo,height:ho});if(Mo=Po.newWidth,No=Po.newHeight,this.props.grid){var Lo=snap(Mo,this.props.grid[0]),Go=snap(No,this.props.grid[1]),Do=this.props.snapGap||0;Mo=Do===0||Math.abs(Lo-Mo)<=Do?Lo:Mo,No=Do===0||Math.abs(Go-No)<=Do?Go:No}var Uo={width:Mo-_o.width,height:No-_o.height};if(ko&&typeof ko=="string"){if(ko.endsWith("%")){var Ho=Mo/$o.width*100;Mo=Ho+"%"}else if(ko.endsWith("vw")){var Yo=Mo/this.window.innerWidth*100;Mo=Yo+"vw"}else if(ko.endsWith("vh")){var qo=Mo/this.window.innerHeight*100;Mo=qo+"vh"}}if(Co&&typeof Co=="string"){if(Co.endsWith("%")){var Ho=No/$o.height*100;No=Ho+"%"}else if(Co.endsWith("vw")){var Yo=No/this.window.innerWidth*100;No=Yo+"vw"}else if(Co.endsWith("vh")){var qo=No/this.window.innerHeight*100;No=qo+"vh"}}var Jo={width:this.createSizeForCssProperty(Mo,"width"),height:this.createSizeForCssProperty(No,"height")};this.flexDir==="row"?Jo.flexBasis=Jo.width:this.flexDir==="column"&&(Jo.flexBasis=Jo.height),reactDomExports.flushSync(function(){io.setState(Jo)}),this.props.onResize&&this.props.onResize(no,So,this.resizable,Uo)}},to.prototype.onMouseUp=function(no){var io=this.state,so=io.isResizing,ao=io.direction,lo=io.original;if(!(!so||!this.resizable)){var uo={width:this.size.width-lo.width,height:this.size.height-lo.height};this.props.onResizeStop&&this.props.onResizeStop(no,ao,this.resizable,uo),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:"auto"})})}},to.prototype.updateSize=function(no){this.setState({width:no.width,height:no.height})},to.prototype.renderResizer=function(){var no=this,io=this.props,so=io.enable,ao=io.handleStyles,lo=io.handleClasses,uo=io.handleWrapperStyle,ho=io.handleWrapperClass,go=io.handleComponent;if(!so)return null;var mo=Object.keys(so).map(function(yo){return so[yo]!==!1?reactExports.createElement(Resizer,{key:yo,direction:yo,onResizeStart:no.onResizeStart,replaceStyles:ao&&ao[yo],className:lo&&lo[yo]},go&&go[yo]?go[yo]:null):null});return reactExports.createElement("div",{className:ho,style:uo},mo)},to.prototype.render=function(){var no=this,io=Object.keys(this.props).reduce(function(lo,uo){return definedProps.indexOf(uo)!==-1||(lo[uo]=no.props[uo]),lo},{}),so=__assign(__assign(__assign({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(so.flexBasis=this.state.flexBasis);var ao=this.props.as||"div";return reactExports.createElement(ao,__assign({ref:this.ref,style:so,className:this.props.className},io),this.state.isResizing&&reactExports.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},to.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},to}(reactExports.PureComponent);function r$2(eo){var to,no,io="";if(typeof eo=="string"||typeof eo=="number")io+=eo;else if(typeof eo=="object")if(Array.isArray(eo))for(to=0;to1&&(!eo.frozen||eo.idx+io-1<=to))return io}function stopPropagation(eo){eo.stopPropagation()}function scrollIntoView$2(eo){eo==null||eo.scrollIntoView({inline:"nearest",block:"nearest"})}function createCellEvent(eo){let to=!1;const no={...eo,preventGridDefault(){to=!0},isGridDefaultPrevented(){return to}};return Object.setPrototypeOf(no,Object.getPrototypeOf(eo)),no}const nonInputKeys=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function isCtrlKeyHeldDown(eo){return(eo.ctrlKey||eo.metaKey)&&eo.key!=="Control"}function isDefaultCellInput(eo){return!nonInputKeys.has(eo.key)}function onEditorNavigation({key:eo,target:to}){var no;return eo==="Tab"&&(to instanceof HTMLInputElement||to instanceof HTMLTextAreaElement||to instanceof HTMLSelectElement)?((no=to.closest(".rdg-editor-container"))==null?void 0:no.querySelectorAll("input, textarea, select").length)===1:!1}const measuringCellClassname="m1l09lto7-0-0-beta-39";function renderMeasuringCells(eo){return eo.map(({key:to,idx:no,minWidth:io,maxWidth:so})=>jsxRuntimeExports.jsx("div",{className:measuringCellClassname,style:{gridColumnStart:no+1,minWidth:io,maxWidth:so},"data-measuring-cell-key":to},to))}function isSelectedCellEditable({selectedPosition:eo,columns:to,rows:no}){const io=to[eo.idx],so=no[eo.rowIdx];return isCellEditable(io,so)}function isCellEditable(eo,to){return eo.renderEditCell!=null&&(typeof eo.editable=="function"?eo.editable(to):eo.editable)!==!1}function getSelectedCellColSpan({rows:eo,topSummaryRows:to,bottomSummaryRows:no,rowIdx:io,mainHeaderRowIdx:so,lastFrozenColumnIndex:ao,column:lo}){const uo=(to==null?void 0:to.length)??0;if(io===so)return getColSpan(lo,ao,{type:"HEADER"});if(to&&io>so&&io<=uo+so)return getColSpan(lo,ao,{type:"SUMMARY",row:to[io+uo]});if(io>=0&&io{for(const Lo of so){const Go=Lo.idx;if(Go>$o)break;const Do=getSelectedCellColSpan({rows:ao,topSummaryRows:lo,bottomSummaryRows:uo,rowIdx:Ro,mainHeaderRowIdx:go,lastFrozenColumnIndex:ko,column:Lo});if(Do&&$o>Go&&$oPo.level+go,Bo=()=>{if(to){let Lo=io[$o].parent;for(;Lo!==void 0;){const Go=Mo(Lo);if(Ro===Go){$o=Lo.idx+Lo.colSpan;break}Lo=Lo.parent}}else if(eo){let Lo=io[$o].parent,Go=!1;for(;Lo!==void 0;){const Do=Mo(Lo);if(Ro>=Do){$o=Lo.idx,Ro=Do,Go=!0;break}Lo=Lo.parent}Go||($o=yo,Ro=So)}};if(Co(_o)&&(No(to),Ro=Go&&(Ro=Do,$o=Lo.idx),Lo=Lo.parent}}return{idx:$o,rowIdx:Ro}}function canExitGrid({maxColIdx:eo,minRowIdx:to,maxRowIdx:no,selectedPosition:{rowIdx:io,idx:so},shiftKey:ao}){return ao?so===0&&io===to:so===eo&&io===no}const cell="c1wupbe7-0-0-beta-39",cellClassname=`rdg-cell ${cell}`,cellFrozen="cd0kgiy7-0-0-beta-39",cellFrozenClassname=`rdg-cell-frozen ${cellFrozen}`,cellFrozenLast="c1730fa47-0-0-beta-39",cellFrozenLastClassname=`rdg-cell-frozen-last ${cellFrozenLast}`;function getRowStyle(eo,to){return to!==void 0?{"--rdg-grid-row-start":eo,"--rdg-row-height":`${to}px`}:{"--rdg-grid-row-start":eo}}function getHeaderCellStyle(eo,to,no){const io=to+1,so=`calc(${no-1} * var(--rdg-header-row-height))`;return eo.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:io,paddingBlockStart:so}:{insetBlockStart:`calc(${to-no} * var(--rdg-header-row-height))`,gridRowStart:io-no,gridRowEnd:io,paddingBlockStart:so}}function getCellStyle(eo,to=1){const no=eo.idx+1;return{gridColumnStart:no,gridColumnEnd:no+to,insetInlineStart:eo.frozen?`var(--rdg-frozen-left-${eo.idx})`:void 0}}function getCellClassname(eo,...to){return clsx(cellClassname,...to,eo.frozen&&cellFrozenClassname,eo.isLastFrozenColumn&&cellFrozenLastClassname)}const{min:min$5,max:max$5,round,floor,sign:sign$1,abs:abs$3}=Math;function assertIsValidKeyGetter(eo){if(typeof eo!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function clampColumnWidth(eo,{minWidth:to,maxWidth:no}){return eo=max$5(eo,to),typeof no=="number"&&no>=to?min$5(eo,no):eo}function getHeaderCellRowSpan(eo,to){return eo.parent===void 0?to:eo.level-eo.parent.level}const checkboxLabel="c1hs68w07-0-0-beta-39",checkboxLabelClassname=`rdg-checkbox-label ${checkboxLabel}`,checkboxInput="cojpd0n7-0-0-beta-39",checkboxInputClassname=`rdg-checkbox-input ${checkboxInput}`,checkbox="cwsfieb7-0-0-beta-39",checkboxClassname=`rdg-checkbox ${checkbox}`,checkboxLabelDisabled="c1fgadbl7-0-0-beta-39",checkboxLabelDisabledClassname=`rdg-checkbox-label-disabled ${checkboxLabelDisabled}`;function renderCheckbox({onChange:eo,...to}){function no(io){eo(io.target.checked,io.nativeEvent.shiftKey)}return jsxRuntimeExports.jsxs("label",{className:clsx(checkboxLabelClassname,to.disabled&&checkboxLabelDisabledClassname),children:[jsxRuntimeExports.jsx("input",{type:"checkbox",...to,className:checkboxInputClassname,onChange:no}),jsxRuntimeExports.jsx("div",{className:checkboxClassname})]})}function renderValue(eo){try{return eo.row[eo.column.key]}catch{return null}}const DataGridDefaultRenderersContext=reactExports.createContext(void 0),DataGridDefaultRenderersProvider=DataGridDefaultRenderersContext.Provider;function useDefaultRenderers(){return reactExports.useContext(DataGridDefaultRenderersContext)}const RowSelectionContext=reactExports.createContext(void 0),RowSelectionProvider=RowSelectionContext.Provider,RowSelectionChangeContext=reactExports.createContext(void 0),RowSelectionChangeProvider=RowSelectionChangeContext.Provider,SELECT_COLUMN_KEY="select-row",DEFAULT_COLUMN_WIDTH="auto",DEFAULT_COLUMN_MIN_WIDTH=50;function useCalculatedColumns({rawColumns:eo,defaultColumnOptions:to,measuredColumnWidths:no,resizedColumnWidths:io,viewportWidth:so,scrollLeft:ao,enableVirtualization:lo}){const uo=(to==null?void 0:to.width)??DEFAULT_COLUMN_WIDTH,ho=(to==null?void 0:to.minWidth)??DEFAULT_COLUMN_MIN_WIDTH,go=(to==null?void 0:to.maxWidth)??void 0,mo=(to==null?void 0:to.renderCell)??renderValue,yo=(to==null?void 0:to.sortable)??!1,So=(to==null?void 0:to.resizable)??!1,_o=(to==null?void 0:to.draggable)??!1,{columns:ko,colSpanColumns:Co,lastFrozenColumnIndex:$o,headerRowsCount:Ro}=reactExports.useMemo(()=>{let Go=-1,Do=1;const Uo=[];Ho(eo,1);function Ho(qo,Jo,ps){for(const Qo of qo){if("children"in Qo){const ys={name:Qo.name,parent:ps,idx:-1,colSpan:0,level:0,headerCellClass:Qo.headerCellClass};Ho(Qo.children,Jo+1,ys);continue}const hs=Qo.frozen??!1,gs={...Qo,parent:ps,idx:0,level:0,frozen:hs,isLastFrozenColumn:!1,width:Qo.width??uo,minWidth:Qo.minWidth??ho,maxWidth:Qo.maxWidth??go,sortable:Qo.sortable??yo,resizable:Qo.resizable??So,draggable:Qo.draggable??_o,renderCell:Qo.renderCell??mo};Uo.push(gs),hs&&Go++,Jo>Do&&(Do=Jo)}}Uo.sort(({key:qo,frozen:Jo},{key:ps,frozen:Qo})=>qo===SELECT_COLUMN_KEY?-1:ps===SELECT_COLUMN_KEY?1:Jo?Qo?0:-1:Qo?1:0);const Yo=[];return Uo.forEach((qo,Jo)=>{qo.idx=Jo,updateColumnParent(qo,Jo,0),qo.colSpan!=null&&Yo.push(qo)}),Go!==-1&&(Uo[Go].isLastFrozenColumn=!0),{columns:Uo,colSpanColumns:Yo,lastFrozenColumnIndex:Go,headerRowsCount:Do}},[eo,uo,ho,go,mo,So,yo,_o]),{templateColumns:Oo,layoutCssVars:No,totalFrozenColumnWidth:Mo,columnMetrics:Bo}=reactExports.useMemo(()=>{const Go=new Map;let Do=0,Uo=0;const Ho=[];for(const qo of ko){let Jo=io.get(qo.key)??no.get(qo.key)??qo.width;typeof Jo=="number"?Jo=clampColumnWidth(Jo,qo):Jo=qo.minWidth,Ho.push(`${Jo}px`),Go.set(qo,{width:Jo,left:Do}),Do+=Jo}if($o!==-1){const qo=Go.get(ko[$o]);Uo=qo.left+qo.width}const Yo={};for(let qo=0;qo<=$o;qo++){const Jo=ko[qo];Yo[`--rdg-frozen-left-${Jo.idx}`]=`${Go.get(Jo).left}px`}return{templateColumns:Ho,layoutCssVars:Yo,totalFrozenColumnWidth:Uo,columnMetrics:Go}},[no,io,ko,$o]),[Po,Lo]=reactExports.useMemo(()=>{if(!lo)return[0,ko.length-1];const Go=ao+Mo,Do=ao+so,Uo=ko.length-1,Ho=min$5($o+1,Uo);if(Go>=Do)return[Ho,Ho];let Yo=Ho;for(;YoGo)break;Yo++}let qo=Yo;for(;qo=Do)break;qo++}const Jo=max$5(Ho,Yo-1),ps=min$5(Uo,qo+1);return[Jo,ps]},[Bo,ko,$o,ao,Mo,so,lo]);return{columns:ko,colSpanColumns:Co,colOverscanStartIdx:Po,colOverscanEndIdx:Lo,templateColumns:Oo,layoutCssVars:No,headerRowsCount:Ro,lastFrozenColumnIndex:$o,totalFrozenColumnWidth:Mo}}function updateColumnParent(eo,to,no){if(no"u"?reactExports.useEffect:reactExports.useLayoutEffect;function useColumnWidths(eo,to,no,io,so,ao,lo,uo,ho,go){const mo=reactExports.useRef(so),yo=eo.length===to.length,So=yo&&so!==mo.current,_o=[...no],ko=[];for(const{key:Oo,idx:No,width:Mo}of to)typeof Mo=="string"&&(So||!lo.has(Oo))&&!ao.has(Oo)&&(_o[No]=Mo,ko.push(Oo));const Co=_o.join(" ");useLayoutEffect(()=>{mo.current=so,$o(ko)});function $o(Oo){Oo.length!==0&&ho(No=>{const Mo=new Map(No);let Bo=!1;for(const Po of Oo){const Lo=measureColumnWidth(io,Po);Bo||(Bo=Lo!==No.get(Po)),Lo===void 0?Mo.delete(Po):Mo.set(Po,Lo)}return Bo?Mo:No})}function Ro(Oo,No){const{key:Mo}=Oo,Bo=[...no],Po=[];for(const{key:Go,idx:Do,width:Uo}of to)if(Mo===Go){const Ho=typeof No=="number"?`${No}px`:No;Bo[Do]=Ho}else yo&&typeof Uo=="string"&&!ao.has(Go)&&(Bo[Do]=Uo,Po.push(Go));io.current.style.gridTemplateColumns=Bo.join(" ");const Lo=typeof No=="number"?No:measureColumnWidth(io,Mo);reactDomExports.flushSync(()=>{uo(Go=>{const Do=new Map(Go);return Do.set(Mo,Lo),Do}),$o(Po)}),go==null||go(Oo.idx,Lo)}return{gridTemplateColumns:Co,handleColumnResize:Ro}}function measureColumnWidth(eo,to){const no=`[data-measuring-cell-key="${CSS.escape(to)}"]`,io=eo.current.querySelector(no);return io==null?void 0:io.getBoundingClientRect().width}function useGridDimensions(){const eo=reactExports.useRef(null),[to,no]=reactExports.useState(1),[io,so]=reactExports.useState(1);return useLayoutEffect(()=>{const{ResizeObserver:ao}=window;if(ao==null)return;const{clientWidth:lo,clientHeight:uo,offsetWidth:ho,offsetHeight:go}=eo.current,{width:mo,height:yo}=eo.current.getBoundingClientRect(),So=mo-ho+lo,_o=yo-go+uo;no(So),so(_o);const ko=new ao(Co=>{const $o=Co[0].contentBoxSize[0];reactDomExports.flushSync(()=>{no($o.inlineSize),so($o.blockSize)})});return ko.observe(eo.current),()=>{ko.disconnect()}},[]),[eo,to,io]}function useLatestFunc(eo){const to=reactExports.useRef(eo);reactExports.useEffect(()=>{to.current=eo});const no=reactExports.useCallback((...io)=>{to.current(...io)},[]);return eo&&no}function useRovingTabIndex(eo){const[to,no]=reactExports.useState(!1);to&&!eo&&no(!1);function io(ao){ao.target!==ao.currentTarget&&no(!0)}return{tabIndex:eo&&!to?0:-1,childTabIndex:eo?0:-1,onFocus:eo?io:void 0}}function useViewportColumns({columns:eo,colSpanColumns:to,rows:no,topSummaryRows:io,bottomSummaryRows:so,colOverscanStartIdx:ao,colOverscanEndIdx:lo,lastFrozenColumnIndex:uo,rowOverscanStartIdx:ho,rowOverscanEndIdx:go}){const mo=reactExports.useMemo(()=>{if(ao===0)return 0;let yo=ao;const So=(_o,ko)=>ko!==void 0&&_o+ko>ao?(yo=_o,!0):!1;for(const _o of to){const ko=_o.idx;if(ko>=yo||So(ko,getColSpan(_o,uo,{type:"HEADER"})))break;for(let Co=ho;Co<=go;Co++){const $o=no[Co];if(So(ko,getColSpan(_o,uo,{type:"ROW",row:$o})))break}if(io!=null){for(const Co of io)if(So(ko,getColSpan(_o,uo,{type:"SUMMARY",row:Co})))break}if(so!=null){for(const Co of so)if(So(ko,getColSpan(_o,uo,{type:"SUMMARY",row:Co})))break}}return yo},[ho,go,no,io,so,ao,uo,to]);return reactExports.useMemo(()=>{const yo=[];for(let So=0;So<=lo;So++){const _o=eo[So];So{if(typeof to=="number")return{totalRowHeight:to*eo.length,gridTemplateRows:` repeat(${eo.length}, ${to}px)`,getRowTop:$o=>$o*to,getRowHeight:()=>to,findRowIdx:$o=>floor($o/to)};let So=0,_o=" ";const ko=eo.map($o=>{const Ro=to($o),Oo={top:So,height:Ro};return _o+=`${Ro}px `,So+=Ro,Oo}),Co=$o=>max$5(0,min$5(eo.length-1,$o));return{totalRowHeight:So,gridTemplateRows:_o,getRowTop:$o=>ko[Co($o)].top,getRowHeight:$o=>ko[Co($o)].height,findRowIdx($o){let Ro=0,Oo=ko.length-1;for(;Ro<=Oo;){const No=Ro+floor((Oo-Ro)/2),Mo=ko[No].top;if(Mo===$o)return No;if(Mo<$o?Ro=No+1:Mo>$o&&(Oo=No-1),Ro>Oo)return Oo}return 0}}},[to,eo]);let mo=0,yo=eo.length-1;if(so){const _o=go(io),ko=go(io+no);mo=max$5(0,_o-4),yo=min$5(eo.length-1,ko+4)}return{rowOverscanStartIdx:mo,rowOverscanEndIdx:yo,totalRowHeight:ao,gridTemplateRows:lo,getRowTop:uo,getRowHeight:ho,findRowIdx:go}}const cellDragHandle="cadd3bp7-0-0-beta-39",cellDragHandleFrozenClassname="ccmuez27-0-0-beta-39",cellDragHandleClassname=`rdg-cell-drag-handle ${cellDragHandle}`;function DragHandle({gridRowStart:eo,rows:to,columns:no,selectedPosition:io,latestDraggedOverRowIdx:so,isCellEditable:ao,onRowsChange:lo,onFill:uo,onClick:ho,setDragging:go,setDraggedOverRowIdx:mo}){var Mo;const{idx:yo,rowIdx:So}=io,_o=no[yo];function ko(Bo){if(Bo.preventDefault(),Bo.buttons!==1)return;go(!0),window.addEventListener("mouseover",Po),window.addEventListener("mouseup",Lo);function Po(Go){Go.buttons!==1&&Lo()}function Lo(){window.removeEventListener("mouseover",Po),window.removeEventListener("mouseup",Lo),go(!1),Co()}}function Co(){const Bo=so.current;if(Bo===void 0)return;const Po=So0&&(lo==null||lo(Do,{indexes:Uo,column:Lo}))}const Oo=((Mo=_o.colSpan)==null?void 0:Mo.call(_o,{type:"ROW",row:to[So]}))??1,No=getCellStyle(_o,Oo);return jsxRuntimeExports.jsx("div",{style:{...No,gridRowStart:eo,insetInlineStart:No.insetInlineStart&&typeof _o.width=="number"?`calc(${No.insetInlineStart} + ${_o.width}px - var(--rdg-drag-handle-size))`:void 0},className:clsx(cellDragHandleClassname,_o.frozen&&cellDragHandleFrozenClassname),onClick:ho,onMouseDown:ko,onDoubleClick:$o})}const cellEditing="c1tngyp17-0-0-beta-39";function EditCell({column:eo,colSpan:to,row:no,rowIdx:io,onRowChange:so,closeEditor:ao,onKeyDown:lo,navigate:uo}){var Ro,Oo,No;const ho=reactExports.useRef(),go=((Ro=eo.editorOptions)==null?void 0:Ro.commitOnOutsideClick)!==!1,mo=useLatestFunc(()=>{_o(!0,!1)});reactExports.useEffect(()=>{if(!go)return;function Mo(){ho.current=requestAnimationFrame(mo)}return addEventListener("mousedown",Mo,{capture:!0}),()=>{removeEventListener("mousedown",Mo,{capture:!0}),yo()}},[go,mo]);function yo(){cancelAnimationFrame(ho.current)}function So(Mo){if(lo){const Bo=createCellEvent(Mo);if(lo({mode:"EDIT",row:no,column:eo,rowIdx:io,navigate(){uo(Mo)},onClose:_o},Bo),Bo.isGridDefaultPrevented())return}Mo.key==="Escape"?_o():Mo.key==="Enter"?_o(!0):onEditorNavigation(Mo)&&uo(Mo)}function _o(Mo=!1,Bo=!0){Mo?so(no,!0,Bo):ao(Bo)}function ko(Mo,Bo=!1){so(Mo,Bo,Bo)}const{cellClass:Co}=eo,$o=getCellClassname(eo,"rdg-editor-container",typeof Co=="function"?Co(no):Co,!((Oo=eo.editorOptions)!=null&&Oo.displayCellContent)&&cellEditing);return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":!0,className:$o,style:getCellStyle(eo,to),onKeyDown:So,onMouseDownCapture:yo,children:eo.renderEditCell!=null&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[eo.renderEditCell({column:eo,row:no,onRowChange:ko,onClose:_o}),((No=eo.editorOptions)==null?void 0:No.displayCellContent)&&eo.renderCell({column:eo,row:no,isCellEditable:!0,tabIndex:-1,onRowChange:ko})]})})}function GroupedColumnHeaderCell({column:eo,rowIdx:to,isCellSelected:no,selectCell:io}){const{tabIndex:so,onFocus:ao}=useRovingTabIndex(no),{colSpan:lo}=eo,uo=getHeaderCellRowSpan(eo,to),ho=eo.idx+1;function go(){io({idx:eo.idx,rowIdx:to})}return jsxRuntimeExports.jsx("div",{role:"columnheader","aria-colindex":ho,"aria-colspan":lo,"aria-rowspan":uo,"aria-selected":no,tabIndex:so,className:clsx(cellClassname,eo.headerCellClass),style:{...getHeaderCellStyle(eo,to,uo),gridColumnStart:ho,gridColumnEnd:ho+lo},onFocus:ao,onClick:go,children:eo.name})}const headerSortCellClassname="hizp7y17-0-0-beta-39",headerSortName="h14cojrm7-0-0-beta-39",headerSortNameClassname=`rdg-header-sort-name ${headerSortName}`;function renderHeaderCell({column:eo,sortDirection:to,priority:no}){return eo.sortable?jsxRuntimeExports.jsx(SortableHeaderCell,{sortDirection:to,priority:no,children:eo.name}):eo.name}function SortableHeaderCell({sortDirection:eo,priority:to,children:no}){const io=useDefaultRenderers().renderSortStatus;return jsxRuntimeExports.jsxs("span",{className:headerSortCellClassname,children:[jsxRuntimeExports.jsx("span",{className:headerSortNameClassname,children:no}),jsxRuntimeExports.jsx("span",{children:io({sortDirection:eo,priority:to})})]})}const cellSortableClassname="celq7o97-0-0-beta-39",cellResizable="ceqw94e7-0-0-beta-39",cellResizableClassname=`rdg-cell-resizable ${cellResizable}`,resizeHandleClassname="r12jy2ca7-0-0-beta-39",cellDragging="c1j3os1p7-0-0-beta-39",cellDraggingClassname=`rdg-cell-dragging ${cellDragging}`,cellOver="c1ui3nad7-0-0-beta-39",cellOverClassname=`rdg-cell-drag-over ${cellOver}`;function HeaderCell({column:eo,colSpan:to,rowIdx:no,isCellSelected:io,onColumnResize:so,onColumnsReorder:ao,sortColumns:lo,onSortColumnsChange:uo,selectCell:ho,shouldFocusGrid:go,direction:mo}){const[yo,So]=reactExports.useState(!1),[_o,ko]=reactExports.useState(!1),Co=mo==="rtl",$o=getHeaderCellRowSpan(eo,no),{tabIndex:Ro,childTabIndex:Oo,onFocus:No}=useRovingTabIndex(io),Mo=lo==null?void 0:lo.findIndex(qs=>qs.columnKey===eo.key),Bo=Mo!==void 0&&Mo>-1?lo[Mo]:void 0,Po=Bo==null?void 0:Bo.direction,Lo=Bo!==void 0&&lo.length>1?Mo+1:void 0,Go=Po&&!Lo?Po==="ASC"?"ascending":"descending":void 0,{sortable:Do,resizable:Uo,draggable:Ho}=eo,Yo=getCellClassname(eo,eo.headerCellClass,Do&&cellSortableClassname,Uo&&cellResizableClassname,yo&&cellDraggingClassname,_o&&cellOverClassname),qo=eo.renderHeaderCell??renderHeaderCell;function Jo(qs){if(qs.pointerType==="mouse"&&qs.buttons!==1)return;const{currentTarget:ga,pointerId:Fs}=qs,Js=ga.parentElement,{right:Vs,left:El}=Js.getBoundingClientRect(),yl=Co?qs.clientX-El:Vs-qs.clientX;function Gl(du){du.preventDefault();const{right:Ol,left:Fu}=Js.getBoundingClientRect(),ju=Co?Ol+yl-du.clientX:du.clientX+yl-Fu;ju>0&&so(eo,clampColumnWidth(ju,eo))}function Qs(){ga.removeEventListener("pointermove",Gl),ga.removeEventListener("lostpointercapture",Qs)}ga.setPointerCapture(Fs),ga.addEventListener("pointermove",Gl),ga.addEventListener("lostpointercapture",Qs)}function ps(qs){if(uo==null)return;const{sortDescendingFirst:ga}=eo;if(Bo===void 0){const Fs={columnKey:eo.key,direction:ga?"DESC":"ASC"};uo(lo&&qs?[...lo,Fs]:[Fs])}else{let Fs;if((ga===!0&&Po==="DESC"||ga!==!0&&Po==="ASC")&&(Fs={columnKey:eo.key,direction:Po==="ASC"?"DESC":"ASC"}),qs){const Js=[...lo];Fs?Js[Mo]=Fs:Js.splice(Mo,1),uo(Js)}else uo(Fs?[Fs]:[])}}function Qo(qs){ho({idx:eo.idx,rowIdx:no}),Do&&ps(qs.ctrlKey||qs.metaKey)}function hs(){so(eo,"max-content")}function gs(qs){No==null||No(qs),go&&ho({idx:0,rowIdx:no})}function ys(qs){(qs.key===" "||qs.key==="Enter")&&(qs.preventDefault(),ps(qs.ctrlKey||qs.metaKey))}function vs(qs){qs.dataTransfer.setData("text/plain",eo.key),qs.dataTransfer.dropEffect="move",So(!0)}function ks(){So(!1)}function Os(qs){qs.preventDefault(),qs.dataTransfer.dropEffect="move"}function Ts(qs){ko(!1);const ga=qs.dataTransfer.getData("text/plain");ga!==eo.key&&(qs.preventDefault(),ao==null||ao(ga,eo.key))}function Xs(qs){isEventPertinent(qs)&&ko(!0)}function Ws(qs){isEventPertinent(qs)&&ko(!1)}let Ps;return Ho&&(Ps={draggable:!0,onDragStart:vs,onDragEnd:ks,onDragOver:Os,onDragEnter:Xs,onDragLeave:Ws,onDrop:Ts}),jsxRuntimeExports.jsxs("div",{role:"columnheader","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-rowspan":$o,"aria-selected":io,"aria-sort":Go,tabIndex:go?0:Ro,className:Yo,style:{...getHeaderCellStyle(eo,no,$o),...getCellStyle(eo,to)},onFocus:gs,onClick:Qo,onKeyDown:Do?ys:void 0,...Ps,children:[qo({column:eo,sortDirection:Po,priority:Lo,tabIndex:Oo}),Uo&&jsxRuntimeExports.jsx("div",{className:resizeHandleClassname,onClick:stopPropagation,onDoubleClick:hs,onPointerDown:Jo})]})}function isEventPertinent(eo){const to=eo.relatedTarget;return!eo.currentTarget.contains(to)}const row="r1otpg647-0-0-beta-39",rowClassname=`rdg-row ${row}`,rowSelected="rel5gk27-0-0-beta-39",rowSelectedClassname="rdg-row-selected",rowSelectedWithFrozenCell="r1qymf1z7-0-0-beta-39",headerRow="h197vzie7-0-0-beta-39",headerRowClassname=`rdg-header-row ${headerRow}`;function HeaderRow({rowIdx:eo,columns:to,onColumnResize:no,onColumnsReorder:io,sortColumns:so,onSortColumnsChange:ao,lastFrozenColumnIndex:lo,selectedCellIdx:uo,selectCell:ho,shouldFocusGrid:go,direction:mo}){const yo=[];for(let So=0;Soto&&ho.parent!==void 0;)ho=ho.parent;if(ho.level===to&&!lo.has(ho)){lo.add(ho);const{idx:go}=ho;ao.push(jsxRuntimeExports.jsx(GroupedColumnHeaderCell,{column:ho,rowIdx:eo,isCellSelected:io===go,selectCell:so},go))}}}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":eo,className:headerRowClassname,children:ao})}const GroupedColumnHeaderRow$1=reactExports.memo(GroupedColumnHeaderRow),cellCopied="ccpfvsn7-0-0-beta-39",cellCopiedClassname=`rdg-cell-copied ${cellCopied}`,cellDraggedOver="c1bmg16t7-0-0-beta-39",cellDraggedOverClassname=`rdg-cell-dragged-over ${cellDraggedOver}`;function Cell({column:eo,colSpan:to,isCellSelected:no,isCopied:io,isDraggedOver:so,row:ao,rowIdx:lo,onClick:uo,onDoubleClick:ho,onContextMenu:go,onRowChange:mo,selectCell:yo,...So}){const{tabIndex:_o,childTabIndex:ko,onFocus:Co}=useRovingTabIndex(no),{cellClass:$o}=eo,Ro=getCellClassname(eo,typeof $o=="function"?$o(ao):$o,io&&cellCopiedClassname,so&&cellDraggedOverClassname),Oo=isCellEditable(eo,ao);function No(Go){yo({rowIdx:lo,idx:eo.idx},Go)}function Mo(Go){if(uo){const Do=createCellEvent(Go);if(uo({row:ao,column:eo,selectCell:No},Do),Do.isGridDefaultPrevented())return}No()}function Bo(Go){if(go){const Do=createCellEvent(Go);if(go({row:ao,column:eo,selectCell:No},Do),Do.isGridDefaultPrevented())return}No()}function Po(Go){if(ho){const Do=createCellEvent(Go);if(ho({row:ao,column:eo,selectCell:No},Do),Do.isGridDefaultPrevented())return}No(!0)}function Lo(Go){mo(eo,Go)}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":no,"aria-readonly":!Oo||void 0,tabIndex:_o,className:Ro,style:getCellStyle(eo,to),onClick:Mo,onDoubleClick:Po,onContextMenu:Bo,onFocus:Co,...So,children:eo.renderCell({column:eo,row:ao,isCellEditable:Oo,tabIndex:ko,onRowChange:Lo})})}const Cell$1=reactExports.memo(Cell);function Row({className:eo,rowIdx:to,gridRowStart:no,height:io,selectedCellIdx:so,isRowSelected:ao,copiedCellIdx:lo,draggedOverCellIdx:uo,lastFrozenColumnIndex:ho,row:go,viewportColumns:mo,selectedCellEditor:yo,onCellClick:So,onCellDoubleClick:_o,onCellContextMenu:ko,rowClass:Co,setDraggedOverRowIdx:$o,onMouseEnter:Ro,onRowChange:Oo,selectCell:No,...Mo},Bo){const Po=useLatestFunc((Do,Uo)=>{Oo(Do,to,Uo)});function Lo(Do){$o==null||$o(to),Ro==null||Ro(Do)}eo=clsx(rowClassname,`rdg-row-${to%2===0?"even":"odd"}`,Co==null?void 0:Co(go,to),eo,so===-1&&rowSelectedClassname);const Go=[];for(let Do=0;Do{scrollIntoView$2(so.current)}),useLayoutEffect(()=>{function ao(){io(null)}const lo=new IntersectionObserver(ao,{root:no,threshold:1});return lo.observe(so.current),()=>{lo.disconnect()}},[no,io]),jsxRuntimeExports.jsx("div",{ref:so,style:{gridColumn:eo===void 0?"1/-1":eo+1,gridRow:to===void 0?"1/-1":to+2}})}const arrow="a1mygwml7-0-0-beta-39",arrowClassname=`rdg-sort-arrow ${arrow}`;function renderSortStatus({sortDirection:eo,priority:to}){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderSortIcon({sortDirection:eo}),renderSortPriority({priority:to})]})}function renderSortIcon({sortDirection:eo}){return eo===void 0?null:jsxRuntimeExports.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:arrowClassname,"aria-hidden":!0,children:jsxRuntimeExports.jsx("path",{d:eo==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function renderSortPriority({priority:eo}){return eo}const root$4="r104f42s7-0-0-beta-39",rootClassname=`rdg ${root$4}`,viewportDragging="v7ly7s7-0-0-beta-39",viewportDraggingClassname=`rdg-viewport-dragging ${viewportDragging}`,focusSinkClassname="fc4f4zb7-0-0-beta-39",focusSinkHeaderAndSummaryClassname="fq51q037-0-0-beta-39",summaryCellClassname="s1n3hxke7-0-0-beta-39";function SummaryCell({column:eo,colSpan:to,row:no,rowIdx:io,isCellSelected:so,selectCell:ao}){var So;const{tabIndex:lo,childTabIndex:uo,onFocus:ho}=useRovingTabIndex(so),{summaryCellClass:go}=eo,mo=getCellClassname(eo,summaryCellClassname,typeof go=="function"?go(no):go);function yo(){ao({rowIdx:io,idx:eo.idx})}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":so,tabIndex:lo,className:mo,style:getCellStyle(eo,to),onClick:yo,onFocus:ho,children:(So=eo.renderSummaryCell)==null?void 0:So.call(eo,{column:eo,row:no,tabIndex:uo})})}const SummaryCell$1=reactExports.memo(SummaryCell),summaryRow="snfqesz7-0-0-beta-39",topSummaryRow="t1jijrjz7-0-0-beta-39",topSummaryRowBorderClassname="t14bmecc7-0-0-beta-39",bottomSummaryRowBorderClassname="b1odhhml7-0-0-beta-39",summaryRowClassname=`rdg-summary-row ${summaryRow}`,topSummaryRowClassname=`rdg-top-summary-row ${topSummaryRow}`;function SummaryRow({rowIdx:eo,gridRowStart:to,row:no,viewportColumns:io,top:so,bottom:ao,lastFrozenColumnIndex:lo,selectedCellIdx:uo,isTop:ho,showBorder:go,selectCell:mo,"aria-rowindex":yo}){const So=[];for(let _o=0;_onew Map),[F1,y1]=reactExports.useState(()=>new Map),[r1,$u]=reactExports.useState(null),[Kl,Is]=reactExports.useState(!1),[Ks,Bs]=reactExports.useState(void 0),[Ds,Zs]=reactExports.useState(null),[Cl,ba,fu]=useGridDimensions(),{columns:Lu,colSpanColumns:e1,lastFrozenColumnIndex:Gu,headerRowsCount:w1,colOverscanStartIdx:Zu,colOverscanEndIdx:L1,templateColumns:K1,layoutCssVars:yp,totalFrozenColumnWidth:wp}=useCalculatedColumns({rawColumns:no,defaultColumnOptions:Co,measuredColumnWidths:F1,resizedColumnWidths:Fu,scrollLeft:du,viewportWidth:ba,enableVirtualization:El}),j0=(so==null?void 0:so.length)??0,h0=(ao==null?void 0:ao.length)??0,cp=j0+h0,k0=w1+j0,ap=w1-1,x0=-k0,b0=x0+ap,P1=io.length+h0-1,[c1,V0]=reactExports.useState(()=>({idx:-1,rowIdx:x0-1,mode:"SELECT"})),P0=reactExports.useRef(c1),up=reactExports.useRef(Ks),Lp=reactExports.useRef(-1),Mv=reactExports.useRef(null),$v=reactExports.useRef(!1),Gv=Xs==="treegrid",C1=w1*Ps,Ll=fu-C1-cp*qs,Ul=yo!=null&&So!=null,_l=yl==="rtl",$l=_l?"ArrowRight":"ArrowLeft",Us=_l?"ArrowLeft":"ArrowRight",Rl=ks??w1+io.length+cp,Sl=reactExports.useMemo(()=>({renderCheckbox:Js,renderSortStatus:Fs}),[Js,Fs]),eu=reactExports.useMemo(()=>{const{length:A0}=io;return A0!==0&&yo!=null&&lo!=null&&yo.size>=A0&&io.every(Y0=>yo.has(lo(Y0)))},[io,yo,lo]),{rowOverscanStartIdx:_c,rowOverscanEndIdx:zu,totalRowHeight:N1,gridTemplateRows:K0,getRowTop:J0,getRowHeight:S1,findRowIdx:O1}=useViewportRows({rows:io,rowHeight:Ws,clientHeight:Ll,scrollTop:Gl,enableVirtualization:El}),r0=useViewportColumns({columns:Lu,colSpanColumns:e1,colOverscanStartIdx:Zu,colOverscanEndIdx:L1,lastFrozenColumnIndex:Gu,rowOverscanStartIdx:_c,rowOverscanEndIdx:zu,rows:io,topSummaryRows:so,bottomSummaryRows:ao}),{gridTemplateColumns:I1,handleColumnResize:R0}=useColumnWidths(Lu,r0,K1,Cl,ba,Fu,F1,ju,y1,Po),tu=Gv?-1:0,T2=Lu.length-1,hu=q7(c1),Z2=V7(c1),r_=useLatestFunc(R0),G4=useLatestFunc(Lo),bE=useLatestFunc(ko),hw=useLatestFunc($o),Ay=useLatestFunc(Ro),NS=useLatestFunc(Oo),i_=useLatestFunc(DS),JE=useLatestFunc(LS),_k=useLatestFunc(t$),W4=useLatestFunc(({idx:A0,rowIdx:Y0})=>{t$({rowIdx:x0+Y0-1,idx:A0})});useLayoutEffect(()=>{if(!hu||isSamePosition(c1,P0.current)){P0.current=c1;return}P0.current=c1,c1.idx===-1&&(Mv.current.focus({preventScroll:!0}),scrollIntoView$2(Mv.current))}),useLayoutEffect(()=>{$v.current&&($v.current=!1,ZR())}),reactExports.useImperativeHandle(to,()=>({element:Cl.current,scrollToCell({idx:A0,rowIdx:Y0}){const Rm=A0!==void 0&&A0>Gu&&A0{Bs(A0),up.current=A0},[]);function DS(A0){if(!So)return;if(assertIsValidKeyGetter(lo),A0.type==="HEADER"){const i2=new Set(yo);for(const f2 of io){const Ox=lo(f2);A0.checked?i2.add(Ox):i2.delete(Ox)}So(i2);return}const{row:Y0,checked:Rm,isShiftClick:wm}=A0,jp=new Set(yo),im=lo(Y0);if(Rm){jp.add(im);const i2=Lp.current,f2=io.indexOf(Y0);if(Lp.current=f2,wm&&i2!==-1&&i2!==f2){const Ox=sign$1(f2-i2);for(let P5=i2+Ox;P5!==f2;P5+=Ox){const hC=io[P5];jp.add(lo(hC))}}}else jp.delete(im),Lp.current=-1;So(jp)}function Tw(A0){const{idx:Y0,rowIdx:Rm,mode:wm}=c1;if(wm==="EDIT")return;if(No&&BS(Rm)){const f2=io[Rm],Ox=createCellEvent(A0);if(No({mode:"SELECT",row:f2,column:Lu[Y0],rowIdx:Rm,selectCell:t$},Ox),Ox.isGridDefaultPrevented())return}if(!(A0.target instanceof Element))return;const jp=A0.target.closest(".rdg-cell")!==null,im=Gv&&A0.target===Mv.current;if(!jp&&!im)return;const{keyCode:i2}=A0;if(Z2&&(Uo!=null||Do!=null)&&isCtrlKeyHeldDown(A0)){if(i2===67){D_();return}if(i2===86){K4();return}}switch(A0.key){case"Escape":$u(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":vM(A0);break;default:cC(A0);break}}function yE(A0){const{scrollTop:Y0,scrollLeft:Rm}=A0.currentTarget;reactDomExports.flushSync(()=>{Qs(Y0),Ol(abs$3(Rm))}),Bo==null||Bo(A0)}function LS(A0,Y0,Rm){if(typeof uo!="function"||Rm===io[Y0])return;const wm=[...io];wm[Y0]=Rm,uo(wm,{indexes:[Y0],column:A0})}function U4(){c1.mode==="EDIT"&&LS(Lu[c1.idx],c1.rowIdx,c1.row)}function D_(){const{idx:A0,rowIdx:Y0}=c1,Rm=io[Y0],wm=Lu[A0].key;$u({row:Rm,columnKey:wm}),Do==null||Do({sourceRow:Rm,sourceColumnKey:wm})}function K4(){if(!Uo||!uo||r1===null||!fC(c1))return;const{idx:A0,rowIdx:Y0}=c1,Rm=Lu[A0],wm=io[Y0],jp=Uo({sourceRow:r1.row,sourceColumnKey:r1.columnKey,targetRow:wm,targetColumnKey:Rm.key});LS(Rm,Y0,jp)}function cC(A0){if(!Z2)return;const Y0=io[c1.rowIdx],{key:Rm,shiftKey:wm}=A0;if(Ul&&wm&&Rm===" "){assertIsValidKeyGetter(lo);const jp=lo(Y0);DS({type:"ROW",row:Y0,checked:!yo.has(jp),isShiftClick:!1}),A0.preventDefault();return}fC(c1)&&isDefaultCellInput(A0)&&V0(({idx:jp,rowIdx:im})=>({idx:jp,rowIdx:im,mode:"EDIT",row:Y0,originalRow:Y0}))}function uC(A0){return A0>=tu&&A0<=T2}function BS(A0){return A0>=0&&A0=x0&&Y0<=P1&&uC(A0)}function V7({idx:A0,rowIdx:Y0}){return BS(Y0)&&uC(A0)}function fC(A0){return V7(A0)&&isSelectedCellEditable({columns:Lu,rows:io,selectedPosition:A0})}function t$(A0,Y0){if(!q7(A0))return;U4();const Rm=io[A0.rowIdx],wm=isSamePosition(c1,A0);Y0&&fC(A0)?V0({...A0,mode:"EDIT",row:Rm,originalRow:Rm}):wm?scrollIntoView$2(getCellToScroll(Cl.current)):($v.current=!0,V0({...A0,mode:"SELECT"})),Mo&&!wm&&Mo({rowIdx:A0.rowIdx,row:Rm,column:Lu[A0.idx]})}function dP(A0,Y0,Rm){const{idx:wm,rowIdx:jp}=c1,im=hu&&wm===-1;switch(A0){case"ArrowUp":return{idx:wm,rowIdx:jp-1};case"ArrowDown":return{idx:wm,rowIdx:jp+1};case $l:return{idx:wm-1,rowIdx:jp};case Us:return{idx:wm+1,rowIdx:jp};case"Tab":return{idx:wm+(Rm?-1:1),rowIdx:jp};case"Home":return im?{idx:wm,rowIdx:x0}:{idx:0,rowIdx:Y0?x0:jp};case"End":return im?{idx:wm,rowIdx:P1}:{idx:T2,rowIdx:Y0?P1:jp};case"PageUp":{if(c1.rowIdx===x0)return c1;const i2=J0(jp)+S1(jp)-Ll;return{idx:wm,rowIdx:i2>0?O1(i2):0}}case"PageDown":{if(c1.rowIdx>=io.length)return c1;const i2=J0(jp)+Ll;return{idx:wm,rowIdx:i2A0&&A0>=Ks)?c1.idx:void 0}function ZR(){const A0=getCellToScroll(Cl.current);if(A0===null)return;scrollIntoView$2(A0),(A0.querySelector('[tabindex="0"]')??A0).focus({preventScroll:!0})}function pP(){if(!(Go==null||c1.mode==="EDIT"||!V7(c1)))return jsxRuntimeExports.jsx(DragHandle,{gridRowStart:k0+c1.rowIdx+1,rows:io,columns:Lu,selectedPosition:c1,isCellEditable:fC,latestDraggedOverRowIdx:up,onRowsChange:uo,onClick:ZR,onFill:Go,setDragging:Is,setDraggedOverRowIdx:B2})}function gP(A0){if(c1.rowIdx!==A0||c1.mode==="SELECT")return;const{idx:Y0,row:Rm}=c1,wm=Lu[Y0],jp=getColSpan(wm,Gu,{type:"ROW",row:Rm}),im=f2=>{$v.current=f2,V0(({idx:Ox,rowIdx:P5})=>({idx:Ox,rowIdx:P5,mode:"SELECT"}))},i2=(f2,Ox,P5)=>{Ox?reactDomExports.flushSync(()=>{LS(wm,c1.rowIdx,f2),im(P5)}):V0(hC=>({...hC,row:f2}))};return io[c1.rowIdx]!==c1.originalRow&&im(!1),jsxRuntimeExports.jsx(EditCell,{column:wm,colSpan:jp,row:Rm,rowIdx:A0,onRowChange:i2,closeEditor:im,onKeyDown:No,navigate:vM},wm.key)}function VA(A0){const Y0=c1.idx===-1?void 0:Lu[c1.idx];return Y0!==void 0&&c1.rowIdx===A0&&!r0.includes(Y0)?c1.idx>L1?[...r0,Y0]:[...r0.slice(0,Gu+1),Y0,...r0.slice(Gu+1)]:r0}function mP(){const A0=[],{idx:Y0,rowIdx:Rm}=c1,wm=Z2&&Rm<_c?_c-1:_c,jp=Z2&&Rm>zu?zu+1:zu;for(let im=wm;im<=jp;im++){const i2=im===_c-1||im===zu+1,f2=i2?Rm:im;let Ox=r0;const P5=Y0===-1?void 0:Lu[Y0];P5!==void 0&&(i2?Ox=[P5]:Ox=VA(f2));const hC=io[f2],vP=k0+f2+1;let G7=f2,eO=!1;typeof lo=="function"&&(G7=lo(hC),eO=(yo==null?void 0:yo.has(G7))??!1),A0.push(ga(G7,{"aria-rowindex":k0+f2+1,"aria-selected":Ul?eO:void 0,rowIdx:f2,row:hC,viewportColumns:Ox,isRowSelected:eO,onCellClick:hw,onCellDoubleClick:Ay,onCellContextMenu:NS,rowClass:ps,gridRowStart:vP,height:S1(f2),copiedCellIdx:r1!==null&&r1.row===hC?Lu.findIndex(Ix=>Ix.key===r1.columnKey):void 0,selectedCellIdx:Rm===f2?Y0:void 0,draggedOverCellIdx:hP(f2),setDraggedOverRowIdx:Kl?B2:void 0,lastFrozenColumnIndex:Gu,onRowChange:JE,selectCell:_k,selectedCellEditor:gP(f2)}))}return A0}(c1.idx>T2||c1.rowIdx>P1)&&(V0({idx:-1,rowIdx:x0-1,mode:"SELECT"}),B2(void 0));let dC=`repeat(${w1}, ${Ps}px)`;j0>0&&(dC+=` repeat(${j0}, ${qs}px)`),io.length>0&&(dC+=K0),h0>0&&(dC+=` repeat(${h0}, ${qs}px)`);const JR=c1.idx===-1&&c1.rowIdx!==x0-1;return jsxRuntimeExports.jsxs("div",{role:Xs,"aria-label":gs,"aria-labelledby":ys,"aria-describedby":vs,"aria-multiselectable":Ul?!0:void 0,"aria-colcount":Lu.length,"aria-rowcount":Rl,className:clsx(rootClassname,qo,Kl&&viewportDraggingClassname),style:{...Jo,scrollPaddingInlineStart:c1.idx>Gu||(Ds==null?void 0:Ds.idx)!==void 0?`${wp}px`:void 0,scrollPaddingBlock:BS(c1.rowIdx)||(Ds==null?void 0:Ds.rowIdx)!==void 0?`${C1+j0*qs}px ${h0*qs}px`:void 0,gridTemplateColumns:I1,gridTemplateRows:dC,"--rdg-header-row-height":`${Ps}px`,"--rdg-summary-row-height":`${qs}px`,"--rdg-sign":_l?-1:1,...yp},dir:yl,ref:Cl,onScroll:yE,onKeyDown:Tw,"data-testid":Os,children:[jsxRuntimeExports.jsx(DataGridDefaultRenderersProvider,{value:Sl,children:jsxRuntimeExports.jsxs(RowSelectionChangeProvider,{value:i_,children:[jsxRuntimeExports.jsxs(RowSelectionProvider,{value:eu,children:[Array.from({length:ap},(A0,Y0)=>jsxRuntimeExports.jsx(GroupedColumnHeaderRow$1,{rowIdx:Y0+1,level:-ap+Y0,columns:VA(x0+Y0),selectedCellIdx:c1.rowIdx===x0+Y0?c1.idx:void 0,selectCell:W4},Y0)),jsxRuntimeExports.jsx(HeaderRow$1,{rowIdx:w1,columns:VA(b0),onColumnResize:r_,onColumnsReorder:G4,sortColumns:_o,onSortColumnsChange:bE,lastFrozenColumnIndex:Gu,selectedCellIdx:c1.rowIdx===b0?c1.idx:void 0,selectCell:W4,shouldFocusGrid:!hu,direction:yl})]}),io.length===0&&Vs?Vs:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[so==null?void 0:so.map((A0,Y0)=>{const Rm=w1+1+Y0,wm=b0+1+Y0,jp=c1.rowIdx===wm,im=C1+qs*Y0;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":Rm,rowIdx:wm,gridRowStart:Rm,row:A0,top:im,bottom:void 0,viewportColumns:VA(wm),lastFrozenColumnIndex:Gu,selectedCellIdx:jp?c1.idx:void 0,isTop:!0,showBorder:Y0===j0-1,selectCell:_k},Y0)}),mP(),ao==null?void 0:ao.map((A0,Y0)=>{const Rm=k0+io.length+Y0+1,wm=io.length+Y0,jp=c1.rowIdx===wm,im=Ll>N1?fu-qs*(ao.length-Y0):void 0,i2=im===void 0?qs*(ao.length-1-Y0):void 0;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":Rl-h0+Y0+1,rowIdx:wm,gridRowStart:Rm,row:A0,top:im,bottom:i2,viewportColumns:VA(wm),lastFrozenColumnIndex:Gu,selectedCellIdx:jp?c1.idx:void 0,isTop:!1,showBorder:Y0===0,selectCell:_k},Y0)})]})]})}),pP(),renderMeasuringCells(r0),Gv&&jsxRuntimeExports.jsx("div",{ref:Mv,tabIndex:JR?0:-1,className:clsx(focusSinkClassname,JR&&[rowSelected,Gu!==-1&&rowSelectedWithFrozenCell],!BS(c1.rowIdx)&&focusSinkHeaderAndSummaryClassname),style:{gridRowStart:c1.rowIdx+k0+1}}),Ds!==null&&jsxRuntimeExports.jsx(ScrollToCell,{scrollToPosition:Ds,setScrollToCellPosition:Zs,gridElement:Cl.current})]})}function getCellToScroll(eo){return eo.querySelector(':scope > [role="row"] > [tabindex="0"]')}function isSamePosition(eo,to){return eo.idx===to.idx&&eo.rowIdx===to.rowIdx}const DataGrid$1$1=reactExports.forwardRef(DataGrid$2),useGanttViewModel=()=>{const[eo]=useInjected(GanttViewModelToken);return eo},useGanttViewRows=()=>{const eo=useGanttViewModel();return useState(eo.rows$).toArray()},useToggleSubRows=()=>{const eo=useGanttViewModel();return reactExports.useCallback(to=>{eo.toggleRow(to)},[eo])},useTasksTimeBoundaries=()=>{const eo=useGanttViewModel();return[eo.startTime,eo.endTime]},useSelectedRow=()=>{const eo=useGanttViewModel();return useState(eo.selectedRowId$)},useSetSelectedRow=()=>{const eo=useGanttViewModel();return useSetState(eo.selectedRowId$)},GanttChartCell=({row:eo})=>{const[to,no]=useTasksTimeBoundaries(),io=`${(eo.startTime-to)*100/(no-to)}%`,so=`${(no-eo.endTime)*100/(no-to)}%`,ao=eo.children&&eo.children.length>0,lo=eo.isExpanded;return jsxRuntimeExports.jsx("div",{style:{marginLeft:io,marginRight:so,height:"100%",marginTop:4,marginBottom:4,display:"flex"},children:ao&&!lo?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(eo.children??[]).map((uo,ho)=>{const go=`${(uo.endTime-uo.startTime)*100/(eo.endTime-eo.startTime)}%`;return jsxRuntimeExports.jsx("div",{style:{backgroundColor:uo.color??`rgba(0, 120, 212, ${1-.2*ho})`,width:go}},uo.id)})}):jsxRuntimeExports.jsx("div",{style:{backgroundColor:eo.color??"rgba(0, 120, 212, 1)",width:"100%"}})})},NameCell=({row:eo})=>{const to=eo.children!==void 0&&eo.children.length>0,no=eo.isExpanded,io=useToggleSubRows(),so=reactExports.useCallback(ao=>{ao.preventDefault(),ao.stopPropagation(),io(eo.id)},[eo.id,io]);return jsxRuntimeExports.jsxs("div",{style:{display:"flex",gap:4,paddingLeft:eo.level*24},children:[to?jsxRuntimeExports.jsx("div",{onClick:so,role:"button",children:no?"▼":"▶"}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),jsxRuntimeExports.jsx("div",{children:eo.node_name||eo.name})]})},defaultColumns=[{key:"name",name:"node name",resizable:!0,width:320,renderCell({row:eo}){return jsxRuntimeExports.jsx(NameCell,{row:eo})}},{key:"duration",name:"duration",resizable:!0,width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"duration"})},renderCell({row:eo}){return jsxRuntimeExports.jsxs("div",{style:{textAlign:"right"},children:[Math.round((eo.endTime-eo.startTime)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," ","ms"]})}},{key:"ganttChart",name:"gantt-chart",renderCell({row:eo}){return jsxRuntimeExports.jsx(GanttChartCell,{row:eo})},renderHeaderCell:()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}],GanttGridView=({styles:eo,gridRef:to,getColumns:no=io=>io})=>{const io=useGanttViewRows(),so=useSetSelectedRow(),ao=useSelectedRow(),lo=reactExports.useCallback(go=>{const{row:mo}=go;so(mo.id)},[so]),uo=mergeStyles$1(eo==null?void 0:eo.grid,{borderBottom:"none",borderRight:"none"}),ho=reactExports.useCallback(go=>mergeStyles$1(ao===go.id?eo==null?void 0:eo.selectedRow:""),[ao,eo==null?void 0:eo.selectedRow]);return jsxRuntimeExports.jsx(DataGrid$1$1,{rows:io,columns:no(defaultColumns),onCellClick:lo,className:uo,rowClass:ho,ref:to})},Wrapper=({viewModel:eo,children:to})=>{const no=createRegistry({name:"gantt-wrapper"}),io=reactExports.useCallback(so=>{so.register(GanttViewModelToken,{useValue:eo})},[eo]);return jsxRuntimeExports.jsx(no,{onInitialize:io,children:to})};var GanttGridTheme=(eo=>(eo.Light="rdg-light",eo.Dark="rdg-dark",eo))(GanttGridTheme||{});const Gantt=({viewModel:eo,styles:to,getColumns:no,gridRef:io})=>jsxRuntimeExports.jsx(Wrapper,{viewModel:eo,children:jsxRuntimeExports.jsx(GanttGridView,{styles:to,getColumns:no,gridRef:io})}),TraceDetailTemplate=({trace:eo,JSONView:to})=>{const no=mergeStyleSets({root:["api-call-detail",{padding:8,width:"100%",height:"100%",display:"flex",flexDirection:"column"}],header:["api-call-detail-header",{fontWeight:600,fontSize:20,lineHeight:28,marginBottom:16}],section:["api-call-detail-section",{display:"flex",flexDirection:"column",width:"85%",height:"auto",boxShadow:"rgba(0, 0, 0, 0.18) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.22) 0px 0.3px 0.9px 0px",marginBottom:16}],sectionTitle:["api-call-detail-section-title",{fontWeight:500,fontSize:16,marginTop:8,marginBottom:8,lineHeight:20,borderBottom:"1px inset #ccc",padding:"9px 12px"}],sectionContent:["api-call-detail-section-content",{padding:16,overflow:"auto",maxHeight:"600px"}],fieldTitle:["api-call-detail-field-title",{fontWeight:500,fontSize:14,lineHeight:20}],overviewContainer:["api-call-detail-overview-container",{display:"flex",flexDirection:"row"}],overviewColumn:["api-call-detail-overview-column",{display:"flex",flexGrow:1,flexDirection:"column"}]}),io=eo.node_name??eo.name??"",so=getTokensUsageByRow(eo),ao=eo.inputs??{},lo=eo.output??{};return jsxRuntimeExports.jsxs("div",{className:no.root,children:[jsxRuntimeExports.jsx("div",{className:no.header,children:io}),jsxRuntimeExports.jsxs("div",{className:no.section,children:[jsxRuntimeExports.jsx("div",{className:no.sectionTitle,children:"Overview"}),jsxRuntimeExports.jsx("div",{className:no.sectionContent,children:jsxRuntimeExports.jsxs("div",{className:no.overviewContainer,children:[jsxRuntimeExports.jsxs("div",{className:no.overviewColumn,children:[jsxRuntimeExports.jsx("div",{className:no.fieldTitle,children:"total tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(so.totalTokens)}),jsxRuntimeExports.jsx("div",{className:no.fieldTitle,children:"prompt tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(so.promptTokens)}),jsxRuntimeExports.jsx("div",{className:no.fieldTitle,children:"completion tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(so.completionTokens)})]}),jsxRuntimeExports.jsxs("div",{className:no.overviewColumn,children:[jsxRuntimeExports.jsx("div",{className:no.fieldTitle,children:"duration"}),jsxRuntimeExports.jsx("div",{children:eo.end_time&&eo.start_time?`${Math.round((eo.end_time-eo.start_time)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} ms`:"N/A"}),jsxRuntimeExports.jsx("div",{className:no.fieldTitle,children:"started at"}),jsxRuntimeExports.jsx("div",{children:eo.start_time?timePDTFormatter(eo.start_time*1e3):"N/A"}),jsxRuntimeExports.jsx("div",{className:no.fieldTitle,children:"finished at"}),jsxRuntimeExports.jsx("div",{children:eo.end_time?timePDTFormatter(eo.end_time*1e3):"N/A"})]})]})})]}),jsxRuntimeExports.jsxs("div",{className:no.section,children:[jsxRuntimeExports.jsx("div",{className:no.sectionTitle,children:"Inputs"}),jsxRuntimeExports.jsx("div",{className:no.sectionContent,children:jsxRuntimeExports.jsx(to,{src:ao})})]}),jsxRuntimeExports.jsxs("div",{className:no.section,children:[jsxRuntimeExports.jsx("div",{className:no.sectionTitle,children:"Outputs"}),jsxRuntimeExports.jsx("div",{className:no.sectionContent,children:jsxRuntimeExports.jsx(to,{src:lo})})]})]})},traceMap=new Map,hashTraceName=eo=>{let to=0,no=0;if(eo.length===0)return to;for(let io=0;ioeo.map(to=>{const no=uuid_1.v4();return traceMap.set(no,to),{startTime:to.start_time??performance.now(),endTime:to.end_time??performance.now(),color:SystemColors[hashTraceName(to.name??"")%systemColorsLength],id:no,name:to.name??"",node_name:to.node_name??"",output:to.output??[],children:to.children?parseTrace(to.children):void 0}}),DefaultGridContainer=({children:eo,className:to})=>jsxRuntimeExports.jsx(Resizable,{enable:{right:!0},className:to,defaultSize:{width:"50%",height:"100%"},children:eo}),DefaultContainer=({children:eo,className:to})=>jsxRuntimeExports.jsx("div",{className:to,children:eo}),ApiLogs=reactExports.forwardRef(({traces:eo,styles:to,isDarkMode:no=!1,classNames:io,RootContainer:so=DefaultContainer,GridContainer:ao=DefaultGridContainer,DetailContainer:lo=DefaultContainer,renderDetail:uo=yo=>jsxRuntimeExports.jsx(TraceDetailTemplate,{JSONView:So=>jsxRuntimeExports.jsx("pre",{children:JSON.stringify(So)}),trace:yo}),onChangeSelectedTrace:ho,renderUnselectedHint:go=()=>jsxRuntimeExports.jsx("div",{children:"Click on a row to see details"})},mo)=>{const yo=reactExports.useMemo(()=>eo.reduce((Po,Lo)=>[...Po,...parseTrace(Lo)],[]),[eo]),So=reactExports.useMemo(()=>new GanttViewModel,[]);reactExports.useEffect(()=>{So.setTasks(yo)},[yo,So]);const _o=useState(So.selectedRowId$),ko=useSetState(So.selectedRowId$),Co=reactExports.useMemo(()=>_o?traceMap.get(_o):void 0,[_o]),$o=reactExports.useMemo(()=>({...to,grid:mergeStyles$1(to==null?void 0:to.grid,no?GanttGridTheme.Dark:GanttGridTheme.Light)}),[to,no]),Ro=mergeStyles$1({display:"flex",height:"100%",borderTop:"1px solid #ccc"},io==null?void 0:io.root),Oo=mergeStyles$1({height:"100%",width:"100%",padding:16,borderRight:"1px solid #ccc"},io==null?void 0:io.gridContainer),No=mergeStyles$1({height:"100%",width:"100%",padding:8},io==null?void 0:io.detailContainer),Mo=reactExports.useCallback(Po=>{var Go;const Lo=(Go=yo.find(Do=>Do.node_name===Po))==null?void 0:Go.id;Lo&&ko(Lo)},[yo,ko]);reactExports.useImperativeHandle(mo,()=>({setSelectedTraceRow:Mo})),reactExports.useEffect(()=>{ho&&ho(Co)},[ho,Co]),reactExports.useEffect(()=>{ko(void 0)},[eo]);const Bo=reactExports.useCallback(Po=>{const Lo={key:"token",name:"token",resizable:!0,width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"Tokens"})},renderCell({row:Uo}){const Ho=getTokensUsageByRow(Uo),Yo=`prompt tokens: ${numberToDigitsString(Ho.promptTokens)}, - completion tokens: ${Ho.completionTokens}`;return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},title:Yo,children:numberToDigitsString(Ho.totalTokens)})}},[Go,...Do]=Po;return[Go,Lo,...Do]},[]);return jsxRuntimeExports.jsxs(so,{className:Ro,children:[jsxRuntimeExports.jsx(ao,{className:Oo,children:jsxRuntimeExports.jsx(Gantt,{viewModel:So,styles:$o,getColumns:Bo})}),jsxRuntimeExports.jsx(lo,{className:No,children:Co?uo(Co):go()})]})});ApiLogs.displayName="ApiLogs";const $global=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();$global.trustedTypes===void 0&&($global.trustedTypes={createPolicy:(eo,to)=>to});const propConfig={configurable:!1,enumerable:!1,writable:!1};$global.FAST===void 0&&Reflect.defineProperty($global,"FAST",Object.assign({value:Object.create(null)},propConfig));const FAST=$global.FAST;if(FAST.getById===void 0){const eo=Object.create(null);Reflect.defineProperty(FAST,"getById",Object.assign({value(to,no){let io=eo[to];return io===void 0&&(io=no?eo[to]=no():null),io}},propConfig))}const emptyArray=Object.freeze([]);function createMetadataLocator(){const eo=new WeakMap;return function(to){let no=eo.get(to);if(no===void 0){let io=Reflect.getPrototypeOf(to);for(;no===void 0&&io!==null;)no=eo.get(io),io=Reflect.getPrototypeOf(io);no=no===void 0?[]:no.slice(0),eo.set(to,no)}return no}}const updateQueue=$global.FAST.getById(1,()=>{const eo=[],to=[];function no(){if(to.length)throw to.shift()}function io(lo){try{lo.call()}catch(uo){to.push(uo),setTimeout(no,0)}}function so(){let uo=0;for(;uo1024){for(let ho=0,go=eo.length-uo;hoeo});let htmlPolicy=fastHTMLPolicy;const marker=`fast-${Math.random().toString(36).substring(2,8)}`,_interpolationStart=`${marker}{`,_interpolationEnd=`}${marker}`,DOM=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(eo){if(htmlPolicy!==fastHTMLPolicy)throw new Error("The HTML policy can only be set once.");htmlPolicy=eo},createHTML(eo){return htmlPolicy.createHTML(eo)},isMarker(eo){return eo&&eo.nodeType===8&&eo.data.startsWith(marker)},extractDirectiveIndexFromMarker(eo){return parseInt(eo.data.replace(`${marker}:`,""))},createInterpolationPlaceholder(eo){return`${_interpolationStart}${eo}${_interpolationEnd}`},createCustomAttributePlaceholder(eo,to){return`${eo}="${this.createInterpolationPlaceholder(to)}"`},createBlockPlaceholder(eo){return``},queueUpdate:updateQueue.enqueue,processUpdates:updateQueue.process,nextUpdate(){return new Promise(updateQueue.enqueue)},setAttribute(eo,to,no){no==null?eo.removeAttribute(to):eo.setAttribute(to,no)},setBooleanAttribute(eo,to,no){no?eo.setAttribute(to,""):eo.removeAttribute(to)},removeChildNodes(eo){for(let to=eo.firstChild;to!==null;to=eo.firstChild)eo.removeChild(to)},createTemplateWalker(eo){return document.createTreeWalker(eo,133,null,!1)}});class SubscriberSet{constructor(to,no){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=to,this.sub1=no}has(to){return this.spillover===void 0?this.sub1===to||this.sub2===to:this.spillover.indexOf(to)!==-1}subscribe(to){const no=this.spillover;if(no===void 0){if(this.has(to))return;if(this.sub1===void 0){this.sub1=to;return}if(this.sub2===void 0){this.sub2=to;return}this.spillover=[this.sub1,this.sub2,to],this.sub1=void 0,this.sub2=void 0}else no.indexOf(to)===-1&&no.push(to)}unsubscribe(to){const no=this.spillover;if(no===void 0)this.sub1===to?this.sub1=void 0:this.sub2===to&&(this.sub2=void 0);else{const io=no.indexOf(to);io!==-1&&no.splice(io,1)}}notify(to){const no=this.spillover,io=this.source;if(no===void 0){const so=this.sub1,ao=this.sub2;so!==void 0&&so.handleChange(io,to),ao!==void 0&&ao.handleChange(io,to)}else for(let so=0,ao=no.length;so{const eo=/(:|&&|\|\||if)/,to=new WeakMap,no=DOM.queueUpdate;let io,so=go=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function ao(go){let mo=go.$fastController||to.get(go);return mo===void 0&&(Array.isArray(go)?mo=so(go):to.set(go,mo=new PropertyChangeNotifier(go))),mo}const lo=createMetadataLocator();class uo{constructor(mo){this.name=mo,this.field=`_${mo}`,this.callback=`${mo}Changed`}getValue(mo){return io!==void 0&&io.watch(mo,this.name),mo[this.field]}setValue(mo,yo){const So=this.field,_o=mo[So];if(_o!==yo){mo[So]=yo;const ko=mo[this.callback];typeof ko=="function"&&ko.call(mo,_o,yo),ao(mo).notify(this.name)}}}class ho extends SubscriberSet{constructor(mo,yo,So=!1){super(mo,yo),this.binding=mo,this.isVolatileBinding=So,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(mo,yo){this.needsRefresh&&this.last!==null&&this.disconnect();const So=io;io=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const _o=this.binding(mo,yo);return io=So,_o}disconnect(){if(this.last!==null){let mo=this.first;for(;mo!==void 0;)mo.notifier.unsubscribe(this,mo.propertyName),mo=mo.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(mo,yo){const So=this.last,_o=ao(mo),ko=So===null?this.first:{};if(ko.propertySource=mo,ko.propertyName=yo,ko.notifier=_o,_o.subscribe(this,yo),So!==null){if(!this.needsRefresh){let Co;io=void 0,Co=So.propertySource[So.propertyName],io=this,mo===Co&&(this.needsRefresh=!0)}So.next=ko}this.last=ko}handleChange(){this.needsQueue&&(this.needsQueue=!1,no(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let mo=this.first;return{next:()=>{const yo=mo;return yo===void 0?{value:void 0,done:!0}:(mo=mo.next,{value:yo,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(go){so=go},getNotifier:ao,track(go,mo){io!==void 0&&io.watch(go,mo)},trackVolatile(){io!==void 0&&(io.needsRefresh=!0)},notify(go,mo){ao(go).notify(mo)},defineProperty(go,mo){typeof mo=="string"&&(mo=new uo(mo)),lo(go).push(mo),Reflect.defineProperty(go,mo.name,{enumerable:!0,get:function(){return mo.getValue(this)},set:function(yo){mo.setValue(this,yo)}})},getAccessors:lo,binding(go,mo,yo=this.isVolatileBinding(go)){return new ho(go,mo,yo)},isVolatileBinding(go){return eo.test(go.toString())}})});function observable(eo,to){Observable$1.defineProperty(eo,to)}function volatile(eo,to,no){return Object.assign({},no,{get:function(){return Observable$1.trackVolatile(),no.get.apply(this)}})}const contextEvent=FAST.getById(3,()=>{let eo=null;return{get(){return eo},set(to){eo=to}}});class ExecutionContext{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return contextEvent.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(to){contextEvent.set(to)}}Observable$1.defineProperty(ExecutionContext.prototype,"index");Observable$1.defineProperty(ExecutionContext.prototype,"length");const defaultExecutionContext=Object.seal(new ExecutionContext);class HTMLDirective{constructor(){this.targetIndex=0}}class TargetedHTMLDirective extends HTMLDirective{constructor(){super(...arguments),this.createPlaceholder=DOM.createInterpolationPlaceholder}}class AttachedBehaviorHTMLDirective extends HTMLDirective{constructor(to,no,io){super(),this.name=to,this.behavior=no,this.options=io}createPlaceholder(to){return DOM.createCustomAttributePlaceholder(this.name,to)}createBehavior(to){return new this.behavior(to,this.options)}}function normalBind(eo,to){this.source=eo,this.context=to,this.bindingObserver===null&&(this.bindingObserver=Observable$1.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(eo,to))}function triggerBind(eo,to){this.source=eo,this.context=to,this.target.addEventListener(this.targetName,this)}function normalUnbind(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function contentUnbind(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const eo=this.target.$fastView;eo!==void 0&&eo.isComposed&&(eo.unbind(),eo.needsBindOnly=!0)}function triggerUnbind(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function updateAttributeTarget(eo){DOM.setAttribute(this.target,this.targetName,eo)}function updateBooleanAttributeTarget(eo){DOM.setBooleanAttribute(this.target,this.targetName,eo)}function updateContentTarget(eo){if(eo==null&&(eo=""),eo.create){this.target.textContent="";let to=this.target.$fastView;to===void 0?to=eo.create():this.target.$fastTemplate!==eo&&(to.isComposed&&(to.remove(),to.unbind()),to=eo.create()),to.isComposed?to.needsBindOnly&&(to.needsBindOnly=!1,to.bind(this.source,this.context)):(to.isComposed=!0,to.bind(this.source,this.context),to.insertBefore(this.target),this.target.$fastView=to,this.target.$fastTemplate=eo)}else{const to=this.target.$fastView;to!==void 0&&to.isComposed&&(to.isComposed=!1,to.remove(),to.needsBindOnly?to.needsBindOnly=!1:to.unbind()),this.target.textContent=eo}}function updatePropertyTarget(eo){this.target[this.targetName]=eo}function updateClassTarget(eo){const to=this.classVersions||Object.create(null),no=this.target;let io=this.version||0;if(eo!=null&&eo.length){const so=eo.split(/\s+/);for(let ao=0,lo=so.length;aoDOM.createHTML(no(io,so))}break;case"?":this.cleanedTargetName=to.substr(1),this.updateTarget=updateBooleanAttributeTarget;break;case"@":this.cleanedTargetName=to.substr(1),this.bind=triggerBind,this.unbind=triggerUnbind;break;default:this.cleanedTargetName=to,to==="class"&&(this.updateTarget=updateClassTarget);break}}targetAtContent(){this.updateTarget=updateContentTarget,this.unbind=contentUnbind}createBehavior(to){return new BindingBehavior(to,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class BindingBehavior{constructor(to,no,io,so,ao,lo,uo){this.source=null,this.context=null,this.bindingObserver=null,this.target=to,this.binding=no,this.isBindingVolatile=io,this.bind=so,this.unbind=ao,this.updateTarget=lo,this.targetName=uo}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(to){ExecutionContext.setEvent(to);const no=this.binding(this.source,this.context);ExecutionContext.setEvent(null),no!==!0&&to.preventDefault()}}let sharedContext=null;class CompilationContext{addFactory(to){to.targetIndex=this.targetIndex,this.behaviorFactories.push(to)}captureContentBinding(to){to.targetAtContent(),this.addFactory(to)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){sharedContext=this}static borrow(to){const no=sharedContext||new CompilationContext;return no.directives=to,no.reset(),sharedContext=null,no}}function createAggregateBinding(eo){if(eo.length===1)return eo[0];let to;const no=eo.length,io=eo.map(lo=>typeof lo=="string"?()=>lo:(to=lo.targetName||to,lo.binding)),so=(lo,uo)=>{let ho="";for(let go=0;gouo),go.targetName=lo.name):go=createAggregateBinding(ho),go!==null&&(to.removeAttributeNode(lo),so--,ao--,eo.addFactory(go))}}function compileContent(eo,to,no){const io=parseContent(eo,to.textContent);if(io!==null){let so=to;for(let ao=0,lo=io.length;ao0}const no=this.fragment.cloneNode(!0),io=this.viewBehaviorFactories,so=new Array(this.behaviorCount),ao=DOM.createTemplateWalker(no);let lo=0,uo=this.targetOffset,ho=ao.nextNode();for(let go=io.length;lo=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function html$2(eo,...to){const no=[];let io="";for(let so=0,ao=eo.length-1;soho}if(typeof uo=="function"&&(uo=new HTMLBindingDirective(uo)),uo instanceof TargetedHTMLDirective){const ho=lastAttributeNameRegex.exec(lo);ho!==null&&(uo.targetName=ho[2])}uo instanceof HTMLDirective?(io+=uo.createPlaceholder(no.length),no.push(uo)):io+=uo}return io+=eo[eo.length-1],new ViewTemplate(io,no)}class ElementStyles{constructor(){this.targets=new WeakSet}addStylesTo(to){this.targets.add(to)}removeStylesFrom(to){this.targets.delete(to)}isAttachedTo(to){return this.targets.has(to)}withBehaviors(...to){return this.behaviors=this.behaviors===null?to:this.behaviors.concat(to),this}}ElementStyles.create=(()=>{if(DOM.supportsAdoptedStyleSheets){const eo=new Map;return to=>new AdoptedStyleSheetsStyles(to,eo)}return eo=>new StyleElementStyles(eo)})();function reduceStyles(eo){return eo.map(to=>to instanceof ElementStyles?reduceStyles(to.styles):[to]).reduce((to,no)=>to.concat(no),[])}function reduceBehaviors(eo){return eo.map(to=>to instanceof ElementStyles?to.behaviors:null).reduce((to,no)=>no===null?to:(to===null&&(to=[]),to.concat(no)),null)}let addAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets=[...eo.adoptedStyleSheets,...to]},removeAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets=eo.adoptedStyleSheets.filter(no=>to.indexOf(no)===-1)};if(DOM.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),addAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets.push(...to)},removeAdoptedStyleSheets=(eo,to)=>{for(const no of to){const io=eo.adoptedStyleSheets.indexOf(no);io!==-1&&eo.adoptedStyleSheets.splice(io,1)}}}catch{}class AdoptedStyleSheetsStyles extends ElementStyles{constructor(to,no){super(),this.styles=to,this.styleSheetCache=no,this._styleSheets=void 0,this.behaviors=reduceBehaviors(to)}get styleSheets(){if(this._styleSheets===void 0){const to=this.styles,no=this.styleSheetCache;this._styleSheets=reduceStyles(to).map(io=>{if(io instanceof CSSStyleSheet)return io;let so=no.get(io);return so===void 0&&(so=new CSSStyleSheet,so.replaceSync(io),no.set(io,so)),so})}return this._styleSheets}addStylesTo(to){addAdoptedStyleSheets(to,this.styleSheets),super.addStylesTo(to)}removeStylesFrom(to){removeAdoptedStyleSheets(to,this.styleSheets),super.removeStylesFrom(to)}}let styleClassId=0;function getNextStyleClass(){return`fast-style-class-${++styleClassId}`}class StyleElementStyles extends ElementStyles{constructor(to){super(),this.styles=to,this.behaviors=null,this.behaviors=reduceBehaviors(to),this.styleSheets=reduceStyles(to),this.styleClass=getNextStyleClass()}addStylesTo(to){const no=this.styleSheets,io=this.styleClass;to=this.normalizeTarget(to);for(let so=0;so{io.add(to);const so=to[this.fieldName];switch(no){case"reflect":const ao=this.converter;DOM.setAttribute(to,this.attribute,ao!==void 0?ao.toView(so):so);break;case"boolean":DOM.setBooleanAttribute(to,this.attribute,so);break}io.delete(to)})}static collect(to,...no){const io=[];no.push(AttributeConfiguration.locate(to));for(let so=0,ao=no.length;so1&&(no.property=ao),AttributeConfiguration.locate(so.constructor).push(no)}if(arguments.length>1){no={},io(eo,to);return}return no=eo===void 0?{}:eo,io}const defaultShadowOptions={mode:"open"},defaultElementOptions={},fastRegistry=FAST.getById(4,()=>{const eo=new Map;return Object.freeze({register(to){return eo.has(to.type)?!1:(eo.set(to.type,to),!0)},getByType(to){return eo.get(to)}})});class FASTElementDefinition{constructor(to,no=to.definition){typeof no=="string"&&(no={name:no}),this.type=to,this.name=no.name,this.template=no.template;const io=AttributeDefinition.collect(to,no.attributes),so=new Array(io.length),ao={},lo={};for(let uo=0,ho=io.length;uo0){const ao=this.boundObservables=Object.create(null);for(let lo=0,uo=so.length;lo0||no>0;){if(to===0){so.push(EDIT_ADD),no--;continue}if(no===0){so.push(EDIT_DELETE),to--;continue}const ao=eo[to-1][no-1],lo=eo[to-1][no],uo=eo[to][no-1];let ho;lo=0){eo.splice(uo,1),uo--,lo-=ho.addedCount-ho.removed.length,so.addedCount+=ho.addedCount-go;const mo=so.removed.length+ho.removed.length-go;if(!so.addedCount&&!mo)ao=!0;else{let yo=ho.removed;if(so.indexho.index+ho.addedCount){const So=so.removed.slice(ho.index+ho.addedCount-so.index);$push.apply(yo,So)}so.removed=yo,ho.indexio?no=io-eo.addedCount:no<0&&(no=io+eo.removed.length+no-eo.addedCount),no<0&&(no=0),eo.index=no,eo}class ArrayObserver extends SubscriberSet{constructor(to){super(to),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(to,"$fastController",{value:this,enumerable:!1})}subscribe(to){this.flush(),super.subscribe(to)}addSplice(to){this.splices===void 0?this.splices=[to]:this.splices.push(to),this.needsQueue&&(this.needsQueue=!1,DOM.queueUpdate(this))}reset(to){this.oldCollection=to,this.needsQueue&&(this.needsQueue=!1,DOM.queueUpdate(this))}flush(){const to=this.splices,no=this.oldCollection;if(to===void 0&&no===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const io=no===void 0?projectArraySplices(this.source,to):calcSplices(this.source,0,this.source.length,no,0,no.length);this.notify(io)}}function enableArrayObservation(){if(arrayObservationEnabled)return;arrayObservationEnabled=!0,Observable$1.setArrayObserverFactory(ho=>new ArrayObserver(ho));const eo=Array.prototype;if(eo.$fastPatch)return;Reflect.defineProperty(eo,"$fastPatch",{value:1,enumerable:!1});const to=eo.pop,no=eo.push,io=eo.reverse,so=eo.shift,ao=eo.sort,lo=eo.splice,uo=eo.unshift;eo.pop=function(){const ho=this.length>0,go=to.apply(this,arguments),mo=this.$fastController;return mo!==void 0&&ho&&mo.addSplice(newSplice(this.length,[go],0)),go},eo.push=function(){const ho=no.apply(this,arguments),go=this.$fastController;return go!==void 0&&go.addSplice(adjustIndex(newSplice(this.length-arguments.length,[],arguments.length),this)),ho},eo.reverse=function(){let ho;const go=this.$fastController;go!==void 0&&(go.flush(),ho=this.slice());const mo=io.apply(this,arguments);return go!==void 0&&go.reset(ho),mo},eo.shift=function(){const ho=this.length>0,go=so.apply(this,arguments),mo=this.$fastController;return mo!==void 0&&ho&&mo.addSplice(newSplice(0,[go],0)),go},eo.sort=function(){let ho;const go=this.$fastController;go!==void 0&&(go.flush(),ho=this.slice());const mo=ao.apply(this,arguments);return go!==void 0&&go.reset(ho),mo},eo.splice=function(){const ho=lo.apply(this,arguments),go=this.$fastController;return go!==void 0&&go.addSplice(adjustIndex(newSplice(+arguments[0],ho,arguments.length>2?arguments.length-2:0),this)),ho},eo.unshift=function(){const ho=uo.apply(this,arguments),go=this.$fastController;return go!==void 0&&go.addSplice(adjustIndex(newSplice(0,[],arguments.length),this)),ho}}class RefBehavior{constructor(to,no){this.target=to,this.propertyName=no}bind(to){to[this.propertyName]=this.target}unbind(){}}function ref(eo){return new AttachedBehaviorHTMLDirective("fast-ref",RefBehavior,eo)}const isFunction$3=eo=>typeof eo=="function",noTemplate=()=>null;function normalizeBinding(eo){return eo===void 0?noTemplate:isFunction$3(eo)?eo:()=>eo}function when(eo,to,no){const io=isFunction$3(eo)?eo:()=>eo,so=normalizeBinding(to),ao=normalizeBinding(no);return(lo,uo)=>io(lo,uo)?so(lo,uo):ao(lo,uo)}function bindWithoutPositioning(eo,to,no,io){eo.bind(to[no],io)}function bindWithPositioning(eo,to,no,io){const so=Object.create(io);so.index=no,so.length=to.length,eo.bind(to[no],so)}class RepeatBehavior{constructor(to,no,io,so,ao,lo){this.location=to,this.itemsBinding=no,this.templateBinding=so,this.options=lo,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=bindWithoutPositioning,this.itemsBindingObserver=Observable$1.binding(no,this,io),this.templateBindingObserver=Observable$1.binding(so,this,ao),lo.positioning&&(this.bindView=bindWithPositioning)}bind(to,no){this.source=to,this.originalContext=no,this.childContext=Object.create(no),this.childContext.parent=to,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(to,this.originalContext),this.template=this.templateBindingObserver.observe(to,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(to,no){to===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):to===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(no)}observeItems(to=!1){if(!this.items){this.items=emptyArray;return}const no=this.itemsObserver,io=this.itemsObserver=Observable$1.getNotifier(this.items),so=no!==io;so&&no!==null&&no.unsubscribe(this),(so||to)&&io.subscribe(this)}updateViews(to){const no=this.childContext,io=this.views,so=this.bindView,ao=this.items,lo=this.template,uo=this.options.recycle,ho=[];let go=0,mo=0;for(let yo=0,So=to.length;yo0?(Co<=No&&Oo.length>0?(Po=Oo[Co],Co++):(Po=ho[go],go++),mo--):Po=lo.create(),io.splice($o,0,Po),so(Po,ao,$o,no),Po.insertBefore(Bo)}Oo[Co]&&ho.push(...Oo.slice(Co))}for(let yo=go,So=ho.length;yoio.name===no),this.source=to,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(emptyArray),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let to=this.getNodes();return this.options.filter!==void 0&&(to=to.filter(this.options.filter)),to}updateTarget(to){this.source[this.options.property]=to}}class SlottedBehavior extends NodeObservationBehavior{constructor(to,no){super(to,no)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function slotted(eo){return typeof eo=="string"&&(eo={property:eo}),new AttachedBehaviorHTMLDirective("fast-slotted",SlottedBehavior,eo)}class ChildrenBehavior extends NodeObservationBehavior{constructor(to,no){super(to,no),this.observer=null,no.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function children$1(eo){return typeof eo=="string"&&(eo={property:eo}),new AttachedBehaviorHTMLDirective("fast-children",ChildrenBehavior,eo)}class StartEnd{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const endSlotTemplate=(eo,to)=>html$2` +***************************************************************************** */var __assign$2=function(){return __assign$2=Object.assign||function(to){for(var no,io=1,so=arguments.length;io"u"?InjectionMode.none:InjectionMode.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},to),this._classNameToArgs=(io=no==null?void 0:no.classNameToArgs)!==null&&io!==void 0?io:this._classNameToArgs,this._counter=(so=no==null?void 0:no.counter)!==null&&so!==void 0?so:this._counter,this._keyToClassName=(lo=(ao=this._config.classNameCache)!==null&&ao!==void 0?ao:no==null?void 0:no.keyToClassName)!==null&&lo!==void 0?lo:this._keyToClassName,this._preservedRules=(uo=no==null?void 0:no.preservedRules)!==null&&uo!==void 0?uo:this._preservedRules,this._rules=(ho=no==null?void 0:no.rules)!==null&&ho!==void 0?ho:this._rules}return eo.getInstance=function(){if(_stylesheet=_global[STYLESHEET_SETTING],!_stylesheet||_stylesheet._lastStyleElement&&_stylesheet._lastStyleElement.ownerDocument!==document){var to=(_global==null?void 0:_global.FabricConfig)||{},no=new eo(to.mergeStyles,to.serializedStylesheet);_stylesheet=no,_global[STYLESHEET_SETTING]=no}return _stylesheet},eo.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},eo.prototype.setConfig=function(to){this._config=__assign$2(__assign$2({},this._config),to)},eo.prototype.onReset=function(to){var no=this;return this._onResetCallbacks.push(to),function(){no._onResetCallbacks=no._onResetCallbacks.filter(function(io){return io!==to})}},eo.prototype.onInsertRule=function(to){var no=this;return this._onInsertRuleCallbacks.push(to),function(){no._onInsertRuleCallbacks=no._onInsertRuleCallbacks.filter(function(io){return io!==to})}},eo.prototype.getClassName=function(to){var no=this._config.namespace,io=to||this._config.defaultPrefix;return(no?no+"-":"")+io+"-"+this._counter++},eo.prototype.cacheClassName=function(to,no,io,so){this._keyToClassName[no]=to,this._classNameToArgs[to]={args:io,rules:so}},eo.prototype.classNameFromKey=function(to){return this._keyToClassName[to]},eo.prototype.getClassNameCache=function(){return this._keyToClassName},eo.prototype.argsFromClassName=function(to){var no=this._classNameToArgs[to];return no&&no.args},eo.prototype.insertedRulesFromClassName=function(to){var no=this._classNameToArgs[to];return no&&no.rules},eo.prototype.insertRule=function(to,no){var io=this._config.injectionMode,so=io!==InjectionMode.none?this._getStyleElement():void 0;if(no&&this._preservedRules.push(to),so)switch(io){case InjectionMode.insertNode:var ao=so.sheet;try{ao.insertRule(to,ao.cssRules.length)}catch{}break;case InjectionMode.appendChild:so.appendChild(document.createTextNode(to));break}else this._rules.push(to);this._config.onInsertRule&&this._config.onInsertRule(to),this._onInsertRuleCallbacks.forEach(function(lo){return lo()})},eo.prototype.getRules=function(to){return(to?this._preservedRules.join(""):"")+this._rules.join("")},eo.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(to){return to()})},eo.prototype.resetKeys=function(){this._keyToClassName={}},eo.prototype._getStyleElement=function(){var to=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE||window.requestAnimationFrame(function(){to._styleElement=void 0})),this._styleElement},eo.prototype._createStyleElement=function(){var to=document.head,no=document.createElement("style"),io=null;no.setAttribute("data-merge-styles","true");var so=this._config.cspSettings;if(so&&so.nonce&&no.setAttribute("nonce",so.nonce),this._lastStyleElement)io=this._lastStyleElement.nextElementSibling;else{var ao=this._findPlaceholderStyleTag();ao?io=ao.nextElementSibling:io=to.childNodes[0]}return to.insertBefore(no,to.contains(io)?io:null),this._lastStyleElement=no,no},eo.prototype._findPlaceholderStyleTag=function(){var to=document.head;return to?to.querySelector("style[data-merge-styles]"):null},eo}();function extractStyleParts(){for(var eo=[],to=0;to=0)ao(go.split(" "));else{var mo=so.argsFromClassName(go);mo?ao(mo):no.indexOf(go)===-1&&no.push(go)}else Array.isArray(go)?ao(go):typeof go=="object"&&io.push(go)}}return ao(eo),{classes:no,objects:io}}function getRTL(){return _rtl===void 0&&(_rtl=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl}var _rtl;_rtl=getRTL();function getStyleOptions(){return{rtl:getRTL()}}var rules={};function kebabRules(eo,to){var no=eo[to];no.charAt(0)!=="-"&&(eo[to]=rules[no]=rules[no]||no.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings;function getVendorSettings(){var eo;if(!_vendorSettings){var to=typeof document<"u"?document:void 0,no=typeof navigator<"u"?navigator:void 0,io=(eo=no==null?void 0:no.userAgent)===null||eo===void 0?void 0:eo.toLowerCase();to?_vendorSettings={isWebkit:!!(to&&"WebkitAppearance"in to.documentElement.style),isMoz:!!(io&&io.indexOf("firefox")>-1),isOpera:!!(io&&io.indexOf("opera")>-1),isMs:!!(no&&(/rv:11.0/i.test(no.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings}var autoPrefixNames={"user-select":1};function prefixRules(eo,to){var no=getVendorSettings(),io=eo[to];if(autoPrefixNames[io]){var so=eo[to+1];autoPrefixNames[io]&&(no.isWebkit&&eo.push("-webkit-"+io,so),no.isMoz&&eo.push("-moz-"+io,so),no.isMs&&eo.push("-ms-"+io,so),no.isOpera&&eo.push("-o-"+io,so))}}var NON_PIXEL_NUMBER_PROPS=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits(eo,to){var no=eo[to],io=eo[to+1];if(typeof io=="number"){var so=NON_PIXEL_NUMBER_PROPS.indexOf(no)>-1,ao=no.indexOf("--")>-1,lo=so||ao?"":"px";eo[to+1]=""+io+lo}}var _a$4,LEFT="left",RIGHT="right",NO_FLIP="@noflip",NAME_REPLACEMENTS=(_a$4={},_a$4[LEFT]=RIGHT,_a$4[RIGHT]=LEFT,_a$4),VALUE_REPLACEMENTS={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules(eo,to,no){if(eo.rtl){var io=to[no];if(!io)return;var so=to[no+1];if(typeof so=="string"&&so.indexOf(NO_FLIP)>=0)to[no+1]=so.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(io.indexOf(LEFT)>=0)to[no]=io.replace(LEFT,RIGHT);else if(io.indexOf(RIGHT)>=0)to[no]=io.replace(RIGHT,LEFT);else if(String(so).indexOf(LEFT)>=0)to[no+1]=so.replace(LEFT,RIGHT);else if(String(so).indexOf(RIGHT)>=0)to[no+1]=so.replace(RIGHT,LEFT);else if(NAME_REPLACEMENTS[io])to[no]=NAME_REPLACEMENTS[io];else if(VALUE_REPLACEMENTS[so])to[no+1]=VALUE_REPLACEMENTS[so];else switch(io){case"margin":case"padding":to[no+1]=flipQuad(so);break;case"box-shadow":to[no+1]=negateNum(so,0);break}}}function negateNum(eo,to){var no=eo.split(" "),io=parseInt(no[to],10);return no[0]=no[0].replace(String(io),String(io*-1)),no.join(" ")}function flipQuad(eo){if(typeof eo=="string"){var to=eo.split(" ");if(to.length===4)return to[0]+" "+to[3]+" "+to[2]+" "+to[1]}return eo}function tokenizeWithParentheses(eo){for(var to=[],no=0,io=0,so=0;sono&&to.push(eo.substring(no,so)),no=so+1);break}return no-1&&to.push([io.index,io.index+io[0].length,io[1].split(",").map(function(so){return":global("+so.trim()+")"}).join(", ")]);return to.reverse().reduce(function(so,ao){var lo=ao[0],uo=ao[1],ho=ao[2],go=so.slice(0,lo),mo=so.slice(uo);return go+ho+mo},eo)}function expandSelector(eo,to){return eo.indexOf(":global(")>=0?eo.replace(globalSelectorRegExp,"$1"):eo.indexOf(":")===0?to+eo:eo.indexOf("&")<0?to+" "+eo:eo}function extractSelector(eo,to,no,io){to===void 0&&(to={__order:[]}),no.indexOf("@")===0?(no=no+"{"+eo,extractRules([io],to,no)):no.indexOf(",")>-1?expandCommaSeparatedGlobals(no).split(",").map(function(so){return so.trim()}).forEach(function(so){return extractRules([io],to,expandSelector(so,eo))}):extractRules([io],to,expandSelector(no,eo))}function extractRules(eo,to,no){to===void 0&&(to={__order:[]}),no===void 0&&(no="&");var io=Stylesheet$1.getInstance(),so=to[no];so||(so={},to[no]=so,to.__order.push(no));for(var ao=0,lo=eo;ao"u")){var io=document.head||document.getElementsByTagName("head")[0],so=document.createElement("style");so.type="text/css",no==="top"&&io.firstChild?io.insertBefore(so,io.firstChild):io.appendChild(so),so.styleSheet?so.styleSheet.cssText=eo:so.appendChild(document.createTextNode(eo))}}var css_248z=".root_ce9fd48c{margin:0;padding:0}.item_34141342{list-style:none}.content_6abc12be{display:flex;align-items:center}.content_6abc12be:hover{cursor:pointer;background-color:#f3f2f1}.icon_aaa0d589{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #8a8886;margin:0 11px 0 3px}.expanded_6233c4e1{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #8a8886;margin:3px 8px 0 0}.leaf_f2922997{border:6px solid transparent;margin:0 8px 0 0}.group_7e2ac704,.inner_683a43d6{padding:0;margin:0}",classes$7={root:"root_ce9fd48c",item:"item_34141342",content:"content_6abc12be",icon:"icon_aaa0d589",expanded:"expanded_6233c4e1",leaf:"leaf_f2922997",group:"group_7e2ac704",inner:"inner_683a43d6"};styleInject(css_248z);var mergeTreeClasses=function(eo){return{root:mergeStyles(classes$7.root,eo==null?void 0:eo.root)}},mergeTreeNodeClasses=function(eo,to){var no,io,so;return{item:mergeStyles(classes$7.item,to==null?void 0:to.item),icon:mergeStyles(classes$7.icon,eo.expanded&&classes$7.expanded,eo.isLeaf&&classes$7.leaf),group:mergeStyles(classes$7.group,to==null?void 0:to.group),inner:mergeStyles(classes$7.inner,to==null?void 0:to.inner),content:mergeStyles(classes$7.content,(no=to==null?void 0:to.content)===null||no===void 0?void 0:no.base,eo.expanded&&((io=to==null?void 0:to.content)===null||io===void 0?void 0:io.expand),eo.isLeaf&&((so=to==null?void 0:to.content)===null||so===void 0?void 0:so.leaf))}},TreeNode$2=reactExports.forwardRef(function(eo,to){var no,io,so,ao,lo,uo,ho,go,mo=eo.node,yo=eo.classes,So=eo.indent,_o=eo.calcIndent,ko=eo.onNodeClick,Co=eo.renderIcon,$o=eo.renderContent,Ro=eo.renderInnerContent,Oo=!mo.isLeaf&&mo.expanded,No=mergeTreeNodeClasses(mo,yo),Mo=_o?_o(mo):{item:(mo.level-1)*((no=So==null?void 0:So.item)!==null&&no!==void 0?no:20)+((io=So==null?void 0:So.root)!==null&&io!==void 0?io:0),innerItem:mo.level*((so=So==null?void 0:So.item)!==null&&so!==void 0?so:20)+((ao=So==null?void 0:So.root)!==null&&ao!==void 0?ao:0)},Bo=reactExports.useCallback(function(Fo){Fo.preventDefault(),Fo.stopPropagation()},[]);return reactExports.createElement("div",{key:mo.id,role:"treeitem","aria-selected":mo.selected,"aria-expanded":mo.expanded,tabIndex:-1,className:No.item,onClick:ko.bind(null,mo),"data-item-id":mo.id,ref:to},reactExports.createElement("div",{className:No.content,style:{paddingLeft:(lo=Mo.item)!==null&&lo!==void 0?lo:20}},(uo=Co==null?void 0:Co(mo))!==null&&uo!==void 0?uo:reactExports.createElement("span",{className:No.icon}),(ho=$o==null?void 0:$o(mo))!==null&&ho!==void 0?ho:reactExports.createElement("span",{role:"button"},mo.title)),Oo&&reactExports.createElement(reactExports.Fragment,null,Ro&&reactExports.createElement("div",{role:"group",key:"innerContent",className:No.inner,style:{paddingLeft:(go=Mo.innerItem)!==null&&go!==void 0?go:40},onClick:Bo},Ro(mo))))});TreeNode$2.displayName="TreeNode";var ReactAccessibleTree=reactExports.forwardRef(function(eo,to){var no=eo.selectedKeys,io=no===void 0?[]:no,so=eo.expandedKeys,ao=so===void 0?[]:so,lo=eo.treeData,uo=eo.classes,ho=eo.indent,go=eo.height,mo=eo.itemHeight,yo=eo.virtual,So=eo.calcIndent,_o=eo.onKeyDown,ko=eo.renderIcon,Co=eo.renderContent,$o=eo.renderInnerContent,Ro=eo.onSelect,Oo=eo.multiple,No=eo.onExpand,Mo=eo.loadData,Bo=reactExports.useState({loadedKeys:[],loadingKeys:[]}),Fo=Bo[0],Lo=Bo[1],Go=reactExports.useRef(null),Do=reactExports.useRef(null),Uo=reactExports.useMemo(function(){return Node$1.init(lo,io,ao,Fo)},[lo,io,ao,Fo]);reactExports.useImperativeHandle(to,function(){return{scrollTo:function(vs){var ks;(ks=Do.current)===null||ks===void 0||ks.scrollTo(vs)}}}),reactExports.useEffect(function(){Jo(0)},[]);var Ho=function(vs,ks){var Os=io,Ts=ks.id,Xs=!ks.selected;Xs?Oo?Os=arrAdd(Os,Ts):Os=[Ts]:Os=arrDel(Os,Ts),Ro==null||Ro(Os,{node:ks,selected:Xs,nativeEvent:vs})},Yo=function(vs,ks){var Os=ao,Ts=ks.id,Xs=!ks.expanded;Xs?Os=arrAdd(Os,Ts):Os=arrDel(Os,Ts),No==null||No(Os,{node:ks,expanded:Xs,nativeEvent:vs}),Xs&&Mo&&qo(ks)},qo=function(vs){Lo(function(ks){var Os=ks.loadedKeys,Ts=ks.loadingKeys,Xs=vs.id;if(!Mo||Os.includes(Xs)||Ts.includes(Xs))return Fo;var Ws=Mo(vs);return Ws.then(function(){var Ps=Fo.loadedKeys,qs=Fo.loadingKeys,ga=arrAdd(Ps,Xs),Fs=arrDel(qs,Xs);Lo({loadedKeys:ga,loadingKeys:Fs})}),{loadedKeys:Os,loadingKeys:arrAdd(Ts,Xs)}})},Jo=function(vs){var ks,Os,Ts=Array.from((Os=(ks=Go.current)===null||ks===void 0?void 0:ks.querySelectorAll("div[role='treeitem']"))!==null&&Os!==void 0?Os:[]);Ts.forEach(function(Xs,Ws){Ws===vs?Xs.setAttribute("tabindex","0"):Xs.setAttribute("tabindex","-1")})},ps=function(vs){var ks,Os,Ts;vs.stopPropagation();var Xs=vs.target;if(Xs.getAttribute("role")!=="treeitem"||vs.ctrlKey||vs.metaKey)return-1;var Ws=Array.from((Os=(ks=Go.current)===null||ks===void 0?void 0:ks.querySelectorAll("div[role='treeitem']"))!==null&&Os!==void 0?Os:[]),Ps=Ws.indexOf(Xs),qs=vs.keyCode>=65&&vs.keyCode<=90;if(qs){var ga=-1,Fs=Ws.findIndex(function(El,yl){var Gl=El.getAttribute("data-item-id"),Qs=Node$1.nodesMap.get(Gl??""),du=Qs==null?void 0:Qs.searchKeys.some(function(Ol){return Ol.match(new RegExp("^"+vs.key,"i"))});return du&&yl>Ps?!0:(du&&yl<=Ps&&(ga=ga===-1?yl:ga),!1)}),Js=Fs===-1?ga:Fs;return(Ts=Ws[Js])===null||Ts===void 0||Ts.focus(),Js}switch(vs.key){case"ArrowDown":{var Vs=(Ps+1)%Ws.length;return Ws[Vs].focus(),Vs}case"ArrowUp":{var Vs=(Ps-1+Ws.length)%Ws.length;return Ws[Vs].focus(),Vs}case"ArrowLeft":case"ArrowRight":return Xs.click(),Ps;case"Home":return Ws[0].focus(),0;case"End":return Ws[Ws.length-1].focus(),Ws.length-1;default:return _o==null||_o(vs),Ps}},Qo=function(vs){var ks=ps(vs);ks>-1&&Jo(ks)},hs=function(vs,ks){ks.stopPropagation(),Ho(ks,vs),!(vs.loading||vs.loaded&&vs.isLeaf)&&Yo(ks,vs)},gs=mergeTreeClasses(uo),ys=function(vs){return vs.id};return reactExports.createElement("div",{role:"tree",className:gs.root,onKeyDown:Qo,ref:Go},reactExports.createElement(List$1,{data:Uo,itemKey:ys,height:go,fullHeight:!1,virtual:yo,itemHeight:mo,ref:Do},function(vs){return reactExports.createElement(TreeNode$2,{key:vs.id,node:vs,classes:uo,indent:ho,calcIndent:So,renderIcon:ko,renderContent:Co,renderInnerContent:$o,onNodeClick:hs})}))});ReactAccessibleTree.displayName="ReactAccessibleTree";var __extends$1=function(){var eo=function(to,no){return eo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(io,so){io.__proto__=so}||function(io,so){for(var ao in so)Object.prototype.hasOwnProperty.call(so,ao)&&(io[ao]=so[ao])},eo(to,no)};return function(to,no){eo(to,no);function io(){this.constructor=to}to.prototype=no===null?Object.create(no):(io.prototype=no.prototype,new io)}}(),__assign$1=function(){return __assign$1=Object.assign||function(eo){for(var to,no=1,io=arguments.length;no"u"?void 0:Number(io),maxHeight:typeof so>"u"?void 0:Number(so),minWidth:typeof ao>"u"?void 0:Number(ao),minHeight:typeof lo>"u"?void 0:Number(lo)}},definedProps=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],baseClassName="__resizable_base__",Resizable=function(eo){__extends(to,eo);function to(no){var io=eo.call(this,no)||this;return io.ratio=1,io.resizable=null,io.parentLeft=0,io.parentTop=0,io.resizableLeft=0,io.resizableRight=0,io.resizableTop=0,io.resizableBottom=0,io.targetLeft=0,io.targetTop=0,io.appendBase=function(){if(!io.resizable||!io.window)return null;var so=io.parentNode;if(!so)return null;var ao=io.window.document.createElement("div");return ao.style.width="100%",ao.style.height="100%",ao.style.position="absolute",ao.style.transform="scale(0, 0)",ao.style.left="0",ao.style.flex="0 0 100%",ao.classList?ao.classList.add(baseClassName):ao.className+=baseClassName,so.appendChild(ao),ao},io.removeBase=function(so){var ao=io.parentNode;ao&&ao.removeChild(so)},io.ref=function(so){so&&(io.resizable=so)},io.state={isResizing:!1,width:typeof(io.propsSize&&io.propsSize.width)>"u"?"auto":io.propsSize&&io.propsSize.width,height:typeof(io.propsSize&&io.propsSize.height)>"u"?"auto":io.propsSize&&io.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},io.onResizeStart=io.onResizeStart.bind(io),io.onMouseMove=io.onMouseMove.bind(io),io.onMouseUp=io.onMouseUp.bind(io),io}return Object.defineProperty(to.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||DEFAULT_SIZE},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"size",{get:function(){var no=0,io=0;if(this.resizable&&this.window){var so=this.resizable.offsetWidth,ao=this.resizable.offsetHeight,lo=this.resizable.style.position;lo!=="relative"&&(this.resizable.style.position="relative"),no=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:so,io=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:ao,this.resizable.style.position=lo}return{width:no,height:io}},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"sizeStyle",{get:function(){var no=this,io=this.props.size,so=function(uo){if(typeof no.state[uo]>"u"||no.state[uo]==="auto")return"auto";if(no.propsSize&&no.propsSize[uo]&&no.propsSize[uo].toString().endsWith("%")){if(no.state[uo].toString().endsWith("%"))return no.state[uo].toString();var ho=no.getParentSize(),go=Number(no.state[uo].toString().replace("px","")),mo=go/ho[uo]*100;return mo+"%"}return getStringSize(no.state[uo])},ao=io&&typeof io.width<"u"&&!this.state.isResizing?getStringSize(io.width):so("width"),lo=io&&typeof io.height<"u"&&!this.state.isResizing?getStringSize(io.height):so("height");return{width:ao,height:lo}},enumerable:!1,configurable:!0}),to.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var no=this.appendBase();if(!no)return{width:0,height:0};var io=!1,so=this.parentNode.style.flexWrap;so!=="wrap"&&(io=!0,this.parentNode.style.flexWrap="wrap"),no.style.position="relative",no.style.minWidth="100%",no.style.minHeight="100%";var ao={width:no.offsetWidth,height:no.offsetHeight};return io&&(this.parentNode.style.flexWrap=so),this.removeBase(no),ao},to.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},to.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},to.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var no=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:no.flexBasis!=="auto"?no.flexBasis:void 0})}},to.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},to.prototype.createSizeForCssProperty=function(no,io){var so=this.propsSize&&this.propsSize[io];return this.state[io]==="auto"&&this.state.original[io]===no&&(typeof so>"u"||so==="auto")?"auto":no},to.prototype.calculateNewMaxFromBoundary=function(no,io){var so=this.props.boundsByDirection,ao=this.state.direction,lo=so&&hasDirection("left",ao),uo=so&&hasDirection("top",ao),ho,go;if(this.props.bounds==="parent"){var mo=this.parentNode;mo&&(ho=lo?this.resizableRight-this.parentLeft:mo.offsetWidth+(this.parentLeft-this.resizableLeft),go=uo?this.resizableBottom-this.parentTop:mo.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(ho=lo?this.resizableRight:this.window.innerWidth-this.resizableLeft,go=uo?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(ho=lo?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),go=uo?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return ho&&Number.isFinite(ho)&&(no=no&&no"u"?10:ao.width,yo=typeof so.width>"u"||so.width<0?no:so.width,So=typeof ao.height>"u"?10:ao.height,_o=typeof so.height>"u"||so.height<0?io:so.height,ko=ho||0,Co=go||0;if(uo){var $o=(So-ko)*this.ratio+Co,Ro=(_o-ko)*this.ratio+Co,Oo=(mo-Co)/this.ratio+ko,No=(yo-Co)/this.ratio+ko,Mo=Math.max(mo,$o),Bo=Math.min(yo,Ro),Fo=Math.max(So,Oo),Lo=Math.min(_o,No);no=clamp(no,Mo,Bo),io=clamp(io,Fo,Lo)}else no=clamp(no,mo,yo),io=clamp(io,So,_o);return{newWidth:no,newHeight:io}},to.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var no=this.parentNode;if(no){var io=no.getBoundingClientRect();this.parentLeft=io.left,this.parentTop=io.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var so=this.props.bounds.getBoundingClientRect();this.targetLeft=so.left,this.targetTop=so.top}if(this.resizable){var ao=this.resizable.getBoundingClientRect(),lo=ao.left,uo=ao.top,ho=ao.right,go=ao.bottom;this.resizableLeft=lo,this.resizableRight=ho,this.resizableTop=uo,this.resizableBottom=go}},to.prototype.onResizeStart=function(no,io){if(!(!this.resizable||!this.window)){var so=0,ao=0;if(no.nativeEvent&&isMouseEvent(no.nativeEvent)?(so=no.nativeEvent.clientX,ao=no.nativeEvent.clientY):no.nativeEvent&&isTouchEvent(no.nativeEvent)&&(so=no.nativeEvent.touches[0].clientX,ao=no.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var lo=this.props.onResizeStart(no,io,this.resizable);if(lo===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var uo,ho=this.window.getComputedStyle(this.resizable);if(ho.flexBasis!=="auto"){var go=this.parentNode;if(go){var mo=this.window.getComputedStyle(go).flexDirection;this.flexDir=mo.startsWith("row")?"row":"column",uo=ho.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var yo={original:{x:so,y:ao,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(no.target).cursor||"auto"}),direction:io,flexBasis:uo};this.setState(yo)}},to.prototype.onMouseMove=function(no){var io=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&isTouchEvent(no))try{no.preventDefault(),no.stopPropagation()}catch{}var so=this.props,ao=so.maxWidth,lo=so.maxHeight,uo=so.minWidth,ho=so.minHeight,go=isTouchEvent(no)?no.touches[0].clientX:no.clientX,mo=isTouchEvent(no)?no.touches[0].clientY:no.clientY,yo=this.state,So=yo.direction,_o=yo.original,ko=yo.width,Co=yo.height,$o=this.getParentSize(),Ro=calculateNewMax($o,this.window.innerWidth,this.window.innerHeight,ao,lo,uo,ho);ao=Ro.maxWidth,lo=Ro.maxHeight,uo=Ro.minWidth,ho=Ro.minHeight;var Oo=this.calculateNewSizeFromDirection(go,mo),No=Oo.newHeight,Mo=Oo.newWidth,Bo=this.calculateNewMaxFromBoundary(ao,lo);this.props.snap&&this.props.snap.x&&(Mo=findClosestSnap(Mo,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(No=findClosestSnap(No,this.props.snap.y,this.props.snapGap));var Fo=this.calculateNewSizeFromAspectRatio(Mo,No,{width:Bo.maxWidth,height:Bo.maxHeight},{width:uo,height:ho});if(Mo=Fo.newWidth,No=Fo.newHeight,this.props.grid){var Lo=snap(Mo,this.props.grid[0]),Go=snap(No,this.props.grid[1]),Do=this.props.snapGap||0;Mo=Do===0||Math.abs(Lo-Mo)<=Do?Lo:Mo,No=Do===0||Math.abs(Go-No)<=Do?Go:No}var Uo={width:Mo-_o.width,height:No-_o.height};if(ko&&typeof ko=="string"){if(ko.endsWith("%")){var Ho=Mo/$o.width*100;Mo=Ho+"%"}else if(ko.endsWith("vw")){var Yo=Mo/this.window.innerWidth*100;Mo=Yo+"vw"}else if(ko.endsWith("vh")){var qo=Mo/this.window.innerHeight*100;Mo=qo+"vh"}}if(Co&&typeof Co=="string"){if(Co.endsWith("%")){var Ho=No/$o.height*100;No=Ho+"%"}else if(Co.endsWith("vw")){var Yo=No/this.window.innerWidth*100;No=Yo+"vw"}else if(Co.endsWith("vh")){var qo=No/this.window.innerHeight*100;No=qo+"vh"}}var Jo={width:this.createSizeForCssProperty(Mo,"width"),height:this.createSizeForCssProperty(No,"height")};this.flexDir==="row"?Jo.flexBasis=Jo.width:this.flexDir==="column"&&(Jo.flexBasis=Jo.height),reactDomExports.flushSync(function(){io.setState(Jo)}),this.props.onResize&&this.props.onResize(no,So,this.resizable,Uo)}},to.prototype.onMouseUp=function(no){var io=this.state,so=io.isResizing,ao=io.direction,lo=io.original;if(!(!so||!this.resizable)){var uo={width:this.size.width-lo.width,height:this.size.height-lo.height};this.props.onResizeStop&&this.props.onResizeStop(no,ao,this.resizable,uo),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:"auto"})})}},to.prototype.updateSize=function(no){this.setState({width:no.width,height:no.height})},to.prototype.renderResizer=function(){var no=this,io=this.props,so=io.enable,ao=io.handleStyles,lo=io.handleClasses,uo=io.handleWrapperStyle,ho=io.handleWrapperClass,go=io.handleComponent;if(!so)return null;var mo=Object.keys(so).map(function(yo){return so[yo]!==!1?reactExports.createElement(Resizer,{key:yo,direction:yo,onResizeStart:no.onResizeStart,replaceStyles:ao&&ao[yo],className:lo&&lo[yo]},go&&go[yo]?go[yo]:null):null});return reactExports.createElement("div",{className:ho,style:uo},mo)},to.prototype.render=function(){var no=this,io=Object.keys(this.props).reduce(function(lo,uo){return definedProps.indexOf(uo)!==-1||(lo[uo]=no.props[uo]),lo},{}),so=__assign(__assign(__assign({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(so.flexBasis=this.state.flexBasis);var ao=this.props.as||"div";return reactExports.createElement(ao,__assign({ref:this.ref,style:so,className:this.props.className},io),this.state.isResizing&&reactExports.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},to.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},to}(reactExports.PureComponent);function r$2(eo){var to,no,io="";if(typeof eo=="string"||typeof eo=="number")io+=eo;else if(typeof eo=="object")if(Array.isArray(eo))for(to=0;to1&&(!eo.frozen||eo.idx+io-1<=to))return io}function stopPropagation(eo){eo.stopPropagation()}function scrollIntoView$2(eo){eo==null||eo.scrollIntoView({inline:"nearest",block:"nearest"})}function createCellEvent(eo){let to=!1;const no={...eo,preventGridDefault(){to=!0},isGridDefaultPrevented(){return to}};return Object.setPrototypeOf(no,Object.getPrototypeOf(eo)),no}const nonInputKeys=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function isCtrlKeyHeldDown(eo){return(eo.ctrlKey||eo.metaKey)&&eo.key!=="Control"}function isDefaultCellInput(eo){return!nonInputKeys.has(eo.key)}function onEditorNavigation({key:eo,target:to}){var no;return eo==="Tab"&&(to instanceof HTMLInputElement||to instanceof HTMLTextAreaElement||to instanceof HTMLSelectElement)?((no=to.closest(".rdg-editor-container"))==null?void 0:no.querySelectorAll("input, textarea, select").length)===1:!1}const measuringCellClassname="m1l09lto7-0-0-beta-39";function renderMeasuringCells(eo){return eo.map(({key:to,idx:no,minWidth:io,maxWidth:so})=>jsxRuntimeExports.jsx("div",{className:measuringCellClassname,style:{gridColumnStart:no+1,minWidth:io,maxWidth:so},"data-measuring-cell-key":to},to))}function isSelectedCellEditable({selectedPosition:eo,columns:to,rows:no}){const io=to[eo.idx],so=no[eo.rowIdx];return isCellEditable(io,so)}function isCellEditable(eo,to){return eo.renderEditCell!=null&&(typeof eo.editable=="function"?eo.editable(to):eo.editable)!==!1}function getSelectedCellColSpan({rows:eo,topSummaryRows:to,bottomSummaryRows:no,rowIdx:io,mainHeaderRowIdx:so,lastFrozenColumnIndex:ao,column:lo}){const uo=(to==null?void 0:to.length)??0;if(io===so)return getColSpan(lo,ao,{type:"HEADER"});if(to&&io>so&&io<=uo+so)return getColSpan(lo,ao,{type:"SUMMARY",row:to[io+uo]});if(io>=0&&io{for(const Lo of so){const Go=Lo.idx;if(Go>$o)break;const Do=getSelectedCellColSpan({rows:ao,topSummaryRows:lo,bottomSummaryRows:uo,rowIdx:Ro,mainHeaderRowIdx:go,lastFrozenColumnIndex:ko,column:Lo});if(Do&&$o>Go&&$oFo.level+go,Bo=()=>{if(to){let Lo=io[$o].parent;for(;Lo!==void 0;){const Go=Mo(Lo);if(Ro===Go){$o=Lo.idx+Lo.colSpan;break}Lo=Lo.parent}}else if(eo){let Lo=io[$o].parent,Go=!1;for(;Lo!==void 0;){const Do=Mo(Lo);if(Ro>=Do){$o=Lo.idx,Ro=Do,Go=!0;break}Lo=Lo.parent}Go||($o=yo,Ro=So)}};if(Co(_o)&&(No(to),Ro=Go&&(Ro=Do,$o=Lo.idx),Lo=Lo.parent}}return{idx:$o,rowIdx:Ro}}function canExitGrid({maxColIdx:eo,minRowIdx:to,maxRowIdx:no,selectedPosition:{rowIdx:io,idx:so},shiftKey:ao}){return ao?so===0&&io===to:so===eo&&io===no}const cell="c1wupbe7-0-0-beta-39",cellClassname=`rdg-cell ${cell}`,cellFrozen="cd0kgiy7-0-0-beta-39",cellFrozenClassname=`rdg-cell-frozen ${cellFrozen}`,cellFrozenLast="c1730fa47-0-0-beta-39",cellFrozenLastClassname=`rdg-cell-frozen-last ${cellFrozenLast}`;function getRowStyle(eo,to){return to!==void 0?{"--rdg-grid-row-start":eo,"--rdg-row-height":`${to}px`}:{"--rdg-grid-row-start":eo}}function getHeaderCellStyle(eo,to,no){const io=to+1,so=`calc(${no-1} * var(--rdg-header-row-height))`;return eo.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:io,paddingBlockStart:so}:{insetBlockStart:`calc(${to-no} * var(--rdg-header-row-height))`,gridRowStart:io-no,gridRowEnd:io,paddingBlockStart:so}}function getCellStyle(eo,to=1){const no=eo.idx+1;return{gridColumnStart:no,gridColumnEnd:no+to,insetInlineStart:eo.frozen?`var(--rdg-frozen-left-${eo.idx})`:void 0}}function getCellClassname(eo,...to){return clsx(cellClassname,...to,eo.frozen&&cellFrozenClassname,eo.isLastFrozenColumn&&cellFrozenLastClassname)}const{min:min$5,max:max$5,round,floor,sign:sign$1,abs:abs$3}=Math;function assertIsValidKeyGetter(eo){if(typeof eo!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function clampColumnWidth(eo,{minWidth:to,maxWidth:no}){return eo=max$5(eo,to),typeof no=="number"&&no>=to?min$5(eo,no):eo}function getHeaderCellRowSpan(eo,to){return eo.parent===void 0?to:eo.level-eo.parent.level}const checkboxLabel="c1hs68w07-0-0-beta-39",checkboxLabelClassname=`rdg-checkbox-label ${checkboxLabel}`,checkboxInput="cojpd0n7-0-0-beta-39",checkboxInputClassname=`rdg-checkbox-input ${checkboxInput}`,checkbox="cwsfieb7-0-0-beta-39",checkboxClassname=`rdg-checkbox ${checkbox}`,checkboxLabelDisabled="c1fgadbl7-0-0-beta-39",checkboxLabelDisabledClassname=`rdg-checkbox-label-disabled ${checkboxLabelDisabled}`;function renderCheckbox({onChange:eo,...to}){function no(io){eo(io.target.checked,io.nativeEvent.shiftKey)}return jsxRuntimeExports.jsxs("label",{className:clsx(checkboxLabelClassname,to.disabled&&checkboxLabelDisabledClassname),children:[jsxRuntimeExports.jsx("input",{type:"checkbox",...to,className:checkboxInputClassname,onChange:no}),jsxRuntimeExports.jsx("div",{className:checkboxClassname})]})}function renderValue(eo){try{return eo.row[eo.column.key]}catch{return null}}const DataGridDefaultRenderersContext=reactExports.createContext(void 0),DataGridDefaultRenderersProvider=DataGridDefaultRenderersContext.Provider;function useDefaultRenderers(){return reactExports.useContext(DataGridDefaultRenderersContext)}const RowSelectionContext=reactExports.createContext(void 0),RowSelectionProvider=RowSelectionContext.Provider,RowSelectionChangeContext=reactExports.createContext(void 0),RowSelectionChangeProvider=RowSelectionChangeContext.Provider,SELECT_COLUMN_KEY="select-row",DEFAULT_COLUMN_WIDTH="auto",DEFAULT_COLUMN_MIN_WIDTH=50;function useCalculatedColumns({rawColumns:eo,defaultColumnOptions:to,measuredColumnWidths:no,resizedColumnWidths:io,viewportWidth:so,scrollLeft:ao,enableVirtualization:lo}){const uo=(to==null?void 0:to.width)??DEFAULT_COLUMN_WIDTH,ho=(to==null?void 0:to.minWidth)??DEFAULT_COLUMN_MIN_WIDTH,go=(to==null?void 0:to.maxWidth)??void 0,mo=(to==null?void 0:to.renderCell)??renderValue,yo=(to==null?void 0:to.sortable)??!1,So=(to==null?void 0:to.resizable)??!1,_o=(to==null?void 0:to.draggable)??!1,{columns:ko,colSpanColumns:Co,lastFrozenColumnIndex:$o,headerRowsCount:Ro}=reactExports.useMemo(()=>{let Go=-1,Do=1;const Uo=[];Ho(eo,1);function Ho(qo,Jo,ps){for(const Qo of qo){if("children"in Qo){const ys={name:Qo.name,parent:ps,idx:-1,colSpan:0,level:0,headerCellClass:Qo.headerCellClass};Ho(Qo.children,Jo+1,ys);continue}const hs=Qo.frozen??!1,gs={...Qo,parent:ps,idx:0,level:0,frozen:hs,isLastFrozenColumn:!1,width:Qo.width??uo,minWidth:Qo.minWidth??ho,maxWidth:Qo.maxWidth??go,sortable:Qo.sortable??yo,resizable:Qo.resizable??So,draggable:Qo.draggable??_o,renderCell:Qo.renderCell??mo};Uo.push(gs),hs&&Go++,Jo>Do&&(Do=Jo)}}Uo.sort(({key:qo,frozen:Jo},{key:ps,frozen:Qo})=>qo===SELECT_COLUMN_KEY?-1:ps===SELECT_COLUMN_KEY?1:Jo?Qo?0:-1:Qo?1:0);const Yo=[];return Uo.forEach((qo,Jo)=>{qo.idx=Jo,updateColumnParent(qo,Jo,0),qo.colSpan!=null&&Yo.push(qo)}),Go!==-1&&(Uo[Go].isLastFrozenColumn=!0),{columns:Uo,colSpanColumns:Yo,lastFrozenColumnIndex:Go,headerRowsCount:Do}},[eo,uo,ho,go,mo,So,yo,_o]),{templateColumns:Oo,layoutCssVars:No,totalFrozenColumnWidth:Mo,columnMetrics:Bo}=reactExports.useMemo(()=>{const Go=new Map;let Do=0,Uo=0;const Ho=[];for(const qo of ko){let Jo=io.get(qo.key)??no.get(qo.key)??qo.width;typeof Jo=="number"?Jo=clampColumnWidth(Jo,qo):Jo=qo.minWidth,Ho.push(`${Jo}px`),Go.set(qo,{width:Jo,left:Do}),Do+=Jo}if($o!==-1){const qo=Go.get(ko[$o]);Uo=qo.left+qo.width}const Yo={};for(let qo=0;qo<=$o;qo++){const Jo=ko[qo];Yo[`--rdg-frozen-left-${Jo.idx}`]=`${Go.get(Jo).left}px`}return{templateColumns:Ho,layoutCssVars:Yo,totalFrozenColumnWidth:Uo,columnMetrics:Go}},[no,io,ko,$o]),[Fo,Lo]=reactExports.useMemo(()=>{if(!lo)return[0,ko.length-1];const Go=ao+Mo,Do=ao+so,Uo=ko.length-1,Ho=min$5($o+1,Uo);if(Go>=Do)return[Ho,Ho];let Yo=Ho;for(;YoGo)break;Yo++}let qo=Yo;for(;qo=Do)break;qo++}const Jo=max$5(Ho,Yo-1),ps=min$5(Uo,qo+1);return[Jo,ps]},[Bo,ko,$o,ao,Mo,so,lo]);return{columns:ko,colSpanColumns:Co,colOverscanStartIdx:Fo,colOverscanEndIdx:Lo,templateColumns:Oo,layoutCssVars:No,headerRowsCount:Ro,lastFrozenColumnIndex:$o,totalFrozenColumnWidth:Mo}}function updateColumnParent(eo,to,no){if(no"u"?reactExports.useEffect:reactExports.useLayoutEffect;function useColumnWidths(eo,to,no,io,so,ao,lo,uo,ho,go){const mo=reactExports.useRef(so),yo=eo.length===to.length,So=yo&&so!==mo.current,_o=[...no],ko=[];for(const{key:Oo,idx:No,width:Mo}of to)typeof Mo=="string"&&(So||!lo.has(Oo))&&!ao.has(Oo)&&(_o[No]=Mo,ko.push(Oo));const Co=_o.join(" ");useLayoutEffect(()=>{mo.current=so,$o(ko)});function $o(Oo){Oo.length!==0&&ho(No=>{const Mo=new Map(No);let Bo=!1;for(const Fo of Oo){const Lo=measureColumnWidth(io,Fo);Bo||(Bo=Lo!==No.get(Fo)),Lo===void 0?Mo.delete(Fo):Mo.set(Fo,Lo)}return Bo?Mo:No})}function Ro(Oo,No){const{key:Mo}=Oo,Bo=[...no],Fo=[];for(const{key:Go,idx:Do,width:Uo}of to)if(Mo===Go){const Ho=typeof No=="number"?`${No}px`:No;Bo[Do]=Ho}else yo&&typeof Uo=="string"&&!ao.has(Go)&&(Bo[Do]=Uo,Fo.push(Go));io.current.style.gridTemplateColumns=Bo.join(" ");const Lo=typeof No=="number"?No:measureColumnWidth(io,Mo);reactDomExports.flushSync(()=>{uo(Go=>{const Do=new Map(Go);return Do.set(Mo,Lo),Do}),$o(Fo)}),go==null||go(Oo.idx,Lo)}return{gridTemplateColumns:Co,handleColumnResize:Ro}}function measureColumnWidth(eo,to){const no=`[data-measuring-cell-key="${CSS.escape(to)}"]`,io=eo.current.querySelector(no);return io==null?void 0:io.getBoundingClientRect().width}function useGridDimensions(){const eo=reactExports.useRef(null),[to,no]=reactExports.useState(1),[io,so]=reactExports.useState(1);return useLayoutEffect(()=>{const{ResizeObserver:ao}=window;if(ao==null)return;const{clientWidth:lo,clientHeight:uo,offsetWidth:ho,offsetHeight:go}=eo.current,{width:mo,height:yo}=eo.current.getBoundingClientRect(),So=mo-ho+lo,_o=yo-go+uo;no(So),so(_o);const ko=new ao(Co=>{const $o=Co[0].contentBoxSize[0];reactDomExports.flushSync(()=>{no($o.inlineSize),so($o.blockSize)})});return ko.observe(eo.current),()=>{ko.disconnect()}},[]),[eo,to,io]}function useLatestFunc(eo){const to=reactExports.useRef(eo);reactExports.useEffect(()=>{to.current=eo});const no=reactExports.useCallback((...io)=>{to.current(...io)},[]);return eo&&no}function useRovingTabIndex(eo){const[to,no]=reactExports.useState(!1);to&&!eo&&no(!1);function io(ao){ao.target!==ao.currentTarget&&no(!0)}return{tabIndex:eo&&!to?0:-1,childTabIndex:eo?0:-1,onFocus:eo?io:void 0}}function useViewportColumns({columns:eo,colSpanColumns:to,rows:no,topSummaryRows:io,bottomSummaryRows:so,colOverscanStartIdx:ao,colOverscanEndIdx:lo,lastFrozenColumnIndex:uo,rowOverscanStartIdx:ho,rowOverscanEndIdx:go}){const mo=reactExports.useMemo(()=>{if(ao===0)return 0;let yo=ao;const So=(_o,ko)=>ko!==void 0&&_o+ko>ao?(yo=_o,!0):!1;for(const _o of to){const ko=_o.idx;if(ko>=yo||So(ko,getColSpan(_o,uo,{type:"HEADER"})))break;for(let Co=ho;Co<=go;Co++){const $o=no[Co];if(So(ko,getColSpan(_o,uo,{type:"ROW",row:$o})))break}if(io!=null){for(const Co of io)if(So(ko,getColSpan(_o,uo,{type:"SUMMARY",row:Co})))break}if(so!=null){for(const Co of so)if(So(ko,getColSpan(_o,uo,{type:"SUMMARY",row:Co})))break}}return yo},[ho,go,no,io,so,ao,uo,to]);return reactExports.useMemo(()=>{const yo=[];for(let So=0;So<=lo;So++){const _o=eo[So];So{if(typeof to=="number")return{totalRowHeight:to*eo.length,gridTemplateRows:` repeat(${eo.length}, ${to}px)`,getRowTop:$o=>$o*to,getRowHeight:()=>to,findRowIdx:$o=>floor($o/to)};let So=0,_o=" ";const ko=eo.map($o=>{const Ro=to($o),Oo={top:So,height:Ro};return _o+=`${Ro}px `,So+=Ro,Oo}),Co=$o=>max$5(0,min$5(eo.length-1,$o));return{totalRowHeight:So,gridTemplateRows:_o,getRowTop:$o=>ko[Co($o)].top,getRowHeight:$o=>ko[Co($o)].height,findRowIdx($o){let Ro=0,Oo=ko.length-1;for(;Ro<=Oo;){const No=Ro+floor((Oo-Ro)/2),Mo=ko[No].top;if(Mo===$o)return No;if(Mo<$o?Ro=No+1:Mo>$o&&(Oo=No-1),Ro>Oo)return Oo}return 0}}},[to,eo]);let mo=0,yo=eo.length-1;if(so){const _o=go(io),ko=go(io+no);mo=max$5(0,_o-4),yo=min$5(eo.length-1,ko+4)}return{rowOverscanStartIdx:mo,rowOverscanEndIdx:yo,totalRowHeight:ao,gridTemplateRows:lo,getRowTop:uo,getRowHeight:ho,findRowIdx:go}}const cellDragHandle="cadd3bp7-0-0-beta-39",cellDragHandleFrozenClassname="ccmuez27-0-0-beta-39",cellDragHandleClassname=`rdg-cell-drag-handle ${cellDragHandle}`;function DragHandle({gridRowStart:eo,rows:to,columns:no,selectedPosition:io,latestDraggedOverRowIdx:so,isCellEditable:ao,onRowsChange:lo,onFill:uo,onClick:ho,setDragging:go,setDraggedOverRowIdx:mo}){var Mo;const{idx:yo,rowIdx:So}=io,_o=no[yo];function ko(Bo){if(Bo.preventDefault(),Bo.buttons!==1)return;go(!0),window.addEventListener("mouseover",Fo),window.addEventListener("mouseup",Lo);function Fo(Go){Go.buttons!==1&&Lo()}function Lo(){window.removeEventListener("mouseover",Fo),window.removeEventListener("mouseup",Lo),go(!1),Co()}}function Co(){const Bo=so.current;if(Bo===void 0)return;const Fo=So0&&(lo==null||lo(Do,{indexes:Uo,column:Lo}))}const Oo=((Mo=_o.colSpan)==null?void 0:Mo.call(_o,{type:"ROW",row:to[So]}))??1,No=getCellStyle(_o,Oo);return jsxRuntimeExports.jsx("div",{style:{...No,gridRowStart:eo,insetInlineStart:No.insetInlineStart&&typeof _o.width=="number"?`calc(${No.insetInlineStart} + ${_o.width}px - var(--rdg-drag-handle-size))`:void 0},className:clsx(cellDragHandleClassname,_o.frozen&&cellDragHandleFrozenClassname),onClick:ho,onMouseDown:ko,onDoubleClick:$o})}const cellEditing="c1tngyp17-0-0-beta-39";function EditCell({column:eo,colSpan:to,row:no,rowIdx:io,onRowChange:so,closeEditor:ao,onKeyDown:lo,navigate:uo}){var Ro,Oo,No;const ho=reactExports.useRef(),go=((Ro=eo.editorOptions)==null?void 0:Ro.commitOnOutsideClick)!==!1,mo=useLatestFunc(()=>{_o(!0,!1)});reactExports.useEffect(()=>{if(!go)return;function Mo(){ho.current=requestAnimationFrame(mo)}return addEventListener("mousedown",Mo,{capture:!0}),()=>{removeEventListener("mousedown",Mo,{capture:!0}),yo()}},[go,mo]);function yo(){cancelAnimationFrame(ho.current)}function So(Mo){if(lo){const Bo=createCellEvent(Mo);if(lo({mode:"EDIT",row:no,column:eo,rowIdx:io,navigate(){uo(Mo)},onClose:_o},Bo),Bo.isGridDefaultPrevented())return}Mo.key==="Escape"?_o():Mo.key==="Enter"?_o(!0):onEditorNavigation(Mo)&&uo(Mo)}function _o(Mo=!1,Bo=!0){Mo?so(no,!0,Bo):ao(Bo)}function ko(Mo,Bo=!1){so(Mo,Bo,Bo)}const{cellClass:Co}=eo,$o=getCellClassname(eo,"rdg-editor-container",typeof Co=="function"?Co(no):Co,!((Oo=eo.editorOptions)!=null&&Oo.displayCellContent)&&cellEditing);return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":!0,className:$o,style:getCellStyle(eo,to),onKeyDown:So,onMouseDownCapture:yo,children:eo.renderEditCell!=null&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[eo.renderEditCell({column:eo,row:no,onRowChange:ko,onClose:_o}),((No=eo.editorOptions)==null?void 0:No.displayCellContent)&&eo.renderCell({column:eo,row:no,isCellEditable:!0,tabIndex:-1,onRowChange:ko})]})})}function GroupedColumnHeaderCell({column:eo,rowIdx:to,isCellSelected:no,selectCell:io}){const{tabIndex:so,onFocus:ao}=useRovingTabIndex(no),{colSpan:lo}=eo,uo=getHeaderCellRowSpan(eo,to),ho=eo.idx+1;function go(){io({idx:eo.idx,rowIdx:to})}return jsxRuntimeExports.jsx("div",{role:"columnheader","aria-colindex":ho,"aria-colspan":lo,"aria-rowspan":uo,"aria-selected":no,tabIndex:so,className:clsx(cellClassname,eo.headerCellClass),style:{...getHeaderCellStyle(eo,to,uo),gridColumnStart:ho,gridColumnEnd:ho+lo},onFocus:ao,onClick:go,children:eo.name})}const headerSortCellClassname="hizp7y17-0-0-beta-39",headerSortName="h14cojrm7-0-0-beta-39",headerSortNameClassname=`rdg-header-sort-name ${headerSortName}`;function renderHeaderCell({column:eo,sortDirection:to,priority:no}){return eo.sortable?jsxRuntimeExports.jsx(SortableHeaderCell,{sortDirection:to,priority:no,children:eo.name}):eo.name}function SortableHeaderCell({sortDirection:eo,priority:to,children:no}){const io=useDefaultRenderers().renderSortStatus;return jsxRuntimeExports.jsxs("span",{className:headerSortCellClassname,children:[jsxRuntimeExports.jsx("span",{className:headerSortNameClassname,children:no}),jsxRuntimeExports.jsx("span",{children:io({sortDirection:eo,priority:to})})]})}const cellSortableClassname="celq7o97-0-0-beta-39",cellResizable="ceqw94e7-0-0-beta-39",cellResizableClassname=`rdg-cell-resizable ${cellResizable}`,resizeHandleClassname="r12jy2ca7-0-0-beta-39",cellDragging="c1j3os1p7-0-0-beta-39",cellDraggingClassname=`rdg-cell-dragging ${cellDragging}`,cellOver="c1ui3nad7-0-0-beta-39",cellOverClassname=`rdg-cell-drag-over ${cellOver}`;function HeaderCell({column:eo,colSpan:to,rowIdx:no,isCellSelected:io,onColumnResize:so,onColumnsReorder:ao,sortColumns:lo,onSortColumnsChange:uo,selectCell:ho,shouldFocusGrid:go,direction:mo}){const[yo,So]=reactExports.useState(!1),[_o,ko]=reactExports.useState(!1),Co=mo==="rtl",$o=getHeaderCellRowSpan(eo,no),{tabIndex:Ro,childTabIndex:Oo,onFocus:No}=useRovingTabIndex(io),Mo=lo==null?void 0:lo.findIndex(qs=>qs.columnKey===eo.key),Bo=Mo!==void 0&&Mo>-1?lo[Mo]:void 0,Fo=Bo==null?void 0:Bo.direction,Lo=Bo!==void 0&&lo.length>1?Mo+1:void 0,Go=Fo&&!Lo?Fo==="ASC"?"ascending":"descending":void 0,{sortable:Do,resizable:Uo,draggable:Ho}=eo,Yo=getCellClassname(eo,eo.headerCellClass,Do&&cellSortableClassname,Uo&&cellResizableClassname,yo&&cellDraggingClassname,_o&&cellOverClassname),qo=eo.renderHeaderCell??renderHeaderCell;function Jo(qs){if(qs.pointerType==="mouse"&&qs.buttons!==1)return;const{currentTarget:ga,pointerId:Fs}=qs,Js=ga.parentElement,{right:Vs,left:El}=Js.getBoundingClientRect(),yl=Co?qs.clientX-El:Vs-qs.clientX;function Gl(du){du.preventDefault();const{right:Ol,left:Fu}=Js.getBoundingClientRect(),ju=Co?Ol+yl-du.clientX:du.clientX+yl-Fu;ju>0&&so(eo,clampColumnWidth(ju,eo))}function Qs(){ga.removeEventListener("pointermove",Gl),ga.removeEventListener("lostpointercapture",Qs)}ga.setPointerCapture(Fs),ga.addEventListener("pointermove",Gl),ga.addEventListener("lostpointercapture",Qs)}function ps(qs){if(uo==null)return;const{sortDescendingFirst:ga}=eo;if(Bo===void 0){const Fs={columnKey:eo.key,direction:ga?"DESC":"ASC"};uo(lo&&qs?[...lo,Fs]:[Fs])}else{let Fs;if((ga===!0&&Fo==="DESC"||ga!==!0&&Fo==="ASC")&&(Fs={columnKey:eo.key,direction:Fo==="ASC"?"DESC":"ASC"}),qs){const Js=[...lo];Fs?Js[Mo]=Fs:Js.splice(Mo,1),uo(Js)}else uo(Fs?[Fs]:[])}}function Qo(qs){ho({idx:eo.idx,rowIdx:no}),Do&&ps(qs.ctrlKey||qs.metaKey)}function hs(){so(eo,"max-content")}function gs(qs){No==null||No(qs),go&&ho({idx:0,rowIdx:no})}function ys(qs){(qs.key===" "||qs.key==="Enter")&&(qs.preventDefault(),ps(qs.ctrlKey||qs.metaKey))}function vs(qs){qs.dataTransfer.setData("text/plain",eo.key),qs.dataTransfer.dropEffect="move",So(!0)}function ks(){So(!1)}function Os(qs){qs.preventDefault(),qs.dataTransfer.dropEffect="move"}function Ts(qs){ko(!1);const ga=qs.dataTransfer.getData("text/plain");ga!==eo.key&&(qs.preventDefault(),ao==null||ao(ga,eo.key))}function Xs(qs){isEventPertinent(qs)&&ko(!0)}function Ws(qs){isEventPertinent(qs)&&ko(!1)}let Ps;return Ho&&(Ps={draggable:!0,onDragStart:vs,onDragEnd:ks,onDragOver:Os,onDragEnter:Xs,onDragLeave:Ws,onDrop:Ts}),jsxRuntimeExports.jsxs("div",{role:"columnheader","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-rowspan":$o,"aria-selected":io,"aria-sort":Go,tabIndex:go?0:Ro,className:Yo,style:{...getHeaderCellStyle(eo,no,$o),...getCellStyle(eo,to)},onFocus:gs,onClick:Qo,onKeyDown:Do?ys:void 0,...Ps,children:[qo({column:eo,sortDirection:Fo,priority:Lo,tabIndex:Oo}),Uo&&jsxRuntimeExports.jsx("div",{className:resizeHandleClassname,onClick:stopPropagation,onDoubleClick:hs,onPointerDown:Jo})]})}function isEventPertinent(eo){const to=eo.relatedTarget;return!eo.currentTarget.contains(to)}const row="r1otpg647-0-0-beta-39",rowClassname=`rdg-row ${row}`,rowSelected="rel5gk27-0-0-beta-39",rowSelectedClassname="rdg-row-selected",rowSelectedWithFrozenCell="r1qymf1z7-0-0-beta-39",headerRow="h197vzie7-0-0-beta-39",headerRowClassname=`rdg-header-row ${headerRow}`;function HeaderRow({rowIdx:eo,columns:to,onColumnResize:no,onColumnsReorder:io,sortColumns:so,onSortColumnsChange:ao,lastFrozenColumnIndex:lo,selectedCellIdx:uo,selectCell:ho,shouldFocusGrid:go,direction:mo}){const yo=[];for(let So=0;Soto&&ho.parent!==void 0;)ho=ho.parent;if(ho.level===to&&!lo.has(ho)){lo.add(ho);const{idx:go}=ho;ao.push(jsxRuntimeExports.jsx(GroupedColumnHeaderCell,{column:ho,rowIdx:eo,isCellSelected:io===go,selectCell:so},go))}}}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":eo,className:headerRowClassname,children:ao})}const GroupedColumnHeaderRow$1=reactExports.memo(GroupedColumnHeaderRow),cellCopied="ccpfvsn7-0-0-beta-39",cellCopiedClassname=`rdg-cell-copied ${cellCopied}`,cellDraggedOver="c1bmg16t7-0-0-beta-39",cellDraggedOverClassname=`rdg-cell-dragged-over ${cellDraggedOver}`;function Cell({column:eo,colSpan:to,isCellSelected:no,isCopied:io,isDraggedOver:so,row:ao,rowIdx:lo,onClick:uo,onDoubleClick:ho,onContextMenu:go,onRowChange:mo,selectCell:yo,...So}){const{tabIndex:_o,childTabIndex:ko,onFocus:Co}=useRovingTabIndex(no),{cellClass:$o}=eo,Ro=getCellClassname(eo,typeof $o=="function"?$o(ao):$o,io&&cellCopiedClassname,so&&cellDraggedOverClassname),Oo=isCellEditable(eo,ao);function No(Go){yo({rowIdx:lo,idx:eo.idx},Go)}function Mo(Go){if(uo){const Do=createCellEvent(Go);if(uo({row:ao,column:eo,selectCell:No},Do),Do.isGridDefaultPrevented())return}No()}function Bo(Go){if(go){const Do=createCellEvent(Go);if(go({row:ao,column:eo,selectCell:No},Do),Do.isGridDefaultPrevented())return}No()}function Fo(Go){if(ho){const Do=createCellEvent(Go);if(ho({row:ao,column:eo,selectCell:No},Do),Do.isGridDefaultPrevented())return}No(!0)}function Lo(Go){mo(eo,Go)}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":no,"aria-readonly":!Oo||void 0,tabIndex:_o,className:Ro,style:getCellStyle(eo,to),onClick:Mo,onDoubleClick:Fo,onContextMenu:Bo,onFocus:Co,...So,children:eo.renderCell({column:eo,row:ao,isCellEditable:Oo,tabIndex:ko,onRowChange:Lo})})}const Cell$1=reactExports.memo(Cell);function Row({className:eo,rowIdx:to,gridRowStart:no,height:io,selectedCellIdx:so,isRowSelected:ao,copiedCellIdx:lo,draggedOverCellIdx:uo,lastFrozenColumnIndex:ho,row:go,viewportColumns:mo,selectedCellEditor:yo,onCellClick:So,onCellDoubleClick:_o,onCellContextMenu:ko,rowClass:Co,setDraggedOverRowIdx:$o,onMouseEnter:Ro,onRowChange:Oo,selectCell:No,...Mo},Bo){const Fo=useLatestFunc((Do,Uo)=>{Oo(Do,to,Uo)});function Lo(Do){$o==null||$o(to),Ro==null||Ro(Do)}eo=clsx(rowClassname,`rdg-row-${to%2===0?"even":"odd"}`,Co==null?void 0:Co(go,to),eo,so===-1&&rowSelectedClassname);const Go=[];for(let Do=0;Do{scrollIntoView$2(so.current)}),useLayoutEffect(()=>{function ao(){io(null)}const lo=new IntersectionObserver(ao,{root:no,threshold:1});return lo.observe(so.current),()=>{lo.disconnect()}},[no,io]),jsxRuntimeExports.jsx("div",{ref:so,style:{gridColumn:eo===void 0?"1/-1":eo+1,gridRow:to===void 0?"1/-1":to+2}})}const arrow="a1mygwml7-0-0-beta-39",arrowClassname=`rdg-sort-arrow ${arrow}`;function renderSortStatus({sortDirection:eo,priority:to}){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderSortIcon({sortDirection:eo}),renderSortPriority({priority:to})]})}function renderSortIcon({sortDirection:eo}){return eo===void 0?null:jsxRuntimeExports.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:arrowClassname,"aria-hidden":!0,children:jsxRuntimeExports.jsx("path",{d:eo==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function renderSortPriority({priority:eo}){return eo}const root$4="r104f42s7-0-0-beta-39",rootClassname=`rdg ${root$4}`,viewportDragging="v7ly7s7-0-0-beta-39",viewportDraggingClassname=`rdg-viewport-dragging ${viewportDragging}`,focusSinkClassname="fc4f4zb7-0-0-beta-39",focusSinkHeaderAndSummaryClassname="fq51q037-0-0-beta-39",summaryCellClassname="s1n3hxke7-0-0-beta-39";function SummaryCell({column:eo,colSpan:to,row:no,rowIdx:io,isCellSelected:so,selectCell:ao}){var So;const{tabIndex:lo,childTabIndex:uo,onFocus:ho}=useRovingTabIndex(so),{summaryCellClass:go}=eo,mo=getCellClassname(eo,summaryCellClassname,typeof go=="function"?go(no):go);function yo(){ao({rowIdx:io,idx:eo.idx})}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":so,tabIndex:lo,className:mo,style:getCellStyle(eo,to),onClick:yo,onFocus:ho,children:(So=eo.renderSummaryCell)==null?void 0:So.call(eo,{column:eo,row:no,tabIndex:uo})})}const SummaryCell$1=reactExports.memo(SummaryCell),summaryRow="snfqesz7-0-0-beta-39",topSummaryRow="t1jijrjz7-0-0-beta-39",topSummaryRowBorderClassname="t14bmecc7-0-0-beta-39",bottomSummaryRowBorderClassname="b1odhhml7-0-0-beta-39",summaryRowClassname=`rdg-summary-row ${summaryRow}`,topSummaryRowClassname=`rdg-top-summary-row ${topSummaryRow}`;function SummaryRow({rowIdx:eo,gridRowStart:to,row:no,viewportColumns:io,top:so,bottom:ao,lastFrozenColumnIndex:lo,selectedCellIdx:uo,isTop:ho,showBorder:go,selectCell:mo,"aria-rowindex":yo}){const So=[];for(let _o=0;_onew Map),[F1,y1]=reactExports.useState(()=>new Map),[r1,$u]=reactExports.useState(null),[Kl,Is]=reactExports.useState(!1),[Ks,Bs]=reactExports.useState(void 0),[Ds,Zs]=reactExports.useState(null),[Cl,ba,fu]=useGridDimensions(),{columns:Lu,colSpanColumns:e1,lastFrozenColumnIndex:Gu,headerRowsCount:w1,colOverscanStartIdx:Zu,colOverscanEndIdx:L1,templateColumns:K1,layoutCssVars:yp,totalFrozenColumnWidth:wp}=useCalculatedColumns({rawColumns:no,defaultColumnOptions:Co,measuredColumnWidths:F1,resizedColumnWidths:Fu,scrollLeft:du,viewportWidth:ba,enableVirtualization:El}),j0=(so==null?void 0:so.length)??0,h0=(ao==null?void 0:ao.length)??0,cp=j0+h0,k0=w1+j0,ap=w1-1,x0=-k0,b0=x0+ap,P1=io.length+h0-1,[c1,V0]=reactExports.useState(()=>({idx:-1,rowIdx:x0-1,mode:"SELECT"})),P0=reactExports.useRef(c1),up=reactExports.useRef(Ks),Lp=reactExports.useRef(-1),Mv=reactExports.useRef(null),$v=reactExports.useRef(!1),Gv=Xs==="treegrid",C1=w1*Ps,Ll=fu-C1-cp*qs,Ul=yo!=null&&So!=null,_l=yl==="rtl",$l=_l?"ArrowRight":"ArrowLeft",Us=_l?"ArrowLeft":"ArrowRight",Rl=ks??w1+io.length+cp,Sl=reactExports.useMemo(()=>({renderCheckbox:Js,renderSortStatus:Fs}),[Js,Fs]),eu=reactExports.useMemo(()=>{const{length:A0}=io;return A0!==0&&yo!=null&&lo!=null&&yo.size>=A0&&io.every(Y0=>yo.has(lo(Y0)))},[io,yo,lo]),{rowOverscanStartIdx:_c,rowOverscanEndIdx:zu,totalRowHeight:N1,gridTemplateRows:K0,getRowTop:J0,getRowHeight:S1,findRowIdx:O1}=useViewportRows({rows:io,rowHeight:Ws,clientHeight:Ll,scrollTop:Gl,enableVirtualization:El}),r0=useViewportColumns({columns:Lu,colSpanColumns:e1,colOverscanStartIdx:Zu,colOverscanEndIdx:L1,lastFrozenColumnIndex:Gu,rowOverscanStartIdx:_c,rowOverscanEndIdx:zu,rows:io,topSummaryRows:so,bottomSummaryRows:ao}),{gridTemplateColumns:I1,handleColumnResize:R0}=useColumnWidths(Lu,r0,K1,Cl,ba,Fu,F1,ju,y1,Fo),tu=Gv?-1:0,T2=Lu.length-1,hu=q7(c1),Z2=V7(c1),r_=useLatestFunc(R0),G4=useLatestFunc(Lo),bE=useLatestFunc(ko),hw=useLatestFunc($o),Ay=useLatestFunc(Ro),NS=useLatestFunc(Oo),i_=useLatestFunc(DS),JE=useLatestFunc(LS),_k=useLatestFunc(t$),W4=useLatestFunc(({idx:A0,rowIdx:Y0})=>{t$({rowIdx:x0+Y0-1,idx:A0})});useLayoutEffect(()=>{if(!hu||isSamePosition(c1,P0.current)){P0.current=c1;return}P0.current=c1,c1.idx===-1&&(Mv.current.focus({preventScroll:!0}),scrollIntoView$2(Mv.current))}),useLayoutEffect(()=>{$v.current&&($v.current=!1,ZR())}),reactExports.useImperativeHandle(to,()=>({element:Cl.current,scrollToCell({idx:A0,rowIdx:Y0}){const Rm=A0!==void 0&&A0>Gu&&A0{Bs(A0),up.current=A0},[]);function DS(A0){if(!So)return;if(assertIsValidKeyGetter(lo),A0.type==="HEADER"){const i2=new Set(yo);for(const f2 of io){const Ox=lo(f2);A0.checked?i2.add(Ox):i2.delete(Ox)}So(i2);return}const{row:Y0,checked:Rm,isShiftClick:wm}=A0,jp=new Set(yo),im=lo(Y0);if(Rm){jp.add(im);const i2=Lp.current,f2=io.indexOf(Y0);if(Lp.current=f2,wm&&i2!==-1&&i2!==f2){const Ox=sign$1(f2-i2);for(let P5=i2+Ox;P5!==f2;P5+=Ox){const hC=io[P5];jp.add(lo(hC))}}}else jp.delete(im),Lp.current=-1;So(jp)}function Tw(A0){const{idx:Y0,rowIdx:Rm,mode:wm}=c1;if(wm==="EDIT")return;if(No&&BS(Rm)){const f2=io[Rm],Ox=createCellEvent(A0);if(No({mode:"SELECT",row:f2,column:Lu[Y0],rowIdx:Rm,selectCell:t$},Ox),Ox.isGridDefaultPrevented())return}if(!(A0.target instanceof Element))return;const jp=A0.target.closest(".rdg-cell")!==null,im=Gv&&A0.target===Mv.current;if(!jp&&!im)return;const{keyCode:i2}=A0;if(Z2&&(Uo!=null||Do!=null)&&isCtrlKeyHeldDown(A0)){if(i2===67){D_();return}if(i2===86){K4();return}}switch(A0.key){case"Escape":$u(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":vM(A0);break;default:cC(A0);break}}function yE(A0){const{scrollTop:Y0,scrollLeft:Rm}=A0.currentTarget;reactDomExports.flushSync(()=>{Qs(Y0),Ol(abs$3(Rm))}),Bo==null||Bo(A0)}function LS(A0,Y0,Rm){if(typeof uo!="function"||Rm===io[Y0])return;const wm=[...io];wm[Y0]=Rm,uo(wm,{indexes:[Y0],column:A0})}function U4(){c1.mode==="EDIT"&&LS(Lu[c1.idx],c1.rowIdx,c1.row)}function D_(){const{idx:A0,rowIdx:Y0}=c1,Rm=io[Y0],wm=Lu[A0].key;$u({row:Rm,columnKey:wm}),Do==null||Do({sourceRow:Rm,sourceColumnKey:wm})}function K4(){if(!Uo||!uo||r1===null||!fC(c1))return;const{idx:A0,rowIdx:Y0}=c1,Rm=Lu[A0],wm=io[Y0],jp=Uo({sourceRow:r1.row,sourceColumnKey:r1.columnKey,targetRow:wm,targetColumnKey:Rm.key});LS(Rm,Y0,jp)}function cC(A0){if(!Z2)return;const Y0=io[c1.rowIdx],{key:Rm,shiftKey:wm}=A0;if(Ul&&wm&&Rm===" "){assertIsValidKeyGetter(lo);const jp=lo(Y0);DS({type:"ROW",row:Y0,checked:!yo.has(jp),isShiftClick:!1}),A0.preventDefault();return}fC(c1)&&isDefaultCellInput(A0)&&V0(({idx:jp,rowIdx:im})=>({idx:jp,rowIdx:im,mode:"EDIT",row:Y0,originalRow:Y0}))}function uC(A0){return A0>=tu&&A0<=T2}function BS(A0){return A0>=0&&A0=x0&&Y0<=P1&&uC(A0)}function V7({idx:A0,rowIdx:Y0}){return BS(Y0)&&uC(A0)}function fC(A0){return V7(A0)&&isSelectedCellEditable({columns:Lu,rows:io,selectedPosition:A0})}function t$(A0,Y0){if(!q7(A0))return;U4();const Rm=io[A0.rowIdx],wm=isSamePosition(c1,A0);Y0&&fC(A0)?V0({...A0,mode:"EDIT",row:Rm,originalRow:Rm}):wm?scrollIntoView$2(getCellToScroll(Cl.current)):($v.current=!0,V0({...A0,mode:"SELECT"})),Mo&&!wm&&Mo({rowIdx:A0.rowIdx,row:Rm,column:Lu[A0.idx]})}function dP(A0,Y0,Rm){const{idx:wm,rowIdx:jp}=c1,im=hu&&wm===-1;switch(A0){case"ArrowUp":return{idx:wm,rowIdx:jp-1};case"ArrowDown":return{idx:wm,rowIdx:jp+1};case $l:return{idx:wm-1,rowIdx:jp};case Us:return{idx:wm+1,rowIdx:jp};case"Tab":return{idx:wm+(Rm?-1:1),rowIdx:jp};case"Home":return im?{idx:wm,rowIdx:x0}:{idx:0,rowIdx:Y0?x0:jp};case"End":return im?{idx:wm,rowIdx:P1}:{idx:T2,rowIdx:Y0?P1:jp};case"PageUp":{if(c1.rowIdx===x0)return c1;const i2=J0(jp)+S1(jp)-Ll;return{idx:wm,rowIdx:i2>0?O1(i2):0}}case"PageDown":{if(c1.rowIdx>=io.length)return c1;const i2=J0(jp)+Ll;return{idx:wm,rowIdx:i2A0&&A0>=Ks)?c1.idx:void 0}function ZR(){const A0=getCellToScroll(Cl.current);if(A0===null)return;scrollIntoView$2(A0),(A0.querySelector('[tabindex="0"]')??A0).focus({preventScroll:!0})}function pP(){if(!(Go==null||c1.mode==="EDIT"||!V7(c1)))return jsxRuntimeExports.jsx(DragHandle,{gridRowStart:k0+c1.rowIdx+1,rows:io,columns:Lu,selectedPosition:c1,isCellEditable:fC,latestDraggedOverRowIdx:up,onRowsChange:uo,onClick:ZR,onFill:Go,setDragging:Is,setDraggedOverRowIdx:B2})}function gP(A0){if(c1.rowIdx!==A0||c1.mode==="SELECT")return;const{idx:Y0,row:Rm}=c1,wm=Lu[Y0],jp=getColSpan(wm,Gu,{type:"ROW",row:Rm}),im=f2=>{$v.current=f2,V0(({idx:Ox,rowIdx:P5})=>({idx:Ox,rowIdx:P5,mode:"SELECT"}))},i2=(f2,Ox,P5)=>{Ox?reactDomExports.flushSync(()=>{LS(wm,c1.rowIdx,f2),im(P5)}):V0(hC=>({...hC,row:f2}))};return io[c1.rowIdx]!==c1.originalRow&&im(!1),jsxRuntimeExports.jsx(EditCell,{column:wm,colSpan:jp,row:Rm,rowIdx:A0,onRowChange:i2,closeEditor:im,onKeyDown:No,navigate:vM},wm.key)}function VA(A0){const Y0=c1.idx===-1?void 0:Lu[c1.idx];return Y0!==void 0&&c1.rowIdx===A0&&!r0.includes(Y0)?c1.idx>L1?[...r0,Y0]:[...r0.slice(0,Gu+1),Y0,...r0.slice(Gu+1)]:r0}function mP(){const A0=[],{idx:Y0,rowIdx:Rm}=c1,wm=Z2&&Rm<_c?_c-1:_c,jp=Z2&&Rm>zu?zu+1:zu;for(let im=wm;im<=jp;im++){const i2=im===_c-1||im===zu+1,f2=i2?Rm:im;let Ox=r0;const P5=Y0===-1?void 0:Lu[Y0];P5!==void 0&&(i2?Ox=[P5]:Ox=VA(f2));const hC=io[f2],vP=k0+f2+1;let G7=f2,eO=!1;typeof lo=="function"&&(G7=lo(hC),eO=(yo==null?void 0:yo.has(G7))??!1),A0.push(ga(G7,{"aria-rowindex":k0+f2+1,"aria-selected":Ul?eO:void 0,rowIdx:f2,row:hC,viewportColumns:Ox,isRowSelected:eO,onCellClick:hw,onCellDoubleClick:Ay,onCellContextMenu:NS,rowClass:ps,gridRowStart:vP,height:S1(f2),copiedCellIdx:r1!==null&&r1.row===hC?Lu.findIndex(Ix=>Ix.key===r1.columnKey):void 0,selectedCellIdx:Rm===f2?Y0:void 0,draggedOverCellIdx:hP(f2),setDraggedOverRowIdx:Kl?B2:void 0,lastFrozenColumnIndex:Gu,onRowChange:JE,selectCell:_k,selectedCellEditor:gP(f2)}))}return A0}(c1.idx>T2||c1.rowIdx>P1)&&(V0({idx:-1,rowIdx:x0-1,mode:"SELECT"}),B2(void 0));let dC=`repeat(${w1}, ${Ps}px)`;j0>0&&(dC+=` repeat(${j0}, ${qs}px)`),io.length>0&&(dC+=K0),h0>0&&(dC+=` repeat(${h0}, ${qs}px)`);const JR=c1.idx===-1&&c1.rowIdx!==x0-1;return jsxRuntimeExports.jsxs("div",{role:Xs,"aria-label":gs,"aria-labelledby":ys,"aria-describedby":vs,"aria-multiselectable":Ul?!0:void 0,"aria-colcount":Lu.length,"aria-rowcount":Rl,className:clsx(rootClassname,qo,Kl&&viewportDraggingClassname),style:{...Jo,scrollPaddingInlineStart:c1.idx>Gu||(Ds==null?void 0:Ds.idx)!==void 0?`${wp}px`:void 0,scrollPaddingBlock:BS(c1.rowIdx)||(Ds==null?void 0:Ds.rowIdx)!==void 0?`${C1+j0*qs}px ${h0*qs}px`:void 0,gridTemplateColumns:I1,gridTemplateRows:dC,"--rdg-header-row-height":`${Ps}px`,"--rdg-summary-row-height":`${qs}px`,"--rdg-sign":_l?-1:1,...yp},dir:yl,ref:Cl,onScroll:yE,onKeyDown:Tw,"data-testid":Os,children:[jsxRuntimeExports.jsx(DataGridDefaultRenderersProvider,{value:Sl,children:jsxRuntimeExports.jsxs(RowSelectionChangeProvider,{value:i_,children:[jsxRuntimeExports.jsxs(RowSelectionProvider,{value:eu,children:[Array.from({length:ap},(A0,Y0)=>jsxRuntimeExports.jsx(GroupedColumnHeaderRow$1,{rowIdx:Y0+1,level:-ap+Y0,columns:VA(x0+Y0),selectedCellIdx:c1.rowIdx===x0+Y0?c1.idx:void 0,selectCell:W4},Y0)),jsxRuntimeExports.jsx(HeaderRow$1,{rowIdx:w1,columns:VA(b0),onColumnResize:r_,onColumnsReorder:G4,sortColumns:_o,onSortColumnsChange:bE,lastFrozenColumnIndex:Gu,selectedCellIdx:c1.rowIdx===b0?c1.idx:void 0,selectCell:W4,shouldFocusGrid:!hu,direction:yl})]}),io.length===0&&Vs?Vs:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[so==null?void 0:so.map((A0,Y0)=>{const Rm=w1+1+Y0,wm=b0+1+Y0,jp=c1.rowIdx===wm,im=C1+qs*Y0;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":Rm,rowIdx:wm,gridRowStart:Rm,row:A0,top:im,bottom:void 0,viewportColumns:VA(wm),lastFrozenColumnIndex:Gu,selectedCellIdx:jp?c1.idx:void 0,isTop:!0,showBorder:Y0===j0-1,selectCell:_k},Y0)}),mP(),ao==null?void 0:ao.map((A0,Y0)=>{const Rm=k0+io.length+Y0+1,wm=io.length+Y0,jp=c1.rowIdx===wm,im=Ll>N1?fu-qs*(ao.length-Y0):void 0,i2=im===void 0?qs*(ao.length-1-Y0):void 0;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":Rl-h0+Y0+1,rowIdx:wm,gridRowStart:Rm,row:A0,top:im,bottom:i2,viewportColumns:VA(wm),lastFrozenColumnIndex:Gu,selectedCellIdx:jp?c1.idx:void 0,isTop:!1,showBorder:Y0===0,selectCell:_k},Y0)})]})]})}),pP(),renderMeasuringCells(r0),Gv&&jsxRuntimeExports.jsx("div",{ref:Mv,tabIndex:JR?0:-1,className:clsx(focusSinkClassname,JR&&[rowSelected,Gu!==-1&&rowSelectedWithFrozenCell],!BS(c1.rowIdx)&&focusSinkHeaderAndSummaryClassname),style:{gridRowStart:c1.rowIdx+k0+1}}),Ds!==null&&jsxRuntimeExports.jsx(ScrollToCell,{scrollToPosition:Ds,setScrollToCellPosition:Zs,gridElement:Cl.current})]})}function getCellToScroll(eo){return eo.querySelector(':scope > [role="row"] > [tabindex="0"]')}function isSamePosition(eo,to){return eo.idx===to.idx&&eo.rowIdx===to.rowIdx}const DataGrid$1$1=reactExports.forwardRef(DataGrid$2),useGanttViewModel=()=>{const[eo]=useInjected(GanttViewModelToken);return eo},useGanttViewRows=()=>{const eo=useGanttViewModel();return useState(eo.rows$).toArray()},useToggleSubRows=()=>{const eo=useGanttViewModel();return reactExports.useCallback(to=>{eo.toggleRow(to)},[eo])},useTasksTimeBoundaries=()=>{const eo=useGanttViewModel();return[eo.startTime,eo.endTime]},useSelectedRow=()=>{const eo=useGanttViewModel();return useState(eo.selectedRowId$)},useSetSelectedRow=()=>{const eo=useGanttViewModel();return useSetState(eo.selectedRowId$)},GanttChartCell=({row:eo})=>{const[to,no]=useTasksTimeBoundaries(),io=`${(eo.startTime-to)*100/(no-to)}%`,so=`${(no-eo.endTime)*100/(no-to)}%`,ao=eo.children&&eo.children.length>0,lo=eo.isExpanded;return jsxRuntimeExports.jsx("div",{style:{marginLeft:io,marginRight:so,height:"100%",marginTop:4,marginBottom:4,display:"flex"},children:ao&&!lo?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(eo.children??[]).map((uo,ho)=>{const go=`${(uo.endTime-uo.startTime)*100/(eo.endTime-eo.startTime)}%`;return jsxRuntimeExports.jsx("div",{style:{backgroundColor:uo.color??`rgba(0, 120, 212, ${1-.2*ho})`,width:go}},uo.id)})}):jsxRuntimeExports.jsx("div",{style:{backgroundColor:eo.color??"rgba(0, 120, 212, 1)",width:"100%"}})})},NameCell=({row:eo})=>{const to=eo.children!==void 0&&eo.children.length>0,no=eo.isExpanded,io=useToggleSubRows(),so=reactExports.useCallback(ao=>{ao.preventDefault(),ao.stopPropagation(),io(eo.id)},[eo.id,io]);return jsxRuntimeExports.jsxs("div",{style:{display:"flex",gap:4,paddingLeft:eo.level*24},children:[to?jsxRuntimeExports.jsx("div",{onClick:so,role:"button",children:no?"▼":"▶"}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),jsxRuntimeExports.jsx("div",{children:eo.node_name||eo.name})]})},defaultColumns=[{key:"name",name:"node name",resizable:!0,width:320,renderCell({row:eo}){return jsxRuntimeExports.jsx(NameCell,{row:eo})}},{key:"duration",name:"duration",resizable:!0,width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"duration"})},renderCell({row:eo}){return jsxRuntimeExports.jsxs("div",{style:{textAlign:"right"},children:[Math.round((eo.endTime-eo.startTime)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," ","ms"]})}},{key:"ganttChart",name:"gantt-chart",renderCell({row:eo}){return jsxRuntimeExports.jsx(GanttChartCell,{row:eo})},renderHeaderCell:()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}],GanttGridView=({styles:eo,gridRef:to,getColumns:no=io=>io})=>{const io=useGanttViewRows(),so=useSetSelectedRow(),ao=useSelectedRow(),lo=reactExports.useCallback(go=>{const{row:mo}=go;so(mo.id)},[so]),uo=mergeStyles$1(eo==null?void 0:eo.grid,{borderBottom:"none",borderRight:"none"}),ho=reactExports.useCallback(go=>mergeStyles$1(ao===go.id?eo==null?void 0:eo.selectedRow:""),[ao,eo==null?void 0:eo.selectedRow]);return jsxRuntimeExports.jsx(DataGrid$1$1,{rows:io,columns:no(defaultColumns),onCellClick:lo,className:uo,rowClass:ho,ref:to})},Wrapper=({viewModel:eo,children:to})=>{const no=createRegistry({name:"gantt-wrapper"}),io=reactExports.useCallback(so=>{so.register(GanttViewModelToken,{useValue:eo})},[eo]);return jsxRuntimeExports.jsx(no,{onInitialize:io,children:to})};var GanttGridTheme=(eo=>(eo.Light="rdg-light",eo.Dark="rdg-dark",eo))(GanttGridTheme||{});const Gantt=({viewModel:eo,styles:to,getColumns:no,gridRef:io})=>jsxRuntimeExports.jsx(Wrapper,{viewModel:eo,children:jsxRuntimeExports.jsx(GanttGridView,{styles:to,getColumns:no,gridRef:io})}),TraceDetailTemplate=({trace:eo,JSONView:to})=>{const no=mergeStyleSets({root:["api-call-detail",{padding:8,width:"100%",height:"100%",display:"flex",flexDirection:"column"}],header:["api-call-detail-header",{fontWeight:600,fontSize:20,lineHeight:28,marginBottom:16}],section:["api-call-detail-section",{display:"flex",flexDirection:"column",width:"85%",height:"auto",boxShadow:"rgba(0, 0, 0, 0.18) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.22) 0px 0.3px 0.9px 0px",marginBottom:16}],sectionTitle:["api-call-detail-section-title",{fontWeight:500,fontSize:16,marginTop:8,marginBottom:8,lineHeight:20,borderBottom:"1px inset #ccc",padding:"9px 12px"}],sectionContent:["api-call-detail-section-content",{padding:16,overflow:"auto",maxHeight:"600px"}],fieldTitle:["api-call-detail-field-title",{fontWeight:500,fontSize:14,lineHeight:20}],overviewContainer:["api-call-detail-overview-container",{display:"flex",flexDirection:"row"}],overviewColumn:["api-call-detail-overview-column",{display:"flex",flexGrow:1,flexDirection:"column"}]}),io=eo.node_name??eo.name??"",so=getTokensUsageByRow(eo),ao=eo.inputs??{},lo=eo.output??{};return jsxRuntimeExports.jsxs("div",{className:no.root,children:[jsxRuntimeExports.jsx("div",{className:no.header,children:io}),jsxRuntimeExports.jsxs("div",{className:no.section,children:[jsxRuntimeExports.jsx("div",{className:no.sectionTitle,children:"Overview"}),jsxRuntimeExports.jsx("div",{className:no.sectionContent,children:jsxRuntimeExports.jsxs("div",{className:no.overviewContainer,children:[jsxRuntimeExports.jsxs("div",{className:no.overviewColumn,children:[jsxRuntimeExports.jsx("div",{className:no.fieldTitle,children:"total tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(so.totalTokens)}),jsxRuntimeExports.jsx("div",{className:no.fieldTitle,children:"prompt tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(so.promptTokens)}),jsxRuntimeExports.jsx("div",{className:no.fieldTitle,children:"completion tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(so.completionTokens)})]}),jsxRuntimeExports.jsxs("div",{className:no.overviewColumn,children:[jsxRuntimeExports.jsx("div",{className:no.fieldTitle,children:"duration"}),jsxRuntimeExports.jsx("div",{children:eo.end_time&&eo.start_time?`${Math.round((eo.end_time-eo.start_time)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} ms`:"N/A"}),jsxRuntimeExports.jsx("div",{className:no.fieldTitle,children:"started at"}),jsxRuntimeExports.jsx("div",{children:eo.start_time?timePDTFormatter(eo.start_time*1e3):"N/A"}),jsxRuntimeExports.jsx("div",{className:no.fieldTitle,children:"finished at"}),jsxRuntimeExports.jsx("div",{children:eo.end_time?timePDTFormatter(eo.end_time*1e3):"N/A"})]})]})})]}),jsxRuntimeExports.jsxs("div",{className:no.section,children:[jsxRuntimeExports.jsx("div",{className:no.sectionTitle,children:"Inputs"}),jsxRuntimeExports.jsx("div",{className:no.sectionContent,children:jsxRuntimeExports.jsx(to,{src:ao})})]}),jsxRuntimeExports.jsxs("div",{className:no.section,children:[jsxRuntimeExports.jsx("div",{className:no.sectionTitle,children:"Outputs"}),jsxRuntimeExports.jsx("div",{className:no.sectionContent,children:jsxRuntimeExports.jsx(to,{src:lo})})]})]})},traceMap=new Map,hashTraceName=eo=>{let to=0,no=0;if(eo.length===0)return to;for(let io=0;ioeo.map(to=>{const no=uuid_1.v4();return traceMap.set(no,to),{startTime:to.start_time??performance.now(),endTime:to.end_time??performance.now(),color:SystemColors[hashTraceName(to.name??"")%systemColorsLength],id:no,name:to.name??"",node_name:to.node_name??"",output:to.output??[],children:to.children?parseTrace(to.children):void 0}}),DefaultGridContainer=({children:eo,className:to})=>jsxRuntimeExports.jsx(Resizable,{enable:{right:!0},className:to,defaultSize:{width:"50%",height:"100%"},children:eo}),DefaultContainer=({children:eo,className:to})=>jsxRuntimeExports.jsx("div",{className:to,children:eo}),ApiLogs=reactExports.forwardRef(({traces:eo,styles:to,isDarkMode:no=!1,classNames:io,RootContainer:so=DefaultContainer,GridContainer:ao=DefaultGridContainer,DetailContainer:lo=DefaultContainer,renderDetail:uo=yo=>jsxRuntimeExports.jsx(TraceDetailTemplate,{JSONView:So=>jsxRuntimeExports.jsx("pre",{children:JSON.stringify(So)}),trace:yo}),onChangeSelectedTrace:ho,renderUnselectedHint:go=()=>jsxRuntimeExports.jsx("div",{children:"Click on a row to see details"})},mo)=>{const yo=reactExports.useMemo(()=>eo.reduce((Fo,Lo)=>[...Fo,...parseTrace(Lo)],[]),[eo]),So=reactExports.useMemo(()=>new GanttViewModel,[]);reactExports.useEffect(()=>{So.setTasks(yo)},[yo,So]);const _o=useState(So.selectedRowId$),ko=useSetState(So.selectedRowId$),Co=reactExports.useMemo(()=>_o?traceMap.get(_o):void 0,[_o]),$o=reactExports.useMemo(()=>({...to,grid:mergeStyles$1(to==null?void 0:to.grid,no?GanttGridTheme.Dark:GanttGridTheme.Light)}),[to,no]),Ro=mergeStyles$1({display:"flex",height:"100%",borderTop:"1px solid #ccc"},io==null?void 0:io.root),Oo=mergeStyles$1({height:"100%",width:"100%",padding:16,borderRight:"1px solid #ccc"},io==null?void 0:io.gridContainer),No=mergeStyles$1({height:"100%",width:"100%",padding:8},io==null?void 0:io.detailContainer),Mo=reactExports.useCallback(Fo=>{var Go;const Lo=(Go=yo.find(Do=>Do.node_name===Fo))==null?void 0:Go.id;Lo&&ko(Lo)},[yo,ko]);reactExports.useImperativeHandle(mo,()=>({setSelectedTraceRow:Mo})),reactExports.useEffect(()=>{ho&&ho(Co)},[ho,Co]),reactExports.useEffect(()=>{ko(void 0)},[eo]);const Bo=reactExports.useCallback(Fo=>{const Lo={key:"token",name:"token",resizable:!0,width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"Tokens"})},renderCell({row:Uo}){const Ho=getTokensUsageByRow(Uo),Yo=`prompt tokens: ${numberToDigitsString(Ho.promptTokens)}, + completion tokens: ${Ho.completionTokens}`;return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},title:Yo,children:numberToDigitsString(Ho.totalTokens)})}},[Go,...Do]=Fo;return[Go,Lo,...Do]},[]);return jsxRuntimeExports.jsxs(so,{className:Ro,children:[jsxRuntimeExports.jsx(ao,{className:Oo,children:jsxRuntimeExports.jsx(Gantt,{viewModel:So,styles:$o,getColumns:Bo})}),jsxRuntimeExports.jsx(lo,{className:No,children:Co?uo(Co):go()})]})});ApiLogs.displayName="ApiLogs";const $global=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();$global.trustedTypes===void 0&&($global.trustedTypes={createPolicy:(eo,to)=>to});const propConfig={configurable:!1,enumerable:!1,writable:!1};$global.FAST===void 0&&Reflect.defineProperty($global,"FAST",Object.assign({value:Object.create(null)},propConfig));const FAST=$global.FAST;if(FAST.getById===void 0){const eo=Object.create(null);Reflect.defineProperty(FAST,"getById",Object.assign({value(to,no){let io=eo[to];return io===void 0&&(io=no?eo[to]=no():null),io}},propConfig))}const emptyArray=Object.freeze([]);function createMetadataLocator(){const eo=new WeakMap;return function(to){let no=eo.get(to);if(no===void 0){let io=Reflect.getPrototypeOf(to);for(;no===void 0&&io!==null;)no=eo.get(io),io=Reflect.getPrototypeOf(io);no=no===void 0?[]:no.slice(0),eo.set(to,no)}return no}}const updateQueue=$global.FAST.getById(1,()=>{const eo=[],to=[];function no(){if(to.length)throw to.shift()}function io(lo){try{lo.call()}catch(uo){to.push(uo),setTimeout(no,0)}}function so(){let uo=0;for(;uo1024){for(let ho=0,go=eo.length-uo;hoeo});let htmlPolicy=fastHTMLPolicy;const marker=`fast-${Math.random().toString(36).substring(2,8)}`,_interpolationStart=`${marker}{`,_interpolationEnd=`}${marker}`,DOM=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(eo){if(htmlPolicy!==fastHTMLPolicy)throw new Error("The HTML policy can only be set once.");htmlPolicy=eo},createHTML(eo){return htmlPolicy.createHTML(eo)},isMarker(eo){return eo&&eo.nodeType===8&&eo.data.startsWith(marker)},extractDirectiveIndexFromMarker(eo){return parseInt(eo.data.replace(`${marker}:`,""))},createInterpolationPlaceholder(eo){return`${_interpolationStart}${eo}${_interpolationEnd}`},createCustomAttributePlaceholder(eo,to){return`${eo}="${this.createInterpolationPlaceholder(to)}"`},createBlockPlaceholder(eo){return``},queueUpdate:updateQueue.enqueue,processUpdates:updateQueue.process,nextUpdate(){return new Promise(updateQueue.enqueue)},setAttribute(eo,to,no){no==null?eo.removeAttribute(to):eo.setAttribute(to,no)},setBooleanAttribute(eo,to,no){no?eo.setAttribute(to,""):eo.removeAttribute(to)},removeChildNodes(eo){for(let to=eo.firstChild;to!==null;to=eo.firstChild)eo.removeChild(to)},createTemplateWalker(eo){return document.createTreeWalker(eo,133,null,!1)}});class SubscriberSet{constructor(to,no){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=to,this.sub1=no}has(to){return this.spillover===void 0?this.sub1===to||this.sub2===to:this.spillover.indexOf(to)!==-1}subscribe(to){const no=this.spillover;if(no===void 0){if(this.has(to))return;if(this.sub1===void 0){this.sub1=to;return}if(this.sub2===void 0){this.sub2=to;return}this.spillover=[this.sub1,this.sub2,to],this.sub1=void 0,this.sub2=void 0}else no.indexOf(to)===-1&&no.push(to)}unsubscribe(to){const no=this.spillover;if(no===void 0)this.sub1===to?this.sub1=void 0:this.sub2===to&&(this.sub2=void 0);else{const io=no.indexOf(to);io!==-1&&no.splice(io,1)}}notify(to){const no=this.spillover,io=this.source;if(no===void 0){const so=this.sub1,ao=this.sub2;so!==void 0&&so.handleChange(io,to),ao!==void 0&&ao.handleChange(io,to)}else for(let so=0,ao=no.length;so{const eo=/(:|&&|\|\||if)/,to=new WeakMap,no=DOM.queueUpdate;let io,so=go=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function ao(go){let mo=go.$fastController||to.get(go);return mo===void 0&&(Array.isArray(go)?mo=so(go):to.set(go,mo=new PropertyChangeNotifier(go))),mo}const lo=createMetadataLocator();class uo{constructor(mo){this.name=mo,this.field=`_${mo}`,this.callback=`${mo}Changed`}getValue(mo){return io!==void 0&&io.watch(mo,this.name),mo[this.field]}setValue(mo,yo){const So=this.field,_o=mo[So];if(_o!==yo){mo[So]=yo;const ko=mo[this.callback];typeof ko=="function"&&ko.call(mo,_o,yo),ao(mo).notify(this.name)}}}class ho extends SubscriberSet{constructor(mo,yo,So=!1){super(mo,yo),this.binding=mo,this.isVolatileBinding=So,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(mo,yo){this.needsRefresh&&this.last!==null&&this.disconnect();const So=io;io=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const _o=this.binding(mo,yo);return io=So,_o}disconnect(){if(this.last!==null){let mo=this.first;for(;mo!==void 0;)mo.notifier.unsubscribe(this,mo.propertyName),mo=mo.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(mo,yo){const So=this.last,_o=ao(mo),ko=So===null?this.first:{};if(ko.propertySource=mo,ko.propertyName=yo,ko.notifier=_o,_o.subscribe(this,yo),So!==null){if(!this.needsRefresh){let Co;io=void 0,Co=So.propertySource[So.propertyName],io=this,mo===Co&&(this.needsRefresh=!0)}So.next=ko}this.last=ko}handleChange(){this.needsQueue&&(this.needsQueue=!1,no(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let mo=this.first;return{next:()=>{const yo=mo;return yo===void 0?{value:void 0,done:!0}:(mo=mo.next,{value:yo,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(go){so=go},getNotifier:ao,track(go,mo){io!==void 0&&io.watch(go,mo)},trackVolatile(){io!==void 0&&(io.needsRefresh=!0)},notify(go,mo){ao(go).notify(mo)},defineProperty(go,mo){typeof mo=="string"&&(mo=new uo(mo)),lo(go).push(mo),Reflect.defineProperty(go,mo.name,{enumerable:!0,get:function(){return mo.getValue(this)},set:function(yo){mo.setValue(this,yo)}})},getAccessors:lo,binding(go,mo,yo=this.isVolatileBinding(go)){return new ho(go,mo,yo)},isVolatileBinding(go){return eo.test(go.toString())}})});function observable(eo,to){Observable$1.defineProperty(eo,to)}function volatile(eo,to,no){return Object.assign({},no,{get:function(){return Observable$1.trackVolatile(),no.get.apply(this)}})}const contextEvent=FAST.getById(3,()=>{let eo=null;return{get(){return eo},set(to){eo=to}}});class ExecutionContext{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return contextEvent.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(to){contextEvent.set(to)}}Observable$1.defineProperty(ExecutionContext.prototype,"index");Observable$1.defineProperty(ExecutionContext.prototype,"length");const defaultExecutionContext=Object.seal(new ExecutionContext);class HTMLDirective{constructor(){this.targetIndex=0}}class TargetedHTMLDirective extends HTMLDirective{constructor(){super(...arguments),this.createPlaceholder=DOM.createInterpolationPlaceholder}}class AttachedBehaviorHTMLDirective extends HTMLDirective{constructor(to,no,io){super(),this.name=to,this.behavior=no,this.options=io}createPlaceholder(to){return DOM.createCustomAttributePlaceholder(this.name,to)}createBehavior(to){return new this.behavior(to,this.options)}}function normalBind(eo,to){this.source=eo,this.context=to,this.bindingObserver===null&&(this.bindingObserver=Observable$1.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(eo,to))}function triggerBind(eo,to){this.source=eo,this.context=to,this.target.addEventListener(this.targetName,this)}function normalUnbind(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function contentUnbind(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const eo=this.target.$fastView;eo!==void 0&&eo.isComposed&&(eo.unbind(),eo.needsBindOnly=!0)}function triggerUnbind(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function updateAttributeTarget(eo){DOM.setAttribute(this.target,this.targetName,eo)}function updateBooleanAttributeTarget(eo){DOM.setBooleanAttribute(this.target,this.targetName,eo)}function updateContentTarget(eo){if(eo==null&&(eo=""),eo.create){this.target.textContent="";let to=this.target.$fastView;to===void 0?to=eo.create():this.target.$fastTemplate!==eo&&(to.isComposed&&(to.remove(),to.unbind()),to=eo.create()),to.isComposed?to.needsBindOnly&&(to.needsBindOnly=!1,to.bind(this.source,this.context)):(to.isComposed=!0,to.bind(this.source,this.context),to.insertBefore(this.target),this.target.$fastView=to,this.target.$fastTemplate=eo)}else{const to=this.target.$fastView;to!==void 0&&to.isComposed&&(to.isComposed=!1,to.remove(),to.needsBindOnly?to.needsBindOnly=!1:to.unbind()),this.target.textContent=eo}}function updatePropertyTarget(eo){this.target[this.targetName]=eo}function updateClassTarget(eo){const to=this.classVersions||Object.create(null),no=this.target;let io=this.version||0;if(eo!=null&&eo.length){const so=eo.split(/\s+/);for(let ao=0,lo=so.length;aoDOM.createHTML(no(io,so))}break;case"?":this.cleanedTargetName=to.substr(1),this.updateTarget=updateBooleanAttributeTarget;break;case"@":this.cleanedTargetName=to.substr(1),this.bind=triggerBind,this.unbind=triggerUnbind;break;default:this.cleanedTargetName=to,to==="class"&&(this.updateTarget=updateClassTarget);break}}targetAtContent(){this.updateTarget=updateContentTarget,this.unbind=contentUnbind}createBehavior(to){return new BindingBehavior(to,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class BindingBehavior{constructor(to,no,io,so,ao,lo,uo){this.source=null,this.context=null,this.bindingObserver=null,this.target=to,this.binding=no,this.isBindingVolatile=io,this.bind=so,this.unbind=ao,this.updateTarget=lo,this.targetName=uo}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(to){ExecutionContext.setEvent(to);const no=this.binding(this.source,this.context);ExecutionContext.setEvent(null),no!==!0&&to.preventDefault()}}let sharedContext=null;class CompilationContext{addFactory(to){to.targetIndex=this.targetIndex,this.behaviorFactories.push(to)}captureContentBinding(to){to.targetAtContent(),this.addFactory(to)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){sharedContext=this}static borrow(to){const no=sharedContext||new CompilationContext;return no.directives=to,no.reset(),sharedContext=null,no}}function createAggregateBinding(eo){if(eo.length===1)return eo[0];let to;const no=eo.length,io=eo.map(lo=>typeof lo=="string"?()=>lo:(to=lo.targetName||to,lo.binding)),so=(lo,uo)=>{let ho="";for(let go=0;gouo),go.targetName=lo.name):go=createAggregateBinding(ho),go!==null&&(to.removeAttributeNode(lo),so--,ao--,eo.addFactory(go))}}function compileContent(eo,to,no){const io=parseContent(eo,to.textContent);if(io!==null){let so=to;for(let ao=0,lo=io.length;ao0}const no=this.fragment.cloneNode(!0),io=this.viewBehaviorFactories,so=new Array(this.behaviorCount),ao=DOM.createTemplateWalker(no);let lo=0,uo=this.targetOffset,ho=ao.nextNode();for(let go=io.length;lo=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function html$2(eo,...to){const no=[];let io="";for(let so=0,ao=eo.length-1;soho}if(typeof uo=="function"&&(uo=new HTMLBindingDirective(uo)),uo instanceof TargetedHTMLDirective){const ho=lastAttributeNameRegex.exec(lo);ho!==null&&(uo.targetName=ho[2])}uo instanceof HTMLDirective?(io+=uo.createPlaceholder(no.length),no.push(uo)):io+=uo}return io+=eo[eo.length-1],new ViewTemplate(io,no)}class ElementStyles{constructor(){this.targets=new WeakSet}addStylesTo(to){this.targets.add(to)}removeStylesFrom(to){this.targets.delete(to)}isAttachedTo(to){return this.targets.has(to)}withBehaviors(...to){return this.behaviors=this.behaviors===null?to:this.behaviors.concat(to),this}}ElementStyles.create=(()=>{if(DOM.supportsAdoptedStyleSheets){const eo=new Map;return to=>new AdoptedStyleSheetsStyles(to,eo)}return eo=>new StyleElementStyles(eo)})();function reduceStyles(eo){return eo.map(to=>to instanceof ElementStyles?reduceStyles(to.styles):[to]).reduce((to,no)=>to.concat(no),[])}function reduceBehaviors(eo){return eo.map(to=>to instanceof ElementStyles?to.behaviors:null).reduce((to,no)=>no===null?to:(to===null&&(to=[]),to.concat(no)),null)}let addAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets=[...eo.adoptedStyleSheets,...to]},removeAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets=eo.adoptedStyleSheets.filter(no=>to.indexOf(no)===-1)};if(DOM.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),addAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets.push(...to)},removeAdoptedStyleSheets=(eo,to)=>{for(const no of to){const io=eo.adoptedStyleSheets.indexOf(no);io!==-1&&eo.adoptedStyleSheets.splice(io,1)}}}catch{}class AdoptedStyleSheetsStyles extends ElementStyles{constructor(to,no){super(),this.styles=to,this.styleSheetCache=no,this._styleSheets=void 0,this.behaviors=reduceBehaviors(to)}get styleSheets(){if(this._styleSheets===void 0){const to=this.styles,no=this.styleSheetCache;this._styleSheets=reduceStyles(to).map(io=>{if(io instanceof CSSStyleSheet)return io;let so=no.get(io);return so===void 0&&(so=new CSSStyleSheet,so.replaceSync(io),no.set(io,so)),so})}return this._styleSheets}addStylesTo(to){addAdoptedStyleSheets(to,this.styleSheets),super.addStylesTo(to)}removeStylesFrom(to){removeAdoptedStyleSheets(to,this.styleSheets),super.removeStylesFrom(to)}}let styleClassId=0;function getNextStyleClass(){return`fast-style-class-${++styleClassId}`}class StyleElementStyles extends ElementStyles{constructor(to){super(),this.styles=to,this.behaviors=null,this.behaviors=reduceBehaviors(to),this.styleSheets=reduceStyles(to),this.styleClass=getNextStyleClass()}addStylesTo(to){const no=this.styleSheets,io=this.styleClass;to=this.normalizeTarget(to);for(let so=0;so{io.add(to);const so=to[this.fieldName];switch(no){case"reflect":const ao=this.converter;DOM.setAttribute(to,this.attribute,ao!==void 0?ao.toView(so):so);break;case"boolean":DOM.setBooleanAttribute(to,this.attribute,so);break}io.delete(to)})}static collect(to,...no){const io=[];no.push(AttributeConfiguration.locate(to));for(let so=0,ao=no.length;so1&&(no.property=ao),AttributeConfiguration.locate(so.constructor).push(no)}if(arguments.length>1){no={},io(eo,to);return}return no=eo===void 0?{}:eo,io}const defaultShadowOptions={mode:"open"},defaultElementOptions={},fastRegistry=FAST.getById(4,()=>{const eo=new Map;return Object.freeze({register(to){return eo.has(to.type)?!1:(eo.set(to.type,to),!0)},getByType(to){return eo.get(to)}})});class FASTElementDefinition{constructor(to,no=to.definition){typeof no=="string"&&(no={name:no}),this.type=to,this.name=no.name,this.template=no.template;const io=AttributeDefinition.collect(to,no.attributes),so=new Array(io.length),ao={},lo={};for(let uo=0,ho=io.length;uo0){const ao=this.boundObservables=Object.create(null);for(let lo=0,uo=so.length;lo0||no>0;){if(to===0){so.push(EDIT_ADD),no--;continue}if(no===0){so.push(EDIT_DELETE),to--;continue}const ao=eo[to-1][no-1],lo=eo[to-1][no],uo=eo[to][no-1];let ho;lo=0){eo.splice(uo,1),uo--,lo-=ho.addedCount-ho.removed.length,so.addedCount+=ho.addedCount-go;const mo=so.removed.length+ho.removed.length-go;if(!so.addedCount&&!mo)ao=!0;else{let yo=ho.removed;if(so.indexho.index+ho.addedCount){const So=so.removed.slice(ho.index+ho.addedCount-so.index);$push.apply(yo,So)}so.removed=yo,ho.indexio?no=io-eo.addedCount:no<0&&(no=io+eo.removed.length+no-eo.addedCount),no<0&&(no=0),eo.index=no,eo}class ArrayObserver extends SubscriberSet{constructor(to){super(to),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(to,"$fastController",{value:this,enumerable:!1})}subscribe(to){this.flush(),super.subscribe(to)}addSplice(to){this.splices===void 0?this.splices=[to]:this.splices.push(to),this.needsQueue&&(this.needsQueue=!1,DOM.queueUpdate(this))}reset(to){this.oldCollection=to,this.needsQueue&&(this.needsQueue=!1,DOM.queueUpdate(this))}flush(){const to=this.splices,no=this.oldCollection;if(to===void 0&&no===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const io=no===void 0?projectArraySplices(this.source,to):calcSplices(this.source,0,this.source.length,no,0,no.length);this.notify(io)}}function enableArrayObservation(){if(arrayObservationEnabled)return;arrayObservationEnabled=!0,Observable$1.setArrayObserverFactory(ho=>new ArrayObserver(ho));const eo=Array.prototype;if(eo.$fastPatch)return;Reflect.defineProperty(eo,"$fastPatch",{value:1,enumerable:!1});const to=eo.pop,no=eo.push,io=eo.reverse,so=eo.shift,ao=eo.sort,lo=eo.splice,uo=eo.unshift;eo.pop=function(){const ho=this.length>0,go=to.apply(this,arguments),mo=this.$fastController;return mo!==void 0&&ho&&mo.addSplice(newSplice(this.length,[go],0)),go},eo.push=function(){const ho=no.apply(this,arguments),go=this.$fastController;return go!==void 0&&go.addSplice(adjustIndex(newSplice(this.length-arguments.length,[],arguments.length),this)),ho},eo.reverse=function(){let ho;const go=this.$fastController;go!==void 0&&(go.flush(),ho=this.slice());const mo=io.apply(this,arguments);return go!==void 0&&go.reset(ho),mo},eo.shift=function(){const ho=this.length>0,go=so.apply(this,arguments),mo=this.$fastController;return mo!==void 0&&ho&&mo.addSplice(newSplice(0,[go],0)),go},eo.sort=function(){let ho;const go=this.$fastController;go!==void 0&&(go.flush(),ho=this.slice());const mo=ao.apply(this,arguments);return go!==void 0&&go.reset(ho),mo},eo.splice=function(){const ho=lo.apply(this,arguments),go=this.$fastController;return go!==void 0&&go.addSplice(adjustIndex(newSplice(+arguments[0],ho,arguments.length>2?arguments.length-2:0),this)),ho},eo.unshift=function(){const ho=uo.apply(this,arguments),go=this.$fastController;return go!==void 0&&go.addSplice(adjustIndex(newSplice(0,[],arguments.length),this)),ho}}class RefBehavior{constructor(to,no){this.target=to,this.propertyName=no}bind(to){to[this.propertyName]=this.target}unbind(){}}function ref(eo){return new AttachedBehaviorHTMLDirective("fast-ref",RefBehavior,eo)}const isFunction$3=eo=>typeof eo=="function",noTemplate=()=>null;function normalizeBinding(eo){return eo===void 0?noTemplate:isFunction$3(eo)?eo:()=>eo}function when(eo,to,no){const io=isFunction$3(eo)?eo:()=>eo,so=normalizeBinding(to),ao=normalizeBinding(no);return(lo,uo)=>io(lo,uo)?so(lo,uo):ao(lo,uo)}function bindWithoutPositioning(eo,to,no,io){eo.bind(to[no],io)}function bindWithPositioning(eo,to,no,io){const so=Object.create(io);so.index=no,so.length=to.length,eo.bind(to[no],so)}class RepeatBehavior{constructor(to,no,io,so,ao,lo){this.location=to,this.itemsBinding=no,this.templateBinding=so,this.options=lo,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=bindWithoutPositioning,this.itemsBindingObserver=Observable$1.binding(no,this,io),this.templateBindingObserver=Observable$1.binding(so,this,ao),lo.positioning&&(this.bindView=bindWithPositioning)}bind(to,no){this.source=to,this.originalContext=no,this.childContext=Object.create(no),this.childContext.parent=to,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(to,this.originalContext),this.template=this.templateBindingObserver.observe(to,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(to,no){to===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):to===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(no)}observeItems(to=!1){if(!this.items){this.items=emptyArray;return}const no=this.itemsObserver,io=this.itemsObserver=Observable$1.getNotifier(this.items),so=no!==io;so&&no!==null&&no.unsubscribe(this),(so||to)&&io.subscribe(this)}updateViews(to){const no=this.childContext,io=this.views,so=this.bindView,ao=this.items,lo=this.template,uo=this.options.recycle,ho=[];let go=0,mo=0;for(let yo=0,So=to.length;yo0?(Co<=No&&Oo.length>0?(Fo=Oo[Co],Co++):(Fo=ho[go],go++),mo--):Fo=lo.create(),io.splice($o,0,Fo),so(Fo,ao,$o,no),Fo.insertBefore(Bo)}Oo[Co]&&ho.push(...Oo.slice(Co))}for(let yo=go,So=ho.length;yoio.name===no),this.source=to,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(emptyArray),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let to=this.getNodes();return this.options.filter!==void 0&&(to=to.filter(this.options.filter)),to}updateTarget(to){this.source[this.options.property]=to}}class SlottedBehavior extends NodeObservationBehavior{constructor(to,no){super(to,no)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function slotted(eo){return typeof eo=="string"&&(eo={property:eo}),new AttachedBehaviorHTMLDirective("fast-slotted",SlottedBehavior,eo)}class ChildrenBehavior extends NodeObservationBehavior{constructor(to,no){super(to,no),this.observer=null,no.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function children$1(eo){return typeof eo=="string"&&(eo={property:eo}),new AttachedBehaviorHTMLDirective("fast-children",ChildrenBehavior,eo)}class StartEnd{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const endSlotTemplate=(eo,to)=>html$2` {const no=eo?{...to,height:"100vh",width:"100%"}:{...to};return jsxRuntimeExports.jsx(Stack$3,{horizontalAlign:"center",verticalAlign:"center",verticalFill:!0,style:no,children:jsxRuntimeExports.jsx(VSCodeProgressRing,{})})};memoizeFunction((eo,to)=>mergeStyleSets({root:mergeStyles$1({display:"flex",flexDirection:"row",alignItems:"center",height:"30px",background:"var(--background)",width:"100%",...to&&{position:"fixed",top:0,zIndex:100}},eo),buttonGroup:{display:"flex",flexDirection:"row",height:"30px"},searchField:{marginRight:"100px",selectors:{"div.root":{height:"30px"}}}}));var toggleSelection=function(){var eo=document.getSelection();if(!eo.rangeCount)return function(){};for(var to=document.activeElement,no=[],io=0;io"u"){no&&console.warn("unable to use e.clipboardData"),no&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var yo=clipboardToIE11Formatting[to.format]||clipboardToIE11Formatting.default;window.clipboardData.setData(yo,eo)}else mo.clipboardData.clearData(),mo.clipboardData.setData(to.format,eo);to.onCopy&&(mo.preventDefault(),to.onCopy(mo.clipboardData))}),document.body.appendChild(uo),ao.selectNodeContents(uo),lo.addRange(ao);var go=document.execCommand("copy");if(!go)throw new Error("copy command was unsuccessful");ho=!0}catch(mo){no&&console.error("unable to copy using execCommand: ",mo),no&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(to.format||"text",eo),to.onCopy&&to.onCopy(window.clipboardData),ho=!0}catch(yo){no&&console.error("unable to copy using clipboardData: ",yo),no&&console.error("falling back to prompt"),io=format$2("message"in to?to.message:defaultMessage),window.prompt(io,eo)}}finally{lo&&(typeof lo.removeRange=="function"?lo.removeRange(ao):lo.removeAllRanges()),uo&&document.body.removeChild(uo),so()}return ho}var copyToClipboard$1=copy$4;const copy$5=getDefaultExportFromCjs(copyToClipboard$1);var main$1={exports:{}};(function(eo,to){(function(no,io){eo.exports=io(reactExports)})(commonjsGlobal$1,function(no){return function(io){var so={};function ao(lo){if(so[lo])return so[lo].exports;var uo=so[lo]={i:lo,l:!1,exports:{}};return io[lo].call(uo.exports,uo,uo.exports,ao),uo.l=!0,uo.exports}return ao.m=io,ao.c=so,ao.d=function(lo,uo,ho){ao.o(lo,uo)||Object.defineProperty(lo,uo,{enumerable:!0,get:ho})},ao.r=function(lo){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(lo,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(lo,"__esModule",{value:!0})},ao.t=function(lo,uo){if(1&uo&&(lo=ao(lo)),8&uo||4&uo&&typeof lo=="object"&&lo&&lo.__esModule)return lo;var ho=Object.create(null);if(ao.r(ho),Object.defineProperty(ho,"default",{enumerable:!0,value:lo}),2&uo&&typeof lo!="string")for(var go in lo)ao.d(ho,go,(function(mo){return lo[mo]}).bind(null,go));return ho},ao.n=function(lo){var uo=lo&&lo.__esModule?function(){return lo.default}:function(){return lo};return ao.d(uo,"a",uo),uo},ao.o=function(lo,uo){return Object.prototype.hasOwnProperty.call(lo,uo)},ao.p="",ao(ao.s=48)}([function(io,so){io.exports=no},function(io,so){var ao=io.exports={version:"2.6.12"};typeof __e=="number"&&(__e=ao)},function(io,so,ao){var lo=ao(26)("wks"),uo=ao(17),ho=ao(3).Symbol,go=typeof ho=="function";(io.exports=function(mo){return lo[mo]||(lo[mo]=go&&ho[mo]||(go?ho:uo)("Symbol."+mo))}).store=lo},function(io,so){var ao=io.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=ao)},function(io,so,ao){io.exports=!ao(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(io,so){var ao={}.hasOwnProperty;io.exports=function(lo,uo){return ao.call(lo,uo)}},function(io,so,ao){var lo=ao(7),uo=ao(16);io.exports=ao(4)?function(ho,go,mo){return lo.f(ho,go,uo(1,mo))}:function(ho,go,mo){return ho[go]=mo,ho}},function(io,so,ao){var lo=ao(10),uo=ao(35),ho=ao(23),go=Object.defineProperty;so.f=ao(4)?Object.defineProperty:function(mo,yo,So){if(lo(mo),yo=ho(yo,!0),lo(So),uo)try{return go(mo,yo,So)}catch{}if("get"in So||"set"in So)throw TypeError("Accessors not supported!");return"value"in So&&(mo[yo]=So.value),mo}},function(io,so){io.exports=function(ao){try{return!!ao()}catch{return!0}}},function(io,so,ao){var lo=ao(40),uo=ao(22);io.exports=function(ho){return lo(uo(ho))}},function(io,so,ao){var lo=ao(11);io.exports=function(uo){if(!lo(uo))throw TypeError(uo+" is not an object!");return uo}},function(io,so){io.exports=function(ao){return typeof ao=="object"?ao!==null:typeof ao=="function"}},function(io,so){io.exports={}},function(io,so,ao){var lo=ao(39),uo=ao(27);io.exports=Object.keys||function(ho){return lo(ho,uo)}},function(io,so){io.exports=!0},function(io,so,ao){var lo=ao(3),uo=ao(1),ho=ao(53),go=ao(6),mo=ao(5),yo=function(So,_o,ko){var Co,$o,Ro,Oo=So&yo.F,No=So&yo.G,Mo=So&yo.S,Bo=So&yo.P,Po=So&yo.B,Lo=So&yo.W,Go=No?uo:uo[_o]||(uo[_o]={}),Do=Go.prototype,Uo=No?lo:Mo?lo[_o]:(lo[_o]||{}).prototype;for(Co in No&&(ko=_o),ko)($o=!Oo&&Uo&&Uo[Co]!==void 0)&&mo(Go,Co)||(Ro=$o?Uo[Co]:ko[Co],Go[Co]=No&&typeof Uo[Co]!="function"?ko[Co]:Po&&$o?ho(Ro,lo):Lo&&Uo[Co]==Ro?function(Ho){var Yo=function(qo,Jo,ps){if(this instanceof Ho){switch(arguments.length){case 0:return new Ho;case 1:return new Ho(qo);case 2:return new Ho(qo,Jo)}return new Ho(qo,Jo,ps)}return Ho.apply(this,arguments)};return Yo.prototype=Ho.prototype,Yo}(Ro):Bo&&typeof Ro=="function"?ho(Function.call,Ro):Ro,Bo&&((Go.virtual||(Go.virtual={}))[Co]=Ro,So&yo.R&&Do&&!Do[Co]&&go(Do,Co,Ro)))};yo.F=1,yo.G=2,yo.S=4,yo.P=8,yo.B=16,yo.W=32,yo.U=64,yo.R=128,io.exports=yo},function(io,so){io.exports=function(ao,lo){return{enumerable:!(1&ao),configurable:!(2&ao),writable:!(4&ao),value:lo}}},function(io,so){var ao=0,lo=Math.random();io.exports=function(uo){return"Symbol(".concat(uo===void 0?"":uo,")_",(++ao+lo).toString(36))}},function(io,so,ao){var lo=ao(22);io.exports=function(uo){return Object(lo(uo))}},function(io,so){so.f={}.propertyIsEnumerable},function(io,so,ao){var lo=ao(52)(!0);ao(34)(String,"String",function(uo){this._t=String(uo),this._i=0},function(){var uo,ho=this._t,go=this._i;return go>=ho.length?{value:void 0,done:!0}:(uo=lo(ho,go),this._i+=uo.length,{value:uo,done:!1})})},function(io,so){var ao=Math.ceil,lo=Math.floor;io.exports=function(uo){return isNaN(uo=+uo)?0:(uo>0?lo:ao)(uo)}},function(io,so){io.exports=function(ao){if(ao==null)throw TypeError("Can't call method on "+ao);return ao}},function(io,so,ao){var lo=ao(11);io.exports=function(uo,ho){if(!lo(uo))return uo;var go,mo;if(ho&&typeof(go=uo.toString)=="function"&&!lo(mo=go.call(uo))||typeof(go=uo.valueOf)=="function"&&!lo(mo=go.call(uo))||!ho&&typeof(go=uo.toString)=="function"&&!lo(mo=go.call(uo)))return mo;throw TypeError("Can't convert object to primitive value")}},function(io,so){var ao={}.toString;io.exports=function(lo){return ao.call(lo).slice(8,-1)}},function(io,so,ao){var lo=ao(26)("keys"),uo=ao(17);io.exports=function(ho){return lo[ho]||(lo[ho]=uo(ho))}},function(io,so,ao){var lo=ao(1),uo=ao(3),ho=uo["__core-js_shared__"]||(uo["__core-js_shared__"]={});(io.exports=function(go,mo){return ho[go]||(ho[go]=mo!==void 0?mo:{})})("versions",[]).push({version:lo.version,mode:ao(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(io,so){io.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(io,so,ao){var lo=ao(7).f,uo=ao(5),ho=ao(2)("toStringTag");io.exports=function(go,mo,yo){go&&!uo(go=yo?go:go.prototype,ho)&&lo(go,ho,{configurable:!0,value:mo})}},function(io,so,ao){ao(62);for(var lo=ao(3),uo=ao(6),ho=ao(12),go=ao(2)("toStringTag"),mo="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),yo=0;yodocument.F=Object<\/script>"),So.close(),yo=So.F;ko--;)delete yo.prototype[ho[ko]];return yo()};io.exports=Object.create||function(So,_o){var ko;return So!==null?(mo.prototype=lo(So),ko=new mo,mo.prototype=null,ko[go]=So):ko=yo(),_o===void 0?ko:uo(ko,_o)}},function(io,so,ao){var lo=ao(5),uo=ao(9),ho=ao(57)(!1),go=ao(25)("IE_PROTO");io.exports=function(mo,yo){var So,_o=uo(mo),ko=0,Co=[];for(So in _o)So!=go&&lo(_o,So)&&Co.push(So);for(;yo.length>ko;)lo(_o,So=yo[ko++])&&(~ho(Co,So)||Co.push(So));return Co}},function(io,so,ao){var lo=ao(24);io.exports=Object("z").propertyIsEnumerable(0)?Object:function(uo){return lo(uo)=="String"?uo.split(""):Object(uo)}},function(io,so,ao){var lo=ao(39),uo=ao(27).concat("length","prototype");so.f=Object.getOwnPropertyNames||function(ho){return lo(ho,uo)}},function(io,so,ao){var lo=ao(24),uo=ao(2)("toStringTag"),ho=lo(function(){return arguments}())=="Arguments";io.exports=function(go){var mo,yo,So;return go===void 0?"Undefined":go===null?"Null":typeof(yo=function(_o,ko){try{return _o[ko]}catch{}}(mo=Object(go),uo))=="string"?yo:ho?lo(mo):(So=lo(mo))=="Object"&&typeof mo.callee=="function"?"Arguments":So}},function(io,so){var ao;ao=function(){return this}();try{ao=ao||new Function("return this")()}catch{typeof window=="object"&&(ao=window)}io.exports=ao},function(io,so){var ao=/-?\d+(\.\d+)?%?/g;io.exports=function(lo){return lo.match(ao)}},function(io,so,ao){Object.defineProperty(so,"__esModule",{value:!0}),so.getBase16Theme=so.createStyling=so.invertTheme=void 0;var lo=$o(ao(49)),uo=$o(ao(76)),ho=$o(ao(81)),go=$o(ao(89)),mo=$o(ao(93)),yo=function(Do){if(Do&&Do.__esModule)return Do;var Uo={};if(Do!=null)for(var Ho in Do)Object.prototype.hasOwnProperty.call(Do,Ho)&&(Uo[Ho]=Do[Ho]);return Uo.default=Do,Uo}(ao(94)),So=$o(ao(132)),_o=$o(ao(133)),ko=$o(ao(138)),Co=ao(139);function $o(Do){return Do&&Do.__esModule?Do:{default:Do}}var Ro=yo.default,Oo=(0,go.default)(Ro),No=(0,ko.default)(_o.default,Co.rgb2yuv,function(Do){var Uo,Ho=(0,ho.default)(Do,3),Yo=Ho[0],qo=Ho[1],Jo=Ho[2];return[(Uo=Yo,Uo<.25?1:Uo<.5?.9-Uo:1.1-Uo),qo,Jo]},Co.yuv2rgb,So.default),Mo=function(Do){return function(Uo){return{className:[Uo.className,Do.className].filter(Boolean).join(" "),style:(0,uo.default)({},Uo.style||{},Do.style||{})}}},Bo=function(Do,Uo){var Ho=(0,go.default)(Uo);for(var Yo in Do)Ho.indexOf(Yo)===-1&&Ho.push(Yo);return Ho.reduce(function(qo,Jo){return qo[Jo]=function(ps,Qo){if(ps===void 0)return Qo;if(Qo===void 0)return ps;var hs=ps===void 0?"undefined":(0,lo.default)(ps),gs=Qo===void 0?"undefined":(0,lo.default)(Qo);switch(hs){case"string":switch(gs){case"string":return[Qo,ps].filter(Boolean).join(" ");case"object":return Mo({className:ps,style:Qo});case"function":return function(ys){for(var vs=arguments.length,ks=Array(vs>1?vs-1:0),Os=1;Os1?vs-1:0),Os=1;Os1?vs-1:0),Os=1;Os1?vs-1:0),Os=1;Os1?vs-1:0),Os=1;Os2?Ho-2:0),qo=2;qo3?Uo-3:0),Yo=3;Yo1&&arguments[1]!==void 0?arguments[1]:{},Jo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ps=qo.defaultBase16,Qo=ps===void 0?Ro:ps,hs=qo.base16Themes,gs=hs===void 0?null:hs,ys=Go(Jo,gs);ys&&(Jo=(0,uo.default)({},ys,Jo));var vs=Oo.reduce(function(Xs,Ws){return Xs[Ws]=Jo[Ws]||Qo[Ws],Xs},{}),ks=(0,go.default)(Jo).reduce(function(Xs,Ws){return Oo.indexOf(Ws)===-1&&(Xs[Ws]=Jo[Ws]),Xs},{}),Os=Do(vs),Ts=Bo(ks,Os);return(0,mo.default)(Po,2).apply(void 0,[Ts].concat(Ho))},3),so.getBase16Theme=function(Do,Uo){if(Do&&Do.extend&&(Do=Do.extend),typeof Do=="string"){var Ho=Do.split(":"),Yo=(0,ho.default)(Ho,2),qo=Yo[0],Jo=Yo[1];Do=(Uo||{})[qo]||yo[qo],Jo==="inverted"&&(Do=Lo(Do))}return Do&&Do.hasOwnProperty("base00")?Do:void 0})},function(io,so,ao){var lo,uo=typeof Reflect=="object"?Reflect:null,ho=uo&&typeof uo.apply=="function"?uo.apply:function(Mo,Bo,Po){return Function.prototype.apply.call(Mo,Bo,Po)};lo=uo&&typeof uo.ownKeys=="function"?uo.ownKeys:Object.getOwnPropertySymbols?function(Mo){return Object.getOwnPropertyNames(Mo).concat(Object.getOwnPropertySymbols(Mo))}:function(Mo){return Object.getOwnPropertyNames(Mo)};var go=Number.isNaN||function(Mo){return Mo!=Mo};function mo(){mo.init.call(this)}io.exports=mo,io.exports.once=function(Mo,Bo){return new Promise(function(Po,Lo){function Go(){Do!==void 0&&Mo.removeListener("error",Do),Po([].slice.call(arguments))}var Do;Bo!=="error"&&(Do=function(Uo){Mo.removeListener(Bo,Go),Lo(Uo)},Mo.once("error",Do)),Mo.once(Bo,Go)})},mo.EventEmitter=mo,mo.prototype._events=void 0,mo.prototype._eventsCount=0,mo.prototype._maxListeners=void 0;var yo=10;function So(Mo){if(typeof Mo!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Mo)}function _o(Mo){return Mo._maxListeners===void 0?mo.defaultMaxListeners:Mo._maxListeners}function ko(Mo,Bo,Po,Lo){var Go,Do,Uo,Ho;if(So(Po),(Do=Mo._events)===void 0?(Do=Mo._events=Object.create(null),Mo._eventsCount=0):(Do.newListener!==void 0&&(Mo.emit("newListener",Bo,Po.listener?Po.listener:Po),Do=Mo._events),Uo=Do[Bo]),Uo===void 0)Uo=Do[Bo]=Po,++Mo._eventsCount;else if(typeof Uo=="function"?Uo=Do[Bo]=Lo?[Po,Uo]:[Uo,Po]:Lo?Uo.unshift(Po):Uo.push(Po),(Go=_o(Mo))>0&&Uo.length>Go&&!Uo.warned){Uo.warned=!0;var Yo=new Error("Possible EventEmitter memory leak detected. "+Uo.length+" "+String(Bo)+" listeners added. Use emitter.setMaxListeners() to increase limit");Yo.name="MaxListenersExceededWarning",Yo.emitter=Mo,Yo.type=Bo,Yo.count=Uo.length,Ho=Yo,console&&console.warn&&console.warn(Ho)}return Mo}function Co(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function $o(Mo,Bo,Po){var Lo={fired:!1,wrapFn:void 0,target:Mo,type:Bo,listener:Po},Go=Co.bind(Lo);return Go.listener=Po,Lo.wrapFn=Go,Go}function Ro(Mo,Bo,Po){var Lo=Mo._events;if(Lo===void 0)return[];var Go=Lo[Bo];return Go===void 0?[]:typeof Go=="function"?Po?[Go.listener||Go]:[Go]:Po?function(Do){for(var Uo=new Array(Do.length),Ho=0;Ho0&&(Do=Bo[0]),Do instanceof Error)throw Do;var Uo=new Error("Unhandled error."+(Do?" ("+Do.message+")":""));throw Uo.context=Do,Uo}var Ho=Go[Mo];if(Ho===void 0)return!1;if(typeof Ho=="function")ho(Ho,this,Bo);else{var Yo=Ho.length,qo=No(Ho,Yo);for(Po=0;Po=0;Do--)if(Po[Do]===Bo||Po[Do].listener===Bo){Uo=Po[Do].listener,Go=Do;break}if(Go<0)return this;Go===0?Po.shift():function(Ho,Yo){for(;Yo+1=0;Lo--)this.removeListener(Mo,Bo[Lo]);return this},mo.prototype.listeners=function(Mo){return Ro(this,Mo,!0)},mo.prototype.rawListeners=function(Mo){return Ro(this,Mo,!1)},mo.listenerCount=function(Mo,Bo){return typeof Mo.listenerCount=="function"?Mo.listenerCount(Bo):Oo.call(Mo,Bo)},mo.prototype.listenerCount=Oo,mo.prototype.eventNames=function(){return this._eventsCount>0?lo(this._events):[]}},function(io,so,ao){io.exports.Dispatcher=ao(140)},function(io,so,ao){io.exports=ao(142)},function(io,so,ao){so.__esModule=!0;var lo=go(ao(50)),uo=go(ao(65)),ho=typeof uo.default=="function"&&typeof lo.default=="symbol"?function(mo){return typeof mo}:function(mo){return mo&&typeof uo.default=="function"&&mo.constructor===uo.default&&mo!==uo.default.prototype?"symbol":typeof mo};function go(mo){return mo&&mo.__esModule?mo:{default:mo}}so.default=typeof uo.default=="function"&&ho(lo.default)==="symbol"?function(mo){return mo===void 0?"undefined":ho(mo)}:function(mo){return mo&&typeof uo.default=="function"&&mo.constructor===uo.default&&mo!==uo.default.prototype?"symbol":mo===void 0?"undefined":ho(mo)}},function(io,so,ao){io.exports={default:ao(51),__esModule:!0}},function(io,so,ao){ao(20),ao(29),io.exports=ao(30).f("iterator")},function(io,so,ao){var lo=ao(21),uo=ao(22);io.exports=function(ho){return function(go,mo){var yo,So,_o=String(uo(go)),ko=lo(mo),Co=_o.length;return ko<0||ko>=Co?ho?"":void 0:(yo=_o.charCodeAt(ko))<55296||yo>56319||ko+1===Co||(So=_o.charCodeAt(ko+1))<56320||So>57343?ho?_o.charAt(ko):yo:ho?_o.slice(ko,ko+2):So-56320+(yo-55296<<10)+65536}}},function(io,so,ao){var lo=ao(54);io.exports=function(uo,ho,go){if(lo(uo),ho===void 0)return uo;switch(go){case 1:return function(mo){return uo.call(ho,mo)};case 2:return function(mo,yo){return uo.call(ho,mo,yo)};case 3:return function(mo,yo,So){return uo.call(ho,mo,yo,So)}}return function(){return uo.apply(ho,arguments)}}},function(io,so){io.exports=function(ao){if(typeof ao!="function")throw TypeError(ao+" is not a function!");return ao}},function(io,so,ao){var lo=ao(38),uo=ao(16),ho=ao(28),go={};ao(6)(go,ao(2)("iterator"),function(){return this}),io.exports=function(mo,yo,So){mo.prototype=lo(go,{next:uo(1,So)}),ho(mo,yo+" Iterator")}},function(io,so,ao){var lo=ao(7),uo=ao(10),ho=ao(13);io.exports=ao(4)?Object.defineProperties:function(go,mo){uo(go);for(var yo,So=ho(mo),_o=So.length,ko=0;_o>ko;)lo.f(go,yo=So[ko++],mo[yo]);return go}},function(io,so,ao){var lo=ao(9),uo=ao(58),ho=ao(59);io.exports=function(go){return function(mo,yo,So){var _o,ko=lo(mo),Co=uo(ko.length),$o=ho(So,Co);if(go&&yo!=yo){for(;Co>$o;)if((_o=ko[$o++])!=_o)return!0}else for(;Co>$o;$o++)if((go||$o in ko)&&ko[$o]===yo)return go||$o||0;return!go&&-1}}},function(io,so,ao){var lo=ao(21),uo=Math.min;io.exports=function(ho){return ho>0?uo(lo(ho),9007199254740991):0}},function(io,so,ao){var lo=ao(21),uo=Math.max,ho=Math.min;io.exports=function(go,mo){return(go=lo(go))<0?uo(go+mo,0):ho(go,mo)}},function(io,so,ao){var lo=ao(3).document;io.exports=lo&&lo.documentElement},function(io,so,ao){var lo=ao(5),uo=ao(18),ho=ao(25)("IE_PROTO"),go=Object.prototype;io.exports=Object.getPrototypeOf||function(mo){return mo=uo(mo),lo(mo,ho)?mo[ho]:typeof mo.constructor=="function"&&mo instanceof mo.constructor?mo.constructor.prototype:mo instanceof Object?go:null}},function(io,so,ao){var lo=ao(63),uo=ao(64),ho=ao(12),go=ao(9);io.exports=ao(34)(Array,"Array",function(mo,yo){this._t=go(mo),this._i=0,this._k=yo},function(){var mo=this._t,yo=this._k,So=this._i++;return!mo||So>=mo.length?(this._t=void 0,uo(1)):uo(0,yo=="keys"?So:yo=="values"?mo[So]:[So,mo[So]])},"values"),ho.Arguments=ho.Array,lo("keys"),lo("values"),lo("entries")},function(io,so){io.exports=function(){}},function(io,so){io.exports=function(ao,lo){return{value:lo,done:!!ao}}},function(io,so,ao){io.exports={default:ao(66),__esModule:!0}},function(io,so,ao){ao(67),ao(73),ao(74),ao(75),io.exports=ao(1).Symbol},function(io,so,ao){var lo=ao(3),uo=ao(5),ho=ao(4),go=ao(15),mo=ao(37),yo=ao(68).KEY,So=ao(8),_o=ao(26),ko=ao(28),Co=ao(17),$o=ao(2),Ro=ao(30),Oo=ao(31),No=ao(69),Mo=ao(70),Bo=ao(10),Po=ao(11),Lo=ao(18),Go=ao(9),Do=ao(23),Uo=ao(16),Ho=ao(38),Yo=ao(71),qo=ao(72),Jo=ao(32),ps=ao(7),Qo=ao(13),hs=qo.f,gs=ps.f,ys=Yo.f,vs=lo.Symbol,ks=lo.JSON,Os=ks&&ks.stringify,Ts=$o("_hidden"),Xs=$o("toPrimitive"),Ws={}.propertyIsEnumerable,Ps=_o("symbol-registry"),qs=_o("symbols"),ga=_o("op-symbols"),Fs=Object.prototype,Js=typeof vs=="function"&&!!Jo.f,Vs=lo.QObject,El=!Vs||!Vs.prototype||!Vs.prototype.findChild,yl=ho&&So(function(){return Ho(gs({},"a",{get:function(){return gs(this,"a",{value:7}).a}})).a!=7})?function(Bs,Ds,Zs){var Cl=hs(Fs,Ds);Cl&&delete Fs[Ds],gs(Bs,Ds,Zs),Cl&&Bs!==Fs&&gs(Fs,Ds,Cl)}:gs,Gl=function(Bs){var Ds=qs[Bs]=Ho(vs.prototype);return Ds._k=Bs,Ds},Qs=Js&&typeof vs.iterator=="symbol"?function(Bs){return typeof Bs=="symbol"}:function(Bs){return Bs instanceof vs},du=function(Bs,Ds,Zs){return Bs===Fs&&du(ga,Ds,Zs),Bo(Bs),Ds=Do(Ds,!0),Bo(Zs),uo(qs,Ds)?(Zs.enumerable?(uo(Bs,Ts)&&Bs[Ts][Ds]&&(Bs[Ts][Ds]=!1),Zs=Ho(Zs,{enumerable:Uo(0,!1)})):(uo(Bs,Ts)||gs(Bs,Ts,Uo(1,{})),Bs[Ts][Ds]=!0),yl(Bs,Ds,Zs)):gs(Bs,Ds,Zs)},Ol=function(Bs,Ds){Bo(Bs);for(var Zs,Cl=No(Ds=Go(Ds)),ba=0,fu=Cl.length;fu>ba;)du(Bs,Zs=Cl[ba++],Ds[Zs]);return Bs},Fu=function(Bs){var Ds=Ws.call(this,Bs=Do(Bs,!0));return!(this===Fs&&uo(qs,Bs)&&!uo(ga,Bs))&&(!(Ds||!uo(this,Bs)||!uo(qs,Bs)||uo(this,Ts)&&this[Ts][Bs])||Ds)},ju=function(Bs,Ds){if(Bs=Go(Bs),Ds=Do(Ds,!0),Bs!==Fs||!uo(qs,Ds)||uo(ga,Ds)){var Zs=hs(Bs,Ds);return!Zs||!uo(qs,Ds)||uo(Bs,Ts)&&Bs[Ts][Ds]||(Zs.enumerable=!0),Zs}},F1=function(Bs){for(var Ds,Zs=ys(Go(Bs)),Cl=[],ba=0;Zs.length>ba;)uo(qs,Ds=Zs[ba++])||Ds==Ts||Ds==yo||Cl.push(Ds);return Cl},y1=function(Bs){for(var Ds,Zs=Bs===Fs,Cl=ys(Zs?ga:Go(Bs)),ba=[],fu=0;Cl.length>fu;)!uo(qs,Ds=Cl[fu++])||Zs&&!uo(Fs,Ds)||ba.push(qs[Ds]);return ba};Js||(mo((vs=function(){if(this instanceof vs)throw TypeError("Symbol is not a constructor!");var Bs=Co(arguments.length>0?arguments[0]:void 0),Ds=function(Zs){this===Fs&&Ds.call(ga,Zs),uo(this,Ts)&&uo(this[Ts],Bs)&&(this[Ts][Bs]=!1),yl(this,Bs,Uo(1,Zs))};return ho&&El&&yl(Fs,Bs,{configurable:!0,set:Ds}),Gl(Bs)}).prototype,"toString",function(){return this._k}),qo.f=ju,ps.f=du,ao(41).f=Yo.f=F1,ao(19).f=Fu,Jo.f=y1,ho&&!ao(14)&&mo(Fs,"propertyIsEnumerable",Fu,!0),Ro.f=function(Bs){return Gl($o(Bs))}),go(go.G+go.W+go.F*!Js,{Symbol:vs});for(var r1="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),$u=0;r1.length>$u;)$o(r1[$u++]);for(var Kl=Qo($o.store),Is=0;Kl.length>Is;)Oo(Kl[Is++]);go(go.S+go.F*!Js,"Symbol",{for:function(Bs){return uo(Ps,Bs+="")?Ps[Bs]:Ps[Bs]=vs(Bs)},keyFor:function(Bs){if(!Qs(Bs))throw TypeError(Bs+" is not a symbol!");for(var Ds in Ps)if(Ps[Ds]===Bs)return Ds},useSetter:function(){El=!0},useSimple:function(){El=!1}}),go(go.S+go.F*!Js,"Object",{create:function(Bs,Ds){return Ds===void 0?Ho(Bs):Ol(Ho(Bs),Ds)},defineProperty:du,defineProperties:Ol,getOwnPropertyDescriptor:ju,getOwnPropertyNames:F1,getOwnPropertySymbols:y1});var Ks=So(function(){Jo.f(1)});go(go.S+go.F*Ks,"Object",{getOwnPropertySymbols:function(Bs){return Jo.f(Lo(Bs))}}),ks&&go(go.S+go.F*(!Js||So(function(){var Bs=vs();return Os([Bs])!="[null]"||Os({a:Bs})!="{}"||Os(Object(Bs))!="{}"})),"JSON",{stringify:function(Bs){for(var Ds,Zs,Cl=[Bs],ba=1;arguments.length>ba;)Cl.push(arguments[ba++]);if(Zs=Ds=Cl[1],(Po(Ds)||Bs!==void 0)&&!Qs(Bs))return Mo(Ds)||(Ds=function(fu,Lu){if(typeof Zs=="function"&&(Lu=Zs.call(this,fu,Lu)),!Qs(Lu))return Lu}),Cl[1]=Ds,Os.apply(ks,Cl)}}),vs.prototype[Xs]||ao(6)(vs.prototype,Xs,vs.prototype.valueOf),ko(vs,"Symbol"),ko(Math,"Math",!0),ko(lo.JSON,"JSON",!0)},function(io,so,ao){var lo=ao(17)("meta"),uo=ao(11),ho=ao(5),go=ao(7).f,mo=0,yo=Object.isExtensible||function(){return!0},So=!ao(8)(function(){return yo(Object.preventExtensions({}))}),_o=function(Co){go(Co,lo,{value:{i:"O"+ ++mo,w:{}}})},ko=io.exports={KEY:lo,NEED:!1,fastKey:function(Co,$o){if(!uo(Co))return typeof Co=="symbol"?Co:(typeof Co=="string"?"S":"P")+Co;if(!ho(Co,lo)){if(!yo(Co))return"F";if(!$o)return"E";_o(Co)}return Co[lo].i},getWeak:function(Co,$o){if(!ho(Co,lo)){if(!yo(Co))return!0;if(!$o)return!1;_o(Co)}return Co[lo].w},onFreeze:function(Co){return So&&ko.NEED&&yo(Co)&&!ho(Co,lo)&&_o(Co),Co}}},function(io,so,ao){var lo=ao(13),uo=ao(32),ho=ao(19);io.exports=function(go){var mo=lo(go),yo=uo.f;if(yo)for(var So,_o=yo(go),ko=ho.f,Co=0;_o.length>Co;)ko.call(go,So=_o[Co++])&&mo.push(So);return mo}},function(io,so,ao){var lo=ao(24);io.exports=Array.isArray||function(uo){return lo(uo)=="Array"}},function(io,so,ao){var lo=ao(9),uo=ao(41).f,ho={}.toString,go=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];io.exports.f=function(mo){return go&&ho.call(mo)=="[object Window]"?function(yo){try{return uo(yo)}catch{return go.slice()}}(mo):uo(lo(mo))}},function(io,so,ao){var lo=ao(19),uo=ao(16),ho=ao(9),go=ao(23),mo=ao(5),yo=ao(35),So=Object.getOwnPropertyDescriptor;so.f=ao(4)?So:function(_o,ko){if(_o=ho(_o),ko=go(ko,!0),yo)try{return So(_o,ko)}catch{}if(mo(_o,ko))return uo(!lo.f.call(_o,ko),_o[ko])}},function(io,so){},function(io,so,ao){ao(31)("asyncIterator")},function(io,so,ao){ao(31)("observable")},function(io,so,ao){so.__esModule=!0;var lo,uo=ao(77),ho=(lo=uo)&&lo.__esModule?lo:{default:lo};so.default=ho.default||function(go){for(var mo=1;moRo;)for(var Mo,Bo=yo(arguments[Ro++]),Po=Oo?uo(Bo).concat(Oo(Bo)):uo(Bo),Lo=Po.length,Go=0;Lo>Go;)Mo=Po[Go++],lo&&!No.call(Bo,Mo)||(Co[Mo]=Bo[Mo]);return Co}:So},function(io,so,ao){so.__esModule=!0;var lo=ho(ao(82)),uo=ho(ao(85));function ho(go){return go&&go.__esModule?go:{default:go}}so.default=function(go,mo){if(Array.isArray(go))return go;if((0,lo.default)(Object(go)))return function(yo,So){var _o=[],ko=!0,Co=!1,$o=void 0;try{for(var Ro,Oo=(0,uo.default)(yo);!(ko=(Ro=Oo.next()).done)&&(_o.push(Ro.value),!So||_o.length!==So);ko=!0);}catch(No){Co=!0,$o=No}finally{try{!ko&&Oo.return&&Oo.return()}finally{if(Co)throw $o}}return _o}(go,mo);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(io,so,ao){io.exports={default:ao(83),__esModule:!0}},function(io,so,ao){ao(29),ao(20),io.exports=ao(84)},function(io,so,ao){var lo=ao(42),uo=ao(2)("iterator"),ho=ao(12);io.exports=ao(1).isIterable=function(go){var mo=Object(go);return mo[uo]!==void 0||"@@iterator"in mo||ho.hasOwnProperty(lo(mo))}},function(io,so,ao){io.exports={default:ao(86),__esModule:!0}},function(io,so,ao){ao(29),ao(20),io.exports=ao(87)},function(io,so,ao){var lo=ao(10),uo=ao(88);io.exports=ao(1).getIterator=function(ho){var go=uo(ho);if(typeof go!="function")throw TypeError(ho+" is not iterable!");return lo(go.call(ho))}},function(io,so,ao){var lo=ao(42),uo=ao(2)("iterator"),ho=ao(12);io.exports=ao(1).getIteratorMethod=function(go){if(go!=null)return go[uo]||go["@@iterator"]||ho[lo(go)]}},function(io,so,ao){io.exports={default:ao(90),__esModule:!0}},function(io,so,ao){ao(91),io.exports=ao(1).Object.keys},function(io,so,ao){var lo=ao(18),uo=ao(13);ao(92)("keys",function(){return function(ho){return uo(lo(ho))}})},function(io,so,ao){var lo=ao(15),uo=ao(1),ho=ao(8);io.exports=function(go,mo){var yo=(uo.Object||{})[go]||Object[go],So={};So[go]=mo(yo),lo(lo.S+lo.F*ho(function(){yo(1)}),"Object",So)}},function(io,so,ao){(function(lo){var uo=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],ho=/^\s+|\s+$/g,go=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mo=/\{\n\/\* \[wrapped with (.+)\] \*/,yo=/,? & /,So=/^[-+]0x[0-9a-f]+$/i,_o=/^0b[01]+$/i,ko=/^\[object .+?Constructor\]$/,Co=/^0o[0-7]+$/i,$o=/^(?:0|[1-9]\d*)$/,Ro=parseInt,Oo=typeof lo=="object"&&lo&&lo.Object===Object&&lo,No=typeof self=="object"&&self&&self.Object===Object&&self,Mo=Oo||No||Function("return this")();function Bo(Is,Ks,Bs){switch(Bs.length){case 0:return Is.call(Ks);case 1:return Is.call(Ks,Bs[0]);case 2:return Is.call(Ks,Bs[0],Bs[1]);case 3:return Is.call(Ks,Bs[0],Bs[1],Bs[2])}return Is.apply(Ks,Bs)}function Po(Is,Ks){return!!(Is&&Is.length)&&function(Bs,Ds,Zs){if(Ds!=Ds)return function(fu,Lu,e1,Gu){for(var w1=fu.length,Zu=e1+(Gu?1:-1);Gu?Zu--:++Zu-1}function Lo(Is){return Is!=Is}function Go(Is,Ks){for(var Bs=Is.length,Ds=0;Bs--;)Is[Bs]===Ks&&Ds++;return Ds}function Do(Is,Ks){for(var Bs=-1,Ds=Is.length,Zs=0,Cl=[];++Bs2?Ho:void 0);function Ws(Is){return r1(Is)?ks(Is):{}}function Ps(Is){return!(!r1(Is)||function(Ks){return!!Qo&&Qo in Ks}(Is))&&(function(Ks){var Bs=r1(Ks)?ys.call(Ks):"";return Bs=="[object Function]"||Bs=="[object GeneratorFunction]"}(Is)||function(Ks){var Bs=!1;if(Ks!=null&&typeof Ks.toString!="function")try{Bs=!!(Ks+"")}catch{}return Bs}(Is)?vs:ko).test(function(Ks){if(Ks!=null){try{return hs.call(Ks)}catch{}try{return Ks+""}catch{}}return""}(Is))}function qs(Is,Ks,Bs,Ds){for(var Zs=-1,Cl=Is.length,ba=Bs.length,fu=-1,Lu=Ks.length,e1=Os(Cl-ba,0),Gu=Array(Lu+e1),w1=!Ds;++fu1&&h0.reverse(),Gu&&Lu1?"& ":"")+Ks[Ds],Ks=Ks.join(Bs>2?", ":" "),Is.replace(go,`{ +`;class TextField extends TextField$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const vsCodeTextField=TextField.compose({baseName:"text-field",template:textFieldTemplate,styles:textFieldStyles,shadowOptions:{delegatesFocus:!0}}),{wrap:wrap$1}=provideReactWrapper(React,provideVSCodeDesignSystem());wrap$1(vsCodeBadge(),{name:"vscode-badge"});wrap$1(vsCodeButton(),{name:"vscode-button"});wrap$1(vsCodeCheckbox(),{name:"vscode-checkbox",events:{onChange:"change"}});wrap$1(vsCodeDataGrid(),{name:"vscode-data-grid"});wrap$1(vsCodeDataGridCell(),{name:"vscode-data-grid-cell"});wrap$1(vsCodeDataGridRow(),{name:"vscode-data-grid-row"});wrap$1(vsCodeDivider(),{name:"vscode-divider"});wrap$1(vsCodeDropdown(),{name:"vscode-dropdown",events:{onChange:"change"}});wrap$1(vsCodeLink(),{name:"vscode-link"});wrap$1(vsCodeOption(),{name:"vscode-option"});wrap$1(vsCodePanels(),{name:"vscode-panels",events:{onChange:"change"}});wrap$1(vsCodePanelTab(),{name:"vscode-panel-tab"});wrap$1(vsCodePanelView(),{name:"vscode-panel-view"});const VSCodeProgressRing=wrap$1(vsCodeProgressRing(),{name:"vscode-progress-ring"});wrap$1(vsCodeRadio(),{name:"vscode-radio",events:{onChange:"change"}});wrap$1(vsCodeRadioGroup(),{name:"vscode-radio-group",events:{onChange:"change"}});wrap$1(vsCodeTag(),{name:"vscode-tag"});wrap$1(vsCodeTextArea(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}});wrap$1(vsCodeTextField(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}});const Loading=({isFullPage:eo=!1,style:to={}})=>{const no=eo?{...to,height:"100vh",width:"100%"}:{...to};return jsxRuntimeExports.jsx(Stack$3,{horizontalAlign:"center",verticalAlign:"center",verticalFill:!0,style:no,children:jsxRuntimeExports.jsx(VSCodeProgressRing,{})})};memoizeFunction((eo,to)=>mergeStyleSets({root:mergeStyles$1({display:"flex",flexDirection:"row",alignItems:"center",height:"30px",background:"var(--background)",width:"100%",...to&&{position:"fixed",top:0,zIndex:100}},eo),buttonGroup:{display:"flex",flexDirection:"row",height:"30px"},searchField:{marginRight:"100px",selectors:{"div.root":{height:"30px"}}}}));var toggleSelection=function(){var eo=document.getSelection();if(!eo.rangeCount)return function(){};for(var to=document.activeElement,no=[],io=0;io"u"){no&&console.warn("unable to use e.clipboardData"),no&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var yo=clipboardToIE11Formatting[to.format]||clipboardToIE11Formatting.default;window.clipboardData.setData(yo,eo)}else mo.clipboardData.clearData(),mo.clipboardData.setData(to.format,eo);to.onCopy&&(mo.preventDefault(),to.onCopy(mo.clipboardData))}),document.body.appendChild(uo),ao.selectNodeContents(uo),lo.addRange(ao);var go=document.execCommand("copy");if(!go)throw new Error("copy command was unsuccessful");ho=!0}catch(mo){no&&console.error("unable to copy using execCommand: ",mo),no&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(to.format||"text",eo),to.onCopy&&to.onCopy(window.clipboardData),ho=!0}catch(yo){no&&console.error("unable to copy using clipboardData: ",yo),no&&console.error("falling back to prompt"),io=format$2("message"in to?to.message:defaultMessage),window.prompt(io,eo)}}finally{lo&&(typeof lo.removeRange=="function"?lo.removeRange(ao):lo.removeAllRanges()),uo&&document.body.removeChild(uo),so()}return ho}var copyToClipboard$1=copy$4;const copy$5=getDefaultExportFromCjs(copyToClipboard$1);var main$1={exports:{}};(function(eo,to){(function(no,io){eo.exports=io(reactExports)})(commonjsGlobal$1,function(no){return function(io){var so={};function ao(lo){if(so[lo])return so[lo].exports;var uo=so[lo]={i:lo,l:!1,exports:{}};return io[lo].call(uo.exports,uo,uo.exports,ao),uo.l=!0,uo.exports}return ao.m=io,ao.c=so,ao.d=function(lo,uo,ho){ao.o(lo,uo)||Object.defineProperty(lo,uo,{enumerable:!0,get:ho})},ao.r=function(lo){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(lo,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(lo,"__esModule",{value:!0})},ao.t=function(lo,uo){if(1&uo&&(lo=ao(lo)),8&uo||4&uo&&typeof lo=="object"&&lo&&lo.__esModule)return lo;var ho=Object.create(null);if(ao.r(ho),Object.defineProperty(ho,"default",{enumerable:!0,value:lo}),2&uo&&typeof lo!="string")for(var go in lo)ao.d(ho,go,(function(mo){return lo[mo]}).bind(null,go));return ho},ao.n=function(lo){var uo=lo&&lo.__esModule?function(){return lo.default}:function(){return lo};return ao.d(uo,"a",uo),uo},ao.o=function(lo,uo){return Object.prototype.hasOwnProperty.call(lo,uo)},ao.p="",ao(ao.s=48)}([function(io,so){io.exports=no},function(io,so){var ao=io.exports={version:"2.6.12"};typeof __e=="number"&&(__e=ao)},function(io,so,ao){var lo=ao(26)("wks"),uo=ao(17),ho=ao(3).Symbol,go=typeof ho=="function";(io.exports=function(mo){return lo[mo]||(lo[mo]=go&&ho[mo]||(go?ho:uo)("Symbol."+mo))}).store=lo},function(io,so){var ao=io.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=ao)},function(io,so,ao){io.exports=!ao(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(io,so){var ao={}.hasOwnProperty;io.exports=function(lo,uo){return ao.call(lo,uo)}},function(io,so,ao){var lo=ao(7),uo=ao(16);io.exports=ao(4)?function(ho,go,mo){return lo.f(ho,go,uo(1,mo))}:function(ho,go,mo){return ho[go]=mo,ho}},function(io,so,ao){var lo=ao(10),uo=ao(35),ho=ao(23),go=Object.defineProperty;so.f=ao(4)?Object.defineProperty:function(mo,yo,So){if(lo(mo),yo=ho(yo,!0),lo(So),uo)try{return go(mo,yo,So)}catch{}if("get"in So||"set"in So)throw TypeError("Accessors not supported!");return"value"in So&&(mo[yo]=So.value),mo}},function(io,so){io.exports=function(ao){try{return!!ao()}catch{return!0}}},function(io,so,ao){var lo=ao(40),uo=ao(22);io.exports=function(ho){return lo(uo(ho))}},function(io,so,ao){var lo=ao(11);io.exports=function(uo){if(!lo(uo))throw TypeError(uo+" is not an object!");return uo}},function(io,so){io.exports=function(ao){return typeof ao=="object"?ao!==null:typeof ao=="function"}},function(io,so){io.exports={}},function(io,so,ao){var lo=ao(39),uo=ao(27);io.exports=Object.keys||function(ho){return lo(ho,uo)}},function(io,so){io.exports=!0},function(io,so,ao){var lo=ao(3),uo=ao(1),ho=ao(53),go=ao(6),mo=ao(5),yo=function(So,_o,ko){var Co,$o,Ro,Oo=So&yo.F,No=So&yo.G,Mo=So&yo.S,Bo=So&yo.P,Fo=So&yo.B,Lo=So&yo.W,Go=No?uo:uo[_o]||(uo[_o]={}),Do=Go.prototype,Uo=No?lo:Mo?lo[_o]:(lo[_o]||{}).prototype;for(Co in No&&(ko=_o),ko)($o=!Oo&&Uo&&Uo[Co]!==void 0)&&mo(Go,Co)||(Ro=$o?Uo[Co]:ko[Co],Go[Co]=No&&typeof Uo[Co]!="function"?ko[Co]:Fo&&$o?ho(Ro,lo):Lo&&Uo[Co]==Ro?function(Ho){var Yo=function(qo,Jo,ps){if(this instanceof Ho){switch(arguments.length){case 0:return new Ho;case 1:return new Ho(qo);case 2:return new Ho(qo,Jo)}return new Ho(qo,Jo,ps)}return Ho.apply(this,arguments)};return Yo.prototype=Ho.prototype,Yo}(Ro):Bo&&typeof Ro=="function"?ho(Function.call,Ro):Ro,Bo&&((Go.virtual||(Go.virtual={}))[Co]=Ro,So&yo.R&&Do&&!Do[Co]&&go(Do,Co,Ro)))};yo.F=1,yo.G=2,yo.S=4,yo.P=8,yo.B=16,yo.W=32,yo.U=64,yo.R=128,io.exports=yo},function(io,so){io.exports=function(ao,lo){return{enumerable:!(1&ao),configurable:!(2&ao),writable:!(4&ao),value:lo}}},function(io,so){var ao=0,lo=Math.random();io.exports=function(uo){return"Symbol(".concat(uo===void 0?"":uo,")_",(++ao+lo).toString(36))}},function(io,so,ao){var lo=ao(22);io.exports=function(uo){return Object(lo(uo))}},function(io,so){so.f={}.propertyIsEnumerable},function(io,so,ao){var lo=ao(52)(!0);ao(34)(String,"String",function(uo){this._t=String(uo),this._i=0},function(){var uo,ho=this._t,go=this._i;return go>=ho.length?{value:void 0,done:!0}:(uo=lo(ho,go),this._i+=uo.length,{value:uo,done:!1})})},function(io,so){var ao=Math.ceil,lo=Math.floor;io.exports=function(uo){return isNaN(uo=+uo)?0:(uo>0?lo:ao)(uo)}},function(io,so){io.exports=function(ao){if(ao==null)throw TypeError("Can't call method on "+ao);return ao}},function(io,so,ao){var lo=ao(11);io.exports=function(uo,ho){if(!lo(uo))return uo;var go,mo;if(ho&&typeof(go=uo.toString)=="function"&&!lo(mo=go.call(uo))||typeof(go=uo.valueOf)=="function"&&!lo(mo=go.call(uo))||!ho&&typeof(go=uo.toString)=="function"&&!lo(mo=go.call(uo)))return mo;throw TypeError("Can't convert object to primitive value")}},function(io,so){var ao={}.toString;io.exports=function(lo){return ao.call(lo).slice(8,-1)}},function(io,so,ao){var lo=ao(26)("keys"),uo=ao(17);io.exports=function(ho){return lo[ho]||(lo[ho]=uo(ho))}},function(io,so,ao){var lo=ao(1),uo=ao(3),ho=uo["__core-js_shared__"]||(uo["__core-js_shared__"]={});(io.exports=function(go,mo){return ho[go]||(ho[go]=mo!==void 0?mo:{})})("versions",[]).push({version:lo.version,mode:ao(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(io,so){io.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(io,so,ao){var lo=ao(7).f,uo=ao(5),ho=ao(2)("toStringTag");io.exports=function(go,mo,yo){go&&!uo(go=yo?go:go.prototype,ho)&&lo(go,ho,{configurable:!0,value:mo})}},function(io,so,ao){ao(62);for(var lo=ao(3),uo=ao(6),ho=ao(12),go=ao(2)("toStringTag"),mo="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),yo=0;yodocument.F=Object<\/script>"),So.close(),yo=So.F;ko--;)delete yo.prototype[ho[ko]];return yo()};io.exports=Object.create||function(So,_o){var ko;return So!==null?(mo.prototype=lo(So),ko=new mo,mo.prototype=null,ko[go]=So):ko=yo(),_o===void 0?ko:uo(ko,_o)}},function(io,so,ao){var lo=ao(5),uo=ao(9),ho=ao(57)(!1),go=ao(25)("IE_PROTO");io.exports=function(mo,yo){var So,_o=uo(mo),ko=0,Co=[];for(So in _o)So!=go&&lo(_o,So)&&Co.push(So);for(;yo.length>ko;)lo(_o,So=yo[ko++])&&(~ho(Co,So)||Co.push(So));return Co}},function(io,so,ao){var lo=ao(24);io.exports=Object("z").propertyIsEnumerable(0)?Object:function(uo){return lo(uo)=="String"?uo.split(""):Object(uo)}},function(io,so,ao){var lo=ao(39),uo=ao(27).concat("length","prototype");so.f=Object.getOwnPropertyNames||function(ho){return lo(ho,uo)}},function(io,so,ao){var lo=ao(24),uo=ao(2)("toStringTag"),ho=lo(function(){return arguments}())=="Arguments";io.exports=function(go){var mo,yo,So;return go===void 0?"Undefined":go===null?"Null":typeof(yo=function(_o,ko){try{return _o[ko]}catch{}}(mo=Object(go),uo))=="string"?yo:ho?lo(mo):(So=lo(mo))=="Object"&&typeof mo.callee=="function"?"Arguments":So}},function(io,so){var ao;ao=function(){return this}();try{ao=ao||new Function("return this")()}catch{typeof window=="object"&&(ao=window)}io.exports=ao},function(io,so){var ao=/-?\d+(\.\d+)?%?/g;io.exports=function(lo){return lo.match(ao)}},function(io,so,ao){Object.defineProperty(so,"__esModule",{value:!0}),so.getBase16Theme=so.createStyling=so.invertTheme=void 0;var lo=$o(ao(49)),uo=$o(ao(76)),ho=$o(ao(81)),go=$o(ao(89)),mo=$o(ao(93)),yo=function(Do){if(Do&&Do.__esModule)return Do;var Uo={};if(Do!=null)for(var Ho in Do)Object.prototype.hasOwnProperty.call(Do,Ho)&&(Uo[Ho]=Do[Ho]);return Uo.default=Do,Uo}(ao(94)),So=$o(ao(132)),_o=$o(ao(133)),ko=$o(ao(138)),Co=ao(139);function $o(Do){return Do&&Do.__esModule?Do:{default:Do}}var Ro=yo.default,Oo=(0,go.default)(Ro),No=(0,ko.default)(_o.default,Co.rgb2yuv,function(Do){var Uo,Ho=(0,ho.default)(Do,3),Yo=Ho[0],qo=Ho[1],Jo=Ho[2];return[(Uo=Yo,Uo<.25?1:Uo<.5?.9-Uo:1.1-Uo),qo,Jo]},Co.yuv2rgb,So.default),Mo=function(Do){return function(Uo){return{className:[Uo.className,Do.className].filter(Boolean).join(" "),style:(0,uo.default)({},Uo.style||{},Do.style||{})}}},Bo=function(Do,Uo){var Ho=(0,go.default)(Uo);for(var Yo in Do)Ho.indexOf(Yo)===-1&&Ho.push(Yo);return Ho.reduce(function(qo,Jo){return qo[Jo]=function(ps,Qo){if(ps===void 0)return Qo;if(Qo===void 0)return ps;var hs=ps===void 0?"undefined":(0,lo.default)(ps),gs=Qo===void 0?"undefined":(0,lo.default)(Qo);switch(hs){case"string":switch(gs){case"string":return[Qo,ps].filter(Boolean).join(" ");case"object":return Mo({className:ps,style:Qo});case"function":return function(ys){for(var vs=arguments.length,ks=Array(vs>1?vs-1:0),Os=1;Os1?vs-1:0),Os=1;Os1?vs-1:0),Os=1;Os1?vs-1:0),Os=1;Os1?vs-1:0),Os=1;Os2?Ho-2:0),qo=2;qo3?Uo-3:0),Yo=3;Yo1&&arguments[1]!==void 0?arguments[1]:{},Jo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ps=qo.defaultBase16,Qo=ps===void 0?Ro:ps,hs=qo.base16Themes,gs=hs===void 0?null:hs,ys=Go(Jo,gs);ys&&(Jo=(0,uo.default)({},ys,Jo));var vs=Oo.reduce(function(Xs,Ws){return Xs[Ws]=Jo[Ws]||Qo[Ws],Xs},{}),ks=(0,go.default)(Jo).reduce(function(Xs,Ws){return Oo.indexOf(Ws)===-1&&(Xs[Ws]=Jo[Ws]),Xs},{}),Os=Do(vs),Ts=Bo(ks,Os);return(0,mo.default)(Fo,2).apply(void 0,[Ts].concat(Ho))},3),so.getBase16Theme=function(Do,Uo){if(Do&&Do.extend&&(Do=Do.extend),typeof Do=="string"){var Ho=Do.split(":"),Yo=(0,ho.default)(Ho,2),qo=Yo[0],Jo=Yo[1];Do=(Uo||{})[qo]||yo[qo],Jo==="inverted"&&(Do=Lo(Do))}return Do&&Do.hasOwnProperty("base00")?Do:void 0})},function(io,so,ao){var lo,uo=typeof Reflect=="object"?Reflect:null,ho=uo&&typeof uo.apply=="function"?uo.apply:function(Mo,Bo,Fo){return Function.prototype.apply.call(Mo,Bo,Fo)};lo=uo&&typeof uo.ownKeys=="function"?uo.ownKeys:Object.getOwnPropertySymbols?function(Mo){return Object.getOwnPropertyNames(Mo).concat(Object.getOwnPropertySymbols(Mo))}:function(Mo){return Object.getOwnPropertyNames(Mo)};var go=Number.isNaN||function(Mo){return Mo!=Mo};function mo(){mo.init.call(this)}io.exports=mo,io.exports.once=function(Mo,Bo){return new Promise(function(Fo,Lo){function Go(){Do!==void 0&&Mo.removeListener("error",Do),Fo([].slice.call(arguments))}var Do;Bo!=="error"&&(Do=function(Uo){Mo.removeListener(Bo,Go),Lo(Uo)},Mo.once("error",Do)),Mo.once(Bo,Go)})},mo.EventEmitter=mo,mo.prototype._events=void 0,mo.prototype._eventsCount=0,mo.prototype._maxListeners=void 0;var yo=10;function So(Mo){if(typeof Mo!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Mo)}function _o(Mo){return Mo._maxListeners===void 0?mo.defaultMaxListeners:Mo._maxListeners}function ko(Mo,Bo,Fo,Lo){var Go,Do,Uo,Ho;if(So(Fo),(Do=Mo._events)===void 0?(Do=Mo._events=Object.create(null),Mo._eventsCount=0):(Do.newListener!==void 0&&(Mo.emit("newListener",Bo,Fo.listener?Fo.listener:Fo),Do=Mo._events),Uo=Do[Bo]),Uo===void 0)Uo=Do[Bo]=Fo,++Mo._eventsCount;else if(typeof Uo=="function"?Uo=Do[Bo]=Lo?[Fo,Uo]:[Uo,Fo]:Lo?Uo.unshift(Fo):Uo.push(Fo),(Go=_o(Mo))>0&&Uo.length>Go&&!Uo.warned){Uo.warned=!0;var Yo=new Error("Possible EventEmitter memory leak detected. "+Uo.length+" "+String(Bo)+" listeners added. Use emitter.setMaxListeners() to increase limit");Yo.name="MaxListenersExceededWarning",Yo.emitter=Mo,Yo.type=Bo,Yo.count=Uo.length,Ho=Yo,console&&console.warn&&console.warn(Ho)}return Mo}function Co(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function $o(Mo,Bo,Fo){var Lo={fired:!1,wrapFn:void 0,target:Mo,type:Bo,listener:Fo},Go=Co.bind(Lo);return Go.listener=Fo,Lo.wrapFn=Go,Go}function Ro(Mo,Bo,Fo){var Lo=Mo._events;if(Lo===void 0)return[];var Go=Lo[Bo];return Go===void 0?[]:typeof Go=="function"?Fo?[Go.listener||Go]:[Go]:Fo?function(Do){for(var Uo=new Array(Do.length),Ho=0;Ho0&&(Do=Bo[0]),Do instanceof Error)throw Do;var Uo=new Error("Unhandled error."+(Do?" ("+Do.message+")":""));throw Uo.context=Do,Uo}var Ho=Go[Mo];if(Ho===void 0)return!1;if(typeof Ho=="function")ho(Ho,this,Bo);else{var Yo=Ho.length,qo=No(Ho,Yo);for(Fo=0;Fo=0;Do--)if(Fo[Do]===Bo||Fo[Do].listener===Bo){Uo=Fo[Do].listener,Go=Do;break}if(Go<0)return this;Go===0?Fo.shift():function(Ho,Yo){for(;Yo+1=0;Lo--)this.removeListener(Mo,Bo[Lo]);return this},mo.prototype.listeners=function(Mo){return Ro(this,Mo,!0)},mo.prototype.rawListeners=function(Mo){return Ro(this,Mo,!1)},mo.listenerCount=function(Mo,Bo){return typeof Mo.listenerCount=="function"?Mo.listenerCount(Bo):Oo.call(Mo,Bo)},mo.prototype.listenerCount=Oo,mo.prototype.eventNames=function(){return this._eventsCount>0?lo(this._events):[]}},function(io,so,ao){io.exports.Dispatcher=ao(140)},function(io,so,ao){io.exports=ao(142)},function(io,so,ao){so.__esModule=!0;var lo=go(ao(50)),uo=go(ao(65)),ho=typeof uo.default=="function"&&typeof lo.default=="symbol"?function(mo){return typeof mo}:function(mo){return mo&&typeof uo.default=="function"&&mo.constructor===uo.default&&mo!==uo.default.prototype?"symbol":typeof mo};function go(mo){return mo&&mo.__esModule?mo:{default:mo}}so.default=typeof uo.default=="function"&&ho(lo.default)==="symbol"?function(mo){return mo===void 0?"undefined":ho(mo)}:function(mo){return mo&&typeof uo.default=="function"&&mo.constructor===uo.default&&mo!==uo.default.prototype?"symbol":mo===void 0?"undefined":ho(mo)}},function(io,so,ao){io.exports={default:ao(51),__esModule:!0}},function(io,so,ao){ao(20),ao(29),io.exports=ao(30).f("iterator")},function(io,so,ao){var lo=ao(21),uo=ao(22);io.exports=function(ho){return function(go,mo){var yo,So,_o=String(uo(go)),ko=lo(mo),Co=_o.length;return ko<0||ko>=Co?ho?"":void 0:(yo=_o.charCodeAt(ko))<55296||yo>56319||ko+1===Co||(So=_o.charCodeAt(ko+1))<56320||So>57343?ho?_o.charAt(ko):yo:ho?_o.slice(ko,ko+2):So-56320+(yo-55296<<10)+65536}}},function(io,so,ao){var lo=ao(54);io.exports=function(uo,ho,go){if(lo(uo),ho===void 0)return uo;switch(go){case 1:return function(mo){return uo.call(ho,mo)};case 2:return function(mo,yo){return uo.call(ho,mo,yo)};case 3:return function(mo,yo,So){return uo.call(ho,mo,yo,So)}}return function(){return uo.apply(ho,arguments)}}},function(io,so){io.exports=function(ao){if(typeof ao!="function")throw TypeError(ao+" is not a function!");return ao}},function(io,so,ao){var lo=ao(38),uo=ao(16),ho=ao(28),go={};ao(6)(go,ao(2)("iterator"),function(){return this}),io.exports=function(mo,yo,So){mo.prototype=lo(go,{next:uo(1,So)}),ho(mo,yo+" Iterator")}},function(io,so,ao){var lo=ao(7),uo=ao(10),ho=ao(13);io.exports=ao(4)?Object.defineProperties:function(go,mo){uo(go);for(var yo,So=ho(mo),_o=So.length,ko=0;_o>ko;)lo.f(go,yo=So[ko++],mo[yo]);return go}},function(io,so,ao){var lo=ao(9),uo=ao(58),ho=ao(59);io.exports=function(go){return function(mo,yo,So){var _o,ko=lo(mo),Co=uo(ko.length),$o=ho(So,Co);if(go&&yo!=yo){for(;Co>$o;)if((_o=ko[$o++])!=_o)return!0}else for(;Co>$o;$o++)if((go||$o in ko)&&ko[$o]===yo)return go||$o||0;return!go&&-1}}},function(io,so,ao){var lo=ao(21),uo=Math.min;io.exports=function(ho){return ho>0?uo(lo(ho),9007199254740991):0}},function(io,so,ao){var lo=ao(21),uo=Math.max,ho=Math.min;io.exports=function(go,mo){return(go=lo(go))<0?uo(go+mo,0):ho(go,mo)}},function(io,so,ao){var lo=ao(3).document;io.exports=lo&&lo.documentElement},function(io,so,ao){var lo=ao(5),uo=ao(18),ho=ao(25)("IE_PROTO"),go=Object.prototype;io.exports=Object.getPrototypeOf||function(mo){return mo=uo(mo),lo(mo,ho)?mo[ho]:typeof mo.constructor=="function"&&mo instanceof mo.constructor?mo.constructor.prototype:mo instanceof Object?go:null}},function(io,so,ao){var lo=ao(63),uo=ao(64),ho=ao(12),go=ao(9);io.exports=ao(34)(Array,"Array",function(mo,yo){this._t=go(mo),this._i=0,this._k=yo},function(){var mo=this._t,yo=this._k,So=this._i++;return!mo||So>=mo.length?(this._t=void 0,uo(1)):uo(0,yo=="keys"?So:yo=="values"?mo[So]:[So,mo[So]])},"values"),ho.Arguments=ho.Array,lo("keys"),lo("values"),lo("entries")},function(io,so){io.exports=function(){}},function(io,so){io.exports=function(ao,lo){return{value:lo,done:!!ao}}},function(io,so,ao){io.exports={default:ao(66),__esModule:!0}},function(io,so,ao){ao(67),ao(73),ao(74),ao(75),io.exports=ao(1).Symbol},function(io,so,ao){var lo=ao(3),uo=ao(5),ho=ao(4),go=ao(15),mo=ao(37),yo=ao(68).KEY,So=ao(8),_o=ao(26),ko=ao(28),Co=ao(17),$o=ao(2),Ro=ao(30),Oo=ao(31),No=ao(69),Mo=ao(70),Bo=ao(10),Fo=ao(11),Lo=ao(18),Go=ao(9),Do=ao(23),Uo=ao(16),Ho=ao(38),Yo=ao(71),qo=ao(72),Jo=ao(32),ps=ao(7),Qo=ao(13),hs=qo.f,gs=ps.f,ys=Yo.f,vs=lo.Symbol,ks=lo.JSON,Os=ks&&ks.stringify,Ts=$o("_hidden"),Xs=$o("toPrimitive"),Ws={}.propertyIsEnumerable,Ps=_o("symbol-registry"),qs=_o("symbols"),ga=_o("op-symbols"),Fs=Object.prototype,Js=typeof vs=="function"&&!!Jo.f,Vs=lo.QObject,El=!Vs||!Vs.prototype||!Vs.prototype.findChild,yl=ho&&So(function(){return Ho(gs({},"a",{get:function(){return gs(this,"a",{value:7}).a}})).a!=7})?function(Bs,Ds,Zs){var Cl=hs(Fs,Ds);Cl&&delete Fs[Ds],gs(Bs,Ds,Zs),Cl&&Bs!==Fs&&gs(Fs,Ds,Cl)}:gs,Gl=function(Bs){var Ds=qs[Bs]=Ho(vs.prototype);return Ds._k=Bs,Ds},Qs=Js&&typeof vs.iterator=="symbol"?function(Bs){return typeof Bs=="symbol"}:function(Bs){return Bs instanceof vs},du=function(Bs,Ds,Zs){return Bs===Fs&&du(ga,Ds,Zs),Bo(Bs),Ds=Do(Ds,!0),Bo(Zs),uo(qs,Ds)?(Zs.enumerable?(uo(Bs,Ts)&&Bs[Ts][Ds]&&(Bs[Ts][Ds]=!1),Zs=Ho(Zs,{enumerable:Uo(0,!1)})):(uo(Bs,Ts)||gs(Bs,Ts,Uo(1,{})),Bs[Ts][Ds]=!0),yl(Bs,Ds,Zs)):gs(Bs,Ds,Zs)},Ol=function(Bs,Ds){Bo(Bs);for(var Zs,Cl=No(Ds=Go(Ds)),ba=0,fu=Cl.length;fu>ba;)du(Bs,Zs=Cl[ba++],Ds[Zs]);return Bs},Fu=function(Bs){var Ds=Ws.call(this,Bs=Do(Bs,!0));return!(this===Fs&&uo(qs,Bs)&&!uo(ga,Bs))&&(!(Ds||!uo(this,Bs)||!uo(qs,Bs)||uo(this,Ts)&&this[Ts][Bs])||Ds)},ju=function(Bs,Ds){if(Bs=Go(Bs),Ds=Do(Ds,!0),Bs!==Fs||!uo(qs,Ds)||uo(ga,Ds)){var Zs=hs(Bs,Ds);return!Zs||!uo(qs,Ds)||uo(Bs,Ts)&&Bs[Ts][Ds]||(Zs.enumerable=!0),Zs}},F1=function(Bs){for(var Ds,Zs=ys(Go(Bs)),Cl=[],ba=0;Zs.length>ba;)uo(qs,Ds=Zs[ba++])||Ds==Ts||Ds==yo||Cl.push(Ds);return Cl},y1=function(Bs){for(var Ds,Zs=Bs===Fs,Cl=ys(Zs?ga:Go(Bs)),ba=[],fu=0;Cl.length>fu;)!uo(qs,Ds=Cl[fu++])||Zs&&!uo(Fs,Ds)||ba.push(qs[Ds]);return ba};Js||(mo((vs=function(){if(this instanceof vs)throw TypeError("Symbol is not a constructor!");var Bs=Co(arguments.length>0?arguments[0]:void 0),Ds=function(Zs){this===Fs&&Ds.call(ga,Zs),uo(this,Ts)&&uo(this[Ts],Bs)&&(this[Ts][Bs]=!1),yl(this,Bs,Uo(1,Zs))};return ho&&El&&yl(Fs,Bs,{configurable:!0,set:Ds}),Gl(Bs)}).prototype,"toString",function(){return this._k}),qo.f=ju,ps.f=du,ao(41).f=Yo.f=F1,ao(19).f=Fu,Jo.f=y1,ho&&!ao(14)&&mo(Fs,"propertyIsEnumerable",Fu,!0),Ro.f=function(Bs){return Gl($o(Bs))}),go(go.G+go.W+go.F*!Js,{Symbol:vs});for(var r1="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),$u=0;r1.length>$u;)$o(r1[$u++]);for(var Kl=Qo($o.store),Is=0;Kl.length>Is;)Oo(Kl[Is++]);go(go.S+go.F*!Js,"Symbol",{for:function(Bs){return uo(Ps,Bs+="")?Ps[Bs]:Ps[Bs]=vs(Bs)},keyFor:function(Bs){if(!Qs(Bs))throw TypeError(Bs+" is not a symbol!");for(var Ds in Ps)if(Ps[Ds]===Bs)return Ds},useSetter:function(){El=!0},useSimple:function(){El=!1}}),go(go.S+go.F*!Js,"Object",{create:function(Bs,Ds){return Ds===void 0?Ho(Bs):Ol(Ho(Bs),Ds)},defineProperty:du,defineProperties:Ol,getOwnPropertyDescriptor:ju,getOwnPropertyNames:F1,getOwnPropertySymbols:y1});var Ks=So(function(){Jo.f(1)});go(go.S+go.F*Ks,"Object",{getOwnPropertySymbols:function(Bs){return Jo.f(Lo(Bs))}}),ks&&go(go.S+go.F*(!Js||So(function(){var Bs=vs();return Os([Bs])!="[null]"||Os({a:Bs})!="{}"||Os(Object(Bs))!="{}"})),"JSON",{stringify:function(Bs){for(var Ds,Zs,Cl=[Bs],ba=1;arguments.length>ba;)Cl.push(arguments[ba++]);if(Zs=Ds=Cl[1],(Fo(Ds)||Bs!==void 0)&&!Qs(Bs))return Mo(Ds)||(Ds=function(fu,Lu){if(typeof Zs=="function"&&(Lu=Zs.call(this,fu,Lu)),!Qs(Lu))return Lu}),Cl[1]=Ds,Os.apply(ks,Cl)}}),vs.prototype[Xs]||ao(6)(vs.prototype,Xs,vs.prototype.valueOf),ko(vs,"Symbol"),ko(Math,"Math",!0),ko(lo.JSON,"JSON",!0)},function(io,so,ao){var lo=ao(17)("meta"),uo=ao(11),ho=ao(5),go=ao(7).f,mo=0,yo=Object.isExtensible||function(){return!0},So=!ao(8)(function(){return yo(Object.preventExtensions({}))}),_o=function(Co){go(Co,lo,{value:{i:"O"+ ++mo,w:{}}})},ko=io.exports={KEY:lo,NEED:!1,fastKey:function(Co,$o){if(!uo(Co))return typeof Co=="symbol"?Co:(typeof Co=="string"?"S":"P")+Co;if(!ho(Co,lo)){if(!yo(Co))return"F";if(!$o)return"E";_o(Co)}return Co[lo].i},getWeak:function(Co,$o){if(!ho(Co,lo)){if(!yo(Co))return!0;if(!$o)return!1;_o(Co)}return Co[lo].w},onFreeze:function(Co){return So&&ko.NEED&&yo(Co)&&!ho(Co,lo)&&_o(Co),Co}}},function(io,so,ao){var lo=ao(13),uo=ao(32),ho=ao(19);io.exports=function(go){var mo=lo(go),yo=uo.f;if(yo)for(var So,_o=yo(go),ko=ho.f,Co=0;_o.length>Co;)ko.call(go,So=_o[Co++])&&mo.push(So);return mo}},function(io,so,ao){var lo=ao(24);io.exports=Array.isArray||function(uo){return lo(uo)=="Array"}},function(io,so,ao){var lo=ao(9),uo=ao(41).f,ho={}.toString,go=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];io.exports.f=function(mo){return go&&ho.call(mo)=="[object Window]"?function(yo){try{return uo(yo)}catch{return go.slice()}}(mo):uo(lo(mo))}},function(io,so,ao){var lo=ao(19),uo=ao(16),ho=ao(9),go=ao(23),mo=ao(5),yo=ao(35),So=Object.getOwnPropertyDescriptor;so.f=ao(4)?So:function(_o,ko){if(_o=ho(_o),ko=go(ko,!0),yo)try{return So(_o,ko)}catch{}if(mo(_o,ko))return uo(!lo.f.call(_o,ko),_o[ko])}},function(io,so){},function(io,so,ao){ao(31)("asyncIterator")},function(io,so,ao){ao(31)("observable")},function(io,so,ao){so.__esModule=!0;var lo,uo=ao(77),ho=(lo=uo)&&lo.__esModule?lo:{default:lo};so.default=ho.default||function(go){for(var mo=1;moRo;)for(var Mo,Bo=yo(arguments[Ro++]),Fo=Oo?uo(Bo).concat(Oo(Bo)):uo(Bo),Lo=Fo.length,Go=0;Lo>Go;)Mo=Fo[Go++],lo&&!No.call(Bo,Mo)||(Co[Mo]=Bo[Mo]);return Co}:So},function(io,so,ao){so.__esModule=!0;var lo=ho(ao(82)),uo=ho(ao(85));function ho(go){return go&&go.__esModule?go:{default:go}}so.default=function(go,mo){if(Array.isArray(go))return go;if((0,lo.default)(Object(go)))return function(yo,So){var _o=[],ko=!0,Co=!1,$o=void 0;try{for(var Ro,Oo=(0,uo.default)(yo);!(ko=(Ro=Oo.next()).done)&&(_o.push(Ro.value),!So||_o.length!==So);ko=!0);}catch(No){Co=!0,$o=No}finally{try{!ko&&Oo.return&&Oo.return()}finally{if(Co)throw $o}}return _o}(go,mo);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(io,so,ao){io.exports={default:ao(83),__esModule:!0}},function(io,so,ao){ao(29),ao(20),io.exports=ao(84)},function(io,so,ao){var lo=ao(42),uo=ao(2)("iterator"),ho=ao(12);io.exports=ao(1).isIterable=function(go){var mo=Object(go);return mo[uo]!==void 0||"@@iterator"in mo||ho.hasOwnProperty(lo(mo))}},function(io,so,ao){io.exports={default:ao(86),__esModule:!0}},function(io,so,ao){ao(29),ao(20),io.exports=ao(87)},function(io,so,ao){var lo=ao(10),uo=ao(88);io.exports=ao(1).getIterator=function(ho){var go=uo(ho);if(typeof go!="function")throw TypeError(ho+" is not iterable!");return lo(go.call(ho))}},function(io,so,ao){var lo=ao(42),uo=ao(2)("iterator"),ho=ao(12);io.exports=ao(1).getIteratorMethod=function(go){if(go!=null)return go[uo]||go["@@iterator"]||ho[lo(go)]}},function(io,so,ao){io.exports={default:ao(90),__esModule:!0}},function(io,so,ao){ao(91),io.exports=ao(1).Object.keys},function(io,so,ao){var lo=ao(18),uo=ao(13);ao(92)("keys",function(){return function(ho){return uo(lo(ho))}})},function(io,so,ao){var lo=ao(15),uo=ao(1),ho=ao(8);io.exports=function(go,mo){var yo=(uo.Object||{})[go]||Object[go],So={};So[go]=mo(yo),lo(lo.S+lo.F*ho(function(){yo(1)}),"Object",So)}},function(io,so,ao){(function(lo){var uo=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],ho=/^\s+|\s+$/g,go=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mo=/\{\n\/\* \[wrapped with (.+)\] \*/,yo=/,? & /,So=/^[-+]0x[0-9a-f]+$/i,_o=/^0b[01]+$/i,ko=/^\[object .+?Constructor\]$/,Co=/^0o[0-7]+$/i,$o=/^(?:0|[1-9]\d*)$/,Ro=parseInt,Oo=typeof lo=="object"&&lo&&lo.Object===Object&&lo,No=typeof self=="object"&&self&&self.Object===Object&&self,Mo=Oo||No||Function("return this")();function Bo(Is,Ks,Bs){switch(Bs.length){case 0:return Is.call(Ks);case 1:return Is.call(Ks,Bs[0]);case 2:return Is.call(Ks,Bs[0],Bs[1]);case 3:return Is.call(Ks,Bs[0],Bs[1],Bs[2])}return Is.apply(Ks,Bs)}function Fo(Is,Ks){return!!(Is&&Is.length)&&function(Bs,Ds,Zs){if(Ds!=Ds)return function(fu,Lu,e1,Gu){for(var w1=fu.length,Zu=e1+(Gu?1:-1);Gu?Zu--:++Zu-1}function Lo(Is){return Is!=Is}function Go(Is,Ks){for(var Bs=Is.length,Ds=0;Bs--;)Is[Bs]===Ks&&Ds++;return Ds}function Do(Is,Ks){for(var Bs=-1,Ds=Is.length,Zs=0,Cl=[];++Bs2?Ho:void 0);function Ws(Is){return r1(Is)?ks(Is):{}}function Ps(Is){return!(!r1(Is)||function(Ks){return!!Qo&&Qo in Ks}(Is))&&(function(Ks){var Bs=r1(Ks)?ys.call(Ks):"";return Bs=="[object Function]"||Bs=="[object GeneratorFunction]"}(Is)||function(Ks){var Bs=!1;if(Ks!=null&&typeof Ks.toString!="function")try{Bs=!!(Ks+"")}catch{}return Bs}(Is)?vs:ko).test(function(Ks){if(Ks!=null){try{return hs.call(Ks)}catch{}try{return Ks+""}catch{}}return""}(Is))}function qs(Is,Ks,Bs,Ds){for(var Zs=-1,Cl=Is.length,ba=Bs.length,fu=-1,Lu=Ks.length,e1=Os(Cl-ba,0),Gu=Array(Lu+e1),w1=!Ds;++fu1&&h0.reverse(),Gu&&Lu1?"& ":"")+Ks[Ds],Ks=Ks.join(Bs>2?", ":" "),Is.replace(go,`{ /* [wrapped with `+Ks+`] */ -`)}function Ol(Is,Ks){return!!(Ks=Ks??9007199254740991)&&(typeof Is=="number"||$o.test(Is))&&Is>-1&&Is%1==0&&Is1&&ho--,mo=6*ho<1?lo+6*(uo-lo)*ho:2*ho<1?uo:3*ho<2?lo+(uo-lo)*(2/3-ho)*6:lo,go[ko]=255*mo;return go}},function(io,so,ao){(function(lo){var uo=typeof lo=="object"&&lo&&lo.Object===Object&&lo,ho=typeof self=="object"&&self&&self.Object===Object&&self,go=uo||ho||Function("return this")();function mo(Do,Uo,Ho){switch(Ho.length){case 0:return Do.call(Uo);case 1:return Do.call(Uo,Ho[0]);case 2:return Do.call(Uo,Ho[0],Ho[1]);case 3:return Do.call(Uo,Ho[0],Ho[1],Ho[2])}return Do.apply(Uo,Ho)}function yo(Do,Uo){for(var Ho=-1,Yo=Uo.length,qo=Do.length;++Ho-1&&qo%1==0&&qo<=9007199254740991}(Yo.length)&&!function(qo){var Jo=function(ps){var Qo=typeof ps;return!!ps&&(Qo=="object"||Qo=="function")}(qo)?ko.call(qo):"";return Jo=="[object Function]"||Jo=="[object GeneratorFunction]"}(Yo)}(Ho)}(Uo)&&_o.call(Uo,"callee")&&(!$o.call(Uo,"callee")||ko.call(Uo)=="[object Arguments]")}(Do)||!!(Ro&&Do&&Do[Ro])}var Mo=Array.isArray,Bo,Po,Lo,Go=(Po=function(Do){var Uo=(Do=function Yo(qo,Jo,ps,Qo,hs){var gs=-1,ys=qo.length;for(ps||(ps=No),hs||(hs=[]);++gs0&&ps(vs)?Jo>1?Yo(vs,Jo-1,ps,Qo,hs):yo(hs,vs):Qo||(hs[hs.length]=vs)}return hs}(Do,1)).length,Ho=Uo;for(Bo;Ho--;)if(typeof Do[Ho]!="function")throw new TypeError("Expected a function");return function(){for(var Yo=0,qo=Uo?Do[Yo].apply(this,arguments):arguments[0];++Yo2?ho-2:0),mo=2;mo"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var _l,$l=ko(Ll);if(Ul){var Us=ko(this).constructor;_l=Reflect.construct($l,arguments,Us)}else _l=$l.apply(this,arguments);return Ro(this,_l)}}ao.r(so);var No=ao(0),Mo=ao.n(No);function Bo(){var Ll=this.constructor.getDerivedStateFromProps(this.props,this.state);Ll!=null&&this.setState(Ll)}function Po(Ll){this.setState((function(Ul){var _l=this.constructor.getDerivedStateFromProps(Ll,Ul);return _l??null}).bind(this))}function Lo(Ll,Ul){try{var _l=this.props,$l=this.state;this.props=Ll,this.state=Ul,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(_l,$l)}finally{this.props=_l,this.state=$l}}function Go(Ll){var Ul=Ll.prototype;if(!Ul||!Ul.isReactComponent)throw new Error("Can only polyfill class components");if(typeof Ll.getDerivedStateFromProps!="function"&&typeof Ul.getSnapshotBeforeUpdate!="function")return Ll;var _l=null,$l=null,Us=null;if(typeof Ul.componentWillMount=="function"?_l="componentWillMount":typeof Ul.UNSAFE_componentWillMount=="function"&&(_l="UNSAFE_componentWillMount"),typeof Ul.componentWillReceiveProps=="function"?$l="componentWillReceiveProps":typeof Ul.UNSAFE_componentWillReceiveProps=="function"&&($l="UNSAFE_componentWillReceiveProps"),typeof Ul.componentWillUpdate=="function"?Us="componentWillUpdate":typeof Ul.UNSAFE_componentWillUpdate=="function"&&(Us="UNSAFE_componentWillUpdate"),_l!==null||$l!==null||Us!==null){var Rl=Ll.displayName||Ll.name,Sl=typeof Ll.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. +`)}function Ol(Is,Ks){return!!(Ks=Ks??9007199254740991)&&(typeof Is=="number"||$o.test(Is))&&Is>-1&&Is%1==0&&Is1&&ho--,mo=6*ho<1?lo+6*(uo-lo)*ho:2*ho<1?uo:3*ho<2?lo+(uo-lo)*(2/3-ho)*6:lo,go[ko]=255*mo;return go}},function(io,so,ao){(function(lo){var uo=typeof lo=="object"&&lo&&lo.Object===Object&&lo,ho=typeof self=="object"&&self&&self.Object===Object&&self,go=uo||ho||Function("return this")();function mo(Do,Uo,Ho){switch(Ho.length){case 0:return Do.call(Uo);case 1:return Do.call(Uo,Ho[0]);case 2:return Do.call(Uo,Ho[0],Ho[1]);case 3:return Do.call(Uo,Ho[0],Ho[1],Ho[2])}return Do.apply(Uo,Ho)}function yo(Do,Uo){for(var Ho=-1,Yo=Uo.length,qo=Do.length;++Ho-1&&qo%1==0&&qo<=9007199254740991}(Yo.length)&&!function(qo){var Jo=function(ps){var Qo=typeof ps;return!!ps&&(Qo=="object"||Qo=="function")}(qo)?ko.call(qo):"";return Jo=="[object Function]"||Jo=="[object GeneratorFunction]"}(Yo)}(Ho)}(Uo)&&_o.call(Uo,"callee")&&(!$o.call(Uo,"callee")||ko.call(Uo)=="[object Arguments]")}(Do)||!!(Ro&&Do&&Do[Ro])}var Mo=Array.isArray,Bo,Fo,Lo,Go=(Fo=function(Do){var Uo=(Do=function Yo(qo,Jo,ps,Qo,hs){var gs=-1,ys=qo.length;for(ps||(ps=No),hs||(hs=[]);++gs0&&ps(vs)?Jo>1?Yo(vs,Jo-1,ps,Qo,hs):yo(hs,vs):Qo||(hs[hs.length]=vs)}return hs}(Do,1)).length,Ho=Uo;for(Bo;Ho--;)if(typeof Do[Ho]!="function")throw new TypeError("Expected a function");return function(){for(var Yo=0,qo=Uo?Do[Yo].apply(this,arguments):arguments[0];++Yo2?ho-2:0),mo=2;mo"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var _l,$l=ko(Ll);if(Ul){var Us=ko(this).constructor;_l=Reflect.construct($l,arguments,Us)}else _l=$l.apply(this,arguments);return Ro(this,_l)}}ao.r(so);var No=ao(0),Mo=ao.n(No);function Bo(){var Ll=this.constructor.getDerivedStateFromProps(this.props,this.state);Ll!=null&&this.setState(Ll)}function Fo(Ll){this.setState((function(Ul){var _l=this.constructor.getDerivedStateFromProps(Ll,Ul);return _l??null}).bind(this))}function Lo(Ll,Ul){try{var _l=this.props,$l=this.state;this.props=Ll,this.state=Ul,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(_l,$l)}finally{this.props=_l,this.state=$l}}function Go(Ll){var Ul=Ll.prototype;if(!Ul||!Ul.isReactComponent)throw new Error("Can only polyfill class components");if(typeof Ll.getDerivedStateFromProps!="function"&&typeof Ul.getSnapshotBeforeUpdate!="function")return Ll;var _l=null,$l=null,Us=null;if(typeof Ul.componentWillMount=="function"?_l="componentWillMount":typeof Ul.UNSAFE_componentWillMount=="function"&&(_l="UNSAFE_componentWillMount"),typeof Ul.componentWillReceiveProps=="function"?$l="componentWillReceiveProps":typeof Ul.UNSAFE_componentWillReceiveProps=="function"&&($l="UNSAFE_componentWillReceiveProps"),typeof Ul.componentWillUpdate=="function"?Us="componentWillUpdate":typeof Ul.UNSAFE_componentWillUpdate=="function"&&(Us="UNSAFE_componentWillUpdate"),_l!==null||$l!==null||Us!==null){var Rl=Ll.displayName||Ll.name,Sl=typeof Ll.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+Rl+" uses "+Sl+" but also contains the following legacy lifecycles:"+(_l!==null?` `+_l:"")+($l!==null?` @@ -1845,7 +1845,7 @@ PERFORMANCE OF THIS SOFTWARE. `+Us:"")+` The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof Ll.getDerivedStateFromProps=="function"&&(Ul.componentWillMount=Bo,Ul.componentWillReceiveProps=Po),typeof Ul.getSnapshotBeforeUpdate=="function"){if(typeof Ul.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");Ul.componentWillUpdate=Lo;var eu=Ul.componentDidUpdate;Ul.componentDidUpdate=function(_c,zu,N1){var K0=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:N1;eu.call(this,_c,zu,K0)}}return Ll}function Do(Ll,Ul){if(Ll==null)return{};var _l,$l,Us=function(Sl,eu){if(Sl==null)return{};var _c,zu,N1={},K0=Object.keys(Sl);for(zu=0;zu=0||(N1[_c]=Sl[_c]);return N1}(Ll,Ul);if(Object.getOwnPropertySymbols){var Rl=Object.getOwnPropertySymbols(Ll);for($l=0;$l=0||Object.prototype.propertyIsEnumerable.call(Ll,_l)&&(Us[_l]=Ll[_l])}return Us}function Uo(Ll){var Ul=function(_l){return{}.toString.call(_l).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(Ll);return Ul==="number"&&(Ul=isNaN(Ll)?"nan":(0|Ll)!=Ll?"float":"integer"),Ul}Bo.__suppressDeprecationWarning=!0,Po.__suppressDeprecationWarning=!0,Lo.__suppressDeprecationWarning=!0;var Ho={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},Yo={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},qo={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},Jo=ao(45),ps=function(Ll){var Ul=function(_l){return{backgroundColor:_l.base00,ellipsisColor:_l.base09,braceColor:_l.base07,expandedIcon:_l.base0D,collapsedIcon:_l.base0E,keyColor:_l.base07,arrayKeyColor:_l.base0C,objectSize:_l.base04,copyToClipboard:_l.base0F,copyToClipboardCheck:_l.base0D,objectBorder:_l.base02,dataTypes:{boolean:_l.base0E,date:_l.base0D,float:_l.base0B,function:_l.base0D,integer:_l.base0F,string:_l.base09,nan:_l.base08,null:_l.base0A,undefined:_l.base05,regexp:_l.base0A,background:_l.base02},editVariable:{editIcon:_l.base0E,cancelIcon:_l.base09,removeIcon:_l.base09,addIcon:_l.base0E,checkIcon:_l.base0E,background:_l.base01,color:_l.base0A,border:_l.base07},addKeyModal:{background:_l.base05,border:_l.base04,color:_l.base0A,labelColor:_l.base01},validationFailure:{background:_l.base09,iconColor:_l.base01,fontColor:_l.base01}}}(Ll);return{"app-container":{fontFamily:qo.globalFontFamily,cursor:qo.globalCursor,backgroundColor:Ul.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Ul.ellipsisColor,fontSize:qo.ellipsisFontSize,lineHeight:qo.ellipsisLineHeight,cursor:qo.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:qo.braceCursor,fontWeight:qo.braceFontWeight,color:Ul.braceColor},"expanded-icon":{color:Ul.expandedIcon},"collapsed-icon":{color:Ul.collapsedIcon},colon:{display:"inline-block",margin:qo.keyMargin,color:Ul.keyColor,verticalAlign:"top"},objectKeyVal:function(_l,$l){return{style:ho({paddingTop:qo.keyValPaddingTop,paddingRight:qo.keyValPaddingRight,paddingBottom:qo.keyValPaddingBottom,borderLeft:qo.keyValBorderLeft+" "+Ul.objectBorder,":hover":{paddingLeft:$l.paddingLeft-1+"px",borderLeft:qo.keyValBorderHover+" "+Ul.objectBorder}},$l)}},"object-key-val-no-border":{padding:qo.keyValPadding},"pushed-content":{marginLeft:qo.pushedContentMarginLeft},variableValue:function(_l,$l){return{style:ho({display:"inline-block",paddingRight:qo.variableValuePaddingRight,position:"relative"},$l)}},"object-name":{display:"inline-block",color:Ul.keyColor,letterSpacing:qo.keyLetterSpacing,fontStyle:qo.keyFontStyle,verticalAlign:qo.keyVerticalAlign,opacity:qo.keyOpacity,":hover":{opacity:qo.keyOpacityHover}},"array-key":{display:"inline-block",color:Ul.arrayKeyColor,letterSpacing:qo.keyLetterSpacing,fontStyle:qo.keyFontStyle,verticalAlign:qo.keyVerticalAlign,opacity:qo.keyOpacity,":hover":{opacity:qo.keyOpacityHover}},"object-size":{color:Ul.objectSize,borderRadius:qo.objectSizeBorderRadius,fontStyle:qo.objectSizeFontStyle,margin:qo.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:qo.dataTypeFontSize,marginRight:qo.dataTypeMarginRight,opacity:qo.datatypeOpacity},boolean:{display:"inline-block",color:Ul.dataTypes.boolean},date:{display:"inline-block",color:Ul.dataTypes.date},"date-value":{marginLeft:qo.dateValueMarginLeft},float:{display:"inline-block",color:Ul.dataTypes.float},function:{display:"inline-block",color:Ul.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Ul.dataTypes.integer},string:{display:"inline-block",color:Ul.dataTypes.string},nan:{display:"inline-block",color:Ul.dataTypes.nan,fontSize:qo.nanFontSize,fontWeight:qo.nanFontWeight,backgroundColor:Ul.dataTypes.background,padding:qo.nanPadding,borderRadius:qo.nanBorderRadius},null:{display:"inline-block",color:Ul.dataTypes.null,fontSize:qo.nullFontSize,fontWeight:qo.nullFontWeight,backgroundColor:Ul.dataTypes.background,padding:qo.nullPadding,borderRadius:qo.nullBorderRadius},undefined:{display:"inline-block",color:Ul.dataTypes.undefined,fontSize:qo.undefinedFontSize,padding:qo.undefinedPadding,borderRadius:qo.undefinedBorderRadius,backgroundColor:Ul.dataTypes.background},regexp:{display:"inline-block",color:Ul.dataTypes.regexp},"copy-to-clipboard":{cursor:qo.clipboardCursor},"copy-icon":{color:Ul.copyToClipboard,fontSize:qo.iconFontSize,marginRight:qo.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Ul.copyToClipboardCheck,marginLeft:qo.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:qo.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:qo.metaDataPadding},"icon-container":{display:"inline-block",width:qo.iconContainerWidth},tooltip:{padding:qo.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Ul.editVariable.removeIcon,cursor:qo.iconCursor,fontSize:qo.iconFontSize,marginRight:qo.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Ul.editVariable.addIcon,cursor:qo.iconCursor,fontSize:qo.iconFontSize,marginRight:qo.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Ul.editVariable.editIcon,cursor:qo.iconCursor,fontSize:qo.iconFontSize,marginRight:qo.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:qo.iconCursor,color:Ul.editVariable.checkIcon,fontSize:qo.iconFontSize,paddingRight:qo.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:qo.iconCursor,color:Ul.editVariable.cancelIcon,fontSize:qo.iconFontSize,paddingRight:qo.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:qo.editInputMinWidth,borderRadius:qo.editInputBorderRadius,backgroundColor:Ul.editVariable.background,color:Ul.editVariable.color,padding:qo.editInputPadding,marginRight:qo.editInputMarginRight,fontFamily:qo.editInputFontFamily},"detected-row":{paddingTop:qo.detectedRowPaddingTop},"key-modal-request":{position:qo.addKeyCoverPosition,top:qo.addKeyCoverPositionPx,left:qo.addKeyCoverPositionPx,right:qo.addKeyCoverPositionPx,bottom:qo.addKeyCoverPositionPx,backgroundColor:qo.addKeyCoverBackground},"key-modal":{width:qo.addKeyModalWidth,backgroundColor:Ul.addKeyModal.background,marginLeft:qo.addKeyModalMargin,marginRight:qo.addKeyModalMargin,padding:qo.addKeyModalPadding,borderRadius:qo.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Ul.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:Ul.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Ul.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Ul.addKeyModal.labelColor,fontSize:qo.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Ul.editVariable.addIcon,fontSize:qo.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Ul.ellipsisColor,fontSize:qo.ellipsisFontSize,lineHeight:qo.ellipsisLineHeight,cursor:qo.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Ul.validationFailure.fontColor,backgroundColor:Ul.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Ul.validationFailure.iconColor,fontSize:qo.iconFontSize,transform:"rotate(45deg)"}}};function Qo(Ll,Ul,_l){return Ll||console.error("theme has not been set"),function($l){var Us=Ho;return $l!==!1&&$l!=="none"||(Us=Yo),Object(Jo.createStyling)(ps,{defaultBase16:Us})($l)}(Ll)(Ul,_l)}var hs=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=($l.rjvId,$l.type_name),Rl=$l.displayDataTypes,Sl=$l.theme;return Rl?Mo.a.createElement("span",Object.assign({className:"data-type-label"},Qo(Sl,"data-type-label")),Us):null}}]),_l}(Mo.a.PureComponent),gs=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props;return Mo.a.createElement("div",Qo($l.theme,"boolean"),Mo.a.createElement(hs,Object.assign({type_name:"bool"},$l)),$l.value?"true":"false")}}]),_l}(Mo.a.PureComponent),ys=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props;return Mo.a.createElement("div",Qo($l.theme,"date"),Mo.a.createElement(hs,Object.assign({type_name:"date"},$l)),Mo.a.createElement("span",Object.assign({className:"date-value"},Qo($l.theme,"date-value")),$l.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),_l}(Mo.a.PureComponent),vs=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props;return Mo.a.createElement("div",Qo($l.theme,"float"),Mo.a.createElement(hs,Object.assign({type_name:"float"},$l)),this.props.value)}}]),_l}(Mo.a.PureComponent);function ks(Ll,Ul){(Ul==null||Ul>Ll.length)&&(Ul=Ll.length);for(var _l=0,$l=new Array(Ul);_l"u"||Ll[Symbol.iterator]==null){if(Array.isArray(Ll)||(_l=Os(Ll))||Ul&&Ll&&typeof Ll.length=="number"){_l&&(Ll=_l);var $l=0,Us=function(){};return{s:Us,n:function(){return $l>=Ll.length?{done:!0}:{done:!1,value:Ll[$l++]}},e:function(_c){throw _c},f:Us}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof Ll.getDerivedStateFromProps=="function"&&(Ul.componentWillMount=Bo,Ul.componentWillReceiveProps=Fo),typeof Ul.getSnapshotBeforeUpdate=="function"){if(typeof Ul.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");Ul.componentWillUpdate=Lo;var eu=Ul.componentDidUpdate;Ul.componentDidUpdate=function(_c,zu,N1){var K0=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:N1;eu.call(this,_c,zu,K0)}}return Ll}function Do(Ll,Ul){if(Ll==null)return{};var _l,$l,Us=function(Sl,eu){if(Sl==null)return{};var _c,zu,N1={},K0=Object.keys(Sl);for(zu=0;zu=0||(N1[_c]=Sl[_c]);return N1}(Ll,Ul);if(Object.getOwnPropertySymbols){var Rl=Object.getOwnPropertySymbols(Ll);for($l=0;$l=0||Object.prototype.propertyIsEnumerable.call(Ll,_l)&&(Us[_l]=Ll[_l])}return Us}function Uo(Ll){var Ul=function(_l){return{}.toString.call(_l).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(Ll);return Ul==="number"&&(Ul=isNaN(Ll)?"nan":(0|Ll)!=Ll?"float":"integer"),Ul}Bo.__suppressDeprecationWarning=!0,Fo.__suppressDeprecationWarning=!0,Lo.__suppressDeprecationWarning=!0;var Ho={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},Yo={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},qo={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},Jo=ao(45),ps=function(Ll){var Ul=function(_l){return{backgroundColor:_l.base00,ellipsisColor:_l.base09,braceColor:_l.base07,expandedIcon:_l.base0D,collapsedIcon:_l.base0E,keyColor:_l.base07,arrayKeyColor:_l.base0C,objectSize:_l.base04,copyToClipboard:_l.base0F,copyToClipboardCheck:_l.base0D,objectBorder:_l.base02,dataTypes:{boolean:_l.base0E,date:_l.base0D,float:_l.base0B,function:_l.base0D,integer:_l.base0F,string:_l.base09,nan:_l.base08,null:_l.base0A,undefined:_l.base05,regexp:_l.base0A,background:_l.base02},editVariable:{editIcon:_l.base0E,cancelIcon:_l.base09,removeIcon:_l.base09,addIcon:_l.base0E,checkIcon:_l.base0E,background:_l.base01,color:_l.base0A,border:_l.base07},addKeyModal:{background:_l.base05,border:_l.base04,color:_l.base0A,labelColor:_l.base01},validationFailure:{background:_l.base09,iconColor:_l.base01,fontColor:_l.base01}}}(Ll);return{"app-container":{fontFamily:qo.globalFontFamily,cursor:qo.globalCursor,backgroundColor:Ul.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Ul.ellipsisColor,fontSize:qo.ellipsisFontSize,lineHeight:qo.ellipsisLineHeight,cursor:qo.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:qo.braceCursor,fontWeight:qo.braceFontWeight,color:Ul.braceColor},"expanded-icon":{color:Ul.expandedIcon},"collapsed-icon":{color:Ul.collapsedIcon},colon:{display:"inline-block",margin:qo.keyMargin,color:Ul.keyColor,verticalAlign:"top"},objectKeyVal:function(_l,$l){return{style:ho({paddingTop:qo.keyValPaddingTop,paddingRight:qo.keyValPaddingRight,paddingBottom:qo.keyValPaddingBottom,borderLeft:qo.keyValBorderLeft+" "+Ul.objectBorder,":hover":{paddingLeft:$l.paddingLeft-1+"px",borderLeft:qo.keyValBorderHover+" "+Ul.objectBorder}},$l)}},"object-key-val-no-border":{padding:qo.keyValPadding},"pushed-content":{marginLeft:qo.pushedContentMarginLeft},variableValue:function(_l,$l){return{style:ho({display:"inline-block",paddingRight:qo.variableValuePaddingRight,position:"relative"},$l)}},"object-name":{display:"inline-block",color:Ul.keyColor,letterSpacing:qo.keyLetterSpacing,fontStyle:qo.keyFontStyle,verticalAlign:qo.keyVerticalAlign,opacity:qo.keyOpacity,":hover":{opacity:qo.keyOpacityHover}},"array-key":{display:"inline-block",color:Ul.arrayKeyColor,letterSpacing:qo.keyLetterSpacing,fontStyle:qo.keyFontStyle,verticalAlign:qo.keyVerticalAlign,opacity:qo.keyOpacity,":hover":{opacity:qo.keyOpacityHover}},"object-size":{color:Ul.objectSize,borderRadius:qo.objectSizeBorderRadius,fontStyle:qo.objectSizeFontStyle,margin:qo.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:qo.dataTypeFontSize,marginRight:qo.dataTypeMarginRight,opacity:qo.datatypeOpacity},boolean:{display:"inline-block",color:Ul.dataTypes.boolean},date:{display:"inline-block",color:Ul.dataTypes.date},"date-value":{marginLeft:qo.dateValueMarginLeft},float:{display:"inline-block",color:Ul.dataTypes.float},function:{display:"inline-block",color:Ul.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Ul.dataTypes.integer},string:{display:"inline-block",color:Ul.dataTypes.string},nan:{display:"inline-block",color:Ul.dataTypes.nan,fontSize:qo.nanFontSize,fontWeight:qo.nanFontWeight,backgroundColor:Ul.dataTypes.background,padding:qo.nanPadding,borderRadius:qo.nanBorderRadius},null:{display:"inline-block",color:Ul.dataTypes.null,fontSize:qo.nullFontSize,fontWeight:qo.nullFontWeight,backgroundColor:Ul.dataTypes.background,padding:qo.nullPadding,borderRadius:qo.nullBorderRadius},undefined:{display:"inline-block",color:Ul.dataTypes.undefined,fontSize:qo.undefinedFontSize,padding:qo.undefinedPadding,borderRadius:qo.undefinedBorderRadius,backgroundColor:Ul.dataTypes.background},regexp:{display:"inline-block",color:Ul.dataTypes.regexp},"copy-to-clipboard":{cursor:qo.clipboardCursor},"copy-icon":{color:Ul.copyToClipboard,fontSize:qo.iconFontSize,marginRight:qo.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Ul.copyToClipboardCheck,marginLeft:qo.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:qo.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:qo.metaDataPadding},"icon-container":{display:"inline-block",width:qo.iconContainerWidth},tooltip:{padding:qo.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Ul.editVariable.removeIcon,cursor:qo.iconCursor,fontSize:qo.iconFontSize,marginRight:qo.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Ul.editVariable.addIcon,cursor:qo.iconCursor,fontSize:qo.iconFontSize,marginRight:qo.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Ul.editVariable.editIcon,cursor:qo.iconCursor,fontSize:qo.iconFontSize,marginRight:qo.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:qo.iconCursor,color:Ul.editVariable.checkIcon,fontSize:qo.iconFontSize,paddingRight:qo.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:qo.iconCursor,color:Ul.editVariable.cancelIcon,fontSize:qo.iconFontSize,paddingRight:qo.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:qo.editInputMinWidth,borderRadius:qo.editInputBorderRadius,backgroundColor:Ul.editVariable.background,color:Ul.editVariable.color,padding:qo.editInputPadding,marginRight:qo.editInputMarginRight,fontFamily:qo.editInputFontFamily},"detected-row":{paddingTop:qo.detectedRowPaddingTop},"key-modal-request":{position:qo.addKeyCoverPosition,top:qo.addKeyCoverPositionPx,left:qo.addKeyCoverPositionPx,right:qo.addKeyCoverPositionPx,bottom:qo.addKeyCoverPositionPx,backgroundColor:qo.addKeyCoverBackground},"key-modal":{width:qo.addKeyModalWidth,backgroundColor:Ul.addKeyModal.background,marginLeft:qo.addKeyModalMargin,marginRight:qo.addKeyModalMargin,padding:qo.addKeyModalPadding,borderRadius:qo.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Ul.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:Ul.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Ul.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Ul.addKeyModal.labelColor,fontSize:qo.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Ul.editVariable.addIcon,fontSize:qo.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Ul.ellipsisColor,fontSize:qo.ellipsisFontSize,lineHeight:qo.ellipsisLineHeight,cursor:qo.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Ul.validationFailure.fontColor,backgroundColor:Ul.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Ul.validationFailure.iconColor,fontSize:qo.iconFontSize,transform:"rotate(45deg)"}}};function Qo(Ll,Ul,_l){return Ll||console.error("theme has not been set"),function($l){var Us=Ho;return $l!==!1&&$l!=="none"||(Us=Yo),Object(Jo.createStyling)(ps,{defaultBase16:Us})($l)}(Ll)(Ul,_l)}var hs=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=($l.rjvId,$l.type_name),Rl=$l.displayDataTypes,Sl=$l.theme;return Rl?Mo.a.createElement("span",Object.assign({className:"data-type-label"},Qo(Sl,"data-type-label")),Us):null}}]),_l}(Mo.a.PureComponent),gs=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props;return Mo.a.createElement("div",Qo($l.theme,"boolean"),Mo.a.createElement(hs,Object.assign({type_name:"bool"},$l)),$l.value?"true":"false")}}]),_l}(Mo.a.PureComponent),ys=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props;return Mo.a.createElement("div",Qo($l.theme,"date"),Mo.a.createElement(hs,Object.assign({type_name:"date"},$l)),Mo.a.createElement("span",Object.assign({className:"date-value"},Qo($l.theme,"date-value")),$l.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),_l}(Mo.a.PureComponent),vs=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props;return Mo.a.createElement("div",Qo($l.theme,"float"),Mo.a.createElement(hs,Object.assign({type_name:"float"},$l)),this.props.value)}}]),_l}(Mo.a.PureComponent);function ks(Ll,Ul){(Ul==null||Ul>Ll.length)&&(Ul=Ll.length);for(var _l=0,$l=new Array(Ul);_l"u"||Ll[Symbol.iterator]==null){if(Array.isArray(Ll)||(_l=Os(Ll))||Ul&&Ll&&typeof Ll.length=="number"){_l&&(Ll=_l);var $l=0,Us=function(){};return{s:Us,n:function(){return $l>=Ll.length?{done:!0}:{done:!1,value:Ll[$l++]}},e:function(_c){throw _c},f:Us}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Rl,Sl=!0,eu=!1;return{s:function(){_l=Ll[Symbol.iterator]()},n:function(){var _c=_l.next();return Sl=_c.done,_c},e:function(_c){eu=!0,Rl=_c},f:function(){try{Sl||_l.return==null||_l.return()}finally{if(eu)throw Rl}}}}function Xs(Ll){return function(Ul){if(Array.isArray(Ul))return ks(Ul)}(Ll)||function(Ul){if(typeof Symbol<"u"&&Symbol.iterator in Object(Ul))return Array.from(Ul)}(Ll)||Os(Ll)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Ws=ao(46),Ps=new(ao(47)).Dispatcher,qs=new(function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){var $l;go(this,_l);for(var Us=arguments.length,Rl=new Array(Us),Sl=0;SlUs&&(eu.style.cursor="pointer",this.state.collapsed&&(Sl=Mo.a.createElement("span",null,Sl.substring(0,Us),Mo.a.createElement("span",Qo(Rl,"ellipsis")," ...")))),Mo.a.createElement("div",Qo(Rl,"string"),Mo.a.createElement(hs,Object.assign({type_name:"string"},$l)),Mo.a.createElement("span",Object.assign({className:"string-value"},eu,{onClick:this.toggleCollapsed}),'"',Sl,'"'))}}]),_l}(Mo.a.PureComponent),Qs=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){return Mo.a.createElement("div",Qo(this.props.theme,"undefined"),"undefined")}}]),_l}(Mo.a.PureComponent);function du(){return(du=Object.assign||function(Ll){for(var Ul=1;Ul=0||(Z2[T2]=R0[T2]);return Z2}(Ll,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),N1,K0=zu.value!==void 0,J0=Object(No.useRef)(null),S1=F1(J0,Ul),O1=Object(No.useRef)(0),r0=Object(No.useRef)(),I1=function(){var R0=J0.current,tu=_l&&r0.current?r0.current:function(r_){var G4=window.getComputedStyle(r_);if(G4===null)return null;var bE,hw=(bE=G4,Is.reduce(function(NS,i_){return NS[i_]=bE[i_],NS},{})),Ay=hw.boxSizing;return Ay===""?null:(Ks&&Ay==="border-box"&&(hw.width=parseFloat(hw.width)+parseFloat(hw.borderRightWidth)+parseFloat(hw.borderLeftWidth)+parseFloat(hw.paddingRight)+parseFloat(hw.paddingLeft)+"px"),{sizingStyle:hw,paddingSize:parseFloat(hw.paddingBottom)+parseFloat(hw.paddingTop),borderSize:parseFloat(hw.borderBottomWidth)+parseFloat(hw.borderTopWidth)})}(R0);if(tu){r0.current=tu;var T2=function(r_,G4,bE,hw){bE===void 0&&(bE=1),hw===void 0&&(hw=1/0),$u||(($u=document.createElement("textarea")).setAttribute("tab-index","-1"),$u.setAttribute("aria-hidden","true"),r1($u)),$u.parentNode===null&&document.body.appendChild($u);var Ay=r_.paddingSize,NS=r_.borderSize,i_=r_.sizingStyle,JE=i_.boxSizing;Object.keys(i_).forEach(function(Tw){var yE=Tw;$u.style[yE]=i_[yE]}),r1($u),$u.value=G4;var _k=function(Tw,yE){var LS=Tw.scrollHeight;return yE.sizingStyle.boxSizing==="border-box"?LS+yE.borderSize:LS-yE.paddingSize}($u,r_);$u.value="x";var W4=$u.scrollHeight-Ay,B2=W4*bE;JE==="border-box"&&(B2=B2+Ay+NS),_k=Math.max(B2,_k);var DS=W4*hw;return JE==="border-box"&&(DS=DS+Ay+NS),[_k=Math.min(DS,_k),W4]}(tu,R0.value||R0.placeholder||"x",Us,$l),hu=T2[0],Z2=T2[1];O1.current!==hu&&(O1.current=hu,R0.style.setProperty("height",hu+"px","important"),_c(hu,{rowHeight:Z2}))}};return Object(No.useLayoutEffect)(I1),N1=Fu(I1),Object(No.useLayoutEffect)(function(){var R0=function(tu){N1.current(tu)};return window.addEventListener("resize",R0),function(){window.removeEventListener("resize",R0)}},[]),Object(No.createElement)("textarea",du({},zu,{onChange:function(R0){K0||I1(),Sl(R0)},ref:S1}))},Ds=Object(No.forwardRef)(Bs);function Zs(Ll){Ll=Ll.trim();try{if((Ll=JSON.stringify(JSON.parse(Ll)))[0]==="[")return Cl("array",JSON.parse(Ll));if(Ll[0]==="{")return Cl("object",JSON.parse(Ll));if(Ll.match(/\-?\d+\.\d+/)&&Ll.match(/\-?\d+\.\d+/)[0]===Ll)return Cl("float",parseFloat(Ll));if(Ll.match(/\-?\d+e-\d+/)&&Ll.match(/\-?\d+e-\d+/)[0]===Ll)return Cl("float",Number(Ll));if(Ll.match(/\-?\d+/)&&Ll.match(/\-?\d+/)[0]===Ll)return Cl("integer",parseInt(Ll));if(Ll.match(/\-?\d+e\+\d+/)&&Ll.match(/\-?\d+e\+\d+/)[0]===Ll)return Cl("integer",Number(Ll))}catch{}switch(Ll=Ll.toLowerCase()){case"undefined":return Cl("undefined",void 0);case"nan":return Cl("nan",NaN);case"null":return Cl("null",null);case"true":return Cl("boolean",!0);case"false":return Cl("boolean",!1);default:if(Ll=Date.parse(Ll))return Cl("date",new Date(Ll))}return Cl(!1,null)}function Cl(Ll,Ul){return{type:Ll,value:Ul}}var ba=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=$l.style,Rl=Do($l,["style"]);return Mo.a.createElement("span",Rl,Mo.a.createElement("svg",Object.assign({},h0(Us),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Mo.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),_l}(Mo.a.PureComponent),fu=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=$l.style,Rl=Do($l,["style"]);return Mo.a.createElement("span",Rl,Mo.a.createElement("svg",Object.assign({},h0(Us),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Mo.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),_l}(Mo.a.PureComponent),Lu=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=$l.style,Rl=Do($l,["style"]),Sl=h0(Us).style;return Mo.a.createElement("span",Rl,Mo.a.createElement("svg",{fill:Sl.color,width:Sl.height,height:Sl.width,style:Sl,viewBox:"0 0 1792 1792"},Mo.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),_l}(Mo.a.PureComponent),e1=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=$l.style,Rl=Do($l,["style"]),Sl=h0(Us).style;return Mo.a.createElement("span",Rl,Mo.a.createElement("svg",{fill:Sl.color,width:Sl.height,height:Sl.width,style:Sl,viewBox:"0 0 1792 1792"},Mo.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),_l}(Mo.a.PureComponent),Gu=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=$l.style,Rl=Do($l,["style"]);return Mo.a.createElement("span",Rl,Mo.a.createElement("svg",{style:ho(ho({},h0(Us).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},Mo.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),_l}(Mo.a.PureComponent),w1=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=$l.style,Rl=Do($l,["style"]);return Mo.a.createElement("span",Rl,Mo.a.createElement("svg",{style:ho(ho({},h0(Us).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},Mo.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),_l}(Mo.a.PureComponent),Zu=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=$l.style,Rl=Do($l,["style"]);return Mo.a.createElement("span",Rl,Mo.a.createElement("svg",Object.assign({},h0(Us),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Mo.a.createElement("g",null,Mo.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),_l}(Mo.a.PureComponent),L1=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=$l.style,Rl=Do($l,["style"]);return Mo.a.createElement("span",Rl,Mo.a.createElement("svg",Object.assign({},h0(Us),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Mo.a.createElement("g",null,Mo.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),_l}(Mo.a.PureComponent),K1=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=$l.style,Rl=Do($l,["style"]);return Mo.a.createElement("span",Rl,Mo.a.createElement("svg",Object.assign({},h0(Us),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Mo.a.createElement("g",null,Mo.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),_l}(Mo.a.PureComponent),yp=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=$l.style,Rl=Do($l,["style"]);return Mo.a.createElement("span",Rl,Mo.a.createElement("svg",Object.assign({},h0(Us),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Mo.a.createElement("g",null,Mo.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),_l}(Mo.a.PureComponent),wp=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=$l.style,Rl=Do($l,["style"]);return Mo.a.createElement("span",Rl,Mo.a.createElement("svg",Object.assign({},h0(Us),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Mo.a.createElement("g",null,Mo.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),_l}(Mo.a.PureComponent),j0=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){return go(this,_l),Ul.apply(this,arguments)}return yo(_l,[{key:"render",value:function(){var $l=this.props,Us=$l.style,Rl=Do($l,["style"]);return Mo.a.createElement("span",Rl,Mo.a.createElement("svg",Object.assign({},h0(Us),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Mo.a.createElement("g",null,Mo.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),_l}(Mo.a.PureComponent);function h0(Ll){return Ll||(Ll={}),{style:ho(ho({verticalAlign:"middle"},Ll),{},{color:Ll.color?Ll.color:"#000000",height:"1em",width:"1em"})}}var cp=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l($l){var Us;return go(this,_l),(Us=Ul.call(this,$l)).copiedTimer=null,Us.handleCopy=function(){var Rl=document.createElement("textarea"),Sl=Us.props,eu=Sl.clickCallback,_c=Sl.src,zu=Sl.namespace;Rl.innerHTML=JSON.stringify(Us.clipboardValue(_c),null," "),document.body.appendChild(Rl),Rl.select(),document.execCommand("copy"),document.body.removeChild(Rl),Us.copiedTimer=setTimeout(function(){Us.setState({copied:!1})},5500),Us.setState({copied:!0},function(){typeof eu=="function"&&eu({src:_c,namespace:zu,name:zu[zu.length-1]})})},Us.getClippyIcon=function(){var Rl=Us.props.theme;return Us.state.copied?Mo.a.createElement("span",null,Mo.a.createElement(Zu,Object.assign({className:"copy-icon"},Qo(Rl,"copy-icon"))),Mo.a.createElement("span",Qo(Rl,"copy-icon-copied"),"✔")):Mo.a.createElement(Zu,Object.assign({className:"copy-icon"},Qo(Rl,"copy-icon")))},Us.clipboardValue=function(Rl){switch(Uo(Rl)){case"function":case"regexp":return Rl.toString();default:return Rl}},Us.state={copied:!1},Us}return yo(_l,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var $l=this.props,Us=($l.src,$l.theme),Rl=$l.hidden,Sl=$l.rowHovered,eu=Qo(Us,"copy-to-clipboard").style,_c="inline";return Rl&&(_c="none"),Mo.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:Sl?"inline-block":"none"}},Mo.a.createElement("span",{style:ho(ho({},eu),{},{display:_c}),onClick:this.handleCopy},this.getClippyIcon()))}}]),_l}(Mo.a.PureComponent),k0=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l($l){var Us;return go(this,_l),(Us=Ul.call(this,$l)).getEditIcon=function(){var Rl=Us.props,Sl=Rl.variable,eu=Rl.theme;return Mo.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:Us.state.hovered?"inline-block":"none"}},Mo.a.createElement(wp,Object.assign({className:"click-to-edit-icon"},Qo(eu,"editVarIcon"),{onClick:function(){Us.prepopInput(Sl)}})))},Us.prepopInput=function(Rl){if(Us.props.onEdit!==!1){var Sl=function(_c){var zu;switch(Uo(_c)){case"undefined":zu="undefined";break;case"nan":zu="NaN";break;case"string":zu=_c;break;case"date":case"function":case"regexp":zu=_c.toString();break;default:try{zu=JSON.stringify(_c,null," ")}catch{zu=""}}return zu}(Rl.value),eu=Zs(Sl);Us.setState({editMode:!0,editValue:Sl,parsedInput:{type:eu.type,value:eu.value}})}},Us.getRemoveIcon=function(){var Rl=Us.props,Sl=Rl.variable,eu=Rl.namespace,_c=Rl.theme,zu=Rl.rjvId;return Mo.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:Us.state.hovered?"inline-block":"none"}},Mo.a.createElement(L1,Object.assign({className:"click-to-remove-icon"},Qo(_c,"removeVarIcon"),{onClick:function(){Ps.dispatch({name:"VARIABLE_REMOVED",rjvId:zu,data:{name:Sl.name,namespace:eu,existing_value:Sl.value,variable_removed:!0}})}})))},Us.getValue=function(Rl,Sl){var eu=!Sl&&Rl.type,_c=$o(Us).props;switch(eu){case!1:return Us.getEditInput();case"string":return Mo.a.createElement(Gl,Object.assign({value:Rl.value},_c));case"integer":return Mo.a.createElement(El,Object.assign({value:Rl.value},_c));case"float":return Mo.a.createElement(vs,Object.assign({value:Rl.value},_c));case"boolean":return Mo.a.createElement(gs,Object.assign({value:Rl.value},_c));case"function":return Mo.a.createElement(Fs,Object.assign({value:Rl.value},_c));case"null":return Mo.a.createElement(Vs,_c);case"nan":return Mo.a.createElement(Js,_c);case"undefined":return Mo.a.createElement(Qs,_c);case"date":return Mo.a.createElement(ys,Object.assign({value:Rl.value},_c));case"regexp":return Mo.a.createElement(yl,Object.assign({value:Rl.value},_c));default:return Mo.a.createElement("div",{className:"object-value"},JSON.stringify(Rl.value))}},Us.getEditInput=function(){var Rl=Us.props.theme,Sl=Us.state.editValue;return Mo.a.createElement("div",null,Mo.a.createElement(Ds,Object.assign({type:"text",inputRef:function(eu){return eu&&eu.focus()},value:Sl,className:"variable-editor",onChange:function(eu){var _c=eu.target.value,zu=Zs(_c);Us.setState({editValue:_c,parsedInput:{type:zu.type,value:zu.value}})},onKeyDown:function(eu){switch(eu.key){case"Escape":Us.setState({editMode:!1,editValue:""});break;case"Enter":(eu.ctrlKey||eu.metaKey)&&Us.submitEdit(!0)}eu.stopPropagation()},placeholder:"update this value",minRows:2},Qo(Rl,"edit-input"))),Mo.a.createElement("div",Qo(Rl,"edit-icon-container"),Mo.a.createElement(L1,Object.assign({className:"edit-cancel"},Qo(Rl,"cancel-icon"),{onClick:function(){Us.setState({editMode:!1,editValue:""})}})),Mo.a.createElement(j0,Object.assign({className:"edit-check string-value"},Qo(Rl,"check-icon"),{onClick:function(){Us.submitEdit()}})),Mo.a.createElement("div",null,Us.showDetected())))},Us.submitEdit=function(Rl){var Sl=Us.props,eu=Sl.variable,_c=Sl.namespace,zu=Sl.rjvId,N1=Us.state,K0=N1.editValue,J0=N1.parsedInput,S1=K0;Rl&&J0.type&&(S1=J0.value),Us.setState({editMode:!1}),Ps.dispatch({name:"VARIABLE_UPDATED",rjvId:zu,data:{name:eu.name,namespace:_c,existing_value:eu.value,new_value:S1,variable_removed:!1}})},Us.showDetected=function(){var Rl=Us.props,Sl=Rl.theme,eu=(Rl.variable,Rl.namespace,Rl.rjvId,Us.state.parsedInput),_c=(eu.type,eu.value,Us.getDetectedInput());if(_c)return Mo.a.createElement("div",null,Mo.a.createElement("div",Qo(Sl,"detected-row"),_c,Mo.a.createElement(j0,{className:"edit-check detected",style:ho({verticalAlign:"top",paddingLeft:"3px"},Qo(Sl,"check-icon").style),onClick:function(){Us.submitEdit(!0)}})))},Us.getDetectedInput=function(){var Rl=Us.state.parsedInput,Sl=Rl.type,eu=Rl.value,_c=$o(Us).props,zu=_c.theme;if(Sl!==!1)switch(Sl.toLowerCase()){case"object":return Mo.a.createElement("span",null,Mo.a.createElement("span",{style:ho(ho({},Qo(zu,"brace").style),{},{cursor:"default"})},"{"),Mo.a.createElement("span",{style:ho(ho({},Qo(zu,"ellipsis").style),{},{cursor:"default"})},"..."),Mo.a.createElement("span",{style:ho(ho({},Qo(zu,"brace").style),{},{cursor:"default"})},"}"));case"array":return Mo.a.createElement("span",null,Mo.a.createElement("span",{style:ho(ho({},Qo(zu,"brace").style),{},{cursor:"default"})},"["),Mo.a.createElement("span",{style:ho(ho({},Qo(zu,"ellipsis").style),{},{cursor:"default"})},"..."),Mo.a.createElement("span",{style:ho(ho({},Qo(zu,"brace").style),{},{cursor:"default"})},"]"));case"string":return Mo.a.createElement(Gl,Object.assign({value:eu},_c));case"integer":return Mo.a.createElement(El,Object.assign({value:eu},_c));case"float":return Mo.a.createElement(vs,Object.assign({value:eu},_c));case"boolean":return Mo.a.createElement(gs,Object.assign({value:eu},_c));case"function":return Mo.a.createElement(Fs,Object.assign({value:eu},_c));case"null":return Mo.a.createElement(Vs,_c);case"nan":return Mo.a.createElement(Js,_c);case"undefined":return Mo.a.createElement(Qs,_c);case"date":return Mo.a.createElement(ys,Object.assign({value:new Date(eu)},_c))}},Us.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},Us}return yo(_l,[{key:"render",value:function(){var $l=this,Us=this.props,Rl=Us.variable,Sl=Us.singleIndent,eu=Us.type,_c=Us.theme,zu=Us.namespace,N1=Us.indentWidth,K0=Us.enableClipboard,J0=Us.onEdit,S1=Us.onDelete,O1=Us.onSelect,r0=Us.displayArrayKey,I1=Us.quotesOnKeys,R0=this.state.editMode;return Mo.a.createElement("div",Object.assign({},Qo(_c,"objectKeyVal",{paddingLeft:N1*Sl}),{onMouseEnter:function(){return $l.setState(ho(ho({},$l.state),{},{hovered:!0}))},onMouseLeave:function(){return $l.setState(ho(ho({},$l.state),{},{hovered:!1}))},className:"variable-row",key:Rl.name}),eu=="array"?r0?Mo.a.createElement("span",Object.assign({},Qo(_c,"array-key"),{key:Rl.name+"_"+zu}),Rl.name,Mo.a.createElement("div",Qo(_c,"colon"),":")):null:Mo.a.createElement("span",null,Mo.a.createElement("span",Object.assign({},Qo(_c,"object-name"),{className:"object-key",key:Rl.name+"_"+zu}),!!I1&&Mo.a.createElement("span",{style:{verticalAlign:"top"}},'"'),Mo.a.createElement("span",{style:{display:"inline-block"}},Rl.name),!!I1&&Mo.a.createElement("span",{style:{verticalAlign:"top"}},'"')),Mo.a.createElement("span",Qo(_c,"colon"),":")),Mo.a.createElement("div",Object.assign({className:"variable-value",onClick:O1===!1&&J0===!1?null:function(tu){var T2=Xs(zu);(tu.ctrlKey||tu.metaKey)&&J0!==!1?$l.prepopInput(Rl):O1!==!1&&(T2.shift(),O1(ho(ho({},Rl),{},{namespace:T2})))}},Qo(_c,"variableValue",{cursor:O1===!1?"default":"pointer"})),this.getValue(Rl,R0)),K0?Mo.a.createElement(cp,{rowHovered:this.state.hovered,hidden:R0,src:Rl.value,clickCallback:K0,theme:_c,namespace:[].concat(Xs(zu),[Rl.name])}):null,J0!==!1&&R0==0?this.getEditIcon():null,S1!==!1&&R0==0?this.getRemoveIcon():null)}}]),_l}(Mo.a.PureComponent),ap=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){var $l;go(this,_l);for(var Us=arguments.length,Rl=new Array(Us),Sl=0;Sl0?K0:null,namespace:N1.splice(0,N1.length-1),existing_value:J0,variable_removed:!1,key_name:null};Uo(J0)==="object"?Ps.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:S1,data:r0}):Ps.dispatch({name:"VARIABLE_ADDED",rjvId:S1,data:ho(ho({},r0),{},{new_value:[].concat(Xs(J0),[null])})})}})))},$l.getRemoveObject=function(eu){var _c=$l.props,zu=_c.theme,N1=(_c.hover,_c.namespace),K0=_c.name,J0=_c.src,S1=_c.rjvId;if(N1.length!==1)return Mo.a.createElement("span",{className:"click-to-remove",style:{display:eu?"inline-block":"none"}},Mo.a.createElement(L1,Object.assign({className:"click-to-remove-icon"},Qo(zu,"removeVarIcon"),{onClick:function(){Ps.dispatch({name:"VARIABLE_REMOVED",rjvId:S1,data:{name:K0,namespace:N1.splice(0,N1.length-1),existing_value:J0,variable_removed:!0}})}})))},$l.render=function(){var eu=$l.props,_c=eu.theme,zu=eu.onDelete,N1=eu.onAdd,K0=eu.enableClipboard,J0=eu.src,S1=eu.namespace,O1=eu.rowHovered;return Mo.a.createElement("div",Object.assign({},Qo(_c,"object-meta-data"),{className:"object-meta-data",onClick:function(r0){r0.stopPropagation()}}),$l.getObjectSize(),K0?Mo.a.createElement(cp,{rowHovered:O1,clickCallback:K0,src:J0,theme:_c,namespace:S1}):null,N1!==!1?$l.getAddAttribute(O1):null,zu!==!1?$l.getRemoveObject(O1):null)},$l}return _l}(Mo.a.PureComponent);function x0(Ll){var Ul=Ll.parent_type,_l=Ll.namespace,$l=Ll.quotesOnKeys,Us=Ll.theme,Rl=Ll.jsvRoot,Sl=Ll.name,eu=Ll.displayArrayKey,_c=Ll.name?Ll.name:"";return!Rl||Sl!==!1&&Sl!==null?Ul=="array"?eu?Mo.a.createElement("span",Object.assign({},Qo(Us,"array-key"),{key:_l}),Mo.a.createElement("span",{className:"array-key"},_c),Mo.a.createElement("span",Qo(Us,"colon"),":")):Mo.a.createElement("span",null):Mo.a.createElement("span",Object.assign({},Qo(Us,"object-name"),{key:_l}),Mo.a.createElement("span",{className:"object-key"},$l&&Mo.a.createElement("span",{style:{verticalAlign:"top"}},'"'),Mo.a.createElement("span",null,_c),$l&&Mo.a.createElement("span",{style:{verticalAlign:"top"}},'"')),Mo.a.createElement("span",Qo(Us,"colon"),":")):Mo.a.createElement("span",null)}function b0(Ll){var Ul=Ll.theme;switch(Ll.iconStyle){case"triangle":return Mo.a.createElement(w1,Object.assign({},Qo(Ul,"expanded-icon"),{className:"expanded-icon"}));case"square":return Mo.a.createElement(Lu,Object.assign({},Qo(Ul,"expanded-icon"),{className:"expanded-icon"}));default:return Mo.a.createElement(ba,Object.assign({},Qo(Ul,"expanded-icon"),{className:"expanded-icon"}))}}function P1(Ll){var Ul=Ll.theme;switch(Ll.iconStyle){case"triangle":return Mo.a.createElement(Gu,Object.assign({},Qo(Ul,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return Mo.a.createElement(e1,Object.assign({},Qo(Ul,"collapsed-icon"),{className:"collapsed-icon"}));default:return Mo.a.createElement(fu,Object.assign({},Qo(Ul,"collapsed-icon"),{className:"collapsed-icon"}))}}var c1=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l($l){var Us;return go(this,_l),(Us=Ul.call(this,$l)).toggleCollapsed=function(Rl){var Sl=[];for(var eu in Us.state.expanded)Sl.push(Us.state.expanded[eu]);Sl[Rl]=!Sl[Rl],Us.setState({expanded:Sl})},Us.state={expanded:[]},Us}return yo(_l,[{key:"getExpandedIcon",value:function($l){var Us=this.props,Rl=Us.theme,Sl=Us.iconStyle;return this.state.expanded[$l]?Mo.a.createElement(b0,{theme:Rl,iconStyle:Sl}):Mo.a.createElement(P1,{theme:Rl,iconStyle:Sl})}},{key:"render",value:function(){var $l=this,Us=this.props,Rl=Us.src,Sl=Us.groupArraysAfterLength,eu=(Us.depth,Us.name),_c=Us.theme,zu=Us.jsvRoot,N1=Us.namespace,K0=(Us.parent_type,Do(Us,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),J0=0,S1=5*this.props.indentWidth;zu||(J0=5*this.props.indentWidth);var O1=Sl,r0=Math.ceil(Rl.length/O1);return Mo.a.createElement("div",Object.assign({className:"object-key-val"},Qo(_c,zu?"jsv-root":"objectKeyVal",{paddingLeft:J0})),Mo.a.createElement(x0,this.props),Mo.a.createElement("span",null,Mo.a.createElement(ap,Object.assign({size:Rl.length},this.props))),Xs(Array(r0)).map(function(I1,R0){return Mo.a.createElement("div",Object.assign({key:R0,className:"object-key-val array-group"},Qo(_c,"objectKeyVal",{marginLeft:6,paddingLeft:S1})),Mo.a.createElement("span",Qo(_c,"brace-row"),Mo.a.createElement("div",Object.assign({className:"icon-container"},Qo(_c,"icon-container"),{onClick:function(tu){$l.toggleCollapsed(R0)}}),$l.getExpandedIcon(R0)),$l.state.expanded[R0]?Mo.a.createElement(up,Object.assign({key:eu+R0,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:O1,index_offset:R0*O1,src:Rl.slice(R0*O1,R0*O1+O1),namespace:N1,type:"array",parent_type:"array_group",theme:_c},K0)):Mo.a.createElement("span",Object.assign({},Qo(_c,"brace"),{onClick:function(tu){$l.toggleCollapsed(R0)},className:"array-group-brace"}),"[",Mo.a.createElement("div",Object.assign({},Qo(_c,"array-group-meta-data"),{className:"array-group-meta-data"}),Mo.a.createElement("span",Object.assign({className:"object-size"},Qo(_c,"object-size")),R0*O1," - ",R0*O1+O1>Rl.length?Rl.length:R0*O1+O1)),"]")))}))}}]),_l}(Mo.a.PureComponent),V0=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l($l){var Us;go(this,_l),(Us=Ul.call(this,$l)).toggleCollapsed=function(){Us.setState({expanded:!Us.state.expanded},function(){ga.set(Us.props.rjvId,Us.props.namespace,"expanded",Us.state.expanded)})},Us.getObjectContent=function(Sl,eu,_c){return Mo.a.createElement("div",{className:"pushed-content object-container"},Mo.a.createElement("div",Object.assign({className:"object-content"},Qo(Us.props.theme,"pushed-content")),Us.renderObjectContents(eu,_c)))},Us.getEllipsis=function(){return Us.state.size===0?null:Mo.a.createElement("div",Object.assign({},Qo(Us.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:Us.toggleCollapsed}),"...")},Us.getObjectMetaData=function(Sl){var eu=Us.props,_c=(eu.rjvId,eu.theme,Us.state),zu=_c.size,N1=_c.hovered;return Mo.a.createElement(ap,Object.assign({rowHovered:N1,size:zu},Us.props))},Us.renderObjectContents=function(Sl,eu){var _c,zu=Us.props,N1=zu.depth,K0=zu.parent_type,J0=zu.index_offset,S1=zu.groupArraysAfterLength,O1=zu.namespace,r0=Us.state.object_type,I1=[],R0=Object.keys(Sl||{});return Us.props.sortKeys&&r0!=="array"&&(R0=R0.sort()),R0.forEach(function(tu){if(_c=new P0(tu,Sl[tu]),K0==="array_group"&&J0&&(_c.name=parseInt(_c.name)+J0),Sl.hasOwnProperty(tu))if(_c.type==="object")I1.push(Mo.a.createElement(up,Object.assign({key:_c.name,depth:N1+1,name:_c.name,src:_c.value,namespace:O1.concat(_c.name),parent_type:r0},eu)));else if(_c.type==="array"){var T2=up;S1&&_c.value.length>S1&&(T2=c1),I1.push(Mo.a.createElement(T2,Object.assign({key:_c.name,depth:N1+1,name:_c.name,src:_c.value,namespace:O1.concat(_c.name),type:"array",parent_type:r0},eu)))}else I1.push(Mo.a.createElement(k0,Object.assign({key:_c.name+"_"+O1,variable:_c,singleIndent:5,namespace:O1,type:Us.props.type},eu)))}),I1};var Rl=_l.getState($l);return Us.state=ho(ho({},Rl),{},{prevProps:{}}),Us}return yo(_l,[{key:"getBraceStart",value:function($l,Us){var Rl=this,Sl=this.props,eu=Sl.src,_c=Sl.theme,zu=Sl.iconStyle;if(Sl.parent_type==="array_group")return Mo.a.createElement("span",null,Mo.a.createElement("span",Qo(_c,"brace"),$l==="array"?"[":"{"),Us?this.getObjectMetaData(eu):null);var N1=Us?b0:P1;return Mo.a.createElement("span",null,Mo.a.createElement("span",Object.assign({onClick:function(K0){Rl.toggleCollapsed()}},Qo(_c,"brace-row")),Mo.a.createElement("div",Object.assign({className:"icon-container"},Qo(_c,"icon-container")),Mo.a.createElement(N1,{theme:_c,iconStyle:zu})),Mo.a.createElement(x0,this.props),Mo.a.createElement("span",Qo(_c,"brace"),$l==="array"?"[":"{")),Us?this.getObjectMetaData(eu):null)}},{key:"render",value:function(){var $l=this,Us=this.props,Rl=Us.depth,Sl=Us.src,eu=(Us.namespace,Us.name,Us.type,Us.parent_type),_c=Us.theme,zu=Us.jsvRoot,N1=Us.iconStyle,K0=Do(Us,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),J0=this.state,S1=J0.object_type,O1=J0.expanded,r0={};return zu||eu==="array_group"?eu==="array_group"&&(r0.borderLeft=0,r0.display="inline"):r0.paddingLeft=5*this.props.indentWidth,Mo.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return $l.setState(ho(ho({},$l.state),{},{hovered:!0}))},onMouseLeave:function(){return $l.setState(ho(ho({},$l.state),{},{hovered:!1}))}},Qo(_c,zu?"jsv-root":"objectKeyVal",r0)),this.getBraceStart(S1,O1),O1?this.getObjectContent(Rl,Sl,ho({theme:_c,iconStyle:N1},K0)):this.getEllipsis(),Mo.a.createElement("span",{className:"brace-row"},Mo.a.createElement("span",{style:ho(ho({},Qo(_c,"brace").style),{},{paddingLeft:O1?"3px":"0px"})},S1==="array"?"]":"}"),O1?null:this.getObjectMetaData(Sl)))}}],[{key:"getDerivedStateFromProps",value:function($l,Us){var Rl=Us.prevProps;return $l.src!==Rl.src||$l.collapsed!==Rl.collapsed||$l.name!==Rl.name||$l.namespace!==Rl.namespace||$l.rjvId!==Rl.rjvId?ho(ho({},_l.getState($l)),{},{prevProps:$l}):null}}]),_l}(Mo.a.PureComponent);V0.getState=function(Ll){var Ul=Object.keys(Ll.src).length,_l=(Ll.collapsed===!1||Ll.collapsed!==!0&&Ll.collapsed>Ll.depth)&&(!Ll.shouldCollapse||Ll.shouldCollapse({name:Ll.name,src:Ll.src,type:Uo(Ll.src),namespace:Ll.namespace})===!1)&&Ul!==0;return{expanded:ga.get(Ll.rjvId,Ll.namespace,"expanded",_l),object_type:Ll.type==="array"?"array":"object",parent_type:Ll.type==="array"?"array":"object",size:Ul,hovered:!1}};var P0=function Ll(Ul,_l){go(this,Ll),this.name=Ul,this.value=_l,this.type=Uo(_l)};Go(V0);var up=V0,Lp=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){var $l;go(this,_l);for(var Us=arguments.length,Rl=new Array(Us),Sl=0;Sleu.groupArraysAfterLength&&(zu=c1),Mo.a.createElement("div",{className:"pretty-json-container object-container"},Mo.a.createElement("div",{className:"object-content"},Mo.a.createElement(zu,Object.assign({namespace:_c,depth:0,jsvRoot:!0},eu))))},$l}return _l}(Mo.a.PureComponent),Mv=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l($l){var Us;return go(this,_l),(Us=Ul.call(this,$l)).closeModal=function(){Ps.dispatch({rjvId:Us.props.rjvId,name:"RESET"})},Us.submit=function(){Us.props.submit(Us.state.input)},Us.state={input:$l.input?$l.input:""},Us}return yo(_l,[{key:"render",value:function(){var $l=this,Us=this.props,Rl=Us.theme,Sl=Us.rjvId,eu=Us.isValid,_c=this.state.input,zu=eu(_c);return Mo.a.createElement("div",Object.assign({className:"key-modal-request"},Qo(Rl,"key-modal-request"),{onClick:this.closeModal}),Mo.a.createElement("div",Object.assign({},Qo(Rl,"key-modal"),{onClick:function(N1){N1.stopPropagation()}}),Mo.a.createElement("div",Qo(Rl,"key-modal-label"),"Key Name:"),Mo.a.createElement("div",{style:{position:"relative"}},Mo.a.createElement("input",Object.assign({},Qo(Rl,"key-modal-input"),{className:"key-modal-input",ref:function(N1){return N1&&N1.focus()},spellCheck:!1,value:_c,placeholder:"...",onChange:function(N1){$l.setState({input:N1.target.value})},onKeyPress:function(N1){zu&&N1.key==="Enter"?$l.submit():N1.key==="Escape"&&$l.closeModal()}})),zu?Mo.a.createElement(j0,Object.assign({},Qo(Rl,"key-modal-submit"),{className:"key-modal-submit",onClick:function(N1){return $l.submit()}})):null),Mo.a.createElement("span",Qo(Rl,"key-modal-cancel"),Mo.a.createElement(yp,Object.assign({},Qo(Rl,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Ps.dispatch({rjvId:Sl,name:"RESET"})}})))))}}]),_l}(Mo.a.PureComponent),$v=function(Ll){_o(_l,Ll);var Ul=Oo(_l);function _l(){var $l;go(this,_l);for(var Us=arguments.length,Rl=new Array(Us),Sl=0;Sl=0)&&(no[so]=eo[so]);return no}function _objectWithoutProperties(eo,to){if(eo==null)return{};var no=_objectWithoutPropertiesLoose$1(eo,to),io,so;if(Object.getOwnPropertySymbols){var ao=Object.getOwnPropertySymbols(eo);for(so=0;so=0)&&Object.prototype.propertyIsEnumerable.call(eo,io)&&(no[io]=eo[io])}return no}function _slicedToArray$1(eo,to){return _arrayWithHoles$1(eo)||_iterableToArrayLimit$1(eo,to)||_unsupportedIterableToArray$1(eo,to)||_nonIterableRest$1()}function _arrayWithHoles$1(eo){if(Array.isArray(eo))return eo}function _iterableToArrayLimit$1(eo,to){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(eo)))){var no=[],io=!0,so=!1,ao=void 0;try{for(var lo=eo[Symbol.iterator](),uo;!(io=(uo=lo.next()).done)&&(no.push(uo.value),!(to&&no.length===to));io=!0);}catch(ho){so=!0,ao=ho}finally{try{!io&&lo.return!=null&&lo.return()}finally{if(so)throw ao}}return no}}function _unsupportedIterableToArray$1(eo,to){if(eo){if(typeof eo=="string")return _arrayLikeToArray$1(eo,to);var no=Object.prototype.toString.call(eo).slice(8,-1);if(no==="Object"&&eo.constructor&&(no=eo.constructor.name),no==="Map"||no==="Set")return Array.from(eo);if(no==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(no))return _arrayLikeToArray$1(eo,to)}}function _arrayLikeToArray$1(eo,to){(to==null||to>eo.length)&&(to=eo.length);for(var no=0,io=new Array(to);no=eo.length?eo.apply(this,so):function(){for(var lo=arguments.length,uo=new Array(lo),ho=0;ho1&&arguments[1]!==void 0?arguments[1]:{};validators$1.initial(eo),validators$1.handler(to);var no={current:eo},io=curry$1(didStateUpdate)(no,to),so=curry$1(updateState)(no),ao=curry$1(validators$1.changes)(eo),lo=curry$1(extractChanges)(no);function uo(){var go=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(mo){return mo};return validators$1.selector(go),go(no.current)}function ho(go){compose$1(io,so,ao,lo)(go)}return[uo,ho]}function extractChanges(eo,to){return isFunction$2(to)?to(eo.current):to}function updateState(eo,to){return eo.current=_objectSpread2(_objectSpread2({},eo.current),to),to}function didStateUpdate(eo,to,no){return isFunction$2(to)?to(eo.current):Object.keys(no).forEach(function(io){var so;return(so=to[io])===null||so===void 0?void 0:so.call(to,eo.current[io])}),no}var index$1={create:create$2},config$6={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function curry(eo){return function to(){for(var no=this,io=arguments.length,so=new Array(io),ao=0;ao=eo.length?eo.apply(this,so):function(){for(var lo=arguments.length,uo=new Array(lo),ho=0;ho{io.current=!1}:eo,to)}var l$4=he$1;function D$4(){}function h$4(eo,to,no,io){return De$1(eo,io)||be$1(eo,to,no,io)}function De$1(eo,to){return eo.editor.getModel(te$1(eo,to))}function be$1(eo,to,no,io){return eo.editor.createModel(to,no,io?te$1(eo,io):void 0)}function te$1(eo,to){return eo.Uri.parse(to)}function Oe$1({original:eo,modified:to,language:no,originalLanguage:io,modifiedLanguage:so,originalModelPath:ao,modifiedModelPath:lo,keepCurrentOriginalModel:uo=!1,keepCurrentModifiedModel:ho=!1,theme:go="light",loading:mo="Loading...",options:yo={},height:So="100%",width:_o="100%",className:ko,wrapperProps:Co={},beforeMount:$o=D$4,onMount:Ro=D$4}){let[Oo,No]=reactExports.useState(!1),[Mo,Bo]=reactExports.useState(!0),Po=reactExports.useRef(null),Lo=reactExports.useRef(null),Go=reactExports.useRef(null),Do=reactExports.useRef(Ro),Uo=reactExports.useRef($o),Ho=reactExports.useRef(!1);k$3(()=>{let ps=loader$n.init();return ps.then(Qo=>(Lo.current=Qo)&&Bo(!1)).catch(Qo=>(Qo==null?void 0:Qo.type)!=="cancelation"&&console.error("Monaco initialization: error:",Qo)),()=>Po.current?Jo():ps.cancel()}),l$4(()=>{if(Po.current&&Lo.current){let ps=Po.current.getOriginalEditor(),Qo=h$4(Lo.current,eo||"",io||no||"text",ao||"");Qo!==ps.getModel()&&ps.setModel(Qo)}},[ao],Oo),l$4(()=>{if(Po.current&&Lo.current){let ps=Po.current.getModifiedEditor(),Qo=h$4(Lo.current,to||"",so||no||"text",lo||"");Qo!==ps.getModel()&&ps.setModel(Qo)}},[lo],Oo),l$4(()=>{let ps=Po.current.getModifiedEditor();ps.getOption(Lo.current.editor.EditorOption.readOnly)?ps.setValue(to||""):to!==ps.getValue()&&(ps.executeEdits("",[{range:ps.getModel().getFullModelRange(),text:to||"",forceMoveMarkers:!0}]),ps.pushUndoStop())},[to],Oo),l$4(()=>{var ps,Qo;(Qo=(ps=Po.current)==null?void 0:ps.getModel())==null||Qo.original.setValue(eo||"")},[eo],Oo),l$4(()=>{let{original:ps,modified:Qo}=Po.current.getModel();Lo.current.editor.setModelLanguage(ps,io||no||"text"),Lo.current.editor.setModelLanguage(Qo,so||no||"text")},[no,io,so],Oo),l$4(()=>{var ps;(ps=Lo.current)==null||ps.editor.setTheme(go)},[go],Oo),l$4(()=>{var ps;(ps=Po.current)==null||ps.updateOptions(yo)},[yo],Oo);let Yo=reactExports.useCallback(()=>{var hs;if(!Lo.current)return;Uo.current(Lo.current);let ps=h$4(Lo.current,eo||"",io||no||"text",ao||""),Qo=h$4(Lo.current,to||"",so||no||"text",lo||"");(hs=Po.current)==null||hs.setModel({original:ps,modified:Qo})},[no,to,so,eo,io,ao,lo]),qo=reactExports.useCallback(()=>{var ps;!Ho.current&&Go.current&&(Po.current=Lo.current.editor.createDiffEditor(Go.current,{automaticLayout:!0,...yo}),Yo(),(ps=Lo.current)==null||ps.editor.setTheme(go),No(!0),Ho.current=!0)},[yo,go,Yo]);reactExports.useEffect(()=>{Oo&&Do.current(Po.current,Lo.current)},[Oo]),reactExports.useEffect(()=>{!Mo&&!Oo&&qo()},[Mo,Oo,qo]);function Jo(){var Qo,hs,gs,ys;let ps=(Qo=Po.current)==null?void 0:Qo.getModel();uo||((hs=ps==null?void 0:ps.original)==null||hs.dispose()),ho||((gs=ps==null?void 0:ps.modified)==null||gs.dispose()),(ys=Po.current)==null||ys.dispose()}return React.createElement(H$2,{width:_o,height:So,isEditorReady:Oo,loading:mo,_ref:Go,className:ko,wrapperProps:Co})}var ie$3=Oe$1;reactExports.memo(ie$3);function He$1(eo){let to=reactExports.useRef();return reactExports.useEffect(()=>{to.current=eo},[eo]),to.current}var se$1=He$1,_$7=new Map;function Ve$1({defaultValue:eo,defaultLanguage:to,defaultPath:no,value:io,language:so,path:ao,theme:lo="light",line:uo,loading:ho="Loading...",options:go={},overrideServices:mo={},saveViewState:yo=!0,keepCurrentModel:So=!1,width:_o="100%",height:ko="100%",className:Co,wrapperProps:$o={},beforeMount:Ro=D$4,onMount:Oo=D$4,onChange:No,onValidate:Mo=D$4}){let[Bo,Po]=reactExports.useState(!1),[Lo,Go]=reactExports.useState(!0),Do=reactExports.useRef(null),Uo=reactExports.useRef(null),Ho=reactExports.useRef(null),Yo=reactExports.useRef(Oo),qo=reactExports.useRef(Ro),Jo=reactExports.useRef(),ps=reactExports.useRef(io),Qo=se$1(ao),hs=reactExports.useRef(!1),gs=reactExports.useRef(!1);k$3(()=>{let ks=loader$n.init();return ks.then(Os=>(Do.current=Os)&&Go(!1)).catch(Os=>(Os==null?void 0:Os.type)!=="cancelation"&&console.error("Monaco initialization: error:",Os)),()=>Uo.current?vs():ks.cancel()}),l$4(()=>{var Os,Ts,Xs,Ws;let ks=h$4(Do.current,eo||io||"",to||so||"",ao||no||"");ks!==((Os=Uo.current)==null?void 0:Os.getModel())&&(yo&&_$7.set(Qo,(Ts=Uo.current)==null?void 0:Ts.saveViewState()),(Xs=Uo.current)==null||Xs.setModel(ks),yo&&((Ws=Uo.current)==null||Ws.restoreViewState(_$7.get(ao))))},[ao],Bo),l$4(()=>{var ks;(ks=Uo.current)==null||ks.updateOptions(go)},[go],Bo),l$4(()=>{!Uo.current||io===void 0||(Uo.current.getOption(Do.current.editor.EditorOption.readOnly)?Uo.current.setValue(io):io!==Uo.current.getValue()&&(gs.current=!0,Uo.current.executeEdits("",[{range:Uo.current.getModel().getFullModelRange(),text:io,forceMoveMarkers:!0}]),Uo.current.pushUndoStop(),gs.current=!1))},[io],Bo),l$4(()=>{var Os,Ts;let ks=(Os=Uo.current)==null?void 0:Os.getModel();ks&&so&&((Ts=Do.current)==null||Ts.editor.setModelLanguage(ks,so))},[so],Bo),l$4(()=>{var ks;uo!==void 0&&((ks=Uo.current)==null||ks.revealLine(uo))},[uo],Bo),l$4(()=>{var ks;(ks=Do.current)==null||ks.editor.setTheme(lo)},[lo],Bo);let ys=reactExports.useCallback(()=>{var ks;if(!(!Ho.current||!Do.current)&&!hs.current){qo.current(Do.current);let Os=ao||no,Ts=h$4(Do.current,io||eo||"",to||so||"",Os||"");Uo.current=(ks=Do.current)==null?void 0:ks.editor.create(Ho.current,{model:Ts,automaticLayout:!0,...go},mo),yo&&Uo.current.restoreViewState(_$7.get(Os)),Do.current.editor.setTheme(lo),uo!==void 0&&Uo.current.revealLine(uo),Po(!0),hs.current=!0}},[eo,to,no,io,so,ao,go,mo,yo,lo,uo]);reactExports.useEffect(()=>{Bo&&Yo.current(Uo.current,Do.current)},[Bo]),reactExports.useEffect(()=>{!Lo&&!Bo&&ys()},[Lo,Bo,ys]),ps.current=io,reactExports.useEffect(()=>{var ks,Os;Bo&&No&&((ks=Jo.current)==null||ks.dispose(),Jo.current=(Os=Uo.current)==null?void 0:Os.onDidChangeModelContent(Ts=>{gs.current||No(Uo.current.getValue(),Ts)}))},[Bo,No]),reactExports.useEffect(()=>{if(Bo){let ks=Do.current.editor.onDidChangeMarkers(Os=>{var Xs;let Ts=(Xs=Uo.current.getModel())==null?void 0:Xs.uri;if(Ts&&Os.find(Ws=>Ws.path===Ts.path)){let Ws=Do.current.editor.getModelMarkers({resource:Ts});Mo==null||Mo(Ws)}});return()=>{ks==null||ks.dispose()}}return()=>{}},[Bo,Mo]);function vs(){var ks,Os;(ks=Jo.current)==null||ks.dispose(),So?yo&&_$7.set(ao,Uo.current.saveViewState()):(Os=Uo.current.getModel())==null||Os.dispose(),Uo.current.dispose()}return React.createElement(H$2,{width:_o,height:ko,isEditorReady:Bo,loading:ho,_ref:Ho,className:Co,wrapperProps:$o})}var fe$1=Ve$1,de$1=reactExports.memo(fe$1),Ft$1=de$1;const JinjaSyntaxHighlighter=({value:eo,theme:to,onMount:no})=>jsxRuntimeExports.jsx(Ft$1,{value:eo,theme:to,options:{readOnly:!0,minimap:{enabled:!1}},defaultLanguage:"jinja2",onMount:(io,so)=>{so.languages.register({id:"jinja2"}),so.languages.setLanguageConfiguration("jinja2",{comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["{","}"]],folding:{markers:{start:/\{%\s*(block|for|if)/,end:/\{%\s*end(block|for|if)/}}}),so.languages.setMonarchTokensProvider("jinja2",{tokenizer:{root:[[/\{\{/,"delimiter"],[/\}\}/,"delimiter"],[/\{#/,"comment"],[/#\}/,"comment"],[/\{%/,"control"],[/%\}/,"control"],[/\b(if|else|elif|endif|for|endfor|set|extends|include|block|endblock|macro|endmacro)\b/,"keyword"],[/\b(length|list|lower|upper|trim|truncate|replace|round|urlencode|urlize)\b/,"filter"],[/\b(\+|-|\*|\/|%|\*\*|\/\/)\b/,"operator"],[/\b(\d+|\d*\.\d+)\b/,"number"],[/(^user:|^# user:|^system:|^# system:|^assistant:|^# assistant:)/,"keyword"]]}}),no==null||no(io)}});mergeStyleSets({root:{},header:{display:"flex",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:"var(--vscode-editor-inactiveSelectionBackground)"}},toggleButton:{marginRight:"0.5em",userSelect:"none"},body:{overflowY:"hidden",height:"fit-content"}});const locStringsInjectionToken=createInjectionToken("locStrings",{}),useLocStrings=()=>{const[eo]=useInjected(locStringsInjectionToken);return eo};var BuildInEventName=(eo=>(eo.exception="exception",eo["function.inputs"]="promptflow.function.inputs",eo["function.output"]="promptflow.function.output",eo["embedding.embeddings"]="promptflow.embedding.embeddings",eo["retrieval.query"]="promptflow.retrieval.query",eo["retrieval.documents"]="promptflow.retrieval.documents",eo["llm.generated_message"]="promptflow.llm.generated_message",eo["prompt.template"]="promptflow.prompt.template",eo))(BuildInEventName||{});const EventNameToAttribute={"promptflow.function.inputs":"inputs","promptflow.function.output":"output"},safeJSONParse=eo=>{try{return JSON.parse(eo)}catch{return eo}},safeJSONParseV2=eo=>{try{return JSON.parse(eo)}catch{return eo}};function isJsonl(eo){return eo.split(` -`).every(no=>{try{return JSON.parse(no),!0}catch{return!1}})}const isValidJson=eo=>{if(typeof eo!="string")return!1;try{return JSON.parse(eo),!0}catch{return!1}};function formatDecimal(eo){return Math.abs(eo=Math.round(eo))>=1e21?eo.toLocaleString("en").replace(/,/g,""):eo.toString(10)}function formatDecimalParts(eo,to){if((no=(eo=to?eo.toExponential(to-1):eo.toExponential()).indexOf("e"))<0)return null;var no,io=eo.slice(0,no);return[io.length>1?io[0]+io.slice(2):io,+eo.slice(no+1)]}function exponent(eo){return eo=formatDecimalParts(Math.abs(eo)),eo?eo[1]:NaN}function formatGroup(eo,to){return function(no,io){for(var so=no.length,ao=[],lo=0,uo=eo[0],ho=0;so>0&&uo>0&&(ho+uo+1>io&&(uo=Math.max(1,io-ho)),ao.push(no.substring(so-=uo,so+uo)),!((ho+=uo+1)>io));)uo=eo[lo=(lo+1)%eo.length];return ao.reverse().join(to)}}function formatNumerals(eo){return function(to){return to.replace(/[0-9]/g,function(no){return eo[+no]})}}var re$2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(eo){if(!(to=re$2.exec(eo)))throw new Error("invalid format: "+eo);var to;return new FormatSpecifier({fill:to[1],align:to[2],sign:to[3],symbol:to[4],zero:to[5],width:to[6],comma:to[7],precision:to[8]&&to[8].slice(1),trim:to[9],type:to[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(eo){this.fill=eo.fill===void 0?" ":eo.fill+"",this.align=eo.align===void 0?">":eo.align+"",this.sign=eo.sign===void 0?"-":eo.sign+"",this.symbol=eo.symbol===void 0?"":eo.symbol+"",this.zero=!!eo.zero,this.width=eo.width===void 0?void 0:+eo.width,this.comma=!!eo.comma,this.precision=eo.precision===void 0?void 0:+eo.precision,this.trim=!!eo.trim,this.type=eo.type===void 0?"":eo.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(eo){e:for(var to=eo.length,no=1,io=-1,so;no0&&(io=0);break}return io>0?eo.slice(0,io)+eo.slice(so+1):eo}var prefixExponent;function formatPrefixAuto(eo,to){var no=formatDecimalParts(eo,to);if(!no)return eo+"";var io=no[0],so=no[1],ao=so-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(so/3)))*3)+1,lo=io.length;return ao===lo?io:ao>lo?io+new Array(ao-lo+1).join("0"):ao>0?io.slice(0,ao)+"."+io.slice(ao):"0."+new Array(1-ao).join("0")+formatDecimalParts(eo,Math.max(0,to+ao-1))[0]}function formatRounded(eo,to){var no=formatDecimalParts(eo,to);if(!no)return eo+"";var io=no[0],so=no[1];return so<0?"0."+new Array(-so).join("0")+io:io.length>so+1?io.slice(0,so+1)+"."+io.slice(so+1):io+new Array(so-io.length+2).join("0")}const formatTypes={"%":(eo,to)=>(eo*100).toFixed(to),b:eo=>Math.round(eo).toString(2),c:eo=>eo+"",d:formatDecimal,e:(eo,to)=>eo.toExponential(to),f:(eo,to)=>eo.toFixed(to),g:(eo,to)=>eo.toPrecision(to),o:eo=>Math.round(eo).toString(8),p:(eo,to)=>formatRounded(eo*100,to),r:formatRounded,s:formatPrefixAuto,X:eo=>Math.round(eo).toString(16).toUpperCase(),x:eo=>Math.round(eo).toString(16)};function identity$6(eo){return eo}var map$2=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(eo){var to=eo.grouping===void 0||eo.thousands===void 0?identity$6:formatGroup(map$2.call(eo.grouping,Number),eo.thousands+""),no=eo.currency===void 0?"":eo.currency[0]+"",io=eo.currency===void 0?"":eo.currency[1]+"",so=eo.decimal===void 0?".":eo.decimal+"",ao=eo.numerals===void 0?identity$6:formatNumerals(map$2.call(eo.numerals,String)),lo=eo.percent===void 0?"%":eo.percent+"",uo=eo.minus===void 0?"−":eo.minus+"",ho=eo.nan===void 0?"NaN":eo.nan+"";function go(yo){yo=formatSpecifier(yo);var So=yo.fill,_o=yo.align,ko=yo.sign,Co=yo.symbol,$o=yo.zero,Ro=yo.width,Oo=yo.comma,No=yo.precision,Mo=yo.trim,Bo=yo.type;Bo==="n"?(Oo=!0,Bo="g"):formatTypes[Bo]||(No===void 0&&(No=12),Mo=!0,Bo="g"),($o||So==="0"&&_o==="=")&&($o=!0,So="0",_o="=");var Po=Co==="$"?no:Co==="#"&&/[boxX]/.test(Bo)?"0"+Bo.toLowerCase():"",Lo=Co==="$"?io:/[%p]/.test(Bo)?lo:"",Go=formatTypes[Bo],Do=/[defgprs%]/.test(Bo);No=No===void 0?6:/[gprs]/.test(Bo)?Math.max(1,Math.min(21,No)):Math.max(0,Math.min(20,No));function Uo(Ho){var Yo=Po,qo=Lo,Jo,ps,Qo;if(Bo==="c")qo=Go(Ho)+qo,Ho="";else{Ho=+Ho;var hs=Ho<0||1/Ho<0;if(Ho=isNaN(Ho)?ho:Go(Math.abs(Ho),No),Mo&&(Ho=formatTrim(Ho)),hs&&+Ho==0&&ko!=="+"&&(hs=!1),Yo=(hs?ko==="("?ko:uo:ko==="-"||ko==="("?"":ko)+Yo,qo=(Bo==="s"?prefixes[8+prefixExponent/3]:"")+qo+(hs&&ko==="("?")":""),Do){for(Jo=-1,ps=Ho.length;++JoQo||Qo>57){qo=(Qo===46?so+Ho.slice(Jo+1):Ho.slice(Jo))+qo,Ho=Ho.slice(0,Jo);break}}}Oo&&!$o&&(Ho=to(Ho,1/0));var gs=Yo.length+Ho.length+qo.length,ys=gs>1)+Yo+Ho+qo+ys.slice(gs);break;default:Ho=ys+Yo+Ho+qo;break}return ao(Ho)}return Uo.toString=function(){return yo+""},Uo}function mo(yo,So){var _o=go((yo=formatSpecifier(yo),yo.type="f",yo)),ko=Math.max(-8,Math.min(8,Math.floor(exponent(So)/3)))*3,Co=Math.pow(10,-ko),$o=prefixes[8+ko/3];return function(Ro){return _o(Co*Ro)+$o}}return{format:go,formatPrefix:mo}}var locale$1,format$1,formatPrefix;defaultLocale$1({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale$1(eo){return locale$1=formatLocale$1(eo),format$1=locale$1.format,formatPrefix=locale$1.formatPrefix,locale$1}function precisionFixed(eo){return Math.max(0,-exponent(Math.abs(eo)))}function precisionPrefix(eo,to){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(to)/3)))*3-exponent(Math.abs(eo)))}function precisionRound(eo,to){return eo=Math.abs(eo),to=Math.abs(to)-eo,Math.max(0,exponent(to)-exponent(eo))+1}function formatInt(eo){return Math.abs(eo)<1e6?format$1(",")(eo):format$1("0.2s")(eo)}function formatFloat(eo){const to=Math.abs(eo);return to===0?"0.00":to<.01?format$1(".2e")(eo):to<1e3?format$1("0.2f")(eo):format$1("0.2s")(eo)}function formatNumber$1(eo){return Number.isInteger(eo)?formatInt(eo):formatFloat(eo)}function createNumberFormatter(eo){return to=>typeof to!="number"?"--":eo(to)}const intFormatter=createNumberFormatter(formatInt),floatFormatter=createNumberFormatter(formatFloat),timeFormat$1=eo=>(eo&&!eo.endsWith("Z")&&(eo+="Z"),eo?new Date(eo).toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):"--"),latencyFormatInMS=eo=>{if(eo===void 0||eo<0)return"N/A";if(eo<6e4)return format$1(".3f")(eo/1e3)+"s";{const to=Math.floor(eo/6e4);eo%=6e4;const no=eo/1e3;return`${to}min ${Math.floor(no)}s`}},parseHttpSpanAttributes=eo=>{var io;const to=eo==null?void 0:eo.attributes;if(!to||((io=to.span_type)==null?void 0:io.toLowerCase())!=="http")return;const no={response:{headers:{}},request:{headers:{}}};return Object.entries(to).forEach(([so,ao])=>{const lo=so.toLowerCase();if(lo==="url.full"){no.urlFull=ao;return}const[uo,ho,go,...mo]=lo.split(".");if(uo==="http")switch(ho){case"request":go==="header"?no.request.headers[mo.join(".")]=ao:no.request[[go,...mo].join(".")]=ao;break;case"response":go==="header"?no.response.headers[mo.join(".")]=ao:no.response[[go,...mo].join(".")]=ao;break;case"status_code":no.status_code=ao;break;case"method":no.method=ao;break;default:no[so.substring(5)]=ao}}),no},convertToTraceListRow=eo=>{var no,io,so;const to=eo.end_time&&eo.start_time?Date.parse(eo.end_time)-Date.parse(eo.start_time):0;return{...eo,latency:to,total_tokens:(no=eo==null?void 0:eo.cumulative_token_count)==null?void 0:no.total,prompt_tokens:(io=eo==null?void 0:eo.cumulative_token_count)==null?void 0:io.prompt,completion_tokens:(so=eo==null?void 0:eo.cumulative_token_count)==null?void 0:so.completion}};var AutoRefreshInterval=(eo=>(eo.OFF="OFF",eo["30s"]="30s",eo["1m"]="1m",eo["5m"]="5m",eo["10m"]="10m",eo))(AutoRefreshInterval||{});const AUTO_REFRESH_LIST=["OFF","30s","1m","5m"],REFRESH_INTERVAL_MAP={OFF:0,"30s":3e4,"1m":6e4,"5m":3e5,"10m":6e5};var _a$3;const initialTableColumnNames={normalColumns:[],evaluationColumns:[]};var ViewStatus=(eo=>(eo.loading="loading",eo.loaded="loaded",eo.error="error",eo.hidden="hidden",eo))(ViewStatus||{});const eDe=class eDe{constructor(to){this.selectedSpanId$=new State$2(void 0),this.selectedTraceId$=new State$2(void 0),this.selectedLLMMessage$=new State$2(void 0),this.spans$=new ObservableMap,this.traces$=new ObservableOrderedMap,this.tableColumnNames$=new State$2(initialTableColumnNames),this.tableHiddenColumnKeys$=new State$2([]),this.isTraceDetailOpen$=new State$2(!1),this.isGanttChartOpen$=new State$2(!1),this.showTraceDetailRightPanel$=new State$2(!0),this.traceListStatus$=new State$2("loading"),this.traceDetailStatus$=new State$2("loading"),this.traceListShowMetrics$=new State$2(!0),this.traceFilterChanged$=new State$2(!1),this.messagesBySpanId$=new ObservableOrderedMap,this.sortColumn$=new State$2(void 0),this.sortableColumns=[],this.traceDetailHistoryTraceList$=new State$2([]),this.traceDetailEvaluationTraces$=new ObservableMap,this.loadSummariesError$=new State$2(void 0),this.traceListAutoRefreshInterval$=new State$2(AutoRefreshInterval.OFF),this.isLazyLoadSpan=!0,this.spanEventsLoadStatus$=new ObservableMap,this.spanRawJsonLoadCache$=new ObservableMap;const{traceListConfig:no,spanConfig:io}=to||{};no&&(this.traceListColumnModifier=no.columnModifier,no.showMetrics!==void 0&&this.traceListShowMetrics$.setState(no.showMetrics),no.defaultHiddenColumnKeys!==void 0&&this.tableHiddenColumnKeys$.setState(no.defaultHiddenColumnKeys),no.sortableColumns&&(this.sortableColumns=no.sortableColumns)),io&&(this._fetchSpanEvent=io.fetchSpanEvent,this.isLazyLoadSpan=io.isLazyLoadSpan??!0),this.selectedTrace$=Computed$1.fromStates([this.selectedTraceId$,this.traces$],([so,ao])=>so&&ao.get(so)||void 0),this.selectedTraceId$.subscribe(so=>{var lo;if(!so)return;const ao=this.traces$.get(so);(lo=this._traceDetailDidOpenCallback)==null||lo.call(this,so,ao)}),this.isTraceDetailOpen$.subscribe(so=>{var uo;const ao=this.selectedTraceId$.getSnapshot(),lo=this.selectedTrace$.getSnapshot();!so&&ao&&((uo=this._traceDetailDidCloseCallback)==null||uo.call(this,ao,lo),this.clearDetail())}),this.sortColumn$.subscribe(so=>{var ao;(ao=this._traceListSortColumnDidChangeCallback)==null||ao.call(this,so)}),this.traceDetailTitle$=Computed$1.fromStates([this.selectedTraceId$,this.traces$],([so,ao])=>{if(!so)return"";const lo=ao.get(so);return(lo==null?void 0:lo.name)??""})}traceDetailDidOpen(to){this._traceDetailDidOpenCallback=to}traceDetailDidClose(to){this._traceDetailDidCloseCallback=to}onTraceDetailCopyUrl(to){this._traceDetailCopyUrlCallback=to}traceListSortColumnDidChange(to){this._traceListSortColumnDidChangeCallback=to}onRefreshSpans(to){this._refreshSpansCallback=to}setOnRefreshTraces(to){this._refreshTracesCallback=to}traceDetailCopyUrl(){const to=this.selectedTraceId$.getSnapshot(),no=this.selectedTrace$.getSnapshot();return to&&this._traceDetailCopyUrlCallback?(this._traceDetailCopyUrlCallback(to,no),!0):!1}refreshSpans(){var io;const to=this.selectedTraceId$.getSnapshot(),no=this.selectedTrace$.getSnapshot();to&&(this.spanEventsLoadStatus$.clear(),this.spanRawJsonLoadCache$.clear(),(io=this._refreshSpansCallback)==null||io.call(this,to,no))}refreshTraces(){var to;(to=this._refreshTracesCallback)==null||to.call(this)}clear(){this.traces$.clear(),this.spans$.clear()}clearDetail(){this.traceDetailStatus$.setState("hidden"),this.isGanttChartOpen$.setState(!1),this.selectedTraceId$.setState(void 0),this.selectedLLMMessage$.next(void 0),this.spanEventsLoadStatus$.clear(),this.spanRawJsonLoadCache$.clear(),this.clearDetailHistoryTrace()}clearDetailHistoryTrace(){this.traceDetailHistoryTraceList$.next([]);const to=this.traceDetailEvaluationTraces$.getSnapshot().keys();for(const no of to){const io=this.traces$.get(no);io&&io.__is_ui_evaluation__&&this.traces$.delete(no)}this.traceDetailEvaluationTraces$.clear()}appendTraces(to,no){to.forEach(io=>{if(io.trace_id!==void 0){const so=this.traces$.get(io.trace_id);(so&&so.__is_ui_evaluation__||!so&&this.traceDetailEvaluationTraces$.get(io.trace_id))&&(io.__is_ui_evaluation__=!0),no?this.traces$.set(io.trace_id,io).sortByValue(no):this.traces$.set(io.trace_id,io)}})}appendSpans(to){!to||!Array.isArray(to)||to.forEach(no=>{var ho,go;const io=(ho=no==null?void 0:no.context)==null?void 0:ho.trace_id,so=(go=no==null?void 0:no.context)==null?void 0:go.span_id;if(!io||!so)return;const ao=this.spans$.get(io)||new ObservableOrderedMap,lo=this.spanEventsLoadStatus$.getSnapshot().keys(),uo=this.spanRawJsonLoadCache$.getSnapshot().keys();this.spanEventsLoadStatus$.deleteAll(Array.from(lo).filter(mo=>mo.includes(so))),this.spanRawJsonLoadCache$.deleteAll(Array.from(uo).filter(mo=>mo.includes(so))),this.spans$.set(io,ao.set(so,no))})}toggleIsGanttChartOpen(){this.isGanttChartOpen$.setState(!this.isGanttChartOpen$.getSnapshot())}getTraceById(to){return to?this.traces$.get(to):void 0}setTraceListStatus(to){this.traceListStatus$.setState(to),to!=="error"&&this.loadSummariesError$.setState(void 0)}setTraceDetailStatus(to){this.traceDetailStatus$.setState(to)}setTraceDetailOpen(to,no){this.isTraceDetailOpen$.setState(to),this.selectedTraceId$.setState(to?no:void 0)}sortTraces(to){this.traces$.sortByValue(to)}fetchSpanEvent(to){var no;return((no=this._fetchSpanEvent)==null?void 0:no.call(this,to))??Promise.resolve({status:"success"})}detailNavigateTo(to,no){if(no!==void 0){const ao=this.traceDetailHistoryTraceList$.getSnapshot().slice(0,no);this.traceDetailHistoryTraceList$.setState(ao),this.selectedTraceId$.setState(to.trace_id);return}const io=this.selectedTrace$.getSnapshot();io&&this.traceDetailHistoryTraceList$.setState([...this.traceDetailHistoryTraceList$.getSnapshot(),io]),to.trace_id&&this.traceDetailEvaluationTraces$.set(to.trace_id,!0),this.selectedTraceId$.setState(to.trace_id)}};_a$3=SINGLETON,eDe[_a$3]=!0;let TraceViewModel=eDe;const TraceViewModelToken=createInjectionToken("TraceViewModel",new TraceViewModel),useLoadSpanEvents=(eo,to,no)=>{const io=useTraceViewModel(),so=useSpanEventsLoadStatus();return reactExports.useMemo(()=>createLoadSpanEvents(io,so,eo,to,no),[io,so,eo,to,no])},createLoadSpanEvents=(eo,to,no,io,so)=>{const ao=(lo,uo,ho)=>{var mo;const{data:go}=lo;if((mo=uo.events)!=null&&mo[ho]){const yo=typeof go=="string"?safeJSONParseV2(go):go;typeof yo=="object"&&(yo.name=uo.events[ho].name??"",uo.events[ho]=yo)}};return({onCompleted:lo,forceRefresh:uo})=>{var go,mo,yo,So;if(!((go=no==null?void 0:no.events)!=null&&go.length)||!eo.isLazyLoadSpan){lo();return}if(so!==void 0){const _o=(mo=no.external_event_data_uris)==null?void 0:mo[so];if(!_o){lo();return}const ko=`${(yo=no.context)==null?void 0:yo.span_id}__${_o}`;if(to.get(ko)==="success"){lo();return}if(!uo&&to.has(ko)){lo(to.get(ko)==="error"?new Error("load error"):void 0);return}eo.fetchSpanEvent(_o).then(Co=>{Co.status==="error"?(to.set(ko,"error"),lo(new Error("load error"))):(ao(Co,no,so),to.set(ko,"success"),lo())});return}const ho=`${(So=no.context)==null?void 0:So.span_id}__${io}`;if(!uo&&to.has(ho)){lo(to.get(ho)==="error"?new Error("load error"):void 0);return}Promise.all(no.events.map((_o,ko)=>{var Co,$o;if(_o.name===io){const Ro=(Co=no.external_event_data_uris)==null?void 0:Co[ko];if(!Ro)return Promise.resolve({status:"success"});const Oo=`${($o=no.context)==null?void 0:$o.span_id}__${Ro}`;return to.get(Oo)==="success"?Promise.resolve({status:"success"}):!uo&&to.has(Oo)?Promise.resolve({status:to.get(Oo)==="error"?"error":"success"}):eo.fetchSpanEvent(Ro).then(No=>(No.status==="error"?to.set(Oo,"error"):(ao(No,no,ko),to.set(Oo,"success")),No))}}).filter(_o=>_o!==void 0)).then(_o=>{if(_o.some(ko=>(ko==null?void 0:ko.status)==="error")){to.set(ho,"error"),lo(new Error("load error"));return}to.set(ho,"success"),lo()})}},getSpanEventsWithPayload=(eo,to)=>{var no;return((no=eo==null?void 0:eo.events)==null?void 0:no.filter(io=>io.name===to).map(io=>{var so;return{...io,attributes:safeJSONParse(((so=io.attributes)==null?void 0:so.payload)??"")}}))??[]},useLoadSpans=(eo,to)=>{const no=useTraceViewModel(),io=useSpanEventsLoadStatus(),so=[];for(const uo of eo)if(uo!==void 0)for(const ho of to)so.push(createLoadSpanEvents(no,io,uo,ho));const ao=reactExports.useMemo(()=>eo,[...eo]),lo=reactExports.useMemo(()=>to.join(","),[to]);return reactExports.useMemo(()=>({onCompleted:uo,forceRefresh:ho})=>{Promise.all(so.map(go=>new Promise((mo,yo)=>{go({onCompleted:So=>{if(So){yo();return}mo(void 0)},forceRefresh:ho})}))).then(()=>{uo()}).catch(()=>{uo(new Error("load error"))})},[ao,lo])},useFetchSpanRawJson=eo=>{const to=useTraceViewModel(),no=useSpanRawJsonLoadCache();return reactExports.useMemo(()=>{const io=eo==null?void 0:eo.span_json_uri;return({onCompleted:so})=>{var uo;if(!io){so(void 0,void 0);return}const ao=`${(uo=eo==null?void 0:eo.context)==null?void 0:uo.span_id}__${io}`,lo=no.get(ao);if(lo){so(void 0,lo);return}to.fetchSpanEvent(io).then(ho=>{ho.status==="success"?(no.set(ao,ho.data),so(void 0,ho.data)):so(new Error("load error"))})}},[to,no,eo])},useTraceViewModel=()=>{const[eo]=useInjected(TraceViewModelToken);return eo},useSelectedSpanId=()=>{const eo=useTraceViewModel();return useState(eo.selectedSpanId$)},useSelectedSpan=()=>{var io;const eo=useTraceViewModel(),to=useSelectedSpanId(),no=useSelectedTraceId();if(!(!to||!no))return(io=eo.spans$.get(no))==null?void 0:io.get(to)},useParentSpanOfSelectedSpan=()=>{var io;const eo=useTraceViewModel(),to=useSelectedTraceId(),no=useSelectedSpan();if(!(!no||!to||!no.parent_id))return(io=eo.spans$.get(to))==null?void 0:io.get(no.parent_id)},useSetSelectedSpanId=()=>useSetState(useTraceViewModel().selectedSpanId$),useSelectedTraceId=()=>useState(useTraceViewModel().selectedTraceId$),useSetSelectedTraceId=()=>useSetState(useTraceViewModel().selectedTraceId$),useSelectedTrace=()=>{const eo=useTraceViewModel();return useState(eo.selectedTrace$)},useSpansOfSelectedTrace=()=>{const eo=useTraceViewModel(),to=useSelectedTraceId(),no=useState(eo.spans$.get(to??"")??new ObservableOrderedMap);return Array.from(no.values())},useTraces=()=>{const eo=useState(useTraceViewModel().traces$);return reactExports.useMemo(()=>Array.from(eo.values()).filter(to=>!to.__is_ui_evaluation__),[eo])},useTraceNavigation=()=>{var mo;const eo=useTraceViewModel(),to=useTraces(),no=useSelectedTraceId(),so=((mo=useTraceDetailHistoryTraces()[0])==null?void 0:mo.trace_id)??no,ao=to.findIndex(yo=>yo.trace_id===so),lo=ao>0,uo=ao{lo&&(eo.clearDetailHistoryTrace(),eo.selectedTraceId$.setState(to[ao-1].trace_id))},[lo,ao,to,eo]),go=reactExports.useCallback(()=>{uo&&(eo.clearDetailHistoryTrace(),eo.selectedTraceId$.setState(to[ao+1].trace_id))},[uo,ao,to,eo]);return{hasPreviousTrace:lo,hasNextTrace:uo,goToPreviousTrace:ho,goToNextTrace:go}},useEvaluationSpansOfSelectedSpan=()=>{const eo=useTraceViewModel(),to=[],no=useSelectedTrace();return no?(Object.keys(no.evaluations??[]).forEach(io=>{var ao,lo;const so=(ao=no==null?void 0:no.evaluations)==null?void 0:ao[io];if(so){const uo=Array.from(((lo=eo.spans$.get(so.trace_id??""))==null?void 0:lo.getState().values())??[]);to.push({evaluationName:so.name??io,evaluationTraces:uo})}}),to):[]},useRootSpanIdOfSelectedSpans=()=>{const eo=useSelectedTrace();return eo==null?void 0:eo.root_span_id},useTableColumnNames=()=>useState(useTraceViewModel().tableColumnNames$),useSetTableColumnNames=()=>useSetState(useTraceViewModel().tableColumnNames$),useTableHiddenColumnKeys=()=>useState(useTraceViewModel().tableHiddenColumnKeys$),useSetTableHiddenColumnKeys=()=>useSetState(useTraceViewModel().tableHiddenColumnKeys$),useIsTraceDetailOpen=()=>useState(useTraceViewModel().isTraceDetailOpen$),useSetIsTraceDetailOpen=()=>useSetState(useTraceViewModel().isTraceDetailOpen$),useShowTraceDetailRightPanel=()=>useState(useTraceViewModel().showTraceDetailRightPanel$),useSetShowTraceDetailRightPanel=()=>useSetState(useTraceViewModel().showTraceDetailRightPanel$),useTraceDetailRefreshKey=()=>{const eo=useTraceViewModel(),to=useSelectedTraceId(),no=useState(eo.spans$),io=Array.from(useState(no.get(to??"")??new ObservableOrderedMap).keys());return`${to}-${io.join("-")}`},useIsGanttChartOpen=()=>useState(useTraceViewModel().isGanttChartOpen$),useTraceListColumnModifier=()=>useTraceViewModel().traceListColumnModifier,useTraceListShowMetrics=()=>useState(useTraceViewModel().traceListShowMetrics$),useTraceFilterChanged=()=>useState(useTraceViewModel().traceFilterChanged$),useSetTraceFilterChanged=()=>useSetState(useTraceViewModel().traceFilterChanged$),getSpanMessages=(eo,to,no)=>{var _o,ko,Co,$o,Ro;const io=to?(_o=eo.spans$.get(to))==null?void 0:_o.get(no):void 0,so=getSpanEventsWithPayload(io,BuildInEventName["function.inputs"])[0],ao=getSpanEventsWithPayload(io,BuildInEventName["function.output"])[0],lo=getSpanEventsWithPayload(io,BuildInEventName["llm.generated_message"])[0];if(!to)return{inputMessages:[],outputMessages:[],tools:[]};const uo=so?so.attributes:safeJSONParse(((ko=io==null?void 0:io.attributes)==null?void 0:ko.inputs)??"{}"),ho=(Co=io==null?void 0:io.attributes)==null?void 0:Co["llm.generated_message"],go=(lo==null?void 0:lo.attributes)??(ho?safeJSONParse(ho):void 0),mo=(uo==null?void 0:uo.tools)??[],yo=(uo==null?void 0:uo.messages)??[];let So=[];if(go)typeof go=="string"?So=[{content:go,role:"",tools:mo}]:So=[go].map(Oo=>({...Oo,tools:mo}));else{const Oo=ao?ao.attributes:safeJSONParse((($o=io==null?void 0:io.attributes)==null?void 0:$o.output)??"{}");So=((Ro=Oo==null?void 0:Oo.choices)==null?void 0:Ro.reduce((No,Mo)=>Mo.message?[...No,{...Mo.message,tools:mo}]:Mo.text?[...No,{content:Mo.text,role:"",tools:mo}]:No,[]))??[]}return{inputMessages:yo,outputMessages:So,tools:mo}},useMessagesBySpanId=eo=>{const to=useTraceViewModel(),no=useState(to.selectedTraceId$);return getSpanMessages(to,no,eo)},useMessagesOfSelectedSpan=()=>{const eo=useSelectedSpanId();return useMessagesBySpanId(eo??"")},useGetAllTraces=()=>{const eo=useTraceViewModel();return reactExports.useCallback(()=>Array.from(eo.traces$.getState().values()),[eo.traces$])},useGetAllSpans=()=>{const eo=useTraceViewModel();return reactExports.useCallback(()=>{const to=[];return eo.spans$.getState().forEach(io=>{io.getState().forEach(ao=>{to.push(ao)})}),to},[eo.spans$])},useSortColumn=()=>{const eo=useTraceViewModel();return useState(eo.sortColumn$)},useSetSortColumn=()=>useSetState(useTraceViewModel().sortColumn$),useSortableColumns=()=>useTraceViewModel().sortableColumns,useSelectedTraceTitle=()=>useState(useTraceViewModel().traceDetailTitle$),useSpanEventsLoadStatus=()=>useTraceViewModel().spanEventsLoadStatus$,useSpanRawJsonLoadCache=()=>useTraceViewModel().spanRawJsonLoadCache$,useIsLazyLoadSpan=()=>useTraceViewModel().isLazyLoadSpan,useSelectedLLMMessage=()=>{const eo=useTraceViewModel();return useState(eo.selectedLLMMessage$)},useSetSelectedLLMMessage=()=>{const eo=useTraceViewModel();return useSetState(eo.selectedLLMMessage$)},useTraceDetailHistoryTraces=()=>{const eo=useTraceViewModel();return useState(eo.traceDetailHistoryTraceList$)},useGetTraceByLineRunId=()=>{const eo=useTraces();return reactExports.useCallback(to=>eo.find(no=>no.line_run_id===to),[eo])},useLoadSummariesError=()=>useState(useTraceViewModel().loadSummariesError$),useSetLoadSummariesError=()=>useSetState(useTraceViewModel().loadSummariesError$),useTraceListAutoRefreshInterval=()=>useState(useTraceViewModel().traceListAutoRefreshInterval$),useSetTraceListAutoRefreshInterval=()=>useSetState(useTraceViewModel().traceListAutoRefreshInterval$),StreamSwitcher=({isStreaming:eo,style:to,onIsStreamingChange:no,labelName:io})=>{const so=useLocStrings();return jsxRuntimeExports.jsx(Switch,{label:io||so.Streaming,labelPosition:"before",checked:eo,onChange:(ao,lo)=>no(lo.checked),style:to})};var UISize=(eo=>(eo.extraSmall="extra-small",eo.small="small",eo.normal="normal",eo.large="large",eo))(UISize||{});const genStatusChecker=eo=>to=>to===void 0?!1:to.toLowerCase()===eo.toLowerCase(),checkStatus=(eo,to)=>eo===void 0?!1:eo.toLowerCase()===to.toLowerCase(),useUISize=eo=>{const{textSize:to,iconSize:no,gap:io}=reactExports.useMemo(()=>{switch(eo){case UISize.extraSmall:return{textSize:200,iconSize:"12px",gap:"2px"};case UISize.small:return{textSize:300,iconSize:"16px",gap:"2px"};case UISize.large:return{textSize:500,iconSize:"26px",gap:"5px"};case UISize.normal:default:return{textSize:400,iconSize:"20px",gap:"5px"}}},[eo]);return{textSize:to,iconSize:no,gap:io}},LatencyText=({startTimeISOString:eo,endTimeISOString:to,size:no,tipTextSize:io,isLoading:so=!1})=>{const ao=useClasses$D(),lo=eo?new Date(eo):void 0,uo=to?new Date(to):void 0,ho=lo&&uo?uo.getTime()-lo.getTime():void 0,go=latencyFormatInMS(ho),{textSize:mo,iconSize:yo,gap:So}=useUISize(no);return jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Text$2,{size:io,weight:"bold",block:!0,children:"Start Time"}),jsxRuntimeExports.jsx(Text$2,{size:io,block:!0,children:timeFormat$1(eo)}),jsxRuntimeExports.jsx(Text$2,{size:io,weight:"bold",block:!0,children:"End Time"}),jsxRuntimeExports.jsx(Text$2,{size:io,block:!0,children:timeFormat$1(to)})]}),relationship:"label",children:jsxRuntimeExports.jsxs("div",{className:ao.wrapper,style:{gap:So},children:[jsxRuntimeExports.jsx(Clock20Regular,{style:{height:yo,width:yo}}),so?jsxRuntimeExports.jsx(SkeletonItem,{style:{width:yo,height:yo}}):jsxRuntimeExports.jsx(Text$2,{size:mo,className:ao.text,children:go})]})})},useClasses$D=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center"},text:{color:tokens$1.colorNeutralForeground3,fontWeight:600,whiteSpace:"nowrap"}}),MetricTag=({tag:eo,maxValueLength:to=20})=>{const no=useClasses$C(),[io,so]=React.useState(!0),ao=reactExports.useMemo(()=>{if(typeof eo.value=="number")return formatNumber$1(eo.value);{const lo=eo.value.toString();return io&&lo.length>to?lo.substring(0,to)+"...":lo}},[eo.value,io,to]);return jsxRuntimeExports.jsxs(Badge$2,{className:no.wrapper,size:"medium",shape:"rounded",appearance:"outline",onClick:()=>so(!io),children:[jsxRuntimeExports.jsxs("span",{className:no.name,children:[eo.name," "]}),jsxRuntimeExports.jsx("span",{className:no.data,children:ao})]})},useClasses$C=makeStyles({wrapper:{display:"inline-flex",fontSize:"12px",cursor:"pointer",...shorthands.padding("0px","8px","1px"),...shorthands.borderColor(tokens$1.colorPaletteGreenBorder2),...shorthands.gap("0.5rem")},name:{color:tokens$1.colorPaletteGreenBorder2,fontWeight:tokens$1.fontWeightRegular},data:{color:tokens$1.colorNeutralForeground1,fontWeight:tokens$1.fontWeightRegular}});function TokenText({token:eo,info:to,size:no=UISize.normal,isLoading:io=!1}){const so=useClasses$B(),ao=typeof eo=="number"?intFormatter(eo):eo,{textSize:lo,iconSize:uo,gap:ho}=useUISize(no),go=io?jsxRuntimeExports.jsx(SkeletonItem,{style:{width:uo,height:uo}}):jsxRuntimeExports.jsx(Text$2,{size:lo,className:so.text,children:ao});return jsxRuntimeExports.jsxs("div",{className:so.wrapper,style:{gap:ho},children:[jsxRuntimeExports.jsx(NumberCircle020Regular,{style:{height:uo,width:uo}}),to?jsxRuntimeExports.jsx(Tooltip,{content:to,relationship:"description",children:go}):go]})}const useClasses$B=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},text:{color:tokens$1.colorNeutralForeground3,fontWeight:600}}),NodeToken=({span:eo,showDetail:to=!0,size:no})=>{const{"llm.usage.total_tokens":io,"llm.usage.prompt_tokens":so,"llm.usage.completion_tokens":ao}=eo.attributes||{};return io===void 0?null:jsxRuntimeExports.jsx(TokenText,{token:io,size:no,info:to?jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:6},children:[jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Total tokens",value:io}}),jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Prompt tokens",value:so??0}}),jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Completion tokens",value:ao??0}})]}):void 0})},SummaryToken=({trace:eo,showDetail:to=!0,size:no,isLoading:io=!1})=>{const{total_tokens:so,prompt_tokens:ao,completion_tokens:lo}=eo;return so===void 0?null:jsxRuntimeExports.jsx(TokenText,{token:so,size:no,isLoading:io,info:to?jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:6},children:[jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Total tokens",value:so}}),ao!==void 0&&jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Prompt tokens",value:ao}}),lo!==void 0&&jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Completion tokens",value:lo}})]}):void 0})},getStatusTextByStatusCode=eo=>(eo==null?void 0:eo.toLowerCase())==="ok"||(eo==null?void 0:eo.toLowerCase())==="completed"?"Completed":eo||"unknown";function StatusText({statusCode:eo,showText:to=!1,size:no,tooltipContent:io}){const so=useClasses$A(),ao=getStatusTextByStatusCode(eo),{textSize:lo,iconSize:uo,gap:ho}=useUISize(no),go=reactExports.useMemo(()=>({width:uo,height:uo}),[uo]),[mo,yo]=reactExports.useMemo(()=>{switch(eo==null?void 0:eo.toLowerCase()){case"ok":case"completed":return[jsxRuntimeExports.jsx(CheckmarkCircle20Filled,{style:go},"ok"),tokens$1.colorPaletteGreenForeground1];case"error":return[jsxRuntimeExports.jsx(DismissCircle20Filled,{style:go},"error"),tokens$1.colorPaletteRedForeground1];case"unset":return[jsxRuntimeExports.jsx(ErrorCircle20Filled,{style:go},"unset"),tokens$1.colorPaletteYellowForeground1];case"running":return[jsxRuntimeExports.jsx(ArrowClockwiseDashes20Filled,{className:so.rotate,style:go},"running"),tokens$1.colorPaletteYellowForeground1];default:return[jsxRuntimeExports.jsx(QuestionCircle20Filled,{},"unknown"),tokens$1.colorPaletteYellowForeground1]}},[so.rotate,go,eo]);return jsxRuntimeExports.jsx(Tooltip,{content:io??ao??"",relationship:"label",children:jsxRuntimeExports.jsxs("div",{className:so.wrapper,style:{color:yo,gap:to?ho:0},children:[mo,to&&jsxRuntimeExports.jsx(Text$2,{size:lo,children:ao})]})})}const useClasses$A=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},rotate:{animationDuration:"2s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}}}),useClasses$z=makeStyles({root:{display:"flex",fontSize:tokens$1.fontSizeBase200,marginLeft:"8px",...shorthands.gap("8px","column")}}),TraceSystemMetrics=()=>{const eo=useSelectedTrace(),to=useClasses$z();if(!eo)return null;const no=checkStatus(eo.status,"running"),io=checkStatus(eo.status,"error");return jsxRuntimeExports.jsxs("div",{className:to.root,children:[jsxRuntimeExports.jsx(StatusText,{statusCode:eo.status,size:UISize.normal,showText:!0}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:eo.start_time,endTimeISOString:eo.end_time,size:UISize.normal,isLoading:no}),!io&&jsxRuntimeExports.jsx(SummaryToken,{trace:convertToTraceListRow(eo),size:UISize.normal,isLoading:no})]})},useClasses$y=makeStyles({title:{...shorthands.flex(1),...shorthands.padding("0"),lineHeight:"28px",fontSize:"20px",fontWeight:600},button:{fontSize:"20px",fontWeight:600,...shorthands.padding("0")},normalItem:{display:"flex",fontSize:"20px",fontWeight:600}}),TraceDetailTitle=({preTitleSlot:eo})=>{const to=useSelectedTraceTitle(),no=useClasses$y(),io=useTraceDetailHistoryTraces(),so=useTraceViewModel();return jsxRuntimeExports.jsxs(Breadcrumb,{className:no.title,size:"large",children:[eo,io.length?io.map((ao,lo)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(BreadcrumbItem,{children:jsxRuntimeExports.jsx(BreadcrumbButton,{className:no.button,onClick:()=>{so.detailNavigateTo(ao,lo)},children:jsxRuntimeExports.jsx("span",{children:ao.name},ao.trace_id)})},`${ao.trace_id}-0`),jsxRuntimeExports.jsx(BreadcrumbDivider,{},`${ao.trace_id}-1`)]})):null,jsxRuntimeExports.jsx(BreadcrumbItem,{children:jsxRuntimeExports.jsxs("div",{className:no.normalItem,children:[to,jsxRuntimeExports.jsx(TraceSystemMetrics,{})]})})]})},useClasses$x=makeStyles({header:{display:"flex",width:"100%",boxSizing:"border-box",...shorthands.padding("12px","20px")},divider:{height:"100%",...shorthands.flex("none"),...shorthands.padding(0,tokens$1.spacingHorizontalM)},navigation:{display:"flex",alignItems:"center",...shorthands.gap(tokens$1.spacingHorizontalS)},navigationItem:{"@media (max-width: 1020px)":{display:"none"}},navigationItemSmall:{minWidth:"auto","@media (min-width: 1020px)":{display:"none"}},time:{display:"flex",alignItems:"center",paddingRight:tokens$1.spacingHorizontalL,...shorthands.flex("0 1 auto"),"@media (max-width: 1020px)":{display:"none"}},timeSmall:{display:"flex",alignItems:"center",...shorthands.flex("0 1 auto"),"@media (min-width: 1020px)":{display:"none"}}}),TraceNavigation=({showPreviousTraceArrow:eo,showNextTraceArrow:to,goToNextTrace:no,goToPreviousTrace:io})=>{const so=useLocStrings(),ao=useClasses$x(),lo=useSelectedTrace(),{hasPreviousTrace:uo,hasNextTrace:ho,goToPreviousTrace:go,goToNextTrace:mo}=useTraceNavigation(),yo=no||mo,So=io||go,_o=eo?eo(lo):uo,ko=to?to(lo):ho;return _o||ko?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:ao.navigation,children:[_o&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Button$2,{className:ao.navigationItem,icon:jsxRuntimeExports.jsx(ArrowUp20Regular,{}),onClick:So,appearance:"subtle",children:[so["Previous trace"]," "]}),jsxRuntimeExports.jsx(Tooltip,{relationship:"description",content:so["Previous trace"],children:jsxRuntimeExports.jsx(Button$2,{className:ao.navigationItemSmall,icon:jsxRuntimeExports.jsx(ArrowUp20Regular,{}),onClick:So,appearance:"subtle"})})]}),ko&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Button$2,{className:ao.navigationItem,icon:jsxRuntimeExports.jsx(ArrowDown20Regular,{}),onClick:yo,appearance:"subtle",children:[so["Next trace"]," "]}),jsxRuntimeExports.jsx(Tooltip,{relationship:"description",content:so["Next trace"],children:jsxRuntimeExports.jsx(Button$2,{className:ao.navigationItemSmall,icon:jsxRuntimeExports.jsx(ArrowDown20Regular,{}),onClick:yo,appearance:"subtle"})})]})]}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:ao.divider})]}):null},TraceDetailHeader=({setIsTraceDetailOpen:eo,showRefresh:to=!0,showGantt:no=!1,showCopyUrl:io=!1,showStreamSwitch:so=!1,showCloseAction:ao=!0,showNavigation:lo=!0,isStreaming:uo,traceNavigationProps:ho,onIsStreamingChange:go,preTitleSlot:mo})=>{const yo=useClasses$w(),So=useLocStrings(),_o=useTraceViewModel(),ko=useIsGanttChartOpen(),[Co,$o]=React.useState("Copy URL"),Ro=useSelectedTrace(),Oo=Ro!=null&&Ro.start_time?timeFormat$1(Ro.start_time):void 0;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:yo.header,children:[jsxRuntimeExports.jsx(TraceDetailTitle,{preTitleSlot:mo}),Oo&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("time",{className:yo.time,children:[So.Created_on,": ",Oo]}),jsxRuntimeExports.jsx(Tooltip,{relationship:"description",content:So.Created_on,children:jsxRuntimeExports.jsx("time",{className:yo.timeSmall,children:Oo})})]}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:yo.divider}),lo&&jsxRuntimeExports.jsx(TraceNavigation,{...ho}),so&&uo!==void 0&&go!==void 0&&jsxRuntimeExports.jsx(StreamSwitcher,{style:{marginRight:"16px",marginTop:"4px"},isStreaming:uo,onIsStreamingChange:go}),io?jsxRuntimeExports.jsx(Tooltip,{content:So[`${Co}`],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Copy URL",icon:jsxRuntimeExports.jsx(Share20Regular,{}),onMouseEnter:()=>{$o("Copy URL")},onClick:()=>{if(_o.traceDetailCopyUrl()){$o("Copied!");return}const No=window.location.href;if(navigator.clipboard)navigator.clipboard.writeText(No),$o("Copied!");else{const Mo=document.createElement("textarea");Mo.value=No,document.body.appendChild(Mo),Mo.select();try{document.execCommand("copy"),$o("Copied!")}catch(Bo){console.error("Fallback: Oops, unable to copy",Bo),$o("Oops, unable to copy!")}document.body.removeChild(Mo)}}})}):null,to?jsxRuntimeExports.jsx(Tooltip,{content:So["Refresh Data"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Refresh",icon:jsxRuntimeExports.jsx(ArrowClockwise16Regular,{}),onClick:()=>_o.refreshSpans()})}):null,no?jsxRuntimeExports.jsx(Tooltip,{content:So[ko?"Hide Gantt":"Show Gantt"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{style:{color:ko?tokens$1.colorBrandForeground1:""},appearance:"subtle","aria-label":"Close",icon:jsxRuntimeExports.jsx(GanttChart20Regular,{}),onClick:()=>_o.toggleIsGanttChartOpen()})}):null,ao&&jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Close",icon:jsxRuntimeExports.jsx(Dismiss20Regular,{}),onClick:()=>eo(!1)})]}),jsxRuntimeExports.jsx(Divider$2,{})]})},useClasses$w=makeStyles({header:{display:"flex",width:"100%",boxSizing:"border-box",...shorthands.padding("12px","20px")},divider:{height:"100%",...shorthands.flex("none"),...shorthands.padding(0,tokens$1.spacingHorizontalM)},navigation:{display:"flex",alignItems:"center",...shorthands.gap(tokens$1.spacingHorizontalS)},navigationItem:{"@media (max-width: 1020px)":{display:"none"}},navigationItemSmall:{minWidth:"auto","@media (min-width: 1020px)":{display:"none"}},time:{display:"flex",alignItems:"center",paddingRight:tokens$1.spacingHorizontalL,...shorthands.flex("0 1 auto"),"@media (max-width: 1020px)":{display:"none"}},timeSmall:{display:"flex",alignItems:"center",...shorthands.flex("0 1 auto"),"@media (min-width: 1020px)":{display:"none"}}});function useResolvedElement(eo,to){var no=reactExports.useRef(null),io=reactExports.useRef(null);io.current=to;var so=reactExports.useRef(null);reactExports.useEffect(function(){ao()});var ao=reactExports.useCallback(function(){var lo=so.current,uo=io.current,ho=lo||(uo?uo instanceof Element?uo:uo.current:null);no.current&&no.current.element===ho&&no.current.subscriber===eo||(no.current&&no.current.cleanup&&no.current.cleanup(),no.current={element:ho,subscriber:eo,cleanup:ho?eo(ho):void 0})},[eo]);return reactExports.useEffect(function(){return function(){no.current&&no.current.cleanup&&(no.current.cleanup(),no.current=null)}},[]),reactExports.useCallback(function(lo){so.current=lo,ao()},[ao])}function extractSize(eo,to,no){return eo[to]?eo[to][0]?eo[to][0][no]:eo[to][no]:to==="contentBoxSize"?eo.contentRect[no==="inlineSize"?"width":"height"]:void 0}function useResizeObserver(eo){eo===void 0&&(eo={});var to=eo.onResize,no=reactExports.useRef(void 0);no.current=to;var io=eo.round||Math.round,so=reactExports.useRef(),ao=reactExports.useState({width:void 0,height:void 0}),lo=ao[0],uo=ao[1],ho=reactExports.useRef(!1);reactExports.useEffect(function(){return ho.current=!1,function(){ho.current=!0}},[]);var go=reactExports.useRef({width:void 0,height:void 0}),mo=useResolvedElement(reactExports.useCallback(function(yo){return(!so.current||so.current.box!==eo.box||so.current.round!==io)&&(so.current={box:eo.box,round:io,instance:new ResizeObserver(function(So){var _o=So[0],ko=eo.box==="border-box"?"borderBoxSize":eo.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",Co=extractSize(_o,ko,"inlineSize"),$o=extractSize(_o,ko,"blockSize"),Ro=Co?io(Co):void 0,Oo=$o?io($o):void 0;if(go.current.width!==Ro||go.current.height!==Oo){var No={width:Ro,height:Oo};go.current.width=Ro,go.current.height=Oo,no.current?no.current(No):ho.current||uo(No)}})}),so.current.instance.observe(yo,{box:eo.box}),function(){so.current&&so.current.instance.unobserve(yo)}},[eo.box,io]),eo.ref);return reactExports.useMemo(function(){return{ref:mo,width:lo.width,height:lo.height}},[mo,lo.width,lo.height])}const useDebugFunctions=()=>{const eo=useGetAllTraces(),to=useGetAllSpans(),no=useSelectedTrace(),io=useSpansOfSelectedTrace();reactExports.useEffect(()=>{window.printTracesAndSpans=()=>{const so=eo();console.log("traces",so);const ao=to();console.log("spans",ao)},window.printSelectedTrace=()=>{console.log("selectedTrace",no)},window.printSpansOfSelectedTrace=()=>{console.log("spansOfSelectedTrace",io)}},[eo,to,no,io])},traceDetailErrorInjectionToken=createInjectionToken("traceDetailErrorInjectionToken",()=>{const eo=useLocStrings();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:eo.Failed_to_load_trace})}),traceDetailLoadingInjectionToken=createInjectionToken("traceDetailLoadingInjectionToken",Loading),traceListErrorInjectionToken=createInjectionToken("traceListErrorInjectionToken",()=>{const eo=useLocStrings();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:eo.Failed_to_load_traces})}),traceListLoadingInjectionToken=createInjectionToken("traceListLoadingInjectionToken",Loading),useTraceListViewStatus=()=>{const eo=useTraceViewModel();return useState(eo.traceListStatus$)},useTraceDetailViewStatus=()=>{const eo=useTraceViewModel();return useState(eo.traceDetailStatus$)},useTraceListLoadingComponent=()=>{const[eo]=useInjected(traceListLoadingInjectionToken);return eo},useTraceListErrorComponent=()=>{const[eo]=useInjected(traceListErrorInjectionToken);return eo},useTraceDetailLoadingComponent=()=>{const[eo]=useInjected(traceDetailLoadingInjectionToken);return eo},useTraceDetailErrorComponent=()=>{const[eo]=useInjected(traceDetailErrorInjectionToken);return eo},TREE_NODE_WIDTH=400,TREE_NODE_INDENT=48,token$2="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token$2+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token$2+")+","gi");function decodeComponents(eo,to){try{return[decodeURIComponent(eo.join(""))]}catch{}if(eo.length===1)return eo;to=to||1;const no=eo.slice(0,to),io=eo.slice(to);return Array.prototype.concat.call([],decodeComponents(no),decodeComponents(io))}function decode$2(eo){try{return decodeURIComponent(eo)}catch{let to=eo.match(singleMatcher)||[];for(let no=1;noeo==null,strictUriEncode=eo=>encodeURIComponent(eo).replaceAll(/[!'()*]/g,to=>`%${to.charCodeAt(0).toString(16).toUpperCase()}`),encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(eo){switch(eo.arrayFormat){case"index":return to=>(no,io)=>{const so=no.length;return io===void 0||eo.skipNull&&io===null||eo.skipEmptyString&&io===""?no:io===null?[...no,[encode(to,eo),"[",so,"]"].join("")]:[...no,[encode(to,eo),"[",encode(so,eo),"]=",encode(io,eo)].join("")]};case"bracket":return to=>(no,io)=>io===void 0||eo.skipNull&&io===null||eo.skipEmptyString&&io===""?no:io===null?[...no,[encode(to,eo),"[]"].join("")]:[...no,[encode(to,eo),"[]=",encode(io,eo)].join("")];case"colon-list-separator":return to=>(no,io)=>io===void 0||eo.skipNull&&io===null||eo.skipEmptyString&&io===""?no:io===null?[...no,[encode(to,eo),":list="].join("")]:[...no,[encode(to,eo),":list=",encode(io,eo)].join("")];case"comma":case"separator":case"bracket-separator":{const to=eo.arrayFormat==="bracket-separator"?"[]=":"=";return no=>(io,so)=>so===void 0||eo.skipNull&&so===null||eo.skipEmptyString&&so===""?io:(so=so===null?"":so,io.length===0?[[encode(no,eo),to,encode(so,eo)].join("")]:[[io,encode(so,eo)].join(eo.arrayFormatSeparator)])}default:return to=>(no,io)=>io===void 0||eo.skipNull&&io===null||eo.skipEmptyString&&io===""?no:io===null?[...no,encode(to,eo)]:[...no,[encode(to,eo),"=",encode(io,eo)].join("")]}}function parserForArrayFormat(eo){let to;switch(eo.arrayFormat){case"index":return(no,io,so)=>{if(to=/\[(\d*)]$/.exec(no),no=no.replace(/\[\d*]$/,""),!to){so[no]=io;return}so[no]===void 0&&(so[no]={}),so[no][to[1]]=io};case"bracket":return(no,io,so)=>{if(to=/(\[])$/.exec(no),no=no.replace(/\[]$/,""),!to){so[no]=io;return}if(so[no]===void 0){so[no]=[io];return}so[no]=[...so[no],io]};case"colon-list-separator":return(no,io,so)=>{if(to=/(:list)$/.exec(no),no=no.replace(/:list$/,""),!to){so[no]=io;return}if(so[no]===void 0){so[no]=[io];return}so[no]=[...so[no],io]};case"comma":case"separator":return(no,io,so)=>{const ao=typeof io=="string"&&io.includes(eo.arrayFormatSeparator),lo=typeof io=="string"&&!ao&&decode$1(io,eo).includes(eo.arrayFormatSeparator);io=lo?decode$1(io,eo):io;const uo=ao||lo?io.split(eo.arrayFormatSeparator).map(ho=>decode$1(ho,eo)):io===null?io:decode$1(io,eo);so[no]=uo};case"bracket-separator":return(no,io,so)=>{const ao=/(\[])$/.test(no);if(no=no.replace(/\[]$/,""),!ao){so[no]=io&&decode$1(io,eo);return}const lo=io===null?[]:io.split(eo.arrayFormatSeparator).map(uo=>decode$1(uo,eo));if(so[no]===void 0){so[no]=lo;return}so[no]=[...so[no],...lo]};default:return(no,io,so)=>{if(so[no]===void 0){so[no]=io;return}so[no]=[...[so[no]].flat(),io]}}}function validateArrayFormatSeparator(eo){if(typeof eo!="string"||eo.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode(eo,to){return to.encode?to.strict?strictUriEncode(eo):encodeURIComponent(eo):eo}function decode$1(eo,to){return to.decode?decodeUriComponent(eo):eo}function keysSorter(eo){return Array.isArray(eo)?eo.sort():typeof eo=="object"?keysSorter(Object.keys(eo)).sort((to,no)=>Number(to)-Number(no)).map(to=>eo[to]):eo}function removeHash(eo){const to=eo.indexOf("#");return to!==-1&&(eo=eo.slice(0,to)),eo}function getHash(eo){let to="";const no=eo.indexOf("#");return no!==-1&&(to=eo.slice(no)),to}function parseValue(eo,to){return to.parseNumbers&&!Number.isNaN(Number(eo))&&typeof eo=="string"&&eo.trim()!==""?eo=Number(eo):to.parseBooleans&&eo!==null&&(eo.toLowerCase()==="true"||eo.toLowerCase()==="false")&&(eo=eo.toLowerCase()==="true"),eo}function extract$1(eo){eo=removeHash(eo);const to=eo.indexOf("?");return to===-1?"":eo.slice(to+1)}function parse$u(eo,to){to={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...to},validateArrayFormatSeparator(to.arrayFormatSeparator);const no=parserForArrayFormat(to),io=Object.create(null);if(typeof eo!="string"||(eo=eo.trim().replace(/^[?#&]/,""),!eo))return io;for(const so of eo.split("&")){if(so==="")continue;const ao=to.decode?so.replaceAll("+"," "):so;let[lo,uo]=splitOnFirst(ao,"=");lo===void 0&&(lo=ao),uo=uo===void 0?null:["comma","separator","bracket-separator"].includes(to.arrayFormat)?uo:decode$1(uo,to),no(decode$1(lo,to),uo,io)}for(const[so,ao]of Object.entries(io))if(typeof ao=="object"&&ao!==null)for(const[lo,uo]of Object.entries(ao))ao[lo]=parseValue(uo,to);else io[so]=parseValue(ao,to);return to.sort===!1?io:(to.sort===!0?Object.keys(io).sort():Object.keys(io).sort(to.sort)).reduce((so,ao)=>{const lo=io[ao];return so[ao]=lo&&typeof lo=="object"&&!Array.isArray(lo)?keysSorter(lo):lo,so},Object.create(null))}function stringify$2(eo,to){if(!eo)return"";to={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...to},validateArrayFormatSeparator(to.arrayFormatSeparator);const no=lo=>to.skipNull&&isNullOrUndefined(eo[lo])||to.skipEmptyString&&eo[lo]==="",io=encoderForArrayFormat(to),so={};for(const[lo,uo]of Object.entries(eo))no(lo)||(so[lo]=uo);const ao=Object.keys(so);return to.sort!==!1&&ao.sort(to.sort),ao.map(lo=>{const uo=eo[lo];return uo===void 0?"":uo===null?encode(lo,to):Array.isArray(uo)?uo.length===0&&to.arrayFormat==="bracket-separator"?encode(lo,to)+"[]":uo.reduce(io(lo),[]).join("&"):encode(lo,to)+"="+encode(uo,to)}).filter(lo=>lo.length>0).join("&")}function parseUrl(eo,to){var so;to={decode:!0,...to};let[no,io]=splitOnFirst(eo,"#");return no===void 0&&(no=eo),{url:((so=no==null?void 0:no.split("?"))==null?void 0:so[0])??"",query:parse$u(extract$1(eo),to),...to&&to.parseFragmentIdentifier&&io?{fragmentIdentifier:decode$1(io,to)}:{}}}function stringifyUrl(eo,to){to={encode:!0,strict:!0,[encodeFragmentIdentifier]:!0,...to};const no=removeHash(eo.url).split("?")[0]||"",io=extract$1(eo.url),so={...parse$u(io,{sort:!1}),...eo.query};let ao=stringify$2(so,to);ao&&(ao=`?${ao}`);let lo=getHash(eo.url);if(typeof eo.fragmentIdentifier=="string"){const uo=new URL(no);uo.hash=eo.fragmentIdentifier,lo=to[encodeFragmentIdentifier]?uo.hash:`#${eo.fragmentIdentifier}`}return`${no}${ao}${lo}`}function pick$2(eo,to,no){no={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...no};const{url:io,query:so,fragmentIdentifier:ao}=parseUrl(eo,no);return stringifyUrl({url:io,query:includeKeys(so,to),fragmentIdentifier:ao},no)}function exclude(eo,to,no){const io=Array.isArray(to)?so=>!to.includes(so):(so,ao)=>!to(so,ao);return pick$2(eo,io,no)}const queryString=Object.freeze(Object.defineProperty({__proto__:null,exclude,extract:extract$1,parse:parse$u,parseUrl,pick:pick$2,stringify:stringify$2,stringifyUrl},Symbol.toStringTag,{value:"Module"})),getMessagesFromEvent=eo=>{var to;try{const no=JSON.parse(((to=eo.attributes)==null?void 0:to.inputs)??"{}"),{message:io,messages:so}=no??{};return so?so.map(ao=>typeof ao=="string"?{content:ao}:ao):typeof io=="string"?[{content:io}]:[io].filter(Boolean)}catch{}return[]},getIsAgentsVisualizationEnabled=()=>queryString.parse(window.location.search).isAgentsVisualizationEnabled==="true",agentSpanNames=new Set(["initiate_chat","initiate_chats","generate_reply","execute_code_block","execute_function","send","receive","conversableagent.select_speaker","conversableagent.initiate_chat","conversableagent.initiate_chats","conversableagent.generate_reply","conversableagent.execute_code_block","conversableagent.execute_function","conversableagent.send","conversableagent.receive","conversableagent.select_speaker"]),getSpanType=eo=>{var io,so;const to=getIsAgentsVisualizationEnabled();if(eo!=null&&eo.name&&agentSpanNames.has((io=eo==null?void 0:eo.name)==null?void 0:io.toLowerCase())&&to)return eo.name;const no=(so=eo==null?void 0:eo.attributes)==null?void 0:so.span_type;return no==null?void 0:no.split(".").pop()};var _a$2;const tDe=class tDe{constructor(){this.treeViewColoredBy$=new State$2("agent"),this.treeViewHiddenAgentEvents$=new State$2([]),this.conversationViewCurrentPath$=new State$2("")}};_a$2=SINGLETON,tDe[_a$2]=!0;let AgentsViewModel=tDe;const agentsViewModelInjectionToken=createInjectionToken("AgentsViewModel",new AgentsViewModel),useAgentsViewModel=()=>{const[eo]=useInjected(agentsViewModelInjectionToken);return eo},useTreeViewColoredBy=()=>{const eo=useAgentsViewModel();return useState(eo.treeViewColoredBy$)},useSetTreeViewColoredBy=()=>{const eo=useAgentsViewModel();return useSetState(eo.treeViewColoredBy$)},useTreeViewHiddenAgentEvents=()=>{const eo=useAgentsViewModel();return useState(eo.treeViewHiddenAgentEvents$)},useSetTreeViewHiddenAgentEvents=()=>{const eo=useAgentsViewModel();return useSetState(eo.treeViewHiddenAgentEvents$)},useConversationViewCurrentPath=()=>{const eo=useAgentsViewModel();return useState(eo.conversationViewCurrentPath$)},useSetConversationViewCurrentPath=()=>{const eo=useAgentsViewModel();return useSetState(eo.conversationViewCurrentPath$)},useAgentSpansFlatten=({rootSpanId:eo,showHierarchy:to})=>{var ho,go;const no=useSpansOfSelectedTrace(),io=useTreeViewHiddenAgentEvents(),so=new Map,ao=[];no.forEach(mo=>{var yo,So;mo.parent_id&&((yo=mo.context)!=null&&yo.span_id)&&(so.has(mo.parent_id)?(So=so.get(mo.parent_id))==null||So.add(mo.context.span_id):so.set(mo.parent_id,new Set([mo.context.span_id])))});const lo=no.find(mo=>{var yo;return((yo=mo.context)==null?void 0:yo.span_id)===eo});if(!lo)return[];const uo=[{span:lo,level:0}];for(;uo.length>0;){const mo=uo.pop();if(!mo)continue;const yo=mo.span,So=mo.level;yo.name&&agentSpanNames.has((ho=yo.name)==null?void 0:ho.toLowerCase())&&!io.includes(yo.name)&&ao.push(Object.assign({},yo,{attributes:{...yo.attributes,level:So.toString()}})),(go=yo==null?void 0:yo.context)!=null&&go.span_id&&so.has(yo.context.span_id)&&Array.from(so.get(yo.context.span_id)??[]).forEach(ko=>{const Co=no.find($o=>{var Ro;return((Ro=$o.context)==null?void 0:Ro.span_id)===ko});if(Co){const $o=to?So+1:So;uo.push({span:Co,level:$o})}})}return ao},useAgentSpansByEntity=({rootSpanId:eo,showHierarchy:to})=>{const io=useAgentSpansFlatten({rootSpanId:eo,showHierarchy:to}).reduce((so,ao)=>{var uo,ho,go;const lo=`${(uo=ao.attributes)==null?void 0:uo.entity}##${(ho=ao.attributes)==null?void 0:ho.level}`;return lo&&(so.has(lo)?(go=so.get(lo))==null||go.push(ao):so.set(lo,[ao])),so},new Map);return Array.from(io).map(([so,ao])=>{var lo;return{entity:so,spans:ao,level:parseInt(((lo=ao[0].attributes)==null?void 0:lo.level)??"0")}})},colorsPool=[{color:tokens$1.colorPalettePinkForeground2,backgroundColor:tokens$1.colorPalettePinkBackground2,hoverColor:tokens$1.colorPalettePinkBorderActive},{color:tokens$1.colorPaletteDarkOrangeForeground2,backgroundColor:tokens$1.colorPaletteDarkOrangeBackground2,hoverColor:tokens$1.colorPaletteDarkOrangeBorderActive},{color:tokens$1.colorPaletteBrassForeground2,backgroundColor:tokens$1.colorPaletteBrassBackground2,hoverColor:tokens$1.colorPaletteBrassBorderActive},{color:tokens$1.colorPaletteSeafoamForeground2,backgroundColor:tokens$1.colorPaletteSeafoamBackground2,hoverColor:tokens$1.colorPaletteSeafoamBorderActive},{color:tokens$1.colorPaletteRoyalBlueForeground2,backgroundColor:tokens$1.colorPaletteRoyalBlueBackground2,hoverColor:tokens$1.colorPaletteRoyalBlueBorderActive},{color:tokens$1.colorPaletteNavyForeground2,backgroundColor:tokens$1.colorPaletteNavyBackground2,hoverColor:tokens$1.colorPaletteNavyBorderActive},{color:tokens$1.colorPaletteGrapeForeground2,backgroundColor:tokens$1.colorPaletteGrapeBackground2,hoverColor:tokens$1.colorPaletteGrapeBorderActive}],nameToColor=new Map,getColorForMessage=({name:eo="",role:to=""})=>{if(to.toLowerCase()==="system")return{color:tokens$1.colorPalettePlatinumForeground2,backgroundColor:tokens$1.colorPalettePlatinumBackground2,hoverColor:tokens$1.colorPalettePlatinumBorderActive};const no=`${eo}_${to}`;return nameToColor.has(no)||nameToColor.set(no,colorsPool[nameToColor.size%colorsPool.length]),nameToColor.get(no)},getColorForMessageContent=({role:eo=""})=>eo.toLowerCase()==="system"?{color:tokens$1.colorNeutralForeground3,backgroundColor:"transparent"}:{color:tokens$1.colorNeutralForeground3,backgroundColor:tokens$1.colorNeutralBackground2},LLMMessageSenderBadge=({name:eo,role:to,className:no,size:io="small"})=>{const so=(to==null?void 0:to.toLowerCase())==="system"?jsxRuntimeExports.jsx(Laptop16Regular,{}):jsxRuntimeExports.jsx(Person16Regular,{}),ao=(to==null?void 0:to.toLowerCase())==="system"?jsxRuntimeExports.jsx(Laptop24Regular,{}):jsxRuntimeExports.jsx(Person24Regular,{}),lo=getColorForMessage({name:eo,role:to});return jsxRuntimeExports.jsx(Badge$2,{icon:io==="large"?ao:so,appearance:"filled",size:io==="large"?"extra-large":"large",className:no,style:{...lo},children:capitalizeFirstLetter$1(to)})};function capitalizeFirstLetter$1(eo){return eo?eo.charAt(0).toUpperCase()+eo.slice(1).toLowerCase():""}const useClasses$v=makeStyles({root:{display:"flex",flexDirection:"column",height:"100%",...shorthands.gap("24px")},activityBar:{height:"16px",marginTop:"8px",backgroundColor:"#f0f0f0",position:"relative"},eventsPopoverHeader:{display:"flex",justifyContent:"space-between",alignContent:"center",...shorthands.gap("4px")}}),AgentActivitiesView=({span:eo,rootWidth:to,onClickDot:no,onClickRow:io,showHierarchy:so,showDuration:ao})=>{var So;const lo=useAgentSpansByEntity({rootSpanId:((So=eo==null?void 0:eo.context)==null?void 0:So.span_id)??null,showHierarchy:so});let uo=0;lo.forEach(_o=>{_o.spans.forEach(ko=>{var Co;(Co=ko.attributes)!=null&&Co.level&&Number(ko.attributes.level)>uo&&(uo=Number(ko.attributes.level))})});const ho=useClasses$v();let go=Number.MAX_SAFE_INTEGER,mo=0;lo.forEach(_o=>{_o.spans.forEach(ko=>{ko.start_time&&Date.parse(ko.start_time)mo&&(mo=Date.parse(ko.end_time))})});const yo=to?to-uo*24-64:0;return jsxRuntimeExports.jsx("div",{children:lo.map(_o=>{const ko=new Map,Co=_o.entity.split("##")[0],$o=getColorForMessage({role:Co});_o.spans.forEach(Oo=>{if(!Oo.start_time)return;const No=Date.parse(Oo.start_time),Mo=Math.floor((No-go)/(mo-go)*100);ko.has(Mo)||ko.set(Mo,{color:$o.color,backgroundColor:$o.backgroundColor,spans:[]}),ko.get(Mo).spans.push(Oo)});const Ro=Array.from(ko.entries()).map(([Oo,{color:No,backgroundColor:Mo,spans:Bo}])=>{let Po=8;return ao&&Bo.forEach(Lo=>{if(!Lo.start_time||!Lo.end_time)return;const Go=Date.parse(Lo.end_time)-Date.parse(Lo.start_time);Po=Math.max(Math.floor(Go/(mo-go)*yo),Po)}),jsxRuntimeExports.jsx(Tooltip,{relationship:"label",content:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:ho.eventsPopoverHeader,children:["Events",jsxRuntimeExports.jsx(CounterBadge,{count:Bo.length})]}),jsxRuntimeExports.jsx("div",{children:Bo.map((Lo,Go)=>jsxRuntimeExports.jsx("div",{children:Lo.name},Go))})]}),children:jsxRuntimeExports.jsx(CounterBadge,{count:Bo.length,style:{position:"absolute",color:No,backgroundColor:Mo,width:`${Po}px`,height:"16px",marginLeft:"-4px",left:`${Oo}%`},onClick:()=>{no==null||no({spans:Bo})},children:Bo.length})},Oo)});return jsxRuntimeExports.jsxs("div",{style:{marginTop:12},children:[jsxRuntimeExports.jsx("div",{style:{marginLeft:`${_o.level*24}px`},children:jsxRuntimeExports.jsx(LLMMessageSenderBadge,{role:Co})}),jsxRuntimeExports.jsx("div",{className:ho.activityBar,style:{width:`${yo}px`},role:"button",onClick:()=>{io==null||io({spans:_o.spans})},children:Ro})]},_o.entity)})})},AgentsVisualizationBottomPane=({containerWidth:eo})=>{var lo;const to=useRootSpanIdOfSelectedSpans(),no=useSelectedTraceId(),io=useTraceViewModel(),so=useSetSelectedSpanId();if(!to||!no)return null;const ao=(lo=io.spans$.get(no))==null?void 0:lo.get(to);return!ao||!eo?null:jsxRuntimeExports.jsx(AgentActivitiesView,{span:ao,rootWidth:eo,showHierarchy:!0,showDuration:!0,onClickDot:({spans:uo})=>{var go,mo;const ho=(mo=(go=uo[0])==null?void 0:go.context)==null?void 0:mo.span_id;ho&&so(ho)}})},TraceViewThemeContext=reactExports.createContext(!1),useIsDark=()=>reactExports.useContext(TraceViewThemeContext),sortTraceByStartTimeAsc$1=(eo,to)=>eo.start_time&&to.start_time?Date.parse(eo.start_time)-Date.parse(to.start_time):1,spansToGanttTasks=({spans:eo,parentSpanId:to})=>{const no=new Map,io=new Set(eo.map(uo=>{var ho;return(ho=uo.context)==null?void 0:ho.span_id}).filter(uo=>!!uo)),so=new Set;eo.forEach(uo=>{var ho,go;(ho=uo.context)!=null&&ho.span_id&&(uo.parent_id&&uo.parent_id!==to&&io.has(uo.parent_id)?no.has(uo.parent_id)?no.get(uo.parent_id).push(uo):no.set(uo.parent_id,[uo]):so.add((go=uo.context)==null?void 0:go.span_id))});const ao=eo.filter(uo=>{var ho,go;return((ho=uo.context)==null?void 0:ho.span_id)&&so.has((go=uo.context)==null?void 0:go.span_id)}).sort((uo,ho)=>Date.parse(uo.start_time??"")??0-Date.parse(ho.start_time??"")??0),lo=uo=>uo.sort(sortTraceByStartTimeAsc$1).map(ho=>{var go,mo;return{startTime:Date.parse(ho.start_time??""),endTime:Date.parse(ho.end_time??""),id:((go=ho.context)==null?void 0:go.span_id)??"",name:ho.name??"",children:lo(no.get(((mo=ho.context)==null?void 0:mo.span_id)??"")??[])}});return lo(ao)},useStyles$j=makeStyles({grid:{height:"100%"},selectedRow:{backgroundColor:tokens$1.colorNeutralBackground2Selected}}),GanttView=()=>{const eo=useSpansOfSelectedTrace(),to=reactExports.useMemo(()=>new GanttViewModel,[]),no=useSelectedSpanId(),io=useSetSelectedSpanId(),ao=useIsDark()?"rdg-dark":"rdg-light",lo=useStyles$j(),uo=reactExports.useRef(null);return reactExports.useEffect(()=>{to.setTasks(spansToGanttTasks({spans:eo})),to.selectedRowId$.subscribe(ho=>{ho&&ho!==no&&io(ho)}),to.expandAllRows()},[eo.length]),reactExports.useEffect(()=>{var yo,So;if(to.selectedRowId$.getSnapshot()===no)return;to.selectedRowId$.next(no);const go=[];let mo=eo.find(_o=>{var ko;return((ko=_o.context)==null?void 0:ko.span_id)===no});for(;mo;)((yo=mo.context)==null?void 0:yo.span_id)!==no&&go.unshift(((So=mo.context)==null?void 0:So.span_id)??""),mo=eo.find(_o=>{var ko;return((ko=_o.context)==null?void 0:ko.span_id)===(mo==null?void 0:mo.parent_id)});go.forEach(_o=>{const ko=to.rows$.getSnapshot().find(Co=>Co.id===_o);ko!=null&&ko.isExpanded||to.toggleRow(_o)})},[no]),jsxRuntimeExports.jsx(Gantt,{viewModel:to,gridRef:uo,styles:{grid:mergeClasses(lo.grid,ao),selectedRow:lo.selectedRow},getColumns:ho=>ho.map(go=>go.key==="name"?{...go,name:"span",width:180}:go.key==="duration"?{...go,name:"latency",width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"latency"})},renderCell({row:mo}){return jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:new Date(mo.startTime).toISOString(),endTimeISOString:new Date(mo.endTime).toISOString(),size:UISize.extraSmall})}}:go)})},useNodeDetailClasses=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},detailHeaderWrapper:{display:"flex",boxSizing:"border-box",width:"100%",...shorthands.padding("12px","12px",0,"12px"),flexDirection:"row",alignItems:"center",...shorthands.gap("12px")},detailHeaderTitle:{flexGrow:1,flexShrink:1,...shorthands.overflow("hidden"),whiteSpace:"nowrap",textOverflow:"ellipsis"},header:{display:"flex",height:"50px",boxSizing:"border-box",alignItems:"center",justifyContent:"flex-start",...shorthands.padding("6px","12px")},headerModalName:{color:tokens$1.colorNeutralForeground3,fontSize:"12px",fontWeight:600,lineHeight:"16px"},headerSpan:{marginRight:"10px"},headerTitle:{...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:"4px",...shorthands.flex(0,1,"auto")},divider:{...shorthands.flex("none"),...shorthands.padding(0)},headerRight:{marginLeft:"auto",display:"flex",alignItems:"center",...shorthands.gap("12px")},tabDivider:{...shorthands.flex("none"),...shorthands.padding(0,"12px")},layout:{...shorthands.flex(1),display:"flex",flexDirection:"row",...shorthands.overflow("hidden")},layoutLeft:{...shorthands.flex(1),display:"flex",flexDirection:"column",...shorthands.overflow("hidden")},layoutRight:{height:"100%",...shorthands.overflow("hidden")},content:{...shorthands.flex(1),...shorthands.padding("12px"),...shorthands.overflow("auto")},panels:{...shorthands.padding(0,"10px"),"& th":{textAlign:"left",...shorthands.padding(0,"30px",0,0)}},cardWrapper:{backgroundColor:tokens$1.colorNeutralBackground3},cardTitle:{fontSize:"16px",fontWeight:600},innerCardWrapper:{...shorthands.padding("16px"),...shorthands.border("1px","solid",tokens$1.colorNeutralForeground1),...shorthands.borderRadius("8px")}}),useRetrievalNodeDetailClasses=makeStyles({accordionHeader:{"& button":{...shorthands.padding(0),fontWeight:600}}}),OpenAIIcon=({styles:eo})=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",width:"20px",height:"20px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",style:eo,children:[jsxRuntimeExports.jsx("title",{children:"OpenAI icon"}),jsxRuntimeExports.jsx("path",{d:"M832 676l575 288v760l-575 288-575-288V964l575-288zm0 144l-368 184 368 183 368-183-368-184zm-447 825l383 191v-538l-383-191v538zm894 0v-538l-383 191v538l383-191zm577-733q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9zM704 496q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9zm1206-48q0 23-15 38t-39 16q-27 0-57 11t-58 28-54 37-45 40q-19 19-39 44t-38 54-28 59-11 57q0 23-15 38t-39 16q-23 0-38-15t-16-39q0-27-11-57t-28-58-37-54-40-45q-19-19-44-39t-54-38-59-28-57-11q-23 0-38-15t-16-39q0-23 15-38t39-16q27 0 57-11t58-28 54-37 45-40q19-19 39-44t38-54 28-59 11-57q0-23 15-38t39-16q23 0 38 15t16 39q0 27 11 57t28 58 37 54 40 45q19 19 44 39t54 38 59 28 57 11q23 0 38 15t16 39zm-438 212q38-65 92-119t120-93q-65-38-119-92t-93-120q-38 65-92 119t-120 93q65 38 119 92t93 120z"})]});function SpanType({span:eo,showText:to=!0,className:no,...io}){var Co,$o,Ro;const so=useClasses$u(),ao=useTreeViewColoredBy(),lo=agentSpanNames.has(((Co=eo==null?void 0:eo.name)==null?void 0:Co.toLowerCase())??""),uo=getIsAgentsVisualizationEnabled(),ho=uo?($o=getSpanType(eo))==null?void 0:$o.toLowerCase().replace(/conversableagent\./g,""):getSpanType(eo),go=getColorForMessage({role:(Ro=eo==null?void 0:eo.attributes)==null?void 0:Ro.entity}),{color:mo,backgroundColor:yo,icon:So,text:_o}=reactExports.useMemo(()=>(ho==null?void 0:ho.toLowerCase())==="generate_reply"&&uo?{color:tokens$1.colorPaletteRedForeground2,backgroundColor:tokens$1.colorPaletteRedBackground2,icon:jsxRuntimeExports.jsx(ThinkingRegular,{}),text:"Generate Reply"}:(ho==null?void 0:ho.toLowerCase())==="send"&&uo?{color:tokens$1.colorPaletteGreenForeground2,backgroundColor:tokens$1.colorPaletteGreenBackground2,icon:jsxRuntimeExports.jsx(Mail16Regular,{}),text:"Send"}:(ho==null?void 0:ho.toLowerCase())==="receive"&&uo?{color:tokens$1.colorPaletteRedForeground2,backgroundColor:tokens$1.colorPaletteRedBackground2,icon:jsxRuntimeExports.jsx(Mail16Regular,{}),text:"Receive"}:(ho==null?void 0:ho.toLocaleLowerCase())==="select_speaker"&&uo?{color:tokens$1.colorPalettePurpleForeground2,backgroundColor:tokens$1.colorPalettePurpleBackground2,icon:jsxRuntimeExports.jsx(EmojiSparkle16Regular,{}),text:"Select speaker"}:(ho==null?void 0:ho.toLocaleLowerCase())==="initiate_chat"&&uo?{color:tokens$1.colorPaletteYellowForeground2,backgroundColor:tokens$1.colorPaletteYellowBackground2,icon:jsxRuntimeExports.jsx(SelectObjectRegular,{}),text:"Initiate Chat"}:(ho==null?void 0:ho.toLocaleLowerCase())==="initiate_chats"&&uo?{color:tokens$1.colorPaletteYellowForeground2,backgroundColor:tokens$1.colorPaletteYellowBackground2,icon:jsxRuntimeExports.jsx(SelectObjectRegular,{}),text:"Initiate Chats"}:(ho==null?void 0:ho.toLocaleLowerCase())==="execute_code_block"&&uo?{color:tokens$1.colorPaletteBlueForeground2,backgroundColor:tokens$1.colorPaletteBlueBackground2,icon:jsxRuntimeExports.jsx(Code16Regular,{}),text:"Execute Code Block"}:(ho==null?void 0:ho.toLocaleLowerCase())==="execute_function"&&uo?{color:tokens$1.colorPaletteBlueForeground2,backgroundColor:tokens$1.colorPaletteBlueBackground2,icon:jsxRuntimeExports.jsx(Run16Regular,{}),text:"Execute Function"}:(ho==null?void 0:ho.toLocaleLowerCase())==="flow"?{color:tokens$1.colorPaletteBlueForeground2,backgroundColor:tokens$1.colorPaletteBlueBackground2,icon:jsxRuntimeExports.jsx(Flow16Regular,{}),text:"Flow"}:(ho==null?void 0:ho.toLocaleLowerCase())==="function"||(ho==null?void 0:ho.toLocaleLowerCase())==="tool"?{color:tokens$1.colorPaletteLavenderForeground2,backgroundColor:tokens$1.colorPaletteLavenderBackground2,icon:jsxRuntimeExports.jsx(HexagonThree16Regular,{}),text:"Function"}:(ho==null?void 0:ho.toLocaleLowerCase())==="retrieval"?{color:tokens$1.colorPaletteBrownForeground2,backgroundColor:tokens$1.colorPaletteBrownBackground2,icon:jsxRuntimeExports.jsx(BranchRequest16Regular,{}),text:"Retrieval"}:(ho==null?void 0:ho.toLocaleLowerCase())==="embedding"?{color:tokens$1.colorPaletteCornflowerForeground2,backgroundColor:tokens$1.colorPaletteCornflowerBackground2,icon:jsxRuntimeExports.jsx(FlowchartRegular,{}),text:"Embedding"}:(ho==null?void 0:ho.toLocaleLowerCase())==="llm"?{color:tokens$1.colorPaletteLightTealForeground2,backgroundColor:tokens$1.colorPaletteLightTealBackground2,icon:jsxRuntimeExports.jsx(OpenAIIcon,{styles:{height:"16px",width:"16px"}}),text:"LLM"}:(ho==null?void 0:ho.toLocaleLowerCase())==="network"?{color:tokens$1.colorPaletteSteelForeground2,backgroundColor:tokens$1.colorPaletteSteelBackground2,icon:jsxRuntimeExports.jsx(Link16Regular,{}),text:"Network"}:(ho==null?void 0:ho.toLocaleLowerCase())==="http"?{color:tokens$1.colorPaletteSteelForeground2,backgroundColor:tokens$1.colorPaletteSteelBackground2,icon:jsxRuntimeExports.jsx(Link16Regular,{}),text:"Http"}:{color:tokens$1.colorPaletteMarigoldForeground2,backgroundColor:tokens$1.colorPaletteMarigoldBackground2,icon:jsxRuntimeExports.jsx(QuestionCircle16Regular,{}),text:"Unknown"},[eo]);if(eo===void 0)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ko=ao==="agent"&&uo&&lo;return jsxRuntimeExports.jsx(Badge$2,{appearance:"filled",size:"large",className:mergeClasses(so.root,no),icon:So,style:ko?go:{color:mo,backgroundColor:yo},...io,children:to&&_o})}const useClasses$u=makeStyles({root:{height:"24px",...shorthands.padding("0","6px")}}),useClasses$t=makeStyles({root:{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row-reverse"},colorByContainer:{width:"240px"},popover:{display:"flex",flexDirection:"column",...shorthands.gap("8px")}}),AgentsHeader=({span:eo})=>{const to=useNodeDetailClasses(),no=useClasses$t(),io=useTreeViewColoredBy(),so=useSetTreeViewColoredBy(),ao=useTreeViewHiddenAgentEvents(),lo=useSetTreeViewHiddenAgentEvents(),uo=Array.from(agentSpanNames.values()).filter(ho=>!ao.includes(ho));return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SpanType,{span:eo,showText:!1,className:to.headerSpan}),jsxRuntimeExports.jsx(Tooltip,{content:eo.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:to.headerTitle,children:`${eo.name}`})}),jsxRuntimeExports.jsx("div",{className:to.headerRight,children:jsxRuntimeExports.jsxs(Popover,{children:[jsxRuntimeExports.jsx(PopoverTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx(Button$2,{icon:jsxRuntimeExports.jsx(Settings16Regular,{})})}),jsxRuntimeExports.jsx(PopoverSurface,{children:jsxRuntimeExports.jsxs("div",{className:no.popover,children:[jsxRuntimeExports.jsxs("div",{className:no.colorByContainer,children:[jsxRuntimeExports.jsx(Label,{htmlFor:"color-by-select",children:"Tree view colored by:"}),jsxRuntimeExports.jsxs(Select$1,{id:"color-by-select",value:io,onChange:(ho,go)=>{go&&so(go.value)},children:[jsxRuntimeExports.jsx("option",{value:"agent",children:"agent"}),jsxRuntimeExports.jsx("option",{value:"event",children:"event"})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Show events:"}),jsxRuntimeExports.jsx(Toolbar,{size:"small",checkedValues:{visibleAgentEvents:uo},onCheckedValueChange:(ho,go)=>{const mo=Array.from(agentSpanNames.values()).filter(yo=>!go.checkedItems.includes(yo));lo(mo)},children:Array.from(agentSpanNames.values()).map(ho=>jsxRuntimeExports.jsx(ToolbarToggleButton,{name:"visibleAgentEvents",value:ho,children:ho},ho))})]})]})})]})})]})},useHasPromptTemplate=eo=>{const to=useSelectedSpan(),no=reactExports.useMemo(()=>{var ao;return(ao=getSpanType(to))==null?void 0:ao.toLocaleLowerCase()},[to]),io=useParentSpanOfSelectedSpan(),so=reactExports.useCallback(ao=>{eo(ao)},[eo]);reactExports.useEffect(()=>{if(no!=="llm"){so(!1);return}const ao=(io==null?void 0:io.attributes)||{},uo=getSpanEventsWithPayload(io,BuildInEventName["prompt.template"]).length>0||Object.prototype.hasOwnProperty.call(ao,"prompt.template");so(uo)},[no,io,so])},useHasLLMParameters=eo=>{const to=useSelectedSpan(),no=reactExports.useMemo(()=>{var ao;return(ao=getSpanType(to))==null?void 0:ao.toLocaleLowerCase()},[to]),io=useParentSpanOfSelectedSpan(),so=reactExports.useCallback(ao=>{eo(ao)},[eo]);reactExports.useEffect(()=>{if(no!=="llm"){so(!1);return}const ao=(io==null?void 0:io.attributes)||{},uo=getSpanEventsWithPayload(io,BuildInEventName["prompt.template"]).length>0||Object.prototype.hasOwnProperty.call(ao,"prompt.variables");so(uo)},[no,io,so])},useHasInputsOrOutput=eo=>{const to=useSelectedSpan(),no=reactExports.useCallback(io=>{eo(io)},[eo]);reactExports.useEffect(()=>{var go;const io=(go=getSpanType(to))==null?void 0:go.toLocaleLowerCase(),so=(to==null?void 0:to.attributes)||{},ao=getSpanEventsWithPayload(to,BuildInEventName["function.inputs"]),lo=getSpanEventsWithPayload(to,BuildInEventName["function.output"]),uo=ao.length>0||Object.prototype.hasOwnProperty.call(so,EventNameToAttribute[BuildInEventName["function.inputs"]]),ho=lo.length>0||Object.prototype.hasOwnProperty.call(so,EventNameToAttribute[BuildInEventName["function.output"]]);if(!io&&!uo&&!ho){no(!1);return}no(!0)},[to,no])};function isObject$3(eo){return Object.prototype.toString.call(eo)==="[object Object]"}function objectSize(eo){return Array.isArray(eo)?eo.length:isObject$3(eo)?Object.keys(eo).length:0}function stringifyForCopying(eo,to){if(typeof eo=="string")return eo;try{return JSON.stringify(eo,(no,io)=>{switch(typeof io){case"bigint":return String(io)+"n";case"number":case"boolean":case"object":case"string":return io;default:return String(io)}},to)}catch(no){return`${no.name}: ${no.message}`||"JSON.stringify failed"}}function isCollapsed(eo,to,no,io,so,ao){if(ao&&ao.collapsed!==void 0)return!!ao.collapsed;if(typeof io=="boolean")return io;if(typeof io=="number"&&to>io)return!0;const lo=objectSize(eo);if(typeof io=="function"){const uo=safeCall(io,[{node:eo,depth:to,indexOrName:no,size:lo}]);if(typeof uo=="boolean")return uo}return!!(Array.isArray(eo)&&lo>so||isObject$3(eo)&&lo>so)}function isCollapsed_largeArray(eo,to,no,io,so,ao){if(ao&&ao.collapsed!==void 0)return!!ao.collapsed;if(typeof io=="boolean")return io;if(typeof io=="number"&&to>io)return!0;const lo=Math.ceil(eo.length/100);if(typeof io=="function"){const uo=safeCall(io,[{node:eo,depth:to,indexOrName:no,size:lo}]);if(typeof uo=="boolean")return uo}return!!(Array.isArray(eo)&&lo>so||isObject$3(eo)&&lo>so)}function ifDisplay(eo,to,no){return typeof eo=="boolean"?eo:!!(typeof eo=="number"&&to>eo||eo==="collapsed"&&no||eo==="expanded"&&!no)}function safeCall(eo,to){try{return eo(...to)}catch(no){reportError(no)}}function editableAdd(eo){if(eo===!0||isObject$3(eo)&&eo.add===!0)return!0}function editableEdit(eo){if(eo===!0||isObject$3(eo)&&eo.edit===!0)return!0}function editableDelete(eo){if(eo===!0||isObject$3(eo)&&eo.delete===!0)return!0}function isReactComponent(eo){return typeof eo=="function"}function customAdd(eo){return!eo||eo.add===void 0||!!eo.add}function customEdit(eo){return!eo||eo.edit===void 0||!!eo.edit}function customDelete(eo){return!eo||eo.delete===void 0||!!eo.delete}function customCopy(eo){return!eo||eo.enableClipboard===void 0||!!eo.enableClipboard}function customMatchesURL(eo){return!eo||eo.matchesURL===void 0||!!eo.matchesURL}function resolveEvalFailedNewValue(eo,to){return eo==="string"?to.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):to}var _path$8;function _extends$8(){return _extends$8=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{so.stopPropagation();const ao=to(eo);typeof ao=="string"&&ao&&navigator.clipboard.writeText(ao),io(!0),setTimeout(()=>io(!1),3e3)},className:"json-view--copy"})}function NameValue({indexOrName:eo,value:to,depth:no,parent:io,deleteHandle:so,editHandle:ao}){return jsxRuntimeExports.jsxs("div",Object.assign({className:"json-view--pair"},{children:[jsxRuntimeExports.jsx("span",Object.assign({className:typeof eo=="number"?"json-view--index":"json-view--property"},{children:eo})),":"," ",jsxRuntimeExports.jsx(JsonNode,{node:to,depth:no+1,deleteHandle:so,editHandle:ao,parent:io,indexOrName:eo})]}))}var _path$5,_path2$4;function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{eo[Oo]=No,go&&go({newValue:No,oldValue:Mo,depth:no,src:ho,indexOrName:Oo,parentType:"array"}),mo&&mo({type:"edit",depth:no,src:ho,indexOrName:Oo,parentType:"array"}),yo()},[to,go,mo,yo]),$o=Oo=>{eo.splice(Oo,1),yo()},Ro=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!_o&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>ko(!0),className:"jv-size-chevron"},{children:[ifDisplay(So,no,_o)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(to)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),!_o&&uo&&customCopy(ao)&&jsxRuntimeExports.jsx(CopyButton$2,{node:to})]});return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{children:"["}),Ro,_o?jsxRuntimeExports.jsxs("button",Object.assign({onClick:()=>ko(!1),className:"jv-button"},{children:[lo," ... ",lo+to.length-1]})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:to.map((Oo,No)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:No+lo,value:Oo,depth:no,parent:to,deleteHandle:$o,editHandle:Co},String(io)+String(No)))})),jsxRuntimeExports.jsx("span",{children:"]"})]})}function LargeArray({node:eo,depth:to,deleteHandle:no,indexOrName:io,customOptions:so}){const ao=[];for(let Yo=0;Yo{Oo(isCollapsed_largeArray(eo,to,io,lo,ho,so))},[lo,ho]);const[No,Mo]=reactExports.useState(!1),Bo=()=>{Mo(!1),no&&no(io),mo&&mo({value:eo,depth:to,src:yo,indexOrName:io,parentType:"array"}),ko&&ko({type:"delete",depth:to,src:yo,indexOrName:io,parentType:"array"})},[Po,Lo]=reactExports.useState(!1),Go=()=>{const Yo=eo;Yo.push(null),So&&So({indexOrName:Yo.length-1,depth:to,src:yo,parentType:"array"}),ko&&ko({type:"add",indexOrName:Yo.length-1,depth:to,src:yo,parentType:"array"}),Co()},Do=No||Po,Uo=()=>{Mo(!1),Lo(!1)},Ho=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!Ro&&!Do&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>Oo(!0),className:"jv-size-chevron"},{children:[ifDisplay($o,to,Ro)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[eo.length," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),Do&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:Po?Go:Bo}),Do&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:Uo}),!Ro&&!Do&&uo&&customCopy(so)&&jsxRuntimeExports.jsx(CopyButton$2,{node:eo}),!Ro&&!Do&&editableAdd(go)&&customAdd(so)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{Go()}}),!Ro&&!Do&&editableDelete(go)&&customDelete(so)&&no&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>Mo(!0)})]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),Ho,Ro?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>Oo(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:ao.map((Yo,qo)=>jsxRuntimeExports.jsx(LargeArrayNode,{originNode:eo,node:Yo,depth:to,index:qo,startIndex:qo*100},String(io)+String(qo)))})),jsxRuntimeExports.jsx("span",{children:"]"}),Ro&&ifDisplay($o,to,Ro)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>Oo(!1),className:"jv-size"},{children:[eo.length," Items"]}))]})}function ObjectNode({node:eo,depth:to,indexOrName:no,deleteHandle:io,customOptions:so}){const{collapsed:ao,enableClipboard:lo,ignoreLargeArray:uo,collapseObjectsAfterLength:ho,editable:go,onDelete:mo,src:yo,onAdd:So,onEdit:_o,onChange:ko,forceUpdate:Co,displaySize:$o}=reactExports.useContext(JsonViewContext);if(!uo&&Array.isArray(eo)&&eo.length>100)return jsxRuntimeExports.jsx(LargeArray,{node:eo,depth:to,indexOrName:no,deleteHandle:io,customOptions:so});const Ro=isObject$3(eo),[Oo,No]=reactExports.useState(isCollapsed(eo,to,no,ao,ho,so));reactExports.useEffect(()=>{No(isCollapsed(eo,to,no,ao,ho,so))},[ao,ho]);const Mo=reactExports.useCallback((hs,gs,ys)=>{Array.isArray(eo)?eo[+hs]=gs:eo&&(eo[hs]=gs),_o&&_o({newValue:gs,oldValue:ys,depth:to,src:yo,indexOrName:hs,parentType:Ro?"object":"array"}),ko&&ko({type:"edit",depth:to,src:yo,indexOrName:hs,parentType:Ro?"object":"array"}),Co()},[eo,_o,ko,Co]),Bo=hs=>{Array.isArray(eo)?eo.splice(+hs,1):eo&&delete eo[hs],Co()},[Po,Lo]=reactExports.useState(!1),Go=()=>{Lo(!1),io&&io(no),mo&&mo({value:eo,depth:to,src:yo,indexOrName:no,parentType:Ro?"object":"array"}),ko&&ko({type:"delete",depth:to,src:yo,indexOrName:no,parentType:Ro?"object":"array"})},[Do,Uo]=reactExports.useState(!1),Ho=reactExports.useRef(null),Yo=()=>{var hs;if(Ro){const gs=(hs=Ho.current)===null||hs===void 0?void 0:hs.value;gs&&(eo[gs]=null,Ho.current&&(Ho.current.value=""),Uo(!1),So&&So({indexOrName:gs,depth:to,src:yo,parentType:"object"}),ko&&ko({type:"add",indexOrName:gs,depth:to,src:yo,parentType:"object"}))}else if(Array.isArray(eo)){const gs=eo;gs.push(null),So&&So({indexOrName:gs.length-1,depth:to,src:yo,parentType:"array"}),ko&&ko({type:"add",indexOrName:gs.length-1,depth:to,src:yo,parentType:"array"})}Co()},qo=hs=>{hs.key==="Enter"?(hs.preventDefault(),Yo()):hs.key==="Escape"&&ps()},Jo=Po||Do,ps=()=>{Lo(!1),Uo(!1)},Qo=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!Oo&&!Jo&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>No(!0),className:"jv-size-chevron"},{children:[ifDisplay($o,to,Oo)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(eo)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),Do&&Ro&&jsxRuntimeExports.jsx("input",{className:"json-view--input",placeholder:"property",ref:Ho,onKeyDown:qo}),Jo&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:Do?Yo:Go}),Jo&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:ps}),!Oo&&!Jo&&lo&&customCopy(so)&&jsxRuntimeExports.jsx(CopyButton$2,{node:eo}),!Oo&&!Jo&&editableAdd(go)&&customAdd(so)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{Ro?(Uo(!0),setTimeout(()=>{var hs;return(hs=Ho.current)===null||hs===void 0?void 0:hs.focus()})):Yo()}}),!Oo&&!Jo&&editableDelete(go)&&customDelete(so)&&io&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>Lo(!0)})]});return Array.isArray(eo)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),Qo,Oo?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>No(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:eo.map((hs,gs)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:gs,value:hs,depth:to,parent:eo,deleteHandle:Bo,editHandle:Mo},String(no)+String(gs)))})),jsxRuntimeExports.jsx("span",{children:"]"}),Oo&&ifDisplay($o,to,Oo)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>No(!1),className:"jv-size"},{children:[objectSize(eo)," Items"]}))]}):Ro?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),Qo,Oo?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>No(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(eo).map(([hs,gs])=>jsxRuntimeExports.jsx(NameValue,{indexOrName:hs,value:gs,depth:to,parent:eo,deleteHandle:Bo,editHandle:Mo},String(no)+String(hs)))})),jsxRuntimeExports.jsx("span",{children:"}"}),Oo&&ifDisplay($o,to,Oo)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>No(!1),className:"jv-size"},{children:[objectSize(eo)," Items"]}))]}):null}const LongString=React.forwardRef(({str:eo,className:to,ctrlClick:no},io)=>{let{collapseStringMode:so,collapseStringsAfterLength:ao,customizeCollapseStringUI:lo}=reactExports.useContext(JsonViewContext);const[uo,ho]=reactExports.useState(!0),go=reactExports.useRef(null);ao=ao>0?ao:0;const mo=eo.replace(/\s+/g," "),yo=typeof lo=="function"?lo(mo,uo):typeof lo=="string"?lo:"...",So=_o=>{var ko;if((_o.ctrlKey||_o.metaKey)&&no)no(_o);else{const Co=window.getSelection();if(Co&&Co.anchorOffset!==Co.focusOffset&&((ko=Co.anchorNode)===null||ko===void 0?void 0:ko.parentElement)===go.current)return;ho(!uo)}};if(eo.length<=ao)return jsxRuntimeExports.jsxs("span",Object.assign({ref:go,className:to,onClick:no},{children:['"',eo,'"']}));if(so==="address")return eo.length<=10?jsxRuntimeExports.jsxs("span",Object.assign({ref:go,className:to,onClick:no},{children:['"',eo,'"']})):jsxRuntimeExports.jsxs("span",Object.assign({ref:go,onClick:So,className:to+" cursor-pointer"},{children:['"',uo?[mo.slice(0,6),yo,mo.slice(-4)]:eo,'"']}));if(so==="directly")return jsxRuntimeExports.jsxs("span",Object.assign({ref:go,onClick:So,className:to+" cursor-pointer"},{children:['"',uo?[mo.slice(0,ao),yo]:eo,'"']}));if(so==="word"){let _o=ao,ko=ao+1,Co=mo,$o=1;for(;;){if(/\W/.test(eo[_o])){Co=eo.slice(0,_o);break}if(/\W/.test(eo[ko])){Co=eo.slice(0,ko);break}if($o===6){Co=eo.slice(0,ao);break}$o++,_o--,ko++}return jsxRuntimeExports.jsxs("span",Object.assign({ref:go,onClick:So,className:to+" cursor-pointer"},{children:['"',uo?[Co,yo]:eo,'"']}))}return jsxRuntimeExports.jsxs("span",Object.assign({ref:go,className:to},{children:['"',eo,'"']}))});var _path$1;function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{setEditing(!0),setTimeout(()=>{var eo,to;(eo=window.getSelection())===null||eo===void 0||eo.selectAllChildren(valueRef.current),(to=valueRef.current)===null||to===void 0||to.focus()})},done=reactExports.useCallback(()=>{let newValue=valueRef.current.innerText;try{(newValue==="{}"||newValue==="[]")&&(newValue=`(${newValue})`);const evalValue=eval(newValue);editHandle&&editHandle(indexOrName,evalValue,node)}catch(eo){const to=resolveEvalFailedNewValue(type,newValue);editHandle&&editHandle(indexOrName,to,node)}setEditing(!1)},[editHandle]),cancel=()=>{setEditing(!1),setDeleting(!1)},deleteHandle=()=>{setDeleting(!1),_deleteHandle&&_deleteHandle(indexOrName),onDelete&&onDelete({value:node,depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object"}),onChange&&onChange({depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object",type:"delete"})},handleKeyDown=reactExports.useCallback(eo=>{eo.key==="Enter"?(eo.preventDefault(),done()):eo.key==="Escape"&&cancel()},[done]),isEditing=editing||deleting,ctrlClick=!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle?eo=>{(eo.ctrlKey||eo.metaKey)&&edit()}:void 0,Icons=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[isEditing&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:deleting?deleteHandle:done}),isEditing&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:cancel}),!isEditing&&enableClipboard&&customCopy(customReturn)&&jsxRuntimeExports.jsx(CopyButton$2,{node}),!isEditing&&matchesURL&&type==="string"&&urlRegExp.test(node)&&customMatchesURL(customReturn)&&jsxRuntimeExports.jsx("a",Object.assign({href:node,target:"_blank",className:"json-view--link"},{children:jsxRuntimeExports.jsx(SvgLink,{})})),!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle&&jsxRuntimeExports.jsx(SvgEdit,{className:"json-view--edit",onClick:edit}),!isEditing&&editableDelete(editable)&&customDelete(customReturn)&&_deleteHandle&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>setDeleting(!0)})]});let className="json-view--string";switch(typeof(customReturn==null?void 0:customReturn.className)=="string"&&(className+=" "+customReturn.className),type){case"number":case"bigint":className="json-view--number";break;case"boolean":className="json-view--boolean";break;case"object":className="json-view--null";break}deleting&&(className+=" json-view--deleting");let displayValue=String(node);type==="bigint"&&(displayValue+="n");const EditingElement=reactExports.useMemo(()=>jsxRuntimeExports.jsx("span",{contentEditable:!0,className,dangerouslySetInnerHTML:{__html:type==="string"?`"${displayValue}"`:displayValue},ref:valueRef,onKeyDown:handleKeyDown}),[displayValue,type,handleKeyDown]);return type==="string"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:node.length>collapseStringsAfterLength?jsxRuntimeExports.jsx(LongString,{str:node,ref:valueRef,className,ctrlClick}):jsxRuntimeExports.jsxs("span",Object.assign({className,onClick:ctrlClick},{children:['"',displayValue,'"']})),Icons]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:jsxRuntimeExports.jsx("span",Object.assign({className,onClick:ctrlClick},{children:displayValue})),Icons]})}}const defaultURLRegExp=/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,JsonViewContext=reactExports.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",customizeCollapseStringUI:void 0,collapseObjectsAfterLength:20,collapsed:!1,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,customizeCopy:()=>{},displaySize:void 0,matchesURL:!1,urlRegExp:defaultURLRegExp,ignoreLargeArray:!1});function JsonView({src:eo,collapseStringsAfterLength:to=99,collapseStringMode:no="directly",customizeCollapseStringUI:io,collapseObjectsAfterLength:so=99,collapsed:ao,enableClipboard:lo=!0,editable:uo=!1,onEdit:ho,onDelete:go,onAdd:mo,onChange:yo,dark:So=!1,theme:_o="default",customizeNode:ko,customizeCopy:Co=stringifyForCopying,displaySize:$o,style:Ro,className:Oo,matchesURL:No=!1,urlRegExp:Mo=defaultURLRegExp,ignoreLargeArray:Bo=!1}){const[Po,Lo]=reactExports.useState(0),Go=reactExports.useCallback(()=>Lo(Ho=>++Ho),[]),[Do,Uo]=reactExports.useState(eo);return reactExports.useEffect(()=>Uo(eo),[eo]),jsxRuntimeExports.jsx(JsonViewContext.Provider,Object.assign({value:{src:Do,collapseStringsAfterLength:to,collapseStringMode:no,customizeCollapseStringUI:io,collapseObjectsAfterLength:so,collapsed:ao,enableClipboard:lo,editable:uo,onEdit:ho,onDelete:go,onAdd:mo,onChange:yo,forceUpdate:Go,customizeNode:ko,customizeCopy:Co,displaySize:$o,matchesURL:No,urlRegExp:Mo,ignoreLargeArray:Bo}},{children:jsxRuntimeExports.jsx("code",Object.assign({className:"json-view"+(So?" dark":"")+(_o&&_o!=="default"?" json-view_"+_o:"")+(Oo?" "+Oo:""),style:Ro},{children:jsxRuntimeExports.jsx(JsonNode,{node:Do,depth:1,editHandle:(Ho,Yo,qo)=>{Uo(Yo),ho&&ho({newValue:Yo,oldValue:qo,depth:1,src:Do,indexOrName:Ho,parentType:null}),yo&&yo({type:"edit",depth:1,src:Do,indexOrName:Ho,parentType:null})},deleteHandle:()=>{Uo(void 0),go&&go({value:Do,depth:1,src:Do,indexOrName:"",parentType:null}),yo&&yo({depth:1,src:Do,indexOrName:"",parentType:null,type:"delete"})}})}))}))}const ImageViewer=({src:eo,width:to=100,height:no=100,enablePopUpImageViewer:io=!0})=>{const[so,ao]=reactExports.useState(!1),lo=useClasses$s(),[uo,ho]=reactExports.useState(!1),go=eo.startsWith('"')&&eo.endsWith('"')?eo.slice(1,-1):eo,mo=()=>{ao(!0)},yo=()=>{ao(!1)},So=()=>{io&&ho(!0)},_o=()=>{ao(!1),ho(!1)};return jsxRuntimeExports.jsxs("div",{className:lo.container,style:{maxWidth:`${to}px`,maxHeight:`${no}px`},onMouseEnter:io?mo:void 0,onMouseLeave:io?yo:void 0,children:[jsxRuntimeExports.jsx(Image$2,{src:go,className:lo.image,onClick:So,fit:"contain",alt:"image"}),io&&jsxRuntimeExports.jsxs(Dialog,{open:uo,children:[jsxRuntimeExports.jsx(DialogTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx(Button$2,{className:lo.button,onClick:So,size:"small",style:{display:so?"block":"none"},children:"View"})}),jsxRuntimeExports.jsx(DialogSurface,{children:jsxRuntimeExports.jsxs(DialogBody,{children:[jsxRuntimeExports.jsx(DialogTitle,{children:"Image Viewer"}),jsxRuntimeExports.jsx(DialogContent,{children:jsxRuntimeExports.jsx(Image$2,{src:go,className:lo.image,onClick:So,fit:"contain",alt:"image"})}),jsxRuntimeExports.jsx(DialogActions,{children:jsxRuntimeExports.jsx(Button$2,{appearance:"secondary",onClick:_o,children:"Close"})})]})})]})]})},useClasses$s=makeStyles({container:{position:"relative",display:"inline-block"},image:{cursor:"pointer",maxWidth:"100%",maxHeight:"calc(100% - 20px)"},button:{position:"absolute",top:"50%",left:"50%",cursor:"pointer",transform:"translate(-50%, -50%)"}}),JsonViewer=eo=>{const{src:to,disableCustomCollapse:no,customizeNode:io,enablePopUpImageViewer:so,...ao}=eo,[lo,uo]=React.useState(to);React.useEffect(()=>{if(typeof to=="string")try{const go=JSON.parse(to);uo(go)}catch{if(isJsonl(to)){const mo=safelyParseJsonLines(to);uo(mo)}else uo(to)}},[to]);const ho=go=>{const{node:mo}=go,yo=io&&io(go);if(yo)return yo;if(isImageValue(mo))return jsxRuntimeExports.jsx(ImageViewer,{src:mo,enablePopUpImageViewer:so})};return jsxRuntimeExports.jsx(JsonView,{src:lo,customizeCollapseStringUI:no?void 0:()=>jsxRuntimeExports.jsx(ExpandButton,{}),customizeNode:ho,...ao})},isImageValue=eo=>!!(typeof eo=="string"&&(eo.startsWith("data:image/")||eo.startsWith('"data:image/'))),ExpandButton=()=>{const eo=useClasses$r();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["...",jsxRuntimeExports.jsxs("div",{className:eo.btn,children:[jsxRuntimeExports.jsx(ChevronDown16Regular,{className:eo.icon}),jsxRuntimeExports.jsx("span",{className:eo.text,children:"view all"})]})]})},useClasses$r=makeStyles({btn:{display:"inline-flex",pointer:"cursor",alignItems:"center",...shorthands.padding(0),paddingLeft:"4px",...shorthands.margin(0),fontWeight:400,color:"#A3BEE9"},icon:{height:"12px",width:"12px",...shorthands.padding(0),...shorthands.margin(0)},text:{fontSize:"12px",...shorthands.padding(0),...shorthands.margin(0)}}),JsonNodeCard=({title:eo,src:to,wrapperStyle:no={},status:io=ViewStatus.loaded,errorTip:so=null,jsonViewerProps:ao={}})=>{let lo="";if(typeof to=="string")try{lo=JSON.parse(to)}catch{lo=to}else typeof to=="object"&&(lo=to);const uo=useIsDark();return jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,...no},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:eo})})}),io===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),io===ViewStatus.loaded&&jsxRuntimeExports.jsx(JsonViewer,{src:lo,theme:"vscode",dark:uo,collapseStringsAfterLength:300,...ao}),io===ViewStatus.error&&so]})},DefaultNodeInfo=()=>{var ko,Co,$o,Ro;const eo=useSelectedSpan(),to=(ko=getSpanType(eo))==null?void 0:ko.toLocaleLowerCase(),no=useLocStrings(),[io,so]=reactExports.useState(ViewStatus.loading),[ao,lo]=reactExports.useState(ViewStatus.loading),uo=getSpanEventsWithPayload(eo,BuildInEventName["function.inputs"]),ho=getSpanEventsWithPayload(eo,BuildInEventName["llm.generated_message"]),go=useLoadSpanEvents(eo,BuildInEventName["function.inputs"]),mo=useLoadSpanEvents(eo,BuildInEventName["llm.generated_message"]);let yo=getSpanEventsWithPayload(eo,BuildInEventName["function.output"]),So=useLoadSpanEvents(eo,BuildInEventName["function.output"]);to==="llm"&&ho.length>0&&(yo=ho,So=mo);let _o=(Co=eo==null?void 0:eo.attributes)==null?void 0:Co.output;return to==="llm"&&(_o=_o??(($o=eo==null?void 0:eo.attributes)==null?void 0:$o["llm.generated_message"])),reactExports.useEffect(()=>{so(ViewStatus.loading),go({onCompleted:Oo=>{so(Oo?ViewStatus.error:ViewStatus.loaded)}}),lo(ViewStatus.loading),So({onCompleted:Oo=>{lo(Oo?ViewStatus.error:ViewStatus.loaded)}})},[go,So]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[uo.length>0?jsxRuntimeExports.jsx(JsonNodeCard,{title:no.Input,status:io,src:uo.length===1?uo[0].attributes:uo,errorTip:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{so(ViewStatus.loading),go({onCompleted:Oo=>{so(Oo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(JsonNodeCard,{title:no.Input,src:(Ro=eo==null?void 0:eo.attributes)==null?void 0:Ro.inputs}),yo.length>0?jsxRuntimeExports.jsx(JsonNodeCard,{title:no.Output,status:ao,src:yo.length===1?yo[0].attributes:yo,errorTip:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{lo(ViewStatus.loading),So({onCompleted:Oo=>{lo(Oo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(JsonNodeCard,{title:no.Output,src:_o})]})},DefaultNodeLoadError=({onRetry:eo})=>{const to=useLocStrings();return jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",icon:jsxRuntimeExports.jsx(ErrorCircle16Filled,{style:{color:tokens$1.colorStatusDangerForeground1}}),style:{fontWeight:400},onClick:eo,children:to["Failed to load, click to try again"]})},CopyButton$1=({message:eo,latency:to=1e3,...no})=>{const[io,so]=reactExports.useState(!1),ao=lo=>{eo&&(lo.stopPropagation(),copy$5(eo),so(!0))};return reactExports.useEffect(()=>{if(io){const lo=setTimeout(()=>{so(!1)},to);return()=>clearTimeout(lo)}return()=>{}},[io,to]),jsxRuntimeExports.jsx(Button$2,{size:"small",onClick:ao,icon:io?jsxRuntimeExports.jsx(CheckmarkRegular,{}):jsxRuntimeExports.jsx(CopyRegular,{}),...no})},CollapsibleTextArea=({content:eo})=>{const[to,no]=reactExports.useState(!0),io=useClasses$q();return jsxRuntimeExports.jsxs("div",{className:io.wrapper,children:[jsxRuntimeExports.jsxs("div",{className:io.btnWrapper,children:[jsxRuntimeExports.jsx(CopyButton$1,{message:eo}),jsxRuntimeExports.jsx(Button$2,{icon:to?jsxRuntimeExports.jsx(TextWrapOff16Regular,{}):jsxRuntimeExports.jsx(TextWrap16Regular,{}),onClick:()=>no(!to),size:"small"})]}),jsxRuntimeExports.jsx("pre",{className:`${to&&io.wrap} ${io.pre}`,children:eo})]})},useClasses$q=makeStyles({wrapper:{width:"95%",height:"100%",paddingLeft:tokens$1.spacingHorizontalM,color:tokens$1.colorNeutralForeground1,display:"flex",flexDirection:"column"},btnWrapper:{display:"flex",flexDirection:"row",justifyContent:"flex-start",marginTop:"4px",marginBottom:"4px",...shorthands.gap("8px")},wrap:{wordBreak:"break-all",whiteSpace:"pre-wrap"},pre:{marginTop:0}}),ErrorsTab=()=>{var ho;const eo=useClasses$p(),to=useSelectedSpan(),no=((ho=to==null?void 0:to.events)==null?void 0:ho.filter(go=>go.name===BuildInEventName.exception))??[],io=useIsDark(),so=useLocStrings(),[ao,lo]=reactExports.useState(ViewStatus.loading),uo=useLoadSpanEvents(to,BuildInEventName.exception);return reactExports.useEffect(()=>{lo(ViewStatus.loading),uo({onCompleted:go=>{lo(go?ViewStatus.error:ViewStatus.loaded)}})},[uo]),no.length===0?jsxRuntimeExports.jsxs("div",{className:eo.emptyWrapper,children:[jsxRuntimeExports.jsx(ShieldCheckmark24Regular,{}),jsxRuntimeExports.jsxs(Text$2,{className:eo.emptyText,children:[" ",so.No_Exception_Found]})]}):ao===ViewStatus.loading?jsxRuntimeExports.jsx("div",{className:eo.emptyWrapper,children:jsxRuntimeExports.jsx(Spinner,{size:"tiny"})}):ao===ViewStatus.error?jsxRuntimeExports.jsx("div",{className:eo.emptyWrapper,children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{lo(ViewStatus.loading),uo({onCompleted:go=>{lo(go?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:no.map((go,mo)=>jsxRuntimeExports.jsx(Card,{className:eo.wrapper,children:jsxRuntimeExports.jsx(JsonViewer,{src:go,collapseStringsAfterLength:1e4,theme:"vscode",dark:io,customizeNode:({node:yo,indexOrName:So})=>{if((So==="exception.message"||So==="exception.stacktrace")&&typeof yo=="string")return jsxRuntimeExports.jsx(CollapsibleTextArea,{content:yo})}})},mo))})},useClasses$p=makeStyles({wrapper:{marginBottom:tokens$1.spacingVerticalM},emptyWrapper:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%"},emptyText:{paddingTop:tokens$1.spacingVerticalM}}),isElementOverflow=eo=>eo.scrollHeight>eo.clientHeight||eo.scrollWidth>eo.clientWidth,NodeEvalOutput=()=>{const eo=useClasses$o(),to=useLocStrings(),no=useSelectedTrace(),io=reactExports.useMemo(()=>{const so=(no==null?void 0:no.evaluations)??{};return Object.values(so).sort((ao,lo)=>ao.start_time&&lo.start_time?new Date(ao.start_time).getTime()>new Date(lo.start_time).getTime()?-1:1:0)},[no]);return jsxRuntimeExports.jsxs("div",{className:eo.wrapper,children:[jsxRuntimeExports.jsx("div",{className:eo.title,children:to.Evaluation_output}),jsxRuntimeExports.jsx("div",{className:eo.content,children:io.map((so,ao)=>jsxRuntimeExports.jsx(EvalOutputItem,{trace:so},`${so.name}_${ao}`))})]})},EvalOutputItem=({trace:eo})=>{const to=useClasses$o(),no=useLocStrings(),[io,so]=reactExports.useState(!1),ao=useTraceViewModel(),lo=checkStatus(eo.status,"error");return jsxRuntimeExports.jsxs("div",{className:mergeClasses(to.item,io?to.itemHover:""),onMouseEnter:()=>{so(!0)},onMouseLeave:()=>{so(!1)},onClick:()=>{ao.detailNavigateTo(eo)},children:[jsxRuntimeExports.jsx("div",{className:to.itemTitle,children:eo.name}),eo.start_time?jsxRuntimeExports.jsxs("div",{className:to.itemTime,children:[jsxRuntimeExports.jsx(Clock12Regular,{}),jsxRuntimeExports.jsxs("span",{children:[no.Created_on,": ",timeFormat$1(eo.start_time)]})]}):null,lo?jsxRuntimeExports.jsxs("div",{className:to.itemError,children:[jsxRuntimeExports.jsx(DismissCircle12Filled,{className:to.errorColor}),jsxRuntimeExports.jsx("span",{children:no["Evaluation run failed"]})]}):jsxRuntimeExports.jsx("div",{className:to.itemContent,children:eo.outputs!==null&&typeof eo.outputs=="object"&&Object.entries(eo.outputs).map(([uo,ho])=>jsxRuntimeExports.jsx(EvalOutputItemMetric,{k:uo,v:ho,setIsHover:so},uo))})]})},EvalOutputItemMetric=({k:eo,v:to,setIsHover:no})=>{const io=useClasses$o(),so=reactExports.useRef(null),[ao,lo]=reactExports.useState(!1),uo=JSON.stringify(to),ho=jsxRuntimeExports.jsxs("div",{ref:so,className:io.itemMetric,onMouseEnter:()=>{no(!1)},onMouseLeave:()=>{no(!0)},onClick:go=>(go.preventDefault(),go.stopPropagation(),!1),children:[eo,": ",uo]});return reactExports.useEffect(()=>{const go=so.current?isElementOverflow(so.current):!1;lo(go)},[]),ao?jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs("div",{children:[eo,":",jsxRuntimeExports.jsx("br",{}),uo]}),relationship:"description",positioning:"below",children:ho}):ho},useClasses$o=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},title:{height:"52px",boxSizing:"border-box",...shorthands.padding("16px"),fontSize:"14px",fontWeight:600},content:{...shorthands.flex(1),...shorthands.overflow("auto"),...shorthands.padding("0","16px")},item:{position:"relative",width:"200px",...shorthands.border("1px","solid",tokens$1.colorNeutralStroke2),...shorthands.borderRadius("4px"),marginBottom:"16px",...shorthands.padding("12px"),fontSize:"12px",cursor:"pointer"},itemHover:{backgroundColor:tokens$1.colorNeutralBackground1Hover},itemTitle:{height:"16px",lineHeight:"16px",color:tokens$1.colorNeutralForeground2},itemTime:{display:"flex",alignItems:"center",...shorthands.gap("4px"),marginTop:"8px","& span":{color:tokens$1.colorNeutralForeground2}},itemError:{display:"flex",alignItems:"center",...shorthands.gap("4px"),marginTop:"8px","& span":{color:tokens$1.colorNeutralForeground2,fontWeight:600}},itemContent:{...shorthands.overflow("hidden"),marginLeft:"-8px"},itemMetric:{float:"left",width:"fit-content",maxWidth:"100%",marginTop:"8px",marginLeft:"8px",...shorthands.padding("2px","8px"),display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",textOverflow:"ellipsis",wordBreak:"break-all",...shorthands.overflow("hidden"),...shorthands.border("1px","solid",tokens$1.colorNeutralStroke1),...shorthands.borderRadius("4px"),backgroundColor:tokens$1.colorNeutralBackground1},errorColor:{color:tokens$1.colorPaletteRedForeground1}}),NodeRawCard=()=>{const eo=useSelectedSpan(),to=useSpanEventsLoadStatus(),no=useIsLazyLoadSpan(),io=useLocStrings(),[,so]=reactExports.useReducer(yo=>yo+1,0),ao=!!(eo!=null&&eo.span_json_uri),[lo,uo]=reactExports.useState(ViewStatus.loading),[ho,go]=reactExports.useState(void 0),mo=useFetchSpanRawJson(eo);return reactExports.useEffect(()=>{if(!ao){uo(ViewStatus.loaded);return}uo(ViewStatus.loading),mo({onCompleted:(yo,So)=>{if(yo){uo(ViewStatus.error);return}go(So),uo(ViewStatus.loaded)}})},[ao,mo]),jsxRuntimeExports.jsx(JsonNodeCard,{title:io.Raw_JSON,src:ao?ho:eo,status:lo,errorTip:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{uo(ViewStatus.loading),mo({onCompleted:(yo,So)=>{if(yo){uo(ViewStatus.error);return}uo(ViewStatus.loaded),go(So)}})}}),jsonViewerProps:{customizeNode:({depth:yo,indexOrName:So,node:_o})=>{var Co,$o;if(ao)return;if(yo===3&&typeof So=="number"&&typeof _o.name=="string"&&typeof _o.timestamp=="string"&&typeof _o.attributes=="object"){const Ro=`${(Co=eo==null?void 0:eo.context)==null?void 0:Co.span_id}__${($o=eo==null?void 0:eo.external_event_data_uris)==null?void 0:$o[So]}`;return!no||to.get(Ro)==="success"?void 0:jsxRuntimeExports.jsx(NodeEventItem,{name:_o.name,index:So,timestamp:_o.timestamp,forceUpdate:so})}}}})},NodeEventItem=({index:eo,name:to,timestamp:no,forceUpdate:io})=>{const so=useSelectedSpan(),ao=useLocStrings(),lo=useLoadSpanEvents(so,to,eo),[uo,ho]=reactExports.useState(ViewStatus.hidden);if(uo===ViewStatus.loaded)return io(),null;let go=ao.load_all;return uo===ViewStatus.loading?go=ao.loading:uo===ViewStatus.error&&(go=ao["Failed to load, click to try again"]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),jsxRuntimeExports.jsxs("div",{style:{paddingLeft:"1em"},children:[jsxRuntimeExports.jsx("span",{style:{color:"var(--json-property)"},children:"name:"}),jsxRuntimeExports.jsx("span",{style:{color:"var(--json-string)"},children:` "${to}",`})]}),jsxRuntimeExports.jsxs("div",{style:{paddingLeft:"1em"},children:[jsxRuntimeExports.jsx("span",{style:{color:"var(--json-property)"},children:"timestamp:"}),jsxRuntimeExports.jsx("span",{style:{color:"var(--json-string)"},children:` "${no}",`})]}),jsxRuntimeExports.jsx("div",{style:{paddingLeft:"1em"},children:jsxRuntimeExports.jsxs(Button$2,{size:"small",appearance:"transparent",style:{padding:0,color:"rgb(163, 190, 233)",justifyContent:"flex-start"},onClick:()=>{ho(ViewStatus.loading),lo({onCompleted:mo=>{ho(mo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})},children:["... ",go]})}),jsxRuntimeExports.jsx("span",{children:"}"})]})},GeneralErrorBar=({title:eo,message:to,onClick:no,enableCopy:io})=>{const so=useClasses$n();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",onClick:no,className:so.bar,children:jsxRuntimeExports.jsxs(MessageBarBody,{className:so.body,children:[jsxRuntimeExports.jsxs(MessageBarTitle,{children:[" ",eo]}),to&&jsxRuntimeExports.jsx(Tooltip,{content:to||"",relationship:"description",children:jsxRuntimeExports.jsxs("span",{className:so.text,children:[" ",to]})}),io&&jsxRuntimeExports.jsx(CopyButton$1,{className:so.copy,message:to})]})})},useClasses$n=makeStyles({bar:{cursor:"pointer",display:"flex",justifyContent:"start",itemAlign:"center",...shorthands.margin("8px","8px",0,"8px"),...shorthands.padding("8px")},body:{display:"flex",...shorthands.flex(0,1,"auto"),...shorthands.overflow("hidden")},text:{...shorthands.flex(0,1,"auto"),...shorthands.overflow("hidden"),whiteSpace:"nowrap",textOverflow:"ellipsis",paddingLeft:"6px"},copy:{marginLeft:"12px",marginRight:"-12px"}}),SpanDetailErrorMessageBar=({setSelectedTab:eo})=>{var io,so;const to=useSelectedSpan(),no=useLocStrings();return((so=(io=to==null?void 0:to.status)==null?void 0:io.status_code)==null?void 0:so.toLowerCase())==="error"?jsxRuntimeExports.jsx(GeneralErrorBar,{title:no.Error,message:to.status.description,onClick:()=>{eo("error")},enableCopy:!0}):null},OverflowMenuItem=eo=>{const{tab:to,onClick:no}=eo;return useIsOverflowItemVisible(to.key)?null:jsxRuntimeExports.jsx(MenuItem,{onClick:no,children:jsxRuntimeExports.jsxs("div",{children:[to.name,to.icon&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",to.icon]})]})},to.key)},useOverflowMenuStyles=makeStyles({menu:{backgroundColor:tokens$1.colorNeutralBackground1},menuButton:{alignSelf:"center"}}),MoreHorizontal=bundleIcon$1(MoreHorizontalFilled,MoreHorizontalRegular),OverflowMenu=eo=>{const{onTabSelect:to,tabs:no}=eo,{ref:io,isOverflowing:so,overflowCount:ao}=useOverflowMenu(),lo=useOverflowMenuStyles(),uo=ho=>{to==null||to(ho)};return so?jsxRuntimeExports.jsxs(Menu,{hasIcons:!0,children:[jsxRuntimeExports.jsx(MenuTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",className:lo.menuButton,ref:io,icon:jsxRuntimeExports.jsx(MoreHorizontal,{}),"aria-label":`${ao} more tabs`,role:"tab"})}),jsxRuntimeExports.jsx(MenuPopover,{children:jsxRuntimeExports.jsx(MenuList,{className:lo.menu,children:no.map(ho=>jsxRuntimeExports.jsx(OverflowMenuItem,{tab:ho,onClick:()=>uo(ho.key)},ho.key))})})]}):null},SpanDetailTabs=({tabs:eo,selectedTab:to,setSelectedTab:no})=>jsxRuntimeExports.jsx(Overflow,{minimumVisible:1,children:jsxRuntimeExports.jsxs(TabList,{selectedValue:to,onTabSelect:(io,so)=>{no(so.value)},children:[eo.map(io=>jsxRuntimeExports.jsx(OverflowItem,{id:io.key,priority:io.key===to?2:1,children:jsxRuntimeExports.jsxs(Tab$1,{value:io.key,children:[io.name,io.icon&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",io.icon]})]})},io.key)),jsxRuntimeExports.jsx(OverflowMenu,{onTabSelect:no,tabs:eo})]})}),DefaultSpanDetailContent=({showEvaluationPanel:eo,showLogs:to,renderLogsPivot:no})=>{var Co;const io=useSelectedSpan(),so=useSelectedTrace(),[ao,lo]=reactExports.useState("input_output"),uo=useNodeDetailClasses(),ho=useLocStrings(),go=(Co=io==null?void 0:io.events)==null?void 0:Co.filter($o=>$o.name===BuildInEventName.exception),mo=(go==null?void 0:go.length)??0,[yo,So]=reactExports.useState(!1);useHasInputsOrOutput($o=>{So($o),$o||lo("raw")});const _o=[...yo?[{key:"input_output",name:ho["Input_&_Output"]}]:[],{key:"raw",name:ho.Raw_JSON},{key:"error",name:ho.Exception,icon:jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:mo>0?"danger":"informative",count:mo,size:"small",showZero:!0})}],ko=to&&io&&so&&(no==null?void 0:no({currentSpan:io,currentTrace:so}));return ko&&_o.push({key:"logs",name:ho.Logs}),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:uo.layoutLeft,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:_o,selectedTab:ao,setSelectedTab:lo}),jsxRuntimeExports.jsx(SpanDetailErrorMessageBar,{setSelectedTab:lo}),jsxRuntimeExports.jsxs("div",{className:uo.content,children:[ao==="input_output"&&jsxRuntimeExports.jsx(DefaultNodeInfo,{}),ao==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),ao==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{}),ao==="logs"&&ko]})]}),eo&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:uo.divider}),jsxRuntimeExports.jsx("div",{className:uo.layoutRight,children:jsxRuntimeExports.jsx(NodeEvalOutput,{})})]})]})},BlockquoteType="blockquote",BreakType="break",CodeType="code",DefinitionType="definition",DeleteType="delete",EmphasisType="emphasis",HeadingType="heading",HtmlType="html";var HtmlContentType;(function(eo){eo.CDATA="cdata",eo.Closing="closing",eo.Comment="comment",eo.Declaration="declaration",eo.Instruction="instruction",eo.Open="open"})(HtmlContentType||(HtmlContentType={}));const ImageReferenceType="imageReference",ImageType$1="image",InlineCodeType="inlineCode",LinkReferenceType="linkReference",LinkType="link",ListItemType="listItem";var TaskStatus;(function(eo){eo.TODO="todo",eo.DOING="doing",eo.DONE="done"})(TaskStatus||(TaskStatus={}));const ListType="list",ParagraphType$1="paragraph",StrongType="strong",TableCellType="tableCell",TableRowType="tableRow",TableType="table",TextType$1="text",ThematicBreakType="thematicBreak";var AsciiCodePoint;(function(eo){eo[eo.NUL=0]="NUL",eo[eo.SOH=1]="SOH",eo[eo.STX=2]="STX",eo[eo.ETX=3]="ETX",eo[eo.EOT=4]="EOT",eo[eo.ENQ=5]="ENQ",eo[eo.ACK=6]="ACK",eo[eo.BEL=7]="BEL",eo[eo.BS=8]="BS",eo[eo.HT=9]="HT",eo[eo.LF=10]="LF",eo[eo.VT=11]="VT",eo[eo.FF=12]="FF",eo[eo.CR=13]="CR",eo[eo.SO=14]="SO",eo[eo.SI=15]="SI",eo[eo.DLE=16]="DLE",eo[eo.DC1=17]="DC1",eo[eo.DC2=18]="DC2",eo[eo.DC3=19]="DC3",eo[eo.DC4=20]="DC4",eo[eo.NAK=21]="NAK",eo[eo.SYN=22]="SYN",eo[eo.ETB=23]="ETB",eo[eo.CAN=24]="CAN",eo[eo.EM=25]="EM",eo[eo.SUB=26]="SUB",eo[eo.ESC=27]="ESC",eo[eo.FS=28]="FS",eo[eo.GS=29]="GS",eo[eo.RS=30]="RS",eo[eo.US=31]="US",eo[eo.SPACE=32]="SPACE",eo[eo.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",eo[eo.DOUBLE_QUOTE=34]="DOUBLE_QUOTE",eo[eo.NUMBER_SIGN=35]="NUMBER_SIGN",eo[eo.DOLLAR_SIGN=36]="DOLLAR_SIGN",eo[eo.PERCENT_SIGN=37]="PERCENT_SIGN",eo[eo.AMPERSAND=38]="AMPERSAND",eo[eo.SINGLE_QUOTE=39]="SINGLE_QUOTE",eo[eo.OPEN_PARENTHESIS=40]="OPEN_PARENTHESIS",eo[eo.CLOSE_PARENTHESIS=41]="CLOSE_PARENTHESIS",eo[eo.ASTERISK=42]="ASTERISK",eo[eo.PLUS_SIGN=43]="PLUS_SIGN",eo[eo.COMMA=44]="COMMA",eo[eo.MINUS_SIGN=45]="MINUS_SIGN",eo[eo.DOT=46]="DOT",eo[eo.SLASH=47]="SLASH",eo[eo.DIGIT0=48]="DIGIT0",eo[eo.DIGIT1=49]="DIGIT1",eo[eo.DIGIT2=50]="DIGIT2",eo[eo.DIGIT3=51]="DIGIT3",eo[eo.DIGIT4=52]="DIGIT4",eo[eo.DIGIT5=53]="DIGIT5",eo[eo.DIGIT6=54]="DIGIT6",eo[eo.DIGIT7=55]="DIGIT7",eo[eo.DIGIT8=56]="DIGIT8",eo[eo.DIGIT9=57]="DIGIT9",eo[eo.COLON=58]="COLON",eo[eo.SEMICOLON=59]="SEMICOLON",eo[eo.OPEN_ANGLE=60]="OPEN_ANGLE",eo[eo.EQUALS_SIGN=61]="EQUALS_SIGN",eo[eo.CLOSE_ANGLE=62]="CLOSE_ANGLE",eo[eo.QUESTION_MARK=63]="QUESTION_MARK",eo[eo.AT_SIGN=64]="AT_SIGN",eo[eo.UPPERCASE_A=65]="UPPERCASE_A",eo[eo.UPPERCASE_B=66]="UPPERCASE_B",eo[eo.UPPERCASE_C=67]="UPPERCASE_C",eo[eo.UPPERCASE_D=68]="UPPERCASE_D",eo[eo.UPPERCASE_E=69]="UPPERCASE_E",eo[eo.UPPERCASE_F=70]="UPPERCASE_F",eo[eo.UPPERCASE_G=71]="UPPERCASE_G",eo[eo.UPPERCASE_H=72]="UPPERCASE_H",eo[eo.UPPERCASE_I=73]="UPPERCASE_I",eo[eo.UPPERCASE_J=74]="UPPERCASE_J",eo[eo.UPPERCASE_K=75]="UPPERCASE_K",eo[eo.UPPERCASE_L=76]="UPPERCASE_L",eo[eo.UPPERCASE_M=77]="UPPERCASE_M",eo[eo.UPPERCASE_N=78]="UPPERCASE_N",eo[eo.UPPERCASE_O=79]="UPPERCASE_O",eo[eo.UPPERCASE_P=80]="UPPERCASE_P",eo[eo.UPPERCASE_Q=81]="UPPERCASE_Q",eo[eo.UPPERCASE_R=82]="UPPERCASE_R",eo[eo.UPPERCASE_S=83]="UPPERCASE_S",eo[eo.UPPERCASE_T=84]="UPPERCASE_T",eo[eo.UPPERCASE_U=85]="UPPERCASE_U",eo[eo.UPPERCASE_V=86]="UPPERCASE_V",eo[eo.UPPERCASE_W=87]="UPPERCASE_W",eo[eo.UPPERCASE_X=88]="UPPERCASE_X",eo[eo.UPPERCASE_Y=89]="UPPERCASE_Y",eo[eo.UPPERCASE_Z=90]="UPPERCASE_Z",eo[eo.OPEN_BRACKET=91]="OPEN_BRACKET",eo[eo.BACKSLASH=92]="BACKSLASH",eo[eo.CLOSE_BRACKET=93]="CLOSE_BRACKET",eo[eo.CARET=94]="CARET",eo[eo.UNDERSCORE=95]="UNDERSCORE",eo[eo.BACKTICK=96]="BACKTICK",eo[eo.LOWERCASE_A=97]="LOWERCASE_A",eo[eo.LOWERCASE_B=98]="LOWERCASE_B",eo[eo.LOWERCASE_C=99]="LOWERCASE_C",eo[eo.LOWERCASE_D=100]="LOWERCASE_D",eo[eo.LOWERCASE_E=101]="LOWERCASE_E",eo[eo.LOWERCASE_F=102]="LOWERCASE_F",eo[eo.LOWERCASE_G=103]="LOWERCASE_G",eo[eo.LOWERCASE_H=104]="LOWERCASE_H",eo[eo.LOWERCASE_I=105]="LOWERCASE_I",eo[eo.LOWERCASE_J=106]="LOWERCASE_J",eo[eo.LOWERCASE_K=107]="LOWERCASE_K",eo[eo.LOWERCASE_L=108]="LOWERCASE_L",eo[eo.LOWERCASE_M=109]="LOWERCASE_M",eo[eo.LOWERCASE_N=110]="LOWERCASE_N",eo[eo.LOWERCASE_O=111]="LOWERCASE_O",eo[eo.LOWERCASE_P=112]="LOWERCASE_P",eo[eo.LOWERCASE_Q=113]="LOWERCASE_Q",eo[eo.LOWERCASE_R=114]="LOWERCASE_R",eo[eo.LOWERCASE_S=115]="LOWERCASE_S",eo[eo.LOWERCASE_T=116]="LOWERCASE_T",eo[eo.LOWERCASE_U=117]="LOWERCASE_U",eo[eo.LOWERCASE_V=118]="LOWERCASE_V",eo[eo.LOWERCASE_W=119]="LOWERCASE_W",eo[eo.LOWERCASE_X=120]="LOWERCASE_X",eo[eo.LOWERCASE_Y=121]="LOWERCASE_Y",eo[eo.LOWERCASE_Z=122]="LOWERCASE_Z",eo[eo.OPEN_BRACE=123]="OPEN_BRACE",eo[eo.VERTICAL_SLASH=124]="VERTICAL_SLASH",eo[eo.CLOSE_BRACE=125]="CLOSE_BRACE",eo[eo.TILDE=126]="TILDE",eo[eo.DELETE=127]="DELETE"})(AsciiCodePoint||(AsciiCodePoint={}));const foldingCaseCodeMap={µ:"μ",À:"à",Á:"á",Â:"â",Ã:"ã",Ä:"ä",Å:"å",Æ:"æ",Ç:"ç",È:"è",É:"é",Ê:"ê",Ë:"ë",Ì:"ì",Í:"í",Î:"î",Ï:"ï",Ð:"ð",Ñ:"ñ",Ò:"ò",Ó:"ó",Ô:"ô",Õ:"õ",Ö:"ö",Ø:"ø",Ù:"ù",Ú:"ú",Û:"û",Ü:"ü",Ý:"ý",Þ:"þ",Ā:"ā",Ă:"ă",Ą:"ą",Ć:"ć",Ĉ:"ĉ",Ċ:"ċ",Č:"č",Ď:"ď",Đ:"đ",Ē:"ē",Ĕ:"ĕ",Ė:"ė",Ę:"ę",Ě:"ě",Ĝ:"ĝ",Ğ:"ğ",Ġ:"ġ",Ģ:"ģ",Ĥ:"ĥ",Ħ:"ħ",Ĩ:"ĩ",Ī:"ī",Ĭ:"ĭ",Į:"į",IJ:"ij",Ĵ:"ĵ",Ķ:"ķ",Ĺ:"ĺ",Ļ:"ļ",Ľ:"ľ",Ŀ:"ŀ",Ł:"ł",Ń:"ń",Ņ:"ņ",Ň:"ň",Ŋ:"ŋ",Ō:"ō",Ŏ:"ŏ",Ő:"ő",Œ:"œ",Ŕ:"ŕ",Ŗ:"ŗ",Ř:"ř",Ś:"ś",Ŝ:"ŝ",Ş:"ş",Š:"š",Ţ:"ţ",Ť:"ť",Ŧ:"ŧ",Ũ:"ũ",Ū:"ū",Ŭ:"ŭ",Ů:"ů",Ű:"ű",Ų:"ų",Ŵ:"ŵ",Ŷ:"ŷ",Ÿ:"ÿ",Ź:"ź",Ż:"ż",Ž:"ž",ſ:"s",Ɓ:"ɓ",Ƃ:"ƃ",Ƅ:"ƅ",Ɔ:"ɔ",Ƈ:"ƈ",Ɖ:"ɖ",Ɗ:"ɗ",Ƌ:"ƌ",Ǝ:"ǝ",Ə:"ə",Ɛ:"ɛ",Ƒ:"ƒ",Ɠ:"ɠ",Ɣ:"ɣ",Ɩ:"ɩ",Ɨ:"ɨ",Ƙ:"ƙ",Ɯ:"ɯ",Ɲ:"ɲ",Ɵ:"ɵ",Ơ:"ơ",Ƣ:"ƣ",Ƥ:"ƥ",Ʀ:"ʀ",Ƨ:"ƨ",Ʃ:"ʃ",Ƭ:"ƭ",Ʈ:"ʈ",Ư:"ư",Ʊ:"ʊ",Ʋ:"ʋ",Ƴ:"ƴ",Ƶ:"ƶ",Ʒ:"ʒ",Ƹ:"ƹ",Ƽ:"ƽ",DŽ:"dž",Dž:"dž",LJ:"lj",Lj:"lj",NJ:"nj",Nj:"nj",Ǎ:"ǎ",Ǐ:"ǐ",Ǒ:"ǒ",Ǔ:"ǔ",Ǖ:"ǖ",Ǘ:"ǘ",Ǚ:"ǚ",Ǜ:"ǜ",Ǟ:"ǟ",Ǡ:"ǡ",Ǣ:"ǣ",Ǥ:"ǥ",Ǧ:"ǧ",Ǩ:"ǩ",Ǫ:"ǫ",Ǭ:"ǭ",Ǯ:"ǯ",DZ:"dz",Dz:"dz",Ǵ:"ǵ",Ƕ:"ƕ",Ƿ:"ƿ",Ǹ:"ǹ",Ǻ:"ǻ",Ǽ:"ǽ",Ǿ:"ǿ",Ȁ:"ȁ",Ȃ:"ȃ",Ȅ:"ȅ",Ȇ:"ȇ",Ȉ:"ȉ",Ȋ:"ȋ",Ȍ:"ȍ",Ȏ:"ȏ",Ȑ:"ȑ",Ȓ:"ȓ",Ȕ:"ȕ",Ȗ:"ȗ",Ș:"ș",Ț:"ț",Ȝ:"ȝ",Ȟ:"ȟ","Ƞ":"ƞ",Ȣ:"ȣ",Ȥ:"ȥ",Ȧ:"ȧ",Ȩ:"ȩ",Ȫ:"ȫ",Ȭ:"ȭ",Ȯ:"ȯ",Ȱ:"ȱ",Ȳ:"ȳ","Ⱥ":"ⱥ","Ȼ":"ȼ","Ƚ":"ƚ","Ⱦ":"ⱦ","Ɂ":"ɂ","Ƀ":"ƀ","Ʉ":"ʉ","Ʌ":"ʌ","Ɇ":"ɇ","Ɉ":"ɉ","Ɋ":"ɋ","Ɍ":"ɍ","Ɏ":"ɏ","ͅ":"ι","Ͱ":"ͱ","Ͳ":"ͳ","Ͷ":"ͷ","Ϳ":"ϳ",Ά:"ά",Έ:"έ",Ή:"ή",Ί:"ί",Ό:"ό",Ύ:"ύ",Ώ:"ώ",Α:"α",Β:"β",Γ:"γ",Δ:"δ",Ε:"ε",Ζ:"ζ",Η:"η",Θ:"θ",Ι:"ι",Κ:"κ",Λ:"λ",Μ:"μ",Ν:"ν",Ξ:"ξ",Ο:"ο",Π:"π",Ρ:"ρ",Σ:"σ",Τ:"τ",Υ:"υ",Φ:"φ",Χ:"χ",Ψ:"ψ",Ω:"ω",Ϊ:"ϊ",Ϋ:"ϋ",ς:"σ","Ϗ":"ϗ",ϐ:"β",ϑ:"θ",ϕ:"φ",ϖ:"π","Ϙ":"ϙ",Ϛ:"ϛ",Ϝ:"ϝ",Ϟ:"ϟ",Ϡ:"ϡ",Ϣ:"ϣ",Ϥ:"ϥ",Ϧ:"ϧ",Ϩ:"ϩ",Ϫ:"ϫ",Ϭ:"ϭ",Ϯ:"ϯ",ϰ:"κ",ϱ:"ρ","ϴ":"θ","ϵ":"ε","Ϸ":"ϸ","Ϲ":"ϲ","Ϻ":"ϻ","Ͻ":"ͻ","Ͼ":"ͼ","Ͽ":"ͽ",Ѐ:"ѐ",Ё:"ё",Ђ:"ђ",Ѓ:"ѓ",Є:"є",Ѕ:"ѕ",І:"і",Ї:"ї",Ј:"ј",Љ:"љ",Њ:"њ",Ћ:"ћ",Ќ:"ќ",Ѝ:"ѝ",Ў:"ў",Џ:"џ",А:"а",Б:"б",В:"в",Г:"г",Д:"д",Е:"е",Ж:"ж",З:"з",И:"и",Й:"й",К:"к",Л:"л",М:"м",Н:"н",О:"о",П:"п",Р:"р",С:"с",Т:"т",У:"у",Ф:"ф",Х:"х",Ц:"ц",Ч:"ч",Ш:"ш",Щ:"щ",Ъ:"ъ",Ы:"ы",Ь:"ь",Э:"э",Ю:"ю",Я:"я",Ѡ:"ѡ",Ѣ:"ѣ",Ѥ:"ѥ",Ѧ:"ѧ",Ѩ:"ѩ",Ѫ:"ѫ",Ѭ:"ѭ",Ѯ:"ѯ",Ѱ:"ѱ",Ѳ:"ѳ",Ѵ:"ѵ",Ѷ:"ѷ",Ѹ:"ѹ",Ѻ:"ѻ",Ѽ:"ѽ",Ѿ:"ѿ",Ҁ:"ҁ","Ҋ":"ҋ",Ҍ:"ҍ",Ҏ:"ҏ",Ґ:"ґ",Ғ:"ғ",Ҕ:"ҕ",Җ:"җ",Ҙ:"ҙ",Қ:"қ",Ҝ:"ҝ",Ҟ:"ҟ",Ҡ:"ҡ",Ң:"ң",Ҥ:"ҥ",Ҧ:"ҧ",Ҩ:"ҩ",Ҫ:"ҫ",Ҭ:"ҭ",Ү:"ү",Ұ:"ұ",Ҳ:"ҳ",Ҵ:"ҵ",Ҷ:"ҷ",Ҹ:"ҹ",Һ:"һ",Ҽ:"ҽ",Ҿ:"ҿ",Ӏ:"ӏ",Ӂ:"ӂ",Ӄ:"ӄ","Ӆ":"ӆ",Ӈ:"ӈ","Ӊ":"ӊ",Ӌ:"ӌ","Ӎ":"ӎ",Ӑ:"ӑ",Ӓ:"ӓ",Ӕ:"ӕ",Ӗ:"ӗ",Ә:"ә",Ӛ:"ӛ",Ӝ:"ӝ",Ӟ:"ӟ",Ӡ:"ӡ",Ӣ:"ӣ",Ӥ:"ӥ",Ӧ:"ӧ",Ө:"ө",Ӫ:"ӫ",Ӭ:"ӭ",Ӯ:"ӯ",Ӱ:"ӱ",Ӳ:"ӳ",Ӵ:"ӵ","Ӷ":"ӷ",Ӹ:"ӹ","Ӻ":"ӻ","Ӽ":"ӽ","Ӿ":"ӿ","Ԁ":"ԁ","Ԃ":"ԃ","Ԅ":"ԅ","Ԇ":"ԇ","Ԉ":"ԉ","Ԋ":"ԋ","Ԍ":"ԍ","Ԏ":"ԏ","Ԑ":"ԑ","Ԓ":"ԓ","Ԕ":"ԕ","Ԗ":"ԗ","Ԙ":"ԙ","Ԛ":"ԛ","Ԝ":"ԝ","Ԟ":"ԟ","Ԡ":"ԡ","Ԣ":"ԣ","Ԥ":"ԥ","Ԧ":"ԧ","Ԩ":"ԩ","Ԫ":"ԫ","Ԭ":"ԭ","Ԯ":"ԯ",Ա:"ա",Բ:"բ",Գ:"գ",Դ:"դ",Ե:"ե",Զ:"զ",Է:"է",Ը:"ը",Թ:"թ",Ժ:"ժ",Ի:"ի",Լ:"լ",Խ:"խ",Ծ:"ծ",Կ:"կ",Հ:"հ",Ձ:"ձ",Ղ:"ղ",Ճ:"ճ",Մ:"մ",Յ:"յ",Ն:"ն",Շ:"շ",Ո:"ո",Չ:"չ",Պ:"պ",Ջ:"ջ",Ռ:"ռ",Ս:"ս",Վ:"վ",Տ:"տ",Ր:"ր",Ց:"ց",Ւ:"ւ",Փ:"փ",Ք:"ք",Օ:"օ",Ֆ:"ֆ",Ⴀ:"ⴀ",Ⴁ:"ⴁ",Ⴂ:"ⴂ",Ⴃ:"ⴃ",Ⴄ:"ⴄ",Ⴅ:"ⴅ",Ⴆ:"ⴆ",Ⴇ:"ⴇ",Ⴈ:"ⴈ",Ⴉ:"ⴉ",Ⴊ:"ⴊ",Ⴋ:"ⴋ",Ⴌ:"ⴌ",Ⴍ:"ⴍ",Ⴎ:"ⴎ",Ⴏ:"ⴏ",Ⴐ:"ⴐ",Ⴑ:"ⴑ",Ⴒ:"ⴒ",Ⴓ:"ⴓ",Ⴔ:"ⴔ",Ⴕ:"ⴕ",Ⴖ:"ⴖ",Ⴗ:"ⴗ",Ⴘ:"ⴘ",Ⴙ:"ⴙ",Ⴚ:"ⴚ",Ⴛ:"ⴛ",Ⴜ:"ⴜ",Ⴝ:"ⴝ",Ⴞ:"ⴞ",Ⴟ:"ⴟ",Ⴠ:"ⴠ",Ⴡ:"ⴡ",Ⴢ:"ⴢ",Ⴣ:"ⴣ",Ⴤ:"ⴤ",Ⴥ:"ⴥ","Ⴧ":"ⴧ","Ⴭ":"ⴭ",Ḁ:"ḁ",Ḃ:"ḃ",Ḅ:"ḅ",Ḇ:"ḇ",Ḉ:"ḉ",Ḋ:"ḋ",Ḍ:"ḍ",Ḏ:"ḏ",Ḑ:"ḑ",Ḓ:"ḓ",Ḕ:"ḕ",Ḗ:"ḗ",Ḙ:"ḙ",Ḛ:"ḛ",Ḝ:"ḝ",Ḟ:"ḟ",Ḡ:"ḡ",Ḣ:"ḣ",Ḥ:"ḥ",Ḧ:"ḧ",Ḩ:"ḩ",Ḫ:"ḫ",Ḭ:"ḭ",Ḯ:"ḯ",Ḱ:"ḱ",Ḳ:"ḳ",Ḵ:"ḵ",Ḷ:"ḷ",Ḹ:"ḹ",Ḻ:"ḻ",Ḽ:"ḽ",Ḿ:"ḿ",Ṁ:"ṁ",Ṃ:"ṃ",Ṅ:"ṅ",Ṇ:"ṇ",Ṉ:"ṉ",Ṋ:"ṋ",Ṍ:"ṍ",Ṏ:"ṏ",Ṑ:"ṑ",Ṓ:"ṓ",Ṕ:"ṕ",Ṗ:"ṗ",Ṙ:"ṙ",Ṛ:"ṛ",Ṝ:"ṝ",Ṟ:"ṟ",Ṡ:"ṡ",Ṣ:"ṣ",Ṥ:"ṥ",Ṧ:"ṧ",Ṩ:"ṩ",Ṫ:"ṫ",Ṭ:"ṭ",Ṯ:"ṯ",Ṱ:"ṱ",Ṳ:"ṳ",Ṵ:"ṵ",Ṷ:"ṷ",Ṹ:"ṹ",Ṻ:"ṻ",Ṽ:"ṽ",Ṿ:"ṿ",Ẁ:"ẁ",Ẃ:"ẃ",Ẅ:"ẅ",Ẇ:"ẇ",Ẉ:"ẉ",Ẋ:"ẋ",Ẍ:"ẍ",Ẏ:"ẏ",Ẑ:"ẑ",Ẓ:"ẓ",Ẕ:"ẕ",ẛ:"ṡ",Ạ:"ạ",Ả:"ả",Ấ:"ấ",Ầ:"ầ",Ẩ:"ẩ",Ẫ:"ẫ",Ậ:"ậ",Ắ:"ắ",Ằ:"ằ",Ẳ:"ẳ",Ẵ:"ẵ",Ặ:"ặ",Ẹ:"ẹ",Ẻ:"ẻ",Ẽ:"ẽ",Ế:"ế",Ề:"ề",Ể:"ể",Ễ:"ễ",Ệ:"ệ",Ỉ:"ỉ",Ị:"ị",Ọ:"ọ",Ỏ:"ỏ",Ố:"ố",Ồ:"ồ",Ổ:"ổ",Ỗ:"ỗ",Ộ:"ộ",Ớ:"ớ",Ờ:"ờ",Ở:"ở",Ỡ:"ỡ",Ợ:"ợ",Ụ:"ụ",Ủ:"ủ",Ứ:"ứ",Ừ:"ừ",Ử:"ử",Ữ:"ữ",Ự:"ự",Ỳ:"ỳ",Ỵ:"ỵ",Ỷ:"ỷ",Ỹ:"ỹ","Ỻ":"ỻ","Ỽ":"ỽ","Ỿ":"ỿ",Ἀ:"ἀ",Ἁ:"ἁ",Ἂ:"ἂ",Ἃ:"ἃ",Ἄ:"ἄ",Ἅ:"ἅ",Ἆ:"ἆ",Ἇ:"ἇ",Ἐ:"ἐ",Ἑ:"ἑ",Ἒ:"ἒ",Ἓ:"ἓ",Ἔ:"ἔ",Ἕ:"ἕ",Ἠ:"ἠ",Ἡ:"ἡ",Ἢ:"ἢ",Ἣ:"ἣ",Ἤ:"ἤ",Ἥ:"ἥ",Ἦ:"ἦ",Ἧ:"ἧ",Ἰ:"ἰ",Ἱ:"ἱ",Ἲ:"ἲ",Ἳ:"ἳ",Ἴ:"ἴ",Ἵ:"ἵ",Ἶ:"ἶ",Ἷ:"ἷ",Ὀ:"ὀ",Ὁ:"ὁ",Ὂ:"ὂ",Ὃ:"ὃ",Ὄ:"ὄ",Ὅ:"ὅ",Ὑ:"ὑ",Ὓ:"ὓ",Ὕ:"ὕ",Ὗ:"ὗ",Ὠ:"ὠ",Ὡ:"ὡ",Ὢ:"ὢ",Ὣ:"ὣ",Ὤ:"ὤ",Ὥ:"ὥ",Ὦ:"ὦ",Ὧ:"ὧ",Ᾰ:"ᾰ",Ᾱ:"ᾱ",Ὰ:"ὰ",Ά:"ά",ι:"ι",Ὲ:"ὲ",Έ:"έ",Ὴ:"ὴ",Ή:"ή",Ῐ:"ῐ",Ῑ:"ῑ",Ὶ:"ὶ",Ί:"ί",Ῠ:"ῠ",Ῡ:"ῡ",Ὺ:"ὺ",Ύ:"ύ",Ῥ:"ῥ",Ὸ:"ὸ",Ό:"ό",Ὼ:"ὼ",Ώ:"ώ",Ω:"ω",K:"k",Å:"å","Ⅎ":"ⅎ","Ⅰ":"ⅰ","Ⅱ":"ⅱ","Ⅲ":"ⅲ","Ⅳ":"ⅳ","Ⅴ":"ⅴ","Ⅵ":"ⅵ","Ⅶ":"ⅶ","Ⅷ":"ⅷ","Ⅸ":"ⅸ","Ⅹ":"ⅹ","Ⅺ":"ⅺ","Ⅻ":"ⅻ","Ⅼ":"ⅼ","Ⅽ":"ⅽ","Ⅾ":"ⅾ","Ⅿ":"ⅿ","Ↄ":"ↄ","Ⓐ":"ⓐ","Ⓑ":"ⓑ","Ⓒ":"ⓒ","Ⓓ":"ⓓ","Ⓔ":"ⓔ","Ⓕ":"ⓕ","Ⓖ":"ⓖ","Ⓗ":"ⓗ","Ⓘ":"ⓘ","Ⓙ":"ⓙ","Ⓚ":"ⓚ","Ⓛ":"ⓛ","Ⓜ":"ⓜ","Ⓝ":"ⓝ","Ⓞ":"ⓞ","Ⓟ":"ⓟ","Ⓠ":"ⓠ","Ⓡ":"ⓡ","Ⓢ":"ⓢ","Ⓣ":"ⓣ","Ⓤ":"ⓤ","Ⓥ":"ⓥ","Ⓦ":"ⓦ","Ⓧ":"ⓧ","Ⓨ":"ⓨ","Ⓩ":"ⓩ","Ⰰ":"ⰰ","Ⰱ":"ⰱ","Ⰲ":"ⰲ","Ⰳ":"ⰳ","Ⰴ":"ⰴ","Ⰵ":"ⰵ","Ⰶ":"ⰶ","Ⰷ":"ⰷ","Ⰸ":"ⰸ","Ⰹ":"ⰹ","Ⰺ":"ⰺ","Ⰻ":"ⰻ","Ⰼ":"ⰼ","Ⰽ":"ⰽ","Ⰾ":"ⰾ","Ⰿ":"ⰿ","Ⱀ":"ⱀ","Ⱁ":"ⱁ","Ⱂ":"ⱂ","Ⱃ":"ⱃ","Ⱄ":"ⱄ","Ⱅ":"ⱅ","Ⱆ":"ⱆ","Ⱇ":"ⱇ","Ⱈ":"ⱈ","Ⱉ":"ⱉ","Ⱊ":"ⱊ","Ⱋ":"ⱋ","Ⱌ":"ⱌ","Ⱍ":"ⱍ","Ⱎ":"ⱎ","Ⱏ":"ⱏ","Ⱐ":"ⱐ","Ⱑ":"ⱑ","Ⱒ":"ⱒ","Ⱓ":"ⱓ","Ⱔ":"ⱔ","Ⱕ":"ⱕ","Ⱖ":"ⱖ","Ⱗ":"ⱗ","Ⱘ":"ⱘ","Ⱙ":"ⱙ","Ⱚ":"ⱚ","Ⱛ":"ⱛ","Ⱜ":"ⱜ","Ⱝ":"ⱝ","Ⱞ":"ⱞ","Ⱡ":"ⱡ","Ɫ":"ɫ","Ᵽ":"ᵽ","Ɽ":"ɽ","Ⱨ":"ⱨ","Ⱪ":"ⱪ","Ⱬ":"ⱬ","Ɑ":"ɑ","Ɱ":"ɱ","Ɐ":"ɐ","Ɒ":"ɒ","Ⱳ":"ⱳ","Ⱶ":"ⱶ","Ȿ":"ȿ","Ɀ":"ɀ","Ⲁ":"ⲁ","Ⲃ":"ⲃ","Ⲅ":"ⲅ","Ⲇ":"ⲇ","Ⲉ":"ⲉ","Ⲋ":"ⲋ","Ⲍ":"ⲍ","Ⲏ":"ⲏ","Ⲑ":"ⲑ","Ⲓ":"ⲓ","Ⲕ":"ⲕ","Ⲗ":"ⲗ","Ⲙ":"ⲙ","Ⲛ":"ⲛ","Ⲝ":"ⲝ","Ⲟ":"ⲟ","Ⲡ":"ⲡ","Ⲣ":"ⲣ","Ⲥ":"ⲥ","Ⲧ":"ⲧ","Ⲩ":"ⲩ","Ⲫ":"ⲫ","Ⲭ":"ⲭ","Ⲯ":"ⲯ","Ⲱ":"ⲱ","Ⲳ":"ⲳ","Ⲵ":"ⲵ","Ⲷ":"ⲷ","Ⲹ":"ⲹ","Ⲻ":"ⲻ","Ⲽ":"ⲽ","Ⲿ":"ⲿ","Ⳁ":"ⳁ","Ⳃ":"ⳃ","Ⳅ":"ⳅ","Ⳇ":"ⳇ","Ⳉ":"ⳉ","Ⳋ":"ⳋ","Ⳍ":"ⳍ","Ⳏ":"ⳏ","Ⳑ":"ⳑ","Ⳓ":"ⳓ","Ⳕ":"ⳕ","Ⳗ":"ⳗ","Ⳙ":"ⳙ","Ⳛ":"ⳛ","Ⳝ":"ⳝ","Ⳟ":"ⳟ","Ⳡ":"ⳡ","Ⳣ":"ⳣ","Ⳬ":"ⳬ","Ⳮ":"ⳮ","Ⳳ":"ⳳ","Ꙁ":"ꙁ","Ꙃ":"ꙃ","Ꙅ":"ꙅ","Ꙇ":"ꙇ","Ꙉ":"ꙉ","Ꙋ":"ꙋ","Ꙍ":"ꙍ","Ꙏ":"ꙏ","Ꙑ":"ꙑ","Ꙓ":"ꙓ","Ꙕ":"ꙕ","Ꙗ":"ꙗ","Ꙙ":"ꙙ","Ꙛ":"ꙛ","Ꙝ":"ꙝ","Ꙟ":"ꙟ","Ꙡ":"ꙡ","Ꙣ":"ꙣ","Ꙥ":"ꙥ","Ꙧ":"ꙧ","Ꙩ":"ꙩ","Ꙫ":"ꙫ","Ꙭ":"ꙭ","Ꚁ":"ꚁ","Ꚃ":"ꚃ","Ꚅ":"ꚅ","Ꚇ":"ꚇ","Ꚉ":"ꚉ","Ꚋ":"ꚋ","Ꚍ":"ꚍ","Ꚏ":"ꚏ","Ꚑ":"ꚑ","Ꚓ":"ꚓ","Ꚕ":"ꚕ","Ꚗ":"ꚗ","Ꚙ":"ꚙ","Ꚛ":"ꚛ","Ꜣ":"ꜣ","Ꜥ":"ꜥ","Ꜧ":"ꜧ","Ꜩ":"ꜩ","Ꜫ":"ꜫ","Ꜭ":"ꜭ","Ꜯ":"ꜯ","Ꜳ":"ꜳ","Ꜵ":"ꜵ","Ꜷ":"ꜷ","Ꜹ":"ꜹ","Ꜻ":"ꜻ","Ꜽ":"ꜽ","Ꜿ":"ꜿ","Ꝁ":"ꝁ","Ꝃ":"ꝃ","Ꝅ":"ꝅ","Ꝇ":"ꝇ","Ꝉ":"ꝉ","Ꝋ":"ꝋ","Ꝍ":"ꝍ","Ꝏ":"ꝏ","Ꝑ":"ꝑ","Ꝓ":"ꝓ","Ꝕ":"ꝕ","Ꝗ":"ꝗ","Ꝙ":"ꝙ","Ꝛ":"ꝛ","Ꝝ":"ꝝ","Ꝟ":"ꝟ","Ꝡ":"ꝡ","Ꝣ":"ꝣ","Ꝥ":"ꝥ","Ꝧ":"ꝧ","Ꝩ":"ꝩ","Ꝫ":"ꝫ","Ꝭ":"ꝭ","Ꝯ":"ꝯ","Ꝺ":"ꝺ","Ꝼ":"ꝼ","Ᵹ":"ᵹ","Ꝿ":"ꝿ","Ꞁ":"ꞁ","Ꞃ":"ꞃ","Ꞅ":"ꞅ","Ꞇ":"ꞇ","Ꞌ":"ꞌ","Ɥ":"ɥ","Ꞑ":"ꞑ","Ꞓ":"ꞓ","Ꞗ":"ꞗ","Ꞙ":"ꞙ","Ꞛ":"ꞛ","Ꞝ":"ꞝ","Ꞟ":"ꞟ","Ꞡ":"ꞡ","Ꞣ":"ꞣ","Ꞥ":"ꞥ","Ꞧ":"ꞧ","Ꞩ":"ꞩ","Ɦ":"ɦ","Ɜ":"ɜ","Ɡ":"ɡ","Ɬ":"ɬ","Ʞ":"ʞ","Ʇ":"ʇ",A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","𐐀":"𐐨","𐐁":"𐐩","𐐂":"𐐪","𐐃":"𐐫","𐐄":"𐐬","𐐅":"𐐭","𐐆":"𐐮","𐐇":"𐐯","𐐈":"𐐰","𐐉":"𐐱","𐐊":"𐐲","𐐋":"𐐳","𐐌":"𐐴","𐐍":"𐐵","𐐎":"𐐶","𐐏":"𐐷","𐐐":"𐐸","𐐑":"𐐹","𐐒":"𐐺","𐐓":"𐐻","𐐔":"𐐼","𐐕":"𐐽","𐐖":"𐐾","𐐗":"𐐿","𐐘":"𐑀","𐐙":"𐑁","𐐚":"𐑂","𐐛":"𐑃","𐐜":"𐑄","𐐝":"𐑅","𐐞":"𐑆","𐐟":"𐑇","𐐠":"𐑈","𐐡":"𐑉","𐐢":"𐑊","𐐣":"𐑋","𐐤":"𐑌","𐐥":"𐑍","𐐦":"𐑎","𐐧":"𐑏","𑢠":"𑣀","𑢡":"𑣁","𑢢":"𑣂","𑢣":"𑣃","𑢤":"𑣄","𑢥":"𑣅","𑢦":"𑣆","𑢧":"𑣇","𑢨":"𑣈","𑢩":"𑣉","𑢪":"𑣊","𑢫":"𑣋","𑢬":"𑣌","𑢭":"𑣍","𑢮":"𑣎","𑢯":"𑣏","𑢰":"𑣐","𑢱":"𑣑","𑢲":"𑣒","𑢳":"𑣓","𑢴":"𑣔","𑢵":"𑣕","𑢶":"𑣖","𑢷":"𑣗","𑢸":"𑣘","𑢹":"𑣙","𑢺":"𑣚","𑢻":"𑣛","𑢼":"𑣜","𑢽":"𑣝","𑢾":"𑣞","𑢿":"𑣟",ß:"ss",İ:"i̇",ʼn:"ʼn",ǰ:"ǰ",ΐ:"ΐ",ΰ:"ΰ",և:"եւ",ẖ:"ẖ",ẗ:"ẗ",ẘ:"ẘ",ẙ:"ẙ",ẚ:"aʾ","ẞ":"ss",ὐ:"ὐ",ὒ:"ὒ",ὔ:"ὔ",ὖ:"ὖ",ᾀ:"ἀι",ᾁ:"ἁι",ᾂ:"ἂι",ᾃ:"ἃι",ᾄ:"ἄι",ᾅ:"ἅι",ᾆ:"ἆι",ᾇ:"ἇι",ᾈ:"ἀι",ᾉ:"ἁι",ᾊ:"ἂι",ᾋ:"ἃι",ᾌ:"ἄι",ᾍ:"ἅι",ᾎ:"ἆι",ᾏ:"ἇι",ᾐ:"ἠι",ᾑ:"ἡι",ᾒ:"ἢι",ᾓ:"ἣι",ᾔ:"ἤι",ᾕ:"ἥι",ᾖ:"ἦι",ᾗ:"ἧι",ᾘ:"ἠι",ᾙ:"ἡι",ᾚ:"ἢι",ᾛ:"ἣι",ᾜ:"ἤι",ᾝ:"ἥι",ᾞ:"ἦι",ᾟ:"ἧι",ᾠ:"ὠι",ᾡ:"ὡι",ᾢ:"ὢι",ᾣ:"ὣι",ᾤ:"ὤι",ᾥ:"ὥι",ᾦ:"ὦι",ᾧ:"ὧι",ᾨ:"ὠι",ᾩ:"ὡι",ᾪ:"ὢι",ᾫ:"ὣι",ᾬ:"ὤι",ᾭ:"ὥι",ᾮ:"ὦι",ᾯ:"ὧι",ᾲ:"ὰι",ᾳ:"αι",ᾴ:"άι",ᾶ:"ᾶ",ᾷ:"ᾶι",ᾼ:"αι",ῂ:"ὴι",ῃ:"ηι",ῄ:"ήι",ῆ:"ῆ",ῇ:"ῆι",ῌ:"ηι",ῒ:"ῒ",ΐ:"ΐ",ῖ:"ῖ",ῗ:"ῗ",ῢ:"ῢ",ΰ:"ΰ",ῤ:"ῤ",ῦ:"ῦ",ῧ:"ῧ",ῲ:"ὼι",ῳ:"ωι",ῴ:"ώι",ῶ:"ῶ",ῷ:"ῶι",ῼ:"ωι",ff:"ff",fi:"fi",fl:"fl",ffi:"ffi",ffl:"ffl",ſt:"st",st:"st",ﬓ:"մն",ﬔ:"մե",ﬕ:"մի",ﬖ:"վն",ﬗ:"մխ"},entityReferences=[{key:[65,69,108,105,103,59],value:"Æ"},{key:[65,77,80,59],value:"&"},{key:[65,97,99,117,116,101,59],value:"Á"},{key:[65,98,114,101,118,101,59],value:"Ă"},{key:[65,99,105,114,99,59],value:"Â"},{key:[65,99,121,59],value:"А"},{key:[65,102,114,59],value:"𝔄"},{key:[65,103,114,97,118,101,59],value:"À"},{key:[65,108,112,104,97,59],value:"Α"},{key:[65,109,97,99,114,59],value:"Ā"},{key:[65,110,100,59],value:"⩓"},{key:[65,111,103,111,110,59],value:"Ą"},{key:[65,111,112,102,59],value:"𝔸"},{key:[65,112,112,108,121,70,117,110,99,116,105,111,110,59],value:"⁡"},{key:[65,114,105,110,103,59],value:"Å"},{key:[65,115,99,114,59],value:"𝒜"},{key:[65,115,115,105,103,110,59],value:"≔"},{key:[65,116,105,108,100,101,59],value:"Ã"},{key:[65,117,109,108,59],value:"Ä"},{key:[66,97,99,107,115,108,97,115,104,59],value:"∖"},{key:[66,97,114,118,59],value:"⫧"},{key:[66,97,114,119,101,100,59],value:"⌆"},{key:[66,99,121,59],value:"Б"},{key:[66,101,99,97,117,115,101,59],value:"∵"},{key:[66,101,114,110,111,117,108,108,105,115,59],value:"ℬ"},{key:[66,101,116,97,59],value:"Β"},{key:[66,102,114,59],value:"𝔅"},{key:[66,111,112,102,59],value:"𝔹"},{key:[66,114,101,118,101,59],value:"˘"},{key:[66,115,99,114,59],value:"ℬ"},{key:[66,117,109,112,101,113,59],value:"≎"},{key:[67,72,99,121,59],value:"Ч"},{key:[67,79,80,89,59],value:"©"},{key:[67,97,99,117,116,101,59],value:"Ć"},{key:[67,97,112,59],value:"⋒"},{key:[67,97,112,105,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅅ"},{key:[67,97,121,108,101,121,115,59],value:"ℭ"},{key:[67,99,97,114,111,110,59],value:"Č"},{key:[67,99,101,100,105,108,59],value:"Ç"},{key:[67,99,105,114,99,59],value:"Ĉ"},{key:[67,99,111,110,105,110,116,59],value:"∰"},{key:[67,100,111,116,59],value:"Ċ"},{key:[67,101,100,105,108,108,97,59],value:"¸"},{key:[67,101,110,116,101,114,68,111,116,59],value:"·"},{key:[67,102,114,59],value:"ℭ"},{key:[67,104,105,59],value:"Χ"},{key:[67,105,114,99,108,101,68,111,116,59],value:"⊙"},{key:[67,105,114,99,108,101,77,105,110,117,115,59],value:"⊖"},{key:[67,105,114,99,108,101,80,108,117,115,59],value:"⊕"},{key:[67,105,114,99,108,101,84,105,109,101,115,59],value:"⊗"},{key:[67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∲"},{key:[67,108,111,115,101,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"”"},{key:[67,108,111,115,101,67,117,114,108,121,81,117,111,116,101,59],value:"’"},{key:[67,111,108,111,110,59],value:"∷"},{key:[67,111,108,111,110,101,59],value:"⩴"},{key:[67,111,110,103,114,117,101,110,116,59],value:"≡"},{key:[67,111,110,105,110,116,59],value:"∯"},{key:[67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∮"},{key:[67,111,112,102,59],value:"ℂ"},{key:[67,111,112,114,111,100,117,99,116,59],value:"∐"},{key:[67,111,117,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∳"},{key:[67,114,111,115,115,59],value:"⨯"},{key:[67,115,99,114,59],value:"𝒞"},{key:[67,117,112,59],value:"⋓"},{key:[67,117,112,67,97,112,59],value:"≍"},{key:[68,68,59],value:"ⅅ"},{key:[68,68,111,116,114,97,104,100,59],value:"⤑"},{key:[68,74,99,121,59],value:"Ђ"},{key:[68,83,99,121,59],value:"Ѕ"},{key:[68,90,99,121,59],value:"Џ"},{key:[68,97,103,103,101,114,59],value:"‡"},{key:[68,97,114,114,59],value:"↡"},{key:[68,97,115,104,118,59],value:"⫤"},{key:[68,99,97,114,111,110,59],value:"Ď"},{key:[68,99,121,59],value:"Д"},{key:[68,101,108,59],value:"∇"},{key:[68,101,108,116,97,59],value:"Δ"},{key:[68,102,114,59],value:"𝔇"},{key:[68,105,97,99,114,105,116,105,99,97,108,65,99,117,116,101,59],value:"´"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,116,59],value:"˙"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,117,98,108,101,65,99,117,116,101,59],value:"˝"},{key:[68,105,97,99,114,105,116,105,99,97,108,71,114,97,118,101,59],value:"`"},{key:[68,105,97,99,114,105,116,105,99,97,108,84,105,108,100,101,59],value:"˜"},{key:[68,105,97,109,111,110,100,59],value:"⋄"},{key:[68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅆ"},{key:[68,111,112,102,59],value:"𝔻"},{key:[68,111,116,59],value:"¨"},{key:[68,111,116,68,111,116,59],value:"⃜"},{key:[68,111,116,69,113,117,97,108,59],value:"≐"},{key:[68,111,117,98,108,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∯"},{key:[68,111,117,98,108,101,68,111,116,59],value:"¨"},{key:[68,111,117,98,108,101,68,111,119,110,65,114,114,111,119,59],value:"⇓"},{key:[68,111,117,98,108,101,76,101,102,116,65,114,114,111,119,59],value:"⇐"},{key:[68,111,117,98,108,101,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⇔"},{key:[68,111,117,98,108,101,76,101,102,116,84,101,101,59],value:"⫤"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟸"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟺"},{key:[68,111,117,98,108,101,76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟹"},{key:[68,111,117,98,108,101,82,105,103,104,116,65,114,114,111,119,59],value:"⇒"},{key:[68,111,117,98,108,101,82,105,103,104,116,84,101,101,59],value:"⊨"},{key:[68,111,117,98,108,101,85,112,65,114,114,111,119,59],value:"⇑"},{key:[68,111,117,98,108,101,85,112,68,111,119,110,65,114,114,111,119,59],value:"⇕"},{key:[68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∥"},{key:[68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[68,111,119,110,65,114,114,111,119,66,97,114,59],value:"⤓"},{key:[68,111,119,110,65,114,114,111,119,85,112,65,114,114,111,119,59],value:"⇵"},{key:[68,111,119,110,66,114,101,118,101,59],value:"̑"},{key:[68,111,119,110,76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥐"},{key:[68,111,119,110,76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥞"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,59],value:"↽"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥖"},{key:[68,111,119,110,82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥟"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,59],value:"⇁"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥗"},{key:[68,111,119,110,84,101,101,59],value:"⊤"},{key:[68,111,119,110,84,101,101,65,114,114,111,119,59],value:"↧"},{key:[68,111,119,110,97,114,114,111,119,59],value:"⇓"},{key:[68,115,99,114,59],value:"𝒟"},{key:[68,115,116,114,111,107,59],value:"Đ"},{key:[69,78,71,59],value:"Ŋ"},{key:[69,84,72,59],value:"Ð"},{key:[69,97,99,117,116,101,59],value:"É"},{key:[69,99,97,114,111,110,59],value:"Ě"},{key:[69,99,105,114,99,59],value:"Ê"},{key:[69,99,121,59],value:"Э"},{key:[69,100,111,116,59],value:"Ė"},{key:[69,102,114,59],value:"𝔈"},{key:[69,103,114,97,118,101,59],value:"È"},{key:[69,108,101,109,101,110,116,59],value:"∈"},{key:[69,109,97,99,114,59],value:"Ē"},{key:[69,109,112,116,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"◻"},{key:[69,109,112,116,121,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▫"},{key:[69,111,103,111,110,59],value:"Ę"},{key:[69,111,112,102,59],value:"𝔼"},{key:[69,112,115,105,108,111,110,59],value:"Ε"},{key:[69,113,117,97,108,59],value:"⩵"},{key:[69,113,117,97,108,84,105,108,100,101,59],value:"≂"},{key:[69,113,117,105,108,105,98,114,105,117,109,59],value:"⇌"},{key:[69,115,99,114,59],value:"ℰ"},{key:[69,115,105,109,59],value:"⩳"},{key:[69,116,97,59],value:"Η"},{key:[69,117,109,108,59],value:"Ë"},{key:[69,120,105,115,116,115,59],value:"∃"},{key:[69,120,112,111,110,101,110,116,105,97,108,69,59],value:"ⅇ"},{key:[70,99,121,59],value:"Ф"},{key:[70,102,114,59],value:"𝔉"},{key:[70,105,108,108,101,100,83,109,97,108,108,83,113,117,97,114,101,59],value:"◼"},{key:[70,105,108,108,101,100,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▪"},{key:[70,111,112,102,59],value:"𝔽"},{key:[70,111,114,65,108,108,59],value:"∀"},{key:[70,111,117,114,105,101,114,116,114,102,59],value:"ℱ"},{key:[70,115,99,114,59],value:"ℱ"},{key:[71,74,99,121,59],value:"Ѓ"},{key:[71,84,59],value:">"},{key:[71,97,109,109,97,59],value:"Γ"},{key:[71,97,109,109,97,100,59],value:"Ϝ"},{key:[71,98,114,101,118,101,59],value:"Ğ"},{key:[71,99,101,100,105,108,59],value:"Ģ"},{key:[71,99,105,114,99,59],value:"Ĝ"},{key:[71,99,121,59],value:"Г"},{key:[71,100,111,116,59],value:"Ġ"},{key:[71,102,114,59],value:"𝔊"},{key:[71,103,59],value:"⋙"},{key:[71,111,112,102,59],value:"𝔾"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≥"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,76,101,115,115,59],value:"⋛"},{key:[71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧"},{key:[71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢"},{key:[71,114,101,97,116,101,114,76,101,115,115,59],value:"≷"},{key:[71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾"},{key:[71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≳"},{key:[71,115,99,114,59],value:"𝒢"},{key:[71,116,59],value:"≫"},{key:[72,65,82,68,99,121,59],value:"Ъ"},{key:[72,97,99,101,107,59],value:"ˇ"},{key:[72,97,116,59],value:"^"},{key:[72,99,105,114,99,59],value:"Ĥ"},{key:[72,102,114,59],value:"ℌ"},{key:[72,105,108,98,101,114,116,83,112,97,99,101,59],value:"ℋ"},{key:[72,111,112,102,59],value:"ℍ"},{key:[72,111,114,105,122,111,110,116,97,108,76,105,110,101,59],value:"─"},{key:[72,115,99,114,59],value:"ℋ"},{key:[72,115,116,114,111,107,59],value:"Ħ"},{key:[72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎"},{key:[72,117,109,112,69,113,117,97,108,59],value:"≏"},{key:[73,69,99,121,59],value:"Е"},{key:[73,74,108,105,103,59],value:"IJ"},{key:[73,79,99,121,59],value:"Ё"},{key:[73,97,99,117,116,101,59],value:"Í"},{key:[73,99,105,114,99,59],value:"Î"},{key:[73,99,121,59],value:"И"},{key:[73,100,111,116,59],value:"İ"},{key:[73,102,114,59],value:"ℑ"},{key:[73,103,114,97,118,101,59],value:"Ì"},{key:[73,109,59],value:"ℑ"},{key:[73,109,97,99,114,59],value:"Ī"},{key:[73,109,97,103,105,110,97,114,121,73,59],value:"ⅈ"},{key:[73,109,112,108,105,101,115,59],value:"⇒"},{key:[73,110,116,59],value:"∬"},{key:[73,110,116,101,103,114,97,108,59],value:"∫"},{key:[73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⋂"},{key:[73,110,118,105,115,105,98,108,101,67,111,109,109,97,59],value:"⁣"},{key:[73,110,118,105,115,105,98,108,101,84,105,109,101,115,59],value:"⁢"},{key:[73,111,103,111,110,59],value:"Į"},{key:[73,111,112,102,59],value:"𝕀"},{key:[73,111,116,97,59],value:"Ι"},{key:[73,115,99,114,59],value:"ℐ"},{key:[73,116,105,108,100,101,59],value:"Ĩ"},{key:[73,117,107,99,121,59],value:"І"},{key:[73,117,109,108,59],value:"Ï"},{key:[74,99,105,114,99,59],value:"Ĵ"},{key:[74,99,121,59],value:"Й"},{key:[74,102,114,59],value:"𝔍"},{key:[74,111,112,102,59],value:"𝕁"},{key:[74,115,99,114,59],value:"𝒥"},{key:[74,115,101,114,99,121,59],value:"Ј"},{key:[74,117,107,99,121,59],value:"Є"},{key:[75,72,99,121,59],value:"Х"},{key:[75,74,99,121,59],value:"Ќ"},{key:[75,97,112,112,97,59],value:"Κ"},{key:[75,99,101,100,105,108,59],value:"Ķ"},{key:[75,99,121,59],value:"К"},{key:[75,102,114,59],value:"𝔎"},{key:[75,111,112,102,59],value:"𝕂"},{key:[75,115,99,114,59],value:"𝒦"},{key:[76,74,99,121,59],value:"Љ"},{key:[76,84,59],value:"<"},{key:[76,97,99,117,116,101,59],value:"Ĺ"},{key:[76,97,109,98,100,97,59],value:"Λ"},{key:[76,97,110,103,59],value:"⟪"},{key:[76,97,112,108,97,99,101,116,114,102,59],value:"ℒ"},{key:[76,97,114,114,59],value:"↞"},{key:[76,99,97,114,111,110,59],value:"Ľ"},{key:[76,99,101,100,105,108,59],value:"Ļ"},{key:[76,99,121,59],value:"Л"},{key:[76,101,102,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟨"},{key:[76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[76,101,102,116,65,114,114,111,119,66,97,114,59],value:"⇤"},{key:[76,101,102,116,65,114,114,111,119,82,105,103,104,116,65,114,114,111,119,59],value:"⇆"},{key:[76,101,102,116,67,101,105,108,105,110,103,59],value:"⌈"},{key:[76,101,102,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟦"},{key:[76,101,102,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥡"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇃"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥙"},{key:[76,101,102,116,70,108,111,111,114,59],value:"⌊"},{key:[76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"↔"},{key:[76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥎"},{key:[76,101,102,116,84,101,101,59],value:"⊣"},{key:[76,101,102,116,84,101,101,65,114,114,111,119,59],value:"↤"},{key:[76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥚"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⊲"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊴"},{key:[76,101,102,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥑"},{key:[76,101,102,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥠"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,59],value:"↿"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥘"},{key:[76,101,102,116,86,101,99,116,111,114,59],value:"↼"},{key:[76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥒"},{key:[76,101,102,116,97,114,114,111,119,59],value:"⇐"},{key:[76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇔"},{key:[76,101,115,115,69,113,117,97,108,71,114,101,97,116,101,114,59],value:"⋚"},{key:[76,101,115,115,70,117,108,108,69,113,117,97,108,59],value:"≦"},{key:[76,101,115,115,71,114,101,97,116,101,114,59],value:"≶"},{key:[76,101,115,115,76,101,115,115,59],value:"⪡"},{key:[76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽"},{key:[76,101,115,115,84,105,108,100,101,59],value:"≲"},{key:[76,102,114,59],value:"𝔏"},{key:[76,108,59],value:"⋘"},{key:[76,108,101,102,116,97,114,114,111,119,59],value:"⇚"},{key:[76,109,105,100,111,116,59],value:"Ŀ"},{key:[76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟵"},{key:[76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟷"},{key:[76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟶"},{key:[76,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟸"},{key:[76,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟺"},{key:[76,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟹"},{key:[76,111,112,102,59],value:"𝕃"},{key:[76,111,119,101,114,76,101,102,116,65,114,114,111,119,59],value:"↙"},{key:[76,111,119,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↘"},{key:[76,115,99,114,59],value:"ℒ"},{key:[76,115,104,59],value:"↰"},{key:[76,115,116,114,111,107,59],value:"Ł"},{key:[76,116,59],value:"≪"},{key:[77,97,112,59],value:"⤅"},{key:[77,99,121,59],value:"М"},{key:[77,101,100,105,117,109,83,112,97,99,101,59],value:" "},{key:[77,101,108,108,105,110,116,114,102,59],value:"ℳ"},{key:[77,102,114,59],value:"𝔐"},{key:[77,105,110,117,115,80,108,117,115,59],value:"∓"},{key:[77,111,112,102,59],value:"𝕄"},{key:[77,115,99,114,59],value:"ℳ"},{key:[77,117,59],value:"Μ"},{key:[78,74,99,121,59],value:"Њ"},{key:[78,97,99,117,116,101,59],value:"Ń"},{key:[78,99,97,114,111,110,59],value:"Ň"},{key:[78,99,101,100,105,108,59],value:"Ņ"},{key:[78,99,121,59],value:"Н"},{key:[78,101,103,97,116,105,118,101,77,101,100,105,117,109,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,99,107,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫"},{key:[78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"≪"},{key:[78,101,119,76,105,110,101,59],value:` + `},errorHandler=curry(throwError$1)(errorMessages),validators={config:validateConfig},compose=function(){for(var to=arguments.length,no=new Array(to),io=0;io{io.current=!1}:eo,to)}var l$4=he$1;function D$4(){}function h$4(eo,to,no,io){return De$1(eo,io)||be$1(eo,to,no,io)}function De$1(eo,to){return eo.editor.getModel(te$1(eo,to))}function be$1(eo,to,no,io){return eo.editor.createModel(to,no,io?te$1(eo,io):void 0)}function te$1(eo,to){return eo.Uri.parse(to)}function Oe$1({original:eo,modified:to,language:no,originalLanguage:io,modifiedLanguage:so,originalModelPath:ao,modifiedModelPath:lo,keepCurrentOriginalModel:uo=!1,keepCurrentModifiedModel:ho=!1,theme:go="light",loading:mo="Loading...",options:yo={},height:So="100%",width:_o="100%",className:ko,wrapperProps:Co={},beforeMount:$o=D$4,onMount:Ro=D$4}){let[Oo,No]=reactExports.useState(!1),[Mo,Bo]=reactExports.useState(!0),Fo=reactExports.useRef(null),Lo=reactExports.useRef(null),Go=reactExports.useRef(null),Do=reactExports.useRef(Ro),Uo=reactExports.useRef($o),Ho=reactExports.useRef(!1);k$3(()=>{let ps=loader$n.init();return ps.then(Qo=>(Lo.current=Qo)&&Bo(!1)).catch(Qo=>(Qo==null?void 0:Qo.type)!=="cancelation"&&console.error("Monaco initialization: error:",Qo)),()=>Fo.current?Jo():ps.cancel()}),l$4(()=>{if(Fo.current&&Lo.current){let ps=Fo.current.getOriginalEditor(),Qo=h$4(Lo.current,eo||"",io||no||"text",ao||"");Qo!==ps.getModel()&&ps.setModel(Qo)}},[ao],Oo),l$4(()=>{if(Fo.current&&Lo.current){let ps=Fo.current.getModifiedEditor(),Qo=h$4(Lo.current,to||"",so||no||"text",lo||"");Qo!==ps.getModel()&&ps.setModel(Qo)}},[lo],Oo),l$4(()=>{let ps=Fo.current.getModifiedEditor();ps.getOption(Lo.current.editor.EditorOption.readOnly)?ps.setValue(to||""):to!==ps.getValue()&&(ps.executeEdits("",[{range:ps.getModel().getFullModelRange(),text:to||"",forceMoveMarkers:!0}]),ps.pushUndoStop())},[to],Oo),l$4(()=>{var ps,Qo;(Qo=(ps=Fo.current)==null?void 0:ps.getModel())==null||Qo.original.setValue(eo||"")},[eo],Oo),l$4(()=>{let{original:ps,modified:Qo}=Fo.current.getModel();Lo.current.editor.setModelLanguage(ps,io||no||"text"),Lo.current.editor.setModelLanguage(Qo,so||no||"text")},[no,io,so],Oo),l$4(()=>{var ps;(ps=Lo.current)==null||ps.editor.setTheme(go)},[go],Oo),l$4(()=>{var ps;(ps=Fo.current)==null||ps.updateOptions(yo)},[yo],Oo);let Yo=reactExports.useCallback(()=>{var hs;if(!Lo.current)return;Uo.current(Lo.current);let ps=h$4(Lo.current,eo||"",io||no||"text",ao||""),Qo=h$4(Lo.current,to||"",so||no||"text",lo||"");(hs=Fo.current)==null||hs.setModel({original:ps,modified:Qo})},[no,to,so,eo,io,ao,lo]),qo=reactExports.useCallback(()=>{var ps;!Ho.current&&Go.current&&(Fo.current=Lo.current.editor.createDiffEditor(Go.current,{automaticLayout:!0,...yo}),Yo(),(ps=Lo.current)==null||ps.editor.setTheme(go),No(!0),Ho.current=!0)},[yo,go,Yo]);reactExports.useEffect(()=>{Oo&&Do.current(Fo.current,Lo.current)},[Oo]),reactExports.useEffect(()=>{!Mo&&!Oo&&qo()},[Mo,Oo,qo]);function Jo(){var Qo,hs,gs,ys;let ps=(Qo=Fo.current)==null?void 0:Qo.getModel();uo||((hs=ps==null?void 0:ps.original)==null||hs.dispose()),ho||((gs=ps==null?void 0:ps.modified)==null||gs.dispose()),(ys=Fo.current)==null||ys.dispose()}return React.createElement(H$2,{width:_o,height:So,isEditorReady:Oo,loading:mo,_ref:Go,className:ko,wrapperProps:Co})}var ie$3=Oe$1;reactExports.memo(ie$3);function He$1(eo){let to=reactExports.useRef();return reactExports.useEffect(()=>{to.current=eo},[eo]),to.current}var se$1=He$1,_$7=new Map;function Ve$1({defaultValue:eo,defaultLanguage:to,defaultPath:no,value:io,language:so,path:ao,theme:lo="light",line:uo,loading:ho="Loading...",options:go={},overrideServices:mo={},saveViewState:yo=!0,keepCurrentModel:So=!1,width:_o="100%",height:ko="100%",className:Co,wrapperProps:$o={},beforeMount:Ro=D$4,onMount:Oo=D$4,onChange:No,onValidate:Mo=D$4}){let[Bo,Fo]=reactExports.useState(!1),[Lo,Go]=reactExports.useState(!0),Do=reactExports.useRef(null),Uo=reactExports.useRef(null),Ho=reactExports.useRef(null),Yo=reactExports.useRef(Oo),qo=reactExports.useRef(Ro),Jo=reactExports.useRef(),ps=reactExports.useRef(io),Qo=se$1(ao),hs=reactExports.useRef(!1),gs=reactExports.useRef(!1);k$3(()=>{let ks=loader$n.init();return ks.then(Os=>(Do.current=Os)&&Go(!1)).catch(Os=>(Os==null?void 0:Os.type)!=="cancelation"&&console.error("Monaco initialization: error:",Os)),()=>Uo.current?vs():ks.cancel()}),l$4(()=>{var Os,Ts,Xs,Ws;let ks=h$4(Do.current,eo||io||"",to||so||"",ao||no||"");ks!==((Os=Uo.current)==null?void 0:Os.getModel())&&(yo&&_$7.set(Qo,(Ts=Uo.current)==null?void 0:Ts.saveViewState()),(Xs=Uo.current)==null||Xs.setModel(ks),yo&&((Ws=Uo.current)==null||Ws.restoreViewState(_$7.get(ao))))},[ao],Bo),l$4(()=>{var ks;(ks=Uo.current)==null||ks.updateOptions(go)},[go],Bo),l$4(()=>{!Uo.current||io===void 0||(Uo.current.getOption(Do.current.editor.EditorOption.readOnly)?Uo.current.setValue(io):io!==Uo.current.getValue()&&(gs.current=!0,Uo.current.executeEdits("",[{range:Uo.current.getModel().getFullModelRange(),text:io,forceMoveMarkers:!0}]),Uo.current.pushUndoStop(),gs.current=!1))},[io],Bo),l$4(()=>{var Os,Ts;let ks=(Os=Uo.current)==null?void 0:Os.getModel();ks&&so&&((Ts=Do.current)==null||Ts.editor.setModelLanguage(ks,so))},[so],Bo),l$4(()=>{var ks;uo!==void 0&&((ks=Uo.current)==null||ks.revealLine(uo))},[uo],Bo),l$4(()=>{var ks;(ks=Do.current)==null||ks.editor.setTheme(lo)},[lo],Bo);let ys=reactExports.useCallback(()=>{var ks;if(!(!Ho.current||!Do.current)&&!hs.current){qo.current(Do.current);let Os=ao||no,Ts=h$4(Do.current,io||eo||"",to||so||"",Os||"");Uo.current=(ks=Do.current)==null?void 0:ks.editor.create(Ho.current,{model:Ts,automaticLayout:!0,...go},mo),yo&&Uo.current.restoreViewState(_$7.get(Os)),Do.current.editor.setTheme(lo),uo!==void 0&&Uo.current.revealLine(uo),Fo(!0),hs.current=!0}},[eo,to,no,io,so,ao,go,mo,yo,lo,uo]);reactExports.useEffect(()=>{Bo&&Yo.current(Uo.current,Do.current)},[Bo]),reactExports.useEffect(()=>{!Lo&&!Bo&&ys()},[Lo,Bo,ys]),ps.current=io,reactExports.useEffect(()=>{var ks,Os;Bo&&No&&((ks=Jo.current)==null||ks.dispose(),Jo.current=(Os=Uo.current)==null?void 0:Os.onDidChangeModelContent(Ts=>{gs.current||No(Uo.current.getValue(),Ts)}))},[Bo,No]),reactExports.useEffect(()=>{if(Bo){let ks=Do.current.editor.onDidChangeMarkers(Os=>{var Xs;let Ts=(Xs=Uo.current.getModel())==null?void 0:Xs.uri;if(Ts&&Os.find(Ws=>Ws.path===Ts.path)){let Ws=Do.current.editor.getModelMarkers({resource:Ts});Mo==null||Mo(Ws)}});return()=>{ks==null||ks.dispose()}}return()=>{}},[Bo,Mo]);function vs(){var ks,Os;(ks=Jo.current)==null||ks.dispose(),So?yo&&_$7.set(ao,Uo.current.saveViewState()):(Os=Uo.current.getModel())==null||Os.dispose(),Uo.current.dispose()}return React.createElement(H$2,{width:_o,height:ko,isEditorReady:Bo,loading:ho,_ref:Ho,className:Co,wrapperProps:$o})}var fe$1=Ve$1,de$1=reactExports.memo(fe$1),Ft$1=de$1;const JinjaSyntaxHighlighter=({value:eo,theme:to,onMount:no})=>jsxRuntimeExports.jsx(Ft$1,{value:eo,theme:to,options:{readOnly:!0,minimap:{enabled:!1}},defaultLanguage:"jinja2",onMount:(io,so)=>{so.languages.register({id:"jinja2"}),so.languages.setLanguageConfiguration("jinja2",{comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["{","}"]],folding:{markers:{start:/\{%\s*(block|for|if)/,end:/\{%\s*end(block|for|if)/}}}),so.languages.setMonarchTokensProvider("jinja2",{tokenizer:{root:[[/\{\{/,"delimiter"],[/\}\}/,"delimiter"],[/\{#/,"comment"],[/#\}/,"comment"],[/\{%/,"control"],[/%\}/,"control"],[/\b(if|else|elif|endif|for|endfor|set|extends|include|block|endblock|macro|endmacro)\b/,"keyword"],[/\b(length|list|lower|upper|trim|truncate|replace|round|urlencode|urlize)\b/,"filter"],[/\b(\+|-|\*|\/|%|\*\*|\/\/)\b/,"operator"],[/\b(\d+|\d*\.\d+)\b/,"number"],[/(^user:|^# user:|^system:|^# system:|^assistant:|^# assistant:)/,"keyword"]]}}),no==null||no(io)}});mergeStyleSets({root:{},header:{display:"flex",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:"var(--vscode-editor-inactiveSelectionBackground)"}},toggleButton:{marginRight:"0.5em",userSelect:"none"},body:{overflowY:"hidden",height:"fit-content"}});const locStringsInjectionToken=createInjectionToken("locStrings",{}),useLocStrings=()=>{const[eo]=useInjected(locStringsInjectionToken);return eo};var BuildInEventName=(eo=>(eo.exception="exception",eo["function.inputs"]="promptflow.function.inputs",eo["function.output"]="promptflow.function.output",eo["embedding.embeddings"]="promptflow.embedding.embeddings",eo["retrieval.query"]="promptflow.retrieval.query",eo["retrieval.documents"]="promptflow.retrieval.documents",eo["llm.generated_message"]="promptflow.llm.generated_message",eo["prompt.template"]="promptflow.prompt.template",eo))(BuildInEventName||{});const EventNameToAttribute={"promptflow.function.inputs":"inputs","promptflow.function.output":"output"},safeJSONParse=eo=>{try{return JSON.parse(eo)}catch{return eo}},safeJSONParseV2=eo=>{try{return JSON.parse(eo)}catch{return eo}};function isJsonl(eo){return eo.split(` +`).every(no=>{try{return JSON.parse(no),!0}catch{return!1}})}const isValidJson=eo=>{if(typeof eo!="string")return!1;try{return JSON.parse(eo),!0}catch{return!1}};function formatDecimal(eo){return Math.abs(eo=Math.round(eo))>=1e21?eo.toLocaleString("en").replace(/,/g,""):eo.toString(10)}function formatDecimalParts(eo,to){if((no=(eo=to?eo.toExponential(to-1):eo.toExponential()).indexOf("e"))<0)return null;var no,io=eo.slice(0,no);return[io.length>1?io[0]+io.slice(2):io,+eo.slice(no+1)]}function exponent(eo){return eo=formatDecimalParts(Math.abs(eo)),eo?eo[1]:NaN}function formatGroup(eo,to){return function(no,io){for(var so=no.length,ao=[],lo=0,uo=eo[0],ho=0;so>0&&uo>0&&(ho+uo+1>io&&(uo=Math.max(1,io-ho)),ao.push(no.substring(so-=uo,so+uo)),!((ho+=uo+1)>io));)uo=eo[lo=(lo+1)%eo.length];return ao.reverse().join(to)}}function formatNumerals(eo){return function(to){return to.replace(/[0-9]/g,function(no){return eo[+no]})}}var re$2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(eo){if(!(to=re$2.exec(eo)))throw new Error("invalid format: "+eo);var to;return new FormatSpecifier({fill:to[1],align:to[2],sign:to[3],symbol:to[4],zero:to[5],width:to[6],comma:to[7],precision:to[8]&&to[8].slice(1),trim:to[9],type:to[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(eo){this.fill=eo.fill===void 0?" ":eo.fill+"",this.align=eo.align===void 0?">":eo.align+"",this.sign=eo.sign===void 0?"-":eo.sign+"",this.symbol=eo.symbol===void 0?"":eo.symbol+"",this.zero=!!eo.zero,this.width=eo.width===void 0?void 0:+eo.width,this.comma=!!eo.comma,this.precision=eo.precision===void 0?void 0:+eo.precision,this.trim=!!eo.trim,this.type=eo.type===void 0?"":eo.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(eo){e:for(var to=eo.length,no=1,io=-1,so;no0&&(io=0);break}return io>0?eo.slice(0,io)+eo.slice(so+1):eo}var prefixExponent;function formatPrefixAuto(eo,to){var no=formatDecimalParts(eo,to);if(!no)return eo+"";var io=no[0],so=no[1],ao=so-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(so/3)))*3)+1,lo=io.length;return ao===lo?io:ao>lo?io+new Array(ao-lo+1).join("0"):ao>0?io.slice(0,ao)+"."+io.slice(ao):"0."+new Array(1-ao).join("0")+formatDecimalParts(eo,Math.max(0,to+ao-1))[0]}function formatRounded(eo,to){var no=formatDecimalParts(eo,to);if(!no)return eo+"";var io=no[0],so=no[1];return so<0?"0."+new Array(-so).join("0")+io:io.length>so+1?io.slice(0,so+1)+"."+io.slice(so+1):io+new Array(so-io.length+2).join("0")}const formatTypes={"%":(eo,to)=>(eo*100).toFixed(to),b:eo=>Math.round(eo).toString(2),c:eo=>eo+"",d:formatDecimal,e:(eo,to)=>eo.toExponential(to),f:(eo,to)=>eo.toFixed(to),g:(eo,to)=>eo.toPrecision(to),o:eo=>Math.round(eo).toString(8),p:(eo,to)=>formatRounded(eo*100,to),r:formatRounded,s:formatPrefixAuto,X:eo=>Math.round(eo).toString(16).toUpperCase(),x:eo=>Math.round(eo).toString(16)};function identity$6(eo){return eo}var map$2=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(eo){var to=eo.grouping===void 0||eo.thousands===void 0?identity$6:formatGroup(map$2.call(eo.grouping,Number),eo.thousands+""),no=eo.currency===void 0?"":eo.currency[0]+"",io=eo.currency===void 0?"":eo.currency[1]+"",so=eo.decimal===void 0?".":eo.decimal+"",ao=eo.numerals===void 0?identity$6:formatNumerals(map$2.call(eo.numerals,String)),lo=eo.percent===void 0?"%":eo.percent+"",uo=eo.minus===void 0?"−":eo.minus+"",ho=eo.nan===void 0?"NaN":eo.nan+"";function go(yo){yo=formatSpecifier(yo);var So=yo.fill,_o=yo.align,ko=yo.sign,Co=yo.symbol,$o=yo.zero,Ro=yo.width,Oo=yo.comma,No=yo.precision,Mo=yo.trim,Bo=yo.type;Bo==="n"?(Oo=!0,Bo="g"):formatTypes[Bo]||(No===void 0&&(No=12),Mo=!0,Bo="g"),($o||So==="0"&&_o==="=")&&($o=!0,So="0",_o="=");var Fo=Co==="$"?no:Co==="#"&&/[boxX]/.test(Bo)?"0"+Bo.toLowerCase():"",Lo=Co==="$"?io:/[%p]/.test(Bo)?lo:"",Go=formatTypes[Bo],Do=/[defgprs%]/.test(Bo);No=No===void 0?6:/[gprs]/.test(Bo)?Math.max(1,Math.min(21,No)):Math.max(0,Math.min(20,No));function Uo(Ho){var Yo=Fo,qo=Lo,Jo,ps,Qo;if(Bo==="c")qo=Go(Ho)+qo,Ho="";else{Ho=+Ho;var hs=Ho<0||1/Ho<0;if(Ho=isNaN(Ho)?ho:Go(Math.abs(Ho),No),Mo&&(Ho=formatTrim(Ho)),hs&&+Ho==0&&ko!=="+"&&(hs=!1),Yo=(hs?ko==="("?ko:uo:ko==="-"||ko==="("?"":ko)+Yo,qo=(Bo==="s"?prefixes[8+prefixExponent/3]:"")+qo+(hs&&ko==="("?")":""),Do){for(Jo=-1,ps=Ho.length;++JoQo||Qo>57){qo=(Qo===46?so+Ho.slice(Jo+1):Ho.slice(Jo))+qo,Ho=Ho.slice(0,Jo);break}}}Oo&&!$o&&(Ho=to(Ho,1/0));var gs=Yo.length+Ho.length+qo.length,ys=gs>1)+Yo+Ho+qo+ys.slice(gs);break;default:Ho=ys+Yo+Ho+qo;break}return ao(Ho)}return Uo.toString=function(){return yo+""},Uo}function mo(yo,So){var _o=go((yo=formatSpecifier(yo),yo.type="f",yo)),ko=Math.max(-8,Math.min(8,Math.floor(exponent(So)/3)))*3,Co=Math.pow(10,-ko),$o=prefixes[8+ko/3];return function(Ro){return _o(Co*Ro)+$o}}return{format:go,formatPrefix:mo}}var locale$1,format$1,formatPrefix;defaultLocale$1({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale$1(eo){return locale$1=formatLocale$1(eo),format$1=locale$1.format,formatPrefix=locale$1.formatPrefix,locale$1}function precisionFixed(eo){return Math.max(0,-exponent(Math.abs(eo)))}function precisionPrefix(eo,to){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(to)/3)))*3-exponent(Math.abs(eo)))}function precisionRound(eo,to){return eo=Math.abs(eo),to=Math.abs(to)-eo,Math.max(0,exponent(to)-exponent(eo))+1}function formatInt(eo){return Math.abs(eo)<1e6?format$1(",")(eo):format$1("0.2s")(eo)}function formatFloat(eo){const to=Math.abs(eo);return to===0?"0.00":to<.01?format$1(".2e")(eo):to<1e3?format$1("0.2f")(eo):format$1("0.2s")(eo)}function formatNumber$1(eo){return Number.isInteger(eo)?formatInt(eo):formatFloat(eo)}function createNumberFormatter(eo){return to=>typeof to!="number"?"--":eo(to)}const intFormatter=createNumberFormatter(formatInt),floatFormatter=createNumberFormatter(formatFloat),timeFormat$1=eo=>(eo&&!eo.endsWith("Z")&&(eo+="Z"),eo?new Date(eo).toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):"--"),latencyFormatInMS=eo=>{if(eo===void 0||eo<0)return"N/A";if(eo<6e4)return format$1(".3f")(eo/1e3)+"s";{const to=Math.floor(eo/6e4);eo%=6e4;const no=eo/1e3;return`${to}min ${Math.floor(no)}s`}},parseHttpSpanAttributes=eo=>{var io;const to=eo==null?void 0:eo.attributes;if(!to||((io=to.span_type)==null?void 0:io.toLowerCase())!=="http")return;const no={response:{headers:{}},request:{headers:{}}};return Object.entries(to).forEach(([so,ao])=>{const lo=so.toLowerCase();if(lo==="url.full"){no.urlFull=ao;return}const[uo,ho,go,...mo]=lo.split(".");if(uo==="http")switch(ho){case"request":go==="header"?no.request.headers[mo.join(".")]=ao:no.request[[go,...mo].join(".")]=ao;break;case"response":go==="header"?no.response.headers[mo.join(".")]=ao:no.response[[go,...mo].join(".")]=ao;break;case"status_code":no.status_code=ao;break;case"method":no.method=ao;break;default:no[so.substring(5)]=ao}}),no},convertToTraceListRow=eo=>{var no,io,so;const to=eo.end_time&&eo.start_time?Date.parse(eo.end_time)-Date.parse(eo.start_time):0;return{...eo,latency:to,total_tokens:(no=eo==null?void 0:eo.cumulative_token_count)==null?void 0:no.total,prompt_tokens:(io=eo==null?void 0:eo.cumulative_token_count)==null?void 0:io.prompt,completion_tokens:(so=eo==null?void 0:eo.cumulative_token_count)==null?void 0:so.completion}};var AutoRefreshInterval=(eo=>(eo.OFF="OFF",eo["30s"]="30s",eo["1m"]="1m",eo["5m"]="5m",eo["10m"]="10m",eo))(AutoRefreshInterval||{});const AUTO_REFRESH_LIST=["OFF","30s","1m","5m"],REFRESH_INTERVAL_MAP={OFF:0,"30s":3e4,"1m":6e4,"5m":3e5,"10m":6e5};var _a$3;const initialTableColumnNames={normalColumns:[],evaluationColumns:[]};var ViewStatus=(eo=>(eo.loading="loading",eo.loaded="loaded",eo.error="error",eo.hidden="hidden",eo))(ViewStatus||{});const eDe=class eDe{constructor(to){this.selectedSpanId$=new State$2(void 0),this.selectedTraceId$=new State$2(void 0),this.selectedLLMMessage$=new State$2(void 0),this.spans$=new ObservableMap,this.traces$=new ObservableOrderedMap,this.tableColumnNames$=new State$2(initialTableColumnNames),this.tableHiddenColumnKeys$=new State$2([]),this.isTraceDetailOpen$=new State$2(!1),this.isGanttChartOpen$=new State$2(!1),this.showTraceDetailRightPanel$=new State$2(!0),this.traceListStatus$=new State$2("loading"),this.traceDetailStatus$=new State$2("loading"),this.traceListShowMetrics$=new State$2(!0),this.traceFilterChanged$=new State$2(!1),this.messagesBySpanId$=new ObservableOrderedMap,this.sortColumn$=new State$2(void 0),this.sortableColumns=[],this.traceDetailHistoryTraceList$=new State$2([]),this.traceDetailEvaluationTraces$=new ObservableMap,this.loadSummariesError$=new State$2(void 0),this.traceListAutoRefreshInterval$=new State$2(AutoRefreshInterval.OFF),this.isLazyLoadSpan=!0,this.spanEventsLoadStatus$=new ObservableMap,this.spanRawJsonLoadCache$=new ObservableMap;const{traceListConfig:no,spanConfig:io}=to||{};no&&(this.traceListColumnModifier=no.columnModifier,no.showMetrics!==void 0&&this.traceListShowMetrics$.setState(no.showMetrics),no.defaultHiddenColumnKeys!==void 0&&this.tableHiddenColumnKeys$.setState(no.defaultHiddenColumnKeys),no.sortableColumns&&(this.sortableColumns=no.sortableColumns)),io&&(this._fetchSpanEvent=io.fetchSpanEvent,this.isLazyLoadSpan=io.isLazyLoadSpan??!0),this.selectedTrace$=Computed$1.fromStates([this.selectedTraceId$,this.traces$],([so,ao])=>so&&ao.get(so)||void 0),this.selectedTraceId$.subscribe(so=>{var lo;if(!so)return;const ao=this.traces$.get(so);(lo=this._traceDetailDidOpenCallback)==null||lo.call(this,so,ao)}),this.isTraceDetailOpen$.subscribe(so=>{var uo;const ao=this.selectedTraceId$.getSnapshot(),lo=this.selectedTrace$.getSnapshot();!so&&ao&&((uo=this._traceDetailDidCloseCallback)==null||uo.call(this,ao,lo),this.clearDetail())}),this.sortColumn$.subscribe(so=>{var ao;(ao=this._traceListSortColumnDidChangeCallback)==null||ao.call(this,so)}),this.traceDetailTitle$=Computed$1.fromStates([this.selectedTraceId$,this.traces$],([so,ao])=>{if(!so)return"";const lo=ao.get(so);return(lo==null?void 0:lo.name)??""})}traceDetailDidOpen(to){this._traceDetailDidOpenCallback=to}traceDetailDidClose(to){this._traceDetailDidCloseCallback=to}onTraceDetailCopyUrl(to){this._traceDetailCopyUrlCallback=to}traceListSortColumnDidChange(to){this._traceListSortColumnDidChangeCallback=to}onRefreshSpans(to){this._refreshSpansCallback=to}setOnRefreshTraces(to){this._refreshTracesCallback=to}traceDetailCopyUrl(){const to=this.selectedTraceId$.getSnapshot(),no=this.selectedTrace$.getSnapshot();return to&&this._traceDetailCopyUrlCallback?(this._traceDetailCopyUrlCallback(to,no),!0):!1}refreshSpans(){var io;const to=this.selectedTraceId$.getSnapshot(),no=this.selectedTrace$.getSnapshot();to&&(this.spanEventsLoadStatus$.clear(),this.spanRawJsonLoadCache$.clear(),(io=this._refreshSpansCallback)==null||io.call(this,to,no))}refreshTraces(){var to;(to=this._refreshTracesCallback)==null||to.call(this)}clear(){this.traces$.clear(),this.spans$.clear()}clearDetail(){this.traceDetailStatus$.setState("hidden"),this.isGanttChartOpen$.setState(!1),this.selectedTraceId$.setState(void 0),this.selectedLLMMessage$.next(void 0),this.spanEventsLoadStatus$.clear(),this.spanRawJsonLoadCache$.clear(),this.clearDetailHistoryTrace()}clearDetailHistoryTrace(){this.traceDetailHistoryTraceList$.next([]);const to=this.traceDetailEvaluationTraces$.getSnapshot().keys();for(const no of to){const io=this.traces$.get(no);io&&io.__is_ui_evaluation__&&this.traces$.delete(no)}this.traceDetailEvaluationTraces$.clear()}appendTraces(to,no){to.forEach(io=>{if(io.trace_id!==void 0){const so=this.traces$.get(io.trace_id);(so&&so.__is_ui_evaluation__||!so&&this.traceDetailEvaluationTraces$.get(io.trace_id))&&(io.__is_ui_evaluation__=!0),no?this.traces$.set(io.trace_id,io).sortByValue(no):this.traces$.set(io.trace_id,io)}})}appendSpans(to){!to||!Array.isArray(to)||to.forEach(no=>{var ho,go;const io=(ho=no==null?void 0:no.context)==null?void 0:ho.trace_id,so=(go=no==null?void 0:no.context)==null?void 0:go.span_id;if(!io||!so)return;const ao=this.spans$.get(io)||new ObservableOrderedMap,lo=this.spanEventsLoadStatus$.getSnapshot().keys(),uo=this.spanRawJsonLoadCache$.getSnapshot().keys();this.spanEventsLoadStatus$.deleteAll(Array.from(lo).filter(mo=>mo.includes(so))),this.spanRawJsonLoadCache$.deleteAll(Array.from(uo).filter(mo=>mo.includes(so))),this.spans$.set(io,ao.set(so,no))})}toggleIsGanttChartOpen(){this.isGanttChartOpen$.setState(!this.isGanttChartOpen$.getSnapshot())}getTraceById(to){return to?this.traces$.get(to):void 0}setTraceListStatus(to){this.traceListStatus$.setState(to),to!=="error"&&this.loadSummariesError$.setState(void 0)}setTraceDetailStatus(to){this.traceDetailStatus$.setState(to)}setTraceDetailOpen(to,no){this.isTraceDetailOpen$.setState(to),this.selectedTraceId$.setState(to?no:void 0)}sortTraces(to){this.traces$.sortByValue(to)}fetchSpanEvent(to){var no;return((no=this._fetchSpanEvent)==null?void 0:no.call(this,to))??Promise.resolve({status:"success"})}detailNavigateTo(to,no){if(no!==void 0){const ao=this.traceDetailHistoryTraceList$.getSnapshot().slice(0,no);this.traceDetailHistoryTraceList$.setState(ao),this.selectedTraceId$.setState(to.trace_id);return}const io=this.selectedTrace$.getSnapshot();io&&this.traceDetailHistoryTraceList$.setState([...this.traceDetailHistoryTraceList$.getSnapshot(),io]),to.trace_id&&this.traceDetailEvaluationTraces$.set(to.trace_id,!0),this.selectedTraceId$.setState(to.trace_id)}};_a$3=SINGLETON,eDe[_a$3]=!0;let TraceViewModel=eDe;const TraceViewModelToken=createInjectionToken("TraceViewModel",new TraceViewModel),useLoadSpanEvents=(eo,to,no)=>{const io=useTraceViewModel(),so=useSpanEventsLoadStatus();return reactExports.useMemo(()=>createLoadSpanEvents(io,so,eo,to,no),[io,so,eo,to,no])},createLoadSpanEvents=(eo,to,no,io,so)=>{const ao=(lo,uo,ho)=>{var mo;const{data:go}=lo;if((mo=uo.events)!=null&&mo[ho]){const yo=typeof go=="string"?safeJSONParseV2(go):go;typeof yo=="object"&&(yo.name=uo.events[ho].name??"",uo.events[ho]=yo)}};return({onCompleted:lo,forceRefresh:uo})=>{var go,mo,yo,So;if(!((go=no==null?void 0:no.events)!=null&&go.length)||!eo.isLazyLoadSpan){lo();return}if(so!==void 0){const _o=(mo=no.external_event_data_uris)==null?void 0:mo[so];if(!_o){lo();return}const ko=`${(yo=no.context)==null?void 0:yo.span_id}__${_o}`;if(to.get(ko)==="success"){lo();return}if(!uo&&to.has(ko)){lo(to.get(ko)==="error"?new Error("load error"):void 0);return}eo.fetchSpanEvent(_o).then(Co=>{Co.status==="error"?(to.set(ko,"error"),lo(new Error("load error"))):(ao(Co,no,so),to.set(ko,"success"),lo())});return}const ho=`${(So=no.context)==null?void 0:So.span_id}__${io}`;if(!uo&&to.has(ho)){lo(to.get(ho)==="error"?new Error("load error"):void 0);return}Promise.all(no.events.map((_o,ko)=>{var Co,$o;if(_o.name===io){const Ro=(Co=no.external_event_data_uris)==null?void 0:Co[ko];if(!Ro)return Promise.resolve({status:"success"});const Oo=`${($o=no.context)==null?void 0:$o.span_id}__${Ro}`;return to.get(Oo)==="success"?Promise.resolve({status:"success"}):!uo&&to.has(Oo)?Promise.resolve({status:to.get(Oo)==="error"?"error":"success"}):eo.fetchSpanEvent(Ro).then(No=>(No.status==="error"?to.set(Oo,"error"):(ao(No,no,ko),to.set(Oo,"success")),No))}}).filter(_o=>_o!==void 0)).then(_o=>{if(_o.some(ko=>(ko==null?void 0:ko.status)==="error")){to.set(ho,"error"),lo(new Error("load error"));return}to.set(ho,"success"),lo()})}},getSpanEventsWithPayload=(eo,to)=>{var no;return((no=eo==null?void 0:eo.events)==null?void 0:no.filter(io=>io.name===to).map(io=>{var so;return{...io,attributes:safeJSONParse(((so=io.attributes)==null?void 0:so.payload)??"")}}))??[]},useLoadSpans=(eo,to)=>{const no=useTraceViewModel(),io=useSpanEventsLoadStatus(),so=[];for(const uo of eo)if(uo!==void 0)for(const ho of to)so.push(createLoadSpanEvents(no,io,uo,ho));const ao=reactExports.useMemo(()=>eo,[...eo]),lo=reactExports.useMemo(()=>to.join(","),[to]);return reactExports.useMemo(()=>({onCompleted:uo,forceRefresh:ho})=>{Promise.all(so.map(go=>new Promise((mo,yo)=>{go({onCompleted:So=>{if(So){yo();return}mo(void 0)},forceRefresh:ho})}))).then(()=>{uo()}).catch(()=>{uo(new Error("load error"))})},[ao,lo])},useFetchSpanRawJson=eo=>{const to=useTraceViewModel(),no=useSpanRawJsonLoadCache();return reactExports.useMemo(()=>{const io=eo==null?void 0:eo.span_json_uri;return({onCompleted:so})=>{var uo;if(!io){so(void 0,void 0);return}const ao=`${(uo=eo==null?void 0:eo.context)==null?void 0:uo.span_id}__${io}`,lo=no.get(ao);if(lo){so(void 0,lo);return}to.fetchSpanEvent(io).then(ho=>{ho.status==="success"?(no.set(ao,ho.data),so(void 0,ho.data)):so(new Error("load error"))})}},[to,no,eo])},useTraceViewModel=()=>{const[eo]=useInjected(TraceViewModelToken);return eo},useSelectedSpanId=()=>{const eo=useTraceViewModel();return useState(eo.selectedSpanId$)},useSelectedSpan=()=>{var io;const eo=useTraceViewModel(),to=useSelectedSpanId(),no=useSelectedTraceId();if(!(!to||!no))return(io=eo.spans$.get(no))==null?void 0:io.get(to)},useParentSpanOfSelectedSpan=()=>{var io;const eo=useTraceViewModel(),to=useSelectedTraceId(),no=useSelectedSpan();if(!(!no||!to||!no.parent_id))return(io=eo.spans$.get(to))==null?void 0:io.get(no.parent_id)},useSetSelectedSpanId=()=>useSetState(useTraceViewModel().selectedSpanId$),useSelectedTraceId=()=>useState(useTraceViewModel().selectedTraceId$),useSetSelectedTraceId=()=>useSetState(useTraceViewModel().selectedTraceId$),useSelectedTrace=()=>{const eo=useTraceViewModel();return useState(eo.selectedTrace$)},useSpansOfSelectedTrace=()=>{const eo=useTraceViewModel(),to=useSelectedTraceId(),no=useState(eo.spans$.get(to??"")??new ObservableOrderedMap);return Array.from(no.values())},useTraces=()=>{const eo=useState(useTraceViewModel().traces$);return reactExports.useMemo(()=>Array.from(eo.values()).filter(to=>!to.__is_ui_evaluation__),[eo])},useTraceNavigation=()=>{var mo;const eo=useTraceViewModel(),to=useTraces(),no=useSelectedTraceId(),so=((mo=useTraceDetailHistoryTraces()[0])==null?void 0:mo.trace_id)??no,ao=to.findIndex(yo=>yo.trace_id===so),lo=ao>0,uo=ao{lo&&(eo.clearDetailHistoryTrace(),eo.selectedTraceId$.setState(to[ao-1].trace_id))},[lo,ao,to,eo]),go=reactExports.useCallback(()=>{uo&&(eo.clearDetailHistoryTrace(),eo.selectedTraceId$.setState(to[ao+1].trace_id))},[uo,ao,to,eo]);return{hasPreviousTrace:lo,hasNextTrace:uo,goToPreviousTrace:ho,goToNextTrace:go}},useEvaluationSpansOfSelectedSpan=()=>{const eo=useTraceViewModel(),to=[],no=useSelectedTrace();return no?(Object.keys(no.evaluations??[]).forEach(io=>{var ao,lo;const so=(ao=no==null?void 0:no.evaluations)==null?void 0:ao[io];if(so){const uo=Array.from(((lo=eo.spans$.get(so.trace_id??""))==null?void 0:lo.getState().values())??[]);to.push({evaluationName:so.name??io,evaluationTraces:uo})}}),to):[]},useRootSpanIdOfSelectedSpans=()=>{const eo=useSelectedTrace();return eo==null?void 0:eo.root_span_id},useTableColumnNames=()=>useState(useTraceViewModel().tableColumnNames$),useSetTableColumnNames=()=>useSetState(useTraceViewModel().tableColumnNames$),useTableHiddenColumnKeys=()=>useState(useTraceViewModel().tableHiddenColumnKeys$),useSetTableHiddenColumnKeys=()=>useSetState(useTraceViewModel().tableHiddenColumnKeys$),useIsTraceDetailOpen=()=>useState(useTraceViewModel().isTraceDetailOpen$),useSetIsTraceDetailOpen=()=>useSetState(useTraceViewModel().isTraceDetailOpen$),useShowTraceDetailRightPanel=()=>useState(useTraceViewModel().showTraceDetailRightPanel$),useSetShowTraceDetailRightPanel=()=>useSetState(useTraceViewModel().showTraceDetailRightPanel$),useTraceDetailRefreshKey=()=>{const eo=useTraceViewModel(),to=useSelectedTraceId(),no=useState(eo.spans$),io=Array.from(useState(no.get(to??"")??new ObservableOrderedMap).keys());return`${to}-${io.join("-")}`},useIsGanttChartOpen=()=>useState(useTraceViewModel().isGanttChartOpen$),useTraceListColumnModifier=()=>useTraceViewModel().traceListColumnModifier,useTraceListShowMetrics=()=>useState(useTraceViewModel().traceListShowMetrics$),useTraceFilterChanged=()=>useState(useTraceViewModel().traceFilterChanged$),useSetTraceFilterChanged=()=>useSetState(useTraceViewModel().traceFilterChanged$),getSpanMessages=(eo,to,no)=>{var _o,ko,Co,$o,Ro;const io=to?(_o=eo.spans$.get(to))==null?void 0:_o.get(no):void 0,so=getSpanEventsWithPayload(io,BuildInEventName["function.inputs"])[0],ao=getSpanEventsWithPayload(io,BuildInEventName["function.output"])[0],lo=getSpanEventsWithPayload(io,BuildInEventName["llm.generated_message"])[0];if(!to)return{inputMessages:[],outputMessages:[],tools:[]};const uo=so?so.attributes:safeJSONParse(((ko=io==null?void 0:io.attributes)==null?void 0:ko.inputs)??"{}"),ho=(Co=io==null?void 0:io.attributes)==null?void 0:Co["llm.generated_message"],go=(lo==null?void 0:lo.attributes)??(ho?safeJSONParse(ho):void 0),mo=(uo==null?void 0:uo.tools)??[],yo=(uo==null?void 0:uo.messages)??[];let So=[];if(go)typeof go=="string"?So=[{content:go,role:"",tools:mo}]:So=[go].map(Oo=>({...Oo,tools:mo}));else{const Oo=ao?ao.attributes:safeJSONParse((($o=io==null?void 0:io.attributes)==null?void 0:$o.output)??"{}");So=((Ro=Oo==null?void 0:Oo.choices)==null?void 0:Ro.reduce((No,Mo)=>Mo.message?[...No,{...Mo.message,tools:mo}]:Mo.text?[...No,{content:Mo.text,role:"",tools:mo}]:No,[]))??[]}return{inputMessages:yo,outputMessages:So,tools:mo}},useMessagesBySpanId=eo=>{const to=useTraceViewModel(),no=useState(to.selectedTraceId$);return getSpanMessages(to,no,eo)},useMessagesOfSelectedSpan=()=>{const eo=useSelectedSpanId();return useMessagesBySpanId(eo??"")},useGetAllTraces=()=>{const eo=useTraceViewModel();return reactExports.useCallback(()=>Array.from(eo.traces$.getState().values()),[eo.traces$])},useGetAllSpans=()=>{const eo=useTraceViewModel();return reactExports.useCallback(()=>{const to=[];return eo.spans$.getState().forEach(io=>{io.getState().forEach(ao=>{to.push(ao)})}),to},[eo.spans$])},useSortColumn=()=>{const eo=useTraceViewModel();return useState(eo.sortColumn$)},useSetSortColumn=()=>useSetState(useTraceViewModel().sortColumn$),useSortableColumns=()=>useTraceViewModel().sortableColumns,useSelectedTraceTitle=()=>useState(useTraceViewModel().traceDetailTitle$),useSpanEventsLoadStatus=()=>useTraceViewModel().spanEventsLoadStatus$,useSpanRawJsonLoadCache=()=>useTraceViewModel().spanRawJsonLoadCache$,useIsLazyLoadSpan=()=>useTraceViewModel().isLazyLoadSpan,useSelectedLLMMessage=()=>{const eo=useTraceViewModel();return useState(eo.selectedLLMMessage$)},useSetSelectedLLMMessage=()=>{const eo=useTraceViewModel();return useSetState(eo.selectedLLMMessage$)},useTraceDetailHistoryTraces=()=>{const eo=useTraceViewModel();return useState(eo.traceDetailHistoryTraceList$)},useGetTraceByLineRunId=()=>{const eo=useTraces();return reactExports.useCallback(to=>eo.find(no=>no.line_run_id===to),[eo])},useLoadSummariesError=()=>useState(useTraceViewModel().loadSummariesError$),useSetLoadSummariesError=()=>useSetState(useTraceViewModel().loadSummariesError$),useTraceListAutoRefreshInterval=()=>useState(useTraceViewModel().traceListAutoRefreshInterval$),useSetTraceListAutoRefreshInterval=()=>useSetState(useTraceViewModel().traceListAutoRefreshInterval$),StreamSwitcher=({isStreaming:eo,style:to,onIsStreamingChange:no,labelName:io})=>{const so=useLocStrings();return jsxRuntimeExports.jsx(Switch,{label:io||so.Streaming,labelPosition:"before",checked:eo,onChange:(ao,lo)=>no(lo.checked),style:to})};var UISize=(eo=>(eo.extraSmall="extra-small",eo.small="small",eo.normal="normal",eo.large="large",eo))(UISize||{});const genStatusChecker=eo=>to=>to===void 0?!1:to.toLowerCase()===eo.toLowerCase(),checkStatus=(eo,to)=>eo===void 0?!1:eo.toLowerCase()===to.toLowerCase(),useUISize=eo=>{const{textSize:to,iconSize:no,gap:io}=reactExports.useMemo(()=>{switch(eo){case UISize.extraSmall:return{textSize:200,iconSize:"12px",gap:"2px"};case UISize.small:return{textSize:300,iconSize:"16px",gap:"2px"};case UISize.large:return{textSize:500,iconSize:"26px",gap:"5px"};case UISize.normal:default:return{textSize:400,iconSize:"20px",gap:"5px"}}},[eo]);return{textSize:to,iconSize:no,gap:io}},LatencyText=({startTimeISOString:eo,endTimeISOString:to,size:no,tipTextSize:io,isLoading:so=!1})=>{const ao=useClasses$E(),lo=eo?new Date(eo):void 0,uo=to?new Date(to):void 0,ho=lo&&uo?uo.getTime()-lo.getTime():void 0,go=latencyFormatInMS(ho),{textSize:mo,iconSize:yo,gap:So}=useUISize(no);return jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Text$2,{size:io,weight:"bold",block:!0,children:"Start Time"}),jsxRuntimeExports.jsx(Text$2,{size:io,block:!0,children:timeFormat$1(eo)}),jsxRuntimeExports.jsx(Text$2,{size:io,weight:"bold",block:!0,children:"End Time"}),jsxRuntimeExports.jsx(Text$2,{size:io,block:!0,children:timeFormat$1(to)})]}),relationship:"label",children:jsxRuntimeExports.jsxs("div",{className:ao.wrapper,style:{gap:So},children:[jsxRuntimeExports.jsx(Clock20Regular,{style:{height:yo,width:yo}}),so?jsxRuntimeExports.jsx(SkeletonItem,{style:{width:yo,height:yo}}):jsxRuntimeExports.jsx(Text$2,{size:mo,className:ao.text,children:go})]})})},useClasses$E=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center"},text:{color:tokens$1.colorNeutralForeground3,fontWeight:600,whiteSpace:"nowrap"}}),MetricTag=({tag:eo,maxValueLength:to=20})=>{const no=useClasses$D(),[io,so]=React.useState(!0),ao=reactExports.useMemo(()=>{if(typeof eo.value=="number")return formatNumber$1(eo.value);{const lo=eo.value.toString();return io&&lo.length>to?lo.substring(0,to)+"...":lo}},[eo.value,io,to]);return jsxRuntimeExports.jsxs(Badge$2,{className:no.wrapper,size:"medium",shape:"rounded",appearance:"outline",onClick:()=>so(!io),children:[jsxRuntimeExports.jsxs("span",{className:no.name,children:[eo.name," "]}),jsxRuntimeExports.jsx("span",{className:no.data,children:ao})]})},useClasses$D=makeStyles({wrapper:{display:"inline-flex",fontSize:"12px",cursor:"pointer",...shorthands.padding("0px","8px","1px"),...shorthands.borderColor(tokens$1.colorPaletteGreenBorder2),...shorthands.gap("0.5rem")},name:{color:tokens$1.colorPaletteGreenBorder2,fontWeight:tokens$1.fontWeightRegular},data:{color:tokens$1.colorNeutralForeground1,fontWeight:tokens$1.fontWeightRegular}});function TokenText({token:eo,info:to,size:no=UISize.normal,isLoading:io=!1}){const so=useClasses$C(),ao=typeof eo=="number"?intFormatter(eo):eo,{textSize:lo,iconSize:uo,gap:ho}=useUISize(no),go=io?jsxRuntimeExports.jsx(SkeletonItem,{style:{width:uo,height:uo}}):jsxRuntimeExports.jsx(Text$2,{size:lo,className:so.text,children:ao});return jsxRuntimeExports.jsxs("div",{className:so.wrapper,style:{gap:ho},children:[jsxRuntimeExports.jsx(NumberCircle020Regular,{style:{height:uo,width:uo}}),to?jsxRuntimeExports.jsx(Tooltip,{content:to,relationship:"description",children:go}):go]})}const useClasses$C=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},text:{color:tokens$1.colorNeutralForeground3,fontWeight:600}}),NodeToken=({span:eo,showDetail:to=!0,size:no})=>{const{"llm.usage.total_tokens":io,"llm.usage.prompt_tokens":so,"llm.usage.completion_tokens":ao}=eo.attributes||{};return io===void 0?null:jsxRuntimeExports.jsx(TokenText,{token:io,size:no,info:to?jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:6},children:[jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Total tokens",value:io}}),jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Prompt tokens",value:so??0}}),jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Completion tokens",value:ao??0}})]}):void 0})},SummaryToken=({trace:eo,showDetail:to=!0,size:no,isLoading:io=!1})=>{const{total_tokens:so,prompt_tokens:ao,completion_tokens:lo}=eo;return so===void 0?null:jsxRuntimeExports.jsx(TokenText,{token:so,size:no,isLoading:io,info:to?jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:6},children:[jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Total tokens",value:so}}),ao!==void 0&&jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Prompt tokens",value:ao}}),lo!==void 0&&jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Completion tokens",value:lo}})]}):void 0})},getStatusTextByStatusCode=eo=>(eo==null?void 0:eo.toLowerCase())==="ok"||(eo==null?void 0:eo.toLowerCase())==="completed"?"Completed":eo||"unknown";function StatusText({statusCode:eo,showText:to=!1,size:no,tooltipContent:io}){const so=useClasses$B(),ao=getStatusTextByStatusCode(eo),{textSize:lo,iconSize:uo,gap:ho}=useUISize(no),go=reactExports.useMemo(()=>({width:uo,height:uo}),[uo]),[mo,yo]=reactExports.useMemo(()=>{switch(eo==null?void 0:eo.toLowerCase()){case"ok":case"completed":return[jsxRuntimeExports.jsx(CheckmarkCircle20Filled,{style:go},"ok"),tokens$1.colorPaletteGreenForeground1];case"error":return[jsxRuntimeExports.jsx(DismissCircle20Filled,{style:go},"error"),tokens$1.colorPaletteRedForeground1];case"unset":return[jsxRuntimeExports.jsx(ErrorCircle20Filled,{style:go},"unset"),tokens$1.colorPaletteYellowForeground1];case"running":return[jsxRuntimeExports.jsx(ArrowClockwiseDashes20Filled,{className:so.rotate,style:go},"running"),tokens$1.colorPaletteYellowForeground1];default:return[jsxRuntimeExports.jsx(QuestionCircle20Filled,{},"unknown"),tokens$1.colorPaletteYellowForeground1]}},[so.rotate,go,eo]);return jsxRuntimeExports.jsx(Tooltip,{content:io??ao??"",relationship:"label",children:jsxRuntimeExports.jsxs("div",{className:so.wrapper,style:{color:yo,gap:to?ho:0},children:[mo,to&&jsxRuntimeExports.jsx(Text$2,{size:lo,children:ao})]})})}const useClasses$B=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},rotate:{animationDuration:"2s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}}}),useClasses$A=makeStyles({root:{display:"flex",fontSize:tokens$1.fontSizeBase200,marginLeft:"8px",...shorthands.gap("8px","column")}}),TraceSystemMetrics=()=>{const eo=useSelectedTrace(),to=useClasses$A();if(!eo)return null;const no=checkStatus(eo.status,"running"),io=checkStatus(eo.status,"error");return jsxRuntimeExports.jsxs("div",{className:to.root,children:[jsxRuntimeExports.jsx(StatusText,{statusCode:eo.status,size:UISize.normal,showText:!0}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:eo.start_time,endTimeISOString:eo.end_time,size:UISize.normal,isLoading:no}),!io&&jsxRuntimeExports.jsx(SummaryToken,{trace:convertToTraceListRow(eo),size:UISize.normal,isLoading:no})]})},useClasses$z=makeStyles({title:{...shorthands.flex(1),...shorthands.padding("0"),lineHeight:"28px",fontSize:"20px",fontWeight:600},button:{fontSize:"20px",fontWeight:600,...shorthands.padding("0")},normalItem:{display:"flex",fontSize:"20px",fontWeight:600}}),TraceDetailTitle=({preTitleSlot:eo})=>{const to=useSelectedTraceTitle(),no=useClasses$z(),io=useTraceDetailHistoryTraces(),so=useTraceViewModel();return jsxRuntimeExports.jsxs(Breadcrumb,{className:no.title,size:"large",children:[eo,io.length?io.map((ao,lo)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(BreadcrumbItem,{children:jsxRuntimeExports.jsx(BreadcrumbButton,{className:no.button,onClick:()=>{so.detailNavigateTo(ao,lo)},children:jsxRuntimeExports.jsx("span",{children:ao.name},ao.trace_id)})},`${ao.trace_id}-0`),jsxRuntimeExports.jsx(BreadcrumbDivider,{},`${ao.trace_id}-1`)]})):null,jsxRuntimeExports.jsx(BreadcrumbItem,{children:jsxRuntimeExports.jsxs("div",{className:no.normalItem,children:[to,jsxRuntimeExports.jsx(TraceSystemMetrics,{})]})})]})},useClasses$y=makeStyles({header:{display:"flex",width:"100%",boxSizing:"border-box",...shorthands.padding("12px","20px")},divider:{height:"100%",...shorthands.flex("none"),...shorthands.padding(0,tokens$1.spacingHorizontalM)},navigation:{display:"flex",alignItems:"center",...shorthands.gap(tokens$1.spacingHorizontalS)},navigationItem:{"@media (max-width: 1020px)":{display:"none"}},navigationItemSmall:{minWidth:"auto","@media (min-width: 1020px)":{display:"none"}},time:{display:"flex",alignItems:"center",paddingRight:tokens$1.spacingHorizontalL,...shorthands.flex("0 1 auto"),"@media (max-width: 1020px)":{display:"none"}},timeSmall:{display:"flex",alignItems:"center",...shorthands.flex("0 1 auto"),"@media (min-width: 1020px)":{display:"none"}}}),TraceNavigation=({showPreviousTraceArrow:eo,showNextTraceArrow:to,goToNextTrace:no,goToPreviousTrace:io})=>{const so=useLocStrings(),ao=useClasses$y(),lo=useSelectedTrace(),{hasPreviousTrace:uo,hasNextTrace:ho,goToPreviousTrace:go,goToNextTrace:mo}=useTraceNavigation(),yo=no||mo,So=io||go,_o=eo?eo(lo):uo,ko=to?to(lo):ho;return _o||ko?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:ao.navigation,children:[_o&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Button$2,{className:ao.navigationItem,icon:jsxRuntimeExports.jsx(ArrowUp20Regular,{}),onClick:So,appearance:"subtle",children:[so["Previous trace"]," "]}),jsxRuntimeExports.jsx(Tooltip,{relationship:"description",content:so["Previous trace"],children:jsxRuntimeExports.jsx(Button$2,{className:ao.navigationItemSmall,icon:jsxRuntimeExports.jsx(ArrowUp20Regular,{}),onClick:So,appearance:"subtle"})})]}),ko&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Button$2,{className:ao.navigationItem,icon:jsxRuntimeExports.jsx(ArrowDown20Regular,{}),onClick:yo,appearance:"subtle",children:[so["Next trace"]," "]}),jsxRuntimeExports.jsx(Tooltip,{relationship:"description",content:so["Next trace"],children:jsxRuntimeExports.jsx(Button$2,{className:ao.navigationItemSmall,icon:jsxRuntimeExports.jsx(ArrowDown20Regular,{}),onClick:yo,appearance:"subtle"})})]})]}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:ao.divider})]}):null},TraceDetailHeader=({setIsTraceDetailOpen:eo,showRefresh:to=!0,showGantt:no=!1,showCopyUrl:io=!1,showStreamSwitch:so=!1,showCloseAction:ao=!0,showNavigation:lo=!0,isStreaming:uo,traceNavigationProps:ho,onIsStreamingChange:go,preTitleSlot:mo})=>{const yo=useClasses$x(),So=useLocStrings(),_o=useTraceViewModel(),ko=useIsGanttChartOpen(),[Co,$o]=React.useState("Copy URL"),Ro=useSelectedTrace(),Oo=Ro!=null&&Ro.start_time?timeFormat$1(Ro.start_time):void 0;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:yo.header,children:[jsxRuntimeExports.jsx(TraceDetailTitle,{preTitleSlot:mo}),Oo&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("time",{className:yo.time,children:[So.Created_on,": ",Oo]}),jsxRuntimeExports.jsx(Tooltip,{relationship:"description",content:So.Created_on,children:jsxRuntimeExports.jsx("time",{className:yo.timeSmall,children:Oo})})]}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:yo.divider}),lo&&jsxRuntimeExports.jsx(TraceNavigation,{...ho}),so&&uo!==void 0&&go!==void 0&&jsxRuntimeExports.jsx(StreamSwitcher,{style:{marginRight:"16px",marginTop:"4px"},isStreaming:uo,onIsStreamingChange:go}),io?jsxRuntimeExports.jsx(Tooltip,{content:So[`${Co}`],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Copy URL",icon:jsxRuntimeExports.jsx(Share20Regular,{}),onMouseEnter:()=>{$o("Copy URL")},onClick:()=>{if(_o.traceDetailCopyUrl()){$o("Copied!");return}const No=window.location.href;if(navigator.clipboard)navigator.clipboard.writeText(No),$o("Copied!");else{const Mo=document.createElement("textarea");Mo.value=No,document.body.appendChild(Mo),Mo.select();try{document.execCommand("copy"),$o("Copied!")}catch(Bo){console.error("Fallback: Oops, unable to copy",Bo),$o("Oops, unable to copy!")}document.body.removeChild(Mo)}}})}):null,to?jsxRuntimeExports.jsx(Tooltip,{content:So["Refresh Data"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Refresh",icon:jsxRuntimeExports.jsx(ArrowClockwise16Regular,{}),onClick:()=>_o.refreshSpans()})}):null,no?jsxRuntimeExports.jsx(Tooltip,{content:So[ko?"Hide Gantt":"Show Gantt"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{style:{color:ko?tokens$1.colorBrandForeground1:""},appearance:"subtle","aria-label":"Close",icon:jsxRuntimeExports.jsx(GanttChart20Regular,{}),onClick:()=>_o.toggleIsGanttChartOpen()})}):null,ao&&jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Close",icon:jsxRuntimeExports.jsx(Dismiss20Regular,{}),onClick:()=>eo(!1)})]}),jsxRuntimeExports.jsx(Divider$2,{})]})},useClasses$x=makeStyles({header:{display:"flex",width:"100%",boxSizing:"border-box",...shorthands.padding("12px","20px")},divider:{height:"100%",...shorthands.flex("none"),...shorthands.padding(0,tokens$1.spacingHorizontalM)},navigation:{display:"flex",alignItems:"center",...shorthands.gap(tokens$1.spacingHorizontalS)},navigationItem:{"@media (max-width: 1020px)":{display:"none"}},navigationItemSmall:{minWidth:"auto","@media (min-width: 1020px)":{display:"none"}},time:{display:"flex",alignItems:"center",paddingRight:tokens$1.spacingHorizontalL,...shorthands.flex("0 1 auto"),"@media (max-width: 1020px)":{display:"none"}},timeSmall:{display:"flex",alignItems:"center",...shorthands.flex("0 1 auto"),"@media (min-width: 1020px)":{display:"none"}}});function useResolvedElement(eo,to){var no=reactExports.useRef(null),io=reactExports.useRef(null);io.current=to;var so=reactExports.useRef(null);reactExports.useEffect(function(){ao()});var ao=reactExports.useCallback(function(){var lo=so.current,uo=io.current,ho=lo||(uo?uo instanceof Element?uo:uo.current:null);no.current&&no.current.element===ho&&no.current.subscriber===eo||(no.current&&no.current.cleanup&&no.current.cleanup(),no.current={element:ho,subscriber:eo,cleanup:ho?eo(ho):void 0})},[eo]);return reactExports.useEffect(function(){return function(){no.current&&no.current.cleanup&&(no.current.cleanup(),no.current=null)}},[]),reactExports.useCallback(function(lo){so.current=lo,ao()},[ao])}function extractSize(eo,to,no){return eo[to]?eo[to][0]?eo[to][0][no]:eo[to][no]:to==="contentBoxSize"?eo.contentRect[no==="inlineSize"?"width":"height"]:void 0}function useResizeObserver(eo){eo===void 0&&(eo={});var to=eo.onResize,no=reactExports.useRef(void 0);no.current=to;var io=eo.round||Math.round,so=reactExports.useRef(),ao=reactExports.useState({width:void 0,height:void 0}),lo=ao[0],uo=ao[1],ho=reactExports.useRef(!1);reactExports.useEffect(function(){return ho.current=!1,function(){ho.current=!0}},[]);var go=reactExports.useRef({width:void 0,height:void 0}),mo=useResolvedElement(reactExports.useCallback(function(yo){return(!so.current||so.current.box!==eo.box||so.current.round!==io)&&(so.current={box:eo.box,round:io,instance:new ResizeObserver(function(So){var _o=So[0],ko=eo.box==="border-box"?"borderBoxSize":eo.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",Co=extractSize(_o,ko,"inlineSize"),$o=extractSize(_o,ko,"blockSize"),Ro=Co?io(Co):void 0,Oo=$o?io($o):void 0;if(go.current.width!==Ro||go.current.height!==Oo){var No={width:Ro,height:Oo};go.current.width=Ro,go.current.height=Oo,no.current?no.current(No):ho.current||uo(No)}})}),so.current.instance.observe(yo,{box:eo.box}),function(){so.current&&so.current.instance.unobserve(yo)}},[eo.box,io]),eo.ref);return reactExports.useMemo(function(){return{ref:mo,width:lo.width,height:lo.height}},[mo,lo.width,lo.height])}const useDebugFunctions=()=>{const eo=useGetAllTraces(),to=useGetAllSpans(),no=useSelectedTrace(),io=useSpansOfSelectedTrace();reactExports.useEffect(()=>{window.printTracesAndSpans=()=>{const so=eo();console.log("traces",so);const ao=to();console.log("spans",ao)},window.printSelectedTrace=()=>{console.log("selectedTrace",no)},window.printSpansOfSelectedTrace=()=>{console.log("spansOfSelectedTrace",io)}},[eo,to,no,io])},traceDetailErrorInjectionToken=createInjectionToken("traceDetailErrorInjectionToken",()=>{const eo=useLocStrings();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:eo.Failed_to_load_trace})}),traceDetailLoadingInjectionToken=createInjectionToken("traceDetailLoadingInjectionToken",Loading),traceListErrorInjectionToken=createInjectionToken("traceListErrorInjectionToken",()=>{const eo=useLocStrings();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:eo.Failed_to_load_traces})}),traceListLoadingInjectionToken=createInjectionToken("traceListLoadingInjectionToken",Loading),useTraceListViewStatus=()=>{const eo=useTraceViewModel();return useState(eo.traceListStatus$)},useTraceDetailViewStatus=()=>{const eo=useTraceViewModel();return useState(eo.traceDetailStatus$)},useTraceListLoadingComponent=()=>{const[eo]=useInjected(traceListLoadingInjectionToken);return eo},useTraceListErrorComponent=()=>{const[eo]=useInjected(traceListErrorInjectionToken);return eo},useTraceDetailLoadingComponent=()=>{const[eo]=useInjected(traceDetailLoadingInjectionToken);return eo},useTraceDetailErrorComponent=()=>{const[eo]=useInjected(traceDetailErrorInjectionToken);return eo},TREE_NODE_WIDTH=400,TREE_NODE_INDENT=48,token$2="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token$2+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token$2+")+","gi");function decodeComponents(eo,to){try{return[decodeURIComponent(eo.join(""))]}catch{}if(eo.length===1)return eo;to=to||1;const no=eo.slice(0,to),io=eo.slice(to);return Array.prototype.concat.call([],decodeComponents(no),decodeComponents(io))}function decode$2(eo){try{return decodeURIComponent(eo)}catch{let to=eo.match(singleMatcher)||[];for(let no=1;noeo==null,strictUriEncode=eo=>encodeURIComponent(eo).replaceAll(/[!'()*]/g,to=>`%${to.charCodeAt(0).toString(16).toUpperCase()}`),encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(eo){switch(eo.arrayFormat){case"index":return to=>(no,io)=>{const so=no.length;return io===void 0||eo.skipNull&&io===null||eo.skipEmptyString&&io===""?no:io===null?[...no,[encode(to,eo),"[",so,"]"].join("")]:[...no,[encode(to,eo),"[",encode(so,eo),"]=",encode(io,eo)].join("")]};case"bracket":return to=>(no,io)=>io===void 0||eo.skipNull&&io===null||eo.skipEmptyString&&io===""?no:io===null?[...no,[encode(to,eo),"[]"].join("")]:[...no,[encode(to,eo),"[]=",encode(io,eo)].join("")];case"colon-list-separator":return to=>(no,io)=>io===void 0||eo.skipNull&&io===null||eo.skipEmptyString&&io===""?no:io===null?[...no,[encode(to,eo),":list="].join("")]:[...no,[encode(to,eo),":list=",encode(io,eo)].join("")];case"comma":case"separator":case"bracket-separator":{const to=eo.arrayFormat==="bracket-separator"?"[]=":"=";return no=>(io,so)=>so===void 0||eo.skipNull&&so===null||eo.skipEmptyString&&so===""?io:(so=so===null?"":so,io.length===0?[[encode(no,eo),to,encode(so,eo)].join("")]:[[io,encode(so,eo)].join(eo.arrayFormatSeparator)])}default:return to=>(no,io)=>io===void 0||eo.skipNull&&io===null||eo.skipEmptyString&&io===""?no:io===null?[...no,encode(to,eo)]:[...no,[encode(to,eo),"=",encode(io,eo)].join("")]}}function parserForArrayFormat(eo){let to;switch(eo.arrayFormat){case"index":return(no,io,so)=>{if(to=/\[(\d*)]$/.exec(no),no=no.replace(/\[\d*]$/,""),!to){so[no]=io;return}so[no]===void 0&&(so[no]={}),so[no][to[1]]=io};case"bracket":return(no,io,so)=>{if(to=/(\[])$/.exec(no),no=no.replace(/\[]$/,""),!to){so[no]=io;return}if(so[no]===void 0){so[no]=[io];return}so[no]=[...so[no],io]};case"colon-list-separator":return(no,io,so)=>{if(to=/(:list)$/.exec(no),no=no.replace(/:list$/,""),!to){so[no]=io;return}if(so[no]===void 0){so[no]=[io];return}so[no]=[...so[no],io]};case"comma":case"separator":return(no,io,so)=>{const ao=typeof io=="string"&&io.includes(eo.arrayFormatSeparator),lo=typeof io=="string"&&!ao&&decode$1(io,eo).includes(eo.arrayFormatSeparator);io=lo?decode$1(io,eo):io;const uo=ao||lo?io.split(eo.arrayFormatSeparator).map(ho=>decode$1(ho,eo)):io===null?io:decode$1(io,eo);so[no]=uo};case"bracket-separator":return(no,io,so)=>{const ao=/(\[])$/.test(no);if(no=no.replace(/\[]$/,""),!ao){so[no]=io&&decode$1(io,eo);return}const lo=io===null?[]:io.split(eo.arrayFormatSeparator).map(uo=>decode$1(uo,eo));if(so[no]===void 0){so[no]=lo;return}so[no]=[...so[no],...lo]};default:return(no,io,so)=>{if(so[no]===void 0){so[no]=io;return}so[no]=[...[so[no]].flat(),io]}}}function validateArrayFormatSeparator(eo){if(typeof eo!="string"||eo.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode(eo,to){return to.encode?to.strict?strictUriEncode(eo):encodeURIComponent(eo):eo}function decode$1(eo,to){return to.decode?decodeUriComponent(eo):eo}function keysSorter(eo){return Array.isArray(eo)?eo.sort():typeof eo=="object"?keysSorter(Object.keys(eo)).sort((to,no)=>Number(to)-Number(no)).map(to=>eo[to]):eo}function removeHash(eo){const to=eo.indexOf("#");return to!==-1&&(eo=eo.slice(0,to)),eo}function getHash(eo){let to="";const no=eo.indexOf("#");return no!==-1&&(to=eo.slice(no)),to}function parseValue(eo,to){return to.parseNumbers&&!Number.isNaN(Number(eo))&&typeof eo=="string"&&eo.trim()!==""?eo=Number(eo):to.parseBooleans&&eo!==null&&(eo.toLowerCase()==="true"||eo.toLowerCase()==="false")&&(eo=eo.toLowerCase()==="true"),eo}function extract$1(eo){eo=removeHash(eo);const to=eo.indexOf("?");return to===-1?"":eo.slice(to+1)}function parse$u(eo,to){to={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...to},validateArrayFormatSeparator(to.arrayFormatSeparator);const no=parserForArrayFormat(to),io=Object.create(null);if(typeof eo!="string"||(eo=eo.trim().replace(/^[?#&]/,""),!eo))return io;for(const so of eo.split("&")){if(so==="")continue;const ao=to.decode?so.replaceAll("+"," "):so;let[lo,uo]=splitOnFirst(ao,"=");lo===void 0&&(lo=ao),uo=uo===void 0?null:["comma","separator","bracket-separator"].includes(to.arrayFormat)?uo:decode$1(uo,to),no(decode$1(lo,to),uo,io)}for(const[so,ao]of Object.entries(io))if(typeof ao=="object"&&ao!==null)for(const[lo,uo]of Object.entries(ao))ao[lo]=parseValue(uo,to);else io[so]=parseValue(ao,to);return to.sort===!1?io:(to.sort===!0?Object.keys(io).sort():Object.keys(io).sort(to.sort)).reduce((so,ao)=>{const lo=io[ao];return so[ao]=lo&&typeof lo=="object"&&!Array.isArray(lo)?keysSorter(lo):lo,so},Object.create(null))}function stringify$2(eo,to){if(!eo)return"";to={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...to},validateArrayFormatSeparator(to.arrayFormatSeparator);const no=lo=>to.skipNull&&isNullOrUndefined(eo[lo])||to.skipEmptyString&&eo[lo]==="",io=encoderForArrayFormat(to),so={};for(const[lo,uo]of Object.entries(eo))no(lo)||(so[lo]=uo);const ao=Object.keys(so);return to.sort!==!1&&ao.sort(to.sort),ao.map(lo=>{const uo=eo[lo];return uo===void 0?"":uo===null?encode(lo,to):Array.isArray(uo)?uo.length===0&&to.arrayFormat==="bracket-separator"?encode(lo,to)+"[]":uo.reduce(io(lo),[]).join("&"):encode(lo,to)+"="+encode(uo,to)}).filter(lo=>lo.length>0).join("&")}function parseUrl(eo,to){var so;to={decode:!0,...to};let[no,io]=splitOnFirst(eo,"#");return no===void 0&&(no=eo),{url:((so=no==null?void 0:no.split("?"))==null?void 0:so[0])??"",query:parse$u(extract$1(eo),to),...to&&to.parseFragmentIdentifier&&io?{fragmentIdentifier:decode$1(io,to)}:{}}}function stringifyUrl(eo,to){to={encode:!0,strict:!0,[encodeFragmentIdentifier]:!0,...to};const no=removeHash(eo.url).split("?")[0]||"",io=extract$1(eo.url),so={...parse$u(io,{sort:!1}),...eo.query};let ao=stringify$2(so,to);ao&&(ao=`?${ao}`);let lo=getHash(eo.url);if(typeof eo.fragmentIdentifier=="string"){const uo=new URL(no);uo.hash=eo.fragmentIdentifier,lo=to[encodeFragmentIdentifier]?uo.hash:`#${eo.fragmentIdentifier}`}return`${no}${ao}${lo}`}function pick$2(eo,to,no){no={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...no};const{url:io,query:so,fragmentIdentifier:ao}=parseUrl(eo,no);return stringifyUrl({url:io,query:includeKeys(so,to),fragmentIdentifier:ao},no)}function exclude(eo,to,no){const io=Array.isArray(to)?so=>!to.includes(so):(so,ao)=>!to(so,ao);return pick$2(eo,io,no)}const queryString=Object.freeze(Object.defineProperty({__proto__:null,exclude,extract:extract$1,parse:parse$u,parseUrl,pick:pick$2,stringify:stringify$2,stringifyUrl},Symbol.toStringTag,{value:"Module"})),getMessagesFromEvent=eo=>{var to;try{const no=JSON.parse(((to=eo.attributes)==null?void 0:to.inputs)??"{}"),{message:io,messages:so}=no??{};return so?so.map(ao=>typeof ao=="string"?{content:ao}:ao):typeof io=="string"?[{content:io}]:[io].filter(Boolean)}catch{}return[]},getIsAgentsVisualizationEnabled=()=>queryString.parse(window.location.search).isAgentsVisualizationEnabled==="true",agentSpanNames=new Set(["initiate_chat","initiate_chats","generate_reply","execute_code_block","execute_function","send","receive","conversableagent.select_speaker","conversableagent.initiate_chat","conversableagent.initiate_chats","conversableagent.generate_reply","conversableagent.execute_code_block","conversableagent.execute_function","conversableagent.send","conversableagent.receive","conversableagent.select_speaker"]),getSpanType=eo=>{var io,so;const to=getIsAgentsVisualizationEnabled();if(eo!=null&&eo.name&&agentSpanNames.has((io=eo==null?void 0:eo.name)==null?void 0:io.toLowerCase())&&to)return eo.name;const no=(so=eo==null?void 0:eo.attributes)==null?void 0:so.span_type;return no==null?void 0:no.split(".").pop()};var _a$2;const tDe=class tDe{constructor(){this.treeViewColoredBy$=new State$2("agent"),this.treeViewHiddenAgentEvents$=new State$2([]),this.conversationViewCurrentPath$=new State$2("")}};_a$2=SINGLETON,tDe[_a$2]=!0;let AgentsViewModel=tDe;const agentsViewModelInjectionToken=createInjectionToken("AgentsViewModel",new AgentsViewModel),useAgentsViewModel=()=>{const[eo]=useInjected(agentsViewModelInjectionToken);return eo},useTreeViewColoredBy=()=>{const eo=useAgentsViewModel();return useState(eo.treeViewColoredBy$)},useSetTreeViewColoredBy=()=>{const eo=useAgentsViewModel();return useSetState(eo.treeViewColoredBy$)},useTreeViewHiddenAgentEvents=()=>{const eo=useAgentsViewModel();return useState(eo.treeViewHiddenAgentEvents$)},useSetTreeViewHiddenAgentEvents=()=>{const eo=useAgentsViewModel();return useSetState(eo.treeViewHiddenAgentEvents$)},useConversationViewCurrentPath=()=>{const eo=useAgentsViewModel();return useState(eo.conversationViewCurrentPath$)},useSetConversationViewCurrentPath=()=>{const eo=useAgentsViewModel();return useSetState(eo.conversationViewCurrentPath$)},useAgentSpansFlatten=({rootSpanId:eo,showHierarchy:to})=>{var ho,go;const no=useSpansOfSelectedTrace(),io=useTreeViewHiddenAgentEvents(),so=new Map,ao=[];no.forEach(mo=>{var yo,So;mo.parent_id&&((yo=mo.context)!=null&&yo.span_id)&&(so.has(mo.parent_id)?(So=so.get(mo.parent_id))==null||So.add(mo.context.span_id):so.set(mo.parent_id,new Set([mo.context.span_id])))});const lo=no.find(mo=>{var yo;return((yo=mo.context)==null?void 0:yo.span_id)===eo});if(!lo)return[];const uo=[{span:lo,level:0}];for(;uo.length>0;){const mo=uo.pop();if(!mo)continue;const yo=mo.span,So=mo.level;yo.name&&agentSpanNames.has((ho=yo.name)==null?void 0:ho.toLowerCase())&&!io.includes(yo.name)&&ao.push(Object.assign({},yo,{attributes:{...yo.attributes,level:So.toString()}})),(go=yo==null?void 0:yo.context)!=null&&go.span_id&&so.has(yo.context.span_id)&&Array.from(so.get(yo.context.span_id)??[]).forEach(ko=>{const Co=no.find($o=>{var Ro;return((Ro=$o.context)==null?void 0:Ro.span_id)===ko});if(Co){const $o=to?So+1:So;uo.push({span:Co,level:$o})}})}return ao},useAgentSpansByEntity=({rootSpanId:eo,showHierarchy:to})=>{const io=useAgentSpansFlatten({rootSpanId:eo,showHierarchy:to}).reduce((so,ao)=>{var uo,ho,go;const lo=`${(uo=ao.attributes)==null?void 0:uo.entity}##${(ho=ao.attributes)==null?void 0:ho.level}`;return lo&&(so.has(lo)?(go=so.get(lo))==null||go.push(ao):so.set(lo,[ao])),so},new Map);return Array.from(io).map(([so,ao])=>{var lo;return{entity:so,spans:ao,level:parseInt(((lo=ao[0].attributes)==null?void 0:lo.level)??"0")}})},colorsPool=[{color:tokens$1.colorPalettePinkForeground2,backgroundColor:tokens$1.colorPalettePinkBackground2,hoverColor:tokens$1.colorPalettePinkBorderActive},{color:tokens$1.colorPaletteDarkOrangeForeground2,backgroundColor:tokens$1.colorPaletteDarkOrangeBackground2,hoverColor:tokens$1.colorPaletteDarkOrangeBorderActive},{color:tokens$1.colorPaletteBrassForeground2,backgroundColor:tokens$1.colorPaletteBrassBackground2,hoverColor:tokens$1.colorPaletteBrassBorderActive},{color:tokens$1.colorPaletteSeafoamForeground2,backgroundColor:tokens$1.colorPaletteSeafoamBackground2,hoverColor:tokens$1.colorPaletteSeafoamBorderActive},{color:tokens$1.colorPaletteRoyalBlueForeground2,backgroundColor:tokens$1.colorPaletteRoyalBlueBackground2,hoverColor:tokens$1.colorPaletteRoyalBlueBorderActive},{color:tokens$1.colorPaletteNavyForeground2,backgroundColor:tokens$1.colorPaletteNavyBackground2,hoverColor:tokens$1.colorPaletteNavyBorderActive},{color:tokens$1.colorPaletteGrapeForeground2,backgroundColor:tokens$1.colorPaletteGrapeBackground2,hoverColor:tokens$1.colorPaletteGrapeBorderActive}],nameToColor=new Map,getColorForMessage=({name:eo="",role:to=""})=>{if(to.toLowerCase()==="system")return{color:tokens$1.colorPalettePlatinumForeground2,backgroundColor:tokens$1.colorPalettePlatinumBackground2,hoverColor:tokens$1.colorPalettePlatinumBorderActive};const no=`${eo}_${to}`;return nameToColor.has(no)||nameToColor.set(no,colorsPool[nameToColor.size%colorsPool.length]),nameToColor.get(no)},getColorForMessageContent=({role:eo=""})=>eo.toLowerCase()==="system"?{color:tokens$1.colorNeutralForeground3,backgroundColor:"transparent"}:{color:tokens$1.colorNeutralForeground3,backgroundColor:tokens$1.colorNeutralBackground2},LLMMessageSenderBadge=({name:eo,role:to,className:no,size:io="small"})=>{const so=(to==null?void 0:to.toLowerCase())==="system"?jsxRuntimeExports.jsx(Laptop16Regular,{}):jsxRuntimeExports.jsx(Person16Regular,{}),ao=(to==null?void 0:to.toLowerCase())==="system"?jsxRuntimeExports.jsx(Laptop24Regular,{}):jsxRuntimeExports.jsx(Person24Regular,{}),lo=getColorForMessage({name:eo,role:to});return jsxRuntimeExports.jsx(Badge$2,{icon:io==="large"?ao:so,appearance:"filled",size:io==="large"?"extra-large":"large",className:no,style:{...lo},children:capitalizeFirstLetter$1(to)})};function capitalizeFirstLetter$1(eo){return eo?eo.charAt(0).toUpperCase()+eo.slice(1).toLowerCase():""}const MAX_LABEL_INDENT=24,useClasses$w=makeStyles({root:{display:"flex",flexDirection:"column",height:"100%",...shorthands.gap("24px")},activityBar:{height:"16px",marginTop:"8px",backgroundColor:"#f0f0f0",position:"relative"},eventsPopoverHeader:{display:"flex",justifyContent:"space-between",alignContent:"center",...shorthands.gap("4px")}}),AgentActivitiesView=({span:eo,rootWidth:to,onClickDot:no,onClickRow:io,showHierarchy:so,showDuration:ao})=>{var _o;const lo=useAgentSpansByEntity({rootSpanId:((_o=eo==null?void 0:eo.context)==null?void 0:_o.span_id)??null,showHierarchy:so});let uo=0;lo.forEach(ko=>{ko.spans.forEach(Co=>{var $o;($o=Co.attributes)!=null&&$o.level&&Number(Co.attributes.level)>uo&&(uo=Number(Co.attributes.level))})});const ho=useClasses$w();let go=Number.MAX_SAFE_INTEGER,mo=0;lo.forEach(ko=>{ko.spans.forEach(Co=>{Co.start_time&&Date.parse(Co.start_time)mo&&(mo=Date.parse(Co.end_time))})});const yo=to?to-uo*24-64:0,So=Math.min(MAX_LABEL_INDENT,(yo-120)/uo);return jsxRuntimeExports.jsx("div",{children:lo.map(ko=>{const Co=new Map,$o=ko.entity.split("##")[0],Ro=getColorForMessage({role:$o});ko.spans.forEach(No=>{if(!No.start_time)return;const Mo=Date.parse(No.start_time),Bo=Math.floor((Mo-go)/(mo-go)*100);Co.has(Bo)||Co.set(Bo,{color:Ro.color,backgroundColor:Ro.backgroundColor,spans:[]}),Co.get(Bo).spans.push(No)});const Oo=Array.from(Co.entries()).map(([No,{color:Mo,backgroundColor:Bo,spans:Fo}])=>{let Lo=8;return ao&&Fo.forEach(Go=>{if(!Go.start_time||!Go.end_time)return;const Do=Date.parse(Go.end_time)-Date.parse(Go.start_time);Lo=Math.max(Math.floor(Do/(mo-go)*yo),Lo)}),jsxRuntimeExports.jsx(Tooltip,{relationship:"label",content:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:ho.eventsPopoverHeader,children:["Events",jsxRuntimeExports.jsx(CounterBadge,{count:Fo.length})]}),jsxRuntimeExports.jsx("div",{children:Fo.map((Go,Do)=>jsxRuntimeExports.jsx("div",{children:Go.name},Do))})]}),children:jsxRuntimeExports.jsx(CounterBadge,{count:Fo.length,style:{position:"absolute",color:Mo,backgroundColor:Bo,width:`${Lo}px`,height:"16px",marginLeft:"-4px",left:`${No}%`},onClick:()=>{no==null||no({spans:Fo})},children:Fo.length})},No)});return jsxRuntimeExports.jsxs("div",{style:{marginTop:12},children:[jsxRuntimeExports.jsx("div",{style:{marginLeft:`${ko.level*So}px`},children:jsxRuntimeExports.jsx(LLMMessageSenderBadge,{role:$o})}),jsxRuntimeExports.jsx("div",{className:ho.activityBar,style:{width:`${yo}px`},role:"button",onClick:()=>{io==null||io({spans:ko.spans})},children:Oo})]},ko.entity)})})},useClasses$v=makeStyles({root:{height:"100%",width:"100%",...shorthands.overflow("auto")}}),AgentsVisualizationBottomPane=({containerWidth:eo})=>{var uo;const to=useRootSpanIdOfSelectedSpans(),no=useSelectedTraceId(),io=useTraceViewModel(),so=useSetSelectedSpanId(),ao=useClasses$v();if(!to||!no)return null;const lo=(uo=io.spans$.get(no))==null?void 0:uo.get(to);return!lo||!eo?null:jsxRuntimeExports.jsx("div",{className:ao.root,children:jsxRuntimeExports.jsx(AgentActivitiesView,{span:lo,rootWidth:eo,showHierarchy:!0,showDuration:!0,onClickDot:({spans:ho})=>{var mo,yo;const go=(yo=(mo=ho[0])==null?void 0:mo.context)==null?void 0:yo.span_id;go&&so(go)}})})},TraceViewThemeContext=reactExports.createContext(!1),useIsDark=()=>reactExports.useContext(TraceViewThemeContext),sortTraceByStartTimeAsc$1=(eo,to)=>eo.start_time&&to.start_time?Date.parse(eo.start_time)-Date.parse(to.start_time):1,spansToGanttTasks=({spans:eo,parentSpanId:to})=>{const no=new Map,io=new Set(eo.map(uo=>{var ho;return(ho=uo.context)==null?void 0:ho.span_id}).filter(uo=>!!uo)),so=new Set;eo.forEach(uo=>{var ho,go;(ho=uo.context)!=null&&ho.span_id&&(uo.parent_id&&uo.parent_id!==to&&io.has(uo.parent_id)?no.has(uo.parent_id)?no.get(uo.parent_id).push(uo):no.set(uo.parent_id,[uo]):so.add((go=uo.context)==null?void 0:go.span_id))});const ao=eo.filter(uo=>{var ho,go;return((ho=uo.context)==null?void 0:ho.span_id)&&so.has((go=uo.context)==null?void 0:go.span_id)}).sort((uo,ho)=>Date.parse(uo.start_time??"")??0-Date.parse(ho.start_time??"")??0),lo=uo=>uo.sort(sortTraceByStartTimeAsc$1).map(ho=>{var go,mo;return{startTime:Date.parse(ho.start_time??""),endTime:Date.parse(ho.end_time??""),id:((go=ho.context)==null?void 0:go.span_id)??"",name:ho.name??"",children:lo(no.get(((mo=ho.context)==null?void 0:mo.span_id)??"")??[])}});return lo(ao)},useStyles$j=makeStyles({grid:{height:"100%"},selectedRow:{backgroundColor:tokens$1.colorNeutralBackground2Selected}}),GanttView=()=>{const eo=useSpansOfSelectedTrace(),to=reactExports.useMemo(()=>new GanttViewModel,[]),no=useSelectedSpanId(),io=useSetSelectedSpanId(),ao=useIsDark()?"rdg-dark":"rdg-light",lo=useStyles$j(),uo=reactExports.useRef(null);return reactExports.useEffect(()=>{to.setTasks(spansToGanttTasks({spans:eo})),to.selectedRowId$.subscribe(ho=>{ho&&ho!==no&&io(ho)}),to.expandAllRows()},[eo.length]),reactExports.useEffect(()=>{var yo,So;if(to.selectedRowId$.getSnapshot()===no)return;to.selectedRowId$.next(no);const go=[];let mo=eo.find(_o=>{var ko;return((ko=_o.context)==null?void 0:ko.span_id)===no});for(;mo;)((yo=mo.context)==null?void 0:yo.span_id)!==no&&go.unshift(((So=mo.context)==null?void 0:So.span_id)??""),mo=eo.find(_o=>{var ko;return((ko=_o.context)==null?void 0:ko.span_id)===(mo==null?void 0:mo.parent_id)});go.forEach(_o=>{const ko=to.rows$.getSnapshot().find(Co=>Co.id===_o);ko!=null&&ko.isExpanded||to.toggleRow(_o)})},[no]),jsxRuntimeExports.jsx(Gantt,{viewModel:to,gridRef:uo,styles:{grid:mergeClasses(lo.grid,ao),selectedRow:lo.selectedRow},getColumns:ho=>ho.map(go=>go.key==="name"?{...go,name:"span",width:180}:go.key==="duration"?{...go,name:"latency",width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"latency"})},renderCell({row:mo}){return jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:new Date(mo.startTime).toISOString(),endTimeISOString:new Date(mo.endTime).toISOString(),size:UISize.extraSmall})}}:go)})},useNodeDetailClasses=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},detailHeaderWrapper:{display:"flex",boxSizing:"border-box",width:"100%",...shorthands.padding("12px","12px",0,"12px"),flexDirection:"row",alignItems:"center",...shorthands.gap("12px")},detailHeaderTitle:{flexGrow:1,flexShrink:1,...shorthands.overflow("hidden"),whiteSpace:"nowrap",textOverflow:"ellipsis"},header:{display:"flex",height:"50px",boxSizing:"border-box",alignItems:"center",justifyContent:"flex-start",...shorthands.padding("6px","12px")},headerModalName:{color:tokens$1.colorNeutralForeground3,fontSize:"12px",fontWeight:600,lineHeight:"16px"},headerSpan:{marginRight:"10px"},headerTitle:{...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:"4px",...shorthands.flex(0,1,"auto")},divider:{...shorthands.flex("none"),...shorthands.padding(0)},headerRight:{marginLeft:"auto",display:"flex",alignItems:"center",...shorthands.gap("12px")},tabDivider:{...shorthands.flex("none"),...shorthands.padding(0,"12px")},layout:{...shorthands.flex(1),display:"flex",flexDirection:"row",...shorthands.overflow("hidden")},layoutLeft:{...shorthands.flex(1),display:"flex",flexDirection:"column",...shorthands.overflow("hidden")},layoutRight:{height:"100%",...shorthands.overflow("hidden")},content:{...shorthands.flex(1),...shorthands.padding("12px"),...shorthands.overflow("auto")},panels:{...shorthands.padding(0,"10px"),"& th":{textAlign:"left",...shorthands.padding(0,"30px",0,0)}},cardWrapper:{backgroundColor:tokens$1.colorNeutralBackground3},cardTitle:{fontSize:"16px",fontWeight:600},innerCardWrapper:{...shorthands.padding("16px"),...shorthands.border("1px","solid",tokens$1.colorNeutralForeground1),...shorthands.borderRadius("8px")}}),useRetrievalNodeDetailClasses=makeStyles({accordionHeader:{"& button":{...shorthands.padding(0),fontWeight:600}}}),OpenAIIcon=({styles:eo})=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",width:"20px",height:"20px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",style:eo,children:[jsxRuntimeExports.jsx("title",{children:"OpenAI icon"}),jsxRuntimeExports.jsx("path",{d:"M832 676l575 288v760l-575 288-575-288V964l575-288zm0 144l-368 184 368 183 368-183-368-184zm-447 825l383 191v-538l-383-191v538zm894 0v-538l-383 191v538l383-191zm577-733q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9zM704 496q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9zm1206-48q0 23-15 38t-39 16q-27 0-57 11t-58 28-54 37-45 40q-19 19-39 44t-38 54-28 59-11 57q0 23-15 38t-39 16q-23 0-38-15t-16-39q0-27-11-57t-28-58-37-54-40-45q-19-19-44-39t-54-38-59-28-57-11q-23 0-38-15t-16-39q0-23 15-38t39-16q27 0 57-11t58-28 54-37 45-40q19-19 39-44t38-54 28-59 11-57q0-23 15-38t39-16q23 0 38 15t16 39q0 27 11 57t28 58 37 54 40 45q19 19 44 39t54 38 59 28 57 11q23 0 38 15t16 39zm-438 212q38-65 92-119t120-93q-65-38-119-92t-93-120q-38 65-92 119t-120 93q65 38 119 92t93 120z"})]});function SpanType({span:eo,showText:to=!0,className:no,...io}){var Co,$o,Ro;const so=useClasses$u(),ao=useTreeViewColoredBy(),lo=agentSpanNames.has(((Co=eo==null?void 0:eo.name)==null?void 0:Co.toLowerCase())??""),uo=getIsAgentsVisualizationEnabled(),ho=uo?($o=getSpanType(eo))==null?void 0:$o.toLowerCase().replace(/conversableagent\./g,""):getSpanType(eo),go=getColorForMessage({role:(Ro=eo==null?void 0:eo.attributes)==null?void 0:Ro.entity}),{color:mo,backgroundColor:yo,icon:So,text:_o}=reactExports.useMemo(()=>(ho==null?void 0:ho.toLowerCase())==="generate_reply"&&uo?{color:tokens$1.colorPaletteRedForeground2,backgroundColor:tokens$1.colorPaletteRedBackground2,icon:jsxRuntimeExports.jsx(ThinkingRegular,{}),text:"Generate Reply"}:(ho==null?void 0:ho.toLowerCase())==="send"&&uo?{color:tokens$1.colorPaletteGreenForeground2,backgroundColor:tokens$1.colorPaletteGreenBackground2,icon:jsxRuntimeExports.jsx(Mail16Regular,{}),text:"Send"}:(ho==null?void 0:ho.toLowerCase())==="receive"&&uo?{color:tokens$1.colorPaletteRedForeground2,backgroundColor:tokens$1.colorPaletteRedBackground2,icon:jsxRuntimeExports.jsx(Mail16Regular,{}),text:"Receive"}:(ho==null?void 0:ho.toLocaleLowerCase())==="select_speaker"&&uo?{color:tokens$1.colorPalettePurpleForeground2,backgroundColor:tokens$1.colorPalettePurpleBackground2,icon:jsxRuntimeExports.jsx(EmojiSparkle16Regular,{}),text:"Select speaker"}:(ho==null?void 0:ho.toLocaleLowerCase())==="initiate_chat"&&uo?{color:tokens$1.colorPaletteYellowForeground2,backgroundColor:tokens$1.colorPaletteYellowBackground2,icon:jsxRuntimeExports.jsx(SelectObjectRegular,{}),text:"Initiate Chat"}:(ho==null?void 0:ho.toLocaleLowerCase())==="initiate_chats"&&uo?{color:tokens$1.colorPaletteYellowForeground2,backgroundColor:tokens$1.colorPaletteYellowBackground2,icon:jsxRuntimeExports.jsx(SelectObjectRegular,{}),text:"Initiate Chats"}:(ho==null?void 0:ho.toLocaleLowerCase())==="execute_code_block"&&uo?{color:tokens$1.colorPaletteBlueForeground2,backgroundColor:tokens$1.colorPaletteBlueBackground2,icon:jsxRuntimeExports.jsx(Code16Regular,{}),text:"Execute Code Block"}:(ho==null?void 0:ho.toLocaleLowerCase())==="execute_function"&&uo?{color:tokens$1.colorPaletteBlueForeground2,backgroundColor:tokens$1.colorPaletteBlueBackground2,icon:jsxRuntimeExports.jsx(Run16Regular,{}),text:"Execute Function"}:(ho==null?void 0:ho.toLocaleLowerCase())==="flow"?{color:tokens$1.colorPaletteBlueForeground2,backgroundColor:tokens$1.colorPaletteBlueBackground2,icon:jsxRuntimeExports.jsx(Flow16Regular,{}),text:"Flow"}:(ho==null?void 0:ho.toLocaleLowerCase())==="function"||(ho==null?void 0:ho.toLocaleLowerCase())==="tool"?{color:tokens$1.colorPaletteLavenderForeground2,backgroundColor:tokens$1.colorPaletteLavenderBackground2,icon:jsxRuntimeExports.jsx(HexagonThree16Regular,{}),text:"Function"}:(ho==null?void 0:ho.toLocaleLowerCase())==="retrieval"?{color:tokens$1.colorPaletteBrownForeground2,backgroundColor:tokens$1.colorPaletteBrownBackground2,icon:jsxRuntimeExports.jsx(BranchRequest16Regular,{}),text:"Retrieval"}:(ho==null?void 0:ho.toLocaleLowerCase())==="embedding"?{color:tokens$1.colorPaletteCornflowerForeground2,backgroundColor:tokens$1.colorPaletteCornflowerBackground2,icon:jsxRuntimeExports.jsx(FlowchartRegular,{}),text:"Embedding"}:(ho==null?void 0:ho.toLocaleLowerCase())==="llm"?{color:tokens$1.colorPaletteLightTealForeground2,backgroundColor:tokens$1.colorPaletteLightTealBackground2,icon:jsxRuntimeExports.jsx(OpenAIIcon,{styles:{height:"16px",width:"16px"}}),text:"LLM"}:(ho==null?void 0:ho.toLocaleLowerCase())==="network"?{color:tokens$1.colorPaletteSteelForeground2,backgroundColor:tokens$1.colorPaletteSteelBackground2,icon:jsxRuntimeExports.jsx(Link16Regular,{}),text:"Network"}:(ho==null?void 0:ho.toLocaleLowerCase())==="http"?{color:tokens$1.colorPaletteSteelForeground2,backgroundColor:tokens$1.colorPaletteSteelBackground2,icon:jsxRuntimeExports.jsx(Link16Regular,{}),text:"Http"}:{color:tokens$1.colorPaletteMarigoldForeground2,backgroundColor:tokens$1.colorPaletteMarigoldBackground2,icon:jsxRuntimeExports.jsx(QuestionCircle16Regular,{}),text:"Unknown"},[eo]);if(eo===void 0)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ko=ao==="agent"&&uo&&lo;return jsxRuntimeExports.jsx(Badge$2,{appearance:"filled",size:"large",className:mergeClasses(so.root,no),icon:So,style:ko?go:{color:mo,backgroundColor:yo},...io,children:to&&_o})}const useClasses$u=makeStyles({root:{height:"24px",...shorthands.padding("0","6px")}}),useClasses$t=makeStyles({root:{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row-reverse"},colorByContainer:{width:"240px"},popover:{display:"flex",flexDirection:"column",...shorthands.gap("8px")}}),AgentsHeader=({span:eo})=>{const to=useNodeDetailClasses(),no=useClasses$t(),io=useTreeViewColoredBy(),so=useSetTreeViewColoredBy(),ao=useTreeViewHiddenAgentEvents(),lo=useSetTreeViewHiddenAgentEvents(),uo=Array.from(agentSpanNames.values()).filter(ho=>!ao.includes(ho));return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SpanType,{span:eo,showText:!1,className:to.headerSpan}),jsxRuntimeExports.jsx(Tooltip,{content:eo.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:to.headerTitle,children:`${eo.name}`})}),jsxRuntimeExports.jsx("div",{className:to.headerRight,children:jsxRuntimeExports.jsxs(Popover,{children:[jsxRuntimeExports.jsx(PopoverTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx(Button$2,{icon:jsxRuntimeExports.jsx(Settings16Regular,{})})}),jsxRuntimeExports.jsx(PopoverSurface,{children:jsxRuntimeExports.jsxs("div",{className:no.popover,children:[jsxRuntimeExports.jsxs("div",{className:no.colorByContainer,children:[jsxRuntimeExports.jsx(Label,{htmlFor:"color-by-select",children:"Tree view colored by:"}),jsxRuntimeExports.jsxs(Select$1,{id:"color-by-select",value:io,onChange:(ho,go)=>{go&&so(go.value)},children:[jsxRuntimeExports.jsx("option",{value:"agent",children:"agent"}),jsxRuntimeExports.jsx("option",{value:"event",children:"event"})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Show events:"}),jsxRuntimeExports.jsx(Toolbar,{size:"small",checkedValues:{visibleAgentEvents:uo},onCheckedValueChange:(ho,go)=>{const mo=Array.from(agentSpanNames.values()).filter(yo=>!go.checkedItems.includes(yo));lo(mo)},children:Array.from(agentSpanNames.values()).map(ho=>jsxRuntimeExports.jsx(ToolbarToggleButton,{name:"visibleAgentEvents",value:ho,children:ho},ho))})]})]})})]})})]})},useHasPromptTemplate=eo=>{const to=useSelectedSpan(),no=reactExports.useMemo(()=>{var ao;return(ao=getSpanType(to))==null?void 0:ao.toLocaleLowerCase()},[to]),io=useParentSpanOfSelectedSpan(),so=reactExports.useCallback(ao=>{eo(ao)},[eo]);reactExports.useEffect(()=>{if(no!=="llm"){so(!1);return}const ao=(io==null?void 0:io.attributes)||{},uo=getSpanEventsWithPayload(io,BuildInEventName["prompt.template"]).length>0||Object.prototype.hasOwnProperty.call(ao,"prompt.template");so(uo)},[no,io,so])},useHasLLMParameters=eo=>{const to=useSelectedSpan(),no=reactExports.useMemo(()=>{var ao;return(ao=getSpanType(to))==null?void 0:ao.toLocaleLowerCase()},[to]),io=useParentSpanOfSelectedSpan(),so=reactExports.useCallback(ao=>{eo(ao)},[eo]);reactExports.useEffect(()=>{if(no!=="llm"){so(!1);return}const ao=(io==null?void 0:io.attributes)||{},uo=getSpanEventsWithPayload(io,BuildInEventName["prompt.template"]).length>0||Object.prototype.hasOwnProperty.call(ao,"prompt.variables");so(uo)},[no,io,so])},useHasInputsOrOutput=eo=>{const to=useSelectedSpan(),no=reactExports.useCallback(io=>{eo(io)},[eo]);reactExports.useEffect(()=>{var go;const io=(go=getSpanType(to))==null?void 0:go.toLocaleLowerCase(),so=(to==null?void 0:to.attributes)||{},ao=getSpanEventsWithPayload(to,BuildInEventName["function.inputs"]),lo=getSpanEventsWithPayload(to,BuildInEventName["function.output"]),uo=ao.length>0||Object.prototype.hasOwnProperty.call(so,EventNameToAttribute[BuildInEventName["function.inputs"]]),ho=lo.length>0||Object.prototype.hasOwnProperty.call(so,EventNameToAttribute[BuildInEventName["function.output"]]);if(!io&&!uo&&!ho){no(!1);return}no(!0)},[to,no])};function isObject$3(eo){return Object.prototype.toString.call(eo)==="[object Object]"}function objectSize(eo){return Array.isArray(eo)?eo.length:isObject$3(eo)?Object.keys(eo).length:0}function stringifyForCopying(eo,to){if(typeof eo=="string")return eo;try{return JSON.stringify(eo,(no,io)=>{switch(typeof io){case"bigint":return String(io)+"n";case"number":case"boolean":case"object":case"string":return io;default:return String(io)}},to)}catch(no){return`${no.name}: ${no.message}`||"JSON.stringify failed"}}function isCollapsed(eo,to,no,io,so,ao){if(ao&&ao.collapsed!==void 0)return!!ao.collapsed;if(typeof io=="boolean")return io;if(typeof io=="number"&&to>io)return!0;const lo=objectSize(eo);if(typeof io=="function"){const uo=safeCall(io,[{node:eo,depth:to,indexOrName:no,size:lo}]);if(typeof uo=="boolean")return uo}return!!(Array.isArray(eo)&&lo>so||isObject$3(eo)&&lo>so)}function isCollapsed_largeArray(eo,to,no,io,so,ao){if(ao&&ao.collapsed!==void 0)return!!ao.collapsed;if(typeof io=="boolean")return io;if(typeof io=="number"&&to>io)return!0;const lo=Math.ceil(eo.length/100);if(typeof io=="function"){const uo=safeCall(io,[{node:eo,depth:to,indexOrName:no,size:lo}]);if(typeof uo=="boolean")return uo}return!!(Array.isArray(eo)&&lo>so||isObject$3(eo)&&lo>so)}function ifDisplay(eo,to,no){return typeof eo=="boolean"?eo:!!(typeof eo=="number"&&to>eo||eo==="collapsed"&&no||eo==="expanded"&&!no)}function safeCall(eo,to){try{return eo(...to)}catch(no){reportError(no)}}function editableAdd(eo){if(eo===!0||isObject$3(eo)&&eo.add===!0)return!0}function editableEdit(eo){if(eo===!0||isObject$3(eo)&&eo.edit===!0)return!0}function editableDelete(eo){if(eo===!0||isObject$3(eo)&&eo.delete===!0)return!0}function isReactComponent(eo){return typeof eo=="function"}function customAdd(eo){return!eo||eo.add===void 0||!!eo.add}function customEdit(eo){return!eo||eo.edit===void 0||!!eo.edit}function customDelete(eo){return!eo||eo.delete===void 0||!!eo.delete}function customCopy(eo){return!eo||eo.enableClipboard===void 0||!!eo.enableClipboard}function customMatchesURL(eo){return!eo||eo.matchesURL===void 0||!!eo.matchesURL}function resolveEvalFailedNewValue(eo,to){return eo==="string"?to.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):to}var _path$8;function _extends$8(){return _extends$8=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{so.stopPropagation();const ao=to(eo);typeof ao=="string"&&ao&&navigator.clipboard.writeText(ao),io(!0),setTimeout(()=>io(!1),3e3)},className:"json-view--copy"})}function NameValue({indexOrName:eo,value:to,depth:no,parent:io,deleteHandle:so,editHandle:ao}){return jsxRuntimeExports.jsxs("div",Object.assign({className:"json-view--pair"},{children:[jsxRuntimeExports.jsx("span",Object.assign({className:typeof eo=="number"?"json-view--index":"json-view--property"},{children:eo})),":"," ",jsxRuntimeExports.jsx(JsonNode,{node:to,depth:no+1,deleteHandle:so,editHandle:ao,parent:io,indexOrName:eo})]}))}var _path$5,_path2$4;function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{eo[Oo]=No,go&&go({newValue:No,oldValue:Mo,depth:no,src:ho,indexOrName:Oo,parentType:"array"}),mo&&mo({type:"edit",depth:no,src:ho,indexOrName:Oo,parentType:"array"}),yo()},[to,go,mo,yo]),$o=Oo=>{eo.splice(Oo,1),yo()},Ro=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!_o&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>ko(!0),className:"jv-size-chevron"},{children:[ifDisplay(So,no,_o)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(to)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),!_o&&uo&&customCopy(ao)&&jsxRuntimeExports.jsx(CopyButton$2,{node:to})]});return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{children:"["}),Ro,_o?jsxRuntimeExports.jsxs("button",Object.assign({onClick:()=>ko(!1),className:"jv-button"},{children:[lo," ... ",lo+to.length-1]})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:to.map((Oo,No)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:No+lo,value:Oo,depth:no,parent:to,deleteHandle:$o,editHandle:Co},String(io)+String(No)))})),jsxRuntimeExports.jsx("span",{children:"]"})]})}function LargeArray({node:eo,depth:to,deleteHandle:no,indexOrName:io,customOptions:so}){const ao=[];for(let Yo=0;Yo{Oo(isCollapsed_largeArray(eo,to,io,lo,ho,so))},[lo,ho]);const[No,Mo]=reactExports.useState(!1),Bo=()=>{Mo(!1),no&&no(io),mo&&mo({value:eo,depth:to,src:yo,indexOrName:io,parentType:"array"}),ko&&ko({type:"delete",depth:to,src:yo,indexOrName:io,parentType:"array"})},[Fo,Lo]=reactExports.useState(!1),Go=()=>{const Yo=eo;Yo.push(null),So&&So({indexOrName:Yo.length-1,depth:to,src:yo,parentType:"array"}),ko&&ko({type:"add",indexOrName:Yo.length-1,depth:to,src:yo,parentType:"array"}),Co()},Do=No||Fo,Uo=()=>{Mo(!1),Lo(!1)},Ho=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!Ro&&!Do&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>Oo(!0),className:"jv-size-chevron"},{children:[ifDisplay($o,to,Ro)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[eo.length," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),Do&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:Fo?Go:Bo}),Do&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:Uo}),!Ro&&!Do&&uo&&customCopy(so)&&jsxRuntimeExports.jsx(CopyButton$2,{node:eo}),!Ro&&!Do&&editableAdd(go)&&customAdd(so)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{Go()}}),!Ro&&!Do&&editableDelete(go)&&customDelete(so)&&no&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>Mo(!0)})]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),Ho,Ro?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>Oo(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:ao.map((Yo,qo)=>jsxRuntimeExports.jsx(LargeArrayNode,{originNode:eo,node:Yo,depth:to,index:qo,startIndex:qo*100},String(io)+String(qo)))})),jsxRuntimeExports.jsx("span",{children:"]"}),Ro&&ifDisplay($o,to,Ro)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>Oo(!1),className:"jv-size"},{children:[eo.length," Items"]}))]})}function ObjectNode({node:eo,depth:to,indexOrName:no,deleteHandle:io,customOptions:so}){const{collapsed:ao,enableClipboard:lo,ignoreLargeArray:uo,collapseObjectsAfterLength:ho,editable:go,onDelete:mo,src:yo,onAdd:So,onEdit:_o,onChange:ko,forceUpdate:Co,displaySize:$o}=reactExports.useContext(JsonViewContext);if(!uo&&Array.isArray(eo)&&eo.length>100)return jsxRuntimeExports.jsx(LargeArray,{node:eo,depth:to,indexOrName:no,deleteHandle:io,customOptions:so});const Ro=isObject$3(eo),[Oo,No]=reactExports.useState(isCollapsed(eo,to,no,ao,ho,so));reactExports.useEffect(()=>{No(isCollapsed(eo,to,no,ao,ho,so))},[ao,ho]);const Mo=reactExports.useCallback((hs,gs,ys)=>{Array.isArray(eo)?eo[+hs]=gs:eo&&(eo[hs]=gs),_o&&_o({newValue:gs,oldValue:ys,depth:to,src:yo,indexOrName:hs,parentType:Ro?"object":"array"}),ko&&ko({type:"edit",depth:to,src:yo,indexOrName:hs,parentType:Ro?"object":"array"}),Co()},[eo,_o,ko,Co]),Bo=hs=>{Array.isArray(eo)?eo.splice(+hs,1):eo&&delete eo[hs],Co()},[Fo,Lo]=reactExports.useState(!1),Go=()=>{Lo(!1),io&&io(no),mo&&mo({value:eo,depth:to,src:yo,indexOrName:no,parentType:Ro?"object":"array"}),ko&&ko({type:"delete",depth:to,src:yo,indexOrName:no,parentType:Ro?"object":"array"})},[Do,Uo]=reactExports.useState(!1),Ho=reactExports.useRef(null),Yo=()=>{var hs;if(Ro){const gs=(hs=Ho.current)===null||hs===void 0?void 0:hs.value;gs&&(eo[gs]=null,Ho.current&&(Ho.current.value=""),Uo(!1),So&&So({indexOrName:gs,depth:to,src:yo,parentType:"object"}),ko&&ko({type:"add",indexOrName:gs,depth:to,src:yo,parentType:"object"}))}else if(Array.isArray(eo)){const gs=eo;gs.push(null),So&&So({indexOrName:gs.length-1,depth:to,src:yo,parentType:"array"}),ko&&ko({type:"add",indexOrName:gs.length-1,depth:to,src:yo,parentType:"array"})}Co()},qo=hs=>{hs.key==="Enter"?(hs.preventDefault(),Yo()):hs.key==="Escape"&&ps()},Jo=Fo||Do,ps=()=>{Lo(!1),Uo(!1)},Qo=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!Oo&&!Jo&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>No(!0),className:"jv-size-chevron"},{children:[ifDisplay($o,to,Oo)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(eo)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),Do&&Ro&&jsxRuntimeExports.jsx("input",{className:"json-view--input",placeholder:"property",ref:Ho,onKeyDown:qo}),Jo&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:Do?Yo:Go}),Jo&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:ps}),!Oo&&!Jo&&lo&&customCopy(so)&&jsxRuntimeExports.jsx(CopyButton$2,{node:eo}),!Oo&&!Jo&&editableAdd(go)&&customAdd(so)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{Ro?(Uo(!0),setTimeout(()=>{var hs;return(hs=Ho.current)===null||hs===void 0?void 0:hs.focus()})):Yo()}}),!Oo&&!Jo&&editableDelete(go)&&customDelete(so)&&io&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>Lo(!0)})]});return Array.isArray(eo)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),Qo,Oo?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>No(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:eo.map((hs,gs)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:gs,value:hs,depth:to,parent:eo,deleteHandle:Bo,editHandle:Mo},String(no)+String(gs)))})),jsxRuntimeExports.jsx("span",{children:"]"}),Oo&&ifDisplay($o,to,Oo)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>No(!1),className:"jv-size"},{children:[objectSize(eo)," Items"]}))]}):Ro?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),Qo,Oo?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>No(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(eo).map(([hs,gs])=>jsxRuntimeExports.jsx(NameValue,{indexOrName:hs,value:gs,depth:to,parent:eo,deleteHandle:Bo,editHandle:Mo},String(no)+String(hs)))})),jsxRuntimeExports.jsx("span",{children:"}"}),Oo&&ifDisplay($o,to,Oo)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>No(!1),className:"jv-size"},{children:[objectSize(eo)," Items"]}))]}):null}const LongString=React.forwardRef(({str:eo,className:to,ctrlClick:no},io)=>{let{collapseStringMode:so,collapseStringsAfterLength:ao,customizeCollapseStringUI:lo}=reactExports.useContext(JsonViewContext);const[uo,ho]=reactExports.useState(!0),go=reactExports.useRef(null);ao=ao>0?ao:0;const mo=eo.replace(/\s+/g," "),yo=typeof lo=="function"?lo(mo,uo):typeof lo=="string"?lo:"...",So=_o=>{var ko;if((_o.ctrlKey||_o.metaKey)&&no)no(_o);else{const Co=window.getSelection();if(Co&&Co.anchorOffset!==Co.focusOffset&&((ko=Co.anchorNode)===null||ko===void 0?void 0:ko.parentElement)===go.current)return;ho(!uo)}};if(eo.length<=ao)return jsxRuntimeExports.jsxs("span",Object.assign({ref:go,className:to,onClick:no},{children:['"',eo,'"']}));if(so==="address")return eo.length<=10?jsxRuntimeExports.jsxs("span",Object.assign({ref:go,className:to,onClick:no},{children:['"',eo,'"']})):jsxRuntimeExports.jsxs("span",Object.assign({ref:go,onClick:So,className:to+" cursor-pointer"},{children:['"',uo?[mo.slice(0,6),yo,mo.slice(-4)]:eo,'"']}));if(so==="directly")return jsxRuntimeExports.jsxs("span",Object.assign({ref:go,onClick:So,className:to+" cursor-pointer"},{children:['"',uo?[mo.slice(0,ao),yo]:eo,'"']}));if(so==="word"){let _o=ao,ko=ao+1,Co=mo,$o=1;for(;;){if(/\W/.test(eo[_o])){Co=eo.slice(0,_o);break}if(/\W/.test(eo[ko])){Co=eo.slice(0,ko);break}if($o===6){Co=eo.slice(0,ao);break}$o++,_o--,ko++}return jsxRuntimeExports.jsxs("span",Object.assign({ref:go,onClick:So,className:to+" cursor-pointer"},{children:['"',uo?[Co,yo]:eo,'"']}))}return jsxRuntimeExports.jsxs("span",Object.assign({ref:go,className:to},{children:['"',eo,'"']}))});var _path$1;function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{setEditing(!0),setTimeout(()=>{var eo,to;(eo=window.getSelection())===null||eo===void 0||eo.selectAllChildren(valueRef.current),(to=valueRef.current)===null||to===void 0||to.focus()})},done=reactExports.useCallback(()=>{let newValue=valueRef.current.innerText;try{(newValue==="{}"||newValue==="[]")&&(newValue=`(${newValue})`);const evalValue=eval(newValue);editHandle&&editHandle(indexOrName,evalValue,node)}catch(eo){const to=resolveEvalFailedNewValue(type,newValue);editHandle&&editHandle(indexOrName,to,node)}setEditing(!1)},[editHandle]),cancel=()=>{setEditing(!1),setDeleting(!1)},deleteHandle=()=>{setDeleting(!1),_deleteHandle&&_deleteHandle(indexOrName),onDelete&&onDelete({value:node,depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object"}),onChange&&onChange({depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object",type:"delete"})},handleKeyDown=reactExports.useCallback(eo=>{eo.key==="Enter"?(eo.preventDefault(),done()):eo.key==="Escape"&&cancel()},[done]),isEditing=editing||deleting,ctrlClick=!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle?eo=>{(eo.ctrlKey||eo.metaKey)&&edit()}:void 0,Icons=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[isEditing&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:deleting?deleteHandle:done}),isEditing&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:cancel}),!isEditing&&enableClipboard&&customCopy(customReturn)&&jsxRuntimeExports.jsx(CopyButton$2,{node}),!isEditing&&matchesURL&&type==="string"&&urlRegExp.test(node)&&customMatchesURL(customReturn)&&jsxRuntimeExports.jsx("a",Object.assign({href:node,target:"_blank",className:"json-view--link"},{children:jsxRuntimeExports.jsx(SvgLink,{})})),!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle&&jsxRuntimeExports.jsx(SvgEdit,{className:"json-view--edit",onClick:edit}),!isEditing&&editableDelete(editable)&&customDelete(customReturn)&&_deleteHandle&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>setDeleting(!0)})]});let className="json-view--string";switch(typeof(customReturn==null?void 0:customReturn.className)=="string"&&(className+=" "+customReturn.className),type){case"number":case"bigint":className="json-view--number";break;case"boolean":className="json-view--boolean";break;case"object":className="json-view--null";break}deleting&&(className+=" json-view--deleting");let displayValue=String(node);type==="bigint"&&(displayValue+="n");const EditingElement=reactExports.useMemo(()=>jsxRuntimeExports.jsx("span",{contentEditable:!0,className,dangerouslySetInnerHTML:{__html:type==="string"?`"${displayValue}"`:displayValue},ref:valueRef,onKeyDown:handleKeyDown}),[displayValue,type,handleKeyDown]);return type==="string"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:node.length>collapseStringsAfterLength?jsxRuntimeExports.jsx(LongString,{str:node,ref:valueRef,className,ctrlClick}):jsxRuntimeExports.jsxs("span",Object.assign({className,onClick:ctrlClick},{children:['"',displayValue,'"']})),Icons]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:jsxRuntimeExports.jsx("span",Object.assign({className,onClick:ctrlClick},{children:displayValue})),Icons]})}}const defaultURLRegExp=/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,JsonViewContext=reactExports.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",customizeCollapseStringUI:void 0,collapseObjectsAfterLength:20,collapsed:!1,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,customizeCopy:()=>{},displaySize:void 0,matchesURL:!1,urlRegExp:defaultURLRegExp,ignoreLargeArray:!1});function JsonView({src:eo,collapseStringsAfterLength:to=99,collapseStringMode:no="directly",customizeCollapseStringUI:io,collapseObjectsAfterLength:so=99,collapsed:ao,enableClipboard:lo=!0,editable:uo=!1,onEdit:ho,onDelete:go,onAdd:mo,onChange:yo,dark:So=!1,theme:_o="default",customizeNode:ko,customizeCopy:Co=stringifyForCopying,displaySize:$o,style:Ro,className:Oo,matchesURL:No=!1,urlRegExp:Mo=defaultURLRegExp,ignoreLargeArray:Bo=!1}){const[Fo,Lo]=reactExports.useState(0),Go=reactExports.useCallback(()=>Lo(Ho=>++Ho),[]),[Do,Uo]=reactExports.useState(eo);return reactExports.useEffect(()=>Uo(eo),[eo]),jsxRuntimeExports.jsx(JsonViewContext.Provider,Object.assign({value:{src:Do,collapseStringsAfterLength:to,collapseStringMode:no,customizeCollapseStringUI:io,collapseObjectsAfterLength:so,collapsed:ao,enableClipboard:lo,editable:uo,onEdit:ho,onDelete:go,onAdd:mo,onChange:yo,forceUpdate:Go,customizeNode:ko,customizeCopy:Co,displaySize:$o,matchesURL:No,urlRegExp:Mo,ignoreLargeArray:Bo}},{children:jsxRuntimeExports.jsx("code",Object.assign({className:"json-view"+(So?" dark":"")+(_o&&_o!=="default"?" json-view_"+_o:"")+(Oo?" "+Oo:""),style:Ro},{children:jsxRuntimeExports.jsx(JsonNode,{node:Do,depth:1,editHandle:(Ho,Yo,qo)=>{Uo(Yo),ho&&ho({newValue:Yo,oldValue:qo,depth:1,src:Do,indexOrName:Ho,parentType:null}),yo&&yo({type:"edit",depth:1,src:Do,indexOrName:Ho,parentType:null})},deleteHandle:()=>{Uo(void 0),go&&go({value:Do,depth:1,src:Do,indexOrName:"",parentType:null}),yo&&yo({depth:1,src:Do,indexOrName:"",parentType:null,type:"delete"})}})}))}))}const ImageViewer=({src:eo,width:to=100,height:no=100,enablePopUpImageViewer:io=!0})=>{const[so,ao]=reactExports.useState(!1),lo=useClasses$s(),[uo,ho]=reactExports.useState(!1),go=eo.startsWith('"')&&eo.endsWith('"')?eo.slice(1,-1):eo,mo=()=>{ao(!0)},yo=()=>{ao(!1)},So=()=>{io&&ho(!0)},_o=()=>{ao(!1),ho(!1)};return jsxRuntimeExports.jsxs("div",{className:lo.container,style:{maxWidth:`${to}px`,maxHeight:`${no}px`},onMouseEnter:io?mo:void 0,onMouseLeave:io?yo:void 0,children:[jsxRuntimeExports.jsx(Image$2,{src:go,className:lo.image,onClick:So,fit:"contain",alt:"image"}),io&&jsxRuntimeExports.jsxs(Dialog,{open:uo,children:[jsxRuntimeExports.jsx(DialogTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx(Button$2,{className:lo.button,onClick:So,size:"small",style:{display:so?"block":"none"},children:"View"})}),jsxRuntimeExports.jsx(DialogSurface,{children:jsxRuntimeExports.jsxs(DialogBody,{children:[jsxRuntimeExports.jsx(DialogTitle,{children:"Image Viewer"}),jsxRuntimeExports.jsx(DialogContent,{children:jsxRuntimeExports.jsx(Image$2,{src:go,className:lo.image,onClick:So,fit:"contain",alt:"image"})}),jsxRuntimeExports.jsx(DialogActions,{children:jsxRuntimeExports.jsx(Button$2,{appearance:"secondary",onClick:_o,children:"Close"})})]})})]})]})},useClasses$s=makeStyles({container:{position:"relative",display:"inline-block"},image:{cursor:"pointer",maxWidth:"100%",maxHeight:"calc(100% - 20px)"},button:{position:"absolute",top:"50%",left:"50%",cursor:"pointer",transform:"translate(-50%, -50%)"}}),JsonViewer=eo=>{const{src:to,disableCustomCollapse:no,customizeNode:io,enablePopUpImageViewer:so,...ao}=eo,[lo,uo]=React.useState(to);React.useEffect(()=>{if(typeof to=="string")try{const go=JSON.parse(to);uo(go)}catch{if(isJsonl(to)){const mo=safelyParseJsonLines(to);uo(mo)}else uo(to)}},[to]);const ho=go=>{const{node:mo}=go,yo=io&&io(go);if(yo)return yo;if(isImageValue(mo))return jsxRuntimeExports.jsx(ImageViewer,{src:mo,enablePopUpImageViewer:so})};return jsxRuntimeExports.jsx(JsonView,{src:lo,customizeCollapseStringUI:no?void 0:()=>jsxRuntimeExports.jsx(ExpandButton,{}),customizeNode:ho,...ao})},isImageValue=eo=>!!(typeof eo=="string"&&(eo.startsWith("data:image/")||eo.startsWith('"data:image/'))),ExpandButton=()=>{const eo=useClasses$r();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["...",jsxRuntimeExports.jsxs("div",{className:eo.btn,children:[jsxRuntimeExports.jsx(ChevronDown16Regular,{className:eo.icon}),jsxRuntimeExports.jsx("span",{className:eo.text,children:"view all"})]})]})},useClasses$r=makeStyles({btn:{display:"inline-flex",pointer:"cursor",alignItems:"center",...shorthands.padding(0),paddingLeft:"4px",...shorthands.margin(0),fontWeight:400,color:"#A3BEE9"},icon:{height:"12px",width:"12px",...shorthands.padding(0),...shorthands.margin(0)},text:{fontSize:"12px",...shorthands.padding(0),...shorthands.margin(0)}}),JsonNodeCard=({title:eo,src:to,wrapperStyle:no={},status:io=ViewStatus.loaded,errorTip:so=null,jsonViewerProps:ao={}})=>{let lo="";if(typeof to=="string")try{lo=JSON.parse(to)}catch{lo=to}else typeof to=="object"?lo=to:lo=String(to);const uo=useIsDark();return jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,...no},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:eo})})}),io===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),io===ViewStatus.loaded&&jsxRuntimeExports.jsx(JsonViewer,{src:lo,theme:"vscode",dark:uo,collapseStringsAfterLength:300,...ao}),io===ViewStatus.error&&so]})},DefaultNodeInfo=()=>{var ko,Co,$o,Ro;const eo=useSelectedSpan(),to=(ko=getSpanType(eo))==null?void 0:ko.toLocaleLowerCase(),no=useLocStrings(),[io,so]=reactExports.useState(ViewStatus.loading),[ao,lo]=reactExports.useState(ViewStatus.loading),uo=getSpanEventsWithPayload(eo,BuildInEventName["function.inputs"]),ho=getSpanEventsWithPayload(eo,BuildInEventName["llm.generated_message"]),go=useLoadSpanEvents(eo,BuildInEventName["function.inputs"]),mo=useLoadSpanEvents(eo,BuildInEventName["llm.generated_message"]);let yo=getSpanEventsWithPayload(eo,BuildInEventName["function.output"]),So=useLoadSpanEvents(eo,BuildInEventName["function.output"]);to==="llm"&&ho.length>0&&(yo=ho,So=mo);let _o=(Co=eo==null?void 0:eo.attributes)==null?void 0:Co.output;return to==="llm"&&(_o=_o??(($o=eo==null?void 0:eo.attributes)==null?void 0:$o["llm.generated_message"])),reactExports.useEffect(()=>{so(ViewStatus.loading),go({onCompleted:Oo=>{so(Oo?ViewStatus.error:ViewStatus.loaded)}}),lo(ViewStatus.loading),So({onCompleted:Oo=>{lo(Oo?ViewStatus.error:ViewStatus.loaded)}})},[go,So]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[uo.length>0?jsxRuntimeExports.jsx(JsonNodeCard,{title:no.Input,status:io,src:uo.length===1?uo[0].attributes:uo,errorTip:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{so(ViewStatus.loading),go({onCompleted:Oo=>{so(Oo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(JsonNodeCard,{title:no.Input,src:(Ro=eo==null?void 0:eo.attributes)==null?void 0:Ro.inputs}),yo.length>0?jsxRuntimeExports.jsx(JsonNodeCard,{title:no.Output,status:ao,src:yo.length===1?yo[0].attributes:yo,errorTip:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{lo(ViewStatus.loading),So({onCompleted:Oo=>{lo(Oo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(JsonNodeCard,{title:no.Output,src:_o})]})},DefaultNodeLoadError=({onRetry:eo})=>{const to=useLocStrings();return jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",icon:jsxRuntimeExports.jsx(ErrorCircle16Filled,{style:{color:tokens$1.colorStatusDangerForeground1}}),style:{fontWeight:400},onClick:eo,children:to["Failed to load, click to try again"]})},CopyButton$1=({message:eo,latency:to=1e3,...no})=>{const[io,so]=reactExports.useState(!1),ao=lo=>{eo&&(lo.stopPropagation(),copy$5(eo),so(!0))};return reactExports.useEffect(()=>{if(io){const lo=setTimeout(()=>{so(!1)},to);return()=>clearTimeout(lo)}return()=>{}},[io,to]),jsxRuntimeExports.jsx(Button$2,{size:"small",onClick:ao,icon:io?jsxRuntimeExports.jsx(CheckmarkRegular,{}):jsxRuntimeExports.jsx(CopyRegular,{}),...no})},CollapsibleTextArea=({content:eo})=>{const[to,no]=reactExports.useState(!0),io=useClasses$q();return jsxRuntimeExports.jsxs("div",{className:io.wrapper,children:[jsxRuntimeExports.jsxs("div",{className:io.btnWrapper,children:[jsxRuntimeExports.jsx(CopyButton$1,{message:eo}),jsxRuntimeExports.jsx(Button$2,{icon:to?jsxRuntimeExports.jsx(TextWrapOff16Regular,{}):jsxRuntimeExports.jsx(TextWrap16Regular,{}),onClick:()=>no(!to),size:"small"})]}),jsxRuntimeExports.jsx("pre",{className:`${to&&io.wrap} ${io.pre}`,children:eo})]})},useClasses$q=makeStyles({wrapper:{width:"95%",height:"100%",paddingLeft:tokens$1.spacingHorizontalM,color:tokens$1.colorNeutralForeground1,display:"flex",flexDirection:"column"},btnWrapper:{display:"flex",flexDirection:"row",justifyContent:"flex-start",marginTop:"4px",marginBottom:"4px",...shorthands.gap("8px")},wrap:{wordBreak:"break-all",whiteSpace:"pre-wrap"},pre:{marginTop:0}}),ErrorsTab=()=>{var ho;const eo=useClasses$p(),to=useSelectedSpan(),no=((ho=to==null?void 0:to.events)==null?void 0:ho.filter(go=>go.name===BuildInEventName.exception))??[],io=useIsDark(),so=useLocStrings(),[ao,lo]=reactExports.useState(ViewStatus.loading),uo=useLoadSpanEvents(to,BuildInEventName.exception);return reactExports.useEffect(()=>{lo(ViewStatus.loading),uo({onCompleted:go=>{lo(go?ViewStatus.error:ViewStatus.loaded)}})},[uo]),no.length===0?jsxRuntimeExports.jsxs("div",{className:eo.emptyWrapper,children:[jsxRuntimeExports.jsx(ShieldCheckmark24Regular,{}),jsxRuntimeExports.jsxs(Text$2,{className:eo.emptyText,children:[" ",so.No_Exception_Found]})]}):ao===ViewStatus.loading?jsxRuntimeExports.jsx("div",{className:eo.emptyWrapper,children:jsxRuntimeExports.jsx(Spinner,{size:"tiny"})}):ao===ViewStatus.error?jsxRuntimeExports.jsx("div",{className:eo.emptyWrapper,children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{lo(ViewStatus.loading),uo({onCompleted:go=>{lo(go?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:no.map((go,mo)=>jsxRuntimeExports.jsx(Card,{className:eo.wrapper,children:jsxRuntimeExports.jsx(JsonViewer,{src:go,collapseStringsAfterLength:1e4,theme:"vscode",dark:io,customizeNode:({node:yo,indexOrName:So})=>{if((So==="exception.message"||So==="exception.stacktrace")&&typeof yo=="string")return jsxRuntimeExports.jsx(CollapsibleTextArea,{content:yo})}})},mo))})},useClasses$p=makeStyles({wrapper:{marginBottom:tokens$1.spacingVerticalM},emptyWrapper:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%"},emptyText:{paddingTop:tokens$1.spacingVerticalM}}),isElementOverflow=eo=>eo.scrollHeight>eo.clientHeight||eo.scrollWidth>eo.clientWidth,NodeEvalOutput=()=>{const eo=useClasses$o(),to=useLocStrings(),no=useSelectedTrace(),io=reactExports.useMemo(()=>{const so=(no==null?void 0:no.evaluations)??{};return Object.values(so).sort((ao,lo)=>ao.start_time&&lo.start_time?new Date(ao.start_time).getTime()>new Date(lo.start_time).getTime()?-1:1:0)},[no]);return jsxRuntimeExports.jsxs("div",{className:eo.wrapper,children:[jsxRuntimeExports.jsx("div",{className:eo.title,children:to.Evaluation_output}),jsxRuntimeExports.jsx("div",{className:eo.content,children:io.map((so,ao)=>jsxRuntimeExports.jsx(EvalOutputItem,{trace:so},`${so.name}_${ao}`))})]})},EvalOutputItem=({trace:eo})=>{const to=useClasses$o(),no=useLocStrings(),[io,so]=reactExports.useState(!1),ao=useTraceViewModel(),lo=checkStatus(eo.status,"error");return jsxRuntimeExports.jsxs("div",{className:mergeClasses(to.item,io?to.itemHover:""),onMouseEnter:()=>{so(!0)},onMouseLeave:()=>{so(!1)},onClick:()=>{ao.detailNavigateTo(eo)},children:[jsxRuntimeExports.jsx("div",{className:to.itemTitle,children:eo.name}),eo.start_time?jsxRuntimeExports.jsxs("div",{className:to.itemTime,children:[jsxRuntimeExports.jsx(Clock12Regular,{}),jsxRuntimeExports.jsxs("span",{children:[no.Created_on,": ",timeFormat$1(eo.start_time)]})]}):null,lo?jsxRuntimeExports.jsxs("div",{className:to.itemError,children:[jsxRuntimeExports.jsx(DismissCircle12Filled,{className:to.errorColor}),jsxRuntimeExports.jsx("span",{children:no["Evaluation run failed"]})]}):jsxRuntimeExports.jsx("div",{className:to.itemContent,children:eo.outputs!==null&&typeof eo.outputs=="object"&&Object.entries(eo.outputs).map(([uo,ho])=>jsxRuntimeExports.jsx(EvalOutputItemMetric,{k:uo,v:ho,setIsHover:so},uo))})]})},EvalOutputItemMetric=({k:eo,v:to,setIsHover:no})=>{const io=useClasses$o(),so=reactExports.useRef(null),[ao,lo]=reactExports.useState(!1),uo=JSON.stringify(to),ho=jsxRuntimeExports.jsxs("div",{ref:so,className:io.itemMetric,onMouseEnter:()=>{no(!1)},onMouseLeave:()=>{no(!0)},onClick:go=>(go.preventDefault(),go.stopPropagation(),!1),children:[eo,": ",uo]});return reactExports.useEffect(()=>{const go=so.current?isElementOverflow(so.current):!1;lo(go)},[]),ao?jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs("div",{children:[eo,":",jsxRuntimeExports.jsx("br",{}),uo]}),relationship:"description",positioning:"below",children:ho}):ho},useClasses$o=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},title:{height:"52px",boxSizing:"border-box",...shorthands.padding("16px"),fontSize:"14px",fontWeight:600},content:{...shorthands.flex(1),...shorthands.overflow("auto"),...shorthands.padding("0","16px")},item:{position:"relative",width:"200px",...shorthands.border("1px","solid",tokens$1.colorNeutralStroke2),...shorthands.borderRadius("4px"),marginBottom:"16px",...shorthands.padding("12px"),fontSize:"12px",cursor:"pointer"},itemHover:{backgroundColor:tokens$1.colorNeutralBackground1Hover},itemTitle:{height:"16px",lineHeight:"16px",color:tokens$1.colorNeutralForeground2},itemTime:{display:"flex",alignItems:"center",...shorthands.gap("4px"),marginTop:"8px","& span":{color:tokens$1.colorNeutralForeground2}},itemError:{display:"flex",alignItems:"center",...shorthands.gap("4px"),marginTop:"8px","& span":{color:tokens$1.colorNeutralForeground2,fontWeight:600}},itemContent:{...shorthands.overflow("hidden"),marginLeft:"-8px"},itemMetric:{float:"left",width:"fit-content",maxWidth:"100%",marginTop:"8px",marginLeft:"8px",...shorthands.padding("2px","8px"),display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",textOverflow:"ellipsis",wordBreak:"break-all",...shorthands.overflow("hidden"),...shorthands.border("1px","solid",tokens$1.colorNeutralStroke1),...shorthands.borderRadius("4px"),backgroundColor:tokens$1.colorNeutralBackground1},errorColor:{color:tokens$1.colorPaletteRedForeground1}}),NodeRawCard=()=>{const eo=useSelectedSpan(),to=useSpanEventsLoadStatus(),no=useIsLazyLoadSpan(),io=useLocStrings(),[,so]=reactExports.useReducer(yo=>yo+1,0),ao=!!(eo!=null&&eo.span_json_uri),[lo,uo]=reactExports.useState(ViewStatus.loading),[ho,go]=reactExports.useState(void 0),mo=useFetchSpanRawJson(eo);return reactExports.useEffect(()=>{if(!ao){uo(ViewStatus.loaded);return}uo(ViewStatus.loading),mo({onCompleted:(yo,So)=>{if(yo){uo(ViewStatus.error);return}go(So),uo(ViewStatus.loaded)}})},[ao,mo]),jsxRuntimeExports.jsx(JsonNodeCard,{title:io.Raw_JSON,src:ao?ho:eo,status:lo,errorTip:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{uo(ViewStatus.loading),mo({onCompleted:(yo,So)=>{if(yo){uo(ViewStatus.error);return}uo(ViewStatus.loaded),go(So)}})}}),jsonViewerProps:{customizeNode:({depth:yo,indexOrName:So,node:_o})=>{var Co,$o;if(ao)return;if(yo===3&&typeof So=="number"&&typeof _o.name=="string"&&typeof _o.timestamp=="string"&&typeof _o.attributes=="object"){const Ro=`${(Co=eo==null?void 0:eo.context)==null?void 0:Co.span_id}__${($o=eo==null?void 0:eo.external_event_data_uris)==null?void 0:$o[So]}`;return!no||to.get(Ro)==="success"?void 0:jsxRuntimeExports.jsx(NodeEventItem,{name:_o.name,index:So,timestamp:_o.timestamp,forceUpdate:so})}}}})},NodeEventItem=({index:eo,name:to,timestamp:no,forceUpdate:io})=>{const so=useSelectedSpan(),ao=useLocStrings(),lo=useLoadSpanEvents(so,to,eo),[uo,ho]=reactExports.useState(ViewStatus.hidden);if(uo===ViewStatus.loaded)return io(),null;let go=ao.load_all;return uo===ViewStatus.loading?go=ao.loading:uo===ViewStatus.error&&(go=ao["Failed to load, click to try again"]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),jsxRuntimeExports.jsxs("div",{style:{paddingLeft:"1em"},children:[jsxRuntimeExports.jsx("span",{style:{color:"var(--json-property)"},children:"name:"}),jsxRuntimeExports.jsx("span",{style:{color:"var(--json-string)"},children:` "${to}",`})]}),jsxRuntimeExports.jsxs("div",{style:{paddingLeft:"1em"},children:[jsxRuntimeExports.jsx("span",{style:{color:"var(--json-property)"},children:"timestamp:"}),jsxRuntimeExports.jsx("span",{style:{color:"var(--json-string)"},children:` "${no}",`})]}),jsxRuntimeExports.jsx("div",{style:{paddingLeft:"1em"},children:jsxRuntimeExports.jsxs(Button$2,{size:"small",appearance:"transparent",style:{padding:0,color:"rgb(163, 190, 233)",justifyContent:"flex-start"},onClick:()=>{ho(ViewStatus.loading),lo({onCompleted:mo=>{ho(mo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})},children:["... ",go]})}),jsxRuntimeExports.jsx("span",{children:"}"})]})},GeneralErrorBar=({title:eo,message:to,onClick:no,enableCopy:io})=>{const so=useClasses$n();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",onClick:no,className:so.bar,children:jsxRuntimeExports.jsxs(MessageBarBody,{className:so.body,children:[jsxRuntimeExports.jsxs(MessageBarTitle,{children:[" ",eo]}),to&&jsxRuntimeExports.jsx(Tooltip,{content:to||"",relationship:"description",children:jsxRuntimeExports.jsxs("span",{className:so.text,children:[" ",to]})}),io&&jsxRuntimeExports.jsx(CopyButton$1,{className:so.copy,message:to})]})})},useClasses$n=makeStyles({bar:{cursor:"pointer",display:"flex",justifyContent:"start",itemAlign:"center",...shorthands.margin("8px","8px",0,"8px"),...shorthands.padding("8px")},body:{display:"flex",...shorthands.flex(0,1,"auto"),...shorthands.overflow("hidden")},text:{...shorthands.flex(0,1,"auto"),...shorthands.overflow("hidden"),whiteSpace:"nowrap",textOverflow:"ellipsis",paddingLeft:"6px"},copy:{marginLeft:"12px",marginRight:"-12px"}}),SpanDetailErrorMessageBar=({setSelectedTab:eo})=>{var io,so;const to=useSelectedSpan(),no=useLocStrings();return((so=(io=to==null?void 0:to.status)==null?void 0:io.status_code)==null?void 0:so.toLowerCase())==="error"?jsxRuntimeExports.jsx(GeneralErrorBar,{title:no.Error,message:to.status.description,onClick:()=>{eo("error")},enableCopy:!0}):null},OverflowMenuItem=eo=>{const{tab:to,onClick:no}=eo;return useIsOverflowItemVisible(to.key)?null:jsxRuntimeExports.jsx(MenuItem,{onClick:no,children:jsxRuntimeExports.jsxs("div",{children:[to.name,to.icon&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",to.icon]})]})},to.key)},useOverflowMenuStyles=makeStyles({menu:{backgroundColor:tokens$1.colorNeutralBackground1},menuButton:{alignSelf:"center"}}),MoreHorizontal=bundleIcon$1(MoreHorizontalFilled,MoreHorizontalRegular),OverflowMenu=eo=>{const{onTabSelect:to,tabs:no}=eo,{ref:io,isOverflowing:so,overflowCount:ao}=useOverflowMenu(),lo=useOverflowMenuStyles(),uo=ho=>{to==null||to(ho)};return so?jsxRuntimeExports.jsxs(Menu,{hasIcons:!0,children:[jsxRuntimeExports.jsx(MenuTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",className:lo.menuButton,ref:io,icon:jsxRuntimeExports.jsx(MoreHorizontal,{}),"aria-label":`${ao} more tabs`,role:"tab"})}),jsxRuntimeExports.jsx(MenuPopover,{children:jsxRuntimeExports.jsx(MenuList,{className:lo.menu,children:no.map(ho=>jsxRuntimeExports.jsx(OverflowMenuItem,{tab:ho,onClick:()=>uo(ho.key)},ho.key))})})]}):null},SpanDetailTabs=({tabs:eo,selectedTab:to,setSelectedTab:no})=>jsxRuntimeExports.jsx(Overflow,{minimumVisible:1,children:jsxRuntimeExports.jsxs(TabList,{selectedValue:to,onTabSelect:(io,so)=>{no(so.value)},children:[eo.map(io=>jsxRuntimeExports.jsx(OverflowItem,{id:io.key,priority:io.key===to?2:1,children:jsxRuntimeExports.jsxs(Tab$1,{value:io.key,children:[io.name,io.icon&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",io.icon]})]})},io.key)),jsxRuntimeExports.jsx(OverflowMenu,{onTabSelect:no,tabs:eo})]})}),DefaultSpanDetailContent=({showEvaluationPanel:eo,showLogs:to,renderLogsPivot:no})=>{var Co;const io=useSelectedSpan(),so=useSelectedTrace(),[ao,lo]=reactExports.useState("input_output"),uo=useNodeDetailClasses(),ho=useLocStrings(),go=(Co=io==null?void 0:io.events)==null?void 0:Co.filter($o=>$o.name===BuildInEventName.exception),mo=(go==null?void 0:go.length)??0,[yo,So]=reactExports.useState(!1);useHasInputsOrOutput($o=>{So($o),$o||lo("raw")});const _o=[...yo?[{key:"input_output",name:ho["Input_&_Output"]}]:[],{key:"raw",name:ho.Raw_JSON},{key:"error",name:ho.Exception,icon:jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:mo>0?"danger":"informative",count:mo,size:"small",showZero:!0})}],ko=to&&io&&so&&(no==null?void 0:no({currentSpan:io,currentTrace:so}));return ko&&_o.push({key:"logs",name:ho.Logs}),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:uo.layoutLeft,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:_o,selectedTab:ao,setSelectedTab:lo}),jsxRuntimeExports.jsx(SpanDetailErrorMessageBar,{setSelectedTab:lo}),jsxRuntimeExports.jsxs("div",{className:uo.content,children:[ao==="input_output"&&jsxRuntimeExports.jsx(DefaultNodeInfo,{}),ao==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),ao==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{}),ao==="logs"&&ko]})]}),eo&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:uo.divider}),jsxRuntimeExports.jsx("div",{className:uo.layoutRight,children:jsxRuntimeExports.jsx(NodeEvalOutput,{})})]})]})},BlockquoteType="blockquote",BreakType="break",CodeType="code",DefinitionType="definition",DeleteType="delete",EmphasisType="emphasis",HeadingType="heading",HtmlType="html";var HtmlContentType;(function(eo){eo.CDATA="cdata",eo.Closing="closing",eo.Comment="comment",eo.Declaration="declaration",eo.Instruction="instruction",eo.Open="open"})(HtmlContentType||(HtmlContentType={}));const ImageReferenceType="imageReference",ImageType$1="image",InlineCodeType="inlineCode",LinkReferenceType="linkReference",LinkType="link",ListItemType="listItem";var TaskStatus;(function(eo){eo.TODO="todo",eo.DOING="doing",eo.DONE="done"})(TaskStatus||(TaskStatus={}));const ListType="list",ParagraphType$1="paragraph",StrongType="strong",TableCellType="tableCell",TableRowType="tableRow",TableType="table",TextType$1="text",ThematicBreakType="thematicBreak";var AsciiCodePoint;(function(eo){eo[eo.NUL=0]="NUL",eo[eo.SOH=1]="SOH",eo[eo.STX=2]="STX",eo[eo.ETX=3]="ETX",eo[eo.EOT=4]="EOT",eo[eo.ENQ=5]="ENQ",eo[eo.ACK=6]="ACK",eo[eo.BEL=7]="BEL",eo[eo.BS=8]="BS",eo[eo.HT=9]="HT",eo[eo.LF=10]="LF",eo[eo.VT=11]="VT",eo[eo.FF=12]="FF",eo[eo.CR=13]="CR",eo[eo.SO=14]="SO",eo[eo.SI=15]="SI",eo[eo.DLE=16]="DLE",eo[eo.DC1=17]="DC1",eo[eo.DC2=18]="DC2",eo[eo.DC3=19]="DC3",eo[eo.DC4=20]="DC4",eo[eo.NAK=21]="NAK",eo[eo.SYN=22]="SYN",eo[eo.ETB=23]="ETB",eo[eo.CAN=24]="CAN",eo[eo.EM=25]="EM",eo[eo.SUB=26]="SUB",eo[eo.ESC=27]="ESC",eo[eo.FS=28]="FS",eo[eo.GS=29]="GS",eo[eo.RS=30]="RS",eo[eo.US=31]="US",eo[eo.SPACE=32]="SPACE",eo[eo.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",eo[eo.DOUBLE_QUOTE=34]="DOUBLE_QUOTE",eo[eo.NUMBER_SIGN=35]="NUMBER_SIGN",eo[eo.DOLLAR_SIGN=36]="DOLLAR_SIGN",eo[eo.PERCENT_SIGN=37]="PERCENT_SIGN",eo[eo.AMPERSAND=38]="AMPERSAND",eo[eo.SINGLE_QUOTE=39]="SINGLE_QUOTE",eo[eo.OPEN_PARENTHESIS=40]="OPEN_PARENTHESIS",eo[eo.CLOSE_PARENTHESIS=41]="CLOSE_PARENTHESIS",eo[eo.ASTERISK=42]="ASTERISK",eo[eo.PLUS_SIGN=43]="PLUS_SIGN",eo[eo.COMMA=44]="COMMA",eo[eo.MINUS_SIGN=45]="MINUS_SIGN",eo[eo.DOT=46]="DOT",eo[eo.SLASH=47]="SLASH",eo[eo.DIGIT0=48]="DIGIT0",eo[eo.DIGIT1=49]="DIGIT1",eo[eo.DIGIT2=50]="DIGIT2",eo[eo.DIGIT3=51]="DIGIT3",eo[eo.DIGIT4=52]="DIGIT4",eo[eo.DIGIT5=53]="DIGIT5",eo[eo.DIGIT6=54]="DIGIT6",eo[eo.DIGIT7=55]="DIGIT7",eo[eo.DIGIT8=56]="DIGIT8",eo[eo.DIGIT9=57]="DIGIT9",eo[eo.COLON=58]="COLON",eo[eo.SEMICOLON=59]="SEMICOLON",eo[eo.OPEN_ANGLE=60]="OPEN_ANGLE",eo[eo.EQUALS_SIGN=61]="EQUALS_SIGN",eo[eo.CLOSE_ANGLE=62]="CLOSE_ANGLE",eo[eo.QUESTION_MARK=63]="QUESTION_MARK",eo[eo.AT_SIGN=64]="AT_SIGN",eo[eo.UPPERCASE_A=65]="UPPERCASE_A",eo[eo.UPPERCASE_B=66]="UPPERCASE_B",eo[eo.UPPERCASE_C=67]="UPPERCASE_C",eo[eo.UPPERCASE_D=68]="UPPERCASE_D",eo[eo.UPPERCASE_E=69]="UPPERCASE_E",eo[eo.UPPERCASE_F=70]="UPPERCASE_F",eo[eo.UPPERCASE_G=71]="UPPERCASE_G",eo[eo.UPPERCASE_H=72]="UPPERCASE_H",eo[eo.UPPERCASE_I=73]="UPPERCASE_I",eo[eo.UPPERCASE_J=74]="UPPERCASE_J",eo[eo.UPPERCASE_K=75]="UPPERCASE_K",eo[eo.UPPERCASE_L=76]="UPPERCASE_L",eo[eo.UPPERCASE_M=77]="UPPERCASE_M",eo[eo.UPPERCASE_N=78]="UPPERCASE_N",eo[eo.UPPERCASE_O=79]="UPPERCASE_O",eo[eo.UPPERCASE_P=80]="UPPERCASE_P",eo[eo.UPPERCASE_Q=81]="UPPERCASE_Q",eo[eo.UPPERCASE_R=82]="UPPERCASE_R",eo[eo.UPPERCASE_S=83]="UPPERCASE_S",eo[eo.UPPERCASE_T=84]="UPPERCASE_T",eo[eo.UPPERCASE_U=85]="UPPERCASE_U",eo[eo.UPPERCASE_V=86]="UPPERCASE_V",eo[eo.UPPERCASE_W=87]="UPPERCASE_W",eo[eo.UPPERCASE_X=88]="UPPERCASE_X",eo[eo.UPPERCASE_Y=89]="UPPERCASE_Y",eo[eo.UPPERCASE_Z=90]="UPPERCASE_Z",eo[eo.OPEN_BRACKET=91]="OPEN_BRACKET",eo[eo.BACKSLASH=92]="BACKSLASH",eo[eo.CLOSE_BRACKET=93]="CLOSE_BRACKET",eo[eo.CARET=94]="CARET",eo[eo.UNDERSCORE=95]="UNDERSCORE",eo[eo.BACKTICK=96]="BACKTICK",eo[eo.LOWERCASE_A=97]="LOWERCASE_A",eo[eo.LOWERCASE_B=98]="LOWERCASE_B",eo[eo.LOWERCASE_C=99]="LOWERCASE_C",eo[eo.LOWERCASE_D=100]="LOWERCASE_D",eo[eo.LOWERCASE_E=101]="LOWERCASE_E",eo[eo.LOWERCASE_F=102]="LOWERCASE_F",eo[eo.LOWERCASE_G=103]="LOWERCASE_G",eo[eo.LOWERCASE_H=104]="LOWERCASE_H",eo[eo.LOWERCASE_I=105]="LOWERCASE_I",eo[eo.LOWERCASE_J=106]="LOWERCASE_J",eo[eo.LOWERCASE_K=107]="LOWERCASE_K",eo[eo.LOWERCASE_L=108]="LOWERCASE_L",eo[eo.LOWERCASE_M=109]="LOWERCASE_M",eo[eo.LOWERCASE_N=110]="LOWERCASE_N",eo[eo.LOWERCASE_O=111]="LOWERCASE_O",eo[eo.LOWERCASE_P=112]="LOWERCASE_P",eo[eo.LOWERCASE_Q=113]="LOWERCASE_Q",eo[eo.LOWERCASE_R=114]="LOWERCASE_R",eo[eo.LOWERCASE_S=115]="LOWERCASE_S",eo[eo.LOWERCASE_T=116]="LOWERCASE_T",eo[eo.LOWERCASE_U=117]="LOWERCASE_U",eo[eo.LOWERCASE_V=118]="LOWERCASE_V",eo[eo.LOWERCASE_W=119]="LOWERCASE_W",eo[eo.LOWERCASE_X=120]="LOWERCASE_X",eo[eo.LOWERCASE_Y=121]="LOWERCASE_Y",eo[eo.LOWERCASE_Z=122]="LOWERCASE_Z",eo[eo.OPEN_BRACE=123]="OPEN_BRACE",eo[eo.VERTICAL_SLASH=124]="VERTICAL_SLASH",eo[eo.CLOSE_BRACE=125]="CLOSE_BRACE",eo[eo.TILDE=126]="TILDE",eo[eo.DELETE=127]="DELETE"})(AsciiCodePoint||(AsciiCodePoint={}));const foldingCaseCodeMap={µ:"μ",À:"à",Á:"á",Â:"â",Ã:"ã",Ä:"ä",Å:"å",Æ:"æ",Ç:"ç",È:"è",É:"é",Ê:"ê",Ë:"ë",Ì:"ì",Í:"í",Î:"î",Ï:"ï",Ð:"ð",Ñ:"ñ",Ò:"ò",Ó:"ó",Ô:"ô",Õ:"õ",Ö:"ö",Ø:"ø",Ù:"ù",Ú:"ú",Û:"û",Ü:"ü",Ý:"ý",Þ:"þ",Ā:"ā",Ă:"ă",Ą:"ą",Ć:"ć",Ĉ:"ĉ",Ċ:"ċ",Č:"č",Ď:"ď",Đ:"đ",Ē:"ē",Ĕ:"ĕ",Ė:"ė",Ę:"ę",Ě:"ě",Ĝ:"ĝ",Ğ:"ğ",Ġ:"ġ",Ģ:"ģ",Ĥ:"ĥ",Ħ:"ħ",Ĩ:"ĩ",Ī:"ī",Ĭ:"ĭ",Į:"į",IJ:"ij",Ĵ:"ĵ",Ķ:"ķ",Ĺ:"ĺ",Ļ:"ļ",Ľ:"ľ",Ŀ:"ŀ",Ł:"ł",Ń:"ń",Ņ:"ņ",Ň:"ň",Ŋ:"ŋ",Ō:"ō",Ŏ:"ŏ",Ő:"ő",Œ:"œ",Ŕ:"ŕ",Ŗ:"ŗ",Ř:"ř",Ś:"ś",Ŝ:"ŝ",Ş:"ş",Š:"š",Ţ:"ţ",Ť:"ť",Ŧ:"ŧ",Ũ:"ũ",Ū:"ū",Ŭ:"ŭ",Ů:"ů",Ű:"ű",Ų:"ų",Ŵ:"ŵ",Ŷ:"ŷ",Ÿ:"ÿ",Ź:"ź",Ż:"ż",Ž:"ž",ſ:"s",Ɓ:"ɓ",Ƃ:"ƃ",Ƅ:"ƅ",Ɔ:"ɔ",Ƈ:"ƈ",Ɖ:"ɖ",Ɗ:"ɗ",Ƌ:"ƌ",Ǝ:"ǝ",Ə:"ə",Ɛ:"ɛ",Ƒ:"ƒ",Ɠ:"ɠ",Ɣ:"ɣ",Ɩ:"ɩ",Ɨ:"ɨ",Ƙ:"ƙ",Ɯ:"ɯ",Ɲ:"ɲ",Ɵ:"ɵ",Ơ:"ơ",Ƣ:"ƣ",Ƥ:"ƥ",Ʀ:"ʀ",Ƨ:"ƨ",Ʃ:"ʃ",Ƭ:"ƭ",Ʈ:"ʈ",Ư:"ư",Ʊ:"ʊ",Ʋ:"ʋ",Ƴ:"ƴ",Ƶ:"ƶ",Ʒ:"ʒ",Ƹ:"ƹ",Ƽ:"ƽ",DŽ:"dž",Dž:"dž",LJ:"lj",Lj:"lj",NJ:"nj",Nj:"nj",Ǎ:"ǎ",Ǐ:"ǐ",Ǒ:"ǒ",Ǔ:"ǔ",Ǖ:"ǖ",Ǘ:"ǘ",Ǚ:"ǚ",Ǜ:"ǜ",Ǟ:"ǟ",Ǡ:"ǡ",Ǣ:"ǣ",Ǥ:"ǥ",Ǧ:"ǧ",Ǩ:"ǩ",Ǫ:"ǫ",Ǭ:"ǭ",Ǯ:"ǯ",DZ:"dz",Dz:"dz",Ǵ:"ǵ",Ƕ:"ƕ",Ƿ:"ƿ",Ǹ:"ǹ",Ǻ:"ǻ",Ǽ:"ǽ",Ǿ:"ǿ",Ȁ:"ȁ",Ȃ:"ȃ",Ȅ:"ȅ",Ȇ:"ȇ",Ȉ:"ȉ",Ȋ:"ȋ",Ȍ:"ȍ",Ȏ:"ȏ",Ȑ:"ȑ",Ȓ:"ȓ",Ȕ:"ȕ",Ȗ:"ȗ",Ș:"ș",Ț:"ț",Ȝ:"ȝ",Ȟ:"ȟ","Ƞ":"ƞ",Ȣ:"ȣ",Ȥ:"ȥ",Ȧ:"ȧ",Ȩ:"ȩ",Ȫ:"ȫ",Ȭ:"ȭ",Ȯ:"ȯ",Ȱ:"ȱ",Ȳ:"ȳ","Ⱥ":"ⱥ","Ȼ":"ȼ","Ƚ":"ƚ","Ⱦ":"ⱦ","Ɂ":"ɂ","Ƀ":"ƀ","Ʉ":"ʉ","Ʌ":"ʌ","Ɇ":"ɇ","Ɉ":"ɉ","Ɋ":"ɋ","Ɍ":"ɍ","Ɏ":"ɏ","ͅ":"ι","Ͱ":"ͱ","Ͳ":"ͳ","Ͷ":"ͷ","Ϳ":"ϳ",Ά:"ά",Έ:"έ",Ή:"ή",Ί:"ί",Ό:"ό",Ύ:"ύ",Ώ:"ώ",Α:"α",Β:"β",Γ:"γ",Δ:"δ",Ε:"ε",Ζ:"ζ",Η:"η",Θ:"θ",Ι:"ι",Κ:"κ",Λ:"λ",Μ:"μ",Ν:"ν",Ξ:"ξ",Ο:"ο",Π:"π",Ρ:"ρ",Σ:"σ",Τ:"τ",Υ:"υ",Φ:"φ",Χ:"χ",Ψ:"ψ",Ω:"ω",Ϊ:"ϊ",Ϋ:"ϋ",ς:"σ","Ϗ":"ϗ",ϐ:"β",ϑ:"θ",ϕ:"φ",ϖ:"π","Ϙ":"ϙ",Ϛ:"ϛ",Ϝ:"ϝ",Ϟ:"ϟ",Ϡ:"ϡ",Ϣ:"ϣ",Ϥ:"ϥ",Ϧ:"ϧ",Ϩ:"ϩ",Ϫ:"ϫ",Ϭ:"ϭ",Ϯ:"ϯ",ϰ:"κ",ϱ:"ρ","ϴ":"θ","ϵ":"ε","Ϸ":"ϸ","Ϲ":"ϲ","Ϻ":"ϻ","Ͻ":"ͻ","Ͼ":"ͼ","Ͽ":"ͽ",Ѐ:"ѐ",Ё:"ё",Ђ:"ђ",Ѓ:"ѓ",Є:"є",Ѕ:"ѕ",І:"і",Ї:"ї",Ј:"ј",Љ:"љ",Њ:"њ",Ћ:"ћ",Ќ:"ќ",Ѝ:"ѝ",Ў:"ў",Џ:"џ",А:"а",Б:"б",В:"в",Г:"г",Д:"д",Е:"е",Ж:"ж",З:"з",И:"и",Й:"й",К:"к",Л:"л",М:"м",Н:"н",О:"о",П:"п",Р:"р",С:"с",Т:"т",У:"у",Ф:"ф",Х:"х",Ц:"ц",Ч:"ч",Ш:"ш",Щ:"щ",Ъ:"ъ",Ы:"ы",Ь:"ь",Э:"э",Ю:"ю",Я:"я",Ѡ:"ѡ",Ѣ:"ѣ",Ѥ:"ѥ",Ѧ:"ѧ",Ѩ:"ѩ",Ѫ:"ѫ",Ѭ:"ѭ",Ѯ:"ѯ",Ѱ:"ѱ",Ѳ:"ѳ",Ѵ:"ѵ",Ѷ:"ѷ",Ѹ:"ѹ",Ѻ:"ѻ",Ѽ:"ѽ",Ѿ:"ѿ",Ҁ:"ҁ","Ҋ":"ҋ",Ҍ:"ҍ",Ҏ:"ҏ",Ґ:"ґ",Ғ:"ғ",Ҕ:"ҕ",Җ:"җ",Ҙ:"ҙ",Қ:"қ",Ҝ:"ҝ",Ҟ:"ҟ",Ҡ:"ҡ",Ң:"ң",Ҥ:"ҥ",Ҧ:"ҧ",Ҩ:"ҩ",Ҫ:"ҫ",Ҭ:"ҭ",Ү:"ү",Ұ:"ұ",Ҳ:"ҳ",Ҵ:"ҵ",Ҷ:"ҷ",Ҹ:"ҹ",Һ:"һ",Ҽ:"ҽ",Ҿ:"ҿ",Ӏ:"ӏ",Ӂ:"ӂ",Ӄ:"ӄ","Ӆ":"ӆ",Ӈ:"ӈ","Ӊ":"ӊ",Ӌ:"ӌ","Ӎ":"ӎ",Ӑ:"ӑ",Ӓ:"ӓ",Ӕ:"ӕ",Ӗ:"ӗ",Ә:"ә",Ӛ:"ӛ",Ӝ:"ӝ",Ӟ:"ӟ",Ӡ:"ӡ",Ӣ:"ӣ",Ӥ:"ӥ",Ӧ:"ӧ",Ө:"ө",Ӫ:"ӫ",Ӭ:"ӭ",Ӯ:"ӯ",Ӱ:"ӱ",Ӳ:"ӳ",Ӵ:"ӵ","Ӷ":"ӷ",Ӹ:"ӹ","Ӻ":"ӻ","Ӽ":"ӽ","Ӿ":"ӿ","Ԁ":"ԁ","Ԃ":"ԃ","Ԅ":"ԅ","Ԇ":"ԇ","Ԉ":"ԉ","Ԋ":"ԋ","Ԍ":"ԍ","Ԏ":"ԏ","Ԑ":"ԑ","Ԓ":"ԓ","Ԕ":"ԕ","Ԗ":"ԗ","Ԙ":"ԙ","Ԛ":"ԛ","Ԝ":"ԝ","Ԟ":"ԟ","Ԡ":"ԡ","Ԣ":"ԣ","Ԥ":"ԥ","Ԧ":"ԧ","Ԩ":"ԩ","Ԫ":"ԫ","Ԭ":"ԭ","Ԯ":"ԯ",Ա:"ա",Բ:"բ",Գ:"գ",Դ:"դ",Ե:"ե",Զ:"զ",Է:"է",Ը:"ը",Թ:"թ",Ժ:"ժ",Ի:"ի",Լ:"լ",Խ:"խ",Ծ:"ծ",Կ:"կ",Հ:"հ",Ձ:"ձ",Ղ:"ղ",Ճ:"ճ",Մ:"մ",Յ:"յ",Ն:"ն",Շ:"շ",Ո:"ո",Չ:"չ",Պ:"պ",Ջ:"ջ",Ռ:"ռ",Ս:"ս",Վ:"վ",Տ:"տ",Ր:"ր",Ց:"ց",Ւ:"ւ",Փ:"փ",Ք:"ք",Օ:"օ",Ֆ:"ֆ",Ⴀ:"ⴀ",Ⴁ:"ⴁ",Ⴂ:"ⴂ",Ⴃ:"ⴃ",Ⴄ:"ⴄ",Ⴅ:"ⴅ",Ⴆ:"ⴆ",Ⴇ:"ⴇ",Ⴈ:"ⴈ",Ⴉ:"ⴉ",Ⴊ:"ⴊ",Ⴋ:"ⴋ",Ⴌ:"ⴌ",Ⴍ:"ⴍ",Ⴎ:"ⴎ",Ⴏ:"ⴏ",Ⴐ:"ⴐ",Ⴑ:"ⴑ",Ⴒ:"ⴒ",Ⴓ:"ⴓ",Ⴔ:"ⴔ",Ⴕ:"ⴕ",Ⴖ:"ⴖ",Ⴗ:"ⴗ",Ⴘ:"ⴘ",Ⴙ:"ⴙ",Ⴚ:"ⴚ",Ⴛ:"ⴛ",Ⴜ:"ⴜ",Ⴝ:"ⴝ",Ⴞ:"ⴞ",Ⴟ:"ⴟ",Ⴠ:"ⴠ",Ⴡ:"ⴡ",Ⴢ:"ⴢ",Ⴣ:"ⴣ",Ⴤ:"ⴤ",Ⴥ:"ⴥ","Ⴧ":"ⴧ","Ⴭ":"ⴭ",Ḁ:"ḁ",Ḃ:"ḃ",Ḅ:"ḅ",Ḇ:"ḇ",Ḉ:"ḉ",Ḋ:"ḋ",Ḍ:"ḍ",Ḏ:"ḏ",Ḑ:"ḑ",Ḓ:"ḓ",Ḕ:"ḕ",Ḗ:"ḗ",Ḙ:"ḙ",Ḛ:"ḛ",Ḝ:"ḝ",Ḟ:"ḟ",Ḡ:"ḡ",Ḣ:"ḣ",Ḥ:"ḥ",Ḧ:"ḧ",Ḩ:"ḩ",Ḫ:"ḫ",Ḭ:"ḭ",Ḯ:"ḯ",Ḱ:"ḱ",Ḳ:"ḳ",Ḵ:"ḵ",Ḷ:"ḷ",Ḹ:"ḹ",Ḻ:"ḻ",Ḽ:"ḽ",Ḿ:"ḿ",Ṁ:"ṁ",Ṃ:"ṃ",Ṅ:"ṅ",Ṇ:"ṇ",Ṉ:"ṉ",Ṋ:"ṋ",Ṍ:"ṍ",Ṏ:"ṏ",Ṑ:"ṑ",Ṓ:"ṓ",Ṕ:"ṕ",Ṗ:"ṗ",Ṙ:"ṙ",Ṛ:"ṛ",Ṝ:"ṝ",Ṟ:"ṟ",Ṡ:"ṡ",Ṣ:"ṣ",Ṥ:"ṥ",Ṧ:"ṧ",Ṩ:"ṩ",Ṫ:"ṫ",Ṭ:"ṭ",Ṯ:"ṯ",Ṱ:"ṱ",Ṳ:"ṳ",Ṵ:"ṵ",Ṷ:"ṷ",Ṹ:"ṹ",Ṻ:"ṻ",Ṽ:"ṽ",Ṿ:"ṿ",Ẁ:"ẁ",Ẃ:"ẃ",Ẅ:"ẅ",Ẇ:"ẇ",Ẉ:"ẉ",Ẋ:"ẋ",Ẍ:"ẍ",Ẏ:"ẏ",Ẑ:"ẑ",Ẓ:"ẓ",Ẕ:"ẕ",ẛ:"ṡ",Ạ:"ạ",Ả:"ả",Ấ:"ấ",Ầ:"ầ",Ẩ:"ẩ",Ẫ:"ẫ",Ậ:"ậ",Ắ:"ắ",Ằ:"ằ",Ẳ:"ẳ",Ẵ:"ẵ",Ặ:"ặ",Ẹ:"ẹ",Ẻ:"ẻ",Ẽ:"ẽ",Ế:"ế",Ề:"ề",Ể:"ể",Ễ:"ễ",Ệ:"ệ",Ỉ:"ỉ",Ị:"ị",Ọ:"ọ",Ỏ:"ỏ",Ố:"ố",Ồ:"ồ",Ổ:"ổ",Ỗ:"ỗ",Ộ:"ộ",Ớ:"ớ",Ờ:"ờ",Ở:"ở",Ỡ:"ỡ",Ợ:"ợ",Ụ:"ụ",Ủ:"ủ",Ứ:"ứ",Ừ:"ừ",Ử:"ử",Ữ:"ữ",Ự:"ự",Ỳ:"ỳ",Ỵ:"ỵ",Ỷ:"ỷ",Ỹ:"ỹ","Ỻ":"ỻ","Ỽ":"ỽ","Ỿ":"ỿ",Ἀ:"ἀ",Ἁ:"ἁ",Ἂ:"ἂ",Ἃ:"ἃ",Ἄ:"ἄ",Ἅ:"ἅ",Ἆ:"ἆ",Ἇ:"ἇ",Ἐ:"ἐ",Ἑ:"ἑ",Ἒ:"ἒ",Ἓ:"ἓ",Ἔ:"ἔ",Ἕ:"ἕ",Ἠ:"ἠ",Ἡ:"ἡ",Ἢ:"ἢ",Ἣ:"ἣ",Ἤ:"ἤ",Ἥ:"ἥ",Ἦ:"ἦ",Ἧ:"ἧ",Ἰ:"ἰ",Ἱ:"ἱ",Ἲ:"ἲ",Ἳ:"ἳ",Ἴ:"ἴ",Ἵ:"ἵ",Ἶ:"ἶ",Ἷ:"ἷ",Ὀ:"ὀ",Ὁ:"ὁ",Ὂ:"ὂ",Ὃ:"ὃ",Ὄ:"ὄ",Ὅ:"ὅ",Ὑ:"ὑ",Ὓ:"ὓ",Ὕ:"ὕ",Ὗ:"ὗ",Ὠ:"ὠ",Ὡ:"ὡ",Ὢ:"ὢ",Ὣ:"ὣ",Ὤ:"ὤ",Ὥ:"ὥ",Ὦ:"ὦ",Ὧ:"ὧ",Ᾰ:"ᾰ",Ᾱ:"ᾱ",Ὰ:"ὰ",Ά:"ά",ι:"ι",Ὲ:"ὲ",Έ:"έ",Ὴ:"ὴ",Ή:"ή",Ῐ:"ῐ",Ῑ:"ῑ",Ὶ:"ὶ",Ί:"ί",Ῠ:"ῠ",Ῡ:"ῡ",Ὺ:"ὺ",Ύ:"ύ",Ῥ:"ῥ",Ὸ:"ὸ",Ό:"ό",Ὼ:"ὼ",Ώ:"ώ",Ω:"ω",K:"k",Å:"å","Ⅎ":"ⅎ","Ⅰ":"ⅰ","Ⅱ":"ⅱ","Ⅲ":"ⅲ","Ⅳ":"ⅳ","Ⅴ":"ⅴ","Ⅵ":"ⅵ","Ⅶ":"ⅶ","Ⅷ":"ⅷ","Ⅸ":"ⅸ","Ⅹ":"ⅹ","Ⅺ":"ⅺ","Ⅻ":"ⅻ","Ⅼ":"ⅼ","Ⅽ":"ⅽ","Ⅾ":"ⅾ","Ⅿ":"ⅿ","Ↄ":"ↄ","Ⓐ":"ⓐ","Ⓑ":"ⓑ","Ⓒ":"ⓒ","Ⓓ":"ⓓ","Ⓔ":"ⓔ","Ⓕ":"ⓕ","Ⓖ":"ⓖ","Ⓗ":"ⓗ","Ⓘ":"ⓘ","Ⓙ":"ⓙ","Ⓚ":"ⓚ","Ⓛ":"ⓛ","Ⓜ":"ⓜ","Ⓝ":"ⓝ","Ⓞ":"ⓞ","Ⓟ":"ⓟ","Ⓠ":"ⓠ","Ⓡ":"ⓡ","Ⓢ":"ⓢ","Ⓣ":"ⓣ","Ⓤ":"ⓤ","Ⓥ":"ⓥ","Ⓦ":"ⓦ","Ⓧ":"ⓧ","Ⓨ":"ⓨ","Ⓩ":"ⓩ","Ⰰ":"ⰰ","Ⰱ":"ⰱ","Ⰲ":"ⰲ","Ⰳ":"ⰳ","Ⰴ":"ⰴ","Ⰵ":"ⰵ","Ⰶ":"ⰶ","Ⰷ":"ⰷ","Ⰸ":"ⰸ","Ⰹ":"ⰹ","Ⰺ":"ⰺ","Ⰻ":"ⰻ","Ⰼ":"ⰼ","Ⰽ":"ⰽ","Ⰾ":"ⰾ","Ⰿ":"ⰿ","Ⱀ":"ⱀ","Ⱁ":"ⱁ","Ⱂ":"ⱂ","Ⱃ":"ⱃ","Ⱄ":"ⱄ","Ⱅ":"ⱅ","Ⱆ":"ⱆ","Ⱇ":"ⱇ","Ⱈ":"ⱈ","Ⱉ":"ⱉ","Ⱊ":"ⱊ","Ⱋ":"ⱋ","Ⱌ":"ⱌ","Ⱍ":"ⱍ","Ⱎ":"ⱎ","Ⱏ":"ⱏ","Ⱐ":"ⱐ","Ⱑ":"ⱑ","Ⱒ":"ⱒ","Ⱓ":"ⱓ","Ⱔ":"ⱔ","Ⱕ":"ⱕ","Ⱖ":"ⱖ","Ⱗ":"ⱗ","Ⱘ":"ⱘ","Ⱙ":"ⱙ","Ⱚ":"ⱚ","Ⱛ":"ⱛ","Ⱜ":"ⱜ","Ⱝ":"ⱝ","Ⱞ":"ⱞ","Ⱡ":"ⱡ","Ɫ":"ɫ","Ᵽ":"ᵽ","Ɽ":"ɽ","Ⱨ":"ⱨ","Ⱪ":"ⱪ","Ⱬ":"ⱬ","Ɑ":"ɑ","Ɱ":"ɱ","Ɐ":"ɐ","Ɒ":"ɒ","Ⱳ":"ⱳ","Ⱶ":"ⱶ","Ȿ":"ȿ","Ɀ":"ɀ","Ⲁ":"ⲁ","Ⲃ":"ⲃ","Ⲅ":"ⲅ","Ⲇ":"ⲇ","Ⲉ":"ⲉ","Ⲋ":"ⲋ","Ⲍ":"ⲍ","Ⲏ":"ⲏ","Ⲑ":"ⲑ","Ⲓ":"ⲓ","Ⲕ":"ⲕ","Ⲗ":"ⲗ","Ⲙ":"ⲙ","Ⲛ":"ⲛ","Ⲝ":"ⲝ","Ⲟ":"ⲟ","Ⲡ":"ⲡ","Ⲣ":"ⲣ","Ⲥ":"ⲥ","Ⲧ":"ⲧ","Ⲩ":"ⲩ","Ⲫ":"ⲫ","Ⲭ":"ⲭ","Ⲯ":"ⲯ","Ⲱ":"ⲱ","Ⲳ":"ⲳ","Ⲵ":"ⲵ","Ⲷ":"ⲷ","Ⲹ":"ⲹ","Ⲻ":"ⲻ","Ⲽ":"ⲽ","Ⲿ":"ⲿ","Ⳁ":"ⳁ","Ⳃ":"ⳃ","Ⳅ":"ⳅ","Ⳇ":"ⳇ","Ⳉ":"ⳉ","Ⳋ":"ⳋ","Ⳍ":"ⳍ","Ⳏ":"ⳏ","Ⳑ":"ⳑ","Ⳓ":"ⳓ","Ⳕ":"ⳕ","Ⳗ":"ⳗ","Ⳙ":"ⳙ","Ⳛ":"ⳛ","Ⳝ":"ⳝ","Ⳟ":"ⳟ","Ⳡ":"ⳡ","Ⳣ":"ⳣ","Ⳬ":"ⳬ","Ⳮ":"ⳮ","Ⳳ":"ⳳ","Ꙁ":"ꙁ","Ꙃ":"ꙃ","Ꙅ":"ꙅ","Ꙇ":"ꙇ","Ꙉ":"ꙉ","Ꙋ":"ꙋ","Ꙍ":"ꙍ","Ꙏ":"ꙏ","Ꙑ":"ꙑ","Ꙓ":"ꙓ","Ꙕ":"ꙕ","Ꙗ":"ꙗ","Ꙙ":"ꙙ","Ꙛ":"ꙛ","Ꙝ":"ꙝ","Ꙟ":"ꙟ","Ꙡ":"ꙡ","Ꙣ":"ꙣ","Ꙥ":"ꙥ","Ꙧ":"ꙧ","Ꙩ":"ꙩ","Ꙫ":"ꙫ","Ꙭ":"ꙭ","Ꚁ":"ꚁ","Ꚃ":"ꚃ","Ꚅ":"ꚅ","Ꚇ":"ꚇ","Ꚉ":"ꚉ","Ꚋ":"ꚋ","Ꚍ":"ꚍ","Ꚏ":"ꚏ","Ꚑ":"ꚑ","Ꚓ":"ꚓ","Ꚕ":"ꚕ","Ꚗ":"ꚗ","Ꚙ":"ꚙ","Ꚛ":"ꚛ","Ꜣ":"ꜣ","Ꜥ":"ꜥ","Ꜧ":"ꜧ","Ꜩ":"ꜩ","Ꜫ":"ꜫ","Ꜭ":"ꜭ","Ꜯ":"ꜯ","Ꜳ":"ꜳ","Ꜵ":"ꜵ","Ꜷ":"ꜷ","Ꜹ":"ꜹ","Ꜻ":"ꜻ","Ꜽ":"ꜽ","Ꜿ":"ꜿ","Ꝁ":"ꝁ","Ꝃ":"ꝃ","Ꝅ":"ꝅ","Ꝇ":"ꝇ","Ꝉ":"ꝉ","Ꝋ":"ꝋ","Ꝍ":"ꝍ","Ꝏ":"ꝏ","Ꝑ":"ꝑ","Ꝓ":"ꝓ","Ꝕ":"ꝕ","Ꝗ":"ꝗ","Ꝙ":"ꝙ","Ꝛ":"ꝛ","Ꝝ":"ꝝ","Ꝟ":"ꝟ","Ꝡ":"ꝡ","Ꝣ":"ꝣ","Ꝥ":"ꝥ","Ꝧ":"ꝧ","Ꝩ":"ꝩ","Ꝫ":"ꝫ","Ꝭ":"ꝭ","Ꝯ":"ꝯ","Ꝺ":"ꝺ","Ꝼ":"ꝼ","Ᵹ":"ᵹ","Ꝿ":"ꝿ","Ꞁ":"ꞁ","Ꞃ":"ꞃ","Ꞅ":"ꞅ","Ꞇ":"ꞇ","Ꞌ":"ꞌ","Ɥ":"ɥ","Ꞑ":"ꞑ","Ꞓ":"ꞓ","Ꞗ":"ꞗ","Ꞙ":"ꞙ","Ꞛ":"ꞛ","Ꞝ":"ꞝ","Ꞟ":"ꞟ","Ꞡ":"ꞡ","Ꞣ":"ꞣ","Ꞥ":"ꞥ","Ꞧ":"ꞧ","Ꞩ":"ꞩ","Ɦ":"ɦ","Ɜ":"ɜ","Ɡ":"ɡ","Ɬ":"ɬ","Ʞ":"ʞ","Ʇ":"ʇ",A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","𐐀":"𐐨","𐐁":"𐐩","𐐂":"𐐪","𐐃":"𐐫","𐐄":"𐐬","𐐅":"𐐭","𐐆":"𐐮","𐐇":"𐐯","𐐈":"𐐰","𐐉":"𐐱","𐐊":"𐐲","𐐋":"𐐳","𐐌":"𐐴","𐐍":"𐐵","𐐎":"𐐶","𐐏":"𐐷","𐐐":"𐐸","𐐑":"𐐹","𐐒":"𐐺","𐐓":"𐐻","𐐔":"𐐼","𐐕":"𐐽","𐐖":"𐐾","𐐗":"𐐿","𐐘":"𐑀","𐐙":"𐑁","𐐚":"𐑂","𐐛":"𐑃","𐐜":"𐑄","𐐝":"𐑅","𐐞":"𐑆","𐐟":"𐑇","𐐠":"𐑈","𐐡":"𐑉","𐐢":"𐑊","𐐣":"𐑋","𐐤":"𐑌","𐐥":"𐑍","𐐦":"𐑎","𐐧":"𐑏","𑢠":"𑣀","𑢡":"𑣁","𑢢":"𑣂","𑢣":"𑣃","𑢤":"𑣄","𑢥":"𑣅","𑢦":"𑣆","𑢧":"𑣇","𑢨":"𑣈","𑢩":"𑣉","𑢪":"𑣊","𑢫":"𑣋","𑢬":"𑣌","𑢭":"𑣍","𑢮":"𑣎","𑢯":"𑣏","𑢰":"𑣐","𑢱":"𑣑","𑢲":"𑣒","𑢳":"𑣓","𑢴":"𑣔","𑢵":"𑣕","𑢶":"𑣖","𑢷":"𑣗","𑢸":"𑣘","𑢹":"𑣙","𑢺":"𑣚","𑢻":"𑣛","𑢼":"𑣜","𑢽":"𑣝","𑢾":"𑣞","𑢿":"𑣟",ß:"ss",İ:"i̇",ʼn:"ʼn",ǰ:"ǰ",ΐ:"ΐ",ΰ:"ΰ",և:"եւ",ẖ:"ẖ",ẗ:"ẗ",ẘ:"ẘ",ẙ:"ẙ",ẚ:"aʾ","ẞ":"ss",ὐ:"ὐ",ὒ:"ὒ",ὔ:"ὔ",ὖ:"ὖ",ᾀ:"ἀι",ᾁ:"ἁι",ᾂ:"ἂι",ᾃ:"ἃι",ᾄ:"ἄι",ᾅ:"ἅι",ᾆ:"ἆι",ᾇ:"ἇι",ᾈ:"ἀι",ᾉ:"ἁι",ᾊ:"ἂι",ᾋ:"ἃι",ᾌ:"ἄι",ᾍ:"ἅι",ᾎ:"ἆι",ᾏ:"ἇι",ᾐ:"ἠι",ᾑ:"ἡι",ᾒ:"ἢι",ᾓ:"ἣι",ᾔ:"ἤι",ᾕ:"ἥι",ᾖ:"ἦι",ᾗ:"ἧι",ᾘ:"ἠι",ᾙ:"ἡι",ᾚ:"ἢι",ᾛ:"ἣι",ᾜ:"ἤι",ᾝ:"ἥι",ᾞ:"ἦι",ᾟ:"ἧι",ᾠ:"ὠι",ᾡ:"ὡι",ᾢ:"ὢι",ᾣ:"ὣι",ᾤ:"ὤι",ᾥ:"ὥι",ᾦ:"ὦι",ᾧ:"ὧι",ᾨ:"ὠι",ᾩ:"ὡι",ᾪ:"ὢι",ᾫ:"ὣι",ᾬ:"ὤι",ᾭ:"ὥι",ᾮ:"ὦι",ᾯ:"ὧι",ᾲ:"ὰι",ᾳ:"αι",ᾴ:"άι",ᾶ:"ᾶ",ᾷ:"ᾶι",ᾼ:"αι",ῂ:"ὴι",ῃ:"ηι",ῄ:"ήι",ῆ:"ῆ",ῇ:"ῆι",ῌ:"ηι",ῒ:"ῒ",ΐ:"ΐ",ῖ:"ῖ",ῗ:"ῗ",ῢ:"ῢ",ΰ:"ΰ",ῤ:"ῤ",ῦ:"ῦ",ῧ:"ῧ",ῲ:"ὼι",ῳ:"ωι",ῴ:"ώι",ῶ:"ῶ",ῷ:"ῶι",ῼ:"ωι",ff:"ff",fi:"fi",fl:"fl",ffi:"ffi",ffl:"ffl",ſt:"st",st:"st",ﬓ:"մն",ﬔ:"մե",ﬕ:"մի",ﬖ:"վն",ﬗ:"մխ"},entityReferences=[{key:[65,69,108,105,103,59],value:"Æ"},{key:[65,77,80,59],value:"&"},{key:[65,97,99,117,116,101,59],value:"Á"},{key:[65,98,114,101,118,101,59],value:"Ă"},{key:[65,99,105,114,99,59],value:"Â"},{key:[65,99,121,59],value:"А"},{key:[65,102,114,59],value:"𝔄"},{key:[65,103,114,97,118,101,59],value:"À"},{key:[65,108,112,104,97,59],value:"Α"},{key:[65,109,97,99,114,59],value:"Ā"},{key:[65,110,100,59],value:"⩓"},{key:[65,111,103,111,110,59],value:"Ą"},{key:[65,111,112,102,59],value:"𝔸"},{key:[65,112,112,108,121,70,117,110,99,116,105,111,110,59],value:"⁡"},{key:[65,114,105,110,103,59],value:"Å"},{key:[65,115,99,114,59],value:"𝒜"},{key:[65,115,115,105,103,110,59],value:"≔"},{key:[65,116,105,108,100,101,59],value:"Ã"},{key:[65,117,109,108,59],value:"Ä"},{key:[66,97,99,107,115,108,97,115,104,59],value:"∖"},{key:[66,97,114,118,59],value:"⫧"},{key:[66,97,114,119,101,100,59],value:"⌆"},{key:[66,99,121,59],value:"Б"},{key:[66,101,99,97,117,115,101,59],value:"∵"},{key:[66,101,114,110,111,117,108,108,105,115,59],value:"ℬ"},{key:[66,101,116,97,59],value:"Β"},{key:[66,102,114,59],value:"𝔅"},{key:[66,111,112,102,59],value:"𝔹"},{key:[66,114,101,118,101,59],value:"˘"},{key:[66,115,99,114,59],value:"ℬ"},{key:[66,117,109,112,101,113,59],value:"≎"},{key:[67,72,99,121,59],value:"Ч"},{key:[67,79,80,89,59],value:"©"},{key:[67,97,99,117,116,101,59],value:"Ć"},{key:[67,97,112,59],value:"⋒"},{key:[67,97,112,105,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅅ"},{key:[67,97,121,108,101,121,115,59],value:"ℭ"},{key:[67,99,97,114,111,110,59],value:"Č"},{key:[67,99,101,100,105,108,59],value:"Ç"},{key:[67,99,105,114,99,59],value:"Ĉ"},{key:[67,99,111,110,105,110,116,59],value:"∰"},{key:[67,100,111,116,59],value:"Ċ"},{key:[67,101,100,105,108,108,97,59],value:"¸"},{key:[67,101,110,116,101,114,68,111,116,59],value:"·"},{key:[67,102,114,59],value:"ℭ"},{key:[67,104,105,59],value:"Χ"},{key:[67,105,114,99,108,101,68,111,116,59],value:"⊙"},{key:[67,105,114,99,108,101,77,105,110,117,115,59],value:"⊖"},{key:[67,105,114,99,108,101,80,108,117,115,59],value:"⊕"},{key:[67,105,114,99,108,101,84,105,109,101,115,59],value:"⊗"},{key:[67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∲"},{key:[67,108,111,115,101,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"”"},{key:[67,108,111,115,101,67,117,114,108,121,81,117,111,116,101,59],value:"’"},{key:[67,111,108,111,110,59],value:"∷"},{key:[67,111,108,111,110,101,59],value:"⩴"},{key:[67,111,110,103,114,117,101,110,116,59],value:"≡"},{key:[67,111,110,105,110,116,59],value:"∯"},{key:[67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∮"},{key:[67,111,112,102,59],value:"ℂ"},{key:[67,111,112,114,111,100,117,99,116,59],value:"∐"},{key:[67,111,117,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∳"},{key:[67,114,111,115,115,59],value:"⨯"},{key:[67,115,99,114,59],value:"𝒞"},{key:[67,117,112,59],value:"⋓"},{key:[67,117,112,67,97,112,59],value:"≍"},{key:[68,68,59],value:"ⅅ"},{key:[68,68,111,116,114,97,104,100,59],value:"⤑"},{key:[68,74,99,121,59],value:"Ђ"},{key:[68,83,99,121,59],value:"Ѕ"},{key:[68,90,99,121,59],value:"Џ"},{key:[68,97,103,103,101,114,59],value:"‡"},{key:[68,97,114,114,59],value:"↡"},{key:[68,97,115,104,118,59],value:"⫤"},{key:[68,99,97,114,111,110,59],value:"Ď"},{key:[68,99,121,59],value:"Д"},{key:[68,101,108,59],value:"∇"},{key:[68,101,108,116,97,59],value:"Δ"},{key:[68,102,114,59],value:"𝔇"},{key:[68,105,97,99,114,105,116,105,99,97,108,65,99,117,116,101,59],value:"´"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,116,59],value:"˙"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,117,98,108,101,65,99,117,116,101,59],value:"˝"},{key:[68,105,97,99,114,105,116,105,99,97,108,71,114,97,118,101,59],value:"`"},{key:[68,105,97,99,114,105,116,105,99,97,108,84,105,108,100,101,59],value:"˜"},{key:[68,105,97,109,111,110,100,59],value:"⋄"},{key:[68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅆ"},{key:[68,111,112,102,59],value:"𝔻"},{key:[68,111,116,59],value:"¨"},{key:[68,111,116,68,111,116,59],value:"⃜"},{key:[68,111,116,69,113,117,97,108,59],value:"≐"},{key:[68,111,117,98,108,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∯"},{key:[68,111,117,98,108,101,68,111,116,59],value:"¨"},{key:[68,111,117,98,108,101,68,111,119,110,65,114,114,111,119,59],value:"⇓"},{key:[68,111,117,98,108,101,76,101,102,116,65,114,114,111,119,59],value:"⇐"},{key:[68,111,117,98,108,101,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⇔"},{key:[68,111,117,98,108,101,76,101,102,116,84,101,101,59],value:"⫤"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟸"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟺"},{key:[68,111,117,98,108,101,76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟹"},{key:[68,111,117,98,108,101,82,105,103,104,116,65,114,114,111,119,59],value:"⇒"},{key:[68,111,117,98,108,101,82,105,103,104,116,84,101,101,59],value:"⊨"},{key:[68,111,117,98,108,101,85,112,65,114,114,111,119,59],value:"⇑"},{key:[68,111,117,98,108,101,85,112,68,111,119,110,65,114,114,111,119,59],value:"⇕"},{key:[68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∥"},{key:[68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[68,111,119,110,65,114,114,111,119,66,97,114,59],value:"⤓"},{key:[68,111,119,110,65,114,114,111,119,85,112,65,114,114,111,119,59],value:"⇵"},{key:[68,111,119,110,66,114,101,118,101,59],value:"̑"},{key:[68,111,119,110,76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥐"},{key:[68,111,119,110,76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥞"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,59],value:"↽"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥖"},{key:[68,111,119,110,82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥟"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,59],value:"⇁"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥗"},{key:[68,111,119,110,84,101,101,59],value:"⊤"},{key:[68,111,119,110,84,101,101,65,114,114,111,119,59],value:"↧"},{key:[68,111,119,110,97,114,114,111,119,59],value:"⇓"},{key:[68,115,99,114,59],value:"𝒟"},{key:[68,115,116,114,111,107,59],value:"Đ"},{key:[69,78,71,59],value:"Ŋ"},{key:[69,84,72,59],value:"Ð"},{key:[69,97,99,117,116,101,59],value:"É"},{key:[69,99,97,114,111,110,59],value:"Ě"},{key:[69,99,105,114,99,59],value:"Ê"},{key:[69,99,121,59],value:"Э"},{key:[69,100,111,116,59],value:"Ė"},{key:[69,102,114,59],value:"𝔈"},{key:[69,103,114,97,118,101,59],value:"È"},{key:[69,108,101,109,101,110,116,59],value:"∈"},{key:[69,109,97,99,114,59],value:"Ē"},{key:[69,109,112,116,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"◻"},{key:[69,109,112,116,121,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▫"},{key:[69,111,103,111,110,59],value:"Ę"},{key:[69,111,112,102,59],value:"𝔼"},{key:[69,112,115,105,108,111,110,59],value:"Ε"},{key:[69,113,117,97,108,59],value:"⩵"},{key:[69,113,117,97,108,84,105,108,100,101,59],value:"≂"},{key:[69,113,117,105,108,105,98,114,105,117,109,59],value:"⇌"},{key:[69,115,99,114,59],value:"ℰ"},{key:[69,115,105,109,59],value:"⩳"},{key:[69,116,97,59],value:"Η"},{key:[69,117,109,108,59],value:"Ë"},{key:[69,120,105,115,116,115,59],value:"∃"},{key:[69,120,112,111,110,101,110,116,105,97,108,69,59],value:"ⅇ"},{key:[70,99,121,59],value:"Ф"},{key:[70,102,114,59],value:"𝔉"},{key:[70,105,108,108,101,100,83,109,97,108,108,83,113,117,97,114,101,59],value:"◼"},{key:[70,105,108,108,101,100,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▪"},{key:[70,111,112,102,59],value:"𝔽"},{key:[70,111,114,65,108,108,59],value:"∀"},{key:[70,111,117,114,105,101,114,116,114,102,59],value:"ℱ"},{key:[70,115,99,114,59],value:"ℱ"},{key:[71,74,99,121,59],value:"Ѓ"},{key:[71,84,59],value:">"},{key:[71,97,109,109,97,59],value:"Γ"},{key:[71,97,109,109,97,100,59],value:"Ϝ"},{key:[71,98,114,101,118,101,59],value:"Ğ"},{key:[71,99,101,100,105,108,59],value:"Ģ"},{key:[71,99,105,114,99,59],value:"Ĝ"},{key:[71,99,121,59],value:"Г"},{key:[71,100,111,116,59],value:"Ġ"},{key:[71,102,114,59],value:"𝔊"},{key:[71,103,59],value:"⋙"},{key:[71,111,112,102,59],value:"𝔾"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≥"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,76,101,115,115,59],value:"⋛"},{key:[71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧"},{key:[71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢"},{key:[71,114,101,97,116,101,114,76,101,115,115,59],value:"≷"},{key:[71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾"},{key:[71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≳"},{key:[71,115,99,114,59],value:"𝒢"},{key:[71,116,59],value:"≫"},{key:[72,65,82,68,99,121,59],value:"Ъ"},{key:[72,97,99,101,107,59],value:"ˇ"},{key:[72,97,116,59],value:"^"},{key:[72,99,105,114,99,59],value:"Ĥ"},{key:[72,102,114,59],value:"ℌ"},{key:[72,105,108,98,101,114,116,83,112,97,99,101,59],value:"ℋ"},{key:[72,111,112,102,59],value:"ℍ"},{key:[72,111,114,105,122,111,110,116,97,108,76,105,110,101,59],value:"─"},{key:[72,115,99,114,59],value:"ℋ"},{key:[72,115,116,114,111,107,59],value:"Ħ"},{key:[72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎"},{key:[72,117,109,112,69,113,117,97,108,59],value:"≏"},{key:[73,69,99,121,59],value:"Е"},{key:[73,74,108,105,103,59],value:"IJ"},{key:[73,79,99,121,59],value:"Ё"},{key:[73,97,99,117,116,101,59],value:"Í"},{key:[73,99,105,114,99,59],value:"Î"},{key:[73,99,121,59],value:"И"},{key:[73,100,111,116,59],value:"İ"},{key:[73,102,114,59],value:"ℑ"},{key:[73,103,114,97,118,101,59],value:"Ì"},{key:[73,109,59],value:"ℑ"},{key:[73,109,97,99,114,59],value:"Ī"},{key:[73,109,97,103,105,110,97,114,121,73,59],value:"ⅈ"},{key:[73,109,112,108,105,101,115,59],value:"⇒"},{key:[73,110,116,59],value:"∬"},{key:[73,110,116,101,103,114,97,108,59],value:"∫"},{key:[73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⋂"},{key:[73,110,118,105,115,105,98,108,101,67,111,109,109,97,59],value:"⁣"},{key:[73,110,118,105,115,105,98,108,101,84,105,109,101,115,59],value:"⁢"},{key:[73,111,103,111,110,59],value:"Į"},{key:[73,111,112,102,59],value:"𝕀"},{key:[73,111,116,97,59],value:"Ι"},{key:[73,115,99,114,59],value:"ℐ"},{key:[73,116,105,108,100,101,59],value:"Ĩ"},{key:[73,117,107,99,121,59],value:"І"},{key:[73,117,109,108,59],value:"Ï"},{key:[74,99,105,114,99,59],value:"Ĵ"},{key:[74,99,121,59],value:"Й"},{key:[74,102,114,59],value:"𝔍"},{key:[74,111,112,102,59],value:"𝕁"},{key:[74,115,99,114,59],value:"𝒥"},{key:[74,115,101,114,99,121,59],value:"Ј"},{key:[74,117,107,99,121,59],value:"Є"},{key:[75,72,99,121,59],value:"Х"},{key:[75,74,99,121,59],value:"Ќ"},{key:[75,97,112,112,97,59],value:"Κ"},{key:[75,99,101,100,105,108,59],value:"Ķ"},{key:[75,99,121,59],value:"К"},{key:[75,102,114,59],value:"𝔎"},{key:[75,111,112,102,59],value:"𝕂"},{key:[75,115,99,114,59],value:"𝒦"},{key:[76,74,99,121,59],value:"Љ"},{key:[76,84,59],value:"<"},{key:[76,97,99,117,116,101,59],value:"Ĺ"},{key:[76,97,109,98,100,97,59],value:"Λ"},{key:[76,97,110,103,59],value:"⟪"},{key:[76,97,112,108,97,99,101,116,114,102,59],value:"ℒ"},{key:[76,97,114,114,59],value:"↞"},{key:[76,99,97,114,111,110,59],value:"Ľ"},{key:[76,99,101,100,105,108,59],value:"Ļ"},{key:[76,99,121,59],value:"Л"},{key:[76,101,102,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟨"},{key:[76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[76,101,102,116,65,114,114,111,119,66,97,114,59],value:"⇤"},{key:[76,101,102,116,65,114,114,111,119,82,105,103,104,116,65,114,114,111,119,59],value:"⇆"},{key:[76,101,102,116,67,101,105,108,105,110,103,59],value:"⌈"},{key:[76,101,102,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟦"},{key:[76,101,102,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥡"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇃"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥙"},{key:[76,101,102,116,70,108,111,111,114,59],value:"⌊"},{key:[76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"↔"},{key:[76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥎"},{key:[76,101,102,116,84,101,101,59],value:"⊣"},{key:[76,101,102,116,84,101,101,65,114,114,111,119,59],value:"↤"},{key:[76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥚"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⊲"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊴"},{key:[76,101,102,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥑"},{key:[76,101,102,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥠"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,59],value:"↿"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥘"},{key:[76,101,102,116,86,101,99,116,111,114,59],value:"↼"},{key:[76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥒"},{key:[76,101,102,116,97,114,114,111,119,59],value:"⇐"},{key:[76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇔"},{key:[76,101,115,115,69,113,117,97,108,71,114,101,97,116,101,114,59],value:"⋚"},{key:[76,101,115,115,70,117,108,108,69,113,117,97,108,59],value:"≦"},{key:[76,101,115,115,71,114,101,97,116,101,114,59],value:"≶"},{key:[76,101,115,115,76,101,115,115,59],value:"⪡"},{key:[76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽"},{key:[76,101,115,115,84,105,108,100,101,59],value:"≲"},{key:[76,102,114,59],value:"𝔏"},{key:[76,108,59],value:"⋘"},{key:[76,108,101,102,116,97,114,114,111,119,59],value:"⇚"},{key:[76,109,105,100,111,116,59],value:"Ŀ"},{key:[76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟵"},{key:[76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟷"},{key:[76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟶"},{key:[76,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟸"},{key:[76,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟺"},{key:[76,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟹"},{key:[76,111,112,102,59],value:"𝕃"},{key:[76,111,119,101,114,76,101,102,116,65,114,114,111,119,59],value:"↙"},{key:[76,111,119,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↘"},{key:[76,115,99,114,59],value:"ℒ"},{key:[76,115,104,59],value:"↰"},{key:[76,115,116,114,111,107,59],value:"Ł"},{key:[76,116,59],value:"≪"},{key:[77,97,112,59],value:"⤅"},{key:[77,99,121,59],value:"М"},{key:[77,101,100,105,117,109,83,112,97,99,101,59],value:" "},{key:[77,101,108,108,105,110,116,114,102,59],value:"ℳ"},{key:[77,102,114,59],value:"𝔐"},{key:[77,105,110,117,115,80,108,117,115,59],value:"∓"},{key:[77,111,112,102,59],value:"𝕄"},{key:[77,115,99,114,59],value:"ℳ"},{key:[77,117,59],value:"Μ"},{key:[78,74,99,121,59],value:"Њ"},{key:[78,97,99,117,116,101,59],value:"Ń"},{key:[78,99,97,114,111,110,59],value:"Ň"},{key:[78,99,101,100,105,108,59],value:"Ņ"},{key:[78,99,121,59],value:"Н"},{key:[78,101,103,97,116,105,118,101,77,101,100,105,117,109,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,99,107,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫"},{key:[78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"≪"},{key:[78,101,119,76,105,110,101,59],value:` `},{key:[78,102,114,59],value:"𝔑"},{key:[78,111,66,114,101,97,107,59],value:"⁠"},{key:[78,111,110,66,114,101,97,107,105,110,103,83,112,97,99,101,59],value:" "},{key:[78,111,112,102,59],value:"ℕ"},{key:[78,111,116,59],value:"⫬"},{key:[78,111,116,67,111,110,103,114,117,101,110,116,59],value:"≢"},{key:[78,111,116,67,117,112,67,97,112,59],value:"≭"},{key:[78,111,116,68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∦"},{key:[78,111,116,69,108,101,109,101,110,116,59],value:"∉"},{key:[78,111,116,69,113,117,97,108,59],value:"≠"},{key:[78,111,116,69,113,117,97,108,84,105,108,100,101,59],value:"≂̸"},{key:[78,111,116,69,120,105,115,116,115,59],value:"∄"},{key:[78,111,116,71,114,101,97,116,101,114,59],value:"≯"},{key:[78,111,116,71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≱"},{key:[78,111,116,71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧̸"},{key:[78,111,116,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫̸"},{key:[78,111,116,71,114,101,97,116,101,114,76,101,115,115,59],value:"≹"},{key:[78,111,116,71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾̸"},{key:[78,111,116,71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≵"},{key:[78,111,116,72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎̸"},{key:[78,111,116,72,117,109,112,69,113,117,97,108,59],value:"≏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⋪"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋬"},{key:[78,111,116,76,101,115,115,59],value:"≮"},{key:[78,111,116,76,101,115,115,69,113,117,97,108,59],value:"≰"},{key:[78,111,116,76,101,115,115,71,114,101,97,116,101,114,59],value:"≸"},{key:[78,111,116,76,101,115,115,76,101,115,115,59],value:"≪̸"},{key:[78,111,116,76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽̸"},{key:[78,111,116,76,101,115,115,84,105,108,100,101,59],value:"≴"},{key:[78,111,116,78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢̸"},{key:[78,111,116,78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"⪡̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,59],value:"⊀"},{key:[78,111,116,80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋠"},{key:[78,111,116,82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∌"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⋫"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐̸"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋭"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⋢"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⋣"},{key:[78,111,116,83,117,98,115,101,116,59],value:"⊂⃒"},{key:[78,111,116,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊈"},{key:[78,111,116,83,117,99,99,101,101,100,115,59],value:"⊁"},{key:[78,111,116,83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰̸"},{key:[78,111,116,83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋡"},{key:[78,111,116,83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿̸"},{key:[78,111,116,83,117,112,101,114,115,101,116,59],value:"⊃⃒"},{key:[78,111,116,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊉"},{key:[78,111,116,84,105,108,100,101,59],value:"≁"},{key:[78,111,116,84,105,108,100,101,69,113,117,97,108,59],value:"≄"},{key:[78,111,116,84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≇"},{key:[78,111,116,84,105,108,100,101,84,105,108,100,101,59],value:"≉"},{key:[78,111,116,86,101,114,116,105,99,97,108,66,97,114,59],value:"∤"},{key:[78,115,99,114,59],value:"𝒩"},{key:[78,116,105,108,100,101,59],value:"Ñ"},{key:[78,117,59],value:"Ν"},{key:[79,69,108,105,103,59],value:"Œ"},{key:[79,97,99,117,116,101,59],value:"Ó"},{key:[79,99,105,114,99,59],value:"Ô"},{key:[79,99,121,59],value:"О"},{key:[79,100,98,108,97,99,59],value:"Ő"},{key:[79,102,114,59],value:"𝔒"},{key:[79,103,114,97,118,101,59],value:"Ò"},{key:[79,109,97,99,114,59],value:"Ō"},{key:[79,109,101,103,97,59],value:"Ω"},{key:[79,109,105,99,114,111,110,59],value:"Ο"},{key:[79,111,112,102,59],value:"𝕆"},{key:[79,112,101,110,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"“"},{key:[79,112,101,110,67,117,114,108,121,81,117,111,116,101,59],value:"‘"},{key:[79,114,59],value:"⩔"},{key:[79,115,99,114,59],value:"𝒪"},{key:[79,115,108,97,115,104,59],value:"Ø"},{key:[79,116,105,108,100,101,59],value:"Õ"},{key:[79,116,105,109,101,115,59],value:"⨷"},{key:[79,117,109,108,59],value:"Ö"},{key:[79,118,101,114,66,97,114,59],value:"‾"},{key:[79,118,101,114,66,114,97,99,101,59],value:"⏞"},{key:[79,118,101,114,66,114,97,99,107,101,116,59],value:"⎴"},{key:[79,118,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏜"},{key:[80,97,114,116,105,97,108,68,59],value:"∂"},{key:[80,99,121,59],value:"П"},{key:[80,102,114,59],value:"𝔓"},{key:[80,104,105,59],value:"Φ"},{key:[80,105,59],value:"Π"},{key:[80,108,117,115,77,105,110,117,115,59],value:"±"},{key:[80,111,105,110,99,97,114,101,112,108,97,110,101,59],value:"ℌ"},{key:[80,111,112,102,59],value:"ℙ"},{key:[80,114,59],value:"⪻"},{key:[80,114,101,99,101,100,101,115,59],value:"≺"},{key:[80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯"},{key:[80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"≼"},{key:[80,114,101,99,101,100,101,115,84,105,108,100,101,59],value:"≾"},{key:[80,114,105,109,101,59],value:"″"},{key:[80,114,111,100,117,99,116,59],value:"∏"},{key:[80,114,111,112,111,114,116,105,111,110,59],value:"∷"},{key:[80,114,111,112,111,114,116,105,111,110,97,108,59],value:"∝"},{key:[80,115,99,114,59],value:"𝒫"},{key:[80,115,105,59],value:"Ψ"},{key:[81,85,79,84,59],value:'"'},{key:[81,102,114,59],value:"𝔔"},{key:[81,111,112,102,59],value:"ℚ"},{key:[81,115,99,114,59],value:"𝒬"},{key:[82,66,97,114,114,59],value:"⤐"},{key:[82,69,71,59],value:"®"},{key:[82,97,99,117,116,101,59],value:"Ŕ"},{key:[82,97,110,103,59],value:"⟫"},{key:[82,97,114,114,59],value:"↠"},{key:[82,97,114,114,116,108,59],value:"⤖"},{key:[82,99,97,114,111,110,59],value:"Ř"},{key:[82,99,101,100,105,108,59],value:"Ŗ"},{key:[82,99,121,59],value:"Р"},{key:[82,101,59],value:"ℜ"},{key:[82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∋"},{key:[82,101,118,101,114,115,101,69,113,117,105,108,105,98,114,105,117,109,59],value:"⇋"},{key:[82,101,118,101,114,115,101,85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥯"},{key:[82,102,114,59],value:"ℜ"},{key:[82,104,111,59],value:"Ρ"},{key:[82,105,103,104,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟩"},{key:[82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[82,105,103,104,116,65,114,114,111,119,66,97,114,59],value:"⇥"},{key:[82,105,103,104,116,65,114,114,111,119,76,101,102,116,65,114,114,111,119,59],value:"⇄"},{key:[82,105,103,104,116,67,101,105,108,105,110,103,59],value:"⌉"},{key:[82,105,103,104,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟧"},{key:[82,105,103,104,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥝"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇂"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥕"},{key:[82,105,103,104,116,70,108,111,111,114,59],value:"⌋"},{key:[82,105,103,104,116,84,101,101,59],value:"⊢"},{key:[82,105,103,104,116,84,101,101,65,114,114,111,119,59],value:"↦"},{key:[82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥛"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⊳"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊵"},{key:[82,105,103,104,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥏"},{key:[82,105,103,104,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥜"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,59],value:"↾"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥔"},{key:[82,105,103,104,116,86,101,99,116,111,114,59],value:"⇀"},{key:[82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥓"},{key:[82,105,103,104,116,97,114,114,111,119,59],value:"⇒"},{key:[82,111,112,102,59],value:"ℝ"},{key:[82,111,117,110,100,73,109,112,108,105,101,115,59],value:"⥰"},{key:[82,114,105,103,104,116,97,114,114,111,119,59],value:"⇛"},{key:[82,115,99,114,59],value:"ℛ"},{key:[82,115,104,59],value:"↱"},{key:[82,117,108,101,68,101,108,97,121,101,100,59],value:"⧴"},{key:[83,72,67,72,99,121,59],value:"Щ"},{key:[83,72,99,121,59],value:"Ш"},{key:[83,79,70,84,99,121,59],value:"Ь"},{key:[83,97,99,117,116,101,59],value:"Ś"},{key:[83,99,59],value:"⪼"},{key:[83,99,97,114,111,110,59],value:"Š"},{key:[83,99,101,100,105,108,59],value:"Ş"},{key:[83,99,105,114,99,59],value:"Ŝ"},{key:[83,99,121,59],value:"С"},{key:[83,102,114,59],value:"𝔖"},{key:[83,104,111,114,116,68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[83,104,111,114,116,76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[83,104,111,114,116,82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[83,104,111,114,116,85,112,65,114,114,111,119,59],value:"↑"},{key:[83,105,103,109,97,59],value:"Σ"},{key:[83,109,97,108,108,67,105,114,99,108,101,59],value:"∘"},{key:[83,111,112,102,59],value:"𝕊"},{key:[83,113,114,116,59],value:"√"},{key:[83,113,117,97,114,101,59],value:"□"},{key:[83,113,117,97,114,101,73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⊓"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊑"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊒"},{key:[83,113,117,97,114,101,85,110,105,111,110,59],value:"⊔"},{key:[83,115,99,114,59],value:"𝒮"},{key:[83,116,97,114,59],value:"⋆"},{key:[83,117,98,59],value:"⋐"},{key:[83,117,98,115,101,116,59],value:"⋐"},{key:[83,117,98,115,101,116,69,113,117,97,108,59],value:"⊆"},{key:[83,117,99,99,101,101,100,115,59],value:"≻"},{key:[83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰"},{key:[83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"≽"},{key:[83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿"},{key:[83,117,99,104,84,104,97,116,59],value:"∋"},{key:[83,117,109,59],value:"∑"},{key:[83,117,112,59],value:"⋑"},{key:[83,117,112,101,114,115,101,116,59],value:"⊃"},{key:[83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊇"},{key:[83,117,112,115,101,116,59],value:"⋑"},{key:[84,72,79,82,78,59],value:"Þ"},{key:[84,82,65,68,69,59],value:"™"},{key:[84,83,72,99,121,59],value:"Ћ"},{key:[84,83,99,121,59],value:"Ц"},{key:[84,97,98,59],value:" "},{key:[84,97,117,59],value:"Τ"},{key:[84,99,97,114,111,110,59],value:"Ť"},{key:[84,99,101,100,105,108,59],value:"Ţ"},{key:[84,99,121,59],value:"Т"},{key:[84,102,114,59],value:"𝔗"},{key:[84,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[84,104,101,116,97,59],value:"Θ"},{key:[84,104,105,99,107,83,112,97,99,101,59],value:"  "},{key:[84,104,105,110,83,112,97,99,101,59],value:" "},{key:[84,105,108,100,101,59],value:"∼"},{key:[84,105,108,100,101,69,113,117,97,108,59],value:"≃"},{key:[84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≅"},{key:[84,105,108,100,101,84,105,108,100,101,59],value:"≈"},{key:[84,111,112,102,59],value:"𝕋"},{key:[84,114,105,112,108,101,68,111,116,59],value:"⃛"},{key:[84,115,99,114,59],value:"𝒯"},{key:[84,115,116,114,111,107,59],value:"Ŧ"},{key:[85,97,99,117,116,101,59],value:"Ú"},{key:[85,97,114,114,59],value:"↟"},{key:[85,97,114,114,111,99,105,114,59],value:"⥉"},{key:[85,98,114,99,121,59],value:"Ў"},{key:[85,98,114,101,118,101,59],value:"Ŭ"},{key:[85,99,105,114,99,59],value:"Û"},{key:[85,99,121,59],value:"У"},{key:[85,100,98,108,97,99,59],value:"Ű"},{key:[85,102,114,59],value:"𝔘"},{key:[85,103,114,97,118,101,59],value:"Ù"},{key:[85,109,97,99,114,59],value:"Ū"},{key:[85,110,100,101,114,66,97,114,59],value:"_"},{key:[85,110,100,101,114,66,114,97,99,101,59],value:"⏟"},{key:[85,110,100,101,114,66,114,97,99,107,101,116,59],value:"⎵"},{key:[85,110,100,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏝"},{key:[85,110,105,111,110,59],value:"⋃"},{key:[85,110,105,111,110,80,108,117,115,59],value:"⊎"},{key:[85,111,103,111,110,59],value:"Ų"},{key:[85,111,112,102,59],value:"𝕌"},{key:[85,112,65,114,114,111,119,59],value:"↑"},{key:[85,112,65,114,114,111,119,66,97,114,59],value:"⤒"},{key:[85,112,65,114,114,111,119,68,111,119,110,65,114,114,111,119,59],value:"⇅"},{key:[85,112,68,111,119,110,65,114,114,111,119,59],value:"↕"},{key:[85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥮"},{key:[85,112,84,101,101,59],value:"⊥"},{key:[85,112,84,101,101,65,114,114,111,119,59],value:"↥"},{key:[85,112,97,114,114,111,119,59],value:"⇑"},{key:[85,112,100,111,119,110,97,114,114,111,119,59],value:"⇕"},{key:[85,112,112,101,114,76,101,102,116,65,114,114,111,119,59],value:"↖"},{key:[85,112,112,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↗"},{key:[85,112,115,105,59],value:"ϒ"},{key:[85,112,115,105,108,111,110,59],value:"Υ"},{key:[85,114,105,110,103,59],value:"Ů"},{key:[85,115,99,114,59],value:"𝒰"},{key:[85,116,105,108,100,101,59],value:"Ũ"},{key:[85,117,109,108,59],value:"Ü"},{key:[86,68,97,115,104,59],value:"⊫"},{key:[86,98,97,114,59],value:"⫫"},{key:[86,99,121,59],value:"В"},{key:[86,100,97,115,104,59],value:"⊩"},{key:[86,100,97,115,104,108,59],value:"⫦"},{key:[86,101,101,59],value:"⋁"},{key:[86,101,114,98,97,114,59],value:"‖"},{key:[86,101,114,116,59],value:"‖"},{key:[86,101,114,116,105,99,97,108,66,97,114,59],value:"∣"},{key:[86,101,114,116,105,99,97,108,76,105,110,101,59],value:"|"},{key:[86,101,114,116,105,99,97,108,83,101,112,97,114,97,116,111,114,59],value:"❘"},{key:[86,101,114,116,105,99,97,108,84,105,108,100,101,59],value:"≀"},{key:[86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:" "},{key:[86,102,114,59],value:"𝔙"},{key:[86,111,112,102,59],value:"𝕍"},{key:[86,115,99,114,59],value:"𝒱"},{key:[86,118,100,97,115,104,59],value:"⊪"},{key:[87,99,105,114,99,59],value:"Ŵ"},{key:[87,101,100,103,101,59],value:"⋀"},{key:[87,102,114,59],value:"𝔚"},{key:[87,111,112,102,59],value:"𝕎"},{key:[87,115,99,114,59],value:"𝒲"},{key:[88,102,114,59],value:"𝔛"},{key:[88,105,59],value:"Ξ"},{key:[88,111,112,102,59],value:"𝕏"},{key:[88,115,99,114,59],value:"𝒳"},{key:[89,65,99,121,59],value:"Я"},{key:[89,73,99,121,59],value:"Ї"},{key:[89,85,99,121,59],value:"Ю"},{key:[89,97,99,117,116,101,59],value:"Ý"},{key:[89,99,105,114,99,59],value:"Ŷ"},{key:[89,99,121,59],value:"Ы"},{key:[89,102,114,59],value:"𝔜"},{key:[89,111,112,102,59],value:"𝕐"},{key:[89,115,99,114,59],value:"𝒴"},{key:[89,117,109,108,59],value:"Ÿ"},{key:[90,72,99,121,59],value:"Ж"},{key:[90,97,99,117,116,101,59],value:"Ź"},{key:[90,99,97,114,111,110,59],value:"Ž"},{key:[90,99,121,59],value:"З"},{key:[90,100,111,116,59],value:"Ż"},{key:[90,101,114,111,87,105,100,116,104,83,112,97,99,101,59],value:"​"},{key:[90,101,116,97,59],value:"Ζ"},{key:[90,102,114,59],value:"ℨ"},{key:[90,111,112,102,59],value:"ℤ"},{key:[90,115,99,114,59],value:"𝒵"},{key:[97,97,99,117,116,101,59],value:"á"},{key:[97,98,114,101,118,101,59],value:"ă"},{key:[97,99,59],value:"∾"},{key:[97,99,69,59],value:"∾̳"},{key:[97,99,100,59],value:"∿"},{key:[97,99,105,114,99,59],value:"â"},{key:[97,99,117,116,101,59],value:"´"},{key:[97,99,121,59],value:"а"},{key:[97,101,108,105,103,59],value:"æ"},{key:[97,102,59],value:"⁡"},{key:[97,102,114,59],value:"𝔞"},{key:[97,103,114,97,118,101,59],value:"à"},{key:[97,108,101,102,115,121,109,59],value:"ℵ"},{key:[97,108,101,112,104,59],value:"ℵ"},{key:[97,108,112,104,97,59],value:"α"},{key:[97,109,97,99,114,59],value:"ā"},{key:[97,109,97,108,103,59],value:"⨿"},{key:[97,109,112,59],value:"&"},{key:[97,110,100,59],value:"∧"},{key:[97,110,100,97,110,100,59],value:"⩕"},{key:[97,110,100,100,59],value:"⩜"},{key:[97,110,100,115,108,111,112,101,59],value:"⩘"},{key:[97,110,100,118,59],value:"⩚"},{key:[97,110,103,59],value:"∠"},{key:[97,110,103,101,59],value:"⦤"},{key:[97,110,103,108,101,59],value:"∠"},{key:[97,110,103,109,115,100,59],value:"∡"},{key:[97,110,103,109,115,100,97,97,59],value:"⦨"},{key:[97,110,103,109,115,100,97,98,59],value:"⦩"},{key:[97,110,103,109,115,100,97,99,59],value:"⦪"},{key:[97,110,103,109,115,100,97,100,59],value:"⦫"},{key:[97,110,103,109,115,100,97,101,59],value:"⦬"},{key:[97,110,103,109,115,100,97,102,59],value:"⦭"},{key:[97,110,103,109,115,100,97,103,59],value:"⦮"},{key:[97,110,103,109,115,100,97,104,59],value:"⦯"},{key:[97,110,103,114,116,59],value:"∟"},{key:[97,110,103,114,116,118,98,59],value:"⊾"},{key:[97,110,103,114,116,118,98,100,59],value:"⦝"},{key:[97,110,103,115,112,104,59],value:"∢"},{key:[97,110,103,115,116,59],value:"Å"},{key:[97,110,103,122,97,114,114,59],value:"⍼"},{key:[97,111,103,111,110,59],value:"ą"},{key:[97,111,112,102,59],value:"𝕒"},{key:[97,112,59],value:"≈"},{key:[97,112,69,59],value:"⩰"},{key:[97,112,97,99,105,114,59],value:"⩯"},{key:[97,112,101,59],value:"≊"},{key:[97,112,105,100,59],value:"≋"},{key:[97,112,111,115,59],value:"'"},{key:[97,112,112,114,111,120,59],value:"≈"},{key:[97,112,112,114,111,120,101,113,59],value:"≊"},{key:[97,114,105,110,103,59],value:"å"},{key:[97,115,99,114,59],value:"𝒶"},{key:[97,115,116,59],value:"*"},{key:[97,115,121,109,112,59],value:"≈"},{key:[97,115,121,109,112,101,113,59],value:"≍"},{key:[97,116,105,108,100,101,59],value:"ã"},{key:[97,117,109,108,59],value:"ä"},{key:[97,119,99,111,110,105,110,116,59],value:"∳"},{key:[97,119,105,110,116,59],value:"⨑"},{key:[98,78,111,116,59],value:"⫭"},{key:[98,97,99,107,99,111,110,103,59],value:"≌"},{key:[98,97,99,107,101,112,115,105,108,111,110,59],value:"϶"},{key:[98,97,99,107,112,114,105,109,101,59],value:"‵"},{key:[98,97,99,107,115,105,109,59],value:"∽"},{key:[98,97,99,107,115,105,109,101,113,59],value:"⋍"},{key:[98,97,114,118,101,101,59],value:"⊽"},{key:[98,97,114,119,101,100,59],value:"⌅"},{key:[98,97,114,119,101,100,103,101,59],value:"⌅"},{key:[98,98,114,107,59],value:"⎵"},{key:[98,98,114,107,116,98,114,107,59],value:"⎶"},{key:[98,99,111,110,103,59],value:"≌"},{key:[98,99,121,59],value:"б"},{key:[98,100,113,117,111,59],value:"„"},{key:[98,101,99,97,117,115,59],value:"∵"},{key:[98,101,99,97,117,115,101,59],value:"∵"},{key:[98,101,109,112,116,121,118,59],value:"⦰"},{key:[98,101,112,115,105,59],value:"϶"},{key:[98,101,114,110,111,117,59],value:"ℬ"},{key:[98,101,116,97,59],value:"β"},{key:[98,101,116,104,59],value:"ℶ"},{key:[98,101,116,119,101,101,110,59],value:"≬"},{key:[98,102,114,59],value:"𝔟"},{key:[98,105,103,99,97,112,59],value:"⋂"},{key:[98,105,103,99,105,114,99,59],value:"◯"},{key:[98,105,103,99,117,112,59],value:"⋃"},{key:[98,105,103,111,100,111,116,59],value:"⨀"},{key:[98,105,103,111,112,108,117,115,59],value:"⨁"},{key:[98,105,103,111,116,105,109,101,115,59],value:"⨂"},{key:[98,105,103,115,113,99,117,112,59],value:"⨆"},{key:[98,105,103,115,116,97,114,59],value:"★"},{key:[98,105,103,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▽"},{key:[98,105,103,116,114,105,97,110,103,108,101,117,112,59],value:"△"},{key:[98,105,103,117,112,108,117,115,59],value:"⨄"},{key:[98,105,103,118,101,101,59],value:"⋁"},{key:[98,105,103,119,101,100,103,101,59],value:"⋀"},{key:[98,107,97,114,111,119,59],value:"⤍"},{key:[98,108,97,99,107,108,111,122,101,110,103,101,59],value:"⧫"},{key:[98,108,97,99,107,115,113,117,97,114,101,59],value:"▪"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,59],value:"▴"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▾"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◂"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▸"},{key:[98,108,97,110,107,59],value:"␣"},{key:[98,108,107,49,50,59],value:"▒"},{key:[98,108,107,49,52,59],value:"░"},{key:[98,108,107,51,52,59],value:"▓"},{key:[98,108,111,99,107,59],value:"█"},{key:[98,110,101,59],value:"=⃥"},{key:[98,110,101,113,117,105,118,59],value:"≡⃥"},{key:[98,110,111,116,59],value:"⌐"},{key:[98,111,112,102,59],value:"𝕓"},{key:[98,111,116,59],value:"⊥"},{key:[98,111,116,116,111,109,59],value:"⊥"},{key:[98,111,119,116,105,101,59],value:"⋈"},{key:[98,111,120,68,76,59],value:"╗"},{key:[98,111,120,68,82,59],value:"╔"},{key:[98,111,120,68,108,59],value:"╖"},{key:[98,111,120,68,114,59],value:"╓"},{key:[98,111,120,72,59],value:"═"},{key:[98,111,120,72,68,59],value:"╦"},{key:[98,111,120,72,85,59],value:"╩"},{key:[98,111,120,72,100,59],value:"╤"},{key:[98,111,120,72,117,59],value:"╧"},{key:[98,111,120,85,76,59],value:"╝"},{key:[98,111,120,85,82,59],value:"╚"},{key:[98,111,120,85,108,59],value:"╜"},{key:[98,111,120,85,114,59],value:"╙"},{key:[98,111,120,86,59],value:"║"},{key:[98,111,120,86,72,59],value:"╬"},{key:[98,111,120,86,76,59],value:"╣"},{key:[98,111,120,86,82,59],value:"╠"},{key:[98,111,120,86,104,59],value:"╫"},{key:[98,111,120,86,108,59],value:"╢"},{key:[98,111,120,86,114,59],value:"╟"},{key:[98,111,120,98,111,120,59],value:"⧉"},{key:[98,111,120,100,76,59],value:"╕"},{key:[98,111,120,100,82,59],value:"╒"},{key:[98,111,120,100,108,59],value:"┐"},{key:[98,111,120,100,114,59],value:"┌"},{key:[98,111,120,104,59],value:"─"},{key:[98,111,120,104,68,59],value:"╥"},{key:[98,111,120,104,85,59],value:"╨"},{key:[98,111,120,104,100,59],value:"┬"},{key:[98,111,120,104,117,59],value:"┴"},{key:[98,111,120,109,105,110,117,115,59],value:"⊟"},{key:[98,111,120,112,108,117,115,59],value:"⊞"},{key:[98,111,120,116,105,109,101,115,59],value:"⊠"},{key:[98,111,120,117,76,59],value:"╛"},{key:[98,111,120,117,82,59],value:"╘"},{key:[98,111,120,117,108,59],value:"┘"},{key:[98,111,120,117,114,59],value:"└"},{key:[98,111,120,118,59],value:"│"},{key:[98,111,120,118,72,59],value:"╪"},{key:[98,111,120,118,76,59],value:"╡"},{key:[98,111,120,118,82,59],value:"╞"},{key:[98,111,120,118,104,59],value:"┼"},{key:[98,111,120,118,108,59],value:"┤"},{key:[98,111,120,118,114,59],value:"├"},{key:[98,112,114,105,109,101,59],value:"‵"},{key:[98,114,101,118,101,59],value:"˘"},{key:[98,114,118,98,97,114,59],value:"¦"},{key:[98,115,99,114,59],value:"𝒷"},{key:[98,115,101,109,105,59],value:"⁏"},{key:[98,115,105,109,59],value:"∽"},{key:[98,115,105,109,101,59],value:"⋍"},{key:[98,115,111,108,59],value:"\\"},{key:[98,115,111,108,98,59],value:"⧅"},{key:[98,115,111,108,104,115,117,98,59],value:"⟈"},{key:[98,117,108,108,59],value:"•"},{key:[98,117,108,108,101,116,59],value:"•"},{key:[98,117,109,112,59],value:"≎"},{key:[98,117,109,112,69,59],value:"⪮"},{key:[98,117,109,112,101,59],value:"≏"},{key:[98,117,109,112,101,113,59],value:"≏"},{key:[99,97,99,117,116,101,59],value:"ć"},{key:[99,97,112,59],value:"∩"},{key:[99,97,112,97,110,100,59],value:"⩄"},{key:[99,97,112,98,114,99,117,112,59],value:"⩉"},{key:[99,97,112,99,97,112,59],value:"⩋"},{key:[99,97,112,99,117,112,59],value:"⩇"},{key:[99,97,112,100,111,116,59],value:"⩀"},{key:[99,97,112,115,59],value:"∩︀"},{key:[99,97,114,101,116,59],value:"⁁"},{key:[99,97,114,111,110,59],value:"ˇ"},{key:[99,99,97,112,115,59],value:"⩍"},{key:[99,99,97,114,111,110,59],value:"č"},{key:[99,99,101,100,105,108,59],value:"ç"},{key:[99,99,105,114,99,59],value:"ĉ"},{key:[99,99,117,112,115,59],value:"⩌"},{key:[99,99,117,112,115,115,109,59],value:"⩐"},{key:[99,100,111,116,59],value:"ċ"},{key:[99,101,100,105,108,59],value:"¸"},{key:[99,101,109,112,116,121,118,59],value:"⦲"},{key:[99,101,110,116,59],value:"¢"},{key:[99,101,110,116,101,114,100,111,116,59],value:"·"},{key:[99,102,114,59],value:"𝔠"},{key:[99,104,99,121,59],value:"ч"},{key:[99,104,101,99,107,59],value:"✓"},{key:[99,104,101,99,107,109,97,114,107,59],value:"✓"},{key:[99,104,105,59],value:"χ"},{key:[99,105,114,59],value:"○"},{key:[99,105,114,69,59],value:"⧃"},{key:[99,105,114,99,59],value:"ˆ"},{key:[99,105,114,99,101,113,59],value:"≗"},{key:[99,105,114,99,108,101,97,114,114,111,119,108,101,102,116,59],value:"↺"},{key:[99,105,114,99,108,101,97,114,114,111,119,114,105,103,104,116,59],value:"↻"},{key:[99,105,114,99,108,101,100,82,59],value:"®"},{key:[99,105,114,99,108,101,100,83,59],value:"Ⓢ"},{key:[99,105,114,99,108,101,100,97,115,116,59],value:"⊛"},{key:[99,105,114,99,108,101,100,99,105,114,99,59],value:"⊚"},{key:[99,105,114,99,108,101,100,100,97,115,104,59],value:"⊝"},{key:[99,105,114,101,59],value:"≗"},{key:[99,105,114,102,110,105,110,116,59],value:"⨐"},{key:[99,105,114,109,105,100,59],value:"⫯"},{key:[99,105,114,115,99,105,114,59],value:"⧂"},{key:[99,108,117,98,115,59],value:"♣"},{key:[99,108,117,98,115,117,105,116,59],value:"♣"},{key:[99,111,108,111,110,59],value:":"},{key:[99,111,108,111,110,101,59],value:"≔"},{key:[99,111,108,111,110,101,113,59],value:"≔"},{key:[99,111,109,109,97,59],value:","},{key:[99,111,109,109,97,116,59],value:"@"},{key:[99,111,109,112,59],value:"∁"},{key:[99,111,109,112,102,110,59],value:"∘"},{key:[99,111,109,112,108,101,109,101,110,116,59],value:"∁"},{key:[99,111,109,112,108,101,120,101,115,59],value:"ℂ"},{key:[99,111,110,103,59],value:"≅"},{key:[99,111,110,103,100,111,116,59],value:"⩭"},{key:[99,111,110,105,110,116,59],value:"∮"},{key:[99,111,112,102,59],value:"𝕔"},{key:[99,111,112,114,111,100,59],value:"∐"},{key:[99,111,112,121,59],value:"©"},{key:[99,111,112,121,115,114,59],value:"℗"},{key:[99,114,97,114,114,59],value:"↵"},{key:[99,114,111,115,115,59],value:"✗"},{key:[99,115,99,114,59],value:"𝒸"},{key:[99,115,117,98,59],value:"⫏"},{key:[99,115,117,98,101,59],value:"⫑"},{key:[99,115,117,112,59],value:"⫐"},{key:[99,115,117,112,101,59],value:"⫒"},{key:[99,116,100,111,116,59],value:"⋯"},{key:[99,117,100,97,114,114,108,59],value:"⤸"},{key:[99,117,100,97,114,114,114,59],value:"⤵"},{key:[99,117,101,112,114,59],value:"⋞"},{key:[99,117,101,115,99,59],value:"⋟"},{key:[99,117,108,97,114,114,59],value:"↶"},{key:[99,117,108,97,114,114,112,59],value:"⤽"},{key:[99,117,112,59],value:"∪"},{key:[99,117,112,98,114,99,97,112,59],value:"⩈"},{key:[99,117,112,99,97,112,59],value:"⩆"},{key:[99,117,112,99,117,112,59],value:"⩊"},{key:[99,117,112,100,111,116,59],value:"⊍"},{key:[99,117,112,111,114,59],value:"⩅"},{key:[99,117,112,115,59],value:"∪︀"},{key:[99,117,114,97,114,114,59],value:"↷"},{key:[99,117,114,97,114,114,109,59],value:"⤼"},{key:[99,117,114,108,121,101,113,112,114,101,99,59],value:"⋞"},{key:[99,117,114,108,121,101,113,115,117,99,99,59],value:"⋟"},{key:[99,117,114,108,121,118,101,101,59],value:"⋎"},{key:[99,117,114,108,121,119,101,100,103,101,59],value:"⋏"},{key:[99,117,114,114,101,110,59],value:"¤"},{key:[99,117,114,118,101,97,114,114,111,119,108,101,102,116,59],value:"↶"},{key:[99,117,114,118,101,97,114,114,111,119,114,105,103,104,116,59],value:"↷"},{key:[99,117,118,101,101,59],value:"⋎"},{key:[99,117,119,101,100,59],value:"⋏"},{key:[99,119,99,111,110,105,110,116,59],value:"∲"},{key:[99,119,105,110,116,59],value:"∱"},{key:[99,121,108,99,116,121,59],value:"⌭"},{key:[100,65,114,114,59],value:"⇓"},{key:[100,72,97,114,59],value:"⥥"},{key:[100,97,103,103,101,114,59],value:"†"},{key:[100,97,108,101,116,104,59],value:"ℸ"},{key:[100,97,114,114,59],value:"↓"},{key:[100,97,115,104,59],value:"‐"},{key:[100,97,115,104,118,59],value:"⊣"},{key:[100,98,107,97,114,111,119,59],value:"⤏"},{key:[100,98,108,97,99,59],value:"˝"},{key:[100,99,97,114,111,110,59],value:"ď"},{key:[100,99,121,59],value:"д"},{key:[100,100,59],value:"ⅆ"},{key:[100,100,97,103,103,101,114,59],value:"‡"},{key:[100,100,97,114,114,59],value:"⇊"},{key:[100,100,111,116,115,101,113,59],value:"⩷"},{key:[100,101,103,59],value:"°"},{key:[100,101,108,116,97,59],value:"δ"},{key:[100,101,109,112,116,121,118,59],value:"⦱"},{key:[100,102,105,115,104,116,59],value:"⥿"},{key:[100,102,114,59],value:"𝔡"},{key:[100,104,97,114,108,59],value:"⇃"},{key:[100,104,97,114,114,59],value:"⇂"},{key:[100,105,97,109,59],value:"⋄"},{key:[100,105,97,109,111,110,100,59],value:"⋄"},{key:[100,105,97,109,111,110,100,115,117,105,116,59],value:"♦"},{key:[100,105,97,109,115,59],value:"♦"},{key:[100,105,101,59],value:"¨"},{key:[100,105,103,97,109,109,97,59],value:"ϝ"},{key:[100,105,115,105,110,59],value:"⋲"},{key:[100,105,118,59],value:"÷"},{key:[100,105,118,105,100,101,59],value:"÷"},{key:[100,105,118,105,100,101,111,110,116,105,109,101,115,59],value:"⋇"},{key:[100,105,118,111,110,120,59],value:"⋇"},{key:[100,106,99,121,59],value:"ђ"},{key:[100,108,99,111,114,110,59],value:"⌞"},{key:[100,108,99,114,111,112,59],value:"⌍"},{key:[100,111,108,108,97,114,59],value:"$"},{key:[100,111,112,102,59],value:"𝕕"},{key:[100,111,116,59],value:"˙"},{key:[100,111,116,101,113,59],value:"≐"},{key:[100,111,116,101,113,100,111,116,59],value:"≑"},{key:[100,111,116,109,105,110,117,115,59],value:"∸"},{key:[100,111,116,112,108,117,115,59],value:"∔"},{key:[100,111,116,115,113,117,97,114,101,59],value:"⊡"},{key:[100,111,117,98,108,101,98,97,114,119,101,100,103,101,59],value:"⌆"},{key:[100,111,119,110,97,114,114,111,119,59],value:"↓"},{key:[100,111,119,110,100,111,119,110,97,114,114,111,119,115,59],value:"⇊"},{key:[100,111,119,110,104,97,114,112,111,111,110,108,101,102,116,59],value:"⇃"},{key:[100,111,119,110,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"⇂"},{key:[100,114,98,107,97,114,111,119,59],value:"⤐"},{key:[100,114,99,111,114,110,59],value:"⌟"},{key:[100,114,99,114,111,112,59],value:"⌌"},{key:[100,115,99,114,59],value:"𝒹"},{key:[100,115,99,121,59],value:"ѕ"},{key:[100,115,111,108,59],value:"⧶"},{key:[100,115,116,114,111,107,59],value:"đ"},{key:[100,116,100,111,116,59],value:"⋱"},{key:[100,116,114,105,59],value:"▿"},{key:[100,116,114,105,102,59],value:"▾"},{key:[100,117,97,114,114,59],value:"⇵"},{key:[100,117,104,97,114,59],value:"⥯"},{key:[100,119,97,110,103,108,101,59],value:"⦦"},{key:[100,122,99,121,59],value:"џ"},{key:[100,122,105,103,114,97,114,114,59],value:"⟿"},{key:[101,68,68,111,116,59],value:"⩷"},{key:[101,68,111,116,59],value:"≑"},{key:[101,97,99,117,116,101,59],value:"é"},{key:[101,97,115,116,101,114,59],value:"⩮"},{key:[101,99,97,114,111,110,59],value:"ě"},{key:[101,99,105,114,59],value:"≖"},{key:[101,99,105,114,99,59],value:"ê"},{key:[101,99,111,108,111,110,59],value:"≕"},{key:[101,99,121,59],value:"э"},{key:[101,100,111,116,59],value:"ė"},{key:[101,101,59],value:"ⅇ"},{key:[101,102,68,111,116,59],value:"≒"},{key:[101,102,114,59],value:"𝔢"},{key:[101,103,59],value:"⪚"},{key:[101,103,114,97,118,101,59],value:"è"},{key:[101,103,115,59],value:"⪖"},{key:[101,103,115,100,111,116,59],value:"⪘"},{key:[101,108,59],value:"⪙"},{key:[101,108,105,110,116,101,114,115,59],value:"⏧"},{key:[101,108,108,59],value:"ℓ"},{key:[101,108,115,59],value:"⪕"},{key:[101,108,115,100,111,116,59],value:"⪗"},{key:[101,109,97,99,114,59],value:"ē"},{key:[101,109,112,116,121,59],value:"∅"},{key:[101,109,112,116,121,115,101,116,59],value:"∅"},{key:[101,109,112,116,121,118,59],value:"∅"},{key:[101,109,115,112,49,51,59],value:" "},{key:[101,109,115,112,49,52,59],value:" "},{key:[101,109,115,112,59],value:" "},{key:[101,110,103,59],value:"ŋ"},{key:[101,110,115,112,59],value:" "},{key:[101,111,103,111,110,59],value:"ę"},{key:[101,111,112,102,59],value:"𝕖"},{key:[101,112,97,114,59],value:"⋕"},{key:[101,112,97,114,115,108,59],value:"⧣"},{key:[101,112,108,117,115,59],value:"⩱"},{key:[101,112,115,105,59],value:"ε"},{key:[101,112,115,105,108,111,110,59],value:"ε"},{key:[101,112,115,105,118,59],value:"ϵ"},{key:[101,113,99,105,114,99,59],value:"≖"},{key:[101,113,99,111,108,111,110,59],value:"≕"},{key:[101,113,115,105,109,59],value:"≂"},{key:[101,113,115,108,97,110,116,103,116,114,59],value:"⪖"},{key:[101,113,115,108,97,110,116,108,101,115,115,59],value:"⪕"},{key:[101,113,117,97,108,115,59],value:"="},{key:[101,113,117,101,115,116,59],value:"≟"},{key:[101,113,117,105,118,59],value:"≡"},{key:[101,113,117,105,118,68,68,59],value:"⩸"},{key:[101,113,118,112,97,114,115,108,59],value:"⧥"},{key:[101,114,68,111,116,59],value:"≓"},{key:[101,114,97,114,114,59],value:"⥱"},{key:[101,115,99,114,59],value:"ℯ"},{key:[101,115,100,111,116,59],value:"≐"},{key:[101,115,105,109,59],value:"≂"},{key:[101,116,97,59],value:"η"},{key:[101,116,104,59],value:"ð"},{key:[101,117,109,108,59],value:"ë"},{key:[101,117,114,111,59],value:"€"},{key:[101,120,99,108,59],value:"!"},{key:[101,120,105,115,116,59],value:"∃"},{key:[101,120,112,101,99,116,97,116,105,111,110,59],value:"ℰ"},{key:[101,120,112,111,110,101,110,116,105,97,108,101,59],value:"ⅇ"},{key:[102,97,108,108,105,110,103,100,111,116,115,101,113,59],value:"≒"},{key:[102,99,121,59],value:"ф"},{key:[102,101,109,97,108,101,59],value:"♀"},{key:[102,102,105,108,105,103,59],value:"ffi"},{key:[102,102,108,105,103,59],value:"ff"},{key:[102,102,108,108,105,103,59],value:"ffl"},{key:[102,102,114,59],value:"𝔣"},{key:[102,105,108,105,103,59],value:"fi"},{key:[102,106,108,105,103,59],value:"fj"},{key:[102,108,97,116,59],value:"♭"},{key:[102,108,108,105,103,59],value:"fl"},{key:[102,108,116,110,115,59],value:"▱"},{key:[102,110,111,102,59],value:"ƒ"},{key:[102,111,112,102,59],value:"𝕗"},{key:[102,111,114,97,108,108,59],value:"∀"},{key:[102,111,114,107,59],value:"⋔"},{key:[102,111,114,107,118,59],value:"⫙"},{key:[102,112,97,114,116,105,110,116,59],value:"⨍"},{key:[102,114,97,99,49,50,59],value:"½"},{key:[102,114,97,99,49,51,59],value:"⅓"},{key:[102,114,97,99,49,52,59],value:"¼"},{key:[102,114,97,99,49,53,59],value:"⅕"},{key:[102,114,97,99,49,54,59],value:"⅙"},{key:[102,114,97,99,49,56,59],value:"⅛"},{key:[102,114,97,99,50,51,59],value:"⅔"},{key:[102,114,97,99,50,53,59],value:"⅖"},{key:[102,114,97,99,51,52,59],value:"¾"},{key:[102,114,97,99,51,53,59],value:"⅗"},{key:[102,114,97,99,51,56,59],value:"⅜"},{key:[102,114,97,99,52,53,59],value:"⅘"},{key:[102,114,97,99,53,54,59],value:"⅚"},{key:[102,114,97,99,53,56,59],value:"⅝"},{key:[102,114,97,99,55,56,59],value:"⅞"},{key:[102,114,97,115,108,59],value:"⁄"},{key:[102,114,111,119,110,59],value:"⌢"},{key:[102,115,99,114,59],value:"𝒻"},{key:[103,69,59],value:"≧"},{key:[103,69,108,59],value:"⪌"},{key:[103,97,99,117,116,101,59],value:"ǵ"},{key:[103,97,109,109,97,59],value:"γ"},{key:[103,97,109,109,97,100,59],value:"ϝ"},{key:[103,97,112,59],value:"⪆"},{key:[103,98,114,101,118,101,59],value:"ğ"},{key:[103,99,105,114,99,59],value:"ĝ"},{key:[103,99,121,59],value:"г"},{key:[103,100,111,116,59],value:"ġ"},{key:[103,101,59],value:"≥"},{key:[103,101,108,59],value:"⋛"},{key:[103,101,113,59],value:"≥"},{key:[103,101,113,113,59],value:"≧"},{key:[103,101,113,115,108,97,110,116,59],value:"⩾"},{key:[103,101,115,59],value:"⩾"},{key:[103,101,115,99,99,59],value:"⪩"},{key:[103,101,115,100,111,116,59],value:"⪀"},{key:[103,101,115,100,111,116,111,59],value:"⪂"},{key:[103,101,115,100,111,116,111,108,59],value:"⪄"},{key:[103,101,115,108,59],value:"⋛︀"},{key:[103,101,115,108,101,115,59],value:"⪔"},{key:[103,102,114,59],value:"𝔤"},{key:[103,103,59],value:"≫"},{key:[103,103,103,59],value:"⋙"},{key:[103,105,109,101,108,59],value:"ℷ"},{key:[103,106,99,121,59],value:"ѓ"},{key:[103,108,59],value:"≷"},{key:[103,108,69,59],value:"⪒"},{key:[103,108,97,59],value:"⪥"},{key:[103,108,106,59],value:"⪤"},{key:[103,110,69,59],value:"≩"},{key:[103,110,97,112,59],value:"⪊"},{key:[103,110,97,112,112,114,111,120,59],value:"⪊"},{key:[103,110,101,59],value:"⪈"},{key:[103,110,101,113,59],value:"⪈"},{key:[103,110,101,113,113,59],value:"≩"},{key:[103,110,115,105,109,59],value:"⋧"},{key:[103,111,112,102,59],value:"𝕘"},{key:[103,114,97,118,101,59],value:"`"},{key:[103,115,99,114,59],value:"ℊ"},{key:[103,115,105,109,59],value:"≳"},{key:[103,115,105,109,101,59],value:"⪎"},{key:[103,115,105,109,108,59],value:"⪐"},{key:[103,116,59],value:">"},{key:[103,116,99,99,59],value:"⪧"},{key:[103,116,99,105,114,59],value:"⩺"},{key:[103,116,100,111,116,59],value:"⋗"},{key:[103,116,108,80,97,114,59],value:"⦕"},{key:[103,116,113,117,101,115,116,59],value:"⩼"},{key:[103,116,114,97,112,112,114,111,120,59],value:"⪆"},{key:[103,116,114,97,114,114,59],value:"⥸"},{key:[103,116,114,100,111,116,59],value:"⋗"},{key:[103,116,114,101,113,108,101,115,115,59],value:"⋛"},{key:[103,116,114,101,113,113,108,101,115,115,59],value:"⪌"},{key:[103,116,114,108,101,115,115,59],value:"≷"},{key:[103,116,114,115,105,109,59],value:"≳"},{key:[103,118,101,114,116,110,101,113,113,59],value:"≩︀"},{key:[103,118,110,69,59],value:"≩︀"},{key:[104,65,114,114,59],value:"⇔"},{key:[104,97,105,114,115,112,59],value:" "},{key:[104,97,108,102,59],value:"½"},{key:[104,97,109,105,108,116,59],value:"ℋ"},{key:[104,97,114,100,99,121,59],value:"ъ"},{key:[104,97,114,114,59],value:"↔"},{key:[104,97,114,114,99,105,114,59],value:"⥈"},{key:[104,97,114,114,119,59],value:"↭"},{key:[104,98,97,114,59],value:"ℏ"},{key:[104,99,105,114,99,59],value:"ĥ"},{key:[104,101,97,114,116,115,59],value:"♥"},{key:[104,101,97,114,116,115,117,105,116,59],value:"♥"},{key:[104,101,108,108,105,112,59],value:"…"},{key:[104,101,114,99,111,110,59],value:"⊹"},{key:[104,102,114,59],value:"𝔥"},{key:[104,107,115,101,97,114,111,119,59],value:"⤥"},{key:[104,107,115,119,97,114,111,119,59],value:"⤦"},{key:[104,111,97,114,114,59],value:"⇿"},{key:[104,111,109,116,104,116,59],value:"∻"},{key:[104,111,111,107,108,101,102,116,97,114,114,111,119,59],value:"↩"},{key:[104,111,111,107,114,105,103,104,116,97,114,114,111,119,59],value:"↪"},{key:[104,111,112,102,59],value:"𝕙"},{key:[104,111,114,98,97,114,59],value:"―"},{key:[104,115,99,114,59],value:"𝒽"},{key:[104,115,108,97,115,104,59],value:"ℏ"},{key:[104,115,116,114,111,107,59],value:"ħ"},{key:[104,121,98,117,108,108,59],value:"⁃"},{key:[104,121,112,104,101,110,59],value:"‐"},{key:[105,97,99,117,116,101,59],value:"í"},{key:[105,99,59],value:"⁣"},{key:[105,99,105,114,99,59],value:"î"},{key:[105,99,121,59],value:"и"},{key:[105,101,99,121,59],value:"е"},{key:[105,101,120,99,108,59],value:"¡"},{key:[105,102,102,59],value:"⇔"},{key:[105,102,114,59],value:"𝔦"},{key:[105,103,114,97,118,101,59],value:"ì"},{key:[105,105,59],value:"ⅈ"},{key:[105,105,105,105,110,116,59],value:"⨌"},{key:[105,105,105,110,116,59],value:"∭"},{key:[105,105,110,102,105,110,59],value:"⧜"},{key:[105,105,111,116,97,59],value:"℩"},{key:[105,106,108,105,103,59],value:"ij"},{key:[105,109,97,99,114,59],value:"ī"},{key:[105,109,97,103,101,59],value:"ℑ"},{key:[105,109,97,103,108,105,110,101,59],value:"ℐ"},{key:[105,109,97,103,112,97,114,116,59],value:"ℑ"},{key:[105,109,97,116,104,59],value:"ı"},{key:[105,109,111,102,59],value:"⊷"},{key:[105,109,112,101,100,59],value:"Ƶ"},{key:[105,110,59],value:"∈"},{key:[105,110,99,97,114,101,59],value:"℅"},{key:[105,110,102,105,110,59],value:"∞"},{key:[105,110,102,105,110,116,105,101,59],value:"⧝"},{key:[105,110,111,100,111,116,59],value:"ı"},{key:[105,110,116,59],value:"∫"},{key:[105,110,116,99,97,108,59],value:"⊺"},{key:[105,110,116,101,103,101,114,115,59],value:"ℤ"},{key:[105,110,116,101,114,99,97,108,59],value:"⊺"},{key:[105,110,116,108,97,114,104,107,59],value:"⨗"},{key:[105,110,116,112,114,111,100,59],value:"⨼"},{key:[105,111,99,121,59],value:"ё"},{key:[105,111,103,111,110,59],value:"į"},{key:[105,111,112,102,59],value:"𝕚"},{key:[105,111,116,97,59],value:"ι"},{key:[105,112,114,111,100,59],value:"⨼"},{key:[105,113,117,101,115,116,59],value:"¿"},{key:[105,115,99,114,59],value:"𝒾"},{key:[105,115,105,110,59],value:"∈"},{key:[105,115,105,110,69,59],value:"⋹"},{key:[105,115,105,110,100,111,116,59],value:"⋵"},{key:[105,115,105,110,115,59],value:"⋴"},{key:[105,115,105,110,115,118,59],value:"⋳"},{key:[105,115,105,110,118,59],value:"∈"},{key:[105,116,59],value:"⁢"},{key:[105,116,105,108,100,101,59],value:"ĩ"},{key:[105,117,107,99,121,59],value:"і"},{key:[105,117,109,108,59],value:"ï"},{key:[106,99,105,114,99,59],value:"ĵ"},{key:[106,99,121,59],value:"й"},{key:[106,102,114,59],value:"𝔧"},{key:[106,109,97,116,104,59],value:"ȷ"},{key:[106,111,112,102,59],value:"𝕛"},{key:[106,115,99,114,59],value:"𝒿"},{key:[106,115,101,114,99,121,59],value:"ј"},{key:[106,117,107,99,121,59],value:"є"},{key:[107,97,112,112,97,59],value:"κ"},{key:[107,97,112,112,97,118,59],value:"ϰ"},{key:[107,99,101,100,105,108,59],value:"ķ"},{key:[107,99,121,59],value:"к"},{key:[107,102,114,59],value:"𝔨"},{key:[107,103,114,101,101,110,59],value:"ĸ"},{key:[107,104,99,121,59],value:"х"},{key:[107,106,99,121,59],value:"ќ"},{key:[107,111,112,102,59],value:"𝕜"},{key:[107,115,99,114,59],value:"𝓀"},{key:[108,65,97,114,114,59],value:"⇚"},{key:[108,65,114,114,59],value:"⇐"},{key:[108,65,116,97,105,108,59],value:"⤛"},{key:[108,66,97,114,114,59],value:"⤎"},{key:[108,69,59],value:"≦"},{key:[108,69,103,59],value:"⪋"},{key:[108,72,97,114,59],value:"⥢"},{key:[108,97,99,117,116,101,59],value:"ĺ"},{key:[108,97,101,109,112,116,121,118,59],value:"⦴"},{key:[108,97,103,114,97,110,59],value:"ℒ"},{key:[108,97,109,98,100,97,59],value:"λ"},{key:[108,97,110,103,59],value:"⟨"},{key:[108,97,110,103,100,59],value:"⦑"},{key:[108,97,110,103,108,101,59],value:"⟨"},{key:[108,97,112,59],value:"⪅"},{key:[108,97,113,117,111,59],value:"«"},{key:[108,97,114,114,59],value:"←"},{key:[108,97,114,114,98,59],value:"⇤"},{key:[108,97,114,114,98,102,115,59],value:"⤟"},{key:[108,97,114,114,102,115,59],value:"⤝"},{key:[108,97,114,114,104,107,59],value:"↩"},{key:[108,97,114,114,108,112,59],value:"↫"},{key:[108,97,114,114,112,108,59],value:"⤹"},{key:[108,97,114,114,115,105,109,59],value:"⥳"},{key:[108,97,114,114,116,108,59],value:"↢"},{key:[108,97,116,59],value:"⪫"},{key:[108,97,116,97,105,108,59],value:"⤙"},{key:[108,97,116,101,59],value:"⪭"},{key:[108,97,116,101,115,59],value:"⪭︀"},{key:[108,98,97,114,114,59],value:"⤌"},{key:[108,98,98,114,107,59],value:"❲"},{key:[108,98,114,97,99,101,59],value:"{ "},{key:[108,98,114,97,99,107,59],value:"["},{key:[108,98,114,107,101,59],value:"⦋"},{key:[108,98,114,107,115,108,100,59],value:"⦏"},{key:[108,98,114,107,115,108,117,59],value:"⦍"},{key:[108,99,97,114,111,110,59],value:"ľ"},{key:[108,99,101,100,105,108,59],value:"ļ"},{key:[108,99,101,105,108,59],value:"⌈"},{key:[108,99,117,98,59],value:"{ "},{key:[108,99,121,59],value:"л"},{key:[108,100,99,97,59],value:"⤶"},{key:[108,100,113,117,111,59],value:"“"},{key:[108,100,113,117,111,114,59],value:"„"},{key:[108,100,114,100,104,97,114,59],value:"⥧"},{key:[108,100,114,117,115,104,97,114,59],value:"⥋"},{key:[108,100,115,104,59],value:"↲"},{key:[108,101,59],value:"≤"},{key:[108,101,102,116,97,114,114,111,119,59],value:"←"},{key:[108,101,102,116,97,114,114,111,119,116,97,105,108,59],value:"↢"},{key:[108,101,102,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"↽"},{key:[108,101,102,116,104,97,114,112,111,111,110,117,112,59],value:"↼"},{key:[108,101,102,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇇"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↔"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇆"},{key:[108,101,102,116,114,105,103,104,116,104,97,114,112,111,111,110,115,59],value:"⇋"},{key:[108,101,102,116,114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↭"},{key:[108,101,102,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋋"},{key:[108,101,103,59],value:"⋚"},{key:[108,101,113,59],value:"≤"},{key:[108,101,113,113,59],value:"≦"},{key:[108,101,113,115,108,97,110,116,59],value:"⩽"},{key:[108,101,115,59],value:"⩽"},{key:[108,101,115,99,99,59],value:"⪨"},{key:[108,101,115,100,111,116,59],value:"⩿"},{key:[108,101,115,100,111,116,111,59],value:"⪁"},{key:[108,101,115,100,111,116,111,114,59],value:"⪃"},{key:[108,101,115,103,59],value:"⋚︀"},{key:[108,101,115,103,101,115,59],value:"⪓"},{key:[108,101,115,115,97,112,112,114,111,120,59],value:"⪅"},{key:[108,101,115,115,100,111,116,59],value:"⋖"},{key:[108,101,115,115,101,113,103,116,114,59],value:"⋚"},{key:[108,101,115,115,101,113,113,103,116,114,59],value:"⪋"},{key:[108,101,115,115,103,116,114,59],value:"≶"},{key:[108,101,115,115,115,105,109,59],value:"≲"},{key:[108,102,105,115,104,116,59],value:"⥼"},{key:[108,102,108,111,111,114,59],value:"⌊"},{key:[108,102,114,59],value:"𝔩"},{key:[108,103,59],value:"≶"},{key:[108,103,69,59],value:"⪑"},{key:[108,104,97,114,100,59],value:"↽"},{key:[108,104,97,114,117,59],value:"↼"},{key:[108,104,97,114,117,108,59],value:"⥪"},{key:[108,104,98,108,107,59],value:"▄"},{key:[108,106,99,121,59],value:"љ"},{key:[108,108,59],value:"≪"},{key:[108,108,97,114,114,59],value:"⇇"},{key:[108,108,99,111,114,110,101,114,59],value:"⌞"},{key:[108,108,104,97,114,100,59],value:"⥫"},{key:[108,108,116,114,105,59],value:"◺"},{key:[108,109,105,100,111,116,59],value:"ŀ"},{key:[108,109,111,117,115,116,59],value:"⎰"},{key:[108,109,111,117,115,116,97,99,104,101,59],value:"⎰"},{key:[108,110,69,59],value:"≨"},{key:[108,110,97,112,59],value:"⪉"},{key:[108,110,97,112,112,114,111,120,59],value:"⪉"},{key:[108,110,101,59],value:"⪇"},{key:[108,110,101,113,59],value:"⪇"},{key:[108,110,101,113,113,59],value:"≨"},{key:[108,110,115,105,109,59],value:"⋦"},{key:[108,111,97,110,103,59],value:"⟬"},{key:[108,111,97,114,114,59],value:"⇽"},{key:[108,111,98,114,107,59],value:"⟦"},{key:[108,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟵"},{key:[108,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟷"},{key:[108,111,110,103,109,97,112,115,116,111,59],value:"⟼"},{key:[108,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟶"},{key:[108,111,111,112,97,114,114,111,119,108,101,102,116,59],value:"↫"},{key:[108,111,111,112,97,114,114,111,119,114,105,103,104,116,59],value:"↬"},{key:[108,111,112,97,114,59],value:"⦅"},{key:[108,111,112,102,59],value:"𝕝"},{key:[108,111,112,108,117,115,59],value:"⨭"},{key:[108,111,116,105,109,101,115,59],value:"⨴"},{key:[108,111,119,97,115,116,59],value:"∗"},{key:[108,111,119,98,97,114,59],value:"_"},{key:[108,111,122,59],value:"◊"},{key:[108,111,122,101,110,103,101,59],value:"◊"},{key:[108,111,122,102,59],value:"⧫"},{key:[108,112,97,114,59],value:"("},{key:[108,112,97,114,108,116,59],value:"⦓"},{key:[108,114,97,114,114,59],value:"⇆"},{key:[108,114,99,111,114,110,101,114,59],value:"⌟"},{key:[108,114,104,97,114,59],value:"⇋"},{key:[108,114,104,97,114,100,59],value:"⥭"},{key:[108,114,109,59],value:"‎"},{key:[108,114,116,114,105,59],value:"⊿"},{key:[108,115,97,113,117,111,59],value:"‹"},{key:[108,115,99,114,59],value:"𝓁"},{key:[108,115,104,59],value:"↰"},{key:[108,115,105,109,59],value:"≲"},{key:[108,115,105,109,101,59],value:"⪍"},{key:[108,115,105,109,103,59],value:"⪏"},{key:[108,115,113,98,59],value:"["},{key:[108,115,113,117,111,59],value:"‘"},{key:[108,115,113,117,111,114,59],value:"‚"},{key:[108,115,116,114,111,107,59],value:"ł"},{key:[108,116,59],value:"<"},{key:[108,116,99,99,59],value:"⪦"},{key:[108,116,99,105,114,59],value:"⩹"},{key:[108,116,100,111,116,59],value:"⋖"},{key:[108,116,104,114,101,101,59],value:"⋋"},{key:[108,116,105,109,101,115,59],value:"⋉"},{key:[108,116,108,97,114,114,59],value:"⥶"},{key:[108,116,113,117,101,115,116,59],value:"⩻"},{key:[108,116,114,80,97,114,59],value:"⦖"},{key:[108,116,114,105,59],value:"◃"},{key:[108,116,114,105,101,59],value:"⊴"},{key:[108,116,114,105,102,59],value:"◂"},{key:[108,117,114,100,115,104,97,114,59],value:"⥊"},{key:[108,117,114,117,104,97,114,59],value:"⥦"},{key:[108,118,101,114,116,110,101,113,113,59],value:"≨︀"},{key:[108,118,110,69,59],value:"≨︀"},{key:[109,68,68,111,116,59],value:"∺"},{key:[109,97,99,114,59],value:"¯"},{key:[109,97,108,101,59],value:"♂"},{key:[109,97,108,116,59],value:"✠"},{key:[109,97,108,116,101,115,101,59],value:"✠"},{key:[109,97,112,59],value:"↦"},{key:[109,97,112,115,116,111,59],value:"↦"},{key:[109,97,112,115,116,111,100,111,119,110,59],value:"↧"},{key:[109,97,112,115,116,111,108,101,102,116,59],value:"↤"},{key:[109,97,112,115,116,111,117,112,59],value:"↥"},{key:[109,97,114,107,101,114,59],value:"▮"},{key:[109,99,111,109,109,97,59],value:"⨩"},{key:[109,99,121,59],value:"м"},{key:[109,100,97,115,104,59],value:"—"},{key:[109,101,97,115,117,114,101,100,97,110,103,108,101,59],value:"∡"},{key:[109,102,114,59],value:"𝔪"},{key:[109,104,111,59],value:"℧"},{key:[109,105,99,114,111,59],value:"µ"},{key:[109,105,100,59],value:"∣"},{key:[109,105,100,97,115,116,59],value:"*"},{key:[109,105,100,99,105,114,59],value:"⫰"},{key:[109,105,100,100,111,116,59],value:"·"},{key:[109,105,110,117,115,59],value:"−"},{key:[109,105,110,117,115,98,59],value:"⊟"},{key:[109,105,110,117,115,100,59],value:"∸"},{key:[109,105,110,117,115,100,117,59],value:"⨪"},{key:[109,108,99,112,59],value:"⫛"},{key:[109,108,100,114,59],value:"…"},{key:[109,110,112,108,117,115,59],value:"∓"},{key:[109,111,100,101,108,115,59],value:"⊧"},{key:[109,111,112,102,59],value:"𝕞"},{key:[109,112,59],value:"∓"},{key:[109,115,99,114,59],value:"𝓂"},{key:[109,115,116,112,111,115,59],value:"∾"},{key:[109,117,59],value:"μ"},{key:[109,117,108,116,105,109,97,112,59],value:"⊸"},{key:[109,117,109,97,112,59],value:"⊸"},{key:[110,71,103,59],value:"⋙̸"},{key:[110,71,116,59],value:"≫⃒"},{key:[110,71,116,118,59],value:"≫̸"},{key:[110,76,101,102,116,97,114,114,111,119,59],value:"⇍"},{key:[110,76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇎"},{key:[110,76,108,59],value:"⋘̸"},{key:[110,76,116,59],value:"≪⃒"},{key:[110,76,116,118,59],value:"≪̸"},{key:[110,82,105,103,104,116,97,114,114,111,119,59],value:"⇏"},{key:[110,86,68,97,115,104,59],value:"⊯"},{key:[110,86,100,97,115,104,59],value:"⊮"},{key:[110,97,98,108,97,59],value:"∇"},{key:[110,97,99,117,116,101,59],value:"ń"},{key:[110,97,110,103,59],value:"∠⃒"},{key:[110,97,112,59],value:"≉"},{key:[110,97,112,69,59],value:"⩰̸"},{key:[110,97,112,105,100,59],value:"≋̸"},{key:[110,97,112,111,115,59],value:"ʼn"},{key:[110,97,112,112,114,111,120,59],value:"≉"},{key:[110,97,116,117,114,59],value:"♮"},{key:[110,97,116,117,114,97,108,59],value:"♮"},{key:[110,97,116,117,114,97,108,115,59],value:"ℕ"},{key:[110,98,115,112,59],value:" "},{key:[110,98,117,109,112,59],value:"≎̸"},{key:[110,98,117,109,112,101,59],value:"≏̸"},{key:[110,99,97,112,59],value:"⩃"},{key:[110,99,97,114,111,110,59],value:"ň"},{key:[110,99,101,100,105,108,59],value:"ņ"},{key:[110,99,111,110,103,59],value:"≇"},{key:[110,99,111,110,103,100,111,116,59],value:"⩭̸"},{key:[110,99,117,112,59],value:"⩂"},{key:[110,99,121,59],value:"н"},{key:[110,100,97,115,104,59],value:"–"},{key:[110,101,59],value:"≠"},{key:[110,101,65,114,114,59],value:"⇗"},{key:[110,101,97,114,104,107,59],value:"⤤"},{key:[110,101,97,114,114,59],value:"↗"},{key:[110,101,97,114,114,111,119,59],value:"↗"},{key:[110,101,100,111,116,59],value:"≐̸"},{key:[110,101,113,117,105,118,59],value:"≢"},{key:[110,101,115,101,97,114,59],value:"⤨"},{key:[110,101,115,105,109,59],value:"≂̸"},{key:[110,101,120,105,115,116,59],value:"∄"},{key:[110,101,120,105,115,116,115,59],value:"∄"},{key:[110,102,114,59],value:"𝔫"},{key:[110,103,69,59],value:"≧̸"},{key:[110,103,101,59],value:"≱"},{key:[110,103,101,113,59],value:"≱"},{key:[110,103,101,113,113,59],value:"≧̸"},{key:[110,103,101,113,115,108,97,110,116,59],value:"⩾̸"},{key:[110,103,101,115,59],value:"⩾̸"},{key:[110,103,115,105,109,59],value:"≵"},{key:[110,103,116,59],value:"≯"},{key:[110,103,116,114,59],value:"≯"},{key:[110,104,65,114,114,59],value:"⇎"},{key:[110,104,97,114,114,59],value:"↮"},{key:[110,104,112,97,114,59],value:"⫲"},{key:[110,105,59],value:"∋"},{key:[110,105,115,59],value:"⋼"},{key:[110,105,115,100,59],value:"⋺"},{key:[110,105,118,59],value:"∋"},{key:[110,106,99,121,59],value:"њ"},{key:[110,108,65,114,114,59],value:"⇍"},{key:[110,108,69,59],value:"≦̸"},{key:[110,108,97,114,114,59],value:"↚"},{key:[110,108,100,114,59],value:"‥"},{key:[110,108,101,59],value:"≰"},{key:[110,108,101,102,116,97,114,114,111,119,59],value:"↚"},{key:[110,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↮"},{key:[110,108,101,113,59],value:"≰"},{key:[110,108,101,113,113,59],value:"≦̸"},{key:[110,108,101,113,115,108,97,110,116,59],value:"⩽̸"},{key:[110,108,101,115,59],value:"⩽̸"},{key:[110,108,101,115,115,59],value:"≮"},{key:[110,108,115,105,109,59],value:"≴"},{key:[110,108,116,59],value:"≮"},{key:[110,108,116,114,105,59],value:"⋪"},{key:[110,108,116,114,105,101,59],value:"⋬"},{key:[110,109,105,100,59],value:"∤"},{key:[110,111,112,102,59],value:"𝕟"},{key:[110,111,116,59],value:"¬"},{key:[110,111,116,105,110,59],value:"∉"},{key:[110,111,116,105,110,69,59],value:"⋹̸"},{key:[110,111,116,105,110,100,111,116,59],value:"⋵̸"},{key:[110,111,116,105,110,118,97,59],value:"∉"},{key:[110,111,116,105,110,118,98,59],value:"⋷"},{key:[110,111,116,105,110,118,99,59],value:"⋶"},{key:[110,111,116,110,105,59],value:"∌"},{key:[110,111,116,110,105,118,97,59],value:"∌"},{key:[110,111,116,110,105,118,98,59],value:"⋾"},{key:[110,111,116,110,105,118,99,59],value:"⋽"},{key:[110,112,97,114,59],value:"∦"},{key:[110,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,112,97,114,115,108,59],value:"⫽⃥"},{key:[110,112,97,114,116,59],value:"∂̸"},{key:[110,112,111,108,105,110,116,59],value:"⨔"},{key:[110,112,114,59],value:"⊀"},{key:[110,112,114,99,117,101,59],value:"⋠"},{key:[110,112,114,101,59],value:"⪯̸"},{key:[110,112,114,101,99,59],value:"⊀"},{key:[110,112,114,101,99,101,113,59],value:"⪯̸"},{key:[110,114,65,114,114,59],value:"⇏"},{key:[110,114,97,114,114,59],value:"↛"},{key:[110,114,97,114,114,99,59],value:"⤳̸"},{key:[110,114,97,114,114,119,59],value:"↝̸"},{key:[110,114,105,103,104,116,97,114,114,111,119,59],value:"↛"},{key:[110,114,116,114,105,59],value:"⋫"},{key:[110,114,116,114,105,101,59],value:"⋭"},{key:[110,115,99,59],value:"⊁"},{key:[110,115,99,99,117,101,59],value:"⋡"},{key:[110,115,99,101,59],value:"⪰̸"},{key:[110,115,99,114,59],value:"𝓃"},{key:[110,115,104,111,114,116,109,105,100,59],value:"∤"},{key:[110,115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,115,105,109,59],value:"≁"},{key:[110,115,105,109,101,59],value:"≄"},{key:[110,115,105,109,101,113,59],value:"≄"},{key:[110,115,109,105,100,59],value:"∤"},{key:[110,115,112,97,114,59],value:"∦"},{key:[110,115,113,115,117,98,101,59],value:"⋢"},{key:[110,115,113,115,117,112,101,59],value:"⋣"},{key:[110,115,117,98,59],value:"⊄"},{key:[110,115,117,98,69,59],value:"⫅̸"},{key:[110,115,117,98,101,59],value:"⊈"},{key:[110,115,117,98,115,101,116,59],value:"⊂⃒"},{key:[110,115,117,98,115,101,116,101,113,59],value:"⊈"},{key:[110,115,117,98,115,101,116,101,113,113,59],value:"⫅̸"},{key:[110,115,117,99,99,59],value:"⊁"},{key:[110,115,117,99,99,101,113,59],value:"⪰̸"},{key:[110,115,117,112,59],value:"⊅"},{key:[110,115,117,112,69,59],value:"⫆̸"},{key:[110,115,117,112,101,59],value:"⊉"},{key:[110,115,117,112,115,101,116,59],value:"⊃⃒"},{key:[110,115,117,112,115,101,116,101,113,59],value:"⊉"},{key:[110,115,117,112,115,101,116,101,113,113,59],value:"⫆̸"},{key:[110,116,103,108,59],value:"≹"},{key:[110,116,105,108,100,101,59],value:"ñ"},{key:[110,116,108,103,59],value:"≸"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⋪"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⋬"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⋫"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⋭"},{key:[110,117,59],value:"ν"},{key:[110,117,109,59],value:"#"},{key:[110,117,109,101,114,111,59],value:"№"},{key:[110,117,109,115,112,59],value:" "},{key:[110,118,68,97,115,104,59],value:"⊭"},{key:[110,118,72,97,114,114,59],value:"⤄"},{key:[110,118,97,112,59],value:"≍⃒"},{key:[110,118,100,97,115,104,59],value:"⊬"},{key:[110,118,103,101,59],value:"≥⃒"},{key:[110,118,103,116,59],value:">⃒"},{key:[110,118,105,110,102,105,110,59],value:"⧞"},{key:[110,118,108,65,114,114,59],value:"⤂"},{key:[110,118,108,101,59],value:"≤⃒"},{key:[110,118,108,116,59],value:"<⃒"},{key:[110,118,108,116,114,105,101,59],value:"⊴⃒"},{key:[110,118,114,65,114,114,59],value:"⤃"},{key:[110,118,114,116,114,105,101,59],value:"⊵⃒"},{key:[110,118,115,105,109,59],value:"∼⃒"},{key:[110,119,65,114,114,59],value:"⇖"},{key:[110,119,97,114,104,107,59],value:"⤣"},{key:[110,119,97,114,114,59],value:"↖"},{key:[110,119,97,114,114,111,119,59],value:"↖"},{key:[110,119,110,101,97,114,59],value:"⤧"},{key:[111,83,59],value:"Ⓢ"},{key:[111,97,99,117,116,101,59],value:"ó"},{key:[111,97,115,116,59],value:"⊛"},{key:[111,99,105,114,59],value:"⊚"},{key:[111,99,105,114,99,59],value:"ô"},{key:[111,99,121,59],value:"о"},{key:[111,100,97,115,104,59],value:"⊝"},{key:[111,100,98,108,97,99,59],value:"ő"},{key:[111,100,105,118,59],value:"⨸"},{key:[111,100,111,116,59],value:"⊙"},{key:[111,100,115,111,108,100,59],value:"⦼"},{key:[111,101,108,105,103,59],value:"œ"},{key:[111,102,99,105,114,59],value:"⦿"},{key:[111,102,114,59],value:"𝔬"},{key:[111,103,111,110,59],value:"˛"},{key:[111,103,114,97,118,101,59],value:"ò"},{key:[111,103,116,59],value:"⧁"},{key:[111,104,98,97,114,59],value:"⦵"},{key:[111,104,109,59],value:"Ω"},{key:[111,105,110,116,59],value:"∮"},{key:[111,108,97,114,114,59],value:"↺"},{key:[111,108,99,105,114,59],value:"⦾"},{key:[111,108,99,114,111,115,115,59],value:"⦻"},{key:[111,108,105,110,101,59],value:"‾"},{key:[111,108,116,59],value:"⧀"},{key:[111,109,97,99,114,59],value:"ō"},{key:[111,109,101,103,97,59],value:"ω"},{key:[111,109,105,99,114,111,110,59],value:"ο"},{key:[111,109,105,100,59],value:"⦶"},{key:[111,109,105,110,117,115,59],value:"⊖"},{key:[111,111,112,102,59],value:"𝕠"},{key:[111,112,97,114,59],value:"⦷"},{key:[111,112,101,114,112,59],value:"⦹"},{key:[111,112,108,117,115,59],value:"⊕"},{key:[111,114,59],value:"∨"},{key:[111,114,97,114,114,59],value:"↻"},{key:[111,114,100,59],value:"⩝"},{key:[111,114,100,101,114,59],value:"ℴ"},{key:[111,114,100,101,114,111,102,59],value:"ℴ"},{key:[111,114,100,102,59],value:"ª"},{key:[111,114,100,109,59],value:"º"},{key:[111,114,105,103,111,102,59],value:"⊶"},{key:[111,114,111,114,59],value:"⩖"},{key:[111,114,115,108,111,112,101,59],value:"⩗"},{key:[111,114,118,59],value:"⩛"},{key:[111,115,99,114,59],value:"ℴ"},{key:[111,115,108,97,115,104,59],value:"ø"},{key:[111,115,111,108,59],value:"⊘"},{key:[111,116,105,108,100,101,59],value:"õ"},{key:[111,116,105,109,101,115,59],value:"⊗"},{key:[111,116,105,109,101,115,97,115,59],value:"⨶"},{key:[111,117,109,108,59],value:"ö"},{key:[111,118,98,97,114,59],value:"⌽"},{key:[112,97,114,59],value:"∥"},{key:[112,97,114,97,59],value:"¶"},{key:[112,97,114,97,108,108,101,108,59],value:"∥"},{key:[112,97,114,115,105,109,59],value:"⫳"},{key:[112,97,114,115,108,59],value:"⫽"},{key:[112,97,114,116,59],value:"∂"},{key:[112,99,121,59],value:"п"},{key:[112,101,114,99,110,116,59],value:"%"},{key:[112,101,114,105,111,100,59],value:"."},{key:[112,101,114,109,105,108,59],value:"‰"},{key:[112,101,114,112,59],value:"⊥"},{key:[112,101,114,116,101,110,107,59],value:"‱"},{key:[112,102,114,59],value:"𝔭"},{key:[112,104,105,59],value:"φ"},{key:[112,104,105,118,59],value:"ϕ"},{key:[112,104,109,109,97,116,59],value:"ℳ"},{key:[112,104,111,110,101,59],value:"☎"},{key:[112,105,59],value:"π"},{key:[112,105,116,99,104,102,111,114,107,59],value:"⋔"},{key:[112,105,118,59],value:"ϖ"},{key:[112,108,97,110,99,107,59],value:"ℏ"},{key:[112,108,97,110,99,107,104,59],value:"ℎ"},{key:[112,108,97,110,107,118,59],value:"ℏ"},{key:[112,108,117,115,59],value:"+"},{key:[112,108,117,115,97,99,105,114,59],value:"⨣"},{key:[112,108,117,115,98,59],value:"⊞"},{key:[112,108,117,115,99,105,114,59],value:"⨢"},{key:[112,108,117,115,100,111,59],value:"∔"},{key:[112,108,117,115,100,117,59],value:"⨥"},{key:[112,108,117,115,101,59],value:"⩲"},{key:[112,108,117,115,109,110,59],value:"±"},{key:[112,108,117,115,115,105,109,59],value:"⨦"},{key:[112,108,117,115,116,119,111,59],value:"⨧"},{key:[112,109,59],value:"±"},{key:[112,111,105,110,116,105,110,116,59],value:"⨕"},{key:[112,111,112,102,59],value:"𝕡"},{key:[112,111,117,110,100,59],value:"£"},{key:[112,114,59],value:"≺"},{key:[112,114,69,59],value:"⪳"},{key:[112,114,97,112,59],value:"⪷"},{key:[112,114,99,117,101,59],value:"≼"},{key:[112,114,101,59],value:"⪯"},{key:[112,114,101,99,59],value:"≺"},{key:[112,114,101,99,97,112,112,114,111,120,59],value:"⪷"},{key:[112,114,101,99,99,117,114,108,121,101,113,59],value:"≼"},{key:[112,114,101,99,101,113,59],value:"⪯"},{key:[112,114,101,99,110,97,112,112,114,111,120,59],value:"⪹"},{key:[112,114,101,99,110,101,113,113,59],value:"⪵"},{key:[112,114,101,99,110,115,105,109,59],value:"⋨"},{key:[112,114,101,99,115,105,109,59],value:"≾"},{key:[112,114,105,109,101,59],value:"′"},{key:[112,114,105,109,101,115,59],value:"ℙ"},{key:[112,114,110,69,59],value:"⪵"},{key:[112,114,110,97,112,59],value:"⪹"},{key:[112,114,110,115,105,109,59],value:"⋨"},{key:[112,114,111,100,59],value:"∏"},{key:[112,114,111,102,97,108,97,114,59],value:"⌮"},{key:[112,114,111,102,108,105,110,101,59],value:"⌒"},{key:[112,114,111,102,115,117,114,102,59],value:"⌓"},{key:[112,114,111,112,59],value:"∝"},{key:[112,114,111,112,116,111,59],value:"∝"},{key:[112,114,115,105,109,59],value:"≾"},{key:[112,114,117,114,101,108,59],value:"⊰"},{key:[112,115,99,114,59],value:"𝓅"},{key:[112,115,105,59],value:"ψ"},{key:[112,117,110,99,115,112,59],value:" "},{key:[113,102,114,59],value:"𝔮"},{key:[113,105,110,116,59],value:"⨌"},{key:[113,111,112,102,59],value:"𝕢"},{key:[113,112,114,105,109,101,59],value:"⁗"},{key:[113,115,99,114,59],value:"𝓆"},{key:[113,117,97,116,101,114,110,105,111,110,115,59],value:"ℍ"},{key:[113,117,97,116,105,110,116,59],value:"⨖"},{key:[113,117,101,115,116,59],value:"?"},{key:[113,117,101,115,116,101,113,59],value:"≟"},{key:[113,117,111,116,59],value:'"'},{key:[114,65,97,114,114,59],value:"⇛"},{key:[114,65,114,114,59],value:"⇒"},{key:[114,65,116,97,105,108,59],value:"⤜"},{key:[114,66,97,114,114,59],value:"⤏"},{key:[114,72,97,114,59],value:"⥤"},{key:[114,97,99,101,59],value:"∽̱"},{key:[114,97,99,117,116,101,59],value:"ŕ"},{key:[114,97,100,105,99,59],value:"√"},{key:[114,97,101,109,112,116,121,118,59],value:"⦳"},{key:[114,97,110,103,59],value:"⟩"},{key:[114,97,110,103,100,59],value:"⦒"},{key:[114,97,110,103,101,59],value:"⦥"},{key:[114,97,110,103,108,101,59],value:"⟩"},{key:[114,97,113,117,111,59],value:"»"},{key:[114,97,114,114,59],value:"→"},{key:[114,97,114,114,97,112,59],value:"⥵"},{key:[114,97,114,114,98,59],value:"⇥"},{key:[114,97,114,114,98,102,115,59],value:"⤠"},{key:[114,97,114,114,99,59],value:"⤳"},{key:[114,97,114,114,102,115,59],value:"⤞"},{key:[114,97,114,114,104,107,59],value:"↪"},{key:[114,97,114,114,108,112,59],value:"↬"},{key:[114,97,114,114,112,108,59],value:"⥅"},{key:[114,97,114,114,115,105,109,59],value:"⥴"},{key:[114,97,114,114,116,108,59],value:"↣"},{key:[114,97,114,114,119,59],value:"↝"},{key:[114,97,116,97,105,108,59],value:"⤚"},{key:[114,97,116,105,111,59],value:"∶"},{key:[114,97,116,105,111,110,97,108,115,59],value:"ℚ"},{key:[114,98,97,114,114,59],value:"⤍"},{key:[114,98,98,114,107,59],value:"❳"},{key:[114,98,114,97,99,101,59],value:" }"},{key:[114,98,114,97,99,107,59],value:"]"},{key:[114,98,114,107,101,59],value:"⦌"},{key:[114,98,114,107,115,108,100,59],value:"⦎"},{key:[114,98,114,107,115,108,117,59],value:"⦐"},{key:[114,99,97,114,111,110,59],value:"ř"},{key:[114,99,101,100,105,108,59],value:"ŗ"},{key:[114,99,101,105,108,59],value:"⌉"},{key:[114,99,117,98,59],value:" }"},{key:[114,99,121,59],value:"р"},{key:[114,100,99,97,59],value:"⤷"},{key:[114,100,108,100,104,97,114,59],value:"⥩"},{key:[114,100,113,117,111,59],value:"”"},{key:[114,100,113,117,111,114,59],value:"”"},{key:[114,100,115,104,59],value:"↳"},{key:[114,101,97,108,59],value:"ℜ"},{key:[114,101,97,108,105,110,101,59],value:"ℛ"},{key:[114,101,97,108,112,97,114,116,59],value:"ℜ"},{key:[114,101,97,108,115,59],value:"ℝ"},{key:[114,101,99,116,59],value:"▭"},{key:[114,101,103,59],value:"®"},{key:[114,102,105,115,104,116,59],value:"⥽"},{key:[114,102,108,111,111,114,59],value:"⌋"},{key:[114,102,114,59],value:"𝔯"},{key:[114,104,97,114,100,59],value:"⇁"},{key:[114,104,97,114,117,59],value:"⇀"},{key:[114,104,97,114,117,108,59],value:"⥬"},{key:[114,104,111,59],value:"ρ"},{key:[114,104,111,118,59],value:"ϱ"},{key:[114,105,103,104,116,97,114,114,111,119,59],value:"→"},{key:[114,105,103,104,116,97,114,114,111,119,116,97,105,108,59],value:"↣"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"⇁"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,117,112,59],value:"⇀"},{key:[114,105,103,104,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇄"},{key:[114,105,103,104,116,108,101,102,116,104,97,114,112,111,111,110,115,59],value:"⇌"},{key:[114,105,103,104,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇉"},{key:[114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↝"},{key:[114,105,103,104,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋌"},{key:[114,105,110,103,59],value:"˚"},{key:[114,105,115,105,110,103,100,111,116,115,101,113,59],value:"≓"},{key:[114,108,97,114,114,59],value:"⇄"},{key:[114,108,104,97,114,59],value:"⇌"},{key:[114,108,109,59],value:"‏"},{key:[114,109,111,117,115,116,59],value:"⎱"},{key:[114,109,111,117,115,116,97,99,104,101,59],value:"⎱"},{key:[114,110,109,105,100,59],value:"⫮"},{key:[114,111,97,110,103,59],value:"⟭"},{key:[114,111,97,114,114,59],value:"⇾"},{key:[114,111,98,114,107,59],value:"⟧"},{key:[114,111,112,97,114,59],value:"⦆"},{key:[114,111,112,102,59],value:"𝕣"},{key:[114,111,112,108,117,115,59],value:"⨮"},{key:[114,111,116,105,109,101,115,59],value:"⨵"},{key:[114,112,97,114,59],value:")"},{key:[114,112,97,114,103,116,59],value:"⦔"},{key:[114,112,112,111,108,105,110,116,59],value:"⨒"},{key:[114,114,97,114,114,59],value:"⇉"},{key:[114,115,97,113,117,111,59],value:"›"},{key:[114,115,99,114,59],value:"𝓇"},{key:[114,115,104,59],value:"↱"},{key:[114,115,113,98,59],value:"]"},{key:[114,115,113,117,111,59],value:"’"},{key:[114,115,113,117,111,114,59],value:"’"},{key:[114,116,104,114,101,101,59],value:"⋌"},{key:[114,116,105,109,101,115,59],value:"⋊"},{key:[114,116,114,105,59],value:"▹"},{key:[114,116,114,105,101,59],value:"⊵"},{key:[114,116,114,105,102,59],value:"▸"},{key:[114,116,114,105,108,116,114,105,59],value:"⧎"},{key:[114,117,108,117,104,97,114,59],value:"⥨"},{key:[114,120,59],value:"℞"},{key:[115,97,99,117,116,101,59],value:"ś"},{key:[115,98,113,117,111,59],value:"‚"},{key:[115,99,59],value:"≻"},{key:[115,99,69,59],value:"⪴"},{key:[115,99,97,112,59],value:"⪸"},{key:[115,99,97,114,111,110,59],value:"š"},{key:[115,99,99,117,101,59],value:"≽"},{key:[115,99,101,59],value:"⪰"},{key:[115,99,101,100,105,108,59],value:"ş"},{key:[115,99,105,114,99,59],value:"ŝ"},{key:[115,99,110,69,59],value:"⪶"},{key:[115,99,110,97,112,59],value:"⪺"},{key:[115,99,110,115,105,109,59],value:"⋩"},{key:[115,99,112,111,108,105,110,116,59],value:"⨓"},{key:[115,99,115,105,109,59],value:"≿"},{key:[115,99,121,59],value:"с"},{key:[115,100,111,116,59],value:"⋅"},{key:[115,100,111,116,98,59],value:"⊡"},{key:[115,100,111,116,101,59],value:"⩦"},{key:[115,101,65,114,114,59],value:"⇘"},{key:[115,101,97,114,104,107,59],value:"⤥"},{key:[115,101,97,114,114,59],value:"↘"},{key:[115,101,97,114,114,111,119,59],value:"↘"},{key:[115,101,99,116,59],value:"§"},{key:[115,101,109,105,59],value:";"},{key:[115,101,115,119,97,114,59],value:"⤩"},{key:[115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,101,116,109,110,59],value:"∖"},{key:[115,101,120,116,59],value:"✶"},{key:[115,102,114,59],value:"𝔰"},{key:[115,102,114,111,119,110,59],value:"⌢"},{key:[115,104,97,114,112,59],value:"♯"},{key:[115,104,99,104,99,121,59],value:"щ"},{key:[115,104,99,121,59],value:"ш"},{key:[115,104,111,114,116,109,105,100,59],value:"∣"},{key:[115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∥"},{key:[115,104,121,59],value:"­"},{key:[115,105,103,109,97,59],value:"σ"},{key:[115,105,103,109,97,102,59],value:"ς"},{key:[115,105,103,109,97,118,59],value:"ς"},{key:[115,105,109,59],value:"∼"},{key:[115,105,109,100,111,116,59],value:"⩪"},{key:[115,105,109,101,59],value:"≃"},{key:[115,105,109,101,113,59],value:"≃"},{key:[115,105,109,103,59],value:"⪞"},{key:[115,105,109,103,69,59],value:"⪠"},{key:[115,105,109,108,59],value:"⪝"},{key:[115,105,109,108,69,59],value:"⪟"},{key:[115,105,109,110,101,59],value:"≆"},{key:[115,105,109,112,108,117,115,59],value:"⨤"},{key:[115,105,109,114,97,114,114,59],value:"⥲"},{key:[115,108,97,114,114,59],value:"←"},{key:[115,109,97,108,108,115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,109,97,115,104,112,59],value:"⨳"},{key:[115,109,101,112,97,114,115,108,59],value:"⧤"},{key:[115,109,105,100,59],value:"∣"},{key:[115,109,105,108,101,59],value:"⌣"},{key:[115,109,116,59],value:"⪪"},{key:[115,109,116,101,59],value:"⪬"},{key:[115,109,116,101,115,59],value:"⪬︀"},{key:[115,111,102,116,99,121,59],value:"ь"},{key:[115,111,108,59],value:"/"},{key:[115,111,108,98,59],value:"⧄"},{key:[115,111,108,98,97,114,59],value:"⌿"},{key:[115,111,112,102,59],value:"𝕤"},{key:[115,112,97,100,101,115,59],value:"♠"},{key:[115,112,97,100,101,115,117,105,116,59],value:"♠"},{key:[115,112,97,114,59],value:"∥"},{key:[115,113,99,97,112,59],value:"⊓"},{key:[115,113,99,97,112,115,59],value:"⊓︀"},{key:[115,113,99,117,112,59],value:"⊔"},{key:[115,113,99,117,112,115,59],value:"⊔︀"},{key:[115,113,115,117,98,59],value:"⊏"},{key:[115,113,115,117,98,101,59],value:"⊑"},{key:[115,113,115,117,98,115,101,116,59],value:"⊏"},{key:[115,113,115,117,98,115,101,116,101,113,59],value:"⊑"},{key:[115,113,115,117,112,59],value:"⊐"},{key:[115,113,115,117,112,101,59],value:"⊒"},{key:[115,113,115,117,112,115,101,116,59],value:"⊐"},{key:[115,113,115,117,112,115,101,116,101,113,59],value:"⊒"},{key:[115,113,117,59],value:"□"},{key:[115,113,117,97,114,101,59],value:"□"},{key:[115,113,117,97,114,102,59],value:"▪"},{key:[115,113,117,102,59],value:"▪"},{key:[115,114,97,114,114,59],value:"→"},{key:[115,115,99,114,59],value:"𝓈"},{key:[115,115,101,116,109,110,59],value:"∖"},{key:[115,115,109,105,108,101,59],value:"⌣"},{key:[115,115,116,97,114,102,59],value:"⋆"},{key:[115,116,97,114,59],value:"☆"},{key:[115,116,97,114,102,59],value:"★"},{key:[115,116,114,97,105,103,104,116,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[115,116,114,97,105,103,104,116,112,104,105,59],value:"ϕ"},{key:[115,116,114,110,115,59],value:"¯"},{key:[115,117,98,59],value:"⊂"},{key:[115,117,98,69,59],value:"⫅"},{key:[115,117,98,100,111,116,59],value:"⪽"},{key:[115,117,98,101,59],value:"⊆"},{key:[115,117,98,101,100,111,116,59],value:"⫃"},{key:[115,117,98,109,117,108,116,59],value:"⫁"},{key:[115,117,98,110,69,59],value:"⫋"},{key:[115,117,98,110,101,59],value:"⊊"},{key:[115,117,98,112,108,117,115,59],value:"⪿"},{key:[115,117,98,114,97,114,114,59],value:"⥹"},{key:[115,117,98,115,101,116,59],value:"⊂"},{key:[115,117,98,115,101,116,101,113,59],value:"⊆"},{key:[115,117,98,115,101,116,101,113,113,59],value:"⫅"},{key:[115,117,98,115,101,116,110,101,113,59],value:"⊊"},{key:[115,117,98,115,101,116,110,101,113,113,59],value:"⫋"},{key:[115,117,98,115,105,109,59],value:"⫇"},{key:[115,117,98,115,117,98,59],value:"⫕"},{key:[115,117,98,115,117,112,59],value:"⫓"},{key:[115,117,99,99,59],value:"≻"},{key:[115,117,99,99,97,112,112,114,111,120,59],value:"⪸"},{key:[115,117,99,99,99,117,114,108,121,101,113,59],value:"≽"},{key:[115,117,99,99,101,113,59],value:"⪰"},{key:[115,117,99,99,110,97,112,112,114,111,120,59],value:"⪺"},{key:[115,117,99,99,110,101,113,113,59],value:"⪶"},{key:[115,117,99,99,110,115,105,109,59],value:"⋩"},{key:[115,117,99,99,115,105,109,59],value:"≿"},{key:[115,117,109,59],value:"∑"},{key:[115,117,110,103,59],value:"♪"},{key:[115,117,112,49,59],value:"¹"},{key:[115,117,112,50,59],value:"²"},{key:[115,117,112,51,59],value:"³"},{key:[115,117,112,59],value:"⊃"},{key:[115,117,112,69,59],value:"⫆"},{key:[115,117,112,100,111,116,59],value:"⪾"},{key:[115,117,112,100,115,117,98,59],value:"⫘"},{key:[115,117,112,101,59],value:"⊇"},{key:[115,117,112,101,100,111,116,59],value:"⫄"},{key:[115,117,112,104,115,111,108,59],value:"⟉"},{key:[115,117,112,104,115,117,98,59],value:"⫗"},{key:[115,117,112,108,97,114,114,59],value:"⥻"},{key:[115,117,112,109,117,108,116,59],value:"⫂"},{key:[115,117,112,110,69,59],value:"⫌"},{key:[115,117,112,110,101,59],value:"⊋"},{key:[115,117,112,112,108,117,115,59],value:"⫀"},{key:[115,117,112,115,101,116,59],value:"⊃"},{key:[115,117,112,115,101,116,101,113,59],value:"⊇"},{key:[115,117,112,115,101,116,101,113,113,59],value:"⫆"},{key:[115,117,112,115,101,116,110,101,113,59],value:"⊋"},{key:[115,117,112,115,101,116,110,101,113,113,59],value:"⫌"},{key:[115,117,112,115,105,109,59],value:"⫈"},{key:[115,117,112,115,117,98,59],value:"⫔"},{key:[115,117,112,115,117,112,59],value:"⫖"},{key:[115,119,65,114,114,59],value:"⇙"},{key:[115,119,97,114,104,107,59],value:"⤦"},{key:[115,119,97,114,114,59],value:"↙"},{key:[115,119,97,114,114,111,119,59],value:"↙"},{key:[115,119,110,119,97,114,59],value:"⤪"},{key:[115,122,108,105,103,59],value:"ß"},{key:[116,97,114,103,101,116,59],value:"⌖"},{key:[116,97,117,59],value:"τ"},{key:[116,98,114,107,59],value:"⎴"},{key:[116,99,97,114,111,110,59],value:"ť"},{key:[116,99,101,100,105,108,59],value:"ţ"},{key:[116,99,121,59],value:"т"},{key:[116,100,111,116,59],value:"⃛"},{key:[116,101,108,114,101,99,59],value:"⌕"},{key:[116,102,114,59],value:"𝔱"},{key:[116,104,101,114,101,52,59],value:"∴"},{key:[116,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[116,104,101,116,97,59],value:"θ"},{key:[116,104,101,116,97,115,121,109,59],value:"ϑ"},{key:[116,104,101,116,97,118,59],value:"ϑ"},{key:[116,104,105,99,107,97,112,112,114,111,120,59],value:"≈"},{key:[116,104,105,99,107,115,105,109,59],value:"∼"},{key:[116,104,105,110,115,112,59],value:" "},{key:[116,104,107,97,112,59],value:"≈"},{key:[116,104,107,115,105,109,59],value:"∼"},{key:[116,104,111,114,110,59],value:"þ"},{key:[116,105,108,100,101,59],value:"˜"},{key:[116,105,109,101,115,59],value:"×"},{key:[116,105,109,101,115,98,59],value:"⊠"},{key:[116,105,109,101,115,98,97,114,59],value:"⨱"},{key:[116,105,109,101,115,100,59],value:"⨰"},{key:[116,105,110,116,59],value:"∭"},{key:[116,111,101,97,59],value:"⤨"},{key:[116,111,112,59],value:"⊤"},{key:[116,111,112,98,111,116,59],value:"⌶"},{key:[116,111,112,99,105,114,59],value:"⫱"},{key:[116,111,112,102,59],value:"𝕥"},{key:[116,111,112,102,111,114,107,59],value:"⫚"},{key:[116,111,115,97,59],value:"⤩"},{key:[116,112,114,105,109,101,59],value:"‴"},{key:[116,114,97,100,101,59],value:"™"},{key:[116,114,105,97,110,103,108,101,59],value:"▵"},{key:[116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▿"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◃"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⊴"},{key:[116,114,105,97,110,103,108,101,113,59],value:"≜"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▹"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⊵"},{key:[116,114,105,100,111,116,59],value:"◬"},{key:[116,114,105,101,59],value:"≜"},{key:[116,114,105,109,105,110,117,115,59],value:"⨺"},{key:[116,114,105,112,108,117,115,59],value:"⨹"},{key:[116,114,105,115,98,59],value:"⧍"},{key:[116,114,105,116,105,109,101,59],value:"⨻"},{key:[116,114,112,101,122,105,117,109,59],value:"⏢"},{key:[116,115,99,114,59],value:"𝓉"},{key:[116,115,99,121,59],value:"ц"},{key:[116,115,104,99,121,59],value:"ћ"},{key:[116,115,116,114,111,107,59],value:"ŧ"},{key:[116,119,105,120,116,59],value:"≬"},{key:[116,119,111,104,101,97,100,108,101,102,116,97,114,114,111,119,59],value:"↞"},{key:[116,119,111,104,101,97,100,114,105,103,104,116,97,114,114,111,119,59],value:"↠"},{key:[117,65,114,114,59],value:"⇑"},{key:[117,72,97,114,59],value:"⥣"},{key:[117,97,99,117,116,101,59],value:"ú"},{key:[117,97,114,114,59],value:"↑"},{key:[117,98,114,99,121,59],value:"ў"},{key:[117,98,114,101,118,101,59],value:"ŭ"},{key:[117,99,105,114,99,59],value:"û"},{key:[117,99,121,59],value:"у"},{key:[117,100,97,114,114,59],value:"⇅"},{key:[117,100,98,108,97,99,59],value:"ű"},{key:[117,100,104,97,114,59],value:"⥮"},{key:[117,102,105,115,104,116,59],value:"⥾"},{key:[117,102,114,59],value:"𝔲"},{key:[117,103,114,97,118,101,59],value:"ù"},{key:[117,104,97,114,108,59],value:"↿"},{key:[117,104,97,114,114,59],value:"↾"},{key:[117,104,98,108,107,59],value:"▀"},{key:[117,108,99,111,114,110,59],value:"⌜"},{key:[117,108,99,111,114,110,101,114,59],value:"⌜"},{key:[117,108,99,114,111,112,59],value:"⌏"},{key:[117,108,116,114,105,59],value:"◸"},{key:[117,109,97,99,114,59],value:"ū"},{key:[117,109,108,59],value:"¨"},{key:[117,111,103,111,110,59],value:"ų"},{key:[117,111,112,102,59],value:"𝕦"},{key:[117,112,97,114,114,111,119,59],value:"↑"},{key:[117,112,100,111,119,110,97,114,114,111,119,59],value:"↕"},{key:[117,112,104,97,114,112,111,111,110,108,101,102,116,59],value:"↿"},{key:[117,112,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"↾"},{key:[117,112,108,117,115,59],value:"⊎"},{key:[117,112,115,105,59],value:"υ"},{key:[117,112,115,105,104,59],value:"ϒ"},{key:[117,112,115,105,108,111,110,59],value:"υ"},{key:[117,112,117,112,97,114,114,111,119,115,59],value:"⇈"},{key:[117,114,99,111,114,110,59],value:"⌝"},{key:[117,114,99,111,114,110,101,114,59],value:"⌝"},{key:[117,114,99,114,111,112,59],value:"⌎"},{key:[117,114,105,110,103,59],value:"ů"},{key:[117,114,116,114,105,59],value:"◹"},{key:[117,115,99,114,59],value:"𝓊"},{key:[117,116,100,111,116,59],value:"⋰"},{key:[117,116,105,108,100,101,59],value:"ũ"},{key:[117,116,114,105,59],value:"▵"},{key:[117,116,114,105,102,59],value:"▴"},{key:[117,117,97,114,114,59],value:"⇈"},{key:[117,117,109,108,59],value:"ü"},{key:[117,119,97,110,103,108,101,59],value:"⦧"},{key:[118,65,114,114,59],value:"⇕"},{key:[118,66,97,114,59],value:"⫨"},{key:[118,66,97,114,118,59],value:"⫩"},{key:[118,68,97,115,104,59],value:"⊨"},{key:[118,97,110,103,114,116,59],value:"⦜"},{key:[118,97,114,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[118,97,114,107,97,112,112,97,59],value:"ϰ"},{key:[118,97,114,110,111,116,104,105,110,103,59],value:"∅"},{key:[118,97,114,112,104,105,59],value:"ϕ"},{key:[118,97,114,112,105,59],value:"ϖ"},{key:[118,97,114,112,114,111,112,116,111,59],value:"∝"},{key:[118,97,114,114,59],value:"↕"},{key:[118,97,114,114,104,111,59],value:"ϱ"},{key:[118,97,114,115,105,103,109,97,59],value:"ς"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,59],value:"⊊︀"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,113,59],value:"⫋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,59],value:"⊋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,113,59],value:"⫌︀"},{key:[118,97,114,116,104,101,116,97,59],value:"ϑ"},{key:[118,97,114,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⊲"},{key:[118,97,114,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⊳"},{key:[118,99,121,59],value:"в"},{key:[118,100,97,115,104,59],value:"⊢"},{key:[118,101,101,59],value:"∨"},{key:[118,101,101,98,97,114,59],value:"⊻"},{key:[118,101,101,101,113,59],value:"≚"},{key:[118,101,108,108,105,112,59],value:"⋮"},{key:[118,101,114,98,97,114,59],value:"|"},{key:[118,101,114,116,59],value:"|"},{key:[118,102,114,59],value:"𝔳"},{key:[118,108,116,114,105,59],value:"⊲"},{key:[118,110,115,117,98,59],value:"⊂⃒"},{key:[118,110,115,117,112,59],value:"⊃⃒"},{key:[118,111,112,102,59],value:"𝕧"},{key:[118,112,114,111,112,59],value:"∝"},{key:[118,114,116,114,105,59],value:"⊳"},{key:[118,115,99,114,59],value:"𝓋"},{key:[118,115,117,98,110,69,59],value:"⫋︀"},{key:[118,115,117,98,110,101,59],value:"⊊︀"},{key:[118,115,117,112,110,69,59],value:"⫌︀"},{key:[118,115,117,112,110,101,59],value:"⊋︀"},{key:[118,122,105,103,122,97,103,59],value:"⦚"},{key:[119,99,105,114,99,59],value:"ŵ"},{key:[119,101,100,98,97,114,59],value:"⩟"},{key:[119,101,100,103,101,59],value:"∧"},{key:[119,101,100,103,101,113,59],value:"≙"},{key:[119,101,105,101,114,112,59],value:"℘"},{key:[119,102,114,59],value:"𝔴"},{key:[119,111,112,102,59],value:"𝕨"},{key:[119,112,59],value:"℘"},{key:[119,114,59],value:"≀"},{key:[119,114,101,97,116,104,59],value:"≀"},{key:[119,115,99,114,59],value:"𝓌"},{key:[120,99,97,112,59],value:"⋂"},{key:[120,99,105,114,99,59],value:"◯"},{key:[120,99,117,112,59],value:"⋃"},{key:[120,100,116,114,105,59],value:"▽"},{key:[120,102,114,59],value:"𝔵"},{key:[120,104,65,114,114,59],value:"⟺"},{key:[120,104,97,114,114,59],value:"⟷"},{key:[120,105,59],value:"ξ"},{key:[120,108,65,114,114,59],value:"⟸"},{key:[120,108,97,114,114,59],value:"⟵"},{key:[120,109,97,112,59],value:"⟼"},{key:[120,110,105,115,59],value:"⋻"},{key:[120,111,100,111,116,59],value:"⨀"},{key:[120,111,112,102,59],value:"𝕩"},{key:[120,111,112,108,117,115,59],value:"⨁"},{key:[120,111,116,105,109,101,59],value:"⨂"},{key:[120,114,65,114,114,59],value:"⟹"},{key:[120,114,97,114,114,59],value:"⟶"},{key:[120,115,99,114,59],value:"𝓍"},{key:[120,115,113,99,117,112,59],value:"⨆"},{key:[120,117,112,108,117,115,59],value:"⨄"},{key:[120,117,116,114,105,59],value:"△"},{key:[120,118,101,101,59],value:"⋁"},{key:[120,119,101,100,103,101,59],value:"⋀"},{key:[121,97,99,117,116,101,59],value:"ý"},{key:[121,97,99,121,59],value:"я"},{key:[121,99,105,114,99,59],value:"ŷ"},{key:[121,99,121,59],value:"ы"},{key:[121,101,110,59],value:"¥"},{key:[121,102,114,59],value:"𝔶"},{key:[121,105,99,121,59],value:"ї"},{key:[121,111,112,102,59],value:"𝕪"},{key:[121,115,99,114,59],value:"𝓎"},{key:[121,117,99,121,59],value:"ю"},{key:[121,117,109,108,59],value:"ÿ"},{key:[122,97,99,117,116,101,59],value:"ź"},{key:[122,99,97,114,111,110,59],value:"ž"},{key:[122,99,121,59],value:"з"},{key:[122,100,111,116,59],value:"ż"},{key:[122,101,101,116,114,102,59],value:"ℨ"},{key:[122,101,116,97,59],value:"ζ"},{key:[122,102,114,59],value:"𝔷"},{key:[122,104,99,121,59],value:"ж"},{key:[122,105,103,114,97,114,114,59],value:"⇝"},{key:[122,111,112,102,59],value:"𝕫"},{key:[122,115,99,114,59],value:"𝓏"},{key:[122,119,106,59],value:"‍"},{key:[122,119,110,106,59],value:"‌"}];var UnicodePcCodePoint;(function(eo){eo[eo.LOW_LINE=95]="LOW_LINE",eo[eo.UNDERTIE=8255]="UNDERTIE",eo[eo.CHARACTER_TIE=8256]="CHARACTER_TIE",eo[eo.INVERTED_UNDERTIE=8276]="INVERTED_UNDERTIE",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE=65075]="PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE=65076]="PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE",eo[eo.DASHED_LOW_LINE=65101]="DASHED_LOW_LINE",eo[eo.CENTRELINE_LOW_LINE=65102]="CENTRELINE_LOW_LINE",eo[eo.WAVY_LOW_LINE=65103]="WAVY_LOW_LINE",eo[eo.FULLWIDTH_LOW_LINE=65343]="FULLWIDTH_LOW_LINE"})(UnicodePcCodePoint||(UnicodePcCodePoint={}));var UnicodePdCodePoint;(function(eo){eo[eo.HYPHEN_MINUS=45]="HYPHEN_MINUS",eo[eo.ARMENIAN_HYPHEN=1418]="ARMENIAN_HYPHEN",eo[eo.HEBREW_PUNCTUATION_MAQAF=1470]="HEBREW_PUNCTUATION_MAQAF",eo[eo.CANADIAN_SYLLABICS_HYPHEN=5120]="CANADIAN_SYLLABICS_HYPHEN",eo[eo.MONGOLIAN_TODO_SOFT_HYPHEN=6150]="MONGOLIAN_TODO_SOFT_HYPHEN",eo[eo.HYPHEN=8208]="HYPHEN",eo[eo.NON_BREAKING_HYPHEN=8209]="NON_BREAKING_HYPHEN",eo[eo.FIGURE_DASH=8210]="FIGURE_DASH",eo[eo.EN_DASH=8211]="EN_DASH",eo[eo.EM_DASH=8212]="EM_DASH",eo[eo.HORIZONTAL_BAR=8213]="HORIZONTAL_BAR",eo[eo.DOUBLE_OBLIQUE_HYPHEN=11799]="DOUBLE_OBLIQUE_HYPHEN",eo[eo.HYPHEN_WITH_DIAERESIS=11802]="HYPHEN_WITH_DIAERESIS",eo[eo.TWO_EM_DASH=11834]="TWO_EM_DASH",eo[eo.THREE_EM_DASH=11835]="THREE_EM_DASH",eo[eo.DOUBLE_HYPHEN=11840]="DOUBLE_HYPHEN",eo[eo.WAVE_DASH=12316]="WAVE_DASH",eo[eo.WAVY_DASH=12336]="WAVY_DASH",eo[eo.KATAKANA_HIRAGANA_DOUBLE_HYPHEN=12448]="KATAKANA_HIRAGANA_DOUBLE_HYPHEN",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_EM_DASH=65073]="PRESENTATION_FORM_FOR_VERTICAL_EM_DASH",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_EN_DASH=65074]="PRESENTATION_FORM_FOR_VERTICAL_EN_DASH",eo[eo.SMALL_EM_DASH=65112]="SMALL_EM_DASH",eo[eo.SMALL_HYPHEN_MINUS=65123]="SMALL_HYPHEN_MINUS",eo[eo.FULLWIDTH_HYPHEN_MINUS=65293]="FULLWIDTH_HYPHEN_MINUS",eo[eo.YEZIDI_HYPHENATION_MARK=69293]="YEZIDI_HYPHENATION_MARK"})(UnicodePdCodePoint||(UnicodePdCodePoint={}));var UnicodePeCodePoint;(function(eo){eo[eo.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",eo[eo.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",eo[eo.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",eo[eo.TIBETAN_MARK_GUG_RTAGS_GYAS=3899]="TIBETAN_MARK_GUG_RTAGS_GYAS",eo[eo.TIBETAN_MARK_ANG_KHANG_GYAS=3901]="TIBETAN_MARK_ANG_KHANG_GYAS",eo[eo.OGHAM_REVERSED_FEATHER_MARK=5788]="OGHAM_REVERSED_FEATHER_MARK",eo[eo.RIGHT_SQUARE_BRACKET_WITH_QUILL=8262]="RIGHT_SQUARE_BRACKET_WITH_QUILL",eo[eo.SUPERSCRIPT_RIGHT_PARENTHESIS=8318]="SUPERSCRIPT_RIGHT_PARENTHESIS",eo[eo.SUBSCRIPT_RIGHT_PARENTHESIS=8334]="SUBSCRIPT_RIGHT_PARENTHESIS",eo[eo.RIGHT_CEILING=8969]="RIGHT_CEILING",eo[eo.RIGHT_FLOOR=8971]="RIGHT_FLOOR",eo[eo.RIGHT_POINTING_ANGLE_BRACKET=9002]="RIGHT_POINTING_ANGLE_BRACKET",eo[eo.MEDIUM_RIGHT_PARENTHESIS_ORNAMENT=10089]="MEDIUM_RIGHT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT=10091]="MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10093]="MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10095]="HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",eo[eo.HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10097]="HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT=10099]="LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT",eo[eo.MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT=10101]="MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT",eo[eo.RIGHT_S_SHAPED_BAG_DELIMITER=10182]="RIGHT_S_SHAPED_BAG_DELIMITER",eo[eo.MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET=10215]="MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET",eo[eo.MATHEMATICAL_RIGHT_ANGLE_BRACKET=10217]="MATHEMATICAL_RIGHT_ANGLE_BRACKET",eo[eo.MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET=10219]="MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET",eo[eo.MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET=10221]="MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS=10223]="MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS",eo[eo.RIGHT_WHITE_CURLY_BRACKET=10628]="RIGHT_WHITE_CURLY_BRACKET",eo[eo.RIGHT_WHITE_PARENTHESIS=10630]="RIGHT_WHITE_PARENTHESIS",eo[eo.Z_NOTATION_RIGHT_IMAGE_BRACKET=10632]="Z_NOTATION_RIGHT_IMAGE_BRACKET",eo[eo.Z_NOTATION_RIGHT_BINDING_BRACKET=10634]="Z_NOTATION_RIGHT_BINDING_BRACKET",eo[eo.RIGHT_SQUARE_BRACKET_WITH_UNDERBAR=10636]="RIGHT_SQUARE_BRACKET_WITH_UNDERBAR",eo[eo.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10638]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",eo[eo.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10640]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",eo[eo.RIGHT_ANGLE_BRACKET_WITH_DOT=10642]="RIGHT_ANGLE_BRACKET_WITH_DOT",eo[eo.RIGHT_ARC_GREATER_THAN_BRACKET=10644]="RIGHT_ARC_GREATER_THAN_BRACKET",eo[eo.DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET=10646]="DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET",eo[eo.RIGHT_BLACK_TORTOISE_SHELL_BRACKET=10648]="RIGHT_BLACK_TORTOISE_SHELL_BRACKET",eo[eo.RIGHT_WIGGLY_FENCE=10713]="RIGHT_WIGGLY_FENCE",eo[eo.RIGHT_DOUBLE_WIGGLY_FENCE=10715]="RIGHT_DOUBLE_WIGGLY_FENCE",eo[eo.RIGHT_POINTING_CURVED_ANGLE_BRACKET=10749]="RIGHT_POINTING_CURVED_ANGLE_BRACKET",eo[eo.TOP_RIGHT_HALF_BRACKET=11811]="TOP_RIGHT_HALF_BRACKET",eo[eo.BOTTOM_RIGHT_HALF_BRACKET=11813]="BOTTOM_RIGHT_HALF_BRACKET",eo[eo.RIGHT_SIDEWAYS_U_BRACKET=11815]="RIGHT_SIDEWAYS_U_BRACKET",eo[eo.RIGHT_DOUBLE_PARENTHESIS=11817]="RIGHT_DOUBLE_PARENTHESIS",eo[eo.RIGHT_ANGLE_BRACKET=12297]="RIGHT_ANGLE_BRACKET",eo[eo.RIGHT_DOUBLE_ANGLE_BRACKET=12299]="RIGHT_DOUBLE_ANGLE_BRACKET",eo[eo.RIGHT_CORNER_BRACKET=12301]="RIGHT_CORNER_BRACKET",eo[eo.RIGHT_WHITE_CORNER_BRACKET=12303]="RIGHT_WHITE_CORNER_BRACKET",eo[eo.RIGHT_BLACK_LENTICULAR_BRACKET=12305]="RIGHT_BLACK_LENTICULAR_BRACKET",eo[eo.RIGHT_TORTOISE_SHELL_BRACKET=12309]="RIGHT_TORTOISE_SHELL_BRACKET",eo[eo.RIGHT_WHITE_LENTICULAR_BRACKET=12311]="RIGHT_WHITE_LENTICULAR_BRACKET",eo[eo.RIGHT_WHITE_TORTOISE_SHELL_BRACKET=12313]="RIGHT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.RIGHT_WHITE_SQUARE_BRACKET=12315]="RIGHT_WHITE_SQUARE_BRACKET",eo[eo.DOUBLE_PRIME_QUOTATION_MARK=12318]="DOUBLE_PRIME_QUOTATION_MARK",eo[eo.LOW_DOUBLE_PRIME_QUOTATION_MARK=12319]="LOW_DOUBLE_PRIME_QUOTATION_MARK",eo[eo.ORNATE_LEFT_PARENTHESIS=64830]="ORNATE_LEFT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET=65048]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS=65078]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET=65080]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET=65082]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET=65084]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET=65086]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET=65088]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET=65090]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET=65092]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET=65096]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET",eo[eo.SMALL_RIGHT_PARENTHESIS=65114]="SMALL_RIGHT_PARENTHESIS",eo[eo.SMALL_RIGHT_CURLY_BRACKET=65116]="SMALL_RIGHT_CURLY_BRACKET",eo[eo.SMALL_RIGHT_TORTOISE_SHELL_BRACKET=65118]="SMALL_RIGHT_TORTOISE_SHELL_BRACKET",eo[eo.FULLWIDTH_RIGHT_PARENTHESIS=65289]="FULLWIDTH_RIGHT_PARENTHESIS",eo[eo.FULLWIDTH_RIGHT_SQUARE_BRACKET=65341]="FULLWIDTH_RIGHT_SQUARE_BRACKET",eo[eo.FULLWIDTH_RIGHT_CURLY_BRACKET=65373]="FULLWIDTH_RIGHT_CURLY_BRACKET",eo[eo.FULLWIDTH_RIGHT_WHITE_PARENTHESIS=65376]="FULLWIDTH_RIGHT_WHITE_PARENTHESIS",eo[eo.HALFWIDTH_RIGHT_CORNER_BRACKET=65379]="HALFWIDTH_RIGHT_CORNER_BRACKET"})(UnicodePeCodePoint||(UnicodePeCodePoint={}));var UnicodePfCodePoint;(function(eo){eo[eo.RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=187]="RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",eo[eo.RIGHT_SINGLE_QUOTATION_MARK=8217]="RIGHT_SINGLE_QUOTATION_MARK",eo[eo.RIGHT_DOUBLE_QUOTATION_MARK=8221]="RIGHT_DOUBLE_QUOTATION_MARK",eo[eo.SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK=8250]="SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK",eo[eo.RIGHT_SUBSTITUTION_BRACKET=11779]="RIGHT_SUBSTITUTION_BRACKET",eo[eo.RIGHT_DOTTED_SUBSTITUTION_BRACKET=11781]="RIGHT_DOTTED_SUBSTITUTION_BRACKET",eo[eo.RIGHT_TRANSPOSITION_BRACKET=11786]="RIGHT_TRANSPOSITION_BRACKET",eo[eo.RIGHT_RAISED_OMISSION_BRACKET=11789]="RIGHT_RAISED_OMISSION_BRACKET",eo[eo.RIGHT_LOW_PARAPHRASE_BRACKET=11805]="RIGHT_LOW_PARAPHRASE_BRACKET",eo[eo.RIGHT_VERTICAL_BAR_WITH_QUILL=11809]="RIGHT_VERTICAL_BAR_WITH_QUILL"})(UnicodePfCodePoint||(UnicodePfCodePoint={}));var UnicodePiCodePoint;(function(eo){eo[eo.LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=171]="LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",eo[eo.LEFT_SINGLE_QUOTATION_MARK=8216]="LEFT_SINGLE_QUOTATION_MARK",eo[eo.SINGLE_HIGH_REVERSED_9_QUOTATION_MARK=8219]="SINGLE_HIGH_REVERSED_9_QUOTATION_MARK",eo[eo.LEFT_DOUBLE_QUOTATION_MARK=8220]="LEFT_DOUBLE_QUOTATION_MARK",eo[eo.DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK=8223]="DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK",eo[eo.SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK=8249]="SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK",eo[eo.LEFT_SUBSTITUTION_BRACKET=11778]="LEFT_SUBSTITUTION_BRACKET",eo[eo.LEFT_DOTTED_SUBSTITUTION_BRACKET=11780]="LEFT_DOTTED_SUBSTITUTION_BRACKET",eo[eo.LEFT_TRANSPOSITION_BRACKET=11785]="LEFT_TRANSPOSITION_BRACKET",eo[eo.LEFT_RAISED_OMISSION_BRACKET=11788]="LEFT_RAISED_OMISSION_BRACKET",eo[eo.LEFT_LOW_PARAPHRASE_BRACKET=11804]="LEFT_LOW_PARAPHRASE_BRACKET",eo[eo.LEFT_VERTICAL_BAR_WITH_QUILL=11808]="LEFT_VERTICAL_BAR_WITH_QUILL"})(UnicodePiCodePoint||(UnicodePiCodePoint={}));var UnicodePoCodePoint;(function(eo){eo[eo.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",eo[eo.QUOTATION_MARK=34]="QUOTATION_MARK",eo[eo.NUMBER_SIGN=35]="NUMBER_SIGN",eo[eo.PERCENT_SIGN=37]="PERCENT_SIGN",eo[eo.AMPERSAND=38]="AMPERSAND",eo[eo.APOSTROPHE=39]="APOSTROPHE",eo[eo.ASTERISK=42]="ASTERISK",eo[eo.COMMA=44]="COMMA",eo[eo.FULL_STOP=46]="FULL_STOP",eo[eo.SOLIDUS=47]="SOLIDUS",eo[eo.COLON=58]="COLON",eo[eo.SEMICOLON=59]="SEMICOLON",eo[eo.QUESTION_MARK=63]="QUESTION_MARK",eo[eo.COMMERCIAL_AT=64]="COMMERCIAL_AT",eo[eo.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",eo[eo.INVERTED_EXCLAMATION_MARK=161]="INVERTED_EXCLAMATION_MARK",eo[eo.SECTION_SIGN=167]="SECTION_SIGN",eo[eo.PILCROW_SIGN=182]="PILCROW_SIGN",eo[eo.MIDDLE_DOT=183]="MIDDLE_DOT",eo[eo.INVERTED_QUESTION_MARK=191]="INVERTED_QUESTION_MARK",eo[eo.GREEK_QUESTION_MARK=894]="GREEK_QUESTION_MARK",eo[eo.GREEK_ANO_TELEIA=903]="GREEK_ANO_TELEIA",eo[eo.ARMENIAN_APOSTROPHE=1370]="ARMENIAN_APOSTROPHE",eo[eo.ARMENIAN_EMPHASIS_MARK=1371]="ARMENIAN_EMPHASIS_MARK",eo[eo.ARMENIAN_EXCLAMATION_MARK=1372]="ARMENIAN_EXCLAMATION_MARK",eo[eo.ARMENIAN_COMMA=1373]="ARMENIAN_COMMA",eo[eo.ARMENIAN_QUESTION_MARK=1374]="ARMENIAN_QUESTION_MARK",eo[eo.ARMENIAN_ABBREVIATION_MARK=1375]="ARMENIAN_ABBREVIATION_MARK",eo[eo.ARMENIAN_FULL_STOP=1417]="ARMENIAN_FULL_STOP",eo[eo.HEBREW_PUNCTUATION_PASEQ=1472]="HEBREW_PUNCTUATION_PASEQ",eo[eo.HEBREW_PUNCTUATION_SOF_PASUQ=1475]="HEBREW_PUNCTUATION_SOF_PASUQ",eo[eo.HEBREW_PUNCTUATION_NUN_HAFUKHA=1478]="HEBREW_PUNCTUATION_NUN_HAFUKHA",eo[eo.HEBREW_PUNCTUATION_GERESH=1523]="HEBREW_PUNCTUATION_GERESH",eo[eo.HEBREW_PUNCTUATION_GERSHAYIM=1524]="HEBREW_PUNCTUATION_GERSHAYIM",eo[eo.ARABIC_INDIC_PER_MILLE_SIGN=1545]="ARABIC_INDIC_PER_MILLE_SIGN",eo[eo.ARABIC_INDIC_PER_TEN_THOUSAND_SIGN=1546]="ARABIC_INDIC_PER_TEN_THOUSAND_SIGN",eo[eo.ARABIC_COMMA=1548]="ARABIC_COMMA",eo[eo.ARABIC_DATE_SEPARATOR=1549]="ARABIC_DATE_SEPARATOR",eo[eo.ARABIC_SEMICOLON=1563]="ARABIC_SEMICOLON",eo[eo.ARABIC_TRIPLE_DOT_PUNCTUATION_MARK=1566]="ARABIC_TRIPLE_DOT_PUNCTUATION_MARK",eo[eo.ARABIC_QUESTION_MARK=1567]="ARABIC_QUESTION_MARK",eo[eo.ARABIC_PERCENT_SIGN=1642]="ARABIC_PERCENT_SIGN",eo[eo.ARABIC_DECIMAL_SEPARATOR=1643]="ARABIC_DECIMAL_SEPARATOR",eo[eo.ARABIC_THOUSANDS_SEPARATOR=1644]="ARABIC_THOUSANDS_SEPARATOR",eo[eo.ARABIC_FIVE_POINTED_STAR=1645]="ARABIC_FIVE_POINTED_STAR",eo[eo.ARABIC_FULL_STOP=1748]="ARABIC_FULL_STOP",eo[eo.SYRIAC_END_OF_PARAGRAPH=1792]="SYRIAC_END_OF_PARAGRAPH",eo[eo.SYRIAC_SUPRALINEAR_FULL_STOP=1793]="SYRIAC_SUPRALINEAR_FULL_STOP",eo[eo.SYRIAC_SUBLINEAR_FULL_STOP=1794]="SYRIAC_SUBLINEAR_FULL_STOP",eo[eo.SYRIAC_SUPRALINEAR_COLON=1795]="SYRIAC_SUPRALINEAR_COLON",eo[eo.SYRIAC_SUBLINEAR_COLON=1796]="SYRIAC_SUBLINEAR_COLON",eo[eo.SYRIAC_HORIZONTAL_COLON=1797]="SYRIAC_HORIZONTAL_COLON",eo[eo.SYRIAC_COLON_SKEWED_LEFT=1798]="SYRIAC_COLON_SKEWED_LEFT",eo[eo.SYRIAC_COLON_SKEWED_RIGHT=1799]="SYRIAC_COLON_SKEWED_RIGHT",eo[eo.SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT=1800]="SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT",eo[eo.SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT=1801]="SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT",eo[eo.SYRIAC_CONTRACTION=1802]="SYRIAC_CONTRACTION",eo[eo.SYRIAC_HARKLEAN_OBELUS=1803]="SYRIAC_HARKLEAN_OBELUS",eo[eo.SYRIAC_HARKLEAN_METOBELUS=1804]="SYRIAC_HARKLEAN_METOBELUS",eo[eo.SYRIAC_HARKLEAN_ASTERISCUS=1805]="SYRIAC_HARKLEAN_ASTERISCUS",eo[eo.NKO_SYMBOL_GBAKURUNEN=2039]="NKO_SYMBOL_GBAKURUNEN",eo[eo.NKO_COMMA=2040]="NKO_COMMA",eo[eo.NKO_EXCLAMATION_MARK=2041]="NKO_EXCLAMATION_MARK",eo[eo.SAMARITAN_PUNCTUATION_NEQUDAA=2096]="SAMARITAN_PUNCTUATION_NEQUDAA",eo[eo.SAMARITAN_PUNCTUATION_AFSAAQ=2097]="SAMARITAN_PUNCTUATION_AFSAAQ",eo[eo.SAMARITAN_PUNCTUATION_ANGED=2098]="SAMARITAN_PUNCTUATION_ANGED",eo[eo.SAMARITAN_PUNCTUATION_BAU=2099]="SAMARITAN_PUNCTUATION_BAU",eo[eo.SAMARITAN_PUNCTUATION_ATMAAU=2100]="SAMARITAN_PUNCTUATION_ATMAAU",eo[eo.SAMARITAN_PUNCTUATION_SHIYYAALAA=2101]="SAMARITAN_PUNCTUATION_SHIYYAALAA",eo[eo.SAMARITAN_ABBREVIATION_MARK=2102]="SAMARITAN_ABBREVIATION_MARK",eo[eo.SAMARITAN_PUNCTUATION_MELODIC_QITSA=2103]="SAMARITAN_PUNCTUATION_MELODIC_QITSA",eo[eo.SAMARITAN_PUNCTUATION_ZIQAA=2104]="SAMARITAN_PUNCTUATION_ZIQAA",eo[eo.SAMARITAN_PUNCTUATION_QITSA=2105]="SAMARITAN_PUNCTUATION_QITSA",eo[eo.SAMARITAN_PUNCTUATION_ZAEF=2106]="SAMARITAN_PUNCTUATION_ZAEF",eo[eo.SAMARITAN_PUNCTUATION_TURU=2107]="SAMARITAN_PUNCTUATION_TURU",eo[eo.SAMARITAN_PUNCTUATION_ARKAANU=2108]="SAMARITAN_PUNCTUATION_ARKAANU",eo[eo.SAMARITAN_PUNCTUATION_SOF_MASHFAAT=2109]="SAMARITAN_PUNCTUATION_SOF_MASHFAAT",eo[eo.SAMARITAN_PUNCTUATION_ANNAAU=2110]="SAMARITAN_PUNCTUATION_ANNAAU",eo[eo.MANDAIC_PUNCTUATION=2142]="MANDAIC_PUNCTUATION",eo[eo.DEVANAGARI_DANDA=2404]="DEVANAGARI_DANDA",eo[eo.DEVANAGARI_DOUBLE_DANDA=2405]="DEVANAGARI_DOUBLE_DANDA",eo[eo.DEVANAGARI_ABBREVIATION_SIGN=2416]="DEVANAGARI_ABBREVIATION_SIGN",eo[eo.BENGALI_ABBREVIATION_SIGN=2557]="BENGALI_ABBREVIATION_SIGN",eo[eo.GURMUKHI_ABBREVIATION_SIGN=2678]="GURMUKHI_ABBREVIATION_SIGN",eo[eo.GUJARATI_ABBREVIATION_SIGN=2800]="GUJARATI_ABBREVIATION_SIGN",eo[eo.TELUGU_SIGN_SIDDHAM=3191]="TELUGU_SIGN_SIDDHAM",eo[eo.KANNADA_SIGN_SIDDHAM=3204]="KANNADA_SIGN_SIDDHAM",eo[eo.SINHALA_PUNCTUATION_KUNDDALIYA=3572]="SINHALA_PUNCTUATION_KUNDDALIYA",eo[eo.THAI_CHARACTER_FONGMAN=3663]="THAI_CHARACTER_FONGMAN",eo[eo.THAI_CHARACTER_ANGKHANKHU=3674]="THAI_CHARACTER_ANGKHANKHU",eo[eo.THAI_CHARACTER_KHOMUT=3675]="THAI_CHARACTER_KHOMUT",eo[eo.TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA=3844]="TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA",eo[eo.TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA=3845]="TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA",eo[eo.TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA=3846]="TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA",eo[eo.TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA=3847]="TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA",eo[eo.TIBETAN_MARK_SBRUL_SHAD=3848]="TIBETAN_MARK_SBRUL_SHAD",eo[eo.TIBETAN_MARK_BSKUR_YIG_MGO=3849]="TIBETAN_MARK_BSKUR_YIG_MGO",eo[eo.TIBETAN_MARK_BKA__SHOG_YIG_MGO=3850]="TIBETAN_MARK_BKA__SHOG_YIG_MGO",eo[eo.TIBETAN_MARK_INTERSYLLABIC_TSHEG=3851]="TIBETAN_MARK_INTERSYLLABIC_TSHEG",eo[eo.TIBETAN_MARK_DELIMITER_TSHEG_BSTAR=3852]="TIBETAN_MARK_DELIMITER_TSHEG_BSTAR",eo[eo.TIBETAN_MARK_SHAD=3853]="TIBETAN_MARK_SHAD",eo[eo.TIBETAN_MARK_NYIS_SHAD=3854]="TIBETAN_MARK_NYIS_SHAD",eo[eo.TIBETAN_MARK_TSHEG_SHAD=3855]="TIBETAN_MARK_TSHEG_SHAD",eo[eo.TIBETAN_MARK_NYIS_TSHEG_SHAD=3856]="TIBETAN_MARK_NYIS_TSHEG_SHAD",eo[eo.TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD=3857]="TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD",eo[eo.TIBETAN_MARK_RGYA_GRAM_SHAD=3858]="TIBETAN_MARK_RGYA_GRAM_SHAD",eo[eo.TIBETAN_MARK_GTER_TSHEG=3860]="TIBETAN_MARK_GTER_TSHEG",eo[eo.TIBETAN_MARK_PALUTA=3973]="TIBETAN_MARK_PALUTA",eo[eo.TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN=4048]="TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN",eo[eo.TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN=4049]="TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN",eo[eo.TIBETAN_MARK_NYIS_TSHEG=4050]="TIBETAN_MARK_NYIS_TSHEG",eo[eo.TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA=4051]="TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA",eo[eo.TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA=4052]="TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA",eo[eo.TIBETAN_MARK_LEADING_MCHAN_RTAGS=4057]="TIBETAN_MARK_LEADING_MCHAN_RTAGS",eo[eo.TIBETAN_MARK_TRAILING_MCHAN_RTAGS=4058]="TIBETAN_MARK_TRAILING_MCHAN_RTAGS",eo[eo.MYANMAR_SIGN_LITTLE_SECTION=4170]="MYANMAR_SIGN_LITTLE_SECTION",eo[eo.MYANMAR_SIGN_SECTION=4171]="MYANMAR_SIGN_SECTION",eo[eo.MYANMAR_SYMBOL_LOCATIVE=4172]="MYANMAR_SYMBOL_LOCATIVE",eo[eo.MYANMAR_SYMBOL_COMPLETED=4173]="MYANMAR_SYMBOL_COMPLETED",eo[eo.MYANMAR_SYMBOL_AFOREMENTIONED=4174]="MYANMAR_SYMBOL_AFOREMENTIONED",eo[eo.MYANMAR_SYMBOL_GENITIVE=4175]="MYANMAR_SYMBOL_GENITIVE",eo[eo.GEORGIAN_PARAGRAPH_SEPARATOR=4347]="GEORGIAN_PARAGRAPH_SEPARATOR",eo[eo.ETHIOPIC_SECTION_MARK=4960]="ETHIOPIC_SECTION_MARK",eo[eo.ETHIOPIC_WORDSPACE=4961]="ETHIOPIC_WORDSPACE",eo[eo.ETHIOPIC_FULL_STOP=4962]="ETHIOPIC_FULL_STOP",eo[eo.ETHIOPIC_COMMA=4963]="ETHIOPIC_COMMA",eo[eo.ETHIOPIC_SEMICOLON=4964]="ETHIOPIC_SEMICOLON",eo[eo.ETHIOPIC_COLON=4965]="ETHIOPIC_COLON",eo[eo.ETHIOPIC_PREFACE_COLON=4966]="ETHIOPIC_PREFACE_COLON",eo[eo.ETHIOPIC_QUESTION_MARK=4967]="ETHIOPIC_QUESTION_MARK",eo[eo.ETHIOPIC_PARAGRAPH_SEPARATOR=4968]="ETHIOPIC_PARAGRAPH_SEPARATOR",eo[eo.CANADIAN_SYLLABICS_FULL_STOP=5742]="CANADIAN_SYLLABICS_FULL_STOP",eo[eo.RUNIC_SINGLE_PUNCTUATION=5867]="RUNIC_SINGLE_PUNCTUATION",eo[eo.RUNIC_MULTIPLE_PUNCTUATION=5868]="RUNIC_MULTIPLE_PUNCTUATION",eo[eo.RUNIC_CROSS_PUNCTUATION=5869]="RUNIC_CROSS_PUNCTUATION",eo[eo.PHILIPPINE_SINGLE_PUNCTUATION=5941]="PHILIPPINE_SINGLE_PUNCTUATION",eo[eo.PHILIPPINE_DOUBLE_PUNCTUATION=5942]="PHILIPPINE_DOUBLE_PUNCTUATION",eo[eo.KHMER_SIGN_KHAN=6100]="KHMER_SIGN_KHAN",eo[eo.KHMER_SIGN_BARIYOOSAN=6101]="KHMER_SIGN_BARIYOOSAN",eo[eo.KHMER_SIGN_CAMNUC_PII_KUUH=6102]="KHMER_SIGN_CAMNUC_PII_KUUH",eo[eo.KHMER_SIGN_BEYYAL=6104]="KHMER_SIGN_BEYYAL",eo[eo.KHMER_SIGN_PHNAEK_MUAN=6105]="KHMER_SIGN_PHNAEK_MUAN",eo[eo.KHMER_SIGN_KOOMUUT=6106]="KHMER_SIGN_KOOMUUT",eo[eo.MONGOLIAN_BIRGA=6144]="MONGOLIAN_BIRGA",eo[eo.MONGOLIAN_ELLIPSIS=6145]="MONGOLIAN_ELLIPSIS",eo[eo.MONGOLIAN_COMMA=6146]="MONGOLIAN_COMMA",eo[eo.MONGOLIAN_FULL_STOP=6147]="MONGOLIAN_FULL_STOP",eo[eo.MONGOLIAN_COLON=6148]="MONGOLIAN_COLON",eo[eo.MONGOLIAN_FOUR_DOTS=6149]="MONGOLIAN_FOUR_DOTS",eo[eo.MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER=6151]="MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER",eo[eo.MONGOLIAN_MANCHU_COMMA=6152]="MONGOLIAN_MANCHU_COMMA",eo[eo.MONGOLIAN_MANCHU_FULL_STOP=6153]="MONGOLIAN_MANCHU_FULL_STOP",eo[eo.MONGOLIAN_NIRUGU=6154]="MONGOLIAN_NIRUGU",eo[eo.LIMBU_EXCLAMATION_MARK=6468]="LIMBU_EXCLAMATION_MARK",eo[eo.LIMBU_QUESTION_MARK=6469]="LIMBU_QUESTION_MARK",eo[eo.BUGINESE_PALLAWA=6686]="BUGINESE_PALLAWA",eo[eo.BUGINESE_END_OF_SECTION=6687]="BUGINESE_END_OF_SECTION",eo[eo.TAI_THAM_SIGN_WIANG=6816]="TAI_THAM_SIGN_WIANG",eo[eo.TAI_THAM_SIGN_WIANGWAAK=6817]="TAI_THAM_SIGN_WIANGWAAK",eo[eo.TAI_THAM_SIGN_SAWAN=6818]="TAI_THAM_SIGN_SAWAN",eo[eo.TAI_THAM_SIGN_KEOW=6819]="TAI_THAM_SIGN_KEOW",eo[eo.TAI_THAM_SIGN_HOY=6820]="TAI_THAM_SIGN_HOY",eo[eo.TAI_THAM_SIGN_DOKMAI=6821]="TAI_THAM_SIGN_DOKMAI",eo[eo.TAI_THAM_SIGN_REVERSED_ROTATED_RANA=6822]="TAI_THAM_SIGN_REVERSED_ROTATED_RANA",eo[eo.TAI_THAM_SIGN_KAAN=6824]="TAI_THAM_SIGN_KAAN",eo[eo.TAI_THAM_SIGN_KAANKUU=6825]="TAI_THAM_SIGN_KAANKUU",eo[eo.TAI_THAM_SIGN_SATKAAN=6826]="TAI_THAM_SIGN_SATKAAN",eo[eo.TAI_THAM_SIGN_SATKAANKUU=6827]="TAI_THAM_SIGN_SATKAANKUU",eo[eo.TAI_THAM_SIGN_HANG=6828]="TAI_THAM_SIGN_HANG",eo[eo.TAI_THAM_SIGN_CAANG=6829]="TAI_THAM_SIGN_CAANG",eo[eo.BALINESE_PANTI=7002]="BALINESE_PANTI",eo[eo.BALINESE_PAMADA=7003]="BALINESE_PAMADA",eo[eo.BALINESE_WINDU=7004]="BALINESE_WINDU",eo[eo.BALINESE_CARIK_PAMUNGKAH=7005]="BALINESE_CARIK_PAMUNGKAH",eo[eo.BALINESE_CARIK_SIKI=7006]="BALINESE_CARIK_SIKI",eo[eo.BALINESE_CARIK_PAREREN=7007]="BALINESE_CARIK_PAREREN",eo[eo.BALINESE_PAMENENG=7008]="BALINESE_PAMENENG",eo[eo.BATAK_SYMBOL_BINDU_NA_METEK=7164]="BATAK_SYMBOL_BINDU_NA_METEK",eo[eo.BATAK_SYMBOL_BINDU_PINARBORAS=7165]="BATAK_SYMBOL_BINDU_PINARBORAS",eo[eo.BATAK_SYMBOL_BINDU_JUDUL=7166]="BATAK_SYMBOL_BINDU_JUDUL",eo[eo.BATAK_SYMBOL_BINDU_PANGOLAT=7167]="BATAK_SYMBOL_BINDU_PANGOLAT",eo[eo.LEPCHA_PUNCTUATION_TA_ROL=7227]="LEPCHA_PUNCTUATION_TA_ROL",eo[eo.LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL=7228]="LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL",eo[eo.LEPCHA_PUNCTUATION_CER_WA=7229]="LEPCHA_PUNCTUATION_CER_WA",eo[eo.LEPCHA_PUNCTUATION_TSHOOK_CER_WA=7230]="LEPCHA_PUNCTUATION_TSHOOK_CER_WA",eo[eo.LEPCHA_PUNCTUATION_TSHOOK=7231]="LEPCHA_PUNCTUATION_TSHOOK",eo[eo.OL_CHIKI_PUNCTUATION_MUCAAD=7294]="OL_CHIKI_PUNCTUATION_MUCAAD",eo[eo.OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD=7295]="OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD",eo[eo.SUNDANESE_PUNCTUATION_BINDU_SURYA=7360]="SUNDANESE_PUNCTUATION_BINDU_SURYA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_PANGLONG=7361]="SUNDANESE_PUNCTUATION_BINDU_PANGLONG",eo[eo.SUNDANESE_PUNCTUATION_BINDU_PURNAMA=7362]="SUNDANESE_PUNCTUATION_BINDU_PURNAMA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_CAKRA=7363]="SUNDANESE_PUNCTUATION_BINDU_CAKRA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA=7364]="SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA=7365]="SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA=7366]="SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA=7367]="SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA",eo[eo.VEDIC_SIGN_NIHSHVASA=7379]="VEDIC_SIGN_NIHSHVASA",eo[eo.DOUBLE_VERTICAL_LINE=8214]="DOUBLE_VERTICAL_LINE",eo[eo.DOUBLE_LOW_LINE=8215]="DOUBLE_LOW_LINE",eo[eo.DAGGER=8224]="DAGGER",eo[eo.DOUBLE_DAGGER=8225]="DOUBLE_DAGGER",eo[eo.BULLET=8226]="BULLET",eo[eo.TRIANGULAR_BULLET=8227]="TRIANGULAR_BULLET",eo[eo.ONE_DOT_LEADER=8228]="ONE_DOT_LEADER",eo[eo.TWO_DOT_LEADER=8229]="TWO_DOT_LEADER",eo[eo.HORIZONTAL_ELLIPSIS=8230]="HORIZONTAL_ELLIPSIS",eo[eo.HYPHENATION_POINT=8231]="HYPHENATION_POINT",eo[eo.PER_MILLE_SIGN=8240]="PER_MILLE_SIGN",eo[eo.PER_TEN_THOUSAND_SIGN=8241]="PER_TEN_THOUSAND_SIGN",eo[eo.PRIME=8242]="PRIME",eo[eo.DOUBLE_PRIME=8243]="DOUBLE_PRIME",eo[eo.TRIPLE_PRIME=8244]="TRIPLE_PRIME",eo[eo.REVERSED_PRIME=8245]="REVERSED_PRIME",eo[eo.REVERSED_DOUBLE_PRIME=8246]="REVERSED_DOUBLE_PRIME",eo[eo.REVERSED_TRIPLE_PRIME=8247]="REVERSED_TRIPLE_PRIME",eo[eo.CARET=8248]="CARET",eo[eo.REFERENCE_MARK=8251]="REFERENCE_MARK",eo[eo.DOUBLE_EXCLAMATION_MARK=8252]="DOUBLE_EXCLAMATION_MARK",eo[eo.INTERROBANG=8253]="INTERROBANG",eo[eo.OVERLINE=8254]="OVERLINE",eo[eo.CARET_INSERTION_POINT=8257]="CARET_INSERTION_POINT",eo[eo.ASTERISM=8258]="ASTERISM",eo[eo.HYPHEN_BULLET=8259]="HYPHEN_BULLET",eo[eo.DOUBLE_QUESTION_MARK=8263]="DOUBLE_QUESTION_MARK",eo[eo.QUESTION_EXCLAMATION_MARK=8264]="QUESTION_EXCLAMATION_MARK",eo[eo.EXCLAMATION_QUESTION_MARK=8265]="EXCLAMATION_QUESTION_MARK",eo[eo.TIRONIAN_SIGN_ET=8266]="TIRONIAN_SIGN_ET",eo[eo.REVERSED_PILCROW_SIGN=8267]="REVERSED_PILCROW_SIGN",eo[eo.BLACK_LEFTWARDS_BULLET=8268]="BLACK_LEFTWARDS_BULLET",eo[eo.BLACK_RIGHTWARDS_BULLET=8269]="BLACK_RIGHTWARDS_BULLET",eo[eo.LOW_ASTERISK=8270]="LOW_ASTERISK",eo[eo.REVERSED_SEMICOLON=8271]="REVERSED_SEMICOLON",eo[eo.CLOSE_UP=8272]="CLOSE_UP",eo[eo.TWO_ASTERISKS_ALIGNED_VERTICALLY=8273]="TWO_ASTERISKS_ALIGNED_VERTICALLY",eo[eo.SWUNG_DASH=8275]="SWUNG_DASH",eo[eo.FLOWER_PUNCTUATION_MARK=8277]="FLOWER_PUNCTUATION_MARK",eo[eo.THREE_DOT_PUNCTUATION=8278]="THREE_DOT_PUNCTUATION",eo[eo.QUADRUPLE_PRIME=8279]="QUADRUPLE_PRIME",eo[eo.FOUR_DOT_PUNCTUATION=8280]="FOUR_DOT_PUNCTUATION",eo[eo.FIVE_DOT_PUNCTUATION=8281]="FIVE_DOT_PUNCTUATION",eo[eo.TWO_DOT_PUNCTUATION=8282]="TWO_DOT_PUNCTUATION",eo[eo.FOUR_DOT_MARK=8283]="FOUR_DOT_MARK",eo[eo.DOTTED_CROSS=8284]="DOTTED_CROSS",eo[eo.TRICOLON=8285]="TRICOLON",eo[eo.VERTICAL_FOUR_DOTS=8286]="VERTICAL_FOUR_DOTS",eo[eo.COPTIC_OLD_NUBIAN_FULL_STOP=11513]="COPTIC_OLD_NUBIAN_FULL_STOP",eo[eo.COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK=11514]="COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK",eo[eo.COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK=11515]="COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK",eo[eo.COPTIC_OLD_NUBIAN_VERSE_DIVIDER=11516]="COPTIC_OLD_NUBIAN_VERSE_DIVIDER",eo[eo.COPTIC_FULL_STOP=11518]="COPTIC_FULL_STOP",eo[eo.COPTIC_MORPHOLOGICAL_DIVIDER=11519]="COPTIC_MORPHOLOGICAL_DIVIDER",eo[eo.TIFINAGH_SEPARATOR_MARK=11632]="TIFINAGH_SEPARATOR_MARK",eo[eo.RIGHT_ANGLE_SUBSTITUTION_MARKER=11776]="RIGHT_ANGLE_SUBSTITUTION_MARKER",eo[eo.RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER=11777]="RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER",eo[eo.RAISED_INTERPOLATION_MARKER=11782]="RAISED_INTERPOLATION_MARKER",eo[eo.RAISED_DOTTED_INTERPOLATION_MARKER=11783]="RAISED_DOTTED_INTERPOLATION_MARKER",eo[eo.DOTTED_TRANSPOSITION_MARKER=11784]="DOTTED_TRANSPOSITION_MARKER",eo[eo.RAISED_SQUARE=11787]="RAISED_SQUARE",eo[eo.EDITORIAL_CORONIS=11790]="EDITORIAL_CORONIS",eo[eo.PARAGRAPHOS=11791]="PARAGRAPHOS",eo[eo.FORKED_PARAGRAPHOS=11792]="FORKED_PARAGRAPHOS",eo[eo.REVERSED_FORKED_PARAGRAPHOS=11793]="REVERSED_FORKED_PARAGRAPHOS",eo[eo.HYPODIASTOLE=11794]="HYPODIASTOLE",eo[eo.DOTTED_OBELOS=11795]="DOTTED_OBELOS",eo[eo.DOWNWARDS_ANCORA=11796]="DOWNWARDS_ANCORA",eo[eo.UPWARDS_ANCORA=11797]="UPWARDS_ANCORA",eo[eo.DOTTED_RIGHT_POINTING_ANGLE=11798]="DOTTED_RIGHT_POINTING_ANGLE",eo[eo.INVERTED_INTERROBANG=11800]="INVERTED_INTERROBANG",eo[eo.PALM_BRANCH=11801]="PALM_BRANCH",eo[eo.TILDE_WITH_RING_ABOVE=11803]="TILDE_WITH_RING_ABOVE",eo[eo.TILDE_WITH_DOT_ABOVE=11806]="TILDE_WITH_DOT_ABOVE",eo[eo.TILDE_WITH_DOT_BELOW=11807]="TILDE_WITH_DOT_BELOW",eo[eo.TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=11818]="TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=11819]="ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",eo[eo.SQUARED_FOUR_DOT_PUNCTUATION=11820]="SQUARED_FOUR_DOT_PUNCTUATION",eo[eo.FIVE_DOT_MARK=11821]="FIVE_DOT_MARK",eo[eo.REVERSED_QUESTION_MARK=11822]="REVERSED_QUESTION_MARK",eo[eo.RING_POINT=11824]="RING_POINT",eo[eo.WORD_SEPARATOR_MIDDLE_DOT=11825]="WORD_SEPARATOR_MIDDLE_DOT",eo[eo.TURNED_COMMA=11826]="TURNED_COMMA",eo[eo.RAISED_DOT=11827]="RAISED_DOT",eo[eo.RAISED_COMMA=11828]="RAISED_COMMA",eo[eo.TURNED_SEMICOLON=11829]="TURNED_SEMICOLON",eo[eo.DAGGER_WITH_LEFT_GUARD=11830]="DAGGER_WITH_LEFT_GUARD",eo[eo.DAGGER_WITH_RIGHT_GUARD=11831]="DAGGER_WITH_RIGHT_GUARD",eo[eo.TURNED_DAGGER=11832]="TURNED_DAGGER",eo[eo.TOP_HALF_SECTION_SIGN=11833]="TOP_HALF_SECTION_SIGN",eo[eo.STENOGRAPHIC_FULL_STOP=11836]="STENOGRAPHIC_FULL_STOP",eo[eo.VERTICAL_SIX_DOTS=11837]="VERTICAL_SIX_DOTS",eo[eo.WIGGLY_VERTICAL_LINE=11838]="WIGGLY_VERTICAL_LINE",eo[eo.CAPITULUM=11839]="CAPITULUM",eo[eo.REVERSED_COMMA=11841]="REVERSED_COMMA",eo[eo.DASH_WITH_LEFT_UPTURN=11843]="DASH_WITH_LEFT_UPTURN",eo[eo.DOUBLE_SUSPENSION_MARK=11844]="DOUBLE_SUSPENSION_MARK",eo[eo.INVERTED_LOW_KAVYKA=11845]="INVERTED_LOW_KAVYKA",eo[eo.INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE=11846]="INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE",eo[eo.LOW_KAVYKA=11847]="LOW_KAVYKA",eo[eo.LOW_KAVYKA_WITH_DOT=11848]="LOW_KAVYKA_WITH_DOT",eo[eo.DOUBLE_STACKED_COMMA=11849]="DOUBLE_STACKED_COMMA",eo[eo.DOTTED_SOLIDUS=11850]="DOTTED_SOLIDUS",eo[eo.TRIPLE_DAGGER=11851]="TRIPLE_DAGGER",eo[eo.MEDIEVAL_COMMA=11852]="MEDIEVAL_COMMA",eo[eo.PARAGRAPHUS_MARK=11853]="PARAGRAPHUS_MARK",eo[eo.PUNCTUS_ELEVATUS_MARK=11854]="PUNCTUS_ELEVATUS_MARK",eo[eo.CORNISH_VERSE_DIVIDER=11855]="CORNISH_VERSE_DIVIDER",eo[eo.TIRONIAN_SIGN_CAPITAL_ET=11858]="TIRONIAN_SIGN_CAPITAL_ET",eo[eo.IDEOGRAPHIC_COMMA=12289]="IDEOGRAPHIC_COMMA",eo[eo.IDEOGRAPHIC_FULL_STOP=12290]="IDEOGRAPHIC_FULL_STOP",eo[eo.DITTO_MARK=12291]="DITTO_MARK",eo[eo.PART_ALTERNATION_MARK=12349]="PART_ALTERNATION_MARK",eo[eo.KATAKANA_MIDDLE_DOT=12539]="KATAKANA_MIDDLE_DOT",eo[eo.LISU_PUNCTUATION_COMMA=42238]="LISU_PUNCTUATION_COMMA",eo[eo.LISU_PUNCTUATION_FULL_STOP=42239]="LISU_PUNCTUATION_FULL_STOP",eo[eo.VAI_COMMA=42509]="VAI_COMMA",eo[eo.VAI_FULL_STOP=42510]="VAI_FULL_STOP",eo[eo.VAI_QUESTION_MARK=42511]="VAI_QUESTION_MARK",eo[eo.SLAVONIC_ASTERISK=42611]="SLAVONIC_ASTERISK",eo[eo.CYRILLIC_KAVYKA=42622]="CYRILLIC_KAVYKA",eo[eo.BAMUM_NJAEMLI=42738]="BAMUM_NJAEMLI",eo[eo.BAMUM_FULL_STOP=42739]="BAMUM_FULL_STOP",eo[eo.BAMUM_COLON=42740]="BAMUM_COLON",eo[eo.BAMUM_COMMA=42741]="BAMUM_COMMA",eo[eo.BAMUM_SEMICOLON=42742]="BAMUM_SEMICOLON",eo[eo.BAMUM_QUESTION_MARK=42743]="BAMUM_QUESTION_MARK",eo[eo.PHAGS_PA_SINGLE_HEAD_MARK=43124]="PHAGS_PA_SINGLE_HEAD_MARK",eo[eo.PHAGS_PA_DOUBLE_HEAD_MARK=43125]="PHAGS_PA_DOUBLE_HEAD_MARK",eo[eo.PHAGS_PA_MARK_SHAD=43126]="PHAGS_PA_MARK_SHAD",eo[eo.PHAGS_PA_MARK_DOUBLE_SHAD=43127]="PHAGS_PA_MARK_DOUBLE_SHAD",eo[eo.SAURASHTRA_DANDA=43214]="SAURASHTRA_DANDA",eo[eo.SAURASHTRA_DOUBLE_DANDA=43215]="SAURASHTRA_DOUBLE_DANDA",eo[eo.DEVANAGARI_SIGN_PUSHPIKA=43256]="DEVANAGARI_SIGN_PUSHPIKA",eo[eo.DEVANAGARI_GAP_FILLER=43257]="DEVANAGARI_GAP_FILLER",eo[eo.DEVANAGARI_CARET=43258]="DEVANAGARI_CARET",eo[eo.DEVANAGARI_SIGN_SIDDHAM=43260]="DEVANAGARI_SIGN_SIDDHAM",eo[eo.KAYAH_LI_SIGN_CWI=43310]="KAYAH_LI_SIGN_CWI",eo[eo.KAYAH_LI_SIGN_SHYA=43311]="KAYAH_LI_SIGN_SHYA",eo[eo.REJANG_SECTION_MARK=43359]="REJANG_SECTION_MARK",eo[eo.JAVANESE_LEFT_RERENGGAN=43457]="JAVANESE_LEFT_RERENGGAN",eo[eo.JAVANESE_RIGHT_RERENGGAN=43458]="JAVANESE_RIGHT_RERENGGAN",eo[eo.JAVANESE_PADA_ANDAP=43459]="JAVANESE_PADA_ANDAP",eo[eo.JAVANESE_PADA_MADYA=43460]="JAVANESE_PADA_MADYA",eo[eo.JAVANESE_PADA_LUHUR=43461]="JAVANESE_PADA_LUHUR",eo[eo.JAVANESE_PADA_WINDU=43462]="JAVANESE_PADA_WINDU",eo[eo.JAVANESE_PADA_PANGKAT=43463]="JAVANESE_PADA_PANGKAT",eo[eo.JAVANESE_PADA_LINGSA=43464]="JAVANESE_PADA_LINGSA",eo[eo.JAVANESE_PADA_LUNGSI=43465]="JAVANESE_PADA_LUNGSI",eo[eo.JAVANESE_PADA_ADEG=43466]="JAVANESE_PADA_ADEG",eo[eo.JAVANESE_PADA_ADEG_ADEG=43467]="JAVANESE_PADA_ADEG_ADEG",eo[eo.JAVANESE_PADA_PISELEH=43468]="JAVANESE_PADA_PISELEH",eo[eo.JAVANESE_TURNED_PADA_PISELEH=43469]="JAVANESE_TURNED_PADA_PISELEH",eo[eo.JAVANESE_PADA_TIRTA_TUMETES=43486]="JAVANESE_PADA_TIRTA_TUMETES",eo[eo.JAVANESE_PADA_ISEN_ISEN=43487]="JAVANESE_PADA_ISEN_ISEN",eo[eo.CHAM_PUNCTUATION_SPIRAL=43612]="CHAM_PUNCTUATION_SPIRAL",eo[eo.CHAM_PUNCTUATION_DANDA=43613]="CHAM_PUNCTUATION_DANDA",eo[eo.CHAM_PUNCTUATION_DOUBLE_DANDA=43614]="CHAM_PUNCTUATION_DOUBLE_DANDA",eo[eo.CHAM_PUNCTUATION_TRIPLE_DANDA=43615]="CHAM_PUNCTUATION_TRIPLE_DANDA",eo[eo.TAI_VIET_SYMBOL_HO_HOI=43742]="TAI_VIET_SYMBOL_HO_HOI",eo[eo.TAI_VIET_SYMBOL_KOI_KOI=43743]="TAI_VIET_SYMBOL_KOI_KOI",eo[eo.MEETEI_MAYEK_CHEIKHAN=43760]="MEETEI_MAYEK_CHEIKHAN",eo[eo.MEETEI_MAYEK_AHANG_KHUDAM=43761]="MEETEI_MAYEK_AHANG_KHUDAM",eo[eo.MEETEI_MAYEK_CHEIKHEI=44011]="MEETEI_MAYEK_CHEIKHEI",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_COMMA=65040]="PRESENTATION_FORM_FOR_VERTICAL_COMMA",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA=65041]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP=65042]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_COLON=65043]="PRESENTATION_FORM_FOR_VERTICAL_COLON",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON=65044]="PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK=65045]="PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK=65046]="PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS=65049]="PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER=65072]="PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER",eo[eo.SESAME_DOT=65093]="SESAME_DOT",eo[eo.WHITE_SESAME_DOT=65094]="WHITE_SESAME_DOT",eo[eo.DASHED_OVERLINE=65097]="DASHED_OVERLINE",eo[eo.CENTRELINE_OVERLINE=65098]="CENTRELINE_OVERLINE",eo[eo.WAVY_OVERLINE=65099]="WAVY_OVERLINE",eo[eo.DOUBLE_WAVY_OVERLINE=65100]="DOUBLE_WAVY_OVERLINE",eo[eo.SMALL_COMMA=65104]="SMALL_COMMA",eo[eo.SMALL_IDEOGRAPHIC_COMMA=65105]="SMALL_IDEOGRAPHIC_COMMA",eo[eo.SMALL_FULL_STOP=65106]="SMALL_FULL_STOP",eo[eo.SMALL_SEMICOLON=65108]="SMALL_SEMICOLON",eo[eo.SMALL_COLON=65109]="SMALL_COLON",eo[eo.SMALL_QUESTION_MARK=65110]="SMALL_QUESTION_MARK",eo[eo.SMALL_EXCLAMATION_MARK=65111]="SMALL_EXCLAMATION_MARK",eo[eo.SMALL_NUMBER_SIGN=65119]="SMALL_NUMBER_SIGN",eo[eo.SMALL_AMPERSAND=65120]="SMALL_AMPERSAND",eo[eo.SMALL_ASTERISK=65121]="SMALL_ASTERISK",eo[eo.SMALL_REVERSE_SOLIDUS=65128]="SMALL_REVERSE_SOLIDUS",eo[eo.SMALL_PERCENT_SIGN=65130]="SMALL_PERCENT_SIGN",eo[eo.SMALL_COMMERCIAL_AT=65131]="SMALL_COMMERCIAL_AT",eo[eo.FULLWIDTH_EXCLAMATION_MARK=65281]="FULLWIDTH_EXCLAMATION_MARK",eo[eo.FULLWIDTH_QUOTATION_MARK=65282]="FULLWIDTH_QUOTATION_MARK",eo[eo.FULLWIDTH_NUMBER_SIGN=65283]="FULLWIDTH_NUMBER_SIGN",eo[eo.FULLWIDTH_PERCENT_SIGN=65285]="FULLWIDTH_PERCENT_SIGN",eo[eo.FULLWIDTH_AMPERSAND=65286]="FULLWIDTH_AMPERSAND",eo[eo.FULLWIDTH_APOSTROPHE=65287]="FULLWIDTH_APOSTROPHE",eo[eo.FULLWIDTH_ASTERISK=65290]="FULLWIDTH_ASTERISK",eo[eo.FULLWIDTH_COMMA=65292]="FULLWIDTH_COMMA",eo[eo.FULLWIDTH_FULL_STOP=65294]="FULLWIDTH_FULL_STOP",eo[eo.FULLWIDTH_SOLIDUS=65295]="FULLWIDTH_SOLIDUS",eo[eo.FULLWIDTH_COLON=65306]="FULLWIDTH_COLON",eo[eo.FULLWIDTH_SEMICOLON=65307]="FULLWIDTH_SEMICOLON",eo[eo.FULLWIDTH_QUESTION_MARK=65311]="FULLWIDTH_QUESTION_MARK",eo[eo.FULLWIDTH_COMMERCIAL_AT=65312]="FULLWIDTH_COMMERCIAL_AT",eo[eo.FULLWIDTH_REVERSE_SOLIDUS=65340]="FULLWIDTH_REVERSE_SOLIDUS",eo[eo.HALFWIDTH_IDEOGRAPHIC_FULL_STOP=65377]="HALFWIDTH_IDEOGRAPHIC_FULL_STOP",eo[eo.HALFWIDTH_IDEOGRAPHIC_COMMA=65380]="HALFWIDTH_IDEOGRAPHIC_COMMA",eo[eo.HALFWIDTH_KATAKANA_MIDDLE_DOT=65381]="HALFWIDTH_KATAKANA_MIDDLE_DOT",eo[eo.AEGEAN_WORD_SEPARATOR_LINE=65792]="AEGEAN_WORD_SEPARATOR_LINE",eo[eo.AEGEAN_WORD_SEPARATOR_DOT=65793]="AEGEAN_WORD_SEPARATOR_DOT",eo[eo.AEGEAN_CHECK_MARK=65794]="AEGEAN_CHECK_MARK",eo[eo.UGARITIC_WORD_DIVIDER=66463]="UGARITIC_WORD_DIVIDER",eo[eo.OLD_PERSIAN_WORD_DIVIDER=66512]="OLD_PERSIAN_WORD_DIVIDER",eo[eo.CAUCASIAN_ALBANIAN_CITATION_MARK=66927]="CAUCASIAN_ALBANIAN_CITATION_MARK",eo[eo.IMPERIAL_ARAMAIC_SECTION_SIGN=67671]="IMPERIAL_ARAMAIC_SECTION_SIGN",eo[eo.PHOENICIAN_WORD_SEPARATOR=67871]="PHOENICIAN_WORD_SEPARATOR",eo[eo.LYDIAN_TRIANGULAR_MARK=67903]="LYDIAN_TRIANGULAR_MARK",eo[eo.KHAROSHTHI_PUNCTUATION_DOT=68176]="KHAROSHTHI_PUNCTUATION_DOT",eo[eo.KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE=68177]="KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE",eo[eo.KHAROSHTHI_PUNCTUATION_CIRCLE=68178]="KHAROSHTHI_PUNCTUATION_CIRCLE",eo[eo.KHAROSHTHI_PUNCTUATION_CRESCENT_BAR=68179]="KHAROSHTHI_PUNCTUATION_CRESCENT_BAR",eo[eo.KHAROSHTHI_PUNCTUATION_MANGALAM=68180]="KHAROSHTHI_PUNCTUATION_MANGALAM",eo[eo.KHAROSHTHI_PUNCTUATION_LOTUS=68181]="KHAROSHTHI_PUNCTUATION_LOTUS",eo[eo.KHAROSHTHI_PUNCTUATION_DANDA=68182]="KHAROSHTHI_PUNCTUATION_DANDA",eo[eo.KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA=68183]="KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA",eo[eo.KHAROSHTHI_PUNCTUATION_LINES=68184]="KHAROSHTHI_PUNCTUATION_LINES",eo[eo.OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR=68223]="OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR",eo[eo.MANICHAEAN_PUNCTUATION_STAR=68336]="MANICHAEAN_PUNCTUATION_STAR",eo[eo.MANICHAEAN_PUNCTUATION_FLEURON=68337]="MANICHAEAN_PUNCTUATION_FLEURON",eo[eo.MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT=68338]="MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT",eo[eo.MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT=68339]="MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT",eo[eo.MANICHAEAN_PUNCTUATION_DOT=68340]="MANICHAEAN_PUNCTUATION_DOT",eo[eo.MANICHAEAN_PUNCTUATION_TWO_DOTS=68341]="MANICHAEAN_PUNCTUATION_TWO_DOTS",eo[eo.MANICHAEAN_PUNCTUATION_LINE_FILLER=68342]="MANICHAEAN_PUNCTUATION_LINE_FILLER",eo[eo.AVESTAN_ABBREVIATION_MARK=68409]="AVESTAN_ABBREVIATION_MARK",eo[eo.TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68410]="TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68411]="SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68412]="LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=68413]="LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",eo[eo.LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION=68414]="LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION",eo[eo.LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION=68415]="LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION",eo[eo.PSALTER_PAHLAVI_SECTION_MARK=68505]="PSALTER_PAHLAVI_SECTION_MARK",eo[eo.PSALTER_PAHLAVI_TURNED_SECTION_MARK=68506]="PSALTER_PAHLAVI_TURNED_SECTION_MARK",eo[eo.PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS=68507]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS",eo[eo.PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT=68508]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT",eo[eo.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS=69461]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS",eo[eo.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS=69462]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS",eo[eo.SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT=69463]="SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT",eo[eo.SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS=69464]="SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS",eo[eo.SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT=69465]="SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT",eo[eo.BRAHMI_DANDA=69703]="BRAHMI_DANDA",eo[eo.BRAHMI_DOUBLE_DANDA=69704]="BRAHMI_DOUBLE_DANDA",eo[eo.BRAHMI_PUNCTUATION_DOT=69705]="BRAHMI_PUNCTUATION_DOT",eo[eo.BRAHMI_PUNCTUATION_DOUBLE_DOT=69706]="BRAHMI_PUNCTUATION_DOUBLE_DOT",eo[eo.BRAHMI_PUNCTUATION_LINE=69707]="BRAHMI_PUNCTUATION_LINE",eo[eo.BRAHMI_PUNCTUATION_CRESCENT_BAR=69708]="BRAHMI_PUNCTUATION_CRESCENT_BAR",eo[eo.BRAHMI_PUNCTUATION_LOTUS=69709]="BRAHMI_PUNCTUATION_LOTUS",eo[eo.KAITHI_ABBREVIATION_SIGN=69819]="KAITHI_ABBREVIATION_SIGN",eo[eo.KAITHI_ENUMERATION_SIGN=69820]="KAITHI_ENUMERATION_SIGN",eo[eo.KAITHI_SECTION_MARK=69822]="KAITHI_SECTION_MARK",eo[eo.KAITHI_DOUBLE_SECTION_MARK=69823]="KAITHI_DOUBLE_SECTION_MARK",eo[eo.KAITHI_DANDA=69824]="KAITHI_DANDA",eo[eo.KAITHI_DOUBLE_DANDA=69825]="KAITHI_DOUBLE_DANDA",eo[eo.CHAKMA_SECTION_MARK=69952]="CHAKMA_SECTION_MARK",eo[eo.CHAKMA_DANDA=69953]="CHAKMA_DANDA",eo[eo.CHAKMA_DOUBLE_DANDA=69954]="CHAKMA_DOUBLE_DANDA",eo[eo.CHAKMA_QUESTION_MARK=69955]="CHAKMA_QUESTION_MARK",eo[eo.MAHAJANI_ABBREVIATION_SIGN=70004]="MAHAJANI_ABBREVIATION_SIGN",eo[eo.MAHAJANI_SECTION_MARK=70005]="MAHAJANI_SECTION_MARK",eo[eo.SHARADA_DANDA=70085]="SHARADA_DANDA",eo[eo.SHARADA_DOUBLE_DANDA=70086]="SHARADA_DOUBLE_DANDA",eo[eo.SHARADA_ABBREVIATION_SIGN=70087]="SHARADA_ABBREVIATION_SIGN",eo[eo.SHARADA_SEPARATOR=70088]="SHARADA_SEPARATOR",eo[eo.SHARADA_SUTRA_MARK=70093]="SHARADA_SUTRA_MARK",eo[eo.SHARADA_SIGN_SIDDHAM=70107]="SHARADA_SIGN_SIDDHAM",eo[eo.SHARADA_CONTINUATION_SIGN=70109]="SHARADA_CONTINUATION_SIGN",eo[eo.SHARADA_SECTION_MARK_1=70110]="SHARADA_SECTION_MARK_1",eo[eo.SHARADA_SECTION_MARK_2=70111]="SHARADA_SECTION_MARK_2",eo[eo.KHOJKI_DANDA=70200]="KHOJKI_DANDA",eo[eo.KHOJKI_DOUBLE_DANDA=70201]="KHOJKI_DOUBLE_DANDA",eo[eo.KHOJKI_WORD_SEPARATOR=70202]="KHOJKI_WORD_SEPARATOR",eo[eo.KHOJKI_SECTION_MARK=70203]="KHOJKI_SECTION_MARK",eo[eo.KHOJKI_DOUBLE_SECTION_MARK=70204]="KHOJKI_DOUBLE_SECTION_MARK",eo[eo.KHOJKI_ABBREVIATION_SIGN=70205]="KHOJKI_ABBREVIATION_SIGN",eo[eo.MULTANI_SECTION_MARK=70313]="MULTANI_SECTION_MARK",eo[eo.NEWA_DANDA=70731]="NEWA_DANDA",eo[eo.NEWA_DOUBLE_DANDA=70732]="NEWA_DOUBLE_DANDA",eo[eo.NEWA_COMMA=70733]="NEWA_COMMA",eo[eo.NEWA_GAP_FILLER=70734]="NEWA_GAP_FILLER",eo[eo.NEWA_ABBREVIATION_SIGN=70735]="NEWA_ABBREVIATION_SIGN",eo[eo.NEWA_DOUBLE_COMMA=70746]="NEWA_DOUBLE_COMMA",eo[eo.NEWA_PLACEHOLDER_MARK=70747]="NEWA_PLACEHOLDER_MARK",eo[eo.NEWA_INSERTION_SIGN=70749]="NEWA_INSERTION_SIGN",eo[eo.TIRHUTA_ABBREVIATION_SIGN=70854]="TIRHUTA_ABBREVIATION_SIGN",eo[eo.SIDDHAM_SIGN_SIDDHAM=71105]="SIDDHAM_SIGN_SIDDHAM",eo[eo.SIDDHAM_DANDA=71106]="SIDDHAM_DANDA",eo[eo.SIDDHAM_DOUBLE_DANDA=71107]="SIDDHAM_DOUBLE_DANDA",eo[eo.SIDDHAM_SEPARATOR_DOT=71108]="SIDDHAM_SEPARATOR_DOT",eo[eo.SIDDHAM_SEPARATOR_BAR=71109]="SIDDHAM_SEPARATOR_BAR",eo[eo.SIDDHAM_REPETITION_MARK_1=71110]="SIDDHAM_REPETITION_MARK_1",eo[eo.SIDDHAM_REPETITION_MARK_2=71111]="SIDDHAM_REPETITION_MARK_2",eo[eo.SIDDHAM_REPETITION_MARK_3=71112]="SIDDHAM_REPETITION_MARK_3",eo[eo.SIDDHAM_END_OF_TEXT_MARK=71113]="SIDDHAM_END_OF_TEXT_MARK",eo[eo.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS=71114]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS=71115]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS=71116]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS=71117]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS=71118]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_DOUBLE_RING=71119]="SIDDHAM_SECTION_MARK_DOUBLE_RING",eo[eo.SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS=71120]="SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS",eo[eo.SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS=71121]="SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS=71122]="SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS=71123]="SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS=71124]="SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS=71125]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS",eo[eo.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES=71126]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES",eo[eo.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES=71127]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES",eo[eo.MODI_DANDA=71233]="MODI_DANDA",eo[eo.MODI_DOUBLE_DANDA=71234]="MODI_DOUBLE_DANDA",eo[eo.MODI_ABBREVIATION_SIGN=71235]="MODI_ABBREVIATION_SIGN",eo[eo.MONGOLIAN_BIRGA_WITH_ORNAMENT=71264]="MONGOLIAN_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_ROTATED_BIRGA=71265]="MONGOLIAN_ROTATED_BIRGA",eo[eo.MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT=71266]="MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT=71267]="MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT=71268]="MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT=71269]="MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT=71270]="MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_INVERTED_BIRGA=71271]="MONGOLIAN_INVERTED_BIRGA",eo[eo.MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT=71272]="MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_SWIRL_BIRGA=71273]="MONGOLIAN_SWIRL_BIRGA",eo[eo.MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT=71274]="MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71275]="MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71276]="MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.AHOM_SIGN_SMALL_SECTION=71484]="AHOM_SIGN_SMALL_SECTION",eo[eo.AHOM_SIGN_SECTION=71485]="AHOM_SIGN_SECTION",eo[eo.AHOM_SIGN_RULAI=71486]="AHOM_SIGN_RULAI",eo[eo.DOGRA_ABBREVIATION_SIGN=71739]="DOGRA_ABBREVIATION_SIGN",eo[eo.DIVES_AKURU_DOUBLE_DANDA=72004]="DIVES_AKURU_DOUBLE_DANDA",eo[eo.DIVES_AKURU_GAP_FILLER=72005]="DIVES_AKURU_GAP_FILLER",eo[eo.DIVES_AKURU_END_OF_TEXT_MARK=72006]="DIVES_AKURU_END_OF_TEXT_MARK",eo[eo.NANDINAGARI_SIGN_SIDDHAM=72162]="NANDINAGARI_SIGN_SIDDHAM",eo[eo.ZANABAZAR_SQUARE_INITIAL_HEAD_MARK=72255]="ZANABAZAR_SQUARE_INITIAL_HEAD_MARK",eo[eo.ZANABAZAR_SQUARE_CLOSING_HEAD_MARK=72256]="ZANABAZAR_SQUARE_CLOSING_HEAD_MARK",eo[eo.ZANABAZAR_SQUARE_MARK_TSHEG=72257]="ZANABAZAR_SQUARE_MARK_TSHEG",eo[eo.ZANABAZAR_SQUARE_MARK_SHAD=72258]="ZANABAZAR_SQUARE_MARK_SHAD",eo[eo.ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD=72259]="ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD",eo[eo.ZANABAZAR_SQUARE_MARK_LONG_TSHEG=72260]="ZANABAZAR_SQUARE_MARK_LONG_TSHEG",eo[eo.ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK=72261]="ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK",eo[eo.ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK=72262]="ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK",eo[eo.SOYOMBO_MARK_TSHEG=72346]="SOYOMBO_MARK_TSHEG",eo[eo.SOYOMBO_MARK_SHAD=72347]="SOYOMBO_MARK_SHAD",eo[eo.SOYOMBO_MARK_DOUBLE_SHAD=72348]="SOYOMBO_MARK_DOUBLE_SHAD",eo[eo.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME=72350]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME",eo[eo.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME=72351]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME",eo[eo.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN=72352]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN",eo[eo.SOYOMBO_TERMINAL_MARK_1=72353]="SOYOMBO_TERMINAL_MARK_1",eo[eo.SOYOMBO_TERMINAL_MARK_2=72354]="SOYOMBO_TERMINAL_MARK_2",eo[eo.BHAIKSUKI_DANDA=72769]="BHAIKSUKI_DANDA",eo[eo.BHAIKSUKI_DOUBLE_DANDA=72770]="BHAIKSUKI_DOUBLE_DANDA",eo[eo.BHAIKSUKI_WORD_SEPARATOR=72771]="BHAIKSUKI_WORD_SEPARATOR",eo[eo.BHAIKSUKI_GAP_FILLER_1=72772]="BHAIKSUKI_GAP_FILLER_1",eo[eo.BHAIKSUKI_GAP_FILLER_2=72773]="BHAIKSUKI_GAP_FILLER_2",eo[eo.MARCHEN_HEAD_MARK=72816]="MARCHEN_HEAD_MARK",eo[eo.MARCHEN_MARK_SHAD=72817]="MARCHEN_MARK_SHAD",eo[eo.MAKASAR_PASSIMBANG=73463]="MAKASAR_PASSIMBANG",eo[eo.MAKASAR_END_OF_SECTION=73464]="MAKASAR_END_OF_SECTION",eo[eo.TAMIL_PUNCTUATION_END_OF_TEXT=73727]="TAMIL_PUNCTUATION_END_OF_TEXT",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER=74864]="CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON=74865]="CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON=74866]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON=74867]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON=74868]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON",eo[eo.MRO_DANDA=92782]="MRO_DANDA",eo[eo.MRO_DOUBLE_DANDA=92783]="MRO_DOUBLE_DANDA",eo[eo.BASSA_VAH_FULL_STOP=92917]="BASSA_VAH_FULL_STOP",eo[eo.PAHAWH_HMONG_SIGN_VOS_THOM=92983]="PAHAWH_HMONG_SIGN_VOS_THOM",eo[eo.PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB=92984]="PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB",eo[eo.PAHAWH_HMONG_SIGN_CIM_CHEEM=92985]="PAHAWH_HMONG_SIGN_CIM_CHEEM",eo[eo.PAHAWH_HMONG_SIGN_VOS_THIAB=92986]="PAHAWH_HMONG_SIGN_VOS_THIAB",eo[eo.PAHAWH_HMONG_SIGN_VOS_FEEM=92987]="PAHAWH_HMONG_SIGN_VOS_FEEM",eo[eo.PAHAWH_HMONG_SIGN_XAUS=92996]="PAHAWH_HMONG_SIGN_XAUS",eo[eo.MEDEFAIDRIN_COMMA=93847]="MEDEFAIDRIN_COMMA",eo[eo.MEDEFAIDRIN_FULL_STOP=93848]="MEDEFAIDRIN_FULL_STOP",eo[eo.MEDEFAIDRIN_SYMBOL_AIVA=93849]="MEDEFAIDRIN_SYMBOL_AIVA",eo[eo.MEDEFAIDRIN_EXCLAMATION_OH=93850]="MEDEFAIDRIN_EXCLAMATION_OH",eo[eo.OLD_CHINESE_HOOK_MARK=94178]="OLD_CHINESE_HOOK_MARK",eo[eo.DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP=113823]="DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP",eo[eo.SIGNWRITING_COMMA=121479]="SIGNWRITING_COMMA",eo[eo.SIGNWRITING_FULL_STOP=121480]="SIGNWRITING_FULL_STOP",eo[eo.SIGNWRITING_SEMICOLON=121481]="SIGNWRITING_SEMICOLON",eo[eo.SIGNWRITING_COLON=121482]="SIGNWRITING_COLON",eo[eo.SIGNWRITING_PARENTHESIS=121483]="SIGNWRITING_PARENTHESIS",eo[eo.ADLAM_INITIAL_EXCLAMATION_MARK=125278]="ADLAM_INITIAL_EXCLAMATION_MARK",eo[eo.ADLAM_INITIAL_QUESTION_MARK=125279]="ADLAM_INITIAL_QUESTION_MARK"})(UnicodePoCodePoint||(UnicodePoCodePoint={}));var UnicodePsCodePoint;(function(eo){eo[eo.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",eo[eo.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",eo[eo.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",eo[eo.TIBETAN_MARK_GUG_RTAGS_GYON=3898]="TIBETAN_MARK_GUG_RTAGS_GYON",eo[eo.TIBETAN_MARK_ANG_KHANG_GYON=3900]="TIBETAN_MARK_ANG_KHANG_GYON",eo[eo.OGHAM_FEATHER_MARK=5787]="OGHAM_FEATHER_MARK",eo[eo.SINGLE_LOW_9_QUOTATION_MARK=8218]="SINGLE_LOW_9_QUOTATION_MARK",eo[eo.DOUBLE_LOW_9_QUOTATION_MARK=8222]="DOUBLE_LOW_9_QUOTATION_MARK",eo[eo.LEFT_SQUARE_BRACKET_WITH_QUILL=8261]="LEFT_SQUARE_BRACKET_WITH_QUILL",eo[eo.SUPERSCRIPT_LEFT_PARENTHESIS=8317]="SUPERSCRIPT_LEFT_PARENTHESIS",eo[eo.SUBSCRIPT_LEFT_PARENTHESIS=8333]="SUBSCRIPT_LEFT_PARENTHESIS",eo[eo.LEFT_CEILING=8968]="LEFT_CEILING",eo[eo.LEFT_FLOOR=8970]="LEFT_FLOOR",eo[eo.LEFT_POINTING_ANGLE_BRACKET=9001]="LEFT_POINTING_ANGLE_BRACKET",eo[eo.MEDIUM_LEFT_PARENTHESIS_ORNAMENT=10088]="MEDIUM_LEFT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT=10090]="MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10092]="MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10094]="HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",eo[eo.HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10096]="HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT=10098]="LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT",eo[eo.MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT=10100]="MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT",eo[eo.LEFT_S_SHAPED_BAG_DELIMITER=10181]="LEFT_S_SHAPED_BAG_DELIMITER",eo[eo.MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET=10214]="MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET",eo[eo.MATHEMATICAL_LEFT_ANGLE_BRACKET=10216]="MATHEMATICAL_LEFT_ANGLE_BRACKET",eo[eo.MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET=10218]="MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET",eo[eo.MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET=10220]="MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS=10222]="MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS",eo[eo.LEFT_WHITE_CURLY_BRACKET=10627]="LEFT_WHITE_CURLY_BRACKET",eo[eo.LEFT_WHITE_PARENTHESIS=10629]="LEFT_WHITE_PARENTHESIS",eo[eo.Z_NOTATION_LEFT_IMAGE_BRACKET=10631]="Z_NOTATION_LEFT_IMAGE_BRACKET",eo[eo.Z_NOTATION_LEFT_BINDING_BRACKET=10633]="Z_NOTATION_LEFT_BINDING_BRACKET",eo[eo.LEFT_SQUARE_BRACKET_WITH_UNDERBAR=10635]="LEFT_SQUARE_BRACKET_WITH_UNDERBAR",eo[eo.LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10637]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",eo[eo.LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10639]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",eo[eo.LEFT_ANGLE_BRACKET_WITH_DOT=10641]="LEFT_ANGLE_BRACKET_WITH_DOT",eo[eo.LEFT_ARC_LESS_THAN_BRACKET=10643]="LEFT_ARC_LESS_THAN_BRACKET",eo[eo.DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET=10645]="DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET",eo[eo.LEFT_BLACK_TORTOISE_SHELL_BRACKET=10647]="LEFT_BLACK_TORTOISE_SHELL_BRACKET",eo[eo.LEFT_WIGGLY_FENCE=10712]="LEFT_WIGGLY_FENCE",eo[eo.LEFT_DOUBLE_WIGGLY_FENCE=10714]="LEFT_DOUBLE_WIGGLY_FENCE",eo[eo.LEFT_POINTING_CURVED_ANGLE_BRACKET=10748]="LEFT_POINTING_CURVED_ANGLE_BRACKET",eo[eo.TOP_LEFT_HALF_BRACKET=11810]="TOP_LEFT_HALF_BRACKET",eo[eo.BOTTOM_LEFT_HALF_BRACKET=11812]="BOTTOM_LEFT_HALF_BRACKET",eo[eo.LEFT_SIDEWAYS_U_BRACKET=11814]="LEFT_SIDEWAYS_U_BRACKET",eo[eo.LEFT_DOUBLE_PARENTHESIS=11816]="LEFT_DOUBLE_PARENTHESIS",eo[eo.DOUBLE_LOW_REVERSED_9_QUOTATION_MARK=11842]="DOUBLE_LOW_REVERSED_9_QUOTATION_MARK",eo[eo.LEFT_ANGLE_BRACKET=12296]="LEFT_ANGLE_BRACKET",eo[eo.LEFT_DOUBLE_ANGLE_BRACKET=12298]="LEFT_DOUBLE_ANGLE_BRACKET",eo[eo.LEFT_CORNER_BRACKET=12300]="LEFT_CORNER_BRACKET",eo[eo.LEFT_WHITE_CORNER_BRACKET=12302]="LEFT_WHITE_CORNER_BRACKET",eo[eo.LEFT_BLACK_LENTICULAR_BRACKET=12304]="LEFT_BLACK_LENTICULAR_BRACKET",eo[eo.LEFT_TORTOISE_SHELL_BRACKET=12308]="LEFT_TORTOISE_SHELL_BRACKET",eo[eo.LEFT_WHITE_LENTICULAR_BRACKET=12310]="LEFT_WHITE_LENTICULAR_BRACKET",eo[eo.LEFT_WHITE_TORTOISE_SHELL_BRACKET=12312]="LEFT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.LEFT_WHITE_SQUARE_BRACKET=12314]="LEFT_WHITE_SQUARE_BRACKET",eo[eo.REVERSED_DOUBLE_PRIME_QUOTATION_MARK=12317]="REVERSED_DOUBLE_PRIME_QUOTATION_MARK",eo[eo.ORNATE_RIGHT_PARENTHESIS=64831]="ORNATE_RIGHT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET=65047]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS=65077]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET=65079]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET=65081]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET=65083]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET=65085]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET=65087]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET=65089]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET=65091]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET=65095]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET",eo[eo.SMALL_LEFT_PARENTHESIS=65113]="SMALL_LEFT_PARENTHESIS",eo[eo.SMALL_LEFT_CURLY_BRACKET=65115]="SMALL_LEFT_CURLY_BRACKET",eo[eo.SMALL_LEFT_TORTOISE_SHELL_BRACKET=65117]="SMALL_LEFT_TORTOISE_SHELL_BRACKET",eo[eo.FULLWIDTH_LEFT_PARENTHESIS=65288]="FULLWIDTH_LEFT_PARENTHESIS",eo[eo.FULLWIDTH_LEFT_SQUARE_BRACKET=65339]="FULLWIDTH_LEFT_SQUARE_BRACKET",eo[eo.FULLWIDTH_LEFT_CURLY_BRACKET=65371]="FULLWIDTH_LEFT_CURLY_BRACKET",eo[eo.FULLWIDTH_LEFT_WHITE_PARENTHESIS=65375]="FULLWIDTH_LEFT_WHITE_PARENTHESIS",eo[eo.HALFWIDTH_LEFT_CORNER_BRACKET=65378]="HALFWIDTH_LEFT_CORNER_BRACKET"})(UnicodePsCodePoint||(UnicodePsCodePoint={}));var UnicodeZsCodePoint;(function(eo){eo[eo.SPACE=32]="SPACE",eo[eo.NO_BREAK_SPACE=160]="NO_BREAK_SPACE",eo[eo.OGHAM_SPACE_MARK=5760]="OGHAM_SPACE_MARK",eo[eo.EN_QUAD=8192]="EN_QUAD",eo[eo.EM_QUAD=8193]="EM_QUAD",eo[eo.EN_SPACE=8194]="EN_SPACE",eo[eo.EM_SPACE=8195]="EM_SPACE",eo[eo.THREE_PER_EM_SPACE=8196]="THREE_PER_EM_SPACE",eo[eo.FOUR_PER_EM_SPACE=8197]="FOUR_PER_EM_SPACE",eo[eo.SIX_PER_EM_SPACE=8198]="SIX_PER_EM_SPACE",eo[eo.FIGURE_SPACE=8199]="FIGURE_SPACE",eo[eo.PUNCTUATION_SPACE=8200]="PUNCTUATION_SPACE",eo[eo.THIN_SPACE=8201]="THIN_SPACE",eo[eo.HAIR_SPACE=8202]="HAIR_SPACE",eo[eo.NARROW_NO_BREAK_SPACE=8239]="NARROW_NO_BREAK_SPACE",eo[eo.MEDIUM_MATHEMATICAL_SPACE=8287]="MEDIUM_MATHEMATICAL_SPACE",eo[eo.IDEOGRAPHIC_SPACE=12288]="IDEOGRAPHIC_SPACE"})(UnicodeZsCodePoint||(UnicodeZsCodePoint={}));var VirtualCodePoint;(function(eo){eo[eo.LINE_END=-1]="LINE_END",eo[eo.SPACE=-2]="SPACE"})(VirtualCodePoint||(VirtualCodePoint={}));function createCodePointSearcher(eo){const to=[...new Set(eo)].sort((so,ao)=>so-ao),no=to.length;if(no<8)return[so=>{for(let ao=0;aolo+ao);++ao);io.push(lo,lo+ao)}if(io.length*1.5{for(let lo=0;lo{let lo=0,uo=so;for(;lo>>1;ao{let ao=0,lo=no;for(;ao>>1;sotypeof to=="number")}createCodePointSearcher([AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.CR,AsciiCodePoint.SPACE]);const[isAsciiPunctuationCharacter,asciiPunctuationCharacters]=createCodePointSearcher([AsciiCodePoint.EXCLAMATION_MARK,AsciiCodePoint.DOUBLE_QUOTE,AsciiCodePoint.NUMBER_SIGN,AsciiCodePoint.DOLLAR_SIGN,AsciiCodePoint.PERCENT_SIGN,AsciiCodePoint.AMPERSAND,AsciiCodePoint.SINGLE_QUOTE,AsciiCodePoint.OPEN_PARENTHESIS,AsciiCodePoint.CLOSE_PARENTHESIS,AsciiCodePoint.ASTERISK,AsciiCodePoint.PLUS_SIGN,AsciiCodePoint.COMMA,AsciiCodePoint.MINUS_SIGN,AsciiCodePoint.DOT,AsciiCodePoint.SLASH,AsciiCodePoint.COLON,AsciiCodePoint.SEMICOLON,AsciiCodePoint.OPEN_ANGLE,AsciiCodePoint.EQUALS_SIGN,AsciiCodePoint.CLOSE_ANGLE,AsciiCodePoint.QUESTION_MARK,AsciiCodePoint.AT_SIGN,AsciiCodePoint.OPEN_BRACKET,AsciiCodePoint.BACKSLASH,AsciiCodePoint.CLOSE_BRACKET,AsciiCodePoint.CARET,AsciiCodePoint.UNDERSCORE,AsciiCodePoint.BACKTICK,AsciiCodePoint.OPEN_BRACE,AsciiCodePoint.VERTICAL_SLASH,AsciiCodePoint.CLOSE_BRACE,AsciiCodePoint.TILDE]),isAsciiDigitCharacter=eo=>eo>=AsciiCodePoint.DIGIT0&&eo<=AsciiCodePoint.DIGIT9,isAsciiLowerLetter=eo=>eo>=AsciiCodePoint.LOWERCASE_A&&eo<=AsciiCodePoint.LOWERCASE_Z,isAsciiUpperLetter=eo=>eo>=AsciiCodePoint.UPPERCASE_A&&eo<=AsciiCodePoint.UPPERCASE_Z,isAsciiLetter=eo=>isAsciiLowerLetter(eo)||isAsciiUpperLetter(eo),isAlphanumeric=eo=>isAsciiLowerLetter(eo)||isAsciiUpperLetter(eo)||isAsciiDigitCharacter(eo),isAsciiCharacter=eo=>eo>=AsciiCodePoint.NUL&&eo<=AsciiCodePoint.DELETE,[isAsciiControlCharacter,asciiControlCharacters]=createCodePointSearcher([AsciiCodePoint.NUL,AsciiCodePoint.SOH,AsciiCodePoint.STX,AsciiCodePoint.ETX,AsciiCodePoint.EOT,AsciiCodePoint.ENQ,AsciiCodePoint.ACK,AsciiCodePoint.BEL,AsciiCodePoint.BS,AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.CR,AsciiCodePoint.SO,AsciiCodePoint.SI,AsciiCodePoint.DLE,AsciiCodePoint.DC1,AsciiCodePoint.DC2,AsciiCodePoint.DC3,AsciiCodePoint.DC4,AsciiCodePoint.NAK,AsciiCodePoint.SYN,AsciiCodePoint.ETB,AsciiCodePoint.CAN,AsciiCodePoint.EM,AsciiCodePoint.SUB,AsciiCodePoint.ESC,AsciiCodePoint.FS,AsciiCodePoint.GS,AsciiCodePoint.RS,AsciiCodePoint.US,AsciiCodePoint.DELETE]),[isWhitespaceCharacter,whitespaceCharacters]=createCodePointSearcher([AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.SPACE,VirtualCodePoint.SPACE,VirtualCodePoint.LINE_END]);AsciiCodePoint.SPACE,VirtualCodePoint.SPACE;const isSpaceCharacter=eo=>eo===AsciiCodePoint.SPACE||eo===VirtualCodePoint.SPACE,isLineEnding=eo=>eo===VirtualCodePoint.LINE_END,[isPunctuationCharacter,punctuationCharacters]=createCodePointSearcher([...asciiPunctuationCharacters,...collectCodePointsFromEnum(UnicodePcCodePoint),...collectCodePointsFromEnum(UnicodePdCodePoint),...collectCodePointsFromEnum(UnicodePeCodePoint),...collectCodePointsFromEnum(UnicodePfCodePoint),...collectCodePointsFromEnum(UnicodePiCodePoint),...collectCodePointsFromEnum(UnicodePoCodePoint),...collectCodePointsFromEnum(UnicodePsCodePoint)]),isSpaceLike=eo=>isSpaceCharacter(eo)||isLineEnding(eo),[isUnicodeWhitespaceCharacter,unicodeWhitespaceCharacters]=createCodePointSearcher([AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.FF,AsciiCodePoint.CR,VirtualCodePoint.SPACE,VirtualCodePoint.LINE_END,...collectCodePointsFromEnum(UnicodeZsCodePoint)]);var UnicodeCodePoint;(function(eo){eo[eo.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(UnicodeCodePoint||(UnicodeCodePoint={}));function createEntityReferenceTrie(){const eo=(so,ao)=>{if(so.length<=4){for(let ho=0;ho=ao)return ho;return so.length}let lo=0,uo=so.length;for(;lo>>1;so[ho].key{let lo=to;for(const uo of so){const ho=eo(lo.children,uo);if(ho>=lo.children.length){const mo={key:uo,children:[]};lo.children.push(mo),lo=mo;continue}let go=lo.children[ho];if(go.key===uo){lo=go;continue}go={key:uo,children:[]},lo.children.splice(ho,0,go),lo=go}lo.value=ao},search:(so,ao,lo)=>{let uo=to;for(let ho=ao;ho=uo.children.length)return null;const yo=uo.children[mo];if(yo.key!==go)return null;if(yo.value!=null)return{nextIndex:ho+1,value:yo.value};uo=yo}return null}}}const entityReferenceTrie=createEntityReferenceTrie();entityReferences.forEach(eo=>entityReferenceTrie.insert(eo.key,eo.value));function eatEntityReference(eo,to,no){if(to+1>=no)return null;const io=entityReferenceTrie.search(eo,to,no);if(io!=null)return io;if(eo[to].codePoint!==AsciiCodePoint.NUMBER_SIGN)return null;let so=0,ao=to+1;if(eo[ao].codePoint===AsciiCodePoint.LOWERCASE_X||eo[ao].codePoint===AsciiCodePoint.UPPERCASE_X){ao+=1;for(let uo=1;uo<=6&&ao=AsciiCodePoint.UPPERCASE_A&&ho<=AsciiCodePoint.UPPERCASE_F){so=(so<<4)+(ho-AsciiCodePoint.UPPERCASE_A+10);continue}if(ho>=AsciiCodePoint.LOWERCASE_A&&ho<=AsciiCodePoint.LOWERCASE_F){so=(so<<4)+(ho-AsciiCodePoint.LOWERCASE_A+10);continue}break}}else for(let uo=1;uo<=7&&ao=no||eo[ao].codePoint!==AsciiCodePoint.SEMICOLON)return null;let lo;try{so===0&&(so=UnicodeCodePoint.REPLACEMENT_CHARACTER),lo=String.fromCodePoint(so)}catch{lo=String.fromCodePoint(UnicodeCodePoint.REPLACEMENT_CHARACTER)}return{nextIndex:ao+1,value:lo}}function foldCase(eo){return Array.from(eo).map(to=>foldingCaseCodeMap[to]??to).join("")}(()=>{try{const eo=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,to=new RegExp(`(${eo})\\n+(${eo})`,"gu");return no=>no.replace(to,"$1$2")}catch{const eo=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,to=new RegExp(`(${eo})\\n+(${eo})`,"gu");return no=>no.replace(to,"$1$2")}})();(()=>{try{const eo=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,to=new RegExp(`(${eo})[\\s\\n]+(${eo})`,"gu");return no=>no.replace(to,"$1$2")}catch{const eo=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,to=new RegExp(`(${eo})[\\s\\n]+(${eo})`,"gu");return no=>no.replace(to,"$1$2")}})();function*createNodePointGenerator(eo){let to=0,no=1,io=1;const so=typeof eo=="string"?[eo]:eo;for(const ao of so){const lo=[];for(const go of ao){const mo=go.codePointAt(0);lo.push(mo)}const uo=[],ho=lo.length;for(let go=0;go>2,go=lo-ao&3;for(let mo=0;mo>2,go=lo-ao&3;for(let mo=0;mo!0;if(eo instanceof Function)return eo;if(eo.length===0)return()=>!1;if(eo.length===1){const to=eo[0];return no=>no.type===to}if(eo.length===2){const[to,no]=eo;return io=>io.type===to||io.type===no}return to=>{for(const no of eo)if(to.type===no)return!0;return!1}}function traverseAst(eo,to,no){const io=createNodeMatcher(to),so=ao=>{const{children:lo}=ao;for(let uo=0;uo{const io={};traverseAst(eo,to,lo=>{const uo=lo;io[uo.identifier]===void 0&&(io[uo.identifier]=uo)});const so=[];for(const lo of no)io[lo.identifier]===void 0&&(io[lo.identifier]=lo,so.push(lo));return{root:so.length>0?{...eo,children:eo.children.concat(so)}:eo,definitionMap:io}},astClasses=mergeStyleSets({root:{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(0deg, 0%, 94%)","--colorBgTableEvenRow":"hsl(0deg, 0%, 96%)","--colorBgTableOddRow":"hsl(0deg, 0%, 100%)","--colorBorderBlockquote":"hsl(210deg, 13%, 85%)","--colorBorderHeading":"hsl(0deg, 0%, 80%)","--colorBorderImage":"hsl(277deg, 19%, 47%)","--colorBorderTable":"hsl(220deg, 7%, 90%)","--colorBgCode":"#f5f7f9","--colorDelete":"hsl(210deg, 8%, 65%)","--colorHeading":"hsl(0deg, 0%, 25%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 60%, 47%)","--colorLink":"hsl(206deg, 53%, 47%)","--colorLinkActive":"hsl(206deg, 53%, 52%)","--colorLinkHover":"hsl(206deg, 53%, 52%)","--colorLinkVisited":"hsl(206deg, 53%, 47%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"},rootDarken:{"&&":{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(200deg, 10%, 16%)","--colorBgTableEvenRow":"hsl(200deg, 10%, 16%)","--colorBgTableOddRow":"hsl(0deg, 0%, 9%)","--colorBorderBlockquote":"hsl(207deg, 7%, 45%)","--colorBorderHeading":"hsla(0deg, 0%, 30%, 0.8)","--colorBorderImage":"hsl(290deg, 15%, 49%)","--colorBorderTable":"hsl(0deg, 0%, 50%)","--colorBgCode":"hsl(0deg, 0%, 12%)","--colorDelete":"hsl(220deg, 5%, 68%)","--colorHeading":"hsl(0deg, 0%, 65%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 70%, 52%)","--colorLink":"hsl(207deg, 53%, 50%)","--colorLinkActive":"hsl(207deg, 53%, 50%)","--colorLinkHover":"hsl(207deg, 53%, 50%)","--colorLinkVisited":"hsl(207deg, 53%, 50%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"}},blockquote:{},break:{},code:{},delete:{},emphasis:{},heading:{},image:{},imageReference:{},inlineCode:{},link:{},linkReference:{},list:{},listItem:{},paragraph:{},strong:{},table:{},text:{},thematicBreak:{}}),NodeRendererContextType=React.createContext(null);NodeRendererContextType.displayName="NodeRendererContextType";const useNodeRendererContext=()=>React.useContext(NodeRendererContextType);class SafeBatchHandler{constructor(){d0(this,"_errors");d0(this,"_summary");this._errors=[],this._summary=void 0}cleanup(){this._errors.length=0,this._summary=void 0}run(to){try{to()}catch(no){this._errors.push(no),this._summary=void 0}}summary(to){if(this._summary===void 0){if(this._errors.length===1)throw this._summary=this._errors[0];this._errors.length>1&&(this._summary=new AggregateError(this._errors,to))}if(this._summary!==void 0)throw this._summary}}function disposeAll(eo){const to=new SafeBatchHandler;for(const no of eo)to.run(()=>no.dispose());to.summary("[disposeAll] Encountered errors while disposing"),to.cleanup()}class BatchDisposable{constructor(){d0(this,"_disposed");d0(this,"_disposables");this._disposed=!1,this._disposables=[]}get disposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;try{disposeAll(this._disposables)}finally{this._disposables.length=0}}}registerDisposable(to){to.disposed||(this._disposed?to.dispose():this._disposables.push(to))}}class Disposable{constructor(to){d0(this,"_onDispose");d0(this,"_disposed");this._onDispose=to,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}}function isDisposable(eo){return eo===null||typeof eo!="object"?!1:typeof Reflect.get(eo,"dispose")=="function"&&typeof Reflect.get(eo,"disposed")=="boolean"}const noop$6=()=>{};class Subscriber{constructor(to){d0(this,"_onDispose");d0(this,"_onNext");d0(this,"_disposed");this._onDispose=(to==null?void 0:to.onDispose)??noop$6,this._onNext=to.onNext,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}next(to,no){this._disposed||this._onNext(to,no)}}const noopUnsubscribable$1={unsubscribe:()=>{}};class Subscribers{constructor(to={}){d0(this,"ARRANGE_THRESHOLD");d0(this,"_disposed");d0(this,"_items");d0(this,"_subscribingCount");this.ARRANGE_THRESHOLD=to.ARRANGE_THRESHOLD??16,this._disposed=!1,this._items=[],this._subscribingCount=0}get size(){return this._subscribingCount}get disposed(){return this._disposed}dispose(){if(this._disposed)return;this._disposed=!0;const to=new SafeBatchHandler,no=this._items;for(let io=0;ioso.subscriber.dispose()))}no.length=0,this._subscribingCount=0,to.summary("Encountered errors while disposing."),to.cleanup()}notify(to,no){if(this._disposed)return;const io=new SafeBatchHandler,so=this._items;for(let ao=0,lo=so.length;aouo.subscriber.next(to,no))}io.summary("Encountered errors while notifying subscribers."),io.cleanup()}subscribe(to){if(to.disposed)return noopUnsubscribable$1;if(this.disposed)return to.dispose(),noopUnsubscribable$1;const no={subscriber:to,unsubscribed:!1};return this._items.push(no),this._subscribingCount+=1,{unsubscribe:()=>{no.unsubscribed||(no.unsubscribed=!0,this._subscribingCount-=1,this._arrange())}}}_arrange(){const to=this._items;if(to.length>=this.ARRANGE_THRESHOLD&&this._subscribingCount*2<=to.length){const no=[];for(let io=0;io{},noopUnsubscribable={unsubscribe:noop$5},noopUnobservable={unobserve:noop$5},isObservable=eo=>eo===null||typeof eo!="object"?!1:typeof Reflect.get(eo,"dispose")=="function"&&typeof Reflect.get(eo,"disposed")=="boolean"&&typeof Reflect.get(eo,"subscribe")=="function"&&typeof Reflect.get(eo,"equals")=="function"&&typeof Reflect.get(eo,"getSnapshot")=="function"&&typeof Reflect.get(eo,"next")=="function",defaultEquals=(eo,to)=>Object.is(eo,to);class Observable extends BatchDisposable{constructor(no,io={}){super();d0(this,"equals");d0(this,"_delay");d0(this,"_subscribers");d0(this,"_value");d0(this,"_updateTick");d0(this,"_notifyTick");d0(this,"_lastNotifiedValue");d0(this,"_timer");const{equals:so=defaultEquals}=io;this._delay=Math.max(0,Number(io.delay)||0),this._subscribers=new Subscribers,this._value=no,this._updateTick=0,this._notifyTick=0,this._lastNotifiedValue=void 0,this._timer=void 0,this.equals=so}dispose(){this.disposed||(super.dispose(),this._flush(),this._subscribers.dispose())}getSnapshot(){return this._value}next(no,io){if(this.disposed){if((io==null?void 0:io.strict)??!0)throw new RangeError(`Don't update a disposed observable. value: ${String(no)}.`);return}!((io==null?void 0:io.force)??!1)&&this.equals(no,this._value)||(this._value=no,this._updateTick+=1,this._notify())}subscribe(no){if(no.disposed)return noopUnsubscribable;const io=this._lastNotifiedValue,so=this._value;return this.disposed?(no.next(so,io),no.dispose(),noopUnsubscribable):(this._flush(),no.next(so,io),this._subscribers.subscribe(no))}_flush(){this._notifyTick{try{this._notifyImmediate()}finally{this._timer=void 0}this._notify()},this._delay))}}_notifyImmediate(){const no=this._lastNotifiedValue,io=this._value;this._lastNotifiedValue=io,this._notifyTick=this._updateTick,this._subscribers.notify(io,no)}}const equals=(eo,to)=>eo===to;class Ticker extends Observable{constructor(to={}){const{start:no=0,delay:io}=to;super(no,{delay:io,equals})}tick(to){this.next(this._value+1,to)}observe(to,no){if(this.disposed){if((no==null?void 0:no.strict)??!0)throw new RangeError("[Ticker.observe] the ticker has been disposed.");return noopUnobservable}if(to.disposed)return noopUnobservable;const io=new Subscriber({onNext:()=>this.tick()}),so=to.subscribe(io),ao=new Disposable(()=>{io.dispose(),so.unsubscribe()});return this.registerDisposable(ao),{unobserve:()=>ao.dispose()}}}class Computed{constructor(to){d0(this,"_observable");d0(this,"getSnapshot",()=>this._observable.getSnapshot());d0(this,"getServerSnapshot",()=>this._observable.getSnapshot());d0(this,"subscribeStateChange",to=>{const no=new Subscriber({onNext:()=>to()}),io=this._observable.subscribe(no),so=new Disposable(()=>{no.dispose(),io.unsubscribe()});return this._observable.registerDisposable(so),()=>so.dispose()});this._observable=to}static fromObservables(to,no,io){const so=new Ticker;for(const ho of to)so.observe(ho);const ao=()=>{const ho=to.map(go=>go.getSnapshot());return no(ho)},lo=new Observable(ao(),io);lo.registerDisposable(so);const uo=new Subscriber({onNext:()=>lo.next(ao())});return so.subscribe(uo),new Computed(lo)}get disposed(){return this._observable.disposed}dispose(){this._observable.disposed||this._observable.dispose()}registerDisposable(to){this._observable.registerDisposable(to)}subscribe(to){return this._observable.subscribe(to)}}class State extends Observable{constructor(){super(...arguments);d0(this,"getSnapshot",()=>super.getSnapshot());d0(this,"getServerSnapshot",()=>super.getSnapshot());d0(this,"setState",no=>{const io=this.getSnapshot(),so=no(io);super.next(so)});d0(this,"subscribeStateChange",no=>{const io=new Subscriber({onNext:()=>no()}),so=super.subscribe(io),ao=new Disposable(()=>{io.dispose(),so.unsubscribe()});return this.registerDisposable(ao),()=>ao.dispose()})}}class ViewModel extends BatchDisposable{constructor(){super();d0(this,"_tickerMap");this._tickerMap=new Map}dispose(){if(!this.disposed){super.dispose();for(const no of Reflect.ownKeys(this))if(typeof no=="string"&&no.endsWith("$")){const io=this[no];isDisposable(io)&&io.dispose()}for(const no of this._tickerMap.values())no.ticker.dispose();this._tickerMap.clear()}}ticker(no){const io=Array.from(new Set(no)).sort(),so=io.join("|");let ao=this._tickerMap.get(so);if(ao===void 0){const lo=new Ticker;ao={keys:io,ticker:lo},this.registerDisposable(lo),this._tickerMap.set(so,ao);for(const uo of io){const ho=this[uo];if(!isObservable(ho)){console.warn("[ViewModel.ticker] not an observable, key:",uo,"val:",ho);continue}lo.observe(ho)}}return ao}}class ReactMarkdownViewModel extends ViewModel{constructor(to){super(),this.preferCodeWrap$=new State(!1);const{definitionMap:no,rendererMap:io,showCodeLineno:so,themeScheme:ao}=to;this.definitionMap$=new State(no),this.rendererMap$=new State(io),this.showCodeLineno$=new State(so),this.themeScheme$=new State(ao)}}function useSyncExternalStore$2(eo,to,no){const io=to(),[{inst:so},ao]=reactExports.useState({inst:{value:io,getSnapshot:to}});return reactExports.useLayoutEffect(()=>{so.value=io,so.getSnapshot=to,checkIfSnapshotChanged(so)&&ao({inst:so})},[eo,io,to]),reactExports.useEffect(()=>(checkIfSnapshotChanged(so)&&ao({inst:so}),eo(()=>{checkIfSnapshotChanged(so)&&ao({inst:so})})),[eo]),reactExports.useDebugValue(io),io}function checkIfSnapshotChanged(eo){const to=eo.getSnapshot,no=eo.value;try{const io=to();return!Object.is(no,io)}catch{return!0}}function useSyncExternalStore$1(eo,to,no){return to()}const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",shim=canUseDOM?useSyncExternalStore$2:useSyncExternalStore$1,builtin=reactExports.useSyncExternalStore,useSyncExternalStore=builtin||shim;function useStateValue(eo){const{getSnapshot:to,getServerSnapshot:no,subscribeStateChange:io}=eo;return useSyncExternalStore(io,to,no)}const NodesRenderer=eo=>{const{nodes:to}=eo,{viewmodel:no}=useNodeRendererContext(),io=useStateValue(no.rendererMap$);return!Array.isArray(to)||to.length<=0?jsxRuntimeExports.jsx(React.Fragment,{}):jsxRuntimeExports.jsx(NodesRendererInner,{nodes:to,rendererMap:io})};class NodesRendererInner extends React.Component{shouldComponentUpdate(to){const no=this.props;return!lodashExports.isEqual(no.nodes,to.nodes)||no.rendererMap!==to.rendererMap}render(){const{nodes:to,rendererMap:no}=this.props;return jsxRuntimeExports.jsx(React.Fragment,{children:to.map((io,so)=>{const ao=`${io.type}-${so}`,lo=no[io.type]??no._fallback;return jsxRuntimeExports.jsx(lo,{...io},ao)})})}}var TokenizerType;(function(eo){eo.BLOCK="block",eo.INLINE="inline"})(TokenizerType||(TokenizerType={}));var TokenizerPriority;(function(eo){eo[eo.ATOMIC=10]="ATOMIC",eo[eo.FENCED_BLOCK=10]="FENCED_BLOCK",eo[eo.CONTAINING_BLOCK=10]="CONTAINING_BLOCK",eo[eo.INTERRUPTABLE_BLOCK=2]="INTERRUPTABLE_BLOCK",eo[eo.IMAGES=4]="IMAGES",eo[eo.LINKS=3]="LINKS",eo[eo.CONTAINING_INLINE=2]="CONTAINING_INLINE",eo[eo.SOFT_INLINE=1]="SOFT_INLINE",eo[eo.FALLBACK=-1]="FALLBACK"})(TokenizerPriority||(TokenizerPriority={}));class BaseInlineTokenizer{constructor(to){d0(this,"type",TokenizerType.INLINE);d0(this,"name");d0(this,"priority");this.name=to.name,this.priority=to.priority}toString(){return this.name}}function*genFindDelimiter(eo){let to=-1,no=null;for(;;){const[io,so]=yield no;to===so&&(no==null||no.startIndex>=io)||(to=so,no=eo(io,so))}}class BaseBlockTokenizer{constructor(to){d0(this,"type",TokenizerType.BLOCK);d0(this,"name");d0(this,"priority");this.name=to.name,this.priority=to.priority}extractPhrasingContentLines(to){return null}buildBlockToken(to,no){return null}toString(){return this.name}}function calcStartPoint(eo,to){const{line:no,column:io,offset:so}=eo[to];return{line:no,column:io,offset:so}}function calcEndPoint(eo,to){const{line:no,column:io,offset:so}=eo[to];return{line:no,column:io+1,offset:so+1}}function calcPositionFromPhrasingContentLines(eo){const to=eo[0],no=eo[eo.length-1];return{start:calcStartPoint(to.nodePoints,to.startIndex),end:calcEndPoint(no.nodePoints,no.endIndex-1)}}function mergeContentLinesFaithfully(eo,to=0,no=eo.length){if(to>=no||to<0||no>eo.length)return[];const io=[];for(let so=to;so=no||to<0||no>eo.length)return[];for(let ho=to;ho+1=0;--uo){const ho=so[uo];if(!isWhitespaceCharacter(ho.codePoint))break}for(let ho=lo;ho<=uo;++ho)io.push(so[ho]);return io}function encodeLinkDestination(eo){let to=eo;for(;;)try{const no=decodeURIComponent(to);if(no===to)break;to=no}catch{break}return encodeURI(to)}function resolveLabelToIdentifier(eo){const to=eo.trim().replace(/\s+/gu," ").toLowerCase();return foldCase(to)}function resolveLinkLabelAndIdentifier(eo,to,no){const io=calcStringFromNodePoints(eo,to,no,!0);if(io.length<=0)return null;const so=resolveLabelToIdentifier(io);return{label:io,identifier:so}}function eatLinkLabel(eo,to,no){let io=to+1;const so=Math.min(io+1e3,no);for(;ioto;--no){const io=eo[no];if(io.firstNonWhitespaceIndexno?[]:eo.slice(to,no+1)}const prefix$1="Invariant failed";function invariant(eo,to){if(!eo)throw new Error(prefix$1)}const createBlockContentProcessor=(eo,to)=>{const no={_tokenizer:"root",nodeType:"root",position:{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}},children:[]},io=[];io.push({hook:{isContainingBlock:!0},token:no});let so=0;const ao=_o=>{for(let ko=so;ko>=0;--ko){const Co=io[ko];Co.token.position.end={..._o}}},lo=(_o,ko)=>{if(ko.length<=0)return null;const Co=eo.filter(Ro=>Ro!==_o),$o=createBlockContentProcessor(Co,to);for(const Ro of ko)$o.consume(Ro);return $o},uo=()=>{const _o=io.pop();if(_o!=null){if(io.length>0){const ko=io[io.length-1];if(_o.hook.onClose!=null){const Co=_o.hook.onClose(_o.token);if(Co!=null)switch(Co.status){case"closingAndRollback":{const $o=lo(_o.hook,Co.lines);if($o==null)break;const Ro=$o.done();ko.token.children.push(...Ro.children);break}case"failedAndRollback":{ko.token.children.pop();const $o=lo(_o.hook,Co.lines);if($o==null)break;const Ro=$o.done();ko.token.children.push(...Ro.children);break}}}}return so>=io.length&&(so=io.length-1),_o}},ho=_o=>{for(;io.length>_o;)uo()},go=(_o,ko,Co)=>{ho(so+1),io[so].token.children.push(ko),ao(ko.position.end),so+=1,io.push({hook:_o,token:ko}),Co&&uo()},mo=(_o,ko,Co)=>{const $o=lo(_o,ko);if($o==null)return!1;const Ro=$o.shallowSnapshot(),Oo=Ro[0];Oo.token.children!=null&&Co.token.children.push(...Oo.token.children),ao(Oo.token.position.end);for(let No=1;No{const{nodePoints:ko,startIndex:Co,endIndex:$o}=_o;let{firstNonWhitespaceIndex:Ro,countOfPrecedeSpaces:Oo,startIndex:No}=_o;const Mo=()=>({nodePoints:ko,startIndex:No,endIndex:$o,firstNonWhitespaceIndex:Ro,countOfPrecedeSpaces:Oo}),Bo=(Ho,Yo)=>{if(invariant(No<=Ho),Yo){const qo=calcEndPoint(ko,Ho-1);ao(qo)}if(No!==Ho)for(No=Ho,Oo=0,Ro=Ho;Ro<$o;++Ro){const qo=ko[Ro].codePoint;if(isSpaceCharacter(qo)){Oo+=1;continue}if(!isWhitespaceCharacter(qo))break}},Po=(Ho,Yo)=>{const{token:qo}=io[so],Jo=Ho.eatOpener(Yo,qo);if(Jo==null)return!1;invariant(Jo.nextIndex>No,`[consumeNewOpener] The marker of the new data node cannot be empty. - tokenizer(${Jo.token._tokenizer})`),Bo(Jo.nextIndex,!1);const ps=Jo.token;return ps._tokenizer=Ho.name,go(Ho,ps,!!Jo.saturated),!0},Lo=(Ho,Yo)=>{if(Ho.eatAndInterruptPreviousSibling==null)return!1;const{hook:qo,token:Jo}=io[so],{token:ps}=io[so-1];if(Ho.priority<=qo.priority)return!1;const Qo=Ho.eatAndInterruptPreviousSibling(Yo,Jo,ps);if(Qo==null)return!1;ho(so),ps.children.pop(),Qo.remainingSibling!=null&&(Array.isArray(Qo.remainingSibling)?ps.children.push(...Qo.remainingSibling):ps.children.push(Qo.remainingSibling)),Bo(Qo.nextIndex,!1);const hs=Qo.token;return hs._tokenizer=Ho.name,go(Ho,hs,!!Qo.saturated),!0},Go=()=>{if(so=1,io.length<2)return;let{token:Ho}=io[so-1];for(;No<$o&&sogs!==qo&&Lo(gs,Jo)))break;const ps=qo.eatContinuationText==null?{status:"notMatched"}:qo.eatContinuationText(Jo,Yo.token,Ho);let Qo=!1,hs=!1;switch(ps.status){case"failedAndRollback":{if(Ho.children.pop(),io.length=so,so-=1,ps.lines.length>0){const gs=io[so];if(mo(qo,ps.lines,gs)){hs=!0;break}}Qo=!0;break}case"closingAndRollback":{if(ho(so),ps.lines.length>0){const gs=io[so];if(mo(qo,ps.lines,gs)){hs=!0;break}}Qo=!0;break}case"notMatched":{so-=1,Qo=!0;break}case"closing":{Bo(ps.nextIndex,!0),so-=1,Qo=!0;break}case"opening":{Bo(ps.nextIndex,!0);break}default:throw new TypeError(`[eatContinuationText] unexpected status (${ps.status}).`)}if(Qo)break;hs||(so+=1,Ho=Yo.token)}},Do=()=>{if(!(No>=$o)){if(so=4)return}else so=io.length-1;for(;No<$o&&io[so].hook.isContainingBlock;){let Ho=!1;const Yo=Mo();for(const qo of eo)if(Po(qo,Yo)){Ho=!0;break}if(!Ho)break}}},Uo=()=>{if(No>=$o||so+1>=io.length)return!1;const{hook:Ho,token:Yo}=io[io.length-1];if(Ho.eatLazyContinuationText==null)return!1;const{token:qo}=io[io.length-2],Jo=Mo(),ps=Ho.eatLazyContinuationText(Jo,Yo,qo);switch(ps.status){case"notMatched":return!1;case"opening":return so=io.length-1,Bo(ps.nextIndex,!0),so=io.length-1,!0;default:throw new TypeError(`[eatLazyContinuationText] unexpected status (${ps.status}).`)}};if(Go(),Do(),Uo()||ho(so+1),to!=null&&No<$o){const Ho=Mo();Po(to,Ho)}invariant(Ro>=$o)},done:()=>{for(;io.length>1;)uo();return no},shallowSnapshot:()=>[...io]}},createSinglePriorityDelimiterProcessor=()=>{let eo=0;const to=[],no=[],io=[],so=yo=>{let So=yo-1;for(;So>=0&&no[So].inactive;)So-=1;no.length=So+1},ao=(yo,So)=>{no.push({hook:yo,delimiter:So,inactive:!1,tokenStackIndex:io.length})},lo=(yo,So)=>{if(no.length<=0)return null;let _o=null;for(let ko=no.length-1;ko>=0;--ko){if(_o=no[ko],_o.inactive||_o.hook!==yo)continue;const Co=_o.delimiter,$o=yo.isDelimiterPair(Co,So,to);if($o.paired)return Co;if(!$o.closer)return null}return null},uo=(yo,So)=>{if(no.length<=0)return So;let _o,ko=So,Co=[];for(let $o=no.length-1;$o>=0;--$o){const Ro=no[$o];if(Ro.hook!==yo||Ro.inactive)continue;const Oo=Ro.tokenStackIndex;for(Oo0){for(const Po of Bo)Po._tokenizer=yo.name;Co.unshift(...Bo)}_o=void 0,Ro.inactive=!0}if(!No.closer){const Bo=yo.processSingleDelimiter(ko);if(Bo.length>0){for(const Po of Bo)Po._tokenizer=yo.name;Co.push(...Bo)}ko=void 0}break}const Mo=yo.processDelimiterPair(_o,ko,Co);{for(const Bo of Mo.tokens)Bo._tokenizer==null&&(Bo._tokenizer=yo.name);Co=Mo.tokens}_o=Mo.remainOpenerDelimiter,ko=Mo.remainCloserDelimiter,so($o),$o=Math.min($o,no.length),_o!=null&&ao(yo,_o)}if(ko==null||ko.type==="full")break}if(io.push(...Co),ko==null)return null;if(ko.type==="full"||ko.type==="closer"){const $o=yo.processSingleDelimiter(ko);for(const Ro of $o)Ro._tokenizer=yo.name,io.push(Ro);return null}return ko};return{process:(yo,So)=>{for(;eo=So.endIndex)break;_o.startIndex>=So.startIndex||io.push(_o)}switch(So.type){case"opener":{ao(yo,So);break}case"both":{const _o=uo(yo,So);_o!=null&&ao(yo,_o);break}case"closer":{uo(yo,So);break}case"full":{const _o=yo.processSingleDelimiter(So);for(const ko of _o)ko._tokenizer=yo.name,io.push(ko);break}default:throw new TypeError(`Unexpected delimiter type(${So.type}) from ${yo.name}.`)}},done:()=>{const yo=[];for(const{delimiter:_o,hook:ko}of no){const Co=ko.processSingleDelimiter(_o);for(const $o of Co)$o._tokenizer=ko.name,yo.push($o)}if(no.length=0,yo.length>0){const _o=mergeSortedTokenStack(io,yo);io.length=0,io.push(..._o)}return io.concat(to.slice(eo))},reset:yo=>{to.length=yo.length;for(let So=0;So{if(eo.length<=0)return to;if(to.length<=0)return eo;const no=[];let io=0,so=0;for(;io{const no=(ao,lo,uo)=>{let ho=[],go=null;const mo=[ao,lo];for(const So of uo){const _o=So.findDelimiter(mo);if(_o!=null){if(go!=null){if(_o.startIndex>go)continue;_o.startIndex1){let So=0;for(const _o of ho){const ko=_o.delimiter.type;if(ko==="full")return{items:[_o],nextIndex:_o.delimiter.endIndex};(ko==="both"||ko==="closer")&&(So+=1)}if(So>1){let _o=-1,ko=-1;for(let $o=0;$o-1?[ho[_o]]:ho.filter($o=>$o.delimiter.type!=="closer"),nextIndex:yo}}}return{items:ho,nextIndex:yo}},io=createSinglePriorityDelimiterProcessor();return{process:(ao,lo,uo)=>{let ho=ao;for(let go=to;go{const io=[];for(let so=0;so{let So=lo.process(go,mo,yo);return So=no(So,mo,yo),So}}),ho=eo[so].priority;for(;so{let no;const io=eo.match(to);return{isDelimiterPair:()=>({paired:!0}),processDelimiterPair:(so,ao,lo)=>({tokens:lo}),processSingleDelimiter:()=>[],...io,name:eo.name,priority:eo.priority,findDelimiter:so=>no.next(so).value,reset:()=>{no=io.findDelimiter(),no.next()}}};function createProcessor(eo){const{inlineTokenizers:to,inlineTokenizerMap:no,blockTokenizers:io,blockTokenizerMap:so,blockFallbackTokenizer:ao,inlineFallbackTokenizer:lo,shouldReservePosition:uo,presetDefinitions:ho,presetFootnoteDefinitions:go,formatUrl:mo}=eo;let yo=!1;const So=new Set,_o=new Set;let ko=[],Co=-1,$o=-1;const Ro=Object.freeze({matchBlockApi:{extractPhrasingLines:Do,rollbackPhrasingLines:Uo,registerDefinitionIdentifier:hs=>{yo&&So.add(hs)},registerFootnoteDefinitionIdentifier:hs=>{yo&&_o.add(hs)}},parseBlockApi:{shouldReservePosition:uo,formatUrl:mo,processInlines:Jo,parseBlockTokens:qo},matchInlineApi:{hasDefinition:hs=>So.has(hs),hasFootnoteDefinition:hs=>_o.has(hs),getNodePoints:()=>ko,getBlockStartIndex:()=>Co,getBlockEndIndex:()=>$o,resolveFallbackTokens:Ho},parseInlineApi:{shouldReservePosition:uo,calcPosition:hs=>({start:calcStartPoint(ko,hs.startIndex),end:calcEndPoint(ko,hs.endIndex-1)}),formatUrl:mo,getNodePoints:()=>ko,hasDefinition:hs=>So.has(hs),hasFootnoteDefinition:hs=>_o.has(hs),parseInlineTokens:Qo}}),Oo=io.map(hs=>({...hs.match(Ro.matchBlockApi),name:hs.name,priority:hs.priority})),No=new Map(Array.from(so.entries()).map(hs=>[hs[0],hs[1].parse(Ro.parseBlockApi)])),Mo=ao?{...ao.match(Ro.matchBlockApi),name:ao.name,priority:ao.priority}:null,Bo=createProcessorHookGroups(to,Ro.matchInlineApi,Ho),Po=new Map(Array.from(no.entries()).map(hs=>[hs[0],hs[1].parse(Ro.parseInlineApi)])),Lo=createPhrasingContentProcessor(Bo,0);return{process:Go};function Go(hs){So.clear(),_o.clear(),yo=!0;const gs=Yo(hs);yo=!1;for(const ks of ho)So.add(ks.identifier);for(const ks of go)_o.add(ks.identifier);const ys=qo(gs.children);return uo?{type:"root",position:gs.position,children:ys}:{type:"root",children:ys}}function Do(hs){const gs=so.get(hs._tokenizer);return(gs==null?void 0:gs.extractPhrasingContentLines(hs))??null}function Uo(hs,gs){if(gs!=null){const vs=so.get(gs._tokenizer);if(vs!==void 0&&vs.buildBlockToken!=null){const ks=vs.buildBlockToken(hs,gs);if(ks!==null)return ks._tokenizer=vs.name,[ks]}}return Yo([hs]).children}function Ho(hs,gs,ys){if(lo==null)return hs;let vs=gs;const ks=[];for(const Os of hs){if(vslo.priority)break}ao<0||ao>=to.length?to.push(io):to.splice(ao,0,io)}_unregisterTokenizer(to,no,io){var uo,ho;const so=typeof io=="string"?io:io.name;if(!no.delete(so))return;((uo=this.blockFallbackTokenizer)==null?void 0:uo.name)===so&&(this.blockFallbackTokenizer=null),((ho=this.inlineFallbackTokenizer)==null?void 0:ho.name)===so&&(this.inlineFallbackTokenizer=null);const lo=to.findIndex(go=>go.name===so);lo>=0&&to.splice(lo,1)}}function eatEmailAddress(eo,to,no){let io=to;for(;io=no||eo[io].codePoint!==AsciiCodePoint.AT_SIGN||!isAlphanumeric(eo[io+1].codePoint))return{valid:!1,nextIndex:io+1};for(io=eatAddressPart0(eo,io+2,no);io+1=to?so+1:to}function eatAbsoluteUri(eo,to,no){const io=eatAutolinkSchema(eo,to,no);let{nextIndex:so}=io;if(!io.valid||so>=no||eo[so].codePoint!==AsciiCodePoint.COLON)return{valid:!1,nextIndex:so};for(so+=1;so32?{valid:!1,nextIndex:io+1}:{valid:!0,nextIndex:io}}const helpers$1=[{contentType:"uri",eat:eatAbsoluteUri},{contentType:"email",eat:eatEmailAddress}],match$p=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:no};function to(io,so){const ao=eo.getNodePoints();for(let lo=io;loto.map(no=>{const io=eo.getNodePoints();let so=calcStringFromNodePoints(io,no.startIndex+1,no.endIndex-1);no.contentType==="email"&&(so="mailto:"+so);const ao=eo.formatUrl(so),lo=eo.parseInlineTokens(no.children);return eo.shouldReservePosition?{type:LinkType,position:eo.calcPosition(no),url:ao,children:lo}:{type:LinkType,url:ao,children:lo}})}},uniqueName$m="@yozora/tokenizer-autolink";class AutolinkTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$m,priority:no.priority??TokenizerPriority.ATOMIC});d0(this,"match",match$p);d0(this,"parse",parse$t)}}function eatExtendEmailAddress(eo,to,no){let io=to;if(io>=no||!isAlphanumeric(eo[io].codePoint))return{valid:!1,nextIndex:io+1};for(io+=1;io=no||eo[io].codePoint!==AsciiCodePoint.AT_SIGN||!isAlphanumeric(eo[io+1].codePoint))return{valid:!1,nextIndex:io+1};let so=0;for(io+=2;io=no||eo[so].codePoint!==AsciiCodePoint.COLON||eo[so+1].codePoint!==AsciiCodePoint.SLASH||eo[so+2].codePoint!==AsciiCodePoint.SLASH)return{valid:!1,nextIndex:so+1};const ao=eatValidDomain(eo,so+3,no);return ao.nextIndex=eatOptionalDomainFollows(eo,ao.nextIndex,no),ao}function eatWWWDomain(eo,to,no){const io=eatDomainSegment(eo,to,no),so=io.nextIndex;if(!io.valid||so>=no||eo[so].codePoint!==AsciiCodePoint.DOT||so-to!==3)return{valid:!1,nextIndex:so};for(let lo=to;lo=to;io-=1){const so=eo[io].codePoint;if(!(isPunctuationCharacter(so)||so===AsciiCodePoint.QUESTION_MARK||so===AsciiCodePoint.EXCLAMATION_MARK||so===AsciiCodePoint.DOT||so===AsciiCodePoint.COMMA||so===AsciiCodePoint.COLON||so===AsciiCodePoint.ASTERISK||so===AsciiCodePoint.UNDERSCORE||so===AsciiCodePoint.TILDE))break}if(io>=to&&io+10){for(io+=2,so-=1;io0&&eo[io].codePoint===AsciiCodePoint.CLOSE_PARENTHESIS;)so-=1,io+=1;io-=1}}if(io+1=to;--so){const ao=eo[so].codePoint;if(!isAlphanumeric(ao))break}so>=to&&eo[so].codePoint===AsciiCodePoint.AMPERSAND&&(io=so-1)}return io+1}function eatValidDomain(eo,to,no){const io=eatDomainSegment(eo,to,no);if(!io.valid||io.nextIndex>=no)return{valid:!1,nextIndex:io.nextIndex};let so=io.nextIndex,ao=0,lo=io.hasUnderscore?2:0;for(;so>>=1,lo|=uo.hasUnderscore?2:0}return ao<=0&&lo===0?{valid:!1,nextIndex:so}:{valid:!0,nextIndex:so}}function eatDomainSegment(eo,to,no){let io=to,so=!1;for(;ioto?{valid:!0,nextIndex:io,hasUnderscore:so}:{valid:!1,nextIndex:io,hasUnderscore:so}}const helpers=[{contentType:"uri",eat:eatExtendedUrl},{contentType:"uri-www",eat:eatWWWDomain},{contentType:"email",eat:eatExtendEmailAddress}],match$o=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:no};function to(io,so){const ao=eo.getNodePoints(),lo=eo.getBlockStartIndex();for(let uo=io;uo=so)break;uo=mo}let ho=so,go=null;for(const mo of helpers){const yo=mo.eat(ao,uo,so);if(ho=Math.min(ho,yo.nextIndex),yo.valid){go=mo.contentType,ho=yo.nextIndex;break}}if(go==null){uo=Math.max(uo,ho-1);continue}if(ho<=so)return{type:"full",startIndex:uo,endIndex:ho,contentType:go};uo=ho-1}return null}function no(io){return[{nodeType:LinkType,startIndex:io.startIndex,endIndex:io.endIndex,contentType:io.contentType,children:eo.resolveFallbackTokens([],io.startIndex,io.endIndex)}]}},parse$s=function(eo){return{parse:to=>to.map(no=>{const io=eo.getNodePoints();let so=calcStringFromNodePoints(io,no.startIndex,no.endIndex);switch(no.contentType){case"email":so="mailto:"+so;break;case"uri-www":so="http://"+so;break}const ao=eo.parseInlineTokens(no.children);return eo.shouldReservePosition?{type:LinkType,position:eo.calcPosition(no),url:so,children:ao}:{type:LinkType,url:so,children:ao}})}},uniqueName$l="@yozora/tokenizer-autolink-extension";class AutolinkExtensionTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$l,priority:no.priority??TokenizerPriority.LINKS});d0(this,"match",match$o);d0(this,"parse",parse$s)}}const match$n=function(){return{isContainingBlock:!0,eatOpener:eo,eatAndInterruptPreviousSibling:to,eatContinuationText:no};function eo(io){if(io.countOfPrecedeSpaces>=4)return null;const{nodePoints:so,startIndex:ao,endIndex:lo,firstNonWhitespaceIndex:uo}=io;if(uo>=lo||so[uo].codePoint!==AsciiCodePoint.CLOSE_ANGLE)return null;let ho=uo+1;return ho=4||go>=ho||lo[go].codePoint!==AsciiCodePoint.CLOSE_ANGLE?ao.nodeType===BlockquoteType?{status:"opening",nextIndex:uo}:{status:"notMatched"}:{status:"opening",nextIndex:go+1to.map(no=>{const io=eo.parseBlockTokens(no.children);return eo.shouldReservePosition?{type:BlockquoteType,position:no.position,children:io}:{type:BlockquoteType,children:io}})}},uniqueName$k="@yozora/tokenizer-blockquote";class BlockquoteTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$k,priority:no.priority??TokenizerPriority.CONTAINING_BLOCK});d0(this,"match",match$n);d0(this,"parse",parse$r)}}const uniqueName$j="@yozora/tokenizer-break";var BreakTokenMarkerType;(function(eo){eo.BACKSLASH="backslash",eo.MORE_THAN_TWO_SPACES="more-than-two-spaces"})(BreakTokenMarkerType||(BreakTokenMarkerType={}));const match$m=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:no};function to(io,so){const ao=eo.getNodePoints();for(let lo=io+1;lo=io&&ao[mo].codePoint===AsciiCodePoint.BACKSLASH;mo-=1);lo-mo&1||(ho=lo-1,go=BreakTokenMarkerType.BACKSLASH);break}case AsciiCodePoint.SPACE:{let mo=lo-2;for(;mo>=io&&ao[mo].codePoint===AsciiCodePoint.SPACE;mo-=1);lo-mo>2&&(ho=mo+1,go=BreakTokenMarkerType.MORE_THAN_TWO_SPACES);break}}if(!(ho==null||go==null))return{type:"full",markerType:go,startIndex:ho,endIndex:lo}}return null}function no(io){return[{nodeType:BreakType,startIndex:io.startIndex,endIndex:io.endIndex}]}},parse$q=function(eo){return{parse:to=>to.map(no=>eo.shouldReservePosition?{type:BreakType,position:eo.calcPosition(no)}:{type:BreakType})}};class BreakTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$j,priority:no.priority??TokenizerPriority.SOFT_INLINE});d0(this,"match",match$m);d0(this,"parse",parse$q)}}function eatAndCollectLinkDestination(eo,to,no,io){let so=to;io==null&&(io={saturated:!1,nodePoints:[],hasOpenAngleBracket:!1,openParensCount:0});const ao=eatOptionalWhitespaces(eo,so,no);if(ao>=no)return{nextIndex:-1,state:io};if(io.nodePoints.length<=0){so=ao;const lo=eo[so];lo.codePoint===AsciiCodePoint.OPEN_ANGLE&&(so+=1,io.hasOpenAngleBracket=!0,io.nodePoints.push(lo))}if(io.hasOpenAngleBracket){for(;so=no)return{nextIndex:-1,state:io};if(io.nodePoints.length<=0){so=ao;const lo=eo[so];if(lo.codePoint!==AsciiCodePoint.OPEN_BRACKET)return{nextIndex:-1,state:io};so+=1,io.nodePoints.push(lo)}for(;so=no)return{nextIndex:-1,state:io};if(io.nodePoints.length<=0){so=ao;const lo=eo[so];switch(lo.codePoint){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:case AsciiCodePoint.OPEN_PARENTHESIS:io.wrapSymbol=lo.codePoint,io.nodePoints.push(lo),so+=1;break;default:return{nextIndex:-1,state:io}}}if(io.wrapSymbol==null)return{nextIndex:-1,state:io};switch(io.wrapSymbol){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:{for(;so=no||eo[so+1].codePoint===VirtualCodePoint.LINE_END){io.nodePoints.push(lo),io.saturated=!0;break}return{nextIndex:-1,state:io};default:io.nodePoints.push(lo)}}break}}return{nextIndex:no,state:io}}const match$l=function(eo){return{isContainingBlock:!1,eatOpener:to,eatContinuationText:no,onClose:io};function to(so){if(so.countOfPrecedeSpaces>=4)return null;const{nodePoints:ao,startIndex:lo,endIndex:uo,firstNonWhitespaceIndex:ho}=so;if(ho>=uo)return null;let go=ho;const{nextIndex:mo,state:yo}=eatAndCollectLinkLabel(ao,go,uo,null);if(mo<0)return null;const So=ao[lo].line,_o=()=>({nodeType:DefinitionType,position:{start:calcStartPoint(ao,lo),end:calcEndPoint(ao,uo-1)},label:yo,destination:null,title:null,lineNoOfLabel:So,lineNoOfDestination:-1,lineNoOfTitle:-1,lines:[so]});if(!yo.saturated)return{token:_o(),nextIndex:uo};if(mo<0||mo+1>=uo||ao[mo].codePoint!==AsciiCodePoint.COLON)return null;if(go=eatOptionalWhitespaces(ao,mo+1,uo),go>=uo)return{token:_o(),nextIndex:uo};const{nextIndex:ko,state:Co}=eatAndCollectLinkDestination(ao,go,uo,null);if(ko<0||!Co.saturated&&ko!==uo)return null;if(go=eatOptionalWhitespaces(ao,ko,uo),go>=uo){const No=_o();return No.destination=Co,No.lineNoOfDestination=So,{token:No,nextIndex:uo}}if(go===ko)return null;const{nextIndex:$o,state:Ro}=eatAndCollectLinkTitle(ao,go,uo,null);if($o>=0&&(go=$o),go=go||lo[$o].codePoint!==AsciiCodePoint.COLON)return{status:"failedAndRollback",lines:ao.lines};yo=$o+1}if(ao.destination==null){if(yo=eatOptionalWhitespaces(lo,yo,go),yo>=go)return{status:"failedAndRollback",lines:ao.lines};const{nextIndex:$o,state:Ro}=eatAndCollectLinkDestination(lo,yo,go,null);if($o<0||!Ro.saturated)return{status:"failedAndRollback",lines:ao.lines};if(yo=eatOptionalWhitespaces(lo,$o,go),yo>=go)return ao.destination=Ro,ao.lines.push(so),{status:"opening",nextIndex:go};ao.lineNoOfDestination=mo,ao.lineNoOfTitle=mo}ao.lineNoOfTitle<0&&(ao.lineNoOfTitle=mo);const{nextIndex:So,state:_o}=eatAndCollectLinkTitle(lo,yo,go,ao.title);if(ao.title=_o,So<0||_o.nodePoints.length<=0||_o.saturated&&eatOptionalWhitespaces(lo,So,go)to.map(no=>{const io=no._label,so=no._identifier,ao=no.destination.nodePoints,lo=ao[0].codePoint===AsciiCodePoint.OPEN_ANGLE?calcEscapedStringFromNodePoints(ao,1,ao.length-1,!0):calcEscapedStringFromNodePoints(ao,0,ao.length,!0),uo=eo.formatUrl(lo),ho=no.title==null?void 0:calcEscapedStringFromNodePoints(no.title.nodePoints,1,no.title.nodePoints.length-1);return eo.shouldReservePosition?{type:DefinitionType,position:no.position,identifier:so,label:io,url:uo,title:ho}:{type:DefinitionType,identifier:so,label:io,url:uo,title:ho}})}},uniqueName$i="@yozora/tokenizer-definition";class DefinitionTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$i,priority:no.priority??TokenizerPriority.ATOMIC});d0(this,"match",match$l);d0(this,"parse",parse$p)}}const match$k=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processDelimiterPair:no};function to(io,so){const ao=eo.getNodePoints();for(let lo=io;loto.map(no=>{const io=eo.parseInlineTokens(no.children);return eo.shouldReservePosition?{type:DeleteType,position:eo.calcPosition(no),children:io}:{type:DeleteType,children:io}})}},uniqueName$h="@yozora/tokenizer-delete";class DeleteTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$h,priority:no.priority??TokenizerPriority.CONTAINING_INLINE});d0(this,"match",match$k);d0(this,"parse",parse$o)}}const match$j=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:no,processDelimiterPair:io};function to(so,ao){const lo=eo.getNodePoints(),uo=eo.getBlockStartIndex(),ho=eo.getBlockEndIndex(),go=(yo,So)=>{if(So===ho)return!1;if(So===ao)return!0;const _o=lo[So];if(isUnicodeWhitespaceCharacter(_o.codePoint))return!1;if(!isPunctuationCharacter(_o.codePoint)||yo<=so)return!0;const ko=lo[yo-1];return isUnicodeWhitespaceCharacter(ko.codePoint)||isPunctuationCharacter(ko.codePoint)},mo=(yo,So)=>{if(yo===uo)return!1;if(yo===so)return!0;const _o=lo[yo-1];if(isUnicodeWhitespaceCharacter(_o.codePoint))return!1;if(!isPunctuationCharacter(_o.codePoint)||So>=ao)return!0;const ko=lo[So];return isUnicodeWhitespaceCharacter(ko.codePoint)||isPunctuationCharacter(ko.codePoint)};for(let yo=so;yoso&&!isPunctuationCharacter(lo[_o-1].codePoint)&&(Ro=!1);const Mo=lo[ko];isPunctuationCharacter(Mo.codePoint)||(Oo=!1)}if(!Ro&&!Oo)break;const No=ko-_o;return{type:Ro?Oo?"both":"opener":"closer",startIndex:_o,endIndex:ko,thickness:No,originalThickness:No}}}}return null}function no(so,ao){const lo=eo.getNodePoints();return lo[so.startIndex].codePoint!==lo[ao.startIndex].codePoint||(so.type==="both"||ao.type==="both")&&(so.originalThickness+ao.originalThickness)%3===0&&so.originalThickness%3!==0?{paired:!1,opener:!0,closer:!0}:{paired:!0}}function io(so,ao,lo){let uo=1;so.thickness>1&&ao.thickness>1&&(uo=2),lo=eo.resolveInternalTokens(lo,so.endIndex,ao.startIndex);const ho={nodeType:uo===1?EmphasisType:StrongType,startIndex:so.endIndex-uo,endIndex:ao.startIndex+uo,thickness:uo,children:lo},go=so.thickness>uo?{type:so.type,startIndex:so.startIndex,endIndex:so.endIndex-uo,thickness:so.thickness-uo,originalThickness:so.originalThickness}:void 0,mo=ao.thickness>uo?{type:ao.type,startIndex:ao.startIndex+uo,endIndex:ao.endIndex,thickness:ao.thickness-uo,originalThickness:ao.originalThickness}:void 0;return{tokens:[ho],remainOpenerDelimiter:go,remainCloserDelimiter:mo}}},parse$n=function(eo){return{parse:to=>to.map(no=>{const io=eo.parseInlineTokens(no.children);return eo.shouldReservePosition?{type:no.nodeType,position:eo.calcPosition(no),children:io}:{type:no.nodeType,children:io}})}},uniqueName$g="@yozora/tokenizer-emphasis";class EmphasisTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$g,priority:no.priority??TokenizerPriority.CONTAINING_INLINE});d0(this,"match",match$j);d0(this,"parse",parse$n)}}function match$i(eo){const{nodeType:to,markers:no,markersRequired:io,checkInfoString:so}=this;return{isContainingBlock:!1,eatOpener:ao,eatAndInterruptPreviousSibling:lo,eatContinuationText:uo};function ao(ho){if(ho.countOfPrecedeSpaces>=4)return null;const{endIndex:go,firstNonWhitespaceIndex:mo}=ho;if(mo+io-1>=go)return null;const{nodePoints:yo,startIndex:So}=ho,_o=yo[mo].codePoint;if(no.indexOf(_o)<0)return null;const ko=eatOptionalCharacters(yo,mo+1,go,_o),Co=ko-mo;if(Co=go.markerCount){for(;$o=So)return{status:"closing",nextIndex:So}}}const Co=Math.min(yo+go.indent,_o,So-1);return go.lines.push({nodePoints:mo,startIndex:Co,endIndex:So,firstNonWhitespaceIndex:_o,countOfPrecedeSpaces:ko}),{status:"opening",nextIndex:So}}}class FencedBlockTokenizer extends BaseBlockTokenizer{constructor(no){super({name:no.name,priority:no.priority??TokenizerPriority.FENCED_BLOCK});d0(this,"nodeType");d0(this,"markers",[]);d0(this,"markersRequired");d0(this,"checkInfoString");d0(this,"match",match$i);this.nodeType=no.nodeType,this.markers=no.markers,this.markersRequired=no.markersRequired,this.checkInfoString=no.checkInfoString}}const match$h=function(eo){return{...match$i.call(this,eo),isContainingBlock:!1}},parse$m=function(eo){return{parse:to=>to.map(no=>{const io=no.infoString;let so=0;const ao=[];for(;so!0;if(eo instanceof Function)return eo;if(eo.length===0)return()=>!1;if(eo.length===1){const to=eo[0];return no=>no.type===to}if(eo.length===2){const[to,no]=eo;return io=>io.type===to||io.type===no}return to=>{for(const no of eo)if(to.type===no)return!0;return!1}}function traverseAst(eo,to,no){const io=createNodeMatcher(to),so=ao=>{const{children:lo}=ao;for(let uo=0;uo{const io={};traverseAst(eo,to,lo=>{const uo=lo;io[uo.identifier]===void 0&&(io[uo.identifier]=uo)});const so=[];for(const lo of no)io[lo.identifier]===void 0&&(io[lo.identifier]=lo,so.push(lo));return{root:so.length>0?{...eo,children:eo.children.concat(so)}:eo,definitionMap:io}},astClasses=mergeStyleSets({root:{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(0deg, 0%, 94%)","--colorBgTableEvenRow":"hsl(0deg, 0%, 96%)","--colorBgTableOddRow":"hsl(0deg, 0%, 100%)","--colorBorderBlockquote":"hsl(210deg, 13%, 85%)","--colorBorderHeading":"hsl(0deg, 0%, 80%)","--colorBorderImage":"hsl(277deg, 19%, 47%)","--colorBorderTable":"hsl(220deg, 7%, 90%)","--colorBgCode":"#f5f7f9","--colorDelete":"hsl(210deg, 8%, 65%)","--colorHeading":"hsl(0deg, 0%, 25%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 60%, 47%)","--colorLink":"hsl(206deg, 53%, 47%)","--colorLinkActive":"hsl(206deg, 53%, 52%)","--colorLinkHover":"hsl(206deg, 53%, 52%)","--colorLinkVisited":"hsl(206deg, 53%, 47%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"},rootDarken:{"&&":{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(200deg, 10%, 16%)","--colorBgTableEvenRow":"hsl(200deg, 10%, 16%)","--colorBgTableOddRow":"hsl(0deg, 0%, 9%)","--colorBorderBlockquote":"hsl(207deg, 7%, 45%)","--colorBorderHeading":"hsla(0deg, 0%, 30%, 0.8)","--colorBorderImage":"hsl(290deg, 15%, 49%)","--colorBorderTable":"hsl(0deg, 0%, 50%)","--colorBgCode":"hsl(0deg, 0%, 12%)","--colorDelete":"hsl(220deg, 5%, 68%)","--colorHeading":"hsl(0deg, 0%, 65%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 70%, 52%)","--colorLink":"hsl(207deg, 53%, 50%)","--colorLinkActive":"hsl(207deg, 53%, 50%)","--colorLinkHover":"hsl(207deg, 53%, 50%)","--colorLinkVisited":"hsl(207deg, 53%, 50%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"}},blockquote:{},break:{},code:{},delete:{},emphasis:{},heading:{},image:{},imageReference:{},inlineCode:{},link:{},linkReference:{},list:{},listItem:{},paragraph:{},strong:{},table:{},text:{},thematicBreak:{}}),NodeRendererContextType=React.createContext(null);NodeRendererContextType.displayName="NodeRendererContextType";const useNodeRendererContext=()=>React.useContext(NodeRendererContextType);class SafeBatchHandler{constructor(){d0(this,"_errors");d0(this,"_summary");this._errors=[],this._summary=void 0}cleanup(){this._errors.length=0,this._summary=void 0}run(to){try{to()}catch(no){this._errors.push(no),this._summary=void 0}}summary(to){if(this._summary===void 0){if(this._errors.length===1)throw this._summary=this._errors[0];this._errors.length>1&&(this._summary=new AggregateError(this._errors,to))}if(this._summary!==void 0)throw this._summary}}function disposeAll(eo){const to=new SafeBatchHandler;for(const no of eo)to.run(()=>no.dispose());to.summary("[disposeAll] Encountered errors while disposing"),to.cleanup()}class BatchDisposable{constructor(){d0(this,"_disposed");d0(this,"_disposables");this._disposed=!1,this._disposables=[]}get disposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;try{disposeAll(this._disposables)}finally{this._disposables.length=0}}}registerDisposable(to){to.disposed||(this._disposed?to.dispose():this._disposables.push(to))}}class Disposable{constructor(to){d0(this,"_onDispose");d0(this,"_disposed");this._onDispose=to,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}}function isDisposable(eo){return eo===null||typeof eo!="object"?!1:typeof Reflect.get(eo,"dispose")=="function"&&typeof Reflect.get(eo,"disposed")=="boolean"}const noop$6=()=>{};class Subscriber{constructor(to){d0(this,"_onDispose");d0(this,"_onNext");d0(this,"_disposed");this._onDispose=(to==null?void 0:to.onDispose)??noop$6,this._onNext=to.onNext,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}next(to,no){this._disposed||this._onNext(to,no)}}const noopUnsubscribable$1={unsubscribe:()=>{}};class Subscribers{constructor(to={}){d0(this,"ARRANGE_THRESHOLD");d0(this,"_disposed");d0(this,"_items");d0(this,"_subscribingCount");this.ARRANGE_THRESHOLD=to.ARRANGE_THRESHOLD??16,this._disposed=!1,this._items=[],this._subscribingCount=0}get size(){return this._subscribingCount}get disposed(){return this._disposed}dispose(){if(this._disposed)return;this._disposed=!0;const to=new SafeBatchHandler,no=this._items;for(let io=0;ioso.subscriber.dispose()))}no.length=0,this._subscribingCount=0,to.summary("Encountered errors while disposing."),to.cleanup()}notify(to,no){if(this._disposed)return;const io=new SafeBatchHandler,so=this._items;for(let ao=0,lo=so.length;aouo.subscriber.next(to,no))}io.summary("Encountered errors while notifying subscribers."),io.cleanup()}subscribe(to){if(to.disposed)return noopUnsubscribable$1;if(this.disposed)return to.dispose(),noopUnsubscribable$1;const no={subscriber:to,unsubscribed:!1};return this._items.push(no),this._subscribingCount+=1,{unsubscribe:()=>{no.unsubscribed||(no.unsubscribed=!0,this._subscribingCount-=1,this._arrange())}}}_arrange(){const to=this._items;if(to.length>=this.ARRANGE_THRESHOLD&&this._subscribingCount*2<=to.length){const no=[];for(let io=0;io{},noopUnsubscribable={unsubscribe:noop$5},noopUnobservable={unobserve:noop$5},isObservable=eo=>eo===null||typeof eo!="object"?!1:typeof Reflect.get(eo,"dispose")=="function"&&typeof Reflect.get(eo,"disposed")=="boolean"&&typeof Reflect.get(eo,"subscribe")=="function"&&typeof Reflect.get(eo,"equals")=="function"&&typeof Reflect.get(eo,"getSnapshot")=="function"&&typeof Reflect.get(eo,"next")=="function",defaultEquals=(eo,to)=>Object.is(eo,to);class Observable extends BatchDisposable{constructor(no,io={}){super();d0(this,"equals");d0(this,"_delay");d0(this,"_subscribers");d0(this,"_value");d0(this,"_updateTick");d0(this,"_notifyTick");d0(this,"_lastNotifiedValue");d0(this,"_timer");const{equals:so=defaultEquals}=io;this._delay=Math.max(0,Number(io.delay)||0),this._subscribers=new Subscribers,this._value=no,this._updateTick=0,this._notifyTick=0,this._lastNotifiedValue=void 0,this._timer=void 0,this.equals=so}dispose(){this.disposed||(super.dispose(),this._flush(),this._subscribers.dispose())}getSnapshot(){return this._value}next(no,io){if(this.disposed){if((io==null?void 0:io.strict)??!0)throw new RangeError(`Don't update a disposed observable. value: ${String(no)}.`);return}!((io==null?void 0:io.force)??!1)&&this.equals(no,this._value)||(this._value=no,this._updateTick+=1,this._notify())}subscribe(no){if(no.disposed)return noopUnsubscribable;const io=this._lastNotifiedValue,so=this._value;return this.disposed?(no.next(so,io),no.dispose(),noopUnsubscribable):(this._flush(),no.next(so,io),this._subscribers.subscribe(no))}_flush(){this._notifyTick{try{this._notifyImmediate()}finally{this._timer=void 0}this._notify()},this._delay))}}_notifyImmediate(){const no=this._lastNotifiedValue,io=this._value;this._lastNotifiedValue=io,this._notifyTick=this._updateTick,this._subscribers.notify(io,no)}}const equals=(eo,to)=>eo===to;class Ticker extends Observable{constructor(to={}){const{start:no=0,delay:io}=to;super(no,{delay:io,equals})}tick(to){this.next(this._value+1,to)}observe(to,no){if(this.disposed){if((no==null?void 0:no.strict)??!0)throw new RangeError("[Ticker.observe] the ticker has been disposed.");return noopUnobservable}if(to.disposed)return noopUnobservable;const io=new Subscriber({onNext:()=>this.tick()}),so=to.subscribe(io),ao=new Disposable(()=>{io.dispose(),so.unsubscribe()});return this.registerDisposable(ao),{unobserve:()=>ao.dispose()}}}class Computed{constructor(to){d0(this,"_observable");d0(this,"getSnapshot",()=>this._observable.getSnapshot());d0(this,"getServerSnapshot",()=>this._observable.getSnapshot());d0(this,"subscribeStateChange",to=>{const no=new Subscriber({onNext:()=>to()}),io=this._observable.subscribe(no),so=new Disposable(()=>{no.dispose(),io.unsubscribe()});return this._observable.registerDisposable(so),()=>so.dispose()});this._observable=to}static fromObservables(to,no,io){const so=new Ticker;for(const ho of to)so.observe(ho);const ao=()=>{const ho=to.map(go=>go.getSnapshot());return no(ho)},lo=new Observable(ao(),io);lo.registerDisposable(so);const uo=new Subscriber({onNext:()=>lo.next(ao())});return so.subscribe(uo),new Computed(lo)}get disposed(){return this._observable.disposed}dispose(){this._observable.disposed||this._observable.dispose()}registerDisposable(to){this._observable.registerDisposable(to)}subscribe(to){return this._observable.subscribe(to)}}class State extends Observable{constructor(){super(...arguments);d0(this,"getSnapshot",()=>super.getSnapshot());d0(this,"getServerSnapshot",()=>super.getSnapshot());d0(this,"setState",no=>{const io=this.getSnapshot(),so=no(io);super.next(so)});d0(this,"subscribeStateChange",no=>{const io=new Subscriber({onNext:()=>no()}),so=super.subscribe(io),ao=new Disposable(()=>{io.dispose(),so.unsubscribe()});return this.registerDisposable(ao),()=>ao.dispose()})}}class ViewModel extends BatchDisposable{constructor(){super();d0(this,"_tickerMap");this._tickerMap=new Map}dispose(){if(!this.disposed){super.dispose();for(const no of Reflect.ownKeys(this))if(typeof no=="string"&&no.endsWith("$")){const io=this[no];isDisposable(io)&&io.dispose()}for(const no of this._tickerMap.values())no.ticker.dispose();this._tickerMap.clear()}}ticker(no){const io=Array.from(new Set(no)).sort(),so=io.join("|");let ao=this._tickerMap.get(so);if(ao===void 0){const lo=new Ticker;ao={keys:io,ticker:lo},this.registerDisposable(lo),this._tickerMap.set(so,ao);for(const uo of io){const ho=this[uo];if(!isObservable(ho)){console.warn("[ViewModel.ticker] not an observable, key:",uo,"val:",ho);continue}lo.observe(ho)}}return ao}}class ReactMarkdownViewModel extends ViewModel{constructor(to){super(),this.preferCodeWrap$=new State(!1);const{definitionMap:no,rendererMap:io,showCodeLineno:so,themeScheme:ao}=to;this.definitionMap$=new State(no),this.rendererMap$=new State(io),this.showCodeLineno$=new State(so),this.themeScheme$=new State(ao)}}function useSyncExternalStore$2(eo,to,no){const io=to(),[{inst:so},ao]=reactExports.useState({inst:{value:io,getSnapshot:to}});return reactExports.useLayoutEffect(()=>{so.value=io,so.getSnapshot=to,checkIfSnapshotChanged(so)&&ao({inst:so})},[eo,io,to]),reactExports.useEffect(()=>(checkIfSnapshotChanged(so)&&ao({inst:so}),eo(()=>{checkIfSnapshotChanged(so)&&ao({inst:so})})),[eo]),reactExports.useDebugValue(io),io}function checkIfSnapshotChanged(eo){const to=eo.getSnapshot,no=eo.value;try{const io=to();return!Object.is(no,io)}catch{return!0}}function useSyncExternalStore$1(eo,to,no){return to()}const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",shim=canUseDOM?useSyncExternalStore$2:useSyncExternalStore$1,builtin=reactExports.useSyncExternalStore,useSyncExternalStore=builtin||shim;function useStateValue(eo){const{getSnapshot:to,getServerSnapshot:no,subscribeStateChange:io}=eo;return useSyncExternalStore(io,to,no)}const NodesRenderer=eo=>{const{nodes:to}=eo,{viewmodel:no}=useNodeRendererContext(),io=useStateValue(no.rendererMap$);return!Array.isArray(to)||to.length<=0?jsxRuntimeExports.jsx(React.Fragment,{}):jsxRuntimeExports.jsx(NodesRendererInner,{nodes:to,rendererMap:io})};class NodesRendererInner extends React.Component{shouldComponentUpdate(to){const no=this.props;return!lodashExports.isEqual(no.nodes,to.nodes)||no.rendererMap!==to.rendererMap}render(){const{nodes:to,rendererMap:no}=this.props;return jsxRuntimeExports.jsx(React.Fragment,{children:to.map((io,so)=>{const ao=`${io.type}-${so}`,lo=no[io.type]??no._fallback;return jsxRuntimeExports.jsx(lo,{...io},ao)})})}}var TokenizerType;(function(eo){eo.BLOCK="block",eo.INLINE="inline"})(TokenizerType||(TokenizerType={}));var TokenizerPriority;(function(eo){eo[eo.ATOMIC=10]="ATOMIC",eo[eo.FENCED_BLOCK=10]="FENCED_BLOCK",eo[eo.CONTAINING_BLOCK=10]="CONTAINING_BLOCK",eo[eo.INTERRUPTABLE_BLOCK=2]="INTERRUPTABLE_BLOCK",eo[eo.IMAGES=4]="IMAGES",eo[eo.LINKS=3]="LINKS",eo[eo.CONTAINING_INLINE=2]="CONTAINING_INLINE",eo[eo.SOFT_INLINE=1]="SOFT_INLINE",eo[eo.FALLBACK=-1]="FALLBACK"})(TokenizerPriority||(TokenizerPriority={}));class BaseInlineTokenizer{constructor(to){d0(this,"type",TokenizerType.INLINE);d0(this,"name");d0(this,"priority");this.name=to.name,this.priority=to.priority}toString(){return this.name}}function*genFindDelimiter(eo){let to=-1,no=null;for(;;){const[io,so]=yield no;to===so&&(no==null||no.startIndex>=io)||(to=so,no=eo(io,so))}}class BaseBlockTokenizer{constructor(to){d0(this,"type",TokenizerType.BLOCK);d0(this,"name");d0(this,"priority");this.name=to.name,this.priority=to.priority}extractPhrasingContentLines(to){return null}buildBlockToken(to,no){return null}toString(){return this.name}}function calcStartPoint(eo,to){const{line:no,column:io,offset:so}=eo[to];return{line:no,column:io,offset:so}}function calcEndPoint(eo,to){const{line:no,column:io,offset:so}=eo[to];return{line:no,column:io+1,offset:so+1}}function calcPositionFromPhrasingContentLines(eo){const to=eo[0],no=eo[eo.length-1];return{start:calcStartPoint(to.nodePoints,to.startIndex),end:calcEndPoint(no.nodePoints,no.endIndex-1)}}function mergeContentLinesFaithfully(eo,to=0,no=eo.length){if(to>=no||to<0||no>eo.length)return[];const io=[];for(let so=to;so=no||to<0||no>eo.length)return[];for(let ho=to;ho+1=0;--uo){const ho=so[uo];if(!isWhitespaceCharacter(ho.codePoint))break}for(let ho=lo;ho<=uo;++ho)io.push(so[ho]);return io}function encodeLinkDestination(eo){let to=eo;for(;;)try{const no=decodeURIComponent(to);if(no===to)break;to=no}catch{break}return encodeURI(to)}function resolveLabelToIdentifier(eo){const to=eo.trim().replace(/\s+/gu," ").toLowerCase();return foldCase(to)}function resolveLinkLabelAndIdentifier(eo,to,no){const io=calcStringFromNodePoints(eo,to,no,!0);if(io.length<=0)return null;const so=resolveLabelToIdentifier(io);return{label:io,identifier:so}}function eatLinkLabel(eo,to,no){let io=to+1;const so=Math.min(io+1e3,no);for(;ioto;--no){const io=eo[no];if(io.firstNonWhitespaceIndexno?[]:eo.slice(to,no+1)}const prefix$1="Invariant failed";function invariant(eo,to){if(!eo)throw new Error(prefix$1)}const createBlockContentProcessor=(eo,to)=>{const no={_tokenizer:"root",nodeType:"root",position:{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}},children:[]},io=[];io.push({hook:{isContainingBlock:!0},token:no});let so=0;const ao=_o=>{for(let ko=so;ko>=0;--ko){const Co=io[ko];Co.token.position.end={..._o}}},lo=(_o,ko)=>{if(ko.length<=0)return null;const Co=eo.filter(Ro=>Ro!==_o),$o=createBlockContentProcessor(Co,to);for(const Ro of ko)$o.consume(Ro);return $o},uo=()=>{const _o=io.pop();if(_o!=null){if(io.length>0){const ko=io[io.length-1];if(_o.hook.onClose!=null){const Co=_o.hook.onClose(_o.token);if(Co!=null)switch(Co.status){case"closingAndRollback":{const $o=lo(_o.hook,Co.lines);if($o==null)break;const Ro=$o.done();ko.token.children.push(...Ro.children);break}case"failedAndRollback":{ko.token.children.pop();const $o=lo(_o.hook,Co.lines);if($o==null)break;const Ro=$o.done();ko.token.children.push(...Ro.children);break}}}}return so>=io.length&&(so=io.length-1),_o}},ho=_o=>{for(;io.length>_o;)uo()},go=(_o,ko,Co)=>{ho(so+1),io[so].token.children.push(ko),ao(ko.position.end),so+=1,io.push({hook:_o,token:ko}),Co&&uo()},mo=(_o,ko,Co)=>{const $o=lo(_o,ko);if($o==null)return!1;const Ro=$o.shallowSnapshot(),Oo=Ro[0];Oo.token.children!=null&&Co.token.children.push(...Oo.token.children),ao(Oo.token.position.end);for(let No=1;No{const{nodePoints:ko,startIndex:Co,endIndex:$o}=_o;let{firstNonWhitespaceIndex:Ro,countOfPrecedeSpaces:Oo,startIndex:No}=_o;const Mo=()=>({nodePoints:ko,startIndex:No,endIndex:$o,firstNonWhitespaceIndex:Ro,countOfPrecedeSpaces:Oo}),Bo=(Ho,Yo)=>{if(invariant(No<=Ho),Yo){const qo=calcEndPoint(ko,Ho-1);ao(qo)}if(No!==Ho)for(No=Ho,Oo=0,Ro=Ho;Ro<$o;++Ro){const qo=ko[Ro].codePoint;if(isSpaceCharacter(qo)){Oo+=1;continue}if(!isWhitespaceCharacter(qo))break}},Fo=(Ho,Yo)=>{const{token:qo}=io[so],Jo=Ho.eatOpener(Yo,qo);if(Jo==null)return!1;invariant(Jo.nextIndex>No,`[consumeNewOpener] The marker of the new data node cannot be empty. + tokenizer(${Jo.token._tokenizer})`),Bo(Jo.nextIndex,!1);const ps=Jo.token;return ps._tokenizer=Ho.name,go(Ho,ps,!!Jo.saturated),!0},Lo=(Ho,Yo)=>{if(Ho.eatAndInterruptPreviousSibling==null)return!1;const{hook:qo,token:Jo}=io[so],{token:ps}=io[so-1];if(Ho.priority<=qo.priority)return!1;const Qo=Ho.eatAndInterruptPreviousSibling(Yo,Jo,ps);if(Qo==null)return!1;ho(so),ps.children.pop(),Qo.remainingSibling!=null&&(Array.isArray(Qo.remainingSibling)?ps.children.push(...Qo.remainingSibling):ps.children.push(Qo.remainingSibling)),Bo(Qo.nextIndex,!1);const hs=Qo.token;return hs._tokenizer=Ho.name,go(Ho,hs,!!Qo.saturated),!0},Go=()=>{if(so=1,io.length<2)return;let{token:Ho}=io[so-1];for(;No<$o&&sogs!==qo&&Lo(gs,Jo)))break;const ps=qo.eatContinuationText==null?{status:"notMatched"}:qo.eatContinuationText(Jo,Yo.token,Ho);let Qo=!1,hs=!1;switch(ps.status){case"failedAndRollback":{if(Ho.children.pop(),io.length=so,so-=1,ps.lines.length>0){const gs=io[so];if(mo(qo,ps.lines,gs)){hs=!0;break}}Qo=!0;break}case"closingAndRollback":{if(ho(so),ps.lines.length>0){const gs=io[so];if(mo(qo,ps.lines,gs)){hs=!0;break}}Qo=!0;break}case"notMatched":{so-=1,Qo=!0;break}case"closing":{Bo(ps.nextIndex,!0),so-=1,Qo=!0;break}case"opening":{Bo(ps.nextIndex,!0);break}default:throw new TypeError(`[eatContinuationText] unexpected status (${ps.status}).`)}if(Qo)break;hs||(so+=1,Ho=Yo.token)}},Do=()=>{if(!(No>=$o)){if(so=4)return}else so=io.length-1;for(;No<$o&&io[so].hook.isContainingBlock;){let Ho=!1;const Yo=Mo();for(const qo of eo)if(Fo(qo,Yo)){Ho=!0;break}if(!Ho)break}}},Uo=()=>{if(No>=$o||so+1>=io.length)return!1;const{hook:Ho,token:Yo}=io[io.length-1];if(Ho.eatLazyContinuationText==null)return!1;const{token:qo}=io[io.length-2],Jo=Mo(),ps=Ho.eatLazyContinuationText(Jo,Yo,qo);switch(ps.status){case"notMatched":return!1;case"opening":return so=io.length-1,Bo(ps.nextIndex,!0),so=io.length-1,!0;default:throw new TypeError(`[eatLazyContinuationText] unexpected status (${ps.status}).`)}};if(Go(),Do(),Uo()||ho(so+1),to!=null&&No<$o){const Ho=Mo();Fo(to,Ho)}invariant(Ro>=$o)},done:()=>{for(;io.length>1;)uo();return no},shallowSnapshot:()=>[...io]}},createSinglePriorityDelimiterProcessor=()=>{let eo=0;const to=[],no=[],io=[],so=yo=>{let So=yo-1;for(;So>=0&&no[So].inactive;)So-=1;no.length=So+1},ao=(yo,So)=>{no.push({hook:yo,delimiter:So,inactive:!1,tokenStackIndex:io.length})},lo=(yo,So)=>{if(no.length<=0)return null;let _o=null;for(let ko=no.length-1;ko>=0;--ko){if(_o=no[ko],_o.inactive||_o.hook!==yo)continue;const Co=_o.delimiter,$o=yo.isDelimiterPair(Co,So,to);if($o.paired)return Co;if(!$o.closer)return null}return null},uo=(yo,So)=>{if(no.length<=0)return So;let _o,ko=So,Co=[];for(let $o=no.length-1;$o>=0;--$o){const Ro=no[$o];if(Ro.hook!==yo||Ro.inactive)continue;const Oo=Ro.tokenStackIndex;for(Oo0){for(const Fo of Bo)Fo._tokenizer=yo.name;Co.unshift(...Bo)}_o=void 0,Ro.inactive=!0}if(!No.closer){const Bo=yo.processSingleDelimiter(ko);if(Bo.length>0){for(const Fo of Bo)Fo._tokenizer=yo.name;Co.push(...Bo)}ko=void 0}break}const Mo=yo.processDelimiterPair(_o,ko,Co);{for(const Bo of Mo.tokens)Bo._tokenizer==null&&(Bo._tokenizer=yo.name);Co=Mo.tokens}_o=Mo.remainOpenerDelimiter,ko=Mo.remainCloserDelimiter,so($o),$o=Math.min($o,no.length),_o!=null&&ao(yo,_o)}if(ko==null||ko.type==="full")break}if(io.push(...Co),ko==null)return null;if(ko.type==="full"||ko.type==="closer"){const $o=yo.processSingleDelimiter(ko);for(const Ro of $o)Ro._tokenizer=yo.name,io.push(Ro);return null}return ko};return{process:(yo,So)=>{for(;eo=So.endIndex)break;_o.startIndex>=So.startIndex||io.push(_o)}switch(So.type){case"opener":{ao(yo,So);break}case"both":{const _o=uo(yo,So);_o!=null&&ao(yo,_o);break}case"closer":{uo(yo,So);break}case"full":{const _o=yo.processSingleDelimiter(So);for(const ko of _o)ko._tokenizer=yo.name,io.push(ko);break}default:throw new TypeError(`Unexpected delimiter type(${So.type}) from ${yo.name}.`)}},done:()=>{const yo=[];for(const{delimiter:_o,hook:ko}of no){const Co=ko.processSingleDelimiter(_o);for(const $o of Co)$o._tokenizer=ko.name,yo.push($o)}if(no.length=0,yo.length>0){const _o=mergeSortedTokenStack(io,yo);io.length=0,io.push(..._o)}return io.concat(to.slice(eo))},reset:yo=>{to.length=yo.length;for(let So=0;So{if(eo.length<=0)return to;if(to.length<=0)return eo;const no=[];let io=0,so=0;for(;io{const no=(ao,lo,uo)=>{let ho=[],go=null;const mo=[ao,lo];for(const So of uo){const _o=So.findDelimiter(mo);if(_o!=null){if(go!=null){if(_o.startIndex>go)continue;_o.startIndex1){let So=0;for(const _o of ho){const ko=_o.delimiter.type;if(ko==="full")return{items:[_o],nextIndex:_o.delimiter.endIndex};(ko==="both"||ko==="closer")&&(So+=1)}if(So>1){let _o=-1,ko=-1;for(let $o=0;$o-1?[ho[_o]]:ho.filter($o=>$o.delimiter.type!=="closer"),nextIndex:yo}}}return{items:ho,nextIndex:yo}},io=createSinglePriorityDelimiterProcessor();return{process:(ao,lo,uo)=>{let ho=ao;for(let go=to;go{const io=[];for(let so=0;so{let So=lo.process(go,mo,yo);return So=no(So,mo,yo),So}}),ho=eo[so].priority;for(;so{let no;const io=eo.match(to);return{isDelimiterPair:()=>({paired:!0}),processDelimiterPair:(so,ao,lo)=>({tokens:lo}),processSingleDelimiter:()=>[],...io,name:eo.name,priority:eo.priority,findDelimiter:so=>no.next(so).value,reset:()=>{no=io.findDelimiter(),no.next()}}};function createProcessor(eo){const{inlineTokenizers:to,inlineTokenizerMap:no,blockTokenizers:io,blockTokenizerMap:so,blockFallbackTokenizer:ao,inlineFallbackTokenizer:lo,shouldReservePosition:uo,presetDefinitions:ho,presetFootnoteDefinitions:go,formatUrl:mo}=eo;let yo=!1;const So=new Set,_o=new Set;let ko=[],Co=-1,$o=-1;const Ro=Object.freeze({matchBlockApi:{extractPhrasingLines:Do,rollbackPhrasingLines:Uo,registerDefinitionIdentifier:hs=>{yo&&So.add(hs)},registerFootnoteDefinitionIdentifier:hs=>{yo&&_o.add(hs)}},parseBlockApi:{shouldReservePosition:uo,formatUrl:mo,processInlines:Jo,parseBlockTokens:qo},matchInlineApi:{hasDefinition:hs=>So.has(hs),hasFootnoteDefinition:hs=>_o.has(hs),getNodePoints:()=>ko,getBlockStartIndex:()=>Co,getBlockEndIndex:()=>$o,resolveFallbackTokens:Ho},parseInlineApi:{shouldReservePosition:uo,calcPosition:hs=>({start:calcStartPoint(ko,hs.startIndex),end:calcEndPoint(ko,hs.endIndex-1)}),formatUrl:mo,getNodePoints:()=>ko,hasDefinition:hs=>So.has(hs),hasFootnoteDefinition:hs=>_o.has(hs),parseInlineTokens:Qo}}),Oo=io.map(hs=>({...hs.match(Ro.matchBlockApi),name:hs.name,priority:hs.priority})),No=new Map(Array.from(so.entries()).map(hs=>[hs[0],hs[1].parse(Ro.parseBlockApi)])),Mo=ao?{...ao.match(Ro.matchBlockApi),name:ao.name,priority:ao.priority}:null,Bo=createProcessorHookGroups(to,Ro.matchInlineApi,Ho),Fo=new Map(Array.from(no.entries()).map(hs=>[hs[0],hs[1].parse(Ro.parseInlineApi)])),Lo=createPhrasingContentProcessor(Bo,0);return{process:Go};function Go(hs){So.clear(),_o.clear(),yo=!0;const gs=Yo(hs);yo=!1;for(const ks of ho)So.add(ks.identifier);for(const ks of go)_o.add(ks.identifier);const ys=qo(gs.children);return uo?{type:"root",position:gs.position,children:ys}:{type:"root",children:ys}}function Do(hs){const gs=so.get(hs._tokenizer);return(gs==null?void 0:gs.extractPhrasingContentLines(hs))??null}function Uo(hs,gs){if(gs!=null){const vs=so.get(gs._tokenizer);if(vs!==void 0&&vs.buildBlockToken!=null){const ks=vs.buildBlockToken(hs,gs);if(ks!==null)return ks._tokenizer=vs.name,[ks]}}return Yo([hs]).children}function Ho(hs,gs,ys){if(lo==null)return hs;let vs=gs;const ks=[];for(const Os of hs){if(vslo.priority)break}ao<0||ao>=to.length?to.push(io):to.splice(ao,0,io)}_unregisterTokenizer(to,no,io){var uo,ho;const so=typeof io=="string"?io:io.name;if(!no.delete(so))return;((uo=this.blockFallbackTokenizer)==null?void 0:uo.name)===so&&(this.blockFallbackTokenizer=null),((ho=this.inlineFallbackTokenizer)==null?void 0:ho.name)===so&&(this.inlineFallbackTokenizer=null);const lo=to.findIndex(go=>go.name===so);lo>=0&&to.splice(lo,1)}}function eatEmailAddress(eo,to,no){let io=to;for(;io=no||eo[io].codePoint!==AsciiCodePoint.AT_SIGN||!isAlphanumeric(eo[io+1].codePoint))return{valid:!1,nextIndex:io+1};for(io=eatAddressPart0(eo,io+2,no);io+1=to?so+1:to}function eatAbsoluteUri(eo,to,no){const io=eatAutolinkSchema(eo,to,no);let{nextIndex:so}=io;if(!io.valid||so>=no||eo[so].codePoint!==AsciiCodePoint.COLON)return{valid:!1,nextIndex:so};for(so+=1;so32?{valid:!1,nextIndex:io+1}:{valid:!0,nextIndex:io}}const helpers$1=[{contentType:"uri",eat:eatAbsoluteUri},{contentType:"email",eat:eatEmailAddress}],match$p=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:no};function to(io,so){const ao=eo.getNodePoints();for(let lo=io;loto.map(no=>{const io=eo.getNodePoints();let so=calcStringFromNodePoints(io,no.startIndex+1,no.endIndex-1);no.contentType==="email"&&(so="mailto:"+so);const ao=eo.formatUrl(so),lo=eo.parseInlineTokens(no.children);return eo.shouldReservePosition?{type:LinkType,position:eo.calcPosition(no),url:ao,children:lo}:{type:LinkType,url:ao,children:lo}})}},uniqueName$m="@yozora/tokenizer-autolink";class AutolinkTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$m,priority:no.priority??TokenizerPriority.ATOMIC});d0(this,"match",match$p);d0(this,"parse",parse$t)}}function eatExtendEmailAddress(eo,to,no){let io=to;if(io>=no||!isAlphanumeric(eo[io].codePoint))return{valid:!1,nextIndex:io+1};for(io+=1;io=no||eo[io].codePoint!==AsciiCodePoint.AT_SIGN||!isAlphanumeric(eo[io+1].codePoint))return{valid:!1,nextIndex:io+1};let so=0;for(io+=2;io=no||eo[so].codePoint!==AsciiCodePoint.COLON||eo[so+1].codePoint!==AsciiCodePoint.SLASH||eo[so+2].codePoint!==AsciiCodePoint.SLASH)return{valid:!1,nextIndex:so+1};const ao=eatValidDomain(eo,so+3,no);return ao.nextIndex=eatOptionalDomainFollows(eo,ao.nextIndex,no),ao}function eatWWWDomain(eo,to,no){const io=eatDomainSegment(eo,to,no),so=io.nextIndex;if(!io.valid||so>=no||eo[so].codePoint!==AsciiCodePoint.DOT||so-to!==3)return{valid:!1,nextIndex:so};for(let lo=to;lo=to;io-=1){const so=eo[io].codePoint;if(!(isPunctuationCharacter(so)||so===AsciiCodePoint.QUESTION_MARK||so===AsciiCodePoint.EXCLAMATION_MARK||so===AsciiCodePoint.DOT||so===AsciiCodePoint.COMMA||so===AsciiCodePoint.COLON||so===AsciiCodePoint.ASTERISK||so===AsciiCodePoint.UNDERSCORE||so===AsciiCodePoint.TILDE))break}if(io>=to&&io+10){for(io+=2,so-=1;io0&&eo[io].codePoint===AsciiCodePoint.CLOSE_PARENTHESIS;)so-=1,io+=1;io-=1}}if(io+1=to;--so){const ao=eo[so].codePoint;if(!isAlphanumeric(ao))break}so>=to&&eo[so].codePoint===AsciiCodePoint.AMPERSAND&&(io=so-1)}return io+1}function eatValidDomain(eo,to,no){const io=eatDomainSegment(eo,to,no);if(!io.valid||io.nextIndex>=no)return{valid:!1,nextIndex:io.nextIndex};let so=io.nextIndex,ao=0,lo=io.hasUnderscore?2:0;for(;so>>=1,lo|=uo.hasUnderscore?2:0}return ao<=0&&lo===0?{valid:!1,nextIndex:so}:{valid:!0,nextIndex:so}}function eatDomainSegment(eo,to,no){let io=to,so=!1;for(;ioto?{valid:!0,nextIndex:io,hasUnderscore:so}:{valid:!1,nextIndex:io,hasUnderscore:so}}const helpers=[{contentType:"uri",eat:eatExtendedUrl},{contentType:"uri-www",eat:eatWWWDomain},{contentType:"email",eat:eatExtendEmailAddress}],match$o=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:no};function to(io,so){const ao=eo.getNodePoints(),lo=eo.getBlockStartIndex();for(let uo=io;uo=so)break;uo=mo}let ho=so,go=null;for(const mo of helpers){const yo=mo.eat(ao,uo,so);if(ho=Math.min(ho,yo.nextIndex),yo.valid){go=mo.contentType,ho=yo.nextIndex;break}}if(go==null){uo=Math.max(uo,ho-1);continue}if(ho<=so)return{type:"full",startIndex:uo,endIndex:ho,contentType:go};uo=ho-1}return null}function no(io){return[{nodeType:LinkType,startIndex:io.startIndex,endIndex:io.endIndex,contentType:io.contentType,children:eo.resolveFallbackTokens([],io.startIndex,io.endIndex)}]}},parse$s=function(eo){return{parse:to=>to.map(no=>{const io=eo.getNodePoints();let so=calcStringFromNodePoints(io,no.startIndex,no.endIndex);switch(no.contentType){case"email":so="mailto:"+so;break;case"uri-www":so="http://"+so;break}const ao=eo.parseInlineTokens(no.children);return eo.shouldReservePosition?{type:LinkType,position:eo.calcPosition(no),url:so,children:ao}:{type:LinkType,url:so,children:ao}})}},uniqueName$l="@yozora/tokenizer-autolink-extension";class AutolinkExtensionTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$l,priority:no.priority??TokenizerPriority.LINKS});d0(this,"match",match$o);d0(this,"parse",parse$s)}}const match$n=function(){return{isContainingBlock:!0,eatOpener:eo,eatAndInterruptPreviousSibling:to,eatContinuationText:no};function eo(io){if(io.countOfPrecedeSpaces>=4)return null;const{nodePoints:so,startIndex:ao,endIndex:lo,firstNonWhitespaceIndex:uo}=io;if(uo>=lo||so[uo].codePoint!==AsciiCodePoint.CLOSE_ANGLE)return null;let ho=uo+1;return ho=4||go>=ho||lo[go].codePoint!==AsciiCodePoint.CLOSE_ANGLE?ao.nodeType===BlockquoteType?{status:"opening",nextIndex:uo}:{status:"notMatched"}:{status:"opening",nextIndex:go+1to.map(no=>{const io=eo.parseBlockTokens(no.children);return eo.shouldReservePosition?{type:BlockquoteType,position:no.position,children:io}:{type:BlockquoteType,children:io}})}},uniqueName$k="@yozora/tokenizer-blockquote";class BlockquoteTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$k,priority:no.priority??TokenizerPriority.CONTAINING_BLOCK});d0(this,"match",match$n);d0(this,"parse",parse$r)}}const uniqueName$j="@yozora/tokenizer-break";var BreakTokenMarkerType;(function(eo){eo.BACKSLASH="backslash",eo.MORE_THAN_TWO_SPACES="more-than-two-spaces"})(BreakTokenMarkerType||(BreakTokenMarkerType={}));const match$m=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:no};function to(io,so){const ao=eo.getNodePoints();for(let lo=io+1;lo=io&&ao[mo].codePoint===AsciiCodePoint.BACKSLASH;mo-=1);lo-mo&1||(ho=lo-1,go=BreakTokenMarkerType.BACKSLASH);break}case AsciiCodePoint.SPACE:{let mo=lo-2;for(;mo>=io&&ao[mo].codePoint===AsciiCodePoint.SPACE;mo-=1);lo-mo>2&&(ho=mo+1,go=BreakTokenMarkerType.MORE_THAN_TWO_SPACES);break}}if(!(ho==null||go==null))return{type:"full",markerType:go,startIndex:ho,endIndex:lo}}return null}function no(io){return[{nodeType:BreakType,startIndex:io.startIndex,endIndex:io.endIndex}]}},parse$q=function(eo){return{parse:to=>to.map(no=>eo.shouldReservePosition?{type:BreakType,position:eo.calcPosition(no)}:{type:BreakType})}};class BreakTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$j,priority:no.priority??TokenizerPriority.SOFT_INLINE});d0(this,"match",match$m);d0(this,"parse",parse$q)}}function eatAndCollectLinkDestination(eo,to,no,io){let so=to;io==null&&(io={saturated:!1,nodePoints:[],hasOpenAngleBracket:!1,openParensCount:0});const ao=eatOptionalWhitespaces(eo,so,no);if(ao>=no)return{nextIndex:-1,state:io};if(io.nodePoints.length<=0){so=ao;const lo=eo[so];lo.codePoint===AsciiCodePoint.OPEN_ANGLE&&(so+=1,io.hasOpenAngleBracket=!0,io.nodePoints.push(lo))}if(io.hasOpenAngleBracket){for(;so=no)return{nextIndex:-1,state:io};if(io.nodePoints.length<=0){so=ao;const lo=eo[so];if(lo.codePoint!==AsciiCodePoint.OPEN_BRACKET)return{nextIndex:-1,state:io};so+=1,io.nodePoints.push(lo)}for(;so=no)return{nextIndex:-1,state:io};if(io.nodePoints.length<=0){so=ao;const lo=eo[so];switch(lo.codePoint){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:case AsciiCodePoint.OPEN_PARENTHESIS:io.wrapSymbol=lo.codePoint,io.nodePoints.push(lo),so+=1;break;default:return{nextIndex:-1,state:io}}}if(io.wrapSymbol==null)return{nextIndex:-1,state:io};switch(io.wrapSymbol){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:{for(;so=no||eo[so+1].codePoint===VirtualCodePoint.LINE_END){io.nodePoints.push(lo),io.saturated=!0;break}return{nextIndex:-1,state:io};default:io.nodePoints.push(lo)}}break}}return{nextIndex:no,state:io}}const match$l=function(eo){return{isContainingBlock:!1,eatOpener:to,eatContinuationText:no,onClose:io};function to(so){if(so.countOfPrecedeSpaces>=4)return null;const{nodePoints:ao,startIndex:lo,endIndex:uo,firstNonWhitespaceIndex:ho}=so;if(ho>=uo)return null;let go=ho;const{nextIndex:mo,state:yo}=eatAndCollectLinkLabel(ao,go,uo,null);if(mo<0)return null;const So=ao[lo].line,_o=()=>({nodeType:DefinitionType,position:{start:calcStartPoint(ao,lo),end:calcEndPoint(ao,uo-1)},label:yo,destination:null,title:null,lineNoOfLabel:So,lineNoOfDestination:-1,lineNoOfTitle:-1,lines:[so]});if(!yo.saturated)return{token:_o(),nextIndex:uo};if(mo<0||mo+1>=uo||ao[mo].codePoint!==AsciiCodePoint.COLON)return null;if(go=eatOptionalWhitespaces(ao,mo+1,uo),go>=uo)return{token:_o(),nextIndex:uo};const{nextIndex:ko,state:Co}=eatAndCollectLinkDestination(ao,go,uo,null);if(ko<0||!Co.saturated&&ko!==uo)return null;if(go=eatOptionalWhitespaces(ao,ko,uo),go>=uo){const No=_o();return No.destination=Co,No.lineNoOfDestination=So,{token:No,nextIndex:uo}}if(go===ko)return null;const{nextIndex:$o,state:Ro}=eatAndCollectLinkTitle(ao,go,uo,null);if($o>=0&&(go=$o),go=go||lo[$o].codePoint!==AsciiCodePoint.COLON)return{status:"failedAndRollback",lines:ao.lines};yo=$o+1}if(ao.destination==null){if(yo=eatOptionalWhitespaces(lo,yo,go),yo>=go)return{status:"failedAndRollback",lines:ao.lines};const{nextIndex:$o,state:Ro}=eatAndCollectLinkDestination(lo,yo,go,null);if($o<0||!Ro.saturated)return{status:"failedAndRollback",lines:ao.lines};if(yo=eatOptionalWhitespaces(lo,$o,go),yo>=go)return ao.destination=Ro,ao.lines.push(so),{status:"opening",nextIndex:go};ao.lineNoOfDestination=mo,ao.lineNoOfTitle=mo}ao.lineNoOfTitle<0&&(ao.lineNoOfTitle=mo);const{nextIndex:So,state:_o}=eatAndCollectLinkTitle(lo,yo,go,ao.title);if(ao.title=_o,So<0||_o.nodePoints.length<=0||_o.saturated&&eatOptionalWhitespaces(lo,So,go)to.map(no=>{const io=no._label,so=no._identifier,ao=no.destination.nodePoints,lo=ao[0].codePoint===AsciiCodePoint.OPEN_ANGLE?calcEscapedStringFromNodePoints(ao,1,ao.length-1,!0):calcEscapedStringFromNodePoints(ao,0,ao.length,!0),uo=eo.formatUrl(lo),ho=no.title==null?void 0:calcEscapedStringFromNodePoints(no.title.nodePoints,1,no.title.nodePoints.length-1);return eo.shouldReservePosition?{type:DefinitionType,position:no.position,identifier:so,label:io,url:uo,title:ho}:{type:DefinitionType,identifier:so,label:io,url:uo,title:ho}})}},uniqueName$i="@yozora/tokenizer-definition";class DefinitionTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$i,priority:no.priority??TokenizerPriority.ATOMIC});d0(this,"match",match$l);d0(this,"parse",parse$p)}}const match$k=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processDelimiterPair:no};function to(io,so){const ao=eo.getNodePoints();for(let lo=io;loto.map(no=>{const io=eo.parseInlineTokens(no.children);return eo.shouldReservePosition?{type:DeleteType,position:eo.calcPosition(no),children:io}:{type:DeleteType,children:io}})}},uniqueName$h="@yozora/tokenizer-delete";class DeleteTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$h,priority:no.priority??TokenizerPriority.CONTAINING_INLINE});d0(this,"match",match$k);d0(this,"parse",parse$o)}}const match$j=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:no,processDelimiterPair:io};function to(so,ao){const lo=eo.getNodePoints(),uo=eo.getBlockStartIndex(),ho=eo.getBlockEndIndex(),go=(yo,So)=>{if(So===ho)return!1;if(So===ao)return!0;const _o=lo[So];if(isUnicodeWhitespaceCharacter(_o.codePoint))return!1;if(!isPunctuationCharacter(_o.codePoint)||yo<=so)return!0;const ko=lo[yo-1];return isUnicodeWhitespaceCharacter(ko.codePoint)||isPunctuationCharacter(ko.codePoint)},mo=(yo,So)=>{if(yo===uo)return!1;if(yo===so)return!0;const _o=lo[yo-1];if(isUnicodeWhitespaceCharacter(_o.codePoint))return!1;if(!isPunctuationCharacter(_o.codePoint)||So>=ao)return!0;const ko=lo[So];return isUnicodeWhitespaceCharacter(ko.codePoint)||isPunctuationCharacter(ko.codePoint)};for(let yo=so;yoso&&!isPunctuationCharacter(lo[_o-1].codePoint)&&(Ro=!1);const Mo=lo[ko];isPunctuationCharacter(Mo.codePoint)||(Oo=!1)}if(!Ro&&!Oo)break;const No=ko-_o;return{type:Ro?Oo?"both":"opener":"closer",startIndex:_o,endIndex:ko,thickness:No,originalThickness:No}}}}return null}function no(so,ao){const lo=eo.getNodePoints();return lo[so.startIndex].codePoint!==lo[ao.startIndex].codePoint||(so.type==="both"||ao.type==="both")&&(so.originalThickness+ao.originalThickness)%3===0&&so.originalThickness%3!==0?{paired:!1,opener:!0,closer:!0}:{paired:!0}}function io(so,ao,lo){let uo=1;so.thickness>1&&ao.thickness>1&&(uo=2),lo=eo.resolveInternalTokens(lo,so.endIndex,ao.startIndex);const ho={nodeType:uo===1?EmphasisType:StrongType,startIndex:so.endIndex-uo,endIndex:ao.startIndex+uo,thickness:uo,children:lo},go=so.thickness>uo?{type:so.type,startIndex:so.startIndex,endIndex:so.endIndex-uo,thickness:so.thickness-uo,originalThickness:so.originalThickness}:void 0,mo=ao.thickness>uo?{type:ao.type,startIndex:ao.startIndex+uo,endIndex:ao.endIndex,thickness:ao.thickness-uo,originalThickness:ao.originalThickness}:void 0;return{tokens:[ho],remainOpenerDelimiter:go,remainCloserDelimiter:mo}}},parse$n=function(eo){return{parse:to=>to.map(no=>{const io=eo.parseInlineTokens(no.children);return eo.shouldReservePosition?{type:no.nodeType,position:eo.calcPosition(no),children:io}:{type:no.nodeType,children:io}})}},uniqueName$g="@yozora/tokenizer-emphasis";class EmphasisTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$g,priority:no.priority??TokenizerPriority.CONTAINING_INLINE});d0(this,"match",match$j);d0(this,"parse",parse$n)}}function match$i(eo){const{nodeType:to,markers:no,markersRequired:io,checkInfoString:so}=this;return{isContainingBlock:!1,eatOpener:ao,eatAndInterruptPreviousSibling:lo,eatContinuationText:uo};function ao(ho){if(ho.countOfPrecedeSpaces>=4)return null;const{endIndex:go,firstNonWhitespaceIndex:mo}=ho;if(mo+io-1>=go)return null;const{nodePoints:yo,startIndex:So}=ho,_o=yo[mo].codePoint;if(no.indexOf(_o)<0)return null;const ko=eatOptionalCharacters(yo,mo+1,go,_o),Co=ko-mo;if(Co=go.markerCount){for(;$o=So)return{status:"closing",nextIndex:So}}}const Co=Math.min(yo+go.indent,_o,So-1);return go.lines.push({nodePoints:mo,startIndex:Co,endIndex:So,firstNonWhitespaceIndex:_o,countOfPrecedeSpaces:ko}),{status:"opening",nextIndex:So}}}class FencedBlockTokenizer extends BaseBlockTokenizer{constructor(no){super({name:no.name,priority:no.priority??TokenizerPriority.FENCED_BLOCK});d0(this,"nodeType");d0(this,"markers",[]);d0(this,"markersRequired");d0(this,"checkInfoString");d0(this,"match",match$i);this.nodeType=no.nodeType,this.markers=no.markers,this.markersRequired=no.markersRequired,this.checkInfoString=no.checkInfoString}}const match$h=function(eo){return{...match$i.call(this,eo),isContainingBlock:!1}},parse$m=function(eo){return{parse:to=>to.map(no=>{const io=no.infoString;let so=0;const ao=[];for(;so0?lo:null,meta:uo.length>0?uo:null,value:go}:{type:CodeType,lang:lo.length>0?lo:null,meta:uo.length>0?uo:null,value:go}})}},uniqueName$f="@yozora/tokenizer-fenced-code";class FencedCodeTokenizer extends FencedBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$f,priority:no.priority??TokenizerPriority.FENCED_BLOCK,nodeType:CodeType,markers:[AsciiCodePoint.BACKTICK,AsciiCodePoint.TILDE],markersRequired:3,checkInfoString:(io,so)=>{if(so===AsciiCodePoint.BACKTICK){for(const ao of io)if(ao.codePoint===AsciiCodePoint.BACKTICK)return!1}return!0}});d0(this,"match",match$h);d0(this,"parse",parse$m)}}const match$g=function(){return{isContainingBlock:!1,eatOpener:eo,eatAndInterruptPreviousSibling:to};function eo(no){if(no.countOfPrecedeSpaces>=4)return null;const{nodePoints:io,startIndex:so,endIndex:ao,firstNonWhitespaceIndex:lo}=no;if(lo>=ao||io[lo].codePoint!==AsciiCodePoint.NUMBER_SIGN)return null;const uo=eatOptionalCharacters(io,lo+1,ao,AsciiCodePoint.NUMBER_SIGN),ho=uo-lo;if(ho>6||uo+1to.map(no=>{const{nodePoints:io,firstNonWhitespaceIndex:so,endIndex:ao}=no.line;let[lo,uo]=calcTrimBoundaryOfCodePoints(io,so+no.depth,ao),ho=0;for(let _o=uo-1;_o>=lo&&io[_o].codePoint===AsciiCodePoint.NUMBER_SIGN;--_o)ho+=1;if(ho>0){let _o=0,ko=uo-1-ho;for(;ko>=lo;--ko){const Co=io[ko].codePoint;if(!isWhitespaceCharacter(Co))break;_o+=1}(_o>0||ko=no)return null;const so=io;let ao=eo[io].codePoint;if(!isAsciiLetter(ao)&&ao!==AsciiCodePoint.UNDERSCORE&&ao!==AsciiCodePoint.COLON)return null;for(io=so+1;iogo&&(uo.value={startIndex:go,endIndex:mo});break}}if(uo.value!=null)return{attribute:uo,nextIndex:io}}return{attribute:uo,nextIndex:lo}}function eatHTMLTagName(eo,to,no){if(to>=no||!isAsciiLetter(eo[to].codePoint))return null;let io=to;for(;io=no)return no;const so=eo[to].codePoint;return isWhitespaceCharacter(so)||so===AsciiCodePoint.CLOSE_ANGLE?to+1:null}function eatEndCondition1(eo,to,no){for(let io=to;io=no||eo[ao].codePoint!==AsciiCodePoint.CLOSE_ANGLE){io+=1;continue}const uo=calcStringFromNodePoints(eo,so,ao,!0).toLowerCase();if(includedTags$1.includes(uo))return ao}return null}function eatStartCondition2(eo,to,no){const io=to;return io+2=no)return no;const so=eo[to].codePoint;return isWhitespaceCharacter(so)||so===AsciiCodePoint.CLOSE_ANGLE?to+1:so===AsciiCodePoint.SLASH&&to+1=no)return null;let ao=to;if(so){for(;ao=no)return null;eo[ao].codePoint===AsciiCodePoint.SLASH&&(ao+=1)}else ao=eatOptionalWhitespaces(eo,to,no);if(ao>=no||eo[ao].codePoint!==AsciiCodePoint.CLOSE_ANGLE)return null;for(ao+=1;ao=4)return null;const{nodePoints:lo,startIndex:uo,endIndex:ho,firstNonWhitespaceIndex:go}=ao;if(go>=ho||lo[go].codePoint!==AsciiCodePoint.OPEN_ANGLE)return null;const mo=go+1,yo=io(lo,mo,ho);if(yo==null)return null;const{condition:So}=yo;let _o=!1;So!==6&&So!==7&&so(lo,yo.nextIndex,ho,So)!=null&&(_o=!0);const ko=ho;return{token:{nodeType:HtmlType,position:{start:calcStartPoint(lo,uo),end:calcEndPoint(lo,ko-1)},condition:So,lines:[ao]},nextIndex:ko,saturated:_o}}function to(ao,lo){const uo=eo(ao);if(uo==null||uo.token.condition===7)return null;const{token:ho,nextIndex:go}=uo;return{token:ho,nextIndex:go,remainingSibling:lo}}function no(ao,lo){const{nodePoints:uo,endIndex:ho,firstNonWhitespaceIndex:go}=ao,mo=so(uo,go,ho,lo.condition);return mo===-1?{status:"notMatched"}:(lo.lines.push(ao),mo!=null?{status:"closing",nextIndex:ho}:{status:"opening",nextIndex:ho})}function io(ao,lo,uo){let ho=null;if(lo>=uo)return null;if(ho=eatStartCondition2(ao,lo,uo),ho!=null)return{nextIndex:ho,condition:2};if(ho=eatStartCondition3(ao,lo,uo),ho!=null)return{nextIndex:ho,condition:3};if(ho=eatStartCondition4(ao,lo,uo),ho!=null)return{nextIndex:ho,condition:4};if(ho=eatStartCondition5(ao,lo,uo),ho!=null)return{nextIndex:ho,condition:5};if(ao[lo].codePoint!==AsciiCodePoint.SLASH){const ko=lo,Co=eatHTMLTagName(ao,ko,uo);if(Co==null)return null;const $o={startIndex:ko,endIndex:Co},Oo=calcStringFromNodePoints(ao,$o.startIndex,$o.endIndex).toLowerCase();return ho=eatStartCondition1(ao,$o.endIndex,uo,Oo),ho!=null?{nextIndex:ho,condition:1}:(ho=eatStartCondition6(ao,$o.endIndex,uo,Oo),ho!=null?{nextIndex:ho,condition:6}:(ho=eatStartCondition7(ao,$o.endIndex,uo,Oo,!0),ho!=null?{nextIndex:ho,condition:7}:null))}const go=lo+1,mo=eatHTMLTagName(ao,go,uo);if(mo==null)return null;const yo={startIndex:go,endIndex:mo},_o=calcStringFromNodePoints(ao,yo.startIndex,yo.endIndex).toLowerCase();return ho=eatStartCondition6(ao,yo.endIndex,uo,_o),ho!=null?{nextIndex:ho,condition:6}:(ho=eatStartCondition7(ao,yo.endIndex,uo,_o,!1),ho!=null?{nextIndex:ho,condition:7}:null)}function so(ao,lo,uo,ho){switch(ho){case 1:return eatEndCondition1(ao,lo,uo)==null?null:uo;case 2:return eatEndCondition2(ao,lo,uo)==null?null:uo;case 3:return eatEndCondition3(ao,lo,uo)==null?null:uo;case 4:return eatEndCondition4(ao,lo,uo)==null?null:uo;case 5:return eatEndCondition5(ao,lo,uo)==null?null:uo;case 6:case 7:return eatOptionalWhitespaces(ao,lo,uo)>=uo?-1:null}}},parse$k=function(eo){return{parse:to=>to.map(no=>{const io=mergeContentLinesFaithfully(no.lines);return eo.shouldReservePosition?{type:"html",position:no.position,value:calcStringFromNodePoints(io)}:{type:"html",value:calcStringFromNodePoints(io)}})}},uniqueName$d="@yozora/tokenizer-html-block";class HtmlBlockTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$d,priority:no.priority??TokenizerPriority.ATOMIC});d0(this,"match",match$f);d0(this,"parse",parse$k)}}function eatHtmlInlineCDataDelimiter(eo,to,no){let io=to;if(io+11>=no||eo[io+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK||eo[io+2].codePoint!==AsciiCodePoint.OPEN_BRACKET||eo[io+3].codePoint!==AsciiCodePoint.UPPERCASE_C||eo[io+4].codePoint!==AsciiCodePoint.UPPERCASE_D||eo[io+5].codePoint!==AsciiCodePoint.UPPERCASE_A||eo[io+6].codePoint!==AsciiCodePoint.UPPERCASE_T||eo[io+7].codePoint!==AsciiCodePoint.UPPERCASE_A||eo[io+8].codePoint!==AsciiCodePoint.OPEN_BRACKET)return null;const so=io+9;for(io=so;io=no)return null;if(eo[io+1].codePoint===AsciiCodePoint.CLOSE_BRACKET&&eo[io+2].codePoint===AsciiCodePoint.CLOSE_ANGLE)return{type:"full",startIndex:to,endIndex:io+3,htmlType:"cdata"}}return null}function eatHtmlInlineClosingDelimiter(eo,to,no){let io=to;if(io+3>=no||eo[io+1].codePoint!==AsciiCodePoint.SLASH)return null;const so=io+2,ao=eatHTMLTagName(eo,so,no);return ao==null||(io=eatOptionalWhitespaces(eo,ao,no),io>=no||eo[io].codePoint!==AsciiCodePoint.CLOSE_ANGLE)?null:{type:"full",startIndex:to,endIndex:io+1,htmlType:"closing",tagName:{startIndex:so,endIndex:ao}}}function eatHtmlInlineCommentDelimiter(eo,to,no){let io=to;if(io+6>=no||eo[io+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK||eo[io+2].codePoint!==AsciiCodePoint.MINUS_SIGN||eo[io+3].codePoint!==AsciiCodePoint.MINUS_SIGN||eo[io+4].codePoint===AsciiCodePoint.CLOSE_ANGLE||eo[io+4].codePoint===AsciiCodePoint.MINUS_SIGN&&eo[io+5].codePoint===AsciiCodePoint.CLOSE_ANGLE)return null;const so=io+4;for(io=so;io2||io+2>=no||eo[io+2].codePoint!==AsciiCodePoint.CLOSE_ANGLE?null:{type:"full",startIndex:to,endIndex:io+3,htmlType:"comment"}}return null}function eatHtmlInlineDeclarationDelimiter(eo,to,no){let io=to;if(io+4>=no||eo[io+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK)return null;const so=io+2;for(io=so;io=no||!isWhitespaceCharacter(eo[io].codePoint))return null;const ao=io,lo=io+1;for(io=lo;io=no||eo[io+1].codePoint!==AsciiCodePoint.QUESTION_MARK)return null;const so=io+2;for(io=so;io=no)return null;if(eo[io+1].codePoint===AsciiCodePoint.CLOSE_ANGLE)return{type:"full",startIndex:to,endIndex:io+2,htmlType:"instruction"}}return null}function eatHtmlInlineTokenOpenDelimiter(eo,to,no){let io=to;if(io+2>=no)return null;const so=io+1,ao=eatHTMLTagName(eo,so,no);if(ao==null)return null;const lo=[];for(io=ao;io=no)return null;let uo=!1;return eo[io].codePoint===AsciiCodePoint.SLASH&&(io+=1,uo=!0),io>=no||eo[io].codePoint!==AsciiCodePoint.CLOSE_ANGLE?null:{type:"full",startIndex:to,endIndex:io+1,htmlType:"open",tagName:{startIndex:so,endIndex:ao},attributes:lo,selfClosed:uo}}const match$e=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:no};function to(io,so){const ao=eo.getNodePoints();for(let lo=io;lo=so));++lo)switch(ao[lo].codePoint){case AsciiCodePoint.BACKSLASH:lo+=1;break;case AsciiCodePoint.OPEN_ANGLE:{const ho=tryToEatDelimiter(ao,lo,so);if(ho!=null)return ho;break}}return null}function no(io){return[{...io,nodeType:HtmlType}]}};function tryToEatDelimiter(eo,to,no){let io=null;return io=eatHtmlInlineTokenOpenDelimiter(eo,to,no),io!=null||(io=eatHtmlInlineClosingDelimiter(eo,to,no),io!=null)||(io=eatHtmlInlineCommentDelimiter(eo,to,no),io!=null)||(io=eatHtmlInlineInstructionDelimiter(eo,to,no),io!=null)||(io=eatHtmlInlineDeclarationDelimiter(eo,to,no),io!=null)||(io=eatHtmlInlineCDataDelimiter(eo,to,no)),io}const parse$j=function(eo){return{parse:to=>to.map(no=>{const{startIndex:io,endIndex:so}=no,ao=eo.getNodePoints(),lo=calcStringFromNodePoints(ao,io,so);return eo.shouldReservePosition?{type:HtmlType,position:eo.calcPosition(no),value:lo}:{type:HtmlType,value:lo}})}},uniqueName$c="@yozora/tokenizer-html-inline";class HtmlInlineTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$c,priority:no.priority??TokenizerPriority.ATOMIC});d0(this,"match",match$e);d0(this,"parse",parse$j)}}const checkBalancedBracketsStatus=(eo,to,no,io)=>{let so=eo,ao=0;const lo=()=>{switch(io[so].codePoint){case AsciiCodePoint.BACKSLASH:so+=1;break;case AsciiCodePoint.OPEN_BRACKET:ao+=1;break;case AsciiCodePoint.CLOSE_BRACKET:ao-=1;break}};for(const uo of no)if(!(uo.startIndexto)break;for(;so0?1:0};function eatLinkDestination(eo,to,no){if(to>=no)return-1;let io=to;switch(eo[io].codePoint){case AsciiCodePoint.OPEN_ANGLE:{for(io+=1;io=no)return-1;let io=to;const so=eo[io].codePoint;switch(so){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:{for(io+=1;ioao.line+1)return-1;break}}}break}case AsciiCodePoint.OPEN_PARENTHESIS:{let ao=1;for(io+=1;iolo.line+1)return-1;break}case AsciiCodePoint.OPEN_PARENTHESIS:ao+=1;break;case AsciiCodePoint.CLOSE_PARENTHESIS:if(ao-=1,ao===0)return io+1;break}}break}case AsciiCodePoint.CLOSE_PARENTHESIS:return io;default:return-1}return-1}const match$d=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:no,processDelimiterPair:io};function to(so,ao){const lo=eo.getNodePoints(),uo=eo.getBlockEndIndex();for(let ho=so;ho=ao||lo[ho+1].codePoint!==AsciiCodePoint.OPEN_PARENTHESIS)break;const mo=eatOptionalWhitespaces(lo,ho+2,uo),yo=eatLinkDestination(lo,mo,uo);if(yo<0)break;const So=eatOptionalWhitespaces(lo,yo,uo),_o=eatLinkTitle(lo,So,uo);if(_o<0)break;const ko=ho,Co=eatOptionalWhitespaces(lo,_o,uo)+1;if(Co>uo||lo[Co-1].codePoint!==AsciiCodePoint.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:ko,endIndex:Co,destinationContent:moto.map(no=>{const io=eo.getNodePoints();let so="";if(no.destinationContent!=null){let{startIndex:ho,endIndex:go}=no.destinationContent;io[ho].codePoint===AsciiCodePoint.OPEN_ANGLE&&(ho+=1,go-=1);const mo=calcEscapedStringFromNodePoints(io,ho,go,!0);so=eo.formatUrl(mo)}let ao;if(no.titleContent!=null){const{startIndex:ho,endIndex:go}=no.titleContent;ao=calcEscapedStringFromNodePoints(io,ho+1,go-1)}const lo=eo.parseInlineTokens(no.children);return eo.shouldReservePosition?{type:LinkType,position:eo.calcPosition(no),url:so,title:ao,children:lo}:{type:LinkType,url:so,title:ao,children:lo}})}},uniqueName$b="@yozora/tokenizer-link";class LinkTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$b,priority:no.priority??TokenizerPriority.LINKS});d0(this,"match",match$d);d0(this,"parse",parse$i)}}function calcImageAlt(eo){return eo.map(to=>to.value!=null?to.value:to.alt!=null?to.alt:to.children!=null?calcImageAlt(to.children):"").join("")}const match$c=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:no,processDelimiterPair:io};function to(so,ao){const lo=eo.getNodePoints(),uo=eo.getBlockEndIndex();for(let ho=so;ho=ao||lo[ho+1].codePoint!==AsciiCodePoint.OPEN_PARENTHESIS)break;const mo=eatOptionalWhitespaces(lo,ho+2,uo),yo=eatLinkDestination(lo,mo,uo);if(yo<0)break;const So=eatOptionalWhitespaces(lo,yo,uo),_o=eatLinkTitle(lo,So,uo);if(_o<0)break;const ko=ho,Co=eatOptionalWhitespaces(lo,_o,uo)+1;if(Co>uo||lo[Co-1].codePoint!==AsciiCodePoint.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:ko,endIndex:Co,destinationContent:moto.map(no=>{const io=eo.getNodePoints();let so="";if(no.destinationContent!=null){let{startIndex:go,endIndex:mo}=no.destinationContent;io[go].codePoint===AsciiCodePoint.OPEN_ANGLE&&(go+=1,mo-=1);const yo=calcEscapedStringFromNodePoints(io,go,mo,!0);so=eo.formatUrl(yo)}const ao=eo.parseInlineTokens(no.children),lo=calcImageAlt(ao);let uo;if(no.titleContent!=null){const{startIndex:go,endIndex:mo}=no.titleContent;uo=calcEscapedStringFromNodePoints(io,go+1,mo-1)}return eo.shouldReservePosition?{type:ImageType$1,position:eo.calcPosition(no),url:so,alt:lo,title:uo}:{type:ImageType$1,url:so,alt:lo,title:uo}})}},uniqueName$a="@yozora/tokenizer-image";class ImageTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$a,priority:no.priority??TokenizerPriority.LINKS});d0(this,"match",match$c);d0(this,"parse",parse$h)}}const match$b=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:no,processDelimiterPair:io};function to(so,ao){const lo=eo.getNodePoints();for(let uo=so;uo=ao||lo[uo+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)break;return{type:"opener",startIndex:uo,endIndex:uo+2,brackets:[]}}case AsciiCodePoint.CLOSE_BRACKET:{const go={type:"closer",startIndex:uo,endIndex:uo+1,brackets:[]};if(uo+1>=ao||lo[uo+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)return go;const mo=eatLinkLabel(lo,uo+1,ao);return mo.nextIndex<0?go:mo.labelAndIdentifier==null?{type:"closer",startIndex:uo,endIndex:mo.nextIndex,brackets:[{startIndex:uo+1,endIndex:mo.nextIndex}]}:{type:"closer",startIndex:uo,endIndex:mo.nextIndex,brackets:[{startIndex:uo+1,endIndex:mo.nextIndex,label:mo.labelAndIdentifier.label,identifier:mo.labelAndIdentifier.identifier}]}}}return null}function no(so,ao,lo){const uo=eo.getNodePoints();switch(checkBalancedBracketsStatus(so.endIndex,ao.startIndex,lo,uo)){case-1:return{paired:!1,opener:!1,closer:!0};case 0:return{paired:!0};case 1:return{paired:!1,opener:!0,closer:!1}}}function io(so,ao,lo){const uo=eo.getNodePoints(),ho=ao.brackets[0];if(ho!=null&&ho.identifier!=null)return eo.hasDefinition(ho.identifier)?{tokens:[{nodeType:ImageReferenceType,startIndex:so.startIndex,endIndex:ho.endIndex,referenceType:"full",label:ho.label,identifier:ho.identifier,children:eo.resolveInternalTokens(lo,so.endIndex,ao.startIndex)}]}:{tokens:lo};const{nextIndex:go,labelAndIdentifier:mo}=eatLinkLabel(uo,so.endIndex-1,ao.startIndex+1);return go===ao.startIndex+1&&mo!=null&&eo.hasDefinition(mo.identifier)?{tokens:[{nodeType:ImageReferenceType,startIndex:so.startIndex,endIndex:ao.endIndex,referenceType:ho==null?"shortcut":"collapsed",label:mo.label,identifier:mo.identifier,children:eo.resolveInternalTokens(lo,so.endIndex,ao.startIndex)}]}:{tokens:lo}}},parse$g=function(eo){return{parse:to=>to.map(no=>{const{identifier:io,label:so,referenceType:ao}=no,lo=eo.parseInlineTokens(no.children),uo=calcImageAlt(lo);return eo.shouldReservePosition?{type:ImageReferenceType,position:eo.calcPosition(no),identifier:io,label:so,referenceType:ao,alt:uo}:{type:ImageReferenceType,identifier:io,label:so,referenceType:ao,alt:uo}})}},uniqueName$9="@yozora/tokenizer-image-reference";class ImageReferenceTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$9,priority:no.priority??TokenizerPriority.LINKS});d0(this,"match",match$b);d0(this,"parse",parse$g)}}const match$a=function(){return{isContainingBlock:!1,eatOpener:eo,eatContinuationText:to};function eo(no){if(no.countOfPrecedeSpaces<4)return null;const{nodePoints:io,startIndex:so,firstNonWhitespaceIndex:ao,endIndex:lo}=no;let uo=so+4;if(io[so].codePoint===AsciiCodePoint.SPACE&&io[so+3].codePoint===VirtualCodePoint.SPACE){let mo=so+1;for(;moto.map(no=>{const{lines:io}=no;let so=0,ao=io.length;for(;somo+1&&lo.push({type:"opener",startIndex:mo+1,endIndex:So}),mo=So-1}break}case AsciiCodePoint.BACKTICK:{const So=mo,_o=eatOptionalCharacters(io,mo+1,ao,yo);lo.push({type:"both",startIndex:So,endIndex:_o}),mo=_o-1;break}}}let uo=0,ho=-1,go=null;for(;uo=mo))continue;ho=yo;let So=null,_o=null;for(;uo=mo&&Co.type!=="closer")break}if(uo+1>=lo.length)return;So=lo[uo];const ko=So.endIndex-So.startIndex;for(let Co=uo+1;Coto.map(no=>{const io=eo.getNodePoints();let so=no.startIndex+no.thickness,ao=no.endIndex-no.thickness,lo=!0;for(let go=so;gogenFindDelimiter(to),isDelimiterPair:no,processDelimiterPair:io,processSingleDelimiter:so};function to(ao,lo){const uo=eo.getNodePoints();for(let ho=ao;ho=lo||uo[ho+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)break;const mo=eatLinkLabel(uo,ho+1,lo);if(mo.nextIndex===-1)return{type:"opener",startIndex:ho+1,endIndex:ho+2,brackets:[]};if(mo.labelAndIdentifier==null){ho=mo.nextIndex-1;break}const yo=[{startIndex:ho+1,endIndex:mo.nextIndex,label:mo.labelAndIdentifier.label,identifier:mo.labelAndIdentifier.identifier}],So={type:"closer",startIndex:ho,endIndex:mo.nextIndex,brackets:yo};for(ho=mo.nextIndex;ho=uo.length)break;if(go+1to.map(no=>{const{identifier:io,label:so,referenceType:ao}=no,lo=eo.parseInlineTokens(no.children);return eo.shouldReservePosition?{type:LinkReferenceType,position:eo.calcPosition(no),identifier:io,label:so,referenceType:ao,children:lo}:{type:LinkReferenceType,identifier:io,label:so,referenceType:ao,children:lo}})}},uniqueName$6="@yozora/tokenizer-link-reference";class LinkReferenceTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$6,priority:no.priority??TokenizerPriority.LINKS});d0(this,"match",match$8);d0(this,"parse",parse$d)}}const match$7=function(){const{emptyItemCouldNotInterruptedTypes:eo,enableTaskListItem:to}=this;return{isContainingBlock:!0,eatOpener:no,eatAndInterruptPreviousSibling:io,eatContinuationText:so};function no(ao){if(ao.countOfPrecedeSpaces>=4)return null;const{nodePoints:lo,startIndex:uo,endIndex:ho,firstNonWhitespaceIndex:go}=ao;if(go>=ho)return null;let mo=!1,yo=null,So,_o,ko=go,Co=lo[ko].codePoint;if(ko+1go&&ko-go<=9&&(Co===AsciiCodePoint.DOT||Co===AsciiCodePoint.CLOSE_PARENTHESIS)&&(ko+=1,mo=!0,yo=Co)}if(mo||(Co===AsciiCodePoint.PLUS_SIGN||Co===AsciiCodePoint.MINUS_SIGN||Co===AsciiCodePoint.ASTERISK)&&(ko+=1,yo=Co),yo==null)return null;let $o=0,Ro=ko;for(Ro4&&(Ro-=$o-1,$o=1),$o===0&&Ro=ho){if(lo.countOfTopBlankLine>=0&&(lo.countOfTopBlankLine+=1,lo.countOfTopBlankLine>1))return{status:"notMatched"}}else lo.countOfTopBlankLine=-1;return{status:"opening",nextIndex:Math.min(uo+lo.indent,ho-1)}}};function eatTaskStatus(eo,to,no){let io=to;for(;io=no||eo[io].codePoint!==AsciiCodePoint.OPEN_BRACKET||eo[io+2].codePoint!==AsciiCodePoint.CLOSE_BRACKET||!isWhitespaceCharacter(eo[io+3].codePoint))return{status:null,nextIndex:to};let so;switch(eo[io+1].codePoint){case AsciiCodePoint.SPACE:so=TaskStatus.TODO;break;case AsciiCodePoint.MINUS_SIGN:so=TaskStatus.DOING;break;case AsciiCodePoint.LOWERCASE_X:case AsciiCodePoint.UPPERCASE_X:so=TaskStatus.DONE;break;default:return{status:null,nextIndex:to}}return{status:so,nextIndex:io+4}}const parse$c=function(eo){return{parse:to=>{const no=[];let io=[];for(let ao=0;ao{if(eo.length<=0)return null;let no=eo.some(ao=>{if(ao.children==null||ao.children.length<=1)return!1;let lo=ao.children[0].position;for(let uo=1;uo1){let ao=eo[0];for(let lo=1;lo{const lo=to.parseBlockTokens(ao.children),uo=no?lo:lo.map(go=>go.type===ParagraphType$1?go.children:go).flat();return to.shouldReservePosition?{type:ListItemType,position:ao.position,status:ao.status,children:uo}:{type:ListItemType,status:ao.status,children:uo}});return to.shouldReservePosition?{type:ListType,position:{start:{...eo[0].position.start},end:{...eo[eo.length-1].position.end}},ordered:eo[0].ordered,orderType:eo[0].orderType,start:eo[0].order,marker:eo[0].marker,spread:no,children:io}:{type:ListType,ordered:eo[0].ordered,orderType:eo[0].orderType,start:eo[0].order,marker:eo[0].marker,spread:no,children:io}},uniqueName$5="@yozora/tokenizer-list";class ListTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$5,priority:no.priority??TokenizerPriority.CONTAINING_BLOCK});d0(this,"enableTaskListItem");d0(this,"emptyItemCouldNotInterruptedTypes");d0(this,"match",match$7);d0(this,"parse",parse$c);this.enableTaskListItem=no.enableTaskListItem??!1,this.emptyItemCouldNotInterruptedTypes=no.emptyItemCouldNotInterruptedTypes??[ParagraphType$1]}}const match$6=function(){return{isContainingBlock:!1,eatOpener:eo,eatContinuationText:to,eatLazyContinuationText:no};function eo(io){const{endIndex:so,firstNonWhitespaceIndex:ao}=io;if(ao>=so)return null;const lo=[io],uo=calcPositionFromPhrasingContentLines(lo);return{token:{nodeType:ParagraphType$1,position:uo,lines:lo},nextIndex:so}}function to(io,so){const{endIndex:ao,firstNonWhitespaceIndex:lo}=io;return lo>=ao?{status:"notMatched"}:(so.lines.push(io),{status:"opening",nextIndex:ao})}function no(io,so){return to(io,so)}},parse$b=function(eo){return{parse:to=>{const no=[];for(const io of to){const so=mergeAndStripContentLines(io.lines),ao=eo.processInlines(so);if(ao.length<=0)continue;const lo=eo.shouldReservePosition?{type:ParagraphType$1,position:io.position,children:ao}:{type:ParagraphType$1,children:ao};no.push(lo)}return no}}},uniqueName$4="@yozora/tokenizer-paragraph";class ParagraphTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$4,priority:no.priority??TokenizerPriority.FALLBACK});d0(this,"match",match$6);d0(this,"parse",parse$b)}extractPhrasingContentLines(no){return no.lines}buildBlockToken(no){const io=trimBlankLines(no);if(io.length<=0)return null;const so=calcPositionFromPhrasingContentLines(io);return{nodeType:ParagraphType$1,lines:io,position:so}}}const match$5=function(eo){return{isContainingBlock:!1,eatOpener:to,eatAndInterruptPreviousSibling:no};function to(){return null}function no(io,so){const{nodePoints:ao,endIndex:lo,firstNonWhitespaceIndex:uo,countOfPrecedeSpaces:ho}=io;if(ho>=4||uo>=lo)return null;let go=null,mo=!1;for(let ko=uo;koto.map(no=>{let io=1;switch(no.marker){case AsciiCodePoint.EQUALS_SIGN:io=1;break;case AsciiCodePoint.MINUS_SIGN:io=2;break}const so=mergeAndStripContentLines(no.lines),ao=eo.processInlines(so);return eo.shouldReservePosition?{type:HeadingType,position:no.position,depth:io,children:ao}:{type:HeadingType,depth:io,children:ao}})}},uniqueName$3="@yozora/tokenizer-setext-heading";class SetextHeadingTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$3,priority:no.priority??TokenizerPriority.ATOMIC});d0(this,"match",match$5);d0(this,"parse",parse$a)}}const match$4=function(eo){return{isContainingBlock:!1,eatOpener:to,eatAndInterruptPreviousSibling:no,eatLazyContinuationText:io};function to(){return null}function no(ao,lo){if(ao.countOfPrecedeSpaces>=4)return null;const{nodePoints:uo,endIndex:ho,firstNonWhitespaceIndex:go}=ao;if(go>=ho)return null;const mo=[];let yo=uo[go].codePoint,So=yo===AsciiCodePoint.VERTICAL_SLASH?go+1:go;for(;So=ho)break;let Mo=!1;yo===AsciiCodePoint.COLON&&(Mo=!0,So+=1);let Bo=0;for(;So0)&&(ko+=1),Co=!1;continue}Co=!0,Bo.codePoint===AsciiCodePoint.BACKSLASH&&(Mo+=1)}}if(Co&&mo.length>1&&(ko+=1),ko!==mo.length)return null;const Ro=so($o,mo),Oo=ho;return{token:{nodeType:TableType,position:{start:calcStartPoint($o.nodePoints,$o.startIndex),end:calcEndPoint(uo,Oo-1)},columns:mo,rows:[Ro]},nextIndex:Oo,remainingSibling:eo.rollbackPhrasingLines(_o.slice(0,_o.length-1),lo)}}function io(ao,lo){if(ao.firstNonWhitespaceIndex>=ao.endIndex)return{status:"notMatched"};const uo=so(ao,lo.columns);return uo==null?{status:"notMatched"}:(lo.rows.push(uo),{status:"opening",nextIndex:ao.endIndex})}function so(ao,lo){const{nodePoints:uo,startIndex:ho,endIndex:go,firstNonWhitespaceIndex:mo}=ao;let yo=uo[mo],So=yo.codePoint===AsciiCodePoint.VERTICAL_SLASH?mo+1:mo;const _o=[];for(;SoOo;--Mo){const Go=uo[Mo-1];if(!isWhitespaceCharacter(Go.codePoint))break}const Bo=calcEndPoint(uo,So-1),Po=No>=Mo?[]:[{nodePoints:uo,startIndex:Oo,endIndex:Mo,firstNonWhitespaceIndex:No,countOfPrecedeSpaces:No-Oo}],Lo={nodeType:TableCellType,position:{start:Ro,end:Bo},lines:Po};if(_o.push(Lo),_o.length>=lo.length)break}const ko=calcStartPoint(uo,ho),Co=calcEndPoint(uo,go-1);for(let Ro=_o.length;Ro({parse:to=>to.map(no=>{const io=no.rows.map(ao=>{const lo=ao.cells.map(ho=>{const go=[];{const So=mergeAndStripContentLines(ho.lines);for(let _o=0,ko=So.length;_ogenFindDelimiter((eo,to)=>({type:"full",startIndex:eo,endIndex:to})),processSingleDelimiter:eo=>[{nodeType:TextType$1,startIndex:eo.startIndex,endIndex:eo.endIndex}]}},parse$8=function(eo){return{parse:to=>to.map(no=>{const io=eo.getNodePoints();let so=calcEscapedStringFromNodePoints(io,no.startIndex,no.endIndex);return so=stripSpaces(so),eo.shouldReservePosition?{type:TextType$1,position:eo.calcPosition(no),value:so}:{type:TextType$1,value:so}})}},_stripRegex=/[^\S\n]*\n[^\S\n]*/g,stripSpaces=eo=>eo.replace(_stripRegex,` +`),eo.shouldReservePosition?{type:CodeType,position:no.position,lang:null,meta:null,value:uo}:{type:CodeType,lang:null,meta:null,value:uo}})}},uniqueName$8="@yozora/tokenizer-indented-code";class IndentedCodeTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$8,priority:no.priority??TokenizerPriority.ATOMIC});d0(this,"match",match$a);d0(this,"parse",parse$f)}}const match$9=function(eo){return{findDelimiter:to,processSingleDelimiter:no};function*to(){const io=eo.getNodePoints(),so=eo.getBlockStartIndex(),ao=eo.getBlockEndIndex(),lo=[];for(let mo=so;momo+1&&lo.push({type:"opener",startIndex:mo+1,endIndex:So}),mo=So-1}break}case AsciiCodePoint.BACKTICK:{const So=mo,_o=eatOptionalCharacters(io,mo+1,ao,yo);lo.push({type:"both",startIndex:So,endIndex:_o}),mo=_o-1;break}}}let uo=0,ho=-1,go=null;for(;uo=mo))continue;ho=yo;let So=null,_o=null;for(;uo=mo&&Co.type!=="closer")break}if(uo+1>=lo.length)return;So=lo[uo];const ko=So.endIndex-So.startIndex;for(let Co=uo+1;Coto.map(no=>{const io=eo.getNodePoints();let so=no.startIndex+no.thickness,ao=no.endIndex-no.thickness,lo=!0;for(let go=so;gogenFindDelimiter(to),isDelimiterPair:no,processDelimiterPair:io,processSingleDelimiter:so};function to(ao,lo){const uo=eo.getNodePoints();for(let ho=ao;ho=lo||uo[ho+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)break;const mo=eatLinkLabel(uo,ho+1,lo);if(mo.nextIndex===-1)return{type:"opener",startIndex:ho+1,endIndex:ho+2,brackets:[]};if(mo.labelAndIdentifier==null){ho=mo.nextIndex-1;break}const yo=[{startIndex:ho+1,endIndex:mo.nextIndex,label:mo.labelAndIdentifier.label,identifier:mo.labelAndIdentifier.identifier}],So={type:"closer",startIndex:ho,endIndex:mo.nextIndex,brackets:yo};for(ho=mo.nextIndex;ho=uo.length)break;if(go+1to.map(no=>{const{identifier:io,label:so,referenceType:ao}=no,lo=eo.parseInlineTokens(no.children);return eo.shouldReservePosition?{type:LinkReferenceType,position:eo.calcPosition(no),identifier:io,label:so,referenceType:ao,children:lo}:{type:LinkReferenceType,identifier:io,label:so,referenceType:ao,children:lo}})}},uniqueName$6="@yozora/tokenizer-link-reference";class LinkReferenceTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$6,priority:no.priority??TokenizerPriority.LINKS});d0(this,"match",match$8);d0(this,"parse",parse$d)}}const match$7=function(){const{emptyItemCouldNotInterruptedTypes:eo,enableTaskListItem:to}=this;return{isContainingBlock:!0,eatOpener:no,eatAndInterruptPreviousSibling:io,eatContinuationText:so};function no(ao){if(ao.countOfPrecedeSpaces>=4)return null;const{nodePoints:lo,startIndex:uo,endIndex:ho,firstNonWhitespaceIndex:go}=ao;if(go>=ho)return null;let mo=!1,yo=null,So,_o,ko=go,Co=lo[ko].codePoint;if(ko+1go&&ko-go<=9&&(Co===AsciiCodePoint.DOT||Co===AsciiCodePoint.CLOSE_PARENTHESIS)&&(ko+=1,mo=!0,yo=Co)}if(mo||(Co===AsciiCodePoint.PLUS_SIGN||Co===AsciiCodePoint.MINUS_SIGN||Co===AsciiCodePoint.ASTERISK)&&(ko+=1,yo=Co),yo==null)return null;let $o=0,Ro=ko;for(Ro4&&(Ro-=$o-1,$o=1),$o===0&&Ro=ho){if(lo.countOfTopBlankLine>=0&&(lo.countOfTopBlankLine+=1,lo.countOfTopBlankLine>1))return{status:"notMatched"}}else lo.countOfTopBlankLine=-1;return{status:"opening",nextIndex:Math.min(uo+lo.indent,ho-1)}}};function eatTaskStatus(eo,to,no){let io=to;for(;io=no||eo[io].codePoint!==AsciiCodePoint.OPEN_BRACKET||eo[io+2].codePoint!==AsciiCodePoint.CLOSE_BRACKET||!isWhitespaceCharacter(eo[io+3].codePoint))return{status:null,nextIndex:to};let so;switch(eo[io+1].codePoint){case AsciiCodePoint.SPACE:so=TaskStatus.TODO;break;case AsciiCodePoint.MINUS_SIGN:so=TaskStatus.DOING;break;case AsciiCodePoint.LOWERCASE_X:case AsciiCodePoint.UPPERCASE_X:so=TaskStatus.DONE;break;default:return{status:null,nextIndex:to}}return{status:so,nextIndex:io+4}}const parse$c=function(eo){return{parse:to=>{const no=[];let io=[];for(let ao=0;ao{if(eo.length<=0)return null;let no=eo.some(ao=>{if(ao.children==null||ao.children.length<=1)return!1;let lo=ao.children[0].position;for(let uo=1;uo1){let ao=eo[0];for(let lo=1;lo{const lo=to.parseBlockTokens(ao.children),uo=no?lo:lo.map(go=>go.type===ParagraphType$1?go.children:go).flat();return to.shouldReservePosition?{type:ListItemType,position:ao.position,status:ao.status,children:uo}:{type:ListItemType,status:ao.status,children:uo}});return to.shouldReservePosition?{type:ListType,position:{start:{...eo[0].position.start},end:{...eo[eo.length-1].position.end}},ordered:eo[0].ordered,orderType:eo[0].orderType,start:eo[0].order,marker:eo[0].marker,spread:no,children:io}:{type:ListType,ordered:eo[0].ordered,orderType:eo[0].orderType,start:eo[0].order,marker:eo[0].marker,spread:no,children:io}},uniqueName$5="@yozora/tokenizer-list";class ListTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$5,priority:no.priority??TokenizerPriority.CONTAINING_BLOCK});d0(this,"enableTaskListItem");d0(this,"emptyItemCouldNotInterruptedTypes");d0(this,"match",match$7);d0(this,"parse",parse$c);this.enableTaskListItem=no.enableTaskListItem??!1,this.emptyItemCouldNotInterruptedTypes=no.emptyItemCouldNotInterruptedTypes??[ParagraphType$1]}}const match$6=function(){return{isContainingBlock:!1,eatOpener:eo,eatContinuationText:to,eatLazyContinuationText:no};function eo(io){const{endIndex:so,firstNonWhitespaceIndex:ao}=io;if(ao>=so)return null;const lo=[io],uo=calcPositionFromPhrasingContentLines(lo);return{token:{nodeType:ParagraphType$1,position:uo,lines:lo},nextIndex:so}}function to(io,so){const{endIndex:ao,firstNonWhitespaceIndex:lo}=io;return lo>=ao?{status:"notMatched"}:(so.lines.push(io),{status:"opening",nextIndex:ao})}function no(io,so){return to(io,so)}},parse$b=function(eo){return{parse:to=>{const no=[];for(const io of to){const so=mergeAndStripContentLines(io.lines),ao=eo.processInlines(so);if(ao.length<=0)continue;const lo=eo.shouldReservePosition?{type:ParagraphType$1,position:io.position,children:ao}:{type:ParagraphType$1,children:ao};no.push(lo)}return no}}},uniqueName$4="@yozora/tokenizer-paragraph";class ParagraphTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$4,priority:no.priority??TokenizerPriority.FALLBACK});d0(this,"match",match$6);d0(this,"parse",parse$b)}extractPhrasingContentLines(no){return no.lines}buildBlockToken(no){const io=trimBlankLines(no);if(io.length<=0)return null;const so=calcPositionFromPhrasingContentLines(io);return{nodeType:ParagraphType$1,lines:io,position:so}}}const match$5=function(eo){return{isContainingBlock:!1,eatOpener:to,eatAndInterruptPreviousSibling:no};function to(){return null}function no(io,so){const{nodePoints:ao,endIndex:lo,firstNonWhitespaceIndex:uo,countOfPrecedeSpaces:ho}=io;if(ho>=4||uo>=lo)return null;let go=null,mo=!1;for(let ko=uo;koto.map(no=>{let io=1;switch(no.marker){case AsciiCodePoint.EQUALS_SIGN:io=1;break;case AsciiCodePoint.MINUS_SIGN:io=2;break}const so=mergeAndStripContentLines(no.lines),ao=eo.processInlines(so);return eo.shouldReservePosition?{type:HeadingType,position:no.position,depth:io,children:ao}:{type:HeadingType,depth:io,children:ao}})}},uniqueName$3="@yozora/tokenizer-setext-heading";class SetextHeadingTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName$3,priority:no.priority??TokenizerPriority.ATOMIC});d0(this,"match",match$5);d0(this,"parse",parse$a)}}const match$4=function(eo){return{isContainingBlock:!1,eatOpener:to,eatAndInterruptPreviousSibling:no,eatLazyContinuationText:io};function to(){return null}function no(ao,lo){if(ao.countOfPrecedeSpaces>=4)return null;const{nodePoints:uo,endIndex:ho,firstNonWhitespaceIndex:go}=ao;if(go>=ho)return null;const mo=[];let yo=uo[go].codePoint,So=yo===AsciiCodePoint.VERTICAL_SLASH?go+1:go;for(;So=ho)break;let Mo=!1;yo===AsciiCodePoint.COLON&&(Mo=!0,So+=1);let Bo=0;for(;So0)&&(ko+=1),Co=!1;continue}Co=!0,Bo.codePoint===AsciiCodePoint.BACKSLASH&&(Mo+=1)}}if(Co&&mo.length>1&&(ko+=1),ko!==mo.length)return null;const Ro=so($o,mo),Oo=ho;return{token:{nodeType:TableType,position:{start:calcStartPoint($o.nodePoints,$o.startIndex),end:calcEndPoint(uo,Oo-1)},columns:mo,rows:[Ro]},nextIndex:Oo,remainingSibling:eo.rollbackPhrasingLines(_o.slice(0,_o.length-1),lo)}}function io(ao,lo){if(ao.firstNonWhitespaceIndex>=ao.endIndex)return{status:"notMatched"};const uo=so(ao,lo.columns);return uo==null?{status:"notMatched"}:(lo.rows.push(uo),{status:"opening",nextIndex:ao.endIndex})}function so(ao,lo){const{nodePoints:uo,startIndex:ho,endIndex:go,firstNonWhitespaceIndex:mo}=ao;let yo=uo[mo],So=yo.codePoint===AsciiCodePoint.VERTICAL_SLASH?mo+1:mo;const _o=[];for(;SoOo;--Mo){const Go=uo[Mo-1];if(!isWhitespaceCharacter(Go.codePoint))break}const Bo=calcEndPoint(uo,So-1),Fo=No>=Mo?[]:[{nodePoints:uo,startIndex:Oo,endIndex:Mo,firstNonWhitespaceIndex:No,countOfPrecedeSpaces:No-Oo}],Lo={nodeType:TableCellType,position:{start:Ro,end:Bo},lines:Fo};if(_o.push(Lo),_o.length>=lo.length)break}const ko=calcStartPoint(uo,ho),Co=calcEndPoint(uo,go-1);for(let Ro=_o.length;Ro({parse:to=>to.map(no=>{const io=no.rows.map(ao=>{const lo=ao.cells.map(ho=>{const go=[];{const So=mergeAndStripContentLines(ho.lines);for(let _o=0,ko=So.length;_ogenFindDelimiter((eo,to)=>({type:"full",startIndex:eo,endIndex:to})),processSingleDelimiter:eo=>[{nodeType:TextType$1,startIndex:eo.startIndex,endIndex:eo.endIndex}]}},parse$8=function(eo){return{parse:to=>to.map(no=>{const io=eo.getNodePoints();let so=calcEscapedStringFromNodePoints(io,no.startIndex,no.endIndex);return so=stripSpaces(so),eo.shouldReservePosition?{type:TextType$1,position:eo.calcPosition(no),value:so}:{type:TextType$1,value:so}})}},_stripRegex=/[^\S\n]*\n[^\S\n]*/g,stripSpaces=eo=>eo.replace(_stripRegex,` `),uniqueName$1="@yozora/tokenizer-text";class TextTokenizer extends BaseInlineTokenizer{constructor(no={}){super({name:no.name??uniqueName$1,priority:no.priority??TokenizerPriority.FALLBACK});d0(this,"match",match$3);d0(this,"parse",parse$8)}findAndHandleDelimiter(no,io){return{nodeType:TextType$1,startIndex:no,endIndex:io}}}const match$2=function(){return{isContainingBlock:!1,eatOpener:eo,eatAndInterruptPreviousSibling:to};function eo(no){if(no.countOfPrecedeSpaces>=4)return null;const{nodePoints:io,startIndex:so,endIndex:ao,firstNonWhitespaceIndex:lo}=no;if(lo+2>=ao)return null;let uo,ho=0,go=!0,mo=!1;for(let So=lo;Soto.map(no=>eo.shouldReservePosition?{type:ThematicBreakType,position:no.position}:{type:ThematicBreakType})}},uniqueName="@yozora/tokenizer-thematic-break";class ThematicBreakTokenizer extends BaseBlockTokenizer{constructor(no={}){super({name:no.name??uniqueName,priority:no.priority??TokenizerPriority.ATOMIC});d0(this,"match",match$2);d0(this,"parse",parse$7)}}class GfmExParser extends DefaultParser{constructor(to={}){super({...to,blockFallbackTokenizer:to.blockFallbackTokenizer??new ParagraphTokenizer,inlineFallbackTokenizer:to.inlineFallbackTokenizer??new TextTokenizer}),this.useTokenizer(new IndentedCodeTokenizer).useTokenizer(new HtmlBlockTokenizer).useTokenizer(new SetextHeadingTokenizer).useTokenizer(new ThematicBreakTokenizer).useTokenizer(new BlockquoteTokenizer).useTokenizer(new ListTokenizer({enableTaskListItem:!0})).useTokenizer(new HeadingTokenizer).useTokenizer(new FencedCodeTokenizer).useTokenizer(new DefinitionTokenizer).useTokenizer(new TableTokenizer).useTokenizer(new HtmlInlineTokenizer).useTokenizer(new InlineCodeTokenizer).useTokenizer(new AutolinkTokenizer).useTokenizer(new AutolinkExtensionTokenizer).useTokenizer(new BreakTokenizer).useTokenizer(new ImageTokenizer).useTokenizer(new ImageReferenceTokenizer).useTokenizer(new LinkTokenizer).useTokenizer(new LinkReferenceTokenizer).useTokenizer(new EmphasisTokenizer).useTokenizer(new DeleteTokenizer)}}const parser$l=new GfmExParser({defaultParseOptions:{shouldReservePosition:!1}});class BlockquoteRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("blockquote",{className:cls$b,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$b=mergeStyles$1(astClasses.blockquote,{boxSizing:"border-box",padding:"0.625em 1em",borderLeft:"0.25em solid var(--colorBorderBlockquote)",margin:"0px 0px 1.25em 0px",background:"var(--colorBgBlockquote)",boxShadow:"0 1px 2px 0 hsla(0deg, 0%, 0%, 0.1)","> :last-child":{marginBottom:0}});class BreakRenderer extends React.Component{shouldComponentUpdate(){return!1}render(){return jsxRuntimeExports.jsx("br",{className:cls$a})}}const cls$a=mergeStyles$1(astClasses.break,{boxSizing:"border-box"});var prism={exports:{}};(function(eo){var to=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * @@ -1872,39 +1872,39 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * @author Lea Verou * @namespace * @public - */var no=function(io){var so=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,ao=0,lo={},uo={manual:io.Prism&&io.Prism.manual,disableWorkerMessageHandler:io.Prism&&io.Prism.disableWorkerMessageHandler,util:{encode:function Oo(No){return No instanceof ho?new ho(No.type,Oo(No.content),No.alias):Array.isArray(No)?No.map(Oo):No.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(Bo){var Oo=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(Bo.stack)||[])[1];if(Oo){var No=document.getElementsByTagName("script");for(var Mo in No)if(No[Mo].src==Oo)return No[Mo]}return null}},isActive:function(Oo,No,Mo){for(var Bo="no-"+No;Oo;){var Po=Oo.classList;if(Po.contains(No))return!0;if(Po.contains(Bo))return!1;Oo=Oo.parentElement}return!!Mo}},languages:{plain:lo,plaintext:lo,text:lo,txt:lo,extend:function(Oo,No){var Mo=uo.util.clone(uo.languages[Oo]);for(var Bo in No)Mo[Bo]=No[Bo];return Mo},insertBefore:function(Oo,No,Mo,Bo){Bo=Bo||uo.languages;var Po=Bo[Oo],Lo={};for(var Go in Po)if(Po.hasOwnProperty(Go)){if(Go==No)for(var Do in Mo)Mo.hasOwnProperty(Do)&&(Lo[Do]=Mo[Do]);Mo.hasOwnProperty(Go)||(Lo[Go]=Po[Go])}var Uo=Bo[Oo];return Bo[Oo]=Lo,uo.languages.DFS(uo.languages,function(Ho,Yo){Yo===Uo&&Ho!=Oo&&(this[Ho]=Lo)}),Lo},DFS:function Oo(No,Mo,Bo,Po){Po=Po||{};var Lo=uo.util.objId;for(var Go in No)if(No.hasOwnProperty(Go)){Mo.call(No,Go,No[Go],Bo||Go);var Do=No[Go],Uo=uo.util.type(Do);Uo==="Object"&&!Po[Lo(Do)]?(Po[Lo(Do)]=!0,Oo(Do,Mo,null,Po)):Uo==="Array"&&!Po[Lo(Do)]&&(Po[Lo(Do)]=!0,Oo(Do,Mo,Go,Po))}}},plugins:{},highlightAll:function(Oo,No){uo.highlightAllUnder(document,Oo,No)},highlightAllUnder:function(Oo,No,Mo){var Bo={callback:Mo,container:Oo,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};uo.hooks.run("before-highlightall",Bo),Bo.elements=Array.prototype.slice.apply(Bo.container.querySelectorAll(Bo.selector)),uo.hooks.run("before-all-elements-highlight",Bo);for(var Po=0,Lo;Lo=Bo.elements[Po++];)uo.highlightElement(Lo,No===!0,Bo.callback)},highlightElement:function(Oo,No,Mo){var Bo=uo.util.getLanguage(Oo),Po=uo.languages[Bo];uo.util.setLanguage(Oo,Bo);var Lo=Oo.parentElement;Lo&&Lo.nodeName.toLowerCase()==="pre"&&uo.util.setLanguage(Lo,Bo);var Go=Oo.textContent,Do={element:Oo,language:Bo,grammar:Po,code:Go};function Uo(Yo){Do.highlightedCode=Yo,uo.hooks.run("before-insert",Do),Do.element.innerHTML=Do.highlightedCode,uo.hooks.run("after-highlight",Do),uo.hooks.run("complete",Do),Mo&&Mo.call(Do.element)}if(uo.hooks.run("before-sanity-check",Do),Lo=Do.element.parentElement,Lo&&Lo.nodeName.toLowerCase()==="pre"&&!Lo.hasAttribute("tabindex")&&Lo.setAttribute("tabindex","0"),!Do.code){uo.hooks.run("complete",Do),Mo&&Mo.call(Do.element);return}if(uo.hooks.run("before-highlight",Do),!Do.grammar){Uo(uo.util.encode(Do.code));return}if(No&&io.Worker){var Ho=new Worker(uo.filename);Ho.onmessage=function(Yo){Uo(Yo.data)},Ho.postMessage(JSON.stringify({language:Do.language,code:Do.code,immediateClose:!0}))}else Uo(uo.highlight(Do.code,Do.grammar,Do.language))},highlight:function(Oo,No,Mo){var Bo={code:Oo,grammar:No,language:Mo};if(uo.hooks.run("before-tokenize",Bo),!Bo.grammar)throw new Error('The language "'+Bo.language+'" has no grammar.');return Bo.tokens=uo.tokenize(Bo.code,Bo.grammar),uo.hooks.run("after-tokenize",Bo),ho.stringify(uo.util.encode(Bo.tokens),Bo.language)},tokenize:function(Oo,No){var Mo=No.rest;if(Mo){for(var Bo in Mo)No[Bo]=Mo[Bo];delete No.rest}var Po=new yo;return So(Po,Po.head,Oo),mo(Oo,Po,No,Po.head,0),ko(Po)},hooks:{all:{},add:function(Oo,No){var Mo=uo.hooks.all;Mo[Oo]=Mo[Oo]||[],Mo[Oo].push(No)},run:function(Oo,No){var Mo=uo.hooks.all[Oo];if(!(!Mo||!Mo.length))for(var Bo=0,Po;Po=Mo[Bo++];)Po(No)}},Token:ho};io.Prism=uo;function ho(Oo,No,Mo,Bo){this.type=Oo,this.content=No,this.alias=Mo,this.length=(Bo||"").length|0}ho.stringify=function Oo(No,Mo){if(typeof No=="string")return No;if(Array.isArray(No)){var Bo="";return No.forEach(function(Uo){Bo+=Oo(Uo,Mo)}),Bo}var Po={type:No.type,content:Oo(No.content,Mo),tag:"span",classes:["token",No.type],attributes:{},language:Mo},Lo=No.alias;Lo&&(Array.isArray(Lo)?Array.prototype.push.apply(Po.classes,Lo):Po.classes.push(Lo)),uo.hooks.run("wrap",Po);var Go="";for(var Do in Po.attributes)Go+=" "+Do+'="'+(Po.attributes[Do]||"").replace(/"/g,""")+'"';return"<"+Po.tag+' class="'+Po.classes.join(" ")+'"'+Go+">"+Po.content+""};function go(Oo,No,Mo,Bo){Oo.lastIndex=No;var Po=Oo.exec(Mo);if(Po&&Bo&&Po[1]){var Lo=Po[1].length;Po.index+=Lo,Po[0]=Po[0].slice(Lo)}return Po}function mo(Oo,No,Mo,Bo,Po,Lo){for(var Go in Mo)if(!(!Mo.hasOwnProperty(Go)||!Mo[Go])){var Do=Mo[Go];Do=Array.isArray(Do)?Do:[Do];for(var Uo=0;Uo=Lo.reach);ys+=gs.value.length,gs=gs.next){var vs=gs.value;if(No.length>Oo.length)return;if(!(vs instanceof ho)){var ks=1,Os;if(Jo){if(Os=go(hs,ys,Oo,qo),!Os||Os.index>=Oo.length)break;var Ps=Os.index,Ts=Os.index+Os[0].length,Xs=ys;for(Xs+=gs.value.length;Ps>=Xs;)gs=gs.next,Xs+=gs.value.length;if(Xs-=gs.value.length,ys=Xs,gs.value instanceof ho)continue;for(var Ws=gs;Ws!==No.tail&&(XsLo.reach&&(Lo.reach=Js);var Vs=gs.prev;ga&&(Vs=So(No,Vs,ga),ys+=ga.length),_o(No,Vs,ks);var El=new ho(Go,Yo?uo.tokenize(qs,Yo):qs,ps,qs);if(gs=So(No,Vs,El),Fs&&So(No,gs,Fs),ks>1){var yl={cause:Go+","+Uo,reach:Js};mo(Oo,No,Mo,gs.prev,ys,yl),Lo&&yl.reach>Lo.reach&&(Lo.reach=yl.reach)}}}}}}function yo(){var Oo={value:null,prev:null,next:null},No={value:null,prev:Oo,next:null};Oo.next=No,this.head=Oo,this.tail=No,this.length=0}function So(Oo,No,Mo){var Bo=No.next,Po={value:Mo,prev:No,next:Bo};return No.next=Po,Bo.prev=Po,Oo.length++,Po}function _o(Oo,No,Mo){for(var Bo=No.next,Po=0;Po/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},no.languages.markup.tag.inside["attr-value"].inside.entity=no.languages.markup.entity,no.languages.markup.doctype.inside["internal-subset"].inside=no.languages.markup,no.hooks.add("wrap",function(io){io.type==="entity"&&(io.attributes.title=io.content.replace(/&/,"&"))}),Object.defineProperty(no.languages.markup.tag,"addInlined",{value:function(so,ao){var lo={};lo["language-"+ao]={pattern:/(^$)/i,lookbehind:!0,inside:no.languages[ao]},lo.cdata=/^$/i;var uo={"included-cdata":{pattern://i,inside:lo}};uo["language-"+ao]={pattern:/[\s\S]+/,inside:no.languages[ao]};var ho={};ho[so]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return so}),"i"),lookbehind:!0,greedy:!0,inside:uo},no.languages.insertBefore("markup","cdata",ho)}}),Object.defineProperty(no.languages.markup.tag,"addAttribute",{value:function(io,so){no.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+io+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[so,"language-"+so],inside:no.languages[so]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),no.languages.html=no.languages.markup,no.languages.mathml=no.languages.markup,no.languages.svg=no.languages.markup,no.languages.xml=no.languages.extend("markup",{}),no.languages.ssml=no.languages.xml,no.languages.atom=no.languages.xml,no.languages.rss=no.languages.xml,function(io){var so=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;io.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+so.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+so.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+so.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+so.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:so,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},io.languages.css.atrule.inside.rest=io.languages.css;var ao=io.languages.markup;ao&&(ao.tag.addInlined("style","css"),ao.tag.addAttribute("style","css"))}(no),no.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},no.languages.javascript=no.languages.extend("clike",{"class-name":[no.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),no.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,no.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:no.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:no.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:no.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:no.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:no.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),no.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:no.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),no.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),no.languages.markup&&(no.languages.markup.tag.addInlined("script","javascript"),no.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),no.languages.js=no.languages.javascript,function(){if(typeof no>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var io="Loading…",so=function(Co,$o){return"✖ Error "+Co+" while fetching file: "+$o},ao="✖ Error: File does not exist or is empty",lo={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},uo="data-src-status",ho="loading",go="loaded",mo="failed",yo="pre[data-src]:not(["+uo+'="'+go+'"]):not(['+uo+'="'+ho+'"])';function So(Co,$o,Ro){var Oo=new XMLHttpRequest;Oo.open("GET",Co,!0),Oo.onreadystatechange=function(){Oo.readyState==4&&(Oo.status<400&&Oo.responseText?$o(Oo.responseText):Oo.status>=400?Ro(so(Oo.status,Oo.statusText)):Ro(ao))},Oo.send(null)}function _o(Co){var $o=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(Co||"");if($o){var Ro=Number($o[1]),Oo=$o[2],No=$o[3];return Oo?No?[Ro,Number(No)]:[Ro,void 0]:[Ro,Ro]}}no.hooks.add("before-highlightall",function(Co){Co.selector+=", "+yo}),no.hooks.add("before-sanity-check",function(Co){var $o=Co.element;if($o.matches(yo)){Co.code="",$o.setAttribute(uo,ho);var Ro=$o.appendChild(document.createElement("CODE"));Ro.textContent=io;var Oo=$o.getAttribute("data-src"),No=Co.language;if(No==="none"){var Mo=(/\.(\w+)$/.exec(Oo)||[,"none"])[1];No=lo[Mo]||Mo}no.util.setLanguage(Ro,No),no.util.setLanguage($o,No);var Bo=no.plugins.autoloader;Bo&&Bo.loadLanguages(No),So(Oo,function(Po){$o.setAttribute(uo,go);var Lo=_o($o.getAttribute("data-range"));if(Lo){var Go=Po.split(/\r\n?|\n/g),Do=Lo[0],Uo=Lo[1]==null?Go.length:Lo[1];Do<0&&(Do+=Go.length),Do=Math.max(0,Math.min(Do-1,Go.length)),Uo<0&&(Uo+=Go.length),Uo=Math.max(0,Math.min(Uo,Go.length)),Po=Go.slice(Do,Uo).join(` -`),$o.hasAttribute("data-start")||$o.setAttribute("data-start",String(Do+1))}Ro.textContent=Po,no.highlightElement(Ro)},function(Po){$o.setAttribute(uo,mo),Ro.textContent=Po})}}),no.plugins.fileHighlight={highlight:function($o){for(var Ro=($o||document).querySelectorAll(yo),Oo=0,No;No=Ro[Oo++];)no.highlightElement(No)}};var ko=!1;no.fileHighlight=function(){ko||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),ko=!0),no.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(prism);var prismExports=prism.exports;const Prism=getDefaultExportFromCjs(prismExports);function sheetForTag(eo){if(eo.sheet)return eo.sheet;for(var to=0;to0?charat$1(characters$1,--position$4):0,column$1--,character$1===10&&(column$1=1,line$2--),character$1}function next$2(){return character$1=position$42||token$1(character$1)>3?"":" "}function escaping$1(eo,to){for(;--to&&next$2()&&!(character$1<48||character$1>102||character$1>57&&character$1<65||character$1>70&&character$1<97););return slice$2(eo,caret$1()+(to<6&&peek$1()==32&&next$2()==32))}function delimiter$2(eo){for(;next$2();)switch(character$1){case eo:return position$4;case 34:case 39:eo!==34&&eo!==39&&delimiter$2(character$1);break;case 40:eo===41&&delimiter$2(eo);break;case 92:next$2();break}return position$4}function commenter$1(eo,to){for(;next$2()&&eo+character$1!==57;)if(eo+character$1===84&&peek$1()===47)break;return"/*"+slice$2(to,position$4-1)+"*"+from$1(eo===47?eo:next$2())}function identifier$1(eo){for(;!token$1(peek$1());)next$2();return slice$2(eo,position$4)}function compile$1(eo){return dealloc$1(parse$6("",null,null,null,[""],eo=alloc$1(eo),0,[0],eo))}function parse$6(eo,to,no,io,so,ao,lo,uo,ho){for(var go=0,mo=0,yo=lo,So=0,_o=0,ko=0,Co=1,$o=1,Ro=1,Oo=0,No="",Mo=so,Bo=ao,Po=io,Lo=No;$o;)switch(ko=Oo,Oo=next$2()){case 40:if(ko!=108&&charat$1(Lo,yo-1)==58){indexof$1(Lo+=replace$1(delimit$1(Oo),"&","&\f"),"&\f")!=-1&&(Ro=-1);break}case 34:case 39:case 91:Lo+=delimit$1(Oo);break;case 9:case 10:case 13:case 32:Lo+=whitespace$1(ko);break;case 92:Lo+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$2(comment$2(commenter$1(next$2(),caret$1()),to,no),ho);break;default:Lo+="/"}break;case 123*Co:uo[go++]=strlen$1(Lo)*Ro;case 125*Co:case 59:case 0:switch(Oo){case 0:case 125:$o=0;case 59+mo:Ro==-1&&(Lo=replace$1(Lo,/\f/g,"")),_o>0&&strlen$1(Lo)-yo&&append$2(_o>32?declaration$1(Lo+";",io,no,yo-1):declaration$1(replace$1(Lo," ","")+";",io,no,yo-2),ho);break;case 59:Lo+=";";default:if(append$2(Po=ruleset$1(Lo,to,no,go,mo,so,uo,No,Mo=[],Bo=[],yo),ao),Oo===123)if(mo===0)parse$6(Lo,to,Po,Po,Mo,ao,yo,uo,Bo);else switch(So===99&&charat$1(Lo,3)===110?100:So){case 100:case 108:case 109:case 115:parse$6(eo,Po,Po,io&&append$2(ruleset$1(eo,Po,Po,0,0,so,uo,No,so,Mo=[],yo),Bo),so,Bo,yo,uo,io?Mo:Bo);break;default:parse$6(Lo,Po,Po,Po,[""],Bo,0,uo,Bo)}}go=mo=_o=0,Co=Ro=1,No=Lo="",yo=lo;break;case 58:yo=1+strlen$1(Lo),_o=ko;default:if(Co<1){if(Oo==123)--Co;else if(Oo==125&&Co++==0&&prev$1()==125)continue}switch(Lo+=from$1(Oo),Oo*Co){case 38:Ro=mo>0?1:(Lo+="\f",-1);break;case 44:uo[go++]=(strlen$1(Lo)-1)*Ro,Ro=1;break;case 64:peek$1()===45&&(Lo+=delimit$1(next$2())),So=peek$1(),mo=yo=strlen$1(No=Lo+=identifier$1(caret$1())),Oo++;break;case 45:ko===45&&strlen$1(Lo)==2&&(Co=0)}}return ao}function ruleset$1(eo,to,no,io,so,ao,lo,uo,ho,go,mo){for(var yo=so-1,So=so===0?ao:[""],_o=sizeof$1(So),ko=0,Co=0,$o=0;ko0?So[Ro]+" "+Oo:replace$1(Oo,/&\f/g,So[Ro])))&&(ho[$o++]=No);return node$2(eo,to,no,so===0?RULESET$1:uo,ho,go,mo)}function comment$2(eo,to,no){return node$2(eo,to,no,COMMENT$1,from$1(char$1()),substr$1(eo,2,-2),0)}function declaration$1(eo,to,no,io){return node$2(eo,to,no,DECLARATION$1,substr$1(eo,0,io),substr$1(eo,io+1,-1),io)}function serialize$1(eo,to){for(var no="",io=sizeof$1(eo),so=0;so6)switch(charat$1(eo,to+1)){case 109:if(charat$1(eo,to+4)!==45)break;case 102:return replace$1(eo,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat$1(eo,to+3)==108?"$3":"$2-$3"))+eo;case 115:return~indexof$1(eo,"stretch")?prefix(replace$1(eo,"stretch","fill-available"),to)+eo:eo}break;case 4949:if(charat$1(eo,to+1)!==115)break;case 6444:switch(charat$1(eo,strlen$1(eo)-3-(~indexof$1(eo,"!important")&&10))){case 107:return replace$1(eo,":",":"+WEBKIT)+eo;case 101:return replace$1(eo,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat$1(eo,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+eo}break;case 5936:switch(charat$1(eo,to+11)){case 114:return WEBKIT+eo+MS+replace$1(eo,/[svh]\w+-[tblr]{2}/,"tb")+eo;case 108:return WEBKIT+eo+MS+replace$1(eo,/[svh]\w+-[tblr]{2}/,"tb-rl")+eo;case 45:return WEBKIT+eo+MS+replace$1(eo,/[svh]\w+-[tblr]{2}/,"lr")+eo}return WEBKIT+eo+MS+eo+eo}return eo}var prefixer=function eo(to,no,io,so){if(to.length>-1&&!to.return)switch(to.type){case DECLARATION$1:to.return=prefix(to.value,to.length);break;case KEYFRAMES$1:return serialize$1([copy$3(to,{value:replace$1(to.value,"@","@"+WEBKIT)})],so);case RULESET$1:if(to.length)return combine(to.props,function(ao){switch(match$1(ao,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$1([copy$3(to,{props:[replace$1(ao,/:(read-\w+)/,":"+MOZ+"$1")]})],so);case"::placeholder":return serialize$1([copy$3(to,{props:[replace$1(ao,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy$3(to,{props:[replace$1(ao,/:(plac\w+)/,":"+MOZ+"$1")]}),copy$3(to,{props:[replace$1(ao,/:(plac\w+)/,MS+"input-$1")]})],so)}return""})}},defaultStylisPlugins=[prefixer],createCache=function eo(to){var no=to.key;if(no==="css"){var io=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(io,function(Co){var $o=Co.getAttribute("data-emotion");$o.indexOf(" ")!==-1&&(document.head.appendChild(Co),Co.setAttribute("data-s",""))})}var so=to.stylisPlugins||defaultStylisPlugins,ao={},lo,uo=[];lo=to.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+no+' "]'),function(Co){for(var $o=Co.getAttribute("data-emotion").split(" "),Ro=1;Ro<$o.length;Ro++)ao[$o[Ro]]=!0;uo.push(Co)});var ho,go=[compat,removeLabel];{var mo,yo=[stringify$1,rulesheet(function(Co){mo.insert(Co)})],So=middleware(go.concat(so,yo)),_o=function($o){return serialize$1(compile$1($o),So)};ho=function($o,Ro,Oo,No){mo=Oo,_o($o?$o+"{"+Ro.styles+"}":Ro.styles),No&&(ko.inserted[Ro.name]=!0)}}var ko={key:no,sheet:new StyleSheet({key:no,container:lo,nonce:to.nonce,speedy:to.speedy,prepend:to.prepend,insertionPoint:to.insertionPoint}),nonce:to.nonce,inserted:ao,registered:{},insert:ho};return ko.sheet.hydrate(uo),ko},unitlessKeys={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},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function eo(to){return to.charCodeAt(1)===45},isProcessableValue=function eo(to){return to!=null&&typeof to!="boolean"},processStyleName=memoize$3(function(eo){return isCustomProperty(eo)?eo:eo.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function eo(to,no){switch(to){case"animation":case"animationName":if(typeof no=="string")return no.replace(animationRegex,function(io,so,ao){return cursor$1={name:so,styles:ao,next:cursor$1},so})}return unitlessKeys[to]!==1&&!isCustomProperty(to)&&typeof no=="number"&&no!==0?no+"px":no},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(eo,to,no){if(no==null)return"";if(no.__emotion_styles!==void 0)return no;switch(typeof no){case"boolean":return"";case"object":{if(no.anim===1)return cursor$1={name:no.name,styles:no.styles,next:cursor$1},no.name;if(no.styles!==void 0){var io=no.next;if(io!==void 0)for(;io!==void 0;)cursor$1={name:io.name,styles:io.styles,next:cursor$1},io=io.next;var so=no.styles+";";return so}return createStringFromObject(eo,to,no)}case"function":{if(eo!==void 0){var ao=cursor$1,lo=no(eo);return cursor$1=ao,handleInterpolation(eo,to,lo)}break}}if(to==null)return no;var uo=to[no];return uo!==void 0?uo:no}function createStringFromObject(eo,to,no){var io="";if(Array.isArray(no))for(var so=0;soNumber.isNaN(Number(eo))).map(([eo,to])=>[eo,`var(${to})`]));Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>/=$<%]+(?:\s(?:\s*[^\s>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>/]+/,inside:{namespace:/^[^\s>/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(eo){eo.type==="entity"&&eo.attributes&&(eo.attributes.title=eo.content.replace(/&/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function eo(to,no){const io={};io["language-"+no]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[no]},io.cdata=/^$/i;const so={"included-cdata":{pattern://i,inside:io}};so["language-"+no]={pattern:/[\s\S]+/,inside:Prism.languages[no]};const ao={};ao[to]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return to}),"i"),lookbehind:!0,greedy:!0,inside:so},Prism.languages.insertBefore("markup","cdata",ao)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(eo,to){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+eo+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[to,"language-"+to],inside:Prism.languages[to]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;const envVars="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",commandAfterHeredoc={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:void 0},insideString={bash:commandAfterHeredoc,environment:{pattern:RegExp("\\$"+envVars),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!/]|##?|%%?|\^\^?|,,?/,punctuation:/[[\]]/,environment:{pattern:RegExp("(\\{)"+envVars),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Prism.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+envVars),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};commandAfterHeredoc.inside=Prism.languages.bash;const toBeCopied=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside$1=insideString.variable[1].inside;for(let eo=0;eo>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;const string$1$1=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+string$1$1.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+string$1$1.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string$1$1.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+string$1$1.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string$1$1,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/};Prism.languages.css.atrule.inside.rest=Prism.languages.css;const markup=Prism.languages.markup;markup&&(markup.tag.addInlined("style","css"),markup.tag.addAttribute("style","css"));const keyword$1=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,modName=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return keyword$1.source});Prism.languages.cpp=Prism.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return keyword$1.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:keyword$1,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/});Prism.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return modName})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}});Prism.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Prism.languages.cpp}}}});Prism.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});Prism.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Prism.languages.extend("cpp",{})}});Prism.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Prism.languages.cpp["base-clause"]);const ID="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",IDInside={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:Prism.languages.markup}};function withID(eo,to){return RegExp(eo.replace(//g,function(){return ID}),to)}Prism.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:withID(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:IDInside},"attr-value":{pattern:withID(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:IDInside},"attr-name":{pattern:withID(/([[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:IDInside},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:withID(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:IDInside},operator:/[=:]|-[->]/,punctuation:/[[\]{};,]/};Prism.languages.gv=Prism.languages.dot;Prism.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};const PREFIXES={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(PREFIXES).forEach(function(eo){const to=PREFIXES[eo],no=[];/^\w+$/.test(eo)||no.push(/\w+/.exec(eo)[0]),eo==="diff"&&no.push("bold"),Prism.languages.diff[eo]={pattern:RegExp("^(?:["+to+`].*(?:\r + */var no=function(io){var so=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,ao=0,lo={},uo={manual:io.Prism&&io.Prism.manual,disableWorkerMessageHandler:io.Prism&&io.Prism.disableWorkerMessageHandler,util:{encode:function Oo(No){return No instanceof ho?new ho(No.type,Oo(No.content),No.alias):Array.isArray(No)?No.map(Oo):No.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(Bo){var Oo=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(Bo.stack)||[])[1];if(Oo){var No=document.getElementsByTagName("script");for(var Mo in No)if(No[Mo].src==Oo)return No[Mo]}return null}},isActive:function(Oo,No,Mo){for(var Bo="no-"+No;Oo;){var Fo=Oo.classList;if(Fo.contains(No))return!0;if(Fo.contains(Bo))return!1;Oo=Oo.parentElement}return!!Mo}},languages:{plain:lo,plaintext:lo,text:lo,txt:lo,extend:function(Oo,No){var Mo=uo.util.clone(uo.languages[Oo]);for(var Bo in No)Mo[Bo]=No[Bo];return Mo},insertBefore:function(Oo,No,Mo,Bo){Bo=Bo||uo.languages;var Fo=Bo[Oo],Lo={};for(var Go in Fo)if(Fo.hasOwnProperty(Go)){if(Go==No)for(var Do in Mo)Mo.hasOwnProperty(Do)&&(Lo[Do]=Mo[Do]);Mo.hasOwnProperty(Go)||(Lo[Go]=Fo[Go])}var Uo=Bo[Oo];return Bo[Oo]=Lo,uo.languages.DFS(uo.languages,function(Ho,Yo){Yo===Uo&&Ho!=Oo&&(this[Ho]=Lo)}),Lo},DFS:function Oo(No,Mo,Bo,Fo){Fo=Fo||{};var Lo=uo.util.objId;for(var Go in No)if(No.hasOwnProperty(Go)){Mo.call(No,Go,No[Go],Bo||Go);var Do=No[Go],Uo=uo.util.type(Do);Uo==="Object"&&!Fo[Lo(Do)]?(Fo[Lo(Do)]=!0,Oo(Do,Mo,null,Fo)):Uo==="Array"&&!Fo[Lo(Do)]&&(Fo[Lo(Do)]=!0,Oo(Do,Mo,Go,Fo))}}},plugins:{},highlightAll:function(Oo,No){uo.highlightAllUnder(document,Oo,No)},highlightAllUnder:function(Oo,No,Mo){var Bo={callback:Mo,container:Oo,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};uo.hooks.run("before-highlightall",Bo),Bo.elements=Array.prototype.slice.apply(Bo.container.querySelectorAll(Bo.selector)),uo.hooks.run("before-all-elements-highlight",Bo);for(var Fo=0,Lo;Lo=Bo.elements[Fo++];)uo.highlightElement(Lo,No===!0,Bo.callback)},highlightElement:function(Oo,No,Mo){var Bo=uo.util.getLanguage(Oo),Fo=uo.languages[Bo];uo.util.setLanguage(Oo,Bo);var Lo=Oo.parentElement;Lo&&Lo.nodeName.toLowerCase()==="pre"&&uo.util.setLanguage(Lo,Bo);var Go=Oo.textContent,Do={element:Oo,language:Bo,grammar:Fo,code:Go};function Uo(Yo){Do.highlightedCode=Yo,uo.hooks.run("before-insert",Do),Do.element.innerHTML=Do.highlightedCode,uo.hooks.run("after-highlight",Do),uo.hooks.run("complete",Do),Mo&&Mo.call(Do.element)}if(uo.hooks.run("before-sanity-check",Do),Lo=Do.element.parentElement,Lo&&Lo.nodeName.toLowerCase()==="pre"&&!Lo.hasAttribute("tabindex")&&Lo.setAttribute("tabindex","0"),!Do.code){uo.hooks.run("complete",Do),Mo&&Mo.call(Do.element);return}if(uo.hooks.run("before-highlight",Do),!Do.grammar){Uo(uo.util.encode(Do.code));return}if(No&&io.Worker){var Ho=new Worker(uo.filename);Ho.onmessage=function(Yo){Uo(Yo.data)},Ho.postMessage(JSON.stringify({language:Do.language,code:Do.code,immediateClose:!0}))}else Uo(uo.highlight(Do.code,Do.grammar,Do.language))},highlight:function(Oo,No,Mo){var Bo={code:Oo,grammar:No,language:Mo};if(uo.hooks.run("before-tokenize",Bo),!Bo.grammar)throw new Error('The language "'+Bo.language+'" has no grammar.');return Bo.tokens=uo.tokenize(Bo.code,Bo.grammar),uo.hooks.run("after-tokenize",Bo),ho.stringify(uo.util.encode(Bo.tokens),Bo.language)},tokenize:function(Oo,No){var Mo=No.rest;if(Mo){for(var Bo in Mo)No[Bo]=Mo[Bo];delete No.rest}var Fo=new yo;return So(Fo,Fo.head,Oo),mo(Oo,Fo,No,Fo.head,0),ko(Fo)},hooks:{all:{},add:function(Oo,No){var Mo=uo.hooks.all;Mo[Oo]=Mo[Oo]||[],Mo[Oo].push(No)},run:function(Oo,No){var Mo=uo.hooks.all[Oo];if(!(!Mo||!Mo.length))for(var Bo=0,Fo;Fo=Mo[Bo++];)Fo(No)}},Token:ho};io.Prism=uo;function ho(Oo,No,Mo,Bo){this.type=Oo,this.content=No,this.alias=Mo,this.length=(Bo||"").length|0}ho.stringify=function Oo(No,Mo){if(typeof No=="string")return No;if(Array.isArray(No)){var Bo="";return No.forEach(function(Uo){Bo+=Oo(Uo,Mo)}),Bo}var Fo={type:No.type,content:Oo(No.content,Mo),tag:"span",classes:["token",No.type],attributes:{},language:Mo},Lo=No.alias;Lo&&(Array.isArray(Lo)?Array.prototype.push.apply(Fo.classes,Lo):Fo.classes.push(Lo)),uo.hooks.run("wrap",Fo);var Go="";for(var Do in Fo.attributes)Go+=" "+Do+'="'+(Fo.attributes[Do]||"").replace(/"/g,""")+'"';return"<"+Fo.tag+' class="'+Fo.classes.join(" ")+'"'+Go+">"+Fo.content+""};function go(Oo,No,Mo,Bo){Oo.lastIndex=No;var Fo=Oo.exec(Mo);if(Fo&&Bo&&Fo[1]){var Lo=Fo[1].length;Fo.index+=Lo,Fo[0]=Fo[0].slice(Lo)}return Fo}function mo(Oo,No,Mo,Bo,Fo,Lo){for(var Go in Mo)if(!(!Mo.hasOwnProperty(Go)||!Mo[Go])){var Do=Mo[Go];Do=Array.isArray(Do)?Do:[Do];for(var Uo=0;Uo=Lo.reach);ys+=gs.value.length,gs=gs.next){var vs=gs.value;if(No.length>Oo.length)return;if(!(vs instanceof ho)){var ks=1,Os;if(Jo){if(Os=go(hs,ys,Oo,qo),!Os||Os.index>=Oo.length)break;var Ps=Os.index,Ts=Os.index+Os[0].length,Xs=ys;for(Xs+=gs.value.length;Ps>=Xs;)gs=gs.next,Xs+=gs.value.length;if(Xs-=gs.value.length,ys=Xs,gs.value instanceof ho)continue;for(var Ws=gs;Ws!==No.tail&&(XsLo.reach&&(Lo.reach=Js);var Vs=gs.prev;ga&&(Vs=So(No,Vs,ga),ys+=ga.length),_o(No,Vs,ks);var El=new ho(Go,Yo?uo.tokenize(qs,Yo):qs,ps,qs);if(gs=So(No,Vs,El),Fs&&So(No,gs,Fs),ks>1){var yl={cause:Go+","+Uo,reach:Js};mo(Oo,No,Mo,gs.prev,ys,yl),Lo&&yl.reach>Lo.reach&&(Lo.reach=yl.reach)}}}}}}function yo(){var Oo={value:null,prev:null,next:null},No={value:null,prev:Oo,next:null};Oo.next=No,this.head=Oo,this.tail=No,this.length=0}function So(Oo,No,Mo){var Bo=No.next,Fo={value:Mo,prev:No,next:Bo};return No.next=Fo,Bo.prev=Fo,Oo.length++,Fo}function _o(Oo,No,Mo){for(var Bo=No.next,Fo=0;Fo/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},no.languages.markup.tag.inside["attr-value"].inside.entity=no.languages.markup.entity,no.languages.markup.doctype.inside["internal-subset"].inside=no.languages.markup,no.hooks.add("wrap",function(io){io.type==="entity"&&(io.attributes.title=io.content.replace(/&/,"&"))}),Object.defineProperty(no.languages.markup.tag,"addInlined",{value:function(so,ao){var lo={};lo["language-"+ao]={pattern:/(^$)/i,lookbehind:!0,inside:no.languages[ao]},lo.cdata=/^$/i;var uo={"included-cdata":{pattern://i,inside:lo}};uo["language-"+ao]={pattern:/[\s\S]+/,inside:no.languages[ao]};var ho={};ho[so]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return so}),"i"),lookbehind:!0,greedy:!0,inside:uo},no.languages.insertBefore("markup","cdata",ho)}}),Object.defineProperty(no.languages.markup.tag,"addAttribute",{value:function(io,so){no.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+io+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[so,"language-"+so],inside:no.languages[so]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),no.languages.html=no.languages.markup,no.languages.mathml=no.languages.markup,no.languages.svg=no.languages.markup,no.languages.xml=no.languages.extend("markup",{}),no.languages.ssml=no.languages.xml,no.languages.atom=no.languages.xml,no.languages.rss=no.languages.xml,function(io){var so=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;io.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+so.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+so.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+so.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+so.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:so,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},io.languages.css.atrule.inside.rest=io.languages.css;var ao=io.languages.markup;ao&&(ao.tag.addInlined("style","css"),ao.tag.addAttribute("style","css"))}(no),no.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},no.languages.javascript=no.languages.extend("clike",{"class-name":[no.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),no.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,no.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:no.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:no.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:no.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:no.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:no.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),no.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:no.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),no.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),no.languages.markup&&(no.languages.markup.tag.addInlined("script","javascript"),no.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),no.languages.js=no.languages.javascript,function(){if(typeof no>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var io="Loading…",so=function(Co,$o){return"✖ Error "+Co+" while fetching file: "+$o},ao="✖ Error: File does not exist or is empty",lo={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},uo="data-src-status",ho="loading",go="loaded",mo="failed",yo="pre[data-src]:not(["+uo+'="'+go+'"]):not(['+uo+'="'+ho+'"])';function So(Co,$o,Ro){var Oo=new XMLHttpRequest;Oo.open("GET",Co,!0),Oo.onreadystatechange=function(){Oo.readyState==4&&(Oo.status<400&&Oo.responseText?$o(Oo.responseText):Oo.status>=400?Ro(so(Oo.status,Oo.statusText)):Ro(ao))},Oo.send(null)}function _o(Co){var $o=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(Co||"");if($o){var Ro=Number($o[1]),Oo=$o[2],No=$o[3];return Oo?No?[Ro,Number(No)]:[Ro,void 0]:[Ro,Ro]}}no.hooks.add("before-highlightall",function(Co){Co.selector+=", "+yo}),no.hooks.add("before-sanity-check",function(Co){var $o=Co.element;if($o.matches(yo)){Co.code="",$o.setAttribute(uo,ho);var Ro=$o.appendChild(document.createElement("CODE"));Ro.textContent=io;var Oo=$o.getAttribute("data-src"),No=Co.language;if(No==="none"){var Mo=(/\.(\w+)$/.exec(Oo)||[,"none"])[1];No=lo[Mo]||Mo}no.util.setLanguage(Ro,No),no.util.setLanguage($o,No);var Bo=no.plugins.autoloader;Bo&&Bo.loadLanguages(No),So(Oo,function(Fo){$o.setAttribute(uo,go);var Lo=_o($o.getAttribute("data-range"));if(Lo){var Go=Fo.split(/\r\n?|\n/g),Do=Lo[0],Uo=Lo[1]==null?Go.length:Lo[1];Do<0&&(Do+=Go.length),Do=Math.max(0,Math.min(Do-1,Go.length)),Uo<0&&(Uo+=Go.length),Uo=Math.max(0,Math.min(Uo,Go.length)),Fo=Go.slice(Do,Uo).join(` +`),$o.hasAttribute("data-start")||$o.setAttribute("data-start",String(Do+1))}Ro.textContent=Fo,no.highlightElement(Ro)},function(Fo){$o.setAttribute(uo,mo),Ro.textContent=Fo})}}),no.plugins.fileHighlight={highlight:function($o){for(var Ro=($o||document).querySelectorAll(yo),Oo=0,No;No=Ro[Oo++];)no.highlightElement(No)}};var ko=!1;no.fileHighlight=function(){ko||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),ko=!0),no.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(prism);var prismExports=prism.exports;const Prism=getDefaultExportFromCjs(prismExports);function sheetForTag(eo){if(eo.sheet)return eo.sheet;for(var to=0;to0?charat$1(characters$1,--position$4):0,column$1--,character$1===10&&(column$1=1,line$2--),character$1}function next$2(){return character$1=position$42||token$1(character$1)>3?"":" "}function escaping$1(eo,to){for(;--to&&next$2()&&!(character$1<48||character$1>102||character$1>57&&character$1<65||character$1>70&&character$1<97););return slice$2(eo,caret$1()+(to<6&&peek$1()==32&&next$2()==32))}function delimiter$2(eo){for(;next$2();)switch(character$1){case eo:return position$4;case 34:case 39:eo!==34&&eo!==39&&delimiter$2(character$1);break;case 40:eo===41&&delimiter$2(eo);break;case 92:next$2();break}return position$4}function commenter$1(eo,to){for(;next$2()&&eo+character$1!==57;)if(eo+character$1===84&&peek$1()===47)break;return"/*"+slice$2(to,position$4-1)+"*"+from$1(eo===47?eo:next$2())}function identifier$1(eo){for(;!token$1(peek$1());)next$2();return slice$2(eo,position$4)}function compile$1(eo){return dealloc$1(parse$6("",null,null,null,[""],eo=alloc$1(eo),0,[0],eo))}function parse$6(eo,to,no,io,so,ao,lo,uo,ho){for(var go=0,mo=0,yo=lo,So=0,_o=0,ko=0,Co=1,$o=1,Ro=1,Oo=0,No="",Mo=so,Bo=ao,Fo=io,Lo=No;$o;)switch(ko=Oo,Oo=next$2()){case 40:if(ko!=108&&charat$1(Lo,yo-1)==58){indexof$1(Lo+=replace$1(delimit$1(Oo),"&","&\f"),"&\f")!=-1&&(Ro=-1);break}case 34:case 39:case 91:Lo+=delimit$1(Oo);break;case 9:case 10:case 13:case 32:Lo+=whitespace$1(ko);break;case 92:Lo+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$2(comment$2(commenter$1(next$2(),caret$1()),to,no),ho);break;default:Lo+="/"}break;case 123*Co:uo[go++]=strlen$1(Lo)*Ro;case 125*Co:case 59:case 0:switch(Oo){case 0:case 125:$o=0;case 59+mo:Ro==-1&&(Lo=replace$1(Lo,/\f/g,"")),_o>0&&strlen$1(Lo)-yo&&append$2(_o>32?declaration$1(Lo+";",io,no,yo-1):declaration$1(replace$1(Lo," ","")+";",io,no,yo-2),ho);break;case 59:Lo+=";";default:if(append$2(Fo=ruleset$1(Lo,to,no,go,mo,so,uo,No,Mo=[],Bo=[],yo),ao),Oo===123)if(mo===0)parse$6(Lo,to,Fo,Fo,Mo,ao,yo,uo,Bo);else switch(So===99&&charat$1(Lo,3)===110?100:So){case 100:case 108:case 109:case 115:parse$6(eo,Fo,Fo,io&&append$2(ruleset$1(eo,Fo,Fo,0,0,so,uo,No,so,Mo=[],yo),Bo),so,Bo,yo,uo,io?Mo:Bo);break;default:parse$6(Lo,Fo,Fo,Fo,[""],Bo,0,uo,Bo)}}go=mo=_o=0,Co=Ro=1,No=Lo="",yo=lo;break;case 58:yo=1+strlen$1(Lo),_o=ko;default:if(Co<1){if(Oo==123)--Co;else if(Oo==125&&Co++==0&&prev$1()==125)continue}switch(Lo+=from$1(Oo),Oo*Co){case 38:Ro=mo>0?1:(Lo+="\f",-1);break;case 44:uo[go++]=(strlen$1(Lo)-1)*Ro,Ro=1;break;case 64:peek$1()===45&&(Lo+=delimit$1(next$2())),So=peek$1(),mo=yo=strlen$1(No=Lo+=identifier$1(caret$1())),Oo++;break;case 45:ko===45&&strlen$1(Lo)==2&&(Co=0)}}return ao}function ruleset$1(eo,to,no,io,so,ao,lo,uo,ho,go,mo){for(var yo=so-1,So=so===0?ao:[""],_o=sizeof$1(So),ko=0,Co=0,$o=0;ko0?So[Ro]+" "+Oo:replace$1(Oo,/&\f/g,So[Ro])))&&(ho[$o++]=No);return node$2(eo,to,no,so===0?RULESET$1:uo,ho,go,mo)}function comment$2(eo,to,no){return node$2(eo,to,no,COMMENT$1,from$1(char$1()),substr$1(eo,2,-2),0)}function declaration$1(eo,to,no,io){return node$2(eo,to,no,DECLARATION$1,substr$1(eo,0,io),substr$1(eo,io+1,-1),io)}function serialize$1(eo,to){for(var no="",io=sizeof$1(eo),so=0;so6)switch(charat$1(eo,to+1)){case 109:if(charat$1(eo,to+4)!==45)break;case 102:return replace$1(eo,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat$1(eo,to+3)==108?"$3":"$2-$3"))+eo;case 115:return~indexof$1(eo,"stretch")?prefix(replace$1(eo,"stretch","fill-available"),to)+eo:eo}break;case 4949:if(charat$1(eo,to+1)!==115)break;case 6444:switch(charat$1(eo,strlen$1(eo)-3-(~indexof$1(eo,"!important")&&10))){case 107:return replace$1(eo,":",":"+WEBKIT)+eo;case 101:return replace$1(eo,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat$1(eo,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+eo}break;case 5936:switch(charat$1(eo,to+11)){case 114:return WEBKIT+eo+MS+replace$1(eo,/[svh]\w+-[tblr]{2}/,"tb")+eo;case 108:return WEBKIT+eo+MS+replace$1(eo,/[svh]\w+-[tblr]{2}/,"tb-rl")+eo;case 45:return WEBKIT+eo+MS+replace$1(eo,/[svh]\w+-[tblr]{2}/,"lr")+eo}return WEBKIT+eo+MS+eo+eo}return eo}var prefixer=function eo(to,no,io,so){if(to.length>-1&&!to.return)switch(to.type){case DECLARATION$1:to.return=prefix(to.value,to.length);break;case KEYFRAMES$1:return serialize$1([copy$3(to,{value:replace$1(to.value,"@","@"+WEBKIT)})],so);case RULESET$1:if(to.length)return combine(to.props,function(ao){switch(match$1(ao,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$1([copy$3(to,{props:[replace$1(ao,/:(read-\w+)/,":"+MOZ+"$1")]})],so);case"::placeholder":return serialize$1([copy$3(to,{props:[replace$1(ao,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy$3(to,{props:[replace$1(ao,/:(plac\w+)/,":"+MOZ+"$1")]}),copy$3(to,{props:[replace$1(ao,/:(plac\w+)/,MS+"input-$1")]})],so)}return""})}},defaultStylisPlugins=[prefixer],createCache=function eo(to){var no=to.key;if(no==="css"){var io=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(io,function(Co){var $o=Co.getAttribute("data-emotion");$o.indexOf(" ")!==-1&&(document.head.appendChild(Co),Co.setAttribute("data-s",""))})}var so=to.stylisPlugins||defaultStylisPlugins,ao={},lo,uo=[];lo=to.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+no+' "]'),function(Co){for(var $o=Co.getAttribute("data-emotion").split(" "),Ro=1;Ro<$o.length;Ro++)ao[$o[Ro]]=!0;uo.push(Co)});var ho,go=[compat,removeLabel];{var mo,yo=[stringify$1,rulesheet(function(Co){mo.insert(Co)})],So=middleware(go.concat(so,yo)),_o=function($o){return serialize$1(compile$1($o),So)};ho=function($o,Ro,Oo,No){mo=Oo,_o($o?$o+"{"+Ro.styles+"}":Ro.styles),No&&(ko.inserted[Ro.name]=!0)}}var ko={key:no,sheet:new StyleSheet({key:no,container:lo,nonce:to.nonce,speedy:to.speedy,prepend:to.prepend,insertionPoint:to.insertionPoint}),nonce:to.nonce,inserted:ao,registered:{},insert:ho};return ko.sheet.hydrate(uo),ko},unitlessKeys={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},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function eo(to){return to.charCodeAt(1)===45},isProcessableValue=function eo(to){return to!=null&&typeof to!="boolean"},processStyleName=memoize$3(function(eo){return isCustomProperty(eo)?eo:eo.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function eo(to,no){switch(to){case"animation":case"animationName":if(typeof no=="string")return no.replace(animationRegex,function(io,so,ao){return cursor$1={name:so,styles:ao,next:cursor$1},so})}return unitlessKeys[to]!==1&&!isCustomProperty(to)&&typeof no=="number"&&no!==0?no+"px":no},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(eo,to,no){if(no==null)return"";if(no.__emotion_styles!==void 0)return no;switch(typeof no){case"boolean":return"";case"object":{if(no.anim===1)return cursor$1={name:no.name,styles:no.styles,next:cursor$1},no.name;if(no.styles!==void 0){var io=no.next;if(io!==void 0)for(;io!==void 0;)cursor$1={name:io.name,styles:io.styles,next:cursor$1},io=io.next;var so=no.styles+";";return so}return createStringFromObject(eo,to,no)}case"function":{if(eo!==void 0){var ao=cursor$1,lo=no(eo);return cursor$1=ao,handleInterpolation(eo,to,lo)}break}}if(to==null)return no;var uo=to[no];return uo!==void 0?uo:no}function createStringFromObject(eo,to,no){var io="";if(Array.isArray(no))for(var so=0;soNumber.isNaN(Number(eo))).map(([eo,to])=>[eo,`var(${to})`]));Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>/=$<%]+(?:\s(?:\s*[^\s>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>/]+/,inside:{namespace:/^[^\s>/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(eo){eo.type==="entity"&&eo.attributes&&(eo.attributes.title=eo.content.replace(/&/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function eo(to,no){const io={};io["language-"+no]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[no]},io.cdata=/^$/i;const so={"included-cdata":{pattern://i,inside:io}};so["language-"+no]={pattern:/[\s\S]+/,inside:Prism.languages[no]};const ao={};ao[to]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return to}),"i"),lookbehind:!0,greedy:!0,inside:so},Prism.languages.insertBefore("markup","cdata",ao)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(eo,to){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+eo+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[to,"language-"+to],inside:Prism.languages[to]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;const envVars="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",commandAfterHeredoc={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:void 0},insideString={bash:commandAfterHeredoc,environment:{pattern:RegExp("\\$"+envVars),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!/]|##?|%%?|\^\^?|,,?/,punctuation:/[[\]]/,environment:{pattern:RegExp("(\\{)"+envVars),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Prism.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+envVars),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};commandAfterHeredoc.inside=Prism.languages.bash;const toBeCopied=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside$1=insideString.variable[1].inside;for(let eo=0;eo>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;const string$1$1=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+string$1$1.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+string$1$1.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string$1$1.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+string$1$1.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string$1$1,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/};Prism.languages.css.atrule.inside.rest=Prism.languages.css;const markup=Prism.languages.markup;markup&&(markup.tag.addInlined("style","css"),markup.tag.addAttribute("style","css"));const keyword$1=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,modName=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return keyword$1.source});Prism.languages.cpp=Prism.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return keyword$1.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:keyword$1,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/});Prism.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return modName})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}});Prism.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Prism.languages.cpp}}}});Prism.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});Prism.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Prism.languages.extend("cpp",{})}});Prism.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Prism.languages.cpp["base-clause"]);const ID="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",IDInside={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:Prism.languages.markup}};function withID(eo,to){return RegExp(eo.replace(//g,function(){return ID}),to)}Prism.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:withID(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:IDInside},"attr-value":{pattern:withID(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:IDInside},"attr-name":{pattern:withID(/([[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:IDInside},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:withID(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:IDInside},operator:/[=:]|-[->]/,punctuation:/[[\]{};,]/};Prism.languages.gv=Prism.languages.dot;Prism.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};const PREFIXES={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(PREFIXES).forEach(function(eo){const to=PREFIXES[eo],no=[];/^\w+$/.test(eo)||no.push(/\w+/.exec(eo)[0]),eo==="diff"&&no.push("bold"),Prism.languages.diff[eo]={pattern:RegExp("^(?:["+to+`].*(?:\r ?| |(?![\\s\\S])))+`,"m"),alias:no,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(eo)[0]}}}});Object.defineProperty(Prism.languages.diff,"PREFIXES",{value:PREFIXES});Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m};Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete Prism.languages.go["class-name"];const keywords=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,classNamePrefix=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,className={pattern:RegExp(/(^|[^\w.])/.source+classNamePrefix+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};Prism.languages.java=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[className,{pattern:RegExp(/(^|[^\w.])/.source+classNamePrefix+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:className.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+classNamePrefix+/[A-Z]\w*\b/.source),lookbehind:!0,inside:className.inside}],keyword:keywords,function:[Prism.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/});Prism.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}});Prism.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":className,keyword:keywords,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+classNamePrefix+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:className.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+classNamePrefix+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:className.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return keywords.source})),lookbehind:!0,inside:{punctuation:/\./}}});Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});if(Prism.languages.markup){const eo=Prism.languages.markup;eo.tag.addInlined("script","javascript"),eo.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")}Prism.languages.js=Prism.languages.javascript;Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;const javascript=Prism.util.clone(Prism.languages.javascript),space$1=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,braces=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source;let spread=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function re$1(eo,to){const no=eo.replace(//g,()=>space$1).replace(//g,()=>braces).replace(//g,()=>spread);return RegExp(no,to)}spread=re$1(spread).source;Prism.languages.jsx=Prism.languages.extend("markup",javascript);const jsx=Prism.languages.jsx;jsx.tag.pattern=re$1(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source);jsx.tag.inside.tag.pattern=/^<\/?[^\s>/]*/;jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/;jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/;jsx.tag.inside.comment=javascript.comment;Prism.languages.insertBefore("inside","attr-name",{spread:{pattern:re$1(//.source),inside:Prism.languages.jsx}},jsx.tag);Prism.languages.insertBefore("inside","special-attr",{script:{pattern:re$1(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism.languages.jsx}}},jsx.tag);const stringifyToken=function(eo){return eo?typeof eo=="string"?eo:typeof eo.content=="string"?eo.content:eo.content.map(stringifyToken).join(""):""},walkTokens=function(eo){const to=[];for(let no=0;no0&&to[to.length-1].tagName===stringifyToken(ao[0].content[1])&&to.pop():ao[ao.length-1].content==="/>"||to.push({tagName:stringifyToken(ao[0].content[1]),openedBraces:0}):to.length>0&&io.type==="punctuation"&&io.content==="{"?to[to.length-1].openedBraces+=1:to.length>0&&to[to.length-1].openedBraces>0&&io.type==="punctuation"&&io.content==="}"?to[to.length-1].openedBraces-=1:so=!0}if((so||typeof io=="string")&&to.length>0&&to[to.length-1].openedBraces===0){let ao=stringifyToken(io);no0&&(typeof eo[no-1]=="string"||eo[no-1].type==="plain-text")&&(ao=stringifyToken(eo[no-1])+ao,eo.splice(no-1,1),no-=1),eo[no]=new Prism.Token("plain-text",ao,void 0,ao)}typeof io!="string"&&io.content&&typeof io.content!="string"&&walkTokens(io.content)}};Prism.hooks.add("after-tokenize",function(eo){eo.language!=="jsx"&&eo.language!=="tsx"||walkTokens(eo.tokens)});Prism.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/};const inner$1=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(eo){const to=eo.replace(//g,function(){return inner$1});return RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+to+")")}const tableCell=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tableRow=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return tableCell}),tableLine=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;Prism.languages.markdown=Prism.languages.extend("markup",{});Prism.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:Prism.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tableRow+tableLine+"(?:"+tableRow+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tableRow+tableLine+")(?:"+tableRow+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tableCell),inside:Prism.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tableRow+")"+tableLine+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tableRow+"$"),inside:{"table-header":{pattern:RegExp(tableCell),alias:"important",inside:Prism.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[[\]!:]|[<>]/},alias:"url"},bold:{pattern:createInline(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:createInline(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}});["url","bold","italic","strike"].forEach(function(eo){["url","bold","italic","strike","code-snippet"].forEach(function(to){if(eo!==to){const no=Prism.languages.markdown;no[eo].inside.content.inside[to]=no[to]}})});Prism.hooks.add("after-tokenize",function(eo){if(eo.language!=="markdown"&&eo.language!=="md")return;function to(no){if(!(!no||typeof no=="string"))for(let io=0,so=no.length;io",quot:'"'},fromCodePoint$1=String.fromCodePoint||String.fromCharCode;function textContent(eo){let to=eo.replace(tagPattern,"");return to=to.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(no,io){if(io=io.toLowerCase(),io[0]==="#"){let so;return io[1]==="x"?so=parseInt(io.slice(2),16):so=Number(io.slice(1)),fromCodePoint$1(so)}else{const so=KNOWN_ENTITY_NAMES[io];return so||no}}),to}Prism.languages.md=Prism.languages.markdown;Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}});Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]});Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/});Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}});Prism.languages.scss.atrule.inside.rest=Prism.languages.scss;Prism.languages.sass=Prism.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}});Prism.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}});delete Prism.languages.sass.atrule;const variable=/\$[-\w]+|#\{\$[-\w]+\}/,operator$1=[/[+*/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];Prism.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable,operator:operator$1}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable,operator:operator$1,important:Prism.languages.sass.important}}});delete Prism.languages.sass.property;delete Prism.languages.sass.important;Prism.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}});Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};const unit$2={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},number$7={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},inside$2={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:unit$2,number:number$7,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:unit$2,boolean:/\b(?:false|true)\b/,operator:[/~|[+!/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:number$7,punctuation:/[{}()[\];:,]/};inside$2.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:inside$2}};inside$2.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:inside$2}};Prism.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:inside$2}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:inside$2}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:inside$2}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:inside$2.interpolation}},rest:inside$2}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:inside$2.interpolation,comment:inside$2.comment,punctuation:/[{},]/}},func:inside$2.func,string:inside$2.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:inside$2.interpolation,punctuation:/[{}()[\];:.]/};Prism.languages.typescript=Prism.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/});Prism.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[{*]|$))/);delete Prism.languages.typescript.parameter;delete Prism.languages.typescript["literal-property"];const typeInside=Prism.languages.extend("typescript",{});delete typeInside["class-name"];Prism.languages.typescript["class-name"].inside=typeInside;Prism.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:typeInside}}}});Prism.languages.ts=Prism.languages.typescript;const typescript=Prism.util.clone(Prism.languages.typescript);Prism.languages.tsx=Prism.languages.extend("jsx",typescript);delete Prism.languages.tsx.parameter;delete Prism.languages.tsx["literal-property"];const tag$1=Prism.languages.tsx.tag;tag$1.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag$1.pattern.source+")",tag$1.pattern.flags);tag$1.lookbehind=!0;Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/};Prism.languages.vb=Prism.languages["visual-basic"];Prism.languages.vba=Prism.languages["visual-basic"];Prism.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};const anchorOrAlias=/[*&][^\s[\]{},]+/,tag=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,properties="(?:"+tag.source+"(?:[ ]+"+anchorOrAlias.source+")?|"+anchorOrAlias.source+"(?:[ ]+"+tag.source+")?)",plainKey=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,()=>/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source),string$4=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(eo,to){const no=(to||"").replace(/m/g,"")+"m",io=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return eo});return RegExp(io,no)}Prism.languages.yaml={scalar:{pattern:RegExp(/([-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return properties})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return"(?:"+plainKey+"|"+string$4+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:createValuePattern(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(string$4),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag,important:anchorOrAlias,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./};Prism.languages.yml=Prism.languages.yaml;const vscDarkTheme={plain:{color:"#d4d4d4",backgroundColor:"#1e1e1e"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment","punctuation"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin"],style:{color:"rgb(79, 193, 255)"}},{types:["number","variable","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["operator"],style:{color:"rgb(212, 212, 212)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["tag","changed","function","keyword"],style:{color:"rgb(86, 156, 214)"}},{types:["attr-name"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value"],style:{color:"rgb(206, 145, 120)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}}]},vscLightTheme={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},vars={border:`1px solid var(${TokenNames.colorBorderCodeLineno}, hsla(0deg, 0%, 80%, 0.8))`,highlightBackground:`var(${TokenNames.colorBgCodeHighlight}, hsla(30deg, 90%, 50%, 0.3))`,fontSizeCode:`var(${CommonTokenNames.fontSizeCode}, 14px)`,lineHeightCode:`var(${CommonTokenNames.lineHeightCode}, 1.6)`},classes$6={container:css({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",display:"flex",alignItems:"stretch",overflow:"hidden",width:"100%",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,padding:0,transition:"max-height 0.5s ease-in-out",tabSize:2,fontSmooth:"always",whiteSpace:"pre",wordBreak:"keep-all",wordSpacing:"normal",wordWrap:"normal"}),line:css({boxSizing:"border-box",display:"flex",minWidth:"fit-content",width:"100%",padding:"0 6px",letterSpacing:"inherit",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,height:vars.lineHeightCode,overflowWrap:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"inherit",wordBreak:"inherit",wordSpacing:"inherit",wordWrap:"inherit"}),linenoLine:css({justifyContent:"flex-end",padding:"0 4px"}),highlightLine:css({background:vars.highlightBackground,borderColor:"transparent"}),lineno:css({flex:"0 0 auto",overflow:"hidden",boxSizing:"border-box",padding:"0.5rem 0",cursor:"default",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,userSelect:"none",textAlign:"right",borderRight:vars.border}),codes:css({flex:"1 1 auto",overflow:"overlay",boxSizing:"border-box",padding:"0.5rem 0",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode}),codeWrapper:css({minWidth:"100%",width:"fit-content"}),codeLine:css({boxSizing:"border-box",padding:"0 12px"})},languageMap={js:"javascript",ts:"typescript"},themeToDict=(eo,to)=>{eo=languageMap[eo]??eo;const{plain:no}=to,io=Object.create(null),so=to.styles.reduce((ao,lo)=>{const{types:uo,style:ho,languages:go}=lo;if(go&&!go.includes(eo))return ao;for(const mo of uo){const yo={...ao[mo],...ho};ao[mo]=yo}return ao},io);return so.root=no,so.plain={...no,backgroundColor:void 0},so},newlineRegex=/\r\n|\r|\n/,normalizeEmptyLines=eo=>{eo.length===0?eo.push({types:["plain"],content:` `,empty:!0}):eo.length===1&&eo[0].content===""&&(eo[0].content=` `,eo[0].empty=!0)},appendTypes=(eo,to)=>{const no=eo.length;return no>0&&eo[no-1]===to?eo:eo.concat(to)},normalizeTokens=eo=>{const to=[[]],no=[eo],io=[0],so=[eo.length];let ao=[];const lo=[ao];for(let uo=0;uo>-1;--uo){for(let ho=0;(ho=io[uo]++)0?mo:["plain"],go=So):(mo=appendTypes(mo,So.type),So.alias&&(mo=appendTypes(mo,So.alias)),go=So.content),typeof go!="string"){uo+=1,to.push(mo),no.push(go),io.push(0),so.push(go.length);continue}const _o=go.split(newlineRegex),ko=_o.length;ao.push({types:mo,content:_o[0]});for(let Co=1;Co{var ao,lo;const io=no.target;if(io==null)return;const{scrollTop:so}=io;(lo=(ao=this.linenoRef.current)==null?void 0:ao.scrollTo)==null||lo.call(ao,0,so)});const io=themeToDict(no.language,no.theme),so=this.tokenize(no.code,no.language),ao=no.showLineno?`${Math.max(2,String(so.length).length)*1.1}em`:void 0;this.state={linenoWidth:ao,themeDict:io,tokens:so},this.linenoRef={current:null}}shouldComponentUpdate(no,io){const so=this.props,ao=this.state;return ao.linenoWidth!==io.linenoWidth||ao.themeDict!==io.themeDict||ao.tokens!==io.tokens||so.code!==no.code||so.codesRef!==no.codesRef||so.collapsed!==no.collapsed||so.language!==no.language||so.maxLines!==no.maxLines||so.showLineno!==no.showLineno||!isEqual(so.theme,no.theme)||!isEqual(so.highlightLinenos,no.highlightLinenos)}render(){const{linenoRef:no,onScroll:io}=this,{codesRef:so,collapsed:ao,highlightLinenos:lo,language:uo,maxLines:ho,showLineno:go=!0}=this.props,{linenoWidth:mo,tokens:yo}=this.state,So=yo.length,_o=ho>0?Math.min(ho,So):So,ko={...this.state.themeDict.root,backgroundColor:"none",...ao?{maxHeight:0}:{maxHeight:`calc(calc(${vars.lineHeightCode} * ${_o+.8}) + 6px)`,minHeight:"100%"}};return React.createElement("div",{className:cx(classes$6.container,uo?`prism-code language-${uo}`:"prism-code"),style:ko},go&&React.createElement("div",{key:"linenos",className:classes$6.lineno,style:{width:mo},ref:no},React.createElement(HighlightLinenos,{countOfLines:So,highlightLinenos:lo})),React.createElement("div",{key:"codes",ref:so,className:classes$6.codes,onScroll:io},React.createElement("div",{className:classes$6.codeWrapper},yo.map((Co,$o)=>{const Ro=lo.includes($o+1),Oo=this.getLineProps({line:Co});return React.createElement("div",{...Oo,key:$o,className:cx(classes$6.line,classes$6.codeLine,Ro&&classes$6.highlightLine,Oo.className)},Co.map((No,Mo)=>React.createElement("span",{...this.getTokenProps({token:No}),key:Mo})))}))))}componentDidMount(){var no,io;(io=(no=this.props).onLinenoWidthChange)==null||io.call(no,this.state.linenoWidth)}componentDidUpdate(no,io){var uo,ho;const so=this.props,ao=this.state,lo=so.language!==no.language||!isEqual(so.theme,no.theme)?themeToDict(so.language,so.theme):ao.themeDict;if(so.code!==no.code||so.language!==no.language||lo!==io.themeDict){const go=this.tokenize(so.code,so.language),mo=so.showLineno?`${Math.max(2,String(go.length).length)*1.1}em`:void 0;this.setState({linenoWidth:mo,themeDict:lo,tokens:go})}ao.linenoWidth!==io.linenoWidth&&((ho=(uo=this.props).onLinenoWidthChange)==null||ho.call(uo,ao.linenoWidth))}tokenize(no,io){const so=io?Prism.languages[io]:void 0;if(so){const ao={code:no,grammar:so,language:io,tokens:[]};return Prism.hooks.run("before-tokenize",ao),ao.tokens=Prism.tokenize(ao.code,ao.grammar),Prism.hooks.run("after-tokenize",ao),normalizeTokens(ao.tokens)}else return normalizeTokens([no])}getLineProps(no){const{themeDict:io}=this.state,{key:so,className:ao,style:lo,line:uo,...ho}=no,go={...ho,className:"token-line",style:void 0,key:void 0};return io!==void 0&&(go.style=io.plain),lo!==void 0&&(go.style=go.style!==void 0?{...go.style,...lo}:lo),so!==void 0&&(go.key=so),ao&&(go.className+=` ${ao}`),go}getStyleForToken({types:no,empty:io}){const{themeDict:so}=this.state,ao=no.length;if(so===void 0)return;if(ao===1&&no[0]==="plain")return io?{display:"inline-block"}:void 0;if(ao===1&&!io)return so[no[0]];const lo=io?{display:"inline-block"}:{};for(const uo of no){const ho=so[uo];Object.assign(lo,ho)}return lo}getTokenProps(no){const{key:io,className:so,style:ao,token:lo,...uo}=no,ho={...uo,className:`token ${lo.types.join(" ")}`,children:lo.content,style:this.getStyleForToken(lo),key:void 0};return ao!==void 0&&(ho.style=ho.style!==void 0?{...ho.style,...ao}:ao),io!==void 0&&(ho.key=io),so&&(ho.className+=` ${so}`),ho}}d0(HighlightContent,"displayName","HighlightContent"),d0(HighlightContent,"propTypes",{code:PropTypes.string.isRequired,codesRef:PropTypes.any,collapsed:PropTypes.bool.isRequired,language:PropTypes.string.isRequired,maxLines:PropTypes.number.isRequired,showLineno:PropTypes.bool.isRequired,theme:PropTypes.object.isRequired,highlightLinenos:PropTypes.array.isRequired,onLinenoWidthChange:PropTypes.func});class CodeHighlighter extends React.PureComponent{render(){const{lang:to,value:no,darken:io=!0,highlightLinenos:so=[],maxLines:ao=-1,collapsed:lo=!1,showLineNo:uo=!0,codesRef:ho,onLinenoWidthChange:go}=this.props,mo=this.props.theme??(io?vscDarkTheme:vscLightTheme);return React.createElement(HighlightContent,{code:no,codesRef:ho,collapsed:lo,highlightLinenos:so,language:to??"",maxLines:ao,showLineno:uo,theme:mo,onLinenoWidthChange:go})}}d0(CodeHighlighter,"displayName","YozoraCodeHighlighter"),d0(CodeHighlighter,"propTypes",{codesRef:PropTypes.any,collapsed:PropTypes.bool,darken:PropTypes.bool,highlightLinenos:PropTypes.arrayOf(PropTypes.number),lang:PropTypes.string,maxLines:PropTypes.number,onLinenoWidthChange:PropTypes.func,showLineNo:PropTypes.bool,theme:PropTypes.any,value:PropTypes.string.isRequired});const CopyButton=eo=>{const{className:to,delay:no=1500,calcContentForCopy:io}=eo,[so,ao]=React.useState(0),lo=useStyles$i(),uo=so!==0,ho=()=>{if(so===0){ao(1);try{const go=io();copy$5(go),ao(2)}catch{ao(3)}}};return React.useEffect(()=>{if(so===2||so===3){const go=setTimeout(()=>ao(0),no);return()=>{go&&clearTimeout(go)}}},[so,no]),jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",className:mergeClasses(lo.copyButton,to),disabled:uo,as:"button",icon:so===0?jsxRuntimeExports.jsx(Copy20Regular,{}):jsxRuntimeExports.jsx(CopyArrowRight20Regular,{}),onClick:ho})},useStyles$i=makeStyles({copyButton:{cursor:"pointer"}});class CodeRendererInner extends React.PureComponent{constructor(){super(...arguments),this.calcContentForCopy=()=>this.props.value}render(){const{calcContentForCopy:to}=this,{darken:no,lang:io,value:so,preferCodeWrap:ao,showCodeLineno:lo}=this.props;return jsxRuntimeExports.jsxs("code",{className:codeCls,"data-wrap":ao,children:[jsxRuntimeExports.jsx(CodeHighlighter,{lang:io,value:so,collapsed:!1,showLineNo:lo&&!ao,darken:no}),jsxRuntimeExports.jsx("div",{className:copyBtnCls,children:jsxRuntimeExports.jsx(CopyButton,{calcContentForCopy:to})})]})}}const copyBtnCls=mergeStyles$1({position:"absolute",right:"4px",top:"4px",display:"none"}),codeCls=mergeStyles$1(astClasses.code,{position:"relative",display:"block",boxSizing:"border-box",borderRadius:"4px",margin:"0px 0px 1.25em 0px",backgroundColor:"var(--colorBgCode)",[`&:hover > .${copyBtnCls}`]:{display:"inline-block"},'&&[data-wrap="true"] > div':{whiteSpace:"pre-wrap",wordBreak:"keep-all"}}),CodeRenderer=eo=>{const{lang:to}=eo,no=eo.value.replace(/[\r\n]+$/,""),{viewmodel:io}=useNodeRendererContext(),so=useStateValue(io.preferCodeWrap$),ao=useStateValue(io.showCodeLineno$),uo=useStateValue(io.themeScheme$)==="darken";return jsxRuntimeExports.jsx(CodeRendererInner,{darken:uo,lang:to??"text",value:no,preferCodeWrap:so,showCodeLineno:ao})};class DeleteRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("del",{className:cls$9,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$9=mergeStyles$1(astClasses.delete,{marginRight:"4px",color:"var(--colorDelete)",fontStyle:"italic",textDecoration:"line-through"});class EmphasisRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("em",{className:cls$8,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$8=mergeStyles$1(astClasses.emphasis,{fontStyle:"italic",margin:"0 6px 0 2px"});class HeadingRenderer extends React.Component{shouldComponentUpdate(to){const no=this.props;return no.depth!==to.depth||no.identifier!==to.identifier||no.children!==to.children||no.linkIcon!==to.linkIcon}render(){const{depth:to,identifier:no,children:io,linkIcon:so="¶"}=this.props,ao=no==null?void 0:encodeURIComponent(no),lo="h"+to,uo=lo,ho=mergeStyles$1(astClasses.heading,classes$5.heading,classes$5[lo]);return jsxRuntimeExports.jsxs(uo,{id:ao,className:ho,children:[jsxRuntimeExports.jsx("p",{className:classes$5.content,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:io})}),no&&jsxRuntimeExports.jsx("a",{className:classes$5.anchor,href:"#"+ao,children:so})]})}}const anchorCls=mergeStyles$1({flex:"0 0 3rem",paddingLeft:"0.5rem",color:"var(--colorLink)",opacity:0,transition:"color 0.2s ease-in-out, opacity 0.2s ease-in-out",userSelect:"none",textDecoration:"none","> svg":{overflow:"hidden",display:"inline-block",verticalAlign:"middle",fill:"currentColor"}}),classes$5=mergeStyleSets({heading:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:"0px",margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.25",fontFamily:"var(--fontFamilyHeading)",color:"var(--colorHeading)",[`&:active .${anchorCls}`]:{opacity:.8,color:"var(--colorLinkActive)"},[`&&:hover .${anchorCls}`]:{opacity:.8,color:"var(--colorLinkHover)"}},anchor:anchorCls,content:{flex:"0 1 auto",minWidth:0,margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre-wrap",lineHeight:"1.7"},h1:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"2rem",fontStyle:"normal",fontWeight:500},h2:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"1.5rem",fontStyle:"normal",fontWeight:500,marginBottom:"0.875rem"},h3:{fontSize:"1.25rem",fontStyle:"normal",fontWeight:500},h4:{fontSize:"1rem",fontStyle:"normal",fontWeight:500},h5:{fontSize:"0.875rem",fontStyle:"normal",fontWeight:500},h6:{fontSize:"0.85rem",fontStyle:"normal",fontWeight:500}});class ImageRendererInner extends React.Component{shouldComponentUpdate(to){const no=this.props;return no.src!==to.src||no.alt!==to.alt||no.title!==to.title||no.srcSet!==to.srcSet||no.sizes!==to.sizes||no.loading!==to.loading||no.className!==to.className}render(){const{src:to,alt:no,title:io,srcSet:so,sizes:ao,loading:lo,className:uo}=this.props;return jsxRuntimeExports.jsxs("figure",{className:`${uo} ${cls$7}`,children:[jsxRuntimeExports.jsx("img",{alt:no,src:to,title:io,srcSet:so,sizes:ao,loading:lo}),io&&jsxRuntimeExports.jsx("figcaption",{children:io})]})}}const cls$7=mergeStyles$1({boxSizing:"border-box",maxWidth:"80%",display:"flex",flexDirection:"column",alignItems:"center",margin:0,"> img":{flex:"1 0 auto",boxSizing:"border-box",maxWidth:"100%",border:"1px solid var(--colorBorderImage)",boxShadow:"0 0 20px 1px rgba(126, 125, 150, 0.6)"},"> figcaption":{textAlign:"center",fontStyle:"italic",fontSize:"1em",color:"var(--colorImageTitle)"}}),ImageRenderer=eo=>{const{url:to,alt:no,title:io,srcSet:so,sizes:ao,loading:lo}=eo;return jsxRuntimeExports.jsx(ImageRendererInner,{alt:no,src:to,title:io,srcSet:so,sizes:ao,loading:lo,className:astClasses.image})},ImageReferenceRenderer=eo=>{const{viewmodel:to}=useNodeRendererContext(),no=useStateValue(to.definitionMap$),{alt:io,srcSet:so,sizes:ao,loading:lo}=eo,uo=no[eo.identifier],ho=(uo==null?void 0:uo.url)??"",go=uo==null?void 0:uo.title;return jsxRuntimeExports.jsx(ImageRendererInner,{alt:io,src:ho,title:go,srcSet:so,sizes:ao,loading:lo,className:astClasses.imageReference})};class InlineCodeRenderer extends React.Component{shouldComponentUpdate(to){return this.props.value!==to.value}render(){return jsxRuntimeExports.jsx("code",{className:cls$6,children:this.props.value})}}const cls$6=mergeStyles$1(astClasses.inlineCode,{padding:"1px 4px",borderRadius:"4px",margin:0,background:"hsla(210deg, 15%, 60%, 0.15)",lineHeight:"1.375",color:"var(--colorInlineCode)",fontFamily:"var(--fontFamilyCode)",fontSize:"min(1rem, 18px)",fontWeight:500});class LinkRendererInner extends React.Component{shouldComponentUpdate(to){const no=this.props;return no.url!==to.url||no.title!==to.title||no.childNodes!==to.childNodes||no.className!==to.className}render(){const{url:to,title:no,childNodes:io,className:so}=this.props;return jsxRuntimeExports.jsx("a",{className:mergeStyles$1(cls$5,so),href:to,title:no,rel:"noopener, noreferrer",target:"_blank",children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:io})})}}const cls$5=mergeStyles$1({padding:"0.2rem 0",color:"var(--colorLink)",textDecoration:"none","&:active":{color:"var(--colorLinkActive)"},"&&:hover":{color:"var(--colorLinkHover)",textDecoration:"underline"},"&:visited":{color:"var(--colorLinkVisited)"}}),LinkRenderer=eo=>{const{url:to,title:no,children:io}=eo;return jsxRuntimeExports.jsx(LinkRendererInner,{url:to,title:no,childNodes:io,className:astClasses.link})},LinkReferenceRenderer=eo=>{const{viewmodel:to}=useNodeRendererContext(),io=useStateValue(to.definitionMap$)[eo.identifier],so=(io==null?void 0:io.url)??"",ao=io==null?void 0:io.title;return jsxRuntimeExports.jsx(LinkRendererInner,{url:so,title:ao,childNodes:eo.children,className:astClasses.linkReference})};class ListRenderer extends React.Component{shouldComponentUpdate(to){const no=this.props;return no.ordered!==to.ordered||no.orderType!==to.orderType||no.start!==to.start||no.children!==to.children}render(){const{ordered:to,orderType:no,start:io,children:so}=this.props;return to?jsxRuntimeExports.jsx("ol",{className:cls$4,type:no,start:io,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:so})}):jsxRuntimeExports.jsx("ul",{className:cls$4,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:so})})}}const cls$4=mergeStyles$1(astClasses.list,{padding:"0px",margin:"0 0 1em 2em",lineHeight:"2","> :last-child":{marginBottom:"0px"}});class ListItemRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("li",{className:cls$3,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$3=mergeStyles$1(astClasses.listItem,{position:"relative",padding:0,margin:0,"> :last-child":{marginBottom:0}});class ParagraphRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return to.some(io=>io.type===ImageType$1||io.type===ImageReferenceType)?jsxRuntimeExports.jsx("div",{className:paragraphDisplayCls,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})}):jsxRuntimeExports.jsx("p",{className:paragraphCls,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const paragraphCls=mergeStyles$1(astClasses.paragraph,{overflow:"hidden",padding:0,margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.8",hyphens:"auto",wordBreak:"normal",overflowWrap:"anywhere","> :last-child":{marginBottom:0}}),paragraphDisplayCls=mergeStyles$1(paragraphCls,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem 0",margin:0});class StrongRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("strong",{className:cls$2,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$2=mergeStyles$1(astClasses.strong,{fontWeight:600});class TableRenderer extends React.Component{shouldComponentUpdate(to){const no=this.props;return!isEqual(no.columns,to.columns)||!isEqual(no.children,to.children)}render(){const{columns:to,children:no}=this.props,io=to.map(lo=>lo.align??void 0),[so,...ao]=no.map(lo=>lo.children.map((uo,ho)=>jsxRuntimeExports.jsx(NodesRenderer,{nodes:uo.children},ho)));return jsxRuntimeExports.jsxs("table",{className:cls$1,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:so.map((lo,uo)=>jsxRuntimeExports.jsx(Th,{align:io[uo],children:lo},uo))})}),jsxRuntimeExports.jsx("tbody",{children:ao.map((lo,uo)=>jsxRuntimeExports.jsx("tr",{children:lo.map((ho,go)=>jsxRuntimeExports.jsx("td",{align:io[go],children:ho},go))},uo))})]})}}class Th extends React.Component{constructor(to){super(to),this.ref={current:null}}shouldComponentUpdate(to){const no=this.props;return no.align!==to.align||no.children!==to.children}render(){const{align:to,children:no}=this.props;return jsxRuntimeExports.jsx("th",{ref:this.ref,align:to,children:no})}componentDidMount(){const to=this.ref.current;to&&to.setAttribute("title",to.innerText)}componentDidUpdate(){const to=this.ref.current;to&&to.setAttribute("title",to.innerText)}}const cls$1=mergeStyles$1(astClasses.table,{display:"block",overflow:"auto",width:"max-content",maxWidth:"100%",padding:0,borderCollapse:"collapse",borderRadius:"6px",borderSpacing:"0px",border:"1px solid var(--colorBorderTable)",margin:"0 auto 1.25em",lineHeight:"1.6","> thead":{backgroundColor:"var(--colorBgTableHead)",borderBottom:"1px solid #f0f0f0",th:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)",wordBreak:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&:first-child":{borderLeft:"none"}}},"> tbody":{tr:{borderTop:"1px solid var(--colorBorderTable)",backgroundColor:"var(--colorBgTableOddRow)"},"tr:nth-child(2n)":{backgroundColor:"var(--colorBgTableEvenRow)"},td:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)","&:first-child":{borderLeft:"none"}}}});class TextRenderer extends React.Component{shouldComponentUpdate(to){return this.props.value!==to.value}render(){return jsxRuntimeExports.jsx(React.Fragment,{children:this.props.value})}}class ThematicBreakRenderer extends React.Component{shouldComponentUpdate(){return!1}render(){return jsxRuntimeExports.jsx("hr",{className:cls})}}const cls=mergeStyles$1(astClasses.thematicBreak,{boxSizing:"content-box",display:"block",height:0,width:"100%",padding:0,border:0,borderBottom:"1px solid #dadada",outline:0,margin:"1.5em 0px"});function buildNodeRendererMap(eo){if(eo==null)return defaultNodeRendererMap;let to=!1;const no={};for(const[io,so]of Object.entries(eo))so&&so!==defaultNodeRendererMap[io]&&(to=!0,no[io]=so);return to?{...defaultNodeRendererMap,...no}:defaultNodeRendererMap}const defaultNodeRendererMap={[BlockquoteType]:BlockquoteRenderer,[BreakType]:BreakRenderer,[CodeType]:CodeRenderer,[DefinitionType]:()=>null,[DeleteType]:DeleteRenderer,[EmphasisType]:EmphasisRenderer,[HeadingType]:HeadingRenderer,[HtmlType]:()=>null,[ImageType$1]:ImageRenderer,[ImageReferenceType]:ImageReferenceRenderer,[InlineCodeType]:InlineCodeRenderer,[LinkType]:LinkRenderer,[LinkReferenceType]:LinkReferenceRenderer,[ListType]:ListRenderer,[ListItemType]:ListItemRenderer,[ParagraphType$1]:ParagraphRenderer,[StrongType]:StrongRenderer,[TableType]:TableRenderer,[TextType$1]:TextRenderer,[ThematicBreakType]:ThematicBreakRenderer,_fallback:function eo(to,no){return console.warn(`Cannot find render for \`${to.type}\` type node with key \`${no}\`:`,to),null}},ReactMarkdown=eo=>{const{presetDefinitionMap:to,customizedRendererMap:no,preferCodeWrap:io=!1,showCodeLineno:so=!0,text:ao,themeScheme:lo="lighten",className:uo,style:ho}=eo,go=React.useMemo(()=>{const ko=Array.isArray(ao)?ao.map($o=>parser$l.parse($o)):[parser$l.parse(ao)];if(ko.length===0)return parser$l.parse("");const Co=ko[0];for(let $o=1;$ocalcDefinitionMap(go).definitionMap,[go]),[yo]=React.useState(()=>new ReactMarkdownViewModel({definitionMap:{...to,...mo},rendererMap:buildNodeRendererMap(no),preferCodeWrap:io,showCodeLineno:so,themeScheme:lo})),So=React.useMemo(()=>({viewmodel:yo}),[yo]),_o=mergeClasses(rootCls,lo==="darken"&&astClasses.rootDarken,uo);return React.useEffect(()=>{yo.preferCodeWrap$.next(io)},[yo,io]),React.useEffect(()=>{yo.showCodeLineno$.next(so)},[yo,so]),React.useEffect(()=>{yo.themeScheme$.next(lo)},[yo,lo]),jsxRuntimeExports.jsx("div",{className:_o,style:ho,children:jsxRuntimeExports.jsx(NodeRendererContextType.Provider,{value:So,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:go.children})})})},rootCls=mergeStyles$1(astClasses.root,{wordBreak:"break-all",userSelect:"unset",[astClasses.listItem]:{[`> ${astClasses.list}`]:{marginLeft:"1.2em"}},"> :last-child":{marginBottom:0}}),BasicViewer=({styles:eo,showEmpty:to,emptyRender:no,previewRender:io,rawRender:so,headerRender:ao})=>{const lo=useClasses$m(),[uo,ho]=reactExports.useState("preview"),go=reactExports.useCallback(yo=>{ho(yo)},[]),mo=useLocStrings();return to?no?no():jsxRuntimeExports.jsx(MessageBar,{intent:"info",children:mo["No content"]}):jsxRuntimeExports.jsxs("div",{className:eo==null?void 0:eo.root,children:[so&&jsxRuntimeExports.jsxs("div",{className:lo.header,children:[jsxRuntimeExports.jsx("div",{style:{flex:1,overflow:"hidden"},children:ao==null?void 0:ao()}),jsxRuntimeExports.jsx("div",{className:lo.groupWrapper,children:jsxRuntimeExports.jsxs("div",{className:lo.buttonGroup,children:[jsxRuntimeExports.jsx(Button$2,{value:"preview",size:"small",appearance:uo==="preview"?void 0:"transparent",onClick:()=>go("preview"),children:mo.Preview}),jsxRuntimeExports.jsx(Button$2,{value:"raw",size:"small",appearance:uo==="raw"?void 0:"transparent",onClick:()=>go("raw"),children:mo.Raw})]})})]}),uo==="preview"||!so?io():null,uo==="raw"&&so?so():null]})},useClasses$m=makeStyles({header:{display:"flex",alignItems:"center",marginBottom:"12px"},groupWrapper:{display:"flex",flexDirection:"row-reverse"},buttonGroup:{display:"inline-flex",...shorthands.borderRadius("5px"),backgroundColor:tokens$1.colorNeutralBackground5}}),RawMarkdownContent=({content:eo,className:to,defaultHeight:no,minHeight:io,maxHeight:so})=>{const ao=useIsDark(),lo=reactExports.useRef(null),[uo,ho]=reactExports.useState(no||100),go=()=>{var _o;const mo=(_o=lo.current)==null?void 0:_o.getValue().split(` -`),yo=mo==null?void 0:mo.reduce((ko,Co)=>ko+Math.ceil(Co.length/80),0);let So=yo?yo*19:100;io&&Soso&&(So=so),ho(So)};return jsxRuntimeExports.jsx(Ft$1,{value:eo,theme:ao?"vs-dark":"light",options:{readOnly:!0,minimap:{enabled:!0},wordWrap:"on",wordWrapColumn:80},defaultLanguage:"markdown",className:to,height:uo,onMount:mo=>{lo.current=mo,go(),mo.onDidChangeModelContent(go)}})},MarkdownViewer=({content:eo})=>{const to=useStyles$h();return jsxRuntimeExports.jsx(BasicViewer,{styles:to,showEmpty:!eo,previewRender:()=>jsxRuntimeExports.jsx(ReactMarkdown,{text:`${eo}`}),rawRender:()=>jsxRuntimeExports.jsx(RawMarkdownContent,{content:`${eo}`,className:to.raw})})},useStyles$h=makeStyles({root:{wordBreak:"break-all",whiteSpace:"break-spaces",...shorthands.overflow("auto")},raw:{minHeight:"100px"}}),EmbeddingNodeInfo=()=>{var ho,go,mo;const eo=useSelectedSpan(),to=((ho=eo==null?void 0:eo.attributes)==null?void 0:ho["llm.response.model"])??((go=eo==null?void 0:eo.attributes)==null?void 0:go["embedding.model"]),no=useLocStrings(),[io,so]=reactExports.useState(ViewStatus.loading),ao=useLoadSpanEvents(eo,BuildInEventName["embedding.embeddings"]),lo=getSpanEventsWithPayload(eo,BuildInEventName["embedding.embeddings"]);let uo=JSON.parse(((mo=eo==null?void 0:eo.attributes)==null?void 0:mo["embedding.embeddings"])??"[]")??[];return lo.length>0&&(uo=lo.map(yo=>(yo==null?void 0:yo.attributes)??[]).flat()),reactExports.useEffect(()=>{so(ViewStatus.loading),ao({onCompleted:yo=>{so(yo?ViewStatus.error:ViewStatus.loaded)}})},[ao]),io===ViewStatus.loading?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh"},children:jsxRuntimeExports.jsx(Spinner,{size:"tiny"})}):io===ViewStatus.error?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{so(ViewStatus.loading),ao({onCompleted:yo=>{so(yo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("span",{children:to})}),uo.map((yo,So)=>jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("i",{children:no.Embedded_text})}),yo["embedding.text"]?jsxRuntimeExports.jsx(MarkdownViewer,{content:yo["embedding.text"]}):null]},So))]})},EmbeddingSpanDetailContent=()=>{var ho;const eo=useSelectedSpan(),[to,no]=reactExports.useState("embedding"),io=useNodeDetailClasses(),so=useLocStrings(),ao=(ho=eo==null?void 0:eo.events)==null?void 0:ho.filter(go=>go.name===BuildInEventName.exception),lo=(ao==null?void 0:ao.length)??0,uo=[{key:"embedding",name:so.Embedding},{key:"raw",name:so.Raw_JSON},{key:"error",name:so.Exception,icon:jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:lo>0?"danger":"informative",count:lo,size:"small",showZero:!0})}];return jsxRuntimeExports.jsxs("div",{className:io.layoutLeft,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:uo,selectedTab:to,setSelectedTab:no}),jsxRuntimeExports.jsx(SpanDetailErrorMessageBar,{setSelectedTab:no}),jsxRuntimeExports.jsxs("div",{className:io.content,children:[to==="embedding"&&jsxRuntimeExports.jsx(EmbeddingNodeInfo,{}),to==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),to==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{})]})]})},getMimeTypeFromContentType=eo=>{var no;return(no=/^\s*([^;\s]*)(?:;|\s|$)/.exec(eo))==null?void 0:no[1].toLowerCase()},NodeHttpCard=({type:eo})=>{const to=useLocStrings(),no=useSelectedSpan(),io=React.useMemo(()=>parseHttpSpanAttributes(no),[no]);if(!io)return null;const{urlFull:so}=io,ao=parseInt(io.status_code);let lo;ao>=200&&ao<300?lo="success":ao>=400?lo="danger":lo="warning";const uo=jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[io.status_code!==void 0?jsxRuntimeExports.jsxs(Badge$2,{appearance:"outline",color:lo,children:[to.Status," ",jsxRuntimeExports.jsx("span",{style:{marginLeft:4},children:io.status_code})]}):null,jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:io.method}),jsxRuntimeExports.jsx("span",{style:{marginRight:8,wordBreak:"break-all"},children:so})]}),ho=eo==="response"?io.response:io.request;return jsxRuntimeExports.jsx(Card,{style:{marginBottom:12},children:jsxRuntimeExports.jsx(NodeHttpItem,{type:eo,header:uo,data:ho})})},NodeHttpItem=({type:eo,header:to,data:no})=>{const io=useLocStrings(),{headers:so,body:ao}=no,lo=JSON.stringify(no),uo=eo==="response",ho=uo?"Response":"Request";let go;if(ao)if(uo){const mo=getMimeTypeFromContentType(so["content-type"]);go=jsxRuntimeExports.jsx(HttpResponseContent,{mimeType:mo,body:ao})}else go=jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens$1.colorNeutralBackground2},src:ao,title:io[`${ho} Body`]});return jsxRuntimeExports.jsx(BasicViewer,{showEmpty:!1,previewRender:()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens$1.colorNeutralBackground2},src:so,title:io[`${ho} Headers`]}),go]}),rawRender:()=>jsxRuntimeExports.jsx(Card,{style:{wordBreak:"break-all"},children:lo}),headerRender:to?()=>to:void 0})},HttpResponseContent=({mimeType:eo,body:to=""})=>{const no=useLocStrings();return eo!=null&&eo.includes("json")?jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens$1.colorNeutralBackground2},src:to,title:no["Response Body"]}):eo==="text/event-stream"?jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,background:tokens$1.colorNeutralBackground2},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:no["Response Body"]})})}),to.split("data:").filter(io=>!!io).map((io,so)=>jsxRuntimeExports.jsxs("div",{children:["data: ",io]},`${io}-${so}`))]}):jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,background:tokens$1.colorNeutralBackground2},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:no["Response Body"]})})}),jsxRuntimeExports.jsx("div",{style:{wordBreak:"break-all"},children:to})]})},HttpSpanDetailContent=()=>{var ho;const eo=useSelectedSpan(),to=useNodeDetailClasses(),no=useLocStrings(),[io,so]=reactExports.useState("info"),ao=(ho=eo==null?void 0:eo.events)==null?void 0:ho.filter(go=>go.name===BuildInEventName.exception),lo=(ao==null?void 0:ao.length)??0,uo=[{key:"response",name:no.Response},{key:"request",name:no.Request},{key:"raw",name:no.Raw_JSON},{key:"error",name:no.Exception,icon:jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:lo>0?"danger":"informative",count:lo,size:"small",showZero:!0})}];return jsxRuntimeExports.jsxs("div",{className:to.layoutLeft,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:uo,selectedTab:io,setSelectedTab:so}),jsxRuntimeExports.jsx(SpanDetailErrorMessageBar,{setSelectedTab:so}),jsxRuntimeExports.jsxs("div",{className:to.content,children:[io==="response"&&jsxRuntimeExports.jsx(NodeHttpCard,{type:"response"}),io==="request"&&jsxRuntimeExports.jsx(NodeHttpCard,{type:"request"}),io==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),io==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{})]})]})},useClasses$l=makeStyles({header:{display:"flex",alignItems:"center"},paramKey:{fontSize:"14px",fontWeight:600,lineHeight:"20px",marginRight:"4px"},type:{fontSize:"13px",marginLeft:"10px",lineHeight:"20px",color:tokens$1.colorNeutralForeground3},description:{fontSize:"14px",lineHeight:"21px"},required:{color:tokens$1.colorPaletteRedForeground1,marginLeft:"10px"},optional:{color:tokens$1.colorPaletteGreenForeground1,marginLeft:"10px"},sectionTitle:{fontSize:"12px",color:tokens$1.colorNeutralForeground3}}),FunctionParameterRow=({paramKey:eo,paramSchema:to,isRequired:no})=>{const{type:io,description:so,properties:ao,required:lo,enum:uo}=to,ho=useClasses$l();return jsxRuntimeExports.jsxs(Card,{appearance:"outline",children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsxs("div",{className:ho.header,children:[jsxRuntimeExports.jsx("div",{className:ho.paramKey,children:eo}),jsxRuntimeExports.jsx("div",{className:ho.type,children:io}),no?jsxRuntimeExports.jsx("div",{className:ho.required,children:"Required"}):jsxRuntimeExports.jsx("div",{className:ho.optional,children:"Optional"})]})}),so&&jsxRuntimeExports.jsx("div",{className:ho.description,children:so}),ao&&jsxRuntimeExports.jsx(Accordion,{collapsible:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"properties",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:jsxRuntimeExports.jsx("div",{className:ho.sectionTitle,children:"Properties"})}),jsxRuntimeExports.jsx(AccordionPanel,{children:Object.keys(ao).map(go=>jsxRuntimeExports.jsx(FunctionParameterRow,{paramKey:go,paramSchema:ao[go],isRequired:lo==null?void 0:lo.includes(go)},go))})]})}),uo&&jsxRuntimeExports.jsx(Accordion,{collapsible:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"enum",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:jsxRuntimeExports.jsx("div",{className:ho.sectionTitle,children:"Possible values"})}),jsxRuntimeExports.jsx(AccordionPanel,{children:uo.map(go=>jsxRuntimeExports.jsx("div",{children:go},go))})]})})]})},useClasses$k=makeStyles({root:{...shorthands.padding("8px")},header:{fontSize:"24px",fontWeight:700,lineHeight:"30px"},parametersTitle:{fontSize:"20px",fontWeight:700,lineHeight:"28px"}}),LLMNodeToolCard=({tool:eo})=>{var no;const to=useClasses$k();return jsxRuntimeExports.jsx("div",{className:to.root,children:jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{className:to.header,children:eo.function.name})}),eo.function.description&&jsxRuntimeExports.jsx("div",{children:eo.function.description}),eo.function.parameters&&jsxRuntimeExports.jsx("div",{className:to.parametersTitle,children:"Parameters"}),Object.keys(((no=eo.function.parameters)==null?void 0:no.properties)||{}).map(io=>{var ao,lo,uo,ho;const so=(lo=(ao=eo.function.parameters)==null?void 0:ao.properties)==null?void 0:lo[io];return so?jsxRuntimeExports.jsx(FunctionParameterRow,{paramKey:io,paramSchema:so,isRequired:(ho=(uo=eo.function.parameters)==null?void 0:uo.required)==null?void 0:ho.includes(io)},io):null})]})})},useStyles$g=makeStyles({popoverTrigger:{cursor:"pointer",marginLeft:"4px",color:tokens$1.colorBrandBackground,...shorthands.textDecoration("underline")}}),LLMNodeMessageToolCalls=({message:eo,noContentHint:to})=>{const{function_call:no,tool_calls:io,tools:so}=eo,ao=useLocStrings(),lo=useStyles$g();return!no&&!io&&to?to:jsxRuntimeExports.jsxs(Accordion,{collapsible:!0,multiple:!0,defaultOpenItems:"tool_calls",children:[no&&jsxRuntimeExports.jsxs(AccordionItem,{value:"function_call",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:ao.Function_Calls}),jsxRuntimeExports.jsx(AccordionPanel,{children:jsxRuntimeExports.jsx(JsonNodeCard,{title:no.name??"Function call",src:no.arguments},no.name)})]}),io&&jsxRuntimeExports.jsxs(AccordionItem,{value:"tool_calls",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:ao.Tool_Calls}),jsxRuntimeExports.jsx(AccordionPanel,{children:(io??[]).map(uo=>{const ho=so==null?void 0:so.find(go=>go.function.name===uo.function.name);return jsxRuntimeExports.jsxs(Card,{style:{marginBottom:8},children:[jsxRuntimeExports.jsx(CardHeader,{header:ho?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("span",{children:["[",uo.type,"]"]}),jsxRuntimeExports.jsxs(Popover,{children:[jsxRuntimeExports.jsx(PopoverTrigger,{children:jsxRuntimeExports.jsx("div",{className:lo.popoverTrigger,children:uo.function.name})}),jsxRuntimeExports.jsx(PopoverSurface,{children:jsxRuntimeExports.jsx(LLMNodeToolCard,{tool:ho})})]})]}):`[${uo.type}] ${uo.function.name}`}),jsxRuntimeExports.jsx(JsonNodeCard,{title:ao.Arguments,src:uo.function.arguments})]},uo.id)})})]})]})},LLMMessageNodeContent=({selectedLLMMessage:eo})=>{const to=useNodeDetailClasses(),[no,io]=reactExports.useState("llm_message_preview"),so=useLocStrings(),ao=eo.tools&&eo.tools.length>0,lo=[{key:"llm_message_preview",name:so.Preview},{key:"llm_message_raw",name:so.Raw},...ao?[{key:"llm_message_tool_calls",name:so["Tool calls"]}]:[]];return jsxRuntimeExports.jsxs("div",{className:to.layoutLeft,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:lo,selectedTab:no,setSelectedTab:io}),jsxRuntimeExports.jsxs("div",{className:to.content,children:[no==="llm_message_preview"&&(eo.content?jsxRuntimeExports.jsx(ReactMarkdown,{text:`${eo.content}`}):jsxRuntimeExports.jsx(MessageBar,{intent:"info",children:"No content available"})),no==="llm_message_raw"&&(eo.content?jsxRuntimeExports.jsx(RawMarkdownContent,{content:`${eo.content}`,minHeight:480}):jsxRuntimeExports.jsx(MessageBar,{intent:"info",children:"No content available"})),no==="llm_message_tool_calls"&&jsxRuntimeExports.jsx(LLMNodeMessageToolCalls,{message:eo,noContentHint:jsxRuntimeExports.jsx(MessageBar,{intent:"info",children:"There is not any tool calls."})})]})]})},LLMMessageNodeHeader=({selectedLLMMessage:eo})=>{const to=useNodeDetailClasses();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LLMMessageSenderBadge,{name:eo.name,role:eo.role,className:to.headerSpan}),jsxRuntimeExports.jsx(Tooltip,{content:eo.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:to.headerTitle,children:`${eo.name??""}`})})]})},LLMNodeInvocationParametersTab=()=>{var Co,$o;const eo=useSelectedSpan(),to=useParentSpanOfSelectedSpan(),no=to==null?void 0:to.attributes,io=getSpanEventsWithPayload(to,BuildInEventName["prompt.template"])[0],so=io?(Co=io.attributes)==null?void 0:Co["prompt.variables"]:JSON.parse((no==null?void 0:no["prompt.variables"])??"{}"),lo=getSpanEventsWithPayload(eo,BuildInEventName["function.inputs"])[0]??JSON.parse((($o=eo==null?void 0:eo.attributes)==null?void 0:$o.inputs)??"{}"),uo=Object.keys(so??{}),ho={};Object.keys(lo).forEach(Ro=>{Ro!=="messages"&&(uo.includes(Ro)||(ho[Ro]=lo[Ro]))});const[go,mo]=reactExports.useState(ViewStatus.loading),yo=useLoadSpanEvents(eo,BuildInEventName["prompt.template"]),[So,_o]=reactExports.useState(ViewStatus.loading),ko=useLoadSpanEvents(eo,BuildInEventName["function.inputs"]);return reactExports.useEffect(()=>{_o(ViewStatus.loading),yo({onCompleted:Ro=>{mo(Ro?ViewStatus.error:ViewStatus.loaded)}}),_o(ViewStatus.loading),ko({onCompleted:Ro=>{_o(Ro?ViewStatus.error:ViewStatus.loaded)}})},[yo,ko]),go===ViewStatus.loading||So===ViewStatus.loading?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Spinner,{})}):go===ViewStatus.error||So===ViewStatus.error?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{mo(ViewStatus.loading),yo({onCompleted:Ro=>{mo(Ro?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0}),_o(ViewStatus.loading),ko({onCompleted:Ro=>{_o(Ro?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(LLMNodeInvocationParameters,{invocationParameters:ho})},LLMNodeInvocationParameters=({invocationParameters:eo})=>{const to=useIsDark();return jsxRuntimeExports.jsx(JsonViewer,{src:eo,theme:"vscode",dark:to})};var ChatMessageCategory=(eo=>(eo.System="system",eo.Error="error",eo.Chatbot="chatbot",eo.User="user",eo))(ChatMessageCategory||{}),ChatMessageType=(eo=>(eo.Message="message",eo.SessionSplit="session-split",eo))(ChatMessageType||{}),CopyStatus=(eo=>(eo[eo.PENDING=0]="PENDING",eo[eo.COPYING=1]="COPYING",eo[eo.COPIED=2]="COPIED",eo[eo.FAILED=3]="FAILED",eo))(CopyStatus||{}),ChatboxLocator=(eo=>(eo.MessageBubble="chatbox-message-bubble",eo.MessageContent="chatbox-message-content",eo.MessageList="chatbox-message-list",eo.MessageActionBar="chatbox-message-action-bar",eo))(ChatboxLocator||{}),ChatboxSelector=(eo=>(eo.MessageBubble='[data-chatbox-locator="chatbox-message-bubble"]',eo.MessageContent='[data-chatbox-locator="chatbox-message-content"]',eo.MessageList='[data-chatbox-locator="chatbox-message-list"]',eo.MessageActionBar='[data-chatbox-locator="chatbox-message-action-bar"]',eo))(ChatboxSelector||{});const defaultLocStrings$1={CopyToClipboard:"Copy to clipboard",CopyToClipboard_Copying:"Copying...",CopyToClipboard_Copied:"Copied!",CopyToClipboard_Failed:"Failed!",Header_Clear:"Click to clear all chat histories",Header_Close:"Click to close chat box",Header_EnterFullScreen:"Click to enter full screen mode",Header_ExitFullScreen:"Click to exit full screen mode",Header_Title:"Chat",Input_Placeholder:"Input anything to test...",MessageError_HideDetail:"Hide Detail",MessageError_ShowDetail:"Show Detail",MessageStatus_TimeSpentDesc:"time spent",MessageStatus_TimeSpentDscCapitalized:"Time spent",MessageStatus_TimeSpent_Unit:"sec",MessageStatus_TokensDesc:"Total tokens for generating this",MessageStatus_TokensUint:"tokens",SessionSplit_Desc:"Your session start from here.",Tooltip_Bottom:"Only default variants will be used for chat, if you want to test variants please try bulk test. For chatbot and test app bot, it will only show the chat output.",Tooltip_TotalTokens:"Total tokens",Typing:"Generating chat output for you"};class ChatboxViewModel{constructor(to){this.calcContentForCopy=yo=>this.calcContentForCopy$.getSnapshot()(yo),this.monitorInputContentChange=yo=>this.inputContentChangeTick$.subscribeStateChange(yo),this.notifyInputContentChange=()=>{this.inputContentChangeTick$.setState(yo=>yo+1)},this.sendMessage=yo=>{const So=this.editorRef.current;if(!So){console.log("!!!editorRef is not mounted.");return}const _o=yo??So.getContent(),ko=this.sendMessage$.getSnapshot(),$o=this.makeUserMessage$.getSnapshot()(_o);this.messages$.setState(Ro=>[...Ro,$o]),So.clear(),this.isOthersTyping$.next(!0),ko(_o,this,$o).then(Ro=>{Ro!==void 0&&this.messages$.setState(Oo=>[...Oo,Ro])}).finally(()=>{this.isOthersTyping$.next(!1)})},this.setCalcContentForCopy=yo=>{this.calcContentForCopy$.next(yo)},this.setMakeUserMessage=yo=>{this.makeUserMessage$.next(yo)},this.setSendMessage=yo=>{this.sendMessage$.next(yo)},this.sessionSplit=yo=>{const So={id:uuid_1.v4(),type:ChatMessageType.SessionSplit,history:[{category:ChatMessageCategory.System,from:"system",content:yo??"",timestamp:new Date().toISOString()}]};return this.messages$.setState(_o=>[..._o,So]),So};const{alias:no="",initialDisabled:io=!1,initialMessages:so=[],locStrings:ao=defaultLocStrings$1,calcContentForCopy:lo=yo=>typeof yo.content=="string"?yo.content:JSON.stringify(yo.content),makeUserMessage:uo=yo=>({id:uuid_1.v4(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.User,from:this.alias$.getSnapshot(),timestamp:new Date().toISOString(),content:yo}]}),sendMessage:ho=async yo=>({id:uuid_1.v4(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.Chatbot,from:"chatbot",timestamp:new Date().toISOString(),content:yo}]})}=to;this.editorRef={current:null};const go=new State(0),mo=Computed.fromObservables([go],()=>{var yo;return(yo=this.editorRef.current)==null?void 0:yo.isEmpty()});this.alias$=new State(no),this.disabled$=new State(io),this.inputContentChangeTick$=go,this.isEditorEmpty$=mo,this.isOthersTyping$=new State(!1),this.locStrings$=new State(ao),this.messages$=new State(so),this.calcContentForCopy$=new State(lo),this.makeUserMessage$=new State(uo),this.sendMessage$=new State(ho)}}const viewmodel=new ChatboxViewModel({sendMessage:()=>Promise.resolve({id:Date.now(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.System,from:"system",timestamp:new Date().toISOString(),content:"sendMessage not implemented!"}]})});React.createContext({viewmodel});function useEventCallback$1(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo}),reactExports.useCallback((...no)=>{const io=to.current;return io(...no)},[])}function useCopyAction(eo,to){const[no,io]=React.useState(CopyStatus.PENDING),so=useEventCallback$3(lo=>{if(no===CopyStatus.PENDING){io(CopyStatus.COPYING);try{const uo=to(lo);copy$5(uo),io(CopyStatus.COPIED)}catch{io(CopyStatus.FAILED)}}});return React.useEffect(()=>{if(no===CopyStatus.COPIED||no===CopyStatus.FAILED){let lo=setTimeout(()=>{lo=void 0,io(CopyStatus.PENDING)},1500);return()=>{lo&&clearTimeout(lo)}}},[no]),React.useMemo(()=>({key:"copy",group:2,icon:no===CopyStatus.PENDING?jsxRuntimeExports.jsx(Copy20Regular,{}):jsxRuntimeExports.jsx(CopyArrowRight20Regular,{}),tooltip:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:eo.CopyToClipboard}),disabled:no!==CopyStatus.PENDING,onClick:so,condition:lo=>lo.category===ChatMessageCategory.Chatbot||lo.category===ChatMessageCategory.User||lo.category===ChatMessageCategory.Error}),[eo,no,so])}makeStyles({copyButton:{cursor:"pointer"}});const defaultUploadPopoverLocStrings={Add:"Add",AddAnImage:"Add an image",PasteImageOrLinkHere:"Paste image or link here",UploadFromThisDevice:"Upload from this device"},ImageView=eo=>{const{src:to,alt:no,loading:io=!1,width:so,height:ao,styles:lo}=eo;return to?io?jsxRuntimeExports.jsx("div",{children:"Loading..."}):jsxRuntimeExports.jsx("div",{className:lo==null?void 0:lo.root,children:jsxRuntimeExports.jsx("img",{className:lo==null?void 0:lo.image,src:to,alt:no,width:so,height:ao})}):jsxRuntimeExports.jsx("div",{children:"This image can not be previewed."})},ImageViewModal=eo=>{const{src:to,alt:no,visible:io,loading:so=!1,width:ao,height:lo,onDismiss:uo}=eo,ho=useStyles$f(),go=jsxRuntimeExports.jsxs("div",{className:ho.container,children:[jsxRuntimeExports.jsxs("div",{className:ho.header,children:[jsxRuntimeExports.jsx("h2",{className:ho.heading,children:"Preview"}),jsxRuntimeExports.jsx(Button$2,{as:"button",appearance:"transparent",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),className:ho.dismissBtn,onClick:uo})]}),jsxRuntimeExports.jsx("div",{className:ho.main,children:jsxRuntimeExports.jsx(ImageView,{src:to,alt:no,loading:so,width:ao,height:lo,styles:{image:ho.image}})})]});return jsxRuntimeExports.jsx(Modal,{isOpen:io,isBlocking:!1,onDismiss:uo,children:go})},useStyles$f=makeStyles({container:{display:"flex",flexDirection:"column",flexWrap:"nowrap",...shorthands.padding("16px")},header:{...shorthands.flex(0,0,"auto"),display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",marginBottom:"20px"},heading:{...shorthands.margin(0),fontWeight:FontWeights.semibold,fontSize:"inherit"},dismissBtn:{"&&":{fontSize:"16px",lineHeight:"16px",height:"16px",width:"16px",color:tokens$1.colorNeutralStroke1}},main:{...shorthands.overflow("auto"),display:"flex",justifyContent:"center",alignItems:"center"},image:{width:"auto",height:"auto",maxWidth:"60vw",maxHeight:"60vh"}}),IMAGE_WIDTH="48px",MASK_SELECTOR_CLASS_NAME="__MASK_SELECTOR_CLASS_NAME__",UploadPopoverImagePreview=eo=>{const{image:to,alt:no,isReadonly:io,onClickDelete:so}=eo,[ao,lo]=React.useState(!1),uo=useStyles$e(),ho=React.useMemo(()=>{if(to)return typeof to=="string"?to:URL.createObjectURL(to)},[to]),go=React.useCallback(()=>{lo(yo=>!yo)},[]),mo=ho||"";return jsxRuntimeExports.jsxs("div",{className:mergeClasses(uo.root,io?uo.readonlyRoot:void 0),children:[jsxRuntimeExports.jsxs("div",{className:uo.imageContainer,children:[jsxRuntimeExports.jsx("img",{decoding:"async",className:uo.image,src:mo,alt:no}),jsxRuntimeExports.jsx("div",{"aria-hidden":!0,className:mergeClasses(uo.mask,MASK_SELECTOR_CLASS_NAME),onClick:go,role:"button",children:jsxRuntimeExports.jsx(ZoomIn20Regular,{})})]}),!io&&jsxRuntimeExports.jsx(Button$2,{as:"button",className:uo.closeButton,icon:jsxRuntimeExports.jsx(Dismiss20Regular,{}),onClick:so}),jsxRuntimeExports.jsx(ImageViewModal,{src:mo,alt:no||"",visible:ao,onDismiss:go})]})},useStyles$e=makeStyles({root:{boxSizing:"border-box",display:"flex",height:"32px",width:"80px",...shorthands.border("1px","solid",tokens$1.colorNeutralStroke2),...shorthands.borderRadius("4px")},readonlyRoot:{width:"48px"},imageContainer:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:IMAGE_WIDTH,[`:hover .${MASK_SELECTOR_CLASS_NAME}`]:{visibility:"visible"}},image:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto"},mask:{visibility:"hidden",cursor:"pointer",position:"absolute",top:0,left:0,width:`calc(${IMAGE_WIDTH} - 2px)`,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",color:tokens$1.colorNeutralForegroundStaticInverted,...shorthands.borderRadius("4px",0,0,"4px")},closeButton:{width:"32px",...shorthands.border(0)}}),UploadPopoverTrigger=React.forwardRef((eo,to)=>jsxRuntimeExports.jsx(Button$2,{...eo,ref:to,as:"button",appearance:"transparent",size:"medium",icon:jsxRuntimeExports.jsx(Attach16Regular,{})}));UploadPopoverTrigger.displayName="UploadPopoverTrigger";const mergeStyleSlots=(eo,...to)=>{const no={...eo};for(const io of Object.keys(eo))no[io]=mergeClasses(eo[io],...to.map(so=>so==null?void 0:so[io]));return no},UploadPopover=React.forwardRef(({isUploading:eo,disabled:to,errorMessage:no,trigger:io=jsxRuntimeExports.jsx(UploadPopoverTrigger,{}),locStrings:so=defaultUploadPopoverLocStrings,styles:ao,events:lo,onUpload:uo,onRenderImagePreview:ho},go)=>{const mo=mergeStyleSlots(useStyles$d(),ao),{onDelete:yo,onInputBlur:So,onPaste:_o,onLocalUpload:ko}=lo??{};React.useImperativeHandle(go,()=>({open(){$o(!0)},close(){$o(!1)},reset:()=>{Lo()},retrieve:()=>No}));const[Co,$o]=React.useState(!1),[Ro,Oo]=React.useState(""),[No,Mo]=React.useState(void 0),Bo=React.useRef(null),Po=React.useCallback((qo,Jo)=>{$o(Jo.open||!1)},[]),Lo=React.useCallback(()=>{Oo(""),Mo(void 0),Bo.current&&(Bo.current.value="")},[]),Go=React.useCallback(qo=>{const Jo=qo[0];Mo(Jo),_o==null||_o(Jo)},[_o]),Do=React.useCallback(qo=>{qo.clipboardData.files&&Go&&Go(qo.clipboardData.files)},[Go]),Uo=React.useCallback(()=>{So==null||So(Ro),Mo(Ro)},[Ro,So]),Ho=React.useCallback(()=>{No&&uo(No)},[No,uo]),Yo=React.useMemo(()=>ho?ho({cachedImage:No,customerInputContent:Ro,isReadonly:to||eo||!1}):jsxRuntimeExports.jsx(UploadPopoverImagePreview,{image:No||Ro,alt:Ro||"",isReadonly:eo,onClickDelete:()=>{Lo(),yo==null||yo()}}),[Ro,No,Lo,to,eo,yo,ho]);return jsxRuntimeExports.jsxs(Popover,{positioning:"above-end",open:Co,onOpenChange:Po,children:[jsxRuntimeExports.jsx(PopoverTrigger,{disableButtonEnhancement:!0,children:io}),jsxRuntimeExports.jsxs(PopoverSurface,{className:mo.attachUploadPopover,children:[jsxRuntimeExports.jsxs("div",{className:mo.attachUploadHeader,children:[jsxRuntimeExports.jsx("span",{children:so.AddAnImage}),jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to,appearance:"transparent",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),onClick:()=>{$o(!1)}})]}),jsxRuntimeExports.jsxs("div",{className:mo.attachUploadInputWrapper,children:[No?Yo:jsxRuntimeExports.jsx(Input,{className:mo.attachUploadInput,value:Ro,disabled:to,placeholder:so.PasteImageOrLinkHere,onChange:(qo,Jo)=>{Mo(void 0),Oo(Jo.value)},onPaste:Do,onBlur:Uo}),jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to||eo||!No&&!Ro,className:mo.addButton,onClick:Ho,children:eo?jsxRuntimeExports.jsx(Spinner,{size:"tiny"}):so.Add})]}),no&&jsxRuntimeExports.jsx("div",{className:mo.errorMessage,children:no}),jsxRuntimeExports.jsx("input",{tabIndex:-1,"aria-hidden":!0,ref:Bo,disabled:to,className:mo.invisibleFileInput,onChange:qo=>{var ps;const Jo=(ps=qo.target.files)==null?void 0:ps[0];Jo&&(ko==null||ko(Jo)),Mo(Jo)},type:"file",accept:"image/*"}),jsxRuntimeExports.jsx("div",{className:mo.triggerUploadButton,children:jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to,appearance:"transparent",icon:jsxRuntimeExports.jsx(ArrowUpload24Regular,{}),onClick:()=>{var qo;(qo=Bo.current)==null||qo.click()},children:so.UploadFromThisDevice})})]})]})});UploadPopover.displayName="UploadPopover";const useStyles$d=makeStyles({attachUploadPopover:{width:"400px",backgroundColor:tokens$1.colorNeutralBackground1,...shorthands.padding("12px")},attachUploadHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,fontSize:"16px",lineHeight:"22px"},attachUploadInputWrapper:{marginTop:"8px",display:"flex",columnGap:"8px",justifyContent:"space-between"},attachUploadInput:{flexGrow:1},addButton:{minWidth:"52px"},errorMessage:{color:tokens$1.colorPaletteRedBackground3},invisibleFileInput:{display:"none"},triggerUploadButton:{marginTop:"8px",display:"flex",justifyContent:"space-between"}});function DefaultMessageContentRenderer(eo){const{content:to,className:no}=eo,io=useStyles$c(),so=mergeClasses(io.content,no);if(typeof to=="string")return jsxRuntimeExports.jsx("p",{className:so,children:to});const ao=JSON.stringify(to,null,2);return jsxRuntimeExports.jsx("pre",{className:so,children:ao})}DefaultMessageContentRenderer.displayName="DefaultMessageContentRenderer";const useStyles$c=makeStyles({content:{...shorthands.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"}});function DefaultMessageErrorRenderer(eo){const{error:to,locStrings:no,className:io}=eo,[so,ao]=React.useState(!1),lo=useStyles$b(),uo=mergeClasses(lo.errorMessageDetail,!so&&lo.errorMessageDetailHidden);return jsxRuntimeExports.jsxs("div",{className:io,children:[jsxRuntimeExports.jsx(Link$1,{onClick:()=>ao(ho=>!ho),children:so?no.MessageError_HideDetail:no.MessageError_ShowDetail}),jsxRuntimeExports.jsx("p",{className:uo,children:to})]})}DefaultMessageErrorRenderer.displayName="DefaultMessageErrorRenderer";const useStyles$b=makeStyles({errorMessageDetail:{...shorthands.margin("8px","0","0","0"),...shorthands.borderTop("1px","solid",tokens$1.colorPaletteDarkRedBorderActive),wordBreak:"break-word",whiteSpace:"break-spaces"},errorMessageDetailHidden:{display:"none"}}),useToolbarDefaultActions=()=>React.useMemo(()=>[],[]);function DefaultMessageActionBarRenderer(eo){const{useMessageActions:to=useToolbarDefaultActions,data:no,className:io}=eo,so=to(no),ao=useStyles$a(),lo=React.useMemo(()=>{const go=so.filter(yo=>!yo.condition||yo.condition(no)).sort((yo,So)=>yo.group-So.group),mo=[];for(let yo=0,So;yo0))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ho=[];for(let go=0;go$o(no)},So)},So))}go+1{no>0&&so(no-1)},uo=()=>{no=ps?Jo:""+Array(ps+1-hs.length).join(Qo)+Jo},Mo={s:No,z:function(Jo){var ps=-Jo.utcOffset(),Qo=Math.abs(ps),hs=Math.floor(Qo/60),gs=Qo%60;return(ps<=0?"+":"-")+No(hs,2,"0")+":"+No(gs,2,"0")},m:function Jo(ps,Qo){if(ps.date()1)return Jo(vs[0])}else{var ks=ps.name;Po[ks]=ps,gs=ks}return!hs&&gs&&(Bo=gs),gs||!hs&&Bo},Uo=function(Jo,ps){if(Go(Jo))return Jo.clone();var Qo=typeof ps=="object"?ps:{};return Qo.date=Jo,Qo.args=arguments,new Yo(Qo)},Ho=Mo;Ho.l=Do,Ho.i=Go,Ho.w=function(Jo,ps){return Uo(Jo,{locale:ps.$L,utc:ps.$u,x:ps.$x,$offset:ps.$offset})};var Yo=function(){function Jo(Qo){this.$L=Do(Qo.locale,null,!0),this.parse(Qo),this.$x=this.$x||Qo.x||{},this[Lo]=!0}var ps=Jo.prototype;return ps.parse=function(Qo){this.$d=function(hs){var gs=hs.date,ys=hs.utc;if(gs===null)return new Date(NaN);if(Ho.u(gs))return new Date;if(gs instanceof Date)return new Date(gs);if(typeof gs=="string"&&!/Z$/i.test(gs)){var vs=gs.match($o);if(vs){var ks=vs[2]-1||0,Os=(vs[7]||"0").substring(0,3);return ys?new Date(Date.UTC(vs[1],ks,vs[3]||1,vs[4]||0,vs[5]||0,vs[6]||0,Os)):new Date(vs[1],ks,vs[3]||1,vs[4]||0,vs[5]||0,vs[6]||0,Os)}}return new Date(gs)}(Qo),this.init()},ps.init=function(){var Qo=this.$d;this.$y=Qo.getFullYear(),this.$M=Qo.getMonth(),this.$D=Qo.getDate(),this.$W=Qo.getDay(),this.$H=Qo.getHours(),this.$m=Qo.getMinutes(),this.$s=Qo.getSeconds(),this.$ms=Qo.getMilliseconds()},ps.$utils=function(){return Ho},ps.isValid=function(){return this.$d.toString()!==Co},ps.isSame=function(Qo,hs){var gs=Uo(Qo);return this.startOf(hs)<=gs&&gs<=this.endOf(hs)},ps.isAfter=function(Qo,hs){return Uo(Qo){const{duration:to,tokens:no,locStrings:io,className:so}=eo,ao=to.toFixed(2).replace(/\.?0*$/,"");return jsxRuntimeExports.jsxs("div",{className:so,children:[no>0&&jsxRuntimeExports.jsxs(React.Fragment,{children:[`${io.MessageStatus_TokensDesc}: `,jsxRuntimeExports.jsx("b",{children:no}),` ${io.MessageStatus_TokensUint}, `]}),`${no>0?io.MessageStatus_TimeSpentDesc:io.MessageStatus_TimeSpentDscCapitalized}: `,jsxRuntimeExports.jsx("b",{children:ao}),` ${io.MessageStatus_TimeSpent_Unit}`]})};DefaultMessageStatusRenderer.displayName="DefaultMessageStatusRenderer";const EMPTY_CONTEXTUAL_MENU_ITEMS$1=[],defaultUseContextualMenuItems$1=eo=>EMPTY_CONTEXTUAL_MENU_ITEMS$1;function DefaultMessageBubbleRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:no=DefaultMessageContentRenderer,MessageErrorRenderer:io=DefaultMessageErrorRenderer,MessageSenderRenderer:so=DefaultMessageSenderRenderer,MessagePaginationRenderer:ao=DefaultMessagePaginationRenderer,MessageActionBarRenderer:lo=DefaultMessageActionBarRenderer,MessageStatusRenderer:uo=DefaultMessageStatusRenderer,useMessageContextualMenuItems:ho=defaultUseContextualMenuItems$1,useMessageActions:go,initialPage:mo=-1,locStrings:yo,message:So,className:_o}=eo,ko=useStyles$8(),[Co,$o]=React.useState((mo%So.history.length+So.history.length)%So.history.length),[Ro,Oo]=React.useState(!1),No=React.useRef(null),Mo=React.useRef(null),Bo=React.useCallback(()=>{Oo(!1)},[]),Po=React.useCallback(Ho=>{const Yo=No.current,qo=Mo.current;if(Yo&&qo){const Jo=Ho.clientX,ps=Ho.clientY,Qo=Yo.getBoundingClientRect(),hs=Qo.left+window.scrollX,gs=Qo.top+window.scrollY,ys=Jo-hs,vs=ps-gs;qo.style.left=`${ys}px`,qo.style.top=`${vs}px`}},[]),Lo=React.useCallback(Ho=>{Ho.preventDefault(),Po(Ho),Oo(!0)},[]),Go=So.history[Co],Do=Go.category===ChatMessageCategory.User?"right":"left",Uo=ho(Go);return React.useEffect(()=>{const Ho=()=>{Oo(!1)};return document.addEventListener("mousedown",Ho),()=>document.removeEventListener("mousedown",Ho)},[]),jsxRuntimeExports.jsx("div",{className:ko.container,"data-chatbox-locator":ChatboxLocator.MessageBubble,"data-position":Do,children:jsxRuntimeExports.jsxs("div",{className:mergeClasses(ko.message,_o),"data-position":Do,children:[jsxRuntimeExports.jsx("div",{className:ko.avatar,children:to&&jsxRuntimeExports.jsx(to,{data:Go,position:Do})}),jsxRuntimeExports.jsxs("div",{className:ko.main,children:[jsxRuntimeExports.jsx("div",{className:ko.sender,children:jsxRuntimeExports.jsx(so,{data:Go,position:Do})}),jsxRuntimeExports.jsxs("div",{ref:No,className:ko.content,"data-category":Go.category,"data-chatbox-locator":ChatboxLocator.MessageContent,onContextMenu:Lo,onClick:Po,children:[jsxRuntimeExports.jsx(no,{content:Go.content,data:Go,className:ko.contentMain}),Go.error&&jsxRuntimeExports.jsx(io,{error:Go.error,locStrings:yo,className:ko.error}),typeof Go.duration=="number"&&typeof Go.tokens=="number"&&jsxRuntimeExports.jsx(uo,{duration:Go.duration,tokens:Go.tokens,locStrings:yo,className:ko.status}),So.history.length>1&&jsxRuntimeExports.jsx(ao,{className:ko.pagination,message:So,current:Co,setCurrent:$o}),jsxRuntimeExports.jsx("div",{ref:Mo,className:ko.contentMenuAnchor}),Uo.length>0&&jsxRuntimeExports.jsx(ContextualMenu,{items:Uo,hidden:!Ro,target:Mo,onItemClick:Bo,onDismiss:Bo,className:ko.contextualMenu}),jsxRuntimeExports.jsx("div",{className:ko.actionBar,"data-chatbox-locator":ChatboxLocator.MessageActionBar,children:jsxRuntimeExports.jsx(lo,{data:Go,locStrings:yo,useMessageActions:go})})]})]})]})})}DefaultMessageBubbleRenderer.displayName="DefaultMessageBubbleRenderer";const useStyles$8=makeStyles({container:{...shorthands.margin("16px","0"),display:"flex",justifyContent:"flex-start",'&&[data-position="right"]':{justifyContent:"flex-end"},width:"100%"},message:{display:"flex",flexDirection:"row",'&&[data-position="right"]':{flexDirection:"row-reverse"},maxWidth:"calc(100% - 80px)"},avatar:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...shorthands.flex(0,0,"auto")},content:{...shorthands.flex(1,1,"auto"),...shorthands.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...shorthands.margin(0)},[`&:hover > ${ChatboxSelector.MessageActionBar}`]:{display:"flex",visibility:"visible"},[`&&[data-category="${ChatMessageCategory.System}"]`]:{color:tokens$1.colorNeutralForeground4},[`&&[data-category="${ChatMessageCategory.Error}"]`]:{backgroundColor:tokens$1.colorPaletteRedBackground2,color:tokens$1.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.Chatbot}"]`]:{backgroundColor:tokens$1.colorNeutralBackground4,color:tokens$1.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.User}"]`]:{backgroundColor:tokens$1.colorBrandBackground2,color:tokens$1.colorNeutralForeground1}},contentMain:{...shorthands.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...shorthands.padding("0px","20px","12px","12px")},pagination:{},status:{...shorthands.borderTop("1px","solid",tokens$1.colorNeutralStroke1),...shorthands.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function DefaultSessionSplitRenderer(eo){const{locStrings:to,className:no}=eo,io=useStyles$7();return jsxRuntimeExports.jsx("div",{className:mergeClasses(io.sessionSplit,no),children:jsxRuntimeExports.jsxs("span",{children:["--- ",to.SessionSplit_Desc," ---"]})})}DefaultSessionSplitRenderer.displayName="DefaultSessionSplitRenderer";const useStyles$7=makeStyles({sessionSplit:{display:"flex",justifyContent:"center",height:"24px",color:tokens$1.colorNeutralForeground4}});makeStyles({hintTyping:{...shorthands.overflow("hidden"),width:"1px",height:"1px"},typingDots:{...shorthands.transition("opacity","0.1s"),display:"flex",alignItems:"center",height:"22.5px"},typingDot:{...shorthands.borderRadius("50%"),...shorthands.margin("0","0","0","6px"),display:"inline-block",width:"6px",height:"6px",backgroundColor:tokens$1.colorNeutralStroke1,animationDuration:"1.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{"0%":{transform:"scale(1)"},"16.67%":{transform:"scale(0)"},"33.33%":{transform:"scale(0)"},"50%":{transform:"scale(0)"},"66.67%":{transform:"scale(1)"},"83.33%":{transform:"scale(1)"},"100%":{transform:"scale(1)"}},"&:nth-child(1)":{...shorthands.margin("0px")},"&:nth-child(2)":{animationDelay:"0.18s"},"&:nth-child(3)":{animationDelay:"0.36s"}}});makeStyles({toolbar:{display:"flex",justifyContent:"flex-end"}});makeStyles({input:{...shorthands.border("1px","solid",tokens$1.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"grid",gridTemplateRows:"1fr auto"},editor:{boxSizing:"border-box"},editorInner:{...shorthands.border("0px"),boxSizing:"border-box"},editorToolbar:{boxSizing:"border-box",display:"flex",alignItems:"flex-end",justifyContent:"flex-end",height:"100%"}});function MessageListRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:no,MessageErrorRenderer:io,MessageSenderRenderer:so,MessageBubbleRenderer:ao=DefaultMessageBubbleRenderer,SessionSplitRenderer:lo=DefaultSessionSplitRenderer,className:uo,bubbleClassName:ho,sessionSplitClassName:go,locStrings:mo,messages:yo,useMessageContextualMenuItems:So,useMessageActions:_o}=eo,ko=useStyles$6();return jsxRuntimeExports.jsx("div",{className:mergeClasses(ko.container,uo),"data-chatbox-locator":ChatboxLocator.MessageList,children:yo.map(Co=>{switch(Co.type){case ChatMessageType.Message:return jsxRuntimeExports.jsx(ao,{MessageAvatarRenderer:to,MessageContentRenderer:no,MessageErrorRenderer:io,MessageSenderRenderer:so,locStrings:mo,message:Co,className:ho,useMessageContextualMenuItems:So,useMessageActions:_o},Co.id);case ChatMessageType.SessionSplit:return jsxRuntimeExports.jsx(lo,{locStrings:mo,className:go},Co.id);default:return jsxRuntimeExports.jsx(React.Fragment,{},Co.id)}})})}MessageListRenderer.displayName="MessageListRenderer";const useStyles$6=makeStyles({container:{boxSizing:"border-box"}}),nDe=class nDe extends React.PureComponent{render(){const{elements:to,deltaH:no,deltaW:io,scaleH:so,scaleW:ao,className:lo,elementClassName:uo,renderElement:ho}=this.props;return jsxRuntimeExports.jsx("div",{className:lo,children:to.map((go,mo)=>{const yo=(go.top-no)*so,So=(go.left-io)*ao,_o=go.height*so,ko=go.width*ao,Co={top:yo,left:So,height:_o,width:ko};return go.backgroundColor&&(Co.backgroundColor=go.backgroundColor),ho?ho(go,mo,uo,Co):jsxRuntimeExports.jsx("div",{className:uo,style:Co},mo)})})}};nDe.displayName="MinimapOverview";let MinimapOverview=nDe;const MinimapViewport=eo=>{const{scaleH:to,sourceRootRef:no,sourceQuerySelector:io,className:so}=eo,[ao,lo]=React.useState(0),[uo,ho]=React.useState(0),go=useStyles$5();return React.useLayoutEffect(()=>{var _o,ko;const mo=(ko=(_o=no.current)==null?void 0:_o.querySelector(io))==null?void 0:ko.parentElement;if(!mo)return()=>{};const{height:yo}=mo.getBoundingClientRect();ho(yo);const So=()=>{lo(mo.scrollTop||0)};return mo.addEventListener("scroll",So),()=>mo.removeEventListener("scroll",So)},[no.current]),jsxRuntimeExports.jsx("div",{className:mergeClasses(go.viewport,so),style:{position:"absolute",top:ao*to,height:`${uo*to}px`}})};MinimapViewport.displayName="MinimapViewport";const useStyles$5=makeStyles({viewport:{display:"block",width:"100%",left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.15)"}}),Minimap=eo=>{const{SCROLL_DELTA_THRESHOLD:to=5,syncScale:no=!0,sourceRootRef:io,sourceQuerySelector:so,sourceElementQuerySelector:ao,className:lo,overviewClassName:uo,overviewElementClassName:ho,viewportClassName:go,getElementBackgroundColor:mo,renderElement:yo,style:So}=eo,[_o,ko]=React.useState([]),[Co,$o]=React.useState(0),[Ro,Oo]=React.useState(0),[No,Mo]=React.useState(0),[Bo,Po]=React.useState(0),[Lo,Go]=React.useState(0),[Do,Uo]=React.useState(0),[Ho,Yo]=React.useState(0),[qo,Jo]=React.useState(0),ps=Bo<=0?0:Ro/Bo||.1,Qo=No<=0?0:no?Math.max(1/No,Math.min(ps,(Co-10)/No||.1)):Math.max(1/No,(Co-10)/No||.1),hs=React.useRef(null),gs=React.useRef(null),ys=React.useRef(!1),vs=useEventCallback$1(Ps=>{var ga,Fs;if(Ps.preventDefault(),Ps.stopPropagation(),ys.current=!0,!gs.current)return;const qs=(Fs=(ga=io.current)==null?void 0:ga.querySelector(so))==null?void 0:Fs.parentElement;if(qs){const Vs=(Ps.clientY-gs.current.getBoundingClientRect().top)/Qo;Math.abs(qs.scrollTop-Vs)>to&&(qs.scrollTop=Vs)}}),ks=useEventCallback$1(Ps=>{var ga,Fs;if(Ps.preventDefault(),Ps.stopPropagation(),!ys.current||!gs.current)return;const qs=(Fs=(ga=io.current)==null?void 0:ga.querySelector(so))==null?void 0:Fs.parentElement;if(qs){const Vs=(Ps.clientY-gs.current.getBoundingClientRect().top)/Qo;Math.abs(qs.scrollTop-Vs)>to&&(qs.scrollTop=Vs)}}),Os=React.useCallback(Ps=>{const qs=Ps.querySelector(so);if(!qs)return;const ga=qs.querySelectorAll(ao),Fs=[];for(let Vs=0;Vs{const Ps=()=>{ys.current=!1};return document.addEventListener("mouseup",Ps),()=>document.removeEventListener("mouseup",Ps)},[]),React.useLayoutEffect(()=>{const Ps=hs.current;if(!Ps)return;const{height:qs,width:ga}=Ps.getBoundingClientRect();$o(qs),Oo(ga)},[]),React.useLayoutEffect(()=>{const Ps=io.current;if(!Ps)return()=>{};Os(Ps);const qs=new MutationObserver(ga=>{for(const Fs of ga)Fs.type==="childList"&&Os(Ps)});return qs.observe(Ps,{childList:!0,subtree:!0}),()=>{qs.disconnect()}},[io.current,Os]);const Ts=useStyles$4(),Xs=No+Lo-Ho,Ws=Bo+Do-qo;return jsxRuntimeExports.jsx("div",{ref:hs,className:mergeClasses(Ts.container,lo),style:So,children:jsxRuntimeExports.jsxs("div",{ref:gs,className:Ts.minimap,onMouseDown:vs,onMouseMove:ks,children:[jsxRuntimeExports.jsx(MinimapOverview,{elements:_o,deltaH:Xs,deltaW:Ws,scaleH:Qo,scaleW:ps,className:mergeClasses(Ts.overview,uo),elementClassName:mergeClasses(Ts.minimapElement,ho),renderElement:yo}),jsxRuntimeExports.jsx(MinimapViewport,{scaleH:Qo,sourceRootRef:io,sourceQuerySelector:so,className:go})]})})};Minimap.displayName="Minimap";const useStyles$4=makeStyles({container:{height:"100%",width:"100%",...shorthands.overflow("hidden")},minimap:{position:"relative",width:"100%",height:"100%"},overview:{},minimapElement:{position:"absolute",backgroundColor:"#c292f9"}});makeStyles({editor:{...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens$1.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative",'&[data-disabled="true"]':{backgroundColor:tokens$1.colorNeutralBackgroundDisabled}},textarea:{...shorthands.padding("0px"),...shorthands.overflow("hidden","auto"),...shorthands.borderWidth(0),...shorthands.outline(0,"solid","transparent"),backgroundColor:"transparent",boxSizing:"border-box",resize:"none",appearance:"none",overflowWrap:"break-word",lineHeight:"24px",height:"24px",width:"100%",wordBreak:"break-all",color:tokens$1.colorNeutralForeground1,userSelect:"text"}});function e$1(eo){return{}}const t$4={},n$2={},r$1={},i$6={},s$2={},o$5={},l$3={},c$6={},u$5={},a$4={},f$5={},d$4={},h$3={},g$6={},_$6={},p$5={},y$7={},m$5={},x$8={},v$3={},T$4={},S$5={},k$2={},C$5={},b$2={},N$3={},w$4={},E$4={},P$3={},D$3={},I$1={},O$2={},A$3={},L$2={},F$1={},M$3={},W={},z$1={},B$2={},R$2={},K$4={},J={},U={},V={},$$1={};var H$1=function(eo){const to=new URLSearchParams;to.append("code",eo);for(let no=1;noko+Math.ceil(Co.length/80),0);let So=yo?yo*19:100;io&&Soso&&(So=so),ho(So)};return jsxRuntimeExports.jsx(Ft$1,{value:eo,theme:ao?"vs-dark":"light",options:{readOnly:!0,minimap:{enabled:!0},wordWrap:"on",wordWrapColumn:80},defaultLanguage:"markdown",className:to,height:uo,onMount:mo=>{lo.current=mo,go(),mo.onDidChangeModelContent(go)}})},MarkdownViewer=({content:eo})=>{const to=useStyles$h();return jsxRuntimeExports.jsx(BasicViewer,{styles:to,showEmpty:!eo,previewRender:()=>jsxRuntimeExports.jsx(ReactMarkdown,{text:`${eo}`}),rawRender:()=>jsxRuntimeExports.jsx(RawMarkdownContent,{content:`${eo}`,className:to.raw})})},useStyles$h=makeStyles({root:{wordBreak:"break-all",whiteSpace:"break-spaces",...shorthands.overflow("auto")},raw:{minHeight:"100px"}}),EmbeddingNodeInfo=()=>{var ho,go,mo;const eo=useSelectedSpan(),to=((ho=eo==null?void 0:eo.attributes)==null?void 0:ho["llm.response.model"])??((go=eo==null?void 0:eo.attributes)==null?void 0:go["embedding.model"]),no=useLocStrings(),[io,so]=reactExports.useState(ViewStatus.loading),ao=useLoadSpanEvents(eo,BuildInEventName["embedding.embeddings"]),lo=getSpanEventsWithPayload(eo,BuildInEventName["embedding.embeddings"]);let uo;try{uo=JSON.parse(((mo=eo==null?void 0:eo.attributes)==null?void 0:mo["embedding.embeddings"])??"[]")??[]}catch{uo=[]}return lo.length>0&&(uo=lo.map(yo=>(yo==null?void 0:yo.attributes)??[]).flat()),reactExports.useEffect(()=>{so(ViewStatus.loading),ao({onCompleted:yo=>{so(yo?ViewStatus.error:ViewStatus.loaded)}})},[ao]),io===ViewStatus.loading?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh"},children:jsxRuntimeExports.jsx(Spinner,{size:"tiny"})}):io===ViewStatus.error?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{so(ViewStatus.loading),ao({onCompleted:yo=>{so(yo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("span",{children:to})}),uo.map((yo,So)=>jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("i",{children:no.Embedded_text})}),yo["embedding.text"]?jsxRuntimeExports.jsx(MarkdownViewer,{content:yo["embedding.text"]}):null]},So))]})},EmbeddingSpanDetailContent=()=>{var ho;const eo=useSelectedSpan(),[to,no]=reactExports.useState("embedding"),io=useNodeDetailClasses(),so=useLocStrings(),ao=(ho=eo==null?void 0:eo.events)==null?void 0:ho.filter(go=>go.name===BuildInEventName.exception),lo=(ao==null?void 0:ao.length)??0,uo=[{key:"embedding",name:so.Embedding},{key:"raw",name:so.Raw_JSON},{key:"error",name:so.Exception,icon:jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:lo>0?"danger":"informative",count:lo,size:"small",showZero:!0})}];return jsxRuntimeExports.jsxs("div",{className:io.layoutLeft,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:uo,selectedTab:to,setSelectedTab:no}),jsxRuntimeExports.jsx(SpanDetailErrorMessageBar,{setSelectedTab:no}),jsxRuntimeExports.jsxs("div",{className:io.content,children:[to==="embedding"&&jsxRuntimeExports.jsx(EmbeddingNodeInfo,{}),to==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),to==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{})]})]})},getMimeTypeFromContentType=eo=>{var no;return(no=/^\s*([^;\s]*)(?:;|\s|$)/.exec(eo))==null?void 0:no[1].toLowerCase()},NodeHttpCard=({type:eo})=>{const to=useLocStrings(),no=useSelectedSpan(),io=React.useMemo(()=>parseHttpSpanAttributes(no),[no]);if(!io)return null;const{urlFull:so}=io,ao=parseInt(io.status_code);let lo;ao>=200&&ao<300?lo="success":ao>=400?lo="danger":lo="warning";const uo=jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[io.status_code!==void 0?jsxRuntimeExports.jsxs(Badge$2,{appearance:"outline",color:lo,children:[to.Status," ",jsxRuntimeExports.jsx("span",{style:{marginLeft:4},children:io.status_code})]}):null,jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:io.method}),jsxRuntimeExports.jsx("span",{style:{marginRight:8,wordBreak:"break-all"},children:so})]}),ho=eo==="response"?io.response:io.request;return jsxRuntimeExports.jsx(Card,{style:{marginBottom:12},children:jsxRuntimeExports.jsx(NodeHttpItem,{type:eo,header:uo,data:ho})})},NodeHttpItem=({type:eo,header:to,data:no})=>{const io=useLocStrings(),{headers:so,body:ao}=no,lo=JSON.stringify(no),uo=eo==="response",ho=uo?"Response":"Request";let go;if(ao)if(uo){const mo=getMimeTypeFromContentType(so["content-type"]);go=jsxRuntimeExports.jsx(HttpResponseContent,{mimeType:mo,body:ao})}else go=jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens$1.colorNeutralBackground2},src:ao,title:io[`${ho} Body`]});return jsxRuntimeExports.jsx(BasicViewer,{showEmpty:!1,previewRender:()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens$1.colorNeutralBackground2},src:so,title:io[`${ho} Headers`]}),go]}),rawRender:()=>jsxRuntimeExports.jsx(Card,{style:{wordBreak:"break-all"},children:lo}),headerRender:to?()=>to:void 0})},HttpResponseContent=({mimeType:eo,body:to=""})=>{const no=useLocStrings();return eo!=null&&eo.includes("json")?jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens$1.colorNeutralBackground2},src:to,title:no["Response Body"]}):eo==="text/event-stream"?jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,background:tokens$1.colorNeutralBackground2},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:no["Response Body"]})})}),to.split("data:").filter(io=>!!io).map((io,so)=>jsxRuntimeExports.jsxs("div",{children:["data: ",io]},`${io}-${so}`))]}):jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,background:tokens$1.colorNeutralBackground2},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:no["Response Body"]})})}),jsxRuntimeExports.jsx("div",{style:{wordBreak:"break-all"},children:to})]})},HttpSpanDetailContent=()=>{var ho;const eo=useSelectedSpan(),to=useNodeDetailClasses(),no=useLocStrings(),[io,so]=reactExports.useState("response"),ao=(ho=eo==null?void 0:eo.events)==null?void 0:ho.filter(go=>go.name===BuildInEventName.exception),lo=(ao==null?void 0:ao.length)??0,uo=[{key:"response",name:no.Response},{key:"request",name:no.Request},{key:"raw",name:no.Raw_JSON},{key:"error",name:no.Exception,icon:jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:lo>0?"danger":"informative",count:lo,size:"small",showZero:!0})}];return jsxRuntimeExports.jsxs("div",{className:to.layoutLeft,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:uo,selectedTab:io,setSelectedTab:so}),jsxRuntimeExports.jsx(SpanDetailErrorMessageBar,{setSelectedTab:so}),jsxRuntimeExports.jsxs("div",{className:to.content,children:[io==="response"&&jsxRuntimeExports.jsx(NodeHttpCard,{type:"response"}),io==="request"&&jsxRuntimeExports.jsx(NodeHttpCard,{type:"request"}),io==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),io==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{})]})]})},useClasses$l=makeStyles({header:{display:"flex",alignItems:"center"},paramKey:{fontSize:"14px",fontWeight:600,lineHeight:"20px",marginRight:"4px"},type:{fontSize:"13px",marginLeft:"10px",lineHeight:"20px",color:tokens$1.colorNeutralForeground3},description:{fontSize:"14px",lineHeight:"21px"},required:{color:tokens$1.colorPaletteRedForeground1,marginLeft:"10px"},optional:{color:tokens$1.colorPaletteGreenForeground1,marginLeft:"10px"},sectionTitle:{fontSize:"12px",color:tokens$1.colorNeutralForeground3}}),FunctionParameterRow=({paramKey:eo,paramSchema:to,isRequired:no})=>{const{type:io,description:so,properties:ao,required:lo,enum:uo}=to,ho=useClasses$l();return jsxRuntimeExports.jsxs(Card,{appearance:"outline",children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsxs("div",{className:ho.header,children:[jsxRuntimeExports.jsx("div",{className:ho.paramKey,children:eo}),jsxRuntimeExports.jsx("div",{className:ho.type,children:io}),no?jsxRuntimeExports.jsx("div",{className:ho.required,children:"Required"}):jsxRuntimeExports.jsx("div",{className:ho.optional,children:"Optional"})]})}),so&&jsxRuntimeExports.jsx("div",{className:ho.description,children:so}),ao&&jsxRuntimeExports.jsx(Accordion,{collapsible:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"properties",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:jsxRuntimeExports.jsx("div",{className:ho.sectionTitle,children:"Properties"})}),jsxRuntimeExports.jsx(AccordionPanel,{children:Object.keys(ao).map(go=>jsxRuntimeExports.jsx(FunctionParameterRow,{paramKey:go,paramSchema:ao[go],isRequired:lo==null?void 0:lo.includes(go)},go))})]})}),uo&&jsxRuntimeExports.jsx(Accordion,{collapsible:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"enum",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:jsxRuntimeExports.jsx("div",{className:ho.sectionTitle,children:"Possible values"})}),jsxRuntimeExports.jsx(AccordionPanel,{children:uo.map(go=>jsxRuntimeExports.jsx("div",{children:go},go))})]})})]})},useClasses$k=makeStyles({root:{...shorthands.padding("8px")},header:{fontSize:"24px",fontWeight:700,lineHeight:"30px"},parametersTitle:{fontSize:"20px",fontWeight:700,lineHeight:"28px"}}),LLMNodeToolCard=({tool:eo})=>{var no;const to=useClasses$k();return jsxRuntimeExports.jsx("div",{className:to.root,children:jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{className:to.header,children:eo.function.name})}),eo.function.description&&jsxRuntimeExports.jsx("div",{children:eo.function.description}),eo.function.parameters&&jsxRuntimeExports.jsx("div",{className:to.parametersTitle,children:"Parameters"}),Object.keys(((no=eo.function.parameters)==null?void 0:no.properties)||{}).map(io=>{var ao,lo,uo,ho;const so=(lo=(ao=eo.function.parameters)==null?void 0:ao.properties)==null?void 0:lo[io];return so?jsxRuntimeExports.jsx(FunctionParameterRow,{paramKey:io,paramSchema:so,isRequired:(ho=(uo=eo.function.parameters)==null?void 0:uo.required)==null?void 0:ho.includes(io)},io):null})]})})},useStyles$g=makeStyles({popoverTrigger:{cursor:"pointer",marginLeft:"4px",color:tokens$1.colorBrandBackground,...shorthands.textDecoration("underline")}}),LLMNodeMessageToolCalls=({message:eo,noContentHint:to})=>{const{function_call:no,tool_calls:io,tools:so}=eo,ao=useLocStrings(),lo=useStyles$g();return!no&&!io&&to?to:jsxRuntimeExports.jsxs(Accordion,{collapsible:!0,multiple:!0,defaultOpenItems:"tool_calls",children:[no&&jsxRuntimeExports.jsxs(AccordionItem,{value:"function_call",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:ao.Function_Calls}),jsxRuntimeExports.jsx(AccordionPanel,{children:jsxRuntimeExports.jsx(JsonNodeCard,{title:no.name??"Function call",src:no.arguments},no.name)})]}),io&&jsxRuntimeExports.jsxs(AccordionItem,{value:"tool_calls",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:ao.Tool_Calls}),jsxRuntimeExports.jsx(AccordionPanel,{children:(io??[]).map(uo=>{const ho=so==null?void 0:so.find(go=>go.function.name===uo.function.name);return jsxRuntimeExports.jsxs(Card,{style:{marginBottom:8},children:[jsxRuntimeExports.jsx(CardHeader,{header:ho?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("span",{children:["[",uo.type,"]"]}),jsxRuntimeExports.jsxs(Popover,{children:[jsxRuntimeExports.jsx(PopoverTrigger,{children:jsxRuntimeExports.jsx("div",{className:lo.popoverTrigger,children:uo.function.name})}),jsxRuntimeExports.jsx(PopoverSurface,{children:jsxRuntimeExports.jsx(LLMNodeToolCard,{tool:ho})})]})]}):`[${uo.type}] ${uo.function.name}`}),jsxRuntimeExports.jsx(JsonNodeCard,{title:ao.Arguments,src:uo.function.arguments})]},uo.id)})})]})]})},LLMMessageNodeContent=({selectedLLMMessage:eo})=>{const to=useNodeDetailClasses(),[no,io]=reactExports.useState("llm_message_preview"),so=useLocStrings(),ao=eo.tools&&eo.tools.length>0,lo=[{key:"llm_message_preview",name:so.Preview},{key:"llm_message_raw",name:so.Raw},...ao?[{key:"llm_message_tool_calls",name:so["Tool calls"]}]:[]];return jsxRuntimeExports.jsxs("div",{className:to.layoutLeft,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:lo,selectedTab:no,setSelectedTab:io}),jsxRuntimeExports.jsxs("div",{className:to.content,children:[no==="llm_message_preview"&&(eo.content?jsxRuntimeExports.jsx(ReactMarkdown,{text:`${eo.content}`}):jsxRuntimeExports.jsx(MessageBar,{intent:"info",children:"No content available"})),no==="llm_message_raw"&&(eo.content?jsxRuntimeExports.jsx(RawMarkdownContent,{content:`${eo.content}`,minHeight:480}):jsxRuntimeExports.jsx(MessageBar,{intent:"info",children:"No content available"})),no==="llm_message_tool_calls"&&jsxRuntimeExports.jsx(LLMNodeMessageToolCalls,{message:eo,noContentHint:jsxRuntimeExports.jsx(MessageBar,{intent:"info",children:"There is not any tool calls."})})]})]})},LLMMessageNodeHeader=({selectedLLMMessage:eo})=>{const to=useNodeDetailClasses();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LLMMessageSenderBadge,{name:eo.name,role:eo.role,className:to.headerSpan}),jsxRuntimeExports.jsx(Tooltip,{content:eo.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:to.headerTitle,children:`${eo.name??""}`})})]})},LLMNodeInvocationParametersTab=()=>{var Co,$o;const eo=useSelectedSpan(),to=useParentSpanOfSelectedSpan(),no=to==null?void 0:to.attributes,io=getSpanEventsWithPayload(to,BuildInEventName["prompt.template"])[0],so=io?(Co=io.attributes)==null?void 0:Co["prompt.variables"]:JSON.parse((no==null?void 0:no["prompt.variables"])??"{}"),lo=getSpanEventsWithPayload(eo,BuildInEventName["function.inputs"])[0]??JSON.parse((($o=eo==null?void 0:eo.attributes)==null?void 0:$o.inputs)??"{}"),uo=Object.keys(so??{}),ho={};Object.keys(lo).forEach(Ro=>{Ro!=="messages"&&(uo.includes(Ro)||(ho[Ro]=lo[Ro]))});const[go,mo]=reactExports.useState(ViewStatus.loading),yo=useLoadSpanEvents(eo,BuildInEventName["prompt.template"]),[So,_o]=reactExports.useState(ViewStatus.loading),ko=useLoadSpanEvents(eo,BuildInEventName["function.inputs"]);return reactExports.useEffect(()=>{_o(ViewStatus.loading),yo({onCompleted:Ro=>{mo(Ro?ViewStatus.error:ViewStatus.loaded)}}),_o(ViewStatus.loading),ko({onCompleted:Ro=>{_o(Ro?ViewStatus.error:ViewStatus.loaded)}})},[yo,ko]),go===ViewStatus.loading||So===ViewStatus.loading?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Spinner,{})}):go===ViewStatus.error||So===ViewStatus.error?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{mo(ViewStatus.loading),yo({onCompleted:Ro=>{mo(Ro?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0}),_o(ViewStatus.loading),ko({onCompleted:Ro=>{_o(Ro?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(LLMNodeInvocationParameters,{invocationParameters:ho})},LLMNodeInvocationParameters=({invocationParameters:eo})=>{const to=useIsDark();return jsxRuntimeExports.jsx(JsonViewer,{src:eo,theme:"vscode",dark:to})};var ChatMessageCategory=(eo=>(eo.System="system",eo.Error="error",eo.Chatbot="chatbot",eo.User="user",eo))(ChatMessageCategory||{}),ChatMessageType=(eo=>(eo.Message="message",eo.SessionSplit="session-split",eo))(ChatMessageType||{}),CopyStatus=(eo=>(eo[eo.PENDING=0]="PENDING",eo[eo.COPYING=1]="COPYING",eo[eo.COPIED=2]="COPIED",eo[eo.FAILED=3]="FAILED",eo))(CopyStatus||{}),ChatboxLocator=(eo=>(eo.MessageBubble="chatbox-message-bubble",eo.MessageContent="chatbox-message-content",eo.MessageList="chatbox-message-list",eo.MessageActionBar="chatbox-message-action-bar",eo))(ChatboxLocator||{}),ChatboxSelector=(eo=>(eo.MessageBubble='[data-chatbox-locator="chatbox-message-bubble"]',eo.MessageContent='[data-chatbox-locator="chatbox-message-content"]',eo.MessageList='[data-chatbox-locator="chatbox-message-list"]',eo.MessageActionBar='[data-chatbox-locator="chatbox-message-action-bar"]',eo))(ChatboxSelector||{});const defaultLocStrings$1={CopyToClipboard:"Copy to clipboard",CopyToClipboard_Copying:"Copying...",CopyToClipboard_Copied:"Copied!",CopyToClipboard_Failed:"Failed!",Header_Clear:"Click to clear all chat histories",Header_Close:"Click to close chat box",Header_EnterFullScreen:"Click to enter full screen mode",Header_ExitFullScreen:"Click to exit full screen mode",Header_Title:"Chat",Input_Placeholder:"Input anything to test...",MessageError_HideDetail:"Hide Detail",MessageError_ShowDetail:"Show Detail",MessageStatus_TimeSpentDesc:"time spent",MessageStatus_TimeSpentDscCapitalized:"Time spent",MessageStatus_TimeSpent_Unit:"sec",MessageStatus_TokensDesc:"Total tokens for generating this",MessageStatus_TokensUint:"tokens",SessionSplit_Desc:"Your session start from here.",Tooltip_Bottom:"Only default variants will be used for chat, if you want to test variants please try bulk test. For chatbot and test app bot, it will only show the chat output.",Tooltip_TotalTokens:"Total tokens",Typing:"Generating chat output for you"};class ChatboxViewModel{constructor(to){this.calcContentForCopy=yo=>this.calcContentForCopy$.getSnapshot()(yo),this.monitorInputContentChange=yo=>this.inputContentChangeTick$.subscribeStateChange(yo),this.notifyInputContentChange=()=>{this.inputContentChangeTick$.setState(yo=>yo+1)},this.sendMessage=yo=>{const So=this.editorRef.current;if(!So){console.log("!!!editorRef is not mounted.");return}const _o=yo??So.getContent(),ko=this.sendMessage$.getSnapshot(),$o=this.makeUserMessage$.getSnapshot()(_o);this.messages$.setState(Ro=>[...Ro,$o]),So.clear(),this.isOthersTyping$.next(!0),ko(_o,this,$o).then(Ro=>{Ro!==void 0&&this.messages$.setState(Oo=>[...Oo,Ro])}).finally(()=>{this.isOthersTyping$.next(!1)})},this.setCalcContentForCopy=yo=>{this.calcContentForCopy$.next(yo)},this.setMakeUserMessage=yo=>{this.makeUserMessage$.next(yo)},this.setSendMessage=yo=>{this.sendMessage$.next(yo)},this.sessionSplit=yo=>{const So={id:uuid_1.v4(),type:ChatMessageType.SessionSplit,history:[{category:ChatMessageCategory.System,from:"system",content:yo??"",timestamp:new Date().toISOString()}]};return this.messages$.setState(_o=>[..._o,So]),So};const{alias:no="",initialDisabled:io=!1,initialMessages:so=[],locStrings:ao=defaultLocStrings$1,calcContentForCopy:lo=yo=>typeof yo.content=="string"?yo.content:JSON.stringify(yo.content),makeUserMessage:uo=yo=>({id:uuid_1.v4(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.User,from:this.alias$.getSnapshot(),timestamp:new Date().toISOString(),content:yo}]}),sendMessage:ho=async yo=>({id:uuid_1.v4(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.Chatbot,from:"chatbot",timestamp:new Date().toISOString(),content:yo}]})}=to;this.editorRef={current:null};const go=new State(0),mo=Computed.fromObservables([go],()=>{var yo;return(yo=this.editorRef.current)==null?void 0:yo.isEmpty()});this.alias$=new State(no),this.disabled$=new State(io),this.inputContentChangeTick$=go,this.isEditorEmpty$=mo,this.isOthersTyping$=new State(!1),this.locStrings$=new State(ao),this.messages$=new State(so),this.calcContentForCopy$=new State(lo),this.makeUserMessage$=new State(uo),this.sendMessage$=new State(ho)}}const viewmodel=new ChatboxViewModel({sendMessage:()=>Promise.resolve({id:Date.now(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.System,from:"system",timestamp:new Date().toISOString(),content:"sendMessage not implemented!"}]})});React.createContext({viewmodel});function useEventCallback$1(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo}),reactExports.useCallback((...no)=>{const io=to.current;return io(...no)},[])}function useCopyAction(eo,to){const[no,io]=React.useState(CopyStatus.PENDING),so=useEventCallback$3(lo=>{if(no===CopyStatus.PENDING){io(CopyStatus.COPYING);try{const uo=to(lo);copy$5(uo),io(CopyStatus.COPIED)}catch{io(CopyStatus.FAILED)}}});return React.useEffect(()=>{if(no===CopyStatus.COPIED||no===CopyStatus.FAILED){let lo=setTimeout(()=>{lo=void 0,io(CopyStatus.PENDING)},1500);return()=>{lo&&clearTimeout(lo)}}},[no]),React.useMemo(()=>({key:"copy",group:2,icon:no===CopyStatus.PENDING?jsxRuntimeExports.jsx(Copy20Regular,{}):jsxRuntimeExports.jsx(CopyArrowRight20Regular,{}),tooltip:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:eo.CopyToClipboard}),disabled:no!==CopyStatus.PENDING,onClick:so,condition:lo=>lo.category===ChatMessageCategory.Chatbot||lo.category===ChatMessageCategory.User||lo.category===ChatMessageCategory.Error}),[eo,no,so])}makeStyles({copyButton:{cursor:"pointer"}});const defaultUploadPopoverLocStrings={Add:"Add",AddAnImage:"Add an image",PasteImageOrLinkHere:"Paste image or link here",UploadFromThisDevice:"Upload from this device"},ImageView=eo=>{const{src:to,alt:no,loading:io=!1,width:so,height:ao,styles:lo}=eo;return to?io?jsxRuntimeExports.jsx("div",{children:"Loading..."}):jsxRuntimeExports.jsx("div",{className:lo==null?void 0:lo.root,children:jsxRuntimeExports.jsx("img",{className:lo==null?void 0:lo.image,src:to,alt:no,width:so,height:ao})}):jsxRuntimeExports.jsx("div",{children:"This image can not be previewed."})},ImageViewModal=eo=>{const{src:to,alt:no,visible:io,loading:so=!1,width:ao,height:lo,onDismiss:uo}=eo,ho=useStyles$f(),go=jsxRuntimeExports.jsxs("div",{className:ho.container,children:[jsxRuntimeExports.jsxs("div",{className:ho.header,children:[jsxRuntimeExports.jsx("h2",{className:ho.heading,children:"Preview"}),jsxRuntimeExports.jsx(Button$2,{as:"button",appearance:"transparent",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),className:ho.dismissBtn,onClick:uo})]}),jsxRuntimeExports.jsx("div",{className:ho.main,children:jsxRuntimeExports.jsx(ImageView,{src:to,alt:no,loading:so,width:ao,height:lo,styles:{image:ho.image}})})]});return jsxRuntimeExports.jsx(Modal,{isOpen:io,isBlocking:!1,onDismiss:uo,children:go})},useStyles$f=makeStyles({container:{display:"flex",flexDirection:"column",flexWrap:"nowrap",...shorthands.padding("16px")},header:{...shorthands.flex(0,0,"auto"),display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",marginBottom:"20px"},heading:{...shorthands.margin(0),fontWeight:FontWeights.semibold,fontSize:"inherit"},dismissBtn:{"&&":{fontSize:"16px",lineHeight:"16px",height:"16px",width:"16px",color:tokens$1.colorNeutralStroke1}},main:{...shorthands.overflow("auto"),display:"flex",justifyContent:"center",alignItems:"center"},image:{width:"auto",height:"auto",maxWidth:"60vw",maxHeight:"60vh"}}),IMAGE_WIDTH="48px",MASK_SELECTOR_CLASS_NAME="__MASK_SELECTOR_CLASS_NAME__",UploadPopoverImagePreview=eo=>{const{image:to,alt:no,isReadonly:io,onClickDelete:so}=eo,[ao,lo]=React.useState(!1),uo=useStyles$e(),ho=React.useMemo(()=>{if(to)return typeof to=="string"?to:URL.createObjectURL(to)},[to]),go=React.useCallback(()=>{lo(yo=>!yo)},[]),mo=ho||"";return jsxRuntimeExports.jsxs("div",{className:mergeClasses(uo.root,io?uo.readonlyRoot:void 0),children:[jsxRuntimeExports.jsxs("div",{className:uo.imageContainer,children:[jsxRuntimeExports.jsx("img",{decoding:"async",className:uo.image,src:mo,alt:no}),jsxRuntimeExports.jsx("div",{"aria-hidden":!0,className:mergeClasses(uo.mask,MASK_SELECTOR_CLASS_NAME),onClick:go,role:"button",children:jsxRuntimeExports.jsx(ZoomIn20Regular,{})})]}),!io&&jsxRuntimeExports.jsx(Button$2,{as:"button",className:uo.closeButton,icon:jsxRuntimeExports.jsx(Dismiss20Regular,{}),onClick:so}),jsxRuntimeExports.jsx(ImageViewModal,{src:mo,alt:no||"",visible:ao,onDismiss:go})]})},useStyles$e=makeStyles({root:{boxSizing:"border-box",display:"flex",height:"32px",width:"80px",...shorthands.border("1px","solid",tokens$1.colorNeutralStroke2),...shorthands.borderRadius("4px")},readonlyRoot:{width:"48px"},imageContainer:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:IMAGE_WIDTH,[`:hover .${MASK_SELECTOR_CLASS_NAME}`]:{visibility:"visible"}},image:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto"},mask:{visibility:"hidden",cursor:"pointer",position:"absolute",top:0,left:0,width:`calc(${IMAGE_WIDTH} - 2px)`,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",color:tokens$1.colorNeutralForegroundStaticInverted,...shorthands.borderRadius("4px",0,0,"4px")},closeButton:{width:"32px",...shorthands.border(0)}}),UploadPopoverTrigger=React.forwardRef((eo,to)=>jsxRuntimeExports.jsx(Button$2,{...eo,ref:to,as:"button",appearance:"transparent",size:"medium",icon:jsxRuntimeExports.jsx(Attach16Regular,{})}));UploadPopoverTrigger.displayName="UploadPopoverTrigger";const mergeStyleSlots=(eo,...to)=>{const no={...eo};for(const io of Object.keys(eo))no[io]=mergeClasses(eo[io],...to.map(so=>so==null?void 0:so[io]));return no},UploadPopover=React.forwardRef(({isUploading:eo,disabled:to,errorMessage:no,trigger:io=jsxRuntimeExports.jsx(UploadPopoverTrigger,{}),locStrings:so=defaultUploadPopoverLocStrings,styles:ao,events:lo,onUpload:uo,onRenderImagePreview:ho},go)=>{const mo=mergeStyleSlots(useStyles$d(),ao),{onDelete:yo,onInputBlur:So,onPaste:_o,onLocalUpload:ko}=lo??{};React.useImperativeHandle(go,()=>({open(){$o(!0)},close(){$o(!1)},reset:()=>{Lo()},retrieve:()=>No}));const[Co,$o]=React.useState(!1),[Ro,Oo]=React.useState(""),[No,Mo]=React.useState(void 0),Bo=React.useRef(null),Fo=React.useCallback((qo,Jo)=>{$o(Jo.open||!1)},[]),Lo=React.useCallback(()=>{Oo(""),Mo(void 0),Bo.current&&(Bo.current.value="")},[]),Go=React.useCallback(qo=>{const Jo=qo[0];Mo(Jo),_o==null||_o(Jo)},[_o]),Do=React.useCallback(qo=>{qo.clipboardData.files&&Go&&Go(qo.clipboardData.files)},[Go]),Uo=React.useCallback(()=>{So==null||So(Ro),Mo(Ro)},[Ro,So]),Ho=React.useCallback(()=>{No&&uo(No)},[No,uo]),Yo=React.useMemo(()=>ho?ho({cachedImage:No,customerInputContent:Ro,isReadonly:to||eo||!1}):jsxRuntimeExports.jsx(UploadPopoverImagePreview,{image:No||Ro,alt:Ro||"",isReadonly:eo,onClickDelete:()=>{Lo(),yo==null||yo()}}),[Ro,No,Lo,to,eo,yo,ho]);return jsxRuntimeExports.jsxs(Popover,{positioning:"above-end",open:Co,onOpenChange:Fo,children:[jsxRuntimeExports.jsx(PopoverTrigger,{disableButtonEnhancement:!0,children:io}),jsxRuntimeExports.jsxs(PopoverSurface,{className:mo.attachUploadPopover,children:[jsxRuntimeExports.jsxs("div",{className:mo.attachUploadHeader,children:[jsxRuntimeExports.jsx("span",{children:so.AddAnImage}),jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to,appearance:"transparent",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),onClick:()=>{$o(!1)}})]}),jsxRuntimeExports.jsxs("div",{className:mo.attachUploadInputWrapper,children:[No?Yo:jsxRuntimeExports.jsx(Input,{className:mo.attachUploadInput,value:Ro,disabled:to,placeholder:so.PasteImageOrLinkHere,onChange:(qo,Jo)=>{Mo(void 0),Oo(Jo.value)},onPaste:Do,onBlur:Uo}),jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to||eo||!No&&!Ro,className:mo.addButton,onClick:Ho,children:eo?jsxRuntimeExports.jsx(Spinner,{size:"tiny"}):so.Add})]}),no&&jsxRuntimeExports.jsx("div",{className:mo.errorMessage,children:no}),jsxRuntimeExports.jsx("input",{tabIndex:-1,"aria-hidden":!0,ref:Bo,disabled:to,className:mo.invisibleFileInput,onChange:qo=>{var ps;const Jo=(ps=qo.target.files)==null?void 0:ps[0];Jo&&(ko==null||ko(Jo)),Mo(Jo)},type:"file",accept:"image/*"}),jsxRuntimeExports.jsx("div",{className:mo.triggerUploadButton,children:jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to,appearance:"transparent",icon:jsxRuntimeExports.jsx(ArrowUpload24Regular,{}),onClick:()=>{var qo;(qo=Bo.current)==null||qo.click()},children:so.UploadFromThisDevice})})]})]})});UploadPopover.displayName="UploadPopover";const useStyles$d=makeStyles({attachUploadPopover:{width:"400px",backgroundColor:tokens$1.colorNeutralBackground1,...shorthands.padding("12px")},attachUploadHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,fontSize:"16px",lineHeight:"22px"},attachUploadInputWrapper:{marginTop:"8px",display:"flex",columnGap:"8px",justifyContent:"space-between"},attachUploadInput:{flexGrow:1},addButton:{minWidth:"52px"},errorMessage:{color:tokens$1.colorPaletteRedBackground3},invisibleFileInput:{display:"none"},triggerUploadButton:{marginTop:"8px",display:"flex",justifyContent:"space-between"}});function DefaultMessageContentRenderer(eo){const{content:to,className:no}=eo,io=useStyles$c(),so=mergeClasses(io.content,no);if(typeof to=="string")return jsxRuntimeExports.jsx("p",{className:so,children:to});const ao=JSON.stringify(to,null,2);return jsxRuntimeExports.jsx("pre",{className:so,children:ao})}DefaultMessageContentRenderer.displayName="DefaultMessageContentRenderer";const useStyles$c=makeStyles({content:{...shorthands.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"}});function DefaultMessageErrorRenderer(eo){const{error:to,locStrings:no,className:io}=eo,[so,ao]=React.useState(!1),lo=useStyles$b(),uo=mergeClasses(lo.errorMessageDetail,!so&&lo.errorMessageDetailHidden);return jsxRuntimeExports.jsxs("div",{className:io,children:[jsxRuntimeExports.jsx(Link$1,{onClick:()=>ao(ho=>!ho),children:so?no.MessageError_HideDetail:no.MessageError_ShowDetail}),jsxRuntimeExports.jsx("p",{className:uo,children:to})]})}DefaultMessageErrorRenderer.displayName="DefaultMessageErrorRenderer";const useStyles$b=makeStyles({errorMessageDetail:{...shorthands.margin("8px","0","0","0"),...shorthands.borderTop("1px","solid",tokens$1.colorPaletteDarkRedBorderActive),wordBreak:"break-word",whiteSpace:"break-spaces"},errorMessageDetailHidden:{display:"none"}}),useToolbarDefaultActions=()=>React.useMemo(()=>[],[]);function DefaultMessageActionBarRenderer(eo){const{useMessageActions:to=useToolbarDefaultActions,data:no,className:io}=eo,so=to(no),ao=useStyles$a(),lo=React.useMemo(()=>{const go=so.filter(yo=>!yo.condition||yo.condition(no)).sort((yo,So)=>yo.group-So.group),mo=[];for(let yo=0,So;yo0))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ho=[];for(let go=0;go$o(no)},So)},So))}go+1{no>0&&so(no-1)},uo=()=>{no=ps?Jo:""+Array(ps+1-hs.length).join(Qo)+Jo},Mo={s:No,z:function(Jo){var ps=-Jo.utcOffset(),Qo=Math.abs(ps),hs=Math.floor(Qo/60),gs=Qo%60;return(ps<=0?"+":"-")+No(hs,2,"0")+":"+No(gs,2,"0")},m:function Jo(ps,Qo){if(ps.date()1)return Jo(vs[0])}else{var ks=ps.name;Fo[ks]=ps,gs=ks}return!hs&&gs&&(Bo=gs),gs||!hs&&Bo},Uo=function(Jo,ps){if(Go(Jo))return Jo.clone();var Qo=typeof ps=="object"?ps:{};return Qo.date=Jo,Qo.args=arguments,new Yo(Qo)},Ho=Mo;Ho.l=Do,Ho.i=Go,Ho.w=function(Jo,ps){return Uo(Jo,{locale:ps.$L,utc:ps.$u,x:ps.$x,$offset:ps.$offset})};var Yo=function(){function Jo(Qo){this.$L=Do(Qo.locale,null,!0),this.parse(Qo),this.$x=this.$x||Qo.x||{},this[Lo]=!0}var ps=Jo.prototype;return ps.parse=function(Qo){this.$d=function(hs){var gs=hs.date,ys=hs.utc;if(gs===null)return new Date(NaN);if(Ho.u(gs))return new Date;if(gs instanceof Date)return new Date(gs);if(typeof gs=="string"&&!/Z$/i.test(gs)){var vs=gs.match($o);if(vs){var ks=vs[2]-1||0,Os=(vs[7]||"0").substring(0,3);return ys?new Date(Date.UTC(vs[1],ks,vs[3]||1,vs[4]||0,vs[5]||0,vs[6]||0,Os)):new Date(vs[1],ks,vs[3]||1,vs[4]||0,vs[5]||0,vs[6]||0,Os)}}return new Date(gs)}(Qo),this.init()},ps.init=function(){var Qo=this.$d;this.$y=Qo.getFullYear(),this.$M=Qo.getMonth(),this.$D=Qo.getDate(),this.$W=Qo.getDay(),this.$H=Qo.getHours(),this.$m=Qo.getMinutes(),this.$s=Qo.getSeconds(),this.$ms=Qo.getMilliseconds()},ps.$utils=function(){return Ho},ps.isValid=function(){return this.$d.toString()!==Co},ps.isSame=function(Qo,hs){var gs=Uo(Qo);return this.startOf(hs)<=gs&&gs<=this.endOf(hs)},ps.isAfter=function(Qo,hs){return Uo(Qo){const{duration:to,tokens:no,locStrings:io,className:so}=eo,ao=to.toFixed(2).replace(/\.?0*$/,"");return jsxRuntimeExports.jsxs("div",{className:so,children:[no>0&&jsxRuntimeExports.jsxs(React.Fragment,{children:[`${io.MessageStatus_TokensDesc}: `,jsxRuntimeExports.jsx("b",{children:no}),` ${io.MessageStatus_TokensUint}, `]}),`${no>0?io.MessageStatus_TimeSpentDesc:io.MessageStatus_TimeSpentDscCapitalized}: `,jsxRuntimeExports.jsx("b",{children:ao}),` ${io.MessageStatus_TimeSpent_Unit}`]})};DefaultMessageStatusRenderer.displayName="DefaultMessageStatusRenderer";const EMPTY_CONTEXTUAL_MENU_ITEMS$1=[],defaultUseContextualMenuItems$1=eo=>EMPTY_CONTEXTUAL_MENU_ITEMS$1;function DefaultMessageBubbleRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:no=DefaultMessageContentRenderer,MessageErrorRenderer:io=DefaultMessageErrorRenderer,MessageSenderRenderer:so=DefaultMessageSenderRenderer,MessagePaginationRenderer:ao=DefaultMessagePaginationRenderer,MessageActionBarRenderer:lo=DefaultMessageActionBarRenderer,MessageStatusRenderer:uo=DefaultMessageStatusRenderer,useMessageContextualMenuItems:ho=defaultUseContextualMenuItems$1,useMessageActions:go,initialPage:mo=-1,locStrings:yo,message:So,className:_o}=eo,ko=useStyles$8(),[Co,$o]=React.useState((mo%So.history.length+So.history.length)%So.history.length),[Ro,Oo]=React.useState(!1),No=React.useRef(null),Mo=React.useRef(null),Bo=React.useCallback(()=>{Oo(!1)},[]),Fo=React.useCallback(Ho=>{const Yo=No.current,qo=Mo.current;if(Yo&&qo){const Jo=Ho.clientX,ps=Ho.clientY,Qo=Yo.getBoundingClientRect(),hs=Qo.left+window.scrollX,gs=Qo.top+window.scrollY,ys=Jo-hs,vs=ps-gs;qo.style.left=`${ys}px`,qo.style.top=`${vs}px`}},[]),Lo=React.useCallback(Ho=>{Ho.preventDefault(),Fo(Ho),Oo(!0)},[]),Go=So.history[Co],Do=Go.category===ChatMessageCategory.User?"right":"left",Uo=ho(Go);return React.useEffect(()=>{const Ho=()=>{Oo(!1)};return document.addEventListener("mousedown",Ho),()=>document.removeEventListener("mousedown",Ho)},[]),jsxRuntimeExports.jsx("div",{className:ko.container,"data-chatbox-locator":ChatboxLocator.MessageBubble,"data-position":Do,children:jsxRuntimeExports.jsxs("div",{className:mergeClasses(ko.message,_o),"data-position":Do,children:[jsxRuntimeExports.jsx("div",{className:ko.avatar,children:to&&jsxRuntimeExports.jsx(to,{data:Go,position:Do})}),jsxRuntimeExports.jsxs("div",{className:ko.main,children:[jsxRuntimeExports.jsx("div",{className:ko.sender,children:jsxRuntimeExports.jsx(so,{data:Go,position:Do})}),jsxRuntimeExports.jsxs("div",{ref:No,className:ko.content,"data-category":Go.category,"data-chatbox-locator":ChatboxLocator.MessageContent,onContextMenu:Lo,onClick:Fo,children:[jsxRuntimeExports.jsx(no,{content:Go.content,data:Go,className:ko.contentMain}),Go.error&&jsxRuntimeExports.jsx(io,{error:Go.error,locStrings:yo,className:ko.error}),typeof Go.duration=="number"&&typeof Go.tokens=="number"&&jsxRuntimeExports.jsx(uo,{duration:Go.duration,tokens:Go.tokens,locStrings:yo,className:ko.status}),So.history.length>1&&jsxRuntimeExports.jsx(ao,{className:ko.pagination,message:So,current:Co,setCurrent:$o}),jsxRuntimeExports.jsx("div",{ref:Mo,className:ko.contentMenuAnchor}),Uo.length>0&&jsxRuntimeExports.jsx(ContextualMenu,{items:Uo,hidden:!Ro,target:Mo,onItemClick:Bo,onDismiss:Bo,className:ko.contextualMenu}),jsxRuntimeExports.jsx("div",{className:ko.actionBar,"data-chatbox-locator":ChatboxLocator.MessageActionBar,children:jsxRuntimeExports.jsx(lo,{data:Go,locStrings:yo,useMessageActions:go})})]})]})]})})}DefaultMessageBubbleRenderer.displayName="DefaultMessageBubbleRenderer";const useStyles$8=makeStyles({container:{...shorthands.margin("16px","0"),display:"flex",justifyContent:"flex-start",'&&[data-position="right"]':{justifyContent:"flex-end"},width:"100%"},message:{display:"flex",flexDirection:"row",'&&[data-position="right"]':{flexDirection:"row-reverse"},maxWidth:"calc(100% - 80px)"},avatar:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...shorthands.flex(0,0,"auto")},content:{...shorthands.flex(1,1,"auto"),...shorthands.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...shorthands.margin(0)},[`&:hover > ${ChatboxSelector.MessageActionBar}`]:{display:"flex",visibility:"visible"},[`&&[data-category="${ChatMessageCategory.System}"]`]:{color:tokens$1.colorNeutralForeground4},[`&&[data-category="${ChatMessageCategory.Error}"]`]:{backgroundColor:tokens$1.colorPaletteRedBackground2,color:tokens$1.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.Chatbot}"]`]:{backgroundColor:tokens$1.colorNeutralBackground4,color:tokens$1.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.User}"]`]:{backgroundColor:tokens$1.colorBrandBackground2,color:tokens$1.colorNeutralForeground1}},contentMain:{...shorthands.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...shorthands.padding("0px","20px","12px","12px")},pagination:{},status:{...shorthands.borderTop("1px","solid",tokens$1.colorNeutralStroke1),...shorthands.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function DefaultSessionSplitRenderer(eo){const{locStrings:to,className:no}=eo,io=useStyles$7();return jsxRuntimeExports.jsx("div",{className:mergeClasses(io.sessionSplit,no),children:jsxRuntimeExports.jsxs("span",{children:["--- ",to.SessionSplit_Desc," ---"]})})}DefaultSessionSplitRenderer.displayName="DefaultSessionSplitRenderer";const useStyles$7=makeStyles({sessionSplit:{display:"flex",justifyContent:"center",height:"24px",color:tokens$1.colorNeutralForeground4}});makeStyles({hintTyping:{...shorthands.overflow("hidden"),width:"1px",height:"1px"},typingDots:{...shorthands.transition("opacity","0.1s"),display:"flex",alignItems:"center",height:"22.5px"},typingDot:{...shorthands.borderRadius("50%"),...shorthands.margin("0","0","0","6px"),display:"inline-block",width:"6px",height:"6px",backgroundColor:tokens$1.colorNeutralStroke1,animationDuration:"1.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{"0%":{transform:"scale(1)"},"16.67%":{transform:"scale(0)"},"33.33%":{transform:"scale(0)"},"50%":{transform:"scale(0)"},"66.67%":{transform:"scale(1)"},"83.33%":{transform:"scale(1)"},"100%":{transform:"scale(1)"}},"&:nth-child(1)":{...shorthands.margin("0px")},"&:nth-child(2)":{animationDelay:"0.18s"},"&:nth-child(3)":{animationDelay:"0.36s"}}});makeStyles({toolbar:{display:"flex",justifyContent:"flex-end"}});makeStyles({input:{...shorthands.border("1px","solid",tokens$1.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"grid",gridTemplateRows:"1fr auto"},editor:{boxSizing:"border-box"},editorInner:{...shorthands.border("0px"),boxSizing:"border-box"},editorToolbar:{boxSizing:"border-box",display:"flex",alignItems:"flex-end",justifyContent:"flex-end",height:"100%"}});function MessageListRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:no,MessageErrorRenderer:io,MessageSenderRenderer:so,MessageBubbleRenderer:ao=DefaultMessageBubbleRenderer,SessionSplitRenderer:lo=DefaultSessionSplitRenderer,className:uo,bubbleClassName:ho,sessionSplitClassName:go,locStrings:mo,messages:yo,useMessageContextualMenuItems:So,useMessageActions:_o}=eo,ko=useStyles$6();return jsxRuntimeExports.jsx("div",{className:mergeClasses(ko.container,uo),"data-chatbox-locator":ChatboxLocator.MessageList,children:yo.map(Co=>{switch(Co.type){case ChatMessageType.Message:return jsxRuntimeExports.jsx(ao,{MessageAvatarRenderer:to,MessageContentRenderer:no,MessageErrorRenderer:io,MessageSenderRenderer:so,locStrings:mo,message:Co,className:ho,useMessageContextualMenuItems:So,useMessageActions:_o},Co.id);case ChatMessageType.SessionSplit:return jsxRuntimeExports.jsx(lo,{locStrings:mo,className:go},Co.id);default:return jsxRuntimeExports.jsx(React.Fragment,{},Co.id)}})})}MessageListRenderer.displayName="MessageListRenderer";const useStyles$6=makeStyles({container:{boxSizing:"border-box"}}),nDe=class nDe extends React.PureComponent{render(){const{elements:to,deltaH:no,deltaW:io,scaleH:so,scaleW:ao,className:lo,elementClassName:uo,renderElement:ho}=this.props;return jsxRuntimeExports.jsx("div",{className:lo,children:to.map((go,mo)=>{const yo=(go.top-no)*so,So=(go.left-io)*ao,_o=go.height*so,ko=go.width*ao,Co={top:yo,left:So,height:_o,width:ko};return go.backgroundColor&&(Co.backgroundColor=go.backgroundColor),ho?ho(go,mo,uo,Co):jsxRuntimeExports.jsx("div",{className:uo,style:Co},mo)})})}};nDe.displayName="MinimapOverview";let MinimapOverview=nDe;const MinimapViewport=eo=>{const{scaleH:to,sourceRootRef:no,sourceQuerySelector:io,className:so}=eo,[ao,lo]=React.useState(0),[uo,ho]=React.useState(0),go=useStyles$5();return React.useLayoutEffect(()=>{var _o,ko;const mo=(ko=(_o=no.current)==null?void 0:_o.querySelector(io))==null?void 0:ko.parentElement;if(!mo)return()=>{};const{height:yo}=mo.getBoundingClientRect();ho(yo);const So=()=>{lo(mo.scrollTop||0)};return mo.addEventListener("scroll",So),()=>mo.removeEventListener("scroll",So)},[no.current]),jsxRuntimeExports.jsx("div",{className:mergeClasses(go.viewport,so),style:{position:"absolute",top:ao*to,height:`${uo*to}px`}})};MinimapViewport.displayName="MinimapViewport";const useStyles$5=makeStyles({viewport:{display:"block",width:"100%",left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.15)"}}),Minimap=eo=>{const{SCROLL_DELTA_THRESHOLD:to=5,syncScale:no=!0,sourceRootRef:io,sourceQuerySelector:so,sourceElementQuerySelector:ao,className:lo,overviewClassName:uo,overviewElementClassName:ho,viewportClassName:go,getElementBackgroundColor:mo,renderElement:yo,style:So}=eo,[_o,ko]=React.useState([]),[Co,$o]=React.useState(0),[Ro,Oo]=React.useState(0),[No,Mo]=React.useState(0),[Bo,Fo]=React.useState(0),[Lo,Go]=React.useState(0),[Do,Uo]=React.useState(0),[Ho,Yo]=React.useState(0),[qo,Jo]=React.useState(0),ps=Bo<=0?0:Ro/Bo||.1,Qo=No<=0?0:no?Math.max(1/No,Math.min(ps,(Co-10)/No||.1)):Math.max(1/No,(Co-10)/No||.1),hs=React.useRef(null),gs=React.useRef(null),ys=React.useRef(!1),vs=useEventCallback$1(Ps=>{var ga,Fs;if(Ps.preventDefault(),Ps.stopPropagation(),ys.current=!0,!gs.current)return;const qs=(Fs=(ga=io.current)==null?void 0:ga.querySelector(so))==null?void 0:Fs.parentElement;if(qs){const Vs=(Ps.clientY-gs.current.getBoundingClientRect().top)/Qo;Math.abs(qs.scrollTop-Vs)>to&&(qs.scrollTop=Vs)}}),ks=useEventCallback$1(Ps=>{var ga,Fs;if(Ps.preventDefault(),Ps.stopPropagation(),!ys.current||!gs.current)return;const qs=(Fs=(ga=io.current)==null?void 0:ga.querySelector(so))==null?void 0:Fs.parentElement;if(qs){const Vs=(Ps.clientY-gs.current.getBoundingClientRect().top)/Qo;Math.abs(qs.scrollTop-Vs)>to&&(qs.scrollTop=Vs)}}),Os=React.useCallback(Ps=>{const qs=Ps.querySelector(so);if(!qs)return;const ga=qs.querySelectorAll(ao),Fs=[];for(let Vs=0;Vs{const Ps=()=>{ys.current=!1};return document.addEventListener("mouseup",Ps),()=>document.removeEventListener("mouseup",Ps)},[]),React.useLayoutEffect(()=>{const Ps=hs.current;if(!Ps)return;const{height:qs,width:ga}=Ps.getBoundingClientRect();$o(qs),Oo(ga)},[]),React.useLayoutEffect(()=>{const Ps=io.current;if(!Ps)return()=>{};Os(Ps);const qs=new MutationObserver(ga=>{for(const Fs of ga)Fs.type==="childList"&&Os(Ps)});return qs.observe(Ps,{childList:!0,subtree:!0}),()=>{qs.disconnect()}},[io.current,Os]);const Ts=useStyles$4(),Xs=No+Lo-Ho,Ws=Bo+Do-qo;return jsxRuntimeExports.jsx("div",{ref:hs,className:mergeClasses(Ts.container,lo),style:So,children:jsxRuntimeExports.jsxs("div",{ref:gs,className:Ts.minimap,onMouseDown:vs,onMouseMove:ks,children:[jsxRuntimeExports.jsx(MinimapOverview,{elements:_o,deltaH:Xs,deltaW:Ws,scaleH:Qo,scaleW:ps,className:mergeClasses(Ts.overview,uo),elementClassName:mergeClasses(Ts.minimapElement,ho),renderElement:yo}),jsxRuntimeExports.jsx(MinimapViewport,{scaleH:Qo,sourceRootRef:io,sourceQuerySelector:so,className:go})]})})};Minimap.displayName="Minimap";const useStyles$4=makeStyles({container:{height:"100%",width:"100%",...shorthands.overflow("hidden")},minimap:{position:"relative",width:"100%",height:"100%"},overview:{},minimapElement:{position:"absolute",backgroundColor:"#c292f9"}});makeStyles({editor:{...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens$1.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative",'&[data-disabled="true"]':{backgroundColor:tokens$1.colorNeutralBackgroundDisabled}},textarea:{...shorthands.padding("0px"),...shorthands.overflow("hidden","auto"),...shorthands.borderWidth(0),...shorthands.outline(0,"solid","transparent"),backgroundColor:"transparent",boxSizing:"border-box",resize:"none",appearance:"none",overflowWrap:"break-word",lineHeight:"24px",height:"24px",width:"100%",wordBreak:"break-all",color:tokens$1.colorNeutralForeground1,userSelect:"text"}});function e$1(eo){return{}}const t$4={},n$2={},r$1={},i$6={},s$2={},o$5={},l$3={},c$6={},u$5={},a$4={},f$5={},d$4={},h$3={},g$6={},_$6={},p$5={},y$7={},m$5={},x$8={},v$3={},T$4={},S$5={},k$2={},C$5={},b$2={},N$3={},w$4={},E$4={},P$3={},D$3={},I$1={},O$2={},A$3={},L$2={},F$1={},M$3={},W={},z$1={},B$2={},R$2={},K$4={},J={},U={},V={},$$1={};var H$1=function(eo){const to=new URLSearchParams;to.append("code",eo);for(let no=1;noOe;try{Vi(eo,()=>{const so=fi()||function(So){return So.getEditorState().read(()=>{const _o=fi();return _o!==null?_o.clone():null})}(eo),ao=new Map,lo=eo.getRootElement(),uo=eo._editorState,ho=eo._blockCursorElement;let go=!1,mo="";for(let So=0;So0){let Mo=0;for(let Bo=0;Bo0)for(const[So,_o]of ao)if(qi(_o)){const ko=_o.getChildrenKeys();let Co=So.firstChild;for(let $o=0;$o0){for(let So=0;So{Be(eo,to,no)})}function Je(eo,to){const no=eo.__mode,io=eo.__format,so=eo.__style,ao=to.__mode,lo=to.__format,uo=to.__style;return!(no!==null&&no!==ao||io!==null&&io!==lo||so!==null&&so!==uo)}function Ue(eo,to){const no=eo.mergeWithSibling(to),io=Oi()._normalizedNodes;return io.add(eo.__key),io.add(to.__key),no}function Ve(eo){let to,no,io=eo;if(io.__text!==""||!io.isSimpleText()||io.isUnmergeable()){for(;(to=io.getPreviousSibling())!==null&&Br(to)&&to.isSimpleText()&&!to.isUnmergeable();){if(to.__text!==""){if(Je(to,io)){io=Ue(to,io);break}break}to.remove()}for(;(no=io.getNextSibling())!==null&&Br(no)&&no.isSimpleText()&&!no.isUnmergeable();){if(no.__text!==""){if(Je(io,no)){io=Ue(io,no);break}break}no.remove()}}else io.remove()}function $e(eo){return He(eo.anchor),He(eo.focus),eo}function He(eo){for(;eo.type==="element";){const to=eo.getNode(),no=eo.offset;let io,so;if(no===to.getChildrenSize()?(io=to.getChildAtIndex(no-1),so=!0):(io=to.getChildAtIndex(no),so=!1),Br(io)){eo.set(io.__key,so?io.getTextContentSize():0,"text");break}if(!qi(io))break;eo.set(io.__key,so?io.getChildrenSize():0,"element")}}let je=1;const qe=typeof queueMicrotask=="function"?queueMicrotask:eo=>{Promise.resolve().then(eo)};function Qe(eo){const to=document.activeElement;if(to===null)return!1;const no=to.nodeName;return Hi(at$1(eo))&&(no==="INPUT"||no==="TEXTAREA"||to.contentEditable==="true"&&to.__lexicalEditor==null)}function Xe(eo,to,no){const io=eo.getRootElement();try{return io!==null&&io.contains(to)&&io.contains(no)&&to!==null&&!Qe(to)&&Ye(to)===eo}catch{return!1}}function Ye(eo){let to=eo;for(;to!=null;){const no=to.__lexicalEditor;if(no!=null)return no;to=Jt(to)}return null}function Ze(eo){return eo.isToken()||eo.isSegmented()}function Ge(eo){return eo.nodeType===se}function et(eo){let to=eo;for(;to!=null;){if(Ge(to))return to;to=to.firstChild}return null}function tt(eo,to,no){const io=be[to];if(no!==null&&(eo&io)==(no&io))return eo;let so=eo^io;return to==="subscript"?so&=~be.superscript:to==="superscript"&&(so&=~be.subscript),so}function nt(eo){return Br(eo)||vr(eo)||Hi(eo)}function rt(eo,to){if(to!=null)return void(eo.__key=to);Pi(),Di();const no=Oi(),io=Ii(),so=""+je++;io._nodeMap.set(so,eo),qi(eo)?no._dirtyElements.set(so,!0):no._dirtyLeaves.add(so),no._cloneNotNeeded.add(so),no._dirtyType=le,eo.__key=so}function it(eo){const to=eo.getParent();if(to!==null){const no=eo.getWritable(),io=to.getWritable(),so=eo.getPreviousSibling(),ao=eo.getNextSibling();if(so===null)if(ao!==null){const lo=ao.getWritable();io.__first=ao.__key,lo.__prev=null}else io.__first=null;else{const lo=so.getWritable();if(ao!==null){const uo=ao.getWritable();uo.__prev=lo.__key,lo.__next=uo.__key}else lo.__next=null;no.__prev=null}if(ao===null)if(so!==null){const lo=so.getWritable();io.__last=so.__key,lo.__next=null}else io.__last=null;else{const lo=ao.getWritable();if(so!==null){const uo=so.getWritable();uo.__next=lo.__key,lo.__prev=uo.__key}else lo.__prev=null;no.__next=null}io.__size--,no.__parent=null}}function st$1(eo){Di();const to=eo.getLatest(),no=to.__parent,io=Ii(),so=Oi(),ao=io._nodeMap,lo=so._dirtyElements;no!==null&&function(ho,go,mo){let yo=ho;for(;yo!==null;){if(mo.has(yo))return;const So=go.get(yo);if(So===void 0)break;mo.set(yo,!1),yo=So.__parent}}(no,ao,lo);const uo=to.__key;so._dirtyType=le,qi(eo)?lo.set(uo,!0):so._dirtyLeaves.add(uo)}function ot(eo){Pi();const to=Oi(),no=to._compositionKey;if(eo!==no){if(to._compositionKey=eo,no!==null){const io=ct$1(no);io!==null&&io.getWritable()}if(eo!==null){const io=ct$1(eo);io!==null&&io.getWritable()}}}function lt$1(){return Ei()?null:Oi()._compositionKey}function ct$1(eo,to){const no=(to||Ii())._nodeMap.get(eo);return no===void 0?null:no}function ut$1(eo,to){const no=eo[`__lexicalKey_${Oi()._key}`];return no!==void 0?ct$1(no,to):null}function at$1(eo,to){let no=eo;for(;no!=null;){const io=ut$1(no,to);if(io!==null)return io;no=Jt(no)}return null}function ft$1(eo){const to=eo._decorators,no=Object.assign({},to);return eo._pendingDecorators=no,no}function dt$1(eo){return eo.read(()=>ht$1().getTextContent())}function ht$1(){return gt$1(Ii())}function gt$1(eo){return eo._nodeMap.get("root")}function _t(eo){Pi();const to=Ii();eo!==null&&(eo.dirty=!0,eo.setCachedNodes(null)),to._selection=eo}function pt$1(eo){const to=Oi(),no=function(io,so){let ao=io;for(;ao!=null;){const lo=ao[`__lexicalKey_${so._key}`];if(lo!==void 0)return lo;ao=Jt(ao)}return null}(eo,to);return no===null?eo===to.getRootElement()?ct$1("root"):null:ct$1(no)}function yt$1(eo,to){return to?eo.getTextContentSize():0}function mt$1(eo){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(eo)}function xt$1(eo){const to=[];let no=eo;for(;no!==null;)to.push(no),no=no._parentEditor;return to}function vt$1(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Tt(eo){return eo.nodeType===se?eo.nodeValue:null}function St(eo,to,no){const io=nn(to._window);if(io===null)return;const so=io.anchorNode;let{anchorOffset:ao,focusOffset:lo}=io;if(so!==null){let uo=Tt(so);const ho=at$1(so);if(uo!==null&&Br(ho)){if(uo===me&&no){const go=no.length;uo=no,ao=go,lo=go}uo!==null&&kt(ho,uo,ao,lo,eo)}}}function kt(eo,to,no,io,so){let ao=eo;if(ao.isAttached()&&(so||!ao.isDirty())){const lo=ao.isComposing();let uo=to;(lo||so)&&to[to.length-1]===me&&(uo=to.slice(0,-1));const ho=ao.getTextContent();if(so||uo!==ho){if(uo===""){if(ot(null),Z||G||re)ao.remove();else{const Co=Oi();setTimeout(()=>{Co.update(()=>{ao.isAttached()&&ao.remove()})},20)}return}const go=ao.getParent(),mo=di(),yo=ao.getTextContentSize(),So=lt$1(),_o=ao.getKey();if(ao.isToken()||So!==null&&_o===So&&!lo||Xr(mo)&&(go!==null&&!go.canInsertTextBefore()&&mo.anchor.offset===0||mo.anchor.key===eo.__key&&mo.anchor.offset===0&&!ao.canInsertTextBefore()&&!lo||mo.focus.key===eo.__key&&mo.focus.offset===yo&&!ao.canInsertTextAfter()&&!lo))return void ao.markDirty();const ko=fi();if(!Xr(ko)||no===null||io===null)return void ao.setTextContent(uo);if(ko.setTextNodeRange(ao,no,ao,io),ao.isSegmented()){const Co=zr(ao.getTextContent());ao.replace(Co),ao=Co}ao.setTextContent(uo)}}}function Ct$1(eo,to){if(to.isSegmented())return!0;if(!eo.isCollapsed())return!1;const no=eo.anchor.offset,io=to.getParentOrThrow(),so=to.isToken();return no===0?!to.canInsertTextBefore()||!io.canInsertTextBefore()||so||function(ao){const lo=ao.getPreviousSibling();return(Br(lo)||qi(lo)&&lo.isInline())&&!lo.canInsertTextAfter()}(to):no===to.getTextContentSize()&&(!to.canInsertTextAfter()||!io.canInsertTextAfter()||so)}function bt(eo){return eo===37}function Nt$1(eo){return eo===39}function wt$1(eo,to){return Q?eo:to}function Et$1(eo){return eo===13}function Pt$1(eo){return eo===8}function Dt$1(eo){return eo===46}function It(eo,to,no){return eo===65&&wt$1(to,no)}function Ot$1(){const eo=ht$1();_t($e(eo.select(0,eo.getChildrenSize())))}function At$1(eo,to){eo.__lexicalClassNameCache===void 0&&(eo.__lexicalClassNameCache={});const no=eo.__lexicalClassNameCache,io=no[to];if(io!==void 0)return io;const so=eo[to];if(typeof so=="string"){const ao=Ie(so);return no[to]=ao,ao}return so}function Lt(eo,to,no,io,so){if(no.size===0)return;const ao=io.__type,lo=io.__key,uo=to.get(ao);uo===void 0&&H$1(33,ao);const ho=uo.klass;let go=eo.get(ho);go===void 0&&(go=new Map,eo.set(ho,go));const mo=go.get(lo),yo=mo==="destroyed"&&so==="created";(mo===void 0||yo)&&go.set(lo,yo?"updated":so)}function Ft(eo){const to=Ii(),no=to._readOnly,io=eo.getType(),so=to._nodeMap,ao=[];for(const[,lo]of so)lo instanceof eo&&lo.__type===io&&(no||lo.isAttached())&&ao.push(lo);return ao}function Mt(eo,to,no){const io=eo.getParent();let so=no,ao=eo;return io!==null&&(to&&no===0?(so=ao.getIndexWithinParent(),ao=io):to||no!==ao.getChildrenSize()||(so=ao.getIndexWithinParent()+1,ao=io)),ao.getChildAtIndex(to?so-1:so)}function Wt(eo,to){const no=eo.offset;if(eo.type==="element")return Mt(eo.getNode(),to,no);{const io=eo.getNode();if(to&&no===0||!to&&no===io.getTextContentSize()){const so=to?io.getPreviousSibling():io.getNextSibling();return so===null?Mt(io.getParentOrThrow(),to,io.getIndexWithinParent()+(to?0:1)):so}}return null}function zt(eo){const to=Ht(eo).event,no=to&&to.inputType;return no==="insertFromPaste"||no==="insertFromPasteAsQuotation"}function Bt(eo,to,no){return Ki(eo,to,no)}function Rt(eo){return!Yi(eo)&&!eo.isLastChild()&&!eo.isInline()}function Kt(eo,to){const no=eo._keyToDOMMap.get(to);return no===void 0&&H$1(75,to),no}function Jt(eo){const to=eo.assignedSlot||eo.parentElement;return to!==null&&to.nodeType===11?to.host:to}function Ut(eo){return Oi()._updateTags.has(eo)}function Vt(eo){Pi(),Oi()._updateTags.add(eo)}function $t(eo,to){let no=eo.getParent();for(;no!==null;){if(no.is(to))return!0;no=no.getParent()}return!1}function Ht(eo){const to=eo._window;return to===null&&H$1(78),to}function jt(eo){return qi(eo)&&eo.isInline()||Hi(eo)&&eo.isInline()}function qt(eo){let to=eo.getParentOrThrow();for(;to!==null;){if(Qt(to))return to;to=to.getParentOrThrow()}return to}function Qt(eo){return Yi(eo)||qi(eo)&&eo.isShadowRoot()}function Xt(eo){const to=eo.constructor.clone(eo);return rt(to,null),to}function Yt(eo){const to=Oi(),no=eo.constructor.getType(),io=to._nodes.get(no);io===void 0&&H$1(97);const so=io.replace;if(so!==null){const ao=so(eo);return ao instanceof eo.constructor||H$1(98),ao}return eo}function Zt(eo,to){!Yi(eo.getParent())||qi(to)||Hi(to)||H$1(99)}function Gt(eo){return(Hi(eo)||qi(eo)&&!eo.canBeEmpty())&&!eo.isInline()}function en(eo,to,no){no.style.removeProperty("caret-color"),to._blockCursorElement=null;const io=eo.parentElement;io!==null&&io.removeChild(eo)}function tn(eo,to,no){let io=eo._blockCursorElement;if(Xr(no)&&no.isCollapsed()&&no.anchor.type==="element"&&to.contains(document.activeElement)){const so=no.anchor,ao=so.getNode(),lo=so.offset;let uo=!1,ho=null;if(lo===ao.getChildrenSize())Gt(ao.getChildAtIndex(lo-1))&&(uo=!0);else{const go=ao.getChildAtIndex(lo);if(Gt(go)){const mo=go.getPreviousSibling();(mo===null||Gt(mo))&&(uo=!0,ho=eo.getElementByKey(go.__key))}}if(uo){const go=eo.getElementByKey(ao.__key);return io===null&&(eo._blockCursorElement=io=function(mo){const yo=mo.theme,So=document.createElement("div");So.contentEditable="false",So.setAttribute("data-lexical-cursor","true");let _o=yo.blockCursor;if(_o!==void 0){if(typeof _o=="string"){const ko=Ie(_o);_o=yo.blockCursor=ko}_o!==void 0&&So.classList.add(..._o)}return So}(eo._config)),to.style.caretColor="transparent",void(ho===null?go.appendChild(io):go.insertBefore(io,ho))}}io!==null&&en(io,eo,to)}function nn(eo){return j?(eo||window).getSelection():null}function rn(eo,to){let no=eo.getChildAtIndex(to);no==null&&(no=eo),Qt(eo)&&H$1(102);const io=lo=>{const uo=lo.getParentOrThrow(),ho=Qt(uo),go=lo!==no||ho?Xt(lo):lo;if(ho)return qi(lo)&&qi(go)||H$1(133),lo.insertAfter(go),[lo,go,go];{const[mo,yo,So]=io(uo),_o=lo.getNextSiblings();return So.append(go,..._o),[mo,yo,go]}},[so,ao]=io(no);return[so,ao]}function sn(eo){return on(eo)&&eo.tagName==="A"}function on(eo){return eo.nodeType===1}function ln(eo){if(Hi(eo)&&!eo.isInline())return!0;if(!qi(eo)||Qt(eo))return!1;const to=eo.getFirstChild(),no=to===null||vr(to)||Br(to)||to.isInline();return!eo.isInline()&&eo.canBeEmpty()!==!1&&no}function cn(eo,to){let no=eo;for(;no!==null&&no.getParent()!==null&&!to(no);)no=no.getParentOrThrow();return to(no)?no:null}function un(){return Oi()}function an(eo,to,no,io,so,ao){let lo=eo.getFirstChild();for(;lo!==null;){const uo=lo.__key;lo.__parent===to&&(qi(lo)&&an(lo,uo,no,io,so,ao),no.has(uo)||ao.delete(uo),so.push(uo)),lo=lo.getNextSibling()}}let fn$7,dn,hn,gn,_n,pn,yn,mn,xn,vn,Tn="",Sn="",kn="",Cn=!1,bn=!1,Nn=null;function wn(eo,to){const no=yn.get(eo);if(to!==null){const io=Vn(eo);io.parentNode===to&&to.removeChild(io)}if(mn.has(eo)||dn._keyToDOMMap.delete(eo),qi(no)){const io=Bn(no,yn);En(io,0,io.length-1,null)}no!==void 0&&Lt(vn,hn,gn,no,"destroyed")}function En(eo,to,no,io){let so=to;for(;so<=no;++so){const ao=eo[so];ao!==void 0&&wn(ao,io)}}function Pn(eo,to){eo.setProperty("text-align",to)}const Dn="40px";function In(eo,to){const no=fn$7.theme.indent;if(typeof no=="string"){const so=eo.classList.contains(no);to>0&&!so?eo.classList.add(no):to<1&&so&&eo.classList.remove(no)}const io=getComputedStyle(eo).getPropertyValue("--lexical-indent-base-value")||Dn;eo.style.setProperty("padding-inline-start",to===0?"":`calc(${to} * ${io})`)}function On(eo,to){const no=eo.style;to===0?Pn(no,""):to===de?Pn(no,"left"):to===he?Pn(no,"center"):to===ge?Pn(no,"right"):to===_e?Pn(no,"justify"):to===pe?Pn(no,"start"):to===ye&&Pn(no,"end")}function An(eo,to,no){const io=mn.get(eo);io===void 0&&H$1(60);const so=io.createDOM(fn$7,dn);if(function(ao,lo,uo){const ho=uo._keyToDOMMap;lo["__lexicalKey_"+uo._key]=ao,ho.set(ao,lo)}(eo,so,dn),Br(io)?so.setAttribute("data-lexical-text","true"):Hi(io)&&so.setAttribute("data-lexical-decorator","true"),qi(io)){const ao=io.__indent,lo=io.__size;if(ao!==0&&In(so,ao),lo!==0){const ho=lo-1;(function(go,mo,yo,So){const _o=Sn;Sn="",Ln(go,yo,0,mo,So,null),Wn(yo,So),Sn=_o})(Bn(io,mn),ho,io,so)}const uo=io.__format;uo!==0&&On(so,uo),io.isInline()||Mn(null,io,so),Rt(io)&&(Tn+=xe,kn+=xe)}else{const ao=io.getTextContent();if(Hi(io)){const lo=io.decorate(dn,fn$7);lo!==null&&Kn(eo,lo),so.contentEditable="false"}else Br(io)&&(io.isDirectionless()||(Sn+=ao));Tn+=ao,kn+=ao}if(to!==null)if(no!=null)to.insertBefore(so,no);else{const ao=to.__lexicalLineBreak;ao!=null?to.insertBefore(so,ao):to.appendChild(so)}return Lt(vn,hn,gn,io,"created"),so}function Ln(eo,to,no,io,so,ao){const lo=Tn;Tn="";let uo=no;for(;uo<=io;++uo)An(eo[uo],so,ao);Rt(to)&&(Tn+=xe),so.__lexicalTextContent=Tn,Tn=lo+Tn}function Fn(eo,to){const no=to.get(eo);return vr(no)||Hi(no)&&no.isInline()}function Mn(eo,to,no){const io=eo!==null&&(eo.__size===0||Fn(eo.__last,yn)),so=to.__size===0||Fn(to.__last,mn);if(io){if(!so){const ao=no.__lexicalLineBreak;ao!=null&&no.removeChild(ao),no.__lexicalLineBreak=null}}else if(so){const ao=document.createElement("br");no.__lexicalLineBreak=ao,no.appendChild(ao)}}function Wn(eo,to){const no=to.__lexicalDirTextContent,io=to.__lexicalDir;if(no!==Sn||io!==Nn){const ao=Sn==="",lo=ao?Nn:(so=Sn,ke.test(so)?"rtl":Ce.test(so)?"ltr":null);if(lo!==io){const uo=to.classList,ho=fn$7.theme;let go=io!==null?ho[io]:void 0,mo=lo!==null?ho[lo]:void 0;if(go!==void 0){if(typeof go=="string"){const yo=Ie(go);go=ho[io]=yo}uo.remove(...go)}if(lo===null||ao&&lo==="ltr")to.removeAttribute("dir");else{if(mo!==void 0){if(typeof mo=="string"){const yo=Ie(mo);mo=ho[lo]=yo}mo!==void 0&&uo.add(...mo)}to.dir=lo}bn||(eo.getWritable().__dir=lo)}Nn=lo,to.__lexicalDirTextContent=Sn,to.__lexicalDir=lo}var so}function zn(eo,to,no){const io=Sn;Sn="",function(so,ao,lo){const uo=Tn,ho=so.__size,go=ao.__size;if(Tn="",ho===1&&go===1){const mo=so.__first,yo=ao.__first;if(mo===yo)Rn(mo,lo);else{const So=Vn(mo),_o=An(yo,null,null);lo.replaceChild(_o,So),wn(mo,null)}}else{const mo=Bn(so,yn),yo=Bn(ao,mn);if(ho===0)go!==0&&Ln(yo,ao,0,go-1,lo,null);else if(go===0){if(ho!==0){const So=lo.__lexicalLineBreak==null;En(mo,0,ho-1,So?null:lo),So&&(lo.textContent="")}}else(function(So,_o,ko,Co,$o,Ro){const Oo=Co-1,No=$o-1;let Mo,Bo,Po=(Do=Ro,Do.firstChild),Lo=0,Go=0;for(var Do;Lo<=Oo&&Go<=No;){const Yo=_o[Lo],qo=ko[Go];if(Yo===qo)Po=Jn(Rn(qo,Ro)),Lo++,Go++;else{Mo===void 0&&(Mo=new Set(_o)),Bo===void 0&&(Bo=new Set(ko));const Jo=Bo.has(Yo),ps=Mo.has(qo);if(Jo)if(ps){const Qo=Kt(dn,qo);Qo===Po?Po=Jn(Rn(qo,Ro)):(Po!=null?Ro.insertBefore(Qo,Po):Ro.appendChild(Qo),Rn(qo,Ro)),Lo++,Go++}else An(qo,Ro,Po),Go++;else Po=Jn(Vn(Yo)),wn(Yo,Ro),Lo++}}const Uo=Lo>Oo,Ho=Go>No;if(Uo&&!Ho){const Yo=ko[No+1];Ln(ko,So,Go,No,Ro,Yo===void 0?null:dn.getElementByKey(Yo))}else Ho&&!Uo&&En(_o,Lo,Oo,Ro)})(ao,mo,yo,ho,go,lo)}Rt(ao)&&(Tn+=xe),lo.__lexicalTextContent=Tn,Tn=uo+Tn}(eo,to,no),Wn(to,no),Sn=io}function Bn(eo,to){const no=[];let io=eo.__first;for(;io!==null;){const so=to.get(io);so===void 0&&H$1(101),no.push(io),io=so.__next}return no}function Rn(eo,to){const no=yn.get(eo);let io=mn.get(eo);no!==void 0&&io!==void 0||H$1(61);const so=Cn||pn.has(eo)||_n.has(eo),ao=Kt(dn,eo);if(no===io&&!so){if(qi(no)){const lo=ao.__lexicalTextContent;lo!==void 0&&(Tn+=lo,kn+=lo);const uo=ao.__lexicalDirTextContent;uo!==void 0&&(Sn+=uo)}else{const lo=no.getTextContent();Br(no)&&!no.isDirectionless()&&(Sn+=lo),kn+=lo,Tn+=lo}return ao}if(no!==io&&so&&Lt(vn,hn,gn,io,"updated"),io.updateDOM(no,ao,fn$7)){const lo=An(eo,null,null);return to===null&&H$1(62),to.replaceChild(lo,ao),wn(eo,null),lo}if(qi(no)&&qi(io)){const lo=io.__indent;lo!==no.__indent&&In(ao,lo);const uo=io.__format;uo!==no.__format&&On(ao,uo),so&&(zn(no,io,ao),Yi(io)||io.isInline()||Mn(no,io,ao)),Rt(io)&&(Tn+=xe,kn+=xe)}else{const lo=io.getTextContent();if(Hi(io)){const uo=io.decorate(dn,fn$7);uo!==null&&Kn(eo,uo)}else Br(io)&&!io.isDirectionless()&&(Sn+=lo);Tn+=lo,kn+=lo}if(!bn&&Yi(io)&&io.__cachedText!==kn){const lo=io.getWritable();lo.__cachedText=kn,io=lo}return ao}function Kn(eo,to){let no=dn._pendingDecorators;const io=dn._decorators;if(no===null){if(io[eo]===to)return;no=ft$1(dn)}no[eo]=to}function Jn(eo){let to=eo.nextSibling;return to!==null&&to===dn._blockCursorElement&&(to=to.nextSibling),to}function Un(eo,to,no,io,so,ao){Tn="",kn="",Sn="",Cn=io===ce,Nn=null,dn=no,fn$7=no._config,hn=no._nodes,gn=dn._listeners.mutation,_n=so,pn=ao,yn=eo._nodeMap,mn=to._nodeMap,bn=to._readOnly,xn=new Map(no._keyToDOMMap);const lo=new Map;return vn=lo,Rn("root",null),dn=void 0,hn=void 0,_n=void 0,pn=void 0,yn=void 0,mn=void 0,fn$7=void 0,xn=void 0,vn=void 0,lo}function Vn(eo){const to=xn.get(eo);return to===void 0&&H$1(75,eo),to}const $n=Object.freeze({}),Hn=30,jn=[["keydown",function(eo,to){if(qn=eo.timeStamp,Qn=eo.keyCode,to.isComposing())return;const{keyCode:no,shiftKey:io,ctrlKey:so,metaKey:ao,altKey:lo}=eo;Bt(to,_$6,eo)||(function(uo,ho,go,mo){return Nt$1(uo)&&!ho&&!mo&&!go}(no,so,lo,ao)?Bt(to,p$5,eo):function(uo,ho,go,mo,yo){return Nt$1(uo)&&!mo&&!go&&(ho||yo)}(no,so,io,lo,ao)?Bt(to,y$7,eo):function(uo,ho,go,mo){return bt(uo)&&!ho&&!mo&&!go}(no,so,lo,ao)?Bt(to,m$5,eo):function(uo,ho,go,mo,yo){return bt(uo)&&!mo&&!go&&(ho||yo)}(no,so,io,lo,ao)?Bt(to,x$8,eo):function(uo,ho,go){return function(mo){return mo===38}(uo)&&!ho&&!go}(no,so,ao)?Bt(to,v$3,eo):function(uo,ho,go){return function(mo){return mo===40}(uo)&&!ho&&!go}(no,so,ao)?Bt(to,T$4,eo):function(uo,ho){return Et$1(uo)&&ho}(no,io)?(tr=!0,Bt(to,S$5,eo)):function(uo){return uo===32}(no)?Bt(to,k$2,eo):function(uo,ho){return Q&&ho&&uo===79}(no,so)?(eo.preventDefault(),tr=!0,Bt(to,s$2,!0)):function(uo,ho){return Et$1(uo)&&!ho}(no,io)?(tr=!1,Bt(to,S$5,eo)):function(uo,ho,go,mo){return Q?!ho&&!go&&(Pt$1(uo)||uo===72&&mo):!(mo||ho||go)&&Pt$1(uo)}(no,lo,ao,so)?Pt$1(no)?Bt(to,C$5,eo):(eo.preventDefault(),Bt(to,i$6,!0)):function(uo){return uo===27}(no)?Bt(to,b$2,eo):function(uo,ho,go,mo,yo){return Q?!(go||mo||yo)&&(Dt$1(uo)||uo===68&&ho):!(ho||mo||yo)&&Dt$1(uo)}(no,so,io,lo,ao)?Dt$1(no)?Bt(to,N$3,eo):(eo.preventDefault(),Bt(to,i$6,!1)):function(uo,ho,go){return Pt$1(uo)&&(Q?ho:go)}(no,lo,so)?(eo.preventDefault(),Bt(to,a$4,!0)):function(uo,ho,go){return Dt$1(uo)&&(Q?ho:go)}(no,lo,so)?(eo.preventDefault(),Bt(to,a$4,!1)):function(uo,ho){return Q&&ho&&Pt$1(uo)}(no,ao)?(eo.preventDefault(),Bt(to,f$5,!0)):function(uo,ho){return Q&&ho&&Dt$1(uo)}(no,ao)?(eo.preventDefault(),Bt(to,f$5,!1)):function(uo,ho,go,mo){return uo===66&&!ho&&wt$1(go,mo)}(no,lo,ao,so)?(eo.preventDefault(),Bt(to,d$4,"bold")):function(uo,ho,go,mo){return uo===85&&!ho&&wt$1(go,mo)}(no,lo,ao,so)?(eo.preventDefault(),Bt(to,d$4,"underline")):function(uo,ho,go,mo){return uo===73&&!ho&&wt$1(go,mo)}(no,lo,ao,so)?(eo.preventDefault(),Bt(to,d$4,"italic")):function(uo,ho,go,mo){return uo===9&&!ho&&!go&&!mo}(no,lo,so,ao)?Bt(to,w$4,eo):function(uo,ho,go,mo){return uo===90&&!ho&&wt$1(go,mo)}(no,io,ao,so)?(eo.preventDefault(),Bt(to,h$3,void 0)):function(uo,ho,go,mo){return Q?uo===90&&go&&ho:uo===89&&mo||uo===90&&mo&&ho}(no,io,ao,so)?(eo.preventDefault(),Bt(to,g$6,void 0)):Zr(to._editorState._selection)?function(uo,ho,go,mo){return!ho&&uo===67&&(Q?go:mo)}(no,io,ao,so)?(eo.preventDefault(),Bt(to,M$3,eo)):function(uo,ho,go,mo){return!ho&&uo===88&&(Q?go:mo)}(no,io,ao,so)?(eo.preventDefault(),Bt(to,W,eo)):It(no,ao,so)&&(eo.preventDefault(),Bt(to,z$1,eo)):!X&&It(no,ao,so)&&(eo.preventDefault(),Bt(to,z$1,eo)),function(uo,ho,go,mo){return uo||ho||go||mo}(so,io,lo,ao)&&Bt(to,$$1,eo))}],["pointerdown",function(eo,to){const no=eo.target,io=eo.pointerType;no instanceof Node&&io!=="touch"&&Vi(to,()=>{Hi(at$1(no))||(er$1=!0)})}],["compositionstart",function(eo,to){Vi(to,()=>{const no=fi();if(Xr(no)&&!to.isComposing()){const io=no.anchor,so=no.anchor.getNode();ot(io.key),(eo.timeStamp{cr(to,eo.data)})}],["input",function(eo,to){eo.stopPropagation(),Vi(to,()=>{const no=fi(),io=eo.data,so=lr(eo);if(io!=null&&Xr(no)&&ir(no,so,io,eo.timeStamp,!1)){nr&&(cr(to,io),nr=!1);const ao=no.anchor,lo=ao.getNode(),uo=nn(to._window);if(uo===null)return;const ho=ao.offset;Y&&!no.isCollapsed()&&Br(lo)&&uo.anchorNode!==null&&lo.getTextContent().slice(0,ho)+io+lo.getTextContent().slice(ho+no.focus.offset)===Tt(uo.anchorNode)||Bt(to,l$3,io);const go=io.length;X&&go>1&&eo.inputType==="insertCompositionText"&&!to.isComposing()&&(no.anchor.offset-=go),Z||G||re||!to.isComposing()||(qn=0,ot(null))}else St(!1,to,io!==null?io:void 0),nr&&(cr(to,io||void 0),nr=!1);Pi(),Re(Oi())}),Yn$1=null}],["click",function(eo,to){Vi(to,()=>{const no=fi(),io=nn(to._window),so=di();if(io){if(Xr(no)){const ao=no.anchor,lo=ao.getNode();ao.type==="element"&&ao.offset===0&&no.isCollapsed()&&!Yi(lo)&&ht$1().getChildrenSize()===1&&lo.getTopLevelElementOrThrow().isEmpty()&&so!==null&&no.is(so)?(io.removeAllRanges(),no.dirty=!0):eo.detail===3&&!no.isCollapsed()&&lo!==no.focus.getNode()&&(qi(lo)?lo.select(0):lo.getParentOrThrow().select(0))}else if(eo.pointerType==="touch"){const ao=io.anchorNode;if(ao!==null){const lo=ao.nodeType;(lo===ie$2||lo===se)&&_t(ai(so,io,to,eo))}}}Bt(to,r$1,eo)})}],["cut",$n],["copy",$n],["dragstart",$n],["dragover",$n],["dragend",$n],["paste",$n],["focus",$n],["blur",$n],["drop",$n]];Y&&jn.push(["beforeinput",(eo,to)=>function(no,io){const so=no.inputType,ao=lr(no);so==="deleteCompositionText"||X&&zt(io)||so!=="insertCompositionText"&&Vi(io,()=>{const lo=fi();if(so==="deleteContentBackward"){if(lo===null){const _o=di();if(!Xr(_o))return;_t(_o.clone())}if(Xr(lo)){const _o=lo.anchor.key===lo.focus.key;if(uo=no.timeStamp,Qn===229&&uo{Vi(io,()=>{ot(null)})},Hn),Xr(lo)){const ko=lo.anchor.getNode();ko.markDirty(),lo.format=ko.getFormat(),Br(ko)||H$1(142),lo.style=ko.getStyle()}}else{ot(null),no.preventDefault();const ko=lo.anchor.getNode().getTextContent(),Co=lo.anchor.offset===0&&lo.focus.offset===ko.length;ne&&_o&&!Co||Bt(io,i$6,!0)}return}}var uo;if(!Xr(lo))return;const ho=no.data;Yn$1!==null&&St(!1,io,Yn$1),lo.dirty&&Yn$1===null||!lo.isCollapsed()||Yi(lo.anchor.getNode())||ao===null||lo.applyDOMRange(ao),Yn$1=null;const go=lo.anchor,mo=lo.focus,yo=go.getNode(),So=mo.getNode();if(so!=="insertText"&&so!=="insertTranspose")switch(no.preventDefault(),so){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Bt(io,l$3,no);break;case"insertFromComposition":ot(null),Bt(io,l$3,no);break;case"insertLineBreak":ot(null),Bt(io,s$2,!1);break;case"insertParagraph":ot(null),tr&&!G?(tr=!1,Bt(io,s$2,!1)):Bt(io,o$5,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Bt(io,c$6,no);break;case"deleteByComposition":(function(_o,ko){return _o!==ko||qi(_o)||qi(ko)||!_o.isToken()||!ko.isToken()})(yo,So)&&Bt(io,u$5,no);break;case"deleteByDrag":case"deleteByCut":Bt(io,u$5,no);break;case"deleteContent":Bt(io,i$6,!1);break;case"deleteWordBackward":Bt(io,a$4,!0);break;case"deleteWordForward":Bt(io,a$4,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Bt(io,f$5,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Bt(io,f$5,!1);break;case"formatStrikeThrough":Bt(io,d$4,"strikethrough");break;case"formatBold":Bt(io,d$4,"bold");break;case"formatItalic":Bt(io,d$4,"italic");break;case"formatUnderline":Bt(io,d$4,"underline");break;case"historyUndo":Bt(io,h$3,void 0);break;case"historyRedo":Bt(io,g$6,void 0)}else{if(ho===` -`)no.preventDefault(),Bt(io,s$2,!1);else if(ho===xe)no.preventDefault(),Bt(io,o$5,void 0);else if(ho==null&&no.dataTransfer){const _o=no.dataTransfer.getData("text/plain");no.preventDefault(),lo.insertRawText(_o)}else ho!=null&&ir(lo,ao,ho,no.timeStamp,!0)?(no.preventDefault(),Bt(io,l$3,ho)):Yn$1=ho;Xn$1=no.timeStamp}})}(eo,to)]);let qn=0,Qn=0,Xn$1=0,Yn$1=null;const Zn$1=new WeakMap;let Gn=!1,er$1=!1,tr=!1,nr=!1,rr=[0,"",0,"root",0];function ir(eo,to,no,io,so){const ao=eo.anchor,lo=eo.focus,uo=ao.getNode(),ho=Oi(),go=nn(ho._window),mo=go!==null?go.anchorNode:null,yo=ao.key,So=ho.getElementByKey(yo),_o=no.length;return yo!==lo.key||!Br(uo)||(!so&&(!Y||Xn$11||(so||!Y)&&So!==null&&!uo.isComposing()&&mo!==et(So)||go!==null&&to!==null&&(!to.collapsed||to.startContainer!==go.anchorNode||to.startOffset!==go.anchorOffset)||uo.getFormat()!==eo.format||uo.getStyle()!==eo.style||Ct$1(eo,uo)}function sr(eo,to){return eo!==null&&eo.nodeValue!==null&&eo.nodeType===se&&to!==0&&to!==eo.nodeValue.length}function or(eo,to,no){const{anchorNode:io,anchorOffset:so,focusNode:ao,focusOffset:lo}=eo;Gn&&(Gn=!1,sr(io,so)&&sr(ao,lo))||Vi(to,()=>{if(!no)return void _t(null);if(!Xe(to,io,ao))return;const uo=fi();if(Xr(uo)){const ho=uo.anchor,go=ho.getNode();if(uo.isCollapsed()){eo.type==="Range"&&eo.anchorNode===eo.focusNode&&(uo.dirty=!0);const mo=Ht(to).event,yo=mo?mo.timeStamp:performance.now(),[So,_o,ko,Co,$o]=rr,Ro=ht$1(),Oo=to.isComposing()===!1&&Ro.getTextContent()==="";yo<$o+200&&ho.offset===ko&&ho.key===Co?(uo.format=So,uo.style=_o):ho.type==="text"?(Br(go)||H$1(141),uo.format=go.getFormat(),uo.style=go.getStyle()):ho.type!=="element"||Oo||(uo.format=0,uo.style="")}else{const mo=ho.key,yo=uo.focus.key,So=uo.getNodes(),_o=So.length,ko=uo.isBackward(),Co=ko?lo:so,$o=ko?so:lo,Ro=ko?yo:mo,Oo=ko?mo:yo;let No=fe,Mo=!1;for(let Bo=0;Bo<_o;Bo++){const Po=So[Bo],Lo=Po.getTextContentSize();if(Br(Po)&&Lo!==0&&!(Bo===0&&Po.__key===Ro&&Co===Lo||Bo===_o-1&&Po.__key===Oo&&$o===0)&&(Mo=!0,No&=Po.getFormat(),No===0))break}uo.format=Mo?No:0}}Bt(to,t$4,void 0)})}function lr(eo){if(!eo.getTargetRanges)return null;const to=eo.getTargetRanges();return to.length===0?null:to[0]}function cr(eo,to){const no=eo._compositionKey;if(ot(null),no!==null&&to!=null){if(to===""){const io=ct$1(no),so=et(eo.getElementByKey(no));return void(so!==null&&so.nodeValue!==null&&Br(io)&&kt(io,so.nodeValue,null,null,!0))}if(to[to.length-1]===` +`,ve=X?" ":me,Te="֑-߿יִ-﷽ﹰ-ﻼ",Se="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",ke=new RegExp("^[^"+Se+"]*["+Te+"]"),Ce=new RegExp("^[^"+Te+"]*["+Se+"]"),be={bold:1,code:16,highlight:128,italic:2,strikethrough:ue,subscript:32,superscript:64,underline:ae},Ne={directionless:1,unmergeable:2},we={center:he,end:ye,justify:_e,left:de,right:ge,start:pe},Ee={[he]:"center",[ye]:"end",[_e]:"justify",[de]:"left",[ge]:"right",[pe]:"start"},Pe={normal:0,segmented:2,token:1},De={0:"normal",2:"segmented",1:"token"};function Ie(...eo){const to=[];for(const no of eo)if(no&&typeof no=="string")for(const[io]of no.matchAll(/\S+/g))to.push(io);return to}const Oe=100;let Ae=!1,Le=0;function Fe(eo){Le=eo.timeStamp}function Me(eo,to,no){return to.__lexicalLineBreak===eo||eo[`__lexicalKey_${no._key}`]!==void 0}function We(eo,to,no){const io=nn(no._window);let so=null,ao=null;io!==null&&io.anchorNode===eo&&(so=io.anchorOffset,ao=io.focusOffset);const lo=eo.nodeValue;lo!==null&&kt(to,lo,so,ao,!1)}function ze(eo,to,no){if(Xr(eo)){const io=eo.anchor.getNode();if(io.is(no)&&eo.format!==io.getFormat())return!1}return to.nodeType===se&&no.isAttached()}function Be(eo,to,no){Ae=!0;const io=performance.now()-Le>Oe;try{Vi(eo,()=>{const so=fi()||function(So){return So.getEditorState().read(()=>{const _o=fi();return _o!==null?_o.clone():null})}(eo),ao=new Map,lo=eo.getRootElement(),uo=eo._editorState,ho=eo._blockCursorElement;let go=!1,mo="";for(let So=0;So0){let Mo=0;for(let Bo=0;Bo0)for(const[So,_o]of ao)if(qi(_o)){const ko=_o.getChildrenKeys();let Co=So.firstChild;for(let $o=0;$o0){for(let So=0;So{Be(eo,to,no)})}function Je(eo,to){const no=eo.__mode,io=eo.__format,so=eo.__style,ao=to.__mode,lo=to.__format,uo=to.__style;return!(no!==null&&no!==ao||io!==null&&io!==lo||so!==null&&so!==uo)}function Ue(eo,to){const no=eo.mergeWithSibling(to),io=Oi()._normalizedNodes;return io.add(eo.__key),io.add(to.__key),no}function Ve(eo){let to,no,io=eo;if(io.__text!==""||!io.isSimpleText()||io.isUnmergeable()){for(;(to=io.getPreviousSibling())!==null&&Br(to)&&to.isSimpleText()&&!to.isUnmergeable();){if(to.__text!==""){if(Je(to,io)){io=Ue(to,io);break}break}to.remove()}for(;(no=io.getNextSibling())!==null&&Br(no)&&no.isSimpleText()&&!no.isUnmergeable();){if(no.__text!==""){if(Je(io,no)){io=Ue(io,no);break}break}no.remove()}}else io.remove()}function $e(eo){return He(eo.anchor),He(eo.focus),eo}function He(eo){for(;eo.type==="element";){const to=eo.getNode(),no=eo.offset;let io,so;if(no===to.getChildrenSize()?(io=to.getChildAtIndex(no-1),so=!0):(io=to.getChildAtIndex(no),so=!1),Br(io)){eo.set(io.__key,so?io.getTextContentSize():0,"text");break}if(!qi(io))break;eo.set(io.__key,so?io.getChildrenSize():0,"element")}}let je=1;const qe=typeof queueMicrotask=="function"?queueMicrotask:eo=>{Promise.resolve().then(eo)};function Qe(eo){const to=document.activeElement;if(to===null)return!1;const no=to.nodeName;return Hi(at$1(eo))&&(no==="INPUT"||no==="TEXTAREA"||to.contentEditable==="true"&&to.__lexicalEditor==null)}function Xe(eo,to,no){const io=eo.getRootElement();try{return io!==null&&io.contains(to)&&io.contains(no)&&to!==null&&!Qe(to)&&Ye(to)===eo}catch{return!1}}function Ye(eo){let to=eo;for(;to!=null;){const no=to.__lexicalEditor;if(no!=null)return no;to=Jt(to)}return null}function Ze(eo){return eo.isToken()||eo.isSegmented()}function Ge(eo){return eo.nodeType===se}function et(eo){let to=eo;for(;to!=null;){if(Ge(to))return to;to=to.firstChild}return null}function tt(eo,to,no){const io=be[to];if(no!==null&&(eo&io)==(no&io))return eo;let so=eo^io;return to==="subscript"?so&=~be.superscript:to==="superscript"&&(so&=~be.subscript),so}function nt(eo){return Br(eo)||vr(eo)||Hi(eo)}function rt(eo,to){if(to!=null)return void(eo.__key=to);Pi(),Di();const no=Oi(),io=Ii(),so=""+je++;io._nodeMap.set(so,eo),qi(eo)?no._dirtyElements.set(so,!0):no._dirtyLeaves.add(so),no._cloneNotNeeded.add(so),no._dirtyType=le,eo.__key=so}function it(eo){const to=eo.getParent();if(to!==null){const no=eo.getWritable(),io=to.getWritable(),so=eo.getPreviousSibling(),ao=eo.getNextSibling();if(so===null)if(ao!==null){const lo=ao.getWritable();io.__first=ao.__key,lo.__prev=null}else io.__first=null;else{const lo=so.getWritable();if(ao!==null){const uo=ao.getWritable();uo.__prev=lo.__key,lo.__next=uo.__key}else lo.__next=null;no.__prev=null}if(ao===null)if(so!==null){const lo=so.getWritable();io.__last=so.__key,lo.__next=null}else io.__last=null;else{const lo=ao.getWritable();if(so!==null){const uo=so.getWritable();uo.__next=lo.__key,lo.__prev=uo.__key}else lo.__prev=null;no.__next=null}io.__size--,no.__parent=null}}function st$1(eo){Di();const to=eo.getLatest(),no=to.__parent,io=Ii(),so=Oi(),ao=io._nodeMap,lo=so._dirtyElements;no!==null&&function(ho,go,mo){let yo=ho;for(;yo!==null;){if(mo.has(yo))return;const So=go.get(yo);if(So===void 0)break;mo.set(yo,!1),yo=So.__parent}}(no,ao,lo);const uo=to.__key;so._dirtyType=le,qi(eo)?lo.set(uo,!0):so._dirtyLeaves.add(uo)}function ot(eo){Pi();const to=Oi(),no=to._compositionKey;if(eo!==no){if(to._compositionKey=eo,no!==null){const io=ct$1(no);io!==null&&io.getWritable()}if(eo!==null){const io=ct$1(eo);io!==null&&io.getWritable()}}}function lt$1(){return Ei()?null:Oi()._compositionKey}function ct$1(eo,to){const no=(to||Ii())._nodeMap.get(eo);return no===void 0?null:no}function ut$1(eo,to){const no=eo[`__lexicalKey_${Oi()._key}`];return no!==void 0?ct$1(no,to):null}function at$1(eo,to){let no=eo;for(;no!=null;){const io=ut$1(no,to);if(io!==null)return io;no=Jt(no)}return null}function ft$1(eo){const to=eo._decorators,no=Object.assign({},to);return eo._pendingDecorators=no,no}function dt$1(eo){return eo.read(()=>ht$1().getTextContent())}function ht$1(){return gt$1(Ii())}function gt$1(eo){return eo._nodeMap.get("root")}function _t(eo){Pi();const to=Ii();eo!==null&&(eo.dirty=!0,eo.setCachedNodes(null)),to._selection=eo}function pt$1(eo){const to=Oi(),no=function(io,so){let ao=io;for(;ao!=null;){const lo=ao[`__lexicalKey_${so._key}`];if(lo!==void 0)return lo;ao=Jt(ao)}return null}(eo,to);return no===null?eo===to.getRootElement()?ct$1("root"):null:ct$1(no)}function yt$1(eo,to){return to?eo.getTextContentSize():0}function mt$1(eo){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(eo)}function xt$1(eo){const to=[];let no=eo;for(;no!==null;)to.push(no),no=no._parentEditor;return to}function vt$1(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Tt(eo){return eo.nodeType===se?eo.nodeValue:null}function St(eo,to,no){const io=nn(to._window);if(io===null)return;const so=io.anchorNode;let{anchorOffset:ao,focusOffset:lo}=io;if(so!==null){let uo=Tt(so);const ho=at$1(so);if(uo!==null&&Br(ho)){if(uo===me&&no){const go=no.length;uo=no,ao=go,lo=go}uo!==null&&kt(ho,uo,ao,lo,eo)}}}function kt(eo,to,no,io,so){let ao=eo;if(ao.isAttached()&&(so||!ao.isDirty())){const lo=ao.isComposing();let uo=to;(lo||so)&&to[to.length-1]===me&&(uo=to.slice(0,-1));const ho=ao.getTextContent();if(so||uo!==ho){if(uo===""){if(ot(null),Z||G||re)ao.remove();else{const Co=Oi();setTimeout(()=>{Co.update(()=>{ao.isAttached()&&ao.remove()})},20)}return}const go=ao.getParent(),mo=di(),yo=ao.getTextContentSize(),So=lt$1(),_o=ao.getKey();if(ao.isToken()||So!==null&&_o===So&&!lo||Xr(mo)&&(go!==null&&!go.canInsertTextBefore()&&mo.anchor.offset===0||mo.anchor.key===eo.__key&&mo.anchor.offset===0&&!ao.canInsertTextBefore()&&!lo||mo.focus.key===eo.__key&&mo.focus.offset===yo&&!ao.canInsertTextAfter()&&!lo))return void ao.markDirty();const ko=fi();if(!Xr(ko)||no===null||io===null)return void ao.setTextContent(uo);if(ko.setTextNodeRange(ao,no,ao,io),ao.isSegmented()){const Co=zr(ao.getTextContent());ao.replace(Co),ao=Co}ao.setTextContent(uo)}}}function Ct$1(eo,to){if(to.isSegmented())return!0;if(!eo.isCollapsed())return!1;const no=eo.anchor.offset,io=to.getParentOrThrow(),so=to.isToken();return no===0?!to.canInsertTextBefore()||!io.canInsertTextBefore()||so||function(ao){const lo=ao.getPreviousSibling();return(Br(lo)||qi(lo)&&lo.isInline())&&!lo.canInsertTextAfter()}(to):no===to.getTextContentSize()&&(!to.canInsertTextAfter()||!io.canInsertTextAfter()||so)}function bt(eo){return eo===37}function Nt$1(eo){return eo===39}function wt$1(eo,to){return Q?eo:to}function Et$1(eo){return eo===13}function Pt$1(eo){return eo===8}function Dt$1(eo){return eo===46}function It(eo,to,no){return eo===65&&wt$1(to,no)}function Ot$1(){const eo=ht$1();_t($e(eo.select(0,eo.getChildrenSize())))}function At$1(eo,to){eo.__lexicalClassNameCache===void 0&&(eo.__lexicalClassNameCache={});const no=eo.__lexicalClassNameCache,io=no[to];if(io!==void 0)return io;const so=eo[to];if(typeof so=="string"){const ao=Ie(so);return no[to]=ao,ao}return so}function Lt(eo,to,no,io,so){if(no.size===0)return;const ao=io.__type,lo=io.__key,uo=to.get(ao);uo===void 0&&H$1(33,ao);const ho=uo.klass;let go=eo.get(ho);go===void 0&&(go=new Map,eo.set(ho,go));const mo=go.get(lo),yo=mo==="destroyed"&&so==="created";(mo===void 0||yo)&&go.set(lo,yo?"updated":so)}function Ft(eo){const to=Ii(),no=to._readOnly,io=eo.getType(),so=to._nodeMap,ao=[];for(const[,lo]of so)lo instanceof eo&&lo.__type===io&&(no||lo.isAttached())&&ao.push(lo);return ao}function Mt(eo,to,no){const io=eo.getParent();let so=no,ao=eo;return io!==null&&(to&&no===0?(so=ao.getIndexWithinParent(),ao=io):to||no!==ao.getChildrenSize()||(so=ao.getIndexWithinParent()+1,ao=io)),ao.getChildAtIndex(to?so-1:so)}function Wt(eo,to){const no=eo.offset;if(eo.type==="element")return Mt(eo.getNode(),to,no);{const io=eo.getNode();if(to&&no===0||!to&&no===io.getTextContentSize()){const so=to?io.getPreviousSibling():io.getNextSibling();return so===null?Mt(io.getParentOrThrow(),to,io.getIndexWithinParent()+(to?0:1)):so}}return null}function zt(eo){const to=Ht(eo).event,no=to&&to.inputType;return no==="insertFromPaste"||no==="insertFromPasteAsQuotation"}function Bt(eo,to,no){return Ki(eo,to,no)}function Rt(eo){return!Yi(eo)&&!eo.isLastChild()&&!eo.isInline()}function Kt(eo,to){const no=eo._keyToDOMMap.get(to);return no===void 0&&H$1(75,to),no}function Jt(eo){const to=eo.assignedSlot||eo.parentElement;return to!==null&&to.nodeType===11?to.host:to}function Ut(eo){return Oi()._updateTags.has(eo)}function Vt(eo){Pi(),Oi()._updateTags.add(eo)}function $t(eo,to){let no=eo.getParent();for(;no!==null;){if(no.is(to))return!0;no=no.getParent()}return!1}function Ht(eo){const to=eo._window;return to===null&&H$1(78),to}function jt(eo){return qi(eo)&&eo.isInline()||Hi(eo)&&eo.isInline()}function qt(eo){let to=eo.getParentOrThrow();for(;to!==null;){if(Qt(to))return to;to=to.getParentOrThrow()}return to}function Qt(eo){return Yi(eo)||qi(eo)&&eo.isShadowRoot()}function Xt(eo){const to=eo.constructor.clone(eo);return rt(to,null),to}function Yt(eo){const to=Oi(),no=eo.constructor.getType(),io=to._nodes.get(no);io===void 0&&H$1(97);const so=io.replace;if(so!==null){const ao=so(eo);return ao instanceof eo.constructor||H$1(98),ao}return eo}function Zt(eo,to){!Yi(eo.getParent())||qi(to)||Hi(to)||H$1(99)}function Gt(eo){return(Hi(eo)||qi(eo)&&!eo.canBeEmpty())&&!eo.isInline()}function en(eo,to,no){no.style.removeProperty("caret-color"),to._blockCursorElement=null;const io=eo.parentElement;io!==null&&io.removeChild(eo)}function tn(eo,to,no){let io=eo._blockCursorElement;if(Xr(no)&&no.isCollapsed()&&no.anchor.type==="element"&&to.contains(document.activeElement)){const so=no.anchor,ao=so.getNode(),lo=so.offset;let uo=!1,ho=null;if(lo===ao.getChildrenSize())Gt(ao.getChildAtIndex(lo-1))&&(uo=!0);else{const go=ao.getChildAtIndex(lo);if(Gt(go)){const mo=go.getPreviousSibling();(mo===null||Gt(mo))&&(uo=!0,ho=eo.getElementByKey(go.__key))}}if(uo){const go=eo.getElementByKey(ao.__key);return io===null&&(eo._blockCursorElement=io=function(mo){const yo=mo.theme,So=document.createElement("div");So.contentEditable="false",So.setAttribute("data-lexical-cursor","true");let _o=yo.blockCursor;if(_o!==void 0){if(typeof _o=="string"){const ko=Ie(_o);_o=yo.blockCursor=ko}_o!==void 0&&So.classList.add(..._o)}return So}(eo._config)),to.style.caretColor="transparent",void(ho===null?go.appendChild(io):go.insertBefore(io,ho))}}io!==null&&en(io,eo,to)}function nn(eo){return j?(eo||window).getSelection():null}function rn(eo,to){let no=eo.getChildAtIndex(to);no==null&&(no=eo),Qt(eo)&&H$1(102);const io=lo=>{const uo=lo.getParentOrThrow(),ho=Qt(uo),go=lo!==no||ho?Xt(lo):lo;if(ho)return qi(lo)&&qi(go)||H$1(133),lo.insertAfter(go),[lo,go,go];{const[mo,yo,So]=io(uo),_o=lo.getNextSiblings();return So.append(go,..._o),[mo,yo,go]}},[so,ao]=io(no);return[so,ao]}function sn(eo){return on(eo)&&eo.tagName==="A"}function on(eo){return eo.nodeType===1}function ln(eo){if(Hi(eo)&&!eo.isInline())return!0;if(!qi(eo)||Qt(eo))return!1;const to=eo.getFirstChild(),no=to===null||vr(to)||Br(to)||to.isInline();return!eo.isInline()&&eo.canBeEmpty()!==!1&&no}function cn(eo,to){let no=eo;for(;no!==null&&no.getParent()!==null&&!to(no);)no=no.getParentOrThrow();return to(no)?no:null}function un(){return Oi()}function an(eo,to,no,io,so,ao){let lo=eo.getFirstChild();for(;lo!==null;){const uo=lo.__key;lo.__parent===to&&(qi(lo)&&an(lo,uo,no,io,so,ao),no.has(uo)||ao.delete(uo),so.push(uo)),lo=lo.getNextSibling()}}let fn$7,dn,hn,gn,_n,pn,yn,mn,xn,vn,Tn="",Sn="",kn="",Cn=!1,bn=!1,Nn=null;function wn(eo,to){const no=yn.get(eo);if(to!==null){const io=Vn(eo);io.parentNode===to&&to.removeChild(io)}if(mn.has(eo)||dn._keyToDOMMap.delete(eo),qi(no)){const io=Bn(no,yn);En(io,0,io.length-1,null)}no!==void 0&&Lt(vn,hn,gn,no,"destroyed")}function En(eo,to,no,io){let so=to;for(;so<=no;++so){const ao=eo[so];ao!==void 0&&wn(ao,io)}}function Pn(eo,to){eo.setProperty("text-align",to)}const Dn="40px";function In(eo,to){const no=fn$7.theme.indent;if(typeof no=="string"){const so=eo.classList.contains(no);to>0&&!so?eo.classList.add(no):to<1&&so&&eo.classList.remove(no)}const io=getComputedStyle(eo).getPropertyValue("--lexical-indent-base-value")||Dn;eo.style.setProperty("padding-inline-start",to===0?"":`calc(${to} * ${io})`)}function On(eo,to){const no=eo.style;to===0?Pn(no,""):to===de?Pn(no,"left"):to===he?Pn(no,"center"):to===ge?Pn(no,"right"):to===_e?Pn(no,"justify"):to===pe?Pn(no,"start"):to===ye&&Pn(no,"end")}function An(eo,to,no){const io=mn.get(eo);io===void 0&&H$1(60);const so=io.createDOM(fn$7,dn);if(function(ao,lo,uo){const ho=uo._keyToDOMMap;lo["__lexicalKey_"+uo._key]=ao,ho.set(ao,lo)}(eo,so,dn),Br(io)?so.setAttribute("data-lexical-text","true"):Hi(io)&&so.setAttribute("data-lexical-decorator","true"),qi(io)){const ao=io.__indent,lo=io.__size;if(ao!==0&&In(so,ao),lo!==0){const ho=lo-1;(function(go,mo,yo,So){const _o=Sn;Sn="",Ln(go,yo,0,mo,So,null),Wn(yo,So),Sn=_o})(Bn(io,mn),ho,io,so)}const uo=io.__format;uo!==0&&On(so,uo),io.isInline()||Mn(null,io,so),Rt(io)&&(Tn+=xe,kn+=xe)}else{const ao=io.getTextContent();if(Hi(io)){const lo=io.decorate(dn,fn$7);lo!==null&&Kn(eo,lo),so.contentEditable="false"}else Br(io)&&(io.isDirectionless()||(Sn+=ao));Tn+=ao,kn+=ao}if(to!==null)if(no!=null)to.insertBefore(so,no);else{const ao=to.__lexicalLineBreak;ao!=null?to.insertBefore(so,ao):to.appendChild(so)}return Lt(vn,hn,gn,io,"created"),so}function Ln(eo,to,no,io,so,ao){const lo=Tn;Tn="";let uo=no;for(;uo<=io;++uo)An(eo[uo],so,ao);Rt(to)&&(Tn+=xe),so.__lexicalTextContent=Tn,Tn=lo+Tn}function Fn(eo,to){const no=to.get(eo);return vr(no)||Hi(no)&&no.isInline()}function Mn(eo,to,no){const io=eo!==null&&(eo.__size===0||Fn(eo.__last,yn)),so=to.__size===0||Fn(to.__last,mn);if(io){if(!so){const ao=no.__lexicalLineBreak;ao!=null&&no.removeChild(ao),no.__lexicalLineBreak=null}}else if(so){const ao=document.createElement("br");no.__lexicalLineBreak=ao,no.appendChild(ao)}}function Wn(eo,to){const no=to.__lexicalDirTextContent,io=to.__lexicalDir;if(no!==Sn||io!==Nn){const ao=Sn==="",lo=ao?Nn:(so=Sn,ke.test(so)?"rtl":Ce.test(so)?"ltr":null);if(lo!==io){const uo=to.classList,ho=fn$7.theme;let go=io!==null?ho[io]:void 0,mo=lo!==null?ho[lo]:void 0;if(go!==void 0){if(typeof go=="string"){const yo=Ie(go);go=ho[io]=yo}uo.remove(...go)}if(lo===null||ao&&lo==="ltr")to.removeAttribute("dir");else{if(mo!==void 0){if(typeof mo=="string"){const yo=Ie(mo);mo=ho[lo]=yo}mo!==void 0&&uo.add(...mo)}to.dir=lo}bn||(eo.getWritable().__dir=lo)}Nn=lo,to.__lexicalDirTextContent=Sn,to.__lexicalDir=lo}var so}function zn(eo,to,no){const io=Sn;Sn="",function(so,ao,lo){const uo=Tn,ho=so.__size,go=ao.__size;if(Tn="",ho===1&&go===1){const mo=so.__first,yo=ao.__first;if(mo===yo)Rn(mo,lo);else{const So=Vn(mo),_o=An(yo,null,null);lo.replaceChild(_o,So),wn(mo,null)}}else{const mo=Bn(so,yn),yo=Bn(ao,mn);if(ho===0)go!==0&&Ln(yo,ao,0,go-1,lo,null);else if(go===0){if(ho!==0){const So=lo.__lexicalLineBreak==null;En(mo,0,ho-1,So?null:lo),So&&(lo.textContent="")}}else(function(So,_o,ko,Co,$o,Ro){const Oo=Co-1,No=$o-1;let Mo,Bo,Fo=(Do=Ro,Do.firstChild),Lo=0,Go=0;for(var Do;Lo<=Oo&&Go<=No;){const Yo=_o[Lo],qo=ko[Go];if(Yo===qo)Fo=Jn(Rn(qo,Ro)),Lo++,Go++;else{Mo===void 0&&(Mo=new Set(_o)),Bo===void 0&&(Bo=new Set(ko));const Jo=Bo.has(Yo),ps=Mo.has(qo);if(Jo)if(ps){const Qo=Kt(dn,qo);Qo===Fo?Fo=Jn(Rn(qo,Ro)):(Fo!=null?Ro.insertBefore(Qo,Fo):Ro.appendChild(Qo),Rn(qo,Ro)),Lo++,Go++}else An(qo,Ro,Fo),Go++;else Fo=Jn(Vn(Yo)),wn(Yo,Ro),Lo++}}const Uo=Lo>Oo,Ho=Go>No;if(Uo&&!Ho){const Yo=ko[No+1];Ln(ko,So,Go,No,Ro,Yo===void 0?null:dn.getElementByKey(Yo))}else Ho&&!Uo&&En(_o,Lo,Oo,Ro)})(ao,mo,yo,ho,go,lo)}Rt(ao)&&(Tn+=xe),lo.__lexicalTextContent=Tn,Tn=uo+Tn}(eo,to,no),Wn(to,no),Sn=io}function Bn(eo,to){const no=[];let io=eo.__first;for(;io!==null;){const so=to.get(io);so===void 0&&H$1(101),no.push(io),io=so.__next}return no}function Rn(eo,to){const no=yn.get(eo);let io=mn.get(eo);no!==void 0&&io!==void 0||H$1(61);const so=Cn||pn.has(eo)||_n.has(eo),ao=Kt(dn,eo);if(no===io&&!so){if(qi(no)){const lo=ao.__lexicalTextContent;lo!==void 0&&(Tn+=lo,kn+=lo);const uo=ao.__lexicalDirTextContent;uo!==void 0&&(Sn+=uo)}else{const lo=no.getTextContent();Br(no)&&!no.isDirectionless()&&(Sn+=lo),kn+=lo,Tn+=lo}return ao}if(no!==io&&so&&Lt(vn,hn,gn,io,"updated"),io.updateDOM(no,ao,fn$7)){const lo=An(eo,null,null);return to===null&&H$1(62),to.replaceChild(lo,ao),wn(eo,null),lo}if(qi(no)&&qi(io)){const lo=io.__indent;lo!==no.__indent&&In(ao,lo);const uo=io.__format;uo!==no.__format&&On(ao,uo),so&&(zn(no,io,ao),Yi(io)||io.isInline()||Mn(no,io,ao)),Rt(io)&&(Tn+=xe,kn+=xe)}else{const lo=io.getTextContent();if(Hi(io)){const uo=io.decorate(dn,fn$7);uo!==null&&Kn(eo,uo)}else Br(io)&&!io.isDirectionless()&&(Sn+=lo);Tn+=lo,kn+=lo}if(!bn&&Yi(io)&&io.__cachedText!==kn){const lo=io.getWritable();lo.__cachedText=kn,io=lo}return ao}function Kn(eo,to){let no=dn._pendingDecorators;const io=dn._decorators;if(no===null){if(io[eo]===to)return;no=ft$1(dn)}no[eo]=to}function Jn(eo){let to=eo.nextSibling;return to!==null&&to===dn._blockCursorElement&&(to=to.nextSibling),to}function Un(eo,to,no,io,so,ao){Tn="",kn="",Sn="",Cn=io===ce,Nn=null,dn=no,fn$7=no._config,hn=no._nodes,gn=dn._listeners.mutation,_n=so,pn=ao,yn=eo._nodeMap,mn=to._nodeMap,bn=to._readOnly,xn=new Map(no._keyToDOMMap);const lo=new Map;return vn=lo,Rn("root",null),dn=void 0,hn=void 0,_n=void 0,pn=void 0,yn=void 0,mn=void 0,fn$7=void 0,xn=void 0,vn=void 0,lo}function Vn(eo){const to=xn.get(eo);return to===void 0&&H$1(75,eo),to}const $n=Object.freeze({}),Hn=30,jn=[["keydown",function(eo,to){if(qn=eo.timeStamp,Qn=eo.keyCode,to.isComposing())return;const{keyCode:no,shiftKey:io,ctrlKey:so,metaKey:ao,altKey:lo}=eo;Bt(to,_$6,eo)||(function(uo,ho,go,mo){return Nt$1(uo)&&!ho&&!mo&&!go}(no,so,lo,ao)?Bt(to,p$5,eo):function(uo,ho,go,mo,yo){return Nt$1(uo)&&!mo&&!go&&(ho||yo)}(no,so,io,lo,ao)?Bt(to,y$7,eo):function(uo,ho,go,mo){return bt(uo)&&!ho&&!mo&&!go}(no,so,lo,ao)?Bt(to,m$5,eo):function(uo,ho,go,mo,yo){return bt(uo)&&!mo&&!go&&(ho||yo)}(no,so,io,lo,ao)?Bt(to,x$8,eo):function(uo,ho,go){return function(mo){return mo===38}(uo)&&!ho&&!go}(no,so,ao)?Bt(to,v$3,eo):function(uo,ho,go){return function(mo){return mo===40}(uo)&&!ho&&!go}(no,so,ao)?Bt(to,T$4,eo):function(uo,ho){return Et$1(uo)&&ho}(no,io)?(tr=!0,Bt(to,S$5,eo)):function(uo){return uo===32}(no)?Bt(to,k$2,eo):function(uo,ho){return Q&&ho&&uo===79}(no,so)?(eo.preventDefault(),tr=!0,Bt(to,s$2,!0)):function(uo,ho){return Et$1(uo)&&!ho}(no,io)?(tr=!1,Bt(to,S$5,eo)):function(uo,ho,go,mo){return Q?!ho&&!go&&(Pt$1(uo)||uo===72&&mo):!(mo||ho||go)&&Pt$1(uo)}(no,lo,ao,so)?Pt$1(no)?Bt(to,C$5,eo):(eo.preventDefault(),Bt(to,i$6,!0)):function(uo){return uo===27}(no)?Bt(to,b$2,eo):function(uo,ho,go,mo,yo){return Q?!(go||mo||yo)&&(Dt$1(uo)||uo===68&&ho):!(ho||mo||yo)&&Dt$1(uo)}(no,so,io,lo,ao)?Dt$1(no)?Bt(to,N$3,eo):(eo.preventDefault(),Bt(to,i$6,!1)):function(uo,ho,go){return Pt$1(uo)&&(Q?ho:go)}(no,lo,so)?(eo.preventDefault(),Bt(to,a$4,!0)):function(uo,ho,go){return Dt$1(uo)&&(Q?ho:go)}(no,lo,so)?(eo.preventDefault(),Bt(to,a$4,!1)):function(uo,ho){return Q&&ho&&Pt$1(uo)}(no,ao)?(eo.preventDefault(),Bt(to,f$5,!0)):function(uo,ho){return Q&&ho&&Dt$1(uo)}(no,ao)?(eo.preventDefault(),Bt(to,f$5,!1)):function(uo,ho,go,mo){return uo===66&&!ho&&wt$1(go,mo)}(no,lo,ao,so)?(eo.preventDefault(),Bt(to,d$4,"bold")):function(uo,ho,go,mo){return uo===85&&!ho&&wt$1(go,mo)}(no,lo,ao,so)?(eo.preventDefault(),Bt(to,d$4,"underline")):function(uo,ho,go,mo){return uo===73&&!ho&&wt$1(go,mo)}(no,lo,ao,so)?(eo.preventDefault(),Bt(to,d$4,"italic")):function(uo,ho,go,mo){return uo===9&&!ho&&!go&&!mo}(no,lo,so,ao)?Bt(to,w$4,eo):function(uo,ho,go,mo){return uo===90&&!ho&&wt$1(go,mo)}(no,io,ao,so)?(eo.preventDefault(),Bt(to,h$3,void 0)):function(uo,ho,go,mo){return Q?uo===90&&go&&ho:uo===89&&mo||uo===90&&mo&&ho}(no,io,ao,so)?(eo.preventDefault(),Bt(to,g$6,void 0)):Zr(to._editorState._selection)?function(uo,ho,go,mo){return!ho&&uo===67&&(Q?go:mo)}(no,io,ao,so)?(eo.preventDefault(),Bt(to,M$3,eo)):function(uo,ho,go,mo){return!ho&&uo===88&&(Q?go:mo)}(no,io,ao,so)?(eo.preventDefault(),Bt(to,W,eo)):It(no,ao,so)&&(eo.preventDefault(),Bt(to,z$1,eo)):!X&&It(no,ao,so)&&(eo.preventDefault(),Bt(to,z$1,eo)),function(uo,ho,go,mo){return uo||ho||go||mo}(so,io,lo,ao)&&Bt(to,$$1,eo))}],["pointerdown",function(eo,to){const no=eo.target,io=eo.pointerType;no instanceof Node&&io!=="touch"&&Vi(to,()=>{Hi(at$1(no))||(er$1=!0)})}],["compositionstart",function(eo,to){Vi(to,()=>{const no=fi();if(Xr(no)&&!to.isComposing()){const io=no.anchor,so=no.anchor.getNode();ot(io.key),(eo.timeStamp{cr(to,eo.data)})}],["input",function(eo,to){eo.stopPropagation(),Vi(to,()=>{const no=fi(),io=eo.data,so=lr(eo);if(io!=null&&Xr(no)&&ir(no,so,io,eo.timeStamp,!1)){nr&&(cr(to,io),nr=!1);const ao=no.anchor,lo=ao.getNode(),uo=nn(to._window);if(uo===null)return;const ho=ao.offset;Y&&!no.isCollapsed()&&Br(lo)&&uo.anchorNode!==null&&lo.getTextContent().slice(0,ho)+io+lo.getTextContent().slice(ho+no.focus.offset)===Tt(uo.anchorNode)||Bt(to,l$3,io);const go=io.length;X&&go>1&&eo.inputType==="insertCompositionText"&&!to.isComposing()&&(no.anchor.offset-=go),Z||G||re||!to.isComposing()||(qn=0,ot(null))}else St(!1,to,io!==null?io:void 0),nr&&(cr(to,io||void 0),nr=!1);Pi(),Re(Oi())}),Yn$1=null}],["click",function(eo,to){Vi(to,()=>{const no=fi(),io=nn(to._window),so=di();if(io){if(Xr(no)){const ao=no.anchor,lo=ao.getNode();ao.type==="element"&&ao.offset===0&&no.isCollapsed()&&!Yi(lo)&&ht$1().getChildrenSize()===1&&lo.getTopLevelElementOrThrow().isEmpty()&&so!==null&&no.is(so)?(io.removeAllRanges(),no.dirty=!0):eo.detail===3&&!no.isCollapsed()&&lo!==no.focus.getNode()&&(qi(lo)?lo.select(0):lo.getParentOrThrow().select(0))}else if(eo.pointerType==="touch"){const ao=io.anchorNode;if(ao!==null){const lo=ao.nodeType;(lo===ie$2||lo===se)&&_t(ai(so,io,to,eo))}}}Bt(to,r$1,eo)})}],["cut",$n],["copy",$n],["dragstart",$n],["dragover",$n],["dragend",$n],["paste",$n],["focus",$n],["blur",$n],["drop",$n]];Y&&jn.push(["beforeinput",(eo,to)=>function(no,io){const so=no.inputType,ao=lr(no);so==="deleteCompositionText"||X&&zt(io)||so!=="insertCompositionText"&&Vi(io,()=>{const lo=fi();if(so==="deleteContentBackward"){if(lo===null){const _o=di();if(!Xr(_o))return;_t(_o.clone())}if(Xr(lo)){const _o=lo.anchor.key===lo.focus.key;if(uo=no.timeStamp,Qn===229&&uo{Vi(io,()=>{ot(null)})},Hn),Xr(lo)){const ko=lo.anchor.getNode();ko.markDirty(),lo.format=ko.getFormat(),Br(ko)||H$1(142),lo.style=ko.getStyle()}}else{ot(null),no.preventDefault();const ko=lo.anchor.getNode().getTextContent(),Co=lo.anchor.offset===0&&lo.focus.offset===ko.length;ne&&_o&&!Co||Bt(io,i$6,!0)}return}}var uo;if(!Xr(lo))return;const ho=no.data;Yn$1!==null&&St(!1,io,Yn$1),lo.dirty&&Yn$1===null||!lo.isCollapsed()||Yi(lo.anchor.getNode())||ao===null||lo.applyDOMRange(ao),Yn$1=null;const go=lo.anchor,mo=lo.focus,yo=go.getNode(),So=mo.getNode();if(so!=="insertText"&&so!=="insertTranspose")switch(no.preventDefault(),so){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Bt(io,l$3,no);break;case"insertFromComposition":ot(null),Bt(io,l$3,no);break;case"insertLineBreak":ot(null),Bt(io,s$2,!1);break;case"insertParagraph":ot(null),tr&&!G?(tr=!1,Bt(io,s$2,!1)):Bt(io,o$5,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Bt(io,c$6,no);break;case"deleteByComposition":(function(_o,ko){return _o!==ko||qi(_o)||qi(ko)||!_o.isToken()||!ko.isToken()})(yo,So)&&Bt(io,u$5,no);break;case"deleteByDrag":case"deleteByCut":Bt(io,u$5,no);break;case"deleteContent":Bt(io,i$6,!1);break;case"deleteWordBackward":Bt(io,a$4,!0);break;case"deleteWordForward":Bt(io,a$4,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Bt(io,f$5,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Bt(io,f$5,!1);break;case"formatStrikeThrough":Bt(io,d$4,"strikethrough");break;case"formatBold":Bt(io,d$4,"bold");break;case"formatItalic":Bt(io,d$4,"italic");break;case"formatUnderline":Bt(io,d$4,"underline");break;case"historyUndo":Bt(io,h$3,void 0);break;case"historyRedo":Bt(io,g$6,void 0)}else{if(ho===` +`)no.preventDefault(),Bt(io,s$2,!1);else if(ho===xe)no.preventDefault(),Bt(io,o$5,void 0);else if(ho==null&&no.dataTransfer){const _o=no.dataTransfer.getData("text/plain");no.preventDefault(),lo.insertRawText(_o)}else ho!=null&&ir(lo,ao,ho,no.timeStamp,!0)?(no.preventDefault(),Bt(io,l$3,ho)):Yn$1=ho;Xn$1=no.timeStamp}})}(eo,to)]);let qn=0,Qn=0,Xn$1=0,Yn$1=null;const Zn$1=new WeakMap;let Gn=!1,er$1=!1,tr=!1,nr=!1,rr=[0,"",0,"root",0];function ir(eo,to,no,io,so){const ao=eo.anchor,lo=eo.focus,uo=ao.getNode(),ho=Oi(),go=nn(ho._window),mo=go!==null?go.anchorNode:null,yo=ao.key,So=ho.getElementByKey(yo),_o=no.length;return yo!==lo.key||!Br(uo)||(!so&&(!Y||Xn$11||(so||!Y)&&So!==null&&!uo.isComposing()&&mo!==et(So)||go!==null&&to!==null&&(!to.collapsed||to.startContainer!==go.anchorNode||to.startOffset!==go.anchorOffset)||uo.getFormat()!==eo.format||uo.getStyle()!==eo.style||Ct$1(eo,uo)}function sr(eo,to){return eo!==null&&eo.nodeValue!==null&&eo.nodeType===se&&to!==0&&to!==eo.nodeValue.length}function or(eo,to,no){const{anchorNode:io,anchorOffset:so,focusNode:ao,focusOffset:lo}=eo;Gn&&(Gn=!1,sr(io,so)&&sr(ao,lo))||Vi(to,()=>{if(!no)return void _t(null);if(!Xe(to,io,ao))return;const uo=fi();if(Xr(uo)){const ho=uo.anchor,go=ho.getNode();if(uo.isCollapsed()){eo.type==="Range"&&eo.anchorNode===eo.focusNode&&(uo.dirty=!0);const mo=Ht(to).event,yo=mo?mo.timeStamp:performance.now(),[So,_o,ko,Co,$o]=rr,Ro=ht$1(),Oo=to.isComposing()===!1&&Ro.getTextContent()==="";yo<$o+200&&ho.offset===ko&&ho.key===Co?(uo.format=So,uo.style=_o):ho.type==="text"?(Br(go)||H$1(141),uo.format=go.getFormat(),uo.style=go.getStyle()):ho.type!=="element"||Oo||(uo.format=0,uo.style="")}else{const mo=ho.key,yo=uo.focus.key,So=uo.getNodes(),_o=So.length,ko=uo.isBackward(),Co=ko?lo:so,$o=ko?so:lo,Ro=ko?yo:mo,Oo=ko?mo:yo;let No=fe,Mo=!1;for(let Bo=0;Bo<_o;Bo++){const Fo=So[Bo],Lo=Fo.getTextContentSize();if(Br(Fo)&&Lo!==0&&!(Bo===0&&Fo.__key===Ro&&Co===Lo||Bo===_o-1&&Fo.__key===Oo&&$o===0)&&(Mo=!0,No&=Fo.getFormat(),No===0))break}uo.format=Mo?No:0}}Bt(to,t$4,void 0)})}function lr(eo){if(!eo.getTargetRanges)return null;const to=eo.getTargetRanges();return to.length===0?null:to[0]}function cr(eo,to){const no=eo._compositionKey;if(ot(null),no!==null&&to!=null){if(to===""){const io=ct$1(no),so=et(eo.getElementByKey(no));return void(so!==null&&so.nodeValue!==null&&Br(io)&&kt(io,so.nodeValue,null,null,!0))}if(to[to.length-1]===` `){const io=fi();if(Xr(io)){const so=io.focus;return io.anchor.set(so.key,so.offset,so.type),void Bt(eo,S$5,null)}}}St(!0,eo,to)}function ur(eo){let to=eo.__lexicalEventHandles;return to===void 0&&(to=[],eo.__lexicalEventHandles=to),to}const ar=new Map;function fr(eo){const to=eo.target,no=nn(to==null?null:to.nodeType===9?to.defaultView:to.ownerDocument.defaultView);if(no===null)return;const io=Ye(no.anchorNode);if(io===null)return;er$1&&(er$1=!1,Vi(io,()=>{const go=di(),mo=no.anchorNode;if(mo===null)return;const yo=mo.nodeType;yo!==ie$2&&yo!==se||_t(ai(go,no,io,eo))}));const so=xt$1(io),ao=so[so.length-1],lo=ao._key,uo=ar.get(lo),ho=uo||ao;ho!==io&&or(no,ho,!1),or(no,io,!0),io!==ao?ar.set(lo,io):uo&&ar.delete(lo)}function dr(eo){eo._lexicalHandled=!0}function hr(eo){return eo._lexicalHandled===!0}function gr(eo){const to=eo.ownerDocument,no=Zn$1.get(to);if(no===void 0)throw Error("Root element not registered");Zn$1.set(to,no-1),no===1&&to.removeEventListener("selectionchange",fr);const io=eo.__lexicalEditor;io!=null&&(function(ao){if(ao._parentEditor!==null){const lo=xt$1(ao),uo=lo[lo.length-1]._key;ar.get(uo)===ao&&ar.delete(uo)}else ar.delete(ao._key)}(io),eo.__lexicalEditor=null);const so=ur(eo);for(let ao=0;aoso.__key===this.__key);return(Br(this)||!Xr(no)||no.anchor.type!=="element"||no.focus.type!=="element"||no.anchor.key!==no.focus.key||no.anchor.offset!==no.focus.offset)&&io}getKey(){return this.__key}getIndexWithinParent(){const to=this.getParent();if(to===null)return-1;let no=to.getFirstChild(),io=0;for(;no!==null;){if(this.is(no))return io;io++,no=no.getNextSibling()}return-1}getParent(){const to=this.getLatest().__parent;return to===null?null:ct$1(to)}getParentOrThrow(){const to=this.getParent();return to===null&&H$1(66,this.__key),to}getTopLevelElement(){let to=this;for(;to!==null;){const no=to.getParent();if(Qt(no))return qi(to)||H$1(138),to;to=no}return null}getTopLevelElementOrThrow(){const to=this.getTopLevelElement();return to===null&&H$1(67,this.__key),to}getParents(){const to=[];let no=this.getParent();for(;no!==null;)to.push(no),no=no.getParent();return to}getParentKeys(){const to=[];let no=this.getParent();for(;no!==null;)to.push(no.__key),no=no.getParent();return to}getPreviousSibling(){const to=this.getLatest().__prev;return to===null?null:ct$1(to)}getPreviousSiblings(){const to=[],no=this.getParent();if(no===null)return to;let io=no.getFirstChild();for(;io!==null&&!io.is(this);)to.push(io),io=io.getNextSibling();return to}getNextSibling(){const to=this.getLatest().__next;return to===null?null:ct$1(to)}getNextSiblings(){const to=[];let no=this.getNextSibling();for(;no!==null;)to.push(no),no=no.getNextSibling();return to}getCommonAncestor(to){const no=this.getParents(),io=to.getParents();qi(this)&&no.unshift(this),qi(to)&&io.unshift(to);const so=no.length,ao=io.length;if(so===0||ao===0||no[so-1]!==io[ao-1])return null;const lo=new Set(io);for(let uo=0;uo{uo.append(Co)})),Xr(io)){_t(io);const Co=io.anchor,$o=io.focus;Co.key===ao&&Hr(Co,uo),$o.key===ao&&Hr($o,uo)}return lt$1()===ao&&ot(lo),uo}insertAfter(to,no=!0){Pi(),Zt(this,to);const io=this.getWritable(),so=to.getWritable(),ao=so.getParent(),lo=fi();let uo=!1,ho=!1;if(ao!==null){const _o=to.getIndexWithinParent();if(it(so),Xr(lo)){const ko=ao.__key,Co=lo.anchor,$o=lo.focus;uo=Co.type==="element"&&Co.key===ko&&Co.offset===_o+1,ho=$o.type==="element"&&$o.key===ko&&$o.offset===_o+1}}const go=this.getNextSibling(),mo=this.getParentOrThrow().getWritable(),yo=so.__key,So=io.__next;if(go===null?mo.__last=yo:go.getWritable().__prev=yo,mo.__size++,io.__next=yo,so.__next=So,so.__prev=io.__key,so.__parent=io.__parent,no&&Xr(lo)){const _o=this.getIndexWithinParent();hi(lo,mo,_o+1);const ko=mo.__key;uo&&lo.anchor.set(ko,_o+2,"element"),ho&&lo.focus.set(ko,_o+2,"element")}return to}insertBefore(to,no=!0){Pi(),Zt(this,to);const io=this.getWritable(),so=to.getWritable(),ao=so.__key;it(so);const lo=this.getPreviousSibling(),uo=this.getParentOrThrow().getWritable(),ho=io.__prev,go=this.getIndexWithinParent();lo===null?uo.__first=ao:lo.getWritable().__next=ao,uo.__size++,io.__prev=ao,so.__prev=ho,so.__next=io.__key,so.__parent=io.__parent;const mo=fi();return no&&Xr(mo)&&hi(mo,this.getParentOrThrow(),go),to}isParentRequired(){return!1}createParentElementNode(){return rs()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(to,no){Pi();const io=this.getPreviousSibling(),so=this.getParentOrThrow();if(io===null)return so.select(0,0);if(qi(io))return io.select();if(!Br(io)){const ao=io.getIndexWithinParent()+1;return so.select(ao,ao)}return io.select(to,no)}selectNext(to,no){Pi();const io=this.getNextSibling(),so=this.getParentOrThrow();if(io===null)return so.select();if(qi(io))return io.select(0,0);if(!Br(io)){const ao=io.getIndexWithinParent();return so.select(ao,ao)}return io.select(to,no)}markDirty(){this.getWritable()}}class yr extends pr{static getType(){return"linebreak"}static clone(to){return new yr(to.__key)}constructor(to){super(to)}getTextContent(){return` -`}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:to=>function(no){const io=no.parentElement;if(io!==null){const so=io.firstChild;if(so===no||so.nextSibling===no&&Tr(so)){const ao=io.lastChild;if(ao===no||ao.previousSibling===no&&Tr(ao))return!0}}return!1}(to)?null:{conversion:mr,priority:0}}}static importJSON(to){return xr()}exportJSON(){return{type:"linebreak",version:1}}}function mr(eo){return{node:xr()}}function xr(){return Yt(new yr)}function vr(eo){return eo instanceof yr}function Tr(eo){return eo.nodeType===se&&/^( |\t|\r?\n)+$/.test(eo.textContent||"")}function Sr(eo,to){return 16&to?"code":128&to?"mark":32&to?"sub":64&to?"sup":null}function kr(eo,to){return 1&to?"strong":2&to?"em":"span"}function Cr(eo,to,no,io,so){const ao=io.classList;let lo=At$1(so,"base");lo!==void 0&&ao.add(...lo),lo=At$1(so,"underlineStrikethrough");let uo=!1;const ho=to&ae&&to&ue;lo!==void 0&&(no&ae&&no&ue?(uo=!0,ho||ao.add(...lo)):ho&&ao.remove(...lo));for(const go in be){const mo=be[go];if(lo=At$1(so,go),lo!==void 0)if(no&mo){if(uo&&(go==="underline"||go==="strikethrough")){to&mo&&ao.remove(...lo);continue}(!(to&mo)||ho&&go==="underline"||go==="strikethrough")&&ao.add(...lo)}else to&mo&&ao.remove(...lo)}}function br(eo,to,no){const io=to.firstChild,so=no.isComposing(),ao=eo+(so?me:"");if(io==null)to.textContent=ao;else{const lo=io.nodeValue;if(lo!==ao)if(so||X){const[uo,ho,go]=function(mo,yo){const So=mo.length,_o=yo.length;let ko=0,Co=0;for(;ko({conversion:Ar,priority:0}),b:()=>({conversion:Dr,priority:0}),code:()=>({conversion:Wr,priority:0}),em:()=>({conversion:Wr,priority:0}),i:()=>({conversion:Wr,priority:0}),s:()=>({conversion:Wr,priority:0}),span:()=>({conversion:Pr,priority:0}),strong:()=>({conversion:Wr,priority:0}),sub:()=>({conversion:Wr,priority:0}),sup:()=>({conversion:Wr,priority:0}),u:()=>({conversion:Wr,priority:0})}}static importJSON(to){const no=zr(to.text);return no.setFormat(to.format),no.setDetail(to.detail),no.setMode(to.mode),no.setStyle(to.style),no}exportDOM(to){let{element:no}=super.exportDOM(to);return no!==null&&on(no)||H$1(132),no.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(no=wr(no,"b")),this.hasFormat("italic")&&(no=wr(no,"i")),this.hasFormat("strikethrough")&&(no=wr(no,"s")),this.hasFormat("underline")&&(no=wr(no,"u")),{element:no}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(to,no){}setFormat(to){const no=this.getWritable();return no.__format=typeof to=="string"?be[to]:to,no}setDetail(to){const no=this.getWritable();return no.__detail=typeof to=="string"?Ne[to]:to,no}setStyle(to){const no=this.getWritable();return no.__style=to,no}toggleFormat(to){const no=tt(this.getFormat(),to,null);return this.setFormat(no)}toggleDirectionless(){const to=this.getWritable();return to.__detail^=1,to}toggleUnmergeable(){const to=this.getWritable();return to.__detail^=2,to}setMode(to){const no=Pe[to];if(this.__mode===no)return this;const io=this.getWritable();return io.__mode=no,io}setTextContent(to){if(this.__text===to)return this;const no=this.getWritable();return no.__text=to,no}select(to,no){Pi();let io=to,so=no;const ao=fi(),lo=this.getTextContent(),uo=this.__key;if(typeof lo=="string"){const ho=lo.length;io===void 0&&(io=ho),so===void 0&&(so=ho)}else io=0,so=0;if(!Xr(ao))return li(uo,io,uo,so,"text","text");{const ho=lt$1();ho!==ao.anchor.key&&ho!==ao.focus.key||ot(uo),ao.setTextNodeRange(this,io,this,so)}return ao}selectStart(){return this.select(0,0)}selectEnd(){const to=this.getTextContentSize();return this.select(to,to)}spliceText(to,no,io,so){const ao=this.getWritable(),lo=ao.__text,uo=io.length;let ho=to;ho<0&&(ho=uo+ho,ho<0&&(ho=0));const go=fi();if(so&&Xr(go)){const yo=to+uo;go.setTextNodeRange(ao,yo,ao,yo)}const mo=lo.slice(0,ho)+io+lo.slice(ho+no);return ao.__text=mo,ao}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...to){Pi();const no=this.getLatest(),io=no.getTextContent(),so=no.__key,ao=lt$1(),lo=new Set(to),uo=[],ho=io.length;let go="";for(let Lo=0;LoMo&&qo.offset<=Yo&&(qo.key=Ho,qo.offset-=Mo,Oo.dirty=!0),Jo.key===so&&Jo.type==="text"&&Jo.offset>Mo&&Jo.offset<=Yo&&(Jo.key=Ho,Jo.offset-=Mo,Oo.dirty=!0)}ao===so&&ot(Ho),Mo=Yo,No.push(Uo)}(function(Lo){const Go=Lo.getPreviousSibling(),Do=Lo.getNextSibling();Go!==null&&st$1(Go),Do!==null&&st$1(Do)})(this);const Bo=So.getWritable(),Po=this.getIndexWithinParent();return Ro?(Bo.splice(Po,0,No),this.remove()):Bo.splice(Po,1,No),Xr(Oo)&&hi(Oo,So,Po,mo-1),No}mergeWithSibling(to){const no=to===this.getPreviousSibling();no||to===this.getNextSibling()||H$1(50);const io=this.__key,so=to.__key,ao=this.__text,lo=ao.length;lt$1()===so&&ot(io);const uo=fi();if(Xr(uo)){const yo=uo.anchor,So=uo.focus;yo!==null&&yo.key===so&&(pi$3(yo,no,io,to,lo),uo.dirty=!0),So!==null&&So.key===so&&(pi$3(So,no,io,to,lo),uo.dirty=!0)}const ho=to.__text,go=no?ho+ao:ao+ho;this.setTextContent(go);const mo=this.getWritable();return to.remove(),mo}isTextEntity(){return!1}}function Pr(eo){const to=eo,no=to.style.fontWeight==="700",io=to.style.textDecoration==="line-through",so=to.style.fontStyle==="italic",ao=to.style.textDecoration==="underline",lo=to.style.verticalAlign;return{forChild:uo=>(Br(uo)&&(no&&uo.toggleFormat("bold"),io&&uo.toggleFormat("strikethrough"),so&&uo.toggleFormat("italic"),ao&&uo.toggleFormat("underline"),lo==="sub"&&uo.toggleFormat("subscript"),lo==="super"&&uo.toggleFormat("superscript")),uo),node:null}}function Dr(eo){const to=eo.style.fontWeight==="normal";return{forChild:no=>(Br(no)&&!to&&no.toggleFormat("bold"),no),node:null}}const Ir=new WeakMap;function Or(eo){return eo.nodeName==="PRE"||eo.nodeType===ie$2&&eo.style!==void 0&&eo.style.whiteSpace!==void 0&&eo.style.whiteSpace.startsWith("pre")}function Ar(eo){const to=eo;eo.parentElement===null&&H$1(129);let no=to.textContent||"";if(function(io){let so,ao=io.parentNode;const lo=[io];for(;ao!==null&&(so=Ir.get(ao))===void 0&&!Or(ao);)lo.push(ao),ao=ao.parentNode;const uo=so===void 0?ao:so;for(let ho=0;hofunction(no){const io=no.parentElement;if(io!==null){const so=io.firstChild;if(so===no||so.nextSibling===no&&Tr(so)){const ao=io.lastChild;if(ao===no||ao.previousSibling===no&&Tr(ao))return!0}}return!1}(to)?null:{conversion:mr,priority:0}}}static importJSON(to){return xr()}exportJSON(){return{type:"linebreak",version:1}}}function mr(eo){return{node:xr()}}function xr(){return Yt(new yr)}function vr(eo){return eo instanceof yr}function Tr(eo){return eo.nodeType===se&&/^( |\t|\r?\n)+$/.test(eo.textContent||"")}function Sr(eo,to){return 16&to?"code":128&to?"mark":32&to?"sub":64&to?"sup":null}function kr(eo,to){return 1&to?"strong":2&to?"em":"span"}function Cr(eo,to,no,io,so){const ao=io.classList;let lo=At$1(so,"base");lo!==void 0&&ao.add(...lo),lo=At$1(so,"underlineStrikethrough");let uo=!1;const ho=to&ae&&to&ue;lo!==void 0&&(no&ae&&no&ue?(uo=!0,ho||ao.add(...lo)):ho&&ao.remove(...lo));for(const go in be){const mo=be[go];if(lo=At$1(so,go),lo!==void 0)if(no&mo){if(uo&&(go==="underline"||go==="strikethrough")){to&mo&&ao.remove(...lo);continue}(!(to&mo)||ho&&go==="underline"||go==="strikethrough")&&ao.add(...lo)}else to&mo&&ao.remove(...lo)}}function br(eo,to,no){const io=to.firstChild,so=no.isComposing(),ao=eo+(so?me:"");if(io==null)to.textContent=ao;else{const lo=io.nodeValue;if(lo!==ao)if(so||X){const[uo,ho,go]=function(mo,yo){const So=mo.length,_o=yo.length;let ko=0,Co=0;for(;ko({conversion:Ar,priority:0}),b:()=>({conversion:Dr,priority:0}),code:()=>({conversion:Wr,priority:0}),em:()=>({conversion:Wr,priority:0}),i:()=>({conversion:Wr,priority:0}),s:()=>({conversion:Wr,priority:0}),span:()=>({conversion:Pr,priority:0}),strong:()=>({conversion:Wr,priority:0}),sub:()=>({conversion:Wr,priority:0}),sup:()=>({conversion:Wr,priority:0}),u:()=>({conversion:Wr,priority:0})}}static importJSON(to){const no=zr(to.text);return no.setFormat(to.format),no.setDetail(to.detail),no.setMode(to.mode),no.setStyle(to.style),no}exportDOM(to){let{element:no}=super.exportDOM(to);return no!==null&&on(no)||H$1(132),no.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(no=wr(no,"b")),this.hasFormat("italic")&&(no=wr(no,"i")),this.hasFormat("strikethrough")&&(no=wr(no,"s")),this.hasFormat("underline")&&(no=wr(no,"u")),{element:no}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(to,no){}setFormat(to){const no=this.getWritable();return no.__format=typeof to=="string"?be[to]:to,no}setDetail(to){const no=this.getWritable();return no.__detail=typeof to=="string"?Ne[to]:to,no}setStyle(to){const no=this.getWritable();return no.__style=to,no}toggleFormat(to){const no=tt(this.getFormat(),to,null);return this.setFormat(no)}toggleDirectionless(){const to=this.getWritable();return to.__detail^=1,to}toggleUnmergeable(){const to=this.getWritable();return to.__detail^=2,to}setMode(to){const no=Pe[to];if(this.__mode===no)return this;const io=this.getWritable();return io.__mode=no,io}setTextContent(to){if(this.__text===to)return this;const no=this.getWritable();return no.__text=to,no}select(to,no){Pi();let io=to,so=no;const ao=fi(),lo=this.getTextContent(),uo=this.__key;if(typeof lo=="string"){const ho=lo.length;io===void 0&&(io=ho),so===void 0&&(so=ho)}else io=0,so=0;if(!Xr(ao))return li(uo,io,uo,so,"text","text");{const ho=lt$1();ho!==ao.anchor.key&&ho!==ao.focus.key||ot(uo),ao.setTextNodeRange(this,io,this,so)}return ao}selectStart(){return this.select(0,0)}selectEnd(){const to=this.getTextContentSize();return this.select(to,to)}spliceText(to,no,io,so){const ao=this.getWritable(),lo=ao.__text,uo=io.length;let ho=to;ho<0&&(ho=uo+ho,ho<0&&(ho=0));const go=fi();if(so&&Xr(go)){const yo=to+uo;go.setTextNodeRange(ao,yo,ao,yo)}const mo=lo.slice(0,ho)+io+lo.slice(ho+no);return ao.__text=mo,ao}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...to){Pi();const no=this.getLatest(),io=no.getTextContent(),so=no.__key,ao=lt$1(),lo=new Set(to),uo=[],ho=io.length;let go="";for(let Lo=0;LoMo&&qo.offset<=Yo&&(qo.key=Ho,qo.offset-=Mo,Oo.dirty=!0),Jo.key===so&&Jo.type==="text"&&Jo.offset>Mo&&Jo.offset<=Yo&&(Jo.key=Ho,Jo.offset-=Mo,Oo.dirty=!0)}ao===so&&ot(Ho),Mo=Yo,No.push(Uo)}(function(Lo){const Go=Lo.getPreviousSibling(),Do=Lo.getNextSibling();Go!==null&&st$1(Go),Do!==null&&st$1(Do)})(this);const Bo=So.getWritable(),Fo=this.getIndexWithinParent();return Ro?(Bo.splice(Fo,0,No),this.remove()):Bo.splice(Fo,1,No),Xr(Oo)&&hi(Oo,So,Fo,mo-1),No}mergeWithSibling(to){const no=to===this.getPreviousSibling();no||to===this.getNextSibling()||H$1(50);const io=this.__key,so=to.__key,ao=this.__text,lo=ao.length;lt$1()===so&&ot(io);const uo=fi();if(Xr(uo)){const yo=uo.anchor,So=uo.focus;yo!==null&&yo.key===so&&(pi$3(yo,no,io,to,lo),uo.dirty=!0),So!==null&&So.key===so&&(pi$3(So,no,io,to,lo),uo.dirty=!0)}const ho=to.__text,go=no?ho+ao:ao+ho;this.setTextContent(go);const mo=this.getWritable();return to.remove(),mo}isTextEntity(){return!1}}function Pr(eo){const to=eo,no=to.style.fontWeight==="700",io=to.style.textDecoration==="line-through",so=to.style.fontStyle==="italic",ao=to.style.textDecoration==="underline",lo=to.style.verticalAlign;return{forChild:uo=>(Br(uo)&&(no&&uo.toggleFormat("bold"),io&&uo.toggleFormat("strikethrough"),so&&uo.toggleFormat("italic"),ao&&uo.toggleFormat("underline"),lo==="sub"&&uo.toggleFormat("subscript"),lo==="super"&&uo.toggleFormat("superscript")),uo),node:null}}function Dr(eo){const to=eo.style.fontWeight==="normal";return{forChild:no=>(Br(no)&&!to&&no.toggleFormat("bold"),no),node:null}}const Ir=new WeakMap;function Or(eo){return eo.nodeName==="PRE"||eo.nodeType===ie$2&&eo.style!==void 0&&eo.style.whiteSpace!==void 0&&eo.style.whiteSpace.startsWith("pre")}function Ar(eo){const to=eo;eo.parentElement===null&&H$1(129);let no=to.textContent||"";if(function(io){let so,ao=io.parentNode;const lo=[io];for(;ao!==null&&(so=Ir.get(ao))===void 0&&!Or(ao);)lo.push(ao),ao=ao.parentNode;const uo=so===void 0?ao:so;for(let ho=0;ho0){/[ \t\n]$/.test(ao)&&(no=no.slice(1)),so=!1;break}}so&&(no=no.slice(1))}if(no[no.length-1]===" "){let io=to,so=!0;for(;io!==null&&(io=Fr(io,!0))!==null;)if((io.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){so=!1;break}so&&(no=no.slice(0,no.length-1))}return no===""?{node:null}:{node:zr(no)}}const Lr=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function Fr(eo,to){let no=eo;for(;;){let io;for(;(io=to?no.nextSibling:no.previousSibling)===null;){const ao=no.parentElement;if(ao===null)return null;no=ao}if(no=io,no.nodeType===ie$2){const ao=no.style.display;if(ao===""&&no.nodeName.match(Lr)===null||ao!==""&&!ao.startsWith("inline"))return null}let so=no;for(;(so=to?no.firstChild:no.lastChild)!==null;)no=so;if(no.nodeType===se)return no;if(no.nodeName==="BR")return null}}const Mr={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Wr(eo){const to=Mr[eo.nodeName.toLowerCase()];return to===void 0?{node:null}:{forChild:no=>(Br(no)&&!no.hasFormat(to)&&no.toggleFormat(to),no),node:null}}function zr(eo=""){return Yt(new Er(eo))}function Br(eo){return eo instanceof Er}class Rr extends Er{static getType(){return"tab"}static clone(to){const no=new Rr(to.__key);return no.__text=to.__text,no.__format=to.__format,no.__style=to.__style,no}constructor(to){super(" ",to),this.__detail=2}static importDOM(){return null}static importJSON(to){const no=Kr();return no.setFormat(to.format),no.setStyle(to.style),no}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(to){H$1(126)}setDetail(to){H$1(127)}setMode(to){H$1(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Kr(){return Yt(new Rr)}function Jr(eo){return eo instanceof Rr}class Ur{constructor(to,no,io){this._selection=null,this.key=to,this.offset=no,this.type=io}is(to){return this.key===to.key&&this.offset===to.offset&&this.type===to.type}isBefore(to){let no=this.getNode(),io=to.getNode();const so=this.offset,ao=to.offset;if(qi(no)){const lo=no.getDescendantByIndex(so);no=lo??no}if(qi(io)){const lo=io.getDescendantByIndex(ao);io=lo??io}return no===io?soao&&(io=ao)}else if(!qi(to)){const ao=to.getNextSibling();if(Br(ao))no=ao.__key,io=0,so="text";else{const lo=to.getParent();lo&&(no=lo.__key,io=to.getIndexWithinParent()+1)}}eo.set(no,io,so)}function Hr(eo,to){if(qi(to)){const no=to.getLastDescendant();qi(no)||Br(no)?$r(eo,no):$r(eo,to)}else $r(eo,to)}function jr(eo,to,no,io){const so=eo.getNode(),ao=so.getChildAtIndex(eo.offset),lo=zr(),uo=Yi(so)?rs().append(lo):lo;lo.setFormat(no),lo.setStyle(io),ao===null?so.append(uo):ao.insertBefore(uo),eo.is(to)&&to.set(lo.__key,0,"text"),eo.set(lo.__key,0,"text")}function qr(eo,to,no,io){eo.key=to,eo.offset=no,eo.type=io}class Qr{constructor(to){this._cachedNodes=null,this._nodes=to,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(to){this._cachedNodes=to}is(to){if(!Zr(to))return!1;const no=this._nodes,io=to._nodes;return no.size===io.size&&Array.from(no).every(so=>io.has(so))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(to){this.dirty=!0,this._nodes.add(to),this._cachedNodes=null}delete(to){this.dirty=!0,this._nodes.delete(to),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(to){return this._nodes.has(to)}clone(){return new Qr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(to){}insertText(){}insertNodes(to){const no=this.getNodes(),io=no.length,so=no[io-1];let ao;if(Br(so))ao=so.select();else{const lo=so.getIndexWithinParent()+1;ao=so.getParentOrThrow().select(lo,lo)}ao.insertNodes(to);for(let lo=0;lo0?[]:[uo]:uo.getNodesBetween(ho),Ei()||(this._cachedNodes=yo),yo}setTextNodeRange(to,no,io,so){qr(this.anchor,to.__key,no,"text"),qr(this.focus,io.__key,so,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const to=this.getNodes();if(to.length===0)return"";const no=to[0],io=to[to.length-1],so=this.anchor,ao=this.focus,lo=so.isBefore(ao),[uo,ho]=ei(this);let go="",mo=!0;for(let yo=0;yo=0;Go--){const Do=Mo[Go];if(Do.is(So)||qi(Do)&&Do.isParentOf(So))break;Do.isAttached()&&(!Bo.has(Do)||Do.is(No)?Po||Lo.insertAfter(Do,!1):Do.remove())}if(!Po){let Go=Oo,Do=null;for(;Go!==null;){const Uo=Go.getChildren(),Ho=Uo.length;(Ho===0||Uo[Ho-1].is(Do))&&($o.delete(Go.__key),Do=Go),Go=Go.getParent()}}if(So.isToken())if(mo===_o)So.select();else{const Go=zr(to);Go.select(),So.replace(Go)}else So=So.spliceText(mo,_o-mo,to,!0),So.getTextContent()===""?So.remove():So.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=to.length);for(let Go=1;Go0&&($o!==Co.getTextContentSize()&&([Co]=Co.splitText($o)),Co.setFormat(Ro));for(let Oo=mo+1;Oo(qi(ko)||Hi(ko))&&!ko.isInline())){qi(no)||H$1(135);const ko=vi(this);return no.splice(ko,0,to),void io.selectEnd()}const so=function(ko){const Co=rs();let $o=null;for(let Ro=0;Ro"__value"in ko&&"__checked"in ko,ho=!qi(no)||!no.isEmpty()?this.insertParagraph():null,go=lo[lo.length-1];let mo=lo[0];var yo;qi(yo=mo)&&ln(yo)&&!yo.isEmpty()&&qi(no)&&(!no.isEmpty()||uo(no))&&(qi(no)||H$1(135),no.append(...mo.getChildren()),mo=lo[1]),mo&&function(ko,Co,$o){const Ro=$o||Co.getParentOrThrow().getLastChild();let Oo=Co;const No=[Co];for(;Oo!==Ro;)Oo.getNextSibling()||H$1(140),Oo=Oo.getNextSibling(),No.push(Oo);let Mo=ko;for(const Bo of No)Mo=Mo.insertAfter(Bo)}(no,mo);const So=cn(ao,ln);ho&&qi(So)&&(uo(ho)||ln(go))&&(So.append(...ho.getChildren()),ho.remove()),qi(no)&&no.isEmpty()&&no.remove(),ao.selectEnd();const _o=qi(no)?no.getLastChild():null;vr(_o)&&So!==no&&_o.remove()}insertParagraph(){if(this.anchor.key==="root"){const lo=rs();return ht$1().splice(this.anchor.offset,0,[lo]),lo.select(),lo}const to=vi(this),no=cn(this.anchor.getNode(),ln);qi(no)||H$1(136);const io=no.getChildAtIndex(to),so=io?[io,...io.getNextSiblings()]:[],ao=no.insertNewAfter(this,!1);return ao?(ao.append(...so),ao.selectStart(),ao):null}insertLineBreak(to){const no=xr();if(this.insertNodes([no]),to){const io=no.getParentOrThrow(),so=no.getIndexWithinParent();io.select(so,so)}}extract(){const to=this.getNodes(),no=to.length,io=no-1,so=this.anchor,ao=this.focus;let lo=to[0],uo=to[io];const[ho,go]=ei(this);if(no===0)return[];if(no===1){if(Br(lo)&&!this.isCollapsed()){const yo=ho>go?go:ho,So=ho>go?ho:go,_o=lo.splitText(yo,So),ko=yo===0?_o[0]:_o[1];return ko!=null?[ko]:[]}return[lo]}const mo=so.isBefore(ao);if(Br(lo)){const yo=mo?ho:go;yo===lo.getTextContentSize()?to.shift():yo!==0&&([,lo]=lo.splitText(yo),to[0]=lo)}if(Br(uo)){const yo=uo.getTextContent().length,So=mo?go:ho;So===0?to.pop():So!==yo&&([uo]=uo.splitText(So),to[io]=uo)}return to}modify(to,no,io){const so=this.focus,ao=this.anchor,lo=to==="move",uo=Wt(so,no);if(Hi(uo)&&!uo.isIsolated()){if(lo&&uo.isKeyboardSelectable()){const _o=ui();return _o.add(uo.__key),void _t(_o)}const So=no?uo.getPreviousSibling():uo.getNextSibling();if(Br(So)){const _o=So.__key,ko=no?So.getTextContent().length:0;return so.set(_o,ko,"text"),void(lo&&ao.set(_o,ko,"text"))}{const _o=uo.getParentOrThrow();let ko,Co;return qi(So)?(Co=So.__key,ko=no?So.getChildrenSize():0):(ko=uo.getIndexWithinParent(),Co=_o.__key,no||ko++),so.set(Co,ko,"element"),void(lo&&ao.set(Co,ko,"element"))}}const ho=Oi(),go=nn(ho._window);if(!go)return;const mo=ho._blockCursorElement,yo=ho._rootElement;if(yo===null||mo===null||!qi(uo)||uo.isInline()||uo.canBeEmpty()||en(mo,ho,yo),function(So,_o,ko,Co){So.modify(_o,ko,Co)}(go,to,no?"backward":"forward",io),go.rangeCount>0){const So=go.getRangeAt(0),_o=this.anchor.getNode(),ko=Yi(_o)?_o:qt(_o);if(this.applyDOMRange(So),this.dirty=!0,!lo){const Co=this.getNodes(),$o=[];let Ro=!1;for(let Oo=0;Oo0)if(no){const Oo=$o[0];qi(Oo)?Oo.selectStart():Oo.getParentOrThrow().selectStart()}else{const Oo=$o[$o.length-1];qi(Oo)?Oo.selectEnd():Oo.getParentOrThrow().selectEnd()}go.anchorNode===So.startContainer&&go.anchorOffset===So.startOffset||function(Oo){const No=Oo.focus,Mo=Oo.anchor,Bo=Mo.key,Po=Mo.offset,Lo=Mo.type;qr(Mo,No.key,No.offset,No.type),qr(No,Bo,Po,Lo),Oo._cachedNodes=null}(this)}}}forwardDeletion(to,no,io){if(!io&&(to.type==="element"&&qi(no)&&to.offset===no.getChildrenSize()||to.type==="text"&&to.offset===no.getTextContentSize())){const so=no.getParent(),ao=no.getNextSibling()||(so===null?null:so.getNextSibling());if(qi(ao)&&ao.isShadowRoot())return!0}return!1}deleteCharacter(to){const no=this.isCollapsed();if(this.isCollapsed()){const io=this.anchor;let so=io.getNode();if(this.forwardDeletion(io,so,to))return;const ao=this.focus,lo=Wt(ao,to);if(Hi(lo)&&!lo.isIsolated()){if(lo.isKeyboardSelectable()&&qi(so)&&so.getChildrenSize()===0){so.remove();const uo=ui();uo.add(lo.__key),_t(uo)}else lo.remove(),Oi().dispatchCommand(t$4,void 0);return}if(!to&&qi(lo)&&qi(so)&&so.isEmpty())return so.remove(),void lo.selectStart();if(this.modify("extend",to,"character"),this.isCollapsed()){if(to&&io.offset===0&&(io.type==="element"?io.getNode():io.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const uo=ao.type==="text"?ao.getNode():null;if(so=io.type==="text"?io.getNode():null,uo!==null&&uo.isSegmented()){const ho=ao.offset,go=uo.getTextContentSize();if(uo.is(so)||to&&ho!==go||!to&&ho!==0)return void ti(uo,to,ho)}else if(so!==null&&so.isSegmented()){const ho=io.offset,go=so.getTextContentSize();if(so.is(uo)||to&&ho!==0||!to&&ho!==go)return void ti(so,to,ho)}(function(ho,go){const mo=ho.anchor,yo=ho.focus,So=mo.getNode(),_o=yo.getNode();if(So===_o&&mo.type==="text"&&yo.type==="text"){const ko=mo.offset,Co=yo.offset,$o=kono||mo){so.splice(go,1),mo&&(uo=void 0);break}}const ho=so.join("").trim();ho===""?io.remove():(io.setTextContent(ho),io.select(uo,uo))}function ni(eo,to,no,io){let so,ao=to;if(eo.nodeType===ie$2){let lo=!1;const uo=eo.childNodes,ho=uo.length;ao===ho&&(lo=!0,ao=ho-1);let go=uo[ao],mo=!1;if(go===io._blockCursorElement?(go=uo[ao+1],mo=!0):io._blockCursorElement!==null&&ao--,so=pt$1(go),Br(so))ao=yt$1(so,lo);else{let yo=pt$1(eo);if(yo===null)return null;if(qi(yo)){let So=yo.getChildAtIndex(ao);if(qi(So)&&function(_o,ko,Co){const $o=_o.getParent();return Co===null||$o===null||!$o.canBeEmpty()||$o!==Co.getNode()}(So,0,no)){const _o=lo?So.getLastDescendant():So.getFirstDescendant();_o===null?(yo=So,ao=0):(So=_o,yo=qi(So)?So:So.getParentOrThrow())}Br(So)?(so=So,yo=null,ao=yt$1(So,lo)):So!==yo&&lo&&!mo&&ao++}else{const So=yo.getIndexWithinParent();ao=to===0&&Hi(yo)&&pt$1(eo)===yo?So:So+1,yo=yo.getParentOrThrow()}if(qi(yo))return Vr(yo.__key,ao,"element")}}else so=pt$1(eo);return Br(so)?Vr(so.__key,ao,"text"):null}function ri(eo,to,no){const io=eo.offset,so=eo.getNode();if(io===0){const ao=so.getPreviousSibling(),lo=so.getParent();if(to){if((no||!to)&&ao===null&&qi(lo)&&lo.isInline()){const uo=lo.getPreviousSibling();Br(uo)&&(eo.key=uo.__key,eo.offset=uo.getTextContent().length)}}else qi(ao)&&!no&&ao.isInline()?(eo.key=ao.__key,eo.offset=ao.getChildrenSize(),eo.type="element"):Br(ao)&&(eo.key=ao.__key,eo.offset=ao.getTextContent().length)}else if(io===so.getTextContent().length){const ao=so.getNextSibling(),lo=so.getParent();if(to&&qi(ao)&&ao.isInline())eo.key=ao.__key,eo.offset=0,eo.type="element";else if((no||to)&&ao===null&&qi(lo)&&lo.isInline()&&!lo.canInsertTextAfter()){const uo=lo.getNextSibling();Br(uo)&&(eo.key=uo.__key,eo.offset=0)}}}function ii(eo,to,no){if(eo.type==="text"&&to.type==="text"){const io=eo.isBefore(to),so=eo.is(to);ri(eo,io,so),ri(to,!io,so),so&&(to.key=eo.key,to.offset=eo.offset,to.type=eo.type);const ao=Oi();if(ao.isComposing()&&ao._compositionKey!==eo.key&&Xr(no)){const lo=no.anchor,uo=no.focus;qr(eo,lo.key,lo.offset,lo.type),qr(to,uo.key,uo.offset,uo.type)}}}function si(eo,to,no,io,so,ao){if(eo===null||no===null||!Xe(so,eo,no))return null;const lo=ni(eo,to,Xr(ao)?ao.anchor:null,so);if(lo===null)return null;const uo=ni(no,io,Xr(ao)?ao.focus:null,so);if(uo===null)return null;if(lo.type==="element"&&uo.type==="element"){const ho=pt$1(eo),go=pt$1(no);if(Hi(ho)&&Hi(go))return null}return ii(lo,uo,ao),[lo,uo]}function oi(eo){return qi(eo)&&!eo.isInline()}function li(eo,to,no,io,so,ao){const lo=Ii(),uo=new Yr(Vr(eo,to,so),Vr(no,io,ao),0,"");return uo.dirty=!0,lo._selection=uo,uo}function ci(){const eo=Vr("root",0,"element"),to=Vr("root",0,"element");return new Yr(eo,to,0,"")}function ui(){return new Qr(new Set)}function ai(eo,to,no,io){const so=no._window;if(so===null)return null;const ao=io||so.event,lo=ao?ao.type:void 0,uo=lo==="selectionchange",ho=!Ae&&(uo||lo==="beforeinput"||lo==="compositionstart"||lo==="compositionend"||lo==="click"&&ao&&ao.detail===3||lo==="drop"||lo===void 0);let go,mo,yo,So;if(Xr(eo)&&!ho)return eo.clone();if(to===null)return null;if(go=to.anchorNode,mo=to.focusNode,yo=to.anchorOffset,So=to.focusOffset,uo&&Xr(eo)&&!Xe(no,go,mo))return eo.clone();const _o=si(go,yo,mo,So,no,eo);if(_o===null)return null;const[ko,Co]=_o;return new Yr(ko,Co,Xr(eo)?eo.format:0,Xr(eo)?eo.style:"")}function fi(){return Ii()._selection}function di(){return Oi()._editorState._selection}function hi(eo,to,no,io=1){const so=eo.anchor,ao=eo.focus,lo=so.getNode(),uo=ao.getNode();if(!to.is(lo)&&!to.is(uo))return;const ho=to.__key;if(eo.isCollapsed()){const go=so.offset;if(no<=go&&io>0||no0||no0||no=uo,go=ho?ao.getChildAtIndex(uo-1):ao.getChildAtIndex(no);if(Br(go)){let mo=0;ho&&(mo=go.getTextContentSize()),to.set(go.__key,mo,"text"),io.set(go.__key,mo,"text")}}else{if(qi(ao)){const uo=ao.getChildrenSize(),ho=no>=uo,go=ho?ao.getChildAtIndex(uo-1):ao.getChildAtIndex(no);if(Br(go)){let mo=0;ho&&(mo=go.getTextContentSize()),to.set(go.__key,mo,"text")}}if(qi(lo)){const uo=lo.getChildrenSize(),ho=so>=uo,go=ho?lo.getChildAtIndex(uo-1):lo.getChildAtIndex(so);if(Br(go)){let mo=0;ho&&(mo=go.getTextContentSize()),io.set(go.__key,mo,"text")}}}}function _i$1(eo,to,no,io,so){let ao=null,lo=0,uo=null;io!==null?(ao=io.__key,Br(io)?(lo=io.getTextContentSize(),uo="text"):qi(io)&&(lo=io.getChildrenSize(),uo="element")):so!==null&&(ao=so.__key,Br(so)?uo="text":qi(so)&&(uo="element")),ao!==null&&uo!==null?eo.set(ao,lo,uo):(lo=to.getIndexWithinParent(),lo===-1&&(lo=no.getChildrenSize()),eo.set(no.__key,lo,"element"))}function pi$3(eo,to,no,io,so){eo.type==="text"?(eo.key=no,to||(eo.offset+=so)):eo.offset>io.getIndexWithinParent()&&(eo.offset-=1)}function yi(eo,to,no,io,so,ao,lo){const uo=io.anchorNode,ho=io.focusNode,go=io.anchorOffset,mo=io.focusOffset,yo=document.activeElement;if(so.has("collaboration")&&yo!==ao||yo!==null&&Qe(yo))return;if(!Xr(to))return void(eo!==null&&Xe(no,uo,ho)&&io.removeAllRanges());const So=to.anchor,_o=to.focus,ko=So.key,Co=_o.key,$o=Kt(no,ko),Ro=Kt(no,Co),Oo=So.offset,No=_o.offset,Mo=to.format,Bo=to.style,Po=to.isCollapsed();let Lo=$o,Go=Ro,Do=!1;if(So.type==="text"){Lo=et($o);const ps=So.getNode();Do=ps.getFormat()!==Mo||ps.getStyle()!==Bo}else Xr(eo)&&eo.anchor.type==="text"&&(Do=!0);var Uo,Ho,Yo,qo,Jo;if(_o.type==="text"&&(Go=et(Ro)),Lo!==null&&Go!==null&&(Po&&(eo===null||Do||Xr(eo)&&(eo.format!==Mo||eo.style!==Bo))&&(Uo=Mo,Ho=Bo,Yo=Oo,qo=ko,Jo=performance.now(),rr=[Uo,Ho,Yo,qo,Jo]),go!==Oo||mo!==No||uo!==Lo||ho!==Go||io.type==="Range"&&Po||(yo!==null&&ao.contains(yo)||ao.focus({preventScroll:!0}),So.type==="element"))){try{io.setBaseAndExtent(Lo,Oo,Go,No)}catch{}if(!so.has("skip-scroll-into-view")&&to.isCollapsed()&&ao!==null&&ao===document.activeElement){const ps=to instanceof Yr&&to.anchor.type==="element"?Lo.childNodes[Oo]||null:io.rangeCount>0?io.getRangeAt(0):null;if(ps!==null){let Qo;if(ps instanceof Text){const hs=document.createRange();hs.selectNode(ps),Qo=hs.getBoundingClientRect()}else Qo=ps.getBoundingClientRect();(function(hs,gs,ys){const vs=ys.ownerDocument,ks=vs.defaultView;if(ks===null)return;let{top:Os,bottom:Ts}=gs,Xs=0,Ws=0,Ps=ys;for(;Ps!==null;){const qs=Ps===vs.body;if(qs)Xs=0,Ws=Ht(hs).innerHeight;else{const Fs=Ps.getBoundingClientRect();Xs=Fs.top,Ws=Fs.bottom}let ga=0;if(OsWs&&(ga=Ts-Ws),ga!==0)if(qs)ks.scrollBy(0,ga);else{const Fs=Ps.scrollTop;Ps.scrollTop+=ga;const Js=Ps.scrollTop-Fs;Os-=Js,Ts-=Js}if(qs)break;Ps=Jt(Ps)}})(no,Qo,ao)}}Gn=!0}}function mi(eo){let to=fi()||di();to===null&&(to=ht$1().selectEnd()),to.insertNodes(eo)}function xi(){const eo=fi();return eo===null?"":eo.getTextContent()}function vi(eo){eo.isCollapsed()||eo.removeText();const to=eo.anchor;let no=to.getNode(),io=to.offset;for(;!ln(no);)[no,io]=Ti(no,io);return io}function Ti(eo,to){const no=eo.getParent();if(!no){const so=rs();return ht$1().append(so),so.select(),[ht$1(),0]}if(Br(eo)){const so=eo.splitText(to);if(so.length===0)return[no,eo.getIndexWithinParent()];const ao=to===0?0:1;return[no,so[0].getIndexWithinParent()+ao]}if(!qi(eo)||to===0)return[no,eo.getIndexWithinParent()];const io=eo.getChildAtIndex(to);if(io){const so=new Yr(Vr(eo.__key,to,"element"),Vr(eo.__key,to,"element"),0,""),ao=eo.insertNewAfter(so);ao&&ao.append(io,...io.getNextSiblings())}return[no,eo.getIndexWithinParent()+1]}let Si=null,ki=null,Ci=!1,bi=!1,Ni=0;const wi={characterData:!0,childList:!0,subtree:!0};function Ei(){return Ci||Si!==null&&Si._readOnly}function Pi(){Ci&&H$1(13)}function Di(){Ni>99&&H$1(14)}function Ii(){return Si===null&&H$1(15),Si}function Oi(){return ki===null&&H$1(16),ki}function Ai(){return ki}function Li(eo,to,no){const io=to.__type,so=function(uo,ho){const go=uo._nodes.get(ho);return go===void 0&&H$1(30,ho),go}(eo,io);let ao=no.get(io);ao===void 0&&(ao=Array.from(so.transforms),no.set(io,ao));const lo=ao.length;for(let uo=0;uo{so=Ki(eo,to,no)}),so}const io=xt$1(eo);for(let so=4;so>=0;so--)for(let ao=0;ao0||Yo>0;){if(Uo>0){No._dirtyLeaves=new Set;for(const qo of Do){const Jo=Po.get(qo);Br(Jo)&&Jo.isAttached()&&Jo.isSimpleText()&&!Jo.isUnmergeable()&&Ve(Jo),Jo!==void 0&&Fi(Jo,Lo)&&Li(No,Jo,Go),Mo.add(qo)}if(Do=No._dirtyLeaves,Uo=Do.size,Uo>0){Ni++;continue}}No._dirtyLeaves=new Set,No._dirtyElements=new Map;for(const qo of Ho){const Jo=qo[0],ps=qo[1];if(Jo!=="root"&&!ps)continue;const Qo=Po.get(Jo);Qo!==void 0&&Fi(Qo,Lo)&&Li(No,Qo,Go),Bo.set(Jo,ps)}Do=No._dirtyLeaves,Uo=Do.size,Ho=No._dirtyElements,Yo=Ho.size,Ni++}No._dirtyLeaves=Mo,No._dirtyElements=Bo}(go,eo),Ji(eo),function(Oo,No,Mo,Bo){const Po=Oo._nodeMap,Lo=No._nodeMap,Go=[];for(const[Do]of Bo){const Uo=Lo.get(Do);Uo!==void 0&&(Uo.isAttached()||(qi(Uo)&&an(Uo,Do,Po,Lo,Go,Bo),Po.has(Do)||Bo.delete(Do),Go.push(Do)))}for(const Do of Go)Lo.delete(Do);for(const Do of Mo){const Uo=Lo.get(Do);Uo===void 0||Uo.isAttached()||(Po.has(Do)||Mo.delete(Do),Lo.delete(Do))}}(ho,go,eo._dirtyLeaves,eo._dirtyElements)),$o!==eo._compositionKey&&(go._flushSync=!0);const Ro=go._selection;if(Xr(Ro)){const Oo=go._nodeMap,No=Ro.anchor.key,Mo=Ro.focus.key;Oo.get(No)!==void 0&&Oo.get(Mo)!==void 0||H$1(19)}else Zr(Ro)&&Ro._nodes.size===0&&(go._selection=null)}catch($o){return $o instanceof Error&&eo._onError($o),eo._pendingEditorState=ho,eo._dirtyType=ce,eo._cloneNotNeeded.clear(),eo._dirtyLeaves=new Set,eo._dirtyElements.clear(),void Bi(eo)}finally{Si=yo,Ci=So,ki=_o,eo._updating=ko,Ni=0}eo._dirtyType!==oe||function($o,Ro){const Oo=Ro.getEditorState()._selection,No=$o._selection;if(No!==null){if(No.dirty||!No.is(Oo))return!0}else if(Oo!==null)return!0;return!1}(go,eo)?go._flushSync?(go._flushSync=!1,Bi(eo)):mo&&qe(()=>{Bi(eo)}):(go._flushSync=!1,mo&&(io.clear(),eo._deferred=[],eo._pendingEditorState=null))}function Vi(eo,to,no){eo._updating?eo._updates.push([to,no]):Ui(eo,to,no)}class $i extends pr{constructor(to){super(to)}decorate(to,no){H$1(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Hi(eo){return eo instanceof $i}class ji extends pr{constructor(to){super(to),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__indent=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){const to=this.getFormat();return Ee[to]||""}getIndent(){return this.getLatest().__indent}getChildren(){const to=[];let no=this.getFirstChild();for(;no!==null;)to.push(no),no=no.getNextSibling();return to}getChildrenKeys(){const to=[];let no=this.getFirstChild();for(;no!==null;)to.push(no.__key),no=no.getNextSibling();return to}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const to=Oi()._dirtyElements;return to!==null&&to.has(this.__key)}isLastChild(){const to=this.getLatest(),no=this.getParentOrThrow().getLastChild();return no!==null&&no.is(to)}getAllTextNodes(){const to=[];let no=this.getFirstChild();for(;no!==null;){if(Br(no)&&to.push(no),qi(no)){const io=no.getAllTextNodes();to.push(...io)}no=no.getNextSibling()}return to}getFirstDescendant(){let to=this.getFirstChild();for(;qi(to);){const no=to.getFirstChild();if(no===null)break;to=no}return to}getLastDescendant(){let to=this.getLastChild();for(;qi(to);){const no=to.getLastChild();if(no===null)break;to=no}return to}getDescendantByIndex(to){const no=this.getChildren(),io=no.length;if(to>=io){const ao=no[io-1];return qi(ao)&&ao.getLastDescendant()||ao||null}const so=no[to];return qi(so)&&so.getFirstDescendant()||so||null}getFirstChild(){const to=this.getLatest().__first;return to===null?null:ct$1(to)}getFirstChildOrThrow(){const to=this.getFirstChild();return to===null&&H$1(45,this.__key),to}getLastChild(){const to=this.getLatest().__last;return to===null?null:ct$1(to)}getLastChildOrThrow(){const to=this.getLastChild();return to===null&&H$1(96,this.__key),to}getChildAtIndex(to){const no=this.getChildrenSize();let io,so;if(to=to;){if(so===to)return io;io=io.getPreviousSibling(),so--}return null}getTextContent(){let to="";const no=this.getChildren(),io=no.length;for(let so=0;sono.remove()),to}append(...to){return this.splice(this.getChildrenSize(),0,to)}setDirection(to){const no=this.getWritable();return no.__dir=to,no}setFormat(to){return this.getWritable().__format=to!==""?we[to]:0,this}setIndent(to){return this.getWritable().__indent=to,this}splice(to,no,io){const so=io.length,ao=this.getChildrenSize(),lo=this.getWritable(),uo=lo.__key,ho=[],go=[],mo=this.getChildAtIndex(to+no);let yo=null,So=ao-no+so;if(to!==0)if(to===ao)yo=this.getLastChild();else{const ko=this.getChildAtIndex(to);ko!==null&&(yo=ko.getPreviousSibling())}if(no>0){let ko=yo===null?this.getFirstChild():yo.getNextSibling();for(let Co=0;Co({root:Gi(ht$1())}))}}class ts extends ji{static getType(){return"paragraph"}static clone(to){return new ts(to.__key)}createDOM(to){const no=document.createElement("p"),io=At$1(to.theme,"paragraph");return io!==void 0&&no.classList.add(...io),no}updateDOM(to,no,io){return!1}static importDOM(){return{p:to=>({conversion:ns,priority:0})}}exportDOM(to){const{element:no}=super.exportDOM(to);if(no&&on(no)){this.isEmpty()&&no.append(document.createElement("br"));const io=this.getFormatType();no.style.textAlign=io;const so=this.getDirection();so&&(no.dir=so);const ao=this.getIndent();ao>0&&(no.style.textIndent=20*ao+"px")}return{element:no}}static importJSON(to){const no=rs();return no.setFormat(to.format),no.setIndent(to.indent),no.setDirection(to.direction),no}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(to,no){const io=rs(),so=this.getDirection();return io.setDirection(so),this.insertAfter(io,no),io}collapseAtStart(){const to=this.getChildren();if(to.length===0||Br(to[0])&&to[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function ns(eo){const to=rs();if(eo.style){to.setFormat(eo.style.textAlign);const no=parseInt(eo.style.textIndent,10)/20;no>0&&to.setIndent(no)}return{node:to}}function rs(){return Yt(new ts)}function is(eo){return eo instanceof ts}const ss=0,os=1,ls=2,cs=3,us=4;function as(eo,to,no,io){const so=eo._keyToDOMMap;so.clear(),eo._editorState=Zi(),eo._pendingEditorState=io,eo._compositionKey=null,eo._dirtyType=oe,eo._cloneNotNeeded.clear(),eo._dirtyLeaves=new Set,eo._dirtyElements.clear(),eo._normalizedNodes=new Set,eo._updateTags=new Set,eo._updates=[],eo._blockCursorElement=null;const ao=eo._observer;ao!==null&&(ao.disconnect(),eo._observer=null),to!==null&&(to.textContent=""),no!==null&&(no.textContent="",so.set("root",no))}function fs(eo){const to=eo||{},no=Ai(),io=to.theme||{},so=eo===void 0?no:to.parentEditor||null,ao=to.disableEvents||!1,lo=Zi(),uo=to.namespace||(so!==null?so._config.namespace:vt$1()),ho=to.editorState,go=[Xi,Er,yr,Rr,ts,...to.nodes||[]],{onError:mo,html:yo}=to,So=to.editable===void 0||to.editable;let _o;if(eo===void 0&&no!==null)_o=no._nodes;else{_o=new Map;for(let Co=0;Co{Object.keys(Mo).forEach(Bo=>{let Po=Ro.get(Bo);Po===void 0&&(Po=[],Ro.set(Bo,Po)),Po.push(Mo[Bo])})};return Co.forEach(Mo=>{const Bo=Mo.klass.importDOM;if(Bo==null||Oo.has(Bo))return;Oo.add(Bo);const Po=Bo.call(Mo.klass);Po!==null&&No(Po)}),$o&&No($o),Ro}(_o,yo?yo.import:void 0),So);return ho!==void 0&&(ko._pendingEditorState=ho,ko._dirtyType=ce),ko}class ds{constructor(to,no,io,so,ao,lo,uo){this._parentEditor=no,this._rootElement=null,this._editorState=to,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=so,this._nodes=io,this._decorators={},this._pendingDecorators=null,this._dirtyType=oe,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=vt$1(),this._onError=ao,this._htmlConversions=lo,this._editable=uo,this._headless=no!==null&&no._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(to){const no=this._listeners.update;return no.add(to),()=>{no.delete(to)}}registerEditableListener(to){const no=this._listeners.editable;return no.add(to),()=>{no.delete(to)}}registerDecoratorListener(to){const no=this._listeners.decorator;return no.add(to),()=>{no.delete(to)}}registerTextContentListener(to){const no=this._listeners.textcontent;return no.add(to),()=>{no.delete(to)}}registerRootListener(to){const no=this._listeners.root;return to(this._rootElement,null),no.add(to),()=>{to(null,this._rootElement),no.delete(to)}}registerCommand(to,no,io){io===void 0&&H$1(35);const so=this._commands;so.has(to)||so.set(to,[new Set,new Set,new Set,new Set,new Set]);const ao=so.get(to);ao===void 0&&H$1(36,String(to));const lo=ao[io];return lo.add(no),()=>{lo.delete(no),ao.every(uo=>uo.size===0)&&so.delete(to)}}registerMutationListener(to,no){this._nodes.get(to.getType())===void 0&&H$1(37,to.name);const io=this._listeners.mutation;return io.set(no,to),()=>{io.delete(no)}}registerNodeTransformToKlass(to,no){const io=to.getType(),so=this._nodes.get(io);return so===void 0&&H$1(37,to.name),so.transforms.add(no),so}registerNodeTransform(to,no){const io=this.registerNodeTransformToKlass(to,no),so=[io],ao=io.replaceWithKlass;if(ao!=null){const ho=this.registerNodeTransformToKlass(ao,no);so.push(ho)}var lo,uo;return lo=this,uo=to.getType(),Vi(lo,()=>{const ho=Ii();if(ho.isEmpty())return;if(uo==="root")return void ht$1().markDirty();const go=ho._nodeMap;for(const[,mo]of go)mo.markDirty()},lo._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{so.forEach(ho=>ho.transforms.delete(no))}}hasNode(to){return this._nodes.has(to.getType())}hasNodes(to){return to.every(this.hasNode.bind(this))}dispatchCommand(to,no){return Bt(this,to,no)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(to){const no=this._rootElement;if(to!==no){const io=At$1(this._config.theme,"root"),so=this._pendingEditorState||this._editorState;if(this._rootElement=to,as(this,no,to,so),no!==null&&(this._config.disableEvents||gr(no),io!=null&&no.classList.remove(...io)),to!==null){const ao=function(uo){const ho=uo.ownerDocument;return ho&&ho.defaultView||null}(to),lo=to.style;lo.userSelect="text",lo.whiteSpace="pre-wrap",lo.wordBreak="break-word",to.setAttribute("data-lexical-editor","true"),this._window=ao,this._dirtyType=ce,Ke(this),this._updateTags.add("history-merge"),Bi(this),this._config.disableEvents||function(uo,ho){const go=uo.ownerDocument,mo=Zn$1.get(go);mo===void 0&&go.addEventListener("selectionchange",fr),Zn$1.set(go,mo||1),uo.__lexicalEditor=ho;const yo=ur(uo);for(let So=0;So{hr($o)||(dr($o),(ho.isEditable()||_o==="click")&&ko($o,ho))}:$o=>{if(!hr($o)&&(dr($o),ho.isEditable()))switch(_o){case"cut":return Bt(ho,W,$o);case"copy":return Bt(ho,M$3,$o);case"paste":return Bt(ho,c$6,$o);case"dragstart":return Bt(ho,A$3,$o);case"dragover":return Bt(ho,L$2,$o);case"dragend":return Bt(ho,F$1,$o);case"focus":return Bt(ho,U,$o);case"blur":return Bt(ho,V,$o);case"drop":return Bt(ho,I$1,$o)}};uo.addEventListener(_o,Co),yo.push(()=>{uo.removeEventListener(_o,Co)})}}(to,this),io!=null&&to.classList.add(...io)}else this._editorState=so,this._pendingEditorState=null,this._window=null;Ri("root",this,!1,to,no)}}getElementByKey(to){return this._keyToDOMMap.get(to)||null}getEditorState(){return this._editorState}setEditorState(to,no){to.isEmpty()&&H$1(38),Re(this);const io=this._pendingEditorState,so=this._updateTags,ao=no!==void 0?no.tag:null;io===null||io.isEmpty()||(ao!=null&&so.add(ao),Bi(this)),this._pendingEditorState=to,this._dirtyType=ce,this._dirtyElements.set("root",!1),this._compositionKey=null,ao!=null&&so.add(ao),Bi(this)}parseEditorState(to,no){return function(io,so,ao){const lo=Zi(),uo=Si,ho=Ci,go=ki,mo=so._dirtyElements,yo=so._dirtyLeaves,So=so._cloneNotNeeded,_o=so._dirtyType;so._dirtyElements=new Map,so._dirtyLeaves=new Set,so._cloneNotNeeded=new Set,so._dirtyType=0,Si=lo,Ci=!1,ki=so;try{const ko=so._nodes;Wi(io.root,ko),ao&&ao(),lo._readOnly=!0}catch(ko){ko instanceof Error&&so._onError(ko)}finally{so._dirtyElements=mo,so._dirtyLeaves=yo,so._cloneNotNeeded=So,so._dirtyType=_o,Si=uo,Ci=ho,ki=go}return lo}(typeof to=="string"?JSON.parse(to):to,this,no)}update(to,no){Vi(this,to,no)}focus(to,no={}){const io=this._rootElement;io!==null&&(io.setAttribute("autocapitalize","off"),Vi(this,()=>{const so=fi(),ao=ht$1();so!==null?so.dirty=!0:ao.getChildrenSize()!==0&&(no.defaultSelection==="rootStart"?ao.selectStart():ao.selectEnd())},{onUpdate:()=>{io.removeAttribute("autocapitalize"),to&&to()},tag:"focus"}),this._pendingEditorState===null&&io.removeAttribute("autocapitalize"))}blur(){const to=this._rootElement;to!==null&&to.blur();const no=nn(this._window);no!==null&&no.removeAllRanges()}isEditable(){return this._editable}setEditable(to){this._editable!==to&&(this._editable=to,Ri("editable",this,!0,to))}toJSON(){return{editorState:this._editorState.toJSON()}}}const modProd$i=Object.freeze(Object.defineProperty({__proto__:null,$addUpdateTag:Vt,$applyNodeReplacement:Yt,$copyNode:Xt,$createLineBreakNode:xr,$createNodeSelection:ui,$createParagraphNode:rs,$createPoint:Vr,$createRangeSelection:ci,$createTabNode:Kr,$createTextNode:zr,$getAdjacentNode:Wt,$getCharacterOffsets:ei,$getEditor:un,$getNearestNodeFromDOMNode:at$1,$getNearestRootOrShadowRoot:qt,$getNodeByKey:ct$1,$getPreviousSelection:di,$getRoot:ht$1,$getSelection:fi,$getTextContent:xi,$hasAncestor:$t,$hasUpdateTag:Ut,$insertNodes:mi,$isBlockElementNode:oi,$isDecoratorNode:Hi,$isElementNode:qi,$isInlineElementOrDecoratorNode:jt,$isLeafNode:nt,$isLineBreakNode:vr,$isNodeSelection:Zr,$isParagraphNode:is,$isRangeSelection:Xr,$isRootNode:Yi,$isRootOrShadowRoot:Qt,$isTabNode:Jr,$isTextNode:Br,$nodesOfType:Ft,$normalizeSelection__EXPERIMENTAL:$e,$parseSerializedNode:Mi,$selectAll:Ot$1,$setCompositionKey:ot,$setSelection:_t,$splitNode:rn,BLUR_COMMAND:V,CAN_REDO_COMMAND:K$4,CAN_UNDO_COMMAND:J,CLEAR_EDITOR_COMMAND:B$2,CLEAR_HISTORY_COMMAND:R$2,CLICK_COMMAND:r$1,COMMAND_PRIORITY_CRITICAL:us,COMMAND_PRIORITY_EDITOR:ss,COMMAND_PRIORITY_HIGH:cs,COMMAND_PRIORITY_LOW:os,COMMAND_PRIORITY_NORMAL:ls,CONTROLLED_TEXT_INSERTION_COMMAND:l$3,COPY_COMMAND:M$3,CUT_COMMAND:W,DELETE_CHARACTER_COMMAND:i$6,DELETE_LINE_COMMAND:f$5,DELETE_WORD_COMMAND:a$4,DRAGEND_COMMAND:F$1,DRAGOVER_COMMAND:L$2,DRAGSTART_COMMAND:A$3,DROP_COMMAND:I$1,DecoratorNode:$i,ElementNode:ji,FOCUS_COMMAND:U,FORMAT_ELEMENT_COMMAND:O$2,FORMAT_TEXT_COMMAND:d$4,INDENT_CONTENT_COMMAND:P$3,INSERT_LINE_BREAK_COMMAND:s$2,INSERT_PARAGRAPH_COMMAND:o$5,INSERT_TAB_COMMAND:E$4,KEY_ARROW_DOWN_COMMAND:T$4,KEY_ARROW_LEFT_COMMAND:m$5,KEY_ARROW_RIGHT_COMMAND:p$5,KEY_ARROW_UP_COMMAND:v$3,KEY_BACKSPACE_COMMAND:C$5,KEY_DELETE_COMMAND:N$3,KEY_DOWN_COMMAND:_$6,KEY_ENTER_COMMAND:S$5,KEY_ESCAPE_COMMAND:b$2,KEY_MODIFIER_COMMAND:$$1,KEY_SPACE_COMMAND:k$2,KEY_TAB_COMMAND:w$4,LineBreakNode:yr,MOVE_TO_END:y$7,MOVE_TO_START:x$8,OUTDENT_CONTENT_COMMAND:D$3,PASTE_COMMAND:c$6,ParagraphNode:ts,REDO_COMMAND:g$6,REMOVE_TEXT_COMMAND:u$5,RootNode:Xi,SELECTION_CHANGE_COMMAND:t$4,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:n$2,SELECT_ALL_COMMAND:z$1,TabNode:Rr,TextNode:Er,UNDO_COMMAND:h$3,createCommand:e$1,createEditor:fs,getNearestEditorFromDOMNode:Ye,isCurrentlyReadOnlyMode:Ei,isHTMLAnchorElement:sn,isHTMLElement:on,isSelectionCapturedInDecoratorInput:Qe,isSelectionWithinEditor:Xe},Symbol.toStringTag,{value:"Module"})),mod$i=modProd$i,$applyNodeReplacement=mod$i.$applyNodeReplacement,$copyNode=mod$i.$copyNode,$createNodeSelection=mod$i.$createNodeSelection,$createParagraphNode=mod$i.$createParagraphNode,$createRangeSelection=mod$i.$createRangeSelection,$createTabNode=mod$i.$createTabNode,$createTextNode=mod$i.$createTextNode,$getAdjacentNode=mod$i.$getAdjacentNode,$getCharacterOffsets=mod$i.$getCharacterOffsets,$getNearestNodeFromDOMNode=mod$i.$getNearestNodeFromDOMNode,$getNodeByKey=mod$i.$getNodeByKey,$getPreviousSelection=mod$i.$getPreviousSelection,$getRoot=mod$i.$getRoot,$getSelection=mod$i.$getSelection,$hasAncestor=mod$i.$hasAncestor,$insertNodes=mod$i.$insertNodes,$isDecoratorNode=mod$i.$isDecoratorNode,$isElementNode=mod$i.$isElementNode,$isLeafNode=mod$i.$isLeafNode,$isLineBreakNode=mod$i.$isLineBreakNode,$isNodeSelection=mod$i.$isNodeSelection,$isParagraphNode=mod$i.$isParagraphNode,$isRangeSelection=mod$i.$isRangeSelection,$isRootNode=mod$i.$isRootNode,$isRootOrShadowRoot=mod$i.$isRootOrShadowRoot,$isTextNode=mod$i.$isTextNode,$normalizeSelection__EXPERIMENTAL=mod$i.$normalizeSelection__EXPERIMENTAL,$parseSerializedNode=mod$i.$parseSerializedNode,$selectAll=mod$i.$selectAll,$setSelection=mod$i.$setSelection,$splitNode=mod$i.$splitNode,CAN_REDO_COMMAND=mod$i.CAN_REDO_COMMAND,CAN_UNDO_COMMAND=mod$i.CAN_UNDO_COMMAND,CLEAR_EDITOR_COMMAND=mod$i.CLEAR_EDITOR_COMMAND,CLEAR_HISTORY_COMMAND=mod$i.CLEAR_HISTORY_COMMAND,CLICK_COMMAND=mod$i.CLICK_COMMAND,COMMAND_PRIORITY_CRITICAL=mod$i.COMMAND_PRIORITY_CRITICAL,COMMAND_PRIORITY_EDITOR=mod$i.COMMAND_PRIORITY_EDITOR,COMMAND_PRIORITY_HIGH=mod$i.COMMAND_PRIORITY_HIGH,COMMAND_PRIORITY_LOW=mod$i.COMMAND_PRIORITY_LOW,CONTROLLED_TEXT_INSERTION_COMMAND=mod$i.CONTROLLED_TEXT_INSERTION_COMMAND,COPY_COMMAND=mod$i.COPY_COMMAND,CUT_COMMAND=mod$i.CUT_COMMAND,DELETE_CHARACTER_COMMAND=mod$i.DELETE_CHARACTER_COMMAND,DELETE_LINE_COMMAND=mod$i.DELETE_LINE_COMMAND,DELETE_WORD_COMMAND=mod$i.DELETE_WORD_COMMAND,DRAGOVER_COMMAND=mod$i.DRAGOVER_COMMAND,DRAGSTART_COMMAND=mod$i.DRAGSTART_COMMAND,DROP_COMMAND=mod$i.DROP_COMMAND,DecoratorNode=mod$i.DecoratorNode,ElementNode=mod$i.ElementNode,FORMAT_ELEMENT_COMMAND=mod$i.FORMAT_ELEMENT_COMMAND,FORMAT_TEXT_COMMAND=mod$i.FORMAT_TEXT_COMMAND,INDENT_CONTENT_COMMAND=mod$i.INDENT_CONTENT_COMMAND,INSERT_LINE_BREAK_COMMAND=mod$i.INSERT_LINE_BREAK_COMMAND,INSERT_PARAGRAPH_COMMAND=mod$i.INSERT_PARAGRAPH_COMMAND,INSERT_TAB_COMMAND=mod$i.INSERT_TAB_COMMAND,KEY_ARROW_DOWN_COMMAND=mod$i.KEY_ARROW_DOWN_COMMAND,KEY_ARROW_LEFT_COMMAND=mod$i.KEY_ARROW_LEFT_COMMAND,KEY_ARROW_RIGHT_COMMAND=mod$i.KEY_ARROW_RIGHT_COMMAND,KEY_ARROW_UP_COMMAND=mod$i.KEY_ARROW_UP_COMMAND,KEY_BACKSPACE_COMMAND=mod$i.KEY_BACKSPACE_COMMAND,KEY_DELETE_COMMAND=mod$i.KEY_DELETE_COMMAND,KEY_ENTER_COMMAND=mod$i.KEY_ENTER_COMMAND,KEY_ESCAPE_COMMAND=mod$i.KEY_ESCAPE_COMMAND,LineBreakNode=mod$i.LineBreakNode,OUTDENT_CONTENT_COMMAND=mod$i.OUTDENT_CONTENT_COMMAND,PASTE_COMMAND=mod$i.PASTE_COMMAND,ParagraphNode=mod$i.ParagraphNode,REDO_COMMAND=mod$i.REDO_COMMAND,REMOVE_TEXT_COMMAND=mod$i.REMOVE_TEXT_COMMAND,RootNode=mod$i.RootNode,SELECTION_CHANGE_COMMAND=mod$i.SELECTION_CHANGE_COMMAND,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND=mod$i.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,SELECT_ALL_COMMAND=mod$i.SELECT_ALL_COMMAND,TextNode$2=mod$i.TextNode,UNDO_COMMAND=mod$i.UNDO_COMMAND,createCommand=mod$i.createCommand,createEditor=mod$i.createEditor,isHTMLAnchorElement$1=mod$i.isHTMLAnchorElement,isHTMLElement$2=mod$i.isHTMLElement,isSelectionCapturedInDecoratorInput=mod$i.isSelectionCapturedInDecoratorInput,isSelectionWithinEditor=mod$i.isSelectionWithinEditor,m$4=new Map;function _$5(eo){let to=eo;for(;to!=null;){if(to.nodeType===Node.TEXT_NODE)return to;to=to.firstChild}return null}function y$6(eo){const to=eo.parentNode;if(to==null)throw new Error("Should never happen");return[to,Array.from(to.childNodes).indexOf(eo)]}function T$3(eo,to,no,io,so){const ao=to.getKey(),lo=io.getKey(),uo=document.createRange();let ho=eo.getElementByKey(ao),go=eo.getElementByKey(lo),mo=no,yo=so;if($isTextNode(to)&&(ho=_$5(ho)),$isTextNode(io)&&(go=_$5(go)),to===void 0||io===void 0||ho===null||go===null)return null;ho.nodeName==="BR"&&([ho,mo]=y$6(ho)),go.nodeName==="BR"&&([go,yo]=y$6(go));const So=ho.firstChild;ho===go&&So!=null&&So.nodeName==="BR"&&mo===0&&yo===0&&(yo=1);try{uo.setStart(ho,mo),uo.setEnd(go,yo)}catch{return null}return!uo.collapsed||mo===yo&&ao===lo||(uo.setStart(go,yo),uo.setEnd(ho,mo)),uo}function x$7(eo,to){const no=eo.getRootElement();if(no===null)return[];const io=no.getBoundingClientRect(),so=getComputedStyle(no),ao=parseFloat(so.paddingLeft)+parseFloat(so.paddingRight),lo=Array.from(to.getClientRects());let uo,ho=lo.length;lo.sort((go,mo)=>{const yo=go.top-mo.top;return Math.abs(yo)<=3?go.left-mo.left:yo});for(let go=0;gomo.top&&uo.left+uo.width>mo.left,So=mo.width+ao===io.width;yo||So?(lo.splice(go--,1),ho--):uo=mo}return lo}function S$4(eo){const to={},no=eo.split(";");for(const io of no)if(io!==""){const[so,ao]=io.split(/:([^]+)/);so&&ao&&(to[so.trim()]=ao.trim())}return to}function N$2(eo){let to=m$4.get(eo);return to===void 0&&(to=S$4(eo),m$4.set(eo,to)),to}function E$3(eo){const to=eo.constructor.clone(eo);return to.__parent=eo.__parent,to.__next=eo.__next,to.__prev=eo.__prev,$isElementNode(eo)&&$isElementNode(to)?(io=eo,(no=to).__first=io.__first,no.__last=io.__last,no.__size=io.__size,no.__format=io.__format,no.__indent=io.__indent,no.__dir=io.__dir,no):$isTextNode(eo)&&$isTextNode(to)?function(so,ao){return so.__format=ao.__format,so.__style=ao.__style,so.__mode=ao.__mode,so.__detail=ao.__detail,so}(to,eo):to;var no,io}function v$2(eo,to){const no=eo.getStartEndPoints();if(to.isSelected(eo)&&!to.isSegmented()&&!to.isToken()&&no!==null){const[io,so]=no,ao=eo.isBackward(),lo=io.getNode(),uo=so.getNode(),ho=to.is(lo),go=to.is(uo);if(ho||go){const[mo,yo]=$getCharacterOffsets(eo),So=lo.is(uo),_o=to.is(ao?uo:lo),ko=to.is(ao?lo:uo);let Co,$o=0;return So?($o=mo>yo?yo:mo,Co=mo>yo?mo:yo):_o?($o=ao?yo:mo,Co=void 0):ko&&($o=0,Co=ao?mo:yo),to.__text=to.__text.slice($o,Co),to}}return to}function C$4(eo){if(eo.type==="text")return eo.offset===eo.getNode().getTextContentSize();const to=eo.getNode();if(!$isElementNode(to))throw Error("isAtNodeEnd: node must be a TextNode or ElementNode");return eo.offset===to.getChildrenSize()}function w$3(eo,to,no){let io=to.getNode(),so=no;if($isElementNode(io)){const ao=io.getDescendantByIndex(to.offset);ao!==null&&(io=ao)}for(;so>0&&io!==null;){if($isElementNode(io)){const go=io.getLastDescendant();go!==null&&(io=go)}let ao=io.getPreviousSibling(),lo=0;if(ao===null){let go=io.getParentOrThrow(),mo=go.getPreviousSibling();for(;mo===null;){if(go=go.getParent(),go===null){ao=null;break}mo=go.getPreviousSibling()}go!==null&&(lo=go.isInline()?0:2,ao=mo)}let uo=io.getTextContent();uo===""&&$isElementNode(io)&&!io.isInline()&&(uo=` +`?io.push(xr()):lo===" "?io.push(Kr()):io.push(zr(lo))}this.insertNodes(io)}insertText(to){const no=this.anchor,io=this.focus,so=this.isCollapsed()||no.isBefore(io),ao=this.format,lo=this.style;so&&no.type==="element"?jr(no,io,ao,lo):so||io.type!=="element"||jr(io,no,ao,lo);const uo=this.getNodes(),ho=uo.length,go=so?io:no,mo=(so?no:io).offset,yo=go.offset;let So=uo[0];Br(So)||H$1(26);const _o=So.getTextContent().length,ko=So.getParentOrThrow();let Co=uo[ho-1];if(this.isCollapsed()&&mo===_o&&(So.isSegmented()||So.isToken()||!So.canInsertTextAfter()||!ko.canInsertTextAfter()&&So.getNextSibling()===null)){let $o=So.getNextSibling();if(Br($o)&&$o.canInsertTextBefore()&&!Ze($o)||($o=zr(),$o.setFormat(ao),ko.canInsertTextAfter()?So.insertAfter($o):ko.insertAfter($o)),$o.select(0,0),So=$o,to!=="")return void this.insertText(to)}else if(this.isCollapsed()&&mo===0&&(So.isSegmented()||So.isToken()||!So.canInsertTextBefore()||!ko.canInsertTextBefore()&&So.getPreviousSibling()===null)){let $o=So.getPreviousSibling();if(Br($o)&&!Ze($o)||($o=zr(),$o.setFormat(ao),ko.canInsertTextBefore()?So.insertBefore($o):ko.insertBefore($o)),$o.select(),So=$o,to!=="")return void this.insertText(to)}else if(So.isSegmented()&&mo!==_o){const $o=zr(So.getTextContent());$o.setFormat(ao),So.replace($o),So=$o}else if(!this.isCollapsed()&&to!==""){const $o=Co.getParent();if(!ko.canInsertTextBefore()||!ko.canInsertTextAfter()||qi($o)&&(!$o.canInsertTextBefore()||!$o.canInsertTextAfter()))return this.insertText(""),ii(this.anchor,this.focus,null),void this.insertText(to)}if(ho===1){if(So.isToken()){const No=zr(to);return No.select(),void So.replace(No)}const $o=So.getFormat(),Ro=So.getStyle();if(mo!==yo||$o===ao&&Ro===lo){if(Jr(So)){const No=zr(to);return No.setFormat(ao),No.setStyle(lo),No.select(),void So.replace(No)}}else{if(So.getTextContent()!==""){const No=zr(to);if(No.setFormat(ao),No.setStyle(lo),No.select(),mo===0)So.insertBefore(No,!1);else{const[Mo]=So.splitText(mo);Mo.insertAfter(No,!1)}return void(No.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=to.length))}So.setFormat(ao),So.setStyle(lo)}const Oo=yo-mo;So=So.spliceText(mo,Oo,to,!0),So.getTextContent()===""?So.remove():this.anchor.type==="text"&&(So.isComposing()?this.anchor.offset-=to.length:(this.format=$o,this.style=Ro))}else{const $o=new Set([...So.getParentKeys(),...Co.getParentKeys()]),Ro=qi(So)?So:So.getParentOrThrow();let Oo=qi(Co)?Co:Co.getParentOrThrow(),No=Co;if(!Ro.is(Oo)&&Oo.isInline())do No=Oo,Oo=Oo.getParentOrThrow();while(Oo.isInline());if(go.type==="text"&&(yo!==0||Co.getTextContent()==="")||go.type==="element"&&Co.getIndexWithinParent()=0;Go--){const Do=Mo[Go];if(Do.is(So)||qi(Do)&&Do.isParentOf(So))break;Do.isAttached()&&(!Bo.has(Do)||Do.is(No)?Fo||Lo.insertAfter(Do,!1):Do.remove())}if(!Fo){let Go=Oo,Do=null;for(;Go!==null;){const Uo=Go.getChildren(),Ho=Uo.length;(Ho===0||Uo[Ho-1].is(Do))&&($o.delete(Go.__key),Do=Go),Go=Go.getParent()}}if(So.isToken())if(mo===_o)So.select();else{const Go=zr(to);Go.select(),So.replace(Go)}else So=So.spliceText(mo,_o-mo,to,!0),So.getTextContent()===""?So.remove():So.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=to.length);for(let Go=1;Go0&&($o!==Co.getTextContentSize()&&([Co]=Co.splitText($o)),Co.setFormat(Ro));for(let Oo=mo+1;Oo(qi(ko)||Hi(ko))&&!ko.isInline())){qi(no)||H$1(135);const ko=vi(this);return no.splice(ko,0,to),void io.selectEnd()}const so=function(ko){const Co=rs();let $o=null;for(let Ro=0;Ro"__value"in ko&&"__checked"in ko,ho=!qi(no)||!no.isEmpty()?this.insertParagraph():null,go=lo[lo.length-1];let mo=lo[0];var yo;qi(yo=mo)&&ln(yo)&&!yo.isEmpty()&&qi(no)&&(!no.isEmpty()||uo(no))&&(qi(no)||H$1(135),no.append(...mo.getChildren()),mo=lo[1]),mo&&function(ko,Co,$o){const Ro=$o||Co.getParentOrThrow().getLastChild();let Oo=Co;const No=[Co];for(;Oo!==Ro;)Oo.getNextSibling()||H$1(140),Oo=Oo.getNextSibling(),No.push(Oo);let Mo=ko;for(const Bo of No)Mo=Mo.insertAfter(Bo)}(no,mo);const So=cn(ao,ln);ho&&qi(So)&&(uo(ho)||ln(go))&&(So.append(...ho.getChildren()),ho.remove()),qi(no)&&no.isEmpty()&&no.remove(),ao.selectEnd();const _o=qi(no)?no.getLastChild():null;vr(_o)&&So!==no&&_o.remove()}insertParagraph(){if(this.anchor.key==="root"){const lo=rs();return ht$1().splice(this.anchor.offset,0,[lo]),lo.select(),lo}const to=vi(this),no=cn(this.anchor.getNode(),ln);qi(no)||H$1(136);const io=no.getChildAtIndex(to),so=io?[io,...io.getNextSiblings()]:[],ao=no.insertNewAfter(this,!1);return ao?(ao.append(...so),ao.selectStart(),ao):null}insertLineBreak(to){const no=xr();if(this.insertNodes([no]),to){const io=no.getParentOrThrow(),so=no.getIndexWithinParent();io.select(so,so)}}extract(){const to=this.getNodes(),no=to.length,io=no-1,so=this.anchor,ao=this.focus;let lo=to[0],uo=to[io];const[ho,go]=ei(this);if(no===0)return[];if(no===1){if(Br(lo)&&!this.isCollapsed()){const yo=ho>go?go:ho,So=ho>go?ho:go,_o=lo.splitText(yo,So),ko=yo===0?_o[0]:_o[1];return ko!=null?[ko]:[]}return[lo]}const mo=so.isBefore(ao);if(Br(lo)){const yo=mo?ho:go;yo===lo.getTextContentSize()?to.shift():yo!==0&&([,lo]=lo.splitText(yo),to[0]=lo)}if(Br(uo)){const yo=uo.getTextContent().length,So=mo?go:ho;So===0?to.pop():So!==yo&&([uo]=uo.splitText(So),to[io]=uo)}return to}modify(to,no,io){const so=this.focus,ao=this.anchor,lo=to==="move",uo=Wt(so,no);if(Hi(uo)&&!uo.isIsolated()){if(lo&&uo.isKeyboardSelectable()){const _o=ui();return _o.add(uo.__key),void _t(_o)}const So=no?uo.getPreviousSibling():uo.getNextSibling();if(Br(So)){const _o=So.__key,ko=no?So.getTextContent().length:0;return so.set(_o,ko,"text"),void(lo&&ao.set(_o,ko,"text"))}{const _o=uo.getParentOrThrow();let ko,Co;return qi(So)?(Co=So.__key,ko=no?So.getChildrenSize():0):(ko=uo.getIndexWithinParent(),Co=_o.__key,no||ko++),so.set(Co,ko,"element"),void(lo&&ao.set(Co,ko,"element"))}}const ho=Oi(),go=nn(ho._window);if(!go)return;const mo=ho._blockCursorElement,yo=ho._rootElement;if(yo===null||mo===null||!qi(uo)||uo.isInline()||uo.canBeEmpty()||en(mo,ho,yo),function(So,_o,ko,Co){So.modify(_o,ko,Co)}(go,to,no?"backward":"forward",io),go.rangeCount>0){const So=go.getRangeAt(0),_o=this.anchor.getNode(),ko=Yi(_o)?_o:qt(_o);if(this.applyDOMRange(So),this.dirty=!0,!lo){const Co=this.getNodes(),$o=[];let Ro=!1;for(let Oo=0;Oo0)if(no){const Oo=$o[0];qi(Oo)?Oo.selectStart():Oo.getParentOrThrow().selectStart()}else{const Oo=$o[$o.length-1];qi(Oo)?Oo.selectEnd():Oo.getParentOrThrow().selectEnd()}go.anchorNode===So.startContainer&&go.anchorOffset===So.startOffset||function(Oo){const No=Oo.focus,Mo=Oo.anchor,Bo=Mo.key,Fo=Mo.offset,Lo=Mo.type;qr(Mo,No.key,No.offset,No.type),qr(No,Bo,Fo,Lo),Oo._cachedNodes=null}(this)}}}forwardDeletion(to,no,io){if(!io&&(to.type==="element"&&qi(no)&&to.offset===no.getChildrenSize()||to.type==="text"&&to.offset===no.getTextContentSize())){const so=no.getParent(),ao=no.getNextSibling()||(so===null?null:so.getNextSibling());if(qi(ao)&&ao.isShadowRoot())return!0}return!1}deleteCharacter(to){const no=this.isCollapsed();if(this.isCollapsed()){const io=this.anchor;let so=io.getNode();if(this.forwardDeletion(io,so,to))return;const ao=this.focus,lo=Wt(ao,to);if(Hi(lo)&&!lo.isIsolated()){if(lo.isKeyboardSelectable()&&qi(so)&&so.getChildrenSize()===0){so.remove();const uo=ui();uo.add(lo.__key),_t(uo)}else lo.remove(),Oi().dispatchCommand(t$4,void 0);return}if(!to&&qi(lo)&&qi(so)&&so.isEmpty())return so.remove(),void lo.selectStart();if(this.modify("extend",to,"character"),this.isCollapsed()){if(to&&io.offset===0&&(io.type==="element"?io.getNode():io.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const uo=ao.type==="text"?ao.getNode():null;if(so=io.type==="text"?io.getNode():null,uo!==null&&uo.isSegmented()){const ho=ao.offset,go=uo.getTextContentSize();if(uo.is(so)||to&&ho!==go||!to&&ho!==0)return void ti(uo,to,ho)}else if(so!==null&&so.isSegmented()){const ho=io.offset,go=so.getTextContentSize();if(so.is(uo)||to&&ho!==0||!to&&ho!==go)return void ti(so,to,ho)}(function(ho,go){const mo=ho.anchor,yo=ho.focus,So=mo.getNode(),_o=yo.getNode();if(So===_o&&mo.type==="text"&&yo.type==="text"){const ko=mo.offset,Co=yo.offset,$o=kono||mo){so.splice(go,1),mo&&(uo=void 0);break}}const ho=so.join("").trim();ho===""?io.remove():(io.setTextContent(ho),io.select(uo,uo))}function ni(eo,to,no,io){let so,ao=to;if(eo.nodeType===ie$2){let lo=!1;const uo=eo.childNodes,ho=uo.length;ao===ho&&(lo=!0,ao=ho-1);let go=uo[ao],mo=!1;if(go===io._blockCursorElement?(go=uo[ao+1],mo=!0):io._blockCursorElement!==null&&ao--,so=pt$1(go),Br(so))ao=yt$1(so,lo);else{let yo=pt$1(eo);if(yo===null)return null;if(qi(yo)){let So=yo.getChildAtIndex(ao);if(qi(So)&&function(_o,ko,Co){const $o=_o.getParent();return Co===null||$o===null||!$o.canBeEmpty()||$o!==Co.getNode()}(So,0,no)){const _o=lo?So.getLastDescendant():So.getFirstDescendant();_o===null?(yo=So,ao=0):(So=_o,yo=qi(So)?So:So.getParentOrThrow())}Br(So)?(so=So,yo=null,ao=yt$1(So,lo)):So!==yo&&lo&&!mo&&ao++}else{const So=yo.getIndexWithinParent();ao=to===0&&Hi(yo)&&pt$1(eo)===yo?So:So+1,yo=yo.getParentOrThrow()}if(qi(yo))return Vr(yo.__key,ao,"element")}}else so=pt$1(eo);return Br(so)?Vr(so.__key,ao,"text"):null}function ri(eo,to,no){const io=eo.offset,so=eo.getNode();if(io===0){const ao=so.getPreviousSibling(),lo=so.getParent();if(to){if((no||!to)&&ao===null&&qi(lo)&&lo.isInline()){const uo=lo.getPreviousSibling();Br(uo)&&(eo.key=uo.__key,eo.offset=uo.getTextContent().length)}}else qi(ao)&&!no&&ao.isInline()?(eo.key=ao.__key,eo.offset=ao.getChildrenSize(),eo.type="element"):Br(ao)&&(eo.key=ao.__key,eo.offset=ao.getTextContent().length)}else if(io===so.getTextContent().length){const ao=so.getNextSibling(),lo=so.getParent();if(to&&qi(ao)&&ao.isInline())eo.key=ao.__key,eo.offset=0,eo.type="element";else if((no||to)&&ao===null&&qi(lo)&&lo.isInline()&&!lo.canInsertTextAfter()){const uo=lo.getNextSibling();Br(uo)&&(eo.key=uo.__key,eo.offset=0)}}}function ii(eo,to,no){if(eo.type==="text"&&to.type==="text"){const io=eo.isBefore(to),so=eo.is(to);ri(eo,io,so),ri(to,!io,so),so&&(to.key=eo.key,to.offset=eo.offset,to.type=eo.type);const ao=Oi();if(ao.isComposing()&&ao._compositionKey!==eo.key&&Xr(no)){const lo=no.anchor,uo=no.focus;qr(eo,lo.key,lo.offset,lo.type),qr(to,uo.key,uo.offset,uo.type)}}}function si(eo,to,no,io,so,ao){if(eo===null||no===null||!Xe(so,eo,no))return null;const lo=ni(eo,to,Xr(ao)?ao.anchor:null,so);if(lo===null)return null;const uo=ni(no,io,Xr(ao)?ao.focus:null,so);if(uo===null)return null;if(lo.type==="element"&&uo.type==="element"){const ho=pt$1(eo),go=pt$1(no);if(Hi(ho)&&Hi(go))return null}return ii(lo,uo,ao),[lo,uo]}function oi(eo){return qi(eo)&&!eo.isInline()}function li(eo,to,no,io,so,ao){const lo=Ii(),uo=new Yr(Vr(eo,to,so),Vr(no,io,ao),0,"");return uo.dirty=!0,lo._selection=uo,uo}function ci(){const eo=Vr("root",0,"element"),to=Vr("root",0,"element");return new Yr(eo,to,0,"")}function ui(){return new Qr(new Set)}function ai(eo,to,no,io){const so=no._window;if(so===null)return null;const ao=io||so.event,lo=ao?ao.type:void 0,uo=lo==="selectionchange",ho=!Ae&&(uo||lo==="beforeinput"||lo==="compositionstart"||lo==="compositionend"||lo==="click"&&ao&&ao.detail===3||lo==="drop"||lo===void 0);let go,mo,yo,So;if(Xr(eo)&&!ho)return eo.clone();if(to===null)return null;if(go=to.anchorNode,mo=to.focusNode,yo=to.anchorOffset,So=to.focusOffset,uo&&Xr(eo)&&!Xe(no,go,mo))return eo.clone();const _o=si(go,yo,mo,So,no,eo);if(_o===null)return null;const[ko,Co]=_o;return new Yr(ko,Co,Xr(eo)?eo.format:0,Xr(eo)?eo.style:"")}function fi(){return Ii()._selection}function di(){return Oi()._editorState._selection}function hi(eo,to,no,io=1){const so=eo.anchor,ao=eo.focus,lo=so.getNode(),uo=ao.getNode();if(!to.is(lo)&&!to.is(uo))return;const ho=to.__key;if(eo.isCollapsed()){const go=so.offset;if(no<=go&&io>0||no0||no0||no=uo,go=ho?ao.getChildAtIndex(uo-1):ao.getChildAtIndex(no);if(Br(go)){let mo=0;ho&&(mo=go.getTextContentSize()),to.set(go.__key,mo,"text"),io.set(go.__key,mo,"text")}}else{if(qi(ao)){const uo=ao.getChildrenSize(),ho=no>=uo,go=ho?ao.getChildAtIndex(uo-1):ao.getChildAtIndex(no);if(Br(go)){let mo=0;ho&&(mo=go.getTextContentSize()),to.set(go.__key,mo,"text")}}if(qi(lo)){const uo=lo.getChildrenSize(),ho=so>=uo,go=ho?lo.getChildAtIndex(uo-1):lo.getChildAtIndex(so);if(Br(go)){let mo=0;ho&&(mo=go.getTextContentSize()),io.set(go.__key,mo,"text")}}}}function _i$1(eo,to,no,io,so){let ao=null,lo=0,uo=null;io!==null?(ao=io.__key,Br(io)?(lo=io.getTextContentSize(),uo="text"):qi(io)&&(lo=io.getChildrenSize(),uo="element")):so!==null&&(ao=so.__key,Br(so)?uo="text":qi(so)&&(uo="element")),ao!==null&&uo!==null?eo.set(ao,lo,uo):(lo=to.getIndexWithinParent(),lo===-1&&(lo=no.getChildrenSize()),eo.set(no.__key,lo,"element"))}function pi$3(eo,to,no,io,so){eo.type==="text"?(eo.key=no,to||(eo.offset+=so)):eo.offset>io.getIndexWithinParent()&&(eo.offset-=1)}function yi(eo,to,no,io,so,ao,lo){const uo=io.anchorNode,ho=io.focusNode,go=io.anchorOffset,mo=io.focusOffset,yo=document.activeElement;if(so.has("collaboration")&&yo!==ao||yo!==null&&Qe(yo))return;if(!Xr(to))return void(eo!==null&&Xe(no,uo,ho)&&io.removeAllRanges());const So=to.anchor,_o=to.focus,ko=So.key,Co=_o.key,$o=Kt(no,ko),Ro=Kt(no,Co),Oo=So.offset,No=_o.offset,Mo=to.format,Bo=to.style,Fo=to.isCollapsed();let Lo=$o,Go=Ro,Do=!1;if(So.type==="text"){Lo=et($o);const ps=So.getNode();Do=ps.getFormat()!==Mo||ps.getStyle()!==Bo}else Xr(eo)&&eo.anchor.type==="text"&&(Do=!0);var Uo,Ho,Yo,qo,Jo;if(_o.type==="text"&&(Go=et(Ro)),Lo!==null&&Go!==null&&(Fo&&(eo===null||Do||Xr(eo)&&(eo.format!==Mo||eo.style!==Bo))&&(Uo=Mo,Ho=Bo,Yo=Oo,qo=ko,Jo=performance.now(),rr=[Uo,Ho,Yo,qo,Jo]),go!==Oo||mo!==No||uo!==Lo||ho!==Go||io.type==="Range"&&Fo||(yo!==null&&ao.contains(yo)||ao.focus({preventScroll:!0}),So.type==="element"))){try{io.setBaseAndExtent(Lo,Oo,Go,No)}catch{}if(!so.has("skip-scroll-into-view")&&to.isCollapsed()&&ao!==null&&ao===document.activeElement){const ps=to instanceof Yr&&to.anchor.type==="element"?Lo.childNodes[Oo]||null:io.rangeCount>0?io.getRangeAt(0):null;if(ps!==null){let Qo;if(ps instanceof Text){const hs=document.createRange();hs.selectNode(ps),Qo=hs.getBoundingClientRect()}else Qo=ps.getBoundingClientRect();(function(hs,gs,ys){const vs=ys.ownerDocument,ks=vs.defaultView;if(ks===null)return;let{top:Os,bottom:Ts}=gs,Xs=0,Ws=0,Ps=ys;for(;Ps!==null;){const qs=Ps===vs.body;if(qs)Xs=0,Ws=Ht(hs).innerHeight;else{const Fs=Ps.getBoundingClientRect();Xs=Fs.top,Ws=Fs.bottom}let ga=0;if(OsWs&&(ga=Ts-Ws),ga!==0)if(qs)ks.scrollBy(0,ga);else{const Fs=Ps.scrollTop;Ps.scrollTop+=ga;const Js=Ps.scrollTop-Fs;Os-=Js,Ts-=Js}if(qs)break;Ps=Jt(Ps)}})(no,Qo,ao)}}Gn=!0}}function mi(eo){let to=fi()||di();to===null&&(to=ht$1().selectEnd()),to.insertNodes(eo)}function xi(){const eo=fi();return eo===null?"":eo.getTextContent()}function vi(eo){eo.isCollapsed()||eo.removeText();const to=eo.anchor;let no=to.getNode(),io=to.offset;for(;!ln(no);)[no,io]=Ti(no,io);return io}function Ti(eo,to){const no=eo.getParent();if(!no){const so=rs();return ht$1().append(so),so.select(),[ht$1(),0]}if(Br(eo)){const so=eo.splitText(to);if(so.length===0)return[no,eo.getIndexWithinParent()];const ao=to===0?0:1;return[no,so[0].getIndexWithinParent()+ao]}if(!qi(eo)||to===0)return[no,eo.getIndexWithinParent()];const io=eo.getChildAtIndex(to);if(io){const so=new Yr(Vr(eo.__key,to,"element"),Vr(eo.__key,to,"element"),0,""),ao=eo.insertNewAfter(so);ao&&ao.append(io,...io.getNextSiblings())}return[no,eo.getIndexWithinParent()+1]}let Si=null,ki=null,Ci=!1,bi=!1,Ni=0;const wi={characterData:!0,childList:!0,subtree:!0};function Ei(){return Ci||Si!==null&&Si._readOnly}function Pi(){Ci&&H$1(13)}function Di(){Ni>99&&H$1(14)}function Ii(){return Si===null&&H$1(15),Si}function Oi(){return ki===null&&H$1(16),ki}function Ai(){return ki}function Li(eo,to,no){const io=to.__type,so=function(uo,ho){const go=uo._nodes.get(ho);return go===void 0&&H$1(30,ho),go}(eo,io);let ao=no.get(io);ao===void 0&&(ao=Array.from(so.transforms),no.set(io,ao));const lo=ao.length;for(let uo=0;uo{so=Ki(eo,to,no)}),so}const io=xt$1(eo);for(let so=4;so>=0;so--)for(let ao=0;ao0||Yo>0;){if(Uo>0){No._dirtyLeaves=new Set;for(const qo of Do){const Jo=Fo.get(qo);Br(Jo)&&Jo.isAttached()&&Jo.isSimpleText()&&!Jo.isUnmergeable()&&Ve(Jo),Jo!==void 0&&Fi(Jo,Lo)&&Li(No,Jo,Go),Mo.add(qo)}if(Do=No._dirtyLeaves,Uo=Do.size,Uo>0){Ni++;continue}}No._dirtyLeaves=new Set,No._dirtyElements=new Map;for(const qo of Ho){const Jo=qo[0],ps=qo[1];if(Jo!=="root"&&!ps)continue;const Qo=Fo.get(Jo);Qo!==void 0&&Fi(Qo,Lo)&&Li(No,Qo,Go),Bo.set(Jo,ps)}Do=No._dirtyLeaves,Uo=Do.size,Ho=No._dirtyElements,Yo=Ho.size,Ni++}No._dirtyLeaves=Mo,No._dirtyElements=Bo}(go,eo),Ji(eo),function(Oo,No,Mo,Bo){const Fo=Oo._nodeMap,Lo=No._nodeMap,Go=[];for(const[Do]of Bo){const Uo=Lo.get(Do);Uo!==void 0&&(Uo.isAttached()||(qi(Uo)&&an(Uo,Do,Fo,Lo,Go,Bo),Fo.has(Do)||Bo.delete(Do),Go.push(Do)))}for(const Do of Go)Lo.delete(Do);for(const Do of Mo){const Uo=Lo.get(Do);Uo===void 0||Uo.isAttached()||(Fo.has(Do)||Mo.delete(Do),Lo.delete(Do))}}(ho,go,eo._dirtyLeaves,eo._dirtyElements)),$o!==eo._compositionKey&&(go._flushSync=!0);const Ro=go._selection;if(Xr(Ro)){const Oo=go._nodeMap,No=Ro.anchor.key,Mo=Ro.focus.key;Oo.get(No)!==void 0&&Oo.get(Mo)!==void 0||H$1(19)}else Zr(Ro)&&Ro._nodes.size===0&&(go._selection=null)}catch($o){return $o instanceof Error&&eo._onError($o),eo._pendingEditorState=ho,eo._dirtyType=ce,eo._cloneNotNeeded.clear(),eo._dirtyLeaves=new Set,eo._dirtyElements.clear(),void Bi(eo)}finally{Si=yo,Ci=So,ki=_o,eo._updating=ko,Ni=0}eo._dirtyType!==oe||function($o,Ro){const Oo=Ro.getEditorState()._selection,No=$o._selection;if(No!==null){if(No.dirty||!No.is(Oo))return!0}else if(Oo!==null)return!0;return!1}(go,eo)?go._flushSync?(go._flushSync=!1,Bi(eo)):mo&&qe(()=>{Bi(eo)}):(go._flushSync=!1,mo&&(io.clear(),eo._deferred=[],eo._pendingEditorState=null))}function Vi(eo,to,no){eo._updating?eo._updates.push([to,no]):Ui(eo,to,no)}class $i extends pr{constructor(to){super(to)}decorate(to,no){H$1(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Hi(eo){return eo instanceof $i}class ji extends pr{constructor(to){super(to),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__indent=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){const to=this.getFormat();return Ee[to]||""}getIndent(){return this.getLatest().__indent}getChildren(){const to=[];let no=this.getFirstChild();for(;no!==null;)to.push(no),no=no.getNextSibling();return to}getChildrenKeys(){const to=[];let no=this.getFirstChild();for(;no!==null;)to.push(no.__key),no=no.getNextSibling();return to}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const to=Oi()._dirtyElements;return to!==null&&to.has(this.__key)}isLastChild(){const to=this.getLatest(),no=this.getParentOrThrow().getLastChild();return no!==null&&no.is(to)}getAllTextNodes(){const to=[];let no=this.getFirstChild();for(;no!==null;){if(Br(no)&&to.push(no),qi(no)){const io=no.getAllTextNodes();to.push(...io)}no=no.getNextSibling()}return to}getFirstDescendant(){let to=this.getFirstChild();for(;qi(to);){const no=to.getFirstChild();if(no===null)break;to=no}return to}getLastDescendant(){let to=this.getLastChild();for(;qi(to);){const no=to.getLastChild();if(no===null)break;to=no}return to}getDescendantByIndex(to){const no=this.getChildren(),io=no.length;if(to>=io){const ao=no[io-1];return qi(ao)&&ao.getLastDescendant()||ao||null}const so=no[to];return qi(so)&&so.getFirstDescendant()||so||null}getFirstChild(){const to=this.getLatest().__first;return to===null?null:ct$1(to)}getFirstChildOrThrow(){const to=this.getFirstChild();return to===null&&H$1(45,this.__key),to}getLastChild(){const to=this.getLatest().__last;return to===null?null:ct$1(to)}getLastChildOrThrow(){const to=this.getLastChild();return to===null&&H$1(96,this.__key),to}getChildAtIndex(to){const no=this.getChildrenSize();let io,so;if(to=to;){if(so===to)return io;io=io.getPreviousSibling(),so--}return null}getTextContent(){let to="";const no=this.getChildren(),io=no.length;for(let so=0;sono.remove()),to}append(...to){return this.splice(this.getChildrenSize(),0,to)}setDirection(to){const no=this.getWritable();return no.__dir=to,no}setFormat(to){return this.getWritable().__format=to!==""?we[to]:0,this}setIndent(to){return this.getWritable().__indent=to,this}splice(to,no,io){const so=io.length,ao=this.getChildrenSize(),lo=this.getWritable(),uo=lo.__key,ho=[],go=[],mo=this.getChildAtIndex(to+no);let yo=null,So=ao-no+so;if(to!==0)if(to===ao)yo=this.getLastChild();else{const ko=this.getChildAtIndex(to);ko!==null&&(yo=ko.getPreviousSibling())}if(no>0){let ko=yo===null?this.getFirstChild():yo.getNextSibling();for(let Co=0;Co({root:Gi(ht$1())}))}}class ts extends ji{static getType(){return"paragraph"}static clone(to){return new ts(to.__key)}createDOM(to){const no=document.createElement("p"),io=At$1(to.theme,"paragraph");return io!==void 0&&no.classList.add(...io),no}updateDOM(to,no,io){return!1}static importDOM(){return{p:to=>({conversion:ns,priority:0})}}exportDOM(to){const{element:no}=super.exportDOM(to);if(no&&on(no)){this.isEmpty()&&no.append(document.createElement("br"));const io=this.getFormatType();no.style.textAlign=io;const so=this.getDirection();so&&(no.dir=so);const ao=this.getIndent();ao>0&&(no.style.textIndent=20*ao+"px")}return{element:no}}static importJSON(to){const no=rs();return no.setFormat(to.format),no.setIndent(to.indent),no.setDirection(to.direction),no}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(to,no){const io=rs(),so=this.getDirection();return io.setDirection(so),this.insertAfter(io,no),io}collapseAtStart(){const to=this.getChildren();if(to.length===0||Br(to[0])&&to[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function ns(eo){const to=rs();if(eo.style){to.setFormat(eo.style.textAlign);const no=parseInt(eo.style.textIndent,10)/20;no>0&&to.setIndent(no)}return{node:to}}function rs(){return Yt(new ts)}function is(eo){return eo instanceof ts}const ss=0,os=1,ls=2,cs=3,us=4;function as(eo,to,no,io){const so=eo._keyToDOMMap;so.clear(),eo._editorState=Zi(),eo._pendingEditorState=io,eo._compositionKey=null,eo._dirtyType=oe,eo._cloneNotNeeded.clear(),eo._dirtyLeaves=new Set,eo._dirtyElements.clear(),eo._normalizedNodes=new Set,eo._updateTags=new Set,eo._updates=[],eo._blockCursorElement=null;const ao=eo._observer;ao!==null&&(ao.disconnect(),eo._observer=null),to!==null&&(to.textContent=""),no!==null&&(no.textContent="",so.set("root",no))}function fs(eo){const to=eo||{},no=Ai(),io=to.theme||{},so=eo===void 0?no:to.parentEditor||null,ao=to.disableEvents||!1,lo=Zi(),uo=to.namespace||(so!==null?so._config.namespace:vt$1()),ho=to.editorState,go=[Xi,Er,yr,Rr,ts,...to.nodes||[]],{onError:mo,html:yo}=to,So=to.editable===void 0||to.editable;let _o;if(eo===void 0&&no!==null)_o=no._nodes;else{_o=new Map;for(let Co=0;Co{Object.keys(Mo).forEach(Bo=>{let Fo=Ro.get(Bo);Fo===void 0&&(Fo=[],Ro.set(Bo,Fo)),Fo.push(Mo[Bo])})};return Co.forEach(Mo=>{const Bo=Mo.klass.importDOM;if(Bo==null||Oo.has(Bo))return;Oo.add(Bo);const Fo=Bo.call(Mo.klass);Fo!==null&&No(Fo)}),$o&&No($o),Ro}(_o,yo?yo.import:void 0),So);return ho!==void 0&&(ko._pendingEditorState=ho,ko._dirtyType=ce),ko}class ds{constructor(to,no,io,so,ao,lo,uo){this._parentEditor=no,this._rootElement=null,this._editorState=to,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=so,this._nodes=io,this._decorators={},this._pendingDecorators=null,this._dirtyType=oe,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=vt$1(),this._onError=ao,this._htmlConversions=lo,this._editable=uo,this._headless=no!==null&&no._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(to){const no=this._listeners.update;return no.add(to),()=>{no.delete(to)}}registerEditableListener(to){const no=this._listeners.editable;return no.add(to),()=>{no.delete(to)}}registerDecoratorListener(to){const no=this._listeners.decorator;return no.add(to),()=>{no.delete(to)}}registerTextContentListener(to){const no=this._listeners.textcontent;return no.add(to),()=>{no.delete(to)}}registerRootListener(to){const no=this._listeners.root;return to(this._rootElement,null),no.add(to),()=>{to(null,this._rootElement),no.delete(to)}}registerCommand(to,no,io){io===void 0&&H$1(35);const so=this._commands;so.has(to)||so.set(to,[new Set,new Set,new Set,new Set,new Set]);const ao=so.get(to);ao===void 0&&H$1(36,String(to));const lo=ao[io];return lo.add(no),()=>{lo.delete(no),ao.every(uo=>uo.size===0)&&so.delete(to)}}registerMutationListener(to,no){this._nodes.get(to.getType())===void 0&&H$1(37,to.name);const io=this._listeners.mutation;return io.set(no,to),()=>{io.delete(no)}}registerNodeTransformToKlass(to,no){const io=to.getType(),so=this._nodes.get(io);return so===void 0&&H$1(37,to.name),so.transforms.add(no),so}registerNodeTransform(to,no){const io=this.registerNodeTransformToKlass(to,no),so=[io],ao=io.replaceWithKlass;if(ao!=null){const ho=this.registerNodeTransformToKlass(ao,no);so.push(ho)}var lo,uo;return lo=this,uo=to.getType(),Vi(lo,()=>{const ho=Ii();if(ho.isEmpty())return;if(uo==="root")return void ht$1().markDirty();const go=ho._nodeMap;for(const[,mo]of go)mo.markDirty()},lo._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{so.forEach(ho=>ho.transforms.delete(no))}}hasNode(to){return this._nodes.has(to.getType())}hasNodes(to){return to.every(this.hasNode.bind(this))}dispatchCommand(to,no){return Bt(this,to,no)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(to){const no=this._rootElement;if(to!==no){const io=At$1(this._config.theme,"root"),so=this._pendingEditorState||this._editorState;if(this._rootElement=to,as(this,no,to,so),no!==null&&(this._config.disableEvents||gr(no),io!=null&&no.classList.remove(...io)),to!==null){const ao=function(uo){const ho=uo.ownerDocument;return ho&&ho.defaultView||null}(to),lo=to.style;lo.userSelect="text",lo.whiteSpace="pre-wrap",lo.wordBreak="break-word",to.setAttribute("data-lexical-editor","true"),this._window=ao,this._dirtyType=ce,Ke(this),this._updateTags.add("history-merge"),Bi(this),this._config.disableEvents||function(uo,ho){const go=uo.ownerDocument,mo=Zn$1.get(go);mo===void 0&&go.addEventListener("selectionchange",fr),Zn$1.set(go,mo||1),uo.__lexicalEditor=ho;const yo=ur(uo);for(let So=0;So{hr($o)||(dr($o),(ho.isEditable()||_o==="click")&&ko($o,ho))}:$o=>{if(!hr($o)&&(dr($o),ho.isEditable()))switch(_o){case"cut":return Bt(ho,W,$o);case"copy":return Bt(ho,M$3,$o);case"paste":return Bt(ho,c$6,$o);case"dragstart":return Bt(ho,A$3,$o);case"dragover":return Bt(ho,L$2,$o);case"dragend":return Bt(ho,F$1,$o);case"focus":return Bt(ho,U,$o);case"blur":return Bt(ho,V,$o);case"drop":return Bt(ho,I$1,$o)}};uo.addEventListener(_o,Co),yo.push(()=>{uo.removeEventListener(_o,Co)})}}(to,this),io!=null&&to.classList.add(...io)}else this._editorState=so,this._pendingEditorState=null,this._window=null;Ri("root",this,!1,to,no)}}getElementByKey(to){return this._keyToDOMMap.get(to)||null}getEditorState(){return this._editorState}setEditorState(to,no){to.isEmpty()&&H$1(38),Re(this);const io=this._pendingEditorState,so=this._updateTags,ao=no!==void 0?no.tag:null;io===null||io.isEmpty()||(ao!=null&&so.add(ao),Bi(this)),this._pendingEditorState=to,this._dirtyType=ce,this._dirtyElements.set("root",!1),this._compositionKey=null,ao!=null&&so.add(ao),Bi(this)}parseEditorState(to,no){return function(io,so,ao){const lo=Zi(),uo=Si,ho=Ci,go=ki,mo=so._dirtyElements,yo=so._dirtyLeaves,So=so._cloneNotNeeded,_o=so._dirtyType;so._dirtyElements=new Map,so._dirtyLeaves=new Set,so._cloneNotNeeded=new Set,so._dirtyType=0,Si=lo,Ci=!1,ki=so;try{const ko=so._nodes;Wi(io.root,ko),ao&&ao(),lo._readOnly=!0}catch(ko){ko instanceof Error&&so._onError(ko)}finally{so._dirtyElements=mo,so._dirtyLeaves=yo,so._cloneNotNeeded=So,so._dirtyType=_o,Si=uo,Ci=ho,ki=go}return lo}(typeof to=="string"?JSON.parse(to):to,this,no)}update(to,no){Vi(this,to,no)}focus(to,no={}){const io=this._rootElement;io!==null&&(io.setAttribute("autocapitalize","off"),Vi(this,()=>{const so=fi(),ao=ht$1();so!==null?so.dirty=!0:ao.getChildrenSize()!==0&&(no.defaultSelection==="rootStart"?ao.selectStart():ao.selectEnd())},{onUpdate:()=>{io.removeAttribute("autocapitalize"),to&&to()},tag:"focus"}),this._pendingEditorState===null&&io.removeAttribute("autocapitalize"))}blur(){const to=this._rootElement;to!==null&&to.blur();const no=nn(this._window);no!==null&&no.removeAllRanges()}isEditable(){return this._editable}setEditable(to){this._editable!==to&&(this._editable=to,Ri("editable",this,!0,to))}toJSON(){return{editorState:this._editorState.toJSON()}}}const modProd$i=Object.freeze(Object.defineProperty({__proto__:null,$addUpdateTag:Vt,$applyNodeReplacement:Yt,$copyNode:Xt,$createLineBreakNode:xr,$createNodeSelection:ui,$createParagraphNode:rs,$createPoint:Vr,$createRangeSelection:ci,$createTabNode:Kr,$createTextNode:zr,$getAdjacentNode:Wt,$getCharacterOffsets:ei,$getEditor:un,$getNearestNodeFromDOMNode:at$1,$getNearestRootOrShadowRoot:qt,$getNodeByKey:ct$1,$getPreviousSelection:di,$getRoot:ht$1,$getSelection:fi,$getTextContent:xi,$hasAncestor:$t,$hasUpdateTag:Ut,$insertNodes:mi,$isBlockElementNode:oi,$isDecoratorNode:Hi,$isElementNode:qi,$isInlineElementOrDecoratorNode:jt,$isLeafNode:nt,$isLineBreakNode:vr,$isNodeSelection:Zr,$isParagraphNode:is,$isRangeSelection:Xr,$isRootNode:Yi,$isRootOrShadowRoot:Qt,$isTabNode:Jr,$isTextNode:Br,$nodesOfType:Ft,$normalizeSelection__EXPERIMENTAL:$e,$parseSerializedNode:Mi,$selectAll:Ot$1,$setCompositionKey:ot,$setSelection:_t,$splitNode:rn,BLUR_COMMAND:V,CAN_REDO_COMMAND:K$4,CAN_UNDO_COMMAND:J,CLEAR_EDITOR_COMMAND:B$2,CLEAR_HISTORY_COMMAND:R$2,CLICK_COMMAND:r$1,COMMAND_PRIORITY_CRITICAL:us,COMMAND_PRIORITY_EDITOR:ss,COMMAND_PRIORITY_HIGH:cs,COMMAND_PRIORITY_LOW:os,COMMAND_PRIORITY_NORMAL:ls,CONTROLLED_TEXT_INSERTION_COMMAND:l$3,COPY_COMMAND:M$3,CUT_COMMAND:W,DELETE_CHARACTER_COMMAND:i$6,DELETE_LINE_COMMAND:f$5,DELETE_WORD_COMMAND:a$4,DRAGEND_COMMAND:F$1,DRAGOVER_COMMAND:L$2,DRAGSTART_COMMAND:A$3,DROP_COMMAND:I$1,DecoratorNode:$i,ElementNode:ji,FOCUS_COMMAND:U,FORMAT_ELEMENT_COMMAND:O$2,FORMAT_TEXT_COMMAND:d$4,INDENT_CONTENT_COMMAND:P$3,INSERT_LINE_BREAK_COMMAND:s$2,INSERT_PARAGRAPH_COMMAND:o$5,INSERT_TAB_COMMAND:E$4,KEY_ARROW_DOWN_COMMAND:T$4,KEY_ARROW_LEFT_COMMAND:m$5,KEY_ARROW_RIGHT_COMMAND:p$5,KEY_ARROW_UP_COMMAND:v$3,KEY_BACKSPACE_COMMAND:C$5,KEY_DELETE_COMMAND:N$3,KEY_DOWN_COMMAND:_$6,KEY_ENTER_COMMAND:S$5,KEY_ESCAPE_COMMAND:b$2,KEY_MODIFIER_COMMAND:$$1,KEY_SPACE_COMMAND:k$2,KEY_TAB_COMMAND:w$4,LineBreakNode:yr,MOVE_TO_END:y$7,MOVE_TO_START:x$8,OUTDENT_CONTENT_COMMAND:D$3,PASTE_COMMAND:c$6,ParagraphNode:ts,REDO_COMMAND:g$6,REMOVE_TEXT_COMMAND:u$5,RootNode:Xi,SELECTION_CHANGE_COMMAND:t$4,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:n$2,SELECT_ALL_COMMAND:z$1,TabNode:Rr,TextNode:Er,UNDO_COMMAND:h$3,createCommand:e$1,createEditor:fs,getNearestEditorFromDOMNode:Ye,isCurrentlyReadOnlyMode:Ei,isHTMLAnchorElement:sn,isHTMLElement:on,isSelectionCapturedInDecoratorInput:Qe,isSelectionWithinEditor:Xe},Symbol.toStringTag,{value:"Module"})),mod$i=modProd$i,$applyNodeReplacement=mod$i.$applyNodeReplacement,$copyNode=mod$i.$copyNode,$createNodeSelection=mod$i.$createNodeSelection,$createParagraphNode=mod$i.$createParagraphNode,$createRangeSelection=mod$i.$createRangeSelection,$createTabNode=mod$i.$createTabNode,$createTextNode=mod$i.$createTextNode,$getAdjacentNode=mod$i.$getAdjacentNode,$getCharacterOffsets=mod$i.$getCharacterOffsets,$getNearestNodeFromDOMNode=mod$i.$getNearestNodeFromDOMNode,$getNodeByKey=mod$i.$getNodeByKey,$getPreviousSelection=mod$i.$getPreviousSelection,$getRoot=mod$i.$getRoot,$getSelection=mod$i.$getSelection,$hasAncestor=mod$i.$hasAncestor,$insertNodes=mod$i.$insertNodes,$isDecoratorNode=mod$i.$isDecoratorNode,$isElementNode=mod$i.$isElementNode,$isLeafNode=mod$i.$isLeafNode,$isLineBreakNode=mod$i.$isLineBreakNode,$isNodeSelection=mod$i.$isNodeSelection,$isParagraphNode=mod$i.$isParagraphNode,$isRangeSelection=mod$i.$isRangeSelection,$isRootNode=mod$i.$isRootNode,$isRootOrShadowRoot=mod$i.$isRootOrShadowRoot,$isTextNode=mod$i.$isTextNode,$normalizeSelection__EXPERIMENTAL=mod$i.$normalizeSelection__EXPERIMENTAL,$parseSerializedNode=mod$i.$parseSerializedNode,$selectAll=mod$i.$selectAll,$setSelection=mod$i.$setSelection,$splitNode=mod$i.$splitNode,CAN_REDO_COMMAND=mod$i.CAN_REDO_COMMAND,CAN_UNDO_COMMAND=mod$i.CAN_UNDO_COMMAND,CLEAR_EDITOR_COMMAND=mod$i.CLEAR_EDITOR_COMMAND,CLEAR_HISTORY_COMMAND=mod$i.CLEAR_HISTORY_COMMAND,CLICK_COMMAND=mod$i.CLICK_COMMAND,COMMAND_PRIORITY_CRITICAL=mod$i.COMMAND_PRIORITY_CRITICAL,COMMAND_PRIORITY_EDITOR=mod$i.COMMAND_PRIORITY_EDITOR,COMMAND_PRIORITY_HIGH=mod$i.COMMAND_PRIORITY_HIGH,COMMAND_PRIORITY_LOW=mod$i.COMMAND_PRIORITY_LOW,CONTROLLED_TEXT_INSERTION_COMMAND=mod$i.CONTROLLED_TEXT_INSERTION_COMMAND,COPY_COMMAND=mod$i.COPY_COMMAND,CUT_COMMAND=mod$i.CUT_COMMAND,DELETE_CHARACTER_COMMAND=mod$i.DELETE_CHARACTER_COMMAND,DELETE_LINE_COMMAND=mod$i.DELETE_LINE_COMMAND,DELETE_WORD_COMMAND=mod$i.DELETE_WORD_COMMAND,DRAGOVER_COMMAND=mod$i.DRAGOVER_COMMAND,DRAGSTART_COMMAND=mod$i.DRAGSTART_COMMAND,DROP_COMMAND=mod$i.DROP_COMMAND,DecoratorNode=mod$i.DecoratorNode,ElementNode=mod$i.ElementNode,FORMAT_ELEMENT_COMMAND=mod$i.FORMAT_ELEMENT_COMMAND,FORMAT_TEXT_COMMAND=mod$i.FORMAT_TEXT_COMMAND,INDENT_CONTENT_COMMAND=mod$i.INDENT_CONTENT_COMMAND,INSERT_LINE_BREAK_COMMAND=mod$i.INSERT_LINE_BREAK_COMMAND,INSERT_PARAGRAPH_COMMAND=mod$i.INSERT_PARAGRAPH_COMMAND,INSERT_TAB_COMMAND=mod$i.INSERT_TAB_COMMAND,KEY_ARROW_DOWN_COMMAND=mod$i.KEY_ARROW_DOWN_COMMAND,KEY_ARROW_LEFT_COMMAND=mod$i.KEY_ARROW_LEFT_COMMAND,KEY_ARROW_RIGHT_COMMAND=mod$i.KEY_ARROW_RIGHT_COMMAND,KEY_ARROW_UP_COMMAND=mod$i.KEY_ARROW_UP_COMMAND,KEY_BACKSPACE_COMMAND=mod$i.KEY_BACKSPACE_COMMAND,KEY_DELETE_COMMAND=mod$i.KEY_DELETE_COMMAND,KEY_ENTER_COMMAND=mod$i.KEY_ENTER_COMMAND,KEY_ESCAPE_COMMAND=mod$i.KEY_ESCAPE_COMMAND,LineBreakNode=mod$i.LineBreakNode,OUTDENT_CONTENT_COMMAND=mod$i.OUTDENT_CONTENT_COMMAND,PASTE_COMMAND=mod$i.PASTE_COMMAND,ParagraphNode=mod$i.ParagraphNode,REDO_COMMAND=mod$i.REDO_COMMAND,REMOVE_TEXT_COMMAND=mod$i.REMOVE_TEXT_COMMAND,RootNode=mod$i.RootNode,SELECTION_CHANGE_COMMAND=mod$i.SELECTION_CHANGE_COMMAND,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND=mod$i.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,SELECT_ALL_COMMAND=mod$i.SELECT_ALL_COMMAND,TextNode$2=mod$i.TextNode,UNDO_COMMAND=mod$i.UNDO_COMMAND,createCommand=mod$i.createCommand,createEditor=mod$i.createEditor,isHTMLAnchorElement$1=mod$i.isHTMLAnchorElement,isHTMLElement$2=mod$i.isHTMLElement,isSelectionCapturedInDecoratorInput=mod$i.isSelectionCapturedInDecoratorInput,isSelectionWithinEditor=mod$i.isSelectionWithinEditor,m$4=new Map;function _$5(eo){let to=eo;for(;to!=null;){if(to.nodeType===Node.TEXT_NODE)return to;to=to.firstChild}return null}function y$6(eo){const to=eo.parentNode;if(to==null)throw new Error("Should never happen");return[to,Array.from(to.childNodes).indexOf(eo)]}function T$3(eo,to,no,io,so){const ao=to.getKey(),lo=io.getKey(),uo=document.createRange();let ho=eo.getElementByKey(ao),go=eo.getElementByKey(lo),mo=no,yo=so;if($isTextNode(to)&&(ho=_$5(ho)),$isTextNode(io)&&(go=_$5(go)),to===void 0||io===void 0||ho===null||go===null)return null;ho.nodeName==="BR"&&([ho,mo]=y$6(ho)),go.nodeName==="BR"&&([go,yo]=y$6(go));const So=ho.firstChild;ho===go&&So!=null&&So.nodeName==="BR"&&mo===0&&yo===0&&(yo=1);try{uo.setStart(ho,mo),uo.setEnd(go,yo)}catch{return null}return!uo.collapsed||mo===yo&&ao===lo||(uo.setStart(go,yo),uo.setEnd(ho,mo)),uo}function x$7(eo,to){const no=eo.getRootElement();if(no===null)return[];const io=no.getBoundingClientRect(),so=getComputedStyle(no),ao=parseFloat(so.paddingLeft)+parseFloat(so.paddingRight),lo=Array.from(to.getClientRects());let uo,ho=lo.length;lo.sort((go,mo)=>{const yo=go.top-mo.top;return Math.abs(yo)<=3?go.left-mo.left:yo});for(let go=0;gomo.top&&uo.left+uo.width>mo.left,So=mo.width+ao===io.width;yo||So?(lo.splice(go--,1),ho--):uo=mo}return lo}function S$4(eo){const to={},no=eo.split(";");for(const io of no)if(io!==""){const[so,ao]=io.split(/:([^]+)/);so&&ao&&(to[so.trim()]=ao.trim())}return to}function N$2(eo){let to=m$4.get(eo);return to===void 0&&(to=S$4(eo),m$4.set(eo,to)),to}function E$3(eo){const to=eo.constructor.clone(eo);return to.__parent=eo.__parent,to.__next=eo.__next,to.__prev=eo.__prev,$isElementNode(eo)&&$isElementNode(to)?(io=eo,(no=to).__first=io.__first,no.__last=io.__last,no.__size=io.__size,no.__format=io.__format,no.__indent=io.__indent,no.__dir=io.__dir,no):$isTextNode(eo)&&$isTextNode(to)?function(so,ao){return so.__format=ao.__format,so.__style=ao.__style,so.__mode=ao.__mode,so.__detail=ao.__detail,so}(to,eo):to;var no,io}function v$2(eo,to){const no=eo.getStartEndPoints();if(to.isSelected(eo)&&!to.isSegmented()&&!to.isToken()&&no!==null){const[io,so]=no,ao=eo.isBackward(),lo=io.getNode(),uo=so.getNode(),ho=to.is(lo),go=to.is(uo);if(ho||go){const[mo,yo]=$getCharacterOffsets(eo),So=lo.is(uo),_o=to.is(ao?uo:lo),ko=to.is(ao?lo:uo);let Co,$o=0;return So?($o=mo>yo?yo:mo,Co=mo>yo?mo:yo):_o?($o=ao?yo:mo,Co=void 0):ko&&($o=0,Co=ao?mo:yo),to.__text=to.__text.slice($o,Co),to}}return to}function C$4(eo){if(eo.type==="text")return eo.offset===eo.getNode().getTextContentSize();const to=eo.getNode();if(!$isElementNode(to))throw Error("isAtNodeEnd: node must be a TextNode or ElementNode");return eo.offset===to.getChildrenSize()}function w$3(eo,to,no){let io=to.getNode(),so=no;if($isElementNode(io)){const ao=io.getDescendantByIndex(to.offset);ao!==null&&(io=ao)}for(;so>0&&io!==null;){if($isElementNode(io)){const go=io.getLastDescendant();go!==null&&(io=go)}let ao=io.getPreviousSibling(),lo=0;if(ao===null){let go=io.getParentOrThrow(),mo=go.getPreviousSibling();for(;mo===null;){if(go=go.getParent(),go===null){ao=null;break}mo=go.getPreviousSibling()}go!==null&&(lo=go.isInline()?0:2,ao=mo)}let uo=io.getTextContent();uo===""&&$isElementNode(io)&&!io.isInline()&&(uo=` -`);const ho=uo.length;if(!$isTextNode(io)||so>=ho){const go=io.getParent();io.remove(),go==null||go.getChildrenSize()!==0||$isRootNode(go)||go.remove(),so-=ho+lo,io=ao}else{const go=io.getKey(),mo=eo.getEditorState().read(()=>{const _o=$getNodeByKey(go);return $isTextNode(_o)&&_o.isSimpleText()?_o.getTextContent():null}),yo=ho-so,So=uo.slice(0,yo);if(mo!==null&&mo!==uo){const _o=$getPreviousSelection();let ko=io;if(io.isSimpleText())io.setTextContent(mo);else{const Co=$createTextNode(mo);io.replace(Co),ko=Co}if($isRangeSelection(_o)&&_o.isCollapsed()){const Co=_o.anchor.offset;ko.select(Co,Co)}}else if(io.isSimpleText()){const _o=to.key===go;let ko=to.offset;ko(uo instanceof Function?ao[lo]=uo(no[lo]):uo===null?delete ao[lo]:ao[lo]=uo,ao),{...no}),so=function(ao){let lo="";for(const uo in ao)uo&&(lo+=`${uo}: ${ao[uo]};`);return lo}(io);eo.setStyle(so),m$4.set(so,io)}function I(eo,to){const no=eo.getNodes(),io=no.length,so=eo.getStartEndPoints();if(so===null)return;const[ao,lo]=so,uo=io-1;let ho=no[0],go=no[uo];if(eo.isCollapsed()&&$isRangeSelection(eo))return void F(eo,to);const mo=ho.getTextContent().length,yo=lo.offset;let So=ao.offset;const _o=ao.isBefore(lo);let ko=_o?So:yo,Co=_o?yo:So;const $o=_o?ao.type:lo.type,Ro=_o?lo.type:ao.type,Oo=_o?lo.key:ao.key;if($isTextNode(ho)&&ko===mo){const No=ho.getNextSibling();$isTextNode(No)&&(So=0,ko=0,ho=No)}if(no.length===1){if($isTextNode(ho)&&ho.canHaveFormat()){if(ko=$o==="element"?0:So>yo?yo:So,Co=Ro==="element"?mo:So>yo?So:yo,ko===Co)return;if(ko===0&&Co===mo)F(ho,to),ho.select(ko,Co);else{const No=ho.splitText(ko,Co),Mo=ko===0?No[0]:No[1];F(Mo,to),Mo.select(0,Co-ko)}}}else{if($isTextNode(ho)&&koyo.append(So)),no&&(yo=no.append(yo)),void go.replace(yo)}let uo=null,ho=[];for(let go=0;go{Oo.append(No),yo.add(No.getKey()),$isElementNode(No)&&No.getChildrenKeys().forEach(Mo=>yo.add(Mo))}),O$1($o)}}else if(mo.has(Co.getKey())){if(!$isElementNode(Co))throw Error("Expected node in emptyElements to be an ElementNode");const Ro=io();Ro.setFormat(Co.getFormatType()),Ro.setIndent(Co.getIndent()),uo.push(Ro),Co.remove(!0)}}if(so!==null)for(let ko=0;ko=0;ko--){const Co=uo[ko];ho.insertAfter(Co)}else{const ko=ho.getFirstChild();if($isElementNode(ko)&&(ho=ko),ko===null)if(so)ho.append(so);else for(let Co=0;Co=0;ko--){const Co=uo[ko];ho.insertAfter(Co),So=Co}const _o=$getPreviousSelection();$isRangeSelection(_o)&&b$1(_o.anchor)&&b$1(_o.focus)?$setSelection(_o.clone()):So!==null?So.selectEnd():eo.dirty=!0}function z(eo,to){const no=$getAdjacentNode(eo.focus,to);return $isDecoratorNode(no)&&!no.isIsolated()||$isElementNode(no)&&!no.isInline()&&!no.canBeEmpty()}function A$2(eo,to,no,io){eo.modify(to?"extend":"move",no,io)}function R$1(eo){const to=eo.anchor.getNode();return($isRootNode(to)?to:to.getParentOrThrow()).getDirection()==="rtl"}function D$2(eo,to,no){const io=R$1(eo);A$2(eo,to,no?!io:io,"character")}function L$1(eo){const to=eo.anchor,no=eo.focus,io=to.getNode().getTopLevelElementOrThrow().getParentOrThrow();let so=io.getFirstDescendant(),ao=io.getLastDescendant(),lo="element",uo="element",ho=0;$isTextNode(so)?lo="text":$isElementNode(so)||so===null||(so=so.getParentOrThrow()),$isTextNode(ao)?(uo="text",ho=ao.getTextContentSize()):$isElementNode(ao)||ao===null||(ao=ao.getParentOrThrow()),so&&ao&&(to.set(so.getKey(),0,lo),no.set(ao.getKey(),ho,uo))}function H(eo,to,no){const io=N$2(eo.getStyle());return io!==null&&io[to]||no}function M$2(eo,to,no=""){let io=null;const so=eo.getNodes(),ao=eo.anchor,lo=eo.focus,uo=eo.isBackward(),ho=uo?lo.offset:ao.offset,go=uo?lo.getNode():ao.getNode();if(eo.isCollapsed()&&eo.style!==""){const mo=N$2(eo.style);if(mo!==null&&to in mo)return mo[to]}for(let mo=0;mo{eo.forEach(to=>to())}}function m$3(eo){return`${eo}px`}const E$2={attributes:!0,characterData:!0,childList:!0,subtree:!0};function x$6(eo,to,no){let io=null,so=null,ao=null,lo=[];const uo=document.createElement("div");function ho(){if(io===null)throw Error("Unexpected null rootDOMNode");if(so===null)throw Error("Unexpected null parentDOMNode");const{left:yo,top:So}=io.getBoundingClientRect(),_o=so,ko=createRectsFromDOMRange(eo,to);uo.isConnected||_o.append(uo);let Co=!1;for(let $o=0;$oko.length;)lo.pop();Co&&no(lo)}function go(){so=null,io=null,ao!==null&&ao.disconnect(),ao=null,uo.remove();for(const yo of lo)yo.remove();lo=[]}const mo=eo.registerRootListener(function yo(){const So=eo.getRootElement();if(So===null)return go();const _o=So.parentElement;if(!(_o instanceof HTMLElement))return go();go(),io=So,so=_o,ao=new MutationObserver(ko=>{const Co=eo.getRootElement(),$o=Co&&Co.parentElement;if(Co!==io||$o!==so)return yo();for(const Ro of ko)if(!uo.contains(Ro.target))return ho()}),ao.observe(_o,E$2),ho()});return()=>{mo(),go()}}function y$5(eo,to){let no=null,io=null,so=null,ao=null,lo=()=>{};function uo(ho){ho.read(()=>{const go=$getSelection();if(!$isRangeSelection(go))return no=null,io=null,so=null,ao=null,lo(),void(lo=()=>{});const{anchor:mo,focus:yo}=go,So=mo.getNode(),_o=So.getKey(),ko=mo.offset,Co=yo.getNode(),$o=Co.getKey(),Ro=yo.offset,Oo=eo.getElementByKey(_o),No=eo.getElementByKey($o),Mo=no===null||Oo===null||ko!==io||_o!==no.getKey()||So!==no&&(!(no instanceof TextNode$2)||So.updateDOM(no,Oo,eo._config)),Bo=so===null||No===null||Ro!==ao||$o!==so.getKey()||Co!==so&&(!(so instanceof TextNode$2)||Co.updateDOM(so,No,eo._config));if(Mo||Bo){const Po=eo.getElementByKey(mo.getNode().getKey()),Lo=eo.getElementByKey(yo.getNode().getKey());if(Po!==null&&Lo!==null&&Po.tagName==="SPAN"&&Lo.tagName==="SPAN"){const Go=document.createRange();let Do,Uo,Ho,Yo;yo.isBefore(mo)?(Do=Lo,Uo=yo.offset,Ho=Po,Yo=mo.offset):(Do=Po,Uo=mo.offset,Ho=Lo,Yo=yo.offset);const qo=Do.firstChild;if(qo===null)throw Error("Expected text node to be first child of span");const Jo=Ho.firstChild;if(Jo===null)throw Error("Expected text node to be first child of span");Go.setStart(qo,Uo),Go.setEnd(Jo,Yo),lo(),lo=x$6(eo,Go,ps=>{for(const Qo of ps){const hs=Qo.style;hs.background!=="Highlight"&&(hs.background="Highlight"),hs.color!=="HighlightText"&&(hs.color="HighlightText"),hs.zIndex!=="-1"&&(hs.zIndex="-1"),hs.pointerEvents!=="none"&&(hs.pointerEvents="none"),hs.marginTop!==m$3(-1.5)&&(hs.marginTop=m$3(-1.5)),hs.paddingTop!==m$3(4)&&(hs.paddingTop=m$3(4)),hs.paddingBottom!==m$3(0)&&(hs.paddingBottom=m$3(0))}to!==void 0&&to(ps)})}}no=So,io=ko,so=Co,ao=Ro})}return uo(eo.getEditorState()),h$2(eo.registerUpdateListener(({editorState:ho})=>uo(ho)),lo,()=>{lo()})}function v$1(eo,...to){const no=p$4(...to);no.length>0&&eo.classList.add(...no)}function N$1(eo,...to){const no=p$4(...to);no.length>0&&eo.classList.remove(...no)}function w$2(eo,to){for(const no of to)if(eo.type.startsWith(no))return!0;return!1}function L(eo,to){const no=eo[Symbol.iterator]();return new Promise((io,so)=>{const ao=[],lo=()=>{const{done:uo,value:ho}=no.next();if(uo)return io(ao);const go=new FileReader;go.addEventListener("error",so),go.addEventListener("load",()=>{const mo=go.result;typeof mo=="string"&&ao.push({file:ho,result:mo}),lo()}),w$2(ho,to)?go.readAsDataURL(ho):lo()};lo()})}function T$2(eo,to){const no=[],io=(eo||$getRoot()).getLatest(),so=to||($isElementNode(io)?io.getLastDescendant():io);let ao=io,lo=function(uo){let ho=uo,go=0;for(;(ho=ho.getParent())!==null;)go++;return go}(ao);for(;ao!==null&&!ao.is(so);)if(no.push({depth:lo,node:ao}),$isElementNode(ao)&&ao.getChildrenSize()>0)ao=ao.getFirstChild(),lo++;else{let uo=null;for(;uo===null&&ao!==null;)uo=ao.getNextSibling(),uo===null?(ao=ao.getParent(),lo--):ao=uo}return ao!==null&&ao.is(so)&&no.push({depth:lo,node:ao}),no}function b(eo,to){let no=eo;for(;no!=null;){if(no instanceof to)return no;no=no.getParent()}return null}function S$3(eo){const to=_$4(eo,no=>$isElementNode(no)&&!no.isInline());return $isElementNode(to)||g$5(4,eo.__key),to}const _$4=(eo,to)=>{let no=eo;for(;no!==$getRoot()&&no!=null;){if(to(no))return no;no=no.getParent()}return null};function B(eo,to,no,io){const so=ao=>ao instanceof to;return eo.registerNodeTransform(to,ao=>{const lo=(uo=>{const ho=uo.getChildren();for(let yo=0;yo0&&(lo+=1,io.splitText(so))):(ao=io,lo=so);const[,uo]=$splitNode(ao,lo);uo.insertBefore(eo),uo.selectStart()}}else{if(to!=null){const io=to.getNodes();io[io.length-1].getTopLevelElementOrThrow().insertAfter(eo)}else $getRoot().append(eo);const no=$createParagraphNode();eo.insertAfter(no),no.select()}return eo.getLatest()}function A$1(eo,to){const no=to();return eo.replace(no),no.append(eo),no}function C$3(eo,to){return eo!==null&&Object.getPrototypeOf(eo).constructor.name===to.name}function K$2(eo,to){const no=[];for(let io=0;io({conversion:a$3,priority:1})}}static importJSON(to){const no=g$4(to.url,{rel:to.rel,target:to.target,title:to.title});return no.setFormat(to.format),no.setIndent(to.indent),no.setDirection(to.direction),no}sanitizeUrl(to){try{const no=new URL(to);if(!o$4.has(no.protocol))return"about:blank"}catch{return to}return to}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(to){this.getWritable().__url=to}getTarget(){return this.getLatest().__target}setTarget(to){this.getWritable().__target=to}getRel(){return this.getLatest().__rel}setRel(to){this.getWritable().__rel=to}getTitle(){return this.getLatest().__title}setTitle(to){this.getWritable().__title=to}insertNewAfter(to,no=!0){const io=g$4(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(io,no),io}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(to,no,io){if(!$isRangeSelection(no))return!1;const so=no.anchor.getNode(),ao=no.focus.getNode();return this.isParentOf(so)&&this.isParentOf(ao)&&no.getTextContent().length>0}};function a$3(eo){let to=null;if(isHTMLAnchorElement(eo)){const no=eo.textContent;(no!==null&&no!==""||eo.children.length>0)&&(to=g$4(eo.getAttribute("href")||"",{rel:eo.getAttribute("rel"),target:eo.getAttribute("target"),title:eo.getAttribute("title")}))}return{node:to}}function g$4(eo,to){return $applyNodeReplacement(new _$3(eo,to))}function c$5(eo){return eo instanceof _$3}let h$1=class BSt extends _$3{static getType(){return"autolink"}static clone(to){return new BSt(to.__url,{rel:to.__rel,target:to.__target,title:to.__title},to.__key)}static importJSON(to){const no=f$4(to.url,{rel:to.rel,target:to.target,title:to.title});return no.setFormat(to.format),no.setIndent(to.indent),no.setDirection(to.direction),no}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(to,no=!0){const io=this.getParentOrThrow().insertNewAfter(to,no);if($isElementNode(io)){const so=f$4(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return io.append(so),so}return null}};function f$4(eo,to){return $applyNodeReplacement(new h$1(eo,to))}function p$3(eo){return eo instanceof h$1}const d$3=createCommand("TOGGLE_LINK_COMMAND");function m$2(eo,to={}){const{target:no,title:io}=to,so=to.rel===void 0?"noreferrer":to.rel,ao=$getSelection();if(!$isRangeSelection(ao))return;const lo=ao.extract();if(eo===null)lo.forEach(uo=>{const ho=uo.getParent();if(c$5(ho)){const go=ho.getChildren();for(let mo=0;mo{const mo=go.getParent();if(mo!==ho&&mo!==null&&(!$isElementNode(go)||go.isInline())){if(c$5(mo))return ho=mo,mo.setURL(eo),no!==void 0&&mo.setTarget(no),so!==null&&ho.setRel(so),void(io!==void 0&&ho.setTitle(io));if(mo.is(uo)||(uo=mo,ho=g$4(eo,{rel:so,target:no,title:io}),c$5(mo)?go.getPreviousSibling()===null?mo.insertBefore(ho):mo.insertAfter(ho):go.insertBefore(ho)),c$5(go)){if(go.is(ho))return;if(ho!==null){const yo=go.getChildren();for(let So=0;So{const{theme:io,namespace:so,editor__DEPRECATED:ao,nodes:lo,onError:uo,editorState:ho,html:go}=eo,mo=createLexicalComposerContext(null,io);let yo=ao||null;if(yo===null){const So=createEditor({editable:eo.editable,html:go,namespace:so,nodes:lo,onError:_o=>uo(_o,So),theme:io});(function(_o,ko){if(ko!==null){if(ko===void 0)_o.update(()=>{const Co=$getRoot();if(Co.isEmpty()){const $o=$createParagraphNode();Co.append($o);const Ro=d$2?document.activeElement:null;($getSelection()!==null||Ro!==null&&Ro===_o.getRootElement())&&$o.select()}},u$4);else if(ko!==null)switch(typeof ko){case"string":{const Co=_o.parseEditorState(ko);_o.setEditorState(Co,u$4);break}case"object":_o.setEditorState(ko,u$4);break;case"function":_o.update(()=>{$getRoot().isEmpty()&&ko(_o)},u$4)}}})(So,ho),yo=So}return[yo,mo]},[]);return m$1(()=>{const io=eo.editable,[so]=no;so.setEditable(io===void 0||io)},[]),reactExports.createElement(LexicalComposerContext.Provider,{value:no},to)}const modProd$d=Object.freeze(Object.defineProperty({__proto__:null,LexicalComposer:f$3},Symbol.toStringTag,{value:"Module"})),mod$d=modProd$d,LexicalComposer=mod$d.LexicalComposer;function n$1(){return n$1=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{Lo&&Lo.ownerDocument&&Lo.ownerDocument.defaultView&&No.setRootElement(Lo)},[No]);return d$1(()=>(Bo(No.isEditable()),No.registerEditableListener(Lo=>{Bo(Lo)})),[No]),reactExports.createElement("div",n$1({},Oo,{"aria-activedescendant":Mo?eo:void 0,"aria-autocomplete":Mo?to:"none","aria-controls":Mo?no:void 0,"aria-describedby":io,"aria-expanded":Mo&&_o==="combobox"?!!so:void 0,"aria-label":ao,"aria-labelledby":lo,"aria-multiline":uo,"aria-owns":Mo?ho:void 0,"aria-readonly":!Mo||void 0,"aria-required":go,autoCapitalize:mo,className:yo,contentEditable:Mo,"data-testid":Ro,id:So,ref:Po,role:_o,spellCheck:ko,style:Co,tabIndex:$o}))}const modProd$c=Object.freeze(Object.defineProperty({__proto__:null,ContentEditable:l$1},Symbol.toStringTag,{value:"Module"})),mod$c=modProd$c,ContentEditable=mod$c.ContentEditable;function e(eo,to){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(no,io){return no.__proto__=io,no},e(eo,to)}var t$2={error:null},o$2=function(eo){var to,no;function io(){for(var ao,lo=arguments.length,uo=new Array(lo),ho=0;ho1){const Ro=to._nodeMap,Oo=Ro.get(ao.anchor.key),No=Ro.get(lo.anchor.key);return Oo&&No&&!eo._nodeMap.has(Oo.__key)&&$isTextNode(Oo)&&Oo.__text.length===1&&ao.anchor.offset===1?m:p$2}const ho=uo[0],go=eo._nodeMap.get(ho.__key);if(!$isTextNode(go)||!$isTextNode(ho)||go.__mode!==ho.__mode)return p$2;const mo=go.__text,yo=ho.__text;if(mo===yo)return p$2;const So=ao.anchor,_o=lo.anchor;if(So.key!==_o.key||So.type!=="text")return p$2;const ko=So.offset,Co=_o.offset,$o=yo.length-mo.length;return $o===1&&Co===ko-1?m:$o===-1&&Co===ko+1?g$3:$o===-1&&Co===ko?y$4:p$2}function k(eo,to){let no=Date.now(),io=p$2;return(so,ao,lo,uo,ho,go)=>{const mo=Date.now();if(go.has("historic"))return io=p$2,no=mo,f$2;const yo=S$2(so,ao,uo,ho,eo.isComposing()),So=(()=>{const _o=lo===null||lo.editor===eo,ko=go.has("history-push");if(!ko&&_o&&go.has("history-merge"))return l;if(so===null)return _$2;const Co=ao._selection;return uo.size>0||ho.size>0?ko===!1&&yo!==p$2&&yo===io&&mo{const So=to.current,_o=to.redoStack,ko=to.undoStack,Co=So===null?null:So.editorState;if(So!==null&&uo===Co)return;const $o=io(ho,uo,So,go,mo,yo);if($o===_$2)_o.length!==0&&(to.redoStack=[],eo.dispatchCommand(CAN_REDO_COMMAND,!1)),So!==null&&(ko.push({...So}),eo.dispatchCommand(CAN_UNDO_COMMAND,!0));else if($o===f$2)return;to.current={editor:eo,editorState:uo}},ao=mergeRegister(eo.registerCommand(UNDO_COMMAND,()=>(function(uo,ho){const go=ho.redoStack,mo=ho.undoStack;if(mo.length!==0){const yo=ho.current,So=mo.pop();yo!==null&&(go.push(yo),uo.dispatchCommand(CAN_REDO_COMMAND,!0)),mo.length===0&&uo.dispatchCommand(CAN_UNDO_COMMAND,!1),ho.current=So||null,So&&So.editor.setEditorState(So.editorState,{tag:"historic"})}}(eo,to),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(REDO_COMMAND,()=>(function(uo,ho){const go=ho.redoStack,mo=ho.undoStack;if(go.length!==0){const yo=ho.current;yo!==null&&(mo.push(yo),uo.dispatchCommand(CAN_UNDO_COMMAND,!0));const So=go.pop();go.length===0&&uo.dispatchCommand(CAN_REDO_COMMAND,!1),ho.current=So||null,So&&So.editor.setEditorState(So.editorState,{tag:"historic"})}}(eo,to),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CLEAR_EDITOR_COMMAND,()=>(C$2(to),!1),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CLEAR_HISTORY_COMMAND,()=>(C$2(to),eo.dispatchCommand(CAN_REDO_COMMAND,!1),eo.dispatchCommand(CAN_UNDO_COMMAND,!1),!0),COMMAND_PRIORITY_EDITOR),eo.registerUpdateListener(so)),lo=eo.registerUpdateListener(so);return()=>{ao(),lo()}}function M(){return{current:null,redoStack:[],undoStack:[]}}const modProd$a=Object.freeze(Object.defineProperty({__proto__:null,createEmptyHistoryState:M,registerHistory:x$5},Symbol.toStringTag,{value:"Module"})),mod$a=modProd$a,createEmptyHistoryState=mod$a.createEmptyHistoryState,registerHistory=mod$a.registerHistory;function c$4({externalHistoryState:eo}){const[to]=useLexicalComposerContext();return function(no,io,so=1e3){const ao=reactExports.useMemo(()=>io||createEmptyHistoryState(),[io]);reactExports.useEffect(()=>registerHistory(no,ao,so),[so,no,ao])}(to,eo),null}const modProd$9=Object.freeze(Object.defineProperty({__proto__:null,HistoryPlugin:c$4,createEmptyHistoryState},Symbol.toStringTag,{value:"Module"})),mod$9=modProd$9,HistoryPlugin=mod$9.HistoryPlugin;var o$1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function i$5({ignoreHistoryMergeTagChange:eo=!0,ignoreSelectionChange:to=!1,onChange:no}){const[io]=useLexicalComposerContext();return o$1(()=>{if(no)return io.registerUpdateListener(({editorState:so,dirtyElements:ao,dirtyLeaves:lo,prevEditorState:uo,tags:ho})=>{to&&ao.size===0&&lo.size===0||eo&&ho.has("history-merge")||uo.isEmpty()||no(so,io,ho)})},[io,eo,to,no]),null}const modProd$8=Object.freeze(Object.defineProperty({__proto__:null,OnChangePlugin:i$5},Symbol.toStringTag,{value:"Module"})),mod$8=modProd$8,OnChangePlugin=mod$8.OnChangePlugin;var u$3=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function c$3(eo){return{initialValueFn:()=>eo.isEditable(),subscribe:to=>eo.registerEditableListener(to)}}function a$2(){return function(eo){const[to]=useLexicalComposerContext(),no=reactExports.useMemo(()=>eo(to),[to,eo]),io=reactExports.useRef(no.initialValueFn()),[so,ao]=reactExports.useState(io.current);return u$3(()=>{const{initialValueFn:lo,subscribe:uo}=no,ho=lo();return io.current!==ho&&(io.current=ho,ao(ho)),uo(go=>{io.current=go,ao(go)})},[no,eo]),so}(c$3)}const modProd$7=Object.freeze(Object.defineProperty({__proto__:null,default:a$2},Symbol.toStringTag,{value:"Module"})),mod$7=modProd$7,t$1=mod$7.default;function s$1(eo,to){let no=eo.getFirstChild(),io=0;e:for(;no!==null;){if($isElementNode(no)){const lo=no.getFirstChild();if(lo!==null){no=lo;continue}}else if($isTextNode(no)){const lo=no.getTextContentSize();if(io+lo>to)return{node:no,offset:to-io};io+=lo}const so=no.getNextSibling();if(so!==null){no=so;continue}let ao=no.getParent();for(;ao!==null;){const lo=ao.getNextSibling();if(lo!==null){no=lo;continue e}ao=ao.getParent()}break}return null}function u$2(eo,to=!0){if(eo)return!1;let no=c$2();return to&&(no=no.trim()),no===""}function f$1(eo,to){return()=>u$2(eo,to)}function c$2(){return $getRoot().getTextContent()}function g$2(eo){if(!u$2(eo,!1))return!1;const to=$getRoot().getChildren(),no=to.length;if(no>1)return!1;for(let io=0;iog$2(eo)}function a$1(eo,to,no,io){const so=lo=>lo instanceof no,ao=lo=>{const uo=$createTextNode(lo.getTextContent());uo.setFormat(lo.getFormat()),lo.replace(uo)};return[eo.registerNodeTransform(TextNode$2,lo=>{if(!lo.isSimpleText())return;const uo=lo.getPreviousSibling();let ho,go=lo.getTextContent(),mo=lo;if($isTextNode(uo)){const yo=uo.getTextContent(),So=to(yo+go);if(so(uo)){if(So===null||(_o=>_o.getLatest().__mode)(uo)!==0)return void ao(uo);{const _o=So.end-yo.length;if(_o>0){const ko=yo+go.slice(0,_o);if(uo.select(),uo.setTextContent(ko),_o===go.length)lo.remove();else{const Co=go.slice(_o);lo.setTextContent(Co)}return}}}else if(So===null||So.start{const uo=lo.getTextContent(),ho=to(uo);if(ho===null||ho.start!==0)return void ao(lo);if(uo.length>ho.end)return void lo.splitText(ho.end);const go=lo.getPreviousSibling();$isTextNode(go)&&go.isTextEntity()&&(ao(go),ao(lo));const mo=lo.getNextSibling();$isTextNode(mo)&&mo.isTextEntity()&&(ao(mo),so(lo)&&ao(lo))})]}const modProd$6=Object.freeze(Object.defineProperty({__proto__:null,$canShowPlaceholder:g$2,$canShowPlaceholderCurry:x$4,$findTextIntersectionFromCharacters:s$1,$isRootTextContentEmpty:u$2,$isRootTextContentEmptyCurry:f$1,$rootTextContent:c$2,registerLexicalTextEntity:a$1},Symbol.toStringTag,{value:"Module"})),mod$6=modProd$6,$canShowPlaceholderCurry=mod$6.$canShowPlaceholderCurry;function o(eo){const to=window.location.origin,no=io=>{if(io.origin!==to)return;const so=eo.getRootElement();if(document.activeElement!==so)return;const ao=io.data;if(typeof ao=="string"){let lo;try{lo=JSON.parse(ao)}catch{return}if(lo&&lo.protocol==="nuanria_messaging"&&lo.type==="request"){const uo=lo.payload;if(uo&&uo.functionId==="makeChanges"){const ho=uo.args;if(ho){const[go,mo,yo,So,_o,ko]=ho;eo.update(()=>{const Co=$getSelection();if($isRangeSelection(Co)){const $o=Co.anchor;let Ro=$o.getNode(),Oo=0,No=0;if($isTextNode(Ro)&&go>=0&&mo>=0&&(Oo=go,No=go+mo,Co.setTextNodeRange(Ro,Oo,Ro,No)),Oo===No&&yo===""||(Co.insertRawText(yo),Ro=$o.getNode()),$isTextNode(Ro)){Oo=So,No=So+_o;const Mo=Ro.getTextContentSize();Oo=Oo>Mo?Mo:Oo,No=No>Mo?Mo:No,Co.setTextNodeRange(Ro,Oo,Ro,No)}io.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",no,!0),()=>{window.removeEventListener("message",no,!0)}}const modProd$5=Object.freeze(Object.defineProperty({__proto__:null,registerDragonSupport:o},Symbol.toStringTag,{value:"Module"})),mod$5=modProd$5,registerDragonSupport=mod$5.registerDragonSupport;function i$4(eo,to){const no=to.body?to.body.childNodes:[];let io=[];for(let so=0;so"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const no=document.createElement("div"),io=$getRoot().getChildren();for(let so=0;sow$1?(eo||window).getSelection():null;function v(eo){const to=$getSelection();if(to==null)throw Error("Expected valid LexicalSelection");return $isRangeSelection(to)&&to.isCollapsed()||to.getNodes().length===0?"":$generateHtmlFromNodes(eo,to)}function D$1(eo){const to=$getSelection();if(to==null)throw Error("Expected valid LexicalSelection");return $isRangeSelection(to)&&to.isCollapsed()||to.getNodes().length===0?null:JSON.stringify(T$1(eo,to))}function C$1(eo,to){const no=eo.getData("text/plain")||eo.getData("text/uri-list");no!=null&&to.insertRawText(no)}function E$1(eo,to,no){const io=eo.getData("application/x-lexical-editor");if(io)try{const lo=JSON.parse(io);if(lo.namespace===no._config.namespace&&Array.isArray(lo.nodes))return N(no,_$1(lo.nodes),to)}catch{}const so=eo.getData("text/html");if(so)try{const lo=new DOMParser().parseFromString(so,"text/html");return N(no,$generateNodesFromDOM(no,lo),to)}catch{}const ao=eo.getData("text/plain")||eo.getData("text/uri-list");if(ao!=null)if($isRangeSelection(to)){const lo=ao.split(/(\r?\n|\t)/);lo[lo.length-1]===""&&lo.pop();for(let uo=0;uo=ho){const go=io.getParent();io.remove(),go==null||go.getChildrenSize()!==0||$isRootNode(go)||go.remove(),so-=ho+lo,io=ao}else{const go=io.getKey(),mo=eo.getEditorState().read(()=>{const _o=$getNodeByKey(go);return $isTextNode(_o)&&_o.isSimpleText()?_o.getTextContent():null}),yo=ho-so,So=uo.slice(0,yo);if(mo!==null&&mo!==uo){const _o=$getPreviousSelection();let ko=io;if(io.isSimpleText())io.setTextContent(mo);else{const Co=$createTextNode(mo);io.replace(Co),ko=Co}if($isRangeSelection(_o)&&_o.isCollapsed()){const Co=_o.anchor.offset;ko.select(Co,Co)}}else if(io.isSimpleText()){const _o=to.key===go;let ko=to.offset;ko(uo instanceof Function?ao[lo]=uo(no[lo]):uo===null?delete ao[lo]:ao[lo]=uo,ao),{...no}),so=function(ao){let lo="";for(const uo in ao)uo&&(lo+=`${uo}: ${ao[uo]};`);return lo}(io);eo.setStyle(so),m$4.set(so,io)}function I(eo,to){const no=eo.getNodes(),io=no.length,so=eo.getStartEndPoints();if(so===null)return;const[ao,lo]=so,uo=io-1;let ho=no[0],go=no[uo];if(eo.isCollapsed()&&$isRangeSelection(eo))return void F(eo,to);const mo=ho.getTextContent().length,yo=lo.offset;let So=ao.offset;const _o=ao.isBefore(lo);let ko=_o?So:yo,Co=_o?yo:So;const $o=_o?ao.type:lo.type,Ro=_o?lo.type:ao.type,Oo=_o?lo.key:ao.key;if($isTextNode(ho)&&ko===mo){const No=ho.getNextSibling();$isTextNode(No)&&(So=0,ko=0,ho=No)}if(no.length===1){if($isTextNode(ho)&&ho.canHaveFormat()){if(ko=$o==="element"?0:So>yo?yo:So,Co=Ro==="element"?mo:So>yo?So:yo,ko===Co)return;if(ko===0&&Co===mo)F(ho,to),ho.select(ko,Co);else{const No=ho.splitText(ko,Co),Mo=ko===0?No[0]:No[1];F(Mo,to),Mo.select(0,Co-ko)}}}else{if($isTextNode(ho)&&koyo.append(So)),no&&(yo=no.append(yo)),void go.replace(yo)}let uo=null,ho=[];for(let go=0;go{Oo.append(No),yo.add(No.getKey()),$isElementNode(No)&&No.getChildrenKeys().forEach(Mo=>yo.add(Mo))}),O$1($o)}}else if(mo.has(Co.getKey())){if(!$isElementNode(Co))throw Error("Expected node in emptyElements to be an ElementNode");const Ro=io();Ro.setFormat(Co.getFormatType()),Ro.setIndent(Co.getIndent()),uo.push(Ro),Co.remove(!0)}}if(so!==null)for(let ko=0;ko=0;ko--){const Co=uo[ko];ho.insertAfter(Co)}else{const ko=ho.getFirstChild();if($isElementNode(ko)&&(ho=ko),ko===null)if(so)ho.append(so);else for(let Co=0;Co=0;ko--){const Co=uo[ko];ho.insertAfter(Co),So=Co}const _o=$getPreviousSelection();$isRangeSelection(_o)&&b$1(_o.anchor)&&b$1(_o.focus)?$setSelection(_o.clone()):So!==null?So.selectEnd():eo.dirty=!0}function z(eo,to){const no=$getAdjacentNode(eo.focus,to);return $isDecoratorNode(no)&&!no.isIsolated()||$isElementNode(no)&&!no.isInline()&&!no.canBeEmpty()}function A$2(eo,to,no,io){eo.modify(to?"extend":"move",no,io)}function R$1(eo){const to=eo.anchor.getNode();return($isRootNode(to)?to:to.getParentOrThrow()).getDirection()==="rtl"}function D$2(eo,to,no){const io=R$1(eo);A$2(eo,to,no?!io:io,"character")}function L$1(eo){const to=eo.anchor,no=eo.focus,io=to.getNode().getTopLevelElementOrThrow().getParentOrThrow();let so=io.getFirstDescendant(),ao=io.getLastDescendant(),lo="element",uo="element",ho=0;$isTextNode(so)?lo="text":$isElementNode(so)||so===null||(so=so.getParentOrThrow()),$isTextNode(ao)?(uo="text",ho=ao.getTextContentSize()):$isElementNode(ao)||ao===null||(ao=ao.getParentOrThrow()),so&&ao&&(to.set(so.getKey(),0,lo),no.set(ao.getKey(),ho,uo))}function H(eo,to,no){const io=N$2(eo.getStyle());return io!==null&&io[to]||no}function M$2(eo,to,no=""){let io=null;const so=eo.getNodes(),ao=eo.anchor,lo=eo.focus,uo=eo.isBackward(),ho=uo?lo.offset:ao.offset,go=uo?lo.getNode():ao.getNode();if(eo.isCollapsed()&&eo.style!==""){const mo=N$2(eo.style);if(mo!==null&&to in mo)return mo[to]}for(let mo=0;mo{eo.forEach(to=>to())}}function m$3(eo){return`${eo}px`}const E$2={attributes:!0,characterData:!0,childList:!0,subtree:!0};function x$6(eo,to,no){let io=null,so=null,ao=null,lo=[];const uo=document.createElement("div");function ho(){if(io===null)throw Error("Unexpected null rootDOMNode");if(so===null)throw Error("Unexpected null parentDOMNode");const{left:yo,top:So}=io.getBoundingClientRect(),_o=so,ko=createRectsFromDOMRange(eo,to);uo.isConnected||_o.append(uo);let Co=!1;for(let $o=0;$oko.length;)lo.pop();Co&&no(lo)}function go(){so=null,io=null,ao!==null&&ao.disconnect(),ao=null,uo.remove();for(const yo of lo)yo.remove();lo=[]}const mo=eo.registerRootListener(function yo(){const So=eo.getRootElement();if(So===null)return go();const _o=So.parentElement;if(!(_o instanceof HTMLElement))return go();go(),io=So,so=_o,ao=new MutationObserver(ko=>{const Co=eo.getRootElement(),$o=Co&&Co.parentElement;if(Co!==io||$o!==so)return yo();for(const Ro of ko)if(!uo.contains(Ro.target))return ho()}),ao.observe(_o,E$2),ho()});return()=>{mo(),go()}}function y$5(eo,to){let no=null,io=null,so=null,ao=null,lo=()=>{};function uo(ho){ho.read(()=>{const go=$getSelection();if(!$isRangeSelection(go))return no=null,io=null,so=null,ao=null,lo(),void(lo=()=>{});const{anchor:mo,focus:yo}=go,So=mo.getNode(),_o=So.getKey(),ko=mo.offset,Co=yo.getNode(),$o=Co.getKey(),Ro=yo.offset,Oo=eo.getElementByKey(_o),No=eo.getElementByKey($o),Mo=no===null||Oo===null||ko!==io||_o!==no.getKey()||So!==no&&(!(no instanceof TextNode$2)||So.updateDOM(no,Oo,eo._config)),Bo=so===null||No===null||Ro!==ao||$o!==so.getKey()||Co!==so&&(!(so instanceof TextNode$2)||Co.updateDOM(so,No,eo._config));if(Mo||Bo){const Fo=eo.getElementByKey(mo.getNode().getKey()),Lo=eo.getElementByKey(yo.getNode().getKey());if(Fo!==null&&Lo!==null&&Fo.tagName==="SPAN"&&Lo.tagName==="SPAN"){const Go=document.createRange();let Do,Uo,Ho,Yo;yo.isBefore(mo)?(Do=Lo,Uo=yo.offset,Ho=Fo,Yo=mo.offset):(Do=Fo,Uo=mo.offset,Ho=Lo,Yo=yo.offset);const qo=Do.firstChild;if(qo===null)throw Error("Expected text node to be first child of span");const Jo=Ho.firstChild;if(Jo===null)throw Error("Expected text node to be first child of span");Go.setStart(qo,Uo),Go.setEnd(Jo,Yo),lo(),lo=x$6(eo,Go,ps=>{for(const Qo of ps){const hs=Qo.style;hs.background!=="Highlight"&&(hs.background="Highlight"),hs.color!=="HighlightText"&&(hs.color="HighlightText"),hs.zIndex!=="-1"&&(hs.zIndex="-1"),hs.pointerEvents!=="none"&&(hs.pointerEvents="none"),hs.marginTop!==m$3(-1.5)&&(hs.marginTop=m$3(-1.5)),hs.paddingTop!==m$3(4)&&(hs.paddingTop=m$3(4)),hs.paddingBottom!==m$3(0)&&(hs.paddingBottom=m$3(0))}to!==void 0&&to(ps)})}}no=So,io=ko,so=Co,ao=Ro})}return uo(eo.getEditorState()),h$2(eo.registerUpdateListener(({editorState:ho})=>uo(ho)),lo,()=>{lo()})}function v$1(eo,...to){const no=p$4(...to);no.length>0&&eo.classList.add(...no)}function N$1(eo,...to){const no=p$4(...to);no.length>0&&eo.classList.remove(...no)}function w$2(eo,to){for(const no of to)if(eo.type.startsWith(no))return!0;return!1}function L(eo,to){const no=eo[Symbol.iterator]();return new Promise((io,so)=>{const ao=[],lo=()=>{const{done:uo,value:ho}=no.next();if(uo)return io(ao);const go=new FileReader;go.addEventListener("error",so),go.addEventListener("load",()=>{const mo=go.result;typeof mo=="string"&&ao.push({file:ho,result:mo}),lo()}),w$2(ho,to)?go.readAsDataURL(ho):lo()};lo()})}function T$2(eo,to){const no=[],io=(eo||$getRoot()).getLatest(),so=to||($isElementNode(io)?io.getLastDescendant():io);let ao=io,lo=function(uo){let ho=uo,go=0;for(;(ho=ho.getParent())!==null;)go++;return go}(ao);for(;ao!==null&&!ao.is(so);)if(no.push({depth:lo,node:ao}),$isElementNode(ao)&&ao.getChildrenSize()>0)ao=ao.getFirstChild(),lo++;else{let uo=null;for(;uo===null&&ao!==null;)uo=ao.getNextSibling(),uo===null?(ao=ao.getParent(),lo--):ao=uo}return ao!==null&&ao.is(so)&&no.push({depth:lo,node:ao}),no}function b(eo,to){let no=eo;for(;no!=null;){if(no instanceof to)return no;no=no.getParent()}return null}function S$3(eo){const to=_$4(eo,no=>$isElementNode(no)&&!no.isInline());return $isElementNode(to)||g$5(4,eo.__key),to}const _$4=(eo,to)=>{let no=eo;for(;no!==$getRoot()&&no!=null;){if(to(no))return no;no=no.getParent()}return null};function B(eo,to,no,io){const so=ao=>ao instanceof to;return eo.registerNodeTransform(to,ao=>{const lo=(uo=>{const ho=uo.getChildren();for(let yo=0;yo0&&(lo+=1,io.splitText(so))):(ao=io,lo=so);const[,uo]=$splitNode(ao,lo);uo.insertBefore(eo),uo.selectStart()}}else{if(to!=null){const io=to.getNodes();io[io.length-1].getTopLevelElementOrThrow().insertAfter(eo)}else $getRoot().append(eo);const no=$createParagraphNode();eo.insertAfter(no),no.select()}return eo.getLatest()}function A$1(eo,to){const no=to();return eo.replace(no),no.append(eo),no}function C$3(eo,to){return eo!==null&&Object.getPrototypeOf(eo).constructor.name===to.name}function K$2(eo,to){const no=[];for(let io=0;io({conversion:a$3,priority:1})}}static importJSON(to){const no=g$4(to.url,{rel:to.rel,target:to.target,title:to.title});return no.setFormat(to.format),no.setIndent(to.indent),no.setDirection(to.direction),no}sanitizeUrl(to){try{const no=new URL(to);if(!o$4.has(no.protocol))return"about:blank"}catch{return to}return to}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(to){this.getWritable().__url=to}getTarget(){return this.getLatest().__target}setTarget(to){this.getWritable().__target=to}getRel(){return this.getLatest().__rel}setRel(to){this.getWritable().__rel=to}getTitle(){return this.getLatest().__title}setTitle(to){this.getWritable().__title=to}insertNewAfter(to,no=!0){const io=g$4(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(io,no),io}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(to,no,io){if(!$isRangeSelection(no))return!1;const so=no.anchor.getNode(),ao=no.focus.getNode();return this.isParentOf(so)&&this.isParentOf(ao)&&no.getTextContent().length>0}};function a$3(eo){let to=null;if(isHTMLAnchorElement(eo)){const no=eo.textContent;(no!==null&&no!==""||eo.children.length>0)&&(to=g$4(eo.getAttribute("href")||"",{rel:eo.getAttribute("rel"),target:eo.getAttribute("target"),title:eo.getAttribute("title")}))}return{node:to}}function g$4(eo,to){return $applyNodeReplacement(new _$3(eo,to))}function c$5(eo){return eo instanceof _$3}let h$1=class BSt extends _$3{static getType(){return"autolink"}static clone(to){return new BSt(to.__url,{rel:to.__rel,target:to.__target,title:to.__title},to.__key)}static importJSON(to){const no=f$4(to.url,{rel:to.rel,target:to.target,title:to.title});return no.setFormat(to.format),no.setIndent(to.indent),no.setDirection(to.direction),no}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(to,no=!0){const io=this.getParentOrThrow().insertNewAfter(to,no);if($isElementNode(io)){const so=f$4(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return io.append(so),so}return null}};function f$4(eo,to){return $applyNodeReplacement(new h$1(eo,to))}function p$3(eo){return eo instanceof h$1}const d$3=createCommand("TOGGLE_LINK_COMMAND");function m$2(eo,to={}){const{target:no,title:io}=to,so=to.rel===void 0?"noreferrer":to.rel,ao=$getSelection();if(!$isRangeSelection(ao))return;const lo=ao.extract();if(eo===null)lo.forEach(uo=>{const ho=uo.getParent();if(c$5(ho)){const go=ho.getChildren();for(let mo=0;mo{const mo=go.getParent();if(mo!==ho&&mo!==null&&(!$isElementNode(go)||go.isInline())){if(c$5(mo))return ho=mo,mo.setURL(eo),no!==void 0&&mo.setTarget(no),so!==null&&ho.setRel(so),void(io!==void 0&&ho.setTitle(io));if(mo.is(uo)||(uo=mo,ho=g$4(eo,{rel:so,target:no,title:io}),c$5(mo)?go.getPreviousSibling()===null?mo.insertBefore(ho):mo.insertAfter(ho):go.insertBefore(ho)),c$5(go)){if(go.is(ho))return;if(ho!==null){const yo=go.getChildren();for(let So=0;So{const{theme:io,namespace:so,editor__DEPRECATED:ao,nodes:lo,onError:uo,editorState:ho,html:go}=eo,mo=createLexicalComposerContext(null,io);let yo=ao||null;if(yo===null){const So=createEditor({editable:eo.editable,html:go,namespace:so,nodes:lo,onError:_o=>uo(_o,So),theme:io});(function(_o,ko){if(ko!==null){if(ko===void 0)_o.update(()=>{const Co=$getRoot();if(Co.isEmpty()){const $o=$createParagraphNode();Co.append($o);const Ro=d$2?document.activeElement:null;($getSelection()!==null||Ro!==null&&Ro===_o.getRootElement())&&$o.select()}},u$4);else if(ko!==null)switch(typeof ko){case"string":{const Co=_o.parseEditorState(ko);_o.setEditorState(Co,u$4);break}case"object":_o.setEditorState(ko,u$4);break;case"function":_o.update(()=>{$getRoot().isEmpty()&&ko(_o)},u$4)}}})(So,ho),yo=So}return[yo,mo]},[]);return m$1(()=>{const io=eo.editable,[so]=no;so.setEditable(io===void 0||io)},[]),reactExports.createElement(LexicalComposerContext.Provider,{value:no},to)}const modProd$d=Object.freeze(Object.defineProperty({__proto__:null,LexicalComposer:f$3},Symbol.toStringTag,{value:"Module"})),mod$d=modProd$d,LexicalComposer=mod$d.LexicalComposer;function n$1(){return n$1=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{Lo&&Lo.ownerDocument&&Lo.ownerDocument.defaultView&&No.setRootElement(Lo)},[No]);return d$1(()=>(Bo(No.isEditable()),No.registerEditableListener(Lo=>{Bo(Lo)})),[No]),reactExports.createElement("div",n$1({},Oo,{"aria-activedescendant":Mo?eo:void 0,"aria-autocomplete":Mo?to:"none","aria-controls":Mo?no:void 0,"aria-describedby":io,"aria-expanded":Mo&&_o==="combobox"?!!so:void 0,"aria-label":ao,"aria-labelledby":lo,"aria-multiline":uo,"aria-owns":Mo?ho:void 0,"aria-readonly":!Mo||void 0,"aria-required":go,autoCapitalize:mo,className:yo,contentEditable:Mo,"data-testid":Ro,id:So,ref:Fo,role:_o,spellCheck:ko,style:Co,tabIndex:$o}))}const modProd$c=Object.freeze(Object.defineProperty({__proto__:null,ContentEditable:l$1},Symbol.toStringTag,{value:"Module"})),mod$c=modProd$c,ContentEditable=mod$c.ContentEditable;function e(eo,to){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(no,io){return no.__proto__=io,no},e(eo,to)}var t$2={error:null},o$2=function(eo){var to,no;function io(){for(var ao,lo=arguments.length,uo=new Array(lo),ho=0;ho1){const Ro=to._nodeMap,Oo=Ro.get(ao.anchor.key),No=Ro.get(lo.anchor.key);return Oo&&No&&!eo._nodeMap.has(Oo.__key)&&$isTextNode(Oo)&&Oo.__text.length===1&&ao.anchor.offset===1?m:p$2}const ho=uo[0],go=eo._nodeMap.get(ho.__key);if(!$isTextNode(go)||!$isTextNode(ho)||go.__mode!==ho.__mode)return p$2;const mo=go.__text,yo=ho.__text;if(mo===yo)return p$2;const So=ao.anchor,_o=lo.anchor;if(So.key!==_o.key||So.type!=="text")return p$2;const ko=So.offset,Co=_o.offset,$o=yo.length-mo.length;return $o===1&&Co===ko-1?m:$o===-1&&Co===ko+1?g$3:$o===-1&&Co===ko?y$4:p$2}function k(eo,to){let no=Date.now(),io=p$2;return(so,ao,lo,uo,ho,go)=>{const mo=Date.now();if(go.has("historic"))return io=p$2,no=mo,f$2;const yo=S$2(so,ao,uo,ho,eo.isComposing()),So=(()=>{const _o=lo===null||lo.editor===eo,ko=go.has("history-push");if(!ko&&_o&&go.has("history-merge"))return l;if(so===null)return _$2;const Co=ao._selection;return uo.size>0||ho.size>0?ko===!1&&yo!==p$2&&yo===io&&mo{const So=to.current,_o=to.redoStack,ko=to.undoStack,Co=So===null?null:So.editorState;if(So!==null&&uo===Co)return;const $o=io(ho,uo,So,go,mo,yo);if($o===_$2)_o.length!==0&&(to.redoStack=[],eo.dispatchCommand(CAN_REDO_COMMAND,!1)),So!==null&&(ko.push({...So}),eo.dispatchCommand(CAN_UNDO_COMMAND,!0));else if($o===f$2)return;to.current={editor:eo,editorState:uo}},ao=mergeRegister(eo.registerCommand(UNDO_COMMAND,()=>(function(uo,ho){const go=ho.redoStack,mo=ho.undoStack;if(mo.length!==0){const yo=ho.current,So=mo.pop();yo!==null&&(go.push(yo),uo.dispatchCommand(CAN_REDO_COMMAND,!0)),mo.length===0&&uo.dispatchCommand(CAN_UNDO_COMMAND,!1),ho.current=So||null,So&&So.editor.setEditorState(So.editorState,{tag:"historic"})}}(eo,to),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(REDO_COMMAND,()=>(function(uo,ho){const go=ho.redoStack,mo=ho.undoStack;if(go.length!==0){const yo=ho.current;yo!==null&&(mo.push(yo),uo.dispatchCommand(CAN_UNDO_COMMAND,!0));const So=go.pop();go.length===0&&uo.dispatchCommand(CAN_REDO_COMMAND,!1),ho.current=So||null,So&&So.editor.setEditorState(So.editorState,{tag:"historic"})}}(eo,to),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CLEAR_EDITOR_COMMAND,()=>(C$2(to),!1),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CLEAR_HISTORY_COMMAND,()=>(C$2(to),eo.dispatchCommand(CAN_REDO_COMMAND,!1),eo.dispatchCommand(CAN_UNDO_COMMAND,!1),!0),COMMAND_PRIORITY_EDITOR),eo.registerUpdateListener(so)),lo=eo.registerUpdateListener(so);return()=>{ao(),lo()}}function M(){return{current:null,redoStack:[],undoStack:[]}}const modProd$a=Object.freeze(Object.defineProperty({__proto__:null,createEmptyHistoryState:M,registerHistory:x$5},Symbol.toStringTag,{value:"Module"})),mod$a=modProd$a,createEmptyHistoryState=mod$a.createEmptyHistoryState,registerHistory=mod$a.registerHistory;function c$4({externalHistoryState:eo}){const[to]=useLexicalComposerContext();return function(no,io,so=1e3){const ao=reactExports.useMemo(()=>io||createEmptyHistoryState(),[io]);reactExports.useEffect(()=>registerHistory(no,ao,so),[so,no,ao])}(to,eo),null}const modProd$9=Object.freeze(Object.defineProperty({__proto__:null,HistoryPlugin:c$4,createEmptyHistoryState},Symbol.toStringTag,{value:"Module"})),mod$9=modProd$9,HistoryPlugin=mod$9.HistoryPlugin;var o$1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function i$5({ignoreHistoryMergeTagChange:eo=!0,ignoreSelectionChange:to=!1,onChange:no}){const[io]=useLexicalComposerContext();return o$1(()=>{if(no)return io.registerUpdateListener(({editorState:so,dirtyElements:ao,dirtyLeaves:lo,prevEditorState:uo,tags:ho})=>{to&&ao.size===0&&lo.size===0||eo&&ho.has("history-merge")||uo.isEmpty()||no(so,io,ho)})},[io,eo,to,no]),null}const modProd$8=Object.freeze(Object.defineProperty({__proto__:null,OnChangePlugin:i$5},Symbol.toStringTag,{value:"Module"})),mod$8=modProd$8,OnChangePlugin=mod$8.OnChangePlugin;var u$3=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function c$3(eo){return{initialValueFn:()=>eo.isEditable(),subscribe:to=>eo.registerEditableListener(to)}}function a$2(){return function(eo){const[to]=useLexicalComposerContext(),no=reactExports.useMemo(()=>eo(to),[to,eo]),io=reactExports.useRef(no.initialValueFn()),[so,ao]=reactExports.useState(io.current);return u$3(()=>{const{initialValueFn:lo,subscribe:uo}=no,ho=lo();return io.current!==ho&&(io.current=ho,ao(ho)),uo(go=>{io.current=go,ao(go)})},[no,eo]),so}(c$3)}const modProd$7=Object.freeze(Object.defineProperty({__proto__:null,default:a$2},Symbol.toStringTag,{value:"Module"})),mod$7=modProd$7,t$1=mod$7.default;function s$1(eo,to){let no=eo.getFirstChild(),io=0;e:for(;no!==null;){if($isElementNode(no)){const lo=no.getFirstChild();if(lo!==null){no=lo;continue}}else if($isTextNode(no)){const lo=no.getTextContentSize();if(io+lo>to)return{node:no,offset:to-io};io+=lo}const so=no.getNextSibling();if(so!==null){no=so;continue}let ao=no.getParent();for(;ao!==null;){const lo=ao.getNextSibling();if(lo!==null){no=lo;continue e}ao=ao.getParent()}break}return null}function u$2(eo,to=!0){if(eo)return!1;let no=c$2();return to&&(no=no.trim()),no===""}function f$1(eo,to){return()=>u$2(eo,to)}function c$2(){return $getRoot().getTextContent()}function g$2(eo){if(!u$2(eo,!1))return!1;const to=$getRoot().getChildren(),no=to.length;if(no>1)return!1;for(let io=0;iog$2(eo)}function a$1(eo,to,no,io){const so=lo=>lo instanceof no,ao=lo=>{const uo=$createTextNode(lo.getTextContent());uo.setFormat(lo.getFormat()),lo.replace(uo)};return[eo.registerNodeTransform(TextNode$2,lo=>{if(!lo.isSimpleText())return;const uo=lo.getPreviousSibling();let ho,go=lo.getTextContent(),mo=lo;if($isTextNode(uo)){const yo=uo.getTextContent(),So=to(yo+go);if(so(uo)){if(So===null||(_o=>_o.getLatest().__mode)(uo)!==0)return void ao(uo);{const _o=So.end-yo.length;if(_o>0){const ko=yo+go.slice(0,_o);if(uo.select(),uo.setTextContent(ko),_o===go.length)lo.remove();else{const Co=go.slice(_o);lo.setTextContent(Co)}return}}}else if(So===null||So.start{const uo=lo.getTextContent(),ho=to(uo);if(ho===null||ho.start!==0)return void ao(lo);if(uo.length>ho.end)return void lo.splitText(ho.end);const go=lo.getPreviousSibling();$isTextNode(go)&&go.isTextEntity()&&(ao(go),ao(lo));const mo=lo.getNextSibling();$isTextNode(mo)&&mo.isTextEntity()&&(ao(mo),so(lo)&&ao(lo))})]}const modProd$6=Object.freeze(Object.defineProperty({__proto__:null,$canShowPlaceholder:g$2,$canShowPlaceholderCurry:x$4,$findTextIntersectionFromCharacters:s$1,$isRootTextContentEmpty:u$2,$isRootTextContentEmptyCurry:f$1,$rootTextContent:c$2,registerLexicalTextEntity:a$1},Symbol.toStringTag,{value:"Module"})),mod$6=modProd$6,$canShowPlaceholderCurry=mod$6.$canShowPlaceholderCurry;function o(eo){const to=window.location.origin,no=io=>{if(io.origin!==to)return;const so=eo.getRootElement();if(document.activeElement!==so)return;const ao=io.data;if(typeof ao=="string"){let lo;try{lo=JSON.parse(ao)}catch{return}if(lo&&lo.protocol==="nuanria_messaging"&&lo.type==="request"){const uo=lo.payload;if(uo&&uo.functionId==="makeChanges"){const ho=uo.args;if(ho){const[go,mo,yo,So,_o,ko]=ho;eo.update(()=>{const Co=$getSelection();if($isRangeSelection(Co)){const $o=Co.anchor;let Ro=$o.getNode(),Oo=0,No=0;if($isTextNode(Ro)&&go>=0&&mo>=0&&(Oo=go,No=go+mo,Co.setTextNodeRange(Ro,Oo,Ro,No)),Oo===No&&yo===""||(Co.insertRawText(yo),Ro=$o.getNode()),$isTextNode(Ro)){Oo=So,No=So+_o;const Mo=Ro.getTextContentSize();Oo=Oo>Mo?Mo:Oo,No=No>Mo?Mo:No,Co.setTextNodeRange(Ro,Oo,Ro,No)}io.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",no,!0),()=>{window.removeEventListener("message",no,!0)}}const modProd$5=Object.freeze(Object.defineProperty({__proto__:null,registerDragonSupport:o},Symbol.toStringTag,{value:"Module"})),mod$5=modProd$5,registerDragonSupport=mod$5.registerDragonSupport;function i$4(eo,to){const no=to.body?to.body.childNodes:[];let io=[];for(let so=0;so"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const no=document.createElement("div"),io=$getRoot().getChildren();for(let so=0;sow$1?(eo||window).getSelection():null;function v(eo){const to=$getSelection();if(to==null)throw Error("Expected valid LexicalSelection");return $isRangeSelection(to)&&to.isCollapsed()||to.getNodes().length===0?"":$generateHtmlFromNodes(eo,to)}function D$1(eo){const to=$getSelection();if(to==null)throw Error("Expected valid LexicalSelection");return $isRangeSelection(to)&&to.isCollapsed()||to.getNodes().length===0?null:JSON.stringify(T$1(eo,to))}function C$1(eo,to){const no=eo.getData("text/plain")||eo.getData("text/uri-list");no!=null&&to.insertRawText(no)}function E$1(eo,to,no){const io=eo.getData("application/x-lexical-editor");if(io)try{const lo=JSON.parse(io);if(lo.namespace===no._config.namespace&&Array.isArray(lo.nodes))return N(no,_$1(lo.nodes),to)}catch{}const so=eo.getData("text/html");if(so)try{const lo=new DOMParser().parseFromString(so,"text/html");return N(no,$generateNodesFromDOM(no,lo),to)}catch{}const ao=eo.getData("text/plain")||eo.getData("text/uri-list");if(ao!=null)if($isRangeSelection(to)){const lo=ao.split(/(\r?\n|\t)/);lo[lo.length-1]===""&&lo.pop();for(let uo=0;uo0?ho.text=go:so=!1}for(let go=0;go{eo.update(()=>{uo(P(eo,to))})});const no=eo.getRootElement(),io=eo._window==null?window.document:eo._window.document,so=y$3(eo._window);if(no===null||so===null)return!1;const ao=io.createElement("span");ao.style.cssText="position: fixed; top: -1000px;",ao.append(io.createTextNode("#")),no.append(ao);const lo=new Range;return lo.setStart(ao,0),lo.setEnd(ao,1),so.removeAllRanges(),so.addRange(lo),new Promise((uo,ho)=>{const go=eo.registerCommand(COPY_COMMAND,mo=>(objectKlassEquals(mo,ClipboardEvent)&&(go(),A!==null&&(window.clearTimeout(A),A=null),uo(P(eo,mo))),!0),COMMAND_PRIORITY_CRITICAL);A=window.setTimeout(()=>{go(),A=null,uo(!1)},50),io.execCommand("copy"),ao.remove()})}function P(eo,to){const no=y$3(eo._window);if(!no)return!1;const io=no.anchorNode,so=no.focusNode;if(io!==null&&so!==null&&!isSelectionWithinEditor(eo,io,so))return!1;to.preventDefault();const ao=to.clipboardData,lo=$getSelection();if(ao===null||lo===null)return!1;const uo=v(eo),ho=D$1(eo);let go="";return lo!==null&&(go=lo.getTextContent()),uo!==null&&ao.setData("text/html",uo),ho!==null&&ao.setData("application/x-lexical-editor",ho),ao.setData("text/plain",go),!0}const modProd$3=Object.freeze(Object.defineProperty({__proto__:null,$generateJSONFromSelectedNodes:T$1,$generateNodesFromSerializedNodes:_$1,$getHtmlContent:v,$getLexicalContent:D$1,$insertDataTransferForPlainText:C$1,$insertDataTransferForRichText:E$1,$insertGeneratedNodes:N,copyToClipboard:R},Symbol.toStringTag,{value:"Module"})),mod$3=modProd$3,$insertDataTransferForRichText=mod$3.$insertDataTransferForRichText,copyToClipboard=mod$3.copyToClipboard;function st(eo,to){if(document.caretRangeFromPoint!==void 0){const no=document.caretRangeFromPoint(eo,to);return no===null?null:{node:no.startContainer,offset:no.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const no=document.caretPositionFromPoint(eo,to);return no===null?null:{node:no.offsetNode,offset:no.offset}}return null}const at=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,ct=at&&"documentMode"in document?document.documentMode:null,ut=!(!at||!("InputEvent"in window)||ct)&&"getTargetRanges"in new window.InputEvent("input"),lt=at&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),dt=at&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,mt=at&&/^(?=.*Chrome).*/i.test(navigator.userAgent),ft=at&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!mt,gt=createCommand("DRAG_DROP_PASTE_FILE");class pt extends ElementNode{static getType(){return"quote"}static clone(to){return new pt(to.__key)}constructor(to){super(to)}createDOM(to){const no=document.createElement("blockquote");return addClassNamesToElement(no,to.theme.quote),no}updateDOM(to,no){return!1}static importDOM(){return{blockquote:to=>({conversion:xt,priority:0})}}exportDOM(to){const{element:no}=super.exportDOM(to);if(no&&isHTMLElement$1(no)){this.isEmpty()&&no.append(document.createElement("br"));const io=this.getFormatType();no.style.textAlign=io;const so=this.getDirection();so&&(no.dir=so)}return{element:no}}static importJSON(to){const no=ht();return no.setFormat(to.format),no.setIndent(to.indent),no.setDirection(to.direction),no}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(to,no){const io=$createParagraphNode(),so=this.getDirection();return io.setDirection(so),this.insertAfter(io,no),io}collapseAtStart(){const to=$createParagraphNode();return this.getChildren().forEach(no=>to.append(no)),this.replace(to),!0}}function ht(){return $applyNodeReplacement(new pt)}function vt(eo){return eo instanceof pt}class Ct extends ElementNode{static getType(){return"heading"}static clone(to){return new Ct(to.__tag,to.__key)}constructor(to,no){super(no),this.__tag=to}getTag(){return this.__tag}createDOM(to){const no=this.__tag,io=document.createElement(no),so=to.theme.heading;if(so!==void 0){const ao=so[no];addClassNamesToElement(io,ao)}return io}updateDOM(to,no){return!1}static importDOM(){return{h1:to=>({conversion:Dt,priority:0}),h2:to=>({conversion:Dt,priority:0}),h3:to=>({conversion:Dt,priority:0}),h4:to=>({conversion:Dt,priority:0}),h5:to=>({conversion:Dt,priority:0}),h6:to=>({conversion:Dt,priority:0}),p:to=>{const no=to.firstChild;return no!==null&&yt(no)?{conversion:()=>({node:null}),priority:3}:null},span:to=>yt(to)?{conversion:no=>({node:wt("h1")}),priority:3}:null}}exportDOM(to){const{element:no}=super.exportDOM(to);if(no&&isHTMLElement$1(no)){this.isEmpty()&&no.append(document.createElement("br"));const io=this.getFormatType();no.style.textAlign=io;const so=this.getDirection();so&&(no.dir=so)}return{element:no}}static importJSON(to){const no=wt(to.tag);return no.setFormat(to.format),no.setIndent(to.indent),no.setDirection(to.direction),no}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(to,no=!0){const io=to?to.anchor.offset:0,so=io!==this.getTextContentSize()&&to?wt(this.getTag()):$createParagraphNode(),ao=this.getDirection();if(so.setDirection(ao),this.insertAfter(so,no),io===0&&!this.isEmpty()&&to){const lo=$createParagraphNode();lo.select(),this.replace(lo,!0)}return so}collapseAtStart(){const to=this.isEmpty()?$createParagraphNode():wt(this.getTag());return this.getChildren().forEach(no=>to.append(no)),this.replace(to),!0}extractWithChild(){return!0}}function yt(eo){return eo.nodeName.toLowerCase()==="span"&&eo.style.fontSize==="26pt"}function Dt(eo){const to=eo.nodeName.toLowerCase();let no=null;return to!=="h1"&&to!=="h2"&&to!=="h3"&&to!=="h4"&&to!=="h5"&&to!=="h6"||(no=wt(to),eo.style!==null&&no.setFormat(eo.style.textAlign)),{node:no}}function xt(eo){const to=ht();return eo.style!==null&&to.setFormat(eo.style.textAlign),{node:to}}function wt(eo){return $applyNodeReplacement(new Ct(eo))}function Et(eo){return eo instanceof Ct}function Nt(eo){let to=null;if(objectKlassEquals(eo,DragEvent)?to=eo.dataTransfer:objectKlassEquals(eo,ClipboardEvent)&&(to=eo.clipboardData),to===null)return[!1,[],!1];const no=to.types,io=no.includes("Files"),so=no.includes("text/html")||no.includes("text/plain");return[io,Array.from(to.files),so]}function At(eo){const to=$getSelection();if(!$isRangeSelection(to))return!1;const no=new Set,io=to.getNodes();for(let so=0;so0}function Pt(eo){const to=$getNearestNodeFromDOMNode(eo);return $isDecoratorNode(to)}function Ot(eo){return mergeRegister(eo.registerCommand(CLICK_COMMAND,to=>{const no=$getSelection();return!!$isNodeSelection(no)&&(no.clear(),!0)},0),eo.registerCommand(DELETE_CHARACTER_COMMAND,to=>{const no=$getSelection();return!!$isRangeSelection(no)&&(no.deleteCharacter(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DELETE_WORD_COMMAND,to=>{const no=$getSelection();return!!$isRangeSelection(no)&&(no.deleteWord(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DELETE_LINE_COMMAND,to=>{const no=$getSelection();return!!$isRangeSelection(no)&&(no.deleteLine(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(CONTROLLED_TEXT_INSERTION_COMMAND,to=>{const no=$getSelection();if(typeof to=="string")no!==null&&no.insertText(to);else{if(no===null)return!1;const io=to.dataTransfer;if(io!=null)$insertDataTransferForRichText(io,no,eo);else if($isRangeSelection(no)){const so=to.data;return so&&no.insertText(so),!0}}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(REMOVE_TEXT_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(to.removeText(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(FORMAT_TEXT_COMMAND,to=>{const no=$getSelection();return!!$isRangeSelection(no)&&(no.formatText(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(FORMAT_ELEMENT_COMMAND,to=>{const no=$getSelection();if(!$isRangeSelection(no)&&!$isNodeSelection(no))return!1;const io=no.getNodes();for(const so of io){const ao=$findMatchingParent(so,lo=>$isElementNode(lo)&&!lo.isInline());ao!==null&&ao.setFormat(to)}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_LINE_BREAK_COMMAND,to=>{const no=$getSelection();return!!$isRangeSelection(no)&&(no.insertLineBreak(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_PARAGRAPH_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(to.insertParagraph(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_TAB_COMMAND,()=>($insertNodes([$createTabNode()]),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(INDENT_CONTENT_COMMAND,()=>At(to=>{const no=to.getIndent();to.setIndent(no+1)}),COMMAND_PRIORITY_EDITOR),eo.registerCommand(OUTDENT_CONTENT_COMMAND,()=>At(to=>{const no=to.getIndent();no>0&&to.setIndent(no-1)}),COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_UP_COMMAND,to=>{const no=$getSelection();if($isNodeSelection(no)&&!Pt(to.target)){const io=no.getNodes();if(io.length>0)return io[0].selectPrevious(),!0}else if($isRangeSelection(no)){const io=$getAdjacentNode(no.focus,!0);if(!to.shiftKey&&$isDecoratorNode(io)&&!io.isIsolated()&&!io.isInline())return io.selectPrevious(),to.preventDefault(),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_DOWN_COMMAND,to=>{const no=$getSelection();if($isNodeSelection(no)){const io=no.getNodes();if(io.length>0)return io[0].selectNext(0,0),!0}else if($isRangeSelection(no)){if(function(so){const ao=so.focus;return ao.key==="root"&&ao.offset===$getRoot().getChildrenSize()}(no))return to.preventDefault(),!0;const io=$getAdjacentNode(no.focus,!1);if(!to.shiftKey&&$isDecoratorNode(io)&&!io.isIsolated()&&!io.isInline())return io.selectNext(),to.preventDefault(),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_LEFT_COMMAND,to=>{const no=$getSelection();if($isNodeSelection(no)){const io=no.getNodes();if(io.length>0)return to.preventDefault(),io[0].selectPrevious(),!0}if(!$isRangeSelection(no))return!1;if($shouldOverrideDefaultCharacterSelection(no,!0)){const io=to.shiftKey;return to.preventDefault(),$moveCharacter(no,io,!0),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_RIGHT_COMMAND,to=>{const no=$getSelection();if($isNodeSelection(no)&&!Pt(to.target)){const so=no.getNodes();if(so.length>0)return to.preventDefault(),so[0].selectNext(0,0),!0}if(!$isRangeSelection(no))return!1;const io=to.shiftKey;return!!$shouldOverrideDefaultCharacterSelection(no,!1)&&(to.preventDefault(),$moveCharacter(no,io,!1),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_BACKSPACE_COMMAND,to=>{if(Pt(to.target))return!1;const no=$getSelection();if(!$isRangeSelection(no))return!1;to.preventDefault();const{anchor:io}=no,so=io.getNode();return no.isCollapsed()&&io.offset===0&&!$isRootNode(so)&&$getNearestBlockElementAncestorOrThrow(so).getIndent()>0?eo.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0):eo.dispatchCommand(DELETE_CHARACTER_COMMAND,!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_DELETE_COMMAND,to=>{if(Pt(to.target))return!1;const no=$getSelection();return!!$isRangeSelection(no)&&(to.preventDefault(),eo.dispatchCommand(DELETE_CHARACTER_COMMAND,!1))},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ENTER_COMMAND,to=>{const no=$getSelection();if(!$isRangeSelection(no))return!1;if(to!==null){if((dt||lt||ft)&&ut)return!1;if(to.preventDefault(),to.shiftKey)return eo.dispatchCommand(INSERT_LINE_BREAK_COMMAND,!1)}return eo.dispatchCommand(INSERT_PARAGRAPH_COMMAND,void 0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ESCAPE_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(eo.blur(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DROP_COMMAND,to=>{const[,no]=Nt(to);if(no.length>0){const so=st(to.clientX,to.clientY);if(so!==null){const{offset:ao,node:lo}=so,uo=$getNearestNodeFromDOMNode(lo);if(uo!==null){const ho=$createRangeSelection();if($isTextNode(uo))ho.anchor.set(uo.getKey(),ao,"text"),ho.focus.set(uo.getKey(),ao,"text");else{const mo=uo.getParentOrThrow().getKey(),yo=uo.getIndexWithinParent()+1;ho.anchor.set(mo,yo,"element"),ho.focus.set(mo,yo,"element")}const go=$normalizeSelection__EXPERIMENTAL(ho);$setSelection(go)}eo.dispatchCommand(gt,no)}return to.preventDefault(),!0}const io=$getSelection();return!!$isRangeSelection(io)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGSTART_COMMAND,to=>{const[no]=Nt(to),io=$getSelection();return!(no&&!$isRangeSelection(io))},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGOVER_COMMAND,to=>{const[no]=Nt(to),io=$getSelection();if(no&&!$isRangeSelection(io))return!1;const so=st(to.clientX,to.clientY);if(so!==null){const ao=$getNearestNodeFromDOMNode(so.node);$isDecoratorNode(ao)&&to.preventDefault()}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(SELECT_ALL_COMMAND,()=>($selectAll(),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(COPY_COMMAND,to=>(copyToClipboard(eo,objectKlassEquals(to,ClipboardEvent)?to:null),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CUT_COMMAND,to=>(async function(no,io){await copyToClipboard(io,objectKlassEquals(no,ClipboardEvent)?no:null),io.update(()=>{const so=$getSelection();$isRangeSelection(so)?so.removeText():$isNodeSelection(so)&&so.getNodes().forEach(ao=>ao.remove())})}(to,eo),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(PASTE_COMMAND,to=>{const[,no,io]=Nt(to);return no.length>0&&!io?(eo.dispatchCommand(gt,no),!0):isSelectionCapturedInDecoratorInput(to.target)?!1:$getSelection()!==null&&(function(so,ao){so.preventDefault(),ao.update(()=>{const lo=$getSelection(),uo=objectKlassEquals(so,InputEvent)||objectKlassEquals(so,KeyboardEvent)?null:so.clipboardData;uo!=null&&lo!==null&&$insertDataTransferForRichText(uo,lo,ao)},{tag:"paste"})}(to,eo),!0)},COMMAND_PRIORITY_EDITOR))}const modProd$2=Object.freeze(Object.defineProperty({__proto__:null,$createHeadingNode:wt,$createQuoteNode:ht,$isHeadingNode:Et,$isQuoteNode:vt,DRAG_DROP_PASTE:gt,HeadingNode:Ct,QuoteNode:pt,eventFiles:Nt,registerRichText:Ot},Symbol.toStringTag,{value:"Module"})),mod$2=modProd$2,DRAG_DROP_PASTE=mod$2.DRAG_DROP_PASTE,eventFiles=mod$2.eventFiles,registerRichText=mod$2.registerRichText;var p$1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function E(eo){return eo.getEditorState().read($canShowPlaceholderCurry(eo.isComposing()))}function x$3({contentEditable:eo,placeholder:to,ErrorBoundary:no}){const[io]=useLexicalComposerContext(),so=function(ao,lo){const[uo,ho]=reactExports.useState(()=>ao.getDecorators());return p$1(()=>ao.registerDecoratorListener(go=>{reactDomExports.flushSync(()=>{ho(go)})}),[ao]),reactExports.useEffect(()=>{ho(ao.getDecorators())},[ao]),reactExports.useMemo(()=>{const go=[],mo=Object.keys(uo);for(let yo=0;yoao._onError(Co)},reactExports.createElement(reactExports.Suspense,{fallback:null},uo[So])),ko=ao.getElementByKey(So);ko!==null&&go.push(reactDomExports.createPortal(_o,ko,So))}return go},[lo,uo,ao])}(io,no);return function(ao){p$1(()=>mergeRegister(registerRichText(ao),registerDragonSupport(ao)),[ao])}(io),reactExports.createElement(reactExports.Fragment,null,eo,reactExports.createElement(g,{content:to}),so)}function g({content:eo}){const[to]=useLexicalComposerContext(),no=function(so){const[ao,lo]=reactExports.useState(()=>E(so));return p$1(()=>{function uo(){const ho=E(so);lo(ho)}return uo(),mergeRegister(so.registerUpdateListener(()=>{uo()}),so.registerEditableListener(()=>{uo()}))},[so]),ao}(to),io=t$1();return no?typeof eo=="function"?eo(io):eo:null}const modProd$1=Object.freeze(Object.defineProperty({__proto__:null,RichTextPlugin:x$3},Symbol.toStringTag,{value:"Module"})),mod$1=modProd$1,RichTextPlugin=mod$1.RichTextPlugin;var RichEditorContentType=(eo=>(eo.IMAGE="image",eo.TEXT="text",eo))(RichEditorContentType||{});const FAKE_PROTOCOL="fake:",CAN_USE_DOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function d(eo,to){return eo.getEditorState().read(()=>{const no=$getNodeByKey(to);return no!==null&&no.isSelected()})}function u(eo){const[to]=useLexicalComposerContext(),[no,io]=reactExports.useState(()=>d(to,eo));return reactExports.useEffect(()=>{let so=!0;const ao=to.registerUpdateListener(()=>{so&&io(d(to,eo))});return()=>{so=!1,ao()}},[to,eo]),[no,reactExports.useCallback(so=>{to.update(()=>{let ao=$getSelection();$isNodeSelection(ao)||(ao=$createNodeSelection(),$setSelection(ao)),$isNodeSelection(ao)&&(so?ao.add(eo):ao.delete(eo))})},[to,eo]),reactExports.useCallback(()=>{to.update(()=>{const so=$getSelection();$isNodeSelection(so)&&so.clear()})},[to])]}const modProd=Object.freeze(Object.defineProperty({__proto__:null,useLexicalNodeSelection:u},Symbol.toStringTag,{value:"Module"})),mod=modProd,useLexicalNodeSelection=mod.useLexicalNodeSelection;function useEventCallback(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo}),reactExports.useCallback((...no)=>{const io=to.current;return io(...no)},[])}const INSERT_IMAGE_COMMAND=createCommand("INSERT_IMAGE_COMMAND"),INSERT_MULTIPLE_NODES_COMMAND=createCommand("INSERT_MULTIPLE_NODES_COMMAND"),RIGHT_CLICK_IMAGE_COMMAND=createCommand("RIGHT_CLICK_IMAGE_COMMAND");class RichEditorViewModel extends ViewModel{constructor(to){super(),this.editor$=new State(void 0),this.maxHeight$=new State(void 0),this.resolveUrlByPath$=new State(void 0),this.resolveUrlByFile$=new State(void 0),this._resetEditorState=to.resetEditorState,this._replaceImageSrc=to.replaceImageSrc,this._extractEditorData=to.extractEditorData}get requiredEditor(){const to=this.editor$.getSnapshot();if(!to)throw new Error("[RichEditor] editor is not prepared.");return to}focus(){this.requiredEditor.focus()}getContent(){const no=this.requiredEditor.getEditorState();return this._extractEditorData(no)}insert(to){this.requiredEditor.dispatchCommand(INSERT_MULTIPLE_NODES_COMMAND,{nodes:to})}isEmpty(){return this.requiredEditor.getEditorState().read(()=>{const so=$getRoot(),ao=so.getFirstChild();return ao?so.getChildrenSize()===1&&ao instanceof ElementNode?ao.isEmpty():!1:!0})}replaceImageSrc(to,no){const io=this.editor$.getSnapshot();if(!io)throw new Error("[RichEditor] editor is not prepared.");this._replaceImageSrc(io,to,no)}reset(to){const no=this.requiredEditor;this._resetEditorState(to)(no)}async resolveUrlByFile(to){const no=this.resolveUrlByFile$.getSnapshot();return no?no(to):""}async resolveUrlByPath(to){if(to.startsWith(FAKE_PROTOCOL))return to;const no=this.resolveUrlByPath$.getSnapshot();return(no==null?void 0:no(to))??to}}const RichEditorContextType=reactExports.createContext({viewmodel:new RichEditorViewModel({extractEditorData:()=>[],resetEditorState:()=>()=>{},replaceImageSrc:()=>{}})}),useRichEditorContext=()=>{const eo=reactExports.useContext(RichEditorContextType),to=reactExports.useContext(LexicalComposerContext),no=(to==null?void 0:to[0])??void 0;return no&&eo.viewmodel.editor$.next(no),eo},useAutoResize=()=>{const[eo]=useLexicalComposerContext(),{viewmodel:to}=useRichEditorContext(),no=useStateValue(to.maxHeight$);return useEventCallback(()=>{if(no===void 0)return;const so=eo==null?void 0:eo.getRootElement();if(so){so.style.height="24px";const ao=Math.min(no,so.scrollHeight);so.style.height=`${ao}px`}})},imageCache=new Set;function useSuspenseImage(eo){imageCache.has(eo)||new Promise(to=>{const no=new Image;no.src=eo,no.onload=()=>{imageCache.add(eo),to(null)}})}function LazyImage({alt:eo,className:to,imageRef:no,src:io,width:so,height:ao,maxWidth:lo,onLoad:uo}){return useSuspenseImage(io),jsxRuntimeExports.jsx("img",{className:to||void 0,src:io,alt:eo,ref:no,style:{height:ao,maxWidth:lo,width:so,border:"1px solid #E5E5E5"},draggable:!1,onLoad:uo})}const ImageComponent=eo=>{const{viewmodel:to}=useRichEditorContext(),no=useAutoResize(),{src:io,alt:so,nodeKey:ao,width:lo,height:uo,maxWidth:ho,isImageNode:go}=eo,[mo,yo]=reactExports.useState(io),So=reactExports.useRef(null),_o=reactExports.useRef(null),[ko,Co,$o]=useLexicalNodeSelection(ao),[Ro]=useLexicalComposerContext(),[Oo,No]=reactExports.useState(null),Mo=reactExports.useRef(null),Bo=reactExports.useCallback(ps=>{if(ko&&$isNodeSelection($getSelection())){ps.preventDefault();const hs=$getNodeByKey(ao);go(hs)&&hs.remove()}return!1},[ko,ao,go]),Po=reactExports.useCallback(ps=>{const Qo=$getSelection(),hs=_o.current;return ko&&$isNodeSelection(Qo)&&Qo.getNodes().length===1&&hs!==null&&hs!==document.activeElement?(ps.preventDefault(),hs.focus(),!0):!1},[ko]),Lo=reactExports.useCallback(ps=>ps.target===So.current?(ps.preventDefault(),!0):!1,[]),Go=reactExports.useCallback(ps=>_o.current===ps.target?($setSelection(null),Ro.update(()=>{Co(!0);const Qo=Ro.getRootElement();Qo!==null&&Qo.focus()}),!0):!1,[Ro,Co]),Do=reactExports.useCallback(ps=>{const Qo=ps;return Qo.target===So.current?(Qo.shiftKey?Co(!ko):($o(),Co(!0)),!0):!1},[ko,Co,$o]),Uo=reactExports.useCallback(ps=>{Ro.getEditorState().read(()=>{const Qo=$getSelection();ps.target.tagName==="IMG"&&$isRangeSelection(Qo)&&Qo.getNodes().length===1&&Ro.dispatchCommand(RIGHT_CLICK_IMAGE_COMMAND,ps)})},[Ro]);reactExports.useEffect(()=>{let ps=!1;return to.resolveUrlByPath(io).then(Qo=>{ps||yo(Qo)}),()=>{ps=!0}},[to,io]),reactExports.useEffect(()=>{let ps=!0;const Qo=Ro.getRootElement(),hs=mergeRegister(Ro.registerUpdateListener(({editorState:gs})=>{ps&&No(gs.read($getSelection))}),Ro.registerCommand(SELECTION_CHANGE_COMMAND,(gs,ys)=>(Mo.current=ys,!1),COMMAND_PRIORITY_LOW),Ro.registerCommand(CLICK_COMMAND,Do,COMMAND_PRIORITY_LOW),Ro.registerCommand(RIGHT_CLICK_IMAGE_COMMAND,Do,COMMAND_PRIORITY_LOW),Ro.registerCommand(DRAGSTART_COMMAND,Lo,COMMAND_PRIORITY_LOW),Ro.registerCommand(KEY_DELETE_COMMAND,Bo,COMMAND_PRIORITY_LOW),Ro.registerCommand(KEY_BACKSPACE_COMMAND,Bo,COMMAND_PRIORITY_LOW),Ro.registerCommand(KEY_ENTER_COMMAND,Po,COMMAND_PRIORITY_LOW),Ro.registerCommand(KEY_ESCAPE_COMMAND,Go,COMMAND_PRIORITY_LOW));return Qo==null||Qo.addEventListener("contextmenu",Uo),()=>{ps=!1,hs(),Qo==null||Qo.removeEventListener("contextmenu",Uo)}},[Ro,ko,ao,$o,Bo,Lo,Po,Go,Do,Uo,Co]);const Ho=ko&&$isNodeSelection(Oo),qo=ko?`focused ${$isNodeSelection(Oo)?"draggable":""}`:void 0,Jo=(mo.startsWith(FAKE_PROTOCOL)?mo.slice(FAKE_PROTOCOL.length):mo).replace(/#[\s\S]*$/,"");return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx("div",{draggable:Ho,children:jsxRuntimeExports.jsx(LazyImage,{className:qo,src:Jo,alt:so,imageRef:So,width:lo,height:uo,maxWidth:ho,onLoad:no})})})};class ImageNode extends DecoratorNode{constructor(to,no,io,so,ao,lo){super(lo),this.src=to,this.alt=no,this.maxWidth=io,this.width=so||"inherit",this.height=ao||"inherit"}static getType(){return RichEditorContentType.IMAGE}static clone(to){return new ImageNode(to.src,to.alt,to.maxWidth,to.width,to.height,to.__key)}static importDOM(){return{img:to=>({conversion:convertImageElement,priority:0})}}static importJSON(to){const{alt:no,height:io,width:so,maxWidth:ao,src:lo}=to;return $createImageNode({alt:no,height:io,maxWidth:ao,src:lo,width:so})}exportDOM(){const to=document.createElement("img");return to.setAttribute("src",this.src),to.setAttribute("alt",this.alt),to.setAttribute("width",this.width.toString()),to.setAttribute("height",this.height.toString()),{element:to}}exportJSON(){return{alt:this.getAltText(),height:this.height==="inherit"?0:this.height,maxWidth:this.maxWidth,src:this.getSrc(),type:RichEditorContentType.IMAGE,version:1,width:this.width==="inherit"?0:this.width}}setWidthAndHeight(to,no){const io=this.getWritable();io.width=to,io.height=no}createDOM(to){const no=document.createElement("span"),so=to.theme.image;return so!==void 0&&(no.className=so),no}updateDOM(){return!1}getSrc(){return this.src}getAltText(){return this.alt}decorate(){return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(ImageComponent,{src:this.src,alt:this.alt,width:this.width,height:this.height,maxWidth:this.maxWidth,nodeKey:this.getKey(),isImageNode:$isImageNode})})}}function $createImageNode({alt:eo,height:to,maxWidth:no=240,src:io,width:so,key:ao}){return $applyNodeReplacement(new ImageNode(io,eo,no,so,to,ao))}function $isImageNode(eo){return eo instanceof ImageNode}function convertImageElement(eo){if(eo instanceof HTMLImageElement){const{alt:to,src:no,width:io,height:so}=eo;return no.startsWith("blob:")?null:{node:$createImageNode({alt:to,height:so,src:no,width:io})}}return null}const CommandPlugin=()=>{const[eo]=useLexicalComposerContext();return React.useLayoutEffect(()=>mergeRegister(eo.registerCommand(INSERT_MULTIPLE_NODES_COMMAND,to=>{const{nodes:no}=to;if(no.length===1&&no[0].type===RichEditorContentType.TEXT){const ao=no[0];return eo.update(()=>{const lo=$getSelection();lo&&lo.insertRawText(ao.value)}),!0}let io;const so=[];for(const ao of no)switch(ao.type){case RichEditorContentType.TEXT:{const lo=$createTextNode(ao.value),uo=$createParagraphNode();io=lo,uo.append(lo),so.push(uo);break}case RichEditorContentType.IMAGE:{const lo=$createImageNode(ao),uo=$createParagraphNode();io=lo,uo.append(lo),so.push(uo);break}}return so.length<=0||($insertNodes(so),io&&$isRootOrShadowRoot(io.getParentOrThrow())&&io.selectEnd()),!0},COMMAND_PRIORITY_EDITOR)),[eo]),jsxRuntimeExports.jsx(React.Fragment,{})};CommandPlugin.displayName="CommandPlugin";const ACCEPTABLE_IMAGE_TYPES=["image/","image/heic","image/heif","image/gif","image/webp"],DragDropPastePlugin=()=>{const[eo]=useLexicalComposerContext(),{viewmodel:to}=useRichEditorContext();return reactExports.useLayoutEffect(()=>eo.registerCommand(DRAG_DROP_PASTE,no=>{return io(),!0;async function io(){for(const so of no)if(isMimeType(so,ACCEPTABLE_IMAGE_TYPES)){const ao=so.name,lo=await to.resolveUrlByFile(so);eo.dispatchCommand(INSERT_IMAGE_COMMAND,{alt:ao,src:lo})}}},COMMAND_PRIORITY_LOW),[eo,to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};DragDropPastePlugin.displayName="DragDropPastePlugin";let Point$2=class{constructor(to,no){this._x=to,this._y=no}get x(){return this._x}get y(){return this._y}equals(to){return this.x===to.x&&this.y===to.y}calcDeltaXTo(to){return this.x-to.x}calcDeltaYTo(to){return this.y-to.y}calcHorizontalDistanceTo(to){return Math.abs(this.calcDeltaXTo(to))}calcVerticalDistance(to){return Math.abs(this.calcDeltaYTo(to))}calcDistanceTo(to){const no=this.calcDeltaXTo(to)**2,io=this.calcDeltaYTo(to)**2;return Math.sqrt(no+io)}};function isPoint(eo){return eo instanceof Point$2}class Rect{constructor(to,no,io,so){const[ao,lo]=no<=so?[no,so]:[so,no],[uo,ho]=to<=io?[to,io]:[io,to];this._top=ao,this._right=ho,this._left=uo,this._bottom=lo}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}static fromLTRB(to,no,io,so){return new Rect(to,no,io,so)}static fromLWTH(to,no,io,so){return new Rect(to,io,to+no,io+so)}static fromPoints(to,no){const{y:io,x:so}=to,{y:ao,x:lo}=no;return Rect.fromLTRB(so,io,lo,ao)}static fromDOM(to){const{top:no,width:io,left:so,height:ao}=to.getBoundingClientRect();return Rect.fromLWTH(so,io,no,ao)}equals(to){return to.top===this._top&&to.bottom===this._bottom&&to.left===this._left&&to.right===this._right}contains(to){if(isPoint(to)){const{x:no,y:io}=to,so=iothis._bottom,lo=nothis._right;return{reason:{isOnBottomSide:ao,isOnLeftSide:lo,isOnRightSide:uo,isOnTopSide:so},result:!so&&!ao&&!lo&&!uo}}else{const{top:no,left:io,bottom:so,right:ao}=to;return no>=this._top&&no<=this._bottom&&so>=this._top&&so<=this._bottom&&io>=this._left&&io<=this._right&&ao>=this._left&&ao<=this._right}}intersectsWith(to){const{left:no,top:io,width:so,height:ao}=to,{left:lo,top:uo,width:ho,height:go}=this,mo=no+so>=lo+ho?no+so:lo+ho,yo=io+ao>=uo+go?io+ao:uo+go,So=no<=lo?no:lo,_o=io<=uo?io:uo;return mo-So<=so+ho&&yo-_o<=ao+go}generateNewRect({left:to=this.left,top:no=this.top,right:io=this.right,bottom:so=this.bottom}){return new Rect(to,no,io,so)}}const SPACE=4,TARGET_LINE_HALF_HEIGHT=2,DRAGGABLE_BLOCK_MENU_CLASSNAME="draggable-block-menu",DRAG_DATA_FORMAT="application/x-lexical-drag-block",TEXT_BOX_HORIZONTAL_PADDING=28,Downward=1,Upward=-1,Indeterminate=0,DraggableBlockPlugin=eo=>{const{anchorElem:to=document.body}=eo,[no]=useLexicalComposerContext();return useDraggableBlockMenu(no,to,no._editable)};DraggableBlockPlugin.displayName="DraggableBlockPlugin";let prevIndex=1/0;function getCurrentIndex(eo){return eo===0?1/0:prevIndex>=0&&prevIndex$getRoot().getChildrenKeys())}function getCollapsedMargins(eo){const to=(ho,go)=>ho?parseFloat(window.getComputedStyle(ho)[go]):0,{marginTop:no,marginBottom:io}=window.getComputedStyle(eo),so=to(eo.previousElementSibling,"marginBottom"),ao=to(eo.nextElementSibling,"marginTop"),lo=Math.max(parseFloat(no),so);return{marginBottom:Math.max(parseFloat(io),ao),marginTop:lo}}function getBlockElement(eo,to,no,io=!1){const so=eo.getBoundingClientRect(),ao=getTopLevelNodeKeys(to);let lo=null;return to.getEditorState().read(()=>{if(io){const go=to.getElementByKey(ao[0]),mo=to.getElementByKey(ao[ao.length-1]),yo=go==null?void 0:go.getBoundingClientRect(),So=mo==null?void 0:mo.getBoundingClientRect();if(yo&&So&&(no.ySo.bottom&&(lo=mo),lo))return}let uo=getCurrentIndex(ao.length),ho=Indeterminate;for(;uo>=0&&uo{io.transform=no})}function setTargetLine(eo,to,no,io){const{top:so,height:ao}=to.getBoundingClientRect(),{top:lo,width:uo}=io.getBoundingClientRect(),{marginTop:ho,marginBottom:go}=getCollapsedMargins(to);let mo=so;no>=so?mo+=ao+go/2:mo-=ho/2;const yo=mo-lo-TARGET_LINE_HALF_HEIGHT,So=TEXT_BOX_HORIZONTAL_PADDING-SPACE,_o=eo.style;_o.transform=`translate(${So}px, ${yo}px)`,_o.width=`${uo-(TEXT_BOX_HORIZONTAL_PADDING-SPACE)*2}px`,_o.opacity=".4"}function hideTargetLine(eo){const to=eo==null?void 0:eo.style;to&&(to.opacity="0",to.transform="translate(-10000px, -10000px)")}function useDraggableBlockMenu(eo,to,no){const io=to.parentElement,so=reactExports.useRef(null),ao=reactExports.useRef(null),lo=reactExports.useRef(!1),[uo,ho]=reactExports.useState(null);reactExports.useLayoutEffect(()=>{function yo(_o){const ko=_o.target;if(!isHTMLElement(ko)){ho(null);return}if(isOnMenu(ko))return;const Co=getBlockElement(to,eo,_o);ho(Co)}function So(){ho(null)}return io==null||io.addEventListener("mousemove",yo),io==null||io.addEventListener("mouseleave",So),()=>{io==null||io.removeEventListener("mousemove",yo),io==null||io.removeEventListener("mouseleave",So)}},[io,to,eo]),reactExports.useEffect(()=>{so.current&&setMenuPosition(uo,so.current,to)},[to,uo]),reactExports.useEffect(()=>{function yo(_o){if(!lo.current)return!1;const[ko]=eventFiles(_o);if(ko)return!1;const{pageY:Co,target:$o}=_o;if(!isHTMLElement($o))return!1;const Ro=getBlockElement(to,eo,_o,!0),Oo=ao.current;return Ro===null||Oo===null?!1:(setTargetLine(Oo,Ro,Co,to),_o.preventDefault(),!0)}function So(_o){if(!lo.current)return!1;const[ko]=eventFiles(_o);if(ko)return!1;const{target:Co,dataTransfer:$o,pageY:Ro}=_o,Oo=($o==null?void 0:$o.getData(DRAG_DATA_FORMAT))||"",No=$getNodeByKey(Oo);if(!No||!isHTMLElement(Co))return!1;const Mo=getBlockElement(to,eo,_o,!0);if(!Mo)return!1;const Bo=$getNearestNodeFromDOMNode(Mo);if(!Bo)return!1;if(Bo===No)return!0;const Po=Mo.getBoundingClientRect().top;return Ro>=Po?Bo.insertAfter(No):Bo.insertBefore(No),ho(null),!0}return mergeRegister(eo.registerCommand(DRAGOVER_COMMAND,_o=>yo(_o),COMMAND_PRIORITY_LOW),eo.registerCommand(DROP_COMMAND,_o=>So(_o),COMMAND_PRIORITY_HIGH))},[to,eo]);const go=yo=>{const So=yo.dataTransfer;if(!So||!uo)return;setDragImage(So,uo);let _o="";eo.update(()=>{const ko=$getNearestNodeFromDOMNode(uo);ko&&(_o=ko.getKey())}),lo.current=!0,So.setData(DRAG_DATA_FORMAT,_o)},mo=()=>{lo.current=!1,hideTargetLine(ao.current)};return reactDomExports.createPortal(jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"icon draggable-block-menu",role:"button",ref:so,draggable:!0,onDragStart:go,onDragEnd:mo,children:jsxRuntimeExports.jsx("div",{className:no?"icon":""})}),jsxRuntimeExports.jsx("div",{className:"draggable-block-target-line",ref:ao})]}),to)}const EditablePlugin=eo=>{const{editable:to}=eo,[no]=useLexicalComposerContext();return reactExports.useEffect(()=>{no.setEditable(to)},[no,to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};EditablePlugin.displayName="EditablePlugin";const ImagesPlugin=()=>{const[eo]=useLexicalComposerContext();return reactExports.useLayoutEffect(()=>{if(!eo.hasNodes([ImageNode]))throw new Error("[RichEditor] ImagesPlugin: ImageNode not registered on editor");return mergeRegister(eo.registerCommand(INSERT_IMAGE_COMMAND,onInsertImage,COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGSTART_COMMAND,onDragStart,COMMAND_PRIORITY_HIGH),eo.registerCommand(DRAGOVER_COMMAND,onDragover,COMMAND_PRIORITY_LOW),eo.registerCommand(DROP_COMMAND,to=>onDrop(to,eo),COMMAND_PRIORITY_HIGH))},[eo]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};ImagesPlugin.displayName="ImagesPlugin";let _transparentImage;const getTransparentImage=()=>{if(_transparentImage===void 0){const eo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";_transparentImage=document.createElement("img"),_transparentImage.src=eo}return _transparentImage};function onInsertImage(eo){const to=$createImageNode(eo);return $insertNodes([to]),$isRootOrShadowRoot(to.getParentOrThrow())&&$wrapNodeInElement(to,$createParagraphNode).selectEnd(),!0}function onDragStart(eo){const to=getImageNodeInSelection();if(!to)return!1;const no=eo.dataTransfer;if(!no)return!1;const io=getTransparentImage();return no.setData("text/plain","_"),no.setDragImage(io,0,0),no.setData("application/x-lexical-drag",JSON.stringify({type:RichEditorContentType.IMAGE,data:{alt:to.alt,height:to.height,key:to.getKey(),maxWidth:to.maxWidth,src:to.src,width:to.width}})),!0}function onDragover(eo){return getImageNodeInSelection()?(canDropImage(eo)||eo.preventDefault(),!0):!1}function onDrop(eo,to){const no=getImageNodeInSelection();if(!no)return!1;const io=getDragImageData(eo);if(!io)return!1;if(eo.preventDefault(),canDropImage(eo)){const so=getDragSelection(eo);no.remove();const ao=$createRangeSelection();so!=null&&ao.applyDOMRange(so),$setSelection(ao),to.dispatchCommand(INSERT_IMAGE_COMMAND,io)}return!0}function getImageNodeInSelection(){const eo=$getSelection();if(!$isNodeSelection(eo))return null;const no=eo.getNodes()[0];return $isImageNode(no)?no:null}function getDragImageData(eo){var no;const to=(no=eo.dataTransfer)==null?void 0:no.getData("application/x-lexical-drag");if(!to)return null;try{const{type:io,data:so}=JSON.parse(to);return io===RichEditorContentType.IMAGE?so:null}catch{return null}}function canDropImage(eo){const to=eo.target;return!!(to&&to instanceof HTMLElement&&!to.closest("code, span.editor-image")&&to.parentElement&&to.parentElement.closest("div.ContentEditable__root"))}const getDOMSelection=eo=>CAN_USE_DOM?(eo||window).getSelection():null;function getDragSelection(eo){const to=eo,no=to.target,io=no==null?null:no.nodeType===9?no.defaultView:no.ownerDocument.defaultView,so=getDOMSelection(io);let ao;if(document.caretRangeFromPoint)ao=document.caretRangeFromPoint(to.clientX,to.clientY);else if(to.rangeParent&&so!==null)so.collapse(to.rangeParent,to.rangeOffset||0),ao=so.getRangeAt(0);else throw Error("[RichEditor] ImagesPlugin: Cannot get the selection when dragging");return ao}const OnEnterKeyPressPlugin=eo=>{const{onEnterKeyPress:to}=eo,[no]=useLexicalComposerContext(),io=useEventCallback(so=>(so.key==="Enter"&&!so.shiftKey&&!so.ctrlKey&&(so.preventDefault(),to==null||to()),!0));return reactExports.useEffect(()=>{no.registerCommand(KEY_ENTER_COMMAND,io,COMMAND_PRIORITY_HIGH)},[no,io]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};OnEnterKeyPressPlugin.displayName="OnEnterKeyPressPlugin";const OnKeyDownPlugin=eo=>{const[to]=useLexicalComposerContext(),no=reactExports.useRef(eo.onKeyDown);return reactExports.useLayoutEffect(()=>{const io=so=>{var ao;(ao=no.current)==null||ao.call(no,so)};return to.registerRootListener((so,ao)=>{ao!==null&&ao.removeEventListener("keydown",io),so!==null&&so.addEventListener("keydown",io)})},[to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};OnKeyDownPlugin.displayName="OnKeyDownPlugin";const PlainContentPastePlugin=()=>{const[eo]=useLexicalComposerContext();return reactExports.useLayoutEffect(()=>mergeRegister(eo.registerUpdateListener(to=>{to.tags.has("paste")&&eo.update(()=>{to.dirtyLeaves.forEach(no=>{const io=$getNodeByKey(no);if($isTextNode(io)){const so=$copyNode(io);so.setFormat(0),so.setStyle(""),io.replace(so)}})})}),eo.registerNodeTransform(TextNode$2,to=>{const no=to.getParentOrThrow();if($isLinkNode(no)){const io=$createTextNode(no.__url);no.insertBefore(io),no.remove()}})),[eo]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};PlainContentPastePlugin.displayName="PlainContentPastePlugin";const resetEditorState=eo=>to=>{to.update(()=>{const no=$getRoot();no.clear();for(const io of eo)if(io!=null){if(typeof io=="string"){const so=$createTextNode(io),ao=$createParagraphNode();ao.append(so),no.append(ao);continue}if(typeof io=="object"){switch(io.type){case RichEditorContentType.IMAGE:{const so=$createImageNode({alt:io.alt,src:io.src}),ao=$createParagraphNode();ao.append(so),no.append(ao);break}case RichEditorContentType.TEXT:{const so=$createTextNode(io.value),ao=$createParagraphNode();ao.append(so),no.append(ao);break}default:throw console.log("item:",io),new TypeError(`[resetEditorState] unknown rich-editor content type: ${io.type}`)}continue}console.error("[resetEditorState] unknown rich-editor data:",io)}})},RootType=RootNode.getType(),ParagraphType=ParagraphNode.getType(),TextType=TextNode$2.getType(),ImageType=ImageNode.getType(),LineBreakType=LineBreakNode.getType(),extractEditorData=eo=>{const to=eo.toJSON(),no=[];for(const so of to.root.children)io(so);return no;function io(so){switch(so.type){case ImageType:{const{src:ao,alt:lo}=so;if(ao.startsWith(FAKE_PROTOCOL)){const uo=no[no.length-1];(uo==null?void 0:uo.type)===RichEditorContentType.TEXT&&(uo.value+=` +`?to.insertParagraph():ho===" "?to.insertNodes([$createTabNode()]):to.insertText(ho)}}else to.insertRawText(ao)}function N(eo,to,no){eo.dispatchCommand(SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,{nodes:to,selection:no})||no.insertNodes(to)}function S$1(eo,to,no,io=[]){let so=to===null||no.isSelected(to);const ao=$isElementNode(no)&&no.excludeFromCopy("html");let lo=no;if(to!==null){let go=$cloneWithProperties(no);go=$isTextNode(go)&&to!==null?$sliceSelectedTextNodeContent(to,go):go,lo=go}const uo=$isElementNode(lo)?lo.getChildren():[],ho=function(go){const mo=go.exportJSON(),yo=go.constructor;if(mo.type!==yo.getType()&&g$1(58,yo.name),$isElementNode(go)){const So=mo.children;Array.isArray(So)||g$1(59,yo.name)}return mo}(lo);if($isTextNode(lo)){const go=lo.__text;go.length>0?ho.text=go:so=!1}for(let go=0;go{eo.update(()=>{uo(P(eo,to))})});const no=eo.getRootElement(),io=eo._window==null?window.document:eo._window.document,so=y$3(eo._window);if(no===null||so===null)return!1;const ao=io.createElement("span");ao.style.cssText="position: fixed; top: -1000px;",ao.append(io.createTextNode("#")),no.append(ao);const lo=new Range;return lo.setStart(ao,0),lo.setEnd(ao,1),so.removeAllRanges(),so.addRange(lo),new Promise((uo,ho)=>{const go=eo.registerCommand(COPY_COMMAND,mo=>(objectKlassEquals(mo,ClipboardEvent)&&(go(),A!==null&&(window.clearTimeout(A),A=null),uo(P(eo,mo))),!0),COMMAND_PRIORITY_CRITICAL);A=window.setTimeout(()=>{go(),A=null,uo(!1)},50),io.execCommand("copy"),ao.remove()})}function P(eo,to){const no=y$3(eo._window);if(!no)return!1;const io=no.anchorNode,so=no.focusNode;if(io!==null&&so!==null&&!isSelectionWithinEditor(eo,io,so))return!1;to.preventDefault();const ao=to.clipboardData,lo=$getSelection();if(ao===null||lo===null)return!1;const uo=v(eo),ho=D$1(eo);let go="";return lo!==null&&(go=lo.getTextContent()),uo!==null&&ao.setData("text/html",uo),ho!==null&&ao.setData("application/x-lexical-editor",ho),ao.setData("text/plain",go),!0}const modProd$3=Object.freeze(Object.defineProperty({__proto__:null,$generateJSONFromSelectedNodes:T$1,$generateNodesFromSerializedNodes:_$1,$getHtmlContent:v,$getLexicalContent:D$1,$insertDataTransferForPlainText:C$1,$insertDataTransferForRichText:E$1,$insertGeneratedNodes:N,copyToClipboard:R},Symbol.toStringTag,{value:"Module"})),mod$3=modProd$3,$insertDataTransferForRichText=mod$3.$insertDataTransferForRichText,copyToClipboard=mod$3.copyToClipboard;function st(eo,to){if(document.caretRangeFromPoint!==void 0){const no=document.caretRangeFromPoint(eo,to);return no===null?null:{node:no.startContainer,offset:no.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const no=document.caretPositionFromPoint(eo,to);return no===null?null:{node:no.offsetNode,offset:no.offset}}return null}const at=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,ct=at&&"documentMode"in document?document.documentMode:null,ut=!(!at||!("InputEvent"in window)||ct)&&"getTargetRanges"in new window.InputEvent("input"),lt=at&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),dt=at&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,mt=at&&/^(?=.*Chrome).*/i.test(navigator.userAgent),ft=at&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!mt,gt=createCommand("DRAG_DROP_PASTE_FILE");class pt extends ElementNode{static getType(){return"quote"}static clone(to){return new pt(to.__key)}constructor(to){super(to)}createDOM(to){const no=document.createElement("blockquote");return addClassNamesToElement(no,to.theme.quote),no}updateDOM(to,no){return!1}static importDOM(){return{blockquote:to=>({conversion:xt,priority:0})}}exportDOM(to){const{element:no}=super.exportDOM(to);if(no&&isHTMLElement$1(no)){this.isEmpty()&&no.append(document.createElement("br"));const io=this.getFormatType();no.style.textAlign=io;const so=this.getDirection();so&&(no.dir=so)}return{element:no}}static importJSON(to){const no=ht();return no.setFormat(to.format),no.setIndent(to.indent),no.setDirection(to.direction),no}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(to,no){const io=$createParagraphNode(),so=this.getDirection();return io.setDirection(so),this.insertAfter(io,no),io}collapseAtStart(){const to=$createParagraphNode();return this.getChildren().forEach(no=>to.append(no)),this.replace(to),!0}}function ht(){return $applyNodeReplacement(new pt)}function vt(eo){return eo instanceof pt}class Ct extends ElementNode{static getType(){return"heading"}static clone(to){return new Ct(to.__tag,to.__key)}constructor(to,no){super(no),this.__tag=to}getTag(){return this.__tag}createDOM(to){const no=this.__tag,io=document.createElement(no),so=to.theme.heading;if(so!==void 0){const ao=so[no];addClassNamesToElement(io,ao)}return io}updateDOM(to,no){return!1}static importDOM(){return{h1:to=>({conversion:Dt,priority:0}),h2:to=>({conversion:Dt,priority:0}),h3:to=>({conversion:Dt,priority:0}),h4:to=>({conversion:Dt,priority:0}),h5:to=>({conversion:Dt,priority:0}),h6:to=>({conversion:Dt,priority:0}),p:to=>{const no=to.firstChild;return no!==null&&yt(no)?{conversion:()=>({node:null}),priority:3}:null},span:to=>yt(to)?{conversion:no=>({node:wt("h1")}),priority:3}:null}}exportDOM(to){const{element:no}=super.exportDOM(to);if(no&&isHTMLElement$1(no)){this.isEmpty()&&no.append(document.createElement("br"));const io=this.getFormatType();no.style.textAlign=io;const so=this.getDirection();so&&(no.dir=so)}return{element:no}}static importJSON(to){const no=wt(to.tag);return no.setFormat(to.format),no.setIndent(to.indent),no.setDirection(to.direction),no}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(to,no=!0){const io=to?to.anchor.offset:0,so=io!==this.getTextContentSize()&&to?wt(this.getTag()):$createParagraphNode(),ao=this.getDirection();if(so.setDirection(ao),this.insertAfter(so,no),io===0&&!this.isEmpty()&&to){const lo=$createParagraphNode();lo.select(),this.replace(lo,!0)}return so}collapseAtStart(){const to=this.isEmpty()?$createParagraphNode():wt(this.getTag());return this.getChildren().forEach(no=>to.append(no)),this.replace(to),!0}extractWithChild(){return!0}}function yt(eo){return eo.nodeName.toLowerCase()==="span"&&eo.style.fontSize==="26pt"}function Dt(eo){const to=eo.nodeName.toLowerCase();let no=null;return to!=="h1"&&to!=="h2"&&to!=="h3"&&to!=="h4"&&to!=="h5"&&to!=="h6"||(no=wt(to),eo.style!==null&&no.setFormat(eo.style.textAlign)),{node:no}}function xt(eo){const to=ht();return eo.style!==null&&to.setFormat(eo.style.textAlign),{node:to}}function wt(eo){return $applyNodeReplacement(new Ct(eo))}function Et(eo){return eo instanceof Ct}function Nt(eo){let to=null;if(objectKlassEquals(eo,DragEvent)?to=eo.dataTransfer:objectKlassEquals(eo,ClipboardEvent)&&(to=eo.clipboardData),to===null)return[!1,[],!1];const no=to.types,io=no.includes("Files"),so=no.includes("text/html")||no.includes("text/plain");return[io,Array.from(to.files),so]}function At(eo){const to=$getSelection();if(!$isRangeSelection(to))return!1;const no=new Set,io=to.getNodes();for(let so=0;so0}function Pt(eo){const to=$getNearestNodeFromDOMNode(eo);return $isDecoratorNode(to)}function Ot(eo){return mergeRegister(eo.registerCommand(CLICK_COMMAND,to=>{const no=$getSelection();return!!$isNodeSelection(no)&&(no.clear(),!0)},0),eo.registerCommand(DELETE_CHARACTER_COMMAND,to=>{const no=$getSelection();return!!$isRangeSelection(no)&&(no.deleteCharacter(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DELETE_WORD_COMMAND,to=>{const no=$getSelection();return!!$isRangeSelection(no)&&(no.deleteWord(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DELETE_LINE_COMMAND,to=>{const no=$getSelection();return!!$isRangeSelection(no)&&(no.deleteLine(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(CONTROLLED_TEXT_INSERTION_COMMAND,to=>{const no=$getSelection();if(typeof to=="string")no!==null&&no.insertText(to);else{if(no===null)return!1;const io=to.dataTransfer;if(io!=null)$insertDataTransferForRichText(io,no,eo);else if($isRangeSelection(no)){const so=to.data;return so&&no.insertText(so),!0}}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(REMOVE_TEXT_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(to.removeText(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(FORMAT_TEXT_COMMAND,to=>{const no=$getSelection();return!!$isRangeSelection(no)&&(no.formatText(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(FORMAT_ELEMENT_COMMAND,to=>{const no=$getSelection();if(!$isRangeSelection(no)&&!$isNodeSelection(no))return!1;const io=no.getNodes();for(const so of io){const ao=$findMatchingParent(so,lo=>$isElementNode(lo)&&!lo.isInline());ao!==null&&ao.setFormat(to)}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_LINE_BREAK_COMMAND,to=>{const no=$getSelection();return!!$isRangeSelection(no)&&(no.insertLineBreak(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_PARAGRAPH_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(to.insertParagraph(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_TAB_COMMAND,()=>($insertNodes([$createTabNode()]),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(INDENT_CONTENT_COMMAND,()=>At(to=>{const no=to.getIndent();to.setIndent(no+1)}),COMMAND_PRIORITY_EDITOR),eo.registerCommand(OUTDENT_CONTENT_COMMAND,()=>At(to=>{const no=to.getIndent();no>0&&to.setIndent(no-1)}),COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_UP_COMMAND,to=>{const no=$getSelection();if($isNodeSelection(no)&&!Pt(to.target)){const io=no.getNodes();if(io.length>0)return io[0].selectPrevious(),!0}else if($isRangeSelection(no)){const io=$getAdjacentNode(no.focus,!0);if(!to.shiftKey&&$isDecoratorNode(io)&&!io.isIsolated()&&!io.isInline())return io.selectPrevious(),to.preventDefault(),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_DOWN_COMMAND,to=>{const no=$getSelection();if($isNodeSelection(no)){const io=no.getNodes();if(io.length>0)return io[0].selectNext(0,0),!0}else if($isRangeSelection(no)){if(function(so){const ao=so.focus;return ao.key==="root"&&ao.offset===$getRoot().getChildrenSize()}(no))return to.preventDefault(),!0;const io=$getAdjacentNode(no.focus,!1);if(!to.shiftKey&&$isDecoratorNode(io)&&!io.isIsolated()&&!io.isInline())return io.selectNext(),to.preventDefault(),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_LEFT_COMMAND,to=>{const no=$getSelection();if($isNodeSelection(no)){const io=no.getNodes();if(io.length>0)return to.preventDefault(),io[0].selectPrevious(),!0}if(!$isRangeSelection(no))return!1;if($shouldOverrideDefaultCharacterSelection(no,!0)){const io=to.shiftKey;return to.preventDefault(),$moveCharacter(no,io,!0),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_RIGHT_COMMAND,to=>{const no=$getSelection();if($isNodeSelection(no)&&!Pt(to.target)){const so=no.getNodes();if(so.length>0)return to.preventDefault(),so[0].selectNext(0,0),!0}if(!$isRangeSelection(no))return!1;const io=to.shiftKey;return!!$shouldOverrideDefaultCharacterSelection(no,!1)&&(to.preventDefault(),$moveCharacter(no,io,!1),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_BACKSPACE_COMMAND,to=>{if(Pt(to.target))return!1;const no=$getSelection();if(!$isRangeSelection(no))return!1;to.preventDefault();const{anchor:io}=no,so=io.getNode();return no.isCollapsed()&&io.offset===0&&!$isRootNode(so)&&$getNearestBlockElementAncestorOrThrow(so).getIndent()>0?eo.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0):eo.dispatchCommand(DELETE_CHARACTER_COMMAND,!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_DELETE_COMMAND,to=>{if(Pt(to.target))return!1;const no=$getSelection();return!!$isRangeSelection(no)&&(to.preventDefault(),eo.dispatchCommand(DELETE_CHARACTER_COMMAND,!1))},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ENTER_COMMAND,to=>{const no=$getSelection();if(!$isRangeSelection(no))return!1;if(to!==null){if((dt||lt||ft)&&ut)return!1;if(to.preventDefault(),to.shiftKey)return eo.dispatchCommand(INSERT_LINE_BREAK_COMMAND,!1)}return eo.dispatchCommand(INSERT_PARAGRAPH_COMMAND,void 0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ESCAPE_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(eo.blur(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DROP_COMMAND,to=>{const[,no]=Nt(to);if(no.length>0){const so=st(to.clientX,to.clientY);if(so!==null){const{offset:ao,node:lo}=so,uo=$getNearestNodeFromDOMNode(lo);if(uo!==null){const ho=$createRangeSelection();if($isTextNode(uo))ho.anchor.set(uo.getKey(),ao,"text"),ho.focus.set(uo.getKey(),ao,"text");else{const mo=uo.getParentOrThrow().getKey(),yo=uo.getIndexWithinParent()+1;ho.anchor.set(mo,yo,"element"),ho.focus.set(mo,yo,"element")}const go=$normalizeSelection__EXPERIMENTAL(ho);$setSelection(go)}eo.dispatchCommand(gt,no)}return to.preventDefault(),!0}const io=$getSelection();return!!$isRangeSelection(io)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGSTART_COMMAND,to=>{const[no]=Nt(to),io=$getSelection();return!(no&&!$isRangeSelection(io))},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGOVER_COMMAND,to=>{const[no]=Nt(to),io=$getSelection();if(no&&!$isRangeSelection(io))return!1;const so=st(to.clientX,to.clientY);if(so!==null){const ao=$getNearestNodeFromDOMNode(so.node);$isDecoratorNode(ao)&&to.preventDefault()}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(SELECT_ALL_COMMAND,()=>($selectAll(),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(COPY_COMMAND,to=>(copyToClipboard(eo,objectKlassEquals(to,ClipboardEvent)?to:null),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CUT_COMMAND,to=>(async function(no,io){await copyToClipboard(io,objectKlassEquals(no,ClipboardEvent)?no:null),io.update(()=>{const so=$getSelection();$isRangeSelection(so)?so.removeText():$isNodeSelection(so)&&so.getNodes().forEach(ao=>ao.remove())})}(to,eo),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(PASTE_COMMAND,to=>{const[,no,io]=Nt(to);return no.length>0&&!io?(eo.dispatchCommand(gt,no),!0):isSelectionCapturedInDecoratorInput(to.target)?!1:$getSelection()!==null&&(function(so,ao){so.preventDefault(),ao.update(()=>{const lo=$getSelection(),uo=objectKlassEquals(so,InputEvent)||objectKlassEquals(so,KeyboardEvent)?null:so.clipboardData;uo!=null&&lo!==null&&$insertDataTransferForRichText(uo,lo,ao)},{tag:"paste"})}(to,eo),!0)},COMMAND_PRIORITY_EDITOR))}const modProd$2=Object.freeze(Object.defineProperty({__proto__:null,$createHeadingNode:wt,$createQuoteNode:ht,$isHeadingNode:Et,$isQuoteNode:vt,DRAG_DROP_PASTE:gt,HeadingNode:Ct,QuoteNode:pt,eventFiles:Nt,registerRichText:Ot},Symbol.toStringTag,{value:"Module"})),mod$2=modProd$2,DRAG_DROP_PASTE=mod$2.DRAG_DROP_PASTE,eventFiles=mod$2.eventFiles,registerRichText=mod$2.registerRichText;var p$1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function E(eo){return eo.getEditorState().read($canShowPlaceholderCurry(eo.isComposing()))}function x$3({contentEditable:eo,placeholder:to,ErrorBoundary:no}){const[io]=useLexicalComposerContext(),so=function(ao,lo){const[uo,ho]=reactExports.useState(()=>ao.getDecorators());return p$1(()=>ao.registerDecoratorListener(go=>{reactDomExports.flushSync(()=>{ho(go)})}),[ao]),reactExports.useEffect(()=>{ho(ao.getDecorators())},[ao]),reactExports.useMemo(()=>{const go=[],mo=Object.keys(uo);for(let yo=0;yoao._onError(Co)},reactExports.createElement(reactExports.Suspense,{fallback:null},uo[So])),ko=ao.getElementByKey(So);ko!==null&&go.push(reactDomExports.createPortal(_o,ko,So))}return go},[lo,uo,ao])}(io,no);return function(ao){p$1(()=>mergeRegister(registerRichText(ao),registerDragonSupport(ao)),[ao])}(io),reactExports.createElement(reactExports.Fragment,null,eo,reactExports.createElement(g,{content:to}),so)}function g({content:eo}){const[to]=useLexicalComposerContext(),no=function(so){const[ao,lo]=reactExports.useState(()=>E(so));return p$1(()=>{function uo(){const ho=E(so);lo(ho)}return uo(),mergeRegister(so.registerUpdateListener(()=>{uo()}),so.registerEditableListener(()=>{uo()}))},[so]),ao}(to),io=t$1();return no?typeof eo=="function"?eo(io):eo:null}const modProd$1=Object.freeze(Object.defineProperty({__proto__:null,RichTextPlugin:x$3},Symbol.toStringTag,{value:"Module"})),mod$1=modProd$1,RichTextPlugin=mod$1.RichTextPlugin;var RichEditorContentType=(eo=>(eo.IMAGE="image",eo.TEXT="text",eo))(RichEditorContentType||{});const FAKE_PROTOCOL="fake:",CAN_USE_DOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function d(eo,to){return eo.getEditorState().read(()=>{const no=$getNodeByKey(to);return no!==null&&no.isSelected()})}function u(eo){const[to]=useLexicalComposerContext(),[no,io]=reactExports.useState(()=>d(to,eo));return reactExports.useEffect(()=>{let so=!0;const ao=to.registerUpdateListener(()=>{so&&io(d(to,eo))});return()=>{so=!1,ao()}},[to,eo]),[no,reactExports.useCallback(so=>{to.update(()=>{let ao=$getSelection();$isNodeSelection(ao)||(ao=$createNodeSelection(),$setSelection(ao)),$isNodeSelection(ao)&&(so?ao.add(eo):ao.delete(eo))})},[to,eo]),reactExports.useCallback(()=>{to.update(()=>{const so=$getSelection();$isNodeSelection(so)&&so.clear()})},[to])]}const modProd=Object.freeze(Object.defineProperty({__proto__:null,useLexicalNodeSelection:u},Symbol.toStringTag,{value:"Module"})),mod=modProd,useLexicalNodeSelection=mod.useLexicalNodeSelection;function useEventCallback(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo}),reactExports.useCallback((...no)=>{const io=to.current;return io(...no)},[])}const INSERT_IMAGE_COMMAND=createCommand("INSERT_IMAGE_COMMAND"),INSERT_MULTIPLE_NODES_COMMAND=createCommand("INSERT_MULTIPLE_NODES_COMMAND"),RIGHT_CLICK_IMAGE_COMMAND=createCommand("RIGHT_CLICK_IMAGE_COMMAND");class RichEditorViewModel extends ViewModel{constructor(to){super(),this.editor$=new State(void 0),this.maxHeight$=new State(void 0),this.resolveUrlByPath$=new State(void 0),this.resolveUrlByFile$=new State(void 0),this._resetEditorState=to.resetEditorState,this._replaceImageSrc=to.replaceImageSrc,this._extractEditorData=to.extractEditorData}get requiredEditor(){const to=this.editor$.getSnapshot();if(!to)throw new Error("[RichEditor] editor is not prepared.");return to}focus(){this.requiredEditor.focus()}getContent(){const no=this.requiredEditor.getEditorState();return this._extractEditorData(no)}insert(to){this.requiredEditor.dispatchCommand(INSERT_MULTIPLE_NODES_COMMAND,{nodes:to})}isEmpty(){return this.requiredEditor.getEditorState().read(()=>{const so=$getRoot(),ao=so.getFirstChild();return ao?so.getChildrenSize()===1&&ao instanceof ElementNode?ao.isEmpty():!1:!0})}replaceImageSrc(to,no){const io=this.editor$.getSnapshot();if(!io)throw new Error("[RichEditor] editor is not prepared.");this._replaceImageSrc(io,to,no)}reset(to){const no=this.requiredEditor;this._resetEditorState(to)(no)}async resolveUrlByFile(to){const no=this.resolveUrlByFile$.getSnapshot();return no?no(to):""}async resolveUrlByPath(to){if(to.startsWith(FAKE_PROTOCOL))return to;const no=this.resolveUrlByPath$.getSnapshot();return(no==null?void 0:no(to))??to}}const RichEditorContextType=reactExports.createContext({viewmodel:new RichEditorViewModel({extractEditorData:()=>[],resetEditorState:()=>()=>{},replaceImageSrc:()=>{}})}),useRichEditorContext=()=>{const eo=reactExports.useContext(RichEditorContextType),to=reactExports.useContext(LexicalComposerContext),no=(to==null?void 0:to[0])??void 0;return no&&eo.viewmodel.editor$.next(no),eo},useAutoResize=()=>{const[eo]=useLexicalComposerContext(),{viewmodel:to}=useRichEditorContext(),no=useStateValue(to.maxHeight$);return useEventCallback(()=>{if(no===void 0)return;const so=eo==null?void 0:eo.getRootElement();if(so){so.style.height="24px";const ao=Math.min(no,so.scrollHeight);so.style.height=`${ao}px`}})},imageCache=new Set;function useSuspenseImage(eo){imageCache.has(eo)||new Promise(to=>{const no=new Image;no.src=eo,no.onload=()=>{imageCache.add(eo),to(null)}})}function LazyImage({alt:eo,className:to,imageRef:no,src:io,width:so,height:ao,maxWidth:lo,onLoad:uo}){return useSuspenseImage(io),jsxRuntimeExports.jsx("img",{className:to||void 0,src:io,alt:eo,ref:no,style:{height:ao,maxWidth:lo,width:so,border:"1px solid #E5E5E5"},draggable:!1,onLoad:uo})}const ImageComponent=eo=>{const{viewmodel:to}=useRichEditorContext(),no=useAutoResize(),{src:io,alt:so,nodeKey:ao,width:lo,height:uo,maxWidth:ho,isImageNode:go}=eo,[mo,yo]=reactExports.useState(io),So=reactExports.useRef(null),_o=reactExports.useRef(null),[ko,Co,$o]=useLexicalNodeSelection(ao),[Ro]=useLexicalComposerContext(),[Oo,No]=reactExports.useState(null),Mo=reactExports.useRef(null),Bo=reactExports.useCallback(ps=>{if(ko&&$isNodeSelection($getSelection())){ps.preventDefault();const hs=$getNodeByKey(ao);go(hs)&&hs.remove()}return!1},[ko,ao,go]),Fo=reactExports.useCallback(ps=>{const Qo=$getSelection(),hs=_o.current;return ko&&$isNodeSelection(Qo)&&Qo.getNodes().length===1&&hs!==null&&hs!==document.activeElement?(ps.preventDefault(),hs.focus(),!0):!1},[ko]),Lo=reactExports.useCallback(ps=>ps.target===So.current?(ps.preventDefault(),!0):!1,[]),Go=reactExports.useCallback(ps=>_o.current===ps.target?($setSelection(null),Ro.update(()=>{Co(!0);const Qo=Ro.getRootElement();Qo!==null&&Qo.focus()}),!0):!1,[Ro,Co]),Do=reactExports.useCallback(ps=>{const Qo=ps;return Qo.target===So.current?(Qo.shiftKey?Co(!ko):($o(),Co(!0)),!0):!1},[ko,Co,$o]),Uo=reactExports.useCallback(ps=>{Ro.getEditorState().read(()=>{const Qo=$getSelection();ps.target.tagName==="IMG"&&$isRangeSelection(Qo)&&Qo.getNodes().length===1&&Ro.dispatchCommand(RIGHT_CLICK_IMAGE_COMMAND,ps)})},[Ro]);reactExports.useEffect(()=>{let ps=!1;return to.resolveUrlByPath(io).then(Qo=>{ps||yo(Qo)}),()=>{ps=!0}},[to,io]),reactExports.useEffect(()=>{let ps=!0;const Qo=Ro.getRootElement(),hs=mergeRegister(Ro.registerUpdateListener(({editorState:gs})=>{ps&&No(gs.read($getSelection))}),Ro.registerCommand(SELECTION_CHANGE_COMMAND,(gs,ys)=>(Mo.current=ys,!1),COMMAND_PRIORITY_LOW),Ro.registerCommand(CLICK_COMMAND,Do,COMMAND_PRIORITY_LOW),Ro.registerCommand(RIGHT_CLICK_IMAGE_COMMAND,Do,COMMAND_PRIORITY_LOW),Ro.registerCommand(DRAGSTART_COMMAND,Lo,COMMAND_PRIORITY_LOW),Ro.registerCommand(KEY_DELETE_COMMAND,Bo,COMMAND_PRIORITY_LOW),Ro.registerCommand(KEY_BACKSPACE_COMMAND,Bo,COMMAND_PRIORITY_LOW),Ro.registerCommand(KEY_ENTER_COMMAND,Fo,COMMAND_PRIORITY_LOW),Ro.registerCommand(KEY_ESCAPE_COMMAND,Go,COMMAND_PRIORITY_LOW));return Qo==null||Qo.addEventListener("contextmenu",Uo),()=>{ps=!1,hs(),Qo==null||Qo.removeEventListener("contextmenu",Uo)}},[Ro,ko,ao,$o,Bo,Lo,Fo,Go,Do,Uo,Co]);const Ho=ko&&$isNodeSelection(Oo),qo=ko?`focused ${$isNodeSelection(Oo)?"draggable":""}`:void 0,Jo=(mo.startsWith(FAKE_PROTOCOL)?mo.slice(FAKE_PROTOCOL.length):mo).replace(/#[\s\S]*$/,"");return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx("div",{draggable:Ho,children:jsxRuntimeExports.jsx(LazyImage,{className:qo,src:Jo,alt:so,imageRef:So,width:lo,height:uo,maxWidth:ho,onLoad:no})})})};class ImageNode extends DecoratorNode{constructor(to,no,io,so,ao,lo){super(lo),this.src=to,this.alt=no,this.maxWidth=io,this.width=so||"inherit",this.height=ao||"inherit"}static getType(){return RichEditorContentType.IMAGE}static clone(to){return new ImageNode(to.src,to.alt,to.maxWidth,to.width,to.height,to.__key)}static importDOM(){return{img:to=>({conversion:convertImageElement,priority:0})}}static importJSON(to){const{alt:no,height:io,width:so,maxWidth:ao,src:lo}=to;return $createImageNode({alt:no,height:io,maxWidth:ao,src:lo,width:so})}exportDOM(){const to=document.createElement("img");return to.setAttribute("src",this.src),to.setAttribute("alt",this.alt),to.setAttribute("width",this.width.toString()),to.setAttribute("height",this.height.toString()),{element:to}}exportJSON(){return{alt:this.getAltText(),height:this.height==="inherit"?0:this.height,maxWidth:this.maxWidth,src:this.getSrc(),type:RichEditorContentType.IMAGE,version:1,width:this.width==="inherit"?0:this.width}}setWidthAndHeight(to,no){const io=this.getWritable();io.width=to,io.height=no}createDOM(to){const no=document.createElement("span"),so=to.theme.image;return so!==void 0&&(no.className=so),no}updateDOM(){return!1}getSrc(){return this.src}getAltText(){return this.alt}decorate(){return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(ImageComponent,{src:this.src,alt:this.alt,width:this.width,height:this.height,maxWidth:this.maxWidth,nodeKey:this.getKey(),isImageNode:$isImageNode})})}}function $createImageNode({alt:eo,height:to,maxWidth:no=240,src:io,width:so,key:ao}){return $applyNodeReplacement(new ImageNode(io,eo,no,so,to,ao))}function $isImageNode(eo){return eo instanceof ImageNode}function convertImageElement(eo){if(eo instanceof HTMLImageElement){const{alt:to,src:no,width:io,height:so}=eo;return no.startsWith("blob:")?null:{node:$createImageNode({alt:to,height:so,src:no,width:io})}}return null}const CommandPlugin=()=>{const[eo]=useLexicalComposerContext();return React.useLayoutEffect(()=>mergeRegister(eo.registerCommand(INSERT_MULTIPLE_NODES_COMMAND,to=>{const{nodes:no}=to;if(no.length===1&&no[0].type===RichEditorContentType.TEXT){const ao=no[0];return eo.update(()=>{const lo=$getSelection();lo&&lo.insertRawText(ao.value)}),!0}let io;const so=[];for(const ao of no)switch(ao.type){case RichEditorContentType.TEXT:{const lo=$createTextNode(ao.value),uo=$createParagraphNode();io=lo,uo.append(lo),so.push(uo);break}case RichEditorContentType.IMAGE:{const lo=$createImageNode(ao),uo=$createParagraphNode();io=lo,uo.append(lo),so.push(uo);break}}return so.length<=0||($insertNodes(so),io&&$isRootOrShadowRoot(io.getParentOrThrow())&&io.selectEnd()),!0},COMMAND_PRIORITY_EDITOR)),[eo]),jsxRuntimeExports.jsx(React.Fragment,{})};CommandPlugin.displayName="CommandPlugin";const ACCEPTABLE_IMAGE_TYPES=["image/","image/heic","image/heif","image/gif","image/webp"],DragDropPastePlugin=()=>{const[eo]=useLexicalComposerContext(),{viewmodel:to}=useRichEditorContext();return reactExports.useLayoutEffect(()=>eo.registerCommand(DRAG_DROP_PASTE,no=>{return io(),!0;async function io(){for(const so of no)if(isMimeType(so,ACCEPTABLE_IMAGE_TYPES)){const ao=so.name,lo=await to.resolveUrlByFile(so);eo.dispatchCommand(INSERT_IMAGE_COMMAND,{alt:ao,src:lo})}}},COMMAND_PRIORITY_LOW),[eo,to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};DragDropPastePlugin.displayName="DragDropPastePlugin";let Point$2=class{constructor(to,no){this._x=to,this._y=no}get x(){return this._x}get y(){return this._y}equals(to){return this.x===to.x&&this.y===to.y}calcDeltaXTo(to){return this.x-to.x}calcDeltaYTo(to){return this.y-to.y}calcHorizontalDistanceTo(to){return Math.abs(this.calcDeltaXTo(to))}calcVerticalDistance(to){return Math.abs(this.calcDeltaYTo(to))}calcDistanceTo(to){const no=this.calcDeltaXTo(to)**2,io=this.calcDeltaYTo(to)**2;return Math.sqrt(no+io)}};function isPoint(eo){return eo instanceof Point$2}class Rect{constructor(to,no,io,so){const[ao,lo]=no<=so?[no,so]:[so,no],[uo,ho]=to<=io?[to,io]:[io,to];this._top=ao,this._right=ho,this._left=uo,this._bottom=lo}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}static fromLTRB(to,no,io,so){return new Rect(to,no,io,so)}static fromLWTH(to,no,io,so){return new Rect(to,io,to+no,io+so)}static fromPoints(to,no){const{y:io,x:so}=to,{y:ao,x:lo}=no;return Rect.fromLTRB(so,io,lo,ao)}static fromDOM(to){const{top:no,width:io,left:so,height:ao}=to.getBoundingClientRect();return Rect.fromLWTH(so,io,no,ao)}equals(to){return to.top===this._top&&to.bottom===this._bottom&&to.left===this._left&&to.right===this._right}contains(to){if(isPoint(to)){const{x:no,y:io}=to,so=iothis._bottom,lo=nothis._right;return{reason:{isOnBottomSide:ao,isOnLeftSide:lo,isOnRightSide:uo,isOnTopSide:so},result:!so&&!ao&&!lo&&!uo}}else{const{top:no,left:io,bottom:so,right:ao}=to;return no>=this._top&&no<=this._bottom&&so>=this._top&&so<=this._bottom&&io>=this._left&&io<=this._right&&ao>=this._left&&ao<=this._right}}intersectsWith(to){const{left:no,top:io,width:so,height:ao}=to,{left:lo,top:uo,width:ho,height:go}=this,mo=no+so>=lo+ho?no+so:lo+ho,yo=io+ao>=uo+go?io+ao:uo+go,So=no<=lo?no:lo,_o=io<=uo?io:uo;return mo-So<=so+ho&&yo-_o<=ao+go}generateNewRect({left:to=this.left,top:no=this.top,right:io=this.right,bottom:so=this.bottom}){return new Rect(to,no,io,so)}}const SPACE=4,TARGET_LINE_HALF_HEIGHT=2,DRAGGABLE_BLOCK_MENU_CLASSNAME="draggable-block-menu",DRAG_DATA_FORMAT="application/x-lexical-drag-block",TEXT_BOX_HORIZONTAL_PADDING=28,Downward=1,Upward=-1,Indeterminate=0,DraggableBlockPlugin=eo=>{const{anchorElem:to=document.body}=eo,[no]=useLexicalComposerContext();return useDraggableBlockMenu(no,to,no._editable)};DraggableBlockPlugin.displayName="DraggableBlockPlugin";let prevIndex=1/0;function getCurrentIndex(eo){return eo===0?1/0:prevIndex>=0&&prevIndex$getRoot().getChildrenKeys())}function getCollapsedMargins(eo){const to=(ho,go)=>ho?parseFloat(window.getComputedStyle(ho)[go]):0,{marginTop:no,marginBottom:io}=window.getComputedStyle(eo),so=to(eo.previousElementSibling,"marginBottom"),ao=to(eo.nextElementSibling,"marginTop"),lo=Math.max(parseFloat(no),so);return{marginBottom:Math.max(parseFloat(io),ao),marginTop:lo}}function getBlockElement(eo,to,no,io=!1){const so=eo.getBoundingClientRect(),ao=getTopLevelNodeKeys(to);let lo=null;return to.getEditorState().read(()=>{if(io){const go=to.getElementByKey(ao[0]),mo=to.getElementByKey(ao[ao.length-1]),yo=go==null?void 0:go.getBoundingClientRect(),So=mo==null?void 0:mo.getBoundingClientRect();if(yo&&So&&(no.ySo.bottom&&(lo=mo),lo))return}let uo=getCurrentIndex(ao.length),ho=Indeterminate;for(;uo>=0&&uo{io.transform=no})}function setTargetLine(eo,to,no,io){const{top:so,height:ao}=to.getBoundingClientRect(),{top:lo,width:uo}=io.getBoundingClientRect(),{marginTop:ho,marginBottom:go}=getCollapsedMargins(to);let mo=so;no>=so?mo+=ao+go/2:mo-=ho/2;const yo=mo-lo-TARGET_LINE_HALF_HEIGHT,So=TEXT_BOX_HORIZONTAL_PADDING-SPACE,_o=eo.style;_o.transform=`translate(${So}px, ${yo}px)`,_o.width=`${uo-(TEXT_BOX_HORIZONTAL_PADDING-SPACE)*2}px`,_o.opacity=".4"}function hideTargetLine(eo){const to=eo==null?void 0:eo.style;to&&(to.opacity="0",to.transform="translate(-10000px, -10000px)")}function useDraggableBlockMenu(eo,to,no){const io=to.parentElement,so=reactExports.useRef(null),ao=reactExports.useRef(null),lo=reactExports.useRef(!1),[uo,ho]=reactExports.useState(null);reactExports.useLayoutEffect(()=>{function yo(_o){const ko=_o.target;if(!isHTMLElement(ko)){ho(null);return}if(isOnMenu(ko))return;const Co=getBlockElement(to,eo,_o);ho(Co)}function So(){ho(null)}return io==null||io.addEventListener("mousemove",yo),io==null||io.addEventListener("mouseleave",So),()=>{io==null||io.removeEventListener("mousemove",yo),io==null||io.removeEventListener("mouseleave",So)}},[io,to,eo]),reactExports.useEffect(()=>{so.current&&setMenuPosition(uo,so.current,to)},[to,uo]),reactExports.useEffect(()=>{function yo(_o){if(!lo.current)return!1;const[ko]=eventFiles(_o);if(ko)return!1;const{pageY:Co,target:$o}=_o;if(!isHTMLElement($o))return!1;const Ro=getBlockElement(to,eo,_o,!0),Oo=ao.current;return Ro===null||Oo===null?!1:(setTargetLine(Oo,Ro,Co,to),_o.preventDefault(),!0)}function So(_o){if(!lo.current)return!1;const[ko]=eventFiles(_o);if(ko)return!1;const{target:Co,dataTransfer:$o,pageY:Ro}=_o,Oo=($o==null?void 0:$o.getData(DRAG_DATA_FORMAT))||"",No=$getNodeByKey(Oo);if(!No||!isHTMLElement(Co))return!1;const Mo=getBlockElement(to,eo,_o,!0);if(!Mo)return!1;const Bo=$getNearestNodeFromDOMNode(Mo);if(!Bo)return!1;if(Bo===No)return!0;const Fo=Mo.getBoundingClientRect().top;return Ro>=Fo?Bo.insertAfter(No):Bo.insertBefore(No),ho(null),!0}return mergeRegister(eo.registerCommand(DRAGOVER_COMMAND,_o=>yo(_o),COMMAND_PRIORITY_LOW),eo.registerCommand(DROP_COMMAND,_o=>So(_o),COMMAND_PRIORITY_HIGH))},[to,eo]);const go=yo=>{const So=yo.dataTransfer;if(!So||!uo)return;setDragImage(So,uo);let _o="";eo.update(()=>{const ko=$getNearestNodeFromDOMNode(uo);ko&&(_o=ko.getKey())}),lo.current=!0,So.setData(DRAG_DATA_FORMAT,_o)},mo=()=>{lo.current=!1,hideTargetLine(ao.current)};return reactDomExports.createPortal(jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"icon draggable-block-menu",role:"button",ref:so,draggable:!0,onDragStart:go,onDragEnd:mo,children:jsxRuntimeExports.jsx("div",{className:no?"icon":""})}),jsxRuntimeExports.jsx("div",{className:"draggable-block-target-line",ref:ao})]}),to)}const EditablePlugin=eo=>{const{editable:to}=eo,[no]=useLexicalComposerContext();return reactExports.useEffect(()=>{no.setEditable(to)},[no,to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};EditablePlugin.displayName="EditablePlugin";const ImagesPlugin=()=>{const[eo]=useLexicalComposerContext();return reactExports.useLayoutEffect(()=>{if(!eo.hasNodes([ImageNode]))throw new Error("[RichEditor] ImagesPlugin: ImageNode not registered on editor");return mergeRegister(eo.registerCommand(INSERT_IMAGE_COMMAND,onInsertImage,COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGSTART_COMMAND,onDragStart,COMMAND_PRIORITY_HIGH),eo.registerCommand(DRAGOVER_COMMAND,onDragover,COMMAND_PRIORITY_LOW),eo.registerCommand(DROP_COMMAND,to=>onDrop(to,eo),COMMAND_PRIORITY_HIGH))},[eo]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};ImagesPlugin.displayName="ImagesPlugin";let _transparentImage;const getTransparentImage=()=>{if(_transparentImage===void 0){const eo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";_transparentImage=document.createElement("img"),_transparentImage.src=eo}return _transparentImage};function onInsertImage(eo){const to=$createImageNode(eo);return $insertNodes([to]),$isRootOrShadowRoot(to.getParentOrThrow())&&$wrapNodeInElement(to,$createParagraphNode).selectEnd(),!0}function onDragStart(eo){const to=getImageNodeInSelection();if(!to)return!1;const no=eo.dataTransfer;if(!no)return!1;const io=getTransparentImage();return no.setData("text/plain","_"),no.setDragImage(io,0,0),no.setData("application/x-lexical-drag",JSON.stringify({type:RichEditorContentType.IMAGE,data:{alt:to.alt,height:to.height,key:to.getKey(),maxWidth:to.maxWidth,src:to.src,width:to.width}})),!0}function onDragover(eo){return getImageNodeInSelection()?(canDropImage(eo)||eo.preventDefault(),!0):!1}function onDrop(eo,to){const no=getImageNodeInSelection();if(!no)return!1;const io=getDragImageData(eo);if(!io)return!1;if(eo.preventDefault(),canDropImage(eo)){const so=getDragSelection(eo);no.remove();const ao=$createRangeSelection();so!=null&&ao.applyDOMRange(so),$setSelection(ao),to.dispatchCommand(INSERT_IMAGE_COMMAND,io)}return!0}function getImageNodeInSelection(){const eo=$getSelection();if(!$isNodeSelection(eo))return null;const no=eo.getNodes()[0];return $isImageNode(no)?no:null}function getDragImageData(eo){var no;const to=(no=eo.dataTransfer)==null?void 0:no.getData("application/x-lexical-drag");if(!to)return null;try{const{type:io,data:so}=JSON.parse(to);return io===RichEditorContentType.IMAGE?so:null}catch{return null}}function canDropImage(eo){const to=eo.target;return!!(to&&to instanceof HTMLElement&&!to.closest("code, span.editor-image")&&to.parentElement&&to.parentElement.closest("div.ContentEditable__root"))}const getDOMSelection=eo=>CAN_USE_DOM?(eo||window).getSelection():null;function getDragSelection(eo){const to=eo,no=to.target,io=no==null?null:no.nodeType===9?no.defaultView:no.ownerDocument.defaultView,so=getDOMSelection(io);let ao;if(document.caretRangeFromPoint)ao=document.caretRangeFromPoint(to.clientX,to.clientY);else if(to.rangeParent&&so!==null)so.collapse(to.rangeParent,to.rangeOffset||0),ao=so.getRangeAt(0);else throw Error("[RichEditor] ImagesPlugin: Cannot get the selection when dragging");return ao}const OnEnterKeyPressPlugin=eo=>{const{onEnterKeyPress:to}=eo,[no]=useLexicalComposerContext(),io=useEventCallback(so=>(so.key==="Enter"&&!so.shiftKey&&!so.ctrlKey&&(so.preventDefault(),to==null||to()),!0));return reactExports.useEffect(()=>{no.registerCommand(KEY_ENTER_COMMAND,io,COMMAND_PRIORITY_HIGH)},[no,io]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};OnEnterKeyPressPlugin.displayName="OnEnterKeyPressPlugin";const OnKeyDownPlugin=eo=>{const[to]=useLexicalComposerContext(),no=reactExports.useRef(eo.onKeyDown);return reactExports.useLayoutEffect(()=>{const io=so=>{var ao;(ao=no.current)==null||ao.call(no,so)};return to.registerRootListener((so,ao)=>{ao!==null&&ao.removeEventListener("keydown",io),so!==null&&so.addEventListener("keydown",io)})},[to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};OnKeyDownPlugin.displayName="OnKeyDownPlugin";const PlainContentPastePlugin=()=>{const[eo]=useLexicalComposerContext();return reactExports.useLayoutEffect(()=>mergeRegister(eo.registerUpdateListener(to=>{to.tags.has("paste")&&eo.update(()=>{to.dirtyLeaves.forEach(no=>{const io=$getNodeByKey(no);if($isTextNode(io)){const so=$copyNode(io);so.setFormat(0),so.setStyle(""),io.replace(so)}})})}),eo.registerNodeTransform(TextNode$2,to=>{const no=to.getParentOrThrow();if($isLinkNode(no)){const io=$createTextNode(no.__url);no.insertBefore(io),no.remove()}})),[eo]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};PlainContentPastePlugin.displayName="PlainContentPastePlugin";const resetEditorState=eo=>to=>{to.update(()=>{const no=$getRoot();no.clear();for(const io of eo)if(io!=null){if(typeof io=="string"){const so=$createTextNode(io),ao=$createParagraphNode();ao.append(so),no.append(ao);continue}if(typeof io=="object"){switch(io.type){case RichEditorContentType.IMAGE:{const so=$createImageNode({alt:io.alt,src:io.src}),ao=$createParagraphNode();ao.append(so),no.append(ao);break}case RichEditorContentType.TEXT:{const so=$createTextNode(io.value),ao=$createParagraphNode();ao.append(so),no.append(ao);break}default:throw console.log("item:",io),new TypeError(`[resetEditorState] unknown rich-editor content type: ${io.type}`)}continue}console.error("[resetEditorState] unknown rich-editor data:",io)}})},RootType=RootNode.getType(),ParagraphType=ParagraphNode.getType(),TextType=TextNode$2.getType(),ImageType=ImageNode.getType(),LineBreakType=LineBreakNode.getType(),extractEditorData=eo=>{const to=eo.toJSON(),no=[];for(const so of to.root.children)io(so);return no;function io(so){switch(so.type){case ImageType:{const{src:ao,alt:lo}=so;if(ao.startsWith(FAKE_PROTOCOL)){const uo=no[no.length-1];(uo==null?void 0:uo.type)===RichEditorContentType.TEXT&&(uo.value+=` `);break}no.push({type:RichEditorContentType.IMAGE,src:ao,alt:lo});break}case LineBreakType:{const ao=no[no.length-1];(ao==null?void 0:ao.type)===RichEditorContentType.TEXT&&(ao.value+=` -`);break}case ParagraphType:{const ao=so.children;for(const lo of ao)io(lo);break}case TextType:{const ao=so.text,lo=no[no.length-1];(lo==null?void 0:lo.type)===RichEditorContentType.TEXT?lo.value+=ao:no.push({type:RichEditorContentType.TEXT,value:ao});break}default:throw new TypeError(`[RichEditor] [extractEditorData] Unknown node.type: (${so.type})`)}}},replaceImageSrc=(eo,to,no)=>{eo.update(()=>{const io=$getRoot();so(io);function so(ao){switch(ao.getType()){case RootType:case ParagraphType:for(const lo of ao.getChildren())so(lo);break;case ImageType:{const lo=ao;if(lo.getSrc()===to){const uo=$createImageNode({alt:lo.getAltText(),src:no});lo.replace(uo)}break}}}})};class RichEditor extends reactExports.Component{constructor(to){super(to),this.state={floatingAnchorElem:null};const{editable:no=!0,initialContent:io}=this.props;this.initialConfig={namespace:"react-simple-rich-editor",theme:{ltr:"ltr",rtl:"rtl",placeholder:classes$4.editorPlaceholder,paragraph:classes$4.editorParagraph},nodes:[ImageNode,LinkNode],editable:no,editorState:io?resetEditorState(io):null,onError:so=>{console.error(so)}},this.onKeyDown=this.onKeyDown.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onChange=this.onChange.bind(this),this.onEditorInputWrapperRef=this.onEditorInputWrapperRef.bind(this)}render(){const{initialConfig:to,onKeyDown:no,onFocus:io,onBlur:so,onChange:ao,onEditorInputWrapperRef:lo}=this,{editable:uo=!0,placeholder:ho="Enter some text...",pluginsBeforeRichEditors:go=[],pluginsAfterRichEditors:mo=[],onEnterKeyPress:yo}=this.props,{floatingAnchorElem:So}=this.state,_o=mergeStyles$1(classes$4.editorContainer,this.props.editorContainerCls),ko=mergeStyles$1(classes$4.editorInput,this.props.editorInputCls),Co=mergeStyles$1(classes$4.editorInputBox,this.props.editorInputBoxCls),$o=mergeStyles$1(classes$4.editorPlaceholder,this.props.editorPlaceholderCls),Ro=jsxRuntimeExports.jsx("div",{ref:lo,className:Co,children:jsxRuntimeExports.jsx(ContentEditable,{onFocus:io,onBlur:so,className:ko})});return jsxRuntimeExports.jsxs(LexicalComposer,{initialConfig:to,children:[jsxRuntimeExports.jsx(EditablePlugin,{editable:uo}),jsxRuntimeExports.jsx(CommandPlugin,{}),jsxRuntimeExports.jsxs("div",{className:_o,children:[go,jsxRuntimeExports.jsx(RichTextPlugin,{contentEditable:Ro,placeholder:jsxRuntimeExports.jsx("div",{className:$o,children:ho}),ErrorBoundary:LexicalErrorBoundary}),mo,yo&&jsxRuntimeExports.jsx(OnEnterKeyPressPlugin,{onEnterKeyPress:yo}),jsxRuntimeExports.jsx(OnKeyDownPlugin,{onKeyDown:no}),jsxRuntimeExports.jsx(OnChangePlugin,{onChange:ao}),jsxRuntimeExports.jsx(DragDropPastePlugin,{}),jsxRuntimeExports.jsx(PlainContentPastePlugin,{}),jsxRuntimeExports.jsx(ImagesPlugin,{}),jsxRuntimeExports.jsx(HistoryPlugin,{}),So&&jsxRuntimeExports.jsx(DraggableBlockPlugin,{anchorElem:So})]})]})}onKeyDown(to){var no,io;(io=(no=this.props).onKeyDown)==null||io.call(no,to)}onFocus(to){var no,io;(io=(no=this.props).onFocus)==null||io.call(no,to)}onBlur(to){var no,io;(io=(no=this.props).onBlur)==null||io.call(no,to)}onChange(to){var no,io;(io=(no=this.props).onChange)==null||io.call(no,to)}onEditorInputWrapperRef(to){to!==null&&this.setState({floatingAnchorElem:to})}}const classes$4=mergeStyleSets({editorContainer:{boxSizing:"border-box",position:"relative"},editorInputBox:{boxSizing:"border-box",overflow:"auto",border:"none",position:"relative",fontWeight:"400",textAlign:"left"},editorInput:{overflow:"auto",boxSizing:"border-box",resize:"none",fontSize:"15px",position:"relative",tabSize:"1",outline:"0","> :last-child":{marginBottom:0}},editorPlaceholder:{boxSizing:"border-box",color:"#999",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",top:"0px",left:"0px",fontSize:"15px",userSelect:"none",display:"inline-block",pointerEvents:"none",width:"100%"},editorParagraph:{margin:"0 0 15px 0",position:"relative"}}),ReactRichEditor=reactExports.forwardRef((eo,to)=>{const[no]=reactExports.useState(()=>new RichEditorViewModel({extractEditorData,replaceImageSrc,resetEditorState})),io=reactExports.useMemo(()=>({viewmodel:no}),[no]);return no.resolveUrlByFile$.next(eo.resolveUrlByFile),no.resolveUrlByPath$.next(eo.resolveUrlByPath),reactExports.useImperativeHandle(to,()=>({focus:()=>{io.viewmodel.focus()},getContent:()=>io.viewmodel.getContent(),insert:so=>{io.viewmodel.insert(so)},isEmpty:()=>io.viewmodel.isEmpty(),replaceImageSrc:(so,ao)=>{io.viewmodel.replaceImageSrc(so,ao)},reset:so=>{io.viewmodel.reset(so)}})),jsxRuntimeExports.jsx(RichEditorContextType.Provider,{value:io,children:jsxRuntimeExports.jsx(RichEditor,{...eo})})});ReactRichEditor.displayName="ReactRichEditor";makeStyles({editor:{...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens$1.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative"}});makeStyles({chatbox:{...shorthands.borderRadius("8px"),display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:tokens$1.colorNeutralBackground1,width:"100%",height:"100%",boxShadow:"0px 6.4px 14.4px rgba(0, 0, 0, 0.132), 0px 1.2px 3.6px rgba(0, 0, 0, 0.108)","::-webkit-scrollbar":{width:"4px",backgroundColor:tokens$1.colorNeutralBackground1Hover},"::-webkit-scrollbar-thumb":{backgroundColor:tokens$1.colorScrollbarOverlay,...shorthands.border("1px","solid",tokens$1.colorNeutralBackground1),...shorthands.borderRadius("9999px")},"::-webkit-scrollbar-thumb:hover":{backgroundColor:tokens$1.colorNeutralForeground1Static},"::-webkit-scrollbar-track":{...shorthands.borderRadius("9999px"),backgroundColor:"transparent"}},header:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),...shorthands.overflow("hidden","auto")},footer:{...shorthands.flex(0,0,"auto")}});makeStyles({header:{},topbar:{...shorthands.padding("0px","16px"),...shorthands.borderBottom("1px","solid",tokens$1.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",height:"48px"},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:tokens$1.colorNeutralForeground2}});makeStyles({main:{...shorthands.padding("0","16px"),...shorthands.overflow("hidden","auto"),height:"100%"}});makeStyles({footer:{...shorthands.padding("16px"),boxSizing:"border-box"},footerContainer:{display:"flex"},leftToolbar:{...shorthands.flex(0,0,"auto")},editor:{...shorthands.flex(1),boxSizing:"border-box"},validation:{boxSizing:"border-box"},validationInner:{...shorthands.border("1px","solid",tokens$1.colorNeutralBackground5),...shorthands.borderRadius("4px"),...shorthands.margin("8px","0px"),...shorthands.padding("2px","8px"),backgroundColor:tokens$1.colorStatusWarningBackground1,color:tokens$1.colorStatusWarningForeground1}});const capitalizeFirstLetter=eo=>eo.charAt(0).toUpperCase()+eo.slice(1),getSenderNameByLLMMessage=eo=>eo.role&&eo.name?`${eo.role}: ${eo.name}`:eo.role?eo.role:eo.name?eo.name:"user",defaultCalcContentForCopy=eo=>JSON.stringify(eo.content),messageRoleToCategory=eo=>{switch(eo){case"system":return ChatMessageCategory.System;case"user":return ChatMessageCategory.User;default:return ChatMessageCategory.Chatbot}},EMPTY_CONTEXTUAL_MENU_ITEMS=[],defaultUseContextualMenuItems=eo=>EMPTY_CONTEXTUAL_MENU_ITEMS;function LLMNodeMessageBubbleRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:no=DefaultMessageContentRenderer,MessageErrorRenderer:io=DefaultMessageErrorRenderer,MessageSenderRenderer:so=DefaultMessageSenderRenderer,MessagePaginationRenderer:ao=DefaultMessagePaginationRenderer,MessageActionBarRenderer:lo=DefaultMessageActionBarRenderer,MessageStatusRenderer:uo=DefaultMessageStatusRenderer,useMessageContextualMenuItems:ho=defaultUseContextualMenuItems,useMessageActions:go,initialPage:mo=-1,locStrings:yo,message:So,className:_o}=eo,ko=useStyles$3(),[Co,$o]=React.useState((mo%So.history.length+So.history.length)%So.history.length),[Ro,Oo]=React.useState(!1),No=React.useRef(null),Mo=React.useRef(null),Bo=React.useCallback(()=>{Oo(!1)},[]),Po=React.useCallback(qo=>{const Jo=No.current,ps=Mo.current;if(Jo&&ps){const Qo=qo.clientX,hs=qo.clientY,gs=Jo.getBoundingClientRect(),ys=gs.left+window.scrollX,vs=gs.top+window.scrollY,ks=Qo-ys,Os=hs-vs;ps.style.left=`${ks}px`,ps.style.top=`${Os}px`}},[]),Lo=React.useCallback(qo=>{qo.preventDefault(),Po(qo),Oo(!0)},[Po]),Go=So.history[Co],Do="left",Uo=ho(Go);React.useEffect(()=>{const qo=()=>{Oo(!1)};return document.addEventListener("mousedown",qo),()=>document.removeEventListener("mousedown",qo)},[]);const Ho=getColorForMessageContent(Go.content[0]??{}),Yo=getColorForMessage(Go.content[0]??{});return jsxRuntimeExports.jsx("div",{className:ko.container,"data-chatbox-locator":ChatboxLocator.MessageBubble,"data-position":Do,children:jsxRuntimeExports.jsx("div",{className:mergeClasses(ko.message,_o),"data-position":Do,children:jsxRuntimeExports.jsxs("div",{className:ko.main,children:[jsxRuntimeExports.jsxs("div",{className:ko.heading,children:[jsxRuntimeExports.jsx("div",{className:ko.avatar,children:to&&jsxRuntimeExports.jsx(to,{data:Go,position:Do})}),jsxRuntimeExports.jsx("div",{className:ko.sender,children:jsxRuntimeExports.jsx(so,{data:Go,position:Do,style:{"--sender-color":Yo.color}})})]}),jsxRuntimeExports.jsxs("div",{ref:No,className:ko.content,style:Ho,"data-category":Go.category,"data-chatbox-locator":ChatboxLocator.MessageContent,"data-chatbox-color":Yo.backgroundColor,onContextMenu:Lo,onClick:Po,children:[jsxRuntimeExports.jsx(no,{content:Go.content,className:ko.contentMain}),Go.error&&jsxRuntimeExports.jsx(io,{error:Go.error,locStrings:yo,className:ko.error}),typeof Go.duration=="number"&&typeof Go.tokens=="number"&&jsxRuntimeExports.jsx(uo,{duration:Go.duration,tokens:Go.tokens,locStrings:yo,className:ko.status}),So.history.length>1&&jsxRuntimeExports.jsx(ao,{className:ko.pagination,message:So,current:Co,setCurrent:$o}),jsxRuntimeExports.jsx("div",{ref:Mo,className:ko.contentMenuAnchor}),Uo.length>0&&jsxRuntimeExports.jsx(ContextualMenu,{items:Uo,hidden:!Ro,target:Mo,onItemClick:Bo,onDismiss:Bo,className:ko.contextualMenu}),jsxRuntimeExports.jsx("div",{className:ko.actionBar,"data-chatbox-locator":ChatboxLocator.MessageActionBar,children:jsxRuntimeExports.jsx(lo,{data:Go,locStrings:yo,useMessageActions:go})})]})]})})})}LLMNodeMessageBubbleRenderer.displayName="LLMNodeMessageBubbleRenderer";const useStyles$3=makeStyles({container:{...shorthands.margin("16px","0"),display:"flex",justifyContent:"flex-start",'&&[data-position="right"]':{justifyContent:"flex-end"},width:"100%"},message:{display:"flex",flexDirection:"row",'&&[data-position="right"]':{flexDirection:"row-reverse"},width:"calc(100% - 8px)"},heading:{display:"flex",alignContent:"center",marginBottom:"8px"},avatar:{paddingRight:"6px",...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...shorthands.flex(0,0,"auto"),fontSize:"16px",fontWeight:600,lineHeight:"22px","& span:first-child":{color:"var(--sender-color)"}},content:{...shorthands.flex(1,1,"auto"),...shorthands.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...shorthands.margin(0)},[`&:hover > ${ChatboxSelector.MessageActionBar}`]:{display:"flex",visibility:"visible"}},contentMain:{...shorthands.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...shorthands.borderTop("1px","solid",tokens$1.colorPaletteDarkRedBorderActive),marginTop:"8px !important",paddingTop:"8px"},pagination:{},status:{...shorthands.borderTop("1px","solid",tokens$1.colorNeutralStroke1),...shorthands.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function MessageSenderRenderer(eo){const{data:to,position:no,className:io,style:so}=eo,ao=useStyles$2(),{name:lo}=to.content[0];return jsxRuntimeExports.jsx("div",{className:mergeClasses(ao.container,io),"data-position":no,style:so,children:lo&&jsxRuntimeExports.jsx("span",{className:ao.name,"data-position":no,"data-category":to.category,children:lo})})}MessageSenderRenderer.displayName="MessageSenderRenderer";const useStyles$2=makeStyles({container:{display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"flex-start",color:tokens$1.colorNeutralForeground3},name:{...shorthands.margin("0px","0px","0px","6px"),fontSize:"16px",lineHeight:"22px"},role:{marginLeft:"6px"}});var RichContentType=(eo=>(eo.TEXT="text",eo.IMAGE_URL="image_url",eo.IMAGE_FILE="image_file",eo))(RichContentType||{});const RichTextChatboxMessageContent=eo=>{const{content:to,className:no}=eo,io=reactExports.useMemo(()=>to.map(ho=>weaveRichNodesIntoMarkup(ho.content??"")).join(` +`);break}case ParagraphType:{const ao=so.children;for(const lo of ao)io(lo);break}case TextType:{const ao=so.text,lo=no[no.length-1];(lo==null?void 0:lo.type)===RichEditorContentType.TEXT?lo.value+=ao:no.push({type:RichEditorContentType.TEXT,value:ao});break}default:throw new TypeError(`[RichEditor] [extractEditorData] Unknown node.type: (${so.type})`)}}},replaceImageSrc=(eo,to,no)=>{eo.update(()=>{const io=$getRoot();so(io);function so(ao){switch(ao.getType()){case RootType:case ParagraphType:for(const lo of ao.getChildren())so(lo);break;case ImageType:{const lo=ao;if(lo.getSrc()===to){const uo=$createImageNode({alt:lo.getAltText(),src:no});lo.replace(uo)}break}}}})};class RichEditor extends reactExports.Component{constructor(to){super(to),this.state={floatingAnchorElem:null};const{editable:no=!0,initialContent:io}=this.props;this.initialConfig={namespace:"react-simple-rich-editor",theme:{ltr:"ltr",rtl:"rtl",placeholder:classes$4.editorPlaceholder,paragraph:classes$4.editorParagraph},nodes:[ImageNode,LinkNode],editable:no,editorState:io?resetEditorState(io):null,onError:so=>{console.error(so)}},this.onKeyDown=this.onKeyDown.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onChange=this.onChange.bind(this),this.onEditorInputWrapperRef=this.onEditorInputWrapperRef.bind(this)}render(){const{initialConfig:to,onKeyDown:no,onFocus:io,onBlur:so,onChange:ao,onEditorInputWrapperRef:lo}=this,{editable:uo=!0,placeholder:ho="Enter some text...",pluginsBeforeRichEditors:go=[],pluginsAfterRichEditors:mo=[],onEnterKeyPress:yo}=this.props,{floatingAnchorElem:So}=this.state,_o=mergeStyles$1(classes$4.editorContainer,this.props.editorContainerCls),ko=mergeStyles$1(classes$4.editorInput,this.props.editorInputCls),Co=mergeStyles$1(classes$4.editorInputBox,this.props.editorInputBoxCls),$o=mergeStyles$1(classes$4.editorPlaceholder,this.props.editorPlaceholderCls),Ro=jsxRuntimeExports.jsx("div",{ref:lo,className:Co,children:jsxRuntimeExports.jsx(ContentEditable,{onFocus:io,onBlur:so,className:ko})});return jsxRuntimeExports.jsxs(LexicalComposer,{initialConfig:to,children:[jsxRuntimeExports.jsx(EditablePlugin,{editable:uo}),jsxRuntimeExports.jsx(CommandPlugin,{}),jsxRuntimeExports.jsxs("div",{className:_o,children:[go,jsxRuntimeExports.jsx(RichTextPlugin,{contentEditable:Ro,placeholder:jsxRuntimeExports.jsx("div",{className:$o,children:ho}),ErrorBoundary:LexicalErrorBoundary}),mo,yo&&jsxRuntimeExports.jsx(OnEnterKeyPressPlugin,{onEnterKeyPress:yo}),jsxRuntimeExports.jsx(OnKeyDownPlugin,{onKeyDown:no}),jsxRuntimeExports.jsx(OnChangePlugin,{onChange:ao}),jsxRuntimeExports.jsx(DragDropPastePlugin,{}),jsxRuntimeExports.jsx(PlainContentPastePlugin,{}),jsxRuntimeExports.jsx(ImagesPlugin,{}),jsxRuntimeExports.jsx(HistoryPlugin,{}),So&&jsxRuntimeExports.jsx(DraggableBlockPlugin,{anchorElem:So})]})]})}onKeyDown(to){var no,io;(io=(no=this.props).onKeyDown)==null||io.call(no,to)}onFocus(to){var no,io;(io=(no=this.props).onFocus)==null||io.call(no,to)}onBlur(to){var no,io;(io=(no=this.props).onBlur)==null||io.call(no,to)}onChange(to){var no,io;(io=(no=this.props).onChange)==null||io.call(no,to)}onEditorInputWrapperRef(to){to!==null&&this.setState({floatingAnchorElem:to})}}const classes$4=mergeStyleSets({editorContainer:{boxSizing:"border-box",position:"relative"},editorInputBox:{boxSizing:"border-box",overflow:"auto",border:"none",position:"relative",fontWeight:"400",textAlign:"left"},editorInput:{overflow:"auto",boxSizing:"border-box",resize:"none",fontSize:"15px",position:"relative",tabSize:"1",outline:"0","> :last-child":{marginBottom:0}},editorPlaceholder:{boxSizing:"border-box",color:"#999",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",top:"0px",left:"0px",fontSize:"15px",userSelect:"none",display:"inline-block",pointerEvents:"none",width:"100%"},editorParagraph:{margin:"0 0 15px 0",position:"relative"}}),ReactRichEditor=reactExports.forwardRef((eo,to)=>{const[no]=reactExports.useState(()=>new RichEditorViewModel({extractEditorData,replaceImageSrc,resetEditorState})),io=reactExports.useMemo(()=>({viewmodel:no}),[no]);return no.resolveUrlByFile$.next(eo.resolveUrlByFile),no.resolveUrlByPath$.next(eo.resolveUrlByPath),reactExports.useImperativeHandle(to,()=>({focus:()=>{io.viewmodel.focus()},getContent:()=>io.viewmodel.getContent(),insert:so=>{io.viewmodel.insert(so)},isEmpty:()=>io.viewmodel.isEmpty(),replaceImageSrc:(so,ao)=>{io.viewmodel.replaceImageSrc(so,ao)},reset:so=>{io.viewmodel.reset(so)}})),jsxRuntimeExports.jsx(RichEditorContextType.Provider,{value:io,children:jsxRuntimeExports.jsx(RichEditor,{...eo})})});ReactRichEditor.displayName="ReactRichEditor";makeStyles({editor:{...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens$1.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative"}});makeStyles({chatbox:{...shorthands.borderRadius("8px"),display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:tokens$1.colorNeutralBackground1,width:"100%",height:"100%",boxShadow:"0px 6.4px 14.4px rgba(0, 0, 0, 0.132), 0px 1.2px 3.6px rgba(0, 0, 0, 0.108)","::-webkit-scrollbar":{width:"4px",backgroundColor:tokens$1.colorNeutralBackground1Hover},"::-webkit-scrollbar-thumb":{backgroundColor:tokens$1.colorScrollbarOverlay,...shorthands.border("1px","solid",tokens$1.colorNeutralBackground1),...shorthands.borderRadius("9999px")},"::-webkit-scrollbar-thumb:hover":{backgroundColor:tokens$1.colorNeutralForeground1Static},"::-webkit-scrollbar-track":{...shorthands.borderRadius("9999px"),backgroundColor:"transparent"}},header:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),...shorthands.overflow("hidden","auto")},footer:{...shorthands.flex(0,0,"auto")}});makeStyles({header:{},topbar:{...shorthands.padding("0px","16px"),...shorthands.borderBottom("1px","solid",tokens$1.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",height:"48px"},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:tokens$1.colorNeutralForeground2}});makeStyles({main:{...shorthands.padding("0","16px"),...shorthands.overflow("hidden","auto"),height:"100%"}});makeStyles({footer:{...shorthands.padding("16px"),boxSizing:"border-box"},footerContainer:{display:"flex"},leftToolbar:{...shorthands.flex(0,0,"auto")},editor:{...shorthands.flex(1),boxSizing:"border-box"},validation:{boxSizing:"border-box"},validationInner:{...shorthands.border("1px","solid",tokens$1.colorNeutralBackground5),...shorthands.borderRadius("4px"),...shorthands.margin("8px","0px"),...shorthands.padding("2px","8px"),backgroundColor:tokens$1.colorStatusWarningBackground1,color:tokens$1.colorStatusWarningForeground1}});const capitalizeFirstLetter=eo=>eo.charAt(0).toUpperCase()+eo.slice(1),getSenderNameByLLMMessage=eo=>eo.role&&eo.name?`${eo.role}: ${eo.name}`:eo.role?eo.role:eo.name?eo.name:"user",defaultCalcContentForCopy=eo=>JSON.stringify(eo.content),messageRoleToCategory=eo=>{switch(eo){case"system":return ChatMessageCategory.System;case"user":return ChatMessageCategory.User;default:return ChatMessageCategory.Chatbot}},EMPTY_CONTEXTUAL_MENU_ITEMS=[],defaultUseContextualMenuItems=eo=>EMPTY_CONTEXTUAL_MENU_ITEMS;function LLMNodeMessageBubbleRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:no=DefaultMessageContentRenderer,MessageErrorRenderer:io=DefaultMessageErrorRenderer,MessageSenderRenderer:so=DefaultMessageSenderRenderer,MessagePaginationRenderer:ao=DefaultMessagePaginationRenderer,MessageActionBarRenderer:lo=DefaultMessageActionBarRenderer,MessageStatusRenderer:uo=DefaultMessageStatusRenderer,useMessageContextualMenuItems:ho=defaultUseContextualMenuItems,useMessageActions:go,initialPage:mo=-1,locStrings:yo,message:So,className:_o}=eo,ko=useStyles$3(),[Co,$o]=React.useState((mo%So.history.length+So.history.length)%So.history.length),[Ro,Oo]=React.useState(!1),No=React.useRef(null),Mo=React.useRef(null),Bo=React.useCallback(()=>{Oo(!1)},[]),Fo=React.useCallback(qo=>{const Jo=No.current,ps=Mo.current;if(Jo&&ps){const Qo=qo.clientX,hs=qo.clientY,gs=Jo.getBoundingClientRect(),ys=gs.left+window.scrollX,vs=gs.top+window.scrollY,ks=Qo-ys,Os=hs-vs;ps.style.left=`${ks}px`,ps.style.top=`${Os}px`}},[]),Lo=React.useCallback(qo=>{qo.preventDefault(),Fo(qo),Oo(!0)},[Fo]),Go=So.history[Co],Do="left",Uo=ho(Go);React.useEffect(()=>{const qo=()=>{Oo(!1)};return document.addEventListener("mousedown",qo),()=>document.removeEventListener("mousedown",qo)},[]);const Ho=getColorForMessageContent(Go.content[0]??{}),Yo=getColorForMessage(Go.content[0]??{});return jsxRuntimeExports.jsx("div",{className:ko.container,"data-chatbox-locator":ChatboxLocator.MessageBubble,"data-position":Do,children:jsxRuntimeExports.jsx("div",{className:mergeClasses(ko.message,_o),"data-position":Do,children:jsxRuntimeExports.jsxs("div",{className:ko.main,children:[jsxRuntimeExports.jsxs("div",{className:ko.heading,children:[jsxRuntimeExports.jsx("div",{className:ko.avatar,children:to&&jsxRuntimeExports.jsx(to,{data:Go,position:Do})}),jsxRuntimeExports.jsx("div",{className:ko.sender,children:jsxRuntimeExports.jsx(so,{data:Go,position:Do,style:{"--sender-color":Yo.color}})})]}),jsxRuntimeExports.jsxs("div",{ref:No,className:ko.content,style:Ho,"data-category":Go.category,"data-chatbox-locator":ChatboxLocator.MessageContent,"data-chatbox-color":Yo.backgroundColor,onContextMenu:Lo,onClick:Fo,children:[jsxRuntimeExports.jsx(no,{content:Go.content,className:ko.contentMain}),Go.error&&jsxRuntimeExports.jsx(io,{error:Go.error,locStrings:yo,className:ko.error}),typeof Go.duration=="number"&&typeof Go.tokens=="number"&&jsxRuntimeExports.jsx(uo,{duration:Go.duration,tokens:Go.tokens,locStrings:yo,className:ko.status}),So.history.length>1&&jsxRuntimeExports.jsx(ao,{className:ko.pagination,message:So,current:Co,setCurrent:$o}),jsxRuntimeExports.jsx("div",{ref:Mo,className:ko.contentMenuAnchor}),Uo.length>0&&jsxRuntimeExports.jsx(ContextualMenu,{items:Uo,hidden:!Ro,target:Mo,onItemClick:Bo,onDismiss:Bo,className:ko.contextualMenu}),jsxRuntimeExports.jsx("div",{className:ko.actionBar,"data-chatbox-locator":ChatboxLocator.MessageActionBar,children:jsxRuntimeExports.jsx(lo,{data:Go,locStrings:yo,useMessageActions:go})})]})]})})})}LLMNodeMessageBubbleRenderer.displayName="LLMNodeMessageBubbleRenderer";const useStyles$3=makeStyles({container:{...shorthands.margin("16px","0"),display:"flex",justifyContent:"flex-start",'&&[data-position="right"]':{justifyContent:"flex-end"},width:"100%"},message:{display:"flex",flexDirection:"row",'&&[data-position="right"]':{flexDirection:"row-reverse"},width:"calc(100% - 8px)"},heading:{display:"flex",alignContent:"center",marginBottom:"8px"},avatar:{paddingRight:"6px",...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...shorthands.flex(0,0,"auto"),fontSize:"16px",fontWeight:600,lineHeight:"22px","& span:first-child":{color:"var(--sender-color)"}},content:{...shorthands.flex(1,1,"auto"),...shorthands.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...shorthands.margin(0)},[`&:hover > ${ChatboxSelector.MessageActionBar}`]:{display:"flex",visibility:"visible"}},contentMain:{...shorthands.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...shorthands.borderTop("1px","solid",tokens$1.colorPaletteDarkRedBorderActive),marginTop:"8px !important",paddingTop:"8px"},pagination:{},status:{...shorthands.borderTop("1px","solid",tokens$1.colorNeutralStroke1),...shorthands.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function MessageSenderRenderer(eo){const{data:to,position:no,className:io,style:so}=eo,ao=useStyles$2(),{name:lo}=to.content[0];return jsxRuntimeExports.jsx("div",{className:mergeClasses(ao.container,io),"data-position":no,style:so,children:lo&&jsxRuntimeExports.jsx("span",{className:ao.name,"data-position":no,"data-category":to.category,children:lo})})}MessageSenderRenderer.displayName="MessageSenderRenderer";const useStyles$2=makeStyles({container:{display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"flex-start",color:tokens$1.colorNeutralForeground3},name:{...shorthands.margin("0px","0px","0px","6px"),fontSize:"16px",lineHeight:"22px"},role:{marginLeft:"6px"}});var RichContentType=(eo=>(eo.TEXT="text",eo.IMAGE_URL="image_url",eo.IMAGE_FILE="image_file",eo))(RichContentType||{});const RichTextChatboxMessageContent=eo=>{const{content:to,className:no}=eo,io=reactExports.useMemo(()=>to.map(ho=>weaveRichNodesIntoMarkup(ho.content??"")).join(` `),[to]),so=useStyles$1(),ao=mergeClasses(so.content,no,"rich-text-chatbox-message-content"),uo=useIsDark()?"darken":"lighten";return jsxRuntimeExports.jsxs("div",{className:ao,children:[jsxRuntimeExports.jsx(ReactMarkdown,{text:io,themeScheme:uo}),jsxRuntimeExports.jsx(LLMNodeMessageToolCalls,{message:to[0]})]})},useStyles$1=makeStyles({content:{...shorthands.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"},popoverTrigger:{cursor:"pointer",marginLeft:"4px",color:tokens$1.colorBrandBackground,...shorthands.textDecoration("underline")}});function weaveRichNodesIntoMarkup(eo){if(typeof eo=="string")return eo;return Array.isArray(eo)?eo.map(to).filter(Boolean).join(` -`):new Error("content type is not supported");function to(no){var io,so,ao,lo;switch(no.type){case RichContentType.TEXT:return no.text??"";case RichContentType.IMAGE_URL:return`![${(io=no.image_url)==null?void 0:io.url}](${(so=no.image_url)==null?void 0:so.url})`;case RichContentType.IMAGE_FILE:return`![${(ao=no.image_file)==null?void 0:ao.path}](${(lo=no.image_file)==null?void 0:lo.path})`;default:return""}}}const useMessagesContainerStyles=makeStyles({messagesContainer:{display:"flex",height:"100%",width:"100%"},minimap:{boxSizing:"border-box",height:"100%",width:"12px"},minimapInner:{boxSizing:"border-box",...shorthands.padding("1px"),...shorthands.border("1px","solid",tokens$1.colorNeutralStroke2),...shorthands.borderRadius("2px")},minimapElement:{width:"8px !important",cursor:"pointer",...shorthands.borderRadius("1px"),"&:hover":{backgroundColor:"var(--element-hover-background-color) !important"}},minimapViewport:{display:"none"}}),LLMNodeMessagesList=eo=>{const to=useSelectedSpan(),no=useMessagesContainerStyles(),io=reactExports.useRef(null),so=ChatboxSelector.MessageList,ao=ChatboxSelector.MessageContent,lo=eo.messages.map((uo,ho)=>({id:ho,type:ChatMessageType.Message,history:[{content:[{content:uo.content??"",name:uo.name,role:uo.role,timestamp:uo.timestamp,function_call:uo.function_call,tool_calls:uo.tool_calls,tools:eo.tools}],category:messageRoleToCategory(uo.role),from:capitalizeFirstLetter(getSenderNameByLLMMessage(uo)),timestamp:uo.role==="assistant"?to==null?void 0:to.start_time:to==null?void 0:to.end_time}]}));return reactExports.useEffect(()=>{const uo=document.querySelectorAll(".rich-text-chatbox-message-content"),ho=uo[uo.length-1];ho&&ho.scrollIntoView({block:"end"})},[]),jsxRuntimeExports.jsxs("div",{className:no.messagesContainer,children:[jsxRuntimeExports.jsx(ChatboxMessageList,{locStrings:defaultLocStrings$1,messages:lo,calcContentForCopy:defaultCalcContentForCopy,containerRef:io}),jsxRuntimeExports.jsx("div",{className:no.minimap,children:jsxRuntimeExports.jsx(Minimap,{className:no.minimapInner,syncScale:!1,sourceRootRef:io,sourceQuerySelector:so,sourceElementQuerySelector:ao,viewportClassName:no.minimapViewport,overviewElementClassName:no.minimapElement,getElementBackgroundColor:uo=>{var ho;return((ho=uo==null?void 0:uo.dataset)==null?void 0:ho.chatboxColor)||""},renderElement:(uo,ho,go,mo)=>{var Co,$o;const yo=lo[ho],So=((Co=yo==null?void 0:yo.history[0])==null?void 0:Co.from)??"",_o=(($o=yo==null?void 0:yo.history[0])==null?void 0:$o.content[0])??{},{hoverColor:ko}=getColorForMessage(_o);return jsxRuntimeExports.jsx(Tooltip,{content:So,relationship:"label",positioning:"before",children:jsxRuntimeExports.jsx("div",{className:go,style:{...mo,"--element-hover-background-color":ko}},ho)},ho)}})})]})},MessageAvatarRenderer=({data:eo,className:to})=>jsxRuntimeExports.jsx(LLMMessageSenderBadge,{name:eo.content[0].name,role:eo.content[0].role,className:to});function ChatboxMessageList(eo){const{locStrings:to,messages:no,calcContentForCopy:io,containerRef:so}=eo,ao=useCopyAction(to,io),lo=reactExports.useCallback(()=>[ao],[ao]),uo=useStyles();return jsxRuntimeExports.jsx("div",{ref:so,className:uo.main,children:jsxRuntimeExports.jsx(MessageListRenderer,{locStrings:to,messages:no,MessageAvatarRenderer,MessageContentRenderer:RichTextChatboxMessageContent,MessageSenderRenderer,MessageBubbleRenderer:LLMNodeMessageBubbleRenderer,useMessageActions:lo})})}ChatboxMessageList.displayName="ChatboxMessageList";const useStyles=makeStyles({main:{...shorthands.padding("0","6px"),...shorthands.overflow("auto"),...shorthands.flex(1),height:"100%"}}),getVariableHoverMarkdown=eo=>{let to="";return typeof eo=="string"?to=eo:to=JSON.stringify(eo),to},useLLMJinjaEditorMount=eo=>reactExports.useCallback(no=>{const io=Object.keys(eo),so=no.getModel();io.forEach(ao=>{const lo=so==null?void 0:so.findMatches(`[^.](${ao})\\s*(%|\\})`,!1,!0,!1,null,!1);lo==null||lo.forEach(uo=>{no.createDecorationsCollection([{range:{...uo.range,startColumn:uo.range.startColumn+1,endColumn:uo.range.endColumn-1},options:{isWholeLine:!1,inlineClassName:"llm-variable-highlight",hoverMessage:{value:getVariableHoverMarkdown(eo[ao])}}}])})})},[eo]),useMessageCardClasses=makeStyles({card:{...shorthands.borderRadius("8px"),...shorthands.borderColor(tokens$1.colorNeutralStroke1),...shorthands.borderWidth("1px"),...shorthands.borderStyle("solid"),...shorthands.padding("16px"),...shorthands.margin("16px")}}),useClasses$j=makeStyles({root:{height:"100%",display:"flex",flexDirection:"column",...shorthands.overflow("auto")},title:{fontSize:"14px",lineHeight:"20px",fontStyle:"italic",fontWeight:400,color:tokens$1.colorNeutralForeground1},card:{flexGrow:1,...shorthands.padding("0px"),...shorthands.margin("0px")}}),LLMNodePromptTemplateTab=()=>{var ho,go;const eo=useParentSpanOfSelectedSpan(),to=eo==null?void 0:eo.attributes,[no,io]=reactExports.useState(ViewStatus.loading),so=useLoadSpanEvents(eo,BuildInEventName["prompt.template"]),ao=getSpanEventsWithPayload(eo,BuildInEventName["prompt.template"])[0],lo=ao?(ho=ao.attributes)==null?void 0:ho["prompt.template"]:to==null?void 0:to["prompt.template"],uo=safeJSONParse(ao?((go=ao.attributes)==null?void 0:go["prompt.variables"])??"{}":(to==null?void 0:to["prompt.variables"])??"{}");return reactExports.useEffect(()=>{io(ViewStatus.loading),so({onCompleted:mo=>{io(mo?ViewStatus.error:ViewStatus.loaded)}})},[so]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[no===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny",style:{marginTop:"30vh"}}),no===ViewStatus.loaded&&lo&&jsxRuntimeExports.jsx(LLMNodePromptTemplate,{promptTemplate:lo,templateVariables:uo}),no===ViewStatus.error&&jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{io(ViewStatus.loading),so({onCompleted:mo=>{io(mo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})})]})},LLMNodePromptTemplate=({promptTemplate:eo,templateVariables:to})=>{const no=useClasses$j(),io=useMessageCardClasses(),ao=useIsDark()?"vs-dark":"light",lo=useLLMJinjaEditorMount(to);return jsxRuntimeExports.jsx("div",{className:no.root,children:jsxRuntimeExports.jsx(Card,{className:mergeClasses(io.card,no.card),children:jsxRuntimeExports.jsx(JinjaSyntaxHighlighter,{value:eo,theme:ao,onMount:lo})})})},LLMNodeTools=({tools:eo})=>{const to=useClasses$i(),no=useLocStrings();return eo.length===0?jsxRuntimeExports.jsxs("div",{className:to.emptyWrapper,children:[jsxRuntimeExports.jsx(ShieldCheckmark24Regular,{}),jsxRuntimeExports.jsxs(Text$2,{className:to.emptyText,children:[" ",no.No_Tools_Found]})]}):jsxRuntimeExports.jsx("div",{children:eo.map((io,so)=>jsxRuntimeExports.jsx(LLMNodeToolCard,{tool:io},so))})},useClasses$i=makeStyles({wrapper:{marginBottom:tokens$1.spacingVerticalM},emptyWrapper:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%"},emptyText:{paddingTop:tokens$1.spacingVerticalM}}),useLLMNodeClasses=makeStyles({root:{height:"100%",display:"flex"},header:{display:"flex",width:"100%",justifyContent:"space-between"},content:{...shorthands.overflow("auto")}}),LLMNodeInfo=({item:eo})=>{const{inputMessages:to,outputMessages:no,tools:io}=useMessagesOfSelectedSpan(),so=[...to,...no],ao=useLLMNodeClasses(),lo=useSelectedSpan(),[uo,ho]=reactExports.useState(ViewStatus.loading),go=useLoadSpans([lo],[BuildInEventName["function.inputs"],BuildInEventName["function.output"],BuildInEventName["llm.generated_message"]]);return reactExports.useEffect(()=>{(eo==="messages"||eo==="tools")&&(ho(ViewStatus.loading),go({onCompleted:mo=>{ho(mo?ViewStatus.error:ViewStatus.loaded)}}))},[eo,go]),eo==="raw"?jsxRuntimeExports.jsx(DefaultNodeInfo,{}):eo==="promptTemplate"?jsxRuntimeExports.jsx(LLMNodePromptTemplateTab,{}):eo==="llmParameters"?jsxRuntimeExports.jsx(Card,{className:ao.root,children:jsxRuntimeExports.jsx("div",{className:ao.content,children:jsxRuntimeExports.jsx(LLMNodeInvocationParametersTab,{})})}):uo===ViewStatus.loading?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh"},children:jsxRuntimeExports.jsx(Spinner,{})}):uo===ViewStatus.error?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{ho(ViewStatus.loading),go({onCompleted:mo=>{ho(mo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(Card,{className:ao.root,children:jsxRuntimeExports.jsxs("div",{className:ao.content,children:[eo==="messages"&&jsxRuntimeExports.jsx(LLMNodeMessagesList,{messages:so,tools:io}),eo==="tools"&&jsxRuntimeExports.jsx(LLMNodeTools,{tools:io})]})})},LLMSpanContent=()=>{var ko;const eo=useSelectedSpan(),to=useNodeDetailClasses(),no=useLocStrings(),[io,so]=reactExports.useState("llm_conversations"),ao=(ko=eo==null?void 0:eo.events)==null?void 0:ko.filter(Co=>Co.name===BuildInEventName.exception),lo=(ao==null?void 0:ao.length)??0,[uo,ho]=reactExports.useState(!1),[go,mo]=reactExports.useState(!1),[yo,So]=reactExports.useState(!1);useHasPromptTemplate(Co=>ho(Co)),useHasLLMParameters(Co=>mo(Co)),useHasInputsOrOutput(Co=>So(Co));const _o=[{key:"llm_conversations",name:no.Conversations},{key:"raw",name:no.Raw_JSON},...uo?[{key:"llm_template",name:no.Prompt_Template}]:[],...go?[{key:"llm_params",name:no.LLM_Parameters}]:[],{key:"llm_tools",name:no.Tools},{key:"error",name:no.Exception,icon:jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:lo>0?"danger":"informative",count:lo,size:"small",showZero:!0})}];return jsxRuntimeExports.jsxs("div",{className:to.layoutLeft,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:_o,selectedTab:io,setSelectedTab:so}),jsxRuntimeExports.jsx(SpanDetailErrorMessageBar,{setSelectedTab:so}),jsxRuntimeExports.jsxs("div",{className:to.content,children:[io==="llm_conversations"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"messages"}),yo&&io==="info"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"raw"}),io==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),uo&&io==="llm_template"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"promptTemplate"}),go&&io==="llm_params"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"llmParameters"}),io==="llm_tools"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"tools"}),io==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{})]})]})},useClasses$h=makeStyles({root:{display:"flex",...shorthands.gap("8px"),marginBottom:"8px",marginTop:"8px",height:"24px",lineHeight:"24px"},toLabel:{height:"24px",lineHeight:"24px"}}),AgentMessageSenderRenderer=({data:eo})=>{var lo,uo,ho,go,mo;const to=eo.content[0],no=useClasses$h();if(!to)return null;const{span:io}=to,so=((lo=io==null?void 0:io.attributes)==null?void 0:lo.from)??((uo=io==null?void 0:io.attributes)==null?void 0:uo.entity),ao=(ho=io==null?void 0:io.attributes)==null?void 0:ho.to;return(go=io==null?void 0:io.name)!=null&&go.includes("send")?jsxRuntimeExports.jsxs("div",{className:no.root,children:[so&&jsxRuntimeExports.jsx(LLMMessageSenderBadge,{role:so}),"send",ao&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("i",{className:no.toLabel,children:"( To:"}),ao==="All"?"All":jsxRuntimeExports.jsx(LLMMessageSenderBadge,{role:ao}),")"]})]}):(mo=io==null?void 0:io.name)!=null&&mo.includes("receive")?jsxRuntimeExports.jsxs("div",{className:no.root,children:[ao&&jsxRuntimeExports.jsx(LLMMessageSenderBadge,{role:ao}),"receive",so&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("i",{className:no.toLabel,children:"( From:"}),jsxRuntimeExports.jsx(LLMMessageSenderBadge,{role:so}),")"]})]}):jsxRuntimeExports.jsxs("div",{className:no.root,children:[so&&jsxRuntimeExports.jsx(LLMMessageSenderBadge,{role:so}),io==null?void 0:io.name]})},useClasses$g=makeStyles({content:{...shorthands.padding("12px")},addOn:{display:"flex",justifyContent:"space-between",flexDirection:"row-reverse"},childrenWrapper:{marginLeft:"16px",...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens$1.colorPaletteRedBorder1)},childHeader:{...shorthands.borderBottom("1px","solid",tokens$1.colorPaletteLilacBorderActive),paddingBottom:"8px"}}),AgentMessageContentRenderer=({content:eo})=>{var go,mo,yo;const to=(go=eo[0])==null?void 0:go.text,no=(mo=eo[0])==null?void 0:mo.span,io=(yo=eo[0])==null?void 0:yo.hideChildren,so=useClasses$g(),lo=useSpansOfSelectedTrace().filter(So=>{var _o;return So.parent_id===((_o=no==null?void 0:no.context)==null?void 0:_o.span_id)}),uo=useLocStrings();if(!to)return jsxRuntimeExports.jsx(MessageBar,{intent:"warning",style:{width:"100%"},content:"",children:jsxRuntimeExports.jsx(MessageBarBody,{children:"No content found"})});const ho=[];return lo.forEach(So=>{getMessagesFromEvent(So).forEach(ko=>{var Co;ho.push(jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AgentMessageSenderRenderer,{position:"left",data:{category:ChatMessageCategory.Chatbot,from:"",content:[{span:So}]}}),jsxRuntimeExports.jsx(AgentMessageContentRenderer,{content:[{text:ko.content,span:So}]},(Co=So.context)==null?void 0:Co.span_id)]}))})}),jsxRuntimeExports.jsxs("div",{className:so.content,children:[jsxRuntimeExports.jsx(ReactMarkdown,{text:to}),!io&&ho.length>0&&jsxRuntimeExports.jsx(Accordion,{collapsible:!0,defaultOpenItems:"agent-messages",children:jsxRuntimeExports.jsxs(AccordionItem,{value:"agent-messages",defaultChecked:!0,children:[jsxRuntimeExports.jsx(AccordionHeader,{children:jsxRuntimeExports.jsx("strong",{children:uo.agent_messages})}),jsxRuntimeExports.jsx(AccordionPanel,{children:jsxRuntimeExports.jsx("div",{className:so.childrenWrapper,children:ho})})]})})]})};function dedent$1(eo){for(var to=[],no=1;no{const to=useSelectedSpan(),no=useMessagesContainerStyles(),io=reactExports.useRef(null),so=ChatboxSelector.MessageList,ao=ChatboxSelector.MessageContent,lo=eo.messages.map((uo,ho)=>({id:ho,type:ChatMessageType.Message,history:[{content:[{content:uo.content??"",name:uo.name,role:uo.role,timestamp:uo.timestamp,function_call:uo.function_call,tool_calls:uo.tool_calls,tools:eo.tools}],category:messageRoleToCategory(uo.role),from:capitalizeFirstLetter(getSenderNameByLLMMessage(uo)),timestamp:uo.role==="assistant"?to==null?void 0:to.start_time:to==null?void 0:to.end_time}]}));return reactExports.useEffect(()=>{const uo=document.querySelectorAll(".rich-text-chatbox-message-content"),ho=uo[uo.length-1];ho&&ho.scrollIntoView({block:"end"})},[]),jsxRuntimeExports.jsxs("div",{className:no.messagesContainer,children:[jsxRuntimeExports.jsx(ChatboxMessageList,{locStrings:defaultLocStrings$1,messages:lo,calcContentForCopy:defaultCalcContentForCopy,containerRef:io}),jsxRuntimeExports.jsx("div",{className:no.minimap,children:jsxRuntimeExports.jsx(Minimap,{className:no.minimapInner,syncScale:!1,sourceRootRef:io,sourceQuerySelector:so,sourceElementQuerySelector:ao,viewportClassName:no.minimapViewport,overviewElementClassName:no.minimapElement,getElementBackgroundColor:uo=>{var ho;return((ho=uo==null?void 0:uo.dataset)==null?void 0:ho.chatboxColor)||""},renderElement:(uo,ho,go,mo)=>{var Co,$o;const yo=lo[ho],So=((Co=yo==null?void 0:yo.history[0])==null?void 0:Co.from)??"",_o=(($o=yo==null?void 0:yo.history[0])==null?void 0:$o.content[0])??{},{hoverColor:ko}=getColorForMessage(_o);return jsxRuntimeExports.jsx(Tooltip,{content:So,relationship:"label",positioning:"before",children:jsxRuntimeExports.jsx("div",{className:go,style:{...mo,"--element-hover-background-color":ko}},ho)},ho)}})})]})},MessageAvatarRenderer=({data:eo,className:to})=>jsxRuntimeExports.jsx(LLMMessageSenderBadge,{name:eo.content[0].name,role:eo.content[0].role,className:to});function ChatboxMessageList(eo){const{locStrings:to,messages:no,calcContentForCopy:io,containerRef:so}=eo,ao=useCopyAction(to,io),lo=reactExports.useCallback(()=>[ao],[ao]),uo=useStyles();return jsxRuntimeExports.jsx("div",{ref:so,className:uo.main,children:jsxRuntimeExports.jsx(MessageListRenderer,{locStrings:to,messages:no,MessageAvatarRenderer,MessageContentRenderer:RichTextChatboxMessageContent,MessageSenderRenderer,MessageBubbleRenderer:LLMNodeMessageBubbleRenderer,useMessageActions:lo})})}ChatboxMessageList.displayName="ChatboxMessageList";const useStyles=makeStyles({main:{...shorthands.padding("0","6px"),...shorthands.overflow("auto"),...shorthands.flex(1),height:"100%"}}),getVariableHoverMarkdown=eo=>{let to="";return typeof eo=="string"?to=eo:to=JSON.stringify(eo),to},useLLMJinjaEditorMount=eo=>reactExports.useCallback(no=>{const io=Object.keys(eo),so=no.getModel();io.forEach(ao=>{const lo=so==null?void 0:so.findMatches(`[^.](${ao})\\s*(%|\\})`,!1,!0,!1,null,!1);lo==null||lo.forEach(uo=>{const ho=[{range:{...uo.range,startColumn:uo.range.startColumn+1,endColumn:uo.range.endColumn-1},options:{isWholeLine:!1,inlineClassName:"llm-variable-highlight",hoverMessage:{value:getVariableHoverMarkdown(eo[ao])}}}];typeof(so==null?void 0:so.deltaDecorations)=="function"?so.deltaDecorations([],ho):typeof no.createDecorationsCollection=="function"&&no.createDecorationsCollection(ho)})})},[eo]),useMessageCardClasses=makeStyles({card:{...shorthands.borderRadius("8px"),...shorthands.borderColor(tokens$1.colorNeutralStroke1),...shorthands.borderWidth("1px"),...shorthands.borderStyle("solid"),...shorthands.padding("16px"),...shorthands.margin("16px")}}),useClasses$j=makeStyles({root:{height:"100%",display:"flex",flexDirection:"column",...shorthands.overflow("auto")},title:{fontSize:"14px",lineHeight:"20px",fontStyle:"italic",fontWeight:400,color:tokens$1.colorNeutralForeground1},card:{flexGrow:1,...shorthands.padding("0px"),...shorthands.margin("0px")}}),LLMNodePromptTemplateTab=()=>{var ho,go;const eo=useParentSpanOfSelectedSpan(),to=eo==null?void 0:eo.attributes,[no,io]=reactExports.useState(ViewStatus.loading),so=useLoadSpanEvents(eo,BuildInEventName["prompt.template"]),ao=getSpanEventsWithPayload(eo,BuildInEventName["prompt.template"])[0],lo=ao?(ho=ao.attributes)==null?void 0:ho["prompt.template"]:to==null?void 0:to["prompt.template"],uo=safeJSONParse(ao?((go=ao.attributes)==null?void 0:go["prompt.variables"])??"{}":(to==null?void 0:to["prompt.variables"])??"{}");return reactExports.useEffect(()=>{io(ViewStatus.loading),so({onCompleted:mo=>{io(mo?ViewStatus.error:ViewStatus.loaded)}})},[so]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[no===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny",style:{marginTop:"30vh"}}),no===ViewStatus.loaded&&lo&&jsxRuntimeExports.jsx(LLMNodePromptTemplate,{promptTemplate:lo,templateVariables:uo}),no===ViewStatus.error&&jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{io(ViewStatus.loading),so({onCompleted:mo=>{io(mo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})})]})},LLMNodePromptTemplate=({promptTemplate:eo,templateVariables:to})=>{const no=useClasses$j(),io=useMessageCardClasses(),ao=useIsDark()?"vs-dark":"light",lo=useLLMJinjaEditorMount(to);return jsxRuntimeExports.jsx("div",{className:no.root,children:jsxRuntimeExports.jsx(Card,{className:mergeClasses(io.card,no.card),children:jsxRuntimeExports.jsx(JinjaSyntaxHighlighter,{value:eo,theme:ao,onMount:lo})})})},LLMNodeTools=({tools:eo})=>{const to=useClasses$i(),no=useLocStrings();return eo.length===0?jsxRuntimeExports.jsxs("div",{className:to.emptyWrapper,children:[jsxRuntimeExports.jsx(ShieldCheckmark24Regular,{}),jsxRuntimeExports.jsxs(Text$2,{className:to.emptyText,children:[" ",no.No_Tools_Found]})]}):jsxRuntimeExports.jsx("div",{children:eo.map((io,so)=>jsxRuntimeExports.jsx(LLMNodeToolCard,{tool:io},so))})},useClasses$i=makeStyles({wrapper:{marginBottom:tokens$1.spacingVerticalM},emptyWrapper:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%"},emptyText:{paddingTop:tokens$1.spacingVerticalM}}),useLLMNodeClasses=makeStyles({root:{height:"100%",display:"flex"},header:{display:"flex",width:"100%",justifyContent:"space-between"},content:{...shorthands.overflow("auto")}}),LLMNodeInfo=({item:eo})=>{const{inputMessages:to,outputMessages:no,tools:io}=useMessagesOfSelectedSpan(),so=[...to,...no],ao=useLLMNodeClasses(),lo=useSelectedSpan(),[uo,ho]=reactExports.useState(ViewStatus.loading),go=useLoadSpans([lo],[BuildInEventName["function.inputs"],BuildInEventName["function.output"],BuildInEventName["llm.generated_message"]]);return reactExports.useEffect(()=>{(eo==="messages"||eo==="tools")&&(ho(ViewStatus.loading),go({onCompleted:mo=>{ho(mo?ViewStatus.error:ViewStatus.loaded)}}))},[eo,go]),eo==="raw"?jsxRuntimeExports.jsx(DefaultNodeInfo,{}):eo==="promptTemplate"?jsxRuntimeExports.jsx(LLMNodePromptTemplateTab,{}):eo==="llmParameters"?jsxRuntimeExports.jsx(Card,{className:ao.root,children:jsxRuntimeExports.jsx("div",{className:ao.content,children:jsxRuntimeExports.jsx(LLMNodeInvocationParametersTab,{})})}):uo===ViewStatus.loading?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh"},children:jsxRuntimeExports.jsx(Spinner,{})}):uo===ViewStatus.error?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{ho(ViewStatus.loading),go({onCompleted:mo=>{ho(mo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(Card,{className:ao.root,children:jsxRuntimeExports.jsxs("div",{className:ao.content,children:[eo==="messages"&&jsxRuntimeExports.jsx(LLMNodeMessagesList,{messages:so,tools:io}),eo==="tools"&&jsxRuntimeExports.jsx(LLMNodeTools,{tools:io})]})})},LLMSpanContent=()=>{var ko;const eo=useSelectedSpan(),to=useNodeDetailClasses(),no=useLocStrings(),[io,so]=reactExports.useState("llm_conversations"),ao=(ko=eo==null?void 0:eo.events)==null?void 0:ko.filter(Co=>Co.name===BuildInEventName.exception),lo=(ao==null?void 0:ao.length)??0,[uo,ho]=reactExports.useState(!1),[go,mo]=reactExports.useState(!1),[yo,So]=reactExports.useState(!1);useHasPromptTemplate(Co=>ho(Co)),useHasLLMParameters(Co=>mo(Co)),useHasInputsOrOutput(Co=>So(Co));const _o=[{key:"llm_conversations",name:no.Conversations},{key:"raw",name:no.Raw_JSON},...uo?[{key:"llm_template",name:no.Prompt_Template}]:[],...go?[{key:"llm_params",name:no.LLM_Parameters}]:[],{key:"llm_tools",name:no.Tools},{key:"error",name:no.Exception,icon:jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:lo>0?"danger":"informative",count:lo,size:"small",showZero:!0})}];return jsxRuntimeExports.jsxs("div",{className:to.layoutLeft,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:_o,selectedTab:io,setSelectedTab:so}),jsxRuntimeExports.jsx(SpanDetailErrorMessageBar,{setSelectedTab:so}),jsxRuntimeExports.jsxs("div",{className:to.content,children:[io==="llm_conversations"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"messages"}),yo&&io==="info"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"raw"}),io==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),uo&&io==="llm_template"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"promptTemplate"}),go&&io==="llm_params"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"llmParameters"}),io==="llm_tools"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"tools"}),io==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{})]})]})},useClasses$h=makeStyles({root:{display:"flex",...shorthands.gap("8px"),marginBottom:"8px",marginTop:"8px",height:"24px",lineHeight:"24px"},toLabel:{height:"24px",lineHeight:"24px"}}),AgentMessageSenderRenderer=({data:eo})=>{var lo,uo,ho,go,mo,yo;const to=eo.content[0],no=useClasses$h();if(!to)return null;const{span:io}=to,so=((lo=io==null?void 0:io.attributes)==null?void 0:lo.from)??((uo=io==null?void 0:io.attributes)==null?void 0:uo.entity),ao=(ho=io==null?void 0:io.attributes)==null?void 0:ho.to;return(go=io==null?void 0:io.name)!=null&&go.includes("send")?jsxRuntimeExports.jsxs("div",{className:no.root,children:[so&&jsxRuntimeExports.jsx(LLMMessageSenderBadge,{role:so}),"send",ao&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("i",{className:no.toLabel,children:"( To:"}),ao==="All"?"All":jsxRuntimeExports.jsx(LLMMessageSenderBadge,{role:ao}),")"]})]}):(mo=io==null?void 0:io.name)!=null&&mo.includes("receive")?jsxRuntimeExports.jsxs("div",{className:no.root,children:[ao&&jsxRuntimeExports.jsx(LLMMessageSenderBadge,{role:ao}),"receive",so&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("i",{className:no.toLabel,children:"( From:"}),jsxRuntimeExports.jsx(LLMMessageSenderBadge,{role:so}),")"]})]}):jsxRuntimeExports.jsxs("div",{className:no.root,children:[so&&jsxRuntimeExports.jsx(LLMMessageSenderBadge,{role:so}),(yo=io==null?void 0:io.name)==null?void 0:yo.replace("ConversableAgent.","")]})},useClasses$g=makeStyles({content:{...shorthands.padding("12px")},addOn:{display:"flex",justifyContent:"space-between",flexDirection:"row-reverse"},childrenWrapper:{marginLeft:"16px",...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens$1.colorPaletteRedBorder1)},childHeader:{...shorthands.borderBottom("1px","solid",tokens$1.colorPaletteLilacBorderActive),paddingBottom:"8px"}}),AgentMessageContentRenderer=({content:eo})=>{var ho,go,mo;const to=(ho=eo[0])==null?void 0:ho.text,no=(go=eo[0])==null?void 0:go.span,io=(mo=eo[0])==null?void 0:mo.hideChildren,so=useClasses$g(),lo=useSpansOfSelectedTrace().filter(yo=>{var So;return yo.parent_id===((So=no==null?void 0:no.context)==null?void 0:So.span_id)});if(!to)return jsxRuntimeExports.jsx(MessageBar,{intent:"warning",style:{width:"100%"},content:"",children:jsxRuntimeExports.jsx(MessageBarBody,{children:"No content found"})});const uo=[];return lo.forEach(yo=>{getMessagesFromEvent(yo).forEach(_o=>{var ko;uo.push(jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AgentMessageSenderRenderer,{position:"left",data:{category:ChatMessageCategory.Chatbot,from:"",content:[{span:yo}]}}),jsxRuntimeExports.jsx(AgentMessageContentRenderer,{content:[{text:_o.content,span:yo}]},(ko=yo.context)==null?void 0:ko.span_id)]}))})}),jsxRuntimeExports.jsxs("div",{className:so.content,children:[jsxRuntimeExports.jsx(ReactMarkdown,{text:to}),!io&&uo.length>0&&jsxRuntimeExports.jsx(Accordion,{collapsible:!0,defaultOpenItems:"agent-messages",children:jsxRuntimeExports.jsxs(AccordionItem,{value:"agent-messages",defaultChecked:!0,children:[jsxRuntimeExports.jsx(AccordionHeader,{}),jsxRuntimeExports.jsx(AccordionPanel,{children:jsxRuntimeExports.jsx("div",{className:so.childrenWrapper,children:uo})})]})})]})};function dedent$1(eo){for(var to=[],no=1;no0){const ao=document.getElementsByTagName("link");so=Promise.all(no.map(lo=>{if(lo=assetsURL(lo),lo in seen)return;seen[lo]=!0;const uo=lo.endsWith(".css"),ho=uo?'[rel="stylesheet"]':"";if(!!io)for(let yo=ao.length-1;yo>=0;yo--){const So=ao[yo];if(So.href===lo&&(!uo||So.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${lo}"]${ho}`))return;const mo=document.createElement("link");if(mo.rel=uo?"stylesheet":scriptRel,uo||(mo.as="script",mo.crossOrigin=""),mo.href=lo,document.head.appendChild(mo),uo)return new Promise((yo,So)=>{mo.addEventListener("load",yo),mo.addEventListener("error",()=>So(new Error(`Unable to preload CSS for ${lo}`)))})}))}return so.then(()=>to()).catch(ao=>{const lo=new Event("vite:preloadError",{cancelable:!0});if(lo.payload=ao,window.dispatchEvent(lo),!lo.defaultPrevented)throw ao})};var dist$2={};(function(eo){Object.defineProperty(eo,"__esModule",{value:!0}),eo.sanitizeUrl=eo.BLANK_URL=void 0;var to=/^([^\w]*)(javascript|data|vbscript)/im,no=/&#(\w+)(^\w|;)?/g,io=/&(newline|tab);/gi,so=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,ao=/^.+(:|:)/gim,lo=[".","/"];eo.BLANK_URL="about:blank";function uo(mo){return lo.indexOf(mo[0])>-1}function ho(mo){var yo=mo.replace(so,"");return yo.replace(no,function(So,_o){return String.fromCharCode(_o)})}function go(mo){if(!mo)return eo.BLANK_URL;var yo=ho(mo).replace(io,"").replace(so,"").trim();if(!yo)return eo.BLANK_URL;if(uo(yo))return yo;var So=yo.match(ao);if(!So)return yo;var _o=So[0];return to.test(_o)?eo.BLANK_URL:yo}eo.sanitizeUrl=go})(dist$2);function ascending$2(eo,to){return eo==null||to==null?NaN:eoto?1:eo>=to?0:NaN}function descending$2(eo,to){return eo==null||to==null?NaN:toeo?1:to>=eo?0:NaN}function bisector(eo){let to,no,io;eo.length!==2?(to=ascending$2,no=(uo,ho)=>ascending$2(eo(uo),ho),io=(uo,ho)=>eo(uo)-ho):(to=eo===ascending$2||eo===descending$2?eo:zero$1,no=eo,io=eo);function so(uo,ho,go=0,mo=uo.length){if(go>>1;no(uo[yo],ho)<0?go=yo+1:mo=yo}while(go>>1;no(uo[yo],ho)<=0?go=yo+1:mo=yo}while(gogo&&io(uo[yo-1],ho)>-io(uo[yo],ho)?yo-1:yo}return{left:so,center:lo,right:ao}}function zero$1(){return 0}function number$6(eo){return eo===null?NaN:+eo}const ascendingBisect=bisector(ascending$2),bisectRight=ascendingBisect.right;bisector(number$6).center;const bisect=bisectRight;class InternMap extends Map{constructor(to,no=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:no}}),to!=null)for(const[io,so]of to)this.set(io,so)}get(to){return super.get(intern_get(this,to))}has(to){return super.has(intern_get(this,to))}set(to,no){return super.set(intern_set(this,to),no)}delete(to){return super.delete(intern_delete(this,to))}}function intern_get({_intern:eo,_key:to},no){const io=to(no);return eo.has(io)?eo.get(io):no}function intern_set({_intern:eo,_key:to},no){const io=to(no);return eo.has(io)?eo.get(io):(eo.set(io,no),no)}function intern_delete({_intern:eo,_key:to},no){const io=to(no);return eo.has(io)&&(no=eo.get(io),eo.delete(io)),no}function keyof(eo){return eo!==null&&typeof eo=="object"?eo.valueOf():eo}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(eo,to,no){const io=(to-eo)/Math.max(0,no),so=Math.floor(Math.log10(io)),ao=io/Math.pow(10,so),lo=ao>=e10?10:ao>=e5?5:ao>=e2?2:1;let uo,ho,go;return so<0?(go=Math.pow(10,-so)/lo,uo=Math.round(eo*go),ho=Math.round(to*go),uo/goto&&--ho,go=-go):(go=Math.pow(10,so)*lo,uo=Math.round(eo/go),ho=Math.round(to/go),uo*goto&&--ho),ho0))return[];if(eo===to)return[eo];const io=to=so))return[];const uo=ao-so+1,ho=new Array(uo);if(io)if(lo<0)for(let go=0;go=io)&&(no=io);else{let io=-1;for(let so of eo)(so=to(so,++io,eo))!=null&&(no=so)&&(no=so)}return no}function min$4(eo,to){let no;if(to===void 0)for(const io of eo)io!=null&&(no>io||no===void 0&&io>=io)&&(no=io);else{let io=-1;for(let so of eo)(so=to(so,++io,eo))!=null&&(no>so||no===void 0&&so>=so)&&(no=so)}return no}function range$2(eo,to,no){eo=+eo,to=+to,no=(so=arguments.length)<2?(to=eo,eo=0,1):so<3?1:+no;for(var io=-1,so=Math.max(0,Math.ceil((to-eo)/no))|0,ao=new Array(so);++io+eo(to)}function center$1(eo,to){return to=Math.max(0,eo.bandwidth()-to*2)/2,eo.round()&&(to=Math.round(to)),no=>+eo(no)+to}function entering(){return!this.__axis}function axis(eo,to){var no=[],io=null,so=null,ao=6,lo=6,uo=3,ho=typeof window<"u"&&window.devicePixelRatio>1?0:.5,go=eo===top$1||eo===left$1?-1:1,mo=eo===left$1||eo===right$1?"x":"y",yo=eo===top$1||eo===bottom?translateX:translateY;function So(_o){var ko=io??(to.ticks?to.ticks.apply(to,no):to.domain()),Co=so??(to.tickFormat?to.tickFormat.apply(to,no):identity$5),$o=Math.max(ao,0)+uo,Ro=to.range(),Oo=+Ro[0]+ho,No=+Ro[Ro.length-1]+ho,Mo=(to.bandwidth?center$1:number$5)(to.copy(),ho),Bo=_o.selection?_o.selection():_o,Po=Bo.selectAll(".domain").data([null]),Lo=Bo.selectAll(".tick").data(ko,to).order(),Go=Lo.exit(),Do=Lo.enter().append("g").attr("class","tick"),Uo=Lo.select("line"),Ho=Lo.select("text");Po=Po.merge(Po.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Lo=Lo.merge(Do),Uo=Uo.merge(Do.append("line").attr("stroke","currentColor").attr(mo+"2",go*ao)),Ho=Ho.merge(Do.append("text").attr("fill","currentColor").attr(mo,go*$o).attr("dy",eo===top$1?"0em":eo===bottom?"0.71em":"0.32em")),_o!==Bo&&(Po=Po.transition(_o),Lo=Lo.transition(_o),Uo=Uo.transition(_o),Ho=Ho.transition(_o),Go=Go.transition(_o).attr("opacity",epsilon$3).attr("transform",function(Yo){return isFinite(Yo=Mo(Yo))?yo(Yo+ho):this.getAttribute("transform")}),Do.attr("opacity",epsilon$3).attr("transform",function(Yo){var qo=this.parentNode.__axis;return yo((qo&&isFinite(qo=qo(Yo))?qo:Mo(Yo))+ho)})),Go.remove(),Po.attr("d",eo===left$1||eo===right$1?lo?"M"+go*lo+","+Oo+"H"+ho+"V"+No+"H"+go*lo:"M"+ho+","+Oo+"V"+No:lo?"M"+Oo+","+go*lo+"V"+ho+"H"+No+"V"+go*lo:"M"+Oo+","+ho+"H"+No),Lo.attr("opacity",1).attr("transform",function(Yo){return yo(Mo(Yo)+ho)}),Uo.attr(mo+"2",go*ao),Ho.attr(mo,go*$o).text(Co),Bo.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",eo===right$1?"start":eo===left$1?"end":"middle"),Bo.each(function(){this.__axis=Mo})}return So.scale=function(_o){return arguments.length?(to=_o,So):to},So.ticks=function(){return no=Array.from(arguments),So},So.tickArguments=function(_o){return arguments.length?(no=_o==null?[]:Array.from(_o),So):no.slice()},So.tickValues=function(_o){return arguments.length?(io=_o==null?null:Array.from(_o),So):io&&io.slice()},So.tickFormat=function(_o){return arguments.length?(so=_o,So):so},So.tickSize=function(_o){return arguments.length?(ao=lo=+_o,So):ao},So.tickSizeInner=function(_o){return arguments.length?(ao=+_o,So):ao},So.tickSizeOuter=function(_o){return arguments.length?(lo=+_o,So):lo},So.tickPadding=function(_o){return arguments.length?(uo=+_o,So):uo},So.offset=function(_o){return arguments.length?(ho=+_o,So):ho},So}function axisTop(eo){return axis(top$1,eo)}function axisBottom(eo){return axis(bottom,eo)}var noop$4={value:()=>{}};function dispatch(){for(var eo=0,to=arguments.length,no={},io;eo=0&&(io=no.slice(so+1),no=no.slice(0,so)),no&&!to.hasOwnProperty(no))throw new Error("unknown type: "+no);return{type:no,name:io}})}Dispatch.prototype=dispatch.prototype={constructor:Dispatch,on:function(eo,to){var no=this._,io=parseTypenames$1(eo+"",no),so,ao=-1,lo=io.length;if(arguments.length<2){for(;++ao0)for(var no=new Array(so),io=0,so,ao;io=0&&(to=eo.slice(0,no))!=="xmlns"&&(eo=eo.slice(no+1)),namespaces$1.hasOwnProperty(to)?{space:namespaces$1[to],local:eo}:eo}function creatorInherit(eo){return function(){var to=this.ownerDocument,no=this.namespaceURI;return no===xhtml&&to.documentElement.namespaceURI===xhtml?to.createElement(eo):to.createElementNS(no,eo)}}function creatorFixed(eo){return function(){return this.ownerDocument.createElementNS(eo.space,eo.local)}}function creator(eo){var to=namespace(eo);return(to.local?creatorFixed:creatorInherit)(to)}function none$3(){}function selector(eo){return eo==null?none$3:function(){return this.querySelector(eo)}}function selection_select(eo){typeof eo!="function"&&(eo=selector(eo));for(var to=this._groups,no=to.length,io=new Array(no),so=0;so=No&&(No=Oo+1);!(Bo=$o[No])&&++No=0;)(lo=io[so])&&(ao&&lo.compareDocumentPosition(ao)^4&&ao.parentNode.insertBefore(lo,ao),ao=lo);return this}function selection_sort(eo){eo||(eo=ascending$1);function to(yo,So){return yo&&So?eo(yo.__data__,So.__data__):!yo-!So}for(var no=this._groups,io=no.length,so=new Array(io),ao=0;aoto?1:eo>=to?0:NaN}function selection_call(){var eo=arguments[0];return arguments[0]=this,eo.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var eo=this._groups,to=0,no=eo.length;to1?this.each((to==null?styleRemove$1:typeof to=="function"?styleFunction$1:styleConstant$1)(eo,to,no??"")):styleValue(this.node(),eo)}function styleValue(eo,to){return eo.style.getPropertyValue(to)||defaultView(eo).getComputedStyle(eo,null).getPropertyValue(to)}function propertyRemove(eo){return function(){delete this[eo]}}function propertyConstant(eo,to){return function(){this[eo]=to}}function propertyFunction(eo,to){return function(){var no=to.apply(this,arguments);no==null?delete this[eo]:this[eo]=no}}function selection_property(eo,to){return arguments.length>1?this.each((to==null?propertyRemove:typeof to=="function"?propertyFunction:propertyConstant)(eo,to)):this.node()[eo]}function classArray(eo){return eo.trim().split(/^|\s+/)}function classList(eo){return eo.classList||new ClassList(eo)}function ClassList(eo){this._node=eo,this._names=classArray(eo.getAttribute("class")||"")}ClassList.prototype={add:function(eo){var to=this._names.indexOf(eo);to<0&&(this._names.push(eo),this._node.setAttribute("class",this._names.join(" ")))},remove:function(eo){var to=this._names.indexOf(eo);to>=0&&(this._names.splice(to,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(eo){return this._names.indexOf(eo)>=0}};function classedAdd(eo,to){for(var no=classList(eo),io=-1,so=to.length;++io=0&&(no=to.slice(io+1),to=to.slice(0,io)),{type:to,name:no}})}function onRemove(eo){return function(){var to=this.__on;if(to){for(var no=0,io=-1,so=to.length,ao;no>8&15|to>>4&240,to>>4&15|to&240,(to&15)<<4|to&15,1):no===8?rgba$3(to>>24&255,to>>16&255,to>>8&255,(to&255)/255):no===4?rgba$3(to>>12&15|to>>8&240,to>>8&15|to>>4&240,to>>4&15|to&240,((to&15)<<4|to&15)/255):null):(to=reRgbInteger.exec(eo))?new Rgb(to[1],to[2],to[3],1):(to=reRgbPercent.exec(eo))?new Rgb(to[1]*255/100,to[2]*255/100,to[3]*255/100,1):(to=reRgbaInteger.exec(eo))?rgba$3(to[1],to[2],to[3],to[4]):(to=reRgbaPercent.exec(eo))?rgba$3(to[1]*255/100,to[2]*255/100,to[3]*255/100,to[4]):(to=reHslPercent.exec(eo))?hsla$1(to[1],to[2]/100,to[3]/100,1):(to=reHslaPercent.exec(eo))?hsla$1(to[1],to[2]/100,to[3]/100,to[4]):named.hasOwnProperty(eo)?rgbn(named[eo]):eo==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(eo){return new Rgb(eo>>16&255,eo>>8&255,eo&255,1)}function rgba$3(eo,to,no,io){return io<=0&&(eo=to=no=NaN),new Rgb(eo,to,no,io)}function rgbConvert(eo){return eo instanceof Color$2||(eo=color(eo)),eo?(eo=eo.rgb(),new Rgb(eo.r,eo.g,eo.b,eo.opacity)):new Rgb}function rgb(eo,to,no,io){return arguments.length===1?rgbConvert(eo):new Rgb(eo,to,no,io??1)}function Rgb(eo,to,no,io){this.r=+eo,this.g=+to,this.b=+no,this.opacity=+io}define$4(Rgb,rgb,extend$3(Color$2,{brighter(eo){return eo=eo==null?brighter:Math.pow(brighter,eo),new Rgb(this.r*eo,this.g*eo,this.b*eo,this.opacity)},darker(eo){return eo=eo==null?darker:Math.pow(darker,eo),new Rgb(this.r*eo,this.g*eo,this.b*eo,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const eo=clampa(this.opacity);return`${eo===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${eo===1?")":`, ${eo})`}`}function clampa(eo){return isNaN(eo)?1:Math.max(0,Math.min(1,eo))}function clampi(eo){return Math.max(0,Math.min(255,Math.round(eo)||0))}function hex(eo){return eo=clampi(eo),(eo<16?"0":"")+eo.toString(16)}function hsla$1(eo,to,no,io){return io<=0?eo=to=no=NaN:no<=0||no>=1?eo=to=NaN:to<=0&&(eo=NaN),new Hsl(eo,to,no,io)}function hslConvert(eo){if(eo instanceof Hsl)return new Hsl(eo.h,eo.s,eo.l,eo.opacity);if(eo instanceof Color$2||(eo=color(eo)),!eo)return new Hsl;if(eo instanceof Hsl)return eo;eo=eo.rgb();var to=eo.r/255,no=eo.g/255,io=eo.b/255,so=Math.min(to,no,io),ao=Math.max(to,no,io),lo=NaN,uo=ao-so,ho=(ao+so)/2;return uo?(to===ao?lo=(no-io)/uo+(no0&&ho<1?0:lo,new Hsl(lo,uo,ho,eo.opacity)}function hsl(eo,to,no,io){return arguments.length===1?hslConvert(eo):new Hsl(eo,to,no,io??1)}function Hsl(eo,to,no,io){this.h=+eo,this.s=+to,this.l=+no,this.opacity=+io}define$4(Hsl,hsl,extend$3(Color$2,{brighter(eo){return eo=eo==null?brighter:Math.pow(brighter,eo),new Hsl(this.h,this.s,this.l*eo,this.opacity)},darker(eo){return eo=eo==null?darker:Math.pow(darker,eo),new Hsl(this.h,this.s,this.l*eo,this.opacity)},rgb(){var eo=this.h%360+(this.h<0)*360,to=isNaN(eo)||isNaN(this.s)?0:this.s,no=this.l,io=no+(no<.5?no:1-no)*to,so=2*no-io;return new Rgb(hsl2rgb(eo>=240?eo-240:eo+120,so,io),hsl2rgb(eo,so,io),hsl2rgb(eo<120?eo+240:eo-120,so,io),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const eo=clampa(this.opacity);return`${eo===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${eo===1?")":`, ${eo})`}`}}));function clamph(eo){return eo=(eo||0)%360,eo<0?eo+360:eo}function clampt(eo){return Math.max(0,Math.min(1,eo||0))}function hsl2rgb(eo,to,no){return(eo<60?to+(no-to)*eo/60:eo<180?no:eo<240?to+(no-to)*(240-eo)/60:to)*255}const radians=Math.PI/180,degrees$1=180/Math.PI,K$1=18,Xn=.96422,Yn=1,Zn=.82521,t0$1=4/29,t1$1=6/29,t2=3*t1$1*t1$1,t3=t1$1*t1$1*t1$1;function labConvert(eo){if(eo instanceof Lab)return new Lab(eo.l,eo.a,eo.b,eo.opacity);if(eo instanceof Hcl)return hcl2lab(eo);eo instanceof Rgb||(eo=rgbConvert(eo));var to=rgb2lrgb(eo.r),no=rgb2lrgb(eo.g),io=rgb2lrgb(eo.b),so=xyz2lab((.2225045*to+.7168786*no+.0606169*io)/Yn),ao,lo;return to===no&&no===io?ao=lo=so:(ao=xyz2lab((.4360747*to+.3850649*no+.1430804*io)/Xn),lo=xyz2lab((.0139322*to+.0971045*no+.7141733*io)/Zn)),new Lab(116*so-16,500*(ao-so),200*(so-lo),eo.opacity)}function lab(eo,to,no,io){return arguments.length===1?labConvert(eo):new Lab(eo,to,no,io??1)}function Lab(eo,to,no,io){this.l=+eo,this.a=+to,this.b=+no,this.opacity=+io}define$4(Lab,lab,extend$3(Color$2,{brighter(eo){return new Lab(this.l+K$1*(eo??1),this.a,this.b,this.opacity)},darker(eo){return new Lab(this.l-K$1*(eo??1),this.a,this.b,this.opacity)},rgb(){var eo=(this.l+16)/116,to=isNaN(this.a)?eo:eo+this.a/500,no=isNaN(this.b)?eo:eo-this.b/200;return to=Xn*lab2xyz(to),eo=Yn*lab2xyz(eo),no=Zn*lab2xyz(no),new Rgb(lrgb2rgb(3.1338561*to-1.6168667*eo-.4906146*no),lrgb2rgb(-.9787684*to+1.9161415*eo+.033454*no),lrgb2rgb(.0719453*to-.2289914*eo+1.4052427*no),this.opacity)}}));function xyz2lab(eo){return eo>t3?Math.pow(eo,1/3):eo/t2+t0$1}function lab2xyz(eo){return eo>t1$1?eo*eo*eo:t2*(eo-t0$1)}function lrgb2rgb(eo){return 255*(eo<=.0031308?12.92*eo:1.055*Math.pow(eo,1/2.4)-.055)}function rgb2lrgb(eo){return(eo/=255)<=.04045?eo/12.92:Math.pow((eo+.055)/1.055,2.4)}function hclConvert(eo){if(eo instanceof Hcl)return new Hcl(eo.h,eo.c,eo.l,eo.opacity);if(eo instanceof Lab||(eo=labConvert(eo)),eo.a===0&&eo.b===0)return new Hcl(NaN,0()=>eo;function linear$1(eo,to){return function(no){return eo+no*to}}function exponential(eo,to,no){return eo=Math.pow(eo,no),to=Math.pow(to,no)-eo,no=1/no,function(io){return Math.pow(eo+io*to,no)}}function hue(eo,to){var no=to-eo;return no?linear$1(eo,no>180||no<-180?no-360*Math.round(no/360):no):constant$4(isNaN(eo)?to:eo)}function gamma(eo){return(eo=+eo)==1?nogamma:function(to,no){return no-to?exponential(to,no,eo):constant$4(isNaN(to)?no:to)}}function nogamma(eo,to){var no=to-eo;return no?linear$1(eo,no):constant$4(isNaN(eo)?to:eo)}const interpolateRgb=function eo(to){var no=gamma(to);function io(so,ao){var lo=no((so=rgb(so)).r,(ao=rgb(ao)).r),uo=no(so.g,ao.g),ho=no(so.b,ao.b),go=nogamma(so.opacity,ao.opacity);return function(mo){return so.r=lo(mo),so.g=uo(mo),so.b=ho(mo),so.opacity=go(mo),so+""}}return io.gamma=eo,io}(1);function numberArray(eo,to){to||(to=[]);var no=eo?Math.min(to.length,eo.length):0,io=to.slice(),so;return function(ao){for(so=0;sono&&(ao=to.slice(no,ao),uo[lo]?uo[lo]+=ao:uo[++lo]=ao),(io=io[0])===(so=so[0])?uo[lo]?uo[lo]+=so:uo[++lo]=so:(uo[++lo]=null,ho.push({i:lo,x:interpolateNumber(io,so)})),no=reB.lastIndex;return no180?mo+=360:mo-go>180&&(go+=360),So.push({i:yo.push(so(yo)+"rotate(",null,io)-2,x:interpolateNumber(go,mo)})):mo&&yo.push(so(yo)+"rotate("+mo+io)}function uo(go,mo,yo,So){go!==mo?So.push({i:yo.push(so(yo)+"skewX(",null,io)-2,x:interpolateNumber(go,mo)}):mo&&yo.push(so(yo)+"skewX("+mo+io)}function ho(go,mo,yo,So,_o,ko){if(go!==yo||mo!==So){var Co=_o.push(so(_o)+"scale(",null,",",null,")");ko.push({i:Co-4,x:interpolateNumber(go,yo)},{i:Co-2,x:interpolateNumber(mo,So)})}else(yo!==1||So!==1)&&_o.push(so(_o)+"scale("+yo+","+So+")")}return function(go,mo){var yo=[],So=[];return go=eo(go),mo=eo(mo),ao(go.translateX,go.translateY,mo.translateX,mo.translateY,yo,So),lo(go.rotate,mo.rotate,yo,So),uo(go.skewX,mo.skewX,yo,So),ho(go.scaleX,go.scaleY,mo.scaleX,mo.scaleY,yo,So),go=mo=null,function(_o){for(var ko=-1,Co=So.length,$o;++ko=0&&eo._call.call(void 0,to),eo=eo._next;--frame}function wake(){clockNow=(clockLast=clock.now())+clockSkew,frame=timeout$1=0;try{timerFlush()}finally{frame=0,nap(),clockNow=0}}function poke(){var eo=clock.now(),to=eo-clockLast;to>pokeDelay&&(clockSkew-=to,clockLast=eo)}function nap(){for(var eo,to=taskHead,no,io=1/0;to;)to._call?(io>to._time&&(io=to._time),eo=to,to=to._next):(no=to._next,to._next=null,to=eo?eo._next=no:taskHead=no);taskTail=eo,sleep(io)}function sleep(eo){if(!frame){timeout$1&&(timeout$1=clearTimeout(timeout$1));var to=eo-clockNow;to>24?(eo<1/0&&(timeout$1=setTimeout(wake,eo-clock.now()-clockSkew)),interval&&(interval=clearInterval(interval))):(interval||(clockLast=clock.now(),interval=setInterval(poke,pokeDelay)),frame=1,setFrame(wake))}}function timeout(eo,to,no){var io=new Timer;return to=to==null?0:+to,io.restart(so=>{io.stop(),eo(so+to)},to,no),io}var emptyOn=dispatch("start","end","cancel","interrupt"),emptyTween=[],CREATED=0,SCHEDULED=1,STARTING=2,STARTED=3,RUNNING=4,ENDING=5,ENDED=6;function schedule(eo,to,no,io,so,ao){var lo=eo.__transition;if(!lo)eo.__transition={};else if(no in lo)return;create$1(eo,no,{name:to,index:io,group:so,on:emptyOn,tween:emptyTween,time:ao.time,delay:ao.delay,duration:ao.duration,ease:ao.ease,timer:null,state:CREATED})}function init$1(eo,to){var no=get$2(eo,to);if(no.state>CREATED)throw new Error("too late; already scheduled");return no}function set$2(eo,to){var no=get$2(eo,to);if(no.state>STARTED)throw new Error("too late; already running");return no}function get$2(eo,to){var no=eo.__transition;if(!no||!(no=no[to]))throw new Error("transition not found");return no}function create$1(eo,to,no){var io=eo.__transition,so;io[to]=no,no.timer=timer(ao,0,no.time);function ao(go){no.state=SCHEDULED,no.timer.restart(lo,no.delay,no.time),no.delay<=go&&lo(go-no.delay)}function lo(go){var mo,yo,So,_o;if(no.state!==SCHEDULED)return ho();for(mo in io)if(_o=io[mo],_o.name===no.name){if(_o.state===STARTED)return timeout(lo);_o.state===RUNNING?(_o.state=ENDED,_o.timer.stop(),_o.on.call("interrupt",eo,eo.__data__,_o.index,_o.group),delete io[mo]):+moSTARTING&&io.state=0&&(to=to.slice(0,no)),!to||to==="start"})}function onFunction(eo,to,no){var io,so,ao=start$1(to)?init$1:set$2;return function(){var lo=ao(this,eo),uo=lo.on;uo!==io&&(so=(io=uo).copy()).on(to,no),lo.on=so}}function transition_on(eo,to){var no=this._id;return arguments.length<2?get$2(this.node(),no).on.on(eo):this.each(onFunction(no,eo,to))}function removeFunction(eo){return function(){var to=this.parentNode;for(var no in this.__transition)if(+no!==eo)return;to&&to.removeChild(this)}}function transition_remove(){return this.on("end.remove",removeFunction(this._id))}function transition_select(eo){var to=this._name,no=this._id;typeof eo!="function"&&(eo=selector(eo));for(var io=this._groups,so=io.length,ao=new Array(so),lo=0;lo=0))throw new Error(`invalid digits: ${eo}`);if(to>15)return append$1;const no=10**to;return function(io){this._+=io[0];for(let so=1,ao=io.length;soepsilon$2)if(!(Math.abs(yo*ho-go*mo)>epsilon$2)||!ao)this._append`L${this._x1=to},${this._y1=no}`;else{let _o=io-lo,ko=so-uo,Co=ho*ho+go*go,$o=_o*_o+ko*ko,Ro=Math.sqrt(Co),Oo=Math.sqrt(So),No=ao*Math.tan((pi$2-Math.acos((Co+So-$o)/(2*Ro*Oo)))/2),Mo=No/Oo,Bo=No/Ro;Math.abs(Mo-1)>epsilon$2&&this._append`L${to+Mo*mo},${no+Mo*yo}`,this._append`A${ao},${ao},0,0,${+(yo*_o>mo*ko)},${this._x1=to+Bo*ho},${this._y1=no+Bo*go}`}}arc(to,no,io,so,ao,lo){if(to=+to,no=+no,io=+io,lo=!!lo,io<0)throw new Error(`negative radius: ${io}`);let uo=io*Math.cos(so),ho=io*Math.sin(so),go=to+uo,mo=no+ho,yo=1^lo,So=lo?so-ao:ao-so;this._x1===null?this._append`M${go},${mo}`:(Math.abs(this._x1-go)>epsilon$2||Math.abs(this._y1-mo)>epsilon$2)&&this._append`L${go},${mo}`,io&&(So<0&&(So=So%tau$2+tau$2),So>tauEpsilon$1?this._append`A${io},${io},0,1,${yo},${to-uo},${no-ho}A${io},${io},0,1,${yo},${this._x1=go},${this._y1=mo}`:So>epsilon$2&&this._append`A${io},${io},0,${+(So>=pi$2)},${yo},${this._x1=to+io*Math.cos(ao)},${this._y1=no+io*Math.sin(ao)}`)}rect(to,no,io,so){this._append`M${this._x0=this._x1=+to},${this._y0=this._y1=+no}h${io=+io}v${+so}h${-io}Z`}toString(){return this._}};function responseText(eo){if(!eo.ok)throw new Error(eo.status+" "+eo.statusText);return eo.text()}function text$4(eo,to){return fetch(eo,to).then(responseText)}function parser$k(eo){return(to,no)=>text$4(to,no).then(io=>new DOMParser().parseFromString(io,eo))}var svg$3=parser$k("image/svg+xml");function initRange(eo,to){switch(arguments.length){case 0:break;case 1:this.range(eo);break;default:this.range(to).domain(eo);break}return this}const implicit=Symbol("implicit");function ordinal(){var eo=new InternMap,to=[],no=[],io=implicit;function so(ao){let lo=eo.get(ao);if(lo===void 0){if(io!==implicit)return io;eo.set(ao,lo=to.push(ao)-1)}return no[lo%no.length]}return so.domain=function(ao){if(!arguments.length)return to.slice();to=[],eo=new InternMap;for(const lo of ao)eo.has(lo)||eo.set(lo,to.push(lo)-1);return so},so.range=function(ao){return arguments.length?(no=Array.from(ao),so):no.slice()},so.unknown=function(ao){return arguments.length?(io=ao,so):io},so.copy=function(){return ordinal(to,no).unknown(io)},initRange.apply(so,arguments),so}function band(){var eo=ordinal().unknown(void 0),to=eo.domain,no=eo.range,io=0,so=1,ao,lo,uo=!1,ho=0,go=0,mo=.5;delete eo.unknown;function yo(){var So=to().length,_o=soto&&(no=eo,eo=to,to=no),function(io){return Math.max(eo,Math.min(to,io))}}function bimap(eo,to,no){var io=eo[0],so=eo[1],ao=to[0],lo=to[1];return so2?polymap:bimap,ho=go=null,yo}function yo(So){return So==null||isNaN(So=+So)?ao:(ho||(ho=uo(eo.map(io),to,no)))(io(lo(So)))}return yo.invert=function(So){return lo(so((go||(go=uo(to,eo.map(io),interpolateNumber)))(So)))},yo.domain=function(So){return arguments.length?(eo=Array.from(So,number$4),mo()):eo.slice()},yo.range=function(So){return arguments.length?(to=Array.from(So),mo()):to.slice()},yo.rangeRound=function(So){return to=Array.from(So),no=interpolateRound,mo()},yo.clamp=function(So){return arguments.length?(lo=So?!0:identity$3,mo()):lo!==identity$3},yo.interpolate=function(So){return arguments.length?(no=So,mo()):no},yo.unknown=function(So){return arguments.length?(ao=So,yo):ao},function(So,_o){return io=So,so=_o,mo()}}function continuous(){return transformer()(identity$3,identity$3)}function tickFormat(eo,to,no,io){var so=tickStep(eo,to,no),ao;switch(io=formatSpecifier(io??",f"),io.type){case"s":{var lo=Math.max(Math.abs(eo),Math.abs(to));return io.precision==null&&!isNaN(ao=precisionPrefix(so,lo))&&(io.precision=ao),formatPrefix(io,lo)}case"":case"e":case"g":case"p":case"r":{io.precision==null&&!isNaN(ao=precisionRound(so,Math.max(Math.abs(eo),Math.abs(to))))&&(io.precision=ao-(io.type==="e"));break}case"f":case"%":{io.precision==null&&!isNaN(ao=precisionFixed(so))&&(io.precision=ao-(io.type==="%")*2);break}}return format$1(io)}function linearish(eo){var to=eo.domain;return eo.ticks=function(no){var io=to();return ticks(io[0],io[io.length-1],no??10)},eo.tickFormat=function(no,io){var so=to();return tickFormat(so[0],so[so.length-1],no??10,io)},eo.nice=function(no){no==null&&(no=10);var io=to(),so=0,ao=io.length-1,lo=io[so],uo=io[ao],ho,go,mo=10;for(uo0;){if(go=tickIncrement(lo,uo,no),go===ho)return io[so]=lo,io[ao]=uo,to(io);if(go>0)lo=Math.floor(lo/go)*go,uo=Math.ceil(uo/go)*go;else if(go<0)lo=Math.ceil(lo*go)/go,uo=Math.floor(uo*go)/go;else break;ho=go}return eo},eo}function linear(){var eo=continuous();return eo.copy=function(){return copy$2(eo,linear())},initRange.apply(eo,arguments),linearish(eo)}function nice(eo,to){eo=eo.slice();var no=0,io=eo.length-1,so=eo[no],ao=eo[io],lo;return ao(eo(ao=new Date(+ao)),ao),so.ceil=ao=>(eo(ao=new Date(ao-1)),to(ao,1),eo(ao),ao),so.round=ao=>{const lo=so(ao),uo=so.ceil(ao);return ao-lo(to(ao=new Date(+ao),lo==null?1:Math.floor(lo)),ao),so.range=(ao,lo,uo)=>{const ho=[];if(ao=so.ceil(ao),uo=uo==null?1:Math.floor(uo),!(ao0))return ho;let go;do ho.push(go=new Date(+ao)),to(ao,uo),eo(ao);while(gotimeInterval(lo=>{if(lo>=lo)for(;eo(lo),!ao(lo);)lo.setTime(lo-1)},(lo,uo)=>{if(lo>=lo)if(uo<0)for(;++uo<=0;)for(;to(lo,-1),!ao(lo););else for(;--uo>=0;)for(;to(lo,1),!ao(lo););}),no&&(so.count=(ao,lo)=>(t0.setTime(+ao),t1.setTime(+lo),eo(t0),eo(t1),Math.floor(no(t0,t1))),so.every=ao=>(ao=Math.floor(ao),!isFinite(ao)||!(ao>0)?null:ao>1?so.filter(io?lo=>io(lo)%ao===0:lo=>so.count(0,lo)%ao===0):so)),so}const millisecond=timeInterval(()=>{},(eo,to)=>{eo.setTime(+eo+to)},(eo,to)=>to-eo);millisecond.every=eo=>(eo=Math.floor(eo),!isFinite(eo)||!(eo>0)?null:eo>1?timeInterval(to=>{to.setTime(Math.floor(to/eo)*eo)},(to,no)=>{to.setTime(+to+no*eo)},(to,no)=>(no-to)/eo):millisecond);millisecond.range;const durationSecond=1e3,durationMinute=durationSecond*60,durationHour=durationMinute*60,durationDay=durationHour*24,durationWeek=durationDay*7,durationMonth=durationDay*30,durationYear=durationDay*365,second=timeInterval(eo=>{eo.setTime(eo-eo.getMilliseconds())},(eo,to)=>{eo.setTime(+eo+to*durationSecond)},(eo,to)=>(to-eo)/durationSecond,eo=>eo.getUTCSeconds());second.range;const timeMinute=timeInterval(eo=>{eo.setTime(eo-eo.getMilliseconds()-eo.getSeconds()*durationSecond)},(eo,to)=>{eo.setTime(+eo+to*durationMinute)},(eo,to)=>(to-eo)/durationMinute,eo=>eo.getMinutes());timeMinute.range;const utcMinute=timeInterval(eo=>{eo.setUTCSeconds(0,0)},(eo,to)=>{eo.setTime(+eo+to*durationMinute)},(eo,to)=>(to-eo)/durationMinute,eo=>eo.getUTCMinutes());utcMinute.range;const timeHour=timeInterval(eo=>{eo.setTime(eo-eo.getMilliseconds()-eo.getSeconds()*durationSecond-eo.getMinutes()*durationMinute)},(eo,to)=>{eo.setTime(+eo+to*durationHour)},(eo,to)=>(to-eo)/durationHour,eo=>eo.getHours());timeHour.range;const utcHour=timeInterval(eo=>{eo.setUTCMinutes(0,0,0)},(eo,to)=>{eo.setTime(+eo+to*durationHour)},(eo,to)=>(to-eo)/durationHour,eo=>eo.getUTCHours());utcHour.range;const timeDay=timeInterval(eo=>eo.setHours(0,0,0,0),(eo,to)=>eo.setDate(eo.getDate()+to),(eo,to)=>(to-eo-(to.getTimezoneOffset()-eo.getTimezoneOffset())*durationMinute)/durationDay,eo=>eo.getDate()-1);timeDay.range;const utcDay=timeInterval(eo=>{eo.setUTCHours(0,0,0,0)},(eo,to)=>{eo.setUTCDate(eo.getUTCDate()+to)},(eo,to)=>(to-eo)/durationDay,eo=>eo.getUTCDate()-1);utcDay.range;const unixDay=timeInterval(eo=>{eo.setUTCHours(0,0,0,0)},(eo,to)=>{eo.setUTCDate(eo.getUTCDate()+to)},(eo,to)=>(to-eo)/durationDay,eo=>Math.floor(eo/durationDay));unixDay.range;function timeWeekday(eo){return timeInterval(to=>{to.setDate(to.getDate()-(to.getDay()+7-eo)%7),to.setHours(0,0,0,0)},(to,no)=>{to.setDate(to.getDate()+no*7)},(to,no)=>(no-to-(no.getTimezoneOffset()-to.getTimezoneOffset())*durationMinute)/durationWeek)}const timeSunday=timeWeekday(0),timeMonday=timeWeekday(1),timeTuesday=timeWeekday(2),timeWednesday=timeWeekday(3),timeThursday=timeWeekday(4),timeFriday=timeWeekday(5),timeSaturday=timeWeekday(6);timeSunday.range;timeMonday.range;timeTuesday.range;timeWednesday.range;timeThursday.range;timeFriday.range;timeSaturday.range;function utcWeekday(eo){return timeInterval(to=>{to.setUTCDate(to.getUTCDate()-(to.getUTCDay()+7-eo)%7),to.setUTCHours(0,0,0,0)},(to,no)=>{to.setUTCDate(to.getUTCDate()+no*7)},(to,no)=>(no-to)/durationWeek)}const utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range;utcMonday.range;utcTuesday.range;utcWednesday.range;utcThursday.range;utcFriday.range;utcSaturday.range;const timeMonth=timeInterval(eo=>{eo.setDate(1),eo.setHours(0,0,0,0)},(eo,to)=>{eo.setMonth(eo.getMonth()+to)},(eo,to)=>to.getMonth()-eo.getMonth()+(to.getFullYear()-eo.getFullYear())*12,eo=>eo.getMonth());timeMonth.range;const utcMonth=timeInterval(eo=>{eo.setUTCDate(1),eo.setUTCHours(0,0,0,0)},(eo,to)=>{eo.setUTCMonth(eo.getUTCMonth()+to)},(eo,to)=>to.getUTCMonth()-eo.getUTCMonth()+(to.getUTCFullYear()-eo.getUTCFullYear())*12,eo=>eo.getUTCMonth());utcMonth.range;const timeYear=timeInterval(eo=>{eo.setMonth(0,1),eo.setHours(0,0,0,0)},(eo,to)=>{eo.setFullYear(eo.getFullYear()+to)},(eo,to)=>to.getFullYear()-eo.getFullYear(),eo=>eo.getFullYear());timeYear.every=eo=>!isFinite(eo=Math.floor(eo))||!(eo>0)?null:timeInterval(to=>{to.setFullYear(Math.floor(to.getFullYear()/eo)*eo),to.setMonth(0,1),to.setHours(0,0,0,0)},(to,no)=>{to.setFullYear(to.getFullYear()+no*eo)});timeYear.range;const utcYear=timeInterval(eo=>{eo.setUTCMonth(0,1),eo.setUTCHours(0,0,0,0)},(eo,to)=>{eo.setUTCFullYear(eo.getUTCFullYear()+to)},(eo,to)=>to.getUTCFullYear()-eo.getUTCFullYear(),eo=>eo.getUTCFullYear());utcYear.every=eo=>!isFinite(eo=Math.floor(eo))||!(eo>0)?null:timeInterval(to=>{to.setUTCFullYear(Math.floor(to.getUTCFullYear()/eo)*eo),to.setUTCMonth(0,1),to.setUTCHours(0,0,0,0)},(to,no)=>{to.setUTCFullYear(to.getUTCFullYear()+no*eo)});utcYear.range;function ticker(eo,to,no,io,so,ao){const lo=[[second,1,durationSecond],[second,5,5*durationSecond],[second,15,15*durationSecond],[second,30,30*durationSecond],[ao,1,durationMinute],[ao,5,5*durationMinute],[ao,15,15*durationMinute],[ao,30,30*durationMinute],[so,1,durationHour],[so,3,3*durationHour],[so,6,6*durationHour],[so,12,12*durationHour],[io,1,durationDay],[io,2,2*durationDay],[no,1,durationWeek],[to,1,durationMonth],[to,3,3*durationMonth],[eo,1,durationYear]];function uo(go,mo,yo){const So=mo$o).right(lo,So);if(_o===lo.length)return eo.every(tickStep(go/durationYear,mo/durationYear,yo));if(_o===0)return millisecond.every(Math.max(tickStep(go,mo,yo),1));const[ko,Co]=lo[So/lo[_o-1][2]53)return null;"w"in El||(El.w=1),"Z"in El?(Gl=utcDate(newDate(El.y,0,1)),Qs=Gl.getUTCDay(),Gl=Qs>4||Qs===0?utcMonday.ceil(Gl):utcMonday(Gl),Gl=utcDay.offset(Gl,(El.V-1)*7),El.y=Gl.getUTCFullYear(),El.m=Gl.getUTCMonth(),El.d=Gl.getUTCDate()+(El.w+6)%7):(Gl=localDate(newDate(El.y,0,1)),Qs=Gl.getDay(),Gl=Qs>4||Qs===0?timeMonday.ceil(Gl):timeMonday(Gl),Gl=timeDay.offset(Gl,(El.V-1)*7),El.y=Gl.getFullYear(),El.m=Gl.getMonth(),El.d=Gl.getDate()+(El.w+6)%7)}else("W"in El||"U"in El)&&("w"in El||(El.w="u"in El?El.u%7:"W"in El?1:0),Qs="Z"in El?utcDate(newDate(El.y,0,1)).getUTCDay():localDate(newDate(El.y,0,1)).getDay(),El.m=0,El.d="W"in El?(El.w+6)%7+El.W*7-(Qs+5)%7:El.w+El.U*7-(Qs+6)%7);return"Z"in El?(El.H+=El.Z/100|0,El.M+=El.Z%100,utcDate(El)):localDate(El)}}function Go(Fs,Js,Vs,El){for(var yl=0,Gl=Js.length,Qs=Vs.length,du,Ol;yl=Qs)return-1;if(du=Js.charCodeAt(yl++),du===37){if(du=Js.charAt(yl++),Ol=Bo[du in pads?Js.charAt(yl++):du],!Ol||(El=Ol(Fs,Vs,El))<0)return-1}else if(du!=Vs.charCodeAt(El++))return-1}return El}function Do(Fs,Js,Vs){var El=go.exec(Js.slice(Vs));return El?(Fs.p=mo.get(El[0].toLowerCase()),Vs+El[0].length):-1}function Uo(Fs,Js,Vs){var El=_o.exec(Js.slice(Vs));return El?(Fs.w=ko.get(El[0].toLowerCase()),Vs+El[0].length):-1}function Ho(Fs,Js,Vs){var El=yo.exec(Js.slice(Vs));return El?(Fs.w=So.get(El[0].toLowerCase()),Vs+El[0].length):-1}function Yo(Fs,Js,Vs){var El=Ro.exec(Js.slice(Vs));return El?(Fs.m=Oo.get(El[0].toLowerCase()),Vs+El[0].length):-1}function qo(Fs,Js,Vs){var El=Co.exec(Js.slice(Vs));return El?(Fs.m=$o.get(El[0].toLowerCase()),Vs+El[0].length):-1}function Jo(Fs,Js,Vs){return Go(Fs,to,Js,Vs)}function ps(Fs,Js,Vs){return Go(Fs,no,Js,Vs)}function Qo(Fs,Js,Vs){return Go(Fs,io,Js,Vs)}function hs(Fs){return lo[Fs.getDay()]}function gs(Fs){return ao[Fs.getDay()]}function ys(Fs){return ho[Fs.getMonth()]}function vs(Fs){return uo[Fs.getMonth()]}function ks(Fs){return so[+(Fs.getHours()>=12)]}function Os(Fs){return 1+~~(Fs.getMonth()/3)}function Ts(Fs){return lo[Fs.getUTCDay()]}function Xs(Fs){return ao[Fs.getUTCDay()]}function Ws(Fs){return ho[Fs.getUTCMonth()]}function Ps(Fs){return uo[Fs.getUTCMonth()]}function qs(Fs){return so[+(Fs.getUTCHours()>=12)]}function ga(Fs){return 1+~~(Fs.getUTCMonth()/3)}return{format:function(Fs){var Js=Po(Fs+="",No);return Js.toString=function(){return Fs},Js},parse:function(Fs){var Js=Lo(Fs+="",!1);return Js.toString=function(){return Fs},Js},utcFormat:function(Fs){var Js=Po(Fs+="",Mo);return Js.toString=function(){return Fs},Js},utcParse:function(Fs){var Js=Lo(Fs+="",!0);return Js.toString=function(){return Fs},Js}}}var pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad$1(eo,to,no){var io=eo<0?"-":"",so=(io?-eo:eo)+"",ao=so.length;return io+(ao[to.toLowerCase(),no]))}function parseWeekdayNumberSunday(eo,to,no){var io=numberRe.exec(to.slice(no,no+1));return io?(eo.w=+io[0],no+io[0].length):-1}function parseWeekdayNumberMonday(eo,to,no){var io=numberRe.exec(to.slice(no,no+1));return io?(eo.u=+io[0],no+io[0].length):-1}function parseWeekNumberSunday(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.U=+io[0],no+io[0].length):-1}function parseWeekNumberISO(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.V=+io[0],no+io[0].length):-1}function parseWeekNumberMonday(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.W=+io[0],no+io[0].length):-1}function parseFullYear(eo,to,no){var io=numberRe.exec(to.slice(no,no+4));return io?(eo.y=+io[0],no+io[0].length):-1}function parseYear(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.y=+io[0]+(+io[0]>68?1900:2e3),no+io[0].length):-1}function parseZone(eo,to,no){var io=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(to.slice(no,no+6));return io?(eo.Z=io[1]?0:-(io[2]+(io[3]||"00")),no+io[0].length):-1}function parseQuarter(eo,to,no){var io=numberRe.exec(to.slice(no,no+1));return io?(eo.q=io[0]*3-3,no+io[0].length):-1}function parseMonthNumber(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.m=io[0]-1,no+io[0].length):-1}function parseDayOfMonth(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.d=+io[0],no+io[0].length):-1}function parseDayOfYear(eo,to,no){var io=numberRe.exec(to.slice(no,no+3));return io?(eo.m=0,eo.d=+io[0],no+io[0].length):-1}function parseHour24(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.H=+io[0],no+io[0].length):-1}function parseMinutes(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.M=+io[0],no+io[0].length):-1}function parseSeconds(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.S=+io[0],no+io[0].length):-1}function parseMilliseconds(eo,to,no){var io=numberRe.exec(to.slice(no,no+3));return io?(eo.L=+io[0],no+io[0].length):-1}function parseMicroseconds(eo,to,no){var io=numberRe.exec(to.slice(no,no+6));return io?(eo.L=Math.floor(io[0]/1e3),no+io[0].length):-1}function parseLiteralPercent(eo,to,no){var io=percentRe.exec(to.slice(no,no+1));return io?no+io[0].length:-1}function parseUnixTimestamp(eo,to,no){var io=numberRe.exec(to.slice(no));return io?(eo.Q=+io[0],no+io[0].length):-1}function parseUnixTimestampSeconds(eo,to,no){var io=numberRe.exec(to.slice(no));return io?(eo.s=+io[0],no+io[0].length):-1}function formatDayOfMonth(eo,to){return pad$1(eo.getDate(),to,2)}function formatHour24(eo,to){return pad$1(eo.getHours(),to,2)}function formatHour12(eo,to){return pad$1(eo.getHours()%12||12,to,2)}function formatDayOfYear(eo,to){return pad$1(1+timeDay.count(timeYear(eo),eo),to,3)}function formatMilliseconds(eo,to){return pad$1(eo.getMilliseconds(),to,3)}function formatMicroseconds(eo,to){return formatMilliseconds(eo,to)+"000"}function formatMonthNumber(eo,to){return pad$1(eo.getMonth()+1,to,2)}function formatMinutes(eo,to){return pad$1(eo.getMinutes(),to,2)}function formatSeconds(eo,to){return pad$1(eo.getSeconds(),to,2)}function formatWeekdayNumberMonday(eo){var to=eo.getDay();return to===0?7:to}function formatWeekNumberSunday(eo,to){return pad$1(timeSunday.count(timeYear(eo)-1,eo),to,2)}function dISO(eo){var to=eo.getDay();return to>=4||to===0?timeThursday(eo):timeThursday.ceil(eo)}function formatWeekNumberISO(eo,to){return eo=dISO(eo),pad$1(timeThursday.count(timeYear(eo),eo)+(timeYear(eo).getDay()===4),to,2)}function formatWeekdayNumberSunday(eo){return eo.getDay()}function formatWeekNumberMonday(eo,to){return pad$1(timeMonday.count(timeYear(eo)-1,eo),to,2)}function formatYear(eo,to){return pad$1(eo.getFullYear()%100,to,2)}function formatYearISO(eo,to){return eo=dISO(eo),pad$1(eo.getFullYear()%100,to,2)}function formatFullYear(eo,to){return pad$1(eo.getFullYear()%1e4,to,4)}function formatFullYearISO(eo,to){var no=eo.getDay();return eo=no>=4||no===0?timeThursday(eo):timeThursday.ceil(eo),pad$1(eo.getFullYear()%1e4,to,4)}function formatZone(eo){var to=eo.getTimezoneOffset();return(to>0?"-":(to*=-1,"+"))+pad$1(to/60|0,"0",2)+pad$1(to%60,"0",2)}function formatUTCDayOfMonth(eo,to){return pad$1(eo.getUTCDate(),to,2)}function formatUTCHour24(eo,to){return pad$1(eo.getUTCHours(),to,2)}function formatUTCHour12(eo,to){return pad$1(eo.getUTCHours()%12||12,to,2)}function formatUTCDayOfYear(eo,to){return pad$1(1+utcDay.count(utcYear(eo),eo),to,3)}function formatUTCMilliseconds(eo,to){return pad$1(eo.getUTCMilliseconds(),to,3)}function formatUTCMicroseconds(eo,to){return formatUTCMilliseconds(eo,to)+"000"}function formatUTCMonthNumber(eo,to){return pad$1(eo.getUTCMonth()+1,to,2)}function formatUTCMinutes(eo,to){return pad$1(eo.getUTCMinutes(),to,2)}function formatUTCSeconds(eo,to){return pad$1(eo.getUTCSeconds(),to,2)}function formatUTCWeekdayNumberMonday(eo){var to=eo.getUTCDay();return to===0?7:to}function formatUTCWeekNumberSunday(eo,to){return pad$1(utcSunday.count(utcYear(eo)-1,eo),to,2)}function UTCdISO(eo){var to=eo.getUTCDay();return to>=4||to===0?utcThursday(eo):utcThursday.ceil(eo)}function formatUTCWeekNumberISO(eo,to){return eo=UTCdISO(eo),pad$1(utcThursday.count(utcYear(eo),eo)+(utcYear(eo).getUTCDay()===4),to,2)}function formatUTCWeekdayNumberSunday(eo){return eo.getUTCDay()}function formatUTCWeekNumberMonday(eo,to){return pad$1(utcMonday.count(utcYear(eo)-1,eo),to,2)}function formatUTCYear(eo,to){return pad$1(eo.getUTCFullYear()%100,to,2)}function formatUTCYearISO(eo,to){return eo=UTCdISO(eo),pad$1(eo.getUTCFullYear()%100,to,2)}function formatUTCFullYear(eo,to){return pad$1(eo.getUTCFullYear()%1e4,to,4)}function formatUTCFullYearISO(eo,to){var no=eo.getUTCDay();return eo=no>=4||no===0?utcThursday(eo):utcThursday.ceil(eo),pad$1(eo.getUTCFullYear()%1e4,to,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(eo){return+eo}function formatUnixTimestampSeconds(eo){return Math.floor(+eo/1e3)}var locale,timeFormat;defaultLocale({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function defaultLocale(eo){return locale=formatLocale(eo),timeFormat=locale.format,locale.parse,locale.utcFormat,locale.utcParse,locale}function date(eo){return new Date(eo)}function number$3(eo){return eo instanceof Date?+eo:+new Date(+eo)}function calendar(eo,to,no,io,so,ao,lo,uo,ho,go){var mo=continuous(),yo=mo.invert,So=mo.domain,_o=go(".%L"),ko=go(":%S"),Co=go("%I:%M"),$o=go("%I %p"),Ro=go("%a %d"),Oo=go("%b %d"),No=go("%B"),Mo=go("%Y");function Bo(Po){return(ho(Po)1?0:eo<-1?pi$1:Math.acos(eo)}function asin(eo){return eo>=1?halfPi:eo<=-1?-halfPi:Math.asin(eo)}function withPath(eo){let to=3;return eo.digits=function(no){if(!arguments.length)return to;if(no==null)to=null;else{const io=Math.floor(no);if(!(io>=0))throw new RangeError(`invalid digits: ${no}`);to=io}return eo},()=>new Path$1(to)}function arcInnerRadius(eo){return eo.innerRadius}function arcOuterRadius(eo){return eo.outerRadius}function arcStartAngle(eo){return eo.startAngle}function arcEndAngle(eo){return eo.endAngle}function arcPadAngle(eo){return eo&&eo.padAngle}function intersect$1(eo,to,no,io,so,ao,lo,uo){var ho=no-eo,go=io-to,mo=lo-so,yo=uo-ao,So=yo*ho-mo*go;if(!(So*SoJo*Jo+ps*ps&&(Go=Uo,Do=Ho),{cx:Go,cy:Do,x01:-mo,y01:-yo,x11:Go*(so/Bo-1),y11:Do*(so/Bo-1)}}function arc(){var eo=arcInnerRadius,to=arcOuterRadius,no=constant$3(0),io=null,so=arcStartAngle,ao=arcEndAngle,lo=arcPadAngle,uo=null,ho=withPath(go);function go(){var mo,yo,So=+eo.apply(this,arguments),_o=+to.apply(this,arguments),ko=so.apply(this,arguments)-halfPi,Co=ao.apply(this,arguments)-halfPi,$o=abs$1(Co-ko),Ro=Co>ko;if(uo||(uo=mo=ho()),_oepsilon$1))uo.moveTo(0,0);else if($o>tau$1-epsilon$1)uo.moveTo(_o*cos$1(ko),_o*sin$1(ko)),uo.arc(0,0,_o,ko,Co,!Ro),So>epsilon$1&&(uo.moveTo(So*cos$1(Co),So*sin$1(Co)),uo.arc(0,0,So,Co,ko,Ro));else{var Oo=ko,No=Co,Mo=ko,Bo=Co,Po=$o,Lo=$o,Go=lo.apply(this,arguments)/2,Do=Go>epsilon$1&&(io?+io.apply(this,arguments):sqrt$1(So*So+_o*_o)),Uo=min$3(abs$1(_o-So)/2,+no.apply(this,arguments)),Ho=Uo,Yo=Uo,qo,Jo;if(Do>epsilon$1){var ps=asin(Do/So*sin$1(Go)),Qo=asin(Do/_o*sin$1(Go));(Po-=ps*2)>epsilon$1?(ps*=Ro?1:-1,Mo+=ps,Bo-=ps):(Po=0,Mo=Bo=(ko+Co)/2),(Lo-=Qo*2)>epsilon$1?(Qo*=Ro?1:-1,Oo+=Qo,No-=Qo):(Lo=0,Oo=No=(ko+Co)/2)}var hs=_o*cos$1(Oo),gs=_o*sin$1(Oo),ys=So*cos$1(Bo),vs=So*sin$1(Bo);if(Uo>epsilon$1){var ks=_o*cos$1(No),Os=_o*sin$1(No),Ts=So*cos$1(Mo),Xs=So*sin$1(Mo),Ws;if($oepsilon$1?Yo>epsilon$1?(qo=cornerTangents(Ts,Xs,hs,gs,_o,Yo,Ro),Jo=cornerTangents(ks,Os,ys,vs,_o,Yo,Ro),uo.moveTo(qo.cx+qo.x01,qo.cy+qo.y01),Yoepsilon$1)||!(Po>epsilon$1)?uo.lineTo(ys,vs):Ho>epsilon$1?(qo=cornerTangents(ys,vs,ks,Os,So,-Ho,Ro),Jo=cornerTangents(hs,gs,Ts,Xs,So,-Ho,Ro),uo.lineTo(qo.cx+qo.x01,qo.cy+qo.y01),Hoeo?1:to>=eo?0:NaN}function identity$2(eo){return eo}function pie$1(){var eo=identity$2,to=descending$1,no=null,io=constant$3(0),so=constant$3(tau$1),ao=constant$3(0);function lo(uo){var ho,go=(uo=array$1(uo)).length,mo,yo,So=0,_o=new Array(go),ko=new Array(go),Co=+io.apply(this,arguments),$o=Math.min(tau$1,Math.max(-tau$1,so.apply(this,arguments)-Co)),Ro,Oo=Math.min(Math.abs($o)/go,ao.apply(this,arguments)),No=Oo*($o<0?-1:1),Mo;for(ho=0;ho0&&(So+=Mo);for(to!=null?_o.sort(function(Bo,Po){return to(ko[Bo],ko[Po])}):no!=null&&_o.sort(function(Bo,Po){return no(uo[Bo],uo[Po])}),ho=0,yo=So?($o-go*No)/So:0;ho0?Mo*yo:0)+No,ko[mo]={data:uo[mo],index:ho,value:Mo,startAngle:Co,endAngle:Ro,padAngle:Oo};return ko}return lo.value=function(uo){return arguments.length?(eo=typeof uo=="function"?uo:constant$3(+uo),lo):eo},lo.sortValues=function(uo){return arguments.length?(to=uo,no=null,lo):to},lo.sort=function(uo){return arguments.length?(no=uo,to=null,lo):no},lo.startAngle=function(uo){return arguments.length?(io=typeof uo=="function"?uo:constant$3(+uo),lo):io},lo.endAngle=function(uo){return arguments.length?(so=typeof uo=="function"?uo:constant$3(+uo),lo):so},lo.padAngle=function(uo){return arguments.length?(ao=typeof uo=="function"?uo:constant$3(+uo),lo):ao},lo}class Bump{constructor(to,no){this._context=to,this._x=no}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(to,no){switch(to=+to,no=+no,this._point){case 0:{this._point=1,this._line?this._context.lineTo(to,no):this._context.moveTo(to,no);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+to)/2,this._y0,this._x0,no,to,no):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+no)/2,to,this._y0,to,no);break}}this._x0=to,this._y0=no}}function bumpX(eo){return new Bump(eo,!0)}function bumpY(eo){return new Bump(eo,!1)}function noop$3(){}function point$6(eo,to,no){eo._context.bezierCurveTo((2*eo._x0+eo._x1)/3,(2*eo._y0+eo._y1)/3,(eo._x0+2*eo._x1)/3,(eo._y0+2*eo._y1)/3,(eo._x0+4*eo._x1+to)/6,(eo._y0+4*eo._y1+no)/6)}function Basis(eo){this._context=eo}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$6(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1,this._line?this._context.lineTo(eo,to):this._context.moveTo(eo,to);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$6(this,eo,to);break}this._x0=this._x1,this._x1=eo,this._y0=this._y1,this._y1=to}};function curveBasis(eo){return new Basis(eo)}function BasisClosed(eo){this._context=eo}BasisClosed.prototype={areaStart:noop$3,areaEnd:noop$3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1,this._x2=eo,this._y2=to;break;case 1:this._point=2,this._x3=eo,this._y3=to;break;case 2:this._point=3,this._x4=eo,this._y4=to,this._context.moveTo((this._x0+4*this._x1+eo)/6,(this._y0+4*this._y1+to)/6);break;default:point$6(this,eo,to);break}this._x0=this._x1,this._x1=eo,this._y0=this._y1,this._y1=to}};function curveBasisClosed(eo){return new BasisClosed(eo)}function BasisOpen(eo){this._context=eo}BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var no=(this._x0+4*this._x1+eo)/6,io=(this._y0+4*this._y1+to)/6;this._line?this._context.lineTo(no,io):this._context.moveTo(no,io);break;case 3:this._point=4;default:point$6(this,eo,to);break}this._x0=this._x1,this._x1=eo,this._y0=this._y1,this._y1=to}};function curveBasisOpen(eo){return new BasisOpen(eo)}function Bundle(eo,to){this._basis=new Basis(eo),this._beta=to}Bundle.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var eo=this._x,to=this._y,no=eo.length-1;if(no>0)for(var io=eo[0],so=to[0],ao=eo[no]-io,lo=to[no]-so,uo=-1,ho;++uo<=no;)ho=uo/no,this._basis.point(this._beta*eo[uo]+(1-this._beta)*(io+ho*ao),this._beta*to[uo]+(1-this._beta)*(so+ho*lo));this._x=this._y=null,this._basis.lineEnd()},point:function(eo,to){this._x.push(+eo),this._y.push(+to)}};const curveBundle=function eo(to){function no(io){return to===1?new Basis(io):new Bundle(io,to)}return no.beta=function(io){return eo(+io)},no}(.85);function point$5(eo,to,no){eo._context.bezierCurveTo(eo._x1+eo._k*(eo._x2-eo._x0),eo._y1+eo._k*(eo._y2-eo._y0),eo._x2+eo._k*(eo._x1-to),eo._y2+eo._k*(eo._y1-no),eo._x2,eo._y2)}function Cardinal(eo,to){this._context=eo,this._k=(1-to)/6}Cardinal.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:point$5(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1,this._line?this._context.lineTo(eo,to):this._context.moveTo(eo,to);break;case 1:this._point=2,this._x1=eo,this._y1=to;break;case 2:this._point=3;default:point$5(this,eo,to);break}this._x0=this._x1,this._x1=this._x2,this._x2=eo,this._y0=this._y1,this._y1=this._y2,this._y2=to}};const curveCardinal=function eo(to){function no(io){return new Cardinal(io,to)}return no.tension=function(io){return eo(+io)},no}(0);function CardinalClosed(eo,to){this._context=eo,this._k=(1-to)/6}CardinalClosed.prototype={areaStart:noop$3,areaEnd:noop$3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1,this._x3=eo,this._y3=to;break;case 1:this._point=2,this._context.moveTo(this._x4=eo,this._y4=to);break;case 2:this._point=3,this._x5=eo,this._y5=to;break;default:point$5(this,eo,to);break}this._x0=this._x1,this._x1=this._x2,this._x2=eo,this._y0=this._y1,this._y1=this._y2,this._y2=to}};const curveCardinalClosed=function eo(to){function no(io){return new CardinalClosed(io,to)}return no.tension=function(io){return eo(+io)},no}(0);function CardinalOpen(eo,to){this._context=eo,this._k=(1-to)/6}CardinalOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$5(this,eo,to);break}this._x0=this._x1,this._x1=this._x2,this._x2=eo,this._y0=this._y1,this._y1=this._y2,this._y2=to}};const curveCardinalOpen=function eo(to){function no(io){return new CardinalOpen(io,to)}return no.tension=function(io){return eo(+io)},no}(0);function point$4(eo,to,no){var io=eo._x1,so=eo._y1,ao=eo._x2,lo=eo._y2;if(eo._l01_a>epsilon$1){var uo=2*eo._l01_2a+3*eo._l01_a*eo._l12_a+eo._l12_2a,ho=3*eo._l01_a*(eo._l01_a+eo._l12_a);io=(io*uo-eo._x0*eo._l12_2a+eo._x2*eo._l01_2a)/ho,so=(so*uo-eo._y0*eo._l12_2a+eo._y2*eo._l01_2a)/ho}if(eo._l23_a>epsilon$1){var go=2*eo._l23_2a+3*eo._l23_a*eo._l12_a+eo._l12_2a,mo=3*eo._l23_a*(eo._l23_a+eo._l12_a);ao=(ao*go+eo._x1*eo._l23_2a-to*eo._l12_2a)/mo,lo=(lo*go+eo._y1*eo._l23_2a-no*eo._l12_2a)/mo}eo._context.bezierCurveTo(io,so,ao,lo,eo._x2,eo._y2)}function CatmullRom(eo,to){this._context=eo,this._alpha=to}CatmullRom.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){if(eo=+eo,to=+to,this._point){var no=this._x2-eo,io=this._y2-to;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(no*no+io*io,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(eo,to):this._context.moveTo(eo,to);break;case 1:this._point=2;break;case 2:this._point=3;default:point$4(this,eo,to);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=eo,this._y0=this._y1,this._y1=this._y2,this._y2=to}};const curveCatmullRom=function eo(to){function no(io){return to?new CatmullRom(io,to):new Cardinal(io,0)}return no.alpha=function(io){return eo(+io)},no}(.5);function CatmullRomClosed(eo,to){this._context=eo,this._alpha=to}CatmullRomClosed.prototype={areaStart:noop$3,areaEnd:noop$3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(eo,to){if(eo=+eo,to=+to,this._point){var no=this._x2-eo,io=this._y2-to;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(no*no+io*io,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=eo,this._y3=to;break;case 1:this._point=2,this._context.moveTo(this._x4=eo,this._y4=to);break;case 2:this._point=3,this._x5=eo,this._y5=to;break;default:point$4(this,eo,to);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=eo,this._y0=this._y1,this._y1=this._y2,this._y2=to}};const curveCatmullRomClosed=function eo(to){function no(io){return to?new CatmullRomClosed(io,to):new CardinalClosed(io,0)}return no.alpha=function(io){return eo(+io)},no}(.5);function CatmullRomOpen(eo,to){this._context=eo,this._alpha=to}CatmullRomOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){if(eo=+eo,to=+to,this._point){var no=this._x2-eo,io=this._y2-to;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(no*no+io*io,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$4(this,eo,to);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=eo,this._y0=this._y1,this._y1=this._y2,this._y2=to}};const curveCatmullRomOpen=function eo(to){function no(io){return to?new CatmullRomOpen(io,to):new CardinalOpen(io,0)}return no.alpha=function(io){return eo(+io)},no}(.5);function LinearClosed(eo){this._context=eo}LinearClosed.prototype={areaStart:noop$3,areaEnd:noop$3,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(eo,to){eo=+eo,to=+to,this._point?this._context.lineTo(eo,to):(this._point=1,this._context.moveTo(eo,to))}};function curveLinearClosed(eo){return new LinearClosed(eo)}function sign(eo){return eo<0?-1:1}function slope3(eo,to,no){var io=eo._x1-eo._x0,so=to-eo._x1,ao=(eo._y1-eo._y0)/(io||so<0&&-0),lo=(no-eo._y1)/(so||io<0&&-0),uo=(ao*so+lo*io)/(io+so);return(sign(ao)+sign(lo))*Math.min(Math.abs(ao),Math.abs(lo),.5*Math.abs(uo))||0}function slope2(eo,to){var no=eo._x1-eo._x0;return no?(3*(eo._y1-eo._y0)/no-to)/2:to}function point$3(eo,to,no){var io=eo._x0,so=eo._y0,ao=eo._x1,lo=eo._y1,uo=(ao-io)/3;eo._context.bezierCurveTo(io+uo,so+uo*to,ao-uo,lo-uo*no,ao,lo)}function MonotoneX(eo){this._context=eo}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$3(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){var no=NaN;if(eo=+eo,to=+to,!(eo===this._x1&&to===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(eo,to):this._context.moveTo(eo,to);break;case 1:this._point=2;break;case 2:this._point=3,point$3(this,slope2(this,no=slope3(this,eo,to)),no);break;default:point$3(this,this._t0,no=slope3(this,eo,to));break}this._x0=this._x1,this._x1=eo,this._y0=this._y1,this._y1=to,this._t0=no}}};function MonotoneY(eo){this._context=new ReflectContext(eo)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(eo,to){MonotoneX.prototype.point.call(this,to,eo)};function ReflectContext(eo){this._context=eo}ReflectContext.prototype={moveTo:function(eo,to){this._context.moveTo(to,eo)},closePath:function(){this._context.closePath()},lineTo:function(eo,to){this._context.lineTo(to,eo)},bezierCurveTo:function(eo,to,no,io,so,ao){this._context.bezierCurveTo(to,eo,io,no,ao,so)}};function monotoneX(eo){return new MonotoneX(eo)}function monotoneY(eo){return new MonotoneY(eo)}function Natural(eo){this._context=eo}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var eo=this._x,to=this._y,no=eo.length;if(no)if(this._line?this._context.lineTo(eo[0],to[0]):this._context.moveTo(eo[0],to[0]),no===2)this._context.lineTo(eo[1],to[1]);else for(var io=controlPoints$1(eo),so=controlPoints$1(to),ao=0,lo=1;lo=0;--to)so[to]=(lo[to]-so[to+1])/ao[to];for(ao[no-1]=(eo[no]+so[no-1])/2,to=0;to=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1,this._line?this._context.lineTo(eo,to):this._context.moveTo(eo,to);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,to),this._context.lineTo(eo,to);else{var no=this._x*(1-this._t)+eo*this._t;this._context.lineTo(no,this._y),this._context.lineTo(no,to)}break}}this._x=eo,this._y=to}};function curveStep(eo){return new Step(eo,.5)}function stepBefore(eo){return new Step(eo,0)}function stepAfter(eo){return new Step(eo,1)}function Transform(eo,to,no){this.k=eo,this.x=to,this.y=no}Transform.prototype={constructor:Transform,scale:function(eo){return eo===1?this:new Transform(this.k*eo,this.x,this.y)},translate:function(eo,to){return eo===0&to===0?this:new Transform(this.k,this.x+this.k*eo,this.y+this.k*to)},apply:function(eo){return[eo[0]*this.k+this.x,eo[1]*this.k+this.y]},applyX:function(eo){return eo*this.k+this.x},applyY:function(eo){return eo*this.k+this.y},invert:function(eo){return[(eo[0]-this.x)/this.k,(eo[1]-this.y)/this.k]},invertX:function(eo){return(eo-this.x)/this.k},invertY:function(eo){return(eo-this.y)/this.k},rescaleX:function(eo){return eo.copy().domain(eo.range().map(this.invertX,this).map(eo.invert,eo))},rescaleY:function(eo){return eo.copy().domain(eo.range().map(this.invertY,this).map(eo.invert,eo))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Transform.prototype;/*! @license DOMPurify 3.1.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.0/LICENSE */const{entries,setPrototypeOf,isFrozen,getPrototypeOf,getOwnPropertyDescriptor}=Object;let{freeze,seal,create}=Object,{apply:apply$2,construct}=typeof Reflect<"u"&&Reflect;freeze||(freeze=function(to){return to});seal||(seal=function(to){return to});apply$2||(apply$2=function(to,no,io){return to.apply(no,io)});construct||(construct=function(to,no){return new to(...no)});const arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush$1=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),objectHasOwnProperty=unapply(Object.prototype.hasOwnProperty),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(eo){return function(to){for(var no=arguments.length,io=new Array(no>1?no-1:0),so=1;so2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(eo,null);let io=to.length;for(;io--;){let so=to[io];if(typeof so=="string"){const ao=no(so);ao!==so&&(isFrozen(to)||(to[io]=ao),so=ao)}eo[so]=!0}return eo}function cleanArray(eo){for(let to=0;to/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),CUSTOM_ELEMENT=seal(/^[a-z][.\w]*(-[.\w]+)+$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME,CUSTOM_ELEMENT});const getGlobal=function eo(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function eo(to,no){if(typeof to!="object"||typeof to.createPolicy!="function")return null;let io=null;const so="data-tt-policy-suffix";no&&no.hasAttribute(so)&&(io=no.getAttribute(so));const ao="dompurify"+(io?"#"+io:"");try{return to.createPolicy(ao,{createHTML(lo){return lo},createScriptURL(lo){return lo}})}catch{return console.warn("TrustedTypes policy "+ao+" could not be created."),null}};function createDOMPurify(){let eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const to=Rl=>createDOMPurify(Rl);if(to.version="3.1.0",to.removed=[],!eo||!eo.document||eo.document.nodeType!==9)return to.isSupported=!1,to;let{document:no}=eo;const io=no,so=io.currentScript,{DocumentFragment:ao,HTMLTemplateElement:lo,Node:uo,Element:ho,NodeFilter:go,NamedNodeMap:mo=eo.NamedNodeMap||eo.MozNamedAttrMap,HTMLFormElement:yo,DOMParser:So,trustedTypes:_o}=eo,ko=ho.prototype,Co=lookupGetter(ko,"cloneNode"),$o=lookupGetter(ko,"nextSibling"),Ro=lookupGetter(ko,"childNodes"),Oo=lookupGetter(ko,"parentNode");if(typeof lo=="function"){const Rl=no.createElement("template");Rl.content&&Rl.content.ownerDocument&&(no=Rl.content.ownerDocument)}let No,Mo="";const{implementation:Bo,createNodeIterator:Po,createDocumentFragment:Lo,getElementsByTagName:Go}=no,{importNode:Do}=io;let Uo={};to.isSupported=typeof entries=="function"&&typeof Oo=="function"&&Bo&&Bo.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ho,ERB_EXPR:Yo,TMPLIT_EXPR:qo,DATA_ATTR:Jo,ARIA_ATTR:ps,IS_SCRIPT_OR_DATA:Qo,ATTR_WHITESPACE:hs,CUSTOM_ELEMENT:gs}=EXPRESSIONS;let{IS_ALLOWED_URI:ys}=EXPRESSIONS,vs=null;const ks=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text$3]);let Os=null;const Ts=addToSet({},[...html,...svg$2,...mathMl,...xml]);let Xs=Object.seal(create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ws=null,Ps=null,qs=!0,ga=!0,Fs=!1,Js=!0,Vs=!1,El=!0,yl=!1,Gl=!1,Qs=!1,du=!1,Ol=!1,Fu=!1,ju=!0,F1=!1;const y1="user-content-";let r1=!0,$u=!1,Kl={},Is=null;const Ks=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Bs=null;const Ds=addToSet({},["audio","video","img","source","image","track"]);let Zs=null;const Cl=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ba="http://www.w3.org/1998/Math/MathML",fu="http://www.w3.org/2000/svg",Lu="http://www.w3.org/1999/xhtml";let e1=Lu,Gu=!1,w1=null;const Zu=addToSet({},[ba,fu,Lu],stringToString);let L1=null;const K1=["application/xhtml+xml","text/html"],yp="text/html";let wp=null,j0=null;const h0=no.createElement("form"),cp=function(Sl){return Sl instanceof RegExp||Sl instanceof Function},k0=function(){let Sl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(j0&&j0===Sl)){if((!Sl||typeof Sl!="object")&&(Sl={}),Sl=clone$3(Sl),L1=K1.indexOf(Sl.PARSER_MEDIA_TYPE)===-1?yp:Sl.PARSER_MEDIA_TYPE,wp=L1==="application/xhtml+xml"?stringToString:stringToLowerCase,vs=objectHasOwnProperty(Sl,"ALLOWED_TAGS")?addToSet({},Sl.ALLOWED_TAGS,wp):ks,Os=objectHasOwnProperty(Sl,"ALLOWED_ATTR")?addToSet({},Sl.ALLOWED_ATTR,wp):Ts,w1=objectHasOwnProperty(Sl,"ALLOWED_NAMESPACES")?addToSet({},Sl.ALLOWED_NAMESPACES,stringToString):Zu,Zs=objectHasOwnProperty(Sl,"ADD_URI_SAFE_ATTR")?addToSet(clone$3(Cl),Sl.ADD_URI_SAFE_ATTR,wp):Cl,Bs=objectHasOwnProperty(Sl,"ADD_DATA_URI_TAGS")?addToSet(clone$3(Ds),Sl.ADD_DATA_URI_TAGS,wp):Ds,Is=objectHasOwnProperty(Sl,"FORBID_CONTENTS")?addToSet({},Sl.FORBID_CONTENTS,wp):Ks,Ws=objectHasOwnProperty(Sl,"FORBID_TAGS")?addToSet({},Sl.FORBID_TAGS,wp):{},Ps=objectHasOwnProperty(Sl,"FORBID_ATTR")?addToSet({},Sl.FORBID_ATTR,wp):{},Kl=objectHasOwnProperty(Sl,"USE_PROFILES")?Sl.USE_PROFILES:!1,qs=Sl.ALLOW_ARIA_ATTR!==!1,ga=Sl.ALLOW_DATA_ATTR!==!1,Fs=Sl.ALLOW_UNKNOWN_PROTOCOLS||!1,Js=Sl.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Vs=Sl.SAFE_FOR_TEMPLATES||!1,El=Sl.SAFE_FOR_XML!==!1,yl=Sl.WHOLE_DOCUMENT||!1,du=Sl.RETURN_DOM||!1,Ol=Sl.RETURN_DOM_FRAGMENT||!1,Fu=Sl.RETURN_TRUSTED_TYPE||!1,Qs=Sl.FORCE_BODY||!1,ju=Sl.SANITIZE_DOM!==!1,F1=Sl.SANITIZE_NAMED_PROPS||!1,r1=Sl.KEEP_CONTENT!==!1,$u=Sl.IN_PLACE||!1,ys=Sl.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,e1=Sl.NAMESPACE||Lu,Xs=Sl.CUSTOM_ELEMENT_HANDLING||{},Sl.CUSTOM_ELEMENT_HANDLING&&cp(Sl.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Xs.tagNameCheck=Sl.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Sl.CUSTOM_ELEMENT_HANDLING&&cp(Sl.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Xs.attributeNameCheck=Sl.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Sl.CUSTOM_ELEMENT_HANDLING&&typeof Sl.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Xs.allowCustomizedBuiltInElements=Sl.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Vs&&(ga=!1),Ol&&(du=!0),Kl&&(vs=addToSet({},text$3),Os=[],Kl.html===!0&&(addToSet(vs,html$1),addToSet(Os,html)),Kl.svg===!0&&(addToSet(vs,svg$1),addToSet(Os,svg$2),addToSet(Os,xml)),Kl.svgFilters===!0&&(addToSet(vs,svgFilters),addToSet(Os,svg$2),addToSet(Os,xml)),Kl.mathMl===!0&&(addToSet(vs,mathMl$1),addToSet(Os,mathMl),addToSet(Os,xml))),Sl.ADD_TAGS&&(vs===ks&&(vs=clone$3(vs)),addToSet(vs,Sl.ADD_TAGS,wp)),Sl.ADD_ATTR&&(Os===Ts&&(Os=clone$3(Os)),addToSet(Os,Sl.ADD_ATTR,wp)),Sl.ADD_URI_SAFE_ATTR&&addToSet(Zs,Sl.ADD_URI_SAFE_ATTR,wp),Sl.FORBID_CONTENTS&&(Is===Ks&&(Is=clone$3(Is)),addToSet(Is,Sl.FORBID_CONTENTS,wp)),r1&&(vs["#text"]=!0),yl&&addToSet(vs,["html","head","body"]),vs.table&&(addToSet(vs,["tbody"]),delete Ws.tbody),Sl.TRUSTED_TYPES_POLICY){if(typeof Sl.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Sl.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');No=Sl.TRUSTED_TYPES_POLICY,Mo=No.createHTML("")}else No===void 0&&(No=_createTrustedTypesPolicy(_o,so)),No!==null&&typeof Mo=="string"&&(Mo=No.createHTML(""));freeze&&freeze(Sl),j0=Sl}},ap=addToSet({},["mi","mo","mn","ms","mtext"]),x0=addToSet({},["foreignobject","desc","title","annotation-xml"]),b0=addToSet({},["title","style","font","a","script"]),P1=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),c1=addToSet({},[...mathMl$1,...mathMlDisallowed]),V0=function(Sl){let eu=Oo(Sl);(!eu||!eu.tagName)&&(eu={namespaceURI:e1,tagName:"template"});const _c=stringToLowerCase(Sl.tagName),zu=stringToLowerCase(eu.tagName);return w1[Sl.namespaceURI]?Sl.namespaceURI===fu?eu.namespaceURI===Lu?_c==="svg":eu.namespaceURI===ba?_c==="svg"&&(zu==="annotation-xml"||ap[zu]):!!P1[_c]:Sl.namespaceURI===ba?eu.namespaceURI===Lu?_c==="math":eu.namespaceURI===fu?_c==="math"&&x0[zu]:!!c1[_c]:Sl.namespaceURI===Lu?eu.namespaceURI===fu&&!x0[zu]||eu.namespaceURI===ba&&!ap[zu]?!1:!c1[_c]&&(b0[_c]||!P1[_c]):!!(L1==="application/xhtml+xml"&&w1[Sl.namespaceURI]):!1},P0=function(Sl){arrayPush$1(to.removed,{element:Sl});try{Sl.parentNode.removeChild(Sl)}catch{Sl.remove()}},up=function(Sl,eu){try{arrayPush$1(to.removed,{attribute:eu.getAttributeNode(Sl),from:eu})}catch{arrayPush$1(to.removed,{attribute:null,from:eu})}if(eu.removeAttribute(Sl),Sl==="is"&&!Os[Sl])if(du||Ol)try{P0(eu)}catch{}else try{eu.setAttribute(Sl,"")}catch{}},Lp=function(Sl){let eu=null,_c=null;if(Qs)Sl=""+Sl;else{const K0=stringMatch(Sl,/^[\r\n\t ]+/);_c=K0&&K0[0]}L1==="application/xhtml+xml"&&e1===Lu&&(Sl=''+Sl+"");const zu=No?No.createHTML(Sl):Sl;if(e1===Lu)try{eu=new So().parseFromString(zu,L1)}catch{}if(!eu||!eu.documentElement){eu=Bo.createDocument(e1,"template",null);try{eu.documentElement.innerHTML=Gu?Mo:zu}catch{}}const N1=eu.body||eu.documentElement;return Sl&&_c&&N1.insertBefore(no.createTextNode(_c),N1.childNodes[0]||null),e1===Lu?Go.call(eu,yl?"html":"body")[0]:yl?eu.documentElement:N1},Mv=function(Sl){return Po.call(Sl.ownerDocument||Sl,Sl,go.SHOW_ELEMENT|go.SHOW_COMMENT|go.SHOW_TEXT|go.SHOW_PROCESSING_INSTRUCTION|go.SHOW_CDATA_SECTION,null)},$v=function(Sl){return Sl instanceof yo&&(typeof Sl.nodeName!="string"||typeof Sl.textContent!="string"||typeof Sl.removeChild!="function"||!(Sl.attributes instanceof mo)||typeof Sl.removeAttribute!="function"||typeof Sl.setAttribute!="function"||typeof Sl.namespaceURI!="string"||typeof Sl.insertBefore!="function"||typeof Sl.hasChildNodes!="function")},Gv=function(Sl){return typeof uo=="function"&&Sl instanceof uo},C1=function(Sl,eu,_c){Uo[Sl]&&arrayForEach(Uo[Sl],zu=>{zu.call(to,eu,_c,j0)})},Ll=function(Sl){let eu=null;if(C1("beforeSanitizeElements",Sl,null),$v(Sl))return P0(Sl),!0;const _c=wp(Sl.nodeName);if(C1("uponSanitizeElement",Sl,{tagName:_c,allowedTags:vs}),Sl.hasChildNodes()&&!Gv(Sl.firstElementChild)&®ExpTest(/<[/\w]/g,Sl.innerHTML)&®ExpTest(/<[/\w]/g,Sl.textContent)||Sl.nodeType===7||El&&Sl.nodeType===8&®ExpTest(/<[/\w]/g,Sl.data))return P0(Sl),!0;if(!vs[_c]||Ws[_c]){if(!Ws[_c]&&_l(_c)&&(Xs.tagNameCheck instanceof RegExp&®ExpTest(Xs.tagNameCheck,_c)||Xs.tagNameCheck instanceof Function&&Xs.tagNameCheck(_c)))return!1;if(r1&&!Is[_c]){const zu=Oo(Sl)||Sl.parentNode,N1=Ro(Sl)||Sl.childNodes;if(N1&&zu){const K0=N1.length;for(let J0=K0-1;J0>=0;--J0)zu.insertBefore(Co(N1[J0],!0),$o(Sl))}}return P0(Sl),!0}return Sl instanceof ho&&!V0(Sl)||(_c==="noscript"||_c==="noembed"||_c==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,Sl.innerHTML)?(P0(Sl),!0):(Vs&&Sl.nodeType===3&&(eu=Sl.textContent,arrayForEach([Ho,Yo,qo],zu=>{eu=stringReplace(eu,zu," ")}),Sl.textContent!==eu&&(arrayPush$1(to.removed,{element:Sl.cloneNode()}),Sl.textContent=eu)),C1("afterSanitizeElements",Sl,null),!1)},Ul=function(Sl,eu,_c){if(ju&&(eu==="id"||eu==="name")&&(_c in no||_c in h0))return!1;if(!(ga&&!Ps[eu]&®ExpTest(Jo,eu))){if(!(qs&®ExpTest(ps,eu))){if(!Os[eu]||Ps[eu]){if(!(_l(Sl)&&(Xs.tagNameCheck instanceof RegExp&®ExpTest(Xs.tagNameCheck,Sl)||Xs.tagNameCheck instanceof Function&&Xs.tagNameCheck(Sl))&&(Xs.attributeNameCheck instanceof RegExp&®ExpTest(Xs.attributeNameCheck,eu)||Xs.attributeNameCheck instanceof Function&&Xs.attributeNameCheck(eu))||eu==="is"&&Xs.allowCustomizedBuiltInElements&&(Xs.tagNameCheck instanceof RegExp&®ExpTest(Xs.tagNameCheck,_c)||Xs.tagNameCheck instanceof Function&&Xs.tagNameCheck(_c))))return!1}else if(!Zs[eu]){if(!regExpTest(ys,stringReplace(_c,hs,""))){if(!((eu==="src"||eu==="xlink:href"||eu==="href")&&Sl!=="script"&&stringIndexOf(_c,"data:")===0&&Bs[Sl])){if(!(Fs&&!regExpTest(Qo,stringReplace(_c,hs,"")))){if(_c)return!1}}}}}}return!0},_l=function(Sl){return Sl!=="annotation-xml"&&stringMatch(Sl,gs)},$l=function(Sl){C1("beforeSanitizeAttributes",Sl,null);const{attributes:eu}=Sl;if(!eu)return;const _c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Os};let zu=eu.length;for(;zu--;){const N1=eu[zu],{name:K0,namespaceURI:J0,value:S1}=N1,O1=wp(K0);let r0=K0==="value"?S1:stringTrim(S1);if(_c.attrName=O1,_c.attrValue=r0,_c.keepAttr=!0,_c.forceKeepAttr=void 0,C1("uponSanitizeAttribute",Sl,_c),r0=_c.attrValue,_c.forceKeepAttr||(up(K0,Sl),!_c.keepAttr))continue;if(!Js&®ExpTest(/\/>/i,r0)){up(K0,Sl);continue}Vs&&arrayForEach([Ho,Yo,qo],R0=>{r0=stringReplace(r0,R0," ")});const I1=wp(Sl.nodeName);if(Ul(I1,O1,r0)){if(F1&&(O1==="id"||O1==="name")&&(up(K0,Sl),r0=y1+r0),No&&typeof _o=="object"&&typeof _o.getAttributeType=="function"&&!J0)switch(_o.getAttributeType(I1,O1)){case"TrustedHTML":{r0=No.createHTML(r0);break}case"TrustedScriptURL":{r0=No.createScriptURL(r0);break}}try{J0?Sl.setAttributeNS(J0,K0,r0):Sl.setAttribute(K0,r0),arrayPop(to.removed)}catch{}}}C1("afterSanitizeAttributes",Sl,null)},Us=function Rl(Sl){let eu=null;const _c=Mv(Sl);for(C1("beforeSanitizeShadowDOM",Sl,null);eu=_c.nextNode();)C1("uponSanitizeShadowNode",eu,null),!Ll(eu)&&(eu.content instanceof ao&&Rl(eu.content),$l(eu));C1("afterSanitizeShadowDOM",Sl,null)};return to.sanitize=function(Rl){let Sl=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},eu=null,_c=null,zu=null,N1=null;if(Gu=!Rl,Gu&&(Rl=""),typeof Rl!="string"&&!Gv(Rl))if(typeof Rl.toString=="function"){if(Rl=Rl.toString(),typeof Rl!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!to.isSupported)return Rl;if(Gl||k0(Sl),to.removed=[],typeof Rl=="string"&&($u=!1),$u){if(Rl.nodeName){const S1=wp(Rl.nodeName);if(!vs[S1]||Ws[S1])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Rl instanceof uo)eu=Lp(""),_c=eu.ownerDocument.importNode(Rl,!0),_c.nodeType===1&&_c.nodeName==="BODY"||_c.nodeName==="HTML"?eu=_c:eu.appendChild(_c);else{if(!du&&!Vs&&!yl&&Rl.indexOf("<")===-1)return No&&Fu?No.createHTML(Rl):Rl;if(eu=Lp(Rl),!eu)return du?null:Fu?Mo:""}eu&&Qs&&P0(eu.firstChild);const K0=Mv($u?Rl:eu);for(;zu=K0.nextNode();)Ll(zu)||(zu.content instanceof ao&&Us(zu.content),$l(zu));if($u)return Rl;if(du){if(Ol)for(N1=Lo.call(eu.ownerDocument);eu.firstChild;)N1.appendChild(eu.firstChild);else N1=eu;return(Os.shadowroot||Os.shadowrootmode)&&(N1=Do.call(io,N1,!0)),N1}let J0=yl?eu.outerHTML:eu.innerHTML;return yl&&vs["!doctype"]&&eu.ownerDocument&&eu.ownerDocument.doctype&&eu.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,eu.ownerDocument.doctype.name)&&(J0=" -`+J0),Vs&&arrayForEach([Ho,Yo,qo],S1=>{J0=stringReplace(J0,S1," ")}),No&&Fu?No.createHTML(J0):J0},to.setConfig=function(){let Rl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};k0(Rl),Gl=!0},to.clearConfig=function(){j0=null,Gl=!1},to.isValidAttribute=function(Rl,Sl,eu){j0||k0({});const _c=wp(Rl),zu=wp(Sl);return Ul(_c,zu,eu)},to.addHook=function(Rl,Sl){typeof Sl=="function"&&(Uo[Rl]=Uo[Rl]||[],arrayPush$1(Uo[Rl],Sl))},to.removeHook=function(Rl){if(Uo[Rl])return arrayPop(Uo[Rl])},to.removeHooks=function(Rl){Uo[Rl]&&(Uo[Rl]=[])},to.removeAllHooks=function(){Uo={}},to}var purify=createDOMPurify();const Channel={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:eo=>eo>=255?255:eo<0?0:eo,g:eo=>eo>=255?255:eo<0?0:eo,b:eo=>eo>=255?255:eo<0?0:eo,h:eo=>eo%360,s:eo=>eo>=100?100:eo<0?0:eo,l:eo=>eo>=100?100:eo<0?0:eo,a:eo=>eo>=1?1:eo<0?0:eo},toLinear:eo=>{const to=eo/255;return eo>.03928?Math.pow((to+.055)/1.055,2.4):to/12.92},hue2rgb:(eo,to,no)=>(no<0&&(no+=1),no>1&&(no-=1),no<1/6?eo+(to-eo)*6*no:no<1/2?to:no<2/3?eo+(to-eo)*(2/3-no)*6:eo),hsl2rgb:({h:eo,s:to,l:no},io)=>{if(!to)return no*2.55;eo/=360,to/=100,no/=100;const so=no<.5?no*(1+to):no+to-no*to,ao=2*no-so;switch(io){case"r":return Channel.hue2rgb(ao,so,eo+1/3)*255;case"g":return Channel.hue2rgb(ao,so,eo)*255;case"b":return Channel.hue2rgb(ao,so,eo-1/3)*255}},rgb2hsl:({r:eo,g:to,b:no},io)=>{eo/=255,to/=255,no/=255;const so=Math.max(eo,to,no),ao=Math.min(eo,to,no),lo=(so+ao)/2;if(io==="l")return lo*100;if(so===ao)return 0;const uo=so-ao,ho=lo>.5?uo/(2-so-ao):uo/(so+ao);if(io==="s")return ho*100;switch(so){case eo:return((to-no)/uo+(toto>no?Math.min(to,Math.max(no,eo)):Math.min(no,Math.max(to,eo)),round:eo=>Math.round(eo*1e10)/1e10},lang=Lang,Unit={dec2hex:eo=>{const to=Math.round(eo).toString(16);return to.length>1?to:`0${to}`}},unit=Unit,Utils={channel:channel$2,lang,unit},_=Utils,DEC2HEX={};for(let eo=0;eo<=255;eo++)DEC2HEX[eo]=_.unit.dec2hex(eo);const TYPE={ALL:0,RGB:1,HSL:2};let Type$2=class{constructor(){this.type=TYPE.ALL}get(){return this.type}set(to){if(this.type&&this.type!==to)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=to}reset(){this.type=TYPE.ALL}is(to){return this.type===to}};const Type$3=Type$2;class Channels{constructor(to,no){this.color=no,this.changed=!1,this.data=to,this.type=new Type$3}set(to,no){return this.color=no,this.changed=!1,this.data=to,this.type.type=TYPE.ALL,this}_ensureHSL(){const to=this.data,{h:no,s:io,l:so}=to;no===void 0&&(to.h=_.channel.rgb2hsl(to,"h")),io===void 0&&(to.s=_.channel.rgb2hsl(to,"s")),so===void 0&&(to.l=_.channel.rgb2hsl(to,"l"))}_ensureRGB(){const to=this.data,{r:no,g:io,b:so}=to;no===void 0&&(to.r=_.channel.hsl2rgb(to,"r")),io===void 0&&(to.g=_.channel.hsl2rgb(to,"g")),so===void 0&&(to.b=_.channel.hsl2rgb(to,"b"))}get r(){const to=this.data,no=to.r;return!this.type.is(TYPE.HSL)&&no!==void 0?no:(this._ensureHSL(),_.channel.hsl2rgb(to,"r"))}get g(){const to=this.data,no=to.g;return!this.type.is(TYPE.HSL)&&no!==void 0?no:(this._ensureHSL(),_.channel.hsl2rgb(to,"g"))}get b(){const to=this.data,no=to.b;return!this.type.is(TYPE.HSL)&&no!==void 0?no:(this._ensureHSL(),_.channel.hsl2rgb(to,"b"))}get h(){const to=this.data,no=to.h;return!this.type.is(TYPE.RGB)&&no!==void 0?no:(this._ensureRGB(),_.channel.rgb2hsl(to,"h"))}get s(){const to=this.data,no=to.s;return!this.type.is(TYPE.RGB)&&no!==void 0?no:(this._ensureRGB(),_.channel.rgb2hsl(to,"s"))}get l(){const to=this.data,no=to.l;return!this.type.is(TYPE.RGB)&&no!==void 0?no:(this._ensureRGB(),_.channel.rgb2hsl(to,"l"))}get a(){return this.data.a}set r(to){this.type.set(TYPE.RGB),this.changed=!0,this.data.r=to}set g(to){this.type.set(TYPE.RGB),this.changed=!0,this.data.g=to}set b(to){this.type.set(TYPE.RGB),this.changed=!0,this.data.b=to}set h(to){this.type.set(TYPE.HSL),this.changed=!0,this.data.h=to}set s(to){this.type.set(TYPE.HSL),this.changed=!0,this.data.s=to}set l(to){this.type.set(TYPE.HSL),this.changed=!0,this.data.l=to}set a(to){this.changed=!0,this.data.a=to}}const Channels$1=Channels,channels=new Channels$1({r:0,g:0,b:0,a:0},"transparent"),ChannelsReusable=channels,Hex={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:eo=>{if(eo.charCodeAt(0)!==35)return;const to=eo.match(Hex.re);if(!to)return;const no=to[1],io=parseInt(no,16),so=no.length,ao=so%4===0,lo=so>4,uo=lo?1:17,ho=lo?8:4,go=ao?0:-1,mo=lo?255:15;return ChannelsReusable.set({r:(io>>ho*(go+3)&mo)*uo,g:(io>>ho*(go+2)&mo)*uo,b:(io>>ho*(go+1)&mo)*uo,a:ao?(io&mo)*uo/255:1},eo)},stringify:eo=>{const{r:to,g:no,b:io,a:so}=eo;return so<1?`#${DEC2HEX[Math.round(to)]}${DEC2HEX[Math.round(no)]}${DEC2HEX[Math.round(io)]}${DEC2HEX[Math.round(so*255)]}`:`#${DEC2HEX[Math.round(to)]}${DEC2HEX[Math.round(no)]}${DEC2HEX[Math.round(io)]}`}},Hex$1=Hex,HSL={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:eo=>{const to=eo.match(HSL.hueRe);if(to){const[,no,io]=to;switch(io){case"grad":return _.channel.clamp.h(parseFloat(no)*.9);case"rad":return _.channel.clamp.h(parseFloat(no)*180/Math.PI);case"turn":return _.channel.clamp.h(parseFloat(no)*360)}}return _.channel.clamp.h(parseFloat(eo))},parse:eo=>{const to=eo.charCodeAt(0);if(to!==104&&to!==72)return;const no=eo.match(HSL.re);if(!no)return;const[,io,so,ao,lo,uo]=no;return ChannelsReusable.set({h:HSL._hue2deg(io),s:_.channel.clamp.s(parseFloat(so)),l:_.channel.clamp.l(parseFloat(ao)),a:lo?_.channel.clamp.a(uo?parseFloat(lo)/100:parseFloat(lo)):1},eo)},stringify:eo=>{const{h:to,s:no,l:io,a:so}=eo;return so<1?`hsla(${_.lang.round(to)}, ${_.lang.round(no)}%, ${_.lang.round(io)}%, ${so})`:`hsl(${_.lang.round(to)}, ${_.lang.round(no)}%, ${_.lang.round(io)}%)`}},HSL$1=HSL,Keyword={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:eo=>{eo=eo.toLowerCase();const to=Keyword.colors[eo];if(to)return Hex$1.parse(to)},stringify:eo=>{const to=Hex$1.stringify(eo);for(const no in Keyword.colors)if(Keyword.colors[no]===to)return no}},Keyword$1=Keyword,RGB={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:eo=>{const to=eo.charCodeAt(0);if(to!==114&&to!==82)return;const no=eo.match(RGB.re);if(!no)return;const[,io,so,ao,lo,uo,ho,go,mo]=no;return ChannelsReusable.set({r:_.channel.clamp.r(so?parseFloat(io)*2.55:parseFloat(io)),g:_.channel.clamp.g(lo?parseFloat(ao)*2.55:parseFloat(ao)),b:_.channel.clamp.b(ho?parseFloat(uo)*2.55:parseFloat(uo)),a:go?_.channel.clamp.a(mo?parseFloat(go)/100:parseFloat(go)):1},eo)},stringify:eo=>{const{r:to,g:no,b:io,a:so}=eo;return so<1?`rgba(${_.lang.round(to)}, ${_.lang.round(no)}, ${_.lang.round(io)}, ${_.lang.round(so)})`:`rgb(${_.lang.round(to)}, ${_.lang.round(no)}, ${_.lang.round(io)})`}},RGB$1=RGB,Color={format:{keyword:Keyword$1,hex:Hex$1,rgb:RGB$1,rgba:RGB$1,hsl:HSL$1,hsla:HSL$1},parse:eo=>{if(typeof eo!="string")return eo;const to=Hex$1.parse(eo)||RGB$1.parse(eo)||HSL$1.parse(eo)||Keyword$1.parse(eo);if(to)return to;throw new Error(`Unsupported color format: "${eo}"`)},stringify:eo=>!eo.changed&&eo.color?eo.color:eo.type.is(TYPE.HSL)||eo.data.r===void 0?HSL$1.stringify(eo):eo.a<1||!Number.isInteger(eo.r)||!Number.isInteger(eo.g)||!Number.isInteger(eo.b)?RGB$1.stringify(eo):Hex$1.stringify(eo)},Color$1=Color,change=(eo,to)=>{const no=Color$1.parse(eo);for(const io in to)no[io]=_.channel.clamp[io](to[io]);return Color$1.stringify(no)},change$1=change,rgba$1=(eo,to,no=0,io=1)=>{if(typeof eo!="number")return change$1(eo,{a:to});const so=ChannelsReusable.set({r:_.channel.clamp.r(eo),g:_.channel.clamp.g(to),b:_.channel.clamp.b(no),a:_.channel.clamp.a(io)});return Color$1.stringify(so)},rgba$2=rgba$1,channel=(eo,to)=>_.lang.round(Color$1.parse(eo)[to]),channel$1=channel,luminance=eo=>{const{r:to,g:no,b:io}=Color$1.parse(eo),so=.2126*_.channel.toLinear(to)+.7152*_.channel.toLinear(no)+.0722*_.channel.toLinear(io);return _.lang.round(so)},luminance$1=luminance,isLight=eo=>luminance$1(eo)>=.5,isLight$1=isLight,isDark=eo=>!isLight$1(eo),isDark$1=isDark,adjustChannel=(eo,to,no)=>{const io=Color$1.parse(eo),so=io[to],ao=_.channel.clamp[to](so+no);return so!==ao&&(io[to]=ao),Color$1.stringify(io)},adjustChannel$1=adjustChannel,lighten=(eo,to)=>adjustChannel$1(eo,"l",to),lighten$1=lighten,darken=(eo,to)=>adjustChannel$1(eo,"l",-to),darken$1=darken,adjust$1=(eo,to)=>{const no=Color$1.parse(eo),io={};for(const so in to)to[so]&&(io[so]=no[so]+to[so]);return change$1(eo,io)},adjust$2=adjust$1,mix=(eo,to,no=50)=>{const{r:io,g:so,b:ao,a:lo}=Color$1.parse(eo),{r:uo,g:ho,b:go,a:mo}=Color$1.parse(to),yo=no/100,So=yo*2-1,_o=lo-mo,Co=((So*_o===-1?So:(So+_o)/(1+So*_o))+1)/2,$o=1-Co,Ro=io*Co+uo*$o,Oo=so*Co+ho*$o,No=ao*Co+go*$o,Mo=lo*yo+mo*(1-yo);return rgba$2(Ro,Oo,No,Mo)},mix$1=mix,invert=(eo,to=100)=>{const no=Color$1.parse(eo);return no.r=255-no.r,no.g=255-no.g,no.b=255-no.b,mix$1(no,eo,to)},invert$1=invert;var freeGlobal$1=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$2=freeGlobal$1;var freeSelf$1=typeof self=="object"&&self&&self.Object===Object&&self,root$1=freeGlobal$2||freeSelf$1||Function("return this")();const root$2=root$1;var Symbol$2=root$2.Symbol;const Symbol$3=Symbol$2;var objectProto$o=Object.prototype,hasOwnProperty$l=objectProto$o.hasOwnProperty,nativeObjectToString$3=objectProto$o.toString,symToStringTag$3=Symbol$3?Symbol$3.toStringTag:void 0;function getRawTag$1(eo){var to=hasOwnProperty$l.call(eo,symToStringTag$3),no=eo[symToStringTag$3];try{eo[symToStringTag$3]=void 0;var io=!0}catch{}var so=nativeObjectToString$3.call(eo);return io&&(to?eo[symToStringTag$3]=no:delete eo[symToStringTag$3]),so}var objectProto$n=Object.prototype,nativeObjectToString$2=objectProto$n.toString;function objectToString$1(eo){return nativeObjectToString$2.call(eo)}var nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$1(eo){return eo==null?eo===void 0?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(eo)?getRawTag$1(eo):objectToString$1(eo)}function isObject$2(eo){var to=typeof eo;return eo!=null&&(to=="object"||to=="function")}var asyncTag$1="[object AsyncFunction]",funcTag$3="[object Function]",genTag$2="[object GeneratorFunction]",proxyTag$1="[object Proxy]";function isFunction$1(eo){if(!isObject$2(eo))return!1;var to=baseGetTag$1(eo);return to==funcTag$3||to==genTag$2||to==asyncTag$1||to==proxyTag$1}var coreJsData$1=root$2["__core-js_shared__"];const coreJsData$2=coreJsData$1;var maskSrcKey$1=function(){var eo=/[^.]+$/.exec(coreJsData$2&&coreJsData$2.keys&&coreJsData$2.keys.IE_PROTO||"");return eo?"Symbol(src)_1."+eo:""}();function isMasked$1(eo){return!!maskSrcKey$1&&maskSrcKey$1 in eo}var funcProto$4=Function.prototype,funcToString$4=funcProto$4.toString;function toSource$1(eo){if(eo!=null){try{return funcToString$4.call(eo)}catch{}try{return eo+""}catch{}}return""}var reRegExpChar$1=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor$1=/^\[object .+?Constructor\]$/,funcProto$3=Function.prototype,objectProto$m=Object.prototype,funcToString$3=funcProto$3.toString,hasOwnProperty$k=objectProto$m.hasOwnProperty,reIsNative$1=RegExp("^"+funcToString$3.call(hasOwnProperty$k).replace(reRegExpChar$1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(eo){if(!isObject$2(eo)||isMasked$1(eo))return!1;var to=isFunction$1(eo)?reIsNative$1:reIsHostCtor$1;return to.test(toSource$1(eo))}function getValue$2(eo,to){return eo==null?void 0:eo[to]}function getNative$1(eo,to){var no=getValue$2(eo,to);return baseIsNative$1(no)?no:void 0}var nativeCreate$1=getNative$1(Object,"create");const nativeCreate$2=nativeCreate$1;function hashClear$1(){this.__data__=nativeCreate$2?nativeCreate$2(null):{},this.size=0}function hashDelete$1(eo){var to=this.has(eo)&&delete this.__data__[eo];return this.size-=to?1:0,to}var HASH_UNDEFINED$4="__lodash_hash_undefined__",objectProto$l=Object.prototype,hasOwnProperty$j=objectProto$l.hasOwnProperty;function hashGet$1(eo){var to=this.__data__;if(nativeCreate$2){var no=to[eo];return no===HASH_UNDEFINED$4?void 0:no}return hasOwnProperty$j.call(to,eo)?to[eo]:void 0}var objectProto$k=Object.prototype,hasOwnProperty$i=objectProto$k.hasOwnProperty;function hashHas$1(eo){var to=this.__data__;return nativeCreate$2?to[eo]!==void 0:hasOwnProperty$i.call(to,eo)}var HASH_UNDEFINED$3="__lodash_hash_undefined__";function hashSet$1(eo,to){var no=this.__data__;return this.size+=this.has(eo)?0:1,no[eo]=nativeCreate$2&&to===void 0?HASH_UNDEFINED$3:to,this}function Hash$1(eo){var to=-1,no=eo==null?0:eo.length;for(this.clear();++to-1}function listCacheSet$1(eo,to){var no=this.__data__,io=assocIndexOf$1(no,eo);return io<0?(++this.size,no.push([eo,to])):no[io][1]=to,this}function ListCache$1(eo){var to=-1,no=eo==null?0:eo.length;for(this.clear();++to-1&&eo%1==0&&eo<=MAX_SAFE_INTEGER$2}function isArrayLike(eo){return eo!=null&&isLength(eo.length)&&!isFunction$1(eo)}function isArrayLikeObject(eo){return isObjectLike$1(eo)&&isArrayLike(eo)}function stubFalse(){return!1}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,Buffer=moduleExports$1?root$2.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse;const isBuffer$1=isBuffer;var objectTag$4="[object Object]",funcProto$2=Function.prototype,objectProto$h=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$g=objectProto$h.hasOwnProperty,objectCtorString=funcToString$2.call(Object);function isPlainObject(eo){if(!isObjectLike$1(eo)||baseGetTag$1(eo)!=objectTag$4)return!1;var to=getPrototype$1(eo);if(to===null)return!0;var no=hasOwnProperty$g.call(to,"constructor")&&to.constructor;return typeof no=="function"&&no instanceof no&&funcToString$2.call(no)==objectCtorString}var argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$2="[object Function]",mapTag$6="[object Map]",numberTag$3="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$2]=typedArrayTags[mapTag$6]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$6]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(eo){return isObjectLike$1(eo)&&isLength(eo.length)&&!!typedArrayTags[baseGetTag$1(eo)]}function baseUnary(eo){return function(to){return eo(to)}}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal$2.process,nodeUtil=function(){try{var eo=freeModule&&freeModule.require&&freeModule.require("util").types;return eo||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();const nodeUtil$1=nodeUtil;var nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;const isTypedArray$1=isTypedArray;function safeGet(eo,to){if(!(to==="constructor"&&typeof eo[to]=="function")&&to!="__proto__")return eo[to]}var objectProto$g=Object.prototype,hasOwnProperty$f=objectProto$g.hasOwnProperty;function assignValue$1(eo,to,no){var io=eo[to];(!(hasOwnProperty$f.call(eo,to)&&eq$1(io,no))||no===void 0&&!(to in eo))&&baseAssignValue$1(eo,to,no)}function copyObject(eo,to,no,io){var so=!no;no||(no={});for(var ao=-1,lo=to.length;++ao-1&&eo%1==0&&eo0){if(++to>=HOT_COUNT)return arguments[0]}else to=0;return eo.apply(void 0,arguments)}}var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function baseRest(eo,to){return setToString$1(overRest(eo,to,identity$1),eo+"")}function isIterateeCall(eo,to,no){if(!isObject$2(no))return!1;var io=typeof to;return(io=="number"?isArrayLike(no)&&isIndex$1(to,no.length):io=="string"&&to in no)?eq$1(no[to],eo):!1}function createAssigner(eo){return baseRest(function(to,no){var io=-1,so=no.length,ao=so>1?no[so-1]:void 0,lo=so>2?no[2]:void 0;for(ao=eo.length>3&&typeof ao=="function"?(so--,ao):void 0,lo&&isIterateeCall(no[0],no[1],lo)&&(ao=so<3?void 0:ao,so=1),to=Object(to);++io0?charat(characters,--position$3):0,column--,character===10&&(column=1,line--),character}function next$1(){return character=position$32||token(character)>3?"":" "}function escaping(eo,to){for(;--to&&next$1()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice$1(eo,caret()+(to<6&&peek()==32&&next$1()==32))}function delimiter$1(eo){for(;next$1();)switch(character){case eo:return position$3;case 34:case 39:eo!==34&&eo!==39&&delimiter$1(character);break;case 40:eo===41&&delimiter$1(eo);break;case 92:next$1();break}return position$3}function commenter(eo,to){for(;next$1()&&eo+character!==57;)if(eo+character===84&&peek()===47)break;return"/*"+slice$1(to,position$3-1)+"*"+from(eo===47?eo:next$1())}function identifier(eo){for(;!token(peek());)next$1();return slice$1(eo,position$3)}function compile(eo){return dealloc(parse$5("",null,null,null,[""],eo=alloc(eo),0,[0],eo))}function parse$5(eo,to,no,io,so,ao,lo,uo,ho){for(var go=0,mo=0,yo=lo,So=0,_o=0,ko=0,Co=1,$o=1,Ro=1,Oo=0,No="",Mo=so,Bo=ao,Po=io,Lo=No;$o;)switch(ko=Oo,Oo=next$1()){case 40:if(ko!=108&&charat(Lo,yo-1)==58){indexof(Lo+=replace(delimit(Oo),"&","&\f"),"&\f",abs(go?uo[go-1]:0))!=-1&&(Ro=-1);break}case 34:case 39:case 91:Lo+=delimit(Oo);break;case 9:case 10:case 13:case 32:Lo+=whitespace(ko);break;case 92:Lo+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment$1(commenter(next$1(),caret()),to,no,ho),ho);break;default:Lo+="/"}break;case 123*Co:uo[go++]=strlen(Lo)*Ro;case 125*Co:case 59:case 0:switch(Oo){case 0:case 125:$o=0;case 59+mo:Ro==-1&&(Lo=replace(Lo,/\f/g,"")),_o>0&&strlen(Lo)-yo&&append(_o>32?declaration(Lo+";",io,no,yo-1,ho):declaration(replace(Lo," ","")+";",io,no,yo-2,ho),ho);break;case 59:Lo+=";";default:if(append(Po=ruleset(Lo,to,no,go,mo,so,uo,No,Mo=[],Bo=[],yo,ao),ao),Oo===123)if(mo===0)parse$5(Lo,to,Po,Po,Mo,ao,yo,uo,Bo);else switch(So===99&&charat(Lo,3)===110?100:So){case 100:case 108:case 109:case 115:parse$5(eo,Po,Po,io&&append(ruleset(eo,Po,Po,0,0,so,uo,No,so,Mo=[],yo,Bo),Bo),so,Bo,yo,uo,io?Mo:Bo);break;default:parse$5(Lo,Po,Po,Po,[""],Bo,0,uo,Bo)}}go=mo=_o=0,Co=Ro=1,No=Lo="",yo=lo;break;case 58:yo=1+strlen(Lo),_o=ko;default:if(Co<1){if(Oo==123)--Co;else if(Oo==125&&Co++==0&&prev()==125)continue}switch(Lo+=from(Oo),Oo*Co){case 38:Ro=mo>0?1:(Lo+="\f",-1);break;case 44:uo[go++]=(strlen(Lo)-1)*Ro,Ro=1;break;case 64:peek()===45&&(Lo+=delimit(next$1())),So=peek(),mo=yo=strlen(No=Lo+=identifier(caret())),Oo++;break;case 45:ko===45&&strlen(Lo)==2&&(Co=0)}}return ao}function ruleset(eo,to,no,io,so,ao,lo,uo,ho,go,mo,yo){for(var So=so-1,_o=so===0?ao:[""],ko=sizeof(_o),Co=0,$o=0,Ro=0;Co0?_o[Oo]+" "+No:replace(No,/&\f/g,_o[Oo])))&&(ho[Ro++]=Mo);return node$1(eo,to,no,so===0?RULESET:uo,ho,go,mo,yo)}function comment$1(eo,to,no,io){return node$1(eo,to,no,COMMENT,from(char()),substr(eo,2,-2),0,io)}function declaration(eo,to,no,io,so){return node$1(eo,to,no,DECLARATION,substr(eo,0,io),substr(eo,io+1,-1),io,so)}function serialize(eo,to){for(var no="",io=0;io{},debug:(...eo)=>{},info:(...eo)=>{},warn:(...eo)=>{},error:(...eo)=>{},fatal:(...eo)=>{}},setLogLevel$1=function(eo="fatal"){let to=LEVELS.fatal;typeof eo=="string"?(eo=eo.toLowerCase(),eo in LEVELS&&(to=LEVELS[eo])):typeof eo=="number"&&(to=eo),log$1.trace=()=>{},log$1.debug=()=>{},log$1.info=()=>{},log$1.warn=()=>{},log$1.error=()=>{},log$1.fatal=()=>{},to<=LEVELS.fatal&&(log$1.fatal=console.error?console.error.bind(console,format("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",format("FATAL"))),to<=LEVELS.error&&(log$1.error=console.error?console.error.bind(console,format("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",format("ERROR"))),to<=LEVELS.warn&&(log$1.warn=console.warn?console.warn.bind(console,format("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",format("WARN"))),to<=LEVELS.info&&(log$1.info=console.info?console.info.bind(console,format("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",format("INFO"))),to<=LEVELS.debug&&(log$1.debug=console.debug?console.debug.bind(console,format("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format("DEBUG"))),to<=LEVELS.trace&&(log$1.trace=console.debug?console.debug.bind(console,format("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format("TRACE")))},format=eo=>`%c${dayjs().format("ss.SSS")} : ${eo} : `,lineBreakRegex=//gi,getRows=eo=>eo?breakToPlaceholder(eo).replace(/\\n/g,"#br#").split("#br#"):[""],setupDompurifyHooksIfNotSetup=(()=>{let eo=!1;return()=>{eo||(setupDompurifyHooks(),eo=!0)}})();function setupDompurifyHooks(){const eo="data-temp-href-target";purify.addHook("beforeSanitizeAttributes",to=>{to.tagName==="A"&&to.hasAttribute("target")&&to.setAttribute(eo,to.getAttribute("target")||"")}),purify.addHook("afterSanitizeAttributes",to=>{to.tagName==="A"&&to.hasAttribute(eo)&&(to.setAttribute("target",to.getAttribute(eo)||""),to.removeAttribute(eo),to.getAttribute("target")==="_blank"&&to.setAttribute("rel","noopener"))})}const removeScript=eo=>(setupDompurifyHooksIfNotSetup(),purify.sanitize(eo)),sanitizeMore=(eo,to)=>{var no;if(((no=to.flowchart)==null?void 0:no.htmlLabels)!==!1){const io=to.securityLevel;io==="antiscript"||io==="strict"?eo=removeScript(eo):io!=="loose"&&(eo=breakToPlaceholder(eo),eo=eo.replace(//g,">"),eo=eo.replace(/=/g,"="),eo=placeholderToBreak(eo))}return eo},sanitizeText$2$1=(eo,to)=>eo&&(to.dompurifyConfig?eo=purify.sanitize(sanitizeMore(eo,to),to.dompurifyConfig).toString():eo=purify.sanitize(sanitizeMore(eo,to),{FORBID_TAGS:["style"]}).toString(),eo),sanitizeTextOrArray=(eo,to)=>typeof eo=="string"?sanitizeText$2$1(eo,to):eo.flat().map(no=>sanitizeText$2$1(no,to)),hasBreaks=eo=>lineBreakRegex.test(eo),splitBreaks=eo=>eo.split(lineBreakRegex),placeholderToBreak=eo=>eo.replace(/#br#/g,"
"),breakToPlaceholder=eo=>eo.replace(lineBreakRegex,"#br#"),getUrl=eo=>{let to="";return eo&&(to=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,to=to.replaceAll(/\(/g,"\\("),to=to.replaceAll(/\)/g,"\\)")),to},evaluate=eo=>!(eo===!1||["false","null","0"].includes(String(eo).trim().toLowerCase())),getMax=function(...eo){const to=eo.filter(no=>!isNaN(no));return Math.max(...to)},getMin=function(...eo){const to=eo.filter(no=>!isNaN(no));return Math.min(...to)},parseGenericTypes=function(eo){const to=eo.split(/(,)/),no=[];for(let io=0;io0&&io+1Math.max(0,eo.split(to).length-1),shouldCombineSets=(eo,to)=>{const no=countOccurrence(eo,"~"),io=countOccurrence(to,"~");return no===1&&io===1},processSet=eo=>{const to=countOccurrence(eo,"~");let no=!1;if(to<=1)return eo;to%2!==0&&eo.startsWith("~")&&(eo=eo.substring(1),no=!0);const io=[...eo];let so=io.indexOf("~"),ao=io.lastIndexOf("~");for(;so!==-1&&ao!==-1&&so!==ao;)io[so]="<",io[ao]=">",so=io.indexOf("~"),ao=io.lastIndexOf("~");return no&&io.unshift("~"),io.join("")},isMathMLSupported=()=>window.MathMLElement!==void 0,katexRegex=/\$\$(.*)\$\$/g,hasKatex=eo=>{var to;return(((to=eo.match(katexRegex))==null?void 0:to.length)??0)>0},calculateMathMLDimensions=async(eo,to)=>{eo=await renderKatex(eo,to);const no=document.createElement("div");no.innerHTML=eo,no.id="katex-temp",no.style.visibility="hidden",no.style.position="absolute",no.style.top="0";const io=document.querySelector("body");io==null||io.insertAdjacentElement("beforeend",no);const so={width:no.clientWidth,height:no.clientHeight};return no.remove(),so},renderKatex=async(eo,to)=>{if(!hasKatex(eo))return eo;if(!isMathMLSupported()&&!to.legacyMathML)return eo.replace(katexRegex,"MathML is unsupported in this environment.");const{default:no}=await __vitePreload(()=>Promise.resolve().then(()=>katex$1),void 0);return eo.split(lineBreakRegex).map(io=>hasKatex(io)?` +`)),lo+=yo+io[ho+1]}),lo}const scriptRel="modulepreload",assetsURL=function(eo){return"/v1.0/ui/traces/"+eo},seen={},__vitePreload=function eo(to,no,io){let so=Promise.resolve();if(no&&no.length>0){const ao=document.getElementsByTagName("link");so=Promise.all(no.map(lo=>{if(lo=assetsURL(lo),lo in seen)return;seen[lo]=!0;const uo=lo.endsWith(".css"),ho=uo?'[rel="stylesheet"]':"";if(!!io)for(let yo=ao.length-1;yo>=0;yo--){const So=ao[yo];if(So.href===lo&&(!uo||So.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${lo}"]${ho}`))return;const mo=document.createElement("link");if(mo.rel=uo?"stylesheet":scriptRel,uo||(mo.as="script",mo.crossOrigin=""),mo.href=lo,document.head.appendChild(mo),uo)return new Promise((yo,So)=>{mo.addEventListener("load",yo),mo.addEventListener("error",()=>So(new Error(`Unable to preload CSS for ${lo}`)))})}))}return so.then(()=>to()).catch(ao=>{const lo=new Event("vite:preloadError",{cancelable:!0});if(lo.payload=ao,window.dispatchEvent(lo),!lo.defaultPrevented)throw ao})};var dist$2={};(function(eo){Object.defineProperty(eo,"__esModule",{value:!0}),eo.sanitizeUrl=eo.BLANK_URL=void 0;var to=/^([^\w]*)(javascript|data|vbscript)/im,no=/&#(\w+)(^\w|;)?/g,io=/&(newline|tab);/gi,so=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,ao=/^.+(:|:)/gim,lo=[".","/"];eo.BLANK_URL="about:blank";function uo(mo){return lo.indexOf(mo[0])>-1}function ho(mo){var yo=mo.replace(so,"");return yo.replace(no,function(So,_o){return String.fromCharCode(_o)})}function go(mo){if(!mo)return eo.BLANK_URL;var yo=ho(mo).replace(io,"").replace(so,"").trim();if(!yo)return eo.BLANK_URL;if(uo(yo))return yo;var So=yo.match(ao);if(!So)return yo;var _o=So[0];return to.test(_o)?eo.BLANK_URL:yo}eo.sanitizeUrl=go})(dist$2);function ascending$2(eo,to){return eo==null||to==null?NaN:eoto?1:eo>=to?0:NaN}function descending$2(eo,to){return eo==null||to==null?NaN:toeo?1:to>=eo?0:NaN}function bisector(eo){let to,no,io;eo.length!==2?(to=ascending$2,no=(uo,ho)=>ascending$2(eo(uo),ho),io=(uo,ho)=>eo(uo)-ho):(to=eo===ascending$2||eo===descending$2?eo:zero$1,no=eo,io=eo);function so(uo,ho,go=0,mo=uo.length){if(go>>1;no(uo[yo],ho)<0?go=yo+1:mo=yo}while(go>>1;no(uo[yo],ho)<=0?go=yo+1:mo=yo}while(gogo&&io(uo[yo-1],ho)>-io(uo[yo],ho)?yo-1:yo}return{left:so,center:lo,right:ao}}function zero$1(){return 0}function number$6(eo){return eo===null?NaN:+eo}const ascendingBisect=bisector(ascending$2),bisectRight=ascendingBisect.right;bisector(number$6).center;const bisect=bisectRight;class InternMap extends Map{constructor(to,no=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:no}}),to!=null)for(const[io,so]of to)this.set(io,so)}get(to){return super.get(intern_get(this,to))}has(to){return super.has(intern_get(this,to))}set(to,no){return super.set(intern_set(this,to),no)}delete(to){return super.delete(intern_delete(this,to))}}function intern_get({_intern:eo,_key:to},no){const io=to(no);return eo.has(io)?eo.get(io):no}function intern_set({_intern:eo,_key:to},no){const io=to(no);return eo.has(io)?eo.get(io):(eo.set(io,no),no)}function intern_delete({_intern:eo,_key:to},no){const io=to(no);return eo.has(io)&&(no=eo.get(io),eo.delete(io)),no}function keyof(eo){return eo!==null&&typeof eo=="object"?eo.valueOf():eo}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(eo,to,no){const io=(to-eo)/Math.max(0,no),so=Math.floor(Math.log10(io)),ao=io/Math.pow(10,so),lo=ao>=e10?10:ao>=e5?5:ao>=e2?2:1;let uo,ho,go;return so<0?(go=Math.pow(10,-so)/lo,uo=Math.round(eo*go),ho=Math.round(to*go),uo/goto&&--ho,go=-go):(go=Math.pow(10,so)*lo,uo=Math.round(eo/go),ho=Math.round(to/go),uo*goto&&--ho),ho0))return[];if(eo===to)return[eo];const io=to=so))return[];const uo=ao-so+1,ho=new Array(uo);if(io)if(lo<0)for(let go=0;go=io)&&(no=io);else{let io=-1;for(let so of eo)(so=to(so,++io,eo))!=null&&(no=so)&&(no=so)}return no}function min$4(eo,to){let no;if(to===void 0)for(const io of eo)io!=null&&(no>io||no===void 0&&io>=io)&&(no=io);else{let io=-1;for(let so of eo)(so=to(so,++io,eo))!=null&&(no>so||no===void 0&&so>=so)&&(no=so)}return no}function range$2(eo,to,no){eo=+eo,to=+to,no=(so=arguments.length)<2?(to=eo,eo=0,1):so<3?1:+no;for(var io=-1,so=Math.max(0,Math.ceil((to-eo)/no))|0,ao=new Array(so);++io+eo(to)}function center$1(eo,to){return to=Math.max(0,eo.bandwidth()-to*2)/2,eo.round()&&(to=Math.round(to)),no=>+eo(no)+to}function entering(){return!this.__axis}function axis(eo,to){var no=[],io=null,so=null,ao=6,lo=6,uo=3,ho=typeof window<"u"&&window.devicePixelRatio>1?0:.5,go=eo===top$1||eo===left$1?-1:1,mo=eo===left$1||eo===right$1?"x":"y",yo=eo===top$1||eo===bottom?translateX:translateY;function So(_o){var ko=io??(to.ticks?to.ticks.apply(to,no):to.domain()),Co=so??(to.tickFormat?to.tickFormat.apply(to,no):identity$5),$o=Math.max(ao,0)+uo,Ro=to.range(),Oo=+Ro[0]+ho,No=+Ro[Ro.length-1]+ho,Mo=(to.bandwidth?center$1:number$5)(to.copy(),ho),Bo=_o.selection?_o.selection():_o,Fo=Bo.selectAll(".domain").data([null]),Lo=Bo.selectAll(".tick").data(ko,to).order(),Go=Lo.exit(),Do=Lo.enter().append("g").attr("class","tick"),Uo=Lo.select("line"),Ho=Lo.select("text");Fo=Fo.merge(Fo.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Lo=Lo.merge(Do),Uo=Uo.merge(Do.append("line").attr("stroke","currentColor").attr(mo+"2",go*ao)),Ho=Ho.merge(Do.append("text").attr("fill","currentColor").attr(mo,go*$o).attr("dy",eo===top$1?"0em":eo===bottom?"0.71em":"0.32em")),_o!==Bo&&(Fo=Fo.transition(_o),Lo=Lo.transition(_o),Uo=Uo.transition(_o),Ho=Ho.transition(_o),Go=Go.transition(_o).attr("opacity",epsilon$3).attr("transform",function(Yo){return isFinite(Yo=Mo(Yo))?yo(Yo+ho):this.getAttribute("transform")}),Do.attr("opacity",epsilon$3).attr("transform",function(Yo){var qo=this.parentNode.__axis;return yo((qo&&isFinite(qo=qo(Yo))?qo:Mo(Yo))+ho)})),Go.remove(),Fo.attr("d",eo===left$1||eo===right$1?lo?"M"+go*lo+","+Oo+"H"+ho+"V"+No+"H"+go*lo:"M"+ho+","+Oo+"V"+No:lo?"M"+Oo+","+go*lo+"V"+ho+"H"+No+"V"+go*lo:"M"+Oo+","+ho+"H"+No),Lo.attr("opacity",1).attr("transform",function(Yo){return yo(Mo(Yo)+ho)}),Uo.attr(mo+"2",go*ao),Ho.attr(mo,go*$o).text(Co),Bo.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",eo===right$1?"start":eo===left$1?"end":"middle"),Bo.each(function(){this.__axis=Mo})}return So.scale=function(_o){return arguments.length?(to=_o,So):to},So.ticks=function(){return no=Array.from(arguments),So},So.tickArguments=function(_o){return arguments.length?(no=_o==null?[]:Array.from(_o),So):no.slice()},So.tickValues=function(_o){return arguments.length?(io=_o==null?null:Array.from(_o),So):io&&io.slice()},So.tickFormat=function(_o){return arguments.length?(so=_o,So):so},So.tickSize=function(_o){return arguments.length?(ao=lo=+_o,So):ao},So.tickSizeInner=function(_o){return arguments.length?(ao=+_o,So):ao},So.tickSizeOuter=function(_o){return arguments.length?(lo=+_o,So):lo},So.tickPadding=function(_o){return arguments.length?(uo=+_o,So):uo},So.offset=function(_o){return arguments.length?(ho=+_o,So):ho},So}function axisTop(eo){return axis(top$1,eo)}function axisBottom(eo){return axis(bottom,eo)}var noop$4={value:()=>{}};function dispatch(){for(var eo=0,to=arguments.length,no={},io;eo=0&&(io=no.slice(so+1),no=no.slice(0,so)),no&&!to.hasOwnProperty(no))throw new Error("unknown type: "+no);return{type:no,name:io}})}Dispatch.prototype=dispatch.prototype={constructor:Dispatch,on:function(eo,to){var no=this._,io=parseTypenames$1(eo+"",no),so,ao=-1,lo=io.length;if(arguments.length<2){for(;++ao0)for(var no=new Array(so),io=0,so,ao;io=0&&(to=eo.slice(0,no))!=="xmlns"&&(eo=eo.slice(no+1)),namespaces$1.hasOwnProperty(to)?{space:namespaces$1[to],local:eo}:eo}function creatorInherit(eo){return function(){var to=this.ownerDocument,no=this.namespaceURI;return no===xhtml&&to.documentElement.namespaceURI===xhtml?to.createElement(eo):to.createElementNS(no,eo)}}function creatorFixed(eo){return function(){return this.ownerDocument.createElementNS(eo.space,eo.local)}}function creator(eo){var to=namespace(eo);return(to.local?creatorFixed:creatorInherit)(to)}function none$3(){}function selector(eo){return eo==null?none$3:function(){return this.querySelector(eo)}}function selection_select(eo){typeof eo!="function"&&(eo=selector(eo));for(var to=this._groups,no=to.length,io=new Array(no),so=0;so=No&&(No=Oo+1);!(Bo=$o[No])&&++No=0;)(lo=io[so])&&(ao&&lo.compareDocumentPosition(ao)^4&&ao.parentNode.insertBefore(lo,ao),ao=lo);return this}function selection_sort(eo){eo||(eo=ascending$1);function to(yo,So){return yo&&So?eo(yo.__data__,So.__data__):!yo-!So}for(var no=this._groups,io=no.length,so=new Array(io),ao=0;aoto?1:eo>=to?0:NaN}function selection_call(){var eo=arguments[0];return arguments[0]=this,eo.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var eo=this._groups,to=0,no=eo.length;to1?this.each((to==null?styleRemove$1:typeof to=="function"?styleFunction$1:styleConstant$1)(eo,to,no??"")):styleValue(this.node(),eo)}function styleValue(eo,to){return eo.style.getPropertyValue(to)||defaultView(eo).getComputedStyle(eo,null).getPropertyValue(to)}function propertyRemove(eo){return function(){delete this[eo]}}function propertyConstant(eo,to){return function(){this[eo]=to}}function propertyFunction(eo,to){return function(){var no=to.apply(this,arguments);no==null?delete this[eo]:this[eo]=no}}function selection_property(eo,to){return arguments.length>1?this.each((to==null?propertyRemove:typeof to=="function"?propertyFunction:propertyConstant)(eo,to)):this.node()[eo]}function classArray(eo){return eo.trim().split(/^|\s+/)}function classList(eo){return eo.classList||new ClassList(eo)}function ClassList(eo){this._node=eo,this._names=classArray(eo.getAttribute("class")||"")}ClassList.prototype={add:function(eo){var to=this._names.indexOf(eo);to<0&&(this._names.push(eo),this._node.setAttribute("class",this._names.join(" ")))},remove:function(eo){var to=this._names.indexOf(eo);to>=0&&(this._names.splice(to,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(eo){return this._names.indexOf(eo)>=0}};function classedAdd(eo,to){for(var no=classList(eo),io=-1,so=to.length;++io=0&&(no=to.slice(io+1),to=to.slice(0,io)),{type:to,name:no}})}function onRemove(eo){return function(){var to=this.__on;if(to){for(var no=0,io=-1,so=to.length,ao;no>8&15|to>>4&240,to>>4&15|to&240,(to&15)<<4|to&15,1):no===8?rgba$3(to>>24&255,to>>16&255,to>>8&255,(to&255)/255):no===4?rgba$3(to>>12&15|to>>8&240,to>>8&15|to>>4&240,to>>4&15|to&240,((to&15)<<4|to&15)/255):null):(to=reRgbInteger.exec(eo))?new Rgb(to[1],to[2],to[3],1):(to=reRgbPercent.exec(eo))?new Rgb(to[1]*255/100,to[2]*255/100,to[3]*255/100,1):(to=reRgbaInteger.exec(eo))?rgba$3(to[1],to[2],to[3],to[4]):(to=reRgbaPercent.exec(eo))?rgba$3(to[1]*255/100,to[2]*255/100,to[3]*255/100,to[4]):(to=reHslPercent.exec(eo))?hsla$1(to[1],to[2]/100,to[3]/100,1):(to=reHslaPercent.exec(eo))?hsla$1(to[1],to[2]/100,to[3]/100,to[4]):named.hasOwnProperty(eo)?rgbn(named[eo]):eo==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(eo){return new Rgb(eo>>16&255,eo>>8&255,eo&255,1)}function rgba$3(eo,to,no,io){return io<=0&&(eo=to=no=NaN),new Rgb(eo,to,no,io)}function rgbConvert(eo){return eo instanceof Color$2||(eo=color(eo)),eo?(eo=eo.rgb(),new Rgb(eo.r,eo.g,eo.b,eo.opacity)):new Rgb}function rgb(eo,to,no,io){return arguments.length===1?rgbConvert(eo):new Rgb(eo,to,no,io??1)}function Rgb(eo,to,no,io){this.r=+eo,this.g=+to,this.b=+no,this.opacity=+io}define$4(Rgb,rgb,extend$3(Color$2,{brighter(eo){return eo=eo==null?brighter:Math.pow(brighter,eo),new Rgb(this.r*eo,this.g*eo,this.b*eo,this.opacity)},darker(eo){return eo=eo==null?darker:Math.pow(darker,eo),new Rgb(this.r*eo,this.g*eo,this.b*eo,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const eo=clampa(this.opacity);return`${eo===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${eo===1?")":`, ${eo})`}`}function clampa(eo){return isNaN(eo)?1:Math.max(0,Math.min(1,eo))}function clampi(eo){return Math.max(0,Math.min(255,Math.round(eo)||0))}function hex(eo){return eo=clampi(eo),(eo<16?"0":"")+eo.toString(16)}function hsla$1(eo,to,no,io){return io<=0?eo=to=no=NaN:no<=0||no>=1?eo=to=NaN:to<=0&&(eo=NaN),new Hsl(eo,to,no,io)}function hslConvert(eo){if(eo instanceof Hsl)return new Hsl(eo.h,eo.s,eo.l,eo.opacity);if(eo instanceof Color$2||(eo=color(eo)),!eo)return new Hsl;if(eo instanceof Hsl)return eo;eo=eo.rgb();var to=eo.r/255,no=eo.g/255,io=eo.b/255,so=Math.min(to,no,io),ao=Math.max(to,no,io),lo=NaN,uo=ao-so,ho=(ao+so)/2;return uo?(to===ao?lo=(no-io)/uo+(no0&&ho<1?0:lo,new Hsl(lo,uo,ho,eo.opacity)}function hsl(eo,to,no,io){return arguments.length===1?hslConvert(eo):new Hsl(eo,to,no,io??1)}function Hsl(eo,to,no,io){this.h=+eo,this.s=+to,this.l=+no,this.opacity=+io}define$4(Hsl,hsl,extend$3(Color$2,{brighter(eo){return eo=eo==null?brighter:Math.pow(brighter,eo),new Hsl(this.h,this.s,this.l*eo,this.opacity)},darker(eo){return eo=eo==null?darker:Math.pow(darker,eo),new Hsl(this.h,this.s,this.l*eo,this.opacity)},rgb(){var eo=this.h%360+(this.h<0)*360,to=isNaN(eo)||isNaN(this.s)?0:this.s,no=this.l,io=no+(no<.5?no:1-no)*to,so=2*no-io;return new Rgb(hsl2rgb(eo>=240?eo-240:eo+120,so,io),hsl2rgb(eo,so,io),hsl2rgb(eo<120?eo+240:eo-120,so,io),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const eo=clampa(this.opacity);return`${eo===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${eo===1?")":`, ${eo})`}`}}));function clamph(eo){return eo=(eo||0)%360,eo<0?eo+360:eo}function clampt(eo){return Math.max(0,Math.min(1,eo||0))}function hsl2rgb(eo,to,no){return(eo<60?to+(no-to)*eo/60:eo<180?no:eo<240?to+(no-to)*(240-eo)/60:to)*255}const radians=Math.PI/180,degrees$1=180/Math.PI,K$1=18,Xn=.96422,Yn=1,Zn=.82521,t0$1=4/29,t1$1=6/29,t2=3*t1$1*t1$1,t3=t1$1*t1$1*t1$1;function labConvert(eo){if(eo instanceof Lab)return new Lab(eo.l,eo.a,eo.b,eo.opacity);if(eo instanceof Hcl)return hcl2lab(eo);eo instanceof Rgb||(eo=rgbConvert(eo));var to=rgb2lrgb(eo.r),no=rgb2lrgb(eo.g),io=rgb2lrgb(eo.b),so=xyz2lab((.2225045*to+.7168786*no+.0606169*io)/Yn),ao,lo;return to===no&&no===io?ao=lo=so:(ao=xyz2lab((.4360747*to+.3850649*no+.1430804*io)/Xn),lo=xyz2lab((.0139322*to+.0971045*no+.7141733*io)/Zn)),new Lab(116*so-16,500*(ao-so),200*(so-lo),eo.opacity)}function lab(eo,to,no,io){return arguments.length===1?labConvert(eo):new Lab(eo,to,no,io??1)}function Lab(eo,to,no,io){this.l=+eo,this.a=+to,this.b=+no,this.opacity=+io}define$4(Lab,lab,extend$3(Color$2,{brighter(eo){return new Lab(this.l+K$1*(eo??1),this.a,this.b,this.opacity)},darker(eo){return new Lab(this.l-K$1*(eo??1),this.a,this.b,this.opacity)},rgb(){var eo=(this.l+16)/116,to=isNaN(this.a)?eo:eo+this.a/500,no=isNaN(this.b)?eo:eo-this.b/200;return to=Xn*lab2xyz(to),eo=Yn*lab2xyz(eo),no=Zn*lab2xyz(no),new Rgb(lrgb2rgb(3.1338561*to-1.6168667*eo-.4906146*no),lrgb2rgb(-.9787684*to+1.9161415*eo+.033454*no),lrgb2rgb(.0719453*to-.2289914*eo+1.4052427*no),this.opacity)}}));function xyz2lab(eo){return eo>t3?Math.pow(eo,1/3):eo/t2+t0$1}function lab2xyz(eo){return eo>t1$1?eo*eo*eo:t2*(eo-t0$1)}function lrgb2rgb(eo){return 255*(eo<=.0031308?12.92*eo:1.055*Math.pow(eo,1/2.4)-.055)}function rgb2lrgb(eo){return(eo/=255)<=.04045?eo/12.92:Math.pow((eo+.055)/1.055,2.4)}function hclConvert(eo){if(eo instanceof Hcl)return new Hcl(eo.h,eo.c,eo.l,eo.opacity);if(eo instanceof Lab||(eo=labConvert(eo)),eo.a===0&&eo.b===0)return new Hcl(NaN,0()=>eo;function linear$1(eo,to){return function(no){return eo+no*to}}function exponential(eo,to,no){return eo=Math.pow(eo,no),to=Math.pow(to,no)-eo,no=1/no,function(io){return Math.pow(eo+io*to,no)}}function hue(eo,to){var no=to-eo;return no?linear$1(eo,no>180||no<-180?no-360*Math.round(no/360):no):constant$4(isNaN(eo)?to:eo)}function gamma(eo){return(eo=+eo)==1?nogamma:function(to,no){return no-to?exponential(to,no,eo):constant$4(isNaN(to)?no:to)}}function nogamma(eo,to){var no=to-eo;return no?linear$1(eo,no):constant$4(isNaN(eo)?to:eo)}const interpolateRgb=function eo(to){var no=gamma(to);function io(so,ao){var lo=no((so=rgb(so)).r,(ao=rgb(ao)).r),uo=no(so.g,ao.g),ho=no(so.b,ao.b),go=nogamma(so.opacity,ao.opacity);return function(mo){return so.r=lo(mo),so.g=uo(mo),so.b=ho(mo),so.opacity=go(mo),so+""}}return io.gamma=eo,io}(1);function numberArray(eo,to){to||(to=[]);var no=eo?Math.min(to.length,eo.length):0,io=to.slice(),so;return function(ao){for(so=0;sono&&(ao=to.slice(no,ao),uo[lo]?uo[lo]+=ao:uo[++lo]=ao),(io=io[0])===(so=so[0])?uo[lo]?uo[lo]+=so:uo[++lo]=so:(uo[++lo]=null,ho.push({i:lo,x:interpolateNumber(io,so)})),no=reB.lastIndex;return no180?mo+=360:mo-go>180&&(go+=360),So.push({i:yo.push(so(yo)+"rotate(",null,io)-2,x:interpolateNumber(go,mo)})):mo&&yo.push(so(yo)+"rotate("+mo+io)}function uo(go,mo,yo,So){go!==mo?So.push({i:yo.push(so(yo)+"skewX(",null,io)-2,x:interpolateNumber(go,mo)}):mo&&yo.push(so(yo)+"skewX("+mo+io)}function ho(go,mo,yo,So,_o,ko){if(go!==yo||mo!==So){var Co=_o.push(so(_o)+"scale(",null,",",null,")");ko.push({i:Co-4,x:interpolateNumber(go,yo)},{i:Co-2,x:interpolateNumber(mo,So)})}else(yo!==1||So!==1)&&_o.push(so(_o)+"scale("+yo+","+So+")")}return function(go,mo){var yo=[],So=[];return go=eo(go),mo=eo(mo),ao(go.translateX,go.translateY,mo.translateX,mo.translateY,yo,So),lo(go.rotate,mo.rotate,yo,So),uo(go.skewX,mo.skewX,yo,So),ho(go.scaleX,go.scaleY,mo.scaleX,mo.scaleY,yo,So),go=mo=null,function(_o){for(var ko=-1,Co=So.length,$o;++ko=0&&eo._call.call(void 0,to),eo=eo._next;--frame}function wake(){clockNow=(clockLast=clock.now())+clockSkew,frame=timeout$1=0;try{timerFlush()}finally{frame=0,nap(),clockNow=0}}function poke(){var eo=clock.now(),to=eo-clockLast;to>pokeDelay&&(clockSkew-=to,clockLast=eo)}function nap(){for(var eo,to=taskHead,no,io=1/0;to;)to._call?(io>to._time&&(io=to._time),eo=to,to=to._next):(no=to._next,to._next=null,to=eo?eo._next=no:taskHead=no);taskTail=eo,sleep(io)}function sleep(eo){if(!frame){timeout$1&&(timeout$1=clearTimeout(timeout$1));var to=eo-clockNow;to>24?(eo<1/0&&(timeout$1=setTimeout(wake,eo-clock.now()-clockSkew)),interval&&(interval=clearInterval(interval))):(interval||(clockLast=clock.now(),interval=setInterval(poke,pokeDelay)),frame=1,setFrame(wake))}}function timeout(eo,to,no){var io=new Timer;return to=to==null?0:+to,io.restart(so=>{io.stop(),eo(so+to)},to,no),io}var emptyOn=dispatch("start","end","cancel","interrupt"),emptyTween=[],CREATED=0,SCHEDULED=1,STARTING=2,STARTED=3,RUNNING=4,ENDING=5,ENDED=6;function schedule(eo,to,no,io,so,ao){var lo=eo.__transition;if(!lo)eo.__transition={};else if(no in lo)return;create$1(eo,no,{name:to,index:io,group:so,on:emptyOn,tween:emptyTween,time:ao.time,delay:ao.delay,duration:ao.duration,ease:ao.ease,timer:null,state:CREATED})}function init$1(eo,to){var no=get$2(eo,to);if(no.state>CREATED)throw new Error("too late; already scheduled");return no}function set$2(eo,to){var no=get$2(eo,to);if(no.state>STARTED)throw new Error("too late; already running");return no}function get$2(eo,to){var no=eo.__transition;if(!no||!(no=no[to]))throw new Error("transition not found");return no}function create$1(eo,to,no){var io=eo.__transition,so;io[to]=no,no.timer=timer(ao,0,no.time);function ao(go){no.state=SCHEDULED,no.timer.restart(lo,no.delay,no.time),no.delay<=go&&lo(go-no.delay)}function lo(go){var mo,yo,So,_o;if(no.state!==SCHEDULED)return ho();for(mo in io)if(_o=io[mo],_o.name===no.name){if(_o.state===STARTED)return timeout(lo);_o.state===RUNNING?(_o.state=ENDED,_o.timer.stop(),_o.on.call("interrupt",eo,eo.__data__,_o.index,_o.group),delete io[mo]):+moSTARTING&&io.state=0&&(to=to.slice(0,no)),!to||to==="start"})}function onFunction(eo,to,no){var io,so,ao=start$1(to)?init$1:set$2;return function(){var lo=ao(this,eo),uo=lo.on;uo!==io&&(so=(io=uo).copy()).on(to,no),lo.on=so}}function transition_on(eo,to){var no=this._id;return arguments.length<2?get$2(this.node(),no).on.on(eo):this.each(onFunction(no,eo,to))}function removeFunction(eo){return function(){var to=this.parentNode;for(var no in this.__transition)if(+no!==eo)return;to&&to.removeChild(this)}}function transition_remove(){return this.on("end.remove",removeFunction(this._id))}function transition_select(eo){var to=this._name,no=this._id;typeof eo!="function"&&(eo=selector(eo));for(var io=this._groups,so=io.length,ao=new Array(so),lo=0;lo=0))throw new Error(`invalid digits: ${eo}`);if(to>15)return append$1;const no=10**to;return function(io){this._+=io[0];for(let so=1,ao=io.length;soepsilon$2)if(!(Math.abs(yo*ho-go*mo)>epsilon$2)||!ao)this._append`L${this._x1=to},${this._y1=no}`;else{let _o=io-lo,ko=so-uo,Co=ho*ho+go*go,$o=_o*_o+ko*ko,Ro=Math.sqrt(Co),Oo=Math.sqrt(So),No=ao*Math.tan((pi$2-Math.acos((Co+So-$o)/(2*Ro*Oo)))/2),Mo=No/Oo,Bo=No/Ro;Math.abs(Mo-1)>epsilon$2&&this._append`L${to+Mo*mo},${no+Mo*yo}`,this._append`A${ao},${ao},0,0,${+(yo*_o>mo*ko)},${this._x1=to+Bo*ho},${this._y1=no+Bo*go}`}}arc(to,no,io,so,ao,lo){if(to=+to,no=+no,io=+io,lo=!!lo,io<0)throw new Error(`negative radius: ${io}`);let uo=io*Math.cos(so),ho=io*Math.sin(so),go=to+uo,mo=no+ho,yo=1^lo,So=lo?so-ao:ao-so;this._x1===null?this._append`M${go},${mo}`:(Math.abs(this._x1-go)>epsilon$2||Math.abs(this._y1-mo)>epsilon$2)&&this._append`L${go},${mo}`,io&&(So<0&&(So=So%tau$2+tau$2),So>tauEpsilon$1?this._append`A${io},${io},0,1,${yo},${to-uo},${no-ho}A${io},${io},0,1,${yo},${this._x1=go},${this._y1=mo}`:So>epsilon$2&&this._append`A${io},${io},0,${+(So>=pi$2)},${yo},${this._x1=to+io*Math.cos(ao)},${this._y1=no+io*Math.sin(ao)}`)}rect(to,no,io,so){this._append`M${this._x0=this._x1=+to},${this._y0=this._y1=+no}h${io=+io}v${+so}h${-io}Z`}toString(){return this._}};function responseText(eo){if(!eo.ok)throw new Error(eo.status+" "+eo.statusText);return eo.text()}function text$4(eo,to){return fetch(eo,to).then(responseText)}function parser$k(eo){return(to,no)=>text$4(to,no).then(io=>new DOMParser().parseFromString(io,eo))}var svg$3=parser$k("image/svg+xml");function initRange(eo,to){switch(arguments.length){case 0:break;case 1:this.range(eo);break;default:this.range(to).domain(eo);break}return this}const implicit=Symbol("implicit");function ordinal(){var eo=new InternMap,to=[],no=[],io=implicit;function so(ao){let lo=eo.get(ao);if(lo===void 0){if(io!==implicit)return io;eo.set(ao,lo=to.push(ao)-1)}return no[lo%no.length]}return so.domain=function(ao){if(!arguments.length)return to.slice();to=[],eo=new InternMap;for(const lo of ao)eo.has(lo)||eo.set(lo,to.push(lo)-1);return so},so.range=function(ao){return arguments.length?(no=Array.from(ao),so):no.slice()},so.unknown=function(ao){return arguments.length?(io=ao,so):io},so.copy=function(){return ordinal(to,no).unknown(io)},initRange.apply(so,arguments),so}function band(){var eo=ordinal().unknown(void 0),to=eo.domain,no=eo.range,io=0,so=1,ao,lo,uo=!1,ho=0,go=0,mo=.5;delete eo.unknown;function yo(){var So=to().length,_o=soto&&(no=eo,eo=to,to=no),function(io){return Math.max(eo,Math.min(to,io))}}function bimap(eo,to,no){var io=eo[0],so=eo[1],ao=to[0],lo=to[1];return so2?polymap:bimap,ho=go=null,yo}function yo(So){return So==null||isNaN(So=+So)?ao:(ho||(ho=uo(eo.map(io),to,no)))(io(lo(So)))}return yo.invert=function(So){return lo(so((go||(go=uo(to,eo.map(io),interpolateNumber)))(So)))},yo.domain=function(So){return arguments.length?(eo=Array.from(So,number$4),mo()):eo.slice()},yo.range=function(So){return arguments.length?(to=Array.from(So),mo()):to.slice()},yo.rangeRound=function(So){return to=Array.from(So),no=interpolateRound,mo()},yo.clamp=function(So){return arguments.length?(lo=So?!0:identity$3,mo()):lo!==identity$3},yo.interpolate=function(So){return arguments.length?(no=So,mo()):no},yo.unknown=function(So){return arguments.length?(ao=So,yo):ao},function(So,_o){return io=So,so=_o,mo()}}function continuous(){return transformer()(identity$3,identity$3)}function tickFormat(eo,to,no,io){var so=tickStep(eo,to,no),ao;switch(io=formatSpecifier(io??",f"),io.type){case"s":{var lo=Math.max(Math.abs(eo),Math.abs(to));return io.precision==null&&!isNaN(ao=precisionPrefix(so,lo))&&(io.precision=ao),formatPrefix(io,lo)}case"":case"e":case"g":case"p":case"r":{io.precision==null&&!isNaN(ao=precisionRound(so,Math.max(Math.abs(eo),Math.abs(to))))&&(io.precision=ao-(io.type==="e"));break}case"f":case"%":{io.precision==null&&!isNaN(ao=precisionFixed(so))&&(io.precision=ao-(io.type==="%")*2);break}}return format$1(io)}function linearish(eo){var to=eo.domain;return eo.ticks=function(no){var io=to();return ticks(io[0],io[io.length-1],no??10)},eo.tickFormat=function(no,io){var so=to();return tickFormat(so[0],so[so.length-1],no??10,io)},eo.nice=function(no){no==null&&(no=10);var io=to(),so=0,ao=io.length-1,lo=io[so],uo=io[ao],ho,go,mo=10;for(uo0;){if(go=tickIncrement(lo,uo,no),go===ho)return io[so]=lo,io[ao]=uo,to(io);if(go>0)lo=Math.floor(lo/go)*go,uo=Math.ceil(uo/go)*go;else if(go<0)lo=Math.ceil(lo*go)/go,uo=Math.floor(uo*go)/go;else break;ho=go}return eo},eo}function linear(){var eo=continuous();return eo.copy=function(){return copy$2(eo,linear())},initRange.apply(eo,arguments),linearish(eo)}function nice(eo,to){eo=eo.slice();var no=0,io=eo.length-1,so=eo[no],ao=eo[io],lo;return ao(eo(ao=new Date(+ao)),ao),so.ceil=ao=>(eo(ao=new Date(ao-1)),to(ao,1),eo(ao),ao),so.round=ao=>{const lo=so(ao),uo=so.ceil(ao);return ao-lo(to(ao=new Date(+ao),lo==null?1:Math.floor(lo)),ao),so.range=(ao,lo,uo)=>{const ho=[];if(ao=so.ceil(ao),uo=uo==null?1:Math.floor(uo),!(ao0))return ho;let go;do ho.push(go=new Date(+ao)),to(ao,uo),eo(ao);while(gotimeInterval(lo=>{if(lo>=lo)for(;eo(lo),!ao(lo);)lo.setTime(lo-1)},(lo,uo)=>{if(lo>=lo)if(uo<0)for(;++uo<=0;)for(;to(lo,-1),!ao(lo););else for(;--uo>=0;)for(;to(lo,1),!ao(lo););}),no&&(so.count=(ao,lo)=>(t0.setTime(+ao),t1.setTime(+lo),eo(t0),eo(t1),Math.floor(no(t0,t1))),so.every=ao=>(ao=Math.floor(ao),!isFinite(ao)||!(ao>0)?null:ao>1?so.filter(io?lo=>io(lo)%ao===0:lo=>so.count(0,lo)%ao===0):so)),so}const millisecond=timeInterval(()=>{},(eo,to)=>{eo.setTime(+eo+to)},(eo,to)=>to-eo);millisecond.every=eo=>(eo=Math.floor(eo),!isFinite(eo)||!(eo>0)?null:eo>1?timeInterval(to=>{to.setTime(Math.floor(to/eo)*eo)},(to,no)=>{to.setTime(+to+no*eo)},(to,no)=>(no-to)/eo):millisecond);millisecond.range;const durationSecond=1e3,durationMinute=durationSecond*60,durationHour=durationMinute*60,durationDay=durationHour*24,durationWeek=durationDay*7,durationMonth=durationDay*30,durationYear=durationDay*365,second=timeInterval(eo=>{eo.setTime(eo-eo.getMilliseconds())},(eo,to)=>{eo.setTime(+eo+to*durationSecond)},(eo,to)=>(to-eo)/durationSecond,eo=>eo.getUTCSeconds());second.range;const timeMinute=timeInterval(eo=>{eo.setTime(eo-eo.getMilliseconds()-eo.getSeconds()*durationSecond)},(eo,to)=>{eo.setTime(+eo+to*durationMinute)},(eo,to)=>(to-eo)/durationMinute,eo=>eo.getMinutes());timeMinute.range;const utcMinute=timeInterval(eo=>{eo.setUTCSeconds(0,0)},(eo,to)=>{eo.setTime(+eo+to*durationMinute)},(eo,to)=>(to-eo)/durationMinute,eo=>eo.getUTCMinutes());utcMinute.range;const timeHour=timeInterval(eo=>{eo.setTime(eo-eo.getMilliseconds()-eo.getSeconds()*durationSecond-eo.getMinutes()*durationMinute)},(eo,to)=>{eo.setTime(+eo+to*durationHour)},(eo,to)=>(to-eo)/durationHour,eo=>eo.getHours());timeHour.range;const utcHour=timeInterval(eo=>{eo.setUTCMinutes(0,0,0)},(eo,to)=>{eo.setTime(+eo+to*durationHour)},(eo,to)=>(to-eo)/durationHour,eo=>eo.getUTCHours());utcHour.range;const timeDay=timeInterval(eo=>eo.setHours(0,0,0,0),(eo,to)=>eo.setDate(eo.getDate()+to),(eo,to)=>(to-eo-(to.getTimezoneOffset()-eo.getTimezoneOffset())*durationMinute)/durationDay,eo=>eo.getDate()-1);timeDay.range;const utcDay=timeInterval(eo=>{eo.setUTCHours(0,0,0,0)},(eo,to)=>{eo.setUTCDate(eo.getUTCDate()+to)},(eo,to)=>(to-eo)/durationDay,eo=>eo.getUTCDate()-1);utcDay.range;const unixDay=timeInterval(eo=>{eo.setUTCHours(0,0,0,0)},(eo,to)=>{eo.setUTCDate(eo.getUTCDate()+to)},(eo,to)=>(to-eo)/durationDay,eo=>Math.floor(eo/durationDay));unixDay.range;function timeWeekday(eo){return timeInterval(to=>{to.setDate(to.getDate()-(to.getDay()+7-eo)%7),to.setHours(0,0,0,0)},(to,no)=>{to.setDate(to.getDate()+no*7)},(to,no)=>(no-to-(no.getTimezoneOffset()-to.getTimezoneOffset())*durationMinute)/durationWeek)}const timeSunday=timeWeekday(0),timeMonday=timeWeekday(1),timeTuesday=timeWeekday(2),timeWednesday=timeWeekday(3),timeThursday=timeWeekday(4),timeFriday=timeWeekday(5),timeSaturday=timeWeekday(6);timeSunday.range;timeMonday.range;timeTuesday.range;timeWednesday.range;timeThursday.range;timeFriday.range;timeSaturday.range;function utcWeekday(eo){return timeInterval(to=>{to.setUTCDate(to.getUTCDate()-(to.getUTCDay()+7-eo)%7),to.setUTCHours(0,0,0,0)},(to,no)=>{to.setUTCDate(to.getUTCDate()+no*7)},(to,no)=>(no-to)/durationWeek)}const utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range;utcMonday.range;utcTuesday.range;utcWednesday.range;utcThursday.range;utcFriday.range;utcSaturday.range;const timeMonth=timeInterval(eo=>{eo.setDate(1),eo.setHours(0,0,0,0)},(eo,to)=>{eo.setMonth(eo.getMonth()+to)},(eo,to)=>to.getMonth()-eo.getMonth()+(to.getFullYear()-eo.getFullYear())*12,eo=>eo.getMonth());timeMonth.range;const utcMonth=timeInterval(eo=>{eo.setUTCDate(1),eo.setUTCHours(0,0,0,0)},(eo,to)=>{eo.setUTCMonth(eo.getUTCMonth()+to)},(eo,to)=>to.getUTCMonth()-eo.getUTCMonth()+(to.getUTCFullYear()-eo.getUTCFullYear())*12,eo=>eo.getUTCMonth());utcMonth.range;const timeYear=timeInterval(eo=>{eo.setMonth(0,1),eo.setHours(0,0,0,0)},(eo,to)=>{eo.setFullYear(eo.getFullYear()+to)},(eo,to)=>to.getFullYear()-eo.getFullYear(),eo=>eo.getFullYear());timeYear.every=eo=>!isFinite(eo=Math.floor(eo))||!(eo>0)?null:timeInterval(to=>{to.setFullYear(Math.floor(to.getFullYear()/eo)*eo),to.setMonth(0,1),to.setHours(0,0,0,0)},(to,no)=>{to.setFullYear(to.getFullYear()+no*eo)});timeYear.range;const utcYear=timeInterval(eo=>{eo.setUTCMonth(0,1),eo.setUTCHours(0,0,0,0)},(eo,to)=>{eo.setUTCFullYear(eo.getUTCFullYear()+to)},(eo,to)=>to.getUTCFullYear()-eo.getUTCFullYear(),eo=>eo.getUTCFullYear());utcYear.every=eo=>!isFinite(eo=Math.floor(eo))||!(eo>0)?null:timeInterval(to=>{to.setUTCFullYear(Math.floor(to.getUTCFullYear()/eo)*eo),to.setUTCMonth(0,1),to.setUTCHours(0,0,0,0)},(to,no)=>{to.setUTCFullYear(to.getUTCFullYear()+no*eo)});utcYear.range;function ticker(eo,to,no,io,so,ao){const lo=[[second,1,durationSecond],[second,5,5*durationSecond],[second,15,15*durationSecond],[second,30,30*durationSecond],[ao,1,durationMinute],[ao,5,5*durationMinute],[ao,15,15*durationMinute],[ao,30,30*durationMinute],[so,1,durationHour],[so,3,3*durationHour],[so,6,6*durationHour],[so,12,12*durationHour],[io,1,durationDay],[io,2,2*durationDay],[no,1,durationWeek],[to,1,durationMonth],[to,3,3*durationMonth],[eo,1,durationYear]];function uo(go,mo,yo){const So=mo$o).right(lo,So);if(_o===lo.length)return eo.every(tickStep(go/durationYear,mo/durationYear,yo));if(_o===0)return millisecond.every(Math.max(tickStep(go,mo,yo),1));const[ko,Co]=lo[So/lo[_o-1][2]53)return null;"w"in El||(El.w=1),"Z"in El?(Gl=utcDate(newDate(El.y,0,1)),Qs=Gl.getUTCDay(),Gl=Qs>4||Qs===0?utcMonday.ceil(Gl):utcMonday(Gl),Gl=utcDay.offset(Gl,(El.V-1)*7),El.y=Gl.getUTCFullYear(),El.m=Gl.getUTCMonth(),El.d=Gl.getUTCDate()+(El.w+6)%7):(Gl=localDate(newDate(El.y,0,1)),Qs=Gl.getDay(),Gl=Qs>4||Qs===0?timeMonday.ceil(Gl):timeMonday(Gl),Gl=timeDay.offset(Gl,(El.V-1)*7),El.y=Gl.getFullYear(),El.m=Gl.getMonth(),El.d=Gl.getDate()+(El.w+6)%7)}else("W"in El||"U"in El)&&("w"in El||(El.w="u"in El?El.u%7:"W"in El?1:0),Qs="Z"in El?utcDate(newDate(El.y,0,1)).getUTCDay():localDate(newDate(El.y,0,1)).getDay(),El.m=0,El.d="W"in El?(El.w+6)%7+El.W*7-(Qs+5)%7:El.w+El.U*7-(Qs+6)%7);return"Z"in El?(El.H+=El.Z/100|0,El.M+=El.Z%100,utcDate(El)):localDate(El)}}function Go(Fs,Js,Vs,El){for(var yl=0,Gl=Js.length,Qs=Vs.length,du,Ol;yl=Qs)return-1;if(du=Js.charCodeAt(yl++),du===37){if(du=Js.charAt(yl++),Ol=Bo[du in pads?Js.charAt(yl++):du],!Ol||(El=Ol(Fs,Vs,El))<0)return-1}else if(du!=Vs.charCodeAt(El++))return-1}return El}function Do(Fs,Js,Vs){var El=go.exec(Js.slice(Vs));return El?(Fs.p=mo.get(El[0].toLowerCase()),Vs+El[0].length):-1}function Uo(Fs,Js,Vs){var El=_o.exec(Js.slice(Vs));return El?(Fs.w=ko.get(El[0].toLowerCase()),Vs+El[0].length):-1}function Ho(Fs,Js,Vs){var El=yo.exec(Js.slice(Vs));return El?(Fs.w=So.get(El[0].toLowerCase()),Vs+El[0].length):-1}function Yo(Fs,Js,Vs){var El=Ro.exec(Js.slice(Vs));return El?(Fs.m=Oo.get(El[0].toLowerCase()),Vs+El[0].length):-1}function qo(Fs,Js,Vs){var El=Co.exec(Js.slice(Vs));return El?(Fs.m=$o.get(El[0].toLowerCase()),Vs+El[0].length):-1}function Jo(Fs,Js,Vs){return Go(Fs,to,Js,Vs)}function ps(Fs,Js,Vs){return Go(Fs,no,Js,Vs)}function Qo(Fs,Js,Vs){return Go(Fs,io,Js,Vs)}function hs(Fs){return lo[Fs.getDay()]}function gs(Fs){return ao[Fs.getDay()]}function ys(Fs){return ho[Fs.getMonth()]}function vs(Fs){return uo[Fs.getMonth()]}function ks(Fs){return so[+(Fs.getHours()>=12)]}function Os(Fs){return 1+~~(Fs.getMonth()/3)}function Ts(Fs){return lo[Fs.getUTCDay()]}function Xs(Fs){return ao[Fs.getUTCDay()]}function Ws(Fs){return ho[Fs.getUTCMonth()]}function Ps(Fs){return uo[Fs.getUTCMonth()]}function qs(Fs){return so[+(Fs.getUTCHours()>=12)]}function ga(Fs){return 1+~~(Fs.getUTCMonth()/3)}return{format:function(Fs){var Js=Fo(Fs+="",No);return Js.toString=function(){return Fs},Js},parse:function(Fs){var Js=Lo(Fs+="",!1);return Js.toString=function(){return Fs},Js},utcFormat:function(Fs){var Js=Fo(Fs+="",Mo);return Js.toString=function(){return Fs},Js},utcParse:function(Fs){var Js=Lo(Fs+="",!0);return Js.toString=function(){return Fs},Js}}}var pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad$1(eo,to,no){var io=eo<0?"-":"",so=(io?-eo:eo)+"",ao=so.length;return io+(ao[to.toLowerCase(),no]))}function parseWeekdayNumberSunday(eo,to,no){var io=numberRe.exec(to.slice(no,no+1));return io?(eo.w=+io[0],no+io[0].length):-1}function parseWeekdayNumberMonday(eo,to,no){var io=numberRe.exec(to.slice(no,no+1));return io?(eo.u=+io[0],no+io[0].length):-1}function parseWeekNumberSunday(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.U=+io[0],no+io[0].length):-1}function parseWeekNumberISO(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.V=+io[0],no+io[0].length):-1}function parseWeekNumberMonday(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.W=+io[0],no+io[0].length):-1}function parseFullYear(eo,to,no){var io=numberRe.exec(to.slice(no,no+4));return io?(eo.y=+io[0],no+io[0].length):-1}function parseYear(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.y=+io[0]+(+io[0]>68?1900:2e3),no+io[0].length):-1}function parseZone(eo,to,no){var io=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(to.slice(no,no+6));return io?(eo.Z=io[1]?0:-(io[2]+(io[3]||"00")),no+io[0].length):-1}function parseQuarter(eo,to,no){var io=numberRe.exec(to.slice(no,no+1));return io?(eo.q=io[0]*3-3,no+io[0].length):-1}function parseMonthNumber(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.m=io[0]-1,no+io[0].length):-1}function parseDayOfMonth(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.d=+io[0],no+io[0].length):-1}function parseDayOfYear(eo,to,no){var io=numberRe.exec(to.slice(no,no+3));return io?(eo.m=0,eo.d=+io[0],no+io[0].length):-1}function parseHour24(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.H=+io[0],no+io[0].length):-1}function parseMinutes(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.M=+io[0],no+io[0].length):-1}function parseSeconds(eo,to,no){var io=numberRe.exec(to.slice(no,no+2));return io?(eo.S=+io[0],no+io[0].length):-1}function parseMilliseconds(eo,to,no){var io=numberRe.exec(to.slice(no,no+3));return io?(eo.L=+io[0],no+io[0].length):-1}function parseMicroseconds(eo,to,no){var io=numberRe.exec(to.slice(no,no+6));return io?(eo.L=Math.floor(io[0]/1e3),no+io[0].length):-1}function parseLiteralPercent(eo,to,no){var io=percentRe.exec(to.slice(no,no+1));return io?no+io[0].length:-1}function parseUnixTimestamp(eo,to,no){var io=numberRe.exec(to.slice(no));return io?(eo.Q=+io[0],no+io[0].length):-1}function parseUnixTimestampSeconds(eo,to,no){var io=numberRe.exec(to.slice(no));return io?(eo.s=+io[0],no+io[0].length):-1}function formatDayOfMonth(eo,to){return pad$1(eo.getDate(),to,2)}function formatHour24(eo,to){return pad$1(eo.getHours(),to,2)}function formatHour12(eo,to){return pad$1(eo.getHours()%12||12,to,2)}function formatDayOfYear(eo,to){return pad$1(1+timeDay.count(timeYear(eo),eo),to,3)}function formatMilliseconds(eo,to){return pad$1(eo.getMilliseconds(),to,3)}function formatMicroseconds(eo,to){return formatMilliseconds(eo,to)+"000"}function formatMonthNumber(eo,to){return pad$1(eo.getMonth()+1,to,2)}function formatMinutes(eo,to){return pad$1(eo.getMinutes(),to,2)}function formatSeconds(eo,to){return pad$1(eo.getSeconds(),to,2)}function formatWeekdayNumberMonday(eo){var to=eo.getDay();return to===0?7:to}function formatWeekNumberSunday(eo,to){return pad$1(timeSunday.count(timeYear(eo)-1,eo),to,2)}function dISO(eo){var to=eo.getDay();return to>=4||to===0?timeThursday(eo):timeThursday.ceil(eo)}function formatWeekNumberISO(eo,to){return eo=dISO(eo),pad$1(timeThursday.count(timeYear(eo),eo)+(timeYear(eo).getDay()===4),to,2)}function formatWeekdayNumberSunday(eo){return eo.getDay()}function formatWeekNumberMonday(eo,to){return pad$1(timeMonday.count(timeYear(eo)-1,eo),to,2)}function formatYear(eo,to){return pad$1(eo.getFullYear()%100,to,2)}function formatYearISO(eo,to){return eo=dISO(eo),pad$1(eo.getFullYear()%100,to,2)}function formatFullYear(eo,to){return pad$1(eo.getFullYear()%1e4,to,4)}function formatFullYearISO(eo,to){var no=eo.getDay();return eo=no>=4||no===0?timeThursday(eo):timeThursday.ceil(eo),pad$1(eo.getFullYear()%1e4,to,4)}function formatZone(eo){var to=eo.getTimezoneOffset();return(to>0?"-":(to*=-1,"+"))+pad$1(to/60|0,"0",2)+pad$1(to%60,"0",2)}function formatUTCDayOfMonth(eo,to){return pad$1(eo.getUTCDate(),to,2)}function formatUTCHour24(eo,to){return pad$1(eo.getUTCHours(),to,2)}function formatUTCHour12(eo,to){return pad$1(eo.getUTCHours()%12||12,to,2)}function formatUTCDayOfYear(eo,to){return pad$1(1+utcDay.count(utcYear(eo),eo),to,3)}function formatUTCMilliseconds(eo,to){return pad$1(eo.getUTCMilliseconds(),to,3)}function formatUTCMicroseconds(eo,to){return formatUTCMilliseconds(eo,to)+"000"}function formatUTCMonthNumber(eo,to){return pad$1(eo.getUTCMonth()+1,to,2)}function formatUTCMinutes(eo,to){return pad$1(eo.getUTCMinutes(),to,2)}function formatUTCSeconds(eo,to){return pad$1(eo.getUTCSeconds(),to,2)}function formatUTCWeekdayNumberMonday(eo){var to=eo.getUTCDay();return to===0?7:to}function formatUTCWeekNumberSunday(eo,to){return pad$1(utcSunday.count(utcYear(eo)-1,eo),to,2)}function UTCdISO(eo){var to=eo.getUTCDay();return to>=4||to===0?utcThursday(eo):utcThursday.ceil(eo)}function formatUTCWeekNumberISO(eo,to){return eo=UTCdISO(eo),pad$1(utcThursday.count(utcYear(eo),eo)+(utcYear(eo).getUTCDay()===4),to,2)}function formatUTCWeekdayNumberSunday(eo){return eo.getUTCDay()}function formatUTCWeekNumberMonday(eo,to){return pad$1(utcMonday.count(utcYear(eo)-1,eo),to,2)}function formatUTCYear(eo,to){return pad$1(eo.getUTCFullYear()%100,to,2)}function formatUTCYearISO(eo,to){return eo=UTCdISO(eo),pad$1(eo.getUTCFullYear()%100,to,2)}function formatUTCFullYear(eo,to){return pad$1(eo.getUTCFullYear()%1e4,to,4)}function formatUTCFullYearISO(eo,to){var no=eo.getUTCDay();return eo=no>=4||no===0?utcThursday(eo):utcThursday.ceil(eo),pad$1(eo.getUTCFullYear()%1e4,to,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(eo){return+eo}function formatUnixTimestampSeconds(eo){return Math.floor(+eo/1e3)}var locale,timeFormat;defaultLocale({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function defaultLocale(eo){return locale=formatLocale(eo),timeFormat=locale.format,locale.parse,locale.utcFormat,locale.utcParse,locale}function date(eo){return new Date(eo)}function number$3(eo){return eo instanceof Date?+eo:+new Date(+eo)}function calendar(eo,to,no,io,so,ao,lo,uo,ho,go){var mo=continuous(),yo=mo.invert,So=mo.domain,_o=go(".%L"),ko=go(":%S"),Co=go("%I:%M"),$o=go("%I %p"),Ro=go("%a %d"),Oo=go("%b %d"),No=go("%B"),Mo=go("%Y");function Bo(Fo){return(ho(Fo)1?0:eo<-1?pi$1:Math.acos(eo)}function asin(eo){return eo>=1?halfPi:eo<=-1?-halfPi:Math.asin(eo)}function withPath(eo){let to=3;return eo.digits=function(no){if(!arguments.length)return to;if(no==null)to=null;else{const io=Math.floor(no);if(!(io>=0))throw new RangeError(`invalid digits: ${no}`);to=io}return eo},()=>new Path$1(to)}function arcInnerRadius(eo){return eo.innerRadius}function arcOuterRadius(eo){return eo.outerRadius}function arcStartAngle(eo){return eo.startAngle}function arcEndAngle(eo){return eo.endAngle}function arcPadAngle(eo){return eo&&eo.padAngle}function intersect$1(eo,to,no,io,so,ao,lo,uo){var ho=no-eo,go=io-to,mo=lo-so,yo=uo-ao,So=yo*ho-mo*go;if(!(So*SoJo*Jo+ps*ps&&(Go=Uo,Do=Ho),{cx:Go,cy:Do,x01:-mo,y01:-yo,x11:Go*(so/Bo-1),y11:Do*(so/Bo-1)}}function arc(){var eo=arcInnerRadius,to=arcOuterRadius,no=constant$3(0),io=null,so=arcStartAngle,ao=arcEndAngle,lo=arcPadAngle,uo=null,ho=withPath(go);function go(){var mo,yo,So=+eo.apply(this,arguments),_o=+to.apply(this,arguments),ko=so.apply(this,arguments)-halfPi,Co=ao.apply(this,arguments)-halfPi,$o=abs$1(Co-ko),Ro=Co>ko;if(uo||(uo=mo=ho()),_oepsilon$1))uo.moveTo(0,0);else if($o>tau$1-epsilon$1)uo.moveTo(_o*cos$1(ko),_o*sin$1(ko)),uo.arc(0,0,_o,ko,Co,!Ro),So>epsilon$1&&(uo.moveTo(So*cos$1(Co),So*sin$1(Co)),uo.arc(0,0,So,Co,ko,Ro));else{var Oo=ko,No=Co,Mo=ko,Bo=Co,Fo=$o,Lo=$o,Go=lo.apply(this,arguments)/2,Do=Go>epsilon$1&&(io?+io.apply(this,arguments):sqrt$1(So*So+_o*_o)),Uo=min$3(abs$1(_o-So)/2,+no.apply(this,arguments)),Ho=Uo,Yo=Uo,qo,Jo;if(Do>epsilon$1){var ps=asin(Do/So*sin$1(Go)),Qo=asin(Do/_o*sin$1(Go));(Fo-=ps*2)>epsilon$1?(ps*=Ro?1:-1,Mo+=ps,Bo-=ps):(Fo=0,Mo=Bo=(ko+Co)/2),(Lo-=Qo*2)>epsilon$1?(Qo*=Ro?1:-1,Oo+=Qo,No-=Qo):(Lo=0,Oo=No=(ko+Co)/2)}var hs=_o*cos$1(Oo),gs=_o*sin$1(Oo),ys=So*cos$1(Bo),vs=So*sin$1(Bo);if(Uo>epsilon$1){var ks=_o*cos$1(No),Os=_o*sin$1(No),Ts=So*cos$1(Mo),Xs=So*sin$1(Mo),Ws;if($oepsilon$1?Yo>epsilon$1?(qo=cornerTangents(Ts,Xs,hs,gs,_o,Yo,Ro),Jo=cornerTangents(ks,Os,ys,vs,_o,Yo,Ro),uo.moveTo(qo.cx+qo.x01,qo.cy+qo.y01),Yoepsilon$1)||!(Fo>epsilon$1)?uo.lineTo(ys,vs):Ho>epsilon$1?(qo=cornerTangents(ys,vs,ks,Os,So,-Ho,Ro),Jo=cornerTangents(hs,gs,Ts,Xs,So,-Ho,Ro),uo.lineTo(qo.cx+qo.x01,qo.cy+qo.y01),Hoeo?1:to>=eo?0:NaN}function identity$2(eo){return eo}function pie$1(){var eo=identity$2,to=descending$1,no=null,io=constant$3(0),so=constant$3(tau$1),ao=constant$3(0);function lo(uo){var ho,go=(uo=array$1(uo)).length,mo,yo,So=0,_o=new Array(go),ko=new Array(go),Co=+io.apply(this,arguments),$o=Math.min(tau$1,Math.max(-tau$1,so.apply(this,arguments)-Co)),Ro,Oo=Math.min(Math.abs($o)/go,ao.apply(this,arguments)),No=Oo*($o<0?-1:1),Mo;for(ho=0;ho0&&(So+=Mo);for(to!=null?_o.sort(function(Bo,Fo){return to(ko[Bo],ko[Fo])}):no!=null&&_o.sort(function(Bo,Fo){return no(uo[Bo],uo[Fo])}),ho=0,yo=So?($o-go*No)/So:0;ho0?Mo*yo:0)+No,ko[mo]={data:uo[mo],index:ho,value:Mo,startAngle:Co,endAngle:Ro,padAngle:Oo};return ko}return lo.value=function(uo){return arguments.length?(eo=typeof uo=="function"?uo:constant$3(+uo),lo):eo},lo.sortValues=function(uo){return arguments.length?(to=uo,no=null,lo):to},lo.sort=function(uo){return arguments.length?(no=uo,to=null,lo):no},lo.startAngle=function(uo){return arguments.length?(io=typeof uo=="function"?uo:constant$3(+uo),lo):io},lo.endAngle=function(uo){return arguments.length?(so=typeof uo=="function"?uo:constant$3(+uo),lo):so},lo.padAngle=function(uo){return arguments.length?(ao=typeof uo=="function"?uo:constant$3(+uo),lo):ao},lo}class Bump{constructor(to,no){this._context=to,this._x=no}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(to,no){switch(to=+to,no=+no,this._point){case 0:{this._point=1,this._line?this._context.lineTo(to,no):this._context.moveTo(to,no);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+to)/2,this._y0,this._x0,no,to,no):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+no)/2,to,this._y0,to,no);break}}this._x0=to,this._y0=no}}function bumpX(eo){return new Bump(eo,!0)}function bumpY(eo){return new Bump(eo,!1)}function noop$3(){}function point$6(eo,to,no){eo._context.bezierCurveTo((2*eo._x0+eo._x1)/3,(2*eo._y0+eo._y1)/3,(eo._x0+2*eo._x1)/3,(eo._y0+2*eo._y1)/3,(eo._x0+4*eo._x1+to)/6,(eo._y0+4*eo._y1+no)/6)}function Basis(eo){this._context=eo}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$6(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1,this._line?this._context.lineTo(eo,to):this._context.moveTo(eo,to);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$6(this,eo,to);break}this._x0=this._x1,this._x1=eo,this._y0=this._y1,this._y1=to}};function curveBasis(eo){return new Basis(eo)}function BasisClosed(eo){this._context=eo}BasisClosed.prototype={areaStart:noop$3,areaEnd:noop$3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1,this._x2=eo,this._y2=to;break;case 1:this._point=2,this._x3=eo,this._y3=to;break;case 2:this._point=3,this._x4=eo,this._y4=to,this._context.moveTo((this._x0+4*this._x1+eo)/6,(this._y0+4*this._y1+to)/6);break;default:point$6(this,eo,to);break}this._x0=this._x1,this._x1=eo,this._y0=this._y1,this._y1=to}};function curveBasisClosed(eo){return new BasisClosed(eo)}function BasisOpen(eo){this._context=eo}BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var no=(this._x0+4*this._x1+eo)/6,io=(this._y0+4*this._y1+to)/6;this._line?this._context.lineTo(no,io):this._context.moveTo(no,io);break;case 3:this._point=4;default:point$6(this,eo,to);break}this._x0=this._x1,this._x1=eo,this._y0=this._y1,this._y1=to}};function curveBasisOpen(eo){return new BasisOpen(eo)}function Bundle(eo,to){this._basis=new Basis(eo),this._beta=to}Bundle.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var eo=this._x,to=this._y,no=eo.length-1;if(no>0)for(var io=eo[0],so=to[0],ao=eo[no]-io,lo=to[no]-so,uo=-1,ho;++uo<=no;)ho=uo/no,this._basis.point(this._beta*eo[uo]+(1-this._beta)*(io+ho*ao),this._beta*to[uo]+(1-this._beta)*(so+ho*lo));this._x=this._y=null,this._basis.lineEnd()},point:function(eo,to){this._x.push(+eo),this._y.push(+to)}};const curveBundle=function eo(to){function no(io){return to===1?new Basis(io):new Bundle(io,to)}return no.beta=function(io){return eo(+io)},no}(.85);function point$5(eo,to,no){eo._context.bezierCurveTo(eo._x1+eo._k*(eo._x2-eo._x0),eo._y1+eo._k*(eo._y2-eo._y0),eo._x2+eo._k*(eo._x1-to),eo._y2+eo._k*(eo._y1-no),eo._x2,eo._y2)}function Cardinal(eo,to){this._context=eo,this._k=(1-to)/6}Cardinal.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:point$5(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1,this._line?this._context.lineTo(eo,to):this._context.moveTo(eo,to);break;case 1:this._point=2,this._x1=eo,this._y1=to;break;case 2:this._point=3;default:point$5(this,eo,to);break}this._x0=this._x1,this._x1=this._x2,this._x2=eo,this._y0=this._y1,this._y1=this._y2,this._y2=to}};const curveCardinal=function eo(to){function no(io){return new Cardinal(io,to)}return no.tension=function(io){return eo(+io)},no}(0);function CardinalClosed(eo,to){this._context=eo,this._k=(1-to)/6}CardinalClosed.prototype={areaStart:noop$3,areaEnd:noop$3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1,this._x3=eo,this._y3=to;break;case 1:this._point=2,this._context.moveTo(this._x4=eo,this._y4=to);break;case 2:this._point=3,this._x5=eo,this._y5=to;break;default:point$5(this,eo,to);break}this._x0=this._x1,this._x1=this._x2,this._x2=eo,this._y0=this._y1,this._y1=this._y2,this._y2=to}};const curveCardinalClosed=function eo(to){function no(io){return new CardinalClosed(io,to)}return no.tension=function(io){return eo(+io)},no}(0);function CardinalOpen(eo,to){this._context=eo,this._k=(1-to)/6}CardinalOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$5(this,eo,to);break}this._x0=this._x1,this._x1=this._x2,this._x2=eo,this._y0=this._y1,this._y1=this._y2,this._y2=to}};const curveCardinalOpen=function eo(to){function no(io){return new CardinalOpen(io,to)}return no.tension=function(io){return eo(+io)},no}(0);function point$4(eo,to,no){var io=eo._x1,so=eo._y1,ao=eo._x2,lo=eo._y2;if(eo._l01_a>epsilon$1){var uo=2*eo._l01_2a+3*eo._l01_a*eo._l12_a+eo._l12_2a,ho=3*eo._l01_a*(eo._l01_a+eo._l12_a);io=(io*uo-eo._x0*eo._l12_2a+eo._x2*eo._l01_2a)/ho,so=(so*uo-eo._y0*eo._l12_2a+eo._y2*eo._l01_2a)/ho}if(eo._l23_a>epsilon$1){var go=2*eo._l23_2a+3*eo._l23_a*eo._l12_a+eo._l12_2a,mo=3*eo._l23_a*(eo._l23_a+eo._l12_a);ao=(ao*go+eo._x1*eo._l23_2a-to*eo._l12_2a)/mo,lo=(lo*go+eo._y1*eo._l23_2a-no*eo._l12_2a)/mo}eo._context.bezierCurveTo(io,so,ao,lo,eo._x2,eo._y2)}function CatmullRom(eo,to){this._context=eo,this._alpha=to}CatmullRom.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){if(eo=+eo,to=+to,this._point){var no=this._x2-eo,io=this._y2-to;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(no*no+io*io,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(eo,to):this._context.moveTo(eo,to);break;case 1:this._point=2;break;case 2:this._point=3;default:point$4(this,eo,to);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=eo,this._y0=this._y1,this._y1=this._y2,this._y2=to}};const curveCatmullRom=function eo(to){function no(io){return to?new CatmullRom(io,to):new Cardinal(io,0)}return no.alpha=function(io){return eo(+io)},no}(.5);function CatmullRomClosed(eo,to){this._context=eo,this._alpha=to}CatmullRomClosed.prototype={areaStart:noop$3,areaEnd:noop$3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(eo,to){if(eo=+eo,to=+to,this._point){var no=this._x2-eo,io=this._y2-to;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(no*no+io*io,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=eo,this._y3=to;break;case 1:this._point=2,this._context.moveTo(this._x4=eo,this._y4=to);break;case 2:this._point=3,this._x5=eo,this._y5=to;break;default:point$4(this,eo,to);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=eo,this._y0=this._y1,this._y1=this._y2,this._y2=to}};const curveCatmullRomClosed=function eo(to){function no(io){return to?new CatmullRomClosed(io,to):new CardinalClosed(io,0)}return no.alpha=function(io){return eo(+io)},no}(.5);function CatmullRomOpen(eo,to){this._context=eo,this._alpha=to}CatmullRomOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){if(eo=+eo,to=+to,this._point){var no=this._x2-eo,io=this._y2-to;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(no*no+io*io,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$4(this,eo,to);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=eo,this._y0=this._y1,this._y1=this._y2,this._y2=to}};const curveCatmullRomOpen=function eo(to){function no(io){return to?new CatmullRomOpen(io,to):new CardinalOpen(io,0)}return no.alpha=function(io){return eo(+io)},no}(.5);function LinearClosed(eo){this._context=eo}LinearClosed.prototype={areaStart:noop$3,areaEnd:noop$3,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(eo,to){eo=+eo,to=+to,this._point?this._context.lineTo(eo,to):(this._point=1,this._context.moveTo(eo,to))}};function curveLinearClosed(eo){return new LinearClosed(eo)}function sign(eo){return eo<0?-1:1}function slope3(eo,to,no){var io=eo._x1-eo._x0,so=to-eo._x1,ao=(eo._y1-eo._y0)/(io||so<0&&-0),lo=(no-eo._y1)/(so||io<0&&-0),uo=(ao*so+lo*io)/(io+so);return(sign(ao)+sign(lo))*Math.min(Math.abs(ao),Math.abs(lo),.5*Math.abs(uo))||0}function slope2(eo,to){var no=eo._x1-eo._x0;return no?(3*(eo._y1-eo._y0)/no-to)/2:to}function point$3(eo,to,no){var io=eo._x0,so=eo._y0,ao=eo._x1,lo=eo._y1,uo=(ao-io)/3;eo._context.bezierCurveTo(io+uo,so+uo*to,ao-uo,lo-uo*no,ao,lo)}function MonotoneX(eo){this._context=eo}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$3(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(eo,to){var no=NaN;if(eo=+eo,to=+to,!(eo===this._x1&&to===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(eo,to):this._context.moveTo(eo,to);break;case 1:this._point=2;break;case 2:this._point=3,point$3(this,slope2(this,no=slope3(this,eo,to)),no);break;default:point$3(this,this._t0,no=slope3(this,eo,to));break}this._x0=this._x1,this._x1=eo,this._y0=this._y1,this._y1=to,this._t0=no}}};function MonotoneY(eo){this._context=new ReflectContext(eo)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(eo,to){MonotoneX.prototype.point.call(this,to,eo)};function ReflectContext(eo){this._context=eo}ReflectContext.prototype={moveTo:function(eo,to){this._context.moveTo(to,eo)},closePath:function(){this._context.closePath()},lineTo:function(eo,to){this._context.lineTo(to,eo)},bezierCurveTo:function(eo,to,no,io,so,ao){this._context.bezierCurveTo(to,eo,io,no,ao,so)}};function monotoneX(eo){return new MonotoneX(eo)}function monotoneY(eo){return new MonotoneY(eo)}function Natural(eo){this._context=eo}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var eo=this._x,to=this._y,no=eo.length;if(no)if(this._line?this._context.lineTo(eo[0],to[0]):this._context.moveTo(eo[0],to[0]),no===2)this._context.lineTo(eo[1],to[1]);else for(var io=controlPoints$1(eo),so=controlPoints$1(to),ao=0,lo=1;lo=0;--to)so[to]=(lo[to]-so[to+1])/ao[to];for(ao[no-1]=(eo[no]+so[no-1])/2,to=0;to=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(eo,to){switch(eo=+eo,to=+to,this._point){case 0:this._point=1,this._line?this._context.lineTo(eo,to):this._context.moveTo(eo,to);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,to),this._context.lineTo(eo,to);else{var no=this._x*(1-this._t)+eo*this._t;this._context.lineTo(no,this._y),this._context.lineTo(no,to)}break}}this._x=eo,this._y=to}};function curveStep(eo){return new Step(eo,.5)}function stepBefore(eo){return new Step(eo,0)}function stepAfter(eo){return new Step(eo,1)}function Transform(eo,to,no){this.k=eo,this.x=to,this.y=no}Transform.prototype={constructor:Transform,scale:function(eo){return eo===1?this:new Transform(this.k*eo,this.x,this.y)},translate:function(eo,to){return eo===0&to===0?this:new Transform(this.k,this.x+this.k*eo,this.y+this.k*to)},apply:function(eo){return[eo[0]*this.k+this.x,eo[1]*this.k+this.y]},applyX:function(eo){return eo*this.k+this.x},applyY:function(eo){return eo*this.k+this.y},invert:function(eo){return[(eo[0]-this.x)/this.k,(eo[1]-this.y)/this.k]},invertX:function(eo){return(eo-this.x)/this.k},invertY:function(eo){return(eo-this.y)/this.k},rescaleX:function(eo){return eo.copy().domain(eo.range().map(this.invertX,this).map(eo.invert,eo))},rescaleY:function(eo){return eo.copy().domain(eo.range().map(this.invertY,this).map(eo.invert,eo))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Transform.prototype;/*! @license DOMPurify 3.1.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.0/LICENSE */const{entries,setPrototypeOf,isFrozen,getPrototypeOf,getOwnPropertyDescriptor}=Object;let{freeze,seal,create}=Object,{apply:apply$2,construct}=typeof Reflect<"u"&&Reflect;freeze||(freeze=function(to){return to});seal||(seal=function(to){return to});apply$2||(apply$2=function(to,no,io){return to.apply(no,io)});construct||(construct=function(to,no){return new to(...no)});const arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush$1=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),objectHasOwnProperty=unapply(Object.prototype.hasOwnProperty),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(eo){return function(to){for(var no=arguments.length,io=new Array(no>1?no-1:0),so=1;so2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(eo,null);let io=to.length;for(;io--;){let so=to[io];if(typeof so=="string"){const ao=no(so);ao!==so&&(isFrozen(to)||(to[io]=ao),so=ao)}eo[so]=!0}return eo}function cleanArray(eo){for(let to=0;to/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),CUSTOM_ELEMENT=seal(/^[a-z][.\w]*(-[.\w]+)+$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME,CUSTOM_ELEMENT});const getGlobal=function eo(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function eo(to,no){if(typeof to!="object"||typeof to.createPolicy!="function")return null;let io=null;const so="data-tt-policy-suffix";no&&no.hasAttribute(so)&&(io=no.getAttribute(so));const ao="dompurify"+(io?"#"+io:"");try{return to.createPolicy(ao,{createHTML(lo){return lo},createScriptURL(lo){return lo}})}catch{return console.warn("TrustedTypes policy "+ao+" could not be created."),null}};function createDOMPurify(){let eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const to=Rl=>createDOMPurify(Rl);if(to.version="3.1.0",to.removed=[],!eo||!eo.document||eo.document.nodeType!==9)return to.isSupported=!1,to;let{document:no}=eo;const io=no,so=io.currentScript,{DocumentFragment:ao,HTMLTemplateElement:lo,Node:uo,Element:ho,NodeFilter:go,NamedNodeMap:mo=eo.NamedNodeMap||eo.MozNamedAttrMap,HTMLFormElement:yo,DOMParser:So,trustedTypes:_o}=eo,ko=ho.prototype,Co=lookupGetter(ko,"cloneNode"),$o=lookupGetter(ko,"nextSibling"),Ro=lookupGetter(ko,"childNodes"),Oo=lookupGetter(ko,"parentNode");if(typeof lo=="function"){const Rl=no.createElement("template");Rl.content&&Rl.content.ownerDocument&&(no=Rl.content.ownerDocument)}let No,Mo="";const{implementation:Bo,createNodeIterator:Fo,createDocumentFragment:Lo,getElementsByTagName:Go}=no,{importNode:Do}=io;let Uo={};to.isSupported=typeof entries=="function"&&typeof Oo=="function"&&Bo&&Bo.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ho,ERB_EXPR:Yo,TMPLIT_EXPR:qo,DATA_ATTR:Jo,ARIA_ATTR:ps,IS_SCRIPT_OR_DATA:Qo,ATTR_WHITESPACE:hs,CUSTOM_ELEMENT:gs}=EXPRESSIONS;let{IS_ALLOWED_URI:ys}=EXPRESSIONS,vs=null;const ks=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text$3]);let Os=null;const Ts=addToSet({},[...html,...svg$2,...mathMl,...xml]);let Xs=Object.seal(create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ws=null,Ps=null,qs=!0,ga=!0,Fs=!1,Js=!0,Vs=!1,El=!0,yl=!1,Gl=!1,Qs=!1,du=!1,Ol=!1,Fu=!1,ju=!0,F1=!1;const y1="user-content-";let r1=!0,$u=!1,Kl={},Is=null;const Ks=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Bs=null;const Ds=addToSet({},["audio","video","img","source","image","track"]);let Zs=null;const Cl=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ba="http://www.w3.org/1998/Math/MathML",fu="http://www.w3.org/2000/svg",Lu="http://www.w3.org/1999/xhtml";let e1=Lu,Gu=!1,w1=null;const Zu=addToSet({},[ba,fu,Lu],stringToString);let L1=null;const K1=["application/xhtml+xml","text/html"],yp="text/html";let wp=null,j0=null;const h0=no.createElement("form"),cp=function(Sl){return Sl instanceof RegExp||Sl instanceof Function},k0=function(){let Sl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(j0&&j0===Sl)){if((!Sl||typeof Sl!="object")&&(Sl={}),Sl=clone$3(Sl),L1=K1.indexOf(Sl.PARSER_MEDIA_TYPE)===-1?yp:Sl.PARSER_MEDIA_TYPE,wp=L1==="application/xhtml+xml"?stringToString:stringToLowerCase,vs=objectHasOwnProperty(Sl,"ALLOWED_TAGS")?addToSet({},Sl.ALLOWED_TAGS,wp):ks,Os=objectHasOwnProperty(Sl,"ALLOWED_ATTR")?addToSet({},Sl.ALLOWED_ATTR,wp):Ts,w1=objectHasOwnProperty(Sl,"ALLOWED_NAMESPACES")?addToSet({},Sl.ALLOWED_NAMESPACES,stringToString):Zu,Zs=objectHasOwnProperty(Sl,"ADD_URI_SAFE_ATTR")?addToSet(clone$3(Cl),Sl.ADD_URI_SAFE_ATTR,wp):Cl,Bs=objectHasOwnProperty(Sl,"ADD_DATA_URI_TAGS")?addToSet(clone$3(Ds),Sl.ADD_DATA_URI_TAGS,wp):Ds,Is=objectHasOwnProperty(Sl,"FORBID_CONTENTS")?addToSet({},Sl.FORBID_CONTENTS,wp):Ks,Ws=objectHasOwnProperty(Sl,"FORBID_TAGS")?addToSet({},Sl.FORBID_TAGS,wp):{},Ps=objectHasOwnProperty(Sl,"FORBID_ATTR")?addToSet({},Sl.FORBID_ATTR,wp):{},Kl=objectHasOwnProperty(Sl,"USE_PROFILES")?Sl.USE_PROFILES:!1,qs=Sl.ALLOW_ARIA_ATTR!==!1,ga=Sl.ALLOW_DATA_ATTR!==!1,Fs=Sl.ALLOW_UNKNOWN_PROTOCOLS||!1,Js=Sl.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Vs=Sl.SAFE_FOR_TEMPLATES||!1,El=Sl.SAFE_FOR_XML!==!1,yl=Sl.WHOLE_DOCUMENT||!1,du=Sl.RETURN_DOM||!1,Ol=Sl.RETURN_DOM_FRAGMENT||!1,Fu=Sl.RETURN_TRUSTED_TYPE||!1,Qs=Sl.FORCE_BODY||!1,ju=Sl.SANITIZE_DOM!==!1,F1=Sl.SANITIZE_NAMED_PROPS||!1,r1=Sl.KEEP_CONTENT!==!1,$u=Sl.IN_PLACE||!1,ys=Sl.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,e1=Sl.NAMESPACE||Lu,Xs=Sl.CUSTOM_ELEMENT_HANDLING||{},Sl.CUSTOM_ELEMENT_HANDLING&&cp(Sl.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Xs.tagNameCheck=Sl.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Sl.CUSTOM_ELEMENT_HANDLING&&cp(Sl.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Xs.attributeNameCheck=Sl.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Sl.CUSTOM_ELEMENT_HANDLING&&typeof Sl.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Xs.allowCustomizedBuiltInElements=Sl.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Vs&&(ga=!1),Ol&&(du=!0),Kl&&(vs=addToSet({},text$3),Os=[],Kl.html===!0&&(addToSet(vs,html$1),addToSet(Os,html)),Kl.svg===!0&&(addToSet(vs,svg$1),addToSet(Os,svg$2),addToSet(Os,xml)),Kl.svgFilters===!0&&(addToSet(vs,svgFilters),addToSet(Os,svg$2),addToSet(Os,xml)),Kl.mathMl===!0&&(addToSet(vs,mathMl$1),addToSet(Os,mathMl),addToSet(Os,xml))),Sl.ADD_TAGS&&(vs===ks&&(vs=clone$3(vs)),addToSet(vs,Sl.ADD_TAGS,wp)),Sl.ADD_ATTR&&(Os===Ts&&(Os=clone$3(Os)),addToSet(Os,Sl.ADD_ATTR,wp)),Sl.ADD_URI_SAFE_ATTR&&addToSet(Zs,Sl.ADD_URI_SAFE_ATTR,wp),Sl.FORBID_CONTENTS&&(Is===Ks&&(Is=clone$3(Is)),addToSet(Is,Sl.FORBID_CONTENTS,wp)),r1&&(vs["#text"]=!0),yl&&addToSet(vs,["html","head","body"]),vs.table&&(addToSet(vs,["tbody"]),delete Ws.tbody),Sl.TRUSTED_TYPES_POLICY){if(typeof Sl.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Sl.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');No=Sl.TRUSTED_TYPES_POLICY,Mo=No.createHTML("")}else No===void 0&&(No=_createTrustedTypesPolicy(_o,so)),No!==null&&typeof Mo=="string"&&(Mo=No.createHTML(""));freeze&&freeze(Sl),j0=Sl}},ap=addToSet({},["mi","mo","mn","ms","mtext"]),x0=addToSet({},["foreignobject","desc","title","annotation-xml"]),b0=addToSet({},["title","style","font","a","script"]),P1=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),c1=addToSet({},[...mathMl$1,...mathMlDisallowed]),V0=function(Sl){let eu=Oo(Sl);(!eu||!eu.tagName)&&(eu={namespaceURI:e1,tagName:"template"});const _c=stringToLowerCase(Sl.tagName),zu=stringToLowerCase(eu.tagName);return w1[Sl.namespaceURI]?Sl.namespaceURI===fu?eu.namespaceURI===Lu?_c==="svg":eu.namespaceURI===ba?_c==="svg"&&(zu==="annotation-xml"||ap[zu]):!!P1[_c]:Sl.namespaceURI===ba?eu.namespaceURI===Lu?_c==="math":eu.namespaceURI===fu?_c==="math"&&x0[zu]:!!c1[_c]:Sl.namespaceURI===Lu?eu.namespaceURI===fu&&!x0[zu]||eu.namespaceURI===ba&&!ap[zu]?!1:!c1[_c]&&(b0[_c]||!P1[_c]):!!(L1==="application/xhtml+xml"&&w1[Sl.namespaceURI]):!1},P0=function(Sl){arrayPush$1(to.removed,{element:Sl});try{Sl.parentNode.removeChild(Sl)}catch{Sl.remove()}},up=function(Sl,eu){try{arrayPush$1(to.removed,{attribute:eu.getAttributeNode(Sl),from:eu})}catch{arrayPush$1(to.removed,{attribute:null,from:eu})}if(eu.removeAttribute(Sl),Sl==="is"&&!Os[Sl])if(du||Ol)try{P0(eu)}catch{}else try{eu.setAttribute(Sl,"")}catch{}},Lp=function(Sl){let eu=null,_c=null;if(Qs)Sl=""+Sl;else{const K0=stringMatch(Sl,/^[\r\n\t ]+/);_c=K0&&K0[0]}L1==="application/xhtml+xml"&&e1===Lu&&(Sl=''+Sl+"");const zu=No?No.createHTML(Sl):Sl;if(e1===Lu)try{eu=new So().parseFromString(zu,L1)}catch{}if(!eu||!eu.documentElement){eu=Bo.createDocument(e1,"template",null);try{eu.documentElement.innerHTML=Gu?Mo:zu}catch{}}const N1=eu.body||eu.documentElement;return Sl&&_c&&N1.insertBefore(no.createTextNode(_c),N1.childNodes[0]||null),e1===Lu?Go.call(eu,yl?"html":"body")[0]:yl?eu.documentElement:N1},Mv=function(Sl){return Fo.call(Sl.ownerDocument||Sl,Sl,go.SHOW_ELEMENT|go.SHOW_COMMENT|go.SHOW_TEXT|go.SHOW_PROCESSING_INSTRUCTION|go.SHOW_CDATA_SECTION,null)},$v=function(Sl){return Sl instanceof yo&&(typeof Sl.nodeName!="string"||typeof Sl.textContent!="string"||typeof Sl.removeChild!="function"||!(Sl.attributes instanceof mo)||typeof Sl.removeAttribute!="function"||typeof Sl.setAttribute!="function"||typeof Sl.namespaceURI!="string"||typeof Sl.insertBefore!="function"||typeof Sl.hasChildNodes!="function")},Gv=function(Sl){return typeof uo=="function"&&Sl instanceof uo},C1=function(Sl,eu,_c){Uo[Sl]&&arrayForEach(Uo[Sl],zu=>{zu.call(to,eu,_c,j0)})},Ll=function(Sl){let eu=null;if(C1("beforeSanitizeElements",Sl,null),$v(Sl))return P0(Sl),!0;const _c=wp(Sl.nodeName);if(C1("uponSanitizeElement",Sl,{tagName:_c,allowedTags:vs}),Sl.hasChildNodes()&&!Gv(Sl.firstElementChild)&®ExpTest(/<[/\w]/g,Sl.innerHTML)&®ExpTest(/<[/\w]/g,Sl.textContent)||Sl.nodeType===7||El&&Sl.nodeType===8&®ExpTest(/<[/\w]/g,Sl.data))return P0(Sl),!0;if(!vs[_c]||Ws[_c]){if(!Ws[_c]&&_l(_c)&&(Xs.tagNameCheck instanceof RegExp&®ExpTest(Xs.tagNameCheck,_c)||Xs.tagNameCheck instanceof Function&&Xs.tagNameCheck(_c)))return!1;if(r1&&!Is[_c]){const zu=Oo(Sl)||Sl.parentNode,N1=Ro(Sl)||Sl.childNodes;if(N1&&zu){const K0=N1.length;for(let J0=K0-1;J0>=0;--J0)zu.insertBefore(Co(N1[J0],!0),$o(Sl))}}return P0(Sl),!0}return Sl instanceof ho&&!V0(Sl)||(_c==="noscript"||_c==="noembed"||_c==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,Sl.innerHTML)?(P0(Sl),!0):(Vs&&Sl.nodeType===3&&(eu=Sl.textContent,arrayForEach([Ho,Yo,qo],zu=>{eu=stringReplace(eu,zu," ")}),Sl.textContent!==eu&&(arrayPush$1(to.removed,{element:Sl.cloneNode()}),Sl.textContent=eu)),C1("afterSanitizeElements",Sl,null),!1)},Ul=function(Sl,eu,_c){if(ju&&(eu==="id"||eu==="name")&&(_c in no||_c in h0))return!1;if(!(ga&&!Ps[eu]&®ExpTest(Jo,eu))){if(!(qs&®ExpTest(ps,eu))){if(!Os[eu]||Ps[eu]){if(!(_l(Sl)&&(Xs.tagNameCheck instanceof RegExp&®ExpTest(Xs.tagNameCheck,Sl)||Xs.tagNameCheck instanceof Function&&Xs.tagNameCheck(Sl))&&(Xs.attributeNameCheck instanceof RegExp&®ExpTest(Xs.attributeNameCheck,eu)||Xs.attributeNameCheck instanceof Function&&Xs.attributeNameCheck(eu))||eu==="is"&&Xs.allowCustomizedBuiltInElements&&(Xs.tagNameCheck instanceof RegExp&®ExpTest(Xs.tagNameCheck,_c)||Xs.tagNameCheck instanceof Function&&Xs.tagNameCheck(_c))))return!1}else if(!Zs[eu]){if(!regExpTest(ys,stringReplace(_c,hs,""))){if(!((eu==="src"||eu==="xlink:href"||eu==="href")&&Sl!=="script"&&stringIndexOf(_c,"data:")===0&&Bs[Sl])){if(!(Fs&&!regExpTest(Qo,stringReplace(_c,hs,"")))){if(_c)return!1}}}}}}return!0},_l=function(Sl){return Sl!=="annotation-xml"&&stringMatch(Sl,gs)},$l=function(Sl){C1("beforeSanitizeAttributes",Sl,null);const{attributes:eu}=Sl;if(!eu)return;const _c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Os};let zu=eu.length;for(;zu--;){const N1=eu[zu],{name:K0,namespaceURI:J0,value:S1}=N1,O1=wp(K0);let r0=K0==="value"?S1:stringTrim(S1);if(_c.attrName=O1,_c.attrValue=r0,_c.keepAttr=!0,_c.forceKeepAttr=void 0,C1("uponSanitizeAttribute",Sl,_c),r0=_c.attrValue,_c.forceKeepAttr||(up(K0,Sl),!_c.keepAttr))continue;if(!Js&®ExpTest(/\/>/i,r0)){up(K0,Sl);continue}Vs&&arrayForEach([Ho,Yo,qo],R0=>{r0=stringReplace(r0,R0," ")});const I1=wp(Sl.nodeName);if(Ul(I1,O1,r0)){if(F1&&(O1==="id"||O1==="name")&&(up(K0,Sl),r0=y1+r0),No&&typeof _o=="object"&&typeof _o.getAttributeType=="function"&&!J0)switch(_o.getAttributeType(I1,O1)){case"TrustedHTML":{r0=No.createHTML(r0);break}case"TrustedScriptURL":{r0=No.createScriptURL(r0);break}}try{J0?Sl.setAttributeNS(J0,K0,r0):Sl.setAttribute(K0,r0),arrayPop(to.removed)}catch{}}}C1("afterSanitizeAttributes",Sl,null)},Us=function Rl(Sl){let eu=null;const _c=Mv(Sl);for(C1("beforeSanitizeShadowDOM",Sl,null);eu=_c.nextNode();)C1("uponSanitizeShadowNode",eu,null),!Ll(eu)&&(eu.content instanceof ao&&Rl(eu.content),$l(eu));C1("afterSanitizeShadowDOM",Sl,null)};return to.sanitize=function(Rl){let Sl=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},eu=null,_c=null,zu=null,N1=null;if(Gu=!Rl,Gu&&(Rl=""),typeof Rl!="string"&&!Gv(Rl))if(typeof Rl.toString=="function"){if(Rl=Rl.toString(),typeof Rl!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!to.isSupported)return Rl;if(Gl||k0(Sl),to.removed=[],typeof Rl=="string"&&($u=!1),$u){if(Rl.nodeName){const S1=wp(Rl.nodeName);if(!vs[S1]||Ws[S1])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Rl instanceof uo)eu=Lp(""),_c=eu.ownerDocument.importNode(Rl,!0),_c.nodeType===1&&_c.nodeName==="BODY"||_c.nodeName==="HTML"?eu=_c:eu.appendChild(_c);else{if(!du&&!Vs&&!yl&&Rl.indexOf("<")===-1)return No&&Fu?No.createHTML(Rl):Rl;if(eu=Lp(Rl),!eu)return du?null:Fu?Mo:""}eu&&Qs&&P0(eu.firstChild);const K0=Mv($u?Rl:eu);for(;zu=K0.nextNode();)Ll(zu)||(zu.content instanceof ao&&Us(zu.content),$l(zu));if($u)return Rl;if(du){if(Ol)for(N1=Lo.call(eu.ownerDocument);eu.firstChild;)N1.appendChild(eu.firstChild);else N1=eu;return(Os.shadowroot||Os.shadowrootmode)&&(N1=Do.call(io,N1,!0)),N1}let J0=yl?eu.outerHTML:eu.innerHTML;return yl&&vs["!doctype"]&&eu.ownerDocument&&eu.ownerDocument.doctype&&eu.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,eu.ownerDocument.doctype.name)&&(J0=" +`+J0),Vs&&arrayForEach([Ho,Yo,qo],S1=>{J0=stringReplace(J0,S1," ")}),No&&Fu?No.createHTML(J0):J0},to.setConfig=function(){let Rl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};k0(Rl),Gl=!0},to.clearConfig=function(){j0=null,Gl=!1},to.isValidAttribute=function(Rl,Sl,eu){j0||k0({});const _c=wp(Rl),zu=wp(Sl);return Ul(_c,zu,eu)},to.addHook=function(Rl,Sl){typeof Sl=="function"&&(Uo[Rl]=Uo[Rl]||[],arrayPush$1(Uo[Rl],Sl))},to.removeHook=function(Rl){if(Uo[Rl])return arrayPop(Uo[Rl])},to.removeHooks=function(Rl){Uo[Rl]&&(Uo[Rl]=[])},to.removeAllHooks=function(){Uo={}},to}var purify=createDOMPurify();const Channel={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:eo=>eo>=255?255:eo<0?0:eo,g:eo=>eo>=255?255:eo<0?0:eo,b:eo=>eo>=255?255:eo<0?0:eo,h:eo=>eo%360,s:eo=>eo>=100?100:eo<0?0:eo,l:eo=>eo>=100?100:eo<0?0:eo,a:eo=>eo>=1?1:eo<0?0:eo},toLinear:eo=>{const to=eo/255;return eo>.03928?Math.pow((to+.055)/1.055,2.4):to/12.92},hue2rgb:(eo,to,no)=>(no<0&&(no+=1),no>1&&(no-=1),no<1/6?eo+(to-eo)*6*no:no<1/2?to:no<2/3?eo+(to-eo)*(2/3-no)*6:eo),hsl2rgb:({h:eo,s:to,l:no},io)=>{if(!to)return no*2.55;eo/=360,to/=100,no/=100;const so=no<.5?no*(1+to):no+to-no*to,ao=2*no-so;switch(io){case"r":return Channel.hue2rgb(ao,so,eo+1/3)*255;case"g":return Channel.hue2rgb(ao,so,eo)*255;case"b":return Channel.hue2rgb(ao,so,eo-1/3)*255}},rgb2hsl:({r:eo,g:to,b:no},io)=>{eo/=255,to/=255,no/=255;const so=Math.max(eo,to,no),ao=Math.min(eo,to,no),lo=(so+ao)/2;if(io==="l")return lo*100;if(so===ao)return 0;const uo=so-ao,ho=lo>.5?uo/(2-so-ao):uo/(so+ao);if(io==="s")return ho*100;switch(so){case eo:return((to-no)/uo+(toto>no?Math.min(to,Math.max(no,eo)):Math.min(no,Math.max(to,eo)),round:eo=>Math.round(eo*1e10)/1e10},lang=Lang,Unit={dec2hex:eo=>{const to=Math.round(eo).toString(16);return to.length>1?to:`0${to}`}},unit=Unit,Utils={channel:channel$2,lang,unit},_=Utils,DEC2HEX={};for(let eo=0;eo<=255;eo++)DEC2HEX[eo]=_.unit.dec2hex(eo);const TYPE={ALL:0,RGB:1,HSL:2};let Type$2=class{constructor(){this.type=TYPE.ALL}get(){return this.type}set(to){if(this.type&&this.type!==to)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=to}reset(){this.type=TYPE.ALL}is(to){return this.type===to}};const Type$3=Type$2;class Channels{constructor(to,no){this.color=no,this.changed=!1,this.data=to,this.type=new Type$3}set(to,no){return this.color=no,this.changed=!1,this.data=to,this.type.type=TYPE.ALL,this}_ensureHSL(){const to=this.data,{h:no,s:io,l:so}=to;no===void 0&&(to.h=_.channel.rgb2hsl(to,"h")),io===void 0&&(to.s=_.channel.rgb2hsl(to,"s")),so===void 0&&(to.l=_.channel.rgb2hsl(to,"l"))}_ensureRGB(){const to=this.data,{r:no,g:io,b:so}=to;no===void 0&&(to.r=_.channel.hsl2rgb(to,"r")),io===void 0&&(to.g=_.channel.hsl2rgb(to,"g")),so===void 0&&(to.b=_.channel.hsl2rgb(to,"b"))}get r(){const to=this.data,no=to.r;return!this.type.is(TYPE.HSL)&&no!==void 0?no:(this._ensureHSL(),_.channel.hsl2rgb(to,"r"))}get g(){const to=this.data,no=to.g;return!this.type.is(TYPE.HSL)&&no!==void 0?no:(this._ensureHSL(),_.channel.hsl2rgb(to,"g"))}get b(){const to=this.data,no=to.b;return!this.type.is(TYPE.HSL)&&no!==void 0?no:(this._ensureHSL(),_.channel.hsl2rgb(to,"b"))}get h(){const to=this.data,no=to.h;return!this.type.is(TYPE.RGB)&&no!==void 0?no:(this._ensureRGB(),_.channel.rgb2hsl(to,"h"))}get s(){const to=this.data,no=to.s;return!this.type.is(TYPE.RGB)&&no!==void 0?no:(this._ensureRGB(),_.channel.rgb2hsl(to,"s"))}get l(){const to=this.data,no=to.l;return!this.type.is(TYPE.RGB)&&no!==void 0?no:(this._ensureRGB(),_.channel.rgb2hsl(to,"l"))}get a(){return this.data.a}set r(to){this.type.set(TYPE.RGB),this.changed=!0,this.data.r=to}set g(to){this.type.set(TYPE.RGB),this.changed=!0,this.data.g=to}set b(to){this.type.set(TYPE.RGB),this.changed=!0,this.data.b=to}set h(to){this.type.set(TYPE.HSL),this.changed=!0,this.data.h=to}set s(to){this.type.set(TYPE.HSL),this.changed=!0,this.data.s=to}set l(to){this.type.set(TYPE.HSL),this.changed=!0,this.data.l=to}set a(to){this.changed=!0,this.data.a=to}}const Channels$1=Channels,channels=new Channels$1({r:0,g:0,b:0,a:0},"transparent"),ChannelsReusable=channels,Hex={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:eo=>{if(eo.charCodeAt(0)!==35)return;const to=eo.match(Hex.re);if(!to)return;const no=to[1],io=parseInt(no,16),so=no.length,ao=so%4===0,lo=so>4,uo=lo?1:17,ho=lo?8:4,go=ao?0:-1,mo=lo?255:15;return ChannelsReusable.set({r:(io>>ho*(go+3)&mo)*uo,g:(io>>ho*(go+2)&mo)*uo,b:(io>>ho*(go+1)&mo)*uo,a:ao?(io&mo)*uo/255:1},eo)},stringify:eo=>{const{r:to,g:no,b:io,a:so}=eo;return so<1?`#${DEC2HEX[Math.round(to)]}${DEC2HEX[Math.round(no)]}${DEC2HEX[Math.round(io)]}${DEC2HEX[Math.round(so*255)]}`:`#${DEC2HEX[Math.round(to)]}${DEC2HEX[Math.round(no)]}${DEC2HEX[Math.round(io)]}`}},Hex$1=Hex,HSL={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:eo=>{const to=eo.match(HSL.hueRe);if(to){const[,no,io]=to;switch(io){case"grad":return _.channel.clamp.h(parseFloat(no)*.9);case"rad":return _.channel.clamp.h(parseFloat(no)*180/Math.PI);case"turn":return _.channel.clamp.h(parseFloat(no)*360)}}return _.channel.clamp.h(parseFloat(eo))},parse:eo=>{const to=eo.charCodeAt(0);if(to!==104&&to!==72)return;const no=eo.match(HSL.re);if(!no)return;const[,io,so,ao,lo,uo]=no;return ChannelsReusable.set({h:HSL._hue2deg(io),s:_.channel.clamp.s(parseFloat(so)),l:_.channel.clamp.l(parseFloat(ao)),a:lo?_.channel.clamp.a(uo?parseFloat(lo)/100:parseFloat(lo)):1},eo)},stringify:eo=>{const{h:to,s:no,l:io,a:so}=eo;return so<1?`hsla(${_.lang.round(to)}, ${_.lang.round(no)}%, ${_.lang.round(io)}%, ${so})`:`hsl(${_.lang.round(to)}, ${_.lang.round(no)}%, ${_.lang.round(io)}%)`}},HSL$1=HSL,Keyword={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:eo=>{eo=eo.toLowerCase();const to=Keyword.colors[eo];if(to)return Hex$1.parse(to)},stringify:eo=>{const to=Hex$1.stringify(eo);for(const no in Keyword.colors)if(Keyword.colors[no]===to)return no}},Keyword$1=Keyword,RGB={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:eo=>{const to=eo.charCodeAt(0);if(to!==114&&to!==82)return;const no=eo.match(RGB.re);if(!no)return;const[,io,so,ao,lo,uo,ho,go,mo]=no;return ChannelsReusable.set({r:_.channel.clamp.r(so?parseFloat(io)*2.55:parseFloat(io)),g:_.channel.clamp.g(lo?parseFloat(ao)*2.55:parseFloat(ao)),b:_.channel.clamp.b(ho?parseFloat(uo)*2.55:parseFloat(uo)),a:go?_.channel.clamp.a(mo?parseFloat(go)/100:parseFloat(go)):1},eo)},stringify:eo=>{const{r:to,g:no,b:io,a:so}=eo;return so<1?`rgba(${_.lang.round(to)}, ${_.lang.round(no)}, ${_.lang.round(io)}, ${_.lang.round(so)})`:`rgb(${_.lang.round(to)}, ${_.lang.round(no)}, ${_.lang.round(io)})`}},RGB$1=RGB,Color={format:{keyword:Keyword$1,hex:Hex$1,rgb:RGB$1,rgba:RGB$1,hsl:HSL$1,hsla:HSL$1},parse:eo=>{if(typeof eo!="string")return eo;const to=Hex$1.parse(eo)||RGB$1.parse(eo)||HSL$1.parse(eo)||Keyword$1.parse(eo);if(to)return to;throw new Error(`Unsupported color format: "${eo}"`)},stringify:eo=>!eo.changed&&eo.color?eo.color:eo.type.is(TYPE.HSL)||eo.data.r===void 0?HSL$1.stringify(eo):eo.a<1||!Number.isInteger(eo.r)||!Number.isInteger(eo.g)||!Number.isInteger(eo.b)?RGB$1.stringify(eo):Hex$1.stringify(eo)},Color$1=Color,change=(eo,to)=>{const no=Color$1.parse(eo);for(const io in to)no[io]=_.channel.clamp[io](to[io]);return Color$1.stringify(no)},change$1=change,rgba$1=(eo,to,no=0,io=1)=>{if(typeof eo!="number")return change$1(eo,{a:to});const so=ChannelsReusable.set({r:_.channel.clamp.r(eo),g:_.channel.clamp.g(to),b:_.channel.clamp.b(no),a:_.channel.clamp.a(io)});return Color$1.stringify(so)},rgba$2=rgba$1,channel=(eo,to)=>_.lang.round(Color$1.parse(eo)[to]),channel$1=channel,luminance=eo=>{const{r:to,g:no,b:io}=Color$1.parse(eo),so=.2126*_.channel.toLinear(to)+.7152*_.channel.toLinear(no)+.0722*_.channel.toLinear(io);return _.lang.round(so)},luminance$1=luminance,isLight=eo=>luminance$1(eo)>=.5,isLight$1=isLight,isDark=eo=>!isLight$1(eo),isDark$1=isDark,adjustChannel=(eo,to,no)=>{const io=Color$1.parse(eo),so=io[to],ao=_.channel.clamp[to](so+no);return so!==ao&&(io[to]=ao),Color$1.stringify(io)},adjustChannel$1=adjustChannel,lighten=(eo,to)=>adjustChannel$1(eo,"l",to),lighten$1=lighten,darken=(eo,to)=>adjustChannel$1(eo,"l",-to),darken$1=darken,adjust$1=(eo,to)=>{const no=Color$1.parse(eo),io={};for(const so in to)to[so]&&(io[so]=no[so]+to[so]);return change$1(eo,io)},adjust$2=adjust$1,mix=(eo,to,no=50)=>{const{r:io,g:so,b:ao,a:lo}=Color$1.parse(eo),{r:uo,g:ho,b:go,a:mo}=Color$1.parse(to),yo=no/100,So=yo*2-1,_o=lo-mo,Co=((So*_o===-1?So:(So+_o)/(1+So*_o))+1)/2,$o=1-Co,Ro=io*Co+uo*$o,Oo=so*Co+ho*$o,No=ao*Co+go*$o,Mo=lo*yo+mo*(1-yo);return rgba$2(Ro,Oo,No,Mo)},mix$1=mix,invert=(eo,to=100)=>{const no=Color$1.parse(eo);return no.r=255-no.r,no.g=255-no.g,no.b=255-no.b,mix$1(no,eo,to)},invert$1=invert;var freeGlobal$1=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$2=freeGlobal$1;var freeSelf$1=typeof self=="object"&&self&&self.Object===Object&&self,root$1=freeGlobal$2||freeSelf$1||Function("return this")();const root$2=root$1;var Symbol$2=root$2.Symbol;const Symbol$3=Symbol$2;var objectProto$o=Object.prototype,hasOwnProperty$l=objectProto$o.hasOwnProperty,nativeObjectToString$3=objectProto$o.toString,symToStringTag$3=Symbol$3?Symbol$3.toStringTag:void 0;function getRawTag$1(eo){var to=hasOwnProperty$l.call(eo,symToStringTag$3),no=eo[symToStringTag$3];try{eo[symToStringTag$3]=void 0;var io=!0}catch{}var so=nativeObjectToString$3.call(eo);return io&&(to?eo[symToStringTag$3]=no:delete eo[symToStringTag$3]),so}var objectProto$n=Object.prototype,nativeObjectToString$2=objectProto$n.toString;function objectToString$1(eo){return nativeObjectToString$2.call(eo)}var nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$1(eo){return eo==null?eo===void 0?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(eo)?getRawTag$1(eo):objectToString$1(eo)}function isObject$2(eo){var to=typeof eo;return eo!=null&&(to=="object"||to=="function")}var asyncTag$1="[object AsyncFunction]",funcTag$3="[object Function]",genTag$2="[object GeneratorFunction]",proxyTag$1="[object Proxy]";function isFunction$1(eo){if(!isObject$2(eo))return!1;var to=baseGetTag$1(eo);return to==funcTag$3||to==genTag$2||to==asyncTag$1||to==proxyTag$1}var coreJsData$1=root$2["__core-js_shared__"];const coreJsData$2=coreJsData$1;var maskSrcKey$1=function(){var eo=/[^.]+$/.exec(coreJsData$2&&coreJsData$2.keys&&coreJsData$2.keys.IE_PROTO||"");return eo?"Symbol(src)_1."+eo:""}();function isMasked$1(eo){return!!maskSrcKey$1&&maskSrcKey$1 in eo}var funcProto$4=Function.prototype,funcToString$4=funcProto$4.toString;function toSource$1(eo){if(eo!=null){try{return funcToString$4.call(eo)}catch{}try{return eo+""}catch{}}return""}var reRegExpChar$1=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor$1=/^\[object .+?Constructor\]$/,funcProto$3=Function.prototype,objectProto$m=Object.prototype,funcToString$3=funcProto$3.toString,hasOwnProperty$k=objectProto$m.hasOwnProperty,reIsNative$1=RegExp("^"+funcToString$3.call(hasOwnProperty$k).replace(reRegExpChar$1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(eo){if(!isObject$2(eo)||isMasked$1(eo))return!1;var to=isFunction$1(eo)?reIsNative$1:reIsHostCtor$1;return to.test(toSource$1(eo))}function getValue$2(eo,to){return eo==null?void 0:eo[to]}function getNative$1(eo,to){var no=getValue$2(eo,to);return baseIsNative$1(no)?no:void 0}var nativeCreate$1=getNative$1(Object,"create");const nativeCreate$2=nativeCreate$1;function hashClear$1(){this.__data__=nativeCreate$2?nativeCreate$2(null):{},this.size=0}function hashDelete$1(eo){var to=this.has(eo)&&delete this.__data__[eo];return this.size-=to?1:0,to}var HASH_UNDEFINED$4="__lodash_hash_undefined__",objectProto$l=Object.prototype,hasOwnProperty$j=objectProto$l.hasOwnProperty;function hashGet$1(eo){var to=this.__data__;if(nativeCreate$2){var no=to[eo];return no===HASH_UNDEFINED$4?void 0:no}return hasOwnProperty$j.call(to,eo)?to[eo]:void 0}var objectProto$k=Object.prototype,hasOwnProperty$i=objectProto$k.hasOwnProperty;function hashHas$1(eo){var to=this.__data__;return nativeCreate$2?to[eo]!==void 0:hasOwnProperty$i.call(to,eo)}var HASH_UNDEFINED$3="__lodash_hash_undefined__";function hashSet$1(eo,to){var no=this.__data__;return this.size+=this.has(eo)?0:1,no[eo]=nativeCreate$2&&to===void 0?HASH_UNDEFINED$3:to,this}function Hash$1(eo){var to=-1,no=eo==null?0:eo.length;for(this.clear();++to-1}function listCacheSet$1(eo,to){var no=this.__data__,io=assocIndexOf$1(no,eo);return io<0?(++this.size,no.push([eo,to])):no[io][1]=to,this}function ListCache$1(eo){var to=-1,no=eo==null?0:eo.length;for(this.clear();++to-1&&eo%1==0&&eo<=MAX_SAFE_INTEGER$2}function isArrayLike(eo){return eo!=null&&isLength(eo.length)&&!isFunction$1(eo)}function isArrayLikeObject(eo){return isObjectLike$1(eo)&&isArrayLike(eo)}function stubFalse(){return!1}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,Buffer=moduleExports$1?root$2.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse;const isBuffer$1=isBuffer;var objectTag$4="[object Object]",funcProto$2=Function.prototype,objectProto$h=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$g=objectProto$h.hasOwnProperty,objectCtorString=funcToString$2.call(Object);function isPlainObject(eo){if(!isObjectLike$1(eo)||baseGetTag$1(eo)!=objectTag$4)return!1;var to=getPrototype$1(eo);if(to===null)return!0;var no=hasOwnProperty$g.call(to,"constructor")&&to.constructor;return typeof no=="function"&&no instanceof no&&funcToString$2.call(no)==objectCtorString}var argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$2="[object Function]",mapTag$6="[object Map]",numberTag$3="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$2]=typedArrayTags[mapTag$6]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$6]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(eo){return isObjectLike$1(eo)&&isLength(eo.length)&&!!typedArrayTags[baseGetTag$1(eo)]}function baseUnary(eo){return function(to){return eo(to)}}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal$2.process,nodeUtil=function(){try{var eo=freeModule&&freeModule.require&&freeModule.require("util").types;return eo||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();const nodeUtil$1=nodeUtil;var nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;const isTypedArray$1=isTypedArray;function safeGet(eo,to){if(!(to==="constructor"&&typeof eo[to]=="function")&&to!="__proto__")return eo[to]}var objectProto$g=Object.prototype,hasOwnProperty$f=objectProto$g.hasOwnProperty;function assignValue$1(eo,to,no){var io=eo[to];(!(hasOwnProperty$f.call(eo,to)&&eq$1(io,no))||no===void 0&&!(to in eo))&&baseAssignValue$1(eo,to,no)}function copyObject(eo,to,no,io){var so=!no;no||(no={});for(var ao=-1,lo=to.length;++ao-1&&eo%1==0&&eo0){if(++to>=HOT_COUNT)return arguments[0]}else to=0;return eo.apply(void 0,arguments)}}var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function baseRest(eo,to){return setToString$1(overRest(eo,to,identity$1),eo+"")}function isIterateeCall(eo,to,no){if(!isObject$2(no))return!1;var io=typeof to;return(io=="number"?isArrayLike(no)&&isIndex$1(to,no.length):io=="string"&&to in no)?eq$1(no[to],eo):!1}function createAssigner(eo){return baseRest(function(to,no){var io=-1,so=no.length,ao=so>1?no[so-1]:void 0,lo=so>2?no[2]:void 0;for(ao=eo.length>3&&typeof ao=="function"?(so--,ao):void 0,lo&&isIterateeCall(no[0],no[1],lo)&&(ao=so<3?void 0:ao,so=1),to=Object(to);++io0?charat(characters,--position$3):0,column--,character===10&&(column=1,line--),character}function next$1(){return character=position$32||token(character)>3?"":" "}function escaping(eo,to){for(;--to&&next$1()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice$1(eo,caret()+(to<6&&peek()==32&&next$1()==32))}function delimiter$1(eo){for(;next$1();)switch(character){case eo:return position$3;case 34:case 39:eo!==34&&eo!==39&&delimiter$1(character);break;case 40:eo===41&&delimiter$1(eo);break;case 92:next$1();break}return position$3}function commenter(eo,to){for(;next$1()&&eo+character!==57;)if(eo+character===84&&peek()===47)break;return"/*"+slice$1(to,position$3-1)+"*"+from(eo===47?eo:next$1())}function identifier(eo){for(;!token(peek());)next$1();return slice$1(eo,position$3)}function compile(eo){return dealloc(parse$5("",null,null,null,[""],eo=alloc(eo),0,[0],eo))}function parse$5(eo,to,no,io,so,ao,lo,uo,ho){for(var go=0,mo=0,yo=lo,So=0,_o=0,ko=0,Co=1,$o=1,Ro=1,Oo=0,No="",Mo=so,Bo=ao,Fo=io,Lo=No;$o;)switch(ko=Oo,Oo=next$1()){case 40:if(ko!=108&&charat(Lo,yo-1)==58){indexof(Lo+=replace(delimit(Oo),"&","&\f"),"&\f",abs(go?uo[go-1]:0))!=-1&&(Ro=-1);break}case 34:case 39:case 91:Lo+=delimit(Oo);break;case 9:case 10:case 13:case 32:Lo+=whitespace(ko);break;case 92:Lo+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment$1(commenter(next$1(),caret()),to,no,ho),ho);break;default:Lo+="/"}break;case 123*Co:uo[go++]=strlen(Lo)*Ro;case 125*Co:case 59:case 0:switch(Oo){case 0:case 125:$o=0;case 59+mo:Ro==-1&&(Lo=replace(Lo,/\f/g,"")),_o>0&&strlen(Lo)-yo&&append(_o>32?declaration(Lo+";",io,no,yo-1,ho):declaration(replace(Lo," ","")+";",io,no,yo-2,ho),ho);break;case 59:Lo+=";";default:if(append(Fo=ruleset(Lo,to,no,go,mo,so,uo,No,Mo=[],Bo=[],yo,ao),ao),Oo===123)if(mo===0)parse$5(Lo,to,Fo,Fo,Mo,ao,yo,uo,Bo);else switch(So===99&&charat(Lo,3)===110?100:So){case 100:case 108:case 109:case 115:parse$5(eo,Fo,Fo,io&&append(ruleset(eo,Fo,Fo,0,0,so,uo,No,so,Mo=[],yo,Bo),Bo),so,Bo,yo,uo,io?Mo:Bo);break;default:parse$5(Lo,Fo,Fo,Fo,[""],Bo,0,uo,Bo)}}go=mo=_o=0,Co=Ro=1,No=Lo="",yo=lo;break;case 58:yo=1+strlen(Lo),_o=ko;default:if(Co<1){if(Oo==123)--Co;else if(Oo==125&&Co++==0&&prev()==125)continue}switch(Lo+=from(Oo),Oo*Co){case 38:Ro=mo>0?1:(Lo+="\f",-1);break;case 44:uo[go++]=(strlen(Lo)-1)*Ro,Ro=1;break;case 64:peek()===45&&(Lo+=delimit(next$1())),So=peek(),mo=yo=strlen(No=Lo+=identifier(caret())),Oo++;break;case 45:ko===45&&strlen(Lo)==2&&(Co=0)}}return ao}function ruleset(eo,to,no,io,so,ao,lo,uo,ho,go,mo,yo){for(var So=so-1,_o=so===0?ao:[""],ko=sizeof(_o),Co=0,$o=0,Ro=0;Co0?_o[Oo]+" "+No:replace(No,/&\f/g,_o[Oo])))&&(ho[Ro++]=Mo);return node$1(eo,to,no,so===0?RULESET:uo,ho,go,mo,yo)}function comment$1(eo,to,no,io){return node$1(eo,to,no,COMMENT,from(char()),substr(eo,2,-2),0,io)}function declaration(eo,to,no,io,so){return node$1(eo,to,no,DECLARATION,substr(eo,0,io),substr(eo,io+1,-1),io,so)}function serialize(eo,to){for(var no="",io=0;io{},debug:(...eo)=>{},info:(...eo)=>{},warn:(...eo)=>{},error:(...eo)=>{},fatal:(...eo)=>{}},setLogLevel$1=function(eo="fatal"){let to=LEVELS.fatal;typeof eo=="string"?(eo=eo.toLowerCase(),eo in LEVELS&&(to=LEVELS[eo])):typeof eo=="number"&&(to=eo),log$1.trace=()=>{},log$1.debug=()=>{},log$1.info=()=>{},log$1.warn=()=>{},log$1.error=()=>{},log$1.fatal=()=>{},to<=LEVELS.fatal&&(log$1.fatal=console.error?console.error.bind(console,format("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",format("FATAL"))),to<=LEVELS.error&&(log$1.error=console.error?console.error.bind(console,format("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",format("ERROR"))),to<=LEVELS.warn&&(log$1.warn=console.warn?console.warn.bind(console,format("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",format("WARN"))),to<=LEVELS.info&&(log$1.info=console.info?console.info.bind(console,format("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",format("INFO"))),to<=LEVELS.debug&&(log$1.debug=console.debug?console.debug.bind(console,format("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format("DEBUG"))),to<=LEVELS.trace&&(log$1.trace=console.debug?console.debug.bind(console,format("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format("TRACE")))},format=eo=>`%c${dayjs().format("ss.SSS")} : ${eo} : `,lineBreakRegex=//gi,getRows=eo=>eo?breakToPlaceholder(eo).replace(/\\n/g,"#br#").split("#br#"):[""],setupDompurifyHooksIfNotSetup=(()=>{let eo=!1;return()=>{eo||(setupDompurifyHooks(),eo=!0)}})();function setupDompurifyHooks(){const eo="data-temp-href-target";purify.addHook("beforeSanitizeAttributes",to=>{to.tagName==="A"&&to.hasAttribute("target")&&to.setAttribute(eo,to.getAttribute("target")||"")}),purify.addHook("afterSanitizeAttributes",to=>{to.tagName==="A"&&to.hasAttribute(eo)&&(to.setAttribute("target",to.getAttribute(eo)||""),to.removeAttribute(eo),to.getAttribute("target")==="_blank"&&to.setAttribute("rel","noopener"))})}const removeScript=eo=>(setupDompurifyHooksIfNotSetup(),purify.sanitize(eo)),sanitizeMore=(eo,to)=>{var no;if(((no=to.flowchart)==null?void 0:no.htmlLabels)!==!1){const io=to.securityLevel;io==="antiscript"||io==="strict"?eo=removeScript(eo):io!=="loose"&&(eo=breakToPlaceholder(eo),eo=eo.replace(//g,">"),eo=eo.replace(/=/g,"="),eo=placeholderToBreak(eo))}return eo},sanitizeText$2$1=(eo,to)=>eo&&(to.dompurifyConfig?eo=purify.sanitize(sanitizeMore(eo,to),to.dompurifyConfig).toString():eo=purify.sanitize(sanitizeMore(eo,to),{FORBID_TAGS:["style"]}).toString(),eo),sanitizeTextOrArray=(eo,to)=>typeof eo=="string"?sanitizeText$2$1(eo,to):eo.flat().map(no=>sanitizeText$2$1(no,to)),hasBreaks=eo=>lineBreakRegex.test(eo),splitBreaks=eo=>eo.split(lineBreakRegex),placeholderToBreak=eo=>eo.replace(/#br#/g,"
"),breakToPlaceholder=eo=>eo.replace(lineBreakRegex,"#br#"),getUrl=eo=>{let to="";return eo&&(to=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,to=to.replaceAll(/\(/g,"\\("),to=to.replaceAll(/\)/g,"\\)")),to},evaluate=eo=>!(eo===!1||["false","null","0"].includes(String(eo).trim().toLowerCase())),getMax=function(...eo){const to=eo.filter(no=>!isNaN(no));return Math.max(...to)},getMin=function(...eo){const to=eo.filter(no=>!isNaN(no));return Math.min(...to)},parseGenericTypes=function(eo){const to=eo.split(/(,)/),no=[];for(let io=0;io0&&io+1Math.max(0,eo.split(to).length-1),shouldCombineSets=(eo,to)=>{const no=countOccurrence(eo,"~"),io=countOccurrence(to,"~");return no===1&&io===1},processSet=eo=>{const to=countOccurrence(eo,"~");let no=!1;if(to<=1)return eo;to%2!==0&&eo.startsWith("~")&&(eo=eo.substring(1),no=!0);const io=[...eo];let so=io.indexOf("~"),ao=io.lastIndexOf("~");for(;so!==-1&&ao!==-1&&so!==ao;)io[so]="<",io[ao]=">",so=io.indexOf("~"),ao=io.lastIndexOf("~");return no&&io.unshift("~"),io.join("")},isMathMLSupported=()=>window.MathMLElement!==void 0,katexRegex=/\$\$(.*)\$\$/g,hasKatex=eo=>{var to;return(((to=eo.match(katexRegex))==null?void 0:to.length)??0)>0},calculateMathMLDimensions=async(eo,to)=>{eo=await renderKatex(eo,to);const no=document.createElement("div");no.innerHTML=eo,no.id="katex-temp",no.style.visibility="hidden",no.style.position="absolute",no.style.top="0";const io=document.querySelector("body");io==null||io.insertAdjacentElement("beforeend",no);const so={width:no.clientWidth,height:no.clientHeight};return no.remove(),so},renderKatex=async(eo,to)=>{if(!hasKatex(eo))return eo;if(!isMathMLSupported()&&!to.legacyMathML)return eo.replace(katexRegex,"MathML is unsupported in this environment.");const{default:no}=await __vitePreload(()=>Promise.resolve().then(()=>katex$1),void 0);return eo.split(lineBreakRegex).map(io=>hasKatex(io)?`
${io}
@@ -1985,24 +1985,24 @@ ${eo.themeCSS}`),eo.fontFamily!==void 0&&(io+=` :root { --mermaid-font-family: ${eo.fontFamily}}`),eo.altFontFamily!==void 0&&(io+=` :root { --mermaid-alt-font-family: ${eo.altFontFamily}}`),!isEmpty(to)){const uo=eo.htmlLabels||((no=eo.flowchart)==null?void 0:no.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const ho in to){const go=to[ho];isEmpty(go.styles)||uo.forEach(mo=>{io+=cssImportantStyles(go.id,mo,go.styles)}),isEmpty(go.textStyles)||(io+=cssImportantStyles(go.id,"tspan",go.textStyles))}}return io},createUserStyles=(eo,to,no,io)=>{const so=createCssStyles(eo,no),ao=getStyles$1$1(to,so,eo.themeVariables);return serialize(compile(`${io}{${ao}}`),stringify)},cleanUpSvgCode=(eo="",to,no)=>{let io=eo;return!no&&!to&&(io=io.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),io=decodeEntities(io),io=io.replace(/
/g,"
"),io},putIntoIFrame=(eo="",to)=>{var no,io;const so=(io=(no=to==null?void 0:to.viewBox)==null?void 0:no.baseVal)!=null&&io.height?to.viewBox.baseVal.height+"px":IFRAME_HEIGHT,ao=btoa(''+eo+"");return``},appendDivSvgG=(eo,to,no,io,so)=>{const ao=eo.append("div");ao.attr("id",no),io&&ao.attr("style",io);const lo=ao.append("svg").attr("id",to).attr("width","100%").attr("xmlns",XMLNS_SVG_STD);return so&&lo.attr("xmlns:xlink",so),lo.append("g"),eo};function sandboxedIframe(eo,to){return eo.append("iframe").attr("id",to).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const removeExistingElements=(eo,to,no,io)=>{var so,ao,lo;(so=eo.getElementById(to))==null||so.remove(),(ao=eo.getElementById(no))==null||ao.remove(),(lo=eo.getElementById(io))==null||lo.remove()},render$1$1=async function(eo,to,no){var io,so,ao,lo,uo,ho;addDiagrams();const go=processAndSetConfigs(to);to=go.code;const mo=getConfig$1$1();log$1.debug(mo),to.length>((mo==null?void 0:mo.maxTextSize)??MAX_TEXTLENGTH)&&(to=MAX_TEXTLENGTH_EXCEEDED_MSG);const yo="#"+eo,So="i"+eo,_o="#"+So,ko="d"+eo,Co="#"+ko;let $o=select("body");const Ro=mo.securityLevel===SECURITY_LVL_SANDBOX,Oo=mo.securityLevel===SECURITY_LVL_LOOSE,No=mo.fontFamily;if(no!==void 0){if(no&&(no.innerHTML=""),Ro){const ys=sandboxedIframe(select(no),So);$o=select(ys.nodes()[0].contentDocument.body),$o.node().style.margin=0}else $o=select(no);appendDivSvgG($o,eo,ko,`font-family: ${No}`,XMLNS_XLINK_STD)}else{if(removeExistingElements(document,eo,ko,So),Ro){const ys=sandboxedIframe(select("body"),So);$o=select(ys.nodes()[0].contentDocument.body),$o.node().style.margin=0}else $o=select("body");appendDivSvgG($o,eo,ko)}let Mo,Bo;try{Mo=await getDiagramFromText(to,{title:go.title})}catch(ys){Mo=new Diagram("error"),Bo=ys}const Po=$o.select(Co).node(),Lo=Mo.type,Go=Po.firstChild,Do=Go.firstChild,Uo=(so=(io=Mo.renderer).getClasses)==null?void 0:so.call(io,to,Mo),Ho=createUserStyles(mo,Lo,Uo,yo),Yo=document.createElement("style");Yo.innerHTML=Ho,Go.insertBefore(Yo,Do);try{await Mo.renderer.draw(to,eo,version$2,Mo)}catch(ys){throw errorRenderer.draw(to,eo,version$2),ys}const qo=$o.select(`${Co} svg`),Jo=(lo=(ao=Mo.db).getAccTitle)==null?void 0:lo.call(ao),ps=(ho=(uo=Mo.db).getAccDescription)==null?void 0:ho.call(uo);addA11yInfo(Lo,qo,Jo,ps),$o.select(`[id="${eo}"]`).selectAll("foreignobject > *").attr("xmlns",XMLNS_XHTML_STD);let Qo=$o.select(Co).node().innerHTML;if(log$1.debug("config.arrowMarkerAbsolute",mo.arrowMarkerAbsolute),Qo=cleanUpSvgCode(Qo,Ro,evaluate(mo.arrowMarkerAbsolute)),Ro){const ys=$o.select(Co+" svg").node();Qo=putIntoIFrame(Qo,ys)}else Oo||(Qo=purify.sanitize(Qo,{ADD_TAGS:DOMPURIFY_TAGS,ADD_ATTR:DOMPURIFY_ATTR}));if(attachFunctions(),Bo)throw Bo;const gs=select(Ro?_o:Co).node();return gs&&"remove"in gs&&gs.remove(),{svg:Qo,bindFunctions:Mo.db.bindFunctions}};function initialize$1(eo={}){var to;eo!=null&&eo.fontFamily&&!((to=eo.themeVariables)!=null&&to.fontFamily)&&(eo.themeVariables||(eo.themeVariables={}),eo.themeVariables.fontFamily=eo.fontFamily),saveConfigFromInitialize(eo),eo!=null&&eo.theme&&eo.theme in theme$1?eo.themeVariables=theme$1[eo.theme].getThemeVariables(eo.themeVariables):eo&&(eo.themeVariables=theme$1.default.getThemeVariables(eo.themeVariables));const no=typeof eo=="object"?setSiteConfig(eo):getSiteConfig();setLogLevel$1(no.logLevel),addDiagrams()}const getDiagramFromText=(eo,to={})=>{const{code:no}=preprocessDiagram(eo);return getDiagramFromText$1(no,to)};function addA11yInfo(eo,to,no,io){setA11yDiagramInfo(to,eo),addSVGa11yTitleDescription(to,no,io,to.attr("id"))}const mermaidAPI=Object.freeze({render:render$1$1,parse:parse$1$1,getDiagramFromText,initialize:initialize$1,getConfig:getConfig$1$1,setConfig:setConfig$1,getSiteConfig,updateSiteConfig,reset:()=>{reset()},globalReset:()=>{reset(defaultConfig$1)},defaultConfig:defaultConfig$1});setLogLevel$1(getConfig$1$1().logLevel);reset(getConfig$1$1());const loadRegisteredDiagrams=async()=>{log$1.debug("Loading registered diagrams");const to=(await Promise.allSettled(Object.entries(detectors).map(async([no,{detector:io,loader:so}])=>{if(so)try{getDiagram(no)}catch{try{const{diagram:lo,id:uo}=await so();registerDiagram(uo,lo,io)}catch(lo){throw log$1.error(`Failed to load external diagram with key ${no}. Removing from detectors.`),delete detectors[no],lo}}}))).filter(no=>no.status==="rejected");if(to.length>0){log$1.error(`Failed to load ${to.length} external diagrams`);for(const no of to)log$1.error(no);throw new Error(`Failed to load ${to.length} external diagrams`)}},handleError=(eo,to,no)=>{log$1.warn(eo),isDetailedError(eo)?(no&&no(eo.str,eo.hash),to.push({...eo,message:eo.str,error:eo})):(no&&no(eo),eo instanceof Error&&to.push({str:eo.message,message:eo.message,hash:eo.name,error:eo}))},run$3=async function(eo={querySelector:".mermaid"}){try{await runThrowsErrors(eo)}catch(to){if(isDetailedError(to)&&log$1.error(to.str),mermaid.parseError&&mermaid.parseError(to),!eo.suppressErrors)throw log$1.error("Use the suppressErrors option to suppress these errors"),to}},runThrowsErrors=async function({postRenderCallback:eo,querySelector:to,nodes:no}={querySelector:".mermaid"}){const io=mermaidAPI.getConfig();log$1.debug(`${eo?"":"No "}Callback function found`);let so;if(no)so=no;else if(to)so=document.querySelectorAll(to);else throw new Error("Nodes and querySelector are both undefined");log$1.debug(`Found ${so.length} diagrams`),(io==null?void 0:io.startOnLoad)!==void 0&&(log$1.debug("Start On Load: "+(io==null?void 0:io.startOnLoad)),mermaidAPI.updateSiteConfig({startOnLoad:io==null?void 0:io.startOnLoad}));const ao=new utils$1.InitIDGenerator(io.deterministicIds,io.deterministicIDSeed);let lo;const uo=[];for(const ho of Array.from(so)){log$1.info("Rendering diagram: "+ho.id);/*! Check if previously processed */if(ho.getAttribute("data-processed"))continue;ho.setAttribute("data-processed","true");const go=`mermaid-${ao.next()}`;lo=ho.innerHTML,lo=dedent$1(utils$1.entityDecode(lo)).trim().replace(//gi,"
");const mo=utils$1.detectInit(lo);mo&&log$1.debug("Detected early reinit: ",mo);try{const{svg:yo,bindFunctions:So}=await render$3(go,lo,ho);ho.innerHTML=yo,eo&&await eo(go),So&&So(ho)}catch(yo){handleError(yo,uo,mermaid.parseError)}}if(uo.length>0)throw uo[0]},initialize=function(eo){mermaidAPI.initialize(eo)},init=async function(eo,to,no){log$1.warn("mermaid.init is deprecated. Please use run instead."),eo&&initialize(eo);const io={postRenderCallback:no,querySelector:".mermaid"};typeof to=="string"?io.querySelector=to:to&&(to instanceof HTMLElement?io.nodes=[to]:io.nodes=to),await run$3(io)},registerExternalDiagrams=async(eo,{lazyLoad:to=!0}={})=>{registerLazyLoadedDiagrams(...eo),to===!1&&await loadRegisteredDiagrams()},contentLoaded=function(){if(mermaid.startOnLoad){const{startOnLoad:eo}=mermaidAPI.getConfig();eo&&mermaid.run().catch(to=>log$1.error("Mermaid failed to initialize",to))}};if(typeof document<"u"){/*! +`},appendDivSvgG=(eo,to,no,io,so)=>{const ao=eo.append("div");ao.attr("id",no),io&&ao.attr("style",io);const lo=ao.append("svg").attr("id",to).attr("width","100%").attr("xmlns",XMLNS_SVG_STD);return so&&lo.attr("xmlns:xlink",so),lo.append("g"),eo};function sandboxedIframe(eo,to){return eo.append("iframe").attr("id",to).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const removeExistingElements=(eo,to,no,io)=>{var so,ao,lo;(so=eo.getElementById(to))==null||so.remove(),(ao=eo.getElementById(no))==null||ao.remove(),(lo=eo.getElementById(io))==null||lo.remove()},render$1$1=async function(eo,to,no){var io,so,ao,lo,uo,ho;addDiagrams();const go=processAndSetConfigs(to);to=go.code;const mo=getConfig$1$1();log$1.debug(mo),to.length>((mo==null?void 0:mo.maxTextSize)??MAX_TEXTLENGTH)&&(to=MAX_TEXTLENGTH_EXCEEDED_MSG);const yo="#"+eo,So="i"+eo,_o="#"+So,ko="d"+eo,Co="#"+ko;let $o=select("body");const Ro=mo.securityLevel===SECURITY_LVL_SANDBOX,Oo=mo.securityLevel===SECURITY_LVL_LOOSE,No=mo.fontFamily;if(no!==void 0){if(no&&(no.innerHTML=""),Ro){const ys=sandboxedIframe(select(no),So);$o=select(ys.nodes()[0].contentDocument.body),$o.node().style.margin=0}else $o=select(no);appendDivSvgG($o,eo,ko,`font-family: ${No}`,XMLNS_XLINK_STD)}else{if(removeExistingElements(document,eo,ko,So),Ro){const ys=sandboxedIframe(select("body"),So);$o=select(ys.nodes()[0].contentDocument.body),$o.node().style.margin=0}else $o=select("body");appendDivSvgG($o,eo,ko)}let Mo,Bo;try{Mo=await getDiagramFromText(to,{title:go.title})}catch(ys){Mo=new Diagram("error"),Bo=ys}const Fo=$o.select(Co).node(),Lo=Mo.type,Go=Fo.firstChild,Do=Go.firstChild,Uo=(so=(io=Mo.renderer).getClasses)==null?void 0:so.call(io,to,Mo),Ho=createUserStyles(mo,Lo,Uo,yo),Yo=document.createElement("style");Yo.innerHTML=Ho,Go.insertBefore(Yo,Do);try{await Mo.renderer.draw(to,eo,version$2,Mo)}catch(ys){throw errorRenderer.draw(to,eo,version$2),ys}const qo=$o.select(`${Co} svg`),Jo=(lo=(ao=Mo.db).getAccTitle)==null?void 0:lo.call(ao),ps=(ho=(uo=Mo.db).getAccDescription)==null?void 0:ho.call(uo);addA11yInfo(Lo,qo,Jo,ps),$o.select(`[id="${eo}"]`).selectAll("foreignobject > *").attr("xmlns",XMLNS_XHTML_STD);let Qo=$o.select(Co).node().innerHTML;if(log$1.debug("config.arrowMarkerAbsolute",mo.arrowMarkerAbsolute),Qo=cleanUpSvgCode(Qo,Ro,evaluate(mo.arrowMarkerAbsolute)),Ro){const ys=$o.select(Co+" svg").node();Qo=putIntoIFrame(Qo,ys)}else Oo||(Qo=purify.sanitize(Qo,{ADD_TAGS:DOMPURIFY_TAGS,ADD_ATTR:DOMPURIFY_ATTR}));if(attachFunctions(),Bo)throw Bo;const gs=select(Ro?_o:Co).node();return gs&&"remove"in gs&&gs.remove(),{svg:Qo,bindFunctions:Mo.db.bindFunctions}};function initialize$1(eo={}){var to;eo!=null&&eo.fontFamily&&!((to=eo.themeVariables)!=null&&to.fontFamily)&&(eo.themeVariables||(eo.themeVariables={}),eo.themeVariables.fontFamily=eo.fontFamily),saveConfigFromInitialize(eo),eo!=null&&eo.theme&&eo.theme in theme$1?eo.themeVariables=theme$1[eo.theme].getThemeVariables(eo.themeVariables):eo&&(eo.themeVariables=theme$1.default.getThemeVariables(eo.themeVariables));const no=typeof eo=="object"?setSiteConfig(eo):getSiteConfig();setLogLevel$1(no.logLevel),addDiagrams()}const getDiagramFromText=(eo,to={})=>{const{code:no}=preprocessDiagram(eo);return getDiagramFromText$1(no,to)};function addA11yInfo(eo,to,no,io){setA11yDiagramInfo(to,eo),addSVGa11yTitleDescription(to,no,io,to.attr("id"))}const mermaidAPI=Object.freeze({render:render$1$1,parse:parse$1$1,getDiagramFromText,initialize:initialize$1,getConfig:getConfig$1$1,setConfig:setConfig$1,getSiteConfig,updateSiteConfig,reset:()=>{reset()},globalReset:()=>{reset(defaultConfig$1)},defaultConfig:defaultConfig$1});setLogLevel$1(getConfig$1$1().logLevel);reset(getConfig$1$1());const loadRegisteredDiagrams=async()=>{log$1.debug("Loading registered diagrams");const to=(await Promise.allSettled(Object.entries(detectors).map(async([no,{detector:io,loader:so}])=>{if(so)try{getDiagram(no)}catch{try{const{diagram:lo,id:uo}=await so();registerDiagram(uo,lo,io)}catch(lo){throw log$1.error(`Failed to load external diagram with key ${no}. Removing from detectors.`),delete detectors[no],lo}}}))).filter(no=>no.status==="rejected");if(to.length>0){log$1.error(`Failed to load ${to.length} external diagrams`);for(const no of to)log$1.error(no);throw new Error(`Failed to load ${to.length} external diagrams`)}},handleError=(eo,to,no)=>{log$1.warn(eo),isDetailedError(eo)?(no&&no(eo.str,eo.hash),to.push({...eo,message:eo.str,error:eo})):(no&&no(eo),eo instanceof Error&&to.push({str:eo.message,message:eo.message,hash:eo.name,error:eo}))},run$3=async function(eo={querySelector:".mermaid"}){try{await runThrowsErrors(eo)}catch(to){if(isDetailedError(to)&&log$1.error(to.str),mermaid.parseError&&mermaid.parseError(to),!eo.suppressErrors)throw log$1.error("Use the suppressErrors option to suppress these errors"),to}},runThrowsErrors=async function({postRenderCallback:eo,querySelector:to,nodes:no}={querySelector:".mermaid"}){const io=mermaidAPI.getConfig();log$1.debug(`${eo?"":"No "}Callback function found`);let so;if(no)so=no;else if(to)so=document.querySelectorAll(to);else throw new Error("Nodes and querySelector are both undefined");log$1.debug(`Found ${so.length} diagrams`),(io==null?void 0:io.startOnLoad)!==void 0&&(log$1.debug("Start On Load: "+(io==null?void 0:io.startOnLoad)),mermaidAPI.updateSiteConfig({startOnLoad:io==null?void 0:io.startOnLoad}));const ao=new utils$1.InitIDGenerator(io.deterministicIds,io.deterministicIDSeed);let lo;const uo=[];for(const ho of Array.from(so)){log$1.info("Rendering diagram: "+ho.id);/*! Check if previously processed */if(ho.getAttribute("data-processed"))continue;ho.setAttribute("data-processed","true");const go=`mermaid-${ao.next()}`;lo=ho.innerHTML,lo=dedent$1(utils$1.entityDecode(lo)).trim().replace(//gi,"
");const mo=utils$1.detectInit(lo);mo&&log$1.debug("Detected early reinit: ",mo);try{const{svg:yo,bindFunctions:So}=await render$3(go,lo,ho);ho.innerHTML=yo,eo&&await eo(go),So&&So(ho)}catch(yo){handleError(yo,uo,mermaid.parseError)}}if(uo.length>0)throw uo[0]},initialize=function(eo){mermaidAPI.initialize(eo)},init=async function(eo,to,no){log$1.warn("mermaid.init is deprecated. Please use run instead."),eo&&initialize(eo);const io={postRenderCallback:no,querySelector:".mermaid"};typeof to=="string"?io.querySelector=to:to&&(to instanceof HTMLElement?io.nodes=[to]:io.nodes=to),await run$3(io)},registerExternalDiagrams=async(eo,{lazyLoad:to=!0}={})=>{registerLazyLoadedDiagrams(...eo),to===!1&&await loadRegisteredDiagrams()},contentLoaded=function(){if(mermaid.startOnLoad){const{startOnLoad:eo}=mermaidAPI.getConfig();eo&&mermaid.run().catch(to=>log$1.error("Mermaid failed to initialize",to))}};if(typeof document<"u"){/*! * Wait for document loaded before starting the execution */window.addEventListener("load",contentLoaded,!1)}const setParseErrorHandler=function(eo){mermaid.parseError=eo},executionQueue=[];let executionQueueRunning=!1;const executeQueue=async()=>{if(!executionQueueRunning){for(executionQueueRunning=!0;executionQueue.length>0;){const eo=executionQueue.shift();if(eo)try{await eo()}catch(to){log$1.error("Error executing queue",to)}}executionQueueRunning=!1}},parse$4=async(eo,to)=>new Promise((no,io)=>{const so=()=>new Promise((ao,lo)=>{mermaidAPI.parse(eo,to).then(uo=>{ao(uo),no(uo)},uo=>{var ho;log$1.error("Error parsing",uo),(ho=mermaid.parseError)==null||ho.call(mermaid,uo),lo(uo),io(uo)})});executionQueue.push(so),executeQueue().catch(io)}),render$3=(eo,to,no)=>new Promise((io,so)=>{const ao=()=>new Promise((lo,uo)=>{mermaidAPI.render(eo,to,no).then(ho=>{lo(ho),io(ho)},ho=>{var go;log$1.error("Error parsing",ho),(go=mermaid.parseError)==null||go.call(mermaid,ho),uo(ho),so(ho)})});executionQueue.push(ao),executeQueue().catch(so)}),mermaid={startOnLoad:!0,mermaidAPI,parse:parse$4,render:render$3,init,run:run$3,registerExternalDiagrams,initialize,parseError:void 0,contentLoaded,setParseErrorHandler,detectType},Mermaid=({children:eo,onContentLoaded:to,themeCSS:no})=>{reactExports.useEffect(()=>{mermaid.contentLoaded(),to==null||to()},[eo]),reactExports.useEffect(()=>{mermaid.mermaidAPI.setConfig({themeCSS:no})},[no]);const io=useIsDark();return reactExports.useEffect(()=>{mermaid.initialize({startOnLoad:!0,theme:io?"dark":"default",securityLevel:"loose",themeCSS:no})},[io]),console.log("diagram code"),console.log(eo),jsxRuntimeExports.jsx("pre",{className:"mermaid",style:{height:"100%",width:"100%"},children:eo})},useClasses$f=makeStyles({popover:{...shorthands.padding("10px"),...shorthands.border("1px","solid","black"),...shorthands.borderRadius("5px"),backgroundColor:tokens$1.colorNeutralBackground1,position:"absolute",top:"20%",left:"20%",height:"60%",width:"60%",zIndex:1e3,...shorthands.overflow("auto")},popoverMask:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:999}}),AgentEventsSequenceDiagram=()=>{var mo;let eo=`sequenceDiagram `;const to=useClasses$f(),[no,io]=reactExports.useState(null),so=useSelectedSpan(),ao=useAgentSpansFlatten({rootSpanId:((mo=so==null?void 0:so.context)==null?void 0:mo.span_id)??"",showHierarchy:!0}).sort((yo,So)=>Date.parse(yo.start_time??"")-Date.parse(So.start_time??"")),lo=[];let uo=0;ao.forEach(yo=>{var So,_o,ko;((So=yo.name)==null?void 0:So.toLowerCase())==="send"&&(eo=eo.concat(` ${((_o=yo.attributes)==null?void 0:_o.from)??""} ->> ${((ko=yo.attributes)==null?void 0:ko.to)??""}: send message `),lo[uo]=yo,uo++)});const ho=reactExports.useCallback(()=>{setTimeout(()=>{document.querySelectorAll(".messageText").forEach((So,_o)=>{So.addEventListener("click",ko=>{ko.stopPropagation(),io(lo[_o])})})},500)},[]),go=no?getMessagesFromEvent(no).map((yo,So)=>({id:So,type:ChatMessageType.Message,history:[{content:[{text:yo.content??"",span:no,hideChildren:!0}],from:yo.role??"",category:ChatMessageCategory.Chatbot}]})):[];return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[no&&jsxRuntimeExports.jsx("div",{className:to.popoverMask,onClick:()=>io(null),children:jsxRuntimeExports.jsx("div",{className:to.popover,onClick:yo=>{yo.preventDefault(),yo.stopPropagation()},children:jsxRuntimeExports.jsx(MessageListRenderer,{locStrings:defaultLocStrings$1,messages:go,MessageSenderRenderer:AgentMessageSenderRenderer,MessageContentRenderer:AgentMessageContentRenderer})})}),jsxRuntimeExports.jsx(Mermaid,{onContentLoaded:ho,children:eo},eo)]})},AgentMessagesView=()=>{var go;const eo=useSelectedSpan(),to=useConversationViewCurrentPath(),no=useSetConversationViewCurrentPath(),io=to.split("->").filter(Boolean),so=io[io.length-1],ao=useSpansOfSelectedTrace(),lo=new Map,uo=ao.find(mo=>{var yo;return((yo=mo.context)==null?void 0:yo.span_id)===so});ao.forEach(mo=>{var yo,So;mo.parent_id&&((yo=mo.context)!=null&&yo.span_id)&&(lo.has(mo.parent_id)?(So=lo.get(mo.parent_id))==null||So.add(mo.context.span_id):lo.set(mo.parent_id,new Set([mo.context.span_id])))}),reactExports.useEffect(()=>{var mo,yo;(mo=eo==null?void 0:eo.context)!=null&&mo.span_id&&no((yo=eo.context)==null?void 0:yo.span_id)},[(go=eo==null?void 0:eo.context)==null?void 0:go.span_id]);const ho=uo?getMessagesFromEvent(uo).map((mo,yo)=>({id:yo,type:ChatMessageType.Message,history:[{content:[{text:mo.content??"",span:uo}],from:mo.role??"",category:ChatMessageCategory.Chatbot}]})):[];return jsxRuntimeExports.jsx(MessageListRenderer,{locStrings:defaultLocStrings$1,messages:ho,MessageSenderRenderer:AgentMessageSenderRenderer,MessageContentRenderer:AgentMessageContentRenderer})},MultiAgentsSpanDetail=()=>{var So;const eo=useSelectedSpan(),[to,no]=reactExports.useState("conversation"),io=useNodeDetailClasses(),so=useLocStrings(),ao=(So=eo==null?void 0:eo.events)==null?void 0:So.filter(_o=>_o.name===BuildInEventName.exception),lo=(ao==null?void 0:ao.length)??0,[uo,ho]=reactExports.useState(!1),{ref:go,width:mo}=useResizeObserver();useHasInputsOrOutput(_o=>ho(_o));const yo=[{key:"conversation",name:so.Conversation},{key:"waterfall",name:so.Waterfall},{key:"sequence",name:so.Sequence},...uo?[{key:"input_output",name:so["Input_&_Output"]}]:[],{key:"raw",name:so.Raw_JSON},{key:"error",name:so.Exception,icon:jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:lo>0?"danger":"informative",count:lo,size:"small",showZero:!0})}];return jsxRuntimeExports.jsxs("div",{className:io.layoutLeft,ref:go,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:yo,selectedTab:to,setSelectedTab:no}),jsxRuntimeExports.jsx(SpanDetailErrorMessageBar,{setSelectedTab:no}),jsxRuntimeExports.jsxs("div",{className:io.content,children:[to==="input_output"&&jsxRuntimeExports.jsx(DefaultNodeInfo,{}),to==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),to==="waterfall"&&eo&&mo&&jsxRuntimeExports.jsx(AgentActivitiesView,{span:eo,rootWidth:mo,showHierarchy:!0,showDuration:!0}),to==="conversation"&&jsxRuntimeExports.jsx(AgentMessagesView,{}),to==="sequence"&&jsxRuntimeExports.jsx(AgentEventsSequenceDiagram,{})]})]})},RetrievalNodeInfo=()=>{const eo=useSelectedSpan(),to=useLocStrings(),[no,io]=reactExports.useState(ViewStatus.loading),so=useLoadSpanEvents(eo,BuildInEventName["retrieval.documents"]),ao=getSpanEventsWithPayload(eo,BuildInEventName["retrieval.documents"]),lo=(eo==null?void 0:eo.attributes)??{};let uo=[];if(ao.length>0)uo=ao.map(_o=>_o.attributes).flat();else if(typeof lo["retrieval.documents"]=="string")try{uo=JSON.parse(lo["retrieval.documents"])}catch{uo=[]}const[ho,go]=reactExports.useState(ViewStatus.loading),mo=useLoadSpanEvents(eo,BuildInEventName["retrieval.query"]),yo=getSpanEventsWithPayload(eo,BuildInEventName["retrieval.query"]);let So=lo["retrieval.query"];return yo.length>0&&(So=yo.map(_o=>_o.attributes).join(` -`)),reactExports.useEffect(()=>{io(ViewStatus.loading),so({onCompleted:_o=>{io(_o?ViewStatus.error:ViewStatus.loaded)}}),go(ViewStatus.loading),mo({onCompleted:_o=>{go(_o?ViewStatus.error:ViewStatus.loaded)}})},[so,mo]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:to.Query})})}),ho===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),ho===ViewStatus.loaded&&(So??""),ho===ViewStatus.error&&jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{go(ViewStatus.loading),mo({onCompleted:_o=>{go(_o?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})]}),jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:to.Documents})})}),no===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),no===ViewStatus.loaded&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:uo.map(_o=>jsxRuntimeExports.jsx(Document$1,{document:_o},_o["document.id"]))}),no===ViewStatus.error&&jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{io(ViewStatus.loading),so({onCompleted:_o=>{io(_o?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})]})]})},Document$1=({document:eo})=>{const to=useRetrievalNodeDetailClasses(),[no,io]=reactExports.useState(["content"]),so=reactExports.useCallback((lo,uo)=>{io(uo.openItems)},[]),ao=useLocStrings();return jsxRuntimeExports.jsxs(Card,{style:{background:tokens$1.colorNeutralBackground2},children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:6},children:[jsxRuntimeExports.jsx(Document16Regular,{}),jsxRuntimeExports.jsx("div",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:"id"})," ",eo["document.id"]]}),relationship:"description",children:jsxRuntimeExports.jsxs("span",{children:[ao.document," ",eo["document.id"]]})})}),jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:ao.score})," ",eo["document.score"]]}),relationship:"description",children:jsxRuntimeExports.jsxs(Badge$2,{appearance:"outline",children:["score ",floatFormatter(eo["document.score"])]})})]}),jsxRuntimeExports.jsx(Divider$2,{}),jsxRuntimeExports.jsx(Card,{style:{background:tokens$1.colorNeutralBackground3},children:jsxRuntimeExports.jsx(Accordion,{openItems:no,onToggle:so,collapsible:!0,multiple:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"content",children:[jsxRuntimeExports.jsx(AccordionHeader,{className:to.accordionHeader,children:ao.content}),jsxRuntimeExports.jsx(AccordionPanel,{children:jsxRuntimeExports.jsx(MarkdownViewer,{content:eo["document.content"]})})]})})}),jsxRuntimeExports.jsx(JsonNodeCard,{title:"metadata",src:eo["document.metadata"],wrapperStyle:{background:tokens$1.colorNeutralBackground3}})]})},RetrievalSpanDetailContent=()=>{var ho;const eo=useSelectedSpan(),[to,no]=reactExports.useState("retrieval"),io=useNodeDetailClasses(),so=useLocStrings(),ao=(ho=eo==null?void 0:eo.events)==null?void 0:ho.filter(go=>go.name===BuildInEventName.exception),lo=(ao==null?void 0:ao.length)??0,uo=[{key:"retrieval",name:so.Retrieval},{key:"raw",name:so.Raw_JSON},{key:"error",name:so.Exception,icon:jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:lo>0?"danger":"informative",count:lo,size:"small",showZero:!0})}];return jsxRuntimeExports.jsxs("div",{className:io.layoutLeft,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:uo,selectedTab:to,setSelectedTab:no}),jsxRuntimeExports.jsx(SpanDetailErrorMessageBar,{setSelectedTab:no}),jsxRuntimeExports.jsxs("div",{className:io.content,children:[to==="retrieval"&&jsxRuntimeExports.jsx(RetrievalNodeInfo,{}),to==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),to==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{})]})]})},NodeModel=()=>{const eo=useNodeDetailClasses(),to=useSelectedSpan(),{"llm.response.model":no}=(to==null?void 0:to.attributes)||{};return no?jsxRuntimeExports.jsx("div",{className:eo.headerModalName,children:no}):null},SpanDetailHeader=({span:eo,showEvaluations:to,showRightPanel:no,setShowRightPanel:io})=>{const so=useNodeDetailClasses();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SpanType,{span:eo,showText:!1,className:so.headerSpan}),jsxRuntimeExports.jsx(Tooltip,{content:eo.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:so.headerTitle,children:`${eo.name}`})}),jsxRuntimeExports.jsxs("div",{className:so.headerRight,children:[jsxRuntimeExports.jsx(NodeModel,{}),jsxRuntimeExports.jsx(NodeToken,{span:eo,size:UISize.small}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:eo.start_time,endTimeISOString:eo.end_time,size:UISize.small}),to&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Divider$2,{vertical:!0}),no?jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",icon:jsxRuntimeExports.jsx(PanelRightContract20Regular,{}),onClick:()=>io(!1)}):jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",icon:jsxRuntimeExports.jsx(PanelRightExpand20Regular,{}),onClick:()=>io(!0)})]})]})]})},NodeDetail=({placeholder:eo,renderLogsPivot:to})=>{var Bo,Po;const no=useSelectedSpan(),io=getSpanType(no),so=useRootSpanIdOfSelectedSpans(),ao=useSelectedLLMMessage(),lo=useNodeDetailClasses(),uo=useShowTraceDetailRightPanel(),ho=useSetShowTraceDetailRightPanel(),mo=useEvaluationSpansOfSelectedSpan().length,yo=so===((Bo=no==null?void 0:no.context)==null?void 0:Bo.span_id),So=(io==null?void 0:io.toLowerCase())==="http",_o=(io==null?void 0:io.toLowerCase())==="llm",ko=(io==null?void 0:io.toLowerCase())==="retrieval",Co=(io==null?void 0:io.toLowerCase())==="embedding",$o=!!ao,Ro=agentSpanNames.has(((Po=no==null?void 0:no.name)==null?void 0:Po.toLowerCase())??""),Oo=getIsAgentsVisualizationEnabled();let No=null,Mo=null;if($o)No=jsxRuntimeExports.jsx(LLMMessageNodeHeader,{selectedLLMMessage:ao.message}),Mo=jsxRuntimeExports.jsx(LLMMessageNodeContent,{selectedLLMMessage:ao.message});else if(no){const Lo=yo&&mo>0;No=jsxRuntimeExports.jsx(SpanDetailHeader,{span:no,showEvaluations:Lo,showRightPanel:uo,setShowRightPanel:ho}),Mo=jsxRuntimeExports.jsx(DefaultSpanDetailContent,{showEvaluationPanel:uo&&Lo,showLogs:yo,renderLogsPivot:to}),_o&&(Mo=jsxRuntimeExports.jsx(LLMSpanContent,{})),So&&(Mo=jsxRuntimeExports.jsx(HttpSpanDetailContent,{})),ko&&(Mo=jsxRuntimeExports.jsx(RetrievalSpanDetailContent,{})),Co&&(Mo=jsxRuntimeExports.jsx(EmbeddingSpanDetailContent,{})),Ro&&Oo&&(Mo=jsxRuntimeExports.jsx(MultiAgentsSpanDetail,{}),No=jsxRuntimeExports.jsx(AgentsHeader,{span:no}))}else No=null,Mo=jsxRuntimeExports.jsx("div",{className:lo.layoutLeft,children:eo});return jsxRuntimeExports.jsxs("div",{className:lo.wrapper,children:[No?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:lo.header,children:No}),jsxRuntimeExports.jsx(Divider$2,{className:lo.divider})]}):null,jsxRuntimeExports.jsx("div",{className:lo.layout,children:Mo})]})},UNDEFINED_VALUE_PLACEHOLDER="N/A",RUNNING_TRACE_POLLING_GAP=3e4,SPAN_POLLING_GAP=3e4;let LOCAL_URL_PREFIX="";const TREE_PATH_CLASSNAME="__trace-tree-node-path",SpansTreeContext=reactExports.createContext({parentIdLookUp:new Map,treeOpenIds:Set$4(),setTreeOpenIds:()=>{}});function useTreeViewNodes(eo){const to=useTraceViewModel(),no=useSelectedTraceId();return reactExports.useMemo(()=>{const io={},so=new Map,ao=[],lo=eo.map(yo=>{var So,_o,ko;if((So=yo==null?void 0:yo.context)!=null&&So.span_id){const Co={...yo,uiChildren:[]};io[(_o=yo.context)==null?void 0:_o.span_id]=Co;const $o=getSpanType(yo);return($o==null?void 0:$o.toLowerCase())!=="llm"&&ao.push((ko=yo.context)==null?void 0:ko.span_id),Co}return null}).filter(yo=>!!yo),uo=[];lo.forEach(yo=>{var So;if(yo.parent_id&&io[yo.parent_id]){const _o=(So=yo.context)==null?void 0:So.span_id;if(!_o)return;io[yo.parent_id].uiChildren.push(io[_o]),io[yo.parent_id].uiChildren.sort(sortTraceByStartTimeAsc),so.has(yo.parent_id)?so.get(yo.parent_id).push(io[_o]):so.set(yo.parent_id,[io[_o]]);const ko=getSpanType(yo);if((ko==null?void 0:ko.toLowerCase())==="llm"){const{inputMessages:Co,outputMessages:$o}=getSpanMessages(to,no,_o);[...Co,...$o].forEach((Oo,No)=>{const Bo={context:{span_id:`llm-message-${_o}-${No}`},uiIsMessage:!0,data:Oo,parent_id:_o,uiChildren:[]};uo.push(Bo),so.has(_o)?so.get(_o).push(Bo):so.set(_o,[Bo]),io[_o].uiChildren.push(Bo)})}}});const ho=(yo,So)=>{var _o,ko;if(yo.uiLevel=So,So>8&&(_o=yo.context)!=null&&_o.span_id){const Co=ao.indexOf((ko=yo.context)==null?void 0:ko.span_id);Co!==-1&&ao.splice(Co,1)}yo.uiChildren&&yo.uiChildren.forEach(Co=>ho(Co,So+1))},go=lo.filter(yo=>!yo.parent_id||!io[yo.parent_id]).sort(sortTraceByStartTimeAsc);go.forEach(yo=>{ho(yo,0)});const mo=[...lo,...uo];return{rootNodes:go,nodes:mo,parentIdLookUp:so,defaultOpenItems:ao}},[eo,to,no])}const sortTraceByStartTimeAsc=(eo,to)=>eo.start_time&&to.start_time?Date.parse(eo.start_time)-Date.parse(to.start_time):1,useSpanTreeNodeStyles=makeStyles({spanName:{fontSize:"14px",color:tokens$1.colorNeutralForeground2,...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap"},aside:{display:"flex",flexWrap:"nowrap",justifyContent:"flex-end",marginLeft:"auto",...shorthands.flex(0,0,"auto"),...shorthands.padding("0px","4px","0px","0px"),...shorthands.gap(tokens$1.spacingHorizontalXS)},node:{height:"36px",":hover":{backgroundColor:"rgba(189, 189, 189,0.15)"},"[aria-selected='true']":{backgroundColor:"rgba(220, 220, 220, 0.5)"},...shorthands.borderRadius("4px")},node_dark:{":hover":{backgroundColor:"rgba(70, 70, 70,0.5)"},"[aria-selected='true']":{backgroundColor:"rgba(90, 90, 90, 0.5)"}},selectedBar:{position:"absolute",backgroundColor:"#1372ED",width:"3px",height:"24px",left:"0px",...shorthands.borderRadius("3px")},root:{display:"flex",flexWrap:"nowrap"},toggleButton:{marginLeft:"-6px",marginRight:"-2px"},lastInputMessage:{...shorthands.margin("0px","0px","0px","4px"),fontSize:"12px",color:tokens$1.colorNeutralForeground2},lastInputMessageLabel:shorthands.margin("0px","4px","0px","0px"),roleBadge:{marginLeft:"6px",marginRight:"6px"},expandButton:{position:"absolute",left:"0",top:"0",bottom:"0",...shorthands.borderRadius("0px"),":hover":{backgroundColor:tokens$1.colorNeutralBackground3Hover}}}),LLMMessageTreeNode=({node:eo})=>{var go,mo,yo,So;const to=eo.data,no=useSpanTreeNodeStyles(),io=useSelectedLLMMessage(),so=(io==null?void 0:io.id)===((go=eo.context)==null?void 0:go.span_id),ao=useLocStrings(),lo=!!to.content,uo=!!to.tool_calls,ho=!!to.function_call;return jsxRuntimeExports.jsxs(TreeItemLayout,{className:no.node,"aria-selected":so,children:[so&&jsxRuntimeExports.jsx("div",{className:no.selectedBar}),lo&&jsxRuntimeExports.jsx(Badge$2,{icon:jsxRuntimeExports.jsx(Mail16Regular,{}),iconPosition:"after",appearance:"ghost",size:"large",className:no.roleBadge,"data-tree-path-id":((mo=eo.context)==null?void 0:mo.span_id)??"",style:{backgroundColor:tokens$1.colorBrandBackground2,color:tokens$1.colorBrandForeground2,borderColor:tokens$1.colorBrandForeground2},children:ao.message}),uo&&jsxRuntimeExports.jsx(Badge$2,{icon:jsxRuntimeExports.jsx(Code16Regular,{}),iconPosition:"after",appearance:"ghost",size:"large",className:no.roleBadge,"data-tree-path-id":((yo=eo.context)==null?void 0:yo.span_id)??"",style:{backgroundColor:tokens$1.colorPaletteLightGreenBackground1,color:tokens$1.colorPaletteLightGreenForeground1,borderColor:tokens$1.colorPaletteLightGreenForeground1},children:ao.tool_calls}),ho&&jsxRuntimeExports.jsx(Badge$2,{icon:jsxRuntimeExports.jsx(Code16Regular,{}),iconPosition:"after",appearance:"ghost",size:"large",className:no.roleBadge,"data-tree-path-id":((So=eo.context)==null?void 0:So.span_id)??"",style:{backgroundColor:tokens$1.colorPaletteLightGreenBackground1,color:tokens$1.colorPaletteLightGreenForeground1,borderColor:tokens$1.colorPaletteLightGreenForeground1},children:ao.function_call}),jsxRuntimeExports.jsx(LLMMessageSenderBadge,{name:to.name,role:to.role,className:no.roleBadge}),to.name]})},useIsLeafSpan=eo=>{var io;const no=reactExports.useContext(SpansTreeContext).parentIdLookUp;return!no.get(eo)||((io=no.get(eo))==null?void 0:io.length)===0},useToggleCollapse=()=>{const{setTreeOpenIds:eo}=reactExports.useContext(SpansTreeContext);return reactExports.useCallback(to=>{eo(no=>no.has(to)?no.delete(to):no.add(to))},[eo])},useIsOpen=eo=>reactExports.useContext(SpansTreeContext).treeOpenIds.has(eo),AgentTreeItemAside=({span:eo})=>{if(!eo.attributes)return null;const to=eo.attributes.from,no=eo.attributes.to,io=eo.attributes.entity;return to&&no?jsxRuntimeExports.jsx(Tag$2,{size:"extra-small",children:`${to} -> ${no}`}):io?jsxRuntimeExports.jsxs(Tag$2,{size:"extra-small",children:[jsxRuntimeExports.jsx("strong",{children:"Entity: "}),io]}):null},TreeNode$1=({node:eo})=>{var So,_o,ko,Co,$o,Ro,Oo,No,Mo,Bo,Po,Lo;const to=useSpanTreeNodeStyles(),io=useSelectedSpanId()===((So=eo==null?void 0:eo.context)==null?void 0:So.span_id),so=useToggleCollapse(),ao=useIsLeafSpan(((_o=eo.context)==null?void 0:_o.span_id)??""),lo=useIsOpen(((ko=eo.context)==null?void 0:ko.span_id)??""),uo=useIsDark(),ho=agentSpanNames.has(((Co=eo.name)==null?void 0:Co.toLowerCase())??""),go=getIsAgentsVisualizationEnabled();useStaticStyles$1();const mo=reactExports.useCallback(Go=>{var Do;Go.preventDefault(),Go.stopPropagation(),so(((Do=eo.context)==null?void 0:Do.span_id)??"")},[($o=eo.context)==null?void 0:$o.span_id,so]),yo=ao?null:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle",size:"small",onClick:mo,className:to.expandButton,icon:lo?jsxRuntimeExports.jsx(ChevronDown16Regular,{}):jsxRuntimeExports.jsx(ChevronRight16Regular,{})});return ho&&go?jsxRuntimeExports.jsx(TreeItemLayout,{className:mergeClasses(to.node,uo&&to.node_dark),"aria-selected":io,expandIcon:yo,aside:jsxRuntimeExports.jsxs("div",{className:to.aside,children:[((Oo=(Ro=eo==null?void 0:eo.status)==null?void 0:Ro.status_code)==null?void 0:Oo.toLowerCase())==="error"&&jsxRuntimeExports.jsx(StatusText,{statusCode:(No=eo.status)==null?void 0:No.status_code,tooltipContent:eo.status.description,size:UISize.extraSmall}),jsxRuntimeExports.jsx(NodeToken,{span:eo,size:UISize.extraSmall}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:eo.start_time,endTimeISOString:eo.end_time,size:UISize.extraSmall})]}),children:jsxRuntimeExports.jsx(AgentMessageSenderRenderer,{position:"left",data:{category:ChatMessageCategory.Chatbot,from:"",content:[{span:eo}]}})}):jsxRuntimeExports.jsxs(TreeItemLayout,{className:mergeClasses(to.node,uo&&to.node_dark),"aria-selected":io,expandIcon:yo,aside:jsxRuntimeExports.jsxs("div",{className:to.aside,children:[((Bo=(Mo=eo==null?void 0:eo.status)==null?void 0:Mo.status_code)==null?void 0:Bo.toLowerCase())==="error"&&jsxRuntimeExports.jsx(StatusText,{statusCode:(Po=eo.status)==null?void 0:Po.status_code,tooltipContent:eo.status.description,size:UISize.extraSmall}),jsxRuntimeExports.jsx(NodeToken,{span:eo,size:UISize.extraSmall}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:eo.start_time,endTimeISOString:eo.end_time,size:UISize.extraSmall})]}),children:[io&&jsxRuntimeExports.jsx("div",{className:to.selectedBar}),eo&&jsxRuntimeExports.jsx(SpanType,{span:eo,"data-tree-path-id":((Lo=eo.context)==null?void 0:Lo.span_id)??""}),jsxRuntimeExports.jsx(Tooltip,{content:eo.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:to.spanName,children:ho?jsxRuntimeExports.jsx(AgentTreeItemAside,{span:eo}):eo.name})})]})},useStaticStyles$1=makeStaticStyles({".fui-TreeItemLayout__main":{flex:"0 1 auto",width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",display:"flex",gap:"6px",position:"static"},".fui-TreeItemLayout":{position:"relative",overflow:"hidden"}}),TreeView=()=>{const[eo,to]=[useSelectedSpanId(),useSetSelectedSpanId()],no=useSetSelectedLLMMessage(),io=useSpansOfSelectedTrace(),so=useClasses$e(),{rootNodes:ao,nodes:lo,parentIdLookUp:uo,defaultOpenItems:ho}=useTreeViewNodes(io),[go,mo]=reactExports.useState(Set$4(ho));useStaticStyles();const yo=useTreeViewHiddenAgentEvents(),[So,_o]=reactExports.useState(ViewStatus.loading),ko=useLoadSpans(io.filter(Co=>{var $o;return(($o=getSpanType(Co))==null?void 0:$o.toLocaleLowerCase())==="llm"}),[BuildInEventName["llm.generated_message"],BuildInEventName["function.inputs"],BuildInEventName["function.output"]]);return reactExports.useEffect(()=>{_o(ViewStatus.loading),ko({onCompleted:Co=>{_o(Co?ViewStatus.error:ViewStatus.loaded)}})},[ko]),reactExports.useEffect(()=>{var $o,Ro;io.some(Oo=>{var No;return((No=Oo==null?void 0:Oo.context)==null?void 0:No.span_id)===eo})||to(((Ro=($o=ao==null?void 0:ao[0])==null?void 0:$o.context)==null?void 0:Ro.span_id)||"")},[So]),reactExports.useLayoutEffect(()=>{const Co={};lo.forEach(Ro=>{var Oo,No;(Oo=Ro.context)!=null&&Oo.span_id&&(Co[(No=Ro.context)==null?void 0:No.span_id]=Ro)});const $o=[];return setTimeout(()=>{var Ro;for(const Oo of lo){const No=(Ro=Oo.context)==null?void 0:Ro.span_id,Mo=Oo.parent_id,Bo=document.querySelector('[data-tree-path-layer="path-layer"]'),Po=document.querySelector(`[data-tree-path-id="${Mo}"]`),Lo=document.querySelector(`[data-tree-path-id="${No}"]`),Go=document.querySelector('[data-tree-path-layer="path-layer"]');if(!Po||!Lo||!Go)continue;const Do=Bo.getBoundingClientRect(),Uo=Po.getBoundingClientRect(),Ho=Lo.getBoundingClientRect(),Yo=Po.offsetLeft+12,qo=Uo.top-Do.top+Uo.height/2,Jo=document.createElement("div");Jo.className=TREE_PATH_CLASSNAME,Jo.style.left=`${Yo}px`,Jo.style.top=`${qo}px`,Jo.style.width=`${Ho.left-Uo.left}px`,Jo.style.height=`${Ho.top-Uo.top}px`,Go.appendChild(Jo),$o.push(Jo)}},0),()=>{$o.forEach(Ro=>{Ro.remove()})}},[go,yo]),jsxRuntimeExports.jsx(SpansTreeContext.Provider,{value:{parentIdLookUp:uo,treeOpenIds:go,setTreeOpenIds:mo},children:jsxRuntimeExports.jsxs(Tree$1,{"aria-label":"Trace Tree",openItems:go,className:so.root,children:[jsxRuntimeExports.jsx("div",{className:so.pathLayer,"data-tree-path-layer":"path-layer"}),ao.map(Co=>{var $o;return jsxRuntimeExports.jsx(RenderTreeNode,{node:Co,onClickMessageNode:Ro=>{var Oo;no({id:((Oo=Ro.context)==null?void 0:Oo.span_id)||"",message:Ro.data}),to("")},onClickSpanNode:Ro=>{var Oo;to(((Oo=Ro.context)==null?void 0:Oo.span_id)||""),no(void 0)}},($o=Co.context)==null?void 0:$o.span_id)})]})})},RenderTreeNode=({node:eo,onClickMessageNode:to,onClickSpanNode:no})=>{var uo,ho,go,mo,yo;const{level:io}=useSubtreeContext_unstable(),so=useTreeViewHiddenAgentEvents(),ao=eo.name,lo=ao&&so.includes(ao);if("uiIsMessage"in eo){const So=eo;return jsxRuntimeExports.jsx(TreeItem,{value:(uo=So.context)==null?void 0:uo.span_id,itemType:"leaf",onClick:_o=>{_o.stopPropagation(),to(So)},style:{[treeItemLevelToken]:io},children:jsxRuntimeExports.jsx(LLMMessageTreeNode,{node:So})},(ho=So.context)==null?void 0:ho.span_id)}else{const So=eo;return jsxRuntimeExports.jsxs(TreeItem,{value:(go=So.context)==null?void 0:go.span_id,itemType:So.uiChildren.length>0?"branch":"leaf",onClick:_o=>{_o.stopPropagation(),no(So)},style:{[treeItemLevelToken]:io},children:[!lo&&jsxRuntimeExports.jsx(TreeNode$1,{node:So},(mo=So.context)==null?void 0:mo.span_id),So.uiChildren.length>0&&jsxRuntimeExports.jsx(Tree$1,{children:So.uiChildren.map(_o=>{var ko;return jsxRuntimeExports.jsx(RenderTreeNode,{node:_o,onClickMessageNode:to,onClickSpanNode:no},(ko=_o==null?void 0:_o.context)==null?void 0:ko.span_id)})})]},(yo=So.context)==null?void 0:yo.span_id)}},useStaticStyles=makeStaticStyles({"fui-TreeItem":{position:"relative"},[`:global(.${TREE_PATH_CLASSNAME})`]:{position:"absolute",boxSizing:"border-box",borderBottomLeftRadius:"8px",borderLeft:`1px solid ${tokens$1.colorNeutralStroke2}`,borderBottom:`1px solid ${tokens$1.colorNeutralStroke2}`}}),useClasses$e=makeStyles({root:{position:"relative"},pathLayer:{position:"absolute",top:0,left:0}}),TraceDetail=({renderLogsPivot:eo})=>{var ko,Co;const to=useClasses$d(),no=useSelectedSpanId(),io=reactExports.useRef(null),so=useTraceDetailRefreshKey(),ao=useSelectedLLMMessage(),lo=useIsGanttChartOpen(),uo=useTraceDetailViewStatus(),ho=useTraceDetailLoadingComponent(),go=useTraceDetailErrorComponent(),mo=useLocStrings(),yo=getIsAgentsVisualizationEnabled(),{ref:So,width:_o}=useResizeObserver();return useDebugFunctions(),reactExports.useEffect(()=>{var $o;lo&&(($o=io.current)==null||$o.updateSize({height:400,width:"100%"}))},[lo]),uo===ViewStatus.error?jsxRuntimeExports.jsx(go,{}):uo===ViewStatus.loading?jsxRuntimeExports.jsx(ho,{}):uo===ViewStatus.hidden?null:jsxRuntimeExports.jsxs("div",{className:to.root,children:[jsxRuntimeExports.jsx("div",{className:to.container,ref:So,children:jsxRuntimeExports.jsxs("div",{className:to.content,children:[jsxRuntimeExports.jsx(Resizable,{enable:{right:!0},minWidth:100,maxWidth:"60%",defaultSize:{width:TREE_NODE_WIDTH+2*TREE_NODE_INDENT+120,height:"100%"},handleComponent:{right:jsxRuntimeExports.jsx("div",{className:to.resizeBar})},children:jsxRuntimeExports.jsx("div",{className:to.leftPane,children:jsxRuntimeExports.jsx(TreeView,{},so)})}),jsxRuntimeExports.jsx("div",{className:to.rightPane,children:jsxRuntimeExports.jsx(NodeDetail,{placeholder:jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:mo.No_span_data}),renderLogsPivot:eo},`${so}-${(ko=ao==null?void 0:ao.message)==null?void 0:ko.role}-${(Co=ao==null?void 0:ao.message)==null?void 0:Co.name}`)},`${no}`)]})}),lo&&jsxRuntimeExports.jsx("div",{className:to.bottomPane,children:jsxRuntimeExports.jsx(Resizable,{ref:io,className:to.ganttContainer,defaultSize:{height:0,width:"100%"},enable:{top:!0},handleComponent:{top:jsxRuntimeExports.jsx("div",{className:to.resizeBarBottom})},children:yo?jsxRuntimeExports.jsx(AgentsVisualizationBottomPane,{containerWidth:_o}):jsxRuntimeExports.jsx(GanttView,{},so)})})]})},useClasses$d=makeStyles({root:{width:"100%",height:"100%"},container:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},summary:{display:"flex",alignItems:"stretch",height:"48px",width:"100%",...shorthands.margin("16px"),...shorthands.gap("1rem")},content:{...shorthands.flex(1),...shorthands.overflow("hidden"),display:"flex"},leftPane:{height:"100%",overflowY:"auto",boxSizing:"border-box",...shorthands.padding("16px")},rightPane:{position:"relative",width:"100%",height:"100%",...shorthands.flex(1),...shorthands.overflow("hidden")},bottomPane:{position:"absolute",backgroundColor:tokens$1.colorNeutralBackground1,bottom:0,width:"100%"},ganttContainer:{...shorthands.padding("16px")},resizeBar:{position:"absolute",top:0,bottom:0,right:"5px",width:"6px",backgroundColor:tokens$1.colorNeutralBackground3,"::before":{content:"''",position:"absolute",top:"50%",right:"1px",marginTop:"-12px",height:"24px",width:"1px",backgroundColor:tokens$1.colorNeutralBackground3Pressed},"::after":{content:"''",position:"absolute",top:"50%",left:"1px",marginTop:"-12px",height:"24px",width:"1px",backgroundColor:tokens$1.colorNeutralBackground3Pressed}},resizeBarBottom:{position:"absolute",left:0,right:0,bottom:"5px",height:"6px",backgroundColor:tokens$1.colorNeutralBackground3,"::before":{content:"''",position:"absolute",left:"50%",bottom:"1px",marginLeft:"-12px",width:"24px",height:"1px",backgroundColor:tokens$1.colorNeutralBackground3Pressed},"::after":{content:"''",position:"absolute",left:"50%",top:"1px",marginLeft:"-12px",width:"24px",height:"1px",backgroundColor:tokens$1.colorNeutralBackground3Pressed}}});function KindText({kind:eo}){return jsxRuntimeExports.jsx(Badge$2,{appearance:"outline",size:"medium",children:eo||UNDEFINED_VALUE_PLACEHOLDER})}function TimeText({time:eo}){const to=timeFormat$1(eo);return jsxRuntimeExports.jsx("time",{children:to})}const CellWrapper=({children:eo})=>{const to=useClasses$c();return jsxRuntimeExports.jsx("div",{className:to.cellWrapper,children:eo})},TextCellWrapper=({children:eo})=>{const to=useClasses$c();return jsxRuntimeExports.jsx("div",{className:to.textCellWrapper,children:jsxRuntimeExports.jsx("p",{className:to.textCellP,children:eo})})},CellSkeleton=({height:eo})=>{const to=useClasses$c();return jsxRuntimeExports.jsx(Skeleton,{className:to.textCellWrapper,children:jsxRuntimeExports.jsx(SkeletonItem,{style:{height:`${eo??20}px`}})})},useClasses$c=makeStyles({cellWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},textCellWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%",width:"100%"},textCellP:{wordWrap:"break-word",maxWidth:"100%",lineHeight:tokens$1.lineHeightBase200,fontSize:tokens$1.fontSizeBase300,maxHeight:"100%",whiteSpace:"normal",...shorthands.padding(tokens$1.spacingVerticalS,tokens$1.spacingHorizontalXS)}}),TraceListJsonCell=({jsonObject:eo,isViewDetailEnabled:to=!1})=>{const no=reactExports.useMemo(()=>typeof eo=="string"?isValidJson(eo)?!1:!isJsonl(eo):!1,[eo]);return jsxRuntimeExports.jsx(CellWrapper,{children:no?jsxRuntimeExports.jsx(TextCellWrapper,{children:formatText(String(eo))}):jsxRuntimeExports.jsx(TraceListObjectCell,{object:eo,isViewDetailEnabled:to})})},TraceListObjectCell=({object:eo,isViewDetailEnabled:to})=>{const no=useIsDark();return to?jsxRuntimeExports.jsx("div",{onClick:io=>io.stopPropagation(),children:jsxRuntimeExports.jsxs(Dialog,{children:[jsxRuntimeExports.jsx(DialogTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx("div",{style:{overflow:"hidden",height:"100%",width:"100%",marginTop:"12px",lineHeight:"16px"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!1,collapsed:1,dark:no,theme:"vscode",disableCustomCollapse:!0})})}),jsxRuntimeExports.jsxs(DialogSurface,{children:[jsxRuntimeExports.jsx("div",{style:{height:"800px",width:"800ppx",marginTop:"12px",lineHeight:"16px",overflow:"auto"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!0,dark:no,theme:"vscode",collapseStringsAfterLength:600})}),jsxRuntimeExports.jsx(DialogActions,{style:{justifyContent:"flex-end"},children:jsxRuntimeExports.jsx(DialogTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx(Button$2,{appearance:"secondary",children:"Close"})})})]})]})}):jsxRuntimeExports.jsx("div",{style:{overflow:"hidden",height:"100%",width:"100%",marginTop:"12px",lineHeight:"16px"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!1,collapseStringsAfterLength:50,collapsed:1,dark:no,theme:"vscode",enablePopUpImageViewer:!1,disableCustomCollapse:!0})})},MAX_LENGTH=80;function formatText(eo){return eo.length>MAX_LENGTH?`${eo.slice(0,MAX_LENGTH)}...`:eo}const MetricsCell=({trace:eo})=>{const to=useClasses$b(),no=30;return eo.evaluations?jsxRuntimeExports.jsx("div",{className:to.wrapper,children:Object.entries(eo.evaluations).map(([io,so])=>{let ao=so.outputs;if(ao=typeof ao=="string"?safeJSONParseV2(ao):ao,ao){if(typeof ao=="object")return Object.entries(ao).map(([lo,uo])=>{const ho=`${lo}`,go=JSON.stringify(uo);return jsxRuntimeExports.jsx(MetricTag,{tag:{name:ho,value:`${go}`},maxValueLength:Math.max(no-ho.length,3)},`${io}_${lo}`)});{const lo=`${io}`;return jsxRuntimeExports.jsx(MetricTag,{tag:{name:lo,value:`${ao}`},maxValueLength:Math.max(no-lo.length,3)},io)}}else return null})}):null},useClasses$b=makeStyles({wrapper:{display:"flex",height:"100%",...shorthands.margin("0px","-8px"),...shorthands.padding("4px"),flexDirection:"row",flexWrap:"wrap",alignItems:"center",...shorthands.gap("4px"),...shorthands.overflow("auto")}}),useOnClickTraceRow=()=>{const eo=useSetSelectedTraceId();return reactExports.useCallback((to,no)=>{eo(to==null?void 0:to.trace_id)},[eo])},useTraceListRows=()=>{const eo=useTraces();return reactExports.useMemo(()=>eo.map(to=>convertToTraceListRow(to)),[eo])},BASIC_WIDTH=100,getColumnChildrenCount=eo=>eo.children?eo==null?void 0:eo.children.reduce((to,no)=>to+getColumnChildrenCount(no),0):eo.minWidth??BASIC_WIDTH,METRICS_COLUMN_KEY="metrics_compact",UN_FILTERABLE_COLUMNS=["Kind","Name"],useTraceListColumns=()=>{const{ref:eo,width:to}=useResizeObserver(),no=useClasses$a(),io=useTraceListRows(),so=useOnClickTraceRow(),ao=useSetTableColumnNames(),lo=useTableHiddenColumnKeys(),uo=useLocStrings(),ho=useTraceListColumnModifier(),go=useSortableColumns(),mo=reactExports.useMemo(()=>genStatusChecker("running"),[]),[yo,So]=React.useState([]);return reactExports.useEffect(()=>{const _o=[{key:"kind",name:uo.Kind,minWidth:100,maxWidth:200,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(KindText,{kind:Do.kind})},{key:"name",name:uo.Name,minWidth:120,maxWidth:300,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(Tooltip,{content:Do.name??"",relationship:"label",children:jsxRuntimeExports.jsx("span",{className:no.nameCell,title:Do.name,onClick:()=>{so(Do,"name")},children:Do.name})})},{key:"input",name:uo.Input,minWidth:180,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:Do.inputs,isViewDetailEnabled:!0})},{key:"output",name:uo.Output,minWidth:180,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:Do.outputs,isViewDetailEnabled:!0})},{key:"start_time",name:uo.Start_time,minWidth:100,maxWidth:300,renderCell:({row:Do})=>jsxRuntimeExports.jsx(TextCellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:Do.start_time})})},{key:"end_time",name:uo.End_time,minWidth:100,maxWidth:300,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TextCellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:Do.end_time})})},{key:"latency",name:uo.Latency,minWidth:120,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:Do.start_time,endTimeISOString:Do.end_time,size:UISize.small})})},{key:"total_tokens",name:uo.Total_tokens,minWidth:100,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(SummaryToken,{trace:Do,size:UISize.small})})},{key:"status",name:uo.Status,minWidth:60,renderCell:({row:Do})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(StatusText,{statusCode:Do.status})})},{key:METRICS_COLUMN_KEY,name:uo.Metrics,minWidth:240,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(MetricsCell,{trace:Do})})}],ko=[];io.forEach(Do=>{Object.entries(Do.evaluations??{}).forEach(([Uo])=>{!ko.includes(Uo)&&Uo&&ko.push(Uo)})});const Co=ko.map(Do=>{const Uo=[],Ho=[];return io.forEach(Yo=>{var ps;const qo=(ps=Yo.evaluations)==null?void 0:ps[Do];if(!qo||!qo.outputs)return;const Jo=typeof qo.outputs=="string"?safeJSONParseV2(qo.outputs):qo.outputs;Object.keys(Jo).forEach(Qo=>{const hs=Jo[Qo];!Uo.includes(Qo)&&hs!==null&&(Uo.push(Qo),Ho.push({key:`evaluation-${Do}-${Qo}-value`,name:Qo,renderCell:({row:gs})=>{var ks,Os,Ts;if(mo(gs.status))return jsxRuntimeExports.jsx(CellSkeleton,{});let ys;const vs=(Ts=(Os=(ks=gs==null?void 0:gs.evaluations)==null?void 0:ks[Do])==null?void 0:Os.outputs)==null?void 0:Ts[Qo];if(vs===void 0)ys="";else if(vs===null)ys="null";else if(typeof vs=="number")ys=formatNumber$1(vs);else{if(typeof vs=="object")return jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:vs,isViewDetailEnabled:!0});ys=`${vs}`}return ys}}))})}),{name:Do,key:`evaluation-${Do}`,children:Ho}});let $o=[..._o,{key:"evaluations",name:"Metrics",minWidth:450,children:Co}];$o=ho?ho($o,io):$o;const Ro=$o.filter(Do=>Do.key!=="evaluations"),Oo=$o.find(Do=>Do.key==="evaluations");ao({normalColumns:Ro.map(Do=>({name:Do.name,key:Do.key})).filter(Do=>!UN_FILTERABLE_COLUMNS.includes(Do.name)),evaluationColumns:Oo.children.map(Do=>({name:Do.name,key:Do.key}))});const No=Ro.filter(Do=>!lo.includes(Do.key)),Mo={...Oo,children:Oo.children.filter(Do=>!lo.includes(Do.key))},Bo=[...No,Mo],Po=Bo.reduce((Do,Uo)=>Do+getColumnChildrenCount(Uo),0),Lo=Do=>{if(Do.children)return{...Do,children:Do.children.map(Lo)};const Uo=Do.minWidth??BASIC_WIDTH,Ho=Do.maxWidth,Yo=to?(to-24)/Po*Uo:200;return{...Do,width:Yo,minWidth:Uo,maxWidth:Ho}},Go=Bo.map(Lo).map(Do=>{const Uo=Do.key;return Uo?{...Do,key:Do.key,sortable:!!(Uo&&go.includes(Uo))}:Do});So(Go)},[io,so,no.nameCell,ho,lo,uo,ao,go,to,mo]),{columns:yo,ref:eo}},useClasses$a=makeStyles({typeBadge:{...shorthands.padding(tokens$1.spacingVerticalXXS,tokens$1.spacingHorizontalS)},latencyWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyItems:"center","> svg":{marginRight:"5px"}},nameCell:{color:tokens$1.colorBrandForeground1,fontWeight:tokens$1.fontWeightSemibold,":hover":{...shorthands.textDecoration("underline")}}});let Text$1=class FSt{lineAt(to){if(to<0||to>this.length)throw new RangeError(`Invalid position ${to} in document of length ${this.length}`);return this.lineInner(to,!1,1,0)}line(to){if(to<1||to>this.lines)throw new RangeError(`Invalid line number ${to} in ${this.lines}-line document`);return this.lineInner(to,!0,1,0)}replace(to,no,io){[to,no]=clip(this,to,no);let so=[];return this.decompose(0,to,so,2),io.length&&io.decompose(0,io.length,so,3),this.decompose(no,this.length,so,1),TextNode$1.from(so,this.length-(no-to)+io.length)}append(to){return this.replace(this.length,this.length,to)}slice(to,no=this.length){[to,no]=clip(this,to,no);let io=[];return this.decompose(to,no,io,0),TextNode$1.from(io,no-to)}eq(to){if(to==this)return!0;if(to.length!=this.length||to.lines!=this.lines)return!1;let no=this.scanIdentical(to,1),io=this.length-this.scanIdentical(to,-1),so=new RawTextCursor(this),ao=new RawTextCursor(to);for(let lo=no,uo=no;;){if(so.next(lo),ao.next(lo),lo=0,so.lineBreak!=ao.lineBreak||so.done!=ao.done||so.value!=ao.value)return!1;if(uo+=so.value.length,so.done||uo>=io)return!0}}iter(to=1){return new RawTextCursor(this,to)}iterRange(to,no=this.length){return new PartialTextCursor(this,to,no)}iterLines(to,no){let io;if(to==null)io=this.iter();else{no==null&&(no=this.lines+1);let so=this.line(to).from;io=this.iterRange(so,Math.max(so,no==this.lines+1?this.length:no<=1?0:this.line(no-1).to))}return new LineCursor(io)}toString(){return this.sliceString(0)}toJSON(){let to=[];return this.flatten(to),to}constructor(){}static of(to){if(to.length==0)throw new RangeError("A document must have at least one line");return to.length==1&&!to[0]?FSt.empty:to.length<=32?new TextLeaf(to):TextNode$1.from(TextLeaf.split(to,[]))}};class TextLeaf extends Text$1{constructor(to,no=textLength(to)){super(),this.text=to,this.length=no}get lines(){return this.text.length}get children(){return null}lineInner(to,no,io,so){for(let ao=0;;ao++){let lo=this.text[ao],uo=so+lo.length;if((no?io:uo)>=to)return new Line(so,uo,io,lo);so=uo+1,io++}}decompose(to,no,io,so){let ao=to<=0&&no>=this.length?this:new TextLeaf(sliceText(this.text,to,no),Math.min(no,this.length)-Math.max(0,to));if(so&1){let lo=io.pop(),uo=appendText(ao.text,lo.text.slice(),0,ao.length);if(uo.length<=32)io.push(new TextLeaf(uo,lo.length+ao.length));else{let ho=uo.length>>1;io.push(new TextLeaf(uo.slice(0,ho)),new TextLeaf(uo.slice(ho)))}}else io.push(ao)}replace(to,no,io){if(!(io instanceof TextLeaf))return super.replace(to,no,io);[to,no]=clip(this,to,no);let so=appendText(this.text,appendText(io.text,sliceText(this.text,0,to)),no),ao=this.length+io.length-(no-to);return so.length<=32?new TextLeaf(so,ao):TextNode$1.from(TextLeaf.split(so,[]),ao)}sliceString(to,no=this.length,io=` +`)),reactExports.useEffect(()=>{io(ViewStatus.loading),so({onCompleted:_o=>{io(_o?ViewStatus.error:ViewStatus.loaded)}}),go(ViewStatus.loading),mo({onCompleted:_o=>{go(_o?ViewStatus.error:ViewStatus.loaded)}})},[so,mo]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:to.Query})})}),ho===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),ho===ViewStatus.loaded&&(So??""),ho===ViewStatus.error&&jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{go(ViewStatus.loading),mo({onCompleted:_o=>{go(_o?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})]}),jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:to.Documents})})}),no===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),no===ViewStatus.loaded&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:uo.map(_o=>jsxRuntimeExports.jsx(Document$1,{document:_o},_o["document.id"]))}),no===ViewStatus.error&&jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{io(ViewStatus.loading),so({onCompleted:_o=>{io(_o?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})]})]})},Document$1=({document:eo})=>{const to=useRetrievalNodeDetailClasses(),[no,io]=reactExports.useState(["content"]),so=reactExports.useCallback((lo,uo)=>{io(uo.openItems)},[]),ao=useLocStrings();return jsxRuntimeExports.jsxs(Card,{style:{background:tokens$1.colorNeutralBackground2},children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:6},children:[jsxRuntimeExports.jsx(Document16Regular,{}),jsxRuntimeExports.jsx("div",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:"id"})," ",eo["document.id"]]}),relationship:"description",children:jsxRuntimeExports.jsxs("span",{children:[ao.document," ",eo["document.id"]]})})}),jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:ao.score})," ",eo["document.score"]]}),relationship:"description",children:jsxRuntimeExports.jsxs(Badge$2,{appearance:"outline",children:["score ",floatFormatter(eo["document.score"])]})})]}),jsxRuntimeExports.jsx(Divider$2,{}),jsxRuntimeExports.jsx(Card,{style:{background:tokens$1.colorNeutralBackground3},children:jsxRuntimeExports.jsx(Accordion,{openItems:no,onToggle:so,collapsible:!0,multiple:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"content",children:[jsxRuntimeExports.jsx(AccordionHeader,{className:to.accordionHeader,children:ao.content}),jsxRuntimeExports.jsx(AccordionPanel,{children:jsxRuntimeExports.jsx(MarkdownViewer,{content:eo["document.content"]})})]})})}),jsxRuntimeExports.jsx(JsonNodeCard,{title:"metadata",src:eo["document.metadata"],wrapperStyle:{background:tokens$1.colorNeutralBackground3}})]})},RetrievalSpanDetailContent=()=>{var ho;const eo=useSelectedSpan(),[to,no]=reactExports.useState("retrieval"),io=useNodeDetailClasses(),so=useLocStrings(),ao=(ho=eo==null?void 0:eo.events)==null?void 0:ho.filter(go=>go.name===BuildInEventName.exception),lo=(ao==null?void 0:ao.length)??0,uo=[{key:"retrieval",name:so.Retrieval},{key:"raw",name:so.Raw_JSON},{key:"error",name:so.Exception,icon:jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:lo>0?"danger":"informative",count:lo,size:"small",showZero:!0})}];return jsxRuntimeExports.jsxs("div",{className:io.layoutLeft,children:[jsxRuntimeExports.jsx(SpanDetailTabs,{tabs:uo,selectedTab:to,setSelectedTab:no}),jsxRuntimeExports.jsx(SpanDetailErrorMessageBar,{setSelectedTab:no}),jsxRuntimeExports.jsxs("div",{className:io.content,children:[to==="retrieval"&&jsxRuntimeExports.jsx(RetrievalNodeInfo,{}),to==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),to==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{})]})]})},NodeModel=()=>{const eo=useNodeDetailClasses(),to=useSelectedSpan(),{"llm.response.model":no}=(to==null?void 0:to.attributes)||{};return no?jsxRuntimeExports.jsx("div",{className:eo.headerModalName,children:no}):null},SpanDetailHeader=({span:eo,showEvaluations:to,showRightPanel:no,setShowRightPanel:io})=>{const so=useNodeDetailClasses();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SpanType,{span:eo,showText:!1,className:so.headerSpan}),jsxRuntimeExports.jsx(Tooltip,{content:eo.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:so.headerTitle,children:`${eo.name}`})}),jsxRuntimeExports.jsxs("div",{className:so.headerRight,children:[jsxRuntimeExports.jsx(NodeModel,{}),jsxRuntimeExports.jsx(NodeToken,{span:eo,size:UISize.small}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:eo.start_time,endTimeISOString:eo.end_time,size:UISize.small}),to&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Divider$2,{vertical:!0}),no?jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",icon:jsxRuntimeExports.jsx(PanelRightContract20Regular,{}),onClick:()=>io(!1)}):jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",icon:jsxRuntimeExports.jsx(PanelRightExpand20Regular,{}),onClick:()=>io(!0)})]})]})]})},NodeDetail=({placeholder:eo,renderLogsPivot:to})=>{var Bo,Fo;const no=useSelectedSpan(),io=getSpanType(no),so=useRootSpanIdOfSelectedSpans(),ao=useSelectedLLMMessage(),lo=useNodeDetailClasses(),uo=useShowTraceDetailRightPanel(),ho=useSetShowTraceDetailRightPanel(),mo=useEvaluationSpansOfSelectedSpan().length,yo=so===((Bo=no==null?void 0:no.context)==null?void 0:Bo.span_id),So=(io==null?void 0:io.toLowerCase())==="http",_o=(io==null?void 0:io.toLowerCase())==="llm",ko=(io==null?void 0:io.toLowerCase())==="retrieval",Co=(io==null?void 0:io.toLowerCase())==="embedding",$o=!!ao,Ro=agentSpanNames.has(((Fo=no==null?void 0:no.name)==null?void 0:Fo.toLowerCase())??""),Oo=getIsAgentsVisualizationEnabled();let No=null,Mo=null;if($o)No=jsxRuntimeExports.jsx(LLMMessageNodeHeader,{selectedLLMMessage:ao.message}),Mo=jsxRuntimeExports.jsx(LLMMessageNodeContent,{selectedLLMMessage:ao.message});else if(no){const Lo=yo&&mo>0;No=jsxRuntimeExports.jsx(SpanDetailHeader,{span:no,showEvaluations:Lo,showRightPanel:uo,setShowRightPanel:ho}),Mo=jsxRuntimeExports.jsx(DefaultSpanDetailContent,{showEvaluationPanel:uo&&Lo,showLogs:yo,renderLogsPivot:to}),_o&&(Mo=jsxRuntimeExports.jsx(LLMSpanContent,{})),So&&(Mo=jsxRuntimeExports.jsx(HttpSpanDetailContent,{})),ko&&(Mo=jsxRuntimeExports.jsx(RetrievalSpanDetailContent,{})),Co&&(Mo=jsxRuntimeExports.jsx(EmbeddingSpanDetailContent,{})),Ro&&Oo&&(Mo=jsxRuntimeExports.jsx(MultiAgentsSpanDetail,{}),No=jsxRuntimeExports.jsx(AgentsHeader,{span:no}))}else No=null,Mo=jsxRuntimeExports.jsx("div",{className:lo.layoutLeft,children:eo});return jsxRuntimeExports.jsxs("div",{className:lo.wrapper,children:[No?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:lo.header,children:No}),jsxRuntimeExports.jsx(Divider$2,{className:lo.divider})]}):null,jsxRuntimeExports.jsx("div",{className:lo.layout,children:Mo})]})},UNDEFINED_VALUE_PLACEHOLDER="N/A",RUNNING_TRACE_POLLING_GAP=3e4,SPAN_POLLING_GAP=3e4;let LOCAL_URL_PREFIX="";const TREE_PATH_CLASSNAME="__trace-tree-node-path",SpansTreeContext=reactExports.createContext({parentIdLookUp:new Map,treeOpenIds:Set$4(),setTreeOpenIds:()=>{}});function useTreeViewNodes(eo){const to=useTraceViewModel(),no=useSelectedTraceId();return reactExports.useMemo(()=>{const io={},so=new Map,ao=[],lo=eo.map(yo=>{var So,_o,ko;if((So=yo==null?void 0:yo.context)!=null&&So.span_id){const Co={...yo,uiChildren:[]};io[(_o=yo.context)==null?void 0:_o.span_id]=Co;const $o=getSpanType(yo);return($o==null?void 0:$o.toLowerCase())!=="llm"&&ao.push((ko=yo.context)==null?void 0:ko.span_id),Co}return null}).filter(yo=>!!yo),uo=[];lo.forEach(yo=>{var So;if(yo.parent_id&&io[yo.parent_id]){const _o=(So=yo.context)==null?void 0:So.span_id;if(!_o)return;io[yo.parent_id].uiChildren.push(io[_o]),io[yo.parent_id].uiChildren.sort(sortTraceByStartTimeAsc),so.has(yo.parent_id)?so.get(yo.parent_id).push(io[_o]):so.set(yo.parent_id,[io[_o]]);const ko=getSpanType(yo);if((ko==null?void 0:ko.toLowerCase())==="llm"){const{inputMessages:Co,outputMessages:$o}=getSpanMessages(to,no,_o);[...Co,...$o].forEach((Oo,No)=>{const Bo={context:{span_id:`llm-message-${_o}-${No}`},uiIsMessage:!0,data:Oo,parent_id:_o,uiChildren:[]};uo.push(Bo),so.has(_o)?so.get(_o).push(Bo):so.set(_o,[Bo]),io[_o].uiChildren.push(Bo)})}}});const ho=(yo,So)=>{var _o,ko;if(yo.uiLevel=So,So>8&&(_o=yo.context)!=null&&_o.span_id){const Co=ao.indexOf((ko=yo.context)==null?void 0:ko.span_id);Co!==-1&&ao.splice(Co,1)}yo.uiChildren&&yo.uiChildren.forEach(Co=>ho(Co,So+1))},go=lo.filter(yo=>!yo.parent_id||!io[yo.parent_id]).sort(sortTraceByStartTimeAsc);go.forEach(yo=>{ho(yo,0)});const mo=[...lo,...uo];return{rootNodes:go,nodes:mo,parentIdLookUp:so,defaultOpenItems:ao}},[eo,to,no])}const sortTraceByStartTimeAsc=(eo,to)=>eo.start_time&&to.start_time?Date.parse(eo.start_time)-Date.parse(to.start_time):1,useSpanTreeNodeStyles=makeStyles({spanName:{fontSize:"14px",color:tokens$1.colorNeutralForeground2,...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap"},aside:{display:"flex",flexWrap:"nowrap",justifyContent:"flex-end",marginLeft:"auto",...shorthands.flex(0,0,"auto"),...shorthands.padding("0px","4px","0px","0px"),...shorthands.gap(tokens$1.spacingHorizontalXS)},node:{height:"36px",":hover":{backgroundColor:"rgba(189, 189, 189,0.15)"},"[aria-selected='true']":{backgroundColor:"rgba(220, 220, 220, 0.5)"},...shorthands.borderRadius("4px")},node_dark:{":hover":{backgroundColor:"rgba(70, 70, 70,0.5)"},"[aria-selected='true']":{backgroundColor:"rgba(90, 90, 90, 0.5)"}},selectedBar:{position:"absolute",backgroundColor:"#1372ED",width:"3px",height:"24px",left:"0px",...shorthands.borderRadius("3px")},root:{display:"flex",flexWrap:"nowrap"},toggleButton:{marginLeft:"-6px",marginRight:"-2px"},lastInputMessage:{...shorthands.margin("0px","0px","0px","4px"),fontSize:"12px",color:tokens$1.colorNeutralForeground2},lastInputMessageLabel:shorthands.margin("0px","4px","0px","0px"),roleBadge:{marginLeft:"6px",marginRight:"6px"},expandButton:{position:"absolute",left:"0",top:"0",bottom:"0",...shorthands.borderRadius("0px"),":hover":{backgroundColor:tokens$1.colorNeutralBackground3Hover}}}),LLMMessageTreeNode=({node:eo})=>{var go,mo,yo,So;const to=eo.data,no=useSpanTreeNodeStyles(),io=useSelectedLLMMessage(),so=(io==null?void 0:io.id)===((go=eo.context)==null?void 0:go.span_id),ao=useLocStrings(),lo=!!to.content,uo=!!to.tool_calls,ho=!!to.function_call;return jsxRuntimeExports.jsxs(TreeItemLayout,{className:no.node,"aria-selected":so,children:[so&&jsxRuntimeExports.jsx("div",{className:no.selectedBar}),lo&&jsxRuntimeExports.jsx(Badge$2,{icon:jsxRuntimeExports.jsx(Mail16Regular,{}),iconPosition:"after",appearance:"ghost",size:"large",className:no.roleBadge,"data-tree-path-id":((mo=eo.context)==null?void 0:mo.span_id)??"",style:{backgroundColor:tokens$1.colorBrandBackground2,color:tokens$1.colorBrandForeground2,borderColor:tokens$1.colorBrandForeground2},children:ao.message}),uo&&jsxRuntimeExports.jsx(Badge$2,{icon:jsxRuntimeExports.jsx(Code16Regular,{}),iconPosition:"after",appearance:"ghost",size:"large",className:no.roleBadge,"data-tree-path-id":((yo=eo.context)==null?void 0:yo.span_id)??"",style:{backgroundColor:tokens$1.colorPaletteLightGreenBackground1,color:tokens$1.colorPaletteLightGreenForeground1,borderColor:tokens$1.colorPaletteLightGreenForeground1},children:ao.tool_calls}),ho&&jsxRuntimeExports.jsx(Badge$2,{icon:jsxRuntimeExports.jsx(Code16Regular,{}),iconPosition:"after",appearance:"ghost",size:"large",className:no.roleBadge,"data-tree-path-id":((So=eo.context)==null?void 0:So.span_id)??"",style:{backgroundColor:tokens$1.colorPaletteLightGreenBackground1,color:tokens$1.colorPaletteLightGreenForeground1,borderColor:tokens$1.colorPaletteLightGreenForeground1},children:ao.function_call}),jsxRuntimeExports.jsx(LLMMessageSenderBadge,{name:to.name,role:to.role,className:no.roleBadge}),to.name]})},useIsLeafSpan=eo=>{var io;const no=reactExports.useContext(SpansTreeContext).parentIdLookUp;return!no.get(eo)||((io=no.get(eo))==null?void 0:io.length)===0},useToggleCollapse=()=>{const{setTreeOpenIds:eo}=reactExports.useContext(SpansTreeContext);return reactExports.useCallback(to=>{eo(no=>no.has(to)?no.delete(to):no.add(to))},[eo])},useIsOpen=eo=>reactExports.useContext(SpansTreeContext).treeOpenIds.has(eo),AgentTreeItemAside=({span:eo})=>{if(!eo.attributes)return null;const to=eo.attributes.from,no=eo.attributes.to,io=eo.attributes.entity;return to&&no?jsxRuntimeExports.jsx(Tag$2,{size:"extra-small",children:`${to} -> ${no}`}):io?jsxRuntimeExports.jsxs(Tag$2,{size:"extra-small",children:[jsxRuntimeExports.jsx("strong",{children:"Entity: "}),io]}):null},TreeNode$1=({node:eo})=>{var So,_o,ko,Co,$o,Ro,Oo,No,Mo,Bo,Fo,Lo;const to=useSpanTreeNodeStyles(),io=useSelectedSpanId()===((So=eo==null?void 0:eo.context)==null?void 0:So.span_id),so=useToggleCollapse(),ao=useIsLeafSpan(((_o=eo.context)==null?void 0:_o.span_id)??""),lo=useIsOpen(((ko=eo.context)==null?void 0:ko.span_id)??""),uo=useIsDark(),ho=agentSpanNames.has(((Co=eo.name)==null?void 0:Co.toLowerCase())??""),go=getIsAgentsVisualizationEnabled();useStaticStyles$1();const mo=reactExports.useCallback(Go=>{var Do;Go.preventDefault(),Go.stopPropagation(),so(((Do=eo.context)==null?void 0:Do.span_id)??"")},[($o=eo.context)==null?void 0:$o.span_id,so]),yo=ao?null:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle",size:"small",onClick:mo,className:to.expandButton,icon:lo?jsxRuntimeExports.jsx(ChevronDown16Regular,{}):jsxRuntimeExports.jsx(ChevronRight16Regular,{})});return ho&&go?jsxRuntimeExports.jsx(TreeItemLayout,{className:mergeClasses(to.node,uo&&to.node_dark),"aria-selected":io,expandIcon:yo,aside:jsxRuntimeExports.jsxs("div",{className:to.aside,children:[((Oo=(Ro=eo==null?void 0:eo.status)==null?void 0:Ro.status_code)==null?void 0:Oo.toLowerCase())==="error"&&jsxRuntimeExports.jsx(StatusText,{statusCode:(No=eo.status)==null?void 0:No.status_code,tooltipContent:eo.status.description,size:UISize.extraSmall}),jsxRuntimeExports.jsx(NodeToken,{span:eo,size:UISize.extraSmall}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:eo.start_time,endTimeISOString:eo.end_time,size:UISize.extraSmall})]}),children:jsxRuntimeExports.jsx(AgentMessageSenderRenderer,{position:"left",data:{category:ChatMessageCategory.Chatbot,from:"",content:[{span:eo}]}})}):jsxRuntimeExports.jsxs(TreeItemLayout,{className:mergeClasses(to.node,uo&&to.node_dark),"aria-selected":io,expandIcon:yo,aside:jsxRuntimeExports.jsxs("div",{className:to.aside,children:[((Bo=(Mo=eo==null?void 0:eo.status)==null?void 0:Mo.status_code)==null?void 0:Bo.toLowerCase())==="error"&&jsxRuntimeExports.jsx(StatusText,{statusCode:(Fo=eo.status)==null?void 0:Fo.status_code,tooltipContent:eo.status.description,size:UISize.extraSmall}),jsxRuntimeExports.jsx(NodeToken,{span:eo,size:UISize.extraSmall}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:eo.start_time,endTimeISOString:eo.end_time,size:UISize.extraSmall})]}),children:[io&&jsxRuntimeExports.jsx("div",{className:to.selectedBar}),eo&&jsxRuntimeExports.jsx(SpanType,{span:eo,"data-tree-path-id":((Lo=eo.context)==null?void 0:Lo.span_id)??""}),jsxRuntimeExports.jsx(Tooltip,{content:eo.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:to.spanName,children:ho?jsxRuntimeExports.jsx(AgentTreeItemAside,{span:eo}):eo.name})})]})},useStaticStyles$1=makeStaticStyles({".fui-TreeItemLayout__main":{flex:"0 1 auto",width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",display:"flex",gap:"6px",position:"static"},".fui-TreeItemLayout":{position:"relative",overflow:"hidden"}}),TreeView=()=>{const[eo,to]=[useSelectedSpanId(),useSetSelectedSpanId()],no=useSetSelectedLLMMessage(),io=useSpansOfSelectedTrace(),so=useClasses$e(),{rootNodes:ao,nodes:lo,parentIdLookUp:uo,defaultOpenItems:ho}=useTreeViewNodes(io),[go,mo]=reactExports.useState(Set$4(ho));useStaticStyles();const yo=useTreeViewHiddenAgentEvents(),[So,_o]=reactExports.useState(ViewStatus.loading),ko=useLoadSpans(io.filter(Co=>{var $o;return(($o=getSpanType(Co))==null?void 0:$o.toLocaleLowerCase())==="llm"}),[BuildInEventName["llm.generated_message"],BuildInEventName["function.inputs"],BuildInEventName["function.output"]]);return reactExports.useEffect(()=>{_o(ViewStatus.loading),ko({onCompleted:Co=>{_o(Co?ViewStatus.error:ViewStatus.loaded)}})},[ko]),reactExports.useEffect(()=>{var $o,Ro;io.some(Oo=>{var No;return((No=Oo==null?void 0:Oo.context)==null?void 0:No.span_id)===eo})||to(((Ro=($o=ao==null?void 0:ao[0])==null?void 0:$o.context)==null?void 0:Ro.span_id)||"")},[So]),reactExports.useLayoutEffect(()=>{const Co={};lo.forEach(Ro=>{var Oo,No;(Oo=Ro.context)!=null&&Oo.span_id&&(Co[(No=Ro.context)==null?void 0:No.span_id]=Ro)});const $o=[];return setTimeout(()=>{var Ro;for(const Oo of lo){const No=(Ro=Oo.context)==null?void 0:Ro.span_id,Mo=Oo.parent_id,Bo=document.querySelector('[data-tree-path-layer="path-layer"]'),Fo=document.querySelector(`[data-tree-path-id="${Mo}"]`),Lo=document.querySelector(`[data-tree-path-id="${No}"]`),Go=document.querySelector('[data-tree-path-layer="path-layer"]');if(!Fo||!Lo||!Go)continue;const Do=Bo.getBoundingClientRect(),Uo=Fo.getBoundingClientRect(),Ho=Lo.getBoundingClientRect(),Yo=Fo.offsetLeft+12,qo=Uo.top-Do.top+Uo.height/2,Jo=document.createElement("div");Jo.className=TREE_PATH_CLASSNAME,Jo.style.left=`${Yo}px`,Jo.style.top=`${qo}px`,Jo.style.width=`${Ho.left-Uo.left}px`,Jo.style.height=`${Ho.top-Uo.top}px`,Go.appendChild(Jo),$o.push(Jo)}},0),()=>{$o.forEach(Ro=>{Ro.remove()})}},[go,yo]),jsxRuntimeExports.jsx(SpansTreeContext.Provider,{value:{parentIdLookUp:uo,treeOpenIds:go,setTreeOpenIds:mo},children:jsxRuntimeExports.jsxs(Tree$1,{"aria-label":"Trace Tree",openItems:go,className:so.root,children:[jsxRuntimeExports.jsx("div",{className:so.pathLayer,"data-tree-path-layer":"path-layer"}),ao.map(Co=>{var $o;return jsxRuntimeExports.jsx(RenderTreeNode,{node:Co,onClickMessageNode:Ro=>{var Oo;no({id:((Oo=Ro.context)==null?void 0:Oo.span_id)||"",message:Ro.data}),to("")},onClickSpanNode:Ro=>{var Oo;to(((Oo=Ro.context)==null?void 0:Oo.span_id)||""),no(void 0)}},($o=Co.context)==null?void 0:$o.span_id)})]})})},RenderTreeNode=({node:eo,onClickMessageNode:to,onClickSpanNode:no})=>{var uo,ho,go,mo,yo;const{level:io}=useSubtreeContext_unstable(),so=useTreeViewHiddenAgentEvents(),ao=eo.name,lo=ao&&so.includes(ao);if("uiIsMessage"in eo){const So=eo;return jsxRuntimeExports.jsx(TreeItem,{value:(uo=So.context)==null?void 0:uo.span_id,itemType:"leaf",onClick:_o=>{_o.stopPropagation(),to(So)},style:{[treeItemLevelToken]:io},children:jsxRuntimeExports.jsx(LLMMessageTreeNode,{node:So})},(ho=So.context)==null?void 0:ho.span_id)}else{const So=eo;return jsxRuntimeExports.jsxs(TreeItem,{value:(go=So.context)==null?void 0:go.span_id,itemType:So.uiChildren.length>0?"branch":"leaf",onClick:_o=>{_o.stopPropagation(),no(So)},style:{[treeItemLevelToken]:io},children:[!lo&&jsxRuntimeExports.jsx(TreeNode$1,{node:So},(mo=So.context)==null?void 0:mo.span_id),So.uiChildren.length>0&&jsxRuntimeExports.jsx(Tree$1,{children:So.uiChildren.map(_o=>{var ko;return jsxRuntimeExports.jsx(RenderTreeNode,{node:_o,onClickMessageNode:to,onClickSpanNode:no},(ko=_o==null?void 0:_o.context)==null?void 0:ko.span_id)})})]},(yo=So.context)==null?void 0:yo.span_id)}},useStaticStyles=makeStaticStyles({"fui-TreeItem":{position:"relative"},[`:global(.${TREE_PATH_CLASSNAME})`]:{position:"absolute",boxSizing:"border-box",borderBottomLeftRadius:"8px",borderLeft:`1px solid ${tokens$1.colorNeutralStroke2}`,borderBottom:`1px solid ${tokens$1.colorNeutralStroke2}`}}),useClasses$e=makeStyles({root:{position:"relative"},pathLayer:{position:"absolute",top:0,left:0}}),TraceDetail=({renderLogsPivot:eo})=>{var ko,Co;const to=useClasses$d(),no=useSelectedSpanId(),io=reactExports.useRef(null),so=useTraceDetailRefreshKey(),ao=useSelectedLLMMessage(),lo=useIsGanttChartOpen(),uo=useTraceDetailViewStatus(),ho=useTraceDetailLoadingComponent(),go=useTraceDetailErrorComponent(),mo=useLocStrings(),yo=getIsAgentsVisualizationEnabled(),{ref:So,width:_o}=useResizeObserver();return useDebugFunctions(),reactExports.useEffect(()=>{var $o;lo&&(($o=io.current)==null||$o.updateSize({height:400,width:"100%"}))},[lo]),uo===ViewStatus.error?jsxRuntimeExports.jsx(go,{}):uo===ViewStatus.loading?jsxRuntimeExports.jsx(ho,{}):uo===ViewStatus.hidden?null:jsxRuntimeExports.jsxs("div",{className:to.root,children:[jsxRuntimeExports.jsx("div",{className:to.container,ref:So,children:jsxRuntimeExports.jsxs("div",{className:to.content,children:[jsxRuntimeExports.jsx(Resizable,{enable:{right:!0},minWidth:100,maxWidth:"60%",defaultSize:{width:TREE_NODE_WIDTH+2*TREE_NODE_INDENT+120,height:"100%"},handleComponent:{right:jsxRuntimeExports.jsx("div",{className:to.resizeBar})},children:jsxRuntimeExports.jsx("div",{className:to.leftPane,children:jsxRuntimeExports.jsx(TreeView,{},so)})}),jsxRuntimeExports.jsx("div",{className:to.rightPane,children:jsxRuntimeExports.jsx(NodeDetail,{placeholder:jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:mo.No_span_data}),renderLogsPivot:eo},`${so}-${(ko=ao==null?void 0:ao.message)==null?void 0:ko.role}-${(Co=ao==null?void 0:ao.message)==null?void 0:Co.name}`)},`${no}`)]})}),lo&&jsxRuntimeExports.jsx("div",{className:to.bottomPane,children:jsxRuntimeExports.jsx(Resizable,{ref:io,className:to.ganttContainer,defaultSize:{height:0,width:"100%"},enable:{top:!0},handleComponent:{top:jsxRuntimeExports.jsx("div",{className:to.resizeBarBottom})},children:yo?jsxRuntimeExports.jsx(AgentsVisualizationBottomPane,{containerWidth:_o}):jsxRuntimeExports.jsx(GanttView,{},so)})})]})},useClasses$d=makeStyles({root:{width:"100%",height:"100%"},container:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},summary:{display:"flex",alignItems:"stretch",height:"48px",width:"100%",...shorthands.margin("16px"),...shorthands.gap("1rem")},content:{...shorthands.flex(1),...shorthands.overflow("hidden"),display:"flex"},leftPane:{height:"100%",overflowY:"auto",boxSizing:"border-box",...shorthands.padding("16px")},rightPane:{position:"relative",width:"100%",height:"100%",...shorthands.flex(1),...shorthands.overflow("hidden")},bottomPane:{position:"absolute",backgroundColor:tokens$1.colorNeutralBackground1,bottom:0,width:"100%"},ganttContainer:{...shorthands.padding("16px")},resizeBar:{position:"absolute",top:0,bottom:0,right:"5px",width:"6px",backgroundColor:tokens$1.colorNeutralBackground3,"::before":{content:"''",position:"absolute",top:"50%",right:"1px",marginTop:"-12px",height:"24px",width:"1px",backgroundColor:tokens$1.colorNeutralBackground3Pressed},"::after":{content:"''",position:"absolute",top:"50%",left:"1px",marginTop:"-12px",height:"24px",width:"1px",backgroundColor:tokens$1.colorNeutralBackground3Pressed}},resizeBarBottom:{position:"absolute",left:0,right:0,bottom:"5px",height:"6px",backgroundColor:tokens$1.colorNeutralBackground3,"::before":{content:"''",position:"absolute",left:"50%",bottom:"1px",marginLeft:"-12px",width:"24px",height:"1px",backgroundColor:tokens$1.colorNeutralBackground3Pressed},"::after":{content:"''",position:"absolute",left:"50%",top:"1px",marginLeft:"-12px",width:"24px",height:"1px",backgroundColor:tokens$1.colorNeutralBackground3Pressed}}});function KindText({kind:eo}){return jsxRuntimeExports.jsx(Badge$2,{appearance:"outline",size:"medium",children:eo||UNDEFINED_VALUE_PLACEHOLDER})}function TimeText({time:eo}){const to=timeFormat$1(eo);return jsxRuntimeExports.jsx("time",{children:to})}const CellWrapper=({children:eo})=>{const to=useClasses$c();return jsxRuntimeExports.jsx("div",{className:to.cellWrapper,children:eo})},TextCellWrapper=({children:eo})=>{const to=useClasses$c();return jsxRuntimeExports.jsx("div",{className:to.textCellWrapper,children:jsxRuntimeExports.jsx("p",{className:to.textCellP,children:eo})})},CellSkeleton=({height:eo})=>{const to=useClasses$c();return jsxRuntimeExports.jsx(Skeleton,{className:to.textCellWrapper,children:jsxRuntimeExports.jsx(SkeletonItem,{style:{height:`${eo??20}px`}})})},useClasses$c=makeStyles({cellWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},textCellWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%",width:"100%"},textCellP:{wordWrap:"break-word",maxWidth:"100%",lineHeight:tokens$1.lineHeightBase200,fontSize:tokens$1.fontSizeBase300,maxHeight:"100%",whiteSpace:"normal",...shorthands.padding(tokens$1.spacingVerticalS,tokens$1.spacingHorizontalXS)}}),TraceListJsonCell=({jsonObject:eo,isViewDetailEnabled:to=!1})=>{const no=reactExports.useMemo(()=>typeof eo=="string"?isValidJson(eo)?!1:!isJsonl(eo):!1,[eo]);return jsxRuntimeExports.jsx(CellWrapper,{children:no?jsxRuntimeExports.jsx(TextCellWrapper,{children:formatText(String(eo))}):jsxRuntimeExports.jsx(TraceListObjectCell,{object:eo,isViewDetailEnabled:to})})},TraceListObjectCell=({object:eo,isViewDetailEnabled:to})=>{const no=useIsDark();return to?jsxRuntimeExports.jsx("div",{onClick:io=>io.stopPropagation(),children:jsxRuntimeExports.jsxs(Dialog,{children:[jsxRuntimeExports.jsx(DialogTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx("div",{style:{overflow:"hidden",height:"100%",width:"100%",marginTop:"12px",lineHeight:"16px"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!1,collapsed:1,dark:no,theme:"vscode",disableCustomCollapse:!0})})}),jsxRuntimeExports.jsxs(DialogSurface,{children:[jsxRuntimeExports.jsx("div",{style:{height:"800px",width:"800ppx",marginTop:"12px",lineHeight:"16px",overflow:"auto"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!0,dark:no,theme:"vscode",collapseStringsAfterLength:600})}),jsxRuntimeExports.jsx(DialogActions,{style:{justifyContent:"flex-end"},children:jsxRuntimeExports.jsx(DialogTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx(Button$2,{appearance:"secondary",children:"Close"})})})]})]})}):jsxRuntimeExports.jsx("div",{style:{overflow:"hidden",height:"100%",width:"100%",marginTop:"12px",lineHeight:"16px"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!1,collapseStringsAfterLength:50,collapsed:1,dark:no,theme:"vscode",enablePopUpImageViewer:!1,disableCustomCollapse:!0})})},MAX_LENGTH=80;function formatText(eo){return eo.length>MAX_LENGTH?`${eo.slice(0,MAX_LENGTH)}...`:eo}const MetricsCell=({trace:eo})=>{const to=useClasses$b(),no=30;return eo.evaluations?jsxRuntimeExports.jsx("div",{className:to.wrapper,children:Object.entries(eo.evaluations).map(([io,so])=>{let ao=so.outputs;if(ao=typeof ao=="string"?safeJSONParseV2(ao):ao,ao){if(typeof ao=="object")return Object.entries(ao).map(([lo,uo])=>{const ho=`${lo}`,go=JSON.stringify(uo);return jsxRuntimeExports.jsx(MetricTag,{tag:{name:ho,value:`${go}`},maxValueLength:Math.max(no-ho.length,3)},`${io}_${lo}`)});{const lo=`${io}`;return jsxRuntimeExports.jsx(MetricTag,{tag:{name:lo,value:`${ao}`},maxValueLength:Math.max(no-lo.length,3)},io)}}else return null})}):null},useClasses$b=makeStyles({wrapper:{display:"flex",height:"100%",...shorthands.margin("0px","-8px"),...shorthands.padding("4px"),flexDirection:"row",flexWrap:"wrap",alignItems:"center",...shorthands.gap("4px"),...shorthands.overflow("auto")}}),useOnClickTraceRow=()=>{const eo=useSetSelectedTraceId();return reactExports.useCallback((to,no)=>{eo(to==null?void 0:to.trace_id)},[eo])},useTraceListRows=()=>{const eo=useTraces();return reactExports.useMemo(()=>eo.map(to=>convertToTraceListRow(to)),[eo])},BASIC_WIDTH=100,getColumnChildrenCount=eo=>eo.children?eo==null?void 0:eo.children.reduce((to,no)=>to+getColumnChildrenCount(no),0):eo.minWidth??BASIC_WIDTH,METRICS_COLUMN_KEY="metrics_compact",UN_FILTERABLE_COLUMNS=["Kind","Name"],useTraceListColumns=()=>{const{ref:eo,width:to}=useResizeObserver(),no=useClasses$a(),io=useTraceListRows(),so=useOnClickTraceRow(),ao=useSetTableColumnNames(),lo=useTableHiddenColumnKeys(),uo=useLocStrings(),ho=useTraceListColumnModifier(),go=useSortableColumns(),mo=reactExports.useMemo(()=>genStatusChecker("running"),[]),[yo,So]=React.useState([]);return reactExports.useEffect(()=>{const _o=[{key:"kind",name:uo.Kind,minWidth:100,maxWidth:200,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(KindText,{kind:Do.kind})},{key:"name",name:uo.Name,minWidth:120,maxWidth:300,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(Tooltip,{content:Do.name??"",relationship:"label",children:jsxRuntimeExports.jsx("span",{className:no.nameCell,title:Do.name,onClick:()=>{so(Do,"name")},children:Do.name})})},{key:"input",name:uo.Input,minWidth:180,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:Do.inputs,isViewDetailEnabled:!0})},{key:"output",name:uo.Output,minWidth:180,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:Do.outputs,isViewDetailEnabled:!0})},{key:"start_time",name:uo.Start_time,minWidth:100,maxWidth:300,renderCell:({row:Do})=>jsxRuntimeExports.jsx(TextCellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:Do.start_time})})},{key:"end_time",name:uo.End_time,minWidth:100,maxWidth:300,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TextCellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:Do.end_time})})},{key:"latency",name:uo.Latency,minWidth:120,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:Do.start_time,endTimeISOString:Do.end_time,size:UISize.small})})},{key:"total_tokens",name:uo.Total_tokens,minWidth:100,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(SummaryToken,{trace:Do,size:UISize.small})})},{key:"status",name:uo.Status,minWidth:60,renderCell:({row:Do})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(StatusText,{statusCode:Do.status})})},{key:METRICS_COLUMN_KEY,name:uo.Metrics,minWidth:240,renderCell:({row:Do})=>mo(Do.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(MetricsCell,{trace:Do})})}],ko=[];io.forEach(Do=>{Object.entries(Do.evaluations??{}).forEach(([Uo])=>{!ko.includes(Uo)&&Uo&&ko.push(Uo)})});const Co=ko.map(Do=>{const Uo=[],Ho=[];return io.forEach(Yo=>{var ps;const qo=(ps=Yo.evaluations)==null?void 0:ps[Do];if(!qo||!qo.outputs)return;const Jo=typeof qo.outputs=="string"?safeJSONParseV2(qo.outputs):qo.outputs;Object.keys(Jo).forEach(Qo=>{const hs=Jo[Qo];!Uo.includes(Qo)&&hs!==null&&(Uo.push(Qo),Ho.push({key:`evaluation-${Do}-${Qo}-value`,name:Qo,renderCell:({row:gs})=>{var ks,Os,Ts;if(mo(gs.status))return jsxRuntimeExports.jsx(CellSkeleton,{});let ys;const vs=(Ts=(Os=(ks=gs==null?void 0:gs.evaluations)==null?void 0:ks[Do])==null?void 0:Os.outputs)==null?void 0:Ts[Qo];if(vs===void 0)ys="";else if(vs===null)ys="null";else if(typeof vs=="number")ys=formatNumber$1(vs);else{if(typeof vs=="object")return jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:vs,isViewDetailEnabled:!0});ys=`${vs}`}return ys}}))})}),{name:Do,key:`evaluation-${Do}`,children:Ho}});let $o=[..._o,{key:"evaluations",name:"Metrics",minWidth:450,children:Co}];$o=ho?ho($o,io):$o;const Ro=$o.filter(Do=>Do.key!=="evaluations"),Oo=$o.find(Do=>Do.key==="evaluations");ao({normalColumns:Ro.map(Do=>({name:Do.name,key:Do.key})).filter(Do=>!UN_FILTERABLE_COLUMNS.includes(Do.name)),evaluationColumns:Oo.children.map(Do=>({name:Do.name,key:Do.key}))});const No=Ro.filter(Do=>!lo.includes(Do.key)),Mo={...Oo,children:Oo.children.filter(Do=>!lo.includes(Do.key))},Bo=[...No,Mo],Fo=Bo.reduce((Do,Uo)=>Do+getColumnChildrenCount(Uo),0),Lo=Do=>{if(Do.children)return{...Do,children:Do.children.map(Lo)};const Uo=Do.minWidth??BASIC_WIDTH,Ho=Do.maxWidth,Yo=to?(to-24)/Fo*Uo:200;return{...Do,width:Yo,minWidth:Uo,maxWidth:Ho}},Go=Bo.map(Lo).map(Do=>{const Uo=Do.key;return Uo?{...Do,key:Do.key,sortable:!!(Uo&&go.includes(Uo))}:Do});So(Go)},[io,so,no.nameCell,ho,lo,uo,ao,go,to,mo]),{columns:yo,ref:eo}},useClasses$a=makeStyles({typeBadge:{...shorthands.padding(tokens$1.spacingVerticalXXS,tokens$1.spacingHorizontalS)},latencyWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyItems:"center","> svg":{marginRight:"5px"}},nameCell:{color:tokens$1.colorBrandForeground1,fontWeight:tokens$1.fontWeightSemibold,":hover":{...shorthands.textDecoration("underline")}}});let Text$1=class FSt{lineAt(to){if(to<0||to>this.length)throw new RangeError(`Invalid position ${to} in document of length ${this.length}`);return this.lineInner(to,!1,1,0)}line(to){if(to<1||to>this.lines)throw new RangeError(`Invalid line number ${to} in ${this.lines}-line document`);return this.lineInner(to,!0,1,0)}replace(to,no,io){[to,no]=clip(this,to,no);let so=[];return this.decompose(0,to,so,2),io.length&&io.decompose(0,io.length,so,3),this.decompose(no,this.length,so,1),TextNode$1.from(so,this.length-(no-to)+io.length)}append(to){return this.replace(this.length,this.length,to)}slice(to,no=this.length){[to,no]=clip(this,to,no);let io=[];return this.decompose(to,no,io,0),TextNode$1.from(io,no-to)}eq(to){if(to==this)return!0;if(to.length!=this.length||to.lines!=this.lines)return!1;let no=this.scanIdentical(to,1),io=this.length-this.scanIdentical(to,-1),so=new RawTextCursor(this),ao=new RawTextCursor(to);for(let lo=no,uo=no;;){if(so.next(lo),ao.next(lo),lo=0,so.lineBreak!=ao.lineBreak||so.done!=ao.done||so.value!=ao.value)return!1;if(uo+=so.value.length,so.done||uo>=io)return!0}}iter(to=1){return new RawTextCursor(this,to)}iterRange(to,no=this.length){return new PartialTextCursor(this,to,no)}iterLines(to,no){let io;if(to==null)io=this.iter();else{no==null&&(no=this.lines+1);let so=this.line(to).from;io=this.iterRange(so,Math.max(so,no==this.lines+1?this.length:no<=1?0:this.line(no-1).to))}return new LineCursor(io)}toString(){return this.sliceString(0)}toJSON(){let to=[];return this.flatten(to),to}constructor(){}static of(to){if(to.length==0)throw new RangeError("A document must have at least one line");return to.length==1&&!to[0]?FSt.empty:to.length<=32?new TextLeaf(to):TextNode$1.from(TextLeaf.split(to,[]))}};class TextLeaf extends Text$1{constructor(to,no=textLength(to)){super(),this.text=to,this.length=no}get lines(){return this.text.length}get children(){return null}lineInner(to,no,io,so){for(let ao=0;;ao++){let lo=this.text[ao],uo=so+lo.length;if((no?io:uo)>=to)return new Line(so,uo,io,lo);so=uo+1,io++}}decompose(to,no,io,so){let ao=to<=0&&no>=this.length?this:new TextLeaf(sliceText(this.text,to,no),Math.min(no,this.length)-Math.max(0,to));if(so&1){let lo=io.pop(),uo=appendText(ao.text,lo.text.slice(),0,ao.length);if(uo.length<=32)io.push(new TextLeaf(uo,lo.length+ao.length));else{let ho=uo.length>>1;io.push(new TextLeaf(uo.slice(0,ho)),new TextLeaf(uo.slice(ho)))}}else io.push(ao)}replace(to,no,io){if(!(io instanceof TextLeaf))return super.replace(to,no,io);[to,no]=clip(this,to,no);let so=appendText(this.text,appendText(io.text,sliceText(this.text,0,to)),no),ao=this.length+io.length-(no-to);return so.length<=32?new TextLeaf(so,ao):TextNode$1.from(TextLeaf.split(so,[]),ao)}sliceString(to,no=this.length,io=` `){[to,no]=clip(this,to,no);let so="";for(let ao=0,lo=0;ao<=no&&loto&&lo&&(so+=io),toao&&(so+=uo.slice(Math.max(0,to-ao),no-ao)),ao=ho+1}return so}flatten(to){for(let no of this.text)to.push(no)}scanIdentical(){return 0}static split(to,no){let io=[],so=-1;for(let ao of to)io.push(ao),so+=ao.length+1,io.length==32&&(no.push(new TextLeaf(io,so)),io=[],so=-1);return so>-1&&no.push(new TextLeaf(io,so)),no}}let TextNode$1=class QG extends Text$1{constructor(to,no){super(),this.children=to,this.length=no,this.lines=0;for(let io of to)this.lines+=io.lines}lineInner(to,no,io,so){for(let ao=0;;ao++){let lo=this.children[ao],uo=so+lo.length,ho=io+lo.lines-1;if((no?ho:uo)>=to)return lo.lineInner(to,no,io,so);so=uo+1,io=ho+1}}decompose(to,no,io,so){for(let ao=0,lo=0;lo<=no&&ao=lo){let go=so&((lo<=to?1:0)|(ho>=no?2:0));lo>=to&&ho<=no&&!go?io.push(uo):uo.decompose(to-lo,no-lo,io,go)}lo=ho+1}}replace(to,no,io){if([to,no]=clip(this,to,no),io.lines=ao&&no<=uo){let ho=lo.replace(to-ao,no-ao,io),go=this.lines-lo.lines+ho.lines;if(ho.lines>4&&ho.lines>go>>6){let mo=this.children.slice();return mo[so]=ho,new QG(mo,this.length-(no-to)+io.length)}return super.replace(ao,uo,ho)}ao=uo+1}return super.replace(to,no,io)}sliceString(to,no=this.length,io=` `){[to,no]=clip(this,to,no);let so="";for(let ao=0,lo=0;aoto&&ao&&(so+=io),tolo&&(so+=uo.sliceString(to-lo,no-lo,io)),lo=ho+1}return so}flatten(to){for(let no of this.children)no.flatten(to)}scanIdentical(to,no){if(!(to instanceof QG))return 0;let io=0,[so,ao,lo,uo]=no>0?[0,0,this.children.length,to.children.length]:[this.children.length-1,to.children.length-1,-1,-1];for(;;so+=no,ao+=no){if(so==lo||ao==uo)return io;let ho=this.children[so],go=to.children[ao];if(ho!=go)return io+ho.scanIdentical(go,no);io+=ho.length+1}}static from(to,no=to.reduce((io,so)=>io+so.length+1,-1)){let io=0;for(let _o of to)io+=_o.lines;if(io<32){let _o=[];for(let ko of to)ko.flatten(_o);return new TextLeaf(_o,no)}let so=Math.max(32,io>>5),ao=so<<1,lo=so>>1,uo=[],ho=0,go=-1,mo=[];function yo(_o){let ko;if(_o.lines>ao&&_o instanceof QG)for(let Co of _o.children)yo(Co);else _o.lines>lo&&(ho>lo||!ho)?(So(),uo.push(_o)):_o instanceof TextLeaf&&ho&&(ko=mo[mo.length-1])instanceof TextLeaf&&_o.lines+ko.lines<=32?(ho+=_o.lines,go+=_o.length+1,mo[mo.length-1]=new TextLeaf(ko.text.concat(_o.text),ko.length+1+_o.length)):(ho+_o.lines>so&&So(),ho+=_o.lines,go+=_o.length+1,mo.push(_o))}function So(){ho!=0&&(uo.push(mo.length==1?mo[0]:QG.from(mo,go)),go=-1,ho=mo.length=0)}for(let _o of to)yo(_o);return So(),uo.length==1?uo[0]:new QG(uo,no)}};Text$1.empty=new TextLeaf([""],0);function textLength(eo){let to=-1;for(let no of eo)to+=no.length+1;return to}function appendText(eo,to,no=0,io=1e9){for(let so=0,ao=0,lo=!0;ao=no&&(ho>io&&(uo=uo.slice(0,io-so)),so0?1:(to instanceof TextLeaf?to.text.length:to.children.length)<<1]}nextInner(to,no){for(this.done=this.lineBreak=!1;;){let io=this.nodes.length-1,so=this.nodes[io],ao=this.offsets[io],lo=ao>>1,uo=so instanceof TextLeaf?so.text.length:so.children.length;if(lo==(no>0?uo:0)){if(io==0)return this.done=!0,this.value="",this;no>0&&this.offsets[io-1]++,this.nodes.pop(),this.offsets.pop()}else if((ao&1)==(no>0?0:1)){if(this.offsets[io]+=no,to==0)return this.lineBreak=!0,this.value=` `,this;to--}else if(so instanceof TextLeaf){let ho=so.text[lo+(no<0?-1:0)];if(this.offsets[io]+=no,ho.length>Math.max(0,to))return this.value=to==0?ho:no>0?ho.slice(to):ho.slice(0,ho.length-to),this;to-=ho.length}else{let ho=so.children[lo+(no<0?-1:0)];to>ho.length?(to-=ho.length,this.offsets[io]+=no):(no<0&&this.offsets[io]--,this.nodes.push(ho),this.offsets.push(no>0?1:(ho instanceof TextLeaf?ho.text.length:ho.children.length)<<1))}}}next(to=0){return to<0&&(this.nextInner(-to,-this.dir),to=this.value.length),this.nextInner(to,this.dir)}}class PartialTextCursor{constructor(to,no,io){this.value="",this.done=!1,this.cursor=new RawTextCursor(to,no>io?-1:1),this.pos=no>io?to.length:0,this.from=Math.min(no,io),this.to=Math.max(no,io)}nextInner(to,no){if(no<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;to+=Math.max(0,no<0?this.pos-this.to:this.from-this.pos);let io=no<0?this.pos-this.from:this.to-this.pos;to>io&&(to=io),io-=to;let{value:so}=this.cursor.next(to);return this.pos+=(so.length+to)*no,this.value=so.length<=io?so:no<0?so.slice(so.length-io):so.slice(0,io),this.done=!this.value,this}next(to=0){return to<0?to=Math.max(to,this.from-this.pos):to>0&&(to=Math.min(to,this.to-this.pos)),this.nextInner(to,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class LineCursor{constructor(to){this.inner=to,this.afterBreak=!0,this.value="",this.done=!1}next(to=0){let{done:no,lineBreak:io,value:so}=this.inner.next(to);return no&&this.afterBreak?(this.value="",this.afterBreak=!1):no?(this.done=!0,this.value=""):io?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=so,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Text$1.prototype[Symbol.iterator]=function(){return this.iter()},RawTextCursor.prototype[Symbol.iterator]=PartialTextCursor.prototype[Symbol.iterator]=LineCursor.prototype[Symbol.iterator]=function(){return this});class Line{constructor(to,no,io,so){this.from=to,this.to=no,this.number=io,this.text=so}get length(){return this.to-this.from}}function clip(eo,to,no){return to=Math.max(0,Math.min(eo.length,to)),[to,Math.max(to,Math.min(eo.length,no))]}let extend$1="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(eo=>eo?parseInt(eo,36):1);for(let eo=1;eoeo)return extend$1[to-1]<=eo;return!1}function isRegionalIndicator(eo){return eo>=127462&&eo<=127487}const ZWJ=8205;function findClusterBreak(eo,to,no=!0,io=!0){return(no?nextClusterBreak:prevClusterBreak)(eo,to,io)}function nextClusterBreak(eo,to,no){if(to==eo.length)return to;to&&surrogateLow(eo.charCodeAt(to))&&surrogateHigh(eo.charCodeAt(to-1))&&to--;let io=codePointAt(eo,to);for(to+=codePointSize(io);to=0&&isRegionalIndicator(codePointAt(eo,lo));)ao++,lo-=2;if(ao%2==0)break;to+=2}else break}return to}function prevClusterBreak(eo,to,no){for(;to>0;){let io=nextClusterBreak(eo,to-2,no);if(io=56320&&eo<57344}function surrogateHigh(eo){return eo>=55296&&eo<56320}function codePointAt(eo,to){let no=eo.charCodeAt(to);if(!surrogateHigh(no)||to+1==eo.length)return no;let io=eo.charCodeAt(to+1);return surrogateLow(io)?(no-55296<<10)+(io-56320)+65536:no}function fromCodePoint(eo){return eo<=65535?String.fromCharCode(eo):(eo-=65536,String.fromCharCode((eo>>10)+55296,(eo&1023)+56320))}function codePointSize(eo){return eo<65536?1:2}const DefaultSplit=/\r\n?|\n/;var MapMode=function(eo){return eo[eo.Simple=0]="Simple",eo[eo.TrackDel=1]="TrackDel",eo[eo.TrackBefore=2]="TrackBefore",eo[eo.TrackAfter=3]="TrackAfter",eo}(MapMode||(MapMode={}));class ChangeDesc{constructor(to){this.sections=to}get length(){let to=0;for(let no=0;noto)return ao+(to-so);ao+=uo}else{if(io!=MapMode.Simple&&go>=to&&(io==MapMode.TrackDel&&soto||io==MapMode.TrackBefore&&soto))return null;if(go>to||go==to&&no<0&&!uo)return to==so||no<0?ao:ao+ho;ao+=ho}so=go}if(to>so)throw new RangeError(`Position ${to} is out of range for changeset of length ${so}`);return ao}touchesRange(to,no=to){for(let io=0,so=0;io=0&&so<=no&&uo>=to)return sono?"cover":!0;so=uo}return!1}toString(){let to="";for(let no=0;no=0?":"+so:"")}return to}toJSON(){return this.sections}static fromJSON(to){if(!Array.isArray(to)||to.length%2||to.some(no=>typeof no!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new ChangeDesc(to)}static create(to){return new ChangeDesc(to)}}class ChangeSet extends ChangeDesc{constructor(to,no){super(to),this.inserted=no}apply(to){if(this.length!=to.length)throw new RangeError("Applying change set to a document with the wrong length");return iterChanges(this,(no,io,so,ao,lo)=>to=to.replace(so,so+(io-no),lo),!1),to}mapDesc(to,no=!1){return mapSet(this,to,no,!0)}invert(to){let no=this.sections.slice(),io=[];for(let so=0,ao=0;so=0){no[so]=uo,no[so+1]=lo;let ho=so>>1;for(;io.length0&&addInsert(io,no,ao.text),ao.forward(mo),uo+=mo}let go=to[lo++];for(;uo>1].toJSON()))}return to}static of(to,no,io){let so=[],ao=[],lo=0,uo=null;function ho(mo=!1){if(!mo&&!so.length)return;loSo||yo<0||So>no)throw new RangeError(`Invalid change range ${yo} to ${So} (in doc of length ${no})`);let ko=_o?typeof _o=="string"?Text$1.of(_o.split(io||DefaultSplit)):_o:Text$1.empty,Co=ko.length;if(yo==So&&Co==0)return;yolo&&addSection$4(so,yo-lo,-1),addSection$4(so,So-yo,Co),addInsert(ao,so,ko),lo=So}}return go(to),ho(!uo),uo}static empty(to){return new ChangeSet(to?[to,-1]:[],[])}static fromJSON(to){if(!Array.isArray(to))throw new RangeError("Invalid JSON representation of ChangeSet");let no=[],io=[];for(let so=0;souo&&typeof lo!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(ao.length==1)no.push(ao[0],0);else{for(;io.length=0&&no<=0&&no==eo[so+1]?eo[so]+=to:to==0&&eo[so]==0?eo[so+1]+=no:io?(eo[so]+=to,eo[so+1]+=no):eo.push(to,no)}function addInsert(eo,to,no){if(no.length==0)return;let io=to.length-2>>1;if(io>1])),!(no||lo==eo.sections.length||eo.sections[lo+1]<0);)uo=eo.sections[lo++],ho=eo.sections[lo++];to(so,go,ao,mo,yo),so=go,ao=mo}}}function mapSet(eo,to,no,io=!1){let so=[],ao=io?[]:null,lo=new SectionIter(eo),uo=new SectionIter(to);for(let ho=-1;;)if(lo.ins==-1&&uo.ins==-1){let go=Math.min(lo.len,uo.len);addSection$4(so,go,-1),lo.forward(go),uo.forward(go)}else if(uo.ins>=0&&(lo.ins<0||ho==lo.i||lo.off==0&&(uo.len=0&&ho=0){let go=0,mo=lo.len;for(;mo;)if(uo.ins==-1){let yo=Math.min(mo,uo.len);go+=yo,mo-=yo,uo.forward(yo)}else if(uo.ins==0&&uo.lenho||lo.ins>=0&&lo.len>ho)&&(uo||io.length>go),ao.forward2(ho),lo.forward(ho)}}}}class SectionIter{constructor(to){this.set=to,this.i=0,this.next()}next(){let{sections:to}=this.set;this.i>1;return no>=to.length?Text$1.empty:to[no]}textBit(to){let{inserted:no}=this.set,io=this.i-2>>1;return io>=no.length&&!to?Text$1.empty:no[io].slice(this.off,to==null?void 0:this.off+to)}forward(to){to==this.len?this.next():(this.len-=to,this.off+=to)}forward2(to){this.ins==-1?this.forward(to):to==this.ins?this.next():(this.ins-=to,this.off+=to)}}class SelectionRange{constructor(to,no,io){this.from=to,this.to=no,this.flags=io}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let to=this.flags&7;return to==7?null:to}get goalColumn(){let to=this.flags>>6;return to==16777215?void 0:to}map(to,no=-1){let io,so;return this.empty?io=so=to.mapPos(this.from,no):(io=to.mapPos(this.from,1),so=to.mapPos(this.to,-1)),io==this.from&&so==this.to?this:new SelectionRange(io,so,this.flags)}extend(to,no=to){if(to<=this.anchor&&no>=this.anchor)return EditorSelection.range(to,no);let io=Math.abs(to-this.anchor)>Math.abs(no-this.anchor)?to:no;return EditorSelection.range(this.anchor,io)}eq(to,no=!1){return this.anchor==to.anchor&&this.head==to.head&&(!no||!this.empty||this.assoc==to.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(to){if(!to||typeof to.anchor!="number"||typeof to.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return EditorSelection.range(to.anchor,to.head)}static create(to,no,io){return new SelectionRange(to,no,io)}}class EditorSelection{constructor(to,no){this.ranges=to,this.mainIndex=no}map(to,no=-1){return to.empty?this:EditorSelection.create(this.ranges.map(io=>io.map(to,no)),this.mainIndex)}eq(to,no=!1){if(this.ranges.length!=to.ranges.length||this.mainIndex!=to.mainIndex)return!1;for(let io=0;ioto.toJSON()),main:this.mainIndex}}static fromJSON(to){if(!to||!Array.isArray(to.ranges)||typeof to.main!="number"||to.main>=to.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new EditorSelection(to.ranges.map(no=>SelectionRange.fromJSON(no)),to.main)}static single(to,no=to){return new EditorSelection([EditorSelection.range(to,no)],0)}static create(to,no=0){if(to.length==0)throw new RangeError("A selection needs at least one range");for(let io=0,so=0;soto?8:0)|ao)}static normalized(to,no=0){let io=to[no];to.sort((so,ao)=>so.from-ao.from),no=to.indexOf(io);for(let so=1;soao.head?EditorSelection.range(ho,uo):EditorSelection.range(uo,ho))}}return new EditorSelection(to,no)}}function checkSelection(eo,to){for(let no of eo.ranges)if(no.to>to)throw new RangeError("Selection points outside of document")}let nextID=0;class Facet{constructor(to,no,io,so,ao){this.combine=to,this.compareInput=no,this.compare=io,this.isStatic=so,this.id=nextID++,this.default=to([]),this.extensions=typeof ao=="function"?ao(this):ao}get reader(){return this}static define(to={}){return new Facet(to.combine||(no=>no),to.compareInput||((no,io)=>no===io),to.compare||(to.combine?(no,io)=>no===io:sameArray$1),!!to.static,to.enables)}of(to){return new FacetProvider([],this,0,to)}compute(to,no){if(this.isStatic)throw new Error("Can't compute a static facet");return new FacetProvider(to,this,1,no)}computeN(to,no){if(this.isStatic)throw new Error("Can't compute a static facet");return new FacetProvider(to,this,2,no)}from(to,no){return no||(no=io=>io),this.compute([to],io=>no(io.field(to)))}}function sameArray$1(eo,to){return eo==to||eo.length==to.length&&eo.every((no,io)=>no===to[io])}class FacetProvider{constructor(to,no,io,so){this.dependencies=to,this.facet=no,this.type=io,this.value=so,this.id=nextID++}dynamicSlot(to){var no;let io=this.value,so=this.facet.compareInput,ao=this.id,lo=to[ao]>>1,uo=this.type==2,ho=!1,go=!1,mo=[];for(let yo of this.dependencies)yo=="doc"?ho=!0:yo=="selection"?go=!0:((no=to[yo.id])!==null&&no!==void 0?no:1)&1||mo.push(to[yo.id]);return{create(yo){return yo.values[lo]=io(yo),1},update(yo,So){if(ho&&So.docChanged||go&&(So.docChanged||So.selection)||ensureAll(yo,mo)){let _o=io(yo);if(uo?!compareArray(_o,yo.values[lo],so):!so(_o,yo.values[lo]))return yo.values[lo]=_o,1}return 0},reconfigure:(yo,So)=>{let _o,ko=So.config.address[ao];if(ko!=null){let Co=getAddr(So,ko);if(this.dependencies.every($o=>$o instanceof Facet?So.facet($o)===yo.facet($o):$o instanceof StateField?So.field($o,!1)==yo.field($o,!1):!0)||(uo?compareArray(_o=io(yo),Co,so):so(_o=io(yo),Co)))return yo.values[lo]=Co,0}else _o=io(yo);return yo.values[lo]=_o,1}}}}function compareArray(eo,to,no){if(eo.length!=to.length)return!1;for(let io=0;ioeo[ho.id]),so=no.map(ho=>ho.type),ao=io.filter(ho=>!(ho&1)),lo=eo[to.id]>>1;function uo(ho){let go=[];for(let mo=0;moio===so),to);return to.provide&&(no.provides=to.provide(no)),no}create(to){let no=to.facet(initField).find(io=>io.field==this);return((no==null?void 0:no.create)||this.createF)(to)}slot(to){let no=to[this.id]>>1;return{create:io=>(io.values[no]=this.create(io),1),update:(io,so)=>{let ao=io.values[no],lo=this.updateF(ao,so);return this.compareF(ao,lo)?0:(io.values[no]=lo,1)},reconfigure:(io,so)=>so.config.address[this.id]!=null?(io.values[no]=so.field(this),0):(io.values[no]=this.create(io),1)}}init(to){return[this,initField.of({field:this,create:to})]}get extension(){return this}}const Prec_={lowest:4,low:3,default:2,high:1,highest:0};function prec(eo){return to=>new PrecExtension(to,eo)}const Prec={highest:prec(Prec_.highest),high:prec(Prec_.high),default:prec(Prec_.default),low:prec(Prec_.low),lowest:prec(Prec_.lowest)};class PrecExtension{constructor(to,no){this.inner=to,this.prec=no}}class Compartment{of(to){return new CompartmentInstance(this,to)}reconfigure(to){return Compartment.reconfigure.of({compartment:this,extension:to})}get(to){return to.config.compartments.get(this)}}class CompartmentInstance{constructor(to,no){this.compartment=to,this.inner=no}}class Configuration{constructor(to,no,io,so,ao,lo){for(this.base=to,this.compartments=no,this.dynamicSlots=io,this.address=so,this.staticValues=ao,this.facets=lo,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(to,no,io){let so=[],ao=Object.create(null),lo=new Map;for(let So of flatten$1(to,no,lo))So instanceof StateField?so.push(So):(ao[So.facet.id]||(ao[So.facet.id]=[])).push(So);let uo=Object.create(null),ho=[],go=[];for(let So of so)uo[So.id]=go.length<<1,go.push(_o=>So.slot(_o));let mo=io==null?void 0:io.config.facets;for(let So in ao){let _o=ao[So],ko=_o[0].facet,Co=mo&&mo[So]||[];if(_o.every($o=>$o.type==0))if(uo[ko.id]=ho.length<<1|1,sameArray$1(Co,_o))ho.push(io.facet(ko));else{let $o=ko.combine(_o.map(Ro=>Ro.value));ho.push(io&&ko.compare($o,io.facet(ko))?io.facet(ko):$o)}else{for(let $o of _o)$o.type==0?(uo[$o.id]=ho.length<<1|1,ho.push($o.value)):(uo[$o.id]=go.length<<1,go.push(Ro=>$o.dynamicSlot(Ro)));uo[ko.id]=go.length<<1,go.push($o=>dynamicFacetSlot($o,ko,_o))}}let yo=go.map(So=>So(uo));return new Configuration(to,lo,yo,uo,ho,ao)}}function flatten$1(eo,to,no){let io=[[],[],[],[],[]],so=new Map;function ao(lo,uo){let ho=so.get(lo);if(ho!=null){if(ho<=uo)return;let go=io[ho].indexOf(lo);go>-1&&io[ho].splice(go,1),lo instanceof CompartmentInstance&&no.delete(lo.compartment)}if(so.set(lo,uo),Array.isArray(lo))for(let go of lo)ao(go,uo);else if(lo instanceof CompartmentInstance){if(no.has(lo.compartment))throw new RangeError("Duplicate use of compartment in extensions");let go=to.get(lo.compartment)||lo.inner;no.set(lo.compartment,go),ao(go,uo)}else if(lo instanceof PrecExtension)ao(lo.inner,lo.prec);else if(lo instanceof StateField)io[uo].push(lo),lo.provides&&ao(lo.provides,uo);else if(lo instanceof FacetProvider)io[uo].push(lo),lo.facet.extensions&&ao(lo.facet.extensions,Prec_.default);else{let go=lo.extension;if(!go)throw new Error(`Unrecognized extension value in extension set (${lo}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);ao(go,uo)}}return ao(eo,Prec_.default),io.reduce((lo,uo)=>lo.concat(uo))}function ensureAddr(eo,to){if(to&1)return 2;let no=to>>1,io=eo.status[no];if(io==4)throw new Error("Cyclic dependency between fields and/or facets");if(io&2)return io;eo.status[no]=4;let so=eo.computeSlot(eo,eo.config.dynamicSlots[no]);return eo.status[no]=2|so}function getAddr(eo,to){return to&1?eo.config.staticValues[to>>1]:eo.values[to>>1]}const languageData=Facet.define(),allowMultipleSelections=Facet.define({combine:eo=>eo.some(to=>to),static:!0}),lineSeparator=Facet.define({combine:eo=>eo.length?eo[0]:void 0,static:!0}),changeFilter=Facet.define(),transactionFilter=Facet.define(),transactionExtender=Facet.define(),readOnly=Facet.define({combine:eo=>eo.length?eo[0]:!1});class Annotation{constructor(to,no){this.type=to,this.value=no}static define(){return new AnnotationType}}class AnnotationType{of(to){return new Annotation(this,to)}}class StateEffectType{constructor(to){this.map=to}of(to){return new StateEffect(this,to)}}class StateEffect{constructor(to,no){this.type=to,this.value=no}map(to){let no=this.type.map(this.value,to);return no===void 0?void 0:no==this.value?this:new StateEffect(this.type,no)}is(to){return this.type==to}static define(to={}){return new StateEffectType(to.map||(no=>no))}static mapEffects(to,no){if(!to.length)return to;let io=[];for(let so of to){let ao=so.map(no);ao&&io.push(ao)}return io}}StateEffect.reconfigure=StateEffect.define();StateEffect.appendConfig=StateEffect.define();class Transaction{constructor(to,no,io,so,ao,lo){this.startState=to,this.changes=no,this.selection=io,this.effects=so,this.annotations=ao,this.scrollIntoView=lo,this._doc=null,this._state=null,io&&checkSelection(io,no.newLength),ao.some(uo=>uo.type==Transaction.time)||(this.annotations=ao.concat(Transaction.time.of(Date.now())))}static create(to,no,io,so,ao,lo){return new Transaction(to,no,io,so,ao,lo)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(to){for(let no of this.annotations)if(no.type==to)return no.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(to){let no=this.annotation(Transaction.userEvent);return!!(no&&(no==to||no.length>to.length&&no.slice(0,to.length)==to&&no[to.length]=="."))}}Transaction.time=Annotation.define();Transaction.userEvent=Annotation.define();Transaction.addToHistory=Annotation.define();Transaction.remote=Annotation.define();function joinRanges(eo,to){let no=[];for(let io=0,so=0;;){let ao,lo;if(io=eo[io]))ao=eo[io++],lo=eo[io++];else if(so=0;so--){let ao=io[so](eo);ao instanceof Transaction?eo=ao:Array.isArray(ao)&&ao.length==1&&ao[0]instanceof Transaction?eo=ao[0]:eo=resolveTransaction(to,asArray$1(ao),!1)}return eo}function extendTransaction(eo){let to=eo.startState,no=to.facet(transactionExtender),io=eo;for(let so=no.length-1;so>=0;so--){let ao=no[so](eo);ao&&Object.keys(ao).length&&(io=mergeTransaction(io,resolveTransactionInner(to,ao,eo.changes.newLength),!0))}return io==eo?eo:Transaction.create(to,eo.changes,eo.selection,io.effects,io.annotations,io.scrollIntoView)}const none$2=[];function asArray$1(eo){return eo==null?none$2:Array.isArray(eo)?eo:[eo]}var CharCategory=function(eo){return eo[eo.Word=0]="Word",eo[eo.Space=1]="Space",eo[eo.Other=2]="Other",eo}(CharCategory||(CharCategory={}));const nonASCIISingleCaseWordChar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let wordChar;try{wordChar=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(eo){}function hasWordChar(eo){if(wordChar)return wordChar.test(eo);for(let to=0;to"€"&&(no.toUpperCase()!=no.toLowerCase()||nonASCIISingleCaseWordChar.test(no)))return!0}return!1}function makeCategorizer(eo){return to=>{if(!/\S/.test(to))return CharCategory.Space;if(hasWordChar(to))return CharCategory.Word;for(let no=0;no-1)return CharCategory.Word;return CharCategory.Other}}class EditorState{constructor(to,no,io,so,ao,lo){this.config=to,this.doc=no,this.selection=io,this.values=so,this.status=to.statusTemplate.slice(),this.computeSlot=ao,lo&&(lo._state=this);for(let uo=0;uoso.set(go,ho)),no=null),so.set(uo.value.compartment,uo.value.extension)):uo.is(StateEffect.reconfigure)?(no=null,io=uo.value):uo.is(StateEffect.appendConfig)&&(no=null,io=asArray$1(io).concat(uo.value));let ao;no?ao=to.startState.values.slice():(no=Configuration.resolve(io,so,this),ao=new EditorState(no,this.doc,this.selection,no.dynamicSlots.map(()=>null),(ho,go)=>go.reconfigure(ho,this),null).values);let lo=to.startState.facet(allowMultipleSelections)?to.newSelection:to.newSelection.asSingle();new EditorState(no,to.newDoc,lo,ao,(uo,ho)=>ho.update(uo,to),to)}replaceSelection(to){return typeof to=="string"&&(to=this.toText(to)),this.changeByRange(no=>({changes:{from:no.from,to:no.to,insert:to},range:EditorSelection.cursor(no.from+to.length)}))}changeByRange(to){let no=this.selection,io=to(no.ranges[0]),so=this.changes(io.changes),ao=[io.range],lo=asArray$1(io.effects);for(let uo=1;uolo.spec.fromJSON(uo,ho)))}}return EditorState.create({doc:to.doc,selection:EditorSelection.fromJSON(to.selection),extensions:no.extensions?so.concat([no.extensions]):so})}static create(to={}){let no=Configuration.resolve(to.extensions||[],new Map),io=to.doc instanceof Text$1?to.doc:Text$1.of((to.doc||"").split(no.staticFacet(EditorState.lineSeparator)||DefaultSplit)),so=to.selection?to.selection instanceof EditorSelection?to.selection:EditorSelection.single(to.selection.anchor,to.selection.head):EditorSelection.single(0);return checkSelection(so,io.length),no.staticFacet(allowMultipleSelections)||(so=so.asSingle()),new EditorState(no,io,so,no.dynamicSlots.map(()=>null),(ao,lo)=>lo.create(ao),null)}get tabSize(){return this.facet(EditorState.tabSize)}get lineBreak(){return this.facet(EditorState.lineSeparator)||` `}get readOnly(){return this.facet(readOnly)}phrase(to,...no){for(let io of this.facet(EditorState.phrases))if(Object.prototype.hasOwnProperty.call(io,to)){to=io[to];break}return no.length&&(to=to.replace(/\$(\$|\d*)/g,(io,so)=>{if(so=="$")return"$";let ao=+(so||1);return!ao||ao>no.length?io:no[ao-1]})),to}languageDataAt(to,no,io=-1){let so=[];for(let ao of this.facet(languageData))for(let lo of ao(this,no,io))Object.prototype.hasOwnProperty.call(lo,to)&&so.push(lo[to]);return so}charCategorizer(to){return makeCategorizer(this.languageDataAt("wordChars",to).join(""))}wordAt(to){let{text:no,from:io,length:so}=this.doc.lineAt(to),ao=this.charCategorizer(to),lo=to-io,uo=to-io;for(;lo>0;){let ho=findClusterBreak(no,lo,!1);if(ao(no.slice(ho,lo))!=CharCategory.Word)break;lo=ho}for(;uoeo.length?eo[0]:4});EditorState.lineSeparator=lineSeparator;EditorState.readOnly=readOnly;EditorState.phrases=Facet.define({compare(eo,to){let no=Object.keys(eo),io=Object.keys(to);return no.length==io.length&&no.every(so=>eo[so]==to[so])}});EditorState.languageData=languageData;EditorState.changeFilter=changeFilter;EditorState.transactionFilter=transactionFilter;EditorState.transactionExtender=transactionExtender;Compartment.reconfigure=StateEffect.define();function combineConfig(eo,to,no={}){let io={};for(let so of eo)for(let ao of Object.keys(so)){let lo=so[ao],uo=io[ao];if(uo===void 0)io[ao]=lo;else if(!(uo===lo||lo===void 0))if(Object.hasOwnProperty.call(no,ao))io[ao]=no[ao](uo,lo);else throw new Error("Config merge conflict for field "+ao)}for(let so in to)io[so]===void 0&&(io[so]=to[so]);return io}class RangeValue{eq(to){return this==to}range(to,no=to){return Range$2.create(to,no,this)}}RangeValue.prototype.startSide=RangeValue.prototype.endSide=0;RangeValue.prototype.point=!1;RangeValue.prototype.mapMode=MapMode.TrackDel;let Range$2=class PSt{constructor(to,no,io){this.from=to,this.to=no,this.value=io}static create(to,no,io){return new PSt(to,no,io)}};function cmpRange(eo,to){return eo.from-to.from||eo.value.startSide-to.value.startSide}class Chunk{constructor(to,no,io,so){this.from=to,this.to=no,this.value=io,this.maxPoint=so}get length(){return this.to[this.to.length-1]}findIndex(to,no,io,so=0){let ao=io?this.to:this.from;for(let lo=so,uo=ao.length;;){if(lo==uo)return lo;let ho=lo+uo>>1,go=ao[ho]-to||(io?this.value[ho].endSide:this.value[ho].startSide)-no;if(ho==lo)return go>=0?lo:uo;go>=0?uo=ho:lo=ho+1}}between(to,no,io,so){for(let ao=this.findIndex(no,-1e9,!0),lo=this.findIndex(io,1e9,!1,ao);ao_o||So==_o&&go.startSide>0&&go.endSide<=0)continue;(_o-So||go.endSide-go.startSide)<0||(lo<0&&(lo=So),go.point&&(uo=Math.max(uo,_o-So)),io.push(go),so.push(So-lo),ao.push(_o-lo))}return{mapped:io.length?new Chunk(so,ao,io,uo):null,pos:lo}}}class RangeSet{constructor(to,no,io,so){this.chunkPos=to,this.chunk=no,this.nextLayer=io,this.maxPoint=so}static create(to,no,io,so){return new RangeSet(to,no,io,so)}get length(){let to=this.chunk.length-1;return to<0?0:Math.max(this.chunkEnd(to),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let to=this.nextLayer.size;for(let no of this.chunk)to+=no.value.length;return to}chunkEnd(to){return this.chunkPos[to]+this.chunk[to].length}update(to){let{add:no=[],sort:io=!1,filterFrom:so=0,filterTo:ao=this.length}=to,lo=to.filter;if(no.length==0&&!lo)return this;if(io&&(no=no.slice().sort(cmpRange)),this.isEmpty)return no.length?RangeSet.of(no):this;let uo=new LayerCursor(this,null,-1).goto(0),ho=0,go=[],mo=new RangeSetBuilder;for(;uo.value||ho=0){let yo=no[ho++];mo.addInner(yo.from,yo.to,yo.value)||go.push(yo)}else uo.rangeIndex==1&&uo.chunkIndexthis.chunkEnd(uo.chunkIndex)||aouo.to||ao=ao&&to<=ao+lo.length&&lo.between(ao,to-ao,no-ao,io)===!1)return}this.nextLayer.between(to,no,io)}}iter(to=0){return HeapCursor.from([this]).goto(to)}get isEmpty(){return this.nextLayer==this}static iter(to,no=0){return HeapCursor.from(to).goto(no)}static compare(to,no,io,so,ao=-1){let lo=to.filter(yo=>yo.maxPoint>0||!yo.isEmpty&&yo.maxPoint>=ao),uo=no.filter(yo=>yo.maxPoint>0||!yo.isEmpty&&yo.maxPoint>=ao),ho=findSharedChunks(lo,uo,io),go=new SpanCursor(lo,ho,ao),mo=new SpanCursor(uo,ho,ao);io.iterGaps((yo,So,_o)=>compare(go,yo,mo,So,_o,so)),io.empty&&io.length==0&&compare(go,0,mo,0,0,so)}static eq(to,no,io=0,so){so==null&&(so=999999999);let ao=to.filter(mo=>!mo.isEmpty&&no.indexOf(mo)<0),lo=no.filter(mo=>!mo.isEmpty&&to.indexOf(mo)<0);if(ao.length!=lo.length)return!1;if(!ao.length)return!0;let uo=findSharedChunks(ao,lo),ho=new SpanCursor(ao,uo,0).goto(io),go=new SpanCursor(lo,uo,0).goto(io);for(;;){if(ho.to!=go.to||!sameValues(ho.active,go.active)||ho.point&&(!go.point||!ho.point.eq(go.point)))return!1;if(ho.to>so)return!0;ho.next(),go.next()}}static spans(to,no,io,so,ao=-1){let lo=new SpanCursor(to,null,ao).goto(no),uo=no,ho=lo.openStart;for(;;){let go=Math.min(lo.to,io);if(lo.point){let mo=lo.activeForPoint(lo.to),yo=lo.pointFromuo&&(so.span(uo,go,lo.active,ho),ho=lo.openEnd(go));if(lo.to>io)return ho+(lo.point&&lo.to>io?1:0);uo=lo.to,lo.next()}}static of(to,no=!1){let io=new RangeSetBuilder;for(let so of to instanceof Range$2?[to]:no?lazySort(to):to)io.add(so.from,so.to,so.value);return io.finish()}static join(to){if(!to.length)return RangeSet.empty;let no=to[to.length-1];for(let io=to.length-2;io>=0;io--)for(let so=to[io];so!=RangeSet.empty;so=so.nextLayer)no=new RangeSet(so.chunkPos,so.chunk,no,Math.max(so.maxPoint,no.maxPoint));return no}}RangeSet.empty=new RangeSet([],[],null,-1);function lazySort(eo){if(eo.length>1)for(let to=eo[0],no=1;no0)return eo.slice().sort(cmpRange);to=io}return eo}RangeSet.empty.nextLayer=RangeSet.empty;class RangeSetBuilder{finishChunk(to){this.chunks.push(new Chunk(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,to&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(to,no,io){this.addInner(to,no,io)||(this.nextLayer||(this.nextLayer=new RangeSetBuilder)).add(to,no,io)}addInner(to,no,io){let so=to-this.lastTo||io.startSide-this.last.endSide;if(so<=0&&(to-this.lastFrom||io.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return so<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=to),this.from.push(to-this.chunkStart),this.to.push(no-this.chunkStart),this.last=io,this.lastFrom=to,this.lastTo=no,this.value.push(io),io.point&&(this.maxPoint=Math.max(this.maxPoint,no-to)),!0)}addChunk(to,no){if((to-this.lastTo||no.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,no.maxPoint),this.chunks.push(no),this.chunkPos.push(to);let io=no.value.length-1;return this.last=no.value[io],this.lastFrom=no.from[io]+to,this.lastTo=no.to[io]+to,!0}finish(){return this.finishInner(RangeSet.empty)}finishInner(to){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return to;let no=RangeSet.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(to):to,this.setMaxPoint);return this.from=null,no}}function findSharedChunks(eo,to,no){let io=new Map;for(let ao of eo)for(let lo=0;lo=this.minPoint)break}}setRangeIndex(to){if(to==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=io&&so.push(new LayerCursor(lo,no,io,ao));return so.length==1?so[0]:new HeapCursor(so)}get startSide(){return this.value?this.value.startSide:0}goto(to,no=-1e9){for(let io of this.heap)io.goto(to,no);for(let io=this.heap.length>>1;io>=0;io--)heapBubble(this.heap,io);return this.next(),this}forward(to,no){for(let io of this.heap)io.forward(to,no);for(let io=this.heap.length>>1;io>=0;io--)heapBubble(this.heap,io);(this.to-to||this.value.endSide-no)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let to=this.heap[0];this.from=to.from,this.to=to.to,this.value=to.value,this.rank=to.rank,to.value&&to.next(),heapBubble(this.heap,0)}}}function heapBubble(eo,to){for(let no=eo[to];;){let io=(to<<1)+1;if(io>=eo.length)break;let so=eo[io];if(io+1=0&&(so=eo[io+1],io++),no.compare(so)<0)break;eo[io]=no,eo[to]=so,to=io}}class SpanCursor{constructor(to,no,io){this.minPoint=io,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=HeapCursor.from(to,no,io)}goto(to,no=-1e9){return this.cursor.goto(to,no),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=to,this.endSide=no,this.openStart=-1,this.next(),this}forward(to,no){for(;this.minActive>-1&&(this.activeTo[this.minActive]-to||this.active[this.minActive].endSide-no)<0;)this.removeActive(this.minActive);this.cursor.forward(to,no)}removeActive(to){remove(this.active,to),remove(this.activeTo,to),remove(this.activeRank,to),this.minActive=findMinIndex(this.active,this.activeTo)}addActive(to){let no=0,{value:io,to:so,rank:ao}=this.cursor;for(;no0;)no++;insert(this.active,no,io),insert(this.activeTo,no,so),insert(this.activeRank,no,ao),to&&insert(to,no,this.cursor.from),this.minActive=findMinIndex(this.active,this.activeTo)}next(){let to=this.to,no=this.point;this.point=null;let io=this.openStart<0?[]:null;for(;;){let so=this.minActive;if(so>-1&&(this.activeTo[so]-this.cursor.from||this.active[so].endSide-this.cursor.startSide)<0){if(this.activeTo[so]>to){this.to=this.activeTo[so],this.endSide=this.active[so].endSide;break}this.removeActive(so),io&&remove(io,so)}else if(this.cursor.value)if(this.cursor.from>to){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let ao=this.cursor.value;if(!ao.point)this.addActive(io),this.cursor.next();else if(no&&this.cursor.to==this.to&&this.cursor.from=0&&io[so]=0&&!(this.activeRank[io]to||this.activeTo[io]==to&&this.active[io].endSide>=this.point.endSide)&&no.push(this.active[io]);return no.reverse()}openEnd(to){let no=0;for(let io=this.activeTo.length-1;io>=0&&this.activeTo[io]>to;io--)no++;return no}}function compare(eo,to,no,io,so,ao){eo.goto(to),no.goto(io);let lo=io+so,uo=io,ho=io-to;for(;;){let go=eo.to+ho-no.to||eo.endSide-no.endSide,mo=go<0?eo.to+ho:no.to,yo=Math.min(mo,lo);if(eo.point||no.point?eo.point&&no.point&&(eo.point==no.point||eo.point.eq(no.point))&&sameValues(eo.activeForPoint(eo.to),no.activeForPoint(no.to))||ao.comparePoint(uo,yo,eo.point,no.point):yo>uo&&!sameValues(eo.active,no.active)&&ao.compareRange(uo,yo,eo.active,no.active),mo>lo)break;uo=mo,go<=0&&eo.next(),go>=0&&no.next()}}function sameValues(eo,to){if(eo.length!=to.length)return!1;for(let no=0;no=to;io--)eo[io+1]=eo[io];eo[to]=no}function findMinIndex(eo,to){let no=-1,io=1e9;for(let so=0;so=to)return so;if(so==eo.length)break;ao+=eo.charCodeAt(so)==9?no-ao%no:1,so=findClusterBreak(eo,so)}return io===!0?-1:eo.length}const C="ͼ",COUNT=typeof Symbol>"u"?"__"+C:Symbol.for(C),SET=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),top=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class StyleModule{constructor(to,no){this.rules=[];let{finish:io}=no||{};function so(lo){return/^@/.test(lo)?[lo]:lo.split(/,\s*/)}function ao(lo,uo,ho,go){let mo=[],yo=/^@(\w+)\b/.exec(lo[0]),So=yo&&yo[1]=="keyframes";if(yo&&uo==null)return ho.push(lo[0]+";");for(let _o in uo){let ko=uo[_o];if(/&/.test(_o))ao(_o.split(/,\s*/).map(Co=>lo.map($o=>Co.replace(/&/,$o))).reduce((Co,$o)=>Co.concat($o)),ko,ho);else if(ko&&typeof ko=="object"){if(!yo)throw new RangeError("The value of a property ("+_o+") should be a primitive value.");ao(so(_o),ko,mo,So)}else ko!=null&&mo.push(_o.replace(/_.*/,"").replace(/[A-Z]/g,Co=>"-"+Co.toLowerCase())+": "+ko+";")}(mo.length||So)&&ho.push((io&&!yo&&!go?lo.map(io):lo).join(", ")+" {"+mo.join(" ")+"}")}for(let lo in to)ao(so(lo),to[lo],this.rules)}getRules(){return this.rules.join(` `)}static newName(){let to=top[COUNT]||1;return top[COUNT]=to+1,C+to.toString(36)}static mount(to,no,io){let so=to[SET],ao=io&&io.nonce;so?ao&&so.setNonce(ao):so=new StyleSet(to,ao),so.mount(Array.isArray(no)?no:[no],to)}}let adoptedSet=new Map;class StyleSet{constructor(to,no){let io=to.ownerDocument||to,so=io.defaultView;if(!to.head&&to.adoptedStyleSheets&&so.CSSStyleSheet){let ao=adoptedSet.get(io);if(ao)return to[SET]=ao;this.sheet=new so.CSSStyleSheet,adoptedSet.set(io,this)}else this.styleTag=io.createElement("style"),no&&this.styleTag.setAttribute("nonce",no);this.modules=[],to[SET]=this}mount(to,no){let io=this.sheet,so=0,ao=0;for(let lo=0;lo-1&&(this.modules.splice(ho,1),ao--,ho=-1),ho==-1){if(this.modules.splice(ao++,0,uo),io)for(let go=0;go",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},mac=typeof navigator<"u"&&/Mac/.test(navigator.platform),ie$1=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var i$2=0;i$2<10;i$2++)base[48+i$2]=base[96+i$2]=String(i$2);for(var i$2=1;i$2<=24;i$2++)base[i$2+111]="F"+i$2;for(var i$2=65;i$2<=90;i$2++)base[i$2]=String.fromCharCode(i$2+32),shift[i$2]=String.fromCharCode(i$2);for(var code in base)shift.hasOwnProperty(code)||(shift[code]=base[code]);function keyName(eo){var to=mac&&eo.metaKey&&eo.shiftKey&&!eo.ctrlKey&&!eo.altKey||ie$1&&eo.shiftKey&&eo.key&&eo.key.length==1||eo.key=="Unidentified",no=!to&&eo.key||(eo.shiftKey?shift:base)[eo.keyCode]||eo.key||"Unidentified";return no=="Esc"&&(no="Escape"),no=="Del"&&(no="Delete"),no=="Left"&&(no="ArrowLeft"),no=="Up"&&(no="ArrowUp"),no=="Right"&&(no="ArrowRight"),no=="Down"&&(no="ArrowDown"),no}function getSelection(eo){let to;return eo.nodeType==11?to=eo.getSelection?eo:eo.ownerDocument:to=eo,to.getSelection()}function contains$1(eo,to){return to?eo==to||eo.contains(to.nodeType!=1?to.parentNode:to):!1}function deepActiveElement(eo){let to=eo.activeElement;for(;to&&to.shadowRoot;)to=to.shadowRoot.activeElement;return to}function hasSelection(eo,to){if(!to.anchorNode)return!1;try{return contains$1(eo,to.anchorNode)}catch{return!1}}function clientRectsFor(eo){return eo.nodeType==3?textRange(eo,0,eo.nodeValue.length).getClientRects():eo.nodeType==1?eo.getClientRects():[]}function isEquivalentPosition(eo,to,no,io){return no?scanFor(eo,to,no,io,-1)||scanFor(eo,to,no,io,1):!1}function domIndex(eo){for(var to=0;;to++)if(eo=eo.previousSibling,!eo)return to}function isBlockElement(eo){return eo.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(eo.nodeName)}function scanFor(eo,to,no,io,so){for(;;){if(eo==no&&to==io)return!0;if(to==(so<0?0:maxOffset(eo))){if(eo.nodeName=="DIV")return!1;let ao=eo.parentNode;if(!ao||ao.nodeType!=1)return!1;to=domIndex(eo)+(so<0?0:1),eo=ao}else if(eo.nodeType==1){if(eo=eo.childNodes[to+(so<0?-1:0)],eo.nodeType==1&&eo.contentEditable=="false")return!1;to=so<0?maxOffset(eo):0}else return!1}}function maxOffset(eo){return eo.nodeType==3?eo.nodeValue.length:eo.childNodes.length}function flattenRect(eo,to){let no=to?eo.left:eo.right;return{left:no,right:no,top:eo.top,bottom:eo.bottom}}function windowRect(eo){let to=eo.visualViewport;return to?{left:0,right:to.width,top:0,bottom:to.height}:{left:0,right:eo.innerWidth,top:0,bottom:eo.innerHeight}}function getScale(eo,to){let no=to.width/eo.offsetWidth,io=to.height/eo.offsetHeight;return(no>.995&&no<1.005||!isFinite(no)||Math.abs(to.width-eo.offsetWidth)<1)&&(no=1),(io>.995&&io<1.005||!isFinite(io)||Math.abs(to.height-eo.offsetHeight)<1)&&(io=1),{scaleX:no,scaleY:io}}function scrollRectIntoView(eo,to,no,io,so,ao,lo,uo){let ho=eo.ownerDocument,go=ho.defaultView||window;for(let mo=eo,yo=!1;mo&&!yo;)if(mo.nodeType==1){let So,_o=mo==ho.body,ko=1,Co=1;if(_o)So=windowRect(go);else{if(/^(fixed|sticky)$/.test(getComputedStyle(mo).position)&&(yo=!0),mo.scrollHeight<=mo.clientHeight&&mo.scrollWidth<=mo.clientWidth){mo=mo.assignedSlot||mo.parentNode;continue}let Oo=mo.getBoundingClientRect();({scaleX:ko,scaleY:Co}=getScale(mo,Oo)),So={left:Oo.left,right:Oo.left+mo.clientWidth*ko,top:Oo.top,bottom:Oo.top+mo.clientHeight*Co}}let $o=0,Ro=0;if(so=="nearest")to.top0&&to.bottom>So.bottom+Ro&&(Ro=to.bottom-So.bottom+Ro+lo)):to.bottom>So.bottom&&(Ro=to.bottom-So.bottom+lo,no<0&&to.top-Ro0&&to.right>So.right+$o&&($o=to.right-So.right+$o+ao)):to.right>So.right&&($o=to.right-So.right+ao,no<0&&to.leftno.clientHeight||no.scrollWidth>no.clientWidth)return no;no=no.assignedSlot||no.parentNode}else if(no.nodeType==11)no=no.host;else break;return null}class DOMSelectionState{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(to){return this.anchorNode==to.anchorNode&&this.anchorOffset==to.anchorOffset&&this.focusNode==to.focusNode&&this.focusOffset==to.focusOffset}setRange(to){let{anchorNode:no,focusNode:io}=to;this.set(no,Math.min(to.anchorOffset,no?maxOffset(no):0),io,Math.min(to.focusOffset,io?maxOffset(io):0))}set(to,no,io,so){this.anchorNode=to,this.anchorOffset=no,this.focusNode=io,this.focusOffset=so}}let preventScrollSupported=null;function focusPreventScroll(eo){if(eo.setActive)return eo.setActive();if(preventScrollSupported)return eo.focus(preventScrollSupported);let to=[];for(let no=eo;no&&(to.push(no,no.scrollTop,no.scrollLeft),no!=no.ownerDocument);no=no.parentNode);if(eo.focus(preventScrollSupported==null?{get preventScroll(){return preventScrollSupported={preventScroll:!0},!0}}:void 0),!preventScrollSupported){preventScrollSupported=!1;for(let no=0;noMath.max(1,eo.scrollHeight-eo.clientHeight-4)}function textNodeBefore(eo,to){for(let no=eo,io=to;;){if(no.nodeType==3&&io>0)return{node:no,offset:io};if(no.nodeType==1&&io>0){if(no.contentEditable=="false")return null;no=no.childNodes[io-1],io=maxOffset(no)}else if(no.parentNode&&!isBlockElement(no))io=domIndex(no),no=no.parentNode;else return null}}function textNodeAfter(eo,to){for(let no=eo,io=to;;){if(no.nodeType==3&&iono)return yo.domBoundsAround(to,no,go);if(So>=to&&so==-1&&(so=ho,ao=go),go>no&&yo.dom.parentNode==this.dom){lo=ho,uo=mo;break}mo=So,go=So+yo.breakAfter}return{from:ao,to:uo<0?io+this.length:uo,startDOM:(so?this.children[so-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:lo=0?this.children[lo].dom:null}}markDirty(to=!1){this.flags|=2,this.markParentsDirty(to)}markParentsDirty(to){for(let no=this.parent;no;no=no.parent){if(to&&(no.flags|=2),no.flags&1)return;no.flags|=1,to=!1}}setParent(to){this.parent!=to&&(this.parent=to,this.flags&7&&this.markParentsDirty(!0))}setDOM(to){this.dom!=to&&(this.dom&&(this.dom.cmView=null),this.dom=to,to.cmView=this)}get rootView(){for(let to=this;;){let no=to.parent;if(!no)return to;to=no}}replaceChildren(to,no,io=noChildren){this.markDirty();for(let so=to;sothis.pos||to==this.pos&&(no>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=to-this.pos,this;let io=this.children[--this.i];this.pos-=io.length+io.breakAfter}}}function replaceRange(eo,to,no,io,so,ao,lo,uo,ho){let{children:go}=eo,mo=go.length?go[to]:null,yo=ao.length?ao[ao.length-1]:null,So=yo?yo.breakAfter:lo;if(!(to==io&&mo&&!lo&&!So&&ao.length<2&&mo.merge(no,so,ao.length?yo:null,no==0,uo,ho))){if(io0&&(!lo&&ao.length&&mo.merge(no,mo.length,ao[0],!1,uo,0)?mo.breakAfter=ao.shift().breakAfter:(no2);var browser={mac:ios||/Mac/.test(nav.platform),windows:/Win/.test(nav.platform),linux:/Linux|X11/.test(nav.platform),ie,ie_version:ie_upto10?doc.documentMode||6:ie_11up?+ie_11up[1]:ie_edge?+ie_edge[1]:0,gecko,gecko_version:gecko?+(/Firefox\/(\d+)/.exec(nav.userAgent)||[0,0])[1]:0,chrome:!!chrome,chrome_version:chrome?+chrome[1]:0,ios,android:/Android\b/.test(nav.userAgent),webkit,safari,webkit_version:webkit?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:doc.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const MaxJoinLen=256;class TextView extends ContentView{constructor(to){super(),this.text=to}get length(){return this.text.length}createDOM(to){this.setDOM(to||document.createTextNode(this.text))}sync(to,no){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(no&&no.node==this.dom&&(no.written=!0),this.dom.nodeValue=this.text)}reuseDOM(to){to.nodeType==3&&this.createDOM(to)}merge(to,no,io){return this.flags&8||io&&(!(io instanceof TextView)||this.length-(no-to)+io.length>MaxJoinLen||io.flags&8)?!1:(this.text=this.text.slice(0,to)+(io?io.text:"")+this.text.slice(no),this.markDirty(),!0)}split(to){let no=new TextView(this.text.slice(to));return this.text=this.text.slice(0,to),this.markDirty(),no.flags|=this.flags&8,no}localPosFromDOM(to,no){return to==this.dom?no:no?this.text.length:0}domAtPos(to){return new DOMPos(this.dom,to)}domBoundsAround(to,no,io){return{from:io,to:io+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(to,no){return textCoords(this.dom,to,no)}}class MarkView extends ContentView{constructor(to,no=[],io=0){super(),this.mark=to,this.children=no,this.length=io;for(let so of no)so.setParent(this)}setAttrs(to){if(clearAttributes(to),this.mark.class&&(to.className=this.mark.class),this.mark.attrs)for(let no in this.mark.attrs)to.setAttribute(no,this.mark.attrs[no]);return to}canReuseDOM(to){return super.canReuseDOM(to)&&!((this.flags|to.flags)&8)}reuseDOM(to){to.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(to),this.flags|=6)}sync(to,no){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(to,no)}merge(to,no,io,so,ao,lo){return io&&(!(io instanceof MarkView&&io.mark.eq(this.mark))||to&&ao<=0||noto&&no.push(io=to&&(so=ao),io=ho,ao++}let lo=this.length-to;return this.length=to,so>-1&&(this.children.length=so,this.markDirty()),new MarkView(this.mark,no,lo)}domAtPos(to){return inlineDOMAtPos(this,to)}coordsAt(to,no){return coordsInChildren(this,to,no)}}function textCoords(eo,to,no){let io=eo.nodeValue.length;to>io&&(to=io);let so=to,ao=to,lo=0;to==0&&no<0||to==io&&no>=0?browser.chrome||browser.gecko||(to?(so--,lo=1):ao=0)?0:uo.length-1];return browser.safari&&!lo&&ho.width==0&&(ho=Array.prototype.find.call(uo,go=>go.width)||ho),lo?flattenRect(ho,lo<0):ho||null}class WidgetView extends ContentView{static create(to,no,io){return new WidgetView(to,no,io)}constructor(to,no,io){super(),this.widget=to,this.length=no,this.side=io,this.prevWidget=null}split(to){let no=WidgetView.create(this.widget,this.length-to,this.side);return this.length-=to,no}sync(to){(!this.dom||!this.widget.updateDOM(this.dom,to))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(to)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(to,no,io,so,ao,lo){return io&&(!(io instanceof WidgetView)||!this.widget.compare(io.widget)||to>0&&ao<=0||no0)?DOMPos.before(this.dom):DOMPos.after(this.dom,to==this.length)}domBoundsAround(){return null}coordsAt(to,no){let io=this.widget.coordsAt(this.dom,to,no);if(io)return io;let so=this.dom.getClientRects(),ao=null;if(!so.length)return null;let lo=this.side?this.side<0:to>0;for(let uo=lo?so.length-1:0;ao=so[uo],!(to>0?uo==0:uo==so.length-1||ao.top0?DOMPos.before(this.dom):DOMPos.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(to){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Text$1.empty}get isHidden(){return!0}}TextView.prototype.children=WidgetView.prototype.children=WidgetBufferView.prototype.children=noChildren;function inlineDOMAtPos(eo,to){let no=eo.dom,{children:io}=eo,so=0;for(let ao=0;soao&&to0;ao--){let lo=io[ao-1];if(lo.dom.parentNode==no)return lo.domAtPos(lo.length)}for(let ao=so;ao0&&to instanceof MarkView&&so.length&&(io=so[so.length-1])instanceof MarkView&&io.mark.eq(to.mark)?joinInlineInto(io,to.children[0],no-1):(so.push(to),to.setParent(eo)),eo.length+=to.length}function coordsInChildren(eo,to,no){let io=null,so=-1,ao=null,lo=-1;function uo(go,mo){for(let yo=0,So=0;yo=mo&&(_o.children.length?uo(_o,mo-So):(!ao||ao.isHidden&&no>0)&&(ko>mo||So==ko&&_o.getSide()>0)?(ao=_o,lo=mo-So):(So-1?1:0)!=so.length-(no&&so.indexOf(no)>-1?1:0))return!1;for(let ao of io)if(ao!=no&&(so.indexOf(ao)==-1||eo[ao]!==to[ao]))return!1;return!0}function updateAttrs(eo,to,no){let io=!1;if(to)for(let so in to)no&&so in no||(io=!0,so=="style"?eo.style.cssText="":eo.removeAttribute(so));if(no)for(let so in no)to&&to[so]==no[so]||(io=!0,so=="style"?eo.style.cssText=no[so]:eo.setAttribute(so,no[so]));return io}function getAttrs(eo){let to=Object.create(null);for(let no=0;no0&&this.children[io-1].length==0;)this.children[--io].destroy();return this.children.length=io,this.markDirty(),this.length=to,no}transferDOM(to){this.dom&&(this.markDirty(),to.setDOM(this.dom),to.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(to){attrsEq(this.attrs,to)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=to)}append(to,no){joinInlineInto(this,to,no)}addLineDeco(to){let no=to.spec.attributes,io=to.spec.class;no&&(this.attrs=combineAttrs(no,this.attrs||{})),io&&(this.attrs=combineAttrs({class:io},this.attrs||{}))}domAtPos(to){return inlineDOMAtPos(this,to)}reuseDOM(to){to.nodeName=="DIV"&&(this.setDOM(to),this.flags|=6)}sync(to,no){var io;this.dom?this.flags&4&&(clearAttributes(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(updateAttrs(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(to,no);let so=this.dom.lastChild;for(;so&&ContentView.get(so)instanceof MarkView;)so=so.lastChild;if(!so||!this.length||so.nodeName!="BR"&&((io=ContentView.get(so))===null||io===void 0?void 0:io.isEditable)==!1&&(!browser.ios||!this.children.some(ao=>ao instanceof TextView))){let ao=document.createElement("BR");ao.cmIgnore=!0,this.dom.appendChild(ao)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let to=0,no;for(let io of this.children){if(!(io instanceof TextView)||/[^ -~]/.test(io.text))return null;let so=clientRectsFor(io.dom);if(so.length!=1)return null;to+=so[0].width,no=so[0].height}return to?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:to/this.length,textHeight:no}:null}coordsAt(to,no){let io=coordsInChildren(this,to,no);if(!this.children.length&&io&&this.parent){let{heightOracle:so}=this.parent.view.viewState,ao=io.bottom-io.top;if(Math.abs(ao-so.lineHeight)<2&&so.textHeight=no){if(ao instanceof LineView)return ao;if(lo>no)break}so=lo+ao.breakAfter}return null}}class BlockWidgetView extends ContentView{constructor(to,no,io){super(),this.widget=to,this.length=no,this.deco=io,this.breakAfter=0,this.prevWidget=null}merge(to,no,io,so,ao,lo){return io&&(!(io instanceof BlockWidgetView)||!this.widget.compare(io.widget)||to>0&&ao<=0||no0}}class WidgetType{eq(to){return!1}updateDOM(to,no){return!1}compare(to){return this==to||this.constructor==to.constructor&&this.eq(to)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(to){return!0}coordsAt(to,no,io){return null}get isHidden(){return!1}get editable(){return!1}destroy(to){}}var BlockType=function(eo){return eo[eo.Text=0]="Text",eo[eo.WidgetBefore=1]="WidgetBefore",eo[eo.WidgetAfter=2]="WidgetAfter",eo[eo.WidgetRange=3]="WidgetRange",eo}(BlockType||(BlockType={}));class Decoration extends RangeValue{constructor(to,no,io,so){super(),this.startSide=to,this.endSide=no,this.widget=io,this.spec=so}get heightRelevant(){return!1}static mark(to){return new MarkDecoration(to)}static widget(to){let no=Math.max(-1e4,Math.min(1e4,to.side||0)),io=!!to.block;return no+=io&&!to.inlineOrder?no>0?3e8:-4e8:no>0?1e8:-1e8,new PointDecoration(to,no,no,io,to.widget||null,!1)}static replace(to){let no=!!to.block,io,so;if(to.isBlockGap)io=-5e8,so=4e8;else{let{start:ao,end:lo}=getInclusive(to,no);io=(ao?no?-3e8:-1:5e8)-1,so=(lo?no?2e8:1:-6e8)+1}return new PointDecoration(to,io,so,no,to.widget||null,!0)}static line(to){return new LineDecoration(to)}static set(to,no=!1){return RangeSet.of(to,no)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Decoration.none=RangeSet.empty;class MarkDecoration extends Decoration{constructor(to){let{start:no,end:io}=getInclusive(to);super(no?-1:5e8,io?1:-6e8,null,to),this.tagName=to.tagName||"span",this.class=to.class||"",this.attrs=to.attributes||null}eq(to){var no,io;return this==to||to instanceof MarkDecoration&&this.tagName==to.tagName&&(this.class||((no=this.attrs)===null||no===void 0?void 0:no.class))==(to.class||((io=to.attrs)===null||io===void 0?void 0:io.class))&&attrsEq(this.attrs,to.attrs,"class")}range(to,no=to){if(to>=no)throw new RangeError("Mark decorations may not be empty");return super.range(to,no)}}MarkDecoration.prototype.point=!1;class LineDecoration extends Decoration{constructor(to){super(-2e8,-2e8,null,to)}eq(to){return to instanceof LineDecoration&&this.spec.class==to.spec.class&&attrsEq(this.spec.attributes,to.spec.attributes)}range(to,no=to){if(no!=to)throw new RangeError("Line decoration ranges must be zero-length");return super.range(to,no)}}LineDecoration.prototype.mapMode=MapMode.TrackBefore;LineDecoration.prototype.point=!0;class PointDecoration extends Decoration{constructor(to,no,io,so,ao,lo){super(no,io,ao,to),this.block=so,this.isReplace=lo,this.mapMode=so?no<=0?MapMode.TrackBefore:MapMode.TrackAfter:MapMode.TrackDel}get type(){return this.startSide!=this.endSide?BlockType.WidgetRange:this.startSide<=0?BlockType.WidgetBefore:BlockType.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(to){return to instanceof PointDecoration&&widgetsEq(this.widget,to.widget)&&this.block==to.block&&this.startSide==to.startSide&&this.endSide==to.endSide}range(to,no=to){if(this.isReplace&&(to>no||to==no&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&no!=to)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(to,no)}}PointDecoration.prototype.point=!0;function getInclusive(eo,to=!1){let{inclusiveStart:no,inclusiveEnd:io}=eo;return no==null&&(no=eo.inclusive),io==null&&(io=eo.inclusive),{start:no??to,end:io??to}}function widgetsEq(eo,to){return eo==to||!!(eo&&to&&eo.compare(to))}function addRange(eo,to,no,io=0){let so=no.length-1;so>=0&&no[so]+io>=eo?no[so]=Math.max(no[so],to):no.push(eo,to)}class ContentBuilder{constructor(to,no,io,so){this.doc=to,this.pos=no,this.end=io,this.disallowBlockEffectsFor=so,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=to.iter(),this.skip=no}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let to=this.content[this.content.length-1];return!(to.breakAfter||to instanceof BlockWidgetView&&to.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new LineView),this.atCursorPos=!0),this.curLine}flushBuffer(to=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(wrapMarks(new WidgetBufferView(-1),to),to.length),this.pendingBuffer=0)}addBlockWidget(to){this.flushBuffer(),this.curLine=null,this.content.push(to)}finish(to){this.pendingBuffer&&to<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(to&&this.content.length&&this.content[this.content.length-1]instanceof BlockWidgetView)&&this.getLine()}buildText(to,no,io){for(;to>0;){if(this.textOff==this.text.length){let{value:ao,lineBreak:lo,done:uo}=this.cursor.next(this.skip);if(this.skip=0,uo)throw new Error("Ran out of text content when drawing inline views");if(lo){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,to--;continue}else this.text=ao,this.textOff=0}let so=Math.min(this.text.length-this.textOff,to,512);this.flushBuffer(no.slice(no.length-io)),this.getLine().append(wrapMarks(new TextView(this.text.slice(this.textOff,this.textOff+so)),no),io),this.atCursorPos=!0,this.textOff+=so,to-=so,io=0}}span(to,no,io,so){this.buildText(no-to,io,so),this.pos=no,this.openStart<0&&(this.openStart=so)}point(to,no,io,so,ao,lo){if(this.disallowBlockEffectsFor[lo]&&io instanceof PointDecoration){if(io.block)throw new RangeError("Block decorations may not be specified via plugins");if(no>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let uo=no-to;if(io instanceof PointDecoration)if(io.block)io.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new BlockWidgetView(io.widget||NullWidget.block,uo,io));else{let ho=WidgetView.create(io.widget||NullWidget.inline,uo,uo?0:io.startSide),go=this.atCursorPos&&!ho.isEditable&&ao<=so.length&&(to0),mo=!ho.isEditable&&(toso.length||io.startSide<=0),yo=this.getLine();this.pendingBuffer==2&&!go&&!ho.isEditable&&(this.pendingBuffer=0),this.flushBuffer(so),go&&(yo.append(wrapMarks(new WidgetBufferView(1),so),ao),ao=so.length+Math.max(0,ao-so.length)),yo.append(wrapMarks(ho,so),ao),this.atCursorPos=mo,this.pendingBuffer=mo?toso.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=so.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(io);uo&&(this.textOff+uo<=this.text.length?this.textOff+=uo:(this.skip+=uo-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=no),this.openStart<0&&(this.openStart=ao)}static build(to,no,io,so,ao){let lo=new ContentBuilder(to,no,io,ao);return lo.openEnd=RangeSet.spans(so,no,io,lo),lo.openStart<0&&(lo.openStart=lo.openEnd),lo.finish(lo.openEnd),lo}}function wrapMarks(eo,to){for(let no of to)eo=new MarkView(no,[eo],eo.length);return eo}class NullWidget extends WidgetType{constructor(to){super(),this.tag=to}eq(to){return to.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(to){return to.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}NullWidget.inline=new NullWidget("span");NullWidget.block=new NullWidget("div");var Direction=function(eo){return eo[eo.LTR=0]="LTR",eo[eo.RTL=1]="RTL",eo}(Direction||(Direction={}));const LTR=Direction.LTR,RTL=Direction.RTL;function dec(eo){let to=[];for(let no=0;no=no){if(uo.level==io)return lo;(ao<0||(so!=0?so<0?uo.fromno:to[ao].level>uo.level))&&(ao=lo)}}if(ao<0)throw new RangeError("Index out of range");return ao}}function isolatesEq(eo,to){if(eo.length!=to.length)return!1;for(let no=0;no=0;Co-=3)if(BracketStack[Co+1]==-_o){let $o=BracketStack[Co+2],Ro=$o&2?so:$o&4?$o&1?ao:so:0;Ro&&(types[yo]=types[BracketStack[Co]]=Ro),uo=Co;break}}else{if(BracketStack.length==189)break;BracketStack[uo++]=yo,BracketStack[uo++]=So,BracketStack[uo++]=ho}else if((ko=types[yo])==2||ko==1){let Co=ko==so;ho=Co?0:1;for(let $o=uo-3;$o>=0;$o-=3){let Ro=BracketStack[$o+2];if(Ro&2)break;if(Co)BracketStack[$o+2]|=2;else{if(Ro&4)break;BracketStack[$o+2]|=4}}}}}function processNeutrals(eo,to,no,io){for(let so=0,ao=io;so<=no.length;so++){let lo=so?no[so-1].to:eo,uo=soho;)ko==$o&&(ko=no[--Co].from,$o=Co?no[Co-1].to:eo),types[--ko]=_o;ho=mo}else ao=go,ho++}}}function emitSpans(eo,to,no,io,so,ao,lo){let uo=io%2?2:1;if(io%2==so%2)for(let ho=to,go=0;hoho&&lo.push(new BidiSpan(ho,Co.from,_o));let $o=Co.direction==LTR!=!(_o%2);computeSectionOrder(eo,$o?io+1:io,so,Co.inner,Co.from,Co.to,lo),ho=Co.to}ko=Co.to}else{if(ko==no||(mo?types[ko]!=uo:types[ko]==uo))break;ko++}So?emitSpans(eo,ho,ko,io+1,so,So,lo):hoto;){let mo=!0,yo=!1;if(!go||ho>ao[go-1].to){let Co=types[ho-1];Co!=uo&&(mo=!1,yo=Co==16)}let So=!mo&&uo==1?[]:null,_o=mo?io:io+1,ko=ho;e:for(;;)if(go&&ko==ao[go-1].to){if(yo)break e;let Co=ao[--go];if(!mo)for(let $o=Co.from,Ro=go;;){if($o==to)break e;if(Ro&&ao[Ro-1].to==$o)$o=ao[--Ro].from;else{if(types[$o-1]==uo)break e;break}}if(So)So.push(Co);else{Co.totypes.length;)types[types.length]=256;let io=[],so=to==LTR?0:1;return computeSectionOrder(eo,so,so,no,0,eo.length,io),io}function trivialOrder(eo){return[new BidiSpan(0,eo,0)]}let movedOver="";function moveVisually(eo,to,no,io,so){var ao;let lo=io.head-eo.from,uo=BidiSpan.find(to,lo,(ao=io.bidiLevel)!==null&&ao!==void 0?ao:-1,io.assoc),ho=to[uo],go=ho.side(so,no);if(lo==go){let So=uo+=so?1:-1;if(So<0||So>=to.length)return null;ho=to[uo=So],lo=ho.side(!so,no),go=ho.side(so,no)}let mo=findClusterBreak(eo.text,lo,ho.forward(so,no));(moho.to)&&(mo=go),movedOver=eo.text.slice(Math.min(lo,mo),Math.max(lo,mo));let yo=uo==(so?to.length-1:0)?null:to[uo+(so?1:-1)];return yo&&mo==go&&yo.level+(so?0:1)eo.some(to=>to)}),nativeSelectionHidden=Facet.define({combine:eo=>eo.some(to=>to)}),scrollHandler=Facet.define();class ScrollTarget{constructor(to,no="nearest",io="nearest",so=5,ao=5,lo=!1){this.range=to,this.y=no,this.x=io,this.yMargin=so,this.xMargin=ao,this.isSnapshot=lo}map(to){return to.empty?this:new ScrollTarget(this.range.map(to),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(to){return this.range.to<=to.doc.length?this:new ScrollTarget(EditorSelection.cursor(to.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const scrollIntoView$1=StateEffect.define({map:(eo,to)=>eo.map(to)});function logException(eo,to,no){let io=eo.facet(exceptionSink);io.length?io[0](to):window.onerror?window.onerror(String(to),no,void 0,void 0,to):no?console.error(no+":",to):console.error(to)}const editable=Facet.define({combine:eo=>eo.length?eo[0]:!0});let nextPluginID=0;const viewPlugin=Facet.define();class ViewPlugin{constructor(to,no,io,so,ao){this.id=to,this.create=no,this.domEventHandlers=io,this.domEventObservers=so,this.extension=ao(this)}static define(to,no){const{eventHandlers:io,eventObservers:so,provide:ao,decorations:lo}=no||{};return new ViewPlugin(nextPluginID++,to,io,so,uo=>{let ho=[viewPlugin.of(uo)];return lo&&ho.push(decorations.of(go=>{let mo=go.plugin(uo);return mo?lo(mo):Decoration.none})),ao&&ho.push(ao(uo)),ho})}static fromClass(to,no){return ViewPlugin.define(io=>new to(io),no)}}class PluginInstance{constructor(to){this.spec=to,this.mustUpdate=null,this.value=null}update(to){if(this.value){if(this.mustUpdate){let no=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(no)}catch(io){if(logException(no.state,io,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(to)}catch(no){logException(to.state,no,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(to){var no;if(!((no=this.value)===null||no===void 0)&&no.destroy)try{this.value.destroy()}catch(io){logException(to.state,io,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const editorAttributes=Facet.define(),contentAttributes=Facet.define(),decorations=Facet.define(),outerDecorations=Facet.define(),atomicRanges=Facet.define(),bidiIsolatedRanges=Facet.define();function getIsolatedRanges(eo,to){let no=eo.state.facet(bidiIsolatedRanges);if(!no.length)return no;let io=no.map(ao=>ao instanceof Function?ao(eo):ao),so=[];return RangeSet.spans(io,to.from,to.to,{point(){},span(ao,lo,uo,ho){let go=ao-to.from,mo=lo-to.from,yo=so;for(let So=uo.length-1;So>=0;So--,ho--){let _o=uo[So].spec.bidiIsolate,ko;if(_o==null&&(_o=autoDirection(to.text,go,mo)),ho>0&&yo.length&&(ko=yo[yo.length-1]).to==go&&ko.direction==_o)ko.to=mo,yo=ko.inner;else{let Co={from:go,to:mo,direction:_o,inner:[]};yo.push(Co),yo=Co.inner}}}}),so}const scrollMargins=Facet.define();function getScrollMargins(eo){let to=0,no=0,io=0,so=0;for(let ao of eo.state.facet(scrollMargins)){let lo=ao(eo);lo&&(lo.left!=null&&(to=Math.max(to,lo.left)),lo.right!=null&&(no=Math.max(no,lo.right)),lo.top!=null&&(io=Math.max(io,lo.top)),lo.bottom!=null&&(so=Math.max(so,lo.bottom)))}return{left:to,right:no,top:io,bottom:so}}const styleModule=Facet.define();class ChangedRange{constructor(to,no,io,so){this.fromA=to,this.toA=no,this.fromB=io,this.toB=so}join(to){return new ChangedRange(Math.min(this.fromA,to.fromA),Math.max(this.toA,to.toA),Math.min(this.fromB,to.fromB),Math.max(this.toB,to.toB))}addToSet(to){let no=to.length,io=this;for(;no>0;no--){let so=to[no-1];if(!(so.fromA>io.toA)){if(so.toAmo)break;ao+=2}if(!ho)return io;new ChangedRange(ho.fromA,ho.toA,ho.fromB,ho.toB).addToSet(io),lo=ho.toA,uo=ho.toB}}}class ViewUpdate{constructor(to,no,io){this.view=to,this.state=no,this.transactions=io,this.flags=0,this.startState=to.state,this.changes=ChangeSet.empty(this.startState.doc.length);for(let ao of io)this.changes=this.changes.compose(ao.changes);let so=[];this.changes.iterChangedRanges((ao,lo,uo,ho)=>so.push(new ChangedRange(ao,lo,uo,ho))),this.changedRanges=so}static create(to,no,io){return new ViewUpdate(to,no,io)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(to=>to.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class DocView extends ContentView{get length(){return this.view.state.doc.length}constructor(to){super(),this.view=to,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.compositionBarrier=Decoration.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(to.contentDOM),this.children=[new LineView],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new ChangedRange(0,0,0,to.state.doc.length)],0,null)}update(to){var no;let io=to.changedRanges;this.minWidth>0&&io.length&&(io.every(({fromA:go,toA:mo})=>mothis.minWidthTo)?(this.minWidthFrom=to.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=to.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let so=-1;this.view.inputState.composing>=0&&(!((no=this.domChanged)===null||no===void 0)&&no.newSel?so=this.domChanged.newSel.head:!touchesComposition(to.changes,this.hasComposition)&&!to.selectionSet&&(so=to.state.selection.main.head));let ao=so>-1?findCompositionRange(this.view,to.changes,so):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:go,to:mo}=this.hasComposition;io=new ChangedRange(go,mo,to.changes.mapPos(go,-1),to.changes.mapPos(mo,1)).addToSet(io.slice())}this.hasComposition=ao?{from:ao.range.fromB,to:ao.range.toB}:null,(browser.ie||browser.chrome)&&!ao&&to&&to.state.doc.lines!=to.startState.doc.lines&&(this.forceSelection=!0);let lo=this.decorations,uo=this.updateDeco(),ho=findChangedDeco(lo,uo,to.changes);return io=ChangedRange.extendWithRanges(io,ho),!(this.flags&7)&&io.length==0?!1:(this.updateInner(io,to.startState.doc.length,ao),to.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(to,no,io){this.view.viewState.mustMeasureContent=!0,this.updateChildren(to,no,io);let{observer:so}=this.view;so.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let lo=browser.chrome||browser.ios?{node:so.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,lo),this.flags&=-8,lo&&(lo.written||so.selectionRange.focusNode!=lo.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(lo=>lo.flags&=-9);let ao=[];if(this.view.viewport.from||this.view.viewport.to=0?so[lo]:null;if(!uo)break;let{fromA:ho,toA:go,fromB:mo,toB:yo}=uo,So,_o,ko,Co;if(io&&io.range.fromBmo){let Mo=ContentBuilder.build(this.view.state.doc,mo,io.range.fromB,this.decorations,this.dynamicDecorationMap),Bo=ContentBuilder.build(this.view.state.doc,io.range.toB,yo,this.decorations,this.dynamicDecorationMap);_o=Mo.breakAtStart,ko=Mo.openStart,Co=Bo.openEnd;let Po=this.compositionView(io);Bo.breakAtStart?Po.breakAfter=1:Bo.content.length&&Po.merge(Po.length,Po.length,Bo.content[0],!1,Bo.openStart,0)&&(Po.breakAfter=Bo.content[0].breakAfter,Bo.content.shift()),Mo.content.length&&Po.merge(0,0,Mo.content[Mo.content.length-1],!0,0,Mo.openEnd)&&Mo.content.pop(),So=Mo.content.concat(Po).concat(Bo.content)}else({content:So,breakAtStart:_o,openStart:ko,openEnd:Co}=ContentBuilder.build(this.view.state.doc,mo,yo,this.decorations,this.dynamicDecorationMap));let{i:$o,off:Ro}=ao.findPos(go,1),{i:Oo,off:No}=ao.findPos(ho,-1);replaceRange(this,Oo,No,$o,Ro,So,_o,ko,Co)}io&&this.fixCompositionDOM(io)}compositionView(to){let no=new TextView(to.text.nodeValue);no.flags|=8;for(let{deco:so}of to.marks)no=new MarkView(so,[no],no.length);let io=new LineView;return io.append(no,0),io}fixCompositionDOM(to){let no=(ao,lo)=>{lo.flags|=8|(lo.children.some(ho=>ho.flags&7)?1:0),this.markedForComposition.add(lo);let uo=ContentView.get(ao);uo&&uo!=lo&&(uo.dom=null),lo.setDOM(ao)},io=this.childPos(to.range.fromB,1),so=this.children[io.i];no(to.line,so);for(let ao=to.marks.length-1;ao>=-1;ao--)io=so.childPos(io.off,1),so=so.children[io.i],no(ao>=0?to.marks[ao].node:to.text,so)}updateSelection(to=!1,no=!1){(to||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let io=this.view.root.activeElement,so=io==this.dom,ao=!so&&hasSelection(this.dom,this.view.observer.selectionRange)&&!(io&&this.dom.contains(io));if(!(so||no||ao))return;let lo=this.forceSelection;this.forceSelection=!1;let uo=this.view.state.selection.main,ho=this.moveToLine(this.domAtPos(uo.anchor)),go=uo.empty?ho:this.moveToLine(this.domAtPos(uo.head));if(browser.gecko&&uo.empty&&!this.hasComposition&&betweenUneditable(ho)){let yo=document.createTextNode("");this.view.observer.ignore(()=>ho.node.insertBefore(yo,ho.node.childNodes[ho.offset]||null)),ho=go=new DOMPos(yo,0),lo=!0}let mo=this.view.observer.selectionRange;(lo||!mo.focusNode||(!isEquivalentPosition(ho.node,ho.offset,mo.anchorNode,mo.anchorOffset)||!isEquivalentPosition(go.node,go.offset,mo.focusNode,mo.focusOffset))&&!this.suppressWidgetCursorChange(mo,uo))&&(this.view.observer.ignore(()=>{browser.android&&browser.chrome&&this.dom.contains(mo.focusNode)&&inUneditable(mo.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let yo=getSelection(this.view.root);if(yo)if(uo.empty){if(browser.gecko){let So=nextToUneditable(ho.node,ho.offset);if(So&&So!=3){let _o=(So==1?textNodeBefore:textNodeAfter)(ho.node,ho.offset);_o&&(ho=new DOMPos(_o.node,_o.offset))}}yo.collapse(ho.node,ho.offset),uo.bidiLevel!=null&&yo.caretBidiLevel!==void 0&&(yo.caretBidiLevel=uo.bidiLevel)}else if(yo.extend){yo.collapse(ho.node,ho.offset);try{yo.extend(go.node,go.offset)}catch{}}else{let So=document.createRange();uo.anchor>uo.head&&([ho,go]=[go,ho]),So.setEnd(go.node,go.offset),So.setStart(ho.node,ho.offset),yo.removeAllRanges(),yo.addRange(So)}ao&&this.view.root.activeElement==this.dom&&(this.dom.blur(),io&&io.focus())}),this.view.observer.setSelectionRange(ho,go)),this.impreciseAnchor=ho.precise?null:new DOMPos(mo.anchorNode,mo.anchorOffset),this.impreciseHead=go.precise?null:new DOMPos(mo.focusNode,mo.focusOffset)}suppressWidgetCursorChange(to,no){return this.hasComposition&&no.empty&&!this.compositionBarrier.size&&isEquivalentPosition(to.focusNode,to.focusOffset,to.anchorNode,to.anchorOffset)&&this.posFromDOM(to.focusNode,to.focusOffset)==no.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:to}=this,no=to.state.selection.main,io=getSelection(to.root),{anchorNode:so,anchorOffset:ao}=to.observer.selectionRange;if(!io||!no.empty||!no.assoc||!io.modify)return;let lo=LineView.find(this,no.head);if(!lo)return;let uo=lo.posAtStart;if(no.head==uo||no.head==uo+lo.length)return;let ho=this.coordsAt(no.head,-1),go=this.coordsAt(no.head,1);if(!ho||!go||ho.bottom>go.top)return;let mo=this.domAtPos(no.head+no.assoc);io.collapse(mo.node,mo.offset),io.modify("move",no.assoc<0?"forward":"backward","lineboundary"),to.observer.readSelectionRange();let yo=to.observer.selectionRange;to.docView.posFromDOM(yo.anchorNode,yo.anchorOffset)!=no.from&&io.collapse(so,ao)}moveToLine(to){let no=this.dom,io;if(to.node!=no)return to;for(let so=to.offset;!io&&so=0;so--){let ao=ContentView.get(no.childNodes[so]);ao instanceof LineView&&(io=ao.domAtPos(ao.length))}return io?new DOMPos(io.node,io.offset,!0):to}nearest(to){for(let no=to;no;){let io=ContentView.get(no);if(io&&io.rootView==this)return io;no=no.parentNode}return null}posFromDOM(to,no){let io=this.nearest(to);if(!io)throw new RangeError("Trying to find position for a DOM position outside of the document");return io.localPosFromDOM(to,no)+io.posAtStart}domAtPos(to){let{i:no,off:io}=this.childCursor().findPos(to,-1);for(;no=0;lo--){let uo=this.children[lo],ho=ao-uo.breakAfter,go=ho-uo.length;if(hoto||uo.covers(1))&&(!io||uo instanceof LineView&&!(io instanceof LineView&&no>=0))&&(io=uo,so=go),ao=go}return io?io.coordsAt(to-so,no):null}coordsForChar(to){let{i:no,off:io}=this.childPos(to,1),so=this.children[no];if(!(so instanceof LineView))return null;for(;so.children.length;){let{i:uo,off:ho}=so.childPos(io,1);for(;;uo++){if(uo==so.children.length)return null;if((so=so.children[uo]).length)break}io=ho}if(!(so instanceof TextView))return null;let ao=findClusterBreak(so.text,io);if(ao==io)return null;let lo=textRange(so.dom,io,ao).getClientRects();for(let uo=0;uoMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,uo=-1,ho=this.view.textDirection==Direction.LTR;for(let go=0,mo=0;moso)break;if(go>=io){let _o=yo.dom.getBoundingClientRect();if(no.push(_o.height),lo){let ko=yo.dom.lastChild,Co=ko?clientRectsFor(ko):[];if(Co.length){let $o=Co[Co.length-1],Ro=ho?$o.right-_o.left:_o.right-$o.left;Ro>uo&&(uo=Ro,this.minWidth=ao,this.minWidthFrom=go,this.minWidthTo=So)}}}go=So+yo.breakAfter}return no}textDirectionAt(to){let{i:no}=this.childPos(to,1);return getComputedStyle(this.children[no].dom).direction=="rtl"?Direction.RTL:Direction.LTR}measureTextSize(){for(let ao of this.children)if(ao instanceof LineView){let lo=ao.measureTextSize();if(lo)return lo}let to=document.createElement("div"),no,io,so;return to.className="cm-line",to.style.width="99999px",to.style.position="absolute",to.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(to);let ao=clientRectsFor(to.firstChild)[0];no=to.getBoundingClientRect().height,io=ao?ao.width/27:7,so=ao?ao.height:no,to.remove()}),{lineHeight:no,charWidth:io,textHeight:so}}childCursor(to=this.length){let no=this.children.length;return no&&(to-=this.children[--no].length),new ChildCursor(this.children,to,no)}computeBlockGapDeco(){let to=[],no=this.view.viewState;for(let io=0,so=0;;so++){let ao=so==no.viewports.length?null:no.viewports[so],lo=ao?ao.from-1:this.length;if(lo>io){let uo=(no.lineBlockAt(lo).bottom-no.lineBlockAt(io).top)/this.view.scaleY;to.push(Decoration.replace({widget:new BlockGapWidget(uo),block:!0,inclusive:!0,isBlockGap:!0}).range(io,lo))}if(!ao)break;io=ao.to+1}return Decoration.set(to)}updateDeco(){let to=1,no=this.view.state.facet(decorations).map(ao=>(this.dynamicDecorationMap[to++]=typeof ao=="function")?ao(this.view):ao),io=!1,so=this.view.state.facet(outerDecorations).map((ao,lo)=>{let uo=typeof ao=="function";return uo&&(io=!0),uo?ao(this.view):ao});for(so.length&&(this.dynamicDecorationMap[to++]=io,no.push(RangeSet.join(so))),this.decorations=[this.compositionBarrier,...no,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];to{uo.point?io=!1:uo.endSide<0&&aono.anchor?-1:1),so;if(!io)return;!no.empty&&(so=this.coordsAt(no.anchor,no.anchor>no.head?-1:1))&&(io={left:Math.min(io.left,so.left),top:Math.min(io.top,so.top),right:Math.max(io.right,so.right),bottom:Math.max(io.bottom,so.bottom)});let ao=getScrollMargins(this.view),lo={left:io.left-ao.left,top:io.top-ao.top,right:io.right+ao.right,bottom:io.bottom+ao.bottom},{offsetWidth:uo,offsetHeight:ho}=this.view.scrollDOM;scrollRectIntoView(this.view.scrollDOM,lo,no.head{ioto.from&&(no=!0)}),no}function groupAt(eo,to,no=1){let io=eo.charCategorizer(to),so=eo.doc.lineAt(to),ao=to-so.from;if(so.length==0)return EditorSelection.cursor(to);ao==0?no=1:ao==so.length&&(no=-1);let lo=ao,uo=ao;no<0?lo=findClusterBreak(so.text,ao,!1):uo=findClusterBreak(so.text,ao);let ho=io(so.text.slice(lo,uo));for(;lo>0;){let go=findClusterBreak(so.text,lo,!1);if(io(so.text.slice(go,lo))!=ho)break;lo=go}for(;uoeo?to.left-eo:Math.max(0,eo-to.right)}function getdy(eo,to){return to.top>eo?to.top-eo:Math.max(0,eo-to.bottom)}function yOverlap(eo,to){return eo.topto.top+1}function upTop(eo,to){return toeo.bottom?{top:eo.top,left:eo.left,right:eo.right,bottom:to}:eo}function domPosAtCoords(eo,to,no){let io,so,ao,lo,uo=!1,ho,go,mo,yo;for(let ko=eo.firstChild;ko;ko=ko.nextSibling){let Co=clientRectsFor(ko);for(let $o=0;$oNo||lo==No&&ao>Oo){io=ko,so=Ro,ao=Oo,lo=No;let Mo=No?no0?$o0)}Oo==0?no>Ro.bottom&&(!mo||mo.bottomRo.top)&&(go=ko,yo=Ro):mo&&yOverlap(mo,Ro)?mo=upBot(mo,Ro.bottom):yo&&yOverlap(yo,Ro)&&(yo=upTop(yo,Ro.top))}}if(mo&&mo.bottom>=no?(io=ho,so=mo):yo&&yo.top<=no&&(io=go,so=yo),!io)return{node:eo,offset:0};let So=Math.max(so.left,Math.min(so.right,to));if(io.nodeType==3)return domPosInText(io,So,no);if(uo&&io.contentEditable!="false")return domPosAtCoords(io,So,no);let _o=Array.prototype.indexOf.call(eo.childNodes,io)+(to>=(so.left+so.right)/2?1:0);return{node:eo,offset:_o}}function domPosInText(eo,to,no){let io=eo.nodeValue.length,so=-1,ao=1e9,lo=0;for(let uo=0;uono?mo.top-no:no-mo.bottom)-1;if(mo.left-1<=to&&mo.right+1>=to&&yo=(mo.left+mo.right)/2,_o=So;if((browser.chrome||browser.gecko)&&textRange(eo,uo).getBoundingClientRect().left==mo.right&&(_o=!So),yo<=0)return{node:eo,offset:uo+(_o?1:0)};so=uo+(_o?1:0),ao=yo}}}return{node:eo,offset:so>-1?so:lo>0?eo.nodeValue.length:0}}function posAtCoords(eo,to,no,io=-1){var so,ao;let lo=eo.contentDOM.getBoundingClientRect(),uo=lo.top+eo.viewState.paddingTop,ho,{docHeight:go}=eo.viewState,{x:mo,y:yo}=to,So=yo-uo;if(So<0)return 0;if(So>go)return eo.state.doc.length;for(let Mo=eo.viewState.heightOracle.textHeight/2,Bo=!1;ho=eo.elementAtHeight(So),ho.type!=BlockType.Text;)for(;So=io>0?ho.bottom+Mo:ho.top-Mo,!(So>=0&&So<=go);){if(Bo)return no?null:0;Bo=!0,io=-io}yo=uo+So;let _o=ho.from;if(_oeo.viewport.to)return eo.viewport.to==eo.state.doc.length?eo.state.doc.length:no?null:posAtCoordsImprecise(eo,lo,ho,mo,yo);let ko=eo.dom.ownerDocument,Co=eo.root.elementFromPoint?eo.root:ko,$o=Co.elementFromPoint(mo,yo);$o&&!eo.contentDOM.contains($o)&&($o=null),$o||(mo=Math.max(lo.left+1,Math.min(lo.right-1,mo)),$o=Co.elementFromPoint(mo,yo),$o&&!eo.contentDOM.contains($o)&&($o=null));let Ro,Oo=-1;if($o&&((so=eo.docView.nearest($o))===null||so===void 0?void 0:so.isEditable)!=!1){if(ko.caretPositionFromPoint){let Mo=ko.caretPositionFromPoint(mo,yo);Mo&&({offsetNode:Ro,offset:Oo}=Mo)}else if(ko.caretRangeFromPoint){let Mo=ko.caretRangeFromPoint(mo,yo);Mo&&({startContainer:Ro,startOffset:Oo}=Mo,(!eo.contentDOM.contains(Ro)||browser.safari&&isSuspiciousSafariCaretResult(Ro,Oo,mo)||browser.chrome&&isSuspiciousChromeCaretResult(Ro,Oo,mo))&&(Ro=void 0))}}if(!Ro||!eo.docView.dom.contains(Ro)){let Mo=LineView.find(eo.docView,_o);if(!Mo)return So>ho.top+ho.height/2?ho.to:ho.from;({node:Ro,offset:Oo}=domPosAtCoords(Mo.dom,mo,yo))}let No=eo.docView.nearest(Ro);if(!No)return null;if(No.isWidget&&((ao=No.dom)===null||ao===void 0?void 0:ao.nodeType)==1){let Mo=No.dom.getBoundingClientRect();return to.yeo.defaultLineHeight*1.5){let uo=eo.viewState.heightOracle.textHeight,ho=Math.floor((so-no.top-(eo.defaultLineHeight-uo)*.5)/uo);ao+=ho*eo.viewState.heightOracle.lineLength}let lo=eo.state.sliceDoc(no.from,no.to);return no.from+findColumn(lo,ao,eo.state.tabSize)}function isSuspiciousSafariCaretResult(eo,to,no){let io;if(eo.nodeType!=3||to!=(io=eo.nodeValue.length))return!1;for(let so=eo.nextSibling;so;so=so.nextSibling)if(so.nodeType!=1||so.nodeName!="BR")return!1;return textRange(eo,io-1,io).getBoundingClientRect().left>no}function isSuspiciousChromeCaretResult(eo,to,no){if(to!=0)return!1;for(let so=eo;;){let ao=so.parentNode;if(!ao||ao.nodeType!=1||ao.firstChild!=so)return!1;if(ao.classList.contains("cm-line"))break;so=ao}let io=eo.nodeType==1?eo.getBoundingClientRect():textRange(eo,0,Math.max(eo.nodeValue.length,1)).getBoundingClientRect();return no-io.left>5}function blockAt(eo,to){let no=eo.lineBlockAt(to);if(Array.isArray(no.type)){for(let io of no.type)if(io.to>to||io.to==to&&(io.to==no.to||io.type==BlockType.Text))return io}return no}function moveToLineBoundary(eo,to,no,io){let so=blockAt(eo,to.head),ao=!io||so.type!=BlockType.Text||!(eo.lineWrapping||so.widgetLineBreaks)?null:eo.coordsAtPos(to.assoc<0&&to.head>so.from?to.head-1:to.head);if(ao){let lo=eo.dom.getBoundingClientRect(),uo=eo.textDirectionAt(so.from),ho=eo.posAtCoords({x:no==(uo==Direction.LTR)?lo.right-1:lo.left+1,y:(ao.top+ao.bottom)/2});if(ho!=null)return EditorSelection.cursor(ho,no?-1:1)}return EditorSelection.cursor(no?so.to:so.from,no?-1:1)}function moveByChar(eo,to,no,io){let so=eo.state.doc.lineAt(to.head),ao=eo.bidiSpans(so),lo=eo.textDirectionAt(so.from);for(let uo=to,ho=null;;){let go=moveVisually(so,ao,lo,uo,no),mo=movedOver;if(!go){if(so.number==(no?eo.state.doc.lines:1))return uo;mo=` -`,so=eo.state.doc.line(so.number+(no?1:-1)),ao=eo.bidiSpans(so),go=eo.visualLineSide(so,!no)}if(ho){if(!ho(mo))return uo}else{if(!io)return go;ho=io(mo)}uo=go}}function byGroup(eo,to,no){let io=eo.state.charCategorizer(to),so=io(no);return ao=>{let lo=io(ao);return so==CharCategory.Space&&(so=lo),so==lo}}function moveVertically(eo,to,no,io){let so=to.head,ao=no?1:-1;if(so==(no?eo.state.doc.length:0))return EditorSelection.cursor(so,to.assoc);let lo=to.goalColumn,uo,ho=eo.contentDOM.getBoundingClientRect(),go=eo.coordsAtPos(so,to.assoc||-1),mo=eo.documentTop;if(go)lo==null&&(lo=go.left-ho.left),uo=ao<0?go.top:go.bottom;else{let _o=eo.viewState.lineBlockAt(so);lo==null&&(lo=Math.min(ho.right-ho.left,eo.defaultCharacterWidth*(so-_o.from))),uo=(ao<0?_o.top:_o.bottom)+mo}let yo=ho.left+lo,So=io??eo.viewState.heightOracle.textHeight>>1;for(let _o=0;;_o+=10){let ko=uo+(So+_o)*ao,Co=posAtCoords(eo,{x:yo,y:ko},!1,ao);if(koho.bottom||(ao<0?Coso)){let $o=eo.docView.coordsForChar(Co),Ro=!$o||ko<$o.top?-1:1;return EditorSelection.cursor(Co,Ro,void 0,lo)}}}function skipAtomicRanges(eo,to,no){for(;;){let io=0;for(let so of eo)so.between(to-1,to+1,(ao,lo,uo)=>{if(to>ao&&toso(eo)),no.from,to.head>no.from?-1:1);return io==no.from?no:EditorSelection.cursor(io,ionull),browser.gecko&&firefoxCopyCutHack(to.contentDOM.ownerDocument)}handleEvent(to){!eventBelongsToEditor(this.view,to)||this.ignoreDuringComposition(to)||to.type=="keydown"&&this.keydown(to)||this.runHandlers(to.type,to)}runHandlers(to,no){let io=this.handlers[to];if(io){for(let so of io.observers)so(this.view,no);for(let so of io.handlers){if(no.defaultPrevented)break;if(so(this.view,no)){no.preventDefault();break}}}}ensureHandlers(to){let no=computeHandlers(to),io=this.handlers,so=this.view.contentDOM;for(let ao in no)if(ao!="scroll"){let lo=!no[ao].handlers.length,uo=io[ao];uo&&lo!=!uo.handlers.length&&(so.removeEventListener(ao,this.handleEvent),uo=null),uo||so.addEventListener(ao,this.handleEvent,{passive:lo})}for(let ao in io)ao!="scroll"&&!no[ao]&&so.removeEventListener(ao,this.handleEvent);this.handlers=no}keydown(to){if(this.lastKeyCode=to.keyCode,this.lastKeyTime=Date.now(),to.keyCode==9&&Date.now()io.keyCode==to.keyCode))&&!to.ctrlKey||EmacsyPendingKeys.indexOf(to.key)>-1&&to.ctrlKey&&!to.shiftKey)?(this.pendingIOSKey=no||to,setTimeout(()=>this.flushIOSKey(),250),!0):(to.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(to){let no=this.pendingIOSKey;return!no||no.key=="Enter"&&to&&to.from0?!0:browser.safari&&!browser.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(to){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=to}update(to){this.mouseSelection&&this.mouseSelection.update(to),this.draggedContent&&to.docChanged&&(this.draggedContent=this.draggedContent.map(to.changes)),to.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function bindHandler(eo,to){return(no,io)=>{try{return to.call(eo,io,no)}catch(so){logException(no.state,so)}}}function computeHandlers(eo){let to=Object.create(null);function no(io){return to[io]||(to[io]={observers:[],handlers:[]})}for(let io of eo){let so=io.spec;if(so&&so.domEventHandlers)for(let ao in so.domEventHandlers){let lo=so.domEventHandlers[ao];lo&&no(ao).handlers.push(bindHandler(io.value,lo))}if(so&&so.domEventObservers)for(let ao in so.domEventObservers){let lo=so.domEventObservers[ao];lo&&no(ao).observers.push(bindHandler(io.value,lo))}}for(let io in handlers)no(io).handlers.push(handlers[io]);for(let io in observers)no(io).observers.push(observers[io]);return to}const PendingKeys=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],EmacsyPendingKeys="dthko",modifierCodes=[16,17,18,20,91,92,224,225],dragScrollMargin=6;function dragScrollSpeed(eo){return Math.max(0,eo)*.7+8}function dist$1(eo,to){return Math.max(Math.abs(eo.clientX-to.clientX),Math.abs(eo.clientY-to.clientY))}class MouseSelection{constructor(to,no,io,so){this.view=to,this.startEvent=no,this.style=io,this.mustSelect=so,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=no,this.scrollParent=scrollableParent(to.contentDOM),this.atoms=to.state.facet(atomicRanges).map(lo=>lo(to));let ao=to.contentDOM.ownerDocument;ao.addEventListener("mousemove",this.move=this.move.bind(this)),ao.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=no.shiftKey,this.multiple=to.state.facet(EditorState.allowMultipleSelections)&&addsSelectionRange(to,no),this.dragging=isInPrimarySelection(to,no)&&getClickType(no)==1?null:!1}start(to){this.dragging===!1&&this.select(to)}move(to){var no;if(to.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&dist$1(this.startEvent,to)<10)return;this.select(this.lastEvent=to);let io=0,so=0,ao=((no=this.scrollParent)===null||no===void 0?void 0:no.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},lo=getScrollMargins(this.view);to.clientX-lo.left<=ao.left+dragScrollMargin?io=-dragScrollSpeed(ao.left-to.clientX):to.clientX+lo.right>=ao.right-dragScrollMargin&&(io=dragScrollSpeed(to.clientX-ao.right)),to.clientY-lo.top<=ao.top+dragScrollMargin?so=-dragScrollSpeed(ao.top-to.clientY):to.clientY+lo.bottom>=ao.bottom-dragScrollMargin&&(so=dragScrollSpeed(to.clientY-ao.bottom)),this.setScrollSpeed(io,so)}up(to){this.dragging==null&&this.select(this.lastEvent),this.dragging||to.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let to=this.view.contentDOM.ownerDocument;to.removeEventListener("mousemove",this.move),to.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(to,no){this.scrollSpeed={x:to,y:no},to||no?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(to){let no=null;for(let io=0;iothis.select(this.lastEvent),20)}}function addsSelectionRange(eo,to){let no=eo.state.facet(clickAddsSelectionRange);return no.length?no[0](to):browser.mac?to.metaKey:to.ctrlKey}function dragMovesSelection(eo,to){let no=eo.state.facet(dragMovesSelection$1);return no.length?no[0](to):browser.mac?!to.altKey:!to.ctrlKey}function isInPrimarySelection(eo,to){let{main:no}=eo.state.selection;if(no.empty)return!1;let io=getSelection(eo.root);if(!io||io.rangeCount==0)return!0;let so=io.getRangeAt(0).getClientRects();for(let ao=0;ao=to.clientX&&lo.top<=to.clientY&&lo.bottom>=to.clientY)return!0}return!1}function eventBelongsToEditor(eo,to){if(!to.bubbles)return!0;if(to.defaultPrevented)return!1;for(let no=to.target,io;no!=eo.contentDOM;no=no.parentNode)if(!no||no.nodeType==11||(io=ContentView.get(no))&&io.ignoreEvent(to))return!1;return!0}const handlers=Object.create(null),observers=Object.create(null),brokenClipboardAPI=browser.ie&&browser.ie_version<15||browser.ios&&browser.webkit_version<604;function capturePaste(eo){let to=eo.dom.parentNode;if(!to)return;let no=to.appendChild(document.createElement("textarea"));no.style.cssText="position: fixed; left: -10000px; top: 10px",no.focus(),setTimeout(()=>{eo.focus(),no.remove(),doPaste(eo,no.value)},50)}function doPaste(eo,to){let{state:no}=eo,io,so=1,ao=no.toText(to),lo=ao.lines==no.selection.ranges.length;if(lastLinewiseCopy!=null&&no.selection.ranges.every(ho=>ho.empty)&&lastLinewiseCopy==ao.toString()){let ho=-1;io=no.changeByRange(go=>{let mo=no.doc.lineAt(go.from);if(mo.from==ho)return{range:go};ho=mo.from;let yo=no.toText((lo?ao.line(so++).text:to)+no.lineBreak);return{changes:{from:mo.from,insert:yo},range:EditorSelection.cursor(go.from+yo.length)}})}else lo?io=no.changeByRange(ho=>{let go=ao.line(so++);return{changes:{from:ho.from,to:ho.to,insert:go.text},range:EditorSelection.cursor(ho.from+go.length)}}):io=no.replaceSelection(ao);eo.dispatch(io,{userEvent:"input.paste",scrollIntoView:!0})}observers.scroll=eo=>{eo.inputState.lastScrollTop=eo.scrollDOM.scrollTop,eo.inputState.lastScrollLeft=eo.scrollDOM.scrollLeft};handlers.keydown=(eo,to)=>(eo.inputState.setSelectionOrigin("select"),to.keyCode==27&&(eo.inputState.lastEscPress=Date.now()),!1);observers.touchstart=(eo,to)=>{eo.inputState.lastTouchTime=Date.now(),eo.inputState.setSelectionOrigin("select.pointer")};observers.touchmove=eo=>{eo.inputState.setSelectionOrigin("select.pointer")};handlers.mousedown=(eo,to)=>{if(eo.observer.flush(),eo.inputState.lastTouchTime>Date.now()-2e3)return!1;let no=null;for(let io of eo.state.facet(mouseSelectionStyle))if(no=io(eo,to),no)break;if(!no&&to.button==0&&(no=basicMouseSelection(eo,to)),no){let io=!eo.hasFocus;eo.inputState.startMouseSelection(new MouseSelection(eo,to,no,io)),io&&eo.observer.ignore(()=>focusPreventScroll(eo.contentDOM));let so=eo.inputState.mouseSelection;if(so)return so.start(to),so.dragging===!1}return!1};function rangeForClick(eo,to,no,io){if(io==1)return EditorSelection.cursor(to,no);if(io==2)return groupAt(eo.state,to,no);{let so=LineView.find(eo.docView,to),ao=eo.state.doc.lineAt(so?so.posAtEnd:to),lo=so?so.posAtStart:ao.from,uo=so?so.posAtEnd:ao.to;return uoeo>=to.top&&eo<=to.bottom,inside=(eo,to,no)=>insideY(to,no)&&eo>=no.left&&eo<=no.right;function findPositionSide(eo,to,no,io){let so=LineView.find(eo.docView,to);if(!so)return 1;let ao=to-so.posAtStart;if(ao==0)return 1;if(ao==so.length)return-1;let lo=so.coordsAt(ao,-1);if(lo&&inside(no,io,lo))return-1;let uo=so.coordsAt(ao,1);return uo&&inside(no,io,uo)?1:lo&&insideY(io,lo)?-1:1}function queryPos(eo,to){let no=eo.posAtCoords({x:to.clientX,y:to.clientY},!1);return{pos:no,bias:findPositionSide(eo,no,to.clientX,to.clientY)}}const BadMouseDetail=browser.ie&&browser.ie_version<=11;let lastMouseDown=null,lastMouseDownCount=0,lastMouseDownTime=0;function getClickType(eo){if(!BadMouseDetail)return eo.detail;let to=lastMouseDown,no=lastMouseDownTime;return lastMouseDown=eo,lastMouseDownTime=Date.now(),lastMouseDownCount=!to||no>Date.now()-400&&Math.abs(to.clientX-eo.clientX)<2&&Math.abs(to.clientY-eo.clientY)<2?(lastMouseDownCount+1)%3:1}function basicMouseSelection(eo,to){let no=queryPos(eo,to),io=getClickType(to),so=eo.state.selection;return{update(ao){ao.docChanged&&(no.pos=ao.changes.mapPos(no.pos),so=so.map(ao.changes))},get(ao,lo,uo){let ho=queryPos(eo,ao),go,mo=rangeForClick(eo,ho.pos,ho.bias,io);if(no.pos!=ho.pos&&!lo){let yo=rangeForClick(eo,no.pos,no.bias,io),So=Math.min(yo.from,mo.from),_o=Math.max(yo.to,mo.to);mo=So1&&(go=removeRangeAround(so,ho.pos))?go:uo?so.addRange(mo):EditorSelection.create([mo])}}}function removeRangeAround(eo,to){for(let no=0;no=to)return EditorSelection.create(eo.ranges.slice(0,no).concat(eo.ranges.slice(no+1)),eo.mainIndex==no?0:eo.mainIndex-(eo.mainIndex>no?1:0))}return null}handlers.dragstart=(eo,to)=>{let{selection:{main:no}}=eo.state;if(to.target.draggable){let so=eo.docView.nearest(to.target);if(so&&so.isWidget){let ao=so.posAtStart,lo=ao+so.length;(ao>=no.to||lo<=no.from)&&(no=EditorSelection.range(ao,lo))}}let{inputState:io}=eo;return io.mouseSelection&&(io.mouseSelection.dragging=!0),io.draggedContent=no,to.dataTransfer&&(to.dataTransfer.setData("Text",eo.state.sliceDoc(no.from,no.to)),to.dataTransfer.effectAllowed="copyMove"),!1};handlers.dragend=eo=>(eo.inputState.draggedContent=null,!1);function dropText(eo,to,no,io){if(!no)return;let so=eo.posAtCoords({x:to.clientX,y:to.clientY},!1),{draggedContent:ao}=eo.inputState,lo=io&&ao&&dragMovesSelection(eo,to)?{from:ao.from,to:ao.to}:null,uo={from:so,insert:no},ho=eo.state.changes(lo?[lo,uo]:uo);eo.focus(),eo.dispatch({changes:ho,selection:{anchor:ho.mapPos(so,-1),head:ho.mapPos(so,1)},userEvent:lo?"move.drop":"input.drop"}),eo.inputState.draggedContent=null}handlers.drop=(eo,to)=>{if(!to.dataTransfer)return!1;if(eo.state.readOnly)return!0;let no=to.dataTransfer.files;if(no&&no.length){let io=Array(no.length),so=0,ao=()=>{++so==no.length&&dropText(eo,to,io.filter(lo=>lo!=null).join(eo.state.lineBreak),!1)};for(let lo=0;lo{/[\x00-\x08\x0e-\x1f]{2}/.test(uo.result)||(io[lo]=uo.result),ao()},uo.readAsText(no[lo])}return!0}else{let io=to.dataTransfer.getData("Text");if(io)return dropText(eo,to,io,!0),!0}return!1};handlers.paste=(eo,to)=>{if(eo.state.readOnly)return!0;eo.observer.flush();let no=brokenClipboardAPI?null:to.clipboardData;return no?(doPaste(eo,no.getData("text/plain")||no.getData("text/uri-list")),!0):(capturePaste(eo),!1)};function captureCopy(eo,to){let no=eo.dom.parentNode;if(!no)return;let io=no.appendChild(document.createElement("textarea"));io.style.cssText="position: fixed; left: -10000px; top: 10px",io.value=to,io.focus(),io.selectionEnd=to.length,io.selectionStart=0,setTimeout(()=>{io.remove(),eo.focus()},50)}function copiedRange(eo){let to=[],no=[],io=!1;for(let so of eo.selection.ranges)so.empty||(to.push(eo.sliceDoc(so.from,so.to)),no.push(so));if(!to.length){let so=-1;for(let{from:ao}of eo.selection.ranges){let lo=eo.doc.lineAt(ao);lo.number>so&&(to.push(lo.text),no.push({from:lo.from,to:Math.min(eo.doc.length,lo.to+1)})),so=lo.number}io=!0}return{text:to.join(eo.lineBreak),ranges:no,linewise:io}}let lastLinewiseCopy=null;handlers.copy=handlers.cut=(eo,to)=>{let{text:no,ranges:io,linewise:so}=copiedRange(eo.state);if(!no&&!so)return!1;lastLinewiseCopy=so?no:null,to.type=="cut"&&!eo.state.readOnly&&eo.dispatch({changes:io,scrollIntoView:!0,userEvent:"delete.cut"});let ao=brokenClipboardAPI?null:to.clipboardData;return ao?(ao.clearData(),ao.setData("text/plain",no),!0):(captureCopy(eo,no),!1)};const isFocusChange=Annotation.define();function focusChangeTransaction(eo,to){let no=[];for(let io of eo.facet(focusChangeEffect)){let so=io(eo,to);so&&no.push(so)}return no?eo.update({effects:no,annotations:isFocusChange.of(!0)}):null}function updateForFocusChange(eo){setTimeout(()=>{let to=eo.hasFocus;if(to!=eo.inputState.notifiedFocused){let no=focusChangeTransaction(eo.state,to);no?eo.dispatch(no):eo.update([])}},10)}observers.focus=eo=>{eo.inputState.lastFocusTime=Date.now(),!eo.scrollDOM.scrollTop&&(eo.inputState.lastScrollTop||eo.inputState.lastScrollLeft)&&(eo.scrollDOM.scrollTop=eo.inputState.lastScrollTop,eo.scrollDOM.scrollLeft=eo.inputState.lastScrollLeft),updateForFocusChange(eo)};observers.blur=eo=>{eo.observer.clearSelectionRange(),updateForFocusChange(eo)};observers.compositionstart=observers.compositionupdate=eo=>{eo.inputState.compositionFirstChange==null&&(eo.inputState.compositionFirstChange=!0),eo.inputState.composing<0&&(eo.inputState.composing=0,eo.docView.maybeCreateCompositionBarrier()&&(eo.update([]),eo.docView.clearCompositionBarrier()))};observers.compositionend=eo=>{eo.inputState.composing=-1,eo.inputState.compositionEndedAt=Date.now(),eo.inputState.compositionPendingKey=!0,eo.inputState.compositionPendingChange=eo.observer.pendingRecords().length>0,eo.inputState.compositionFirstChange=null,browser.chrome&&browser.android?eo.observer.flushSoon():eo.inputState.compositionPendingChange?Promise.resolve().then(()=>eo.observer.flush()):setTimeout(()=>{eo.inputState.composing<0&&eo.docView.hasComposition&&eo.update([])},50)};observers.contextmenu=eo=>{eo.inputState.lastContextMenu=Date.now()};handlers.beforeinput=(eo,to)=>{var no;let io;if(browser.chrome&&browser.android&&(io=PendingKeys.find(so=>so.inputType==to.inputType))&&(eo.observer.delayAndroidKey(io.key,io.keyCode),io.key=="Backspace"||io.key=="Delete")){let so=((no=window.visualViewport)===null||no===void 0?void 0:no.height)||0;setTimeout(()=>{var ao;(((ao=window.visualViewport)===null||ao===void 0?void 0:ao.height)||0)>so+10&&eo.hasFocus&&(eo.contentDOM.blur(),eo.focus())},100)}return browser.ios&&to.inputType=="deleteContentForward"&&eo.observer.flushSoon(),browser.safari&&to.inputType=="insertText"&&eo.inputState.composing>=0&&setTimeout(()=>observers.compositionend(eo,to),20),!1};const appliedFirefoxHack=new Set;function firefoxCopyCutHack(eo){appliedFirefoxHack.has(eo)||(appliedFirefoxHack.add(eo),eo.addEventListener("copy",()=>{}),eo.addEventListener("cut",()=>{}))}const wrappingWhiteSpace=["pre-wrap","normal","pre-line","break-spaces"];class HeightOracle{constructor(to){this.lineWrapping=to,this.doc=Text$1.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(to,no){let io=this.doc.lineAt(no).number-this.doc.lineAt(to).number+1;return this.lineWrapping&&(io+=Math.max(0,Math.ceil((no-to-io*this.lineLength*.5)/this.lineLength))),this.lineHeight*io}heightForLine(to){return this.lineWrapping?(1+Math.max(0,Math.ceil((to-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(to){return this.doc=to,this}mustRefreshForWrapping(to){return wrappingWhiteSpace.indexOf(to)>-1!=this.lineWrapping}mustRefreshForHeights(to){let no=!1;for(let io=0;io-1,ho=Math.round(no)!=Math.round(this.lineHeight)||this.lineWrapping!=uo;if(this.lineWrapping=uo,this.lineHeight=no,this.charWidth=io,this.textHeight=so,this.lineLength=ao,ho){this.heightSamples={};for(let go=0;go0}set outdated(to){this.flags=(to?2:0)|this.flags&-3}setHeight(to,no){this.height!=no&&(Math.abs(this.height-no)>Epsilon&&(to.heightChanged=!0),this.height=no)}replace(to,no,io){return HeightMap.of(io)}decomposeLeft(to,no){no.push(this)}decomposeRight(to,no){no.push(this)}applyChanges(to,no,io,so){let ao=this,lo=io.doc;for(let uo=so.length-1;uo>=0;uo--){let{fromA:ho,toA:go,fromB:mo,toB:yo}=so[uo],So=ao.lineAt(ho,QueryType$1.ByPosNoHeight,io.setDoc(no),0,0),_o=So.to>=go?So:ao.lineAt(go,QueryType$1.ByPosNoHeight,io,0,0);for(yo+=_o.to-go,go=_o.to;uo>0&&So.from<=so[uo-1].toA;)ho=so[uo-1].fromA,mo=so[uo-1].fromB,uo--,hoao*2){let uo=to[no-1];uo.break?to.splice(--no,1,uo.left,null,uo.right):to.splice(--no,1,uo.left,uo.right),io+=1+uo.break,so-=uo.size}else if(ao>so*2){let uo=to[io];uo.break?to.splice(io,1,uo.left,null,uo.right):to.splice(io,1,uo.left,uo.right),io+=2+uo.break,ao-=uo.size}else break;else if(so=ao&&lo(this.blockAt(0,io,so,ao))}updateHeight(to,no=0,io=!1,so){return so&&so.from<=no&&so.more&&this.setHeight(to,so.heights[so.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class HeightMapText extends HeightMapBlock{constructor(to,no){super(to,no,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(to,no,io,so){return new BlockInfo(so,this.length,io,this.height,this.breaks)}replace(to,no,io){let so=io[0];return io.length==1&&(so instanceof HeightMapText||so instanceof HeightMapGap&&so.flags&4)&&Math.abs(this.length-so.length)<10?(so instanceof HeightMapGap?so=new HeightMapText(so.length,this.height):so.height=this.height,this.outdated||(so.outdated=!1),so):HeightMap.of(io)}updateHeight(to,no=0,io=!1,so){return so&&so.from<=no&&so.more?this.setHeight(to,so.heights[so.index++]):(io||this.outdated)&&this.setHeight(to,Math.max(this.widgetHeight,to.heightForLine(this.length-this.collapsed))+this.breaks*to.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class HeightMapGap extends HeightMap{constructor(to){super(to,0)}heightMetrics(to,no){let io=to.doc.lineAt(no).number,so=to.doc.lineAt(no+this.length).number,ao=so-io+1,lo,uo=0;if(to.lineWrapping){let ho=Math.min(this.height,to.lineHeight*ao);lo=ho/ao,this.length>ao+1&&(uo=(this.height-ho)/(this.length-ao-1))}else lo=this.height/ao;return{firstLine:io,lastLine:so,perLine:lo,perChar:uo}}blockAt(to,no,io,so){let{firstLine:ao,lastLine:lo,perLine:uo,perChar:ho}=this.heightMetrics(no,so);if(no.lineWrapping){let go=so+(to0){let ao=io[io.length-1];ao instanceof HeightMapGap?io[io.length-1]=new HeightMapGap(ao.length+so):io.push(null,new HeightMapGap(so-1))}if(to>0){let ao=io[0];ao instanceof HeightMapGap?io[0]=new HeightMapGap(to+ao.length):io.unshift(new HeightMapGap(to-1),null)}return HeightMap.of(io)}decomposeLeft(to,no){no.push(new HeightMapGap(to-1),null)}decomposeRight(to,no){no.push(null,new HeightMapGap(this.length-to-1))}updateHeight(to,no=0,io=!1,so){let ao=no+this.length;if(so&&so.from<=no+this.length&&so.more){let lo=[],uo=Math.max(no,so.from),ho=-1;for(so.from>no&&lo.push(new HeightMapGap(so.from-no-1).updateHeight(to,no));uo<=ao&&so.more;){let mo=to.doc.lineAt(uo).length;lo.length&&lo.push(null);let yo=so.heights[so.index++];ho==-1?ho=yo:Math.abs(yo-ho)>=Epsilon&&(ho=-2);let So=new HeightMapText(mo,yo);So.outdated=!1,lo.push(So),uo+=mo+1}uo<=ao&&lo.push(null,new HeightMapGap(ao-uo).updateHeight(to,uo));let go=HeightMap.of(lo);return(ho<0||Math.abs(go.height-this.height)>=Epsilon||Math.abs(ho-this.heightMetrics(to,no).perLine)>=Epsilon)&&(to.heightChanged=!0),go}else(io||this.outdated)&&(this.setHeight(to,to.heightForGap(no,no+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class HeightMapBranch extends HeightMap{constructor(to,no,io){super(to.length+no+io.length,to.height+io.height,no|(to.outdated||io.outdated?2:0)),this.left=to,this.right=io,this.size=to.size+io.size}get break(){return this.flags&1}blockAt(to,no,io,so){let ao=io+this.left.height;return touo))return go;let mo=no==QueryType$1.ByPosNoHeight?QueryType$1.ByPosNoHeight:QueryType$1.ByPos;return ho?go.join(this.right.lineAt(uo,mo,io,lo,uo)):this.left.lineAt(uo,mo,io,so,ao).join(go)}forEachLine(to,no,io,so,ao,lo){let uo=so+this.left.height,ho=ao+this.left.length+this.break;if(this.break)to=ho&&this.right.forEachLine(to,no,io,uo,ho,lo);else{let go=this.lineAt(ho,QueryType$1.ByPos,io,so,ao);to=to&&go.from<=no&&lo(go),no>go.to&&this.right.forEachLine(go.to+1,no,io,uo,ho,lo)}}replace(to,no,io){let so=this.left.length+this.break;if(nothis.left.length)return this.balanced(this.left,this.right.replace(to-so,no-so,io));let ao=[];to>0&&this.decomposeLeft(to,ao);let lo=ao.length;for(let uo of io)ao.push(uo);if(to>0&&mergeGaps(ao,lo-1),no=io&&no.push(null)),to>io&&this.right.decomposeLeft(to-io,no)}decomposeRight(to,no){let io=this.left.length,so=io+this.break;if(to>=so)return this.right.decomposeRight(to-so,no);to2*no.size||no.size>2*to.size?HeightMap.of(this.break?[to,null,no]:[to,no]):(this.left=to,this.right=no,this.height=to.height+no.height,this.outdated=to.outdated||no.outdated,this.size=to.size+no.size,this.length=to.length+this.break+no.length,this)}updateHeight(to,no=0,io=!1,so){let{left:ao,right:lo}=this,uo=no+ao.length+this.break,ho=null;return so&&so.from<=no+ao.length&&so.more?ho=ao=ao.updateHeight(to,no,io,so):ao.updateHeight(to,no,io),so&&so.from<=uo+lo.length&&so.more?ho=lo=lo.updateHeight(to,uo,io,so):lo.updateHeight(to,uo,io),ho?this.balanced(ao,lo):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function mergeGaps(eo,to){let no,io;eo[to]==null&&(no=eo[to-1])instanceof HeightMapGap&&(io=eo[to+1])instanceof HeightMapGap&&eo.splice(to-1,3,new HeightMapGap(no.length+1+io.length))}const relevantWidgetHeight=5;class NodeBuilder{constructor(to,no){this.pos=to,this.oracle=no,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=to}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(to,no){if(this.lineStart>-1){let io=Math.min(no,this.lineEnd),so=this.nodes[this.nodes.length-1];so instanceof HeightMapText?so.length+=io-this.pos:(io>this.pos||!this.isCovered)&&this.nodes.push(new HeightMapText(io-this.pos,-1)),this.writtenTo=io,no>io&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=no}point(to,no,io){if(to=relevantWidgetHeight)&&this.addLineDeco(so,ao,lo)}else no>to&&this.span(to,no);this.lineEnd>-1&&this.lineEnd-1)return;let{from:to,to:no}=this.oracle.doc.lineAt(this.pos);this.lineStart=to,this.lineEnd=no,this.writtenToto&&this.nodes.push(new HeightMapText(this.pos-to,-1)),this.writtenTo=this.pos}blankContent(to,no){let io=new HeightMapGap(no-to);return this.oracle.doc.lineAt(to).to==no&&(io.flags|=4),io}ensureLine(){this.enterLine();let to=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(to instanceof HeightMapText)return to;let no=new HeightMapText(0,-1);return this.nodes.push(no),no}addBlock(to){this.enterLine();let no=to.deco;no&&no.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(to),this.writtenTo=this.pos=this.pos+to.length,no&&no.endSide>0&&(this.covering=to)}addLineDeco(to,no,io){let so=this.ensureLine();so.length+=io,so.collapsed+=io,so.widgetHeight=Math.max(so.widgetHeight,to),so.breaks+=no,this.writtenTo=this.pos=this.pos+io}finish(to){let no=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(no instanceof HeightMapText)&&!this.isCovered?this.nodes.push(new HeightMapText(0,-1)):(this.writtenTomo.clientHeight||mo.scrollWidth>mo.clientWidth)&&yo.overflow!="visible"){let So=mo.getBoundingClientRect();ao=Math.max(ao,So.left),lo=Math.min(lo,So.right),uo=Math.max(uo,So.top),ho=go==eo.parentNode?So.bottom:Math.min(ho,So.bottom)}go=yo.position=="absolute"||yo.position=="fixed"?mo.offsetParent:mo.parentNode}else if(go.nodeType==11)go=go.host;else break;return{left:ao-no.left,right:Math.max(ao,lo)-no.left,top:uo-(no.top+to),bottom:Math.max(uo,ho)-(no.top+to)}}function fullPixelRange(eo,to){let no=eo.getBoundingClientRect();return{left:0,right:no.right-no.left,top:to,bottom:no.bottom-(no.top+to)}}class LineGap{constructor(to,no,io){this.from=to,this.to=no,this.size=io}static same(to,no){if(to.length!=no.length)return!1;for(let io=0;iotypeof io!="function"&&io.class=="cm-lineWrapping");this.heightOracle=new HeightOracle(no),this.stateDeco=to.facet(decorations).filter(io=>typeof io!="function"),this.heightMap=HeightMap.empty().applyChanges(this.stateDeco,Text$1.empty,this.heightOracle.setDoc(to.doc),[new ChangedRange(0,0,0,to.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Decoration.set(this.lineGaps.map(io=>io.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let to=[this.viewport],{main:no}=this.state.selection;for(let io=0;io<=1;io++){let so=io?no.head:no.anchor;if(!to.some(({from:ao,to:lo})=>so>=ao&&so<=lo)){let{from:ao,to:lo}=this.lineBlockAt(so);to.push(new Viewport(ao,lo))}}this.viewports=to.sort((io,so)=>io.from-so.from),this.scaler=this.heightMap.height<=7e6?IdScaler:new BigScaler(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,to=>{this.viewportLines.push(this.scaler.scale==1?to:scaleBlock(to,this.scaler))})}update(to,no=null){this.state=to.state;let io=this.stateDeco;this.stateDeco=this.state.facet(decorations).filter(mo=>typeof mo!="function");let so=to.changedRanges,ao=ChangedRange.extendWithRanges(so,heightRelevantDecoChanges(io,this.stateDeco,to?to.changes:ChangeSet.empty(this.state.doc.length))),lo=this.heightMap.height,uo=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,to.startState.doc,this.heightOracle.setDoc(this.state.doc),ao),this.heightMap.height!=lo&&(to.flags|=2),uo?(this.scrollAnchorPos=to.changes.mapPos(uo.from,-1),this.scrollAnchorHeight=uo.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let ho=ao.length?this.mapViewport(this.viewport,to.changes):this.viewport;(no&&(no.range.headho.to)||!this.viewportIsAppropriate(ho))&&(ho=this.getViewport(0,no));let go=!to.changes.empty||to.flags&2||ho.from!=this.viewport.from||ho.to!=this.viewport.to;this.viewport=ho,this.updateForViewport(),go&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,to.changes))),to.flags|=this.computeVisibleRanges(),no&&(this.scrollTarget=no),!this.mustEnforceCursorAssoc&&to.selectionSet&&to.view.lineWrapping&&to.state.selection.main.empty&&to.state.selection.main.assoc&&!to.state.facet(nativeSelectionHidden)&&(this.mustEnforceCursorAssoc=!0)}measure(to){let no=to.contentDOM,io=window.getComputedStyle(no),so=this.heightOracle,ao=io.whiteSpace;this.defaultTextDirection=io.direction=="rtl"?Direction.RTL:Direction.LTR;let lo=this.heightOracle.mustRefreshForWrapping(ao),uo=no.getBoundingClientRect(),ho=lo||this.mustMeasureContent||this.contentDOMHeight!=uo.height;this.contentDOMHeight=uo.height,this.mustMeasureContent=!1;let go=0,mo=0;if(uo.width&&uo.height){let{scaleX:Mo,scaleY:Bo}=getScale(no,uo);(Mo>.005&&Math.abs(this.scaleX-Mo)>.005||Bo>.005&&Math.abs(this.scaleY-Bo)>.005)&&(this.scaleX=Mo,this.scaleY=Bo,go|=8,lo=ho=!0)}let yo=(parseInt(io.paddingTop)||0)*this.scaleY,So=(parseInt(io.paddingBottom)||0)*this.scaleY;(this.paddingTop!=yo||this.paddingBottom!=So)&&(this.paddingTop=yo,this.paddingBottom=So,go|=10),this.editorWidth!=to.scrollDOM.clientWidth&&(so.lineWrapping&&(ho=!0),this.editorWidth=to.scrollDOM.clientWidth,go|=8);let _o=to.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=_o&&(this.scrollAnchorHeight=-1,this.scrollTop=_o),this.scrolledToBottom=isScrolledToBottom(to.scrollDOM);let ko=(this.printing?fullPixelRange:visiblePixelRange)(no,this.paddingTop),Co=ko.top-this.pixelViewport.top,$o=ko.bottom-this.pixelViewport.bottom;this.pixelViewport=ko;let Ro=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(Ro!=this.inView&&(this.inView=Ro,Ro&&(ho=!0)),!this.inView&&!this.scrollTarget)return 0;let Oo=uo.width;if((this.contentDOMWidth!=Oo||this.editorHeight!=to.scrollDOM.clientHeight)&&(this.contentDOMWidth=uo.width,this.editorHeight=to.scrollDOM.clientHeight,go|=8),ho){let Mo=to.docView.measureVisibleLineHeights(this.viewport);if(so.mustRefreshForHeights(Mo)&&(lo=!0),lo||so.lineWrapping&&Math.abs(Oo-this.contentDOMWidth)>so.charWidth){let{lineHeight:Bo,charWidth:Po,textHeight:Lo}=to.docView.measureTextSize();lo=Bo>0&&so.refresh(ao,Bo,Po,Lo,Oo/Po,Mo),lo&&(to.docView.minWidth=0,go|=8)}Co>0&&$o>0?mo=Math.max(Co,$o):Co<0&&$o<0&&(mo=Math.min(Co,$o)),so.heightChanged=!1;for(let Bo of this.viewports){let Po=Bo.from==this.viewport.from?Mo:to.docView.measureVisibleLineHeights(Bo);this.heightMap=(lo?HeightMap.empty().applyChanges(this.stateDeco,Text$1.empty,this.heightOracle,[new ChangedRange(0,0,0,to.state.doc.length)]):this.heightMap).updateHeight(so,0,lo,new MeasuredHeights(Bo.from,Po))}so.heightChanged&&(go|=2)}let No=!this.viewportIsAppropriate(this.viewport,mo)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return No&&(this.viewport=this.getViewport(mo,this.scrollTarget)),this.updateForViewport(),(go&2||No)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(lo?[]:this.lineGaps,to)),go|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,to.docView.enforceCursorAssoc()),go}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(to,no){let io=.5-Math.max(-.5,Math.min(.5,to/1e3/2)),so=this.heightMap,ao=this.heightOracle,{visibleTop:lo,visibleBottom:uo}=this,ho=new Viewport(so.lineAt(lo-io*1e3,QueryType$1.ByHeight,ao,0,0).from,so.lineAt(uo+(1-io)*1e3,QueryType$1.ByHeight,ao,0,0).to);if(no){let{head:go}=no.range;if(goho.to){let mo=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),yo=so.lineAt(go,QueryType$1.ByPos,ao,0,0),So;no.y=="center"?So=(yo.top+yo.bottom)/2-mo/2:no.y=="start"||no.y=="nearest"&&go=uo+Math.max(10,Math.min(io,250)))&&so>lo-2*1e3&&ao>1,lo=so<<1;if(this.defaultTextDirection!=Direction.LTR&&!io)return[];let uo=[],ho=(go,mo,yo,So)=>{if(mo-gogo&&$o$o.from>=yo.from&&$o.to<=yo.to&&Math.abs($o.from-go)$o.fromRo));if(!Co){if(mo$o.from<=mo&&$o.to>=mo)){let $o=no.moveToLineBoundary(EditorSelection.cursor(mo),!1,!0).head;$o>go&&(mo=$o)}Co=new LineGap(go,mo,this.gapSize(yo,go,mo,So))}uo.push(Co)};for(let go of this.viewportLines){if(go.lengthgo.from&&ho(go.from,So,go,mo),_ono.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let to=this.stateDeco;this.lineGaps.length&&(to=to.concat(this.lineGapDeco));let no=[];RangeSet.spans(to,this.viewport.from,this.viewport.to,{span(so,ao){no.push({from:so,to:ao})},point(){}},20);let io=no.length!=this.visibleRanges.length||this.visibleRanges.some((so,ao)=>so.from!=no[ao].from||so.to!=no[ao].to);return this.visibleRanges=no,io?4:0}lineBlockAt(to){return to>=this.viewport.from&&to<=this.viewport.to&&this.viewportLines.find(no=>no.from<=to&&no.to>=to)||scaleBlock(this.heightMap.lineAt(to,QueryType$1.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(to){return scaleBlock(this.heightMap.lineAt(this.scaler.fromDOM(to),QueryType$1.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(to){let no=this.lineBlockAtHeight(to+8);return no.from>=this.viewport.from||this.viewportLines[0].top-to>200?no:this.viewportLines[0]}elementAtHeight(to){return scaleBlock(this.heightMap.blockAt(this.scaler.fromDOM(to),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Viewport{constructor(to,no){this.from=to,this.to=no}}function lineStructure(eo,to,no){let io=[],so=eo,ao=0;return RangeSet.spans(no,eo,to,{span(){},point(lo,uo){lo>so&&(io.push({from:so,to:lo}),ao+=lo-so),so=uo}},20),so=1)return to[to.length-1].to;let io=Math.floor(eo*no);for(let so=0;;so++){let{from:ao,to:lo}=to[so],uo=lo-ao;if(io<=uo)return ao+io;io-=uo}}function findFraction(eo,to){let no=0;for(let{from:io,to:so}of eo.ranges){if(to<=so){no+=to-io;break}no+=so-io}return no/eo.total}function find$3(eo,to){for(let no of eo)if(to(no))return no}const IdScaler={toDOM(eo){return eo},fromDOM(eo){return eo},scale:1};class BigScaler{constructor(to,no,io){let so=0,ao=0,lo=0;this.viewports=io.map(({from:uo,to:ho})=>{let go=no.lineAt(uo,QueryType$1.ByPos,to,0,0).top,mo=no.lineAt(ho,QueryType$1.ByPos,to,0,0).bottom;return so+=mo-go,{from:uo,to:ho,top:go,bottom:mo,domTop:0,domBottom:0}}),this.scale=(7e6-so)/(no.height-so);for(let uo of this.viewports)uo.domTop=lo+(uo.top-ao)*this.scale,lo=uo.domBottom=uo.domTop+(uo.bottom-uo.top),ao=uo.bottom}toDOM(to){for(let no=0,io=0,so=0;;no++){let ao=noscaleBlock(so,to)):eo._content)}const theme=Facet.define({combine:eo=>eo.join(" ")}),darkTheme=Facet.define({combine:eo=>eo.indexOf(!0)>-1}),baseThemeID=StyleModule.newName(),baseLightID=StyleModule.newName(),baseDarkID=StyleModule.newName(),lightDarkIDs={"&light":"."+baseLightID,"&dark":"."+baseDarkID};function buildTheme(eo,to,no){return new StyleModule(to,{finish(io){return/&/.test(io)?io.replace(/&\w*/,so=>{if(so=="&")return eo;if(!no||!no[so])throw new RangeError(`Unsupported selector: ${so}`);return no[so]}):eo+" "+io}})}const baseTheme$1$2=buildTheme("."+baseThemeID,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},lightDarkIDs),LineBreakPlaceholder="￿";class DOMReader{constructor(to,no){this.points=to,this.text="",this.lineSeparator=no.facet(EditorState.lineSeparator)}append(to){this.text+=to}lineBreak(){this.text+=LineBreakPlaceholder}readRange(to,no){if(!to)return this;let io=to.parentNode;for(let so=to;;){this.findPointBefore(io,so);let ao=this.text.length;this.readNode(so);let lo=so.nextSibling;if(lo==no)break;let uo=ContentView.get(so),ho=ContentView.get(lo);(uo&&ho?uo.breakAfter:(uo?uo.breakAfter:isBlockElement(so))||isBlockElement(lo)&&(so.nodeName!="BR"||so.cmIgnore)&&this.text.length>ao)&&this.lineBreak(),so=lo}return this.findPointBefore(io,no),this}readTextNode(to){let no=to.nodeValue;for(let io of this.points)io.node==to&&(io.pos=this.text.length+Math.min(io.offset,no.length));for(let io=0,so=this.lineSeparator?null:/\r\n?|\n/g;;){let ao=-1,lo=1,uo;if(this.lineSeparator?(ao=no.indexOf(this.lineSeparator,io),lo=this.lineSeparator.length):(uo=so.exec(no))&&(ao=uo.index,lo=uo[0].length),this.append(no.slice(io,ao<0?no.length:ao)),ao<0)break;if(this.lineBreak(),lo>1)for(let ho of this.points)ho.node==to&&ho.pos>this.text.length&&(ho.pos-=lo-1);io=ao+lo}}readNode(to){if(to.cmIgnore)return;let no=ContentView.get(to),io=no&&no.overrideDOMText;if(io!=null){this.findPointInside(to,io.length);for(let so=io.iter();!so.next().done;)so.lineBreak?this.lineBreak():this.append(so.value)}else to.nodeType==3?this.readTextNode(to):to.nodeName=="BR"?to.nextSibling&&this.lineBreak():to.nodeType==1&&this.readRange(to.firstChild,null)}findPointBefore(to,no){for(let io of this.points)io.node==to&&to.childNodes[io.offset]==no&&(io.pos=this.text.length)}findPointInside(to,no){for(let io of this.points)(to.nodeType==3?io.node==to:to.contains(io.node))&&(io.pos=this.text.length+(isAtEnd(to,io.node,io.offset)?no:0))}}function isAtEnd(eo,to,no){for(;;){if(!to||no-1)this.newSel=null;else if(no>-1&&(this.bounds=to.docView.domBoundsAround(no,io,0))){let uo=ao||lo?[]:selectionPoints(to),ho=new DOMReader(uo,to.state);ho.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=ho.text,this.newSel=selectionFromPoints(uo,this.bounds.from)}else{let uo=to.observer.selectionRange,ho=ao&&ao.node==uo.focusNode&&ao.offset==uo.focusOffset||!contains$1(to.contentDOM,uo.focusNode)?to.state.selection.main.head:to.docView.posFromDOM(uo.focusNode,uo.focusOffset),go=lo&&lo.node==uo.anchorNode&&lo.offset==uo.anchorOffset||!contains$1(to.contentDOM,uo.anchorNode)?to.state.selection.main.anchor:to.docView.posFromDOM(uo.anchorNode,uo.anchorOffset),mo=to.viewport;if((browser.ios||browser.chrome)&&to.state.selection.main.empty&&ho!=go&&(mo.from>0||mo.toDate.now()-100?eo.inputState.lastKeyCode:-1;if(to.bounds){let{from:lo,to:uo}=to.bounds,ho=so.from,go=null;(ao===8||browser.android&&to.text.length=so.from&&no.to<=so.to&&(no.from!=so.from||no.to!=so.to)&&so.to-so.from-(no.to-no.from)<=4?no={from:so.from,to:so.to,insert:eo.state.doc.slice(so.from,no.from).append(no.insert).append(eo.state.doc.slice(no.to,so.to))}:(browser.mac||browser.android)&&no&&no.from==no.to&&no.from==so.head-1&&/^\. ?$/.test(no.insert.toString())&&eo.contentDOM.getAttribute("autocorrect")=="off"?(io&&no.insert.length==2&&(io=EditorSelection.single(io.main.anchor-1,io.main.head-1)),no={from:so.from,to:so.to,insert:Text$1.of([" "])}):browser.chrome&&no&&no.from==no.to&&no.from==so.head&&no.insert.toString()==` - `&&eo.lineWrapping&&(io&&(io=EditorSelection.single(io.main.anchor-1,io.main.head-1)),no={from:so.from,to:so.to,insert:Text$1.of([" "])}),no){if(browser.ios&&eo.inputState.flushIOSKey(no)||browser.android&&(no.to==so.to&&(no.from==so.from||no.from==so.from-1&&eo.state.sliceDoc(no.from,so.from)==" ")&&no.insert.length==1&&no.insert.lines==2&&dispatchKey(eo.contentDOM,"Enter",13)||(no.from==so.from-1&&no.to==so.to&&no.insert.length==0||ao==8&&no.insert.lengthso.head)&&dispatchKey(eo.contentDOM,"Backspace",8)||no.from==so.from&&no.to==so.to+1&&no.insert.length==0&&dispatchKey(eo.contentDOM,"Delete",46)))return!0;let lo=no.insert.toString();eo.inputState.composing>=0&&eo.inputState.composing++;let uo,ho=()=>uo||(uo=applyDefaultInsert(eo,no,io));return eo.state.facet(inputHandler$1).some(go=>go(eo,no.from,no.to,lo,ho))||eo.dispatch(ho()),!0}else if(io&&!io.main.eq(so)){let lo=!1,uo="select";return eo.inputState.lastSelectionTime>Date.now()-50&&(eo.inputState.lastSelectionOrigin=="select"&&(lo=!0),uo=eo.inputState.lastSelectionOrigin),eo.dispatch({selection:io,scrollIntoView:lo,userEvent:uo}),!0}else return!1}function applyDefaultInsert(eo,to,no){let io,so=eo.state,ao=so.selection.main;if(to.from>=ao.from&&to.to<=ao.to&&to.to-to.from>=(ao.to-ao.from)/3&&(!no||no.main.empty&&no.main.from==to.from+to.insert.length)&&eo.inputState.composing<0){let uo=ao.fromto.to?so.sliceDoc(to.to,ao.to):"";io=so.replaceSelection(eo.state.toText(uo+to.insert.sliceString(0,void 0,eo.state.lineBreak)+ho))}else{let uo=so.changes(to),ho=no&&no.main.to<=uo.newLength?no.main:void 0;if(so.selection.ranges.length>1&&eo.inputState.composing>=0&&to.to<=ao.to&&to.to>=ao.to-10){let go=eo.state.sliceDoc(to.from,to.to),mo,yo=no&&findCompositionNode(eo,no.main.head);if(yo){let ko=to.insert.length-(to.to-to.from);mo={from:yo.from,to:yo.to-ko}}else mo=eo.state.doc.lineAt(ao.head);let So=ao.to-to.to,_o=ao.to-ao.from;io=so.changeByRange(ko=>{if(ko.from==ao.from&&ko.to==ao.to)return{changes:uo,range:ho||ko.map(uo)};let Co=ko.to-So,$o=Co-go.length;if(ko.to-ko.from!=_o||eo.state.sliceDoc($o,Co)!=go||ko.to>=mo.from&&ko.from<=mo.to)return{range:ko};let Ro=so.changes({from:$o,to:Co,insert:to.insert}),Oo=ko.to-ao.to;return{changes:Ro,range:ho?EditorSelection.range(Math.max(0,ho.anchor+Oo),Math.max(0,ho.head+Oo)):ko.map(Ro)}})}else io={changes:uo,selection:ho&&so.selection.replaceRange(ho)}}let lo="input.type";return(eo.composing||eo.inputState.compositionPendingChange&&eo.inputState.compositionEndedAt>Date.now()-50)&&(eo.inputState.compositionPendingChange=!1,lo+=".compose",eo.inputState.compositionFirstChange&&(lo+=".start",eo.inputState.compositionFirstChange=!1)),so.update(io,{userEvent:lo,scrollIntoView:!0})}function findDiff(eo,to,no,io){let so=Math.min(eo.length,to.length),ao=0;for(;ao0&&uo>0&&eo.charCodeAt(lo-1)==to.charCodeAt(uo-1);)lo--,uo--;if(io=="end"){let ho=Math.max(0,ao-Math.min(lo,uo));no-=lo+ho-ao}if(lo=lo?ao-no:0;ao-=ho,uo=ao+(uo-lo),lo=ao}else if(uo=uo?ao-no:0;ao-=ho,lo=ao+(lo-uo),uo=ao}return{from:ao,toA:lo,toB:uo}}function selectionPoints(eo){let to=[];if(eo.root.activeElement!=eo.contentDOM)return to;let{anchorNode:no,anchorOffset:io,focusNode:so,focusOffset:ao}=eo.observer.selectionRange;return no&&(to.push(new DOMPoint(no,io)),(so!=no||ao!=io)&&to.push(new DOMPoint(so,ao))),to}function selectionFromPoints(eo,to){if(eo.length==0)return null;let no=eo[0].pos,io=eo.length==2?eo[1].pos:no;return no>-1&&io>-1?EditorSelection.single(no+to,io+to):null}const observeOptions={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},useCharData=browser.ie&&browser.ie_version<=11;class DOMObserver{constructor(to){this.view=to,this.active=!1,this.selectionRange=new DOMSelectionState,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=to.contentDOM,this.observer=new MutationObserver(no=>{for(let io of no)this.queue.push(io);(browser.ie&&browser.ie_version<=11||browser.ios&&to.composing)&&no.some(io=>io.type=="childList"&&io.removedNodes.length||io.type=="characterData"&&io.oldValue.length>io.target.nodeValue.length)?this.flushSoon():this.flush()}),useCharData&&(this.onCharData=no=>{this.queue.push({target:no.target,type:"characterData",oldValue:no.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var no;((no=this.view.docView)===null||no===void 0?void 0:no.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),no.length>0&&no[no.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(no=>{no.length>0&&no[no.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(to){this.view.inputState.runHandlers("scroll",to),this.intersecting&&this.view.measure()}onScroll(to){this.intersecting&&this.flush(!1),this.onScrollChanged(to)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(to){to.type=="change"&&!to.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(to){if(this.gapIntersection&&(to.length!=this.gaps.length||this.gaps.some((no,io)=>no!=to[io]))){this.gapIntersection.disconnect();for(let no of to)this.gapIntersection.observe(no);this.gaps=to}}onSelectionChange(to){let no=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:io}=this,so=this.selectionRange;if(io.state.facet(editable)?io.root.activeElement!=this.dom:!hasSelection(io.dom,so))return;let ao=so.anchorNode&&io.docView.nearest(so.anchorNode);if(ao&&ao.ignoreEvent(to)){no||(this.selectionChanged=!1);return}(browser.ie&&browser.ie_version<=11||browser.android&&browser.chrome)&&!io.state.selection.main.empty&&so.focusNode&&isEquivalentPosition(so.focusNode,so.focusOffset,so.anchorNode,so.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:to}=this,no=browser.safari&&to.root.nodeType==11&&deepActiveElement(this.dom.ownerDocument)==this.dom&&safariSelectionRangeHack(this.view)||getSelection(to.root);if(!no||this.selectionRange.eq(no))return!1;let io=hasSelection(this.dom,no);return io&&!this.selectionChanged&&to.inputState.lastFocusTime>Date.now()-200&&to.inputState.lastTouchTime{let ao=this.delayedAndroidKey;ao&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=ao.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&ao.force&&dispatchKey(this.dom,ao.key,ao.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(so)}(!this.delayedAndroidKey||to=="Enter")&&(this.delayedAndroidKey={key:to,keyCode:no,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let to of this.observer.takeRecords())this.queue.push(to);return this.queue}processRecords(){let to=this.pendingRecords();to.length&&(this.queue=[]);let no=-1,io=-1,so=!1;for(let ao of to){let lo=this.readMutation(ao);lo&&(lo.typeOver&&(so=!0),no==-1?{from:no,to:io}=lo:(no=Math.min(lo.from,no),io=Math.max(lo.to,io)))}return{from:no,to:io,typeOver:so}}readChange(){let{from:to,to:no,typeOver:io}=this.processRecords(),so=this.selectionChanged&&hasSelection(this.dom,this.selectionRange);if(to<0&&!so)return null;to>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let ao=new DOMChange(this.view,to,no,io);return this.view.docView.domChanged={newSel:ao.newSel?ao.newSel.main:null},ao}flush(to=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;to&&this.readSelectionRange();let no=this.readChange();if(!no)return this.view.requestMeasure(),!1;let io=this.view.state,so=applyDOMChange(this.view,no);return this.view.state==io&&this.view.update([]),so}readMutation(to){let no=this.view.docView.nearest(to.target);if(!no||no.ignoreMutation(to))return null;if(no.markDirty(to.type=="attributes"),to.type=="attributes"&&(no.flags|=4),to.type=="childList"){let io=findChild(no,to.previousSibling||to.target.previousSibling,-1),so=findChild(no,to.nextSibling||to.target.nextSibling,1);return{from:io?no.posAfter(io):no.posAtStart,to:so?no.posBefore(so):no.posAtEnd,typeOver:!1}}else return to.type=="characterData"?{from:no.posAtStart,to:no.posAtEnd,typeOver:to.target.nodeValue==to.oldValue}:null}setWindow(to){to!=this.win&&(this.removeWindowListeners(this.win),this.win=to,this.addWindowListeners(this.win))}addWindowListeners(to){to.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):to.addEventListener("beforeprint",this.onPrint),to.addEventListener("scroll",this.onScroll),to.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(to){to.removeEventListener("scroll",this.onScroll),to.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):to.removeEventListener("beforeprint",this.onPrint),to.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var to,no,io;this.stop(),(to=this.intersection)===null||to===void 0||to.disconnect(),(no=this.gapIntersection)===null||no===void 0||no.disconnect(),(io=this.resizeScroll)===null||io===void 0||io.disconnect();for(let so of this.scrollTargets)so.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function findChild(eo,to,no){for(;to;){let io=ContentView.get(to);if(io&&io.parent==eo)return io;let so=to.parentNode;to=so!=eo.dom?so:no>0?to.nextSibling:to.previousSibling}return null}function safariSelectionRangeHack(eo){let to=null;function no(ho){ho.preventDefault(),ho.stopImmediatePropagation(),to=ho.getTargetRanges()[0]}if(eo.contentDOM.addEventListener("beforeinput",no,!0),eo.dom.ownerDocument.execCommand("indent"),eo.contentDOM.removeEventListener("beforeinput",no,!0),!to)return null;let io=to.startContainer,so=to.startOffset,ao=to.endContainer,lo=to.endOffset,uo=eo.docView.domAtPos(eo.state.selection.main.anchor);return isEquivalentPosition(uo.node,uo.offset,ao,lo)&&([io,so,ao,lo]=[ao,lo,io,so]),{anchorNode:io,anchorOffset:so,focusNode:ao,focusOffset:lo}}class EditorView{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(to={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),to.parent&&to.parent.appendChild(this.dom);let{dispatch:no}=to;this.dispatchTransactions=to.dispatchTransactions||no&&(io=>io.forEach(so=>no(so,this)))||(io=>this.update(io)),this.dispatch=this.dispatch.bind(this),this._root=to.root||getRoot(to.parent)||document,this.viewState=new ViewState(to.state||EditorState.create(to)),to.scrollTo&&to.scrollTo.is(scrollIntoView$1)&&(this.viewState.scrollTarget=to.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(viewPlugin).map(io=>new PluginInstance(io));for(let io of this.plugins)io.update(this);this.observer=new DOMObserver(this),this.inputState=new InputState(this),this.inputState.ensureHandlers(this.plugins),this.docView=new DocView(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...to){let no=to.length==1&&to[0]instanceof Transaction?to:to.length==1&&Array.isArray(to[0])?to[0]:[this.state.update(...to)];this.dispatchTransactions(no,this)}update(to){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let no=!1,io=!1,so,ao=this.state;for(let So of to){if(So.startState!=ao)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");ao=So.state}if(this.destroyed){this.viewState.state=ao;return}let lo=this.hasFocus,uo=0,ho=null;to.some(So=>So.annotation(isFocusChange))?(this.inputState.notifiedFocused=lo,uo=1):lo!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=lo,ho=focusChangeTransaction(ao,lo),ho||(uo=1));let go=this.observer.delayedAndroidKey,mo=null;if(go?(this.observer.clearDelayedAndroidKey(),mo=this.observer.readChange(),(mo&&!this.state.doc.eq(ao.doc)||!this.state.selection.eq(ao.selection))&&(mo=null)):this.observer.clear(),ao.facet(EditorState.phrases)!=this.state.facet(EditorState.phrases))return this.setState(ao);so=ViewUpdate.create(this,ao,to),so.flags|=uo;let yo=this.viewState.scrollTarget;try{this.updateState=2;for(let So of to){if(yo&&(yo=yo.map(So.changes)),So.scrollIntoView){let{main:_o}=So.state.selection;yo=new ScrollTarget(_o.empty?_o:EditorSelection.cursor(_o.head,_o.head>_o.anchor?-1:1))}for(let _o of So.effects)_o.is(scrollIntoView$1)&&(yo=_o.value.clip(this.state))}this.viewState.update(so,yo),this.bidiCache=CachedOrder.update(this.bidiCache,so.changes),so.empty||(this.updatePlugins(so),this.inputState.update(so)),no=this.docView.update(so),this.state.facet(styleModule)!=this.styleModules&&this.mountStyles(),io=this.updateAttrs(),this.showAnnouncements(to),this.docView.updateSelection(no,to.some(So=>So.isUserEvent("select.pointer")))}finally{this.updateState=0}if(so.startState.facet(theme)!=so.state.facet(theme)&&(this.viewState.mustMeasureContent=!0),(no||io||yo||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),no&&this.docViewUpdate(),!so.empty)for(let So of this.state.facet(updateListener))try{So(so)}catch(_o){logException(this.state,_o,"update listener")}(ho||mo)&&Promise.resolve().then(()=>{ho&&this.state==ho.startState&&this.dispatch(ho),mo&&!applyDOMChange(this,mo)&&go.force&&dispatchKey(this.contentDOM,go.key,go.keyCode)})}setState(to){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=to;return}this.updateState=2;let no=this.hasFocus;try{for(let io of this.plugins)io.destroy(this);this.viewState=new ViewState(to),this.plugins=to.facet(viewPlugin).map(io=>new PluginInstance(io)),this.pluginMap.clear();for(let io of this.plugins)io.update(this);this.docView.destroy(),this.docView=new DocView(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}no&&this.focus(),this.requestMeasure()}updatePlugins(to){let no=to.startState.facet(viewPlugin),io=to.state.facet(viewPlugin);if(no!=io){let so=[];for(let ao of io){let lo=no.indexOf(ao);if(lo<0)so.push(new PluginInstance(ao));else{let uo=this.plugins[lo];uo.mustUpdate=to,so.push(uo)}}for(let ao of this.plugins)ao.mustUpdate!=to&&ao.destroy(this);this.plugins=so,this.pluginMap.clear()}else for(let so of this.plugins)so.mustUpdate=to;for(let so=0;so-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,to&&this.observer.forceFlush();let no=null,io=this.scrollDOM,so=io.scrollTop*this.scaleY,{scrollAnchorPos:ao,scrollAnchorHeight:lo}=this.viewState;Math.abs(so-this.viewState.scrollTop)>1&&(lo=-1),this.viewState.scrollAnchorHeight=-1;try{for(let uo=0;;uo++){if(lo<0)if(isScrolledToBottom(io))ao=-1,lo=this.viewState.heightMap.height;else{let _o=this.viewState.scrollAnchorAt(so);ao=_o.from,lo=_o.top}this.updateState=1;let ho=this.viewState.measure(this);if(!ho&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(uo>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let go=[];ho&4||([this.measureRequests,go]=[go,this.measureRequests]);let mo=go.map(_o=>{try{return _o.read(this)}catch(ko){return logException(this.state,ko),BadMeasure}}),yo=ViewUpdate.create(this,this.state,[]),So=!1;yo.flags|=ho,no?no.flags|=ho:no=yo,this.updateState=2,yo.empty||(this.updatePlugins(yo),this.inputState.update(yo),this.updateAttrs(),So=this.docView.update(yo),So&&this.docViewUpdate());for(let _o=0;_o1||ko<-1){so=so+ko,io.scrollTop=so/this.scaleY,lo=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(no&&!no.empty)for(let uo of this.state.facet(updateListener))uo(no)}get themeClasses(){return baseThemeID+" "+(this.state.facet(darkTheme)?baseDarkID:baseLightID)+" "+this.state.facet(theme)}updateAttrs(){let to=attrsFromFacet(this,editorAttributes,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),no={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(editable)?"true":"false",class:"cm-content",style:`${browser.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(no["aria-readonly"]="true"),attrsFromFacet(this,contentAttributes,no);let io=this.observer.ignore(()=>{let so=updateAttrs(this.contentDOM,this.contentAttrs,no),ao=updateAttrs(this.dom,this.editorAttrs,to);return so||ao});return this.editorAttrs=to,this.contentAttrs=no,io}showAnnouncements(to){let no=!0;for(let io of to)for(let so of io.effects)if(so.is(EditorView.announce)){no&&(this.announceDOM.textContent=""),no=!1;let ao=this.announceDOM.appendChild(document.createElement("div"));ao.textContent=so.value}}mountStyles(){this.styleModules=this.state.facet(styleModule);let to=this.state.facet(EditorView.cspNonce);StyleModule.mount(this.root,this.styleModules.concat(baseTheme$1$2).reverse(),to?{nonce:to}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(to){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),to){if(this.measureRequests.indexOf(to)>-1)return;if(to.key!=null){for(let no=0;noio.spec==to)||null),no&&no.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(to){return this.readMeasured(),this.viewState.elementAtHeight(to)}lineBlockAtHeight(to){return this.readMeasured(),this.viewState.lineBlockAtHeight(to)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(to){return this.viewState.lineBlockAt(to)}get contentHeight(){return this.viewState.contentHeight}moveByChar(to,no,io){return skipAtoms(this,to,moveByChar(this,to,no,io))}moveByGroup(to,no){return skipAtoms(this,to,moveByChar(this,to,no,io=>byGroup(this,to.head,io)))}visualLineSide(to,no){let io=this.bidiSpans(to),so=this.textDirectionAt(to.from),ao=io[no?io.length-1:0];return EditorSelection.cursor(ao.side(no,so)+to.from,ao.forward(!no,so)?1:-1)}moveToLineBoundary(to,no,io=!0){return moveToLineBoundary(this,to,no,io)}moveVertically(to,no,io){return skipAtoms(this,to,moveVertically(this,to,no,io))}domAtPos(to){return this.docView.domAtPos(to)}posAtDOM(to,no=0){return this.docView.posFromDOM(to,no)}posAtCoords(to,no=!0){return this.readMeasured(),posAtCoords(this,to,no)}coordsAtPos(to,no=1){this.readMeasured();let io=this.docView.coordsAt(to,no);if(!io||io.left==io.right)return io;let so=this.state.doc.lineAt(to),ao=this.bidiSpans(so),lo=ao[BidiSpan.find(ao,to-so.from,-1,no)];return flattenRect(io,lo.dir==Direction.LTR==no>0)}coordsForChar(to){return this.readMeasured(),this.docView.coordsForChar(to)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(to){return!this.state.facet(perLineTextDirection)||tothis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(to))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(to){if(to.length>MaxBidiLine)return trivialOrder(to.length);let no=this.textDirectionAt(to.from),io;for(let ao of this.bidiCache)if(ao.from==to.from&&ao.dir==no&&(ao.fresh||isolatesEq(ao.isolates,io=getIsolatedRanges(this,to))))return ao.order;io||(io=getIsolatedRanges(this,to));let so=computeOrder(to.text,no,io);return this.bidiCache.push(new CachedOrder(to.from,to.to,no,io,!0,so)),so}get hasFocus(){var to;return(this.dom.ownerDocument.hasFocus()||browser.safari&&((to=this.inputState)===null||to===void 0?void 0:to.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{focusPreventScroll(this.contentDOM),this.docView.updateSelection()})}setRoot(to){this._root!=to&&(this._root=to,this.observer.setWindow((to.nodeType==9?to:to.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let to of this.plugins)to.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(to,no={}){return scrollIntoView$1.of(new ScrollTarget(typeof to=="number"?EditorSelection.cursor(to):to,no.y,no.x,no.yMargin,no.xMargin))}scrollSnapshot(){let{scrollTop:to,scrollLeft:no}=this.scrollDOM,io=this.viewState.scrollAnchorAt(to);return scrollIntoView$1.of(new ScrollTarget(EditorSelection.cursor(io.from),"start","start",io.top-to,no,!0))}static domEventHandlers(to){return ViewPlugin.define(()=>({}),{eventHandlers:to})}static domEventObservers(to){return ViewPlugin.define(()=>({}),{eventObservers:to})}static theme(to,no){let io=StyleModule.newName(),so=[theme.of(io),styleModule.of(buildTheme(`.${io}`,to))];return no&&no.dark&&so.push(darkTheme.of(!0)),so}static baseTheme(to){return Prec.lowest(styleModule.of(buildTheme("."+baseThemeID,to,lightDarkIDs)))}static findFromDOM(to){var no;let io=to.querySelector(".cm-content"),so=io&&ContentView.get(io)||ContentView.get(to);return((no=so==null?void 0:so.rootView)===null||no===void 0?void 0:no.view)||null}}EditorView.styleModule=styleModule;EditorView.inputHandler=inputHandler$1;EditorView.scrollHandler=scrollHandler;EditorView.focusChangeEffect=focusChangeEffect;EditorView.perLineTextDirection=perLineTextDirection;EditorView.exceptionSink=exceptionSink;EditorView.updateListener=updateListener;EditorView.editable=editable;EditorView.mouseSelectionStyle=mouseSelectionStyle;EditorView.dragMovesSelection=dragMovesSelection$1;EditorView.clickAddsSelectionRange=clickAddsSelectionRange;EditorView.decorations=decorations;EditorView.outerDecorations=outerDecorations;EditorView.atomicRanges=atomicRanges;EditorView.bidiIsolatedRanges=bidiIsolatedRanges;EditorView.scrollMargins=scrollMargins;EditorView.darkTheme=darkTheme;EditorView.cspNonce=Facet.define({combine:eo=>eo.length?eo[0]:""});EditorView.contentAttributes=contentAttributes;EditorView.editorAttributes=editorAttributes;EditorView.lineWrapping=EditorView.contentAttributes.of({class:"cm-lineWrapping"});EditorView.announce=StateEffect.define();const MaxBidiLine=4096,BadMeasure={};class CachedOrder{constructor(to,no,io,so,ao,lo){this.from=to,this.to=no,this.dir=io,this.isolates=so,this.fresh=ao,this.order=lo}static update(to,no){if(no.empty&&!to.some(ao=>ao.fresh))return to;let io=[],so=to.length?to[to.length-1].dir:Direction.LTR;for(let ao=Math.max(0,to.length-10);ao=0;so--){let ao=io[so],lo=typeof ao=="function"?ao(eo):ao;lo&&combineAttrs(lo,no)}return no}const currentPlatform=browser.mac?"mac":browser.windows?"win":browser.linux?"linux":"key";function normalizeKeyName(eo,to){const no=eo.split(/-(?!$)/);let io=no[no.length-1];io=="Space"&&(io=" ");let so,ao,lo,uo;for(let ho=0;hoio.concat(so),[]))),no}function runScopeHandlers(eo,to,no){return runHandlers(getKeymap(eo.state),to,eo,no)}let storedPrefix=null;const PrefixTimeout=4e3;function buildKeymap(eo,to=currentPlatform){let no=Object.create(null),io=Object.create(null),so=(lo,uo)=>{let ho=io[lo];if(ho==null)io[lo]=uo;else if(ho!=uo)throw new Error("Key binding "+lo+" is used both as a regular binding and as a multi-stroke prefix")},ao=(lo,uo,ho,go,mo)=>{var yo,So;let _o=no[lo]||(no[lo]=Object.create(null)),ko=uo.split(/ (?!$)/).map(Ro=>normalizeKeyName(Ro,to));for(let Ro=1;Ro{let Mo=storedPrefix={view:No,prefix:Oo,scope:lo};return setTimeout(()=>{storedPrefix==Mo&&(storedPrefix=null)},PrefixTimeout),!0}]})}let Co=ko.join(" ");so(Co,!1);let $o=_o[Co]||(_o[Co]={preventDefault:!1,stopPropagation:!1,run:((So=(yo=_o._any)===null||yo===void 0?void 0:yo.run)===null||So===void 0?void 0:So.slice())||[]});ho&&$o.run.push(ho),go&&($o.preventDefault=!0),mo&&($o.stopPropagation=!0)};for(let lo of eo){let uo=lo.scope?lo.scope.split(" "):["editor"];if(lo.any)for(let go of uo){let mo=no[go]||(no[go]=Object.create(null));mo._any||(mo._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let yo in mo)mo[yo].run.push(lo.any)}let ho=lo[to]||lo.key;if(ho)for(let go of uo)ao(go,ho,lo.run,lo.preventDefault,lo.stopPropagation),lo.shift&&ao(go,"Shift-"+ho,lo.shift,lo.preventDefault,lo.stopPropagation)}return no}function runHandlers(eo,to,no,io){let so=keyName(to),ao=codePointAt(so,0),lo=codePointSize(ao)==so.length&&so!=" ",uo="",ho=!1,go=!1,mo=!1;storedPrefix&&storedPrefix.view==no&&storedPrefix.scope==io&&(uo=storedPrefix.prefix+" ",modifierCodes.indexOf(to.keyCode)<0&&(go=!0,storedPrefix=null));let yo=new Set,So=$o=>{if($o){for(let Ro of $o.run)if(!yo.has(Ro)&&(yo.add(Ro),Ro(no,to)))return $o.stopPropagation&&(mo=!0),!0;$o.preventDefault&&($o.stopPropagation&&(mo=!0),go=!0)}return!1},_o=eo[io],ko,Co;return _o&&(So(_o[uo+modifiers(so,to,!lo)])?ho=!0:lo&&(to.altKey||to.metaKey||to.ctrlKey)&&!(browser.windows&&to.ctrlKey&&to.altKey)&&(ko=base[to.keyCode])&&ko!=so?(So(_o[uo+modifiers(ko,to,!0)])||to.shiftKey&&(Co=shift[to.keyCode])!=so&&Co!=ko&&So(_o[uo+modifiers(Co,to,!1)]))&&(ho=!0):lo&&to.shiftKey&&So(_o[uo+modifiers(so,to,!0)])&&(ho=!0),!ho&&So(_o._any)&&(ho=!0)),go&&(ho=!0),ho&&mo&&to.stopPropagation(),ho}class RectangleMarker{constructor(to,no,io,so,ao){this.className=to,this.left=no,this.top=io,this.width=so,this.height=ao}draw(){let to=document.createElement("div");return to.className=this.className,this.adjust(to),to}update(to,no){return no.className!=this.className?!1:(this.adjust(to),!0)}adjust(to){to.style.left=this.left+"px",to.style.top=this.top+"px",this.width!=null&&(to.style.width=this.width+"px"),to.style.height=this.height+"px"}eq(to){return this.left==to.left&&this.top==to.top&&this.width==to.width&&this.height==to.height&&this.className==to.className}static forRange(to,no,io){if(io.empty){let so=to.coordsAtPos(io.head,io.assoc||1);if(!so)return[];let ao=getBase(to);return[new RectangleMarker(no,so.left-ao.left,so.top-ao.top,null,so.bottom-so.top)]}else return rectanglesForRange(to,no,io)}}function getBase(eo){let to=eo.scrollDOM.getBoundingClientRect();return{left:(eo.textDirection==Direction.LTR?to.left:to.right-eo.scrollDOM.clientWidth*eo.scaleX)-eo.scrollDOM.scrollLeft*eo.scaleX,top:to.top-eo.scrollDOM.scrollTop*eo.scaleY}}function wrappedLine(eo,to,no){let io=EditorSelection.cursor(to);return{from:Math.max(no.from,eo.moveToLineBoundary(io,!1,!0).from),to:Math.min(no.to,eo.moveToLineBoundary(io,!0,!0).from),type:BlockType.Text}}function rectanglesForRange(eo,to,no){if(no.to<=eo.viewport.from||no.from>=eo.viewport.to)return[];let io=Math.max(no.from,eo.viewport.from),so=Math.min(no.to,eo.viewport.to),ao=eo.textDirection==Direction.LTR,lo=eo.contentDOM,uo=lo.getBoundingClientRect(),ho=getBase(eo),go=lo.querySelector(".cm-line"),mo=go&&window.getComputedStyle(go),yo=uo.left+(mo?parseInt(mo.paddingLeft)+Math.min(0,parseInt(mo.textIndent)):0),So=uo.right-(mo?parseInt(mo.paddingRight):0),_o=blockAt(eo,io),ko=blockAt(eo,so),Co=_o.type==BlockType.Text?_o:null,$o=ko.type==BlockType.Text?ko:null;if(Co&&(eo.lineWrapping||_o.widgetLineBreaks)&&(Co=wrappedLine(eo,io,Co)),$o&&(eo.lineWrapping||ko.widgetLineBreaks)&&($o=wrappedLine(eo,so,$o)),Co&&$o&&Co.from==$o.from)return Oo(No(no.from,no.to,Co));{let Bo=Co?No(no.from,null,Co):Mo(_o,!1),Po=$o?No(null,no.to,$o):Mo(ko,!0),Lo=[];return(Co||_o).to<($o||ko).from-(Co&&$o?1:0)||_o.widgetLineBreaks>1&&Bo.bottom+eo.defaultLineHeight/2Yo&&Jo.from=Qo)break;vs>ps&&Ho(Math.max(ys,ps),Bo==null&&ys<=Yo,Math.min(vs,Qo),Po==null&&vs>=qo,gs.dir)}if(ps=hs.to+1,ps>=Qo)break}return Uo.length==0&&Ho(Yo,Bo==null,qo,Po==null,eo.textDirection),{top:Go,bottom:Do,horizontal:Uo}}function Mo(Bo,Po){let Lo=uo.top+(Po?Bo.top:Bo.bottom);return{top:Lo,bottom:Lo,horizontal:[]}}}function sameMarker(eo,to){return eo.constructor==to.constructor&&eo.eq(to)}class LayerView{constructor(to,no){this.view=to,this.layer=no,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=to.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),no.above&&this.dom.classList.add("cm-layer-above"),no.class&&this.dom.classList.add(no.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(to.state),to.requestMeasure(this.measureReq),no.mount&&no.mount(this.dom,to)}update(to){to.startState.facet(layerOrder)!=to.state.facet(layerOrder)&&this.setOrder(to.state),(this.layer.update(to,this.dom)||to.geometryChanged)&&(this.scale(),to.view.requestMeasure(this.measureReq))}docViewUpdate(to){this.layer.updateOnDocViewUpdate!==!1&&to.requestMeasure(this.measureReq)}setOrder(to){let no=0,io=to.facet(layerOrder);for(;no!sameMarker(no,this.drawn[io]))){let no=this.dom.firstChild,io=0;for(let so of to)so.update&&no&&so.constructor&&this.drawn[io].constructor&&so.update(no,this.drawn[io])?(no=no.nextSibling,io++):this.dom.insertBefore(so.draw(),no);for(;no;){let so=no.nextSibling;no.remove(),no=so}this.drawn=to}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const layerOrder=Facet.define();function layer(eo){return[ViewPlugin.define(to=>new LayerView(to,eo)),layerOrder.of(eo)]}const CanHidePrimary=!browser.ios,selectionConfig=Facet.define({combine(eo){return combineConfig(eo,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(to,no)=>Math.min(to,no),drawRangeCursor:(to,no)=>to||no})}});function drawSelection(eo={}){return[selectionConfig.of(eo),cursorLayer,selectionLayer,hideNativeSelection,nativeSelectionHidden.of(!0)]}function configChanged(eo){return eo.startState.facet(selectionConfig)!=eo.state.facet(selectionConfig)}const cursorLayer=layer({above:!0,markers(eo){let{state:to}=eo,no=to.facet(selectionConfig),io=[];for(let so of to.selection.ranges){let ao=so==to.selection.main;if(so.empty?!ao||CanHidePrimary:no.drawRangeCursor){let lo=ao?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",uo=so.empty?so:EditorSelection.cursor(so.head,so.head>so.anchor?-1:1);for(let ho of RectangleMarker.forRange(eo,lo,uo))io.push(ho)}}return io},update(eo,to){eo.transactions.some(io=>io.selection)&&(to.style.animationName=to.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let no=configChanged(eo);return no&&setBlinkRate(eo.state,to),eo.docChanged||eo.selectionSet||no},mount(eo,to){setBlinkRate(to.state,eo)},class:"cm-cursorLayer"});function setBlinkRate(eo,to){to.style.animationDuration=eo.facet(selectionConfig).cursorBlinkRate+"ms"}const selectionLayer=layer({above:!1,markers(eo){return eo.state.selection.ranges.map(to=>to.empty?[]:RectangleMarker.forRange(eo,"cm-selectionBackground",to)).reduce((to,no)=>to.concat(no))},update(eo,to){return eo.docChanged||eo.selectionSet||eo.viewportChanged||configChanged(eo)},class:"cm-selectionLayer"}),themeSpec={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};CanHidePrimary&&(themeSpec[".cm-line"].caretColor="transparent !important",themeSpec[".cm-content"]={caretColor:"transparent !important"});const hideNativeSelection=Prec.highest(EditorView.theme(themeSpec)),setDropCursorPos=StateEffect.define({map(eo,to){return eo==null?null:to.mapPos(eo)}}),dropCursorPos=StateField.define({create(){return null},update(eo,to){return eo!=null&&(eo=to.changes.mapPos(eo)),to.effects.reduce((no,io)=>io.is(setDropCursorPos)?io.value:no,eo)}}),drawDropCursor=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(eo){var to;let no=eo.state.field(dropCursorPos);no==null?this.cursor!=null&&((to=this.cursor)===null||to===void 0||to.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(eo.startState.field(dropCursorPos)!=no||eo.docChanged||eo.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:eo}=this,to=eo.state.field(dropCursorPos),no=to!=null&&eo.coordsAtPos(to);if(!no)return null;let io=eo.scrollDOM.getBoundingClientRect();return{left:no.left-io.left+eo.scrollDOM.scrollLeft*eo.scaleX,top:no.top-io.top+eo.scrollDOM.scrollTop*eo.scaleY,height:no.bottom-no.top}}drawCursor(eo){if(this.cursor){let{scaleX:to,scaleY:no}=this.view;eo?(this.cursor.style.left=eo.left/to+"px",this.cursor.style.top=eo.top/no+"px",this.cursor.style.height=eo.height/no+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(eo){this.view.state.field(dropCursorPos)!=eo&&this.view.dispatch({effects:setDropCursorPos.of(eo)})}},{eventObservers:{dragover(eo){this.setDropPos(this.view.posAtCoords({x:eo.clientX,y:eo.clientY}))},dragleave(eo){(eo.target==this.view.contentDOM||!this.view.contentDOM.contains(eo.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function dropCursor(){return[dropCursorPos,drawDropCursor]}function iterMatches(eo,to,no,io,so){to.lastIndex=0;for(let ao=eo.iterRange(no,io),lo=no,uo;!ao.next().done;lo+=ao.value.length)if(!ao.lineBreak)for(;uo=to.exec(ao.value);)so(lo+uo.index,uo)}function matchRanges(eo,to){let no=eo.visibleRanges;if(no.length==1&&no[0].from==eo.viewport.from&&no[0].to==eo.viewport.to)return no;let io=[];for(let{from:so,to:ao}of no)so=Math.max(eo.state.doc.lineAt(so).from,so-to),ao=Math.min(eo.state.doc.lineAt(ao).to,ao+to),io.length&&io[io.length-1].to>=so?io[io.length-1].to=ao:io.push({from:so,to:ao});return io}class MatchDecorator{constructor(to){const{regexp:no,decoration:io,decorate:so,boundary:ao,maxLength:lo=1e3}=to;if(!no.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=no,so)this.addMatch=(uo,ho,go,mo)=>so(mo,go,go+uo[0].length,uo,ho);else if(typeof io=="function")this.addMatch=(uo,ho,go,mo)=>{let yo=io(uo,ho,go);yo&&mo(go,go+uo[0].length,yo)};else if(io)this.addMatch=(uo,ho,go,mo)=>mo(go,go+uo[0].length,io);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=ao,this.maxLength=lo}createDeco(to){let no=new RangeSetBuilder,io=no.add.bind(no);for(let{from:so,to:ao}of matchRanges(to,this.maxLength))iterMatches(to.state.doc,this.regexp,so,ao,(lo,uo)=>this.addMatch(uo,to,lo,io));return no.finish()}updateDeco(to,no){let io=1e9,so=-1;return to.docChanged&&to.changes.iterChanges((ao,lo,uo,ho)=>{ho>to.view.viewport.from&&uo1e3?this.createDeco(to.view):so>-1?this.updateRange(to.view,no.map(to.changes),io,so):no}updateRange(to,no,io,so){for(let ao of to.visibleRanges){let lo=Math.max(ao.from,io),uo=Math.min(ao.to,so);if(uo>lo){let ho=to.state.doc.lineAt(lo),go=ho.toho.from;lo--)if(this.boundary.test(ho.text[lo-1-ho.from])){mo=lo;break}for(;uoSo.push(Ro.range(Co,$o));if(ho==go)for(this.regexp.lastIndex=mo-ho.from;(_o=this.regexp.exec(ho.text))&&_o.indexthis.addMatch($o,to,Co,ko));no=no.update({filterFrom:mo,filterTo:yo,filter:(Co,$o)=>Coyo,add:So})}}return no}}const UnicodeRegexpSupport=/x/.unicode!=null?"gu":"g",Specials=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,UnicodeRegexpSupport),Names={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let _supportsTabSize=null;function supportsTabSize(){var eo;if(_supportsTabSize==null&&typeof document<"u"&&document.body){let to=document.body.style;_supportsTabSize=((eo=to.tabSize)!==null&&eo!==void 0?eo:to.MozTabSize)!=null}return _supportsTabSize||!1}const specialCharConfig=Facet.define({combine(eo){let to=combineConfig(eo,{render:null,specialChars:Specials,addSpecialChars:null});return(to.replaceTabs=!supportsTabSize())&&(to.specialChars=new RegExp(" |"+to.specialChars.source,UnicodeRegexpSupport)),to.addSpecialChars&&(to.specialChars=new RegExp(to.specialChars.source+"|"+to.addSpecialChars.source,UnicodeRegexpSupport)),to}});function highlightSpecialChars(eo={}){return[specialCharConfig.of(eo),specialCharPlugin()]}let _plugin=null;function specialCharPlugin(){return _plugin||(_plugin=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.decorations=Decoration.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(eo.state.facet(specialCharConfig)),this.decorations=this.decorator.createDeco(eo)}makeDecorator(eo){return new MatchDecorator({regexp:eo.specialChars,decoration:(to,no,io)=>{let{doc:so}=no.state,ao=codePointAt(to[0],0);if(ao==9){let lo=so.lineAt(io),uo=no.state.tabSize,ho=countColumn(lo.text,uo,io-lo.from);return Decoration.replace({widget:new TabWidget((uo-ho%uo)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[ao]||(this.decorationCache[ao]=Decoration.replace({widget:new SpecialCharWidget(eo,ao)}))},boundary:eo.replaceTabs?void 0:/[^]/})}update(eo){let to=eo.state.facet(specialCharConfig);eo.startState.facet(specialCharConfig)!=to?(this.decorator=this.makeDecorator(to),this.decorations=this.decorator.createDeco(eo.view)):this.decorations=this.decorator.updateDeco(eo,this.decorations)}},{decorations:eo=>eo.decorations}))}const DefaultPlaceholder="•";function placeholder$1(eo){return eo>=32?DefaultPlaceholder:eo==10?"␤":String.fromCharCode(9216+eo)}class SpecialCharWidget extends WidgetType{constructor(to,no){super(),this.options=to,this.code=no}eq(to){return to.code==this.code}toDOM(to){let no=placeholder$1(this.code),io=to.state.phrase("Control character")+" "+(Names[this.code]||"0x"+this.code.toString(16)),so=this.options.render&&this.options.render(this.code,io,no);if(so)return so;let ao=document.createElement("span");return ao.textContent=no,ao.title=io,ao.setAttribute("aria-label",io),ao.className="cm-specialChar",ao}ignoreEvent(){return!1}}class TabWidget extends WidgetType{constructor(to){super(),this.width=to}eq(to){return to.width==this.width}toDOM(){let to=document.createElement("span");return to.textContent=" ",to.className="cm-tab",to.style.width=this.width+"px",to}ignoreEvent(){return!1}}function highlightActiveLine(){return activeLineHighlighter}const lineDeco=Decoration.line({class:"cm-activeLine"}),activeLineHighlighter=ViewPlugin.fromClass(class{constructor(eo){this.decorations=this.getDeco(eo)}update(eo){(eo.docChanged||eo.selectionSet)&&(this.decorations=this.getDeco(eo.view))}getDeco(eo){let to=-1,no=[];for(let io of eo.state.selection.ranges){let so=eo.lineBlockAt(io.head);so.from>to&&(no.push(lineDeco.range(so.from)),to=so.from)}return Decoration.set(no)}},{decorations:eo=>eo.decorations});class Placeholder extends WidgetType{constructor(to){super(),this.content=to}toDOM(){let to=document.createElement("span");return to.className="cm-placeholder",to.style.pointerEvents="none",to.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?to.setAttribute("aria-label","placeholder "+this.content):to.setAttribute("aria-hidden","true"),to}coordsAt(to){let no=to.firstChild?clientRectsFor(to.firstChild):[];if(!no.length)return null;let io=window.getComputedStyle(to.parentNode),so=flattenRect(no[0],io.direction!="rtl"),ao=parseInt(io.lineHeight);return so.bottom-so.top>ao*1.5?{left:so.left,right:so.right,top:so.top,bottom:so.top+ao}:so}ignoreEvent(){return!1}}function placeholder(eo){return ViewPlugin.fromClass(class{constructor(to){this.view=to,this.placeholder=eo?Decoration.set([Decoration.widget({widget:new Placeholder(eo),side:1}).range(0)]):Decoration.none}get decorations(){return this.view.state.doc.length?Decoration.none:this.placeholder}},{decorations:to=>to.decorations})}const MaxOff=2e3;function rectangleFor(eo,to,no){let io=Math.min(to.line,no.line),so=Math.max(to.line,no.line),ao=[];if(to.off>MaxOff||no.off>MaxOff||to.col<0||no.col<0){let lo=Math.min(to.off,no.off),uo=Math.max(to.off,no.off);for(let ho=io;ho<=so;ho++){let go=eo.doc.line(ho);go.length<=uo&&ao.push(EditorSelection.range(go.from+lo,go.to+uo))}}else{let lo=Math.min(to.col,no.col),uo=Math.max(to.col,no.col);for(let ho=io;ho<=so;ho++){let go=eo.doc.line(ho),mo=findColumn(go.text,lo,eo.tabSize,!0);if(mo<0)ao.push(EditorSelection.cursor(go.to));else{let yo=findColumn(go.text,uo,eo.tabSize);ao.push(EditorSelection.range(go.from+mo,go.from+yo))}}}return ao}function absoluteColumn(eo,to){let no=eo.coordsAtPos(eo.viewport.from);return no?Math.round(Math.abs((no.left-to)/eo.defaultCharacterWidth)):-1}function getPos(eo,to){let no=eo.posAtCoords({x:to.clientX,y:to.clientY},!1),io=eo.state.doc.lineAt(no),so=no-io.from,ao=so>MaxOff?-1:so==io.length?absoluteColumn(eo,to.clientX):countColumn(io.text,eo.state.tabSize,no-io.from);return{line:io.number,col:ao,off:so}}function rectangleSelectionStyle(eo,to){let no=getPos(eo,to),io=eo.state.selection;return no?{update(so){if(so.docChanged){let ao=so.changes.mapPos(so.startState.doc.line(no.line).from),lo=so.state.doc.lineAt(ao);no={line:lo.number,col:no.col,off:Math.min(no.off,lo.length)},io=io.map(so.changes)}},get(so,ao,lo){let uo=getPos(eo,so);if(!uo)return io;let ho=rectangleFor(eo.state,no,uo);return ho.length?lo?EditorSelection.create(ho.concat(io.ranges)):EditorSelection.create(ho):io}}:null}function rectangularSelection(eo){let to=(eo==null?void 0:eo.eventFilter)||(no=>no.altKey&&no.button==0);return EditorView.mouseSelectionStyle.of((no,io)=>to(io)?rectangleSelectionStyle(no,io):null)}const keys$1={Alt:[18,eo=>!!eo.altKey],Control:[17,eo=>!!eo.ctrlKey],Shift:[16,eo=>!!eo.shiftKey],Meta:[91,eo=>!!eo.metaKey]},showCrosshair={style:"cursor: crosshair"};function crosshairCursor(eo={}){let[to,no]=keys$1[eo.key||"Alt"],io=ViewPlugin.fromClass(class{constructor(so){this.view=so,this.isDown=!1}set(so){this.isDown!=so&&(this.isDown=so,this.view.update([]))}},{eventObservers:{keydown(so){this.set(so.keyCode==to||no(so))},keyup(so){(so.keyCode==to||!no(so))&&this.set(!1)},mousemove(so){this.set(no(so))}}});return[io,EditorView.contentAttributes.of(so=>{var ao;return!((ao=so.plugin(io))===null||ao===void 0)&&ao.isDown?showCrosshair:null})]}const Outside="-10000px";class TooltipViewManager{constructor(to,no,io,so){this.facet=no,this.createTooltipView=io,this.removeTooltipView=so,this.input=to.state.facet(no),this.tooltips=this.input.filter(lo=>lo);let ao=null;this.tooltipViews=this.tooltips.map(lo=>ao=io(lo,ao))}update(to,no){var io;let so=to.state.facet(this.facet),ao=so.filter(ho=>ho);if(so===this.input){for(let ho of this.tooltipViews)ho.update&&ho.update(to);return!1}let lo=[],uo=no?[]:null;for(let ho=0;hono[go]=ho),no.length=uo.length),this.input=so,this.tooltips=ao,this.tooltipViews=lo,!0}}function windowSpace(eo){let{win:to}=eo;return{top:0,left:0,bottom:to.innerHeight,right:to.innerWidth}}const tooltipConfig=Facet.define({combine:eo=>{var to,no,io;return{position:browser.ios?"absolute":((to=eo.find(so=>so.position))===null||to===void 0?void 0:to.position)||"fixed",parent:((no=eo.find(so=>so.parent))===null||no===void 0?void 0:no.parent)||null,tooltipSpace:((io=eo.find(so=>so.tooltipSpace))===null||io===void 0?void 0:io.tooltipSpace)||windowSpace}}}),knownHeight=new WeakMap,tooltipPlugin=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let to=eo.state.facet(tooltipConfig);this.position=to.position,this.parent=to.parent,this.classes=eo.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new TooltipViewManager(eo,showTooltip,(no,io)=>this.createTooltip(no,io),no=>{this.resizeObserver&&this.resizeObserver.unobserve(no.dom),no.dom.remove()}),this.above=this.manager.tooltips.map(no=>!!no.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(no=>{Date.now()>this.lastTransaction-50&&no.length>0&&no[no.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),eo.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let eo of this.manager.tooltipViews)this.intersectionObserver.observe(eo.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(eo){eo.transactions.length&&(this.lastTransaction=Date.now());let to=this.manager.update(eo,this.above);to&&this.observeIntersection();let no=to||eo.geometryChanged,io=eo.state.facet(tooltipConfig);if(io.position!=this.position&&!this.madeAbsolute){this.position=io.position;for(let so of this.manager.tooltipViews)so.dom.style.position=this.position;no=!0}if(io.parent!=this.parent){this.parent&&this.container.remove(),this.parent=io.parent,this.createContainer();for(let so of this.manager.tooltipViews)this.container.appendChild(so.dom);no=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);no&&this.maybeMeasure()}createTooltip(eo,to){let no=eo.create(this.view),io=to?to.dom:null;if(no.dom.classList.add("cm-tooltip"),eo.arrow&&!no.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let so=document.createElement("div");so.className="cm-tooltip-arrow",no.dom.insertBefore(so,io)}return no.dom.style.position=this.position,no.dom.style.top=Outside,no.dom.style.left="0px",this.container.insertBefore(no.dom,io),no.mount&&no.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(no.dom),no}destroy(){var eo,to,no;this.view.win.removeEventListener("resize",this.measureSoon);for(let io of this.manager.tooltipViews)io.dom.remove(),(eo=io.destroy)===null||eo===void 0||eo.call(io);this.parent&&this.container.remove(),(to=this.resizeObserver)===null||to===void 0||to.disconnect(),(no=this.intersectionObserver)===null||no===void 0||no.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let eo=this.view.dom.getBoundingClientRect(),to=1,no=1,io=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:so}=this.manager.tooltipViews[0];if(browser.gecko)io=so.offsetParent!=this.container.ownerDocument.body;else if(so.style.top==Outside&&so.style.left=="0px"){let ao=so.getBoundingClientRect();io=Math.abs(ao.top+1e4)>1||Math.abs(ao.left)>1}}if(io||this.position=="absolute")if(this.parent){let so=this.parent.getBoundingClientRect();so.width&&so.height&&(to=so.width/this.parent.offsetWidth,no=so.height/this.parent.offsetHeight)}else({scaleX:to,scaleY:no}=this.view.viewState);return{editor:eo,parent:this.parent?this.container.getBoundingClientRect():eo,pos:this.manager.tooltips.map((so,ao)=>{let lo=this.manager.tooltipViews[ao];return lo.getCoords?lo.getCoords(so.pos):this.view.coordsAtPos(so.pos)}),size:this.manager.tooltipViews.map(({dom:so})=>so.getBoundingClientRect()),space:this.view.state.facet(tooltipConfig).tooltipSpace(this.view),scaleX:to,scaleY:no,makeAbsolute:io}}writeMeasure(eo){var to;if(eo.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let uo of this.manager.tooltipViews)uo.dom.style.position="absolute"}let{editor:no,space:io,scaleX:so,scaleY:ao}=eo,lo=[];for(let uo=0;uo=Math.min(no.bottom,io.bottom)||yo.rightMath.min(no.right,io.right)+.1){mo.style.top=Outside;continue}let _o=ho.arrow?go.dom.querySelector(".cm-tooltip-arrow"):null,ko=_o?7:0,Co=So.right-So.left,$o=(to=knownHeight.get(go))!==null&&to!==void 0?to:So.bottom-So.top,Ro=go.offset||noOffset,Oo=this.view.textDirection==Direction.LTR,No=So.width>io.right-io.left?Oo?io.left:io.right-So.width:Oo?Math.min(yo.left-(_o?14:0)+Ro.x,io.right-Co):Math.max(io.left,yo.left-Co+(_o?14:0)-Ro.x),Mo=this.above[uo];!ho.strictSide&&(Mo?yo.top-(So.bottom-So.top)-Ro.yio.bottom)&&Mo==io.bottom-yo.bottom>yo.top-io.top&&(Mo=this.above[uo]=!Mo);let Bo=(Mo?yo.top-io.top:io.bottom-yo.bottom)-ko;if(Bo<$o&&go.resize!==!1){if(BoNo&&Go.topPo&&(Po=Mo?Go.top-$o-2-ko:Go.bottom+ko+2);if(this.position=="absolute"?(mo.style.top=(Po-eo.parent.top)/ao+"px",mo.style.left=(No-eo.parent.left)/so+"px"):(mo.style.top=Po/ao+"px",mo.style.left=No/so+"px"),_o){let Go=yo.left+(Oo?Ro.x:-Ro.x)-(No+14-7);_o.style.left=Go/so+"px"}go.overlap!==!0&&lo.push({left:No,top:Po,right:Lo,bottom:Po+$o}),mo.classList.toggle("cm-tooltip-above",Mo),mo.classList.toggle("cm-tooltip-below",!Mo),go.positioned&&go.positioned(eo.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let eo of this.manager.tooltipViews)eo.dom.style.top=Outside}},{eventObservers:{scroll(){this.maybeMeasure()}}}),baseTheme$5=EditorView.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),noOffset={x:0,y:0},showTooltip=Facet.define({enables:[tooltipPlugin,baseTheme$5]}),showHoverTooltip=Facet.define({combine:eo=>eo.reduce((to,no)=>to.concat(no),[])});class HoverTooltipHost{static create(to){return new HoverTooltipHost(to)}constructor(to){this.view=to,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new TooltipViewManager(to,showHoverTooltip,(no,io)=>this.createHostedView(no,io),no=>no.dom.remove())}createHostedView(to,no){let io=to.create(this.view);return io.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(io.dom,no?no.dom.nextSibling:this.dom.firstChild),this.mounted&&io.mount&&io.mount(this.view),io}mount(to){for(let no of this.manager.tooltipViews)no.mount&&no.mount(to);this.mounted=!0}positioned(to){for(let no of this.manager.tooltipViews)no.positioned&&no.positioned(to)}update(to){this.manager.update(to)}destroy(){var to;for(let no of this.manager.tooltipViews)(to=no.destroy)===null||to===void 0||to.call(no)}passProp(to){let no;for(let io of this.manager.tooltipViews){let so=io[to];if(so!==void 0){if(no===void 0)no=so;else if(no!==so)return}}return no}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const showHoverTooltipHost=showTooltip.compute([showHoverTooltip],eo=>{let to=eo.facet(showHoverTooltip);return to.length===0?null:{pos:Math.min(...to.map(no=>no.pos)),end:Math.max(...to.map(no=>{var io;return(io=no.end)!==null&&io!==void 0?io:no.pos})),create:HoverTooltipHost.create,above:to[0].above,arrow:to.some(no=>no.arrow)}});class HoverPlugin{constructor(to,no,io,so,ao){this.view=to,this.source=no,this.field=io,this.setHover=so,this.hoverTime=ao,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:to.dom,time:0},this.checkHover=this.checkHover.bind(this),to.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),to.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let to=Date.now()-this.lastMove.time;touo.bottom||no.xuo.right+to.defaultCharacterWidth)return;let ho=to.bidiSpans(to.state.doc.lineAt(so)).find(mo=>mo.from<=so&&mo.to>=so),go=ho&&ho.dir==Direction.RTL?-1:1;ao=no.x{this.pending==uo&&(this.pending=null,ho&&!(Array.isArray(ho)&&!ho.length)&&to.dispatch({effects:this.setHover.of(Array.isArray(ho)?ho:[ho])}))},ho=>logException(to.state,ho,"hover tooltip"))}else lo&&!(Array.isArray(lo)&&!lo.length)&&to.dispatch({effects:this.setHover.of(Array.isArray(lo)?lo:[lo])})}get tooltip(){let to=this.view.plugin(tooltipPlugin),no=to?to.manager.tooltips.findIndex(io=>io.create==HoverTooltipHost.create):-1;return no>-1?to.manager.tooltipViews[no]:null}mousemove(to){var no,io;this.lastMove={x:to.clientX,y:to.clientY,target:to.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:so,tooltip:ao}=this;if(so.length&&ao&&!isInTooltip(ao.dom,to)||this.pending){let{pos:lo}=so[0]||this.pending,uo=(io=(no=so[0])===null||no===void 0?void 0:no.end)!==null&&io!==void 0?io:lo;(lo==uo?this.view.posAtCoords(this.lastMove)!=lo:!isOverRange(this.view,lo,uo,to.clientX,to.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(to){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:no}=this;if(no.length){let{tooltip:io}=this;io&&io.dom.contains(to.relatedTarget)?this.watchTooltipLeave(io.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(to){let no=io=>{to.removeEventListener("mouseleave",no),this.active.length&&!this.view.dom.contains(io.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};to.addEventListener("mouseleave",no)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const tooltipMargin=4;function isInTooltip(eo,to){let no=eo.getBoundingClientRect();return to.clientX>=no.left-tooltipMargin&&to.clientX<=no.right+tooltipMargin&&to.clientY>=no.top-tooltipMargin&&to.clientY<=no.bottom+tooltipMargin}function isOverRange(eo,to,no,io,so,ao){let lo=eo.scrollDOM.getBoundingClientRect(),uo=eo.documentTop+eo.documentPadding.top+eo.contentHeight;if(lo.left>io||lo.rightso||Math.min(lo.bottom,uo)=to&&ho<=no}function hoverTooltip(eo,to={}){let no=StateEffect.define(),io=StateField.define({create(){return[]},update(so,ao){if(so.length&&(to.hideOnChange&&(ao.docChanged||ao.selection)?so=[]:to.hideOn&&(so=so.filter(lo=>!to.hideOn(ao,lo))),ao.docChanged)){let lo=[];for(let uo of so){let ho=ao.changes.mapPos(uo.pos,-1,MapMode.TrackDel);if(ho!=null){let go=Object.assign(Object.create(null),uo);go.pos=ho,go.end!=null&&(go.end=ao.changes.mapPos(go.end)),lo.push(go)}}so=lo}for(let lo of ao.effects)lo.is(no)&&(so=lo.value),lo.is(closeHoverTooltipEffect)&&(so=[]);return so},provide:so=>showHoverTooltip.from(so)});return[io,ViewPlugin.define(so=>new HoverPlugin(so,eo,io,no,to.hoverTime||300)),showHoverTooltipHost]}function getTooltip$2(eo,to){let no=eo.plugin(tooltipPlugin);if(!no)return null;let io=no.manager.tooltips.indexOf(to);return io<0?null:no.manager.tooltipViews[io]}const closeHoverTooltipEffect=StateEffect.define(),panelConfig=Facet.define({combine(eo){let to,no;for(let io of eo)to=to||io.topContainer,no=no||io.bottomContainer;return{topContainer:to,bottomContainer:no}}});function getPanel(eo,to){let no=eo.plugin(panelPlugin),io=no?no.specs.indexOf(to):-1;return io>-1?no.panels[io]:null}const panelPlugin=ViewPlugin.fromClass(class{constructor(eo){this.input=eo.state.facet(showPanel),this.specs=this.input.filter(no=>no),this.panels=this.specs.map(no=>no(eo));let to=eo.state.facet(panelConfig);this.top=new PanelGroup(eo,!0,to.topContainer),this.bottom=new PanelGroup(eo,!1,to.bottomContainer),this.top.sync(this.panels.filter(no=>no.top)),this.bottom.sync(this.panels.filter(no=>!no.top));for(let no of this.panels)no.dom.classList.add("cm-panel"),no.mount&&no.mount()}update(eo){let to=eo.state.facet(panelConfig);this.top.container!=to.topContainer&&(this.top.sync([]),this.top=new PanelGroup(eo.view,!0,to.topContainer)),this.bottom.container!=to.bottomContainer&&(this.bottom.sync([]),this.bottom=new PanelGroup(eo.view,!1,to.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let no=eo.state.facet(showPanel);if(no!=this.input){let io=no.filter(ho=>ho),so=[],ao=[],lo=[],uo=[];for(let ho of io){let go=this.specs.indexOf(ho),mo;go<0?(mo=ho(eo.view),uo.push(mo)):(mo=this.panels[go],mo.update&&mo.update(eo)),so.push(mo),(mo.top?ao:lo).push(mo)}this.specs=io,this.panels=so,this.top.sync(ao),this.bottom.sync(lo);for(let ho of uo)ho.dom.classList.add("cm-panel"),ho.mount&&ho.mount()}else for(let io of this.panels)io.update&&io.update(eo)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:eo=>EditorView.scrollMargins.of(to=>{let no=to.plugin(eo);return no&&{top:no.top.scrollMargin(),bottom:no.bottom.scrollMargin()}})});class PanelGroup{constructor(to,no,io){this.view=to,this.top=no,this.container=io,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(to){for(let no of this.panels)no.destroy&&to.indexOf(no)<0&&no.destroy();this.panels=to,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let no=this.container||this.view.dom;no.insertBefore(this.dom,this.top?no.firstChild:null)}let to=this.dom.firstChild;for(let no of this.panels)if(no.dom.parentNode==this.dom){for(;to!=no.dom;)to=rm(to);to=to.nextSibling}else this.dom.insertBefore(no.dom,to);for(;to;)to=rm(to)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let to of this.classes.split(" "))to&&this.container.classList.remove(to);for(let to of(this.classes=this.view.themeClasses).split(" "))to&&this.container.classList.add(to)}}}function rm(eo){let to=eo.nextSibling;return eo.remove(),to}const showPanel=Facet.define({enables:panelPlugin});class GutterMarker extends RangeValue{compare(to){return this==to||this.constructor==to.constructor&&this.eq(to)}eq(to){return!1}destroy(to){}}GutterMarker.prototype.elementClass="";GutterMarker.prototype.toDOM=void 0;GutterMarker.prototype.mapMode=MapMode.TrackBefore;GutterMarker.prototype.startSide=GutterMarker.prototype.endSide=-1;GutterMarker.prototype.point=!0;const gutterLineClass=Facet.define(),defaults$k={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>RangeSet.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},activeGutters=Facet.define();function gutter(eo){return[gutters(),activeGutters.of(Object.assign(Object.assign({},defaults$k),eo))]}const unfixGutters=Facet.define({combine:eo=>eo.some(to=>to)});function gutters(eo){let to=[gutterView];return eo&&eo.fixed===!1&&to.push(unfixGutters.of(!0)),to}const gutterView=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.prevViewport=eo.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=eo.state.facet(activeGutters).map(to=>new SingleGutterView(eo,to));for(let to of this.gutters)this.dom.appendChild(to.dom);this.fixed=!eo.state.facet(unfixGutters),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),eo.scrollDOM.insertBefore(this.dom,eo.contentDOM)}update(eo){if(this.updateGutters(eo)){let to=this.prevViewport,no=eo.view.viewport,io=Math.min(to.to,no.to)-Math.max(to.from,no.from);this.syncGutters(io<(no.to-no.from)*.8)}eo.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(unfixGutters)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=eo.view.viewport}syncGutters(eo){let to=this.dom.nextSibling;eo&&this.dom.remove();let no=RangeSet.iter(this.view.state.facet(gutterLineClass),this.view.viewport.from),io=[],so=this.gutters.map(ao=>new UpdateContext(ao,this.view.viewport,-this.view.documentPadding.top));for(let ao of this.view.viewportLineBlocks)if(io.length&&(io=[]),Array.isArray(ao.type)){let lo=!0;for(let uo of ao.type)if(uo.type==BlockType.Text&&lo){advanceCursor(no,io,uo.from);for(let ho of so)ho.line(this.view,uo,io);lo=!1}else if(uo.widget)for(let ho of so)ho.widget(this.view,uo)}else if(ao.type==BlockType.Text){advanceCursor(no,io,ao.from);for(let lo of so)lo.line(this.view,ao,io)}else if(ao.widget)for(let lo of so)lo.widget(this.view,ao);for(let ao of so)ao.finish();eo&&this.view.scrollDOM.insertBefore(this.dom,to)}updateGutters(eo){let to=eo.startState.facet(activeGutters),no=eo.state.facet(activeGutters),io=eo.docChanged||eo.heightChanged||eo.viewportChanged||!RangeSet.eq(eo.startState.facet(gutterLineClass),eo.state.facet(gutterLineClass),eo.view.viewport.from,eo.view.viewport.to);if(to==no)for(let so of this.gutters)so.update(eo)&&(io=!0);else{io=!0;let so=[];for(let ao of no){let lo=to.indexOf(ao);lo<0?so.push(new SingleGutterView(this.view,ao)):(this.gutters[lo].update(eo),so.push(this.gutters[lo]))}for(let ao of this.gutters)ao.dom.remove(),so.indexOf(ao)<0&&ao.destroy();for(let ao of so)this.dom.appendChild(ao.dom);this.gutters=so}return io}destroy(){for(let eo of this.gutters)eo.destroy();this.dom.remove()}},{provide:eo=>EditorView.scrollMargins.of(to=>{let no=to.plugin(eo);return!no||no.gutters.length==0||!no.fixed?null:to.textDirection==Direction.LTR?{left:no.dom.offsetWidth*to.scaleX}:{right:no.dom.offsetWidth*to.scaleX}})});function asArray(eo){return Array.isArray(eo)?eo:[eo]}function advanceCursor(eo,to,no){for(;eo.value&&eo.from<=no;)eo.from==no&&to.push(eo.value),eo.next()}class UpdateContext{constructor(to,no,io){this.gutter=to,this.height=io,this.i=0,this.cursor=RangeSet.iter(to.markers,no.from)}addElement(to,no,io){let{gutter:so}=this,ao=(no.top-this.height)/to.scaleY,lo=no.height/to.scaleY;if(this.i==so.elements.length){let uo=new GutterElement(to,lo,ao,io);so.elements.push(uo),so.dom.appendChild(uo.dom)}else so.elements[this.i].update(to,lo,ao,io);this.height=no.bottom,this.i++}line(to,no,io){let so=[];advanceCursor(this.cursor,so,no.from),io.length&&(so=so.concat(io));let ao=this.gutter.config.lineMarker(to,no,so);ao&&so.unshift(ao);let lo=this.gutter;so.length==0&&!lo.config.renderEmptyElements||this.addElement(to,no,so)}widget(to,no){let io=this.gutter.config.widgetMarker(to,no.widget,no);io&&this.addElement(to,no,[io])}finish(){let to=this.gutter;for(;to.elements.length>this.i;){let no=to.elements.pop();to.dom.removeChild(no.dom),no.destroy()}}}class SingleGutterView{constructor(to,no){this.view=to,this.config=no,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let io in no.domEventHandlers)this.dom.addEventListener(io,so=>{let ao=so.target,lo;if(ao!=this.dom&&this.dom.contains(ao)){for(;ao.parentNode!=this.dom;)ao=ao.parentNode;let ho=ao.getBoundingClientRect();lo=(ho.top+ho.bottom)/2}else lo=so.clientY;let uo=to.lineBlockAtHeight(lo-to.documentTop);no.domEventHandlers[io](to,uo,so)&&so.preventDefault()});this.markers=asArray(no.markers(to)),no.initialSpacer&&(this.spacer=new GutterElement(to,0,0,[no.initialSpacer(to)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(to){let no=this.markers;if(this.markers=asArray(this.config.markers(to.view)),this.spacer&&this.config.updateSpacer){let so=this.config.updateSpacer(this.spacer.markers[0],to);so!=this.spacer.markers[0]&&this.spacer.update(to.view,0,0,[so])}let io=to.view.viewport;return!RangeSet.eq(this.markers,no,io.from,io.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(to):!1)}destroy(){for(let to of this.elements)to.destroy()}}class GutterElement{constructor(to,no,io,so){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(to,no,io,so)}update(to,no,io,so){this.height!=no&&(this.height=no,this.dom.style.height=no+"px"),this.above!=io&&(this.dom.style.marginTop=(this.above=io)?io+"px":""),sameMarkers(this.markers,so)||this.setMarkers(to,so)}setMarkers(to,no){let io="cm-gutterElement",so=this.dom.firstChild;for(let ao=0,lo=0;;){let uo=lo,ho=aoao(uo,ho,go)||lo(uo,ho,go):lo}return io}})}});class NumberMarker extends GutterMarker{constructor(to){super(),this.number=to}eq(to){return this.number==to.number}toDOM(){return document.createTextNode(this.number)}}function formatNumber(eo,to){return eo.state.facet(lineNumberConfig).formatNumber(to,eo.state)}const lineNumberGutter=activeGutters.compute([lineNumberConfig],eo=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(to){return to.state.facet(lineNumberMarkers)},lineMarker(to,no,io){return io.some(so=>so.toDOM)?null:new NumberMarker(formatNumber(to,to.state.doc.lineAt(no.from).number))},widgetMarker:()=>null,lineMarkerChange:to=>to.startState.facet(lineNumberConfig)!=to.state.facet(lineNumberConfig),initialSpacer(to){return new NumberMarker(formatNumber(to,maxLineNumber(to.state.doc.lines)))},updateSpacer(to,no){let io=formatNumber(no.view,maxLineNumber(no.view.state.doc.lines));return io==to.number?to:new NumberMarker(io)},domEventHandlers:eo.facet(lineNumberConfig).domEventHandlers}));function lineNumbers(eo={}){return[lineNumberConfig.of(eo),gutters(),lineNumberGutter]}function maxLineNumber(eo){let to=9;for(;to{let to=[],no=-1;for(let io of eo.selection.ranges){let so=eo.doc.lineAt(io.head).from;so>no&&(no=so,to.push(activeLineGutterMarker.range(so)))}return RangeSet.of(to)});function highlightActiveLineGutter(){return activeLineGutterHighlighter}const DefaultBufferLength=1024;let nextPropID=0,Range$1=class{constructor(to,no){this.from=to,this.to=no}};class NodeProp{constructor(to={}){this.id=nextPropID++,this.perNode=!!to.perNode,this.deserialize=to.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(to){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof to!="function"&&(to=NodeType.match(to)),no=>{let io=to(no);return io===void 0?null:[this,io]}}}NodeProp.closedBy=new NodeProp({deserialize:eo=>eo.split(" ")});NodeProp.openedBy=new NodeProp({deserialize:eo=>eo.split(" ")});NodeProp.group=new NodeProp({deserialize:eo=>eo.split(" ")});NodeProp.isolate=new NodeProp({deserialize:eo=>{if(eo&&eo!="rtl"&&eo!="ltr"&&eo!="auto")throw new RangeError("Invalid value for isolate: "+eo);return eo||"auto"}});NodeProp.contextHash=new NodeProp({perNode:!0});NodeProp.lookAhead=new NodeProp({perNode:!0});NodeProp.mounted=new NodeProp({perNode:!0});class MountedTree{constructor(to,no,io){this.tree=to,this.overlay=no,this.parser=io}static get(to){return to&&to.props&&to.props[NodeProp.mounted.id]}}const noProps=Object.create(null);class NodeType{constructor(to,no,io,so=0){this.name=to,this.props=no,this.id=io,this.flags=so}static define(to){let no=to.props&&to.props.length?Object.create(null):noProps,io=(to.top?1:0)|(to.skipped?2:0)|(to.error?4:0)|(to.name==null?8:0),so=new NodeType(to.name||"",no,to.id,io);if(to.props){for(let ao of to.props)if(Array.isArray(ao)||(ao=ao(so)),ao){if(ao[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");no[ao[0].id]=ao[1]}}return so}prop(to){return this.props[to.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(to){if(typeof to=="string"){if(this.name==to)return!0;let no=this.prop(NodeProp.group);return no?no.indexOf(to)>-1:!1}return this.id==to}static match(to){let no=Object.create(null);for(let io in to)for(let so of io.split(" "))no[so]=to[io];return io=>{for(let so=io.prop(NodeProp.group),ao=-1;ao<(so?so.length:0);ao++){let lo=no[ao<0?io.name:so[ao]];if(lo)return lo}}}}NodeType.none=new NodeType("",Object.create(null),0,8);class NodeSet{constructor(to){this.types=to;for(let no=0;no0;for(let ho=this.cursor(lo|IterMode.IncludeAnonymous);;){let go=!1;if(ho.from<=ao&&ho.to>=so&&(!uo&&ho.type.isAnonymous||no(ho)!==!1)){if(ho.firstChild())continue;go=!0}for(;go&&io&&(uo||!ho.type.isAnonymous)&&io(ho),!ho.nextSibling();){if(!ho.parent())return;go=!0}}}prop(to){return to.perNode?this.props?this.props[to.id]:void 0:this.type.prop(to)}get propValues(){let to=[];if(this.props)for(let no in this.props)to.push([+no,this.props[no]]);return to}balance(to={}){return this.children.length<=8?this:balanceRange(NodeType.none,this.children,this.positions,0,this.children.length,0,this.length,(no,io,so)=>new Tree(this.type,no,io,so,this.propValues),to.makeTree||((no,io,so)=>new Tree(NodeType.none,no,io,so)))}static build(to){return buildTree$1(to)}}Tree.empty=new Tree(NodeType.none,[],[],0);class FlatBufferCursor{constructor(to,no){this.buffer=to,this.index=no}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new FlatBufferCursor(this.buffer,this.index)}}class TreeBuffer{constructor(to,no,io){this.buffer=to,this.length=no,this.set=io}get type(){return NodeType.none}toString(){let to=[];for(let no=0;no0));ho=lo[ho+3]);return uo}slice(to,no,io){let so=this.buffer,ao=new Uint16Array(no-to),lo=0;for(let uo=to,ho=0;uo=to&&noto;case 1:return no<=to&&io>to;case 2:return io>to;case 4:return!0}}function resolveNode(eo,to,no,io){for(var so;eo.from==eo.to||(no<1?eo.from>=to:eo.from>to)||(no>-1?eo.to<=to:eo.to0?uo.length:-1;to!=go;to+=no){let mo=uo[to],yo=ho[to]+lo.from;if(checkSide(so,io,yo,yo+mo.length)){if(mo instanceof TreeBuffer){if(ao&IterMode.ExcludeBuffers)continue;let So=mo.findChild(0,mo.buffer.length,no,io-yo,so);if(So>-1)return new BufferNode(new BufferContext(lo,mo,to,yo),null,So)}else if(ao&IterMode.IncludeAnonymous||!mo.type.isAnonymous||hasChild(mo)){let So;if(!(ao&IterMode.IgnoreMounts)&&(So=MountedTree.get(mo))&&!So.overlay)return new TreeNode(So.tree,yo,to,lo);let _o=new TreeNode(mo,yo,to,lo);return ao&IterMode.IncludeAnonymous||!_o.type.isAnonymous?_o:_o.nextChild(no<0?mo.children.length-1:0,no,io,so)}}}if(ao&IterMode.IncludeAnonymous||!lo.type.isAnonymous||(lo.index>=0?to=lo.index+no:to=no<0?-1:lo._parent._tree.children.length,lo=lo._parent,!lo))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(to){return this.nextChild(0,1,to,2)}childBefore(to){return this.nextChild(this._tree.children.length-1,-1,to,-2)}enter(to,no,io=0){let so;if(!(io&IterMode.IgnoreOverlays)&&(so=MountedTree.get(this._tree))&&so.overlay){let ao=to-this.from;for(let{from:lo,to:uo}of so.overlay)if((no>0?lo<=ao:lo=ao:uo>ao))return new TreeNode(so.tree,so.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,to,no,io)}nextSignificantParent(){let to=this;for(;to.type.isAnonymous&&to._parent;)to=to._parent;return to}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function getChildren(eo,to,no,io){let so=eo.cursor(),ao=[];if(!so.firstChild())return ao;if(no!=null){for(let lo=!1;!lo;)if(lo=so.type.is(no),!so.nextSibling())return ao}for(;;){if(io!=null&&so.type.is(io))return ao;if(so.type.is(to)&&ao.push(so.node),!so.nextSibling())return io==null?ao:[]}}function matchNodeContext(eo,to,no=to.length-1){for(let io=eo.parent;no>=0;io=io.parent){if(!io)return!1;if(!io.type.isAnonymous){if(to[no]&&to[no]!=io.name)return!1;no--}}return!0}class BufferContext{constructor(to,no,io,so){this.parent=to,this.buffer=no,this.index=io,this.start=so}}class BufferNode extends BaseNode{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(to,no,io){super(),this.context=to,this._parent=no,this.index=io,this.type=to.buffer.set.types[to.buffer.buffer[io]]}child(to,no,io){let{buffer:so}=this.context,ao=so.findChild(this.index+4,so.buffer[this.index+3],to,no-this.context.start,io);return ao<0?null:new BufferNode(this.context,this,ao)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(to){return this.child(1,to,2)}childBefore(to){return this.child(-1,to,-2)}enter(to,no,io=0){if(io&IterMode.ExcludeBuffers)return null;let{buffer:so}=this.context,ao=so.findChild(this.index+4,so.buffer[this.index+3],no>0?1:-1,to-this.context.start,no);return ao<0?null:new BufferNode(this.context,this,ao)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(to){return this._parent?null:this.context.parent.nextChild(this.context.index+to,to,0,4)}get nextSibling(){let{buffer:to}=this.context,no=to.buffer[this.index+3];return no<(this._parent?to.buffer[this._parent.index+3]:to.buffer.length)?new BufferNode(this.context,this._parent,no):this.externalSibling(1)}get prevSibling(){let{buffer:to}=this.context,no=this._parent?this._parent.index+4:0;return this.index==no?this.externalSibling(-1):new BufferNode(this.context,this._parent,to.findChild(no,this.index,-1,0,4))}get tree(){return null}toTree(){let to=[],no=[],{buffer:io}=this.context,so=this.index+4,ao=io.buffer[this.index+3];if(ao>so){let lo=io.buffer[this.index+1];to.push(io.slice(so,ao,lo)),no.push(0)}return new Tree(this.type,to,no,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function iterStack(eo){if(!eo.length)return null;let to=0,no=eo[0];for(let ao=1;aono.from||lo.to=to){let uo=new TreeNode(lo.tree,lo.overlay[0].from+ao.from,-1,ao);(so||(so=[io])).push(resolveNode(uo,to,no,!1))}}return so?iterStack(so):io}class TreeCursor{get name(){return this.type.name}constructor(to,no=0){if(this.mode=no,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,to instanceof TreeNode)this.yieldNode(to);else{this._tree=to.context.parent,this.buffer=to.context;for(let io=to._parent;io;io=io._parent)this.stack.unshift(io.index);this.bufferNode=to,this.yieldBuf(to.index)}}yieldNode(to){return to?(this._tree=to,this.type=to.type,this.from=to.from,this.to=to.to,!0):!1}yieldBuf(to,no){this.index=to;let{start:io,buffer:so}=this.buffer;return this.type=no||so.set.types[so.buffer[to]],this.from=io+so.buffer[to+1],this.to=io+so.buffer[to+2],!0}yield(to){return to?to instanceof TreeNode?(this.buffer=null,this.yieldNode(to)):(this.buffer=to.context,this.yieldBuf(to.index,to.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(to,no,io){if(!this.buffer)return this.yield(this._tree.nextChild(to<0?this._tree._tree.children.length-1:0,to,no,io,this.mode));let{buffer:so}=this.buffer,ao=so.findChild(this.index+4,so.buffer[this.index+3],to,no-this.buffer.start,io);return ao<0?!1:(this.stack.push(this.index),this.yieldBuf(ao))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(to){return this.enterChild(1,to,2)}childBefore(to){return this.enterChild(-1,to,-2)}enter(to,no,io=this.mode){return this.buffer?io&IterMode.ExcludeBuffers?!1:this.enterChild(1,to,no):this.yield(this._tree.enter(to,no,io))}parent(){if(!this.buffer)return this.yieldNode(this.mode&IterMode.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let to=this.mode&IterMode.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(to)}sibling(to){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+to,to,0,4,this.mode)):!1;let{buffer:no}=this.buffer,io=this.stack.length-1;if(to<0){let so=io<0?0:this.stack[io]+4;if(this.index!=so)return this.yieldBuf(no.findChild(so,this.index,-1,0,4))}else{let so=no.buffer[this.index+3];if(so<(io<0?no.buffer.length:no.buffer[this.stack[io]+3]))return this.yieldBuf(so)}return io<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+to,to,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(to){let no,io,{buffer:so}=this;if(so){if(to>0){if(this.index-1)for(let ao=no+to,lo=to<0?-1:io._tree.children.length;ao!=lo;ao+=to){let uo=io._tree.children[ao];if(this.mode&IterMode.IncludeAnonymous||uo instanceof TreeBuffer||!uo.type.isAnonymous||hasChild(uo))return!1}return!0}move(to,no){if(no&&this.enterChild(to,0,4))return!0;for(;;){if(this.sibling(to))return!0;if(this.atLastNode(to)||!this.parent())return!1}}next(to=!0){return this.move(1,to)}prev(to=!0){return this.move(-1,to)}moveTo(to,no=0){for(;(this.from==this.to||(no<1?this.from>=to:this.from>to)||(no>-1?this.to<=to:this.to=0;){for(let lo=to;lo;lo=lo._parent)if(lo.index==so){if(so==this.index)return lo;no=lo,io=ao+1;break e}so=this.stack[--ao]}for(let so=io;so=0;ao--){if(ao<0)return matchNodeContext(this.node,to,so);let lo=io[no.buffer[this.stack[ao]]];if(!lo.isAnonymous){if(to[so]&&to[so]!=lo.name)return!1;so--}}return!0}}function hasChild(eo){return eo.children.some(to=>to instanceof TreeBuffer||!to.type.isAnonymous||hasChild(to))}function buildTree$1(eo){var to;let{buffer:no,nodeSet:io,maxBufferLength:so=DefaultBufferLength,reused:ao=[],minRepeatType:lo=io.types.length}=eo,uo=Array.isArray(no)?new FlatBufferCursor(no,no.length):no,ho=io.types,go=0,mo=0;function yo(Bo,Po,Lo,Go,Do,Uo){let{id:Ho,start:Yo,end:qo,size:Jo}=uo,ps=mo;for(;Jo<0;)if(uo.next(),Jo==-1){let vs=ao[Ho];Lo.push(vs),Go.push(Yo-Bo);return}else if(Jo==-3){go=Ho;return}else if(Jo==-4){mo=Ho;return}else throw new RangeError(`Unrecognized record size: ${Jo}`);let Qo=ho[Ho],hs,gs,ys=Yo-Bo;if(qo-Yo<=so&&(gs=$o(uo.pos-Po,Do))){let vs=new Uint16Array(gs.size-gs.skip),ks=uo.pos-gs.size,Os=vs.length;for(;uo.pos>ks;)Os=Ro(gs.start,vs,Os);hs=new TreeBuffer(vs,qo-gs.start,io),ys=gs.start-Bo}else{let vs=uo.pos-Jo;uo.next();let ks=[],Os=[],Ts=Ho>=lo?Ho:-1,Xs=0,Ws=qo;for(;uo.pos>vs;)Ts>=0&&uo.id==Ts&&uo.size>=0?(uo.end<=Ws-so&&(ko(ks,Os,Yo,Xs,uo.end,Ws,Ts,ps),Xs=ks.length,Ws=uo.end),uo.next()):Uo>2500?So(Yo,vs,ks,Os):yo(Yo,vs,ks,Os,Ts,Uo+1);if(Ts>=0&&Xs>0&&Xs-1&&Xs>0){let Ps=_o(Qo);hs=balanceRange(Qo,ks,Os,0,ks.length,0,qo-Yo,Ps,Ps)}else hs=Co(Qo,ks,Os,qo-Yo,ps-qo)}Lo.push(hs),Go.push(ys)}function So(Bo,Po,Lo,Go){let Do=[],Uo=0,Ho=-1;for(;uo.pos>Po;){let{id:Yo,start:qo,end:Jo,size:ps}=uo;if(ps>4)uo.next();else{if(Ho>-1&&qo=0;Jo-=3)Yo[ps++]=Do[Jo],Yo[ps++]=Do[Jo+1]-qo,Yo[ps++]=Do[Jo+2]-qo,Yo[ps++]=ps;Lo.push(new TreeBuffer(Yo,Do[2]-qo,io)),Go.push(qo-Bo)}}function _o(Bo){return(Po,Lo,Go)=>{let Do=0,Uo=Po.length-1,Ho,Yo;if(Uo>=0&&(Ho=Po[Uo])instanceof Tree){if(!Uo&&Ho.type==Bo&&Ho.length==Go)return Ho;(Yo=Ho.prop(NodeProp.lookAhead))&&(Do=Lo[Uo]+Ho.length+Yo)}return Co(Bo,Po,Lo,Go,Do)}}function ko(Bo,Po,Lo,Go,Do,Uo,Ho,Yo){let qo=[],Jo=[];for(;Bo.length>Go;)qo.push(Bo.pop()),Jo.push(Po.pop()+Lo-Do);Bo.push(Co(io.types[Ho],qo,Jo,Uo-Do,Yo-Uo)),Po.push(Do-Lo)}function Co(Bo,Po,Lo,Go,Do=0,Uo){if(go){let Ho=[NodeProp.contextHash,go];Uo=Uo?[Ho].concat(Uo):[Ho]}if(Do>25){let Ho=[NodeProp.lookAhead,Do];Uo=Uo?[Ho].concat(Uo):[Ho]}return new Tree(Bo,Po,Lo,Go,Uo)}function $o(Bo,Po){let Lo=uo.fork(),Go=0,Do=0,Uo=0,Ho=Lo.end-so,Yo={size:0,start:0,skip:0};e:for(let qo=Lo.pos-Bo;Lo.pos>qo;){let Jo=Lo.size;if(Lo.id==Po&&Jo>=0){Yo.size=Go,Yo.start=Do,Yo.skip=Uo,Uo+=4,Go+=4,Lo.next();continue}let ps=Lo.pos-Jo;if(Jo<0||ps=lo?4:0,hs=Lo.start;for(Lo.next();Lo.pos>ps;){if(Lo.size<0)if(Lo.size==-3)Qo+=4;else break e;else Lo.id>=lo&&(Qo+=4);Lo.next()}Do=hs,Go+=Jo,Uo+=Qo}return(Po<0||Go==Bo)&&(Yo.size=Go,Yo.start=Do,Yo.skip=Uo),Yo.size>4?Yo:void 0}function Ro(Bo,Po,Lo){let{id:Go,start:Do,end:Uo,size:Ho}=uo;if(uo.next(),Ho>=0&&Go4){let qo=uo.pos-(Ho-4);for(;uo.pos>qo;)Lo=Ro(Bo,Po,Lo)}Po[--Lo]=Yo,Po[--Lo]=Uo-Bo,Po[--Lo]=Do-Bo,Po[--Lo]=Go}else Ho==-3?go=Go:Ho==-4&&(mo=Go);return Lo}let Oo=[],No=[];for(;uo.pos>0;)yo(eo.start||0,eo.bufferStart||0,Oo,No,-1,0);let Mo=(to=eo.length)!==null&&to!==void 0?to:Oo.length?No[0]+Oo[0].length:0;return new Tree(ho[eo.topID],Oo.reverse(),No.reverse(),Mo)}const nodeSizeCache=new WeakMap;function nodeSize(eo,to){if(!eo.isAnonymous||to instanceof TreeBuffer||to.type!=eo)return 1;let no=nodeSizeCache.get(to);if(no==null){no=1;for(let io of to.children){if(io.type!=eo||!(io instanceof Tree)){no=1;break}no+=nodeSize(eo,io)}nodeSizeCache.set(to,no)}return no}function balanceRange(eo,to,no,io,so,ao,lo,uo,ho){let go=0;for(let ko=io;ko=mo)break;Po+=Lo}if(No==Mo+1){if(Po>mo){let Lo=ko[Mo];_o(Lo.children,Lo.positions,0,Lo.children.length,Co[Mo]+Oo);continue}yo.push(ko[Mo])}else{let Lo=Co[No-1]+ko[No-1].length-Bo;yo.push(balanceRange(eo,ko,Co,Mo,No,Bo,Lo,null,ho))}So.push(Bo+Oo-ao)}}return _o(to,no,io,so,0),(uo||ho)(yo,So,lo)}class NodeWeakMap{constructor(){this.map=new WeakMap}setBuffer(to,no,io){let so=this.map.get(to);so||this.map.set(to,so=new Map),so.set(no,io)}getBuffer(to,no){let io=this.map.get(to);return io&&io.get(no)}set(to,no){to instanceof BufferNode?this.setBuffer(to.context.buffer,to.index,no):to instanceof TreeNode&&this.map.set(to.tree,no)}get(to){return to instanceof BufferNode?this.getBuffer(to.context.buffer,to.index):to instanceof TreeNode?this.map.get(to.tree):void 0}cursorSet(to,no){to.buffer?this.setBuffer(to.buffer.buffer,to.index,no):this.map.set(to.tree,no)}cursorGet(to){return to.buffer?this.getBuffer(to.buffer.buffer,to.index):this.map.get(to.tree)}}class TreeFragment{constructor(to,no,io,so,ao=!1,lo=!1){this.from=to,this.to=no,this.tree=io,this.offset=so,this.open=(ao?1:0)|(lo?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(to,no=[],io=!1){let so=[new TreeFragment(0,to.length,to,0,!1,io)];for(let ao of no)ao.to>to.length&&so.push(ao);return so}static applyChanges(to,no,io=128){if(!no.length)return to;let so=[],ao=1,lo=to.length?to[0]:null;for(let uo=0,ho=0,go=0;;uo++){let mo=uo=io)for(;lo&&lo.from=So.from||yo<=So.to||go){let _o=Math.max(So.from,ho)-go,ko=Math.min(So.to,yo)-go;So=_o>=ko?null:new TreeFragment(_o,ko,So.tree,So.offset+go,uo>0,!!mo)}if(So&&so.push(So),lo.to>yo)break;lo=aonew Range$1(so.from,so.to)):[new Range$1(0,0)]:[new Range$1(0,to.length)],this.createParse(to,no||[],io)}parse(to,no,io){let so=this.startParse(to,no,io);for(;;){let ao=so.advance();if(ao)return ao}}};class StringInput{constructor(to){this.string=to}get length(){return this.string.length}chunk(to){return this.string.slice(to)}get lineChunks(){return!1}read(to,no){return this.string.slice(to,no)}}new NodeProp({perNode:!0});let nextTagID=0;class Tag{constructor(to,no,io){this.set=to,this.base=no,this.modified=io,this.id=nextTagID++}static define(to){if(to!=null&&to.base)throw new Error("Can not derive from a modified tag");let no=new Tag([],null,[]);if(no.set.push(no),to)for(let io of to.set)no.set.push(io);return no}static defineModifier(){let to=new Modifier;return no=>no.modified.indexOf(to)>-1?no:Modifier.get(no.base||no,no.modified.concat(to).sort((io,so)=>io.id-so.id))}}let nextModifierID=0;class Modifier{constructor(){this.instances=[],this.id=nextModifierID++}static get(to,no){if(!no.length)return to;let io=no[0].instances.find(uo=>uo.base==to&&sameArray(no,uo.modified));if(io)return io;let so=[],ao=new Tag(so,to,no);for(let uo of no)uo.instances.push(ao);let lo=powerSet(no);for(let uo of to.set)if(!uo.modified.length)for(let ho of lo)so.push(Modifier.get(uo,ho));return ao}}function sameArray(eo,to){return eo.length==to.length&&eo.every((no,io)=>no==to[io])}function powerSet(eo){let to=[[]];for(let no=0;noio.length-no.length)}function styleTags(eo){let to=Object.create(null);for(let no in eo){let io=eo[no];Array.isArray(io)||(io=[io]);for(let so of no.split(" "))if(so){let ao=[],lo=2,uo=so;for(let yo=0;;){if(uo=="..."&&yo>0&&yo+3==so.length){lo=1;break}let So=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(uo);if(!So)throw new RangeError("Invalid path: "+so);if(ao.push(So[0]=="*"?"":So[0][0]=='"'?JSON.parse(So[0]):So[0]),yo+=So[0].length,yo==so.length)break;let _o=so[yo++];if(yo==so.length&&_o=="!"){lo=0;break}if(_o!="/")throw new RangeError("Invalid path: "+so);uo=so.slice(yo)}let ho=ao.length-1,go=ao[ho];if(!go)throw new RangeError("Invalid path: "+so);let mo=new Rule(io,lo,ho>0?ao.slice(0,ho):null);to[go]=mo.sort(to[go])}}return ruleNodeProp.add(to)}const ruleNodeProp=new NodeProp;class Rule{constructor(to,no,io,so){this.tags=to,this.mode=no,this.context=io,this.next=so}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(to){return!to||to.depth{let lo=so;for(let uo of ao)for(let ho of uo.set){let go=no[ho.id];if(go){lo=lo?lo+" "+go:go;break}}return lo},scope:io}}function highlightTags(eo,to){let no=null;for(let io of eo){let so=io.style(to);so&&(no=no?no+" "+so:so)}return no}function highlightTree(eo,to,no,io=0,so=eo.length){let ao=new HighlightBuilder(io,Array.isArray(to)?to:[to],no);ao.highlightRange(eo.cursor(),io,so,"",ao.highlighters),ao.flush(so)}class HighlightBuilder{constructor(to,no,io){this.at=to,this.highlighters=no,this.span=io,this.class=""}startSpan(to,no){no!=this.class&&(this.flush(to),to>this.at&&(this.at=to),this.class=no)}flush(to){to>this.at&&this.class&&this.span(this.at,to,this.class)}highlightRange(to,no,io,so,ao){let{type:lo,from:uo,to:ho}=to;if(uo>=io||ho<=no)return;lo.isTop&&(ao=this.highlighters.filter(_o=>!_o.scope||_o.scope(lo)));let go=so,mo=getStyleTags(to)||Rule.empty,yo=highlightTags(ao,mo.tags);if(yo&&(go&&(go+=" "),go+=yo,mo.mode==1&&(so+=(so?" ":"")+yo)),this.startSpan(Math.max(no,uo),go),mo.opaque)return;let So=to.tree&&to.tree.prop(NodeProp.mounted);if(So&&So.overlay){let _o=to.node.enter(So.overlay[0].from+uo,1),ko=this.highlighters.filter($o=>!$o.scope||$o.scope(So.tree.type)),Co=to.firstChild();for(let $o=0,Ro=uo;;$o++){let Oo=$o=No||!to.nextSibling())););if(!Oo||No>io)break;Ro=Oo.to+uo,Ro>no&&(this.highlightRange(_o.cursor(),Math.max(no,Oo.from+uo),Math.min(io,Ro),"",ko),this.startSpan(Math.min(io,Ro),go))}Co&&to.parent()}else if(to.firstChild()){So&&(so="");do if(!(to.to<=no)){if(to.from>=io)break;this.highlightRange(to,no,io,so,ao),this.startSpan(Math.min(io,to.to),go)}while(to.nextSibling());to.parent()}}}function getStyleTags(eo){let to=eo.type.prop(ruleNodeProp);for(;to&&to.context&&!eo.matchContext(to.context);)to=to.next;return to||null}const t=Tag.define,comment=t(),name=t(),typeName=t(name),propertyName=t(name),literal=t(),string$3=t(literal),number$2=t(literal),content$2=t(),heading=t(content$2),keyword=t(),operator=t(),punctuation=t(),bracket=t(punctuation),meta$1=t(),tags$1={comment,lineComment:t(comment),blockComment:t(comment),docComment:t(comment),name,variableName:t(name),typeName,tagName:t(typeName),propertyName,attributeName:t(propertyName),className:t(name),labelName:t(name),namespace:t(name),macroName:t(name),literal,string:string$3,docString:t(string$3),character:t(string$3),attributeValue:t(string$3),number:number$2,integer:t(number$2),float:t(number$2),bool:t(literal),regexp:t(literal),escape:t(literal),color:t(literal),url:t(literal),keyword,self:t(keyword),null:t(keyword),atom:t(keyword),unit:t(keyword),modifier:t(keyword),operatorKeyword:t(keyword),controlKeyword:t(keyword),definitionKeyword:t(keyword),moduleKeyword:t(keyword),operator,derefOperator:t(operator),arithmeticOperator:t(operator),logicOperator:t(operator),bitwiseOperator:t(operator),compareOperator:t(operator),updateOperator:t(operator),definitionOperator:t(operator),typeOperator:t(operator),controlOperator:t(operator),punctuation,separator:t(punctuation),bracket,angleBracket:t(bracket),squareBracket:t(bracket),paren:t(bracket),brace:t(bracket),content:content$2,heading,heading1:t(heading),heading2:t(heading),heading3:t(heading),heading4:t(heading),heading5:t(heading),heading6:t(heading),contentSeparator:t(content$2),list:t(content$2),quote:t(content$2),emphasis:t(content$2),strong:t(content$2),link:t(content$2),monospace:t(content$2),strikethrough:t(content$2),inserted:t(),deleted:t(),changed:t(),invalid:t(),meta:meta$1,documentMeta:t(meta$1),annotation:t(meta$1),processingInstruction:t(meta$1),definition:Tag.defineModifier(),constant:Tag.defineModifier(),function:Tag.defineModifier(),standard:Tag.defineModifier(),local:Tag.defineModifier(),special:Tag.defineModifier()};tagHighlighter([{tag:tags$1.link,class:"tok-link"},{tag:tags$1.heading,class:"tok-heading"},{tag:tags$1.emphasis,class:"tok-emphasis"},{tag:tags$1.strong,class:"tok-strong"},{tag:tags$1.keyword,class:"tok-keyword"},{tag:tags$1.atom,class:"tok-atom"},{tag:tags$1.bool,class:"tok-bool"},{tag:tags$1.url,class:"tok-url"},{tag:tags$1.labelName,class:"tok-labelName"},{tag:tags$1.inserted,class:"tok-inserted"},{tag:tags$1.deleted,class:"tok-deleted"},{tag:tags$1.literal,class:"tok-literal"},{tag:tags$1.string,class:"tok-string"},{tag:tags$1.number,class:"tok-number"},{tag:[tags$1.regexp,tags$1.escape,tags$1.special(tags$1.string)],class:"tok-string2"},{tag:tags$1.variableName,class:"tok-variableName"},{tag:tags$1.local(tags$1.variableName),class:"tok-variableName tok-local"},{tag:tags$1.definition(tags$1.variableName),class:"tok-variableName tok-definition"},{tag:tags$1.special(tags$1.variableName),class:"tok-variableName2"},{tag:tags$1.definition(tags$1.propertyName),class:"tok-propertyName tok-definition"},{tag:tags$1.typeName,class:"tok-typeName"},{tag:tags$1.namespace,class:"tok-namespace"},{tag:tags$1.className,class:"tok-className"},{tag:tags$1.macroName,class:"tok-macroName"},{tag:tags$1.propertyName,class:"tok-propertyName"},{tag:tags$1.operator,class:"tok-operator"},{tag:tags$1.comment,class:"tok-comment"},{tag:tags$1.meta,class:"tok-meta"},{tag:tags$1.invalid,class:"tok-invalid"},{tag:tags$1.punctuation,class:"tok-punctuation"}]);var _a$1;const languageDataProp=new NodeProp;function defineLanguageFacet(eo){return Facet.define({combine:eo?to=>to.concat(eo):void 0})}const sublanguageProp=new NodeProp;class Language{constructor(to,no,io=[],so=""){this.data=to,this.name=so,EditorState.prototype.hasOwnProperty("tree")||Object.defineProperty(EditorState.prototype,"tree",{get(){return syntaxTree(this)}}),this.parser=no,this.extension=[language.of(this),EditorState.languageData.of((ao,lo,uo)=>{let ho=topNodeAt(ao,lo,uo),go=ho.type.prop(languageDataProp);if(!go)return[];let mo=ao.facet(go),yo=ho.type.prop(sublanguageProp);if(yo){let So=ho.resolve(lo-ho.from,uo);for(let _o of yo)if(_o.test(So,ao)){let ko=ao.facet(_o.facet);return _o.type=="replace"?ko:ko.concat(mo)}}return mo})].concat(io)}isActiveAt(to,no,io=-1){return topNodeAt(to,no,io).type.prop(languageDataProp)==this.data}findRegions(to){let no=to.facet(language);if((no==null?void 0:no.data)==this.data)return[{from:0,to:to.doc.length}];if(!no||!no.allowsNesting)return[];let io=[],so=(ao,lo)=>{if(ao.prop(languageDataProp)==this.data){io.push({from:lo,to:lo+ao.length});return}let uo=ao.prop(NodeProp.mounted);if(uo){if(uo.tree.prop(languageDataProp)==this.data){if(uo.overlay)for(let ho of uo.overlay)io.push({from:ho.from+lo,to:ho.to+lo});else io.push({from:lo,to:lo+ao.length});return}else if(uo.overlay){let ho=io.length;if(so(uo.tree,uo.overlay[0].from+lo),io.length>ho)return}}for(let ho=0;hoio.isTop?no:void 0)]}),to.name)}configure(to,no){return new LRLanguage(this.data,this.parser.configure(to),no||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function syntaxTree(eo){let to=eo.field(Language.state,!1);return to?to.tree:Tree.empty}class DocInput{constructor(to){this.doc=to,this.cursorPos=0,this.string="",this.cursor=to.iter()}get length(){return this.doc.length}syncTo(to){return this.string=this.cursor.next(to-this.cursorPos).value,this.cursorPos=to+this.string.length,this.cursorPos-this.string.length}chunk(to){return this.syncTo(to),this.string}get lineChunks(){return!0}read(to,no){let io=this.cursorPos-this.string.length;return to=this.cursorPos?this.doc.sliceString(to,no):this.string.slice(to-io,no-io)}}let currentContext=null;class ParseContext{constructor(to,no,io=[],so,ao,lo,uo,ho){this.parser=to,this.state=no,this.fragments=io,this.tree=so,this.treeLen=ao,this.viewport=lo,this.skipped=uo,this.scheduleOn=ho,this.parse=null,this.tempSkipped=[]}static create(to,no,io){return new ParseContext(to,no,[],Tree.empty,0,io,[],null)}startParse(){return this.parser.startParse(new DocInput(this.state.doc),this.fragments)}work(to,no){return no!=null&&no>=this.state.doc.length&&(no=void 0),this.tree!=Tree.empty&&this.isDone(no??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var io;if(typeof to=="number"){let so=Date.now()+to;to=()=>Date.now()>so}for(this.parse||(this.parse=this.startParse()),no!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>no)&&no=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>to)&&this.parse.stopAt(to),this.withContext(()=>{for(;!(no=this.parse.advance()););}),this.treeLen=to,this.tree=no,this.fragments=this.withoutTempSkipped(TreeFragment.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(to){let no=currentContext;currentContext=this;try{return to()}finally{currentContext=no}}withoutTempSkipped(to){for(let no;no=this.tempSkipped.pop();)to=cutFragments(to,no.from,no.to);return to}changes(to,no){let{fragments:io,tree:so,treeLen:ao,viewport:lo,skipped:uo}=this;if(this.takeTree(),!to.empty){let ho=[];if(to.iterChangedRanges((go,mo,yo,So)=>ho.push({fromA:go,toA:mo,fromB:yo,toB:So})),io=TreeFragment.applyChanges(io,ho),so=Tree.empty,ao=0,lo={from:to.mapPos(lo.from,-1),to:to.mapPos(lo.to,1)},this.skipped.length){uo=[];for(let go of this.skipped){let mo=to.mapPos(go.from,1),yo=to.mapPos(go.to,-1);moto.from&&(this.fragments=cutFragments(this.fragments,so,ao),this.skipped.splice(io--,1))}return this.skipped.length>=no?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(to,no){this.skipped.push({from:to,to:no})}static getSkippingParser(to){return new class extends Parser$1{createParse(no,io,so){let ao=so[0].from,lo=so[so.length-1].to;return{parsedPos:ao,advance(){let ho=currentContext;if(ho){for(let go of so)ho.tempSkipped.push(go);to&&(ho.scheduleOn=ho.scheduleOn?Promise.all([ho.scheduleOn,to]):to)}return this.parsedPos=lo,new Tree(NodeType.none,[],[],lo-ao)},stoppedAt:null,stopAt(){}}}}}isDone(to){to=Math.min(to,this.state.doc.length);let no=this.fragments;return this.treeLen>=to&&no.length&&no[0].from==0&&no[0].to>=to}static get(){return currentContext}}function cutFragments(eo,to,no){return TreeFragment.applyChanges(eo,[{fromA:to,toA:no,fromB:to,toB:no}])}class LanguageState{constructor(to){this.context=to,this.tree=to.tree}apply(to){if(!to.docChanged&&this.tree==this.context.tree)return this;let no=this.context.changes(to.changes,to.state),io=this.context.treeLen==to.startState.doc.length?void 0:Math.max(to.changes.mapPos(this.context.treeLen),no.viewport.to);return no.work(20,io)||no.takeTree(),new LanguageState(no)}static init(to){let no=Math.min(3e3,to.doc.length),io=ParseContext.create(to.facet(language).parser,to,{from:0,to:no});return io.work(20,no)||io.takeTree(),new LanguageState(io)}}Language.state=StateField.define({create:LanguageState.init,update(eo,to){for(let no of to.effects)if(no.is(Language.setState))return no.value;return to.startState.facet(language)!=to.state.facet(language)?LanguageState.init(to.state):eo.apply(to)}});let requestIdle=eo=>{let to=setTimeout(()=>eo(),500);return()=>clearTimeout(to)};typeof requestIdleCallback<"u"&&(requestIdle=eo=>{let to=-1,no=setTimeout(()=>{to=requestIdleCallback(eo,{timeout:400})},100);return()=>to<0?clearTimeout(no):cancelIdleCallback(to)});const isInputPending=typeof navigator<"u"&&(!((_a$1=navigator.scheduling)===null||_a$1===void 0)&&_a$1.isInputPending)?()=>navigator.scheduling.isInputPending():null,parseWorker=ViewPlugin.fromClass(class{constructor(to){this.view=to,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(to){let no=this.view.state.field(Language.state).context;(no.updateViewport(to.view.viewport)||this.view.viewport.to>no.treeLen)&&this.scheduleWork(),(to.docChanged||to.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(no)}scheduleWork(){if(this.working)return;let{state:to}=this.view,no=to.field(Language.state);(no.tree!=no.context.tree||!no.context.isDone(to.doc.length))&&(this.working=requestIdle(this.work))}work(to){this.working=null;let no=Date.now();if(this.chunkEndso+1e3,ho=ao.context.work(()=>isInputPending&&isInputPending()||Date.now()>lo,so+(uo?0:1e5));this.chunkBudget-=Date.now()-no,(ho||this.chunkBudget<=0)&&(ao.context.takeTree(),this.view.dispatch({effects:Language.setState.of(new LanguageState(ao.context))})),this.chunkBudget>0&&!(ho&&!uo)&&this.scheduleWork(),this.checkAsyncSchedule(ao.context)}checkAsyncSchedule(to){to.scheduleOn&&(this.workScheduled++,to.scheduleOn.then(()=>this.scheduleWork()).catch(no=>logException(this.view.state,no)).then(()=>this.workScheduled--),to.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),language=Facet.define({combine(eo){return eo.length?eo[0]:null},enables:eo=>[Language.state,parseWorker,EditorView.contentAttributes.compute([eo],to=>{let no=to.facet(eo);return no&&no.name?{"data-language":no.name}:{}})]});class LanguageSupport{constructor(to,no=[]){this.language=to,this.support=no,this.extension=[to,no]}}const indentService=Facet.define(),indentUnit=Facet.define({combine:eo=>{if(!eo.length)return" ";let to=eo[0];if(!to||/\S/.test(to)||Array.from(to).some(no=>no!=to[0]))throw new Error("Invalid indent unit: "+JSON.stringify(eo[0]));return to}});function getIndentUnit(eo){let to=eo.facet(indentUnit);return to.charCodeAt(0)==9?eo.tabSize*to.length:to.length}function indentString(eo,to){let no="",io=eo.tabSize,so=eo.facet(indentUnit)[0];if(so==" "){for(;to>=io;)no+=" ",to-=io;so=" "}for(let ao=0;ao=to?syntaxIndentation(eo,no,to):null}class IndentContext{constructor(to,no={}){this.state=to,this.options=no,this.unit=getIndentUnit(to)}lineAt(to,no=1){let io=this.state.doc.lineAt(to),{simulateBreak:so,simulateDoubleBreak:ao}=this.options;return so!=null&&so>=io.from&&so<=io.to?ao&&so==to?{text:"",from:to}:(no<0?so-1&&(ao+=lo-this.countColumn(io,io.search(/\S|$/))),ao}countColumn(to,no=to.length){return countColumn(to,this.state.tabSize,no)}lineIndent(to,no=1){let{text:io,from:so}=this.lineAt(to,no),ao=this.options.overrideIndentation;if(ao){let lo=ao(so);if(lo>-1)return lo}return this.countColumn(io,io.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const indentNodeProp=new NodeProp;function syntaxIndentation(eo,to,no){let io=to.resolveStack(no),so=io.node.enterUnfinishedNodesBefore(no);if(so!=io.node){let ao=[];for(let lo=so;lo!=io.node;lo=lo.parent)ao.push(lo);for(let lo=ao.length-1;lo>=0;lo--)io={node:ao[lo],next:io}}return indentFor(io,eo,no)}function indentFor(eo,to,no){for(let io=eo;io;io=io.next){let so=indentStrategy(io.node);if(so)return so(TreeIndentContext.create(to,no,io))}return 0}function ignoreClosed(eo){return eo.pos==eo.options.simulateBreak&&eo.options.simulateDoubleBreak}function indentStrategy(eo){let to=eo.type.prop(indentNodeProp);if(to)return to;let no=eo.firstChild,io;if(no&&(io=no.type.prop(NodeProp.closedBy))){let so=eo.lastChild,ao=so&&io.indexOf(so.name)>-1;return lo=>delimitedStrategy(lo,!0,1,void 0,ao&&!ignoreClosed(lo)?so.from:void 0)}return eo.parent==null?topIndent$1:null}function topIndent$1(){return 0}class TreeIndentContext extends IndentContext{constructor(to,no,io){super(to.state,to.options),this.base=to,this.pos=no,this.context=io}get node(){return this.context.node}static create(to,no,io){return new TreeIndentContext(to,no,io)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(to){let no=this.state.doc.lineAt(to.from);for(;;){let io=to.resolve(no.from);for(;io.parent&&io.parent.from==io.from;)io=io.parent;if(isParent(io,to))break;no=this.state.doc.lineAt(io.from)}return this.lineIndent(no.from)}continue(){return indentFor(this.context.next,this.base,this.pos)}}function isParent(eo,to){for(let no=to;no;no=no.parent)if(eo==no)return!0;return!1}function bracketedAligned(eo){let to=eo.node,no=to.childAfter(to.from),io=to.lastChild;if(!no)return null;let so=eo.options.simulateBreak,ao=eo.state.doc.lineAt(no.from),lo=so==null||so<=ao.from?ao.to:Math.min(ao.to,so);for(let uo=no.to;;){let ho=to.childAfter(uo);if(!ho||ho==io)return null;if(!ho.type.isSkipped)return ho.fromdelimitedStrategy(io,to,no,eo)}function delimitedStrategy(eo,to,no,io,so){let ao=eo.textAfter,lo=ao.match(/^\s*/)[0].length,uo=io&&ao.slice(lo,lo+io.length)==io||so==eo.pos+lo,ho=to?bracketedAligned(eo):null;return ho?uo?eo.column(ho.from):eo.column(ho.to):eo.baseIndent+(uo?0:eo.unit*no)}const DontIndentBeyond=200;function indentOnInput(){return EditorState.transactionFilter.of(eo=>{if(!eo.docChanged||!eo.isUserEvent("input.type")&&!eo.isUserEvent("input.complete"))return eo;let to=eo.startState.languageDataAt("indentOnInput",eo.startState.selection.main.head);if(!to.length)return eo;let no=eo.newDoc,{head:io}=eo.newSelection.main,so=no.lineAt(io);if(io>so.from+DontIndentBeyond)return eo;let ao=no.sliceString(so.from,io);if(!to.some(go=>go.test(ao)))return eo;let{state:lo}=eo,uo=-1,ho=[];for(let{head:go}of lo.selection.ranges){let mo=lo.doc.lineAt(go);if(mo.from==uo)continue;uo=mo.from;let yo=getIndentation(lo,mo.from);if(yo==null)continue;let So=/^\s*/.exec(mo.text)[0],_o=indentString(lo,yo);So!=_o&&ho.push({from:mo.from,to:mo.from+So.length,insert:_o})}return ho.length?[eo,{changes:ho,sequential:!0}]:eo})}const foldService=Facet.define(),foldNodeProp=new NodeProp;function foldInside(eo){let to=eo.firstChild,no=eo.lastChild;return to&&to.tono)continue;if(ao&&uo.from=to&&go.to>no&&(ao=go)}}return ao}function isUnfinished(eo){let to=eo.lastChild;return to&&to.to==eo.to&&to.type.isError}function foldable(eo,to,no){for(let io of eo.facet(foldService)){let so=io(eo,to,no);if(so)return so}return syntaxFolding(eo,to,no)}function mapRange(eo,to){let no=to.mapPos(eo.from,1),io=to.mapPos(eo.to,-1);return no>=io?void 0:{from:no,to:io}}const foldEffect=StateEffect.define({map:mapRange}),unfoldEffect=StateEffect.define({map:mapRange});function selectedLines(eo){let to=[];for(let{head:no}of eo.state.selection.ranges)to.some(io=>io.from<=no&&io.to>=no)||to.push(eo.lineBlockAt(no));return to}const foldState=StateField.define({create(){return Decoration.none},update(eo,to){eo=eo.map(to.changes);for(let no of to.effects)if(no.is(foldEffect)&&!foldExists(eo,no.value.from,no.value.to)){let{preparePlaceholder:io}=to.state.facet(foldConfig),so=io?Decoration.replace({widget:new PreparedFoldWidget(io(to.state,no.value))}):foldWidget;eo=eo.update({add:[so.range(no.value.from,no.value.to)]})}else no.is(unfoldEffect)&&(eo=eo.update({filter:(io,so)=>no.value.from!=io||no.value.to!=so,filterFrom:no.value.from,filterTo:no.value.to}));if(to.selection){let no=!1,{head:io}=to.selection.main;eo.between(io,io,(so,ao)=>{soio&&(no=!0)}),no&&(eo=eo.update({filterFrom:io,filterTo:io,filter:(so,ao)=>ao<=io||so>=io}))}return eo},provide:eo=>EditorView.decorations.from(eo),toJSON(eo,to){let no=[];return eo.between(0,to.doc.length,(io,so)=>{no.push(io,so)}),no},fromJSON(eo){if(!Array.isArray(eo)||eo.length%2)throw new RangeError("Invalid JSON for fold state");let to=[];for(let no=0;no{(!so||so.from>ao)&&(so={from:ao,to:lo})}),so}function foldExists(eo,to,no){let io=!1;return eo.between(to,to,(so,ao)=>{so==to&&ao==no&&(io=!0)}),io}function maybeEnable(eo,to){return eo.field(foldState,!1)?to:to.concat(StateEffect.appendConfig.of(codeFolding()))}const foldCode=eo=>{for(let to of selectedLines(eo)){let no=foldable(eo.state,to.from,to.to);if(no)return eo.dispatch({effects:maybeEnable(eo.state,[foldEffect.of(no),announceFold(eo,no)])}),!0}return!1},unfoldCode=eo=>{if(!eo.state.field(foldState,!1))return!1;let to=[];for(let no of selectedLines(eo)){let io=findFold(eo.state,no.from,no.to);io&&to.push(unfoldEffect.of(io),announceFold(eo,io,!1))}return to.length&&eo.dispatch({effects:to}),to.length>0};function announceFold(eo,to,no=!0){let io=eo.state.doc.lineAt(to.from).number,so=eo.state.doc.lineAt(to.to).number;return EditorView.announce.of(`${eo.state.phrase(no?"Folded lines":"Unfolded lines")} ${io} ${eo.state.phrase("to")} ${so}.`)}const foldAll=eo=>{let{state:to}=eo,no=[];for(let io=0;io{let to=eo.state.field(foldState,!1);if(!to||!to.size)return!1;let no=[];return to.between(0,eo.state.doc.length,(io,so)=>{no.push(unfoldEffect.of({from:io,to:so}))}),eo.dispatch({effects:no}),!0},foldKeymap=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:foldCode},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:unfoldCode},{key:"Ctrl-Alt-[",run:foldAll},{key:"Ctrl-Alt-]",run:unfoldAll}],defaultConfig={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},foldConfig=Facet.define({combine(eo){return combineConfig(eo,defaultConfig)}});function codeFolding(eo){let to=[foldState,baseTheme$1$1];return eo&&to.push(foldConfig.of(eo)),to}function widgetToDOM(eo,to){let{state:no}=eo,io=no.facet(foldConfig),so=lo=>{let uo=eo.lineBlockAt(eo.posAtDOM(lo.target)),ho=findFold(eo.state,uo.from,uo.to);ho&&eo.dispatch({effects:unfoldEffect.of(ho)}),lo.preventDefault()};if(io.placeholderDOM)return io.placeholderDOM(eo,so,to);let ao=document.createElement("span");return ao.textContent=io.placeholderText,ao.setAttribute("aria-label",no.phrase("folded code")),ao.title=no.phrase("unfold"),ao.className="cm-foldPlaceholder",ao.onclick=so,ao}const foldWidget=Decoration.replace({widget:new class extends WidgetType{toDOM(eo){return widgetToDOM(eo,null)}}});class PreparedFoldWidget extends WidgetType{constructor(to){super(),this.value=to}eq(to){return this.value==to.value}toDOM(to){return widgetToDOM(to,this.value)}}const foldGutterDefaults={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class FoldMarker extends GutterMarker{constructor(to,no){super(),this.config=to,this.open=no}eq(to){return this.config==to.config&&this.open==to.open}toDOM(to){if(this.config.markerDOM)return this.config.markerDOM(this.open);let no=document.createElement("span");return no.textContent=this.open?this.config.openText:this.config.closedText,no.title=to.state.phrase(this.open?"Fold line":"Unfold line"),no}}function foldGutter(eo={}){let to=Object.assign(Object.assign({},foldGutterDefaults),eo),no=new FoldMarker(to,!0),io=new FoldMarker(to,!1),so=ViewPlugin.fromClass(class{constructor(lo){this.from=lo.viewport.from,this.markers=this.buildMarkers(lo)}update(lo){(lo.docChanged||lo.viewportChanged||lo.startState.facet(language)!=lo.state.facet(language)||lo.startState.field(foldState,!1)!=lo.state.field(foldState,!1)||syntaxTree(lo.startState)!=syntaxTree(lo.state)||to.foldingChanged(lo))&&(this.markers=this.buildMarkers(lo.view))}buildMarkers(lo){let uo=new RangeSetBuilder;for(let ho of lo.viewportLineBlocks){let go=findFold(lo.state,ho.from,ho.to)?io:foldable(lo.state,ho.from,ho.to)?no:null;go&&uo.add(ho.from,ho.from,go)}return uo.finish()}}),{domEventHandlers:ao}=to;return[so,gutter({class:"cm-foldGutter",markers(lo){var uo;return((uo=lo.plugin(so))===null||uo===void 0?void 0:uo.markers)||RangeSet.empty},initialSpacer(){return new FoldMarker(to,!1)},domEventHandlers:Object.assign(Object.assign({},ao),{click:(lo,uo,ho)=>{if(ao.click&&ao.click(lo,uo,ho))return!0;let go=findFold(lo.state,uo.from,uo.to);if(go)return lo.dispatch({effects:unfoldEffect.of(go)}),!0;let mo=foldable(lo.state,uo.from,uo.to);return mo?(lo.dispatch({effects:foldEffect.of(mo)}),!0):!1}})}),codeFolding()]}const baseTheme$1$1=EditorView.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class HighlightStyle{constructor(to,no){this.specs=to;let io;function so(uo){let ho=StyleModule.newName();return(io||(io=Object.create(null)))["."+ho]=uo,ho}const ao=typeof no.all=="string"?no.all:no.all?so(no.all):void 0,lo=no.scope;this.scope=lo instanceof Language?uo=>uo.prop(languageDataProp)==lo.data:lo?uo=>uo==lo:void 0,this.style=tagHighlighter(to.map(uo=>({tag:uo.tag,class:uo.class||so(Object.assign({},uo,{tag:null}))})),{all:ao}).style,this.module=io?new StyleModule(io):null,this.themeType=no.themeType}static define(to,no){return new HighlightStyle(to,no||{})}}const highlighterFacet=Facet.define(),fallbackHighlighter=Facet.define({combine(eo){return eo.length?[eo[0]]:null}});function getHighlighters(eo){let to=eo.facet(highlighterFacet);return to.length?to:eo.facet(fallbackHighlighter)}function syntaxHighlighting(eo,to){let no=[treeHighlighter],io;return eo instanceof HighlightStyle&&(eo.module&&no.push(EditorView.styleModule.of(eo.module)),io=eo.themeType),to!=null&&to.fallback?no.push(fallbackHighlighter.of(eo)):io?no.push(highlighterFacet.computeN([EditorView.darkTheme],so=>so.facet(EditorView.darkTheme)==(io=="dark")?[eo]:[])):no.push(highlighterFacet.of(eo)),no}class TreeHighlighter{constructor(to){this.markCache=Object.create(null),this.tree=syntaxTree(to.state),this.decorations=this.buildDeco(to,getHighlighters(to.state)),this.decoratedTo=to.viewport.to}update(to){let no=syntaxTree(to.state),io=getHighlighters(to.state),so=io!=getHighlighters(to.startState),{viewport:ao}=to.view,lo=to.changes.mapPos(this.decoratedTo,1);no.length=ao.to?(this.decorations=this.decorations.map(to.changes),this.decoratedTo=lo):(no!=this.tree||to.viewportChanged||so)&&(this.tree=no,this.decorations=this.buildDeco(to.view,io),this.decoratedTo=ao.to)}buildDeco(to,no){if(!no||!this.tree.length)return Decoration.none;let io=new RangeSetBuilder;for(let{from:so,to:ao}of to.visibleRanges)highlightTree(this.tree,no,(lo,uo,ho)=>{io.add(lo,uo,this.markCache[ho]||(this.markCache[ho]=Decoration.mark({class:ho})))},so,ao);return io.finish()}}const treeHighlighter=Prec.high(ViewPlugin.fromClass(TreeHighlighter,{decorations:eo=>eo.decorations})),defaultHighlightStyle=HighlightStyle.define([{tag:tags$1.meta,color:"#404740"},{tag:tags$1.link,textDecoration:"underline"},{tag:tags$1.heading,textDecoration:"underline",fontWeight:"bold"},{tag:tags$1.emphasis,fontStyle:"italic"},{tag:tags$1.strong,fontWeight:"bold"},{tag:tags$1.strikethrough,textDecoration:"line-through"},{tag:tags$1.keyword,color:"#708"},{tag:[tags$1.atom,tags$1.bool,tags$1.url,tags$1.contentSeparator,tags$1.labelName],color:"#219"},{tag:[tags$1.literal,tags$1.inserted],color:"#164"},{tag:[tags$1.string,tags$1.deleted],color:"#a11"},{tag:[tags$1.regexp,tags$1.escape,tags$1.special(tags$1.string)],color:"#e40"},{tag:tags$1.definition(tags$1.variableName),color:"#00f"},{tag:tags$1.local(tags$1.variableName),color:"#30a"},{tag:[tags$1.typeName,tags$1.namespace],color:"#085"},{tag:tags$1.className,color:"#167"},{tag:[tags$1.special(tags$1.variableName),tags$1.macroName],color:"#256"},{tag:tags$1.definition(tags$1.propertyName),color:"#00c"},{tag:tags$1.comment,color:"#940"},{tag:tags$1.invalid,color:"#f00"}]),baseTheme$4=EditorView.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),DefaultScanDist=1e4,DefaultBrackets="()[]{}",bracketMatchingConfig=Facet.define({combine(eo){return combineConfig(eo,{afterCursor:!0,brackets:DefaultBrackets,maxScanDistance:DefaultScanDist,renderMatch:defaultRenderMatch})}}),matchingMark=Decoration.mark({class:"cm-matchingBracket"}),nonmatchingMark=Decoration.mark({class:"cm-nonmatchingBracket"});function defaultRenderMatch(eo){let to=[],no=eo.matched?matchingMark:nonmatchingMark;return to.push(no.range(eo.start.from,eo.start.to)),eo.end&&to.push(no.range(eo.end.from,eo.end.to)),to}const bracketMatchingState=StateField.define({create(){return Decoration.none},update(eo,to){if(!to.docChanged&&!to.selection)return eo;let no=[],io=to.state.facet(bracketMatchingConfig);for(let so of to.state.selection.ranges){if(!so.empty)continue;let ao=matchBrackets(to.state,so.head,-1,io)||so.head>0&&matchBrackets(to.state,so.head-1,1,io)||io.afterCursor&&(matchBrackets(to.state,so.head,1,io)||so.headEditorView.decorations.from(eo)}),bracketMatchingUnique=[bracketMatchingState,baseTheme$4];function bracketMatching(eo={}){return[bracketMatchingConfig.of(eo),bracketMatchingUnique]}const bracketMatchingHandle=new NodeProp;function matchingNodes(eo,to,no){let io=eo.prop(to<0?NodeProp.openedBy:NodeProp.closedBy);if(io)return io;if(eo.name.length==1){let so=no.indexOf(eo.name);if(so>-1&&so%2==(to<0?1:0))return[no[so+to]]}return null}function findHandle(eo){let to=eo.type.prop(bracketMatchingHandle);return to?to(eo.node):eo}function matchBrackets(eo,to,no,io={}){let so=io.maxScanDistance||DefaultScanDist,ao=io.brackets||DefaultBrackets,lo=syntaxTree(eo),uo=lo.resolveInner(to,no);for(let ho=uo;ho;ho=ho.parent){let go=matchingNodes(ho.type,no,ao);if(go&&ho.from0?to>=mo.from&&tomo.from&&to<=mo.to))return matchMarkedBrackets(eo,to,no,ho,mo,go,ao)}}return matchPlainBrackets(eo,to,no,lo,uo.type,so,ao)}function matchMarkedBrackets(eo,to,no,io,so,ao,lo){let uo=io.parent,ho={from:so.from,to:so.to},go=0,mo=uo==null?void 0:uo.cursor();if(mo&&(no<0?mo.childBefore(io.from):mo.childAfter(io.to)))do if(no<0?mo.to<=io.from:mo.from>=io.to){if(go==0&&ao.indexOf(mo.type.name)>-1&&mo.from0)return null;let go={from:no<0?to-1:to,to:no>0?to+1:to},mo=eo.doc.iterRange(to,no>0?eo.doc.length:0),yo=0;for(let So=0;!mo.next().done&&So<=ao;){let _o=mo.value;no<0&&(So+=_o.length);let ko=to+So*no;for(let Co=no>0?0:_o.length-1,$o=no>0?_o.length:-1;Co!=$o;Co+=no){let Ro=lo.indexOf(_o[Co]);if(!(Ro<0||io.resolveInner(ko+Co,1).type!=so))if(Ro%2==0==no>0)yo++;else{if(yo==1)return{start:go,end:{from:ko+Co,to:ko+Co+1},matched:Ro>>1==ho>>1};yo--}}no>0&&(So+=_o.length)}return mo.done?{start:go,matched:!1}:null}const noTokens=Object.create(null),typeArray=[NodeType.none],warned=[],byTag=Object.create(null),defaultTable=Object.create(null);for(let[eo,to]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])defaultTable[eo]=createTokenType(noTokens,to);function warnForPart(eo,to){warned.indexOf(eo)>-1||(warned.push(eo),console.warn(to))}function createTokenType(eo,to){let no=[];for(let uo of to.split(" ")){let ho=[];for(let go of uo.split(".")){let mo=eo[go]||tags$1[go];mo?typeof mo=="function"?ho.length?ho=ho.map(mo):warnForPart(go,`Modifier ${go} used at start of tag`):ho.length?warnForPart(go,`Tag ${go} used as modifier`):ho=Array.isArray(mo)?mo:[mo]:warnForPart(go,`Unknown highlighting tag ${go}`)}for(let go of ho)no.push(go)}if(!no.length)return 0;let io=to.replace(/ /g,"_"),so=io+" "+no.map(uo=>uo.id),ao=byTag[so];if(ao)return ao.id;let lo=byTag[so]=NodeType.define({id:typeArray.length,name:io,props:[styleTags({[io]:no})]});return typeArray.push(lo),lo.id}Direction.RTL,Direction.LTR;class CompletionContext{constructor(to,no,io){this.state=to,this.pos=no,this.explicit=io,this.abortListeners=[]}tokenBefore(to){let no=syntaxTree(this.state).resolveInner(this.pos,-1);for(;no&&to.indexOf(no.name)<0;)no=no.parent;return no?{from:no.from,to:this.pos,text:this.state.sliceDoc(no.from,this.pos),type:no.type}:null}matchBefore(to){let no=this.state.doc.lineAt(this.pos),io=Math.max(no.from,this.pos-250),so=no.text.slice(io-no.from,this.pos-no.from),ao=so.search(ensureAnchor(to,!1));return ao<0?null:{from:io+ao,to:this.pos,text:so.slice(ao)}}get aborted(){return this.abortListeners==null}addEventListener(to,no){to=="abort"&&this.abortListeners&&this.abortListeners.push(no)}}function toSet(eo){let to=Object.keys(eo).join(""),no=/\w/.test(to);return no&&(to=to.replace(/\w/g,"")),`[${no?"\\w":""}${to.replace(/[^\w\s]/g,"\\$&")}]`}function prefixMatch(eo){let to=Object.create(null),no=Object.create(null);for(let{label:so}of eo){to[so[0]]=!0;for(let ao=1;aotypeof so=="string"?{label:so}:so),[no,io]=to.every(so=>/^\w+$/.test(so.label))?[/\w*$/,/\w+$/]:prefixMatch(to);return so=>{let ao=so.matchBefore(io);return ao||so.explicit?{from:ao?ao.from:so.pos,options:to,validFor:no}:null}}function ifNotIn(eo,to){return no=>{for(let io=syntaxTree(no.state).resolveInner(no.pos,-1);io;io=io.parent){if(eo.indexOf(io.name)>-1)return null;if(io.type.isTop)break}return to(no)}}let Option$1=class{constructor(to,no,io,so){this.completion=to,this.source=no,this.match=io,this.score=so}};function cur(eo){return eo.selection.main.from}function ensureAnchor(eo,to){var no;let{source:io}=eo,so=to&&io[0]!="^",ao=io[io.length-1]!="$";return!so&&!ao?eo:new RegExp(`${so?"^":""}(?:${io})${ao?"$":""}`,(no=eo.flags)!==null&&no!==void 0?no:eo.ignoreCase?"i":"")}const pickedCompletion=Annotation.define();function insertCompletionText(eo,to,no,io){let{main:so}=eo.selection,ao=no-so.from,lo=io-so.from;return Object.assign(Object.assign({},eo.changeByRange(uo=>uo!=so&&no!=io&&eo.sliceDoc(uo.from+ao,uo.from+lo)!=eo.sliceDoc(no,io)?{range:uo}:{changes:{from:uo.from+ao,to:io==so.from?uo.to:uo.from+lo,insert:to},range:EditorSelection.cursor(uo.from+ao+to.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const SourceCache=new WeakMap;function asSource(eo){if(!Array.isArray(eo))return eo;let to=SourceCache.get(eo);return to||SourceCache.set(eo,to=completeFromList(eo)),to}const startCompletionEffect=StateEffect.define(),closeCompletionEffect=StateEffect.define();class FuzzyMatcher{constructor(to){this.pattern=to,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let no=0;no=48&&Bo<=57||Bo>=97&&Bo<=122?2:Bo>=65&&Bo<=90?1:0:(Po=fromCodePoint(Bo))!=Po.toLowerCase()?1:Po!=Po.toUpperCase()?2:0;(!Oo||Lo==1&&$o||Mo==0&&Lo!=0)&&(no[yo]==Bo||io[yo]==Bo&&(So=!0)?lo[yo++]=Oo:lo.length&&(Ro=!1)),Mo=Lo,Oo+=codePointSize(Bo)}return yo==ho&&lo[0]==0&&Ro?this.result(-100+(So?-200:0),lo,to):_o==ho&&ko==0?this.ret(-200-to.length+(Co==to.length?0:-100),[0,Co]):uo>-1?this.ret(-700-to.length,[uo,uo+this.pattern.length]):_o==ho?this.ret(-900-to.length,[ko,Co]):yo==ho?this.result(-100+(So?-200:0)+-700+(Ro?0:-1100),lo,to):no.length==2?null:this.result((so[0]?-700:0)+-200+-1100,so,to)}result(to,no,io){let so=[],ao=0;for(let lo of no){let uo=lo+(this.astral?codePointSize(codePointAt(io,lo)):1);ao&&so[ao-1]==lo?so[ao-1]=uo:(so[ao++]=lo,so[ao++]=uo)}return this.ret(to-io.length,so)}}class StrictMatcher{constructor(to){this.pattern=to,this.matched=[],this.score=0,this.folded=to.toLowerCase()}match(to){if(to.length"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:defaultPositionInfo,filterStrict:!1,compareCompletions:(to,no)=>to.label.localeCompare(no.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(to,no)=>to&&no,closeOnBlur:(to,no)=>to&&no,icons:(to,no)=>to&&no,tooltipClass:(to,no)=>io=>joinClass(to(io),no(io)),optionClass:(to,no)=>io=>joinClass(to(io),no(io)),addToOptions:(to,no)=>to.concat(no),filterStrict:(to,no)=>to||no})}});function joinClass(eo,to){return eo?to?eo+" "+to:eo:to}function defaultPositionInfo(eo,to,no,io,so,ao){let lo=eo.textDirection==Direction.RTL,uo=lo,ho=!1,go="top",mo,yo,So=to.left-so.left,_o=so.right-to.right,ko=io.right-io.left,Co=io.bottom-io.top;if(uo&&So=Co||Oo>to.top?mo=no.bottom-to.top:(go="bottom",mo=to.bottom-no.top)}let $o=(to.bottom-to.top)/ao.offsetHeight,Ro=(to.right-to.left)/ao.offsetWidth;return{style:`${go}: ${mo/$o}px; max-width: ${yo/Ro}px`,class:"cm-completionInfo-"+(ho?lo?"left-narrow":"right-narrow":uo?"left":"right")}}function optionContent(eo){let to=eo.addToOptions.slice();return eo.icons&&to.push({render(no){let io=document.createElement("div");return io.classList.add("cm-completionIcon"),no.type&&io.classList.add(...no.type.split(/\s+/g).map(so=>"cm-completionIcon-"+so)),io.setAttribute("aria-hidden","true"),io},position:20}),to.push({render(no,io,so,ao){let lo=document.createElement("span");lo.className="cm-completionLabel";let uo=no.displayLabel||no.label,ho=0;for(let go=0;goho&&lo.appendChild(document.createTextNode(uo.slice(ho,mo)));let So=lo.appendChild(document.createElement("span"));So.appendChild(document.createTextNode(uo.slice(mo,yo))),So.className="cm-completionMatchedText",ho=yo}return hono.position-io.position).map(no=>no.render)}function rangeAroundSelected(eo,to,no){if(eo<=no)return{from:0,to:eo};if(to<0&&(to=0),to<=eo>>1){let so=Math.floor(to/no);return{from:so*no,to:(so+1)*no}}let io=Math.floor((eo-to)/no);return{from:eo-(io+1)*no,to:eo-io*no}}class CompletionTooltip{constructor(to,no,io){this.view=to,this.stateField=no,this.applyCompletion=io,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:ho=>this.placeInfo(ho),key:this},this.space=null,this.currentClass="";let so=to.state.field(no),{options:ao,selected:lo}=so.open,uo=to.state.facet(completionConfig);this.optionContent=optionContent(uo),this.optionClass=uo.optionClass,this.tooltipClass=uo.tooltipClass,this.range=rangeAroundSelected(ao.length,lo,uo.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(to.state),this.dom.addEventListener("mousedown",ho=>{let{options:go}=to.state.field(no).open;for(let mo=ho.target,yo;mo&&mo!=this.dom;mo=mo.parentNode)if(mo.nodeName=="LI"&&(yo=/-(\d+)$/.exec(mo.id))&&+yo[1]{let go=to.state.field(this.stateField,!1);go&&go.tooltip&&to.state.facet(completionConfig).closeOnBlur&&ho.relatedTarget!=to.contentDOM&&to.dispatch({effects:closeCompletionEffect.of(null)})}),this.showOptions(ao,so.id)}mount(){this.updateSel()}showOptions(to,no){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(to,no,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(to){var no;let io=to.state.field(this.stateField),so=to.startState.field(this.stateField);if(this.updateTooltipClass(to.state),io!=so){let{options:ao,selected:lo,disabled:uo}=io.open;(!so.open||so.open.options!=ao)&&(this.range=rangeAroundSelected(ao.length,lo,to.state.facet(completionConfig).maxRenderedOptions),this.showOptions(ao,io.id)),this.updateSel(),uo!=((no=so.open)===null||no===void 0?void 0:no.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!uo)}}updateTooltipClass(to){let no=this.tooltipClass(to);if(no!=this.currentClass){for(let io of this.currentClass.split(" "))io&&this.dom.classList.remove(io);for(let io of no.split(" "))io&&this.dom.classList.add(io);this.currentClass=no}}positioned(to){this.space=to,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let to=this.view.state.field(this.stateField),no=to.open;if((no.selected>-1&&no.selected=this.range.to)&&(this.range=rangeAroundSelected(no.options.length,no.selected,this.view.state.facet(completionConfig).maxRenderedOptions),this.showOptions(no.options,to.id)),this.updateSelectedOption(no.selected)){this.destroyInfo();let{completion:io}=no.options[no.selected],{info:so}=io;if(!so)return;let ao=typeof so=="string"?document.createTextNode(so):so(io);if(!ao)return;"then"in ao?ao.then(lo=>{lo&&this.view.state.field(this.stateField,!1)==to&&this.addInfoPane(lo,io)}).catch(lo=>logException(this.view.state,lo,"completion info")):this.addInfoPane(ao,io)}}addInfoPane(to,no){this.destroyInfo();let io=this.info=document.createElement("div");if(io.className="cm-tooltip cm-completionInfo",to.nodeType!=null)io.appendChild(to),this.infoDestroy=null;else{let{dom:so,destroy:ao}=to;io.appendChild(so),this.infoDestroy=ao||null}this.dom.appendChild(io),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(to){let no=null;for(let io=this.list.firstChild,so=this.range.from;io;io=io.nextSibling,so++)io.nodeName!="LI"||!io.id?so--:so==to?io.hasAttribute("aria-selected")||(io.setAttribute("aria-selected","true"),no=io):io.hasAttribute("aria-selected")&&io.removeAttribute("aria-selected");return no&&scrollIntoView(this.list,no),no}measureInfo(){let to=this.dom.querySelector("[aria-selected]");if(!to||!this.info)return null;let no=this.dom.getBoundingClientRect(),io=this.info.getBoundingClientRect(),so=to.getBoundingClientRect(),ao=this.space;if(!ao){let lo=this.dom.ownerDocument.defaultView||window;ao={left:0,top:0,right:lo.innerWidth,bottom:lo.innerHeight}}return so.top>Math.min(ao.bottom,no.bottom)-10||so.bottomio.from||io.from==0))if(ao=So,typeof go!="string"&&go.header)so.appendChild(go.header(go));else{let _o=so.appendChild(document.createElement("completion-section"));_o.textContent=So}}const mo=so.appendChild(document.createElement("li"));mo.id=no+"-"+lo,mo.setAttribute("role","option");let yo=this.optionClass(uo);yo&&(mo.className=yo);for(let So of this.optionContent){let _o=So(uo,this.view.state,this.view,ho);_o&&mo.appendChild(_o)}}return io.from&&so.classList.add("cm-completionListIncompleteTop"),io.tonew CompletionTooltip(no,eo,to)}function scrollIntoView(eo,to){let no=eo.getBoundingClientRect(),io=to.getBoundingClientRect(),so=no.height/eo.offsetHeight;io.topno.bottom&&(eo.scrollTop+=(io.bottom-no.bottom)/so)}function score(eo){return(eo.boost||0)*100+(eo.apply?10:0)+(eo.info?5:0)+(eo.type?1:0)}function sortOptions(eo,to){let no=[],io=null,so=go=>{no.push(go);let{section:mo}=go.completion;if(mo){io||(io=[]);let yo=typeof mo=="string"?mo:mo.name;io.some(So=>So.name==yo)||io.push(typeof mo=="string"?{name:yo}:mo)}},ao=to.facet(completionConfig);for(let go of eo)if(go.hasResult()){let mo=go.result.getMatch;if(go.result.filter===!1)for(let yo of go.result.options)so(new Option$1(yo,go.source,mo?mo(yo):[],1e9-no.length));else{let yo=to.sliceDoc(go.from,go.to),So,_o=ao.filterStrict?new StrictMatcher(yo):new FuzzyMatcher(yo);for(let ko of go.result.options)if(So=_o.match(ko.label)){let Co=ko.displayLabel?mo?mo(ko,So.matched):[]:So.matched;so(new Option$1(ko,go.source,Co,So.score+(ko.boost||0)))}}}if(io){let go=Object.create(null),mo=0,yo=(So,_o)=>{var ko,Co;return((ko=So.rank)!==null&&ko!==void 0?ko:1e9)-((Co=_o.rank)!==null&&Co!==void 0?Co:1e9)||(So.name<_o.name?-1:1)};for(let So of io.sort(yo))mo-=1e5,go[So.name]=mo;for(let So of no){let{section:_o}=So.completion;_o&&(So.score+=go[typeof _o=="string"?_o:_o.name])}}let lo=[],uo=null,ho=ao.compareCompletions;for(let go of no.sort((mo,yo)=>yo.score-mo.score||ho(mo.completion,yo.completion))){let mo=go.completion;!uo||uo.label!=mo.label||uo.detail!=mo.detail||uo.type!=null&&mo.type!=null&&uo.type!=mo.type||uo.apply!=mo.apply||uo.boost!=mo.boost?lo.push(go):score(go.completion)>score(uo)&&(lo[lo.length-1]=go),uo=go.completion}return lo}class CompletionDialog{constructor(to,no,io,so,ao,lo){this.options=to,this.attrs=no,this.tooltip=io,this.timestamp=so,this.selected=ao,this.disabled=lo}setSelected(to,no){return to==this.selected||to>=this.options.length?this:new CompletionDialog(this.options,makeAttrs(no,to),this.tooltip,this.timestamp,to,this.disabled)}static build(to,no,io,so,ao){let lo=sortOptions(to,no);if(!lo.length)return so&&to.some(ho=>ho.state==1)?new CompletionDialog(so.options,so.attrs,so.tooltip,so.timestamp,so.selected,!0):null;let uo=no.facet(completionConfig).selectOnOpen?0:-1;if(so&&so.selected!=uo&&so.selected!=-1){let ho=so.options[so.selected].completion;for(let go=0;gogo.hasResult()?Math.min(ho,go.from):ho,1e8),create:createTooltip,above:ao.aboveCursor},so?so.timestamp:Date.now(),uo,!1)}map(to){return new CompletionDialog(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:to.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class CompletionState{constructor(to,no,io){this.active=to,this.id=no,this.open=io}static start(){return new CompletionState(none$1,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(to){let{state:no}=to,io=no.facet(completionConfig),ao=(io.override||no.languageDataAt("autocomplete",cur(no)).map(asSource)).map(uo=>(this.active.find(go=>go.source==uo)||new ActiveSource(uo,this.active.some(go=>go.state!=0)?1:0)).update(to,io));ao.length==this.active.length&&ao.every((uo,ho)=>uo==this.active[ho])&&(ao=this.active);let lo=this.open;lo&&to.docChanged&&(lo=lo.map(to.changes)),to.selection||ao.some(uo=>uo.hasResult()&&to.changes.touchesRange(uo.from,uo.to))||!sameResults(ao,this.active)?lo=CompletionDialog.build(ao,no,this.id,lo,io):lo&&lo.disabled&&!ao.some(uo=>uo.state==1)&&(lo=null),!lo&&ao.every(uo=>uo.state!=1)&&ao.some(uo=>uo.hasResult())&&(ao=ao.map(uo=>uo.hasResult()?new ActiveSource(uo.source,0):uo));for(let uo of to.effects)uo.is(setSelectedEffect)&&(lo=lo&&lo.setSelected(uo.value,this.id));return ao==this.active&&lo==this.open?this:new CompletionState(ao,this.id,lo)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:baseAttrs}}function sameResults(eo,to){if(eo==to)return!0;for(let no=0,io=0;;){for(;no-1&&(no["aria-activedescendant"]=eo+"-"+to),no}const none$1=[];function getUserEvent(eo){return eo.isUserEvent("input.type")?"input":eo.isUserEvent("delete.backward")?"delete":null}class ActiveSource{constructor(to,no,io=-1){this.source=to,this.state=no,this.explicitPos=io}hasResult(){return!1}update(to,no){let io=getUserEvent(to),so=this;io?so=so.handleUserEvent(to,io,no):to.docChanged?so=so.handleChange(to):to.selection&&so.state!=0&&(so=new ActiveSource(so.source,0));for(let ao of to.effects)if(ao.is(startCompletionEffect))so=new ActiveSource(so.source,1,ao.value?cur(to.state):-1);else if(ao.is(closeCompletionEffect))so=new ActiveSource(so.source,0);else if(ao.is(setActiveEffect))for(let lo of ao.value)lo.source==so.source&&(so=lo);return so}handleUserEvent(to,no,io){return no=="delete"||!io.activateOnTyping?this.map(to.changes):new ActiveSource(this.source,1)}handleChange(to){return to.changes.touchesRange(cur(to.startState))?new ActiveSource(this.source,0):this.map(to.changes)}map(to){return to.empty||this.explicitPos<0?this:new ActiveSource(this.source,this.state,to.mapPos(this.explicitPos))}}class ActiveResult extends ActiveSource{constructor(to,no,io,so,ao){super(to,2,no),this.result=io,this.from=so,this.to=ao}hasResult(){return!0}handleUserEvent(to,no,io){var so;let ao=this.result;ao.map&&!to.changes.empty&&(ao=ao.map(ao,to.changes));let lo=to.changes.mapPos(this.from),uo=to.changes.mapPos(this.to,1),ho=cur(to.state);if((this.explicitPos<0?ho<=lo:houo||!ao||no=="delete"&&cur(to.startState)==this.from)return new ActiveSource(this.source,no=="input"&&io.activateOnTyping?1:0);let go=this.explicitPos<0?-1:to.changes.mapPos(this.explicitPos);return checkValid(ao.validFor,to.state,lo,uo)?new ActiveResult(this.source,go,ao,lo,uo):ao.update&&(ao=ao.update(ao,lo,uo,new CompletionContext(to.state,ho,go>=0)))?new ActiveResult(this.source,go,ao,ao.from,(so=ao.to)!==null&&so!==void 0?so:cur(to.state)):new ActiveSource(this.source,1,go)}handleChange(to){return to.changes.touchesRange(this.from,this.to)?new ActiveSource(this.source,0):this.map(to.changes)}map(to){return to.empty?this:(this.result.map?this.result.map(this.result,to):this.result)?new ActiveResult(this.source,this.explicitPos<0?-1:to.mapPos(this.explicitPos),this.result,to.mapPos(this.from),to.mapPos(this.to,1)):new ActiveSource(this.source,0)}}function checkValid(eo,to,no,io){if(!eo)return!1;let so=to.sliceDoc(no,io);return typeof eo=="function"?eo(so,no,io,to):ensureAnchor(eo,!0).test(so)}const setActiveEffect=StateEffect.define({map(eo,to){return eo.map(no=>no.map(to))}}),setSelectedEffect=StateEffect.define(),completionState=StateField.define({create(){return CompletionState.start()},update(eo,to){return eo.update(to)},provide:eo=>[showTooltip.from(eo,to=>to.tooltip),EditorView.contentAttributes.from(eo,to=>to.attrs)]});function applyCompletion(eo,to){const no=to.completion.apply||to.completion.label;let io=eo.state.field(completionState).active.find(so=>so.source==to.source);return io instanceof ActiveResult?(typeof no=="string"?eo.dispatch(Object.assign(Object.assign({},insertCompletionText(eo.state,no,io.from,io.to)),{annotations:pickedCompletion.of(to.completion)})):no(eo,to.completion,io.from,io.to),!0):!1}const createTooltip=completionTooltip(completionState,applyCompletion);function moveCompletionSelection(eo,to="option"){return no=>{let io=no.state.field(completionState,!1);if(!io||!io.open||io.open.disabled||Date.now()-io.open.timestamp-1?io.open.selected+so*(eo?1:-1):eo?0:lo-1;return uo<0?uo=to=="page"?0:lo-1:uo>=lo&&(uo=to=="page"?lo-1:0),no.dispatch({effects:setSelectedEffect.of(uo)}),!0}}const acceptCompletion=eo=>{let to=eo.state.field(completionState,!1);return eo.state.readOnly||!to||!to.open||to.open.selected<0||to.open.disabled||Date.now()-to.open.timestampeo.state.field(completionState,!1)?(eo.dispatch({effects:startCompletionEffect.of(!0)}),!0):!1,closeCompletion=eo=>{let to=eo.state.field(completionState,!1);return!to||!to.active.some(no=>no.state!=0)?!1:(eo.dispatch({effects:closeCompletionEffect.of(null)}),!0)};class RunningQuery{constructor(to,no){this.active=to,this.context=no,this.time=Date.now(),this.updates=[],this.done=void 0}}const MaxUpdateCount=50,MinAbortTime=1e3,completionPlugin=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let to of eo.state.field(completionState).active)to.state==1&&this.startQuery(to)}update(eo){let to=eo.state.field(completionState);if(!eo.selectionSet&&!eo.docChanged&&eo.startState.field(completionState)==to)return;let no=eo.transactions.some(so=>(so.selection||so.docChanged)&&!getUserEvent(so));for(let so=0;soMaxUpdateCount&&Date.now()-ao.time>MinAbortTime){for(let lo of ao.context.abortListeners)try{lo()}catch(uo){logException(this.view.state,uo)}ao.context.abortListeners=null,this.running.splice(so--,1)}else ao.updates.push(...eo.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),eo.transactions.some(so=>so.effects.some(ao=>ao.is(startCompletionEffect)))&&(this.pendingStart=!0);let io=this.pendingStart?50:eo.state.facet(completionConfig).activateOnTypingDelay;if(this.debounceUpdate=to.active.some(so=>so.state==1&&!this.running.some(ao=>ao.active.source==so.source))?setTimeout(()=>this.startUpdate(),io):-1,this.composing!=0)for(let so of eo.transactions)getUserEvent(so)=="input"?this.composing=2:this.composing==2&&so.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:eo}=this.view,to=eo.field(completionState);for(let no of to.active)no.state==1&&!this.running.some(io=>io.active.source==no.source)&&this.startQuery(no)}startQuery(eo){let{state:to}=this.view,no=cur(to),io=new CompletionContext(to,no,eo.explicitPos==no),so=new RunningQuery(eo,io);this.running.push(so),Promise.resolve(eo.source(io)).then(ao=>{so.context.aborted||(so.done=ao||null,this.scheduleAccept())},ao=>{this.view.dispatch({effects:closeCompletionEffect.of(null)}),logException(this.view.state,ao)})}scheduleAccept(){this.running.every(eo=>eo.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(completionConfig).updateSyncTime))}accept(){var eo;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let to=[],no=this.view.state.facet(completionConfig);for(let io=0;iolo.source==so.active.source);if(ao&&ao.state==1)if(so.done==null){let lo=new ActiveSource(so.active.source,0);for(let uo of so.updates)lo=lo.update(uo,no);lo.state!=1&&to.push(lo)}else this.startQuery(ao)}to.length&&this.view.dispatch({effects:setActiveEffect.of(to)})}},{eventHandlers:{blur(eo){let to=this.view.state.field(completionState,!1);if(to&&to.tooltip&&this.view.state.facet(completionConfig).closeOnBlur){let no=to.open&&getTooltip$2(this.view,to.open.tooltip);(!no||!no.dom.contains(eo.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:closeCompletionEffect.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:startCompletionEffect.of(!1)}),20),this.composing=0}}}),windows=typeof navigator=="object"&&/Win/.test(navigator.platform),commitCharacters=Prec.highest(EditorView.domEventHandlers({keydown(eo,to){let no=to.state.field(completionState,!1);if(!no||!no.open||no.open.disabled||no.open.selected<0||eo.key.length>1||eo.ctrlKey&&!(windows&&eo.altKey)||eo.metaKey)return!1;let io=no.open.options[no.open.selected],so=no.active.find(lo=>lo.source==io.source),ao=io.completion.commitCharacters||so.result.commitCharacters;return ao&&ao.indexOf(eo.key)>-1&&applyCompletion(to,io),!1}})),baseTheme$3=EditorView.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class FieldPos{constructor(to,no,io,so){this.field=to,this.line=no,this.from=io,this.to=so}}class FieldRange{constructor(to,no,io){this.field=to,this.from=no,this.to=io}map(to){let no=to.mapPos(this.from,-1,MapMode.TrackDel),io=to.mapPos(this.to,1,MapMode.TrackDel);return no==null||io==null?null:new FieldRange(this.field,no,io)}}class Snippet{constructor(to,no){this.lines=to,this.fieldPositions=no}instantiate(to,no){let io=[],so=[no],ao=to.doc.lineAt(no),lo=/^\s*/.exec(ao.text)[0];for(let ho of this.lines){if(io.length){let go=lo,mo=/^\t*/.exec(ho)[0].length;for(let yo=0;yonew FieldRange(ho.field,so[ho.line]+ho.from,so[ho.line]+ho.to));return{text:io,ranges:uo}}static parse(to){let no=[],io=[],so=[],ao;for(let lo of to.split(/\r\n?|\n/)){for(;ao=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(lo);){let uo=ao[1]?+ao[1]:null,ho=ao[2]||ao[3]||"",go=-1;for(let mo=0;mo=go&&yo.field++}so.push(new FieldPos(go,io.length,ao.index,ao.index+ho.length)),lo=lo.slice(0,ao.index)+ho+lo.slice(ao.index+ao[0].length)}for(let uo;uo=/\\([{}])/.exec(lo);){lo=lo.slice(0,uo.index)+uo[1]+lo.slice(uo.index+uo[0].length);for(let ho of so)ho.line==io.length&&ho.from>uo.index&&(ho.from--,ho.to--)}io.push(lo)}return new Snippet(io,so)}}let fieldMarker=Decoration.widget({widget:new class extends WidgetType{toDOM(){let eo=document.createElement("span");return eo.className="cm-snippetFieldPosition",eo}ignoreEvent(){return!1}}}),fieldRange=Decoration.mark({class:"cm-snippetField"});class ActiveSnippet{constructor(to,no){this.ranges=to,this.active=no,this.deco=Decoration.set(to.map(io=>(io.from==io.to?fieldMarker:fieldRange).range(io.from,io.to)))}map(to){let no=[];for(let io of this.ranges){let so=io.map(to);if(!so)return null;no.push(so)}return new ActiveSnippet(no,this.active)}selectionInsideField(to){return to.ranges.every(no=>this.ranges.some(io=>io.field==this.active&&io.from<=no.from&&io.to>=no.to))}}const setActive=StateEffect.define({map(eo,to){return eo&&eo.map(to)}}),moveToField=StateEffect.define(),snippetState=StateField.define({create(){return null},update(eo,to){for(let no of to.effects){if(no.is(setActive))return no.value;if(no.is(moveToField)&&eo)return new ActiveSnippet(eo.ranges,no.value)}return eo&&to.docChanged&&(eo=eo.map(to.changes)),eo&&to.selection&&!eo.selectionInsideField(to.selection)&&(eo=null),eo},provide:eo=>EditorView.decorations.from(eo,to=>to?to.deco:Decoration.none)});function fieldSelection(eo,to){return EditorSelection.create(eo.filter(no=>no.field==to).map(no=>EditorSelection.range(no.from,no.to)))}function snippet(eo){let to=Snippet.parse(eo);return(no,io,so,ao)=>{let{text:lo,ranges:uo}=to.instantiate(no.state,so),ho={changes:{from:so,to:ao,insert:Text$1.of(lo)},scrollIntoView:!0,annotations:io?[pickedCompletion.of(io),Transaction.userEvent.of("input.complete")]:void 0};if(uo.length&&(ho.selection=fieldSelection(uo,0)),uo.some(go=>go.field>0)){let go=new ActiveSnippet(uo,0),mo=ho.effects=[setActive.of(go)];no.state.field(snippetState,!1)===void 0&&mo.push(StateEffect.appendConfig.of([snippetState,addSnippetKeymap,snippetPointerHandler,baseTheme$3]))}no.dispatch(no.state.update(ho))}}function moveField(eo){return({state:to,dispatch:no})=>{let io=to.field(snippetState,!1);if(!io||eo<0&&io.active==0)return!1;let so=io.active+eo,ao=eo>0&&!io.ranges.some(lo=>lo.field==so+eo);return no(to.update({selection:fieldSelection(io.ranges,so),effects:setActive.of(ao?null:new ActiveSnippet(io.ranges,so)),scrollIntoView:!0})),!0}}const clearSnippet=({state:eo,dispatch:to})=>eo.field(snippetState,!1)?(to(eo.update({effects:setActive.of(null)})),!0):!1,nextSnippetField=moveField(1),prevSnippetField=moveField(-1),defaultSnippetKeymap=[{key:"Tab",run:nextSnippetField,shift:prevSnippetField},{key:"Escape",run:clearSnippet}],snippetKeymap=Facet.define({combine(eo){return eo.length?eo[0]:defaultSnippetKeymap}}),addSnippetKeymap=Prec.highest(keymap.compute([snippetKeymap],eo=>eo.facet(snippetKeymap)));function snippetCompletion(eo,to){return Object.assign(Object.assign({},to),{apply:snippet(eo)})}const snippetPointerHandler=EditorView.domEventHandlers({mousedown(eo,to){let no=to.state.field(snippetState,!1),io;if(!no||(io=to.posAtCoords({x:eo.clientX,y:eo.clientY}))==null)return!1;let so=no.ranges.find(ao=>ao.from<=io&&ao.to>=io);return!so||so.field==no.active?!1:(to.dispatch({selection:fieldSelection(no.ranges,so.field),effects:setActive.of(no.ranges.some(ao=>ao.field>so.field)?new ActiveSnippet(no.ranges,so.field):null),scrollIntoView:!0}),!0)}}),defaults$j={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},closeBracketEffect=StateEffect.define({map(eo,to){let no=to.mapPos(eo,-1,MapMode.TrackAfter);return no??void 0}}),closedBracket=new class extends RangeValue{};closedBracket.startSide=1;closedBracket.endSide=-1;const bracketState=StateField.define({create(){return RangeSet.empty},update(eo,to){if(eo=eo.map(to.changes),to.selection){let no=to.state.doc.lineAt(to.selection.main.head);eo=eo.update({filter:io=>io>=no.from&&io<=no.to})}for(let no of to.effects)no.is(closeBracketEffect)&&(eo=eo.update({add:[closedBracket.range(no.value,no.value+1)]}));return eo}});function closeBrackets(){return[inputHandler,bracketState]}const definedClosing="()[]{}<>";function closing(eo){for(let to=0;to{if((android?eo.composing:eo.compositionStarted)||eo.state.readOnly)return!1;let so=eo.state.selection.main;if(io.length>2||io.length==2&&codePointSize(codePointAt(io,0))==1||to!=so.from||no!=so.to)return!1;let ao=insertBracket(eo.state,io);return ao?(eo.dispatch(ao),!0):!1}),deleteBracketPair=({state:eo,dispatch:to})=>{if(eo.readOnly)return!1;let io=config$3(eo,eo.selection.main.head).brackets||defaults$j.brackets,so=null,ao=eo.changeByRange(lo=>{if(lo.empty){let uo=prevChar(eo.doc,lo.head);for(let ho of io)if(ho==uo&&nextChar(eo.doc,lo.head)==closing(codePointAt(ho,0)))return{changes:{from:lo.head-ho.length,to:lo.head+ho.length},range:EditorSelection.cursor(lo.head-ho.length)}}return{range:so=lo}});return so||to(eo.update(ao,{scrollIntoView:!0,userEvent:"delete.backward"})),!so},closeBracketsKeymap=[{key:"Backspace",run:deleteBracketPair}];function insertBracket(eo,to){let no=config$3(eo,eo.selection.main.head),io=no.brackets||defaults$j.brackets;for(let so of io){let ao=closing(codePointAt(so,0));if(to==so)return ao==so?handleSame(eo,so,io.indexOf(so+so+so)>-1,no):handleOpen(eo,so,ao,no.before||defaults$j.before);if(to==ao&&closedBracketAt(eo,eo.selection.main.from))return handleClose(eo,so,ao)}return null}function closedBracketAt(eo,to){let no=!1;return eo.field(bracketState).between(0,eo.doc.length,io=>{io==to&&(no=!0)}),no}function nextChar(eo,to){let no=eo.sliceString(to,to+2);return no.slice(0,codePointSize(codePointAt(no,0)))}function prevChar(eo,to){let no=eo.sliceString(to-2,to);return codePointSize(codePointAt(no,0))==no.length?no:no.slice(1)}function handleOpen(eo,to,no,io){let so=null,ao=eo.changeByRange(lo=>{if(!lo.empty)return{changes:[{insert:to,from:lo.from},{insert:no,from:lo.to}],effects:closeBracketEffect.of(lo.to+to.length),range:EditorSelection.range(lo.anchor+to.length,lo.head+to.length)};let uo=nextChar(eo.doc,lo.head);return!uo||/\s/.test(uo)||io.indexOf(uo)>-1?{changes:{insert:to+no,from:lo.head},effects:closeBracketEffect.of(lo.head+to.length),range:EditorSelection.cursor(lo.head+to.length)}:{range:so=lo}});return so?null:eo.update(ao,{scrollIntoView:!0,userEvent:"input.type"})}function handleClose(eo,to,no){let io=null,so=eo.changeByRange(ao=>ao.empty&&nextChar(eo.doc,ao.head)==no?{changes:{from:ao.head,to:ao.head+no.length,insert:no},range:EditorSelection.cursor(ao.head+no.length)}:io={range:ao});return io?null:eo.update(so,{scrollIntoView:!0,userEvent:"input.type"})}function handleSame(eo,to,no,io){let so=io.stringPrefixes||defaults$j.stringPrefixes,ao=null,lo=eo.changeByRange(uo=>{if(!uo.empty)return{changes:[{insert:to,from:uo.from},{insert:to,from:uo.to}],effects:closeBracketEffect.of(uo.to+to.length),range:EditorSelection.range(uo.anchor+to.length,uo.head+to.length)};let ho=uo.head,go=nextChar(eo.doc,ho),mo;if(go==to){if(nodeStart(eo,ho))return{changes:{insert:to+to,from:ho},effects:closeBracketEffect.of(ho+to.length),range:EditorSelection.cursor(ho+to.length)};if(closedBracketAt(eo,ho)){let So=no&&eo.sliceDoc(ho,ho+to.length*3)==to+to+to?to+to+to:to;return{changes:{from:ho,to:ho+So.length,insert:So},range:EditorSelection.cursor(ho+So.length)}}}else{if(no&&eo.sliceDoc(ho-2*to.length,ho)==to+to&&(mo=canStartStringAt(eo,ho-2*to.length,so))>-1&&nodeStart(eo,mo))return{changes:{insert:to+to+to+to,from:ho},effects:closeBracketEffect.of(ho+to.length),range:EditorSelection.cursor(ho+to.length)};if(eo.charCategorizer(ho)(go)!=CharCategory.Word&&canStartStringAt(eo,ho,so)>-1&&!probablyInString(eo,ho,to,so))return{changes:{insert:to+to,from:ho},effects:closeBracketEffect.of(ho+to.length),range:EditorSelection.cursor(ho+to.length)}}return{range:ao=uo}});return ao?null:eo.update(lo,{scrollIntoView:!0,userEvent:"input.type"})}function nodeStart(eo,to){let no=syntaxTree(eo).resolveInner(to+1);return no.parent&&no.from==to}function probablyInString(eo,to,no,io){let so=syntaxTree(eo).resolveInner(to,-1),ao=io.reduce((lo,uo)=>Math.max(lo,uo.length),0);for(let lo=0;lo<5;lo++){let uo=eo.sliceDoc(so.from,Math.min(so.to,so.from+no.length+ao)),ho=uo.indexOf(no);if(!ho||ho>-1&&io.indexOf(uo.slice(0,ho))>-1){let mo=so.firstChild;for(;mo&&mo.from==so.from&&mo.to-mo.from>no.length+ho;){if(eo.sliceDoc(mo.to-no.length,mo.to)==no)return!1;mo=mo.firstChild}return!0}let go=so.to==to&&so.parent;if(!go)break;so=go}return!1}function canStartStringAt(eo,to,no){let io=eo.charCategorizer(to);if(io(eo.sliceDoc(to-1,to))!=CharCategory.Word)return to;for(let so of no){let ao=to-so.length;if(eo.sliceDoc(ao,to)==so&&io(eo.sliceDoc(ao-1,ao))!=CharCategory.Word)return ao}return-1}function autocompletion(eo={}){return[commitCharacters,completionState,completionConfig.of(eo),completionPlugin,completionKeymapExt,baseTheme$3]}const completionKeymap=[{key:"Ctrl-Space",run:startCompletion},{key:"Escape",run:closeCompletion},{key:"ArrowDown",run:moveCompletionSelection(!0)},{key:"ArrowUp",run:moveCompletionSelection(!1)},{key:"PageDown",run:moveCompletionSelection(!0,"page")},{key:"PageUp",run:moveCompletionSelection(!1,"page")},{key:"Enter",run:acceptCompletion}],completionKeymapExt=Prec.highest(keymap.computeN([completionConfig],eo=>eo.facet(completionConfig).defaultKeymap?[completionKeymap]:[]));var define_process_env_default={};class Stack{constructor(to,no,io,so,ao,lo,uo,ho,go,mo=0,yo){this.p=to,this.stack=no,this.state=io,this.reducePos=so,this.pos=ao,this.score=lo,this.buffer=uo,this.bufferBase=ho,this.curContext=go,this.lookAhead=mo,this.parent=yo}toString(){return`[${this.stack.filter((to,no)=>no%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(to,no,io=0){let so=to.parser.context;return new Stack(to,[],no,io,io,0,[],0,so?new StackContext(so,so.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(to,no){this.stack.push(this.state,no,this.bufferBase+this.buffer.length),this.state=to}reduce(to){var no;let io=to>>19,so=to&65535,{parser:ao}=this.p,lo=ao.dynamicPrecedence(so);if(lo&&(this.score+=lo),io==0){this.pushState(ao.getGoto(this.state,so,!0),this.reducePos),so=2e3&&!(!((no=this.p.parser.nodeSet.types[so])===null||no===void 0)&&no.isAnonymous)&&(ho==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=go):this.p.lastBigReductionSizeuo;)this.stack.pop();this.reduceContext(so,ho)}storeNode(to,no,io,so=4,ao=!1){if(to==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&lo.buffer[uo-4]==0&&lo.buffer[uo-1]>-1){if(no==io)return;if(lo.buffer[uo-2]>=no){lo.buffer[uo-2]=io;return}}}if(!ao||this.pos==io)this.buffer.push(to,no,io,so);else{let lo=this.buffer.length;if(lo>0&&this.buffer[lo-4]!=0)for(;lo>0&&this.buffer[lo-2]>io;)this.buffer[lo]=this.buffer[lo-4],this.buffer[lo+1]=this.buffer[lo-3],this.buffer[lo+2]=this.buffer[lo-2],this.buffer[lo+3]=this.buffer[lo-1],lo-=4,so>4&&(so-=4);this.buffer[lo]=to,this.buffer[lo+1]=no,this.buffer[lo+2]=io,this.buffer[lo+3]=so}}shift(to,no,io,so){if(to&131072)this.pushState(to&65535,this.pos);else if(to&262144)this.pos=so,this.shiftContext(no,io),no<=this.p.parser.maxNode&&this.buffer.push(no,io,so,4);else{let ao=to,{parser:lo}=this.p;(so>this.pos||no<=lo.maxNode)&&(this.pos=so,lo.stateFlag(ao,1)||(this.reducePos=so)),this.pushState(ao,io),this.shiftContext(no,io),no<=lo.maxNode&&this.buffer.push(no,io,so,4)}}apply(to,no,io,so){to&65536?this.reduce(to):this.shift(to,no,io,so)}useNode(to,no){let io=this.p.reused.length-1;(io<0||this.p.reused[io]!=to)&&(this.p.reused.push(to),io++);let so=this.pos;this.reducePos=this.pos=so+to.length,this.pushState(no,so),this.buffer.push(io,so,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,to,this,this.p.stream.reset(this.pos-to.length)))}split(){let to=this,no=to.buffer.length;for(;no>0&&to.buffer[no-2]>to.reducePos;)no-=4;let io=to.buffer.slice(no),so=to.bufferBase+no;for(;to&&so==to.bufferBase;)to=to.parent;return new Stack(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,io,so,this.curContext,this.lookAhead,to)}recoverByDelete(to,no){let io=to<=this.p.parser.maxNode;io&&this.storeNode(to,this.pos,no,4),this.storeNode(0,this.pos,no,io?8:4),this.pos=this.reducePos=no,this.score-=190}canShift(to){for(let no=new SimulatedStack(this);;){let io=this.p.parser.stateSlot(no.state,4)||this.p.parser.hasAction(no.state,to);if(io==0)return!1;if(!(io&65536))return!0;no.reduce(io)}}recoverByInsert(to){if(this.stack.length>=300)return[];let no=this.p.parser.nextStates(this.state);if(no.length>8||this.stack.length>=120){let so=[];for(let ao=0,lo;aoho&1&&uo==lo)||so.push(no[ao],lo)}no=so}let io=[];for(let so=0;so>19,so=no&65535,ao=this.stack.length-io*3;if(ao<0||to.getGoto(this.stack[ao],so,!1)<0){let lo=this.findForcedReduction();if(lo==null)return!1;no=lo}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(no),!0}findForcedReduction(){let{parser:to}=this.p,no=[],io=(so,ao)=>{if(!no.includes(so))return no.push(so),to.allActions(so,lo=>{if(!(lo&393216))if(lo&65536){let uo=(lo>>19)-ao;if(uo>1){let ho=lo&65535,go=this.stack.length-uo*3;if(go>=0&&to.getGoto(this.stack[go],ho,!1)>=0)return uo<<19|65536|ho}}else{let uo=io(lo,ao+1);if(uo!=null)return uo}})};return io(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:to}=this.p;return to.data[to.stateSlot(this.state,1)]==65535&&!to.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(to){if(this.state!=to.state||this.stack.length!=to.stack.length)return!1;for(let no=0;nothis.lookAhead&&(this.emitLookAhead(),this.lookAhead=to)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class StackContext{constructor(to,no){this.tracker=to,this.context=no,this.hash=to.strict?to.hash(no):0}}class SimulatedStack{constructor(to){this.start=to,this.state=to.state,this.stack=to.stack,this.base=this.stack.length}reduce(to){let no=to&65535,io=to>>19;io==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(io-1)*3;let so=this.start.p.parser.getGoto(this.stack[this.base-3],no,!0);this.state=so}}class StackBufferCursor{constructor(to,no,io){this.stack=to,this.pos=no,this.index=io,this.buffer=to.buffer,this.index==0&&this.maybeNext()}static create(to,no=to.bufferBase+to.buffer.length){return new StackBufferCursor(to,no,no-to.bufferBase)}maybeNext(){let to=this.stack.parent;to!=null&&(this.index=this.stack.bufferBase-to.bufferBase,this.stack=to,this.buffer=to.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new StackBufferCursor(this.stack,this.pos,this.index)}}function decodeArray(eo,to=Uint16Array){if(typeof eo!="string")return eo;let no=null;for(let io=0,so=0;io=92&&lo--,lo>=34&&lo--;let ho=lo-32;if(ho>=46&&(ho-=46,uo=!0),ao+=ho,uo)break;ao*=46}no?no[so++]=ao:no=new to(ao)}return no}class CachedToken{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const nullToken=new CachedToken;class InputStream{constructor(to,no){this.input=to,this.ranges=no,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=nullToken,this.rangeIndex=0,this.pos=this.chunkPos=no[0].from,this.range=no[0],this.end=no[no.length-1].to,this.readNext()}resolveOffset(to,no){let io=this.range,so=this.rangeIndex,ao=this.pos+to;for(;aoio.to:ao>=io.to;){if(so==this.ranges.length-1)return null;let lo=this.ranges[++so];ao+=lo.from-io.to,io=lo}return ao}clipPos(to){if(to>=this.range.from&&toto)return Math.max(to,no.from);return this.end}peek(to){let no=this.chunkOff+to,io,so;if(no>=0&&no=this.chunk2Pos&&iouo.to&&(this.chunk2=this.chunk2.slice(0,uo.to-io)),so=this.chunk2.charCodeAt(0)}}return io>=this.token.lookAhead&&(this.token.lookAhead=io+1),so}acceptToken(to,no=0){let io=no?this.resolveOffset(no,-1):this.pos;if(io==null||io=this.chunk2Pos&&this.posthis.range.to?to.slice(0,this.range.to-this.pos):to,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(to=1){for(this.chunkOff+=to;this.pos+to>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();to-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=to,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(to,no){if(no?(this.token=no,no.start=to,no.lookAhead=to+1,no.value=no.extended=-1):this.token=nullToken,this.pos!=to){if(this.pos=to,to==this.end)return this.setDone(),this;for(;to=this.range.to;)this.range=this.ranges[++this.rangeIndex];to>=this.chunkPos&&to=this.chunkPos&&no<=this.chunkPos+this.chunk.length)return this.chunk.slice(to-this.chunkPos,no-this.chunkPos);if(to>=this.chunk2Pos&&no<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(to-this.chunk2Pos,no-this.chunk2Pos);if(to>=this.range.from&&no<=this.range.to)return this.input.read(to,no);let io="";for(let so of this.ranges){if(so.from>=no)break;so.to>to&&(io+=this.input.read(Math.max(so.from,to),Math.min(so.to,no)))}return io}}class TokenGroup{constructor(to,no){this.data=to,this.id=no}token(to,no){let{parser:io}=no.p;readToken(this.data,to,no,this.id,io.data,io.tokenPrecTable)}}TokenGroup.prototype.contextual=TokenGroup.prototype.fallback=TokenGroup.prototype.extend=!1;TokenGroup.prototype.fallback=TokenGroup.prototype.extend=!1;class ExternalTokenizer{constructor(to,no={}){this.token=to,this.contextual=!!no.contextual,this.fallback=!!no.fallback,this.extend=!!no.extend}}function readToken(eo,to,no,io,so,ao){let lo=0,uo=1<0){let ko=eo[_o];if(ho.allows(ko)&&(to.token.value==-1||to.token.value==ko||overrides(ko,to.token.value,so,ao))){to.acceptToken(ko);break}}let mo=to.next,yo=0,So=eo[lo+2];if(to.next<0&&So>yo&&eo[go+So*3-3]==65535){lo=eo[go+So*3-1];continue e}for(;yo>1,ko=go+_o+(_o<<1),Co=eo[ko],$o=eo[ko+1]||65536;if(mo=$o)yo=_o+1;else{lo=eo[ko+2],to.advance();continue e}}break}}function findOffset(eo,to,no){for(let io=to,so;(so=eo[io])!=65535;io++)if(so==no)return io-to;return-1}function overrides(eo,to,no,io){let so=findOffset(no,io,to);return so<0||findOffset(no,io,eo)to)&&!io.type.isError)return no<0?Math.max(0,Math.min(io.to-1,to-25)):Math.min(eo.length,Math.max(io.from+1,to+25));if(no<0?io.prevSibling():io.nextSibling())break;if(!io.parent())return no<0?0:eo.length}}class FragmentCursor{constructor(to,no){this.fragments=to,this.nodeSet=no,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let to=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(to){for(this.safeFrom=to.openStart?cutAt(to.tree,to.from+to.offset,1)-to.offset:to.from,this.safeTo=to.openEnd?cutAt(to.tree,to.to+to.offset,-1)-to.offset:to.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(to.tree),this.start.push(-to.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(to){if(toto)return this.nextStart=lo,null;if(ao instanceof Tree){if(lo==to){if(lo=Math.max(this.safeFrom,to)&&(this.trees.push(ao),this.start.push(lo),this.index.push(0))}else this.index[no]++,this.nextStart=lo+ao.length}}}class TokenCache{constructor(to,no){this.stream=no,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=to.tokenizers.map(io=>new CachedToken)}getActions(to){let no=0,io=null,{parser:so}=to.p,{tokenizers:ao}=so,lo=so.stateSlot(to.state,3),uo=to.curContext?to.curContext.hash:0,ho=0;for(let go=0;goyo.end+25&&(ho=Math.max(yo.lookAhead,ho)),yo.value!=0)){let So=no;if(yo.extended>-1&&(no=this.addActions(to,yo.extended,yo.end,no)),no=this.addActions(to,yo.value,yo.end,no),!mo.extend&&(io=yo,no>So))break}}for(;this.actions.length>no;)this.actions.pop();return ho&&to.setLookAhead(ho),!io&&to.pos==this.stream.end&&(io=new CachedToken,io.value=to.p.parser.eofTerm,io.start=io.end=to.pos,no=this.addActions(to,io.value,io.end,no)),this.mainToken=io,this.actions}getMainToken(to){if(this.mainToken)return this.mainToken;let no=new CachedToken,{pos:io,p:so}=to;return no.start=io,no.end=Math.min(io+1,so.stream.end),no.value=io==so.stream.end?so.parser.eofTerm:0,no}updateCachedToken(to,no,io){let so=this.stream.clipPos(io.pos);if(no.token(this.stream.reset(so,to),io),to.value>-1){let{parser:ao}=io.p;for(let lo=0;lo=0&&io.p.parser.dialect.allows(uo>>1)){uo&1?to.extended=uo>>1:to.value=uo>>1;break}}}else to.value=0,to.end=this.stream.clipPos(so+1)}putAction(to,no,io,so){for(let ao=0;aoto.bufferLength*4?new FragmentCursor(io,to.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let to=this.stacks,no=this.minStackPos,io=this.stacks=[],so,ao;if(this.bigReductionCount>300&&to.length==1){let[lo]=to;for(;lo.forceReduce()&&lo.stack.length&&lo.stack[lo.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let lo=0;lono)io.push(uo);else{if(this.advanceStack(uo,io,to))continue;{so||(so=[],ao=[]),so.push(uo);let ho=this.tokens.getMainToken(uo);ao.push(ho.value,ho.end)}}break}}if(!io.length){let lo=so&&findFinished(so);if(lo)return verbose&&console.log("Finish with "+this.stackID(lo)),this.stackToTree(lo);if(this.parser.strict)throw verbose&&so&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+no);this.recovering||(this.recovering=5)}if(this.recovering&&so){let lo=this.stoppedAt!=null&&so[0].pos>this.stoppedAt?so[0]:this.runRecovery(so,ao,io);if(lo)return verbose&&console.log("Force-finish "+this.stackID(lo)),this.stackToTree(lo.forceAll())}if(this.recovering){let lo=this.recovering==1?1:this.recovering*3;if(io.length>lo)for(io.sort((uo,ho)=>ho.score-uo.score);io.length>lo;)io.pop();io.some(uo=>uo.reducePos>no)&&this.recovering--}else if(io.length>1){e:for(let lo=0;lo500&&go.buffer.length>500)if((uo.score-go.score||uo.buffer.length-go.buffer.length)>0)io.splice(ho--,1);else{io.splice(lo--,1);continue e}}}io.length>12&&io.splice(12,io.length-12)}this.minStackPos=io[0].pos;for(let lo=1;lo ":"";if(this.stoppedAt!=null&&so>this.stoppedAt)return to.forceReduce()?to:null;if(this.fragments){let go=to.curContext&&to.curContext.tracker.strict,mo=go?to.curContext.hash:0;for(let yo=this.fragments.nodeAt(so);yo;){let So=this.parser.nodeSet.types[yo.type.id]==yo.type?ao.getGoto(to.state,yo.type.id):-1;if(So>-1&&yo.length&&(!go||(yo.prop(NodeProp.contextHash)||0)==mo))return to.useNode(yo,So),verbose&&console.log(lo+this.stackID(to)+` (via reuse of ${ao.getName(yo.type.id)})`),!0;if(!(yo instanceof Tree)||yo.children.length==0||yo.positions[0]>0)break;let _o=yo.children[0];if(_o instanceof Tree&&yo.positions[0]==0)yo=_o;else break}}let uo=ao.stateSlot(to.state,4);if(uo>0)return to.reduce(uo),verbose&&console.log(lo+this.stackID(to)+` (via always-reduce ${ao.getName(uo&65535)})`),!0;if(to.stack.length>=8400)for(;to.stack.length>6e3&&to.forceReduce(););let ho=this.tokens.getActions(to);for(let go=0;goso?no.push(ko):io.push(ko)}return!1}advanceFully(to,no){let io=to.pos;for(;;){if(!this.advanceStack(to,null,null))return!1;if(to.pos>io)return pushStackDedup(to,no),!0}}runRecovery(to,no,io){let so=null,ao=!1;for(let lo=0;lo ":"";if(uo.deadEnd&&(ao||(ao=!0,uo.restart(),verbose&&console.log(mo+this.stackID(uo)+" (restarted)"),this.advanceFully(uo,io))))continue;let yo=uo.split(),So=mo;for(let _o=0;yo.forceReduce()&&_o<10&&(verbose&&console.log(So+this.stackID(yo)+" (via force-reduce)"),!this.advanceFully(yo,io));_o++)verbose&&(So=this.stackID(yo)+" -> ");for(let _o of uo.recoverByInsert(ho))verbose&&console.log(mo+this.stackID(_o)+" (via recover-insert)"),this.advanceFully(_o,io);this.stream.end>uo.pos?(go==uo.pos&&(go++,ho=0),uo.recoverByDelete(ho,go),verbose&&console.log(mo+this.stackID(uo)+` (via recover-delete ${this.parser.getName(ho)})`),pushStackDedup(uo,io)):(!so||so.scoreeo;class ContextTracker{constructor(to){this.start=to.start,this.shift=to.shift||id,this.reduce=to.reduce||id,this.reuse=to.reuse||id,this.hash=to.hash||(()=>0),this.strict=to.strict!==!1}}class LRParser extends Parser$1{constructor(to){if(super(),this.wrappers=[],to.version!=14)throw new RangeError(`Parser version (${to.version}) doesn't match runtime version (14)`);let no=to.nodeNames.split(" ");this.minRepeatTerm=no.length;for(let uo=0;uoto.topRules[uo][1]),so=[];for(let uo=0;uo=0)ao(mo,ho,uo[go++]);else{let yo=uo[go+-mo];for(let So=-mo;So>0;So--)ao(uo[go++],ho,yo);go++}}}this.nodeSet=new NodeSet(no.map((uo,ho)=>NodeType.define({name:ho>=this.minRepeatTerm?void 0:uo,id:ho,props:so[ho],top:io.indexOf(ho)>-1,error:ho==0,skipped:to.skippedNodes&&to.skippedNodes.indexOf(ho)>-1}))),to.propSources&&(this.nodeSet=this.nodeSet.extend(...to.propSources)),this.strict=!1,this.bufferLength=DefaultBufferLength;let lo=decodeArray(to.tokenData);this.context=to.context,this.specializerSpecs=to.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let uo=0;uotypeof uo=="number"?new TokenGroup(lo,uo):uo),this.topRules=to.topRules,this.dialects=to.dialects||{},this.dynamicPrecedences=to.dynamicPrecedences||null,this.tokenPrecTable=to.tokenPrec,this.termNames=to.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(to,no,io){let so=new Parse(this,to,no,io);for(let ao of this.wrappers)so=ao(so,to,no,io);return so}getGoto(to,no,io=!1){let so=this.goto;if(no>=so[0])return-1;for(let ao=so[no+1];;){let lo=so[ao++],uo=lo&1,ho=so[ao++];if(uo&&io)return ho;for(let go=ao+(lo>>1);ao0}validAction(to,no){return!!this.allActions(to,io=>io==no?!0:null)}allActions(to,no){let io=this.stateSlot(to,4),so=io?no(io):void 0;for(let ao=this.stateSlot(to,1);so==null;ao+=3){if(this.data[ao]==65535)if(this.data[ao+1]==1)ao=pair(this.data,ao+2);else break;so=no(pair(this.data,ao+1))}return so}nextStates(to){let no=[];for(let io=this.stateSlot(to,1);;io+=3){if(this.data[io]==65535)if(this.data[io+1]==1)io=pair(this.data,io+2);else break;if(!(this.data[io+2]&1)){let so=this.data[io+1];no.some((ao,lo)=>lo&1&&ao==so)||no.push(this.data[io],so)}}return no}configure(to){let no=Object.assign(Object.create(LRParser.prototype),this);if(to.props&&(no.nodeSet=this.nodeSet.extend(...to.props)),to.top){let io=this.topRules[to.top];if(!io)throw new RangeError(`Invalid top rule name ${to.top}`);no.top=io}return to.tokenizers&&(no.tokenizers=this.tokenizers.map(io=>{let so=to.tokenizers.find(ao=>ao.from==io);return so?so.to:io})),to.specializers&&(no.specializers=this.specializers.slice(),no.specializerSpecs=this.specializerSpecs.map((io,so)=>{let ao=to.specializers.find(uo=>uo.from==io.external);if(!ao)return io;let lo=Object.assign(Object.assign({},io),{external:ao.to});return no.specializers[so]=getSpecializer(lo),lo})),to.contextTracker&&(no.context=to.contextTracker),to.dialect&&(no.dialect=this.parseDialect(to.dialect)),to.strict!=null&&(no.strict=to.strict),to.wrap&&(no.wrappers=no.wrappers.concat(to.wrap)),to.bufferLength!=null&&(no.bufferLength=to.bufferLength),no}hasWrappers(){return this.wrappers.length>0}getName(to){return this.termNames?this.termNames[to]:String(to<=this.maxNode&&this.nodeSet.types[to].name||to)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(to){let no=this.dynamicPrecedences;return no==null?0:no[to]||0}parseDialect(to){let no=Object.keys(this.dialects),io=no.map(()=>!1);if(to)for(let ao of to.split(" ")){let lo=no.indexOf(ao);lo>=0&&(io[lo]=!0)}let so=null;for(let ao=0;aoio)&&no.p.parser.stateFlag(no.state,2)&&(!to||to.scoreeo.external(no,io)<<1|to}return eo.get}const printKeyword=1,indent=194,dedent=195,newline$1=196,blankLineStart=197,newlineBracketed=198,eof=199,stringContent=200,Escape=2,replacementStart=3,stringEnd=201,ParenL=24,ParenthesizedExpression=25,TupleExpression=49,ComprehensionExpression=50,BracketL=55,ArrayExpression=56,ArrayComprehensionExpression=57,BraceL=59,DictionaryExpression=60,DictionaryComprehensionExpression=61,SetExpression=62,SetComprehensionExpression=63,ArgList=65,subscript=238,String$1=71,stringStart=241,stringStartD=242,stringStartL=243,stringStartLD=244,stringStartR=245,stringStartRD=246,stringStartRL=247,stringStartRLD=248,FormatString=72,stringStartF=249,stringStartFD=250,stringStartFL=251,stringStartFLD=252,stringStartFR=253,stringStartFRD=254,stringStartFRL=255,stringStartFRLD=256,FormatReplacement=73,nestedFormatReplacement=77,importList=264,TypeParamList=112,ParamList=130,SequencePattern=151,MappingPattern=152,PatternArgList=155,newline=10,carriageReturn=13,space=32,tab=9,hash=35,parenOpen=40,dot=46,braceOpen=123,braceClose=125,singleQuote=39,doubleQuote=34,backslash=92,letter_o=111,letter_x=120,letter_N=78,letter_u=117,letter_U=85,bracketed=new Set([ParenthesizedExpression,TupleExpression,ComprehensionExpression,importList,ArgList,ParamList,ArrayExpression,ArrayComprehensionExpression,subscript,SetExpression,SetComprehensionExpression,FormatString,FormatReplacement,nestedFormatReplacement,DictionaryExpression,DictionaryComprehensionExpression,SequencePattern,MappingPattern,PatternArgList,TypeParamList]);function isLineBreak(eo){return eo==newline||eo==carriageReturn}function isHex(eo){return eo>=48&&eo<=57||eo>=65&&eo<=70||eo>=97&&eo<=102}const newlines=new ExternalTokenizer((eo,to)=>{let no;if(eo.next<0)eo.acceptToken(eof);else if(to.context.flags&cx_Bracketed)isLineBreak(eo.next)&&eo.acceptToken(newlineBracketed,1);else if(((no=eo.peek(-1))<0||isLineBreak(no))&&to.canShift(blankLineStart)){let io=0;for(;eo.next==space||eo.next==tab;)eo.advance(),io++;(eo.next==newline||eo.next==carriageReturn||eo.next==hash)&&eo.acceptToken(blankLineStart,-io)}else isLineBreak(eo.next)&&eo.acceptToken(newline$1,1)},{contextual:!0}),indentation=new ExternalTokenizer((eo,to)=>{let no=to.context;if(no.flags)return;let io=eo.peek(-1);if(io==newline||io==carriageReturn){let so=0,ao=0;for(;;){if(eo.next==space)so++;else if(eo.next==tab)so+=8-so%8;else break;eo.advance(),ao++}so!=no.indent&&eo.next!=newline&&eo.next!=carriageReturn&&eo.next!=hash&&(so[eo,to|cx_String])),trackIndent=new ContextTracker({start:topIndent,reduce(eo,to,no,io){return eo.flags&cx_Bracketed&&bracketed.has(to)||(to==String$1||to==FormatString)&&eo.flags&cx_String?eo.parent:eo},shift(eo,to,no,io){return to==indent?new Context(eo,countIndent(io.read(io.pos,no.pos)),0):to==dedent?eo.parent:to==ParenL||to==BracketL||to==BraceL||to==replacementStart?new Context(eo,0,cx_Bracketed):stringFlags.has(to)?new Context(eo,0,stringFlags.get(to)|eo.flags&cx_Bracketed):eo},hash(eo){return eo.hash}}),legacyPrint=new ExternalTokenizer(eo=>{for(let to=0;to<5;to++){if(eo.next!="print".charCodeAt(to))return;eo.advance()}if(!/\w/.test(String.fromCharCode(eo.next)))for(let to=0;;to++){let no=eo.peek(to);if(!(no==space||no==tab)){no!=parenOpen&&no!=dot&&no!=newline&&no!=carriageReturn&&no!=hash&&eo.acceptToken(printKeyword);return}}}),strings=new ExternalTokenizer((eo,to)=>{let{flags:no}=to.context,io=no&cx_DoubleQuote?doubleQuote:singleQuote,so=(no&cx_Long)>0,ao=!(no&cx_Raw),lo=(no&cx_Format)>0,uo=eo.pos;for(;!(eo.next<0);)if(lo&&eo.next==braceOpen)if(eo.peek(1)==braceOpen)eo.advance(2);else{if(eo.pos==uo){eo.acceptToken(replacementStart,1);return}break}else if(ao&&eo.next==backslash){if(eo.pos==uo){eo.advance();let ho=eo.next;ho>=0&&(eo.advance(),skipEscape(eo,ho)),eo.acceptToken(Escape);return}break}else if(eo.next==io&&(!so||eo.peek(1)==io&&eo.peek(2)==io)){if(eo.pos==uo){eo.acceptToken(stringEnd,so?3:1);return}break}else if(eo.next==newline){if(so)eo.advance();else if(eo.pos==uo){eo.acceptToken(stringEnd);return}break}else eo.advance();eo.pos>uo&&eo.acceptToken(stringContent)});function skipEscape(eo,to){if(to==letter_o)for(let no=0;no<2&&eo.next>=48&&eo.next<=55;no++)eo.advance();else if(to==letter_x)for(let no=0;no<2&&isHex(eo.next);no++)eo.advance();else if(to==letter_u)for(let no=0;no<4&&isHex(eo.next);no++)eo.advance();else if(to==letter_U)for(let no=0;no<8&&isHex(eo.next);no++)eo.advance();else if(to==letter_N&&eo.next==braceOpen){for(eo.advance();eo.next>=0&&eo.next!=braceClose&&eo.next!=singleQuote&&eo.next!=doubleQuote&&eo.next!=newline;)eo.advance();eo.next==braceClose&&eo.advance()}}const pythonHighlighting=styleTags({'async "*" "**" FormatConversion FormatSpec':tags$1.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":tags$1.controlKeyword,"in not and or is del":tags$1.operatorKeyword,"from def class global nonlocal lambda":tags$1.definitionKeyword,import:tags$1.moduleKeyword,"with as print":tags$1.keyword,Boolean:tags$1.bool,None:tags$1.null,VariableName:tags$1.variableName,"CallExpression/VariableName":tags$1.function(tags$1.variableName),"FunctionDefinition/VariableName":tags$1.function(tags$1.definition(tags$1.variableName)),"ClassDefinition/VariableName":tags$1.definition(tags$1.className),PropertyName:tags$1.propertyName,"CallExpression/MemberExpression/PropertyName":tags$1.function(tags$1.propertyName),Comment:tags$1.lineComment,Number:tags$1.number,String:tags$1.string,FormatString:tags$1.special(tags$1.string),Escape:tags$1.escape,UpdateOp:tags$1.updateOperator,"ArithOp!":tags$1.arithmeticOperator,BitOp:tags$1.bitwiseOperator,CompareOp:tags$1.compareOperator,AssignOp:tags$1.definitionOperator,Ellipsis:tags$1.punctuation,At:tags$1.meta,"( )":tags$1.paren,"[ ]":tags$1.squareBracket,"{ }":tags$1.brace,".":tags$1.derefOperator,", ;":tags$1.separator}),spec_identifier={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},parser$j=LRParser.deserialize({version:14,states:"##pO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO1XQdO'#EfO3rQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO3}QdO'#EyO4UQdO'#FOO4aQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4fQdO'#F[P4mOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Cl'#ClO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO4xQdO'#DoOOQS,5:Y,5:YO5]QdO'#HdOOQS,5:],5:]O5jQ!fO,5:]O5oQtO,59YO1lQdO,59bO1lQdO,59bO1lQdO,59bO8_QdO,59bO8dQdO,59bO8kQdO,59jO8rQdO'#HTO9xQdO'#HSOOQS'#HS'#HSOOQS'#D['#D[O:aQdO,59aO'vQdO,59aO:oQdO,59aOOQS,59y,59yO:tQdO,5:RO'vQdO,5:ROOQS,5:Q,5:QO;SQdO,5:QO;XQdO,5:XO'vQdO,5:XO'vQdO,5:VOOQS,5:U,5:UO;jQdO,5:UO;oQdO,5:WOOOW'#Fy'#FyO;tOWO,5:aOOQS,5:a,5:aOOOOQS'#Ds'#DsOOQS1G/w1G/wOOQS1G.|1G.|O!.mQtO1G.|O!.tQtO1G.|O1lQdO1G.|O!/aQdO1G/UOOQS'#DZ'#DZO0rQdO,59tOOQS1G.{1G.{O!/hQdO1G/eO!/xQdO1G/eO!0QQdO1G/fO'vQdO'#H[O!0VQdO'#H[O!0[QtO1G.{O!0lQdO,59iO!1rQdO,5=zO!2SQdO,5=zO!2[QdO1G/mO!2aQtO1G/mOOQS1G/l1G/lO!2qQdO,5=uO!3hQdO,5=uO0rQdO1G/qO!4VQdO1G/sO!4[QtO1G/sO!4lQtO1G/qOOQS1G/p1G/pOOQS1G/r1G/rOOOW-E9w-E9wOOQS1G/{1G/{O!4|QdO'#HxO0rQdO'#HxO!5_QdO,5>cOOOW-E9x-E9xOOQS1G/|1G/|OOQS-E9{-E9{O!5mQ#xO1G2zO!6^QtO1G2zO'vQdO,5iOOQS1G1`1G1`O!7^QdO1G1`OOQS'#DV'#DVO0rQdO,5=qOOQS,5=q,5=qO!7cQdO'#FrO!7nQdO,59oO!7vQdO1G/XO!8QQtO,5=uOOQS1G3`1G3`OOQS,5:m,5:mO!8qQdO'#GtOOQS,5lO!:sQdO,5>lO!;RQdO,5>hO!;iQdO,5>hO!;zQdO'#EpO0rQdO1G0tO!oO!D_QdO,5>oO!DgQtO,5>oO0rQdO1G1PO!DqQdO1G1PO4aQdO1G1UO!!_QdO1G1WOOQV,5;a,5;aO!DvQfO,5;aO!D{QgO1G1QO!H|QdO'#GZO4aQdO1G1QO4aQdO1G1QO!I^QdO,5>pO!IkQdO,5>pO1XQdO,5>pOOQV1G1U1G1UO!IsQdO'#FSO!JUQ!fO1G1WO!J^QdO1G1WOOQV1G1]1G1]O4aQdO1G1]O!JcQdO1G1]O!JkQdO'#F^OOQV1G1b1G1bO!!rQtO1G1bPOOO1G2v1G2vP!JpOSO1G2vOOQS,5=},5=}OOQS'#Dp'#DpO0rQdO,5=}O!JuQdO,5=|O!KYQdO,5=|OOQS1G/u1G/uO!KbQdO,5>PO!KrQdO,5>PO!KzQdO,5>PO!L_QdO,5>PO!LoQdO,5>POOQS1G3j1G3jOOQS7+$h7+$hO!7vQdO7+$pO!NbQdO1G.|O!NiQdO1G.|OOQS1G/`1G/`OOQS,5<`,5<`O'vQdO,5<`OOQS7+%P7+%PO!NpQdO7+%POOQS-E9r-E9rOOQS7+%Q7+%QO# QQdO,5=vO'vQdO,5=vOOQS7+$g7+$gO# VQdO7+%PO# _QdO7+%QO# dQdO1G3fOOQS7+%X7+%XO# tQdO1G3fO# |QdO7+%XOOQS,5<_,5<_O'vQdO,5<_O#!RQdO1G3aOOQS-E9q-E9qO#!xQdO7+%]OOQS7+%_7+%_O##WQdO1G3aO##uQdO7+%_O##zQdO1G3gO#$[QdO1G3gO#$dQdO7+%]O#$iQdO,5>dO#%SQdO,5>dO#%SQdO,5>dOOQS'#Dx'#DxO#%eO&jO'#DzO#%pO`O'#HyOOOW1G3}1G3}O#%uQdO1G3}O#%}QdO1G3}O#&YQ#xO7+(fO#&yQtO1G2UP#'dQdO'#GOOOQS,5e,5>eOOOW7+)i7+)iO#=gQdO7+)iO#=oQdO1G2zO#>YQdO1G2zP'vQdO'#FuO0rQdO<kQdO,5>kO#>|QdO,5>kO1XQdO,5>kO#?_QdO,5>jOOQS<mO#?rQdO,5>mOOQS1G0v1G0vOOQS<rO#IXQdO,5>rOOQS,5>r,5>rO#IdQdO,5>qO#IuQdO,5>qOOQS1G1Y1G1YOOQS,5;p,5;pOOQV<VAN>VO#MUQdO<cAN>cO0rQdO1G1|O#MfQtO1G1|P#MpQdO'#FvOOQS1G2R1G2RP#M}QdO'#F{O#N[QdO7+)jO#NuQdO,5>gOOOO-E9z-E9zOOOW<tO$4^QdO,5>tO1XQdO,5vO$'zQdO,5>vOOQS1G1p1G1pO$8UQtO,5<[OOQU7+'P7+'PO$*WQdO1G/iO$'zQdO,5wO$8dQdO,5>wOOQS1G1s1G1sOOQS7+'S7+'SP$'zQdO'#GdO$8lQdO1G4bO$8vQdO1G4bO$9OQdO1G4bOOQS7+%T7+%TO$9^QdO1G1tO$9lQtO'#FaO$9sQdO,5<}OOQS,5<},5<}O$:RQdO1G4cOOQS-E:a-E:aO$'zQdO,5<|O$:YQdO,5<|O$:_QdO7+)|OOQS-E:`-E:`O$:iQdO7+)|O$'zQdO,5PPP>S>t>wPP'Z'ZPP?WPP'Z'ZPP'Z'Z'Z'Z'Z?[@U'ZP@XP@_DfHSHWPHZHeHi'ZPPPHlHu'RP'R'RP'RP'RP'RP'RP'R'R'RP'RPP'RPP'RP'RPH{IXIaPIhInPIhPIhIhPPPIhPK|PLVLaLgK|PIhLpPIhPLwL}PMRMgNUNoMRMRNu! SMRMRMRMR! h! n! q! v! y!!T!!Z!!g!!y!#P!#Z!#a!#}!$T!$Z!$e!$k!$q!%T!%_!%e!%k!%q!%{!&R!&X!&_!&e!&o!&u!'P!'V!'`!'f!'u!'}!(X!(`PPPPPPPPPPP!(f!(i!(o!(x!)S!)_PPPPPPPPPPPP!.R!/g!3g!6wPP!7P!7`!7i!8b!8X!8k!8q!8t!8w!8z!9S!9sPPPPPPPPPPPPPPPPP!9v!9z!:QP!:f!:j!:v!;S!;Y!;c!;f!;i!;o!;u!;{!_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!_%T!_!`([!`#T%T#T#U(r#U#f%T#f#g(r#g#h(r#h#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(cTmR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(yT!mR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk)aV&n`&[ZOr%Trs)vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk){V&n`Or%Trs*bs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk*iT&n`&^ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To+PZS_&n`OY*xYZ%TZ]*x]^%T^#o*x#o#p+r#p#q*x#q#r+r#r;'S*x;'S;=`,^<%lO*x_+wTS_OY+rZ]+r^;'S+r;'S;=`,W<%lO+r_,ZP;=`<%l+ro,aP;=`<%l*xj,kV%rQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-XT!xY&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-oV%lQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.]V&n`&ZZOw%Twx.rx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.wV&n`Ow%Twx/^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/eT&n`&]ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/{ThZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc0cTgR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk0yXVZ&n`Oz%Tz{1f{!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk1mVaR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk2ZV%oZ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc2wTzR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To3_W%pZ&n`O!_%T!_!`-Q!`!a3w!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Td4OT&{S&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk4fX!fQ&n`O!O%T!O!P5R!P!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5WV&n`O!O%T!O!P5m!P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5tT!rZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti6[a!hX&n`O!Q%T!Q![6T![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S6T#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti7fZ&n`O{%T{|8X|}%T}!O8X!O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8^V&n`O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8z]!hX&n`O!Q%T!Q![8s![!l%T!l!m9s!m#R%T#R#S8s#S#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti9zT!hX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk:bX%qR&n`O!P%T!P!Q:}!Q!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj;UV%sQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti;ro!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!d%T!d!e?q!e!g%T!g!h7a!h!l%T!l!m9s!m!q%T!q!rA]!r!z%T!z!{Bq!{#R%T#R#S>_#S#U%T#U#V?q#V#X%T#X#Y7a#Y#^%T#^#_9s#_#c%T#c#dA]#d#l%T#l#mBq#m#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti=xV&n`O!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti>fc!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S>_#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti?vY&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti@mY!hX&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiAbX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBUX!hX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBv]&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiCv]!hX&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToDvV{_&n`O!_%T!_!`E]!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TcEdT%{R&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkEzT#gZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkFbXmR&n`O!^%T!^!_F}!_!`([!`!a([!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjGUV%mQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkGrV%zZ&n`O!_%T!_!`([!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkH`WmR&n`O!_%T!_!`([!`!aHx!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjIPV%nQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkIoV_Q#}P&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToJ_]&n`&YS%uZO!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoKZP;=`<%lJUoKge&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!tJU!t!uLx!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#gLx#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoMRa&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUkN_V&n`&`ZOr%TrsNts#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkNyV&n`Or%Trs! `s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! gT&n`&bZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! }V&n`&_ZOw%Twx!!dx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!!iV&n`Ow%Twx!#Ox#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!#VT&n`&aZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!#oe&n`&YS%uZOr%Trs!%Qsw%Twx!&px!Q%T!Q![JU![!c%T!c!tJU!t!u!(`!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#g!(`#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!%XV&n`&dZOr%Trs!%ns#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!%sV&n`Or%Trs!&Ys#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&aT&n`&fZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&wV&n`&cZOw%Twx!'^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!'cV&n`Ow%Twx!'xx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!(PT&n`&eZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!(ia&n`&YS%uZOr%Trs!)nsw%Twx!+^x!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!)uV&n`&hZOr%Trs!*[s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*aV&n`Or%Trs!*vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*}T&n`&jZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!+eV&n`&gZOw%Twx!+zx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,PV&n`Ow%Twx!,fx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[legacyPrint,indentation,newlines,strings,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:eo=>spec_identifier[eo]||-1}],tokenPrec:7646}),cache$1=new NodeWeakMap,ScopeNodes=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function defID(eo){return(to,no,io)=>{if(io)return!1;let so=to.node.getChild("VariableName");return so&&no(so,eo),!0}}const gatherCompletions={FunctionDefinition:defID("function"),ClassDefinition:defID("class"),ForStatement(eo,to,no){if(no){for(let io=eo.node.firstChild;io;io=io.nextSibling)if(io.name=="VariableName")to(io,"variable");else if(io.name=="in")break}},ImportStatement(eo,to){var no,io;let{node:so}=eo,ao=((no=so.firstChild)===null||no===void 0?void 0:no.name)=="from";for(let lo=so.getChild("import");lo;lo=lo.nextSibling)lo.name=="VariableName"&&((io=lo.nextSibling)===null||io===void 0?void 0:io.name)!="as"&&to(lo,ao?"variable":"namespace")},AssignStatement(eo,to){for(let no=eo.node.firstChild;no;no=no.nextSibling)if(no.name=="VariableName")to(no,"variable");else if(no.name==":"||no.name=="AssignOp")break},ParamList(eo,to){for(let no=null,io=eo.node.firstChild;io;io=io.nextSibling)io.name=="VariableName"&&(!no||!/\*|AssignOp/.test(no.name))&&to(io,"variable"),no=io},CapturePattern:defID("variable"),AsPattern:defID("variable"),__proto__:null};function getScope(eo,to){let no=cache$1.get(to);if(no)return no;let io=[],so=!0;function ao(lo,uo){let ho=eo.sliceString(lo.from,lo.to);io.push({label:ho,type:uo})}return to.cursor(IterMode.IncludeAnonymous).iterate(lo=>{if(lo.name){let uo=gatherCompletions[lo.name];if(uo&&uo(lo,ao,so)||!so&&ScopeNodes.has(lo.name))return!1;so=!1}else if(lo.to-lo.from>8192){for(let uo of getScope(eo,lo.node))io.push(uo);return!1}}),cache$1.set(to,io),io}const Identifier=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,dontComplete=["String","FormatString","Comment","PropertyName"];function localCompletionSource(eo){let to=syntaxTree(eo.state).resolveInner(eo.pos,-1);if(dontComplete.indexOf(to.name)>-1)return null;let no=to.name=="VariableName"||to.to-to.from<20&&Identifier.test(eo.state.sliceDoc(to.from,to.to));if(!no&&!eo.explicit)return null;let io=[];for(let so=to;so;so=so.parent)ScopeNodes.has(so.name)&&(io=io.concat(getScope(eo.state.doc,so)));return{options:io,from:no?to.from:eo.pos,validFor:Identifier}}const globals=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(eo=>({label:eo,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(eo=>({label:eo,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(eo=>({label:eo,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(eo=>({label:eo,type:"function"}))),snippets=[snippetCompletion("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),snippetCompletion("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),snippetCompletion("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),snippetCompletion("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),snippetCompletion(`if \${}: +`;this.styleTag.textContent=lo;let uo=no.head||no;this.styleTag.parentNode!=uo&&uo.insertBefore(this.styleTag,uo.firstChild)}}setNonce(to){this.styleTag&&this.styleTag.getAttribute("nonce")!=to&&this.styleTag.setAttribute("nonce",to)}}var base={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},shift={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},mac=typeof navigator<"u"&&/Mac/.test(navigator.platform),ie$1=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var i$2=0;i$2<10;i$2++)base[48+i$2]=base[96+i$2]=String(i$2);for(var i$2=1;i$2<=24;i$2++)base[i$2+111]="F"+i$2;for(var i$2=65;i$2<=90;i$2++)base[i$2]=String.fromCharCode(i$2+32),shift[i$2]=String.fromCharCode(i$2);for(var code in base)shift.hasOwnProperty(code)||(shift[code]=base[code]);function keyName(eo){var to=mac&&eo.metaKey&&eo.shiftKey&&!eo.ctrlKey&&!eo.altKey||ie$1&&eo.shiftKey&&eo.key&&eo.key.length==1||eo.key=="Unidentified",no=!to&&eo.key||(eo.shiftKey?shift:base)[eo.keyCode]||eo.key||"Unidentified";return no=="Esc"&&(no="Escape"),no=="Del"&&(no="Delete"),no=="Left"&&(no="ArrowLeft"),no=="Up"&&(no="ArrowUp"),no=="Right"&&(no="ArrowRight"),no=="Down"&&(no="ArrowDown"),no}function getSelection(eo){let to;return eo.nodeType==11?to=eo.getSelection?eo:eo.ownerDocument:to=eo,to.getSelection()}function contains$1(eo,to){return to?eo==to||eo.contains(to.nodeType!=1?to.parentNode:to):!1}function deepActiveElement(eo){let to=eo.activeElement;for(;to&&to.shadowRoot;)to=to.shadowRoot.activeElement;return to}function hasSelection(eo,to){if(!to.anchorNode)return!1;try{return contains$1(eo,to.anchorNode)}catch{return!1}}function clientRectsFor(eo){return eo.nodeType==3?textRange(eo,0,eo.nodeValue.length).getClientRects():eo.nodeType==1?eo.getClientRects():[]}function isEquivalentPosition(eo,to,no,io){return no?scanFor(eo,to,no,io,-1)||scanFor(eo,to,no,io,1):!1}function domIndex(eo){for(var to=0;;to++)if(eo=eo.previousSibling,!eo)return to}function isBlockElement(eo){return eo.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(eo.nodeName)}function scanFor(eo,to,no,io,so){for(;;){if(eo==no&&to==io)return!0;if(to==(so<0?0:maxOffset(eo))){if(eo.nodeName=="DIV")return!1;let ao=eo.parentNode;if(!ao||ao.nodeType!=1)return!1;to=domIndex(eo)+(so<0?0:1),eo=ao}else if(eo.nodeType==1){if(eo=eo.childNodes[to+(so<0?-1:0)],eo.nodeType==1&&eo.contentEditable=="false")return!1;to=so<0?maxOffset(eo):0}else return!1}}function maxOffset(eo){return eo.nodeType==3?eo.nodeValue.length:eo.childNodes.length}function flattenRect(eo,to){let no=to?eo.left:eo.right;return{left:no,right:no,top:eo.top,bottom:eo.bottom}}function windowRect(eo){let to=eo.visualViewport;return to?{left:0,right:to.width,top:0,bottom:to.height}:{left:0,right:eo.innerWidth,top:0,bottom:eo.innerHeight}}function getScale(eo,to){let no=to.width/eo.offsetWidth,io=to.height/eo.offsetHeight;return(no>.995&&no<1.005||!isFinite(no)||Math.abs(to.width-eo.offsetWidth)<1)&&(no=1),(io>.995&&io<1.005||!isFinite(io)||Math.abs(to.height-eo.offsetHeight)<1)&&(io=1),{scaleX:no,scaleY:io}}function scrollRectIntoView(eo,to,no,io,so,ao,lo,uo){let ho=eo.ownerDocument,go=ho.defaultView||window;for(let mo=eo,yo=!1;mo&&!yo;)if(mo.nodeType==1){let So,_o=mo==ho.body,ko=1,Co=1;if(_o)So=windowRect(go);else{if(/^(fixed|sticky)$/.test(getComputedStyle(mo).position)&&(yo=!0),mo.scrollHeight<=mo.clientHeight&&mo.scrollWidth<=mo.clientWidth){mo=mo.assignedSlot||mo.parentNode;continue}let Oo=mo.getBoundingClientRect();({scaleX:ko,scaleY:Co}=getScale(mo,Oo)),So={left:Oo.left,right:Oo.left+mo.clientWidth*ko,top:Oo.top,bottom:Oo.top+mo.clientHeight*Co}}let $o=0,Ro=0;if(so=="nearest")to.top0&&to.bottom>So.bottom+Ro&&(Ro=to.bottom-So.bottom+Ro+lo)):to.bottom>So.bottom&&(Ro=to.bottom-So.bottom+lo,no<0&&to.top-Ro0&&to.right>So.right+$o&&($o=to.right-So.right+$o+ao)):to.right>So.right&&($o=to.right-So.right+ao,no<0&&to.leftno.clientHeight||no.scrollWidth>no.clientWidth)return no;no=no.assignedSlot||no.parentNode}else if(no.nodeType==11)no=no.host;else break;return null}class DOMSelectionState{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(to){return this.anchorNode==to.anchorNode&&this.anchorOffset==to.anchorOffset&&this.focusNode==to.focusNode&&this.focusOffset==to.focusOffset}setRange(to){let{anchorNode:no,focusNode:io}=to;this.set(no,Math.min(to.anchorOffset,no?maxOffset(no):0),io,Math.min(to.focusOffset,io?maxOffset(io):0))}set(to,no,io,so){this.anchorNode=to,this.anchorOffset=no,this.focusNode=io,this.focusOffset=so}}let preventScrollSupported=null;function focusPreventScroll(eo){if(eo.setActive)return eo.setActive();if(preventScrollSupported)return eo.focus(preventScrollSupported);let to=[];for(let no=eo;no&&(to.push(no,no.scrollTop,no.scrollLeft),no!=no.ownerDocument);no=no.parentNode);if(eo.focus(preventScrollSupported==null?{get preventScroll(){return preventScrollSupported={preventScroll:!0},!0}}:void 0),!preventScrollSupported){preventScrollSupported=!1;for(let no=0;noMath.max(1,eo.scrollHeight-eo.clientHeight-4)}function textNodeBefore(eo,to){for(let no=eo,io=to;;){if(no.nodeType==3&&io>0)return{node:no,offset:io};if(no.nodeType==1&&io>0){if(no.contentEditable=="false")return null;no=no.childNodes[io-1],io=maxOffset(no)}else if(no.parentNode&&!isBlockElement(no))io=domIndex(no),no=no.parentNode;else return null}}function textNodeAfter(eo,to){for(let no=eo,io=to;;){if(no.nodeType==3&&iono)return yo.domBoundsAround(to,no,go);if(So>=to&&so==-1&&(so=ho,ao=go),go>no&&yo.dom.parentNode==this.dom){lo=ho,uo=mo;break}mo=So,go=So+yo.breakAfter}return{from:ao,to:uo<0?io+this.length:uo,startDOM:(so?this.children[so-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:lo=0?this.children[lo].dom:null}}markDirty(to=!1){this.flags|=2,this.markParentsDirty(to)}markParentsDirty(to){for(let no=this.parent;no;no=no.parent){if(to&&(no.flags|=2),no.flags&1)return;no.flags|=1,to=!1}}setParent(to){this.parent!=to&&(this.parent=to,this.flags&7&&this.markParentsDirty(!0))}setDOM(to){this.dom!=to&&(this.dom&&(this.dom.cmView=null),this.dom=to,to.cmView=this)}get rootView(){for(let to=this;;){let no=to.parent;if(!no)return to;to=no}}replaceChildren(to,no,io=noChildren){this.markDirty();for(let so=to;sothis.pos||to==this.pos&&(no>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=to-this.pos,this;let io=this.children[--this.i];this.pos-=io.length+io.breakAfter}}}function replaceRange(eo,to,no,io,so,ao,lo,uo,ho){let{children:go}=eo,mo=go.length?go[to]:null,yo=ao.length?ao[ao.length-1]:null,So=yo?yo.breakAfter:lo;if(!(to==io&&mo&&!lo&&!So&&ao.length<2&&mo.merge(no,so,ao.length?yo:null,no==0,uo,ho))){if(io0&&(!lo&&ao.length&&mo.merge(no,mo.length,ao[0],!1,uo,0)?mo.breakAfter=ao.shift().breakAfter:(no2);var browser={mac:ios||/Mac/.test(nav.platform),windows:/Win/.test(nav.platform),linux:/Linux|X11/.test(nav.platform),ie,ie_version:ie_upto10?doc.documentMode||6:ie_11up?+ie_11up[1]:ie_edge?+ie_edge[1]:0,gecko,gecko_version:gecko?+(/Firefox\/(\d+)/.exec(nav.userAgent)||[0,0])[1]:0,chrome:!!chrome,chrome_version:chrome?+chrome[1]:0,ios,android:/Android\b/.test(nav.userAgent),webkit,safari,webkit_version:webkit?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:doc.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const MaxJoinLen=256;class TextView extends ContentView{constructor(to){super(),this.text=to}get length(){return this.text.length}createDOM(to){this.setDOM(to||document.createTextNode(this.text))}sync(to,no){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(no&&no.node==this.dom&&(no.written=!0),this.dom.nodeValue=this.text)}reuseDOM(to){to.nodeType==3&&this.createDOM(to)}merge(to,no,io){return this.flags&8||io&&(!(io instanceof TextView)||this.length-(no-to)+io.length>MaxJoinLen||io.flags&8)?!1:(this.text=this.text.slice(0,to)+(io?io.text:"")+this.text.slice(no),this.markDirty(),!0)}split(to){let no=new TextView(this.text.slice(to));return this.text=this.text.slice(0,to),this.markDirty(),no.flags|=this.flags&8,no}localPosFromDOM(to,no){return to==this.dom?no:no?this.text.length:0}domAtPos(to){return new DOMPos(this.dom,to)}domBoundsAround(to,no,io){return{from:io,to:io+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(to,no){return textCoords(this.dom,to,no)}}class MarkView extends ContentView{constructor(to,no=[],io=0){super(),this.mark=to,this.children=no,this.length=io;for(let so of no)so.setParent(this)}setAttrs(to){if(clearAttributes(to),this.mark.class&&(to.className=this.mark.class),this.mark.attrs)for(let no in this.mark.attrs)to.setAttribute(no,this.mark.attrs[no]);return to}canReuseDOM(to){return super.canReuseDOM(to)&&!((this.flags|to.flags)&8)}reuseDOM(to){to.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(to),this.flags|=6)}sync(to,no){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(to,no)}merge(to,no,io,so,ao,lo){return io&&(!(io instanceof MarkView&&io.mark.eq(this.mark))||to&&ao<=0||noto&&no.push(io=to&&(so=ao),io=ho,ao++}let lo=this.length-to;return this.length=to,so>-1&&(this.children.length=so,this.markDirty()),new MarkView(this.mark,no,lo)}domAtPos(to){return inlineDOMAtPos(this,to)}coordsAt(to,no){return coordsInChildren(this,to,no)}}function textCoords(eo,to,no){let io=eo.nodeValue.length;to>io&&(to=io);let so=to,ao=to,lo=0;to==0&&no<0||to==io&&no>=0?browser.chrome||browser.gecko||(to?(so--,lo=1):ao=0)?0:uo.length-1];return browser.safari&&!lo&&ho.width==0&&(ho=Array.prototype.find.call(uo,go=>go.width)||ho),lo?flattenRect(ho,lo<0):ho||null}class WidgetView extends ContentView{static create(to,no,io){return new WidgetView(to,no,io)}constructor(to,no,io){super(),this.widget=to,this.length=no,this.side=io,this.prevWidget=null}split(to){let no=WidgetView.create(this.widget,this.length-to,this.side);return this.length-=to,no}sync(to){(!this.dom||!this.widget.updateDOM(this.dom,to))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(to)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(to,no,io,so,ao,lo){return io&&(!(io instanceof WidgetView)||!this.widget.compare(io.widget)||to>0&&ao<=0||no0)?DOMPos.before(this.dom):DOMPos.after(this.dom,to==this.length)}domBoundsAround(){return null}coordsAt(to,no){let io=this.widget.coordsAt(this.dom,to,no);if(io)return io;let so=this.dom.getClientRects(),ao=null;if(!so.length)return null;let lo=this.side?this.side<0:to>0;for(let uo=lo?so.length-1:0;ao=so[uo],!(to>0?uo==0:uo==so.length-1||ao.top0?DOMPos.before(this.dom):DOMPos.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(to){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Text$1.empty}get isHidden(){return!0}}TextView.prototype.children=WidgetView.prototype.children=WidgetBufferView.prototype.children=noChildren;function inlineDOMAtPos(eo,to){let no=eo.dom,{children:io}=eo,so=0;for(let ao=0;soao&&to0;ao--){let lo=io[ao-1];if(lo.dom.parentNode==no)return lo.domAtPos(lo.length)}for(let ao=so;ao0&&to instanceof MarkView&&so.length&&(io=so[so.length-1])instanceof MarkView&&io.mark.eq(to.mark)?joinInlineInto(io,to.children[0],no-1):(so.push(to),to.setParent(eo)),eo.length+=to.length}function coordsInChildren(eo,to,no){let io=null,so=-1,ao=null,lo=-1;function uo(go,mo){for(let yo=0,So=0;yo=mo&&(_o.children.length?uo(_o,mo-So):(!ao||ao.isHidden&&no>0)&&(ko>mo||So==ko&&_o.getSide()>0)?(ao=_o,lo=mo-So):(So-1?1:0)!=so.length-(no&&so.indexOf(no)>-1?1:0))return!1;for(let ao of io)if(ao!=no&&(so.indexOf(ao)==-1||eo[ao]!==to[ao]))return!1;return!0}function updateAttrs(eo,to,no){let io=!1;if(to)for(let so in to)no&&so in no||(io=!0,so=="style"?eo.style.cssText="":eo.removeAttribute(so));if(no)for(let so in no)to&&to[so]==no[so]||(io=!0,so=="style"?eo.style.cssText=no[so]:eo.setAttribute(so,no[so]));return io}function getAttrs(eo){let to=Object.create(null);for(let no=0;no0&&this.children[io-1].length==0;)this.children[--io].destroy();return this.children.length=io,this.markDirty(),this.length=to,no}transferDOM(to){this.dom&&(this.markDirty(),to.setDOM(this.dom),to.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(to){attrsEq(this.attrs,to)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=to)}append(to,no){joinInlineInto(this,to,no)}addLineDeco(to){let no=to.spec.attributes,io=to.spec.class;no&&(this.attrs=combineAttrs(no,this.attrs||{})),io&&(this.attrs=combineAttrs({class:io},this.attrs||{}))}domAtPos(to){return inlineDOMAtPos(this,to)}reuseDOM(to){to.nodeName=="DIV"&&(this.setDOM(to),this.flags|=6)}sync(to,no){var io;this.dom?this.flags&4&&(clearAttributes(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(updateAttrs(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(to,no);let so=this.dom.lastChild;for(;so&&ContentView.get(so)instanceof MarkView;)so=so.lastChild;if(!so||!this.length||so.nodeName!="BR"&&((io=ContentView.get(so))===null||io===void 0?void 0:io.isEditable)==!1&&(!browser.ios||!this.children.some(ao=>ao instanceof TextView))){let ao=document.createElement("BR");ao.cmIgnore=!0,this.dom.appendChild(ao)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let to=0,no;for(let io of this.children){if(!(io instanceof TextView)||/[^ -~]/.test(io.text))return null;let so=clientRectsFor(io.dom);if(so.length!=1)return null;to+=so[0].width,no=so[0].height}return to?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:to/this.length,textHeight:no}:null}coordsAt(to,no){let io=coordsInChildren(this,to,no);if(!this.children.length&&io&&this.parent){let{heightOracle:so}=this.parent.view.viewState,ao=io.bottom-io.top;if(Math.abs(ao-so.lineHeight)<2&&so.textHeight=no){if(ao instanceof LineView)return ao;if(lo>no)break}so=lo+ao.breakAfter}return null}}class BlockWidgetView extends ContentView{constructor(to,no,io){super(),this.widget=to,this.length=no,this.deco=io,this.breakAfter=0,this.prevWidget=null}merge(to,no,io,so,ao,lo){return io&&(!(io instanceof BlockWidgetView)||!this.widget.compare(io.widget)||to>0&&ao<=0||no0}}class WidgetType{eq(to){return!1}updateDOM(to,no){return!1}compare(to){return this==to||this.constructor==to.constructor&&this.eq(to)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(to){return!0}coordsAt(to,no,io){return null}get isHidden(){return!1}get editable(){return!1}destroy(to){}}var BlockType=function(eo){return eo[eo.Text=0]="Text",eo[eo.WidgetBefore=1]="WidgetBefore",eo[eo.WidgetAfter=2]="WidgetAfter",eo[eo.WidgetRange=3]="WidgetRange",eo}(BlockType||(BlockType={}));class Decoration extends RangeValue{constructor(to,no,io,so){super(),this.startSide=to,this.endSide=no,this.widget=io,this.spec=so}get heightRelevant(){return!1}static mark(to){return new MarkDecoration(to)}static widget(to){let no=Math.max(-1e4,Math.min(1e4,to.side||0)),io=!!to.block;return no+=io&&!to.inlineOrder?no>0?3e8:-4e8:no>0?1e8:-1e8,new PointDecoration(to,no,no,io,to.widget||null,!1)}static replace(to){let no=!!to.block,io,so;if(to.isBlockGap)io=-5e8,so=4e8;else{let{start:ao,end:lo}=getInclusive(to,no);io=(ao?no?-3e8:-1:5e8)-1,so=(lo?no?2e8:1:-6e8)+1}return new PointDecoration(to,io,so,no,to.widget||null,!0)}static line(to){return new LineDecoration(to)}static set(to,no=!1){return RangeSet.of(to,no)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Decoration.none=RangeSet.empty;class MarkDecoration extends Decoration{constructor(to){let{start:no,end:io}=getInclusive(to);super(no?-1:5e8,io?1:-6e8,null,to),this.tagName=to.tagName||"span",this.class=to.class||"",this.attrs=to.attributes||null}eq(to){var no,io;return this==to||to instanceof MarkDecoration&&this.tagName==to.tagName&&(this.class||((no=this.attrs)===null||no===void 0?void 0:no.class))==(to.class||((io=to.attrs)===null||io===void 0?void 0:io.class))&&attrsEq(this.attrs,to.attrs,"class")}range(to,no=to){if(to>=no)throw new RangeError("Mark decorations may not be empty");return super.range(to,no)}}MarkDecoration.prototype.point=!1;class LineDecoration extends Decoration{constructor(to){super(-2e8,-2e8,null,to)}eq(to){return to instanceof LineDecoration&&this.spec.class==to.spec.class&&attrsEq(this.spec.attributes,to.spec.attributes)}range(to,no=to){if(no!=to)throw new RangeError("Line decoration ranges must be zero-length");return super.range(to,no)}}LineDecoration.prototype.mapMode=MapMode.TrackBefore;LineDecoration.prototype.point=!0;class PointDecoration extends Decoration{constructor(to,no,io,so,ao,lo){super(no,io,ao,to),this.block=so,this.isReplace=lo,this.mapMode=so?no<=0?MapMode.TrackBefore:MapMode.TrackAfter:MapMode.TrackDel}get type(){return this.startSide!=this.endSide?BlockType.WidgetRange:this.startSide<=0?BlockType.WidgetBefore:BlockType.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(to){return to instanceof PointDecoration&&widgetsEq(this.widget,to.widget)&&this.block==to.block&&this.startSide==to.startSide&&this.endSide==to.endSide}range(to,no=to){if(this.isReplace&&(to>no||to==no&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&no!=to)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(to,no)}}PointDecoration.prototype.point=!0;function getInclusive(eo,to=!1){let{inclusiveStart:no,inclusiveEnd:io}=eo;return no==null&&(no=eo.inclusive),io==null&&(io=eo.inclusive),{start:no??to,end:io??to}}function widgetsEq(eo,to){return eo==to||!!(eo&&to&&eo.compare(to))}function addRange(eo,to,no,io=0){let so=no.length-1;so>=0&&no[so]+io>=eo?no[so]=Math.max(no[so],to):no.push(eo,to)}class ContentBuilder{constructor(to,no,io,so){this.doc=to,this.pos=no,this.end=io,this.disallowBlockEffectsFor=so,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=to.iter(),this.skip=no}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let to=this.content[this.content.length-1];return!(to.breakAfter||to instanceof BlockWidgetView&&to.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new LineView),this.atCursorPos=!0),this.curLine}flushBuffer(to=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(wrapMarks(new WidgetBufferView(-1),to),to.length),this.pendingBuffer=0)}addBlockWidget(to){this.flushBuffer(),this.curLine=null,this.content.push(to)}finish(to){this.pendingBuffer&&to<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(to&&this.content.length&&this.content[this.content.length-1]instanceof BlockWidgetView)&&this.getLine()}buildText(to,no,io){for(;to>0;){if(this.textOff==this.text.length){let{value:ao,lineBreak:lo,done:uo}=this.cursor.next(this.skip);if(this.skip=0,uo)throw new Error("Ran out of text content when drawing inline views");if(lo){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,to--;continue}else this.text=ao,this.textOff=0}let so=Math.min(this.text.length-this.textOff,to,512);this.flushBuffer(no.slice(no.length-io)),this.getLine().append(wrapMarks(new TextView(this.text.slice(this.textOff,this.textOff+so)),no),io),this.atCursorPos=!0,this.textOff+=so,to-=so,io=0}}span(to,no,io,so){this.buildText(no-to,io,so),this.pos=no,this.openStart<0&&(this.openStart=so)}point(to,no,io,so,ao,lo){if(this.disallowBlockEffectsFor[lo]&&io instanceof PointDecoration){if(io.block)throw new RangeError("Block decorations may not be specified via plugins");if(no>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let uo=no-to;if(io instanceof PointDecoration)if(io.block)io.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new BlockWidgetView(io.widget||NullWidget.block,uo,io));else{let ho=WidgetView.create(io.widget||NullWidget.inline,uo,uo?0:io.startSide),go=this.atCursorPos&&!ho.isEditable&&ao<=so.length&&(to0),mo=!ho.isEditable&&(toso.length||io.startSide<=0),yo=this.getLine();this.pendingBuffer==2&&!go&&!ho.isEditable&&(this.pendingBuffer=0),this.flushBuffer(so),go&&(yo.append(wrapMarks(new WidgetBufferView(1),so),ao),ao=so.length+Math.max(0,ao-so.length)),yo.append(wrapMarks(ho,so),ao),this.atCursorPos=mo,this.pendingBuffer=mo?toso.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=so.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(io);uo&&(this.textOff+uo<=this.text.length?this.textOff+=uo:(this.skip+=uo-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=no),this.openStart<0&&(this.openStart=ao)}static build(to,no,io,so,ao){let lo=new ContentBuilder(to,no,io,ao);return lo.openEnd=RangeSet.spans(so,no,io,lo),lo.openStart<0&&(lo.openStart=lo.openEnd),lo.finish(lo.openEnd),lo}}function wrapMarks(eo,to){for(let no of to)eo=new MarkView(no,[eo],eo.length);return eo}class NullWidget extends WidgetType{constructor(to){super(),this.tag=to}eq(to){return to.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(to){return to.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}NullWidget.inline=new NullWidget("span");NullWidget.block=new NullWidget("div");var Direction=function(eo){return eo[eo.LTR=0]="LTR",eo[eo.RTL=1]="RTL",eo}(Direction||(Direction={}));const LTR=Direction.LTR,RTL=Direction.RTL;function dec(eo){let to=[];for(let no=0;no=no){if(uo.level==io)return lo;(ao<0||(so!=0?so<0?uo.fromno:to[ao].level>uo.level))&&(ao=lo)}}if(ao<0)throw new RangeError("Index out of range");return ao}}function isolatesEq(eo,to){if(eo.length!=to.length)return!1;for(let no=0;no=0;Co-=3)if(BracketStack[Co+1]==-_o){let $o=BracketStack[Co+2],Ro=$o&2?so:$o&4?$o&1?ao:so:0;Ro&&(types[yo]=types[BracketStack[Co]]=Ro),uo=Co;break}}else{if(BracketStack.length==189)break;BracketStack[uo++]=yo,BracketStack[uo++]=So,BracketStack[uo++]=ho}else if((ko=types[yo])==2||ko==1){let Co=ko==so;ho=Co?0:1;for(let $o=uo-3;$o>=0;$o-=3){let Ro=BracketStack[$o+2];if(Ro&2)break;if(Co)BracketStack[$o+2]|=2;else{if(Ro&4)break;BracketStack[$o+2]|=4}}}}}function processNeutrals(eo,to,no,io){for(let so=0,ao=io;so<=no.length;so++){let lo=so?no[so-1].to:eo,uo=soho;)ko==$o&&(ko=no[--Co].from,$o=Co?no[Co-1].to:eo),types[--ko]=_o;ho=mo}else ao=go,ho++}}}function emitSpans(eo,to,no,io,so,ao,lo){let uo=io%2?2:1;if(io%2==so%2)for(let ho=to,go=0;hoho&&lo.push(new BidiSpan(ho,Co.from,_o));let $o=Co.direction==LTR!=!(_o%2);computeSectionOrder(eo,$o?io+1:io,so,Co.inner,Co.from,Co.to,lo),ho=Co.to}ko=Co.to}else{if(ko==no||(mo?types[ko]!=uo:types[ko]==uo))break;ko++}So?emitSpans(eo,ho,ko,io+1,so,So,lo):hoto;){let mo=!0,yo=!1;if(!go||ho>ao[go-1].to){let Co=types[ho-1];Co!=uo&&(mo=!1,yo=Co==16)}let So=!mo&&uo==1?[]:null,_o=mo?io:io+1,ko=ho;e:for(;;)if(go&&ko==ao[go-1].to){if(yo)break e;let Co=ao[--go];if(!mo)for(let $o=Co.from,Ro=go;;){if($o==to)break e;if(Ro&&ao[Ro-1].to==$o)$o=ao[--Ro].from;else{if(types[$o-1]==uo)break e;break}}if(So)So.push(Co);else{Co.totypes.length;)types[types.length]=256;let io=[],so=to==LTR?0:1;return computeSectionOrder(eo,so,so,no,0,eo.length,io),io}function trivialOrder(eo){return[new BidiSpan(0,eo,0)]}let movedOver="";function moveVisually(eo,to,no,io,so){var ao;let lo=io.head-eo.from,uo=BidiSpan.find(to,lo,(ao=io.bidiLevel)!==null&&ao!==void 0?ao:-1,io.assoc),ho=to[uo],go=ho.side(so,no);if(lo==go){let So=uo+=so?1:-1;if(So<0||So>=to.length)return null;ho=to[uo=So],lo=ho.side(!so,no),go=ho.side(so,no)}let mo=findClusterBreak(eo.text,lo,ho.forward(so,no));(moho.to)&&(mo=go),movedOver=eo.text.slice(Math.min(lo,mo),Math.max(lo,mo));let yo=uo==(so?to.length-1:0)?null:to[uo+(so?1:-1)];return yo&&mo==go&&yo.level+(so?0:1)eo.some(to=>to)}),nativeSelectionHidden=Facet.define({combine:eo=>eo.some(to=>to)}),scrollHandler=Facet.define();class ScrollTarget{constructor(to,no="nearest",io="nearest",so=5,ao=5,lo=!1){this.range=to,this.y=no,this.x=io,this.yMargin=so,this.xMargin=ao,this.isSnapshot=lo}map(to){return to.empty?this:new ScrollTarget(this.range.map(to),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(to){return this.range.to<=to.doc.length?this:new ScrollTarget(EditorSelection.cursor(to.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const scrollIntoView$1=StateEffect.define({map:(eo,to)=>eo.map(to)});function logException(eo,to,no){let io=eo.facet(exceptionSink);io.length?io[0](to):window.onerror?window.onerror(String(to),no,void 0,void 0,to):no?console.error(no+":",to):console.error(to)}const editable=Facet.define({combine:eo=>eo.length?eo[0]:!0});let nextPluginID=0;const viewPlugin=Facet.define();class ViewPlugin{constructor(to,no,io,so,ao){this.id=to,this.create=no,this.domEventHandlers=io,this.domEventObservers=so,this.extension=ao(this)}static define(to,no){const{eventHandlers:io,eventObservers:so,provide:ao,decorations:lo}=no||{};return new ViewPlugin(nextPluginID++,to,io,so,uo=>{let ho=[viewPlugin.of(uo)];return lo&&ho.push(decorations.of(go=>{let mo=go.plugin(uo);return mo?lo(mo):Decoration.none})),ao&&ho.push(ao(uo)),ho})}static fromClass(to,no){return ViewPlugin.define(io=>new to(io),no)}}class PluginInstance{constructor(to){this.spec=to,this.mustUpdate=null,this.value=null}update(to){if(this.value){if(this.mustUpdate){let no=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(no)}catch(io){if(logException(no.state,io,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(to)}catch(no){logException(to.state,no,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(to){var no;if(!((no=this.value)===null||no===void 0)&&no.destroy)try{this.value.destroy()}catch(io){logException(to.state,io,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const editorAttributes=Facet.define(),contentAttributes=Facet.define(),decorations=Facet.define(),outerDecorations=Facet.define(),atomicRanges=Facet.define(),bidiIsolatedRanges=Facet.define();function getIsolatedRanges(eo,to){let no=eo.state.facet(bidiIsolatedRanges);if(!no.length)return no;let io=no.map(ao=>ao instanceof Function?ao(eo):ao),so=[];return RangeSet.spans(io,to.from,to.to,{point(){},span(ao,lo,uo,ho){let go=ao-to.from,mo=lo-to.from,yo=so;for(let So=uo.length-1;So>=0;So--,ho--){let _o=uo[So].spec.bidiIsolate,ko;if(_o==null&&(_o=autoDirection(to.text,go,mo)),ho>0&&yo.length&&(ko=yo[yo.length-1]).to==go&&ko.direction==_o)ko.to=mo,yo=ko.inner;else{let Co={from:go,to:mo,direction:_o,inner:[]};yo.push(Co),yo=Co.inner}}}}),so}const scrollMargins=Facet.define();function getScrollMargins(eo){let to=0,no=0,io=0,so=0;for(let ao of eo.state.facet(scrollMargins)){let lo=ao(eo);lo&&(lo.left!=null&&(to=Math.max(to,lo.left)),lo.right!=null&&(no=Math.max(no,lo.right)),lo.top!=null&&(io=Math.max(io,lo.top)),lo.bottom!=null&&(so=Math.max(so,lo.bottom)))}return{left:to,right:no,top:io,bottom:so}}const styleModule=Facet.define();class ChangedRange{constructor(to,no,io,so){this.fromA=to,this.toA=no,this.fromB=io,this.toB=so}join(to){return new ChangedRange(Math.min(this.fromA,to.fromA),Math.max(this.toA,to.toA),Math.min(this.fromB,to.fromB),Math.max(this.toB,to.toB))}addToSet(to){let no=to.length,io=this;for(;no>0;no--){let so=to[no-1];if(!(so.fromA>io.toA)){if(so.toAmo)break;ao+=2}if(!ho)return io;new ChangedRange(ho.fromA,ho.toA,ho.fromB,ho.toB).addToSet(io),lo=ho.toA,uo=ho.toB}}}class ViewUpdate{constructor(to,no,io){this.view=to,this.state=no,this.transactions=io,this.flags=0,this.startState=to.state,this.changes=ChangeSet.empty(this.startState.doc.length);for(let ao of io)this.changes=this.changes.compose(ao.changes);let so=[];this.changes.iterChangedRanges((ao,lo,uo,ho)=>so.push(new ChangedRange(ao,lo,uo,ho))),this.changedRanges=so}static create(to,no,io){return new ViewUpdate(to,no,io)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(to=>to.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class DocView extends ContentView{get length(){return this.view.state.doc.length}constructor(to){super(),this.view=to,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.compositionBarrier=Decoration.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(to.contentDOM),this.children=[new LineView],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new ChangedRange(0,0,0,to.state.doc.length)],0,null)}update(to){var no;let io=to.changedRanges;this.minWidth>0&&io.length&&(io.every(({fromA:go,toA:mo})=>mothis.minWidthTo)?(this.minWidthFrom=to.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=to.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let so=-1;this.view.inputState.composing>=0&&(!((no=this.domChanged)===null||no===void 0)&&no.newSel?so=this.domChanged.newSel.head:!touchesComposition(to.changes,this.hasComposition)&&!to.selectionSet&&(so=to.state.selection.main.head));let ao=so>-1?findCompositionRange(this.view,to.changes,so):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:go,to:mo}=this.hasComposition;io=new ChangedRange(go,mo,to.changes.mapPos(go,-1),to.changes.mapPos(mo,1)).addToSet(io.slice())}this.hasComposition=ao?{from:ao.range.fromB,to:ao.range.toB}:null,(browser.ie||browser.chrome)&&!ao&&to&&to.state.doc.lines!=to.startState.doc.lines&&(this.forceSelection=!0);let lo=this.decorations,uo=this.updateDeco(),ho=findChangedDeco(lo,uo,to.changes);return io=ChangedRange.extendWithRanges(io,ho),!(this.flags&7)&&io.length==0?!1:(this.updateInner(io,to.startState.doc.length,ao),to.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(to,no,io){this.view.viewState.mustMeasureContent=!0,this.updateChildren(to,no,io);let{observer:so}=this.view;so.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let lo=browser.chrome||browser.ios?{node:so.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,lo),this.flags&=-8,lo&&(lo.written||so.selectionRange.focusNode!=lo.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(lo=>lo.flags&=-9);let ao=[];if(this.view.viewport.from||this.view.viewport.to=0?so[lo]:null;if(!uo)break;let{fromA:ho,toA:go,fromB:mo,toB:yo}=uo,So,_o,ko,Co;if(io&&io.range.fromBmo){let Mo=ContentBuilder.build(this.view.state.doc,mo,io.range.fromB,this.decorations,this.dynamicDecorationMap),Bo=ContentBuilder.build(this.view.state.doc,io.range.toB,yo,this.decorations,this.dynamicDecorationMap);_o=Mo.breakAtStart,ko=Mo.openStart,Co=Bo.openEnd;let Fo=this.compositionView(io);Bo.breakAtStart?Fo.breakAfter=1:Bo.content.length&&Fo.merge(Fo.length,Fo.length,Bo.content[0],!1,Bo.openStart,0)&&(Fo.breakAfter=Bo.content[0].breakAfter,Bo.content.shift()),Mo.content.length&&Fo.merge(0,0,Mo.content[Mo.content.length-1],!0,0,Mo.openEnd)&&Mo.content.pop(),So=Mo.content.concat(Fo).concat(Bo.content)}else({content:So,breakAtStart:_o,openStart:ko,openEnd:Co}=ContentBuilder.build(this.view.state.doc,mo,yo,this.decorations,this.dynamicDecorationMap));let{i:$o,off:Ro}=ao.findPos(go,1),{i:Oo,off:No}=ao.findPos(ho,-1);replaceRange(this,Oo,No,$o,Ro,So,_o,ko,Co)}io&&this.fixCompositionDOM(io)}compositionView(to){let no=new TextView(to.text.nodeValue);no.flags|=8;for(let{deco:so}of to.marks)no=new MarkView(so,[no],no.length);let io=new LineView;return io.append(no,0),io}fixCompositionDOM(to){let no=(ao,lo)=>{lo.flags|=8|(lo.children.some(ho=>ho.flags&7)?1:0),this.markedForComposition.add(lo);let uo=ContentView.get(ao);uo&&uo!=lo&&(uo.dom=null),lo.setDOM(ao)},io=this.childPos(to.range.fromB,1),so=this.children[io.i];no(to.line,so);for(let ao=to.marks.length-1;ao>=-1;ao--)io=so.childPos(io.off,1),so=so.children[io.i],no(ao>=0?to.marks[ao].node:to.text,so)}updateSelection(to=!1,no=!1){(to||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let io=this.view.root.activeElement,so=io==this.dom,ao=!so&&hasSelection(this.dom,this.view.observer.selectionRange)&&!(io&&this.dom.contains(io));if(!(so||no||ao))return;let lo=this.forceSelection;this.forceSelection=!1;let uo=this.view.state.selection.main,ho=this.moveToLine(this.domAtPos(uo.anchor)),go=uo.empty?ho:this.moveToLine(this.domAtPos(uo.head));if(browser.gecko&&uo.empty&&!this.hasComposition&&betweenUneditable(ho)){let yo=document.createTextNode("");this.view.observer.ignore(()=>ho.node.insertBefore(yo,ho.node.childNodes[ho.offset]||null)),ho=go=new DOMPos(yo,0),lo=!0}let mo=this.view.observer.selectionRange;(lo||!mo.focusNode||(!isEquivalentPosition(ho.node,ho.offset,mo.anchorNode,mo.anchorOffset)||!isEquivalentPosition(go.node,go.offset,mo.focusNode,mo.focusOffset))&&!this.suppressWidgetCursorChange(mo,uo))&&(this.view.observer.ignore(()=>{browser.android&&browser.chrome&&this.dom.contains(mo.focusNode)&&inUneditable(mo.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let yo=getSelection(this.view.root);if(yo)if(uo.empty){if(browser.gecko){let So=nextToUneditable(ho.node,ho.offset);if(So&&So!=3){let _o=(So==1?textNodeBefore:textNodeAfter)(ho.node,ho.offset);_o&&(ho=new DOMPos(_o.node,_o.offset))}}yo.collapse(ho.node,ho.offset),uo.bidiLevel!=null&&yo.caretBidiLevel!==void 0&&(yo.caretBidiLevel=uo.bidiLevel)}else if(yo.extend){yo.collapse(ho.node,ho.offset);try{yo.extend(go.node,go.offset)}catch{}}else{let So=document.createRange();uo.anchor>uo.head&&([ho,go]=[go,ho]),So.setEnd(go.node,go.offset),So.setStart(ho.node,ho.offset),yo.removeAllRanges(),yo.addRange(So)}ao&&this.view.root.activeElement==this.dom&&(this.dom.blur(),io&&io.focus())}),this.view.observer.setSelectionRange(ho,go)),this.impreciseAnchor=ho.precise?null:new DOMPos(mo.anchorNode,mo.anchorOffset),this.impreciseHead=go.precise?null:new DOMPos(mo.focusNode,mo.focusOffset)}suppressWidgetCursorChange(to,no){return this.hasComposition&&no.empty&&!this.compositionBarrier.size&&isEquivalentPosition(to.focusNode,to.focusOffset,to.anchorNode,to.anchorOffset)&&this.posFromDOM(to.focusNode,to.focusOffset)==no.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:to}=this,no=to.state.selection.main,io=getSelection(to.root),{anchorNode:so,anchorOffset:ao}=to.observer.selectionRange;if(!io||!no.empty||!no.assoc||!io.modify)return;let lo=LineView.find(this,no.head);if(!lo)return;let uo=lo.posAtStart;if(no.head==uo||no.head==uo+lo.length)return;let ho=this.coordsAt(no.head,-1),go=this.coordsAt(no.head,1);if(!ho||!go||ho.bottom>go.top)return;let mo=this.domAtPos(no.head+no.assoc);io.collapse(mo.node,mo.offset),io.modify("move",no.assoc<0?"forward":"backward","lineboundary"),to.observer.readSelectionRange();let yo=to.observer.selectionRange;to.docView.posFromDOM(yo.anchorNode,yo.anchorOffset)!=no.from&&io.collapse(so,ao)}moveToLine(to){let no=this.dom,io;if(to.node!=no)return to;for(let so=to.offset;!io&&so=0;so--){let ao=ContentView.get(no.childNodes[so]);ao instanceof LineView&&(io=ao.domAtPos(ao.length))}return io?new DOMPos(io.node,io.offset,!0):to}nearest(to){for(let no=to;no;){let io=ContentView.get(no);if(io&&io.rootView==this)return io;no=no.parentNode}return null}posFromDOM(to,no){let io=this.nearest(to);if(!io)throw new RangeError("Trying to find position for a DOM position outside of the document");return io.localPosFromDOM(to,no)+io.posAtStart}domAtPos(to){let{i:no,off:io}=this.childCursor().findPos(to,-1);for(;no=0;lo--){let uo=this.children[lo],ho=ao-uo.breakAfter,go=ho-uo.length;if(hoto||uo.covers(1))&&(!io||uo instanceof LineView&&!(io instanceof LineView&&no>=0))&&(io=uo,so=go),ao=go}return io?io.coordsAt(to-so,no):null}coordsForChar(to){let{i:no,off:io}=this.childPos(to,1),so=this.children[no];if(!(so instanceof LineView))return null;for(;so.children.length;){let{i:uo,off:ho}=so.childPos(io,1);for(;;uo++){if(uo==so.children.length)return null;if((so=so.children[uo]).length)break}io=ho}if(!(so instanceof TextView))return null;let ao=findClusterBreak(so.text,io);if(ao==io)return null;let lo=textRange(so.dom,io,ao).getClientRects();for(let uo=0;uoMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,uo=-1,ho=this.view.textDirection==Direction.LTR;for(let go=0,mo=0;moso)break;if(go>=io){let _o=yo.dom.getBoundingClientRect();if(no.push(_o.height),lo){let ko=yo.dom.lastChild,Co=ko?clientRectsFor(ko):[];if(Co.length){let $o=Co[Co.length-1],Ro=ho?$o.right-_o.left:_o.right-$o.left;Ro>uo&&(uo=Ro,this.minWidth=ao,this.minWidthFrom=go,this.minWidthTo=So)}}}go=So+yo.breakAfter}return no}textDirectionAt(to){let{i:no}=this.childPos(to,1);return getComputedStyle(this.children[no].dom).direction=="rtl"?Direction.RTL:Direction.LTR}measureTextSize(){for(let ao of this.children)if(ao instanceof LineView){let lo=ao.measureTextSize();if(lo)return lo}let to=document.createElement("div"),no,io,so;return to.className="cm-line",to.style.width="99999px",to.style.position="absolute",to.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(to);let ao=clientRectsFor(to.firstChild)[0];no=to.getBoundingClientRect().height,io=ao?ao.width/27:7,so=ao?ao.height:no,to.remove()}),{lineHeight:no,charWidth:io,textHeight:so}}childCursor(to=this.length){let no=this.children.length;return no&&(to-=this.children[--no].length),new ChildCursor(this.children,to,no)}computeBlockGapDeco(){let to=[],no=this.view.viewState;for(let io=0,so=0;;so++){let ao=so==no.viewports.length?null:no.viewports[so],lo=ao?ao.from-1:this.length;if(lo>io){let uo=(no.lineBlockAt(lo).bottom-no.lineBlockAt(io).top)/this.view.scaleY;to.push(Decoration.replace({widget:new BlockGapWidget(uo),block:!0,inclusive:!0,isBlockGap:!0}).range(io,lo))}if(!ao)break;io=ao.to+1}return Decoration.set(to)}updateDeco(){let to=1,no=this.view.state.facet(decorations).map(ao=>(this.dynamicDecorationMap[to++]=typeof ao=="function")?ao(this.view):ao),io=!1,so=this.view.state.facet(outerDecorations).map((ao,lo)=>{let uo=typeof ao=="function";return uo&&(io=!0),uo?ao(this.view):ao});for(so.length&&(this.dynamicDecorationMap[to++]=io,no.push(RangeSet.join(so))),this.decorations=[this.compositionBarrier,...no,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];to{uo.point?io=!1:uo.endSide<0&&aono.anchor?-1:1),so;if(!io)return;!no.empty&&(so=this.coordsAt(no.anchor,no.anchor>no.head?-1:1))&&(io={left:Math.min(io.left,so.left),top:Math.min(io.top,so.top),right:Math.max(io.right,so.right),bottom:Math.max(io.bottom,so.bottom)});let ao=getScrollMargins(this.view),lo={left:io.left-ao.left,top:io.top-ao.top,right:io.right+ao.right,bottom:io.bottom+ao.bottom},{offsetWidth:uo,offsetHeight:ho}=this.view.scrollDOM;scrollRectIntoView(this.view.scrollDOM,lo,no.head{ioto.from&&(no=!0)}),no}function groupAt(eo,to,no=1){let io=eo.charCategorizer(to),so=eo.doc.lineAt(to),ao=to-so.from;if(so.length==0)return EditorSelection.cursor(to);ao==0?no=1:ao==so.length&&(no=-1);let lo=ao,uo=ao;no<0?lo=findClusterBreak(so.text,ao,!1):uo=findClusterBreak(so.text,ao);let ho=io(so.text.slice(lo,uo));for(;lo>0;){let go=findClusterBreak(so.text,lo,!1);if(io(so.text.slice(go,lo))!=ho)break;lo=go}for(;uoeo?to.left-eo:Math.max(0,eo-to.right)}function getdy(eo,to){return to.top>eo?to.top-eo:Math.max(0,eo-to.bottom)}function yOverlap(eo,to){return eo.topto.top+1}function upTop(eo,to){return toeo.bottom?{top:eo.top,left:eo.left,right:eo.right,bottom:to}:eo}function domPosAtCoords(eo,to,no){let io,so,ao,lo,uo=!1,ho,go,mo,yo;for(let ko=eo.firstChild;ko;ko=ko.nextSibling){let Co=clientRectsFor(ko);for(let $o=0;$oNo||lo==No&&ao>Oo){io=ko,so=Ro,ao=Oo,lo=No;let Mo=No?no0?$o0)}Oo==0?no>Ro.bottom&&(!mo||mo.bottomRo.top)&&(go=ko,yo=Ro):mo&&yOverlap(mo,Ro)?mo=upBot(mo,Ro.bottom):yo&&yOverlap(yo,Ro)&&(yo=upTop(yo,Ro.top))}}if(mo&&mo.bottom>=no?(io=ho,so=mo):yo&&yo.top<=no&&(io=go,so=yo),!io)return{node:eo,offset:0};let So=Math.max(so.left,Math.min(so.right,to));if(io.nodeType==3)return domPosInText(io,So,no);if(uo&&io.contentEditable!="false")return domPosAtCoords(io,So,no);let _o=Array.prototype.indexOf.call(eo.childNodes,io)+(to>=(so.left+so.right)/2?1:0);return{node:eo,offset:_o}}function domPosInText(eo,to,no){let io=eo.nodeValue.length,so=-1,ao=1e9,lo=0;for(let uo=0;uono?mo.top-no:no-mo.bottom)-1;if(mo.left-1<=to&&mo.right+1>=to&&yo=(mo.left+mo.right)/2,_o=So;if((browser.chrome||browser.gecko)&&textRange(eo,uo).getBoundingClientRect().left==mo.right&&(_o=!So),yo<=0)return{node:eo,offset:uo+(_o?1:0)};so=uo+(_o?1:0),ao=yo}}}return{node:eo,offset:so>-1?so:lo>0?eo.nodeValue.length:0}}function posAtCoords(eo,to,no,io=-1){var so,ao;let lo=eo.contentDOM.getBoundingClientRect(),uo=lo.top+eo.viewState.paddingTop,ho,{docHeight:go}=eo.viewState,{x:mo,y:yo}=to,So=yo-uo;if(So<0)return 0;if(So>go)return eo.state.doc.length;for(let Mo=eo.viewState.heightOracle.textHeight/2,Bo=!1;ho=eo.elementAtHeight(So),ho.type!=BlockType.Text;)for(;So=io>0?ho.bottom+Mo:ho.top-Mo,!(So>=0&&So<=go);){if(Bo)return no?null:0;Bo=!0,io=-io}yo=uo+So;let _o=ho.from;if(_oeo.viewport.to)return eo.viewport.to==eo.state.doc.length?eo.state.doc.length:no?null:posAtCoordsImprecise(eo,lo,ho,mo,yo);let ko=eo.dom.ownerDocument,Co=eo.root.elementFromPoint?eo.root:ko,$o=Co.elementFromPoint(mo,yo);$o&&!eo.contentDOM.contains($o)&&($o=null),$o||(mo=Math.max(lo.left+1,Math.min(lo.right-1,mo)),$o=Co.elementFromPoint(mo,yo),$o&&!eo.contentDOM.contains($o)&&($o=null));let Ro,Oo=-1;if($o&&((so=eo.docView.nearest($o))===null||so===void 0?void 0:so.isEditable)!=!1){if(ko.caretPositionFromPoint){let Mo=ko.caretPositionFromPoint(mo,yo);Mo&&({offsetNode:Ro,offset:Oo}=Mo)}else if(ko.caretRangeFromPoint){let Mo=ko.caretRangeFromPoint(mo,yo);Mo&&({startContainer:Ro,startOffset:Oo}=Mo,(!eo.contentDOM.contains(Ro)||browser.safari&&isSuspiciousSafariCaretResult(Ro,Oo,mo)||browser.chrome&&isSuspiciousChromeCaretResult(Ro,Oo,mo))&&(Ro=void 0))}}if(!Ro||!eo.docView.dom.contains(Ro)){let Mo=LineView.find(eo.docView,_o);if(!Mo)return So>ho.top+ho.height/2?ho.to:ho.from;({node:Ro,offset:Oo}=domPosAtCoords(Mo.dom,mo,yo))}let No=eo.docView.nearest(Ro);if(!No)return null;if(No.isWidget&&((ao=No.dom)===null||ao===void 0?void 0:ao.nodeType)==1){let Mo=No.dom.getBoundingClientRect();return to.yeo.defaultLineHeight*1.5){let uo=eo.viewState.heightOracle.textHeight,ho=Math.floor((so-no.top-(eo.defaultLineHeight-uo)*.5)/uo);ao+=ho*eo.viewState.heightOracle.lineLength}let lo=eo.state.sliceDoc(no.from,no.to);return no.from+findColumn(lo,ao,eo.state.tabSize)}function isSuspiciousSafariCaretResult(eo,to,no){let io;if(eo.nodeType!=3||to!=(io=eo.nodeValue.length))return!1;for(let so=eo.nextSibling;so;so=so.nextSibling)if(so.nodeType!=1||so.nodeName!="BR")return!1;return textRange(eo,io-1,io).getBoundingClientRect().left>no}function isSuspiciousChromeCaretResult(eo,to,no){if(to!=0)return!1;for(let so=eo;;){let ao=so.parentNode;if(!ao||ao.nodeType!=1||ao.firstChild!=so)return!1;if(ao.classList.contains("cm-line"))break;so=ao}let io=eo.nodeType==1?eo.getBoundingClientRect():textRange(eo,0,Math.max(eo.nodeValue.length,1)).getBoundingClientRect();return no-io.left>5}function blockAt(eo,to){let no=eo.lineBlockAt(to);if(Array.isArray(no.type)){for(let io of no.type)if(io.to>to||io.to==to&&(io.to==no.to||io.type==BlockType.Text))return io}return no}function moveToLineBoundary(eo,to,no,io){let so=blockAt(eo,to.head),ao=!io||so.type!=BlockType.Text||!(eo.lineWrapping||so.widgetLineBreaks)?null:eo.coordsAtPos(to.assoc<0&&to.head>so.from?to.head-1:to.head);if(ao){let lo=eo.dom.getBoundingClientRect(),uo=eo.textDirectionAt(so.from),ho=eo.posAtCoords({x:no==(uo==Direction.LTR)?lo.right-1:lo.left+1,y:(ao.top+ao.bottom)/2});if(ho!=null)return EditorSelection.cursor(ho,no?-1:1)}return EditorSelection.cursor(no?so.to:so.from,no?-1:1)}function moveByChar(eo,to,no,io){let so=eo.state.doc.lineAt(to.head),ao=eo.bidiSpans(so),lo=eo.textDirectionAt(so.from);for(let uo=to,ho=null;;){let go=moveVisually(so,ao,lo,uo,no),mo=movedOver;if(!go){if(so.number==(no?eo.state.doc.lines:1))return uo;mo=` +`,so=eo.state.doc.line(so.number+(no?1:-1)),ao=eo.bidiSpans(so),go=eo.visualLineSide(so,!no)}if(ho){if(!ho(mo))return uo}else{if(!io)return go;ho=io(mo)}uo=go}}function byGroup(eo,to,no){let io=eo.state.charCategorizer(to),so=io(no);return ao=>{let lo=io(ao);return so==CharCategory.Space&&(so=lo),so==lo}}function moveVertically(eo,to,no,io){let so=to.head,ao=no?1:-1;if(so==(no?eo.state.doc.length:0))return EditorSelection.cursor(so,to.assoc);let lo=to.goalColumn,uo,ho=eo.contentDOM.getBoundingClientRect(),go=eo.coordsAtPos(so,to.assoc||-1),mo=eo.documentTop;if(go)lo==null&&(lo=go.left-ho.left),uo=ao<0?go.top:go.bottom;else{let _o=eo.viewState.lineBlockAt(so);lo==null&&(lo=Math.min(ho.right-ho.left,eo.defaultCharacterWidth*(so-_o.from))),uo=(ao<0?_o.top:_o.bottom)+mo}let yo=ho.left+lo,So=io??eo.viewState.heightOracle.textHeight>>1;for(let _o=0;;_o+=10){let ko=uo+(So+_o)*ao,Co=posAtCoords(eo,{x:yo,y:ko},!1,ao);if(koho.bottom||(ao<0?Coso)){let $o=eo.docView.coordsForChar(Co),Ro=!$o||ko<$o.top?-1:1;return EditorSelection.cursor(Co,Ro,void 0,lo)}}}function skipAtomicRanges(eo,to,no){for(;;){let io=0;for(let so of eo)so.between(to-1,to+1,(ao,lo,uo)=>{if(to>ao&&toso(eo)),no.from,to.head>no.from?-1:1);return io==no.from?no:EditorSelection.cursor(io,ionull),browser.gecko&&firefoxCopyCutHack(to.contentDOM.ownerDocument)}handleEvent(to){!eventBelongsToEditor(this.view,to)||this.ignoreDuringComposition(to)||to.type=="keydown"&&this.keydown(to)||this.runHandlers(to.type,to)}runHandlers(to,no){let io=this.handlers[to];if(io){for(let so of io.observers)so(this.view,no);for(let so of io.handlers){if(no.defaultPrevented)break;if(so(this.view,no)){no.preventDefault();break}}}}ensureHandlers(to){let no=computeHandlers(to),io=this.handlers,so=this.view.contentDOM;for(let ao in no)if(ao!="scroll"){let lo=!no[ao].handlers.length,uo=io[ao];uo&&lo!=!uo.handlers.length&&(so.removeEventListener(ao,this.handleEvent),uo=null),uo||so.addEventListener(ao,this.handleEvent,{passive:lo})}for(let ao in io)ao!="scroll"&&!no[ao]&&so.removeEventListener(ao,this.handleEvent);this.handlers=no}keydown(to){if(this.lastKeyCode=to.keyCode,this.lastKeyTime=Date.now(),to.keyCode==9&&Date.now()io.keyCode==to.keyCode))&&!to.ctrlKey||EmacsyPendingKeys.indexOf(to.key)>-1&&to.ctrlKey&&!to.shiftKey)?(this.pendingIOSKey=no||to,setTimeout(()=>this.flushIOSKey(),250),!0):(to.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(to){let no=this.pendingIOSKey;return!no||no.key=="Enter"&&to&&to.from0?!0:browser.safari&&!browser.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(to){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=to}update(to){this.mouseSelection&&this.mouseSelection.update(to),this.draggedContent&&to.docChanged&&(this.draggedContent=this.draggedContent.map(to.changes)),to.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function bindHandler(eo,to){return(no,io)=>{try{return to.call(eo,io,no)}catch(so){logException(no.state,so)}}}function computeHandlers(eo){let to=Object.create(null);function no(io){return to[io]||(to[io]={observers:[],handlers:[]})}for(let io of eo){let so=io.spec;if(so&&so.domEventHandlers)for(let ao in so.domEventHandlers){let lo=so.domEventHandlers[ao];lo&&no(ao).handlers.push(bindHandler(io.value,lo))}if(so&&so.domEventObservers)for(let ao in so.domEventObservers){let lo=so.domEventObservers[ao];lo&&no(ao).observers.push(bindHandler(io.value,lo))}}for(let io in handlers)no(io).handlers.push(handlers[io]);for(let io in observers)no(io).observers.push(observers[io]);return to}const PendingKeys=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],EmacsyPendingKeys="dthko",modifierCodes=[16,17,18,20,91,92,224,225],dragScrollMargin=6;function dragScrollSpeed(eo){return Math.max(0,eo)*.7+8}function dist$1(eo,to){return Math.max(Math.abs(eo.clientX-to.clientX),Math.abs(eo.clientY-to.clientY))}class MouseSelection{constructor(to,no,io,so){this.view=to,this.startEvent=no,this.style=io,this.mustSelect=so,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=no,this.scrollParent=scrollableParent(to.contentDOM),this.atoms=to.state.facet(atomicRanges).map(lo=>lo(to));let ao=to.contentDOM.ownerDocument;ao.addEventListener("mousemove",this.move=this.move.bind(this)),ao.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=no.shiftKey,this.multiple=to.state.facet(EditorState.allowMultipleSelections)&&addsSelectionRange(to,no),this.dragging=isInPrimarySelection(to,no)&&getClickType(no)==1?null:!1}start(to){this.dragging===!1&&this.select(to)}move(to){var no;if(to.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&dist$1(this.startEvent,to)<10)return;this.select(this.lastEvent=to);let io=0,so=0,ao=((no=this.scrollParent)===null||no===void 0?void 0:no.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},lo=getScrollMargins(this.view);to.clientX-lo.left<=ao.left+dragScrollMargin?io=-dragScrollSpeed(ao.left-to.clientX):to.clientX+lo.right>=ao.right-dragScrollMargin&&(io=dragScrollSpeed(to.clientX-ao.right)),to.clientY-lo.top<=ao.top+dragScrollMargin?so=-dragScrollSpeed(ao.top-to.clientY):to.clientY+lo.bottom>=ao.bottom-dragScrollMargin&&(so=dragScrollSpeed(to.clientY-ao.bottom)),this.setScrollSpeed(io,so)}up(to){this.dragging==null&&this.select(this.lastEvent),this.dragging||to.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let to=this.view.contentDOM.ownerDocument;to.removeEventListener("mousemove",this.move),to.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(to,no){this.scrollSpeed={x:to,y:no},to||no?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(to){let no=null;for(let io=0;iothis.select(this.lastEvent),20)}}function addsSelectionRange(eo,to){let no=eo.state.facet(clickAddsSelectionRange);return no.length?no[0](to):browser.mac?to.metaKey:to.ctrlKey}function dragMovesSelection(eo,to){let no=eo.state.facet(dragMovesSelection$1);return no.length?no[0](to):browser.mac?!to.altKey:!to.ctrlKey}function isInPrimarySelection(eo,to){let{main:no}=eo.state.selection;if(no.empty)return!1;let io=getSelection(eo.root);if(!io||io.rangeCount==0)return!0;let so=io.getRangeAt(0).getClientRects();for(let ao=0;ao=to.clientX&&lo.top<=to.clientY&&lo.bottom>=to.clientY)return!0}return!1}function eventBelongsToEditor(eo,to){if(!to.bubbles)return!0;if(to.defaultPrevented)return!1;for(let no=to.target,io;no!=eo.contentDOM;no=no.parentNode)if(!no||no.nodeType==11||(io=ContentView.get(no))&&io.ignoreEvent(to))return!1;return!0}const handlers=Object.create(null),observers=Object.create(null),brokenClipboardAPI=browser.ie&&browser.ie_version<15||browser.ios&&browser.webkit_version<604;function capturePaste(eo){let to=eo.dom.parentNode;if(!to)return;let no=to.appendChild(document.createElement("textarea"));no.style.cssText="position: fixed; left: -10000px; top: 10px",no.focus(),setTimeout(()=>{eo.focus(),no.remove(),doPaste(eo,no.value)},50)}function doPaste(eo,to){let{state:no}=eo,io,so=1,ao=no.toText(to),lo=ao.lines==no.selection.ranges.length;if(lastLinewiseCopy!=null&&no.selection.ranges.every(ho=>ho.empty)&&lastLinewiseCopy==ao.toString()){let ho=-1;io=no.changeByRange(go=>{let mo=no.doc.lineAt(go.from);if(mo.from==ho)return{range:go};ho=mo.from;let yo=no.toText((lo?ao.line(so++).text:to)+no.lineBreak);return{changes:{from:mo.from,insert:yo},range:EditorSelection.cursor(go.from+yo.length)}})}else lo?io=no.changeByRange(ho=>{let go=ao.line(so++);return{changes:{from:ho.from,to:ho.to,insert:go.text},range:EditorSelection.cursor(ho.from+go.length)}}):io=no.replaceSelection(ao);eo.dispatch(io,{userEvent:"input.paste",scrollIntoView:!0})}observers.scroll=eo=>{eo.inputState.lastScrollTop=eo.scrollDOM.scrollTop,eo.inputState.lastScrollLeft=eo.scrollDOM.scrollLeft};handlers.keydown=(eo,to)=>(eo.inputState.setSelectionOrigin("select"),to.keyCode==27&&(eo.inputState.lastEscPress=Date.now()),!1);observers.touchstart=(eo,to)=>{eo.inputState.lastTouchTime=Date.now(),eo.inputState.setSelectionOrigin("select.pointer")};observers.touchmove=eo=>{eo.inputState.setSelectionOrigin("select.pointer")};handlers.mousedown=(eo,to)=>{if(eo.observer.flush(),eo.inputState.lastTouchTime>Date.now()-2e3)return!1;let no=null;for(let io of eo.state.facet(mouseSelectionStyle))if(no=io(eo,to),no)break;if(!no&&to.button==0&&(no=basicMouseSelection(eo,to)),no){let io=!eo.hasFocus;eo.inputState.startMouseSelection(new MouseSelection(eo,to,no,io)),io&&eo.observer.ignore(()=>focusPreventScroll(eo.contentDOM));let so=eo.inputState.mouseSelection;if(so)return so.start(to),so.dragging===!1}return!1};function rangeForClick(eo,to,no,io){if(io==1)return EditorSelection.cursor(to,no);if(io==2)return groupAt(eo.state,to,no);{let so=LineView.find(eo.docView,to),ao=eo.state.doc.lineAt(so?so.posAtEnd:to),lo=so?so.posAtStart:ao.from,uo=so?so.posAtEnd:ao.to;return uoeo>=to.top&&eo<=to.bottom,inside=(eo,to,no)=>insideY(to,no)&&eo>=no.left&&eo<=no.right;function findPositionSide(eo,to,no,io){let so=LineView.find(eo.docView,to);if(!so)return 1;let ao=to-so.posAtStart;if(ao==0)return 1;if(ao==so.length)return-1;let lo=so.coordsAt(ao,-1);if(lo&&inside(no,io,lo))return-1;let uo=so.coordsAt(ao,1);return uo&&inside(no,io,uo)?1:lo&&insideY(io,lo)?-1:1}function queryPos(eo,to){let no=eo.posAtCoords({x:to.clientX,y:to.clientY},!1);return{pos:no,bias:findPositionSide(eo,no,to.clientX,to.clientY)}}const BadMouseDetail=browser.ie&&browser.ie_version<=11;let lastMouseDown=null,lastMouseDownCount=0,lastMouseDownTime=0;function getClickType(eo){if(!BadMouseDetail)return eo.detail;let to=lastMouseDown,no=lastMouseDownTime;return lastMouseDown=eo,lastMouseDownTime=Date.now(),lastMouseDownCount=!to||no>Date.now()-400&&Math.abs(to.clientX-eo.clientX)<2&&Math.abs(to.clientY-eo.clientY)<2?(lastMouseDownCount+1)%3:1}function basicMouseSelection(eo,to){let no=queryPos(eo,to),io=getClickType(to),so=eo.state.selection;return{update(ao){ao.docChanged&&(no.pos=ao.changes.mapPos(no.pos),so=so.map(ao.changes))},get(ao,lo,uo){let ho=queryPos(eo,ao),go,mo=rangeForClick(eo,ho.pos,ho.bias,io);if(no.pos!=ho.pos&&!lo){let yo=rangeForClick(eo,no.pos,no.bias,io),So=Math.min(yo.from,mo.from),_o=Math.max(yo.to,mo.to);mo=So1&&(go=removeRangeAround(so,ho.pos))?go:uo?so.addRange(mo):EditorSelection.create([mo])}}}function removeRangeAround(eo,to){for(let no=0;no=to)return EditorSelection.create(eo.ranges.slice(0,no).concat(eo.ranges.slice(no+1)),eo.mainIndex==no?0:eo.mainIndex-(eo.mainIndex>no?1:0))}return null}handlers.dragstart=(eo,to)=>{let{selection:{main:no}}=eo.state;if(to.target.draggable){let so=eo.docView.nearest(to.target);if(so&&so.isWidget){let ao=so.posAtStart,lo=ao+so.length;(ao>=no.to||lo<=no.from)&&(no=EditorSelection.range(ao,lo))}}let{inputState:io}=eo;return io.mouseSelection&&(io.mouseSelection.dragging=!0),io.draggedContent=no,to.dataTransfer&&(to.dataTransfer.setData("Text",eo.state.sliceDoc(no.from,no.to)),to.dataTransfer.effectAllowed="copyMove"),!1};handlers.dragend=eo=>(eo.inputState.draggedContent=null,!1);function dropText(eo,to,no,io){if(!no)return;let so=eo.posAtCoords({x:to.clientX,y:to.clientY},!1),{draggedContent:ao}=eo.inputState,lo=io&&ao&&dragMovesSelection(eo,to)?{from:ao.from,to:ao.to}:null,uo={from:so,insert:no},ho=eo.state.changes(lo?[lo,uo]:uo);eo.focus(),eo.dispatch({changes:ho,selection:{anchor:ho.mapPos(so,-1),head:ho.mapPos(so,1)},userEvent:lo?"move.drop":"input.drop"}),eo.inputState.draggedContent=null}handlers.drop=(eo,to)=>{if(!to.dataTransfer)return!1;if(eo.state.readOnly)return!0;let no=to.dataTransfer.files;if(no&&no.length){let io=Array(no.length),so=0,ao=()=>{++so==no.length&&dropText(eo,to,io.filter(lo=>lo!=null).join(eo.state.lineBreak),!1)};for(let lo=0;lo{/[\x00-\x08\x0e-\x1f]{2}/.test(uo.result)||(io[lo]=uo.result),ao()},uo.readAsText(no[lo])}return!0}else{let io=to.dataTransfer.getData("Text");if(io)return dropText(eo,to,io,!0),!0}return!1};handlers.paste=(eo,to)=>{if(eo.state.readOnly)return!0;eo.observer.flush();let no=brokenClipboardAPI?null:to.clipboardData;return no?(doPaste(eo,no.getData("text/plain")||no.getData("text/uri-list")),!0):(capturePaste(eo),!1)};function captureCopy(eo,to){let no=eo.dom.parentNode;if(!no)return;let io=no.appendChild(document.createElement("textarea"));io.style.cssText="position: fixed; left: -10000px; top: 10px",io.value=to,io.focus(),io.selectionEnd=to.length,io.selectionStart=0,setTimeout(()=>{io.remove(),eo.focus()},50)}function copiedRange(eo){let to=[],no=[],io=!1;for(let so of eo.selection.ranges)so.empty||(to.push(eo.sliceDoc(so.from,so.to)),no.push(so));if(!to.length){let so=-1;for(let{from:ao}of eo.selection.ranges){let lo=eo.doc.lineAt(ao);lo.number>so&&(to.push(lo.text),no.push({from:lo.from,to:Math.min(eo.doc.length,lo.to+1)})),so=lo.number}io=!0}return{text:to.join(eo.lineBreak),ranges:no,linewise:io}}let lastLinewiseCopy=null;handlers.copy=handlers.cut=(eo,to)=>{let{text:no,ranges:io,linewise:so}=copiedRange(eo.state);if(!no&&!so)return!1;lastLinewiseCopy=so?no:null,to.type=="cut"&&!eo.state.readOnly&&eo.dispatch({changes:io,scrollIntoView:!0,userEvent:"delete.cut"});let ao=brokenClipboardAPI?null:to.clipboardData;return ao?(ao.clearData(),ao.setData("text/plain",no),!0):(captureCopy(eo,no),!1)};const isFocusChange=Annotation.define();function focusChangeTransaction(eo,to){let no=[];for(let io of eo.facet(focusChangeEffect)){let so=io(eo,to);so&&no.push(so)}return no?eo.update({effects:no,annotations:isFocusChange.of(!0)}):null}function updateForFocusChange(eo){setTimeout(()=>{let to=eo.hasFocus;if(to!=eo.inputState.notifiedFocused){let no=focusChangeTransaction(eo.state,to);no?eo.dispatch(no):eo.update([])}},10)}observers.focus=eo=>{eo.inputState.lastFocusTime=Date.now(),!eo.scrollDOM.scrollTop&&(eo.inputState.lastScrollTop||eo.inputState.lastScrollLeft)&&(eo.scrollDOM.scrollTop=eo.inputState.lastScrollTop,eo.scrollDOM.scrollLeft=eo.inputState.lastScrollLeft),updateForFocusChange(eo)};observers.blur=eo=>{eo.observer.clearSelectionRange(),updateForFocusChange(eo)};observers.compositionstart=observers.compositionupdate=eo=>{eo.inputState.compositionFirstChange==null&&(eo.inputState.compositionFirstChange=!0),eo.inputState.composing<0&&(eo.inputState.composing=0,eo.docView.maybeCreateCompositionBarrier()&&(eo.update([]),eo.docView.clearCompositionBarrier()))};observers.compositionend=eo=>{eo.inputState.composing=-1,eo.inputState.compositionEndedAt=Date.now(),eo.inputState.compositionPendingKey=!0,eo.inputState.compositionPendingChange=eo.observer.pendingRecords().length>0,eo.inputState.compositionFirstChange=null,browser.chrome&&browser.android?eo.observer.flushSoon():eo.inputState.compositionPendingChange?Promise.resolve().then(()=>eo.observer.flush()):setTimeout(()=>{eo.inputState.composing<0&&eo.docView.hasComposition&&eo.update([])},50)};observers.contextmenu=eo=>{eo.inputState.lastContextMenu=Date.now()};handlers.beforeinput=(eo,to)=>{var no;let io;if(browser.chrome&&browser.android&&(io=PendingKeys.find(so=>so.inputType==to.inputType))&&(eo.observer.delayAndroidKey(io.key,io.keyCode),io.key=="Backspace"||io.key=="Delete")){let so=((no=window.visualViewport)===null||no===void 0?void 0:no.height)||0;setTimeout(()=>{var ao;(((ao=window.visualViewport)===null||ao===void 0?void 0:ao.height)||0)>so+10&&eo.hasFocus&&(eo.contentDOM.blur(),eo.focus())},100)}return browser.ios&&to.inputType=="deleteContentForward"&&eo.observer.flushSoon(),browser.safari&&to.inputType=="insertText"&&eo.inputState.composing>=0&&setTimeout(()=>observers.compositionend(eo,to),20),!1};const appliedFirefoxHack=new Set;function firefoxCopyCutHack(eo){appliedFirefoxHack.has(eo)||(appliedFirefoxHack.add(eo),eo.addEventListener("copy",()=>{}),eo.addEventListener("cut",()=>{}))}const wrappingWhiteSpace=["pre-wrap","normal","pre-line","break-spaces"];class HeightOracle{constructor(to){this.lineWrapping=to,this.doc=Text$1.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(to,no){let io=this.doc.lineAt(no).number-this.doc.lineAt(to).number+1;return this.lineWrapping&&(io+=Math.max(0,Math.ceil((no-to-io*this.lineLength*.5)/this.lineLength))),this.lineHeight*io}heightForLine(to){return this.lineWrapping?(1+Math.max(0,Math.ceil((to-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(to){return this.doc=to,this}mustRefreshForWrapping(to){return wrappingWhiteSpace.indexOf(to)>-1!=this.lineWrapping}mustRefreshForHeights(to){let no=!1;for(let io=0;io-1,ho=Math.round(no)!=Math.round(this.lineHeight)||this.lineWrapping!=uo;if(this.lineWrapping=uo,this.lineHeight=no,this.charWidth=io,this.textHeight=so,this.lineLength=ao,ho){this.heightSamples={};for(let go=0;go0}set outdated(to){this.flags=(to?2:0)|this.flags&-3}setHeight(to,no){this.height!=no&&(Math.abs(this.height-no)>Epsilon&&(to.heightChanged=!0),this.height=no)}replace(to,no,io){return HeightMap.of(io)}decomposeLeft(to,no){no.push(this)}decomposeRight(to,no){no.push(this)}applyChanges(to,no,io,so){let ao=this,lo=io.doc;for(let uo=so.length-1;uo>=0;uo--){let{fromA:ho,toA:go,fromB:mo,toB:yo}=so[uo],So=ao.lineAt(ho,QueryType$1.ByPosNoHeight,io.setDoc(no),0,0),_o=So.to>=go?So:ao.lineAt(go,QueryType$1.ByPosNoHeight,io,0,0);for(yo+=_o.to-go,go=_o.to;uo>0&&So.from<=so[uo-1].toA;)ho=so[uo-1].fromA,mo=so[uo-1].fromB,uo--,hoao*2){let uo=to[no-1];uo.break?to.splice(--no,1,uo.left,null,uo.right):to.splice(--no,1,uo.left,uo.right),io+=1+uo.break,so-=uo.size}else if(ao>so*2){let uo=to[io];uo.break?to.splice(io,1,uo.left,null,uo.right):to.splice(io,1,uo.left,uo.right),io+=2+uo.break,ao-=uo.size}else break;else if(so=ao&&lo(this.blockAt(0,io,so,ao))}updateHeight(to,no=0,io=!1,so){return so&&so.from<=no&&so.more&&this.setHeight(to,so.heights[so.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class HeightMapText extends HeightMapBlock{constructor(to,no){super(to,no,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(to,no,io,so){return new BlockInfo(so,this.length,io,this.height,this.breaks)}replace(to,no,io){let so=io[0];return io.length==1&&(so instanceof HeightMapText||so instanceof HeightMapGap&&so.flags&4)&&Math.abs(this.length-so.length)<10?(so instanceof HeightMapGap?so=new HeightMapText(so.length,this.height):so.height=this.height,this.outdated||(so.outdated=!1),so):HeightMap.of(io)}updateHeight(to,no=0,io=!1,so){return so&&so.from<=no&&so.more?this.setHeight(to,so.heights[so.index++]):(io||this.outdated)&&this.setHeight(to,Math.max(this.widgetHeight,to.heightForLine(this.length-this.collapsed))+this.breaks*to.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class HeightMapGap extends HeightMap{constructor(to){super(to,0)}heightMetrics(to,no){let io=to.doc.lineAt(no).number,so=to.doc.lineAt(no+this.length).number,ao=so-io+1,lo,uo=0;if(to.lineWrapping){let ho=Math.min(this.height,to.lineHeight*ao);lo=ho/ao,this.length>ao+1&&(uo=(this.height-ho)/(this.length-ao-1))}else lo=this.height/ao;return{firstLine:io,lastLine:so,perLine:lo,perChar:uo}}blockAt(to,no,io,so){let{firstLine:ao,lastLine:lo,perLine:uo,perChar:ho}=this.heightMetrics(no,so);if(no.lineWrapping){let go=so+(to0){let ao=io[io.length-1];ao instanceof HeightMapGap?io[io.length-1]=new HeightMapGap(ao.length+so):io.push(null,new HeightMapGap(so-1))}if(to>0){let ao=io[0];ao instanceof HeightMapGap?io[0]=new HeightMapGap(to+ao.length):io.unshift(new HeightMapGap(to-1),null)}return HeightMap.of(io)}decomposeLeft(to,no){no.push(new HeightMapGap(to-1),null)}decomposeRight(to,no){no.push(null,new HeightMapGap(this.length-to-1))}updateHeight(to,no=0,io=!1,so){let ao=no+this.length;if(so&&so.from<=no+this.length&&so.more){let lo=[],uo=Math.max(no,so.from),ho=-1;for(so.from>no&&lo.push(new HeightMapGap(so.from-no-1).updateHeight(to,no));uo<=ao&&so.more;){let mo=to.doc.lineAt(uo).length;lo.length&&lo.push(null);let yo=so.heights[so.index++];ho==-1?ho=yo:Math.abs(yo-ho)>=Epsilon&&(ho=-2);let So=new HeightMapText(mo,yo);So.outdated=!1,lo.push(So),uo+=mo+1}uo<=ao&&lo.push(null,new HeightMapGap(ao-uo).updateHeight(to,uo));let go=HeightMap.of(lo);return(ho<0||Math.abs(go.height-this.height)>=Epsilon||Math.abs(ho-this.heightMetrics(to,no).perLine)>=Epsilon)&&(to.heightChanged=!0),go}else(io||this.outdated)&&(this.setHeight(to,to.heightForGap(no,no+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class HeightMapBranch extends HeightMap{constructor(to,no,io){super(to.length+no+io.length,to.height+io.height,no|(to.outdated||io.outdated?2:0)),this.left=to,this.right=io,this.size=to.size+io.size}get break(){return this.flags&1}blockAt(to,no,io,so){let ao=io+this.left.height;return touo))return go;let mo=no==QueryType$1.ByPosNoHeight?QueryType$1.ByPosNoHeight:QueryType$1.ByPos;return ho?go.join(this.right.lineAt(uo,mo,io,lo,uo)):this.left.lineAt(uo,mo,io,so,ao).join(go)}forEachLine(to,no,io,so,ao,lo){let uo=so+this.left.height,ho=ao+this.left.length+this.break;if(this.break)to=ho&&this.right.forEachLine(to,no,io,uo,ho,lo);else{let go=this.lineAt(ho,QueryType$1.ByPos,io,so,ao);to=to&&go.from<=no&&lo(go),no>go.to&&this.right.forEachLine(go.to+1,no,io,uo,ho,lo)}}replace(to,no,io){let so=this.left.length+this.break;if(nothis.left.length)return this.balanced(this.left,this.right.replace(to-so,no-so,io));let ao=[];to>0&&this.decomposeLeft(to,ao);let lo=ao.length;for(let uo of io)ao.push(uo);if(to>0&&mergeGaps(ao,lo-1),no=io&&no.push(null)),to>io&&this.right.decomposeLeft(to-io,no)}decomposeRight(to,no){let io=this.left.length,so=io+this.break;if(to>=so)return this.right.decomposeRight(to-so,no);to2*no.size||no.size>2*to.size?HeightMap.of(this.break?[to,null,no]:[to,no]):(this.left=to,this.right=no,this.height=to.height+no.height,this.outdated=to.outdated||no.outdated,this.size=to.size+no.size,this.length=to.length+this.break+no.length,this)}updateHeight(to,no=0,io=!1,so){let{left:ao,right:lo}=this,uo=no+ao.length+this.break,ho=null;return so&&so.from<=no+ao.length&&so.more?ho=ao=ao.updateHeight(to,no,io,so):ao.updateHeight(to,no,io),so&&so.from<=uo+lo.length&&so.more?ho=lo=lo.updateHeight(to,uo,io,so):lo.updateHeight(to,uo,io),ho?this.balanced(ao,lo):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function mergeGaps(eo,to){let no,io;eo[to]==null&&(no=eo[to-1])instanceof HeightMapGap&&(io=eo[to+1])instanceof HeightMapGap&&eo.splice(to-1,3,new HeightMapGap(no.length+1+io.length))}const relevantWidgetHeight=5;class NodeBuilder{constructor(to,no){this.pos=to,this.oracle=no,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=to}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(to,no){if(this.lineStart>-1){let io=Math.min(no,this.lineEnd),so=this.nodes[this.nodes.length-1];so instanceof HeightMapText?so.length+=io-this.pos:(io>this.pos||!this.isCovered)&&this.nodes.push(new HeightMapText(io-this.pos,-1)),this.writtenTo=io,no>io&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=no}point(to,no,io){if(to=relevantWidgetHeight)&&this.addLineDeco(so,ao,lo)}else no>to&&this.span(to,no);this.lineEnd>-1&&this.lineEnd-1)return;let{from:to,to:no}=this.oracle.doc.lineAt(this.pos);this.lineStart=to,this.lineEnd=no,this.writtenToto&&this.nodes.push(new HeightMapText(this.pos-to,-1)),this.writtenTo=this.pos}blankContent(to,no){let io=new HeightMapGap(no-to);return this.oracle.doc.lineAt(to).to==no&&(io.flags|=4),io}ensureLine(){this.enterLine();let to=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(to instanceof HeightMapText)return to;let no=new HeightMapText(0,-1);return this.nodes.push(no),no}addBlock(to){this.enterLine();let no=to.deco;no&&no.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(to),this.writtenTo=this.pos=this.pos+to.length,no&&no.endSide>0&&(this.covering=to)}addLineDeco(to,no,io){let so=this.ensureLine();so.length+=io,so.collapsed+=io,so.widgetHeight=Math.max(so.widgetHeight,to),so.breaks+=no,this.writtenTo=this.pos=this.pos+io}finish(to){let no=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(no instanceof HeightMapText)&&!this.isCovered?this.nodes.push(new HeightMapText(0,-1)):(this.writtenTomo.clientHeight||mo.scrollWidth>mo.clientWidth)&&yo.overflow!="visible"){let So=mo.getBoundingClientRect();ao=Math.max(ao,So.left),lo=Math.min(lo,So.right),uo=Math.max(uo,So.top),ho=go==eo.parentNode?So.bottom:Math.min(ho,So.bottom)}go=yo.position=="absolute"||yo.position=="fixed"?mo.offsetParent:mo.parentNode}else if(go.nodeType==11)go=go.host;else break;return{left:ao-no.left,right:Math.max(ao,lo)-no.left,top:uo-(no.top+to),bottom:Math.max(uo,ho)-(no.top+to)}}function fullPixelRange(eo,to){let no=eo.getBoundingClientRect();return{left:0,right:no.right-no.left,top:to,bottom:no.bottom-(no.top+to)}}class LineGap{constructor(to,no,io){this.from=to,this.to=no,this.size=io}static same(to,no){if(to.length!=no.length)return!1;for(let io=0;iotypeof io!="function"&&io.class=="cm-lineWrapping");this.heightOracle=new HeightOracle(no),this.stateDeco=to.facet(decorations).filter(io=>typeof io!="function"),this.heightMap=HeightMap.empty().applyChanges(this.stateDeco,Text$1.empty,this.heightOracle.setDoc(to.doc),[new ChangedRange(0,0,0,to.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Decoration.set(this.lineGaps.map(io=>io.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let to=[this.viewport],{main:no}=this.state.selection;for(let io=0;io<=1;io++){let so=io?no.head:no.anchor;if(!to.some(({from:ao,to:lo})=>so>=ao&&so<=lo)){let{from:ao,to:lo}=this.lineBlockAt(so);to.push(new Viewport(ao,lo))}}this.viewports=to.sort((io,so)=>io.from-so.from),this.scaler=this.heightMap.height<=7e6?IdScaler:new BigScaler(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,to=>{this.viewportLines.push(this.scaler.scale==1?to:scaleBlock(to,this.scaler))})}update(to,no=null){this.state=to.state;let io=this.stateDeco;this.stateDeco=this.state.facet(decorations).filter(mo=>typeof mo!="function");let so=to.changedRanges,ao=ChangedRange.extendWithRanges(so,heightRelevantDecoChanges(io,this.stateDeco,to?to.changes:ChangeSet.empty(this.state.doc.length))),lo=this.heightMap.height,uo=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,to.startState.doc,this.heightOracle.setDoc(this.state.doc),ao),this.heightMap.height!=lo&&(to.flags|=2),uo?(this.scrollAnchorPos=to.changes.mapPos(uo.from,-1),this.scrollAnchorHeight=uo.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let ho=ao.length?this.mapViewport(this.viewport,to.changes):this.viewport;(no&&(no.range.headho.to)||!this.viewportIsAppropriate(ho))&&(ho=this.getViewport(0,no));let go=!to.changes.empty||to.flags&2||ho.from!=this.viewport.from||ho.to!=this.viewport.to;this.viewport=ho,this.updateForViewport(),go&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,to.changes))),to.flags|=this.computeVisibleRanges(),no&&(this.scrollTarget=no),!this.mustEnforceCursorAssoc&&to.selectionSet&&to.view.lineWrapping&&to.state.selection.main.empty&&to.state.selection.main.assoc&&!to.state.facet(nativeSelectionHidden)&&(this.mustEnforceCursorAssoc=!0)}measure(to){let no=to.contentDOM,io=window.getComputedStyle(no),so=this.heightOracle,ao=io.whiteSpace;this.defaultTextDirection=io.direction=="rtl"?Direction.RTL:Direction.LTR;let lo=this.heightOracle.mustRefreshForWrapping(ao),uo=no.getBoundingClientRect(),ho=lo||this.mustMeasureContent||this.contentDOMHeight!=uo.height;this.contentDOMHeight=uo.height,this.mustMeasureContent=!1;let go=0,mo=0;if(uo.width&&uo.height){let{scaleX:Mo,scaleY:Bo}=getScale(no,uo);(Mo>.005&&Math.abs(this.scaleX-Mo)>.005||Bo>.005&&Math.abs(this.scaleY-Bo)>.005)&&(this.scaleX=Mo,this.scaleY=Bo,go|=8,lo=ho=!0)}let yo=(parseInt(io.paddingTop)||0)*this.scaleY,So=(parseInt(io.paddingBottom)||0)*this.scaleY;(this.paddingTop!=yo||this.paddingBottom!=So)&&(this.paddingTop=yo,this.paddingBottom=So,go|=10),this.editorWidth!=to.scrollDOM.clientWidth&&(so.lineWrapping&&(ho=!0),this.editorWidth=to.scrollDOM.clientWidth,go|=8);let _o=to.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=_o&&(this.scrollAnchorHeight=-1,this.scrollTop=_o),this.scrolledToBottom=isScrolledToBottom(to.scrollDOM);let ko=(this.printing?fullPixelRange:visiblePixelRange)(no,this.paddingTop),Co=ko.top-this.pixelViewport.top,$o=ko.bottom-this.pixelViewport.bottom;this.pixelViewport=ko;let Ro=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(Ro!=this.inView&&(this.inView=Ro,Ro&&(ho=!0)),!this.inView&&!this.scrollTarget)return 0;let Oo=uo.width;if((this.contentDOMWidth!=Oo||this.editorHeight!=to.scrollDOM.clientHeight)&&(this.contentDOMWidth=uo.width,this.editorHeight=to.scrollDOM.clientHeight,go|=8),ho){let Mo=to.docView.measureVisibleLineHeights(this.viewport);if(so.mustRefreshForHeights(Mo)&&(lo=!0),lo||so.lineWrapping&&Math.abs(Oo-this.contentDOMWidth)>so.charWidth){let{lineHeight:Bo,charWidth:Fo,textHeight:Lo}=to.docView.measureTextSize();lo=Bo>0&&so.refresh(ao,Bo,Fo,Lo,Oo/Fo,Mo),lo&&(to.docView.minWidth=0,go|=8)}Co>0&&$o>0?mo=Math.max(Co,$o):Co<0&&$o<0&&(mo=Math.min(Co,$o)),so.heightChanged=!1;for(let Bo of this.viewports){let Fo=Bo.from==this.viewport.from?Mo:to.docView.measureVisibleLineHeights(Bo);this.heightMap=(lo?HeightMap.empty().applyChanges(this.stateDeco,Text$1.empty,this.heightOracle,[new ChangedRange(0,0,0,to.state.doc.length)]):this.heightMap).updateHeight(so,0,lo,new MeasuredHeights(Bo.from,Fo))}so.heightChanged&&(go|=2)}let No=!this.viewportIsAppropriate(this.viewport,mo)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return No&&(this.viewport=this.getViewport(mo,this.scrollTarget)),this.updateForViewport(),(go&2||No)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(lo?[]:this.lineGaps,to)),go|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,to.docView.enforceCursorAssoc()),go}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(to,no){let io=.5-Math.max(-.5,Math.min(.5,to/1e3/2)),so=this.heightMap,ao=this.heightOracle,{visibleTop:lo,visibleBottom:uo}=this,ho=new Viewport(so.lineAt(lo-io*1e3,QueryType$1.ByHeight,ao,0,0).from,so.lineAt(uo+(1-io)*1e3,QueryType$1.ByHeight,ao,0,0).to);if(no){let{head:go}=no.range;if(goho.to){let mo=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),yo=so.lineAt(go,QueryType$1.ByPos,ao,0,0),So;no.y=="center"?So=(yo.top+yo.bottom)/2-mo/2:no.y=="start"||no.y=="nearest"&&go=uo+Math.max(10,Math.min(io,250)))&&so>lo-2*1e3&&ao>1,lo=so<<1;if(this.defaultTextDirection!=Direction.LTR&&!io)return[];let uo=[],ho=(go,mo,yo,So)=>{if(mo-gogo&&$o$o.from>=yo.from&&$o.to<=yo.to&&Math.abs($o.from-go)$o.fromRo));if(!Co){if(mo$o.from<=mo&&$o.to>=mo)){let $o=no.moveToLineBoundary(EditorSelection.cursor(mo),!1,!0).head;$o>go&&(mo=$o)}Co=new LineGap(go,mo,this.gapSize(yo,go,mo,So))}uo.push(Co)};for(let go of this.viewportLines){if(go.lengthgo.from&&ho(go.from,So,go,mo),_ono.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let to=this.stateDeco;this.lineGaps.length&&(to=to.concat(this.lineGapDeco));let no=[];RangeSet.spans(to,this.viewport.from,this.viewport.to,{span(so,ao){no.push({from:so,to:ao})},point(){}},20);let io=no.length!=this.visibleRanges.length||this.visibleRanges.some((so,ao)=>so.from!=no[ao].from||so.to!=no[ao].to);return this.visibleRanges=no,io?4:0}lineBlockAt(to){return to>=this.viewport.from&&to<=this.viewport.to&&this.viewportLines.find(no=>no.from<=to&&no.to>=to)||scaleBlock(this.heightMap.lineAt(to,QueryType$1.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(to){return scaleBlock(this.heightMap.lineAt(this.scaler.fromDOM(to),QueryType$1.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(to){let no=this.lineBlockAtHeight(to+8);return no.from>=this.viewport.from||this.viewportLines[0].top-to>200?no:this.viewportLines[0]}elementAtHeight(to){return scaleBlock(this.heightMap.blockAt(this.scaler.fromDOM(to),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Viewport{constructor(to,no){this.from=to,this.to=no}}function lineStructure(eo,to,no){let io=[],so=eo,ao=0;return RangeSet.spans(no,eo,to,{span(){},point(lo,uo){lo>so&&(io.push({from:so,to:lo}),ao+=lo-so),so=uo}},20),so=1)return to[to.length-1].to;let io=Math.floor(eo*no);for(let so=0;;so++){let{from:ao,to:lo}=to[so],uo=lo-ao;if(io<=uo)return ao+io;io-=uo}}function findFraction(eo,to){let no=0;for(let{from:io,to:so}of eo.ranges){if(to<=so){no+=to-io;break}no+=so-io}return no/eo.total}function find$3(eo,to){for(let no of eo)if(to(no))return no}const IdScaler={toDOM(eo){return eo},fromDOM(eo){return eo},scale:1};class BigScaler{constructor(to,no,io){let so=0,ao=0,lo=0;this.viewports=io.map(({from:uo,to:ho})=>{let go=no.lineAt(uo,QueryType$1.ByPos,to,0,0).top,mo=no.lineAt(ho,QueryType$1.ByPos,to,0,0).bottom;return so+=mo-go,{from:uo,to:ho,top:go,bottom:mo,domTop:0,domBottom:0}}),this.scale=(7e6-so)/(no.height-so);for(let uo of this.viewports)uo.domTop=lo+(uo.top-ao)*this.scale,lo=uo.domBottom=uo.domTop+(uo.bottom-uo.top),ao=uo.bottom}toDOM(to){for(let no=0,io=0,so=0;;no++){let ao=noscaleBlock(so,to)):eo._content)}const theme=Facet.define({combine:eo=>eo.join(" ")}),darkTheme=Facet.define({combine:eo=>eo.indexOf(!0)>-1}),baseThemeID=StyleModule.newName(),baseLightID=StyleModule.newName(),baseDarkID=StyleModule.newName(),lightDarkIDs={"&light":"."+baseLightID,"&dark":"."+baseDarkID};function buildTheme(eo,to,no){return new StyleModule(to,{finish(io){return/&/.test(io)?io.replace(/&\w*/,so=>{if(so=="&")return eo;if(!no||!no[so])throw new RangeError(`Unsupported selector: ${so}`);return no[so]}):eo+" "+io}})}const baseTheme$1$2=buildTheme("."+baseThemeID,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},lightDarkIDs),LineBreakPlaceholder="￿";class DOMReader{constructor(to,no){this.points=to,this.text="",this.lineSeparator=no.facet(EditorState.lineSeparator)}append(to){this.text+=to}lineBreak(){this.text+=LineBreakPlaceholder}readRange(to,no){if(!to)return this;let io=to.parentNode;for(let so=to;;){this.findPointBefore(io,so);let ao=this.text.length;this.readNode(so);let lo=so.nextSibling;if(lo==no)break;let uo=ContentView.get(so),ho=ContentView.get(lo);(uo&&ho?uo.breakAfter:(uo?uo.breakAfter:isBlockElement(so))||isBlockElement(lo)&&(so.nodeName!="BR"||so.cmIgnore)&&this.text.length>ao)&&this.lineBreak(),so=lo}return this.findPointBefore(io,no),this}readTextNode(to){let no=to.nodeValue;for(let io of this.points)io.node==to&&(io.pos=this.text.length+Math.min(io.offset,no.length));for(let io=0,so=this.lineSeparator?null:/\r\n?|\n/g;;){let ao=-1,lo=1,uo;if(this.lineSeparator?(ao=no.indexOf(this.lineSeparator,io),lo=this.lineSeparator.length):(uo=so.exec(no))&&(ao=uo.index,lo=uo[0].length),this.append(no.slice(io,ao<0?no.length:ao)),ao<0)break;if(this.lineBreak(),lo>1)for(let ho of this.points)ho.node==to&&ho.pos>this.text.length&&(ho.pos-=lo-1);io=ao+lo}}readNode(to){if(to.cmIgnore)return;let no=ContentView.get(to),io=no&&no.overrideDOMText;if(io!=null){this.findPointInside(to,io.length);for(let so=io.iter();!so.next().done;)so.lineBreak?this.lineBreak():this.append(so.value)}else to.nodeType==3?this.readTextNode(to):to.nodeName=="BR"?to.nextSibling&&this.lineBreak():to.nodeType==1&&this.readRange(to.firstChild,null)}findPointBefore(to,no){for(let io of this.points)io.node==to&&to.childNodes[io.offset]==no&&(io.pos=this.text.length)}findPointInside(to,no){for(let io of this.points)(to.nodeType==3?io.node==to:to.contains(io.node))&&(io.pos=this.text.length+(isAtEnd(to,io.node,io.offset)?no:0))}}function isAtEnd(eo,to,no){for(;;){if(!to||no-1)this.newSel=null;else if(no>-1&&(this.bounds=to.docView.domBoundsAround(no,io,0))){let uo=ao||lo?[]:selectionPoints(to),ho=new DOMReader(uo,to.state);ho.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=ho.text,this.newSel=selectionFromPoints(uo,this.bounds.from)}else{let uo=to.observer.selectionRange,ho=ao&&ao.node==uo.focusNode&&ao.offset==uo.focusOffset||!contains$1(to.contentDOM,uo.focusNode)?to.state.selection.main.head:to.docView.posFromDOM(uo.focusNode,uo.focusOffset),go=lo&&lo.node==uo.anchorNode&&lo.offset==uo.anchorOffset||!contains$1(to.contentDOM,uo.anchorNode)?to.state.selection.main.anchor:to.docView.posFromDOM(uo.anchorNode,uo.anchorOffset),mo=to.viewport;if((browser.ios||browser.chrome)&&to.state.selection.main.empty&&ho!=go&&(mo.from>0||mo.toDate.now()-100?eo.inputState.lastKeyCode:-1;if(to.bounds){let{from:lo,to:uo}=to.bounds,ho=so.from,go=null;(ao===8||browser.android&&to.text.length=so.from&&no.to<=so.to&&(no.from!=so.from||no.to!=so.to)&&so.to-so.from-(no.to-no.from)<=4?no={from:so.from,to:so.to,insert:eo.state.doc.slice(so.from,no.from).append(no.insert).append(eo.state.doc.slice(no.to,so.to))}:(browser.mac||browser.android)&&no&&no.from==no.to&&no.from==so.head-1&&/^\. ?$/.test(no.insert.toString())&&eo.contentDOM.getAttribute("autocorrect")=="off"?(io&&no.insert.length==2&&(io=EditorSelection.single(io.main.anchor-1,io.main.head-1)),no={from:so.from,to:so.to,insert:Text$1.of([" "])}):browser.chrome&&no&&no.from==no.to&&no.from==so.head&&no.insert.toString()==` + `&&eo.lineWrapping&&(io&&(io=EditorSelection.single(io.main.anchor-1,io.main.head-1)),no={from:so.from,to:so.to,insert:Text$1.of([" "])}),no){if(browser.ios&&eo.inputState.flushIOSKey(no)||browser.android&&(no.to==so.to&&(no.from==so.from||no.from==so.from-1&&eo.state.sliceDoc(no.from,so.from)==" ")&&no.insert.length==1&&no.insert.lines==2&&dispatchKey(eo.contentDOM,"Enter",13)||(no.from==so.from-1&&no.to==so.to&&no.insert.length==0||ao==8&&no.insert.lengthso.head)&&dispatchKey(eo.contentDOM,"Backspace",8)||no.from==so.from&&no.to==so.to+1&&no.insert.length==0&&dispatchKey(eo.contentDOM,"Delete",46)))return!0;let lo=no.insert.toString();eo.inputState.composing>=0&&eo.inputState.composing++;let uo,ho=()=>uo||(uo=applyDefaultInsert(eo,no,io));return eo.state.facet(inputHandler$1).some(go=>go(eo,no.from,no.to,lo,ho))||eo.dispatch(ho()),!0}else if(io&&!io.main.eq(so)){let lo=!1,uo="select";return eo.inputState.lastSelectionTime>Date.now()-50&&(eo.inputState.lastSelectionOrigin=="select"&&(lo=!0),uo=eo.inputState.lastSelectionOrigin),eo.dispatch({selection:io,scrollIntoView:lo,userEvent:uo}),!0}else return!1}function applyDefaultInsert(eo,to,no){let io,so=eo.state,ao=so.selection.main;if(to.from>=ao.from&&to.to<=ao.to&&to.to-to.from>=(ao.to-ao.from)/3&&(!no||no.main.empty&&no.main.from==to.from+to.insert.length)&&eo.inputState.composing<0){let uo=ao.fromto.to?so.sliceDoc(to.to,ao.to):"";io=so.replaceSelection(eo.state.toText(uo+to.insert.sliceString(0,void 0,eo.state.lineBreak)+ho))}else{let uo=so.changes(to),ho=no&&no.main.to<=uo.newLength?no.main:void 0;if(so.selection.ranges.length>1&&eo.inputState.composing>=0&&to.to<=ao.to&&to.to>=ao.to-10){let go=eo.state.sliceDoc(to.from,to.to),mo,yo=no&&findCompositionNode(eo,no.main.head);if(yo){let ko=to.insert.length-(to.to-to.from);mo={from:yo.from,to:yo.to-ko}}else mo=eo.state.doc.lineAt(ao.head);let So=ao.to-to.to,_o=ao.to-ao.from;io=so.changeByRange(ko=>{if(ko.from==ao.from&&ko.to==ao.to)return{changes:uo,range:ho||ko.map(uo)};let Co=ko.to-So,$o=Co-go.length;if(ko.to-ko.from!=_o||eo.state.sliceDoc($o,Co)!=go||ko.to>=mo.from&&ko.from<=mo.to)return{range:ko};let Ro=so.changes({from:$o,to:Co,insert:to.insert}),Oo=ko.to-ao.to;return{changes:Ro,range:ho?EditorSelection.range(Math.max(0,ho.anchor+Oo),Math.max(0,ho.head+Oo)):ko.map(Ro)}})}else io={changes:uo,selection:ho&&so.selection.replaceRange(ho)}}let lo="input.type";return(eo.composing||eo.inputState.compositionPendingChange&&eo.inputState.compositionEndedAt>Date.now()-50)&&(eo.inputState.compositionPendingChange=!1,lo+=".compose",eo.inputState.compositionFirstChange&&(lo+=".start",eo.inputState.compositionFirstChange=!1)),so.update(io,{userEvent:lo,scrollIntoView:!0})}function findDiff(eo,to,no,io){let so=Math.min(eo.length,to.length),ao=0;for(;ao0&&uo>0&&eo.charCodeAt(lo-1)==to.charCodeAt(uo-1);)lo--,uo--;if(io=="end"){let ho=Math.max(0,ao-Math.min(lo,uo));no-=lo+ho-ao}if(lo=lo?ao-no:0;ao-=ho,uo=ao+(uo-lo),lo=ao}else if(uo=uo?ao-no:0;ao-=ho,lo=ao+(lo-uo),uo=ao}return{from:ao,toA:lo,toB:uo}}function selectionPoints(eo){let to=[];if(eo.root.activeElement!=eo.contentDOM)return to;let{anchorNode:no,anchorOffset:io,focusNode:so,focusOffset:ao}=eo.observer.selectionRange;return no&&(to.push(new DOMPoint(no,io)),(so!=no||ao!=io)&&to.push(new DOMPoint(so,ao))),to}function selectionFromPoints(eo,to){if(eo.length==0)return null;let no=eo[0].pos,io=eo.length==2?eo[1].pos:no;return no>-1&&io>-1?EditorSelection.single(no+to,io+to):null}const observeOptions={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},useCharData=browser.ie&&browser.ie_version<=11;class DOMObserver{constructor(to){this.view=to,this.active=!1,this.selectionRange=new DOMSelectionState,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=to.contentDOM,this.observer=new MutationObserver(no=>{for(let io of no)this.queue.push(io);(browser.ie&&browser.ie_version<=11||browser.ios&&to.composing)&&no.some(io=>io.type=="childList"&&io.removedNodes.length||io.type=="characterData"&&io.oldValue.length>io.target.nodeValue.length)?this.flushSoon():this.flush()}),useCharData&&(this.onCharData=no=>{this.queue.push({target:no.target,type:"characterData",oldValue:no.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var no;((no=this.view.docView)===null||no===void 0?void 0:no.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),no.length>0&&no[no.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(no=>{no.length>0&&no[no.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(to){this.view.inputState.runHandlers("scroll",to),this.intersecting&&this.view.measure()}onScroll(to){this.intersecting&&this.flush(!1),this.onScrollChanged(to)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(to){to.type=="change"&&!to.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(to){if(this.gapIntersection&&(to.length!=this.gaps.length||this.gaps.some((no,io)=>no!=to[io]))){this.gapIntersection.disconnect();for(let no of to)this.gapIntersection.observe(no);this.gaps=to}}onSelectionChange(to){let no=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:io}=this,so=this.selectionRange;if(io.state.facet(editable)?io.root.activeElement!=this.dom:!hasSelection(io.dom,so))return;let ao=so.anchorNode&&io.docView.nearest(so.anchorNode);if(ao&&ao.ignoreEvent(to)){no||(this.selectionChanged=!1);return}(browser.ie&&browser.ie_version<=11||browser.android&&browser.chrome)&&!io.state.selection.main.empty&&so.focusNode&&isEquivalentPosition(so.focusNode,so.focusOffset,so.anchorNode,so.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:to}=this,no=browser.safari&&to.root.nodeType==11&&deepActiveElement(this.dom.ownerDocument)==this.dom&&safariSelectionRangeHack(this.view)||getSelection(to.root);if(!no||this.selectionRange.eq(no))return!1;let io=hasSelection(this.dom,no);return io&&!this.selectionChanged&&to.inputState.lastFocusTime>Date.now()-200&&to.inputState.lastTouchTime{let ao=this.delayedAndroidKey;ao&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=ao.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&ao.force&&dispatchKey(this.dom,ao.key,ao.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(so)}(!this.delayedAndroidKey||to=="Enter")&&(this.delayedAndroidKey={key:to,keyCode:no,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let to of this.observer.takeRecords())this.queue.push(to);return this.queue}processRecords(){let to=this.pendingRecords();to.length&&(this.queue=[]);let no=-1,io=-1,so=!1;for(let ao of to){let lo=this.readMutation(ao);lo&&(lo.typeOver&&(so=!0),no==-1?{from:no,to:io}=lo:(no=Math.min(lo.from,no),io=Math.max(lo.to,io)))}return{from:no,to:io,typeOver:so}}readChange(){let{from:to,to:no,typeOver:io}=this.processRecords(),so=this.selectionChanged&&hasSelection(this.dom,this.selectionRange);if(to<0&&!so)return null;to>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let ao=new DOMChange(this.view,to,no,io);return this.view.docView.domChanged={newSel:ao.newSel?ao.newSel.main:null},ao}flush(to=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;to&&this.readSelectionRange();let no=this.readChange();if(!no)return this.view.requestMeasure(),!1;let io=this.view.state,so=applyDOMChange(this.view,no);return this.view.state==io&&this.view.update([]),so}readMutation(to){let no=this.view.docView.nearest(to.target);if(!no||no.ignoreMutation(to))return null;if(no.markDirty(to.type=="attributes"),to.type=="attributes"&&(no.flags|=4),to.type=="childList"){let io=findChild(no,to.previousSibling||to.target.previousSibling,-1),so=findChild(no,to.nextSibling||to.target.nextSibling,1);return{from:io?no.posAfter(io):no.posAtStart,to:so?no.posBefore(so):no.posAtEnd,typeOver:!1}}else return to.type=="characterData"?{from:no.posAtStart,to:no.posAtEnd,typeOver:to.target.nodeValue==to.oldValue}:null}setWindow(to){to!=this.win&&(this.removeWindowListeners(this.win),this.win=to,this.addWindowListeners(this.win))}addWindowListeners(to){to.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):to.addEventListener("beforeprint",this.onPrint),to.addEventListener("scroll",this.onScroll),to.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(to){to.removeEventListener("scroll",this.onScroll),to.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):to.removeEventListener("beforeprint",this.onPrint),to.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var to,no,io;this.stop(),(to=this.intersection)===null||to===void 0||to.disconnect(),(no=this.gapIntersection)===null||no===void 0||no.disconnect(),(io=this.resizeScroll)===null||io===void 0||io.disconnect();for(let so of this.scrollTargets)so.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function findChild(eo,to,no){for(;to;){let io=ContentView.get(to);if(io&&io.parent==eo)return io;let so=to.parentNode;to=so!=eo.dom?so:no>0?to.nextSibling:to.previousSibling}return null}function safariSelectionRangeHack(eo){let to=null;function no(ho){ho.preventDefault(),ho.stopImmediatePropagation(),to=ho.getTargetRanges()[0]}if(eo.contentDOM.addEventListener("beforeinput",no,!0),eo.dom.ownerDocument.execCommand("indent"),eo.contentDOM.removeEventListener("beforeinput",no,!0),!to)return null;let io=to.startContainer,so=to.startOffset,ao=to.endContainer,lo=to.endOffset,uo=eo.docView.domAtPos(eo.state.selection.main.anchor);return isEquivalentPosition(uo.node,uo.offset,ao,lo)&&([io,so,ao,lo]=[ao,lo,io,so]),{anchorNode:io,anchorOffset:so,focusNode:ao,focusOffset:lo}}class EditorView{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(to={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),to.parent&&to.parent.appendChild(this.dom);let{dispatch:no}=to;this.dispatchTransactions=to.dispatchTransactions||no&&(io=>io.forEach(so=>no(so,this)))||(io=>this.update(io)),this.dispatch=this.dispatch.bind(this),this._root=to.root||getRoot(to.parent)||document,this.viewState=new ViewState(to.state||EditorState.create(to)),to.scrollTo&&to.scrollTo.is(scrollIntoView$1)&&(this.viewState.scrollTarget=to.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(viewPlugin).map(io=>new PluginInstance(io));for(let io of this.plugins)io.update(this);this.observer=new DOMObserver(this),this.inputState=new InputState(this),this.inputState.ensureHandlers(this.plugins),this.docView=new DocView(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...to){let no=to.length==1&&to[0]instanceof Transaction?to:to.length==1&&Array.isArray(to[0])?to[0]:[this.state.update(...to)];this.dispatchTransactions(no,this)}update(to){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let no=!1,io=!1,so,ao=this.state;for(let So of to){if(So.startState!=ao)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");ao=So.state}if(this.destroyed){this.viewState.state=ao;return}let lo=this.hasFocus,uo=0,ho=null;to.some(So=>So.annotation(isFocusChange))?(this.inputState.notifiedFocused=lo,uo=1):lo!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=lo,ho=focusChangeTransaction(ao,lo),ho||(uo=1));let go=this.observer.delayedAndroidKey,mo=null;if(go?(this.observer.clearDelayedAndroidKey(),mo=this.observer.readChange(),(mo&&!this.state.doc.eq(ao.doc)||!this.state.selection.eq(ao.selection))&&(mo=null)):this.observer.clear(),ao.facet(EditorState.phrases)!=this.state.facet(EditorState.phrases))return this.setState(ao);so=ViewUpdate.create(this,ao,to),so.flags|=uo;let yo=this.viewState.scrollTarget;try{this.updateState=2;for(let So of to){if(yo&&(yo=yo.map(So.changes)),So.scrollIntoView){let{main:_o}=So.state.selection;yo=new ScrollTarget(_o.empty?_o:EditorSelection.cursor(_o.head,_o.head>_o.anchor?-1:1))}for(let _o of So.effects)_o.is(scrollIntoView$1)&&(yo=_o.value.clip(this.state))}this.viewState.update(so,yo),this.bidiCache=CachedOrder.update(this.bidiCache,so.changes),so.empty||(this.updatePlugins(so),this.inputState.update(so)),no=this.docView.update(so),this.state.facet(styleModule)!=this.styleModules&&this.mountStyles(),io=this.updateAttrs(),this.showAnnouncements(to),this.docView.updateSelection(no,to.some(So=>So.isUserEvent("select.pointer")))}finally{this.updateState=0}if(so.startState.facet(theme)!=so.state.facet(theme)&&(this.viewState.mustMeasureContent=!0),(no||io||yo||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),no&&this.docViewUpdate(),!so.empty)for(let So of this.state.facet(updateListener))try{So(so)}catch(_o){logException(this.state,_o,"update listener")}(ho||mo)&&Promise.resolve().then(()=>{ho&&this.state==ho.startState&&this.dispatch(ho),mo&&!applyDOMChange(this,mo)&&go.force&&dispatchKey(this.contentDOM,go.key,go.keyCode)})}setState(to){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=to;return}this.updateState=2;let no=this.hasFocus;try{for(let io of this.plugins)io.destroy(this);this.viewState=new ViewState(to),this.plugins=to.facet(viewPlugin).map(io=>new PluginInstance(io)),this.pluginMap.clear();for(let io of this.plugins)io.update(this);this.docView.destroy(),this.docView=new DocView(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}no&&this.focus(),this.requestMeasure()}updatePlugins(to){let no=to.startState.facet(viewPlugin),io=to.state.facet(viewPlugin);if(no!=io){let so=[];for(let ao of io){let lo=no.indexOf(ao);if(lo<0)so.push(new PluginInstance(ao));else{let uo=this.plugins[lo];uo.mustUpdate=to,so.push(uo)}}for(let ao of this.plugins)ao.mustUpdate!=to&&ao.destroy(this);this.plugins=so,this.pluginMap.clear()}else for(let so of this.plugins)so.mustUpdate=to;for(let so=0;so-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,to&&this.observer.forceFlush();let no=null,io=this.scrollDOM,so=io.scrollTop*this.scaleY,{scrollAnchorPos:ao,scrollAnchorHeight:lo}=this.viewState;Math.abs(so-this.viewState.scrollTop)>1&&(lo=-1),this.viewState.scrollAnchorHeight=-1;try{for(let uo=0;;uo++){if(lo<0)if(isScrolledToBottom(io))ao=-1,lo=this.viewState.heightMap.height;else{let _o=this.viewState.scrollAnchorAt(so);ao=_o.from,lo=_o.top}this.updateState=1;let ho=this.viewState.measure(this);if(!ho&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(uo>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let go=[];ho&4||([this.measureRequests,go]=[go,this.measureRequests]);let mo=go.map(_o=>{try{return _o.read(this)}catch(ko){return logException(this.state,ko),BadMeasure}}),yo=ViewUpdate.create(this,this.state,[]),So=!1;yo.flags|=ho,no?no.flags|=ho:no=yo,this.updateState=2,yo.empty||(this.updatePlugins(yo),this.inputState.update(yo),this.updateAttrs(),So=this.docView.update(yo),So&&this.docViewUpdate());for(let _o=0;_o1||ko<-1){so=so+ko,io.scrollTop=so/this.scaleY,lo=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(no&&!no.empty)for(let uo of this.state.facet(updateListener))uo(no)}get themeClasses(){return baseThemeID+" "+(this.state.facet(darkTheme)?baseDarkID:baseLightID)+" "+this.state.facet(theme)}updateAttrs(){let to=attrsFromFacet(this,editorAttributes,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),no={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(editable)?"true":"false",class:"cm-content",style:`${browser.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(no["aria-readonly"]="true"),attrsFromFacet(this,contentAttributes,no);let io=this.observer.ignore(()=>{let so=updateAttrs(this.contentDOM,this.contentAttrs,no),ao=updateAttrs(this.dom,this.editorAttrs,to);return so||ao});return this.editorAttrs=to,this.contentAttrs=no,io}showAnnouncements(to){let no=!0;for(let io of to)for(let so of io.effects)if(so.is(EditorView.announce)){no&&(this.announceDOM.textContent=""),no=!1;let ao=this.announceDOM.appendChild(document.createElement("div"));ao.textContent=so.value}}mountStyles(){this.styleModules=this.state.facet(styleModule);let to=this.state.facet(EditorView.cspNonce);StyleModule.mount(this.root,this.styleModules.concat(baseTheme$1$2).reverse(),to?{nonce:to}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(to){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),to){if(this.measureRequests.indexOf(to)>-1)return;if(to.key!=null){for(let no=0;noio.spec==to)||null),no&&no.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(to){return this.readMeasured(),this.viewState.elementAtHeight(to)}lineBlockAtHeight(to){return this.readMeasured(),this.viewState.lineBlockAtHeight(to)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(to){return this.viewState.lineBlockAt(to)}get contentHeight(){return this.viewState.contentHeight}moveByChar(to,no,io){return skipAtoms(this,to,moveByChar(this,to,no,io))}moveByGroup(to,no){return skipAtoms(this,to,moveByChar(this,to,no,io=>byGroup(this,to.head,io)))}visualLineSide(to,no){let io=this.bidiSpans(to),so=this.textDirectionAt(to.from),ao=io[no?io.length-1:0];return EditorSelection.cursor(ao.side(no,so)+to.from,ao.forward(!no,so)?1:-1)}moveToLineBoundary(to,no,io=!0){return moveToLineBoundary(this,to,no,io)}moveVertically(to,no,io){return skipAtoms(this,to,moveVertically(this,to,no,io))}domAtPos(to){return this.docView.domAtPos(to)}posAtDOM(to,no=0){return this.docView.posFromDOM(to,no)}posAtCoords(to,no=!0){return this.readMeasured(),posAtCoords(this,to,no)}coordsAtPos(to,no=1){this.readMeasured();let io=this.docView.coordsAt(to,no);if(!io||io.left==io.right)return io;let so=this.state.doc.lineAt(to),ao=this.bidiSpans(so),lo=ao[BidiSpan.find(ao,to-so.from,-1,no)];return flattenRect(io,lo.dir==Direction.LTR==no>0)}coordsForChar(to){return this.readMeasured(),this.docView.coordsForChar(to)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(to){return!this.state.facet(perLineTextDirection)||tothis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(to))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(to){if(to.length>MaxBidiLine)return trivialOrder(to.length);let no=this.textDirectionAt(to.from),io;for(let ao of this.bidiCache)if(ao.from==to.from&&ao.dir==no&&(ao.fresh||isolatesEq(ao.isolates,io=getIsolatedRanges(this,to))))return ao.order;io||(io=getIsolatedRanges(this,to));let so=computeOrder(to.text,no,io);return this.bidiCache.push(new CachedOrder(to.from,to.to,no,io,!0,so)),so}get hasFocus(){var to;return(this.dom.ownerDocument.hasFocus()||browser.safari&&((to=this.inputState)===null||to===void 0?void 0:to.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{focusPreventScroll(this.contentDOM),this.docView.updateSelection()})}setRoot(to){this._root!=to&&(this._root=to,this.observer.setWindow((to.nodeType==9?to:to.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let to of this.plugins)to.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(to,no={}){return scrollIntoView$1.of(new ScrollTarget(typeof to=="number"?EditorSelection.cursor(to):to,no.y,no.x,no.yMargin,no.xMargin))}scrollSnapshot(){let{scrollTop:to,scrollLeft:no}=this.scrollDOM,io=this.viewState.scrollAnchorAt(to);return scrollIntoView$1.of(new ScrollTarget(EditorSelection.cursor(io.from),"start","start",io.top-to,no,!0))}static domEventHandlers(to){return ViewPlugin.define(()=>({}),{eventHandlers:to})}static domEventObservers(to){return ViewPlugin.define(()=>({}),{eventObservers:to})}static theme(to,no){let io=StyleModule.newName(),so=[theme.of(io),styleModule.of(buildTheme(`.${io}`,to))];return no&&no.dark&&so.push(darkTheme.of(!0)),so}static baseTheme(to){return Prec.lowest(styleModule.of(buildTheme("."+baseThemeID,to,lightDarkIDs)))}static findFromDOM(to){var no;let io=to.querySelector(".cm-content"),so=io&&ContentView.get(io)||ContentView.get(to);return((no=so==null?void 0:so.rootView)===null||no===void 0?void 0:no.view)||null}}EditorView.styleModule=styleModule;EditorView.inputHandler=inputHandler$1;EditorView.scrollHandler=scrollHandler;EditorView.focusChangeEffect=focusChangeEffect;EditorView.perLineTextDirection=perLineTextDirection;EditorView.exceptionSink=exceptionSink;EditorView.updateListener=updateListener;EditorView.editable=editable;EditorView.mouseSelectionStyle=mouseSelectionStyle;EditorView.dragMovesSelection=dragMovesSelection$1;EditorView.clickAddsSelectionRange=clickAddsSelectionRange;EditorView.decorations=decorations;EditorView.outerDecorations=outerDecorations;EditorView.atomicRanges=atomicRanges;EditorView.bidiIsolatedRanges=bidiIsolatedRanges;EditorView.scrollMargins=scrollMargins;EditorView.darkTheme=darkTheme;EditorView.cspNonce=Facet.define({combine:eo=>eo.length?eo[0]:""});EditorView.contentAttributes=contentAttributes;EditorView.editorAttributes=editorAttributes;EditorView.lineWrapping=EditorView.contentAttributes.of({class:"cm-lineWrapping"});EditorView.announce=StateEffect.define();const MaxBidiLine=4096,BadMeasure={};class CachedOrder{constructor(to,no,io,so,ao,lo){this.from=to,this.to=no,this.dir=io,this.isolates=so,this.fresh=ao,this.order=lo}static update(to,no){if(no.empty&&!to.some(ao=>ao.fresh))return to;let io=[],so=to.length?to[to.length-1].dir:Direction.LTR;for(let ao=Math.max(0,to.length-10);ao=0;so--){let ao=io[so],lo=typeof ao=="function"?ao(eo):ao;lo&&combineAttrs(lo,no)}return no}const currentPlatform=browser.mac?"mac":browser.windows?"win":browser.linux?"linux":"key";function normalizeKeyName(eo,to){const no=eo.split(/-(?!$)/);let io=no[no.length-1];io=="Space"&&(io=" ");let so,ao,lo,uo;for(let ho=0;hoio.concat(so),[]))),no}function runScopeHandlers(eo,to,no){return runHandlers(getKeymap(eo.state),to,eo,no)}let storedPrefix=null;const PrefixTimeout=4e3;function buildKeymap(eo,to=currentPlatform){let no=Object.create(null),io=Object.create(null),so=(lo,uo)=>{let ho=io[lo];if(ho==null)io[lo]=uo;else if(ho!=uo)throw new Error("Key binding "+lo+" is used both as a regular binding and as a multi-stroke prefix")},ao=(lo,uo,ho,go,mo)=>{var yo,So;let _o=no[lo]||(no[lo]=Object.create(null)),ko=uo.split(/ (?!$)/).map(Ro=>normalizeKeyName(Ro,to));for(let Ro=1;Ro{let Mo=storedPrefix={view:No,prefix:Oo,scope:lo};return setTimeout(()=>{storedPrefix==Mo&&(storedPrefix=null)},PrefixTimeout),!0}]})}let Co=ko.join(" ");so(Co,!1);let $o=_o[Co]||(_o[Co]={preventDefault:!1,stopPropagation:!1,run:((So=(yo=_o._any)===null||yo===void 0?void 0:yo.run)===null||So===void 0?void 0:So.slice())||[]});ho&&$o.run.push(ho),go&&($o.preventDefault=!0),mo&&($o.stopPropagation=!0)};for(let lo of eo){let uo=lo.scope?lo.scope.split(" "):["editor"];if(lo.any)for(let go of uo){let mo=no[go]||(no[go]=Object.create(null));mo._any||(mo._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let yo in mo)mo[yo].run.push(lo.any)}let ho=lo[to]||lo.key;if(ho)for(let go of uo)ao(go,ho,lo.run,lo.preventDefault,lo.stopPropagation),lo.shift&&ao(go,"Shift-"+ho,lo.shift,lo.preventDefault,lo.stopPropagation)}return no}function runHandlers(eo,to,no,io){let so=keyName(to),ao=codePointAt(so,0),lo=codePointSize(ao)==so.length&&so!=" ",uo="",ho=!1,go=!1,mo=!1;storedPrefix&&storedPrefix.view==no&&storedPrefix.scope==io&&(uo=storedPrefix.prefix+" ",modifierCodes.indexOf(to.keyCode)<0&&(go=!0,storedPrefix=null));let yo=new Set,So=$o=>{if($o){for(let Ro of $o.run)if(!yo.has(Ro)&&(yo.add(Ro),Ro(no,to)))return $o.stopPropagation&&(mo=!0),!0;$o.preventDefault&&($o.stopPropagation&&(mo=!0),go=!0)}return!1},_o=eo[io],ko,Co;return _o&&(So(_o[uo+modifiers(so,to,!lo)])?ho=!0:lo&&(to.altKey||to.metaKey||to.ctrlKey)&&!(browser.windows&&to.ctrlKey&&to.altKey)&&(ko=base[to.keyCode])&&ko!=so?(So(_o[uo+modifiers(ko,to,!0)])||to.shiftKey&&(Co=shift[to.keyCode])!=so&&Co!=ko&&So(_o[uo+modifiers(Co,to,!1)]))&&(ho=!0):lo&&to.shiftKey&&So(_o[uo+modifiers(so,to,!0)])&&(ho=!0),!ho&&So(_o._any)&&(ho=!0)),go&&(ho=!0),ho&&mo&&to.stopPropagation(),ho}class RectangleMarker{constructor(to,no,io,so,ao){this.className=to,this.left=no,this.top=io,this.width=so,this.height=ao}draw(){let to=document.createElement("div");return to.className=this.className,this.adjust(to),to}update(to,no){return no.className!=this.className?!1:(this.adjust(to),!0)}adjust(to){to.style.left=this.left+"px",to.style.top=this.top+"px",this.width!=null&&(to.style.width=this.width+"px"),to.style.height=this.height+"px"}eq(to){return this.left==to.left&&this.top==to.top&&this.width==to.width&&this.height==to.height&&this.className==to.className}static forRange(to,no,io){if(io.empty){let so=to.coordsAtPos(io.head,io.assoc||1);if(!so)return[];let ao=getBase(to);return[new RectangleMarker(no,so.left-ao.left,so.top-ao.top,null,so.bottom-so.top)]}else return rectanglesForRange(to,no,io)}}function getBase(eo){let to=eo.scrollDOM.getBoundingClientRect();return{left:(eo.textDirection==Direction.LTR?to.left:to.right-eo.scrollDOM.clientWidth*eo.scaleX)-eo.scrollDOM.scrollLeft*eo.scaleX,top:to.top-eo.scrollDOM.scrollTop*eo.scaleY}}function wrappedLine(eo,to,no){let io=EditorSelection.cursor(to);return{from:Math.max(no.from,eo.moveToLineBoundary(io,!1,!0).from),to:Math.min(no.to,eo.moveToLineBoundary(io,!0,!0).from),type:BlockType.Text}}function rectanglesForRange(eo,to,no){if(no.to<=eo.viewport.from||no.from>=eo.viewport.to)return[];let io=Math.max(no.from,eo.viewport.from),so=Math.min(no.to,eo.viewport.to),ao=eo.textDirection==Direction.LTR,lo=eo.contentDOM,uo=lo.getBoundingClientRect(),ho=getBase(eo),go=lo.querySelector(".cm-line"),mo=go&&window.getComputedStyle(go),yo=uo.left+(mo?parseInt(mo.paddingLeft)+Math.min(0,parseInt(mo.textIndent)):0),So=uo.right-(mo?parseInt(mo.paddingRight):0),_o=blockAt(eo,io),ko=blockAt(eo,so),Co=_o.type==BlockType.Text?_o:null,$o=ko.type==BlockType.Text?ko:null;if(Co&&(eo.lineWrapping||_o.widgetLineBreaks)&&(Co=wrappedLine(eo,io,Co)),$o&&(eo.lineWrapping||ko.widgetLineBreaks)&&($o=wrappedLine(eo,so,$o)),Co&&$o&&Co.from==$o.from)return Oo(No(no.from,no.to,Co));{let Bo=Co?No(no.from,null,Co):Mo(_o,!1),Fo=$o?No(null,no.to,$o):Mo(ko,!0),Lo=[];return(Co||_o).to<($o||ko).from-(Co&&$o?1:0)||_o.widgetLineBreaks>1&&Bo.bottom+eo.defaultLineHeight/2Yo&&Jo.from=Qo)break;vs>ps&&Ho(Math.max(ys,ps),Bo==null&&ys<=Yo,Math.min(vs,Qo),Fo==null&&vs>=qo,gs.dir)}if(ps=hs.to+1,ps>=Qo)break}return Uo.length==0&&Ho(Yo,Bo==null,qo,Fo==null,eo.textDirection),{top:Go,bottom:Do,horizontal:Uo}}function Mo(Bo,Fo){let Lo=uo.top+(Fo?Bo.top:Bo.bottom);return{top:Lo,bottom:Lo,horizontal:[]}}}function sameMarker(eo,to){return eo.constructor==to.constructor&&eo.eq(to)}class LayerView{constructor(to,no){this.view=to,this.layer=no,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=to.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),no.above&&this.dom.classList.add("cm-layer-above"),no.class&&this.dom.classList.add(no.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(to.state),to.requestMeasure(this.measureReq),no.mount&&no.mount(this.dom,to)}update(to){to.startState.facet(layerOrder)!=to.state.facet(layerOrder)&&this.setOrder(to.state),(this.layer.update(to,this.dom)||to.geometryChanged)&&(this.scale(),to.view.requestMeasure(this.measureReq))}docViewUpdate(to){this.layer.updateOnDocViewUpdate!==!1&&to.requestMeasure(this.measureReq)}setOrder(to){let no=0,io=to.facet(layerOrder);for(;no!sameMarker(no,this.drawn[io]))){let no=this.dom.firstChild,io=0;for(let so of to)so.update&&no&&so.constructor&&this.drawn[io].constructor&&so.update(no,this.drawn[io])?(no=no.nextSibling,io++):this.dom.insertBefore(so.draw(),no);for(;no;){let so=no.nextSibling;no.remove(),no=so}this.drawn=to}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const layerOrder=Facet.define();function layer(eo){return[ViewPlugin.define(to=>new LayerView(to,eo)),layerOrder.of(eo)]}const CanHidePrimary=!browser.ios,selectionConfig=Facet.define({combine(eo){return combineConfig(eo,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(to,no)=>Math.min(to,no),drawRangeCursor:(to,no)=>to||no})}});function drawSelection(eo={}){return[selectionConfig.of(eo),cursorLayer,selectionLayer,hideNativeSelection,nativeSelectionHidden.of(!0)]}function configChanged(eo){return eo.startState.facet(selectionConfig)!=eo.state.facet(selectionConfig)}const cursorLayer=layer({above:!0,markers(eo){let{state:to}=eo,no=to.facet(selectionConfig),io=[];for(let so of to.selection.ranges){let ao=so==to.selection.main;if(so.empty?!ao||CanHidePrimary:no.drawRangeCursor){let lo=ao?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",uo=so.empty?so:EditorSelection.cursor(so.head,so.head>so.anchor?-1:1);for(let ho of RectangleMarker.forRange(eo,lo,uo))io.push(ho)}}return io},update(eo,to){eo.transactions.some(io=>io.selection)&&(to.style.animationName=to.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let no=configChanged(eo);return no&&setBlinkRate(eo.state,to),eo.docChanged||eo.selectionSet||no},mount(eo,to){setBlinkRate(to.state,eo)},class:"cm-cursorLayer"});function setBlinkRate(eo,to){to.style.animationDuration=eo.facet(selectionConfig).cursorBlinkRate+"ms"}const selectionLayer=layer({above:!1,markers(eo){return eo.state.selection.ranges.map(to=>to.empty?[]:RectangleMarker.forRange(eo,"cm-selectionBackground",to)).reduce((to,no)=>to.concat(no))},update(eo,to){return eo.docChanged||eo.selectionSet||eo.viewportChanged||configChanged(eo)},class:"cm-selectionLayer"}),themeSpec={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};CanHidePrimary&&(themeSpec[".cm-line"].caretColor="transparent !important",themeSpec[".cm-content"]={caretColor:"transparent !important"});const hideNativeSelection=Prec.highest(EditorView.theme(themeSpec)),setDropCursorPos=StateEffect.define({map(eo,to){return eo==null?null:to.mapPos(eo)}}),dropCursorPos=StateField.define({create(){return null},update(eo,to){return eo!=null&&(eo=to.changes.mapPos(eo)),to.effects.reduce((no,io)=>io.is(setDropCursorPos)?io.value:no,eo)}}),drawDropCursor=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(eo){var to;let no=eo.state.field(dropCursorPos);no==null?this.cursor!=null&&((to=this.cursor)===null||to===void 0||to.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(eo.startState.field(dropCursorPos)!=no||eo.docChanged||eo.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:eo}=this,to=eo.state.field(dropCursorPos),no=to!=null&&eo.coordsAtPos(to);if(!no)return null;let io=eo.scrollDOM.getBoundingClientRect();return{left:no.left-io.left+eo.scrollDOM.scrollLeft*eo.scaleX,top:no.top-io.top+eo.scrollDOM.scrollTop*eo.scaleY,height:no.bottom-no.top}}drawCursor(eo){if(this.cursor){let{scaleX:to,scaleY:no}=this.view;eo?(this.cursor.style.left=eo.left/to+"px",this.cursor.style.top=eo.top/no+"px",this.cursor.style.height=eo.height/no+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(eo){this.view.state.field(dropCursorPos)!=eo&&this.view.dispatch({effects:setDropCursorPos.of(eo)})}},{eventObservers:{dragover(eo){this.setDropPos(this.view.posAtCoords({x:eo.clientX,y:eo.clientY}))},dragleave(eo){(eo.target==this.view.contentDOM||!this.view.contentDOM.contains(eo.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function dropCursor(){return[dropCursorPos,drawDropCursor]}function iterMatches(eo,to,no,io,so){to.lastIndex=0;for(let ao=eo.iterRange(no,io),lo=no,uo;!ao.next().done;lo+=ao.value.length)if(!ao.lineBreak)for(;uo=to.exec(ao.value);)so(lo+uo.index,uo)}function matchRanges(eo,to){let no=eo.visibleRanges;if(no.length==1&&no[0].from==eo.viewport.from&&no[0].to==eo.viewport.to)return no;let io=[];for(let{from:so,to:ao}of no)so=Math.max(eo.state.doc.lineAt(so).from,so-to),ao=Math.min(eo.state.doc.lineAt(ao).to,ao+to),io.length&&io[io.length-1].to>=so?io[io.length-1].to=ao:io.push({from:so,to:ao});return io}class MatchDecorator{constructor(to){const{regexp:no,decoration:io,decorate:so,boundary:ao,maxLength:lo=1e3}=to;if(!no.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=no,so)this.addMatch=(uo,ho,go,mo)=>so(mo,go,go+uo[0].length,uo,ho);else if(typeof io=="function")this.addMatch=(uo,ho,go,mo)=>{let yo=io(uo,ho,go);yo&&mo(go,go+uo[0].length,yo)};else if(io)this.addMatch=(uo,ho,go,mo)=>mo(go,go+uo[0].length,io);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=ao,this.maxLength=lo}createDeco(to){let no=new RangeSetBuilder,io=no.add.bind(no);for(let{from:so,to:ao}of matchRanges(to,this.maxLength))iterMatches(to.state.doc,this.regexp,so,ao,(lo,uo)=>this.addMatch(uo,to,lo,io));return no.finish()}updateDeco(to,no){let io=1e9,so=-1;return to.docChanged&&to.changes.iterChanges((ao,lo,uo,ho)=>{ho>to.view.viewport.from&&uo1e3?this.createDeco(to.view):so>-1?this.updateRange(to.view,no.map(to.changes),io,so):no}updateRange(to,no,io,so){for(let ao of to.visibleRanges){let lo=Math.max(ao.from,io),uo=Math.min(ao.to,so);if(uo>lo){let ho=to.state.doc.lineAt(lo),go=ho.toho.from;lo--)if(this.boundary.test(ho.text[lo-1-ho.from])){mo=lo;break}for(;uoSo.push(Ro.range(Co,$o));if(ho==go)for(this.regexp.lastIndex=mo-ho.from;(_o=this.regexp.exec(ho.text))&&_o.indexthis.addMatch($o,to,Co,ko));no=no.update({filterFrom:mo,filterTo:yo,filter:(Co,$o)=>Coyo,add:So})}}return no}}const UnicodeRegexpSupport=/x/.unicode!=null?"gu":"g",Specials=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,UnicodeRegexpSupport),Names={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let _supportsTabSize=null;function supportsTabSize(){var eo;if(_supportsTabSize==null&&typeof document<"u"&&document.body){let to=document.body.style;_supportsTabSize=((eo=to.tabSize)!==null&&eo!==void 0?eo:to.MozTabSize)!=null}return _supportsTabSize||!1}const specialCharConfig=Facet.define({combine(eo){let to=combineConfig(eo,{render:null,specialChars:Specials,addSpecialChars:null});return(to.replaceTabs=!supportsTabSize())&&(to.specialChars=new RegExp(" |"+to.specialChars.source,UnicodeRegexpSupport)),to.addSpecialChars&&(to.specialChars=new RegExp(to.specialChars.source+"|"+to.addSpecialChars.source,UnicodeRegexpSupport)),to}});function highlightSpecialChars(eo={}){return[specialCharConfig.of(eo),specialCharPlugin()]}let _plugin=null;function specialCharPlugin(){return _plugin||(_plugin=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.decorations=Decoration.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(eo.state.facet(specialCharConfig)),this.decorations=this.decorator.createDeco(eo)}makeDecorator(eo){return new MatchDecorator({regexp:eo.specialChars,decoration:(to,no,io)=>{let{doc:so}=no.state,ao=codePointAt(to[0],0);if(ao==9){let lo=so.lineAt(io),uo=no.state.tabSize,ho=countColumn(lo.text,uo,io-lo.from);return Decoration.replace({widget:new TabWidget((uo-ho%uo)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[ao]||(this.decorationCache[ao]=Decoration.replace({widget:new SpecialCharWidget(eo,ao)}))},boundary:eo.replaceTabs?void 0:/[^]/})}update(eo){let to=eo.state.facet(specialCharConfig);eo.startState.facet(specialCharConfig)!=to?(this.decorator=this.makeDecorator(to),this.decorations=this.decorator.createDeco(eo.view)):this.decorations=this.decorator.updateDeco(eo,this.decorations)}},{decorations:eo=>eo.decorations}))}const DefaultPlaceholder="•";function placeholder$1(eo){return eo>=32?DefaultPlaceholder:eo==10?"␤":String.fromCharCode(9216+eo)}class SpecialCharWidget extends WidgetType{constructor(to,no){super(),this.options=to,this.code=no}eq(to){return to.code==this.code}toDOM(to){let no=placeholder$1(this.code),io=to.state.phrase("Control character")+" "+(Names[this.code]||"0x"+this.code.toString(16)),so=this.options.render&&this.options.render(this.code,io,no);if(so)return so;let ao=document.createElement("span");return ao.textContent=no,ao.title=io,ao.setAttribute("aria-label",io),ao.className="cm-specialChar",ao}ignoreEvent(){return!1}}class TabWidget extends WidgetType{constructor(to){super(),this.width=to}eq(to){return to.width==this.width}toDOM(){let to=document.createElement("span");return to.textContent=" ",to.className="cm-tab",to.style.width=this.width+"px",to}ignoreEvent(){return!1}}function highlightActiveLine(){return activeLineHighlighter}const lineDeco=Decoration.line({class:"cm-activeLine"}),activeLineHighlighter=ViewPlugin.fromClass(class{constructor(eo){this.decorations=this.getDeco(eo)}update(eo){(eo.docChanged||eo.selectionSet)&&(this.decorations=this.getDeco(eo.view))}getDeco(eo){let to=-1,no=[];for(let io of eo.state.selection.ranges){let so=eo.lineBlockAt(io.head);so.from>to&&(no.push(lineDeco.range(so.from)),to=so.from)}return Decoration.set(no)}},{decorations:eo=>eo.decorations});class Placeholder extends WidgetType{constructor(to){super(),this.content=to}toDOM(){let to=document.createElement("span");return to.className="cm-placeholder",to.style.pointerEvents="none",to.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?to.setAttribute("aria-label","placeholder "+this.content):to.setAttribute("aria-hidden","true"),to}coordsAt(to){let no=to.firstChild?clientRectsFor(to.firstChild):[];if(!no.length)return null;let io=window.getComputedStyle(to.parentNode),so=flattenRect(no[0],io.direction!="rtl"),ao=parseInt(io.lineHeight);return so.bottom-so.top>ao*1.5?{left:so.left,right:so.right,top:so.top,bottom:so.top+ao}:so}ignoreEvent(){return!1}}function placeholder(eo){return ViewPlugin.fromClass(class{constructor(to){this.view=to,this.placeholder=eo?Decoration.set([Decoration.widget({widget:new Placeholder(eo),side:1}).range(0)]):Decoration.none}get decorations(){return this.view.state.doc.length?Decoration.none:this.placeholder}},{decorations:to=>to.decorations})}const MaxOff=2e3;function rectangleFor(eo,to,no){let io=Math.min(to.line,no.line),so=Math.max(to.line,no.line),ao=[];if(to.off>MaxOff||no.off>MaxOff||to.col<0||no.col<0){let lo=Math.min(to.off,no.off),uo=Math.max(to.off,no.off);for(let ho=io;ho<=so;ho++){let go=eo.doc.line(ho);go.length<=uo&&ao.push(EditorSelection.range(go.from+lo,go.to+uo))}}else{let lo=Math.min(to.col,no.col),uo=Math.max(to.col,no.col);for(let ho=io;ho<=so;ho++){let go=eo.doc.line(ho),mo=findColumn(go.text,lo,eo.tabSize,!0);if(mo<0)ao.push(EditorSelection.cursor(go.to));else{let yo=findColumn(go.text,uo,eo.tabSize);ao.push(EditorSelection.range(go.from+mo,go.from+yo))}}}return ao}function absoluteColumn(eo,to){let no=eo.coordsAtPos(eo.viewport.from);return no?Math.round(Math.abs((no.left-to)/eo.defaultCharacterWidth)):-1}function getPos(eo,to){let no=eo.posAtCoords({x:to.clientX,y:to.clientY},!1),io=eo.state.doc.lineAt(no),so=no-io.from,ao=so>MaxOff?-1:so==io.length?absoluteColumn(eo,to.clientX):countColumn(io.text,eo.state.tabSize,no-io.from);return{line:io.number,col:ao,off:so}}function rectangleSelectionStyle(eo,to){let no=getPos(eo,to),io=eo.state.selection;return no?{update(so){if(so.docChanged){let ao=so.changes.mapPos(so.startState.doc.line(no.line).from),lo=so.state.doc.lineAt(ao);no={line:lo.number,col:no.col,off:Math.min(no.off,lo.length)},io=io.map(so.changes)}},get(so,ao,lo){let uo=getPos(eo,so);if(!uo)return io;let ho=rectangleFor(eo.state,no,uo);return ho.length?lo?EditorSelection.create(ho.concat(io.ranges)):EditorSelection.create(ho):io}}:null}function rectangularSelection(eo){let to=(eo==null?void 0:eo.eventFilter)||(no=>no.altKey&&no.button==0);return EditorView.mouseSelectionStyle.of((no,io)=>to(io)?rectangleSelectionStyle(no,io):null)}const keys$1={Alt:[18,eo=>!!eo.altKey],Control:[17,eo=>!!eo.ctrlKey],Shift:[16,eo=>!!eo.shiftKey],Meta:[91,eo=>!!eo.metaKey]},showCrosshair={style:"cursor: crosshair"};function crosshairCursor(eo={}){let[to,no]=keys$1[eo.key||"Alt"],io=ViewPlugin.fromClass(class{constructor(so){this.view=so,this.isDown=!1}set(so){this.isDown!=so&&(this.isDown=so,this.view.update([]))}},{eventObservers:{keydown(so){this.set(so.keyCode==to||no(so))},keyup(so){(so.keyCode==to||!no(so))&&this.set(!1)},mousemove(so){this.set(no(so))}}});return[io,EditorView.contentAttributes.of(so=>{var ao;return!((ao=so.plugin(io))===null||ao===void 0)&&ao.isDown?showCrosshair:null})]}const Outside="-10000px";class TooltipViewManager{constructor(to,no,io,so){this.facet=no,this.createTooltipView=io,this.removeTooltipView=so,this.input=to.state.facet(no),this.tooltips=this.input.filter(lo=>lo);let ao=null;this.tooltipViews=this.tooltips.map(lo=>ao=io(lo,ao))}update(to,no){var io;let so=to.state.facet(this.facet),ao=so.filter(ho=>ho);if(so===this.input){for(let ho of this.tooltipViews)ho.update&&ho.update(to);return!1}let lo=[],uo=no?[]:null;for(let ho=0;hono[go]=ho),no.length=uo.length),this.input=so,this.tooltips=ao,this.tooltipViews=lo,!0}}function windowSpace(eo){let{win:to}=eo;return{top:0,left:0,bottom:to.innerHeight,right:to.innerWidth}}const tooltipConfig=Facet.define({combine:eo=>{var to,no,io;return{position:browser.ios?"absolute":((to=eo.find(so=>so.position))===null||to===void 0?void 0:to.position)||"fixed",parent:((no=eo.find(so=>so.parent))===null||no===void 0?void 0:no.parent)||null,tooltipSpace:((io=eo.find(so=>so.tooltipSpace))===null||io===void 0?void 0:io.tooltipSpace)||windowSpace}}}),knownHeight=new WeakMap,tooltipPlugin=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let to=eo.state.facet(tooltipConfig);this.position=to.position,this.parent=to.parent,this.classes=eo.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new TooltipViewManager(eo,showTooltip,(no,io)=>this.createTooltip(no,io),no=>{this.resizeObserver&&this.resizeObserver.unobserve(no.dom),no.dom.remove()}),this.above=this.manager.tooltips.map(no=>!!no.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(no=>{Date.now()>this.lastTransaction-50&&no.length>0&&no[no.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),eo.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let eo of this.manager.tooltipViews)this.intersectionObserver.observe(eo.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(eo){eo.transactions.length&&(this.lastTransaction=Date.now());let to=this.manager.update(eo,this.above);to&&this.observeIntersection();let no=to||eo.geometryChanged,io=eo.state.facet(tooltipConfig);if(io.position!=this.position&&!this.madeAbsolute){this.position=io.position;for(let so of this.manager.tooltipViews)so.dom.style.position=this.position;no=!0}if(io.parent!=this.parent){this.parent&&this.container.remove(),this.parent=io.parent,this.createContainer();for(let so of this.manager.tooltipViews)this.container.appendChild(so.dom);no=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);no&&this.maybeMeasure()}createTooltip(eo,to){let no=eo.create(this.view),io=to?to.dom:null;if(no.dom.classList.add("cm-tooltip"),eo.arrow&&!no.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let so=document.createElement("div");so.className="cm-tooltip-arrow",no.dom.insertBefore(so,io)}return no.dom.style.position=this.position,no.dom.style.top=Outside,no.dom.style.left="0px",this.container.insertBefore(no.dom,io),no.mount&&no.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(no.dom),no}destroy(){var eo,to,no;this.view.win.removeEventListener("resize",this.measureSoon);for(let io of this.manager.tooltipViews)io.dom.remove(),(eo=io.destroy)===null||eo===void 0||eo.call(io);this.parent&&this.container.remove(),(to=this.resizeObserver)===null||to===void 0||to.disconnect(),(no=this.intersectionObserver)===null||no===void 0||no.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let eo=this.view.dom.getBoundingClientRect(),to=1,no=1,io=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:so}=this.manager.tooltipViews[0];if(browser.gecko)io=so.offsetParent!=this.container.ownerDocument.body;else if(so.style.top==Outside&&so.style.left=="0px"){let ao=so.getBoundingClientRect();io=Math.abs(ao.top+1e4)>1||Math.abs(ao.left)>1}}if(io||this.position=="absolute")if(this.parent){let so=this.parent.getBoundingClientRect();so.width&&so.height&&(to=so.width/this.parent.offsetWidth,no=so.height/this.parent.offsetHeight)}else({scaleX:to,scaleY:no}=this.view.viewState);return{editor:eo,parent:this.parent?this.container.getBoundingClientRect():eo,pos:this.manager.tooltips.map((so,ao)=>{let lo=this.manager.tooltipViews[ao];return lo.getCoords?lo.getCoords(so.pos):this.view.coordsAtPos(so.pos)}),size:this.manager.tooltipViews.map(({dom:so})=>so.getBoundingClientRect()),space:this.view.state.facet(tooltipConfig).tooltipSpace(this.view),scaleX:to,scaleY:no,makeAbsolute:io}}writeMeasure(eo){var to;if(eo.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let uo of this.manager.tooltipViews)uo.dom.style.position="absolute"}let{editor:no,space:io,scaleX:so,scaleY:ao}=eo,lo=[];for(let uo=0;uo=Math.min(no.bottom,io.bottom)||yo.rightMath.min(no.right,io.right)+.1){mo.style.top=Outside;continue}let _o=ho.arrow?go.dom.querySelector(".cm-tooltip-arrow"):null,ko=_o?7:0,Co=So.right-So.left,$o=(to=knownHeight.get(go))!==null&&to!==void 0?to:So.bottom-So.top,Ro=go.offset||noOffset,Oo=this.view.textDirection==Direction.LTR,No=So.width>io.right-io.left?Oo?io.left:io.right-So.width:Oo?Math.min(yo.left-(_o?14:0)+Ro.x,io.right-Co):Math.max(io.left,yo.left-Co+(_o?14:0)-Ro.x),Mo=this.above[uo];!ho.strictSide&&(Mo?yo.top-(So.bottom-So.top)-Ro.yio.bottom)&&Mo==io.bottom-yo.bottom>yo.top-io.top&&(Mo=this.above[uo]=!Mo);let Bo=(Mo?yo.top-io.top:io.bottom-yo.bottom)-ko;if(Bo<$o&&go.resize!==!1){if(BoNo&&Go.topFo&&(Fo=Mo?Go.top-$o-2-ko:Go.bottom+ko+2);if(this.position=="absolute"?(mo.style.top=(Fo-eo.parent.top)/ao+"px",mo.style.left=(No-eo.parent.left)/so+"px"):(mo.style.top=Fo/ao+"px",mo.style.left=No/so+"px"),_o){let Go=yo.left+(Oo?Ro.x:-Ro.x)-(No+14-7);_o.style.left=Go/so+"px"}go.overlap!==!0&&lo.push({left:No,top:Fo,right:Lo,bottom:Fo+$o}),mo.classList.toggle("cm-tooltip-above",Mo),mo.classList.toggle("cm-tooltip-below",!Mo),go.positioned&&go.positioned(eo.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let eo of this.manager.tooltipViews)eo.dom.style.top=Outside}},{eventObservers:{scroll(){this.maybeMeasure()}}}),baseTheme$5=EditorView.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),noOffset={x:0,y:0},showTooltip=Facet.define({enables:[tooltipPlugin,baseTheme$5]}),showHoverTooltip=Facet.define({combine:eo=>eo.reduce((to,no)=>to.concat(no),[])});class HoverTooltipHost{static create(to){return new HoverTooltipHost(to)}constructor(to){this.view=to,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new TooltipViewManager(to,showHoverTooltip,(no,io)=>this.createHostedView(no,io),no=>no.dom.remove())}createHostedView(to,no){let io=to.create(this.view);return io.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(io.dom,no?no.dom.nextSibling:this.dom.firstChild),this.mounted&&io.mount&&io.mount(this.view),io}mount(to){for(let no of this.manager.tooltipViews)no.mount&&no.mount(to);this.mounted=!0}positioned(to){for(let no of this.manager.tooltipViews)no.positioned&&no.positioned(to)}update(to){this.manager.update(to)}destroy(){var to;for(let no of this.manager.tooltipViews)(to=no.destroy)===null||to===void 0||to.call(no)}passProp(to){let no;for(let io of this.manager.tooltipViews){let so=io[to];if(so!==void 0){if(no===void 0)no=so;else if(no!==so)return}}return no}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const showHoverTooltipHost=showTooltip.compute([showHoverTooltip],eo=>{let to=eo.facet(showHoverTooltip);return to.length===0?null:{pos:Math.min(...to.map(no=>no.pos)),end:Math.max(...to.map(no=>{var io;return(io=no.end)!==null&&io!==void 0?io:no.pos})),create:HoverTooltipHost.create,above:to[0].above,arrow:to.some(no=>no.arrow)}});class HoverPlugin{constructor(to,no,io,so,ao){this.view=to,this.source=no,this.field=io,this.setHover=so,this.hoverTime=ao,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:to.dom,time:0},this.checkHover=this.checkHover.bind(this),to.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),to.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let to=Date.now()-this.lastMove.time;touo.bottom||no.xuo.right+to.defaultCharacterWidth)return;let ho=to.bidiSpans(to.state.doc.lineAt(so)).find(mo=>mo.from<=so&&mo.to>=so),go=ho&&ho.dir==Direction.RTL?-1:1;ao=no.x{this.pending==uo&&(this.pending=null,ho&&!(Array.isArray(ho)&&!ho.length)&&to.dispatch({effects:this.setHover.of(Array.isArray(ho)?ho:[ho])}))},ho=>logException(to.state,ho,"hover tooltip"))}else lo&&!(Array.isArray(lo)&&!lo.length)&&to.dispatch({effects:this.setHover.of(Array.isArray(lo)?lo:[lo])})}get tooltip(){let to=this.view.plugin(tooltipPlugin),no=to?to.manager.tooltips.findIndex(io=>io.create==HoverTooltipHost.create):-1;return no>-1?to.manager.tooltipViews[no]:null}mousemove(to){var no,io;this.lastMove={x:to.clientX,y:to.clientY,target:to.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:so,tooltip:ao}=this;if(so.length&&ao&&!isInTooltip(ao.dom,to)||this.pending){let{pos:lo}=so[0]||this.pending,uo=(io=(no=so[0])===null||no===void 0?void 0:no.end)!==null&&io!==void 0?io:lo;(lo==uo?this.view.posAtCoords(this.lastMove)!=lo:!isOverRange(this.view,lo,uo,to.clientX,to.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(to){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:no}=this;if(no.length){let{tooltip:io}=this;io&&io.dom.contains(to.relatedTarget)?this.watchTooltipLeave(io.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(to){let no=io=>{to.removeEventListener("mouseleave",no),this.active.length&&!this.view.dom.contains(io.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};to.addEventListener("mouseleave",no)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const tooltipMargin=4;function isInTooltip(eo,to){let no=eo.getBoundingClientRect();return to.clientX>=no.left-tooltipMargin&&to.clientX<=no.right+tooltipMargin&&to.clientY>=no.top-tooltipMargin&&to.clientY<=no.bottom+tooltipMargin}function isOverRange(eo,to,no,io,so,ao){let lo=eo.scrollDOM.getBoundingClientRect(),uo=eo.documentTop+eo.documentPadding.top+eo.contentHeight;if(lo.left>io||lo.rightso||Math.min(lo.bottom,uo)=to&&ho<=no}function hoverTooltip(eo,to={}){let no=StateEffect.define(),io=StateField.define({create(){return[]},update(so,ao){if(so.length&&(to.hideOnChange&&(ao.docChanged||ao.selection)?so=[]:to.hideOn&&(so=so.filter(lo=>!to.hideOn(ao,lo))),ao.docChanged)){let lo=[];for(let uo of so){let ho=ao.changes.mapPos(uo.pos,-1,MapMode.TrackDel);if(ho!=null){let go=Object.assign(Object.create(null),uo);go.pos=ho,go.end!=null&&(go.end=ao.changes.mapPos(go.end)),lo.push(go)}}so=lo}for(let lo of ao.effects)lo.is(no)&&(so=lo.value),lo.is(closeHoverTooltipEffect)&&(so=[]);return so},provide:so=>showHoverTooltip.from(so)});return[io,ViewPlugin.define(so=>new HoverPlugin(so,eo,io,no,to.hoverTime||300)),showHoverTooltipHost]}function getTooltip$2(eo,to){let no=eo.plugin(tooltipPlugin);if(!no)return null;let io=no.manager.tooltips.indexOf(to);return io<0?null:no.manager.tooltipViews[io]}const closeHoverTooltipEffect=StateEffect.define(),panelConfig=Facet.define({combine(eo){let to,no;for(let io of eo)to=to||io.topContainer,no=no||io.bottomContainer;return{topContainer:to,bottomContainer:no}}});function getPanel(eo,to){let no=eo.plugin(panelPlugin),io=no?no.specs.indexOf(to):-1;return io>-1?no.panels[io]:null}const panelPlugin=ViewPlugin.fromClass(class{constructor(eo){this.input=eo.state.facet(showPanel),this.specs=this.input.filter(no=>no),this.panels=this.specs.map(no=>no(eo));let to=eo.state.facet(panelConfig);this.top=new PanelGroup(eo,!0,to.topContainer),this.bottom=new PanelGroup(eo,!1,to.bottomContainer),this.top.sync(this.panels.filter(no=>no.top)),this.bottom.sync(this.panels.filter(no=>!no.top));for(let no of this.panels)no.dom.classList.add("cm-panel"),no.mount&&no.mount()}update(eo){let to=eo.state.facet(panelConfig);this.top.container!=to.topContainer&&(this.top.sync([]),this.top=new PanelGroup(eo.view,!0,to.topContainer)),this.bottom.container!=to.bottomContainer&&(this.bottom.sync([]),this.bottom=new PanelGroup(eo.view,!1,to.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let no=eo.state.facet(showPanel);if(no!=this.input){let io=no.filter(ho=>ho),so=[],ao=[],lo=[],uo=[];for(let ho of io){let go=this.specs.indexOf(ho),mo;go<0?(mo=ho(eo.view),uo.push(mo)):(mo=this.panels[go],mo.update&&mo.update(eo)),so.push(mo),(mo.top?ao:lo).push(mo)}this.specs=io,this.panels=so,this.top.sync(ao),this.bottom.sync(lo);for(let ho of uo)ho.dom.classList.add("cm-panel"),ho.mount&&ho.mount()}else for(let io of this.panels)io.update&&io.update(eo)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:eo=>EditorView.scrollMargins.of(to=>{let no=to.plugin(eo);return no&&{top:no.top.scrollMargin(),bottom:no.bottom.scrollMargin()}})});class PanelGroup{constructor(to,no,io){this.view=to,this.top=no,this.container=io,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(to){for(let no of this.panels)no.destroy&&to.indexOf(no)<0&&no.destroy();this.panels=to,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let no=this.container||this.view.dom;no.insertBefore(this.dom,this.top?no.firstChild:null)}let to=this.dom.firstChild;for(let no of this.panels)if(no.dom.parentNode==this.dom){for(;to!=no.dom;)to=rm(to);to=to.nextSibling}else this.dom.insertBefore(no.dom,to);for(;to;)to=rm(to)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let to of this.classes.split(" "))to&&this.container.classList.remove(to);for(let to of(this.classes=this.view.themeClasses).split(" "))to&&this.container.classList.add(to)}}}function rm(eo){let to=eo.nextSibling;return eo.remove(),to}const showPanel=Facet.define({enables:panelPlugin});class GutterMarker extends RangeValue{compare(to){return this==to||this.constructor==to.constructor&&this.eq(to)}eq(to){return!1}destroy(to){}}GutterMarker.prototype.elementClass="";GutterMarker.prototype.toDOM=void 0;GutterMarker.prototype.mapMode=MapMode.TrackBefore;GutterMarker.prototype.startSide=GutterMarker.prototype.endSide=-1;GutterMarker.prototype.point=!0;const gutterLineClass=Facet.define(),defaults$k={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>RangeSet.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},activeGutters=Facet.define();function gutter(eo){return[gutters(),activeGutters.of(Object.assign(Object.assign({},defaults$k),eo))]}const unfixGutters=Facet.define({combine:eo=>eo.some(to=>to)});function gutters(eo){let to=[gutterView];return eo&&eo.fixed===!1&&to.push(unfixGutters.of(!0)),to}const gutterView=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.prevViewport=eo.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=eo.state.facet(activeGutters).map(to=>new SingleGutterView(eo,to));for(let to of this.gutters)this.dom.appendChild(to.dom);this.fixed=!eo.state.facet(unfixGutters),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),eo.scrollDOM.insertBefore(this.dom,eo.contentDOM)}update(eo){if(this.updateGutters(eo)){let to=this.prevViewport,no=eo.view.viewport,io=Math.min(to.to,no.to)-Math.max(to.from,no.from);this.syncGutters(io<(no.to-no.from)*.8)}eo.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(unfixGutters)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=eo.view.viewport}syncGutters(eo){let to=this.dom.nextSibling;eo&&this.dom.remove();let no=RangeSet.iter(this.view.state.facet(gutterLineClass),this.view.viewport.from),io=[],so=this.gutters.map(ao=>new UpdateContext(ao,this.view.viewport,-this.view.documentPadding.top));for(let ao of this.view.viewportLineBlocks)if(io.length&&(io=[]),Array.isArray(ao.type)){let lo=!0;for(let uo of ao.type)if(uo.type==BlockType.Text&&lo){advanceCursor(no,io,uo.from);for(let ho of so)ho.line(this.view,uo,io);lo=!1}else if(uo.widget)for(let ho of so)ho.widget(this.view,uo)}else if(ao.type==BlockType.Text){advanceCursor(no,io,ao.from);for(let lo of so)lo.line(this.view,ao,io)}else if(ao.widget)for(let lo of so)lo.widget(this.view,ao);for(let ao of so)ao.finish();eo&&this.view.scrollDOM.insertBefore(this.dom,to)}updateGutters(eo){let to=eo.startState.facet(activeGutters),no=eo.state.facet(activeGutters),io=eo.docChanged||eo.heightChanged||eo.viewportChanged||!RangeSet.eq(eo.startState.facet(gutterLineClass),eo.state.facet(gutterLineClass),eo.view.viewport.from,eo.view.viewport.to);if(to==no)for(let so of this.gutters)so.update(eo)&&(io=!0);else{io=!0;let so=[];for(let ao of no){let lo=to.indexOf(ao);lo<0?so.push(new SingleGutterView(this.view,ao)):(this.gutters[lo].update(eo),so.push(this.gutters[lo]))}for(let ao of this.gutters)ao.dom.remove(),so.indexOf(ao)<0&&ao.destroy();for(let ao of so)this.dom.appendChild(ao.dom);this.gutters=so}return io}destroy(){for(let eo of this.gutters)eo.destroy();this.dom.remove()}},{provide:eo=>EditorView.scrollMargins.of(to=>{let no=to.plugin(eo);return!no||no.gutters.length==0||!no.fixed?null:to.textDirection==Direction.LTR?{left:no.dom.offsetWidth*to.scaleX}:{right:no.dom.offsetWidth*to.scaleX}})});function asArray(eo){return Array.isArray(eo)?eo:[eo]}function advanceCursor(eo,to,no){for(;eo.value&&eo.from<=no;)eo.from==no&&to.push(eo.value),eo.next()}class UpdateContext{constructor(to,no,io){this.gutter=to,this.height=io,this.i=0,this.cursor=RangeSet.iter(to.markers,no.from)}addElement(to,no,io){let{gutter:so}=this,ao=(no.top-this.height)/to.scaleY,lo=no.height/to.scaleY;if(this.i==so.elements.length){let uo=new GutterElement(to,lo,ao,io);so.elements.push(uo),so.dom.appendChild(uo.dom)}else so.elements[this.i].update(to,lo,ao,io);this.height=no.bottom,this.i++}line(to,no,io){let so=[];advanceCursor(this.cursor,so,no.from),io.length&&(so=so.concat(io));let ao=this.gutter.config.lineMarker(to,no,so);ao&&so.unshift(ao);let lo=this.gutter;so.length==0&&!lo.config.renderEmptyElements||this.addElement(to,no,so)}widget(to,no){let io=this.gutter.config.widgetMarker(to,no.widget,no);io&&this.addElement(to,no,[io])}finish(){let to=this.gutter;for(;to.elements.length>this.i;){let no=to.elements.pop();to.dom.removeChild(no.dom),no.destroy()}}}class SingleGutterView{constructor(to,no){this.view=to,this.config=no,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let io in no.domEventHandlers)this.dom.addEventListener(io,so=>{let ao=so.target,lo;if(ao!=this.dom&&this.dom.contains(ao)){for(;ao.parentNode!=this.dom;)ao=ao.parentNode;let ho=ao.getBoundingClientRect();lo=(ho.top+ho.bottom)/2}else lo=so.clientY;let uo=to.lineBlockAtHeight(lo-to.documentTop);no.domEventHandlers[io](to,uo,so)&&so.preventDefault()});this.markers=asArray(no.markers(to)),no.initialSpacer&&(this.spacer=new GutterElement(to,0,0,[no.initialSpacer(to)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(to){let no=this.markers;if(this.markers=asArray(this.config.markers(to.view)),this.spacer&&this.config.updateSpacer){let so=this.config.updateSpacer(this.spacer.markers[0],to);so!=this.spacer.markers[0]&&this.spacer.update(to.view,0,0,[so])}let io=to.view.viewport;return!RangeSet.eq(this.markers,no,io.from,io.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(to):!1)}destroy(){for(let to of this.elements)to.destroy()}}class GutterElement{constructor(to,no,io,so){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(to,no,io,so)}update(to,no,io,so){this.height!=no&&(this.height=no,this.dom.style.height=no+"px"),this.above!=io&&(this.dom.style.marginTop=(this.above=io)?io+"px":""),sameMarkers(this.markers,so)||this.setMarkers(to,so)}setMarkers(to,no){let io="cm-gutterElement",so=this.dom.firstChild;for(let ao=0,lo=0;;){let uo=lo,ho=aoao(uo,ho,go)||lo(uo,ho,go):lo}return io}})}});class NumberMarker extends GutterMarker{constructor(to){super(),this.number=to}eq(to){return this.number==to.number}toDOM(){return document.createTextNode(this.number)}}function formatNumber(eo,to){return eo.state.facet(lineNumberConfig).formatNumber(to,eo.state)}const lineNumberGutter=activeGutters.compute([lineNumberConfig],eo=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(to){return to.state.facet(lineNumberMarkers)},lineMarker(to,no,io){return io.some(so=>so.toDOM)?null:new NumberMarker(formatNumber(to,to.state.doc.lineAt(no.from).number))},widgetMarker:()=>null,lineMarkerChange:to=>to.startState.facet(lineNumberConfig)!=to.state.facet(lineNumberConfig),initialSpacer(to){return new NumberMarker(formatNumber(to,maxLineNumber(to.state.doc.lines)))},updateSpacer(to,no){let io=formatNumber(no.view,maxLineNumber(no.view.state.doc.lines));return io==to.number?to:new NumberMarker(io)},domEventHandlers:eo.facet(lineNumberConfig).domEventHandlers}));function lineNumbers(eo={}){return[lineNumberConfig.of(eo),gutters(),lineNumberGutter]}function maxLineNumber(eo){let to=9;for(;to{let to=[],no=-1;for(let io of eo.selection.ranges){let so=eo.doc.lineAt(io.head).from;so>no&&(no=so,to.push(activeLineGutterMarker.range(so)))}return RangeSet.of(to)});function highlightActiveLineGutter(){return activeLineGutterHighlighter}const DefaultBufferLength=1024;let nextPropID=0,Range$1=class{constructor(to,no){this.from=to,this.to=no}};class NodeProp{constructor(to={}){this.id=nextPropID++,this.perNode=!!to.perNode,this.deserialize=to.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(to){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof to!="function"&&(to=NodeType.match(to)),no=>{let io=to(no);return io===void 0?null:[this,io]}}}NodeProp.closedBy=new NodeProp({deserialize:eo=>eo.split(" ")});NodeProp.openedBy=new NodeProp({deserialize:eo=>eo.split(" ")});NodeProp.group=new NodeProp({deserialize:eo=>eo.split(" ")});NodeProp.isolate=new NodeProp({deserialize:eo=>{if(eo&&eo!="rtl"&&eo!="ltr"&&eo!="auto")throw new RangeError("Invalid value for isolate: "+eo);return eo||"auto"}});NodeProp.contextHash=new NodeProp({perNode:!0});NodeProp.lookAhead=new NodeProp({perNode:!0});NodeProp.mounted=new NodeProp({perNode:!0});class MountedTree{constructor(to,no,io){this.tree=to,this.overlay=no,this.parser=io}static get(to){return to&&to.props&&to.props[NodeProp.mounted.id]}}const noProps=Object.create(null);class NodeType{constructor(to,no,io,so=0){this.name=to,this.props=no,this.id=io,this.flags=so}static define(to){let no=to.props&&to.props.length?Object.create(null):noProps,io=(to.top?1:0)|(to.skipped?2:0)|(to.error?4:0)|(to.name==null?8:0),so=new NodeType(to.name||"",no,to.id,io);if(to.props){for(let ao of to.props)if(Array.isArray(ao)||(ao=ao(so)),ao){if(ao[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");no[ao[0].id]=ao[1]}}return so}prop(to){return this.props[to.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(to){if(typeof to=="string"){if(this.name==to)return!0;let no=this.prop(NodeProp.group);return no?no.indexOf(to)>-1:!1}return this.id==to}static match(to){let no=Object.create(null);for(let io in to)for(let so of io.split(" "))no[so]=to[io];return io=>{for(let so=io.prop(NodeProp.group),ao=-1;ao<(so?so.length:0);ao++){let lo=no[ao<0?io.name:so[ao]];if(lo)return lo}}}}NodeType.none=new NodeType("",Object.create(null),0,8);class NodeSet{constructor(to){this.types=to;for(let no=0;no0;for(let ho=this.cursor(lo|IterMode.IncludeAnonymous);;){let go=!1;if(ho.from<=ao&&ho.to>=so&&(!uo&&ho.type.isAnonymous||no(ho)!==!1)){if(ho.firstChild())continue;go=!0}for(;go&&io&&(uo||!ho.type.isAnonymous)&&io(ho),!ho.nextSibling();){if(!ho.parent())return;go=!0}}}prop(to){return to.perNode?this.props?this.props[to.id]:void 0:this.type.prop(to)}get propValues(){let to=[];if(this.props)for(let no in this.props)to.push([+no,this.props[no]]);return to}balance(to={}){return this.children.length<=8?this:balanceRange(NodeType.none,this.children,this.positions,0,this.children.length,0,this.length,(no,io,so)=>new Tree(this.type,no,io,so,this.propValues),to.makeTree||((no,io,so)=>new Tree(NodeType.none,no,io,so)))}static build(to){return buildTree$1(to)}}Tree.empty=new Tree(NodeType.none,[],[],0);class FlatBufferCursor{constructor(to,no){this.buffer=to,this.index=no}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new FlatBufferCursor(this.buffer,this.index)}}class TreeBuffer{constructor(to,no,io){this.buffer=to,this.length=no,this.set=io}get type(){return NodeType.none}toString(){let to=[];for(let no=0;no0));ho=lo[ho+3]);return uo}slice(to,no,io){let so=this.buffer,ao=new Uint16Array(no-to),lo=0;for(let uo=to,ho=0;uo=to&&noto;case 1:return no<=to&&io>to;case 2:return io>to;case 4:return!0}}function resolveNode(eo,to,no,io){for(var so;eo.from==eo.to||(no<1?eo.from>=to:eo.from>to)||(no>-1?eo.to<=to:eo.to0?uo.length:-1;to!=go;to+=no){let mo=uo[to],yo=ho[to]+lo.from;if(checkSide(so,io,yo,yo+mo.length)){if(mo instanceof TreeBuffer){if(ao&IterMode.ExcludeBuffers)continue;let So=mo.findChild(0,mo.buffer.length,no,io-yo,so);if(So>-1)return new BufferNode(new BufferContext(lo,mo,to,yo),null,So)}else if(ao&IterMode.IncludeAnonymous||!mo.type.isAnonymous||hasChild(mo)){let So;if(!(ao&IterMode.IgnoreMounts)&&(So=MountedTree.get(mo))&&!So.overlay)return new TreeNode(So.tree,yo,to,lo);let _o=new TreeNode(mo,yo,to,lo);return ao&IterMode.IncludeAnonymous||!_o.type.isAnonymous?_o:_o.nextChild(no<0?mo.children.length-1:0,no,io,so)}}}if(ao&IterMode.IncludeAnonymous||!lo.type.isAnonymous||(lo.index>=0?to=lo.index+no:to=no<0?-1:lo._parent._tree.children.length,lo=lo._parent,!lo))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(to){return this.nextChild(0,1,to,2)}childBefore(to){return this.nextChild(this._tree.children.length-1,-1,to,-2)}enter(to,no,io=0){let so;if(!(io&IterMode.IgnoreOverlays)&&(so=MountedTree.get(this._tree))&&so.overlay){let ao=to-this.from;for(let{from:lo,to:uo}of so.overlay)if((no>0?lo<=ao:lo=ao:uo>ao))return new TreeNode(so.tree,so.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,to,no,io)}nextSignificantParent(){let to=this;for(;to.type.isAnonymous&&to._parent;)to=to._parent;return to}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function getChildren(eo,to,no,io){let so=eo.cursor(),ao=[];if(!so.firstChild())return ao;if(no!=null){for(let lo=!1;!lo;)if(lo=so.type.is(no),!so.nextSibling())return ao}for(;;){if(io!=null&&so.type.is(io))return ao;if(so.type.is(to)&&ao.push(so.node),!so.nextSibling())return io==null?ao:[]}}function matchNodeContext(eo,to,no=to.length-1){for(let io=eo.parent;no>=0;io=io.parent){if(!io)return!1;if(!io.type.isAnonymous){if(to[no]&&to[no]!=io.name)return!1;no--}}return!0}class BufferContext{constructor(to,no,io,so){this.parent=to,this.buffer=no,this.index=io,this.start=so}}class BufferNode extends BaseNode{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(to,no,io){super(),this.context=to,this._parent=no,this.index=io,this.type=to.buffer.set.types[to.buffer.buffer[io]]}child(to,no,io){let{buffer:so}=this.context,ao=so.findChild(this.index+4,so.buffer[this.index+3],to,no-this.context.start,io);return ao<0?null:new BufferNode(this.context,this,ao)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(to){return this.child(1,to,2)}childBefore(to){return this.child(-1,to,-2)}enter(to,no,io=0){if(io&IterMode.ExcludeBuffers)return null;let{buffer:so}=this.context,ao=so.findChild(this.index+4,so.buffer[this.index+3],no>0?1:-1,to-this.context.start,no);return ao<0?null:new BufferNode(this.context,this,ao)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(to){return this._parent?null:this.context.parent.nextChild(this.context.index+to,to,0,4)}get nextSibling(){let{buffer:to}=this.context,no=to.buffer[this.index+3];return no<(this._parent?to.buffer[this._parent.index+3]:to.buffer.length)?new BufferNode(this.context,this._parent,no):this.externalSibling(1)}get prevSibling(){let{buffer:to}=this.context,no=this._parent?this._parent.index+4:0;return this.index==no?this.externalSibling(-1):new BufferNode(this.context,this._parent,to.findChild(no,this.index,-1,0,4))}get tree(){return null}toTree(){let to=[],no=[],{buffer:io}=this.context,so=this.index+4,ao=io.buffer[this.index+3];if(ao>so){let lo=io.buffer[this.index+1];to.push(io.slice(so,ao,lo)),no.push(0)}return new Tree(this.type,to,no,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function iterStack(eo){if(!eo.length)return null;let to=0,no=eo[0];for(let ao=1;aono.from||lo.to=to){let uo=new TreeNode(lo.tree,lo.overlay[0].from+ao.from,-1,ao);(so||(so=[io])).push(resolveNode(uo,to,no,!1))}}return so?iterStack(so):io}class TreeCursor{get name(){return this.type.name}constructor(to,no=0){if(this.mode=no,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,to instanceof TreeNode)this.yieldNode(to);else{this._tree=to.context.parent,this.buffer=to.context;for(let io=to._parent;io;io=io._parent)this.stack.unshift(io.index);this.bufferNode=to,this.yieldBuf(to.index)}}yieldNode(to){return to?(this._tree=to,this.type=to.type,this.from=to.from,this.to=to.to,!0):!1}yieldBuf(to,no){this.index=to;let{start:io,buffer:so}=this.buffer;return this.type=no||so.set.types[so.buffer[to]],this.from=io+so.buffer[to+1],this.to=io+so.buffer[to+2],!0}yield(to){return to?to instanceof TreeNode?(this.buffer=null,this.yieldNode(to)):(this.buffer=to.context,this.yieldBuf(to.index,to.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(to,no,io){if(!this.buffer)return this.yield(this._tree.nextChild(to<0?this._tree._tree.children.length-1:0,to,no,io,this.mode));let{buffer:so}=this.buffer,ao=so.findChild(this.index+4,so.buffer[this.index+3],to,no-this.buffer.start,io);return ao<0?!1:(this.stack.push(this.index),this.yieldBuf(ao))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(to){return this.enterChild(1,to,2)}childBefore(to){return this.enterChild(-1,to,-2)}enter(to,no,io=this.mode){return this.buffer?io&IterMode.ExcludeBuffers?!1:this.enterChild(1,to,no):this.yield(this._tree.enter(to,no,io))}parent(){if(!this.buffer)return this.yieldNode(this.mode&IterMode.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let to=this.mode&IterMode.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(to)}sibling(to){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+to,to,0,4,this.mode)):!1;let{buffer:no}=this.buffer,io=this.stack.length-1;if(to<0){let so=io<0?0:this.stack[io]+4;if(this.index!=so)return this.yieldBuf(no.findChild(so,this.index,-1,0,4))}else{let so=no.buffer[this.index+3];if(so<(io<0?no.buffer.length:no.buffer[this.stack[io]+3]))return this.yieldBuf(so)}return io<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+to,to,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(to){let no,io,{buffer:so}=this;if(so){if(to>0){if(this.index-1)for(let ao=no+to,lo=to<0?-1:io._tree.children.length;ao!=lo;ao+=to){let uo=io._tree.children[ao];if(this.mode&IterMode.IncludeAnonymous||uo instanceof TreeBuffer||!uo.type.isAnonymous||hasChild(uo))return!1}return!0}move(to,no){if(no&&this.enterChild(to,0,4))return!0;for(;;){if(this.sibling(to))return!0;if(this.atLastNode(to)||!this.parent())return!1}}next(to=!0){return this.move(1,to)}prev(to=!0){return this.move(-1,to)}moveTo(to,no=0){for(;(this.from==this.to||(no<1?this.from>=to:this.from>to)||(no>-1?this.to<=to:this.to=0;){for(let lo=to;lo;lo=lo._parent)if(lo.index==so){if(so==this.index)return lo;no=lo,io=ao+1;break e}so=this.stack[--ao]}for(let so=io;so=0;ao--){if(ao<0)return matchNodeContext(this.node,to,so);let lo=io[no.buffer[this.stack[ao]]];if(!lo.isAnonymous){if(to[so]&&to[so]!=lo.name)return!1;so--}}return!0}}function hasChild(eo){return eo.children.some(to=>to instanceof TreeBuffer||!to.type.isAnonymous||hasChild(to))}function buildTree$1(eo){var to;let{buffer:no,nodeSet:io,maxBufferLength:so=DefaultBufferLength,reused:ao=[],minRepeatType:lo=io.types.length}=eo,uo=Array.isArray(no)?new FlatBufferCursor(no,no.length):no,ho=io.types,go=0,mo=0;function yo(Bo,Fo,Lo,Go,Do,Uo){let{id:Ho,start:Yo,end:qo,size:Jo}=uo,ps=mo;for(;Jo<0;)if(uo.next(),Jo==-1){let vs=ao[Ho];Lo.push(vs),Go.push(Yo-Bo);return}else if(Jo==-3){go=Ho;return}else if(Jo==-4){mo=Ho;return}else throw new RangeError(`Unrecognized record size: ${Jo}`);let Qo=ho[Ho],hs,gs,ys=Yo-Bo;if(qo-Yo<=so&&(gs=$o(uo.pos-Fo,Do))){let vs=new Uint16Array(gs.size-gs.skip),ks=uo.pos-gs.size,Os=vs.length;for(;uo.pos>ks;)Os=Ro(gs.start,vs,Os);hs=new TreeBuffer(vs,qo-gs.start,io),ys=gs.start-Bo}else{let vs=uo.pos-Jo;uo.next();let ks=[],Os=[],Ts=Ho>=lo?Ho:-1,Xs=0,Ws=qo;for(;uo.pos>vs;)Ts>=0&&uo.id==Ts&&uo.size>=0?(uo.end<=Ws-so&&(ko(ks,Os,Yo,Xs,uo.end,Ws,Ts,ps),Xs=ks.length,Ws=uo.end),uo.next()):Uo>2500?So(Yo,vs,ks,Os):yo(Yo,vs,ks,Os,Ts,Uo+1);if(Ts>=0&&Xs>0&&Xs-1&&Xs>0){let Ps=_o(Qo);hs=balanceRange(Qo,ks,Os,0,ks.length,0,qo-Yo,Ps,Ps)}else hs=Co(Qo,ks,Os,qo-Yo,ps-qo)}Lo.push(hs),Go.push(ys)}function So(Bo,Fo,Lo,Go){let Do=[],Uo=0,Ho=-1;for(;uo.pos>Fo;){let{id:Yo,start:qo,end:Jo,size:ps}=uo;if(ps>4)uo.next();else{if(Ho>-1&&qo=0;Jo-=3)Yo[ps++]=Do[Jo],Yo[ps++]=Do[Jo+1]-qo,Yo[ps++]=Do[Jo+2]-qo,Yo[ps++]=ps;Lo.push(new TreeBuffer(Yo,Do[2]-qo,io)),Go.push(qo-Bo)}}function _o(Bo){return(Fo,Lo,Go)=>{let Do=0,Uo=Fo.length-1,Ho,Yo;if(Uo>=0&&(Ho=Fo[Uo])instanceof Tree){if(!Uo&&Ho.type==Bo&&Ho.length==Go)return Ho;(Yo=Ho.prop(NodeProp.lookAhead))&&(Do=Lo[Uo]+Ho.length+Yo)}return Co(Bo,Fo,Lo,Go,Do)}}function ko(Bo,Fo,Lo,Go,Do,Uo,Ho,Yo){let qo=[],Jo=[];for(;Bo.length>Go;)qo.push(Bo.pop()),Jo.push(Fo.pop()+Lo-Do);Bo.push(Co(io.types[Ho],qo,Jo,Uo-Do,Yo-Uo)),Fo.push(Do-Lo)}function Co(Bo,Fo,Lo,Go,Do=0,Uo){if(go){let Ho=[NodeProp.contextHash,go];Uo=Uo?[Ho].concat(Uo):[Ho]}if(Do>25){let Ho=[NodeProp.lookAhead,Do];Uo=Uo?[Ho].concat(Uo):[Ho]}return new Tree(Bo,Fo,Lo,Go,Uo)}function $o(Bo,Fo){let Lo=uo.fork(),Go=0,Do=0,Uo=0,Ho=Lo.end-so,Yo={size:0,start:0,skip:0};e:for(let qo=Lo.pos-Bo;Lo.pos>qo;){let Jo=Lo.size;if(Lo.id==Fo&&Jo>=0){Yo.size=Go,Yo.start=Do,Yo.skip=Uo,Uo+=4,Go+=4,Lo.next();continue}let ps=Lo.pos-Jo;if(Jo<0||ps=lo?4:0,hs=Lo.start;for(Lo.next();Lo.pos>ps;){if(Lo.size<0)if(Lo.size==-3)Qo+=4;else break e;else Lo.id>=lo&&(Qo+=4);Lo.next()}Do=hs,Go+=Jo,Uo+=Qo}return(Fo<0||Go==Bo)&&(Yo.size=Go,Yo.start=Do,Yo.skip=Uo),Yo.size>4?Yo:void 0}function Ro(Bo,Fo,Lo){let{id:Go,start:Do,end:Uo,size:Ho}=uo;if(uo.next(),Ho>=0&&Go4){let qo=uo.pos-(Ho-4);for(;uo.pos>qo;)Lo=Ro(Bo,Fo,Lo)}Fo[--Lo]=Yo,Fo[--Lo]=Uo-Bo,Fo[--Lo]=Do-Bo,Fo[--Lo]=Go}else Ho==-3?go=Go:Ho==-4&&(mo=Go);return Lo}let Oo=[],No=[];for(;uo.pos>0;)yo(eo.start||0,eo.bufferStart||0,Oo,No,-1,0);let Mo=(to=eo.length)!==null&&to!==void 0?to:Oo.length?No[0]+Oo[0].length:0;return new Tree(ho[eo.topID],Oo.reverse(),No.reverse(),Mo)}const nodeSizeCache=new WeakMap;function nodeSize(eo,to){if(!eo.isAnonymous||to instanceof TreeBuffer||to.type!=eo)return 1;let no=nodeSizeCache.get(to);if(no==null){no=1;for(let io of to.children){if(io.type!=eo||!(io instanceof Tree)){no=1;break}no+=nodeSize(eo,io)}nodeSizeCache.set(to,no)}return no}function balanceRange(eo,to,no,io,so,ao,lo,uo,ho){let go=0;for(let ko=io;ko=mo)break;Fo+=Lo}if(No==Mo+1){if(Fo>mo){let Lo=ko[Mo];_o(Lo.children,Lo.positions,0,Lo.children.length,Co[Mo]+Oo);continue}yo.push(ko[Mo])}else{let Lo=Co[No-1]+ko[No-1].length-Bo;yo.push(balanceRange(eo,ko,Co,Mo,No,Bo,Lo,null,ho))}So.push(Bo+Oo-ao)}}return _o(to,no,io,so,0),(uo||ho)(yo,So,lo)}class NodeWeakMap{constructor(){this.map=new WeakMap}setBuffer(to,no,io){let so=this.map.get(to);so||this.map.set(to,so=new Map),so.set(no,io)}getBuffer(to,no){let io=this.map.get(to);return io&&io.get(no)}set(to,no){to instanceof BufferNode?this.setBuffer(to.context.buffer,to.index,no):to instanceof TreeNode&&this.map.set(to.tree,no)}get(to){return to instanceof BufferNode?this.getBuffer(to.context.buffer,to.index):to instanceof TreeNode?this.map.get(to.tree):void 0}cursorSet(to,no){to.buffer?this.setBuffer(to.buffer.buffer,to.index,no):this.map.set(to.tree,no)}cursorGet(to){return to.buffer?this.getBuffer(to.buffer.buffer,to.index):this.map.get(to.tree)}}class TreeFragment{constructor(to,no,io,so,ao=!1,lo=!1){this.from=to,this.to=no,this.tree=io,this.offset=so,this.open=(ao?1:0)|(lo?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(to,no=[],io=!1){let so=[new TreeFragment(0,to.length,to,0,!1,io)];for(let ao of no)ao.to>to.length&&so.push(ao);return so}static applyChanges(to,no,io=128){if(!no.length)return to;let so=[],ao=1,lo=to.length?to[0]:null;for(let uo=0,ho=0,go=0;;uo++){let mo=uo=io)for(;lo&&lo.from=So.from||yo<=So.to||go){let _o=Math.max(So.from,ho)-go,ko=Math.min(So.to,yo)-go;So=_o>=ko?null:new TreeFragment(_o,ko,So.tree,So.offset+go,uo>0,!!mo)}if(So&&so.push(So),lo.to>yo)break;lo=aonew Range$1(so.from,so.to)):[new Range$1(0,0)]:[new Range$1(0,to.length)],this.createParse(to,no||[],io)}parse(to,no,io){let so=this.startParse(to,no,io);for(;;){let ao=so.advance();if(ao)return ao}}};class StringInput{constructor(to){this.string=to}get length(){return this.string.length}chunk(to){return this.string.slice(to)}get lineChunks(){return!1}read(to,no){return this.string.slice(to,no)}}new NodeProp({perNode:!0});let nextTagID=0;class Tag{constructor(to,no,io){this.set=to,this.base=no,this.modified=io,this.id=nextTagID++}static define(to){if(to!=null&&to.base)throw new Error("Can not derive from a modified tag");let no=new Tag([],null,[]);if(no.set.push(no),to)for(let io of to.set)no.set.push(io);return no}static defineModifier(){let to=new Modifier;return no=>no.modified.indexOf(to)>-1?no:Modifier.get(no.base||no,no.modified.concat(to).sort((io,so)=>io.id-so.id))}}let nextModifierID=0;class Modifier{constructor(){this.instances=[],this.id=nextModifierID++}static get(to,no){if(!no.length)return to;let io=no[0].instances.find(uo=>uo.base==to&&sameArray(no,uo.modified));if(io)return io;let so=[],ao=new Tag(so,to,no);for(let uo of no)uo.instances.push(ao);let lo=powerSet(no);for(let uo of to.set)if(!uo.modified.length)for(let ho of lo)so.push(Modifier.get(uo,ho));return ao}}function sameArray(eo,to){return eo.length==to.length&&eo.every((no,io)=>no==to[io])}function powerSet(eo){let to=[[]];for(let no=0;noio.length-no.length)}function styleTags(eo){let to=Object.create(null);for(let no in eo){let io=eo[no];Array.isArray(io)||(io=[io]);for(let so of no.split(" "))if(so){let ao=[],lo=2,uo=so;for(let yo=0;;){if(uo=="..."&&yo>0&&yo+3==so.length){lo=1;break}let So=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(uo);if(!So)throw new RangeError("Invalid path: "+so);if(ao.push(So[0]=="*"?"":So[0][0]=='"'?JSON.parse(So[0]):So[0]),yo+=So[0].length,yo==so.length)break;let _o=so[yo++];if(yo==so.length&&_o=="!"){lo=0;break}if(_o!="/")throw new RangeError("Invalid path: "+so);uo=so.slice(yo)}let ho=ao.length-1,go=ao[ho];if(!go)throw new RangeError("Invalid path: "+so);let mo=new Rule(io,lo,ho>0?ao.slice(0,ho):null);to[go]=mo.sort(to[go])}}return ruleNodeProp.add(to)}const ruleNodeProp=new NodeProp;class Rule{constructor(to,no,io,so){this.tags=to,this.mode=no,this.context=io,this.next=so}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(to){return!to||to.depth{let lo=so;for(let uo of ao)for(let ho of uo.set){let go=no[ho.id];if(go){lo=lo?lo+" "+go:go;break}}return lo},scope:io}}function highlightTags(eo,to){let no=null;for(let io of eo){let so=io.style(to);so&&(no=no?no+" "+so:so)}return no}function highlightTree(eo,to,no,io=0,so=eo.length){let ao=new HighlightBuilder(io,Array.isArray(to)?to:[to],no);ao.highlightRange(eo.cursor(),io,so,"",ao.highlighters),ao.flush(so)}class HighlightBuilder{constructor(to,no,io){this.at=to,this.highlighters=no,this.span=io,this.class=""}startSpan(to,no){no!=this.class&&(this.flush(to),to>this.at&&(this.at=to),this.class=no)}flush(to){to>this.at&&this.class&&this.span(this.at,to,this.class)}highlightRange(to,no,io,so,ao){let{type:lo,from:uo,to:ho}=to;if(uo>=io||ho<=no)return;lo.isTop&&(ao=this.highlighters.filter(_o=>!_o.scope||_o.scope(lo)));let go=so,mo=getStyleTags(to)||Rule.empty,yo=highlightTags(ao,mo.tags);if(yo&&(go&&(go+=" "),go+=yo,mo.mode==1&&(so+=(so?" ":"")+yo)),this.startSpan(Math.max(no,uo),go),mo.opaque)return;let So=to.tree&&to.tree.prop(NodeProp.mounted);if(So&&So.overlay){let _o=to.node.enter(So.overlay[0].from+uo,1),ko=this.highlighters.filter($o=>!$o.scope||$o.scope(So.tree.type)),Co=to.firstChild();for(let $o=0,Ro=uo;;$o++){let Oo=$o=No||!to.nextSibling())););if(!Oo||No>io)break;Ro=Oo.to+uo,Ro>no&&(this.highlightRange(_o.cursor(),Math.max(no,Oo.from+uo),Math.min(io,Ro),"",ko),this.startSpan(Math.min(io,Ro),go))}Co&&to.parent()}else if(to.firstChild()){So&&(so="");do if(!(to.to<=no)){if(to.from>=io)break;this.highlightRange(to,no,io,so,ao),this.startSpan(Math.min(io,to.to),go)}while(to.nextSibling());to.parent()}}}function getStyleTags(eo){let to=eo.type.prop(ruleNodeProp);for(;to&&to.context&&!eo.matchContext(to.context);)to=to.next;return to||null}const t=Tag.define,comment=t(),name=t(),typeName=t(name),propertyName=t(name),literal=t(),string$3=t(literal),number$2=t(literal),content$2=t(),heading=t(content$2),keyword=t(),operator=t(),punctuation=t(),bracket=t(punctuation),meta$1=t(),tags$1={comment,lineComment:t(comment),blockComment:t(comment),docComment:t(comment),name,variableName:t(name),typeName,tagName:t(typeName),propertyName,attributeName:t(propertyName),className:t(name),labelName:t(name),namespace:t(name),macroName:t(name),literal,string:string$3,docString:t(string$3),character:t(string$3),attributeValue:t(string$3),number:number$2,integer:t(number$2),float:t(number$2),bool:t(literal),regexp:t(literal),escape:t(literal),color:t(literal),url:t(literal),keyword,self:t(keyword),null:t(keyword),atom:t(keyword),unit:t(keyword),modifier:t(keyword),operatorKeyword:t(keyword),controlKeyword:t(keyword),definitionKeyword:t(keyword),moduleKeyword:t(keyword),operator,derefOperator:t(operator),arithmeticOperator:t(operator),logicOperator:t(operator),bitwiseOperator:t(operator),compareOperator:t(operator),updateOperator:t(operator),definitionOperator:t(operator),typeOperator:t(operator),controlOperator:t(operator),punctuation,separator:t(punctuation),bracket,angleBracket:t(bracket),squareBracket:t(bracket),paren:t(bracket),brace:t(bracket),content:content$2,heading,heading1:t(heading),heading2:t(heading),heading3:t(heading),heading4:t(heading),heading5:t(heading),heading6:t(heading),contentSeparator:t(content$2),list:t(content$2),quote:t(content$2),emphasis:t(content$2),strong:t(content$2),link:t(content$2),monospace:t(content$2),strikethrough:t(content$2),inserted:t(),deleted:t(),changed:t(),invalid:t(),meta:meta$1,documentMeta:t(meta$1),annotation:t(meta$1),processingInstruction:t(meta$1),definition:Tag.defineModifier(),constant:Tag.defineModifier(),function:Tag.defineModifier(),standard:Tag.defineModifier(),local:Tag.defineModifier(),special:Tag.defineModifier()};tagHighlighter([{tag:tags$1.link,class:"tok-link"},{tag:tags$1.heading,class:"tok-heading"},{tag:tags$1.emphasis,class:"tok-emphasis"},{tag:tags$1.strong,class:"tok-strong"},{tag:tags$1.keyword,class:"tok-keyword"},{tag:tags$1.atom,class:"tok-atom"},{tag:tags$1.bool,class:"tok-bool"},{tag:tags$1.url,class:"tok-url"},{tag:tags$1.labelName,class:"tok-labelName"},{tag:tags$1.inserted,class:"tok-inserted"},{tag:tags$1.deleted,class:"tok-deleted"},{tag:tags$1.literal,class:"tok-literal"},{tag:tags$1.string,class:"tok-string"},{tag:tags$1.number,class:"tok-number"},{tag:[tags$1.regexp,tags$1.escape,tags$1.special(tags$1.string)],class:"tok-string2"},{tag:tags$1.variableName,class:"tok-variableName"},{tag:tags$1.local(tags$1.variableName),class:"tok-variableName tok-local"},{tag:tags$1.definition(tags$1.variableName),class:"tok-variableName tok-definition"},{tag:tags$1.special(tags$1.variableName),class:"tok-variableName2"},{tag:tags$1.definition(tags$1.propertyName),class:"tok-propertyName tok-definition"},{tag:tags$1.typeName,class:"tok-typeName"},{tag:tags$1.namespace,class:"tok-namespace"},{tag:tags$1.className,class:"tok-className"},{tag:tags$1.macroName,class:"tok-macroName"},{tag:tags$1.propertyName,class:"tok-propertyName"},{tag:tags$1.operator,class:"tok-operator"},{tag:tags$1.comment,class:"tok-comment"},{tag:tags$1.meta,class:"tok-meta"},{tag:tags$1.invalid,class:"tok-invalid"},{tag:tags$1.punctuation,class:"tok-punctuation"}]);var _a$1;const languageDataProp=new NodeProp;function defineLanguageFacet(eo){return Facet.define({combine:eo?to=>to.concat(eo):void 0})}const sublanguageProp=new NodeProp;class Language{constructor(to,no,io=[],so=""){this.data=to,this.name=so,EditorState.prototype.hasOwnProperty("tree")||Object.defineProperty(EditorState.prototype,"tree",{get(){return syntaxTree(this)}}),this.parser=no,this.extension=[language.of(this),EditorState.languageData.of((ao,lo,uo)=>{let ho=topNodeAt(ao,lo,uo),go=ho.type.prop(languageDataProp);if(!go)return[];let mo=ao.facet(go),yo=ho.type.prop(sublanguageProp);if(yo){let So=ho.resolve(lo-ho.from,uo);for(let _o of yo)if(_o.test(So,ao)){let ko=ao.facet(_o.facet);return _o.type=="replace"?ko:ko.concat(mo)}}return mo})].concat(io)}isActiveAt(to,no,io=-1){return topNodeAt(to,no,io).type.prop(languageDataProp)==this.data}findRegions(to){let no=to.facet(language);if((no==null?void 0:no.data)==this.data)return[{from:0,to:to.doc.length}];if(!no||!no.allowsNesting)return[];let io=[],so=(ao,lo)=>{if(ao.prop(languageDataProp)==this.data){io.push({from:lo,to:lo+ao.length});return}let uo=ao.prop(NodeProp.mounted);if(uo){if(uo.tree.prop(languageDataProp)==this.data){if(uo.overlay)for(let ho of uo.overlay)io.push({from:ho.from+lo,to:ho.to+lo});else io.push({from:lo,to:lo+ao.length});return}else if(uo.overlay){let ho=io.length;if(so(uo.tree,uo.overlay[0].from+lo),io.length>ho)return}}for(let ho=0;hoio.isTop?no:void 0)]}),to.name)}configure(to,no){return new LRLanguage(this.data,this.parser.configure(to),no||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function syntaxTree(eo){let to=eo.field(Language.state,!1);return to?to.tree:Tree.empty}class DocInput{constructor(to){this.doc=to,this.cursorPos=0,this.string="",this.cursor=to.iter()}get length(){return this.doc.length}syncTo(to){return this.string=this.cursor.next(to-this.cursorPos).value,this.cursorPos=to+this.string.length,this.cursorPos-this.string.length}chunk(to){return this.syncTo(to),this.string}get lineChunks(){return!0}read(to,no){let io=this.cursorPos-this.string.length;return to=this.cursorPos?this.doc.sliceString(to,no):this.string.slice(to-io,no-io)}}let currentContext=null;class ParseContext{constructor(to,no,io=[],so,ao,lo,uo,ho){this.parser=to,this.state=no,this.fragments=io,this.tree=so,this.treeLen=ao,this.viewport=lo,this.skipped=uo,this.scheduleOn=ho,this.parse=null,this.tempSkipped=[]}static create(to,no,io){return new ParseContext(to,no,[],Tree.empty,0,io,[],null)}startParse(){return this.parser.startParse(new DocInput(this.state.doc),this.fragments)}work(to,no){return no!=null&&no>=this.state.doc.length&&(no=void 0),this.tree!=Tree.empty&&this.isDone(no??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var io;if(typeof to=="number"){let so=Date.now()+to;to=()=>Date.now()>so}for(this.parse||(this.parse=this.startParse()),no!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>no)&&no=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>to)&&this.parse.stopAt(to),this.withContext(()=>{for(;!(no=this.parse.advance()););}),this.treeLen=to,this.tree=no,this.fragments=this.withoutTempSkipped(TreeFragment.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(to){let no=currentContext;currentContext=this;try{return to()}finally{currentContext=no}}withoutTempSkipped(to){for(let no;no=this.tempSkipped.pop();)to=cutFragments(to,no.from,no.to);return to}changes(to,no){let{fragments:io,tree:so,treeLen:ao,viewport:lo,skipped:uo}=this;if(this.takeTree(),!to.empty){let ho=[];if(to.iterChangedRanges((go,mo,yo,So)=>ho.push({fromA:go,toA:mo,fromB:yo,toB:So})),io=TreeFragment.applyChanges(io,ho),so=Tree.empty,ao=0,lo={from:to.mapPos(lo.from,-1),to:to.mapPos(lo.to,1)},this.skipped.length){uo=[];for(let go of this.skipped){let mo=to.mapPos(go.from,1),yo=to.mapPos(go.to,-1);moto.from&&(this.fragments=cutFragments(this.fragments,so,ao),this.skipped.splice(io--,1))}return this.skipped.length>=no?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(to,no){this.skipped.push({from:to,to:no})}static getSkippingParser(to){return new class extends Parser$1{createParse(no,io,so){let ao=so[0].from,lo=so[so.length-1].to;return{parsedPos:ao,advance(){let ho=currentContext;if(ho){for(let go of so)ho.tempSkipped.push(go);to&&(ho.scheduleOn=ho.scheduleOn?Promise.all([ho.scheduleOn,to]):to)}return this.parsedPos=lo,new Tree(NodeType.none,[],[],lo-ao)},stoppedAt:null,stopAt(){}}}}}isDone(to){to=Math.min(to,this.state.doc.length);let no=this.fragments;return this.treeLen>=to&&no.length&&no[0].from==0&&no[0].to>=to}static get(){return currentContext}}function cutFragments(eo,to,no){return TreeFragment.applyChanges(eo,[{fromA:to,toA:no,fromB:to,toB:no}])}class LanguageState{constructor(to){this.context=to,this.tree=to.tree}apply(to){if(!to.docChanged&&this.tree==this.context.tree)return this;let no=this.context.changes(to.changes,to.state),io=this.context.treeLen==to.startState.doc.length?void 0:Math.max(to.changes.mapPos(this.context.treeLen),no.viewport.to);return no.work(20,io)||no.takeTree(),new LanguageState(no)}static init(to){let no=Math.min(3e3,to.doc.length),io=ParseContext.create(to.facet(language).parser,to,{from:0,to:no});return io.work(20,no)||io.takeTree(),new LanguageState(io)}}Language.state=StateField.define({create:LanguageState.init,update(eo,to){for(let no of to.effects)if(no.is(Language.setState))return no.value;return to.startState.facet(language)!=to.state.facet(language)?LanguageState.init(to.state):eo.apply(to)}});let requestIdle=eo=>{let to=setTimeout(()=>eo(),500);return()=>clearTimeout(to)};typeof requestIdleCallback<"u"&&(requestIdle=eo=>{let to=-1,no=setTimeout(()=>{to=requestIdleCallback(eo,{timeout:400})},100);return()=>to<0?clearTimeout(no):cancelIdleCallback(to)});const isInputPending=typeof navigator<"u"&&(!((_a$1=navigator.scheduling)===null||_a$1===void 0)&&_a$1.isInputPending)?()=>navigator.scheduling.isInputPending():null,parseWorker=ViewPlugin.fromClass(class{constructor(to){this.view=to,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(to){let no=this.view.state.field(Language.state).context;(no.updateViewport(to.view.viewport)||this.view.viewport.to>no.treeLen)&&this.scheduleWork(),(to.docChanged||to.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(no)}scheduleWork(){if(this.working)return;let{state:to}=this.view,no=to.field(Language.state);(no.tree!=no.context.tree||!no.context.isDone(to.doc.length))&&(this.working=requestIdle(this.work))}work(to){this.working=null;let no=Date.now();if(this.chunkEndso+1e3,ho=ao.context.work(()=>isInputPending&&isInputPending()||Date.now()>lo,so+(uo?0:1e5));this.chunkBudget-=Date.now()-no,(ho||this.chunkBudget<=0)&&(ao.context.takeTree(),this.view.dispatch({effects:Language.setState.of(new LanguageState(ao.context))})),this.chunkBudget>0&&!(ho&&!uo)&&this.scheduleWork(),this.checkAsyncSchedule(ao.context)}checkAsyncSchedule(to){to.scheduleOn&&(this.workScheduled++,to.scheduleOn.then(()=>this.scheduleWork()).catch(no=>logException(this.view.state,no)).then(()=>this.workScheduled--),to.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),language=Facet.define({combine(eo){return eo.length?eo[0]:null},enables:eo=>[Language.state,parseWorker,EditorView.contentAttributes.compute([eo],to=>{let no=to.facet(eo);return no&&no.name?{"data-language":no.name}:{}})]});class LanguageSupport{constructor(to,no=[]){this.language=to,this.support=no,this.extension=[to,no]}}const indentService=Facet.define(),indentUnit=Facet.define({combine:eo=>{if(!eo.length)return" ";let to=eo[0];if(!to||/\S/.test(to)||Array.from(to).some(no=>no!=to[0]))throw new Error("Invalid indent unit: "+JSON.stringify(eo[0]));return to}});function getIndentUnit(eo){let to=eo.facet(indentUnit);return to.charCodeAt(0)==9?eo.tabSize*to.length:to.length}function indentString(eo,to){let no="",io=eo.tabSize,so=eo.facet(indentUnit)[0];if(so==" "){for(;to>=io;)no+=" ",to-=io;so=" "}for(let ao=0;ao=to?syntaxIndentation(eo,no,to):null}class IndentContext{constructor(to,no={}){this.state=to,this.options=no,this.unit=getIndentUnit(to)}lineAt(to,no=1){let io=this.state.doc.lineAt(to),{simulateBreak:so,simulateDoubleBreak:ao}=this.options;return so!=null&&so>=io.from&&so<=io.to?ao&&so==to?{text:"",from:to}:(no<0?so-1&&(ao+=lo-this.countColumn(io,io.search(/\S|$/))),ao}countColumn(to,no=to.length){return countColumn(to,this.state.tabSize,no)}lineIndent(to,no=1){let{text:io,from:so}=this.lineAt(to,no),ao=this.options.overrideIndentation;if(ao){let lo=ao(so);if(lo>-1)return lo}return this.countColumn(io,io.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const indentNodeProp=new NodeProp;function syntaxIndentation(eo,to,no){let io=to.resolveStack(no),so=io.node.enterUnfinishedNodesBefore(no);if(so!=io.node){let ao=[];for(let lo=so;lo!=io.node;lo=lo.parent)ao.push(lo);for(let lo=ao.length-1;lo>=0;lo--)io={node:ao[lo],next:io}}return indentFor(io,eo,no)}function indentFor(eo,to,no){for(let io=eo;io;io=io.next){let so=indentStrategy(io.node);if(so)return so(TreeIndentContext.create(to,no,io))}return 0}function ignoreClosed(eo){return eo.pos==eo.options.simulateBreak&&eo.options.simulateDoubleBreak}function indentStrategy(eo){let to=eo.type.prop(indentNodeProp);if(to)return to;let no=eo.firstChild,io;if(no&&(io=no.type.prop(NodeProp.closedBy))){let so=eo.lastChild,ao=so&&io.indexOf(so.name)>-1;return lo=>delimitedStrategy(lo,!0,1,void 0,ao&&!ignoreClosed(lo)?so.from:void 0)}return eo.parent==null?topIndent$1:null}function topIndent$1(){return 0}class TreeIndentContext extends IndentContext{constructor(to,no,io){super(to.state,to.options),this.base=to,this.pos=no,this.context=io}get node(){return this.context.node}static create(to,no,io){return new TreeIndentContext(to,no,io)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(to){let no=this.state.doc.lineAt(to.from);for(;;){let io=to.resolve(no.from);for(;io.parent&&io.parent.from==io.from;)io=io.parent;if(isParent(io,to))break;no=this.state.doc.lineAt(io.from)}return this.lineIndent(no.from)}continue(){return indentFor(this.context.next,this.base,this.pos)}}function isParent(eo,to){for(let no=to;no;no=no.parent)if(eo==no)return!0;return!1}function bracketedAligned(eo){let to=eo.node,no=to.childAfter(to.from),io=to.lastChild;if(!no)return null;let so=eo.options.simulateBreak,ao=eo.state.doc.lineAt(no.from),lo=so==null||so<=ao.from?ao.to:Math.min(ao.to,so);for(let uo=no.to;;){let ho=to.childAfter(uo);if(!ho||ho==io)return null;if(!ho.type.isSkipped)return ho.fromdelimitedStrategy(io,to,no,eo)}function delimitedStrategy(eo,to,no,io,so){let ao=eo.textAfter,lo=ao.match(/^\s*/)[0].length,uo=io&&ao.slice(lo,lo+io.length)==io||so==eo.pos+lo,ho=to?bracketedAligned(eo):null;return ho?uo?eo.column(ho.from):eo.column(ho.to):eo.baseIndent+(uo?0:eo.unit*no)}const DontIndentBeyond=200;function indentOnInput(){return EditorState.transactionFilter.of(eo=>{if(!eo.docChanged||!eo.isUserEvent("input.type")&&!eo.isUserEvent("input.complete"))return eo;let to=eo.startState.languageDataAt("indentOnInput",eo.startState.selection.main.head);if(!to.length)return eo;let no=eo.newDoc,{head:io}=eo.newSelection.main,so=no.lineAt(io);if(io>so.from+DontIndentBeyond)return eo;let ao=no.sliceString(so.from,io);if(!to.some(go=>go.test(ao)))return eo;let{state:lo}=eo,uo=-1,ho=[];for(let{head:go}of lo.selection.ranges){let mo=lo.doc.lineAt(go);if(mo.from==uo)continue;uo=mo.from;let yo=getIndentation(lo,mo.from);if(yo==null)continue;let So=/^\s*/.exec(mo.text)[0],_o=indentString(lo,yo);So!=_o&&ho.push({from:mo.from,to:mo.from+So.length,insert:_o})}return ho.length?[eo,{changes:ho,sequential:!0}]:eo})}const foldService=Facet.define(),foldNodeProp=new NodeProp;function foldInside(eo){let to=eo.firstChild,no=eo.lastChild;return to&&to.tono)continue;if(ao&&uo.from=to&&go.to>no&&(ao=go)}}return ao}function isUnfinished(eo){let to=eo.lastChild;return to&&to.to==eo.to&&to.type.isError}function foldable(eo,to,no){for(let io of eo.facet(foldService)){let so=io(eo,to,no);if(so)return so}return syntaxFolding(eo,to,no)}function mapRange(eo,to){let no=to.mapPos(eo.from,1),io=to.mapPos(eo.to,-1);return no>=io?void 0:{from:no,to:io}}const foldEffect=StateEffect.define({map:mapRange}),unfoldEffect=StateEffect.define({map:mapRange});function selectedLines(eo){let to=[];for(let{head:no}of eo.state.selection.ranges)to.some(io=>io.from<=no&&io.to>=no)||to.push(eo.lineBlockAt(no));return to}const foldState=StateField.define({create(){return Decoration.none},update(eo,to){eo=eo.map(to.changes);for(let no of to.effects)if(no.is(foldEffect)&&!foldExists(eo,no.value.from,no.value.to)){let{preparePlaceholder:io}=to.state.facet(foldConfig),so=io?Decoration.replace({widget:new PreparedFoldWidget(io(to.state,no.value))}):foldWidget;eo=eo.update({add:[so.range(no.value.from,no.value.to)]})}else no.is(unfoldEffect)&&(eo=eo.update({filter:(io,so)=>no.value.from!=io||no.value.to!=so,filterFrom:no.value.from,filterTo:no.value.to}));if(to.selection){let no=!1,{head:io}=to.selection.main;eo.between(io,io,(so,ao)=>{soio&&(no=!0)}),no&&(eo=eo.update({filterFrom:io,filterTo:io,filter:(so,ao)=>ao<=io||so>=io}))}return eo},provide:eo=>EditorView.decorations.from(eo),toJSON(eo,to){let no=[];return eo.between(0,to.doc.length,(io,so)=>{no.push(io,so)}),no},fromJSON(eo){if(!Array.isArray(eo)||eo.length%2)throw new RangeError("Invalid JSON for fold state");let to=[];for(let no=0;no{(!so||so.from>ao)&&(so={from:ao,to:lo})}),so}function foldExists(eo,to,no){let io=!1;return eo.between(to,to,(so,ao)=>{so==to&&ao==no&&(io=!0)}),io}function maybeEnable(eo,to){return eo.field(foldState,!1)?to:to.concat(StateEffect.appendConfig.of(codeFolding()))}const foldCode=eo=>{for(let to of selectedLines(eo)){let no=foldable(eo.state,to.from,to.to);if(no)return eo.dispatch({effects:maybeEnable(eo.state,[foldEffect.of(no),announceFold(eo,no)])}),!0}return!1},unfoldCode=eo=>{if(!eo.state.field(foldState,!1))return!1;let to=[];for(let no of selectedLines(eo)){let io=findFold(eo.state,no.from,no.to);io&&to.push(unfoldEffect.of(io),announceFold(eo,io,!1))}return to.length&&eo.dispatch({effects:to}),to.length>0};function announceFold(eo,to,no=!0){let io=eo.state.doc.lineAt(to.from).number,so=eo.state.doc.lineAt(to.to).number;return EditorView.announce.of(`${eo.state.phrase(no?"Folded lines":"Unfolded lines")} ${io} ${eo.state.phrase("to")} ${so}.`)}const foldAll=eo=>{let{state:to}=eo,no=[];for(let io=0;io{let to=eo.state.field(foldState,!1);if(!to||!to.size)return!1;let no=[];return to.between(0,eo.state.doc.length,(io,so)=>{no.push(unfoldEffect.of({from:io,to:so}))}),eo.dispatch({effects:no}),!0},foldKeymap=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:foldCode},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:unfoldCode},{key:"Ctrl-Alt-[",run:foldAll},{key:"Ctrl-Alt-]",run:unfoldAll}],defaultConfig={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},foldConfig=Facet.define({combine(eo){return combineConfig(eo,defaultConfig)}});function codeFolding(eo){let to=[foldState,baseTheme$1$1];return eo&&to.push(foldConfig.of(eo)),to}function widgetToDOM(eo,to){let{state:no}=eo,io=no.facet(foldConfig),so=lo=>{let uo=eo.lineBlockAt(eo.posAtDOM(lo.target)),ho=findFold(eo.state,uo.from,uo.to);ho&&eo.dispatch({effects:unfoldEffect.of(ho)}),lo.preventDefault()};if(io.placeholderDOM)return io.placeholderDOM(eo,so,to);let ao=document.createElement("span");return ao.textContent=io.placeholderText,ao.setAttribute("aria-label",no.phrase("folded code")),ao.title=no.phrase("unfold"),ao.className="cm-foldPlaceholder",ao.onclick=so,ao}const foldWidget=Decoration.replace({widget:new class extends WidgetType{toDOM(eo){return widgetToDOM(eo,null)}}});class PreparedFoldWidget extends WidgetType{constructor(to){super(),this.value=to}eq(to){return this.value==to.value}toDOM(to){return widgetToDOM(to,this.value)}}const foldGutterDefaults={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class FoldMarker extends GutterMarker{constructor(to,no){super(),this.config=to,this.open=no}eq(to){return this.config==to.config&&this.open==to.open}toDOM(to){if(this.config.markerDOM)return this.config.markerDOM(this.open);let no=document.createElement("span");return no.textContent=this.open?this.config.openText:this.config.closedText,no.title=to.state.phrase(this.open?"Fold line":"Unfold line"),no}}function foldGutter(eo={}){let to=Object.assign(Object.assign({},foldGutterDefaults),eo),no=new FoldMarker(to,!0),io=new FoldMarker(to,!1),so=ViewPlugin.fromClass(class{constructor(lo){this.from=lo.viewport.from,this.markers=this.buildMarkers(lo)}update(lo){(lo.docChanged||lo.viewportChanged||lo.startState.facet(language)!=lo.state.facet(language)||lo.startState.field(foldState,!1)!=lo.state.field(foldState,!1)||syntaxTree(lo.startState)!=syntaxTree(lo.state)||to.foldingChanged(lo))&&(this.markers=this.buildMarkers(lo.view))}buildMarkers(lo){let uo=new RangeSetBuilder;for(let ho of lo.viewportLineBlocks){let go=findFold(lo.state,ho.from,ho.to)?io:foldable(lo.state,ho.from,ho.to)?no:null;go&&uo.add(ho.from,ho.from,go)}return uo.finish()}}),{domEventHandlers:ao}=to;return[so,gutter({class:"cm-foldGutter",markers(lo){var uo;return((uo=lo.plugin(so))===null||uo===void 0?void 0:uo.markers)||RangeSet.empty},initialSpacer(){return new FoldMarker(to,!1)},domEventHandlers:Object.assign(Object.assign({},ao),{click:(lo,uo,ho)=>{if(ao.click&&ao.click(lo,uo,ho))return!0;let go=findFold(lo.state,uo.from,uo.to);if(go)return lo.dispatch({effects:unfoldEffect.of(go)}),!0;let mo=foldable(lo.state,uo.from,uo.to);return mo?(lo.dispatch({effects:foldEffect.of(mo)}),!0):!1}})}),codeFolding()]}const baseTheme$1$1=EditorView.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class HighlightStyle{constructor(to,no){this.specs=to;let io;function so(uo){let ho=StyleModule.newName();return(io||(io=Object.create(null)))["."+ho]=uo,ho}const ao=typeof no.all=="string"?no.all:no.all?so(no.all):void 0,lo=no.scope;this.scope=lo instanceof Language?uo=>uo.prop(languageDataProp)==lo.data:lo?uo=>uo==lo:void 0,this.style=tagHighlighter(to.map(uo=>({tag:uo.tag,class:uo.class||so(Object.assign({},uo,{tag:null}))})),{all:ao}).style,this.module=io?new StyleModule(io):null,this.themeType=no.themeType}static define(to,no){return new HighlightStyle(to,no||{})}}const highlighterFacet=Facet.define(),fallbackHighlighter=Facet.define({combine(eo){return eo.length?[eo[0]]:null}});function getHighlighters(eo){let to=eo.facet(highlighterFacet);return to.length?to:eo.facet(fallbackHighlighter)}function syntaxHighlighting(eo,to){let no=[treeHighlighter],io;return eo instanceof HighlightStyle&&(eo.module&&no.push(EditorView.styleModule.of(eo.module)),io=eo.themeType),to!=null&&to.fallback?no.push(fallbackHighlighter.of(eo)):io?no.push(highlighterFacet.computeN([EditorView.darkTheme],so=>so.facet(EditorView.darkTheme)==(io=="dark")?[eo]:[])):no.push(highlighterFacet.of(eo)),no}class TreeHighlighter{constructor(to){this.markCache=Object.create(null),this.tree=syntaxTree(to.state),this.decorations=this.buildDeco(to,getHighlighters(to.state)),this.decoratedTo=to.viewport.to}update(to){let no=syntaxTree(to.state),io=getHighlighters(to.state),so=io!=getHighlighters(to.startState),{viewport:ao}=to.view,lo=to.changes.mapPos(this.decoratedTo,1);no.length=ao.to?(this.decorations=this.decorations.map(to.changes),this.decoratedTo=lo):(no!=this.tree||to.viewportChanged||so)&&(this.tree=no,this.decorations=this.buildDeco(to.view,io),this.decoratedTo=ao.to)}buildDeco(to,no){if(!no||!this.tree.length)return Decoration.none;let io=new RangeSetBuilder;for(let{from:so,to:ao}of to.visibleRanges)highlightTree(this.tree,no,(lo,uo,ho)=>{io.add(lo,uo,this.markCache[ho]||(this.markCache[ho]=Decoration.mark({class:ho})))},so,ao);return io.finish()}}const treeHighlighter=Prec.high(ViewPlugin.fromClass(TreeHighlighter,{decorations:eo=>eo.decorations})),defaultHighlightStyle=HighlightStyle.define([{tag:tags$1.meta,color:"#404740"},{tag:tags$1.link,textDecoration:"underline"},{tag:tags$1.heading,textDecoration:"underline",fontWeight:"bold"},{tag:tags$1.emphasis,fontStyle:"italic"},{tag:tags$1.strong,fontWeight:"bold"},{tag:tags$1.strikethrough,textDecoration:"line-through"},{tag:tags$1.keyword,color:"#708"},{tag:[tags$1.atom,tags$1.bool,tags$1.url,tags$1.contentSeparator,tags$1.labelName],color:"#219"},{tag:[tags$1.literal,tags$1.inserted],color:"#164"},{tag:[tags$1.string,tags$1.deleted],color:"#a11"},{tag:[tags$1.regexp,tags$1.escape,tags$1.special(tags$1.string)],color:"#e40"},{tag:tags$1.definition(tags$1.variableName),color:"#00f"},{tag:tags$1.local(tags$1.variableName),color:"#30a"},{tag:[tags$1.typeName,tags$1.namespace],color:"#085"},{tag:tags$1.className,color:"#167"},{tag:[tags$1.special(tags$1.variableName),tags$1.macroName],color:"#256"},{tag:tags$1.definition(tags$1.propertyName),color:"#00c"},{tag:tags$1.comment,color:"#940"},{tag:tags$1.invalid,color:"#f00"}]),baseTheme$4=EditorView.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),DefaultScanDist=1e4,DefaultBrackets="()[]{}",bracketMatchingConfig=Facet.define({combine(eo){return combineConfig(eo,{afterCursor:!0,brackets:DefaultBrackets,maxScanDistance:DefaultScanDist,renderMatch:defaultRenderMatch})}}),matchingMark=Decoration.mark({class:"cm-matchingBracket"}),nonmatchingMark=Decoration.mark({class:"cm-nonmatchingBracket"});function defaultRenderMatch(eo){let to=[],no=eo.matched?matchingMark:nonmatchingMark;return to.push(no.range(eo.start.from,eo.start.to)),eo.end&&to.push(no.range(eo.end.from,eo.end.to)),to}const bracketMatchingState=StateField.define({create(){return Decoration.none},update(eo,to){if(!to.docChanged&&!to.selection)return eo;let no=[],io=to.state.facet(bracketMatchingConfig);for(let so of to.state.selection.ranges){if(!so.empty)continue;let ao=matchBrackets(to.state,so.head,-1,io)||so.head>0&&matchBrackets(to.state,so.head-1,1,io)||io.afterCursor&&(matchBrackets(to.state,so.head,1,io)||so.headEditorView.decorations.from(eo)}),bracketMatchingUnique=[bracketMatchingState,baseTheme$4];function bracketMatching(eo={}){return[bracketMatchingConfig.of(eo),bracketMatchingUnique]}const bracketMatchingHandle=new NodeProp;function matchingNodes(eo,to,no){let io=eo.prop(to<0?NodeProp.openedBy:NodeProp.closedBy);if(io)return io;if(eo.name.length==1){let so=no.indexOf(eo.name);if(so>-1&&so%2==(to<0?1:0))return[no[so+to]]}return null}function findHandle(eo){let to=eo.type.prop(bracketMatchingHandle);return to?to(eo.node):eo}function matchBrackets(eo,to,no,io={}){let so=io.maxScanDistance||DefaultScanDist,ao=io.brackets||DefaultBrackets,lo=syntaxTree(eo),uo=lo.resolveInner(to,no);for(let ho=uo;ho;ho=ho.parent){let go=matchingNodes(ho.type,no,ao);if(go&&ho.from0?to>=mo.from&&tomo.from&&to<=mo.to))return matchMarkedBrackets(eo,to,no,ho,mo,go,ao)}}return matchPlainBrackets(eo,to,no,lo,uo.type,so,ao)}function matchMarkedBrackets(eo,to,no,io,so,ao,lo){let uo=io.parent,ho={from:so.from,to:so.to},go=0,mo=uo==null?void 0:uo.cursor();if(mo&&(no<0?mo.childBefore(io.from):mo.childAfter(io.to)))do if(no<0?mo.to<=io.from:mo.from>=io.to){if(go==0&&ao.indexOf(mo.type.name)>-1&&mo.from0)return null;let go={from:no<0?to-1:to,to:no>0?to+1:to},mo=eo.doc.iterRange(to,no>0?eo.doc.length:0),yo=0;for(let So=0;!mo.next().done&&So<=ao;){let _o=mo.value;no<0&&(So+=_o.length);let ko=to+So*no;for(let Co=no>0?0:_o.length-1,$o=no>0?_o.length:-1;Co!=$o;Co+=no){let Ro=lo.indexOf(_o[Co]);if(!(Ro<0||io.resolveInner(ko+Co,1).type!=so))if(Ro%2==0==no>0)yo++;else{if(yo==1)return{start:go,end:{from:ko+Co,to:ko+Co+1},matched:Ro>>1==ho>>1};yo--}}no>0&&(So+=_o.length)}return mo.done?{start:go,matched:!1}:null}const noTokens=Object.create(null),typeArray=[NodeType.none],warned=[],byTag=Object.create(null),defaultTable=Object.create(null);for(let[eo,to]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])defaultTable[eo]=createTokenType(noTokens,to);function warnForPart(eo,to){warned.indexOf(eo)>-1||(warned.push(eo),console.warn(to))}function createTokenType(eo,to){let no=[];for(let uo of to.split(" ")){let ho=[];for(let go of uo.split(".")){let mo=eo[go]||tags$1[go];mo?typeof mo=="function"?ho.length?ho=ho.map(mo):warnForPart(go,`Modifier ${go} used at start of tag`):ho.length?warnForPart(go,`Tag ${go} used as modifier`):ho=Array.isArray(mo)?mo:[mo]:warnForPart(go,`Unknown highlighting tag ${go}`)}for(let go of ho)no.push(go)}if(!no.length)return 0;let io=to.replace(/ /g,"_"),so=io+" "+no.map(uo=>uo.id),ao=byTag[so];if(ao)return ao.id;let lo=byTag[so]=NodeType.define({id:typeArray.length,name:io,props:[styleTags({[io]:no})]});return typeArray.push(lo),lo.id}Direction.RTL,Direction.LTR;class CompletionContext{constructor(to,no,io){this.state=to,this.pos=no,this.explicit=io,this.abortListeners=[]}tokenBefore(to){let no=syntaxTree(this.state).resolveInner(this.pos,-1);for(;no&&to.indexOf(no.name)<0;)no=no.parent;return no?{from:no.from,to:this.pos,text:this.state.sliceDoc(no.from,this.pos),type:no.type}:null}matchBefore(to){let no=this.state.doc.lineAt(this.pos),io=Math.max(no.from,this.pos-250),so=no.text.slice(io-no.from,this.pos-no.from),ao=so.search(ensureAnchor(to,!1));return ao<0?null:{from:io+ao,to:this.pos,text:so.slice(ao)}}get aborted(){return this.abortListeners==null}addEventListener(to,no){to=="abort"&&this.abortListeners&&this.abortListeners.push(no)}}function toSet(eo){let to=Object.keys(eo).join(""),no=/\w/.test(to);return no&&(to=to.replace(/\w/g,"")),`[${no?"\\w":""}${to.replace(/[^\w\s]/g,"\\$&")}]`}function prefixMatch(eo){let to=Object.create(null),no=Object.create(null);for(let{label:so}of eo){to[so[0]]=!0;for(let ao=1;aotypeof so=="string"?{label:so}:so),[no,io]=to.every(so=>/^\w+$/.test(so.label))?[/\w*$/,/\w+$/]:prefixMatch(to);return so=>{let ao=so.matchBefore(io);return ao||so.explicit?{from:ao?ao.from:so.pos,options:to,validFor:no}:null}}function ifNotIn(eo,to){return no=>{for(let io=syntaxTree(no.state).resolveInner(no.pos,-1);io;io=io.parent){if(eo.indexOf(io.name)>-1)return null;if(io.type.isTop)break}return to(no)}}let Option$1=class{constructor(to,no,io,so){this.completion=to,this.source=no,this.match=io,this.score=so}};function cur(eo){return eo.selection.main.from}function ensureAnchor(eo,to){var no;let{source:io}=eo,so=to&&io[0]!="^",ao=io[io.length-1]!="$";return!so&&!ao?eo:new RegExp(`${so?"^":""}(?:${io})${ao?"$":""}`,(no=eo.flags)!==null&&no!==void 0?no:eo.ignoreCase?"i":"")}const pickedCompletion=Annotation.define();function insertCompletionText(eo,to,no,io){let{main:so}=eo.selection,ao=no-so.from,lo=io-so.from;return Object.assign(Object.assign({},eo.changeByRange(uo=>uo!=so&&no!=io&&eo.sliceDoc(uo.from+ao,uo.from+lo)!=eo.sliceDoc(no,io)?{range:uo}:{changes:{from:uo.from+ao,to:io==so.from?uo.to:uo.from+lo,insert:to},range:EditorSelection.cursor(uo.from+ao+to.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const SourceCache=new WeakMap;function asSource(eo){if(!Array.isArray(eo))return eo;let to=SourceCache.get(eo);return to||SourceCache.set(eo,to=completeFromList(eo)),to}const startCompletionEffect=StateEffect.define(),closeCompletionEffect=StateEffect.define();class FuzzyMatcher{constructor(to){this.pattern=to,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let no=0;no=48&&Bo<=57||Bo>=97&&Bo<=122?2:Bo>=65&&Bo<=90?1:0:(Fo=fromCodePoint(Bo))!=Fo.toLowerCase()?1:Fo!=Fo.toUpperCase()?2:0;(!Oo||Lo==1&&$o||Mo==0&&Lo!=0)&&(no[yo]==Bo||io[yo]==Bo&&(So=!0)?lo[yo++]=Oo:lo.length&&(Ro=!1)),Mo=Lo,Oo+=codePointSize(Bo)}return yo==ho&&lo[0]==0&&Ro?this.result(-100+(So?-200:0),lo,to):_o==ho&&ko==0?this.ret(-200-to.length+(Co==to.length?0:-100),[0,Co]):uo>-1?this.ret(-700-to.length,[uo,uo+this.pattern.length]):_o==ho?this.ret(-900-to.length,[ko,Co]):yo==ho?this.result(-100+(So?-200:0)+-700+(Ro?0:-1100),lo,to):no.length==2?null:this.result((so[0]?-700:0)+-200+-1100,so,to)}result(to,no,io){let so=[],ao=0;for(let lo of no){let uo=lo+(this.astral?codePointSize(codePointAt(io,lo)):1);ao&&so[ao-1]==lo?so[ao-1]=uo:(so[ao++]=lo,so[ao++]=uo)}return this.ret(to-io.length,so)}}class StrictMatcher{constructor(to){this.pattern=to,this.matched=[],this.score=0,this.folded=to.toLowerCase()}match(to){if(to.length"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:defaultPositionInfo,filterStrict:!1,compareCompletions:(to,no)=>to.label.localeCompare(no.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(to,no)=>to&&no,closeOnBlur:(to,no)=>to&&no,icons:(to,no)=>to&&no,tooltipClass:(to,no)=>io=>joinClass(to(io),no(io)),optionClass:(to,no)=>io=>joinClass(to(io),no(io)),addToOptions:(to,no)=>to.concat(no),filterStrict:(to,no)=>to||no})}});function joinClass(eo,to){return eo?to?eo+" "+to:eo:to}function defaultPositionInfo(eo,to,no,io,so,ao){let lo=eo.textDirection==Direction.RTL,uo=lo,ho=!1,go="top",mo,yo,So=to.left-so.left,_o=so.right-to.right,ko=io.right-io.left,Co=io.bottom-io.top;if(uo&&So=Co||Oo>to.top?mo=no.bottom-to.top:(go="bottom",mo=to.bottom-no.top)}let $o=(to.bottom-to.top)/ao.offsetHeight,Ro=(to.right-to.left)/ao.offsetWidth;return{style:`${go}: ${mo/$o}px; max-width: ${yo/Ro}px`,class:"cm-completionInfo-"+(ho?lo?"left-narrow":"right-narrow":uo?"left":"right")}}function optionContent(eo){let to=eo.addToOptions.slice();return eo.icons&&to.push({render(no){let io=document.createElement("div");return io.classList.add("cm-completionIcon"),no.type&&io.classList.add(...no.type.split(/\s+/g).map(so=>"cm-completionIcon-"+so)),io.setAttribute("aria-hidden","true"),io},position:20}),to.push({render(no,io,so,ao){let lo=document.createElement("span");lo.className="cm-completionLabel";let uo=no.displayLabel||no.label,ho=0;for(let go=0;goho&&lo.appendChild(document.createTextNode(uo.slice(ho,mo)));let So=lo.appendChild(document.createElement("span"));So.appendChild(document.createTextNode(uo.slice(mo,yo))),So.className="cm-completionMatchedText",ho=yo}return hono.position-io.position).map(no=>no.render)}function rangeAroundSelected(eo,to,no){if(eo<=no)return{from:0,to:eo};if(to<0&&(to=0),to<=eo>>1){let so=Math.floor(to/no);return{from:so*no,to:(so+1)*no}}let io=Math.floor((eo-to)/no);return{from:eo-(io+1)*no,to:eo-io*no}}class CompletionTooltip{constructor(to,no,io){this.view=to,this.stateField=no,this.applyCompletion=io,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:ho=>this.placeInfo(ho),key:this},this.space=null,this.currentClass="";let so=to.state.field(no),{options:ao,selected:lo}=so.open,uo=to.state.facet(completionConfig);this.optionContent=optionContent(uo),this.optionClass=uo.optionClass,this.tooltipClass=uo.tooltipClass,this.range=rangeAroundSelected(ao.length,lo,uo.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(to.state),this.dom.addEventListener("mousedown",ho=>{let{options:go}=to.state.field(no).open;for(let mo=ho.target,yo;mo&&mo!=this.dom;mo=mo.parentNode)if(mo.nodeName=="LI"&&(yo=/-(\d+)$/.exec(mo.id))&&+yo[1]{let go=to.state.field(this.stateField,!1);go&&go.tooltip&&to.state.facet(completionConfig).closeOnBlur&&ho.relatedTarget!=to.contentDOM&&to.dispatch({effects:closeCompletionEffect.of(null)})}),this.showOptions(ao,so.id)}mount(){this.updateSel()}showOptions(to,no){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(to,no,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(to){var no;let io=to.state.field(this.stateField),so=to.startState.field(this.stateField);if(this.updateTooltipClass(to.state),io!=so){let{options:ao,selected:lo,disabled:uo}=io.open;(!so.open||so.open.options!=ao)&&(this.range=rangeAroundSelected(ao.length,lo,to.state.facet(completionConfig).maxRenderedOptions),this.showOptions(ao,io.id)),this.updateSel(),uo!=((no=so.open)===null||no===void 0?void 0:no.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!uo)}}updateTooltipClass(to){let no=this.tooltipClass(to);if(no!=this.currentClass){for(let io of this.currentClass.split(" "))io&&this.dom.classList.remove(io);for(let io of no.split(" "))io&&this.dom.classList.add(io);this.currentClass=no}}positioned(to){this.space=to,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let to=this.view.state.field(this.stateField),no=to.open;if((no.selected>-1&&no.selected=this.range.to)&&(this.range=rangeAroundSelected(no.options.length,no.selected,this.view.state.facet(completionConfig).maxRenderedOptions),this.showOptions(no.options,to.id)),this.updateSelectedOption(no.selected)){this.destroyInfo();let{completion:io}=no.options[no.selected],{info:so}=io;if(!so)return;let ao=typeof so=="string"?document.createTextNode(so):so(io);if(!ao)return;"then"in ao?ao.then(lo=>{lo&&this.view.state.field(this.stateField,!1)==to&&this.addInfoPane(lo,io)}).catch(lo=>logException(this.view.state,lo,"completion info")):this.addInfoPane(ao,io)}}addInfoPane(to,no){this.destroyInfo();let io=this.info=document.createElement("div");if(io.className="cm-tooltip cm-completionInfo",to.nodeType!=null)io.appendChild(to),this.infoDestroy=null;else{let{dom:so,destroy:ao}=to;io.appendChild(so),this.infoDestroy=ao||null}this.dom.appendChild(io),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(to){let no=null;for(let io=this.list.firstChild,so=this.range.from;io;io=io.nextSibling,so++)io.nodeName!="LI"||!io.id?so--:so==to?io.hasAttribute("aria-selected")||(io.setAttribute("aria-selected","true"),no=io):io.hasAttribute("aria-selected")&&io.removeAttribute("aria-selected");return no&&scrollIntoView(this.list,no),no}measureInfo(){let to=this.dom.querySelector("[aria-selected]");if(!to||!this.info)return null;let no=this.dom.getBoundingClientRect(),io=this.info.getBoundingClientRect(),so=to.getBoundingClientRect(),ao=this.space;if(!ao){let lo=this.dom.ownerDocument.defaultView||window;ao={left:0,top:0,right:lo.innerWidth,bottom:lo.innerHeight}}return so.top>Math.min(ao.bottom,no.bottom)-10||so.bottomio.from||io.from==0))if(ao=So,typeof go!="string"&&go.header)so.appendChild(go.header(go));else{let _o=so.appendChild(document.createElement("completion-section"));_o.textContent=So}}const mo=so.appendChild(document.createElement("li"));mo.id=no+"-"+lo,mo.setAttribute("role","option");let yo=this.optionClass(uo);yo&&(mo.className=yo);for(let So of this.optionContent){let _o=So(uo,this.view.state,this.view,ho);_o&&mo.appendChild(_o)}}return io.from&&so.classList.add("cm-completionListIncompleteTop"),io.tonew CompletionTooltip(no,eo,to)}function scrollIntoView(eo,to){let no=eo.getBoundingClientRect(),io=to.getBoundingClientRect(),so=no.height/eo.offsetHeight;io.topno.bottom&&(eo.scrollTop+=(io.bottom-no.bottom)/so)}function score(eo){return(eo.boost||0)*100+(eo.apply?10:0)+(eo.info?5:0)+(eo.type?1:0)}function sortOptions(eo,to){let no=[],io=null,so=go=>{no.push(go);let{section:mo}=go.completion;if(mo){io||(io=[]);let yo=typeof mo=="string"?mo:mo.name;io.some(So=>So.name==yo)||io.push(typeof mo=="string"?{name:yo}:mo)}},ao=to.facet(completionConfig);for(let go of eo)if(go.hasResult()){let mo=go.result.getMatch;if(go.result.filter===!1)for(let yo of go.result.options)so(new Option$1(yo,go.source,mo?mo(yo):[],1e9-no.length));else{let yo=to.sliceDoc(go.from,go.to),So,_o=ao.filterStrict?new StrictMatcher(yo):new FuzzyMatcher(yo);for(let ko of go.result.options)if(So=_o.match(ko.label)){let Co=ko.displayLabel?mo?mo(ko,So.matched):[]:So.matched;so(new Option$1(ko,go.source,Co,So.score+(ko.boost||0)))}}}if(io){let go=Object.create(null),mo=0,yo=(So,_o)=>{var ko,Co;return((ko=So.rank)!==null&&ko!==void 0?ko:1e9)-((Co=_o.rank)!==null&&Co!==void 0?Co:1e9)||(So.name<_o.name?-1:1)};for(let So of io.sort(yo))mo-=1e5,go[So.name]=mo;for(let So of no){let{section:_o}=So.completion;_o&&(So.score+=go[typeof _o=="string"?_o:_o.name])}}let lo=[],uo=null,ho=ao.compareCompletions;for(let go of no.sort((mo,yo)=>yo.score-mo.score||ho(mo.completion,yo.completion))){let mo=go.completion;!uo||uo.label!=mo.label||uo.detail!=mo.detail||uo.type!=null&&mo.type!=null&&uo.type!=mo.type||uo.apply!=mo.apply||uo.boost!=mo.boost?lo.push(go):score(go.completion)>score(uo)&&(lo[lo.length-1]=go),uo=go.completion}return lo}class CompletionDialog{constructor(to,no,io,so,ao,lo){this.options=to,this.attrs=no,this.tooltip=io,this.timestamp=so,this.selected=ao,this.disabled=lo}setSelected(to,no){return to==this.selected||to>=this.options.length?this:new CompletionDialog(this.options,makeAttrs(no,to),this.tooltip,this.timestamp,to,this.disabled)}static build(to,no,io,so,ao){let lo=sortOptions(to,no);if(!lo.length)return so&&to.some(ho=>ho.state==1)?new CompletionDialog(so.options,so.attrs,so.tooltip,so.timestamp,so.selected,!0):null;let uo=no.facet(completionConfig).selectOnOpen?0:-1;if(so&&so.selected!=uo&&so.selected!=-1){let ho=so.options[so.selected].completion;for(let go=0;gogo.hasResult()?Math.min(ho,go.from):ho,1e8),create:createTooltip,above:ao.aboveCursor},so?so.timestamp:Date.now(),uo,!1)}map(to){return new CompletionDialog(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:to.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class CompletionState{constructor(to,no,io){this.active=to,this.id=no,this.open=io}static start(){return new CompletionState(none$1,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(to){let{state:no}=to,io=no.facet(completionConfig),ao=(io.override||no.languageDataAt("autocomplete",cur(no)).map(asSource)).map(uo=>(this.active.find(go=>go.source==uo)||new ActiveSource(uo,this.active.some(go=>go.state!=0)?1:0)).update(to,io));ao.length==this.active.length&&ao.every((uo,ho)=>uo==this.active[ho])&&(ao=this.active);let lo=this.open;lo&&to.docChanged&&(lo=lo.map(to.changes)),to.selection||ao.some(uo=>uo.hasResult()&&to.changes.touchesRange(uo.from,uo.to))||!sameResults(ao,this.active)?lo=CompletionDialog.build(ao,no,this.id,lo,io):lo&&lo.disabled&&!ao.some(uo=>uo.state==1)&&(lo=null),!lo&&ao.every(uo=>uo.state!=1)&&ao.some(uo=>uo.hasResult())&&(ao=ao.map(uo=>uo.hasResult()?new ActiveSource(uo.source,0):uo));for(let uo of to.effects)uo.is(setSelectedEffect)&&(lo=lo&&lo.setSelected(uo.value,this.id));return ao==this.active&&lo==this.open?this:new CompletionState(ao,this.id,lo)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:baseAttrs}}function sameResults(eo,to){if(eo==to)return!0;for(let no=0,io=0;;){for(;no-1&&(no["aria-activedescendant"]=eo+"-"+to),no}const none$1=[];function getUserEvent(eo){return eo.isUserEvent("input.type")?"input":eo.isUserEvent("delete.backward")?"delete":null}class ActiveSource{constructor(to,no,io=-1){this.source=to,this.state=no,this.explicitPos=io}hasResult(){return!1}update(to,no){let io=getUserEvent(to),so=this;io?so=so.handleUserEvent(to,io,no):to.docChanged?so=so.handleChange(to):to.selection&&so.state!=0&&(so=new ActiveSource(so.source,0));for(let ao of to.effects)if(ao.is(startCompletionEffect))so=new ActiveSource(so.source,1,ao.value?cur(to.state):-1);else if(ao.is(closeCompletionEffect))so=new ActiveSource(so.source,0);else if(ao.is(setActiveEffect))for(let lo of ao.value)lo.source==so.source&&(so=lo);return so}handleUserEvent(to,no,io){return no=="delete"||!io.activateOnTyping?this.map(to.changes):new ActiveSource(this.source,1)}handleChange(to){return to.changes.touchesRange(cur(to.startState))?new ActiveSource(this.source,0):this.map(to.changes)}map(to){return to.empty||this.explicitPos<0?this:new ActiveSource(this.source,this.state,to.mapPos(this.explicitPos))}}class ActiveResult extends ActiveSource{constructor(to,no,io,so,ao){super(to,2,no),this.result=io,this.from=so,this.to=ao}hasResult(){return!0}handleUserEvent(to,no,io){var so;let ao=this.result;ao.map&&!to.changes.empty&&(ao=ao.map(ao,to.changes));let lo=to.changes.mapPos(this.from),uo=to.changes.mapPos(this.to,1),ho=cur(to.state);if((this.explicitPos<0?ho<=lo:houo||!ao||no=="delete"&&cur(to.startState)==this.from)return new ActiveSource(this.source,no=="input"&&io.activateOnTyping?1:0);let go=this.explicitPos<0?-1:to.changes.mapPos(this.explicitPos);return checkValid(ao.validFor,to.state,lo,uo)?new ActiveResult(this.source,go,ao,lo,uo):ao.update&&(ao=ao.update(ao,lo,uo,new CompletionContext(to.state,ho,go>=0)))?new ActiveResult(this.source,go,ao,ao.from,(so=ao.to)!==null&&so!==void 0?so:cur(to.state)):new ActiveSource(this.source,1,go)}handleChange(to){return to.changes.touchesRange(this.from,this.to)?new ActiveSource(this.source,0):this.map(to.changes)}map(to){return to.empty?this:(this.result.map?this.result.map(this.result,to):this.result)?new ActiveResult(this.source,this.explicitPos<0?-1:to.mapPos(this.explicitPos),this.result,to.mapPos(this.from),to.mapPos(this.to,1)):new ActiveSource(this.source,0)}}function checkValid(eo,to,no,io){if(!eo)return!1;let so=to.sliceDoc(no,io);return typeof eo=="function"?eo(so,no,io,to):ensureAnchor(eo,!0).test(so)}const setActiveEffect=StateEffect.define({map(eo,to){return eo.map(no=>no.map(to))}}),setSelectedEffect=StateEffect.define(),completionState=StateField.define({create(){return CompletionState.start()},update(eo,to){return eo.update(to)},provide:eo=>[showTooltip.from(eo,to=>to.tooltip),EditorView.contentAttributes.from(eo,to=>to.attrs)]});function applyCompletion(eo,to){const no=to.completion.apply||to.completion.label;let io=eo.state.field(completionState).active.find(so=>so.source==to.source);return io instanceof ActiveResult?(typeof no=="string"?eo.dispatch(Object.assign(Object.assign({},insertCompletionText(eo.state,no,io.from,io.to)),{annotations:pickedCompletion.of(to.completion)})):no(eo,to.completion,io.from,io.to),!0):!1}const createTooltip=completionTooltip(completionState,applyCompletion);function moveCompletionSelection(eo,to="option"){return no=>{let io=no.state.field(completionState,!1);if(!io||!io.open||io.open.disabled||Date.now()-io.open.timestamp-1?io.open.selected+so*(eo?1:-1):eo?0:lo-1;return uo<0?uo=to=="page"?0:lo-1:uo>=lo&&(uo=to=="page"?lo-1:0),no.dispatch({effects:setSelectedEffect.of(uo)}),!0}}const acceptCompletion=eo=>{let to=eo.state.field(completionState,!1);return eo.state.readOnly||!to||!to.open||to.open.selected<0||to.open.disabled||Date.now()-to.open.timestampeo.state.field(completionState,!1)?(eo.dispatch({effects:startCompletionEffect.of(!0)}),!0):!1,closeCompletion=eo=>{let to=eo.state.field(completionState,!1);return!to||!to.active.some(no=>no.state!=0)?!1:(eo.dispatch({effects:closeCompletionEffect.of(null)}),!0)};class RunningQuery{constructor(to,no){this.active=to,this.context=no,this.time=Date.now(),this.updates=[],this.done=void 0}}const MaxUpdateCount=50,MinAbortTime=1e3,completionPlugin=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let to of eo.state.field(completionState).active)to.state==1&&this.startQuery(to)}update(eo){let to=eo.state.field(completionState);if(!eo.selectionSet&&!eo.docChanged&&eo.startState.field(completionState)==to)return;let no=eo.transactions.some(so=>(so.selection||so.docChanged)&&!getUserEvent(so));for(let so=0;soMaxUpdateCount&&Date.now()-ao.time>MinAbortTime){for(let lo of ao.context.abortListeners)try{lo()}catch(uo){logException(this.view.state,uo)}ao.context.abortListeners=null,this.running.splice(so--,1)}else ao.updates.push(...eo.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),eo.transactions.some(so=>so.effects.some(ao=>ao.is(startCompletionEffect)))&&(this.pendingStart=!0);let io=this.pendingStart?50:eo.state.facet(completionConfig).activateOnTypingDelay;if(this.debounceUpdate=to.active.some(so=>so.state==1&&!this.running.some(ao=>ao.active.source==so.source))?setTimeout(()=>this.startUpdate(),io):-1,this.composing!=0)for(let so of eo.transactions)getUserEvent(so)=="input"?this.composing=2:this.composing==2&&so.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:eo}=this.view,to=eo.field(completionState);for(let no of to.active)no.state==1&&!this.running.some(io=>io.active.source==no.source)&&this.startQuery(no)}startQuery(eo){let{state:to}=this.view,no=cur(to),io=new CompletionContext(to,no,eo.explicitPos==no),so=new RunningQuery(eo,io);this.running.push(so),Promise.resolve(eo.source(io)).then(ao=>{so.context.aborted||(so.done=ao||null,this.scheduleAccept())},ao=>{this.view.dispatch({effects:closeCompletionEffect.of(null)}),logException(this.view.state,ao)})}scheduleAccept(){this.running.every(eo=>eo.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(completionConfig).updateSyncTime))}accept(){var eo;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let to=[],no=this.view.state.facet(completionConfig);for(let io=0;iolo.source==so.active.source);if(ao&&ao.state==1)if(so.done==null){let lo=new ActiveSource(so.active.source,0);for(let uo of so.updates)lo=lo.update(uo,no);lo.state!=1&&to.push(lo)}else this.startQuery(ao)}to.length&&this.view.dispatch({effects:setActiveEffect.of(to)})}},{eventHandlers:{blur(eo){let to=this.view.state.field(completionState,!1);if(to&&to.tooltip&&this.view.state.facet(completionConfig).closeOnBlur){let no=to.open&&getTooltip$2(this.view,to.open.tooltip);(!no||!no.dom.contains(eo.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:closeCompletionEffect.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:startCompletionEffect.of(!1)}),20),this.composing=0}}}),windows=typeof navigator=="object"&&/Win/.test(navigator.platform),commitCharacters=Prec.highest(EditorView.domEventHandlers({keydown(eo,to){let no=to.state.field(completionState,!1);if(!no||!no.open||no.open.disabled||no.open.selected<0||eo.key.length>1||eo.ctrlKey&&!(windows&&eo.altKey)||eo.metaKey)return!1;let io=no.open.options[no.open.selected],so=no.active.find(lo=>lo.source==io.source),ao=io.completion.commitCharacters||so.result.commitCharacters;return ao&&ao.indexOf(eo.key)>-1&&applyCompletion(to,io),!1}})),baseTheme$3=EditorView.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class FieldPos{constructor(to,no,io,so){this.field=to,this.line=no,this.from=io,this.to=so}}class FieldRange{constructor(to,no,io){this.field=to,this.from=no,this.to=io}map(to){let no=to.mapPos(this.from,-1,MapMode.TrackDel),io=to.mapPos(this.to,1,MapMode.TrackDel);return no==null||io==null?null:new FieldRange(this.field,no,io)}}class Snippet{constructor(to,no){this.lines=to,this.fieldPositions=no}instantiate(to,no){let io=[],so=[no],ao=to.doc.lineAt(no),lo=/^\s*/.exec(ao.text)[0];for(let ho of this.lines){if(io.length){let go=lo,mo=/^\t*/.exec(ho)[0].length;for(let yo=0;yonew FieldRange(ho.field,so[ho.line]+ho.from,so[ho.line]+ho.to));return{text:io,ranges:uo}}static parse(to){let no=[],io=[],so=[],ao;for(let lo of to.split(/\r\n?|\n/)){for(;ao=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(lo);){let uo=ao[1]?+ao[1]:null,ho=ao[2]||ao[3]||"",go=-1;for(let mo=0;mo=go&&yo.field++}so.push(new FieldPos(go,io.length,ao.index,ao.index+ho.length)),lo=lo.slice(0,ao.index)+ho+lo.slice(ao.index+ao[0].length)}for(let uo;uo=/\\([{}])/.exec(lo);){lo=lo.slice(0,uo.index)+uo[1]+lo.slice(uo.index+uo[0].length);for(let ho of so)ho.line==io.length&&ho.from>uo.index&&(ho.from--,ho.to--)}io.push(lo)}return new Snippet(io,so)}}let fieldMarker=Decoration.widget({widget:new class extends WidgetType{toDOM(){let eo=document.createElement("span");return eo.className="cm-snippetFieldPosition",eo}ignoreEvent(){return!1}}}),fieldRange=Decoration.mark({class:"cm-snippetField"});class ActiveSnippet{constructor(to,no){this.ranges=to,this.active=no,this.deco=Decoration.set(to.map(io=>(io.from==io.to?fieldMarker:fieldRange).range(io.from,io.to)))}map(to){let no=[];for(let io of this.ranges){let so=io.map(to);if(!so)return null;no.push(so)}return new ActiveSnippet(no,this.active)}selectionInsideField(to){return to.ranges.every(no=>this.ranges.some(io=>io.field==this.active&&io.from<=no.from&&io.to>=no.to))}}const setActive=StateEffect.define({map(eo,to){return eo&&eo.map(to)}}),moveToField=StateEffect.define(),snippetState=StateField.define({create(){return null},update(eo,to){for(let no of to.effects){if(no.is(setActive))return no.value;if(no.is(moveToField)&&eo)return new ActiveSnippet(eo.ranges,no.value)}return eo&&to.docChanged&&(eo=eo.map(to.changes)),eo&&to.selection&&!eo.selectionInsideField(to.selection)&&(eo=null),eo},provide:eo=>EditorView.decorations.from(eo,to=>to?to.deco:Decoration.none)});function fieldSelection(eo,to){return EditorSelection.create(eo.filter(no=>no.field==to).map(no=>EditorSelection.range(no.from,no.to)))}function snippet(eo){let to=Snippet.parse(eo);return(no,io,so,ao)=>{let{text:lo,ranges:uo}=to.instantiate(no.state,so),ho={changes:{from:so,to:ao,insert:Text$1.of(lo)},scrollIntoView:!0,annotations:io?[pickedCompletion.of(io),Transaction.userEvent.of("input.complete")]:void 0};if(uo.length&&(ho.selection=fieldSelection(uo,0)),uo.some(go=>go.field>0)){let go=new ActiveSnippet(uo,0),mo=ho.effects=[setActive.of(go)];no.state.field(snippetState,!1)===void 0&&mo.push(StateEffect.appendConfig.of([snippetState,addSnippetKeymap,snippetPointerHandler,baseTheme$3]))}no.dispatch(no.state.update(ho))}}function moveField(eo){return({state:to,dispatch:no})=>{let io=to.field(snippetState,!1);if(!io||eo<0&&io.active==0)return!1;let so=io.active+eo,ao=eo>0&&!io.ranges.some(lo=>lo.field==so+eo);return no(to.update({selection:fieldSelection(io.ranges,so),effects:setActive.of(ao?null:new ActiveSnippet(io.ranges,so)),scrollIntoView:!0})),!0}}const clearSnippet=({state:eo,dispatch:to})=>eo.field(snippetState,!1)?(to(eo.update({effects:setActive.of(null)})),!0):!1,nextSnippetField=moveField(1),prevSnippetField=moveField(-1),defaultSnippetKeymap=[{key:"Tab",run:nextSnippetField,shift:prevSnippetField},{key:"Escape",run:clearSnippet}],snippetKeymap=Facet.define({combine(eo){return eo.length?eo[0]:defaultSnippetKeymap}}),addSnippetKeymap=Prec.highest(keymap.compute([snippetKeymap],eo=>eo.facet(snippetKeymap)));function snippetCompletion(eo,to){return Object.assign(Object.assign({},to),{apply:snippet(eo)})}const snippetPointerHandler=EditorView.domEventHandlers({mousedown(eo,to){let no=to.state.field(snippetState,!1),io;if(!no||(io=to.posAtCoords({x:eo.clientX,y:eo.clientY}))==null)return!1;let so=no.ranges.find(ao=>ao.from<=io&&ao.to>=io);return!so||so.field==no.active?!1:(to.dispatch({selection:fieldSelection(no.ranges,so.field),effects:setActive.of(no.ranges.some(ao=>ao.field>so.field)?new ActiveSnippet(no.ranges,so.field):null),scrollIntoView:!0}),!0)}}),defaults$j={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},closeBracketEffect=StateEffect.define({map(eo,to){let no=to.mapPos(eo,-1,MapMode.TrackAfter);return no??void 0}}),closedBracket=new class extends RangeValue{};closedBracket.startSide=1;closedBracket.endSide=-1;const bracketState=StateField.define({create(){return RangeSet.empty},update(eo,to){if(eo=eo.map(to.changes),to.selection){let no=to.state.doc.lineAt(to.selection.main.head);eo=eo.update({filter:io=>io>=no.from&&io<=no.to})}for(let no of to.effects)no.is(closeBracketEffect)&&(eo=eo.update({add:[closedBracket.range(no.value,no.value+1)]}));return eo}});function closeBrackets(){return[inputHandler,bracketState]}const definedClosing="()[]{}<>";function closing(eo){for(let to=0;to{if((android?eo.composing:eo.compositionStarted)||eo.state.readOnly)return!1;let so=eo.state.selection.main;if(io.length>2||io.length==2&&codePointSize(codePointAt(io,0))==1||to!=so.from||no!=so.to)return!1;let ao=insertBracket(eo.state,io);return ao?(eo.dispatch(ao),!0):!1}),deleteBracketPair=({state:eo,dispatch:to})=>{if(eo.readOnly)return!1;let io=config$3(eo,eo.selection.main.head).brackets||defaults$j.brackets,so=null,ao=eo.changeByRange(lo=>{if(lo.empty){let uo=prevChar(eo.doc,lo.head);for(let ho of io)if(ho==uo&&nextChar(eo.doc,lo.head)==closing(codePointAt(ho,0)))return{changes:{from:lo.head-ho.length,to:lo.head+ho.length},range:EditorSelection.cursor(lo.head-ho.length)}}return{range:so=lo}});return so||to(eo.update(ao,{scrollIntoView:!0,userEvent:"delete.backward"})),!so},closeBracketsKeymap=[{key:"Backspace",run:deleteBracketPair}];function insertBracket(eo,to){let no=config$3(eo,eo.selection.main.head),io=no.brackets||defaults$j.brackets;for(let so of io){let ao=closing(codePointAt(so,0));if(to==so)return ao==so?handleSame(eo,so,io.indexOf(so+so+so)>-1,no):handleOpen(eo,so,ao,no.before||defaults$j.before);if(to==ao&&closedBracketAt(eo,eo.selection.main.from))return handleClose(eo,so,ao)}return null}function closedBracketAt(eo,to){let no=!1;return eo.field(bracketState).between(0,eo.doc.length,io=>{io==to&&(no=!0)}),no}function nextChar(eo,to){let no=eo.sliceString(to,to+2);return no.slice(0,codePointSize(codePointAt(no,0)))}function prevChar(eo,to){let no=eo.sliceString(to-2,to);return codePointSize(codePointAt(no,0))==no.length?no:no.slice(1)}function handleOpen(eo,to,no,io){let so=null,ao=eo.changeByRange(lo=>{if(!lo.empty)return{changes:[{insert:to,from:lo.from},{insert:no,from:lo.to}],effects:closeBracketEffect.of(lo.to+to.length),range:EditorSelection.range(lo.anchor+to.length,lo.head+to.length)};let uo=nextChar(eo.doc,lo.head);return!uo||/\s/.test(uo)||io.indexOf(uo)>-1?{changes:{insert:to+no,from:lo.head},effects:closeBracketEffect.of(lo.head+to.length),range:EditorSelection.cursor(lo.head+to.length)}:{range:so=lo}});return so?null:eo.update(ao,{scrollIntoView:!0,userEvent:"input.type"})}function handleClose(eo,to,no){let io=null,so=eo.changeByRange(ao=>ao.empty&&nextChar(eo.doc,ao.head)==no?{changes:{from:ao.head,to:ao.head+no.length,insert:no},range:EditorSelection.cursor(ao.head+no.length)}:io={range:ao});return io?null:eo.update(so,{scrollIntoView:!0,userEvent:"input.type"})}function handleSame(eo,to,no,io){let so=io.stringPrefixes||defaults$j.stringPrefixes,ao=null,lo=eo.changeByRange(uo=>{if(!uo.empty)return{changes:[{insert:to,from:uo.from},{insert:to,from:uo.to}],effects:closeBracketEffect.of(uo.to+to.length),range:EditorSelection.range(uo.anchor+to.length,uo.head+to.length)};let ho=uo.head,go=nextChar(eo.doc,ho),mo;if(go==to){if(nodeStart(eo,ho))return{changes:{insert:to+to,from:ho},effects:closeBracketEffect.of(ho+to.length),range:EditorSelection.cursor(ho+to.length)};if(closedBracketAt(eo,ho)){let So=no&&eo.sliceDoc(ho,ho+to.length*3)==to+to+to?to+to+to:to;return{changes:{from:ho,to:ho+So.length,insert:So},range:EditorSelection.cursor(ho+So.length)}}}else{if(no&&eo.sliceDoc(ho-2*to.length,ho)==to+to&&(mo=canStartStringAt(eo,ho-2*to.length,so))>-1&&nodeStart(eo,mo))return{changes:{insert:to+to+to+to,from:ho},effects:closeBracketEffect.of(ho+to.length),range:EditorSelection.cursor(ho+to.length)};if(eo.charCategorizer(ho)(go)!=CharCategory.Word&&canStartStringAt(eo,ho,so)>-1&&!probablyInString(eo,ho,to,so))return{changes:{insert:to+to,from:ho},effects:closeBracketEffect.of(ho+to.length),range:EditorSelection.cursor(ho+to.length)}}return{range:ao=uo}});return ao?null:eo.update(lo,{scrollIntoView:!0,userEvent:"input.type"})}function nodeStart(eo,to){let no=syntaxTree(eo).resolveInner(to+1);return no.parent&&no.from==to}function probablyInString(eo,to,no,io){let so=syntaxTree(eo).resolveInner(to,-1),ao=io.reduce((lo,uo)=>Math.max(lo,uo.length),0);for(let lo=0;lo<5;lo++){let uo=eo.sliceDoc(so.from,Math.min(so.to,so.from+no.length+ao)),ho=uo.indexOf(no);if(!ho||ho>-1&&io.indexOf(uo.slice(0,ho))>-1){let mo=so.firstChild;for(;mo&&mo.from==so.from&&mo.to-mo.from>no.length+ho;){if(eo.sliceDoc(mo.to-no.length,mo.to)==no)return!1;mo=mo.firstChild}return!0}let go=so.to==to&&so.parent;if(!go)break;so=go}return!1}function canStartStringAt(eo,to,no){let io=eo.charCategorizer(to);if(io(eo.sliceDoc(to-1,to))!=CharCategory.Word)return to;for(let so of no){let ao=to-so.length;if(eo.sliceDoc(ao,to)==so&&io(eo.sliceDoc(ao-1,ao))!=CharCategory.Word)return ao}return-1}function autocompletion(eo={}){return[commitCharacters,completionState,completionConfig.of(eo),completionPlugin,completionKeymapExt,baseTheme$3]}const completionKeymap=[{key:"Ctrl-Space",run:startCompletion},{key:"Escape",run:closeCompletion},{key:"ArrowDown",run:moveCompletionSelection(!0)},{key:"ArrowUp",run:moveCompletionSelection(!1)},{key:"PageDown",run:moveCompletionSelection(!0,"page")},{key:"PageUp",run:moveCompletionSelection(!1,"page")},{key:"Enter",run:acceptCompletion}],completionKeymapExt=Prec.highest(keymap.computeN([completionConfig],eo=>eo.facet(completionConfig).defaultKeymap?[completionKeymap]:[]));var define_process_env_default={};class Stack{constructor(to,no,io,so,ao,lo,uo,ho,go,mo=0,yo){this.p=to,this.stack=no,this.state=io,this.reducePos=so,this.pos=ao,this.score=lo,this.buffer=uo,this.bufferBase=ho,this.curContext=go,this.lookAhead=mo,this.parent=yo}toString(){return`[${this.stack.filter((to,no)=>no%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(to,no,io=0){let so=to.parser.context;return new Stack(to,[],no,io,io,0,[],0,so?new StackContext(so,so.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(to,no){this.stack.push(this.state,no,this.bufferBase+this.buffer.length),this.state=to}reduce(to){var no;let io=to>>19,so=to&65535,{parser:ao}=this.p,lo=ao.dynamicPrecedence(so);if(lo&&(this.score+=lo),io==0){this.pushState(ao.getGoto(this.state,so,!0),this.reducePos),so=2e3&&!(!((no=this.p.parser.nodeSet.types[so])===null||no===void 0)&&no.isAnonymous)&&(ho==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=go):this.p.lastBigReductionSizeuo;)this.stack.pop();this.reduceContext(so,ho)}storeNode(to,no,io,so=4,ao=!1){if(to==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&lo.buffer[uo-4]==0&&lo.buffer[uo-1]>-1){if(no==io)return;if(lo.buffer[uo-2]>=no){lo.buffer[uo-2]=io;return}}}if(!ao||this.pos==io)this.buffer.push(to,no,io,so);else{let lo=this.buffer.length;if(lo>0&&this.buffer[lo-4]!=0)for(;lo>0&&this.buffer[lo-2]>io;)this.buffer[lo]=this.buffer[lo-4],this.buffer[lo+1]=this.buffer[lo-3],this.buffer[lo+2]=this.buffer[lo-2],this.buffer[lo+3]=this.buffer[lo-1],lo-=4,so>4&&(so-=4);this.buffer[lo]=to,this.buffer[lo+1]=no,this.buffer[lo+2]=io,this.buffer[lo+3]=so}}shift(to,no,io,so){if(to&131072)this.pushState(to&65535,this.pos);else if(to&262144)this.pos=so,this.shiftContext(no,io),no<=this.p.parser.maxNode&&this.buffer.push(no,io,so,4);else{let ao=to,{parser:lo}=this.p;(so>this.pos||no<=lo.maxNode)&&(this.pos=so,lo.stateFlag(ao,1)||(this.reducePos=so)),this.pushState(ao,io),this.shiftContext(no,io),no<=lo.maxNode&&this.buffer.push(no,io,so,4)}}apply(to,no,io,so){to&65536?this.reduce(to):this.shift(to,no,io,so)}useNode(to,no){let io=this.p.reused.length-1;(io<0||this.p.reused[io]!=to)&&(this.p.reused.push(to),io++);let so=this.pos;this.reducePos=this.pos=so+to.length,this.pushState(no,so),this.buffer.push(io,so,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,to,this,this.p.stream.reset(this.pos-to.length)))}split(){let to=this,no=to.buffer.length;for(;no>0&&to.buffer[no-2]>to.reducePos;)no-=4;let io=to.buffer.slice(no),so=to.bufferBase+no;for(;to&&so==to.bufferBase;)to=to.parent;return new Stack(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,io,so,this.curContext,this.lookAhead,to)}recoverByDelete(to,no){let io=to<=this.p.parser.maxNode;io&&this.storeNode(to,this.pos,no,4),this.storeNode(0,this.pos,no,io?8:4),this.pos=this.reducePos=no,this.score-=190}canShift(to){for(let no=new SimulatedStack(this);;){let io=this.p.parser.stateSlot(no.state,4)||this.p.parser.hasAction(no.state,to);if(io==0)return!1;if(!(io&65536))return!0;no.reduce(io)}}recoverByInsert(to){if(this.stack.length>=300)return[];let no=this.p.parser.nextStates(this.state);if(no.length>8||this.stack.length>=120){let so=[];for(let ao=0,lo;aoho&1&&uo==lo)||so.push(no[ao],lo)}no=so}let io=[];for(let so=0;so>19,so=no&65535,ao=this.stack.length-io*3;if(ao<0||to.getGoto(this.stack[ao],so,!1)<0){let lo=this.findForcedReduction();if(lo==null)return!1;no=lo}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(no),!0}findForcedReduction(){let{parser:to}=this.p,no=[],io=(so,ao)=>{if(!no.includes(so))return no.push(so),to.allActions(so,lo=>{if(!(lo&393216))if(lo&65536){let uo=(lo>>19)-ao;if(uo>1){let ho=lo&65535,go=this.stack.length-uo*3;if(go>=0&&to.getGoto(this.stack[go],ho,!1)>=0)return uo<<19|65536|ho}}else{let uo=io(lo,ao+1);if(uo!=null)return uo}})};return io(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:to}=this.p;return to.data[to.stateSlot(this.state,1)]==65535&&!to.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(to){if(this.state!=to.state||this.stack.length!=to.stack.length)return!1;for(let no=0;nothis.lookAhead&&(this.emitLookAhead(),this.lookAhead=to)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class StackContext{constructor(to,no){this.tracker=to,this.context=no,this.hash=to.strict?to.hash(no):0}}class SimulatedStack{constructor(to){this.start=to,this.state=to.state,this.stack=to.stack,this.base=this.stack.length}reduce(to){let no=to&65535,io=to>>19;io==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(io-1)*3;let so=this.start.p.parser.getGoto(this.stack[this.base-3],no,!0);this.state=so}}class StackBufferCursor{constructor(to,no,io){this.stack=to,this.pos=no,this.index=io,this.buffer=to.buffer,this.index==0&&this.maybeNext()}static create(to,no=to.bufferBase+to.buffer.length){return new StackBufferCursor(to,no,no-to.bufferBase)}maybeNext(){let to=this.stack.parent;to!=null&&(this.index=this.stack.bufferBase-to.bufferBase,this.stack=to,this.buffer=to.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new StackBufferCursor(this.stack,this.pos,this.index)}}function decodeArray(eo,to=Uint16Array){if(typeof eo!="string")return eo;let no=null;for(let io=0,so=0;io=92&&lo--,lo>=34&&lo--;let ho=lo-32;if(ho>=46&&(ho-=46,uo=!0),ao+=ho,uo)break;ao*=46}no?no[so++]=ao:no=new to(ao)}return no}class CachedToken{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const nullToken=new CachedToken;class InputStream{constructor(to,no){this.input=to,this.ranges=no,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=nullToken,this.rangeIndex=0,this.pos=this.chunkPos=no[0].from,this.range=no[0],this.end=no[no.length-1].to,this.readNext()}resolveOffset(to,no){let io=this.range,so=this.rangeIndex,ao=this.pos+to;for(;aoio.to:ao>=io.to;){if(so==this.ranges.length-1)return null;let lo=this.ranges[++so];ao+=lo.from-io.to,io=lo}return ao}clipPos(to){if(to>=this.range.from&&toto)return Math.max(to,no.from);return this.end}peek(to){let no=this.chunkOff+to,io,so;if(no>=0&&no=this.chunk2Pos&&iouo.to&&(this.chunk2=this.chunk2.slice(0,uo.to-io)),so=this.chunk2.charCodeAt(0)}}return io>=this.token.lookAhead&&(this.token.lookAhead=io+1),so}acceptToken(to,no=0){let io=no?this.resolveOffset(no,-1):this.pos;if(io==null||io=this.chunk2Pos&&this.posthis.range.to?to.slice(0,this.range.to-this.pos):to,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(to=1){for(this.chunkOff+=to;this.pos+to>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();to-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=to,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(to,no){if(no?(this.token=no,no.start=to,no.lookAhead=to+1,no.value=no.extended=-1):this.token=nullToken,this.pos!=to){if(this.pos=to,to==this.end)return this.setDone(),this;for(;to=this.range.to;)this.range=this.ranges[++this.rangeIndex];to>=this.chunkPos&&to=this.chunkPos&&no<=this.chunkPos+this.chunk.length)return this.chunk.slice(to-this.chunkPos,no-this.chunkPos);if(to>=this.chunk2Pos&&no<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(to-this.chunk2Pos,no-this.chunk2Pos);if(to>=this.range.from&&no<=this.range.to)return this.input.read(to,no);let io="";for(let so of this.ranges){if(so.from>=no)break;so.to>to&&(io+=this.input.read(Math.max(so.from,to),Math.min(so.to,no)))}return io}}class TokenGroup{constructor(to,no){this.data=to,this.id=no}token(to,no){let{parser:io}=no.p;readToken(this.data,to,no,this.id,io.data,io.tokenPrecTable)}}TokenGroup.prototype.contextual=TokenGroup.prototype.fallback=TokenGroup.prototype.extend=!1;TokenGroup.prototype.fallback=TokenGroup.prototype.extend=!1;class ExternalTokenizer{constructor(to,no={}){this.token=to,this.contextual=!!no.contextual,this.fallback=!!no.fallback,this.extend=!!no.extend}}function readToken(eo,to,no,io,so,ao){let lo=0,uo=1<0){let ko=eo[_o];if(ho.allows(ko)&&(to.token.value==-1||to.token.value==ko||overrides(ko,to.token.value,so,ao))){to.acceptToken(ko);break}}let mo=to.next,yo=0,So=eo[lo+2];if(to.next<0&&So>yo&&eo[go+So*3-3]==65535){lo=eo[go+So*3-1];continue e}for(;yo>1,ko=go+_o+(_o<<1),Co=eo[ko],$o=eo[ko+1]||65536;if(mo=$o)yo=_o+1;else{lo=eo[ko+2],to.advance();continue e}}break}}function findOffset(eo,to,no){for(let io=to,so;(so=eo[io])!=65535;io++)if(so==no)return io-to;return-1}function overrides(eo,to,no,io){let so=findOffset(no,io,to);return so<0||findOffset(no,io,eo)to)&&!io.type.isError)return no<0?Math.max(0,Math.min(io.to-1,to-25)):Math.min(eo.length,Math.max(io.from+1,to+25));if(no<0?io.prevSibling():io.nextSibling())break;if(!io.parent())return no<0?0:eo.length}}class FragmentCursor{constructor(to,no){this.fragments=to,this.nodeSet=no,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let to=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(to){for(this.safeFrom=to.openStart?cutAt(to.tree,to.from+to.offset,1)-to.offset:to.from,this.safeTo=to.openEnd?cutAt(to.tree,to.to+to.offset,-1)-to.offset:to.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(to.tree),this.start.push(-to.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(to){if(toto)return this.nextStart=lo,null;if(ao instanceof Tree){if(lo==to){if(lo=Math.max(this.safeFrom,to)&&(this.trees.push(ao),this.start.push(lo),this.index.push(0))}else this.index[no]++,this.nextStart=lo+ao.length}}}class TokenCache{constructor(to,no){this.stream=no,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=to.tokenizers.map(io=>new CachedToken)}getActions(to){let no=0,io=null,{parser:so}=to.p,{tokenizers:ao}=so,lo=so.stateSlot(to.state,3),uo=to.curContext?to.curContext.hash:0,ho=0;for(let go=0;goyo.end+25&&(ho=Math.max(yo.lookAhead,ho)),yo.value!=0)){let So=no;if(yo.extended>-1&&(no=this.addActions(to,yo.extended,yo.end,no)),no=this.addActions(to,yo.value,yo.end,no),!mo.extend&&(io=yo,no>So))break}}for(;this.actions.length>no;)this.actions.pop();return ho&&to.setLookAhead(ho),!io&&to.pos==this.stream.end&&(io=new CachedToken,io.value=to.p.parser.eofTerm,io.start=io.end=to.pos,no=this.addActions(to,io.value,io.end,no)),this.mainToken=io,this.actions}getMainToken(to){if(this.mainToken)return this.mainToken;let no=new CachedToken,{pos:io,p:so}=to;return no.start=io,no.end=Math.min(io+1,so.stream.end),no.value=io==so.stream.end?so.parser.eofTerm:0,no}updateCachedToken(to,no,io){let so=this.stream.clipPos(io.pos);if(no.token(this.stream.reset(so,to),io),to.value>-1){let{parser:ao}=io.p;for(let lo=0;lo=0&&io.p.parser.dialect.allows(uo>>1)){uo&1?to.extended=uo>>1:to.value=uo>>1;break}}}else to.value=0,to.end=this.stream.clipPos(so+1)}putAction(to,no,io,so){for(let ao=0;aoto.bufferLength*4?new FragmentCursor(io,to.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let to=this.stacks,no=this.minStackPos,io=this.stacks=[],so,ao;if(this.bigReductionCount>300&&to.length==1){let[lo]=to;for(;lo.forceReduce()&&lo.stack.length&&lo.stack[lo.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let lo=0;lono)io.push(uo);else{if(this.advanceStack(uo,io,to))continue;{so||(so=[],ao=[]),so.push(uo);let ho=this.tokens.getMainToken(uo);ao.push(ho.value,ho.end)}}break}}if(!io.length){let lo=so&&findFinished(so);if(lo)return verbose&&console.log("Finish with "+this.stackID(lo)),this.stackToTree(lo);if(this.parser.strict)throw verbose&&so&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+no);this.recovering||(this.recovering=5)}if(this.recovering&&so){let lo=this.stoppedAt!=null&&so[0].pos>this.stoppedAt?so[0]:this.runRecovery(so,ao,io);if(lo)return verbose&&console.log("Force-finish "+this.stackID(lo)),this.stackToTree(lo.forceAll())}if(this.recovering){let lo=this.recovering==1?1:this.recovering*3;if(io.length>lo)for(io.sort((uo,ho)=>ho.score-uo.score);io.length>lo;)io.pop();io.some(uo=>uo.reducePos>no)&&this.recovering--}else if(io.length>1){e:for(let lo=0;lo500&&go.buffer.length>500)if((uo.score-go.score||uo.buffer.length-go.buffer.length)>0)io.splice(ho--,1);else{io.splice(lo--,1);continue e}}}io.length>12&&io.splice(12,io.length-12)}this.minStackPos=io[0].pos;for(let lo=1;lo ":"";if(this.stoppedAt!=null&&so>this.stoppedAt)return to.forceReduce()?to:null;if(this.fragments){let go=to.curContext&&to.curContext.tracker.strict,mo=go?to.curContext.hash:0;for(let yo=this.fragments.nodeAt(so);yo;){let So=this.parser.nodeSet.types[yo.type.id]==yo.type?ao.getGoto(to.state,yo.type.id):-1;if(So>-1&&yo.length&&(!go||(yo.prop(NodeProp.contextHash)||0)==mo))return to.useNode(yo,So),verbose&&console.log(lo+this.stackID(to)+` (via reuse of ${ao.getName(yo.type.id)})`),!0;if(!(yo instanceof Tree)||yo.children.length==0||yo.positions[0]>0)break;let _o=yo.children[0];if(_o instanceof Tree&&yo.positions[0]==0)yo=_o;else break}}let uo=ao.stateSlot(to.state,4);if(uo>0)return to.reduce(uo),verbose&&console.log(lo+this.stackID(to)+` (via always-reduce ${ao.getName(uo&65535)})`),!0;if(to.stack.length>=8400)for(;to.stack.length>6e3&&to.forceReduce(););let ho=this.tokens.getActions(to);for(let go=0;goso?no.push(ko):io.push(ko)}return!1}advanceFully(to,no){let io=to.pos;for(;;){if(!this.advanceStack(to,null,null))return!1;if(to.pos>io)return pushStackDedup(to,no),!0}}runRecovery(to,no,io){let so=null,ao=!1;for(let lo=0;lo ":"";if(uo.deadEnd&&(ao||(ao=!0,uo.restart(),verbose&&console.log(mo+this.stackID(uo)+" (restarted)"),this.advanceFully(uo,io))))continue;let yo=uo.split(),So=mo;for(let _o=0;yo.forceReduce()&&_o<10&&(verbose&&console.log(So+this.stackID(yo)+" (via force-reduce)"),!this.advanceFully(yo,io));_o++)verbose&&(So=this.stackID(yo)+" -> ");for(let _o of uo.recoverByInsert(ho))verbose&&console.log(mo+this.stackID(_o)+" (via recover-insert)"),this.advanceFully(_o,io);this.stream.end>uo.pos?(go==uo.pos&&(go++,ho=0),uo.recoverByDelete(ho,go),verbose&&console.log(mo+this.stackID(uo)+` (via recover-delete ${this.parser.getName(ho)})`),pushStackDedup(uo,io)):(!so||so.scoreeo;class ContextTracker{constructor(to){this.start=to.start,this.shift=to.shift||id,this.reduce=to.reduce||id,this.reuse=to.reuse||id,this.hash=to.hash||(()=>0),this.strict=to.strict!==!1}}class LRParser extends Parser$1{constructor(to){if(super(),this.wrappers=[],to.version!=14)throw new RangeError(`Parser version (${to.version}) doesn't match runtime version (14)`);let no=to.nodeNames.split(" ");this.minRepeatTerm=no.length;for(let uo=0;uoto.topRules[uo][1]),so=[];for(let uo=0;uo=0)ao(mo,ho,uo[go++]);else{let yo=uo[go+-mo];for(let So=-mo;So>0;So--)ao(uo[go++],ho,yo);go++}}}this.nodeSet=new NodeSet(no.map((uo,ho)=>NodeType.define({name:ho>=this.minRepeatTerm?void 0:uo,id:ho,props:so[ho],top:io.indexOf(ho)>-1,error:ho==0,skipped:to.skippedNodes&&to.skippedNodes.indexOf(ho)>-1}))),to.propSources&&(this.nodeSet=this.nodeSet.extend(...to.propSources)),this.strict=!1,this.bufferLength=DefaultBufferLength;let lo=decodeArray(to.tokenData);this.context=to.context,this.specializerSpecs=to.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let uo=0;uotypeof uo=="number"?new TokenGroup(lo,uo):uo),this.topRules=to.topRules,this.dialects=to.dialects||{},this.dynamicPrecedences=to.dynamicPrecedences||null,this.tokenPrecTable=to.tokenPrec,this.termNames=to.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(to,no,io){let so=new Parse(this,to,no,io);for(let ao of this.wrappers)so=ao(so,to,no,io);return so}getGoto(to,no,io=!1){let so=this.goto;if(no>=so[0])return-1;for(let ao=so[no+1];;){let lo=so[ao++],uo=lo&1,ho=so[ao++];if(uo&&io)return ho;for(let go=ao+(lo>>1);ao0}validAction(to,no){return!!this.allActions(to,io=>io==no?!0:null)}allActions(to,no){let io=this.stateSlot(to,4),so=io?no(io):void 0;for(let ao=this.stateSlot(to,1);so==null;ao+=3){if(this.data[ao]==65535)if(this.data[ao+1]==1)ao=pair(this.data,ao+2);else break;so=no(pair(this.data,ao+1))}return so}nextStates(to){let no=[];for(let io=this.stateSlot(to,1);;io+=3){if(this.data[io]==65535)if(this.data[io+1]==1)io=pair(this.data,io+2);else break;if(!(this.data[io+2]&1)){let so=this.data[io+1];no.some((ao,lo)=>lo&1&&ao==so)||no.push(this.data[io],so)}}return no}configure(to){let no=Object.assign(Object.create(LRParser.prototype),this);if(to.props&&(no.nodeSet=this.nodeSet.extend(...to.props)),to.top){let io=this.topRules[to.top];if(!io)throw new RangeError(`Invalid top rule name ${to.top}`);no.top=io}return to.tokenizers&&(no.tokenizers=this.tokenizers.map(io=>{let so=to.tokenizers.find(ao=>ao.from==io);return so?so.to:io})),to.specializers&&(no.specializers=this.specializers.slice(),no.specializerSpecs=this.specializerSpecs.map((io,so)=>{let ao=to.specializers.find(uo=>uo.from==io.external);if(!ao)return io;let lo=Object.assign(Object.assign({},io),{external:ao.to});return no.specializers[so]=getSpecializer(lo),lo})),to.contextTracker&&(no.context=to.contextTracker),to.dialect&&(no.dialect=this.parseDialect(to.dialect)),to.strict!=null&&(no.strict=to.strict),to.wrap&&(no.wrappers=no.wrappers.concat(to.wrap)),to.bufferLength!=null&&(no.bufferLength=to.bufferLength),no}hasWrappers(){return this.wrappers.length>0}getName(to){return this.termNames?this.termNames[to]:String(to<=this.maxNode&&this.nodeSet.types[to].name||to)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(to){let no=this.dynamicPrecedences;return no==null?0:no[to]||0}parseDialect(to){let no=Object.keys(this.dialects),io=no.map(()=>!1);if(to)for(let ao of to.split(" ")){let lo=no.indexOf(ao);lo>=0&&(io[lo]=!0)}let so=null;for(let ao=0;aoio)&&no.p.parser.stateFlag(no.state,2)&&(!to||to.scoreeo.external(no,io)<<1|to}return eo.get}const printKeyword=1,indent=194,dedent=195,newline$1=196,blankLineStart=197,newlineBracketed=198,eof=199,stringContent=200,Escape=2,replacementStart=3,stringEnd=201,ParenL=24,ParenthesizedExpression=25,TupleExpression=49,ComprehensionExpression=50,BracketL=55,ArrayExpression=56,ArrayComprehensionExpression=57,BraceL=59,DictionaryExpression=60,DictionaryComprehensionExpression=61,SetExpression=62,SetComprehensionExpression=63,ArgList=65,subscript=238,String$1=71,stringStart=241,stringStartD=242,stringStartL=243,stringStartLD=244,stringStartR=245,stringStartRD=246,stringStartRL=247,stringStartRLD=248,FormatString=72,stringStartF=249,stringStartFD=250,stringStartFL=251,stringStartFLD=252,stringStartFR=253,stringStartFRD=254,stringStartFRL=255,stringStartFRLD=256,FormatReplacement=73,nestedFormatReplacement=77,importList=264,TypeParamList=112,ParamList=130,SequencePattern=151,MappingPattern=152,PatternArgList=155,newline=10,carriageReturn=13,space=32,tab=9,hash=35,parenOpen=40,dot=46,braceOpen=123,braceClose=125,singleQuote=39,doubleQuote=34,backslash=92,letter_o=111,letter_x=120,letter_N=78,letter_u=117,letter_U=85,bracketed=new Set([ParenthesizedExpression,TupleExpression,ComprehensionExpression,importList,ArgList,ParamList,ArrayExpression,ArrayComprehensionExpression,subscript,SetExpression,SetComprehensionExpression,FormatString,FormatReplacement,nestedFormatReplacement,DictionaryExpression,DictionaryComprehensionExpression,SequencePattern,MappingPattern,PatternArgList,TypeParamList]);function isLineBreak(eo){return eo==newline||eo==carriageReturn}function isHex(eo){return eo>=48&&eo<=57||eo>=65&&eo<=70||eo>=97&&eo<=102}const newlines=new ExternalTokenizer((eo,to)=>{let no;if(eo.next<0)eo.acceptToken(eof);else if(to.context.flags&cx_Bracketed)isLineBreak(eo.next)&&eo.acceptToken(newlineBracketed,1);else if(((no=eo.peek(-1))<0||isLineBreak(no))&&to.canShift(blankLineStart)){let io=0;for(;eo.next==space||eo.next==tab;)eo.advance(),io++;(eo.next==newline||eo.next==carriageReturn||eo.next==hash)&&eo.acceptToken(blankLineStart,-io)}else isLineBreak(eo.next)&&eo.acceptToken(newline$1,1)},{contextual:!0}),indentation=new ExternalTokenizer((eo,to)=>{let no=to.context;if(no.flags)return;let io=eo.peek(-1);if(io==newline||io==carriageReturn){let so=0,ao=0;for(;;){if(eo.next==space)so++;else if(eo.next==tab)so+=8-so%8;else break;eo.advance(),ao++}so!=no.indent&&eo.next!=newline&&eo.next!=carriageReturn&&eo.next!=hash&&(so[eo,to|cx_String])),trackIndent=new ContextTracker({start:topIndent,reduce(eo,to,no,io){return eo.flags&cx_Bracketed&&bracketed.has(to)||(to==String$1||to==FormatString)&&eo.flags&cx_String?eo.parent:eo},shift(eo,to,no,io){return to==indent?new Context(eo,countIndent(io.read(io.pos,no.pos)),0):to==dedent?eo.parent:to==ParenL||to==BracketL||to==BraceL||to==replacementStart?new Context(eo,0,cx_Bracketed):stringFlags.has(to)?new Context(eo,0,stringFlags.get(to)|eo.flags&cx_Bracketed):eo},hash(eo){return eo.hash}}),legacyPrint=new ExternalTokenizer(eo=>{for(let to=0;to<5;to++){if(eo.next!="print".charCodeAt(to))return;eo.advance()}if(!/\w/.test(String.fromCharCode(eo.next)))for(let to=0;;to++){let no=eo.peek(to);if(!(no==space||no==tab)){no!=parenOpen&&no!=dot&&no!=newline&&no!=carriageReturn&&no!=hash&&eo.acceptToken(printKeyword);return}}}),strings=new ExternalTokenizer((eo,to)=>{let{flags:no}=to.context,io=no&cx_DoubleQuote?doubleQuote:singleQuote,so=(no&cx_Long)>0,ao=!(no&cx_Raw),lo=(no&cx_Format)>0,uo=eo.pos;for(;!(eo.next<0);)if(lo&&eo.next==braceOpen)if(eo.peek(1)==braceOpen)eo.advance(2);else{if(eo.pos==uo){eo.acceptToken(replacementStart,1);return}break}else if(ao&&eo.next==backslash){if(eo.pos==uo){eo.advance();let ho=eo.next;ho>=0&&(eo.advance(),skipEscape(eo,ho)),eo.acceptToken(Escape);return}break}else if(eo.next==io&&(!so||eo.peek(1)==io&&eo.peek(2)==io)){if(eo.pos==uo){eo.acceptToken(stringEnd,so?3:1);return}break}else if(eo.next==newline){if(so)eo.advance();else if(eo.pos==uo){eo.acceptToken(stringEnd);return}break}else eo.advance();eo.pos>uo&&eo.acceptToken(stringContent)});function skipEscape(eo,to){if(to==letter_o)for(let no=0;no<2&&eo.next>=48&&eo.next<=55;no++)eo.advance();else if(to==letter_x)for(let no=0;no<2&&isHex(eo.next);no++)eo.advance();else if(to==letter_u)for(let no=0;no<4&&isHex(eo.next);no++)eo.advance();else if(to==letter_U)for(let no=0;no<8&&isHex(eo.next);no++)eo.advance();else if(to==letter_N&&eo.next==braceOpen){for(eo.advance();eo.next>=0&&eo.next!=braceClose&&eo.next!=singleQuote&&eo.next!=doubleQuote&&eo.next!=newline;)eo.advance();eo.next==braceClose&&eo.advance()}}const pythonHighlighting=styleTags({'async "*" "**" FormatConversion FormatSpec':tags$1.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":tags$1.controlKeyword,"in not and or is del":tags$1.operatorKeyword,"from def class global nonlocal lambda":tags$1.definitionKeyword,import:tags$1.moduleKeyword,"with as print":tags$1.keyword,Boolean:tags$1.bool,None:tags$1.null,VariableName:tags$1.variableName,"CallExpression/VariableName":tags$1.function(tags$1.variableName),"FunctionDefinition/VariableName":tags$1.function(tags$1.definition(tags$1.variableName)),"ClassDefinition/VariableName":tags$1.definition(tags$1.className),PropertyName:tags$1.propertyName,"CallExpression/MemberExpression/PropertyName":tags$1.function(tags$1.propertyName),Comment:tags$1.lineComment,Number:tags$1.number,String:tags$1.string,FormatString:tags$1.special(tags$1.string),Escape:tags$1.escape,UpdateOp:tags$1.updateOperator,"ArithOp!":tags$1.arithmeticOperator,BitOp:tags$1.bitwiseOperator,CompareOp:tags$1.compareOperator,AssignOp:tags$1.definitionOperator,Ellipsis:tags$1.punctuation,At:tags$1.meta,"( )":tags$1.paren,"[ ]":tags$1.squareBracket,"{ }":tags$1.brace,".":tags$1.derefOperator,", ;":tags$1.separator}),spec_identifier={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},parser$j=LRParser.deserialize({version:14,states:"##pO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO1XQdO'#EfO3rQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO3}QdO'#EyO4UQdO'#FOO4aQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4fQdO'#F[P4mOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Cl'#ClO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO4xQdO'#DoOOQS,5:Y,5:YO5]QdO'#HdOOQS,5:],5:]O5jQ!fO,5:]O5oQtO,59YO1lQdO,59bO1lQdO,59bO1lQdO,59bO8_QdO,59bO8dQdO,59bO8kQdO,59jO8rQdO'#HTO9xQdO'#HSOOQS'#HS'#HSOOQS'#D['#D[O:aQdO,59aO'vQdO,59aO:oQdO,59aOOQS,59y,59yO:tQdO,5:RO'vQdO,5:ROOQS,5:Q,5:QO;SQdO,5:QO;XQdO,5:XO'vQdO,5:XO'vQdO,5:VOOQS,5:U,5:UO;jQdO,5:UO;oQdO,5:WOOOW'#Fy'#FyO;tOWO,5:aOOQS,5:a,5:aOOOOQS'#Ds'#DsOOQS1G/w1G/wOOQS1G.|1G.|O!.mQtO1G.|O!.tQtO1G.|O1lQdO1G.|O!/aQdO1G/UOOQS'#DZ'#DZO0rQdO,59tOOQS1G.{1G.{O!/hQdO1G/eO!/xQdO1G/eO!0QQdO1G/fO'vQdO'#H[O!0VQdO'#H[O!0[QtO1G.{O!0lQdO,59iO!1rQdO,5=zO!2SQdO,5=zO!2[QdO1G/mO!2aQtO1G/mOOQS1G/l1G/lO!2qQdO,5=uO!3hQdO,5=uO0rQdO1G/qO!4VQdO1G/sO!4[QtO1G/sO!4lQtO1G/qOOQS1G/p1G/pOOQS1G/r1G/rOOOW-E9w-E9wOOQS1G/{1G/{O!4|QdO'#HxO0rQdO'#HxO!5_QdO,5>cOOOW-E9x-E9xOOQS1G/|1G/|OOQS-E9{-E9{O!5mQ#xO1G2zO!6^QtO1G2zO'vQdO,5iOOQS1G1`1G1`O!7^QdO1G1`OOQS'#DV'#DVO0rQdO,5=qOOQS,5=q,5=qO!7cQdO'#FrO!7nQdO,59oO!7vQdO1G/XO!8QQtO,5=uOOQS1G3`1G3`OOQS,5:m,5:mO!8qQdO'#GtOOQS,5lO!:sQdO,5>lO!;RQdO,5>hO!;iQdO,5>hO!;zQdO'#EpO0rQdO1G0tO!oO!D_QdO,5>oO!DgQtO,5>oO0rQdO1G1PO!DqQdO1G1PO4aQdO1G1UO!!_QdO1G1WOOQV,5;a,5;aO!DvQfO,5;aO!D{QgO1G1QO!H|QdO'#GZO4aQdO1G1QO4aQdO1G1QO!I^QdO,5>pO!IkQdO,5>pO1XQdO,5>pOOQV1G1U1G1UO!IsQdO'#FSO!JUQ!fO1G1WO!J^QdO1G1WOOQV1G1]1G1]O4aQdO1G1]O!JcQdO1G1]O!JkQdO'#F^OOQV1G1b1G1bO!!rQtO1G1bPOOO1G2v1G2vP!JpOSO1G2vOOQS,5=},5=}OOQS'#Dp'#DpO0rQdO,5=}O!JuQdO,5=|O!KYQdO,5=|OOQS1G/u1G/uO!KbQdO,5>PO!KrQdO,5>PO!KzQdO,5>PO!L_QdO,5>PO!LoQdO,5>POOQS1G3j1G3jOOQS7+$h7+$hO!7vQdO7+$pO!NbQdO1G.|O!NiQdO1G.|OOQS1G/`1G/`OOQS,5<`,5<`O'vQdO,5<`OOQS7+%P7+%PO!NpQdO7+%POOQS-E9r-E9rOOQS7+%Q7+%QO# QQdO,5=vO'vQdO,5=vOOQS7+$g7+$gO# VQdO7+%PO# _QdO7+%QO# dQdO1G3fOOQS7+%X7+%XO# tQdO1G3fO# |QdO7+%XOOQS,5<_,5<_O'vQdO,5<_O#!RQdO1G3aOOQS-E9q-E9qO#!xQdO7+%]OOQS7+%_7+%_O##WQdO1G3aO##uQdO7+%_O##zQdO1G3gO#$[QdO1G3gO#$dQdO7+%]O#$iQdO,5>dO#%SQdO,5>dO#%SQdO,5>dOOQS'#Dx'#DxO#%eO&jO'#DzO#%pO`O'#HyOOOW1G3}1G3}O#%uQdO1G3}O#%}QdO1G3}O#&YQ#xO7+(fO#&yQtO1G2UP#'dQdO'#GOOOQS,5e,5>eOOOW7+)i7+)iO#=gQdO7+)iO#=oQdO1G2zO#>YQdO1G2zP'vQdO'#FuO0rQdO<kQdO,5>kO#>|QdO,5>kO1XQdO,5>kO#?_QdO,5>jOOQS<mO#?rQdO,5>mOOQS1G0v1G0vOOQS<rO#IXQdO,5>rOOQS,5>r,5>rO#IdQdO,5>qO#IuQdO,5>qOOQS1G1Y1G1YOOQS,5;p,5;pOOQV<VAN>VO#MUQdO<cAN>cO0rQdO1G1|O#MfQtO1G1|P#MpQdO'#FvOOQS1G2R1G2RP#M}QdO'#F{O#N[QdO7+)jO#NuQdO,5>gOOOO-E9z-E9zOOOW<tO$4^QdO,5>tO1XQdO,5vO$'zQdO,5>vOOQS1G1p1G1pO$8UQtO,5<[OOQU7+'P7+'PO$*WQdO1G/iO$'zQdO,5wO$8dQdO,5>wOOQS1G1s1G1sOOQS7+'S7+'SP$'zQdO'#GdO$8lQdO1G4bO$8vQdO1G4bO$9OQdO1G4bOOQS7+%T7+%TO$9^QdO1G1tO$9lQtO'#FaO$9sQdO,5<}OOQS,5<},5<}O$:RQdO1G4cOOQS-E:a-E:aO$'zQdO,5<|O$:YQdO,5<|O$:_QdO7+)|OOQS-E:`-E:`O$:iQdO7+)|O$'zQdO,5PPP>S>t>wPP'Z'ZPP?WPP'Z'ZPP'Z'Z'Z'Z'Z?[@U'ZP@XP@_DfHSHWPHZHeHi'ZPPPHlHu'RP'R'RP'RP'RP'RP'RP'R'R'RP'RPP'RPP'RP'RPH{IXIaPIhInPIhPIhIhPPPIhPK|PLVLaLgK|PIhLpPIhPLwL}PMRMgNUNoMRMRNu! SMRMRMRMR! h! n! q! v! y!!T!!Z!!g!!y!#P!#Z!#a!#}!$T!$Z!$e!$k!$q!%T!%_!%e!%k!%q!%{!&R!&X!&_!&e!&o!&u!'P!'V!'`!'f!'u!'}!(X!(`PPPPPPPPPPP!(f!(i!(o!(x!)S!)_PPPPPPPPPPPP!.R!/g!3g!6wPP!7P!7`!7i!8b!8X!8k!8q!8t!8w!8z!9S!9sPPPPPPPPPPPPPPPPP!9v!9z!:QP!:f!:j!:v!;S!;Y!;c!;f!;i!;o!;u!;{!_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!_%T!_!`([!`#T%T#T#U(r#U#f%T#f#g(r#g#h(r#h#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(cTmR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(yT!mR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk)aV&n`&[ZOr%Trs)vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk){V&n`Or%Trs*bs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk*iT&n`&^ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To+PZS_&n`OY*xYZ%TZ]*x]^%T^#o*x#o#p+r#p#q*x#q#r+r#r;'S*x;'S;=`,^<%lO*x_+wTS_OY+rZ]+r^;'S+r;'S;=`,W<%lO+r_,ZP;=`<%l+ro,aP;=`<%l*xj,kV%rQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-XT!xY&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-oV%lQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.]V&n`&ZZOw%Twx.rx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.wV&n`Ow%Twx/^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/eT&n`&]ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/{ThZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc0cTgR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk0yXVZ&n`Oz%Tz{1f{!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk1mVaR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk2ZV%oZ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc2wTzR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To3_W%pZ&n`O!_%T!_!`-Q!`!a3w!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Td4OT&{S&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk4fX!fQ&n`O!O%T!O!P5R!P!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5WV&n`O!O%T!O!P5m!P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5tT!rZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti6[a!hX&n`O!Q%T!Q![6T![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S6T#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti7fZ&n`O{%T{|8X|}%T}!O8X!O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8^V&n`O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8z]!hX&n`O!Q%T!Q![8s![!l%T!l!m9s!m#R%T#R#S8s#S#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti9zT!hX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk:bX%qR&n`O!P%T!P!Q:}!Q!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj;UV%sQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti;ro!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!d%T!d!e?q!e!g%T!g!h7a!h!l%T!l!m9s!m!q%T!q!rA]!r!z%T!z!{Bq!{#R%T#R#S>_#S#U%T#U#V?q#V#X%T#X#Y7a#Y#^%T#^#_9s#_#c%T#c#dA]#d#l%T#l#mBq#m#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti=xV&n`O!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti>fc!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S>_#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti?vY&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti@mY!hX&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiAbX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBUX!hX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBv]&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiCv]!hX&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToDvV{_&n`O!_%T!_!`E]!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TcEdT%{R&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkEzT#gZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkFbXmR&n`O!^%T!^!_F}!_!`([!`!a([!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjGUV%mQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkGrV%zZ&n`O!_%T!_!`([!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkH`WmR&n`O!_%T!_!`([!`!aHx!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjIPV%nQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkIoV_Q#}P&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToJ_]&n`&YS%uZO!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoKZP;=`<%lJUoKge&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!tJU!t!uLx!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#gLx#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoMRa&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUkN_V&n`&`ZOr%TrsNts#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkNyV&n`Or%Trs! `s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! gT&n`&bZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! }V&n`&_ZOw%Twx!!dx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!!iV&n`Ow%Twx!#Ox#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!#VT&n`&aZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!#oe&n`&YS%uZOr%Trs!%Qsw%Twx!&px!Q%T!Q![JU![!c%T!c!tJU!t!u!(`!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#g!(`#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!%XV&n`&dZOr%Trs!%ns#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!%sV&n`Or%Trs!&Ys#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&aT&n`&fZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&wV&n`&cZOw%Twx!'^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!'cV&n`Ow%Twx!'xx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!(PT&n`&eZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!(ia&n`&YS%uZOr%Trs!)nsw%Twx!+^x!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!)uV&n`&hZOr%Trs!*[s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*aV&n`Or%Trs!*vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*}T&n`&jZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!+eV&n`&gZOw%Twx!+zx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,PV&n`Ow%Twx!,fx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[legacyPrint,indentation,newlines,strings,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:eo=>spec_identifier[eo]||-1}],tokenPrec:7646}),cache$1=new NodeWeakMap,ScopeNodes=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function defID(eo){return(to,no,io)=>{if(io)return!1;let so=to.node.getChild("VariableName");return so&&no(so,eo),!0}}const gatherCompletions={FunctionDefinition:defID("function"),ClassDefinition:defID("class"),ForStatement(eo,to,no){if(no){for(let io=eo.node.firstChild;io;io=io.nextSibling)if(io.name=="VariableName")to(io,"variable");else if(io.name=="in")break}},ImportStatement(eo,to){var no,io;let{node:so}=eo,ao=((no=so.firstChild)===null||no===void 0?void 0:no.name)=="from";for(let lo=so.getChild("import");lo;lo=lo.nextSibling)lo.name=="VariableName"&&((io=lo.nextSibling)===null||io===void 0?void 0:io.name)!="as"&&to(lo,ao?"variable":"namespace")},AssignStatement(eo,to){for(let no=eo.node.firstChild;no;no=no.nextSibling)if(no.name=="VariableName")to(no,"variable");else if(no.name==":"||no.name=="AssignOp")break},ParamList(eo,to){for(let no=null,io=eo.node.firstChild;io;io=io.nextSibling)io.name=="VariableName"&&(!no||!/\*|AssignOp/.test(no.name))&&to(io,"variable"),no=io},CapturePattern:defID("variable"),AsPattern:defID("variable"),__proto__:null};function getScope(eo,to){let no=cache$1.get(to);if(no)return no;let io=[],so=!0;function ao(lo,uo){let ho=eo.sliceString(lo.from,lo.to);io.push({label:ho,type:uo})}return to.cursor(IterMode.IncludeAnonymous).iterate(lo=>{if(lo.name){let uo=gatherCompletions[lo.name];if(uo&&uo(lo,ao,so)||!so&&ScopeNodes.has(lo.name))return!1;so=!1}else if(lo.to-lo.from>8192){for(let uo of getScope(eo,lo.node))io.push(uo);return!1}}),cache$1.set(to,io),io}const Identifier=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,dontComplete=["String","FormatString","Comment","PropertyName"];function localCompletionSource(eo){let to=syntaxTree(eo.state).resolveInner(eo.pos,-1);if(dontComplete.indexOf(to.name)>-1)return null;let no=to.name=="VariableName"||to.to-to.from<20&&Identifier.test(eo.state.sliceDoc(to.from,to.to));if(!no&&!eo.explicit)return null;let io=[];for(let so=to;so;so=so.parent)ScopeNodes.has(so.name)&&(io=io.concat(getScope(eo.state.doc,so)));return{options:io,from:no?to.from:eo.pos,validFor:Identifier}}const globals=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(eo=>({label:eo,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(eo=>({label:eo,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(eo=>({label:eo,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(eo=>({label:eo,type:"function"}))),snippets=[snippetCompletion("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),snippetCompletion("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),snippetCompletion("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),snippetCompletion("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),snippetCompletion(`if \${}: `,{label:"if",detail:"block",type:"keyword"}),snippetCompletion("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),snippetCompletion("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),snippetCompletion("import ${module}",{label:"import",detail:"statement",type:"keyword"}),snippetCompletion("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],globalCompletion=ifNotIn(dontComplete,completeFromList(globals.concat(snippets)));function indentBody(eo,to){let no=eo.baseIndentFor(to),io=eo.lineAt(eo.pos,-1),so=io.from+io.text.length;return/^\s*($|#)/.test(io.text)&&eo.node.tono?null:no+eo.unit}const pythonLanguage=LRLanguage.define({name:"python",parser:parser$j.configure({props:[indentNodeProp.add({Body:eo=>{var to;return(to=indentBody(eo,eo.node))!==null&&to!==void 0?to:eo.continue()},IfStatement:eo=>/^\s*(else:|elif )/.test(eo.textAfter)?eo.baseIndent:eo.continue(),"ForStatement WhileStatement":eo=>/^\s*else:/.test(eo.textAfter)?eo.baseIndent:eo.continue(),TryStatement:eo=>/^\s*(except |finally:|else:)/.test(eo.textAfter)?eo.baseIndent:eo.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":delimitedIndent({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":delimitedIndent({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":delimitedIndent({closing:"]"}),"String FormatString":()=>null,Script:eo=>{if(eo.pos+/\s*/.exec(eo.textAfter)[0].length>=eo.node.to){let to=null;for(let no=eo.node,io=no.to;no=no.lastChild,!(!no||no.to!=io);)no.type.name=="Body"&&(to=no);if(to){let no=indentBody(eo,to);if(no!=null)return no}}return eo.continue()}}),foldNodeProp.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":foldInside,Body:(eo,to)=>({from:eo.from+1,to:eo.to-(eo.to==to.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function python(){return new LanguageSupport(pythonLanguage,[pythonLanguage.data.of({autocomplete:localCompletionSource}),pythonLanguage.data.of({autocomplete:globalCompletion})])}var createTheme=eo=>{var{theme:to,settings:no={},styles:io=[]}=eo,so={".cm-gutters":{}},ao={};no.background&&(ao.backgroundColor=no.background),no.backgroundImage&&(ao.backgroundImage=no.backgroundImage),no.foreground&&(ao.color=no.foreground),(no.background||no.foreground)&&(so["&"]=ao),no.fontFamily&&(so["&.cm-editor .cm-scroller"]={fontFamily:no.fontFamily}),no.gutterBackground&&(so[".cm-gutters"].backgroundColor=no.gutterBackground),no.gutterForeground&&(so[".cm-gutters"].color=no.gutterForeground),no.gutterBorder&&(so[".cm-gutters"].borderRightColor=no.gutterBorder),no.caret&&(so[".cm-content"]={caretColor:no.caret},so[".cm-cursor, .cm-dropCursor"]={borderLeftColor:no.caret});var lo={};no.gutterActiveForeground&&(lo.color=no.gutterActiveForeground),no.lineHighlight&&(so[".cm-activeLine"]={backgroundColor:no.lineHighlight},lo.backgroundColor=no.lineHighlight),so[".cm-activeLineGutter"]=lo,no.selection&&(so["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:no.selection+" !important"}),no.selectionMatch&&(so["& .cm-selectionMatch"]={backgroundColor:no.selectionMatch});var uo=EditorView.theme(so,{dark:to==="dark"}),ho=HighlightStyle.define(io),go=[uo,syntaxHighlighting(ho)];return go},defaultSettingsVscodeDark={background:"#1e1e1e",foreground:"#9cdcfe",caret:"#c6c6c6",selection:"#6199ff2f",selectionMatch:"#72a1ff59",lineHighlight:"#ffffff0f",gutterBackground:"#1e1e1e",gutterForeground:"#838383",gutterActiveForeground:"#fff",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace'};function vscodeDarkInit(eo){var{theme:to="dark",settings:no={},styles:io=[]}=eo||{};return createTheme({theme:to,settings:_extends$c({},defaultSettingsVscodeDark,no),styles:[{tag:[tags$1.keyword,tags$1.operatorKeyword,tags$1.modifier,tags$1.color,tags$1.constant(tags$1.name),tags$1.standard(tags$1.name),tags$1.standard(tags$1.tagName),tags$1.special(tags$1.brace),tags$1.atom,tags$1.bool,tags$1.special(tags$1.variableName)],color:"#569cd6"},{tag:[tags$1.controlKeyword,tags$1.moduleKeyword],color:"#c586c0"},{tag:[tags$1.name,tags$1.deleted,tags$1.character,tags$1.macroName,tags$1.propertyName,tags$1.variableName,tags$1.labelName,tags$1.definition(tags$1.name)],color:"#9cdcfe"},{tag:tags$1.heading,fontWeight:"bold",color:"#9cdcfe"},{tag:[tags$1.typeName,tags$1.className,tags$1.tagName,tags$1.number,tags$1.changed,tags$1.annotation,tags$1.self,tags$1.namespace],color:"#4ec9b0"},{tag:[tags$1.function(tags$1.variableName),tags$1.function(tags$1.propertyName)],color:"#dcdcaa"},{tag:[tags$1.number],color:"#b5cea8"},{tag:[tags$1.operator,tags$1.punctuation,tags$1.separator,tags$1.url,tags$1.escape,tags$1.regexp],color:"#d4d4d4"},{tag:[tags$1.regexp],color:"#d16969"},{tag:[tags$1.special(tags$1.string),tags$1.processingInstruction,tags$1.string,tags$1.inserted],color:"#ce9178"},{tag:[tags$1.angleBracket],color:"#808080"},{tag:tags$1.strong,fontWeight:"bold"},{tag:tags$1.emphasis,fontStyle:"italic"},{tag:tags$1.strikethrough,textDecoration:"line-through"},{tag:[tags$1.meta,tags$1.comment],color:"#6a9955"},{tag:tags$1.link,color:"#6a9955",textDecoration:"underline"},{tag:tags$1.invalid,color:"#ff0000"},...io]})}var vscodeDark=vscodeDarkInit();function _extends(){return _extends=Object.assign?Object.assign.bind():function(eo){for(var to=1;to=0)&&(no[so]=eo[so]);return no}const toggleComment=eo=>{let{state:to}=eo,no=to.doc.lineAt(to.selection.main.from),io=getConfig$1(eo.state,no.from);return io.line?toggleLineComment(eo):io.block?toggleBlockCommentByLine(eo):!1};function command(eo,to){return({state:no,dispatch:io})=>{if(no.readOnly)return!1;let so=eo(to,no);return so?(io(no.update(so)),!0):!1}}const toggleLineComment=command(changeLineComment,0),toggleBlockComment=command(changeBlockComment,0),toggleBlockCommentByLine=command((eo,to)=>changeBlockComment(eo,to,selectedLineRanges(to)),0);function getConfig$1(eo,to){let no=eo.languageDataAt("commentTokens",to);return no.length?no[0]:{}}const SearchMargin=50;function findBlockComment(eo,{open:to,close:no},io,so){let ao=eo.sliceDoc(io-SearchMargin,io),lo=eo.sliceDoc(so,so+SearchMargin),uo=/\s*$/.exec(ao)[0].length,ho=/^\s*/.exec(lo)[0].length,go=ao.length-uo;if(ao.slice(go-to.length,go)==to&&lo.slice(ho,ho+no.length)==no)return{open:{pos:io-uo,margin:uo&&1},close:{pos:so+ho,margin:ho&&1}};let mo,yo;so-io<=2*SearchMargin?mo=yo=eo.sliceDoc(io,so):(mo=eo.sliceDoc(io,io+SearchMargin),yo=eo.sliceDoc(so-SearchMargin,so));let So=/^\s*/.exec(mo)[0].length,_o=/\s*$/.exec(yo)[0].length,ko=yo.length-_o-no.length;return mo.slice(So,So+to.length)==to&&yo.slice(ko,ko+no.length)==no?{open:{pos:io+So+to.length,margin:/\s/.test(mo.charAt(So+to.length))?1:0},close:{pos:so-_o-no.length,margin:/\s/.test(yo.charAt(ko-1))?1:0}}:null}function selectedLineRanges(eo){let to=[];for(let no of eo.selection.ranges){let io=eo.doc.lineAt(no.from),so=no.to<=io.to?io:eo.doc.lineAt(no.to),ao=to.length-1;ao>=0&&to[ao].to>io.from?to[ao].to=so.to:to.push({from:io.from+/^\s*/.exec(io.text)[0].length,to:so.to})}return to}function changeBlockComment(eo,to,no=to.selection.ranges){let io=no.map(ao=>getConfig$1(to,ao.from).block);if(!io.every(ao=>ao))return null;let so=no.map((ao,lo)=>findBlockComment(to,io[lo],ao.from,ao.to));if(eo!=2&&!so.every(ao=>ao))return{changes:to.changes(no.map((ao,lo)=>so[lo]?[]:[{from:ao.from,insert:io[lo].open+" "},{from:ao.to,insert:" "+io[lo].close}]))};if(eo!=1&&so.some(ao=>ao)){let ao=[];for(let lo=0,uo;loso&&(ao==lo||lo>yo.from)){so=yo.from;let So=/^\s*/.exec(yo.text)[0].length,_o=So==yo.length,ko=yo.text.slice(So,So+go.length)==go?So:-1;Soao.comment<0&&(!ao.empty||ao.single))){let ao=[];for(let{line:uo,token:ho,indent:go,empty:mo,single:yo}of io)(yo||!mo)&&ao.push({from:uo.from+go,insert:ho+" "});let lo=to.changes(ao);return{changes:lo,selection:to.selection.map(lo,1)}}else if(eo!=1&&io.some(ao=>ao.comment>=0)){let ao=[];for(let{line:lo,comment:uo,token:ho}of io)if(uo>=0){let go=lo.from+uo,mo=go+ho.length;lo.text[mo-lo.from]==" "&&mo++,ao.push({from:go,to:mo})}return{changes:ao}}return null}const fromHistory=Annotation.define(),isolateHistory=Annotation.define(),invertedEffects=Facet.define(),historyConfig=Facet.define({combine(eo){return combineConfig(eo,{minDepth:100,newGroupDelay:500,joinToEvent:(to,no)=>no},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(to,no)=>(io,so)=>to(io,so)||no(io,so)})}}),historyField_=StateField.define({create(){return HistoryState.empty},update(eo,to){let no=to.state.facet(historyConfig),io=to.annotation(fromHistory);if(io){let ho=HistEvent.fromTransaction(to,io.selection),go=io.side,mo=go==0?eo.undone:eo.done;return ho?mo=updateBranch(mo,mo.length,no.minDepth,ho):mo=addSelection(mo,to.startState.selection),new HistoryState(go==0?io.rest:mo,go==0?mo:io.rest)}let so=to.annotation(isolateHistory);if((so=="full"||so=="before")&&(eo=eo.isolate()),to.annotation(Transaction.addToHistory)===!1)return to.changes.empty?eo:eo.addMapping(to.changes.desc);let ao=HistEvent.fromTransaction(to),lo=to.annotation(Transaction.time),uo=to.annotation(Transaction.userEvent);return ao?eo=eo.addChanges(ao,lo,uo,no,to):to.selection&&(eo=eo.addSelection(to.startState.selection,lo,uo,no.newGroupDelay)),(so=="full"||so=="after")&&(eo=eo.isolate()),eo},toJSON(eo){return{done:eo.done.map(to=>to.toJSON()),undone:eo.undone.map(to=>to.toJSON())}},fromJSON(eo){return new HistoryState(eo.done.map(HistEvent.fromJSON),eo.undone.map(HistEvent.fromJSON))}});function history(eo={}){return[historyField_,historyConfig.of(eo),EditorView.domEventHandlers({beforeinput(to,no){let io=to.inputType=="historyUndo"?undo$3:to.inputType=="historyRedo"?redo:null;return io?(to.preventDefault(),io(no)):!1}})]}function cmd(eo,to){return function({state:no,dispatch:io}){if(!to&&no.readOnly)return!1;let so=no.field(historyField_,!1);if(!so)return!1;let ao=so.pop(eo,no,to);return ao?(io(ao),!0):!1}}const undo$3=cmd(0,!1),redo=cmd(1,!1),undoSelection=cmd(0,!0),redoSelection=cmd(1,!0);class HistEvent{constructor(to,no,io,so,ao){this.changes=to,this.effects=no,this.mapped=io,this.startSelection=so,this.selectionsAfter=ao}setSelAfter(to){return new HistEvent(this.changes,this.effects,this.mapped,this.startSelection,to)}toJSON(){var to,no,io;return{changes:(to=this.changes)===null||to===void 0?void 0:to.toJSON(),mapped:(no=this.mapped)===null||no===void 0?void 0:no.toJSON(),startSelection:(io=this.startSelection)===null||io===void 0?void 0:io.toJSON(),selectionsAfter:this.selectionsAfter.map(so=>so.toJSON())}}static fromJSON(to){return new HistEvent(to.changes&&ChangeSet.fromJSON(to.changes),[],to.mapped&&ChangeDesc.fromJSON(to.mapped),to.startSelection&&EditorSelection.fromJSON(to.startSelection),to.selectionsAfter.map(EditorSelection.fromJSON))}static fromTransaction(to,no){let io=none;for(let so of to.startState.facet(invertedEffects)){let ao=so(to);ao.length&&(io=io.concat(ao))}return!io.length&&to.changes.empty?null:new HistEvent(to.changes.invert(to.startState.doc),io,void 0,no||to.startState.selection,none)}static selection(to){return new HistEvent(void 0,none,void 0,void 0,to)}}function updateBranch(eo,to,no,io){let so=to+1>no+20?to-no-1:0,ao=eo.slice(so,to);return ao.push(io),ao}function isAdjacent(eo,to){let no=[],io=!1;return eo.iterChangedRanges((so,ao)=>no.push(so,ao)),to.iterChangedRanges((so,ao,lo,uo)=>{for(let ho=0;ho=go&&lo<=mo&&(io=!0)}}),io}function eqSelectionShape(eo,to){return eo.ranges.length==to.ranges.length&&eo.ranges.filter((no,io)=>no.empty!=to.ranges[io].empty).length===0}function conc(eo,to){return eo.length?to.length?eo.concat(to):eo:to}const none=[],MaxSelectionsPerEvent=200;function addSelection(eo,to){if(eo.length){let no=eo[eo.length-1],io=no.selectionsAfter.slice(Math.max(0,no.selectionsAfter.length-MaxSelectionsPerEvent));return io.length&&io[io.length-1].eq(to)?eo:(io.push(to),updateBranch(eo,eo.length-1,1e9,no.setSelAfter(io)))}else return[HistEvent.selection([to])]}function popSelection(eo){let to=eo[eo.length-1],no=eo.slice();return no[eo.length-1]=to.setSelAfter(to.selectionsAfter.slice(0,to.selectionsAfter.length-1)),no}function addMappingToBranch(eo,to){if(!eo.length)return eo;let no=eo.length,io=none;for(;no;){let so=mapEvent(eo[no-1],to,io);if(so.changes&&!so.changes.empty||so.effects.length){let ao=eo.slice(0,no);return ao[no-1]=so,ao}else to=so.mapped,no--,io=so.selectionsAfter}return io.length?[HistEvent.selection(io)]:none}function mapEvent(eo,to,no){let io=conc(eo.selectionsAfter.length?eo.selectionsAfter.map(uo=>uo.map(to)):none,no);if(!eo.changes)return HistEvent.selection(io);let so=eo.changes.map(to),ao=to.mapDesc(eo.changes,!0),lo=eo.mapped?eo.mapped.composeDesc(ao):ao;return new HistEvent(so,StateEffect.mapEffects(eo.effects,to),lo,eo.startSelection.map(ao),io)}const joinableUserEvent=/^(input\.type|delete)($|\.)/;class HistoryState{constructor(to,no,io=0,so=void 0){this.done=to,this.undone=no,this.prevTime=io,this.prevUserEvent=so}isolate(){return this.prevTime?new HistoryState(this.done,this.undone):this}addChanges(to,no,io,so,ao){let lo=this.done,uo=lo[lo.length-1];return uo&&uo.changes&&!uo.changes.empty&&to.changes&&(!io||joinableUserEvent.test(io))&&(!uo.selectionsAfter.length&&no-this.prevTime0&&no-this.prevTimeno.empty?eo.moveByChar(no,to):rangeEnd(no,to))}function ltrAtCursor(eo){return eo.textDirectionAt(eo.state.selection.main.head)==Direction.LTR}const cursorCharLeft=eo=>cursorByChar(eo,!ltrAtCursor(eo)),cursorCharRight=eo=>cursorByChar(eo,ltrAtCursor(eo));function cursorByGroup(eo,to){return moveSel(eo,no=>no.empty?eo.moveByGroup(no,to):rangeEnd(no,to))}const cursorGroupLeft=eo=>cursorByGroup(eo,!ltrAtCursor(eo)),cursorGroupRight=eo=>cursorByGroup(eo,ltrAtCursor(eo));function interestingNode(eo,to,no){if(to.type.prop(no))return!0;let io=to.to-to.from;return io&&(io>2||/[^\s,.;:]/.test(eo.sliceDoc(to.from,to.to)))||to.firstChild}function moveBySyntax(eo,to,no){let io=syntaxTree(eo).resolveInner(to.head),so=no?NodeProp.closedBy:NodeProp.openedBy;for(let ho=to.head;;){let go=no?io.childAfter(ho):io.childBefore(ho);if(!go)break;interestingNode(eo,go,so)?io=go:ho=no?go.to:go.from}let ao=io.type.prop(so),lo,uo;return ao&&(lo=no?matchBrackets(eo,io.from,1):matchBrackets(eo,io.to,-1))&&lo.matched?uo=no?lo.end.to:lo.end.from:uo=no?io.to:io.from,EditorSelection.cursor(uo,no?-1:1)}const cursorSyntaxLeft=eo=>moveSel(eo,to=>moveBySyntax(eo.state,to,!ltrAtCursor(eo))),cursorSyntaxRight=eo=>moveSel(eo,to=>moveBySyntax(eo.state,to,ltrAtCursor(eo)));function cursorByLine(eo,to){return moveSel(eo,no=>{if(!no.empty)return rangeEnd(no,to);let io=eo.moveVertically(no,to);return io.head!=no.head?io:eo.moveToLineBoundary(no,to)})}const cursorLineUp=eo=>cursorByLine(eo,!1),cursorLineDown=eo=>cursorByLine(eo,!0);function pageInfo(eo){let to=eo.scrollDOM.clientHeightlo.empty?eo.moveVertically(lo,to,no.height):rangeEnd(lo,to));if(so.eq(io.selection))return!1;let ao;if(no.selfScroll){let lo=eo.coordsAtPos(io.selection.main.head),uo=eo.scrollDOM.getBoundingClientRect(),ho=uo.top+no.marginTop,go=uo.bottom-no.marginBottom;lo&&lo.top>ho&&lo.bottomcursorByPage(eo,!1),cursorPageDown=eo=>cursorByPage(eo,!0);function moveByLineBoundary(eo,to,no){let io=eo.lineBlockAt(to.head),so=eo.moveToLineBoundary(to,no);if(so.head==to.head&&so.head!=(no?io.to:io.from)&&(so=eo.moveToLineBoundary(to,no,!1)),!no&&so.head==io.from&&io.length){let ao=/^\s*/.exec(eo.state.sliceDoc(io.from,Math.min(io.from+100,io.to)))[0].length;ao&&to.head!=io.from+ao&&(so=EditorSelection.cursor(io.from+ao))}return so}const cursorLineBoundaryForward=eo=>moveSel(eo,to=>moveByLineBoundary(eo,to,!0)),cursorLineBoundaryBackward=eo=>moveSel(eo,to=>moveByLineBoundary(eo,to,!1)),cursorLineBoundaryLeft=eo=>moveSel(eo,to=>moveByLineBoundary(eo,to,!ltrAtCursor(eo))),cursorLineBoundaryRight=eo=>moveSel(eo,to=>moveByLineBoundary(eo,to,ltrAtCursor(eo))),cursorLineStart=eo=>moveSel(eo,to=>EditorSelection.cursor(eo.lineBlockAt(to.head).from,1)),cursorLineEnd=eo=>moveSel(eo,to=>EditorSelection.cursor(eo.lineBlockAt(to.head).to,-1));function toMatchingBracket(eo,to,no){let io=!1,so=updateSel(eo.selection,ao=>{let lo=matchBrackets(eo,ao.head,-1)||matchBrackets(eo,ao.head,1)||ao.head>0&&matchBrackets(eo,ao.head-1,1)||ao.headtoMatchingBracket(eo,to,!1);function extendSel(eo,to){let no=updateSel(eo.state.selection,io=>{let so=to(io);return EditorSelection.range(io.anchor,so.head,so.goalColumn,so.bidiLevel||void 0)});return no.eq(eo.state.selection)?!1:(eo.dispatch(setSel(eo.state,no)),!0)}function selectByChar(eo,to){return extendSel(eo,no=>eo.moveByChar(no,to))}const selectCharLeft=eo=>selectByChar(eo,!ltrAtCursor(eo)),selectCharRight=eo=>selectByChar(eo,ltrAtCursor(eo));function selectByGroup(eo,to){return extendSel(eo,no=>eo.moveByGroup(no,to))}const selectGroupLeft=eo=>selectByGroup(eo,!ltrAtCursor(eo)),selectGroupRight=eo=>selectByGroup(eo,ltrAtCursor(eo)),selectSyntaxLeft=eo=>extendSel(eo,to=>moveBySyntax(eo.state,to,!ltrAtCursor(eo))),selectSyntaxRight=eo=>extendSel(eo,to=>moveBySyntax(eo.state,to,ltrAtCursor(eo)));function selectByLine(eo,to){return extendSel(eo,no=>eo.moveVertically(no,to))}const selectLineUp=eo=>selectByLine(eo,!1),selectLineDown=eo=>selectByLine(eo,!0);function selectByPage(eo,to){return extendSel(eo,no=>eo.moveVertically(no,to,pageInfo(eo).height))}const selectPageUp=eo=>selectByPage(eo,!1),selectPageDown=eo=>selectByPage(eo,!0),selectLineBoundaryForward=eo=>extendSel(eo,to=>moveByLineBoundary(eo,to,!0)),selectLineBoundaryBackward=eo=>extendSel(eo,to=>moveByLineBoundary(eo,to,!1)),selectLineBoundaryLeft=eo=>extendSel(eo,to=>moveByLineBoundary(eo,to,!ltrAtCursor(eo))),selectLineBoundaryRight=eo=>extendSel(eo,to=>moveByLineBoundary(eo,to,ltrAtCursor(eo))),selectLineStart=eo=>extendSel(eo,to=>EditorSelection.cursor(eo.lineBlockAt(to.head).from)),selectLineEnd=eo=>extendSel(eo,to=>EditorSelection.cursor(eo.lineBlockAt(to.head).to)),cursorDocStart=({state:eo,dispatch:to})=>(to(setSel(eo,{anchor:0})),!0),cursorDocEnd=({state:eo,dispatch:to})=>(to(setSel(eo,{anchor:eo.doc.length})),!0),selectDocStart=({state:eo,dispatch:to})=>(to(setSel(eo,{anchor:eo.selection.main.anchor,head:0})),!0),selectDocEnd=({state:eo,dispatch:to})=>(to(setSel(eo,{anchor:eo.selection.main.anchor,head:eo.doc.length})),!0),selectAll=({state:eo,dispatch:to})=>(to(eo.update({selection:{anchor:0,head:eo.doc.length},userEvent:"select"})),!0),selectLine=({state:eo,dispatch:to})=>{let no=selectedLineBlocks(eo).map(({from:io,to:so})=>EditorSelection.range(io,Math.min(so+1,eo.doc.length)));return to(eo.update({selection:EditorSelection.create(no),userEvent:"select"})),!0},selectParentSyntax=({state:eo,dispatch:to})=>{let no=updateSel(eo.selection,io=>{var so;let ao=syntaxTree(eo).resolveStack(io.from,1);for(let lo=ao;lo;lo=lo.next){let{node:uo}=lo;if((uo.from=io.to||uo.to>io.to&&uo.from<=io.from)&&(!((so=uo.parent)===null||so===void 0)&&so.parent))return EditorSelection.range(uo.to,uo.from)}return io});return to(setSel(eo,no)),!0},simplifySelection=({state:eo,dispatch:to})=>{let no=eo.selection,io=null;return no.ranges.length>1?io=EditorSelection.create([no.main]):no.main.empty||(io=EditorSelection.create([EditorSelection.cursor(no.main.head)])),io?(to(setSel(eo,io)),!0):!1};function deleteBy(eo,to){if(eo.state.readOnly)return!1;let no="delete.selection",{state:io}=eo,so=io.changeByRange(ao=>{let{from:lo,to:uo}=ao;if(lo==uo){let ho=to(ao);holo&&(no="delete.forward",ho=skipAtomic(eo,ho,!0)),lo=Math.min(lo,ho),uo=Math.max(uo,ho)}else lo=skipAtomic(eo,lo,!1),uo=skipAtomic(eo,uo,!0);return lo==uo?{range:ao}:{changes:{from:lo,to:uo},range:EditorSelection.cursor(lo,loso(eo)))io.between(to,to,(so,ao)=>{soto&&(to=no?ao:so)});return to}const deleteByChar=(eo,to)=>deleteBy(eo,no=>{let io=no.from,{state:so}=eo,ao=so.doc.lineAt(io),lo,uo;if(!to&&io>ao.from&&iodeleteByChar(eo,!1),deleteCharForward=eo=>deleteByChar(eo,!0),deleteByGroup=(eo,to)=>deleteBy(eo,no=>{let io=no.head,{state:so}=eo,ao=so.doc.lineAt(io),lo=so.charCategorizer(io);for(let uo=null;;){if(io==(to?ao.to:ao.from)){io==no.head&&ao.number!=(to?so.doc.lines:1)&&(io+=to?1:-1);break}let ho=findClusterBreak(ao.text,io-ao.from,to)+ao.from,go=ao.text.slice(Math.min(io,ho)-ao.from,Math.max(io,ho)-ao.from),mo=lo(go);if(uo!=null&&mo!=uo)break;(go!=" "||io!=no.head)&&(uo=mo),io=ho}return io}),deleteGroupBackward=eo=>deleteByGroup(eo,!1),deleteGroupForward=eo=>deleteByGroup(eo,!0),deleteToLineEnd=eo=>deleteBy(eo,to=>{let no=eo.lineBlockAt(to.head).to;return to.headdeleteBy(eo,to=>{let no=eo.moveToLineBoundary(to,!1).head;return to.head>no?no:Math.max(0,to.head-1)}),deleteLineBoundaryForward=eo=>deleteBy(eo,to=>{let no=eo.moveToLineBoundary(to,!0).head;return to.head{if(eo.readOnly)return!1;let no=eo.changeByRange(io=>({changes:{from:io.from,to:io.to,insert:Text$1.of(["",""])},range:EditorSelection.cursor(io.from)}));return to(eo.update(no,{scrollIntoView:!0,userEvent:"input"})),!0},transposeChars=({state:eo,dispatch:to})=>{if(eo.readOnly)return!1;let no=eo.changeByRange(io=>{if(!io.empty||io.from==0||io.from==eo.doc.length)return{range:io};let so=io.from,ao=eo.doc.lineAt(so),lo=so==ao.from?so-1:findClusterBreak(ao.text,so-ao.from,!1)+ao.from,uo=so==ao.to?so+1:findClusterBreak(ao.text,so-ao.from,!0)+ao.from;return{changes:{from:lo,to:uo,insert:eo.doc.slice(so,uo).append(eo.doc.slice(lo,so))},range:EditorSelection.cursor(uo)}});return no.changes.empty?!1:(to(eo.update(no,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function selectedLineBlocks(eo){let to=[],no=-1;for(let io of eo.selection.ranges){let so=eo.doc.lineAt(io.from),ao=eo.doc.lineAt(io.to);if(!io.empty&&io.to==ao.from&&(ao=eo.doc.lineAt(io.to-1)),no>=so.number){let lo=to[to.length-1];lo.to=ao.to,lo.ranges.push(io)}else to.push({from:so.from,to:ao.to,ranges:[io]});no=ao.number+1}return to}function moveLine(eo,to,no){if(eo.readOnly)return!1;let io=[],so=[];for(let ao of selectedLineBlocks(eo)){if(no?ao.to==eo.doc.length:ao.from==0)continue;let lo=eo.doc.lineAt(no?ao.to+1:ao.from-1),uo=lo.length+1;if(no){io.push({from:ao.to,to:lo.to},{from:ao.from,insert:lo.text+eo.lineBreak});for(let ho of ao.ranges)so.push(EditorSelection.range(Math.min(eo.doc.length,ho.anchor+uo),Math.min(eo.doc.length,ho.head+uo)))}else{io.push({from:lo.from,to:ao.from},{from:ao.to,insert:eo.lineBreak+lo.text});for(let ho of ao.ranges)so.push(EditorSelection.range(ho.anchor-uo,ho.head-uo))}}return io.length?(to(eo.update({changes:io,scrollIntoView:!0,selection:EditorSelection.create(so,eo.selection.mainIndex),userEvent:"move.line"})),!0):!1}const moveLineUp=({state:eo,dispatch:to})=>moveLine(eo,to,!1),moveLineDown=({state:eo,dispatch:to})=>moveLine(eo,to,!0);function copyLine(eo,to,no){if(eo.readOnly)return!1;let io=[];for(let so of selectedLineBlocks(eo))no?io.push({from:so.from,insert:eo.doc.slice(so.from,so.to)+eo.lineBreak}):io.push({from:so.to,insert:eo.lineBreak+eo.doc.slice(so.from,so.to)});return to(eo.update({changes:io,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const copyLineUp=({state:eo,dispatch:to})=>copyLine(eo,to,!1),copyLineDown=({state:eo,dispatch:to})=>copyLine(eo,to,!0),deleteLine=eo=>{if(eo.state.readOnly)return!1;let{state:to}=eo,no=to.changes(selectedLineBlocks(to).map(({from:so,to:ao})=>(so>0?so--:aoeo.moveVertically(so,!0)).map(no);return eo.dispatch({changes:no,selection:io,scrollIntoView:!0,userEvent:"delete.line"}),!0};function isBetweenBrackets(eo,to){if(/\(\)|\[\]|\{\}/.test(eo.sliceDoc(to-1,to+1)))return{from:to,to};let no=syntaxTree(eo).resolveInner(to),io=no.childBefore(to),so=no.childAfter(to),ao;return io&&so&&io.to<=to&&so.from>=to&&(ao=io.type.prop(NodeProp.closedBy))&&ao.indexOf(so.name)>-1&&eo.doc.lineAt(io.to).from==eo.doc.lineAt(so.from).from&&!/\S/.test(eo.sliceDoc(io.to,so.from))?{from:io.to,to:so.from}:null}const insertNewlineAndIndent=newlineAndIndent(!1),insertBlankLine=newlineAndIndent(!0);function newlineAndIndent(eo){return({state:to,dispatch:no})=>{if(to.readOnly)return!1;let io=to.changeByRange(so=>{let{from:ao,to:lo}=so,uo=to.doc.lineAt(ao),ho=!eo&&ao==lo&&isBetweenBrackets(to,ao);eo&&(ao=lo=(lo<=uo.to?uo:to.doc.lineAt(lo)).to);let go=new IndentContext(to,{simulateBreak:ao,simulateDoubleBreak:!!ho}),mo=getIndentation(go,ao);for(mo==null&&(mo=countColumn(/^\s*/.exec(to.doc.lineAt(ao).text)[0],to.tabSize));louo.from&&ao{let so=[];for(let lo=io.from;lo<=io.to;){let uo=eo.doc.lineAt(lo);uo.number>no&&(io.empty||io.to>uo.from)&&(to(uo,so,io),no=uo.number),lo=uo.to+1}let ao=eo.changes(so);return{changes:so,range:EditorSelection.range(ao.mapPos(io.anchor,1),ao.mapPos(io.head,1))}})}const indentSelection=({state:eo,dispatch:to})=>{if(eo.readOnly)return!1;let no=Object.create(null),io=new IndentContext(eo,{overrideIndentation:ao=>{let lo=no[ao];return lo??-1}}),so=changeBySelectedLine(eo,(ao,lo,uo)=>{let ho=getIndentation(io,ao.from);if(ho==null)return;/\S/.test(ao.text)||(ho=0);let go=/^\s*/.exec(ao.text)[0],mo=indentString(eo,ho);(go!=mo||uo.fromeo.readOnly?!1:(to(eo.update(changeBySelectedLine(eo,(no,io)=>{io.push({from:no.from,insert:eo.facet(indentUnit)})}),{userEvent:"input.indent"})),!0),indentLess=({state:eo,dispatch:to})=>eo.readOnly?!1:(to(eo.update(changeBySelectedLine(eo,(no,io)=>{let so=/^\s*/.exec(no.text)[0];if(!so)return;let ao=countColumn(so,eo.tabSize),lo=0,uo=indentString(eo,Math.max(0,ao-getIndentUnit(eo)));for(;lo({mac:eo.key,run:eo.run,shift:eo.shift}))),defaultKeymap=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:cursorSyntaxLeft,shift:selectSyntaxLeft},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:cursorSyntaxRight,shift:selectSyntaxRight},{key:"Alt-ArrowUp",run:moveLineUp},{key:"Shift-Alt-ArrowUp",run:copyLineUp},{key:"Alt-ArrowDown",run:moveLineDown},{key:"Shift-Alt-ArrowDown",run:copyLineDown},{key:"Escape",run:simplifySelection},{key:"Mod-Enter",run:insertBlankLine},{key:"Alt-l",mac:"Ctrl-l",run:selectLine},{key:"Mod-i",run:selectParentSyntax,preventDefault:!0},{key:"Mod-[",run:indentLess},{key:"Mod-]",run:indentMore},{key:"Mod-Alt-\\",run:indentSelection},{key:"Shift-Mod-k",run:deleteLine},{key:"Shift-Mod-\\",run:cursorMatchingBracket},{key:"Mod-/",run:toggleComment},{key:"Alt-A",run:toggleBlockComment}].concat(standardKeymap),indentWithTab={key:"Tab",run:indentMore,shift:indentLess};function crelt(){var eo=arguments[0];typeof eo=="string"&&(eo=document.createElement(eo));var to=1,no=arguments[1];if(no&&typeof no=="object"&&no.nodeType==null&&!Array.isArray(no)){for(var io in no)if(Object.prototype.hasOwnProperty.call(no,io)){var so=no[io];typeof so=="string"?eo.setAttribute(io,so):so!=null&&(eo[io]=so)}to++}for(;toeo.normalize("NFKD"):eo=>eo;class SearchCursor{constructor(to,no,io=0,so=to.length,ao,lo){this.test=lo,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=to.iterRange(io,so),this.bufferStart=io,this.normalize=ao?uo=>ao(basicNormalize(uo)):basicNormalize,this.query=this.normalize(no)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return codePointAt(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let to=this.peek();if(to<0)return this.done=!0,this;let no=fromCodePoint(to),io=this.bufferStart+this.bufferPos;this.bufferPos+=codePointSize(to);let so=this.normalize(no);for(let ao=0,lo=io;;ao++){let uo=so.charCodeAt(ao),ho=this.match(uo,lo,this.bufferPos+this.bufferStart);if(ao==so.length-1){if(ho)return this.value=ho,this;break}lo==io&&aothis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let to=this.matchPos-this.curLineStart;;){this.re.lastIndex=to;let no=this.matchPos<=this.to&&this.re.exec(this.curLine);if(no){let io=this.curLineStart+no.index,so=io+no[0].length;if(this.matchPos=toCharEnd(this.text,so+(io==so?1:0)),io==this.curLineStart+this.curLine.length&&this.nextLine(),(iothis.value.to)&&(!this.test||this.test(io,so,no)))return this.value={from:io,to:so,match:no},this;to=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=io||so.to<=no){let uo=new FlattenedDoc(no,to.sliceString(no,io));return flattened.set(to,uo),uo}if(so.from==no&&so.to==io)return so;let{text:ao,from:lo}=so;return lo>no&&(ao=to.sliceString(no,lo)+ao,lo=no),so.to=this.to?this.to:this.text.lineAt(to).to}next(){for(;;){let to=this.re.lastIndex=this.matchPos-this.flat.from,no=this.re.exec(this.flat.text);if(no&&!no[0]&&no.index==to&&(this.re.lastIndex=to+1,no=this.re.exec(this.flat.text)),no){let io=this.flat.from+no.index,so=io+no[0].length;if((this.flat.to>=this.to||no.index+no[0].length<=this.flat.text.length-10)&&(!this.test||this.test(io,so,no)))return this.value={from:io,to:so,match:no},this.matchPos=toCharEnd(this.text,so+(io==so?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=FlattenedDoc.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(RegExpCursor.prototype[Symbol.iterator]=MultilineRegExpCursor.prototype[Symbol.iterator]=function(){return this});function validRegExp(eo){try{return new RegExp(eo,baseFlags),!0}catch{return!1}}function toCharEnd(eo,to){if(to>=eo.length)return to;let no=eo.lineAt(to),io;for(;to=56320&&io<57344;)to++;return to}function createLineDialog(eo){let to=String(eo.state.doc.lineAt(eo.state.selection.main.head).number),no=crelt("input",{class:"cm-textfield",name:"line",value:to}),io=crelt("form",{class:"cm-gotoLine",onkeydown:ao=>{ao.keyCode==27?(ao.preventDefault(),eo.dispatch({effects:dialogEffect.of(!1)}),eo.focus()):ao.keyCode==13&&(ao.preventDefault(),so())},onsubmit:ao=>{ao.preventDefault(),so()}},crelt("label",eo.state.phrase("Go to line"),": ",no)," ",crelt("button",{class:"cm-button",type:"submit"},eo.state.phrase("go")));function so(){let ao=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(no.value);if(!ao)return;let{state:lo}=eo,uo=lo.doc.lineAt(lo.selection.main.head),[,ho,go,mo,yo]=ao,So=mo?+mo.slice(1):0,_o=go?+go:uo.number;if(go&&yo){let $o=_o/100;ho&&($o=$o*(ho=="-"?-1:1)+uo.number/lo.doc.lines),_o=Math.round(lo.doc.lines*$o)}else go&&ho&&(_o=_o*(ho=="-"?-1:1)+uo.number);let ko=lo.doc.line(Math.max(1,Math.min(lo.doc.lines,_o))),Co=EditorSelection.cursor(ko.from+Math.max(0,Math.min(So,ko.length)));eo.dispatch({effects:[dialogEffect.of(!1),EditorView.scrollIntoView(Co.from,{y:"center"})],selection:Co}),eo.focus()}return{dom:io}}const dialogEffect=StateEffect.define(),dialogField=StateField.define({create(){return!0},update(eo,to){for(let no of to.effects)no.is(dialogEffect)&&(eo=no.value);return eo},provide:eo=>showPanel.from(eo,to=>to?createLineDialog:null)}),gotoLine=eo=>{let to=getPanel(eo,createLineDialog);if(!to){let no=[dialogEffect.of(!0)];eo.state.field(dialogField,!1)==null&&no.push(StateEffect.appendConfig.of([dialogField,baseTheme$1])),eo.dispatch({effects:no}),to=getPanel(eo,createLineDialog)}return to&&to.dom.querySelector("input").select(),!0},baseTheme$1=EditorView.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),defaultHighlightOptions={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},highlightConfig=Facet.define({combine(eo){return combineConfig(eo,defaultHighlightOptions,{highlightWordAroundCursor:(to,no)=>to||no,minSelectionLength:Math.min,maxMatches:Math.min})}});function highlightSelectionMatches(eo){let to=[defaultTheme,matchHighlighter];return eo&&to.push(highlightConfig.of(eo)),to}const matchDeco=Decoration.mark({class:"cm-selectionMatch"}),mainMatchDeco=Decoration.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function insideWordBoundaries(eo,to,no,io){return(no==0||eo(to.sliceDoc(no-1,no))!=CharCategory.Word)&&(io==to.doc.length||eo(to.sliceDoc(io,io+1))!=CharCategory.Word)}function insideWord(eo,to,no,io){return eo(to.sliceDoc(no,no+1))==CharCategory.Word&&eo(to.sliceDoc(io-1,io))==CharCategory.Word}const matchHighlighter=ViewPlugin.fromClass(class{constructor(eo){this.decorations=this.getDeco(eo)}update(eo){(eo.selectionSet||eo.docChanged||eo.viewportChanged)&&(this.decorations=this.getDeco(eo.view))}getDeco(eo){let to=eo.state.facet(highlightConfig),{state:no}=eo,io=no.selection;if(io.ranges.length>1)return Decoration.none;let so=io.main,ao,lo=null;if(so.empty){if(!to.highlightWordAroundCursor)return Decoration.none;let ho=no.wordAt(so.head);if(!ho)return Decoration.none;lo=no.charCategorizer(so.head),ao=no.sliceDoc(ho.from,ho.to)}else{let ho=so.to-so.from;if(ho200)return Decoration.none;if(to.wholeWords){if(ao=no.sliceDoc(so.from,so.to),lo=no.charCategorizer(so.head),!(insideWordBoundaries(lo,no,so.from,so.to)&&insideWord(lo,no,so.from,so.to)))return Decoration.none}else if(ao=no.sliceDoc(so.from,so.to),!ao)return Decoration.none}let uo=[];for(let ho of eo.visibleRanges){let go=new SearchCursor(no.doc,ao,ho.from,ho.to);for(;!go.next().done;){let{from:mo,to:yo}=go.value;if((!lo||insideWordBoundaries(lo,no,mo,yo))&&(so.empty&&mo<=so.from&&yo>=so.to?uo.push(mainMatchDeco.range(mo,yo)):(mo>=so.to||yo<=so.from)&&uo.push(matchDeco.range(mo,yo)),uo.length>to.maxMatches))return Decoration.none}}return Decoration.set(uo)}},{decorations:eo=>eo.decorations}),defaultTheme=EditorView.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),selectWord=({state:eo,dispatch:to})=>{let{selection:no}=eo,io=EditorSelection.create(no.ranges.map(so=>eo.wordAt(so.head)||EditorSelection.cursor(so.head)),no.mainIndex);return io.eq(no)?!1:(to(eo.update({selection:io})),!0)};function findNextOccurrence(eo,to){let{main:no,ranges:io}=eo.selection,so=eo.wordAt(no.head),ao=so&&so.from==no.from&&so.to==no.to;for(let lo=!1,uo=new SearchCursor(eo.doc,to,io[io.length-1].to);;)if(uo.next(),uo.done){if(lo)return null;uo=new SearchCursor(eo.doc,to,0,Math.max(0,io[io.length-1].from-1)),lo=!0}else{if(lo&&io.some(ho=>ho.from==uo.value.from))continue;if(ao){let ho=eo.wordAt(uo.value.from);if(!ho||ho.from!=uo.value.from||ho.to!=uo.value.to)continue}return uo.value}}const selectNextOccurrence=({state:eo,dispatch:to})=>{let{ranges:no}=eo.selection;if(no.some(ao=>ao.from===ao.to))return selectWord({state:eo,dispatch:to});let io=eo.sliceDoc(no[0].from,no[0].to);if(eo.selection.ranges.some(ao=>eo.sliceDoc(ao.from,ao.to)!=io))return!1;let so=findNextOccurrence(eo,io);return so?(to(eo.update({selection:eo.selection.addRange(EditorSelection.range(so.from,so.to),!1),effects:EditorView.scrollIntoView(so.to)})),!0):!1},searchConfigFacet=Facet.define({combine(eo){return combineConfig(eo,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:to=>new SearchPanel(to),scrollToMatch:to=>EditorView.scrollIntoView(to)})}});class SearchQuery{constructor(to){this.search=to.search,this.caseSensitive=!!to.caseSensitive,this.literal=!!to.literal,this.regexp=!!to.regexp,this.replace=to.replace||"",this.valid=!!this.search&&(!this.regexp||validRegExp(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!to.wholeWord}unquote(to){return this.literal?to:to.replace(/\\([nrt\\])/g,(no,io)=>io=="n"?` -`:io=="r"?"\r":io=="t"?" ":"\\")}eq(to){return this.search==to.search&&this.replace==to.replace&&this.caseSensitive==to.caseSensitive&&this.regexp==to.regexp&&this.wholeWord==to.wholeWord}create(){return this.regexp?new RegExpQuery(this):new StringQuery(this)}getCursor(to,no=0,io){let so=to.doc?to:EditorState.create({doc:to});return io==null&&(io=so.doc.length),this.regexp?regexpCursor(this,so,no,io):stringCursor(this,so,no,io)}}class QueryType{constructor(to){this.spec=to}}function stringCursor(eo,to,no,io){return new SearchCursor(to.doc,eo.unquoted,no,io,eo.caseSensitive?void 0:so=>so.toLowerCase(),eo.wholeWord?stringWordTest(to.doc,to.charCategorizer(to.selection.main.head)):void 0)}function stringWordTest(eo,to){return(no,io,so,ao)=>((ao>no||ao+so.length=no)return null;so.push(io.value)}return so}highlight(to,no,io,so){let ao=stringCursor(this.spec,to,Math.max(0,no-this.spec.unquoted.length),Math.min(io+this.spec.unquoted.length,to.doc.length));for(;!ao.next().done;)so(ao.value.from,ao.value.to)}}function regexpCursor(eo,to,no,io){return new RegExpCursor(to.doc,eo.search,{ignoreCase:!eo.caseSensitive,test:eo.wholeWord?regexpWordTest(to.charCategorizer(to.selection.main.head)):void 0},no,io)}function charBefore(eo,to){return eo.slice(findClusterBreak(eo,to,!1),to)}function charAfter(eo,to){return eo.slice(to,findClusterBreak(eo,to))}function regexpWordTest(eo){return(to,no,io)=>!io[0].length||(eo(charBefore(io.input,io.index))!=CharCategory.Word||eo(charAfter(io.input,io.index))!=CharCategory.Word)&&(eo(charAfter(io.input,io.index+io[0].length))!=CharCategory.Word||eo(charBefore(io.input,io.index+io[0].length))!=CharCategory.Word)}class RegExpQuery extends QueryType{nextMatch(to,no,io){let so=regexpCursor(this.spec,to,io,to.doc.length).next();return so.done&&(so=regexpCursor(this.spec,to,0,no).next()),so.done?null:so.value}prevMatchInRange(to,no,io){for(let so=1;;so++){let ao=Math.max(no,io-so*1e4),lo=regexpCursor(this.spec,to,ao,io),uo=null;for(;!lo.next().done;)uo=lo.value;if(uo&&(ao==no||uo.from>ao+10))return uo;if(ao==no)return null}}prevMatch(to,no,io){return this.prevMatchInRange(to,0,no)||this.prevMatchInRange(to,io,to.doc.length)}getReplacement(to){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(no,io)=>io=="$"?"$":io=="&"?to.match[0]:io!="0"&&+io=no)return null;so.push(io.value)}return so}highlight(to,no,io,so){let ao=regexpCursor(this.spec,to,Math.max(0,no-250),Math.min(io+250,to.doc.length));for(;!ao.next().done;)so(ao.value.from,ao.value.to)}}const setSearchQuery=StateEffect.define(),togglePanel$1=StateEffect.define(),searchState=StateField.define({create(eo){return new SearchState(defaultQuery(eo).create(),null)},update(eo,to){for(let no of to.effects)no.is(setSearchQuery)?eo=new SearchState(no.value.create(),eo.panel):no.is(togglePanel$1)&&(eo=new SearchState(eo.query,no.value?createSearchPanel:null));return eo},provide:eo=>showPanel.from(eo,to=>to.panel)});class SearchState{constructor(to,no){this.query=to,this.panel=no}}const matchMark=Decoration.mark({class:"cm-searchMatch"}),selectedMatchMark=Decoration.mark({class:"cm-searchMatch cm-searchMatch-selected"}),searchHighlighter=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.decorations=this.highlight(eo.state.field(searchState))}update(eo){let to=eo.state.field(searchState);(to!=eo.startState.field(searchState)||eo.docChanged||eo.selectionSet||eo.viewportChanged)&&(this.decorations=this.highlight(to))}highlight({query:eo,panel:to}){if(!to||!eo.spec.valid)return Decoration.none;let{view:no}=this,io=new RangeSetBuilder;for(let so=0,ao=no.visibleRanges,lo=ao.length;soao[so+1].from-2*250;)ho=ao[++so].to;eo.highlight(no.state,uo,ho,(go,mo)=>{let yo=no.state.selection.ranges.some(So=>So.from==go&&So.to==mo);io.add(go,mo,yo?selectedMatchMark:matchMark)})}return io.finish()}},{decorations:eo=>eo.decorations});function searchCommand(eo){return to=>{let no=to.state.field(searchState,!1);return no&&no.query.spec.valid?eo(to,no):openSearchPanel(to)}}const findNext=searchCommand((eo,{query:to})=>{let{to:no}=eo.state.selection.main,io=to.nextMatch(eo.state,no,no);if(!io)return!1;let so=EditorSelection.single(io.from,io.to),ao=eo.state.facet(searchConfigFacet);return eo.dispatch({selection:so,effects:[announceMatch(eo,io),ao.scrollToMatch(so.main,eo)],userEvent:"select.search"}),selectSearchInput(eo),!0}),findPrevious=searchCommand((eo,{query:to})=>{let{state:no}=eo,{from:io}=no.selection.main,so=to.prevMatch(no,io,io);if(!so)return!1;let ao=EditorSelection.single(so.from,so.to),lo=eo.state.facet(searchConfigFacet);return eo.dispatch({selection:ao,effects:[announceMatch(eo,so),lo.scrollToMatch(ao.main,eo)],userEvent:"select.search"}),selectSearchInput(eo),!0}),selectMatches=searchCommand((eo,{query:to})=>{let no=to.matchAll(eo.state,1e3);return!no||!no.length?!1:(eo.dispatch({selection:EditorSelection.create(no.map(io=>EditorSelection.range(io.from,io.to))),userEvent:"select.search.matches"}),!0)}),selectSelectionMatches=({state:eo,dispatch:to})=>{let no=eo.selection;if(no.ranges.length>1||no.main.empty)return!1;let{from:io,to:so}=no.main,ao=[],lo=0;for(let uo=new SearchCursor(eo.doc,eo.sliceDoc(io,so));!uo.next().done;){if(ao.length>1e3)return!1;uo.value.from==io&&(lo=ao.length),ao.push(EditorSelection.range(uo.value.from,uo.value.to))}return to(eo.update({selection:EditorSelection.create(ao,lo),userEvent:"select.search.matches"})),!0},replaceNext=searchCommand((eo,{query:to})=>{let{state:no}=eo,{from:io,to:so}=no.selection.main;if(no.readOnly)return!1;let ao=to.nextMatch(no,io,io);if(!ao)return!1;let lo=[],uo,ho,go=[];if(ao.from==io&&ao.to==so&&(ho=no.toText(to.getReplacement(ao)),lo.push({from:ao.from,to:ao.to,insert:ho}),ao=to.nextMatch(no,ao.from,ao.to),go.push(EditorView.announce.of(no.phrase("replaced match on line $",no.doc.lineAt(io).number)+"."))),ao){let mo=lo.length==0||lo[0].from>=ao.to?0:ao.to-ao.from-ho.length;uo=EditorSelection.single(ao.from-mo,ao.to-mo),go.push(announceMatch(eo,ao)),go.push(no.facet(searchConfigFacet).scrollToMatch(uo.main,eo))}return eo.dispatch({changes:lo,selection:uo,effects:go,userEvent:"input.replace"}),!0}),replaceAll=searchCommand((eo,{query:to})=>{if(eo.state.readOnly)return!1;let no=to.matchAll(eo.state,1e9).map(so=>{let{from:ao,to:lo}=so;return{from:ao,to:lo,insert:to.getReplacement(so)}});if(!no.length)return!1;let io=eo.state.phrase("replaced $ matches",no.length)+".";return eo.dispatch({changes:no,effects:EditorView.announce.of(io),userEvent:"input.replace.all"}),!0});function createSearchPanel(eo){return eo.state.facet(searchConfigFacet).createPanel(eo)}function defaultQuery(eo,to){var no,io,so,ao,lo;let uo=eo.selection.main,ho=uo.empty||uo.to>uo.from+100?"":eo.sliceDoc(uo.from,uo.to);if(to&&!ho)return to;let go=eo.facet(searchConfigFacet);return new SearchQuery({search:((no=to==null?void 0:to.literal)!==null&&no!==void 0?no:go.literal)?ho:ho.replace(/\n/g,"\\n"),caseSensitive:(io=to==null?void 0:to.caseSensitive)!==null&&io!==void 0?io:go.caseSensitive,literal:(so=to==null?void 0:to.literal)!==null&&so!==void 0?so:go.literal,regexp:(ao=to==null?void 0:to.regexp)!==null&&ao!==void 0?ao:go.regexp,wholeWord:(lo=to==null?void 0:to.wholeWord)!==null&&lo!==void 0?lo:go.wholeWord})}function getSearchInput(eo){let to=getPanel(eo,createSearchPanel);return to&&to.dom.querySelector("[main-field]")}function selectSearchInput(eo){let to=getSearchInput(eo);to&&to==eo.root.activeElement&&to.select()}const openSearchPanel=eo=>{let to=eo.state.field(searchState,!1);if(to&&to.panel){let no=getSearchInput(eo);if(no&&no!=eo.root.activeElement){let io=defaultQuery(eo.state,to.query.spec);io.valid&&eo.dispatch({effects:setSearchQuery.of(io)}),no.focus(),no.select()}}else eo.dispatch({effects:[togglePanel$1.of(!0),to?setSearchQuery.of(defaultQuery(eo.state,to.query.spec)):StateEffect.appendConfig.of(searchExtensions)]});return!0},closeSearchPanel=eo=>{let to=eo.state.field(searchState,!1);if(!to||!to.panel)return!1;let no=getPanel(eo,createSearchPanel);return no&&no.dom.contains(eo.root.activeElement)&&eo.focus(),eo.dispatch({effects:togglePanel$1.of(!1)}),!0},searchKeymap=[{key:"Mod-f",run:openSearchPanel,scope:"editor search-panel"},{key:"F3",run:findNext,shift:findPrevious,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:findNext,shift:findPrevious,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:closeSearchPanel,scope:"editor search-panel"},{key:"Mod-Shift-l",run:selectSelectionMatches},{key:"Mod-Alt-g",run:gotoLine},{key:"Mod-d",run:selectNextOccurrence,preventDefault:!0}];class SearchPanel{constructor(to){this.view=to;let no=this.query=to.state.field(searchState).query.spec;this.commit=this.commit.bind(this),this.searchField=crelt("input",{value:no.search,placeholder:phrase(to,"Find"),"aria-label":phrase(to,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=crelt("input",{value:no.replace,placeholder:phrase(to,"Replace"),"aria-label":phrase(to,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=crelt("input",{type:"checkbox",name:"case",form:"",checked:no.caseSensitive,onchange:this.commit}),this.reField=crelt("input",{type:"checkbox",name:"re",form:"",checked:no.regexp,onchange:this.commit}),this.wordField=crelt("input",{type:"checkbox",name:"word",form:"",checked:no.wholeWord,onchange:this.commit});function io(so,ao,lo){return crelt("button",{class:"cm-button",name:so,onclick:ao,type:"button"},lo)}this.dom=crelt("div",{onkeydown:so=>this.keydown(so),class:"cm-search"},[this.searchField,io("next",()=>findNext(to),[phrase(to,"next")]),io("prev",()=>findPrevious(to),[phrase(to,"previous")]),io("select",()=>selectMatches(to),[phrase(to,"all")]),crelt("label",null,[this.caseField,phrase(to,"match case")]),crelt("label",null,[this.reField,phrase(to,"regexp")]),crelt("label",null,[this.wordField,phrase(to,"by word")]),...to.state.readOnly?[]:[crelt("br"),this.replaceField,io("replace",()=>replaceNext(to),[phrase(to,"replace")]),io("replaceAll",()=>replaceAll(to),[phrase(to,"replace all")])],crelt("button",{name:"close",onclick:()=>closeSearchPanel(to),"aria-label":phrase(to,"close"),type:"button"},["×"])])}commit(){let to=new SearchQuery({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});to.eq(this.query)||(this.query=to,this.view.dispatch({effects:setSearchQuery.of(to)}))}keydown(to){runScopeHandlers(this.view,to,"search-panel")?to.preventDefault():to.keyCode==13&&to.target==this.searchField?(to.preventDefault(),(to.shiftKey?findPrevious:findNext)(this.view)):to.keyCode==13&&to.target==this.replaceField&&(to.preventDefault(),replaceNext(this.view))}update(to){for(let no of to.transactions)for(let io of no.effects)io.is(setSearchQuery)&&!io.value.eq(this.query)&&this.setQuery(io.value)}setQuery(to){this.query=to,this.searchField.value=to.search,this.replaceField.value=to.replace,this.caseField.checked=to.caseSensitive,this.reField.checked=to.regexp,this.wordField.checked=to.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(searchConfigFacet).top}}function phrase(eo,to){return eo.state.phrase(to)}const AnnounceMargin=30,Break=/[\s\.,:;?!]/;function announceMatch(eo,{from:to,to:no}){let io=eo.state.doc.lineAt(to),so=eo.state.doc.lineAt(no).to,ao=Math.max(io.from,to-AnnounceMargin),lo=Math.min(so,no+AnnounceMargin),uo=eo.state.sliceDoc(ao,lo);if(ao!=io.from){for(let ho=0;houo.length-AnnounceMargin;ho--)if(!Break.test(uo[ho-1])&&Break.test(uo[ho])){uo=uo.slice(0,ho);break}}return EditorView.announce.of(`${eo.state.phrase("current match")}. ${uo} ${eo.state.phrase("on line")} ${io.number}.`)}const baseTheme$2=EditorView.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),searchExtensions=[searchState,Prec.low(searchHighlighter),baseTheme$2];class SelectedDiagnostic{constructor(to,no,io){this.from=to,this.to=no,this.diagnostic=io}}class LintState{constructor(to,no,io){this.diagnostics=to,this.panel=no,this.selected=io}static init(to,no,io){let so=to,ao=io.facet(lintConfig).markerFilter;ao&&(so=ao(so,io));let lo=Decoration.set(so.map(uo=>uo.from==uo.to||uo.from==uo.to-1&&io.doc.lineAt(uo.from).to==uo.from?Decoration.widget({widget:new DiagnosticWidget(uo),diagnostic:uo}).range(uo.from):Decoration.mark({attributes:{class:"cm-lintRange cm-lintRange-"+uo.severity+(uo.markClass?" "+uo.markClass:"")},diagnostic:uo,inclusive:!0}).range(uo.from,uo.to)),!0);return new LintState(lo,no,findDiagnostic(lo))}}function findDiagnostic(eo,to=null,no=0){let io=null;return eo.between(no,1e9,(so,ao,{spec:lo})=>{if(!(to&&lo.diagnostic!=to))return io=new SelectedDiagnostic(so,ao,lo.diagnostic),!1}),io}function hideTooltip(eo,to){let no=eo.startState.doc.lineAt(to.pos);return!!(eo.effects.some(io=>io.is(setDiagnosticsEffect))||eo.changes.touchesRange(no.from,no.to))}function maybeEnableLint(eo,to){return eo.field(lintState,!1)?to:to.concat(StateEffect.appendConfig.of(lintExtensions))}const setDiagnosticsEffect=StateEffect.define(),togglePanel=StateEffect.define(),movePanelSelection=StateEffect.define(),lintState=StateField.define({create(){return new LintState(Decoration.none,null,null)},update(eo,to){if(to.docChanged){let no=eo.diagnostics.map(to.changes),io=null;if(eo.selected){let so=to.changes.mapPos(eo.selected.from,1);io=findDiagnostic(no,eo.selected.diagnostic,so)||findDiagnostic(no,null,so)}eo=new LintState(no,eo.panel,io)}for(let no of to.effects)no.is(setDiagnosticsEffect)?eo=LintState.init(no.value,eo.panel,to.state):no.is(togglePanel)?eo=new LintState(eo.diagnostics,no.value?LintPanel.open:null,eo.selected):no.is(movePanelSelection)&&(eo=new LintState(eo.diagnostics,eo.panel,no.value));return eo},provide:eo=>[showPanel.from(eo,to=>to.panel),EditorView.decorations.from(eo,to=>to.diagnostics)]}),activeMark=Decoration.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function lintTooltip(eo,to,no){let{diagnostics:io}=eo.state.field(lintState),so=[],ao=2e8,lo=0;io.between(to-(no<0?1:0),to+(no>0?1:0),(ho,go,{spec:mo})=>{to>=ho&&to<=go&&(ho==go||(to>ho||no>0)&&(torenderDiagnostic(eo,no,!1)))}const openLintPanel=eo=>{let to=eo.state.field(lintState,!1);(!to||!to.panel)&&eo.dispatch({effects:maybeEnableLint(eo.state,[togglePanel.of(!0)])});let no=getPanel(eo,LintPanel.open);return no&&no.dom.querySelector(".cm-panel-lint ul").focus(),!0},closeLintPanel=eo=>{let to=eo.state.field(lintState,!1);return!to||!to.panel?!1:(eo.dispatch({effects:togglePanel.of(!1)}),!0)},nextDiagnostic=eo=>{let to=eo.state.field(lintState,!1);if(!to)return!1;let no=eo.state.selection.main,io=to.diagnostics.iter(no.to+1);return!io.value&&(io=to.diagnostics.iter(0),!io.value||io.from==no.from&&io.to==no.to)?!1:(eo.dispatch({selection:{anchor:io.from,head:io.to},scrollIntoView:!0}),!0)},lintKeymap=[{key:"Mod-Shift-m",run:openLintPanel,preventDefault:!0},{key:"F8",run:nextDiagnostic}],lintConfig=Facet.define({combine(eo){return Object.assign({sources:eo.map(to=>to.source).filter(to=>to!=null)},combineConfig(eo.map(to=>to.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(to,no)=>to?no?io=>to(io)||no(io):to:no}))}});function assignKeys(eo){let to=[];if(eo)e:for(let{name:no}of eo){for(let io=0;ioao.toLowerCase()==so.toLowerCase())){to.push(so);continue e}}to.push("")}return to}function renderDiagnostic(eo,to,no){var io;let so=no?assignKeys(to.actions):[];return crelt("li",{class:"cm-diagnostic cm-diagnostic-"+to.severity},crelt("span",{class:"cm-diagnosticText"},to.renderMessage?to.renderMessage():to.message),(io=to.actions)===null||io===void 0?void 0:io.map((ao,lo)=>{let uo=!1,ho=So=>{if(So.preventDefault(),uo)return;uo=!0;let _o=findDiagnostic(eo.state.field(lintState).diagnostics,to);_o&&ao.apply(eo,_o.from,_o.to)},{name:go}=ao,mo=so[lo]?go.indexOf(so[lo]):-1,yo=mo<0?go:[go.slice(0,mo),crelt("u",go.slice(mo,mo+1)),go.slice(mo+1)];return crelt("button",{type:"button",class:"cm-diagnosticAction",onclick:ho,onmousedown:ho,"aria-label":` Action: ${go}${mo<0?"":` (access key "${so[lo]})"`}.`},yo)}),to.source&&crelt("div",{class:"cm-diagnosticSource"},to.source))}class DiagnosticWidget extends WidgetType{constructor(to){super(),this.diagnostic=to}eq(to){return to.diagnostic==this.diagnostic}toDOM(){return crelt("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class PanelItem{constructor(to,no){this.diagnostic=no,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=renderDiagnostic(to,no,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class LintPanel{constructor(to){this.view=to,this.items=[];let no=so=>{if(so.keyCode==27)closeLintPanel(this.view),this.view.focus();else if(so.keyCode==38||so.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(so.keyCode==40||so.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(so.keyCode==36)this.moveSelection(0);else if(so.keyCode==35)this.moveSelection(this.items.length-1);else if(so.keyCode==13)this.view.focus();else if(so.keyCode>=65&&so.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:ao}=this.items[this.selectedIndex],lo=assignKeys(ao.actions);for(let uo=0;uo{for(let ao=0;aocloseLintPanel(this.view)},"×")),this.update()}get selectedIndex(){let to=this.view.state.field(lintState).selected;if(!to)return-1;for(let no=0;no{let go=-1,mo;for(let yo=io;yoio&&(this.items.splice(io,go-io),so=!0)),no&&mo.diagnostic==no.diagnostic?mo.dom.hasAttribute("aria-selected")||(mo.dom.setAttribute("aria-selected","true"),ao=mo):mo.dom.hasAttribute("aria-selected")&&mo.dom.removeAttribute("aria-selected"),io++});io({sel:ao.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:lo,panel:uo})=>{let ho=uo.height/this.list.offsetHeight;lo.topuo.bottom&&(this.list.scrollTop+=(lo.bottom-uo.bottom)/ho)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),so&&this.sync()}sync(){let to=this.list.firstChild;function no(){let io=to;to=io.nextSibling,io.remove()}for(let io of this.items)if(io.dom.parentNode==this.list){for(;to!=io.dom;)no();to=io.dom.nextSibling}else this.list.insertBefore(io.dom,to);for(;to;)no()}moveSelection(to){if(this.selectedIndex<0)return;let no=this.view.state.field(lintState),io=findDiagnostic(no.diagnostics,this.items[to].diagnostic);io&&this.view.dispatch({selection:{anchor:io.from,head:io.to},scrollIntoView:!0,effects:movePanelSelection.of(io)})}static open(to){return new LintPanel(to)}}function svg(eo,to='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(eo)}')`}function underline(eo){return svg(``,'width="6" height="3"')}const baseTheme=EditorView.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:underline("#d11")},".cm-lintRange-warning":{backgroundImage:underline("orange")},".cm-lintRange-info":{backgroundImage:underline("#999")},".cm-lintRange-hint":{backgroundImage:underline("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),lintExtensions=[lintState,EditorView.decorations.compute([lintState],eo=>{let{selected:to,panel:no}=eo.field(lintState);return!to||!no||to.from==to.to?Decoration.none:Decoration.set([activeMark.range(to.from,to.to)])}),hoverTooltip(lintTooltip,{hideOn:hideTooltip}),baseTheme];var basicSetup=function eo(to){to===void 0&&(to={});var{crosshairCursor:no=!1}=to,io=[];to.closeBracketsKeymap!==!1&&(io=io.concat(closeBracketsKeymap)),to.defaultKeymap!==!1&&(io=io.concat(defaultKeymap)),to.searchKeymap!==!1&&(io=io.concat(searchKeymap)),to.historyKeymap!==!1&&(io=io.concat(historyKeymap)),to.foldKeymap!==!1&&(io=io.concat(foldKeymap)),to.completionKeymap!==!1&&(io=io.concat(completionKeymap)),to.lintKeymap!==!1&&(io=io.concat(lintKeymap));var so=[];return to.lineNumbers!==!1&&so.push(lineNumbers()),to.highlightActiveLineGutter!==!1&&so.push(highlightActiveLineGutter()),to.highlightSpecialChars!==!1&&so.push(highlightSpecialChars()),to.history!==!1&&so.push(history()),to.foldGutter!==!1&&so.push(foldGutter()),to.drawSelection!==!1&&so.push(drawSelection()),to.dropCursor!==!1&&so.push(dropCursor()),to.allowMultipleSelections!==!1&&so.push(EditorState.allowMultipleSelections.of(!0)),to.indentOnInput!==!1&&so.push(indentOnInput()),to.syntaxHighlighting!==!1&&so.push(syntaxHighlighting(defaultHighlightStyle,{fallback:!0})),to.bracketMatching!==!1&&so.push(bracketMatching()),to.closeBrackets!==!1&&so.push(closeBrackets()),to.autocompletion!==!1&&so.push(autocompletion()),to.rectangularSelection!==!1&&so.push(rectangularSelection()),no!==!1&&so.push(crosshairCursor()),to.highlightActiveLine!==!1&&so.push(highlightActiveLine()),to.highlightSelectionMatches!==!1&&so.push(highlightSelectionMatches()),to.tabSize&&typeof to.tabSize=="number"&&so.push(indentUnit.of(" ".repeat(to.tabSize))),so.concat([keymap.of(io.flat())]).filter(Boolean)};const chalky="#e5c07b",coral="#e06c75",cyan="#56b6c2",invalid="#ffffff",ivory="#abb2bf",stone="#7d8799",malibu="#61afef",sage="#98c379",whiskey="#d19a66",violet="#c678dd",darkBackground="#21252b",highlightBackground="#2c313a",background="#282c34",tooltipBackground="#353a42",selection="#3E4451",cursor="#528bff",oneDarkTheme=EditorView.theme({"&":{color:ivory,backgroundColor:background},".cm-content":{caretColor:cursor},".cm-cursor, .cm-dropCursor":{borderLeftColor:cursor},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:selection},".cm-panels":{backgroundColor:darkBackground,color:ivory},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:background,color:stone,border:"none"},".cm-activeLineGutter":{backgroundColor:highlightBackground},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:tooltipBackground},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:tooltipBackground,borderBottomColor:tooltipBackground},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:highlightBackground,color:ivory}}},{dark:!0}),oneDarkHighlightStyle=HighlightStyle.define([{tag:tags$1.keyword,color:violet},{tag:[tags$1.name,tags$1.deleted,tags$1.character,tags$1.propertyName,tags$1.macroName],color:coral},{tag:[tags$1.function(tags$1.variableName),tags$1.labelName],color:malibu},{tag:[tags$1.color,tags$1.constant(tags$1.name),tags$1.standard(tags$1.name)],color:whiskey},{tag:[tags$1.definition(tags$1.name),tags$1.separator],color:ivory},{tag:[tags$1.typeName,tags$1.className,tags$1.number,tags$1.changed,tags$1.annotation,tags$1.modifier,tags$1.self,tags$1.namespace],color:chalky},{tag:[tags$1.operator,tags$1.operatorKeyword,tags$1.url,tags$1.escape,tags$1.regexp,tags$1.link,tags$1.special(tags$1.string)],color:cyan},{tag:[tags$1.meta,tags$1.comment],color:stone},{tag:tags$1.strong,fontWeight:"bold"},{tag:tags$1.emphasis,fontStyle:"italic"},{tag:tags$1.strikethrough,textDecoration:"line-through"},{tag:tags$1.link,color:stone,textDecoration:"underline"},{tag:tags$1.heading,fontWeight:"bold",color:coral},{tag:[tags$1.atom,tags$1.bool,tags$1.special(tags$1.variableName)],color:whiskey},{tag:[tags$1.processingInstruction,tags$1.string,tags$1.inserted],color:sage},{tag:tags$1.invalid,color:invalid}]),oneDark=[oneDarkTheme,syntaxHighlighting(oneDarkHighlightStyle)];var defaultLightThemeOption=EditorView.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),getDefaultExtensions=function eo(to){to===void 0&&(to={});var{indentWithTab:no=!0,editable:io=!0,readOnly:so=!1,theme:ao="light",placeholder:lo="",basicSetup:uo=!0}=to,ho=[];switch(no&&ho.unshift(keymap.of([indentWithTab])),uo&&(typeof uo=="boolean"?ho.unshift(basicSetup()):ho.unshift(basicSetup(uo))),lo&&ho.unshift(placeholder(lo)),ao){case"light":ho.push(defaultLightThemeOption);break;case"dark":ho.push(oneDark);break;case"none":break;default:ho.push(ao);break}return io===!1&&ho.push(EditorView.editable.of(!1)),so&&ho.push(EditorState.readOnly.of(!0)),[...ho]},getStatistics=eo=>({line:eo.state.doc.lineAt(eo.state.selection.main.from),lineCount:eo.state.doc.lines,lineBreak:eo.state.lineBreak,length:eo.state.doc.length,readOnly:eo.state.readOnly,tabSize:eo.state.tabSize,selection:eo.state.selection,selectionAsSingle:eo.state.selection.asSingle().main,ranges:eo.state.selection.ranges,selectionCode:eo.state.sliceDoc(eo.state.selection.main.from,eo.state.selection.main.to),selections:eo.state.selection.ranges.map(to=>eo.state.sliceDoc(to.from,to.to)),selectedText:eo.state.selection.ranges.some(to=>!to.empty)}),External=Annotation.define(),emptyExtensions=[];function useCodeMirror(eo){var{value:to,selection:no,onChange:io,onStatistics:so,onCreateEditor:ao,onUpdate:lo,extensions:uo=emptyExtensions,autoFocus:ho,theme:go="light",height:mo=null,minHeight:yo=null,maxHeight:So=null,width:_o=null,minWidth:ko=null,maxWidth:Co=null,placeholder:$o="",editable:Ro=!0,readOnly:Oo=!1,indentWithTab:No=!0,basicSetup:Mo=!0,root:Bo,initialState:Po}=eo,[Lo,Go]=reactExports.useState(),[Do,Uo]=reactExports.useState(),[Ho,Yo]=reactExports.useState(),qo=EditorView.theme({"&":{height:mo,minHeight:yo,maxHeight:So,width:_o,minWidth:ko,maxWidth:Co},"& .cm-scroller":{height:"100% !important"}}),Jo=EditorView.updateListener.of(hs=>{if(hs.docChanged&&typeof io=="function"&&!hs.transactions.some(vs=>vs.annotation(External))){var gs=hs.state.doc,ys=gs.toString();io(ys,hs)}so&&so(getStatistics(hs))}),ps=getDefaultExtensions({theme:go,editable:Ro,readOnly:Oo,placeholder:$o,indentWithTab:No,basicSetup:Mo}),Qo=[Jo,qo,...ps];return lo&&typeof lo=="function"&&Qo.push(EditorView.updateListener.of(lo)),Qo=Qo.concat(uo),reactExports.useEffect(()=>{if(Lo&&!Ho){var hs={doc:to,selection:no,extensions:Qo},gs=Po?EditorState.fromJSON(Po.json,hs,Po.fields):EditorState.create(hs);if(Yo(gs),!Do){var ys=new EditorView({state:gs,parent:Lo,root:Bo});Uo(ys),ao&&ao(ys,gs)}}return()=>{Do&&(Yo(void 0),Uo(void 0))}},[Lo,Ho]),reactExports.useEffect(()=>Go(eo.container),[eo.container]),reactExports.useEffect(()=>()=>{Do&&(Do.destroy(),Uo(void 0))},[Do]),reactExports.useEffect(()=>{ho&&Do&&Do.focus()},[ho,Do]),reactExports.useEffect(()=>{Do&&Do.dispatch({effects:StateEffect.reconfigure.of(Qo)})},[go,uo,mo,yo,So,_o,ko,Co,$o,Ro,Oo,No,Mo,io,lo]),reactExports.useEffect(()=>{if(to!==void 0){var hs=Do?Do.state.doc.toString():"";Do&&to!==hs&&Do.dispatch({changes:{from:0,to:hs.length,insert:to||""},annotations:[External.of(!0)]})}},[to,Do]),{state:Ho,setState:Yo,view:Do,setView:Uo,container:Lo,setContainer:Go}}var _excluded=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],ReactCodeMirror=reactExports.forwardRef((eo,to)=>{var{className:no,value:io="",selection:so,extensions:ao=[],onChange:lo,onStatistics:uo,onCreateEditor:ho,onUpdate:go,autoFocus:mo,theme:yo="light",height:So,minHeight:_o,maxHeight:ko,width:Co,minWidth:$o,maxWidth:Ro,basicSetup:Oo,placeholder:No,indentWithTab:Mo,editable:Bo,readOnly:Po,root:Lo,initialState:Go}=eo,Do=_objectWithoutPropertiesLoose(eo,_excluded),Uo=reactExports.useRef(null),{state:Ho,view:Yo,container:qo}=useCodeMirror({container:Uo.current,root:Lo,value:io,autoFocus:mo,theme:yo,height:So,minHeight:_o,maxHeight:ko,width:Co,minWidth:$o,maxWidth:Ro,basicSetup:Oo,placeholder:No,indentWithTab:Mo,editable:Bo,readOnly:Po,selection:so,onChange:lo,onStatistics:uo,onCreateEditor:ho,onUpdate:go,extensions:ao,initialState:Go});if(reactExports.useImperativeHandle(to,()=>({editor:Uo.current,state:Ho,view:Yo}),[Uo,qo,Ho,Yo]),typeof io!="string")throw new Error("value must be typeof string but got "+typeof io);var Jo=typeof yo=="string"?"cm-theme-"+yo:"cm-theme";return jsxRuntimeExports.jsx("div",_extends({ref:Uo,className:""+Jo+(no?" "+no:"")},Do))});ReactCodeMirror.displayName="CodeMirror";const TraceFilterInput=({className:eo,hash:to,setHash:no})=>{const io=useClasses$9(),ao=useIsDark()?vscodeDark:void 0,lo="Input filter condition in python syntax. e.g. name == 'web_classification' and cumulative_token_count.total > 1000",[uo,ho]=reactExports.useState(to.filter??""),go=lodashExports.debounce(So=>{ho(So),So.trim()!==""?no({filter:So}):no({filter:void 0})},500),mo=So=>{uo.length>0?go(`${uo} and ${So}`):go(So)},yo=uo!=="";return jsxRuntimeExports.jsx("div",{className:mergeClasses(eo,io.wrapper),children:jsxRuntimeExports.jsxs("div",{className:io.field,children:[jsxRuntimeExports.jsx(Search20Regular,{className:io.searchIcon}),jsxRuntimeExports.jsx(ReactCodeMirror,{basicSetup:{lineNumbers:!1,foldGutter:!1,bracketMatching:!0,syntaxHighlighting:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1,defaultKeymap:!1},className:io.input,height:"36px",width:"100%",value:uo,onChange:go,editable:!0,placeholder:lo,extensions:extensions$1,theme:ao}),jsxRuntimeExports.jsx(DismissCircle20Regular,{className:io.dismissIcon,style:{visibility:yo?"visible":"hidden"},onClick:()=>go("")}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:io.divider}),jsxRuntimeExports.jsxs(Popover,{positioning:"below-end",withArrow:!0,children:[jsxRuntimeExports.jsx(PopoverTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx(AddCircle20Regular,{className:io.addIcon})}),jsxRuntimeExports.jsx(PopoverSurface,{tabIndex:-1,children:jsxRuntimeExports.jsx(FilterConditions,{onAddCondition:mo})})]})]})})};function FilterConditions(eo){const{onAddCondition:to}=eo,no=useClasses$9();return jsxRuntimeExports.jsxs("div",{className:no.conditionsWrapper,children:[jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by name",initialSnippet:"name == 'your_trace_name'",onAddFilterConditionSnippet:to},"name"),jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by kind",initialSnippet:"kind == 'Flow'",onAddFilterConditionSnippet:to},"kind"),jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by status",initialSnippet:"status == 'Error'",onAddFilterConditionSnippet:to},"status"),jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by start_time",initialSnippet:"'2024/04/17 15:36:45' < start_time <'2024/04/18",onAddFilterConditionSnippet:to},"start_time"),jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by cumulative_token_count",initialSnippet:"cumulative_token_count.total > 1000",onAddFilterConditionSnippet:to},"token")]})}function FilterConditionRow(eo){const{initialSnippet:to,onAddFilterConditionSnippet:no}=eo,[io,so]=reactExports.useState(to),ao=useClasses$9(),uo=useIsDark()?vscodeDark:void 0;return jsxRuntimeExports.jsxs("div",{className:ao.conditionWrapper,children:[jsxRuntimeExports.jsx(Text$2,{size:300,weight:"semibold",children:eo.label}),jsxRuntimeExports.jsxs("div",{className:ao.conditionRow,children:[jsxRuntimeExports.jsx("div",{className:ao.conditionField,children:jsxRuntimeExports.jsx(ReactCodeMirror,{value:io,basicSetup:{lineNumbers:!1,foldGutter:!1,bracketMatching:!0,syntaxHighlighting:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1},className:ao.conditionInput,editable:!0,extensions:[python()],onChange:so,theme:uo})}),jsxRuntimeExports.jsx(Button$2,{title:"Add to filter condition",onClick:()=>no(io),icon:jsxRuntimeExports.jsx(AddCircle20Regular,{}),size:"large"})]})]})}const extensions$1=[keymap.of([{key:"Enter",run:eo=>!0}]),python(),autocompletion({override:[filterConditionCompletions]})];function filterConditionCompletions(eo){const to=eo.matchBefore(/\w*/);return!to||to.from===to.to&&!eo.explicit?null:{from:to.from,options:[{label:"kind",type:"variable",info:"The kind of trace: Flow, Function, etc."},{label:"name",type:"variable",info:"The name of the trace."},{label:"status",type:"variable",info:"The status of the trace."},{label:"cumulative_token_count.total",type:"variable",info:"The total cumulative token count."},{label:"cumulative_token_count.prompt",type:"variable",info:"The cumulative token count for prompt."},{label:"cumulative_token_count.completion",type:"variable",info:"The cumulative token count for completion."},{label:"start_time",type:"variable",info:"The start time of the trace."},{label:"and",type:"keyword",info:"Logical AND operator."},{label:"or",type:"keyword",info:"Logical OR operator."}]}}const useClasses$9=makeStyles({wrapper:{width:"calc(100% - 280px)"},field:{display:"flex",alignItems:"center",...shorthands.flex(1),...shorthands.padding("1px"),...shorthands.border("1px","solid",tokens$1.colorNeutralStroke1),...shorthands.borderRadius("4px")},searchIcon:{...shorthands.margin("0","8px")},dismissIcon:{cursor:"pointer"},addIcon:{marginRight:"8px",cursor:"pointer"},input:{width:"100%",overflowX:"auto",backgroundColor:"red","& .cm-focused":{outlineStyle:"none"},"& .cm-content":{...shorthands.padding("8px",0)}},divider:{...shorthands.flex("none"),...shorthands.padding(0,"8px")},conditionsWrapper:{display:"flex",flexDirection:"column",width:"500px",...shorthands.gap("20px"),...shorthands.padding("4px")},conditionWrapper:{display:"flex",flexDirection:"column"},conditionField:{display:"flex",alignItems:"center",...shorthands.flex(1),...shorthands.padding("1px"),...shorthands.border("1px","solid",tokens$1.colorNeutralStroke1),...shorthands.borderRadius("4px")},conditionRow:{display:"flex",alignItems:"center",marginTop:"4px",...shorthands.gap("8px")},conditionInput:{...shorthands.flex(1),"& .cm-focused":{outlineStyle:"none"},"& .cm-content":{...shorthands.padding("8px",0)}}}),TraceFilter=({hash:eo,setHash:to})=>{const no=useClasses$8(),io=useLocStrings(),so=useTableColumnNames(),[ao,lo]=[useTableHiddenColumnKeys(),useSetTableHiddenColumnKeys()],uo=useTraceListShowMetrics(),[ho,go]=[useTraceFilterChanged(),useSetTraceFilterChanged()],mo=reactExports.useMemo(()=>so.normalColumns.map($o=>$o.key),[so.normalColumns.map($o=>$o.key).join(",")]),yo=reactExports.useMemo(()=>so.evaluationColumns.map($o=>$o.key),[so.evaluationColumns.map($o=>$o.key).join(",")]),So=reactExports.useMemo(()=>[...so.normalColumns,...so.evaluationColumns].filter(Ro=>!ao.includes(Ro.key)).map(Ro=>Ro.key),[ao,so]),_o=($o,Ro)=>{const{optionValue:Oo}=Ro;Oo&&(lo(ao.includes(Oo)?ao.filter(No=>No!==Oo):[...ao,Oo]),go(!0))},ko=reactExports.useCallback($o=>{lo($o?ao.filter(Ro=>!mo.includes(Ro)):lodashExports.union([...ao],[...mo]))},[lo,ao,mo]),Co=reactExports.useCallback($o=>{lo($o?ao.filter(Ro=>!yo.includes(Ro)):lodashExports.union([...ao],[...yo]))},[lo,ao,yo]);return reactExports.useEffect(()=>{ho||(!eo||Object.keys(eo).length===0?lo(lodashExports.union([...ao],[...yo])):lo(lodashExports.union([...ao],[METRICS_COLUMN_KEY])))},[ho,yo]),jsxRuntimeExports.jsxs("div",{className:no.wrapper,children:[eo&&to?jsxRuntimeExports.jsx(TraceFilterInput,{className:no.filter,hash:eo,setHash:to}):jsxRuntimeExports.jsx(Input,{className:no.filter,disabled:!0,placeholder:"NOT implement yet"}),jsxRuntimeExports.jsx(Combobox,{multiselect:!0,placeholder:"Columns Filter",selectedOptions:So,onOptionSelect:_o,children:jsxRuntimeExports.jsxs("div",{className:no.popUp,children:[jsxRuntimeExports.jsx(OptionGroup,{label:jsxRuntimeExports.jsx(Checkbox$2,{checked:mo.every($o=>!ao.includes($o)),onClick:()=>{const $o=mo.every(Ro=>!ao.includes(Ro));ko(!$o)},className:no.smallCheckbox,label:io["Trace Info"],labelPosition:"before"}),children:so.normalColumns.map($o=>jsxRuntimeExports.jsx(Option$3,{value:$o.key,children:$o.name},$o.key))}),uo&&jsxRuntimeExports.jsx(OptionGroup,{label:jsxRuntimeExports.jsx(Checkbox$2,{checked:yo.every($o=>!ao.includes($o)),onClick:()=>{const $o=yo.every(Ro=>!ao.includes(Ro));Co(!$o)},className:no.smallCheckbox,label:io.Metrics,labelPosition:"before"}),children:so.evaluationColumns.map($o=>jsxRuntimeExports.jsx(Option$3,{value:$o.key,text:$o.name,children:jsxRuntimeExports.jsx(Tooltip,{relationship:"label",content:$o.name,children:jsxRuntimeExports.jsx("span",{className:no.optionText,children:$o.name})})},$o.key))})]})})]})},useClasses$8=makeStyles({wrapper:{display:"flex",width:"100%",...shorthands.gap("1rem"),...shorthands.margin(tokens$1.spacingVerticalM,0)},filter:{flexGrow:1},popUp:{overflowX:"hidden"},optionText:{display:"block",width:"90%",...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap"},smallCheckbox:{"& label":{...shorthands.padding("0px"),fontSize:"12px",lineHeight:"12px"},"& .fui-Checkbox__indicator":{marginLeft:"4px !important",marginRight:"0px !important",marginTop:"2px !important",marginBottom:"0px !important",width:"12px",height:"12px"}}});function TraceList({onRowClick:eo,className:to}){const no=useClasses$7(),io=useTraceListRows(),{columns:so,ref:ao}=useTraceListColumns(),lo=useTraceListViewStatus(),uo=useTraceListLoadingComponent(),ho=useTraceListErrorComponent(),go=useIsDark();useDebugFunctions();const mo=useSortColumn(),yo=useSetSortColumn(),So=mo?[mo]:[],_o=useOnClickTraceRow(),ko=reactExports.useCallback(Co=>{const{row:$o,column:Ro}=Co;_o($o,Ro.key),eo==null||eo($o)},[_o,eo]);return lo===ViewStatus.error?jsxRuntimeExports.jsx(ho,{}):lo===ViewStatus.loading?jsxRuntimeExports.jsx(uo,{}):jsxRuntimeExports.jsx("div",{ref:ao,className:no.root,children:jsxRuntimeExports.jsx(DataGrid$1$1,{className:`${no.grid} ${to??""} ${go?"rdg-dark":"rdg-light"}`,renderers:{noRowsFallback:jsxRuntimeExports.jsxs("div",{style:{textAlign:"center",gridColumn:"1/-1",display:"flex",alignItems:"center",justifyContent:"center"},children:[jsxRuntimeExports.jsx(TextBulletListSquareWarning24Regular,{}),jsxRuntimeExports.jsx(Text$2,{style:{paddingLeft:"1rem"},children:"No traces found."})]})},rowClass:()=>no.row,columns:so,rows:io,headerRowHeight:26,rowHeight:80,onCellClick:ko,defaultColumnOptions:{resizable:!0},sortColumns:So,onSortColumnsChange:Co=>{var $o;yo(($o=Co.slice(-1))==null?void 0:$o[0])}})})}const useClasses$7=makeStyles({root:{display:"flex",flexDirection:"column",flexGrow:1},grid:{},row:{cursor:"pointer"}}),DefaultDetailContainer=({isOpen:eo,setIsOpen:to,header:no=null,content:io})=>jsxRuntimeExports.jsxs(OverlayDrawer,{position:"end",style:{width:"calc(100% - 48px)"},open:eo,onOpenChange:(so,ao)=>to(ao.open),children:[no,jsxRuntimeExports.jsx("div",{style:{width:"100%",height:"calc(100vh - 40px)"},children:io})]});makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},divider:{flexGrow:0,...shorthands.margin("16px",0)},grid:{flexGrow:1}});makeStyles({wrapper:{display:"flex",flexDirection:"column",justifyContent:"space-between",...shorthands.flex(0,0,"auto")},horizontal:{flexDirection:"row",alignItems:"center",...shorthands.flex(0,0,"auto")},title:{color:tokens$1.colorNeutralForeground2,marginBottom:tokens$1.spacingVerticalXS},data:{color:tokens$1.colorNeutralForeground1},tagsWrapper:{display:"flex",flexDirection:"row",...shorthands.gap("0.5rem")},tagsWrapperHorizontal:{flexDirection:"column"},timeWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyItems:"center","> svg":{marginRight:"5px"}},scoreWrapper:{display:"flex",flexDirection:"row",alignItems:"center","> :first-child":{marginRight:"8px"}}});const defaultLocStrings=new Proxy({},{get:(eo,to)=>to.replace(/_/g," ")}),RegistryWrapper=createRegistry({name:"TraceView"}),Provider=({isDark:eo=!1,viewModel:to,children:no,locStrings:io=defaultLocStrings,TraceListLoading:so,TraceListError:ao,TraceDetailLoading:lo,TraceDetailError:uo})=>{const ho=React.useCallback(go=>{go.register(TraceViewModelToken,{useValue:to}),so&&go.register(traceListLoadingInjectionToken,{useValue:so}),ao&&go.register(traceListErrorInjectionToken,{useValue:ao}),lo&&go.register(traceDetailLoadingInjectionToken,{useValue:lo}),uo&&go.register(traceDetailErrorInjectionToken,{useValue:uo}),io&&go.register(locStringsInjectionToken,{useValue:io}),go.register(agentsViewModelInjectionToken,{useValue:new AgentsViewModel})},[]);return jsxRuntimeExports.jsx(TraceViewThemeContext.Provider,{value:eo,children:jsxRuntimeExports.jsx(RegistryWrapper,{onInitialize:ho,children:no})})},ThemeContext=reactExports.createContext({});ThemeContext.displayName="ThemeContext";const ThemeContextProvider=({children:eo})=>{const[to,no]=reactExports.useState("light");return reactExports.useEffect(()=>{const io=window.matchMedia("(prefers-color-scheme: dark)");no(io.matches?"dark":"light");const so=ao=>{no(ao.matches?"dark":"light")};return io.addEventListener("change",so),()=>{io.removeEventListener("change",so)}},[]),jsxRuntimeExports.jsx(ThemeContext.Provider,{value:{theme:to,setTheme:no},children:eo})};function genLocalUrlParamsWithHash(eo){if(!isNotNullOrUndefined(eo))return"list";let to="";return isNotNullOrUndefined(eo.session)?to=`session=${eo.session}`:isNotNullOrUndefined(eo.collection)?to=`collection=${eo.collection}`:isNotNullOrUndefined(eo.experiment)?to=`experiment=${eo.experiment}`:isNotNullOrUndefined(eo.run)?to=`run=${eo.run}`:isNotNullOrUndefined(eo.trace)&&(to=`trace_ids=${eo.trace}`),isNotNullOrUndefined(eo.filter)?encodeURI(`search?expression=${eo.filter}${to?`&${to}`:""}`):encodeURI(`list?${to}`)}function isNotNullOrUndefined(eo){return eo!=null}const getSummariesSignature=eo=>eo.flatMap(io=>[`${io.line_run_id}_${io.status}`,...Object.values(io.evaluations??[]).map(so=>`${so.trace_id}_${so.status}`)]).sort().join(","),useLocalFetchSummaries=eo=>{const to=useTraceViewModel(),[no,io]=reactExports.useState(!0),so=useLocalFetchSummariesFunc(eo),ao=useTraceListAutoRefreshInterval();reactExports.useEffect(()=>{no&&to.setTraceListStatus(ViewStatus.loading),so().finally(()=>{no&&io(!1)});let lo;if(ao!==AutoRefreshInterval.OFF){const uo=REFRESH_INTERVAL_MAP[ao];uo&&(lo=setInterval(so,uo))}return()=>{lo&&clearInterval(lo)}},[so,ao])},useLocalFetchSummary=()=>{const eo=useTraceViewModel();return reactExports.useCallback(async no=>fetch(`${LOCAL_URL_PREFIX}/v1.0/LineRuns/list?trace_ids=${no}`).then(io=>io.json()).then(io=>{if(io&&Array.isArray(io))eo.appendTraces(io),eo.setTraceListStatus(ViewStatus.loaded);else throw new Error("fetchSummary: Invalid response")}).catch(io=>{eo.setTraceListStatus(ViewStatus.error),eo.appendTraces([]),console.error("Error:",io)}),[eo])},useLocalFetchSummariesFunc=eo=>{const to=useTraceViewModel(),[no,io]=reactExports.useState(void 0),so=useSetLoadSummariesError();return reactExports.useCallback(async()=>{const lo=`${LOCAL_URL_PREFIX}/v1.0/LineRuns/${genLocalUrlParamsWithHash(eo)}`;return fetch(lo).then(async uo=>{const ho=await uo.json();if(!uo.ok)throw new Error("message"in ho?String(ho.message):"Failed to fetch");const go=ho;if(!go&&Array.isArray(go))throw new Error("No new traces");const mo=getSummariesSignature(go);(no===void 0||mo!==no)&&(io(mo),to.traces$.clear(),to.appendTraces(go)),to.setTraceListStatus(ViewStatus.loaded)}).catch(uo=>{to.setTraceListStatus(ViewStatus.error),to.appendTraces([]),so(uo),console.error("Error:",uo)})},[eo,to])},useLocalRefreshTraces=eo=>{const to=useTraceViewModel(),no=useLocalFetchSummariesFunc(eo);return reactExports.useCallback(()=>{to.setTraceListStatus(ViewStatus.loading),no()},[no,to])},useLocalFetchRunningTraces=()=>{const eo=useTraces(),to=useLocalFetchSummary(),no=eo.filter(io=>checkStatus(io.status,"running")).map(io=>io.trace_id).filter(io=>io!==void 0);reactExports.useEffect(()=>{let io;return no.length>0&&(io=setInterval(()=>{no.forEach(so=>to(so))},RUNNING_TRACE_POLLING_GAP)),()=>{io&&clearInterval(io)}},[to,no])},useLocalTraceDetailDidOpen=eo=>{const to=useTraceViewModel(),no=useLocalFetchSummary(),io=useFetchLocalSpans();return reactExports.useCallback(async ao=>{if(!ao)return;let lo=to.getTraceById(ao);lo||(await no(ao),lo=to.getTraceById(ao));const uo=[ao,...Object.values((lo==null?void 0:lo.evaluations)??[]).map(ho=>ho.trace_id)].filter(ho=>ho!==void 0);eo({uiTraceId:ao}),to.setTraceDetailStatus(ViewStatus.loading),io(uo)},[to])},useLocalOnTraceDetailClose=eo=>reactExports.useCallback(()=>{eo({uiTraceId:void 0})},[eo]),useFetchLocalSpans=()=>{const eo=useTraceViewModel();return reactExports.useCallback(no=>{fetch(`${LOCAL_URL_PREFIX}/v1.0/Spans/list?trace_ids=${no.join(",")}&lazy_load=${eo.isLazyLoadSpan}`).then(io=>io.json()).then(io=>{if(!io||!Array.isArray(io))throw new Error("Invalid response");eo.appendSpans(io),eo.setTraceDetailStatus(ViewStatus.loaded)}).catch(io=>{console.error("Error:",io),eo.setTraceDetailStatus(ViewStatus.error)})},[eo])},useLocalOnRefreshSpans=()=>{const eo=useLocalFetchSummary(),to=useFetchLocalSpans();return reactExports.useCallback((io,so)=>{const ao=[io,...Object.values((so==null?void 0:so.evaluations)??[]).map(lo=>lo.trace_id)].filter(lo=>lo!==void 0);eo(io),to(ao)},[to,eo])},fetchSpanEvent=eo=>fetch(`${LOCAL_URL_PREFIX}/v1.0/Spans/Event/${eo}`).then(to=>to.json()).then(to=>({status:"success",data:to})).catch(to=>({status:"error",error:to}));function useHashObject(){const[eo,to]=reactExports.useState(()=>queryString.parse(window.location.hash.substring(1))),no=reactExports.useCallback(io=>{to(so=>{const ao={...so,...io},lo=queryString.stringify(ao);return window.location.hash=lo,ao})},[]);return reactExports.useEffect(()=>{const io=()=>{to(queryString.parse(window.location.hash.substring(1)))};return window.addEventListener("hashchange",io),()=>window.removeEventListener("hashchange",io)},[]),[eo,no]}const AutoRefreshSwitcher=({style:eo})=>{const to=useLocStrings(),no=useClasses$6(),[io,so]=[useTraceListAutoRefreshInterval(),useSetTraceListAutoRefreshInterval()];return jsxRuntimeExports.jsxs("div",{className:no.wrapper,style:eo,children:[jsxRuntimeExports.jsxs(Text$2,{children:[to["Auto Refresh"],":"]}),jsxRuntimeExports.jsx(Toolbar,{"aria-label":"Auto Refresh Switcher",checkedValues:{autoRefreshOptions:[io]},onCheckedValueChange:(ao,{name:lo,checkedItems:uo})=>{lo==="autoRefreshOptions"&&so(uo[0])},children:jsxRuntimeExports.jsx(ToolbarRadioGroup,{children:AUTO_REFRESH_LIST.map(ao=>jsxRuntimeExports.jsx(ToolbarRadioButton,{appearance:"subtle",name:"autoRefreshOptions",as:"button",value:ao,icon:jsxRuntimeExports.jsx("span",{className:no.text,children:ao})},ao))})})]})},useClasses$6=makeStyles({wrapper:{display:"flex",alignItems:"center"},text:{fontSize:"12px"}}),ThemeSwitcher=({style:eo,labelName:to})=>{const no=useLocStrings(),{theme:io,setTheme:so}=reactExports.useContext(ThemeContext);return jsxRuntimeExports.jsx(Switch,{label:to||no["Dark Theme"],labelPosition:"before",checked:io==="dark",onChange:(ao,lo)=>so(lo.checked?"dark":"light"),style:eo})},LocalCommonHeader=({slot:eo,showRefresh:to=!1})=>{const no=useClasses$5(),io=useLocStrings(),so=useTraceViewModel(),[ao]=useHashObject(),lo=ao.collection;return jsxRuntimeExports.jsxs("div",{className:no.root,children:[jsxRuntimeExports.jsx("div",{className:no.nav,children:jsxRuntimeExports.jsxs(Breadcrumb,{children:[jsxRuntimeExports.jsx(BreadcrumbItem,{children:jsxRuntimeExports.jsx(Link$2,{className:no.breadcrumbLink,to:"/collections",children:io.Collections})}),isNotNullOrUndefined(lo)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(BreadcrumbDivider,{}),jsxRuntimeExports.jsx(BreadcrumbItem,{className:no.breadcrumbItem,children:lo})]}):null]})}),jsxRuntimeExports.jsxs("div",{className:no.wrapper,children:[jsxRuntimeExports.jsx("div",{className:no.main,children:jsxRuntimeExports.jsx("span",{className:no.title,children:io.Traces})}),to&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tooltip,{content:io["Refresh Data"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Refresh",icon:jsxRuntimeExports.jsx(ArrowClockwise16Regular,{}),onClick:()=>so.refreshTraces()})}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:no.divider})]}),jsxRuntimeExports.jsx(AutoRefreshSwitcher,{}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:no.divider}),jsxRuntimeExports.jsx(ThemeSwitcher,{})]}),eo]})},useClasses$5=makeStyles({root:{display:"flex",flexDirection:"column",width:"100%"},nav:{},breadcrumbLink:{...shorthands.padding(tokens$1.spacingVerticalXXS,tokens$1.spacingHorizontalS,tokens$1.spacingVerticalXXS,0),color:tokens$1.colorBrandForegroundLink},breadcrumbItem:{...shorthands.padding(tokens$1.spacingVerticalXXS,tokens$1.spacingHorizontalS)},wrapper:{display:"flex",alignItems:"center",...shorthands.padding(tokens$1.spacingVerticalXXS,0)},main:{width:"100%",...shorthands.flex(1)},title:{fontWeight:600},divider:{flexGrow:0,height:"20px",...shorthands.margin(0,"8px")}}),LocalOverallMetric=({hash:eo})=>{var uo;const[[to,no],io]=reactExports.useState([void 0,void 0]),so=useClasses$4(),ao=useTraces(),lo=(()=>{if(isNotNullOrUndefined(eo.run)){const ho=eo.run.split(",");if(ho.length===1)return ho[0]}})();return reactExports.useEffect(()=>{lo&&Promise.allSettled([fetch(`${LOCAL_URL_PREFIX}/v1.0/Runs/${lo}`),fetch(`${LOCAL_URL_PREFIX}/v1.0/Runs/${lo}/metrics`)]).then(async ho=>{if(ho.some(go=>go.status==="rejected")){io([void 0,void 0]);return}else{const go=ho.map(mo=>mo.value);if(go.some(mo=>!mo.ok)){io([void 0,void 0]);return}else{const mo=await go[0].json(),yo=await go[1].json();io([mo,yo])}}})},[lo]),lo&&to&&no?jsxRuntimeExports.jsxs("div",{className:so.wrapper,children:[jsxRuntimeExports.jsx("div",{className:so.title,children:lo}),jsxRuntimeExports.jsxs("div",{className:so.blockListWrapper,children:[jsxRuntimeExports.jsx(InfoBlock,{title:"Total traces:",value:ao.length}),isNotNullOrUndefined(to.status)&&jsxRuntimeExports.jsx(InfoBlock,{title:"Status:",value:to.status,slot:jsxRuntimeExports.jsx(StatusText,{statusCode:to.status,showText:!0,size:UISize.small})}),isNotNullOrUndefined(to==null?void 0:to.created_on)&&jsxRuntimeExports.jsx(InfoBlock,{title:"Create on:",value:timeFormat$1(to.created_on)}),((uo=to==null?void 0:to.properties)==null?void 0:uo.system_metrics)&&jsxRuntimeExports.jsx(SystemMetrics,{systemMetrics:to.properties.system_metrics}),isNotNullOrUndefined(no)&&Object.keys(no).length>0&&jsxRuntimeExports.jsx(Metrics,{metrics:no})]})]}):null},InfoBlock=({title:eo,slot:to,value:no})=>{const io=useClasses$4();return jsxRuntimeExports.jsxs("div",{className:io.blockWrapper,children:[jsxRuntimeExports.jsx("div",{className:io.blockTitle,children:eo}),to||jsxRuntimeExports.jsx("div",{className:io.blockValue,children:no.toString()})]})},SYSTEM_METRICS_NAME_MAP={completion_tokens:"Completion tokens",duration:"Duration",prompt_tokens:"Prompt tokens",total_tokens:"Total tokens"},SystemMetrics=({systemMetrics:eo})=>{const to=useClasses$4();return jsxRuntimeExports.jsx(InfoBlock,{title:"System metrics:",slot:jsxRuntimeExports.jsxs("div",{className:to.metricsWrapper,children:[jsxRuntimeExports.jsx("div",{className:to.metricsItemRow,children:["prompt_tokens","total_tokens"].map(no=>eo[no]!==void 0?jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${SYSTEM_METRICS_NAME_MAP[no]}: ${eo[no]}`},no):null)}),jsxRuntimeExports.jsx("div",{className:to.metricsItemRow,children:["completion_tokens","duration"].map(no=>eo[no]!==void 0?jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${SYSTEM_METRICS_NAME_MAP[no]}: ${eo[no]}`},no):null)})]})})},Metrics=({metrics:eo})=>{const to=useClasses$4();return jsxRuntimeExports.jsx(InfoBlock,{title:"Metrics:",slot:jsxRuntimeExports.jsx("div",{className:to.metricsItemColumn,children:Object.entries(eo).map(([no,io])=>jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${no}: ${io}`},no))})})},useClasses$4=makeStyles({wrapper:{display:"flex",flexDirection:"column",boxSizing:"border-box",...shorthands.gap("6px"),...shorthands.borderRadius("4px"),...shorthands.margin("0","24px"),...shorthands.padding("16px"),...shorthands.border("1px","solid",tokens$1.colorNeutralStroke2)},title:{fontSize:"16px",fontWeight:600,lineHeight:"22px"},blockListWrapper:{display:"flex",...shorthands.gap("24px")},blockWrapper:{display:"flex",flexDirection:"column",...shorthands.gap("4px")},blockTitle:{fontSize:"12px",fontWeight:"600",lineHeight:"16px"},blockValue:{fontSize:"14px",lineHeight:"20px",fontWeight:"400"},metricsWrapper:{display:"flex",flexDirection:"column",...shorthands.gap("8px")},metricsItemRow:{display:"flex",...shorthands.gap("8px")},metricsItemColumn:{display:"flex",flexDirection:"column",...shorthands.gap("8px")},metricsItem:{fontSize:"12px",lineHeight:"16px",fontWeight:"400",...shorthands.padding("4px","8px"),...shorthands.borderRadius("4px"),...shorthands.border("1px","solid",tokens$1.colorNeutralStroke1)}});function LocalTraceDetailError(){const eo=useLocStrings(),to=useLoadSummariesError();return jsxRuntimeExports.jsx(GeneralErrorBar,{title:eo.Failed_to_load_trace,message:to==null?void 0:to.message,onClick:()=>{}})}const CollectionHeader=()=>{const eo=useClasses$3(),to=useLocStrings();return jsxRuntimeExports.jsxs("div",{className:eo.root,children:[jsxRuntimeExports.jsx("div",{className:eo.nav,children:jsxRuntimeExports.jsx(Link$2,{to:"/traces",style:{color:tokens$1.colorBrandForegroundLink},children:to.Traces})}),jsxRuntimeExports.jsxs("div",{className:eo.content,children:[jsxRuntimeExports.jsx("div",{className:eo.main,children:jsxRuntimeExports.jsx("span",{className:eo.title,children:to.Collections})}),jsxRuntimeExports.jsx(ThemeSwitcher,{})]})]})},useClasses$3=makeStyles({root:{},content:{display:"flex",alignItems:"center"},nav:{paddingBottom:tokens$1.spacingVerticalXXS},main:{...shorthands.flex(1)},title:{fontWeight:600}}),fetchCollectionList=()=>fetch(`${LOCAL_URL_PREFIX}/v1.0/LineRuns/Collections/list`).then(eo=>eo.json()),CollectionList=()=>{const eo=useIsDark(),to=useLocStrings(),[no,io]=reactExports.useState([]),so=[{key:"name",name:to.Name,renderCell:({row:uo})=>jsxRuntimeExports.jsx(Link$2,{style:{color:tokens$1.colorBrandForegroundLink},to:`/traces/#collection=${uo.name}`,children:uo.name})},{key:"update_time",name:to["Update Time"],renderCell:({row:uo})=>jsxRuntimeExports.jsx(TimeText,{time:uo.update_time})}],[ao,lo]=reactExports.useState(ViewStatus.loading);return reactExports.useEffect(()=>{lo(ViewStatus.loading),fetchCollectionList().then(uo=>{io(uo),lo(ViewStatus.loaded)}).catch(()=>{lo(ViewStatus.error)})},[]),jsxRuntimeExports.jsxs("div",{children:[ao===ViewStatus.loading&&jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh"},children:jsxRuntimeExports.jsx(Spinner,{size:"small"})}),ao===ViewStatus.error&&jsxRuntimeExports.jsx("div",{style:{marginLeft:"-8px"},children:jsxRuntimeExports.jsx(GeneralErrorBar,{title:to.Failed_to_fetch,message:to["try to check pf service status and pf version"],onClick:()=>{}})}),ao===ViewStatus.loaded&&jsxRuntimeExports.jsx(DataGrid$1$1,{className:`${eo?"rdg-dark":"rdg-light"}`,rows:no,columns:so})]})},CollectionListView=()=>{const eo=useClasses$2();return jsxRuntimeExports.jsxs("div",{className:eo.root,children:[jsxRuntimeExports.jsx(CollectionHeader,{}),jsxRuntimeExports.jsx("div",{className:eo.content,children:jsxRuntimeExports.jsx(CollectionList,{})})]})},useClasses$2=makeStyles({root:{display:"flex",flexDirection:"column",height:"100%"},content:{...shorthands.flex(1),...shorthands.overflow("auto")}}),LocalTraceView=eo=>{const{viewModel:to,isDark:no}=eo;return jsxRuntimeExports.jsx(Provider,{viewModel:to,isDark:no,TraceListError:LocalTraceDetailError,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/collections",element:jsxRuntimeExports.jsx(CollectionListView,{})}),jsxRuntimeExports.jsx(Route,{path:"/traces",element:jsxRuntimeExports.jsx(TraceListView,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/traces",replace:!0})})]})})},TraceListView=()=>{const[eo,to]=useHashObject(),no=useClasses$1(),io=useIsTraceDetailOpen(),so=useSetIsTraceDetailOpen(),ao=useTraceViewModel(),lo=useGetTraceByLineRunId(),[uo,ho]=React.useState(!1),[go,mo]=React.useState(!1),yo=useSelectedTrace(),So=useLocalFetchSummary(),_o=useFetchLocalSpans();useLocalFetchSummaries(eo),useLocalFetchRunningTraces();const ko=useLocalTraceDetailDidOpen(to),Co=useLocalOnTraceDetailClose(to),$o=useLocalRefreshTraces(eo),Ro=useLocalOnRefreshSpans();return reactExports.useEffect(()=>{ao.traceDetailDidOpen(ko),ao.traceDetailDidClose(Co),ao.setOnRefreshTraces($o),ao.onRefreshSpans(Ro)},[Ro,$o,Co,ko,ao]),reactExports.useEffect(()=>{let Oo;return uo&&io&&yo&&go&&(Oo=setInterval(()=>{const No=[yo==null?void 0:yo.trace_id,...Object.values((yo==null?void 0:yo.evaluations)??[]).map(Mo=>Mo.trace_id)].filter(Mo=>Mo!==void 0);_o(No),yo.trace_id&&So(yo.trace_id)},SPAN_POLLING_GAP)),()=>{Oo&&clearInterval(Oo)}},[go,yo,io,ao,uo,So,_o]),reactExports.useEffect(()=>{io&&yo&&(checkStatus(yo.status,"Running")?ho(!0):ho(!1))},[So,io,yo]),reactExports.useEffect(()=>{if(isNotNullOrUndefined(eo.line_run_id)){const Oo=lo(eo.line_run_id);Oo&&to({uiTraceId:Oo.trace_id,line_run_id:void 0})}},[lo,eo.line_run_id,to]),reactExports.useEffect(()=>{isNotNullOrUndefined(eo.uiTraceId)&&ao.setTraceDetailOpen(!0,eo.uiTraceId)},[ao,eo.uiTraceId]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:no.wrapper,children:[jsxRuntimeExports.jsx(LocalCommonHeader,{showRefresh:!0,slot:jsxRuntimeExports.jsx(LocalOverallMetric,{hash:eo})}),jsxRuntimeExports.jsx(TraceFilter,{hash:eo,setHash:to}),jsxRuntimeExports.jsx(TraceList,{className:no.grid,onRowClick:()=>{so(!0)}})]}),jsxRuntimeExports.jsx(DefaultDetailContainer,{isOpen:io,setIsOpen:so,header:jsxRuntimeExports.jsx(TraceDetailHeader,{setIsTraceDetailOpen:so,showStreamSwitch:uo,showGantt:!0,showCopyUrl:!0,isStreaming:go,onIsStreamingChange:mo}),content:jsxRuntimeExports.jsx(TraceDetail,{})})]})},useClasses$1=makeStyles({header:{display:"flex",width:"100%"},wrapper:{display:"flex",flexDirection:"column",height:"100%"},grid:{flexGrow:1}});window.TraceView_Version="20240513.3-main";const TraceViewApp=()=>{const eo=useClasses(),to=React.useMemo(()=>new TraceViewModel({spanConfig:{fetchSpanEvent,isLazyLoadSpan:!1}}),[]);return jsxRuntimeExports.jsx(ThemeContextProvider,{children:jsxRuntimeExports.jsx(ThemeContext.Consumer,{children:({theme:no})=>{const io=no==="dark";return jsxRuntimeExports.jsxs(FluentProvider,{theme:io?webDarkTheme:webLightTheme,style:{height:"100%",width:"100%"},children:[jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:` +`:io=="r"?"\r":io=="t"?" ":"\\")}eq(to){return this.search==to.search&&this.replace==to.replace&&this.caseSensitive==to.caseSensitive&&this.regexp==to.regexp&&this.wholeWord==to.wholeWord}create(){return this.regexp?new RegExpQuery(this):new StringQuery(this)}getCursor(to,no=0,io){let so=to.doc?to:EditorState.create({doc:to});return io==null&&(io=so.doc.length),this.regexp?regexpCursor(this,so,no,io):stringCursor(this,so,no,io)}}class QueryType{constructor(to){this.spec=to}}function stringCursor(eo,to,no,io){return new SearchCursor(to.doc,eo.unquoted,no,io,eo.caseSensitive?void 0:so=>so.toLowerCase(),eo.wholeWord?stringWordTest(to.doc,to.charCategorizer(to.selection.main.head)):void 0)}function stringWordTest(eo,to){return(no,io,so,ao)=>((ao>no||ao+so.length=no)return null;so.push(io.value)}return so}highlight(to,no,io,so){let ao=stringCursor(this.spec,to,Math.max(0,no-this.spec.unquoted.length),Math.min(io+this.spec.unquoted.length,to.doc.length));for(;!ao.next().done;)so(ao.value.from,ao.value.to)}}function regexpCursor(eo,to,no,io){return new RegExpCursor(to.doc,eo.search,{ignoreCase:!eo.caseSensitive,test:eo.wholeWord?regexpWordTest(to.charCategorizer(to.selection.main.head)):void 0},no,io)}function charBefore(eo,to){return eo.slice(findClusterBreak(eo,to,!1),to)}function charAfter(eo,to){return eo.slice(to,findClusterBreak(eo,to))}function regexpWordTest(eo){return(to,no,io)=>!io[0].length||(eo(charBefore(io.input,io.index))!=CharCategory.Word||eo(charAfter(io.input,io.index))!=CharCategory.Word)&&(eo(charAfter(io.input,io.index+io[0].length))!=CharCategory.Word||eo(charBefore(io.input,io.index+io[0].length))!=CharCategory.Word)}class RegExpQuery extends QueryType{nextMatch(to,no,io){let so=regexpCursor(this.spec,to,io,to.doc.length).next();return so.done&&(so=regexpCursor(this.spec,to,0,no).next()),so.done?null:so.value}prevMatchInRange(to,no,io){for(let so=1;;so++){let ao=Math.max(no,io-so*1e4),lo=regexpCursor(this.spec,to,ao,io),uo=null;for(;!lo.next().done;)uo=lo.value;if(uo&&(ao==no||uo.from>ao+10))return uo;if(ao==no)return null}}prevMatch(to,no,io){return this.prevMatchInRange(to,0,no)||this.prevMatchInRange(to,io,to.doc.length)}getReplacement(to){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(no,io)=>io=="$"?"$":io=="&"?to.match[0]:io!="0"&&+io=no)return null;so.push(io.value)}return so}highlight(to,no,io,so){let ao=regexpCursor(this.spec,to,Math.max(0,no-250),Math.min(io+250,to.doc.length));for(;!ao.next().done;)so(ao.value.from,ao.value.to)}}const setSearchQuery=StateEffect.define(),togglePanel$1=StateEffect.define(),searchState=StateField.define({create(eo){return new SearchState(defaultQuery(eo).create(),null)},update(eo,to){for(let no of to.effects)no.is(setSearchQuery)?eo=new SearchState(no.value.create(),eo.panel):no.is(togglePanel$1)&&(eo=new SearchState(eo.query,no.value?createSearchPanel:null));return eo},provide:eo=>showPanel.from(eo,to=>to.panel)});class SearchState{constructor(to,no){this.query=to,this.panel=no}}const matchMark=Decoration.mark({class:"cm-searchMatch"}),selectedMatchMark=Decoration.mark({class:"cm-searchMatch cm-searchMatch-selected"}),searchHighlighter=ViewPlugin.fromClass(class{constructor(eo){this.view=eo,this.decorations=this.highlight(eo.state.field(searchState))}update(eo){let to=eo.state.field(searchState);(to!=eo.startState.field(searchState)||eo.docChanged||eo.selectionSet||eo.viewportChanged)&&(this.decorations=this.highlight(to))}highlight({query:eo,panel:to}){if(!to||!eo.spec.valid)return Decoration.none;let{view:no}=this,io=new RangeSetBuilder;for(let so=0,ao=no.visibleRanges,lo=ao.length;soao[so+1].from-2*250;)ho=ao[++so].to;eo.highlight(no.state,uo,ho,(go,mo)=>{let yo=no.state.selection.ranges.some(So=>So.from==go&&So.to==mo);io.add(go,mo,yo?selectedMatchMark:matchMark)})}return io.finish()}},{decorations:eo=>eo.decorations});function searchCommand(eo){return to=>{let no=to.state.field(searchState,!1);return no&&no.query.spec.valid?eo(to,no):openSearchPanel(to)}}const findNext=searchCommand((eo,{query:to})=>{let{to:no}=eo.state.selection.main,io=to.nextMatch(eo.state,no,no);if(!io)return!1;let so=EditorSelection.single(io.from,io.to),ao=eo.state.facet(searchConfigFacet);return eo.dispatch({selection:so,effects:[announceMatch(eo,io),ao.scrollToMatch(so.main,eo)],userEvent:"select.search"}),selectSearchInput(eo),!0}),findPrevious=searchCommand((eo,{query:to})=>{let{state:no}=eo,{from:io}=no.selection.main,so=to.prevMatch(no,io,io);if(!so)return!1;let ao=EditorSelection.single(so.from,so.to),lo=eo.state.facet(searchConfigFacet);return eo.dispatch({selection:ao,effects:[announceMatch(eo,so),lo.scrollToMatch(ao.main,eo)],userEvent:"select.search"}),selectSearchInput(eo),!0}),selectMatches=searchCommand((eo,{query:to})=>{let no=to.matchAll(eo.state,1e3);return!no||!no.length?!1:(eo.dispatch({selection:EditorSelection.create(no.map(io=>EditorSelection.range(io.from,io.to))),userEvent:"select.search.matches"}),!0)}),selectSelectionMatches=({state:eo,dispatch:to})=>{let no=eo.selection;if(no.ranges.length>1||no.main.empty)return!1;let{from:io,to:so}=no.main,ao=[],lo=0;for(let uo=new SearchCursor(eo.doc,eo.sliceDoc(io,so));!uo.next().done;){if(ao.length>1e3)return!1;uo.value.from==io&&(lo=ao.length),ao.push(EditorSelection.range(uo.value.from,uo.value.to))}return to(eo.update({selection:EditorSelection.create(ao,lo),userEvent:"select.search.matches"})),!0},replaceNext=searchCommand((eo,{query:to})=>{let{state:no}=eo,{from:io,to:so}=no.selection.main;if(no.readOnly)return!1;let ao=to.nextMatch(no,io,io);if(!ao)return!1;let lo=[],uo,ho,go=[];if(ao.from==io&&ao.to==so&&(ho=no.toText(to.getReplacement(ao)),lo.push({from:ao.from,to:ao.to,insert:ho}),ao=to.nextMatch(no,ao.from,ao.to),go.push(EditorView.announce.of(no.phrase("replaced match on line $",no.doc.lineAt(io).number)+"."))),ao){let mo=lo.length==0||lo[0].from>=ao.to?0:ao.to-ao.from-ho.length;uo=EditorSelection.single(ao.from-mo,ao.to-mo),go.push(announceMatch(eo,ao)),go.push(no.facet(searchConfigFacet).scrollToMatch(uo.main,eo))}return eo.dispatch({changes:lo,selection:uo,effects:go,userEvent:"input.replace"}),!0}),replaceAll=searchCommand((eo,{query:to})=>{if(eo.state.readOnly)return!1;let no=to.matchAll(eo.state,1e9).map(so=>{let{from:ao,to:lo}=so;return{from:ao,to:lo,insert:to.getReplacement(so)}});if(!no.length)return!1;let io=eo.state.phrase("replaced $ matches",no.length)+".";return eo.dispatch({changes:no,effects:EditorView.announce.of(io),userEvent:"input.replace.all"}),!0});function createSearchPanel(eo){return eo.state.facet(searchConfigFacet).createPanel(eo)}function defaultQuery(eo,to){var no,io,so,ao,lo;let uo=eo.selection.main,ho=uo.empty||uo.to>uo.from+100?"":eo.sliceDoc(uo.from,uo.to);if(to&&!ho)return to;let go=eo.facet(searchConfigFacet);return new SearchQuery({search:((no=to==null?void 0:to.literal)!==null&&no!==void 0?no:go.literal)?ho:ho.replace(/\n/g,"\\n"),caseSensitive:(io=to==null?void 0:to.caseSensitive)!==null&&io!==void 0?io:go.caseSensitive,literal:(so=to==null?void 0:to.literal)!==null&&so!==void 0?so:go.literal,regexp:(ao=to==null?void 0:to.regexp)!==null&&ao!==void 0?ao:go.regexp,wholeWord:(lo=to==null?void 0:to.wholeWord)!==null&&lo!==void 0?lo:go.wholeWord})}function getSearchInput(eo){let to=getPanel(eo,createSearchPanel);return to&&to.dom.querySelector("[main-field]")}function selectSearchInput(eo){let to=getSearchInput(eo);to&&to==eo.root.activeElement&&to.select()}const openSearchPanel=eo=>{let to=eo.state.field(searchState,!1);if(to&&to.panel){let no=getSearchInput(eo);if(no&&no!=eo.root.activeElement){let io=defaultQuery(eo.state,to.query.spec);io.valid&&eo.dispatch({effects:setSearchQuery.of(io)}),no.focus(),no.select()}}else eo.dispatch({effects:[togglePanel$1.of(!0),to?setSearchQuery.of(defaultQuery(eo.state,to.query.spec)):StateEffect.appendConfig.of(searchExtensions)]});return!0},closeSearchPanel=eo=>{let to=eo.state.field(searchState,!1);if(!to||!to.panel)return!1;let no=getPanel(eo,createSearchPanel);return no&&no.dom.contains(eo.root.activeElement)&&eo.focus(),eo.dispatch({effects:togglePanel$1.of(!1)}),!0},searchKeymap=[{key:"Mod-f",run:openSearchPanel,scope:"editor search-panel"},{key:"F3",run:findNext,shift:findPrevious,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:findNext,shift:findPrevious,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:closeSearchPanel,scope:"editor search-panel"},{key:"Mod-Shift-l",run:selectSelectionMatches},{key:"Mod-Alt-g",run:gotoLine},{key:"Mod-d",run:selectNextOccurrence,preventDefault:!0}];class SearchPanel{constructor(to){this.view=to;let no=this.query=to.state.field(searchState).query.spec;this.commit=this.commit.bind(this),this.searchField=crelt("input",{value:no.search,placeholder:phrase(to,"Find"),"aria-label":phrase(to,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=crelt("input",{value:no.replace,placeholder:phrase(to,"Replace"),"aria-label":phrase(to,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=crelt("input",{type:"checkbox",name:"case",form:"",checked:no.caseSensitive,onchange:this.commit}),this.reField=crelt("input",{type:"checkbox",name:"re",form:"",checked:no.regexp,onchange:this.commit}),this.wordField=crelt("input",{type:"checkbox",name:"word",form:"",checked:no.wholeWord,onchange:this.commit});function io(so,ao,lo){return crelt("button",{class:"cm-button",name:so,onclick:ao,type:"button"},lo)}this.dom=crelt("div",{onkeydown:so=>this.keydown(so),class:"cm-search"},[this.searchField,io("next",()=>findNext(to),[phrase(to,"next")]),io("prev",()=>findPrevious(to),[phrase(to,"previous")]),io("select",()=>selectMatches(to),[phrase(to,"all")]),crelt("label",null,[this.caseField,phrase(to,"match case")]),crelt("label",null,[this.reField,phrase(to,"regexp")]),crelt("label",null,[this.wordField,phrase(to,"by word")]),...to.state.readOnly?[]:[crelt("br"),this.replaceField,io("replace",()=>replaceNext(to),[phrase(to,"replace")]),io("replaceAll",()=>replaceAll(to),[phrase(to,"replace all")])],crelt("button",{name:"close",onclick:()=>closeSearchPanel(to),"aria-label":phrase(to,"close"),type:"button"},["×"])])}commit(){let to=new SearchQuery({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});to.eq(this.query)||(this.query=to,this.view.dispatch({effects:setSearchQuery.of(to)}))}keydown(to){runScopeHandlers(this.view,to,"search-panel")?to.preventDefault():to.keyCode==13&&to.target==this.searchField?(to.preventDefault(),(to.shiftKey?findPrevious:findNext)(this.view)):to.keyCode==13&&to.target==this.replaceField&&(to.preventDefault(),replaceNext(this.view))}update(to){for(let no of to.transactions)for(let io of no.effects)io.is(setSearchQuery)&&!io.value.eq(this.query)&&this.setQuery(io.value)}setQuery(to){this.query=to,this.searchField.value=to.search,this.replaceField.value=to.replace,this.caseField.checked=to.caseSensitive,this.reField.checked=to.regexp,this.wordField.checked=to.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(searchConfigFacet).top}}function phrase(eo,to){return eo.state.phrase(to)}const AnnounceMargin=30,Break=/[\s\.,:;?!]/;function announceMatch(eo,{from:to,to:no}){let io=eo.state.doc.lineAt(to),so=eo.state.doc.lineAt(no).to,ao=Math.max(io.from,to-AnnounceMargin),lo=Math.min(so,no+AnnounceMargin),uo=eo.state.sliceDoc(ao,lo);if(ao!=io.from){for(let ho=0;houo.length-AnnounceMargin;ho--)if(!Break.test(uo[ho-1])&&Break.test(uo[ho])){uo=uo.slice(0,ho);break}}return EditorView.announce.of(`${eo.state.phrase("current match")}. ${uo} ${eo.state.phrase("on line")} ${io.number}.`)}const baseTheme$2=EditorView.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),searchExtensions=[searchState,Prec.low(searchHighlighter),baseTheme$2];class SelectedDiagnostic{constructor(to,no,io){this.from=to,this.to=no,this.diagnostic=io}}class LintState{constructor(to,no,io){this.diagnostics=to,this.panel=no,this.selected=io}static init(to,no,io){let so=to,ao=io.facet(lintConfig).markerFilter;ao&&(so=ao(so,io));let lo=Decoration.set(so.map(uo=>uo.from==uo.to||uo.from==uo.to-1&&io.doc.lineAt(uo.from).to==uo.from?Decoration.widget({widget:new DiagnosticWidget(uo),diagnostic:uo}).range(uo.from):Decoration.mark({attributes:{class:"cm-lintRange cm-lintRange-"+uo.severity+(uo.markClass?" "+uo.markClass:"")},diagnostic:uo,inclusive:!0}).range(uo.from,uo.to)),!0);return new LintState(lo,no,findDiagnostic(lo))}}function findDiagnostic(eo,to=null,no=0){let io=null;return eo.between(no,1e9,(so,ao,{spec:lo})=>{if(!(to&&lo.diagnostic!=to))return io=new SelectedDiagnostic(so,ao,lo.diagnostic),!1}),io}function hideTooltip(eo,to){let no=eo.startState.doc.lineAt(to.pos);return!!(eo.effects.some(io=>io.is(setDiagnosticsEffect))||eo.changes.touchesRange(no.from,no.to))}function maybeEnableLint(eo,to){return eo.field(lintState,!1)?to:to.concat(StateEffect.appendConfig.of(lintExtensions))}const setDiagnosticsEffect=StateEffect.define(),togglePanel=StateEffect.define(),movePanelSelection=StateEffect.define(),lintState=StateField.define({create(){return new LintState(Decoration.none,null,null)},update(eo,to){if(to.docChanged){let no=eo.diagnostics.map(to.changes),io=null;if(eo.selected){let so=to.changes.mapPos(eo.selected.from,1);io=findDiagnostic(no,eo.selected.diagnostic,so)||findDiagnostic(no,null,so)}eo=new LintState(no,eo.panel,io)}for(let no of to.effects)no.is(setDiagnosticsEffect)?eo=LintState.init(no.value,eo.panel,to.state):no.is(togglePanel)?eo=new LintState(eo.diagnostics,no.value?LintPanel.open:null,eo.selected):no.is(movePanelSelection)&&(eo=new LintState(eo.diagnostics,eo.panel,no.value));return eo},provide:eo=>[showPanel.from(eo,to=>to.panel),EditorView.decorations.from(eo,to=>to.diagnostics)]}),activeMark=Decoration.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function lintTooltip(eo,to,no){let{diagnostics:io}=eo.state.field(lintState),so=[],ao=2e8,lo=0;io.between(to-(no<0?1:0),to+(no>0?1:0),(ho,go,{spec:mo})=>{to>=ho&&to<=go&&(ho==go||(to>ho||no>0)&&(torenderDiagnostic(eo,no,!1)))}const openLintPanel=eo=>{let to=eo.state.field(lintState,!1);(!to||!to.panel)&&eo.dispatch({effects:maybeEnableLint(eo.state,[togglePanel.of(!0)])});let no=getPanel(eo,LintPanel.open);return no&&no.dom.querySelector(".cm-panel-lint ul").focus(),!0},closeLintPanel=eo=>{let to=eo.state.field(lintState,!1);return!to||!to.panel?!1:(eo.dispatch({effects:togglePanel.of(!1)}),!0)},nextDiagnostic=eo=>{let to=eo.state.field(lintState,!1);if(!to)return!1;let no=eo.state.selection.main,io=to.diagnostics.iter(no.to+1);return!io.value&&(io=to.diagnostics.iter(0),!io.value||io.from==no.from&&io.to==no.to)?!1:(eo.dispatch({selection:{anchor:io.from,head:io.to},scrollIntoView:!0}),!0)},lintKeymap=[{key:"Mod-Shift-m",run:openLintPanel,preventDefault:!0},{key:"F8",run:nextDiagnostic}],lintConfig=Facet.define({combine(eo){return Object.assign({sources:eo.map(to=>to.source).filter(to=>to!=null)},combineConfig(eo.map(to=>to.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(to,no)=>to?no?io=>to(io)||no(io):to:no}))}});function assignKeys(eo){let to=[];if(eo)e:for(let{name:no}of eo){for(let io=0;ioao.toLowerCase()==so.toLowerCase())){to.push(so);continue e}}to.push("")}return to}function renderDiagnostic(eo,to,no){var io;let so=no?assignKeys(to.actions):[];return crelt("li",{class:"cm-diagnostic cm-diagnostic-"+to.severity},crelt("span",{class:"cm-diagnosticText"},to.renderMessage?to.renderMessage():to.message),(io=to.actions)===null||io===void 0?void 0:io.map((ao,lo)=>{let uo=!1,ho=So=>{if(So.preventDefault(),uo)return;uo=!0;let _o=findDiagnostic(eo.state.field(lintState).diagnostics,to);_o&&ao.apply(eo,_o.from,_o.to)},{name:go}=ao,mo=so[lo]?go.indexOf(so[lo]):-1,yo=mo<0?go:[go.slice(0,mo),crelt("u",go.slice(mo,mo+1)),go.slice(mo+1)];return crelt("button",{type:"button",class:"cm-diagnosticAction",onclick:ho,onmousedown:ho,"aria-label":` Action: ${go}${mo<0?"":` (access key "${so[lo]})"`}.`},yo)}),to.source&&crelt("div",{class:"cm-diagnosticSource"},to.source))}class DiagnosticWidget extends WidgetType{constructor(to){super(),this.diagnostic=to}eq(to){return to.diagnostic==this.diagnostic}toDOM(){return crelt("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class PanelItem{constructor(to,no){this.diagnostic=no,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=renderDiagnostic(to,no,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class LintPanel{constructor(to){this.view=to,this.items=[];let no=so=>{if(so.keyCode==27)closeLintPanel(this.view),this.view.focus();else if(so.keyCode==38||so.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(so.keyCode==40||so.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(so.keyCode==36)this.moveSelection(0);else if(so.keyCode==35)this.moveSelection(this.items.length-1);else if(so.keyCode==13)this.view.focus();else if(so.keyCode>=65&&so.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:ao}=this.items[this.selectedIndex],lo=assignKeys(ao.actions);for(let uo=0;uo{for(let ao=0;aocloseLintPanel(this.view)},"×")),this.update()}get selectedIndex(){let to=this.view.state.field(lintState).selected;if(!to)return-1;for(let no=0;no{let go=-1,mo;for(let yo=io;yoio&&(this.items.splice(io,go-io),so=!0)),no&&mo.diagnostic==no.diagnostic?mo.dom.hasAttribute("aria-selected")||(mo.dom.setAttribute("aria-selected","true"),ao=mo):mo.dom.hasAttribute("aria-selected")&&mo.dom.removeAttribute("aria-selected"),io++});io({sel:ao.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:lo,panel:uo})=>{let ho=uo.height/this.list.offsetHeight;lo.topuo.bottom&&(this.list.scrollTop+=(lo.bottom-uo.bottom)/ho)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),so&&this.sync()}sync(){let to=this.list.firstChild;function no(){let io=to;to=io.nextSibling,io.remove()}for(let io of this.items)if(io.dom.parentNode==this.list){for(;to!=io.dom;)no();to=io.dom.nextSibling}else this.list.insertBefore(io.dom,to);for(;to;)no()}moveSelection(to){if(this.selectedIndex<0)return;let no=this.view.state.field(lintState),io=findDiagnostic(no.diagnostics,this.items[to].diagnostic);io&&this.view.dispatch({selection:{anchor:io.from,head:io.to},scrollIntoView:!0,effects:movePanelSelection.of(io)})}static open(to){return new LintPanel(to)}}function svg(eo,to='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(eo)}')`}function underline(eo){return svg(``,'width="6" height="3"')}const baseTheme=EditorView.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:underline("#d11")},".cm-lintRange-warning":{backgroundImage:underline("orange")},".cm-lintRange-info":{backgroundImage:underline("#999")},".cm-lintRange-hint":{backgroundImage:underline("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),lintExtensions=[lintState,EditorView.decorations.compute([lintState],eo=>{let{selected:to,panel:no}=eo.field(lintState);return!to||!no||to.from==to.to?Decoration.none:Decoration.set([activeMark.range(to.from,to.to)])}),hoverTooltip(lintTooltip,{hideOn:hideTooltip}),baseTheme];var basicSetup=function eo(to){to===void 0&&(to={});var{crosshairCursor:no=!1}=to,io=[];to.closeBracketsKeymap!==!1&&(io=io.concat(closeBracketsKeymap)),to.defaultKeymap!==!1&&(io=io.concat(defaultKeymap)),to.searchKeymap!==!1&&(io=io.concat(searchKeymap)),to.historyKeymap!==!1&&(io=io.concat(historyKeymap)),to.foldKeymap!==!1&&(io=io.concat(foldKeymap)),to.completionKeymap!==!1&&(io=io.concat(completionKeymap)),to.lintKeymap!==!1&&(io=io.concat(lintKeymap));var so=[];return to.lineNumbers!==!1&&so.push(lineNumbers()),to.highlightActiveLineGutter!==!1&&so.push(highlightActiveLineGutter()),to.highlightSpecialChars!==!1&&so.push(highlightSpecialChars()),to.history!==!1&&so.push(history()),to.foldGutter!==!1&&so.push(foldGutter()),to.drawSelection!==!1&&so.push(drawSelection()),to.dropCursor!==!1&&so.push(dropCursor()),to.allowMultipleSelections!==!1&&so.push(EditorState.allowMultipleSelections.of(!0)),to.indentOnInput!==!1&&so.push(indentOnInput()),to.syntaxHighlighting!==!1&&so.push(syntaxHighlighting(defaultHighlightStyle,{fallback:!0})),to.bracketMatching!==!1&&so.push(bracketMatching()),to.closeBrackets!==!1&&so.push(closeBrackets()),to.autocompletion!==!1&&so.push(autocompletion()),to.rectangularSelection!==!1&&so.push(rectangularSelection()),no!==!1&&so.push(crosshairCursor()),to.highlightActiveLine!==!1&&so.push(highlightActiveLine()),to.highlightSelectionMatches!==!1&&so.push(highlightSelectionMatches()),to.tabSize&&typeof to.tabSize=="number"&&so.push(indentUnit.of(" ".repeat(to.tabSize))),so.concat([keymap.of(io.flat())]).filter(Boolean)};const chalky="#e5c07b",coral="#e06c75",cyan="#56b6c2",invalid="#ffffff",ivory="#abb2bf",stone="#7d8799",malibu="#61afef",sage="#98c379",whiskey="#d19a66",violet="#c678dd",darkBackground="#21252b",highlightBackground="#2c313a",background="#282c34",tooltipBackground="#353a42",selection="#3E4451",cursor="#528bff",oneDarkTheme=EditorView.theme({"&":{color:ivory,backgroundColor:background},".cm-content":{caretColor:cursor},".cm-cursor, .cm-dropCursor":{borderLeftColor:cursor},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:selection},".cm-panels":{backgroundColor:darkBackground,color:ivory},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:background,color:stone,border:"none"},".cm-activeLineGutter":{backgroundColor:highlightBackground},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:tooltipBackground},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:tooltipBackground,borderBottomColor:tooltipBackground},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:highlightBackground,color:ivory}}},{dark:!0}),oneDarkHighlightStyle=HighlightStyle.define([{tag:tags$1.keyword,color:violet},{tag:[tags$1.name,tags$1.deleted,tags$1.character,tags$1.propertyName,tags$1.macroName],color:coral},{tag:[tags$1.function(tags$1.variableName),tags$1.labelName],color:malibu},{tag:[tags$1.color,tags$1.constant(tags$1.name),tags$1.standard(tags$1.name)],color:whiskey},{tag:[tags$1.definition(tags$1.name),tags$1.separator],color:ivory},{tag:[tags$1.typeName,tags$1.className,tags$1.number,tags$1.changed,tags$1.annotation,tags$1.modifier,tags$1.self,tags$1.namespace],color:chalky},{tag:[tags$1.operator,tags$1.operatorKeyword,tags$1.url,tags$1.escape,tags$1.regexp,tags$1.link,tags$1.special(tags$1.string)],color:cyan},{tag:[tags$1.meta,tags$1.comment],color:stone},{tag:tags$1.strong,fontWeight:"bold"},{tag:tags$1.emphasis,fontStyle:"italic"},{tag:tags$1.strikethrough,textDecoration:"line-through"},{tag:tags$1.link,color:stone,textDecoration:"underline"},{tag:tags$1.heading,fontWeight:"bold",color:coral},{tag:[tags$1.atom,tags$1.bool,tags$1.special(tags$1.variableName)],color:whiskey},{tag:[tags$1.processingInstruction,tags$1.string,tags$1.inserted],color:sage},{tag:tags$1.invalid,color:invalid}]),oneDark=[oneDarkTheme,syntaxHighlighting(oneDarkHighlightStyle)];var defaultLightThemeOption=EditorView.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),getDefaultExtensions=function eo(to){to===void 0&&(to={});var{indentWithTab:no=!0,editable:io=!0,readOnly:so=!1,theme:ao="light",placeholder:lo="",basicSetup:uo=!0}=to,ho=[];switch(no&&ho.unshift(keymap.of([indentWithTab])),uo&&(typeof uo=="boolean"?ho.unshift(basicSetup()):ho.unshift(basicSetup(uo))),lo&&ho.unshift(placeholder(lo)),ao){case"light":ho.push(defaultLightThemeOption);break;case"dark":ho.push(oneDark);break;case"none":break;default:ho.push(ao);break}return io===!1&&ho.push(EditorView.editable.of(!1)),so&&ho.push(EditorState.readOnly.of(!0)),[...ho]},getStatistics=eo=>({line:eo.state.doc.lineAt(eo.state.selection.main.from),lineCount:eo.state.doc.lines,lineBreak:eo.state.lineBreak,length:eo.state.doc.length,readOnly:eo.state.readOnly,tabSize:eo.state.tabSize,selection:eo.state.selection,selectionAsSingle:eo.state.selection.asSingle().main,ranges:eo.state.selection.ranges,selectionCode:eo.state.sliceDoc(eo.state.selection.main.from,eo.state.selection.main.to),selections:eo.state.selection.ranges.map(to=>eo.state.sliceDoc(to.from,to.to)),selectedText:eo.state.selection.ranges.some(to=>!to.empty)}),External=Annotation.define(),emptyExtensions=[];function useCodeMirror(eo){var{value:to,selection:no,onChange:io,onStatistics:so,onCreateEditor:ao,onUpdate:lo,extensions:uo=emptyExtensions,autoFocus:ho,theme:go="light",height:mo=null,minHeight:yo=null,maxHeight:So=null,width:_o=null,minWidth:ko=null,maxWidth:Co=null,placeholder:$o="",editable:Ro=!0,readOnly:Oo=!1,indentWithTab:No=!0,basicSetup:Mo=!0,root:Bo,initialState:Fo}=eo,[Lo,Go]=reactExports.useState(),[Do,Uo]=reactExports.useState(),[Ho,Yo]=reactExports.useState(),qo=EditorView.theme({"&":{height:mo,minHeight:yo,maxHeight:So,width:_o,minWidth:ko,maxWidth:Co},"& .cm-scroller":{height:"100% !important"}}),Jo=EditorView.updateListener.of(hs=>{if(hs.docChanged&&typeof io=="function"&&!hs.transactions.some(vs=>vs.annotation(External))){var gs=hs.state.doc,ys=gs.toString();io(ys,hs)}so&&so(getStatistics(hs))}),ps=getDefaultExtensions({theme:go,editable:Ro,readOnly:Oo,placeholder:$o,indentWithTab:No,basicSetup:Mo}),Qo=[Jo,qo,...ps];return lo&&typeof lo=="function"&&Qo.push(EditorView.updateListener.of(lo)),Qo=Qo.concat(uo),reactExports.useEffect(()=>{if(Lo&&!Ho){var hs={doc:to,selection:no,extensions:Qo},gs=Fo?EditorState.fromJSON(Fo.json,hs,Fo.fields):EditorState.create(hs);if(Yo(gs),!Do){var ys=new EditorView({state:gs,parent:Lo,root:Bo});Uo(ys),ao&&ao(ys,gs)}}return()=>{Do&&(Yo(void 0),Uo(void 0))}},[Lo,Ho]),reactExports.useEffect(()=>Go(eo.container),[eo.container]),reactExports.useEffect(()=>()=>{Do&&(Do.destroy(),Uo(void 0))},[Do]),reactExports.useEffect(()=>{ho&&Do&&Do.focus()},[ho,Do]),reactExports.useEffect(()=>{Do&&Do.dispatch({effects:StateEffect.reconfigure.of(Qo)})},[go,uo,mo,yo,So,_o,ko,Co,$o,Ro,Oo,No,Mo,io,lo]),reactExports.useEffect(()=>{if(to!==void 0){var hs=Do?Do.state.doc.toString():"";Do&&to!==hs&&Do.dispatch({changes:{from:0,to:hs.length,insert:to||""},annotations:[External.of(!0)]})}},[to,Do]),{state:Ho,setState:Yo,view:Do,setView:Uo,container:Lo,setContainer:Go}}var _excluded=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],ReactCodeMirror=reactExports.forwardRef((eo,to)=>{var{className:no,value:io="",selection:so,extensions:ao=[],onChange:lo,onStatistics:uo,onCreateEditor:ho,onUpdate:go,autoFocus:mo,theme:yo="light",height:So,minHeight:_o,maxHeight:ko,width:Co,minWidth:$o,maxWidth:Ro,basicSetup:Oo,placeholder:No,indentWithTab:Mo,editable:Bo,readOnly:Fo,root:Lo,initialState:Go}=eo,Do=_objectWithoutPropertiesLoose(eo,_excluded),Uo=reactExports.useRef(null),{state:Ho,view:Yo,container:qo}=useCodeMirror({container:Uo.current,root:Lo,value:io,autoFocus:mo,theme:yo,height:So,minHeight:_o,maxHeight:ko,width:Co,minWidth:$o,maxWidth:Ro,basicSetup:Oo,placeholder:No,indentWithTab:Mo,editable:Bo,readOnly:Fo,selection:so,onChange:lo,onStatistics:uo,onCreateEditor:ho,onUpdate:go,extensions:ao,initialState:Go});if(reactExports.useImperativeHandle(to,()=>({editor:Uo.current,state:Ho,view:Yo}),[Uo,qo,Ho,Yo]),typeof io!="string")throw new Error("value must be typeof string but got "+typeof io);var Jo=typeof yo=="string"?"cm-theme-"+yo:"cm-theme";return jsxRuntimeExports.jsx("div",_extends({ref:Uo,className:""+Jo+(no?" "+no:"")},Do))});ReactCodeMirror.displayName="CodeMirror";const TraceFilterInput=({className:eo,hash:to,setHash:no})=>{const io=useClasses$9(),ao=useIsDark()?vscodeDark:void 0,lo="Input filter condition in python syntax. e.g. name == 'web_classification' and cumulative_token_count.total > 1000",[uo,ho]=reactExports.useState(to.filter??""),go=lodashExports.debounce(So=>{ho(So),So.trim()!==""?no({filter:So}):no({filter:void 0})},500),mo=So=>{uo.length>0?go(`${uo} and ${So}`):go(So)},yo=uo!=="";return jsxRuntimeExports.jsx("div",{className:mergeClasses(eo,io.wrapper),children:jsxRuntimeExports.jsxs("div",{className:io.field,children:[jsxRuntimeExports.jsx(Search20Regular,{className:io.searchIcon}),jsxRuntimeExports.jsx(ReactCodeMirror,{basicSetup:{lineNumbers:!1,foldGutter:!1,bracketMatching:!0,syntaxHighlighting:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1,defaultKeymap:!1},className:io.input,height:"36px",width:"100%",value:uo,onChange:go,editable:!0,placeholder:lo,extensions:extensions$1,theme:ao}),jsxRuntimeExports.jsx(DismissCircle20Regular,{className:io.dismissIcon,style:{visibility:yo?"visible":"hidden"},onClick:()=>go("")}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:io.divider}),jsxRuntimeExports.jsxs(Popover,{positioning:"below-end",withArrow:!0,children:[jsxRuntimeExports.jsx(PopoverTrigger,{disableButtonEnhancement:!0,children:jsxRuntimeExports.jsx(AddCircle20Regular,{className:io.addIcon})}),jsxRuntimeExports.jsx(PopoverSurface,{tabIndex:-1,children:jsxRuntimeExports.jsx(FilterConditions,{onAddCondition:mo})})]})]})})};function FilterConditions(eo){const{onAddCondition:to}=eo,no=useClasses$9();return jsxRuntimeExports.jsxs("div",{className:no.conditionsWrapper,children:[jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by name",initialSnippet:"name == 'your_trace_name'",onAddFilterConditionSnippet:to},"name"),jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by kind",initialSnippet:"kind == 'Flow'",onAddFilterConditionSnippet:to},"kind"),jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by status",initialSnippet:"status == 'Error'",onAddFilterConditionSnippet:to},"status"),jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by start_time",initialSnippet:"'2024/04/17 15:36:45' < start_time <'2024/04/18",onAddFilterConditionSnippet:to},"start_time"),jsxRuntimeExports.jsx(FilterConditionRow,{label:"filter by cumulative_token_count",initialSnippet:"cumulative_token_count.total > 1000",onAddFilterConditionSnippet:to},"token")]})}function FilterConditionRow(eo){const{initialSnippet:to,onAddFilterConditionSnippet:no}=eo,[io,so]=reactExports.useState(to),ao=useClasses$9(),uo=useIsDark()?vscodeDark:void 0;return jsxRuntimeExports.jsxs("div",{className:ao.conditionWrapper,children:[jsxRuntimeExports.jsx(Text$2,{size:300,weight:"semibold",children:eo.label}),jsxRuntimeExports.jsxs("div",{className:ao.conditionRow,children:[jsxRuntimeExports.jsx("div",{className:ao.conditionField,children:jsxRuntimeExports.jsx(ReactCodeMirror,{value:io,basicSetup:{lineNumbers:!1,foldGutter:!1,bracketMatching:!0,syntaxHighlighting:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1},className:ao.conditionInput,editable:!0,extensions:[python()],onChange:so,theme:uo})}),jsxRuntimeExports.jsx(Button$2,{title:"Add to filter condition",onClick:()=>no(io),icon:jsxRuntimeExports.jsx(AddCircle20Regular,{}),size:"large"})]})]})}const extensions$1=[keymap.of([{key:"Enter",run:eo=>!0}]),python(),autocompletion({override:[filterConditionCompletions]})];function filterConditionCompletions(eo){const to=eo.matchBefore(/\w*/);return!to||to.from===to.to&&!eo.explicit?null:{from:to.from,options:[{label:"kind",type:"variable",info:"The kind of trace: Flow, Function, etc."},{label:"name",type:"variable",info:"The name of the trace."},{label:"status",type:"variable",info:"The status of the trace."},{label:"cumulative_token_count.total",type:"variable",info:"The total cumulative token count."},{label:"cumulative_token_count.prompt",type:"variable",info:"The cumulative token count for prompt."},{label:"cumulative_token_count.completion",type:"variable",info:"The cumulative token count for completion."},{label:"start_time",type:"variable",info:"The start time of the trace."},{label:"and",type:"keyword",info:"Logical AND operator."},{label:"or",type:"keyword",info:"Logical OR operator."}]}}const useClasses$9=makeStyles({wrapper:{width:"calc(100% - 280px)"},field:{display:"flex",alignItems:"center",...shorthands.flex(1),...shorthands.padding("1px"),...shorthands.border("1px","solid",tokens$1.colorNeutralStroke1),...shorthands.borderRadius("4px")},searchIcon:{...shorthands.margin("0","8px")},dismissIcon:{cursor:"pointer"},addIcon:{marginRight:"8px",cursor:"pointer"},input:{width:"100%",overflowX:"auto",backgroundColor:"red","& .cm-focused":{outlineStyle:"none"},"& .cm-content":{...shorthands.padding("8px",0)}},divider:{...shorthands.flex("none"),...shorthands.padding(0,"8px")},conditionsWrapper:{display:"flex",flexDirection:"column",width:"500px",...shorthands.gap("20px"),...shorthands.padding("4px")},conditionWrapper:{display:"flex",flexDirection:"column"},conditionField:{display:"flex",alignItems:"center",...shorthands.flex(1),...shorthands.padding("1px"),...shorthands.border("1px","solid",tokens$1.colorNeutralStroke1),...shorthands.borderRadius("4px")},conditionRow:{display:"flex",alignItems:"center",marginTop:"4px",...shorthands.gap("8px")},conditionInput:{...shorthands.flex(1),"& .cm-focused":{outlineStyle:"none"},"& .cm-content":{...shorthands.padding("8px",0)}}}),TraceFilter=({hash:eo,setHash:to})=>{const no=useClasses$8(),io=useLocStrings(),so=useTableColumnNames(),[ao,lo]=[useTableHiddenColumnKeys(),useSetTableHiddenColumnKeys()],uo=useTraceListShowMetrics(),[ho,go]=[useTraceFilterChanged(),useSetTraceFilterChanged()],mo=reactExports.useMemo(()=>so.normalColumns.map($o=>$o.key),[so.normalColumns.map($o=>$o.key).join(",")]),yo=reactExports.useMemo(()=>so.evaluationColumns.map($o=>$o.key),[so.evaluationColumns.map($o=>$o.key).join(",")]),So=reactExports.useMemo(()=>[...so.normalColumns,...so.evaluationColumns].filter(Ro=>!ao.includes(Ro.key)).map(Ro=>Ro.key),[ao,so]),_o=($o,Ro)=>{const{optionValue:Oo}=Ro;Oo&&(lo(ao.includes(Oo)?ao.filter(No=>No!==Oo):[...ao,Oo]),go(!0))},ko=reactExports.useCallback($o=>{lo($o?ao.filter(Ro=>!mo.includes(Ro)):lodashExports.union([...ao],[...mo]))},[lo,ao,mo]),Co=reactExports.useCallback($o=>{lo($o?ao.filter(Ro=>!yo.includes(Ro)):lodashExports.union([...ao],[...yo]))},[lo,ao,yo]);return reactExports.useEffect(()=>{ho||(!eo||Object.keys(eo).length===0?lo(lodashExports.union([...ao],[...yo])):lo(lodashExports.union([...ao],[METRICS_COLUMN_KEY])))},[ho,yo]),jsxRuntimeExports.jsxs("div",{className:no.wrapper,children:[eo&&to?jsxRuntimeExports.jsx(TraceFilterInput,{className:no.filter,hash:eo,setHash:to}):jsxRuntimeExports.jsx(Input,{className:no.filter,disabled:!0,placeholder:"NOT implement yet"}),jsxRuntimeExports.jsx(Combobox,{multiselect:!0,placeholder:"Columns Filter",selectedOptions:So,onOptionSelect:_o,children:jsxRuntimeExports.jsxs("div",{className:no.popUp,children:[jsxRuntimeExports.jsx(OptionGroup,{label:jsxRuntimeExports.jsx(Checkbox$2,{checked:mo.every($o=>!ao.includes($o)),onClick:()=>{const $o=mo.every(Ro=>!ao.includes(Ro));ko(!$o)},className:no.smallCheckbox,label:io["Trace Info"],labelPosition:"before"}),children:so.normalColumns.map($o=>jsxRuntimeExports.jsx(Option$3,{value:$o.key,children:$o.name},$o.key))}),uo&&jsxRuntimeExports.jsx(OptionGroup,{label:jsxRuntimeExports.jsx(Checkbox$2,{checked:yo.every($o=>!ao.includes($o)),onClick:()=>{const $o=yo.every(Ro=>!ao.includes(Ro));Co(!$o)},className:no.smallCheckbox,label:io.Metrics,labelPosition:"before"}),children:so.evaluationColumns.map($o=>jsxRuntimeExports.jsx(Option$3,{value:$o.key,text:$o.name,children:jsxRuntimeExports.jsx(Tooltip,{relationship:"label",content:$o.name,children:jsxRuntimeExports.jsx("span",{className:no.optionText,children:$o.name})})},$o.key))})]})})]})},useClasses$8=makeStyles({wrapper:{display:"flex",width:"100%",...shorthands.gap("1rem"),...shorthands.margin(tokens$1.spacingVerticalM,0)},filter:{flexGrow:1},popUp:{overflowX:"hidden"},optionText:{display:"block",width:"90%",...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap"},smallCheckbox:{"& label":{...shorthands.padding("0px"),fontSize:"12px",lineHeight:"12px"},"& .fui-Checkbox__indicator":{marginLeft:"4px !important",marginRight:"0px !important",marginTop:"2px !important",marginBottom:"0px !important",width:"12px",height:"12px"}}});function TraceList({onRowClick:eo,className:to}){const no=useClasses$7(),io=useTraceListRows(),{columns:so,ref:ao}=useTraceListColumns(),lo=useTraceListViewStatus(),uo=useTraceListLoadingComponent(),ho=useTraceListErrorComponent(),go=useIsDark();useDebugFunctions();const mo=useSortColumn(),yo=useSetSortColumn(),So=mo?[mo]:[],_o=useOnClickTraceRow(),ko=reactExports.useCallback(Co=>{const{row:$o,column:Ro}=Co;_o($o,Ro.key),eo==null||eo($o)},[_o,eo]);return lo===ViewStatus.error?jsxRuntimeExports.jsx(ho,{}):lo===ViewStatus.loading?jsxRuntimeExports.jsx(uo,{}):jsxRuntimeExports.jsx("div",{ref:ao,className:no.root,children:jsxRuntimeExports.jsx(DataGrid$1$1,{className:`${no.grid} ${to??""} ${go?"rdg-dark":"rdg-light"}`,renderers:{noRowsFallback:jsxRuntimeExports.jsxs("div",{style:{textAlign:"center",gridColumn:"1/-1",display:"flex",alignItems:"center",justifyContent:"center"},children:[jsxRuntimeExports.jsx(TextBulletListSquareWarning24Regular,{}),jsxRuntimeExports.jsx(Text$2,{style:{paddingLeft:"1rem"},children:"No traces found."})]})},rowClass:()=>no.row,columns:so,rows:io,headerRowHeight:26,rowHeight:80,onCellClick:ko,defaultColumnOptions:{resizable:!0},sortColumns:So,onSortColumnsChange:Co=>{var $o;yo(($o=Co.slice(-1))==null?void 0:$o[0])}})})}const useClasses$7=makeStyles({root:{display:"flex",flexDirection:"column",flexGrow:1},grid:{},row:{cursor:"pointer"}}),DefaultDetailContainer=({isOpen:eo,setIsOpen:to,header:no=null,content:io})=>jsxRuntimeExports.jsxs(OverlayDrawer,{position:"end",style:{width:"calc(100% - 48px)"},open:eo,onOpenChange:(so,ao)=>to(ao.open),children:[no,jsxRuntimeExports.jsx("div",{style:{width:"100%",height:"calc(100vh - 40px)"},children:io})]});makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},divider:{flexGrow:0,...shorthands.margin("16px",0)},grid:{flexGrow:1}});makeStyles({wrapper:{display:"flex",flexDirection:"column",justifyContent:"space-between",...shorthands.flex(0,0,"auto")},horizontal:{flexDirection:"row",alignItems:"center",...shorthands.flex(0,0,"auto")},title:{color:tokens$1.colorNeutralForeground2,marginBottom:tokens$1.spacingVerticalXS},data:{color:tokens$1.colorNeutralForeground1},tagsWrapper:{display:"flex",flexDirection:"row",...shorthands.gap("0.5rem")},tagsWrapperHorizontal:{flexDirection:"column"},timeWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyItems:"center","> svg":{marginRight:"5px"}},scoreWrapper:{display:"flex",flexDirection:"row",alignItems:"center","> :first-child":{marginRight:"8px"}}});const defaultLocStrings=new Proxy({},{get:(eo,to)=>to.replace(/_/g," ")}),RegistryWrapper=createRegistry({name:"TraceView"}),Provider=({isDark:eo=!1,viewModel:to,children:no,locStrings:io=defaultLocStrings,TraceListLoading:so,TraceListError:ao,TraceDetailLoading:lo,TraceDetailError:uo})=>{const ho=React.useCallback(go=>{go.register(TraceViewModelToken,{useValue:to}),so&&go.register(traceListLoadingInjectionToken,{useValue:so}),ao&&go.register(traceListErrorInjectionToken,{useValue:ao}),lo&&go.register(traceDetailLoadingInjectionToken,{useValue:lo}),uo&&go.register(traceDetailErrorInjectionToken,{useValue:uo}),io&&go.register(locStringsInjectionToken,{useValue:io}),go.register(agentsViewModelInjectionToken,{useValue:new AgentsViewModel})},[]);return jsxRuntimeExports.jsx(TraceViewThemeContext.Provider,{value:eo,children:jsxRuntimeExports.jsx(RegistryWrapper,{onInitialize:ho,children:no})})},ThemeContext=reactExports.createContext({});ThemeContext.displayName="ThemeContext";const ThemeContextProvider=({children:eo})=>{const[to,no]=reactExports.useState("light");return reactExports.useEffect(()=>{const io=window.matchMedia("(prefers-color-scheme: dark)");no(io.matches?"dark":"light");const so=ao=>{no(ao.matches?"dark":"light")};return io.addEventListener("change",so),()=>{io.removeEventListener("change",so)}},[]),jsxRuntimeExports.jsx(ThemeContext.Provider,{value:{theme:to,setTheme:no},children:eo})};function genLocalUrlParamsWithHash(eo){if(!isNotNullOrUndefined(eo))return"list";let to="";return isNotNullOrUndefined(eo.session)?to=`session=${eo.session}`:isNotNullOrUndefined(eo.collection)?to=`collection=${eo.collection}`:isNotNullOrUndefined(eo.experiment)?to=`experiment=${eo.experiment}`:isNotNullOrUndefined(eo.run)?to=`run=${eo.run}`:isNotNullOrUndefined(eo.trace)&&(to=`trace_ids=${eo.trace}`),isNotNullOrUndefined(eo.filter)?encodeURI(`search?expression=${eo.filter}${to?`&${to}`:""}`):encodeURI(`list?${to}`)}function isNotNullOrUndefined(eo){return eo!=null}const getSummariesSignature=eo=>eo.flatMap(io=>[`${io.line_run_id}_${io.status}`,...Object.values(io.evaluations??[]).map(so=>`${so.trace_id}_${so.status}`)]).sort().join(","),useLocalFetchSummaries=eo=>{const to=useTraceViewModel(),[no,io]=reactExports.useState(!0),so=useLocalFetchSummariesFunc(eo),ao=useTraceListAutoRefreshInterval();reactExports.useEffect(()=>{no&&to.setTraceListStatus(ViewStatus.loading),so().finally(()=>{no&&io(!1)});let lo;if(ao!==AutoRefreshInterval.OFF){const uo=REFRESH_INTERVAL_MAP[ao];uo&&(lo=setInterval(so,uo))}return()=>{lo&&clearInterval(lo)}},[so,ao])},useLocalFetchSummary=()=>{const eo=useTraceViewModel();return reactExports.useCallback(async no=>fetch(`${LOCAL_URL_PREFIX}/v1.0/LineRuns/list?trace_ids=${no}`).then(io=>io.json()).then(io=>{if(io&&Array.isArray(io))eo.appendTraces(io),eo.setTraceListStatus(ViewStatus.loaded);else throw new Error("fetchSummary: Invalid response")}).catch(io=>{eo.setTraceListStatus(ViewStatus.error),eo.appendTraces([]),console.error("Error:",io)}),[eo])},useLocalFetchSummariesFunc=eo=>{const to=useTraceViewModel(),[no,io]=reactExports.useState(void 0),so=useSetLoadSummariesError();return reactExports.useCallback(async()=>{const lo=`${LOCAL_URL_PREFIX}/v1.0/LineRuns/${genLocalUrlParamsWithHash(eo)}`;return fetch(lo).then(async uo=>{const ho=await uo.json();if(!uo.ok)throw new Error("message"in ho?String(ho.message):"Failed to fetch");const go=ho;if(!go&&Array.isArray(go))throw new Error("No new traces");const mo=getSummariesSignature(go);(no===void 0||mo!==no)&&(io(mo),to.traces$.clear(),to.appendTraces(go)),to.setTraceListStatus(ViewStatus.loaded)}).catch(uo=>{to.setTraceListStatus(ViewStatus.error),to.appendTraces([]),so(uo),console.error("Error:",uo)})},[eo,to])},useLocalRefreshTraces=eo=>{const to=useTraceViewModel(),no=useLocalFetchSummariesFunc(eo);return reactExports.useCallback(()=>{to.setTraceListStatus(ViewStatus.loading),no()},[no,to])},useLocalFetchRunningTraces=()=>{const eo=useTraces(),to=useLocalFetchSummary(),no=eo.filter(io=>checkStatus(io.status,"running")).map(io=>io.trace_id).filter(io=>io!==void 0);reactExports.useEffect(()=>{let io;return no.length>0&&(io=setInterval(()=>{no.forEach(so=>to(so))},RUNNING_TRACE_POLLING_GAP)),()=>{io&&clearInterval(io)}},[to,no])},useLocalTraceDetailDidOpen=eo=>{const to=useTraceViewModel(),no=useLocalFetchSummary(),io=useFetchLocalSpans();return reactExports.useCallback(async ao=>{if(!ao)return;let lo=to.getTraceById(ao);lo||(await no(ao),lo=to.getTraceById(ao));const uo=[ao,...Object.values((lo==null?void 0:lo.evaluations)??[]).map(ho=>ho.trace_id)].filter(ho=>ho!==void 0);eo({uiTraceId:ao}),to.setTraceDetailStatus(ViewStatus.loading),io(uo)},[to])},useLocalOnTraceDetailClose=eo=>reactExports.useCallback(()=>{eo({uiTraceId:void 0})},[eo]),useFetchLocalSpans=()=>{const eo=useTraceViewModel();return reactExports.useCallback(no=>{fetch(`${LOCAL_URL_PREFIX}/v1.0/Spans/list?trace_ids=${no.join(",")}&lazy_load=${eo.isLazyLoadSpan}`).then(io=>io.json()).then(io=>{if(!io||!Array.isArray(io))throw new Error("Invalid response");eo.appendSpans(io),eo.setTraceDetailStatus(ViewStatus.loaded)}).catch(io=>{console.error("Error:",io),eo.setTraceDetailStatus(ViewStatus.error)})},[eo])},useLocalOnRefreshSpans=()=>{const eo=useLocalFetchSummary(),to=useFetchLocalSpans();return reactExports.useCallback((io,so)=>{const ao=[io,...Object.values((so==null?void 0:so.evaluations)??[]).map(lo=>lo.trace_id)].filter(lo=>lo!==void 0);eo(io),to(ao)},[to,eo])},fetchSpanEvent=eo=>fetch(`${LOCAL_URL_PREFIX}/v1.0/Spans/Event/${eo}`).then(to=>to.json()).then(to=>({status:"success",data:to})).catch(to=>({status:"error",error:to}));function useHashObject(){const[eo,to]=reactExports.useState(()=>queryString.parse(window.location.hash.substring(1))),no=reactExports.useCallback(io=>{to(so=>{const ao={...so,...io},lo=queryString.stringify(ao);return window.location.hash=lo,ao})},[]);return reactExports.useEffect(()=>{const io=()=>{to(queryString.parse(window.location.hash.substring(1)))};return window.addEventListener("hashchange",io),()=>window.removeEventListener("hashchange",io)},[]),[eo,no]}const AutoRefreshSwitcher=({style:eo})=>{const to=useLocStrings(),no=useClasses$6(),[io,so]=[useTraceListAutoRefreshInterval(),useSetTraceListAutoRefreshInterval()];return jsxRuntimeExports.jsxs("div",{className:no.wrapper,style:eo,children:[jsxRuntimeExports.jsxs(Text$2,{children:[to["Auto Refresh"],":"]}),jsxRuntimeExports.jsx(Toolbar,{"aria-label":"Auto Refresh Switcher",checkedValues:{autoRefreshOptions:[io]},onCheckedValueChange:(ao,{name:lo,checkedItems:uo})=>{lo==="autoRefreshOptions"&&so(uo[0])},children:jsxRuntimeExports.jsx(ToolbarRadioGroup,{children:AUTO_REFRESH_LIST.map(ao=>jsxRuntimeExports.jsx(ToolbarRadioButton,{appearance:"subtle",name:"autoRefreshOptions",as:"button",value:ao,icon:jsxRuntimeExports.jsx("span",{className:no.text,children:ao})},ao))})})]})},useClasses$6=makeStyles({wrapper:{display:"flex",alignItems:"center"},text:{fontSize:"12px"}}),ThemeSwitcher=({style:eo,labelName:to})=>{const no=useLocStrings(),{theme:io,setTheme:so}=reactExports.useContext(ThemeContext);return jsxRuntimeExports.jsx(Switch,{label:to||no["Dark Theme"],labelPosition:"before",checked:io==="dark",onChange:(ao,lo)=>so(lo.checked?"dark":"light"),style:eo})},LocalCommonHeader=({slot:eo,showRefresh:to=!1})=>{const no=useClasses$5(),io=useLocStrings(),so=useTraceViewModel(),[ao]=useHashObject(),lo=ao.collection;return jsxRuntimeExports.jsxs("div",{className:no.root,children:[jsxRuntimeExports.jsx("div",{className:no.nav,children:jsxRuntimeExports.jsxs(Breadcrumb,{children:[jsxRuntimeExports.jsx(BreadcrumbItem,{children:jsxRuntimeExports.jsx(Link$2,{className:no.breadcrumbLink,to:"/collections",children:io.Collections})}),isNotNullOrUndefined(lo)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(BreadcrumbDivider,{}),jsxRuntimeExports.jsx(BreadcrumbItem,{className:no.breadcrumbItem,children:lo})]}):null]})}),jsxRuntimeExports.jsxs("div",{className:no.wrapper,children:[jsxRuntimeExports.jsx("div",{className:no.main,children:jsxRuntimeExports.jsx("span",{className:no.title,children:io.Traces})}),to&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tooltip,{content:io["Refresh Data"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Refresh",icon:jsxRuntimeExports.jsx(ArrowClockwise16Regular,{}),onClick:()=>so.refreshTraces()})}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:no.divider})]}),jsxRuntimeExports.jsx(AutoRefreshSwitcher,{}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:no.divider}),jsxRuntimeExports.jsx(ThemeSwitcher,{})]}),eo]})},useClasses$5=makeStyles({root:{display:"flex",flexDirection:"column",width:"100%"},nav:{},breadcrumbLink:{...shorthands.padding(tokens$1.spacingVerticalXXS,tokens$1.spacingHorizontalS,tokens$1.spacingVerticalXXS,0),color:tokens$1.colorBrandForegroundLink},breadcrumbItem:{...shorthands.padding(tokens$1.spacingVerticalXXS,tokens$1.spacingHorizontalS)},wrapper:{display:"flex",alignItems:"center",...shorthands.padding(tokens$1.spacingVerticalXXS,0)},main:{width:"100%",...shorthands.flex(1)},title:{fontWeight:600},divider:{flexGrow:0,height:"20px",...shorthands.margin(0,"8px")}}),LocalOverallMetric=({hash:eo})=>{var uo;const[[to,no],io]=reactExports.useState([void 0,void 0]),so=useClasses$4(),ao=useTraces(),lo=(()=>{if(isNotNullOrUndefined(eo.run)){const ho=eo.run.split(",");if(ho.length===1)return ho[0]}})();return reactExports.useEffect(()=>{lo&&Promise.allSettled([fetch(`${LOCAL_URL_PREFIX}/v1.0/Runs/${lo}`),fetch(`${LOCAL_URL_PREFIX}/v1.0/Runs/${lo}/metrics`)]).then(async ho=>{if(ho.some(go=>go.status==="rejected")){io([void 0,void 0]);return}else{const go=ho.map(mo=>mo.value);if(go.some(mo=>!mo.ok)){io([void 0,void 0]);return}else{const mo=await go[0].json(),yo=await go[1].json();io([mo,yo])}}})},[lo]),lo&&to&&no?jsxRuntimeExports.jsxs("div",{className:so.wrapper,children:[jsxRuntimeExports.jsx("div",{className:so.title,children:lo}),jsxRuntimeExports.jsxs("div",{className:so.blockListWrapper,children:[jsxRuntimeExports.jsx(InfoBlock,{title:"Total traces:",value:ao.length}),isNotNullOrUndefined(to.status)&&jsxRuntimeExports.jsx(InfoBlock,{title:"Status:",value:to.status,slot:jsxRuntimeExports.jsx(StatusText,{statusCode:to.status,showText:!0,size:UISize.small})}),isNotNullOrUndefined(to==null?void 0:to.created_on)&&jsxRuntimeExports.jsx(InfoBlock,{title:"Create on:",value:timeFormat$1(to.created_on)}),((uo=to==null?void 0:to.properties)==null?void 0:uo.system_metrics)&&jsxRuntimeExports.jsx(SystemMetrics,{systemMetrics:to.properties.system_metrics}),isNotNullOrUndefined(no)&&Object.keys(no).length>0&&jsxRuntimeExports.jsx(Metrics,{metrics:no})]})]}):null},InfoBlock=({title:eo,slot:to,value:no})=>{const io=useClasses$4();return jsxRuntimeExports.jsxs("div",{className:io.blockWrapper,children:[jsxRuntimeExports.jsx("div",{className:io.blockTitle,children:eo}),to||jsxRuntimeExports.jsx("div",{className:io.blockValue,children:no.toString()})]})},SYSTEM_METRICS_NAME_MAP={completion_tokens:"Completion tokens",duration:"Duration",prompt_tokens:"Prompt tokens",total_tokens:"Total tokens"},SystemMetrics=({systemMetrics:eo})=>{const to=useClasses$4();return jsxRuntimeExports.jsx(InfoBlock,{title:"System metrics:",slot:jsxRuntimeExports.jsxs("div",{className:to.metricsWrapper,children:[jsxRuntimeExports.jsx("div",{className:to.metricsItemRow,children:["prompt_tokens","total_tokens"].map(no=>eo[no]!==void 0?jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${SYSTEM_METRICS_NAME_MAP[no]}: ${eo[no]}`},no):null)}),jsxRuntimeExports.jsx("div",{className:to.metricsItemRow,children:["completion_tokens","duration"].map(no=>eo[no]!==void 0?jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${SYSTEM_METRICS_NAME_MAP[no]}: ${eo[no]}`},no):null)})]})})},Metrics=({metrics:eo})=>{const to=useClasses$4();return jsxRuntimeExports.jsx(InfoBlock,{title:"Metrics:",slot:jsxRuntimeExports.jsx("div",{className:to.metricsItemColumn,children:Object.entries(eo).map(([no,io])=>jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${no}: ${io}`},no))})})},useClasses$4=makeStyles({wrapper:{display:"flex",flexDirection:"column",boxSizing:"border-box",...shorthands.gap("6px"),...shorthands.borderRadius("4px"),...shorthands.margin("0","24px"),...shorthands.padding("16px"),...shorthands.border("1px","solid",tokens$1.colorNeutralStroke2)},title:{fontSize:"16px",fontWeight:600,lineHeight:"22px"},blockListWrapper:{display:"flex",...shorthands.gap("24px")},blockWrapper:{display:"flex",flexDirection:"column",...shorthands.gap("4px")},blockTitle:{fontSize:"12px",fontWeight:"600",lineHeight:"16px"},blockValue:{fontSize:"14px",lineHeight:"20px",fontWeight:"400"},metricsWrapper:{display:"flex",flexDirection:"column",...shorthands.gap("8px")},metricsItemRow:{display:"flex",...shorthands.gap("8px")},metricsItemColumn:{display:"flex",flexDirection:"column",...shorthands.gap("8px")},metricsItem:{fontSize:"12px",lineHeight:"16px",fontWeight:"400",...shorthands.padding("4px","8px"),...shorthands.borderRadius("4px"),...shorthands.border("1px","solid",tokens$1.colorNeutralStroke1)}});function LocalTraceDetailError(){const eo=useLocStrings(),to=useLoadSummariesError();return jsxRuntimeExports.jsx(GeneralErrorBar,{title:eo.Failed_to_load_trace,message:to==null?void 0:to.message,onClick:()=>{}})}const CollectionHeader=()=>{const eo=useClasses$3(),to=useLocStrings();return jsxRuntimeExports.jsxs("div",{className:eo.root,children:[jsxRuntimeExports.jsx("div",{className:eo.nav,children:jsxRuntimeExports.jsx(Link$2,{to:"/traces",style:{color:tokens$1.colorBrandForegroundLink},children:to.Traces})}),jsxRuntimeExports.jsxs("div",{className:eo.content,children:[jsxRuntimeExports.jsx("div",{className:eo.main,children:jsxRuntimeExports.jsx("span",{className:eo.title,children:to.Collections})}),jsxRuntimeExports.jsx(ThemeSwitcher,{})]})]})},useClasses$3=makeStyles({root:{},content:{display:"flex",alignItems:"center"},nav:{paddingBottom:tokens$1.spacingVerticalXXS},main:{...shorthands.flex(1)},title:{fontWeight:600}}),fetchCollectionList=()=>fetch(`${LOCAL_URL_PREFIX}/v1.0/LineRuns/Collections/list`).then(eo=>eo.json()),CollectionList=()=>{const eo=useIsDark(),to=useLocStrings(),[no,io]=reactExports.useState([]),so=[{key:"name",name:to.Name,renderCell:({row:uo})=>jsxRuntimeExports.jsx(Link$2,{style:{color:tokens$1.colorBrandForegroundLink},to:`/traces/#collection=${uo.name}`,children:uo.name})},{key:"update_time",name:to["Update Time"],renderCell:({row:uo})=>jsxRuntimeExports.jsx(TimeText,{time:uo.update_time})}],[ao,lo]=reactExports.useState(ViewStatus.loading);return reactExports.useEffect(()=>{lo(ViewStatus.loading),fetchCollectionList().then(uo=>{io(uo),lo(ViewStatus.loaded)}).catch(()=>{lo(ViewStatus.error)})},[]),jsxRuntimeExports.jsxs("div",{children:[ao===ViewStatus.loading&&jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh"},children:jsxRuntimeExports.jsx(Spinner,{size:"small"})}),ao===ViewStatus.error&&jsxRuntimeExports.jsx("div",{style:{marginLeft:"-8px"},children:jsxRuntimeExports.jsx(GeneralErrorBar,{title:to.Failed_to_fetch,message:to["try to check pf service status and pf version"],onClick:()=>{}})}),ao===ViewStatus.loaded&&jsxRuntimeExports.jsx(DataGrid$1$1,{className:`${eo?"rdg-dark":"rdg-light"}`,rows:no,columns:so})]})},CollectionListView=()=>{const eo=useClasses$2();return jsxRuntimeExports.jsxs("div",{className:eo.root,children:[jsxRuntimeExports.jsx(CollectionHeader,{}),jsxRuntimeExports.jsx("div",{className:eo.content,children:jsxRuntimeExports.jsx(CollectionList,{})})]})},useClasses$2=makeStyles({root:{display:"flex",flexDirection:"column",height:"100%"},content:{...shorthands.flex(1),...shorthands.overflow("auto")}}),LocalTraceView=eo=>{const{viewModel:to,isDark:no}=eo;return jsxRuntimeExports.jsx(Provider,{viewModel:to,isDark:no,TraceListError:LocalTraceDetailError,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/collections",element:jsxRuntimeExports.jsx(CollectionListView,{})}),jsxRuntimeExports.jsx(Route,{path:"/traces",element:jsxRuntimeExports.jsx(TraceListView,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/traces",replace:!0})})]})})},TraceListView=()=>{const[eo,to]=useHashObject(),no=useClasses$1(),io=useIsTraceDetailOpen(),so=useSetIsTraceDetailOpen(),ao=useTraceViewModel(),lo=useGetTraceByLineRunId(),[uo,ho]=React.useState(!1),[go,mo]=React.useState(!1),yo=useSelectedTrace(),So=useLocalFetchSummary(),_o=useFetchLocalSpans();useLocalFetchSummaries(eo),useLocalFetchRunningTraces();const ko=useLocalTraceDetailDidOpen(to),Co=useLocalOnTraceDetailClose(to),$o=useLocalRefreshTraces(eo),Ro=useLocalOnRefreshSpans();return reactExports.useEffect(()=>{ao.traceDetailDidOpen(ko),ao.traceDetailDidClose(Co),ao.setOnRefreshTraces($o),ao.onRefreshSpans(Ro)},[Ro,$o,Co,ko,ao]),reactExports.useEffect(()=>{let Oo;return uo&&io&&yo&&go&&(Oo=setInterval(()=>{const No=[yo==null?void 0:yo.trace_id,...Object.values((yo==null?void 0:yo.evaluations)??[]).map(Mo=>Mo.trace_id)].filter(Mo=>Mo!==void 0);_o(No),yo.trace_id&&So(yo.trace_id)},SPAN_POLLING_GAP)),()=>{Oo&&clearInterval(Oo)}},[go,yo,io,ao,uo,So,_o]),reactExports.useEffect(()=>{io&&yo&&(checkStatus(yo.status,"Running")?ho(!0):ho(!1))},[So,io,yo]),reactExports.useEffect(()=>{if(isNotNullOrUndefined(eo.line_run_id)){const Oo=lo(eo.line_run_id);Oo&&to({uiTraceId:Oo.trace_id,line_run_id:void 0})}},[lo,eo.line_run_id,to]),reactExports.useEffect(()=>{isNotNullOrUndefined(eo.uiTraceId)&&ao.setTraceDetailOpen(!0,eo.uiTraceId)},[ao,eo.uiTraceId]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:no.wrapper,children:[jsxRuntimeExports.jsx(LocalCommonHeader,{showRefresh:!0,slot:jsxRuntimeExports.jsx(LocalOverallMetric,{hash:eo})}),jsxRuntimeExports.jsx(TraceFilter,{hash:eo,setHash:to}),jsxRuntimeExports.jsx(TraceList,{className:no.grid,onRowClick:()=>{so(!0)}})]}),jsxRuntimeExports.jsx(DefaultDetailContainer,{isOpen:io,setIsOpen:so,header:jsxRuntimeExports.jsx(TraceDetailHeader,{setIsTraceDetailOpen:so,showStreamSwitch:uo,showGantt:!0,showCopyUrl:!0,isStreaming:go,onIsStreamingChange:mo}),content:jsxRuntimeExports.jsx(TraceDetail,{})})]})},useClasses$1=makeStyles({header:{display:"flex",width:"100%"},wrapper:{display:"flex",flexDirection:"column",height:"100%"},grid:{flexGrow:1}});window.TraceView_Version="20240805.4-main";const TraceViewApp=()=>{const eo=useClasses(),to=React.useMemo(()=>new TraceViewModel({spanConfig:{fetchSpanEvent,isLazyLoadSpan:!1}}),[]);return jsxRuntimeExports.jsx(ThemeContextProvider,{children:jsxRuntimeExports.jsx(ThemeContext.Consumer,{children:({theme:no})=>{const io=no==="dark";return jsxRuntimeExports.jsxs(FluentProvider,{theme:io?webDarkTheme:webLightTheme,style:{height:"100%",width:"100%"},children:[jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:` html, body { height: 100%; @@ -2016,7 +2016,7 @@ ${eo.themeCSS}`),eo.fontFamily!==void 0&&(io+=` -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } - + #root { height: 100%; width: 100%; @@ -2276,13 +2276,13 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(no+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class DocumentFragment{constructor(to){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=to,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(to){return utils.contains(this.classes,to)}toNode(){for(var to=document.createDocumentFragment(),no=0;nono.toText();return this.children.map(to).join("")}}var fontMetricsData={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},sigmasAndXis={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},extraCharacterMap={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function setFontMetrics(eo,to){fontMetricsData[eo]=to}function getCharacterMetrics(eo,to,no){if(!fontMetricsData[to])throw new Error("Font metrics not found for font: "+to+".");var io=eo.charCodeAt(0),so=fontMetricsData[to][io];if(!so&&eo[0]in extraCharacterMap&&(io=extraCharacterMap[eo[0]].charCodeAt(0),so=fontMetricsData[to][io]),!so&&no==="text"&&supportedCodepoint(io)&&(so=fontMetricsData[to][77]),so)return{depth:so[0],height:so[1],italic:so[2],skew:so[3],width:so[4]}}var fontMetricsBySizeIndex={};function getGlobalMetrics(eo){var to;if(eo>=5?to=0:eo>=3?to=1:to=2,!fontMetricsBySizeIndex[to]){var no=fontMetricsBySizeIndex[to]={cssEmPerMu:sigmasAndXis.quad[to]/18};for(var io in sigmasAndXis)sigmasAndXis.hasOwnProperty(io)&&(no[io]=sigmasAndXis[io][to])}return fontMetricsBySizeIndex[to]}var sizeStyleMap=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],sizeMultipliers=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],sizeAtStyle=function eo(to,no){return no.size<2?to:sizeStyleMap[to-1][no.size-1]};class Options{constructor(to){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=to.style,this.color=to.color,this.size=to.size||Options.BASESIZE,this.textSize=to.textSize||this.size,this.phantom=!!to.phantom,this.font=to.font||"",this.fontFamily=to.fontFamily||"",this.fontWeight=to.fontWeight||"",this.fontShape=to.fontShape||"",this.sizeMultiplier=sizeMultipliers[this.size-1],this.maxSize=to.maxSize,this.minRuleThickness=to.minRuleThickness,this._fontMetrics=void 0}extend(to){var no={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var io in to)to.hasOwnProperty(io)&&(no[io]=to[io]);return new Options(no)}havingStyle(to){return this.style===to?this:this.extend({style:to,size:sizeAtStyle(this.textSize,to)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(to){return this.size===to&&this.textSize===to?this:this.extend({style:this.style.text(),size:to,textSize:to,sizeMultiplier:sizeMultipliers[to-1]})}havingBaseStyle(to){to=to||this.style.text();var no=sizeAtStyle(Options.BASESIZE,to);return this.size===no&&this.textSize===Options.BASESIZE&&this.style===to?this:this.extend({style:to,size:no})}havingBaseSizing(){var to;switch(this.style.id){case 4:case 5:to=3;break;case 6:case 7:to=1;break;default:to=6}return this.extend({style:this.style.text(),size:to})}withColor(to){return this.extend({color:to})}withPhantom(){return this.extend({phantom:!0})}withFont(to){return this.extend({font:to})}withTextFontFamily(to){return this.extend({fontFamily:to,font:""})}withTextFontWeight(to){return this.extend({fontWeight:to,font:""})}withTextFontShape(to){return this.extend({fontShape:to,font:""})}sizingClasses(to){return to.size!==this.size?["sizing","reset-size"+to.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Options.BASESIZE?["sizing","reset-size"+this.size,"size"+Options.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=getGlobalMetrics(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Options.BASESIZE=6;var ptPerUnit={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},relativeUnit={ex:!0,em:!0,mu:!0},validUnit=function eo(to){return typeof to!="string"&&(to=to.unit),to in ptPerUnit||to in relativeUnit||to==="ex"},calculateSize=function eo(to,no){var io;if(to.unit in ptPerUnit)io=ptPerUnit[to.unit]/no.fontMetrics().ptPerEm/no.sizeMultiplier;else if(to.unit==="mu")io=no.fontMetrics().cssEmPerMu;else{var so;if(no.style.isTight()?so=no.havingStyle(no.style.text()):so=no,to.unit==="ex")io=so.fontMetrics().xHeight;else if(to.unit==="em")io=so.fontMetrics().quad;else throw new ParseError("Invalid unit: '"+to.unit+"'");so!==no&&(io*=so.sizeMultiplier/no.sizeMultiplier)}return Math.min(to.number*io,no.maxSize)},makeEm=function eo(to){return+to.toFixed(4)+"em"},createClass=function eo(to){return to.filter(no=>no).join(" ")},initNode=function eo(to,no,io){if(this.classes=to||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=io||{},no){no.style.isTight()&&this.classes.push("mtight");var so=no.getColor();so&&(this.style.color=so)}},toNode=function eo(to){var no=document.createElement(to);no.className=createClass(this.classes);for(var io in this.style)this.style.hasOwnProperty(io)&&(no.style[io]=this.style[io]);for(var so in this.attributes)this.attributes.hasOwnProperty(so)&&no.setAttribute(so,this.attributes[so]);for(var ao=0;ao",no};class Span{constructor(to,no,io,so){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,initNode.call(this,to,io,so),this.children=no||[]}setAttribute(to,no){this.attributes[to]=no}hasClass(to){return utils.contains(this.classes,to)}toNode(){return toNode.call(this,"span")}toMarkup(){return toMarkup.call(this,"span")}}class Anchor{constructor(to,no,io,so){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,initNode.call(this,no,so),this.children=io||[],this.setAttribute("href",to)}setAttribute(to,no){this.attributes[to]=no}hasClass(to){return utils.contains(this.classes,to)}toNode(){return toNode.call(this,"a")}toMarkup(){return toMarkup.call(this,"a")}}class Img{constructor(to,no,io){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=no,this.src=to,this.classes=["mord"],this.style=io}hasClass(to){return utils.contains(this.classes,to)}toNode(){var to=document.createElement("img");to.src=this.src,to.alt=this.alt,to.className="mord";for(var no in this.style)this.style.hasOwnProperty(no)&&(to.style[no]=this.style[no]);return to}toMarkup(){var to=''+utils.escape(this.alt)+'0&&(no=document.createElement("span"),no.style.marginRight=makeEm(this.italic)),this.classes.length>0&&(no=no||document.createElement("span"),no.className=createClass(this.classes));for(var io in this.style)this.style.hasOwnProperty(io)&&(no=no||document.createElement("span"),no.style[io]=this.style[io]);return no?(no.appendChild(to),no):to}toMarkup(){var to=!1,no="0&&(io+="margin-right:"+this.italic+"em;");for(var so in this.style)this.style.hasOwnProperty(so)&&(io+=utils.hyphenate(so)+":"+this.style[so]+";");io&&(to=!0,no+=' style="'+utils.escape(io)+'"');var ao=utils.escape(this.text);return to?(no+=">",no+=ao,no+="
",no):ao}}class SvgNode{constructor(to,no){this.children=void 0,this.attributes=void 0,this.children=to||[],this.attributes=no||{}}toNode(){var to="http://www.w3.org/2000/svg",no=document.createElementNS(to,"svg");for(var io in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,io)&&no.setAttribute(io,this.attributes[io]);for(var so=0;so':''}}class LineNode{constructor(to){this.attributes=void 0,this.attributes=to||{}}toNode(){var to="http://www.w3.org/2000/svg",no=document.createElementNS(to,"line");for(var io in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,io)&&no.setAttribute(io,this.attributes[io]);return no}toMarkup(){var to=" but got "+String(eo)+".")}var ATOMS={bin:1,close:1,inner:1,open:1,punct:1,rel:1},NON_ATOMS={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},symbols={math:{},text:{}};function defineSymbol(eo,to,no,io,so,ao){symbols[eo][so]={font:to,group:no,replace:io},ao&&io&&(symbols[eo][io]=symbols[eo][so])}var math="math",text$2="text",main="main",ams="ams",accent="accent-token",bin="bin",close="close",inner="inner",mathord="mathord",op="op-token",open="open",punct="punct",rel="rel",spacing="spacing",textord="textord";defineSymbol(math,main,rel,"≡","\\equiv",!0);defineSymbol(math,main,rel,"≺","\\prec",!0);defineSymbol(math,main,rel,"≻","\\succ",!0);defineSymbol(math,main,rel,"∼","\\sim",!0);defineSymbol(math,main,rel,"⊥","\\perp");defineSymbol(math,main,rel,"⪯","\\preceq",!0);defineSymbol(math,main,rel,"⪰","\\succeq",!0);defineSymbol(math,main,rel,"≃","\\simeq",!0);defineSymbol(math,main,rel,"∣","\\mid",!0);defineSymbol(math,main,rel,"≪","\\ll",!0);defineSymbol(math,main,rel,"≫","\\gg",!0);defineSymbol(math,main,rel,"≍","\\asymp",!0);defineSymbol(math,main,rel,"∥","\\parallel");defineSymbol(math,main,rel,"⋈","\\bowtie",!0);defineSymbol(math,main,rel,"⌣","\\smile",!0);defineSymbol(math,main,rel,"⊑","\\sqsubseteq",!0);defineSymbol(math,main,rel,"⊒","\\sqsupseteq",!0);defineSymbol(math,main,rel,"≐","\\doteq",!0);defineSymbol(math,main,rel,"⌢","\\frown",!0);defineSymbol(math,main,rel,"∋","\\ni",!0);defineSymbol(math,main,rel,"∝","\\propto",!0);defineSymbol(math,main,rel,"⊢","\\vdash",!0);defineSymbol(math,main,rel,"⊣","\\dashv",!0);defineSymbol(math,main,rel,"∋","\\owns");defineSymbol(math,main,punct,".","\\ldotp");defineSymbol(math,main,punct,"⋅","\\cdotp");defineSymbol(math,main,textord,"#","\\#");defineSymbol(text$2,main,textord,"#","\\#");defineSymbol(math,main,textord,"&","\\&");defineSymbol(text$2,main,textord,"&","\\&");defineSymbol(math,main,textord,"ℵ","\\aleph",!0);defineSymbol(math,main,textord,"∀","\\forall",!0);defineSymbol(math,main,textord,"ℏ","\\hbar",!0);defineSymbol(math,main,textord,"∃","\\exists",!0);defineSymbol(math,main,textord,"∇","\\nabla",!0);defineSymbol(math,main,textord,"♭","\\flat",!0);defineSymbol(math,main,textord,"ℓ","\\ell",!0);defineSymbol(math,main,textord,"♮","\\natural",!0);defineSymbol(math,main,textord,"♣","\\clubsuit",!0);defineSymbol(math,main,textord,"℘","\\wp",!0);defineSymbol(math,main,textord,"♯","\\sharp",!0);defineSymbol(math,main,textord,"♢","\\diamondsuit",!0);defineSymbol(math,main,textord,"ℜ","\\Re",!0);defineSymbol(math,main,textord,"♡","\\heartsuit",!0);defineSymbol(math,main,textord,"ℑ","\\Im",!0);defineSymbol(math,main,textord,"♠","\\spadesuit",!0);defineSymbol(math,main,textord,"§","\\S",!0);defineSymbol(text$2,main,textord,"§","\\S");defineSymbol(math,main,textord,"¶","\\P",!0);defineSymbol(text$2,main,textord,"¶","\\P");defineSymbol(math,main,textord,"†","\\dag");defineSymbol(text$2,main,textord,"†","\\dag");defineSymbol(text$2,main,textord,"†","\\textdagger");defineSymbol(math,main,textord,"‡","\\ddag");defineSymbol(text$2,main,textord,"‡","\\ddag");defineSymbol(text$2,main,textord,"‡","\\textdaggerdbl");defineSymbol(math,main,close,"⎱","\\rmoustache",!0);defineSymbol(math,main,open,"⎰","\\lmoustache",!0);defineSymbol(math,main,close,"⟯","\\rgroup",!0);defineSymbol(math,main,open,"⟮","\\lgroup",!0);defineSymbol(math,main,bin,"∓","\\mp",!0);defineSymbol(math,main,bin,"⊖","\\ominus",!0);defineSymbol(math,main,bin,"⊎","\\uplus",!0);defineSymbol(math,main,bin,"⊓","\\sqcap",!0);defineSymbol(math,main,bin,"∗","\\ast");defineSymbol(math,main,bin,"⊔","\\sqcup",!0);defineSymbol(math,main,bin,"◯","\\bigcirc",!0);defineSymbol(math,main,bin,"∙","\\bullet",!0);defineSymbol(math,main,bin,"‡","\\ddagger");defineSymbol(math,main,bin,"≀","\\wr",!0);defineSymbol(math,main,bin,"⨿","\\amalg");defineSymbol(math,main,bin,"&","\\And");defineSymbol(math,main,rel,"⟵","\\longleftarrow",!0);defineSymbol(math,main,rel,"⇐","\\Leftarrow",!0);defineSymbol(math,main,rel,"⟸","\\Longleftarrow",!0);defineSymbol(math,main,rel,"⟶","\\longrightarrow",!0);defineSymbol(math,main,rel,"⇒","\\Rightarrow",!0);defineSymbol(math,main,rel,"⟹","\\Longrightarrow",!0);defineSymbol(math,main,rel,"↔","\\leftrightarrow",!0);defineSymbol(math,main,rel,"⟷","\\longleftrightarrow",!0);defineSymbol(math,main,rel,"⇔","\\Leftrightarrow",!0);defineSymbol(math,main,rel,"⟺","\\Longleftrightarrow",!0);defineSymbol(math,main,rel,"↦","\\mapsto",!0);defineSymbol(math,main,rel,"⟼","\\longmapsto",!0);defineSymbol(math,main,rel,"↗","\\nearrow",!0);defineSymbol(math,main,rel,"↩","\\hookleftarrow",!0);defineSymbol(math,main,rel,"↪","\\hookrightarrow",!0);defineSymbol(math,main,rel,"↘","\\searrow",!0);defineSymbol(math,main,rel,"↼","\\leftharpoonup",!0);defineSymbol(math,main,rel,"⇀","\\rightharpoonup",!0);defineSymbol(math,main,rel,"↙","\\swarrow",!0);defineSymbol(math,main,rel,"↽","\\leftharpoondown",!0);defineSymbol(math,main,rel,"⇁","\\rightharpoondown",!0);defineSymbol(math,main,rel,"↖","\\nwarrow",!0);defineSymbol(math,main,rel,"⇌","\\rightleftharpoons",!0);defineSymbol(math,ams,rel,"≮","\\nless",!0);defineSymbol(math,ams,rel,"","\\@nleqslant");defineSymbol(math,ams,rel,"","\\@nleqq");defineSymbol(math,ams,rel,"⪇","\\lneq",!0);defineSymbol(math,ams,rel,"≨","\\lneqq",!0);defineSymbol(math,ams,rel,"","\\@lvertneqq");defineSymbol(math,ams,rel,"⋦","\\lnsim",!0);defineSymbol(math,ams,rel,"⪉","\\lnapprox",!0);defineSymbol(math,ams,rel,"⊀","\\nprec",!0);defineSymbol(math,ams,rel,"⋠","\\npreceq",!0);defineSymbol(math,ams,rel,"⋨","\\precnsim",!0);defineSymbol(math,ams,rel,"⪹","\\precnapprox",!0);defineSymbol(math,ams,rel,"≁","\\nsim",!0);defineSymbol(math,ams,rel,"","\\@nshortmid");defineSymbol(math,ams,rel,"∤","\\nmid",!0);defineSymbol(math,ams,rel,"⊬","\\nvdash",!0);defineSymbol(math,ams,rel,"⊭","\\nvDash",!0);defineSymbol(math,ams,rel,"⋪","\\ntriangleleft");defineSymbol(math,ams,rel,"⋬","\\ntrianglelefteq",!0);defineSymbol(math,ams,rel,"⊊","\\subsetneq",!0);defineSymbol(math,ams,rel,"","\\@varsubsetneq");defineSymbol(math,ams,rel,"⫋","\\subsetneqq",!0);defineSymbol(math,ams,rel,"","\\@varsubsetneqq");defineSymbol(math,ams,rel,"≯","\\ngtr",!0);defineSymbol(math,ams,rel,"","\\@ngeqslant");defineSymbol(math,ams,rel,"","\\@ngeqq");defineSymbol(math,ams,rel,"⪈","\\gneq",!0);defineSymbol(math,ams,rel,"≩","\\gneqq",!0);defineSymbol(math,ams,rel,"","\\@gvertneqq");defineSymbol(math,ams,rel,"⋧","\\gnsim",!0);defineSymbol(math,ams,rel,"⪊","\\gnapprox",!0);defineSymbol(math,ams,rel,"⊁","\\nsucc",!0);defineSymbol(math,ams,rel,"⋡","\\nsucceq",!0);defineSymbol(math,ams,rel,"⋩","\\succnsim",!0);defineSymbol(math,ams,rel,"⪺","\\succnapprox",!0);defineSymbol(math,ams,rel,"≆","\\ncong",!0);defineSymbol(math,ams,rel,"","\\@nshortparallel");defineSymbol(math,ams,rel,"∦","\\nparallel",!0);defineSymbol(math,ams,rel,"⊯","\\nVDash",!0);defineSymbol(math,ams,rel,"⋫","\\ntriangleright");defineSymbol(math,ams,rel,"⋭","\\ntrianglerighteq",!0);defineSymbol(math,ams,rel,"","\\@nsupseteqq");defineSymbol(math,ams,rel,"⊋","\\supsetneq",!0);defineSymbol(math,ams,rel,"","\\@varsupsetneq");defineSymbol(math,ams,rel,"⫌","\\supsetneqq",!0);defineSymbol(math,ams,rel,"","\\@varsupsetneqq");defineSymbol(math,ams,rel,"⊮","\\nVdash",!0);defineSymbol(math,ams,rel,"⪵","\\precneqq",!0);defineSymbol(math,ams,rel,"⪶","\\succneqq",!0);defineSymbol(math,ams,rel,"","\\@nsubseteqq");defineSymbol(math,ams,bin,"⊴","\\unlhd");defineSymbol(math,ams,bin,"⊵","\\unrhd");defineSymbol(math,ams,rel,"↚","\\nleftarrow",!0);defineSymbol(math,ams,rel,"↛","\\nrightarrow",!0);defineSymbol(math,ams,rel,"⇍","\\nLeftarrow",!0);defineSymbol(math,ams,rel,"⇏","\\nRightarrow",!0);defineSymbol(math,ams,rel,"↮","\\nleftrightarrow",!0);defineSymbol(math,ams,rel,"⇎","\\nLeftrightarrow",!0);defineSymbol(math,ams,rel,"△","\\vartriangle");defineSymbol(math,ams,textord,"ℏ","\\hslash");defineSymbol(math,ams,textord,"▽","\\triangledown");defineSymbol(math,ams,textord,"◊","\\lozenge");defineSymbol(math,ams,textord,"Ⓢ","\\circledS");defineSymbol(math,ams,textord,"®","\\circledR");defineSymbol(text$2,ams,textord,"®","\\circledR");defineSymbol(math,ams,textord,"∡","\\measuredangle",!0);defineSymbol(math,ams,textord,"∄","\\nexists");defineSymbol(math,ams,textord,"℧","\\mho");defineSymbol(math,ams,textord,"Ⅎ","\\Finv",!0);defineSymbol(math,ams,textord,"⅁","\\Game",!0);defineSymbol(math,ams,textord,"‵","\\backprime");defineSymbol(math,ams,textord,"▲","\\blacktriangle");defineSymbol(math,ams,textord,"▼","\\blacktriangledown");defineSymbol(math,ams,textord,"■","\\blacksquare");defineSymbol(math,ams,textord,"⧫","\\blacklozenge");defineSymbol(math,ams,textord,"★","\\bigstar");defineSymbol(math,ams,textord,"∢","\\sphericalangle",!0);defineSymbol(math,ams,textord,"∁","\\complement",!0);defineSymbol(math,ams,textord,"ð","\\eth",!0);defineSymbol(text$2,main,textord,"ð","ð");defineSymbol(math,ams,textord,"╱","\\diagup");defineSymbol(math,ams,textord,"╲","\\diagdown");defineSymbol(math,ams,textord,"□","\\square");defineSymbol(math,ams,textord,"□","\\Box");defineSymbol(math,ams,textord,"◊","\\Diamond");defineSymbol(math,ams,textord,"¥","\\yen",!0);defineSymbol(text$2,ams,textord,"¥","\\yen",!0);defineSymbol(math,ams,textord,"✓","\\checkmark",!0);defineSymbol(text$2,ams,textord,"✓","\\checkmark");defineSymbol(math,ams,textord,"ℶ","\\beth",!0);defineSymbol(math,ams,textord,"ℸ","\\daleth",!0);defineSymbol(math,ams,textord,"ℷ","\\gimel",!0);defineSymbol(math,ams,textord,"ϝ","\\digamma",!0);defineSymbol(math,ams,textord,"ϰ","\\varkappa");defineSymbol(math,ams,open,"┌","\\@ulcorner",!0);defineSymbol(math,ams,close,"┐","\\@urcorner",!0);defineSymbol(math,ams,open,"└","\\@llcorner",!0);defineSymbol(math,ams,close,"┘","\\@lrcorner",!0);defineSymbol(math,ams,rel,"≦","\\leqq",!0);defineSymbol(math,ams,rel,"⩽","\\leqslant",!0);defineSymbol(math,ams,rel,"⪕","\\eqslantless",!0);defineSymbol(math,ams,rel,"≲","\\lesssim",!0);defineSymbol(math,ams,rel,"⪅","\\lessapprox",!0);defineSymbol(math,ams,rel,"≊","\\approxeq",!0);defineSymbol(math,ams,bin,"⋖","\\lessdot");defineSymbol(math,ams,rel,"⋘","\\lll",!0);defineSymbol(math,ams,rel,"≶","\\lessgtr",!0);defineSymbol(math,ams,rel,"⋚","\\lesseqgtr",!0);defineSymbol(math,ams,rel,"⪋","\\lesseqqgtr",!0);defineSymbol(math,ams,rel,"≑","\\doteqdot");defineSymbol(math,ams,rel,"≓","\\risingdotseq",!0);defineSymbol(math,ams,rel,"≒","\\fallingdotseq",!0);defineSymbol(math,ams,rel,"∽","\\backsim",!0);defineSymbol(math,ams,rel,"⋍","\\backsimeq",!0);defineSymbol(math,ams,rel,"⫅","\\subseteqq",!0);defineSymbol(math,ams,rel,"⋐","\\Subset",!0);defineSymbol(math,ams,rel,"⊏","\\sqsubset",!0);defineSymbol(math,ams,rel,"≼","\\preccurlyeq",!0);defineSymbol(math,ams,rel,"⋞","\\curlyeqprec",!0);defineSymbol(math,ams,rel,"≾","\\precsim",!0);defineSymbol(math,ams,rel,"⪷","\\precapprox",!0);defineSymbol(math,ams,rel,"⊲","\\vartriangleleft");defineSymbol(math,ams,rel,"⊴","\\trianglelefteq");defineSymbol(math,ams,rel,"⊨","\\vDash",!0);defineSymbol(math,ams,rel,"⊪","\\Vvdash",!0);defineSymbol(math,ams,rel,"⌣","\\smallsmile");defineSymbol(math,ams,rel,"⌢","\\smallfrown");defineSymbol(math,ams,rel,"≏","\\bumpeq",!0);defineSymbol(math,ams,rel,"≎","\\Bumpeq",!0);defineSymbol(math,ams,rel,"≧","\\geqq",!0);defineSymbol(math,ams,rel,"⩾","\\geqslant",!0);defineSymbol(math,ams,rel,"⪖","\\eqslantgtr",!0);defineSymbol(math,ams,rel,"≳","\\gtrsim",!0);defineSymbol(math,ams,rel,"⪆","\\gtrapprox",!0);defineSymbol(math,ams,bin,"⋗","\\gtrdot");defineSymbol(math,ams,rel,"⋙","\\ggg",!0);defineSymbol(math,ams,rel,"≷","\\gtrless",!0);defineSymbol(math,ams,rel,"⋛","\\gtreqless",!0);defineSymbol(math,ams,rel,"⪌","\\gtreqqless",!0);defineSymbol(math,ams,rel,"≖","\\eqcirc",!0);defineSymbol(math,ams,rel,"≗","\\circeq",!0);defineSymbol(math,ams,rel,"≜","\\triangleq",!0);defineSymbol(math,ams,rel,"∼","\\thicksim");defineSymbol(math,ams,rel,"≈","\\thickapprox");defineSymbol(math,ams,rel,"⫆","\\supseteqq",!0);defineSymbol(math,ams,rel,"⋑","\\Supset",!0);defineSymbol(math,ams,rel,"⊐","\\sqsupset",!0);defineSymbol(math,ams,rel,"≽","\\succcurlyeq",!0);defineSymbol(math,ams,rel,"⋟","\\curlyeqsucc",!0);defineSymbol(math,ams,rel,"≿","\\succsim",!0);defineSymbol(math,ams,rel,"⪸","\\succapprox",!0);defineSymbol(math,ams,rel,"⊳","\\vartriangleright");defineSymbol(math,ams,rel,"⊵","\\trianglerighteq");defineSymbol(math,ams,rel,"⊩","\\Vdash",!0);defineSymbol(math,ams,rel,"∣","\\shortmid");defineSymbol(math,ams,rel,"∥","\\shortparallel");defineSymbol(math,ams,rel,"≬","\\between",!0);defineSymbol(math,ams,rel,"⋔","\\pitchfork",!0);defineSymbol(math,ams,rel,"∝","\\varpropto");defineSymbol(math,ams,rel,"◀","\\blacktriangleleft");defineSymbol(math,ams,rel,"∴","\\therefore",!0);defineSymbol(math,ams,rel,"∍","\\backepsilon");defineSymbol(math,ams,rel,"▶","\\blacktriangleright");defineSymbol(math,ams,rel,"∵","\\because",!0);defineSymbol(math,ams,rel,"⋘","\\llless");defineSymbol(math,ams,rel,"⋙","\\gggtr");defineSymbol(math,ams,bin,"⊲","\\lhd");defineSymbol(math,ams,bin,"⊳","\\rhd");defineSymbol(math,ams,rel,"≂","\\eqsim",!0);defineSymbol(math,main,rel,"⋈","\\Join");defineSymbol(math,ams,rel,"≑","\\Doteq",!0);defineSymbol(math,ams,bin,"∔","\\dotplus",!0);defineSymbol(math,ams,bin,"∖","\\smallsetminus");defineSymbol(math,ams,bin,"⋒","\\Cap",!0);defineSymbol(math,ams,bin,"⋓","\\Cup",!0);defineSymbol(math,ams,bin,"⩞","\\doublebarwedge",!0);defineSymbol(math,ams,bin,"⊟","\\boxminus",!0);defineSymbol(math,ams,bin,"⊞","\\boxplus",!0);defineSymbol(math,ams,bin,"⋇","\\divideontimes",!0);defineSymbol(math,ams,bin,"⋉","\\ltimes",!0);defineSymbol(math,ams,bin,"⋊","\\rtimes",!0);defineSymbol(math,ams,bin,"⋋","\\leftthreetimes",!0);defineSymbol(math,ams,bin,"⋌","\\rightthreetimes",!0);defineSymbol(math,ams,bin,"⋏","\\curlywedge",!0);defineSymbol(math,ams,bin,"⋎","\\curlyvee",!0);defineSymbol(math,ams,bin,"⊝","\\circleddash",!0);defineSymbol(math,ams,bin,"⊛","\\circledast",!0);defineSymbol(math,ams,bin,"⋅","\\centerdot");defineSymbol(math,ams,bin,"⊺","\\intercal",!0);defineSymbol(math,ams,bin,"⋒","\\doublecap");defineSymbol(math,ams,bin,"⋓","\\doublecup");defineSymbol(math,ams,bin,"⊠","\\boxtimes",!0);defineSymbol(math,ams,rel,"⇢","\\dashrightarrow",!0);defineSymbol(math,ams,rel,"⇠","\\dashleftarrow",!0);defineSymbol(math,ams,rel,"⇇","\\leftleftarrows",!0);defineSymbol(math,ams,rel,"⇆","\\leftrightarrows",!0);defineSymbol(math,ams,rel,"⇚","\\Lleftarrow",!0);defineSymbol(math,ams,rel,"↞","\\twoheadleftarrow",!0);defineSymbol(math,ams,rel,"↢","\\leftarrowtail",!0);defineSymbol(math,ams,rel,"↫","\\looparrowleft",!0);defineSymbol(math,ams,rel,"⇋","\\leftrightharpoons",!0);defineSymbol(math,ams,rel,"↶","\\curvearrowleft",!0);defineSymbol(math,ams,rel,"↺","\\circlearrowleft",!0);defineSymbol(math,ams,rel,"↰","\\Lsh",!0);defineSymbol(math,ams,rel,"⇈","\\upuparrows",!0);defineSymbol(math,ams,rel,"↿","\\upharpoonleft",!0);defineSymbol(math,ams,rel,"⇃","\\downharpoonleft",!0);defineSymbol(math,main,rel,"⊶","\\origof",!0);defineSymbol(math,main,rel,"⊷","\\imageof",!0);defineSymbol(math,ams,rel,"⊸","\\multimap",!0);defineSymbol(math,ams,rel,"↭","\\leftrightsquigarrow",!0);defineSymbol(math,ams,rel,"⇉","\\rightrightarrows",!0);defineSymbol(math,ams,rel,"⇄","\\rightleftarrows",!0);defineSymbol(math,ams,rel,"↠","\\twoheadrightarrow",!0);defineSymbol(math,ams,rel,"↣","\\rightarrowtail",!0);defineSymbol(math,ams,rel,"↬","\\looparrowright",!0);defineSymbol(math,ams,rel,"↷","\\curvearrowright",!0);defineSymbol(math,ams,rel,"↻","\\circlearrowright",!0);defineSymbol(math,ams,rel,"↱","\\Rsh",!0);defineSymbol(math,ams,rel,"⇊","\\downdownarrows",!0);defineSymbol(math,ams,rel,"↾","\\upharpoonright",!0);defineSymbol(math,ams,rel,"⇂","\\downharpoonright",!0);defineSymbol(math,ams,rel,"⇝","\\rightsquigarrow",!0);defineSymbol(math,ams,rel,"⇝","\\leadsto");defineSymbol(math,ams,rel,"⇛","\\Rrightarrow",!0);defineSymbol(math,ams,rel,"↾","\\restriction");defineSymbol(math,main,textord,"‘","`");defineSymbol(math,main,textord,"$","\\$");defineSymbol(text$2,main,textord,"$","\\$");defineSymbol(text$2,main,textord,"$","\\textdollar");defineSymbol(math,main,textord,"%","\\%");defineSymbol(text$2,main,textord,"%","\\%");defineSymbol(math,main,textord,"_","\\_");defineSymbol(text$2,main,textord,"_","\\_");defineSymbol(text$2,main,textord,"_","\\textunderscore");defineSymbol(math,main,textord,"∠","\\angle",!0);defineSymbol(math,main,textord,"∞","\\infty",!0);defineSymbol(math,main,textord,"′","\\prime");defineSymbol(math,main,textord,"△","\\triangle");defineSymbol(math,main,textord,"Γ","\\Gamma",!0);defineSymbol(math,main,textord,"Δ","\\Delta",!0);defineSymbol(math,main,textord,"Θ","\\Theta",!0);defineSymbol(math,main,textord,"Λ","\\Lambda",!0);defineSymbol(math,main,textord,"Ξ","\\Xi",!0);defineSymbol(math,main,textord,"Π","\\Pi",!0);defineSymbol(math,main,textord,"Σ","\\Sigma",!0);defineSymbol(math,main,textord,"Υ","\\Upsilon",!0);defineSymbol(math,main,textord,"Φ","\\Phi",!0);defineSymbol(math,main,textord,"Ψ","\\Psi",!0);defineSymbol(math,main,textord,"Ω","\\Omega",!0);defineSymbol(math,main,textord,"A","Α");defineSymbol(math,main,textord,"B","Β");defineSymbol(math,main,textord,"E","Ε");defineSymbol(math,main,textord,"Z","Ζ");defineSymbol(math,main,textord,"H","Η");defineSymbol(math,main,textord,"I","Ι");defineSymbol(math,main,textord,"K","Κ");defineSymbol(math,main,textord,"M","Μ");defineSymbol(math,main,textord,"N","Ν");defineSymbol(math,main,textord,"O","Ο");defineSymbol(math,main,textord,"P","Ρ");defineSymbol(math,main,textord,"T","Τ");defineSymbol(math,main,textord,"X","Χ");defineSymbol(math,main,textord,"¬","\\neg",!0);defineSymbol(math,main,textord,"¬","\\lnot");defineSymbol(math,main,textord,"⊤","\\top");defineSymbol(math,main,textord,"⊥","\\bot");defineSymbol(math,main,textord,"∅","\\emptyset");defineSymbol(math,ams,textord,"∅","\\varnothing");defineSymbol(math,main,mathord,"α","\\alpha",!0);defineSymbol(math,main,mathord,"β","\\beta",!0);defineSymbol(math,main,mathord,"γ","\\gamma",!0);defineSymbol(math,main,mathord,"δ","\\delta",!0);defineSymbol(math,main,mathord,"ϵ","\\epsilon",!0);defineSymbol(math,main,mathord,"ζ","\\zeta",!0);defineSymbol(math,main,mathord,"η","\\eta",!0);defineSymbol(math,main,mathord,"θ","\\theta",!0);defineSymbol(math,main,mathord,"ι","\\iota",!0);defineSymbol(math,main,mathord,"κ","\\kappa",!0);defineSymbol(math,main,mathord,"λ","\\lambda",!0);defineSymbol(math,main,mathord,"μ","\\mu",!0);defineSymbol(math,main,mathord,"ν","\\nu",!0);defineSymbol(math,main,mathord,"ξ","\\xi",!0);defineSymbol(math,main,mathord,"ο","\\omicron",!0);defineSymbol(math,main,mathord,"π","\\pi",!0);defineSymbol(math,main,mathord,"ρ","\\rho",!0);defineSymbol(math,main,mathord,"σ","\\sigma",!0);defineSymbol(math,main,mathord,"τ","\\tau",!0);defineSymbol(math,main,mathord,"υ","\\upsilon",!0);defineSymbol(math,main,mathord,"ϕ","\\phi",!0);defineSymbol(math,main,mathord,"χ","\\chi",!0);defineSymbol(math,main,mathord,"ψ","\\psi",!0);defineSymbol(math,main,mathord,"ω","\\omega",!0);defineSymbol(math,main,mathord,"ε","\\varepsilon",!0);defineSymbol(math,main,mathord,"ϑ","\\vartheta",!0);defineSymbol(math,main,mathord,"ϖ","\\varpi",!0);defineSymbol(math,main,mathord,"ϱ","\\varrho",!0);defineSymbol(math,main,mathord,"ς","\\varsigma",!0);defineSymbol(math,main,mathord,"φ","\\varphi",!0);defineSymbol(math,main,bin,"∗","*",!0);defineSymbol(math,main,bin,"+","+");defineSymbol(math,main,bin,"−","-",!0);defineSymbol(math,main,bin,"⋅","\\cdot",!0);defineSymbol(math,main,bin,"∘","\\circ",!0);defineSymbol(math,main,bin,"÷","\\div",!0);defineSymbol(math,main,bin,"±","\\pm",!0);defineSymbol(math,main,bin,"×","\\times",!0);defineSymbol(math,main,bin,"∩","\\cap",!0);defineSymbol(math,main,bin,"∪","\\cup",!0);defineSymbol(math,main,bin,"∖","\\setminus",!0);defineSymbol(math,main,bin,"∧","\\land");defineSymbol(math,main,bin,"∨","\\lor");defineSymbol(math,main,bin,"∧","\\wedge",!0);defineSymbol(math,main,bin,"∨","\\vee",!0);defineSymbol(math,main,textord,"√","\\surd");defineSymbol(math,main,open,"⟨","\\langle",!0);defineSymbol(math,main,open,"∣","\\lvert");defineSymbol(math,main,open,"∥","\\lVert");defineSymbol(math,main,close,"?","?");defineSymbol(math,main,close,"!","!");defineSymbol(math,main,close,"⟩","\\rangle",!0);defineSymbol(math,main,close,"∣","\\rvert");defineSymbol(math,main,close,"∥","\\rVert");defineSymbol(math,main,rel,"=","=");defineSymbol(math,main,rel,":",":");defineSymbol(math,main,rel,"≈","\\approx",!0);defineSymbol(math,main,rel,"≅","\\cong",!0);defineSymbol(math,main,rel,"≥","\\ge");defineSymbol(math,main,rel,"≥","\\geq",!0);defineSymbol(math,main,rel,"←","\\gets");defineSymbol(math,main,rel,">","\\gt",!0);defineSymbol(math,main,rel,"∈","\\in",!0);defineSymbol(math,main,rel,"","\\@not");defineSymbol(math,main,rel,"⊂","\\subset",!0);defineSymbol(math,main,rel,"⊃","\\supset",!0);defineSymbol(math,main,rel,"⊆","\\subseteq",!0);defineSymbol(math,main,rel,"⊇","\\supseteq",!0);defineSymbol(math,ams,rel,"⊈","\\nsubseteq",!0);defineSymbol(math,ams,rel,"⊉","\\nsupseteq",!0);defineSymbol(math,main,rel,"⊨","\\models");defineSymbol(math,main,rel,"←","\\leftarrow",!0);defineSymbol(math,main,rel,"≤","\\le");defineSymbol(math,main,rel,"≤","\\leq",!0);defineSymbol(math,main,rel,"<","\\lt",!0);defineSymbol(math,main,rel,"→","\\rightarrow",!0);defineSymbol(math,main,rel,"→","\\to");defineSymbol(math,ams,rel,"≱","\\ngeq",!0);defineSymbol(math,ams,rel,"≰","\\nleq",!0);defineSymbol(math,main,spacing," ","\\ ");defineSymbol(math,main,spacing," ","\\space");defineSymbol(math,main,spacing," ","\\nobreakspace");defineSymbol(text$2,main,spacing," ","\\ ");defineSymbol(text$2,main,spacing," "," ");defineSymbol(text$2,main,spacing," ","\\space");defineSymbol(text$2,main,spacing," ","\\nobreakspace");defineSymbol(math,main,spacing,null,"\\nobreak");defineSymbol(math,main,spacing,null,"\\allowbreak");defineSymbol(math,main,punct,",",",");defineSymbol(math,main,punct,";",";");defineSymbol(math,ams,bin,"⊼","\\barwedge",!0);defineSymbol(math,ams,bin,"⊻","\\veebar",!0);defineSymbol(math,main,bin,"⊙","\\odot",!0);defineSymbol(math,main,bin,"⊕","\\oplus",!0);defineSymbol(math,main,bin,"⊗","\\otimes",!0);defineSymbol(math,main,textord,"∂","\\partial",!0);defineSymbol(math,main,bin,"⊘","\\oslash",!0);defineSymbol(math,ams,bin,"⊚","\\circledcirc",!0);defineSymbol(math,ams,bin,"⊡","\\boxdot",!0);defineSymbol(math,main,bin,"△","\\bigtriangleup");defineSymbol(math,main,bin,"▽","\\bigtriangledown");defineSymbol(math,main,bin,"†","\\dagger");defineSymbol(math,main,bin,"⋄","\\diamond");defineSymbol(math,main,bin,"⋆","\\star");defineSymbol(math,main,bin,"◃","\\triangleleft");defineSymbol(math,main,bin,"▹","\\triangleright");defineSymbol(math,main,open,"{","\\{");defineSymbol(text$2,main,textord,"{","\\{");defineSymbol(text$2,main,textord,"{","\\textbraceleft");defineSymbol(math,main,close,"}","\\}");defineSymbol(text$2,main,textord,"}","\\}");defineSymbol(text$2,main,textord,"}","\\textbraceright");defineSymbol(math,main,open,"{","\\lbrace");defineSymbol(math,main,close,"}","\\rbrace");defineSymbol(math,main,open,"[","\\lbrack",!0);defineSymbol(text$2,main,textord,"[","\\lbrack",!0);defineSymbol(math,main,close,"]","\\rbrack",!0);defineSymbol(text$2,main,textord,"]","\\rbrack",!0);defineSymbol(math,main,open,"(","\\lparen",!0);defineSymbol(math,main,close,")","\\rparen",!0);defineSymbol(text$2,main,textord,"<","\\textless",!0);defineSymbol(text$2,main,textord,">","\\textgreater",!0);defineSymbol(math,main,open,"⌊","\\lfloor",!0);defineSymbol(math,main,close,"⌋","\\rfloor",!0);defineSymbol(math,main,open,"⌈","\\lceil",!0);defineSymbol(math,main,close,"⌉","\\rceil",!0);defineSymbol(math,main,textord,"\\","\\backslash");defineSymbol(math,main,textord,"∣","|");defineSymbol(math,main,textord,"∣","\\vert");defineSymbol(text$2,main,textord,"|","\\textbar",!0);defineSymbol(math,main,textord,"∥","\\|");defineSymbol(math,main,textord,"∥","\\Vert");defineSymbol(text$2,main,textord,"∥","\\textbardbl");defineSymbol(text$2,main,textord,"~","\\textasciitilde");defineSymbol(text$2,main,textord,"\\","\\textbackslash");defineSymbol(text$2,main,textord,"^","\\textasciicircum");defineSymbol(math,main,rel,"↑","\\uparrow",!0);defineSymbol(math,main,rel,"⇑","\\Uparrow",!0);defineSymbol(math,main,rel,"↓","\\downarrow",!0);defineSymbol(math,main,rel,"⇓","\\Downarrow",!0);defineSymbol(math,main,rel,"↕","\\updownarrow",!0);defineSymbol(math,main,rel,"⇕","\\Updownarrow",!0);defineSymbol(math,main,op,"∐","\\coprod");defineSymbol(math,main,op,"⋁","\\bigvee");defineSymbol(math,main,op,"⋀","\\bigwedge");defineSymbol(math,main,op,"⨄","\\biguplus");defineSymbol(math,main,op,"⋂","\\bigcap");defineSymbol(math,main,op,"⋃","\\bigcup");defineSymbol(math,main,op,"∫","\\int");defineSymbol(math,main,op,"∫","\\intop");defineSymbol(math,main,op,"∬","\\iint");defineSymbol(math,main,op,"∭","\\iiint");defineSymbol(math,main,op,"∏","\\prod");defineSymbol(math,main,op,"∑","\\sum");defineSymbol(math,main,op,"⨂","\\bigotimes");defineSymbol(math,main,op,"⨁","\\bigoplus");defineSymbol(math,main,op,"⨀","\\bigodot");defineSymbol(math,main,op,"∮","\\oint");defineSymbol(math,main,op,"∯","\\oiint");defineSymbol(math,main,op,"∰","\\oiiint");defineSymbol(math,main,op,"⨆","\\bigsqcup");defineSymbol(math,main,op,"∫","\\smallint");defineSymbol(text$2,main,inner,"…","\\textellipsis");defineSymbol(math,main,inner,"…","\\mathellipsis");defineSymbol(text$2,main,inner,"…","\\ldots",!0);defineSymbol(math,main,inner,"…","\\ldots",!0);defineSymbol(math,main,inner,"⋯","\\@cdots",!0);defineSymbol(math,main,inner,"⋱","\\ddots",!0);defineSymbol(math,main,textord,"⋮","\\varvdots");defineSymbol(math,main,accent,"ˊ","\\acute");defineSymbol(math,main,accent,"ˋ","\\grave");defineSymbol(math,main,accent,"¨","\\ddot");defineSymbol(math,main,accent,"~","\\tilde");defineSymbol(math,main,accent,"ˉ","\\bar");defineSymbol(math,main,accent,"˘","\\breve");defineSymbol(math,main,accent,"ˇ","\\check");defineSymbol(math,main,accent,"^","\\hat");defineSymbol(math,main,accent,"⃗","\\vec");defineSymbol(math,main,accent,"˙","\\dot");defineSymbol(math,main,accent,"˚","\\mathring");defineSymbol(math,main,mathord,"","\\@imath");defineSymbol(math,main,mathord,"","\\@jmath");defineSymbol(math,main,textord,"ı","ı");defineSymbol(math,main,textord,"ȷ","ȷ");defineSymbol(text$2,main,textord,"ı","\\i",!0);defineSymbol(text$2,main,textord,"ȷ","\\j",!0);defineSymbol(text$2,main,textord,"ß","\\ss",!0);defineSymbol(text$2,main,textord,"æ","\\ae",!0);defineSymbol(text$2,main,textord,"œ","\\oe",!0);defineSymbol(text$2,main,textord,"ø","\\o",!0);defineSymbol(text$2,main,textord,"Æ","\\AE",!0);defineSymbol(text$2,main,textord,"Œ","\\OE",!0);defineSymbol(text$2,main,textord,"Ø","\\O",!0);defineSymbol(text$2,main,accent,"ˊ","\\'");defineSymbol(text$2,main,accent,"ˋ","\\`");defineSymbol(text$2,main,accent,"ˆ","\\^");defineSymbol(text$2,main,accent,"˜","\\~");defineSymbol(text$2,main,accent,"ˉ","\\=");defineSymbol(text$2,main,accent,"˘","\\u");defineSymbol(text$2,main,accent,"˙","\\.");defineSymbol(text$2,main,accent,"¸","\\c");defineSymbol(text$2,main,accent,"˚","\\r");defineSymbol(text$2,main,accent,"ˇ","\\v");defineSymbol(text$2,main,accent,"¨",'\\"');defineSymbol(text$2,main,accent,"˝","\\H");defineSymbol(text$2,main,accent,"◯","\\textcircled");var ligatures={"--":!0,"---":!0,"``":!0,"''":!0};defineSymbol(text$2,main,textord,"–","--",!0);defineSymbol(text$2,main,textord,"–","\\textendash");defineSymbol(text$2,main,textord,"—","---",!0);defineSymbol(text$2,main,textord,"—","\\textemdash");defineSymbol(text$2,main,textord,"‘","`",!0);defineSymbol(text$2,main,textord,"‘","\\textquoteleft");defineSymbol(text$2,main,textord,"’","'",!0);defineSymbol(text$2,main,textord,"’","\\textquoteright");defineSymbol(text$2,main,textord,"“","``",!0);defineSymbol(text$2,main,textord,"“","\\textquotedblleft");defineSymbol(text$2,main,textord,"”","''",!0);defineSymbol(text$2,main,textord,"”","\\textquotedblright");defineSymbol(math,main,textord,"°","\\degree",!0);defineSymbol(text$2,main,textord,"°","\\degree");defineSymbol(text$2,main,textord,"°","\\textdegree",!0);defineSymbol(math,main,textord,"£","\\pounds");defineSymbol(math,main,textord,"£","\\mathsterling",!0);defineSymbol(text$2,main,textord,"£","\\pounds");defineSymbol(text$2,main,textord,"£","\\textsterling",!0);defineSymbol(math,ams,textord,"✠","\\maltese");defineSymbol(text$2,ams,textord,"✠","\\maltese");var mathTextSymbols='0123456789/@."';for(var i$1=0;i$10)return makeSymbol(ao,go,so,no,lo.concat(mo));if(ho){var yo,So;if(ho==="boldsymbol"){var _o=boldsymbol(ao,so,no,lo,io);yo=_o.fontName,So=[_o.fontClass]}else uo?(yo=fontMap[ho].fontName,So=[ho]):(yo=retrieveTextFontName(ho,no.fontWeight,no.fontShape),So=[ho,no.fontWeight,no.fontShape]);if(lookupSymbol(ao,yo,so).metrics)return makeSymbol(ao,yo,so,no,lo.concat(So));if(ligatures.hasOwnProperty(ao)&&yo.slice(0,10)==="Typewriter"){for(var ko=[],Co=0;Co{if(createClass(eo.classes)!==createClass(to.classes)||eo.skew!==to.skew||eo.maxFontSize!==to.maxFontSize)return!1;if(eo.classes.length===1){var no=eo.classes[0];if(no==="mbin"||no==="mord")return!1}for(var io in eo.style)if(eo.style.hasOwnProperty(io)&&eo.style[io]!==to.style[io])return!1;for(var so in to.style)if(to.style.hasOwnProperty(so)&&eo.style[so]!==to.style[so])return!1;return!0},tryCombineChars=eo=>{for(var to=0;tono&&(no=lo.height),lo.depth>io&&(io=lo.depth),lo.maxFontSize>so&&(so=lo.maxFontSize)}to.height=no,to.depth=io,to.maxFontSize=so},makeSpan$2=function eo(to,no,io,so){var ao=new Span(to,no,io,so);return sizeElementFromChildren(ao),ao},makeSvgSpan=(eo,to,no,io)=>new Span(eo,to,no,io),makeLineSpan=function eo(to,no,io){var so=makeSpan$2([to],[],no);return so.height=Math.max(io||no.fontMetrics().defaultRuleThickness,no.minRuleThickness),so.style.borderBottomWidth=makeEm(so.height),so.maxFontSize=1,so},makeAnchor=function eo(to,no,io,so){var ao=new Anchor(to,no,io,so);return sizeElementFromChildren(ao),ao},makeFragment=function eo(to){var no=new DocumentFragment(to);return sizeElementFromChildren(no),no},wrapFragment=function eo(to,no){return to instanceof DocumentFragment?makeSpan$2([],[to],no):to},getVListChildrenAndDepth=function eo(to){if(to.positionType==="individualShift"){for(var no=to.children,io=[no[0]],so=-no[0].shift-no[0].elem.depth,ao=so,lo=1;lo{var no=makeSpan$2(["mspace"],[],to),io=calculateSize(eo,to);return no.style.marginRight=makeEm(io),no},retrieveTextFontName=function eo(to,no,io){var so="";switch(to){case"amsrm":so="AMS";break;case"textrm":so="Main";break;case"textsf":so="SansSerif";break;case"texttt":so="Typewriter";break;default:so=to}var ao;return no==="textbf"&&io==="textit"?ao="BoldItalic":no==="textbf"?ao="Bold":no==="textit"?ao="Italic":ao="Regular",so+"-"+ao},fontMap={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},svgData={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},staticSvg=function eo(to,no){var[io,so,ao]=svgData[to],lo=new PathNode(io),uo=new SvgNode([lo],{width:makeEm(so),height:makeEm(ao),style:"width:"+makeEm(so),viewBox:"0 0 "+1e3*so+" "+1e3*ao,preserveAspectRatio:"xMinYMin"}),ho=makeSvgSpan(["overlay"],[uo],no);return ho.height=ao,ho.style.height=makeEm(ao),ho.style.width=makeEm(so),ho},buildCommon={fontMap,makeSymbol,mathsym,makeSpan:makeSpan$2,makeSvgSpan,makeLineSpan,makeAnchor,makeFragment,wrapFragment,makeVList,makeOrd,makeGlue,staticSvg,svgData,tryCombineChars},thinspace={number:3,unit:"mu"},mediumspace={number:4,unit:"mu"},thickspace={number:5,unit:"mu"},spacings={mord:{mop:thinspace,mbin:mediumspace,mrel:thickspace,minner:thinspace},mop:{mord:thinspace,mop:thinspace,mrel:thickspace,minner:thinspace},mbin:{mord:mediumspace,mop:mediumspace,mopen:mediumspace,minner:mediumspace},mrel:{mord:thickspace,mop:thickspace,mopen:thickspace,minner:thickspace},mopen:{},mclose:{mop:thinspace,mbin:mediumspace,mrel:thickspace,minner:thinspace},mpunct:{mord:thinspace,mop:thinspace,mrel:thickspace,mopen:thinspace,mclose:thinspace,mpunct:thinspace,minner:thinspace},minner:{mord:thinspace,mop:thinspace,mbin:mediumspace,mrel:thickspace,mopen:thinspace,mpunct:thinspace,minner:thinspace}},tightSpacings={mord:{mop:thinspace},mop:{mord:thinspace,mop:thinspace},mbin:{},mrel:{},mopen:{},mclose:{mop:thinspace},mpunct:{},minner:{mop:thinspace}},_functions={},_htmlGroupBuilders={},_mathmlGroupBuilders={};function defineFunction(eo){for(var{type:to,names:no,props:io,handler:so,htmlBuilder:ao,mathmlBuilder:lo}=eo,uo={type:to,numArgs:io.numArgs,argTypes:io.argTypes,allowedInArgument:!!io.allowedInArgument,allowedInText:!!io.allowedInText,allowedInMath:io.allowedInMath===void 0?!0:io.allowedInMath,numOptionalArgs:io.numOptionalArgs||0,infix:!!io.infix,primitive:!!io.primitive,handler:so},ho=0;ho{var $o=Co.classes[0],Ro=ko.classes[0];$o==="mbin"&&utils.contains(binRightCanceller,Ro)?Co.classes[0]="mord":Ro==="mbin"&&utils.contains(binLeftCanceller,$o)&&(ko.classes[0]="mord")},{node:yo},So,_o),traverseNonSpaceNodes(ao,(ko,Co)=>{var $o=getTypeOfDomTree(Co),Ro=getTypeOfDomTree(ko),Oo=$o&&Ro?ko.hasClass("mtight")?tightSpacings[$o][Ro]:spacings[$o][Ro]:null;if(Oo)return buildCommon.makeGlue(Oo,go)},{node:yo},So,_o),ao},traverseNonSpaceNodes=function eo(to,no,io,so,ao){so&&to.push(so);for(var lo=0;loSo=>{to.splice(yo+1,0,So),lo++})(lo)}so&&to.pop()},checkPartialGroup=function eo(to){return to instanceof DocumentFragment||to instanceof Anchor||to instanceof Span&&to.hasClass("enclosing")?to:null},getOutermostNode=function eo(to,no){var io=checkPartialGroup(to);if(io){var so=io.children;if(so.length){if(no==="right")return eo(so[so.length-1],"right");if(no==="left")return eo(so[0],"left")}}return to},getTypeOfDomTree=function eo(to,no){return to?(no&&(to=getOutermostNode(to,no)),DomEnum[to.classes[0]]||null):null},makeNullDelimiter=function eo(to,no){var io=["nulldelimiter"].concat(to.baseSizingClasses());return makeSpan$1(no.concat(io))},buildGroup$1=function eo(to,no,io){if(!to)return makeSpan$1();if(_htmlGroupBuilders[to.type]){var so=_htmlGroupBuilders[to.type](to,no);if(io&&no.size!==io.size){so=makeSpan$1(no.sizingClasses(io),[so],no);var ao=no.sizeMultiplier/io.sizeMultiplier;so.height*=ao,so.depth*=ao}return so}else throw new ParseError("Got group of unknown type: '"+to.type+"'")};function buildHTMLUnbreakable(eo,to){var no=makeSpan$1(["base"],eo,to),io=makeSpan$1(["strut"]);return io.style.height=makeEm(no.height+no.depth),no.depth&&(io.style.verticalAlign=makeEm(-no.depth)),no.children.unshift(io),no}function buildHTML(eo,to){var no=null;eo.length===1&&eo[0].type==="tag"&&(no=eo[0].tag,eo=eo[0].body);var io=buildExpression$1(eo,to,"root"),so;io.length===2&&io[1].hasClass("tag")&&(so=io.pop());for(var ao=[],lo=[],uo=0;uo0&&(ao.push(buildHTMLUnbreakable(lo,to)),lo=[]),ao.push(io[uo]));lo.length>0&&ao.push(buildHTMLUnbreakable(lo,to));var go;no?(go=buildHTMLUnbreakable(buildExpression$1(no,to,!0)),go.classes=["tag"],ao.push(go)):so&&ao.push(so);var mo=makeSpan$1(["katex-html"],ao);if(mo.setAttribute("aria-hidden","true"),go){var yo=go.children[0];yo.style.height=makeEm(mo.height+mo.depth),mo.depth&&(yo.style.verticalAlign=makeEm(-mo.depth))}return mo}function newDocumentFragment(eo){return new DocumentFragment(eo)}class MathNode{constructor(to,no,io){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=to,this.attributes={},this.children=no||[],this.classes=io||[]}setAttribute(to,no){this.attributes[to]=no}getAttribute(to){return this.attributes[to]}toNode(){var to=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var no in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,no)&&to.setAttribute(no,this.attributes[no]);this.classes.length>0&&(to.className=createClass(this.classes));for(var io=0;io0&&(to+=' class ="'+utils.escape(createClass(this.classes))+'"'),to+=">";for(var io=0;io",to}toText(){return this.children.map(to=>to.toText()).join("")}}class TextNode{constructor(to){this.text=void 0,this.text=to}toNode(){return document.createTextNode(this.text)}toMarkup(){return utils.escape(this.toText())}toText(){return this.text}}class SpaceNode{constructor(to){this.width=void 0,this.character=void 0,this.width=to,to>=.05555&&to<=.05556?this.character=" ":to>=.1666&&to<=.1667?this.character=" ":to>=.2222&&to<=.2223?this.character=" ":to>=.2777&&to<=.2778?this.character="  ":to>=-.05556&&to<=-.05555?this.character=" ⁣":to>=-.1667&&to<=-.1666?this.character=" ⁣":to>=-.2223&&to<=-.2222?this.character=" ⁣":to>=-.2778&&to<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var to=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return to.setAttribute("width",makeEm(this.width)),to}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var mathMLTree={MathNode,TextNode,SpaceNode,newDocumentFragment},makeText=function eo(to,no,io){return symbols[no][to]&&symbols[no][to].replace&&to.charCodeAt(0)!==55349&&!(ligatures.hasOwnProperty(to)&&io&&(io.fontFamily&&io.fontFamily.slice(4,6)==="tt"||io.font&&io.font.slice(4,6)==="tt"))&&(to=symbols[no][to].replace),new mathMLTree.TextNode(to)},makeRow=function eo(to){return to.length===1?to[0]:new mathMLTree.MathNode("mrow",to)},getVariant=function eo(to,no){if(no.fontFamily==="texttt")return"monospace";if(no.fontFamily==="textsf")return no.fontShape==="textit"&&no.fontWeight==="textbf"?"sans-serif-bold-italic":no.fontShape==="textit"?"sans-serif-italic":no.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(no.fontShape==="textit"&&no.fontWeight==="textbf")return"bold-italic";if(no.fontShape==="textit")return"italic";if(no.fontWeight==="textbf")return"bold";var io=no.font;if(!io||io==="mathnormal")return null;var so=to.mode;if(io==="mathit")return"italic";if(io==="boldsymbol")return to.type==="textord"?"bold":"bold-italic";if(io==="mathbf")return"bold";if(io==="mathbb")return"double-struck";if(io==="mathfrak")return"fraktur";if(io==="mathscr"||io==="mathcal")return"script";if(io==="mathsf")return"sans-serif";if(io==="mathtt")return"monospace";var ao=to.text;if(utils.contains(["\\imath","\\jmath"],ao))return null;symbols[so][ao]&&symbols[so][ao].replace&&(ao=symbols[so][ao].replace);var lo=buildCommon.fontMap[io].fontName;return getCharacterMetrics(ao,lo,so)?buildCommon.fontMap[io].variant:null},buildExpression=function eo(to,no,io){if(to.length===1){var so=buildGroup(to[0],no);return io&&so instanceof MathNode&&so.type==="mo"&&(so.setAttribute("lspace","0em"),so.setAttribute("rspace","0em")),[so]}for(var ao=[],lo,uo=0;uo0&&(yo.text=yo.text.slice(0,1)+"̸"+yo.text.slice(1),ao.pop())}}}ao.push(ho),lo=ho}return ao},buildExpressionRow=function eo(to,no,io){return makeRow(buildExpression(to,no,io))},buildGroup=function eo(to,no){if(!to)return new mathMLTree.MathNode("mrow");if(_mathmlGroupBuilders[to.type]){var io=_mathmlGroupBuilders[to.type](to,no);return io}else throw new ParseError("Got group of unknown type: '"+to.type+"'")};function buildMathML(eo,to,no,io,so){var ao=buildExpression(eo,no),lo;ao.length===1&&ao[0]instanceof MathNode&&utils.contains(["mrow","mtable"],ao[0].type)?lo=ao[0]:lo=new mathMLTree.MathNode("mrow",ao);var uo=new mathMLTree.MathNode("annotation",[new mathMLTree.TextNode(to)]);uo.setAttribute("encoding","application/x-tex");var ho=new mathMLTree.MathNode("semantics",[lo,uo]),go=new mathMLTree.MathNode("math",[ho]);go.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),io&&go.setAttribute("display","block");var mo=so?"katex":"katex-mathml";return buildCommon.makeSpan([mo],[go])}var optionsFromSettings=function eo(to){return new Options({style:to.displayMode?Style$1$1.DISPLAY:Style$1$1.TEXT,maxSize:to.maxSize,minRuleThickness:to.minRuleThickness})},displayWrap=function eo(to,no){if(no.displayMode){var io=["katex-display"];no.leqno&&io.push("leqno"),no.fleqn&&io.push("fleqn"),to=buildCommon.makeSpan(io,[to])}return to},buildTree=function eo(to,no,io){var so=optionsFromSettings(io),ao;if(io.output==="mathml")return buildMathML(to,no,so,io.displayMode,!0);if(io.output==="html"){var lo=buildHTML(to,so);ao=buildCommon.makeSpan(["katex"],[lo])}else{var uo=buildMathML(to,no,so,io.displayMode,!1),ho=buildHTML(to,so);ao=buildCommon.makeSpan(["katex"],[uo,ho])}return displayWrap(ao,io)},buildHTMLTree=function eo(to,no,io){var so=optionsFromSettings(io),ao=buildHTML(to,so),lo=buildCommon.makeSpan(["katex"],[ao]);return displayWrap(lo,io)},stretchyCodePoint={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},mathMLnode=function eo(to){var no=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode(stretchyCodePoint[to.replace(/^\\/,"")])]);return no.setAttribute("stretchy","true"),no},katexImagesData={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},groupLength=function eo(to){return to.type==="ordgroup"?to.body.length:1},svgSpan=function eo(to,no){function io(){var uo=4e5,ho=to.label.slice(1);if(utils.contains(["widehat","widecheck","widetilde","utilde"],ho)){var go=to,mo=groupLength(go.base),yo,So,_o;if(mo>5)ho==="widehat"||ho==="widecheck"?(yo=420,uo=2364,_o=.42,So=ho+"4"):(yo=312,uo=2340,_o=.34,So="tilde4");else{var ko=[1,1,2,2,3,3][mo];ho==="widehat"||ho==="widecheck"?(uo=[0,1062,2364,2364,2364][ko],yo=[0,239,300,360,420][ko],_o=[0,.24,.3,.3,.36,.42][ko],So=ho+ko):(uo=[0,600,1033,2339,2340][ko],yo=[0,260,286,306,312][ko],_o=[0,.26,.286,.3,.306,.34][ko],So="tilde"+ko)}var Co=new PathNode(So),$o=new SvgNode([Co],{width:"100%",height:makeEm(_o),viewBox:"0 0 "+uo+" "+yo,preserveAspectRatio:"none"});return{span:buildCommon.makeSvgSpan([],[$o],no),minWidth:0,height:_o}}else{var Ro=[],Oo=katexImagesData[ho],[No,Mo,Bo]=Oo,Po=Bo/1e3,Lo=No.length,Go,Do;if(Lo===1){var Uo=Oo[3];Go=["hide-tail"],Do=[Uo]}else if(Lo===2)Go=["halfarrow-left","halfarrow-right"],Do=["xMinYMin","xMaxYMin"];else if(Lo===3)Go=["brace-left","brace-center","brace-right"],Do=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+Lo+" children.");for(var Ho=0;Ho0&&(so.style.minWidth=makeEm(ao)),so},encloseSpan=function eo(to,no,io,so,ao){var lo,uo=to.height+to.depth+io+so;if(/fbox|color|angl/.test(no)){if(lo=buildCommon.makeSpan(["stretchy",no],[],ao),no==="fbox"){var ho=ao.color&&ao.getColor();ho&&(lo.style.borderColor=ho)}}else{var go=[];/^[bx]cancel$/.test(no)&&go.push(new LineNode({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(no)&&go.push(new LineNode({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var mo=new SvgNode(go,{width:"100%",height:makeEm(uo)});lo=buildCommon.makeSvgSpan([],[mo],ao)}return lo.height=uo,lo.style.height=makeEm(uo),lo},stretchy={encloseSpan,mathMLnode,svgSpan};function assertNodeType(eo,to){if(!eo||eo.type!==to)throw new Error("Expected node of type "+to+", but got "+(eo?"node of type "+eo.type:String(eo)));return eo}function assertSymbolNodeType(eo){var to=checkSymbolNodeType(eo);if(!to)throw new Error("Expected node of symbol group type, but got "+(eo?"node of type "+eo.type:String(eo)));return to}function checkSymbolNodeType(eo){return eo&&(eo.type==="atom"||NON_ATOMS.hasOwnProperty(eo.type))?eo:null}var htmlBuilder$a=(eo,to)=>{var no,io,so;eo&&eo.type==="supsub"?(io=assertNodeType(eo.base,"accent"),no=io.base,eo.base=no,so=assertSpan(buildGroup$1(eo,to)),eo.base=io):(io=assertNodeType(eo,"accent"),no=io.base);var ao=buildGroup$1(no,to.havingCrampedStyle()),lo=io.isShifty&&utils.isCharacterBox(no),uo=0;if(lo){var ho=utils.getBaseElem(no),go=buildGroup$1(ho,to.havingCrampedStyle());uo=assertSymbolDomNode(go).skew}var mo=io.label==="\\c",yo=mo?ao.height+ao.depth:Math.min(ao.height,to.fontMetrics().xHeight),So;if(io.isStretchy)So=stretchy.svgSpan(io,to),So=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ao},{type:"elem",elem:So,wrapperClasses:["svg-align"],wrapperStyle:uo>0?{width:"calc(100% - "+makeEm(2*uo)+")",marginLeft:makeEm(2*uo)}:void 0}]},to);else{var _o,ko;io.label==="\\vec"?(_o=buildCommon.staticSvg("vec",to),ko=buildCommon.svgData.vec[1]):(_o=buildCommon.makeOrd({mode:io.mode,text:io.label},to,"textord"),_o=assertSymbolDomNode(_o),_o.italic=0,ko=_o.width,mo&&(yo+=_o.depth)),So=buildCommon.makeSpan(["accent-body"],[_o]);var Co=io.label==="\\textcircled";Co&&(So.classes.push("accent-full"),yo=ao.height);var $o=uo;Co||($o-=ko/2),So.style.left=makeEm($o),io.label==="\\textcircled"&&(So.style.top=".2em"),So=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ao},{type:"kern",size:-yo},{type:"elem",elem:So}]},to)}var Ro=buildCommon.makeSpan(["mord","accent"],[So],to);return so?(so.children[0]=Ro,so.height=Math.max(Ro.height,so.height),so.classes[0]="mord",so):Ro},mathmlBuilder$9=(eo,to)=>{var no=eo.isStretchy?stretchy.mathMLnode(eo.label):new mathMLTree.MathNode("mo",[makeText(eo.label,eo.mode)]),io=new mathMLTree.MathNode("mover",[buildGroup(eo.base,to),no]);return io.setAttribute("accent","true"),io},NON_STRETCHY_ACCENT_REGEX=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(eo=>"\\"+eo).join("|"));defineFunction({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(eo,to)=>{var no=normalizeArgument(to[0]),io=!NON_STRETCHY_ACCENT_REGEX.test(eo.funcName),so=!io||eo.funcName==="\\widehat"||eo.funcName==="\\widetilde"||eo.funcName==="\\widecheck";return{type:"accent",mode:eo.parser.mode,label:eo.funcName,isStretchy:io,isShifty:so,base:no}},htmlBuilder:htmlBuilder$a,mathmlBuilder:mathmlBuilder$9});defineFunction({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(eo,to)=>{var no=to[0],io=eo.parser.mode;return io==="math"&&(eo.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+eo.funcName+" works only in text mode"),io="text"),{type:"accent",mode:io,label:eo.funcName,isStretchy:!1,isShifty:!0,base:no}},htmlBuilder:htmlBuilder$a,mathmlBuilder:mathmlBuilder$9});defineFunction({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=to[0];return{type:"accentUnder",mode:no.mode,label:io,base:so}},htmlBuilder:(eo,to)=>{var no=buildGroup$1(eo.base,to),io=stretchy.svgSpan(eo,to),so=eo.label==="\\utilde"?.12:0,ao=buildCommon.makeVList({positionType:"top",positionData:no.height,children:[{type:"elem",elem:io,wrapperClasses:["svg-align"]},{type:"kern",size:so},{type:"elem",elem:no}]},to);return buildCommon.makeSpan(["mord","accentunder"],[ao],to)},mathmlBuilder:(eo,to)=>{var no=stretchy.mathMLnode(eo.label),io=new mathMLTree.MathNode("munder",[buildGroup(eo.base,to),no]);return io.setAttribute("accentunder","true"),io}});var paddedNode=eo=>{var to=new mathMLTree.MathNode("mpadded",eo?[eo]:[]);return to.setAttribute("width","+0.6em"),to.setAttribute("lspace","0.3em"),to};defineFunction({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(eo,to,no){var{parser:io,funcName:so}=eo;return{type:"xArrow",mode:io.mode,label:so,body:to[0],below:no[0]}},htmlBuilder(eo,to){var no=to.style,io=to.havingStyle(no.sup()),so=buildCommon.wrapFragment(buildGroup$1(eo.body,io,to),to),ao=eo.label.slice(0,2)==="\\x"?"x":"cd";so.classes.push(ao+"-arrow-pad");var lo;eo.below&&(io=to.havingStyle(no.sub()),lo=buildCommon.wrapFragment(buildGroup$1(eo.below,io,to),to),lo.classes.push(ao+"-arrow-pad"));var uo=stretchy.svgSpan(eo,to),ho=-to.fontMetrics().axisHeight+.5*uo.height,go=-to.fontMetrics().axisHeight-.5*uo.height-.111;(so.depth>.25||eo.label==="\\xleftequilibrium")&&(go-=so.depth);var mo;if(lo){var yo=-to.fontMetrics().axisHeight+lo.height+.5*uo.height+.111;mo=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:so,shift:go},{type:"elem",elem:uo,shift:ho},{type:"elem",elem:lo,shift:yo}]},to)}else mo=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:so,shift:go},{type:"elem",elem:uo,shift:ho}]},to);return mo.children[0].children[0].children[1].classes.push("svg-align"),buildCommon.makeSpan(["mrel","x-arrow"],[mo],to)},mathmlBuilder(eo,to){var no=stretchy.mathMLnode(eo.label);no.setAttribute("minsize",eo.label.charAt(0)==="x"?"1.75em":"3.0em");var io;if(eo.body){var so=paddedNode(buildGroup(eo.body,to));if(eo.below){var ao=paddedNode(buildGroup(eo.below,to));io=new mathMLTree.MathNode("munderover",[no,ao,so])}else io=new mathMLTree.MathNode("mover",[no,so])}else if(eo.below){var lo=paddedNode(buildGroup(eo.below,to));io=new mathMLTree.MathNode("munder",[no,lo])}else io=paddedNode(),io=new mathMLTree.MathNode("mover",[no,io]);return io}});var makeSpan=buildCommon.makeSpan;function htmlBuilder$9(eo,to){var no=buildExpression$1(eo.body,to,!0);return makeSpan([eo.mclass],no,to)}function mathmlBuilder$8(eo,to){var no,io=buildExpression(eo.body,to);return eo.mclass==="minner"?no=new mathMLTree.MathNode("mpadded",io):eo.mclass==="mord"?eo.isCharacterBox?(no=io[0],no.type="mi"):no=new mathMLTree.MathNode("mi",io):(eo.isCharacterBox?(no=io[0],no.type="mo"):no=new mathMLTree.MathNode("mo",io),eo.mclass==="mbin"?(no.attributes.lspace="0.22em",no.attributes.rspace="0.22em"):eo.mclass==="mpunct"?(no.attributes.lspace="0em",no.attributes.rspace="0.17em"):eo.mclass==="mopen"||eo.mclass==="mclose"?(no.attributes.lspace="0em",no.attributes.rspace="0em"):eo.mclass==="minner"&&(no.attributes.lspace="0.0556em",no.attributes.width="+0.1111em")),no}defineFunction({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(eo,to){var{parser:no,funcName:io}=eo,so=to[0];return{type:"mclass",mode:no.mode,mclass:"m"+io.slice(5),body:ordargument(so),isCharacterBox:utils.isCharacterBox(so)}},htmlBuilder:htmlBuilder$9,mathmlBuilder:mathmlBuilder$8});var binrelClass=eo=>{var to=eo.type==="ordgroup"&&eo.body.length?eo.body[0]:eo;return to.type==="atom"&&(to.family==="bin"||to.family==="rel")?"m"+to.family:"mord"};defineFunction({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(eo,to){var{parser:no}=eo;return{type:"mclass",mode:no.mode,mclass:binrelClass(to[0]),body:ordargument(to[1]),isCharacterBox:utils.isCharacterBox(to[1])}}});defineFunction({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(eo,to){var{parser:no,funcName:io}=eo,so=to[1],ao=to[0],lo;io!=="\\stackrel"?lo=binrelClass(so):lo="mrel";var uo={type:"op",mode:so.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:io!=="\\stackrel",body:ordargument(so)},ho={type:"supsub",mode:ao.mode,base:uo,sup:io==="\\underset"?null:ao,sub:io==="\\underset"?ao:null};return{type:"mclass",mode:no.mode,mclass:lo,body:[ho],isCharacterBox:utils.isCharacterBox(ho)}},htmlBuilder:htmlBuilder$9,mathmlBuilder:mathmlBuilder$8});defineFunction({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(eo,to){var{parser:no}=eo;return{type:"pmb",mode:no.mode,mclass:binrelClass(to[0]),body:ordargument(to[0])}},htmlBuilder(eo,to){var no=buildExpression$1(eo.body,to,!0),io=buildCommon.makeSpan([eo.mclass],no,to);return io.style.textShadow="0.02em 0.01em 0.04px",io},mathmlBuilder(eo,to){var no=buildExpression(eo.body,to),io=new mathMLTree.MathNode("mstyle",no);return io.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),io}});var cdArrowFunctionName={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},newCell=()=>({type:"styling",body:[],mode:"math",style:"display"}),isStartOfArrow=eo=>eo.type==="textord"&&eo.text==="@",isLabelEnd=(eo,to)=>(eo.type==="mathord"||eo.type==="atom")&&eo.text===to;function cdArrow(eo,to,no){var io=cdArrowFunctionName[eo];switch(io){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return no.callFunction(io,[to[0]],[to[1]]);case"\\uparrow":case"\\downarrow":{var so=no.callFunction("\\\\cdleft",[to[0]],[]),ao={type:"atom",text:io,mode:"math",family:"rel"},lo=no.callFunction("\\Big",[ao],[]),uo=no.callFunction("\\\\cdright",[to[1]],[]),ho={type:"ordgroup",mode:"math",body:[so,lo,uo]};return no.callFunction("\\\\cdparent",[ho],[])}case"\\\\cdlongequal":return no.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var go={type:"textord",text:"\\Vert",mode:"math"};return no.callFunction("\\Big",[go],[])}default:return{type:"textord",text:" ",mode:"math"}}}function parseCD(eo){var to=[];for(eo.gullet.beginGroup(),eo.gullet.macros.set("\\cr","\\\\\\relax"),eo.gullet.beginGroup();;){to.push(eo.parseExpression(!1,"\\\\")),eo.gullet.endGroup(),eo.gullet.beginGroup();var no=eo.fetch().text;if(no==="&"||no==="\\\\")eo.consume();else if(no==="\\end"){to[to.length-1].length===0&&to.pop();break}else throw new ParseError("Expected \\\\ or \\cr or \\end",eo.nextToken)}for(var io=[],so=[io],ao=0;ao-1))if("<>AV".indexOf(go)>-1)for(var yo=0;yo<2;yo++){for(var So=!0,_o=ho+1;_oAV=|." after @',lo[ho]);var ko=cdArrow(go,mo,eo),Co={type:"styling",body:[ko],mode:"math",style:"display"};io.push(Co),uo=newCell()}ao%2===0?io.push(uo):io.shift(),io=[],so.push(io)}eo.gullet.endGroup(),eo.gullet.endGroup();var $o=new Array(so[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:so,arraystretch:1,addJot:!0,rowGaps:[null],cols:$o,colSeparationType:"CD",hLinesBeforeRow:new Array(so.length+1).fill([])}}defineFunction({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(eo,to){var{parser:no,funcName:io}=eo;return{type:"cdlabel",mode:no.mode,side:io.slice(4),label:to[0]}},htmlBuilder(eo,to){var no=to.havingStyle(to.style.sup()),io=buildCommon.wrapFragment(buildGroup$1(eo.label,no,to),to);return io.classes.push("cd-label-"+eo.side),io.style.bottom=makeEm(.8-io.depth),io.height=0,io.depth=0,io},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mrow",[buildGroup(eo.label,to)]);return no=new mathMLTree.MathNode("mpadded",[no]),no.setAttribute("width","0"),eo.side==="left"&&no.setAttribute("lspace","-1width"),no.setAttribute("voffset","0.7em"),no=new mathMLTree.MathNode("mstyle",[no]),no.setAttribute("displaystyle","false"),no.setAttribute("scriptlevel","1"),no}});defineFunction({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(eo,to){var{parser:no}=eo;return{type:"cdlabelparent",mode:no.mode,fragment:to[0]}},htmlBuilder(eo,to){var no=buildCommon.wrapFragment(buildGroup$1(eo.fragment,to),to);return no.classes.push("cd-vert-arrow"),no},mathmlBuilder(eo,to){return new mathMLTree.MathNode("mrow",[buildGroup(eo.fragment,to)])}});defineFunction({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(eo,to){for(var{parser:no}=eo,io=assertNodeType(to[0],"ordgroup"),so=io.body,ao="",lo=0;lo=1114111)throw new ParseError("\\@char with invalid code point "+ao);return ho<=65535?go=String.fromCharCode(ho):(ho-=65536,go=String.fromCharCode((ho>>10)+55296,(ho&1023)+56320)),{type:"textord",mode:no.mode,text:go}}});var htmlBuilder$8=(eo,to)=>{var no=buildExpression$1(eo.body,to.withColor(eo.color),!1);return buildCommon.makeFragment(no)},mathmlBuilder$7=(eo,to)=>{var no=buildExpression(eo.body,to.withColor(eo.color)),io=new mathMLTree.MathNode("mstyle",no);return io.setAttribute("mathcolor",eo.color),io};defineFunction({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(eo,to){var{parser:no}=eo,io=assertNodeType(to[0],"color-token").color,so=to[1];return{type:"color",mode:no.mode,color:io,body:ordargument(so)}},htmlBuilder:htmlBuilder$8,mathmlBuilder:mathmlBuilder$7});defineFunction({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(eo,to){var{parser:no,breakOnTokenText:io}=eo,so=assertNodeType(to[0],"color-token").color;no.gullet.macros.set("\\current@color",so);var ao=no.parseExpression(!0,io);return{type:"color",mode:no.mode,color:so,body:ao}},htmlBuilder:htmlBuilder$8,mathmlBuilder:mathmlBuilder$7});defineFunction({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(eo,to,no){var{parser:io}=eo,so=io.gullet.future().text==="["?io.parseSizeGroup(!0):null,ao=!io.settings.displayMode||!io.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:io.mode,newLine:ao,size:so&&assertNodeType(so,"size").value}},htmlBuilder(eo,to){var no=buildCommon.makeSpan(["mspace"],[],to);return eo.newLine&&(no.classes.push("newline"),eo.size&&(no.style.marginTop=makeEm(calculateSize(eo.size,to)))),no},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mspace");return eo.newLine&&(no.setAttribute("linebreak","newline"),eo.size&&no.setAttribute("height",makeEm(calculateSize(eo.size,to)))),no}});var globalMap={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},checkControlSequence=eo=>{var to=eo.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(to))throw new ParseError("Expected a control sequence",eo);return to},getRHS=eo=>{var to=eo.gullet.popToken();return to.text==="="&&(to=eo.gullet.popToken(),to.text===" "&&(to=eo.gullet.popToken())),to},letCommand=(eo,to,no,io)=>{var so=eo.gullet.macros.get(no.text);so==null&&(no.noexpand=!0,so={tokens:[no],numArgs:0,unexpandable:!eo.gullet.isExpandable(no.text)}),eo.gullet.macros.set(to,so,io)};defineFunction({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(eo){var{parser:to,funcName:no}=eo;to.consumeSpaces();var io=to.fetch();if(globalMap[io.text])return(no==="\\global"||no==="\\\\globallong")&&(io.text=globalMap[io.text]),assertNodeType(to.parseFunction(),"internal");throw new ParseError("Invalid token after macro prefix",io)}});defineFunction({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(eo){var{parser:to,funcName:no}=eo,io=to.gullet.popToken(),so=io.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(so))throw new ParseError("Expected a control sequence",io);for(var ao=0,lo,uo=[[]];to.gullet.future().text!=="{";)if(io=to.gullet.popToken(),io.text==="#"){if(to.gullet.future().text==="{"){lo=to.gullet.future(),uo[ao].push("{");break}if(io=to.gullet.popToken(),!/^[1-9]$/.test(io.text))throw new ParseError('Invalid argument number "'+io.text+'"');if(parseInt(io.text)!==ao+1)throw new ParseError('Argument number "'+io.text+'" out of order');ao++,uo.push([])}else{if(io.text==="EOF")throw new ParseError("Expected a macro definition");uo[ao].push(io.text)}var{tokens:ho}=to.gullet.consumeArg();return lo&&ho.unshift(lo),(no==="\\edef"||no==="\\xdef")&&(ho=to.gullet.expandTokens(ho),ho.reverse()),to.gullet.macros.set(so,{tokens:ho,numArgs:ao,delimiters:uo},no===globalMap[no]),{type:"internal",mode:to.mode}}});defineFunction({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(eo){var{parser:to,funcName:no}=eo,io=checkControlSequence(to.gullet.popToken());to.gullet.consumeSpaces();var so=getRHS(to);return letCommand(to,io,so,no==="\\\\globallet"),{type:"internal",mode:to.mode}}});defineFunction({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(eo){var{parser:to,funcName:no}=eo,io=checkControlSequence(to.gullet.popToken()),so=to.gullet.popToken(),ao=to.gullet.popToken();return letCommand(to,io,ao,no==="\\\\globalfuture"),to.gullet.pushToken(ao),to.gullet.pushToken(so),{type:"internal",mode:to.mode}}});var getMetrics=function eo(to,no,io){var so=symbols.math[to]&&symbols.math[to].replace,ao=getCharacterMetrics(so||to,no,io);if(!ao)throw new Error("Unsupported symbol "+to+" and font size "+no+".");return ao},styleWrap=function eo(to,no,io,so){var ao=io.havingBaseStyle(no),lo=buildCommon.makeSpan(so.concat(ao.sizingClasses(io)),[to],io),uo=ao.sizeMultiplier/io.sizeMultiplier;return lo.height*=uo,lo.depth*=uo,lo.maxFontSize=ao.sizeMultiplier,lo},centerSpan=function eo(to,no,io){var so=no.havingBaseStyle(io),ao=(1-no.sizeMultiplier/so.sizeMultiplier)*no.fontMetrics().axisHeight;to.classes.push("delimcenter"),to.style.top=makeEm(ao),to.height-=ao,to.depth+=ao},makeSmallDelim=function eo(to,no,io,so,ao,lo){var uo=buildCommon.makeSymbol(to,"Main-Regular",ao,so),ho=styleWrap(uo,no,so,lo);return io&¢erSpan(ho,so,no),ho},mathrmSize=function eo(to,no,io,so){return buildCommon.makeSymbol(to,"Size"+no+"-Regular",io,so)},makeLargeDelim=function eo(to,no,io,so,ao,lo){var uo=mathrmSize(to,no,ao,so),ho=styleWrap(buildCommon.makeSpan(["delimsizing","size"+no],[uo],so),Style$1$1.TEXT,so,lo);return io&¢erSpan(ho,so,Style$1$1.TEXT),ho},makeGlyphSpan=function eo(to,no,io){var so;no==="Size1-Regular"?so="delim-size1":so="delim-size4";var ao=buildCommon.makeSpan(["delimsizinginner",so],[buildCommon.makeSpan([],[buildCommon.makeSymbol(to,no,io)])]);return{type:"elem",elem:ao}},makeInner=function eo(to,no,io){var so=fontMetricsData["Size4-Regular"][to.charCodeAt(0)]?fontMetricsData["Size4-Regular"][to.charCodeAt(0)][4]:fontMetricsData["Size1-Regular"][to.charCodeAt(0)][4],ao=new PathNode("inner",innerPath(to,Math.round(1e3*no))),lo=new SvgNode([ao],{width:makeEm(so),height:makeEm(no),style:"width:"+makeEm(so),viewBox:"0 0 "+1e3*so+" "+Math.round(1e3*no),preserveAspectRatio:"xMinYMin"}),uo=buildCommon.makeSvgSpan([],[lo],io);return uo.height=no,uo.style.height=makeEm(no),uo.style.width=makeEm(so),{type:"elem",elem:uo}},lapInEms=.008,lap={type:"kern",size:-1*lapInEms},verts=["|","\\lvert","\\rvert","\\vert"],doubleVerts=["\\|","\\lVert","\\rVert","\\Vert"],makeStackedDelim=function eo(to,no,io,so,ao,lo){var uo,ho,go,mo,yo="",So=0;uo=go=mo=to,ho=null;var _o="Size1-Regular";to==="\\uparrow"?go=mo="⏐":to==="\\Uparrow"?go=mo="‖":to==="\\downarrow"?uo=go="⏐":to==="\\Downarrow"?uo=go="‖":to==="\\updownarrow"?(uo="\\uparrow",go="⏐",mo="\\downarrow"):to==="\\Updownarrow"?(uo="\\Uparrow",go="‖",mo="\\Downarrow"):utils.contains(verts,to)?(go="∣",yo="vert",So=333):utils.contains(doubleVerts,to)?(go="∥",yo="doublevert",So=556):to==="["||to==="\\lbrack"?(uo="⎡",go="⎢",mo="⎣",_o="Size4-Regular",yo="lbrack",So=667):to==="]"||to==="\\rbrack"?(uo="⎤",go="⎥",mo="⎦",_o="Size4-Regular",yo="rbrack",So=667):to==="\\lfloor"||to==="⌊"?(go=uo="⎢",mo="⎣",_o="Size4-Regular",yo="lfloor",So=667):to==="\\lceil"||to==="⌈"?(uo="⎡",go=mo="⎢",_o="Size4-Regular",yo="lceil",So=667):to==="\\rfloor"||to==="⌋"?(go=uo="⎥",mo="⎦",_o="Size4-Regular",yo="rfloor",So=667):to==="\\rceil"||to==="⌉"?(uo="⎤",go=mo="⎥",_o="Size4-Regular",yo="rceil",So=667):to==="("||to==="\\lparen"?(uo="⎛",go="⎜",mo="⎝",_o="Size4-Regular",yo="lparen",So=875):to===")"||to==="\\rparen"?(uo="⎞",go="⎟",mo="⎠",_o="Size4-Regular",yo="rparen",So=875):to==="\\{"||to==="\\lbrace"?(uo="⎧",ho="⎨",mo="⎩",go="⎪",_o="Size4-Regular"):to==="\\}"||to==="\\rbrace"?(uo="⎫",ho="⎬",mo="⎭",go="⎪",_o="Size4-Regular"):to==="\\lgroup"||to==="⟮"?(uo="⎧",mo="⎩",go="⎪",_o="Size4-Regular"):to==="\\rgroup"||to==="⟯"?(uo="⎫",mo="⎭",go="⎪",_o="Size4-Regular"):to==="\\lmoustache"||to==="⎰"?(uo="⎧",mo="⎭",go="⎪",_o="Size4-Regular"):(to==="\\rmoustache"||to==="⎱")&&(uo="⎫",mo="⎩",go="⎪",_o="Size4-Regular");var ko=getMetrics(uo,_o,ao),Co=ko.height+ko.depth,$o=getMetrics(go,_o,ao),Ro=$o.height+$o.depth,Oo=getMetrics(mo,_o,ao),No=Oo.height+Oo.depth,Mo=0,Bo=1;if(ho!==null){var Po=getMetrics(ho,_o,ao);Mo=Po.height+Po.depth,Bo=2}var Lo=Co+No+Mo,Go=Math.max(0,Math.ceil((no-Lo)/(Bo*Ro))),Do=Lo+Go*Bo*Ro,Uo=so.fontMetrics().axisHeight;io&&(Uo*=so.sizeMultiplier);var Ho=Do/2-Uo,Yo=[];if(yo.length>0){var qo=Do-Co-No,Jo=Math.round(Do*1e3),ps=tallDelim(yo,Math.round(qo*1e3)),Qo=new PathNode(yo,ps),hs=(So/1e3).toFixed(3)+"em",gs=(Jo/1e3).toFixed(3)+"em",ys=new SvgNode([Qo],{width:hs,height:gs,viewBox:"0 0 "+So+" "+Jo}),vs=buildCommon.makeSvgSpan([],[ys],so);vs.height=Jo/1e3,vs.style.width=hs,vs.style.height=gs,Yo.push({type:"elem",elem:vs})}else{if(Yo.push(makeGlyphSpan(mo,_o,ao)),Yo.push(lap),ho===null){var ks=Do-Co-No+2*lapInEms;Yo.push(makeInner(go,ks,so))}else{var Os=(Do-Co-No-Mo)/2+2*lapInEms;Yo.push(makeInner(go,Os,so)),Yo.push(lap),Yo.push(makeGlyphSpan(ho,_o,ao)),Yo.push(lap),Yo.push(makeInner(go,Os,so))}Yo.push(lap),Yo.push(makeGlyphSpan(uo,_o,ao))}var Ts=so.havingBaseStyle(Style$1$1.TEXT),Xs=buildCommon.makeVList({positionType:"bottom",positionData:Ho,children:Yo},Ts);return styleWrap(buildCommon.makeSpan(["delimsizing","mult"],[Xs],Ts),Style$1$1.TEXT,so,lo)},vbPad=80,emPad=.08,sqrtSvg=function eo(to,no,io,so,ao){var lo=sqrtPath(to,so,io),uo=new PathNode(to,lo),ho=new SvgNode([uo],{width:"400em",height:makeEm(no),viewBox:"0 0 400000 "+io,preserveAspectRatio:"xMinYMin slice"});return buildCommon.makeSvgSpan(["hide-tail"],[ho],ao)},makeSqrtImage=function eo(to,no){var io=no.havingBaseSizing(),so=traverseSequence("\\surd",to*io.sizeMultiplier,stackLargeDelimiterSequence,io),ao=io.sizeMultiplier,lo=Math.max(0,no.minRuleThickness-no.fontMetrics().sqrtRuleThickness),uo,ho=0,go=0,mo=0,yo;return so.type==="small"?(mo=1e3+1e3*lo+vbPad,to<1?ao=1:to<1.4&&(ao=.7),ho=(1+lo+emPad)/ao,go=(1+lo)/ao,uo=sqrtSvg("sqrtMain",ho,mo,lo,no),uo.style.minWidth="0.853em",yo=.833/ao):so.type==="large"?(mo=(1e3+vbPad)*sizeToMaxHeight[so.size],go=(sizeToMaxHeight[so.size]+lo)/ao,ho=(sizeToMaxHeight[so.size]+lo+emPad)/ao,uo=sqrtSvg("sqrtSize"+so.size,ho,mo,lo,no),uo.style.minWidth="1.02em",yo=1/ao):(ho=to+lo+emPad,go=to+lo,mo=Math.floor(1e3*to+lo)+vbPad,uo=sqrtSvg("sqrtTall",ho,mo,lo,no),uo.style.minWidth="0.742em",yo=1.056),uo.height=go,uo.style.height=makeEm(ho),{span:uo,advanceWidth:yo,ruleWidth:(no.fontMetrics().sqrtRuleThickness+lo)*ao}},stackLargeDelimiters=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],stackAlwaysDelimiters=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],stackNeverDelimiters=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],sizeToMaxHeight=[0,1.2,1.8,2.4,3],makeSizedDelim=function eo(to,no,io,so,ao){if(to==="<"||to==="\\lt"||to==="⟨"?to="\\langle":(to===">"||to==="\\gt"||to==="⟩")&&(to="\\rangle"),utils.contains(stackLargeDelimiters,to)||utils.contains(stackNeverDelimiters,to))return makeLargeDelim(to,no,!1,io,so,ao);if(utils.contains(stackAlwaysDelimiters,to))return makeStackedDelim(to,sizeToMaxHeight[no],!1,io,so,ao);throw new ParseError("Illegal delimiter: '"+to+"'")},stackNeverDelimiterSequence=[{type:"small",style:Style$1$1.SCRIPTSCRIPT},{type:"small",style:Style$1$1.SCRIPT},{type:"small",style:Style$1$1.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],stackAlwaysDelimiterSequence=[{type:"small",style:Style$1$1.SCRIPTSCRIPT},{type:"small",style:Style$1$1.SCRIPT},{type:"small",style:Style$1$1.TEXT},{type:"stack"}],stackLargeDelimiterSequence=[{type:"small",style:Style$1$1.SCRIPTSCRIPT},{type:"small",style:Style$1$1.SCRIPT},{type:"small",style:Style$1$1.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],delimTypeToFont=function eo(to){if(to.type==="small")return"Main-Regular";if(to.type==="large")return"Size"+to.size+"-Regular";if(to.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+to.type+"' here.")},traverseSequence=function eo(to,no,io,so){for(var ao=Math.min(2,3-so.style.size),lo=ao;lono)return io[lo]}return io[io.length-1]},makeCustomSizedDelim=function eo(to,no,io,so,ao,lo){to==="<"||to==="\\lt"||to==="⟨"?to="\\langle":(to===">"||to==="\\gt"||to==="⟩")&&(to="\\rangle");var uo;utils.contains(stackNeverDelimiters,to)?uo=stackNeverDelimiterSequence:utils.contains(stackLargeDelimiters,to)?uo=stackLargeDelimiterSequence:uo=stackAlwaysDelimiterSequence;var ho=traverseSequence(to,no,uo,so);return ho.type==="small"?makeSmallDelim(to,ho.style,io,so,ao,lo):ho.type==="large"?makeLargeDelim(to,ho.size,io,so,ao,lo):makeStackedDelim(to,no,io,so,ao,lo)},makeLeftRightDelim=function eo(to,no,io,so,ao,lo){var uo=so.fontMetrics().axisHeight*so.sizeMultiplier,ho=901,go=5/so.fontMetrics().ptPerEm,mo=Math.max(no-uo,io+uo),yo=Math.max(mo/500*ho,2*mo-go);return makeCustomSizedDelim(to,yo,!0,so,ao,lo)},delimiter={sqrtImage:makeSqrtImage,sizedDelim:makeSizedDelim,sizeToMaxHeight,customSizedDelim:makeCustomSizedDelim,leftRightDelim:makeLeftRightDelim},delimiterSizes={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},delimiters=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function checkDelimiter(eo,to){var no=checkSymbolNodeType(eo);if(no&&utils.contains(delimiters,no.text))return no;throw no?new ParseError("Invalid delimiter '"+no.text+"' after '"+to.funcName+"'",eo):new ParseError("Invalid delimiter type '"+eo.type+"'",eo)}defineFunction({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(eo,to)=>{var no=checkDelimiter(to[0],eo);return{type:"delimsizing",mode:eo.parser.mode,size:delimiterSizes[eo.funcName].size,mclass:delimiterSizes[eo.funcName].mclass,delim:no.text}},htmlBuilder:(eo,to)=>eo.delim==="."?buildCommon.makeSpan([eo.mclass]):delimiter.sizedDelim(eo.delim,eo.size,to,eo.mode,[eo.mclass]),mathmlBuilder:eo=>{var to=[];eo.delim!=="."&&to.push(makeText(eo.delim,eo.mode));var no=new mathMLTree.MathNode("mo",to);eo.mclass==="mopen"||eo.mclass==="mclose"?no.setAttribute("fence","true"):no.setAttribute("fence","false"),no.setAttribute("stretchy","true");var io=makeEm(delimiter.sizeToMaxHeight[eo.size]);return no.setAttribute("minsize",io),no.setAttribute("maxsize",io),no}});function assertParsed(eo){if(!eo.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}defineFunction({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(eo,to)=>{var no=eo.parser.gullet.macros.get("\\current@color");if(no&&typeof no!="string")throw new ParseError("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:eo.parser.mode,delim:checkDelimiter(to[0],eo).text,color:no}}});defineFunction({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(eo,to)=>{var no=checkDelimiter(to[0],eo),io=eo.parser;++io.leftrightDepth;var so=io.parseExpression(!1);--io.leftrightDepth,io.expect("\\right",!1);var ao=assertNodeType(io.parseFunction(),"leftright-right");return{type:"leftright",mode:io.mode,body:so,left:no.text,right:ao.delim,rightColor:ao.color}},htmlBuilder:(eo,to)=>{assertParsed(eo);for(var no=buildExpression$1(eo.body,to,!0,["mopen","mclose"]),io=0,so=0,ao=!1,lo=0;lo{assertParsed(eo);var no=buildExpression(eo.body,to);if(eo.left!=="."){var io=new mathMLTree.MathNode("mo",[makeText(eo.left,eo.mode)]);io.setAttribute("fence","true"),no.unshift(io)}if(eo.right!=="."){var so=new mathMLTree.MathNode("mo",[makeText(eo.right,eo.mode)]);so.setAttribute("fence","true"),eo.rightColor&&so.setAttribute("mathcolor",eo.rightColor),no.push(so)}return makeRow(no)}});defineFunction({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(eo,to)=>{var no=checkDelimiter(to[0],eo);if(!eo.parser.leftrightDepth)throw new ParseError("\\middle without preceding \\left",no);return{type:"middle",mode:eo.parser.mode,delim:no.text}},htmlBuilder:(eo,to)=>{var no;if(eo.delim===".")no=makeNullDelimiter(to,[]);else{no=delimiter.sizedDelim(eo.delim,1,to,eo.mode,[]);var io={delim:eo.delim,options:to};no.isMiddle=io}return no},mathmlBuilder:(eo,to)=>{var no=eo.delim==="\\vert"||eo.delim==="|"?makeText("|","text"):makeText(eo.delim,eo.mode),io=new mathMLTree.MathNode("mo",[no]);return io.setAttribute("fence","true"),io.setAttribute("lspace","0.05em"),io.setAttribute("rspace","0.05em"),io}});var htmlBuilder$7=(eo,to)=>{var no=buildCommon.wrapFragment(buildGroup$1(eo.body,to),to),io=eo.label.slice(1),so=to.sizeMultiplier,ao,lo=0,uo=utils.isCharacterBox(eo.body);if(io==="sout")ao=buildCommon.makeSpan(["stretchy","sout"]),ao.height=to.fontMetrics().defaultRuleThickness/so,lo=-.5*to.fontMetrics().xHeight;else if(io==="phase"){var ho=calculateSize({number:.6,unit:"pt"},to),go=calculateSize({number:.35,unit:"ex"},to),mo=to.havingBaseSizing();so=so/mo.sizeMultiplier;var yo=no.height+no.depth+ho+go;no.style.paddingLeft=makeEm(yo/2+ho);var So=Math.floor(1e3*yo*so),_o=phasePath(So),ko=new SvgNode([new PathNode("phase",_o)],{width:"400em",height:makeEm(So/1e3),viewBox:"0 0 400000 "+So,preserveAspectRatio:"xMinYMin slice"});ao=buildCommon.makeSvgSpan(["hide-tail"],[ko],to),ao.style.height=makeEm(yo),lo=no.depth+ho+go}else{/cancel/.test(io)?uo||no.classes.push("cancel-pad"):io==="angl"?no.classes.push("anglpad"):no.classes.push("boxpad");var Co=0,$o=0,Ro=0;/box/.test(io)?(Ro=Math.max(to.fontMetrics().fboxrule,to.minRuleThickness),Co=to.fontMetrics().fboxsep+(io==="colorbox"?0:Ro),$o=Co):io==="angl"?(Ro=Math.max(to.fontMetrics().defaultRuleThickness,to.minRuleThickness),Co=4*Ro,$o=Math.max(0,.25-no.depth)):(Co=uo?.2:0,$o=Co),ao=stretchy.encloseSpan(no,io,Co,$o,to),/fbox|boxed|fcolorbox/.test(io)?(ao.style.borderStyle="solid",ao.style.borderWidth=makeEm(Ro)):io==="angl"&&Ro!==.049&&(ao.style.borderTopWidth=makeEm(Ro),ao.style.borderRightWidth=makeEm(Ro)),lo=no.depth+$o,eo.backgroundColor&&(ao.style.backgroundColor=eo.backgroundColor,eo.borderColor&&(ao.style.borderColor=eo.borderColor))}var Oo;if(eo.backgroundColor)Oo=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ao,shift:lo},{type:"elem",elem:no,shift:0}]},to);else{var No=/cancel|phase/.test(io)?["svg-align"]:[];Oo=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:no,shift:0},{type:"elem",elem:ao,shift:lo,wrapperClasses:No}]},to)}return/cancel/.test(io)&&(Oo.height=no.height,Oo.depth=no.depth),/cancel/.test(io)&&!uo?buildCommon.makeSpan(["mord","cancel-lap"],[Oo],to):buildCommon.makeSpan(["mord"],[Oo],to)},mathmlBuilder$6=(eo,to)=>{var no=0,io=new mathMLTree.MathNode(eo.label.indexOf("colorbox")>-1?"mpadded":"menclose",[buildGroup(eo.body,to)]);switch(eo.label){case"\\cancel":io.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":io.setAttribute("notation","downdiagonalstrike");break;case"\\phase":io.setAttribute("notation","phasorangle");break;case"\\sout":io.setAttribute("notation","horizontalstrike");break;case"\\fbox":io.setAttribute("notation","box");break;case"\\angl":io.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(no=to.fontMetrics().fboxsep*to.fontMetrics().ptPerEm,io.setAttribute("width","+"+2*no+"pt"),io.setAttribute("height","+"+2*no+"pt"),io.setAttribute("lspace",no+"pt"),io.setAttribute("voffset",no+"pt"),eo.label==="\\fcolorbox"){var so=Math.max(to.fontMetrics().fboxrule,to.minRuleThickness);io.setAttribute("style","border: "+so+"em solid "+String(eo.borderColor))}break;case"\\xcancel":io.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return eo.backgroundColor&&io.setAttribute("mathbackground",eo.backgroundColor),io};defineFunction({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(eo,to,no){var{parser:io,funcName:so}=eo,ao=assertNodeType(to[0],"color-token").color,lo=to[1];return{type:"enclose",mode:io.mode,label:so,backgroundColor:ao,body:lo}},htmlBuilder:htmlBuilder$7,mathmlBuilder:mathmlBuilder$6});defineFunction({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(eo,to,no){var{parser:io,funcName:so}=eo,ao=assertNodeType(to[0],"color-token").color,lo=assertNodeType(to[1],"color-token").color,uo=to[2];return{type:"enclose",mode:io.mode,label:so,backgroundColor:lo,borderColor:ao,body:uo}},htmlBuilder:htmlBuilder$7,mathmlBuilder:mathmlBuilder$6});defineFunction({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(eo,to){var{parser:no}=eo;return{type:"enclose",mode:no.mode,label:"\\fbox",body:to[0]}}});defineFunction({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(eo,to){var{parser:no,funcName:io}=eo,so=to[0];return{type:"enclose",mode:no.mode,label:io,body:so}},htmlBuilder:htmlBuilder$7,mathmlBuilder:mathmlBuilder$6});defineFunction({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(eo,to){var{parser:no}=eo;return{type:"enclose",mode:no.mode,label:"\\angl",body:to[0]}}});var _environments={};function defineEnvironment(eo){for(var{type:to,names:no,props:io,handler:so,htmlBuilder:ao,mathmlBuilder:lo}=eo,uo={type:to,numArgs:io.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:so},ho=0;ho{var to=eo.parser.settings;if(!to.displayMode)throw new ParseError("{"+eo.envName+"} can be used only in display mode.")};function getAutoTag(eo){if(eo.indexOf("ed")===-1)return eo.indexOf("*")===-1}function parseArray(eo,to,no){var{hskipBeforeAndAfter:io,addJot:so,cols:ao,arraystretch:lo,colSeparationType:uo,autoTag:ho,singleRow:go,emptySingleRow:mo,maxNumCols:yo,leqno:So}=to;if(eo.gullet.beginGroup(),go||eo.gullet.macros.set("\\cr","\\\\\\relax"),!lo){var _o=eo.gullet.expandMacroAsText("\\arraystretch");if(_o==null)lo=1;else if(lo=parseFloat(_o),!lo||lo<0)throw new ParseError("Invalid \\arraystretch: "+_o)}eo.gullet.beginGroup();var ko=[],Co=[ko],$o=[],Ro=[],Oo=ho!=null?[]:void 0;function No(){ho&&eo.gullet.macros.set("\\@eqnsw","1",!0)}function Mo(){Oo&&(eo.gullet.macros.get("\\df@tag")?(Oo.push(eo.subparse([new Token("\\df@tag")])),eo.gullet.macros.set("\\df@tag",void 0,!0)):Oo.push(!!ho&&eo.gullet.macros.get("\\@eqnsw")==="1"))}for(No(),Ro.push(getHLines(eo));;){var Bo=eo.parseExpression(!1,go?"\\end":"\\\\");eo.gullet.endGroup(),eo.gullet.beginGroup(),Bo={type:"ordgroup",mode:eo.mode,body:Bo},no&&(Bo={type:"styling",mode:eo.mode,style:no,body:[Bo]}),ko.push(Bo);var Po=eo.fetch().text;if(Po==="&"){if(yo&&ko.length===yo){if(go||uo)throw new ParseError("Too many tab characters: &",eo.nextToken);eo.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}eo.consume()}else if(Po==="\\end"){Mo(),ko.length===1&&Bo.type==="styling"&&Bo.body[0].body.length===0&&(Co.length>1||!mo)&&Co.pop(),Ro.length0&&(No+=.25),go.push({pos:No,isDashed:Fu[ju]})}for(Mo(lo[0]),io=0;io0&&(Ho+=Oo,LoFu))for(io=0;io=uo)){var qs=void 0;(so>0||to.hskipBeforeAndAfter)&&(qs=utils.deflt(Os.pregap,So),qs!==0&&(ps=buildCommon.makeSpan(["arraycolsep"],[]),ps.style.width=makeEm(qs),Jo.push(ps)));var ga=[];for(io=0;io0){for(var El=buildCommon.makeLineSpan("hline",no,mo),yl=buildCommon.makeLineSpan("hdashline",no,mo),Gl=[{type:"elem",elem:ho,shift:0}];go.length>0;){var Qs=go.pop(),du=Qs.pos-Yo;Qs.isDashed?Gl.push({type:"elem",elem:yl,shift:du}):Gl.push({type:"elem",elem:El,shift:du})}ho=buildCommon.makeVList({positionType:"individualShift",children:Gl},no)}if(hs.length===0)return buildCommon.makeSpan(["mord"],[ho],no);var Ol=buildCommon.makeVList({positionType:"individualShift",children:hs},no);return Ol=buildCommon.makeSpan(["tag"],[Ol],no),buildCommon.makeFragment([ho,Ol])},alignMap={c:"center ",l:"left ",r:"right "},mathmlBuilder$5=function eo(to,no){for(var io=[],so=new mathMLTree.MathNode("mtd",[],["mtr-glue"]),ao=new mathMLTree.MathNode("mtd",[],["mml-eqn-num"]),lo=0;lo0){var ko=to.cols,Co="",$o=!1,Ro=0,Oo=ko.length;ko[0].type==="separator"&&(So+="top ",Ro=1),ko[ko.length-1].type==="separator"&&(So+="bottom ",Oo-=1);for(var No=Ro;No0?"left ":"",So+=Go[Go.length-1].length>0?"right ":"";for(var Do=1;Do-1?"alignat":"align",ao=to.envName==="split",lo=parseArray(to.parser,{cols:io,addJot:!0,autoTag:ao?void 0:getAutoTag(to.envName),emptySingleRow:!0,colSeparationType:so,maxNumCols:ao?2:void 0,leqno:to.parser.settings.leqno},"display"),uo,ho=0,go={type:"ordgroup",mode:to.mode,body:[]};if(no[0]&&no[0].type==="ordgroup"){for(var mo="",yo=0;yo0&&_o&&($o=1),io[ko]={type:"align",align:Co,pregap:$o,postgap:0}}return lo.colSeparationType=_o?"align":"alignat",lo};defineEnvironment({type:"array",names:["array","darray"],props:{numArgs:1},handler(eo,to){var no=checkSymbolNodeType(to[0]),io=no?[to[0]]:assertNodeType(to[0],"ordgroup").body,so=io.map(function(lo){var uo=assertSymbolNodeType(lo),ho=uo.text;if("lcr".indexOf(ho)!==-1)return{type:"align",align:ho};if(ho==="|")return{type:"separator",separator:"|"};if(ho===":")return{type:"separator",separator:":"};throw new ParseError("Unknown column alignment: "+ho,lo)}),ao={cols:so,hskipBeforeAndAfter:!0,maxNumCols:so.length};return parseArray(eo.parser,ao,dCellStyle(eo.envName))},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(eo){var to={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[eo.envName.replace("*","")],no="c",io={hskipBeforeAndAfter:!1,cols:[{type:"align",align:no}]};if(eo.envName.charAt(eo.envName.length-1)==="*"){var so=eo.parser;if(so.consumeSpaces(),so.fetch().text==="["){if(so.consume(),so.consumeSpaces(),no=so.fetch().text,"lcr".indexOf(no)===-1)throw new ParseError("Expected l or c or r",so.nextToken);so.consume(),so.consumeSpaces(),so.expect("]"),so.consume(),io.cols=[{type:"align",align:no}]}}var ao=parseArray(eo.parser,io,dCellStyle(eo.envName)),lo=Math.max(0,...ao.body.map(uo=>uo.length));return ao.cols=new Array(lo).fill({type:"align",align:no}),to?{type:"leftright",mode:eo.mode,body:[ao],left:to[0],right:to[1],rightColor:void 0}:ao},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(eo){var to={arraystretch:.5},no=parseArray(eo.parser,to,"script");return no.colSeparationType="small",no},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["subarray"],props:{numArgs:1},handler(eo,to){var no=checkSymbolNodeType(to[0]),io=no?[to[0]]:assertNodeType(to[0],"ordgroup").body,so=io.map(function(lo){var uo=assertSymbolNodeType(lo),ho=uo.text;if("lc".indexOf(ho)!==-1)return{type:"align",align:ho};throw new ParseError("Unknown column alignment: "+ho,lo)});if(so.length>1)throw new ParseError("{subarray} can contain only one column");var ao={cols:so,hskipBeforeAndAfter:!1,arraystretch:.5};if(ao=parseArray(eo.parser,ao,"script"),ao.body.length>0&&ao.body[0].length>1)throw new ParseError("{subarray} can contain only one column");return ao},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(eo){var to={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},no=parseArray(eo.parser,to,dCellStyle(eo.envName));return{type:"leftright",mode:eo.mode,body:[no],left:eo.envName.indexOf("r")>-1?".":"\\{",right:eo.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:alignedHandler,htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(eo){utils.contains(["gather","gather*"],eo.envName)&&validateAmsEnvironmentContext(eo);var to={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:getAutoTag(eo.envName),emptySingleRow:!0,leqno:eo.parser.settings.leqno};return parseArray(eo.parser,to,"display")},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:alignedHandler,htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(eo){validateAmsEnvironmentContext(eo);var to={autoTag:getAutoTag(eo.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:eo.parser.settings.leqno};return parseArray(eo.parser,to,"display")},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["CD"],props:{numArgs:0},handler(eo){return validateAmsEnvironmentContext(eo),parseCD(eo.parser)},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineMacro("\\nonumber","\\gdef\\@eqnsw{0}");defineMacro("\\notag","\\nonumber");defineFunction({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(eo,to){throw new ParseError(eo.funcName+" valid only within array environment")}});var environments=_environments;defineFunction({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(eo,to){var{parser:no,funcName:io}=eo,so=to[0];if(so.type!=="ordgroup")throw new ParseError("Invalid environment name",so);for(var ao="",lo=0;lo{var no=eo.font,io=to.withFont(no);return buildGroup$1(eo.body,io)},mathmlBuilder$4=(eo,to)=>{var no=eo.font,io=to.withFont(no);return buildGroup(eo.body,io)},fontAliases={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};defineFunction({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=normalizeArgument(to[0]),ao=io;return ao in fontAliases&&(ao=fontAliases[ao]),{type:"font",mode:no.mode,font:ao.slice(1),body:so}},htmlBuilder:htmlBuilder$5,mathmlBuilder:mathmlBuilder$4});defineFunction({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(eo,to)=>{var{parser:no}=eo,io=to[0],so=utils.isCharacterBox(io);return{type:"mclass",mode:no.mode,mclass:binrelClass(io),body:[{type:"font",mode:no.mode,font:"boldsymbol",body:io}],isCharacterBox:so}}});defineFunction({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(eo,to)=>{var{parser:no,funcName:io,breakOnTokenText:so}=eo,{mode:ao}=no,lo=no.parseExpression(!0,so),uo="math"+io.slice(1);return{type:"font",mode:ao,font:uo,body:{type:"ordgroup",mode:no.mode,body:lo}}},htmlBuilder:htmlBuilder$5,mathmlBuilder:mathmlBuilder$4});var adjustStyle=(eo,to)=>{var no=to;return eo==="display"?no=no.id>=Style$1$1.SCRIPT.id?no.text():Style$1$1.DISPLAY:eo==="text"&&no.size===Style$1$1.DISPLAY.size?no=Style$1$1.TEXT:eo==="script"?no=Style$1$1.SCRIPT:eo==="scriptscript"&&(no=Style$1$1.SCRIPTSCRIPT),no},htmlBuilder$4=(eo,to)=>{var no=adjustStyle(eo.size,to.style),io=no.fracNum(),so=no.fracDen(),ao;ao=to.havingStyle(io);var lo=buildGroup$1(eo.numer,ao,to);if(eo.continued){var uo=8.5/to.fontMetrics().ptPerEm,ho=3.5/to.fontMetrics().ptPerEm;lo.height=lo.height0?ko=3*So:ko=7*So,Co=to.fontMetrics().denom1):(yo>0?(_o=to.fontMetrics().num2,ko=So):(_o=to.fontMetrics().num3,ko=3*So),Co=to.fontMetrics().denom2);var $o;if(mo){var Oo=to.fontMetrics().axisHeight;_o-lo.depth-(Oo+.5*yo){var no=new mathMLTree.MathNode("mfrac",[buildGroup(eo.numer,to),buildGroup(eo.denom,to)]);if(!eo.hasBarLine)no.setAttribute("linethickness","0px");else if(eo.barSize){var io=calculateSize(eo.barSize,to);no.setAttribute("linethickness",makeEm(io))}var so=adjustStyle(eo.size,to.style);if(so.size!==to.style.size){no=new mathMLTree.MathNode("mstyle",[no]);var ao=so.size===Style$1$1.DISPLAY.size?"true":"false";no.setAttribute("displaystyle",ao),no.setAttribute("scriptlevel","0")}if(eo.leftDelim!=null||eo.rightDelim!=null){var lo=[];if(eo.leftDelim!=null){var uo=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode(eo.leftDelim.replace("\\",""))]);uo.setAttribute("fence","true"),lo.push(uo)}if(lo.push(no),eo.rightDelim!=null){var ho=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode(eo.rightDelim.replace("\\",""))]);ho.setAttribute("fence","true"),lo.push(ho)}return makeRow(lo)}return no};defineFunction({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=to[0],ao=to[1],lo,uo=null,ho=null,go="auto";switch(io){case"\\dfrac":case"\\frac":case"\\tfrac":lo=!0;break;case"\\\\atopfrac":lo=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":lo=!1,uo="(",ho=")";break;case"\\\\bracefrac":lo=!1,uo="\\{",ho="\\}";break;case"\\\\brackfrac":lo=!1,uo="[",ho="]";break;default:throw new Error("Unrecognized genfrac command")}switch(io){case"\\dfrac":case"\\dbinom":go="display";break;case"\\tfrac":case"\\tbinom":go="text";break}return{type:"genfrac",mode:no.mode,continued:!1,numer:so,denom:ao,hasBarLine:lo,leftDelim:uo,rightDelim:ho,size:go,barSize:null}},htmlBuilder:htmlBuilder$4,mathmlBuilder:mathmlBuilder$3});defineFunction({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=to[0],ao=to[1];return{type:"genfrac",mode:no.mode,continued:!0,numer:so,denom:ao,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});defineFunction({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(eo){var{parser:to,funcName:no,token:io}=eo,so;switch(no){case"\\over":so="\\frac";break;case"\\choose":so="\\binom";break;case"\\atop":so="\\\\atopfrac";break;case"\\brace":so="\\\\bracefrac";break;case"\\brack":so="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:to.mode,replaceWith:so,token:io}}});var stylArray=["display","text","script","scriptscript"],delimFromValue=function eo(to){var no=null;return to.length>0&&(no=to,no=no==="."?null:no),no};defineFunction({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(eo,to){var{parser:no}=eo,io=to[4],so=to[5],ao=normalizeArgument(to[0]),lo=ao.type==="atom"&&ao.family==="open"?delimFromValue(ao.text):null,uo=normalizeArgument(to[1]),ho=uo.type==="atom"&&uo.family==="close"?delimFromValue(uo.text):null,go=assertNodeType(to[2],"size"),mo,yo=null;go.isBlank?mo=!0:(yo=go.value,mo=yo.number>0);var So="auto",_o=to[3];if(_o.type==="ordgroup"){if(_o.body.length>0){var ko=assertNodeType(_o.body[0],"textord");So=stylArray[Number(ko.text)]}}else _o=assertNodeType(_o,"textord"),So=stylArray[Number(_o.text)];return{type:"genfrac",mode:no.mode,numer:io,denom:so,continued:!1,hasBarLine:mo,barSize:yo,leftDelim:lo,rightDelim:ho,size:So}},htmlBuilder:htmlBuilder$4,mathmlBuilder:mathmlBuilder$3});defineFunction({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(eo,to){var{parser:no,funcName:io,token:so}=eo;return{type:"infix",mode:no.mode,replaceWith:"\\\\abovefrac",size:assertNodeType(to[0],"size").value,token:so}}});defineFunction({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=to[0],ao=assert(assertNodeType(to[1],"infix").size),lo=to[2],uo=ao.number>0;return{type:"genfrac",mode:no.mode,numer:so,denom:lo,continued:!1,hasBarLine:uo,barSize:ao,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:htmlBuilder$4,mathmlBuilder:mathmlBuilder$3});var htmlBuilder$3=(eo,to)=>{var no=to.style,io,so;eo.type==="supsub"?(io=eo.sup?buildGroup$1(eo.sup,to.havingStyle(no.sup()),to):buildGroup$1(eo.sub,to.havingStyle(no.sub()),to),so=assertNodeType(eo.base,"horizBrace")):so=assertNodeType(eo,"horizBrace");var ao=buildGroup$1(so.base,to.havingBaseStyle(Style$1$1.DISPLAY)),lo=stretchy.svgSpan(so,to),uo;if(so.isOver?(uo=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ao},{type:"kern",size:.1},{type:"elem",elem:lo}]},to),uo.children[0].children[0].children[1].classes.push("svg-align")):(uo=buildCommon.makeVList({positionType:"bottom",positionData:ao.depth+.1+lo.height,children:[{type:"elem",elem:lo},{type:"kern",size:.1},{type:"elem",elem:ao}]},to),uo.children[0].children[0].children[0].classes.push("svg-align")),io){var ho=buildCommon.makeSpan(["mord",so.isOver?"mover":"munder"],[uo],to);so.isOver?uo=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ho},{type:"kern",size:.2},{type:"elem",elem:io}]},to):uo=buildCommon.makeVList({positionType:"bottom",positionData:ho.depth+.2+io.height+io.depth,children:[{type:"elem",elem:io},{type:"kern",size:.2},{type:"elem",elem:ho}]},to)}return buildCommon.makeSpan(["mord",so.isOver?"mover":"munder"],[uo],to)},mathmlBuilder$2=(eo,to)=>{var no=stretchy.mathMLnode(eo.label);return new mathMLTree.MathNode(eo.isOver?"mover":"munder",[buildGroup(eo.base,to),no])};defineFunction({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(eo,to){var{parser:no,funcName:io}=eo;return{type:"horizBrace",mode:no.mode,label:io,isOver:/^\\over/.test(io),base:to[0]}},htmlBuilder:htmlBuilder$3,mathmlBuilder:mathmlBuilder$2});defineFunction({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(eo,to)=>{var{parser:no}=eo,io=to[1],so=assertNodeType(to[0],"url").url;return no.settings.isTrusted({command:"\\href",url:so})?{type:"href",mode:no.mode,href:so,body:ordargument(io)}:no.formatUnsupportedCmd("\\href")},htmlBuilder:(eo,to)=>{var no=buildExpression$1(eo.body,to,!1);return buildCommon.makeAnchor(eo.href,[],no,to)},mathmlBuilder:(eo,to)=>{var no=buildExpressionRow(eo.body,to);return no instanceof MathNode||(no=new MathNode("mrow",[no])),no.setAttribute("href",eo.href),no}});defineFunction({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(eo,to)=>{var{parser:no}=eo,io=assertNodeType(to[0],"url").url;if(!no.settings.isTrusted({command:"\\url",url:io}))return no.formatUnsupportedCmd("\\url");for(var so=[],ao=0;ao{var{parser:no,funcName:io,token:so}=eo,ao=assertNodeType(to[0],"raw").string,lo=to[1];no.settings.strict&&no.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var uo,ho={};switch(io){case"\\htmlClass":ho.class=ao,uo={command:"\\htmlClass",class:ao};break;case"\\htmlId":ho.id=ao,uo={command:"\\htmlId",id:ao};break;case"\\htmlStyle":ho.style=ao,uo={command:"\\htmlStyle",style:ao};break;case"\\htmlData":{for(var go=ao.split(","),mo=0;mo{var no=buildExpression$1(eo.body,to,!1),io=["enclosing"];eo.attributes.class&&io.push(...eo.attributes.class.trim().split(/\s+/));var so=buildCommon.makeSpan(io,no,to);for(var ao in eo.attributes)ao!=="class"&&eo.attributes.hasOwnProperty(ao)&&so.setAttribute(ao,eo.attributes[ao]);return so},mathmlBuilder:(eo,to)=>buildExpressionRow(eo.body,to)});defineFunction({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(eo,to)=>{var{parser:no}=eo;return{type:"htmlmathml",mode:no.mode,html:ordargument(to[0]),mathml:ordargument(to[1])}},htmlBuilder:(eo,to)=>{var no=buildExpression$1(eo.html,to,!1);return buildCommon.makeFragment(no)},mathmlBuilder:(eo,to)=>buildExpressionRow(eo.mathml,to)});var sizeData=function eo(to){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(to))return{number:+to,unit:"bp"};var no=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(to);if(!no)throw new ParseError("Invalid size: '"+to+"' in \\includegraphics");var io={number:+(no[1]+no[2]),unit:no[3]};if(!validUnit(io))throw new ParseError("Invalid unit: '"+io.unit+"' in \\includegraphics.");return io};defineFunction({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(eo,to,no)=>{var{parser:io}=eo,so={number:0,unit:"em"},ao={number:.9,unit:"em"},lo={number:0,unit:"em"},uo="";if(no[0])for(var ho=assertNodeType(no[0],"raw").string,go=ho.split(","),mo=0;mo{var no=calculateSize(eo.height,to),io=0;eo.totalheight.number>0&&(io=calculateSize(eo.totalheight,to)-no);var so=0;eo.width.number>0&&(so=calculateSize(eo.width,to));var ao={height:makeEm(no+io)};so>0&&(ao.width=makeEm(so)),io>0&&(ao.verticalAlign=makeEm(-io));var lo=new Img(eo.src,eo.alt,ao);return lo.height=no,lo.depth=io,lo},mathmlBuilder:(eo,to)=>{var no=new mathMLTree.MathNode("mglyph",[]);no.setAttribute("alt",eo.alt);var io=calculateSize(eo.height,to),so=0;if(eo.totalheight.number>0&&(so=calculateSize(eo.totalheight,to)-io,no.setAttribute("valign",makeEm(-so))),no.setAttribute("height",makeEm(io+so)),eo.width.number>0){var ao=calculateSize(eo.width,to);no.setAttribute("width",makeEm(ao))}return no.setAttribute("src",eo.src),no}});defineFunction({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(eo,to){var{parser:no,funcName:io}=eo,so=assertNodeType(to[0],"size");if(no.settings.strict){var ao=io[1]==="m",lo=so.value.unit==="mu";ao?(lo||no.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+io+" supports only mu units, "+("not "+so.value.unit+" units")),no.mode!=="math"&&no.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+io+" works only in math mode")):lo&&no.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+io+" doesn't support mu units")}return{type:"kern",mode:no.mode,dimension:so.value}},htmlBuilder(eo,to){return buildCommon.makeGlue(eo.dimension,to)},mathmlBuilder(eo,to){var no=calculateSize(eo.dimension,to);return new mathMLTree.SpaceNode(no)}});defineFunction({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=to[0];return{type:"lap",mode:no.mode,alignment:io.slice(5),body:so}},htmlBuilder:(eo,to)=>{var no;eo.alignment==="clap"?(no=buildCommon.makeSpan([],[buildGroup$1(eo.body,to)]),no=buildCommon.makeSpan(["inner"],[no],to)):no=buildCommon.makeSpan(["inner"],[buildGroup$1(eo.body,to)]);var io=buildCommon.makeSpan(["fix"],[]),so=buildCommon.makeSpan([eo.alignment],[no,io],to),ao=buildCommon.makeSpan(["strut"]);return ao.style.height=makeEm(so.height+so.depth),so.depth&&(ao.style.verticalAlign=makeEm(-so.depth)),so.children.unshift(ao),so=buildCommon.makeSpan(["thinbox"],[so],to),buildCommon.makeSpan(["mord","vbox"],[so],to)},mathmlBuilder:(eo,to)=>{var no=new mathMLTree.MathNode("mpadded",[buildGroup(eo.body,to)]);if(eo.alignment!=="rlap"){var io=eo.alignment==="llap"?"-1":"-0.5";no.setAttribute("lspace",io+"width")}return no.setAttribute("width","0px"),no}});defineFunction({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(eo,to){var{funcName:no,parser:io}=eo,so=io.mode;io.switchMode("math");var ao=no==="\\("?"\\)":"$",lo=io.parseExpression(!1,ao);return io.expect(ao),io.switchMode(so),{type:"styling",mode:io.mode,style:"text",body:lo}}});defineFunction({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(eo,to){throw new ParseError("Mismatched "+eo.funcName)}});var chooseMathStyle=(eo,to)=>{switch(to.style.size){case Style$1$1.DISPLAY.size:return eo.display;case Style$1$1.TEXT.size:return eo.text;case Style$1$1.SCRIPT.size:return eo.script;case Style$1$1.SCRIPTSCRIPT.size:return eo.scriptscript;default:return eo.text}};defineFunction({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(eo,to)=>{var{parser:no}=eo;return{type:"mathchoice",mode:no.mode,display:ordargument(to[0]),text:ordargument(to[1]),script:ordargument(to[2]),scriptscript:ordargument(to[3])}},htmlBuilder:(eo,to)=>{var no=chooseMathStyle(eo,to),io=buildExpression$1(no,to,!1);return buildCommon.makeFragment(io)},mathmlBuilder:(eo,to)=>{var no=chooseMathStyle(eo,to);return buildExpressionRow(no,to)}});var assembleSupSub=(eo,to,no,io,so,ao,lo)=>{eo=buildCommon.makeSpan([],[eo]);var uo=no&&utils.isCharacterBox(no),ho,go;if(to){var mo=buildGroup$1(to,io.havingStyle(so.sup()),io);go={elem:mo,kern:Math.max(io.fontMetrics().bigOpSpacing1,io.fontMetrics().bigOpSpacing3-mo.depth)}}if(no){var yo=buildGroup$1(no,io.havingStyle(so.sub()),io);ho={elem:yo,kern:Math.max(io.fontMetrics().bigOpSpacing2,io.fontMetrics().bigOpSpacing4-yo.height)}}var So;if(go&&ho){var _o=io.fontMetrics().bigOpSpacing5+ho.elem.height+ho.elem.depth+ho.kern+eo.depth+lo;So=buildCommon.makeVList({positionType:"bottom",positionData:_o,children:[{type:"kern",size:io.fontMetrics().bigOpSpacing5},{type:"elem",elem:ho.elem,marginLeft:makeEm(-ao)},{type:"kern",size:ho.kern},{type:"elem",elem:eo},{type:"kern",size:go.kern},{type:"elem",elem:go.elem,marginLeft:makeEm(ao)},{type:"kern",size:io.fontMetrics().bigOpSpacing5}]},io)}else if(ho){var ko=eo.height-lo;So=buildCommon.makeVList({positionType:"top",positionData:ko,children:[{type:"kern",size:io.fontMetrics().bigOpSpacing5},{type:"elem",elem:ho.elem,marginLeft:makeEm(-ao)},{type:"kern",size:ho.kern},{type:"elem",elem:eo}]},io)}else if(go){var Co=eo.depth+lo;So=buildCommon.makeVList({positionType:"bottom",positionData:Co,children:[{type:"elem",elem:eo},{type:"kern",size:go.kern},{type:"elem",elem:go.elem,marginLeft:makeEm(ao)},{type:"kern",size:io.fontMetrics().bigOpSpacing5}]},io)}else return eo;var $o=[So];if(ho&&ao!==0&&!uo){var Ro=buildCommon.makeSpan(["mspace"],[],io);Ro.style.marginRight=makeEm(ao),$o.unshift(Ro)}return buildCommon.makeSpan(["mop","op-limits"],$o,io)},noSuccessor=["\\smallint"],htmlBuilder$2=(eo,to)=>{var no,io,so=!1,ao;eo.type==="supsub"?(no=eo.sup,io=eo.sub,ao=assertNodeType(eo.base,"op"),so=!0):ao=assertNodeType(eo,"op");var lo=to.style,uo=!1;lo.size===Style$1$1.DISPLAY.size&&ao.symbol&&!utils.contains(noSuccessor,ao.name)&&(uo=!0);var ho;if(ao.symbol){var go=uo?"Size2-Regular":"Size1-Regular",mo="";if((ao.name==="\\oiint"||ao.name==="\\oiiint")&&(mo=ao.name.slice(1),ao.name=mo==="oiint"?"\\iint":"\\iiint"),ho=buildCommon.makeSymbol(ao.name,go,"math",to,["mop","op-symbol",uo?"large-op":"small-op"]),mo.length>0){var yo=ho.italic,So=buildCommon.staticSvg(mo+"Size"+(uo?"2":"1"),to);ho=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ho,shift:0},{type:"elem",elem:So,shift:uo?.08:0}]},to),ao.name="\\"+mo,ho.classes.unshift("mop"),ho.italic=yo}}else if(ao.body){var _o=buildExpression$1(ao.body,to,!0);_o.length===1&&_o[0]instanceof SymbolNode?(ho=_o[0],ho.classes[0]="mop"):ho=buildCommon.makeSpan(["mop"],_o,to)}else{for(var ko=[],Co=1;Co{var no;if(eo.symbol)no=new MathNode("mo",[makeText(eo.name,eo.mode)]),utils.contains(noSuccessor,eo.name)&&no.setAttribute("largeop","false");else if(eo.body)no=new MathNode("mo",buildExpression(eo.body,to));else{no=new MathNode("mi",[new TextNode(eo.name.slice(1))]);var io=new MathNode("mo",[makeText("⁡","text")]);eo.parentIsSupSub?no=new MathNode("mrow",[no,io]):no=newDocumentFragment([no,io])}return no},singleCharBigOps={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};defineFunction({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=io;return so.length===1&&(so=singleCharBigOps[so]),{type:"op",mode:no.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:so}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1});defineFunction({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(eo,to)=>{var{parser:no}=eo,io=to[0];return{type:"op",mode:no.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ordargument(io)}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1});var singleCharIntegrals={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};defineFunction({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(eo){var{parser:to,funcName:no}=eo;return{type:"op",mode:to.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:no}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1});defineFunction({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(eo){var{parser:to,funcName:no}=eo;return{type:"op",mode:to.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:no}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1});defineFunction({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(eo){var{parser:to,funcName:no}=eo,io=no;return io.length===1&&(io=singleCharIntegrals[io]),{type:"op",mode:to.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:io}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1});var htmlBuilder$1=(eo,to)=>{var no,io,so=!1,ao;eo.type==="supsub"?(no=eo.sup,io=eo.sub,ao=assertNodeType(eo.base,"operatorname"),so=!0):ao=assertNodeType(eo,"operatorname");var lo;if(ao.body.length>0){for(var uo=ao.body.map(yo=>{var So=yo.text;return typeof So=="string"?{type:"textord",mode:yo.mode,text:So}:yo}),ho=buildExpression$1(uo,to.withFont("mathrm"),!0),go=0;go{for(var no=buildExpression(eo.body,to.withFont("mathrm")),io=!0,so=0;somo.toText()).join("");no=[new mathMLTree.TextNode(uo)]}var ho=new mathMLTree.MathNode("mi",no);ho.setAttribute("mathvariant","normal");var go=new mathMLTree.MathNode("mo",[makeText("⁡","text")]);return eo.parentIsSupSub?new mathMLTree.MathNode("mrow",[ho,go]):mathMLTree.newDocumentFragment([ho,go])};defineFunction({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=to[0];return{type:"operatorname",mode:no.mode,body:ordargument(so),alwaysHandleSupSub:io==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:htmlBuilder$1,mathmlBuilder});defineMacro("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");defineFunctionBuilders({type:"ordgroup",htmlBuilder(eo,to){return eo.semisimple?buildCommon.makeFragment(buildExpression$1(eo.body,to,!1)):buildCommon.makeSpan(["mord"],buildExpression$1(eo.body,to,!0),to)},mathmlBuilder(eo,to){return buildExpressionRow(eo.body,to,!0)}});defineFunction({type:"overline",names:["\\overline"],props:{numArgs:1},handler(eo,to){var{parser:no}=eo,io=to[0];return{type:"overline",mode:no.mode,body:io}},htmlBuilder(eo,to){var no=buildGroup$1(eo.body,to.havingCrampedStyle()),io=buildCommon.makeLineSpan("overline-line",to),so=to.fontMetrics().defaultRuleThickness,ao=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:no},{type:"kern",size:3*so},{type:"elem",elem:io},{type:"kern",size:so}]},to);return buildCommon.makeSpan(["mord","overline"],[ao],to)},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode("‾")]);no.setAttribute("stretchy","true");var io=new mathMLTree.MathNode("mover",[buildGroup(eo.body,to),no]);return io.setAttribute("accent","true"),io}});defineFunction({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(eo,to)=>{var{parser:no}=eo,io=to[0];return{type:"phantom",mode:no.mode,body:ordargument(io)}},htmlBuilder:(eo,to)=>{var no=buildExpression$1(eo.body,to.withPhantom(),!1);return buildCommon.makeFragment(no)},mathmlBuilder:(eo,to)=>{var no=buildExpression(eo.body,to);return new mathMLTree.MathNode("mphantom",no)}});defineFunction({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(eo,to)=>{var{parser:no}=eo,io=to[0];return{type:"hphantom",mode:no.mode,body:io}},htmlBuilder:(eo,to)=>{var no=buildCommon.makeSpan([],[buildGroup$1(eo.body,to.withPhantom())]);if(no.height=0,no.depth=0,no.children)for(var io=0;io{var no=buildExpression(ordargument(eo.body),to),io=new mathMLTree.MathNode("mphantom",no),so=new mathMLTree.MathNode("mpadded",[io]);return so.setAttribute("height","0px"),so.setAttribute("depth","0px"),so}});defineFunction({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(eo,to)=>{var{parser:no}=eo,io=to[0];return{type:"vphantom",mode:no.mode,body:io}},htmlBuilder:(eo,to)=>{var no=buildCommon.makeSpan(["inner"],[buildGroup$1(eo.body,to.withPhantom())]),io=buildCommon.makeSpan(["fix"],[]);return buildCommon.makeSpan(["mord","rlap"],[no,io],to)},mathmlBuilder:(eo,to)=>{var no=buildExpression(ordargument(eo.body),to),io=new mathMLTree.MathNode("mphantom",no),so=new mathMLTree.MathNode("mpadded",[io]);return so.setAttribute("width","0px"),so}});defineFunction({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(eo,to){var{parser:no}=eo,io=assertNodeType(to[0],"size").value,so=to[1];return{type:"raisebox",mode:no.mode,dy:io,body:so}},htmlBuilder(eo,to){var no=buildGroup$1(eo.body,to),io=calculateSize(eo.dy,to);return buildCommon.makeVList({positionType:"shift",positionData:-io,children:[{type:"elem",elem:no}]},to)},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mpadded",[buildGroup(eo.body,to)]),io=eo.dy.number+eo.dy.unit;return no.setAttribute("voffset",io),no}});defineFunction({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(eo){var{parser:to}=eo;return{type:"internal",mode:to.mode}}});defineFunction({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(eo,to,no){var{parser:io}=eo,so=no[0],ao=assertNodeType(to[0],"size"),lo=assertNodeType(to[1],"size");return{type:"rule",mode:io.mode,shift:so&&assertNodeType(so,"size").value,width:ao.value,height:lo.value}},htmlBuilder(eo,to){var no=buildCommon.makeSpan(["mord","rule"],[],to),io=calculateSize(eo.width,to),so=calculateSize(eo.height,to),ao=eo.shift?calculateSize(eo.shift,to):0;return no.style.borderRightWidth=makeEm(io),no.style.borderTopWidth=makeEm(so),no.style.bottom=makeEm(ao),no.width=io,no.height=so+ao,no.depth=-ao,no.maxFontSize=so*1.125*to.sizeMultiplier,no},mathmlBuilder(eo,to){var no=calculateSize(eo.width,to),io=calculateSize(eo.height,to),so=eo.shift?calculateSize(eo.shift,to):0,ao=to.color&&to.getColor()||"black",lo=new mathMLTree.MathNode("mspace");lo.setAttribute("mathbackground",ao),lo.setAttribute("width",makeEm(no)),lo.setAttribute("height",makeEm(io));var uo=new mathMLTree.MathNode("mpadded",[lo]);return so>=0?uo.setAttribute("height",makeEm(so)):(uo.setAttribute("height",makeEm(so)),uo.setAttribute("depth",makeEm(-so))),uo.setAttribute("voffset",makeEm(so)),uo}});function sizingGroup(eo,to,no){for(var io=buildExpression$1(eo,to,!1),so=to.sizeMultiplier/no.sizeMultiplier,ao=0;ao{var no=to.havingSize(eo.size);return sizingGroup(eo.body,no,to)};defineFunction({type:"sizing",names:sizeFuncs,props:{numArgs:0,allowedInText:!0},handler:(eo,to)=>{var{breakOnTokenText:no,funcName:io,parser:so}=eo,ao=so.parseExpression(!1,no);return{type:"sizing",mode:so.mode,size:sizeFuncs.indexOf(io)+1,body:ao}},htmlBuilder,mathmlBuilder:(eo,to)=>{var no=to.havingSize(eo.size),io=buildExpression(eo.body,no),so=new mathMLTree.MathNode("mstyle",io);return so.setAttribute("mathsize",makeEm(no.sizeMultiplier)),so}});defineFunction({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(eo,to,no)=>{var{parser:io}=eo,so=!1,ao=!1,lo=no[0]&&assertNodeType(no[0],"ordgroup");if(lo)for(var uo="",ho=0;ho{var no=buildCommon.makeSpan([],[buildGroup$1(eo.body,to)]);if(!eo.smashHeight&&!eo.smashDepth)return no;if(eo.smashHeight&&(no.height=0,no.children))for(var io=0;io{var no=new mathMLTree.MathNode("mpadded",[buildGroup(eo.body,to)]);return eo.smashHeight&&no.setAttribute("height","0px"),eo.smashDepth&&no.setAttribute("depth","0px"),no}});defineFunction({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(eo,to,no){var{parser:io}=eo,so=no[0],ao=to[0];return{type:"sqrt",mode:io.mode,body:ao,index:so}},htmlBuilder(eo,to){var no=buildGroup$1(eo.body,to.havingCrampedStyle());no.height===0&&(no.height=to.fontMetrics().xHeight),no=buildCommon.wrapFragment(no,to);var io=to.fontMetrics(),so=io.defaultRuleThickness,ao=so;to.style.idno.height+no.depth+lo&&(lo=(lo+yo-no.height-no.depth)/2);var So=ho.height-no.height-lo-go;no.style.paddingLeft=makeEm(mo);var _o=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:no,wrapperClasses:["svg-align"]},{type:"kern",size:-(no.height+So)},{type:"elem",elem:ho},{type:"kern",size:go}]},to);if(eo.index){var ko=to.havingStyle(Style$1$1.SCRIPTSCRIPT),Co=buildGroup$1(eo.index,ko,to),$o=.6*(_o.height-_o.depth),Ro=buildCommon.makeVList({positionType:"shift",positionData:-$o,children:[{type:"elem",elem:Co}]},to),Oo=buildCommon.makeSpan(["root"],[Ro]);return buildCommon.makeSpan(["mord","sqrt"],[Oo,_o],to)}else return buildCommon.makeSpan(["mord","sqrt"],[_o],to)},mathmlBuilder(eo,to){var{body:no,index:io}=eo;return io?new mathMLTree.MathNode("mroot",[buildGroup(no,to),buildGroup(io,to)]):new mathMLTree.MathNode("msqrt",[buildGroup(no,to)])}});var styleMap={display:Style$1$1.DISPLAY,text:Style$1$1.TEXT,script:Style$1$1.SCRIPT,scriptscript:Style$1$1.SCRIPTSCRIPT};defineFunction({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(eo,to){var{breakOnTokenText:no,funcName:io,parser:so}=eo,ao=so.parseExpression(!0,no),lo=io.slice(1,io.length-5);return{type:"styling",mode:so.mode,style:lo,body:ao}},htmlBuilder(eo,to){var no=styleMap[eo.style],io=to.havingStyle(no).withFont("");return sizingGroup(eo.body,io,to)},mathmlBuilder(eo,to){var no=styleMap[eo.style],io=to.havingStyle(no),so=buildExpression(eo.body,io),ao=new mathMLTree.MathNode("mstyle",so),lo={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},uo=lo[eo.style];return ao.setAttribute("scriptlevel",uo[0]),ao.setAttribute("displaystyle",uo[1]),ao}});var htmlBuilderDelegate=function eo(to,no){var io=to.base;if(io)if(io.type==="op"){var so=io.limits&&(no.style.size===Style$1$1.DISPLAY.size||io.alwaysHandleSupSub);return so?htmlBuilder$2:null}else if(io.type==="operatorname"){var ao=io.alwaysHandleSupSub&&(no.style.size===Style$1$1.DISPLAY.size||io.limits);return ao?htmlBuilder$1:null}else{if(io.type==="accent")return utils.isCharacterBox(io.base)?htmlBuilder$a:null;if(io.type==="horizBrace"){var lo=!to.sub;return lo===io.isOver?htmlBuilder$3:null}else return null}else return null};defineFunctionBuilders({type:"supsub",htmlBuilder(eo,to){var no=htmlBuilderDelegate(eo,to);if(no)return no(eo,to);var{base:io,sup:so,sub:ao}=eo,lo=buildGroup$1(io,to),uo,ho,go=to.fontMetrics(),mo=0,yo=0,So=io&&utils.isCharacterBox(io);if(so){var _o=to.havingStyle(to.style.sup());uo=buildGroup$1(so,_o,to),So||(mo=lo.height-_o.fontMetrics().supDrop*_o.sizeMultiplier/to.sizeMultiplier)}if(ao){var ko=to.havingStyle(to.style.sub());ho=buildGroup$1(ao,ko,to),So||(yo=lo.depth+ko.fontMetrics().subDrop*ko.sizeMultiplier/to.sizeMultiplier)}var Co;to.style===Style$1$1.DISPLAY?Co=go.sup1:to.style.cramped?Co=go.sup3:Co=go.sup2;var $o=to.sizeMultiplier,Ro=makeEm(.5/go.ptPerEm/$o),Oo=null;if(ho){var No=eo.base&&eo.base.type==="op"&&eo.base.name&&(eo.base.name==="\\oiint"||eo.base.name==="\\oiiint");(lo instanceof SymbolNode||No)&&(Oo=makeEm(-lo.italic))}var Mo;if(uo&&ho){mo=Math.max(mo,Co,uo.depth+.25*go.xHeight),yo=Math.max(yo,go.sub2);var Bo=go.defaultRuleThickness,Po=4*Bo;if(mo-uo.depth-(ho.height-yo)0&&(mo+=Lo,yo-=Lo)}var Go=[{type:"elem",elem:ho,shift:yo,marginRight:Ro,marginLeft:Oo},{type:"elem",elem:uo,shift:-mo,marginRight:Ro}];Mo=buildCommon.makeVList({positionType:"individualShift",children:Go},to)}else if(ho){yo=Math.max(yo,go.sub1,ho.height-.8*go.xHeight);var Do=[{type:"elem",elem:ho,marginLeft:Oo,marginRight:Ro}];Mo=buildCommon.makeVList({positionType:"shift",positionData:yo,children:Do},to)}else if(uo)mo=Math.max(mo,Co,uo.depth+.25*go.xHeight),Mo=buildCommon.makeVList({positionType:"shift",positionData:-mo,children:[{type:"elem",elem:uo,marginRight:Ro}]},to);else throw new Error("supsub must have either sup or sub.");var Uo=getTypeOfDomTree(lo,"right")||"mord";return buildCommon.makeSpan([Uo],[lo,buildCommon.makeSpan(["msupsub"],[Mo])],to)},mathmlBuilder(eo,to){var no=!1,io,so;eo.base&&eo.base.type==="horizBrace"&&(so=!!eo.sup,so===eo.base.isOver&&(no=!0,io=eo.base.isOver)),eo.base&&(eo.base.type==="op"||eo.base.type==="operatorname")&&(eo.base.parentIsSupSub=!0);var ao=[buildGroup(eo.base,to)];eo.sub&&ao.push(buildGroup(eo.sub,to)),eo.sup&&ao.push(buildGroup(eo.sup,to));var lo;if(no)lo=io?"mover":"munder";else if(eo.sub)if(eo.sup){var go=eo.base;go&&go.type==="op"&&go.limits&&to.style===Style$1$1.DISPLAY||go&&go.type==="operatorname"&&go.alwaysHandleSupSub&&(to.style===Style$1$1.DISPLAY||go.limits)?lo="munderover":lo="msubsup"}else{var ho=eo.base;ho&&ho.type==="op"&&ho.limits&&(to.style===Style$1$1.DISPLAY||ho.alwaysHandleSupSub)||ho&&ho.type==="operatorname"&&ho.alwaysHandleSupSub&&(ho.limits||to.style===Style$1$1.DISPLAY)?lo="munder":lo="msub"}else{var uo=eo.base;uo&&uo.type==="op"&&uo.limits&&(to.style===Style$1$1.DISPLAY||uo.alwaysHandleSupSub)||uo&&uo.type==="operatorname"&&uo.alwaysHandleSupSub&&(uo.limits||to.style===Style$1$1.DISPLAY)?lo="mover":lo="msup"}return new mathMLTree.MathNode(lo,ao)}});defineFunctionBuilders({type:"atom",htmlBuilder(eo,to){return buildCommon.mathsym(eo.text,eo.mode,to,["m"+eo.family])},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mo",[makeText(eo.text,eo.mode)]);if(eo.family==="bin"){var io=getVariant(eo,to);io==="bold-italic"&&no.setAttribute("mathvariant",io)}else eo.family==="punct"?no.setAttribute("separator","true"):(eo.family==="open"||eo.family==="close")&&no.setAttribute("stretchy","false");return no}});var defaultVariant={mi:"italic",mn:"normal",mtext:"normal"};defineFunctionBuilders({type:"mathord",htmlBuilder(eo,to){return buildCommon.makeOrd(eo,to,"mathord")},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mi",[makeText(eo.text,eo.mode,to)]),io=getVariant(eo,to)||"italic";return io!==defaultVariant[no.type]&&no.setAttribute("mathvariant",io),no}});defineFunctionBuilders({type:"textord",htmlBuilder(eo,to){return buildCommon.makeOrd(eo,to,"textord")},mathmlBuilder(eo,to){var no=makeText(eo.text,eo.mode,to),io=getVariant(eo,to)||"normal",so;return eo.mode==="text"?so=new mathMLTree.MathNode("mtext",[no]):/[0-9]/.test(eo.text)?so=new mathMLTree.MathNode("mn",[no]):eo.text==="\\prime"?so=new mathMLTree.MathNode("mo",[no]):so=new mathMLTree.MathNode("mi",[no]),io!==defaultVariant[so.type]&&so.setAttribute("mathvariant",io),so}});var cssSpace={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},regularSpace={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};defineFunctionBuilders({type:"spacing",htmlBuilder(eo,to){if(regularSpace.hasOwnProperty(eo.text)){var no=regularSpace[eo.text].className||"";if(eo.mode==="text"){var io=buildCommon.makeOrd(eo,to,"textord");return io.classes.push(no),io}else return buildCommon.makeSpan(["mspace",no],[buildCommon.mathsym(eo.text,eo.mode,to)],to)}else{if(cssSpace.hasOwnProperty(eo.text))return buildCommon.makeSpan(["mspace",cssSpace[eo.text]],[],to);throw new ParseError('Unknown type of space "'+eo.text+'"')}},mathmlBuilder(eo,to){var no;if(regularSpace.hasOwnProperty(eo.text))no=new mathMLTree.MathNode("mtext",[new mathMLTree.TextNode(" ")]);else{if(cssSpace.hasOwnProperty(eo.text))return new mathMLTree.MathNode("mspace");throw new ParseError('Unknown type of space "'+eo.text+'"')}return no}});var pad=()=>{var eo=new mathMLTree.MathNode("mtd",[]);return eo.setAttribute("width","50%"),eo};defineFunctionBuilders({type:"tag",mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mtable",[new mathMLTree.MathNode("mtr",[pad(),new mathMLTree.MathNode("mtd",[buildExpressionRow(eo.body,to)]),pad(),new mathMLTree.MathNode("mtd",[buildExpressionRow(eo.tag,to)])])]);return no.setAttribute("width","100%"),no}});var textFontFamilies={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},textFontWeights={"\\textbf":"textbf","\\textmd":"textmd"},textFontShapes={"\\textit":"textit","\\textup":"textup"},optionsWithFont=(eo,to)=>{var no=eo.font;return no?textFontFamilies[no]?to.withTextFontFamily(textFontFamilies[no]):textFontWeights[no]?to.withTextFontWeight(textFontWeights[no]):to.withTextFontShape(textFontShapes[no]):to};defineFunction({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(eo,to){var{parser:no,funcName:io}=eo,so=to[0];return{type:"text",mode:no.mode,body:ordargument(so),font:io}},htmlBuilder(eo,to){var no=optionsWithFont(eo,to),io=buildExpression$1(eo.body,no,!0);return buildCommon.makeSpan(["mord","text"],io,no)},mathmlBuilder(eo,to){var no=optionsWithFont(eo,to);return buildExpressionRow(eo.body,no)}});defineFunction({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(eo,to){var{parser:no}=eo;return{type:"underline",mode:no.mode,body:to[0]}},htmlBuilder(eo,to){var no=buildGroup$1(eo.body,to),io=buildCommon.makeLineSpan("underline-line",to),so=to.fontMetrics().defaultRuleThickness,ao=buildCommon.makeVList({positionType:"top",positionData:no.height,children:[{type:"kern",size:so},{type:"elem",elem:io},{type:"kern",size:3*so},{type:"elem",elem:no}]},to);return buildCommon.makeSpan(["mord","underline"],[ao],to)},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode("‾")]);no.setAttribute("stretchy","true");var io=new mathMLTree.MathNode("munder",[buildGroup(eo.body,to),no]);return io.setAttribute("accentunder","true"),io}});defineFunction({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(eo,to){var{parser:no}=eo;return{type:"vcenter",mode:no.mode,body:to[0]}},htmlBuilder(eo,to){var no=buildGroup$1(eo.body,to),io=to.fontMetrics().axisHeight,so=.5*(no.height-io-(no.depth+io));return buildCommon.makeVList({positionType:"shift",positionData:so,children:[{type:"elem",elem:no}]},to)},mathmlBuilder(eo,to){return new mathMLTree.MathNode("mpadded",[buildGroup(eo.body,to)],["vcenter"])}});defineFunction({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(eo,to,no){throw new ParseError("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(eo,to){for(var no=makeVerb(eo),io=[],so=to.havingStyle(to.style.text()),ao=0;aoeo.body.replace(/ /g,eo.star?"␣":" "),functions$1=_functions,spaceRegexString=`[ \r +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class DocumentFragment{constructor(to){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=to,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(to){return utils.contains(this.classes,to)}toNode(){for(var to=document.createDocumentFragment(),no=0;nono.toText();return this.children.map(to).join("")}}var fontMetricsData={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},sigmasAndXis={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},extraCharacterMap={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function setFontMetrics(eo,to){fontMetricsData[eo]=to}function getCharacterMetrics(eo,to,no){if(!fontMetricsData[to])throw new Error("Font metrics not found for font: "+to+".");var io=eo.charCodeAt(0),so=fontMetricsData[to][io];if(!so&&eo[0]in extraCharacterMap&&(io=extraCharacterMap[eo[0]].charCodeAt(0),so=fontMetricsData[to][io]),!so&&no==="text"&&supportedCodepoint(io)&&(so=fontMetricsData[to][77]),so)return{depth:so[0],height:so[1],italic:so[2],skew:so[3],width:so[4]}}var fontMetricsBySizeIndex={};function getGlobalMetrics(eo){var to;if(eo>=5?to=0:eo>=3?to=1:to=2,!fontMetricsBySizeIndex[to]){var no=fontMetricsBySizeIndex[to]={cssEmPerMu:sigmasAndXis.quad[to]/18};for(var io in sigmasAndXis)sigmasAndXis.hasOwnProperty(io)&&(no[io]=sigmasAndXis[io][to])}return fontMetricsBySizeIndex[to]}var sizeStyleMap=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],sizeMultipliers=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],sizeAtStyle=function eo(to,no){return no.size<2?to:sizeStyleMap[to-1][no.size-1]};class Options{constructor(to){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=to.style,this.color=to.color,this.size=to.size||Options.BASESIZE,this.textSize=to.textSize||this.size,this.phantom=!!to.phantom,this.font=to.font||"",this.fontFamily=to.fontFamily||"",this.fontWeight=to.fontWeight||"",this.fontShape=to.fontShape||"",this.sizeMultiplier=sizeMultipliers[this.size-1],this.maxSize=to.maxSize,this.minRuleThickness=to.minRuleThickness,this._fontMetrics=void 0}extend(to){var no={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var io in to)to.hasOwnProperty(io)&&(no[io]=to[io]);return new Options(no)}havingStyle(to){return this.style===to?this:this.extend({style:to,size:sizeAtStyle(this.textSize,to)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(to){return this.size===to&&this.textSize===to?this:this.extend({style:this.style.text(),size:to,textSize:to,sizeMultiplier:sizeMultipliers[to-1]})}havingBaseStyle(to){to=to||this.style.text();var no=sizeAtStyle(Options.BASESIZE,to);return this.size===no&&this.textSize===Options.BASESIZE&&this.style===to?this:this.extend({style:to,size:no})}havingBaseSizing(){var to;switch(this.style.id){case 4:case 5:to=3;break;case 6:case 7:to=1;break;default:to=6}return this.extend({style:this.style.text(),size:to})}withColor(to){return this.extend({color:to})}withPhantom(){return this.extend({phantom:!0})}withFont(to){return this.extend({font:to})}withTextFontFamily(to){return this.extend({fontFamily:to,font:""})}withTextFontWeight(to){return this.extend({fontWeight:to,font:""})}withTextFontShape(to){return this.extend({fontShape:to,font:""})}sizingClasses(to){return to.size!==this.size?["sizing","reset-size"+to.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Options.BASESIZE?["sizing","reset-size"+this.size,"size"+Options.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=getGlobalMetrics(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Options.BASESIZE=6;var ptPerUnit={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},relativeUnit={ex:!0,em:!0,mu:!0},validUnit=function eo(to){return typeof to!="string"&&(to=to.unit),to in ptPerUnit||to in relativeUnit||to==="ex"},calculateSize=function eo(to,no){var io;if(to.unit in ptPerUnit)io=ptPerUnit[to.unit]/no.fontMetrics().ptPerEm/no.sizeMultiplier;else if(to.unit==="mu")io=no.fontMetrics().cssEmPerMu;else{var so;if(no.style.isTight()?so=no.havingStyle(no.style.text()):so=no,to.unit==="ex")io=so.fontMetrics().xHeight;else if(to.unit==="em")io=so.fontMetrics().quad;else throw new ParseError("Invalid unit: '"+to.unit+"'");so!==no&&(io*=so.sizeMultiplier/no.sizeMultiplier)}return Math.min(to.number*io,no.maxSize)},makeEm=function eo(to){return+to.toFixed(4)+"em"},createClass=function eo(to){return to.filter(no=>no).join(" ")},initNode=function eo(to,no,io){if(this.classes=to||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=io||{},no){no.style.isTight()&&this.classes.push("mtight");var so=no.getColor();so&&(this.style.color=so)}},toNode=function eo(to){var no=document.createElement(to);no.className=createClass(this.classes);for(var io in this.style)this.style.hasOwnProperty(io)&&(no.style[io]=this.style[io]);for(var so in this.attributes)this.attributes.hasOwnProperty(so)&&no.setAttribute(so,this.attributes[so]);for(var ao=0;ao",no};class Span{constructor(to,no,io,so){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,initNode.call(this,to,io,so),this.children=no||[]}setAttribute(to,no){this.attributes[to]=no}hasClass(to){return utils.contains(this.classes,to)}toNode(){return toNode.call(this,"span")}toMarkup(){return toMarkup.call(this,"span")}}class Anchor{constructor(to,no,io,so){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,initNode.call(this,no,so),this.children=io||[],this.setAttribute("href",to)}setAttribute(to,no){this.attributes[to]=no}hasClass(to){return utils.contains(this.classes,to)}toNode(){return toNode.call(this,"a")}toMarkup(){return toMarkup.call(this,"a")}}class Img{constructor(to,no,io){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=no,this.src=to,this.classes=["mord"],this.style=io}hasClass(to){return utils.contains(this.classes,to)}toNode(){var to=document.createElement("img");to.src=this.src,to.alt=this.alt,to.className="mord";for(var no in this.style)this.style.hasOwnProperty(no)&&(to.style[no]=this.style[no]);return to}toMarkup(){var to=''+utils.escape(this.alt)+'0&&(no=document.createElement("span"),no.style.marginRight=makeEm(this.italic)),this.classes.length>0&&(no=no||document.createElement("span"),no.className=createClass(this.classes));for(var io in this.style)this.style.hasOwnProperty(io)&&(no=no||document.createElement("span"),no.style[io]=this.style[io]);return no?(no.appendChild(to),no):to}toMarkup(){var to=!1,no="0&&(io+="margin-right:"+this.italic+"em;");for(var so in this.style)this.style.hasOwnProperty(so)&&(io+=utils.hyphenate(so)+":"+this.style[so]+";");io&&(to=!0,no+=' style="'+utils.escape(io)+'"');var ao=utils.escape(this.text);return to?(no+=">",no+=ao,no+="",no):ao}}class SvgNode{constructor(to,no){this.children=void 0,this.attributes=void 0,this.children=to||[],this.attributes=no||{}}toNode(){var to="http://www.w3.org/2000/svg",no=document.createElementNS(to,"svg");for(var io in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,io)&&no.setAttribute(io,this.attributes[io]);for(var so=0;so':''}}class LineNode{constructor(to){this.attributes=void 0,this.attributes=to||{}}toNode(){var to="http://www.w3.org/2000/svg",no=document.createElementNS(to,"line");for(var io in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,io)&&no.setAttribute(io,this.attributes[io]);return no}toMarkup(){var to=" but got "+String(eo)+".")}var ATOMS={bin:1,close:1,inner:1,open:1,punct:1,rel:1},NON_ATOMS={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},symbols={math:{},text:{}};function defineSymbol(eo,to,no,io,so,ao){symbols[eo][so]={font:to,group:no,replace:io},ao&&io&&(symbols[eo][io]=symbols[eo][so])}var math="math",text$2="text",main="main",ams="ams",accent="accent-token",bin="bin",close="close",inner="inner",mathord="mathord",op="op-token",open="open",punct="punct",rel="rel",spacing="spacing",textord="textord";defineSymbol(math,main,rel,"≡","\\equiv",!0);defineSymbol(math,main,rel,"≺","\\prec",!0);defineSymbol(math,main,rel,"≻","\\succ",!0);defineSymbol(math,main,rel,"∼","\\sim",!0);defineSymbol(math,main,rel,"⊥","\\perp");defineSymbol(math,main,rel,"⪯","\\preceq",!0);defineSymbol(math,main,rel,"⪰","\\succeq",!0);defineSymbol(math,main,rel,"≃","\\simeq",!0);defineSymbol(math,main,rel,"∣","\\mid",!0);defineSymbol(math,main,rel,"≪","\\ll",!0);defineSymbol(math,main,rel,"≫","\\gg",!0);defineSymbol(math,main,rel,"≍","\\asymp",!0);defineSymbol(math,main,rel,"∥","\\parallel");defineSymbol(math,main,rel,"⋈","\\bowtie",!0);defineSymbol(math,main,rel,"⌣","\\smile",!0);defineSymbol(math,main,rel,"⊑","\\sqsubseteq",!0);defineSymbol(math,main,rel,"⊒","\\sqsupseteq",!0);defineSymbol(math,main,rel,"≐","\\doteq",!0);defineSymbol(math,main,rel,"⌢","\\frown",!0);defineSymbol(math,main,rel,"∋","\\ni",!0);defineSymbol(math,main,rel,"∝","\\propto",!0);defineSymbol(math,main,rel,"⊢","\\vdash",!0);defineSymbol(math,main,rel,"⊣","\\dashv",!0);defineSymbol(math,main,rel,"∋","\\owns");defineSymbol(math,main,punct,".","\\ldotp");defineSymbol(math,main,punct,"⋅","\\cdotp");defineSymbol(math,main,textord,"#","\\#");defineSymbol(text$2,main,textord,"#","\\#");defineSymbol(math,main,textord,"&","\\&");defineSymbol(text$2,main,textord,"&","\\&");defineSymbol(math,main,textord,"ℵ","\\aleph",!0);defineSymbol(math,main,textord,"∀","\\forall",!0);defineSymbol(math,main,textord,"ℏ","\\hbar",!0);defineSymbol(math,main,textord,"∃","\\exists",!0);defineSymbol(math,main,textord,"∇","\\nabla",!0);defineSymbol(math,main,textord,"♭","\\flat",!0);defineSymbol(math,main,textord,"ℓ","\\ell",!0);defineSymbol(math,main,textord,"♮","\\natural",!0);defineSymbol(math,main,textord,"♣","\\clubsuit",!0);defineSymbol(math,main,textord,"℘","\\wp",!0);defineSymbol(math,main,textord,"♯","\\sharp",!0);defineSymbol(math,main,textord,"♢","\\diamondsuit",!0);defineSymbol(math,main,textord,"ℜ","\\Re",!0);defineSymbol(math,main,textord,"♡","\\heartsuit",!0);defineSymbol(math,main,textord,"ℑ","\\Im",!0);defineSymbol(math,main,textord,"♠","\\spadesuit",!0);defineSymbol(math,main,textord,"§","\\S",!0);defineSymbol(text$2,main,textord,"§","\\S");defineSymbol(math,main,textord,"¶","\\P",!0);defineSymbol(text$2,main,textord,"¶","\\P");defineSymbol(math,main,textord,"†","\\dag");defineSymbol(text$2,main,textord,"†","\\dag");defineSymbol(text$2,main,textord,"†","\\textdagger");defineSymbol(math,main,textord,"‡","\\ddag");defineSymbol(text$2,main,textord,"‡","\\ddag");defineSymbol(text$2,main,textord,"‡","\\textdaggerdbl");defineSymbol(math,main,close,"⎱","\\rmoustache",!0);defineSymbol(math,main,open,"⎰","\\lmoustache",!0);defineSymbol(math,main,close,"⟯","\\rgroup",!0);defineSymbol(math,main,open,"⟮","\\lgroup",!0);defineSymbol(math,main,bin,"∓","\\mp",!0);defineSymbol(math,main,bin,"⊖","\\ominus",!0);defineSymbol(math,main,bin,"⊎","\\uplus",!0);defineSymbol(math,main,bin,"⊓","\\sqcap",!0);defineSymbol(math,main,bin,"∗","\\ast");defineSymbol(math,main,bin,"⊔","\\sqcup",!0);defineSymbol(math,main,bin,"◯","\\bigcirc",!0);defineSymbol(math,main,bin,"∙","\\bullet",!0);defineSymbol(math,main,bin,"‡","\\ddagger");defineSymbol(math,main,bin,"≀","\\wr",!0);defineSymbol(math,main,bin,"⨿","\\amalg");defineSymbol(math,main,bin,"&","\\And");defineSymbol(math,main,rel,"⟵","\\longleftarrow",!0);defineSymbol(math,main,rel,"⇐","\\Leftarrow",!0);defineSymbol(math,main,rel,"⟸","\\Longleftarrow",!0);defineSymbol(math,main,rel,"⟶","\\longrightarrow",!0);defineSymbol(math,main,rel,"⇒","\\Rightarrow",!0);defineSymbol(math,main,rel,"⟹","\\Longrightarrow",!0);defineSymbol(math,main,rel,"↔","\\leftrightarrow",!0);defineSymbol(math,main,rel,"⟷","\\longleftrightarrow",!0);defineSymbol(math,main,rel,"⇔","\\Leftrightarrow",!0);defineSymbol(math,main,rel,"⟺","\\Longleftrightarrow",!0);defineSymbol(math,main,rel,"↦","\\mapsto",!0);defineSymbol(math,main,rel,"⟼","\\longmapsto",!0);defineSymbol(math,main,rel,"↗","\\nearrow",!0);defineSymbol(math,main,rel,"↩","\\hookleftarrow",!0);defineSymbol(math,main,rel,"↪","\\hookrightarrow",!0);defineSymbol(math,main,rel,"↘","\\searrow",!0);defineSymbol(math,main,rel,"↼","\\leftharpoonup",!0);defineSymbol(math,main,rel,"⇀","\\rightharpoonup",!0);defineSymbol(math,main,rel,"↙","\\swarrow",!0);defineSymbol(math,main,rel,"↽","\\leftharpoondown",!0);defineSymbol(math,main,rel,"⇁","\\rightharpoondown",!0);defineSymbol(math,main,rel,"↖","\\nwarrow",!0);defineSymbol(math,main,rel,"⇌","\\rightleftharpoons",!0);defineSymbol(math,ams,rel,"≮","\\nless",!0);defineSymbol(math,ams,rel,"","\\@nleqslant");defineSymbol(math,ams,rel,"","\\@nleqq");defineSymbol(math,ams,rel,"⪇","\\lneq",!0);defineSymbol(math,ams,rel,"≨","\\lneqq",!0);defineSymbol(math,ams,rel,"","\\@lvertneqq");defineSymbol(math,ams,rel,"⋦","\\lnsim",!0);defineSymbol(math,ams,rel,"⪉","\\lnapprox",!0);defineSymbol(math,ams,rel,"⊀","\\nprec",!0);defineSymbol(math,ams,rel,"⋠","\\npreceq",!0);defineSymbol(math,ams,rel,"⋨","\\precnsim",!0);defineSymbol(math,ams,rel,"⪹","\\precnapprox",!0);defineSymbol(math,ams,rel,"≁","\\nsim",!0);defineSymbol(math,ams,rel,"","\\@nshortmid");defineSymbol(math,ams,rel,"∤","\\nmid",!0);defineSymbol(math,ams,rel,"⊬","\\nvdash",!0);defineSymbol(math,ams,rel,"⊭","\\nvDash",!0);defineSymbol(math,ams,rel,"⋪","\\ntriangleleft");defineSymbol(math,ams,rel,"⋬","\\ntrianglelefteq",!0);defineSymbol(math,ams,rel,"⊊","\\subsetneq",!0);defineSymbol(math,ams,rel,"","\\@varsubsetneq");defineSymbol(math,ams,rel,"⫋","\\subsetneqq",!0);defineSymbol(math,ams,rel,"","\\@varsubsetneqq");defineSymbol(math,ams,rel,"≯","\\ngtr",!0);defineSymbol(math,ams,rel,"","\\@ngeqslant");defineSymbol(math,ams,rel,"","\\@ngeqq");defineSymbol(math,ams,rel,"⪈","\\gneq",!0);defineSymbol(math,ams,rel,"≩","\\gneqq",!0);defineSymbol(math,ams,rel,"","\\@gvertneqq");defineSymbol(math,ams,rel,"⋧","\\gnsim",!0);defineSymbol(math,ams,rel,"⪊","\\gnapprox",!0);defineSymbol(math,ams,rel,"⊁","\\nsucc",!0);defineSymbol(math,ams,rel,"⋡","\\nsucceq",!0);defineSymbol(math,ams,rel,"⋩","\\succnsim",!0);defineSymbol(math,ams,rel,"⪺","\\succnapprox",!0);defineSymbol(math,ams,rel,"≆","\\ncong",!0);defineSymbol(math,ams,rel,"","\\@nshortparallel");defineSymbol(math,ams,rel,"∦","\\nparallel",!0);defineSymbol(math,ams,rel,"⊯","\\nVDash",!0);defineSymbol(math,ams,rel,"⋫","\\ntriangleright");defineSymbol(math,ams,rel,"⋭","\\ntrianglerighteq",!0);defineSymbol(math,ams,rel,"","\\@nsupseteqq");defineSymbol(math,ams,rel,"⊋","\\supsetneq",!0);defineSymbol(math,ams,rel,"","\\@varsupsetneq");defineSymbol(math,ams,rel,"⫌","\\supsetneqq",!0);defineSymbol(math,ams,rel,"","\\@varsupsetneqq");defineSymbol(math,ams,rel,"⊮","\\nVdash",!0);defineSymbol(math,ams,rel,"⪵","\\precneqq",!0);defineSymbol(math,ams,rel,"⪶","\\succneqq",!0);defineSymbol(math,ams,rel,"","\\@nsubseteqq");defineSymbol(math,ams,bin,"⊴","\\unlhd");defineSymbol(math,ams,bin,"⊵","\\unrhd");defineSymbol(math,ams,rel,"↚","\\nleftarrow",!0);defineSymbol(math,ams,rel,"↛","\\nrightarrow",!0);defineSymbol(math,ams,rel,"⇍","\\nLeftarrow",!0);defineSymbol(math,ams,rel,"⇏","\\nRightarrow",!0);defineSymbol(math,ams,rel,"↮","\\nleftrightarrow",!0);defineSymbol(math,ams,rel,"⇎","\\nLeftrightarrow",!0);defineSymbol(math,ams,rel,"△","\\vartriangle");defineSymbol(math,ams,textord,"ℏ","\\hslash");defineSymbol(math,ams,textord,"▽","\\triangledown");defineSymbol(math,ams,textord,"◊","\\lozenge");defineSymbol(math,ams,textord,"Ⓢ","\\circledS");defineSymbol(math,ams,textord,"®","\\circledR");defineSymbol(text$2,ams,textord,"®","\\circledR");defineSymbol(math,ams,textord,"∡","\\measuredangle",!0);defineSymbol(math,ams,textord,"∄","\\nexists");defineSymbol(math,ams,textord,"℧","\\mho");defineSymbol(math,ams,textord,"Ⅎ","\\Finv",!0);defineSymbol(math,ams,textord,"⅁","\\Game",!0);defineSymbol(math,ams,textord,"‵","\\backprime");defineSymbol(math,ams,textord,"▲","\\blacktriangle");defineSymbol(math,ams,textord,"▼","\\blacktriangledown");defineSymbol(math,ams,textord,"■","\\blacksquare");defineSymbol(math,ams,textord,"⧫","\\blacklozenge");defineSymbol(math,ams,textord,"★","\\bigstar");defineSymbol(math,ams,textord,"∢","\\sphericalangle",!0);defineSymbol(math,ams,textord,"∁","\\complement",!0);defineSymbol(math,ams,textord,"ð","\\eth",!0);defineSymbol(text$2,main,textord,"ð","ð");defineSymbol(math,ams,textord,"╱","\\diagup");defineSymbol(math,ams,textord,"╲","\\diagdown");defineSymbol(math,ams,textord,"□","\\square");defineSymbol(math,ams,textord,"□","\\Box");defineSymbol(math,ams,textord,"◊","\\Diamond");defineSymbol(math,ams,textord,"¥","\\yen",!0);defineSymbol(text$2,ams,textord,"¥","\\yen",!0);defineSymbol(math,ams,textord,"✓","\\checkmark",!0);defineSymbol(text$2,ams,textord,"✓","\\checkmark");defineSymbol(math,ams,textord,"ℶ","\\beth",!0);defineSymbol(math,ams,textord,"ℸ","\\daleth",!0);defineSymbol(math,ams,textord,"ℷ","\\gimel",!0);defineSymbol(math,ams,textord,"ϝ","\\digamma",!0);defineSymbol(math,ams,textord,"ϰ","\\varkappa");defineSymbol(math,ams,open,"┌","\\@ulcorner",!0);defineSymbol(math,ams,close,"┐","\\@urcorner",!0);defineSymbol(math,ams,open,"└","\\@llcorner",!0);defineSymbol(math,ams,close,"┘","\\@lrcorner",!0);defineSymbol(math,ams,rel,"≦","\\leqq",!0);defineSymbol(math,ams,rel,"⩽","\\leqslant",!0);defineSymbol(math,ams,rel,"⪕","\\eqslantless",!0);defineSymbol(math,ams,rel,"≲","\\lesssim",!0);defineSymbol(math,ams,rel,"⪅","\\lessapprox",!0);defineSymbol(math,ams,rel,"≊","\\approxeq",!0);defineSymbol(math,ams,bin,"⋖","\\lessdot");defineSymbol(math,ams,rel,"⋘","\\lll",!0);defineSymbol(math,ams,rel,"≶","\\lessgtr",!0);defineSymbol(math,ams,rel,"⋚","\\lesseqgtr",!0);defineSymbol(math,ams,rel,"⪋","\\lesseqqgtr",!0);defineSymbol(math,ams,rel,"≑","\\doteqdot");defineSymbol(math,ams,rel,"≓","\\risingdotseq",!0);defineSymbol(math,ams,rel,"≒","\\fallingdotseq",!0);defineSymbol(math,ams,rel,"∽","\\backsim",!0);defineSymbol(math,ams,rel,"⋍","\\backsimeq",!0);defineSymbol(math,ams,rel,"⫅","\\subseteqq",!0);defineSymbol(math,ams,rel,"⋐","\\Subset",!0);defineSymbol(math,ams,rel,"⊏","\\sqsubset",!0);defineSymbol(math,ams,rel,"≼","\\preccurlyeq",!0);defineSymbol(math,ams,rel,"⋞","\\curlyeqprec",!0);defineSymbol(math,ams,rel,"≾","\\precsim",!0);defineSymbol(math,ams,rel,"⪷","\\precapprox",!0);defineSymbol(math,ams,rel,"⊲","\\vartriangleleft");defineSymbol(math,ams,rel,"⊴","\\trianglelefteq");defineSymbol(math,ams,rel,"⊨","\\vDash",!0);defineSymbol(math,ams,rel,"⊪","\\Vvdash",!0);defineSymbol(math,ams,rel,"⌣","\\smallsmile");defineSymbol(math,ams,rel,"⌢","\\smallfrown");defineSymbol(math,ams,rel,"≏","\\bumpeq",!0);defineSymbol(math,ams,rel,"≎","\\Bumpeq",!0);defineSymbol(math,ams,rel,"≧","\\geqq",!0);defineSymbol(math,ams,rel,"⩾","\\geqslant",!0);defineSymbol(math,ams,rel,"⪖","\\eqslantgtr",!0);defineSymbol(math,ams,rel,"≳","\\gtrsim",!0);defineSymbol(math,ams,rel,"⪆","\\gtrapprox",!0);defineSymbol(math,ams,bin,"⋗","\\gtrdot");defineSymbol(math,ams,rel,"⋙","\\ggg",!0);defineSymbol(math,ams,rel,"≷","\\gtrless",!0);defineSymbol(math,ams,rel,"⋛","\\gtreqless",!0);defineSymbol(math,ams,rel,"⪌","\\gtreqqless",!0);defineSymbol(math,ams,rel,"≖","\\eqcirc",!0);defineSymbol(math,ams,rel,"≗","\\circeq",!0);defineSymbol(math,ams,rel,"≜","\\triangleq",!0);defineSymbol(math,ams,rel,"∼","\\thicksim");defineSymbol(math,ams,rel,"≈","\\thickapprox");defineSymbol(math,ams,rel,"⫆","\\supseteqq",!0);defineSymbol(math,ams,rel,"⋑","\\Supset",!0);defineSymbol(math,ams,rel,"⊐","\\sqsupset",!0);defineSymbol(math,ams,rel,"≽","\\succcurlyeq",!0);defineSymbol(math,ams,rel,"⋟","\\curlyeqsucc",!0);defineSymbol(math,ams,rel,"≿","\\succsim",!0);defineSymbol(math,ams,rel,"⪸","\\succapprox",!0);defineSymbol(math,ams,rel,"⊳","\\vartriangleright");defineSymbol(math,ams,rel,"⊵","\\trianglerighteq");defineSymbol(math,ams,rel,"⊩","\\Vdash",!0);defineSymbol(math,ams,rel,"∣","\\shortmid");defineSymbol(math,ams,rel,"∥","\\shortparallel");defineSymbol(math,ams,rel,"≬","\\between",!0);defineSymbol(math,ams,rel,"⋔","\\pitchfork",!0);defineSymbol(math,ams,rel,"∝","\\varpropto");defineSymbol(math,ams,rel,"◀","\\blacktriangleleft");defineSymbol(math,ams,rel,"∴","\\therefore",!0);defineSymbol(math,ams,rel,"∍","\\backepsilon");defineSymbol(math,ams,rel,"▶","\\blacktriangleright");defineSymbol(math,ams,rel,"∵","\\because",!0);defineSymbol(math,ams,rel,"⋘","\\llless");defineSymbol(math,ams,rel,"⋙","\\gggtr");defineSymbol(math,ams,bin,"⊲","\\lhd");defineSymbol(math,ams,bin,"⊳","\\rhd");defineSymbol(math,ams,rel,"≂","\\eqsim",!0);defineSymbol(math,main,rel,"⋈","\\Join");defineSymbol(math,ams,rel,"≑","\\Doteq",!0);defineSymbol(math,ams,bin,"∔","\\dotplus",!0);defineSymbol(math,ams,bin,"∖","\\smallsetminus");defineSymbol(math,ams,bin,"⋒","\\Cap",!0);defineSymbol(math,ams,bin,"⋓","\\Cup",!0);defineSymbol(math,ams,bin,"⩞","\\doublebarwedge",!0);defineSymbol(math,ams,bin,"⊟","\\boxminus",!0);defineSymbol(math,ams,bin,"⊞","\\boxplus",!0);defineSymbol(math,ams,bin,"⋇","\\divideontimes",!0);defineSymbol(math,ams,bin,"⋉","\\ltimes",!0);defineSymbol(math,ams,bin,"⋊","\\rtimes",!0);defineSymbol(math,ams,bin,"⋋","\\leftthreetimes",!0);defineSymbol(math,ams,bin,"⋌","\\rightthreetimes",!0);defineSymbol(math,ams,bin,"⋏","\\curlywedge",!0);defineSymbol(math,ams,bin,"⋎","\\curlyvee",!0);defineSymbol(math,ams,bin,"⊝","\\circleddash",!0);defineSymbol(math,ams,bin,"⊛","\\circledast",!0);defineSymbol(math,ams,bin,"⋅","\\centerdot");defineSymbol(math,ams,bin,"⊺","\\intercal",!0);defineSymbol(math,ams,bin,"⋒","\\doublecap");defineSymbol(math,ams,bin,"⋓","\\doublecup");defineSymbol(math,ams,bin,"⊠","\\boxtimes",!0);defineSymbol(math,ams,rel,"⇢","\\dashrightarrow",!0);defineSymbol(math,ams,rel,"⇠","\\dashleftarrow",!0);defineSymbol(math,ams,rel,"⇇","\\leftleftarrows",!0);defineSymbol(math,ams,rel,"⇆","\\leftrightarrows",!0);defineSymbol(math,ams,rel,"⇚","\\Lleftarrow",!0);defineSymbol(math,ams,rel,"↞","\\twoheadleftarrow",!0);defineSymbol(math,ams,rel,"↢","\\leftarrowtail",!0);defineSymbol(math,ams,rel,"↫","\\looparrowleft",!0);defineSymbol(math,ams,rel,"⇋","\\leftrightharpoons",!0);defineSymbol(math,ams,rel,"↶","\\curvearrowleft",!0);defineSymbol(math,ams,rel,"↺","\\circlearrowleft",!0);defineSymbol(math,ams,rel,"↰","\\Lsh",!0);defineSymbol(math,ams,rel,"⇈","\\upuparrows",!0);defineSymbol(math,ams,rel,"↿","\\upharpoonleft",!0);defineSymbol(math,ams,rel,"⇃","\\downharpoonleft",!0);defineSymbol(math,main,rel,"⊶","\\origof",!0);defineSymbol(math,main,rel,"⊷","\\imageof",!0);defineSymbol(math,ams,rel,"⊸","\\multimap",!0);defineSymbol(math,ams,rel,"↭","\\leftrightsquigarrow",!0);defineSymbol(math,ams,rel,"⇉","\\rightrightarrows",!0);defineSymbol(math,ams,rel,"⇄","\\rightleftarrows",!0);defineSymbol(math,ams,rel,"↠","\\twoheadrightarrow",!0);defineSymbol(math,ams,rel,"↣","\\rightarrowtail",!0);defineSymbol(math,ams,rel,"↬","\\looparrowright",!0);defineSymbol(math,ams,rel,"↷","\\curvearrowright",!0);defineSymbol(math,ams,rel,"↻","\\circlearrowright",!0);defineSymbol(math,ams,rel,"↱","\\Rsh",!0);defineSymbol(math,ams,rel,"⇊","\\downdownarrows",!0);defineSymbol(math,ams,rel,"↾","\\upharpoonright",!0);defineSymbol(math,ams,rel,"⇂","\\downharpoonright",!0);defineSymbol(math,ams,rel,"⇝","\\rightsquigarrow",!0);defineSymbol(math,ams,rel,"⇝","\\leadsto");defineSymbol(math,ams,rel,"⇛","\\Rrightarrow",!0);defineSymbol(math,ams,rel,"↾","\\restriction");defineSymbol(math,main,textord,"‘","`");defineSymbol(math,main,textord,"$","\\$");defineSymbol(text$2,main,textord,"$","\\$");defineSymbol(text$2,main,textord,"$","\\textdollar");defineSymbol(math,main,textord,"%","\\%");defineSymbol(text$2,main,textord,"%","\\%");defineSymbol(math,main,textord,"_","\\_");defineSymbol(text$2,main,textord,"_","\\_");defineSymbol(text$2,main,textord,"_","\\textunderscore");defineSymbol(math,main,textord,"∠","\\angle",!0);defineSymbol(math,main,textord,"∞","\\infty",!0);defineSymbol(math,main,textord,"′","\\prime");defineSymbol(math,main,textord,"△","\\triangle");defineSymbol(math,main,textord,"Γ","\\Gamma",!0);defineSymbol(math,main,textord,"Δ","\\Delta",!0);defineSymbol(math,main,textord,"Θ","\\Theta",!0);defineSymbol(math,main,textord,"Λ","\\Lambda",!0);defineSymbol(math,main,textord,"Ξ","\\Xi",!0);defineSymbol(math,main,textord,"Π","\\Pi",!0);defineSymbol(math,main,textord,"Σ","\\Sigma",!0);defineSymbol(math,main,textord,"Υ","\\Upsilon",!0);defineSymbol(math,main,textord,"Φ","\\Phi",!0);defineSymbol(math,main,textord,"Ψ","\\Psi",!0);defineSymbol(math,main,textord,"Ω","\\Omega",!0);defineSymbol(math,main,textord,"A","Α");defineSymbol(math,main,textord,"B","Β");defineSymbol(math,main,textord,"E","Ε");defineSymbol(math,main,textord,"Z","Ζ");defineSymbol(math,main,textord,"H","Η");defineSymbol(math,main,textord,"I","Ι");defineSymbol(math,main,textord,"K","Κ");defineSymbol(math,main,textord,"M","Μ");defineSymbol(math,main,textord,"N","Ν");defineSymbol(math,main,textord,"O","Ο");defineSymbol(math,main,textord,"P","Ρ");defineSymbol(math,main,textord,"T","Τ");defineSymbol(math,main,textord,"X","Χ");defineSymbol(math,main,textord,"¬","\\neg",!0);defineSymbol(math,main,textord,"¬","\\lnot");defineSymbol(math,main,textord,"⊤","\\top");defineSymbol(math,main,textord,"⊥","\\bot");defineSymbol(math,main,textord,"∅","\\emptyset");defineSymbol(math,ams,textord,"∅","\\varnothing");defineSymbol(math,main,mathord,"α","\\alpha",!0);defineSymbol(math,main,mathord,"β","\\beta",!0);defineSymbol(math,main,mathord,"γ","\\gamma",!0);defineSymbol(math,main,mathord,"δ","\\delta",!0);defineSymbol(math,main,mathord,"ϵ","\\epsilon",!0);defineSymbol(math,main,mathord,"ζ","\\zeta",!0);defineSymbol(math,main,mathord,"η","\\eta",!0);defineSymbol(math,main,mathord,"θ","\\theta",!0);defineSymbol(math,main,mathord,"ι","\\iota",!0);defineSymbol(math,main,mathord,"κ","\\kappa",!0);defineSymbol(math,main,mathord,"λ","\\lambda",!0);defineSymbol(math,main,mathord,"μ","\\mu",!0);defineSymbol(math,main,mathord,"ν","\\nu",!0);defineSymbol(math,main,mathord,"ξ","\\xi",!0);defineSymbol(math,main,mathord,"ο","\\omicron",!0);defineSymbol(math,main,mathord,"π","\\pi",!0);defineSymbol(math,main,mathord,"ρ","\\rho",!0);defineSymbol(math,main,mathord,"σ","\\sigma",!0);defineSymbol(math,main,mathord,"τ","\\tau",!0);defineSymbol(math,main,mathord,"υ","\\upsilon",!0);defineSymbol(math,main,mathord,"ϕ","\\phi",!0);defineSymbol(math,main,mathord,"χ","\\chi",!0);defineSymbol(math,main,mathord,"ψ","\\psi",!0);defineSymbol(math,main,mathord,"ω","\\omega",!0);defineSymbol(math,main,mathord,"ε","\\varepsilon",!0);defineSymbol(math,main,mathord,"ϑ","\\vartheta",!0);defineSymbol(math,main,mathord,"ϖ","\\varpi",!0);defineSymbol(math,main,mathord,"ϱ","\\varrho",!0);defineSymbol(math,main,mathord,"ς","\\varsigma",!0);defineSymbol(math,main,mathord,"φ","\\varphi",!0);defineSymbol(math,main,bin,"∗","*",!0);defineSymbol(math,main,bin,"+","+");defineSymbol(math,main,bin,"−","-",!0);defineSymbol(math,main,bin,"⋅","\\cdot",!0);defineSymbol(math,main,bin,"∘","\\circ",!0);defineSymbol(math,main,bin,"÷","\\div",!0);defineSymbol(math,main,bin,"±","\\pm",!0);defineSymbol(math,main,bin,"×","\\times",!0);defineSymbol(math,main,bin,"∩","\\cap",!0);defineSymbol(math,main,bin,"∪","\\cup",!0);defineSymbol(math,main,bin,"∖","\\setminus",!0);defineSymbol(math,main,bin,"∧","\\land");defineSymbol(math,main,bin,"∨","\\lor");defineSymbol(math,main,bin,"∧","\\wedge",!0);defineSymbol(math,main,bin,"∨","\\vee",!0);defineSymbol(math,main,textord,"√","\\surd");defineSymbol(math,main,open,"⟨","\\langle",!0);defineSymbol(math,main,open,"∣","\\lvert");defineSymbol(math,main,open,"∥","\\lVert");defineSymbol(math,main,close,"?","?");defineSymbol(math,main,close,"!","!");defineSymbol(math,main,close,"⟩","\\rangle",!0);defineSymbol(math,main,close,"∣","\\rvert");defineSymbol(math,main,close,"∥","\\rVert");defineSymbol(math,main,rel,"=","=");defineSymbol(math,main,rel,":",":");defineSymbol(math,main,rel,"≈","\\approx",!0);defineSymbol(math,main,rel,"≅","\\cong",!0);defineSymbol(math,main,rel,"≥","\\ge");defineSymbol(math,main,rel,"≥","\\geq",!0);defineSymbol(math,main,rel,"←","\\gets");defineSymbol(math,main,rel,">","\\gt",!0);defineSymbol(math,main,rel,"∈","\\in",!0);defineSymbol(math,main,rel,"","\\@not");defineSymbol(math,main,rel,"⊂","\\subset",!0);defineSymbol(math,main,rel,"⊃","\\supset",!0);defineSymbol(math,main,rel,"⊆","\\subseteq",!0);defineSymbol(math,main,rel,"⊇","\\supseteq",!0);defineSymbol(math,ams,rel,"⊈","\\nsubseteq",!0);defineSymbol(math,ams,rel,"⊉","\\nsupseteq",!0);defineSymbol(math,main,rel,"⊨","\\models");defineSymbol(math,main,rel,"←","\\leftarrow",!0);defineSymbol(math,main,rel,"≤","\\le");defineSymbol(math,main,rel,"≤","\\leq",!0);defineSymbol(math,main,rel,"<","\\lt",!0);defineSymbol(math,main,rel,"→","\\rightarrow",!0);defineSymbol(math,main,rel,"→","\\to");defineSymbol(math,ams,rel,"≱","\\ngeq",!0);defineSymbol(math,ams,rel,"≰","\\nleq",!0);defineSymbol(math,main,spacing," ","\\ ");defineSymbol(math,main,spacing," ","\\space");defineSymbol(math,main,spacing," ","\\nobreakspace");defineSymbol(text$2,main,spacing," ","\\ ");defineSymbol(text$2,main,spacing," "," ");defineSymbol(text$2,main,spacing," ","\\space");defineSymbol(text$2,main,spacing," ","\\nobreakspace");defineSymbol(math,main,spacing,null,"\\nobreak");defineSymbol(math,main,spacing,null,"\\allowbreak");defineSymbol(math,main,punct,",",",");defineSymbol(math,main,punct,";",";");defineSymbol(math,ams,bin,"⊼","\\barwedge",!0);defineSymbol(math,ams,bin,"⊻","\\veebar",!0);defineSymbol(math,main,bin,"⊙","\\odot",!0);defineSymbol(math,main,bin,"⊕","\\oplus",!0);defineSymbol(math,main,bin,"⊗","\\otimes",!0);defineSymbol(math,main,textord,"∂","\\partial",!0);defineSymbol(math,main,bin,"⊘","\\oslash",!0);defineSymbol(math,ams,bin,"⊚","\\circledcirc",!0);defineSymbol(math,ams,bin,"⊡","\\boxdot",!0);defineSymbol(math,main,bin,"△","\\bigtriangleup");defineSymbol(math,main,bin,"▽","\\bigtriangledown");defineSymbol(math,main,bin,"†","\\dagger");defineSymbol(math,main,bin,"⋄","\\diamond");defineSymbol(math,main,bin,"⋆","\\star");defineSymbol(math,main,bin,"◃","\\triangleleft");defineSymbol(math,main,bin,"▹","\\triangleright");defineSymbol(math,main,open,"{","\\{");defineSymbol(text$2,main,textord,"{","\\{");defineSymbol(text$2,main,textord,"{","\\textbraceleft");defineSymbol(math,main,close,"}","\\}");defineSymbol(text$2,main,textord,"}","\\}");defineSymbol(text$2,main,textord,"}","\\textbraceright");defineSymbol(math,main,open,"{","\\lbrace");defineSymbol(math,main,close,"}","\\rbrace");defineSymbol(math,main,open,"[","\\lbrack",!0);defineSymbol(text$2,main,textord,"[","\\lbrack",!0);defineSymbol(math,main,close,"]","\\rbrack",!0);defineSymbol(text$2,main,textord,"]","\\rbrack",!0);defineSymbol(math,main,open,"(","\\lparen",!0);defineSymbol(math,main,close,")","\\rparen",!0);defineSymbol(text$2,main,textord,"<","\\textless",!0);defineSymbol(text$2,main,textord,">","\\textgreater",!0);defineSymbol(math,main,open,"⌊","\\lfloor",!0);defineSymbol(math,main,close,"⌋","\\rfloor",!0);defineSymbol(math,main,open,"⌈","\\lceil",!0);defineSymbol(math,main,close,"⌉","\\rceil",!0);defineSymbol(math,main,textord,"\\","\\backslash");defineSymbol(math,main,textord,"∣","|");defineSymbol(math,main,textord,"∣","\\vert");defineSymbol(text$2,main,textord,"|","\\textbar",!0);defineSymbol(math,main,textord,"∥","\\|");defineSymbol(math,main,textord,"∥","\\Vert");defineSymbol(text$2,main,textord,"∥","\\textbardbl");defineSymbol(text$2,main,textord,"~","\\textasciitilde");defineSymbol(text$2,main,textord,"\\","\\textbackslash");defineSymbol(text$2,main,textord,"^","\\textasciicircum");defineSymbol(math,main,rel,"↑","\\uparrow",!0);defineSymbol(math,main,rel,"⇑","\\Uparrow",!0);defineSymbol(math,main,rel,"↓","\\downarrow",!0);defineSymbol(math,main,rel,"⇓","\\Downarrow",!0);defineSymbol(math,main,rel,"↕","\\updownarrow",!0);defineSymbol(math,main,rel,"⇕","\\Updownarrow",!0);defineSymbol(math,main,op,"∐","\\coprod");defineSymbol(math,main,op,"⋁","\\bigvee");defineSymbol(math,main,op,"⋀","\\bigwedge");defineSymbol(math,main,op,"⨄","\\biguplus");defineSymbol(math,main,op,"⋂","\\bigcap");defineSymbol(math,main,op,"⋃","\\bigcup");defineSymbol(math,main,op,"∫","\\int");defineSymbol(math,main,op,"∫","\\intop");defineSymbol(math,main,op,"∬","\\iint");defineSymbol(math,main,op,"∭","\\iiint");defineSymbol(math,main,op,"∏","\\prod");defineSymbol(math,main,op,"∑","\\sum");defineSymbol(math,main,op,"⨂","\\bigotimes");defineSymbol(math,main,op,"⨁","\\bigoplus");defineSymbol(math,main,op,"⨀","\\bigodot");defineSymbol(math,main,op,"∮","\\oint");defineSymbol(math,main,op,"∯","\\oiint");defineSymbol(math,main,op,"∰","\\oiiint");defineSymbol(math,main,op,"⨆","\\bigsqcup");defineSymbol(math,main,op,"∫","\\smallint");defineSymbol(text$2,main,inner,"…","\\textellipsis");defineSymbol(math,main,inner,"…","\\mathellipsis");defineSymbol(text$2,main,inner,"…","\\ldots",!0);defineSymbol(math,main,inner,"…","\\ldots",!0);defineSymbol(math,main,inner,"⋯","\\@cdots",!0);defineSymbol(math,main,inner,"⋱","\\ddots",!0);defineSymbol(math,main,textord,"⋮","\\varvdots");defineSymbol(math,main,accent,"ˊ","\\acute");defineSymbol(math,main,accent,"ˋ","\\grave");defineSymbol(math,main,accent,"¨","\\ddot");defineSymbol(math,main,accent,"~","\\tilde");defineSymbol(math,main,accent,"ˉ","\\bar");defineSymbol(math,main,accent,"˘","\\breve");defineSymbol(math,main,accent,"ˇ","\\check");defineSymbol(math,main,accent,"^","\\hat");defineSymbol(math,main,accent,"⃗","\\vec");defineSymbol(math,main,accent,"˙","\\dot");defineSymbol(math,main,accent,"˚","\\mathring");defineSymbol(math,main,mathord,"","\\@imath");defineSymbol(math,main,mathord,"","\\@jmath");defineSymbol(math,main,textord,"ı","ı");defineSymbol(math,main,textord,"ȷ","ȷ");defineSymbol(text$2,main,textord,"ı","\\i",!0);defineSymbol(text$2,main,textord,"ȷ","\\j",!0);defineSymbol(text$2,main,textord,"ß","\\ss",!0);defineSymbol(text$2,main,textord,"æ","\\ae",!0);defineSymbol(text$2,main,textord,"œ","\\oe",!0);defineSymbol(text$2,main,textord,"ø","\\o",!0);defineSymbol(text$2,main,textord,"Æ","\\AE",!0);defineSymbol(text$2,main,textord,"Œ","\\OE",!0);defineSymbol(text$2,main,textord,"Ø","\\O",!0);defineSymbol(text$2,main,accent,"ˊ","\\'");defineSymbol(text$2,main,accent,"ˋ","\\`");defineSymbol(text$2,main,accent,"ˆ","\\^");defineSymbol(text$2,main,accent,"˜","\\~");defineSymbol(text$2,main,accent,"ˉ","\\=");defineSymbol(text$2,main,accent,"˘","\\u");defineSymbol(text$2,main,accent,"˙","\\.");defineSymbol(text$2,main,accent,"¸","\\c");defineSymbol(text$2,main,accent,"˚","\\r");defineSymbol(text$2,main,accent,"ˇ","\\v");defineSymbol(text$2,main,accent,"¨",'\\"');defineSymbol(text$2,main,accent,"˝","\\H");defineSymbol(text$2,main,accent,"◯","\\textcircled");var ligatures={"--":!0,"---":!0,"``":!0,"''":!0};defineSymbol(text$2,main,textord,"–","--",!0);defineSymbol(text$2,main,textord,"–","\\textendash");defineSymbol(text$2,main,textord,"—","---",!0);defineSymbol(text$2,main,textord,"—","\\textemdash");defineSymbol(text$2,main,textord,"‘","`",!0);defineSymbol(text$2,main,textord,"‘","\\textquoteleft");defineSymbol(text$2,main,textord,"’","'",!0);defineSymbol(text$2,main,textord,"’","\\textquoteright");defineSymbol(text$2,main,textord,"“","``",!0);defineSymbol(text$2,main,textord,"“","\\textquotedblleft");defineSymbol(text$2,main,textord,"”","''",!0);defineSymbol(text$2,main,textord,"”","\\textquotedblright");defineSymbol(math,main,textord,"°","\\degree",!0);defineSymbol(text$2,main,textord,"°","\\degree");defineSymbol(text$2,main,textord,"°","\\textdegree",!0);defineSymbol(math,main,textord,"£","\\pounds");defineSymbol(math,main,textord,"£","\\mathsterling",!0);defineSymbol(text$2,main,textord,"£","\\pounds");defineSymbol(text$2,main,textord,"£","\\textsterling",!0);defineSymbol(math,ams,textord,"✠","\\maltese");defineSymbol(text$2,ams,textord,"✠","\\maltese");var mathTextSymbols='0123456789/@."';for(var i$1=0;i$10)return makeSymbol(ao,go,so,no,lo.concat(mo));if(ho){var yo,So;if(ho==="boldsymbol"){var _o=boldsymbol(ao,so,no,lo,io);yo=_o.fontName,So=[_o.fontClass]}else uo?(yo=fontMap[ho].fontName,So=[ho]):(yo=retrieveTextFontName(ho,no.fontWeight,no.fontShape),So=[ho,no.fontWeight,no.fontShape]);if(lookupSymbol(ao,yo,so).metrics)return makeSymbol(ao,yo,so,no,lo.concat(So));if(ligatures.hasOwnProperty(ao)&&yo.slice(0,10)==="Typewriter"){for(var ko=[],Co=0;Co{if(createClass(eo.classes)!==createClass(to.classes)||eo.skew!==to.skew||eo.maxFontSize!==to.maxFontSize)return!1;if(eo.classes.length===1){var no=eo.classes[0];if(no==="mbin"||no==="mord")return!1}for(var io in eo.style)if(eo.style.hasOwnProperty(io)&&eo.style[io]!==to.style[io])return!1;for(var so in to.style)if(to.style.hasOwnProperty(so)&&eo.style[so]!==to.style[so])return!1;return!0},tryCombineChars=eo=>{for(var to=0;tono&&(no=lo.height),lo.depth>io&&(io=lo.depth),lo.maxFontSize>so&&(so=lo.maxFontSize)}to.height=no,to.depth=io,to.maxFontSize=so},makeSpan$2=function eo(to,no,io,so){var ao=new Span(to,no,io,so);return sizeElementFromChildren(ao),ao},makeSvgSpan=(eo,to,no,io)=>new Span(eo,to,no,io),makeLineSpan=function eo(to,no,io){var so=makeSpan$2([to],[],no);return so.height=Math.max(io||no.fontMetrics().defaultRuleThickness,no.minRuleThickness),so.style.borderBottomWidth=makeEm(so.height),so.maxFontSize=1,so},makeAnchor=function eo(to,no,io,so){var ao=new Anchor(to,no,io,so);return sizeElementFromChildren(ao),ao},makeFragment=function eo(to){var no=new DocumentFragment(to);return sizeElementFromChildren(no),no},wrapFragment=function eo(to,no){return to instanceof DocumentFragment?makeSpan$2([],[to],no):to},getVListChildrenAndDepth=function eo(to){if(to.positionType==="individualShift"){for(var no=to.children,io=[no[0]],so=-no[0].shift-no[0].elem.depth,ao=so,lo=1;lo{var no=makeSpan$2(["mspace"],[],to),io=calculateSize(eo,to);return no.style.marginRight=makeEm(io),no},retrieveTextFontName=function eo(to,no,io){var so="";switch(to){case"amsrm":so="AMS";break;case"textrm":so="Main";break;case"textsf":so="SansSerif";break;case"texttt":so="Typewriter";break;default:so=to}var ao;return no==="textbf"&&io==="textit"?ao="BoldItalic":no==="textbf"?ao="Bold":no==="textit"?ao="Italic":ao="Regular",so+"-"+ao},fontMap={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},svgData={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},staticSvg=function eo(to,no){var[io,so,ao]=svgData[to],lo=new PathNode(io),uo=new SvgNode([lo],{width:makeEm(so),height:makeEm(ao),style:"width:"+makeEm(so),viewBox:"0 0 "+1e3*so+" "+1e3*ao,preserveAspectRatio:"xMinYMin"}),ho=makeSvgSpan(["overlay"],[uo],no);return ho.height=ao,ho.style.height=makeEm(ao),ho.style.width=makeEm(so),ho},buildCommon={fontMap,makeSymbol,mathsym,makeSpan:makeSpan$2,makeSvgSpan,makeLineSpan,makeAnchor,makeFragment,wrapFragment,makeVList,makeOrd,makeGlue,staticSvg,svgData,tryCombineChars},thinspace={number:3,unit:"mu"},mediumspace={number:4,unit:"mu"},thickspace={number:5,unit:"mu"},spacings={mord:{mop:thinspace,mbin:mediumspace,mrel:thickspace,minner:thinspace},mop:{mord:thinspace,mop:thinspace,mrel:thickspace,minner:thinspace},mbin:{mord:mediumspace,mop:mediumspace,mopen:mediumspace,minner:mediumspace},mrel:{mord:thickspace,mop:thickspace,mopen:thickspace,minner:thickspace},mopen:{},mclose:{mop:thinspace,mbin:mediumspace,mrel:thickspace,minner:thinspace},mpunct:{mord:thinspace,mop:thinspace,mrel:thickspace,mopen:thinspace,mclose:thinspace,mpunct:thinspace,minner:thinspace},minner:{mord:thinspace,mop:thinspace,mbin:mediumspace,mrel:thickspace,mopen:thinspace,mpunct:thinspace,minner:thinspace}},tightSpacings={mord:{mop:thinspace},mop:{mord:thinspace,mop:thinspace},mbin:{},mrel:{},mopen:{},mclose:{mop:thinspace},mpunct:{},minner:{mop:thinspace}},_functions={},_htmlGroupBuilders={},_mathmlGroupBuilders={};function defineFunction(eo){for(var{type:to,names:no,props:io,handler:so,htmlBuilder:ao,mathmlBuilder:lo}=eo,uo={type:to,numArgs:io.numArgs,argTypes:io.argTypes,allowedInArgument:!!io.allowedInArgument,allowedInText:!!io.allowedInText,allowedInMath:io.allowedInMath===void 0?!0:io.allowedInMath,numOptionalArgs:io.numOptionalArgs||0,infix:!!io.infix,primitive:!!io.primitive,handler:so},ho=0;ho{var $o=Co.classes[0],Ro=ko.classes[0];$o==="mbin"&&utils.contains(binRightCanceller,Ro)?Co.classes[0]="mord":Ro==="mbin"&&utils.contains(binLeftCanceller,$o)&&(ko.classes[0]="mord")},{node:yo},So,_o),traverseNonSpaceNodes(ao,(ko,Co)=>{var $o=getTypeOfDomTree(Co),Ro=getTypeOfDomTree(ko),Oo=$o&&Ro?ko.hasClass("mtight")?tightSpacings[$o][Ro]:spacings[$o][Ro]:null;if(Oo)return buildCommon.makeGlue(Oo,go)},{node:yo},So,_o),ao},traverseNonSpaceNodes=function eo(to,no,io,so,ao){so&&to.push(so);for(var lo=0;loSo=>{to.splice(yo+1,0,So),lo++})(lo)}so&&to.pop()},checkPartialGroup=function eo(to){return to instanceof DocumentFragment||to instanceof Anchor||to instanceof Span&&to.hasClass("enclosing")?to:null},getOutermostNode=function eo(to,no){var io=checkPartialGroup(to);if(io){var so=io.children;if(so.length){if(no==="right")return eo(so[so.length-1],"right");if(no==="left")return eo(so[0],"left")}}return to},getTypeOfDomTree=function eo(to,no){return to?(no&&(to=getOutermostNode(to,no)),DomEnum[to.classes[0]]||null):null},makeNullDelimiter=function eo(to,no){var io=["nulldelimiter"].concat(to.baseSizingClasses());return makeSpan$1(no.concat(io))},buildGroup$1=function eo(to,no,io){if(!to)return makeSpan$1();if(_htmlGroupBuilders[to.type]){var so=_htmlGroupBuilders[to.type](to,no);if(io&&no.size!==io.size){so=makeSpan$1(no.sizingClasses(io),[so],no);var ao=no.sizeMultiplier/io.sizeMultiplier;so.height*=ao,so.depth*=ao}return so}else throw new ParseError("Got group of unknown type: '"+to.type+"'")};function buildHTMLUnbreakable(eo,to){var no=makeSpan$1(["base"],eo,to),io=makeSpan$1(["strut"]);return io.style.height=makeEm(no.height+no.depth),no.depth&&(io.style.verticalAlign=makeEm(-no.depth)),no.children.unshift(io),no}function buildHTML(eo,to){var no=null;eo.length===1&&eo[0].type==="tag"&&(no=eo[0].tag,eo=eo[0].body);var io=buildExpression$1(eo,to,"root"),so;io.length===2&&io[1].hasClass("tag")&&(so=io.pop());for(var ao=[],lo=[],uo=0;uo0&&(ao.push(buildHTMLUnbreakable(lo,to)),lo=[]),ao.push(io[uo]));lo.length>0&&ao.push(buildHTMLUnbreakable(lo,to));var go;no?(go=buildHTMLUnbreakable(buildExpression$1(no,to,!0)),go.classes=["tag"],ao.push(go)):so&&ao.push(so);var mo=makeSpan$1(["katex-html"],ao);if(mo.setAttribute("aria-hidden","true"),go){var yo=go.children[0];yo.style.height=makeEm(mo.height+mo.depth),mo.depth&&(yo.style.verticalAlign=makeEm(-mo.depth))}return mo}function newDocumentFragment(eo){return new DocumentFragment(eo)}class MathNode{constructor(to,no,io){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=to,this.attributes={},this.children=no||[],this.classes=io||[]}setAttribute(to,no){this.attributes[to]=no}getAttribute(to){return this.attributes[to]}toNode(){var to=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var no in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,no)&&to.setAttribute(no,this.attributes[no]);this.classes.length>0&&(to.className=createClass(this.classes));for(var io=0;io0&&(to+=' class ="'+utils.escape(createClass(this.classes))+'"'),to+=">";for(var io=0;io",to}toText(){return this.children.map(to=>to.toText()).join("")}}class TextNode{constructor(to){this.text=void 0,this.text=to}toNode(){return document.createTextNode(this.text)}toMarkup(){return utils.escape(this.toText())}toText(){return this.text}}class SpaceNode{constructor(to){this.width=void 0,this.character=void 0,this.width=to,to>=.05555&&to<=.05556?this.character=" ":to>=.1666&&to<=.1667?this.character=" ":to>=.2222&&to<=.2223?this.character=" ":to>=.2777&&to<=.2778?this.character="  ":to>=-.05556&&to<=-.05555?this.character=" ⁣":to>=-.1667&&to<=-.1666?this.character=" ⁣":to>=-.2223&&to<=-.2222?this.character=" ⁣":to>=-.2778&&to<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var to=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return to.setAttribute("width",makeEm(this.width)),to}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var mathMLTree={MathNode,TextNode,SpaceNode,newDocumentFragment},makeText=function eo(to,no,io){return symbols[no][to]&&symbols[no][to].replace&&to.charCodeAt(0)!==55349&&!(ligatures.hasOwnProperty(to)&&io&&(io.fontFamily&&io.fontFamily.slice(4,6)==="tt"||io.font&&io.font.slice(4,6)==="tt"))&&(to=symbols[no][to].replace),new mathMLTree.TextNode(to)},makeRow=function eo(to){return to.length===1?to[0]:new mathMLTree.MathNode("mrow",to)},getVariant=function eo(to,no){if(no.fontFamily==="texttt")return"monospace";if(no.fontFamily==="textsf")return no.fontShape==="textit"&&no.fontWeight==="textbf"?"sans-serif-bold-italic":no.fontShape==="textit"?"sans-serif-italic":no.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(no.fontShape==="textit"&&no.fontWeight==="textbf")return"bold-italic";if(no.fontShape==="textit")return"italic";if(no.fontWeight==="textbf")return"bold";var io=no.font;if(!io||io==="mathnormal")return null;var so=to.mode;if(io==="mathit")return"italic";if(io==="boldsymbol")return to.type==="textord"?"bold":"bold-italic";if(io==="mathbf")return"bold";if(io==="mathbb")return"double-struck";if(io==="mathfrak")return"fraktur";if(io==="mathscr"||io==="mathcal")return"script";if(io==="mathsf")return"sans-serif";if(io==="mathtt")return"monospace";var ao=to.text;if(utils.contains(["\\imath","\\jmath"],ao))return null;symbols[so][ao]&&symbols[so][ao].replace&&(ao=symbols[so][ao].replace);var lo=buildCommon.fontMap[io].fontName;return getCharacterMetrics(ao,lo,so)?buildCommon.fontMap[io].variant:null},buildExpression=function eo(to,no,io){if(to.length===1){var so=buildGroup(to[0],no);return io&&so instanceof MathNode&&so.type==="mo"&&(so.setAttribute("lspace","0em"),so.setAttribute("rspace","0em")),[so]}for(var ao=[],lo,uo=0;uo0&&(yo.text=yo.text.slice(0,1)+"̸"+yo.text.slice(1),ao.pop())}}}ao.push(ho),lo=ho}return ao},buildExpressionRow=function eo(to,no,io){return makeRow(buildExpression(to,no,io))},buildGroup=function eo(to,no){if(!to)return new mathMLTree.MathNode("mrow");if(_mathmlGroupBuilders[to.type]){var io=_mathmlGroupBuilders[to.type](to,no);return io}else throw new ParseError("Got group of unknown type: '"+to.type+"'")};function buildMathML(eo,to,no,io,so){var ao=buildExpression(eo,no),lo;ao.length===1&&ao[0]instanceof MathNode&&utils.contains(["mrow","mtable"],ao[0].type)?lo=ao[0]:lo=new mathMLTree.MathNode("mrow",ao);var uo=new mathMLTree.MathNode("annotation",[new mathMLTree.TextNode(to)]);uo.setAttribute("encoding","application/x-tex");var ho=new mathMLTree.MathNode("semantics",[lo,uo]),go=new mathMLTree.MathNode("math",[ho]);go.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),io&&go.setAttribute("display","block");var mo=so?"katex":"katex-mathml";return buildCommon.makeSpan([mo],[go])}var optionsFromSettings=function eo(to){return new Options({style:to.displayMode?Style$1$1.DISPLAY:Style$1$1.TEXT,maxSize:to.maxSize,minRuleThickness:to.minRuleThickness})},displayWrap=function eo(to,no){if(no.displayMode){var io=["katex-display"];no.leqno&&io.push("leqno"),no.fleqn&&io.push("fleqn"),to=buildCommon.makeSpan(io,[to])}return to},buildTree=function eo(to,no,io){var so=optionsFromSettings(io),ao;if(io.output==="mathml")return buildMathML(to,no,so,io.displayMode,!0);if(io.output==="html"){var lo=buildHTML(to,so);ao=buildCommon.makeSpan(["katex"],[lo])}else{var uo=buildMathML(to,no,so,io.displayMode,!1),ho=buildHTML(to,so);ao=buildCommon.makeSpan(["katex"],[uo,ho])}return displayWrap(ao,io)},buildHTMLTree=function eo(to,no,io){var so=optionsFromSettings(io),ao=buildHTML(to,so),lo=buildCommon.makeSpan(["katex"],[ao]);return displayWrap(lo,io)},stretchyCodePoint={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},mathMLnode=function eo(to){var no=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode(stretchyCodePoint[to.replace(/^\\/,"")])]);return no.setAttribute("stretchy","true"),no},katexImagesData={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},groupLength=function eo(to){return to.type==="ordgroup"?to.body.length:1},svgSpan=function eo(to,no){function io(){var uo=4e5,ho=to.label.slice(1);if(utils.contains(["widehat","widecheck","widetilde","utilde"],ho)){var go=to,mo=groupLength(go.base),yo,So,_o;if(mo>5)ho==="widehat"||ho==="widecheck"?(yo=420,uo=2364,_o=.42,So=ho+"4"):(yo=312,uo=2340,_o=.34,So="tilde4");else{var ko=[1,1,2,2,3,3][mo];ho==="widehat"||ho==="widecheck"?(uo=[0,1062,2364,2364,2364][ko],yo=[0,239,300,360,420][ko],_o=[0,.24,.3,.3,.36,.42][ko],So=ho+ko):(uo=[0,600,1033,2339,2340][ko],yo=[0,260,286,306,312][ko],_o=[0,.26,.286,.3,.306,.34][ko],So="tilde"+ko)}var Co=new PathNode(So),$o=new SvgNode([Co],{width:"100%",height:makeEm(_o),viewBox:"0 0 "+uo+" "+yo,preserveAspectRatio:"none"});return{span:buildCommon.makeSvgSpan([],[$o],no),minWidth:0,height:_o}}else{var Ro=[],Oo=katexImagesData[ho],[No,Mo,Bo]=Oo,Fo=Bo/1e3,Lo=No.length,Go,Do;if(Lo===1){var Uo=Oo[3];Go=["hide-tail"],Do=[Uo]}else if(Lo===2)Go=["halfarrow-left","halfarrow-right"],Do=["xMinYMin","xMaxYMin"];else if(Lo===3)Go=["brace-left","brace-center","brace-right"],Do=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+Lo+" children.");for(var Ho=0;Ho0&&(so.style.minWidth=makeEm(ao)),so},encloseSpan=function eo(to,no,io,so,ao){var lo,uo=to.height+to.depth+io+so;if(/fbox|color|angl/.test(no)){if(lo=buildCommon.makeSpan(["stretchy",no],[],ao),no==="fbox"){var ho=ao.color&&ao.getColor();ho&&(lo.style.borderColor=ho)}}else{var go=[];/^[bx]cancel$/.test(no)&&go.push(new LineNode({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(no)&&go.push(new LineNode({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var mo=new SvgNode(go,{width:"100%",height:makeEm(uo)});lo=buildCommon.makeSvgSpan([],[mo],ao)}return lo.height=uo,lo.style.height=makeEm(uo),lo},stretchy={encloseSpan,mathMLnode,svgSpan};function assertNodeType(eo,to){if(!eo||eo.type!==to)throw new Error("Expected node of type "+to+", but got "+(eo?"node of type "+eo.type:String(eo)));return eo}function assertSymbolNodeType(eo){var to=checkSymbolNodeType(eo);if(!to)throw new Error("Expected node of symbol group type, but got "+(eo?"node of type "+eo.type:String(eo)));return to}function checkSymbolNodeType(eo){return eo&&(eo.type==="atom"||NON_ATOMS.hasOwnProperty(eo.type))?eo:null}var htmlBuilder$a=(eo,to)=>{var no,io,so;eo&&eo.type==="supsub"?(io=assertNodeType(eo.base,"accent"),no=io.base,eo.base=no,so=assertSpan(buildGroup$1(eo,to)),eo.base=io):(io=assertNodeType(eo,"accent"),no=io.base);var ao=buildGroup$1(no,to.havingCrampedStyle()),lo=io.isShifty&&utils.isCharacterBox(no),uo=0;if(lo){var ho=utils.getBaseElem(no),go=buildGroup$1(ho,to.havingCrampedStyle());uo=assertSymbolDomNode(go).skew}var mo=io.label==="\\c",yo=mo?ao.height+ao.depth:Math.min(ao.height,to.fontMetrics().xHeight),So;if(io.isStretchy)So=stretchy.svgSpan(io,to),So=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ao},{type:"elem",elem:So,wrapperClasses:["svg-align"],wrapperStyle:uo>0?{width:"calc(100% - "+makeEm(2*uo)+")",marginLeft:makeEm(2*uo)}:void 0}]},to);else{var _o,ko;io.label==="\\vec"?(_o=buildCommon.staticSvg("vec",to),ko=buildCommon.svgData.vec[1]):(_o=buildCommon.makeOrd({mode:io.mode,text:io.label},to,"textord"),_o=assertSymbolDomNode(_o),_o.italic=0,ko=_o.width,mo&&(yo+=_o.depth)),So=buildCommon.makeSpan(["accent-body"],[_o]);var Co=io.label==="\\textcircled";Co&&(So.classes.push("accent-full"),yo=ao.height);var $o=uo;Co||($o-=ko/2),So.style.left=makeEm($o),io.label==="\\textcircled"&&(So.style.top=".2em"),So=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ao},{type:"kern",size:-yo},{type:"elem",elem:So}]},to)}var Ro=buildCommon.makeSpan(["mord","accent"],[So],to);return so?(so.children[0]=Ro,so.height=Math.max(Ro.height,so.height),so.classes[0]="mord",so):Ro},mathmlBuilder$9=(eo,to)=>{var no=eo.isStretchy?stretchy.mathMLnode(eo.label):new mathMLTree.MathNode("mo",[makeText(eo.label,eo.mode)]),io=new mathMLTree.MathNode("mover",[buildGroup(eo.base,to),no]);return io.setAttribute("accent","true"),io},NON_STRETCHY_ACCENT_REGEX=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(eo=>"\\"+eo).join("|"));defineFunction({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(eo,to)=>{var no=normalizeArgument(to[0]),io=!NON_STRETCHY_ACCENT_REGEX.test(eo.funcName),so=!io||eo.funcName==="\\widehat"||eo.funcName==="\\widetilde"||eo.funcName==="\\widecheck";return{type:"accent",mode:eo.parser.mode,label:eo.funcName,isStretchy:io,isShifty:so,base:no}},htmlBuilder:htmlBuilder$a,mathmlBuilder:mathmlBuilder$9});defineFunction({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(eo,to)=>{var no=to[0],io=eo.parser.mode;return io==="math"&&(eo.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+eo.funcName+" works only in text mode"),io="text"),{type:"accent",mode:io,label:eo.funcName,isStretchy:!1,isShifty:!0,base:no}},htmlBuilder:htmlBuilder$a,mathmlBuilder:mathmlBuilder$9});defineFunction({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=to[0];return{type:"accentUnder",mode:no.mode,label:io,base:so}},htmlBuilder:(eo,to)=>{var no=buildGroup$1(eo.base,to),io=stretchy.svgSpan(eo,to),so=eo.label==="\\utilde"?.12:0,ao=buildCommon.makeVList({positionType:"top",positionData:no.height,children:[{type:"elem",elem:io,wrapperClasses:["svg-align"]},{type:"kern",size:so},{type:"elem",elem:no}]},to);return buildCommon.makeSpan(["mord","accentunder"],[ao],to)},mathmlBuilder:(eo,to)=>{var no=stretchy.mathMLnode(eo.label),io=new mathMLTree.MathNode("munder",[buildGroup(eo.base,to),no]);return io.setAttribute("accentunder","true"),io}});var paddedNode=eo=>{var to=new mathMLTree.MathNode("mpadded",eo?[eo]:[]);return to.setAttribute("width","+0.6em"),to.setAttribute("lspace","0.3em"),to};defineFunction({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(eo,to,no){var{parser:io,funcName:so}=eo;return{type:"xArrow",mode:io.mode,label:so,body:to[0],below:no[0]}},htmlBuilder(eo,to){var no=to.style,io=to.havingStyle(no.sup()),so=buildCommon.wrapFragment(buildGroup$1(eo.body,io,to),to),ao=eo.label.slice(0,2)==="\\x"?"x":"cd";so.classes.push(ao+"-arrow-pad");var lo;eo.below&&(io=to.havingStyle(no.sub()),lo=buildCommon.wrapFragment(buildGroup$1(eo.below,io,to),to),lo.classes.push(ao+"-arrow-pad"));var uo=stretchy.svgSpan(eo,to),ho=-to.fontMetrics().axisHeight+.5*uo.height,go=-to.fontMetrics().axisHeight-.5*uo.height-.111;(so.depth>.25||eo.label==="\\xleftequilibrium")&&(go-=so.depth);var mo;if(lo){var yo=-to.fontMetrics().axisHeight+lo.height+.5*uo.height+.111;mo=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:so,shift:go},{type:"elem",elem:uo,shift:ho},{type:"elem",elem:lo,shift:yo}]},to)}else mo=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:so,shift:go},{type:"elem",elem:uo,shift:ho}]},to);return mo.children[0].children[0].children[1].classes.push("svg-align"),buildCommon.makeSpan(["mrel","x-arrow"],[mo],to)},mathmlBuilder(eo,to){var no=stretchy.mathMLnode(eo.label);no.setAttribute("minsize",eo.label.charAt(0)==="x"?"1.75em":"3.0em");var io;if(eo.body){var so=paddedNode(buildGroup(eo.body,to));if(eo.below){var ao=paddedNode(buildGroup(eo.below,to));io=new mathMLTree.MathNode("munderover",[no,ao,so])}else io=new mathMLTree.MathNode("mover",[no,so])}else if(eo.below){var lo=paddedNode(buildGroup(eo.below,to));io=new mathMLTree.MathNode("munder",[no,lo])}else io=paddedNode(),io=new mathMLTree.MathNode("mover",[no,io]);return io}});var makeSpan=buildCommon.makeSpan;function htmlBuilder$9(eo,to){var no=buildExpression$1(eo.body,to,!0);return makeSpan([eo.mclass],no,to)}function mathmlBuilder$8(eo,to){var no,io=buildExpression(eo.body,to);return eo.mclass==="minner"?no=new mathMLTree.MathNode("mpadded",io):eo.mclass==="mord"?eo.isCharacterBox?(no=io[0],no.type="mi"):no=new mathMLTree.MathNode("mi",io):(eo.isCharacterBox?(no=io[0],no.type="mo"):no=new mathMLTree.MathNode("mo",io),eo.mclass==="mbin"?(no.attributes.lspace="0.22em",no.attributes.rspace="0.22em"):eo.mclass==="mpunct"?(no.attributes.lspace="0em",no.attributes.rspace="0.17em"):eo.mclass==="mopen"||eo.mclass==="mclose"?(no.attributes.lspace="0em",no.attributes.rspace="0em"):eo.mclass==="minner"&&(no.attributes.lspace="0.0556em",no.attributes.width="+0.1111em")),no}defineFunction({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(eo,to){var{parser:no,funcName:io}=eo,so=to[0];return{type:"mclass",mode:no.mode,mclass:"m"+io.slice(5),body:ordargument(so),isCharacterBox:utils.isCharacterBox(so)}},htmlBuilder:htmlBuilder$9,mathmlBuilder:mathmlBuilder$8});var binrelClass=eo=>{var to=eo.type==="ordgroup"&&eo.body.length?eo.body[0]:eo;return to.type==="atom"&&(to.family==="bin"||to.family==="rel")?"m"+to.family:"mord"};defineFunction({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(eo,to){var{parser:no}=eo;return{type:"mclass",mode:no.mode,mclass:binrelClass(to[0]),body:ordargument(to[1]),isCharacterBox:utils.isCharacterBox(to[1])}}});defineFunction({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(eo,to){var{parser:no,funcName:io}=eo,so=to[1],ao=to[0],lo;io!=="\\stackrel"?lo=binrelClass(so):lo="mrel";var uo={type:"op",mode:so.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:io!=="\\stackrel",body:ordargument(so)},ho={type:"supsub",mode:ao.mode,base:uo,sup:io==="\\underset"?null:ao,sub:io==="\\underset"?ao:null};return{type:"mclass",mode:no.mode,mclass:lo,body:[ho],isCharacterBox:utils.isCharacterBox(ho)}},htmlBuilder:htmlBuilder$9,mathmlBuilder:mathmlBuilder$8});defineFunction({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(eo,to){var{parser:no}=eo;return{type:"pmb",mode:no.mode,mclass:binrelClass(to[0]),body:ordargument(to[0])}},htmlBuilder(eo,to){var no=buildExpression$1(eo.body,to,!0),io=buildCommon.makeSpan([eo.mclass],no,to);return io.style.textShadow="0.02em 0.01em 0.04px",io},mathmlBuilder(eo,to){var no=buildExpression(eo.body,to),io=new mathMLTree.MathNode("mstyle",no);return io.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),io}});var cdArrowFunctionName={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},newCell=()=>({type:"styling",body:[],mode:"math",style:"display"}),isStartOfArrow=eo=>eo.type==="textord"&&eo.text==="@",isLabelEnd=(eo,to)=>(eo.type==="mathord"||eo.type==="atom")&&eo.text===to;function cdArrow(eo,to,no){var io=cdArrowFunctionName[eo];switch(io){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return no.callFunction(io,[to[0]],[to[1]]);case"\\uparrow":case"\\downarrow":{var so=no.callFunction("\\\\cdleft",[to[0]],[]),ao={type:"atom",text:io,mode:"math",family:"rel"},lo=no.callFunction("\\Big",[ao],[]),uo=no.callFunction("\\\\cdright",[to[1]],[]),ho={type:"ordgroup",mode:"math",body:[so,lo,uo]};return no.callFunction("\\\\cdparent",[ho],[])}case"\\\\cdlongequal":return no.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var go={type:"textord",text:"\\Vert",mode:"math"};return no.callFunction("\\Big",[go],[])}default:return{type:"textord",text:" ",mode:"math"}}}function parseCD(eo){var to=[];for(eo.gullet.beginGroup(),eo.gullet.macros.set("\\cr","\\\\\\relax"),eo.gullet.beginGroup();;){to.push(eo.parseExpression(!1,"\\\\")),eo.gullet.endGroup(),eo.gullet.beginGroup();var no=eo.fetch().text;if(no==="&"||no==="\\\\")eo.consume();else if(no==="\\end"){to[to.length-1].length===0&&to.pop();break}else throw new ParseError("Expected \\\\ or \\cr or \\end",eo.nextToken)}for(var io=[],so=[io],ao=0;ao-1))if("<>AV".indexOf(go)>-1)for(var yo=0;yo<2;yo++){for(var So=!0,_o=ho+1;_oAV=|." after @',lo[ho]);var ko=cdArrow(go,mo,eo),Co={type:"styling",body:[ko],mode:"math",style:"display"};io.push(Co),uo=newCell()}ao%2===0?io.push(uo):io.shift(),io=[],so.push(io)}eo.gullet.endGroup(),eo.gullet.endGroup();var $o=new Array(so[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:so,arraystretch:1,addJot:!0,rowGaps:[null],cols:$o,colSeparationType:"CD",hLinesBeforeRow:new Array(so.length+1).fill([])}}defineFunction({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(eo,to){var{parser:no,funcName:io}=eo;return{type:"cdlabel",mode:no.mode,side:io.slice(4),label:to[0]}},htmlBuilder(eo,to){var no=to.havingStyle(to.style.sup()),io=buildCommon.wrapFragment(buildGroup$1(eo.label,no,to),to);return io.classes.push("cd-label-"+eo.side),io.style.bottom=makeEm(.8-io.depth),io.height=0,io.depth=0,io},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mrow",[buildGroup(eo.label,to)]);return no=new mathMLTree.MathNode("mpadded",[no]),no.setAttribute("width","0"),eo.side==="left"&&no.setAttribute("lspace","-1width"),no.setAttribute("voffset","0.7em"),no=new mathMLTree.MathNode("mstyle",[no]),no.setAttribute("displaystyle","false"),no.setAttribute("scriptlevel","1"),no}});defineFunction({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(eo,to){var{parser:no}=eo;return{type:"cdlabelparent",mode:no.mode,fragment:to[0]}},htmlBuilder(eo,to){var no=buildCommon.wrapFragment(buildGroup$1(eo.fragment,to),to);return no.classes.push("cd-vert-arrow"),no},mathmlBuilder(eo,to){return new mathMLTree.MathNode("mrow",[buildGroup(eo.fragment,to)])}});defineFunction({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(eo,to){for(var{parser:no}=eo,io=assertNodeType(to[0],"ordgroup"),so=io.body,ao="",lo=0;lo=1114111)throw new ParseError("\\@char with invalid code point "+ao);return ho<=65535?go=String.fromCharCode(ho):(ho-=65536,go=String.fromCharCode((ho>>10)+55296,(ho&1023)+56320)),{type:"textord",mode:no.mode,text:go}}});var htmlBuilder$8=(eo,to)=>{var no=buildExpression$1(eo.body,to.withColor(eo.color),!1);return buildCommon.makeFragment(no)},mathmlBuilder$7=(eo,to)=>{var no=buildExpression(eo.body,to.withColor(eo.color)),io=new mathMLTree.MathNode("mstyle",no);return io.setAttribute("mathcolor",eo.color),io};defineFunction({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(eo,to){var{parser:no}=eo,io=assertNodeType(to[0],"color-token").color,so=to[1];return{type:"color",mode:no.mode,color:io,body:ordargument(so)}},htmlBuilder:htmlBuilder$8,mathmlBuilder:mathmlBuilder$7});defineFunction({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(eo,to){var{parser:no,breakOnTokenText:io}=eo,so=assertNodeType(to[0],"color-token").color;no.gullet.macros.set("\\current@color",so);var ao=no.parseExpression(!0,io);return{type:"color",mode:no.mode,color:so,body:ao}},htmlBuilder:htmlBuilder$8,mathmlBuilder:mathmlBuilder$7});defineFunction({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(eo,to,no){var{parser:io}=eo,so=io.gullet.future().text==="["?io.parseSizeGroup(!0):null,ao=!io.settings.displayMode||!io.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:io.mode,newLine:ao,size:so&&assertNodeType(so,"size").value}},htmlBuilder(eo,to){var no=buildCommon.makeSpan(["mspace"],[],to);return eo.newLine&&(no.classes.push("newline"),eo.size&&(no.style.marginTop=makeEm(calculateSize(eo.size,to)))),no},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mspace");return eo.newLine&&(no.setAttribute("linebreak","newline"),eo.size&&no.setAttribute("height",makeEm(calculateSize(eo.size,to)))),no}});var globalMap={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},checkControlSequence=eo=>{var to=eo.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(to))throw new ParseError("Expected a control sequence",eo);return to},getRHS=eo=>{var to=eo.gullet.popToken();return to.text==="="&&(to=eo.gullet.popToken(),to.text===" "&&(to=eo.gullet.popToken())),to},letCommand=(eo,to,no,io)=>{var so=eo.gullet.macros.get(no.text);so==null&&(no.noexpand=!0,so={tokens:[no],numArgs:0,unexpandable:!eo.gullet.isExpandable(no.text)}),eo.gullet.macros.set(to,so,io)};defineFunction({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(eo){var{parser:to,funcName:no}=eo;to.consumeSpaces();var io=to.fetch();if(globalMap[io.text])return(no==="\\global"||no==="\\\\globallong")&&(io.text=globalMap[io.text]),assertNodeType(to.parseFunction(),"internal");throw new ParseError("Invalid token after macro prefix",io)}});defineFunction({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(eo){var{parser:to,funcName:no}=eo,io=to.gullet.popToken(),so=io.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(so))throw new ParseError("Expected a control sequence",io);for(var ao=0,lo,uo=[[]];to.gullet.future().text!=="{";)if(io=to.gullet.popToken(),io.text==="#"){if(to.gullet.future().text==="{"){lo=to.gullet.future(),uo[ao].push("{");break}if(io=to.gullet.popToken(),!/^[1-9]$/.test(io.text))throw new ParseError('Invalid argument number "'+io.text+'"');if(parseInt(io.text)!==ao+1)throw new ParseError('Argument number "'+io.text+'" out of order');ao++,uo.push([])}else{if(io.text==="EOF")throw new ParseError("Expected a macro definition");uo[ao].push(io.text)}var{tokens:ho}=to.gullet.consumeArg();return lo&&ho.unshift(lo),(no==="\\edef"||no==="\\xdef")&&(ho=to.gullet.expandTokens(ho),ho.reverse()),to.gullet.macros.set(so,{tokens:ho,numArgs:ao,delimiters:uo},no===globalMap[no]),{type:"internal",mode:to.mode}}});defineFunction({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(eo){var{parser:to,funcName:no}=eo,io=checkControlSequence(to.gullet.popToken());to.gullet.consumeSpaces();var so=getRHS(to);return letCommand(to,io,so,no==="\\\\globallet"),{type:"internal",mode:to.mode}}});defineFunction({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(eo){var{parser:to,funcName:no}=eo,io=checkControlSequence(to.gullet.popToken()),so=to.gullet.popToken(),ao=to.gullet.popToken();return letCommand(to,io,ao,no==="\\\\globalfuture"),to.gullet.pushToken(ao),to.gullet.pushToken(so),{type:"internal",mode:to.mode}}});var getMetrics=function eo(to,no,io){var so=symbols.math[to]&&symbols.math[to].replace,ao=getCharacterMetrics(so||to,no,io);if(!ao)throw new Error("Unsupported symbol "+to+" and font size "+no+".");return ao},styleWrap=function eo(to,no,io,so){var ao=io.havingBaseStyle(no),lo=buildCommon.makeSpan(so.concat(ao.sizingClasses(io)),[to],io),uo=ao.sizeMultiplier/io.sizeMultiplier;return lo.height*=uo,lo.depth*=uo,lo.maxFontSize=ao.sizeMultiplier,lo},centerSpan=function eo(to,no,io){var so=no.havingBaseStyle(io),ao=(1-no.sizeMultiplier/so.sizeMultiplier)*no.fontMetrics().axisHeight;to.classes.push("delimcenter"),to.style.top=makeEm(ao),to.height-=ao,to.depth+=ao},makeSmallDelim=function eo(to,no,io,so,ao,lo){var uo=buildCommon.makeSymbol(to,"Main-Regular",ao,so),ho=styleWrap(uo,no,so,lo);return io&¢erSpan(ho,so,no),ho},mathrmSize=function eo(to,no,io,so){return buildCommon.makeSymbol(to,"Size"+no+"-Regular",io,so)},makeLargeDelim=function eo(to,no,io,so,ao,lo){var uo=mathrmSize(to,no,ao,so),ho=styleWrap(buildCommon.makeSpan(["delimsizing","size"+no],[uo],so),Style$1$1.TEXT,so,lo);return io&¢erSpan(ho,so,Style$1$1.TEXT),ho},makeGlyphSpan=function eo(to,no,io){var so;no==="Size1-Regular"?so="delim-size1":so="delim-size4";var ao=buildCommon.makeSpan(["delimsizinginner",so],[buildCommon.makeSpan([],[buildCommon.makeSymbol(to,no,io)])]);return{type:"elem",elem:ao}},makeInner=function eo(to,no,io){var so=fontMetricsData["Size4-Regular"][to.charCodeAt(0)]?fontMetricsData["Size4-Regular"][to.charCodeAt(0)][4]:fontMetricsData["Size1-Regular"][to.charCodeAt(0)][4],ao=new PathNode("inner",innerPath(to,Math.round(1e3*no))),lo=new SvgNode([ao],{width:makeEm(so),height:makeEm(no),style:"width:"+makeEm(so),viewBox:"0 0 "+1e3*so+" "+Math.round(1e3*no),preserveAspectRatio:"xMinYMin"}),uo=buildCommon.makeSvgSpan([],[lo],io);return uo.height=no,uo.style.height=makeEm(no),uo.style.width=makeEm(so),{type:"elem",elem:uo}},lapInEms=.008,lap={type:"kern",size:-1*lapInEms},verts=["|","\\lvert","\\rvert","\\vert"],doubleVerts=["\\|","\\lVert","\\rVert","\\Vert"],makeStackedDelim=function eo(to,no,io,so,ao,lo){var uo,ho,go,mo,yo="",So=0;uo=go=mo=to,ho=null;var _o="Size1-Regular";to==="\\uparrow"?go=mo="⏐":to==="\\Uparrow"?go=mo="‖":to==="\\downarrow"?uo=go="⏐":to==="\\Downarrow"?uo=go="‖":to==="\\updownarrow"?(uo="\\uparrow",go="⏐",mo="\\downarrow"):to==="\\Updownarrow"?(uo="\\Uparrow",go="‖",mo="\\Downarrow"):utils.contains(verts,to)?(go="∣",yo="vert",So=333):utils.contains(doubleVerts,to)?(go="∥",yo="doublevert",So=556):to==="["||to==="\\lbrack"?(uo="⎡",go="⎢",mo="⎣",_o="Size4-Regular",yo="lbrack",So=667):to==="]"||to==="\\rbrack"?(uo="⎤",go="⎥",mo="⎦",_o="Size4-Regular",yo="rbrack",So=667):to==="\\lfloor"||to==="⌊"?(go=uo="⎢",mo="⎣",_o="Size4-Regular",yo="lfloor",So=667):to==="\\lceil"||to==="⌈"?(uo="⎡",go=mo="⎢",_o="Size4-Regular",yo="lceil",So=667):to==="\\rfloor"||to==="⌋"?(go=uo="⎥",mo="⎦",_o="Size4-Regular",yo="rfloor",So=667):to==="\\rceil"||to==="⌉"?(uo="⎤",go=mo="⎥",_o="Size4-Regular",yo="rceil",So=667):to==="("||to==="\\lparen"?(uo="⎛",go="⎜",mo="⎝",_o="Size4-Regular",yo="lparen",So=875):to===")"||to==="\\rparen"?(uo="⎞",go="⎟",mo="⎠",_o="Size4-Regular",yo="rparen",So=875):to==="\\{"||to==="\\lbrace"?(uo="⎧",ho="⎨",mo="⎩",go="⎪",_o="Size4-Regular"):to==="\\}"||to==="\\rbrace"?(uo="⎫",ho="⎬",mo="⎭",go="⎪",_o="Size4-Regular"):to==="\\lgroup"||to==="⟮"?(uo="⎧",mo="⎩",go="⎪",_o="Size4-Regular"):to==="\\rgroup"||to==="⟯"?(uo="⎫",mo="⎭",go="⎪",_o="Size4-Regular"):to==="\\lmoustache"||to==="⎰"?(uo="⎧",mo="⎭",go="⎪",_o="Size4-Regular"):(to==="\\rmoustache"||to==="⎱")&&(uo="⎫",mo="⎩",go="⎪",_o="Size4-Regular");var ko=getMetrics(uo,_o,ao),Co=ko.height+ko.depth,$o=getMetrics(go,_o,ao),Ro=$o.height+$o.depth,Oo=getMetrics(mo,_o,ao),No=Oo.height+Oo.depth,Mo=0,Bo=1;if(ho!==null){var Fo=getMetrics(ho,_o,ao);Mo=Fo.height+Fo.depth,Bo=2}var Lo=Co+No+Mo,Go=Math.max(0,Math.ceil((no-Lo)/(Bo*Ro))),Do=Lo+Go*Bo*Ro,Uo=so.fontMetrics().axisHeight;io&&(Uo*=so.sizeMultiplier);var Ho=Do/2-Uo,Yo=[];if(yo.length>0){var qo=Do-Co-No,Jo=Math.round(Do*1e3),ps=tallDelim(yo,Math.round(qo*1e3)),Qo=new PathNode(yo,ps),hs=(So/1e3).toFixed(3)+"em",gs=(Jo/1e3).toFixed(3)+"em",ys=new SvgNode([Qo],{width:hs,height:gs,viewBox:"0 0 "+So+" "+Jo}),vs=buildCommon.makeSvgSpan([],[ys],so);vs.height=Jo/1e3,vs.style.width=hs,vs.style.height=gs,Yo.push({type:"elem",elem:vs})}else{if(Yo.push(makeGlyphSpan(mo,_o,ao)),Yo.push(lap),ho===null){var ks=Do-Co-No+2*lapInEms;Yo.push(makeInner(go,ks,so))}else{var Os=(Do-Co-No-Mo)/2+2*lapInEms;Yo.push(makeInner(go,Os,so)),Yo.push(lap),Yo.push(makeGlyphSpan(ho,_o,ao)),Yo.push(lap),Yo.push(makeInner(go,Os,so))}Yo.push(lap),Yo.push(makeGlyphSpan(uo,_o,ao))}var Ts=so.havingBaseStyle(Style$1$1.TEXT),Xs=buildCommon.makeVList({positionType:"bottom",positionData:Ho,children:Yo},Ts);return styleWrap(buildCommon.makeSpan(["delimsizing","mult"],[Xs],Ts),Style$1$1.TEXT,so,lo)},vbPad=80,emPad=.08,sqrtSvg=function eo(to,no,io,so,ao){var lo=sqrtPath(to,so,io),uo=new PathNode(to,lo),ho=new SvgNode([uo],{width:"400em",height:makeEm(no),viewBox:"0 0 400000 "+io,preserveAspectRatio:"xMinYMin slice"});return buildCommon.makeSvgSpan(["hide-tail"],[ho],ao)},makeSqrtImage=function eo(to,no){var io=no.havingBaseSizing(),so=traverseSequence("\\surd",to*io.sizeMultiplier,stackLargeDelimiterSequence,io),ao=io.sizeMultiplier,lo=Math.max(0,no.minRuleThickness-no.fontMetrics().sqrtRuleThickness),uo,ho=0,go=0,mo=0,yo;return so.type==="small"?(mo=1e3+1e3*lo+vbPad,to<1?ao=1:to<1.4&&(ao=.7),ho=(1+lo+emPad)/ao,go=(1+lo)/ao,uo=sqrtSvg("sqrtMain",ho,mo,lo,no),uo.style.minWidth="0.853em",yo=.833/ao):so.type==="large"?(mo=(1e3+vbPad)*sizeToMaxHeight[so.size],go=(sizeToMaxHeight[so.size]+lo)/ao,ho=(sizeToMaxHeight[so.size]+lo+emPad)/ao,uo=sqrtSvg("sqrtSize"+so.size,ho,mo,lo,no),uo.style.minWidth="1.02em",yo=1/ao):(ho=to+lo+emPad,go=to+lo,mo=Math.floor(1e3*to+lo)+vbPad,uo=sqrtSvg("sqrtTall",ho,mo,lo,no),uo.style.minWidth="0.742em",yo=1.056),uo.height=go,uo.style.height=makeEm(ho),{span:uo,advanceWidth:yo,ruleWidth:(no.fontMetrics().sqrtRuleThickness+lo)*ao}},stackLargeDelimiters=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],stackAlwaysDelimiters=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],stackNeverDelimiters=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],sizeToMaxHeight=[0,1.2,1.8,2.4,3],makeSizedDelim=function eo(to,no,io,so,ao){if(to==="<"||to==="\\lt"||to==="⟨"?to="\\langle":(to===">"||to==="\\gt"||to==="⟩")&&(to="\\rangle"),utils.contains(stackLargeDelimiters,to)||utils.contains(stackNeverDelimiters,to))return makeLargeDelim(to,no,!1,io,so,ao);if(utils.contains(stackAlwaysDelimiters,to))return makeStackedDelim(to,sizeToMaxHeight[no],!1,io,so,ao);throw new ParseError("Illegal delimiter: '"+to+"'")},stackNeverDelimiterSequence=[{type:"small",style:Style$1$1.SCRIPTSCRIPT},{type:"small",style:Style$1$1.SCRIPT},{type:"small",style:Style$1$1.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],stackAlwaysDelimiterSequence=[{type:"small",style:Style$1$1.SCRIPTSCRIPT},{type:"small",style:Style$1$1.SCRIPT},{type:"small",style:Style$1$1.TEXT},{type:"stack"}],stackLargeDelimiterSequence=[{type:"small",style:Style$1$1.SCRIPTSCRIPT},{type:"small",style:Style$1$1.SCRIPT},{type:"small",style:Style$1$1.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],delimTypeToFont=function eo(to){if(to.type==="small")return"Main-Regular";if(to.type==="large")return"Size"+to.size+"-Regular";if(to.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+to.type+"' here.")},traverseSequence=function eo(to,no,io,so){for(var ao=Math.min(2,3-so.style.size),lo=ao;lono)return io[lo]}return io[io.length-1]},makeCustomSizedDelim=function eo(to,no,io,so,ao,lo){to==="<"||to==="\\lt"||to==="⟨"?to="\\langle":(to===">"||to==="\\gt"||to==="⟩")&&(to="\\rangle");var uo;utils.contains(stackNeverDelimiters,to)?uo=stackNeverDelimiterSequence:utils.contains(stackLargeDelimiters,to)?uo=stackLargeDelimiterSequence:uo=stackAlwaysDelimiterSequence;var ho=traverseSequence(to,no,uo,so);return ho.type==="small"?makeSmallDelim(to,ho.style,io,so,ao,lo):ho.type==="large"?makeLargeDelim(to,ho.size,io,so,ao,lo):makeStackedDelim(to,no,io,so,ao,lo)},makeLeftRightDelim=function eo(to,no,io,so,ao,lo){var uo=so.fontMetrics().axisHeight*so.sizeMultiplier,ho=901,go=5/so.fontMetrics().ptPerEm,mo=Math.max(no-uo,io+uo),yo=Math.max(mo/500*ho,2*mo-go);return makeCustomSizedDelim(to,yo,!0,so,ao,lo)},delimiter={sqrtImage:makeSqrtImage,sizedDelim:makeSizedDelim,sizeToMaxHeight,customSizedDelim:makeCustomSizedDelim,leftRightDelim:makeLeftRightDelim},delimiterSizes={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},delimiters=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function checkDelimiter(eo,to){var no=checkSymbolNodeType(eo);if(no&&utils.contains(delimiters,no.text))return no;throw no?new ParseError("Invalid delimiter '"+no.text+"' after '"+to.funcName+"'",eo):new ParseError("Invalid delimiter type '"+eo.type+"'",eo)}defineFunction({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(eo,to)=>{var no=checkDelimiter(to[0],eo);return{type:"delimsizing",mode:eo.parser.mode,size:delimiterSizes[eo.funcName].size,mclass:delimiterSizes[eo.funcName].mclass,delim:no.text}},htmlBuilder:(eo,to)=>eo.delim==="."?buildCommon.makeSpan([eo.mclass]):delimiter.sizedDelim(eo.delim,eo.size,to,eo.mode,[eo.mclass]),mathmlBuilder:eo=>{var to=[];eo.delim!=="."&&to.push(makeText(eo.delim,eo.mode));var no=new mathMLTree.MathNode("mo",to);eo.mclass==="mopen"||eo.mclass==="mclose"?no.setAttribute("fence","true"):no.setAttribute("fence","false"),no.setAttribute("stretchy","true");var io=makeEm(delimiter.sizeToMaxHeight[eo.size]);return no.setAttribute("minsize",io),no.setAttribute("maxsize",io),no}});function assertParsed(eo){if(!eo.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}defineFunction({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(eo,to)=>{var no=eo.parser.gullet.macros.get("\\current@color");if(no&&typeof no!="string")throw new ParseError("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:eo.parser.mode,delim:checkDelimiter(to[0],eo).text,color:no}}});defineFunction({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(eo,to)=>{var no=checkDelimiter(to[0],eo),io=eo.parser;++io.leftrightDepth;var so=io.parseExpression(!1);--io.leftrightDepth,io.expect("\\right",!1);var ao=assertNodeType(io.parseFunction(),"leftright-right");return{type:"leftright",mode:io.mode,body:so,left:no.text,right:ao.delim,rightColor:ao.color}},htmlBuilder:(eo,to)=>{assertParsed(eo);for(var no=buildExpression$1(eo.body,to,!0,["mopen","mclose"]),io=0,so=0,ao=!1,lo=0;lo{assertParsed(eo);var no=buildExpression(eo.body,to);if(eo.left!=="."){var io=new mathMLTree.MathNode("mo",[makeText(eo.left,eo.mode)]);io.setAttribute("fence","true"),no.unshift(io)}if(eo.right!=="."){var so=new mathMLTree.MathNode("mo",[makeText(eo.right,eo.mode)]);so.setAttribute("fence","true"),eo.rightColor&&so.setAttribute("mathcolor",eo.rightColor),no.push(so)}return makeRow(no)}});defineFunction({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(eo,to)=>{var no=checkDelimiter(to[0],eo);if(!eo.parser.leftrightDepth)throw new ParseError("\\middle without preceding \\left",no);return{type:"middle",mode:eo.parser.mode,delim:no.text}},htmlBuilder:(eo,to)=>{var no;if(eo.delim===".")no=makeNullDelimiter(to,[]);else{no=delimiter.sizedDelim(eo.delim,1,to,eo.mode,[]);var io={delim:eo.delim,options:to};no.isMiddle=io}return no},mathmlBuilder:(eo,to)=>{var no=eo.delim==="\\vert"||eo.delim==="|"?makeText("|","text"):makeText(eo.delim,eo.mode),io=new mathMLTree.MathNode("mo",[no]);return io.setAttribute("fence","true"),io.setAttribute("lspace","0.05em"),io.setAttribute("rspace","0.05em"),io}});var htmlBuilder$7=(eo,to)=>{var no=buildCommon.wrapFragment(buildGroup$1(eo.body,to),to),io=eo.label.slice(1),so=to.sizeMultiplier,ao,lo=0,uo=utils.isCharacterBox(eo.body);if(io==="sout")ao=buildCommon.makeSpan(["stretchy","sout"]),ao.height=to.fontMetrics().defaultRuleThickness/so,lo=-.5*to.fontMetrics().xHeight;else if(io==="phase"){var ho=calculateSize({number:.6,unit:"pt"},to),go=calculateSize({number:.35,unit:"ex"},to),mo=to.havingBaseSizing();so=so/mo.sizeMultiplier;var yo=no.height+no.depth+ho+go;no.style.paddingLeft=makeEm(yo/2+ho);var So=Math.floor(1e3*yo*so),_o=phasePath(So),ko=new SvgNode([new PathNode("phase",_o)],{width:"400em",height:makeEm(So/1e3),viewBox:"0 0 400000 "+So,preserveAspectRatio:"xMinYMin slice"});ao=buildCommon.makeSvgSpan(["hide-tail"],[ko],to),ao.style.height=makeEm(yo),lo=no.depth+ho+go}else{/cancel/.test(io)?uo||no.classes.push("cancel-pad"):io==="angl"?no.classes.push("anglpad"):no.classes.push("boxpad");var Co=0,$o=0,Ro=0;/box/.test(io)?(Ro=Math.max(to.fontMetrics().fboxrule,to.minRuleThickness),Co=to.fontMetrics().fboxsep+(io==="colorbox"?0:Ro),$o=Co):io==="angl"?(Ro=Math.max(to.fontMetrics().defaultRuleThickness,to.minRuleThickness),Co=4*Ro,$o=Math.max(0,.25-no.depth)):(Co=uo?.2:0,$o=Co),ao=stretchy.encloseSpan(no,io,Co,$o,to),/fbox|boxed|fcolorbox/.test(io)?(ao.style.borderStyle="solid",ao.style.borderWidth=makeEm(Ro)):io==="angl"&&Ro!==.049&&(ao.style.borderTopWidth=makeEm(Ro),ao.style.borderRightWidth=makeEm(Ro)),lo=no.depth+$o,eo.backgroundColor&&(ao.style.backgroundColor=eo.backgroundColor,eo.borderColor&&(ao.style.borderColor=eo.borderColor))}var Oo;if(eo.backgroundColor)Oo=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ao,shift:lo},{type:"elem",elem:no,shift:0}]},to);else{var No=/cancel|phase/.test(io)?["svg-align"]:[];Oo=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:no,shift:0},{type:"elem",elem:ao,shift:lo,wrapperClasses:No}]},to)}return/cancel/.test(io)&&(Oo.height=no.height,Oo.depth=no.depth),/cancel/.test(io)&&!uo?buildCommon.makeSpan(["mord","cancel-lap"],[Oo],to):buildCommon.makeSpan(["mord"],[Oo],to)},mathmlBuilder$6=(eo,to)=>{var no=0,io=new mathMLTree.MathNode(eo.label.indexOf("colorbox")>-1?"mpadded":"menclose",[buildGroup(eo.body,to)]);switch(eo.label){case"\\cancel":io.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":io.setAttribute("notation","downdiagonalstrike");break;case"\\phase":io.setAttribute("notation","phasorangle");break;case"\\sout":io.setAttribute("notation","horizontalstrike");break;case"\\fbox":io.setAttribute("notation","box");break;case"\\angl":io.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(no=to.fontMetrics().fboxsep*to.fontMetrics().ptPerEm,io.setAttribute("width","+"+2*no+"pt"),io.setAttribute("height","+"+2*no+"pt"),io.setAttribute("lspace",no+"pt"),io.setAttribute("voffset",no+"pt"),eo.label==="\\fcolorbox"){var so=Math.max(to.fontMetrics().fboxrule,to.minRuleThickness);io.setAttribute("style","border: "+so+"em solid "+String(eo.borderColor))}break;case"\\xcancel":io.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return eo.backgroundColor&&io.setAttribute("mathbackground",eo.backgroundColor),io};defineFunction({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(eo,to,no){var{parser:io,funcName:so}=eo,ao=assertNodeType(to[0],"color-token").color,lo=to[1];return{type:"enclose",mode:io.mode,label:so,backgroundColor:ao,body:lo}},htmlBuilder:htmlBuilder$7,mathmlBuilder:mathmlBuilder$6});defineFunction({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(eo,to,no){var{parser:io,funcName:so}=eo,ao=assertNodeType(to[0],"color-token").color,lo=assertNodeType(to[1],"color-token").color,uo=to[2];return{type:"enclose",mode:io.mode,label:so,backgroundColor:lo,borderColor:ao,body:uo}},htmlBuilder:htmlBuilder$7,mathmlBuilder:mathmlBuilder$6});defineFunction({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(eo,to){var{parser:no}=eo;return{type:"enclose",mode:no.mode,label:"\\fbox",body:to[0]}}});defineFunction({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(eo,to){var{parser:no,funcName:io}=eo,so=to[0];return{type:"enclose",mode:no.mode,label:io,body:so}},htmlBuilder:htmlBuilder$7,mathmlBuilder:mathmlBuilder$6});defineFunction({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(eo,to){var{parser:no}=eo;return{type:"enclose",mode:no.mode,label:"\\angl",body:to[0]}}});var _environments={};function defineEnvironment(eo){for(var{type:to,names:no,props:io,handler:so,htmlBuilder:ao,mathmlBuilder:lo}=eo,uo={type:to,numArgs:io.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:so},ho=0;ho{var to=eo.parser.settings;if(!to.displayMode)throw new ParseError("{"+eo.envName+"} can be used only in display mode.")};function getAutoTag(eo){if(eo.indexOf("ed")===-1)return eo.indexOf("*")===-1}function parseArray(eo,to,no){var{hskipBeforeAndAfter:io,addJot:so,cols:ao,arraystretch:lo,colSeparationType:uo,autoTag:ho,singleRow:go,emptySingleRow:mo,maxNumCols:yo,leqno:So}=to;if(eo.gullet.beginGroup(),go||eo.gullet.macros.set("\\cr","\\\\\\relax"),!lo){var _o=eo.gullet.expandMacroAsText("\\arraystretch");if(_o==null)lo=1;else if(lo=parseFloat(_o),!lo||lo<0)throw new ParseError("Invalid \\arraystretch: "+_o)}eo.gullet.beginGroup();var ko=[],Co=[ko],$o=[],Ro=[],Oo=ho!=null?[]:void 0;function No(){ho&&eo.gullet.macros.set("\\@eqnsw","1",!0)}function Mo(){Oo&&(eo.gullet.macros.get("\\df@tag")?(Oo.push(eo.subparse([new Token("\\df@tag")])),eo.gullet.macros.set("\\df@tag",void 0,!0)):Oo.push(!!ho&&eo.gullet.macros.get("\\@eqnsw")==="1"))}for(No(),Ro.push(getHLines(eo));;){var Bo=eo.parseExpression(!1,go?"\\end":"\\\\");eo.gullet.endGroup(),eo.gullet.beginGroup(),Bo={type:"ordgroup",mode:eo.mode,body:Bo},no&&(Bo={type:"styling",mode:eo.mode,style:no,body:[Bo]}),ko.push(Bo);var Fo=eo.fetch().text;if(Fo==="&"){if(yo&&ko.length===yo){if(go||uo)throw new ParseError("Too many tab characters: &",eo.nextToken);eo.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}eo.consume()}else if(Fo==="\\end"){Mo(),ko.length===1&&Bo.type==="styling"&&Bo.body[0].body.length===0&&(Co.length>1||!mo)&&Co.pop(),Ro.length0&&(No+=.25),go.push({pos:No,isDashed:Fu[ju]})}for(Mo(lo[0]),io=0;io0&&(Ho+=Oo,LoFu))for(io=0;io=uo)){var qs=void 0;(so>0||to.hskipBeforeAndAfter)&&(qs=utils.deflt(Os.pregap,So),qs!==0&&(ps=buildCommon.makeSpan(["arraycolsep"],[]),ps.style.width=makeEm(qs),Jo.push(ps)));var ga=[];for(io=0;io0){for(var El=buildCommon.makeLineSpan("hline",no,mo),yl=buildCommon.makeLineSpan("hdashline",no,mo),Gl=[{type:"elem",elem:ho,shift:0}];go.length>0;){var Qs=go.pop(),du=Qs.pos-Yo;Qs.isDashed?Gl.push({type:"elem",elem:yl,shift:du}):Gl.push({type:"elem",elem:El,shift:du})}ho=buildCommon.makeVList({positionType:"individualShift",children:Gl},no)}if(hs.length===0)return buildCommon.makeSpan(["mord"],[ho],no);var Ol=buildCommon.makeVList({positionType:"individualShift",children:hs},no);return Ol=buildCommon.makeSpan(["tag"],[Ol],no),buildCommon.makeFragment([ho,Ol])},alignMap={c:"center ",l:"left ",r:"right "},mathmlBuilder$5=function eo(to,no){for(var io=[],so=new mathMLTree.MathNode("mtd",[],["mtr-glue"]),ao=new mathMLTree.MathNode("mtd",[],["mml-eqn-num"]),lo=0;lo0){var ko=to.cols,Co="",$o=!1,Ro=0,Oo=ko.length;ko[0].type==="separator"&&(So+="top ",Ro=1),ko[ko.length-1].type==="separator"&&(So+="bottom ",Oo-=1);for(var No=Ro;No0?"left ":"",So+=Go[Go.length-1].length>0?"right ":"";for(var Do=1;Do-1?"alignat":"align",ao=to.envName==="split",lo=parseArray(to.parser,{cols:io,addJot:!0,autoTag:ao?void 0:getAutoTag(to.envName),emptySingleRow:!0,colSeparationType:so,maxNumCols:ao?2:void 0,leqno:to.parser.settings.leqno},"display"),uo,ho=0,go={type:"ordgroup",mode:to.mode,body:[]};if(no[0]&&no[0].type==="ordgroup"){for(var mo="",yo=0;yo0&&_o&&($o=1),io[ko]={type:"align",align:Co,pregap:$o,postgap:0}}return lo.colSeparationType=_o?"align":"alignat",lo};defineEnvironment({type:"array",names:["array","darray"],props:{numArgs:1},handler(eo,to){var no=checkSymbolNodeType(to[0]),io=no?[to[0]]:assertNodeType(to[0],"ordgroup").body,so=io.map(function(lo){var uo=assertSymbolNodeType(lo),ho=uo.text;if("lcr".indexOf(ho)!==-1)return{type:"align",align:ho};if(ho==="|")return{type:"separator",separator:"|"};if(ho===":")return{type:"separator",separator:":"};throw new ParseError("Unknown column alignment: "+ho,lo)}),ao={cols:so,hskipBeforeAndAfter:!0,maxNumCols:so.length};return parseArray(eo.parser,ao,dCellStyle(eo.envName))},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(eo){var to={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[eo.envName.replace("*","")],no="c",io={hskipBeforeAndAfter:!1,cols:[{type:"align",align:no}]};if(eo.envName.charAt(eo.envName.length-1)==="*"){var so=eo.parser;if(so.consumeSpaces(),so.fetch().text==="["){if(so.consume(),so.consumeSpaces(),no=so.fetch().text,"lcr".indexOf(no)===-1)throw new ParseError("Expected l or c or r",so.nextToken);so.consume(),so.consumeSpaces(),so.expect("]"),so.consume(),io.cols=[{type:"align",align:no}]}}var ao=parseArray(eo.parser,io,dCellStyle(eo.envName)),lo=Math.max(0,...ao.body.map(uo=>uo.length));return ao.cols=new Array(lo).fill({type:"align",align:no}),to?{type:"leftright",mode:eo.mode,body:[ao],left:to[0],right:to[1],rightColor:void 0}:ao},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(eo){var to={arraystretch:.5},no=parseArray(eo.parser,to,"script");return no.colSeparationType="small",no},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["subarray"],props:{numArgs:1},handler(eo,to){var no=checkSymbolNodeType(to[0]),io=no?[to[0]]:assertNodeType(to[0],"ordgroup").body,so=io.map(function(lo){var uo=assertSymbolNodeType(lo),ho=uo.text;if("lc".indexOf(ho)!==-1)return{type:"align",align:ho};throw new ParseError("Unknown column alignment: "+ho,lo)});if(so.length>1)throw new ParseError("{subarray} can contain only one column");var ao={cols:so,hskipBeforeAndAfter:!1,arraystretch:.5};if(ao=parseArray(eo.parser,ao,"script"),ao.body.length>0&&ao.body[0].length>1)throw new ParseError("{subarray} can contain only one column");return ao},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(eo){var to={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},no=parseArray(eo.parser,to,dCellStyle(eo.envName));return{type:"leftright",mode:eo.mode,body:[no],left:eo.envName.indexOf("r")>-1?".":"\\{",right:eo.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:alignedHandler,htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(eo){utils.contains(["gather","gather*"],eo.envName)&&validateAmsEnvironmentContext(eo);var to={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:getAutoTag(eo.envName),emptySingleRow:!0,leqno:eo.parser.settings.leqno};return parseArray(eo.parser,to,"display")},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:alignedHandler,htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(eo){validateAmsEnvironmentContext(eo);var to={autoTag:getAutoTag(eo.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:eo.parser.settings.leqno};return parseArray(eo.parser,to,"display")},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineEnvironment({type:"array",names:["CD"],props:{numArgs:0},handler(eo){return validateAmsEnvironmentContext(eo),parseCD(eo.parser)},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5});defineMacro("\\nonumber","\\gdef\\@eqnsw{0}");defineMacro("\\notag","\\nonumber");defineFunction({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(eo,to){throw new ParseError(eo.funcName+" valid only within array environment")}});var environments=_environments;defineFunction({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(eo,to){var{parser:no,funcName:io}=eo,so=to[0];if(so.type!=="ordgroup")throw new ParseError("Invalid environment name",so);for(var ao="",lo=0;lo{var no=eo.font,io=to.withFont(no);return buildGroup$1(eo.body,io)},mathmlBuilder$4=(eo,to)=>{var no=eo.font,io=to.withFont(no);return buildGroup(eo.body,io)},fontAliases={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};defineFunction({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=normalizeArgument(to[0]),ao=io;return ao in fontAliases&&(ao=fontAliases[ao]),{type:"font",mode:no.mode,font:ao.slice(1),body:so}},htmlBuilder:htmlBuilder$5,mathmlBuilder:mathmlBuilder$4});defineFunction({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(eo,to)=>{var{parser:no}=eo,io=to[0],so=utils.isCharacterBox(io);return{type:"mclass",mode:no.mode,mclass:binrelClass(io),body:[{type:"font",mode:no.mode,font:"boldsymbol",body:io}],isCharacterBox:so}}});defineFunction({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(eo,to)=>{var{parser:no,funcName:io,breakOnTokenText:so}=eo,{mode:ao}=no,lo=no.parseExpression(!0,so),uo="math"+io.slice(1);return{type:"font",mode:ao,font:uo,body:{type:"ordgroup",mode:no.mode,body:lo}}},htmlBuilder:htmlBuilder$5,mathmlBuilder:mathmlBuilder$4});var adjustStyle=(eo,to)=>{var no=to;return eo==="display"?no=no.id>=Style$1$1.SCRIPT.id?no.text():Style$1$1.DISPLAY:eo==="text"&&no.size===Style$1$1.DISPLAY.size?no=Style$1$1.TEXT:eo==="script"?no=Style$1$1.SCRIPT:eo==="scriptscript"&&(no=Style$1$1.SCRIPTSCRIPT),no},htmlBuilder$4=(eo,to)=>{var no=adjustStyle(eo.size,to.style),io=no.fracNum(),so=no.fracDen(),ao;ao=to.havingStyle(io);var lo=buildGroup$1(eo.numer,ao,to);if(eo.continued){var uo=8.5/to.fontMetrics().ptPerEm,ho=3.5/to.fontMetrics().ptPerEm;lo.height=lo.height0?ko=3*So:ko=7*So,Co=to.fontMetrics().denom1):(yo>0?(_o=to.fontMetrics().num2,ko=So):(_o=to.fontMetrics().num3,ko=3*So),Co=to.fontMetrics().denom2);var $o;if(mo){var Oo=to.fontMetrics().axisHeight;_o-lo.depth-(Oo+.5*yo){var no=new mathMLTree.MathNode("mfrac",[buildGroup(eo.numer,to),buildGroup(eo.denom,to)]);if(!eo.hasBarLine)no.setAttribute("linethickness","0px");else if(eo.barSize){var io=calculateSize(eo.barSize,to);no.setAttribute("linethickness",makeEm(io))}var so=adjustStyle(eo.size,to.style);if(so.size!==to.style.size){no=new mathMLTree.MathNode("mstyle",[no]);var ao=so.size===Style$1$1.DISPLAY.size?"true":"false";no.setAttribute("displaystyle",ao),no.setAttribute("scriptlevel","0")}if(eo.leftDelim!=null||eo.rightDelim!=null){var lo=[];if(eo.leftDelim!=null){var uo=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode(eo.leftDelim.replace("\\",""))]);uo.setAttribute("fence","true"),lo.push(uo)}if(lo.push(no),eo.rightDelim!=null){var ho=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode(eo.rightDelim.replace("\\",""))]);ho.setAttribute("fence","true"),lo.push(ho)}return makeRow(lo)}return no};defineFunction({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=to[0],ao=to[1],lo,uo=null,ho=null,go="auto";switch(io){case"\\dfrac":case"\\frac":case"\\tfrac":lo=!0;break;case"\\\\atopfrac":lo=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":lo=!1,uo="(",ho=")";break;case"\\\\bracefrac":lo=!1,uo="\\{",ho="\\}";break;case"\\\\brackfrac":lo=!1,uo="[",ho="]";break;default:throw new Error("Unrecognized genfrac command")}switch(io){case"\\dfrac":case"\\dbinom":go="display";break;case"\\tfrac":case"\\tbinom":go="text";break}return{type:"genfrac",mode:no.mode,continued:!1,numer:so,denom:ao,hasBarLine:lo,leftDelim:uo,rightDelim:ho,size:go,barSize:null}},htmlBuilder:htmlBuilder$4,mathmlBuilder:mathmlBuilder$3});defineFunction({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=to[0],ao=to[1];return{type:"genfrac",mode:no.mode,continued:!0,numer:so,denom:ao,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});defineFunction({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(eo){var{parser:to,funcName:no,token:io}=eo,so;switch(no){case"\\over":so="\\frac";break;case"\\choose":so="\\binom";break;case"\\atop":so="\\\\atopfrac";break;case"\\brace":so="\\\\bracefrac";break;case"\\brack":so="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:to.mode,replaceWith:so,token:io}}});var stylArray=["display","text","script","scriptscript"],delimFromValue=function eo(to){var no=null;return to.length>0&&(no=to,no=no==="."?null:no),no};defineFunction({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(eo,to){var{parser:no}=eo,io=to[4],so=to[5],ao=normalizeArgument(to[0]),lo=ao.type==="atom"&&ao.family==="open"?delimFromValue(ao.text):null,uo=normalizeArgument(to[1]),ho=uo.type==="atom"&&uo.family==="close"?delimFromValue(uo.text):null,go=assertNodeType(to[2],"size"),mo,yo=null;go.isBlank?mo=!0:(yo=go.value,mo=yo.number>0);var So="auto",_o=to[3];if(_o.type==="ordgroup"){if(_o.body.length>0){var ko=assertNodeType(_o.body[0],"textord");So=stylArray[Number(ko.text)]}}else _o=assertNodeType(_o,"textord"),So=stylArray[Number(_o.text)];return{type:"genfrac",mode:no.mode,numer:io,denom:so,continued:!1,hasBarLine:mo,barSize:yo,leftDelim:lo,rightDelim:ho,size:So}},htmlBuilder:htmlBuilder$4,mathmlBuilder:mathmlBuilder$3});defineFunction({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(eo,to){var{parser:no,funcName:io,token:so}=eo;return{type:"infix",mode:no.mode,replaceWith:"\\\\abovefrac",size:assertNodeType(to[0],"size").value,token:so}}});defineFunction({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=to[0],ao=assert(assertNodeType(to[1],"infix").size),lo=to[2],uo=ao.number>0;return{type:"genfrac",mode:no.mode,numer:so,denom:lo,continued:!1,hasBarLine:uo,barSize:ao,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:htmlBuilder$4,mathmlBuilder:mathmlBuilder$3});var htmlBuilder$3=(eo,to)=>{var no=to.style,io,so;eo.type==="supsub"?(io=eo.sup?buildGroup$1(eo.sup,to.havingStyle(no.sup()),to):buildGroup$1(eo.sub,to.havingStyle(no.sub()),to),so=assertNodeType(eo.base,"horizBrace")):so=assertNodeType(eo,"horizBrace");var ao=buildGroup$1(so.base,to.havingBaseStyle(Style$1$1.DISPLAY)),lo=stretchy.svgSpan(so,to),uo;if(so.isOver?(uo=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ao},{type:"kern",size:.1},{type:"elem",elem:lo}]},to),uo.children[0].children[0].children[1].classes.push("svg-align")):(uo=buildCommon.makeVList({positionType:"bottom",positionData:ao.depth+.1+lo.height,children:[{type:"elem",elem:lo},{type:"kern",size:.1},{type:"elem",elem:ao}]},to),uo.children[0].children[0].children[0].classes.push("svg-align")),io){var ho=buildCommon.makeSpan(["mord",so.isOver?"mover":"munder"],[uo],to);so.isOver?uo=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ho},{type:"kern",size:.2},{type:"elem",elem:io}]},to):uo=buildCommon.makeVList({positionType:"bottom",positionData:ho.depth+.2+io.height+io.depth,children:[{type:"elem",elem:io},{type:"kern",size:.2},{type:"elem",elem:ho}]},to)}return buildCommon.makeSpan(["mord",so.isOver?"mover":"munder"],[uo],to)},mathmlBuilder$2=(eo,to)=>{var no=stretchy.mathMLnode(eo.label);return new mathMLTree.MathNode(eo.isOver?"mover":"munder",[buildGroup(eo.base,to),no])};defineFunction({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(eo,to){var{parser:no,funcName:io}=eo;return{type:"horizBrace",mode:no.mode,label:io,isOver:/^\\over/.test(io),base:to[0]}},htmlBuilder:htmlBuilder$3,mathmlBuilder:mathmlBuilder$2});defineFunction({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(eo,to)=>{var{parser:no}=eo,io=to[1],so=assertNodeType(to[0],"url").url;return no.settings.isTrusted({command:"\\href",url:so})?{type:"href",mode:no.mode,href:so,body:ordargument(io)}:no.formatUnsupportedCmd("\\href")},htmlBuilder:(eo,to)=>{var no=buildExpression$1(eo.body,to,!1);return buildCommon.makeAnchor(eo.href,[],no,to)},mathmlBuilder:(eo,to)=>{var no=buildExpressionRow(eo.body,to);return no instanceof MathNode||(no=new MathNode("mrow",[no])),no.setAttribute("href",eo.href),no}});defineFunction({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(eo,to)=>{var{parser:no}=eo,io=assertNodeType(to[0],"url").url;if(!no.settings.isTrusted({command:"\\url",url:io}))return no.formatUnsupportedCmd("\\url");for(var so=[],ao=0;ao{var{parser:no,funcName:io,token:so}=eo,ao=assertNodeType(to[0],"raw").string,lo=to[1];no.settings.strict&&no.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var uo,ho={};switch(io){case"\\htmlClass":ho.class=ao,uo={command:"\\htmlClass",class:ao};break;case"\\htmlId":ho.id=ao,uo={command:"\\htmlId",id:ao};break;case"\\htmlStyle":ho.style=ao,uo={command:"\\htmlStyle",style:ao};break;case"\\htmlData":{for(var go=ao.split(","),mo=0;mo{var no=buildExpression$1(eo.body,to,!1),io=["enclosing"];eo.attributes.class&&io.push(...eo.attributes.class.trim().split(/\s+/));var so=buildCommon.makeSpan(io,no,to);for(var ao in eo.attributes)ao!=="class"&&eo.attributes.hasOwnProperty(ao)&&so.setAttribute(ao,eo.attributes[ao]);return so},mathmlBuilder:(eo,to)=>buildExpressionRow(eo.body,to)});defineFunction({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(eo,to)=>{var{parser:no}=eo;return{type:"htmlmathml",mode:no.mode,html:ordargument(to[0]),mathml:ordargument(to[1])}},htmlBuilder:(eo,to)=>{var no=buildExpression$1(eo.html,to,!1);return buildCommon.makeFragment(no)},mathmlBuilder:(eo,to)=>buildExpressionRow(eo.mathml,to)});var sizeData=function eo(to){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(to))return{number:+to,unit:"bp"};var no=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(to);if(!no)throw new ParseError("Invalid size: '"+to+"' in \\includegraphics");var io={number:+(no[1]+no[2]),unit:no[3]};if(!validUnit(io))throw new ParseError("Invalid unit: '"+io.unit+"' in \\includegraphics.");return io};defineFunction({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(eo,to,no)=>{var{parser:io}=eo,so={number:0,unit:"em"},ao={number:.9,unit:"em"},lo={number:0,unit:"em"},uo="";if(no[0])for(var ho=assertNodeType(no[0],"raw").string,go=ho.split(","),mo=0;mo{var no=calculateSize(eo.height,to),io=0;eo.totalheight.number>0&&(io=calculateSize(eo.totalheight,to)-no);var so=0;eo.width.number>0&&(so=calculateSize(eo.width,to));var ao={height:makeEm(no+io)};so>0&&(ao.width=makeEm(so)),io>0&&(ao.verticalAlign=makeEm(-io));var lo=new Img(eo.src,eo.alt,ao);return lo.height=no,lo.depth=io,lo},mathmlBuilder:(eo,to)=>{var no=new mathMLTree.MathNode("mglyph",[]);no.setAttribute("alt",eo.alt);var io=calculateSize(eo.height,to),so=0;if(eo.totalheight.number>0&&(so=calculateSize(eo.totalheight,to)-io,no.setAttribute("valign",makeEm(-so))),no.setAttribute("height",makeEm(io+so)),eo.width.number>0){var ao=calculateSize(eo.width,to);no.setAttribute("width",makeEm(ao))}return no.setAttribute("src",eo.src),no}});defineFunction({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(eo,to){var{parser:no,funcName:io}=eo,so=assertNodeType(to[0],"size");if(no.settings.strict){var ao=io[1]==="m",lo=so.value.unit==="mu";ao?(lo||no.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+io+" supports only mu units, "+("not "+so.value.unit+" units")),no.mode!=="math"&&no.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+io+" works only in math mode")):lo&&no.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+io+" doesn't support mu units")}return{type:"kern",mode:no.mode,dimension:so.value}},htmlBuilder(eo,to){return buildCommon.makeGlue(eo.dimension,to)},mathmlBuilder(eo,to){var no=calculateSize(eo.dimension,to);return new mathMLTree.SpaceNode(no)}});defineFunction({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=to[0];return{type:"lap",mode:no.mode,alignment:io.slice(5),body:so}},htmlBuilder:(eo,to)=>{var no;eo.alignment==="clap"?(no=buildCommon.makeSpan([],[buildGroup$1(eo.body,to)]),no=buildCommon.makeSpan(["inner"],[no],to)):no=buildCommon.makeSpan(["inner"],[buildGroup$1(eo.body,to)]);var io=buildCommon.makeSpan(["fix"],[]),so=buildCommon.makeSpan([eo.alignment],[no,io],to),ao=buildCommon.makeSpan(["strut"]);return ao.style.height=makeEm(so.height+so.depth),so.depth&&(ao.style.verticalAlign=makeEm(-so.depth)),so.children.unshift(ao),so=buildCommon.makeSpan(["thinbox"],[so],to),buildCommon.makeSpan(["mord","vbox"],[so],to)},mathmlBuilder:(eo,to)=>{var no=new mathMLTree.MathNode("mpadded",[buildGroup(eo.body,to)]);if(eo.alignment!=="rlap"){var io=eo.alignment==="llap"?"-1":"-0.5";no.setAttribute("lspace",io+"width")}return no.setAttribute("width","0px"),no}});defineFunction({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(eo,to){var{funcName:no,parser:io}=eo,so=io.mode;io.switchMode("math");var ao=no==="\\("?"\\)":"$",lo=io.parseExpression(!1,ao);return io.expect(ao),io.switchMode(so),{type:"styling",mode:io.mode,style:"text",body:lo}}});defineFunction({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(eo,to){throw new ParseError("Mismatched "+eo.funcName)}});var chooseMathStyle=(eo,to)=>{switch(to.style.size){case Style$1$1.DISPLAY.size:return eo.display;case Style$1$1.TEXT.size:return eo.text;case Style$1$1.SCRIPT.size:return eo.script;case Style$1$1.SCRIPTSCRIPT.size:return eo.scriptscript;default:return eo.text}};defineFunction({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(eo,to)=>{var{parser:no}=eo;return{type:"mathchoice",mode:no.mode,display:ordargument(to[0]),text:ordargument(to[1]),script:ordargument(to[2]),scriptscript:ordargument(to[3])}},htmlBuilder:(eo,to)=>{var no=chooseMathStyle(eo,to),io=buildExpression$1(no,to,!1);return buildCommon.makeFragment(io)},mathmlBuilder:(eo,to)=>{var no=chooseMathStyle(eo,to);return buildExpressionRow(no,to)}});var assembleSupSub=(eo,to,no,io,so,ao,lo)=>{eo=buildCommon.makeSpan([],[eo]);var uo=no&&utils.isCharacterBox(no),ho,go;if(to){var mo=buildGroup$1(to,io.havingStyle(so.sup()),io);go={elem:mo,kern:Math.max(io.fontMetrics().bigOpSpacing1,io.fontMetrics().bigOpSpacing3-mo.depth)}}if(no){var yo=buildGroup$1(no,io.havingStyle(so.sub()),io);ho={elem:yo,kern:Math.max(io.fontMetrics().bigOpSpacing2,io.fontMetrics().bigOpSpacing4-yo.height)}}var So;if(go&&ho){var _o=io.fontMetrics().bigOpSpacing5+ho.elem.height+ho.elem.depth+ho.kern+eo.depth+lo;So=buildCommon.makeVList({positionType:"bottom",positionData:_o,children:[{type:"kern",size:io.fontMetrics().bigOpSpacing5},{type:"elem",elem:ho.elem,marginLeft:makeEm(-ao)},{type:"kern",size:ho.kern},{type:"elem",elem:eo},{type:"kern",size:go.kern},{type:"elem",elem:go.elem,marginLeft:makeEm(ao)},{type:"kern",size:io.fontMetrics().bigOpSpacing5}]},io)}else if(ho){var ko=eo.height-lo;So=buildCommon.makeVList({positionType:"top",positionData:ko,children:[{type:"kern",size:io.fontMetrics().bigOpSpacing5},{type:"elem",elem:ho.elem,marginLeft:makeEm(-ao)},{type:"kern",size:ho.kern},{type:"elem",elem:eo}]},io)}else if(go){var Co=eo.depth+lo;So=buildCommon.makeVList({positionType:"bottom",positionData:Co,children:[{type:"elem",elem:eo},{type:"kern",size:go.kern},{type:"elem",elem:go.elem,marginLeft:makeEm(ao)},{type:"kern",size:io.fontMetrics().bigOpSpacing5}]},io)}else return eo;var $o=[So];if(ho&&ao!==0&&!uo){var Ro=buildCommon.makeSpan(["mspace"],[],io);Ro.style.marginRight=makeEm(ao),$o.unshift(Ro)}return buildCommon.makeSpan(["mop","op-limits"],$o,io)},noSuccessor=["\\smallint"],htmlBuilder$2=(eo,to)=>{var no,io,so=!1,ao;eo.type==="supsub"?(no=eo.sup,io=eo.sub,ao=assertNodeType(eo.base,"op"),so=!0):ao=assertNodeType(eo,"op");var lo=to.style,uo=!1;lo.size===Style$1$1.DISPLAY.size&&ao.symbol&&!utils.contains(noSuccessor,ao.name)&&(uo=!0);var ho;if(ao.symbol){var go=uo?"Size2-Regular":"Size1-Regular",mo="";if((ao.name==="\\oiint"||ao.name==="\\oiiint")&&(mo=ao.name.slice(1),ao.name=mo==="oiint"?"\\iint":"\\iiint"),ho=buildCommon.makeSymbol(ao.name,go,"math",to,["mop","op-symbol",uo?"large-op":"small-op"]),mo.length>0){var yo=ho.italic,So=buildCommon.staticSvg(mo+"Size"+(uo?"2":"1"),to);ho=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ho,shift:0},{type:"elem",elem:So,shift:uo?.08:0}]},to),ao.name="\\"+mo,ho.classes.unshift("mop"),ho.italic=yo}}else if(ao.body){var _o=buildExpression$1(ao.body,to,!0);_o.length===1&&_o[0]instanceof SymbolNode?(ho=_o[0],ho.classes[0]="mop"):ho=buildCommon.makeSpan(["mop"],_o,to)}else{for(var ko=[],Co=1;Co{var no;if(eo.symbol)no=new MathNode("mo",[makeText(eo.name,eo.mode)]),utils.contains(noSuccessor,eo.name)&&no.setAttribute("largeop","false");else if(eo.body)no=new MathNode("mo",buildExpression(eo.body,to));else{no=new MathNode("mi",[new TextNode(eo.name.slice(1))]);var io=new MathNode("mo",[makeText("⁡","text")]);eo.parentIsSupSub?no=new MathNode("mrow",[no,io]):no=newDocumentFragment([no,io])}return no},singleCharBigOps={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};defineFunction({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=io;return so.length===1&&(so=singleCharBigOps[so]),{type:"op",mode:no.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:so}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1});defineFunction({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(eo,to)=>{var{parser:no}=eo,io=to[0];return{type:"op",mode:no.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ordargument(io)}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1});var singleCharIntegrals={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};defineFunction({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(eo){var{parser:to,funcName:no}=eo;return{type:"op",mode:to.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:no}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1});defineFunction({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(eo){var{parser:to,funcName:no}=eo;return{type:"op",mode:to.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:no}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1});defineFunction({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(eo){var{parser:to,funcName:no}=eo,io=no;return io.length===1&&(io=singleCharIntegrals[io]),{type:"op",mode:to.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:io}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1});var htmlBuilder$1=(eo,to)=>{var no,io,so=!1,ao;eo.type==="supsub"?(no=eo.sup,io=eo.sub,ao=assertNodeType(eo.base,"operatorname"),so=!0):ao=assertNodeType(eo,"operatorname");var lo;if(ao.body.length>0){for(var uo=ao.body.map(yo=>{var So=yo.text;return typeof So=="string"?{type:"textord",mode:yo.mode,text:So}:yo}),ho=buildExpression$1(uo,to.withFont("mathrm"),!0),go=0;go{for(var no=buildExpression(eo.body,to.withFont("mathrm")),io=!0,so=0;somo.toText()).join("");no=[new mathMLTree.TextNode(uo)]}var ho=new mathMLTree.MathNode("mi",no);ho.setAttribute("mathvariant","normal");var go=new mathMLTree.MathNode("mo",[makeText("⁡","text")]);return eo.parentIsSupSub?new mathMLTree.MathNode("mrow",[ho,go]):mathMLTree.newDocumentFragment([ho,go])};defineFunction({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(eo,to)=>{var{parser:no,funcName:io}=eo,so=to[0];return{type:"operatorname",mode:no.mode,body:ordargument(so),alwaysHandleSupSub:io==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:htmlBuilder$1,mathmlBuilder});defineMacro("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");defineFunctionBuilders({type:"ordgroup",htmlBuilder(eo,to){return eo.semisimple?buildCommon.makeFragment(buildExpression$1(eo.body,to,!1)):buildCommon.makeSpan(["mord"],buildExpression$1(eo.body,to,!0),to)},mathmlBuilder(eo,to){return buildExpressionRow(eo.body,to,!0)}});defineFunction({type:"overline",names:["\\overline"],props:{numArgs:1},handler(eo,to){var{parser:no}=eo,io=to[0];return{type:"overline",mode:no.mode,body:io}},htmlBuilder(eo,to){var no=buildGroup$1(eo.body,to.havingCrampedStyle()),io=buildCommon.makeLineSpan("overline-line",to),so=to.fontMetrics().defaultRuleThickness,ao=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:no},{type:"kern",size:3*so},{type:"elem",elem:io},{type:"kern",size:so}]},to);return buildCommon.makeSpan(["mord","overline"],[ao],to)},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode("‾")]);no.setAttribute("stretchy","true");var io=new mathMLTree.MathNode("mover",[buildGroup(eo.body,to),no]);return io.setAttribute("accent","true"),io}});defineFunction({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(eo,to)=>{var{parser:no}=eo,io=to[0];return{type:"phantom",mode:no.mode,body:ordargument(io)}},htmlBuilder:(eo,to)=>{var no=buildExpression$1(eo.body,to.withPhantom(),!1);return buildCommon.makeFragment(no)},mathmlBuilder:(eo,to)=>{var no=buildExpression(eo.body,to);return new mathMLTree.MathNode("mphantom",no)}});defineFunction({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(eo,to)=>{var{parser:no}=eo,io=to[0];return{type:"hphantom",mode:no.mode,body:io}},htmlBuilder:(eo,to)=>{var no=buildCommon.makeSpan([],[buildGroup$1(eo.body,to.withPhantom())]);if(no.height=0,no.depth=0,no.children)for(var io=0;io{var no=buildExpression(ordargument(eo.body),to),io=new mathMLTree.MathNode("mphantom",no),so=new mathMLTree.MathNode("mpadded",[io]);return so.setAttribute("height","0px"),so.setAttribute("depth","0px"),so}});defineFunction({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(eo,to)=>{var{parser:no}=eo,io=to[0];return{type:"vphantom",mode:no.mode,body:io}},htmlBuilder:(eo,to)=>{var no=buildCommon.makeSpan(["inner"],[buildGroup$1(eo.body,to.withPhantom())]),io=buildCommon.makeSpan(["fix"],[]);return buildCommon.makeSpan(["mord","rlap"],[no,io],to)},mathmlBuilder:(eo,to)=>{var no=buildExpression(ordargument(eo.body),to),io=new mathMLTree.MathNode("mphantom",no),so=new mathMLTree.MathNode("mpadded",[io]);return so.setAttribute("width","0px"),so}});defineFunction({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(eo,to){var{parser:no}=eo,io=assertNodeType(to[0],"size").value,so=to[1];return{type:"raisebox",mode:no.mode,dy:io,body:so}},htmlBuilder(eo,to){var no=buildGroup$1(eo.body,to),io=calculateSize(eo.dy,to);return buildCommon.makeVList({positionType:"shift",positionData:-io,children:[{type:"elem",elem:no}]},to)},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mpadded",[buildGroup(eo.body,to)]),io=eo.dy.number+eo.dy.unit;return no.setAttribute("voffset",io),no}});defineFunction({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(eo){var{parser:to}=eo;return{type:"internal",mode:to.mode}}});defineFunction({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(eo,to,no){var{parser:io}=eo,so=no[0],ao=assertNodeType(to[0],"size"),lo=assertNodeType(to[1],"size");return{type:"rule",mode:io.mode,shift:so&&assertNodeType(so,"size").value,width:ao.value,height:lo.value}},htmlBuilder(eo,to){var no=buildCommon.makeSpan(["mord","rule"],[],to),io=calculateSize(eo.width,to),so=calculateSize(eo.height,to),ao=eo.shift?calculateSize(eo.shift,to):0;return no.style.borderRightWidth=makeEm(io),no.style.borderTopWidth=makeEm(so),no.style.bottom=makeEm(ao),no.width=io,no.height=so+ao,no.depth=-ao,no.maxFontSize=so*1.125*to.sizeMultiplier,no},mathmlBuilder(eo,to){var no=calculateSize(eo.width,to),io=calculateSize(eo.height,to),so=eo.shift?calculateSize(eo.shift,to):0,ao=to.color&&to.getColor()||"black",lo=new mathMLTree.MathNode("mspace");lo.setAttribute("mathbackground",ao),lo.setAttribute("width",makeEm(no)),lo.setAttribute("height",makeEm(io));var uo=new mathMLTree.MathNode("mpadded",[lo]);return so>=0?uo.setAttribute("height",makeEm(so)):(uo.setAttribute("height",makeEm(so)),uo.setAttribute("depth",makeEm(-so))),uo.setAttribute("voffset",makeEm(so)),uo}});function sizingGroup(eo,to,no){for(var io=buildExpression$1(eo,to,!1),so=to.sizeMultiplier/no.sizeMultiplier,ao=0;ao{var no=to.havingSize(eo.size);return sizingGroup(eo.body,no,to)};defineFunction({type:"sizing",names:sizeFuncs,props:{numArgs:0,allowedInText:!0},handler:(eo,to)=>{var{breakOnTokenText:no,funcName:io,parser:so}=eo,ao=so.parseExpression(!1,no);return{type:"sizing",mode:so.mode,size:sizeFuncs.indexOf(io)+1,body:ao}},htmlBuilder,mathmlBuilder:(eo,to)=>{var no=to.havingSize(eo.size),io=buildExpression(eo.body,no),so=new mathMLTree.MathNode("mstyle",io);return so.setAttribute("mathsize",makeEm(no.sizeMultiplier)),so}});defineFunction({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(eo,to,no)=>{var{parser:io}=eo,so=!1,ao=!1,lo=no[0]&&assertNodeType(no[0],"ordgroup");if(lo)for(var uo="",ho=0;ho{var no=buildCommon.makeSpan([],[buildGroup$1(eo.body,to)]);if(!eo.smashHeight&&!eo.smashDepth)return no;if(eo.smashHeight&&(no.height=0,no.children))for(var io=0;io{var no=new mathMLTree.MathNode("mpadded",[buildGroup(eo.body,to)]);return eo.smashHeight&&no.setAttribute("height","0px"),eo.smashDepth&&no.setAttribute("depth","0px"),no}});defineFunction({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(eo,to,no){var{parser:io}=eo,so=no[0],ao=to[0];return{type:"sqrt",mode:io.mode,body:ao,index:so}},htmlBuilder(eo,to){var no=buildGroup$1(eo.body,to.havingCrampedStyle());no.height===0&&(no.height=to.fontMetrics().xHeight),no=buildCommon.wrapFragment(no,to);var io=to.fontMetrics(),so=io.defaultRuleThickness,ao=so;to.style.idno.height+no.depth+lo&&(lo=(lo+yo-no.height-no.depth)/2);var So=ho.height-no.height-lo-go;no.style.paddingLeft=makeEm(mo);var _o=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:no,wrapperClasses:["svg-align"]},{type:"kern",size:-(no.height+So)},{type:"elem",elem:ho},{type:"kern",size:go}]},to);if(eo.index){var ko=to.havingStyle(Style$1$1.SCRIPTSCRIPT),Co=buildGroup$1(eo.index,ko,to),$o=.6*(_o.height-_o.depth),Ro=buildCommon.makeVList({positionType:"shift",positionData:-$o,children:[{type:"elem",elem:Co}]},to),Oo=buildCommon.makeSpan(["root"],[Ro]);return buildCommon.makeSpan(["mord","sqrt"],[Oo,_o],to)}else return buildCommon.makeSpan(["mord","sqrt"],[_o],to)},mathmlBuilder(eo,to){var{body:no,index:io}=eo;return io?new mathMLTree.MathNode("mroot",[buildGroup(no,to),buildGroup(io,to)]):new mathMLTree.MathNode("msqrt",[buildGroup(no,to)])}});var styleMap={display:Style$1$1.DISPLAY,text:Style$1$1.TEXT,script:Style$1$1.SCRIPT,scriptscript:Style$1$1.SCRIPTSCRIPT};defineFunction({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(eo,to){var{breakOnTokenText:no,funcName:io,parser:so}=eo,ao=so.parseExpression(!0,no),lo=io.slice(1,io.length-5);return{type:"styling",mode:so.mode,style:lo,body:ao}},htmlBuilder(eo,to){var no=styleMap[eo.style],io=to.havingStyle(no).withFont("");return sizingGroup(eo.body,io,to)},mathmlBuilder(eo,to){var no=styleMap[eo.style],io=to.havingStyle(no),so=buildExpression(eo.body,io),ao=new mathMLTree.MathNode("mstyle",so),lo={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},uo=lo[eo.style];return ao.setAttribute("scriptlevel",uo[0]),ao.setAttribute("displaystyle",uo[1]),ao}});var htmlBuilderDelegate=function eo(to,no){var io=to.base;if(io)if(io.type==="op"){var so=io.limits&&(no.style.size===Style$1$1.DISPLAY.size||io.alwaysHandleSupSub);return so?htmlBuilder$2:null}else if(io.type==="operatorname"){var ao=io.alwaysHandleSupSub&&(no.style.size===Style$1$1.DISPLAY.size||io.limits);return ao?htmlBuilder$1:null}else{if(io.type==="accent")return utils.isCharacterBox(io.base)?htmlBuilder$a:null;if(io.type==="horizBrace"){var lo=!to.sub;return lo===io.isOver?htmlBuilder$3:null}else return null}else return null};defineFunctionBuilders({type:"supsub",htmlBuilder(eo,to){var no=htmlBuilderDelegate(eo,to);if(no)return no(eo,to);var{base:io,sup:so,sub:ao}=eo,lo=buildGroup$1(io,to),uo,ho,go=to.fontMetrics(),mo=0,yo=0,So=io&&utils.isCharacterBox(io);if(so){var _o=to.havingStyle(to.style.sup());uo=buildGroup$1(so,_o,to),So||(mo=lo.height-_o.fontMetrics().supDrop*_o.sizeMultiplier/to.sizeMultiplier)}if(ao){var ko=to.havingStyle(to.style.sub());ho=buildGroup$1(ao,ko,to),So||(yo=lo.depth+ko.fontMetrics().subDrop*ko.sizeMultiplier/to.sizeMultiplier)}var Co;to.style===Style$1$1.DISPLAY?Co=go.sup1:to.style.cramped?Co=go.sup3:Co=go.sup2;var $o=to.sizeMultiplier,Ro=makeEm(.5/go.ptPerEm/$o),Oo=null;if(ho){var No=eo.base&&eo.base.type==="op"&&eo.base.name&&(eo.base.name==="\\oiint"||eo.base.name==="\\oiiint");(lo instanceof SymbolNode||No)&&(Oo=makeEm(-lo.italic))}var Mo;if(uo&&ho){mo=Math.max(mo,Co,uo.depth+.25*go.xHeight),yo=Math.max(yo,go.sub2);var Bo=go.defaultRuleThickness,Fo=4*Bo;if(mo-uo.depth-(ho.height-yo)0&&(mo+=Lo,yo-=Lo)}var Go=[{type:"elem",elem:ho,shift:yo,marginRight:Ro,marginLeft:Oo},{type:"elem",elem:uo,shift:-mo,marginRight:Ro}];Mo=buildCommon.makeVList({positionType:"individualShift",children:Go},to)}else if(ho){yo=Math.max(yo,go.sub1,ho.height-.8*go.xHeight);var Do=[{type:"elem",elem:ho,marginLeft:Oo,marginRight:Ro}];Mo=buildCommon.makeVList({positionType:"shift",positionData:yo,children:Do},to)}else if(uo)mo=Math.max(mo,Co,uo.depth+.25*go.xHeight),Mo=buildCommon.makeVList({positionType:"shift",positionData:-mo,children:[{type:"elem",elem:uo,marginRight:Ro}]},to);else throw new Error("supsub must have either sup or sub.");var Uo=getTypeOfDomTree(lo,"right")||"mord";return buildCommon.makeSpan([Uo],[lo,buildCommon.makeSpan(["msupsub"],[Mo])],to)},mathmlBuilder(eo,to){var no=!1,io,so;eo.base&&eo.base.type==="horizBrace"&&(so=!!eo.sup,so===eo.base.isOver&&(no=!0,io=eo.base.isOver)),eo.base&&(eo.base.type==="op"||eo.base.type==="operatorname")&&(eo.base.parentIsSupSub=!0);var ao=[buildGroup(eo.base,to)];eo.sub&&ao.push(buildGroup(eo.sub,to)),eo.sup&&ao.push(buildGroup(eo.sup,to));var lo;if(no)lo=io?"mover":"munder";else if(eo.sub)if(eo.sup){var go=eo.base;go&&go.type==="op"&&go.limits&&to.style===Style$1$1.DISPLAY||go&&go.type==="operatorname"&&go.alwaysHandleSupSub&&(to.style===Style$1$1.DISPLAY||go.limits)?lo="munderover":lo="msubsup"}else{var ho=eo.base;ho&&ho.type==="op"&&ho.limits&&(to.style===Style$1$1.DISPLAY||ho.alwaysHandleSupSub)||ho&&ho.type==="operatorname"&&ho.alwaysHandleSupSub&&(ho.limits||to.style===Style$1$1.DISPLAY)?lo="munder":lo="msub"}else{var uo=eo.base;uo&&uo.type==="op"&&uo.limits&&(to.style===Style$1$1.DISPLAY||uo.alwaysHandleSupSub)||uo&&uo.type==="operatorname"&&uo.alwaysHandleSupSub&&(uo.limits||to.style===Style$1$1.DISPLAY)?lo="mover":lo="msup"}return new mathMLTree.MathNode(lo,ao)}});defineFunctionBuilders({type:"atom",htmlBuilder(eo,to){return buildCommon.mathsym(eo.text,eo.mode,to,["m"+eo.family])},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mo",[makeText(eo.text,eo.mode)]);if(eo.family==="bin"){var io=getVariant(eo,to);io==="bold-italic"&&no.setAttribute("mathvariant",io)}else eo.family==="punct"?no.setAttribute("separator","true"):(eo.family==="open"||eo.family==="close")&&no.setAttribute("stretchy","false");return no}});var defaultVariant={mi:"italic",mn:"normal",mtext:"normal"};defineFunctionBuilders({type:"mathord",htmlBuilder(eo,to){return buildCommon.makeOrd(eo,to,"mathord")},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mi",[makeText(eo.text,eo.mode,to)]),io=getVariant(eo,to)||"italic";return io!==defaultVariant[no.type]&&no.setAttribute("mathvariant",io),no}});defineFunctionBuilders({type:"textord",htmlBuilder(eo,to){return buildCommon.makeOrd(eo,to,"textord")},mathmlBuilder(eo,to){var no=makeText(eo.text,eo.mode,to),io=getVariant(eo,to)||"normal",so;return eo.mode==="text"?so=new mathMLTree.MathNode("mtext",[no]):/[0-9]/.test(eo.text)?so=new mathMLTree.MathNode("mn",[no]):eo.text==="\\prime"?so=new mathMLTree.MathNode("mo",[no]):so=new mathMLTree.MathNode("mi",[no]),io!==defaultVariant[so.type]&&so.setAttribute("mathvariant",io),so}});var cssSpace={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},regularSpace={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};defineFunctionBuilders({type:"spacing",htmlBuilder(eo,to){if(regularSpace.hasOwnProperty(eo.text)){var no=regularSpace[eo.text].className||"";if(eo.mode==="text"){var io=buildCommon.makeOrd(eo,to,"textord");return io.classes.push(no),io}else return buildCommon.makeSpan(["mspace",no],[buildCommon.mathsym(eo.text,eo.mode,to)],to)}else{if(cssSpace.hasOwnProperty(eo.text))return buildCommon.makeSpan(["mspace",cssSpace[eo.text]],[],to);throw new ParseError('Unknown type of space "'+eo.text+'"')}},mathmlBuilder(eo,to){var no;if(regularSpace.hasOwnProperty(eo.text))no=new mathMLTree.MathNode("mtext",[new mathMLTree.TextNode(" ")]);else{if(cssSpace.hasOwnProperty(eo.text))return new mathMLTree.MathNode("mspace");throw new ParseError('Unknown type of space "'+eo.text+'"')}return no}});var pad=()=>{var eo=new mathMLTree.MathNode("mtd",[]);return eo.setAttribute("width","50%"),eo};defineFunctionBuilders({type:"tag",mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mtable",[new mathMLTree.MathNode("mtr",[pad(),new mathMLTree.MathNode("mtd",[buildExpressionRow(eo.body,to)]),pad(),new mathMLTree.MathNode("mtd",[buildExpressionRow(eo.tag,to)])])]);return no.setAttribute("width","100%"),no}});var textFontFamilies={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},textFontWeights={"\\textbf":"textbf","\\textmd":"textmd"},textFontShapes={"\\textit":"textit","\\textup":"textup"},optionsWithFont=(eo,to)=>{var no=eo.font;return no?textFontFamilies[no]?to.withTextFontFamily(textFontFamilies[no]):textFontWeights[no]?to.withTextFontWeight(textFontWeights[no]):to.withTextFontShape(textFontShapes[no]):to};defineFunction({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(eo,to){var{parser:no,funcName:io}=eo,so=to[0];return{type:"text",mode:no.mode,body:ordargument(so),font:io}},htmlBuilder(eo,to){var no=optionsWithFont(eo,to),io=buildExpression$1(eo.body,no,!0);return buildCommon.makeSpan(["mord","text"],io,no)},mathmlBuilder(eo,to){var no=optionsWithFont(eo,to);return buildExpressionRow(eo.body,no)}});defineFunction({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(eo,to){var{parser:no}=eo;return{type:"underline",mode:no.mode,body:to[0]}},htmlBuilder(eo,to){var no=buildGroup$1(eo.body,to),io=buildCommon.makeLineSpan("underline-line",to),so=to.fontMetrics().defaultRuleThickness,ao=buildCommon.makeVList({positionType:"top",positionData:no.height,children:[{type:"kern",size:so},{type:"elem",elem:io},{type:"kern",size:3*so},{type:"elem",elem:no}]},to);return buildCommon.makeSpan(["mord","underline"],[ao],to)},mathmlBuilder(eo,to){var no=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode("‾")]);no.setAttribute("stretchy","true");var io=new mathMLTree.MathNode("munder",[buildGroup(eo.body,to),no]);return io.setAttribute("accentunder","true"),io}});defineFunction({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(eo,to){var{parser:no}=eo;return{type:"vcenter",mode:no.mode,body:to[0]}},htmlBuilder(eo,to){var no=buildGroup$1(eo.body,to),io=to.fontMetrics().axisHeight,so=.5*(no.height-io-(no.depth+io));return buildCommon.makeVList({positionType:"shift",positionData:so,children:[{type:"elem",elem:no}]},to)},mathmlBuilder(eo,to){return new mathMLTree.MathNode("mpadded",[buildGroup(eo.body,to)],["vcenter"])}});defineFunction({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(eo,to,no){throw new ParseError("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(eo,to){for(var no=makeVerb(eo),io=[],so=to.havingStyle(to.style.text()),ao=0;aoeo.body.replace(/ /g,eo.star?"␣":" "),functions$1=_functions,spaceRegexString=`[ \r ]`,controlWordRegexString="\\\\[a-zA-Z@]+",controlSymbolRegexString="\\\\[^\uD800-\uDFFF]",controlWordWhitespaceRegexString="("+controlWordRegexString+")"+spaceRegexString+"*",controlSpaceRegexString=`\\\\( |[ \r ]+ ?)[ \r ]*`,combiningDiacriticalMarkString="[̀-ͯ]",combiningDiacriticalMarksEndRegex=new RegExp(combiningDiacriticalMarkString+"+$"),tokenRegexString="("+spaceRegexString+"+)|"+(controlSpaceRegexString+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(combiningDiacriticalMarkString+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(combiningDiacriticalMarkString+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+controlWordWhitespaceRegexString)+("|"+controlSymbolRegexString+")");class Lexer{constructor(to,no){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=to,this.settings=no,this.tokenRegex=new RegExp(tokenRegexString,"g"),this.catcodes={"%":14,"~":13}}setCatcode(to,no){this.catcodes[to]=no}lex(){var to=this.input,no=this.tokenRegex.lastIndex;if(no===to.length)return new Token("EOF",new SourceLocation(this,no,no));var io=this.tokenRegex.exec(to);if(io===null||io.index!==no)throw new ParseError("Unexpected character: '"+to[no]+"'",new Token(to[no],new SourceLocation(this,no,no+1)));var so=io[6]||io[3]||(io[2]?"\\ ":" ");if(this.catcodes[so]===14){var ao=to.indexOf(` `,this.tokenRegex.lastIndex);return ao===-1?(this.tokenRegex.lastIndex=to.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=ao+1,this.lex()}return new Token(so,new SourceLocation(this,no,this.tokenRegex.lastIndex))}}class Namespace{constructor(to,no){to===void 0&&(to={}),no===void 0&&(no={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=no,this.builtins=to,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ParseError("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var to=this.undefStack.pop();for(var no in to)to.hasOwnProperty(no)&&(to[no]==null?delete this.current[no]:this.current[no]=to[no])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(to){return this.current.hasOwnProperty(to)||this.builtins.hasOwnProperty(to)}get(to){return this.current.hasOwnProperty(to)?this.current[to]:this.builtins[to]}set(to,no,io){if(io===void 0&&(io=!1),io){for(var so=0;so0&&(this.undefStack[this.undefStack.length-1][to]=no)}else{var ao=this.undefStack[this.undefStack.length-1];ao&&!ao.hasOwnProperty(to)&&(ao[to]=this.current[to])}no==null?delete this.current[to]:this.current[to]=no}}var macros=_macros;defineMacro("\\noexpand",function(eo){var to=eo.popToken();return eo.isExpandable(to.text)&&(to.noexpand=!0,to.treatAsRelax=!0),{tokens:[to],numArgs:0}});defineMacro("\\expandafter",function(eo){var to=eo.popToken();return eo.expandOnce(!0),{tokens:[to],numArgs:0}});defineMacro("\\@firstoftwo",function(eo){var to=eo.consumeArgs(2);return{tokens:to[0],numArgs:0}});defineMacro("\\@secondoftwo",function(eo){var to=eo.consumeArgs(2);return{tokens:to[1],numArgs:0}});defineMacro("\\@ifnextchar",function(eo){var to=eo.consumeArgs(3);eo.consumeSpaces();var no=eo.future();return to[0].length===1&&to[0][0].text===no.text?{tokens:to[1],numArgs:0}:{tokens:to[2],numArgs:0}});defineMacro("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");defineMacro("\\TextOrMath",function(eo){var to=eo.consumeArgs(2);return eo.mode==="text"?{tokens:to[0],numArgs:0}:{tokens:to[1],numArgs:0}});var digitToNumber={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};defineMacro("\\char",function(eo){var to=eo.popToken(),no,io="";if(to.text==="'")no=8,to=eo.popToken();else if(to.text==='"')no=16,to=eo.popToken();else if(to.text==="`")if(to=eo.popToken(),to.text[0]==="\\")io=to.text.charCodeAt(1);else{if(to.text==="EOF")throw new ParseError("\\char` missing argument");io=to.text.charCodeAt(0)}else no=10;if(no){if(io=digitToNumber[to.text],io==null||io>=no)throw new ParseError("Invalid base-"+no+" digit "+to.text);for(var so;(so=digitToNumber[eo.future().text])!=null&&so{var io=eo.consumeArg().tokens;if(io.length!==1)throw new ParseError("\\newcommand's first argument must be a macro name");var so=io[0].text,ao=eo.isDefined(so);if(ao&&!to)throw new ParseError("\\newcommand{"+so+"} attempting to redefine "+(so+"; use \\renewcommand"));if(!ao&&!no)throw new ParseError("\\renewcommand{"+so+"} when command "+so+" does not yet exist; use \\newcommand");var lo=0;if(io=eo.consumeArg().tokens,io.length===1&&io[0].text==="["){for(var uo="",ho=eo.expandNextToken();ho.text!=="]"&&ho.text!=="EOF";)uo+=ho.text,ho=eo.expandNextToken();if(!uo.match(/^\s*[0-9]+\s*$/))throw new ParseError("Invalid number of arguments: "+uo);lo=parseInt(uo),io=eo.consumeArg().tokens}return eo.macros.set(so,{tokens:io,numArgs:lo}),""};defineMacro("\\newcommand",eo=>newcommand(eo,!1,!0));defineMacro("\\renewcommand",eo=>newcommand(eo,!0,!1));defineMacro("\\providecommand",eo=>newcommand(eo,!0,!0));defineMacro("\\message",eo=>{var to=eo.consumeArgs(1)[0];return console.log(to.reverse().map(no=>no.text).join("")),""});defineMacro("\\errmessage",eo=>{var to=eo.consumeArgs(1)[0];return console.error(to.reverse().map(no=>no.text).join("")),""});defineMacro("\\show",eo=>{var to=eo.popToken(),no=to.text;return console.log(to,eo.macros.get(no),functions$1[no],symbols.math[no],symbols.text[no]),""});defineMacro("\\bgroup","{");defineMacro("\\egroup","}");defineMacro("~","\\nobreakspace");defineMacro("\\lq","`");defineMacro("\\rq","'");defineMacro("\\aa","\\r a");defineMacro("\\AA","\\r A");defineMacro("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");defineMacro("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");defineMacro("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");defineMacro("ℬ","\\mathscr{B}");defineMacro("ℰ","\\mathscr{E}");defineMacro("ℱ","\\mathscr{F}");defineMacro("ℋ","\\mathscr{H}");defineMacro("ℐ","\\mathscr{I}");defineMacro("ℒ","\\mathscr{L}");defineMacro("ℳ","\\mathscr{M}");defineMacro("ℛ","\\mathscr{R}");defineMacro("ℭ","\\mathfrak{C}");defineMacro("ℌ","\\mathfrak{H}");defineMacro("ℨ","\\mathfrak{Z}");defineMacro("\\Bbbk","\\Bbb{k}");defineMacro("·","\\cdotp");defineMacro("\\llap","\\mathllap{\\textrm{#1}}");defineMacro("\\rlap","\\mathrlap{\\textrm{#1}}");defineMacro("\\clap","\\mathclap{\\textrm{#1}}");defineMacro("\\mathstrut","\\vphantom{(}");defineMacro("\\underbar","\\underline{\\text{#1}}");defineMacro("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');defineMacro("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");defineMacro("\\ne","\\neq");defineMacro("≠","\\neq");defineMacro("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");defineMacro("∉","\\notin");defineMacro("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");defineMacro("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");defineMacro("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");defineMacro("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");defineMacro("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");defineMacro("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");defineMacro("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");defineMacro("⟂","\\perp");defineMacro("‼","\\mathclose{!\\mkern-0.8mu!}");defineMacro("∌","\\notni");defineMacro("⌜","\\ulcorner");defineMacro("⌝","\\urcorner");defineMacro("⌞","\\llcorner");defineMacro("⌟","\\lrcorner");defineMacro("©","\\copyright");defineMacro("®","\\textregistered");defineMacro("️","\\textregistered");defineMacro("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');defineMacro("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');defineMacro("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');defineMacro("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');defineMacro("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");defineMacro("⋮","\\vdots");defineMacro("\\varGamma","\\mathit{\\Gamma}");defineMacro("\\varDelta","\\mathit{\\Delta}");defineMacro("\\varTheta","\\mathit{\\Theta}");defineMacro("\\varLambda","\\mathit{\\Lambda}");defineMacro("\\varXi","\\mathit{\\Xi}");defineMacro("\\varPi","\\mathit{\\Pi}");defineMacro("\\varSigma","\\mathit{\\Sigma}");defineMacro("\\varUpsilon","\\mathit{\\Upsilon}");defineMacro("\\varPhi","\\mathit{\\Phi}");defineMacro("\\varPsi","\\mathit{\\Psi}");defineMacro("\\varOmega","\\mathit{\\Omega}");defineMacro("\\substack","\\begin{subarray}{c}#1\\end{subarray}");defineMacro("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");defineMacro("\\boxed","\\fbox{$\\displaystyle{#1}$}");defineMacro("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");defineMacro("\\implies","\\DOTSB\\;\\Longrightarrow\\;");defineMacro("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var dotsByToken={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};defineMacro("\\dots",function(eo){var to="\\dotso",no=eo.expandAfterFuture().text;return no in dotsByToken?to=dotsByToken[no]:(no.slice(0,4)==="\\not"||no in symbols.math&&utils.contains(["bin","rel"],symbols.math[no].group))&&(to="\\dotsb"),to});var spaceAfterDots={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};defineMacro("\\dotso",function(eo){var to=eo.future().text;return to in spaceAfterDots?"\\ldots\\,":"\\ldots"});defineMacro("\\dotsc",function(eo){var to=eo.future().text;return to in spaceAfterDots&&to!==","?"\\ldots\\,":"\\ldots"});defineMacro("\\cdots",function(eo){var to=eo.future().text;return to in spaceAfterDots?"\\@cdots\\,":"\\@cdots"});defineMacro("\\dotsb","\\cdots");defineMacro("\\dotsm","\\cdots");defineMacro("\\dotsi","\\!\\cdots");defineMacro("\\dotsx","\\ldots\\,");defineMacro("\\DOTSI","\\relax");defineMacro("\\DOTSB","\\relax");defineMacro("\\DOTSX","\\relax");defineMacro("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");defineMacro("\\,","\\tmspace+{3mu}{.1667em}");defineMacro("\\thinspace","\\,");defineMacro("\\>","\\mskip{4mu}");defineMacro("\\:","\\tmspace+{4mu}{.2222em}");defineMacro("\\medspace","\\:");defineMacro("\\;","\\tmspace+{5mu}{.2777em}");defineMacro("\\thickspace","\\;");defineMacro("\\!","\\tmspace-{3mu}{.1667em}");defineMacro("\\negthinspace","\\!");defineMacro("\\negmedspace","\\tmspace-{4mu}{.2222em}");defineMacro("\\negthickspace","\\tmspace-{5mu}{.277em}");defineMacro("\\enspace","\\kern.5em ");defineMacro("\\enskip","\\hskip.5em\\relax");defineMacro("\\quad","\\hskip1em\\relax");defineMacro("\\qquad","\\hskip2em\\relax");defineMacro("\\tag","\\@ifstar\\tag@literal\\tag@paren");defineMacro("\\tag@paren","\\tag@literal{({#1})}");defineMacro("\\tag@literal",eo=>{if(eo.macros.get("\\df@tag"))throw new ParseError("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});defineMacro("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");defineMacro("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");defineMacro("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");defineMacro("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");defineMacro("\\newline","\\\\\\relax");defineMacro("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var latexRaiseA=makeEm(fontMetricsData["Main-Regular"][84][1]-.7*fontMetricsData["Main-Regular"][65][1]);defineMacro("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+latexRaiseA+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");defineMacro("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+latexRaiseA+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");defineMacro("\\hspace","\\@ifstar\\@hspacer\\@hspace");defineMacro("\\@hspace","\\hskip #1\\relax");defineMacro("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");defineMacro("\\ordinarycolon",":");defineMacro("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");defineMacro("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');defineMacro("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');defineMacro("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');defineMacro("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');defineMacro("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');defineMacro("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');defineMacro("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');defineMacro("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');defineMacro("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');defineMacro("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');defineMacro("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');defineMacro("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');defineMacro("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');defineMacro("∷","\\dblcolon");defineMacro("∹","\\eqcolon");defineMacro("≔","\\coloneqq");defineMacro("≕","\\eqqcolon");defineMacro("⩴","\\Coloneqq");defineMacro("\\ratio","\\vcentcolon");defineMacro("\\coloncolon","\\dblcolon");defineMacro("\\colonequals","\\coloneqq");defineMacro("\\coloncolonequals","\\Coloneqq");defineMacro("\\equalscolon","\\eqqcolon");defineMacro("\\equalscoloncolon","\\Eqqcolon");defineMacro("\\colonminus","\\coloneq");defineMacro("\\coloncolonminus","\\Coloneq");defineMacro("\\minuscolon","\\eqcolon");defineMacro("\\minuscoloncolon","\\Eqcolon");defineMacro("\\coloncolonapprox","\\Colonapprox");defineMacro("\\coloncolonsim","\\Colonsim");defineMacro("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");defineMacro("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");defineMacro("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");defineMacro("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");defineMacro("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");defineMacro("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");defineMacro("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");defineMacro("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");defineMacro("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");defineMacro("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");defineMacro("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");defineMacro("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");defineMacro("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");defineMacro("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");defineMacro("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");defineMacro("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");defineMacro("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");defineMacro("\\nleqq","\\html@mathml{\\@nleqq}{≰}");defineMacro("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");defineMacro("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");defineMacro("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");defineMacro("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");defineMacro("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");defineMacro("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");defineMacro("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");defineMacro("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");defineMacro("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");defineMacro("\\imath","\\html@mathml{\\@imath}{ı}");defineMacro("\\jmath","\\html@mathml{\\@jmath}{ȷ}");defineMacro("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");defineMacro("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");defineMacro("⟦","\\llbracket");defineMacro("⟧","\\rrbracket");defineMacro("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");defineMacro("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");defineMacro("⦃","\\lBrace");defineMacro("⦄","\\rBrace");defineMacro("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");defineMacro("⦵","\\minuso");defineMacro("\\darr","\\downarrow");defineMacro("\\dArr","\\Downarrow");defineMacro("\\Darr","\\Downarrow");defineMacro("\\lang","\\langle");defineMacro("\\rang","\\rangle");defineMacro("\\uarr","\\uparrow");defineMacro("\\uArr","\\Uparrow");defineMacro("\\Uarr","\\Uparrow");defineMacro("\\N","\\mathbb{N}");defineMacro("\\R","\\mathbb{R}");defineMacro("\\Z","\\mathbb{Z}");defineMacro("\\alef","\\aleph");defineMacro("\\alefsym","\\aleph");defineMacro("\\Alpha","\\mathrm{A}");defineMacro("\\Beta","\\mathrm{B}");defineMacro("\\bull","\\bullet");defineMacro("\\Chi","\\mathrm{X}");defineMacro("\\clubs","\\clubsuit");defineMacro("\\cnums","\\mathbb{C}");defineMacro("\\Complex","\\mathbb{C}");defineMacro("\\Dagger","\\ddagger");defineMacro("\\diamonds","\\diamondsuit");defineMacro("\\empty","\\emptyset");defineMacro("\\Epsilon","\\mathrm{E}");defineMacro("\\Eta","\\mathrm{H}");defineMacro("\\exist","\\exists");defineMacro("\\harr","\\leftrightarrow");defineMacro("\\hArr","\\Leftrightarrow");defineMacro("\\Harr","\\Leftrightarrow");defineMacro("\\hearts","\\heartsuit");defineMacro("\\image","\\Im");defineMacro("\\infin","\\infty");defineMacro("\\Iota","\\mathrm{I}");defineMacro("\\isin","\\in");defineMacro("\\Kappa","\\mathrm{K}");defineMacro("\\larr","\\leftarrow");defineMacro("\\lArr","\\Leftarrow");defineMacro("\\Larr","\\Leftarrow");defineMacro("\\lrarr","\\leftrightarrow");defineMacro("\\lrArr","\\Leftrightarrow");defineMacro("\\Lrarr","\\Leftrightarrow");defineMacro("\\Mu","\\mathrm{M}");defineMacro("\\natnums","\\mathbb{N}");defineMacro("\\Nu","\\mathrm{N}");defineMacro("\\Omicron","\\mathrm{O}");defineMacro("\\plusmn","\\pm");defineMacro("\\rarr","\\rightarrow");defineMacro("\\rArr","\\Rightarrow");defineMacro("\\Rarr","\\Rightarrow");defineMacro("\\real","\\Re");defineMacro("\\reals","\\mathbb{R}");defineMacro("\\Reals","\\mathbb{R}");defineMacro("\\Rho","\\mathrm{P}");defineMacro("\\sdot","\\cdot");defineMacro("\\sect","\\S");defineMacro("\\spades","\\spadesuit");defineMacro("\\sub","\\subset");defineMacro("\\sube","\\subseteq");defineMacro("\\supe","\\supseteq");defineMacro("\\Tau","\\mathrm{T}");defineMacro("\\thetasym","\\vartheta");defineMacro("\\weierp","\\wp");defineMacro("\\Zeta","\\mathrm{Z}");defineMacro("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");defineMacro("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");defineMacro("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");defineMacro("\\bra","\\mathinner{\\langle{#1}|}");defineMacro("\\ket","\\mathinner{|{#1}\\rangle}");defineMacro("\\braket","\\mathinner{\\langle{#1}\\rangle}");defineMacro("\\Bra","\\left\\langle#1\\right|");defineMacro("\\Ket","\\left|#1\\right\\rangle");var braketHelper=eo=>to=>{var no=to.consumeArg().tokens,io=to.consumeArg().tokens,so=to.consumeArg().tokens,ao=to.consumeArg().tokens,lo=to.macros.get("|"),uo=to.macros.get("\\|");to.macros.beginGroup();var ho=yo=>So=>{eo&&(So.macros.set("|",lo),so.length&&So.macros.set("\\|",uo));var _o=yo;if(!yo&&so.length){var ko=So.future();ko.text==="|"&&(So.popToken(),_o=!0)}return{tokens:_o?so:io,numArgs:0}};to.macros.set("|",ho(!1)),so.length&&to.macros.set("\\|",ho(!0));var go=to.consumeArg().tokens,mo=to.expandTokens([...ao,...go,...no]);return to.macros.endGroup(),{tokens:mo.reverse(),numArgs:0}};defineMacro("\\bra@ket",braketHelper(!1));defineMacro("\\bra@set",braketHelper(!0));defineMacro("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");defineMacro("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");defineMacro("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");defineMacro("\\angln","{\\angl n}");defineMacro("\\blue","\\textcolor{##6495ed}{#1}");defineMacro("\\orange","\\textcolor{##ffa500}{#1}");defineMacro("\\pink","\\textcolor{##ff00af}{#1}");defineMacro("\\red","\\textcolor{##df0030}{#1}");defineMacro("\\green","\\textcolor{##28ae7b}{#1}");defineMacro("\\gray","\\textcolor{gray}{#1}");defineMacro("\\purple","\\textcolor{##9d38bd}{#1}");defineMacro("\\blueA","\\textcolor{##ccfaff}{#1}");defineMacro("\\blueB","\\textcolor{##80f6ff}{#1}");defineMacro("\\blueC","\\textcolor{##63d9ea}{#1}");defineMacro("\\blueD","\\textcolor{##11accd}{#1}");defineMacro("\\blueE","\\textcolor{##0c7f99}{#1}");defineMacro("\\tealA","\\textcolor{##94fff5}{#1}");defineMacro("\\tealB","\\textcolor{##26edd5}{#1}");defineMacro("\\tealC","\\textcolor{##01d1c1}{#1}");defineMacro("\\tealD","\\textcolor{##01a995}{#1}");defineMacro("\\tealE","\\textcolor{##208170}{#1}");defineMacro("\\greenA","\\textcolor{##b6ffb0}{#1}");defineMacro("\\greenB","\\textcolor{##8af281}{#1}");defineMacro("\\greenC","\\textcolor{##74cf70}{#1}");defineMacro("\\greenD","\\textcolor{##1fab54}{#1}");defineMacro("\\greenE","\\textcolor{##0d923f}{#1}");defineMacro("\\goldA","\\textcolor{##ffd0a9}{#1}");defineMacro("\\goldB","\\textcolor{##ffbb71}{#1}");defineMacro("\\goldC","\\textcolor{##ff9c39}{#1}");defineMacro("\\goldD","\\textcolor{##e07d10}{#1}");defineMacro("\\goldE","\\textcolor{##a75a05}{#1}");defineMacro("\\redA","\\textcolor{##fca9a9}{#1}");defineMacro("\\redB","\\textcolor{##ff8482}{#1}");defineMacro("\\redC","\\textcolor{##f9685d}{#1}");defineMacro("\\redD","\\textcolor{##e84d39}{#1}");defineMacro("\\redE","\\textcolor{##bc2612}{#1}");defineMacro("\\maroonA","\\textcolor{##ffbde0}{#1}");defineMacro("\\maroonB","\\textcolor{##ff92c6}{#1}");defineMacro("\\maroonC","\\textcolor{##ed5fa6}{#1}");defineMacro("\\maroonD","\\textcolor{##ca337c}{#1}");defineMacro("\\maroonE","\\textcolor{##9e034e}{#1}");defineMacro("\\purpleA","\\textcolor{##ddd7ff}{#1}");defineMacro("\\purpleB","\\textcolor{##c6b9fc}{#1}");defineMacro("\\purpleC","\\textcolor{##aa87ff}{#1}");defineMacro("\\purpleD","\\textcolor{##7854ab}{#1}");defineMacro("\\purpleE","\\textcolor{##543b78}{#1}");defineMacro("\\mintA","\\textcolor{##f5f9e8}{#1}");defineMacro("\\mintB","\\textcolor{##edf2df}{#1}");defineMacro("\\mintC","\\textcolor{##e0e5cc}{#1}");defineMacro("\\grayA","\\textcolor{##f6f7f7}{#1}");defineMacro("\\grayB","\\textcolor{##f0f1f2}{#1}");defineMacro("\\grayC","\\textcolor{##e3e5e6}{#1}");defineMacro("\\grayD","\\textcolor{##d6d8da}{#1}");defineMacro("\\grayE","\\textcolor{##babec2}{#1}");defineMacro("\\grayF","\\textcolor{##888d93}{#1}");defineMacro("\\grayG","\\textcolor{##626569}{#1}");defineMacro("\\grayH","\\textcolor{##3b3e40}{#1}");defineMacro("\\grayI","\\textcolor{##21242c}{#1}");defineMacro("\\kaBlue","\\textcolor{##314453}{#1}");defineMacro("\\kaGreen","\\textcolor{##71B307}{#1}");var implicitCommands={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class MacroExpander{constructor(to,no,io){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=no,this.expansionCount=0,this.feed(to),this.macros=new Namespace(macros,no.macros),this.mode=io,this.stack=[]}feed(to){this.lexer=new Lexer(to,this.settings)}switchMode(to){this.mode=to}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(to){this.stack.push(to)}pushTokens(to){this.stack.push(...to)}scanArgument(to){var no,io,so;if(to){if(this.consumeSpaces(),this.future().text!=="[")return null;no=this.popToken(),{tokens:so,end:io}=this.consumeArg(["]"])}else({tokens:so,start:no,end:io}=this.consumeArg());return this.pushToken(new Token("EOF",io.loc)),this.pushTokens(so),no.range(io,"")}consumeSpaces(){for(;;){var to=this.future();if(to.text===" ")this.stack.pop();else break}}consumeArg(to){var no=[],io=to&&to.length>0;io||this.consumeSpaces();var so=this.future(),ao,lo=0,uo=0;do{if(ao=this.popToken(),no.push(ao),ao.text==="{")++lo;else if(ao.text==="}"){if(--lo,lo===-1)throw new ParseError("Extra }",ao)}else if(ao.text==="EOF")throw new ParseError("Unexpected end of input in a macro argument, expected '"+(to&&io?to[uo]:"}")+"'",ao);if(to&&io)if((lo===0||lo===1&&to[uo]==="{")&&ao.text===to[uo]){if(++uo,uo===to.length){no.splice(-uo,uo);break}}else uo=0}while(lo!==0||io);return so.text==="{"&&no[no.length-1].text==="}"&&(no.pop(),no.shift()),no.reverse(),{tokens:no,start:so,end:ao}}consumeArgs(to,no){if(no){if(no.length!==to+1)throw new ParseError("The length of delimiters doesn't match the number of args!");for(var io=no[0],so=0;sothis.settings.maxExpand)throw new ParseError("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(to){var no=this.popToken(),io=no.text,so=no.noexpand?null:this._getExpansion(io);if(so==null||to&&so.unexpandable){if(to&&so==null&&io[0]==="\\"&&!this.isDefined(io))throw new ParseError("Undefined control sequence: "+io);return this.pushToken(no),!1}this.countExpansion(1);var ao=so.tokens,lo=this.consumeArgs(so.numArgs,so.delimiters);if(so.numArgs){ao=ao.slice();for(var uo=ao.length-1;uo>=0;--uo){var ho=ao[uo];if(ho.text==="#"){if(uo===0)throw new ParseError("Incomplete placeholder at end of macro body",ho);if(ho=ao[--uo],ho.text==="#")ao.splice(uo+1,1);else if(/^[1-9]$/.test(ho.text))ao.splice(uo,2,...lo[+ho.text-1]);else throw new ParseError("Not a valid argument number",ho)}}}return this.pushTokens(ao),ao.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var to=this.stack.pop();return to.treatAsRelax&&(to.text="\\relax"),to}throw new Error}expandMacro(to){return this.macros.has(to)?this.expandTokens([new Token(to)]):void 0}expandTokens(to){var no=[],io=this.stack.length;for(this.pushTokens(to);this.stack.length>io;)if(this.expandOnce(!0)===!1){var so=this.stack.pop();so.treatAsRelax&&(so.noexpand=!1,so.treatAsRelax=!1),no.push(so)}return this.countExpansion(no.length),no}expandMacroAsText(to){var no=this.expandMacro(to);return no&&no.map(io=>io.text).join("")}_getExpansion(to){var no=this.macros.get(to);if(no==null)return no;if(to.length===1){var io=this.lexer.catcodes[to];if(io!=null&&io!==13)return}var so=typeof no=="function"?no(this):no;if(typeof so=="string"){var ao=0;if(so.indexOf("#")!==-1)for(var lo=so.replace(/##/g,"");lo.indexOf("#"+(ao+1))!==-1;)++ao;for(var uo=new Lexer(so,this.settings),ho=[],go=uo.lex();go.text!=="EOF";)ho.push(go),go=uo.lex();ho.reverse();var mo={tokens:ho,numArgs:ao};return mo}return so}isDefined(to){return this.macros.has(to)||functions$1.hasOwnProperty(to)||symbols.math.hasOwnProperty(to)||symbols.text.hasOwnProperty(to)||implicitCommands.hasOwnProperty(to)}isExpandable(to){var no=this.macros.get(to);return no!=null?typeof no=="string"||typeof no=="function"||!no.unexpandable:functions$1.hasOwnProperty(to)&&!functions$1[to].primitive}}var unicodeSubRegEx=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,uSubsAndSups=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),unicodeAccents={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},unicodeSymbols={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Parser{constructor(to,no){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new MacroExpander(to,no,this.mode),this.settings=no,this.leftrightDepth=0}expect(to,no){if(no===void 0&&(no=!0),this.fetch().text!==to)throw new ParseError("Expected '"+to+"', got '"+this.fetch().text+"'",this.fetch());no&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(to){this.mode=to,this.gullet.switchMode(to)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var to=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),to}finally{this.gullet.endGroups()}}subparse(to){var no=this.nextToken;this.consume(),this.gullet.pushToken(new Token("}")),this.gullet.pushTokens(to);var io=this.parseExpression(!1);return this.expect("}"),this.nextToken=no,io}parseExpression(to,no){for(var io=[];;){this.mode==="math"&&this.consumeSpaces();var so=this.fetch();if(Parser.endOfExpression.indexOf(so.text)!==-1||no&&so.text===no||to&&functions$1[so.text]&&functions$1[so.text].infix)break;var ao=this.parseAtom(no);if(ao){if(ao.type==="internal")continue}else break;io.push(ao)}return this.mode==="text"&&this.formLigatures(io),this.handleInfixNodes(io)}handleInfixNodes(to){for(var no=-1,io,so=0;so=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+no[0]+'" used in math mode',to);var uo=symbols[this.mode][no].group,ho=SourceLocation.range(to),go;if(ATOMS.hasOwnProperty(uo)){var mo=uo;go={type:"atom",mode:this.mode,family:mo,loc:ho,text:no}}else go={type:uo,mode:this.mode,loc:ho,text:no};lo=go}else if(no.charCodeAt(0)>=128)this.settings.strict&&(supportedCodepoint(no.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+no[0]+'" used in math mode',to):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+no[0]+'"'+(" ("+no.charCodeAt(0)+")"),to)),lo={type:"textord",mode:"text",loc:SourceLocation.range(to),text:no};else return null;if(this.consume(),ao)for(var yo=0;yo{const no=eo.append("rect");if(no.attr("x",to.x),no.attr("y",to.y),no.attr("fill",to.fill),no.attr("stroke",to.stroke),no.attr("width",to.width),no.attr("height",to.height),to.name&&no.attr("name",to.name),to.rx!==void 0&&no.attr("rx",to.rx),to.ry!==void 0&&no.attr("ry",to.ry),to.attrs!==void 0)for(const io in to.attrs)no.attr(io,to.attrs[io]);return to.class!==void 0&&no.attr("class",to.class),no},drawBackgroundRect$3=(eo,to)=>{const no={x:to.startx,y:to.starty,width:to.stopx-to.startx,height:to.stopy-to.starty,fill:to.fill,stroke:to.stroke,class:"rect"};drawRect$4(eo,no).lower()},drawText$4=(eo,to)=>{const no=to.text.replace(lineBreakRegex," "),io=eo.append("text");io.attr("x",to.x),io.attr("y",to.y),io.attr("class","legend"),io.style("text-anchor",to.anchor),to.class!==void 0&&io.attr("class",to.class);const so=io.append("tspan");return so.attr("x",to.x+to.textMargin*2),so.text(no),io},drawImage$1=(eo,to,no,io)=>{const so=eo.append("image");so.attr("x",to),so.attr("y",no);const ao=dist$2.sanitizeUrl(io);so.attr("xlink:href",ao)},drawEmbeddedImage=(eo,to,no,io)=>{const so=eo.append("use");so.attr("x",to),so.attr("y",no);const ao=dist$2.sanitizeUrl(io);so.attr("xlink:href",`#${ao}`)},getNoteRect$2=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),getTextObj$2=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});var parser$i=function(){var eo=function($u,Kl,Is,Ks){for(Is=Is||{},Ks=$u.length;Ks--;Is[$u[Ks]]=Kl);return Is},to=[1,24],no=[1,25],io=[1,26],so=[1,27],ao=[1,28],lo=[1,63],uo=[1,64],ho=[1,65],go=[1,66],mo=[1,67],yo=[1,68],So=[1,69],_o=[1,29],ko=[1,30],Co=[1,31],$o=[1,32],Ro=[1,33],Oo=[1,34],No=[1,35],Mo=[1,36],Bo=[1,37],Po=[1,38],Lo=[1,39],Go=[1,40],Do=[1,41],Uo=[1,42],Ho=[1,43],Yo=[1,44],qo=[1,45],Jo=[1,46],ps=[1,47],Qo=[1,48],hs=[1,50],gs=[1,51],ys=[1,52],vs=[1,53],ks=[1,54],Os=[1,55],Ts=[1,56],Xs=[1,57],Ws=[1,58],Ps=[1,59],qs=[1,60],ga=[14,42],Fs=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Js=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Vs=[1,82],El=[1,83],yl=[1,84],Gl=[1,85],Qs=[12,14,42],du=[12,14,33,42],Ol=[12,14,33,42,76,77,79,80],Fu=[12,33],ju=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],F1={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(Kl,Is,Ks,Bs,Ds,Zs,Cl){var ba=Zs.length-1;switch(Ds){case 3:Bs.setDirection("TB");break;case 4:Bs.setDirection("BT");break;case 5:Bs.setDirection("RL");break;case 6:Bs.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:Bs.setC4Type(Zs[ba-3]);break;case 19:Bs.setTitle(Zs[ba].substring(6)),this.$=Zs[ba].substring(6);break;case 20:Bs.setAccDescription(Zs[ba].substring(15)),this.$=Zs[ba].substring(15);break;case 21:this.$=Zs[ba].trim(),Bs.setTitle(this.$);break;case 22:case 23:this.$=Zs[ba].trim(),Bs.setAccDescription(this.$);break;case 28:case 29:Zs[ba].splice(2,0,"ENTERPRISE"),Bs.addPersonOrSystemBoundary(...Zs[ba]),this.$=Zs[ba];break;case 30:Bs.addPersonOrSystemBoundary(...Zs[ba]),this.$=Zs[ba];break;case 31:Zs[ba].splice(2,0,"CONTAINER"),Bs.addContainerBoundary(...Zs[ba]),this.$=Zs[ba];break;case 32:Bs.addDeploymentNode("node",...Zs[ba]),this.$=Zs[ba];break;case 33:Bs.addDeploymentNode("nodeL",...Zs[ba]),this.$=Zs[ba];break;case 34:Bs.addDeploymentNode("nodeR",...Zs[ba]),this.$=Zs[ba];break;case 35:Bs.popBoundaryParseStack();break;case 39:Bs.addPersonOrSystem("person",...Zs[ba]),this.$=Zs[ba];break;case 40:Bs.addPersonOrSystem("external_person",...Zs[ba]),this.$=Zs[ba];break;case 41:Bs.addPersonOrSystem("system",...Zs[ba]),this.$=Zs[ba];break;case 42:Bs.addPersonOrSystem("system_db",...Zs[ba]),this.$=Zs[ba];break;case 43:Bs.addPersonOrSystem("system_queue",...Zs[ba]),this.$=Zs[ba];break;case 44:Bs.addPersonOrSystem("external_system",...Zs[ba]),this.$=Zs[ba];break;case 45:Bs.addPersonOrSystem("external_system_db",...Zs[ba]),this.$=Zs[ba];break;case 46:Bs.addPersonOrSystem("external_system_queue",...Zs[ba]),this.$=Zs[ba];break;case 47:Bs.addContainer("container",...Zs[ba]),this.$=Zs[ba];break;case 48:Bs.addContainer("container_db",...Zs[ba]),this.$=Zs[ba];break;case 49:Bs.addContainer("container_queue",...Zs[ba]),this.$=Zs[ba];break;case 50:Bs.addContainer("external_container",...Zs[ba]),this.$=Zs[ba];break;case 51:Bs.addContainer("external_container_db",...Zs[ba]),this.$=Zs[ba];break;case 52:Bs.addContainer("external_container_queue",...Zs[ba]),this.$=Zs[ba];break;case 53:Bs.addComponent("component",...Zs[ba]),this.$=Zs[ba];break;case 54:Bs.addComponent("component_db",...Zs[ba]),this.$=Zs[ba];break;case 55:Bs.addComponent("component_queue",...Zs[ba]),this.$=Zs[ba];break;case 56:Bs.addComponent("external_component",...Zs[ba]),this.$=Zs[ba];break;case 57:Bs.addComponent("external_component_db",...Zs[ba]),this.$=Zs[ba];break;case 58:Bs.addComponent("external_component_queue",...Zs[ba]),this.$=Zs[ba];break;case 60:Bs.addRel("rel",...Zs[ba]),this.$=Zs[ba];break;case 61:Bs.addRel("birel",...Zs[ba]),this.$=Zs[ba];break;case 62:Bs.addRel("rel_u",...Zs[ba]),this.$=Zs[ba];break;case 63:Bs.addRel("rel_d",...Zs[ba]),this.$=Zs[ba];break;case 64:Bs.addRel("rel_l",...Zs[ba]),this.$=Zs[ba];break;case 65:Bs.addRel("rel_r",...Zs[ba]),this.$=Zs[ba];break;case 66:Bs.addRel("rel_b",...Zs[ba]),this.$=Zs[ba];break;case 67:Zs[ba].splice(0,1),Bs.addRel("rel",...Zs[ba]),this.$=Zs[ba];break;case 68:Bs.updateElStyle("update_el_style",...Zs[ba]),this.$=Zs[ba];break;case 69:Bs.updateRelStyle("update_rel_style",...Zs[ba]),this.$=Zs[ba];break;case 70:Bs.updateLayoutConfig("update_layout_config",...Zs[ba]),this.$=Zs[ba];break;case 71:this.$=[Zs[ba]];break;case 72:Zs[ba].unshift(Zs[ba-1]),this.$=Zs[ba];break;case 73:case 75:this.$=Zs[ba].trim();break;case 74:let fu={};fu[Zs[ba-1].trim()]=Zs[ba].trim(),this.$=fu;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:to,23:no,24:io,26:so,28:ao,29:49,30:61,32:62,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,43:23,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Po,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs},{13:70,19:20,20:21,21:22,22:to,23:no,24:io,26:so,28:ao,29:49,30:61,32:62,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,43:23,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Po,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs},{13:71,19:20,20:21,21:22,22:to,23:no,24:io,26:so,28:ao,29:49,30:61,32:62,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,43:23,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Po,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs},{13:72,19:20,20:21,21:22,22:to,23:no,24:io,26:so,28:ao,29:49,30:61,32:62,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,43:23,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Po,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs},{13:73,19:20,20:21,21:22,22:to,23:no,24:io,26:so,28:ao,29:49,30:61,32:62,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,43:23,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Po,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs},{14:[1,74]},eo(ga,[2,13],{43:23,29:49,30:61,32:62,20:75,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Po,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs}),eo(ga,[2,14]),eo(Fs,[2,16],{12:[1,76]}),eo(ga,[2,36],{12:[1,77]}),eo(Js,[2,19]),eo(Js,[2,20]),{25:[1,78]},{27:[1,79]},eo(Js,[2,23]),{35:80,75:81,76:Vs,77:El,79:yl,80:Gl},{35:86,75:81,76:Vs,77:El,79:yl,80:Gl},{35:87,75:81,76:Vs,77:El,79:yl,80:Gl},{35:88,75:81,76:Vs,77:El,79:yl,80:Gl},{35:89,75:81,76:Vs,77:El,79:yl,80:Gl},{35:90,75:81,76:Vs,77:El,79:yl,80:Gl},{35:91,75:81,76:Vs,77:El,79:yl,80:Gl},{35:92,75:81,76:Vs,77:El,79:yl,80:Gl},{35:93,75:81,76:Vs,77:El,79:yl,80:Gl},{35:94,75:81,76:Vs,77:El,79:yl,80:Gl},{35:95,75:81,76:Vs,77:El,79:yl,80:Gl},{35:96,75:81,76:Vs,77:El,79:yl,80:Gl},{35:97,75:81,76:Vs,77:El,79:yl,80:Gl},{35:98,75:81,76:Vs,77:El,79:yl,80:Gl},{35:99,75:81,76:Vs,77:El,79:yl,80:Gl},{35:100,75:81,76:Vs,77:El,79:yl,80:Gl},{35:101,75:81,76:Vs,77:El,79:yl,80:Gl},{35:102,75:81,76:Vs,77:El,79:yl,80:Gl},{35:103,75:81,76:Vs,77:El,79:yl,80:Gl},{35:104,75:81,76:Vs,77:El,79:yl,80:Gl},eo(Qs,[2,59]),{35:105,75:81,76:Vs,77:El,79:yl,80:Gl},{35:106,75:81,76:Vs,77:El,79:yl,80:Gl},{35:107,75:81,76:Vs,77:El,79:yl,80:Gl},{35:108,75:81,76:Vs,77:El,79:yl,80:Gl},{35:109,75:81,76:Vs,77:El,79:yl,80:Gl},{35:110,75:81,76:Vs,77:El,79:yl,80:Gl},{35:111,75:81,76:Vs,77:El,79:yl,80:Gl},{35:112,75:81,76:Vs,77:El,79:yl,80:Gl},{35:113,75:81,76:Vs,77:El,79:yl,80:Gl},{35:114,75:81,76:Vs,77:El,79:yl,80:Gl},{35:115,75:81,76:Vs,77:El,79:yl,80:Gl},{20:116,29:49,30:61,32:62,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,43:23,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Po,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs},{12:[1,118],33:[1,117]},{35:119,75:81,76:Vs,77:El,79:yl,80:Gl},{35:120,75:81,76:Vs,77:El,79:yl,80:Gl},{35:121,75:81,76:Vs,77:El,79:yl,80:Gl},{35:122,75:81,76:Vs,77:El,79:yl,80:Gl},{35:123,75:81,76:Vs,77:El,79:yl,80:Gl},{35:124,75:81,76:Vs,77:El,79:yl,80:Gl},{35:125,75:81,76:Vs,77:El,79:yl,80:Gl},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},eo(ga,[2,15]),eo(Fs,[2,17],{21:22,19:130,22:to,23:no,24:io,26:so,28:ao}),eo(ga,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:to,23:no,24:io,26:so,28:ao,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Po,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs}),eo(Js,[2,21]),eo(Js,[2,22]),eo(Qs,[2,39]),eo(du,[2,71],{75:81,35:132,76:Vs,77:El,79:yl,80:Gl}),eo(Ol,[2,73]),{78:[1,133]},eo(Ol,[2,75]),eo(Ol,[2,76]),eo(Qs,[2,40]),eo(Qs,[2,41]),eo(Qs,[2,42]),eo(Qs,[2,43]),eo(Qs,[2,44]),eo(Qs,[2,45]),eo(Qs,[2,46]),eo(Qs,[2,47]),eo(Qs,[2,48]),eo(Qs,[2,49]),eo(Qs,[2,50]),eo(Qs,[2,51]),eo(Qs,[2,52]),eo(Qs,[2,53]),eo(Qs,[2,54]),eo(Qs,[2,55]),eo(Qs,[2,56]),eo(Qs,[2,57]),eo(Qs,[2,58]),eo(Qs,[2,60]),eo(Qs,[2,61]),eo(Qs,[2,62]),eo(Qs,[2,63]),eo(Qs,[2,64]),eo(Qs,[2,65]),eo(Qs,[2,66]),eo(Qs,[2,67]),eo(Qs,[2,68]),eo(Qs,[2,69]),eo(Qs,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},eo(Fu,[2,28]),eo(Fu,[2,29]),eo(Fu,[2,30]),eo(Fu,[2,31]),eo(Fu,[2,32]),eo(Fu,[2,33]),eo(Fu,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},eo(Fs,[2,18]),eo(ga,[2,38]),eo(du,[2,72]),eo(Ol,[2,74]),eo(Qs,[2,24]),eo(Qs,[2,35]),eo(ju,[2,25]),eo(ju,[2,26],{12:[1,138]}),eo(ju,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(Kl,Is){if(Is.recoverable)this.trace(Kl);else{var Ks=new Error(Kl);throw Ks.hash=Is,Ks}},parse:function(Kl){var Is=this,Ks=[0],Bs=[],Ds=[null],Zs=[],Cl=this.table,ba="",fu=0,Lu=0,e1=2,Gu=1,w1=Zs.slice.call(arguments,1),Zu=Object.create(this.lexer),L1={yy:{}};for(var K1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,K1)&&(L1.yy[K1]=this.yy[K1]);Zu.setInput(Kl,L1.yy),L1.yy.lexer=Zu,L1.yy.parser=this,typeof Zu.yylloc>"u"&&(Zu.yylloc={});var yp=Zu.yylloc;Zs.push(yp);var wp=Zu.options&&Zu.options.ranges;typeof L1.yy.parseError=="function"?this.parseError=L1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j0(){var up;return up=Bs.pop()||Zu.lex()||Gu,typeof up!="number"&&(up instanceof Array&&(Bs=up,up=Bs.pop()),up=Is.symbols_[up]||up),up}for(var h0,cp,k0,ap,x0={},b0,P1,c1,V0;;){if(cp=Ks[Ks.length-1],this.defaultActions[cp]?k0=this.defaultActions[cp]:((h0===null||typeof h0>"u")&&(h0=j0()),k0=Cl[cp]&&Cl[cp][h0]),typeof k0>"u"||!k0.length||!k0[0]){var P0="";V0=[];for(b0 in Cl[cp])this.terminals_[b0]&&b0>e1&&V0.push("'"+this.terminals_[b0]+"'");Zu.showPosition?P0="Parse error on line "+(fu+1)+`: + please report what input caused this bug`);return io=io.slice(1,-1),{type:"verb",mode:"text",body:io,star:so}}unicodeSymbols.hasOwnProperty(no[0])&&!symbols[this.mode][no[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+no[0]+'" used in math mode',to),no=unicodeSymbols[no[0]]+no.slice(1));var ao=combiningDiacriticalMarksEndRegex.exec(no);ao&&(no=no.substring(0,ao.index),no==="i"?no="ı":no==="j"&&(no="ȷ"));var lo;if(symbols[this.mode][no]){this.settings.strict&&this.mode==="math"&&extraLatin.indexOf(no)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+no[0]+'" used in math mode',to);var uo=symbols[this.mode][no].group,ho=SourceLocation.range(to),go;if(ATOMS.hasOwnProperty(uo)){var mo=uo;go={type:"atom",mode:this.mode,family:mo,loc:ho,text:no}}else go={type:uo,mode:this.mode,loc:ho,text:no};lo=go}else if(no.charCodeAt(0)>=128)this.settings.strict&&(supportedCodepoint(no.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+no[0]+'" used in math mode',to):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+no[0]+'"'+(" ("+no.charCodeAt(0)+")"),to)),lo={type:"textord",mode:"text",loc:SourceLocation.range(to),text:no};else return null;if(this.consume(),ao)for(var yo=0;yo{const no=eo.append("rect");if(no.attr("x",to.x),no.attr("y",to.y),no.attr("fill",to.fill),no.attr("stroke",to.stroke),no.attr("width",to.width),no.attr("height",to.height),to.name&&no.attr("name",to.name),to.rx!==void 0&&no.attr("rx",to.rx),to.ry!==void 0&&no.attr("ry",to.ry),to.attrs!==void 0)for(const io in to.attrs)no.attr(io,to.attrs[io]);return to.class!==void 0&&no.attr("class",to.class),no},drawBackgroundRect$3=(eo,to)=>{const no={x:to.startx,y:to.starty,width:to.stopx-to.startx,height:to.stopy-to.starty,fill:to.fill,stroke:to.stroke,class:"rect"};drawRect$4(eo,no).lower()},drawText$4=(eo,to)=>{const no=to.text.replace(lineBreakRegex," "),io=eo.append("text");io.attr("x",to.x),io.attr("y",to.y),io.attr("class","legend"),io.style("text-anchor",to.anchor),to.class!==void 0&&io.attr("class",to.class);const so=io.append("tspan");return so.attr("x",to.x+to.textMargin*2),so.text(no),io},drawImage$1=(eo,to,no,io)=>{const so=eo.append("image");so.attr("x",to),so.attr("y",no);const ao=dist$2.sanitizeUrl(io);so.attr("xlink:href",ao)},drawEmbeddedImage=(eo,to,no,io)=>{const so=eo.append("use");so.attr("x",to),so.attr("y",no);const ao=dist$2.sanitizeUrl(io);so.attr("xlink:href",`#${ao}`)},getNoteRect$2=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),getTextObj$2=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});var parser$i=function(){var eo=function($u,Kl,Is,Ks){for(Is=Is||{},Ks=$u.length;Ks--;Is[$u[Ks]]=Kl);return Is},to=[1,24],no=[1,25],io=[1,26],so=[1,27],ao=[1,28],lo=[1,63],uo=[1,64],ho=[1,65],go=[1,66],mo=[1,67],yo=[1,68],So=[1,69],_o=[1,29],ko=[1,30],Co=[1,31],$o=[1,32],Ro=[1,33],Oo=[1,34],No=[1,35],Mo=[1,36],Bo=[1,37],Fo=[1,38],Lo=[1,39],Go=[1,40],Do=[1,41],Uo=[1,42],Ho=[1,43],Yo=[1,44],qo=[1,45],Jo=[1,46],ps=[1,47],Qo=[1,48],hs=[1,50],gs=[1,51],ys=[1,52],vs=[1,53],ks=[1,54],Os=[1,55],Ts=[1,56],Xs=[1,57],Ws=[1,58],Ps=[1,59],qs=[1,60],ga=[14,42],Fs=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Js=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Vs=[1,82],El=[1,83],yl=[1,84],Gl=[1,85],Qs=[12,14,42],du=[12,14,33,42],Ol=[12,14,33,42,76,77,79,80],Fu=[12,33],ju=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],F1={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(Kl,Is,Ks,Bs,Ds,Zs,Cl){var ba=Zs.length-1;switch(Ds){case 3:Bs.setDirection("TB");break;case 4:Bs.setDirection("BT");break;case 5:Bs.setDirection("RL");break;case 6:Bs.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:Bs.setC4Type(Zs[ba-3]);break;case 19:Bs.setTitle(Zs[ba].substring(6)),this.$=Zs[ba].substring(6);break;case 20:Bs.setAccDescription(Zs[ba].substring(15)),this.$=Zs[ba].substring(15);break;case 21:this.$=Zs[ba].trim(),Bs.setTitle(this.$);break;case 22:case 23:this.$=Zs[ba].trim(),Bs.setAccDescription(this.$);break;case 28:case 29:Zs[ba].splice(2,0,"ENTERPRISE"),Bs.addPersonOrSystemBoundary(...Zs[ba]),this.$=Zs[ba];break;case 30:Bs.addPersonOrSystemBoundary(...Zs[ba]),this.$=Zs[ba];break;case 31:Zs[ba].splice(2,0,"CONTAINER"),Bs.addContainerBoundary(...Zs[ba]),this.$=Zs[ba];break;case 32:Bs.addDeploymentNode("node",...Zs[ba]),this.$=Zs[ba];break;case 33:Bs.addDeploymentNode("nodeL",...Zs[ba]),this.$=Zs[ba];break;case 34:Bs.addDeploymentNode("nodeR",...Zs[ba]),this.$=Zs[ba];break;case 35:Bs.popBoundaryParseStack();break;case 39:Bs.addPersonOrSystem("person",...Zs[ba]),this.$=Zs[ba];break;case 40:Bs.addPersonOrSystem("external_person",...Zs[ba]),this.$=Zs[ba];break;case 41:Bs.addPersonOrSystem("system",...Zs[ba]),this.$=Zs[ba];break;case 42:Bs.addPersonOrSystem("system_db",...Zs[ba]),this.$=Zs[ba];break;case 43:Bs.addPersonOrSystem("system_queue",...Zs[ba]),this.$=Zs[ba];break;case 44:Bs.addPersonOrSystem("external_system",...Zs[ba]),this.$=Zs[ba];break;case 45:Bs.addPersonOrSystem("external_system_db",...Zs[ba]),this.$=Zs[ba];break;case 46:Bs.addPersonOrSystem("external_system_queue",...Zs[ba]),this.$=Zs[ba];break;case 47:Bs.addContainer("container",...Zs[ba]),this.$=Zs[ba];break;case 48:Bs.addContainer("container_db",...Zs[ba]),this.$=Zs[ba];break;case 49:Bs.addContainer("container_queue",...Zs[ba]),this.$=Zs[ba];break;case 50:Bs.addContainer("external_container",...Zs[ba]),this.$=Zs[ba];break;case 51:Bs.addContainer("external_container_db",...Zs[ba]),this.$=Zs[ba];break;case 52:Bs.addContainer("external_container_queue",...Zs[ba]),this.$=Zs[ba];break;case 53:Bs.addComponent("component",...Zs[ba]),this.$=Zs[ba];break;case 54:Bs.addComponent("component_db",...Zs[ba]),this.$=Zs[ba];break;case 55:Bs.addComponent("component_queue",...Zs[ba]),this.$=Zs[ba];break;case 56:Bs.addComponent("external_component",...Zs[ba]),this.$=Zs[ba];break;case 57:Bs.addComponent("external_component_db",...Zs[ba]),this.$=Zs[ba];break;case 58:Bs.addComponent("external_component_queue",...Zs[ba]),this.$=Zs[ba];break;case 60:Bs.addRel("rel",...Zs[ba]),this.$=Zs[ba];break;case 61:Bs.addRel("birel",...Zs[ba]),this.$=Zs[ba];break;case 62:Bs.addRel("rel_u",...Zs[ba]),this.$=Zs[ba];break;case 63:Bs.addRel("rel_d",...Zs[ba]),this.$=Zs[ba];break;case 64:Bs.addRel("rel_l",...Zs[ba]),this.$=Zs[ba];break;case 65:Bs.addRel("rel_r",...Zs[ba]),this.$=Zs[ba];break;case 66:Bs.addRel("rel_b",...Zs[ba]),this.$=Zs[ba];break;case 67:Zs[ba].splice(0,1),Bs.addRel("rel",...Zs[ba]),this.$=Zs[ba];break;case 68:Bs.updateElStyle("update_el_style",...Zs[ba]),this.$=Zs[ba];break;case 69:Bs.updateRelStyle("update_rel_style",...Zs[ba]),this.$=Zs[ba];break;case 70:Bs.updateLayoutConfig("update_layout_config",...Zs[ba]),this.$=Zs[ba];break;case 71:this.$=[Zs[ba]];break;case 72:Zs[ba].unshift(Zs[ba-1]),this.$=Zs[ba];break;case 73:case 75:this.$=Zs[ba].trim();break;case 74:let fu={};fu[Zs[ba-1].trim()]=Zs[ba].trim(),this.$=fu;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:to,23:no,24:io,26:so,28:ao,29:49,30:61,32:62,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,43:23,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Fo,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs},{13:70,19:20,20:21,21:22,22:to,23:no,24:io,26:so,28:ao,29:49,30:61,32:62,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,43:23,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Fo,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs},{13:71,19:20,20:21,21:22,22:to,23:no,24:io,26:so,28:ao,29:49,30:61,32:62,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,43:23,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Fo,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs},{13:72,19:20,20:21,21:22,22:to,23:no,24:io,26:so,28:ao,29:49,30:61,32:62,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,43:23,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Fo,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs},{13:73,19:20,20:21,21:22,22:to,23:no,24:io,26:so,28:ao,29:49,30:61,32:62,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,43:23,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Fo,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs},{14:[1,74]},eo(ga,[2,13],{43:23,29:49,30:61,32:62,20:75,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Fo,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs}),eo(ga,[2,14]),eo(Fs,[2,16],{12:[1,76]}),eo(ga,[2,36],{12:[1,77]}),eo(Js,[2,19]),eo(Js,[2,20]),{25:[1,78]},{27:[1,79]},eo(Js,[2,23]),{35:80,75:81,76:Vs,77:El,79:yl,80:Gl},{35:86,75:81,76:Vs,77:El,79:yl,80:Gl},{35:87,75:81,76:Vs,77:El,79:yl,80:Gl},{35:88,75:81,76:Vs,77:El,79:yl,80:Gl},{35:89,75:81,76:Vs,77:El,79:yl,80:Gl},{35:90,75:81,76:Vs,77:El,79:yl,80:Gl},{35:91,75:81,76:Vs,77:El,79:yl,80:Gl},{35:92,75:81,76:Vs,77:El,79:yl,80:Gl},{35:93,75:81,76:Vs,77:El,79:yl,80:Gl},{35:94,75:81,76:Vs,77:El,79:yl,80:Gl},{35:95,75:81,76:Vs,77:El,79:yl,80:Gl},{35:96,75:81,76:Vs,77:El,79:yl,80:Gl},{35:97,75:81,76:Vs,77:El,79:yl,80:Gl},{35:98,75:81,76:Vs,77:El,79:yl,80:Gl},{35:99,75:81,76:Vs,77:El,79:yl,80:Gl},{35:100,75:81,76:Vs,77:El,79:yl,80:Gl},{35:101,75:81,76:Vs,77:El,79:yl,80:Gl},{35:102,75:81,76:Vs,77:El,79:yl,80:Gl},{35:103,75:81,76:Vs,77:El,79:yl,80:Gl},{35:104,75:81,76:Vs,77:El,79:yl,80:Gl},eo(Qs,[2,59]),{35:105,75:81,76:Vs,77:El,79:yl,80:Gl},{35:106,75:81,76:Vs,77:El,79:yl,80:Gl},{35:107,75:81,76:Vs,77:El,79:yl,80:Gl},{35:108,75:81,76:Vs,77:El,79:yl,80:Gl},{35:109,75:81,76:Vs,77:El,79:yl,80:Gl},{35:110,75:81,76:Vs,77:El,79:yl,80:Gl},{35:111,75:81,76:Vs,77:El,79:yl,80:Gl},{35:112,75:81,76:Vs,77:El,79:yl,80:Gl},{35:113,75:81,76:Vs,77:El,79:yl,80:Gl},{35:114,75:81,76:Vs,77:El,79:yl,80:Gl},{35:115,75:81,76:Vs,77:El,79:yl,80:Gl},{20:116,29:49,30:61,32:62,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,43:23,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Fo,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs},{12:[1,118],33:[1,117]},{35:119,75:81,76:Vs,77:El,79:yl,80:Gl},{35:120,75:81,76:Vs,77:El,79:yl,80:Gl},{35:121,75:81,76:Vs,77:El,79:yl,80:Gl},{35:122,75:81,76:Vs,77:El,79:yl,80:Gl},{35:123,75:81,76:Vs,77:El,79:yl,80:Gl},{35:124,75:81,76:Vs,77:El,79:yl,80:Gl},{35:125,75:81,76:Vs,77:El,79:yl,80:Gl},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},eo(ga,[2,15]),eo(Fs,[2,17],{21:22,19:130,22:to,23:no,24:io,26:so,28:ao}),eo(ga,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:to,23:no,24:io,26:so,28:ao,34:lo,36:uo,37:ho,38:go,39:mo,40:yo,41:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No,51:Mo,52:Bo,53:Fo,54:Lo,55:Go,56:Do,57:Uo,58:Ho,59:Yo,60:qo,61:Jo,62:ps,63:Qo,64:hs,65:gs,66:ys,67:vs,68:ks,69:Os,70:Ts,71:Xs,72:Ws,73:Ps,74:qs}),eo(Js,[2,21]),eo(Js,[2,22]),eo(Qs,[2,39]),eo(du,[2,71],{75:81,35:132,76:Vs,77:El,79:yl,80:Gl}),eo(Ol,[2,73]),{78:[1,133]},eo(Ol,[2,75]),eo(Ol,[2,76]),eo(Qs,[2,40]),eo(Qs,[2,41]),eo(Qs,[2,42]),eo(Qs,[2,43]),eo(Qs,[2,44]),eo(Qs,[2,45]),eo(Qs,[2,46]),eo(Qs,[2,47]),eo(Qs,[2,48]),eo(Qs,[2,49]),eo(Qs,[2,50]),eo(Qs,[2,51]),eo(Qs,[2,52]),eo(Qs,[2,53]),eo(Qs,[2,54]),eo(Qs,[2,55]),eo(Qs,[2,56]),eo(Qs,[2,57]),eo(Qs,[2,58]),eo(Qs,[2,60]),eo(Qs,[2,61]),eo(Qs,[2,62]),eo(Qs,[2,63]),eo(Qs,[2,64]),eo(Qs,[2,65]),eo(Qs,[2,66]),eo(Qs,[2,67]),eo(Qs,[2,68]),eo(Qs,[2,69]),eo(Qs,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},eo(Fu,[2,28]),eo(Fu,[2,29]),eo(Fu,[2,30]),eo(Fu,[2,31]),eo(Fu,[2,32]),eo(Fu,[2,33]),eo(Fu,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},eo(Fs,[2,18]),eo(ga,[2,38]),eo(du,[2,72]),eo(Ol,[2,74]),eo(Qs,[2,24]),eo(Qs,[2,35]),eo(ju,[2,25]),eo(ju,[2,26],{12:[1,138]}),eo(ju,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(Kl,Is){if(Is.recoverable)this.trace(Kl);else{var Ks=new Error(Kl);throw Ks.hash=Is,Ks}},parse:function(Kl){var Is=this,Ks=[0],Bs=[],Ds=[null],Zs=[],Cl=this.table,ba="",fu=0,Lu=0,e1=2,Gu=1,w1=Zs.slice.call(arguments,1),Zu=Object.create(this.lexer),L1={yy:{}};for(var K1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,K1)&&(L1.yy[K1]=this.yy[K1]);Zu.setInput(Kl,L1.yy),L1.yy.lexer=Zu,L1.yy.parser=this,typeof Zu.yylloc>"u"&&(Zu.yylloc={});var yp=Zu.yylloc;Zs.push(yp);var wp=Zu.options&&Zu.options.ranges;typeof L1.yy.parseError=="function"?this.parseError=L1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j0(){var up;return up=Bs.pop()||Zu.lex()||Gu,typeof up!="number"&&(up instanceof Array&&(Bs=up,up=Bs.pop()),up=Is.symbols_[up]||up),up}for(var h0,cp,k0,ap,x0={},b0,P1,c1,V0;;){if(cp=Ks[Ks.length-1],this.defaultActions[cp]?k0=this.defaultActions[cp]:((h0===null||typeof h0>"u")&&(h0=j0()),k0=Cl[cp]&&Cl[cp][h0]),typeof k0>"u"||!k0.length||!k0[0]){var P0="";V0=[];for(b0 in Cl[cp])this.terminals_[b0]&&b0>e1&&V0.push("'"+this.terminals_[b0]+"'");Zu.showPosition?P0="Parse error on line "+(fu+1)+`: `+Zu.showPosition()+` Expecting `+V0.join(", ")+", got '"+(this.terminals_[h0]||h0)+"'":P0="Parse error on line "+(fu+1)+": Unexpected "+(h0==Gu?"end of input":"'"+(this.terminals_[h0]||h0)+"'"),this.parseError(P0,{text:Zu.match,token:this.terminals_[h0]||h0,line:Zu.yylineno,loc:yp,expected:V0})}if(k0[0]instanceof Array&&k0.length>1)throw new Error("Parse Error: multiple actions possible at state: "+cp+", token: "+h0);switch(k0[0]){case 1:Ks.push(h0),Ds.push(Zu.yytext),Zs.push(Zu.yylloc),Ks.push(k0[1]),h0=null,Lu=Zu.yyleng,ba=Zu.yytext,fu=Zu.yylineno,yp=Zu.yylloc;break;case 2:if(P1=this.productions_[k0[1]][1],x0.$=Ds[Ds.length-P1],x0._$={first_line:Zs[Zs.length-(P1||1)].first_line,last_line:Zs[Zs.length-1].last_line,first_column:Zs[Zs.length-(P1||1)].first_column,last_column:Zs[Zs.length-1].last_column},wp&&(x0._$.range=[Zs[Zs.length-(P1||1)].range[0],Zs[Zs.length-1].range[1]]),ap=this.performAction.apply(x0,[ba,Lu,fu,L1.yy,k0[1],Ds,Zs].concat(w1)),typeof ap<"u")return ap;P1&&(Ks=Ks.slice(0,-1*P1*2),Ds=Ds.slice(0,-1*P1),Zs=Zs.slice(0,-1*P1)),Ks.push(this.productions_[k0[1]][0]),Ds.push(x0.$),Zs.push(x0._$),c1=Cl[Ks[Ks.length-2]][Ks[Ks.length-1]],Ks.push(c1);break;case 3:return!0}}return!0}},y1=function(){var $u={EOF:1,parseError:function(Is,Ks){if(this.yy.parser)this.yy.parser.parseError(Is,Ks);else throw new Error(Is)},setInput:function(Kl,Is){return this.yy=Is||this.yy||{},this._input=Kl,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Kl=this._input[0];this.yytext+=Kl,this.yyleng++,this.offset++,this.match+=Kl,this.matched+=Kl;var Is=Kl.match(/(?:\r\n?|\n).*/g);return Is?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Kl},unput:function(Kl){var Is=Kl.length,Ks=Kl.split(/(?:\r\n?|\n)/g);this._input=Kl+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Is),this.offset-=Is;var Bs=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ks.length-1&&(this.yylineno-=Ks.length-1);var Ds=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ks?(Ks.length===Bs.length?this.yylloc.first_column:0)+Bs[Bs.length-Ks.length].length-Ks[0].length:this.yylloc.first_column-Is},this.options.ranges&&(this.yylloc.range=[Ds[0],Ds[0]+this.yyleng-Is]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Kl){this.unput(this.match.slice(Kl))},pastInput:function(){var Kl=this.matched.substr(0,this.matched.length-this.match.length);return(Kl.length>20?"...":"")+Kl.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Kl=this.match;return Kl.length<20&&(Kl+=this._input.substr(0,20-Kl.length)),(Kl.substr(0,20)+(Kl.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Kl=this.pastInput(),Is=new Array(Kl.length+1).join("-");return Kl+this.upcomingInput()+` @@ -2291,7 +2291,7 @@ Expecting `+V0.join(", ")+", got '"+(this.terminals_[h0]||h0)+"'":P0="Parse erro stroke: ${eo.personBorder}; fill: ${eo.personBkg}; } -`,styles$9=getStyles$e,diagram$l={parser:parser$1$e,db:db$f,renderer:renderer$h,styles:styles$9,init:({c4:eo,wrap:to})=>{renderer$h.setConf(eo),db$f.setWrap(to)}},c4DiagramB2a90758=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$l},Symbol.toStringTag,{value:"Module"}));var parser$h=function(){var eo=function(J0,S1,O1,r0){for(O1=O1||{},r0=J0.length;r0--;O1[J0[r0]]=S1);return O1},to=[1,4],no=[1,3],io=[1,5],so=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],ao=[2,2],lo=[1,13],uo=[1,14],ho=[1,15],go=[1,16],mo=[1,23],yo=[1,25],So=[1,26],_o=[1,27],ko=[1,49],Co=[1,48],$o=[1,29],Ro=[1,30],Oo=[1,31],No=[1,32],Mo=[1,33],Bo=[1,44],Po=[1,46],Lo=[1,42],Go=[1,47],Do=[1,43],Uo=[1,50],Ho=[1,45],Yo=[1,51],qo=[1,52],Jo=[1,34],ps=[1,35],Qo=[1,36],hs=[1,37],gs=[1,57],ys=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],vs=[1,61],ks=[1,60],Os=[1,62],Ts=[8,9,11,73,75],Xs=[1,88],Ws=[1,93],Ps=[1,92],qs=[1,89],ga=[1,85],Fs=[1,91],Js=[1,87],Vs=[1,94],El=[1,90],yl=[1,95],Gl=[1,86],Qs=[8,9,10,11,73,75],du=[8,9,10,11,44,73,75],Ol=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Fu=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],ju=[42,58,86,99,102,103,106,108,111,112,113],F1=[1,121],y1=[1,120],r1=[1,128],$u=[1,142],Kl=[1,143],Is=[1,144],Ks=[1,145],Bs=[1,130],Ds=[1,132],Zs=[1,136],Cl=[1,137],ba=[1,138],fu=[1,139],Lu=[1,140],e1=[1,141],Gu=[1,146],w1=[1,147],Zu=[1,126],L1=[1,127],K1=[1,134],yp=[1,129],wp=[1,133],j0=[1,131],h0=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],cp=[1,149],k0=[8,9,11],ap=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],x0=[1,169],b0=[1,165],P1=[1,166],c1=[1,170],V0=[1,167],P0=[1,168],up=[75,113,116],Lp=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mv=[10,103],$v=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],Gv=[1,235],C1=[1,233],Ll=[1,237],Ul=[1,231],_l=[1,232],$l=[1,234],Us=[1,236],Rl=[1,238],Sl=[1,255],eu=[8,9,11,103],_c=[8,9,10,11,58,81,102,103,106,107,108,109],zu={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(S1,O1,r0,I1,R0,tu,T2){var hu=tu.length-1;switch(R0){case 2:this.$=[];break;case 3:(!Array.isArray(tu[hu])||tu[hu].length>0)&&tu[hu-1].push(tu[hu]),this.$=tu[hu-1];break;case 4:case 176:this.$=tu[hu];break;case 11:I1.setDirection("TB"),this.$="TB";break;case 12:I1.setDirection(tu[hu-1]),this.$=tu[hu-1];break;case 27:this.$=tu[hu-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=I1.addSubGraph(tu[hu-6],tu[hu-1],tu[hu-4]);break;case 34:this.$=I1.addSubGraph(tu[hu-3],tu[hu-1],tu[hu-3]);break;case 35:this.$=I1.addSubGraph(void 0,tu[hu-1],void 0);break;case 37:this.$=tu[hu].trim(),I1.setAccTitle(this.$);break;case 38:case 39:this.$=tu[hu].trim(),I1.setAccDescription(this.$);break;case 43:I1.addLink(tu[hu-2].stmt,tu[hu],tu[hu-1]),this.$={stmt:tu[hu],nodes:tu[hu].concat(tu[hu-2].nodes)};break;case 44:I1.addLink(tu[hu-3].stmt,tu[hu-1],tu[hu-2]),this.$={stmt:tu[hu-1],nodes:tu[hu-1].concat(tu[hu-3].nodes)};break;case 45:this.$={stmt:tu[hu-1],nodes:tu[hu-1]};break;case 46:this.$={stmt:tu[hu],nodes:tu[hu]};break;case 47:this.$=[tu[hu]];break;case 48:this.$=tu[hu-4].concat(tu[hu]);break;case 49:this.$=tu[hu];break;case 50:this.$=tu[hu-2],I1.setClass(tu[hu-2],tu[hu]);break;case 51:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"square");break;case 52:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"doublecircle");break;case 53:this.$=tu[hu-5],I1.addVertex(tu[hu-5],tu[hu-2],"circle");break;case 54:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"ellipse");break;case 55:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"stadium");break;case 56:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"subroutine");break;case 57:this.$=tu[hu-7],I1.addVertex(tu[hu-7],tu[hu-1],"rect",void 0,void 0,void 0,Object.fromEntries([[tu[hu-5],tu[hu-3]]]));break;case 58:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"cylinder");break;case 59:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"round");break;case 60:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"diamond");break;case 61:this.$=tu[hu-5],I1.addVertex(tu[hu-5],tu[hu-2],"hexagon");break;case 62:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"odd");break;case 63:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"trapezoid");break;case 64:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"inv_trapezoid");break;case 65:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"lean_right");break;case 66:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"lean_left");break;case 67:this.$=tu[hu],I1.addVertex(tu[hu]);break;case 68:tu[hu-1].text=tu[hu],this.$=tu[hu-1];break;case 69:case 70:tu[hu-2].text=tu[hu-1],this.$=tu[hu-2];break;case 71:this.$=tu[hu];break;case 72:var Z2=I1.destructLink(tu[hu],tu[hu-2]);this.$={type:Z2.type,stroke:Z2.stroke,length:Z2.length,text:tu[hu-1]};break;case 73:this.$={text:tu[hu],type:"text"};break;case 74:this.$={text:tu[hu-1].text+""+tu[hu],type:tu[hu-1].type};break;case 75:this.$={text:tu[hu],type:"string"};break;case 76:this.$={text:tu[hu],type:"markdown"};break;case 77:var Z2=I1.destructLink(tu[hu]);this.$={type:Z2.type,stroke:Z2.stroke,length:Z2.length};break;case 78:this.$=tu[hu-1];break;case 79:this.$={text:tu[hu],type:"text"};break;case 80:this.$={text:tu[hu-1].text+""+tu[hu],type:tu[hu-1].type};break;case 81:this.$={text:tu[hu],type:"string"};break;case 82:case 97:this.$={text:tu[hu],type:"markdown"};break;case 94:this.$={text:tu[hu],type:"text"};break;case 95:this.$={text:tu[hu-1].text+""+tu[hu],type:tu[hu-1].type};break;case 96:this.$={text:tu[hu],type:"text"};break;case 98:this.$=tu[hu-4],I1.addClass(tu[hu-2],tu[hu]);break;case 99:this.$=tu[hu-4],I1.setClass(tu[hu-2],tu[hu]);break;case 100:case 108:this.$=tu[hu-1],I1.setClickEvent(tu[hu-1],tu[hu]);break;case 101:case 109:this.$=tu[hu-3],I1.setClickEvent(tu[hu-3],tu[hu-2]),I1.setTooltip(tu[hu-3],tu[hu]);break;case 102:this.$=tu[hu-2],I1.setClickEvent(tu[hu-2],tu[hu-1],tu[hu]);break;case 103:this.$=tu[hu-4],I1.setClickEvent(tu[hu-4],tu[hu-3],tu[hu-2]),I1.setTooltip(tu[hu-4],tu[hu]);break;case 104:this.$=tu[hu-2],I1.setLink(tu[hu-2],tu[hu]);break;case 105:this.$=tu[hu-4],I1.setLink(tu[hu-4],tu[hu-2]),I1.setTooltip(tu[hu-4],tu[hu]);break;case 106:this.$=tu[hu-4],I1.setLink(tu[hu-4],tu[hu-2],tu[hu]);break;case 107:this.$=tu[hu-6],I1.setLink(tu[hu-6],tu[hu-4],tu[hu]),I1.setTooltip(tu[hu-6],tu[hu-2]);break;case 110:this.$=tu[hu-1],I1.setLink(tu[hu-1],tu[hu]);break;case 111:this.$=tu[hu-3],I1.setLink(tu[hu-3],tu[hu-2]),I1.setTooltip(tu[hu-3],tu[hu]);break;case 112:this.$=tu[hu-3],I1.setLink(tu[hu-3],tu[hu-2],tu[hu]);break;case 113:this.$=tu[hu-5],I1.setLink(tu[hu-5],tu[hu-4],tu[hu]),I1.setTooltip(tu[hu-5],tu[hu-2]);break;case 114:this.$=tu[hu-4],I1.addVertex(tu[hu-2],void 0,void 0,tu[hu]);break;case 115:this.$=tu[hu-4],I1.updateLink([tu[hu-2]],tu[hu]);break;case 116:this.$=tu[hu-4],I1.updateLink(tu[hu-2],tu[hu]);break;case 117:this.$=tu[hu-8],I1.updateLinkInterpolate([tu[hu-6]],tu[hu-2]),I1.updateLink([tu[hu-6]],tu[hu]);break;case 118:this.$=tu[hu-8],I1.updateLinkInterpolate(tu[hu-6],tu[hu-2]),I1.updateLink(tu[hu-6],tu[hu]);break;case 119:this.$=tu[hu-6],I1.updateLinkInterpolate([tu[hu-4]],tu[hu]);break;case 120:this.$=tu[hu-6],I1.updateLinkInterpolate(tu[hu-4],tu[hu]);break;case 121:case 123:this.$=[tu[hu]];break;case 122:case 124:tu[hu-2].push(tu[hu]),this.$=tu[hu-2];break;case 126:this.$=tu[hu-1]+tu[hu];break;case 174:this.$=tu[hu];break;case 175:this.$=tu[hu-1]+""+tu[hu];break;case 177:this.$=tu[hu-1]+""+tu[hu];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:to,10:no,12:io},{1:[3]},eo(so,ao,{5:6}),{4:7,9:to,10:no,12:io},{4:8,9:to,10:no,12:io},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:lo,9:uo,10:ho,11:go,20:17,22:18,23:19,24:20,25:21,26:22,27:mo,33:24,34:yo,36:So,38:_o,40:28,41:38,42:ko,43:39,45:40,58:Co,81:$o,82:Ro,83:Oo,84:No,85:Mo,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo,118:Jo,119:ps,120:Qo,121:hs},eo(so,[2,9]),eo(so,[2,10]),eo(so,[2,11]),{8:[1,54],9:[1,55],10:gs,15:53,18:56},eo(ys,[2,3]),eo(ys,[2,4]),eo(ys,[2,5]),eo(ys,[2,6]),eo(ys,[2,7]),eo(ys,[2,8]),{8:vs,9:ks,11:Os,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:vs,9:ks,11:Os,21:66},{8:vs,9:ks,11:Os,21:67},{8:vs,9:ks,11:Os,21:68},{8:vs,9:ks,11:Os,21:69},{8:vs,9:ks,11:Os,21:70},{8:vs,9:ks,10:[1,71],11:Os,21:72},eo(ys,[2,36]),{35:[1,73]},{37:[1,74]},eo(ys,[2,39]),eo(Ts,[2,46],{18:75,10:gs}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:Xs,42:Ws,58:Ps,77:[1,83],86:qs,92:[1,80],94:[1,81],98:82,102:ga,103:Fs,106:Js,108:Vs,111:El,112:yl,113:Gl,117:84},eo(ys,[2,178]),eo(ys,[2,179]),eo(ys,[2,180]),eo(ys,[2,181]),eo(Qs,[2,47]),eo(Qs,[2,49],{44:[1,96]}),eo(du,[2,67],{110:109,29:[1,97],42:ko,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:Co,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,111:Ho,112:Yo,113:qo}),eo(Ol,[2,174]),eo(Ol,[2,135]),eo(Ol,[2,136]),eo(Ol,[2,137]),eo(Ol,[2,138]),eo(Ol,[2,139]),eo(Ol,[2,140]),eo(Ol,[2,141]),eo(Ol,[2,142]),eo(Ol,[2,143]),eo(Ol,[2,144]),eo(Ol,[2,145]),eo(so,[2,12]),eo(so,[2,18]),eo(so,[2,19]),{9:[1,110]},eo(Fu,[2,26],{18:111,10:gs}),eo(ys,[2,27]),{40:112,41:38,42:ko,43:39,45:40,58:Co,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},eo(ys,[2,40]),eo(ys,[2,41]),eo(ys,[2,42]),eo(ju,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:F1,116:y1},eo([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),eo(ys,[2,28]),eo(ys,[2,29]),eo(ys,[2,30]),eo(ys,[2,31]),eo(ys,[2,32]),{10:r1,12:$u,14:Kl,27:Is,28:122,32:Ks,42:Bs,58:Ds,73:Zs,77:[1,124],78:[1,125],80:135,81:Cl,82:ba,83:fu,84:Lu,85:e1,86:Gu,87:w1,88:123,102:Zu,106:L1,108:K1,111:yp,112:wp,113:j0},eo(h0,ao,{5:148}),eo(ys,[2,37]),eo(ys,[2,38]),eo(Ts,[2,45],{42:cp}),{42:ko,45:150,58:Co,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},{99:[1,151],100:152,102:[1,153]},{42:ko,45:154,58:Co,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},{42:ko,45:155,58:Co,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},eo(k0,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},eo(k0,[2,108],{117:160,10:[1,159],14:Xs,42:Ws,58:Ps,86:qs,102:ga,103:Fs,106:Js,108:Vs,111:El,112:yl,113:Gl}),eo(k0,[2,110],{10:[1,161]}),eo(ap,[2,176]),eo(ap,[2,163]),eo(ap,[2,164]),eo(ap,[2,165]),eo(ap,[2,166]),eo(ap,[2,167]),eo(ap,[2,168]),eo(ap,[2,169]),eo(ap,[2,170]),eo(ap,[2,171]),eo(ap,[2,172]),eo(ap,[2,173]),{42:ko,45:162,58:Co,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},{30:163,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:171,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:173,48:[1,172],65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:174,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:175,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:176,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{106:[1,177]},{30:178,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:179,63:[1,180],65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:181,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:182,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:183,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},eo(Ol,[2,175]),eo(so,[2,20]),eo(Fu,[2,25]),eo(Ts,[2,43],{18:184,10:gs}),eo(ju,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{75:[1,188],76:189,113:F1,116:y1},eo(up,[2,73]),eo(up,[2,75]),eo(up,[2,76]),eo(up,[2,161]),eo(up,[2,162]),{8:vs,9:ks,10:r1,11:Os,12:$u,14:Kl,21:191,27:Is,29:[1,190],32:Ks,42:Bs,58:Ds,73:Zs,80:135,81:Cl,82:ba,83:fu,84:Lu,85:e1,86:Gu,87:w1,88:192,102:Zu,106:L1,108:K1,111:yp,112:wp,113:j0},eo(Lp,[2,94]),eo(Lp,[2,96]),eo(Lp,[2,97]),eo(Lp,[2,150]),eo(Lp,[2,151]),eo(Lp,[2,152]),eo(Lp,[2,153]),eo(Lp,[2,154]),eo(Lp,[2,155]),eo(Lp,[2,156]),eo(Lp,[2,157]),eo(Lp,[2,158]),eo(Lp,[2,159]),eo(Lp,[2,160]),eo(Lp,[2,83]),eo(Lp,[2,84]),eo(Lp,[2,85]),eo(Lp,[2,86]),eo(Lp,[2,87]),eo(Lp,[2,88]),eo(Lp,[2,89]),eo(Lp,[2,90]),eo(Lp,[2,91]),eo(Lp,[2,92]),eo(Lp,[2,93]),{6:11,7:12,8:lo,9:uo,10:ho,11:go,20:17,22:18,23:19,24:20,25:21,26:22,27:mo,32:[1,193],33:24,34:yo,36:So,38:_o,40:28,41:38,42:ko,43:39,45:40,58:Co,81:$o,82:Ro,83:Oo,84:No,85:Mo,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo,118:Jo,119:ps,120:Qo,121:hs},{10:gs,18:194},{10:[1,195],42:ko,58:Co,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:109,111:Ho,112:Yo,113:qo},{10:[1,196]},{10:[1,197],103:[1,198]},eo(Mv,[2,121]),{10:[1,199],42:ko,58:Co,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:109,111:Ho,112:Yo,113:qo},{10:[1,200],42:ko,58:Co,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:109,111:Ho,112:Yo,113:qo},{77:[1,201]},eo(k0,[2,102],{10:[1,202]}),eo(k0,[2,104],{10:[1,203]}),{77:[1,204]},eo(ap,[2,177]),{77:[1,205],95:[1,206]},eo(Qs,[2,50],{110:109,42:ko,58:Co,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,111:Ho,112:Yo,113:qo}),{31:[1,207],65:x0,79:208,113:c1,114:V0,115:P0},eo($v,[2,79]),eo($v,[2,81]),eo($v,[2,82]),eo($v,[2,146]),eo($v,[2,147]),eo($v,[2,148]),eo($v,[2,149]),{47:[1,209],65:x0,79:208,113:c1,114:V0,115:P0},{30:210,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{49:[1,211],65:x0,79:208,113:c1,114:V0,115:P0},{51:[1,212],65:x0,79:208,113:c1,114:V0,115:P0},{53:[1,213],65:x0,79:208,113:c1,114:V0,115:P0},{55:[1,214],65:x0,79:208,113:c1,114:V0,115:P0},{58:[1,215]},{62:[1,216],65:x0,79:208,113:c1,114:V0,115:P0},{64:[1,217],65:x0,79:208,113:c1,114:V0,115:P0},{30:218,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{31:[1,219],65:x0,79:208,113:c1,114:V0,115:P0},{65:x0,67:[1,220],69:[1,221],79:208,113:c1,114:V0,115:P0},{65:x0,67:[1,223],69:[1,222],79:208,113:c1,114:V0,115:P0},eo(Ts,[2,44],{42:cp}),eo(ju,[2,70]),eo(ju,[2,69]),{60:[1,224],65:x0,79:208,113:c1,114:V0,115:P0},eo(ju,[2,72]),eo(up,[2,74]),{30:225,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},eo(h0,ao,{5:226}),eo(Lp,[2,95]),eo(ys,[2,35]),{41:227,42:ko,43:39,45:40,58:Co,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},{10:Gv,58:C1,81:Ll,89:228,102:Ul,104:229,105:230,106:_l,107:$l,108:Us,109:Rl},{10:Gv,58:C1,81:Ll,89:239,101:[1,240],102:Ul,104:229,105:230,106:_l,107:$l,108:Us,109:Rl},{10:Gv,58:C1,81:Ll,89:241,101:[1,242],102:Ul,104:229,105:230,106:_l,107:$l,108:Us,109:Rl},{102:[1,243]},{10:Gv,58:C1,81:Ll,89:244,102:Ul,104:229,105:230,106:_l,107:$l,108:Us,109:Rl},{42:ko,45:245,58:Co,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},eo(k0,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},eo(k0,[2,109]),eo(k0,[2,111],{10:[1,249]}),eo(k0,[2,112]),eo(du,[2,51]),eo($v,[2,80]),eo(du,[2,52]),{49:[1,250],65:x0,79:208,113:c1,114:V0,115:P0},eo(du,[2,59]),eo(du,[2,54]),eo(du,[2,55]),eo(du,[2,56]),{106:[1,251]},eo(du,[2,58]),eo(du,[2,60]),{64:[1,252],65:x0,79:208,113:c1,114:V0,115:P0},eo(du,[2,62]),eo(du,[2,63]),eo(du,[2,65]),eo(du,[2,64]),eo(du,[2,66]),eo([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:x0,79:208,113:c1,114:V0,115:P0},{6:11,7:12,8:lo,9:uo,10:ho,11:go,20:17,22:18,23:19,24:20,25:21,26:22,27:mo,32:[1,254],33:24,34:yo,36:So,38:_o,40:28,41:38,42:ko,43:39,45:40,58:Co,81:$o,82:Ro,83:Oo,84:No,85:Mo,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo,118:Jo,119:ps,120:Qo,121:hs},eo(Qs,[2,48]),eo(k0,[2,114],{103:Sl}),eo(eu,[2,123],{105:256,10:Gv,58:C1,81:Ll,102:Ul,106:_l,107:$l,108:Us,109:Rl}),eo(_c,[2,125]),eo(_c,[2,127]),eo(_c,[2,128]),eo(_c,[2,129]),eo(_c,[2,130]),eo(_c,[2,131]),eo(_c,[2,132]),eo(_c,[2,133]),eo(_c,[2,134]),eo(k0,[2,115],{103:Sl}),{10:[1,257]},eo(k0,[2,116],{103:Sl}),{10:[1,258]},eo(Mv,[2,122]),eo(k0,[2,98],{103:Sl}),eo(k0,[2,99],{110:109,42:ko,58:Co,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,111:Ho,112:Yo,113:qo}),eo(k0,[2,103]),eo(k0,[2,105],{10:[1,259]}),eo(k0,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:vs,9:ks,11:Os,21:264},eo(ys,[2,34]),{10:Gv,58:C1,81:Ll,102:Ul,104:265,105:230,106:_l,107:$l,108:Us,109:Rl},eo(_c,[2,126]),{14:Xs,42:Ws,58:Ps,86:qs,98:266,102:ga,103:Fs,106:Js,108:Vs,111:El,112:yl,113:Gl,117:84},{14:Xs,42:Ws,58:Ps,86:qs,98:267,102:ga,103:Fs,106:Js,108:Vs,111:El,112:yl,113:Gl,117:84},{95:[1,268]},eo(k0,[2,113]),eo(du,[2,53]),{30:269,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},eo(du,[2,61]),eo(h0,ao,{5:270}),eo(eu,[2,124],{105:256,10:Gv,58:C1,81:Ll,102:Ul,106:_l,107:$l,108:Us,109:Rl}),eo(k0,[2,119],{117:160,10:[1,271],14:Xs,42:Ws,58:Ps,86:qs,102:ga,103:Fs,106:Js,108:Vs,111:El,112:yl,113:Gl}),eo(k0,[2,120],{117:160,10:[1,272],14:Xs,42:Ws,58:Ps,86:qs,102:ga,103:Fs,106:Js,108:Vs,111:El,112:yl,113:Gl}),eo(k0,[2,107]),{31:[1,273],65:x0,79:208,113:c1,114:V0,115:P0},{6:11,7:12,8:lo,9:uo,10:ho,11:go,20:17,22:18,23:19,24:20,25:21,26:22,27:mo,32:[1,274],33:24,34:yo,36:So,38:_o,40:28,41:38,42:ko,43:39,45:40,58:Co,81:$o,82:Ro,83:Oo,84:No,85:Mo,86:Bo,99:Po,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo,118:Jo,119:ps,120:Qo,121:hs},{10:Gv,58:C1,81:Ll,89:275,102:Ul,104:229,105:230,106:_l,107:$l,108:Us,109:Rl},{10:Gv,58:C1,81:Ll,89:276,102:Ul,104:229,105:230,106:_l,107:$l,108:Us,109:Rl},eo(du,[2,57]),eo(ys,[2,33]),eo(k0,[2,117],{103:Sl}),eo(k0,[2,118],{103:Sl})],defaultActions:{},parseError:function(S1,O1){if(O1.recoverable)this.trace(S1);else{var r0=new Error(S1);throw r0.hash=O1,r0}},parse:function(S1){var O1=this,r0=[0],I1=[],R0=[null],tu=[],T2=this.table,hu="",Z2=0,r_=0,G4=2,bE=1,hw=tu.slice.call(arguments,1),Ay=Object.create(this.lexer),NS={yy:{}};for(var i_ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,i_)&&(NS.yy[i_]=this.yy[i_]);Ay.setInput(S1,NS.yy),NS.yy.lexer=Ay,NS.yy.parser=this,typeof Ay.yylloc>"u"&&(Ay.yylloc={});var JE=Ay.yylloc;tu.push(JE);var _k=Ay.options&&Ay.options.ranges;typeof NS.yy.parseError=="function"?this.parseError=NS.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function W4(){var BS;return BS=I1.pop()||Ay.lex()||bE,typeof BS!="number"&&(BS instanceof Array&&(I1=BS,BS=I1.pop()),BS=O1.symbols_[BS]||BS),BS}for(var B2,DS,Tw,yE,LS={},U4,D_,K4,cC;;){if(DS=r0[r0.length-1],this.defaultActions[DS]?Tw=this.defaultActions[DS]:((B2===null||typeof B2>"u")&&(B2=W4()),Tw=T2[DS]&&T2[DS][B2]),typeof Tw>"u"||!Tw.length||!Tw[0]){var uC="";cC=[];for(U4 in T2[DS])this.terminals_[U4]&&U4>G4&&cC.push("'"+this.terminals_[U4]+"'");Ay.showPosition?uC="Parse error on line "+(Z2+1)+`: +`,styles$9=getStyles$e,diagram$l={parser:parser$1$e,db:db$f,renderer:renderer$h,styles:styles$9,init:({c4:eo,wrap:to})=>{renderer$h.setConf(eo),db$f.setWrap(to)}},c4DiagramB2a90758=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$l},Symbol.toStringTag,{value:"Module"}));var parser$h=function(){var eo=function(J0,S1,O1,r0){for(O1=O1||{},r0=J0.length;r0--;O1[J0[r0]]=S1);return O1},to=[1,4],no=[1,3],io=[1,5],so=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],ao=[2,2],lo=[1,13],uo=[1,14],ho=[1,15],go=[1,16],mo=[1,23],yo=[1,25],So=[1,26],_o=[1,27],ko=[1,49],Co=[1,48],$o=[1,29],Ro=[1,30],Oo=[1,31],No=[1,32],Mo=[1,33],Bo=[1,44],Fo=[1,46],Lo=[1,42],Go=[1,47],Do=[1,43],Uo=[1,50],Ho=[1,45],Yo=[1,51],qo=[1,52],Jo=[1,34],ps=[1,35],Qo=[1,36],hs=[1,37],gs=[1,57],ys=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],vs=[1,61],ks=[1,60],Os=[1,62],Ts=[8,9,11,73,75],Xs=[1,88],Ws=[1,93],Ps=[1,92],qs=[1,89],ga=[1,85],Fs=[1,91],Js=[1,87],Vs=[1,94],El=[1,90],yl=[1,95],Gl=[1,86],Qs=[8,9,10,11,73,75],du=[8,9,10,11,44,73,75],Ol=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Fu=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],ju=[42,58,86,99,102,103,106,108,111,112,113],F1=[1,121],y1=[1,120],r1=[1,128],$u=[1,142],Kl=[1,143],Is=[1,144],Ks=[1,145],Bs=[1,130],Ds=[1,132],Zs=[1,136],Cl=[1,137],ba=[1,138],fu=[1,139],Lu=[1,140],e1=[1,141],Gu=[1,146],w1=[1,147],Zu=[1,126],L1=[1,127],K1=[1,134],yp=[1,129],wp=[1,133],j0=[1,131],h0=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],cp=[1,149],k0=[8,9,11],ap=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],x0=[1,169],b0=[1,165],P1=[1,166],c1=[1,170],V0=[1,167],P0=[1,168],up=[75,113,116],Lp=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mv=[10,103],$v=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],Gv=[1,235],C1=[1,233],Ll=[1,237],Ul=[1,231],_l=[1,232],$l=[1,234],Us=[1,236],Rl=[1,238],Sl=[1,255],eu=[8,9,11,103],_c=[8,9,10,11,58,81,102,103,106,107,108,109],zu={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(S1,O1,r0,I1,R0,tu,T2){var hu=tu.length-1;switch(R0){case 2:this.$=[];break;case 3:(!Array.isArray(tu[hu])||tu[hu].length>0)&&tu[hu-1].push(tu[hu]),this.$=tu[hu-1];break;case 4:case 176:this.$=tu[hu];break;case 11:I1.setDirection("TB"),this.$="TB";break;case 12:I1.setDirection(tu[hu-1]),this.$=tu[hu-1];break;case 27:this.$=tu[hu-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=I1.addSubGraph(tu[hu-6],tu[hu-1],tu[hu-4]);break;case 34:this.$=I1.addSubGraph(tu[hu-3],tu[hu-1],tu[hu-3]);break;case 35:this.$=I1.addSubGraph(void 0,tu[hu-1],void 0);break;case 37:this.$=tu[hu].trim(),I1.setAccTitle(this.$);break;case 38:case 39:this.$=tu[hu].trim(),I1.setAccDescription(this.$);break;case 43:I1.addLink(tu[hu-2].stmt,tu[hu],tu[hu-1]),this.$={stmt:tu[hu],nodes:tu[hu].concat(tu[hu-2].nodes)};break;case 44:I1.addLink(tu[hu-3].stmt,tu[hu-1],tu[hu-2]),this.$={stmt:tu[hu-1],nodes:tu[hu-1].concat(tu[hu-3].nodes)};break;case 45:this.$={stmt:tu[hu-1],nodes:tu[hu-1]};break;case 46:this.$={stmt:tu[hu],nodes:tu[hu]};break;case 47:this.$=[tu[hu]];break;case 48:this.$=tu[hu-4].concat(tu[hu]);break;case 49:this.$=tu[hu];break;case 50:this.$=tu[hu-2],I1.setClass(tu[hu-2],tu[hu]);break;case 51:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"square");break;case 52:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"doublecircle");break;case 53:this.$=tu[hu-5],I1.addVertex(tu[hu-5],tu[hu-2],"circle");break;case 54:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"ellipse");break;case 55:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"stadium");break;case 56:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"subroutine");break;case 57:this.$=tu[hu-7],I1.addVertex(tu[hu-7],tu[hu-1],"rect",void 0,void 0,void 0,Object.fromEntries([[tu[hu-5],tu[hu-3]]]));break;case 58:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"cylinder");break;case 59:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"round");break;case 60:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"diamond");break;case 61:this.$=tu[hu-5],I1.addVertex(tu[hu-5],tu[hu-2],"hexagon");break;case 62:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"odd");break;case 63:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"trapezoid");break;case 64:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"inv_trapezoid");break;case 65:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"lean_right");break;case 66:this.$=tu[hu-3],I1.addVertex(tu[hu-3],tu[hu-1],"lean_left");break;case 67:this.$=tu[hu],I1.addVertex(tu[hu]);break;case 68:tu[hu-1].text=tu[hu],this.$=tu[hu-1];break;case 69:case 70:tu[hu-2].text=tu[hu-1],this.$=tu[hu-2];break;case 71:this.$=tu[hu];break;case 72:var Z2=I1.destructLink(tu[hu],tu[hu-2]);this.$={type:Z2.type,stroke:Z2.stroke,length:Z2.length,text:tu[hu-1]};break;case 73:this.$={text:tu[hu],type:"text"};break;case 74:this.$={text:tu[hu-1].text+""+tu[hu],type:tu[hu-1].type};break;case 75:this.$={text:tu[hu],type:"string"};break;case 76:this.$={text:tu[hu],type:"markdown"};break;case 77:var Z2=I1.destructLink(tu[hu]);this.$={type:Z2.type,stroke:Z2.stroke,length:Z2.length};break;case 78:this.$=tu[hu-1];break;case 79:this.$={text:tu[hu],type:"text"};break;case 80:this.$={text:tu[hu-1].text+""+tu[hu],type:tu[hu-1].type};break;case 81:this.$={text:tu[hu],type:"string"};break;case 82:case 97:this.$={text:tu[hu],type:"markdown"};break;case 94:this.$={text:tu[hu],type:"text"};break;case 95:this.$={text:tu[hu-1].text+""+tu[hu],type:tu[hu-1].type};break;case 96:this.$={text:tu[hu],type:"text"};break;case 98:this.$=tu[hu-4],I1.addClass(tu[hu-2],tu[hu]);break;case 99:this.$=tu[hu-4],I1.setClass(tu[hu-2],tu[hu]);break;case 100:case 108:this.$=tu[hu-1],I1.setClickEvent(tu[hu-1],tu[hu]);break;case 101:case 109:this.$=tu[hu-3],I1.setClickEvent(tu[hu-3],tu[hu-2]),I1.setTooltip(tu[hu-3],tu[hu]);break;case 102:this.$=tu[hu-2],I1.setClickEvent(tu[hu-2],tu[hu-1],tu[hu]);break;case 103:this.$=tu[hu-4],I1.setClickEvent(tu[hu-4],tu[hu-3],tu[hu-2]),I1.setTooltip(tu[hu-4],tu[hu]);break;case 104:this.$=tu[hu-2],I1.setLink(tu[hu-2],tu[hu]);break;case 105:this.$=tu[hu-4],I1.setLink(tu[hu-4],tu[hu-2]),I1.setTooltip(tu[hu-4],tu[hu]);break;case 106:this.$=tu[hu-4],I1.setLink(tu[hu-4],tu[hu-2],tu[hu]);break;case 107:this.$=tu[hu-6],I1.setLink(tu[hu-6],tu[hu-4],tu[hu]),I1.setTooltip(tu[hu-6],tu[hu-2]);break;case 110:this.$=tu[hu-1],I1.setLink(tu[hu-1],tu[hu]);break;case 111:this.$=tu[hu-3],I1.setLink(tu[hu-3],tu[hu-2]),I1.setTooltip(tu[hu-3],tu[hu]);break;case 112:this.$=tu[hu-3],I1.setLink(tu[hu-3],tu[hu-2],tu[hu]);break;case 113:this.$=tu[hu-5],I1.setLink(tu[hu-5],tu[hu-4],tu[hu]),I1.setTooltip(tu[hu-5],tu[hu-2]);break;case 114:this.$=tu[hu-4],I1.addVertex(tu[hu-2],void 0,void 0,tu[hu]);break;case 115:this.$=tu[hu-4],I1.updateLink([tu[hu-2]],tu[hu]);break;case 116:this.$=tu[hu-4],I1.updateLink(tu[hu-2],tu[hu]);break;case 117:this.$=tu[hu-8],I1.updateLinkInterpolate([tu[hu-6]],tu[hu-2]),I1.updateLink([tu[hu-6]],tu[hu]);break;case 118:this.$=tu[hu-8],I1.updateLinkInterpolate(tu[hu-6],tu[hu-2]),I1.updateLink(tu[hu-6],tu[hu]);break;case 119:this.$=tu[hu-6],I1.updateLinkInterpolate([tu[hu-4]],tu[hu]);break;case 120:this.$=tu[hu-6],I1.updateLinkInterpolate(tu[hu-4],tu[hu]);break;case 121:case 123:this.$=[tu[hu]];break;case 122:case 124:tu[hu-2].push(tu[hu]),this.$=tu[hu-2];break;case 126:this.$=tu[hu-1]+tu[hu];break;case 174:this.$=tu[hu];break;case 175:this.$=tu[hu-1]+""+tu[hu];break;case 177:this.$=tu[hu-1]+""+tu[hu];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:to,10:no,12:io},{1:[3]},eo(so,ao,{5:6}),{4:7,9:to,10:no,12:io},{4:8,9:to,10:no,12:io},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:lo,9:uo,10:ho,11:go,20:17,22:18,23:19,24:20,25:21,26:22,27:mo,33:24,34:yo,36:So,38:_o,40:28,41:38,42:ko,43:39,45:40,58:Co,81:$o,82:Ro,83:Oo,84:No,85:Mo,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo,118:Jo,119:ps,120:Qo,121:hs},eo(so,[2,9]),eo(so,[2,10]),eo(so,[2,11]),{8:[1,54],9:[1,55],10:gs,15:53,18:56},eo(ys,[2,3]),eo(ys,[2,4]),eo(ys,[2,5]),eo(ys,[2,6]),eo(ys,[2,7]),eo(ys,[2,8]),{8:vs,9:ks,11:Os,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:vs,9:ks,11:Os,21:66},{8:vs,9:ks,11:Os,21:67},{8:vs,9:ks,11:Os,21:68},{8:vs,9:ks,11:Os,21:69},{8:vs,9:ks,11:Os,21:70},{8:vs,9:ks,10:[1,71],11:Os,21:72},eo(ys,[2,36]),{35:[1,73]},{37:[1,74]},eo(ys,[2,39]),eo(Ts,[2,46],{18:75,10:gs}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:Xs,42:Ws,58:Ps,77:[1,83],86:qs,92:[1,80],94:[1,81],98:82,102:ga,103:Fs,106:Js,108:Vs,111:El,112:yl,113:Gl,117:84},eo(ys,[2,178]),eo(ys,[2,179]),eo(ys,[2,180]),eo(ys,[2,181]),eo(Qs,[2,47]),eo(Qs,[2,49],{44:[1,96]}),eo(du,[2,67],{110:109,29:[1,97],42:ko,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:Co,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,111:Ho,112:Yo,113:qo}),eo(Ol,[2,174]),eo(Ol,[2,135]),eo(Ol,[2,136]),eo(Ol,[2,137]),eo(Ol,[2,138]),eo(Ol,[2,139]),eo(Ol,[2,140]),eo(Ol,[2,141]),eo(Ol,[2,142]),eo(Ol,[2,143]),eo(Ol,[2,144]),eo(Ol,[2,145]),eo(so,[2,12]),eo(so,[2,18]),eo(so,[2,19]),{9:[1,110]},eo(Fu,[2,26],{18:111,10:gs}),eo(ys,[2,27]),{40:112,41:38,42:ko,43:39,45:40,58:Co,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},eo(ys,[2,40]),eo(ys,[2,41]),eo(ys,[2,42]),eo(ju,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:F1,116:y1},eo([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),eo(ys,[2,28]),eo(ys,[2,29]),eo(ys,[2,30]),eo(ys,[2,31]),eo(ys,[2,32]),{10:r1,12:$u,14:Kl,27:Is,28:122,32:Ks,42:Bs,58:Ds,73:Zs,77:[1,124],78:[1,125],80:135,81:Cl,82:ba,83:fu,84:Lu,85:e1,86:Gu,87:w1,88:123,102:Zu,106:L1,108:K1,111:yp,112:wp,113:j0},eo(h0,ao,{5:148}),eo(ys,[2,37]),eo(ys,[2,38]),eo(Ts,[2,45],{42:cp}),{42:ko,45:150,58:Co,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},{99:[1,151],100:152,102:[1,153]},{42:ko,45:154,58:Co,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},{42:ko,45:155,58:Co,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},eo(k0,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},eo(k0,[2,108],{117:160,10:[1,159],14:Xs,42:Ws,58:Ps,86:qs,102:ga,103:Fs,106:Js,108:Vs,111:El,112:yl,113:Gl}),eo(k0,[2,110],{10:[1,161]}),eo(ap,[2,176]),eo(ap,[2,163]),eo(ap,[2,164]),eo(ap,[2,165]),eo(ap,[2,166]),eo(ap,[2,167]),eo(ap,[2,168]),eo(ap,[2,169]),eo(ap,[2,170]),eo(ap,[2,171]),eo(ap,[2,172]),eo(ap,[2,173]),{42:ko,45:162,58:Co,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},{30:163,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:171,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:173,48:[1,172],65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:174,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:175,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:176,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{106:[1,177]},{30:178,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:179,63:[1,180],65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:181,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:182,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{30:183,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},eo(Ol,[2,175]),eo(so,[2,20]),eo(Fu,[2,25]),eo(Ts,[2,43],{18:184,10:gs}),eo(ju,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{75:[1,188],76:189,113:F1,116:y1},eo(up,[2,73]),eo(up,[2,75]),eo(up,[2,76]),eo(up,[2,161]),eo(up,[2,162]),{8:vs,9:ks,10:r1,11:Os,12:$u,14:Kl,21:191,27:Is,29:[1,190],32:Ks,42:Bs,58:Ds,73:Zs,80:135,81:Cl,82:ba,83:fu,84:Lu,85:e1,86:Gu,87:w1,88:192,102:Zu,106:L1,108:K1,111:yp,112:wp,113:j0},eo(Lp,[2,94]),eo(Lp,[2,96]),eo(Lp,[2,97]),eo(Lp,[2,150]),eo(Lp,[2,151]),eo(Lp,[2,152]),eo(Lp,[2,153]),eo(Lp,[2,154]),eo(Lp,[2,155]),eo(Lp,[2,156]),eo(Lp,[2,157]),eo(Lp,[2,158]),eo(Lp,[2,159]),eo(Lp,[2,160]),eo(Lp,[2,83]),eo(Lp,[2,84]),eo(Lp,[2,85]),eo(Lp,[2,86]),eo(Lp,[2,87]),eo(Lp,[2,88]),eo(Lp,[2,89]),eo(Lp,[2,90]),eo(Lp,[2,91]),eo(Lp,[2,92]),eo(Lp,[2,93]),{6:11,7:12,8:lo,9:uo,10:ho,11:go,20:17,22:18,23:19,24:20,25:21,26:22,27:mo,32:[1,193],33:24,34:yo,36:So,38:_o,40:28,41:38,42:ko,43:39,45:40,58:Co,81:$o,82:Ro,83:Oo,84:No,85:Mo,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo,118:Jo,119:ps,120:Qo,121:hs},{10:gs,18:194},{10:[1,195],42:ko,58:Co,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:109,111:Ho,112:Yo,113:qo},{10:[1,196]},{10:[1,197],103:[1,198]},eo(Mv,[2,121]),{10:[1,199],42:ko,58:Co,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:109,111:Ho,112:Yo,113:qo},{10:[1,200],42:ko,58:Co,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:109,111:Ho,112:Yo,113:qo},{77:[1,201]},eo(k0,[2,102],{10:[1,202]}),eo(k0,[2,104],{10:[1,203]}),{77:[1,204]},eo(ap,[2,177]),{77:[1,205],95:[1,206]},eo(Qs,[2,50],{110:109,42:ko,58:Co,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,111:Ho,112:Yo,113:qo}),{31:[1,207],65:x0,79:208,113:c1,114:V0,115:P0},eo($v,[2,79]),eo($v,[2,81]),eo($v,[2,82]),eo($v,[2,146]),eo($v,[2,147]),eo($v,[2,148]),eo($v,[2,149]),{47:[1,209],65:x0,79:208,113:c1,114:V0,115:P0},{30:210,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{49:[1,211],65:x0,79:208,113:c1,114:V0,115:P0},{51:[1,212],65:x0,79:208,113:c1,114:V0,115:P0},{53:[1,213],65:x0,79:208,113:c1,114:V0,115:P0},{55:[1,214],65:x0,79:208,113:c1,114:V0,115:P0},{58:[1,215]},{62:[1,216],65:x0,79:208,113:c1,114:V0,115:P0},{64:[1,217],65:x0,79:208,113:c1,114:V0,115:P0},{30:218,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},{31:[1,219],65:x0,79:208,113:c1,114:V0,115:P0},{65:x0,67:[1,220],69:[1,221],79:208,113:c1,114:V0,115:P0},{65:x0,67:[1,223],69:[1,222],79:208,113:c1,114:V0,115:P0},eo(Ts,[2,44],{42:cp}),eo(ju,[2,70]),eo(ju,[2,69]),{60:[1,224],65:x0,79:208,113:c1,114:V0,115:P0},eo(ju,[2,72]),eo(up,[2,74]),{30:225,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},eo(h0,ao,{5:226}),eo(Lp,[2,95]),eo(ys,[2,35]),{41:227,42:ko,43:39,45:40,58:Co,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},{10:Gv,58:C1,81:Ll,89:228,102:Ul,104:229,105:230,106:_l,107:$l,108:Us,109:Rl},{10:Gv,58:C1,81:Ll,89:239,101:[1,240],102:Ul,104:229,105:230,106:_l,107:$l,108:Us,109:Rl},{10:Gv,58:C1,81:Ll,89:241,101:[1,242],102:Ul,104:229,105:230,106:_l,107:$l,108:Us,109:Rl},{102:[1,243]},{10:Gv,58:C1,81:Ll,89:244,102:Ul,104:229,105:230,106:_l,107:$l,108:Us,109:Rl},{42:ko,45:245,58:Co,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo},eo(k0,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},eo(k0,[2,109]),eo(k0,[2,111],{10:[1,249]}),eo(k0,[2,112]),eo(du,[2,51]),eo($v,[2,80]),eo(du,[2,52]),{49:[1,250],65:x0,79:208,113:c1,114:V0,115:P0},eo(du,[2,59]),eo(du,[2,54]),eo(du,[2,55]),eo(du,[2,56]),{106:[1,251]},eo(du,[2,58]),eo(du,[2,60]),{64:[1,252],65:x0,79:208,113:c1,114:V0,115:P0},eo(du,[2,62]),eo(du,[2,63]),eo(du,[2,65]),eo(du,[2,64]),eo(du,[2,66]),eo([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:x0,79:208,113:c1,114:V0,115:P0},{6:11,7:12,8:lo,9:uo,10:ho,11:go,20:17,22:18,23:19,24:20,25:21,26:22,27:mo,32:[1,254],33:24,34:yo,36:So,38:_o,40:28,41:38,42:ko,43:39,45:40,58:Co,81:$o,82:Ro,83:Oo,84:No,85:Mo,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo,118:Jo,119:ps,120:Qo,121:hs},eo(Qs,[2,48]),eo(k0,[2,114],{103:Sl}),eo(eu,[2,123],{105:256,10:Gv,58:C1,81:Ll,102:Ul,106:_l,107:$l,108:Us,109:Rl}),eo(_c,[2,125]),eo(_c,[2,127]),eo(_c,[2,128]),eo(_c,[2,129]),eo(_c,[2,130]),eo(_c,[2,131]),eo(_c,[2,132]),eo(_c,[2,133]),eo(_c,[2,134]),eo(k0,[2,115],{103:Sl}),{10:[1,257]},eo(k0,[2,116],{103:Sl}),{10:[1,258]},eo(Mv,[2,122]),eo(k0,[2,98],{103:Sl}),eo(k0,[2,99],{110:109,42:ko,58:Co,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,111:Ho,112:Yo,113:qo}),eo(k0,[2,103]),eo(k0,[2,105],{10:[1,259]}),eo(k0,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:vs,9:ks,11:Os,21:264},eo(ys,[2,34]),{10:Gv,58:C1,81:Ll,102:Ul,104:265,105:230,106:_l,107:$l,108:Us,109:Rl},eo(_c,[2,126]),{14:Xs,42:Ws,58:Ps,86:qs,98:266,102:ga,103:Fs,106:Js,108:Vs,111:El,112:yl,113:Gl,117:84},{14:Xs,42:Ws,58:Ps,86:qs,98:267,102:ga,103:Fs,106:Js,108:Vs,111:El,112:yl,113:Gl,117:84},{95:[1,268]},eo(k0,[2,113]),eo(du,[2,53]),{30:269,65:x0,77:b0,78:P1,79:164,113:c1,114:V0,115:P0},eo(du,[2,61]),eo(h0,ao,{5:270}),eo(eu,[2,124],{105:256,10:Gv,58:C1,81:Ll,102:Ul,106:_l,107:$l,108:Us,109:Rl}),eo(k0,[2,119],{117:160,10:[1,271],14:Xs,42:Ws,58:Ps,86:qs,102:ga,103:Fs,106:Js,108:Vs,111:El,112:yl,113:Gl}),eo(k0,[2,120],{117:160,10:[1,272],14:Xs,42:Ws,58:Ps,86:qs,102:ga,103:Fs,106:Js,108:Vs,111:El,112:yl,113:Gl}),eo(k0,[2,107]),{31:[1,273],65:x0,79:208,113:c1,114:V0,115:P0},{6:11,7:12,8:lo,9:uo,10:ho,11:go,20:17,22:18,23:19,24:20,25:21,26:22,27:mo,32:[1,274],33:24,34:yo,36:So,38:_o,40:28,41:38,42:ko,43:39,45:40,58:Co,81:$o,82:Ro,83:Oo,84:No,85:Mo,86:Bo,99:Fo,102:Lo,103:Go,106:Do,108:Uo,110:41,111:Ho,112:Yo,113:qo,118:Jo,119:ps,120:Qo,121:hs},{10:Gv,58:C1,81:Ll,89:275,102:Ul,104:229,105:230,106:_l,107:$l,108:Us,109:Rl},{10:Gv,58:C1,81:Ll,89:276,102:Ul,104:229,105:230,106:_l,107:$l,108:Us,109:Rl},eo(du,[2,57]),eo(ys,[2,33]),eo(k0,[2,117],{103:Sl}),eo(k0,[2,118],{103:Sl})],defaultActions:{},parseError:function(S1,O1){if(O1.recoverable)this.trace(S1);else{var r0=new Error(S1);throw r0.hash=O1,r0}},parse:function(S1){var O1=this,r0=[0],I1=[],R0=[null],tu=[],T2=this.table,hu="",Z2=0,r_=0,G4=2,bE=1,hw=tu.slice.call(arguments,1),Ay=Object.create(this.lexer),NS={yy:{}};for(var i_ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,i_)&&(NS.yy[i_]=this.yy[i_]);Ay.setInput(S1,NS.yy),NS.yy.lexer=Ay,NS.yy.parser=this,typeof Ay.yylloc>"u"&&(Ay.yylloc={});var JE=Ay.yylloc;tu.push(JE);var _k=Ay.options&&Ay.options.ranges;typeof NS.yy.parseError=="function"?this.parseError=NS.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function W4(){var BS;return BS=I1.pop()||Ay.lex()||bE,typeof BS!="number"&&(BS instanceof Array&&(I1=BS,BS=I1.pop()),BS=O1.symbols_[BS]||BS),BS}for(var B2,DS,Tw,yE,LS={},U4,D_,K4,cC;;){if(DS=r0[r0.length-1],this.defaultActions[DS]?Tw=this.defaultActions[DS]:((B2===null||typeof B2>"u")&&(B2=W4()),Tw=T2[DS]&&T2[DS][B2]),typeof Tw>"u"||!Tw.length||!Tw[0]){var uC="";cC=[];for(U4 in T2[DS])this.terminals_[U4]&&U4>G4&&cC.push("'"+this.terminals_[U4]+"'");Ay.showPosition?uC="Parse error on line "+(Z2+1)+`: `+Ay.showPosition()+` Expecting `+cC.join(", ")+", got '"+(this.terminals_[B2]||B2)+"'":uC="Parse error on line "+(Z2+1)+": Unexpected "+(B2==bE?"end of input":"'"+(this.terminals_[B2]||B2)+"'"),this.parseError(uC,{text:Ay.match,token:this.terminals_[B2]||B2,line:Ay.yylineno,loc:JE,expected:cC})}if(Tw[0]instanceof Array&&Tw.length>1)throw new Error("Parse Error: multiple actions possible at state: "+DS+", token: "+B2);switch(Tw[0]){case 1:r0.push(B2),R0.push(Ay.yytext),tu.push(Ay.yylloc),r0.push(Tw[1]),B2=null,r_=Ay.yyleng,hu=Ay.yytext,Z2=Ay.yylineno,JE=Ay.yylloc;break;case 2:if(D_=this.productions_[Tw[1]][1],LS.$=R0[R0.length-D_],LS._$={first_line:tu[tu.length-(D_||1)].first_line,last_line:tu[tu.length-1].last_line,first_column:tu[tu.length-(D_||1)].first_column,last_column:tu[tu.length-1].last_column},_k&&(LS._$.range=[tu[tu.length-(D_||1)].range[0],tu[tu.length-1].range[1]]),yE=this.performAction.apply(LS,[hu,r_,Z2,NS.yy,Tw[1],R0,tu].concat(hw)),typeof yE<"u")return yE;D_&&(r0=r0.slice(0,-1*D_*2),R0=R0.slice(0,-1*D_),tu=tu.slice(0,-1*D_)),r0.push(this.productions_[Tw[1]][0]),R0.push(LS.$),tu.push(LS._$),K4=T2[r0[r0.length-2]][r0[r0.length-1]],r0.push(K4);break;case 3:return!0}}return!0}},N1=function(){var J0={EOF:1,parseError:function(O1,r0){if(this.yy.parser)this.yy.parser.parseError(O1,r0);else throw new Error(O1)},setInput:function(S1,O1){return this.yy=O1||this.yy||{},this._input=S1,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var S1=this._input[0];this.yytext+=S1,this.yyleng++,this.offset++,this.match+=S1,this.matched+=S1;var O1=S1.match(/(?:\r\n?|\n).*/g);return O1?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S1},unput:function(S1){var O1=S1.length,r0=S1.split(/(?:\r\n?|\n)/g);this._input=S1+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O1),this.offset-=O1;var I1=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r0.length-1&&(this.yylineno-=r0.length-1);var R0=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r0?(r0.length===I1.length?this.yylloc.first_column:0)+I1[I1.length-r0.length].length-r0[0].length:this.yylloc.first_column-O1},this.options.ranges&&(this.yylloc.range=[R0[0],R0[0]+this.yyleng-O1]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(S1){this.unput(this.match.slice(S1))},pastInput:function(){var S1=this.matched.substr(0,this.matched.length-this.match.length);return(S1.length>20?"...":"")+S1.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var S1=this.match;return S1.length<20&&(S1+=this._input.substr(0,20-S1.length)),(S1.substr(0,20)+(S1.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var S1=this.pastInput(),O1=new Array(S1.length+1).join("-");return S1+this.upcomingInput()+` @@ -2302,17 +2302,17 @@ Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. You have to call mermaid.initialize.`)},addLink$1=function(eo,to,no){log$1.info("addLink (abc78)",eo,to,no);let io,so;for(io=0;io=edges.length)throw new Error(`The index ${no} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);no==="default"?edges.defaultStyle=to:(utils$1.isSubstringInArray("fill",to)===-1&&to.push("fill:none"),edges[no].style=to)})},addClass$1=function(eo,to){eo.split(",").forEach(function(no){classes$3[no]===void 0&&(classes$3[no]={id:no,styles:[],textStyles:[]}),to!=null&&to.forEach(function(io){if(io.match("color")){const so=io.replace("fill","bgFill").replace("color","fill");classes$3[no].textStyles.push(so)}classes$3[no].styles.push(io)})})},setDirection$3=function(eo){direction$3=eo,direction$3.match(/.*/)&&(direction$3="LR"),direction$3.match(/.*v/)&&(direction$3="TB"),direction$3==="TD"&&(direction$3="TB")},setClass$1=function(eo,to){eo.split(",").forEach(function(no){let io=no;vertices[io]!==void 0&&vertices[io].classes.push(to),subGraphLookup[io]!==void 0&&subGraphLookup[io].classes.push(to)})},setTooltip$1=function(eo,to){eo.split(",").forEach(function(no){to!==void 0&&(tooltips[version$1==="gen-1"?lookUpDomId$1(no):no]=sanitizeText$2(to))})},setClickFun$1=function(eo,to,no){let io=lookUpDomId$1(eo);if(getConfig$2().securityLevel!=="loose"||to===void 0)return;let so=[];if(typeof no=="string"){so=no.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let ao=0;ao")),so.classed("hover",!0)}).on("mouseout",function(){to.transition().duration(500).style("opacity",0),select(this).classed("hover",!1)})};funs$1.push(setupToolTips$1);const clear$i=function(eo="gen-1"){vertices={},classes$3={},edges=[],funs$1=[setupToolTips$1],subGraphs=[],subGraphLookup={},subCount=0,tooltips={},firstGraphFlag=!0,version$1=eo,config$2=getConfig$2(),clear$k()},setGen=eo=>{version$1=eo||"gen-2"},defaultStyle=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph=function(eo,to,no){let io=eo.text.trim(),so=no.text;eo===no&&no.text.match(/\s/)&&(io=void 0);function ao(mo){const yo={boolean:{},number:{},string:{}},So=[];let _o;return{nodeList:mo.filter(function(Co){const $o=typeof Co;return Co.stmt&&Co.stmt==="dir"?(_o=Co.value,!1):Co.trim()===""?!1:$o in yo?yo[$o].hasOwnProperty(Co)?!1:yo[$o][Co]=!0:So.includes(Co)?!1:So.push(Co)}),dir:_o}}let lo=[];const{nodeList:uo,dir:ho}=ao(lo.concat.apply(lo,to));if(lo=uo,version$1==="gen-1")for(let mo=0;mo2e3)return;if(posCrossRef[secCount]=to,subGraphs[to].id===eo)return{result:!0,count:0};let io=0,so=1;for(;io=0){const lo=indexNodes2(eo,ao);if(lo.result)return{result:!0,count:so+lo.count};so=so+lo.count}io=io+1}return{result:!1,count:so}},getDepthFirstPos=function(eo){return posCrossRef[eo]},indexNodes=function(){secCount=-1,subGraphs.length>0&&indexNodes2("none",subGraphs.length-1)},getSubGraphs=function(){return subGraphs},firstGraph=()=>firstGraphFlag?(firstGraphFlag=!1,!0):!1,destructStartLink=eo=>{let to=eo.trim(),no="arrow_open";switch(to[0]){case"<":no="arrow_point",to=to.slice(1);break;case"x":no="arrow_cross",to=to.slice(1);break;case"o":no="arrow_circle",to=to.slice(1);break}let io="normal";return to.includes("=")&&(io="thick"),to.includes(".")&&(io="dotted"),{type:no,stroke:io}},countChar=(eo,to)=>{const no=to.length;let io=0;for(let so=0;so{const to=eo.trim();let no=to.slice(0,-1),io="arrow_open";switch(to.slice(-1)){case"x":io="arrow_cross",to[0]==="x"&&(io="double_"+io,no=no.slice(1));break;case">":io="arrow_point",to[0]==="<"&&(io="double_"+io,no=no.slice(1));break;case"o":io="arrow_circle",to[0]==="o"&&(io="double_"+io,no=no.slice(1));break}let so="normal",ao=no.length-1;no[0]==="="&&(so="thick"),no[0]==="~"&&(so="invisible");let lo=countChar(".",no);return lo&&(so="dotted",ao=lo),{type:io,stroke:so,length:ao}},destructLink=(eo,to)=>{const no=destructEndLink(eo);let io;if(to){if(io=destructStartLink(to),io.stroke!==no.stroke)return{type:"INVALID",stroke:"INVALID"};if(io.type==="arrow_open")io.type=no.type;else{if(io.type!==no.type)return{type:"INVALID",stroke:"INVALID"};io.type="double_"+io.type}return io.type==="double_arrow"&&(io.type="double_arrow_point"),io.length=no.length,io}return no},exists=(eo,to)=>{let no=!1;return eo.forEach(io=>{io.nodes.indexOf(to)>=0&&(no=!0)}),no},makeUniq=(eo,to)=>{const no=[];return eo.nodes.forEach((io,so)=>{exists(to,io)||no.push(eo.nodes[so])}),{nodes:no}},lex={firstGraph},flowDb={defaultConfig:()=>defaultConfig$3.flowchart,setAccTitle,getAccTitle,getAccDescription,setAccDescription,addVertex,lookUpDomId:lookUpDomId$1,addLink:addLink$1,updateLinkInterpolate,updateLink,addClass:addClass$1,setDirection:setDirection$3,setClass:setClass$1,setTooltip:setTooltip$1,getTooltip:getTooltip$1,setClickEvent:setClickEvent$2,setLink:setLink$2,bindFunctions:bindFunctions$2,getDirection:getDirection$3,getVertices,getEdges:getEdges$1,getClasses:getClasses$8,clear:clear$i,setGen,defaultStyle,addSubGraph,getDepthFirstPos,indexNodes,getSubGraphs,destructLink,lex,exists,makeUniq,setDiagramTitle,getDiagramTitle},db$e=Object.freeze(Object.defineProperty({__proto__:null,addClass:addClass$1,addLink:addLink$1,addSingleLink,addSubGraph,addVertex,bindFunctions:bindFunctions$2,clear:clear$i,default:flowDb,defaultStyle,destructLink,firstGraph,getClasses:getClasses$8,getDepthFirstPos,getDirection:getDirection$3,getEdges:getEdges$1,getSubGraphs,getTooltip:getTooltip$1,getVertices,indexNodes,lex,lookUpDomId:lookUpDomId$1,setClass:setClass$1,setClickEvent:setClickEvent$2,setDirection:setDirection$3,setGen,setLink:setLink$2,updateLink,updateLinkInterpolate},Symbol.toStringTag,{value:"Module"}));var symbolTag$4="[object Symbol]";function isSymbol$1(eo){return typeof eo=="symbol"||isObjectLike$1(eo)&&baseGetTag$1(eo)==symbolTag$4}function arrayMap$1(eo,to){for(var no=-1,io=eo==null?0:eo.length,so=Array(io);++no-1}function keys(eo){return isArrayLike(eo)?arrayLikeKeys(eo):baseKeys(eo)}var reIsDeepProp$1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp$1=/^\w*$/;function isKey$1(eo,to){if(isArray$2(eo))return!1;var no=typeof eo;return no=="number"||no=="symbol"||no=="boolean"||eo==null||isSymbol$1(eo)?!0:reIsPlainProp$1.test(eo)||!reIsDeepProp$1.test(eo)||to!=null&&eo in Object(to)}var MAX_MEMOIZE_SIZE$1=500;function memoizeCapped$1(eo){var to=memoize$2(eo,function(io){return no.size===MAX_MEMOIZE_SIZE$1&&no.clear(),io}),no=to.cache;return to}var rePropName$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$1=memoizeCapped$1(function(eo){var to=[];return eo.charCodeAt(0)===46&&to.push(""),eo.replace(rePropName$1,function(no,io,so,ao){to.push(so?ao.replace(reEscapeChar$1,"$1"):io||no)}),to});const stringToPath$2=stringToPath$1;function toString$3(eo){return eo==null?"":baseToString$1(eo)}function castPath$1(eo,to){return isArray$2(eo)?eo:isKey$1(eo,to)?[eo]:stringToPath$2(toString$3(eo))}var INFINITY$3=1/0;function toKey$1(eo){if(typeof eo=="string"||isSymbol$1(eo))return eo;var to=eo+"";return to=="0"&&1/eo==-INFINITY$3?"-0":to}function baseGet$1(eo,to){to=castPath$1(to,eo);for(var no=0,io=to.length;eo!=null&&no0&&no(uo)?to>1?baseFlatten(uo,to-1,no,io,so):arrayPush(so,uo):io||(so[so.length]=uo)}return so}function flatten(eo){var to=eo==null?0:eo.length;return to?baseFlatten(eo,1):[]}function flatRest(eo){return setToString$1(overRest(eo,void 0,flatten),eo+"")}function arrayReduce(eo,to,no,io){var so=-1,ao=eo==null?0:eo.length;for(io&&ao&&(no=eo[++so]);++souo))return!1;var go=ao.get(eo),mo=ao.get(to);if(go&&mo)return go==to&&mo==eo;var yo=-1,So=!0,_o=no&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(ao.set(eo,to),ao.set(to,eo);++yo2?to[2]:void 0;for(so&&isIterateeCall(to[0],to[1],so)&&(io=1);++no-1?so[ao?to[lo]:lo]:void 0}}var nativeMax$2=Math.max;function findIndex(eo,to,no){var io=eo==null?0:eo.length;if(!io)return-1;var so=no==null?0:toInteger(no);return so<0&&(so=nativeMax$2(io+so,0)),baseFindIndex(eo,baseIteratee(to),so)}var find$1=createFind(findIndex);const find$2=find$1;function baseMap(eo,to){var no=-1,io=isArrayLike(eo)?Array(eo.length):[];return baseEach$1(eo,function(so,ao,lo){io[++no]=to(so,ao,lo)}),io}function map(eo,to){var no=isArray$2(eo)?arrayMap$1:baseMap;return no(eo,baseIteratee(to))}function forIn(eo,to){return eo==null?eo:baseFor$1(eo,castFunction(to),keysIn)}function forOwn(eo,to){return eo&&baseForOwn(eo,castFunction(to))}function baseGt(eo,to){return eo>to}var objectProto$6=Object.prototype,hasOwnProperty$6=objectProto$6.hasOwnProperty;function baseHas(eo,to){return eo!=null&&hasOwnProperty$6.call(eo,to)}function has(eo,to){return eo!=null&&hasPath(eo,to,baseHas)}function baseValues(eo,to){return arrayMap$1(to,function(no){return eo[no]})}function values(eo){return eo==null?[]:baseValues(eo,keys(eo))}function isUndefined(eo){return eo===void 0}function baseLt(eo,to){return eoto||ao&&lo&&ho&&!uo&&!go||io&&lo&&ho||!no&&ho||!so)return 1;if(!io&&!ao&&!go&&eo=uo)return ho;var go=no[io];return ho*(go=="desc"?-1:1)}}return eo.index-to.index}function baseOrderBy(eo,to,no){to.length?to=arrayMap$1(to,function(ao){return isArray$2(ao)?function(lo){return baseGet$1(lo,ao.length===1?ao[0]:ao)}:ao}):to=[identity$1];var io=-1;to=arrayMap$1(to,baseUnary(baseIteratee));var so=baseMap(eo,function(ao,lo,uo){var ho=arrayMap$1(to,function(go){return go(ao)});return{criteria:ho,index:++io,value:ao}});return baseSortBy(so,function(ao,lo){return compareMultiple(ao,lo,no)})}function basePick(eo,to){return basePickBy(eo,to,function(no,io){return hasIn(eo,io)})}var pick=flatRest(function(eo,to){return eo==null?{}:basePick(eo,to)});const pick$1=pick;var nativeCeil=Math.ceil,nativeMax$1=Math.max;function baseRange(eo,to,no,io){for(var so=-1,ao=nativeMax$1(nativeCeil((to-eo)/(no||1)),0),lo=Array(ao);ao--;)lo[io?ao:++so]=eo,eo+=no;return lo}function createRange(eo){return function(to,no,io){return io&&typeof io!="number"&&isIterateeCall(to,no,io)&&(no=io=void 0),to=toFinite(to),no===void 0?(no=to,to=0):no=toFinite(no),io=io===void 0?to1&&isIterateeCall(eo,to[0],to[1])?to=[]:no>2&&isIterateeCall(to[0],to[1],to[2])&&(to=[to[0]]),baseOrderBy(eo,baseFlatten(to,1),[])});const sortBy$1=sortBy;var INFINITY$2=1/0,createSet=Set$3&&1/setToArray(new Set$3([,-0]))[1]==INFINITY$2?function(eo){return new Set$3(eo)}:noop$2;const createSet$1=createSet;var LARGE_ARRAY_SIZE=200;function baseUniq(eo,to,no){var io=-1,so=arrayIncludes,ao=eo.length,lo=!0,uo=[],ho=uo;if(no)lo=!1,so=arrayIncludesWith;else if(ao>=LARGE_ARRAY_SIZE){var go=to?null:createSet$1(eo);if(go)return setToArray(go);lo=!1,so=cacheHas,ho=new SetCache}else ho=to?[]:uo;e:for(;++io1?so.setNode(ao,no):so.setNode(ao)}),this}setNode(to,no){return has(this._nodes,to)?(arguments.length>1&&(this._nodes[to]=no),this):(this._nodes[to]=arguments.length>1?no:this._defaultNodeLabelFn(to),this._isCompound&&(this._parent[to]=GRAPH_NODE,this._children[to]={},this._children[GRAPH_NODE][to]=!0),this._in[to]={},this._preds[to]={},this._out[to]={},this._sucs[to]={},++this._nodeCount,this)}node(to){return this._nodes[to]}hasNode(to){return has(this._nodes,to)}removeNode(to){var no=this;if(has(this._nodes,to)){var io=function(so){no.removeEdge(no._edgeObjs[so])};delete this._nodes[to],this._isCompound&&(this._removeFromParentsChildList(to),delete this._parent[to],forEach(this.children(to),function(so){no.setParent(so)}),delete this._children[to]),forEach(keys(this._in[to]),io),delete this._in[to],delete this._preds[to],forEach(keys(this._out[to]),io),delete this._out[to],delete this._sucs[to],--this._nodeCount}return this}setParent(to,no){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(isUndefined(no))no=GRAPH_NODE;else{no+="";for(var io=no;!isUndefined(io);io=this.parent(io))if(io===to)throw new Error("Setting "+no+" as parent of "+to+" would create a cycle");this.setNode(no)}return this.setNode(to),this._removeFromParentsChildList(to),this._parent[to]=no,this._children[no][to]=!0,this}_removeFromParentsChildList(to){delete this._children[this._parent[to]][to]}parent(to){if(this._isCompound){var no=this._parent[to];if(no!==GRAPH_NODE)return no}}children(to){if(isUndefined(to)&&(to=GRAPH_NODE),this._isCompound){var no=this._children[to];if(no)return keys(no)}else{if(to===GRAPH_NODE)return this.nodes();if(this.hasNode(to))return[]}}predecessors(to){var no=this._preds[to];if(no)return keys(no)}successors(to){var no=this._sucs[to];if(no)return keys(no)}neighbors(to){var no=this.predecessors(to);if(no)return union$1(no,this.successors(to))}isLeaf(to){var no;return this.isDirected()?no=this.successors(to):no=this.neighbors(to),no.length===0}filterNodes(to){var no=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});no.setGraph(this.graph());var io=this;forEach(this._nodes,function(lo,uo){to(uo)&&no.setNode(uo,lo)}),forEach(this._edgeObjs,function(lo){no.hasNode(lo.v)&&no.hasNode(lo.w)&&no.setEdge(lo,io.edge(lo))});var so={};function ao(lo){var uo=io.parent(lo);return uo===void 0||no.hasNode(uo)?(so[lo]=uo,uo):uo in so?so[uo]:ao(uo)}return this._isCompound&&forEach(no.nodes(),function(lo){no.setParent(lo,ao(lo))}),no}setDefaultEdgeLabel(to){return isFunction$1(to)||(to=constant$2(to)),this._defaultEdgeLabelFn=to,this}edgeCount(){return this._edgeCount}edges(){return values(this._edgeObjs)}setPath(to,no){var io=this,so=arguments;return reduce(to,function(ao,lo){return so.length>1?io.setEdge(ao,lo,no):io.setEdge(ao,lo),lo}),this}setEdge(){var to,no,io,so,ao=!1,lo=arguments[0];typeof lo=="object"&&lo!==null&&"v"in lo?(to=lo.v,no=lo.w,io=lo.name,arguments.length===2&&(so=arguments[1],ao=!0)):(to=lo,no=arguments[1],io=arguments[3],arguments.length>2&&(so=arguments[2],ao=!0)),to=""+to,no=""+no,isUndefined(io)||(io=""+io);var uo=edgeArgsToId(this._isDirected,to,no,io);if(has(this._edgeLabels,uo))return ao&&(this._edgeLabels[uo]=so),this;if(!isUndefined(io)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(to),this.setNode(no),this._edgeLabels[uo]=ao?so:this._defaultEdgeLabelFn(to,no,io);var ho=edgeArgsToObj(this._isDirected,to,no,io);return to=ho.v,no=ho.w,Object.freeze(ho),this._edgeObjs[uo]=ho,incrementOrInitEntry(this._preds[no],to),incrementOrInitEntry(this._sucs[to],no),this._in[no][uo]=ho,this._out[to][uo]=ho,this._edgeCount++,this}edge(to,no,io){var so=arguments.length===1?edgeObjToId(this._isDirected,arguments[0]):edgeArgsToId(this._isDirected,to,no,io);return this._edgeLabels[so]}hasEdge(to,no,io){var so=arguments.length===1?edgeObjToId(this._isDirected,arguments[0]):edgeArgsToId(this._isDirected,to,no,io);return has(this._edgeLabels,so)}removeEdge(to,no,io){var so=arguments.length===1?edgeObjToId(this._isDirected,arguments[0]):edgeArgsToId(this._isDirected,to,no,io),ao=this._edgeObjs[so];return ao&&(to=ao.v,no=ao.w,delete this._edgeLabels[so],delete this._edgeObjs[so],decrementOrRemoveEntry(this._preds[no],to),decrementOrRemoveEntry(this._sucs[to],no),delete this._in[no][so],delete this._out[to][so],this._edgeCount--),this}inEdges(to,no){var io=this._in[to];if(io){var so=values(io);return no?filter$1(so,function(ao){return ao.v===no}):so}}outEdges(to,no){var io=this._out[to];if(io){var so=values(io);return no?filter$1(so,function(ao){return ao.w===no}):so}}nodeEdges(to,no){var io=this.inEdges(to,no);if(io)return io.concat(this.outEdges(to,no))}}Graph.prototype._nodeCount=0;Graph.prototype._edgeCount=0;function incrementOrInitEntry(eo,to){eo[to]?eo[to]++:eo[to]=1}function decrementOrRemoveEntry(eo,to){--eo[to]||delete eo[to]}function edgeArgsToId(eo,to,no,io){var so=""+to,ao=""+no;if(!eo&&so>ao){var lo=so;so=ao,ao=lo}return so+EDGE_KEY_DELIM+ao+EDGE_KEY_DELIM+(isUndefined(io)?DEFAULT_EDGE_NAME:io)}function edgeArgsToObj(eo,to,no,io){var so=""+to,ao=""+no;if(!eo&&so>ao){var lo=so;so=ao,ao=lo}var uo={v:so,w:ao};return io&&(uo.name=io),uo}function edgeObjToId(eo,to){return edgeArgsToId(eo,to.v,to.w,to.name)}class List{constructor(){var to={};to._next=to._prev=to,this._sentinel=to}dequeue(){var to=this._sentinel,no=to._prev;if(no!==to)return unlink(no),no}enqueue(to){var no=this._sentinel;to._prev&&to._next&&unlink(to),to._next=no._next,no._next._prev=to,no._next=to,to._prev=no}toString(){for(var to=[],no=this._sentinel,io=no._prev;io!==no;)to.push(JSON.stringify(io,filterOutLinks)),io=io._prev;return"["+to.join(", ")+"]"}}function unlink(eo){eo._prev._next=eo._next,eo._next._prev=eo._prev,delete eo._next,delete eo._prev}function filterOutLinks(eo,to){if(eo!=="_next"&&eo!=="_prev")return to}var DEFAULT_WEIGHT_FN=constant$2(1);function greedyFAS(eo,to){if(eo.nodeCount()<=1)return[];var no=buildState(eo,to||DEFAULT_WEIGHT_FN),io=doGreedyFAS(no.graph,no.buckets,no.zeroIdx);return flatten(map(io,function(so){return eo.outEdges(so.v,so.w)}))}function doGreedyFAS(eo,to,no){for(var io=[],so=to[to.length-1],ao=to[0],lo;eo.nodeCount();){for(;lo=ao.dequeue();)removeNode(eo,to,no,lo);for(;lo=so.dequeue();)removeNode(eo,to,no,lo);if(eo.nodeCount()){for(var uo=to.length-2;uo>0;--uo)if(lo=to[uo].dequeue(),lo){io=io.concat(removeNode(eo,to,no,lo,!0));break}}}return io}function removeNode(eo,to,no,io,so){var ao=so?[]:void 0;return forEach(eo.inEdges(io.v),function(lo){var uo=eo.edge(lo),ho=eo.node(lo.v);so&&ao.push({v:lo.v,w:lo.w}),ho.out-=uo,assignBucket(to,no,ho)}),forEach(eo.outEdges(io.v),function(lo){var uo=eo.edge(lo),ho=lo.w,go=eo.node(ho);go.in-=uo,assignBucket(to,no,go)}),eo.removeNode(io.v),ao}function buildState(eo,to){var no=new Graph,io=0,so=0;forEach(eo.nodes(),function(uo){no.setNode(uo,{v:uo,in:0,out:0})}),forEach(eo.edges(),function(uo){var ho=no.edge(uo.v,uo.w)||0,go=to(uo),mo=ho+go;no.setEdge(uo.v,uo.w,mo),so=Math.max(so,no.node(uo.v).out+=go),io=Math.max(io,no.node(uo.w).in+=go)});var ao=range$1(so+io+3).map(function(){return new List}),lo=io+1;return forEach(no.nodes(),function(uo){assignBucket(ao,lo,no.node(uo))}),{graph:no,buckets:ao,zeroIdx:lo}}function assignBucket(eo,to,no){no.out?no.in?eo[no.out-no.in+to].enqueue(no):eo[eo.length-1].enqueue(no):eo[0].enqueue(no)}function run$2(eo){var to=eo.graph().acyclicer==="greedy"?greedyFAS(eo,no(eo)):dfsFAS(eo);forEach(to,function(io){var so=eo.edge(io);eo.removeEdge(io),so.forwardName=io.name,so.reversed=!0,eo.setEdge(io.w,io.v,so,uniqueId("rev"))});function no(io){return function(so){return io.edge(so).weight}}}function dfsFAS(eo){var to=[],no={},io={};function so(ao){has(io,ao)||(io[ao]=!0,no[ao]=!0,forEach(eo.outEdges(ao),function(lo){has(no,lo.w)?to.push(lo):so(lo.w)}),delete no[ao])}return forEach(eo.nodes(),so),to}function undo$2(eo){forEach(eo.edges(),function(to){var no=eo.edge(to);if(no.reversed){eo.removeEdge(to);var io=no.forwardName;delete no.reversed,delete no.forwardName,eo.setEdge(to.w,to.v,no,io)}})}function addDummyNode(eo,to,no,io){var so;do so=uniqueId(io);while(eo.hasNode(so));return no.dummy=to,eo.setNode(so,no),so}function simplify(eo){var to=new Graph().setGraph(eo.graph());return forEach(eo.nodes(),function(no){to.setNode(no,eo.node(no))}),forEach(eo.edges(),function(no){var io=to.edge(no.v,no.w)||{weight:0,minlen:1},so=eo.edge(no);to.setEdge(no.v,no.w,{weight:io.weight+so.weight,minlen:Math.max(io.minlen,so.minlen)})}),to}function asNonCompoundGraph(eo){var to=new Graph({multigraph:eo.isMultigraph()}).setGraph(eo.graph());return forEach(eo.nodes(),function(no){eo.children(no).length||to.setNode(no,eo.node(no))}),forEach(eo.edges(),function(no){to.setEdge(no,eo.edge(no))}),to}function intersectRect$3(eo,to){var no=eo.x,io=eo.y,so=to.x-no,ao=to.y-io,lo=eo.width/2,uo=eo.height/2;if(!so&&!ao)throw new Error("Not possible to find intersection inside of the rectangle");var ho,go;return Math.abs(ao)*lo>Math.abs(so)*uo?(ao<0&&(uo=-uo),ho=uo*so/ao,go=uo):(so<0&&(lo=-lo),ho=lo,go=lo*ao/so),{x:no+ho,y:io+go}}function buildLayerMatrix(eo){var to=map(range$1(maxRank(eo)+1),function(){return[]});return forEach(eo.nodes(),function(no){var io=eo.node(no),so=io.rank;isUndefined(so)||(to[so][io.order]=no)}),to}function normalizeRanks(eo){var to=min$2(map(eo.nodes(),function(no){return eo.node(no).rank}));forEach(eo.nodes(),function(no){var io=eo.node(no);has(io,"rank")&&(io.rank-=to)})}function removeEmptyRanks(eo){var to=min$2(map(eo.nodes(),function(ao){return eo.node(ao).rank})),no=[];forEach(eo.nodes(),function(ao){var lo=eo.node(ao).rank-to;no[lo]||(no[lo]=[]),no[lo].push(ao)});var io=0,so=eo.graph().nodeRankFactor;forEach(no,function(ao,lo){isUndefined(ao)&&lo%so!==0?--io:io&&forEach(ao,function(uo){eo.node(uo).rank+=io})})}function addBorderNode$1(eo,to,no,io){var so={width:0,height:0};return arguments.length>=4&&(so.rank=no,so.order=io),addDummyNode(eo,"border",so,to)}function maxRank(eo){return max$2(map(eo.nodes(),function(to){var no=eo.node(to).rank;if(!isUndefined(no))return no}))}function partition(eo,to){var no={lhs:[],rhs:[]};return forEach(eo,function(io){to(io)?no.lhs.push(io):no.rhs.push(io)}),no}function time(eo,to){var no=now$2();try{return to()}finally{console.log(eo+" time: "+(now$2()-no)+"ms")}}function notime(eo,to){return to()}function addBorderSegments(eo){function to(no){var io=eo.children(no),so=eo.node(no);if(io.length&&forEach(io,to),has(so,"minRank")){so.borderLeft=[],so.borderRight=[];for(var ao=so.minRank,lo=so.maxRank+1;aolo.lim&&(uo=lo,ho=!0);var go=filter$1(to.edges(),function(mo){return ho===isDescendant$1(eo,eo.node(mo.v),uo)&&ho!==isDescendant$1(eo,eo.node(mo.w),uo)});return minBy(go,function(mo){return slack(to,mo)})}function exchangeEdges(eo,to,no,io){var so=no.v,ao=no.w;eo.removeEdge(so,ao),eo.setEdge(io.v,io.w,{}),initLowLimValues(eo),initCutValues(eo,to),updateRanks(eo,to)}function updateRanks(eo,to){var no=find$2(eo.nodes(),function(so){return!to.node(so).parent}),io=preorder(eo,no);io=io.slice(1),forEach(io,function(so){var ao=eo.node(so).parent,lo=to.edge(so,ao),uo=!1;lo||(lo=to.edge(ao,so),uo=!0),to.node(so).rank=to.node(ao).rank+(uo?lo.minlen:-lo.minlen)})}function isTreeEdge(eo,to,no){return eo.hasEdge(to,no)}function isDescendant$1(eo,to,no){return no.low<=to.lim&&to.lim<=no.lim}function rank(eo){switch(eo.graph().ranker){case"network-simplex":networkSimplexRanker(eo);break;case"tight-tree":tightTreeRanker(eo);break;case"longest-path":longestPathRanker(eo);break;default:networkSimplexRanker(eo)}}var longestPathRanker=longestPath;function tightTreeRanker(eo){longestPath(eo),feasibleTree(eo)}function networkSimplexRanker(eo){networkSimplex(eo)}function run(eo){var to=addDummyNode(eo,"root",{},"_root"),no=treeDepths(eo),io=max$2(values(no))-1,so=2*io+1;eo.graph().nestingRoot=to,forEach(eo.edges(),function(lo){eo.edge(lo).minlen*=so});var ao=sumWeights(eo)+1;forEach(eo.children(),function(lo){dfs(eo,to,so,ao,io,no,lo)}),eo.graph().nodeRankFactor=so}function dfs(eo,to,no,io,so,ao,lo){var uo=eo.children(lo);if(!uo.length){lo!==to&&eo.setEdge(to,lo,{weight:0,minlen:no});return}var ho=addBorderNode$1(eo,"_bt"),go=addBorderNode$1(eo,"_bb"),mo=eo.node(lo);eo.setParent(ho,lo),mo.borderTop=ho,eo.setParent(go,lo),mo.borderBottom=go,forEach(uo,function(yo){dfs(eo,to,no,io,so,ao,yo);var So=eo.node(yo),_o=So.borderTop?So.borderTop:yo,ko=So.borderBottom?So.borderBottom:yo,Co=So.borderTop?io:2*io,$o=_o!==ko?1:so-ao[lo]+1;eo.setEdge(ho,_o,{weight:Co,minlen:$o,nestingEdge:!0}),eo.setEdge(ko,go,{weight:Co,minlen:$o,nestingEdge:!0})}),eo.parent(lo)||eo.setEdge(to,ho,{weight:0,minlen:so+ao[lo]})}function treeDepths(eo){var to={};function no(io,so){var ao=eo.children(io);ao&&ao.length&&forEach(ao,function(lo){no(lo,so+1)}),to[io]=so}return forEach(eo.children(),function(io){no(io,1)}),to}function sumWeights(eo){return reduce(eo.edges(),function(to,no){return to+eo.edge(no).weight},0)}function cleanup(eo){var to=eo.graph();eo.removeNode(to.nestingRoot),delete to.nestingRoot,forEach(eo.edges(),function(no){var io=eo.edge(no);io.nestingEdge&&eo.removeEdge(no)})}function addSubgraphConstraints(eo,to,no){var io={},so;forEach(no,function(ao){for(var lo=eo.parent(ao),uo,ho;lo;){if(uo=eo.parent(lo),uo?(ho=io[uo],io[uo]=lo):(ho=so,so=lo),ho&&ho!==lo){to.setEdge(ho,lo);return}lo=uo}})}function buildLayerGraph(eo,to,no){var io=createRootNode(eo),so=new Graph({compound:!0}).setGraph({root:io}).setDefaultNodeLabel(function(ao){return eo.node(ao)});return forEach(eo.nodes(),function(ao){var lo=eo.node(ao),uo=eo.parent(ao);(lo.rank===to||lo.minRank<=to&&to<=lo.maxRank)&&(so.setNode(ao),so.setParent(ao,uo||io),forEach(eo[no](ao),function(ho){var go=ho.v===ao?ho.w:ho.v,mo=so.edge(go,ao),yo=isUndefined(mo)?0:mo.weight;so.setEdge(go,ao,{weight:eo.edge(ho).weight+yo})}),has(lo,"minRank")&&so.setNode(ao,{borderLeft:lo.borderLeft[to],borderRight:lo.borderRight[to]}))}),so}function createRootNode(eo){for(var to;eo.hasNode(to=uniqueId("_root")););return to}function crossCount(eo,to){for(var no=0,io=1;io0;)mo%2&&(yo+=uo[mo+1]),mo=mo-1>>1,uo[mo]+=go.weight;ho+=go.weight*yo})),ho}function initOrder(eo){var to={},no=filter$1(eo.nodes(),function(uo){return!eo.children(uo).length}),io=max$2(map(no,function(uo){return eo.node(uo).rank})),so=map(range$1(io+1),function(){return[]});function ao(uo){if(!has(to,uo)){to[uo]=!0;var ho=eo.node(uo);so[ho.rank].push(uo),forEach(eo.successors(uo),ao)}}var lo=sortBy$1(no,function(uo){return eo.node(uo).rank});return forEach(lo,ao),so}function barycenter(eo,to){return map(to,function(no){var io=eo.inEdges(no);if(io.length){var so=reduce(io,function(ao,lo){var uo=eo.edge(lo),ho=eo.node(lo.v);return{sum:ao.sum+uo.weight*ho.order,weight:ao.weight+uo.weight}},{sum:0,weight:0});return{v:no,barycenter:so.sum/so.weight,weight:so.weight}}else return{v:no}})}function resolveConflicts(eo,to){var no={};forEach(eo,function(so,ao){var lo=no[so.v]={indegree:0,in:[],out:[],vs:[so.v],i:ao};isUndefined(so.barycenter)||(lo.barycenter=so.barycenter,lo.weight=so.weight)}),forEach(to.edges(),function(so){var ao=no[so.v],lo=no[so.w];!isUndefined(ao)&&!isUndefined(lo)&&(lo.indegree++,ao.out.push(no[so.w]))});var io=filter$1(no,function(so){return!so.indegree});return doResolveConflicts(io)}function doResolveConflicts(eo){var to=[];function no(ao){return function(lo){lo.merged||(isUndefined(lo.barycenter)||isUndefined(ao.barycenter)||lo.barycenter>=ao.barycenter)&&mergeEntries(ao,lo)}}function io(ao){return function(lo){lo.in.push(ao),--lo.indegree===0&&eo.push(lo)}}for(;eo.length;){var so=eo.pop();to.push(so),forEach(so.in.reverse(),no(so)),forEach(so.out,io(so))}return map(filter$1(to,function(ao){return!ao.merged}),function(ao){return pick$1(ao,["vs","i","barycenter","weight"])})}function mergeEntries(eo,to){var no=0,io=0;eo.weight&&(no+=eo.barycenter*eo.weight,io+=eo.weight),to.weight&&(no+=to.barycenter*to.weight,io+=to.weight),eo.vs=to.vs.concat(eo.vs),eo.barycenter=no/io,eo.weight=io,eo.i=Math.min(to.i,eo.i),to.merged=!0}function sort(eo,to){var no=partition(eo,function(mo){return has(mo,"barycenter")}),io=no.lhs,so=sortBy$1(no.rhs,function(mo){return-mo.i}),ao=[],lo=0,uo=0,ho=0;io.sort(compareWithBias(!!to)),ho=consumeUnsortable(ao,so,ho),forEach(io,function(mo){ho+=mo.vs.length,ao.push(mo.vs),lo+=mo.barycenter*mo.weight,uo+=mo.weight,ho=consumeUnsortable(ao,so,ho)});var go={vs:flatten(ao)};return uo&&(go.barycenter=lo/uo,go.weight=uo),go}function consumeUnsortable(eo,to,no){for(var io;to.length&&(io=last(to)).i<=no;)to.pop(),eo.push(io.vs),no++;return no}function compareWithBias(eo){return function(to,no){return to.barycenterno.barycenter?1:eo?no.i-to.i:to.i-no.i}}function sortSubgraph(eo,to,no,io){var so=eo.children(to),ao=eo.node(to),lo=ao?ao.borderLeft:void 0,uo=ao?ao.borderRight:void 0,ho={};lo&&(so=filter$1(so,function(ko){return ko!==lo&&ko!==uo}));var go=barycenter(eo,so);forEach(go,function(ko){if(eo.children(ko.v).length){var Co=sortSubgraph(eo,ko.v,no,io);ho[ko.v]=Co,has(Co,"barycenter")&&mergeBarycenters(ko,Co)}});var mo=resolveConflicts(go,no);expandSubgraphs(mo,ho);var yo=sort(mo,io);if(lo&&(yo.vs=flatten([lo,yo.vs,uo]),eo.predecessors(lo).length)){var So=eo.node(eo.predecessors(lo)[0]),_o=eo.node(eo.predecessors(uo)[0]);has(yo,"barycenter")||(yo.barycenter=0,yo.weight=0),yo.barycenter=(yo.barycenter*yo.weight+So.order+_o.order)/(yo.weight+2),yo.weight+=2}return yo}function expandSubgraphs(eo,to){forEach(eo,function(no){no.vs=flatten(no.vs.map(function(io){return to[io]?to[io].vs:io}))})}function mergeBarycenters(eo,to){isUndefined(eo.barycenter)?(eo.barycenter=to.barycenter,eo.weight=to.weight):(eo.barycenter=(eo.barycenter*eo.weight+to.barycenter*to.weight)/(eo.weight+to.weight),eo.weight+=to.weight)}function order(eo){var to=maxRank(eo),no=buildLayerGraphs(eo,range$1(1,to+1),"inEdges"),io=buildLayerGraphs(eo,range$1(to-1,-1,-1),"outEdges"),so=initOrder(eo);assignOrder(eo,so);for(var ao=Number.POSITIVE_INFINITY,lo,uo=0,ho=0;ho<4;++uo,++ho){sweepLayerGraphs(uo%2?no:io,uo%4>=2),so=buildLayerMatrix(eo);var go=crossCount(eo,so);golo||uo>to[ho].lim));for(go=ho,ho=io;(ho=eo.parent(ho))!==go;)ao.push(ho);return{path:so.concat(ao.reverse()),lca:go}}function postorder(eo){var to={},no=0;function io(so){var ao=no;forEach(eo.children(so),io),to[so]={low:ao,lim:no++}}return forEach(eo.children(),io),to}function findType1Conflicts(eo,to){var no={};function io(so,ao){var lo=0,uo=0,ho=so.length,go=last(ao);return forEach(ao,function(mo,yo){var So=findOtherInnerSegmentNode(eo,mo),_o=So?eo.node(So).order:ho;(So||mo===go)&&(forEach(ao.slice(uo,yo+1),function(ko){forEach(eo.predecessors(ko),function(Co){var $o=eo.node(Co),Ro=$o.order;(Rogo)&&addConflict(no,So,mo)})})}function so(ao,lo){var uo=-1,ho,go=0;return forEach(lo,function(mo,yo){if(eo.node(mo).dummy==="border"){var So=eo.predecessors(mo);So.length&&(ho=eo.node(So[0]).order,io(lo,go,yo,uo,ho),go=yo,uo=ho)}io(lo,go,lo.length,ho,ao.length)}),lo}return reduce(to,so),no}function findOtherInnerSegmentNode(eo,to){if(eo.node(to).dummy)return find$2(eo.predecessors(to),function(no){return eo.node(no).dummy})}function addConflict(eo,to,no){if(to>no){var io=to;to=no,no=io}var so=eo[to];so||(eo[to]=so={}),so[no]=!0}function hasConflict(eo,to,no){if(to>no){var io=to;to=no,no=io}return has(eo[to],no)}function verticalAlignment(eo,to,no,io){var so={},ao={},lo={};return forEach(to,function(uo){forEach(uo,function(ho,go){so[ho]=ho,ao[ho]=ho,lo[ho]=go})}),forEach(to,function(uo){var ho=-1;forEach(uo,function(go){var mo=io(go);if(mo.length){mo=sortBy$1(mo,function(Co){return lo[Co]});for(var yo=(mo.length-1)/2,So=Math.floor(yo),_o=Math.ceil(yo);So<=_o;++So){var ko=mo[So];ao[go]===go&&ho0}function intersectPolygon$1(eo,to,no){var io=eo.x,so=eo.y,ao=[],lo=Number.POSITIVE_INFINITY,uo=Number.POSITIVE_INFINITY;to.forEach(function(ko){lo=Math.min(lo,ko.x),uo=Math.min(uo,ko.y)});for(var ho=io-eo.width/2-lo,go=so-eo.height/2-uo,mo=0;mo1&&ao.sort(function(ko,Co){var $o=ko.x-no.x,Ro=ko.y-no.y,Oo=Math.sqrt($o*$o+Ro*Ro),No=Co.x-no.x,Mo=Co.y-no.y,Bo=Math.sqrt(No*No+Mo*Mo);return OoMath.abs(so)*uo?(ao<0&&(uo=-uo),ho=ao===0?0:uo*so/ao,go=uo):(so<0&&(lo=-lo),ho=lo,go=so===0?0:lo*ao/so),{x:no+ho,y:io+go}}var shapes$2={rect:rect$2,ellipse,circle:circle$3,diamond};function setShapes(eo){shapes$2=eo}function rect$2(eo,to,no){var io=eo.insert("rect",":first-child").attr("rx",no.rx).attr("ry",no.ry).attr("x",-to.width/2).attr("y",-to.height/2).attr("width",to.width).attr("height",to.height);return no.intersect=function(so){return intersectRect$2(no,so)},io}function ellipse(eo,to,no){var io=to.width/2,so=to.height/2,ao=eo.insert("ellipse",":first-child").attr("x",-to.width/2).attr("y",-to.height/2).attr("rx",io).attr("ry",so);return no.intersect=function(lo){return intersectEllipse$1(no,io,so,lo)},ao}function circle$3(eo,to,no){var io=Math.max(to.width,to.height)/2,so=eo.insert("circle",":first-child").attr("x",-to.width/2).attr("y",-to.height/2).attr("r",io);return no.intersect=function(ao){return intersectCircle$1(no,io,ao)},so}function diamond(eo,to,no){var io=to.width*Math.SQRT2/2,so=to.height*Math.SQRT2/2,ao=[{x:0,y:-so},{x:-io,y:0},{x:0,y:so},{x:io,y:0}],lo=eo.insert("polygon",":first-child").attr("points",ao.map(function(uo){return uo.x+","+uo.y}).join(" "));return no.intersect=function(uo){return intersectPolygon$1(no,ao,uo)},lo}function render$1(){var eo=function(to,no){preProcessGraph(no);var io=createOrSelectGroup(to,"output"),so=createOrSelectGroup(io,"clusters"),ao=createOrSelectGroup(io,"edgePaths"),lo=createEdgeLabels(createOrSelectGroup(io,"edgeLabels"),no),uo=createNodes(createOrSelectGroup(io,"nodes"),no,shapes$2);layout$2(no),positionNodes$1(uo,no),positionEdgeLabels(lo,no),createEdgePaths(ao,no,arrows);var ho=createClusters(so,no);positionClusters(ho,no),postProcessGraph(no)};return eo.createNodes=function(to){return arguments.length?(setCreateNodes(to),eo):createNodes},eo.createClusters=function(to){return arguments.length?(setCreateClusters(to),eo):createClusters},eo.createEdgeLabels=function(to){return arguments.length?(setCreateEdgeLabels(to),eo):createEdgeLabels},eo.createEdgePaths=function(to){return arguments.length?(setCreateEdgePaths(to),eo):createEdgePaths},eo.shapes=function(to){return arguments.length?(setShapes(to),eo):shapes$2},eo.arrows=function(to){return arguments.length?(setArrows(to),eo):arrows},eo}var NODE_DEFAULT_ATTRS={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},EDGE_DEFAULT_ATTRS={arrowhead:"normal",curve:curveLinear};function preProcessGraph(eo){eo.nodes().forEach(function(to){var no=eo.node(to);!has(no,"label")&&!eo.children(to).length&&(no.label=to),has(no,"paddingX")&&defaults$i(no,{paddingLeft:no.paddingX,paddingRight:no.paddingX}),has(no,"paddingY")&&defaults$i(no,{paddingTop:no.paddingY,paddingBottom:no.paddingY}),has(no,"padding")&&defaults$i(no,{paddingLeft:no.padding,paddingRight:no.padding,paddingTop:no.padding,paddingBottom:no.padding}),defaults$i(no,NODE_DEFAULT_ATTRS),forEach(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(io){no[io]=Number(no[io])}),has(no,"width")&&(no._prevWidth=no.width),has(no,"height")&&(no._prevHeight=no.height)}),eo.edges().forEach(function(to){var no=eo.edge(to);has(no,"label")||(no.label=""),defaults$i(no,EDGE_DEFAULT_ATTRS)})}function postProcessGraph(eo){forEach(eo.nodes(),function(to){var no=eo.node(to);has(no,"_prevWidth")?no.width=no._prevWidth:delete no.width,has(no,"_prevHeight")?no.height=no._prevHeight:delete no.height,delete no._prevWidth,delete no._prevHeight})}function createOrSelectGroup(eo,to){var no=eo.select("g."+to);return no.empty()&&(no=eo.append("g").attr("class",to)),no}function write(eo){var to={options:{directed:eo.isDirected(),multigraph:eo.isMultigraph(),compound:eo.isCompound()},nodes:writeNodes(eo),edges:writeEdges(eo)};return isUndefined(eo.graph())||(to.value=clone$2(eo.graph())),to}function writeNodes(eo){return map(eo.nodes(),function(to){var no=eo.node(to),io=eo.parent(to),so={v:to};return isUndefined(no)||(so.value=no),isUndefined(io)||(so.parent=io),so})}function writeEdges(eo){return map(eo.edges(),function(to){var no=eo.edge(to),io={v:to.v,w:to.w};return isUndefined(to.name)||(io.name=to.name),isUndefined(no)||(io.value=no),io})}const emptyOptions={};function toString$2(eo,to){const no=to||emptyOptions,io=typeof no.includeImageAlt=="boolean"?no.includeImageAlt:!0,so=typeof no.includeHtml=="boolean"?no.includeHtml:!0;return one(eo,io,so)}function one(eo,to,no){if(node(eo)){if("value"in eo)return eo.type==="html"&&!no?"":eo.value;if(to&&"alt"in eo&&eo.alt)return eo.alt;if("children"in eo)return all(eo.children,to,no)}return Array.isArray(eo)?all(eo,to,no):""}function all(eo,to,no){const io=[];let so=-1;for(;++soso?0:so+to:to=to>so?so:to,no=no>0?no:0,io.length<1e4)lo=Array.from(io),lo.unshift(to,no),eo.splice(...lo);else for(no&&eo.splice(to,no);ao0?(splice$1(eo,eo.length,0,to),eo):to}const hasOwnProperty$5={}.hasOwnProperty;function combineExtensions(eo){const to={};let no=-1;for(;++nolo))return;const Lo=to.events.length;let Go=Lo,Do,Uo;for(;Go--;)if(to.events[Go][0]==="exit"&&to.events[Go][1].type==="chunkFlow"){if(Do){Uo=to.events[Go][1].end;break}Do=!0}for(Ro(io),Po=Lo;PoNo;){const Bo=no[Mo];to.containerState=Bo[1],Bo[0].exit.call(to,eo)}no.length=No}function Oo(){so.write([null]),ao=void 0,so=void 0,to.containerState._closeFlow=void 0}}function tokenizeContainer(eo,to,no){return factorySpace(eo,eo.attempt(this.parser.constructs.document,to,no),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(eo){if(eo===null||markdownLineEndingOrSpace(eo)||unicodeWhitespace(eo))return 1;if(unicodePunctuation(eo))return 2}function resolveAll(eo,to,no){const io=[];let so=-1;for(;++so1&&eo[no][1].end.offset-eo[no][1].start.offset>1?2:1;const yo=Object.assign({},eo[io][1].end),So=Object.assign({},eo[no][1].start);movePoint(yo,-ho),movePoint(So,ho),lo={type:ho>1?"strongSequence":"emphasisSequence",start:yo,end:Object.assign({},eo[io][1].end)},uo={type:ho>1?"strongSequence":"emphasisSequence",start:Object.assign({},eo[no][1].start),end:So},ao={type:ho>1?"strongText":"emphasisText",start:Object.assign({},eo[io][1].end),end:Object.assign({},eo[no][1].start)},so={type:ho>1?"strong":"emphasis",start:Object.assign({},lo.start),end:Object.assign({},uo.end)},eo[io][1].end=Object.assign({},lo.start),eo[no][1].start=Object.assign({},uo.end),go=[],eo[io][1].end.offset-eo[io][1].start.offset&&(go=push$1(go,[["enter",eo[io][1],to],["exit",eo[io][1],to]])),go=push$1(go,[["enter",so,to],["enter",lo,to],["exit",lo,to],["enter",ao,to]]),go=push$1(go,resolveAll(to.parser.constructs.insideSpan.null,eo.slice(io+1,no),to)),go=push$1(go,[["exit",ao,to],["enter",uo,to],["exit",uo,to],["exit",so,to]]),eo[no][1].end.offset-eo[no][1].start.offset?(mo=2,go=push$1(go,[["enter",eo[no][1],to],["exit",eo[no][1],to]])):mo=0,splice$1(eo,io-1,no-io+3,go),no=io+go.length-mo-2;break}}for(no=-1;++no0&&markdownSpace(Po)?factorySpace(eo,Oo,"linePrefix",ao+1)(Po):Oo(Po)}function Oo(Po){return Po===null||markdownLineEnding(Po)?eo.check(nonLazyContinuation,Co,Mo)(Po):(eo.enter("codeFlowValue"),No(Po))}function No(Po){return Po===null||markdownLineEnding(Po)?(eo.exit("codeFlowValue"),Oo(Po)):(eo.consume(Po),No)}function Mo(Po){return eo.exit("codeFenced"),to(Po)}function Bo(Po,Lo,Go){let Do=0;return Uo;function Uo(ps){return Po.enter("lineEnding"),Po.consume(ps),Po.exit("lineEnding"),Ho}function Ho(ps){return Po.enter("codeFencedFence"),markdownSpace(ps)?factorySpace(Po,Yo,"linePrefix",io.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ps):Yo(ps)}function Yo(ps){return ps===uo?(Po.enter("codeFencedFenceSequence"),qo(ps)):Go(ps)}function qo(ps){return ps===uo?(Do++,Po.consume(ps),qo):Do>=lo?(Po.exit("codeFencedFenceSequence"),markdownSpace(ps)?factorySpace(Po,Jo,"whitespace")(ps):Jo(ps)):Go(ps)}function Jo(ps){return ps===null||markdownLineEnding(ps)?(Po.exit("codeFencedFence"),Lo(ps)):Go(ps)}}}function tokenizeNonLazyContinuation(eo,to,no){const io=this;return so;function so(lo){return lo===null?no(lo):(eo.enter("lineEnding"),eo.consume(lo),eo.exit("lineEnding"),ao)}function ao(lo){return io.parser.lazy[io.now().line]?no(lo):to(lo)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={tokenize:tokenizeFurtherStart,partial:!0};function tokenizeCodeIndented(eo,to,no){const io=this;return so;function so(go){return eo.enter("codeIndented"),factorySpace(eo,ao,"linePrefix",5)(go)}function ao(go){const mo=io.events[io.events.length-1];return mo&&mo[1].type==="linePrefix"&&mo[2].sliceSerialize(mo[1],!0).length>=4?lo(go):no(go)}function lo(go){return go===null?ho(go):markdownLineEnding(go)?eo.attempt(furtherStart,lo,ho)(go):(eo.enter("codeFlowValue"),uo(go))}function uo(go){return go===null||markdownLineEnding(go)?(eo.exit("codeFlowValue"),lo(go)):(eo.consume(go),uo)}function ho(go){return eo.exit("codeIndented"),to(go)}}function tokenizeFurtherStart(eo,to,no){const io=this;return so;function so(lo){return io.parser.lazy[io.now().line]?no(lo):markdownLineEnding(lo)?(eo.enter("lineEnding"),eo.consume(lo),eo.exit("lineEnding"),so):factorySpace(eo,ao,"linePrefix",5)(lo)}function ao(lo){const uo=io.events[io.events.length-1];return uo&&uo[1].type==="linePrefix"&&uo[2].sliceSerialize(uo[1],!0).length>=4?to(lo):markdownLineEnding(lo)?so(lo):no(lo)}}const codeText={name:"codeText",tokenize:tokenizeCodeText,resolve:resolveCodeText,previous};function resolveCodeText(eo){let to=eo.length-4,no=3,io,so;if((eo[no][1].type==="lineEnding"||eo[no][1].type==="space")&&(eo[to][1].type==="lineEnding"||eo[to][1].type==="space")){for(io=no;++io=4?to(lo):eo.interrupt(io.parser.constructs.flow,no,to)(lo)}}function factoryDestination(eo,to,no,io,so,ao,lo,uo,ho){const go=ho||Number.POSITIVE_INFINITY;let mo=0;return yo;function yo(Ro){return Ro===60?(eo.enter(io),eo.enter(so),eo.enter(ao),eo.consume(Ro),eo.exit(ao),So):Ro===null||Ro===32||Ro===41||asciiControl(Ro)?no(Ro):(eo.enter(io),eo.enter(lo),eo.enter(uo),eo.enter("chunkString",{contentType:"string"}),Co(Ro))}function So(Ro){return Ro===62?(eo.enter(ao),eo.consume(Ro),eo.exit(ao),eo.exit(so),eo.exit(io),to):(eo.enter(uo),eo.enter("chunkString",{contentType:"string"}),_o(Ro))}function _o(Ro){return Ro===62?(eo.exit("chunkString"),eo.exit(uo),So(Ro)):Ro===null||Ro===60||markdownLineEnding(Ro)?no(Ro):(eo.consume(Ro),Ro===92?ko:_o)}function ko(Ro){return Ro===60||Ro===62||Ro===92?(eo.consume(Ro),_o):_o(Ro)}function Co(Ro){return!mo&&(Ro===null||Ro===41||markdownLineEndingOrSpace(Ro))?(eo.exit("chunkString"),eo.exit(uo),eo.exit(lo),eo.exit(io),to(Ro)):mo999||_o===null||_o===91||_o===93&&!ho||_o===94&&!uo&&"_hiddenFootnoteSupport"in lo.parser.constructs?no(_o):_o===93?(eo.exit(ao),eo.enter(so),eo.consume(_o),eo.exit(so),eo.exit(io),to):markdownLineEnding(_o)?(eo.enter("lineEnding"),eo.consume(_o),eo.exit("lineEnding"),mo):(eo.enter("chunkString",{contentType:"string"}),yo(_o))}function yo(_o){return _o===null||_o===91||_o===93||markdownLineEnding(_o)||uo++>999?(eo.exit("chunkString"),mo(_o)):(eo.consume(_o),ho||(ho=!markdownSpace(_o)),_o===92?So:yo)}function So(_o){return _o===91||_o===92||_o===93?(eo.consume(_o),uo++,yo):yo(_o)}}function factoryTitle(eo,to,no,io,so,ao){let lo;return uo;function uo(So){return So===34||So===39||So===40?(eo.enter(io),eo.enter(so),eo.consume(So),eo.exit(so),lo=So===40?41:So,ho):no(So)}function ho(So){return So===lo?(eo.enter(so),eo.consume(So),eo.exit(so),eo.exit(io),to):(eo.enter(ao),go(So))}function go(So){return So===lo?(eo.exit(ao),ho(lo)):So===null?no(So):markdownLineEnding(So)?(eo.enter("lineEnding"),eo.consume(So),eo.exit("lineEnding"),factorySpace(eo,go,"linePrefix")):(eo.enter("chunkString",{contentType:"string"}),mo(So))}function mo(So){return So===lo||So===null||markdownLineEnding(So)?(eo.exit("chunkString"),go(So)):(eo.consume(So),So===92?yo:mo)}function yo(So){return So===lo||So===92?(eo.consume(So),mo):mo(So)}}function factoryWhitespace(eo,to){let no;return io;function io(so){return markdownLineEnding(so)?(eo.enter("lineEnding"),eo.consume(so),eo.exit("lineEnding"),no=!0,io):markdownSpace(so)?factorySpace(eo,io,no?"linePrefix":"lineSuffix")(so):to(so)}}function normalizeIdentifier(eo){return eo.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const definition={name:"definition",tokenize:tokenizeDefinition},titleBefore={tokenize:tokenizeTitleBefore,partial:!0};function tokenizeDefinition(eo,to,no){const io=this;let so;return ao;function ao(_o){return eo.enter("definition"),lo(_o)}function lo(_o){return factoryLabel.call(io,eo,uo,no,"definitionLabel","definitionLabelMarker","definitionLabelString")(_o)}function uo(_o){return so=normalizeIdentifier(io.sliceSerialize(io.events[io.events.length-1][1]).slice(1,-1)),_o===58?(eo.enter("definitionMarker"),eo.consume(_o),eo.exit("definitionMarker"),ho):no(_o)}function ho(_o){return markdownLineEndingOrSpace(_o)?factoryWhitespace(eo,go)(_o):go(_o)}function go(_o){return factoryDestination(eo,mo,no,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(_o)}function mo(_o){return eo.attempt(titleBefore,yo,yo)(_o)}function yo(_o){return markdownSpace(_o)?factorySpace(eo,So,"whitespace")(_o):So(_o)}function So(_o){return _o===null||markdownLineEnding(_o)?(eo.exit("definition"),io.parser.defined.push(so),to(_o)):no(_o)}}function tokenizeTitleBefore(eo,to,no){return io;function io(uo){return markdownLineEndingOrSpace(uo)?factoryWhitespace(eo,so)(uo):no(uo)}function so(uo){return factoryTitle(eo,ao,no,"definitionTitle","definitionTitleMarker","definitionTitleString")(uo)}function ao(uo){return markdownSpace(uo)?factorySpace(eo,lo,"whitespace")(uo):lo(uo)}function lo(uo){return uo===null||markdownLineEnding(uo)?to(uo):no(uo)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(eo,to,no){return io;function io(ao){return eo.enter("hardBreakEscape"),eo.consume(ao),so}function so(ao){return markdownLineEnding(ao)?(eo.exit("hardBreakEscape"),to(ao)):no(ao)}}const headingAtx={name:"headingAtx",tokenize:tokenizeHeadingAtx,resolve:resolveHeadingAtx};function resolveHeadingAtx(eo,to){let no=eo.length-2,io=3,so,ao;return eo[io][1].type==="whitespace"&&(io+=2),no-2>io&&eo[no][1].type==="whitespace"&&(no-=2),eo[no][1].type==="atxHeadingSequence"&&(io===no-1||no-4>io&&eo[no-2][1].type==="whitespace")&&(no-=io+1===no?2:4),no>io&&(so={type:"atxHeadingText",start:eo[io][1].start,end:eo[no][1].end},ao={type:"chunkText",start:eo[io][1].start,end:eo[no][1].end,contentType:"text"},splice$1(eo,io,no-io+1,[["enter",so,to],["enter",ao,to],["exit",ao,to],["exit",so,to]])),eo}function tokenizeHeadingAtx(eo,to,no){let io=0;return so;function so(mo){return eo.enter("atxHeading"),ao(mo)}function ao(mo){return eo.enter("atxHeadingSequence"),lo(mo)}function lo(mo){return mo===35&&io++<6?(eo.consume(mo),lo):mo===null||markdownLineEndingOrSpace(mo)?(eo.exit("atxHeadingSequence"),uo(mo)):no(mo)}function uo(mo){return mo===35?(eo.enter("atxHeadingSequence"),ho(mo)):mo===null||markdownLineEnding(mo)?(eo.exit("atxHeading"),to(mo)):markdownSpace(mo)?factorySpace(eo,uo,"whitespace")(mo):(eo.enter("atxHeadingText"),go(mo))}function ho(mo){return mo===35?(eo.consume(mo),ho):(eo.exit("atxHeadingSequence"),uo(mo))}function go(mo){return mo===null||mo===35||markdownLineEndingOrSpace(mo)?(eo.exit("atxHeadingText"),uo(mo)):(eo.consume(mo),go)}}const htmlBlockNames=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={name:"htmlFlow",tokenize:tokenizeHtmlFlow,resolveTo:resolveToHtmlFlow,concrete:!0},blankLineBefore={tokenize:tokenizeBlankLineBefore,partial:!0},nonLazyContinuationStart={tokenize:tokenizeNonLazyContinuationStart,partial:!0};function resolveToHtmlFlow(eo){let to=eo.length;for(;to--&&!(eo[to][0]==="enter"&&eo[to][1].type==="htmlFlow"););return to>1&&eo[to-2][1].type==="linePrefix"&&(eo[to][1].start=eo[to-2][1].start,eo[to+1][1].start=eo[to-2][1].start,eo.splice(to-2,2)),eo}function tokenizeHtmlFlow(eo,to,no){const io=this;let so,ao,lo,uo,ho;return go;function go(Ts){return mo(Ts)}function mo(Ts){return eo.enter("htmlFlow"),eo.enter("htmlFlowData"),eo.consume(Ts),yo}function yo(Ts){return Ts===33?(eo.consume(Ts),So):Ts===47?(eo.consume(Ts),ao=!0,Co):Ts===63?(eo.consume(Ts),so=3,io.interrupt?to:vs):asciiAlpha(Ts)?(eo.consume(Ts),lo=String.fromCharCode(Ts),$o):no(Ts)}function So(Ts){return Ts===45?(eo.consume(Ts),so=2,_o):Ts===91?(eo.consume(Ts),so=5,uo=0,ko):asciiAlpha(Ts)?(eo.consume(Ts),so=4,io.interrupt?to:vs):no(Ts)}function _o(Ts){return Ts===45?(eo.consume(Ts),io.interrupt?to:vs):no(Ts)}function ko(Ts){const Xs="CDATA[";return Ts===Xs.charCodeAt(uo++)?(eo.consume(Ts),uo===Xs.length?io.interrupt?to:Yo:ko):no(Ts)}function Co(Ts){return asciiAlpha(Ts)?(eo.consume(Ts),lo=String.fromCharCode(Ts),$o):no(Ts)}function $o(Ts){if(Ts===null||Ts===47||Ts===62||markdownLineEndingOrSpace(Ts)){const Xs=Ts===47,Ws=lo.toLowerCase();return!Xs&&!ao&&htmlRawNames.includes(Ws)?(so=1,io.interrupt?to(Ts):Yo(Ts)):htmlBlockNames.includes(lo.toLowerCase())?(so=6,Xs?(eo.consume(Ts),Ro):io.interrupt?to(Ts):Yo(Ts)):(so=7,io.interrupt&&!io.parser.lazy[io.now().line]?no(Ts):ao?Oo(Ts):No(Ts))}return Ts===45||asciiAlphanumeric(Ts)?(eo.consume(Ts),lo+=String.fromCharCode(Ts),$o):no(Ts)}function Ro(Ts){return Ts===62?(eo.consume(Ts),io.interrupt?to:Yo):no(Ts)}function Oo(Ts){return markdownSpace(Ts)?(eo.consume(Ts),Oo):Uo(Ts)}function No(Ts){return Ts===47?(eo.consume(Ts),Uo):Ts===58||Ts===95||asciiAlpha(Ts)?(eo.consume(Ts),Mo):markdownSpace(Ts)?(eo.consume(Ts),No):Uo(Ts)}function Mo(Ts){return Ts===45||Ts===46||Ts===58||Ts===95||asciiAlphanumeric(Ts)?(eo.consume(Ts),Mo):Bo(Ts)}function Bo(Ts){return Ts===61?(eo.consume(Ts),Po):markdownSpace(Ts)?(eo.consume(Ts),Bo):No(Ts)}function Po(Ts){return Ts===null||Ts===60||Ts===61||Ts===62||Ts===96?no(Ts):Ts===34||Ts===39?(eo.consume(Ts),ho=Ts,Lo):markdownSpace(Ts)?(eo.consume(Ts),Po):Go(Ts)}function Lo(Ts){return Ts===ho?(eo.consume(Ts),ho=null,Do):Ts===null||markdownLineEnding(Ts)?no(Ts):(eo.consume(Ts),Lo)}function Go(Ts){return Ts===null||Ts===34||Ts===39||Ts===47||Ts===60||Ts===61||Ts===62||Ts===96||markdownLineEndingOrSpace(Ts)?Bo(Ts):(eo.consume(Ts),Go)}function Do(Ts){return Ts===47||Ts===62||markdownSpace(Ts)?No(Ts):no(Ts)}function Uo(Ts){return Ts===62?(eo.consume(Ts),Ho):no(Ts)}function Ho(Ts){return Ts===null||markdownLineEnding(Ts)?Yo(Ts):markdownSpace(Ts)?(eo.consume(Ts),Ho):no(Ts)}function Yo(Ts){return Ts===45&&so===2?(eo.consume(Ts),Qo):Ts===60&&so===1?(eo.consume(Ts),hs):Ts===62&&so===4?(eo.consume(Ts),ks):Ts===63&&so===3?(eo.consume(Ts),vs):Ts===93&&so===5?(eo.consume(Ts),ys):markdownLineEnding(Ts)&&(so===6||so===7)?(eo.exit("htmlFlowData"),eo.check(blankLineBefore,Os,qo)(Ts)):Ts===null||markdownLineEnding(Ts)?(eo.exit("htmlFlowData"),qo(Ts)):(eo.consume(Ts),Yo)}function qo(Ts){return eo.check(nonLazyContinuationStart,Jo,Os)(Ts)}function Jo(Ts){return eo.enter("lineEnding"),eo.consume(Ts),eo.exit("lineEnding"),ps}function ps(Ts){return Ts===null||markdownLineEnding(Ts)?qo(Ts):(eo.enter("htmlFlowData"),Yo(Ts))}function Qo(Ts){return Ts===45?(eo.consume(Ts),vs):Yo(Ts)}function hs(Ts){return Ts===47?(eo.consume(Ts),lo="",gs):Yo(Ts)}function gs(Ts){if(Ts===62){const Xs=lo.toLowerCase();return htmlRawNames.includes(Xs)?(eo.consume(Ts),ks):Yo(Ts)}return asciiAlpha(Ts)&&lo.length<8?(eo.consume(Ts),lo+=String.fromCharCode(Ts),gs):Yo(Ts)}function ys(Ts){return Ts===93?(eo.consume(Ts),vs):Yo(Ts)}function vs(Ts){return Ts===62?(eo.consume(Ts),ks):Ts===45&&so===2?(eo.consume(Ts),vs):Yo(Ts)}function ks(Ts){return Ts===null||markdownLineEnding(Ts)?(eo.exit("htmlFlowData"),Os(Ts)):(eo.consume(Ts),ks)}function Os(Ts){return eo.exit("htmlFlow"),to(Ts)}}function tokenizeNonLazyContinuationStart(eo,to,no){const io=this;return so;function so(lo){return markdownLineEnding(lo)?(eo.enter("lineEnding"),eo.consume(lo),eo.exit("lineEnding"),ao):no(lo)}function ao(lo){return io.parser.lazy[io.now().line]?no(lo):to(lo)}}function tokenizeBlankLineBefore(eo,to,no){return io;function io(so){return eo.enter("lineEnding"),eo.consume(so),eo.exit("lineEnding"),eo.attempt(blankLine,to,no)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(eo,to,no){const io=this;let so,ao,lo;return uo;function uo(vs){return eo.enter("htmlText"),eo.enter("htmlTextData"),eo.consume(vs),ho}function ho(vs){return vs===33?(eo.consume(vs),go):vs===47?(eo.consume(vs),Bo):vs===63?(eo.consume(vs),No):asciiAlpha(vs)?(eo.consume(vs),Go):no(vs)}function go(vs){return vs===45?(eo.consume(vs),mo):vs===91?(eo.consume(vs),ao=0,ko):asciiAlpha(vs)?(eo.consume(vs),Oo):no(vs)}function mo(vs){return vs===45?(eo.consume(vs),_o):no(vs)}function yo(vs){return vs===null?no(vs):vs===45?(eo.consume(vs),So):markdownLineEnding(vs)?(lo=yo,hs(vs)):(eo.consume(vs),yo)}function So(vs){return vs===45?(eo.consume(vs),_o):yo(vs)}function _o(vs){return vs===62?Qo(vs):vs===45?So(vs):yo(vs)}function ko(vs){const ks="CDATA[";return vs===ks.charCodeAt(ao++)?(eo.consume(vs),ao===ks.length?Co:ko):no(vs)}function Co(vs){return vs===null?no(vs):vs===93?(eo.consume(vs),$o):markdownLineEnding(vs)?(lo=Co,hs(vs)):(eo.consume(vs),Co)}function $o(vs){return vs===93?(eo.consume(vs),Ro):Co(vs)}function Ro(vs){return vs===62?Qo(vs):vs===93?(eo.consume(vs),Ro):Co(vs)}function Oo(vs){return vs===null||vs===62?Qo(vs):markdownLineEnding(vs)?(lo=Oo,hs(vs)):(eo.consume(vs),Oo)}function No(vs){return vs===null?no(vs):vs===63?(eo.consume(vs),Mo):markdownLineEnding(vs)?(lo=No,hs(vs)):(eo.consume(vs),No)}function Mo(vs){return vs===62?Qo(vs):No(vs)}function Bo(vs){return asciiAlpha(vs)?(eo.consume(vs),Po):no(vs)}function Po(vs){return vs===45||asciiAlphanumeric(vs)?(eo.consume(vs),Po):Lo(vs)}function Lo(vs){return markdownLineEnding(vs)?(lo=Lo,hs(vs)):markdownSpace(vs)?(eo.consume(vs),Lo):Qo(vs)}function Go(vs){return vs===45||asciiAlphanumeric(vs)?(eo.consume(vs),Go):vs===47||vs===62||markdownLineEndingOrSpace(vs)?Do(vs):no(vs)}function Do(vs){return vs===47?(eo.consume(vs),Qo):vs===58||vs===95||asciiAlpha(vs)?(eo.consume(vs),Uo):markdownLineEnding(vs)?(lo=Do,hs(vs)):markdownSpace(vs)?(eo.consume(vs),Do):Qo(vs)}function Uo(vs){return vs===45||vs===46||vs===58||vs===95||asciiAlphanumeric(vs)?(eo.consume(vs),Uo):Ho(vs)}function Ho(vs){return vs===61?(eo.consume(vs),Yo):markdownLineEnding(vs)?(lo=Ho,hs(vs)):markdownSpace(vs)?(eo.consume(vs),Ho):Do(vs)}function Yo(vs){return vs===null||vs===60||vs===61||vs===62||vs===96?no(vs):vs===34||vs===39?(eo.consume(vs),so=vs,qo):markdownLineEnding(vs)?(lo=Yo,hs(vs)):markdownSpace(vs)?(eo.consume(vs),Yo):(eo.consume(vs),Jo)}function qo(vs){return vs===so?(eo.consume(vs),so=void 0,ps):vs===null?no(vs):markdownLineEnding(vs)?(lo=qo,hs(vs)):(eo.consume(vs),qo)}function Jo(vs){return vs===null||vs===34||vs===39||vs===60||vs===61||vs===96?no(vs):vs===47||vs===62||markdownLineEndingOrSpace(vs)?Do(vs):(eo.consume(vs),Jo)}function ps(vs){return vs===47||vs===62||markdownLineEndingOrSpace(vs)?Do(vs):no(vs)}function Qo(vs){return vs===62?(eo.consume(vs),eo.exit("htmlTextData"),eo.exit("htmlText"),to):no(vs)}function hs(vs){return eo.exit("htmlTextData"),eo.enter("lineEnding"),eo.consume(vs),eo.exit("lineEnding"),gs}function gs(vs){return markdownSpace(vs)?factorySpace(eo,ys,"linePrefix",io.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(vs):ys(vs)}function ys(vs){return eo.enter("htmlTextData"),lo(vs)}}const labelEnd={name:"labelEnd",tokenize:tokenizeLabelEnd,resolveTo:resolveToLabelEnd,resolveAll:resolveAllLabelEnd},resourceConstruct={tokenize:tokenizeResource},referenceFullConstruct={tokenize:tokenizeReferenceFull},referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(eo){let to=-1;for(;++to=3&&(go===null||markdownLineEnding(go))?(eo.exit("thematicBreak"),to(go)):no(go)}function ho(go){return go===so?(eo.consume(go),io++,ho):(eo.exit("thematicBreakSequence"),markdownSpace(go)?factorySpace(eo,uo,"whitespace")(go):uo(go))}}const list={name:"list",tokenize:tokenizeListStart,continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd},listItemPrefixWhitespaceConstruct={tokenize:tokenizeListItemPrefixWhitespace,partial:!0},indentConstruct={tokenize:tokenizeIndent,partial:!0};function tokenizeListStart(eo,to,no){const io=this,so=io.events[io.events.length-1];let ao=so&&so[1].type==="linePrefix"?so[2].sliceSerialize(so[1],!0).length:0,lo=0;return uo;function uo(_o){const ko=io.containerState.type||(_o===42||_o===43||_o===45?"listUnordered":"listOrdered");if(ko==="listUnordered"?!io.containerState.marker||_o===io.containerState.marker:asciiDigit(_o)){if(io.containerState.type||(io.containerState.type=ko,eo.enter(ko,{_container:!0})),ko==="listUnordered")return eo.enter("listItemPrefix"),_o===42||_o===45?eo.check(thematicBreak,no,go)(_o):go(_o);if(!io.interrupt||_o===49)return eo.enter("listItemPrefix"),eo.enter("listItemValue"),ho(_o)}return no(_o)}function ho(_o){return asciiDigit(_o)&&++lo<10?(eo.consume(_o),ho):(!io.interrupt||lo<2)&&(io.containerState.marker?_o===io.containerState.marker:_o===41||_o===46)?(eo.exit("listItemValue"),go(_o)):no(_o)}function go(_o){return eo.enter("listItemMarker"),eo.consume(_o),eo.exit("listItemMarker"),io.containerState.marker=io.containerState.marker||_o,eo.check(blankLine,io.interrupt?no:mo,eo.attempt(listItemPrefixWhitespaceConstruct,So,yo))}function mo(_o){return io.containerState.initialBlankLine=!0,ao++,So(_o)}function yo(_o){return markdownSpace(_o)?(eo.enter("listItemPrefixWhitespace"),eo.consume(_o),eo.exit("listItemPrefixWhitespace"),So):no(_o)}function So(_o){return io.containerState.size=ao+io.sliceSerialize(eo.exit("listItemPrefix"),!0).length,to(_o)}}function tokenizeListContinuation(eo,to,no){const io=this;return io.containerState._closeFlow=void 0,eo.check(blankLine,so,ao);function so(uo){return io.containerState.furtherBlankLines=io.containerState.furtherBlankLines||io.containerState.initialBlankLine,factorySpace(eo,to,"listItemIndent",io.containerState.size+1)(uo)}function ao(uo){return io.containerState.furtherBlankLines||!markdownSpace(uo)?(io.containerState.furtherBlankLines=void 0,io.containerState.initialBlankLine=void 0,lo(uo)):(io.containerState.furtherBlankLines=void 0,io.containerState.initialBlankLine=void 0,eo.attempt(indentConstruct,to,lo)(uo))}function lo(uo){return io.containerState._closeFlow=!0,io.interrupt=void 0,factorySpace(eo,eo.attempt(list,to,no),"linePrefix",io.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(uo)}}function tokenizeIndent(eo,to,no){const io=this;return factorySpace(eo,so,"listItemIndent",io.containerState.size+1);function so(ao){const lo=io.events[io.events.length-1];return lo&&lo[1].type==="listItemIndent"&&lo[2].sliceSerialize(lo[1],!0).length===io.containerState.size?to(ao):no(ao)}}function tokenizeListEnd(eo){eo.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(eo,to,no){const io=this;return factorySpace(eo,so,"listItemPrefixWhitespace",io.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function so(ao){const lo=io.events[io.events.length-1];return!markdownSpace(ao)&&lo&&lo[1].type==="listItemPrefixWhitespace"?to(ao):no(ao)}}const setextUnderline={name:"setextUnderline",tokenize:tokenizeSetextUnderline,resolveTo:resolveToSetextUnderline};function resolveToSetextUnderline(eo,to){let no=eo.length,io,so,ao;for(;no--;)if(eo[no][0]==="enter"){if(eo[no][1].type==="content"){io=no;break}eo[no][1].type==="paragraph"&&(so=no)}else eo[no][1].type==="content"&&eo.splice(no,1),!ao&&eo[no][1].type==="definition"&&(ao=no);const lo={type:"setextHeading",start:Object.assign({},eo[so][1].start),end:Object.assign({},eo[eo.length-1][1].end)};return eo[so][1].type="setextHeadingText",ao?(eo.splice(so,0,["enter",lo,to]),eo.splice(ao+1,0,["exit",eo[io][1],to]),eo[io][1].end=Object.assign({},eo[ao][1].end)):eo[io][1]=lo,eo.push(["exit",lo,to]),eo}function tokenizeSetextUnderline(eo,to,no){const io=this;let so;return ao;function ao(go){let mo=io.events.length,yo;for(;mo--;)if(io.events[mo][1].type!=="lineEnding"&&io.events[mo][1].type!=="linePrefix"&&io.events[mo][1].type!=="content"){yo=io.events[mo][1].type==="paragraph";break}return!io.parser.lazy[io.now().line]&&(io.interrupt||yo)?(eo.enter("setextHeadingLine"),so=go,lo(go)):no(go)}function lo(go){return eo.enter("setextHeadingLineSequence"),uo(go)}function uo(go){return go===so?(eo.consume(go),uo):(eo.exit("setextHeadingLineSequence"),markdownSpace(go)?factorySpace(eo,ho,"lineSuffix")(go):ho(go))}function ho(go){return go===null||markdownLineEnding(go)?(eo.exit("setextHeadingLine"),to(go)):no(go)}}const flow$1={tokenize:initializeFlow};function initializeFlow(eo){const to=this,no=eo.attempt(blankLine,io,eo.attempt(this.parser.constructs.flowInitial,so,factorySpace(eo,eo.attempt(this.parser.constructs.flow,so,eo.attempt(content,so)),"linePrefix")));return no;function io(ao){if(ao===null){eo.consume(ao);return}return eo.enter("lineEndingBlank"),eo.consume(ao),eo.exit("lineEndingBlank"),to.currentConstruct=void 0,no}function so(ao){if(ao===null){eo.consume(ao);return}return eo.enter("lineEnding"),eo.consume(ao),eo.exit("lineEnding"),to.currentConstruct=void 0,no}}const resolver$1={resolveAll:createResolver()},string$2=initializeFactory("string"),text$1=initializeFactory("text");function initializeFactory(eo){return{tokenize:to,resolveAll:createResolver(eo==="text"?resolveAllLineSuffixes:void 0)};function to(no){const io=this,so=this.parser.constructs[eo],ao=no.attempt(so,lo,uo);return lo;function lo(mo){return go(mo)?ao(mo):uo(mo)}function uo(mo){if(mo===null){no.consume(mo);return}return no.enter("data"),no.consume(mo),ho}function ho(mo){return go(mo)?(no.exit("data"),ao(mo)):(no.consume(mo),ho)}function go(mo){if(mo===null)return!0;const yo=so[mo];let So=-1;if(yo)for(;++So-1){const uo=lo[0];typeof uo=="string"?lo[0]=uo.slice(io):lo.shift()}ao>0&&lo.push(eo[so].slice(0,ao))}return lo}function serializeChunks(eo,to){let no=-1;const io=[];let so;for(;++no0}function intersectPolygon$1(eo,to,no){var io=eo.x,so=eo.y,ao=[],lo=Number.POSITIVE_INFINITY,uo=Number.POSITIVE_INFINITY;to.forEach(function(ko){lo=Math.min(lo,ko.x),uo=Math.min(uo,ko.y)});for(var ho=io-eo.width/2-lo,go=so-eo.height/2-uo,mo=0;mo1&&ao.sort(function(ko,Co){var $o=ko.x-no.x,Ro=ko.y-no.y,Oo=Math.sqrt($o*$o+Ro*Ro),No=Co.x-no.x,Mo=Co.y-no.y,Bo=Math.sqrt(No*No+Mo*Mo);return OoMath.abs(so)*uo?(ao<0&&(uo=-uo),ho=ao===0?0:uo*so/ao,go=uo):(so<0&&(lo=-lo),ho=lo,go=so===0?0:lo*ao/so),{x:no+ho,y:io+go}}var shapes$2={rect:rect$2,ellipse,circle:circle$3,diamond};function setShapes(eo){shapes$2=eo}function rect$2(eo,to,no){var io=eo.insert("rect",":first-child").attr("rx",no.rx).attr("ry",no.ry).attr("x",-to.width/2).attr("y",-to.height/2).attr("width",to.width).attr("height",to.height);return no.intersect=function(so){return intersectRect$2(no,so)},io}function ellipse(eo,to,no){var io=to.width/2,so=to.height/2,ao=eo.insert("ellipse",":first-child").attr("x",-to.width/2).attr("y",-to.height/2).attr("rx",io).attr("ry",so);return no.intersect=function(lo){return intersectEllipse$1(no,io,so,lo)},ao}function circle$3(eo,to,no){var io=Math.max(to.width,to.height)/2,so=eo.insert("circle",":first-child").attr("x",-to.width/2).attr("y",-to.height/2).attr("r",io);return no.intersect=function(ao){return intersectCircle$1(no,io,ao)},so}function diamond(eo,to,no){var io=to.width*Math.SQRT2/2,so=to.height*Math.SQRT2/2,ao=[{x:0,y:-so},{x:-io,y:0},{x:0,y:so},{x:io,y:0}],lo=eo.insert("polygon",":first-child").attr("points",ao.map(function(uo){return uo.x+","+uo.y}).join(" "));return no.intersect=function(uo){return intersectPolygon$1(no,ao,uo)},lo}function render$1(){var eo=function(to,no){preProcessGraph(no);var io=createOrSelectGroup(to,"output"),so=createOrSelectGroup(io,"clusters"),ao=createOrSelectGroup(io,"edgePaths"),lo=createEdgeLabels(createOrSelectGroup(io,"edgeLabels"),no),uo=createNodes(createOrSelectGroup(io,"nodes"),no,shapes$2);layout$2(no),positionNodes$1(uo,no),positionEdgeLabels(lo,no),createEdgePaths(ao,no,arrows);var ho=createClusters(so,no);positionClusters(ho,no),postProcessGraph(no)};return eo.createNodes=function(to){return arguments.length?(setCreateNodes(to),eo):createNodes},eo.createClusters=function(to){return arguments.length?(setCreateClusters(to),eo):createClusters},eo.createEdgeLabels=function(to){return arguments.length?(setCreateEdgeLabels(to),eo):createEdgeLabels},eo.createEdgePaths=function(to){return arguments.length?(setCreateEdgePaths(to),eo):createEdgePaths},eo.shapes=function(to){return arguments.length?(setShapes(to),eo):shapes$2},eo.arrows=function(to){return arguments.length?(setArrows(to),eo):arrows},eo}var NODE_DEFAULT_ATTRS={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},EDGE_DEFAULT_ATTRS={arrowhead:"normal",curve:curveLinear};function preProcessGraph(eo){eo.nodes().forEach(function(to){var no=eo.node(to);!has(no,"label")&&!eo.children(to).length&&(no.label=to),has(no,"paddingX")&&defaults$i(no,{paddingLeft:no.paddingX,paddingRight:no.paddingX}),has(no,"paddingY")&&defaults$i(no,{paddingTop:no.paddingY,paddingBottom:no.paddingY}),has(no,"padding")&&defaults$i(no,{paddingLeft:no.padding,paddingRight:no.padding,paddingTop:no.padding,paddingBottom:no.padding}),defaults$i(no,NODE_DEFAULT_ATTRS),forEach(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(io){no[io]=Number(no[io])}),has(no,"width")&&(no._prevWidth=no.width),has(no,"height")&&(no._prevHeight=no.height)}),eo.edges().forEach(function(to){var no=eo.edge(to);has(no,"label")||(no.label=""),defaults$i(no,EDGE_DEFAULT_ATTRS)})}function postProcessGraph(eo){forEach(eo.nodes(),function(to){var no=eo.node(to);has(no,"_prevWidth")?no.width=no._prevWidth:delete no.width,has(no,"_prevHeight")?no.height=no._prevHeight:delete no.height,delete no._prevWidth,delete no._prevHeight})}function createOrSelectGroup(eo,to){var no=eo.select("g."+to);return no.empty()&&(no=eo.append("g").attr("class",to)),no}function write(eo){var to={options:{directed:eo.isDirected(),multigraph:eo.isMultigraph(),compound:eo.isCompound()},nodes:writeNodes(eo),edges:writeEdges(eo)};return isUndefined(eo.graph())||(to.value=clone$2(eo.graph())),to}function writeNodes(eo){return map(eo.nodes(),function(to){var no=eo.node(to),io=eo.parent(to),so={v:to};return isUndefined(no)||(so.value=no),isUndefined(io)||(so.parent=io),so})}function writeEdges(eo){return map(eo.edges(),function(to){var no=eo.edge(to),io={v:to.v,w:to.w};return isUndefined(to.name)||(io.name=to.name),isUndefined(no)||(io.value=no),io})}const emptyOptions={};function toString$2(eo,to){const no=to||emptyOptions,io=typeof no.includeImageAlt=="boolean"?no.includeImageAlt:!0,so=typeof no.includeHtml=="boolean"?no.includeHtml:!0;return one(eo,io,so)}function one(eo,to,no){if(node(eo)){if("value"in eo)return eo.type==="html"&&!no?"":eo.value;if(to&&"alt"in eo&&eo.alt)return eo.alt;if("children"in eo)return all(eo.children,to,no)}return Array.isArray(eo)?all(eo,to,no):""}function all(eo,to,no){const io=[];let so=-1;for(;++soso?0:so+to:to=to>so?so:to,no=no>0?no:0,io.length<1e4)lo=Array.from(io),lo.unshift(to,no),eo.splice(...lo);else for(no&&eo.splice(to,no);ao0?(splice$1(eo,eo.length,0,to),eo):to}const hasOwnProperty$5={}.hasOwnProperty;function combineExtensions(eo){const to={};let no=-1;for(;++nolo))return;const Lo=to.events.length;let Go=Lo,Do,Uo;for(;Go--;)if(to.events[Go][0]==="exit"&&to.events[Go][1].type==="chunkFlow"){if(Do){Uo=to.events[Go][1].end;break}Do=!0}for(Ro(io),Fo=Lo;FoNo;){const Bo=no[Mo];to.containerState=Bo[1],Bo[0].exit.call(to,eo)}no.length=No}function Oo(){so.write([null]),ao=void 0,so=void 0,to.containerState._closeFlow=void 0}}function tokenizeContainer(eo,to,no){return factorySpace(eo,eo.attempt(this.parser.constructs.document,to,no),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(eo){if(eo===null||markdownLineEndingOrSpace(eo)||unicodeWhitespace(eo))return 1;if(unicodePunctuation(eo))return 2}function resolveAll(eo,to,no){const io=[];let so=-1;for(;++so1&&eo[no][1].end.offset-eo[no][1].start.offset>1?2:1;const yo=Object.assign({},eo[io][1].end),So=Object.assign({},eo[no][1].start);movePoint(yo,-ho),movePoint(So,ho),lo={type:ho>1?"strongSequence":"emphasisSequence",start:yo,end:Object.assign({},eo[io][1].end)},uo={type:ho>1?"strongSequence":"emphasisSequence",start:Object.assign({},eo[no][1].start),end:So},ao={type:ho>1?"strongText":"emphasisText",start:Object.assign({},eo[io][1].end),end:Object.assign({},eo[no][1].start)},so={type:ho>1?"strong":"emphasis",start:Object.assign({},lo.start),end:Object.assign({},uo.end)},eo[io][1].end=Object.assign({},lo.start),eo[no][1].start=Object.assign({},uo.end),go=[],eo[io][1].end.offset-eo[io][1].start.offset&&(go=push$1(go,[["enter",eo[io][1],to],["exit",eo[io][1],to]])),go=push$1(go,[["enter",so,to],["enter",lo,to],["exit",lo,to],["enter",ao,to]]),go=push$1(go,resolveAll(to.parser.constructs.insideSpan.null,eo.slice(io+1,no),to)),go=push$1(go,[["exit",ao,to],["enter",uo,to],["exit",uo,to],["exit",so,to]]),eo[no][1].end.offset-eo[no][1].start.offset?(mo=2,go=push$1(go,[["enter",eo[no][1],to],["exit",eo[no][1],to]])):mo=0,splice$1(eo,io-1,no-io+3,go),no=io+go.length-mo-2;break}}for(no=-1;++no0&&markdownSpace(Fo)?factorySpace(eo,Oo,"linePrefix",ao+1)(Fo):Oo(Fo)}function Oo(Fo){return Fo===null||markdownLineEnding(Fo)?eo.check(nonLazyContinuation,Co,Mo)(Fo):(eo.enter("codeFlowValue"),No(Fo))}function No(Fo){return Fo===null||markdownLineEnding(Fo)?(eo.exit("codeFlowValue"),Oo(Fo)):(eo.consume(Fo),No)}function Mo(Fo){return eo.exit("codeFenced"),to(Fo)}function Bo(Fo,Lo,Go){let Do=0;return Uo;function Uo(ps){return Fo.enter("lineEnding"),Fo.consume(ps),Fo.exit("lineEnding"),Ho}function Ho(ps){return Fo.enter("codeFencedFence"),markdownSpace(ps)?factorySpace(Fo,Yo,"linePrefix",io.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ps):Yo(ps)}function Yo(ps){return ps===uo?(Fo.enter("codeFencedFenceSequence"),qo(ps)):Go(ps)}function qo(ps){return ps===uo?(Do++,Fo.consume(ps),qo):Do>=lo?(Fo.exit("codeFencedFenceSequence"),markdownSpace(ps)?factorySpace(Fo,Jo,"whitespace")(ps):Jo(ps)):Go(ps)}function Jo(ps){return ps===null||markdownLineEnding(ps)?(Fo.exit("codeFencedFence"),Lo(ps)):Go(ps)}}}function tokenizeNonLazyContinuation(eo,to,no){const io=this;return so;function so(lo){return lo===null?no(lo):(eo.enter("lineEnding"),eo.consume(lo),eo.exit("lineEnding"),ao)}function ao(lo){return io.parser.lazy[io.now().line]?no(lo):to(lo)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={tokenize:tokenizeFurtherStart,partial:!0};function tokenizeCodeIndented(eo,to,no){const io=this;return so;function so(go){return eo.enter("codeIndented"),factorySpace(eo,ao,"linePrefix",5)(go)}function ao(go){const mo=io.events[io.events.length-1];return mo&&mo[1].type==="linePrefix"&&mo[2].sliceSerialize(mo[1],!0).length>=4?lo(go):no(go)}function lo(go){return go===null?ho(go):markdownLineEnding(go)?eo.attempt(furtherStart,lo,ho)(go):(eo.enter("codeFlowValue"),uo(go))}function uo(go){return go===null||markdownLineEnding(go)?(eo.exit("codeFlowValue"),lo(go)):(eo.consume(go),uo)}function ho(go){return eo.exit("codeIndented"),to(go)}}function tokenizeFurtherStart(eo,to,no){const io=this;return so;function so(lo){return io.parser.lazy[io.now().line]?no(lo):markdownLineEnding(lo)?(eo.enter("lineEnding"),eo.consume(lo),eo.exit("lineEnding"),so):factorySpace(eo,ao,"linePrefix",5)(lo)}function ao(lo){const uo=io.events[io.events.length-1];return uo&&uo[1].type==="linePrefix"&&uo[2].sliceSerialize(uo[1],!0).length>=4?to(lo):markdownLineEnding(lo)?so(lo):no(lo)}}const codeText={name:"codeText",tokenize:tokenizeCodeText,resolve:resolveCodeText,previous};function resolveCodeText(eo){let to=eo.length-4,no=3,io,so;if((eo[no][1].type==="lineEnding"||eo[no][1].type==="space")&&(eo[to][1].type==="lineEnding"||eo[to][1].type==="space")){for(io=no;++io=4?to(lo):eo.interrupt(io.parser.constructs.flow,no,to)(lo)}}function factoryDestination(eo,to,no,io,so,ao,lo,uo,ho){const go=ho||Number.POSITIVE_INFINITY;let mo=0;return yo;function yo(Ro){return Ro===60?(eo.enter(io),eo.enter(so),eo.enter(ao),eo.consume(Ro),eo.exit(ao),So):Ro===null||Ro===32||Ro===41||asciiControl(Ro)?no(Ro):(eo.enter(io),eo.enter(lo),eo.enter(uo),eo.enter("chunkString",{contentType:"string"}),Co(Ro))}function So(Ro){return Ro===62?(eo.enter(ao),eo.consume(Ro),eo.exit(ao),eo.exit(so),eo.exit(io),to):(eo.enter(uo),eo.enter("chunkString",{contentType:"string"}),_o(Ro))}function _o(Ro){return Ro===62?(eo.exit("chunkString"),eo.exit(uo),So(Ro)):Ro===null||Ro===60||markdownLineEnding(Ro)?no(Ro):(eo.consume(Ro),Ro===92?ko:_o)}function ko(Ro){return Ro===60||Ro===62||Ro===92?(eo.consume(Ro),_o):_o(Ro)}function Co(Ro){return!mo&&(Ro===null||Ro===41||markdownLineEndingOrSpace(Ro))?(eo.exit("chunkString"),eo.exit(uo),eo.exit(lo),eo.exit(io),to(Ro)):mo999||_o===null||_o===91||_o===93&&!ho||_o===94&&!uo&&"_hiddenFootnoteSupport"in lo.parser.constructs?no(_o):_o===93?(eo.exit(ao),eo.enter(so),eo.consume(_o),eo.exit(so),eo.exit(io),to):markdownLineEnding(_o)?(eo.enter("lineEnding"),eo.consume(_o),eo.exit("lineEnding"),mo):(eo.enter("chunkString",{contentType:"string"}),yo(_o))}function yo(_o){return _o===null||_o===91||_o===93||markdownLineEnding(_o)||uo++>999?(eo.exit("chunkString"),mo(_o)):(eo.consume(_o),ho||(ho=!markdownSpace(_o)),_o===92?So:yo)}function So(_o){return _o===91||_o===92||_o===93?(eo.consume(_o),uo++,yo):yo(_o)}}function factoryTitle(eo,to,no,io,so,ao){let lo;return uo;function uo(So){return So===34||So===39||So===40?(eo.enter(io),eo.enter(so),eo.consume(So),eo.exit(so),lo=So===40?41:So,ho):no(So)}function ho(So){return So===lo?(eo.enter(so),eo.consume(So),eo.exit(so),eo.exit(io),to):(eo.enter(ao),go(So))}function go(So){return So===lo?(eo.exit(ao),ho(lo)):So===null?no(So):markdownLineEnding(So)?(eo.enter("lineEnding"),eo.consume(So),eo.exit("lineEnding"),factorySpace(eo,go,"linePrefix")):(eo.enter("chunkString",{contentType:"string"}),mo(So))}function mo(So){return So===lo||So===null||markdownLineEnding(So)?(eo.exit("chunkString"),go(So)):(eo.consume(So),So===92?yo:mo)}function yo(So){return So===lo||So===92?(eo.consume(So),mo):mo(So)}}function factoryWhitespace(eo,to){let no;return io;function io(so){return markdownLineEnding(so)?(eo.enter("lineEnding"),eo.consume(so),eo.exit("lineEnding"),no=!0,io):markdownSpace(so)?factorySpace(eo,io,no?"linePrefix":"lineSuffix")(so):to(so)}}function normalizeIdentifier(eo){return eo.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const definition={name:"definition",tokenize:tokenizeDefinition},titleBefore={tokenize:tokenizeTitleBefore,partial:!0};function tokenizeDefinition(eo,to,no){const io=this;let so;return ao;function ao(_o){return eo.enter("definition"),lo(_o)}function lo(_o){return factoryLabel.call(io,eo,uo,no,"definitionLabel","definitionLabelMarker","definitionLabelString")(_o)}function uo(_o){return so=normalizeIdentifier(io.sliceSerialize(io.events[io.events.length-1][1]).slice(1,-1)),_o===58?(eo.enter("definitionMarker"),eo.consume(_o),eo.exit("definitionMarker"),ho):no(_o)}function ho(_o){return markdownLineEndingOrSpace(_o)?factoryWhitespace(eo,go)(_o):go(_o)}function go(_o){return factoryDestination(eo,mo,no,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(_o)}function mo(_o){return eo.attempt(titleBefore,yo,yo)(_o)}function yo(_o){return markdownSpace(_o)?factorySpace(eo,So,"whitespace")(_o):So(_o)}function So(_o){return _o===null||markdownLineEnding(_o)?(eo.exit("definition"),io.parser.defined.push(so),to(_o)):no(_o)}}function tokenizeTitleBefore(eo,to,no){return io;function io(uo){return markdownLineEndingOrSpace(uo)?factoryWhitespace(eo,so)(uo):no(uo)}function so(uo){return factoryTitle(eo,ao,no,"definitionTitle","definitionTitleMarker","definitionTitleString")(uo)}function ao(uo){return markdownSpace(uo)?factorySpace(eo,lo,"whitespace")(uo):lo(uo)}function lo(uo){return uo===null||markdownLineEnding(uo)?to(uo):no(uo)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(eo,to,no){return io;function io(ao){return eo.enter("hardBreakEscape"),eo.consume(ao),so}function so(ao){return markdownLineEnding(ao)?(eo.exit("hardBreakEscape"),to(ao)):no(ao)}}const headingAtx={name:"headingAtx",tokenize:tokenizeHeadingAtx,resolve:resolveHeadingAtx};function resolveHeadingAtx(eo,to){let no=eo.length-2,io=3,so,ao;return eo[io][1].type==="whitespace"&&(io+=2),no-2>io&&eo[no][1].type==="whitespace"&&(no-=2),eo[no][1].type==="atxHeadingSequence"&&(io===no-1||no-4>io&&eo[no-2][1].type==="whitespace")&&(no-=io+1===no?2:4),no>io&&(so={type:"atxHeadingText",start:eo[io][1].start,end:eo[no][1].end},ao={type:"chunkText",start:eo[io][1].start,end:eo[no][1].end,contentType:"text"},splice$1(eo,io,no-io+1,[["enter",so,to],["enter",ao,to],["exit",ao,to],["exit",so,to]])),eo}function tokenizeHeadingAtx(eo,to,no){let io=0;return so;function so(mo){return eo.enter("atxHeading"),ao(mo)}function ao(mo){return eo.enter("atxHeadingSequence"),lo(mo)}function lo(mo){return mo===35&&io++<6?(eo.consume(mo),lo):mo===null||markdownLineEndingOrSpace(mo)?(eo.exit("atxHeadingSequence"),uo(mo)):no(mo)}function uo(mo){return mo===35?(eo.enter("atxHeadingSequence"),ho(mo)):mo===null||markdownLineEnding(mo)?(eo.exit("atxHeading"),to(mo)):markdownSpace(mo)?factorySpace(eo,uo,"whitespace")(mo):(eo.enter("atxHeadingText"),go(mo))}function ho(mo){return mo===35?(eo.consume(mo),ho):(eo.exit("atxHeadingSequence"),uo(mo))}function go(mo){return mo===null||mo===35||markdownLineEndingOrSpace(mo)?(eo.exit("atxHeadingText"),uo(mo)):(eo.consume(mo),go)}}const htmlBlockNames=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={name:"htmlFlow",tokenize:tokenizeHtmlFlow,resolveTo:resolveToHtmlFlow,concrete:!0},blankLineBefore={tokenize:tokenizeBlankLineBefore,partial:!0},nonLazyContinuationStart={tokenize:tokenizeNonLazyContinuationStart,partial:!0};function resolveToHtmlFlow(eo){let to=eo.length;for(;to--&&!(eo[to][0]==="enter"&&eo[to][1].type==="htmlFlow"););return to>1&&eo[to-2][1].type==="linePrefix"&&(eo[to][1].start=eo[to-2][1].start,eo[to+1][1].start=eo[to-2][1].start,eo.splice(to-2,2)),eo}function tokenizeHtmlFlow(eo,to,no){const io=this;let so,ao,lo,uo,ho;return go;function go(Ts){return mo(Ts)}function mo(Ts){return eo.enter("htmlFlow"),eo.enter("htmlFlowData"),eo.consume(Ts),yo}function yo(Ts){return Ts===33?(eo.consume(Ts),So):Ts===47?(eo.consume(Ts),ao=!0,Co):Ts===63?(eo.consume(Ts),so=3,io.interrupt?to:vs):asciiAlpha(Ts)?(eo.consume(Ts),lo=String.fromCharCode(Ts),$o):no(Ts)}function So(Ts){return Ts===45?(eo.consume(Ts),so=2,_o):Ts===91?(eo.consume(Ts),so=5,uo=0,ko):asciiAlpha(Ts)?(eo.consume(Ts),so=4,io.interrupt?to:vs):no(Ts)}function _o(Ts){return Ts===45?(eo.consume(Ts),io.interrupt?to:vs):no(Ts)}function ko(Ts){const Xs="CDATA[";return Ts===Xs.charCodeAt(uo++)?(eo.consume(Ts),uo===Xs.length?io.interrupt?to:Yo:ko):no(Ts)}function Co(Ts){return asciiAlpha(Ts)?(eo.consume(Ts),lo=String.fromCharCode(Ts),$o):no(Ts)}function $o(Ts){if(Ts===null||Ts===47||Ts===62||markdownLineEndingOrSpace(Ts)){const Xs=Ts===47,Ws=lo.toLowerCase();return!Xs&&!ao&&htmlRawNames.includes(Ws)?(so=1,io.interrupt?to(Ts):Yo(Ts)):htmlBlockNames.includes(lo.toLowerCase())?(so=6,Xs?(eo.consume(Ts),Ro):io.interrupt?to(Ts):Yo(Ts)):(so=7,io.interrupt&&!io.parser.lazy[io.now().line]?no(Ts):ao?Oo(Ts):No(Ts))}return Ts===45||asciiAlphanumeric(Ts)?(eo.consume(Ts),lo+=String.fromCharCode(Ts),$o):no(Ts)}function Ro(Ts){return Ts===62?(eo.consume(Ts),io.interrupt?to:Yo):no(Ts)}function Oo(Ts){return markdownSpace(Ts)?(eo.consume(Ts),Oo):Uo(Ts)}function No(Ts){return Ts===47?(eo.consume(Ts),Uo):Ts===58||Ts===95||asciiAlpha(Ts)?(eo.consume(Ts),Mo):markdownSpace(Ts)?(eo.consume(Ts),No):Uo(Ts)}function Mo(Ts){return Ts===45||Ts===46||Ts===58||Ts===95||asciiAlphanumeric(Ts)?(eo.consume(Ts),Mo):Bo(Ts)}function Bo(Ts){return Ts===61?(eo.consume(Ts),Fo):markdownSpace(Ts)?(eo.consume(Ts),Bo):No(Ts)}function Fo(Ts){return Ts===null||Ts===60||Ts===61||Ts===62||Ts===96?no(Ts):Ts===34||Ts===39?(eo.consume(Ts),ho=Ts,Lo):markdownSpace(Ts)?(eo.consume(Ts),Fo):Go(Ts)}function Lo(Ts){return Ts===ho?(eo.consume(Ts),ho=null,Do):Ts===null||markdownLineEnding(Ts)?no(Ts):(eo.consume(Ts),Lo)}function Go(Ts){return Ts===null||Ts===34||Ts===39||Ts===47||Ts===60||Ts===61||Ts===62||Ts===96||markdownLineEndingOrSpace(Ts)?Bo(Ts):(eo.consume(Ts),Go)}function Do(Ts){return Ts===47||Ts===62||markdownSpace(Ts)?No(Ts):no(Ts)}function Uo(Ts){return Ts===62?(eo.consume(Ts),Ho):no(Ts)}function Ho(Ts){return Ts===null||markdownLineEnding(Ts)?Yo(Ts):markdownSpace(Ts)?(eo.consume(Ts),Ho):no(Ts)}function Yo(Ts){return Ts===45&&so===2?(eo.consume(Ts),Qo):Ts===60&&so===1?(eo.consume(Ts),hs):Ts===62&&so===4?(eo.consume(Ts),ks):Ts===63&&so===3?(eo.consume(Ts),vs):Ts===93&&so===5?(eo.consume(Ts),ys):markdownLineEnding(Ts)&&(so===6||so===7)?(eo.exit("htmlFlowData"),eo.check(blankLineBefore,Os,qo)(Ts)):Ts===null||markdownLineEnding(Ts)?(eo.exit("htmlFlowData"),qo(Ts)):(eo.consume(Ts),Yo)}function qo(Ts){return eo.check(nonLazyContinuationStart,Jo,Os)(Ts)}function Jo(Ts){return eo.enter("lineEnding"),eo.consume(Ts),eo.exit("lineEnding"),ps}function ps(Ts){return Ts===null||markdownLineEnding(Ts)?qo(Ts):(eo.enter("htmlFlowData"),Yo(Ts))}function Qo(Ts){return Ts===45?(eo.consume(Ts),vs):Yo(Ts)}function hs(Ts){return Ts===47?(eo.consume(Ts),lo="",gs):Yo(Ts)}function gs(Ts){if(Ts===62){const Xs=lo.toLowerCase();return htmlRawNames.includes(Xs)?(eo.consume(Ts),ks):Yo(Ts)}return asciiAlpha(Ts)&&lo.length<8?(eo.consume(Ts),lo+=String.fromCharCode(Ts),gs):Yo(Ts)}function ys(Ts){return Ts===93?(eo.consume(Ts),vs):Yo(Ts)}function vs(Ts){return Ts===62?(eo.consume(Ts),ks):Ts===45&&so===2?(eo.consume(Ts),vs):Yo(Ts)}function ks(Ts){return Ts===null||markdownLineEnding(Ts)?(eo.exit("htmlFlowData"),Os(Ts)):(eo.consume(Ts),ks)}function Os(Ts){return eo.exit("htmlFlow"),to(Ts)}}function tokenizeNonLazyContinuationStart(eo,to,no){const io=this;return so;function so(lo){return markdownLineEnding(lo)?(eo.enter("lineEnding"),eo.consume(lo),eo.exit("lineEnding"),ao):no(lo)}function ao(lo){return io.parser.lazy[io.now().line]?no(lo):to(lo)}}function tokenizeBlankLineBefore(eo,to,no){return io;function io(so){return eo.enter("lineEnding"),eo.consume(so),eo.exit("lineEnding"),eo.attempt(blankLine,to,no)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(eo,to,no){const io=this;let so,ao,lo;return uo;function uo(vs){return eo.enter("htmlText"),eo.enter("htmlTextData"),eo.consume(vs),ho}function ho(vs){return vs===33?(eo.consume(vs),go):vs===47?(eo.consume(vs),Bo):vs===63?(eo.consume(vs),No):asciiAlpha(vs)?(eo.consume(vs),Go):no(vs)}function go(vs){return vs===45?(eo.consume(vs),mo):vs===91?(eo.consume(vs),ao=0,ko):asciiAlpha(vs)?(eo.consume(vs),Oo):no(vs)}function mo(vs){return vs===45?(eo.consume(vs),_o):no(vs)}function yo(vs){return vs===null?no(vs):vs===45?(eo.consume(vs),So):markdownLineEnding(vs)?(lo=yo,hs(vs)):(eo.consume(vs),yo)}function So(vs){return vs===45?(eo.consume(vs),_o):yo(vs)}function _o(vs){return vs===62?Qo(vs):vs===45?So(vs):yo(vs)}function ko(vs){const ks="CDATA[";return vs===ks.charCodeAt(ao++)?(eo.consume(vs),ao===ks.length?Co:ko):no(vs)}function Co(vs){return vs===null?no(vs):vs===93?(eo.consume(vs),$o):markdownLineEnding(vs)?(lo=Co,hs(vs)):(eo.consume(vs),Co)}function $o(vs){return vs===93?(eo.consume(vs),Ro):Co(vs)}function Ro(vs){return vs===62?Qo(vs):vs===93?(eo.consume(vs),Ro):Co(vs)}function Oo(vs){return vs===null||vs===62?Qo(vs):markdownLineEnding(vs)?(lo=Oo,hs(vs)):(eo.consume(vs),Oo)}function No(vs){return vs===null?no(vs):vs===63?(eo.consume(vs),Mo):markdownLineEnding(vs)?(lo=No,hs(vs)):(eo.consume(vs),No)}function Mo(vs){return vs===62?Qo(vs):No(vs)}function Bo(vs){return asciiAlpha(vs)?(eo.consume(vs),Fo):no(vs)}function Fo(vs){return vs===45||asciiAlphanumeric(vs)?(eo.consume(vs),Fo):Lo(vs)}function Lo(vs){return markdownLineEnding(vs)?(lo=Lo,hs(vs)):markdownSpace(vs)?(eo.consume(vs),Lo):Qo(vs)}function Go(vs){return vs===45||asciiAlphanumeric(vs)?(eo.consume(vs),Go):vs===47||vs===62||markdownLineEndingOrSpace(vs)?Do(vs):no(vs)}function Do(vs){return vs===47?(eo.consume(vs),Qo):vs===58||vs===95||asciiAlpha(vs)?(eo.consume(vs),Uo):markdownLineEnding(vs)?(lo=Do,hs(vs)):markdownSpace(vs)?(eo.consume(vs),Do):Qo(vs)}function Uo(vs){return vs===45||vs===46||vs===58||vs===95||asciiAlphanumeric(vs)?(eo.consume(vs),Uo):Ho(vs)}function Ho(vs){return vs===61?(eo.consume(vs),Yo):markdownLineEnding(vs)?(lo=Ho,hs(vs)):markdownSpace(vs)?(eo.consume(vs),Ho):Do(vs)}function Yo(vs){return vs===null||vs===60||vs===61||vs===62||vs===96?no(vs):vs===34||vs===39?(eo.consume(vs),so=vs,qo):markdownLineEnding(vs)?(lo=Yo,hs(vs)):markdownSpace(vs)?(eo.consume(vs),Yo):(eo.consume(vs),Jo)}function qo(vs){return vs===so?(eo.consume(vs),so=void 0,ps):vs===null?no(vs):markdownLineEnding(vs)?(lo=qo,hs(vs)):(eo.consume(vs),qo)}function Jo(vs){return vs===null||vs===34||vs===39||vs===60||vs===61||vs===96?no(vs):vs===47||vs===62||markdownLineEndingOrSpace(vs)?Do(vs):(eo.consume(vs),Jo)}function ps(vs){return vs===47||vs===62||markdownLineEndingOrSpace(vs)?Do(vs):no(vs)}function Qo(vs){return vs===62?(eo.consume(vs),eo.exit("htmlTextData"),eo.exit("htmlText"),to):no(vs)}function hs(vs){return eo.exit("htmlTextData"),eo.enter("lineEnding"),eo.consume(vs),eo.exit("lineEnding"),gs}function gs(vs){return markdownSpace(vs)?factorySpace(eo,ys,"linePrefix",io.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(vs):ys(vs)}function ys(vs){return eo.enter("htmlTextData"),lo(vs)}}const labelEnd={name:"labelEnd",tokenize:tokenizeLabelEnd,resolveTo:resolveToLabelEnd,resolveAll:resolveAllLabelEnd},resourceConstruct={tokenize:tokenizeResource},referenceFullConstruct={tokenize:tokenizeReferenceFull},referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(eo){let to=-1;for(;++to=3&&(go===null||markdownLineEnding(go))?(eo.exit("thematicBreak"),to(go)):no(go)}function ho(go){return go===so?(eo.consume(go),io++,ho):(eo.exit("thematicBreakSequence"),markdownSpace(go)?factorySpace(eo,uo,"whitespace")(go):uo(go))}}const list={name:"list",tokenize:tokenizeListStart,continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd},listItemPrefixWhitespaceConstruct={tokenize:tokenizeListItemPrefixWhitespace,partial:!0},indentConstruct={tokenize:tokenizeIndent,partial:!0};function tokenizeListStart(eo,to,no){const io=this,so=io.events[io.events.length-1];let ao=so&&so[1].type==="linePrefix"?so[2].sliceSerialize(so[1],!0).length:0,lo=0;return uo;function uo(_o){const ko=io.containerState.type||(_o===42||_o===43||_o===45?"listUnordered":"listOrdered");if(ko==="listUnordered"?!io.containerState.marker||_o===io.containerState.marker:asciiDigit(_o)){if(io.containerState.type||(io.containerState.type=ko,eo.enter(ko,{_container:!0})),ko==="listUnordered")return eo.enter("listItemPrefix"),_o===42||_o===45?eo.check(thematicBreak,no,go)(_o):go(_o);if(!io.interrupt||_o===49)return eo.enter("listItemPrefix"),eo.enter("listItemValue"),ho(_o)}return no(_o)}function ho(_o){return asciiDigit(_o)&&++lo<10?(eo.consume(_o),ho):(!io.interrupt||lo<2)&&(io.containerState.marker?_o===io.containerState.marker:_o===41||_o===46)?(eo.exit("listItemValue"),go(_o)):no(_o)}function go(_o){return eo.enter("listItemMarker"),eo.consume(_o),eo.exit("listItemMarker"),io.containerState.marker=io.containerState.marker||_o,eo.check(blankLine,io.interrupt?no:mo,eo.attempt(listItemPrefixWhitespaceConstruct,So,yo))}function mo(_o){return io.containerState.initialBlankLine=!0,ao++,So(_o)}function yo(_o){return markdownSpace(_o)?(eo.enter("listItemPrefixWhitespace"),eo.consume(_o),eo.exit("listItemPrefixWhitespace"),So):no(_o)}function So(_o){return io.containerState.size=ao+io.sliceSerialize(eo.exit("listItemPrefix"),!0).length,to(_o)}}function tokenizeListContinuation(eo,to,no){const io=this;return io.containerState._closeFlow=void 0,eo.check(blankLine,so,ao);function so(uo){return io.containerState.furtherBlankLines=io.containerState.furtherBlankLines||io.containerState.initialBlankLine,factorySpace(eo,to,"listItemIndent",io.containerState.size+1)(uo)}function ao(uo){return io.containerState.furtherBlankLines||!markdownSpace(uo)?(io.containerState.furtherBlankLines=void 0,io.containerState.initialBlankLine=void 0,lo(uo)):(io.containerState.furtherBlankLines=void 0,io.containerState.initialBlankLine=void 0,eo.attempt(indentConstruct,to,lo)(uo))}function lo(uo){return io.containerState._closeFlow=!0,io.interrupt=void 0,factorySpace(eo,eo.attempt(list,to,no),"linePrefix",io.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(uo)}}function tokenizeIndent(eo,to,no){const io=this;return factorySpace(eo,so,"listItemIndent",io.containerState.size+1);function so(ao){const lo=io.events[io.events.length-1];return lo&&lo[1].type==="listItemIndent"&&lo[2].sliceSerialize(lo[1],!0).length===io.containerState.size?to(ao):no(ao)}}function tokenizeListEnd(eo){eo.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(eo,to,no){const io=this;return factorySpace(eo,so,"listItemPrefixWhitespace",io.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function so(ao){const lo=io.events[io.events.length-1];return!markdownSpace(ao)&&lo&&lo[1].type==="listItemPrefixWhitespace"?to(ao):no(ao)}}const setextUnderline={name:"setextUnderline",tokenize:tokenizeSetextUnderline,resolveTo:resolveToSetextUnderline};function resolveToSetextUnderline(eo,to){let no=eo.length,io,so,ao;for(;no--;)if(eo[no][0]==="enter"){if(eo[no][1].type==="content"){io=no;break}eo[no][1].type==="paragraph"&&(so=no)}else eo[no][1].type==="content"&&eo.splice(no,1),!ao&&eo[no][1].type==="definition"&&(ao=no);const lo={type:"setextHeading",start:Object.assign({},eo[so][1].start),end:Object.assign({},eo[eo.length-1][1].end)};return eo[so][1].type="setextHeadingText",ao?(eo.splice(so,0,["enter",lo,to]),eo.splice(ao+1,0,["exit",eo[io][1],to]),eo[io][1].end=Object.assign({},eo[ao][1].end)):eo[io][1]=lo,eo.push(["exit",lo,to]),eo}function tokenizeSetextUnderline(eo,to,no){const io=this;let so;return ao;function ao(go){let mo=io.events.length,yo;for(;mo--;)if(io.events[mo][1].type!=="lineEnding"&&io.events[mo][1].type!=="linePrefix"&&io.events[mo][1].type!=="content"){yo=io.events[mo][1].type==="paragraph";break}return!io.parser.lazy[io.now().line]&&(io.interrupt||yo)?(eo.enter("setextHeadingLine"),so=go,lo(go)):no(go)}function lo(go){return eo.enter("setextHeadingLineSequence"),uo(go)}function uo(go){return go===so?(eo.consume(go),uo):(eo.exit("setextHeadingLineSequence"),markdownSpace(go)?factorySpace(eo,ho,"lineSuffix")(go):ho(go))}function ho(go){return go===null||markdownLineEnding(go)?(eo.exit("setextHeadingLine"),to(go)):no(go)}}const flow$1={tokenize:initializeFlow};function initializeFlow(eo){const to=this,no=eo.attempt(blankLine,io,eo.attempt(this.parser.constructs.flowInitial,so,factorySpace(eo,eo.attempt(this.parser.constructs.flow,so,eo.attempt(content,so)),"linePrefix")));return no;function io(ao){if(ao===null){eo.consume(ao);return}return eo.enter("lineEndingBlank"),eo.consume(ao),eo.exit("lineEndingBlank"),to.currentConstruct=void 0,no}function so(ao){if(ao===null){eo.consume(ao);return}return eo.enter("lineEnding"),eo.consume(ao),eo.exit("lineEnding"),to.currentConstruct=void 0,no}}const resolver$1={resolveAll:createResolver()},string$2=initializeFactory("string"),text$1=initializeFactory("text");function initializeFactory(eo){return{tokenize:to,resolveAll:createResolver(eo==="text"?resolveAllLineSuffixes:void 0)};function to(no){const io=this,so=this.parser.constructs[eo],ao=no.attempt(so,lo,uo);return lo;function lo(mo){return go(mo)?ao(mo):uo(mo)}function uo(mo){if(mo===null){no.consume(mo);return}return no.enter("data"),no.consume(mo),ho}function ho(mo){return go(mo)?(no.exit("data"),ao(mo)):(no.consume(mo),ho)}function go(mo){if(mo===null)return!0;const yo=so[mo];let So=-1;if(yo)for(;++So-1){const uo=lo[0];typeof uo=="string"?lo[0]=uo.slice(io):lo.shift()}ao>0&&lo.push(eo[so].slice(0,ao))}return lo}function serializeChunks(eo,to){let no=-1;const io=[];let so;for(;++no13&&no<32||no>126&&no<160||no>55295&&no<57344||no>64975&&no<65008||(no&65535)===65535||(no&65535)===65534||no>1114111?"�":String.fromCharCode(no)}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(eo){return eo.replace(characterEscapeOrReference,decode)}function decode(eo,to,no){if(to)return to;if(no.charCodeAt(0)===35){const so=no.charCodeAt(1),ao=so===120||so===88;return decodeNumericCharacterReference(no.slice(ao?2:1),ao?16:10)}return decodeNamedCharacterReference(no)||eo}function stringifyPosition(eo){return!eo||typeof eo!="object"?"":"position"in eo||"type"in eo?position$1(eo.position):"start"in eo||"end"in eo?position$1(eo):"line"in eo||"column"in eo?point$2(eo):""}function point$2(eo){return index(eo&&eo.line)+":"+index(eo&&eo.column)}function position$1(eo){return point$2(eo&&eo.start)+"-"+point$2(eo&&eo.end)}function index(eo){return eo&&typeof eo=="number"?eo:1}const own={}.hasOwnProperty,fromMarkdown=function(eo,to,no){return typeof to!="string"&&(no=to,to=void 0),compiler(no)(postprocess(parse$3(no).document().write(preprocess()(eo,to,!0))))};function compiler(eo){const to={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:uo(F1),autolinkProtocol:Ho,autolinkEmail:Ho,atxHeading:uo(du),blockQuote:uo(Vs),characterEscape:Ho,characterReference:Ho,codeFenced:uo(El),codeFencedFenceInfo:ho,codeFencedFenceMeta:ho,codeIndented:uo(El,ho),codeText:uo(yl,ho),codeTextData:Ho,data:Ho,codeFlowValue:Ho,definition:uo(Gl),definitionDestinationString:ho,definitionLabelString:ho,definitionTitleString:ho,emphasis:uo(Qs),hardBreakEscape:uo(Ol),hardBreakTrailing:uo(Ol),htmlFlow:uo(Fu,ho),htmlFlowData:Ho,htmlText:uo(Fu,ho),htmlTextData:Ho,image:uo(ju),label:ho,link:uo(F1),listItem:uo(r1),listItemValue:ko,listOrdered:uo(y1,_o),listUnordered:uo(y1),paragraph:uo($u),reference:Ws,referenceString:ho,resourceDestinationString:ho,resourceTitleString:ho,setextHeading:uo(du),strong:uo(Kl),thematicBreak:uo(Ks)},exit:{atxHeading:mo(),atxHeadingSequence:Lo,autolink:mo(),autolinkEmail:Js,autolinkProtocol:Fs,blockQuote:mo(),characterEscapeValue:Yo,characterReferenceMarkerHexadecimal:qs,characterReferenceMarkerNumeric:qs,characterReferenceValue:ga,codeFenced:mo(Oo),codeFencedFence:Ro,codeFencedFenceInfo:Co,codeFencedFenceMeta:$o,codeFlowValue:Yo,codeIndented:mo(No),codeText:mo(hs),codeTextData:Yo,data:Yo,definition:mo(),definitionDestinationString:Po,definitionLabelString:Mo,definitionTitleString:Bo,emphasis:mo(),hardBreakEscape:mo(Jo),hardBreakTrailing:mo(Jo),htmlFlow:mo(ps),htmlFlowData:Yo,htmlText:mo(Qo),htmlTextData:Yo,image:mo(ys),label:ks,labelText:vs,lineEnding:qo,link:mo(gs),listItem:mo(),listOrdered:mo(),listUnordered:mo(),paragraph:mo(),referenceString:Ps,resourceDestinationString:Os,resourceTitleString:Ts,resource:Xs,setextHeading:mo(Uo),setextHeadingLineSequence:Do,setextHeadingText:Go,strong:mo(),thematicBreak:mo()}};configure(to,(eo||{}).mdastExtensions||[]);const no={};return io;function io(Bs){let Ds={type:"root",children:[]};const Zs={stack:[Ds],tokenStack:[],config:to,enter:go,exit:yo,buffer:ho,resume:So,setData:ao,getData:lo},Cl=[];let ba=-1;for(;++ba0){const fu=Zs.tokenStack[Zs.tokenStack.length-1];(fu[1]||defaultOnError).call(Zs,void 0,fu[0])}for(Ds.position={start:point$1(Bs.length>0?Bs[0][1].start:{line:1,column:1,offset:0}),end:point$1(Bs.length>0?Bs[Bs.length-2][1].end:{line:1,column:1,offset:0})},ba=-1;++ba13&&no<32||no>126&&no<160||no>55295&&no<57344||no>64975&&no<65008||(no&65535)===65535||(no&65535)===65534||no>1114111?"�":String.fromCharCode(no)}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(eo){return eo.replace(characterEscapeOrReference,decode)}function decode(eo,to,no){if(to)return to;if(no.charCodeAt(0)===35){const so=no.charCodeAt(1),ao=so===120||so===88;return decodeNumericCharacterReference(no.slice(ao?2:1),ao?16:10)}return decodeNamedCharacterReference(no)||eo}function stringifyPosition(eo){return!eo||typeof eo!="object"?"":"position"in eo||"type"in eo?position$1(eo.position):"start"in eo||"end"in eo?position$1(eo):"line"in eo||"column"in eo?point$2(eo):""}function point$2(eo){return index(eo&&eo.line)+":"+index(eo&&eo.column)}function position$1(eo){return point$2(eo&&eo.start)+"-"+point$2(eo&&eo.end)}function index(eo){return eo&&typeof eo=="number"?eo:1}const own={}.hasOwnProperty,fromMarkdown=function(eo,to,no){return typeof to!="string"&&(no=to,to=void 0),compiler(no)(postprocess(parse$3(no).document().write(preprocess()(eo,to,!0))))};function compiler(eo){const to={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:uo(F1),autolinkProtocol:Ho,autolinkEmail:Ho,atxHeading:uo(du),blockQuote:uo(Vs),characterEscape:Ho,characterReference:Ho,codeFenced:uo(El),codeFencedFenceInfo:ho,codeFencedFenceMeta:ho,codeIndented:uo(El,ho),codeText:uo(yl,ho),codeTextData:Ho,data:Ho,codeFlowValue:Ho,definition:uo(Gl),definitionDestinationString:ho,definitionLabelString:ho,definitionTitleString:ho,emphasis:uo(Qs),hardBreakEscape:uo(Ol),hardBreakTrailing:uo(Ol),htmlFlow:uo(Fu,ho),htmlFlowData:Ho,htmlText:uo(Fu,ho),htmlTextData:Ho,image:uo(ju),label:ho,link:uo(F1),listItem:uo(r1),listItemValue:ko,listOrdered:uo(y1,_o),listUnordered:uo(y1),paragraph:uo($u),reference:Ws,referenceString:ho,resourceDestinationString:ho,resourceTitleString:ho,setextHeading:uo(du),strong:uo(Kl),thematicBreak:uo(Ks)},exit:{atxHeading:mo(),atxHeadingSequence:Lo,autolink:mo(),autolinkEmail:Js,autolinkProtocol:Fs,blockQuote:mo(),characterEscapeValue:Yo,characterReferenceMarkerHexadecimal:qs,characterReferenceMarkerNumeric:qs,characterReferenceValue:ga,codeFenced:mo(Oo),codeFencedFence:Ro,codeFencedFenceInfo:Co,codeFencedFenceMeta:$o,codeFlowValue:Yo,codeIndented:mo(No),codeText:mo(hs),codeTextData:Yo,data:Yo,definition:mo(),definitionDestinationString:Fo,definitionLabelString:Mo,definitionTitleString:Bo,emphasis:mo(),hardBreakEscape:mo(Jo),hardBreakTrailing:mo(Jo),htmlFlow:mo(ps),htmlFlowData:Yo,htmlText:mo(Qo),htmlTextData:Yo,image:mo(ys),label:ks,labelText:vs,lineEnding:qo,link:mo(gs),listItem:mo(),listOrdered:mo(),listUnordered:mo(),paragraph:mo(),referenceString:Ps,resourceDestinationString:Os,resourceTitleString:Ts,resource:Xs,setextHeading:mo(Uo),setextHeadingLineSequence:Do,setextHeadingText:Go,strong:mo(),thematicBreak:mo()}};configure(to,(eo||{}).mdastExtensions||[]);const no={};return io;function io(Bs){let Ds={type:"root",children:[]};const Zs={stack:[Ds],tokenStack:[],config:to,enter:go,exit:yo,buffer:ho,resume:So,setData:ao,getData:lo},Cl=[];let ba=-1;for(;++ba0){const fu=Zs.tokenStack[Zs.tokenStack.length-1];(fu[1]||defaultOnError).call(Zs,void 0,fu[0])}for(Ds.position={start:point$1(Bs.length>0?Bs[0][1].start:{line:1,column:1,offset:0}),end:point$1(Bs.length>0?Bs[Bs.length-2][1].end:{line:1,column:1,offset:0})},ba=-1;++ba{mo!==0&&(so++,io.push([])),go.split(" ").forEach(yo=>{yo&&io[so].push({content:yo,type:uo})})}):(lo.type==="strong"||lo.type==="emphasis")&&lo.children.forEach(ho=>{ao(ho,lo.type)})}return no.forEach(lo=>{lo.type==="paragraph"&&lo.children.forEach(uo=>{ao(uo)})}),io}function markdownToHTML(eo){const{children:to}=fromMarkdown(eo);function no(io){return io.type==="text"?io.value.replace(/\n/g,"
"):io.type==="strong"?`${io.children.map(no).join("")}`:io.type==="emphasis"?`${io.children.map(no).join("")}`:io.type==="paragraph"?`

${io.children.map(no).join("")}

`:`Unsupported markdown: ${io.type}`}return to.map(no).join("")}function splitTextToChars(eo){return Intl.Segmenter?[...new Intl.Segmenter().segment(eo)].map(to=>to.segment):[...eo]}function splitWordToFitWidth(eo,to){const no=splitTextToChars(to.content);return splitWordToFitWidthRecursion(eo,[],no,to.type)}function splitWordToFitWidthRecursion(eo,to,no,io){if(no.length===0)return[{content:to.join(""),type:io},{content:"",type:io}];const[so,...ao]=no,lo=[...to,so];return eo([{content:lo.join(""),type:io}])?splitWordToFitWidthRecursion(eo,lo,ao,io):(to.length===0&&so&&(to.push(so),no.shift()),[{content:to.join(""),type:io},{content:no.join(""),type:io}])}function splitLineToFitWidth(eo,to){if(eo.some(({content:no})=>no.includes(` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return splitLineToFitWidthRecursion(eo,to)}function splitLineToFitWidthRecursion(eo,to,no=[],io=[]){if(eo.length===0)return io.length>0&&no.push(io),no.length>0?no:[];let so="";eo[0].content===" "&&(so=" ",eo.shift());const ao=eo.shift()??{content:" ",type:"normal"},lo=[...io];if(so!==""&&lo.push({content:so,type:"normal"}),lo.push(ao),to(lo))return splitLineToFitWidthRecursion(eo,to,no,lo);if(io.length>0)no.push(io),eo.unshift(ao);else if(ao.content){const[uo,ho]=splitWordToFitWidth(to,ao);no.push([uo]),ho.content&&eo.unshift(ho)}return splitLineToFitWidthRecursion(eo,to,no)}function applyStyle$1(eo,to){to&&eo.attr("style",to)}function addHtmlSpan(eo,to,no,io,so=!1){const ao=eo.append("foreignObject"),lo=ao.append("xhtml:div"),uo=to.label,ho=to.isNode?"nodeLabel":"edgeLabel";lo.html(` - "+uo+""),applyStyle$1(lo,to.labelStyle),lo.style("display","table-cell"),lo.style("white-space","nowrap"),lo.style("max-width",no+"px"),lo.attr("xmlns","http://www.w3.org/1999/xhtml"),so&&lo.attr("class","labelBkg");let go=lo.node().getBoundingClientRect();return go.width===no&&(lo.style("display","table"),lo.style("white-space","break-spaces"),lo.style("width",no+"px"),go=lo.node().getBoundingClientRect()),ao.style("width",go.width),ao.style("height",go.height),ao.node()}function createTspan(eo,to,no){return eo.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",to*no-.1+"em").attr("dy",no+"em")}function computeWidthOfText(eo,to,no){const io=eo.append("text"),so=createTspan(io,1,to);updateTextContentAndStyles(so,no);const ao=so.node().getComputedTextLength();return io.remove(),ao}function computeDimensionOfText(eo,to,no){var io;const so=eo.append("text"),ao=createTspan(so,1,to);updateTextContentAndStyles(ao,[{content:no,type:"normal"}]);const lo=(io=ao.node())==null?void 0:io.getBoundingClientRect();return lo&&so.remove(),lo}function createFormattedText(eo,to,no,io=!1){const ao=to.append("g"),lo=ao.insert("rect").attr("class","background"),uo=ao.append("text").attr("y","-10.1");let ho=0;for(const go of no){const mo=So=>computeWidthOfText(ao,1.1,So)<=eo,yo=mo(go)?[go]:splitLineToFitWidth(go,mo);for(const So of yo){const _o=createTspan(uo,ho,1.1);updateTextContentAndStyles(_o,So),ho++}}if(io){const go=uo.node().getBBox(),mo=2;return lo.attr("x",-mo).attr("y",-mo).attr("width",go.width+2*mo).attr("height",go.height+2*mo),ao.node()}else return uo.node()}function updateTextContentAndStyles(eo,to){eo.text(""),to.forEach((no,io)=>{const so=eo.append("tspan").attr("font-style",no.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",no.type==="strong"?"bold":"normal");io===0?so.text(no.content):so.text(" "+no.content)})}const createText=(eo,to="",{style:no="",isTitle:io=!1,classes:so="",useHtmlLabels:ao=!0,isNode:lo=!0,width:uo=200,addSvgBackground:ho=!1}={})=>{if(log$1.info("createText",to,no,io,so,ao,lo,ho),ao){const go=markdownToHTML(to),mo={isNode:lo,label:decodeEntities(go).replace(/fa[blrs]?:fa-[\w-]+/g,So=>``),labelStyle:no.replace("fill:","color:")};return addHtmlSpan(eo,mo,uo,so,ho)}else{const go=markdownToLines(to);return createFormattedText(uo,eo,go,ho)}},insertMarkers$3=(eo,to,no,io)=>{to.forEach(so=>{markers$1[so](eo,no,io)})},extension$1=(eo,to,no)=>{log$1.trace("Making markers for ",no),eo.append("defs").append("marker").attr("id",no+"_"+to+"-extensionStart").attr("class","marker extension "+to).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),eo.append("defs").append("marker").attr("id",no+"_"+to+"-extensionEnd").attr("class","marker extension "+to).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition=(eo,to,no)=>{eo.append("defs").append("marker").attr("id",no+"_"+to+"-compositionStart").attr("class","marker composition "+to).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id",no+"_"+to+"-compositionEnd").attr("class","marker composition "+to).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation=(eo,to,no)=>{eo.append("defs").append("marker").attr("id",no+"_"+to+"-aggregationStart").attr("class","marker aggregation "+to).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id",no+"_"+to+"-aggregationEnd").attr("class","marker aggregation "+to).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency=(eo,to,no)=>{eo.append("defs").append("marker").attr("id",no+"_"+to+"-dependencyStart").attr("class","marker dependency "+to).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id",no+"_"+to+"-dependencyEnd").attr("class","marker dependency "+to).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop=(eo,to,no)=>{eo.append("defs").append("marker").attr("id",no+"_"+to+"-lollipopStart").attr("class","marker lollipop "+to).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),eo.append("defs").append("marker").attr("id",no+"_"+to+"-lollipopEnd").attr("class","marker lollipop "+to).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},point=(eo,to,no)=>{eo.append("marker").attr("id",no+"_"+to+"-pointEnd").attr("class","marker "+to).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),eo.append("marker").attr("id",no+"_"+to+"-pointStart").attr("class","marker "+to).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle$1=(eo,to,no)=>{eo.append("marker").attr("id",no+"_"+to+"-circleEnd").attr("class","marker "+to).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),eo.append("marker").attr("id",no+"_"+to+"-circleStart").attr("class","marker "+to).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross=(eo,to,no)=>{eo.append("marker").attr("id",no+"_"+to+"-crossEnd").attr("class","marker cross "+to).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),eo.append("marker").attr("id",no+"_"+to+"-crossStart").attr("class","marker cross "+to).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb=(eo,to,no)=>{eo.append("defs").append("marker").attr("id",no+"_"+to+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},markers$1={extension:extension$1,composition,aggregation,dependency,lollipop,point,circle:circle$1,cross,barb},insertMarkers$1$1=insertMarkers$3;function applyStyle(eo,to){to&&eo.attr("style",to)}function addHtmlLabel(eo){const to=select(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),no=to.append("xhtml:div"),io=eo.label,so=eo.isNode?"nodeLabel":"edgeLabel";return no.html('"+io+""),applyStyle(no,eo.labelStyle),no.style("display","inline-block"),no.style("white-space","nowrap"),no.attr("xmlns","http://www.w3.org/1999/xhtml"),to.node()}const createLabel=(eo,to,no,io)=>{let so=eo||"";if(typeof so=="object"&&(so=so[0]),evaluate(getConfig$2().flowchart.htmlLabels)){so=so.replace(/\\n|\n/g,"
"),log$1.debug("vertexText"+so);const ao={isNode:io,label:decodeEntities(so).replace(/fa[blrs]?:fa-[\w-]+/g,uo=>``),labelStyle:to.replace("fill:","color:")};return addHtmlLabel(ao)}else{const ao=document.createElementNS("http://www.w3.org/2000/svg","text");ao.setAttribute("style",to.replace("color:","fill:"));let lo=[];typeof so=="string"?lo=so.split(/\\n|\n|/gi):Array.isArray(so)?lo=so:lo=[];for(const uo of lo){const ho=document.createElementNS("http://www.w3.org/2000/svg","tspan");ho.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ho.setAttribute("dy","1em"),ho.setAttribute("x","0"),no?ho.setAttribute("class","title-row"):ho.setAttribute("class","row"),ho.textContent=uo.trim(),ao.appendChild(ho)}return ao}},createLabel$1=createLabel,labelHelper=async(eo,to,no,io)=>{let so;const ao=to.useHtmlLabels||evaluate(getConfig$2().flowchart.htmlLabels);no?so=no:so="node default";const lo=eo.insert("g").attr("class",so).attr("id",to.domId||to.id),uo=lo.insert("g").attr("class","label").attr("style",to.labelStyle);let ho;to.labelText===void 0?ho="":ho=typeof to.labelText=="string"?to.labelText:to.labelText[0];const go=uo.node();let mo;to.labelType==="markdown"?mo=createText(uo,sanitizeText$2$1(decodeEntities(ho),getConfig$2()),{useHtmlLabels:ao,width:to.width||getConfig$2().flowchart.wrappingWidth,classes:"markdown-node-label"}):mo=go.appendChild(createLabel$1(sanitizeText$2$1(decodeEntities(ho),getConfig$2()),to.labelStyle,!1,io));let yo=mo.getBBox();const So=to.padding/2;if(evaluate(getConfig$2().flowchart.htmlLabels)){const _o=mo.children[0],ko=select(mo),Co=_o.getElementsByTagName("img");if(Co){const $o=ho.replace(/]*>/g,"").trim()==="";await Promise.all([...Co].map(Ro=>new Promise(Oo=>{function No(){if(Ro.style.display="flex",Ro.style.flexDirection="column",$o){const Mo=getConfig$2().fontSize?getConfig$2().fontSize:window.getComputedStyle(document.body).fontSize,Bo=5,Po=parseInt(Mo,10)*Bo+"px";Ro.style.minWidth=Po,Ro.style.maxWidth=Po}else Ro.style.width="100%";Oo(Ro)}setTimeout(()=>{Ro.complete&&No()}),Ro.addEventListener("error",No),Ro.addEventListener("load",No)})))}yo=_o.getBoundingClientRect(),ko.attr("width",yo.width),ko.attr("height",yo.height)}return ao?uo.attr("transform","translate("+-yo.width/2+", "+-yo.height/2+")"):uo.attr("transform","translate(0, "+-yo.height/2+")"),to.centerLabel&&uo.attr("transform","translate("+-yo.width/2+", "+-yo.height/2+")"),uo.insert("rect",":first-child"),{shapeSvg:lo,bbox:yo,halfPadding:So,label:uo}},updateNodeBounds=(eo,to)=>{const no=to.node().getBBox();eo.width=no.width,eo.height=no.height};function insertPolygonShape$2(eo,to,no,io){return eo.insert("polygon",":first-child").attr("points",io.map(function(so){return so.x+","+so.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-to/2+","+no/2+")")}function intersectNode(eo,to){return eo.intersect(to)}function intersectEllipse(eo,to,no,io){var so=eo.x,ao=eo.y,lo=so-io.x,uo=ao-io.y,ho=Math.sqrt(to*to*uo*uo+no*no*lo*lo),go=Math.abs(to*no*lo/ho);io.x0}function intersectPolygon(eo,to,no){var io=eo.x,so=eo.y,ao=[],lo=Number.POSITIVE_INFINITY,uo=Number.POSITIVE_INFINITY;typeof to.forEach=="function"?to.forEach(function(ko){lo=Math.min(lo,ko.x),uo=Math.min(uo,ko.y)}):(lo=Math.min(lo,to.x),uo=Math.min(uo,to.y));for(var ho=io-eo.width/2-lo,go=so-eo.height/2-uo,mo=0;mo1&&ao.sort(function(ko,Co){var $o=ko.x-no.x,Ro=ko.y-no.y,Oo=Math.sqrt($o*$o+Ro*Ro),No=Co.x-no.x,Mo=Co.y-no.y,Bo=Math.sqrt(No*No+Mo*Mo);return Oo{var no=eo.x,io=eo.y,so=to.x-no,ao=to.y-io,lo=eo.width/2,uo=eo.height/2,ho,go;return Math.abs(ao)*lo>Math.abs(so)*uo?(ao<0&&(uo=-uo),ho=ao===0?0:uo*so/ao,go=uo):(so<0&&(lo=-lo),ho=lo,go=so===0?0:lo*ao/so),{x:no+ho,y:io+go}},intersectRect$1=intersectRect,intersect={node:intersectNode,circle:intersectCircle,ellipse:intersectEllipse,polygon:intersectPolygon,rect:intersectRect$1},note=async(eo,to)=>{to.useHtmlLabels||getConfig$2().flowchart.htmlLabels||(to.centerLabel=!0);const{shapeSvg:io,bbox:so,halfPadding:ao}=await labelHelper(eo,to,"node "+to.classes,!0);log$1.info("Classes = ",to.classes);const lo=io.insert("rect",":first-child");return lo.attr("rx",to.rx).attr("ry",to.ry).attr("x",-so.width/2-ao).attr("y",-so.height/2-ao).attr("width",so.width+to.padding).attr("height",so.height+to.padding),updateNodeBounds(to,lo),to.intersect=function(uo){return intersect.rect(to,uo)},io},note$1=note,expandAndDeduplicateDirections=eo=>{const to=new Set;for(const no of eo)switch(no){case"x":to.add("right"),to.add("left");break;case"y":to.add("up"),to.add("down");break;default:to.add(no);break}return to},getArrowPoints=(eo,to,no)=>{const io=expandAndDeduplicateDirections(eo),so=2,ao=to.height+2*no.padding,lo=ao/so,uo=to.width+2*lo+no.padding,ho=no.padding/2;return io.has("right")&&io.has("left")&&io.has("up")&&io.has("down")?[{x:0,y:0},{x:lo,y:0},{x:uo/2,y:2*ho},{x:uo-lo,y:0},{x:uo,y:0},{x:uo,y:-ao/3},{x:uo+2*ho,y:-ao/2},{x:uo,y:-2*ao/3},{x:uo,y:-ao},{x:uo-lo,y:-ao},{x:uo/2,y:-ao-2*ho},{x:lo,y:-ao},{x:0,y:-ao},{x:0,y:-2*ao/3},{x:-2*ho,y:-ao/2},{x:0,y:-ao/3}]:io.has("right")&&io.has("left")&&io.has("up")?[{x:lo,y:0},{x:uo-lo,y:0},{x:uo,y:-ao/2},{x:uo-lo,y:-ao},{x:lo,y:-ao},{x:0,y:-ao/2}]:io.has("right")&&io.has("left")&&io.has("down")?[{x:0,y:0},{x:lo,y:-ao},{x:uo-lo,y:-ao},{x:uo,y:0}]:io.has("right")&&io.has("up")&&io.has("down")?[{x:0,y:0},{x:uo,y:-lo},{x:uo,y:-ao+lo},{x:0,y:-ao}]:io.has("left")&&io.has("up")&&io.has("down")?[{x:uo,y:0},{x:0,y:-lo},{x:0,y:-ao+lo},{x:uo,y:-ao}]:io.has("right")&&io.has("left")?[{x:lo,y:0},{x:lo,y:-ho},{x:uo-lo,y:-ho},{x:uo-lo,y:0},{x:uo,y:-ao/2},{x:uo-lo,y:-ao},{x:uo-lo,y:-ao+ho},{x:lo,y:-ao+ho},{x:lo,y:-ao},{x:0,y:-ao/2}]:io.has("up")&&io.has("down")?[{x:uo/2,y:0},{x:0,y:-ho},{x:lo,y:-ho},{x:lo,y:-ao+ho},{x:0,y:-ao+ho},{x:uo/2,y:-ao},{x:uo,y:-ao+ho},{x:uo-lo,y:-ao+ho},{x:uo-lo,y:-ho},{x:uo,y:-ho}]:io.has("right")&&io.has("up")?[{x:0,y:0},{x:uo,y:-lo},{x:0,y:-ao}]:io.has("right")&&io.has("down")?[{x:0,y:0},{x:uo,y:0},{x:0,y:-ao}]:io.has("left")&&io.has("up")?[{x:uo,y:0},{x:0,y:-lo},{x:uo,y:-ao}]:io.has("left")&&io.has("down")?[{x:uo,y:0},{x:0,y:0},{x:uo,y:-ao}]:io.has("right")?[{x:lo,y:-ho},{x:lo,y:-ho},{x:uo-lo,y:-ho},{x:uo-lo,y:0},{x:uo,y:-ao/2},{x:uo-lo,y:-ao},{x:uo-lo,y:-ao+ho},{x:lo,y:-ao+ho},{x:lo,y:-ao+ho}]:io.has("left")?[{x:lo,y:0},{x:lo,y:-ho},{x:uo-lo,y:-ho},{x:uo-lo,y:-ao+ho},{x:lo,y:-ao+ho},{x:lo,y:-ao},{x:0,y:-ao/2}]:io.has("up")?[{x:lo,y:-ho},{x:lo,y:-ao+ho},{x:0,y:-ao+ho},{x:uo/2,y:-ao},{x:uo,y:-ao+ho},{x:uo-lo,y:-ao+ho},{x:uo-lo,y:-ho}]:io.has("down")?[{x:uo/2,y:0},{x:0,y:-ho},{x:lo,y:-ho},{x:lo,y:-ao+ho},{x:uo-lo,y:-ao+ho},{x:uo-lo,y:-ho},{x:uo,y:-ho}]:[{x:0,y:0}]},formatClass=eo=>eo?" "+eo:"",getClassesFromNode=(eo,to)=>`${to||"node default"}${formatClass(eo.classes)} ${formatClass(eo.class)}`,question$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=so+ao,uo=[{x:lo/2,y:0},{x:lo,y:-lo/2},{x:lo/2,y:-lo},{x:0,y:-lo/2}];log$1.info("Question main (Circle)");const ho=insertPolygonShape$2(no,lo,lo,uo);return ho.attr("style",to.style),updateNodeBounds(to,ho),to.intersect=function(go){return log$1.warn("Intersect called"),intersect.polygon(to,uo,go)},no},choice=(eo,to)=>{const no=eo.insert("g").attr("class","node default").attr("id",to.domId||to.id),io=28,so=[{x:0,y:io/2},{x:io/2,y:0},{x:0,y:-io/2},{x:-io/2,y:0}];return no.insert("polygon",":first-child").attr("points",so.map(function(lo){return lo.x+","+lo.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),to.width=28,to.height=28,to.intersect=function(lo){return intersect.circle(to,14,lo)},no},hexagon$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=4,ao=io.height+to.padding,lo=ao/so,uo=io.width+2*lo+to.padding,ho=[{x:lo,y:0},{x:uo-lo,y:0},{x:uo,y:-ao/2},{x:uo-lo,y:-ao},{x:lo,y:-ao},{x:0,y:-ao/2}],go=insertPolygonShape$2(no,uo,ao,ho);return go.attr("style",to.style),updateNodeBounds(to,go),to.intersect=function(mo){return intersect.polygon(to,ho,mo)},no},block_arrow=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,void 0,!0),so=2,ao=io.height+2*to.padding,lo=ao/so,uo=io.width+2*lo+to.padding,ho=getArrowPoints(to.directions,io,to),go=insertPolygonShape$2(no,uo,ao,ho);return go.attr("style",to.style),updateNodeBounds(to,go),to.intersect=function(mo){return intersect.polygon(to,ho,mo)},no},rect_left_inv_arrow$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:-ao/2,y:0},{x:so,y:0},{x:so,y:-ao},{x:-ao/2,y:-ao},{x:0,y:-ao/2}];return insertPolygonShape$2(no,so,ao,lo).attr("style",to.style),to.width=so+ao,to.height=ao,to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},lean_right$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:-2*ao/6,y:0},{x:so-ao/6,y:0},{x:so+2*ao/6,y:-ao},{x:ao/6,y:-ao}],uo=insertPolygonShape$2(no,so,ao,lo);return uo.attr("style",to.style),updateNodeBounds(to,uo),to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},lean_left$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:2*ao/6,y:0},{x:so+ao/6,y:0},{x:so-2*ao/6,y:-ao},{x:-ao/6,y:-ao}],uo=insertPolygonShape$2(no,so,ao,lo);return uo.attr("style",to.style),updateNodeBounds(to,uo),to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},trapezoid$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:-2*ao/6,y:0},{x:so+2*ao/6,y:0},{x:so-ao/6,y:-ao},{x:ao/6,y:-ao}],uo=insertPolygonShape$2(no,so,ao,lo);return uo.attr("style",to.style),updateNodeBounds(to,uo),to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},inv_trapezoid$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:ao/6,y:0},{x:so-ao/6,y:0},{x:so+2*ao/6,y:-ao},{x:-2*ao/6,y:-ao}],uo=insertPolygonShape$2(no,so,ao,lo);return uo.attr("style",to.style),updateNodeBounds(to,uo),to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},rect_right_inv_arrow$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:0,y:0},{x:so+ao/2,y:0},{x:so,y:-ao/2},{x:so+ao/2,y:-ao},{x:0,y:-ao}],uo=insertPolygonShape$2(no,so,ao,lo);return uo.attr("style",to.style),updateNodeBounds(to,uo),to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},cylinder$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=so/2,lo=ao/(2.5+so/50),uo=io.height+lo+to.padding,ho="M 0,"+lo+" a "+ao+","+lo+" 0,0,0 "+so+" 0 a "+ao+","+lo+" 0,0,0 "+-so+" 0 l 0,"+uo+" a "+ao+","+lo+" 0,0,0 "+so+" 0 l 0,"+-uo,go=no.attr("label-offset-y",lo).insert("path",":first-child").attr("style",to.style).attr("d",ho).attr("transform","translate("+-so/2+","+-(uo/2+lo)+")");return updateNodeBounds(to,go),to.intersect=function(mo){const yo=intersect.rect(to,mo),So=yo.x-to.x;if(ao!=0&&(Math.abs(So)to.height/2-lo)){let _o=lo*lo*(1-So*So/(ao*ao));_o!=0&&(_o=Math.sqrt(_o)),_o=lo-_o,mo.y-to.y>0&&(_o=-_o),yo.y+=_o}return yo},no},rect$1=async(eo,to)=>{const{shapeSvg:no,bbox:io,halfPadding:so}=await labelHelper(eo,to,"node "+to.classes+" "+to.class,!0),ao=no.insert("rect",":first-child"),lo=to.positioned?to.width:io.width+to.padding,uo=to.positioned?to.height:io.height+to.padding,ho=to.positioned?-lo/2:-io.width/2-so,go=to.positioned?-uo/2:-io.height/2-so;if(ao.attr("class","basic label-container").attr("style",to.style).attr("rx",to.rx).attr("ry",to.ry).attr("x",ho).attr("y",go).attr("width",lo).attr("height",uo),to.props){const mo=new Set(Object.keys(to.props));to.props.borders&&(applyNodePropertyBorders(ao,to.props.borders,lo,uo),mo.delete("borders")),mo.forEach(yo=>{log$1.warn(`Unknown node property ${yo}`)})}return updateNodeBounds(to,ao),to.intersect=function(mo){return intersect.rect(to,mo)},no},composite=async(eo,to)=>{const{shapeSvg:no,bbox:io,halfPadding:so}=await labelHelper(eo,to,"node "+to.classes,!0),ao=no.insert("rect",":first-child"),lo=to.positioned?to.width:io.width+to.padding,uo=to.positioned?to.height:io.height+to.padding,ho=to.positioned?-lo/2:-io.width/2-so,go=to.positioned?-uo/2:-io.height/2-so;if(ao.attr("class","basic cluster composite label-container").attr("style",to.style).attr("rx",to.rx).attr("ry",to.ry).attr("x",ho).attr("y",go).attr("width",lo).attr("height",uo),to.props){const mo=new Set(Object.keys(to.props));to.props.borders&&(applyNodePropertyBorders(ao,to.props.borders,lo,uo),mo.delete("borders")),mo.forEach(yo=>{log$1.warn(`Unknown node property ${yo}`)})}return updateNodeBounds(to,ao),to.intersect=function(mo){return intersect.rect(to,mo)},no},labelRect=async(eo,to)=>{const{shapeSvg:no}=await labelHelper(eo,to,"label",!0);log$1.trace("Classes = ",to.class);const io=no.insert("rect",":first-child"),so=0,ao=0;if(io.attr("width",so).attr("height",ao),no.attr("class","label edgeLabel"),to.props){const lo=new Set(Object.keys(to.props));to.props.borders&&(applyNodePropertyBorders(io,to.props.borders,so,ao),lo.delete("borders")),lo.forEach(uo=>{log$1.warn(`Unknown node property ${uo}`)})}return updateNodeBounds(to,io),to.intersect=function(lo){return intersect.rect(to,lo)},no};function applyNodePropertyBorders(eo,to,no,io){const so=[],ao=uo=>{so.push(uo,0)},lo=uo=>{so.push(0,uo)};to.includes("t")?(log$1.debug("add top border"),ao(no)):lo(no),to.includes("r")?(log$1.debug("add right border"),ao(io)):lo(io),to.includes("b")?(log$1.debug("add bottom border"),ao(no)):lo(no),to.includes("l")?(log$1.debug("add left border"),ao(io)):lo(io),eo.attr("stroke-dasharray",so.join(" "))}const rectWithTitle=(eo,to)=>{let no;to.classes?no="node "+to.classes:no="node default";const io=eo.insert("g").attr("class",no).attr("id",to.domId||to.id),so=io.insert("rect",":first-child"),ao=io.insert("line"),lo=io.insert("g").attr("class","label"),uo=to.labelText.flat?to.labelText.flat():to.labelText;let ho="";typeof uo=="object"?ho=uo[0]:ho=uo,log$1.info("Label text abc79",ho,uo,typeof uo=="object");const go=lo.node().appendChild(createLabel$1(ho,to.labelStyle,!0,!0));let mo={width:0,height:0};if(evaluate(getConfig$2().flowchart.htmlLabels)){const Co=go.children[0],$o=select(go);mo=Co.getBoundingClientRect(),$o.attr("width",mo.width),$o.attr("height",mo.height)}log$1.info("Text 2",uo);const yo=uo.slice(1,uo.length);let So=go.getBBox();const _o=lo.node().appendChild(createLabel$1(yo.join?yo.join("
"):yo,to.labelStyle,!0,!0));if(evaluate(getConfig$2().flowchart.htmlLabels)){const Co=_o.children[0],$o=select(_o);mo=Co.getBoundingClientRect(),$o.attr("width",mo.width),$o.attr("height",mo.height)}const ko=to.padding/2;return select(_o).attr("transform","translate( "+(mo.width>So.width?0:(So.width-mo.width)/2)+", "+(So.height+ko+5)+")"),select(go).attr("transform","translate( "+(mo.width{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.height+to.padding,ao=io.width+so/4+to.padding,lo=no.insert("rect",":first-child").attr("style",to.style).attr("rx",so/2).attr("ry",so/2).attr("x",-ao/2).attr("y",-so/2).attr("width",ao).attr("height",so);return updateNodeBounds(to,lo),to.intersect=function(uo){return intersect.rect(to,uo)},no},circle$2=async(eo,to)=>{const{shapeSvg:no,bbox:io,halfPadding:so}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),ao=no.insert("circle",":first-child");return ao.attr("style",to.style).attr("rx",to.rx).attr("ry",to.ry).attr("r",io.width/2+so).attr("width",io.width+to.padding).attr("height",io.height+to.padding),log$1.info("Circle main"),updateNodeBounds(to,ao),to.intersect=function(lo){return log$1.info("Circle intersect",to,io.width/2+so,lo),intersect.circle(to,io.width/2+so,lo)},no},doublecircle=async(eo,to)=>{const{shapeSvg:no,bbox:io,halfPadding:so}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),ao=5,lo=no.insert("g",":first-child"),uo=lo.insert("circle"),ho=lo.insert("circle");return lo.attr("class",to.class),uo.attr("style",to.style).attr("rx",to.rx).attr("ry",to.ry).attr("r",io.width/2+so+ao).attr("width",io.width+to.padding+ao*2).attr("height",io.height+to.padding+ao*2),ho.attr("style",to.style).attr("rx",to.rx).attr("ry",to.ry).attr("r",io.width/2+so).attr("width",io.width+to.padding).attr("height",io.height+to.padding),log$1.info("DoubleCircle main"),updateNodeBounds(to,uo),to.intersect=function(go){return log$1.info("DoubleCircle intersect",to,io.width/2+so+ao,go),intersect.circle(to,io.width/2+so+ao,go)},no},subroutine$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:0,y:0},{x:so,y:0},{x:so,y:-ao},{x:0,y:-ao},{x:0,y:0},{x:-8,y:0},{x:so+8,y:0},{x:so+8,y:-ao},{x:-8,y:-ao},{x:-8,y:0}],uo=insertPolygonShape$2(no,so,ao,lo);return uo.attr("style",to.style),updateNodeBounds(to,uo),to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},start=(eo,to)=>{const no=eo.insert("g").attr("class","node default").attr("id",to.domId||to.id),io=no.insert("circle",":first-child");return io.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),updateNodeBounds(to,io),to.intersect=function(so){return intersect.circle(to,7,so)},no},forkJoin=(eo,to,no)=>{const io=eo.insert("g").attr("class","node default").attr("id",to.domId||to.id);let so=70,ao=10;no==="LR"&&(so=10,ao=70);const lo=io.append("rect").attr("x",-1*so/2).attr("y",-1*ao/2).attr("width",so).attr("height",ao).attr("class","fork-join");return updateNodeBounds(to,lo),to.height=to.height+to.padding/2,to.width=to.width+to.padding/2,to.intersect=function(uo){return intersect.rect(to,uo)},io},end=(eo,to)=>{const no=eo.insert("g").attr("class","node default").attr("id",to.domId||to.id),io=no.insert("circle",":first-child"),so=no.insert("circle",":first-child");return so.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),io.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),updateNodeBounds(to,so),to.intersect=function(ao){return intersect.circle(to,7,ao)},no},class_box=(eo,to)=>{const no=to.padding/2,io=4,so=8;let ao;to.classes?ao="node "+to.classes:ao="node default";const lo=eo.insert("g").attr("class",ao).attr("id",to.domId||to.id),uo=lo.insert("rect",":first-child"),ho=lo.insert("line"),go=lo.insert("line");let mo=0,yo=io;const So=lo.insert("g").attr("class","label");let _o=0;const ko=to.classData.annotations&&to.classData.annotations[0],Co=to.classData.annotations[0]?"«"+to.classData.annotations[0]+"»":"",$o=So.node().appendChild(createLabel$1(Co,to.labelStyle,!0,!0));let Ro=$o.getBBox();if(evaluate(getConfig$2().flowchart.htmlLabels)){const Go=$o.children[0],Do=select($o);Ro=Go.getBoundingClientRect(),Do.attr("width",Ro.width),Do.attr("height",Ro.height)}to.classData.annotations[0]&&(yo+=Ro.height+io,mo+=Ro.width);let Oo=to.classData.label;to.classData.type!==void 0&&to.classData.type!==""&&(getConfig$2().flowchart.htmlLabels?Oo+="<"+to.classData.type+">":Oo+="<"+to.classData.type+">");const No=So.node().appendChild(createLabel$1(Oo,to.labelStyle,!0,!0));select(No).attr("class","classTitle");let Mo=No.getBBox();if(evaluate(getConfig$2().flowchart.htmlLabels)){const Go=No.children[0],Do=select(No);Mo=Go.getBoundingClientRect(),Do.attr("width",Mo.width),Do.attr("height",Mo.height)}yo+=Mo.height+io,Mo.width>mo&&(mo=Mo.width);const Bo=[];to.classData.members.forEach(Go=>{const Do=Go.getDisplayDetails();let Uo=Do.displayText;getConfig$2().flowchart.htmlLabels&&(Uo=Uo.replace(//g,">"));const Ho=So.node().appendChild(createLabel$1(Uo,Do.cssStyle?Do.cssStyle:to.labelStyle,!0,!0));let Yo=Ho.getBBox();if(evaluate(getConfig$2().flowchart.htmlLabels)){const qo=Ho.children[0],Jo=select(Ho);Yo=qo.getBoundingClientRect(),Jo.attr("width",Yo.width),Jo.attr("height",Yo.height)}Yo.width>mo&&(mo=Yo.width),yo+=Yo.height+io,Bo.push(Ho)}),yo+=so;const Po=[];if(to.classData.methods.forEach(Go=>{const Do=Go.getDisplayDetails();let Uo=Do.displayText;getConfig$2().flowchart.htmlLabels&&(Uo=Uo.replace(//g,">"));const Ho=So.node().appendChild(createLabel$1(Uo,Do.cssStyle?Do.cssStyle:to.labelStyle,!0,!0));let Yo=Ho.getBBox();if(evaluate(getConfig$2().flowchart.htmlLabels)){const qo=Ho.children[0],Jo=select(Ho);Yo=qo.getBoundingClientRect(),Jo.attr("width",Yo.width),Jo.attr("height",Yo.height)}Yo.width>mo&&(mo=Yo.width),yo+=Yo.height+io,Po.push(Ho)}),yo+=so,ko){let Go=(mo-Ro.width)/2;select($o).attr("transform","translate( "+(-1*mo/2+Go)+", "+-1*yo/2+")"),_o=Ro.height+io}let Lo=(mo-Mo.width)/2;return select(No).attr("transform","translate( "+(-1*mo/2+Lo)+", "+(-1*yo/2+_o)+")"),_o+=Mo.height+io,ho.attr("class","divider").attr("x1",-mo/2-no).attr("x2",mo/2+no).attr("y1",-yo/2-no+so+_o).attr("y2",-yo/2-no+so+_o),_o+=so,Bo.forEach(Go=>{select(Go).attr("transform","translate( "+-mo/2+", "+(-1*yo/2+_o+so/2)+")");const Do=Go==null?void 0:Go.getBBox();_o+=((Do==null?void 0:Do.height)??0)+io}),_o+=so,go.attr("class","divider").attr("x1",-mo/2-no).attr("x2",mo/2+no).attr("y1",-yo/2-no+so+_o).attr("y2",-yo/2-no+so+_o),_o+=so,Po.forEach(Go=>{select(Go).attr("transform","translate( "+-mo/2+", "+(-1*yo/2+_o)+")");const Do=Go==null?void 0:Go.getBBox();_o+=((Do==null?void 0:Do.height)??0)+io}),uo.attr("style",to.style).attr("class","outer title-state").attr("x",-mo/2-no).attr("y",-(yo/2)-no).attr("width",mo+to.padding).attr("height",yo+to.padding),updateNodeBounds(to,uo),to.intersect=function(Go){return intersect.rect(to,Go)},lo},shapes$1={rhombus:question$1,composite,question:question$1,rect:rect$1,labelRect,rectWithTitle,choice,circle:circle$2,doublecircle,stadium:stadium$1,hexagon:hexagon$1,block_arrow,rect_left_inv_arrow:rect_left_inv_arrow$1,lean_right:lean_right$1,lean_left:lean_left$1,trapezoid:trapezoid$1,inv_trapezoid:inv_trapezoid$1,rect_right_inv_arrow:rect_right_inv_arrow$1,cylinder:cylinder$1,start,end,note:note$1,subroutine:subroutine$1,fork:forkJoin,join:forkJoin,class_box};let nodeElems={};const insertNode=async(eo,to,no)=>{let io,so;if(to.link){let ao;getConfig$2().securityLevel==="sandbox"?ao="_top":to.linkTarget&&(ao=to.linkTarget||"_blank"),io=eo.insert("svg:a").attr("xlink:href",to.link).attr("target",ao),so=await shapes$1[to.shape](io,to,no)}else so=await shapes$1[to.shape](eo,to,no),io=so;return to.tooltip&&so.attr("title",to.tooltip),to.class&&so.attr("class","node default "+to.class),io.attr("data-node","true"),io.attr("data-id",to.id),nodeElems[to.id]=io,to.haveCallback&&nodeElems[to.id].attr("class",nodeElems[to.id].attr("class")+" clickable"),io},setNodeElem=(eo,to)=>{nodeElems[to.id]=eo},clear$1$3=()=>{nodeElems={}},positionNode$1=eo=>{const to=nodeElems[eo.id];log$1.trace("Transforming node",eo.diff,eo,"translate("+(eo.x-eo.width/2-5)+", "+eo.width/2+")");const no=8,io=eo.diff||0;return eo.clusterNode?to.attr("transform","translate("+(eo.x+io-eo.width/2)+", "+(eo.y-eo.height/2-no)+")"):to.attr("transform","translate("+eo.x+", "+eo.y+")"),io},getSubGraphTitleMargins=({flowchart:eo})=>{var to,no;const io=((to=eo==null?void 0:eo.subGraphTitleMargin)==null?void 0:to.top)??0,so=((no=eo==null?void 0:eo.subGraphTitleMargin)==null?void 0:no.bottom)??0,ao=io+so;return{subGraphTitleTopMargin:io,subGraphTitleBottomMargin:so,subGraphTitleTotalMargin:ao}},markerOffsets={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function calculateDeltaAndAngle(eo,to){if(eo===void 0||to===void 0)return{angle:0,deltaX:0,deltaY:0};eo=pointTransformer(eo),to=pointTransformer(to);const[no,io]=[eo.x,eo.y],[so,ao]=[to.x,to.y],lo=so-no,uo=ao-io;return{angle:Math.atan(uo/lo),deltaX:lo,deltaY:uo}}const pointTransformer=eo=>Array.isArray(eo)?{x:eo[0],y:eo[1]}:eo,getLineFunctionsWithOffset=eo=>({x:function(to,no,io){let so=0;if(no===0&&Object.hasOwn(markerOffsets,eo.arrowTypeStart)){const{angle:ao,deltaX:lo}=calculateDeltaAndAngle(io[0],io[1]);so=markerOffsets[eo.arrowTypeStart]*Math.cos(ao)*(lo>=0?1:-1)}else if(no===io.length-1&&Object.hasOwn(markerOffsets,eo.arrowTypeEnd)){const{angle:ao,deltaX:lo}=calculateDeltaAndAngle(io[io.length-1],io[io.length-2]);so=markerOffsets[eo.arrowTypeEnd]*Math.cos(ao)*(lo>=0?1:-1)}return pointTransformer(to).x+so},y:function(to,no,io){let so=0;if(no===0&&Object.hasOwn(markerOffsets,eo.arrowTypeStart)){const{angle:ao,deltaY:lo}=calculateDeltaAndAngle(io[0],io[1]);so=markerOffsets[eo.arrowTypeStart]*Math.abs(Math.sin(ao))*(lo>=0?1:-1)}else if(no===io.length-1&&Object.hasOwn(markerOffsets,eo.arrowTypeEnd)){const{angle:ao,deltaY:lo}=calculateDeltaAndAngle(io[io.length-1],io[io.length-2]);so=markerOffsets[eo.arrowTypeEnd]*Math.abs(Math.sin(ao))*(lo>=0?1:-1)}return pointTransformer(to).y+so}}),addEdgeMarkers=(eo,to,no,io,so)=>{to.arrowTypeStart&&addEdgeMarker(eo,"start",to.arrowTypeStart,no,io,so),to.arrowTypeEnd&&addEdgeMarker(eo,"end",to.arrowTypeEnd,no,io,so)},arrowTypesMap={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},addEdgeMarker=(eo,to,no,io,so,ao)=>{const lo=arrowTypesMap[no];if(!lo){log$1.warn(`Unknown arrow type: ${no}`);return}const uo=to==="start"?"Start":"End";eo.attr(`marker-${to}`,`url(${io}#${so}_${ao}-${lo}${uo})`)};let edgeLabels={},terminalLabels={};const clear$h=()=>{edgeLabels={},terminalLabels={}},insertEdgeLabel=(eo,to)=>{const no=evaluate(getConfig$2().flowchart.htmlLabels),io=to.labelType==="markdown"?createText(eo,to.label,{style:to.labelStyle,useHtmlLabels:no,addSvgBackground:!0}):createLabel$1(to.label,to.labelStyle),so=eo.insert("g").attr("class","edgeLabel"),ao=so.insert("g").attr("class","label");ao.node().appendChild(io);let lo=io.getBBox();if(no){const ho=io.children[0],go=select(io);lo=ho.getBoundingClientRect(),go.attr("width",lo.width),go.attr("height",lo.height)}ao.attr("transform","translate("+-lo.width/2+", "+-lo.height/2+")"),edgeLabels[to.id]=so,to.width=lo.width,to.height=lo.height;let uo;if(to.startLabelLeft){const ho=createLabel$1(to.startLabelLeft,to.labelStyle),go=eo.insert("g").attr("class","edgeTerminals"),mo=go.insert("g").attr("class","inner");uo=mo.node().appendChild(ho);const yo=ho.getBBox();mo.attr("transform","translate("+-yo.width/2+", "+-yo.height/2+")"),terminalLabels[to.id]||(terminalLabels[to.id]={}),terminalLabels[to.id].startLeft=go,setTerminalWidth(uo,to.startLabelLeft)}if(to.startLabelRight){const ho=createLabel$1(to.startLabelRight,to.labelStyle),go=eo.insert("g").attr("class","edgeTerminals"),mo=go.insert("g").attr("class","inner");uo=go.node().appendChild(ho),mo.node().appendChild(ho);const yo=ho.getBBox();mo.attr("transform","translate("+-yo.width/2+", "+-yo.height/2+")"),terminalLabels[to.id]||(terminalLabels[to.id]={}),terminalLabels[to.id].startRight=go,setTerminalWidth(uo,to.startLabelRight)}if(to.endLabelLeft){const ho=createLabel$1(to.endLabelLeft,to.labelStyle),go=eo.insert("g").attr("class","edgeTerminals"),mo=go.insert("g").attr("class","inner");uo=mo.node().appendChild(ho);const yo=ho.getBBox();mo.attr("transform","translate("+-yo.width/2+", "+-yo.height/2+")"),go.node().appendChild(ho),terminalLabels[to.id]||(terminalLabels[to.id]={}),terminalLabels[to.id].endLeft=go,setTerminalWidth(uo,to.endLabelLeft)}if(to.endLabelRight){const ho=createLabel$1(to.endLabelRight,to.labelStyle),go=eo.insert("g").attr("class","edgeTerminals"),mo=go.insert("g").attr("class","inner");uo=mo.node().appendChild(ho);const yo=ho.getBBox();mo.attr("transform","translate("+-yo.width/2+", "+-yo.height/2+")"),go.node().appendChild(ho),terminalLabels[to.id]||(terminalLabels[to.id]={}),terminalLabels[to.id].endRight=go,setTerminalWidth(uo,to.endLabelRight)}return io};function setTerminalWidth(eo,to){getConfig$2().flowchart.htmlLabels&&eo&&(eo.style.width=to.length*9+"px",eo.style.height="12px")}const positionEdgeLabel=(eo,to)=>{log$1.debug("Moving label abc88 ",eo.id,eo.label,edgeLabels[eo.id],to);let no=to.updatedPath?to.updatedPath:to.originalPath;const io=getConfig$2(),{subGraphTitleTotalMargin:so}=getSubGraphTitleMargins(io);if(eo.label){const ao=edgeLabels[eo.id];let lo=eo.x,uo=eo.y;if(no){const ho=utils$1.calcLabelPosition(no);log$1.debug("Moving label "+eo.label+" from (",lo,",",uo,") to (",ho.x,",",ho.y,") abc88"),to.updatedPath&&(lo=ho.x,uo=ho.y)}ao.attr("transform",`translate(${lo}, ${uo+so/2})`)}if(eo.startLabelLeft){const ao=terminalLabels[eo.id].startLeft;let lo=eo.x,uo=eo.y;if(no){const ho=utils$1.calcTerminalLabelPosition(eo.arrowTypeStart?10:0,"start_left",no);lo=ho.x,uo=ho.y}ao.attr("transform",`translate(${lo}, ${uo})`)}if(eo.startLabelRight){const ao=terminalLabels[eo.id].startRight;let lo=eo.x,uo=eo.y;if(no){const ho=utils$1.calcTerminalLabelPosition(eo.arrowTypeStart?10:0,"start_right",no);lo=ho.x,uo=ho.y}ao.attr("transform",`translate(${lo}, ${uo})`)}if(eo.endLabelLeft){const ao=terminalLabels[eo.id].endLeft;let lo=eo.x,uo=eo.y;if(no){const ho=utils$1.calcTerminalLabelPosition(eo.arrowTypeEnd?10:0,"end_left",no);lo=ho.x,uo=ho.y}ao.attr("transform",`translate(${lo}, ${uo})`)}if(eo.endLabelRight){const ao=terminalLabels[eo.id].endRight;let lo=eo.x,uo=eo.y;if(no){const ho=utils$1.calcTerminalLabelPosition(eo.arrowTypeEnd?10:0,"end_right",no);lo=ho.x,uo=ho.y}ao.attr("transform",`translate(${lo}, ${uo})`)}},outsideNode=(eo,to)=>{const no=eo.x,io=eo.y,so=Math.abs(to.x-no),ao=Math.abs(to.y-io),lo=eo.width/2,uo=eo.height/2;return so>=lo||ao>=uo},intersection=(eo,to,no)=>{log$1.debug(`intersection calc abc89: + "+uo+""),applyStyle$1(lo,to.labelStyle),lo.style("display","table-cell"),lo.style("white-space","nowrap"),lo.style("max-width",no+"px"),lo.attr("xmlns","http://www.w3.org/1999/xhtml"),so&&lo.attr("class","labelBkg");let go=lo.node().getBoundingClientRect();return go.width===no&&(lo.style("display","table"),lo.style("white-space","break-spaces"),lo.style("width",no+"px"),go=lo.node().getBoundingClientRect()),ao.style("width",go.width),ao.style("height",go.height),ao.node()}function createTspan(eo,to,no){return eo.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",to*no-.1+"em").attr("dy",no+"em")}function computeWidthOfText(eo,to,no){const io=eo.append("text"),so=createTspan(io,1,to);updateTextContentAndStyles(so,no);const ao=so.node().getComputedTextLength();return io.remove(),ao}function computeDimensionOfText(eo,to,no){var io;const so=eo.append("text"),ao=createTspan(so,1,to);updateTextContentAndStyles(ao,[{content:no,type:"normal"}]);const lo=(io=ao.node())==null?void 0:io.getBoundingClientRect();return lo&&so.remove(),lo}function createFormattedText(eo,to,no,io=!1){const ao=to.append("g"),lo=ao.insert("rect").attr("class","background"),uo=ao.append("text").attr("y","-10.1");let ho=0;for(const go of no){const mo=So=>computeWidthOfText(ao,1.1,So)<=eo,yo=mo(go)?[go]:splitLineToFitWidth(go,mo);for(const So of yo){const _o=createTspan(uo,ho,1.1);updateTextContentAndStyles(_o,So),ho++}}if(io){const go=uo.node().getBBox(),mo=2;return lo.attr("x",-mo).attr("y",-mo).attr("width",go.width+2*mo).attr("height",go.height+2*mo),ao.node()}else return uo.node()}function updateTextContentAndStyles(eo,to){eo.text(""),to.forEach((no,io)=>{const so=eo.append("tspan").attr("font-style",no.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",no.type==="strong"?"bold":"normal");io===0?so.text(no.content):so.text(" "+no.content)})}const createText=(eo,to="",{style:no="",isTitle:io=!1,classes:so="",useHtmlLabels:ao=!0,isNode:lo=!0,width:uo=200,addSvgBackground:ho=!1}={})=>{if(log$1.info("createText",to,no,io,so,ao,lo,ho),ao){const go=markdownToHTML(to),mo={isNode:lo,label:decodeEntities(go).replace(/fa[blrs]?:fa-[\w-]+/g,So=>``),labelStyle:no.replace("fill:","color:")};return addHtmlSpan(eo,mo,uo,so,ho)}else{const go=markdownToLines(to);return createFormattedText(uo,eo,go,ho)}},insertMarkers$3=(eo,to,no,io)=>{to.forEach(so=>{markers$1[so](eo,no,io)})},extension$1=(eo,to,no)=>{log$1.trace("Making markers for ",no),eo.append("defs").append("marker").attr("id",no+"_"+to+"-extensionStart").attr("class","marker extension "+to).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),eo.append("defs").append("marker").attr("id",no+"_"+to+"-extensionEnd").attr("class","marker extension "+to).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition=(eo,to,no)=>{eo.append("defs").append("marker").attr("id",no+"_"+to+"-compositionStart").attr("class","marker composition "+to).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id",no+"_"+to+"-compositionEnd").attr("class","marker composition "+to).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation=(eo,to,no)=>{eo.append("defs").append("marker").attr("id",no+"_"+to+"-aggregationStart").attr("class","marker aggregation "+to).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id",no+"_"+to+"-aggregationEnd").attr("class","marker aggregation "+to).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency=(eo,to,no)=>{eo.append("defs").append("marker").attr("id",no+"_"+to+"-dependencyStart").attr("class","marker dependency "+to).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id",no+"_"+to+"-dependencyEnd").attr("class","marker dependency "+to).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop=(eo,to,no)=>{eo.append("defs").append("marker").attr("id",no+"_"+to+"-lollipopStart").attr("class","marker lollipop "+to).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),eo.append("defs").append("marker").attr("id",no+"_"+to+"-lollipopEnd").attr("class","marker lollipop "+to).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},point=(eo,to,no)=>{eo.append("marker").attr("id",no+"_"+to+"-pointEnd").attr("class","marker "+to).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),eo.append("marker").attr("id",no+"_"+to+"-pointStart").attr("class","marker "+to).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle$1=(eo,to,no)=>{eo.append("marker").attr("id",no+"_"+to+"-circleEnd").attr("class","marker "+to).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),eo.append("marker").attr("id",no+"_"+to+"-circleStart").attr("class","marker "+to).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross=(eo,to,no)=>{eo.append("marker").attr("id",no+"_"+to+"-crossEnd").attr("class","marker cross "+to).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),eo.append("marker").attr("id",no+"_"+to+"-crossStart").attr("class","marker cross "+to).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb=(eo,to,no)=>{eo.append("defs").append("marker").attr("id",no+"_"+to+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},markers$1={extension:extension$1,composition,aggregation,dependency,lollipop,point,circle:circle$1,cross,barb},insertMarkers$1$1=insertMarkers$3;function applyStyle(eo,to){to&&eo.attr("style",to)}function addHtmlLabel(eo){const to=select(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),no=to.append("xhtml:div"),io=eo.label,so=eo.isNode?"nodeLabel":"edgeLabel";return no.html('"+io+""),applyStyle(no,eo.labelStyle),no.style("display","inline-block"),no.style("white-space","nowrap"),no.attr("xmlns","http://www.w3.org/1999/xhtml"),to.node()}const createLabel=(eo,to,no,io)=>{let so=eo||"";if(typeof so=="object"&&(so=so[0]),evaluate(getConfig$2().flowchart.htmlLabels)){so=so.replace(/\\n|\n/g,"
"),log$1.debug("vertexText"+so);const ao={isNode:io,label:decodeEntities(so).replace(/fa[blrs]?:fa-[\w-]+/g,uo=>``),labelStyle:to.replace("fill:","color:")};return addHtmlLabel(ao)}else{const ao=document.createElementNS("http://www.w3.org/2000/svg","text");ao.setAttribute("style",to.replace("color:","fill:"));let lo=[];typeof so=="string"?lo=so.split(/\\n|\n|/gi):Array.isArray(so)?lo=so:lo=[];for(const uo of lo){const ho=document.createElementNS("http://www.w3.org/2000/svg","tspan");ho.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ho.setAttribute("dy","1em"),ho.setAttribute("x","0"),no?ho.setAttribute("class","title-row"):ho.setAttribute("class","row"),ho.textContent=uo.trim(),ao.appendChild(ho)}return ao}},createLabel$1=createLabel,labelHelper=async(eo,to,no,io)=>{let so;const ao=to.useHtmlLabels||evaluate(getConfig$2().flowchart.htmlLabels);no?so=no:so="node default";const lo=eo.insert("g").attr("class",so).attr("id",to.domId||to.id),uo=lo.insert("g").attr("class","label").attr("style",to.labelStyle);let ho;to.labelText===void 0?ho="":ho=typeof to.labelText=="string"?to.labelText:to.labelText[0];const go=uo.node();let mo;to.labelType==="markdown"?mo=createText(uo,sanitizeText$2$1(decodeEntities(ho),getConfig$2()),{useHtmlLabels:ao,width:to.width||getConfig$2().flowchart.wrappingWidth,classes:"markdown-node-label"}):mo=go.appendChild(createLabel$1(sanitizeText$2$1(decodeEntities(ho),getConfig$2()),to.labelStyle,!1,io));let yo=mo.getBBox();const So=to.padding/2;if(evaluate(getConfig$2().flowchart.htmlLabels)){const _o=mo.children[0],ko=select(mo),Co=_o.getElementsByTagName("img");if(Co){const $o=ho.replace(/]*>/g,"").trim()==="";await Promise.all([...Co].map(Ro=>new Promise(Oo=>{function No(){if(Ro.style.display="flex",Ro.style.flexDirection="column",$o){const Mo=getConfig$2().fontSize?getConfig$2().fontSize:window.getComputedStyle(document.body).fontSize,Bo=5,Fo=parseInt(Mo,10)*Bo+"px";Ro.style.minWidth=Fo,Ro.style.maxWidth=Fo}else Ro.style.width="100%";Oo(Ro)}setTimeout(()=>{Ro.complete&&No()}),Ro.addEventListener("error",No),Ro.addEventListener("load",No)})))}yo=_o.getBoundingClientRect(),ko.attr("width",yo.width),ko.attr("height",yo.height)}return ao?uo.attr("transform","translate("+-yo.width/2+", "+-yo.height/2+")"):uo.attr("transform","translate(0, "+-yo.height/2+")"),to.centerLabel&&uo.attr("transform","translate("+-yo.width/2+", "+-yo.height/2+")"),uo.insert("rect",":first-child"),{shapeSvg:lo,bbox:yo,halfPadding:So,label:uo}},updateNodeBounds=(eo,to)=>{const no=to.node().getBBox();eo.width=no.width,eo.height=no.height};function insertPolygonShape$2(eo,to,no,io){return eo.insert("polygon",":first-child").attr("points",io.map(function(so){return so.x+","+so.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-to/2+","+no/2+")")}function intersectNode(eo,to){return eo.intersect(to)}function intersectEllipse(eo,to,no,io){var so=eo.x,ao=eo.y,lo=so-io.x,uo=ao-io.y,ho=Math.sqrt(to*to*uo*uo+no*no*lo*lo),go=Math.abs(to*no*lo/ho);io.x0}function intersectPolygon(eo,to,no){var io=eo.x,so=eo.y,ao=[],lo=Number.POSITIVE_INFINITY,uo=Number.POSITIVE_INFINITY;typeof to.forEach=="function"?to.forEach(function(ko){lo=Math.min(lo,ko.x),uo=Math.min(uo,ko.y)}):(lo=Math.min(lo,to.x),uo=Math.min(uo,to.y));for(var ho=io-eo.width/2-lo,go=so-eo.height/2-uo,mo=0;mo1&&ao.sort(function(ko,Co){var $o=ko.x-no.x,Ro=ko.y-no.y,Oo=Math.sqrt($o*$o+Ro*Ro),No=Co.x-no.x,Mo=Co.y-no.y,Bo=Math.sqrt(No*No+Mo*Mo);return Oo{var no=eo.x,io=eo.y,so=to.x-no,ao=to.y-io,lo=eo.width/2,uo=eo.height/2,ho,go;return Math.abs(ao)*lo>Math.abs(so)*uo?(ao<0&&(uo=-uo),ho=ao===0?0:uo*so/ao,go=uo):(so<0&&(lo=-lo),ho=lo,go=so===0?0:lo*ao/so),{x:no+ho,y:io+go}},intersectRect$1=intersectRect,intersect={node:intersectNode,circle:intersectCircle,ellipse:intersectEllipse,polygon:intersectPolygon,rect:intersectRect$1},note=async(eo,to)=>{to.useHtmlLabels||getConfig$2().flowchart.htmlLabels||(to.centerLabel=!0);const{shapeSvg:io,bbox:so,halfPadding:ao}=await labelHelper(eo,to,"node "+to.classes,!0);log$1.info("Classes = ",to.classes);const lo=io.insert("rect",":first-child");return lo.attr("rx",to.rx).attr("ry",to.ry).attr("x",-so.width/2-ao).attr("y",-so.height/2-ao).attr("width",so.width+to.padding).attr("height",so.height+to.padding),updateNodeBounds(to,lo),to.intersect=function(uo){return intersect.rect(to,uo)},io},note$1=note,expandAndDeduplicateDirections=eo=>{const to=new Set;for(const no of eo)switch(no){case"x":to.add("right"),to.add("left");break;case"y":to.add("up"),to.add("down");break;default:to.add(no);break}return to},getArrowPoints=(eo,to,no)=>{const io=expandAndDeduplicateDirections(eo),so=2,ao=to.height+2*no.padding,lo=ao/so,uo=to.width+2*lo+no.padding,ho=no.padding/2;return io.has("right")&&io.has("left")&&io.has("up")&&io.has("down")?[{x:0,y:0},{x:lo,y:0},{x:uo/2,y:2*ho},{x:uo-lo,y:0},{x:uo,y:0},{x:uo,y:-ao/3},{x:uo+2*ho,y:-ao/2},{x:uo,y:-2*ao/3},{x:uo,y:-ao},{x:uo-lo,y:-ao},{x:uo/2,y:-ao-2*ho},{x:lo,y:-ao},{x:0,y:-ao},{x:0,y:-2*ao/3},{x:-2*ho,y:-ao/2},{x:0,y:-ao/3}]:io.has("right")&&io.has("left")&&io.has("up")?[{x:lo,y:0},{x:uo-lo,y:0},{x:uo,y:-ao/2},{x:uo-lo,y:-ao},{x:lo,y:-ao},{x:0,y:-ao/2}]:io.has("right")&&io.has("left")&&io.has("down")?[{x:0,y:0},{x:lo,y:-ao},{x:uo-lo,y:-ao},{x:uo,y:0}]:io.has("right")&&io.has("up")&&io.has("down")?[{x:0,y:0},{x:uo,y:-lo},{x:uo,y:-ao+lo},{x:0,y:-ao}]:io.has("left")&&io.has("up")&&io.has("down")?[{x:uo,y:0},{x:0,y:-lo},{x:0,y:-ao+lo},{x:uo,y:-ao}]:io.has("right")&&io.has("left")?[{x:lo,y:0},{x:lo,y:-ho},{x:uo-lo,y:-ho},{x:uo-lo,y:0},{x:uo,y:-ao/2},{x:uo-lo,y:-ao},{x:uo-lo,y:-ao+ho},{x:lo,y:-ao+ho},{x:lo,y:-ao},{x:0,y:-ao/2}]:io.has("up")&&io.has("down")?[{x:uo/2,y:0},{x:0,y:-ho},{x:lo,y:-ho},{x:lo,y:-ao+ho},{x:0,y:-ao+ho},{x:uo/2,y:-ao},{x:uo,y:-ao+ho},{x:uo-lo,y:-ao+ho},{x:uo-lo,y:-ho},{x:uo,y:-ho}]:io.has("right")&&io.has("up")?[{x:0,y:0},{x:uo,y:-lo},{x:0,y:-ao}]:io.has("right")&&io.has("down")?[{x:0,y:0},{x:uo,y:0},{x:0,y:-ao}]:io.has("left")&&io.has("up")?[{x:uo,y:0},{x:0,y:-lo},{x:uo,y:-ao}]:io.has("left")&&io.has("down")?[{x:uo,y:0},{x:0,y:0},{x:uo,y:-ao}]:io.has("right")?[{x:lo,y:-ho},{x:lo,y:-ho},{x:uo-lo,y:-ho},{x:uo-lo,y:0},{x:uo,y:-ao/2},{x:uo-lo,y:-ao},{x:uo-lo,y:-ao+ho},{x:lo,y:-ao+ho},{x:lo,y:-ao+ho}]:io.has("left")?[{x:lo,y:0},{x:lo,y:-ho},{x:uo-lo,y:-ho},{x:uo-lo,y:-ao+ho},{x:lo,y:-ao+ho},{x:lo,y:-ao},{x:0,y:-ao/2}]:io.has("up")?[{x:lo,y:-ho},{x:lo,y:-ao+ho},{x:0,y:-ao+ho},{x:uo/2,y:-ao},{x:uo,y:-ao+ho},{x:uo-lo,y:-ao+ho},{x:uo-lo,y:-ho}]:io.has("down")?[{x:uo/2,y:0},{x:0,y:-ho},{x:lo,y:-ho},{x:lo,y:-ao+ho},{x:uo-lo,y:-ao+ho},{x:uo-lo,y:-ho},{x:uo,y:-ho}]:[{x:0,y:0}]},formatClass=eo=>eo?" "+eo:"",getClassesFromNode=(eo,to)=>`${to||"node default"}${formatClass(eo.classes)} ${formatClass(eo.class)}`,question$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=so+ao,uo=[{x:lo/2,y:0},{x:lo,y:-lo/2},{x:lo/2,y:-lo},{x:0,y:-lo/2}];log$1.info("Question main (Circle)");const ho=insertPolygonShape$2(no,lo,lo,uo);return ho.attr("style",to.style),updateNodeBounds(to,ho),to.intersect=function(go){return log$1.warn("Intersect called"),intersect.polygon(to,uo,go)},no},choice=(eo,to)=>{const no=eo.insert("g").attr("class","node default").attr("id",to.domId||to.id),io=28,so=[{x:0,y:io/2},{x:io/2,y:0},{x:0,y:-io/2},{x:-io/2,y:0}];return no.insert("polygon",":first-child").attr("points",so.map(function(lo){return lo.x+","+lo.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),to.width=28,to.height=28,to.intersect=function(lo){return intersect.circle(to,14,lo)},no},hexagon$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=4,ao=io.height+to.padding,lo=ao/so,uo=io.width+2*lo+to.padding,ho=[{x:lo,y:0},{x:uo-lo,y:0},{x:uo,y:-ao/2},{x:uo-lo,y:-ao},{x:lo,y:-ao},{x:0,y:-ao/2}],go=insertPolygonShape$2(no,uo,ao,ho);return go.attr("style",to.style),updateNodeBounds(to,go),to.intersect=function(mo){return intersect.polygon(to,ho,mo)},no},block_arrow=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,void 0,!0),so=2,ao=io.height+2*to.padding,lo=ao/so,uo=io.width+2*lo+to.padding,ho=getArrowPoints(to.directions,io,to),go=insertPolygonShape$2(no,uo,ao,ho);return go.attr("style",to.style),updateNodeBounds(to,go),to.intersect=function(mo){return intersect.polygon(to,ho,mo)},no},rect_left_inv_arrow$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:-ao/2,y:0},{x:so,y:0},{x:so,y:-ao},{x:-ao/2,y:-ao},{x:0,y:-ao/2}];return insertPolygonShape$2(no,so,ao,lo).attr("style",to.style),to.width=so+ao,to.height=ao,to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},lean_right$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:-2*ao/6,y:0},{x:so-ao/6,y:0},{x:so+2*ao/6,y:-ao},{x:ao/6,y:-ao}],uo=insertPolygonShape$2(no,so,ao,lo);return uo.attr("style",to.style),updateNodeBounds(to,uo),to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},lean_left$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:2*ao/6,y:0},{x:so+ao/6,y:0},{x:so-2*ao/6,y:-ao},{x:-ao/6,y:-ao}],uo=insertPolygonShape$2(no,so,ao,lo);return uo.attr("style",to.style),updateNodeBounds(to,uo),to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},trapezoid$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:-2*ao/6,y:0},{x:so+2*ao/6,y:0},{x:so-ao/6,y:-ao},{x:ao/6,y:-ao}],uo=insertPolygonShape$2(no,so,ao,lo);return uo.attr("style",to.style),updateNodeBounds(to,uo),to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},inv_trapezoid$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:ao/6,y:0},{x:so-ao/6,y:0},{x:so+2*ao/6,y:-ao},{x:-2*ao/6,y:-ao}],uo=insertPolygonShape$2(no,so,ao,lo);return uo.attr("style",to.style),updateNodeBounds(to,uo),to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},rect_right_inv_arrow$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:0,y:0},{x:so+ao/2,y:0},{x:so,y:-ao/2},{x:so+ao/2,y:-ao},{x:0,y:-ao}],uo=insertPolygonShape$2(no,so,ao,lo);return uo.attr("style",to.style),updateNodeBounds(to,uo),to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},cylinder$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=so/2,lo=ao/(2.5+so/50),uo=io.height+lo+to.padding,ho="M 0,"+lo+" a "+ao+","+lo+" 0,0,0 "+so+" 0 a "+ao+","+lo+" 0,0,0 "+-so+" 0 l 0,"+uo+" a "+ao+","+lo+" 0,0,0 "+so+" 0 l 0,"+-uo,go=no.attr("label-offset-y",lo).insert("path",":first-child").attr("style",to.style).attr("d",ho).attr("transform","translate("+-so/2+","+-(uo/2+lo)+")");return updateNodeBounds(to,go),to.intersect=function(mo){const yo=intersect.rect(to,mo),So=yo.x-to.x;if(ao!=0&&(Math.abs(So)to.height/2-lo)){let _o=lo*lo*(1-So*So/(ao*ao));_o!=0&&(_o=Math.sqrt(_o)),_o=lo-_o,mo.y-to.y>0&&(_o=-_o),yo.y+=_o}return yo},no},rect$1=async(eo,to)=>{const{shapeSvg:no,bbox:io,halfPadding:so}=await labelHelper(eo,to,"node "+to.classes+" "+to.class,!0),ao=no.insert("rect",":first-child"),lo=to.positioned?to.width:io.width+to.padding,uo=to.positioned?to.height:io.height+to.padding,ho=to.positioned?-lo/2:-io.width/2-so,go=to.positioned?-uo/2:-io.height/2-so;if(ao.attr("class","basic label-container").attr("style",to.style).attr("rx",to.rx).attr("ry",to.ry).attr("x",ho).attr("y",go).attr("width",lo).attr("height",uo),to.props){const mo=new Set(Object.keys(to.props));to.props.borders&&(applyNodePropertyBorders(ao,to.props.borders,lo,uo),mo.delete("borders")),mo.forEach(yo=>{log$1.warn(`Unknown node property ${yo}`)})}return updateNodeBounds(to,ao),to.intersect=function(mo){return intersect.rect(to,mo)},no},composite=async(eo,to)=>{const{shapeSvg:no,bbox:io,halfPadding:so}=await labelHelper(eo,to,"node "+to.classes,!0),ao=no.insert("rect",":first-child"),lo=to.positioned?to.width:io.width+to.padding,uo=to.positioned?to.height:io.height+to.padding,ho=to.positioned?-lo/2:-io.width/2-so,go=to.positioned?-uo/2:-io.height/2-so;if(ao.attr("class","basic cluster composite label-container").attr("style",to.style).attr("rx",to.rx).attr("ry",to.ry).attr("x",ho).attr("y",go).attr("width",lo).attr("height",uo),to.props){const mo=new Set(Object.keys(to.props));to.props.borders&&(applyNodePropertyBorders(ao,to.props.borders,lo,uo),mo.delete("borders")),mo.forEach(yo=>{log$1.warn(`Unknown node property ${yo}`)})}return updateNodeBounds(to,ao),to.intersect=function(mo){return intersect.rect(to,mo)},no},labelRect=async(eo,to)=>{const{shapeSvg:no}=await labelHelper(eo,to,"label",!0);log$1.trace("Classes = ",to.class);const io=no.insert("rect",":first-child"),so=0,ao=0;if(io.attr("width",so).attr("height",ao),no.attr("class","label edgeLabel"),to.props){const lo=new Set(Object.keys(to.props));to.props.borders&&(applyNodePropertyBorders(io,to.props.borders,so,ao),lo.delete("borders")),lo.forEach(uo=>{log$1.warn(`Unknown node property ${uo}`)})}return updateNodeBounds(to,io),to.intersect=function(lo){return intersect.rect(to,lo)},no};function applyNodePropertyBorders(eo,to,no,io){const so=[],ao=uo=>{so.push(uo,0)},lo=uo=>{so.push(0,uo)};to.includes("t")?(log$1.debug("add top border"),ao(no)):lo(no),to.includes("r")?(log$1.debug("add right border"),ao(io)):lo(io),to.includes("b")?(log$1.debug("add bottom border"),ao(no)):lo(no),to.includes("l")?(log$1.debug("add left border"),ao(io)):lo(io),eo.attr("stroke-dasharray",so.join(" "))}const rectWithTitle=(eo,to)=>{let no;to.classes?no="node "+to.classes:no="node default";const io=eo.insert("g").attr("class",no).attr("id",to.domId||to.id),so=io.insert("rect",":first-child"),ao=io.insert("line"),lo=io.insert("g").attr("class","label"),uo=to.labelText.flat?to.labelText.flat():to.labelText;let ho="";typeof uo=="object"?ho=uo[0]:ho=uo,log$1.info("Label text abc79",ho,uo,typeof uo=="object");const go=lo.node().appendChild(createLabel$1(ho,to.labelStyle,!0,!0));let mo={width:0,height:0};if(evaluate(getConfig$2().flowchart.htmlLabels)){const Co=go.children[0],$o=select(go);mo=Co.getBoundingClientRect(),$o.attr("width",mo.width),$o.attr("height",mo.height)}log$1.info("Text 2",uo);const yo=uo.slice(1,uo.length);let So=go.getBBox();const _o=lo.node().appendChild(createLabel$1(yo.join?yo.join("
"):yo,to.labelStyle,!0,!0));if(evaluate(getConfig$2().flowchart.htmlLabels)){const Co=_o.children[0],$o=select(_o);mo=Co.getBoundingClientRect(),$o.attr("width",mo.width),$o.attr("height",mo.height)}const ko=to.padding/2;return select(_o).attr("transform","translate( "+(mo.width>So.width?0:(So.width-mo.width)/2)+", "+(So.height+ko+5)+")"),select(go).attr("transform","translate( "+(mo.width{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.height+to.padding,ao=io.width+so/4+to.padding,lo=no.insert("rect",":first-child").attr("style",to.style).attr("rx",so/2).attr("ry",so/2).attr("x",-ao/2).attr("y",-so/2).attr("width",ao).attr("height",so);return updateNodeBounds(to,lo),to.intersect=function(uo){return intersect.rect(to,uo)},no},circle$2=async(eo,to)=>{const{shapeSvg:no,bbox:io,halfPadding:so}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),ao=no.insert("circle",":first-child");return ao.attr("style",to.style).attr("rx",to.rx).attr("ry",to.ry).attr("r",io.width/2+so).attr("width",io.width+to.padding).attr("height",io.height+to.padding),log$1.info("Circle main"),updateNodeBounds(to,ao),to.intersect=function(lo){return log$1.info("Circle intersect",to,io.width/2+so,lo),intersect.circle(to,io.width/2+so,lo)},no},doublecircle=async(eo,to)=>{const{shapeSvg:no,bbox:io,halfPadding:so}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),ao=5,lo=no.insert("g",":first-child"),uo=lo.insert("circle"),ho=lo.insert("circle");return lo.attr("class",to.class),uo.attr("style",to.style).attr("rx",to.rx).attr("ry",to.ry).attr("r",io.width/2+so+ao).attr("width",io.width+to.padding+ao*2).attr("height",io.height+to.padding+ao*2),ho.attr("style",to.style).attr("rx",to.rx).attr("ry",to.ry).attr("r",io.width/2+so).attr("width",io.width+to.padding).attr("height",io.height+to.padding),log$1.info("DoubleCircle main"),updateNodeBounds(to,uo),to.intersect=function(go){return log$1.info("DoubleCircle intersect",to,io.width/2+so+ao,go),intersect.circle(to,io.width/2+so+ao,go)},no},subroutine$1=async(eo,to)=>{const{shapeSvg:no,bbox:io}=await labelHelper(eo,to,getClassesFromNode(to,void 0),!0),so=io.width+to.padding,ao=io.height+to.padding,lo=[{x:0,y:0},{x:so,y:0},{x:so,y:-ao},{x:0,y:-ao},{x:0,y:0},{x:-8,y:0},{x:so+8,y:0},{x:so+8,y:-ao},{x:-8,y:-ao},{x:-8,y:0}],uo=insertPolygonShape$2(no,so,ao,lo);return uo.attr("style",to.style),updateNodeBounds(to,uo),to.intersect=function(ho){return intersect.polygon(to,lo,ho)},no},start=(eo,to)=>{const no=eo.insert("g").attr("class","node default").attr("id",to.domId||to.id),io=no.insert("circle",":first-child");return io.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),updateNodeBounds(to,io),to.intersect=function(so){return intersect.circle(to,7,so)},no},forkJoin=(eo,to,no)=>{const io=eo.insert("g").attr("class","node default").attr("id",to.domId||to.id);let so=70,ao=10;no==="LR"&&(so=10,ao=70);const lo=io.append("rect").attr("x",-1*so/2).attr("y",-1*ao/2).attr("width",so).attr("height",ao).attr("class","fork-join");return updateNodeBounds(to,lo),to.height=to.height+to.padding/2,to.width=to.width+to.padding/2,to.intersect=function(uo){return intersect.rect(to,uo)},io},end=(eo,to)=>{const no=eo.insert("g").attr("class","node default").attr("id",to.domId||to.id),io=no.insert("circle",":first-child"),so=no.insert("circle",":first-child");return so.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),io.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),updateNodeBounds(to,so),to.intersect=function(ao){return intersect.circle(to,7,ao)},no},class_box=(eo,to)=>{const no=to.padding/2,io=4,so=8;let ao;to.classes?ao="node "+to.classes:ao="node default";const lo=eo.insert("g").attr("class",ao).attr("id",to.domId||to.id),uo=lo.insert("rect",":first-child"),ho=lo.insert("line"),go=lo.insert("line");let mo=0,yo=io;const So=lo.insert("g").attr("class","label");let _o=0;const ko=to.classData.annotations&&to.classData.annotations[0],Co=to.classData.annotations[0]?"«"+to.classData.annotations[0]+"»":"",$o=So.node().appendChild(createLabel$1(Co,to.labelStyle,!0,!0));let Ro=$o.getBBox();if(evaluate(getConfig$2().flowchart.htmlLabels)){const Go=$o.children[0],Do=select($o);Ro=Go.getBoundingClientRect(),Do.attr("width",Ro.width),Do.attr("height",Ro.height)}to.classData.annotations[0]&&(yo+=Ro.height+io,mo+=Ro.width);let Oo=to.classData.label;to.classData.type!==void 0&&to.classData.type!==""&&(getConfig$2().flowchart.htmlLabels?Oo+="<"+to.classData.type+">":Oo+="<"+to.classData.type+">");const No=So.node().appendChild(createLabel$1(Oo,to.labelStyle,!0,!0));select(No).attr("class","classTitle");let Mo=No.getBBox();if(evaluate(getConfig$2().flowchart.htmlLabels)){const Go=No.children[0],Do=select(No);Mo=Go.getBoundingClientRect(),Do.attr("width",Mo.width),Do.attr("height",Mo.height)}yo+=Mo.height+io,Mo.width>mo&&(mo=Mo.width);const Bo=[];to.classData.members.forEach(Go=>{const Do=Go.getDisplayDetails();let Uo=Do.displayText;getConfig$2().flowchart.htmlLabels&&(Uo=Uo.replace(//g,">"));const Ho=So.node().appendChild(createLabel$1(Uo,Do.cssStyle?Do.cssStyle:to.labelStyle,!0,!0));let Yo=Ho.getBBox();if(evaluate(getConfig$2().flowchart.htmlLabels)){const qo=Ho.children[0],Jo=select(Ho);Yo=qo.getBoundingClientRect(),Jo.attr("width",Yo.width),Jo.attr("height",Yo.height)}Yo.width>mo&&(mo=Yo.width),yo+=Yo.height+io,Bo.push(Ho)}),yo+=so;const Fo=[];if(to.classData.methods.forEach(Go=>{const Do=Go.getDisplayDetails();let Uo=Do.displayText;getConfig$2().flowchart.htmlLabels&&(Uo=Uo.replace(//g,">"));const Ho=So.node().appendChild(createLabel$1(Uo,Do.cssStyle?Do.cssStyle:to.labelStyle,!0,!0));let Yo=Ho.getBBox();if(evaluate(getConfig$2().flowchart.htmlLabels)){const qo=Ho.children[0],Jo=select(Ho);Yo=qo.getBoundingClientRect(),Jo.attr("width",Yo.width),Jo.attr("height",Yo.height)}Yo.width>mo&&(mo=Yo.width),yo+=Yo.height+io,Fo.push(Ho)}),yo+=so,ko){let Go=(mo-Ro.width)/2;select($o).attr("transform","translate( "+(-1*mo/2+Go)+", "+-1*yo/2+")"),_o=Ro.height+io}let Lo=(mo-Mo.width)/2;return select(No).attr("transform","translate( "+(-1*mo/2+Lo)+", "+(-1*yo/2+_o)+")"),_o+=Mo.height+io,ho.attr("class","divider").attr("x1",-mo/2-no).attr("x2",mo/2+no).attr("y1",-yo/2-no+so+_o).attr("y2",-yo/2-no+so+_o),_o+=so,Bo.forEach(Go=>{select(Go).attr("transform","translate( "+-mo/2+", "+(-1*yo/2+_o+so/2)+")");const Do=Go==null?void 0:Go.getBBox();_o+=((Do==null?void 0:Do.height)??0)+io}),_o+=so,go.attr("class","divider").attr("x1",-mo/2-no).attr("x2",mo/2+no).attr("y1",-yo/2-no+so+_o).attr("y2",-yo/2-no+so+_o),_o+=so,Fo.forEach(Go=>{select(Go).attr("transform","translate( "+-mo/2+", "+(-1*yo/2+_o)+")");const Do=Go==null?void 0:Go.getBBox();_o+=((Do==null?void 0:Do.height)??0)+io}),uo.attr("style",to.style).attr("class","outer title-state").attr("x",-mo/2-no).attr("y",-(yo/2)-no).attr("width",mo+to.padding).attr("height",yo+to.padding),updateNodeBounds(to,uo),to.intersect=function(Go){return intersect.rect(to,Go)},lo},shapes$1={rhombus:question$1,composite,question:question$1,rect:rect$1,labelRect,rectWithTitle,choice,circle:circle$2,doublecircle,stadium:stadium$1,hexagon:hexagon$1,block_arrow,rect_left_inv_arrow:rect_left_inv_arrow$1,lean_right:lean_right$1,lean_left:lean_left$1,trapezoid:trapezoid$1,inv_trapezoid:inv_trapezoid$1,rect_right_inv_arrow:rect_right_inv_arrow$1,cylinder:cylinder$1,start,end,note:note$1,subroutine:subroutine$1,fork:forkJoin,join:forkJoin,class_box};let nodeElems={};const insertNode=async(eo,to,no)=>{let io,so;if(to.link){let ao;getConfig$2().securityLevel==="sandbox"?ao="_top":to.linkTarget&&(ao=to.linkTarget||"_blank"),io=eo.insert("svg:a").attr("xlink:href",to.link).attr("target",ao),so=await shapes$1[to.shape](io,to,no)}else so=await shapes$1[to.shape](eo,to,no),io=so;return to.tooltip&&so.attr("title",to.tooltip),to.class&&so.attr("class","node default "+to.class),io.attr("data-node","true"),io.attr("data-id",to.id),nodeElems[to.id]=io,to.haveCallback&&nodeElems[to.id].attr("class",nodeElems[to.id].attr("class")+" clickable"),io},setNodeElem=(eo,to)=>{nodeElems[to.id]=eo},clear$1$3=()=>{nodeElems={}},positionNode$1=eo=>{const to=nodeElems[eo.id];log$1.trace("Transforming node",eo.diff,eo,"translate("+(eo.x-eo.width/2-5)+", "+eo.width/2+")");const no=8,io=eo.diff||0;return eo.clusterNode?to.attr("transform","translate("+(eo.x+io-eo.width/2)+", "+(eo.y-eo.height/2-no)+")"):to.attr("transform","translate("+eo.x+", "+eo.y+")"),io},getSubGraphTitleMargins=({flowchart:eo})=>{var to,no;const io=((to=eo==null?void 0:eo.subGraphTitleMargin)==null?void 0:to.top)??0,so=((no=eo==null?void 0:eo.subGraphTitleMargin)==null?void 0:no.bottom)??0,ao=io+so;return{subGraphTitleTopMargin:io,subGraphTitleBottomMargin:so,subGraphTitleTotalMargin:ao}},markerOffsets={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function calculateDeltaAndAngle(eo,to){if(eo===void 0||to===void 0)return{angle:0,deltaX:0,deltaY:0};eo=pointTransformer(eo),to=pointTransformer(to);const[no,io]=[eo.x,eo.y],[so,ao]=[to.x,to.y],lo=so-no,uo=ao-io;return{angle:Math.atan(uo/lo),deltaX:lo,deltaY:uo}}const pointTransformer=eo=>Array.isArray(eo)?{x:eo[0],y:eo[1]}:eo,getLineFunctionsWithOffset=eo=>({x:function(to,no,io){let so=0;if(no===0&&Object.hasOwn(markerOffsets,eo.arrowTypeStart)){const{angle:ao,deltaX:lo}=calculateDeltaAndAngle(io[0],io[1]);so=markerOffsets[eo.arrowTypeStart]*Math.cos(ao)*(lo>=0?1:-1)}else if(no===io.length-1&&Object.hasOwn(markerOffsets,eo.arrowTypeEnd)){const{angle:ao,deltaX:lo}=calculateDeltaAndAngle(io[io.length-1],io[io.length-2]);so=markerOffsets[eo.arrowTypeEnd]*Math.cos(ao)*(lo>=0?1:-1)}return pointTransformer(to).x+so},y:function(to,no,io){let so=0;if(no===0&&Object.hasOwn(markerOffsets,eo.arrowTypeStart)){const{angle:ao,deltaY:lo}=calculateDeltaAndAngle(io[0],io[1]);so=markerOffsets[eo.arrowTypeStart]*Math.abs(Math.sin(ao))*(lo>=0?1:-1)}else if(no===io.length-1&&Object.hasOwn(markerOffsets,eo.arrowTypeEnd)){const{angle:ao,deltaY:lo}=calculateDeltaAndAngle(io[io.length-1],io[io.length-2]);so=markerOffsets[eo.arrowTypeEnd]*Math.abs(Math.sin(ao))*(lo>=0?1:-1)}return pointTransformer(to).y+so}}),addEdgeMarkers=(eo,to,no,io,so)=>{to.arrowTypeStart&&addEdgeMarker(eo,"start",to.arrowTypeStart,no,io,so),to.arrowTypeEnd&&addEdgeMarker(eo,"end",to.arrowTypeEnd,no,io,so)},arrowTypesMap={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},addEdgeMarker=(eo,to,no,io,so,ao)=>{const lo=arrowTypesMap[no];if(!lo){log$1.warn(`Unknown arrow type: ${no}`);return}const uo=to==="start"?"Start":"End";eo.attr(`marker-${to}`,`url(${io}#${so}_${ao}-${lo}${uo})`)};let edgeLabels={},terminalLabels={};const clear$h=()=>{edgeLabels={},terminalLabels={}},insertEdgeLabel=(eo,to)=>{const no=evaluate(getConfig$2().flowchart.htmlLabels),io=to.labelType==="markdown"?createText(eo,to.label,{style:to.labelStyle,useHtmlLabels:no,addSvgBackground:!0}):createLabel$1(to.label,to.labelStyle),so=eo.insert("g").attr("class","edgeLabel"),ao=so.insert("g").attr("class","label");ao.node().appendChild(io);let lo=io.getBBox();if(no){const ho=io.children[0],go=select(io);lo=ho.getBoundingClientRect(),go.attr("width",lo.width),go.attr("height",lo.height)}ao.attr("transform","translate("+-lo.width/2+", "+-lo.height/2+")"),edgeLabels[to.id]=so,to.width=lo.width,to.height=lo.height;let uo;if(to.startLabelLeft){const ho=createLabel$1(to.startLabelLeft,to.labelStyle),go=eo.insert("g").attr("class","edgeTerminals"),mo=go.insert("g").attr("class","inner");uo=mo.node().appendChild(ho);const yo=ho.getBBox();mo.attr("transform","translate("+-yo.width/2+", "+-yo.height/2+")"),terminalLabels[to.id]||(terminalLabels[to.id]={}),terminalLabels[to.id].startLeft=go,setTerminalWidth(uo,to.startLabelLeft)}if(to.startLabelRight){const ho=createLabel$1(to.startLabelRight,to.labelStyle),go=eo.insert("g").attr("class","edgeTerminals"),mo=go.insert("g").attr("class","inner");uo=go.node().appendChild(ho),mo.node().appendChild(ho);const yo=ho.getBBox();mo.attr("transform","translate("+-yo.width/2+", "+-yo.height/2+")"),terminalLabels[to.id]||(terminalLabels[to.id]={}),terminalLabels[to.id].startRight=go,setTerminalWidth(uo,to.startLabelRight)}if(to.endLabelLeft){const ho=createLabel$1(to.endLabelLeft,to.labelStyle),go=eo.insert("g").attr("class","edgeTerminals"),mo=go.insert("g").attr("class","inner");uo=mo.node().appendChild(ho);const yo=ho.getBBox();mo.attr("transform","translate("+-yo.width/2+", "+-yo.height/2+")"),go.node().appendChild(ho),terminalLabels[to.id]||(terminalLabels[to.id]={}),terminalLabels[to.id].endLeft=go,setTerminalWidth(uo,to.endLabelLeft)}if(to.endLabelRight){const ho=createLabel$1(to.endLabelRight,to.labelStyle),go=eo.insert("g").attr("class","edgeTerminals"),mo=go.insert("g").attr("class","inner");uo=mo.node().appendChild(ho);const yo=ho.getBBox();mo.attr("transform","translate("+-yo.width/2+", "+-yo.height/2+")"),go.node().appendChild(ho),terminalLabels[to.id]||(terminalLabels[to.id]={}),terminalLabels[to.id].endRight=go,setTerminalWidth(uo,to.endLabelRight)}return io};function setTerminalWidth(eo,to){getConfig$2().flowchart.htmlLabels&&eo&&(eo.style.width=to.length*9+"px",eo.style.height="12px")}const positionEdgeLabel=(eo,to)=>{log$1.debug("Moving label abc88 ",eo.id,eo.label,edgeLabels[eo.id],to);let no=to.updatedPath?to.updatedPath:to.originalPath;const io=getConfig$2(),{subGraphTitleTotalMargin:so}=getSubGraphTitleMargins(io);if(eo.label){const ao=edgeLabels[eo.id];let lo=eo.x,uo=eo.y;if(no){const ho=utils$1.calcLabelPosition(no);log$1.debug("Moving label "+eo.label+" from (",lo,",",uo,") to (",ho.x,",",ho.y,") abc88"),to.updatedPath&&(lo=ho.x,uo=ho.y)}ao.attr("transform",`translate(${lo}, ${uo+so/2})`)}if(eo.startLabelLeft){const ao=terminalLabels[eo.id].startLeft;let lo=eo.x,uo=eo.y;if(no){const ho=utils$1.calcTerminalLabelPosition(eo.arrowTypeStart?10:0,"start_left",no);lo=ho.x,uo=ho.y}ao.attr("transform",`translate(${lo}, ${uo})`)}if(eo.startLabelRight){const ao=terminalLabels[eo.id].startRight;let lo=eo.x,uo=eo.y;if(no){const ho=utils$1.calcTerminalLabelPosition(eo.arrowTypeStart?10:0,"start_right",no);lo=ho.x,uo=ho.y}ao.attr("transform",`translate(${lo}, ${uo})`)}if(eo.endLabelLeft){const ao=terminalLabels[eo.id].endLeft;let lo=eo.x,uo=eo.y;if(no){const ho=utils$1.calcTerminalLabelPosition(eo.arrowTypeEnd?10:0,"end_left",no);lo=ho.x,uo=ho.y}ao.attr("transform",`translate(${lo}, ${uo})`)}if(eo.endLabelRight){const ao=terminalLabels[eo.id].endRight;let lo=eo.x,uo=eo.y;if(no){const ho=utils$1.calcTerminalLabelPosition(eo.arrowTypeEnd?10:0,"end_right",no);lo=ho.x,uo=ho.y}ao.attr("transform",`translate(${lo}, ${uo})`)}},outsideNode=(eo,to)=>{const no=eo.x,io=eo.y,so=Math.abs(to.x-no),ao=Math.abs(to.y-io),lo=eo.width/2,uo=eo.height/2;return so>=lo||ao>=uo},intersection=(eo,to,no)=>{log$1.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(to)} insidePoint : ${JSON.stringify(no)} node : x:${eo.x} y:${eo.y} w:${eo.width} h:${eo.height}`);const io=eo.x,so=eo.y,ao=Math.abs(io-no.x),lo=eo.width/2;let uo=no.xMath.abs(io-to.x)*ho){let yo=no.y{log$1.debug("abc88 cutPathAtIntersect",eo,to);let no=[],io=eo[0],so=!1;return eo.forEach(ao=>{if(!outsideNode(to,ao)&&!so){const lo=intersection(to,io,ao);let uo=!1;no.forEach(ho=>{uo=uo||ho.x===lo.x&&ho.y===lo.y}),no.some(ho=>ho.x===lo.x&&ho.y===lo.y)||no.push(lo),so=!0}else io=ao,so||no.push(ao)}),no},insertEdge$1=function(eo,to,no,io,so,ao,lo){let uo=no.points;log$1.debug("abc88 InsertEdge: edge=",no,"e=",to);let ho=!1;const go=ao.node(to.v);var mo=ao.node(to.w);mo!=null&&mo.intersect&&(go!=null&&go.intersect)&&(uo=uo.slice(1,no.points.length-1),uo.unshift(go.intersect(uo[0])),uo.push(mo.intersect(uo[uo.length-1]))),no.toCluster&&(log$1.debug("to cluster abc88",io[no.toCluster]),uo=cutPathAtIntersect(no.points,io[no.toCluster].node),ho=!0),no.fromCluster&&(log$1.debug("from cluster abc88",io[no.fromCluster]),uo=cutPathAtIntersect(uo.reverse(),io[no.fromCluster].node).reverse(),ho=!0);const yo=uo.filter(Mo=>!Number.isNaN(Mo.y));let So=curveBasis;no.curve&&(so==="graph"||so==="flowchart")&&(So=no.curve);const{x:_o,y:ko}=getLineFunctionsWithOffset(no),Co=line$1().x(_o).y(ko).curve(So);let $o;switch(no.thickness){case"normal":$o="edge-thickness-normal";break;case"thick":$o="edge-thickness-thick";break;case"invisible":$o="edge-thickness-thick";break;default:$o=""}switch(no.pattern){case"solid":$o+=" edge-pattern-solid";break;case"dotted":$o+=" edge-pattern-dotted";break;case"dashed":$o+=" edge-pattern-dashed";break}const Ro=eo.append("path").attr("d",Co(yo)).attr("id",no.id).attr("class"," "+$o+(no.classes?" "+no.classes:"")).attr("style",no.style);let Oo="";(getConfig$2().flowchart.arrowMarkerAbsolute||getConfig$2().state.arrowMarkerAbsolute)&&(Oo=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Oo=Oo.replace(/\(/g,"\\("),Oo=Oo.replace(/\)/g,"\\)")),addEdgeMarkers(Ro,no,Oo,lo,so);let No={};return ho&&(No.updatedPath=uo),No.originalPath=no.points,No};let clusterDb={},descendants={},parents={};const clear$1$2=()=>{descendants={},parents={},clusterDb={}},isDescendant=(eo,to)=>(log$1.trace("In isDescendant",to," ",eo," = ",descendants[to].includes(eo)),!!descendants[to].includes(eo)),edgeInCluster=(eo,to)=>(log$1.info("Descendants of ",to," is ",descendants[to]),log$1.info("Edge is ",eo),eo.v===to||eo.w===to?!1:descendants[to]?descendants[to].includes(eo.v)||isDescendant(eo.v,to)||isDescendant(eo.w,to)||descendants[to].includes(eo.w):(log$1.debug("Tilt, ",to,",not in descendants"),!1)),copy$1=(eo,to,no,io)=>{log$1.warn("Copying children of ",eo,"root",io,"data",to.node(eo),io);const so=to.children(eo)||[];eo!==io&&so.push(eo),log$1.warn("Copying (nodes) clusterId",eo,"nodes",so),so.forEach(ao=>{if(to.children(ao).length>0)copy$1(ao,to,no,io);else{const lo=to.node(ao);log$1.info("cp ",ao," to ",io," with parent ",eo),no.setNode(ao,lo),io!==to.parent(ao)&&(log$1.warn("Setting parent",ao,to.parent(ao)),no.setParent(ao,to.parent(ao))),eo!==io&&ao!==eo?(log$1.debug("Setting parent",ao,eo),no.setParent(ao,eo)):(log$1.info("In copy ",eo,"root",io,"data",to.node(eo),io),log$1.debug("Not Setting parent for node=",ao,"cluster!==rootId",eo!==io,"node!==clusterId",ao!==eo));const uo=to.edges(ao);log$1.debug("Copying Edges",uo),uo.forEach(ho=>{log$1.info("Edge",ho);const go=to.edge(ho.v,ho.w,ho.name);log$1.info("Edge data",go,io);try{edgeInCluster(ho,io)?(log$1.info("Copying as ",ho.v,ho.w,go,ho.name),no.setEdge(ho.v,ho.w,go,ho.name),log$1.info("newGraph edges ",no.edges(),no.edge(no.edges()[0]))):log$1.info("Skipping copy of edge ",ho.v,"-->",ho.w," rootId: ",io," clusterId:",eo)}catch(mo){log$1.error(mo)}})}log$1.debug("Removing node",ao),to.removeNode(ao)})},extractDescendants=(eo,to)=>{const no=to.children(eo);let io=[...no];for(const so of no)parents[so]=eo,io=[...io,...extractDescendants(so,to)];return io},findNonClusterChild=(eo,to)=>{log$1.trace("Searching",eo);const no=to.children(eo);if(log$1.trace("Searching children of id ",eo,no),no.length<1)return log$1.trace("This is a valid node",eo),eo;for(const io of no){const so=findNonClusterChild(io,to);if(so)return log$1.trace("Found replacement for",eo," => ",so),so}},getAnchorId=eo=>!clusterDb[eo]||!clusterDb[eo].externalConnections?eo:clusterDb[eo]?clusterDb[eo].id:eo,adjustClustersAndEdges=(eo,to)=>{if(!eo||to>10){log$1.debug("Opting out, no graph ");return}else log$1.debug("Opting in, graph ");eo.nodes().forEach(function(no){eo.children(no).length>0&&(log$1.warn("Cluster identified",no," Replacement id in edges: ",findNonClusterChild(no,eo)),descendants[no]=extractDescendants(no,eo),clusterDb[no]={id:findNonClusterChild(no,eo),clusterData:eo.node(no)})}),eo.nodes().forEach(function(no){const io=eo.children(no),so=eo.edges();io.length>0?(log$1.debug("Cluster identified",no,descendants),so.forEach(ao=>{if(ao.v!==no&&ao.w!==no){const lo=isDescendant(ao.v,no),uo=isDescendant(ao.w,no);lo^uo&&(log$1.warn("Edge: ",ao," leaves cluster ",no),log$1.warn("Descendants of XXX ",no,": ",descendants[no]),clusterDb[no].externalConnections=!0)}})):log$1.debug("Not a cluster ",no,descendants)});for(let no of Object.keys(clusterDb)){const io=clusterDb[no].id,so=eo.parent(io);so!==no&&clusterDb[so]&&!clusterDb[so].externalConnections&&(clusterDb[no].id=so)}eo.edges().forEach(function(no){const io=eo.edge(no);log$1.warn("Edge "+no.v+" -> "+no.w+": "+JSON.stringify(no)),log$1.warn("Edge "+no.v+" -> "+no.w+": "+JSON.stringify(eo.edge(no)));let so=no.v,ao=no.w;if(log$1.warn("Fix XXX",clusterDb,"ids:",no.v,no.w,"Translating: ",clusterDb[no.v]," --- ",clusterDb[no.w]),clusterDb[no.v]&&clusterDb[no.w]&&clusterDb[no.v]===clusterDb[no.w]){log$1.warn("Fixing and trixing link to self - removing XXX",no.v,no.w,no.name),log$1.warn("Fixing and trixing - removing XXX",no.v,no.w,no.name),so=getAnchorId(no.v),ao=getAnchorId(no.w),eo.removeEdge(no.v,no.w,no.name);const lo=no.w+"---"+no.v;eo.setNode(lo,{domId:lo,id:lo,labelStyle:"",labelText:io.label,padding:0,shape:"labelRect",style:""});const uo=structuredClone(io),ho=structuredClone(io);uo.label="",uo.arrowTypeEnd="none",ho.label="",uo.fromCluster=no.v,ho.toCluster=no.v,eo.setEdge(so,lo,uo,no.name+"-cyclic-special"),eo.setEdge(lo,ao,ho,no.name+"-cyclic-special")}else if(clusterDb[no.v]||clusterDb[no.w]){if(log$1.warn("Fixing and trixing - removing XXX",no.v,no.w,no.name),so=getAnchorId(no.v),ao=getAnchorId(no.w),eo.removeEdge(no.v,no.w,no.name),so!==no.v){const lo=eo.parent(so);clusterDb[lo].externalConnections=!0,io.fromCluster=no.v}if(ao!==no.w){const lo=eo.parent(ao);clusterDb[lo].externalConnections=!0,io.toCluster=no.w}log$1.warn("Fix Replacing with XXX",so,ao,no.name),eo.setEdge(so,ao,io,no.name)}}),log$1.warn("Adjusted Graph",write(eo)),extractor(eo,0),log$1.trace(clusterDb)},extractor=(eo,to)=>{if(log$1.warn("extractor - ",to,write(eo),eo.children("D")),to>10){log$1.error("Bailing out");return}let no=eo.nodes(),io=!1;for(const so of no){const ao=eo.children(so);io=io||ao.length>0}if(!io){log$1.debug("Done, no node has children",eo.nodes());return}log$1.debug("Nodes = ",no,to);for(const so of no)if(log$1.debug("Extracting node",so,clusterDb,clusterDb[so]&&!clusterDb[so].externalConnections,!eo.parent(so),eo.node(so),eo.children("D")," Depth ",to),!clusterDb[so])log$1.debug("Not a cluster",so,to);else if(!clusterDb[so].externalConnections&&eo.children(so)&&eo.children(so).length>0){log$1.warn("Cluster without external connections, without a parent and with children",so,to);let lo=eo.graph().rankdir==="TB"?"LR":"TB";clusterDb[so]&&clusterDb[so].clusterData&&clusterDb[so].clusterData.dir&&(lo=clusterDb[so].clusterData.dir,log$1.warn("Fixing dir",clusterDb[so].clusterData.dir,lo));const uo=new Graph({multigraph:!0,compound:!0}).setGraph({rankdir:lo,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});log$1.warn("Old graph before copy",write(eo)),copy$1(so,eo,uo,so),eo.setNode(so,{clusterNode:!0,id:so,clusterData:clusterDb[so].clusterData,labelText:clusterDb[so].labelText,graph:uo}),log$1.warn("New graph after copy node: (",so,")",write(uo)),log$1.debug("Old graph after copy",write(eo))}else log$1.warn("Cluster ** ",so," **not meeting the criteria !externalConnections:",!clusterDb[so].externalConnections," no parent: ",!eo.parent(so)," children ",eo.children(so)&&eo.children(so).length>0,eo.children("D"),to),log$1.debug(clusterDb);no=eo.nodes(),log$1.warn("New list of nodes",no);for(const so of no){const ao=eo.node(so);log$1.warn(" Now next level",so,ao),ao.clusterNode&&extractor(ao.graph,to+1)}},sorter=(eo,to)=>{if(to.length===0)return[];let no=Object.assign(to);return to.forEach(io=>{const so=eo.children(io),ao=sorter(eo,so);no=[...no,...ao]}),no},sortNodesByHierarchy=eo=>sorter(eo,eo.children()),rect=(eo,to)=>{log$1.info("Creating subgraph rect for ",to.id,to);const no=getConfig$2(),io=eo.insert("g").attr("class","cluster"+(to.class?" "+to.class:"")).attr("id",to.id),so=io.insert("rect",":first-child"),ao=evaluate(no.flowchart.htmlLabels),lo=io.insert("g").attr("class","cluster-label"),uo=to.labelType==="markdown"?createText(lo,to.labelText,{style:to.labelStyle,useHtmlLabels:ao}):lo.node().appendChild(createLabel$1(to.labelText,to.labelStyle,void 0,!0));let ho=uo.getBBox();if(evaluate(no.flowchart.htmlLabels)){const ko=uo.children[0],Co=select(uo);ho=ko.getBoundingClientRect(),Co.attr("width",ho.width),Co.attr("height",ho.height)}const go=0*to.padding,mo=go/2,yo=to.width<=ho.width+go?ho.width+go:to.width;to.width<=ho.width+go?to.diff=(ho.width-to.width)/2-to.padding/2:to.diff=-to.padding/2,log$1.trace("Data ",to,JSON.stringify(to)),so.attr("style",to.style).attr("rx",to.rx).attr("ry",to.ry).attr("x",to.x-yo/2).attr("y",to.y-to.height/2-mo).attr("width",yo).attr("height",to.height+go);const{subGraphTitleTopMargin:So}=getSubGraphTitleMargins(no);ao?lo.attr("transform",`translate(${to.x-ho.width/2}, ${to.y-to.height/2+So})`):lo.attr("transform",`translate(${to.x}, ${to.y-to.height/2+So})`);const _o=so.node().getBBox();return to.width=_o.width,to.height=_o.height,to.intersect=function(ko){return intersectRect$1(to,ko)},io},noteGroup=(eo,to)=>{const no=eo.insert("g").attr("class","note-cluster").attr("id",to.id),io=no.insert("rect",":first-child"),so=0*to.padding,ao=so/2;io.attr("rx",to.rx).attr("ry",to.ry).attr("x",to.x-to.width/2-ao).attr("y",to.y-to.height/2-ao).attr("width",to.width+so).attr("height",to.height+so).attr("fill","none");const lo=io.node().getBBox();return to.width=lo.width,to.height=lo.height,to.intersect=function(uo){return intersectRect$1(to,uo)},no},roundedWithTitle=(eo,to)=>{const no=getConfig$2(),io=eo.insert("g").attr("class",to.classes).attr("id",to.id),so=io.insert("rect",":first-child"),ao=io.insert("g").attr("class","cluster-label"),lo=io.append("rect"),uo=ao.node().appendChild(createLabel$1(to.labelText,to.labelStyle,void 0,!0));let ho=uo.getBBox();if(evaluate(no.flowchart.htmlLabels)){const ko=uo.children[0],Co=select(uo);ho=ko.getBoundingClientRect(),Co.attr("width",ho.width),Co.attr("height",ho.height)}ho=uo.getBBox();const go=0*to.padding,mo=go/2,yo=to.width<=ho.width+to.padding?ho.width+to.padding:to.width;to.width<=ho.width+to.padding?to.diff=(ho.width+to.padding*0-to.width)/2:to.diff=-to.padding/2,so.attr("class","outer").attr("x",to.x-yo/2-mo).attr("y",to.y-to.height/2-mo).attr("width",yo+go).attr("height",to.height+go),lo.attr("class","inner").attr("x",to.x-yo/2-mo).attr("y",to.y-to.height/2-mo+ho.height-1).attr("width",yo+go).attr("height",to.height+go-ho.height-3);const{subGraphTitleTopMargin:So}=getSubGraphTitleMargins(no);ao.attr("transform",`translate(${to.x-ho.width/2}, ${to.y-to.height/2-to.padding/3+(evaluate(no.flowchart.htmlLabels)?5:3)+So})`);const _o=so.node().getBBox();return to.height=_o.height,to.intersect=function(ko){return intersectRect$1(to,ko)},io},divider=(eo,to)=>{const no=eo.insert("g").attr("class",to.classes).attr("id",to.id),io=no.insert("rect",":first-child"),so=0*to.padding,ao=so/2;io.attr("class","divider").attr("x",to.x-to.width/2-ao).attr("y",to.y-to.height/2).attr("width",to.width+so).attr("height",to.height+so);const lo=io.node().getBBox();return to.width=lo.width,to.height=lo.height,to.diff=-to.padding/2,to.intersect=function(uo){return intersectRect$1(to,uo)},no},shapes={rect,roundedWithTitle,noteGroup,divider};let clusterElems={};const insertCluster=(eo,to)=>{log$1.trace("Inserting cluster");const no=to.shape||"rect";clusterElems[to.id]=shapes[no](eo,to)},clear$g=()=>{clusterElems={}},recursiveRender=async(eo,to,no,io,so,ao)=>{log$1.info("Graph in recursive render: XXX",write(to),so);const lo=to.graph().rankdir;log$1.trace("Dir in recursive render - dir:",lo);const uo=eo.insert("g").attr("class","root");to.nodes()?log$1.info("Recursive render XXX",to.nodes()):log$1.info("No nodes found for",to),to.edges().length>0&&log$1.trace("Recursive edges",to.edge(to.edges()[0]));const ho=uo.insert("g").attr("class","clusters"),go=uo.insert("g").attr("class","edgePaths"),mo=uo.insert("g").attr("class","edgeLabels"),yo=uo.insert("g").attr("class","nodes");await Promise.all(to.nodes().map(async function(ko){const Co=to.node(ko);if(so!==void 0){const $o=JSON.parse(JSON.stringify(so.clusterData));log$1.info("Setting data for cluster XXX (",ko,") ",$o,so),to.setNode(so.id,$o),to.parent(ko)||(log$1.trace("Setting parent",ko,so.id),to.setParent(ko,so.id,$o))}if(log$1.info("(Insert) Node XXX"+ko+": "+JSON.stringify(to.node(ko))),Co&&Co.clusterNode){log$1.info("Cluster identified",ko,Co.width,to.node(ko));const $o=await recursiveRender(yo,Co.graph,no,io,to.node(ko),ao),Ro=$o.elem;updateNodeBounds(Co,Ro),Co.diff=$o.diff||0,log$1.info("Node bounds (abc123)",ko,Co,Co.width,Co.x,Co.y),setNodeElem(Ro,Co),log$1.warn("Recursive render complete ",Ro,Co)}else to.children(ko).length>0?(log$1.info("Cluster - the non recursive path XXX",ko,Co.id,Co,to),log$1.info(findNonClusterChild(Co.id,to)),clusterDb[Co.id]={id:findNonClusterChild(Co.id,to),node:Co}):(log$1.info("Node - the non recursive path",ko,Co.id,Co),await insertNode(yo,to.node(ko),lo))})),to.edges().forEach(function(ko){const Co=to.edge(ko.v,ko.w,ko.name);log$1.info("Edge "+ko.v+" -> "+ko.w+": "+JSON.stringify(ko)),log$1.info("Edge "+ko.v+" -> "+ko.w+": ",ko," ",JSON.stringify(to.edge(ko))),log$1.info("Fix",clusterDb,"ids:",ko.v,ko.w,"Translating: ",clusterDb[ko.v],clusterDb[ko.w]),insertEdgeLabel(mo,Co)}),to.edges().forEach(function(ko){log$1.info("Edge "+ko.v+" -> "+ko.w+": "+JSON.stringify(ko))}),log$1.info("#############################################"),log$1.info("### Layout ###"),log$1.info("#############################################"),log$1.info(to),layout$2(to),log$1.info("Graph after layout:",write(to));let So=0;const{subGraphTitleTotalMargin:_o}=getSubGraphTitleMargins(ao);return sortNodesByHierarchy(to).forEach(function(ko){const Co=to.node(ko);log$1.info("Position "+ko+": "+JSON.stringify(to.node(ko))),log$1.info("Position "+ko+": ("+Co.x,","+Co.y,") width: ",Co.width," height: ",Co.height),Co&&Co.clusterNode?(Co.y+=_o,positionNode$1(Co)):to.children(ko).length>0?(Co.height+=_o,insertCluster(ho,Co),clusterDb[Co.id].node=Co):(Co.y+=_o/2,positionNode$1(Co))}),to.edges().forEach(function(ko){const Co=to.edge(ko);log$1.info("Edge "+ko.v+" -> "+ko.w+": "+JSON.stringify(Co),Co),Co.points.forEach(Ro=>Ro.y+=_o/2);const $o=insertEdge$1(go,ko,Co,clusterDb,no,to,io);positionEdgeLabel(Co,$o)}),to.nodes().forEach(function(ko){const Co=to.node(ko);log$1.info(ko,Co.type,Co.diff),Co.type==="group"&&(So=Co.diff)}),{elem:uo,diff:So}},render=async(eo,to,no,io,so)=>{insertMarkers$1$1(eo,no,io,so),clear$1$3(),clear$h(),clear$g(),clear$1$2(),log$1.warn("Graph at first:",JSON.stringify(write(to))),adjustClustersAndEdges(to),log$1.warn("Graph after:",JSON.stringify(write(to)));const ao=getConfig$2();await recursiveRender(eo,to,io,so,void 0,ao)},conf$8={},setConf$8=function(eo){const to=Object.keys(eo);for(const no of to)conf$8[no]=eo[no]},addVertices$2=async function(eo,to,no,io,so,ao){const lo=io.select(`[id="${no}"]`),uo=Object.keys(eo);for(const ho of uo){const go=eo[ho];let mo="default";go.classes.length>0&&(mo=go.classes.join(" ")),mo=mo+" flowchart-label";const yo=getStylesFromArray(go.styles);let So=go.text!==void 0?go.text:go.id,_o;if(log$1.info("vertex",go,go.labelType),go.labelType==="markdown")log$1.info("vertex",go,go.labelType);else if(evaluate(getConfig$2().flowchart.htmlLabels))_o=addHtmlLabel$1(lo,{label:So}).node(),_o.parentNode.removeChild(_o);else{const Ro=so.createElementNS("http://www.w3.org/2000/svg","text");Ro.setAttribute("style",yo.labelStyle.replace("color:","fill:"));const Oo=So.split(common$1.lineBreakRegex);for(const No of Oo){const Mo=so.createElementNS("http://www.w3.org/2000/svg","tspan");Mo.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Mo.setAttribute("dy","1em"),Mo.setAttribute("x","1"),Mo.textContent=No,Ro.appendChild(Mo)}_o=Ro}let ko=0,Co="";switch(go.type){case"round":ko=5,Co="rect";break;case"square":Co="rect";break;case"diamond":Co="question";break;case"hexagon":Co="hexagon";break;case"odd":Co="rect_left_inv_arrow";break;case"lean_right":Co="lean_right";break;case"lean_left":Co="lean_left";break;case"trapezoid":Co="trapezoid";break;case"inv_trapezoid":Co="inv_trapezoid";break;case"odd_right":Co="rect_left_inv_arrow";break;case"circle":Co="circle";break;case"ellipse":Co="ellipse";break;case"stadium":Co="stadium";break;case"subroutine":Co="subroutine";break;case"cylinder":Co="cylinder";break;case"group":Co="rect";break;case"doublecircle":Co="doublecircle";break;default:Co="rect"}const $o=await renderKatex(So,getConfig$2());to.setNode(go.id,{labelStyle:yo.labelStyle,shape:Co,labelText:$o,labelType:go.labelType,rx:ko,ry:ko,class:mo,style:yo.style,id:go.id,link:go.link,linkTarget:go.linkTarget,tooltip:ao.db.getTooltip(go.id)||"",domId:ao.db.lookUpDomId(go.id),haveCallback:go.haveCallback,width:go.type==="group"?500:void 0,dir:go.dir,type:go.type,props:go.props,padding:getConfig$2().flowchart.padding}),log$1.info("setNode",{labelStyle:yo.labelStyle,labelType:go.labelType,shape:Co,labelText:$o,rx:ko,ry:ko,class:mo,style:yo.style,id:go.id,domId:ao.db.lookUpDomId(go.id),width:go.type==="group"?500:void 0,type:go.type,dir:go.dir,props:go.props,padding:getConfig$2().flowchart.padding})}},addEdges$2=async function(eo,to,no){log$1.info("abc78 edges = ",eo);let io=0,so={},ao,lo;if(eo.defaultStyle!==void 0){const uo=getStylesFromArray(eo.defaultStyle);ao=uo.style,lo=uo.labelStyle}for(const uo of eo){io++;const ho="L-"+uo.start+"-"+uo.end;so[ho]===void 0?(so[ho]=0,log$1.info("abc78 new entry",ho,so[ho])):(so[ho]++,log$1.info("abc78 new entry",ho,so[ho]));let go=ho+"-"+so[ho];log$1.info("abc78 new link id to be used is",ho,go,so[ho]);const mo="LS-"+uo.start,yo="LE-"+uo.end,So={style:"",labelStyle:""};switch(So.minlen=uo.length||1,uo.type==="arrow_open"?So.arrowhead="none":So.arrowhead="normal",So.arrowTypeStart="arrow_open",So.arrowTypeEnd="arrow_open",uo.type){case"double_arrow_cross":So.arrowTypeStart="arrow_cross";case"arrow_cross":So.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":So.arrowTypeStart="arrow_point";case"arrow_point":So.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":So.arrowTypeStart="arrow_circle";case"arrow_circle":So.arrowTypeEnd="arrow_circle";break}let _o="",ko="";switch(uo.stroke){case"normal":_o="fill:none;",ao!==void 0&&(_o=ao),lo!==void 0&&(ko=lo),So.thickness="normal",So.pattern="solid";break;case"dotted":So.thickness="normal",So.pattern="dotted",So.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":So.thickness="thick",So.pattern="solid",So.style="stroke-width: 3.5px;fill:none;";break;case"invisible":So.thickness="invisible",So.pattern="solid",So.style="stroke-width: 0;fill:none;";break}if(uo.style!==void 0){const Co=getStylesFromArray(uo.style);_o=Co.style,ko=Co.labelStyle}So.style=So.style+=_o,So.labelStyle=So.labelStyle+=ko,uo.interpolate!==void 0?So.curve=interpolateToCurve(uo.interpolate,curveLinear):eo.defaultInterpolate!==void 0?So.curve=interpolateToCurve(eo.defaultInterpolate,curveLinear):So.curve=interpolateToCurve(conf$8.curve,curveLinear),uo.text===void 0?uo.style!==void 0&&(So.arrowheadStyle="fill: #333"):(So.arrowheadStyle="fill: #333",So.labelpos="c"),So.labelType=uo.labelType,So.label=await renderKatex(uo.text.replace(common$1.lineBreakRegex,` -`),getConfig$2()),uo.style===void 0&&(So.style=So.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),So.labelStyle=So.labelStyle.replace("color:","fill:"),So.id=go,So.classes="flowchart-link "+mo+" "+yo,to.setEdge(uo.start,uo.end,So,io)}},getClasses$7=function(eo,to){return to.db.getClasses()},draw$k=async function(eo,to,no,io){log$1.info("Drawing flowchart");let so=io.db.getDirection();so===void 0&&(so="TD");const{securityLevel:ao,flowchart:lo}=getConfig$2(),uo=lo.nodeSpacing||50,ho=lo.rankSpacing||50;let go;ao==="sandbox"&&(go=select("#i"+to));const mo=select(ao==="sandbox"?go.nodes()[0].contentDocument.body:"body"),yo=ao==="sandbox"?go.nodes()[0].contentDocument:document,So=new Graph({multigraph:!0,compound:!0}).setGraph({rankdir:so,nodesep:uo,ranksep:ho,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let _o;const ko=io.db.getSubGraphs();log$1.info("Subgraphs - ",ko);for(let Bo=ko.length-1;Bo>=0;Bo--)_o=ko[Bo],log$1.info("Subgraph - ",_o),io.db.addVertex(_o.id,{text:_o.title,type:_o.labelType},"group",void 0,_o.classes,_o.dir);const Co=io.db.getVertices(),$o=io.db.getEdges();log$1.info("Edges",$o);let Ro=0;for(Ro=ko.length-1;Ro>=0;Ro--){_o=ko[Ro],selectAll$1("cluster").append("text");for(let Bo=0;Bo<_o.nodes.length;Bo++)log$1.info("Setting up subgraphs",_o.nodes[Bo],_o.id),So.setParent(_o.nodes[Bo],_o.id)}await addVertices$2(Co,So,to,mo,yo,io),await addEdges$2($o,So);const Oo=mo.select(`[id="${to}"]`),No=mo.select("#"+to+" g");if(await render(No,So,["point","circle","cross"],"flowchart",to),utils$1.insertTitle(Oo,"flowchartTitleText",lo.titleTopMargin,io.db.getDiagramTitle()),setupGraphViewbox$1(So,Oo,lo.diagramPadding,lo.useMaxWidth),io.db.indexNodes("subGraph"+Ro),!lo.htmlLabels){const Bo=yo.querySelectorAll('[id="'+to+'"] .edgeLabel .label');for(const Po of Bo){const Lo=Po.getBBox(),Go=yo.createElementNS("http://www.w3.org/2000/svg","rect");Go.setAttribute("rx",0),Go.setAttribute("ry",0),Go.setAttribute("width",Lo.width),Go.setAttribute("height",Lo.height),Po.insertBefore(Go,Po.firstChild)}}Object.keys(Co).forEach(function(Bo){const Po=Co[Bo];if(Po.link){const Lo=select("#"+to+' [id="'+Bo+'"]');if(Lo){const Go=yo.createElementNS("http://www.w3.org/2000/svg","a");Go.setAttributeNS("http://www.w3.org/2000/svg","class",Po.classes.join(" ")),Go.setAttributeNS("http://www.w3.org/2000/svg","href",Po.link),Go.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),ao==="sandbox"?Go.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):Po.linkTarget&&Go.setAttributeNS("http://www.w3.org/2000/svg","target",Po.linkTarget);const Do=Lo.insert(function(){return Go},":first-child"),Uo=Lo.select(".label-container");Uo&&Do.append(function(){return Uo.node()});const Ho=Lo.select(".label");Ho&&Do.append(function(){return Ho.node()})}}})},flowRendererV2={setConf:setConf$8,addVertices:addVertices$2,addEdges:addEdges$2,getClasses:getClasses$7,draw:draw$k},fade$1=(eo,to)=>{const no=channel$1,io=no(eo,"r"),so=no(eo,"g"),ao=no(eo,"b");return rgba$2(io,so,ao,to)},getStyles$d=eo=>`.label { +`),getConfig$2()),uo.style===void 0&&(So.style=So.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),So.labelStyle=So.labelStyle.replace("color:","fill:"),So.id=go,So.classes="flowchart-link "+mo+" "+yo,to.setEdge(uo.start,uo.end,So,io)}},getClasses$7=function(eo,to){return to.db.getClasses()},draw$k=async function(eo,to,no,io){log$1.info("Drawing flowchart");let so=io.db.getDirection();so===void 0&&(so="TD");const{securityLevel:ao,flowchart:lo}=getConfig$2(),uo=lo.nodeSpacing||50,ho=lo.rankSpacing||50;let go;ao==="sandbox"&&(go=select("#i"+to));const mo=select(ao==="sandbox"?go.nodes()[0].contentDocument.body:"body"),yo=ao==="sandbox"?go.nodes()[0].contentDocument:document,So=new Graph({multigraph:!0,compound:!0}).setGraph({rankdir:so,nodesep:uo,ranksep:ho,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let _o;const ko=io.db.getSubGraphs();log$1.info("Subgraphs - ",ko);for(let Bo=ko.length-1;Bo>=0;Bo--)_o=ko[Bo],log$1.info("Subgraph - ",_o),io.db.addVertex(_o.id,{text:_o.title,type:_o.labelType},"group",void 0,_o.classes,_o.dir);const Co=io.db.getVertices(),$o=io.db.getEdges();log$1.info("Edges",$o);let Ro=0;for(Ro=ko.length-1;Ro>=0;Ro--){_o=ko[Ro],selectAll$1("cluster").append("text");for(let Bo=0;Bo<_o.nodes.length;Bo++)log$1.info("Setting up subgraphs",_o.nodes[Bo],_o.id),So.setParent(_o.nodes[Bo],_o.id)}await addVertices$2(Co,So,to,mo,yo,io),await addEdges$2($o,So);const Oo=mo.select(`[id="${to}"]`),No=mo.select("#"+to+" g");if(await render(No,So,["point","circle","cross"],"flowchart",to),utils$1.insertTitle(Oo,"flowchartTitleText",lo.titleTopMargin,io.db.getDiagramTitle()),setupGraphViewbox$1(So,Oo,lo.diagramPadding,lo.useMaxWidth),io.db.indexNodes("subGraph"+Ro),!lo.htmlLabels){const Bo=yo.querySelectorAll('[id="'+to+'"] .edgeLabel .label');for(const Fo of Bo){const Lo=Fo.getBBox(),Go=yo.createElementNS("http://www.w3.org/2000/svg","rect");Go.setAttribute("rx",0),Go.setAttribute("ry",0),Go.setAttribute("width",Lo.width),Go.setAttribute("height",Lo.height),Fo.insertBefore(Go,Fo.firstChild)}}Object.keys(Co).forEach(function(Bo){const Fo=Co[Bo];if(Fo.link){const Lo=select("#"+to+' [id="'+Bo+'"]');if(Lo){const Go=yo.createElementNS("http://www.w3.org/2000/svg","a");Go.setAttributeNS("http://www.w3.org/2000/svg","class",Fo.classes.join(" ")),Go.setAttributeNS("http://www.w3.org/2000/svg","href",Fo.link),Go.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),ao==="sandbox"?Go.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):Fo.linkTarget&&Go.setAttributeNS("http://www.w3.org/2000/svg","target",Fo.linkTarget);const Do=Lo.insert(function(){return Go},":first-child"),Uo=Lo.select(".label-container");Uo&&Do.append(function(){return Uo.node()});const Ho=Lo.select(".label");Ho&&Do.append(function(){return Ho.node()})}}})},flowRendererV2={setConf:setConf$8,addVertices:addVertices$2,addEdges:addEdges$2,getClasses:getClasses$7,draw:draw$k},fade$1=(eo,to)=>{const no=channel$1,io=no(eo,"r"),so=no(eo,"g"),ao=no(eo,"b");return rgba$2(io,so,ao,to)},getStyles$d=eo=>`.label { font-family: ${eo.fontFamily}; color: ${eo.nodeTextColor||eo.textColor}; } @@ -2427,12 +2427,12 @@ You have to call mermaid.initialize.`)},addLink$1=function(eo,to,no){log$1.info( fill: ${eo.textColor}; } `,flowStyles$1=getStyles$d;function question(eo,to,no){const io=to.width,so=to.height,ao=(io+so)*.9,lo=[{x:ao/2,y:0},{x:ao,y:-ao/2},{x:ao/2,y:-ao},{x:0,y:-ao/2}],uo=insertPolygonShape$1(eo,ao,ao,lo);return no.intersect=function(ho){return intersectPolygon$1(no,lo,ho)},uo}function hexagon(eo,to,no){const so=to.height,ao=so/4,lo=to.width+2*ao,uo=[{x:ao,y:0},{x:lo-ao,y:0},{x:lo,y:-so/2},{x:lo-ao,y:-so},{x:ao,y:-so},{x:0,y:-so/2}],ho=insertPolygonShape$1(eo,lo,so,uo);return no.intersect=function(go){return intersectPolygon$1(no,uo,go)},ho}function rect_left_inv_arrow(eo,to,no){const io=to.width,so=to.height,ao=[{x:-so/2,y:0},{x:io,y:0},{x:io,y:-so},{x:-so/2,y:-so},{x:0,y:-so/2}],lo=insertPolygonShape$1(eo,io,so,ao);return no.intersect=function(uo){return intersectPolygon$1(no,ao,uo)},lo}function lean_right(eo,to,no){const io=to.width,so=to.height,ao=[{x:-2*so/6,y:0},{x:io-so/6,y:0},{x:io+2*so/6,y:-so},{x:so/6,y:-so}],lo=insertPolygonShape$1(eo,io,so,ao);return no.intersect=function(uo){return intersectPolygon$1(no,ao,uo)},lo}function lean_left(eo,to,no){const io=to.width,so=to.height,ao=[{x:2*so/6,y:0},{x:io+so/6,y:0},{x:io-2*so/6,y:-so},{x:-so/6,y:-so}],lo=insertPolygonShape$1(eo,io,so,ao);return no.intersect=function(uo){return intersectPolygon$1(no,ao,uo)},lo}function trapezoid(eo,to,no){const io=to.width,so=to.height,ao=[{x:-2*so/6,y:0},{x:io+2*so/6,y:0},{x:io-so/6,y:-so},{x:so/6,y:-so}],lo=insertPolygonShape$1(eo,io,so,ao);return no.intersect=function(uo){return intersectPolygon$1(no,ao,uo)},lo}function inv_trapezoid(eo,to,no){const io=to.width,so=to.height,ao=[{x:so/6,y:0},{x:io-so/6,y:0},{x:io+2*so/6,y:-so},{x:-2*so/6,y:-so}],lo=insertPolygonShape$1(eo,io,so,ao);return no.intersect=function(uo){return intersectPolygon$1(no,ao,uo)},lo}function rect_right_inv_arrow(eo,to,no){const io=to.width,so=to.height,ao=[{x:0,y:0},{x:io+so/2,y:0},{x:io,y:-so/2},{x:io+so/2,y:-so},{x:0,y:-so}],lo=insertPolygonShape$1(eo,io,so,ao);return no.intersect=function(uo){return intersectPolygon$1(no,ao,uo)},lo}function stadium(eo,to,no){const io=to.height,so=to.width+io/4,ao=eo.insert("rect",":first-child").attr("rx",io/2).attr("ry",io/2).attr("x",-so/2).attr("y",-io/2).attr("width",so).attr("height",io);return no.intersect=function(lo){return intersectRect$2(no,lo)},ao}function subroutine(eo,to,no){const io=to.width,so=to.height,ao=[{x:0,y:0},{x:io,y:0},{x:io,y:-so},{x:0,y:-so},{x:0,y:0},{x:-8,y:0},{x:io+8,y:0},{x:io+8,y:-so},{x:-8,y:-so},{x:-8,y:0}],lo=insertPolygonShape$1(eo,io,so,ao);return no.intersect=function(uo){return intersectPolygon$1(no,ao,uo)},lo}function cylinder(eo,to,no){const io=to.width,so=io/2,ao=so/(2.5+io/50),lo=to.height+ao,uo="M 0,"+ao+" a "+so+","+ao+" 0,0,0 "+io+" 0 a "+so+","+ao+" 0,0,0 "+-io+" 0 l 0,"+lo+" a "+so+","+ao+" 0,0,0 "+io+" 0 l 0,"+-lo,ho=eo.attr("label-offset-y",ao).insert("path",":first-child").attr("d",uo).attr("transform","translate("+-io/2+","+-(lo/2+ao)+")");return no.intersect=function(go){const mo=intersectRect$2(no,go),yo=mo.x-no.x;if(so!=0&&(Math.abs(yo)no.height/2-ao)){let So=ao*ao*(1-yo*yo/(so*so));So!=0&&(So=Math.sqrt(So)),So=ao-So,go.y-no.y>0&&(So=-So),mo.y+=So}return mo},ho}function addToRender(eo){eo.shapes().question=question,eo.shapes().hexagon=hexagon,eo.shapes().stadium=stadium,eo.shapes().subroutine=subroutine,eo.shapes().cylinder=cylinder,eo.shapes().rect_left_inv_arrow=rect_left_inv_arrow,eo.shapes().lean_right=lean_right,eo.shapes().lean_left=lean_left,eo.shapes().trapezoid=trapezoid,eo.shapes().inv_trapezoid=inv_trapezoid,eo.shapes().rect_right_inv_arrow=rect_right_inv_arrow}function addToRenderV2(eo){eo({question}),eo({hexagon}),eo({stadium}),eo({subroutine}),eo({cylinder}),eo({rect_left_inv_arrow}),eo({lean_right}),eo({lean_left}),eo({trapezoid}),eo({inv_trapezoid}),eo({rect_right_inv_arrow})}function insertPolygonShape$1(eo,to,no,io){return eo.insert("polygon",":first-child").attr("points",io.map(function(so){return so.x+","+so.y}).join(" ")).attr("transform","translate("+-to/2+","+no/2+")")}const flowChartShapes={addToRender,addToRenderV2},conf$7={},setConf$7=function(eo){const to=Object.keys(eo);for(const no of to)conf$7[no]=eo[no]},addVertices$1=async function(eo,to,no,io,so,ao){const lo=io?io.select(`[id="${no}"]`):select(`[id="${no}"]`),uo=so||document,ho=Object.keys(eo);for(const go of ho){const mo=eo[go];let yo="default";mo.classes.length>0&&(yo=mo.classes.join(" "));const So=getStylesFromArray(mo.styles);let _o=mo.text!==void 0?mo.text:mo.id,ko;if(evaluate(getConfig$2().flowchart.htmlLabels)){const Ro={label:await renderKatex(_o.replace(/fa[blrs]?:fa-[\w-]+/g,Oo=>``),getConfig$2())};ko=addHtmlLabel$1(lo,Ro).node(),ko.parentNode.removeChild(ko)}else{const Ro=uo.createElementNS("http://www.w3.org/2000/svg","text");Ro.setAttribute("style",So.labelStyle.replace("color:","fill:"));const Oo=_o.split(common$1.lineBreakRegex);for(const No of Oo){const Mo=uo.createElementNS("http://www.w3.org/2000/svg","tspan");Mo.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Mo.setAttribute("dy","1em"),Mo.setAttribute("x","1"),Mo.textContent=No,Ro.appendChild(Mo)}ko=Ro}let Co=0,$o="";switch(mo.type){case"round":Co=5,$o="rect";break;case"square":$o="rect";break;case"diamond":$o="question";break;case"hexagon":$o="hexagon";break;case"odd":$o="rect_left_inv_arrow";break;case"lean_right":$o="lean_right";break;case"lean_left":$o="lean_left";break;case"trapezoid":$o="trapezoid";break;case"inv_trapezoid":$o="inv_trapezoid";break;case"odd_right":$o="rect_left_inv_arrow";break;case"circle":$o="circle";break;case"ellipse":$o="ellipse";break;case"stadium":$o="stadium";break;case"subroutine":$o="subroutine";break;case"cylinder":$o="cylinder";break;case"group":$o="rect";break;default:$o="rect"}log$1.warn("Adding node",mo.id,mo.domId),to.setNode(ao.db.lookUpDomId(mo.id),{labelType:"svg",labelStyle:So.labelStyle,shape:$o,label:ko,rx:Co,ry:Co,class:yo,style:So.style,id:ao.db.lookUpDomId(mo.id)})}},addEdges$1=async function(eo,to,no){let io=0,so,ao;if(eo.defaultStyle!==void 0){const lo=getStylesFromArray(eo.defaultStyle);so=lo.style,ao=lo.labelStyle}for(const lo of eo){io++;const uo="L-"+lo.start+"-"+lo.end,ho="LS-"+lo.start,go="LE-"+lo.end,mo={};lo.type==="arrow_open"?mo.arrowhead="none":mo.arrowhead="normal";let yo="",So="";if(lo.style!==void 0){const _o=getStylesFromArray(lo.style);yo=_o.style,So=_o.labelStyle}else switch(lo.stroke){case"normal":yo="fill:none",so!==void 0&&(yo=so),ao!==void 0&&(So=ao);break;case"dotted":yo="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":yo=" stroke-width: 3.5px;fill:none";break}mo.style=yo,mo.labelStyle=So,lo.interpolate!==void 0?mo.curve=interpolateToCurve(lo.interpolate,curveLinear):eo.defaultInterpolate!==void 0?mo.curve=interpolateToCurve(eo.defaultInterpolate,curveLinear):mo.curve=interpolateToCurve(conf$7.curve,curveLinear),lo.text===void 0?lo.style!==void 0&&(mo.arrowheadStyle="fill: #333"):(mo.arrowheadStyle="fill: #333",mo.labelpos="c",evaluate(getConfig$2().flowchart.htmlLabels)?(mo.labelType="html",mo.label=`${await renderKatex(lo.text.replace(/fa[blrs]?:fa-[\w-]+/g,_o=>``),getConfig$2())}`):(mo.labelType="text",mo.label=lo.text.replace(common$1.lineBreakRegex,` -`),lo.style===void 0&&(mo.style=mo.style||"stroke: #333; stroke-width: 1.5px;fill:none"),mo.labelStyle=mo.labelStyle.replace("color:","fill:"))),mo.id=uo,mo.class=ho+" "+go,mo.minlen=lo.length||1,to.setEdge(no.db.lookUpDomId(lo.start),no.db.lookUpDomId(lo.end),mo,io)}},getClasses$6=function(eo,to){return log$1.info("Extracting classes"),to.db.getClasses()},draw$j=async function(eo,to,no,io){log$1.info("Drawing flowchart");const{securityLevel:so,flowchart:ao}=getConfig$2();let lo;so==="sandbox"&&(lo=select("#i"+to));const uo=select(so==="sandbox"?lo.nodes()[0].contentDocument.body:"body"),ho=so==="sandbox"?lo.nodes()[0].contentDocument:document;let go=io.db.getDirection();go===void 0&&(go="TD");const mo=ao.nodeSpacing||50,yo=ao.rankSpacing||50,So=new Graph({multigraph:!0,compound:!0}).setGraph({rankdir:go,nodesep:mo,ranksep:yo,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let _o;const ko=io.db.getSubGraphs();for(let Po=ko.length-1;Po>=0;Po--)_o=ko[Po],io.db.addVertex(_o.id,_o.title,"group",void 0,_o.classes);const Co=io.db.getVertices();log$1.warn("Get vertices",Co);const $o=io.db.getEdges();let Ro=0;for(Ro=ko.length-1;Ro>=0;Ro--){_o=ko[Ro],selectAll$1("cluster").append("text");for(let Po=0;Po<_o.nodes.length;Po++)log$1.warn("Setting subgraph",_o.nodes[Po],io.db.lookUpDomId(_o.nodes[Po]),io.db.lookUpDomId(_o.id)),So.setParent(io.db.lookUpDomId(_o.nodes[Po]),io.db.lookUpDomId(_o.id))}await addVertices$1(Co,So,to,uo,ho,io),await addEdges$1($o,So,io);const Oo=new render$1;flowChartShapes.addToRender(Oo),Oo.arrows().none=function(Lo,Go,Do,Uo){const Yo=Lo.append("marker").attr("id",Go).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");applyStyle$2(Yo,Do[Uo+"Style"])},Oo.arrows().normal=function(Lo,Go){Lo.append("marker").attr("id",Go).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const No=uo.select(`[id="${to}"]`),Mo=uo.select("#"+to+" g");for(Oo(Mo,So),Mo.selectAll("g.node").attr("title",function(){return io.db.getTooltip(this.id)}),io.db.indexNodes("subGraph"+Ro),Ro=0;Ro{eo.flowchart||(eo.flowchart={}),eo.flowchart.arrowMarkerAbsolute=eo.arrowMarkerAbsolute,flowRenderer.setConf(eo.flowchart),flowDb.clear(),flowDb.setGen("gen-1")}},flowDiagram5540d9b9=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$k},Symbol.toStringTag,{value:"Module"})),diagram$j={parser:parser$1$d,db:flowDb,renderer:flowRendererV2,styles:flowStyles$1,init:eo=>{eo.flowchart||(eo.flowchart={}),eo.flowchart.arrowMarkerAbsolute=eo.arrowMarkerAbsolute,setConfig({flowchart:{arrowMarkerAbsolute:eo.arrowMarkerAbsolute}}),flowRendererV2.setConf(eo.flowchart),flowDb.clear(),flowDb.setGen("gen-2")}},flowDiagramV23b53844e=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$j},Symbol.toStringTag,{value:"Module"})),REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(eo){return typeof eo=="string"&®EX.test(eo)}const byteToHex=[];for(let eo=0;eo<256;++eo)byteToHex.push((eo+256).toString(16).slice(1));function unsafeStringify(eo,to=0){return byteToHex[eo[to+0]]+byteToHex[eo[to+1]]+byteToHex[eo[to+2]]+byteToHex[eo[to+3]]+"-"+byteToHex[eo[to+4]]+byteToHex[eo[to+5]]+"-"+byteToHex[eo[to+6]]+byteToHex[eo[to+7]]+"-"+byteToHex[eo[to+8]]+byteToHex[eo[to+9]]+"-"+byteToHex[eo[to+10]]+byteToHex[eo[to+11]]+byteToHex[eo[to+12]]+byteToHex[eo[to+13]]+byteToHex[eo[to+14]]+byteToHex[eo[to+15]]}function parse$2(eo){if(!validate(eo))throw TypeError("Invalid UUID");let to;const no=new Uint8Array(16);return no[0]=(to=parseInt(eo.slice(0,8),16))>>>24,no[1]=to>>>16&255,no[2]=to>>>8&255,no[3]=to&255,no[4]=(to=parseInt(eo.slice(9,13),16))>>>8,no[5]=to&255,no[6]=(to=parseInt(eo.slice(14,18),16))>>>8,no[7]=to&255,no[8]=(to=parseInt(eo.slice(19,23),16))>>>8,no[9]=to&255,no[10]=(to=parseInt(eo.slice(24,36),16))/1099511627776&255,no[11]=to/4294967296&255,no[12]=to>>>24&255,no[13]=to>>>16&255,no[14]=to>>>8&255,no[15]=to&255,no}function stringToBytes(eo){eo=unescape(encodeURIComponent(eo));const to=[];for(let no=0;no>>32-to}function sha1(eo){const to=[1518500249,1859775393,2400959708,3395469782],no=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof eo=="string"){const lo=unescape(encodeURIComponent(eo));eo=[];for(let uo=0;uo>>0;So=yo,yo=mo,mo=ROTL(go,30)>>>0,go=ho,ho=Co}no[0]=no[0]+ho>>>0,no[1]=no[1]+go>>>0,no[2]=no[2]+mo>>>0,no[3]=no[3]+yo>>>0,no[4]=no[4]+So>>>0}return[no[0]>>24&255,no[0]>>16&255,no[0]>>8&255,no[0]&255,no[1]>>24&255,no[1]>>16&255,no[1]>>8&255,no[1]&255,no[2]>>24&255,no[2]>>16&255,no[2]>>8&255,no[2]&255,no[3]>>24&255,no[3]>>16&255,no[3]>>8&255,no[3]&255,no[4]>>24&255,no[4]>>16&255,no[4]>>8&255,no[4]&255]}const v5=v35("v5",80,sha1),v5$1=v5;var parser$g=function(){var eo=function(Go,Do,Uo,Ho){for(Uo=Uo||{},Ho=Go.length;Ho--;Uo[Go[Ho]]=Do);return Uo},to=[6,8,10,20,22,24,26,27,28],no=[1,10],io=[1,11],so=[1,12],ao=[1,13],lo=[1,14],uo=[1,15],ho=[1,21],go=[1,22],mo=[1,23],yo=[1,24],So=[1,25],_o=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],ko=[1,34],Co=[27,28,46,47],$o=[41,42,43,44,45],Ro=[17,34],Oo=[1,54],No=[1,53],Mo=[17,34,36,38],Bo={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(Do,Uo,Ho,Yo,qo,Jo,ps){var Qo=Jo.length-1;switch(qo){case 1:break;case 2:this.$=[];break;case 3:Jo[Qo-1].push(Jo[Qo]),this.$=Jo[Qo-1];break;case 4:case 5:this.$=Jo[Qo];break;case 6:case 7:this.$=[];break;case 8:Yo.addEntity(Jo[Qo-4]),Yo.addEntity(Jo[Qo-2]),Yo.addRelationship(Jo[Qo-4],Jo[Qo],Jo[Qo-2],Jo[Qo-3]);break;case 9:Yo.addEntity(Jo[Qo-3]),Yo.addAttributes(Jo[Qo-3],Jo[Qo-1]);break;case 10:Yo.addEntity(Jo[Qo-2]);break;case 11:Yo.addEntity(Jo[Qo]);break;case 12:Yo.addEntity(Jo[Qo-6],Jo[Qo-4]),Yo.addAttributes(Jo[Qo-6],Jo[Qo-1]);break;case 13:Yo.addEntity(Jo[Qo-5],Jo[Qo-3]);break;case 14:Yo.addEntity(Jo[Qo-3],Jo[Qo-1]);break;case 15:case 16:this.$=Jo[Qo].trim(),Yo.setAccTitle(this.$);break;case 17:case 18:this.$=Jo[Qo].trim(),Yo.setAccDescription(this.$);break;case 19:case 43:this.$=Jo[Qo];break;case 20:case 41:case 42:this.$=Jo[Qo].replace(/"/g,"");break;case 21:case 29:this.$=[Jo[Qo]];break;case 22:Jo[Qo].push(Jo[Qo-1]),this.$=Jo[Qo];break;case 23:this.$={attributeType:Jo[Qo-1],attributeName:Jo[Qo]};break;case 24:this.$={attributeType:Jo[Qo-2],attributeName:Jo[Qo-1],attributeKeyTypeList:Jo[Qo]};break;case 25:this.$={attributeType:Jo[Qo-2],attributeName:Jo[Qo-1],attributeComment:Jo[Qo]};break;case 26:this.$={attributeType:Jo[Qo-3],attributeName:Jo[Qo-2],attributeKeyTypeList:Jo[Qo-1],attributeComment:Jo[Qo]};break;case 27:case 28:case 31:this.$=Jo[Qo];break;case 30:Jo[Qo-2].push(Jo[Qo]),this.$=Jo[Qo-2];break;case 32:this.$=Jo[Qo].replace(/"/g,"");break;case 33:this.$={cardA:Jo[Qo],relType:Jo[Qo-1],cardB:Jo[Qo-2]};break;case 34:this.$=Yo.Cardinality.ZERO_OR_ONE;break;case 35:this.$=Yo.Cardinality.ZERO_OR_MORE;break;case 36:this.$=Yo.Cardinality.ONE_OR_MORE;break;case 37:this.$=Yo.Cardinality.ONLY_ONE;break;case 38:this.$=Yo.Cardinality.MD_PARENT;break;case 39:this.$=Yo.Identification.NON_IDENTIFYING;break;case 40:this.$=Yo.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},eo(to,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:no,22:io,24:so,26:ao,27:lo,28:uo},eo(to,[2,7],{1:[2,1]}),eo(to,[2,3]),{9:16,11:9,20:no,22:io,24:so,26:ao,27:lo,28:uo},eo(to,[2,5]),eo(to,[2,6]),eo(to,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:ho,42:go,43:mo,44:yo,45:So}),{21:[1,26]},{23:[1,27]},{25:[1,28]},eo(to,[2,18]),eo(_o,[2,19]),eo(_o,[2,20]),eo(to,[2,4]),{11:29,27:lo,28:uo},{16:30,17:[1,31],29:32,30:33,34:ko},{11:35,27:lo,28:uo},{40:36,46:[1,37],47:[1,38]},eo(Co,[2,34]),eo(Co,[2,35]),eo(Co,[2,36]),eo(Co,[2,37]),eo(Co,[2,38]),eo(to,[2,15]),eo(to,[2,16]),eo(to,[2,17]),{13:[1,39]},{17:[1,40]},eo(to,[2,10]),{16:41,17:[2,21],29:32,30:33,34:ko},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:ho,42:go,43:mo,44:yo,45:So},eo($o,[2,39]),eo($o,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},eo(to,[2,9]),{17:[2,22]},eo(Ro,[2,23],{32:50,33:51,35:52,37:Oo,38:No}),eo([17,34,37,38],[2,28]),eo(to,[2,14],{15:[1,55]}),eo([27,28],[2,33]),eo(to,[2,8]),eo(to,[2,41]),eo(to,[2,42]),eo(to,[2,43]),eo(Ro,[2,24],{33:56,36:[1,57],38:No}),eo(Ro,[2,25]),eo(Mo,[2,29]),eo(Ro,[2,32]),eo(Mo,[2,31]),{16:58,17:[1,59],29:32,30:33,34:ko},eo(Ro,[2,26]),{35:60,37:Oo},{17:[1,61]},eo(to,[2,13]),eo(Mo,[2,30]),eo(to,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(Do,Uo){if(Uo.recoverable)this.trace(Do);else{var Ho=new Error(Do);throw Ho.hash=Uo,Ho}},parse:function(Do){var Uo=this,Ho=[0],Yo=[],qo=[null],Jo=[],ps=this.table,Qo="",hs=0,gs=0,ys=2,vs=1,ks=Jo.slice.call(arguments,1),Os=Object.create(this.lexer),Ts={yy:{}};for(var Xs in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Xs)&&(Ts.yy[Xs]=this.yy[Xs]);Os.setInput(Do,Ts.yy),Ts.yy.lexer=Os,Ts.yy.parser=this,typeof Os.yylloc>"u"&&(Os.yylloc={});var Ws=Os.yylloc;Jo.push(Ws);var Ps=Os.options&&Os.options.ranges;typeof Ts.yy.parseError=="function"?this.parseError=Ts.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qs(){var Fu;return Fu=Yo.pop()||Os.lex()||vs,typeof Fu!="number"&&(Fu instanceof Array&&(Yo=Fu,Fu=Yo.pop()),Fu=Uo.symbols_[Fu]||Fu),Fu}for(var ga,Fs,Js,Vs,El={},yl,Gl,Qs,du;;){if(Fs=Ho[Ho.length-1],this.defaultActions[Fs]?Js=this.defaultActions[Fs]:((ga===null||typeof ga>"u")&&(ga=qs()),Js=ps[Fs]&&ps[Fs][ga]),typeof Js>"u"||!Js.length||!Js[0]){var Ol="";du=[];for(yl in ps[Fs])this.terminals_[yl]&&yl>ys&&du.push("'"+this.terminals_[yl]+"'");Os.showPosition?Ol="Parse error on line "+(hs+1)+`: +`),lo.style===void 0&&(mo.style=mo.style||"stroke: #333; stroke-width: 1.5px;fill:none"),mo.labelStyle=mo.labelStyle.replace("color:","fill:"))),mo.id=uo,mo.class=ho+" "+go,mo.minlen=lo.length||1,to.setEdge(no.db.lookUpDomId(lo.start),no.db.lookUpDomId(lo.end),mo,io)}},getClasses$6=function(eo,to){return log$1.info("Extracting classes"),to.db.getClasses()},draw$j=async function(eo,to,no,io){log$1.info("Drawing flowchart");const{securityLevel:so,flowchart:ao}=getConfig$2();let lo;so==="sandbox"&&(lo=select("#i"+to));const uo=select(so==="sandbox"?lo.nodes()[0].contentDocument.body:"body"),ho=so==="sandbox"?lo.nodes()[0].contentDocument:document;let go=io.db.getDirection();go===void 0&&(go="TD");const mo=ao.nodeSpacing||50,yo=ao.rankSpacing||50,So=new Graph({multigraph:!0,compound:!0}).setGraph({rankdir:go,nodesep:mo,ranksep:yo,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let _o;const ko=io.db.getSubGraphs();for(let Fo=ko.length-1;Fo>=0;Fo--)_o=ko[Fo],io.db.addVertex(_o.id,_o.title,"group",void 0,_o.classes);const Co=io.db.getVertices();log$1.warn("Get vertices",Co);const $o=io.db.getEdges();let Ro=0;for(Ro=ko.length-1;Ro>=0;Ro--){_o=ko[Ro],selectAll$1("cluster").append("text");for(let Fo=0;Fo<_o.nodes.length;Fo++)log$1.warn("Setting subgraph",_o.nodes[Fo],io.db.lookUpDomId(_o.nodes[Fo]),io.db.lookUpDomId(_o.id)),So.setParent(io.db.lookUpDomId(_o.nodes[Fo]),io.db.lookUpDomId(_o.id))}await addVertices$1(Co,So,to,uo,ho,io),await addEdges$1($o,So,io);const Oo=new render$1;flowChartShapes.addToRender(Oo),Oo.arrows().none=function(Lo,Go,Do,Uo){const Yo=Lo.append("marker").attr("id",Go).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");applyStyle$2(Yo,Do[Uo+"Style"])},Oo.arrows().normal=function(Lo,Go){Lo.append("marker").attr("id",Go).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const No=uo.select(`[id="${to}"]`),Mo=uo.select("#"+to+" g");for(Oo(Mo,So),Mo.selectAll("g.node").attr("title",function(){return io.db.getTooltip(this.id)}),io.db.indexNodes("subGraph"+Ro),Ro=0;Ro{eo.flowchart||(eo.flowchart={}),eo.flowchart.arrowMarkerAbsolute=eo.arrowMarkerAbsolute,flowRenderer.setConf(eo.flowchart),flowDb.clear(),flowDb.setGen("gen-1")}},flowDiagram5540d9b9=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$k},Symbol.toStringTag,{value:"Module"})),diagram$j={parser:parser$1$d,db:flowDb,renderer:flowRendererV2,styles:flowStyles$1,init:eo=>{eo.flowchart||(eo.flowchart={}),eo.flowchart.arrowMarkerAbsolute=eo.arrowMarkerAbsolute,setConfig({flowchart:{arrowMarkerAbsolute:eo.arrowMarkerAbsolute}}),flowRendererV2.setConf(eo.flowchart),flowDb.clear(),flowDb.setGen("gen-2")}},flowDiagramV23b53844e=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$j},Symbol.toStringTag,{value:"Module"})),REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(eo){return typeof eo=="string"&®EX.test(eo)}const byteToHex=[];for(let eo=0;eo<256;++eo)byteToHex.push((eo+256).toString(16).slice(1));function unsafeStringify(eo,to=0){return byteToHex[eo[to+0]]+byteToHex[eo[to+1]]+byteToHex[eo[to+2]]+byteToHex[eo[to+3]]+"-"+byteToHex[eo[to+4]]+byteToHex[eo[to+5]]+"-"+byteToHex[eo[to+6]]+byteToHex[eo[to+7]]+"-"+byteToHex[eo[to+8]]+byteToHex[eo[to+9]]+"-"+byteToHex[eo[to+10]]+byteToHex[eo[to+11]]+byteToHex[eo[to+12]]+byteToHex[eo[to+13]]+byteToHex[eo[to+14]]+byteToHex[eo[to+15]]}function parse$2(eo){if(!validate(eo))throw TypeError("Invalid UUID");let to;const no=new Uint8Array(16);return no[0]=(to=parseInt(eo.slice(0,8),16))>>>24,no[1]=to>>>16&255,no[2]=to>>>8&255,no[3]=to&255,no[4]=(to=parseInt(eo.slice(9,13),16))>>>8,no[5]=to&255,no[6]=(to=parseInt(eo.slice(14,18),16))>>>8,no[7]=to&255,no[8]=(to=parseInt(eo.slice(19,23),16))>>>8,no[9]=to&255,no[10]=(to=parseInt(eo.slice(24,36),16))/1099511627776&255,no[11]=to/4294967296&255,no[12]=to>>>24&255,no[13]=to>>>16&255,no[14]=to>>>8&255,no[15]=to&255,no}function stringToBytes(eo){eo=unescape(encodeURIComponent(eo));const to=[];for(let no=0;no>>32-to}function sha1(eo){const to=[1518500249,1859775393,2400959708,3395469782],no=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof eo=="string"){const lo=unescape(encodeURIComponent(eo));eo=[];for(let uo=0;uo>>0;So=yo,yo=mo,mo=ROTL(go,30)>>>0,go=ho,ho=Co}no[0]=no[0]+ho>>>0,no[1]=no[1]+go>>>0,no[2]=no[2]+mo>>>0,no[3]=no[3]+yo>>>0,no[4]=no[4]+So>>>0}return[no[0]>>24&255,no[0]>>16&255,no[0]>>8&255,no[0]&255,no[1]>>24&255,no[1]>>16&255,no[1]>>8&255,no[1]&255,no[2]>>24&255,no[2]>>16&255,no[2]>>8&255,no[2]&255,no[3]>>24&255,no[3]>>16&255,no[3]>>8&255,no[3]&255,no[4]>>24&255,no[4]>>16&255,no[4]>>8&255,no[4]&255]}const v5=v35("v5",80,sha1),v5$1=v5;var parser$g=function(){var eo=function(Go,Do,Uo,Ho){for(Uo=Uo||{},Ho=Go.length;Ho--;Uo[Go[Ho]]=Do);return Uo},to=[6,8,10,20,22,24,26,27,28],no=[1,10],io=[1,11],so=[1,12],ao=[1,13],lo=[1,14],uo=[1,15],ho=[1,21],go=[1,22],mo=[1,23],yo=[1,24],So=[1,25],_o=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],ko=[1,34],Co=[27,28,46,47],$o=[41,42,43,44,45],Ro=[17,34],Oo=[1,54],No=[1,53],Mo=[17,34,36,38],Bo={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(Do,Uo,Ho,Yo,qo,Jo,ps){var Qo=Jo.length-1;switch(qo){case 1:break;case 2:this.$=[];break;case 3:Jo[Qo-1].push(Jo[Qo]),this.$=Jo[Qo-1];break;case 4:case 5:this.$=Jo[Qo];break;case 6:case 7:this.$=[];break;case 8:Yo.addEntity(Jo[Qo-4]),Yo.addEntity(Jo[Qo-2]),Yo.addRelationship(Jo[Qo-4],Jo[Qo],Jo[Qo-2],Jo[Qo-3]);break;case 9:Yo.addEntity(Jo[Qo-3]),Yo.addAttributes(Jo[Qo-3],Jo[Qo-1]);break;case 10:Yo.addEntity(Jo[Qo-2]);break;case 11:Yo.addEntity(Jo[Qo]);break;case 12:Yo.addEntity(Jo[Qo-6],Jo[Qo-4]),Yo.addAttributes(Jo[Qo-6],Jo[Qo-1]);break;case 13:Yo.addEntity(Jo[Qo-5],Jo[Qo-3]);break;case 14:Yo.addEntity(Jo[Qo-3],Jo[Qo-1]);break;case 15:case 16:this.$=Jo[Qo].trim(),Yo.setAccTitle(this.$);break;case 17:case 18:this.$=Jo[Qo].trim(),Yo.setAccDescription(this.$);break;case 19:case 43:this.$=Jo[Qo];break;case 20:case 41:case 42:this.$=Jo[Qo].replace(/"/g,"");break;case 21:case 29:this.$=[Jo[Qo]];break;case 22:Jo[Qo].push(Jo[Qo-1]),this.$=Jo[Qo];break;case 23:this.$={attributeType:Jo[Qo-1],attributeName:Jo[Qo]};break;case 24:this.$={attributeType:Jo[Qo-2],attributeName:Jo[Qo-1],attributeKeyTypeList:Jo[Qo]};break;case 25:this.$={attributeType:Jo[Qo-2],attributeName:Jo[Qo-1],attributeComment:Jo[Qo]};break;case 26:this.$={attributeType:Jo[Qo-3],attributeName:Jo[Qo-2],attributeKeyTypeList:Jo[Qo-1],attributeComment:Jo[Qo]};break;case 27:case 28:case 31:this.$=Jo[Qo];break;case 30:Jo[Qo-2].push(Jo[Qo]),this.$=Jo[Qo-2];break;case 32:this.$=Jo[Qo].replace(/"/g,"");break;case 33:this.$={cardA:Jo[Qo],relType:Jo[Qo-1],cardB:Jo[Qo-2]};break;case 34:this.$=Yo.Cardinality.ZERO_OR_ONE;break;case 35:this.$=Yo.Cardinality.ZERO_OR_MORE;break;case 36:this.$=Yo.Cardinality.ONE_OR_MORE;break;case 37:this.$=Yo.Cardinality.ONLY_ONE;break;case 38:this.$=Yo.Cardinality.MD_PARENT;break;case 39:this.$=Yo.Identification.NON_IDENTIFYING;break;case 40:this.$=Yo.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},eo(to,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:no,22:io,24:so,26:ao,27:lo,28:uo},eo(to,[2,7],{1:[2,1]}),eo(to,[2,3]),{9:16,11:9,20:no,22:io,24:so,26:ao,27:lo,28:uo},eo(to,[2,5]),eo(to,[2,6]),eo(to,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:ho,42:go,43:mo,44:yo,45:So}),{21:[1,26]},{23:[1,27]},{25:[1,28]},eo(to,[2,18]),eo(_o,[2,19]),eo(_o,[2,20]),eo(to,[2,4]),{11:29,27:lo,28:uo},{16:30,17:[1,31],29:32,30:33,34:ko},{11:35,27:lo,28:uo},{40:36,46:[1,37],47:[1,38]},eo(Co,[2,34]),eo(Co,[2,35]),eo(Co,[2,36]),eo(Co,[2,37]),eo(Co,[2,38]),eo(to,[2,15]),eo(to,[2,16]),eo(to,[2,17]),{13:[1,39]},{17:[1,40]},eo(to,[2,10]),{16:41,17:[2,21],29:32,30:33,34:ko},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:ho,42:go,43:mo,44:yo,45:So},eo($o,[2,39]),eo($o,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},eo(to,[2,9]),{17:[2,22]},eo(Ro,[2,23],{32:50,33:51,35:52,37:Oo,38:No}),eo([17,34,37,38],[2,28]),eo(to,[2,14],{15:[1,55]}),eo([27,28],[2,33]),eo(to,[2,8]),eo(to,[2,41]),eo(to,[2,42]),eo(to,[2,43]),eo(Ro,[2,24],{33:56,36:[1,57],38:No}),eo(Ro,[2,25]),eo(Mo,[2,29]),eo(Ro,[2,32]),eo(Mo,[2,31]),{16:58,17:[1,59],29:32,30:33,34:ko},eo(Ro,[2,26]),{35:60,37:Oo},{17:[1,61]},eo(to,[2,13]),eo(Mo,[2,30]),eo(to,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(Do,Uo){if(Uo.recoverable)this.trace(Do);else{var Ho=new Error(Do);throw Ho.hash=Uo,Ho}},parse:function(Do){var Uo=this,Ho=[0],Yo=[],qo=[null],Jo=[],ps=this.table,Qo="",hs=0,gs=0,ys=2,vs=1,ks=Jo.slice.call(arguments,1),Os=Object.create(this.lexer),Ts={yy:{}};for(var Xs in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Xs)&&(Ts.yy[Xs]=this.yy[Xs]);Os.setInput(Do,Ts.yy),Ts.yy.lexer=Os,Ts.yy.parser=this,typeof Os.yylloc>"u"&&(Os.yylloc={});var Ws=Os.yylloc;Jo.push(Ws);var Ps=Os.options&&Os.options.ranges;typeof Ts.yy.parseError=="function"?this.parseError=Ts.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qs(){var Fu;return Fu=Yo.pop()||Os.lex()||vs,typeof Fu!="number"&&(Fu instanceof Array&&(Yo=Fu,Fu=Yo.pop()),Fu=Uo.symbols_[Fu]||Fu),Fu}for(var ga,Fs,Js,Vs,El={},yl,Gl,Qs,du;;){if(Fs=Ho[Ho.length-1],this.defaultActions[Fs]?Js=this.defaultActions[Fs]:((ga===null||typeof ga>"u")&&(ga=qs()),Js=ps[Fs]&&ps[Fs][ga]),typeof Js>"u"||!Js.length||!Js[0]){var Ol="";du=[];for(yl in ps[Fs])this.terminals_[yl]&&yl>ys&&du.push("'"+this.terminals_[yl]+"'");Os.showPosition?Ol="Parse error on line "+(hs+1)+`: `+Os.showPosition()+` -Expecting `+du.join(", ")+", got '"+(this.terminals_[ga]||ga)+"'":Ol="Parse error on line "+(hs+1)+": Unexpected "+(ga==vs?"end of input":"'"+(this.terminals_[ga]||ga)+"'"),this.parseError(Ol,{text:Os.match,token:this.terminals_[ga]||ga,line:Os.yylineno,loc:Ws,expected:du})}if(Js[0]instanceof Array&&Js.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fs+", token: "+ga);switch(Js[0]){case 1:Ho.push(ga),qo.push(Os.yytext),Jo.push(Os.yylloc),Ho.push(Js[1]),ga=null,gs=Os.yyleng,Qo=Os.yytext,hs=Os.yylineno,Ws=Os.yylloc;break;case 2:if(Gl=this.productions_[Js[1]][1],El.$=qo[qo.length-Gl],El._$={first_line:Jo[Jo.length-(Gl||1)].first_line,last_line:Jo[Jo.length-1].last_line,first_column:Jo[Jo.length-(Gl||1)].first_column,last_column:Jo[Jo.length-1].last_column},Ps&&(El._$.range=[Jo[Jo.length-(Gl||1)].range[0],Jo[Jo.length-1].range[1]]),Vs=this.performAction.apply(El,[Qo,gs,hs,Ts.yy,Js[1],qo,Jo].concat(ks)),typeof Vs<"u")return Vs;Gl&&(Ho=Ho.slice(0,-1*Gl*2),qo=qo.slice(0,-1*Gl),Jo=Jo.slice(0,-1*Gl)),Ho.push(this.productions_[Js[1]][0]),qo.push(El.$),Jo.push(El._$),Qs=ps[Ho[Ho.length-2]][Ho[Ho.length-1]],Ho.push(Qs);break;case 3:return!0}}return!0}},Po=function(){var Go={EOF:1,parseError:function(Uo,Ho){if(this.yy.parser)this.yy.parser.parseError(Uo,Ho);else throw new Error(Uo)},setInput:function(Do,Uo){return this.yy=Uo||this.yy||{},this._input=Do,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Do=this._input[0];this.yytext+=Do,this.yyleng++,this.offset++,this.match+=Do,this.matched+=Do;var Uo=Do.match(/(?:\r\n?|\n).*/g);return Uo?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Do},unput:function(Do){var Uo=Do.length,Ho=Do.split(/(?:\r\n?|\n)/g);this._input=Do+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Uo),this.offset-=Uo;var Yo=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ho.length-1&&(this.yylineno-=Ho.length-1);var qo=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ho?(Ho.length===Yo.length?this.yylloc.first_column:0)+Yo[Yo.length-Ho.length].length-Ho[0].length:this.yylloc.first_column-Uo},this.options.ranges&&(this.yylloc.range=[qo[0],qo[0]+this.yyleng-Uo]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+du.join(", ")+", got '"+(this.terminals_[ga]||ga)+"'":Ol="Parse error on line "+(hs+1)+": Unexpected "+(ga==vs?"end of input":"'"+(this.terminals_[ga]||ga)+"'"),this.parseError(Ol,{text:Os.match,token:this.terminals_[ga]||ga,line:Os.yylineno,loc:Ws,expected:du})}if(Js[0]instanceof Array&&Js.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fs+", token: "+ga);switch(Js[0]){case 1:Ho.push(ga),qo.push(Os.yytext),Jo.push(Os.yylloc),Ho.push(Js[1]),ga=null,gs=Os.yyleng,Qo=Os.yytext,hs=Os.yylineno,Ws=Os.yylloc;break;case 2:if(Gl=this.productions_[Js[1]][1],El.$=qo[qo.length-Gl],El._$={first_line:Jo[Jo.length-(Gl||1)].first_line,last_line:Jo[Jo.length-1].last_line,first_column:Jo[Jo.length-(Gl||1)].first_column,last_column:Jo[Jo.length-1].last_column},Ps&&(El._$.range=[Jo[Jo.length-(Gl||1)].range[0],Jo[Jo.length-1].range[1]]),Vs=this.performAction.apply(El,[Qo,gs,hs,Ts.yy,Js[1],qo,Jo].concat(ks)),typeof Vs<"u")return Vs;Gl&&(Ho=Ho.slice(0,-1*Gl*2),qo=qo.slice(0,-1*Gl),Jo=Jo.slice(0,-1*Gl)),Ho.push(this.productions_[Js[1]][0]),qo.push(El.$),Jo.push(El._$),Qs=ps[Ho[Ho.length-2]][Ho[Ho.length-1]],Ho.push(Qs);break;case 3:return!0}}return!0}},Fo=function(){var Go={EOF:1,parseError:function(Uo,Ho){if(this.yy.parser)this.yy.parser.parseError(Uo,Ho);else throw new Error(Uo)},setInput:function(Do,Uo){return this.yy=Uo||this.yy||{},this._input=Do,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Do=this._input[0];this.yytext+=Do,this.yyleng++,this.offset++,this.match+=Do,this.matched+=Do;var Uo=Do.match(/(?:\r\n?|\n).*/g);return Uo?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Do},unput:function(Do){var Uo=Do.length,Ho=Do.split(/(?:\r\n?|\n)/g);this._input=Do+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Uo),this.offset-=Uo;var Yo=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ho.length-1&&(this.yylineno-=Ho.length-1);var qo=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ho?(Ho.length===Yo.length?this.yylloc.first_column:0)+Yo[Yo.length-Ho.length].length-Ho[0].length:this.yylloc.first_column-Uo},this.options.ranges&&(this.yylloc.range=[qo[0],qo[0]+this.yyleng-Uo]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Do){this.unput(this.match.slice(Do))},pastInput:function(){var Do=this.matched.substr(0,this.matched.length-this.match.length);return(Do.length>20?"...":"")+Do.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Do=this.match;return Do.length<20&&(Do+=this._input.substr(0,20-Do.length)),(Do.substr(0,20)+(Do.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Do=this.pastInput(),Uo=new Array(Do.length+1).join("-");return Do+this.upcomingInput()+` `+Uo+"^"},test_match:function(Do,Uo){var Ho,Yo,qo;if(this.options.backtrack_lexer&&(qo={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(qo.yylloc.range=this.yylloc.range.slice(0))),Yo=Do[0].match(/(?:\r\n?|\n).*/g),Yo&&(this.yylineno+=Yo.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Yo?Yo[Yo.length-1].length-Yo[Yo.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Do[0].length},this.yytext+=Do[0],this.match+=Do[0],this.matches=Do,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Do[0].length),this.matched+=Do[0],Ho=this.performAction.call(this,this.yy,this,Uo,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ho)return Ho;if(this._backtrack){for(var Jo in qo)this[Jo]=qo[Jo];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Do,Uo,Ho,Yo;this._more||(this.yytext="",this.match="");for(var qo=this._currentRules(),Jo=0;JoUo[0].length)){if(Uo=Ho,Yo=Jo,this.options.backtrack_lexer){if(Do=this.test_match(Ho,qo[Jo]),Do!==!1)return Do;if(this._backtrack){Uo=!1;continue}else return!1}else if(!this.options.flex)break}return Uo?(Do=this.test_match(Uo,qo[Yo]),Do!==!1?Do:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Uo=this.next();return Uo||this.lex()},begin:function(Uo){this.conditionStack.push(Uo)},popState:function(){var Uo=this.conditionStack.length-1;return Uo>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Uo){return Uo=this.conditionStack.length-1-Math.abs(Uo||0),Uo>=0?this.conditionStack[Uo]:"INITIAL"},pushState:function(Uo){this.begin(Uo)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Uo,Ho,Yo,qo){switch(Yo){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return Ho.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return Ho.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return Go}();Bo.lexer=Po;function Lo(){this.yy={}}return Lo.prototype=Bo,Bo.Parser=Lo,new Lo}();parser$g.parser=parser$g;const erParser=parser$g;let entities={},relationships=[];const Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},addEntity=function(eo,to=void 0){return entities[eo]===void 0?(entities[eo]={attributes:[],alias:to},log$1.info("Added new entity :",eo)):entities[eo]&&!entities[eo].alias&&to&&(entities[eo].alias=to,log$1.info(`Add alias '${to}' to entity '${eo}'`)),entities[eo]},getEntities=()=>entities,addAttributes=function(eo,to){let no=addEntity(eo),io;for(io=to.length-1;io>=0;io--)no.attributes.push(to[io]),log$1.debug("Added attribute ",to[io].attributeName)},addRelationship$1=function(eo,to,no,io){let so={entityA:eo,roleA:to,entityB:no,relSpec:io};relationships.push(so),log$1.debug("Added new relationship :",so)},getRelationships$1=()=>relationships,clear$f=function(){entities={},relationships=[],clear$k()},erDb={Cardinality,Identification,getConfig:()=>getConfig$2().er,addEntity,addAttributes,getEntities,addRelationship:addRelationship$1,getRelationships:getRelationships$1,clear:clear$f,setAccTitle,getAccTitle,setAccDescription,getAccDescription,setDiagramTitle,getDiagramTitle},ERMarkers={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},insertMarkers$2=function(eo,to){let no;eo.append("defs").append("marker").attr("id",ERMarkers.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id",ERMarkers.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id",ERMarkers.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),eo.append("defs").append("marker").attr("id",ERMarkers.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),no=eo.append("defs").append("marker").attr("id",ERMarkers.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),no.append("circle").attr("stroke",to.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),no.append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M9,0 L9,18"),no=eo.append("defs").append("marker").attr("id",ERMarkers.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),no.append("circle").attr("stroke",to.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),no.append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M21,0 L21,18"),eo.append("defs").append("marker").attr("id",ERMarkers.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),eo.append("defs").append("marker").attr("id",ERMarkers.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),no=eo.append("defs").append("marker").attr("id",ERMarkers.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),no.append("circle").attr("stroke",to.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),no.append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),no=eo.append("defs").append("marker").attr("id",ERMarkers.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),no.append("circle").attr("stroke",to.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),no.append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},erMarkers={ERMarkers,insertMarkers:insertMarkers$2},BAD_ID_CHARS_REGEXP=/[^\dA-Za-z](\W)*/g;let conf$6={},entityNameIds=new Map;const setConf$6=function(eo){const to=Object.keys(eo);for(const no of to)conf$6[no]=eo[no]},drawAttributes=(eo,to,no)=>{const io=conf$6.entityPadding/3,so=conf$6.entityPadding/3,ao=conf$6.fontSize*.85,lo=to.node().getBBox(),uo=[];let ho=!1,go=!1,mo=0,yo=0,So=0,_o=0,ko=lo.height+io*2,Co=1;no.forEach(No=>{No.attributeKeyTypeList!==void 0&&No.attributeKeyTypeList.length>0&&(ho=!0),No.attributeComment!==void 0&&(go=!0)}),no.forEach(No=>{const Mo=`${to.node().id}-attr-${Co}`;let Bo=0;const Po=parseGenericTypes(No.attributeType),Lo=eo.append("text").classed("er entityLabel",!0).attr("id",`${Mo}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",getConfig$2().fontFamily).style("font-size",ao+"px").text(Po),Go=eo.append("text").classed("er entityLabel",!0).attr("id",`${Mo}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",getConfig$2().fontFamily).style("font-size",ao+"px").text(No.attributeName),Do={};Do.tn=Lo,Do.nn=Go;const Uo=Lo.node().getBBox(),Ho=Go.node().getBBox();if(mo=Math.max(mo,Uo.width),yo=Math.max(yo,Ho.width),Bo=Math.max(Uo.height,Ho.height),ho){const Yo=No.attributeKeyTypeList!==void 0?No.attributeKeyTypeList.join(","):"",qo=eo.append("text").classed("er entityLabel",!0).attr("id",`${Mo}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",getConfig$2().fontFamily).style("font-size",ao+"px").text(Yo);Do.kn=qo;const Jo=qo.node().getBBox();So=Math.max(So,Jo.width),Bo=Math.max(Bo,Jo.height)}if(go){const Yo=eo.append("text").classed("er entityLabel",!0).attr("id",`${Mo}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",getConfig$2().fontFamily).style("font-size",ao+"px").text(No.attributeComment||"");Do.cn=Yo;const qo=Yo.node().getBBox();_o=Math.max(_o,qo.width),Bo=Math.max(Bo,qo.height)}Do.height=Bo,uo.push(Do),ko+=Bo+io*2,Co+=1});let $o=4;ho&&($o+=2),go&&($o+=2);const Ro=mo+yo+So+_o,Oo={width:Math.max(conf$6.minEntityWidth,Math.max(lo.width+conf$6.entityPadding*2,Ro+so*$o)),height:no.length>0?ko:Math.max(conf$6.minEntityHeight,lo.height+conf$6.entityPadding*2)};if(no.length>0){const No=Math.max(0,(Oo.width-Ro-so*$o)/($o/2));to.attr("transform","translate("+Oo.width/2+","+(io+lo.height/2)+")");let Mo=lo.height+io*2,Bo="attributeBoxOdd";uo.forEach(Po=>{const Lo=Mo+io+Po.height/2;Po.tn.attr("transform","translate("+so+","+Lo+")");const Go=eo.insert("rect","#"+Po.tn.node().id).classed(`er ${Bo}`,!0).attr("x",0).attr("y",Mo).attr("width",mo+so*2+No).attr("height",Po.height+io*2),Do=parseFloat(Go.attr("x"))+parseFloat(Go.attr("width"));Po.nn.attr("transform","translate("+(Do+so)+","+Lo+")");const Uo=eo.insert("rect","#"+Po.nn.node().id).classed(`er ${Bo}`,!0).attr("x",Do).attr("y",Mo).attr("width",yo+so*2+No).attr("height",Po.height+io*2);let Ho=parseFloat(Uo.attr("x"))+parseFloat(Uo.attr("width"));if(ho){Po.kn.attr("transform","translate("+(Ho+so)+","+Lo+")");const Yo=eo.insert("rect","#"+Po.kn.node().id).classed(`er ${Bo}`,!0).attr("x",Ho).attr("y",Mo).attr("width",So+so*2+No).attr("height",Po.height+io*2);Ho=parseFloat(Yo.attr("x"))+parseFloat(Yo.attr("width"))}go&&(Po.cn.attr("transform","translate("+(Ho+so)+","+Lo+")"),eo.insert("rect","#"+Po.cn.node().id).classed(`er ${Bo}`,"true").attr("x",Ho).attr("y",Mo).attr("width",_o+so*2+No).attr("height",Po.height+io*2)),Mo+=Po.height+io*2,Bo=Bo==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else Oo.height=Math.max(conf$6.minEntityHeight,ko),to.attr("transform","translate("+Oo.width/2+","+Oo.height/2+")");return Oo},drawEntities=function(eo,to,no){const io=Object.keys(to);let so;return io.forEach(function(ao){const lo=generateId$1(ao,"entity");entityNameIds.set(ao,lo);const uo=eo.append("g").attr("id",lo);so=so===void 0?lo:so;const ho="text-"+lo,go=uo.append("text").classed("er entityLabel",!0).attr("id",ho).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",getConfig$2().fontFamily).style("font-size",conf$6.fontSize+"px").text(to[ao].alias??ao),{width:mo,height:yo}=drawAttributes(uo,go,to[ao].attributes),_o=uo.insert("rect","#"+ho).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",mo).attr("height",yo).node().getBBox();no.setNode(lo,{width:_o.width,height:_o.height,shape:"rect",id:lo})}),so},adjustEntities$1=function(eo,to){to.nodes().forEach(function(no){no!==void 0&&to.node(no)!==void 0&&eo.select("#"+no).attr("transform","translate("+(to.node(no).x-to.node(no).width/2)+","+(to.node(no).y-to.node(no).height/2)+" )")})},getEdgeName=function(eo){return(eo.entityA+eo.roleA+eo.entityB).replace(/\s/g,"")},addRelationships$1=function(eo,to){return eo.forEach(function(no){to.setEdge(entityNameIds.get(no.entityA),entityNameIds.get(no.entityB),{relationship:no},getEdgeName(no))}),eo};let relCnt$1=0;const drawRelationshipFromLayout$1=function(eo,to,no,io,so){relCnt$1++;const ao=no.edge(entityNameIds.get(to.entityA),entityNameIds.get(to.entityB),getEdgeName(to)),lo=line$1().x(function(ko){return ko.x}).y(function(ko){return ko.y}).curve(curveBasis),uo=eo.insert("path","#"+io).classed("er relationshipLine",!0).attr("d",lo(ao.points)).style("stroke",conf$6.stroke).style("fill","none");to.relSpec.relType===so.db.Identification.NON_IDENTIFYING&&uo.attr("stroke-dasharray","8,8");let ho="";switch(conf$6.arrowMarkerAbsolute&&(ho=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,ho=ho.replace(/\(/g,"\\("),ho=ho.replace(/\)/g,"\\)")),to.relSpec.cardA){case so.db.Cardinality.ZERO_OR_ONE:uo.attr("marker-end","url("+ho+"#"+erMarkers.ERMarkers.ZERO_OR_ONE_END+")");break;case so.db.Cardinality.ZERO_OR_MORE:uo.attr("marker-end","url("+ho+"#"+erMarkers.ERMarkers.ZERO_OR_MORE_END+")");break;case so.db.Cardinality.ONE_OR_MORE:uo.attr("marker-end","url("+ho+"#"+erMarkers.ERMarkers.ONE_OR_MORE_END+")");break;case so.db.Cardinality.ONLY_ONE:uo.attr("marker-end","url("+ho+"#"+erMarkers.ERMarkers.ONLY_ONE_END+")");break;case so.db.Cardinality.MD_PARENT:uo.attr("marker-end","url("+ho+"#"+erMarkers.ERMarkers.MD_PARENT_END+")");break}switch(to.relSpec.cardB){case so.db.Cardinality.ZERO_OR_ONE:uo.attr("marker-start","url("+ho+"#"+erMarkers.ERMarkers.ZERO_OR_ONE_START+")");break;case so.db.Cardinality.ZERO_OR_MORE:uo.attr("marker-start","url("+ho+"#"+erMarkers.ERMarkers.ZERO_OR_MORE_START+")");break;case so.db.Cardinality.ONE_OR_MORE:uo.attr("marker-start","url("+ho+"#"+erMarkers.ERMarkers.ONE_OR_MORE_START+")");break;case so.db.Cardinality.ONLY_ONE:uo.attr("marker-start","url("+ho+"#"+erMarkers.ERMarkers.ONLY_ONE_START+")");break;case so.db.Cardinality.MD_PARENT:uo.attr("marker-start","url("+ho+"#"+erMarkers.ERMarkers.MD_PARENT_START+")");break}const go=uo.node().getTotalLength(),mo=uo.node().getPointAtLength(go*.5),yo="rel"+relCnt$1,_o=eo.append("text").classed("er relationshipLabel",!0).attr("id",yo).attr("x",mo.x).attr("y",mo.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",getConfig$2().fontFamily).style("font-size",conf$6.fontSize+"px").text(to.roleA).node().getBBox();eo.insert("rect","#"+yo).classed("er relationshipLabelBox",!0).attr("x",mo.x-_o.width/2).attr("y",mo.y-_o.height/2).attr("width",_o.width).attr("height",_o.height)},draw$i=function(eo,to,no,io){conf$6=getConfig$2().er,log$1.info("Drawing ER diagram");const so=getConfig$2().securityLevel;let ao;so==="sandbox"&&(ao=select("#i"+to));const uo=select(so==="sandbox"?ao.nodes()[0].contentDocument.body:"body").select(`[id='${to}']`);erMarkers.insertMarkers(uo,conf$6);let ho;ho=new Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:conf$6.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const go=drawEntities(uo,io.db.getEntities(),ho),mo=addRelationships$1(io.db.getRelationships(),ho);layout$2(ho),adjustEntities$1(uo,ho),mo.forEach(function(Co){drawRelationshipFromLayout$1(uo,Co,ho,go,io)});const yo=conf$6.diagramPadding;utils$1.insertTitle(uo,"entityTitleText",conf$6.titleTopMargin,io.db.getDiagramTitle());const So=uo.node().getBBox(),_o=So.width+yo*2,ko=So.height+yo*2;configureSvgSize(uo,ko,_o,conf$6.useMaxWidth),uo.attr("viewBox",`${So.x-yo} ${So.y-yo} ${_o} ${ko}`)},MERMAID_ERDIAGRAM_UUID="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function generateId$1(eo="",to=""){const no=eo.replace(BAD_ID_CHARS_REGEXP,"");return`${strWithHyphen(to)}${strWithHyphen(no)}${v5$1(eo,MERMAID_ERDIAGRAM_UUID)}`}function strWithHyphen(eo=""){return eo.length>0?`${eo}-`:""}const erRenderer={setConf:setConf$6,draw:draw$i},getStyles$c=eo=>` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Uo=this.next();return Uo||this.lex()},begin:function(Uo){this.conditionStack.push(Uo)},popState:function(){var Uo=this.conditionStack.length-1;return Uo>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Uo){return Uo=this.conditionStack.length-1-Math.abs(Uo||0),Uo>=0?this.conditionStack[Uo]:"INITIAL"},pushState:function(Uo){this.begin(Uo)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Uo,Ho,Yo,qo){switch(Yo){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return Ho.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return Ho.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return Go}();Bo.lexer=Fo;function Lo(){this.yy={}}return Lo.prototype=Bo,Bo.Parser=Lo,new Lo}();parser$g.parser=parser$g;const erParser=parser$g;let entities={},relationships=[];const Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},addEntity=function(eo,to=void 0){return entities[eo]===void 0?(entities[eo]={attributes:[],alias:to},log$1.info("Added new entity :",eo)):entities[eo]&&!entities[eo].alias&&to&&(entities[eo].alias=to,log$1.info(`Add alias '${to}' to entity '${eo}'`)),entities[eo]},getEntities=()=>entities,addAttributes=function(eo,to){let no=addEntity(eo),io;for(io=to.length-1;io>=0;io--)no.attributes.push(to[io]),log$1.debug("Added attribute ",to[io].attributeName)},addRelationship$1=function(eo,to,no,io){let so={entityA:eo,roleA:to,entityB:no,relSpec:io};relationships.push(so),log$1.debug("Added new relationship :",so)},getRelationships$1=()=>relationships,clear$f=function(){entities={},relationships=[],clear$k()},erDb={Cardinality,Identification,getConfig:()=>getConfig$2().er,addEntity,addAttributes,getEntities,addRelationship:addRelationship$1,getRelationships:getRelationships$1,clear:clear$f,setAccTitle,getAccTitle,setAccDescription,getAccDescription,setDiagramTitle,getDiagramTitle},ERMarkers={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},insertMarkers$2=function(eo,to){let no;eo.append("defs").append("marker").attr("id",ERMarkers.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id",ERMarkers.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id",ERMarkers.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),eo.append("defs").append("marker").attr("id",ERMarkers.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),no=eo.append("defs").append("marker").attr("id",ERMarkers.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),no.append("circle").attr("stroke",to.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),no.append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M9,0 L9,18"),no=eo.append("defs").append("marker").attr("id",ERMarkers.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),no.append("circle").attr("stroke",to.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),no.append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M21,0 L21,18"),eo.append("defs").append("marker").attr("id",ERMarkers.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),eo.append("defs").append("marker").attr("id",ERMarkers.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),no=eo.append("defs").append("marker").attr("id",ERMarkers.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),no.append("circle").attr("stroke",to.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),no.append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),no=eo.append("defs").append("marker").attr("id",ERMarkers.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),no.append("circle").attr("stroke",to.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),no.append("path").attr("stroke",to.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},erMarkers={ERMarkers,insertMarkers:insertMarkers$2},BAD_ID_CHARS_REGEXP=/[^\dA-Za-z](\W)*/g;let conf$6={},entityNameIds=new Map;const setConf$6=function(eo){const to=Object.keys(eo);for(const no of to)conf$6[no]=eo[no]},drawAttributes=(eo,to,no)=>{const io=conf$6.entityPadding/3,so=conf$6.entityPadding/3,ao=conf$6.fontSize*.85,lo=to.node().getBBox(),uo=[];let ho=!1,go=!1,mo=0,yo=0,So=0,_o=0,ko=lo.height+io*2,Co=1;no.forEach(No=>{No.attributeKeyTypeList!==void 0&&No.attributeKeyTypeList.length>0&&(ho=!0),No.attributeComment!==void 0&&(go=!0)}),no.forEach(No=>{const Mo=`${to.node().id}-attr-${Co}`;let Bo=0;const Fo=parseGenericTypes(No.attributeType),Lo=eo.append("text").classed("er entityLabel",!0).attr("id",`${Mo}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",getConfig$2().fontFamily).style("font-size",ao+"px").text(Fo),Go=eo.append("text").classed("er entityLabel",!0).attr("id",`${Mo}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",getConfig$2().fontFamily).style("font-size",ao+"px").text(No.attributeName),Do={};Do.tn=Lo,Do.nn=Go;const Uo=Lo.node().getBBox(),Ho=Go.node().getBBox();if(mo=Math.max(mo,Uo.width),yo=Math.max(yo,Ho.width),Bo=Math.max(Uo.height,Ho.height),ho){const Yo=No.attributeKeyTypeList!==void 0?No.attributeKeyTypeList.join(","):"",qo=eo.append("text").classed("er entityLabel",!0).attr("id",`${Mo}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",getConfig$2().fontFamily).style("font-size",ao+"px").text(Yo);Do.kn=qo;const Jo=qo.node().getBBox();So=Math.max(So,Jo.width),Bo=Math.max(Bo,Jo.height)}if(go){const Yo=eo.append("text").classed("er entityLabel",!0).attr("id",`${Mo}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",getConfig$2().fontFamily).style("font-size",ao+"px").text(No.attributeComment||"");Do.cn=Yo;const qo=Yo.node().getBBox();_o=Math.max(_o,qo.width),Bo=Math.max(Bo,qo.height)}Do.height=Bo,uo.push(Do),ko+=Bo+io*2,Co+=1});let $o=4;ho&&($o+=2),go&&($o+=2);const Ro=mo+yo+So+_o,Oo={width:Math.max(conf$6.minEntityWidth,Math.max(lo.width+conf$6.entityPadding*2,Ro+so*$o)),height:no.length>0?ko:Math.max(conf$6.minEntityHeight,lo.height+conf$6.entityPadding*2)};if(no.length>0){const No=Math.max(0,(Oo.width-Ro-so*$o)/($o/2));to.attr("transform","translate("+Oo.width/2+","+(io+lo.height/2)+")");let Mo=lo.height+io*2,Bo="attributeBoxOdd";uo.forEach(Fo=>{const Lo=Mo+io+Fo.height/2;Fo.tn.attr("transform","translate("+so+","+Lo+")");const Go=eo.insert("rect","#"+Fo.tn.node().id).classed(`er ${Bo}`,!0).attr("x",0).attr("y",Mo).attr("width",mo+so*2+No).attr("height",Fo.height+io*2),Do=parseFloat(Go.attr("x"))+parseFloat(Go.attr("width"));Fo.nn.attr("transform","translate("+(Do+so)+","+Lo+")");const Uo=eo.insert("rect","#"+Fo.nn.node().id).classed(`er ${Bo}`,!0).attr("x",Do).attr("y",Mo).attr("width",yo+so*2+No).attr("height",Fo.height+io*2);let Ho=parseFloat(Uo.attr("x"))+parseFloat(Uo.attr("width"));if(ho){Fo.kn.attr("transform","translate("+(Ho+so)+","+Lo+")");const Yo=eo.insert("rect","#"+Fo.kn.node().id).classed(`er ${Bo}`,!0).attr("x",Ho).attr("y",Mo).attr("width",So+so*2+No).attr("height",Fo.height+io*2);Ho=parseFloat(Yo.attr("x"))+parseFloat(Yo.attr("width"))}go&&(Fo.cn.attr("transform","translate("+(Ho+so)+","+Lo+")"),eo.insert("rect","#"+Fo.cn.node().id).classed(`er ${Bo}`,"true").attr("x",Ho).attr("y",Mo).attr("width",_o+so*2+No).attr("height",Fo.height+io*2)),Mo+=Fo.height+io*2,Bo=Bo==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else Oo.height=Math.max(conf$6.minEntityHeight,ko),to.attr("transform","translate("+Oo.width/2+","+Oo.height/2+")");return Oo},drawEntities=function(eo,to,no){const io=Object.keys(to);let so;return io.forEach(function(ao){const lo=generateId$1(ao,"entity");entityNameIds.set(ao,lo);const uo=eo.append("g").attr("id",lo);so=so===void 0?lo:so;const ho="text-"+lo,go=uo.append("text").classed("er entityLabel",!0).attr("id",ho).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",getConfig$2().fontFamily).style("font-size",conf$6.fontSize+"px").text(to[ao].alias??ao),{width:mo,height:yo}=drawAttributes(uo,go,to[ao].attributes),_o=uo.insert("rect","#"+ho).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",mo).attr("height",yo).node().getBBox();no.setNode(lo,{width:_o.width,height:_o.height,shape:"rect",id:lo})}),so},adjustEntities$1=function(eo,to){to.nodes().forEach(function(no){no!==void 0&&to.node(no)!==void 0&&eo.select("#"+no).attr("transform","translate("+(to.node(no).x-to.node(no).width/2)+","+(to.node(no).y-to.node(no).height/2)+" )")})},getEdgeName=function(eo){return(eo.entityA+eo.roleA+eo.entityB).replace(/\s/g,"")},addRelationships$1=function(eo,to){return eo.forEach(function(no){to.setEdge(entityNameIds.get(no.entityA),entityNameIds.get(no.entityB),{relationship:no},getEdgeName(no))}),eo};let relCnt$1=0;const drawRelationshipFromLayout$1=function(eo,to,no,io,so){relCnt$1++;const ao=no.edge(entityNameIds.get(to.entityA),entityNameIds.get(to.entityB),getEdgeName(to)),lo=line$1().x(function(ko){return ko.x}).y(function(ko){return ko.y}).curve(curveBasis),uo=eo.insert("path","#"+io).classed("er relationshipLine",!0).attr("d",lo(ao.points)).style("stroke",conf$6.stroke).style("fill","none");to.relSpec.relType===so.db.Identification.NON_IDENTIFYING&&uo.attr("stroke-dasharray","8,8");let ho="";switch(conf$6.arrowMarkerAbsolute&&(ho=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,ho=ho.replace(/\(/g,"\\("),ho=ho.replace(/\)/g,"\\)")),to.relSpec.cardA){case so.db.Cardinality.ZERO_OR_ONE:uo.attr("marker-end","url("+ho+"#"+erMarkers.ERMarkers.ZERO_OR_ONE_END+")");break;case so.db.Cardinality.ZERO_OR_MORE:uo.attr("marker-end","url("+ho+"#"+erMarkers.ERMarkers.ZERO_OR_MORE_END+")");break;case so.db.Cardinality.ONE_OR_MORE:uo.attr("marker-end","url("+ho+"#"+erMarkers.ERMarkers.ONE_OR_MORE_END+")");break;case so.db.Cardinality.ONLY_ONE:uo.attr("marker-end","url("+ho+"#"+erMarkers.ERMarkers.ONLY_ONE_END+")");break;case so.db.Cardinality.MD_PARENT:uo.attr("marker-end","url("+ho+"#"+erMarkers.ERMarkers.MD_PARENT_END+")");break}switch(to.relSpec.cardB){case so.db.Cardinality.ZERO_OR_ONE:uo.attr("marker-start","url("+ho+"#"+erMarkers.ERMarkers.ZERO_OR_ONE_START+")");break;case so.db.Cardinality.ZERO_OR_MORE:uo.attr("marker-start","url("+ho+"#"+erMarkers.ERMarkers.ZERO_OR_MORE_START+")");break;case so.db.Cardinality.ONE_OR_MORE:uo.attr("marker-start","url("+ho+"#"+erMarkers.ERMarkers.ONE_OR_MORE_START+")");break;case so.db.Cardinality.ONLY_ONE:uo.attr("marker-start","url("+ho+"#"+erMarkers.ERMarkers.ONLY_ONE_START+")");break;case so.db.Cardinality.MD_PARENT:uo.attr("marker-start","url("+ho+"#"+erMarkers.ERMarkers.MD_PARENT_START+")");break}const go=uo.node().getTotalLength(),mo=uo.node().getPointAtLength(go*.5),yo="rel"+relCnt$1,_o=eo.append("text").classed("er relationshipLabel",!0).attr("id",yo).attr("x",mo.x).attr("y",mo.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",getConfig$2().fontFamily).style("font-size",conf$6.fontSize+"px").text(to.roleA).node().getBBox();eo.insert("rect","#"+yo).classed("er relationshipLabelBox",!0).attr("x",mo.x-_o.width/2).attr("y",mo.y-_o.height/2).attr("width",_o.width).attr("height",_o.height)},draw$i=function(eo,to,no,io){conf$6=getConfig$2().er,log$1.info("Drawing ER diagram");const so=getConfig$2().securityLevel;let ao;so==="sandbox"&&(ao=select("#i"+to));const uo=select(so==="sandbox"?ao.nodes()[0].contentDocument.body:"body").select(`[id='${to}']`);erMarkers.insertMarkers(uo,conf$6);let ho;ho=new Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:conf$6.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const go=drawEntities(uo,io.db.getEntities(),ho),mo=addRelationships$1(io.db.getRelationships(),ho);layout$2(ho),adjustEntities$1(uo,ho),mo.forEach(function(Co){drawRelationshipFromLayout$1(uo,Co,ho,go,io)});const yo=conf$6.diagramPadding;utils$1.insertTitle(uo,"entityTitleText",conf$6.titleTopMargin,io.db.getDiagramTitle());const So=uo.node().getBBox(),_o=So.width+yo*2,ko=So.height+yo*2;configureSvgSize(uo,ko,_o,conf$6.useMaxWidth),uo.attr("viewBox",`${So.x-yo} ${So.y-yo} ${_o} ${ko}`)},MERMAID_ERDIAGRAM_UUID="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function generateId$1(eo="",to=""){const no=eo.replace(BAD_ID_CHARS_REGEXP,"");return`${strWithHyphen(to)}${strWithHyphen(no)}${v5$1(eo,MERMAID_ERDIAGRAM_UUID)}`}function strWithHyphen(eo=""){return eo.length>0?`${eo}-`:""}const erRenderer={setConf:setConf$6,draw:draw$i},getStyles$c=eo=>` .entityBox { fill: ${eo.mainBkg}; stroke: ${eo.nodeBorder}; @@ -2477,23 +2477,23 @@ Expecting `+du.join(", ")+", got '"+(this.terminals_[ga]||ga)+"'":Ol="Parse erro stroke-width: 1; } -`,erStyles=getStyles$c,diagram$i={parser:erParser,db:erDb,renderer:erRenderer,styles:erStyles},erDiagram47591fe2=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$i},Symbol.toStringTag,{value:"Module"}));var parser$f=function(){var eo=function(Bo,Po,Lo,Go){for(Lo=Lo||{},Go=Bo.length;Go--;Lo[Bo[Go]]=Po);return Lo},to=[1,3],no=[1,6],io=[1,4],so=[1,5],ao=[2,5],lo=[1,12],uo=[5,7,13,19,21,23,24,26,28,31,37,40,47],ho=[7,13,19,21,23,24,26,28,31,37,40],go=[7,12,13,19,21,23,24,26,28,31,37,40],mo=[7,13,47],yo=[1,42],So=[1,41],_o=[7,13,29,32,35,38,47],ko=[1,55],Co=[1,56],$o=[1,57],Ro=[7,13,32,35,42,47],Oo={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(Po,Lo,Go,Do,Uo,Ho,Yo){var qo=Ho.length-1;switch(Uo){case 2:return Ho[qo];case 3:return Ho[qo-1];case 4:return Do.setDirection(Ho[qo-3]),Ho[qo-1];case 6:Do.setOptions(Ho[qo-1]),this.$=Ho[qo];break;case 7:Ho[qo-1]+=Ho[qo],this.$=Ho[qo-1];break;case 9:this.$=[];break;case 10:Ho[qo-1].push(Ho[qo]),this.$=Ho[qo-1];break;case 11:this.$=Ho[qo-1];break;case 16:this.$=Ho[qo].trim(),Do.setAccTitle(this.$);break;case 17:case 18:this.$=Ho[qo].trim(),Do.setAccDescription(this.$);break;case 19:Do.addSection(Ho[qo].substr(8)),this.$=Ho[qo].substr(8);break;case 21:Do.checkout(Ho[qo]);break;case 22:Do.branch(Ho[qo]);break;case 23:Do.branch(Ho[qo-2],Ho[qo]);break;case 24:Do.cherryPick(Ho[qo],"",void 0);break;case 25:Do.cherryPick(Ho[qo-2],"",void 0,Ho[qo]);break;case 26:Do.cherryPick(Ho[qo-2],"",Ho[qo]);break;case 27:Do.cherryPick(Ho[qo-4],"",Ho[qo],Ho[qo-2]);break;case 28:Do.cherryPick(Ho[qo-4],"",Ho[qo-2],Ho[qo]);break;case 29:Do.cherryPick(Ho[qo],"",Ho[qo-2]);break;case 30:Do.cherryPick(Ho[qo],"","");break;case 31:Do.cherryPick(Ho[qo-2],"","");break;case 32:Do.cherryPick(Ho[qo-4],"","",Ho[qo-2]);break;case 33:Do.cherryPick(Ho[qo-4],"","",Ho[qo]);break;case 34:Do.cherryPick(Ho[qo-2],"",Ho[qo-4],Ho[qo]);break;case 35:Do.cherryPick(Ho[qo-2],"","",Ho[qo]);break;case 36:Do.merge(Ho[qo],"","","");break;case 37:Do.merge(Ho[qo-2],Ho[qo],"","");break;case 38:Do.merge(Ho[qo-2],"",Ho[qo],"");break;case 39:Do.merge(Ho[qo-2],"","",Ho[qo]);break;case 40:Do.merge(Ho[qo-4],Ho[qo],"",Ho[qo-2]);break;case 41:Do.merge(Ho[qo-4],"",Ho[qo],Ho[qo-2]);break;case 42:Do.merge(Ho[qo-4],"",Ho[qo-2],Ho[qo]);break;case 43:Do.merge(Ho[qo-4],Ho[qo-2],Ho[qo],"");break;case 44:Do.merge(Ho[qo-4],Ho[qo-2],"",Ho[qo]);break;case 45:Do.merge(Ho[qo-4],Ho[qo],Ho[qo-2],"");break;case 46:Do.merge(Ho[qo-6],Ho[qo-4],Ho[qo-2],Ho[qo]);break;case 47:Do.merge(Ho[qo-6],Ho[qo],Ho[qo-4],Ho[qo-2]);break;case 48:Do.merge(Ho[qo-6],Ho[qo-4],Ho[qo],Ho[qo-2]);break;case 49:Do.merge(Ho[qo-6],Ho[qo-2],Ho[qo-4],Ho[qo]);break;case 50:Do.merge(Ho[qo-6],Ho[qo],Ho[qo-2],Ho[qo-4]);break;case 51:Do.merge(Ho[qo-6],Ho[qo-2],Ho[qo],Ho[qo-4]);break;case 52:Do.commit(Ho[qo]);break;case 53:Do.commit("","",Do.commitType.NORMAL,Ho[qo]);break;case 54:Do.commit("","",Ho[qo],"");break;case 55:Do.commit("","",Ho[qo],Ho[qo-2]);break;case 56:Do.commit("","",Ho[qo-2],Ho[qo]);break;case 57:Do.commit("",Ho[qo],Do.commitType.NORMAL,"");break;case 58:Do.commit("",Ho[qo-2],Do.commitType.NORMAL,Ho[qo]);break;case 59:Do.commit("",Ho[qo],Do.commitType.NORMAL,Ho[qo-2]);break;case 60:Do.commit("",Ho[qo-2],Ho[qo],"");break;case 61:Do.commit("",Ho[qo],Ho[qo-2],"");break;case 62:Do.commit("",Ho[qo-4],Ho[qo-2],Ho[qo]);break;case 63:Do.commit("",Ho[qo-4],Ho[qo],Ho[qo-2]);break;case 64:Do.commit("",Ho[qo-2],Ho[qo-4],Ho[qo]);break;case 65:Do.commit("",Ho[qo],Ho[qo-4],Ho[qo-2]);break;case 66:Do.commit("",Ho[qo],Ho[qo-2],Ho[qo-4]);break;case 67:Do.commit("",Ho[qo-2],Ho[qo],Ho[qo-4]);break;case 68:Do.commit(Ho[qo],"",Do.commitType.NORMAL,"");break;case 69:Do.commit(Ho[qo],"",Do.commitType.NORMAL,Ho[qo-2]);break;case 70:Do.commit(Ho[qo-2],"",Do.commitType.NORMAL,Ho[qo]);break;case 71:Do.commit(Ho[qo-2],"",Ho[qo],"");break;case 72:Do.commit(Ho[qo],"",Ho[qo-2],"");break;case 73:Do.commit(Ho[qo],Ho[qo-2],Do.commitType.NORMAL,"");break;case 74:Do.commit(Ho[qo-2],Ho[qo],Do.commitType.NORMAL,"");break;case 75:Do.commit(Ho[qo-4],"",Ho[qo-2],Ho[qo]);break;case 76:Do.commit(Ho[qo-4],"",Ho[qo],Ho[qo-2]);break;case 77:Do.commit(Ho[qo-2],"",Ho[qo-4],Ho[qo]);break;case 78:Do.commit(Ho[qo],"",Ho[qo-4],Ho[qo-2]);break;case 79:Do.commit(Ho[qo],"",Ho[qo-2],Ho[qo-4]);break;case 80:Do.commit(Ho[qo-2],"",Ho[qo],Ho[qo-4]);break;case 81:Do.commit(Ho[qo-4],Ho[qo],Ho[qo-2],"");break;case 82:Do.commit(Ho[qo-4],Ho[qo-2],Ho[qo],"");break;case 83:Do.commit(Ho[qo-2],Ho[qo],Ho[qo-4],"");break;case 84:Do.commit(Ho[qo],Ho[qo-2],Ho[qo-4],"");break;case 85:Do.commit(Ho[qo],Ho[qo-4],Ho[qo-2],"");break;case 86:Do.commit(Ho[qo-2],Ho[qo-4],Ho[qo],"");break;case 87:Do.commit(Ho[qo-4],Ho[qo],Do.commitType.NORMAL,Ho[qo-2]);break;case 88:Do.commit(Ho[qo-4],Ho[qo-2],Do.commitType.NORMAL,Ho[qo]);break;case 89:Do.commit(Ho[qo-2],Ho[qo],Do.commitType.NORMAL,Ho[qo-4]);break;case 90:Do.commit(Ho[qo],Ho[qo-2],Do.commitType.NORMAL,Ho[qo-4]);break;case 91:Do.commit(Ho[qo],Ho[qo-4],Do.commitType.NORMAL,Ho[qo-2]);break;case 92:Do.commit(Ho[qo-2],Ho[qo-4],Do.commitType.NORMAL,Ho[qo]);break;case 93:Do.commit(Ho[qo-6],Ho[qo-4],Ho[qo-2],Ho[qo]);break;case 94:Do.commit(Ho[qo-6],Ho[qo-4],Ho[qo],Ho[qo-2]);break;case 95:Do.commit(Ho[qo-6],Ho[qo-2],Ho[qo-4],Ho[qo]);break;case 96:Do.commit(Ho[qo-6],Ho[qo],Ho[qo-4],Ho[qo-2]);break;case 97:Do.commit(Ho[qo-6],Ho[qo-2],Ho[qo],Ho[qo-4]);break;case 98:Do.commit(Ho[qo-6],Ho[qo],Ho[qo-2],Ho[qo-4]);break;case 99:Do.commit(Ho[qo-4],Ho[qo-6],Ho[qo-2],Ho[qo]);break;case 100:Do.commit(Ho[qo-4],Ho[qo-6],Ho[qo],Ho[qo-2]);break;case 101:Do.commit(Ho[qo-2],Ho[qo-6],Ho[qo-4],Ho[qo]);break;case 102:Do.commit(Ho[qo],Ho[qo-6],Ho[qo-4],Ho[qo-2]);break;case 103:Do.commit(Ho[qo-2],Ho[qo-6],Ho[qo],Ho[qo-4]);break;case 104:Do.commit(Ho[qo],Ho[qo-6],Ho[qo-2],Ho[qo-4]);break;case 105:Do.commit(Ho[qo],Ho[qo-4],Ho[qo-2],Ho[qo-6]);break;case 106:Do.commit(Ho[qo-2],Ho[qo-4],Ho[qo],Ho[qo-6]);break;case 107:Do.commit(Ho[qo],Ho[qo-2],Ho[qo-4],Ho[qo-6]);break;case 108:Do.commit(Ho[qo-2],Ho[qo],Ho[qo-4],Ho[qo-6]);break;case 109:Do.commit(Ho[qo-4],Ho[qo-2],Ho[qo],Ho[qo-6]);break;case 110:Do.commit(Ho[qo-4],Ho[qo],Ho[qo-2],Ho[qo-6]);break;case 111:Do.commit(Ho[qo-2],Ho[qo-4],Ho[qo-6],Ho[qo]);break;case 112:Do.commit(Ho[qo],Ho[qo-4],Ho[qo-6],Ho[qo-2]);break;case 113:Do.commit(Ho[qo-2],Ho[qo],Ho[qo-6],Ho[qo-4]);break;case 114:Do.commit(Ho[qo],Ho[qo-2],Ho[qo-6],Ho[qo-4]);break;case 115:Do.commit(Ho[qo-4],Ho[qo-2],Ho[qo-6],Ho[qo]);break;case 116:Do.commit(Ho[qo-4],Ho[qo],Ho[qo-6],Ho[qo-2]);break;case 117:this.$="";break;case 118:this.$=Ho[qo];break;case 119:this.$=Do.commitType.NORMAL;break;case 120:this.$=Do.commitType.REVERSE;break;case 121:this.$=Do.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:to,7:no,13:io,47:so},{1:[3]},{3:7,4:2,5:to,7:no,13:io,47:so},{6:8,7:ao,8:[1,9],9:[1,10],10:11,13:lo},eo(uo,[2,124]),eo(uo,[2,125]),eo(uo,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:ao,10:11,13:lo},{8:[1,15]},eo(ho,[2,9],{11:16,12:[1,17]}),eo(go,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:ao,10:11,13:lo},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},eo(go,[2,7]),{1:[2,3]},{7:[1,36]},eo(ho,[2,10]),{4:37,7:no,13:io,47:so},eo(ho,[2,12]),eo(mo,[2,13]),eo(mo,[2,14]),eo(mo,[2,15]),{20:[1,38]},{22:[1,39]},eo(mo,[2,18]),eo(mo,[2,19]),eo(mo,[2,20]),{27:40,33:yo,46:So},eo(mo,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:yo,46:So},{32:[1,50],35:[1,51]},{27:52,33:yo,46:So},{1:[2,4]},eo(ho,[2,11]),eo(mo,[2,16]),eo(mo,[2,17]),eo(mo,[2,21]),eo(_o,[2,122]),eo(_o,[2,123]),eo(mo,[2,52]),{33:[1,53]},{39:54,43:ko,44:Co,45:$o},{33:[1,58]},{33:[1,59]},eo(mo,[2,118]),eo(mo,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},eo(mo,[2,22],{29:[1,66]}),eo(mo,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),eo(mo,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),eo(Ro,[2,119]),eo(Ro,[2,120]),eo(Ro,[2,121]),eo(mo,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),eo(mo,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:ko,44:Co,45:$o},{33:[1,81]},eo(mo,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:ko,44:Co,45:$o},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:ko,44:Co,45:$o},{33:[1,95]},{33:[1,96]},{39:97,43:ko,44:Co,45:$o},{33:[1,98]},eo(mo,[2,37],{35:[1,100],38:[1,99]}),eo(mo,[2,38],{32:[1,102],35:[1,101]}),eo(mo,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},eo(mo,[2,23]),eo(mo,[2,55],{32:[1,110],42:[1,111]}),eo(mo,[2,59],{38:[1,112],42:[1,113]}),eo(mo,[2,69],{32:[1,115],38:[1,114]}),eo(mo,[2,56],{32:[1,116],42:[1,117]}),eo(mo,[2,61],{35:[1,118],42:[1,119]}),eo(mo,[2,72],{32:[1,121],35:[1,120]}),eo(mo,[2,58],{38:[1,122],42:[1,123]}),eo(mo,[2,60],{35:[1,124],42:[1,125]}),eo(mo,[2,73],{35:[1,127],38:[1,126]}),eo(mo,[2,70],{32:[1,129],38:[1,128]}),eo(mo,[2,71],{32:[1,131],35:[1,130]}),eo(mo,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:ko,44:Co,45:$o},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:ko,44:Co,45:$o},eo(mo,[2,25],{35:[1,140]}),eo(mo,[2,26],{34:[1,141]}),eo(mo,[2,31],{34:[1,142]}),eo(mo,[2,29],{34:[1,143]}),eo(mo,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:ko,44:Co,45:$o},{33:[1,148]},{39:149,43:ko,44:Co,45:$o},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:ko,44:Co,45:$o},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:ko,44:Co,45:$o},{33:[1,162]},{39:163,43:ko,44:Co,45:$o},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:ko,44:Co,45:$o},{33:[1,168]},eo(mo,[2,43],{35:[1,169]}),eo(mo,[2,44],{38:[1,170]}),eo(mo,[2,42],{32:[1,171]}),eo(mo,[2,45],{35:[1,172]}),eo(mo,[2,40],{38:[1,173]}),eo(mo,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},eo(mo,[2,66],{42:[1,181]}),eo(mo,[2,79],{32:[1,182]}),eo(mo,[2,67],{42:[1,183]}),eo(mo,[2,90],{38:[1,184]}),eo(mo,[2,80],{32:[1,185]}),eo(mo,[2,89],{38:[1,186]}),eo(mo,[2,65],{42:[1,187]}),eo(mo,[2,78],{32:[1,188]}),eo(mo,[2,64],{42:[1,189]}),eo(mo,[2,84],{35:[1,190]}),eo(mo,[2,77],{32:[1,191]}),eo(mo,[2,83],{35:[1,192]}),eo(mo,[2,63],{42:[1,193]}),eo(mo,[2,91],{38:[1,194]}),eo(mo,[2,62],{42:[1,195]}),eo(mo,[2,85],{35:[1,196]}),eo(mo,[2,86],{35:[1,197]}),eo(mo,[2,92],{38:[1,198]}),eo(mo,[2,76],{32:[1,199]}),eo(mo,[2,87],{38:[1,200]}),eo(mo,[2,75],{32:[1,201]}),eo(mo,[2,81],{35:[1,202]}),eo(mo,[2,82],{35:[1,203]}),eo(mo,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:ko,44:Co,45:$o},{33:[1,207]},{33:[1,208]},{39:209,43:ko,44:Co,45:$o},{33:[1,210]},eo(mo,[2,27]),eo(mo,[2,32]),eo(mo,[2,28]),eo(mo,[2,33]),eo(mo,[2,34]),eo(mo,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:ko,44:Co,45:$o},{33:[1,215]},{39:216,43:ko,44:Co,45:$o},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:ko,44:Co,45:$o},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:ko,44:Co,45:$o},{33:[1,229]},{39:230,43:ko,44:Co,45:$o},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:ko,44:Co,45:$o},eo(mo,[2,46]),eo(mo,[2,48]),eo(mo,[2,47]),eo(mo,[2,49]),eo(mo,[2,51]),eo(mo,[2,50]),eo(mo,[2,107]),eo(mo,[2,108]),eo(mo,[2,105]),eo(mo,[2,106]),eo(mo,[2,110]),eo(mo,[2,109]),eo(mo,[2,114]),eo(mo,[2,113]),eo(mo,[2,112]),eo(mo,[2,111]),eo(mo,[2,116]),eo(mo,[2,115]),eo(mo,[2,104]),eo(mo,[2,103]),eo(mo,[2,102]),eo(mo,[2,101]),eo(mo,[2,99]),eo(mo,[2,100]),eo(mo,[2,98]),eo(mo,[2,97]),eo(mo,[2,96]),eo(mo,[2,95]),eo(mo,[2,93]),eo(mo,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(Po,Lo){if(Lo.recoverable)this.trace(Po);else{var Go=new Error(Po);throw Go.hash=Lo,Go}},parse:function(Po){var Lo=this,Go=[0],Do=[],Uo=[null],Ho=[],Yo=this.table,qo="",Jo=0,ps=0,Qo=2,hs=1,gs=Ho.slice.call(arguments,1),ys=Object.create(this.lexer),vs={yy:{}};for(var ks in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ks)&&(vs.yy[ks]=this.yy[ks]);ys.setInput(Po,vs.yy),vs.yy.lexer=ys,vs.yy.parser=this,typeof ys.yylloc>"u"&&(ys.yylloc={});var Os=ys.yylloc;Ho.push(Os);var Ts=ys.options&&ys.options.ranges;typeof vs.yy.parseError=="function"?this.parseError=vs.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xs(){var Qs;return Qs=Do.pop()||ys.lex()||hs,typeof Qs!="number"&&(Qs instanceof Array&&(Do=Qs,Qs=Do.pop()),Qs=Lo.symbols_[Qs]||Qs),Qs}for(var Ws,Ps,qs,ga,Fs={},Js,Vs,El,yl;;){if(Ps=Go[Go.length-1],this.defaultActions[Ps]?qs=this.defaultActions[Ps]:((Ws===null||typeof Ws>"u")&&(Ws=Xs()),qs=Yo[Ps]&&Yo[Ps][Ws]),typeof qs>"u"||!qs.length||!qs[0]){var Gl="";yl=[];for(Js in Yo[Ps])this.terminals_[Js]&&Js>Qo&&yl.push("'"+this.terminals_[Js]+"'");ys.showPosition?Gl="Parse error on line "+(Jo+1)+`: +`,erStyles=getStyles$c,diagram$i={parser:erParser,db:erDb,renderer:erRenderer,styles:erStyles},erDiagram47591fe2=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$i},Symbol.toStringTag,{value:"Module"}));var parser$f=function(){var eo=function(Bo,Fo,Lo,Go){for(Lo=Lo||{},Go=Bo.length;Go--;Lo[Bo[Go]]=Fo);return Lo},to=[1,3],no=[1,6],io=[1,4],so=[1,5],ao=[2,5],lo=[1,12],uo=[5,7,13,19,21,23,24,26,28,31,37,40,47],ho=[7,13,19,21,23,24,26,28,31,37,40],go=[7,12,13,19,21,23,24,26,28,31,37,40],mo=[7,13,47],yo=[1,42],So=[1,41],_o=[7,13,29,32,35,38,47],ko=[1,55],Co=[1,56],$o=[1,57],Ro=[7,13,32,35,42,47],Oo={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(Fo,Lo,Go,Do,Uo,Ho,Yo){var qo=Ho.length-1;switch(Uo){case 2:return Ho[qo];case 3:return Ho[qo-1];case 4:return Do.setDirection(Ho[qo-3]),Ho[qo-1];case 6:Do.setOptions(Ho[qo-1]),this.$=Ho[qo];break;case 7:Ho[qo-1]+=Ho[qo],this.$=Ho[qo-1];break;case 9:this.$=[];break;case 10:Ho[qo-1].push(Ho[qo]),this.$=Ho[qo-1];break;case 11:this.$=Ho[qo-1];break;case 16:this.$=Ho[qo].trim(),Do.setAccTitle(this.$);break;case 17:case 18:this.$=Ho[qo].trim(),Do.setAccDescription(this.$);break;case 19:Do.addSection(Ho[qo].substr(8)),this.$=Ho[qo].substr(8);break;case 21:Do.checkout(Ho[qo]);break;case 22:Do.branch(Ho[qo]);break;case 23:Do.branch(Ho[qo-2],Ho[qo]);break;case 24:Do.cherryPick(Ho[qo],"",void 0);break;case 25:Do.cherryPick(Ho[qo-2],"",void 0,Ho[qo]);break;case 26:Do.cherryPick(Ho[qo-2],"",Ho[qo]);break;case 27:Do.cherryPick(Ho[qo-4],"",Ho[qo],Ho[qo-2]);break;case 28:Do.cherryPick(Ho[qo-4],"",Ho[qo-2],Ho[qo]);break;case 29:Do.cherryPick(Ho[qo],"",Ho[qo-2]);break;case 30:Do.cherryPick(Ho[qo],"","");break;case 31:Do.cherryPick(Ho[qo-2],"","");break;case 32:Do.cherryPick(Ho[qo-4],"","",Ho[qo-2]);break;case 33:Do.cherryPick(Ho[qo-4],"","",Ho[qo]);break;case 34:Do.cherryPick(Ho[qo-2],"",Ho[qo-4],Ho[qo]);break;case 35:Do.cherryPick(Ho[qo-2],"","",Ho[qo]);break;case 36:Do.merge(Ho[qo],"","","");break;case 37:Do.merge(Ho[qo-2],Ho[qo],"","");break;case 38:Do.merge(Ho[qo-2],"",Ho[qo],"");break;case 39:Do.merge(Ho[qo-2],"","",Ho[qo]);break;case 40:Do.merge(Ho[qo-4],Ho[qo],"",Ho[qo-2]);break;case 41:Do.merge(Ho[qo-4],"",Ho[qo],Ho[qo-2]);break;case 42:Do.merge(Ho[qo-4],"",Ho[qo-2],Ho[qo]);break;case 43:Do.merge(Ho[qo-4],Ho[qo-2],Ho[qo],"");break;case 44:Do.merge(Ho[qo-4],Ho[qo-2],"",Ho[qo]);break;case 45:Do.merge(Ho[qo-4],Ho[qo],Ho[qo-2],"");break;case 46:Do.merge(Ho[qo-6],Ho[qo-4],Ho[qo-2],Ho[qo]);break;case 47:Do.merge(Ho[qo-6],Ho[qo],Ho[qo-4],Ho[qo-2]);break;case 48:Do.merge(Ho[qo-6],Ho[qo-4],Ho[qo],Ho[qo-2]);break;case 49:Do.merge(Ho[qo-6],Ho[qo-2],Ho[qo-4],Ho[qo]);break;case 50:Do.merge(Ho[qo-6],Ho[qo],Ho[qo-2],Ho[qo-4]);break;case 51:Do.merge(Ho[qo-6],Ho[qo-2],Ho[qo],Ho[qo-4]);break;case 52:Do.commit(Ho[qo]);break;case 53:Do.commit("","",Do.commitType.NORMAL,Ho[qo]);break;case 54:Do.commit("","",Ho[qo],"");break;case 55:Do.commit("","",Ho[qo],Ho[qo-2]);break;case 56:Do.commit("","",Ho[qo-2],Ho[qo]);break;case 57:Do.commit("",Ho[qo],Do.commitType.NORMAL,"");break;case 58:Do.commit("",Ho[qo-2],Do.commitType.NORMAL,Ho[qo]);break;case 59:Do.commit("",Ho[qo],Do.commitType.NORMAL,Ho[qo-2]);break;case 60:Do.commit("",Ho[qo-2],Ho[qo],"");break;case 61:Do.commit("",Ho[qo],Ho[qo-2],"");break;case 62:Do.commit("",Ho[qo-4],Ho[qo-2],Ho[qo]);break;case 63:Do.commit("",Ho[qo-4],Ho[qo],Ho[qo-2]);break;case 64:Do.commit("",Ho[qo-2],Ho[qo-4],Ho[qo]);break;case 65:Do.commit("",Ho[qo],Ho[qo-4],Ho[qo-2]);break;case 66:Do.commit("",Ho[qo],Ho[qo-2],Ho[qo-4]);break;case 67:Do.commit("",Ho[qo-2],Ho[qo],Ho[qo-4]);break;case 68:Do.commit(Ho[qo],"",Do.commitType.NORMAL,"");break;case 69:Do.commit(Ho[qo],"",Do.commitType.NORMAL,Ho[qo-2]);break;case 70:Do.commit(Ho[qo-2],"",Do.commitType.NORMAL,Ho[qo]);break;case 71:Do.commit(Ho[qo-2],"",Ho[qo],"");break;case 72:Do.commit(Ho[qo],"",Ho[qo-2],"");break;case 73:Do.commit(Ho[qo],Ho[qo-2],Do.commitType.NORMAL,"");break;case 74:Do.commit(Ho[qo-2],Ho[qo],Do.commitType.NORMAL,"");break;case 75:Do.commit(Ho[qo-4],"",Ho[qo-2],Ho[qo]);break;case 76:Do.commit(Ho[qo-4],"",Ho[qo],Ho[qo-2]);break;case 77:Do.commit(Ho[qo-2],"",Ho[qo-4],Ho[qo]);break;case 78:Do.commit(Ho[qo],"",Ho[qo-4],Ho[qo-2]);break;case 79:Do.commit(Ho[qo],"",Ho[qo-2],Ho[qo-4]);break;case 80:Do.commit(Ho[qo-2],"",Ho[qo],Ho[qo-4]);break;case 81:Do.commit(Ho[qo-4],Ho[qo],Ho[qo-2],"");break;case 82:Do.commit(Ho[qo-4],Ho[qo-2],Ho[qo],"");break;case 83:Do.commit(Ho[qo-2],Ho[qo],Ho[qo-4],"");break;case 84:Do.commit(Ho[qo],Ho[qo-2],Ho[qo-4],"");break;case 85:Do.commit(Ho[qo],Ho[qo-4],Ho[qo-2],"");break;case 86:Do.commit(Ho[qo-2],Ho[qo-4],Ho[qo],"");break;case 87:Do.commit(Ho[qo-4],Ho[qo],Do.commitType.NORMAL,Ho[qo-2]);break;case 88:Do.commit(Ho[qo-4],Ho[qo-2],Do.commitType.NORMAL,Ho[qo]);break;case 89:Do.commit(Ho[qo-2],Ho[qo],Do.commitType.NORMAL,Ho[qo-4]);break;case 90:Do.commit(Ho[qo],Ho[qo-2],Do.commitType.NORMAL,Ho[qo-4]);break;case 91:Do.commit(Ho[qo],Ho[qo-4],Do.commitType.NORMAL,Ho[qo-2]);break;case 92:Do.commit(Ho[qo-2],Ho[qo-4],Do.commitType.NORMAL,Ho[qo]);break;case 93:Do.commit(Ho[qo-6],Ho[qo-4],Ho[qo-2],Ho[qo]);break;case 94:Do.commit(Ho[qo-6],Ho[qo-4],Ho[qo],Ho[qo-2]);break;case 95:Do.commit(Ho[qo-6],Ho[qo-2],Ho[qo-4],Ho[qo]);break;case 96:Do.commit(Ho[qo-6],Ho[qo],Ho[qo-4],Ho[qo-2]);break;case 97:Do.commit(Ho[qo-6],Ho[qo-2],Ho[qo],Ho[qo-4]);break;case 98:Do.commit(Ho[qo-6],Ho[qo],Ho[qo-2],Ho[qo-4]);break;case 99:Do.commit(Ho[qo-4],Ho[qo-6],Ho[qo-2],Ho[qo]);break;case 100:Do.commit(Ho[qo-4],Ho[qo-6],Ho[qo],Ho[qo-2]);break;case 101:Do.commit(Ho[qo-2],Ho[qo-6],Ho[qo-4],Ho[qo]);break;case 102:Do.commit(Ho[qo],Ho[qo-6],Ho[qo-4],Ho[qo-2]);break;case 103:Do.commit(Ho[qo-2],Ho[qo-6],Ho[qo],Ho[qo-4]);break;case 104:Do.commit(Ho[qo],Ho[qo-6],Ho[qo-2],Ho[qo-4]);break;case 105:Do.commit(Ho[qo],Ho[qo-4],Ho[qo-2],Ho[qo-6]);break;case 106:Do.commit(Ho[qo-2],Ho[qo-4],Ho[qo],Ho[qo-6]);break;case 107:Do.commit(Ho[qo],Ho[qo-2],Ho[qo-4],Ho[qo-6]);break;case 108:Do.commit(Ho[qo-2],Ho[qo],Ho[qo-4],Ho[qo-6]);break;case 109:Do.commit(Ho[qo-4],Ho[qo-2],Ho[qo],Ho[qo-6]);break;case 110:Do.commit(Ho[qo-4],Ho[qo],Ho[qo-2],Ho[qo-6]);break;case 111:Do.commit(Ho[qo-2],Ho[qo-4],Ho[qo-6],Ho[qo]);break;case 112:Do.commit(Ho[qo],Ho[qo-4],Ho[qo-6],Ho[qo-2]);break;case 113:Do.commit(Ho[qo-2],Ho[qo],Ho[qo-6],Ho[qo-4]);break;case 114:Do.commit(Ho[qo],Ho[qo-2],Ho[qo-6],Ho[qo-4]);break;case 115:Do.commit(Ho[qo-4],Ho[qo-2],Ho[qo-6],Ho[qo]);break;case 116:Do.commit(Ho[qo-4],Ho[qo],Ho[qo-6],Ho[qo-2]);break;case 117:this.$="";break;case 118:this.$=Ho[qo];break;case 119:this.$=Do.commitType.NORMAL;break;case 120:this.$=Do.commitType.REVERSE;break;case 121:this.$=Do.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:to,7:no,13:io,47:so},{1:[3]},{3:7,4:2,5:to,7:no,13:io,47:so},{6:8,7:ao,8:[1,9],9:[1,10],10:11,13:lo},eo(uo,[2,124]),eo(uo,[2,125]),eo(uo,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:ao,10:11,13:lo},{8:[1,15]},eo(ho,[2,9],{11:16,12:[1,17]}),eo(go,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:ao,10:11,13:lo},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},eo(go,[2,7]),{1:[2,3]},{7:[1,36]},eo(ho,[2,10]),{4:37,7:no,13:io,47:so},eo(ho,[2,12]),eo(mo,[2,13]),eo(mo,[2,14]),eo(mo,[2,15]),{20:[1,38]},{22:[1,39]},eo(mo,[2,18]),eo(mo,[2,19]),eo(mo,[2,20]),{27:40,33:yo,46:So},eo(mo,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:yo,46:So},{32:[1,50],35:[1,51]},{27:52,33:yo,46:So},{1:[2,4]},eo(ho,[2,11]),eo(mo,[2,16]),eo(mo,[2,17]),eo(mo,[2,21]),eo(_o,[2,122]),eo(_o,[2,123]),eo(mo,[2,52]),{33:[1,53]},{39:54,43:ko,44:Co,45:$o},{33:[1,58]},{33:[1,59]},eo(mo,[2,118]),eo(mo,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},eo(mo,[2,22],{29:[1,66]}),eo(mo,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),eo(mo,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),eo(Ro,[2,119]),eo(Ro,[2,120]),eo(Ro,[2,121]),eo(mo,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),eo(mo,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:ko,44:Co,45:$o},{33:[1,81]},eo(mo,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:ko,44:Co,45:$o},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:ko,44:Co,45:$o},{33:[1,95]},{33:[1,96]},{39:97,43:ko,44:Co,45:$o},{33:[1,98]},eo(mo,[2,37],{35:[1,100],38:[1,99]}),eo(mo,[2,38],{32:[1,102],35:[1,101]}),eo(mo,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},eo(mo,[2,23]),eo(mo,[2,55],{32:[1,110],42:[1,111]}),eo(mo,[2,59],{38:[1,112],42:[1,113]}),eo(mo,[2,69],{32:[1,115],38:[1,114]}),eo(mo,[2,56],{32:[1,116],42:[1,117]}),eo(mo,[2,61],{35:[1,118],42:[1,119]}),eo(mo,[2,72],{32:[1,121],35:[1,120]}),eo(mo,[2,58],{38:[1,122],42:[1,123]}),eo(mo,[2,60],{35:[1,124],42:[1,125]}),eo(mo,[2,73],{35:[1,127],38:[1,126]}),eo(mo,[2,70],{32:[1,129],38:[1,128]}),eo(mo,[2,71],{32:[1,131],35:[1,130]}),eo(mo,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:ko,44:Co,45:$o},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:ko,44:Co,45:$o},eo(mo,[2,25],{35:[1,140]}),eo(mo,[2,26],{34:[1,141]}),eo(mo,[2,31],{34:[1,142]}),eo(mo,[2,29],{34:[1,143]}),eo(mo,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:ko,44:Co,45:$o},{33:[1,148]},{39:149,43:ko,44:Co,45:$o},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:ko,44:Co,45:$o},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:ko,44:Co,45:$o},{33:[1,162]},{39:163,43:ko,44:Co,45:$o},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:ko,44:Co,45:$o},{33:[1,168]},eo(mo,[2,43],{35:[1,169]}),eo(mo,[2,44],{38:[1,170]}),eo(mo,[2,42],{32:[1,171]}),eo(mo,[2,45],{35:[1,172]}),eo(mo,[2,40],{38:[1,173]}),eo(mo,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},eo(mo,[2,66],{42:[1,181]}),eo(mo,[2,79],{32:[1,182]}),eo(mo,[2,67],{42:[1,183]}),eo(mo,[2,90],{38:[1,184]}),eo(mo,[2,80],{32:[1,185]}),eo(mo,[2,89],{38:[1,186]}),eo(mo,[2,65],{42:[1,187]}),eo(mo,[2,78],{32:[1,188]}),eo(mo,[2,64],{42:[1,189]}),eo(mo,[2,84],{35:[1,190]}),eo(mo,[2,77],{32:[1,191]}),eo(mo,[2,83],{35:[1,192]}),eo(mo,[2,63],{42:[1,193]}),eo(mo,[2,91],{38:[1,194]}),eo(mo,[2,62],{42:[1,195]}),eo(mo,[2,85],{35:[1,196]}),eo(mo,[2,86],{35:[1,197]}),eo(mo,[2,92],{38:[1,198]}),eo(mo,[2,76],{32:[1,199]}),eo(mo,[2,87],{38:[1,200]}),eo(mo,[2,75],{32:[1,201]}),eo(mo,[2,81],{35:[1,202]}),eo(mo,[2,82],{35:[1,203]}),eo(mo,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:ko,44:Co,45:$o},{33:[1,207]},{33:[1,208]},{39:209,43:ko,44:Co,45:$o},{33:[1,210]},eo(mo,[2,27]),eo(mo,[2,32]),eo(mo,[2,28]),eo(mo,[2,33]),eo(mo,[2,34]),eo(mo,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:ko,44:Co,45:$o},{33:[1,215]},{39:216,43:ko,44:Co,45:$o},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:ko,44:Co,45:$o},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:ko,44:Co,45:$o},{33:[1,229]},{39:230,43:ko,44:Co,45:$o},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:ko,44:Co,45:$o},eo(mo,[2,46]),eo(mo,[2,48]),eo(mo,[2,47]),eo(mo,[2,49]),eo(mo,[2,51]),eo(mo,[2,50]),eo(mo,[2,107]),eo(mo,[2,108]),eo(mo,[2,105]),eo(mo,[2,106]),eo(mo,[2,110]),eo(mo,[2,109]),eo(mo,[2,114]),eo(mo,[2,113]),eo(mo,[2,112]),eo(mo,[2,111]),eo(mo,[2,116]),eo(mo,[2,115]),eo(mo,[2,104]),eo(mo,[2,103]),eo(mo,[2,102]),eo(mo,[2,101]),eo(mo,[2,99]),eo(mo,[2,100]),eo(mo,[2,98]),eo(mo,[2,97]),eo(mo,[2,96]),eo(mo,[2,95]),eo(mo,[2,93]),eo(mo,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(Fo,Lo){if(Lo.recoverable)this.trace(Fo);else{var Go=new Error(Fo);throw Go.hash=Lo,Go}},parse:function(Fo){var Lo=this,Go=[0],Do=[],Uo=[null],Ho=[],Yo=this.table,qo="",Jo=0,ps=0,Qo=2,hs=1,gs=Ho.slice.call(arguments,1),ys=Object.create(this.lexer),vs={yy:{}};for(var ks in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ks)&&(vs.yy[ks]=this.yy[ks]);ys.setInput(Fo,vs.yy),vs.yy.lexer=ys,vs.yy.parser=this,typeof ys.yylloc>"u"&&(ys.yylloc={});var Os=ys.yylloc;Ho.push(Os);var Ts=ys.options&&ys.options.ranges;typeof vs.yy.parseError=="function"?this.parseError=vs.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xs(){var Qs;return Qs=Do.pop()||ys.lex()||hs,typeof Qs!="number"&&(Qs instanceof Array&&(Do=Qs,Qs=Do.pop()),Qs=Lo.symbols_[Qs]||Qs),Qs}for(var Ws,Ps,qs,ga,Fs={},Js,Vs,El,yl;;){if(Ps=Go[Go.length-1],this.defaultActions[Ps]?qs=this.defaultActions[Ps]:((Ws===null||typeof Ws>"u")&&(Ws=Xs()),qs=Yo[Ps]&&Yo[Ps][Ws]),typeof qs>"u"||!qs.length||!qs[0]){var Gl="";yl=[];for(Js in Yo[Ps])this.terminals_[Js]&&Js>Qo&&yl.push("'"+this.terminals_[Js]+"'");ys.showPosition?Gl="Parse error on line "+(Jo+1)+`: `+ys.showPosition()+` -Expecting `+yl.join(", ")+", got '"+(this.terminals_[Ws]||Ws)+"'":Gl="Parse error on line "+(Jo+1)+": Unexpected "+(Ws==hs?"end of input":"'"+(this.terminals_[Ws]||Ws)+"'"),this.parseError(Gl,{text:ys.match,token:this.terminals_[Ws]||Ws,line:ys.yylineno,loc:Os,expected:yl})}if(qs[0]instanceof Array&&qs.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ps+", token: "+Ws);switch(qs[0]){case 1:Go.push(Ws),Uo.push(ys.yytext),Ho.push(ys.yylloc),Go.push(qs[1]),Ws=null,ps=ys.yyleng,qo=ys.yytext,Jo=ys.yylineno,Os=ys.yylloc;break;case 2:if(Vs=this.productions_[qs[1]][1],Fs.$=Uo[Uo.length-Vs],Fs._$={first_line:Ho[Ho.length-(Vs||1)].first_line,last_line:Ho[Ho.length-1].last_line,first_column:Ho[Ho.length-(Vs||1)].first_column,last_column:Ho[Ho.length-1].last_column},Ts&&(Fs._$.range=[Ho[Ho.length-(Vs||1)].range[0],Ho[Ho.length-1].range[1]]),ga=this.performAction.apply(Fs,[qo,ps,Jo,vs.yy,qs[1],Uo,Ho].concat(gs)),typeof ga<"u")return ga;Vs&&(Go=Go.slice(0,-1*Vs*2),Uo=Uo.slice(0,-1*Vs),Ho=Ho.slice(0,-1*Vs)),Go.push(this.productions_[qs[1]][0]),Uo.push(Fs.$),Ho.push(Fs._$),El=Yo[Go[Go.length-2]][Go[Go.length-1]],Go.push(El);break;case 3:return!0}}return!0}},No=function(){var Bo={EOF:1,parseError:function(Lo,Go){if(this.yy.parser)this.yy.parser.parseError(Lo,Go);else throw new Error(Lo)},setInput:function(Po,Lo){return this.yy=Lo||this.yy||{},this._input=Po,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Po=this._input[0];this.yytext+=Po,this.yyleng++,this.offset++,this.match+=Po,this.matched+=Po;var Lo=Po.match(/(?:\r\n?|\n).*/g);return Lo?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Po},unput:function(Po){var Lo=Po.length,Go=Po.split(/(?:\r\n?|\n)/g);this._input=Po+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Lo),this.offset-=Lo;var Do=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Go.length-1&&(this.yylineno-=Go.length-1);var Uo=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Go?(Go.length===Do.length?this.yylloc.first_column:0)+Do[Do.length-Go.length].length-Go[0].length:this.yylloc.first_column-Lo},this.options.ranges&&(this.yylloc.range=[Uo[0],Uo[0]+this.yyleng-Lo]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Po){this.unput(this.match.slice(Po))},pastInput:function(){var Po=this.matched.substr(0,this.matched.length-this.match.length);return(Po.length>20?"...":"")+Po.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Po=this.match;return Po.length<20&&(Po+=this._input.substr(0,20-Po.length)),(Po.substr(0,20)+(Po.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Po=this.pastInput(),Lo=new Array(Po.length+1).join("-");return Po+this.upcomingInput()+` -`+Lo+"^"},test_match:function(Po,Lo){var Go,Do,Uo;if(this.options.backtrack_lexer&&(Uo={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Uo.yylloc.range=this.yylloc.range.slice(0))),Do=Po[0].match(/(?:\r\n?|\n).*/g),Do&&(this.yylineno+=Do.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Do?Do[Do.length-1].length-Do[Do.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Po[0].length},this.yytext+=Po[0],this.match+=Po[0],this.matches=Po,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Po[0].length),this.matched+=Po[0],Go=this.performAction.call(this,this.yy,this,Lo,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Go)return Go;if(this._backtrack){for(var Ho in Uo)this[Ho]=Uo[Ho];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Po,Lo,Go,Do;this._more||(this.yytext="",this.match="");for(var Uo=this._currentRules(),Ho=0;HoLo[0].length)){if(Lo=Go,Do=Ho,this.options.backtrack_lexer){if(Po=this.test_match(Go,Uo[Ho]),Po!==!1)return Po;if(this._backtrack){Lo=!1;continue}else return!1}else if(!this.options.flex)break}return Lo?(Po=this.test_match(Lo,Uo[Do]),Po!==!1?Po:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Lo=this.next();return Lo||this.lex()},begin:function(Lo){this.conditionStack.push(Lo)},popState:function(){var Lo=this.conditionStack.length-1;return Lo>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Lo){return Lo=this.conditionStack.length-1-Math.abs(Lo||0),Lo>=0?this.conditionStack[Lo]:"INITIAL"},pushState:function(Lo){this.begin(Lo)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Lo,Go,Do,Uo){switch(Do){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return Bo}();Oo.lexer=No;function Mo(){this.yy={}}return Mo.prototype=Oo,Oo.Parser=Mo,new Mo}();parser$f.parser=parser$f;const gitGraphParser=parser$f;let mainBranchName=getConfig$2().gitGraph.mainBranchName,mainBranchOrder=getConfig$2().gitGraph.mainBranchOrder,commits={},head=null,branchesConfig={};branchesConfig[mainBranchName]={name:mainBranchName,order:mainBranchOrder};let branches={};branches[mainBranchName]=head;let curBranch=mainBranchName,direction$2="LR",seq=0;function getId(){return random({length:7})}function uniqBy(eo,to){const no=Object.create(null);return eo.reduce((io,so)=>{const ao=to(so);return no[ao]||(no[ao]=!0,io.push(so)),io},[])}const setDirection$2=function(eo){direction$2=eo};let options={};const setOptions$4=function(eo){log$1.debug("options str",eo),eo=eo&&eo.trim(),eo=eo||"{}";try{options=JSON.parse(eo)}catch(to){log$1.error("error while parsing gitGraph options",to.message)}},getOptions=function(){return options},commit=function(eo,to,no,io){log$1.debug("Entering commit:",eo,to,no,io),to=common$1.sanitizeText(to,getConfig$2()),eo=common$1.sanitizeText(eo,getConfig$2()),io=common$1.sanitizeText(io,getConfig$2());const so={id:to||seq+"-"+getId(),message:eo,seq:seq++,type:no||commitType$1.NORMAL,tag:io||"",parents:head==null?[]:[head.id],branch:curBranch};head=so,commits[so.id]=so,branches[curBranch]=so.id,log$1.debug("in pushCommit "+so.id)},branch=function(eo,to){if(eo=common$1.sanitizeText(eo,getConfig$2()),branches[eo]===void 0)branches[eo]=head!=null?head.id:null,branchesConfig[eo]={name:eo,order:to?parseInt(to,10):null},checkout(eo),log$1.debug("in createBranch");else{let no=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+eo+'")');throw no.hash={text:"branch "+eo,token:"branch "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+eo+'"']},no}},merge=function(eo,to,no,io){eo=common$1.sanitizeText(eo,getConfig$2()),to=common$1.sanitizeText(to,getConfig$2());const so=commits[branches[curBranch]],ao=commits[branches[eo]];if(curBranch===eo){let uo=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw uo.hash={text:"merge "+eo,token:"merge "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},uo}else if(so===void 0||!so){let uo=new Error('Incorrect usage of "merge". Current branch ('+curBranch+")has no commits");throw uo.hash={text:"merge "+eo,token:"merge "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},uo}else if(branches[eo]===void 0){let uo=new Error('Incorrect usage of "merge". Branch to be merged ('+eo+") does not exist");throw uo.hash={text:"merge "+eo,token:"merge "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+eo]},uo}else if(ao===void 0||!ao){let uo=new Error('Incorrect usage of "merge". Branch to be merged ('+eo+") has no commits");throw uo.hash={text:"merge "+eo,token:"merge "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},uo}else if(so===ao){let uo=new Error('Incorrect usage of "merge". Both branches have same head');throw uo.hash={text:"merge "+eo,token:"merge "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},uo}else if(to&&commits[to]!==void 0){let uo=new Error('Incorrect usage of "merge". Commit with id:'+to+" already exists, use different custom Id");throw uo.hash={text:"merge "+eo+to+no+io,token:"merge "+eo+to+no+io,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+eo+" "+to+"_UNIQUE "+no+" "+io]},uo}const lo={id:to||seq+"-"+getId(),message:"merged branch "+eo+" into "+curBranch,seq:seq++,parents:[head==null?null:head.id,branches[eo]],branch:curBranch,type:commitType$1.MERGE,customType:no,customId:!!to,tag:io||""};head=lo,commits[lo.id]=lo,branches[curBranch]=lo.id,log$1.debug(branches),log$1.debug("in mergeBranch")},cherryPick=function(eo,to,no,io){if(log$1.debug("Entering cherryPick:",eo,to,no),eo=common$1.sanitizeText(eo,getConfig$2()),to=common$1.sanitizeText(to,getConfig$2()),no=common$1.sanitizeText(no,getConfig$2()),io=common$1.sanitizeText(io,getConfig$2()),!eo||commits[eo]===void 0){let lo=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw lo.hash={text:"cherryPick "+eo+" "+to,token:"cherryPick "+eo+" "+to,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},lo}let so=commits[eo],ao=so.branch;if(io&&!(Array.isArray(so.parents)&&so.parents.includes(io)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(so.type===commitType$1.MERGE&&!io)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!to||commits[to]===void 0){if(ao===curBranch){let ho=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw ho.hash={text:"cherryPick "+eo+" "+to,token:"cherryPick "+eo+" "+to,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},ho}const lo=commits[branches[curBranch]];if(lo===void 0||!lo){let ho=new Error('Incorrect usage of "cherry-pick". Current branch ('+curBranch+")has no commits");throw ho.hash={text:"cherryPick "+eo+" "+to,token:"cherryPick "+eo+" "+to,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},ho}const uo={id:seq+"-"+getId(),message:"cherry-picked "+so+" into "+curBranch,seq:seq++,parents:[head==null?null:head.id,so.id],branch:curBranch,type:commitType$1.CHERRY_PICK,tag:no??`cherry-pick:${so.id}${so.type===commitType$1.MERGE?`|parent:${io}`:""}`};head=uo,commits[uo.id]=uo,branches[curBranch]=uo.id,log$1.debug(branches),log$1.debug("in cherryPick")}},checkout=function(eo){if(eo=common$1.sanitizeText(eo,getConfig$2()),branches[eo]===void 0){let to=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+eo+'")');throw to.hash={text:"checkout "+eo,token:"checkout "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+eo+'"']},to}else{curBranch=eo;const to=branches[curBranch];head=commits[to]}};function upsert(eo,to,no){const io=eo.indexOf(to);io===-1?eo.push(no):eo.splice(io,1,no)}function prettyPrintCommitHistory(eo){const to=eo.reduce((so,ao)=>so.seq>ao.seq?so:ao,eo[0]);let no="";eo.forEach(function(so){so===to?no+=" *":no+=" |"});const io=[no,to.id,to.seq];for(let so in branches)branches[so]===to.id&&io.push(so);if(log$1.debug(io.join(" ")),to.parents&&to.parents.length==2){const so=commits[to.parents[0]];upsert(eo,to,so),eo.push(commits[to.parents[1]])}else{if(to.parents.length==0)return;{const so=commits[to.parents];upsert(eo,to,so)}}eo=uniqBy(eo,so=>so.id),prettyPrintCommitHistory(eo)}const prettyPrint=function(){log$1.debug(commits);const eo=getCommitsArray()[0];prettyPrintCommitHistory([eo])},clear$1$1=function(){commits={},head=null;let eo=getConfig$2().gitGraph.mainBranchName,to=getConfig$2().gitGraph.mainBranchOrder;branches={},branches[eo]=null,branchesConfig={},branchesConfig[eo]={name:eo,order:to},curBranch=eo,seq=0,clear$k()},getBranchesAsObjArray=function(){return Object.values(branchesConfig).map((to,no)=>to.order!==null?to:{...to,order:parseFloat(`0.${no}`,10)}).sort((to,no)=>to.order-no.order).map(({name:to})=>({name:to}))},getBranches=function(){return branches},getCommits=function(){return commits},getCommitsArray=function(){const eo=Object.keys(commits).map(function(to){return commits[to]});return eo.forEach(function(to){log$1.debug(to.id)}),eo.sort((to,no)=>to.seq-no.seq),eo},getCurrentBranch=function(){return curBranch},getDirection$2=function(){return direction$2},getHead=function(){return head},commitType$1={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},gitGraphDb={getConfig:()=>getConfig$2().gitGraph,setDirection:setDirection$2,setOptions:setOptions$4,getOptions,commit,branch,merge,cherryPick,checkout,prettyPrint,clear:clear$1$1,getBranchesAsObjArray,getBranches,getCommits,getCommitsArray,getCurrentBranch,getDirection:getDirection$2,getHead,setAccTitle,getAccTitle,getAccDescription,setAccDescription,setDiagramTitle,getDiagramTitle,commitType:commitType$1};let allCommitsDict={};const commitType={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},THEME_COLOR_LIMIT=8;let branchPos={},commitPos={},lanes=[],maxPos=0,dir="LR";const clear$e=()=>{branchPos={},commitPos={},allCommitsDict={},maxPos=0,lanes=[],dir="LR"},drawText$3=eo=>{const to=document.createElementNS("http://www.w3.org/2000/svg","text");let no=[];typeof eo=="string"?no=eo.split(/\\n|\n|/gi):Array.isArray(eo)?no=eo:no=[];for(const io of no){const so=document.createElementNS("http://www.w3.org/2000/svg","tspan");so.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),so.setAttribute("dy","1em"),so.setAttribute("x","0"),so.setAttribute("class","row"),so.textContent=io.trim(),to.appendChild(so)}return to},findClosestParent=eo=>{let to="",no=0;return eo.forEach(io=>{const so=dir==="TB"?commitPos[io].y:commitPos[io].x;so>=no&&(to=io,no=so)}),to||void 0},drawCommits=(eo,to,no)=>{const io=getConfig$2().gitGraph,so=eo.append("g").attr("class","commit-bullets"),ao=eo.append("g").attr("class","commit-labels");let lo=0;dir==="TB"&&(lo=30);const ho=Object.keys(to).sort((So,_o)=>to[So].seq-to[_o].seq),go=io.parallelCommits,mo=10,yo=40;ho.forEach(So=>{const _o=to[So];if(go)if(_o.parents.length){const Ro=findClosestParent(_o.parents);lo=dir==="TB"?commitPos[Ro].y+yo:commitPos[Ro].x+yo}else lo=0,dir==="TB"&&(lo=30);const ko=lo+mo,Co=dir==="TB"?ko:branchPos[_o.branch].pos,$o=dir==="TB"?branchPos[_o.branch].pos:ko;if(no){let Ro,Oo=_o.customType!==void 0&&_o.customType!==""?_o.customType:_o.type;switch(Oo){case commitType.NORMAL:Ro="commit-normal";break;case commitType.REVERSE:Ro="commit-reverse";break;case commitType.HIGHLIGHT:Ro="commit-highlight";break;case commitType.MERGE:Ro="commit-merge";break;case commitType.CHERRY_PICK:Ro="commit-cherry-pick";break;default:Ro="commit-normal"}if(Oo===commitType.HIGHLIGHT){const No=so.append("rect");No.attr("x",$o-10),No.attr("y",Co-10),No.attr("height",20),No.attr("width",20),No.attr("class",`commit ${_o.id} commit-highlight${branchPos[_o.branch].index%THEME_COLOR_LIMIT} ${Ro}-outer`),so.append("rect").attr("x",$o-6).attr("y",Co-6).attr("height",12).attr("width",12).attr("class",`commit ${_o.id} commit${branchPos[_o.branch].index%THEME_COLOR_LIMIT} ${Ro}-inner`)}else if(Oo===commitType.CHERRY_PICK)so.append("circle").attr("cx",$o).attr("cy",Co).attr("r",10).attr("class",`commit ${_o.id} ${Ro}`),so.append("circle").attr("cx",$o-3).attr("cy",Co+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${_o.id} ${Ro}`),so.append("circle").attr("cx",$o+3).attr("cy",Co+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${_o.id} ${Ro}`),so.append("line").attr("x1",$o+3).attr("y1",Co+1).attr("x2",$o).attr("y2",Co-5).attr("stroke","#fff").attr("class",`commit ${_o.id} ${Ro}`),so.append("line").attr("x1",$o-3).attr("y1",Co+1).attr("x2",$o).attr("y2",Co-5).attr("stroke","#fff").attr("class",`commit ${_o.id} ${Ro}`);else{const No=so.append("circle");if(No.attr("cx",$o),No.attr("cy",Co),No.attr("r",_o.type===commitType.MERGE?9:10),No.attr("class",`commit ${_o.id} commit${branchPos[_o.branch].index%THEME_COLOR_LIMIT}`),Oo===commitType.MERGE){const Mo=so.append("circle");Mo.attr("cx",$o),Mo.attr("cy",Co),Mo.attr("r",6),Mo.attr("class",`commit ${Ro} ${_o.id} commit${branchPos[_o.branch].index%THEME_COLOR_LIMIT}`)}Oo===commitType.REVERSE&&so.append("path").attr("d",`M ${$o-5},${Co-5}L${$o+5},${Co+5}M${$o-5},${Co+5}L${$o+5},${Co-5}`).attr("class",`commit ${Ro} ${_o.id} commit${branchPos[_o.branch].index%THEME_COLOR_LIMIT}`)}}if(dir==="TB"?commitPos[_o.id]={x:$o,y:ko}:commitPos[_o.id]={x:ko,y:Co},no){if(_o.type!==commitType.CHERRY_PICK&&(_o.customId&&_o.type===commitType.MERGE||_o.type!==commitType.MERGE)&&io.showCommitLabel){const No=ao.append("g"),Mo=No.insert("rect").attr("class","commit-label-bkg"),Bo=No.append("text").attr("x",lo).attr("y",Co+25).attr("class","commit-label").text(_o.id);let Po=Bo.node().getBBox();if(Mo.attr("x",ko-Po.width/2-2).attr("y",Co+13.5).attr("width",Po.width+2*2).attr("height",Po.height+2*2),dir==="TB"&&(Mo.attr("x",$o-(Po.width+4*4+5)).attr("y",Co-12),Bo.attr("x",$o-(Po.width+4*4)).attr("y",Co+Po.height-12)),dir!=="TB"&&Bo.attr("x",ko-Po.width/2),io.rotateCommitLabel)if(dir==="TB")Bo.attr("transform","rotate(-45, "+$o+", "+Co+")"),Mo.attr("transform","rotate(-45, "+$o+", "+Co+")");else{let Lo=-7.5-(Po.width+10)/25*9.5,Go=10+Po.width/25*8.5;No.attr("transform","translate("+Lo+", "+Go+") rotate(-45, "+lo+", "+Co+")")}}if(_o.tag){const No=ao.insert("polygon"),Mo=ao.append("circle"),Bo=ao.append("text").attr("y",Co-16).attr("class","tag-label").text(_o.tag);let Po=Bo.node().getBBox();Bo.attr("x",ko-Po.width/2);const Lo=Po.height/2,Go=Co-19.2;No.attr("class","tag-label-bkg").attr("points",` - ${lo-Po.width/2-4/2},${Go+2} - ${lo-Po.width/2-4/2},${Go-2} - ${ko-Po.width/2-4},${Go-Lo-2} - ${ko+Po.width/2+4},${Go-Lo-2} - ${ko+Po.width/2+4},${Go+Lo+2} - ${ko-Po.width/2-4},${Go+Lo+2}`),Mo.attr("cx",lo-Po.width/2+4/2).attr("cy",Go).attr("r",1.5).attr("class","tag-hole"),dir==="TB"&&(No.attr("class","tag-label-bkg").attr("points",` +Expecting `+yl.join(", ")+", got '"+(this.terminals_[Ws]||Ws)+"'":Gl="Parse error on line "+(Jo+1)+": Unexpected "+(Ws==hs?"end of input":"'"+(this.terminals_[Ws]||Ws)+"'"),this.parseError(Gl,{text:ys.match,token:this.terminals_[Ws]||Ws,line:ys.yylineno,loc:Os,expected:yl})}if(qs[0]instanceof Array&&qs.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ps+", token: "+Ws);switch(qs[0]){case 1:Go.push(Ws),Uo.push(ys.yytext),Ho.push(ys.yylloc),Go.push(qs[1]),Ws=null,ps=ys.yyleng,qo=ys.yytext,Jo=ys.yylineno,Os=ys.yylloc;break;case 2:if(Vs=this.productions_[qs[1]][1],Fs.$=Uo[Uo.length-Vs],Fs._$={first_line:Ho[Ho.length-(Vs||1)].first_line,last_line:Ho[Ho.length-1].last_line,first_column:Ho[Ho.length-(Vs||1)].first_column,last_column:Ho[Ho.length-1].last_column},Ts&&(Fs._$.range=[Ho[Ho.length-(Vs||1)].range[0],Ho[Ho.length-1].range[1]]),ga=this.performAction.apply(Fs,[qo,ps,Jo,vs.yy,qs[1],Uo,Ho].concat(gs)),typeof ga<"u")return ga;Vs&&(Go=Go.slice(0,-1*Vs*2),Uo=Uo.slice(0,-1*Vs),Ho=Ho.slice(0,-1*Vs)),Go.push(this.productions_[qs[1]][0]),Uo.push(Fs.$),Ho.push(Fs._$),El=Yo[Go[Go.length-2]][Go[Go.length-1]],Go.push(El);break;case 3:return!0}}return!0}},No=function(){var Bo={EOF:1,parseError:function(Lo,Go){if(this.yy.parser)this.yy.parser.parseError(Lo,Go);else throw new Error(Lo)},setInput:function(Fo,Lo){return this.yy=Lo||this.yy||{},this._input=Fo,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Fo=this._input[0];this.yytext+=Fo,this.yyleng++,this.offset++,this.match+=Fo,this.matched+=Fo;var Lo=Fo.match(/(?:\r\n?|\n).*/g);return Lo?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Fo},unput:function(Fo){var Lo=Fo.length,Go=Fo.split(/(?:\r\n?|\n)/g);this._input=Fo+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Lo),this.offset-=Lo;var Do=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Go.length-1&&(this.yylineno-=Go.length-1);var Uo=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Go?(Go.length===Do.length?this.yylloc.first_column:0)+Do[Do.length-Go.length].length-Go[0].length:this.yylloc.first_column-Lo},this.options.ranges&&(this.yylloc.range=[Uo[0],Uo[0]+this.yyleng-Lo]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Fo){this.unput(this.match.slice(Fo))},pastInput:function(){var Fo=this.matched.substr(0,this.matched.length-this.match.length);return(Fo.length>20?"...":"")+Fo.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Fo=this.match;return Fo.length<20&&(Fo+=this._input.substr(0,20-Fo.length)),(Fo.substr(0,20)+(Fo.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Fo=this.pastInput(),Lo=new Array(Fo.length+1).join("-");return Fo+this.upcomingInput()+` +`+Lo+"^"},test_match:function(Fo,Lo){var Go,Do,Uo;if(this.options.backtrack_lexer&&(Uo={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Uo.yylloc.range=this.yylloc.range.slice(0))),Do=Fo[0].match(/(?:\r\n?|\n).*/g),Do&&(this.yylineno+=Do.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Do?Do[Do.length-1].length-Do[Do.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Fo[0].length},this.yytext+=Fo[0],this.match+=Fo[0],this.matches=Fo,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Fo[0].length),this.matched+=Fo[0],Go=this.performAction.call(this,this.yy,this,Lo,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Go)return Go;if(this._backtrack){for(var Ho in Uo)this[Ho]=Uo[Ho];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Fo,Lo,Go,Do;this._more||(this.yytext="",this.match="");for(var Uo=this._currentRules(),Ho=0;HoLo[0].length)){if(Lo=Go,Do=Ho,this.options.backtrack_lexer){if(Fo=this.test_match(Go,Uo[Ho]),Fo!==!1)return Fo;if(this._backtrack){Lo=!1;continue}else return!1}else if(!this.options.flex)break}return Lo?(Fo=this.test_match(Lo,Uo[Do]),Fo!==!1?Fo:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Lo=this.next();return Lo||this.lex()},begin:function(Lo){this.conditionStack.push(Lo)},popState:function(){var Lo=this.conditionStack.length-1;return Lo>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Lo){return Lo=this.conditionStack.length-1-Math.abs(Lo||0),Lo>=0?this.conditionStack[Lo]:"INITIAL"},pushState:function(Lo){this.begin(Lo)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Lo,Go,Do,Uo){switch(Do){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return Bo}();Oo.lexer=No;function Mo(){this.yy={}}return Mo.prototype=Oo,Oo.Parser=Mo,new Mo}();parser$f.parser=parser$f;const gitGraphParser=parser$f;let mainBranchName=getConfig$2().gitGraph.mainBranchName,mainBranchOrder=getConfig$2().gitGraph.mainBranchOrder,commits={},head=null,branchesConfig={};branchesConfig[mainBranchName]={name:mainBranchName,order:mainBranchOrder};let branches={};branches[mainBranchName]=head;let curBranch=mainBranchName,direction$2="LR",seq=0;function getId(){return random({length:7})}function uniqBy(eo,to){const no=Object.create(null);return eo.reduce((io,so)=>{const ao=to(so);return no[ao]||(no[ao]=!0,io.push(so)),io},[])}const setDirection$2=function(eo){direction$2=eo};let options={};const setOptions$4=function(eo){log$1.debug("options str",eo),eo=eo&&eo.trim(),eo=eo||"{}";try{options=JSON.parse(eo)}catch(to){log$1.error("error while parsing gitGraph options",to.message)}},getOptions=function(){return options},commit=function(eo,to,no,io){log$1.debug("Entering commit:",eo,to,no,io),to=common$1.sanitizeText(to,getConfig$2()),eo=common$1.sanitizeText(eo,getConfig$2()),io=common$1.sanitizeText(io,getConfig$2());const so={id:to||seq+"-"+getId(),message:eo,seq:seq++,type:no||commitType$1.NORMAL,tag:io||"",parents:head==null?[]:[head.id],branch:curBranch};head=so,commits[so.id]=so,branches[curBranch]=so.id,log$1.debug("in pushCommit "+so.id)},branch=function(eo,to){if(eo=common$1.sanitizeText(eo,getConfig$2()),branches[eo]===void 0)branches[eo]=head!=null?head.id:null,branchesConfig[eo]={name:eo,order:to?parseInt(to,10):null},checkout(eo),log$1.debug("in createBranch");else{let no=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+eo+'")');throw no.hash={text:"branch "+eo,token:"branch "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+eo+'"']},no}},merge=function(eo,to,no,io){eo=common$1.sanitizeText(eo,getConfig$2()),to=common$1.sanitizeText(to,getConfig$2());const so=commits[branches[curBranch]],ao=commits[branches[eo]];if(curBranch===eo){let uo=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw uo.hash={text:"merge "+eo,token:"merge "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},uo}else if(so===void 0||!so){let uo=new Error('Incorrect usage of "merge". Current branch ('+curBranch+")has no commits");throw uo.hash={text:"merge "+eo,token:"merge "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},uo}else if(branches[eo]===void 0){let uo=new Error('Incorrect usage of "merge". Branch to be merged ('+eo+") does not exist");throw uo.hash={text:"merge "+eo,token:"merge "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+eo]},uo}else if(ao===void 0||!ao){let uo=new Error('Incorrect usage of "merge". Branch to be merged ('+eo+") has no commits");throw uo.hash={text:"merge "+eo,token:"merge "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},uo}else if(so===ao){let uo=new Error('Incorrect usage of "merge". Both branches have same head');throw uo.hash={text:"merge "+eo,token:"merge "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},uo}else if(to&&commits[to]!==void 0){let uo=new Error('Incorrect usage of "merge". Commit with id:'+to+" already exists, use different custom Id");throw uo.hash={text:"merge "+eo+to+no+io,token:"merge "+eo+to+no+io,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+eo+" "+to+"_UNIQUE "+no+" "+io]},uo}const lo={id:to||seq+"-"+getId(),message:"merged branch "+eo+" into "+curBranch,seq:seq++,parents:[head==null?null:head.id,branches[eo]],branch:curBranch,type:commitType$1.MERGE,customType:no,customId:!!to,tag:io||""};head=lo,commits[lo.id]=lo,branches[curBranch]=lo.id,log$1.debug(branches),log$1.debug("in mergeBranch")},cherryPick=function(eo,to,no,io){if(log$1.debug("Entering cherryPick:",eo,to,no),eo=common$1.sanitizeText(eo,getConfig$2()),to=common$1.sanitizeText(to,getConfig$2()),no=common$1.sanitizeText(no,getConfig$2()),io=common$1.sanitizeText(io,getConfig$2()),!eo||commits[eo]===void 0){let lo=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw lo.hash={text:"cherryPick "+eo+" "+to,token:"cherryPick "+eo+" "+to,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},lo}let so=commits[eo],ao=so.branch;if(io&&!(Array.isArray(so.parents)&&so.parents.includes(io)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(so.type===commitType$1.MERGE&&!io)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!to||commits[to]===void 0){if(ao===curBranch){let ho=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw ho.hash={text:"cherryPick "+eo+" "+to,token:"cherryPick "+eo+" "+to,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},ho}const lo=commits[branches[curBranch]];if(lo===void 0||!lo){let ho=new Error('Incorrect usage of "cherry-pick". Current branch ('+curBranch+")has no commits");throw ho.hash={text:"cherryPick "+eo+" "+to,token:"cherryPick "+eo+" "+to,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},ho}const uo={id:seq+"-"+getId(),message:"cherry-picked "+so+" into "+curBranch,seq:seq++,parents:[head==null?null:head.id,so.id],branch:curBranch,type:commitType$1.CHERRY_PICK,tag:no??`cherry-pick:${so.id}${so.type===commitType$1.MERGE?`|parent:${io}`:""}`};head=uo,commits[uo.id]=uo,branches[curBranch]=uo.id,log$1.debug(branches),log$1.debug("in cherryPick")}},checkout=function(eo){if(eo=common$1.sanitizeText(eo,getConfig$2()),branches[eo]===void 0){let to=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+eo+'")');throw to.hash={text:"checkout "+eo,token:"checkout "+eo,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+eo+'"']},to}else{curBranch=eo;const to=branches[curBranch];head=commits[to]}};function upsert(eo,to,no){const io=eo.indexOf(to);io===-1?eo.push(no):eo.splice(io,1,no)}function prettyPrintCommitHistory(eo){const to=eo.reduce((so,ao)=>so.seq>ao.seq?so:ao,eo[0]);let no="";eo.forEach(function(so){so===to?no+=" *":no+=" |"});const io=[no,to.id,to.seq];for(let so in branches)branches[so]===to.id&&io.push(so);if(log$1.debug(io.join(" ")),to.parents&&to.parents.length==2){const so=commits[to.parents[0]];upsert(eo,to,so),eo.push(commits[to.parents[1]])}else{if(to.parents.length==0)return;{const so=commits[to.parents];upsert(eo,to,so)}}eo=uniqBy(eo,so=>so.id),prettyPrintCommitHistory(eo)}const prettyPrint=function(){log$1.debug(commits);const eo=getCommitsArray()[0];prettyPrintCommitHistory([eo])},clear$1$1=function(){commits={},head=null;let eo=getConfig$2().gitGraph.mainBranchName,to=getConfig$2().gitGraph.mainBranchOrder;branches={},branches[eo]=null,branchesConfig={},branchesConfig[eo]={name:eo,order:to},curBranch=eo,seq=0,clear$k()},getBranchesAsObjArray=function(){return Object.values(branchesConfig).map((to,no)=>to.order!==null?to:{...to,order:parseFloat(`0.${no}`,10)}).sort((to,no)=>to.order-no.order).map(({name:to})=>({name:to}))},getBranches=function(){return branches},getCommits=function(){return commits},getCommitsArray=function(){const eo=Object.keys(commits).map(function(to){return commits[to]});return eo.forEach(function(to){log$1.debug(to.id)}),eo.sort((to,no)=>to.seq-no.seq),eo},getCurrentBranch=function(){return curBranch},getDirection$2=function(){return direction$2},getHead=function(){return head},commitType$1={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},gitGraphDb={getConfig:()=>getConfig$2().gitGraph,setDirection:setDirection$2,setOptions:setOptions$4,getOptions,commit,branch,merge,cherryPick,checkout,prettyPrint,clear:clear$1$1,getBranchesAsObjArray,getBranches,getCommits,getCommitsArray,getCurrentBranch,getDirection:getDirection$2,getHead,setAccTitle,getAccTitle,getAccDescription,setAccDescription,setDiagramTitle,getDiagramTitle,commitType:commitType$1};let allCommitsDict={};const commitType={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},THEME_COLOR_LIMIT=8;let branchPos={},commitPos={},lanes=[],maxPos=0,dir="LR";const clear$e=()=>{branchPos={},commitPos={},allCommitsDict={},maxPos=0,lanes=[],dir="LR"},drawText$3=eo=>{const to=document.createElementNS("http://www.w3.org/2000/svg","text");let no=[];typeof eo=="string"?no=eo.split(/\\n|\n|/gi):Array.isArray(eo)?no=eo:no=[];for(const io of no){const so=document.createElementNS("http://www.w3.org/2000/svg","tspan");so.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),so.setAttribute("dy","1em"),so.setAttribute("x","0"),so.setAttribute("class","row"),so.textContent=io.trim(),to.appendChild(so)}return to},findClosestParent=eo=>{let to="",no=0;return eo.forEach(io=>{const so=dir==="TB"?commitPos[io].y:commitPos[io].x;so>=no&&(to=io,no=so)}),to||void 0},drawCommits=(eo,to,no)=>{const io=getConfig$2().gitGraph,so=eo.append("g").attr("class","commit-bullets"),ao=eo.append("g").attr("class","commit-labels");let lo=0;dir==="TB"&&(lo=30);const ho=Object.keys(to).sort((So,_o)=>to[So].seq-to[_o].seq),go=io.parallelCommits,mo=10,yo=40;ho.forEach(So=>{const _o=to[So];if(go)if(_o.parents.length){const Ro=findClosestParent(_o.parents);lo=dir==="TB"?commitPos[Ro].y+yo:commitPos[Ro].x+yo}else lo=0,dir==="TB"&&(lo=30);const ko=lo+mo,Co=dir==="TB"?ko:branchPos[_o.branch].pos,$o=dir==="TB"?branchPos[_o.branch].pos:ko;if(no){let Ro,Oo=_o.customType!==void 0&&_o.customType!==""?_o.customType:_o.type;switch(Oo){case commitType.NORMAL:Ro="commit-normal";break;case commitType.REVERSE:Ro="commit-reverse";break;case commitType.HIGHLIGHT:Ro="commit-highlight";break;case commitType.MERGE:Ro="commit-merge";break;case commitType.CHERRY_PICK:Ro="commit-cherry-pick";break;default:Ro="commit-normal"}if(Oo===commitType.HIGHLIGHT){const No=so.append("rect");No.attr("x",$o-10),No.attr("y",Co-10),No.attr("height",20),No.attr("width",20),No.attr("class",`commit ${_o.id} commit-highlight${branchPos[_o.branch].index%THEME_COLOR_LIMIT} ${Ro}-outer`),so.append("rect").attr("x",$o-6).attr("y",Co-6).attr("height",12).attr("width",12).attr("class",`commit ${_o.id} commit${branchPos[_o.branch].index%THEME_COLOR_LIMIT} ${Ro}-inner`)}else if(Oo===commitType.CHERRY_PICK)so.append("circle").attr("cx",$o).attr("cy",Co).attr("r",10).attr("class",`commit ${_o.id} ${Ro}`),so.append("circle").attr("cx",$o-3).attr("cy",Co+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${_o.id} ${Ro}`),so.append("circle").attr("cx",$o+3).attr("cy",Co+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${_o.id} ${Ro}`),so.append("line").attr("x1",$o+3).attr("y1",Co+1).attr("x2",$o).attr("y2",Co-5).attr("stroke","#fff").attr("class",`commit ${_o.id} ${Ro}`),so.append("line").attr("x1",$o-3).attr("y1",Co+1).attr("x2",$o).attr("y2",Co-5).attr("stroke","#fff").attr("class",`commit ${_o.id} ${Ro}`);else{const No=so.append("circle");if(No.attr("cx",$o),No.attr("cy",Co),No.attr("r",_o.type===commitType.MERGE?9:10),No.attr("class",`commit ${_o.id} commit${branchPos[_o.branch].index%THEME_COLOR_LIMIT}`),Oo===commitType.MERGE){const Mo=so.append("circle");Mo.attr("cx",$o),Mo.attr("cy",Co),Mo.attr("r",6),Mo.attr("class",`commit ${Ro} ${_o.id} commit${branchPos[_o.branch].index%THEME_COLOR_LIMIT}`)}Oo===commitType.REVERSE&&so.append("path").attr("d",`M ${$o-5},${Co-5}L${$o+5},${Co+5}M${$o-5},${Co+5}L${$o+5},${Co-5}`).attr("class",`commit ${Ro} ${_o.id} commit${branchPos[_o.branch].index%THEME_COLOR_LIMIT}`)}}if(dir==="TB"?commitPos[_o.id]={x:$o,y:ko}:commitPos[_o.id]={x:ko,y:Co},no){if(_o.type!==commitType.CHERRY_PICK&&(_o.customId&&_o.type===commitType.MERGE||_o.type!==commitType.MERGE)&&io.showCommitLabel){const No=ao.append("g"),Mo=No.insert("rect").attr("class","commit-label-bkg"),Bo=No.append("text").attr("x",lo).attr("y",Co+25).attr("class","commit-label").text(_o.id);let Fo=Bo.node().getBBox();if(Mo.attr("x",ko-Fo.width/2-2).attr("y",Co+13.5).attr("width",Fo.width+2*2).attr("height",Fo.height+2*2),dir==="TB"&&(Mo.attr("x",$o-(Fo.width+4*4+5)).attr("y",Co-12),Bo.attr("x",$o-(Fo.width+4*4)).attr("y",Co+Fo.height-12)),dir!=="TB"&&Bo.attr("x",ko-Fo.width/2),io.rotateCommitLabel)if(dir==="TB")Bo.attr("transform","rotate(-45, "+$o+", "+Co+")"),Mo.attr("transform","rotate(-45, "+$o+", "+Co+")");else{let Lo=-7.5-(Fo.width+10)/25*9.5,Go=10+Fo.width/25*8.5;No.attr("transform","translate("+Lo+", "+Go+") rotate(-45, "+lo+", "+Co+")")}}if(_o.tag){const No=ao.insert("polygon"),Mo=ao.append("circle"),Bo=ao.append("text").attr("y",Co-16).attr("class","tag-label").text(_o.tag);let Fo=Bo.node().getBBox();Bo.attr("x",ko-Fo.width/2);const Lo=Fo.height/2,Go=Co-19.2;No.attr("class","tag-label-bkg").attr("points",` + ${lo-Fo.width/2-4/2},${Go+2} + ${lo-Fo.width/2-4/2},${Go-2} + ${ko-Fo.width/2-4},${Go-Lo-2} + ${ko+Fo.width/2+4},${Go-Lo-2} + ${ko+Fo.width/2+4},${Go+Lo+2} + ${ko-Fo.width/2-4},${Go+Lo+2}`),Mo.attr("cx",lo-Fo.width/2+4/2).attr("cy",Go).attr("r",1.5).attr("class","tag-hole"),dir==="TB"&&(No.attr("class","tag-label-bkg").attr("points",` ${$o},${lo+2} ${$o},${lo-2} ${$o+mo},${lo-Lo-2} - ${$o+mo+Po.width+4},${lo-Lo-2} - ${$o+mo+Po.width+4},${lo+Lo+2} + ${$o+mo+Fo.width+4},${lo-Lo-2} + ${$o+mo+Fo.width+4},${lo+Lo+2} ${$o+mo},${lo+Lo+2}`).attr("transform","translate(12,12) rotate(45, "+$o+","+lo+")"),Mo.attr("cx",$o+4/2).attr("cy",lo).attr("transform","translate(12,12) rotate(45, "+$o+","+lo+")"),Bo.attr("x",$o+5).attr("y",lo+3).attr("transform","translate(14,14) rotate(45, "+$o+","+lo+")"))}}lo+=yo+mo,lo>maxPos&&(maxPos=lo)})},shouldRerouteArrow=(eo,to,no,io,so)=>{const lo=(dir==="TB"?no.xgo.branch===lo,ho=go=>go.seq>eo.seq&&go.seqho(go)&&uo(go))},findLane=(eo,to,no=0)=>{const io=eo+Math.abs(eo-to)/2;if(no>5)return io;if(lanes.every(lo=>Math.abs(lo-io)>=10))return lanes.push(io),io;const ao=Math.abs(eo-to);return findLane(eo,to-ao/5,no+1)},drawArrow=(eo,to,no,io)=>{const so=commitPos[to.id],ao=commitPos[no.id],lo=shouldRerouteArrow(to,no,so,ao,io);let uo="",ho="",go=0,mo=0,yo=branchPos[no.branch].index;no.type===commitType.MERGE&&to.id!==no.parents[0]&&(yo=branchPos[to.branch].index);let So;if(lo){uo="A 10 10, 0, 0, 0,",ho="A 10 10, 0, 0, 1,",go=10,mo=10;const _o=so.yao.x&&(uo="A 20 20, 0, 0, 0,",ho="A 20 20, 0, 0, 1,",go=20,mo=20,no.type===commitType.MERGE&&to.id!==no.parents[0]?So=`M ${so.x} ${so.y} L ${so.x} ${ao.y-go} ${ho} ${so.x-mo} ${ao.y} L ${ao.x} ${ao.y}`:So=`M ${so.x} ${so.y} L ${ao.x+go} ${so.y} ${uo} ${ao.x} ${so.y+mo} L ${ao.x} ${ao.y}`),so.x===ao.x&&(So=`M ${so.x} ${so.y} L ${ao.x} ${ao.y}`)):(so.yao.y&&(no.type===commitType.MERGE&&to.id!==no.parents[0]?So=`M ${so.x} ${so.y} L ${ao.x-go} ${so.y} ${uo} ${ao.x} ${so.y-mo} L ${ao.x} ${ao.y}`:So=`M ${so.x} ${so.y} L ${so.x} ${ao.y+go} ${ho} ${so.x+mo} ${ao.y} L ${ao.x} ${ao.y}`),so.y===ao.y&&(So=`M ${so.x} ${so.y} L ${ao.x} ${ao.y}`));eo.append("path").attr("d",So).attr("class","arrow arrow"+yo%THEME_COLOR_LIMIT)},drawArrows=(eo,to)=>{const no=eo.append("g").attr("class","commit-arrows");Object.keys(to).forEach(io=>{const so=to[io];so.parents&&so.parents.length>0&&so.parents.forEach(ao=>{drawArrow(no,to[ao],so,to)})})},drawBranches=(eo,to)=>{const no=getConfig$2().gitGraph,io=eo.append("g");to.forEach((so,ao)=>{const lo=ao%THEME_COLOR_LIMIT,uo=branchPos[so.name].pos,ho=io.append("line");ho.attr("x1",0),ho.attr("y1",uo),ho.attr("x2",maxPos),ho.attr("y2",uo),ho.attr("class","branch branch"+lo),dir==="TB"&&(ho.attr("y1",30),ho.attr("x1",uo),ho.attr("y2",maxPos),ho.attr("x2",uo)),lanes.push(uo);let go=so.name;const mo=drawText$3(go),yo=io.insert("rect"),_o=io.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+lo);_o.node().appendChild(mo);let ko=mo.getBBox();yo.attr("class","branchLabelBkg label"+lo).attr("rx",4).attr("ry",4).attr("x",-ko.width-4-(no.rotateCommitLabel===!0?30:0)).attr("y",-ko.height/2+8).attr("width",ko.width+18).attr("height",ko.height+4),_o.attr("transform","translate("+(-ko.width-14-(no.rotateCommitLabel===!0?30:0))+", "+(uo-ko.height/2-1)+")"),dir==="TB"&&(yo.attr("x",uo-ko.width/2-10).attr("y",0),_o.attr("transform","translate("+(uo-ko.width/2-5)+", 0)")),dir!=="TB"&&yo.attr("transform","translate(-19, "+(uo-ko.height/2)+")")})},draw$h=function(eo,to,no,io){clear$e();const so=getConfig$2(),ao=so.gitGraph;log$1.debug("in gitgraph renderer",eo+` `,"id:",to,no),allCommitsDict=io.db.getCommits();const lo=io.db.getBranchesAsObjArray();dir=io.db.getDirection();const uo=select(`[id="${to}"]`);let ho=0;lo.forEach((go,mo)=>{const yo=drawText$3(go.name),So=uo.append("g"),_o=So.insert("g").attr("class","branchLabel"),ko=_o.insert("g").attr("class","label branch-label");ko.node().appendChild(yo);let Co=yo.getBBox();branchPos[go.name]={pos:ho,index:mo},ho+=50+(ao.rotateCommitLabel?40:0)+(dir==="TB"?Co.width/2:0),ko.remove(),_o.remove(),So.remove()}),drawCommits(uo,allCommitsDict,!1),ao.showBranches&&drawBranches(uo,lo),drawArrows(uo,allCommitsDict),drawCommits(uo,allCommitsDict,!0),utils$1.insertTitle(uo,"gitTitleText",ao.titleTopMargin,io.db.getDiagramTitle()),setupGraphViewbox(void 0,uo,ao.diagramPadding,ao.useMaxWidth??so.useMaxWidth)},gitGraphRenderer={draw:draw$h},getStyles$b=eo=>` .commit-id, @@ -2546,12 +2546,12 @@ Expecting `+yl.join(", ")+", got '"+(this.terminals_[Ws]||Ws)+"'":Gl="Parse erro font-size: 18px; fill: ${eo.textColor}; } -`,gitGraphStyles=getStyles$b,diagram$h={parser:gitGraphParser,db:gitGraphDb,renderer:gitGraphRenderer,styles:gitGraphStyles},gitGraphDiagram96e6b4ee=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$h},Symbol.toStringTag,{value:"Module"}));var isoWeek={exports:{}};(function(eo,to){(function(no,io){eo.exports=io()})(commonjsGlobal$1,function(){var no="day";return function(io,so,ao){var lo=function(go){return go.add(4-go.isoWeekday(),no)},uo=so.prototype;uo.isoWeekYear=function(){return lo(this).year()},uo.isoWeek=function(go){if(!this.$utils().u(go))return this.add(7*(go-this.isoWeek()),no);var mo,yo,So,_o,ko=lo(this),Co=(mo=this.isoWeekYear(),yo=this.$u,So=(yo?ao.utc:ao)().year(mo).startOf("year"),_o=4-So.isoWeekday(),So.isoWeekday()>4&&(_o+=7),So.add(_o,no));return ko.diff(Co,"week")+1},uo.isoWeekday=function(go){return this.$utils().u(go)?this.day()||7:this.day(this.day()%7?go:go-7)};var ho=uo.startOf;uo.startOf=function(go,mo){var yo=this.$utils(),So=!!yo.u(mo)||mo;return yo.p(go)==="isoweek"?So?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):ho.bind(this)(go,mo)}}})})(isoWeek);var isoWeekExports=isoWeek.exports;const dayjsIsoWeek=getDefaultExportFromCjs(isoWeekExports);var customParseFormat={exports:{}};(function(eo,to){(function(no,io){eo.exports=io()})(commonjsGlobal$1,function(){var no={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},io=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,so=/\d\d/,ao=/\d\d?/,lo=/\d*[^-_:/,()\s\d]+/,uo={},ho=function(Co){return(Co=+Co)+(Co>68?1900:2e3)},go=function(Co){return function($o){this[Co]=+$o}},mo=[/[+-]\d\d:?(\d\d)?|Z/,function(Co){(this.zone||(this.zone={})).offset=function($o){if(!$o||$o==="Z")return 0;var Ro=$o.match(/([+-]|\d\d)/g),Oo=60*Ro[1]+(+Ro[2]||0);return Oo===0?0:Ro[0]==="+"?-Oo:Oo}(Co)}],yo=function(Co){var $o=uo[Co];return $o&&($o.indexOf?$o:$o.s.concat($o.f))},So=function(Co,$o){var Ro,Oo=uo.meridiem;if(Oo){for(var No=1;No<=24;No+=1)if(Co.indexOf(Oo(No,0,$o))>-1){Ro=No>12;break}}else Ro=Co===($o?"pm":"PM");return Ro},_o={A:[lo,function(Co){this.afternoon=So(Co,!1)}],a:[lo,function(Co){this.afternoon=So(Co,!0)}],S:[/\d/,function(Co){this.milliseconds=100*+Co}],SS:[so,function(Co){this.milliseconds=10*+Co}],SSS:[/\d{3}/,function(Co){this.milliseconds=+Co}],s:[ao,go("seconds")],ss:[ao,go("seconds")],m:[ao,go("minutes")],mm:[ao,go("minutes")],H:[ao,go("hours")],h:[ao,go("hours")],HH:[ao,go("hours")],hh:[ao,go("hours")],D:[ao,go("day")],DD:[so,go("day")],Do:[lo,function(Co){var $o=uo.ordinal,Ro=Co.match(/\d+/);if(this.day=Ro[0],$o)for(var Oo=1;Oo<=31;Oo+=1)$o(Oo).replace(/\[|\]/g,"")===Co&&(this.day=Oo)}],M:[ao,go("month")],MM:[so,go("month")],MMM:[lo,function(Co){var $o=yo("months"),Ro=(yo("monthsShort")||$o.map(function(Oo){return Oo.slice(0,3)})).indexOf(Co)+1;if(Ro<1)throw new Error;this.month=Ro%12||Ro}],MMMM:[lo,function(Co){var $o=yo("months").indexOf(Co)+1;if($o<1)throw new Error;this.month=$o%12||$o}],Y:[/[+-]?\d+/,go("year")],YY:[so,function(Co){this.year=ho(Co)}],YYYY:[/\d{4}/,go("year")],Z:mo,ZZ:mo};function ko(Co){var $o,Ro;$o=Co,Ro=uo&&uo.formats;for(var Oo=(Co=$o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Do,Uo,Ho){var Yo=Ho&&Ho.toUpperCase();return Uo||Ro[Ho]||no[Ho]||Ro[Yo].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(qo,Jo,ps){return Jo||ps.slice(1)})})).match(io),No=Oo.length,Mo=0;Mo-1)return new Date((hs==="X"?1e3:1)*Qo);var ys=ko(hs)(Qo),vs=ys.year,ks=ys.month,Os=ys.day,Ts=ys.hours,Xs=ys.minutes,Ws=ys.seconds,Ps=ys.milliseconds,qs=ys.zone,ga=new Date,Fs=Os||(vs||ks?1:ga.getDate()),Js=vs||ga.getFullYear(),Vs=0;vs&&!ks||(Vs=ks>0?ks-1:ga.getMonth());var El=Ts||0,yl=Xs||0,Gl=Ws||0,Qs=Ps||0;return qs?new Date(Date.UTC(Js,Vs,Fs,El,yl,Gl,Qs+60*qs.offset*1e3)):gs?new Date(Date.UTC(Js,Vs,Fs,El,yl,Gl,Qs)):new Date(Js,Vs,Fs,El,yl,Gl,Qs)}catch{return new Date("")}}(Bo,Go,Po),this.init(),Yo&&Yo!==!0&&(this.$L=this.locale(Yo).$L),Ho&&Bo!=this.format(Go)&&(this.$d=new Date("")),uo={}}else if(Go instanceof Array)for(var qo=Go.length,Jo=1;Jo<=qo;Jo+=1){Lo[1]=Go[Jo-1];var ps=Ro.apply(this,Lo);if(ps.isValid()){this.$d=ps.$d,this.$L=ps.$L,this.init();break}Jo===qo&&(this.$d=new Date(""))}else No.call(this,Mo)}}})})(customParseFormat);var customParseFormatExports=customParseFormat.exports;const dayjsCustomParseFormat=getDefaultExportFromCjs(customParseFormatExports);var advancedFormat={exports:{}};(function(eo,to){(function(no,io){eo.exports=io()})(commonjsGlobal$1,function(){return function(no,io){var so=io.prototype,ao=so.format;so.format=function(lo){var uo=this,ho=this.$locale();if(!this.isValid())return ao.bind(this)(lo);var go=this.$utils(),mo=(lo||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(yo){switch(yo){case"Q":return Math.ceil((uo.$M+1)/3);case"Do":return ho.ordinal(uo.$D);case"gggg":return uo.weekYear();case"GGGG":return uo.isoWeekYear();case"wo":return ho.ordinal(uo.week(),"W");case"w":case"ww":return go.s(uo.week(),yo==="w"?1:2,"0");case"W":case"WW":return go.s(uo.isoWeek(),yo==="W"?1:2,"0");case"k":case"kk":return go.s(String(uo.$H===0?24:uo.$H),yo==="k"?1:2,"0");case"X":return Math.floor(uo.$d.getTime()/1e3);case"x":return uo.$d.getTime();case"z":return"["+uo.offsetName()+"]";case"zzz":return"["+uo.offsetName("long")+"]";default:return yo}});return ao.bind(this)(mo)}}})})(advancedFormat);var advancedFormatExports=advancedFormat.exports;const dayjsAdvancedFormat=getDefaultExportFromCjs(advancedFormatExports);var parser$e=function(){var eo=function(Ho,Yo,qo,Jo){for(qo=qo||{},Jo=Ho.length;Jo--;qo[Ho[Jo]]=Yo);return qo},to=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],no=[1,25],io=[1,26],so=[1,27],ao=[1,28],lo=[1,29],uo=[1,30],ho=[1,31],go=[1,9],mo=[1,10],yo=[1,11],So=[1,12],_o=[1,13],ko=[1,14],Co=[1,15],$o=[1,16],Ro=[1,18],Oo=[1,19],No=[1,20],Mo=[1,21],Bo=[1,22],Po=[1,24],Lo=[1,32],Go={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(Yo,qo,Jo,ps,Qo,hs,gs){var ys=hs.length-1;switch(Qo){case 1:return hs[ys-1];case 2:this.$=[];break;case 3:hs[ys-1].push(hs[ys]),this.$=hs[ys-1];break;case 4:case 5:this.$=hs[ys];break;case 6:case 7:this.$=[];break;case 8:ps.setWeekday("monday");break;case 9:ps.setWeekday("tuesday");break;case 10:ps.setWeekday("wednesday");break;case 11:ps.setWeekday("thursday");break;case 12:ps.setWeekday("friday");break;case 13:ps.setWeekday("saturday");break;case 14:ps.setWeekday("sunday");break;case 15:ps.setDateFormat(hs[ys].substr(11)),this.$=hs[ys].substr(11);break;case 16:ps.enableInclusiveEndDates(),this.$=hs[ys].substr(18);break;case 17:ps.TopAxis(),this.$=hs[ys].substr(8);break;case 18:ps.setAxisFormat(hs[ys].substr(11)),this.$=hs[ys].substr(11);break;case 19:ps.setTickInterval(hs[ys].substr(13)),this.$=hs[ys].substr(13);break;case 20:ps.setExcludes(hs[ys].substr(9)),this.$=hs[ys].substr(9);break;case 21:ps.setIncludes(hs[ys].substr(9)),this.$=hs[ys].substr(9);break;case 22:ps.setTodayMarker(hs[ys].substr(12)),this.$=hs[ys].substr(12);break;case 24:ps.setDiagramTitle(hs[ys].substr(6)),this.$=hs[ys].substr(6);break;case 25:this.$=hs[ys].trim(),ps.setAccTitle(this.$);break;case 26:case 27:this.$=hs[ys].trim(),ps.setAccDescription(this.$);break;case 28:ps.addSection(hs[ys].substr(8)),this.$=hs[ys].substr(8);break;case 30:ps.addTask(hs[ys-1],hs[ys]),this.$="task";break;case 31:this.$=hs[ys-1],ps.setClickEvent(hs[ys-1],hs[ys],null);break;case 32:this.$=hs[ys-2],ps.setClickEvent(hs[ys-2],hs[ys-1],hs[ys]);break;case 33:this.$=hs[ys-2],ps.setClickEvent(hs[ys-2],hs[ys-1],null),ps.setLink(hs[ys-2],hs[ys]);break;case 34:this.$=hs[ys-3],ps.setClickEvent(hs[ys-3],hs[ys-2],hs[ys-1]),ps.setLink(hs[ys-3],hs[ys]);break;case 35:this.$=hs[ys-2],ps.setClickEvent(hs[ys-2],hs[ys],null),ps.setLink(hs[ys-2],hs[ys-1]);break;case 36:this.$=hs[ys-3],ps.setClickEvent(hs[ys-3],hs[ys-1],hs[ys]),ps.setLink(hs[ys-3],hs[ys-2]);break;case 37:this.$=hs[ys-1],ps.setLink(hs[ys-1],hs[ys]);break;case 38:case 44:this.$=hs[ys-1]+" "+hs[ys];break;case 39:case 40:case 42:this.$=hs[ys-2]+" "+hs[ys-1]+" "+hs[ys];break;case 41:case 43:this.$=hs[ys-3]+" "+hs[ys-2]+" "+hs[ys-1]+" "+hs[ys];break}},table:[{3:1,4:[1,2]},{1:[3]},eo(to,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:no,13:io,14:so,15:ao,16:lo,17:uo,18:ho,19:go,20:mo,21:yo,22:So,23:_o,24:ko,25:Co,26:$o,27:Ro,28:Oo,30:No,32:Mo,33:Bo,34:23,35:Po,37:Lo},eo(to,[2,7],{1:[2,1]}),eo(to,[2,3]),{9:33,11:17,12:no,13:io,14:so,15:ao,16:lo,17:uo,18:ho,19:go,20:mo,21:yo,22:So,23:_o,24:ko,25:Co,26:$o,27:Ro,28:Oo,30:No,32:Mo,33:Bo,34:23,35:Po,37:Lo},eo(to,[2,5]),eo(to,[2,6]),eo(to,[2,15]),eo(to,[2,16]),eo(to,[2,17]),eo(to,[2,18]),eo(to,[2,19]),eo(to,[2,20]),eo(to,[2,21]),eo(to,[2,22]),eo(to,[2,23]),eo(to,[2,24]),{29:[1,34]},{31:[1,35]},eo(to,[2,27]),eo(to,[2,28]),eo(to,[2,29]),{36:[1,36]},eo(to,[2,8]),eo(to,[2,9]),eo(to,[2,10]),eo(to,[2,11]),eo(to,[2,12]),eo(to,[2,13]),eo(to,[2,14]),{38:[1,37],40:[1,38]},eo(to,[2,4]),eo(to,[2,25]),eo(to,[2,26]),eo(to,[2,30]),eo(to,[2,31],{39:[1,39],40:[1,40]}),eo(to,[2,37],{38:[1,41]}),eo(to,[2,32],{40:[1,42]}),eo(to,[2,33]),eo(to,[2,35],{39:[1,43]}),eo(to,[2,34]),eo(to,[2,36])],defaultActions:{},parseError:function(Yo,qo){if(qo.recoverable)this.trace(Yo);else{var Jo=new Error(Yo);throw Jo.hash=qo,Jo}},parse:function(Yo){var qo=this,Jo=[0],ps=[],Qo=[null],hs=[],gs=this.table,ys="",vs=0,ks=0,Os=2,Ts=1,Xs=hs.slice.call(arguments,1),Ws=Object.create(this.lexer),Ps={yy:{}};for(var qs in this.yy)Object.prototype.hasOwnProperty.call(this.yy,qs)&&(Ps.yy[qs]=this.yy[qs]);Ws.setInput(Yo,Ps.yy),Ps.yy.lexer=Ws,Ps.yy.parser=this,typeof Ws.yylloc>"u"&&(Ws.yylloc={});var ga=Ws.yylloc;hs.push(ga);var Fs=Ws.options&&Ws.options.ranges;typeof Ps.yy.parseError=="function"?this.parseError=Ps.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Js(){var y1;return y1=ps.pop()||Ws.lex()||Ts,typeof y1!="number"&&(y1 instanceof Array&&(ps=y1,y1=ps.pop()),y1=qo.symbols_[y1]||y1),y1}for(var Vs,El,yl,Gl,Qs={},du,Ol,Fu,ju;;){if(El=Jo[Jo.length-1],this.defaultActions[El]?yl=this.defaultActions[El]:((Vs===null||typeof Vs>"u")&&(Vs=Js()),yl=gs[El]&&gs[El][Vs]),typeof yl>"u"||!yl.length||!yl[0]){var F1="";ju=[];for(du in gs[El])this.terminals_[du]&&du>Os&&ju.push("'"+this.terminals_[du]+"'");Ws.showPosition?F1="Parse error on line "+(vs+1)+`: +`,gitGraphStyles=getStyles$b,diagram$h={parser:gitGraphParser,db:gitGraphDb,renderer:gitGraphRenderer,styles:gitGraphStyles},gitGraphDiagram96e6b4ee=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$h},Symbol.toStringTag,{value:"Module"}));var isoWeek={exports:{}};(function(eo,to){(function(no,io){eo.exports=io()})(commonjsGlobal$1,function(){var no="day";return function(io,so,ao){var lo=function(go){return go.add(4-go.isoWeekday(),no)},uo=so.prototype;uo.isoWeekYear=function(){return lo(this).year()},uo.isoWeek=function(go){if(!this.$utils().u(go))return this.add(7*(go-this.isoWeek()),no);var mo,yo,So,_o,ko=lo(this),Co=(mo=this.isoWeekYear(),yo=this.$u,So=(yo?ao.utc:ao)().year(mo).startOf("year"),_o=4-So.isoWeekday(),So.isoWeekday()>4&&(_o+=7),So.add(_o,no));return ko.diff(Co,"week")+1},uo.isoWeekday=function(go){return this.$utils().u(go)?this.day()||7:this.day(this.day()%7?go:go-7)};var ho=uo.startOf;uo.startOf=function(go,mo){var yo=this.$utils(),So=!!yo.u(mo)||mo;return yo.p(go)==="isoweek"?So?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):ho.bind(this)(go,mo)}}})})(isoWeek);var isoWeekExports=isoWeek.exports;const dayjsIsoWeek=getDefaultExportFromCjs(isoWeekExports);var customParseFormat={exports:{}};(function(eo,to){(function(no,io){eo.exports=io()})(commonjsGlobal$1,function(){var no={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},io=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,so=/\d\d/,ao=/\d\d?/,lo=/\d*[^-_:/,()\s\d]+/,uo={},ho=function(Co){return(Co=+Co)+(Co>68?1900:2e3)},go=function(Co){return function($o){this[Co]=+$o}},mo=[/[+-]\d\d:?(\d\d)?|Z/,function(Co){(this.zone||(this.zone={})).offset=function($o){if(!$o||$o==="Z")return 0;var Ro=$o.match(/([+-]|\d\d)/g),Oo=60*Ro[1]+(+Ro[2]||0);return Oo===0?0:Ro[0]==="+"?-Oo:Oo}(Co)}],yo=function(Co){var $o=uo[Co];return $o&&($o.indexOf?$o:$o.s.concat($o.f))},So=function(Co,$o){var Ro,Oo=uo.meridiem;if(Oo){for(var No=1;No<=24;No+=1)if(Co.indexOf(Oo(No,0,$o))>-1){Ro=No>12;break}}else Ro=Co===($o?"pm":"PM");return Ro},_o={A:[lo,function(Co){this.afternoon=So(Co,!1)}],a:[lo,function(Co){this.afternoon=So(Co,!0)}],S:[/\d/,function(Co){this.milliseconds=100*+Co}],SS:[so,function(Co){this.milliseconds=10*+Co}],SSS:[/\d{3}/,function(Co){this.milliseconds=+Co}],s:[ao,go("seconds")],ss:[ao,go("seconds")],m:[ao,go("minutes")],mm:[ao,go("minutes")],H:[ao,go("hours")],h:[ao,go("hours")],HH:[ao,go("hours")],hh:[ao,go("hours")],D:[ao,go("day")],DD:[so,go("day")],Do:[lo,function(Co){var $o=uo.ordinal,Ro=Co.match(/\d+/);if(this.day=Ro[0],$o)for(var Oo=1;Oo<=31;Oo+=1)$o(Oo).replace(/\[|\]/g,"")===Co&&(this.day=Oo)}],M:[ao,go("month")],MM:[so,go("month")],MMM:[lo,function(Co){var $o=yo("months"),Ro=(yo("monthsShort")||$o.map(function(Oo){return Oo.slice(0,3)})).indexOf(Co)+1;if(Ro<1)throw new Error;this.month=Ro%12||Ro}],MMMM:[lo,function(Co){var $o=yo("months").indexOf(Co)+1;if($o<1)throw new Error;this.month=$o%12||$o}],Y:[/[+-]?\d+/,go("year")],YY:[so,function(Co){this.year=ho(Co)}],YYYY:[/\d{4}/,go("year")],Z:mo,ZZ:mo};function ko(Co){var $o,Ro;$o=Co,Ro=uo&&uo.formats;for(var Oo=(Co=$o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Do,Uo,Ho){var Yo=Ho&&Ho.toUpperCase();return Uo||Ro[Ho]||no[Ho]||Ro[Yo].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(qo,Jo,ps){return Jo||ps.slice(1)})})).match(io),No=Oo.length,Mo=0;Mo-1)return new Date((hs==="X"?1e3:1)*Qo);var ys=ko(hs)(Qo),vs=ys.year,ks=ys.month,Os=ys.day,Ts=ys.hours,Xs=ys.minutes,Ws=ys.seconds,Ps=ys.milliseconds,qs=ys.zone,ga=new Date,Fs=Os||(vs||ks?1:ga.getDate()),Js=vs||ga.getFullYear(),Vs=0;vs&&!ks||(Vs=ks>0?ks-1:ga.getMonth());var El=Ts||0,yl=Xs||0,Gl=Ws||0,Qs=Ps||0;return qs?new Date(Date.UTC(Js,Vs,Fs,El,yl,Gl,Qs+60*qs.offset*1e3)):gs?new Date(Date.UTC(Js,Vs,Fs,El,yl,Gl,Qs)):new Date(Js,Vs,Fs,El,yl,Gl,Qs)}catch{return new Date("")}}(Bo,Go,Fo),this.init(),Yo&&Yo!==!0&&(this.$L=this.locale(Yo).$L),Ho&&Bo!=this.format(Go)&&(this.$d=new Date("")),uo={}}else if(Go instanceof Array)for(var qo=Go.length,Jo=1;Jo<=qo;Jo+=1){Lo[1]=Go[Jo-1];var ps=Ro.apply(this,Lo);if(ps.isValid()){this.$d=ps.$d,this.$L=ps.$L,this.init();break}Jo===qo&&(this.$d=new Date(""))}else No.call(this,Mo)}}})})(customParseFormat);var customParseFormatExports=customParseFormat.exports;const dayjsCustomParseFormat=getDefaultExportFromCjs(customParseFormatExports);var advancedFormat={exports:{}};(function(eo,to){(function(no,io){eo.exports=io()})(commonjsGlobal$1,function(){return function(no,io){var so=io.prototype,ao=so.format;so.format=function(lo){var uo=this,ho=this.$locale();if(!this.isValid())return ao.bind(this)(lo);var go=this.$utils(),mo=(lo||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(yo){switch(yo){case"Q":return Math.ceil((uo.$M+1)/3);case"Do":return ho.ordinal(uo.$D);case"gggg":return uo.weekYear();case"GGGG":return uo.isoWeekYear();case"wo":return ho.ordinal(uo.week(),"W");case"w":case"ww":return go.s(uo.week(),yo==="w"?1:2,"0");case"W":case"WW":return go.s(uo.isoWeek(),yo==="W"?1:2,"0");case"k":case"kk":return go.s(String(uo.$H===0?24:uo.$H),yo==="k"?1:2,"0");case"X":return Math.floor(uo.$d.getTime()/1e3);case"x":return uo.$d.getTime();case"z":return"["+uo.offsetName()+"]";case"zzz":return"["+uo.offsetName("long")+"]";default:return yo}});return ao.bind(this)(mo)}}})})(advancedFormat);var advancedFormatExports=advancedFormat.exports;const dayjsAdvancedFormat=getDefaultExportFromCjs(advancedFormatExports);var parser$e=function(){var eo=function(Ho,Yo,qo,Jo){for(qo=qo||{},Jo=Ho.length;Jo--;qo[Ho[Jo]]=Yo);return qo},to=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],no=[1,25],io=[1,26],so=[1,27],ao=[1,28],lo=[1,29],uo=[1,30],ho=[1,31],go=[1,9],mo=[1,10],yo=[1,11],So=[1,12],_o=[1,13],ko=[1,14],Co=[1,15],$o=[1,16],Ro=[1,18],Oo=[1,19],No=[1,20],Mo=[1,21],Bo=[1,22],Fo=[1,24],Lo=[1,32],Go={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(Yo,qo,Jo,ps,Qo,hs,gs){var ys=hs.length-1;switch(Qo){case 1:return hs[ys-1];case 2:this.$=[];break;case 3:hs[ys-1].push(hs[ys]),this.$=hs[ys-1];break;case 4:case 5:this.$=hs[ys];break;case 6:case 7:this.$=[];break;case 8:ps.setWeekday("monday");break;case 9:ps.setWeekday("tuesday");break;case 10:ps.setWeekday("wednesday");break;case 11:ps.setWeekday("thursday");break;case 12:ps.setWeekday("friday");break;case 13:ps.setWeekday("saturday");break;case 14:ps.setWeekday("sunday");break;case 15:ps.setDateFormat(hs[ys].substr(11)),this.$=hs[ys].substr(11);break;case 16:ps.enableInclusiveEndDates(),this.$=hs[ys].substr(18);break;case 17:ps.TopAxis(),this.$=hs[ys].substr(8);break;case 18:ps.setAxisFormat(hs[ys].substr(11)),this.$=hs[ys].substr(11);break;case 19:ps.setTickInterval(hs[ys].substr(13)),this.$=hs[ys].substr(13);break;case 20:ps.setExcludes(hs[ys].substr(9)),this.$=hs[ys].substr(9);break;case 21:ps.setIncludes(hs[ys].substr(9)),this.$=hs[ys].substr(9);break;case 22:ps.setTodayMarker(hs[ys].substr(12)),this.$=hs[ys].substr(12);break;case 24:ps.setDiagramTitle(hs[ys].substr(6)),this.$=hs[ys].substr(6);break;case 25:this.$=hs[ys].trim(),ps.setAccTitle(this.$);break;case 26:case 27:this.$=hs[ys].trim(),ps.setAccDescription(this.$);break;case 28:ps.addSection(hs[ys].substr(8)),this.$=hs[ys].substr(8);break;case 30:ps.addTask(hs[ys-1],hs[ys]),this.$="task";break;case 31:this.$=hs[ys-1],ps.setClickEvent(hs[ys-1],hs[ys],null);break;case 32:this.$=hs[ys-2],ps.setClickEvent(hs[ys-2],hs[ys-1],hs[ys]);break;case 33:this.$=hs[ys-2],ps.setClickEvent(hs[ys-2],hs[ys-1],null),ps.setLink(hs[ys-2],hs[ys]);break;case 34:this.$=hs[ys-3],ps.setClickEvent(hs[ys-3],hs[ys-2],hs[ys-1]),ps.setLink(hs[ys-3],hs[ys]);break;case 35:this.$=hs[ys-2],ps.setClickEvent(hs[ys-2],hs[ys],null),ps.setLink(hs[ys-2],hs[ys-1]);break;case 36:this.$=hs[ys-3],ps.setClickEvent(hs[ys-3],hs[ys-1],hs[ys]),ps.setLink(hs[ys-3],hs[ys-2]);break;case 37:this.$=hs[ys-1],ps.setLink(hs[ys-1],hs[ys]);break;case 38:case 44:this.$=hs[ys-1]+" "+hs[ys];break;case 39:case 40:case 42:this.$=hs[ys-2]+" "+hs[ys-1]+" "+hs[ys];break;case 41:case 43:this.$=hs[ys-3]+" "+hs[ys-2]+" "+hs[ys-1]+" "+hs[ys];break}},table:[{3:1,4:[1,2]},{1:[3]},eo(to,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:no,13:io,14:so,15:ao,16:lo,17:uo,18:ho,19:go,20:mo,21:yo,22:So,23:_o,24:ko,25:Co,26:$o,27:Ro,28:Oo,30:No,32:Mo,33:Bo,34:23,35:Fo,37:Lo},eo(to,[2,7],{1:[2,1]}),eo(to,[2,3]),{9:33,11:17,12:no,13:io,14:so,15:ao,16:lo,17:uo,18:ho,19:go,20:mo,21:yo,22:So,23:_o,24:ko,25:Co,26:$o,27:Ro,28:Oo,30:No,32:Mo,33:Bo,34:23,35:Fo,37:Lo},eo(to,[2,5]),eo(to,[2,6]),eo(to,[2,15]),eo(to,[2,16]),eo(to,[2,17]),eo(to,[2,18]),eo(to,[2,19]),eo(to,[2,20]),eo(to,[2,21]),eo(to,[2,22]),eo(to,[2,23]),eo(to,[2,24]),{29:[1,34]},{31:[1,35]},eo(to,[2,27]),eo(to,[2,28]),eo(to,[2,29]),{36:[1,36]},eo(to,[2,8]),eo(to,[2,9]),eo(to,[2,10]),eo(to,[2,11]),eo(to,[2,12]),eo(to,[2,13]),eo(to,[2,14]),{38:[1,37],40:[1,38]},eo(to,[2,4]),eo(to,[2,25]),eo(to,[2,26]),eo(to,[2,30]),eo(to,[2,31],{39:[1,39],40:[1,40]}),eo(to,[2,37],{38:[1,41]}),eo(to,[2,32],{40:[1,42]}),eo(to,[2,33]),eo(to,[2,35],{39:[1,43]}),eo(to,[2,34]),eo(to,[2,36])],defaultActions:{},parseError:function(Yo,qo){if(qo.recoverable)this.trace(Yo);else{var Jo=new Error(Yo);throw Jo.hash=qo,Jo}},parse:function(Yo){var qo=this,Jo=[0],ps=[],Qo=[null],hs=[],gs=this.table,ys="",vs=0,ks=0,Os=2,Ts=1,Xs=hs.slice.call(arguments,1),Ws=Object.create(this.lexer),Ps={yy:{}};for(var qs in this.yy)Object.prototype.hasOwnProperty.call(this.yy,qs)&&(Ps.yy[qs]=this.yy[qs]);Ws.setInput(Yo,Ps.yy),Ps.yy.lexer=Ws,Ps.yy.parser=this,typeof Ws.yylloc>"u"&&(Ws.yylloc={});var ga=Ws.yylloc;hs.push(ga);var Fs=Ws.options&&Ws.options.ranges;typeof Ps.yy.parseError=="function"?this.parseError=Ps.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Js(){var y1;return y1=ps.pop()||Ws.lex()||Ts,typeof y1!="number"&&(y1 instanceof Array&&(ps=y1,y1=ps.pop()),y1=qo.symbols_[y1]||y1),y1}for(var Vs,El,yl,Gl,Qs={},du,Ol,Fu,ju;;){if(El=Jo[Jo.length-1],this.defaultActions[El]?yl=this.defaultActions[El]:((Vs===null||typeof Vs>"u")&&(Vs=Js()),yl=gs[El]&&gs[El][Vs]),typeof yl>"u"||!yl.length||!yl[0]){var F1="";ju=[];for(du in gs[El])this.terminals_[du]&&du>Os&&ju.push("'"+this.terminals_[du]+"'");Ws.showPosition?F1="Parse error on line "+(vs+1)+`: `+Ws.showPosition()+` Expecting `+ju.join(", ")+", got '"+(this.terminals_[Vs]||Vs)+"'":F1="Parse error on line "+(vs+1)+": Unexpected "+(Vs==Ts?"end of input":"'"+(this.terminals_[Vs]||Vs)+"'"),this.parseError(F1,{text:Ws.match,token:this.terminals_[Vs]||Vs,line:Ws.yylineno,loc:ga,expected:ju})}if(yl[0]instanceof Array&&yl.length>1)throw new Error("Parse Error: multiple actions possible at state: "+El+", token: "+Vs);switch(yl[0]){case 1:Jo.push(Vs),Qo.push(Ws.yytext),hs.push(Ws.yylloc),Jo.push(yl[1]),Vs=null,ks=Ws.yyleng,ys=Ws.yytext,vs=Ws.yylineno,ga=Ws.yylloc;break;case 2:if(Ol=this.productions_[yl[1]][1],Qs.$=Qo[Qo.length-Ol],Qs._$={first_line:hs[hs.length-(Ol||1)].first_line,last_line:hs[hs.length-1].last_line,first_column:hs[hs.length-(Ol||1)].first_column,last_column:hs[hs.length-1].last_column},Fs&&(Qs._$.range=[hs[hs.length-(Ol||1)].range[0],hs[hs.length-1].range[1]]),Gl=this.performAction.apply(Qs,[ys,ks,vs,Ps.yy,yl[1],Qo,hs].concat(Xs)),typeof Gl<"u")return Gl;Ol&&(Jo=Jo.slice(0,-1*Ol*2),Qo=Qo.slice(0,-1*Ol),hs=hs.slice(0,-1*Ol)),Jo.push(this.productions_[yl[1]][0]),Qo.push(Qs.$),hs.push(Qs._$),Fu=gs[Jo[Jo.length-2]][Jo[Jo.length-1]],Jo.push(Fu);break;case 3:return!0}}return!0}},Do=function(){var Ho={EOF:1,parseError:function(qo,Jo){if(this.yy.parser)this.yy.parser.parseError(qo,Jo);else throw new Error(qo)},setInput:function(Yo,qo){return this.yy=qo||this.yy||{},this._input=Yo,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Yo=this._input[0];this.yytext+=Yo,this.yyleng++,this.offset++,this.match+=Yo,this.matched+=Yo;var qo=Yo.match(/(?:\r\n?|\n).*/g);return qo?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Yo},unput:function(Yo){var qo=Yo.length,Jo=Yo.split(/(?:\r\n?|\n)/g);this._input=Yo+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-qo),this.offset-=qo;var ps=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Jo.length-1&&(this.yylineno-=Jo.length-1);var Qo=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Jo?(Jo.length===ps.length?this.yylloc.first_column:0)+ps[ps.length-Jo.length].length-Jo[0].length:this.yylloc.first_column-qo},this.options.ranges&&(this.yylloc.range=[Qo[0],Qo[0]+this.yyleng-qo]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Yo){this.unput(this.match.slice(Yo))},pastInput:function(){var Yo=this.matched.substr(0,this.matched.length-this.match.length);return(Yo.length>20?"...":"")+Yo.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Yo=this.match;return Yo.length<20&&(Yo+=this._input.substr(0,20-Yo.length)),(Yo.substr(0,20)+(Yo.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Yo=this.pastInput(),qo=new Array(Yo.length+1).join("-");return Yo+this.upcomingInput()+` `+qo+"^"},test_match:function(Yo,qo){var Jo,ps,Qo;if(this.options.backtrack_lexer&&(Qo={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Qo.yylloc.range=this.yylloc.range.slice(0))),ps=Yo[0].match(/(?:\r\n?|\n).*/g),ps&&(this.yylineno+=ps.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ps?ps[ps.length-1].length-ps[ps.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Yo[0].length},this.yytext+=Yo[0],this.match+=Yo[0],this.matches=Yo,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Yo[0].length),this.matched+=Yo[0],Jo=this.performAction.call(this,this.yy,this,qo,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Jo)return Jo;if(this._backtrack){for(var hs in Qo)this[hs]=Qo[hs];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Yo,qo,Jo,ps;this._more||(this.yytext="",this.match="");for(var Qo=this._currentRules(),hs=0;hsqo[0].length)){if(qo=Jo,ps=hs,this.options.backtrack_lexer){if(Yo=this.test_match(Jo,Qo[hs]),Yo!==!1)return Yo;if(this._backtrack){qo=!1;continue}else return!1}else if(!this.options.flex)break}return qo?(Yo=this.test_match(qo,Qo[ps]),Yo!==!1?Yo:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var qo=this.next();return qo||this.lex()},begin:function(qo){this.conditionStack.push(qo)},popState:function(){var qo=this.conditionStack.length-1;return qo>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(qo){return qo=this.conditionStack.length-1-Math.abs(qo||0),qo>=0?this.conditionStack[qo]:"INITIAL"},pushState:function(qo){this.begin(qo)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(qo,Jo,ps,Qo){switch(ps){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return Ho}();Go.lexer=Do;function Uo(){this.yy={}}return Uo.prototype=Go,Go.Parser=Uo,new Uo}();parser$e.parser=parser$e;const ganttParser=parser$e;dayjs.extend(dayjsIsoWeek);dayjs.extend(dayjsCustomParseFormat);dayjs.extend(dayjsAdvancedFormat);let dateFormat="",axisFormat="",tickInterval,todayMarker="",includes=[],excludes=[],links$1={},sections$3=[],tasks$2=[],currentSection$2="",displayMode="";const tags=["active","done","crit","milestone"];let funs=[],inclusiveEndDates=!1,topAxis=!1,weekday="sunday",lastOrder=0;const clear$d=function(){sections$3=[],tasks$2=[],currentSection$2="",funs=[],taskCnt=0,lastTask=void 0,lastTaskID=void 0,rawTasks$2=[],dateFormat="",axisFormat="",displayMode="",tickInterval=void 0,todayMarker="",includes=[],excludes=[],inclusiveEndDates=!1,topAxis=!1,lastOrder=0,links$1={},clear$k(),weekday="sunday"},setAxisFormat=function(eo){axisFormat=eo},getAxisFormat=function(){return axisFormat},setTickInterval=function(eo){tickInterval=eo},getTickInterval=function(){return tickInterval},setTodayMarker=function(eo){todayMarker=eo},getTodayMarker=function(){return todayMarker},setDateFormat=function(eo){dateFormat=eo},enableInclusiveEndDates=function(){inclusiveEndDates=!0},endDatesAreInclusive=function(){return inclusiveEndDates},enableTopAxis=function(){topAxis=!0},topAxisEnabled=function(){return topAxis},setDisplayMode=function(eo){displayMode=eo},getDisplayMode=function(){return displayMode},getDateFormat=function(){return dateFormat},setIncludes=function(eo){includes=eo.toLowerCase().split(/[\s,]+/)},getIncludes=function(){return includes},setExcludes=function(eo){excludes=eo.toLowerCase().split(/[\s,]+/)},getExcludes=function(){return excludes},getLinks$1=function(){return links$1},addSection$3=function(eo){currentSection$2=eo,sections$3.push(eo)},getSections$3=function(){return sections$3},getTasks$2=function(){let eo=compileTasks$2();const to=10;let no=0;for(;!eo&&no=6&&no.includes("weekends")||no.includes(eo.format("dddd").toLowerCase())?!0:no.includes(eo.format(to.trim()))},setWeekday=function(eo){weekday=eo},getWeekday=function(){return weekday},checkTaskDates=function(eo,to,no,io){if(!no.length||eo.manualEndTime)return;let so;eo.startTime instanceof Date?so=dayjs(eo.startTime):so=dayjs(eo.startTime,to,!0),so=so.add(1,"d");let ao;eo.endTime instanceof Date?ao=dayjs(eo.endTime):ao=dayjs(eo.endTime,to,!0);const[lo,uo]=fixTaskDates(so,ao,to,no,io);eo.endTime=lo.toDate(),eo.renderEndTime=uo},fixTaskDates=function(eo,to,no,io,so){let ao=!1,lo=null;for(;eo<=to;)ao||(lo=to.toDate()),ao=isInvalidDate(eo,no,io,so),ao&&(to=to.add(1,"d")),eo=eo.add(1,"d");return[to,lo]},getStartDate=function(eo,to,no){no=no.trim();const so=/^after\s+(?[\d\w- ]+)/.exec(no);if(so!==null){let lo=null;for(const ho of so.groups.ids.split(" ")){let go=findTaskById(ho);go!==void 0&&(!lo||go.endTime>lo.endTime)&&(lo=go)}if(lo)return lo.endTime;const uo=new Date;return uo.setHours(0,0,0,0),uo}let ao=dayjs(no,to.trim(),!0);if(ao.isValid())return ao.toDate();{log$1.debug("Invalid date:"+no),log$1.debug("With date format:"+to.trim());const lo=new Date(no);if(lo===void 0||isNaN(lo.getTime())||lo.getFullYear()<-1e4||lo.getFullYear()>1e4)throw new Error("Invalid date:"+no);return lo}},parseDuration=function(eo){const to=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(eo.trim());return to!==null?[Number.parseFloat(to[1]),to[2]]:[NaN,"ms"]},getEndDate=function(eo,to,no,io=!1){no=no.trim();const ao=/^until\s+(?[\d\w- ]+)/.exec(no);if(ao!==null){let mo=null;for(const So of ao.groups.ids.split(" ")){let _o=findTaskById(So);_o!==void 0&&(!mo||_o.startTime{window.open(no,"_self")}),links$1[io]=no)}),setClass(eo,"clickable")},setClass=function(eo,to){eo.split(",").forEach(function(no){let io=findTaskById(no);io!==void 0&&io.classes.push(to)})},setClickFun=function(eo,to,no){if(getConfig$2().securityLevel!=="loose"||to===void 0)return;let io=[];if(typeof no=="string"){io=no.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let ao=0;ao{utils$1.runFunc(to,...io)})},pushFun=function(eo,to){funs.push(function(){const no=document.querySelector(`[id="${eo}"]`);no!==null&&no.addEventListener("click",function(){to()})},function(){const no=document.querySelector(`[id="${eo}-text"]`);no!==null&&no.addEventListener("click",function(){to()})})},setClickEvent$1=function(eo,to,no){eo.split(",").forEach(function(io){setClickFun(io,to,no)}),setClass(eo,"clickable")},bindFunctions$1=function(eo){funs.forEach(function(to){to(eo)})},ganttDb={getConfig:()=>getConfig$2().gantt,clear:clear$d,setDateFormat,getDateFormat,enableInclusiveEndDates,endDatesAreInclusive,enableTopAxis,topAxisEnabled,setAxisFormat,getAxisFormat,setTickInterval,getTickInterval,setTodayMarker,getTodayMarker,setAccTitle,getAccTitle,setDiagramTitle,getDiagramTitle,setDisplayMode,getDisplayMode,setAccDescription,getAccDescription,addSection:addSection$3,getSections:getSections$3,getTasks:getTasks$2,addTask:addTask$2,findTaskById,addTaskOrg:addTaskOrg$2,setIncludes,getIncludes,setExcludes,getExcludes,setClickEvent:setClickEvent$1,setLink:setLink$1,getLinks:getLinks$1,bindFunctions:bindFunctions$1,parseDuration,isInvalidDate,setWeekday,getWeekday};function getTaskTags(eo,to,no){let io=!0;for(;io;)io=!1,no.forEach(function(so){const ao="^\\s*"+so+"\\s*$",lo=new RegExp(ao);eo[0].match(lo)&&(to[so]=!0,eo.shift(1),io=!0)})}const setConf$5=function(){log$1.debug("Something is calling, setConf, remove the call")},mapWeekdayToTimeFunction={monday:timeMonday,tuesday:timeTuesday,wednesday:timeWednesday,thursday:timeThursday,friday:timeFriday,saturday:timeSaturday,sunday:timeSunday},getMaxIntersections=(eo,to)=>{let no=[...eo].map(()=>-1/0),io=[...eo].sort((ao,lo)=>ao.startTime-lo.startTime||ao.order-lo.order),so=0;for(const ao of io)for(let lo=0;lo=no[lo]){no[lo]=ao.endTime,ao.order=lo+to,lo>so&&(so=lo);break}return so};let w;const draw$g=function(eo,to,no,io){const so=getConfig$2().gantt,ao=getConfig$2().securityLevel;let lo;ao==="sandbox"&&(lo=select("#i"+to));const uo=select(ao==="sandbox"?lo.nodes()[0].contentDocument.body:"body"),ho=ao==="sandbox"?lo.nodes()[0].contentDocument:document,go=ho.getElementById(to);w=go.parentElement.offsetWidth,w===void 0&&(w=1200),so.useWidth!==void 0&&(w=so.useWidth);const mo=io.db.getTasks();let yo=[];for(const Go of mo)yo.push(Go.type);yo=Lo(yo);const So={};let _o=2*so.topPadding;if(io.db.getDisplayMode()==="compact"||so.displayMode==="compact"){const Go={};for(const Uo of mo)Go[Uo.section]===void 0?Go[Uo.section]=[Uo]:Go[Uo.section].push(Uo);let Do=0;for(const Uo of Object.keys(Go)){const Ho=getMaxIntersections(Go[Uo],Do)+1;Do+=Ho,_o+=Ho*(so.barHeight+so.barGap),So[Uo]=Ho}}else{_o+=mo.length*(so.barHeight+so.barGap);for(const Go of yo)So[Go]=mo.filter(Do=>Do.type===Go).length}go.setAttribute("viewBox","0 0 "+w+" "+_o);const ko=uo.select(`[id="${to}"]`),Co=time$1().domain([min$4(mo,function(Go){return Go.startTime}),max$4(mo,function(Go){return Go.endTime})]).rangeRound([0,w-so.leftPadding-so.rightPadding]);function $o(Go,Do){const Uo=Go.startTime,Ho=Do.startTime;let Yo=0;return Uo>Ho?Yo=1:Uovs.order))].map(vs=>Go.find(ks=>ks.order===vs));ko.append("g").selectAll("rect").data(Qo).enter().append("rect").attr("x",0).attr("y",function(vs,ks){return ks=vs.order,ks*Do+Uo-2}).attr("width",function(){return Jo-so.rightPadding/2}).attr("height",Do).attr("class",function(vs){for(const[ks,Os]of yo.entries())if(vs.type===Os)return"section section"+ks%so.numberSectionStyles;return"section section0"});const hs=ko.append("g").selectAll("rect").data(Go).enter(),gs=io.db.getLinks();if(hs.append("rect").attr("id",function(vs){return vs.id}).attr("rx",3).attr("ry",3).attr("x",function(vs){return vs.milestone?Co(vs.startTime)+Ho+.5*(Co(vs.endTime)-Co(vs.startTime))-.5*Yo:Co(vs.startTime)+Ho}).attr("y",function(vs,ks){return ks=vs.order,ks*Do+Uo}).attr("width",function(vs){return vs.milestone?Yo:Co(vs.renderEndTime||vs.endTime)-Co(vs.startTime)}).attr("height",Yo).attr("transform-origin",function(vs,ks){return ks=vs.order,(Co(vs.startTime)+Ho+.5*(Co(vs.endTime)-Co(vs.startTime))).toString()+"px "+(ks*Do+Uo+.5*Yo).toString()+"px"}).attr("class",function(vs){const ks="task";let Os="";vs.classes.length>0&&(Os=vs.classes.join(" "));let Ts=0;for(const[Ws,Ps]of yo.entries())vs.type===Ps&&(Ts=Ws%so.numberSectionStyles);let Xs="";return vs.active?vs.crit?Xs+=" activeCrit":Xs=" active":vs.done?vs.crit?Xs=" doneCrit":Xs=" done":vs.crit&&(Xs+=" crit"),Xs.length===0&&(Xs=" task"),vs.milestone&&(Xs=" milestone "+Xs),Xs+=Ts,Xs+=" "+Os,ks+Xs}),hs.append("text").attr("id",function(vs){return vs.id+"-text"}).text(function(vs){return vs.task}).attr("font-size",so.fontSize).attr("x",function(vs){let ks=Co(vs.startTime),Os=Co(vs.renderEndTime||vs.endTime);vs.milestone&&(ks+=.5*(Co(vs.endTime)-Co(vs.startTime))-.5*Yo),vs.milestone&&(Os=ks+Yo);const Ts=this.getBBox().width;return Ts>Os-ks?Os+Ts+1.5*so.leftPadding>Jo?ks+Ho-5:Os+Ho+5:(Os-ks)/2+ks+Ho}).attr("y",function(vs,ks){return ks=vs.order,ks*Do+so.barHeight/2+(so.fontSize/2-2)+Uo}).attr("text-height",Yo).attr("class",function(vs){const ks=Co(vs.startTime);let Os=Co(vs.endTime);vs.milestone&&(Os=ks+Yo);const Ts=this.getBBox().width;let Xs="";vs.classes.length>0&&(Xs=vs.classes.join(" "));let Ws=0;for(const[qs,ga]of yo.entries())vs.type===ga&&(Ws=qs%so.numberSectionStyles);let Ps="";return vs.active&&(vs.crit?Ps="activeCritText"+Ws:Ps="activeText"+Ws),vs.done?vs.crit?Ps=Ps+" doneCritText"+Ws:Ps=Ps+" doneText"+Ws:vs.crit&&(Ps=Ps+" critText"+Ws),vs.milestone&&(Ps+=" milestoneText"),Ts>Os-ks?Os+Ts+1.5*so.leftPadding>Jo?Xs+" taskTextOutsideLeft taskTextOutside"+Ws+" "+Ps:Xs+" taskTextOutsideRight taskTextOutside"+Ws+" "+Ps+" width-"+Ts:Xs+" taskText taskText"+Ws+" "+Ps+" width-"+Ts}),getConfig$2().securityLevel==="sandbox"){let vs;vs=select("#i"+to);const ks=vs.nodes()[0].contentDocument;hs.filter(function(Os){return gs[Os.id]!==void 0}).each(function(Os){var Ts=ks.querySelector("#"+Os.id),Xs=ks.querySelector("#"+Os.id+"-text");const Ws=Ts.parentNode;var Ps=ks.createElement("a");Ps.setAttribute("xlink:href",gs[Os.id]),Ps.setAttribute("target","_top"),Ws.appendChild(Ps),Ps.appendChild(Ts),Ps.appendChild(Xs)})}}function No(Go,Do,Uo,Ho,Yo,qo,Jo,ps){if(Jo.length===0&&ps.length===0)return;let Qo,hs;for(const{startTime:Ts,endTime:Xs}of qo)(Qo===void 0||Tshs)&&(hs=Xs);if(!Qo||!hs)return;if(dayjs(hs).diff(dayjs(Qo),"year")>5){log$1.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const gs=io.db.getDateFormat(),ys=[];let vs=null,ks=dayjs(Qo);for(;ks.valueOf()<=hs;)io.db.isInvalidDate(ks,gs,Jo,ps)?vs?vs.end=ks:vs={start:ks,end:ks}:vs&&(ys.push(vs),vs=null),ks=ks.add(1,"d");ko.append("g").selectAll("rect").data(ys).enter().append("rect").attr("id",function(Ts){return"exclude-"+Ts.start.format("YYYY-MM-DD")}).attr("x",function(Ts){return Co(Ts.start)+Uo}).attr("y",so.gridLineStartPadding).attr("width",function(Ts){const Xs=Ts.end.add(1,"day");return Co(Xs)-Co(Ts.start)}).attr("height",Yo-Do-so.gridLineStartPadding).attr("transform-origin",function(Ts,Xs){return(Co(Ts.start)+Uo+.5*(Co(Ts.end)-Co(Ts.start))).toString()+"px "+(Xs*Go+.5*Yo).toString()+"px"}).attr("class","exclude-range")}function Mo(Go,Do,Uo,Ho){let Yo=axisBottom(Co).tickSize(-Ho+Do+so.gridLineStartPadding).tickFormat(timeFormat(io.db.getAxisFormat()||so.axisFormat||"%Y-%m-%d"));const Jo=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(io.db.getTickInterval()||so.tickInterval);if(Jo!==null){const ps=Jo[1],Qo=Jo[2],hs=io.db.getWeekday()||so.weekday;switch(Qo){case"millisecond":Yo.ticks(millisecond.every(ps));break;case"second":Yo.ticks(second.every(ps));break;case"minute":Yo.ticks(timeMinute.every(ps));break;case"hour":Yo.ticks(timeHour.every(ps));break;case"day":Yo.ticks(timeDay.every(ps));break;case"week":Yo.ticks(mapWeekdayToTimeFunction[hs].every(ps));break;case"month":Yo.ticks(timeMonth.every(ps));break}}if(ko.append("g").attr("class","grid").attr("transform","translate("+Go+", "+(Ho-50)+")").call(Yo).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),io.db.topAxisEnabled()||so.topAxis){let ps=axisTop(Co).tickSize(-Ho+Do+so.gridLineStartPadding).tickFormat(timeFormat(io.db.getAxisFormat()||so.axisFormat||"%Y-%m-%d"));if(Jo!==null){const Qo=Jo[1],hs=Jo[2],gs=io.db.getWeekday()||so.weekday;switch(hs){case"millisecond":ps.ticks(millisecond.every(Qo));break;case"second":ps.ticks(second.every(Qo));break;case"minute":ps.ticks(timeMinute.every(Qo));break;case"hour":ps.ticks(timeHour.every(Qo));break;case"day":ps.ticks(timeDay.every(Qo));break;case"week":ps.ticks(mapWeekdayToTimeFunction[gs].every(Qo));break;case"month":ps.ticks(timeMonth.every(Qo));break}}ko.append("g").attr("class","grid").attr("transform","translate("+Go+", "+Do+")").call(ps).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function Bo(Go,Do){let Uo=0;const Ho=Object.keys(So).map(Yo=>[Yo,So[Yo]]);ko.append("g").selectAll("text").data(Ho).enter().append(function(Yo){const qo=Yo[0].split(common$1.lineBreakRegex),Jo=-(qo.length-1)/2,ps=ho.createElementNS("http://www.w3.org/2000/svg","text");ps.setAttribute("dy",Jo+"em");for(const[Qo,hs]of qo.entries()){const gs=ho.createElementNS("http://www.w3.org/2000/svg","tspan");gs.setAttribute("alignment-baseline","central"),gs.setAttribute("x","10"),Qo>0&&gs.setAttribute("dy","1em"),gs.textContent=hs,ps.appendChild(gs)}return ps}).attr("x",10).attr("y",function(Yo,qo){if(qo>0)for(let Jo=0;Jo` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var qo=this.next();return qo||this.lex()},begin:function(qo){this.conditionStack.push(qo)},popState:function(){var qo=this.conditionStack.length-1;return qo>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(qo){return qo=this.conditionStack.length-1-Math.abs(qo||0),qo>=0?this.conditionStack[qo]:"INITIAL"},pushState:function(qo){this.begin(qo)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(qo,Jo,ps,Qo){switch(ps){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return Ho}();Go.lexer=Do;function Uo(){this.yy={}}return Uo.prototype=Go,Go.Parser=Uo,new Uo}();parser$e.parser=parser$e;const ganttParser=parser$e;dayjs.extend(dayjsIsoWeek);dayjs.extend(dayjsCustomParseFormat);dayjs.extend(dayjsAdvancedFormat);let dateFormat="",axisFormat="",tickInterval,todayMarker="",includes=[],excludes=[],links$1={},sections$3=[],tasks$2=[],currentSection$2="",displayMode="";const tags=["active","done","crit","milestone"];let funs=[],inclusiveEndDates=!1,topAxis=!1,weekday="sunday",lastOrder=0;const clear$d=function(){sections$3=[],tasks$2=[],currentSection$2="",funs=[],taskCnt=0,lastTask=void 0,lastTaskID=void 0,rawTasks$2=[],dateFormat="",axisFormat="",displayMode="",tickInterval=void 0,todayMarker="",includes=[],excludes=[],inclusiveEndDates=!1,topAxis=!1,lastOrder=0,links$1={},clear$k(),weekday="sunday"},setAxisFormat=function(eo){axisFormat=eo},getAxisFormat=function(){return axisFormat},setTickInterval=function(eo){tickInterval=eo},getTickInterval=function(){return tickInterval},setTodayMarker=function(eo){todayMarker=eo},getTodayMarker=function(){return todayMarker},setDateFormat=function(eo){dateFormat=eo},enableInclusiveEndDates=function(){inclusiveEndDates=!0},endDatesAreInclusive=function(){return inclusiveEndDates},enableTopAxis=function(){topAxis=!0},topAxisEnabled=function(){return topAxis},setDisplayMode=function(eo){displayMode=eo},getDisplayMode=function(){return displayMode},getDateFormat=function(){return dateFormat},setIncludes=function(eo){includes=eo.toLowerCase().split(/[\s,]+/)},getIncludes=function(){return includes},setExcludes=function(eo){excludes=eo.toLowerCase().split(/[\s,]+/)},getExcludes=function(){return excludes},getLinks$1=function(){return links$1},addSection$3=function(eo){currentSection$2=eo,sections$3.push(eo)},getSections$3=function(){return sections$3},getTasks$2=function(){let eo=compileTasks$2();const to=10;let no=0;for(;!eo&&no=6&&no.includes("weekends")||no.includes(eo.format("dddd").toLowerCase())?!0:no.includes(eo.format(to.trim()))},setWeekday=function(eo){weekday=eo},getWeekday=function(){return weekday},checkTaskDates=function(eo,to,no,io){if(!no.length||eo.manualEndTime)return;let so;eo.startTime instanceof Date?so=dayjs(eo.startTime):so=dayjs(eo.startTime,to,!0),so=so.add(1,"d");let ao;eo.endTime instanceof Date?ao=dayjs(eo.endTime):ao=dayjs(eo.endTime,to,!0);const[lo,uo]=fixTaskDates(so,ao,to,no,io);eo.endTime=lo.toDate(),eo.renderEndTime=uo},fixTaskDates=function(eo,to,no,io,so){let ao=!1,lo=null;for(;eo<=to;)ao||(lo=to.toDate()),ao=isInvalidDate(eo,no,io,so),ao&&(to=to.add(1,"d")),eo=eo.add(1,"d");return[to,lo]},getStartDate=function(eo,to,no){no=no.trim();const so=/^after\s+(?[\d\w- ]+)/.exec(no);if(so!==null){let lo=null;for(const ho of so.groups.ids.split(" ")){let go=findTaskById(ho);go!==void 0&&(!lo||go.endTime>lo.endTime)&&(lo=go)}if(lo)return lo.endTime;const uo=new Date;return uo.setHours(0,0,0,0),uo}let ao=dayjs(no,to.trim(),!0);if(ao.isValid())return ao.toDate();{log$1.debug("Invalid date:"+no),log$1.debug("With date format:"+to.trim());const lo=new Date(no);if(lo===void 0||isNaN(lo.getTime())||lo.getFullYear()<-1e4||lo.getFullYear()>1e4)throw new Error("Invalid date:"+no);return lo}},parseDuration=function(eo){const to=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(eo.trim());return to!==null?[Number.parseFloat(to[1]),to[2]]:[NaN,"ms"]},getEndDate=function(eo,to,no,io=!1){no=no.trim();const ao=/^until\s+(?[\d\w- ]+)/.exec(no);if(ao!==null){let mo=null;for(const So of ao.groups.ids.split(" ")){let _o=findTaskById(So);_o!==void 0&&(!mo||_o.startTime{window.open(no,"_self")}),links$1[io]=no)}),setClass(eo,"clickable")},setClass=function(eo,to){eo.split(",").forEach(function(no){let io=findTaskById(no);io!==void 0&&io.classes.push(to)})},setClickFun=function(eo,to,no){if(getConfig$2().securityLevel!=="loose"||to===void 0)return;let io=[];if(typeof no=="string"){io=no.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let ao=0;ao{utils$1.runFunc(to,...io)})},pushFun=function(eo,to){funs.push(function(){const no=document.querySelector(`[id="${eo}"]`);no!==null&&no.addEventListener("click",function(){to()})},function(){const no=document.querySelector(`[id="${eo}-text"]`);no!==null&&no.addEventListener("click",function(){to()})})},setClickEvent$1=function(eo,to,no){eo.split(",").forEach(function(io){setClickFun(io,to,no)}),setClass(eo,"clickable")},bindFunctions$1=function(eo){funs.forEach(function(to){to(eo)})},ganttDb={getConfig:()=>getConfig$2().gantt,clear:clear$d,setDateFormat,getDateFormat,enableInclusiveEndDates,endDatesAreInclusive,enableTopAxis,topAxisEnabled,setAxisFormat,getAxisFormat,setTickInterval,getTickInterval,setTodayMarker,getTodayMarker,setAccTitle,getAccTitle,setDiagramTitle,getDiagramTitle,setDisplayMode,getDisplayMode,setAccDescription,getAccDescription,addSection:addSection$3,getSections:getSections$3,getTasks:getTasks$2,addTask:addTask$2,findTaskById,addTaskOrg:addTaskOrg$2,setIncludes,getIncludes,setExcludes,getExcludes,setClickEvent:setClickEvent$1,setLink:setLink$1,getLinks:getLinks$1,bindFunctions:bindFunctions$1,parseDuration,isInvalidDate,setWeekday,getWeekday};function getTaskTags(eo,to,no){let io=!0;for(;io;)io=!1,no.forEach(function(so){const ao="^\\s*"+so+"\\s*$",lo=new RegExp(ao);eo[0].match(lo)&&(to[so]=!0,eo.shift(1),io=!0)})}const setConf$5=function(){log$1.debug("Something is calling, setConf, remove the call")},mapWeekdayToTimeFunction={monday:timeMonday,tuesday:timeTuesday,wednesday:timeWednesday,thursday:timeThursday,friday:timeFriday,saturday:timeSaturday,sunday:timeSunday},getMaxIntersections=(eo,to)=>{let no=[...eo].map(()=>-1/0),io=[...eo].sort((ao,lo)=>ao.startTime-lo.startTime||ao.order-lo.order),so=0;for(const ao of io)for(let lo=0;lo=no[lo]){no[lo]=ao.endTime,ao.order=lo+to,lo>so&&(so=lo);break}return so};let w;const draw$g=function(eo,to,no,io){const so=getConfig$2().gantt,ao=getConfig$2().securityLevel;let lo;ao==="sandbox"&&(lo=select("#i"+to));const uo=select(ao==="sandbox"?lo.nodes()[0].contentDocument.body:"body"),ho=ao==="sandbox"?lo.nodes()[0].contentDocument:document,go=ho.getElementById(to);w=go.parentElement.offsetWidth,w===void 0&&(w=1200),so.useWidth!==void 0&&(w=so.useWidth);const mo=io.db.getTasks();let yo=[];for(const Go of mo)yo.push(Go.type);yo=Lo(yo);const So={};let _o=2*so.topPadding;if(io.db.getDisplayMode()==="compact"||so.displayMode==="compact"){const Go={};for(const Uo of mo)Go[Uo.section]===void 0?Go[Uo.section]=[Uo]:Go[Uo.section].push(Uo);let Do=0;for(const Uo of Object.keys(Go)){const Ho=getMaxIntersections(Go[Uo],Do)+1;Do+=Ho,_o+=Ho*(so.barHeight+so.barGap),So[Uo]=Ho}}else{_o+=mo.length*(so.barHeight+so.barGap);for(const Go of yo)So[Go]=mo.filter(Do=>Do.type===Go).length}go.setAttribute("viewBox","0 0 "+w+" "+_o);const ko=uo.select(`[id="${to}"]`),Co=time$1().domain([min$4(mo,function(Go){return Go.startTime}),max$4(mo,function(Go){return Go.endTime})]).rangeRound([0,w-so.leftPadding-so.rightPadding]);function $o(Go,Do){const Uo=Go.startTime,Ho=Do.startTime;let Yo=0;return Uo>Ho?Yo=1:Uovs.order))].map(vs=>Go.find(ks=>ks.order===vs));ko.append("g").selectAll("rect").data(Qo).enter().append("rect").attr("x",0).attr("y",function(vs,ks){return ks=vs.order,ks*Do+Uo-2}).attr("width",function(){return Jo-so.rightPadding/2}).attr("height",Do).attr("class",function(vs){for(const[ks,Os]of yo.entries())if(vs.type===Os)return"section section"+ks%so.numberSectionStyles;return"section section0"});const hs=ko.append("g").selectAll("rect").data(Go).enter(),gs=io.db.getLinks();if(hs.append("rect").attr("id",function(vs){return vs.id}).attr("rx",3).attr("ry",3).attr("x",function(vs){return vs.milestone?Co(vs.startTime)+Ho+.5*(Co(vs.endTime)-Co(vs.startTime))-.5*Yo:Co(vs.startTime)+Ho}).attr("y",function(vs,ks){return ks=vs.order,ks*Do+Uo}).attr("width",function(vs){return vs.milestone?Yo:Co(vs.renderEndTime||vs.endTime)-Co(vs.startTime)}).attr("height",Yo).attr("transform-origin",function(vs,ks){return ks=vs.order,(Co(vs.startTime)+Ho+.5*(Co(vs.endTime)-Co(vs.startTime))).toString()+"px "+(ks*Do+Uo+.5*Yo).toString()+"px"}).attr("class",function(vs){const ks="task";let Os="";vs.classes.length>0&&(Os=vs.classes.join(" "));let Ts=0;for(const[Ws,Ps]of yo.entries())vs.type===Ps&&(Ts=Ws%so.numberSectionStyles);let Xs="";return vs.active?vs.crit?Xs+=" activeCrit":Xs=" active":vs.done?vs.crit?Xs=" doneCrit":Xs=" done":vs.crit&&(Xs+=" crit"),Xs.length===0&&(Xs=" task"),vs.milestone&&(Xs=" milestone "+Xs),Xs+=Ts,Xs+=" "+Os,ks+Xs}),hs.append("text").attr("id",function(vs){return vs.id+"-text"}).text(function(vs){return vs.task}).attr("font-size",so.fontSize).attr("x",function(vs){let ks=Co(vs.startTime),Os=Co(vs.renderEndTime||vs.endTime);vs.milestone&&(ks+=.5*(Co(vs.endTime)-Co(vs.startTime))-.5*Yo),vs.milestone&&(Os=ks+Yo);const Ts=this.getBBox().width;return Ts>Os-ks?Os+Ts+1.5*so.leftPadding>Jo?ks+Ho-5:Os+Ho+5:(Os-ks)/2+ks+Ho}).attr("y",function(vs,ks){return ks=vs.order,ks*Do+so.barHeight/2+(so.fontSize/2-2)+Uo}).attr("text-height",Yo).attr("class",function(vs){const ks=Co(vs.startTime);let Os=Co(vs.endTime);vs.milestone&&(Os=ks+Yo);const Ts=this.getBBox().width;let Xs="";vs.classes.length>0&&(Xs=vs.classes.join(" "));let Ws=0;for(const[qs,ga]of yo.entries())vs.type===ga&&(Ws=qs%so.numberSectionStyles);let Ps="";return vs.active&&(vs.crit?Ps="activeCritText"+Ws:Ps="activeText"+Ws),vs.done?vs.crit?Ps=Ps+" doneCritText"+Ws:Ps=Ps+" doneText"+Ws:vs.crit&&(Ps=Ps+" critText"+Ws),vs.milestone&&(Ps+=" milestoneText"),Ts>Os-ks?Os+Ts+1.5*so.leftPadding>Jo?Xs+" taskTextOutsideLeft taskTextOutside"+Ws+" "+Ps:Xs+" taskTextOutsideRight taskTextOutside"+Ws+" "+Ps+" width-"+Ts:Xs+" taskText taskText"+Ws+" "+Ps+" width-"+Ts}),getConfig$2().securityLevel==="sandbox"){let vs;vs=select("#i"+to);const ks=vs.nodes()[0].contentDocument;hs.filter(function(Os){return gs[Os.id]!==void 0}).each(function(Os){var Ts=ks.querySelector("#"+Os.id),Xs=ks.querySelector("#"+Os.id+"-text");const Ws=Ts.parentNode;var Ps=ks.createElement("a");Ps.setAttribute("xlink:href",gs[Os.id]),Ps.setAttribute("target","_top"),Ws.appendChild(Ps),Ps.appendChild(Ts),Ps.appendChild(Xs)})}}function No(Go,Do,Uo,Ho,Yo,qo,Jo,ps){if(Jo.length===0&&ps.length===0)return;let Qo,hs;for(const{startTime:Ts,endTime:Xs}of qo)(Qo===void 0||Tshs)&&(hs=Xs);if(!Qo||!hs)return;if(dayjs(hs).diff(dayjs(Qo),"year")>5){log$1.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const gs=io.db.getDateFormat(),ys=[];let vs=null,ks=dayjs(Qo);for(;ks.valueOf()<=hs;)io.db.isInvalidDate(ks,gs,Jo,ps)?vs?vs.end=ks:vs={start:ks,end:ks}:vs&&(ys.push(vs),vs=null),ks=ks.add(1,"d");ko.append("g").selectAll("rect").data(ys).enter().append("rect").attr("id",function(Ts){return"exclude-"+Ts.start.format("YYYY-MM-DD")}).attr("x",function(Ts){return Co(Ts.start)+Uo}).attr("y",so.gridLineStartPadding).attr("width",function(Ts){const Xs=Ts.end.add(1,"day");return Co(Xs)-Co(Ts.start)}).attr("height",Yo-Do-so.gridLineStartPadding).attr("transform-origin",function(Ts,Xs){return(Co(Ts.start)+Uo+.5*(Co(Ts.end)-Co(Ts.start))).toString()+"px "+(Xs*Go+.5*Yo).toString()+"px"}).attr("class","exclude-range")}function Mo(Go,Do,Uo,Ho){let Yo=axisBottom(Co).tickSize(-Ho+Do+so.gridLineStartPadding).tickFormat(timeFormat(io.db.getAxisFormat()||so.axisFormat||"%Y-%m-%d"));const Jo=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(io.db.getTickInterval()||so.tickInterval);if(Jo!==null){const ps=Jo[1],Qo=Jo[2],hs=io.db.getWeekday()||so.weekday;switch(Qo){case"millisecond":Yo.ticks(millisecond.every(ps));break;case"second":Yo.ticks(second.every(ps));break;case"minute":Yo.ticks(timeMinute.every(ps));break;case"hour":Yo.ticks(timeHour.every(ps));break;case"day":Yo.ticks(timeDay.every(ps));break;case"week":Yo.ticks(mapWeekdayToTimeFunction[hs].every(ps));break;case"month":Yo.ticks(timeMonth.every(ps));break}}if(ko.append("g").attr("class","grid").attr("transform","translate("+Go+", "+(Ho-50)+")").call(Yo).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),io.db.topAxisEnabled()||so.topAxis){let ps=axisTop(Co).tickSize(-Ho+Do+so.gridLineStartPadding).tickFormat(timeFormat(io.db.getAxisFormat()||so.axisFormat||"%Y-%m-%d"));if(Jo!==null){const Qo=Jo[1],hs=Jo[2],gs=io.db.getWeekday()||so.weekday;switch(hs){case"millisecond":ps.ticks(millisecond.every(Qo));break;case"second":ps.ticks(second.every(Qo));break;case"minute":ps.ticks(timeMinute.every(Qo));break;case"hour":ps.ticks(timeHour.every(Qo));break;case"day":ps.ticks(timeDay.every(Qo));break;case"week":ps.ticks(mapWeekdayToTimeFunction[gs].every(Qo));break;case"month":ps.ticks(timeMonth.every(Qo));break}}ko.append("g").attr("class","grid").attr("transform","translate("+Go+", "+Do+")").call(ps).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function Bo(Go,Do){let Uo=0;const Ho=Object.keys(So).map(Yo=>[Yo,So[Yo]]);ko.append("g").selectAll("text").data(Ho).enter().append(function(Yo){const qo=Yo[0].split(common$1.lineBreakRegex),Jo=-(qo.length-1)/2,ps=ho.createElementNS("http://www.w3.org/2000/svg","text");ps.setAttribute("dy",Jo+"em");for(const[Qo,hs]of qo.entries()){const gs=ho.createElementNS("http://www.w3.org/2000/svg","tspan");gs.setAttribute("alignment-baseline","central"),gs.setAttribute("x","10"),Qo>0&&gs.setAttribute("dy","1em"),gs.textContent=hs,ps.appendChild(gs)}return ps}).attr("x",10).attr("y",function(Yo,qo){if(qo>0)for(let Jo=0;Jo` .mermaid-main-font { font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } @@ -2802,18 +2802,18 @@ Expecting `+ju.join(", ")+", got '"+(this.terminals_[Vs]||Vs)+"'":F1="Parse erro fill: ${eo.titleColor||eo.textColor}; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } -`,ganttStyles=getStyles$a,diagram$g={parser:ganttParser,db:ganttDb,renderer:ganttRenderer,styles:ganttStyles},ganttDiagram9a3bba1f=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$g},Symbol.toStringTag,{value:"Module"}));var parser$d=function(){var eo=function(ao,lo,uo,ho){for(uo=uo||{},ho=ao.length;ho--;uo[ao[ho]]=lo);return uo},to=[6,9,10],no={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(lo,uo,ho,go,mo,yo,So){switch(yo.length-1,mo){case 1:return go;case 4:break;case 6:go.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},eo(to,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},eo(to,[2,3]),eo(to,[2,4]),eo(to,[2,5]),eo(to,[2,6])],defaultActions:{4:[2,1]},parseError:function(lo,uo){if(uo.recoverable)this.trace(lo);else{var ho=new Error(lo);throw ho.hash=uo,ho}},parse:function(lo){var uo=this,ho=[0],go=[],mo=[null],yo=[],So=this.table,_o="",ko=0,Co=0,$o=2,Ro=1,Oo=yo.slice.call(arguments,1),No=Object.create(this.lexer),Mo={yy:{}};for(var Bo in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bo)&&(Mo.yy[Bo]=this.yy[Bo]);No.setInput(lo,Mo.yy),Mo.yy.lexer=No,Mo.yy.parser=this,typeof No.yylloc>"u"&&(No.yylloc={});var Po=No.yylloc;yo.push(Po);var Lo=No.options&&No.options.ranges;typeof Mo.yy.parseError=="function"?this.parseError=Mo.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Go(){var ys;return ys=go.pop()||No.lex()||Ro,typeof ys!="number"&&(ys instanceof Array&&(go=ys,ys=go.pop()),ys=uo.symbols_[ys]||ys),ys}for(var Do,Uo,Ho,Yo,qo={},Jo,ps,Qo,hs;;){if(Uo=ho[ho.length-1],this.defaultActions[Uo]?Ho=this.defaultActions[Uo]:((Do===null||typeof Do>"u")&&(Do=Go()),Ho=So[Uo]&&So[Uo][Do]),typeof Ho>"u"||!Ho.length||!Ho[0]){var gs="";hs=[];for(Jo in So[Uo])this.terminals_[Jo]&&Jo>$o&&hs.push("'"+this.terminals_[Jo]+"'");No.showPosition?gs="Parse error on line "+(ko+1)+`: +`,ganttStyles=getStyles$a,diagram$g={parser:ganttParser,db:ganttDb,renderer:ganttRenderer,styles:ganttStyles},ganttDiagram9a3bba1f=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$g},Symbol.toStringTag,{value:"Module"}));var parser$d=function(){var eo=function(ao,lo,uo,ho){for(uo=uo||{},ho=ao.length;ho--;uo[ao[ho]]=lo);return uo},to=[6,9,10],no={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(lo,uo,ho,go,mo,yo,So){switch(yo.length-1,mo){case 1:return go;case 4:break;case 6:go.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},eo(to,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},eo(to,[2,3]),eo(to,[2,4]),eo(to,[2,5]),eo(to,[2,6])],defaultActions:{4:[2,1]},parseError:function(lo,uo){if(uo.recoverable)this.trace(lo);else{var ho=new Error(lo);throw ho.hash=uo,ho}},parse:function(lo){var uo=this,ho=[0],go=[],mo=[null],yo=[],So=this.table,_o="",ko=0,Co=0,$o=2,Ro=1,Oo=yo.slice.call(arguments,1),No=Object.create(this.lexer),Mo={yy:{}};for(var Bo in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bo)&&(Mo.yy[Bo]=this.yy[Bo]);No.setInput(lo,Mo.yy),Mo.yy.lexer=No,Mo.yy.parser=this,typeof No.yylloc>"u"&&(No.yylloc={});var Fo=No.yylloc;yo.push(Fo);var Lo=No.options&&No.options.ranges;typeof Mo.yy.parseError=="function"?this.parseError=Mo.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Go(){var ys;return ys=go.pop()||No.lex()||Ro,typeof ys!="number"&&(ys instanceof Array&&(go=ys,ys=go.pop()),ys=uo.symbols_[ys]||ys),ys}for(var Do,Uo,Ho,Yo,qo={},Jo,ps,Qo,hs;;){if(Uo=ho[ho.length-1],this.defaultActions[Uo]?Ho=this.defaultActions[Uo]:((Do===null||typeof Do>"u")&&(Do=Go()),Ho=So[Uo]&&So[Uo][Do]),typeof Ho>"u"||!Ho.length||!Ho[0]){var gs="";hs=[];for(Jo in So[Uo])this.terminals_[Jo]&&Jo>$o&&hs.push("'"+this.terminals_[Jo]+"'");No.showPosition?gs="Parse error on line "+(ko+1)+`: `+No.showPosition()+` -Expecting `+hs.join(", ")+", got '"+(this.terminals_[Do]||Do)+"'":gs="Parse error on line "+(ko+1)+": Unexpected "+(Do==Ro?"end of input":"'"+(this.terminals_[Do]||Do)+"'"),this.parseError(gs,{text:No.match,token:this.terminals_[Do]||Do,line:No.yylineno,loc:Po,expected:hs})}if(Ho[0]instanceof Array&&Ho.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Uo+", token: "+Do);switch(Ho[0]){case 1:ho.push(Do),mo.push(No.yytext),yo.push(No.yylloc),ho.push(Ho[1]),Do=null,Co=No.yyleng,_o=No.yytext,ko=No.yylineno,Po=No.yylloc;break;case 2:if(ps=this.productions_[Ho[1]][1],qo.$=mo[mo.length-ps],qo._$={first_line:yo[yo.length-(ps||1)].first_line,last_line:yo[yo.length-1].last_line,first_column:yo[yo.length-(ps||1)].first_column,last_column:yo[yo.length-1].last_column},Lo&&(qo._$.range=[yo[yo.length-(ps||1)].range[0],yo[yo.length-1].range[1]]),Yo=this.performAction.apply(qo,[_o,Co,ko,Mo.yy,Ho[1],mo,yo].concat(Oo)),typeof Yo<"u")return Yo;ps&&(ho=ho.slice(0,-1*ps*2),mo=mo.slice(0,-1*ps),yo=yo.slice(0,-1*ps)),ho.push(this.productions_[Ho[1]][0]),mo.push(qo.$),yo.push(qo._$),Qo=So[ho[ho.length-2]][ho[ho.length-1]],ho.push(Qo);break;case 3:return!0}}return!0}},io=function(){var ao={EOF:1,parseError:function(uo,ho){if(this.yy.parser)this.yy.parser.parseError(uo,ho);else throw new Error(uo)},setInput:function(lo,uo){return this.yy=uo||this.yy||{},this._input=lo,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var lo=this._input[0];this.yytext+=lo,this.yyleng++,this.offset++,this.match+=lo,this.matched+=lo;var uo=lo.match(/(?:\r\n?|\n).*/g);return uo?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),lo},unput:function(lo){var uo=lo.length,ho=lo.split(/(?:\r\n?|\n)/g);this._input=lo+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-uo),this.offset-=uo;var go=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ho.length-1&&(this.yylineno-=ho.length-1);var mo=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ho?(ho.length===go.length?this.yylloc.first_column:0)+go[go.length-ho.length].length-ho[0].length:this.yylloc.first_column-uo},this.options.ranges&&(this.yylloc.range=[mo[0],mo[0]+this.yyleng-uo]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+hs.join(", ")+", got '"+(this.terminals_[Do]||Do)+"'":gs="Parse error on line "+(ko+1)+": Unexpected "+(Do==Ro?"end of input":"'"+(this.terminals_[Do]||Do)+"'"),this.parseError(gs,{text:No.match,token:this.terminals_[Do]||Do,line:No.yylineno,loc:Fo,expected:hs})}if(Ho[0]instanceof Array&&Ho.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Uo+", token: "+Do);switch(Ho[0]){case 1:ho.push(Do),mo.push(No.yytext),yo.push(No.yylloc),ho.push(Ho[1]),Do=null,Co=No.yyleng,_o=No.yytext,ko=No.yylineno,Fo=No.yylloc;break;case 2:if(ps=this.productions_[Ho[1]][1],qo.$=mo[mo.length-ps],qo._$={first_line:yo[yo.length-(ps||1)].first_line,last_line:yo[yo.length-1].last_line,first_column:yo[yo.length-(ps||1)].first_column,last_column:yo[yo.length-1].last_column},Lo&&(qo._$.range=[yo[yo.length-(ps||1)].range[0],yo[yo.length-1].range[1]]),Yo=this.performAction.apply(qo,[_o,Co,ko,Mo.yy,Ho[1],mo,yo].concat(Oo)),typeof Yo<"u")return Yo;ps&&(ho=ho.slice(0,-1*ps*2),mo=mo.slice(0,-1*ps),yo=yo.slice(0,-1*ps)),ho.push(this.productions_[Ho[1]][0]),mo.push(qo.$),yo.push(qo._$),Qo=So[ho[ho.length-2]][ho[ho.length-1]],ho.push(Qo);break;case 3:return!0}}return!0}},io=function(){var ao={EOF:1,parseError:function(uo,ho){if(this.yy.parser)this.yy.parser.parseError(uo,ho);else throw new Error(uo)},setInput:function(lo,uo){return this.yy=uo||this.yy||{},this._input=lo,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var lo=this._input[0];this.yytext+=lo,this.yyleng++,this.offset++,this.match+=lo,this.matched+=lo;var uo=lo.match(/(?:\r\n?|\n).*/g);return uo?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),lo},unput:function(lo){var uo=lo.length,ho=lo.split(/(?:\r\n?|\n)/g);this._input=lo+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-uo),this.offset-=uo;var go=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ho.length-1&&(this.yylineno-=ho.length-1);var mo=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ho?(ho.length===go.length?this.yylloc.first_column:0)+go[go.length-ho.length].length-ho[0].length:this.yylloc.first_column-uo},this.options.ranges&&(this.yylloc.range=[mo[0],mo[0]+this.yyleng-uo]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(lo){this.unput(this.match.slice(lo))},pastInput:function(){var lo=this.matched.substr(0,this.matched.length-this.match.length);return(lo.length>20?"...":"")+lo.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var lo=this.match;return lo.length<20&&(lo+=this._input.substr(0,20-lo.length)),(lo.substr(0,20)+(lo.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var lo=this.pastInput(),uo=new Array(lo.length+1).join("-");return lo+this.upcomingInput()+` `+uo+"^"},test_match:function(lo,uo){var ho,go,mo;if(this.options.backtrack_lexer&&(mo={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(mo.yylloc.range=this.yylloc.range.slice(0))),go=lo[0].match(/(?:\r\n?|\n).*/g),go&&(this.yylineno+=go.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:go?go[go.length-1].length-go[go.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+lo[0].length},this.yytext+=lo[0],this.match+=lo[0],this.matches=lo,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(lo[0].length),this.matched+=lo[0],ho=this.performAction.call(this,this.yy,this,uo,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ho)return ho;if(this._backtrack){for(var yo in mo)this[yo]=mo[yo];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var lo,uo,ho,go;this._more||(this.yytext="",this.match="");for(var mo=this._currentRules(),yo=0;youo[0].length)){if(uo=ho,go=yo,this.options.backtrack_lexer){if(lo=this.test_match(ho,mo[yo]),lo!==!1)return lo;if(this._backtrack){uo=!1;continue}else return!1}else if(!this.options.flex)break}return uo?(lo=this.test_match(uo,mo[go]),lo!==!1?lo:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var uo=this.next();return uo||this.lex()},begin:function(uo){this.conditionStack.push(uo)},popState:function(){var uo=this.conditionStack.length-1;return uo>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(uo){return uo=this.conditionStack.length-1-Math.abs(uo||0),uo>=0?this.conditionStack[uo]:"INITIAL"},pushState:function(uo){this.begin(uo)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(uo,ho,go,mo){switch(go){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return ao}();no.lexer=io;function so(){this.yy={}}return so.prototype=no,no.Parser=so,new so}();parser$d.parser=parser$d;const parser$1$c=parser$d,DEFAULT_INFO_DB={info:!1};let info=DEFAULT_INFO_DB.info;const setInfo$1=eo=>{info=eo},getInfo$1=()=>info,clear$c=()=>{info=DEFAULT_INFO_DB.info},db$d={clear:clear$c,setInfo:setInfo$1,getInfo:getInfo$1},draw$f=(eo,to,no)=>{log$1.debug(`rendering info diagram -`+eo);const io=selectSvgElement(to);configureSvgSize(io,100,400,!0),io.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${no}`)},renderer$g={draw:draw$f},diagram$f={parser:parser$1$c,db:db$d,renderer:renderer$g},infoDiagramBcd20f53=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$f},Symbol.toStringTag,{value:"Module"}));var parser$c=function(){var eo=function(No,Mo,Bo,Po){for(Bo=Bo||{},Po=No.length;Po--;Bo[No[Po]]=Mo);return Bo},to=[1,3],no=[1,4],io=[1,5],so=[1,6],ao=[1,10,12,14,16,18,19,20,21,22],lo=[2,4],uo=[1,5,10,12,14,16,18,19,20,21,22],ho=[20,21,22],go=[2,7],mo=[1,12],yo=[1,13],So=[1,14],_o=[1,15],ko=[1,16],Co=[1,17],$o={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(Mo,Bo,Po,Lo,Go,Do,Uo){var Ho=Do.length-1;switch(Go){case 3:Lo.setShowData(!0);break;case 6:this.$=Do[Ho-1];break;case 8:Lo.addSection(Do[Ho-1],Lo.cleanupValue(Do[Ho]));break;case 9:this.$=Do[Ho].trim(),Lo.setDiagramTitle(this.$);break;case 10:this.$=Do[Ho].trim(),Lo.setAccTitle(this.$);break;case 11:case 12:this.$=Do[Ho].trim(),Lo.setAccDescription(this.$);break;case 13:Lo.addSection(Do[Ho].substr(8)),this.$=Do[Ho].substr(8);break}},table:[{3:1,4:2,5:to,20:no,21:io,22:so},{1:[3]},{3:7,4:2,5:to,20:no,21:io,22:so},eo(ao,lo,{6:8,7:[1,9]}),eo(uo,[2,14]),eo(uo,[2,15]),eo(uo,[2,16]),{1:[2,1]},eo(ho,go,{8:10,9:11,1:[2,2],10:mo,12:yo,14:So,16:_o,18:ko,19:Co}),eo(ao,lo,{6:18}),eo(ao,[2,5]),{4:19,20:no,21:io,22:so},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},eo(ho,[2,12]),eo(ho,[2,13]),eo(ho,go,{8:10,9:11,1:[2,3],10:mo,12:yo,14:So,16:_o,18:ko,19:Co}),eo(ao,[2,6]),eo(ho,[2,8]),eo(ho,[2,9]),eo(ho,[2,10]),eo(ho,[2,11])],defaultActions:{7:[2,1]},parseError:function(Mo,Bo){if(Bo.recoverable)this.trace(Mo);else{var Po=new Error(Mo);throw Po.hash=Bo,Po}},parse:function(Mo){var Bo=this,Po=[0],Lo=[],Go=[null],Do=[],Uo=this.table,Ho="",Yo=0,qo=0,Jo=2,ps=1,Qo=Do.slice.call(arguments,1),hs=Object.create(this.lexer),gs={yy:{}};for(var ys in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ys)&&(gs.yy[ys]=this.yy[ys]);hs.setInput(Mo,gs.yy),gs.yy.lexer=hs,gs.yy.parser=this,typeof hs.yylloc>"u"&&(hs.yylloc={});var vs=hs.yylloc;Do.push(vs);var ks=hs.options&&hs.options.ranges;typeof gs.yy.parseError=="function"?this.parseError=gs.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Os(){var yl;return yl=Lo.pop()||hs.lex()||ps,typeof yl!="number"&&(yl instanceof Array&&(Lo=yl,yl=Lo.pop()),yl=Bo.symbols_[yl]||yl),yl}for(var Ts,Xs,Ws,Ps,qs={},ga,Fs,Js,Vs;;){if(Xs=Po[Po.length-1],this.defaultActions[Xs]?Ws=this.defaultActions[Xs]:((Ts===null||typeof Ts>"u")&&(Ts=Os()),Ws=Uo[Xs]&&Uo[Xs][Ts]),typeof Ws>"u"||!Ws.length||!Ws[0]){var El="";Vs=[];for(ga in Uo[Xs])this.terminals_[ga]&&ga>Jo&&Vs.push("'"+this.terminals_[ga]+"'");hs.showPosition?El="Parse error on line "+(Yo+1)+`: +`+eo);const io=selectSvgElement(to);configureSvgSize(io,100,400,!0),io.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${no}`)},renderer$g={draw:draw$f},diagram$f={parser:parser$1$c,db:db$d,renderer:renderer$g},infoDiagramBcd20f53=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$f},Symbol.toStringTag,{value:"Module"}));var parser$c=function(){var eo=function(No,Mo,Bo,Fo){for(Bo=Bo||{},Fo=No.length;Fo--;Bo[No[Fo]]=Mo);return Bo},to=[1,3],no=[1,4],io=[1,5],so=[1,6],ao=[1,10,12,14,16,18,19,20,21,22],lo=[2,4],uo=[1,5,10,12,14,16,18,19,20,21,22],ho=[20,21,22],go=[2,7],mo=[1,12],yo=[1,13],So=[1,14],_o=[1,15],ko=[1,16],Co=[1,17],$o={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(Mo,Bo,Fo,Lo,Go,Do,Uo){var Ho=Do.length-1;switch(Go){case 3:Lo.setShowData(!0);break;case 6:this.$=Do[Ho-1];break;case 8:Lo.addSection(Do[Ho-1],Lo.cleanupValue(Do[Ho]));break;case 9:this.$=Do[Ho].trim(),Lo.setDiagramTitle(this.$);break;case 10:this.$=Do[Ho].trim(),Lo.setAccTitle(this.$);break;case 11:case 12:this.$=Do[Ho].trim(),Lo.setAccDescription(this.$);break;case 13:Lo.addSection(Do[Ho].substr(8)),this.$=Do[Ho].substr(8);break}},table:[{3:1,4:2,5:to,20:no,21:io,22:so},{1:[3]},{3:7,4:2,5:to,20:no,21:io,22:so},eo(ao,lo,{6:8,7:[1,9]}),eo(uo,[2,14]),eo(uo,[2,15]),eo(uo,[2,16]),{1:[2,1]},eo(ho,go,{8:10,9:11,1:[2,2],10:mo,12:yo,14:So,16:_o,18:ko,19:Co}),eo(ao,lo,{6:18}),eo(ao,[2,5]),{4:19,20:no,21:io,22:so},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},eo(ho,[2,12]),eo(ho,[2,13]),eo(ho,go,{8:10,9:11,1:[2,3],10:mo,12:yo,14:So,16:_o,18:ko,19:Co}),eo(ao,[2,6]),eo(ho,[2,8]),eo(ho,[2,9]),eo(ho,[2,10]),eo(ho,[2,11])],defaultActions:{7:[2,1]},parseError:function(Mo,Bo){if(Bo.recoverable)this.trace(Mo);else{var Fo=new Error(Mo);throw Fo.hash=Bo,Fo}},parse:function(Mo){var Bo=this,Fo=[0],Lo=[],Go=[null],Do=[],Uo=this.table,Ho="",Yo=0,qo=0,Jo=2,ps=1,Qo=Do.slice.call(arguments,1),hs=Object.create(this.lexer),gs={yy:{}};for(var ys in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ys)&&(gs.yy[ys]=this.yy[ys]);hs.setInput(Mo,gs.yy),gs.yy.lexer=hs,gs.yy.parser=this,typeof hs.yylloc>"u"&&(hs.yylloc={});var vs=hs.yylloc;Do.push(vs);var ks=hs.options&&hs.options.ranges;typeof gs.yy.parseError=="function"?this.parseError=gs.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Os(){var yl;return yl=Lo.pop()||hs.lex()||ps,typeof yl!="number"&&(yl instanceof Array&&(Lo=yl,yl=Lo.pop()),yl=Bo.symbols_[yl]||yl),yl}for(var Ts,Xs,Ws,Ps,qs={},ga,Fs,Js,Vs;;){if(Xs=Fo[Fo.length-1],this.defaultActions[Xs]?Ws=this.defaultActions[Xs]:((Ts===null||typeof Ts>"u")&&(Ts=Os()),Ws=Uo[Xs]&&Uo[Xs][Ts]),typeof Ws>"u"||!Ws.length||!Ws[0]){var El="";Vs=[];for(ga in Uo[Xs])this.terminals_[ga]&&ga>Jo&&Vs.push("'"+this.terminals_[ga]+"'");hs.showPosition?El="Parse error on line "+(Yo+1)+`: `+hs.showPosition()+` -Expecting `+Vs.join(", ")+", got '"+(this.terminals_[Ts]||Ts)+"'":El="Parse error on line "+(Yo+1)+": Unexpected "+(Ts==ps?"end of input":"'"+(this.terminals_[Ts]||Ts)+"'"),this.parseError(El,{text:hs.match,token:this.terminals_[Ts]||Ts,line:hs.yylineno,loc:vs,expected:Vs})}if(Ws[0]instanceof Array&&Ws.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xs+", token: "+Ts);switch(Ws[0]){case 1:Po.push(Ts),Go.push(hs.yytext),Do.push(hs.yylloc),Po.push(Ws[1]),Ts=null,qo=hs.yyleng,Ho=hs.yytext,Yo=hs.yylineno,vs=hs.yylloc;break;case 2:if(Fs=this.productions_[Ws[1]][1],qs.$=Go[Go.length-Fs],qs._$={first_line:Do[Do.length-(Fs||1)].first_line,last_line:Do[Do.length-1].last_line,first_column:Do[Do.length-(Fs||1)].first_column,last_column:Do[Do.length-1].last_column},ks&&(qs._$.range=[Do[Do.length-(Fs||1)].range[0],Do[Do.length-1].range[1]]),Ps=this.performAction.apply(qs,[Ho,qo,Yo,gs.yy,Ws[1],Go,Do].concat(Qo)),typeof Ps<"u")return Ps;Fs&&(Po=Po.slice(0,-1*Fs*2),Go=Go.slice(0,-1*Fs),Do=Do.slice(0,-1*Fs)),Po.push(this.productions_[Ws[1]][0]),Go.push(qs.$),Do.push(qs._$),Js=Uo[Po[Po.length-2]][Po[Po.length-1]],Po.push(Js);break;case 3:return!0}}return!0}},Ro=function(){var No={EOF:1,parseError:function(Bo,Po){if(this.yy.parser)this.yy.parser.parseError(Bo,Po);else throw new Error(Bo)},setInput:function(Mo,Bo){return this.yy=Bo||this.yy||{},this._input=Mo,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Mo=this._input[0];this.yytext+=Mo,this.yyleng++,this.offset++,this.match+=Mo,this.matched+=Mo;var Bo=Mo.match(/(?:\r\n?|\n).*/g);return Bo?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Mo},unput:function(Mo){var Bo=Mo.length,Po=Mo.split(/(?:\r\n?|\n)/g);this._input=Mo+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Bo),this.offset-=Bo;var Lo=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Po.length-1&&(this.yylineno-=Po.length-1);var Go=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Po?(Po.length===Lo.length?this.yylloc.first_column:0)+Lo[Lo.length-Po.length].length-Po[0].length:this.yylloc.first_column-Bo},this.options.ranges&&(this.yylloc.range=[Go[0],Go[0]+this.yyleng-Bo]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+Vs.join(", ")+", got '"+(this.terminals_[Ts]||Ts)+"'":El="Parse error on line "+(Yo+1)+": Unexpected "+(Ts==ps?"end of input":"'"+(this.terminals_[Ts]||Ts)+"'"),this.parseError(El,{text:hs.match,token:this.terminals_[Ts]||Ts,line:hs.yylineno,loc:vs,expected:Vs})}if(Ws[0]instanceof Array&&Ws.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xs+", token: "+Ts);switch(Ws[0]){case 1:Fo.push(Ts),Go.push(hs.yytext),Do.push(hs.yylloc),Fo.push(Ws[1]),Ts=null,qo=hs.yyleng,Ho=hs.yytext,Yo=hs.yylineno,vs=hs.yylloc;break;case 2:if(Fs=this.productions_[Ws[1]][1],qs.$=Go[Go.length-Fs],qs._$={first_line:Do[Do.length-(Fs||1)].first_line,last_line:Do[Do.length-1].last_line,first_column:Do[Do.length-(Fs||1)].first_column,last_column:Do[Do.length-1].last_column},ks&&(qs._$.range=[Do[Do.length-(Fs||1)].range[0],Do[Do.length-1].range[1]]),Ps=this.performAction.apply(qs,[Ho,qo,Yo,gs.yy,Ws[1],Go,Do].concat(Qo)),typeof Ps<"u")return Ps;Fs&&(Fo=Fo.slice(0,-1*Fs*2),Go=Go.slice(0,-1*Fs),Do=Do.slice(0,-1*Fs)),Fo.push(this.productions_[Ws[1]][0]),Go.push(qs.$),Do.push(qs._$),Js=Uo[Fo[Fo.length-2]][Fo[Fo.length-1]],Fo.push(Js);break;case 3:return!0}}return!0}},Ro=function(){var No={EOF:1,parseError:function(Bo,Fo){if(this.yy.parser)this.yy.parser.parseError(Bo,Fo);else throw new Error(Bo)},setInput:function(Mo,Bo){return this.yy=Bo||this.yy||{},this._input=Mo,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Mo=this._input[0];this.yytext+=Mo,this.yyleng++,this.offset++,this.match+=Mo,this.matched+=Mo;var Bo=Mo.match(/(?:\r\n?|\n).*/g);return Bo?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Mo},unput:function(Mo){var Bo=Mo.length,Fo=Mo.split(/(?:\r\n?|\n)/g);this._input=Mo+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Bo),this.offset-=Bo;var Lo=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Fo.length-1&&(this.yylineno-=Fo.length-1);var Go=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Fo?(Fo.length===Lo.length?this.yylloc.first_column:0)+Lo[Lo.length-Fo.length].length-Fo[0].length:this.yylloc.first_column-Bo},this.options.ranges&&(this.yylloc.range=[Go[0],Go[0]+this.yyleng-Bo]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Mo){this.unput(this.match.slice(Mo))},pastInput:function(){var Mo=this.matched.substr(0,this.matched.length-this.match.length);return(Mo.length>20?"...":"")+Mo.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Mo=this.match;return Mo.length<20&&(Mo+=this._input.substr(0,20-Mo.length)),(Mo.substr(0,20)+(Mo.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Mo=this.pastInput(),Bo=new Array(Mo.length+1).join("-");return Mo+this.upcomingInput()+` -`+Bo+"^"},test_match:function(Mo,Bo){var Po,Lo,Go;if(this.options.backtrack_lexer&&(Go={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Go.yylloc.range=this.yylloc.range.slice(0))),Lo=Mo[0].match(/(?:\r\n?|\n).*/g),Lo&&(this.yylineno+=Lo.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Lo?Lo[Lo.length-1].length-Lo[Lo.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Mo[0].length},this.yytext+=Mo[0],this.match+=Mo[0],this.matches=Mo,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Mo[0].length),this.matched+=Mo[0],Po=this.performAction.call(this,this.yy,this,Bo,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Po)return Po;if(this._backtrack){for(var Do in Go)this[Do]=Go[Do];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Mo,Bo,Po,Lo;this._more||(this.yytext="",this.match="");for(var Go=this._currentRules(),Do=0;DoBo[0].length)){if(Bo=Po,Lo=Do,this.options.backtrack_lexer){if(Mo=this.test_match(Po,Go[Do]),Mo!==!1)return Mo;if(this._backtrack){Bo=!1;continue}else return!1}else if(!this.options.flex)break}return Bo?(Mo=this.test_match(Bo,Go[Lo]),Mo!==!1?Mo:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Bo=this.next();return Bo||this.lex()},begin:function(Bo){this.conditionStack.push(Bo)},popState:function(){var Bo=this.conditionStack.length-1;return Bo>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Bo){return Bo=this.conditionStack.length-1-Math.abs(Bo||0),Bo>=0?this.conditionStack[Bo]:"INITIAL"},pushState:function(Bo){this.begin(Bo)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Bo,Po,Lo,Go){switch(Lo){case 0:break;case 1:break;case 2:return 20;case 3:break;case 4:break;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};return No}();$o.lexer=Ro;function Oo(){this.yy={}}return Oo.prototype=$o,$o.Parser=Oo,new Oo}();parser$c.parser=parser$c;const parser$1$b=parser$c,DEFAULT_PIE_CONFIG=defaultConfig$2.pie,DEFAULT_PIE_DB={sections:{},showData:!1,config:DEFAULT_PIE_CONFIG};let sections$2=DEFAULT_PIE_DB.sections,showData=DEFAULT_PIE_DB.showData;const config$1=structuredClone(DEFAULT_PIE_CONFIG),getConfig=()=>structuredClone(config$1),clear$b=()=>{sections$2=structuredClone(DEFAULT_PIE_DB.sections),showData=DEFAULT_PIE_DB.showData,clear$k()},addSection$2=(eo,to)=>{eo=sanitizeText$2$1(eo,getConfig$2()),sections$2[eo]===void 0&&(sections$2[eo]=to,log$1.debug(`added new section: ${eo}, with value: ${to}`))},getSections$2=()=>sections$2,cleanupValue=eo=>(eo.substring(0,1)===":"&&(eo=eo.substring(1).trim()),Number(eo.trim())),setShowData=eo=>{showData=eo},getShowData=()=>showData,db$c={getConfig,clear:clear$b,setDiagramTitle,getDiagramTitle,setAccTitle,getAccTitle,setAccDescription,getAccDescription,addSection:addSection$2,getSections:getSections$2,cleanupValue,setShowData,getShowData},getStyles$9=eo=>` +`+Bo+"^"},test_match:function(Mo,Bo){var Fo,Lo,Go;if(this.options.backtrack_lexer&&(Go={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Go.yylloc.range=this.yylloc.range.slice(0))),Lo=Mo[0].match(/(?:\r\n?|\n).*/g),Lo&&(this.yylineno+=Lo.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Lo?Lo[Lo.length-1].length-Lo[Lo.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Mo[0].length},this.yytext+=Mo[0],this.match+=Mo[0],this.matches=Mo,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Mo[0].length),this.matched+=Mo[0],Fo=this.performAction.call(this,this.yy,this,Bo,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Fo)return Fo;if(this._backtrack){for(var Do in Go)this[Do]=Go[Do];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Mo,Bo,Fo,Lo;this._more||(this.yytext="",this.match="");for(var Go=this._currentRules(),Do=0;DoBo[0].length)){if(Bo=Fo,Lo=Do,this.options.backtrack_lexer){if(Mo=this.test_match(Fo,Go[Do]),Mo!==!1)return Mo;if(this._backtrack){Bo=!1;continue}else return!1}else if(!this.options.flex)break}return Bo?(Mo=this.test_match(Bo,Go[Lo]),Mo!==!1?Mo:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Bo=this.next();return Bo||this.lex()},begin:function(Bo){this.conditionStack.push(Bo)},popState:function(){var Bo=this.conditionStack.length-1;return Bo>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Bo){return Bo=this.conditionStack.length-1-Math.abs(Bo||0),Bo>=0?this.conditionStack[Bo]:"INITIAL"},pushState:function(Bo){this.begin(Bo)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Bo,Fo,Lo,Go){switch(Lo){case 0:break;case 1:break;case 2:return 20;case 3:break;case 4:break;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};return No}();$o.lexer=Ro;function Oo(){this.yy={}}return Oo.prototype=$o,$o.Parser=Oo,new Oo}();parser$c.parser=parser$c;const parser$1$b=parser$c,DEFAULT_PIE_CONFIG=defaultConfig$2.pie,DEFAULT_PIE_DB={sections:{},showData:!1,config:DEFAULT_PIE_CONFIG};let sections$2=DEFAULT_PIE_DB.sections,showData=DEFAULT_PIE_DB.showData;const config$1=structuredClone(DEFAULT_PIE_CONFIG),getConfig=()=>structuredClone(config$1),clear$b=()=>{sections$2=structuredClone(DEFAULT_PIE_DB.sections),showData=DEFAULT_PIE_DB.showData,clear$k()},addSection$2=(eo,to)=>{eo=sanitizeText$2$1(eo,getConfig$2()),sections$2[eo]===void 0&&(sections$2[eo]=to,log$1.debug(`added new section: ${eo}, with value: ${to}`))},getSections$2=()=>sections$2,cleanupValue=eo=>(eo.substring(0,1)===":"&&(eo=eo.substring(1).trim()),Number(eo.trim())),setShowData=eo=>{showData=eo},getShowData=()=>showData,db$c={getConfig,clear:clear$b,setDiagramTitle,getDiagramTitle,setAccTitle,getAccTitle,setAccDescription,getAccDescription,addSection:addSection$2,getSections:getSections$2,cleanupValue,setShowData,getShowData},getStyles$9=eo=>` .pieCircle{ stroke: ${eo.pieStrokeColor}; stroke-width : ${eo.pieStrokeWidth}; @@ -2842,19 +2842,19 @@ Expecting `+Vs.join(", ")+", got '"+(this.terminals_[Ts]||Ts)+"'":El="Parse erro font-size: ${eo.pieLegendTextSize}; } `,styles$8=getStyles$9,createPieArcs=eo=>{const to=Object.entries(eo).map(io=>({label:io[0],value:io[1]})).sort((io,so)=>so.value-io.value);return pie$1().value(io=>io.value)(to)},draw$e=(eo,to,no,io)=>{log$1.debug(`rendering pie chart -`+eo);const so=io.db,ao=getConfig$2(),lo=cleanAndMerge(so.getConfig(),ao.pie),uo=40,ho=18,go=4,mo=450,yo=mo,So=selectSvgElement(to),_o=So.append("g"),ko=so.getSections();_o.attr("transform","translate("+yo/2+","+mo/2+")");const{themeVariables:Co}=ao;let[$o]=parseFontSize(Co.pieOuterStrokeWidth);$o??($o=2);const Ro=lo.textPosition,Oo=Math.min(yo,mo)/2-uo,No=arc().innerRadius(0).outerRadius(Oo),Mo=arc().innerRadius(Oo*Ro).outerRadius(Oo*Ro);_o.append("circle").attr("cx",0).attr("cy",0).attr("r",Oo+$o/2).attr("class","pieOuterCircle");const Bo=createPieArcs(ko),Po=[Co.pie1,Co.pie2,Co.pie3,Co.pie4,Co.pie5,Co.pie6,Co.pie7,Co.pie8,Co.pie9,Co.pie10,Co.pie11,Co.pie12],Lo=ordinal(Po);_o.selectAll("mySlices").data(Bo).enter().append("path").attr("d",No).attr("fill",Yo=>Lo(Yo.data.label)).attr("class","pieCircle");let Go=0;Object.keys(ko).forEach(Yo=>{Go+=ko[Yo]}),_o.selectAll("mySlices").data(Bo).enter().append("text").text(Yo=>(Yo.data.value/Go*100).toFixed(0)+"%").attr("transform",Yo=>"translate("+Mo.centroid(Yo)+")").style("text-anchor","middle").attr("class","slice"),_o.append("text").text(so.getDiagramTitle()).attr("x",0).attr("y",-(mo-50)/2).attr("class","pieTitleText");const Do=_o.selectAll(".legend").data(Lo.domain()).enter().append("g").attr("class","legend").attr("transform",(Yo,qo)=>{const Jo=ho+go,ps=Jo*Lo.domain().length/2,Qo=12*ho,hs=qo*Jo-ps;return"translate("+Qo+","+hs+")"});Do.append("rect").attr("width",ho).attr("height",ho).style("fill",Lo).style("stroke",Lo),Do.data(Bo).append("text").attr("x",ho+go).attr("y",ho-go).text(Yo=>{const{label:qo,value:Jo}=Yo.data;return so.getShowData()?`${qo} [${Jo}]`:qo});const Uo=Math.max(...Do.selectAll("text").nodes().map(Yo=>(Yo==null?void 0:Yo.getBoundingClientRect().width)??0)),Ho=yo+uo+ho+go+Uo;So.attr("viewBox",`0 0 ${Ho} ${mo}`),configureSvgSize(So,mo,Ho,lo.useMaxWidth)},renderer$f={draw:draw$e},diagram$e={parser:parser$1$b,db:db$c,renderer:renderer$f,styles:styles$8},pieDiagram79897490=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$e},Symbol.toStringTag,{value:"Module"}));var parser$b=function(){var eo=function(Ws,Ps,qs,ga){for(qs=qs||{},ga=Ws.length;ga--;qs[Ws[ga]]=Ps);return qs},to=[1,3],no=[1,4],io=[1,5],so=[1,6],ao=[1,7],lo=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],uo=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],ho=[32,33,34],go=[2,7],mo=[1,13],yo=[1,17],So=[1,18],_o=[1,19],ko=[1,20],Co=[1,21],$o=[1,22],Ro=[1,23],Oo=[1,24],No=[1,25],Mo=[1,26],Bo=[1,27],Po=[1,30],Lo=[1,31],Go=[1,32],Do=[1,33],Uo=[1,34],Ho=[1,35],Yo=[1,36],qo=[1,37],Jo=[1,38],ps=[1,39],Qo=[1,40],hs=[1,41],gs=[1,42],ys=[1,57],vs=[1,58],ks=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],Os={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(Ps,qs,ga,Fs,Js,Vs,El){var yl=Vs.length-1;switch(Js){case 12:this.$=Vs[yl].trim(),Fs.setDiagramTitle(this.$);break;case 13:this.$=Vs[yl].trim(),Fs.setAccTitle(this.$);break;case 14:case 15:this.$=Vs[yl].trim(),Fs.setAccDescription(this.$);break;case 16:Fs.addSection(Vs[yl].substr(8)),this.$=Vs[yl].substr(8);break;case 17:Fs.addPoint(Vs[yl-3],Vs[yl-1],Vs[yl]);break;case 18:Fs.setXAxisLeftText(Vs[yl-2]),Fs.setXAxisRightText(Vs[yl]);break;case 19:Vs[yl-1].text+=" ⟶ ",Fs.setXAxisLeftText(Vs[yl-1]);break;case 20:Fs.setXAxisLeftText(Vs[yl]);break;case 21:Fs.setYAxisBottomText(Vs[yl-2]),Fs.setYAxisTopText(Vs[yl]);break;case 22:Vs[yl-1].text+=" ⟶ ",Fs.setYAxisBottomText(Vs[yl-1]);break;case 23:Fs.setYAxisBottomText(Vs[yl]);break;case 24:Fs.setQuadrant1Text(Vs[yl]);break;case 25:Fs.setQuadrant2Text(Vs[yl]);break;case 26:Fs.setQuadrant3Text(Vs[yl]);break;case 27:Fs.setQuadrant4Text(Vs[yl]);break;case 31:this.$={text:Vs[yl],type:"text"};break;case 32:this.$={text:Vs[yl-1].text+""+Vs[yl],type:Vs[yl-1].type};break;case 33:this.$={text:Vs[yl],type:"text"};break;case 34:this.$={text:Vs[yl],type:"markdown"};break;case 35:this.$=Vs[yl];break;case 36:this.$=Vs[yl-1]+""+Vs[yl];break}},table:[{3:1,4:2,5:to,6:no,32:io,33:so,34:ao},{1:[3]},{3:8,4:2,5:to,6:no,32:io,33:so,34:ao},{3:9,4:2,5:to,6:no,32:io,33:so,34:ao},eo(lo,[2,4],{7:10}),eo(uo,[2,28]),eo(uo,[2,29]),eo(uo,[2,30]),{1:[2,1]},{1:[2,2]},eo(ho,go,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:mo,13:yo,15:So,17:_o,19:ko,20:Co,25:$o,27:Ro,28:Oo,29:No,30:Mo,31:Bo,37:Po,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs}),eo(lo,[2,5]),{4:43,32:io,33:so,34:ao},eo(ho,go,{10:14,11:15,12:16,21:28,35:29,9:44,5:mo,13:yo,15:So,17:_o,19:ko,20:Co,25:$o,27:Ro,28:Oo,29:No,30:Mo,31:Bo,37:Po,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs}),eo(ho,[2,9]),eo(ho,[2,10]),eo(ho,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},eo(ho,[2,15]),eo(ho,[2,16]),{21:48,35:29,37:Po,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs},{21:49,35:29,37:Po,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs},{21:50,35:29,37:Po,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs},{21:51,35:29,37:Po,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs},{21:52,35:29,37:Po,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs},{21:53,35:29,37:Po,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs},{5:ys,22:[1,54],35:56,36:55,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs},eo(ks,[2,31]),eo(ks,[2,33]),eo(ks,[2,34]),eo(ks,[2,37]),eo(ks,[2,38]),eo(ks,[2,39]),eo(ks,[2,40]),eo(ks,[2,41]),eo(ks,[2,42]),eo(ks,[2,43]),eo(ks,[2,44]),eo(ks,[2,45]),eo(ks,[2,46]),eo(ks,[2,47]),eo(lo,[2,6]),eo(ho,[2,8]),eo(ho,[2,12]),eo(ho,[2,13]),eo(ho,[2,14]),eo(ho,[2,20],{36:55,35:56,5:ys,26:[1,59],40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,23],{36:55,35:56,5:ys,26:[1,60],40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,24],{36:55,35:56,5:ys,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,25],{36:55,35:56,5:ys,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,26],{36:55,35:56,5:ys,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,27],{36:55,35:56,5:ys,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),{23:[1,61]},eo(ks,[2,32]),eo(ks,[2,48]),eo(ks,[2,49]),eo(ks,[2,50]),eo(ho,[2,19],{35:29,21:62,37:Po,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs}),eo(ho,[2,22],{35:29,21:63,37:Po,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs}),{24:[1,64]},eo(ho,[2,18],{36:55,35:56,5:ys,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,21],{36:55,35:56,5:ys,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(Ps,qs){if(qs.recoverable)this.trace(Ps);else{var ga=new Error(Ps);throw ga.hash=qs,ga}},parse:function(Ps){var qs=this,ga=[0],Fs=[],Js=[null],Vs=[],El=this.table,yl="",Gl=0,Qs=0,du=2,Ol=1,Fu=Vs.slice.call(arguments,1),ju=Object.create(this.lexer),F1={yy:{}};for(var y1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y1)&&(F1.yy[y1]=this.yy[y1]);ju.setInput(Ps,F1.yy),F1.yy.lexer=ju,F1.yy.parser=this,typeof ju.yylloc>"u"&&(ju.yylloc={});var r1=ju.yylloc;Vs.push(r1);var $u=ju.options&&ju.options.ranges;typeof F1.yy.parseError=="function"?this.parseError=F1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Kl(){var Gu;return Gu=Fs.pop()||ju.lex()||Ol,typeof Gu!="number"&&(Gu instanceof Array&&(Fs=Gu,Gu=Fs.pop()),Gu=qs.symbols_[Gu]||Gu),Gu}for(var Is,Ks,Bs,Ds,Zs={},Cl,ba,fu,Lu;;){if(Ks=ga[ga.length-1],this.defaultActions[Ks]?Bs=this.defaultActions[Ks]:((Is===null||typeof Is>"u")&&(Is=Kl()),Bs=El[Ks]&&El[Ks][Is]),typeof Bs>"u"||!Bs.length||!Bs[0]){var e1="";Lu=[];for(Cl in El[Ks])this.terminals_[Cl]&&Cl>du&&Lu.push("'"+this.terminals_[Cl]+"'");ju.showPosition?e1="Parse error on line "+(Gl+1)+`: +`+eo);const so=io.db,ao=getConfig$2(),lo=cleanAndMerge(so.getConfig(),ao.pie),uo=40,ho=18,go=4,mo=450,yo=mo,So=selectSvgElement(to),_o=So.append("g"),ko=so.getSections();_o.attr("transform","translate("+yo/2+","+mo/2+")");const{themeVariables:Co}=ao;let[$o]=parseFontSize(Co.pieOuterStrokeWidth);$o??($o=2);const Ro=lo.textPosition,Oo=Math.min(yo,mo)/2-uo,No=arc().innerRadius(0).outerRadius(Oo),Mo=arc().innerRadius(Oo*Ro).outerRadius(Oo*Ro);_o.append("circle").attr("cx",0).attr("cy",0).attr("r",Oo+$o/2).attr("class","pieOuterCircle");const Bo=createPieArcs(ko),Fo=[Co.pie1,Co.pie2,Co.pie3,Co.pie4,Co.pie5,Co.pie6,Co.pie7,Co.pie8,Co.pie9,Co.pie10,Co.pie11,Co.pie12],Lo=ordinal(Fo);_o.selectAll("mySlices").data(Bo).enter().append("path").attr("d",No).attr("fill",Yo=>Lo(Yo.data.label)).attr("class","pieCircle");let Go=0;Object.keys(ko).forEach(Yo=>{Go+=ko[Yo]}),_o.selectAll("mySlices").data(Bo).enter().append("text").text(Yo=>(Yo.data.value/Go*100).toFixed(0)+"%").attr("transform",Yo=>"translate("+Mo.centroid(Yo)+")").style("text-anchor","middle").attr("class","slice"),_o.append("text").text(so.getDiagramTitle()).attr("x",0).attr("y",-(mo-50)/2).attr("class","pieTitleText");const Do=_o.selectAll(".legend").data(Lo.domain()).enter().append("g").attr("class","legend").attr("transform",(Yo,qo)=>{const Jo=ho+go,ps=Jo*Lo.domain().length/2,Qo=12*ho,hs=qo*Jo-ps;return"translate("+Qo+","+hs+")"});Do.append("rect").attr("width",ho).attr("height",ho).style("fill",Lo).style("stroke",Lo),Do.data(Bo).append("text").attr("x",ho+go).attr("y",ho-go).text(Yo=>{const{label:qo,value:Jo}=Yo.data;return so.getShowData()?`${qo} [${Jo}]`:qo});const Uo=Math.max(...Do.selectAll("text").nodes().map(Yo=>(Yo==null?void 0:Yo.getBoundingClientRect().width)??0)),Ho=yo+uo+ho+go+Uo;So.attr("viewBox",`0 0 ${Ho} ${mo}`),configureSvgSize(So,mo,Ho,lo.useMaxWidth)},renderer$f={draw:draw$e},diagram$e={parser:parser$1$b,db:db$c,renderer:renderer$f,styles:styles$8},pieDiagram79897490=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$e},Symbol.toStringTag,{value:"Module"}));var parser$b=function(){var eo=function(Ws,Ps,qs,ga){for(qs=qs||{},ga=Ws.length;ga--;qs[Ws[ga]]=Ps);return qs},to=[1,3],no=[1,4],io=[1,5],so=[1,6],ao=[1,7],lo=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],uo=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],ho=[32,33,34],go=[2,7],mo=[1,13],yo=[1,17],So=[1,18],_o=[1,19],ko=[1,20],Co=[1,21],$o=[1,22],Ro=[1,23],Oo=[1,24],No=[1,25],Mo=[1,26],Bo=[1,27],Fo=[1,30],Lo=[1,31],Go=[1,32],Do=[1,33],Uo=[1,34],Ho=[1,35],Yo=[1,36],qo=[1,37],Jo=[1,38],ps=[1,39],Qo=[1,40],hs=[1,41],gs=[1,42],ys=[1,57],vs=[1,58],ks=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],Os={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(Ps,qs,ga,Fs,Js,Vs,El){var yl=Vs.length-1;switch(Js){case 12:this.$=Vs[yl].trim(),Fs.setDiagramTitle(this.$);break;case 13:this.$=Vs[yl].trim(),Fs.setAccTitle(this.$);break;case 14:case 15:this.$=Vs[yl].trim(),Fs.setAccDescription(this.$);break;case 16:Fs.addSection(Vs[yl].substr(8)),this.$=Vs[yl].substr(8);break;case 17:Fs.addPoint(Vs[yl-3],Vs[yl-1],Vs[yl]);break;case 18:Fs.setXAxisLeftText(Vs[yl-2]),Fs.setXAxisRightText(Vs[yl]);break;case 19:Vs[yl-1].text+=" ⟶ ",Fs.setXAxisLeftText(Vs[yl-1]);break;case 20:Fs.setXAxisLeftText(Vs[yl]);break;case 21:Fs.setYAxisBottomText(Vs[yl-2]),Fs.setYAxisTopText(Vs[yl]);break;case 22:Vs[yl-1].text+=" ⟶ ",Fs.setYAxisBottomText(Vs[yl-1]);break;case 23:Fs.setYAxisBottomText(Vs[yl]);break;case 24:Fs.setQuadrant1Text(Vs[yl]);break;case 25:Fs.setQuadrant2Text(Vs[yl]);break;case 26:Fs.setQuadrant3Text(Vs[yl]);break;case 27:Fs.setQuadrant4Text(Vs[yl]);break;case 31:this.$={text:Vs[yl],type:"text"};break;case 32:this.$={text:Vs[yl-1].text+""+Vs[yl],type:Vs[yl-1].type};break;case 33:this.$={text:Vs[yl],type:"text"};break;case 34:this.$={text:Vs[yl],type:"markdown"};break;case 35:this.$=Vs[yl];break;case 36:this.$=Vs[yl-1]+""+Vs[yl];break}},table:[{3:1,4:2,5:to,6:no,32:io,33:so,34:ao},{1:[3]},{3:8,4:2,5:to,6:no,32:io,33:so,34:ao},{3:9,4:2,5:to,6:no,32:io,33:so,34:ao},eo(lo,[2,4],{7:10}),eo(uo,[2,28]),eo(uo,[2,29]),eo(uo,[2,30]),{1:[2,1]},{1:[2,2]},eo(ho,go,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:mo,13:yo,15:So,17:_o,19:ko,20:Co,25:$o,27:Ro,28:Oo,29:No,30:Mo,31:Bo,37:Fo,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs}),eo(lo,[2,5]),{4:43,32:io,33:so,34:ao},eo(ho,go,{10:14,11:15,12:16,21:28,35:29,9:44,5:mo,13:yo,15:So,17:_o,19:ko,20:Co,25:$o,27:Ro,28:Oo,29:No,30:Mo,31:Bo,37:Fo,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs}),eo(ho,[2,9]),eo(ho,[2,10]),eo(ho,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},eo(ho,[2,15]),eo(ho,[2,16]),{21:48,35:29,37:Fo,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs},{21:49,35:29,37:Fo,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs},{21:50,35:29,37:Fo,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs},{21:51,35:29,37:Fo,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs},{21:52,35:29,37:Fo,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs},{21:53,35:29,37:Fo,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs},{5:ys,22:[1,54],35:56,36:55,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs},eo(ks,[2,31]),eo(ks,[2,33]),eo(ks,[2,34]),eo(ks,[2,37]),eo(ks,[2,38]),eo(ks,[2,39]),eo(ks,[2,40]),eo(ks,[2,41]),eo(ks,[2,42]),eo(ks,[2,43]),eo(ks,[2,44]),eo(ks,[2,45]),eo(ks,[2,46]),eo(ks,[2,47]),eo(lo,[2,6]),eo(ho,[2,8]),eo(ho,[2,12]),eo(ho,[2,13]),eo(ho,[2,14]),eo(ho,[2,20],{36:55,35:56,5:ys,26:[1,59],40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,23],{36:55,35:56,5:ys,26:[1,60],40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,24],{36:55,35:56,5:ys,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,25],{36:55,35:56,5:ys,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,26],{36:55,35:56,5:ys,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,27],{36:55,35:56,5:ys,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),{23:[1,61]},eo(ks,[2,32]),eo(ks,[2,48]),eo(ks,[2,49]),eo(ks,[2,50]),eo(ho,[2,19],{35:29,21:62,37:Fo,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs}),eo(ho,[2,22],{35:29,21:63,37:Fo,38:Lo,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs}),{24:[1,64]},eo(ho,[2,18],{36:55,35:56,5:ys,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,21],{36:55,35:56,5:ys,40:Go,41:Do,42:Uo,43:Ho,44:Yo,45:qo,46:Jo,47:ps,48:Qo,49:hs,50:gs,51:vs}),eo(ho,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(Ps,qs){if(qs.recoverable)this.trace(Ps);else{var ga=new Error(Ps);throw ga.hash=qs,ga}},parse:function(Ps){var qs=this,ga=[0],Fs=[],Js=[null],Vs=[],El=this.table,yl="",Gl=0,Qs=0,du=2,Ol=1,Fu=Vs.slice.call(arguments,1),ju=Object.create(this.lexer),F1={yy:{}};for(var y1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y1)&&(F1.yy[y1]=this.yy[y1]);ju.setInput(Ps,F1.yy),F1.yy.lexer=ju,F1.yy.parser=this,typeof ju.yylloc>"u"&&(ju.yylloc={});var r1=ju.yylloc;Vs.push(r1);var $u=ju.options&&ju.options.ranges;typeof F1.yy.parseError=="function"?this.parseError=F1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Kl(){var Gu;return Gu=Fs.pop()||ju.lex()||Ol,typeof Gu!="number"&&(Gu instanceof Array&&(Fs=Gu,Gu=Fs.pop()),Gu=qs.symbols_[Gu]||Gu),Gu}for(var Is,Ks,Bs,Ds,Zs={},Cl,ba,fu,Lu;;){if(Ks=ga[ga.length-1],this.defaultActions[Ks]?Bs=this.defaultActions[Ks]:((Is===null||typeof Is>"u")&&(Is=Kl()),Bs=El[Ks]&&El[Ks][Is]),typeof Bs>"u"||!Bs.length||!Bs[0]){var e1="";Lu=[];for(Cl in El[Ks])this.terminals_[Cl]&&Cl>du&&Lu.push("'"+this.terminals_[Cl]+"'");ju.showPosition?e1="Parse error on line "+(Gl+1)+`: `+ju.showPosition()+` Expecting `+Lu.join(", ")+", got '"+(this.terminals_[Is]||Is)+"'":e1="Parse error on line "+(Gl+1)+": Unexpected "+(Is==Ol?"end of input":"'"+(this.terminals_[Is]||Is)+"'"),this.parseError(e1,{text:ju.match,token:this.terminals_[Is]||Is,line:ju.yylineno,loc:r1,expected:Lu})}if(Bs[0]instanceof Array&&Bs.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ks+", token: "+Is);switch(Bs[0]){case 1:ga.push(Is),Js.push(ju.yytext),Vs.push(ju.yylloc),ga.push(Bs[1]),Is=null,Qs=ju.yyleng,yl=ju.yytext,Gl=ju.yylineno,r1=ju.yylloc;break;case 2:if(ba=this.productions_[Bs[1]][1],Zs.$=Js[Js.length-ba],Zs._$={first_line:Vs[Vs.length-(ba||1)].first_line,last_line:Vs[Vs.length-1].last_line,first_column:Vs[Vs.length-(ba||1)].first_column,last_column:Vs[Vs.length-1].last_column},$u&&(Zs._$.range=[Vs[Vs.length-(ba||1)].range[0],Vs[Vs.length-1].range[1]]),Ds=this.performAction.apply(Zs,[yl,Qs,Gl,F1.yy,Bs[1],Js,Vs].concat(Fu)),typeof Ds<"u")return Ds;ba&&(ga=ga.slice(0,-1*ba*2),Js=Js.slice(0,-1*ba),Vs=Vs.slice(0,-1*ba)),ga.push(this.productions_[Bs[1]][0]),Js.push(Zs.$),Vs.push(Zs._$),fu=El[ga[ga.length-2]][ga[ga.length-1]],ga.push(fu);break;case 3:return!0}}return!0}},Ts=function(){var Ws={EOF:1,parseError:function(qs,ga){if(this.yy.parser)this.yy.parser.parseError(qs,ga);else throw new Error(qs)},setInput:function(Ps,qs){return this.yy=qs||this.yy||{},this._input=Ps,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ps=this._input[0];this.yytext+=Ps,this.yyleng++,this.offset++,this.match+=Ps,this.matched+=Ps;var qs=Ps.match(/(?:\r\n?|\n).*/g);return qs?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ps},unput:function(Ps){var qs=Ps.length,ga=Ps.split(/(?:\r\n?|\n)/g);this._input=Ps+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-qs),this.offset-=qs;var Fs=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ga.length-1&&(this.yylineno-=ga.length-1);var Js=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ga?(ga.length===Fs.length?this.yylloc.first_column:0)+Fs[Fs.length-ga.length].length-ga[0].length:this.yylloc.first_column-qs},this.options.ranges&&(this.yylloc.range=[Js[0],Js[0]+this.yyleng-qs]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Ps){this.unput(this.match.slice(Ps))},pastInput:function(){var Ps=this.matched.substr(0,this.matched.length-this.match.length);return(Ps.length>20?"...":"")+Ps.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ps=this.match;return Ps.length<20&&(Ps+=this._input.substr(0,20-Ps.length)),(Ps.substr(0,20)+(Ps.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ps=this.pastInput(),qs=new Array(Ps.length+1).join("-");return Ps+this.upcomingInput()+` `+qs+"^"},test_match:function(Ps,qs){var ga,Fs,Js;if(this.options.backtrack_lexer&&(Js={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Js.yylloc.range=this.yylloc.range.slice(0))),Fs=Ps[0].match(/(?:\r\n?|\n).*/g),Fs&&(this.yylineno+=Fs.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Fs?Fs[Fs.length-1].length-Fs[Fs.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ps[0].length},this.yytext+=Ps[0],this.match+=Ps[0],this.matches=Ps,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ps[0].length),this.matched+=Ps[0],ga=this.performAction.call(this,this.yy,this,qs,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ga)return ga;if(this._backtrack){for(var Vs in Js)this[Vs]=Js[Vs];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ps,qs,ga,Fs;this._more||(this.yytext="",this.match="");for(var Js=this._currentRules(),Vs=0;Vsqs[0].length)){if(qs=ga,Fs=Vs,this.options.backtrack_lexer){if(Ps=this.test_match(ga,Js[Vs]),Ps!==!1)return Ps;if(this._backtrack){qs=!1;continue}else return!1}else if(!this.options.flex)break}return qs?(Ps=this.test_match(qs,Js[Fs]),Ps!==!1?Ps:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var qs=this.next();return qs||this.lex()},begin:function(qs){this.conditionStack.push(qs)},popState:function(){var qs=this.conditionStack.length-1;return qs>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(qs){return qs=this.conditionStack.length-1-Math.abs(qs||0),qs>=0?this.conditionStack[qs]:"INITIAL"},pushState:function(qs){this.begin(qs)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(qs,ga,Fs,Js){switch(Fs){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return Ws}();Os.lexer=Ts;function Xs(){this.yy={}}return Xs.prototype=Os,Os.Parser=Xs,new Xs}();parser$b.parser=parser$b;const parser$1$a=parser$b,defaultThemeVariables=getThemeVariables$2();class QuadrantBuilder{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var to,no,io,so,ao,lo,uo,ho,go,mo,yo,So,_o,ko,Co,$o,Ro,Oo;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((to=defaultConfig$2.quadrantChart)==null?void 0:to.chartWidth)||500,chartWidth:((no=defaultConfig$2.quadrantChart)==null?void 0:no.chartHeight)||500,titlePadding:((io=defaultConfig$2.quadrantChart)==null?void 0:io.titlePadding)||10,titleFontSize:((so=defaultConfig$2.quadrantChart)==null?void 0:so.titleFontSize)||20,quadrantPadding:((ao=defaultConfig$2.quadrantChart)==null?void 0:ao.quadrantPadding)||5,xAxisLabelPadding:((lo=defaultConfig$2.quadrantChart)==null?void 0:lo.xAxisLabelPadding)||5,yAxisLabelPadding:((uo=defaultConfig$2.quadrantChart)==null?void 0:uo.yAxisLabelPadding)||5,xAxisLabelFontSize:((ho=defaultConfig$2.quadrantChart)==null?void 0:ho.xAxisLabelFontSize)||16,yAxisLabelFontSize:((go=defaultConfig$2.quadrantChart)==null?void 0:go.yAxisLabelFontSize)||16,quadrantLabelFontSize:((mo=defaultConfig$2.quadrantChart)==null?void 0:mo.quadrantLabelFontSize)||16,quadrantTextTopPadding:((yo=defaultConfig$2.quadrantChart)==null?void 0:yo.quadrantTextTopPadding)||5,pointTextPadding:((So=defaultConfig$2.quadrantChart)==null?void 0:So.pointTextPadding)||5,pointLabelFontSize:((_o=defaultConfig$2.quadrantChart)==null?void 0:_o.pointLabelFontSize)||12,pointRadius:((ko=defaultConfig$2.quadrantChart)==null?void 0:ko.pointRadius)||5,xAxisPosition:((Co=defaultConfig$2.quadrantChart)==null?void 0:Co.xAxisPosition)||"top",yAxisPosition:(($o=defaultConfig$2.quadrantChart)==null?void 0:$o.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((Ro=defaultConfig$2.quadrantChart)==null?void 0:Ro.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((Oo=defaultConfig$2.quadrantChart)==null?void 0:Oo.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:defaultThemeVariables.quadrant1Fill,quadrant2Fill:defaultThemeVariables.quadrant2Fill,quadrant3Fill:defaultThemeVariables.quadrant3Fill,quadrant4Fill:defaultThemeVariables.quadrant4Fill,quadrant1TextFill:defaultThemeVariables.quadrant1TextFill,quadrant2TextFill:defaultThemeVariables.quadrant2TextFill,quadrant3TextFill:defaultThemeVariables.quadrant3TextFill,quadrant4TextFill:defaultThemeVariables.quadrant4TextFill,quadrantPointFill:defaultThemeVariables.quadrantPointFill,quadrantPointTextFill:defaultThemeVariables.quadrantPointTextFill,quadrantXAxisTextFill:defaultThemeVariables.quadrantXAxisTextFill,quadrantYAxisTextFill:defaultThemeVariables.quadrantYAxisTextFill,quadrantTitleFill:defaultThemeVariables.quadrantTitleFill,quadrantInternalBorderStrokeFill:defaultThemeVariables.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:defaultThemeVariables.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),log$1.info("clear called")}setData(to){this.data={...this.data,...to}}addPoints(to){this.data.points=[...to,...this.data.points]}setConfig(to){log$1.trace("setConfig called with: ",to),this.config={...this.config,...to}}setThemeConfig(to){log$1.trace("setThemeConfig called with: ",to),this.themeConfig={...this.themeConfig,...to}}calculateSpace(to,no,io,so){const ao=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,lo={top:to==="top"&&no?ao:0,bottom:to==="bottom"&&no?ao:0},uo=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,ho={left:this.config.yAxisPosition==="left"&&io?uo:0,right:this.config.yAxisPosition==="right"&&io?uo:0},go=this.config.titleFontSize+this.config.titlePadding*2,mo={top:so?go:0},yo=this.config.quadrantPadding+ho.left,So=this.config.quadrantPadding+lo.top+mo.top,_o=this.config.chartWidth-this.config.quadrantPadding*2-ho.left-ho.right,ko=this.config.chartHeight-this.config.quadrantPadding*2-lo.top-lo.bottom-mo.top,Co=_o/2,$o=ko/2;return{xAxisSpace:lo,yAxisSpace:ho,titleSpace:mo,quadrantSpace:{quadrantLeft:yo,quadrantTop:So,quadrantWidth:_o,quadrantHalfWidth:Co,quadrantHeight:ko,quadrantHalfHeight:$o}}}getAxisLabels(to,no,io,so){const{quadrantSpace:ao,titleSpace:lo}=so,{quadrantHalfHeight:uo,quadrantHeight:ho,quadrantLeft:go,quadrantHalfWidth:mo,quadrantTop:yo,quadrantWidth:So}=ao,_o=!!this.data.xAxisRightText,ko=!!this.data.yAxisTopText,Co=[];return this.data.xAxisLeftText&&no&&Co.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:go+(_o?mo/2:0),y:to==="top"?this.config.xAxisLabelPadding+lo.top:this.config.xAxisLabelPadding+yo+ho+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:_o?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&no&&Co.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:go+mo+(_o?mo/2:0),y:to==="top"?this.config.xAxisLabelPadding+lo.top:this.config.xAxisLabelPadding+yo+ho+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:_o?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&io&&Co.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+go+So+this.config.quadrantPadding,y:yo+ho-(ko?uo/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:ko?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&io&&Co.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+go+So+this.config.quadrantPadding,y:yo+uo-(ko?uo/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:ko?"center":"left",horizontalPos:"top",rotation:-90}),Co}getQuadrants(to){const{quadrantSpace:no}=to,{quadrantHalfHeight:io,quadrantLeft:so,quadrantHalfWidth:ao,quadrantTop:lo}=no,uo=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:so+ao,y:lo,width:ao,height:io,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:so,y:lo,width:ao,height:io,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:so,y:lo+io,width:ao,height:io,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:so+ao,y:lo+io,width:ao,height:io,fill:this.themeConfig.quadrant4Fill}];for(const ho of uo)ho.text.x=ho.x+ho.width/2,this.data.points.length===0?(ho.text.y=ho.y+ho.height/2,ho.text.horizontalPos="middle"):(ho.text.y=ho.y+this.config.quadrantTextTopPadding,ho.text.horizontalPos="top");return uo}getQuadrantPoints(to){const{quadrantSpace:no}=to,{quadrantHeight:io,quadrantLeft:so,quadrantTop:ao,quadrantWidth:lo}=no,uo=linear().domain([0,1]).range([so,lo+so]),ho=linear().domain([0,1]).range([io+ao,ao]);return this.data.points.map(mo=>({x:uo(mo.x),y:ho(mo.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:mo.text,fill:this.themeConfig.quadrantPointTextFill,x:uo(mo.x),y:ho(mo.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(to){const no=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:io}=to,{quadrantHalfHeight:so,quadrantHeight:ao,quadrantLeft:lo,quadrantHalfWidth:uo,quadrantTop:ho,quadrantWidth:go}=io;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:lo-no,y1:ho,x2:lo+go+no,y2:ho},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:lo+go,y1:ho+no,x2:lo+go,y2:ho+ao-no},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:lo-no,y1:ho+ao,x2:lo+go+no,y2:ho+ao},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:lo,y1:ho+no,x2:lo,y2:ho+ao-no},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:lo+uo,y1:ho+no,x2:lo+uo,y2:ho+ao-no},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:lo+no,y1:ho+so,x2:lo+go-no,y2:ho+so}]}getTitle(to){if(to)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const to=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),no=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),io=this.config.showTitle&&!!this.data.titleText,so=this.data.points.length>0?"bottom":this.config.xAxisPosition,ao=this.calculateSpace(so,to,no,io);return{points:this.getQuadrantPoints(ao),quadrants:this.getQuadrants(ao),axisLabels:this.getAxisLabels(so,to,no,ao),borderLines:this.getBorders(ao),title:this.getTitle(io)}}}const config=getConfig$2();function textSanitizer$1(eo){return sanitizeText$2$1(eo.trim(),config)}const quadrantBuilder=new QuadrantBuilder;function setQuadrant1Text(eo){quadrantBuilder.setData({quadrant1Text:textSanitizer$1(eo.text)})}function setQuadrant2Text(eo){quadrantBuilder.setData({quadrant2Text:textSanitizer$1(eo.text)})}function setQuadrant3Text(eo){quadrantBuilder.setData({quadrant3Text:textSanitizer$1(eo.text)})}function setQuadrant4Text(eo){quadrantBuilder.setData({quadrant4Text:textSanitizer$1(eo.text)})}function setXAxisLeftText(eo){quadrantBuilder.setData({xAxisLeftText:textSanitizer$1(eo.text)})}function setXAxisRightText(eo){quadrantBuilder.setData({xAxisRightText:textSanitizer$1(eo.text)})}function setYAxisTopText(eo){quadrantBuilder.setData({yAxisTopText:textSanitizer$1(eo.text)})}function setYAxisBottomText(eo){quadrantBuilder.setData({yAxisBottomText:textSanitizer$1(eo.text)})}function addPoint(eo,to,no){quadrantBuilder.addPoints([{x:to,y:no,text:textSanitizer$1(eo.text)}])}function setWidth(eo){quadrantBuilder.setConfig({chartWidth:eo})}function setHeight(eo){quadrantBuilder.setConfig({chartHeight:eo})}function getQuadrantData(){const eo=getConfig$2(),{themeVariables:to,quadrantChart:no}=eo;return no&&quadrantBuilder.setConfig(no),quadrantBuilder.setThemeConfig({quadrant1Fill:to.quadrant1Fill,quadrant2Fill:to.quadrant2Fill,quadrant3Fill:to.quadrant3Fill,quadrant4Fill:to.quadrant4Fill,quadrant1TextFill:to.quadrant1TextFill,quadrant2TextFill:to.quadrant2TextFill,quadrant3TextFill:to.quadrant3TextFill,quadrant4TextFill:to.quadrant4TextFill,quadrantPointFill:to.quadrantPointFill,quadrantPointTextFill:to.quadrantPointTextFill,quadrantXAxisTextFill:to.quadrantXAxisTextFill,quadrantYAxisTextFill:to.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:to.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:to.quadrantInternalBorderStrokeFill,quadrantTitleFill:to.quadrantTitleFill}),quadrantBuilder.setData({titleText:getDiagramTitle()}),quadrantBuilder.build()}const clear$a=function(){quadrantBuilder.clear(),clear$k()},db$b={setWidth,setHeight,setQuadrant1Text,setQuadrant2Text,setQuadrant3Text,setQuadrant4Text,setXAxisLeftText,setXAxisRightText,setYAxisTopText,setYAxisBottomText,addPoint,getQuadrantData,clear:clear$a,setAccTitle,getAccTitle,setDiagramTitle,getDiagramTitle,getAccDescription,setAccDescription},draw$d=(eo,to,no,io)=>{var so,ao,lo;function uo(Ho){return Ho==="top"?"hanging":"middle"}function ho(Ho){return Ho==="left"?"start":"middle"}function go(Ho){return`translate(${Ho.x}, ${Ho.y}) rotate(${Ho.rotation||0})`}const mo=getConfig$2();log$1.debug(`Rendering quadrant chart -`+eo);const yo=mo.securityLevel;let So;yo==="sandbox"&&(So=select("#i"+to));const ko=select(yo==="sandbox"?So.nodes()[0].contentDocument.body:"body").select(`[id="${to}"]`),Co=ko.append("g").attr("class","main"),$o=((so=mo.quadrantChart)==null?void 0:so.chartWidth)||500,Ro=((ao=mo.quadrantChart)==null?void 0:ao.chartHeight)||500;configureSvgSize(ko,Ro,$o,((lo=mo.quadrantChart)==null?void 0:lo.useMaxWidth)||!0),ko.attr("viewBox","0 0 "+$o+" "+Ro),io.db.setHeight(Ro),io.db.setWidth($o);const Oo=io.db.getQuadrantData(),No=Co.append("g").attr("class","quadrants"),Mo=Co.append("g").attr("class","border"),Bo=Co.append("g").attr("class","data-points"),Po=Co.append("g").attr("class","labels"),Lo=Co.append("g").attr("class","title");Oo.title&&Lo.append("text").attr("x",0).attr("y",0).attr("fill",Oo.title.fill).attr("font-size",Oo.title.fontSize).attr("dominant-baseline",uo(Oo.title.horizontalPos)).attr("text-anchor",ho(Oo.title.verticalPos)).attr("transform",go(Oo.title)).text(Oo.title.text),Oo.borderLines&&Mo.selectAll("line").data(Oo.borderLines).enter().append("line").attr("x1",Ho=>Ho.x1).attr("y1",Ho=>Ho.y1).attr("x2",Ho=>Ho.x2).attr("y2",Ho=>Ho.y2).style("stroke",Ho=>Ho.strokeFill).style("stroke-width",Ho=>Ho.strokeWidth);const Go=No.selectAll("g.quadrant").data(Oo.quadrants).enter().append("g").attr("class","quadrant");Go.append("rect").attr("x",Ho=>Ho.x).attr("y",Ho=>Ho.y).attr("width",Ho=>Ho.width).attr("height",Ho=>Ho.height).attr("fill",Ho=>Ho.fill),Go.append("text").attr("x",0).attr("y",0).attr("fill",Ho=>Ho.text.fill).attr("font-size",Ho=>Ho.text.fontSize).attr("dominant-baseline",Ho=>uo(Ho.text.horizontalPos)).attr("text-anchor",Ho=>ho(Ho.text.verticalPos)).attr("transform",Ho=>go(Ho.text)).text(Ho=>Ho.text.text),Po.selectAll("g.label").data(Oo.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(Ho=>Ho.text).attr("fill",Ho=>Ho.fill).attr("font-size",Ho=>Ho.fontSize).attr("dominant-baseline",Ho=>uo(Ho.horizontalPos)).attr("text-anchor",Ho=>ho(Ho.verticalPos)).attr("transform",Ho=>go(Ho));const Uo=Bo.selectAll("g.data-point").data(Oo.points).enter().append("g").attr("class","data-point");Uo.append("circle").attr("cx",Ho=>Ho.x).attr("cy",Ho=>Ho.y).attr("r",Ho=>Ho.radius).attr("fill",Ho=>Ho.fill),Uo.append("text").attr("x",0).attr("y",0).text(Ho=>Ho.text.text).attr("fill",Ho=>Ho.text.fill).attr("font-size",Ho=>Ho.text.fontSize).attr("dominant-baseline",Ho=>uo(Ho.text.horizontalPos)).attr("text-anchor",Ho=>ho(Ho.text.verticalPos)).attr("transform",Ho=>go(Ho.text))},renderer$e={draw:draw$d},diagram$d={parser:parser$1$a,db:db$b,renderer:renderer$e,styles:()=>""},quadrantDiagram62f64e94=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$d},Symbol.toStringTag,{value:"Module"}));var parser$a=function(){var eo=function(ps,Qo,hs,gs){for(hs=hs||{},gs=ps.length;gs--;hs[ps[gs]]=Qo);return hs},to=[1,10,12,14,16,18,19,21,23],no=[2,6],io=[1,3],so=[1,5],ao=[1,6],lo=[1,7],uo=[1,5,10,12,14,16,18,19,21,23,34,35,36],ho=[1,25],go=[1,26],mo=[1,28],yo=[1,29],So=[1,30],_o=[1,31],ko=[1,32],Co=[1,33],$o=[1,34],Ro=[1,35],Oo=[1,36],No=[1,37],Mo=[1,43],Bo=[1,42],Po=[1,47],Lo=[1,50],Go=[1,10,12,14,16,18,19,21,23,34,35,36],Do=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],Uo=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],Ho=[1,64],Yo={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(Qo,hs,gs,ys,vs,ks,Os){var Ts=ks.length-1;switch(vs){case 5:ys.setOrientation(ks[Ts]);break;case 9:ys.setDiagramTitle(ks[Ts].text.trim());break;case 12:ys.setLineData({text:"",type:"text"},ks[Ts]);break;case 13:ys.setLineData(ks[Ts-1],ks[Ts]);break;case 14:ys.setBarData({text:"",type:"text"},ks[Ts]);break;case 15:ys.setBarData(ks[Ts-1],ks[Ts]);break;case 16:this.$=ks[Ts].trim(),ys.setAccTitle(this.$);break;case 17:case 18:this.$=ks[Ts].trim(),ys.setAccDescription(this.$);break;case 19:this.$=ks[Ts-1];break;case 20:this.$=[Number(ks[Ts-2]),...ks[Ts]];break;case 21:this.$=[Number(ks[Ts])];break;case 22:ys.setXAxisTitle(ks[Ts]);break;case 23:ys.setXAxisTitle(ks[Ts-1]);break;case 24:ys.setXAxisTitle({type:"text",text:""});break;case 25:ys.setXAxisBand(ks[Ts]);break;case 26:ys.setXAxisRangeData(Number(ks[Ts-2]),Number(ks[Ts]));break;case 27:this.$=ks[Ts-1];break;case 28:this.$=[ks[Ts-2],...ks[Ts]];break;case 29:this.$=[ks[Ts]];break;case 30:ys.setYAxisTitle(ks[Ts]);break;case 31:ys.setYAxisTitle(ks[Ts-1]);break;case 32:ys.setYAxisTitle({type:"text",text:""});break;case 33:ys.setYAxisRangeData(Number(ks[Ts-2]),Number(ks[Ts]));break;case 37:this.$={text:ks[Ts],type:"text"};break;case 38:this.$={text:ks[Ts],type:"text"};break;case 39:this.$={text:ks[Ts],type:"markdown"};break;case 40:this.$=ks[Ts];break;case 41:this.$=ks[Ts-1]+""+ks[Ts];break}},table:[eo(to,no,{3:1,4:2,7:4,5:io,34:so,35:ao,36:lo}),{1:[3]},eo(to,no,{4:2,7:4,3:8,5:io,34:so,35:ao,36:lo}),eo(to,no,{4:2,7:4,6:9,3:10,5:io,8:[1,11],34:so,35:ao,36:lo}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},eo(uo,[2,34]),eo(uo,[2,35]),eo(uo,[2,36]),{1:[2,1]},eo(to,no,{4:2,7:4,3:21,5:io,34:so,35:ao,36:lo}),{1:[2,3]},eo(uo,[2,5]),eo(to,[2,7],{4:22,34:so,35:ao,36:lo}),{11:23,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},{11:39,13:38,24:Mo,27:Bo,29:40,30:41,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},{11:45,15:44,27:Po,33:46,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},{11:49,17:48,24:Lo,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},{11:52,17:51,24:Lo,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},{20:[1,53]},{22:[1,54]},eo(Go,[2,18]),{1:[2,2]},eo(Go,[2,8]),eo(Go,[2,9]),eo(Do,[2,37],{40:55,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No}),eo(Do,[2,38]),eo(Do,[2,39]),eo(Uo,[2,40]),eo(Uo,[2,42]),eo(Uo,[2,43]),eo(Uo,[2,44]),eo(Uo,[2,45]),eo(Uo,[2,46]),eo(Uo,[2,47]),eo(Uo,[2,48]),eo(Uo,[2,49]),eo(Uo,[2,50]),eo(Uo,[2,51]),eo(Go,[2,10]),eo(Go,[2,22],{30:41,29:56,24:Mo,27:Bo}),eo(Go,[2,24]),eo(Go,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},eo(Go,[2,11]),eo(Go,[2,30],{33:60,27:Po}),eo(Go,[2,32]),{31:[1,61]},eo(Go,[2,12]),{17:62,24:Lo},{25:63,27:Ho},eo(Go,[2,14]),{17:65,24:Lo},eo(Go,[2,16]),eo(Go,[2,17]),eo(Uo,[2,41]),eo(Go,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},eo(Go,[2,31]),{27:[1,69]},eo(Go,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},eo(Go,[2,15]),eo(Go,[2,26]),eo(Go,[2,27]),{11:59,32:72,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},eo(Go,[2,33]),eo(Go,[2,19]),{25:73,27:Ho},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(Qo,hs){if(hs.recoverable)this.trace(Qo);else{var gs=new Error(Qo);throw gs.hash=hs,gs}},parse:function(Qo){var hs=this,gs=[0],ys=[],vs=[null],ks=[],Os=this.table,Ts="",Xs=0,Ws=0,Ps=2,qs=1,ga=ks.slice.call(arguments,1),Fs=Object.create(this.lexer),Js={yy:{}};for(var Vs in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Vs)&&(Js.yy[Vs]=this.yy[Vs]);Fs.setInput(Qo,Js.yy),Js.yy.lexer=Fs,Js.yy.parser=this,typeof Fs.yylloc>"u"&&(Fs.yylloc={});var El=Fs.yylloc;ks.push(El);var yl=Fs.options&&Fs.options.ranges;typeof Js.yy.parseError=="function"?this.parseError=Js.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gl(){var Is;return Is=ys.pop()||Fs.lex()||qs,typeof Is!="number"&&(Is instanceof Array&&(ys=Is,Is=ys.pop()),Is=hs.symbols_[Is]||Is),Is}for(var Qs,du,Ol,Fu,ju={},F1,y1,r1,$u;;){if(du=gs[gs.length-1],this.defaultActions[du]?Ol=this.defaultActions[du]:((Qs===null||typeof Qs>"u")&&(Qs=Gl()),Ol=Os[du]&&Os[du][Qs]),typeof Ol>"u"||!Ol.length||!Ol[0]){var Kl="";$u=[];for(F1 in Os[du])this.terminals_[F1]&&F1>Ps&&$u.push("'"+this.terminals_[F1]+"'");Fs.showPosition?Kl="Parse error on line "+(Xs+1)+`: +`+eo);const yo=mo.securityLevel;let So;yo==="sandbox"&&(So=select("#i"+to));const ko=select(yo==="sandbox"?So.nodes()[0].contentDocument.body:"body").select(`[id="${to}"]`),Co=ko.append("g").attr("class","main"),$o=((so=mo.quadrantChart)==null?void 0:so.chartWidth)||500,Ro=((ao=mo.quadrantChart)==null?void 0:ao.chartHeight)||500;configureSvgSize(ko,Ro,$o,((lo=mo.quadrantChart)==null?void 0:lo.useMaxWidth)||!0),ko.attr("viewBox","0 0 "+$o+" "+Ro),io.db.setHeight(Ro),io.db.setWidth($o);const Oo=io.db.getQuadrantData(),No=Co.append("g").attr("class","quadrants"),Mo=Co.append("g").attr("class","border"),Bo=Co.append("g").attr("class","data-points"),Fo=Co.append("g").attr("class","labels"),Lo=Co.append("g").attr("class","title");Oo.title&&Lo.append("text").attr("x",0).attr("y",0).attr("fill",Oo.title.fill).attr("font-size",Oo.title.fontSize).attr("dominant-baseline",uo(Oo.title.horizontalPos)).attr("text-anchor",ho(Oo.title.verticalPos)).attr("transform",go(Oo.title)).text(Oo.title.text),Oo.borderLines&&Mo.selectAll("line").data(Oo.borderLines).enter().append("line").attr("x1",Ho=>Ho.x1).attr("y1",Ho=>Ho.y1).attr("x2",Ho=>Ho.x2).attr("y2",Ho=>Ho.y2).style("stroke",Ho=>Ho.strokeFill).style("stroke-width",Ho=>Ho.strokeWidth);const Go=No.selectAll("g.quadrant").data(Oo.quadrants).enter().append("g").attr("class","quadrant");Go.append("rect").attr("x",Ho=>Ho.x).attr("y",Ho=>Ho.y).attr("width",Ho=>Ho.width).attr("height",Ho=>Ho.height).attr("fill",Ho=>Ho.fill),Go.append("text").attr("x",0).attr("y",0).attr("fill",Ho=>Ho.text.fill).attr("font-size",Ho=>Ho.text.fontSize).attr("dominant-baseline",Ho=>uo(Ho.text.horizontalPos)).attr("text-anchor",Ho=>ho(Ho.text.verticalPos)).attr("transform",Ho=>go(Ho.text)).text(Ho=>Ho.text.text),Fo.selectAll("g.label").data(Oo.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(Ho=>Ho.text).attr("fill",Ho=>Ho.fill).attr("font-size",Ho=>Ho.fontSize).attr("dominant-baseline",Ho=>uo(Ho.horizontalPos)).attr("text-anchor",Ho=>ho(Ho.verticalPos)).attr("transform",Ho=>go(Ho));const Uo=Bo.selectAll("g.data-point").data(Oo.points).enter().append("g").attr("class","data-point");Uo.append("circle").attr("cx",Ho=>Ho.x).attr("cy",Ho=>Ho.y).attr("r",Ho=>Ho.radius).attr("fill",Ho=>Ho.fill),Uo.append("text").attr("x",0).attr("y",0).text(Ho=>Ho.text.text).attr("fill",Ho=>Ho.text.fill).attr("font-size",Ho=>Ho.text.fontSize).attr("dominant-baseline",Ho=>uo(Ho.text.horizontalPos)).attr("text-anchor",Ho=>ho(Ho.text.verticalPos)).attr("transform",Ho=>go(Ho.text))},renderer$e={draw:draw$d},diagram$d={parser:parser$1$a,db:db$b,renderer:renderer$e,styles:()=>""},quadrantDiagram62f64e94=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$d},Symbol.toStringTag,{value:"Module"}));var parser$a=function(){var eo=function(ps,Qo,hs,gs){for(hs=hs||{},gs=ps.length;gs--;hs[ps[gs]]=Qo);return hs},to=[1,10,12,14,16,18,19,21,23],no=[2,6],io=[1,3],so=[1,5],ao=[1,6],lo=[1,7],uo=[1,5,10,12,14,16,18,19,21,23,34,35,36],ho=[1,25],go=[1,26],mo=[1,28],yo=[1,29],So=[1,30],_o=[1,31],ko=[1,32],Co=[1,33],$o=[1,34],Ro=[1,35],Oo=[1,36],No=[1,37],Mo=[1,43],Bo=[1,42],Fo=[1,47],Lo=[1,50],Go=[1,10,12,14,16,18,19,21,23,34,35,36],Do=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],Uo=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],Ho=[1,64],Yo={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(Qo,hs,gs,ys,vs,ks,Os){var Ts=ks.length-1;switch(vs){case 5:ys.setOrientation(ks[Ts]);break;case 9:ys.setDiagramTitle(ks[Ts].text.trim());break;case 12:ys.setLineData({text:"",type:"text"},ks[Ts]);break;case 13:ys.setLineData(ks[Ts-1],ks[Ts]);break;case 14:ys.setBarData({text:"",type:"text"},ks[Ts]);break;case 15:ys.setBarData(ks[Ts-1],ks[Ts]);break;case 16:this.$=ks[Ts].trim(),ys.setAccTitle(this.$);break;case 17:case 18:this.$=ks[Ts].trim(),ys.setAccDescription(this.$);break;case 19:this.$=ks[Ts-1];break;case 20:this.$=[Number(ks[Ts-2]),...ks[Ts]];break;case 21:this.$=[Number(ks[Ts])];break;case 22:ys.setXAxisTitle(ks[Ts]);break;case 23:ys.setXAxisTitle(ks[Ts-1]);break;case 24:ys.setXAxisTitle({type:"text",text:""});break;case 25:ys.setXAxisBand(ks[Ts]);break;case 26:ys.setXAxisRangeData(Number(ks[Ts-2]),Number(ks[Ts]));break;case 27:this.$=ks[Ts-1];break;case 28:this.$=[ks[Ts-2],...ks[Ts]];break;case 29:this.$=[ks[Ts]];break;case 30:ys.setYAxisTitle(ks[Ts]);break;case 31:ys.setYAxisTitle(ks[Ts-1]);break;case 32:ys.setYAxisTitle({type:"text",text:""});break;case 33:ys.setYAxisRangeData(Number(ks[Ts-2]),Number(ks[Ts]));break;case 37:this.$={text:ks[Ts],type:"text"};break;case 38:this.$={text:ks[Ts],type:"text"};break;case 39:this.$={text:ks[Ts],type:"markdown"};break;case 40:this.$=ks[Ts];break;case 41:this.$=ks[Ts-1]+""+ks[Ts];break}},table:[eo(to,no,{3:1,4:2,7:4,5:io,34:so,35:ao,36:lo}),{1:[3]},eo(to,no,{4:2,7:4,3:8,5:io,34:so,35:ao,36:lo}),eo(to,no,{4:2,7:4,6:9,3:10,5:io,8:[1,11],34:so,35:ao,36:lo}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},eo(uo,[2,34]),eo(uo,[2,35]),eo(uo,[2,36]),{1:[2,1]},eo(to,no,{4:2,7:4,3:21,5:io,34:so,35:ao,36:lo}),{1:[2,3]},eo(uo,[2,5]),eo(to,[2,7],{4:22,34:so,35:ao,36:lo}),{11:23,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},{11:39,13:38,24:Mo,27:Bo,29:40,30:41,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},{11:45,15:44,27:Fo,33:46,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},{11:49,17:48,24:Lo,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},{11:52,17:51,24:Lo,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},{20:[1,53]},{22:[1,54]},eo(Go,[2,18]),{1:[2,2]},eo(Go,[2,8]),eo(Go,[2,9]),eo(Do,[2,37],{40:55,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No}),eo(Do,[2,38]),eo(Do,[2,39]),eo(Uo,[2,40]),eo(Uo,[2,42]),eo(Uo,[2,43]),eo(Uo,[2,44]),eo(Uo,[2,45]),eo(Uo,[2,46]),eo(Uo,[2,47]),eo(Uo,[2,48]),eo(Uo,[2,49]),eo(Uo,[2,50]),eo(Uo,[2,51]),eo(Go,[2,10]),eo(Go,[2,22],{30:41,29:56,24:Mo,27:Bo}),eo(Go,[2,24]),eo(Go,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},eo(Go,[2,11]),eo(Go,[2,30],{33:60,27:Fo}),eo(Go,[2,32]),{31:[1,61]},eo(Go,[2,12]),{17:62,24:Lo},{25:63,27:Ho},eo(Go,[2,14]),{17:65,24:Lo},eo(Go,[2,16]),eo(Go,[2,17]),eo(Uo,[2,41]),eo(Go,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},eo(Go,[2,31]),{27:[1,69]},eo(Go,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},eo(Go,[2,15]),eo(Go,[2,26]),eo(Go,[2,27]),{11:59,32:72,37:24,38:ho,39:go,40:27,41:mo,42:yo,43:So,44:_o,45:ko,46:Co,47:$o,48:Ro,49:Oo,50:No},eo(Go,[2,33]),eo(Go,[2,19]),{25:73,27:Ho},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(Qo,hs){if(hs.recoverable)this.trace(Qo);else{var gs=new Error(Qo);throw gs.hash=hs,gs}},parse:function(Qo){var hs=this,gs=[0],ys=[],vs=[null],ks=[],Os=this.table,Ts="",Xs=0,Ws=0,Ps=2,qs=1,ga=ks.slice.call(arguments,1),Fs=Object.create(this.lexer),Js={yy:{}};for(var Vs in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Vs)&&(Js.yy[Vs]=this.yy[Vs]);Fs.setInput(Qo,Js.yy),Js.yy.lexer=Fs,Js.yy.parser=this,typeof Fs.yylloc>"u"&&(Fs.yylloc={});var El=Fs.yylloc;ks.push(El);var yl=Fs.options&&Fs.options.ranges;typeof Js.yy.parseError=="function"?this.parseError=Js.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gl(){var Is;return Is=ys.pop()||Fs.lex()||qs,typeof Is!="number"&&(Is instanceof Array&&(ys=Is,Is=ys.pop()),Is=hs.symbols_[Is]||Is),Is}for(var Qs,du,Ol,Fu,ju={},F1,y1,r1,$u;;){if(du=gs[gs.length-1],this.defaultActions[du]?Ol=this.defaultActions[du]:((Qs===null||typeof Qs>"u")&&(Qs=Gl()),Ol=Os[du]&&Os[du][Qs]),typeof Ol>"u"||!Ol.length||!Ol[0]){var Kl="";$u=[];for(F1 in Os[du])this.terminals_[F1]&&F1>Ps&&$u.push("'"+this.terminals_[F1]+"'");Fs.showPosition?Kl="Parse error on line "+(Xs+1)+`: `+Fs.showPosition()+` Expecting `+$u.join(", ")+", got '"+(this.terminals_[Qs]||Qs)+"'":Kl="Parse error on line "+(Xs+1)+": Unexpected "+(Qs==qs?"end of input":"'"+(this.terminals_[Qs]||Qs)+"'"),this.parseError(Kl,{text:Fs.match,token:this.terminals_[Qs]||Qs,line:Fs.yylineno,loc:El,expected:$u})}if(Ol[0]instanceof Array&&Ol.length>1)throw new Error("Parse Error: multiple actions possible at state: "+du+", token: "+Qs);switch(Ol[0]){case 1:gs.push(Qs),vs.push(Fs.yytext),ks.push(Fs.yylloc),gs.push(Ol[1]),Qs=null,Ws=Fs.yyleng,Ts=Fs.yytext,Xs=Fs.yylineno,El=Fs.yylloc;break;case 2:if(y1=this.productions_[Ol[1]][1],ju.$=vs[vs.length-y1],ju._$={first_line:ks[ks.length-(y1||1)].first_line,last_line:ks[ks.length-1].last_line,first_column:ks[ks.length-(y1||1)].first_column,last_column:ks[ks.length-1].last_column},yl&&(ju._$.range=[ks[ks.length-(y1||1)].range[0],ks[ks.length-1].range[1]]),Fu=this.performAction.apply(ju,[Ts,Ws,Xs,Js.yy,Ol[1],vs,ks].concat(ga)),typeof Fu<"u")return Fu;y1&&(gs=gs.slice(0,-1*y1*2),vs=vs.slice(0,-1*y1),ks=ks.slice(0,-1*y1)),gs.push(this.productions_[Ol[1]][0]),vs.push(ju.$),ks.push(ju._$),r1=Os[gs[gs.length-2]][gs[gs.length-1]],gs.push(r1);break;case 3:return!0}}return!0}},qo=function(){var ps={EOF:1,parseError:function(hs,gs){if(this.yy.parser)this.yy.parser.parseError(hs,gs);else throw new Error(hs)},setInput:function(Qo,hs){return this.yy=hs||this.yy||{},this._input=Qo,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Qo=this._input[0];this.yytext+=Qo,this.yyleng++,this.offset++,this.match+=Qo,this.matched+=Qo;var hs=Qo.match(/(?:\r\n?|\n).*/g);return hs?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Qo},unput:function(Qo){var hs=Qo.length,gs=Qo.split(/(?:\r\n?|\n)/g);this._input=Qo+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-hs),this.offset-=hs;var ys=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),gs.length-1&&(this.yylineno-=gs.length-1);var vs=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:gs?(gs.length===ys.length?this.yylloc.first_column:0)+ys[ys.length-gs.length].length-gs[0].length:this.yylloc.first_column-hs},this.options.ranges&&(this.yylloc.range=[vs[0],vs[0]+this.yyleng-hs]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Qo){this.unput(this.match.slice(Qo))},pastInput:function(){var Qo=this.matched.substr(0,this.matched.length-this.match.length);return(Qo.length>20?"...":"")+Qo.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Qo=this.match;return Qo.length<20&&(Qo+=this._input.substr(0,20-Qo.length)),(Qo.substr(0,20)+(Qo.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Qo=this.pastInput(),hs=new Array(Qo.length+1).join("-");return Qo+this.upcomingInput()+` `+hs+"^"},test_match:function(Qo,hs){var gs,ys,vs;if(this.options.backtrack_lexer&&(vs={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(vs.yylloc.range=this.yylloc.range.slice(0))),ys=Qo[0].match(/(?:\r\n?|\n).*/g),ys&&(this.yylineno+=ys.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ys?ys[ys.length-1].length-ys[ys.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Qo[0].length},this.yytext+=Qo[0],this.match+=Qo[0],this.matches=Qo,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Qo[0].length),this.matched+=Qo[0],gs=this.performAction.call(this,this.yy,this,hs,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),gs)return gs;if(this._backtrack){for(var ks in vs)this[ks]=vs[ks];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Qo,hs,gs,ys;this._more||(this.yytext="",this.match="");for(var vs=this._currentRules(),ks=0;kshs[0].length)){if(hs=gs,ys=ks,this.options.backtrack_lexer){if(Qo=this.test_match(gs,vs[ks]),Qo!==!1)return Qo;if(this._backtrack){hs=!1;continue}else return!1}else if(!this.options.flex)break}return hs?(Qo=this.test_match(hs,vs[ys]),Qo!==!1?Qo:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var hs=this.next();return hs||this.lex()},begin:function(hs){this.conditionStack.push(hs)},popState:function(){var hs=this.conditionStack.length-1;return hs>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(hs){return hs=this.conditionStack.length-1-Math.abs(hs||0),hs>=0?this.conditionStack[hs]:"INITIAL"},pushState:function(hs){this.begin(hs)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(hs,gs,ys,vs){switch(ys){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return ps}();Yo.lexer=qo;function Jo(){this.yy={}}return Jo.prototype=Yo,Yo.Parser=Jo,new Jo}();parser$a.parser=parser$a;const parser$1$9=parser$a;function isBarPlot(eo){return eo.type==="bar"}function isBandAxisData(eo){return eo.type==="band"}function isLinearAxisData(eo){return eo.type==="linear"}class TextDimensionCalculatorWithFont{constructor(to){this.parentGroup=to}getMaxDimension(to,no){if(!this.parentGroup)return{width:to.reduce((ao,lo)=>Math.max(lo.length,ao),0)*no,height:no};const io={width:0,height:0},so=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",no);for(const ao of to){const lo=computeDimensionOfText(so,1,ao),uo=lo?lo.width:ao.length*no,ho=lo?lo.height:no;io.width=Math.max(io.width,uo),io.height=Math.max(io.height,ho)}return so.remove(),io}}const BAR_WIDTH_TO_TICK_WIDTH_RATIO=.7,MAX_OUTER_PADDING_PERCENT_FOR_WRT_LABEL=.2;class BaseAxis{constructor(to,no,io,so){this.axisConfig=to,this.title=no,this.textDimensionCalculator=io,this.axisThemeConfig=so,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(to){this.range=to,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=to[1]-to[0]:this.boundingRect.width=to[1]-to[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(to){this.axisPosition=to,this.setRange(this.range)}getTickDistance(){const to=this.getRange();return Math.abs(to[0]-to[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(to=>to.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){BAR_WIDTH_TO_TICK_WIDTH_RATIO*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(BAR_WIDTH_TO_TICK_WIDTH_RATIO*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(to){let no=to.height;if(this.axisConfig.showAxisLine&&no>this.axisConfig.axisLineWidth&&(no-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const io=this.getLabelDimension(),so=MAX_OUTER_PADDING_PERCENT_FOR_WRT_LABEL*to.width;this.outerPadding=Math.min(io.width/2,so);const ao=io.height+this.axisConfig.labelPadding*2;this.labelTextHeight=io.height,ao<=no&&(no-=ao,this.showLabel=!0)}if(this.axisConfig.showTick&&no>=this.axisConfig.tickLength&&(this.showTick=!0,no-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const io=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),so=io.height+this.axisConfig.titlePadding*2;this.titleTextHeight=io.height,so<=no&&(no-=so,this.showTitle=!0)}this.boundingRect.width=to.width,this.boundingRect.height=to.height-no}calculateSpaceIfDrawnVertical(to){let no=to.width;if(this.axisConfig.showAxisLine&&no>this.axisConfig.axisLineWidth&&(no-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const io=this.getLabelDimension(),so=MAX_OUTER_PADDING_PERCENT_FOR_WRT_LABEL*to.height;this.outerPadding=Math.min(io.height/2,so);const ao=io.width+this.axisConfig.labelPadding*2;ao<=no&&(no-=ao,this.showLabel=!0)}if(this.axisConfig.showTick&&no>=this.axisConfig.tickLength&&(this.showTick=!0,no-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const io=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),so=io.height+this.axisConfig.titlePadding*2;this.titleTextHeight=io.height,so<=no&&(no-=so,this.showTitle=!0)}this.boundingRect.width=to.width-no,this.boundingRect.height=to.height}calculateSpace(to){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(to):this.calculateSpaceIfDrawnHorizontally(to),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(to){this.boundingRect.x=to.x,this.boundingRect.y=to.y}getDrawableElementsForLeftAxis(){const to=[];if(this.showAxisLine){const no=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;to.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${no},${this.boundingRect.y} L ${no},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&to.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(no=>({text:no.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(no),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const no=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);to.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(io=>({path:`M ${no},${this.getScaleValue(io)} L ${no-this.axisConfig.tickLength},${this.getScaleValue(io)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&to.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),to}getDrawableElementsForBottomAxis(){const to=[];if(this.showAxisLine){const no=this.boundingRect.y+this.axisConfig.axisLineWidth/2;to.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${no} L ${this.boundingRect.x+this.boundingRect.width},${no}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&to.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(no=>({text:no.toString(),x:this.getScaleValue(no),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const no=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);to.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(io=>({path:`M ${this.getScaleValue(io)},${no} L ${this.getScaleValue(io)},${no+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&to.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),to}getDrawableElementsForTopAxis(){const to=[];if(this.showAxisLine){const no=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;to.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${no} L ${this.boundingRect.x+this.boundingRect.width},${no}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&to.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(no=>({text:no.toString(),x:this.getScaleValue(no),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const no=this.boundingRect.y;to.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(io=>({path:`M ${this.getScaleValue(io)},${no+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(io)},${no+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&to.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),to}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}class BandAxis extends BaseAxis{constructor(to,no,io,so,ao){super(to,so,ao,no),this.categories=io,this.scale=band().domain(this.categories).range(this.getRange())}setRange(to){super.setRange(to)}recalculateScale(){this.scale=band().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),log$1.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(to){return this.scale(to)||this.getRange()[0]}}class LinearAxis extends BaseAxis{constructor(to,no,io,so,ao){super(to,so,ao,no),this.domain=io,this.scale=linear().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const to=[...this.domain];this.axisPosition==="left"&&to.reverse(),this.scale=linear().domain(to).range(this.getRange())}getScaleValue(to){return this.scale(to)}}function getAxis(eo,to,no,io){const so=new TextDimensionCalculatorWithFont(io);return isBandAxisData(eo)?new BandAxis(to,no,eo.categories,eo.title,so):new LinearAxis(to,no,[eo.min,eo.max],eo.title,so)}class ChartTitle{constructor(to,no,io,so){this.textDimensionCalculator=to,this.chartConfig=no,this.chartData=io,this.chartThemeConfig=so,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(to){this.boundingRect.x=to.x,this.boundingRect.y=to.y}calculateSpace(to){const no=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),io=Math.max(no.width,to.width),so=no.height+2*this.chartConfig.titlePadding;return no.width<=io&&no.height<=so&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=io,this.boundingRect.height=so,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const to=[];return this.showChartTitle&&to.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),to}}function getChartTitleComponent(eo,to,no,io){const so=new TextDimensionCalculatorWithFont(io);return new ChartTitle(so,eo,to,no)}class LinePlot{constructor(to,no,io,so,ao){this.plotData=to,this.xAxis=no,this.yAxis=io,this.orientation=so,this.plotIndex=ao}getDrawableElement(){const to=this.plotData.data.map(io=>[this.xAxis.getScaleValue(io[0]),this.yAxis.getScaleValue(io[1])]);let no;return this.orientation==="horizontal"?no=line$1().y(io=>io[0]).x(io=>io[1])(to):no=line$1().x(io=>io[0]).y(io=>io[1])(to),no?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:no,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}class BarPlot{constructor(to,no,io,so,ao,lo){this.barData=to,this.boundingRect=no,this.xAxis=io,this.yAxis=so,this.orientation=ao,this.plotIndex=lo}getDrawableElement(){const to=this.barData.data.map(ao=>[this.xAxis.getScaleValue(ao[0]),this.yAxis.getScaleValue(ao[1])]),no=.05,io=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-no),so=io/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:to.map(ao=>({x:this.boundingRect.x,y:ao[0]-so,height:io,width:ao[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:to.map(ao=>({x:ao[0]-so,y:ao[1],width:io,height:this.boundingRect.y+this.boundingRect.height-ao[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}class BasePlot{constructor(to,no,io){this.chartConfig=to,this.chartData=no,this.chartThemeConfig=io,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(to,no){this.xAxis=to,this.yAxis=no}setBoundingBoxXY(to){this.boundingRect.x=to.x,this.boundingRect.y=to.y}calculateSpace(to){return this.boundingRect.width=to.width,this.boundingRect.height=to.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const to=[];for(const[no,io]of this.chartData.plots.entries())switch(io.type){case"line":{const so=new LinePlot(io,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,no);to.push(...so.getDrawableElement())}break;case"bar":{const so=new BarPlot(io,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,no);to.push(...so.getDrawableElement())}break}return to}}function getPlotComponent(eo,to,no){return new BasePlot(eo,to,no)}class Orchestrator{constructor(to,no,io,so){this.chartConfig=to,this.chartData=no,this.componentStore={title:getChartTitleComponent(to,no,io,so),plot:getPlotComponent(to,no,io),xAxis:getAxis(no.xAxis,to.xAxis,{titleColor:io.xAxisTitleColor,labelColor:io.xAxisLabelColor,tickColor:io.xAxisTickColor,axisLineColor:io.xAxisLineColor},so),yAxis:getAxis(no.yAxis,to.yAxis,{titleColor:io.yAxisTitleColor,labelColor:io.yAxisLabelColor,tickColor:io.yAxisTickColor,axisLineColor:io.yAxisLineColor},so)}}calculateVerticalSpace(){let to=this.chartConfig.width,no=this.chartConfig.height,io=0,so=0,ao=Math.floor(to*this.chartConfig.plotReservedSpacePercent/100),lo=Math.floor(no*this.chartConfig.plotReservedSpacePercent/100),uo=this.componentStore.plot.calculateSpace({width:ao,height:lo});to-=uo.width,no-=uo.height,uo=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:no}),so=uo.height,no-=uo.height,this.componentStore.xAxis.setAxisPosition("bottom"),uo=this.componentStore.xAxis.calculateSpace({width:to,height:no}),no-=uo.height,this.componentStore.yAxis.setAxisPosition("left"),uo=this.componentStore.yAxis.calculateSpace({width:to,height:no}),io=uo.width,to-=uo.width,to>0&&(ao+=to,to=0),no>0&&(lo+=no,no=0),this.componentStore.plot.calculateSpace({width:ao,height:lo}),this.componentStore.plot.setBoundingBoxXY({x:io,y:so}),this.componentStore.xAxis.setRange([io,io+ao]),this.componentStore.xAxis.setBoundingBoxXY({x:io,y:so+lo}),this.componentStore.yAxis.setRange([so,so+lo]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:so}),this.chartData.plots.some(ho=>isBarPlot(ho))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let to=this.chartConfig.width,no=this.chartConfig.height,io=0,so=0,ao=0,lo=Math.floor(to*this.chartConfig.plotReservedSpacePercent/100),uo=Math.floor(no*this.chartConfig.plotReservedSpacePercent/100),ho=this.componentStore.plot.calculateSpace({width:lo,height:uo});to-=ho.width,no-=ho.height,ho=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:no}),io=ho.height,no-=ho.height,this.componentStore.xAxis.setAxisPosition("left"),ho=this.componentStore.xAxis.calculateSpace({width:to,height:no}),to-=ho.width,so=ho.width,this.componentStore.yAxis.setAxisPosition("top"),ho=this.componentStore.yAxis.calculateSpace({width:to,height:no}),no-=ho.height,ao=io+ho.height,to>0&&(lo+=to,to=0),no>0&&(uo+=no,no=0),this.componentStore.plot.calculateSpace({width:lo,height:uo}),this.componentStore.plot.setBoundingBoxXY({x:so,y:ao}),this.componentStore.yAxis.setRange([so,so+lo]),this.componentStore.yAxis.setBoundingBoxXY({x:so,y:io}),this.componentStore.xAxis.setRange([ao,ao+uo]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:ao}),this.chartData.plots.some(go=>isBarPlot(go))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const to=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const no of Object.values(this.componentStore))to.push(...no.getDrawableElements());return to}}class XYChartBuilder{static build(to,no,io,so){return new Orchestrator(to,no,io,so).getDrawableElement()}}let plotIndex=0,tmpSVGGroup,xyChartConfig=getChartDefaultConfig(),xyChartThemeConfig=getChartDefaultThemeConfig(),xyChartData=getChartDefaultData(),plotColorPalette=xyChartThemeConfig.plotColorPalette.split(",").map(eo=>eo.trim()),hasSetXAxis=!1,hasSetYAxis=!1;function getChartDefaultThemeConfig(){const eo=getThemeVariables$2(),to=getConfig$1$1();return cleanAndMerge(eo.xyChart,to.themeVariables.xyChart)}function getChartDefaultConfig(){const eo=getConfig$1$1();return cleanAndMerge(defaultConfig$2.xyChart,eo.xyChart)}function getChartDefaultData(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function textSanitizer(eo){const to=getConfig$1$1();return sanitizeText$2$1(eo.trim(),to)}function setTmpSVGG(eo){tmpSVGGroup=eo}function setOrientation(eo){eo==="horizontal"?xyChartConfig.chartOrientation="horizontal":xyChartConfig.chartOrientation="vertical"}function setXAxisTitle(eo){xyChartData.xAxis.title=textSanitizer(eo.text)}function setXAxisRangeData(eo,to){xyChartData.xAxis={type:"linear",title:xyChartData.xAxis.title,min:eo,max:to},hasSetXAxis=!0}function setXAxisBand(eo){xyChartData.xAxis={type:"band",title:xyChartData.xAxis.title,categories:eo.map(to=>textSanitizer(to.text))},hasSetXAxis=!0}function setYAxisTitle(eo){xyChartData.yAxis.title=textSanitizer(eo.text)}function setYAxisRangeData(eo,to){xyChartData.yAxis={type:"linear",title:xyChartData.yAxis.title,min:eo,max:to},hasSetYAxis=!0}function setYAxisRangeFromPlotData(eo){const to=Math.min(...eo),no=Math.max(...eo),io=isLinearAxisData(xyChartData.yAxis)?xyChartData.yAxis.min:1/0,so=isLinearAxisData(xyChartData.yAxis)?xyChartData.yAxis.max:-1/0;xyChartData.yAxis={type:"linear",title:xyChartData.yAxis.title,min:Math.min(io,to),max:Math.max(so,no)}}function transformDataWithoutCategory(eo){let to=[];if(eo.length===0)return to;if(!hasSetXAxis){const no=isLinearAxisData(xyChartData.xAxis)?xyChartData.xAxis.min:1/0,io=isLinearAxisData(xyChartData.xAxis)?xyChartData.xAxis.max:-1/0;setXAxisRangeData(Math.min(no,1),Math.max(io,eo.length))}if(hasSetYAxis||setYAxisRangeFromPlotData(eo),isBandAxisData(xyChartData.xAxis)&&(to=xyChartData.xAxis.categories.map((no,io)=>[no,eo[io]])),isLinearAxisData(xyChartData.xAxis)){const no=xyChartData.xAxis.min,io=xyChartData.xAxis.max,so=(io-no+1)/eo.length,ao=[];for(let lo=no;lo<=io;lo+=so)ao.push(`${lo}`);to=ao.map((lo,uo)=>[lo,eo[uo]])}return to}function getPlotColorFromPalette(eo){return plotColorPalette[eo===0?0:eo%plotColorPalette.length]}function setLineData(eo,to){const no=transformDataWithoutCategory(to);xyChartData.plots.push({type:"line",strokeFill:getPlotColorFromPalette(plotIndex),strokeWidth:2,data:no}),plotIndex++}function setBarData(eo,to){const no=transformDataWithoutCategory(to);xyChartData.plots.push({type:"bar",fill:getPlotColorFromPalette(plotIndex),data:no}),plotIndex++}function getDrawableElem(){if(xyChartData.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return xyChartData.title=getDiagramTitle(),XYChartBuilder.build(xyChartConfig,xyChartData,xyChartThemeConfig,tmpSVGGroup)}function getChartThemeConfig(){return xyChartThemeConfig}function getChartConfig(){return xyChartConfig}const clear$9=function(){clear$k(),plotIndex=0,xyChartConfig=getChartDefaultConfig(),xyChartData=getChartDefaultData(),xyChartThemeConfig=getChartDefaultThemeConfig(),plotColorPalette=xyChartThemeConfig.plotColorPalette.split(",").map(eo=>eo.trim()),hasSetXAxis=!1,hasSetYAxis=!1},db$a={getDrawableElem,clear:clear$9,setAccTitle,getAccTitle,setDiagramTitle,getDiagramTitle,getAccDescription,setAccDescription,setOrientation,setXAxisTitle,setXAxisRangeData,setXAxisBand,setYAxisTitle,setYAxisRangeData,setLineData,setBarData,setTmpSVGG,getChartThemeConfig,getChartConfig},draw$c=(eo,to,no,io)=>{const so=io.db,ao=so.getChartThemeConfig(),lo=so.getChartConfig();function uo($o){return $o==="top"?"text-before-edge":"middle"}function ho($o){return $o==="left"?"start":$o==="right"?"end":"middle"}function go($o){return`translate(${$o.x}, ${$o.y}) rotate(${$o.rotation||0})`}log$1.debug(`Rendering xychart chart -`+eo);const mo=selectSvgElement(to),yo=mo.append("g").attr("class","main"),So=yo.append("rect").attr("width",lo.width).attr("height",lo.height).attr("class","background");configureSvgSize(mo,lo.height,lo.width,!0),mo.attr("viewBox",`0 0 ${lo.width} ${lo.height}`),So.attr("fill",ao.backgroundColor),so.setTmpSVGG(mo.append("g").attr("class","mermaid-tmp-group"));const _o=so.getDrawableElem(),ko={};function Co($o){let Ro=yo,Oo="";for(const[No]of $o.entries()){let Mo=yo;No>0&&ko[Oo]&&(Mo=ko[Oo]),Oo+=$o[No],Ro=ko[Oo],Ro||(Ro=ko[Oo]=Mo.append("g").attr("class",$o[No]))}return Ro}for(const $o of _o){if($o.data.length===0)continue;const Ro=Co($o.groupTexts);switch($o.type){case"rect":Ro.selectAll("rect").data($o.data).enter().append("rect").attr("x",Oo=>Oo.x).attr("y",Oo=>Oo.y).attr("width",Oo=>Oo.width).attr("height",Oo=>Oo.height).attr("fill",Oo=>Oo.fill).attr("stroke",Oo=>Oo.strokeFill).attr("stroke-width",Oo=>Oo.strokeWidth);break;case"text":Ro.selectAll("text").data($o.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",Oo=>Oo.fill).attr("font-size",Oo=>Oo.fontSize).attr("dominant-baseline",Oo=>uo(Oo.verticalPos)).attr("text-anchor",Oo=>ho(Oo.horizontalPos)).attr("transform",Oo=>go(Oo)).text(Oo=>Oo.text);break;case"path":Ro.selectAll("path").data($o.data).enter().append("path").attr("d",Oo=>Oo.path).attr("fill",Oo=>Oo.fill?Oo.fill:"none").attr("stroke",Oo=>Oo.strokeFill).attr("stroke-width",Oo=>Oo.strokeWidth);break}}},renderer$d={draw:draw$c},diagram$c={parser:parser$1$9,db:db$a,renderer:renderer$d},xychartDiagramAb372869=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$c},Symbol.toStringTag,{value:"Module"}));var parser$9=function(){var eo=function(Ws,Ps,qs,ga){for(qs=qs||{},ga=Ws.length;ga--;qs[Ws[ga]]=Ps);return qs},to=[1,3],no=[1,4],io=[1,5],so=[1,6],ao=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],lo=[1,18],uo=[2,7],ho=[1,22],go=[1,23],mo=[1,24],yo=[1,25],So=[1,26],_o=[1,27],ko=[1,20],Co=[1,28],$o=[1,29],Ro=[62,63],Oo=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],No=[1,47],Mo=[1,48],Bo=[1,49],Po=[1,50],Lo=[1,51],Go=[1,52],Do=[1,53],Uo=[53,54],Ho=[1,64],Yo=[1,60],qo=[1,61],Jo=[1,62],ps=[1,63],Qo=[1,65],hs=[1,69],gs=[1,70],ys=[1,67],vs=[1,68],ks=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],Os={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(Ps,qs,ga,Fs,Js,Vs,El){var yl=Vs.length-1;switch(Js){case 4:this.$=Vs[yl].trim(),Fs.setAccTitle(this.$);break;case 5:case 6:this.$=Vs[yl].trim(),Fs.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:Fs.addRequirement(Vs[yl-3],Vs[yl-4]);break;case 14:Fs.setNewReqId(Vs[yl-2]);break;case 15:Fs.setNewReqText(Vs[yl-2]);break;case 16:Fs.setNewReqRisk(Vs[yl-2]);break;case 17:Fs.setNewReqVerifyMethod(Vs[yl-2]);break;case 20:this.$=Fs.RequirementType.REQUIREMENT;break;case 21:this.$=Fs.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=Fs.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=Fs.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=Fs.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=Fs.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=Fs.RiskLevel.LOW_RISK;break;case 27:this.$=Fs.RiskLevel.MED_RISK;break;case 28:this.$=Fs.RiskLevel.HIGH_RISK;break;case 29:this.$=Fs.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=Fs.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=Fs.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=Fs.VerifyType.VERIFY_TEST;break;case 33:Fs.addElement(Vs[yl-3]);break;case 34:Fs.setNewElementType(Vs[yl-2]);break;case 35:Fs.setNewElementDocRef(Vs[yl-2]);break;case 38:Fs.addRelationship(Vs[yl-2],Vs[yl],Vs[yl-4]);break;case 39:Fs.addRelationship(Vs[yl-2],Vs[yl-4],Vs[yl]);break;case 40:this.$=Fs.Relationships.CONTAINS;break;case 41:this.$=Fs.Relationships.COPIES;break;case 42:this.$=Fs.Relationships.DERIVES;break;case 43:this.$=Fs.Relationships.SATISFIES;break;case 44:this.$=Fs.Relationships.VERIFIES;break;case 45:this.$=Fs.Relationships.REFINES;break;case 46:this.$=Fs.Relationships.TRACES;break}},table:[{3:1,4:2,6:to,9:no,11:io,13:so},{1:[3]},{3:8,4:2,5:[1,7],6:to,9:no,11:io,13:so},{5:[1,9]},{10:[1,10]},{12:[1,11]},eo(ao,[2,6]),{3:12,4:2,6:to,9:no,11:io,13:so},{1:[2,2]},{4:17,5:lo,7:13,8:uo,9:no,11:io,13:so,14:14,15:15,16:16,17:19,23:21,31:ho,32:go,33:mo,34:yo,35:So,36:_o,44:ko,62:Co,63:$o},eo(ao,[2,4]),eo(ao,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:lo,7:31,8:uo,9:no,11:io,13:so,14:14,15:15,16:16,17:19,23:21,31:ho,32:go,33:mo,34:yo,35:So,36:_o,44:ko,62:Co,63:$o},{4:17,5:lo,7:32,8:uo,9:no,11:io,13:so,14:14,15:15,16:16,17:19,23:21,31:ho,32:go,33:mo,34:yo,35:So,36:_o,44:ko,62:Co,63:$o},{4:17,5:lo,7:33,8:uo,9:no,11:io,13:so,14:14,15:15,16:16,17:19,23:21,31:ho,32:go,33:mo,34:yo,35:So,36:_o,44:ko,62:Co,63:$o},{4:17,5:lo,7:34,8:uo,9:no,11:io,13:so,14:14,15:15,16:16,17:19,23:21,31:ho,32:go,33:mo,34:yo,35:So,36:_o,44:ko,62:Co,63:$o},{4:17,5:lo,7:35,8:uo,9:no,11:io,13:so,14:14,15:15,16:16,17:19,23:21,31:ho,32:go,33:mo,34:yo,35:So,36:_o,44:ko,62:Co,63:$o},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},eo(Ro,[2,20]),eo(Ro,[2,21]),eo(Ro,[2,22]),eo(Ro,[2,23]),eo(Ro,[2,24]),eo(Ro,[2,25]),eo(Oo,[2,49]),eo(Oo,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:No,56:Mo,57:Bo,58:Po,59:Lo,60:Go,61:Do},{52:54,55:No,56:Mo,57:Bo,58:Po,59:Lo,60:Go,61:Do},{5:[1,55]},{5:[1,56]},{53:[1,57]},eo(Uo,[2,40]),eo(Uo,[2,41]),eo(Uo,[2,42]),eo(Uo,[2,43]),eo(Uo,[2,44]),eo(Uo,[2,45]),eo(Uo,[2,46]),{54:[1,58]},{5:Ho,20:59,21:Yo,24:qo,26:Jo,28:ps,30:Qo},{5:hs,30:gs,46:66,47:ys,49:vs},{23:71,62:Co,63:$o},{23:72,62:Co,63:$o},eo(ks,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:Ho,20:77,21:Yo,24:qo,26:Jo,28:ps,30:Qo},eo(ks,[2,19]),eo(ks,[2,33]),{22:[1,78]},{22:[1,79]},{5:hs,30:gs,46:80,47:ys,49:vs},eo(ks,[2,37]),eo(ks,[2,38]),eo(ks,[2,39]),{23:81,62:Co,63:$o},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},eo(ks,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},eo(ks,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:Ho,20:106,21:Yo,24:qo,26:Jo,28:ps,30:Qo},{5:Ho,20:107,21:Yo,24:qo,26:Jo,28:ps,30:Qo},{5:Ho,20:108,21:Yo,24:qo,26:Jo,28:ps,30:Qo},{5:Ho,20:109,21:Yo,24:qo,26:Jo,28:ps,30:Qo},{5:hs,30:gs,46:110,47:ys,49:vs},{5:hs,30:gs,46:111,47:ys,49:vs},eo(ks,[2,14]),eo(ks,[2,15]),eo(ks,[2,16]),eo(ks,[2,17]),eo(ks,[2,34]),eo(ks,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(Ps,qs){if(qs.recoverable)this.trace(Ps);else{var ga=new Error(Ps);throw ga.hash=qs,ga}},parse:function(Ps){var qs=this,ga=[0],Fs=[],Js=[null],Vs=[],El=this.table,yl="",Gl=0,Qs=0,du=2,Ol=1,Fu=Vs.slice.call(arguments,1),ju=Object.create(this.lexer),F1={yy:{}};for(var y1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y1)&&(F1.yy[y1]=this.yy[y1]);ju.setInput(Ps,F1.yy),F1.yy.lexer=ju,F1.yy.parser=this,typeof ju.yylloc>"u"&&(ju.yylloc={});var r1=ju.yylloc;Vs.push(r1);var $u=ju.options&&ju.options.ranges;typeof F1.yy.parseError=="function"?this.parseError=F1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Kl(){var Gu;return Gu=Fs.pop()||ju.lex()||Ol,typeof Gu!="number"&&(Gu instanceof Array&&(Fs=Gu,Gu=Fs.pop()),Gu=qs.symbols_[Gu]||Gu),Gu}for(var Is,Ks,Bs,Ds,Zs={},Cl,ba,fu,Lu;;){if(Ks=ga[ga.length-1],this.defaultActions[Ks]?Bs=this.defaultActions[Ks]:((Is===null||typeof Is>"u")&&(Is=Kl()),Bs=El[Ks]&&El[Ks][Is]),typeof Bs>"u"||!Bs.length||!Bs[0]){var e1="";Lu=[];for(Cl in El[Ks])this.terminals_[Cl]&&Cl>du&&Lu.push("'"+this.terminals_[Cl]+"'");ju.showPosition?e1="Parse error on line "+(Gl+1)+`: +`+eo);const mo=selectSvgElement(to),yo=mo.append("g").attr("class","main"),So=yo.append("rect").attr("width",lo.width).attr("height",lo.height).attr("class","background");configureSvgSize(mo,lo.height,lo.width,!0),mo.attr("viewBox",`0 0 ${lo.width} ${lo.height}`),So.attr("fill",ao.backgroundColor),so.setTmpSVGG(mo.append("g").attr("class","mermaid-tmp-group"));const _o=so.getDrawableElem(),ko={};function Co($o){let Ro=yo,Oo="";for(const[No]of $o.entries()){let Mo=yo;No>0&&ko[Oo]&&(Mo=ko[Oo]),Oo+=$o[No],Ro=ko[Oo],Ro||(Ro=ko[Oo]=Mo.append("g").attr("class",$o[No]))}return Ro}for(const $o of _o){if($o.data.length===0)continue;const Ro=Co($o.groupTexts);switch($o.type){case"rect":Ro.selectAll("rect").data($o.data).enter().append("rect").attr("x",Oo=>Oo.x).attr("y",Oo=>Oo.y).attr("width",Oo=>Oo.width).attr("height",Oo=>Oo.height).attr("fill",Oo=>Oo.fill).attr("stroke",Oo=>Oo.strokeFill).attr("stroke-width",Oo=>Oo.strokeWidth);break;case"text":Ro.selectAll("text").data($o.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",Oo=>Oo.fill).attr("font-size",Oo=>Oo.fontSize).attr("dominant-baseline",Oo=>uo(Oo.verticalPos)).attr("text-anchor",Oo=>ho(Oo.horizontalPos)).attr("transform",Oo=>go(Oo)).text(Oo=>Oo.text);break;case"path":Ro.selectAll("path").data($o.data).enter().append("path").attr("d",Oo=>Oo.path).attr("fill",Oo=>Oo.fill?Oo.fill:"none").attr("stroke",Oo=>Oo.strokeFill).attr("stroke-width",Oo=>Oo.strokeWidth);break}}},renderer$d={draw:draw$c},diagram$c={parser:parser$1$9,db:db$a,renderer:renderer$d},xychartDiagramAb372869=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$c},Symbol.toStringTag,{value:"Module"}));var parser$9=function(){var eo=function(Ws,Ps,qs,ga){for(qs=qs||{},ga=Ws.length;ga--;qs[Ws[ga]]=Ps);return qs},to=[1,3],no=[1,4],io=[1,5],so=[1,6],ao=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],lo=[1,18],uo=[2,7],ho=[1,22],go=[1,23],mo=[1,24],yo=[1,25],So=[1,26],_o=[1,27],ko=[1,20],Co=[1,28],$o=[1,29],Ro=[62,63],Oo=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],No=[1,47],Mo=[1,48],Bo=[1,49],Fo=[1,50],Lo=[1,51],Go=[1,52],Do=[1,53],Uo=[53,54],Ho=[1,64],Yo=[1,60],qo=[1,61],Jo=[1,62],ps=[1,63],Qo=[1,65],hs=[1,69],gs=[1,70],ys=[1,67],vs=[1,68],ks=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],Os={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(Ps,qs,ga,Fs,Js,Vs,El){var yl=Vs.length-1;switch(Js){case 4:this.$=Vs[yl].trim(),Fs.setAccTitle(this.$);break;case 5:case 6:this.$=Vs[yl].trim(),Fs.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:Fs.addRequirement(Vs[yl-3],Vs[yl-4]);break;case 14:Fs.setNewReqId(Vs[yl-2]);break;case 15:Fs.setNewReqText(Vs[yl-2]);break;case 16:Fs.setNewReqRisk(Vs[yl-2]);break;case 17:Fs.setNewReqVerifyMethod(Vs[yl-2]);break;case 20:this.$=Fs.RequirementType.REQUIREMENT;break;case 21:this.$=Fs.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=Fs.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=Fs.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=Fs.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=Fs.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=Fs.RiskLevel.LOW_RISK;break;case 27:this.$=Fs.RiskLevel.MED_RISK;break;case 28:this.$=Fs.RiskLevel.HIGH_RISK;break;case 29:this.$=Fs.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=Fs.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=Fs.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=Fs.VerifyType.VERIFY_TEST;break;case 33:Fs.addElement(Vs[yl-3]);break;case 34:Fs.setNewElementType(Vs[yl-2]);break;case 35:Fs.setNewElementDocRef(Vs[yl-2]);break;case 38:Fs.addRelationship(Vs[yl-2],Vs[yl],Vs[yl-4]);break;case 39:Fs.addRelationship(Vs[yl-2],Vs[yl-4],Vs[yl]);break;case 40:this.$=Fs.Relationships.CONTAINS;break;case 41:this.$=Fs.Relationships.COPIES;break;case 42:this.$=Fs.Relationships.DERIVES;break;case 43:this.$=Fs.Relationships.SATISFIES;break;case 44:this.$=Fs.Relationships.VERIFIES;break;case 45:this.$=Fs.Relationships.REFINES;break;case 46:this.$=Fs.Relationships.TRACES;break}},table:[{3:1,4:2,6:to,9:no,11:io,13:so},{1:[3]},{3:8,4:2,5:[1,7],6:to,9:no,11:io,13:so},{5:[1,9]},{10:[1,10]},{12:[1,11]},eo(ao,[2,6]),{3:12,4:2,6:to,9:no,11:io,13:so},{1:[2,2]},{4:17,5:lo,7:13,8:uo,9:no,11:io,13:so,14:14,15:15,16:16,17:19,23:21,31:ho,32:go,33:mo,34:yo,35:So,36:_o,44:ko,62:Co,63:$o},eo(ao,[2,4]),eo(ao,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:lo,7:31,8:uo,9:no,11:io,13:so,14:14,15:15,16:16,17:19,23:21,31:ho,32:go,33:mo,34:yo,35:So,36:_o,44:ko,62:Co,63:$o},{4:17,5:lo,7:32,8:uo,9:no,11:io,13:so,14:14,15:15,16:16,17:19,23:21,31:ho,32:go,33:mo,34:yo,35:So,36:_o,44:ko,62:Co,63:$o},{4:17,5:lo,7:33,8:uo,9:no,11:io,13:so,14:14,15:15,16:16,17:19,23:21,31:ho,32:go,33:mo,34:yo,35:So,36:_o,44:ko,62:Co,63:$o},{4:17,5:lo,7:34,8:uo,9:no,11:io,13:so,14:14,15:15,16:16,17:19,23:21,31:ho,32:go,33:mo,34:yo,35:So,36:_o,44:ko,62:Co,63:$o},{4:17,5:lo,7:35,8:uo,9:no,11:io,13:so,14:14,15:15,16:16,17:19,23:21,31:ho,32:go,33:mo,34:yo,35:So,36:_o,44:ko,62:Co,63:$o},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},eo(Ro,[2,20]),eo(Ro,[2,21]),eo(Ro,[2,22]),eo(Ro,[2,23]),eo(Ro,[2,24]),eo(Ro,[2,25]),eo(Oo,[2,49]),eo(Oo,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:No,56:Mo,57:Bo,58:Fo,59:Lo,60:Go,61:Do},{52:54,55:No,56:Mo,57:Bo,58:Fo,59:Lo,60:Go,61:Do},{5:[1,55]},{5:[1,56]},{53:[1,57]},eo(Uo,[2,40]),eo(Uo,[2,41]),eo(Uo,[2,42]),eo(Uo,[2,43]),eo(Uo,[2,44]),eo(Uo,[2,45]),eo(Uo,[2,46]),{54:[1,58]},{5:Ho,20:59,21:Yo,24:qo,26:Jo,28:ps,30:Qo},{5:hs,30:gs,46:66,47:ys,49:vs},{23:71,62:Co,63:$o},{23:72,62:Co,63:$o},eo(ks,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:Ho,20:77,21:Yo,24:qo,26:Jo,28:ps,30:Qo},eo(ks,[2,19]),eo(ks,[2,33]),{22:[1,78]},{22:[1,79]},{5:hs,30:gs,46:80,47:ys,49:vs},eo(ks,[2,37]),eo(ks,[2,38]),eo(ks,[2,39]),{23:81,62:Co,63:$o},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},eo(ks,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},eo(ks,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:Ho,20:106,21:Yo,24:qo,26:Jo,28:ps,30:Qo},{5:Ho,20:107,21:Yo,24:qo,26:Jo,28:ps,30:Qo},{5:Ho,20:108,21:Yo,24:qo,26:Jo,28:ps,30:Qo},{5:Ho,20:109,21:Yo,24:qo,26:Jo,28:ps,30:Qo},{5:hs,30:gs,46:110,47:ys,49:vs},{5:hs,30:gs,46:111,47:ys,49:vs},eo(ks,[2,14]),eo(ks,[2,15]),eo(ks,[2,16]),eo(ks,[2,17]),eo(ks,[2,34]),eo(ks,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(Ps,qs){if(qs.recoverable)this.trace(Ps);else{var ga=new Error(Ps);throw ga.hash=qs,ga}},parse:function(Ps){var qs=this,ga=[0],Fs=[],Js=[null],Vs=[],El=this.table,yl="",Gl=0,Qs=0,du=2,Ol=1,Fu=Vs.slice.call(arguments,1),ju=Object.create(this.lexer),F1={yy:{}};for(var y1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y1)&&(F1.yy[y1]=this.yy[y1]);ju.setInput(Ps,F1.yy),F1.yy.lexer=ju,F1.yy.parser=this,typeof ju.yylloc>"u"&&(ju.yylloc={});var r1=ju.yylloc;Vs.push(r1);var $u=ju.options&&ju.options.ranges;typeof F1.yy.parseError=="function"?this.parseError=F1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Kl(){var Gu;return Gu=Fs.pop()||ju.lex()||Ol,typeof Gu!="number"&&(Gu instanceof Array&&(Fs=Gu,Gu=Fs.pop()),Gu=qs.symbols_[Gu]||Gu),Gu}for(var Is,Ks,Bs,Ds,Zs={},Cl,ba,fu,Lu;;){if(Ks=ga[ga.length-1],this.defaultActions[Ks]?Bs=this.defaultActions[Ks]:((Is===null||typeof Is>"u")&&(Is=Kl()),Bs=El[Ks]&&El[Ks][Is]),typeof Bs>"u"||!Bs.length||!Bs[0]){var e1="";Lu=[];for(Cl in El[Ks])this.terminals_[Cl]&&Cl>du&&Lu.push("'"+this.terminals_[Cl]+"'");ju.showPosition?e1="Parse error on line "+(Gl+1)+`: `+ju.showPosition()+` Expecting `+Lu.join(", ")+", got '"+(this.terminals_[Is]||Is)+"'":e1="Parse error on line "+(Gl+1)+": Unexpected "+(Is==Ol?"end of input":"'"+(this.terminals_[Is]||Is)+"'"),this.parseError(e1,{text:ju.match,token:this.terminals_[Is]||Is,line:ju.yylineno,loc:r1,expected:Lu})}if(Bs[0]instanceof Array&&Bs.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ks+", token: "+Is);switch(Bs[0]){case 1:ga.push(Is),Js.push(ju.yytext),Vs.push(ju.yylloc),ga.push(Bs[1]),Is=null,Qs=ju.yyleng,yl=ju.yytext,Gl=ju.yylineno,r1=ju.yylloc;break;case 2:if(ba=this.productions_[Bs[1]][1],Zs.$=Js[Js.length-ba],Zs._$={first_line:Vs[Vs.length-(ba||1)].first_line,last_line:Vs[Vs.length-1].last_line,first_column:Vs[Vs.length-(ba||1)].first_column,last_column:Vs[Vs.length-1].last_column},$u&&(Zs._$.range=[Vs[Vs.length-(ba||1)].range[0],Vs[Vs.length-1].range[1]]),Ds=this.performAction.apply(Zs,[yl,Qs,Gl,F1.yy,Bs[1],Js,Vs].concat(Fu)),typeof Ds<"u")return Ds;ba&&(ga=ga.slice(0,-1*ba*2),Js=Js.slice(0,-1*ba),Vs=Vs.slice(0,-1*ba)),ga.push(this.productions_[Bs[1]][0]),Js.push(Zs.$),Vs.push(Zs._$),fu=El[ga[ga.length-2]][ga[ga.length-1]],ga.push(fu);break;case 3:return!0}}return!0}},Ts=function(){var Ws={EOF:1,parseError:function(qs,ga){if(this.yy.parser)this.yy.parser.parseError(qs,ga);else throw new Error(qs)},setInput:function(Ps,qs){return this.yy=qs||this.yy||{},this._input=Ps,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ps=this._input[0];this.yytext+=Ps,this.yyleng++,this.offset++,this.match+=Ps,this.matched+=Ps;var qs=Ps.match(/(?:\r\n?|\n).*/g);return qs?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ps},unput:function(Ps){var qs=Ps.length,ga=Ps.split(/(?:\r\n?|\n)/g);this._input=Ps+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-qs),this.offset-=qs;var Fs=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ga.length-1&&(this.yylineno-=ga.length-1);var Js=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ga?(ga.length===Fs.length?this.yylloc.first_column:0)+Fs[Fs.length-ga.length].length-ga[0].length:this.yylloc.first_column-qs},this.options.ranges&&(this.yylloc.range=[Js[0],Js[0]+this.yyleng-qs]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Ps){this.unput(this.match.slice(Ps))},pastInput:function(){var Ps=this.matched.substr(0,this.matched.length-this.match.length);return(Ps.length>20?"...":"")+Ps.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ps=this.match;return Ps.length<20&&(Ps+=this._input.substr(0,20-Ps.length)),(Ps.substr(0,20)+(Ps.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ps=this.pastInput(),qs=new Array(Ps.length+1).join("-");return Ps+this.upcomingInput()+` @@ -2905,7 +2905,7 @@ Expecting `+Lu.join(", ")+", got '"+(this.terminals_[Is]||Is)+"'":e1="Parse erro `,styles$7=getStyles$8,ReqMarkers={CONTAINS:"contains",ARROW:"arrow"},insertLineEndings=(eo,to)=>{let no=eo.append("defs").append("marker").attr("id",ReqMarkers.CONTAINS+"_line_ending").attr("refX",0).attr("refY",to.line_height/2).attr("markerWidth",to.line_height).attr("markerHeight",to.line_height).attr("orient","auto").append("g");no.append("circle").attr("cx",to.line_height/2).attr("cy",to.line_height/2).attr("r",to.line_height/2).attr("fill","none"),no.append("line").attr("x1",0).attr("x2",to.line_height).attr("y1",to.line_height/2).attr("y2",to.line_height/2).attr("stroke-width",1),no.append("line").attr("y1",0).attr("y2",to.line_height).attr("x1",to.line_height/2).attr("x2",to.line_height/2).attr("stroke-width",1),eo.append("defs").append("marker").attr("id",ReqMarkers.ARROW+"_line_ending").attr("refX",to.line_height).attr("refY",.5*to.line_height).attr("markerWidth",to.line_height).attr("markerHeight",to.line_height).attr("orient","auto").append("path").attr("d",`M0,0 L${to.line_height},${to.line_height/2} M${to.line_height},${to.line_height/2} - L0,${to.line_height}`).attr("stroke-width",1)},markers={ReqMarkers,insertLineEndings};let conf$5={},relCnt=0;const newRectNode=(eo,to)=>eo.insert("rect","#"+to).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",conf$5.rect_min_width+"px").attr("height",conf$5.rect_min_height+"px"),newTitleNode=(eo,to,no)=>{let io=conf$5.rect_min_width/2,so=eo.append("text").attr("class","req reqLabel reqTitle").attr("id",to).attr("x",io).attr("y",conf$5.rect_padding).attr("dominant-baseline","hanging"),ao=0;no.forEach(go=>{ao==0?so.append("tspan").attr("text-anchor","middle").attr("x",conf$5.rect_min_width/2).attr("dy",0).text(go):so.append("tspan").attr("text-anchor","middle").attr("x",conf$5.rect_min_width/2).attr("dy",conf$5.line_height*.75).text(go),ao++});let lo=1.5*conf$5.rect_padding,uo=ao*conf$5.line_height*.75,ho=lo+uo;return eo.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",conf$5.rect_min_width).attr("y1",ho).attr("y2",ho),{titleNode:so,y:ho}},newBodyNode=(eo,to,no,io)=>{let so=eo.append("text").attr("class","req reqLabel").attr("id",to).attr("x",conf$5.rect_padding).attr("y",io).attr("dominant-baseline","hanging"),ao=0;const lo=30;let uo=[];return no.forEach(ho=>{let go=ho.length;for(;go>lo&&ao<3;){let mo=ho.substring(0,lo);ho=ho.substring(lo,ho.length),go=ho.length,uo[uo.length]=mo,ao++}if(ao==3){let mo=uo[uo.length-1];uo[uo.length-1]=mo.substring(0,mo.length-4)+"..."}else uo[uo.length]=ho;ao=0}),uo.forEach(ho=>{so.append("tspan").attr("x",conf$5.rect_padding).attr("dy",conf$5.line_height).text(ho)}),so},addEdgeLabel=(eo,to,no,io)=>{const so=to.node().getTotalLength(),ao=to.node().getPointAtLength(so*.5),lo="rel"+relCnt;relCnt++;const ho=eo.append("text").attr("class","req relationshipLabel").attr("id",lo).attr("x",ao.x).attr("y",ao.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(io).node().getBBox();eo.insert("rect","#"+lo).attr("class","req reqLabelBox").attr("x",ao.x-ho.width/2).attr("y",ao.y-ho.height/2).attr("width",ho.width).attr("height",ho.height).attr("fill","white").attr("fill-opacity","85%")},drawRelationshipFromLayout=function(eo,to,no,io,so){const ao=no.edge(elementString(to.src),elementString(to.dst)),lo=line$1().x(function(ho){return ho.x}).y(function(ho){return ho.y}),uo=eo.insert("path","#"+io).attr("class","er relationshipLine").attr("d",lo(ao.points)).attr("fill","none");to.type==so.db.Relationships.CONTAINS?uo.attr("marker-start","url("+common$1.getUrl(conf$5.arrowMarkerAbsolute)+"#"+to.type+"_line_ending)"):(uo.attr("stroke-dasharray","10,7"),uo.attr("marker-end","url("+common$1.getUrl(conf$5.arrowMarkerAbsolute)+"#"+markers.ReqMarkers.ARROW+"_line_ending)")),addEdgeLabel(eo,uo,conf$5,`<<${to.type}>>`)},drawReqs=(eo,to,no)=>{Object.keys(eo).forEach(io=>{let so=eo[io];io=elementString(io),log$1.info("Added new requirement: ",io);const ao=no.append("g").attr("id",io),lo="req-"+io,uo=newRectNode(ao,lo);let ho=newTitleNode(ao,io+"_title",[`<<${so.type}>>`,`${so.name}`]);newBodyNode(ao,io+"_body",[`Id: ${so.id}`,`Text: ${so.text}`,`Risk: ${so.risk}`,`Verification: ${so.verifyMethod}`],ho.y);const go=uo.node().getBBox();to.setNode(io,{width:go.width,height:go.height,shape:"rect",id:io})})},drawElements=(eo,to,no)=>{Object.keys(eo).forEach(io=>{let so=eo[io];const ao=elementString(io),lo=no.append("g").attr("id",ao),uo="element-"+ao,ho=newRectNode(lo,uo);let go=newTitleNode(lo,uo+"_title",["<>",`${io}`]);newBodyNode(lo,uo+"_body",[`Type: ${so.type||"Not Specified"}`,`Doc Ref: ${so.docRef||"None"}`],go.y);const mo=ho.node().getBBox();to.setNode(ao,{width:mo.width,height:mo.height,shape:"rect",id:ao})})},addRelationships=(eo,to)=>(eo.forEach(function(no){let io=elementString(no.src),so=elementString(no.dst);to.setEdge(io,so,{relationship:no})}),eo),adjustEntities=function(eo,to){to.nodes().forEach(function(no){no!==void 0&&to.node(no)!==void 0&&(eo.select("#"+no),eo.select("#"+no).attr("transform","translate("+(to.node(no).x-to.node(no).width/2)+","+(to.node(no).y-to.node(no).height/2)+" )"))})},elementString=eo=>eo.replace(/\s/g,"").replace(/\./g,"_"),draw$b=(eo,to,no,io)=>{conf$5=getConfig$2().requirement;const so=conf$5.securityLevel;let ao;so==="sandbox"&&(ao=select("#i"+to));const uo=select(so==="sandbox"?ao.nodes()[0].contentDocument.body:"body").select(`[id='${to}']`);markers.insertLineEndings(uo,conf$5);const ho=new Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:conf$5.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let go=io.db.getRequirements(),mo=io.db.getElements(),yo=io.db.getRelationships();drawReqs(go,ho,uo),drawElements(mo,ho,uo),addRelationships(yo,ho),layout$2(ho),adjustEntities(uo,ho),yo.forEach(function($o){drawRelationshipFromLayout(uo,$o,ho,to,io)});const So=conf$5.rect_padding,_o=uo.node().getBBox(),ko=_o.width+So*2,Co=_o.height+So*2;configureSvgSize(uo,Co,ko,conf$5.useMaxWidth),uo.attr("viewBox",`${_o.x-So} ${_o.y-So} ${ko} ${Co}`)},renderer$c={draw:draw$b},diagram$b={parser:parser$1$8,db:db$9,renderer:renderer$c,styles:styles$7},requirementDiagram05bf5f74=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$b},Symbol.toStringTag,{value:"Module"}));var parser$8=function(){var eo=function(Fs,Js,Vs,El){for(Vs=Vs||{},El=Fs.length;El--;Vs[Fs[El]]=Js);return Vs},to=[1,2],no=[1,3],io=[1,4],so=[2,4],ao=[1,9],lo=[1,11],uo=[1,13],ho=[1,14],go=[1,16],mo=[1,17],yo=[1,18],So=[1,24],_o=[1,25],ko=[1,26],Co=[1,27],$o=[1,28],Ro=[1,29],Oo=[1,30],No=[1,31],Mo=[1,32],Bo=[1,33],Po=[1,34],Lo=[1,35],Go=[1,36],Do=[1,37],Uo=[1,38],Ho=[1,39],Yo=[1,41],qo=[1,42],Jo=[1,43],ps=[1,44],Qo=[1,45],hs=[1,46],gs=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],ys=[4,5,16,50,52,53],vs=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],ks=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],Os=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Ts=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],Xs=[68,69,70],Ws=[1,120],Ps={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(Js,Vs,El,yl,Gl,Qs,du){var Ol=Qs.length-1;switch(Gl){case 3:return yl.apply(Qs[Ol]),Qs[Ol];case 4:case 9:this.$=[];break;case 5:case 10:Qs[Ol-1].push(Qs[Ol]),this.$=Qs[Ol-1];break;case 6:case 7:case 11:case 12:this.$=Qs[Ol];break;case 8:case 13:this.$=[];break;case 15:Qs[Ol].type="createParticipant",this.$=Qs[Ol];break;case 16:Qs[Ol-1].unshift({type:"boxStart",boxData:yl.parseBoxData(Qs[Ol-2])}),Qs[Ol-1].push({type:"boxEnd",boxText:Qs[Ol-2]}),this.$=Qs[Ol-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(Qs[Ol-2]),sequenceIndexStep:Number(Qs[Ol-1]),sequenceVisible:!0,signalType:yl.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(Qs[Ol-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:yl.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:yl.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:yl.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:yl.LINETYPE.ACTIVE_START,actor:Qs[Ol-1]};break;case 23:this.$={type:"activeEnd",signalType:yl.LINETYPE.ACTIVE_END,actor:Qs[Ol-1]};break;case 29:yl.setDiagramTitle(Qs[Ol].substring(6)),this.$=Qs[Ol].substring(6);break;case 30:yl.setDiagramTitle(Qs[Ol].substring(7)),this.$=Qs[Ol].substring(7);break;case 31:this.$=Qs[Ol].trim(),yl.setAccTitle(this.$);break;case 32:case 33:this.$=Qs[Ol].trim(),yl.setAccDescription(this.$);break;case 34:Qs[Ol-1].unshift({type:"loopStart",loopText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.LOOP_START}),Qs[Ol-1].push({type:"loopEnd",loopText:Qs[Ol-2],signalType:yl.LINETYPE.LOOP_END}),this.$=Qs[Ol-1];break;case 35:Qs[Ol-1].unshift({type:"rectStart",color:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.RECT_START}),Qs[Ol-1].push({type:"rectEnd",color:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.RECT_END}),this.$=Qs[Ol-1];break;case 36:Qs[Ol-1].unshift({type:"optStart",optText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.OPT_START}),Qs[Ol-1].push({type:"optEnd",optText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.OPT_END}),this.$=Qs[Ol-1];break;case 37:Qs[Ol-1].unshift({type:"altStart",altText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.ALT_START}),Qs[Ol-1].push({type:"altEnd",signalType:yl.LINETYPE.ALT_END}),this.$=Qs[Ol-1];break;case 38:Qs[Ol-1].unshift({type:"parStart",parText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.PAR_START}),Qs[Ol-1].push({type:"parEnd",signalType:yl.LINETYPE.PAR_END}),this.$=Qs[Ol-1];break;case 39:Qs[Ol-1].unshift({type:"parStart",parText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.PAR_OVER_START}),Qs[Ol-1].push({type:"parEnd",signalType:yl.LINETYPE.PAR_END}),this.$=Qs[Ol-1];break;case 40:Qs[Ol-1].unshift({type:"criticalStart",criticalText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.CRITICAL_START}),Qs[Ol-1].push({type:"criticalEnd",signalType:yl.LINETYPE.CRITICAL_END}),this.$=Qs[Ol-1];break;case 41:Qs[Ol-1].unshift({type:"breakStart",breakText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.BREAK_START}),Qs[Ol-1].push({type:"breakEnd",optText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.BREAK_END}),this.$=Qs[Ol-1];break;case 43:this.$=Qs[Ol-3].concat([{type:"option",optionText:yl.parseMessage(Qs[Ol-1]),signalType:yl.LINETYPE.CRITICAL_OPTION},Qs[Ol]]);break;case 45:this.$=Qs[Ol-3].concat([{type:"and",parText:yl.parseMessage(Qs[Ol-1]),signalType:yl.LINETYPE.PAR_AND},Qs[Ol]]);break;case 47:this.$=Qs[Ol-3].concat([{type:"else",altText:yl.parseMessage(Qs[Ol-1]),signalType:yl.LINETYPE.ALT_ELSE},Qs[Ol]]);break;case 48:Qs[Ol-3].draw="participant",Qs[Ol-3].type="addParticipant",Qs[Ol-3].description=yl.parseMessage(Qs[Ol-1]),this.$=Qs[Ol-3];break;case 49:Qs[Ol-1].draw="participant",Qs[Ol-1].type="addParticipant",this.$=Qs[Ol-1];break;case 50:Qs[Ol-3].draw="actor",Qs[Ol-3].type="addParticipant",Qs[Ol-3].description=yl.parseMessage(Qs[Ol-1]),this.$=Qs[Ol-3];break;case 51:Qs[Ol-1].draw="actor",Qs[Ol-1].type="addParticipant",this.$=Qs[Ol-1];break;case 52:Qs[Ol-1].type="destroyParticipant",this.$=Qs[Ol-1];break;case 53:this.$=[Qs[Ol-1],{type:"addNote",placement:Qs[Ol-2],actor:Qs[Ol-1].actor,text:Qs[Ol]}];break;case 54:Qs[Ol-2]=[].concat(Qs[Ol-1],Qs[Ol-1]).slice(0,2),Qs[Ol-2][0]=Qs[Ol-2][0].actor,Qs[Ol-2][1]=Qs[Ol-2][1].actor,this.$=[Qs[Ol-1],{type:"addNote",placement:yl.PLACEMENT.OVER,actor:Qs[Ol-2].slice(0,2),text:Qs[Ol]}];break;case 55:this.$=[Qs[Ol-1],{type:"addLinks",actor:Qs[Ol-1].actor,text:Qs[Ol]}];break;case 56:this.$=[Qs[Ol-1],{type:"addALink",actor:Qs[Ol-1].actor,text:Qs[Ol]}];break;case 57:this.$=[Qs[Ol-1],{type:"addProperties",actor:Qs[Ol-1].actor,text:Qs[Ol]}];break;case 58:this.$=[Qs[Ol-1],{type:"addDetails",actor:Qs[Ol-1].actor,text:Qs[Ol]}];break;case 61:this.$=[Qs[Ol-2],Qs[Ol]];break;case 62:this.$=Qs[Ol];break;case 63:this.$=yl.PLACEMENT.LEFTOF;break;case 64:this.$=yl.PLACEMENT.RIGHTOF;break;case 65:this.$=[Qs[Ol-4],Qs[Ol-1],{type:"addMessage",from:Qs[Ol-4].actor,to:Qs[Ol-1].actor,signalType:Qs[Ol-3],msg:Qs[Ol],activate:!0},{type:"activeStart",signalType:yl.LINETYPE.ACTIVE_START,actor:Qs[Ol-1]}];break;case 66:this.$=[Qs[Ol-4],Qs[Ol-1],{type:"addMessage",from:Qs[Ol-4].actor,to:Qs[Ol-1].actor,signalType:Qs[Ol-3],msg:Qs[Ol]},{type:"activeEnd",signalType:yl.LINETYPE.ACTIVE_END,actor:Qs[Ol-4]}];break;case 67:this.$=[Qs[Ol-3],Qs[Ol-1],{type:"addMessage",from:Qs[Ol-3].actor,to:Qs[Ol-1].actor,signalType:Qs[Ol-2],msg:Qs[Ol]}];break;case 68:this.$={type:"addParticipant",actor:Qs[Ol]};break;case 69:this.$=yl.LINETYPE.SOLID_OPEN;break;case 70:this.$=yl.LINETYPE.DOTTED_OPEN;break;case 71:this.$=yl.LINETYPE.SOLID;break;case 72:this.$=yl.LINETYPE.DOTTED;break;case 73:this.$=yl.LINETYPE.SOLID_CROSS;break;case 74:this.$=yl.LINETYPE.DOTTED_CROSS;break;case 75:this.$=yl.LINETYPE.SOLID_POINT;break;case 76:this.$=yl.LINETYPE.DOTTED_POINT;break;case 77:this.$=yl.parseMessage(Qs[Ol].trim().substring(1));break}},table:[{3:1,4:to,5:no,6:io},{1:[3]},{3:5,4:to,5:no,6:io},{3:6,4:to,5:no,6:io},eo([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],so,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Po,44:Lo,46:Go,50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},eo(gs,[2,5]),{9:47,12:12,13:uo,14:ho,17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Po,44:Lo,46:Go,50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},eo(gs,[2,7]),eo(gs,[2,8]),eo(gs,[2,14]),{12:48,50:Do,52:Uo,53:Ho},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:hs},{22:55,70:hs},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},eo(gs,[2,29]),eo(gs,[2,30]),{32:[1,61]},{34:[1,62]},eo(gs,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:hs},{22:72,70:hs},{22:73,70:hs},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:hs},{22:88,70:hs},{22:89,70:hs},{22:90,70:hs},eo([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),eo(gs,[2,6]),eo(gs,[2,15]),eo(ys,[2,9],{10:91}),eo(gs,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},eo(gs,[2,21]),{5:[1,95]},{5:[1,96]},eo(gs,[2,24]),eo(gs,[2,25]),eo(gs,[2,26]),eo(gs,[2,27]),eo(gs,[2,28]),eo(gs,[2,31]),eo(gs,[2,32]),eo(vs,so,{7:97}),eo(vs,so,{7:98}),eo(vs,so,{7:99}),eo(ks,so,{40:100,7:101}),eo(Os,so,{42:102,7:103}),eo(Os,so,{7:103,42:104}),eo(Ts,so,{45:105,7:106}),eo(vs,so,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:hs},eo(Xs,[2,69]),eo(Xs,[2,70]),eo(Xs,[2,71]),eo(Xs,[2,72]),eo(Xs,[2,73]),eo(Xs,[2,74]),eo(Xs,[2,75]),eo(Xs,[2,76]),{22:116,70:hs},{22:118,58:117,70:hs},{70:[2,63]},{70:[2,64]},{56:119,79:Ws},{56:121,79:Ws},{56:122,79:Ws},{56:123,79:Ws},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:Do,52:Uo,53:Ho},{5:[1,129]},eo(gs,[2,19]),eo(gs,[2,20]),eo(gs,[2,22]),eo(gs,[2,23]),{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[1,130],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Po,44:Lo,46:Go,50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[1,131],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Po,44:Lo,46:Go,50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[1,132],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Po,44:Lo,46:Go,50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{16:[1,133]},{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[2,46],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Po,44:Lo,46:Go,49:[1,134],50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{16:[1,135]},{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[2,44],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Po,44:Lo,46:Go,48:[1,136],50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{16:[1,137]},{16:[1,138]},{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[2,42],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Po,44:Lo,46:Go,47:[1,139],50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[1,140],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Po,44:Lo,46:Go,50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{15:[1,141]},eo(gs,[2,49]),{15:[1,142]},eo(gs,[2,51]),eo(gs,[2,52]),{22:143,70:hs},{22:144,70:hs},{56:145,79:Ws},{56:146,79:Ws},{56:147,79:Ws},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},eo(gs,[2,16]),eo(ys,[2,10]),{12:149,50:Do,52:Uo,53:Ho},eo(ys,[2,12]),eo(ys,[2,13]),eo(gs,[2,18]),eo(gs,[2,34]),eo(gs,[2,35]),eo(gs,[2,36]),eo(gs,[2,37]),{15:[1,150]},eo(gs,[2,38]),{15:[1,151]},eo(gs,[2,39]),eo(gs,[2,40]),{15:[1,152]},eo(gs,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:Ws},{56:156,79:Ws},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:hs},eo(ys,[2,11]),eo(ks,so,{7:101,40:158}),eo(Os,so,{7:103,42:159}),eo(Ts,so,{7:106,45:160}),eo(gs,[2,48]),eo(gs,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(Js,Vs){if(Vs.recoverable)this.trace(Js);else{var El=new Error(Js);throw El.hash=Vs,El}},parse:function(Js){var Vs=this,El=[0],yl=[],Gl=[null],Qs=[],du=this.table,Ol="",Fu=0,ju=0,F1=2,y1=1,r1=Qs.slice.call(arguments,1),$u=Object.create(this.lexer),Kl={yy:{}};for(var Is in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Is)&&(Kl.yy[Is]=this.yy[Is]);$u.setInput(Js,Kl.yy),Kl.yy.lexer=$u,Kl.yy.parser=this,typeof $u.yylloc>"u"&&($u.yylloc={});var Ks=$u.yylloc;Qs.push(Ks);var Bs=$u.options&&$u.options.ranges;typeof Kl.yy.parseError=="function"?this.parseError=Kl.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ds(){var K1;return K1=yl.pop()||$u.lex()||y1,typeof K1!="number"&&(K1 instanceof Array&&(yl=K1,K1=yl.pop()),K1=Vs.symbols_[K1]||K1),K1}for(var Zs,Cl,ba,fu,Lu={},e1,Gu,w1,Zu;;){if(Cl=El[El.length-1],this.defaultActions[Cl]?ba=this.defaultActions[Cl]:((Zs===null||typeof Zs>"u")&&(Zs=Ds()),ba=du[Cl]&&du[Cl][Zs]),typeof ba>"u"||!ba.length||!ba[0]){var L1="";Zu=[];for(e1 in du[Cl])this.terminals_[e1]&&e1>F1&&Zu.push("'"+this.terminals_[e1]+"'");$u.showPosition?L1="Parse error on line "+(Fu+1)+`: + L0,${to.line_height}`).attr("stroke-width",1)},markers={ReqMarkers,insertLineEndings};let conf$5={},relCnt=0;const newRectNode=(eo,to)=>eo.insert("rect","#"+to).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",conf$5.rect_min_width+"px").attr("height",conf$5.rect_min_height+"px"),newTitleNode=(eo,to,no)=>{let io=conf$5.rect_min_width/2,so=eo.append("text").attr("class","req reqLabel reqTitle").attr("id",to).attr("x",io).attr("y",conf$5.rect_padding).attr("dominant-baseline","hanging"),ao=0;no.forEach(go=>{ao==0?so.append("tspan").attr("text-anchor","middle").attr("x",conf$5.rect_min_width/2).attr("dy",0).text(go):so.append("tspan").attr("text-anchor","middle").attr("x",conf$5.rect_min_width/2).attr("dy",conf$5.line_height*.75).text(go),ao++});let lo=1.5*conf$5.rect_padding,uo=ao*conf$5.line_height*.75,ho=lo+uo;return eo.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",conf$5.rect_min_width).attr("y1",ho).attr("y2",ho),{titleNode:so,y:ho}},newBodyNode=(eo,to,no,io)=>{let so=eo.append("text").attr("class","req reqLabel").attr("id",to).attr("x",conf$5.rect_padding).attr("y",io).attr("dominant-baseline","hanging"),ao=0;const lo=30;let uo=[];return no.forEach(ho=>{let go=ho.length;for(;go>lo&&ao<3;){let mo=ho.substring(0,lo);ho=ho.substring(lo,ho.length),go=ho.length,uo[uo.length]=mo,ao++}if(ao==3){let mo=uo[uo.length-1];uo[uo.length-1]=mo.substring(0,mo.length-4)+"..."}else uo[uo.length]=ho;ao=0}),uo.forEach(ho=>{so.append("tspan").attr("x",conf$5.rect_padding).attr("dy",conf$5.line_height).text(ho)}),so},addEdgeLabel=(eo,to,no,io)=>{const so=to.node().getTotalLength(),ao=to.node().getPointAtLength(so*.5),lo="rel"+relCnt;relCnt++;const ho=eo.append("text").attr("class","req relationshipLabel").attr("id",lo).attr("x",ao.x).attr("y",ao.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(io).node().getBBox();eo.insert("rect","#"+lo).attr("class","req reqLabelBox").attr("x",ao.x-ho.width/2).attr("y",ao.y-ho.height/2).attr("width",ho.width).attr("height",ho.height).attr("fill","white").attr("fill-opacity","85%")},drawRelationshipFromLayout=function(eo,to,no,io,so){const ao=no.edge(elementString(to.src),elementString(to.dst)),lo=line$1().x(function(ho){return ho.x}).y(function(ho){return ho.y}),uo=eo.insert("path","#"+io).attr("class","er relationshipLine").attr("d",lo(ao.points)).attr("fill","none");to.type==so.db.Relationships.CONTAINS?uo.attr("marker-start","url("+common$1.getUrl(conf$5.arrowMarkerAbsolute)+"#"+to.type+"_line_ending)"):(uo.attr("stroke-dasharray","10,7"),uo.attr("marker-end","url("+common$1.getUrl(conf$5.arrowMarkerAbsolute)+"#"+markers.ReqMarkers.ARROW+"_line_ending)")),addEdgeLabel(eo,uo,conf$5,`<<${to.type}>>`)},drawReqs=(eo,to,no)=>{Object.keys(eo).forEach(io=>{let so=eo[io];io=elementString(io),log$1.info("Added new requirement: ",io);const ao=no.append("g").attr("id",io),lo="req-"+io,uo=newRectNode(ao,lo);let ho=newTitleNode(ao,io+"_title",[`<<${so.type}>>`,`${so.name}`]);newBodyNode(ao,io+"_body",[`Id: ${so.id}`,`Text: ${so.text}`,`Risk: ${so.risk}`,`Verification: ${so.verifyMethod}`],ho.y);const go=uo.node().getBBox();to.setNode(io,{width:go.width,height:go.height,shape:"rect",id:io})})},drawElements=(eo,to,no)=>{Object.keys(eo).forEach(io=>{let so=eo[io];const ao=elementString(io),lo=no.append("g").attr("id",ao),uo="element-"+ao,ho=newRectNode(lo,uo);let go=newTitleNode(lo,uo+"_title",["<>",`${io}`]);newBodyNode(lo,uo+"_body",[`Type: ${so.type||"Not Specified"}`,`Doc Ref: ${so.docRef||"None"}`],go.y);const mo=ho.node().getBBox();to.setNode(ao,{width:mo.width,height:mo.height,shape:"rect",id:ao})})},addRelationships=(eo,to)=>(eo.forEach(function(no){let io=elementString(no.src),so=elementString(no.dst);to.setEdge(io,so,{relationship:no})}),eo),adjustEntities=function(eo,to){to.nodes().forEach(function(no){no!==void 0&&to.node(no)!==void 0&&(eo.select("#"+no),eo.select("#"+no).attr("transform","translate("+(to.node(no).x-to.node(no).width/2)+","+(to.node(no).y-to.node(no).height/2)+" )"))})},elementString=eo=>eo.replace(/\s/g,"").replace(/\./g,"_"),draw$b=(eo,to,no,io)=>{conf$5=getConfig$2().requirement;const so=conf$5.securityLevel;let ao;so==="sandbox"&&(ao=select("#i"+to));const uo=select(so==="sandbox"?ao.nodes()[0].contentDocument.body:"body").select(`[id='${to}']`);markers.insertLineEndings(uo,conf$5);const ho=new Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:conf$5.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let go=io.db.getRequirements(),mo=io.db.getElements(),yo=io.db.getRelationships();drawReqs(go,ho,uo),drawElements(mo,ho,uo),addRelationships(yo,ho),layout$2(ho),adjustEntities(uo,ho),yo.forEach(function($o){drawRelationshipFromLayout(uo,$o,ho,to,io)});const So=conf$5.rect_padding,_o=uo.node().getBBox(),ko=_o.width+So*2,Co=_o.height+So*2;configureSvgSize(uo,Co,ko,conf$5.useMaxWidth),uo.attr("viewBox",`${_o.x-So} ${_o.y-So} ${ko} ${Co}`)},renderer$c={draw:draw$b},diagram$b={parser:parser$1$8,db:db$9,renderer:renderer$c,styles:styles$7},requirementDiagram05bf5f74=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$b},Symbol.toStringTag,{value:"Module"}));var parser$8=function(){var eo=function(Fs,Js,Vs,El){for(Vs=Vs||{},El=Fs.length;El--;Vs[Fs[El]]=Js);return Vs},to=[1,2],no=[1,3],io=[1,4],so=[2,4],ao=[1,9],lo=[1,11],uo=[1,13],ho=[1,14],go=[1,16],mo=[1,17],yo=[1,18],So=[1,24],_o=[1,25],ko=[1,26],Co=[1,27],$o=[1,28],Ro=[1,29],Oo=[1,30],No=[1,31],Mo=[1,32],Bo=[1,33],Fo=[1,34],Lo=[1,35],Go=[1,36],Do=[1,37],Uo=[1,38],Ho=[1,39],Yo=[1,41],qo=[1,42],Jo=[1,43],ps=[1,44],Qo=[1,45],hs=[1,46],gs=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],ys=[4,5,16,50,52,53],vs=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],ks=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],Os=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Ts=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],Xs=[68,69,70],Ws=[1,120],Ps={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(Js,Vs,El,yl,Gl,Qs,du){var Ol=Qs.length-1;switch(Gl){case 3:return yl.apply(Qs[Ol]),Qs[Ol];case 4:case 9:this.$=[];break;case 5:case 10:Qs[Ol-1].push(Qs[Ol]),this.$=Qs[Ol-1];break;case 6:case 7:case 11:case 12:this.$=Qs[Ol];break;case 8:case 13:this.$=[];break;case 15:Qs[Ol].type="createParticipant",this.$=Qs[Ol];break;case 16:Qs[Ol-1].unshift({type:"boxStart",boxData:yl.parseBoxData(Qs[Ol-2])}),Qs[Ol-1].push({type:"boxEnd",boxText:Qs[Ol-2]}),this.$=Qs[Ol-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(Qs[Ol-2]),sequenceIndexStep:Number(Qs[Ol-1]),sequenceVisible:!0,signalType:yl.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(Qs[Ol-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:yl.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:yl.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:yl.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:yl.LINETYPE.ACTIVE_START,actor:Qs[Ol-1]};break;case 23:this.$={type:"activeEnd",signalType:yl.LINETYPE.ACTIVE_END,actor:Qs[Ol-1]};break;case 29:yl.setDiagramTitle(Qs[Ol].substring(6)),this.$=Qs[Ol].substring(6);break;case 30:yl.setDiagramTitle(Qs[Ol].substring(7)),this.$=Qs[Ol].substring(7);break;case 31:this.$=Qs[Ol].trim(),yl.setAccTitle(this.$);break;case 32:case 33:this.$=Qs[Ol].trim(),yl.setAccDescription(this.$);break;case 34:Qs[Ol-1].unshift({type:"loopStart",loopText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.LOOP_START}),Qs[Ol-1].push({type:"loopEnd",loopText:Qs[Ol-2],signalType:yl.LINETYPE.LOOP_END}),this.$=Qs[Ol-1];break;case 35:Qs[Ol-1].unshift({type:"rectStart",color:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.RECT_START}),Qs[Ol-1].push({type:"rectEnd",color:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.RECT_END}),this.$=Qs[Ol-1];break;case 36:Qs[Ol-1].unshift({type:"optStart",optText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.OPT_START}),Qs[Ol-1].push({type:"optEnd",optText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.OPT_END}),this.$=Qs[Ol-1];break;case 37:Qs[Ol-1].unshift({type:"altStart",altText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.ALT_START}),Qs[Ol-1].push({type:"altEnd",signalType:yl.LINETYPE.ALT_END}),this.$=Qs[Ol-1];break;case 38:Qs[Ol-1].unshift({type:"parStart",parText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.PAR_START}),Qs[Ol-1].push({type:"parEnd",signalType:yl.LINETYPE.PAR_END}),this.$=Qs[Ol-1];break;case 39:Qs[Ol-1].unshift({type:"parStart",parText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.PAR_OVER_START}),Qs[Ol-1].push({type:"parEnd",signalType:yl.LINETYPE.PAR_END}),this.$=Qs[Ol-1];break;case 40:Qs[Ol-1].unshift({type:"criticalStart",criticalText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.CRITICAL_START}),Qs[Ol-1].push({type:"criticalEnd",signalType:yl.LINETYPE.CRITICAL_END}),this.$=Qs[Ol-1];break;case 41:Qs[Ol-1].unshift({type:"breakStart",breakText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.BREAK_START}),Qs[Ol-1].push({type:"breakEnd",optText:yl.parseMessage(Qs[Ol-2]),signalType:yl.LINETYPE.BREAK_END}),this.$=Qs[Ol-1];break;case 43:this.$=Qs[Ol-3].concat([{type:"option",optionText:yl.parseMessage(Qs[Ol-1]),signalType:yl.LINETYPE.CRITICAL_OPTION},Qs[Ol]]);break;case 45:this.$=Qs[Ol-3].concat([{type:"and",parText:yl.parseMessage(Qs[Ol-1]),signalType:yl.LINETYPE.PAR_AND},Qs[Ol]]);break;case 47:this.$=Qs[Ol-3].concat([{type:"else",altText:yl.parseMessage(Qs[Ol-1]),signalType:yl.LINETYPE.ALT_ELSE},Qs[Ol]]);break;case 48:Qs[Ol-3].draw="participant",Qs[Ol-3].type="addParticipant",Qs[Ol-3].description=yl.parseMessage(Qs[Ol-1]),this.$=Qs[Ol-3];break;case 49:Qs[Ol-1].draw="participant",Qs[Ol-1].type="addParticipant",this.$=Qs[Ol-1];break;case 50:Qs[Ol-3].draw="actor",Qs[Ol-3].type="addParticipant",Qs[Ol-3].description=yl.parseMessage(Qs[Ol-1]),this.$=Qs[Ol-3];break;case 51:Qs[Ol-1].draw="actor",Qs[Ol-1].type="addParticipant",this.$=Qs[Ol-1];break;case 52:Qs[Ol-1].type="destroyParticipant",this.$=Qs[Ol-1];break;case 53:this.$=[Qs[Ol-1],{type:"addNote",placement:Qs[Ol-2],actor:Qs[Ol-1].actor,text:Qs[Ol]}];break;case 54:Qs[Ol-2]=[].concat(Qs[Ol-1],Qs[Ol-1]).slice(0,2),Qs[Ol-2][0]=Qs[Ol-2][0].actor,Qs[Ol-2][1]=Qs[Ol-2][1].actor,this.$=[Qs[Ol-1],{type:"addNote",placement:yl.PLACEMENT.OVER,actor:Qs[Ol-2].slice(0,2),text:Qs[Ol]}];break;case 55:this.$=[Qs[Ol-1],{type:"addLinks",actor:Qs[Ol-1].actor,text:Qs[Ol]}];break;case 56:this.$=[Qs[Ol-1],{type:"addALink",actor:Qs[Ol-1].actor,text:Qs[Ol]}];break;case 57:this.$=[Qs[Ol-1],{type:"addProperties",actor:Qs[Ol-1].actor,text:Qs[Ol]}];break;case 58:this.$=[Qs[Ol-1],{type:"addDetails",actor:Qs[Ol-1].actor,text:Qs[Ol]}];break;case 61:this.$=[Qs[Ol-2],Qs[Ol]];break;case 62:this.$=Qs[Ol];break;case 63:this.$=yl.PLACEMENT.LEFTOF;break;case 64:this.$=yl.PLACEMENT.RIGHTOF;break;case 65:this.$=[Qs[Ol-4],Qs[Ol-1],{type:"addMessage",from:Qs[Ol-4].actor,to:Qs[Ol-1].actor,signalType:Qs[Ol-3],msg:Qs[Ol],activate:!0},{type:"activeStart",signalType:yl.LINETYPE.ACTIVE_START,actor:Qs[Ol-1]}];break;case 66:this.$=[Qs[Ol-4],Qs[Ol-1],{type:"addMessage",from:Qs[Ol-4].actor,to:Qs[Ol-1].actor,signalType:Qs[Ol-3],msg:Qs[Ol]},{type:"activeEnd",signalType:yl.LINETYPE.ACTIVE_END,actor:Qs[Ol-4]}];break;case 67:this.$=[Qs[Ol-3],Qs[Ol-1],{type:"addMessage",from:Qs[Ol-3].actor,to:Qs[Ol-1].actor,signalType:Qs[Ol-2],msg:Qs[Ol]}];break;case 68:this.$={type:"addParticipant",actor:Qs[Ol]};break;case 69:this.$=yl.LINETYPE.SOLID_OPEN;break;case 70:this.$=yl.LINETYPE.DOTTED_OPEN;break;case 71:this.$=yl.LINETYPE.SOLID;break;case 72:this.$=yl.LINETYPE.DOTTED;break;case 73:this.$=yl.LINETYPE.SOLID_CROSS;break;case 74:this.$=yl.LINETYPE.DOTTED_CROSS;break;case 75:this.$=yl.LINETYPE.SOLID_POINT;break;case 76:this.$=yl.LINETYPE.DOTTED_POINT;break;case 77:this.$=yl.parseMessage(Qs[Ol].trim().substring(1));break}},table:[{3:1,4:to,5:no,6:io},{1:[3]},{3:5,4:to,5:no,6:io},{3:6,4:to,5:no,6:io},eo([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],so,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Fo,44:Lo,46:Go,50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},eo(gs,[2,5]),{9:47,12:12,13:uo,14:ho,17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Fo,44:Lo,46:Go,50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},eo(gs,[2,7]),eo(gs,[2,8]),eo(gs,[2,14]),{12:48,50:Do,52:Uo,53:Ho},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:hs},{22:55,70:hs},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},eo(gs,[2,29]),eo(gs,[2,30]),{32:[1,61]},{34:[1,62]},eo(gs,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:hs},{22:72,70:hs},{22:73,70:hs},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:hs},{22:88,70:hs},{22:89,70:hs},{22:90,70:hs},eo([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),eo(gs,[2,6]),eo(gs,[2,15]),eo(ys,[2,9],{10:91}),eo(gs,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},eo(gs,[2,21]),{5:[1,95]},{5:[1,96]},eo(gs,[2,24]),eo(gs,[2,25]),eo(gs,[2,26]),eo(gs,[2,27]),eo(gs,[2,28]),eo(gs,[2,31]),eo(gs,[2,32]),eo(vs,so,{7:97}),eo(vs,so,{7:98}),eo(vs,so,{7:99}),eo(ks,so,{40:100,7:101}),eo(Os,so,{42:102,7:103}),eo(Os,so,{7:103,42:104}),eo(Ts,so,{45:105,7:106}),eo(vs,so,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:hs},eo(Xs,[2,69]),eo(Xs,[2,70]),eo(Xs,[2,71]),eo(Xs,[2,72]),eo(Xs,[2,73]),eo(Xs,[2,74]),eo(Xs,[2,75]),eo(Xs,[2,76]),{22:116,70:hs},{22:118,58:117,70:hs},{70:[2,63]},{70:[2,64]},{56:119,79:Ws},{56:121,79:Ws},{56:122,79:Ws},{56:123,79:Ws},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:Do,52:Uo,53:Ho},{5:[1,129]},eo(gs,[2,19]),eo(gs,[2,20]),eo(gs,[2,22]),eo(gs,[2,23]),{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[1,130],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Fo,44:Lo,46:Go,50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[1,131],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Fo,44:Lo,46:Go,50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[1,132],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Fo,44:Lo,46:Go,50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{16:[1,133]},{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[2,46],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Fo,44:Lo,46:Go,49:[1,134],50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{16:[1,135]},{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[2,44],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Fo,44:Lo,46:Go,48:[1,136],50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{16:[1,137]},{16:[1,138]},{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[2,42],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Fo,44:Lo,46:Go,47:[1,139],50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{4:ao,5:lo,8:8,9:10,12:12,13:uo,14:ho,16:[1,140],17:15,18:go,21:mo,22:40,23:yo,24:19,25:20,26:21,27:22,28:23,29:So,30:_o,31:ko,33:Co,35:$o,36:Ro,37:Oo,38:No,39:Mo,41:Bo,43:Fo,44:Lo,46:Go,50:Do,52:Uo,53:Ho,54:Yo,59:qo,60:Jo,61:ps,62:Qo,70:hs},{15:[1,141]},eo(gs,[2,49]),{15:[1,142]},eo(gs,[2,51]),eo(gs,[2,52]),{22:143,70:hs},{22:144,70:hs},{56:145,79:Ws},{56:146,79:Ws},{56:147,79:Ws},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},eo(gs,[2,16]),eo(ys,[2,10]),{12:149,50:Do,52:Uo,53:Ho},eo(ys,[2,12]),eo(ys,[2,13]),eo(gs,[2,18]),eo(gs,[2,34]),eo(gs,[2,35]),eo(gs,[2,36]),eo(gs,[2,37]),{15:[1,150]},eo(gs,[2,38]),{15:[1,151]},eo(gs,[2,39]),eo(gs,[2,40]),{15:[1,152]},eo(gs,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:Ws},{56:156,79:Ws},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:hs},eo(ys,[2,11]),eo(ks,so,{7:101,40:158}),eo(Os,so,{7:103,42:159}),eo(Ts,so,{7:106,45:160}),eo(gs,[2,48]),eo(gs,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(Js,Vs){if(Vs.recoverable)this.trace(Js);else{var El=new Error(Js);throw El.hash=Vs,El}},parse:function(Js){var Vs=this,El=[0],yl=[],Gl=[null],Qs=[],du=this.table,Ol="",Fu=0,ju=0,F1=2,y1=1,r1=Qs.slice.call(arguments,1),$u=Object.create(this.lexer),Kl={yy:{}};for(var Is in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Is)&&(Kl.yy[Is]=this.yy[Is]);$u.setInput(Js,Kl.yy),Kl.yy.lexer=$u,Kl.yy.parser=this,typeof $u.yylloc>"u"&&($u.yylloc={});var Ks=$u.yylloc;Qs.push(Ks);var Bs=$u.options&&$u.options.ranges;typeof Kl.yy.parseError=="function"?this.parseError=Kl.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ds(){var K1;return K1=yl.pop()||$u.lex()||y1,typeof K1!="number"&&(K1 instanceof Array&&(yl=K1,K1=yl.pop()),K1=Vs.symbols_[K1]||K1),K1}for(var Zs,Cl,ba,fu,Lu={},e1,Gu,w1,Zu;;){if(Cl=El[El.length-1],this.defaultActions[Cl]?ba=this.defaultActions[Cl]:((Zs===null||typeof Zs>"u")&&(Zs=Ds()),ba=du[Cl]&&du[Cl][Zs]),typeof ba>"u"||!ba.length||!ba[0]){var L1="";Zu=[];for(e1 in du[Cl])this.terminals_[e1]&&e1>F1&&Zu.push("'"+this.terminals_[e1]+"'");$u.showPosition?L1="Parse error on line "+(Fu+1)+`: `+$u.showPosition()+` Expecting `+Zu.join(", ")+", got '"+(this.terminals_[Zs]||Zs)+"'":L1="Parse error on line "+(Fu+1)+": Unexpected "+(Zs==y1?"end of input":"'"+(this.terminals_[Zs]||Zs)+"'"),this.parseError(L1,{text:$u.match,token:this.terminals_[Zs]||Zs,line:$u.yylineno,loc:Ks,expected:Zu})}if(ba[0]instanceof Array&&ba.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Cl+", token: "+Zs);switch(ba[0]){case 1:El.push(Zs),Gl.push($u.yytext),Qs.push($u.yylloc),El.push(ba[1]),Zs=null,ju=$u.yyleng,Ol=$u.yytext,Fu=$u.yylineno,Ks=$u.yylloc;break;case 2:if(Gu=this.productions_[ba[1]][1],Lu.$=Gl[Gl.length-Gu],Lu._$={first_line:Qs[Qs.length-(Gu||1)].first_line,last_line:Qs[Qs.length-1].last_line,first_column:Qs[Qs.length-(Gu||1)].first_column,last_column:Qs[Qs.length-1].last_column},Bs&&(Lu._$.range=[Qs[Qs.length-(Gu||1)].range[0],Qs[Qs.length-1].range[1]]),fu=this.performAction.apply(Lu,[Ol,ju,Fu,Kl.yy,ba[1],Gl,Qs].concat(r1)),typeof fu<"u")return fu;Gu&&(El=El.slice(0,-1*Gu*2),Gl=Gl.slice(0,-1*Gu),Qs=Qs.slice(0,-1*Gu)),El.push(this.productions_[ba[1]][0]),Gl.push(Lu.$),Qs.push(Lu._$),w1=du[El[El.length-2]][El[El.length-1]],El.push(w1);break;case 3:return!0}}return!0}},qs=function(){var Fs={EOF:1,parseError:function(Vs,El){if(this.yy.parser)this.yy.parser.parseError(Vs,El);else throw new Error(Vs)},setInput:function(Js,Vs){return this.yy=Vs||this.yy||{},this._input=Js,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Js=this._input[0];this.yytext+=Js,this.yyleng++,this.offset++,this.match+=Js,this.matched+=Js;var Vs=Js.match(/(?:\r\n?|\n).*/g);return Vs?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Js},unput:function(Js){var Vs=Js.length,El=Js.split(/(?:\r\n?|\n)/g);this._input=Js+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Vs),this.offset-=Vs;var yl=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),El.length-1&&(this.yylineno-=El.length-1);var Gl=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:El?(El.length===yl.length?this.yylloc.first_column:0)+yl[yl.length-El.length].length-El[0].length:this.yylloc.first_column-Vs},this.options.ranges&&(this.yylloc.range=[Gl[0],Gl[0]+this.yyleng-Vs]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Js){this.unput(this.match.slice(Js))},pastInput:function(){var Js=this.matched.substr(0,this.matched.length-this.match.length);return(Js.length>20?"...":"")+Js.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Js=this.match;return Js.length<20&&(Js+=this._input.substr(0,20-Js.length)),(Js.substr(0,20)+(Js.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Js=this.pastInput(),Vs=new Array(Js.length+1).join("-");return Js+this.upcomingInput()+` @@ -3026,7 +3026,7 @@ Expecting `+Zu.join(", ")+", got '"+(this.terminals_[Zs]||Zs)+"'":L1="Parse erro fill: ${eo.actorBkg}; stroke-width: 2px; } -`,styles$6=getStyles$7,ACTOR_TYPE_WIDTH=18*2,TOP_ACTOR_CLASS="actor-top",BOTTOM_ACTOR_CLASS="actor-bottom",drawRect$2=function(eo,to){return drawRect$4(eo,to)},drawPopup=function(eo,to,no,io,so){if(to.links===void 0||to.links===null||Object.keys(to.links).length===0)return{height:0,width:0};const ao=to.links,lo=to.actorCnt,uo=to.rectData;var ho="none";so&&(ho="block !important");const go=eo.append("g");go.attr("id","actor"+lo+"_popup"),go.attr("class","actorPopupMenu"),go.attr("display",ho);var mo="";uo.class!==void 0&&(mo=" "+uo.class);let yo=uo.width>no?uo.width:no;const So=go.append("rect");if(So.attr("class","actorPopupMenuPanel"+mo),So.attr("x",uo.x),So.attr("y",uo.height),So.attr("fill",uo.fill),So.attr("stroke",uo.stroke),So.attr("width",yo),So.attr("height",uo.height),So.attr("rx",uo.rx),So.attr("ry",uo.ry),ao!=null){var _o=20;for(let $o in ao){var ko=go.append("a"),Co=dist$2.sanitizeUrl(ao[$o]);ko.attr("xlink:href",Co),ko.attr("target","_blank"),_drawMenuItemTextCandidateFunc(io)($o,ko,uo.x+10,uo.height+_o,yo,20,{class:"actor"},io),_o+=30}}return So.attr("height",_o),{height:uo.height+_o,width:yo}},popupMenuToggle=function(eo){return"var pu = document.getElementById('"+eo+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},drawKatex=async function(eo,to,no=null){let io=eo.append("foreignObject");const so=await renderKatex(to.text,getConfig$1$1()),lo=io.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(so).node().getBoundingClientRect();if(io.attr("height",Math.round(lo.height)).attr("width",Math.round(lo.width)),to.class==="noteText"){const uo=eo.node().firstChild;uo.setAttribute("height",lo.height+2*to.textMargin);const ho=uo.getBBox();io.attr("x",Math.round(ho.x+ho.width/2-lo.width/2)).attr("y",Math.round(ho.y+ho.height/2-lo.height/2))}else if(no){let{startx:uo,stopx:ho,starty:go}=no;if(uo>ho){const mo=uo;uo=ho,ho=mo}io.attr("x",Math.round(uo+Math.abs(uo-ho)/2-lo.width/2)),to.class==="loopText"?io.attr("y",Math.round(go)):io.attr("y",Math.round(go-lo.height))}return[io]},drawText$2=function(eo,to){let no=0,io=0;const so=to.text.split(common$1.lineBreakRegex),[ao,lo]=parseFontSize(to.fontSize);let uo=[],ho=0,go=()=>to.y;if(to.valign!==void 0&&to.textMargin!==void 0&&to.textMargin>0)switch(to.valign){case"top":case"start":go=()=>Math.round(to.y+to.textMargin);break;case"middle":case"center":go=()=>Math.round(to.y+(no+io+to.textMargin)/2);break;case"bottom":case"end":go=()=>Math.round(to.y+(no+io+2*to.textMargin)-to.textMargin);break}if(to.anchor!==void 0&&to.textMargin!==void 0&&to.width!==void 0)switch(to.anchor){case"left":case"start":to.x=Math.round(to.x+to.textMargin),to.anchor="start",to.dominantBaseline="middle",to.alignmentBaseline="middle";break;case"middle":case"center":to.x=Math.round(to.x+to.width/2),to.anchor="middle",to.dominantBaseline="middle",to.alignmentBaseline="middle";break;case"right":case"end":to.x=Math.round(to.x+to.width-to.textMargin),to.anchor="end",to.dominantBaseline="middle",to.alignmentBaseline="middle";break}for(let[mo,yo]of so.entries()){to.textMargin!==void 0&&to.textMargin===0&&ao!==void 0&&(ho=mo*ao);const So=eo.append("text");So.attr("x",to.x),So.attr("y",go()),to.anchor!==void 0&&So.attr("text-anchor",to.anchor).attr("dominant-baseline",to.dominantBaseline).attr("alignment-baseline",to.alignmentBaseline),to.fontFamily!==void 0&&So.style("font-family",to.fontFamily),lo!==void 0&&So.style("font-size",lo),to.fontWeight!==void 0&&So.style("font-weight",to.fontWeight),to.fill!==void 0&&So.attr("fill",to.fill),to.class!==void 0&&So.attr("class",to.class),to.dy!==void 0?So.attr("dy",to.dy):ho!==0&&So.attr("dy",ho);const _o=yo||ZERO_WIDTH_SPACE;if(to.tspan){const ko=So.append("tspan");ko.attr("x",to.x),to.fill!==void 0&&ko.attr("fill",to.fill),ko.text(_o)}else So.text(_o);to.valign!==void 0&&to.textMargin!==void 0&&to.textMargin>0&&(io+=(So._groups||So)[0][0].getBBox().height,no=io),uo.push(So)}return uo},drawLabel$2=function(eo,to){function no(so,ao,lo,uo,ho){return so+","+ao+" "+(so+lo)+","+ao+" "+(so+lo)+","+(ao+uo-ho)+" "+(so+lo-ho*1.2)+","+(ao+uo)+" "+so+","+(ao+uo)}const io=eo.append("polygon");return io.attr("points",no(to.x,to.y,to.width,to.height,7)),io.attr("class","labelBox"),to.y=to.y+to.height/2,drawText$2(eo,to),io};let actorCnt=-1;const fixLifeLineHeights=(eo,to,no,io)=>{eo.select&&no.forEach(so=>{const ao=to[so],lo=eo.select("#actor"+ao.actorCnt);!io.mirrorActors&&ao.stopy?lo.attr("y2",ao.stopy+ao.height/2):io.mirrorActors&&lo.attr("y2",ao.stopy)})},drawActorTypeParticipant=async function(eo,to,no,io){const so=io?to.stopy:to.starty,ao=to.x+to.width/2,lo=so+5,uo=eo.append("g").lower();var ho=uo;io||(actorCnt++,Object.keys(to.links||{}).length&&!no.forceMenus&&ho.attr("onclick",popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor","pointer"),ho.append("line").attr("id","actor"+actorCnt).attr("x1",ao).attr("y1",lo).attr("x2",ao).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),ho=uo.append("g"),to.actorCnt=actorCnt,to.links!=null&&ho.attr("id","root-"+actorCnt));const go=getNoteRect$2();var mo="actor";to.properties!=null&&to.properties.class?mo=to.properties.class:go.fill="#eaeaea",io?mo+=` ${BOTTOM_ACTOR_CLASS}`:mo+=` ${TOP_ACTOR_CLASS}`,go.x=to.x,go.y=so,go.width=to.width,go.height=to.height,go.class=mo,go.rx=3,go.ry=3,go.name=to.name;const yo=drawRect$2(ho,go);if(to.rectData=go,to.properties!=null&&to.properties.icon){const _o=to.properties.icon.trim();_o.charAt(0)==="@"?drawEmbeddedImage(ho,go.x+go.width-20,go.y+10,_o.substr(1)):drawImage$1(ho,go.x+go.width-20,go.y+10,_o)}await _drawTextCandidateFunc$2(no,hasKatex(to.description))(to.description,ho,go.x,go.y,go.width,go.height,{class:"actor"},no);let So=to.height;if(yo.node){const _o=yo.node().getBBox();to.height=_o.height,So=_o.height}return So},drawActorTypeActor=async function(eo,to,no,io){const so=io?to.stopy:to.starty,ao=to.x+to.width/2,lo=so+80;eo.lower(),io||(actorCnt++,eo.append("line").attr("id","actor"+actorCnt).attr("x1",ao).attr("y1",lo).attr("x2",ao).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),to.actorCnt=actorCnt);const uo=eo.append("g");let ho="actor-man";io?ho+=` ${BOTTOM_ACTOR_CLASS}`:ho+=` ${TOP_ACTOR_CLASS}`,uo.attr("class",ho),uo.attr("name",to.name);const go=getNoteRect$2();go.x=to.x,go.y=so,go.fill="#eaeaea",go.width=to.width,go.height=to.height,go.class="actor",go.rx=3,go.ry=3,uo.append("line").attr("id","actor-man-torso"+actorCnt).attr("x1",ao).attr("y1",so+25).attr("x2",ao).attr("y2",so+45),uo.append("line").attr("id","actor-man-arms"+actorCnt).attr("x1",ao-ACTOR_TYPE_WIDTH/2).attr("y1",so+33).attr("x2",ao+ACTOR_TYPE_WIDTH/2).attr("y2",so+33),uo.append("line").attr("x1",ao-ACTOR_TYPE_WIDTH/2).attr("y1",so+60).attr("x2",ao).attr("y2",so+45),uo.append("line").attr("x1",ao).attr("y1",so+45).attr("x2",ao+ACTOR_TYPE_WIDTH/2-2).attr("y2",so+60);const mo=uo.append("circle");mo.attr("cx",to.x+to.width/2),mo.attr("cy",so+10),mo.attr("r",15),mo.attr("width",to.width),mo.attr("height",to.height);const yo=uo.node().getBBox();return to.height=yo.height,await _drawTextCandidateFunc$2(no,hasKatex(to.description))(to.description,uo,go.x,go.y+35,go.width,go.height,{class:"actor"},no),to.height},drawActor=async function(eo,to,no,io){switch(to.type){case"actor":return await drawActorTypeActor(eo,to,no,io);case"participant":return await drawActorTypeParticipant(eo,to,no,io)}},drawBox=async function(eo,to,no){const so=eo.append("g");drawBackgroundRect$2(so,to),to.name&&await _drawTextCandidateFunc$2(no)(to.name,so,to.x,to.y+(to.textMaxHeight||0)/2,to.width,0,{class:"text"},no),so.lower()},anchorElement=function(eo){return eo.append("g")},drawActivation=function(eo,to,no,io,so){const ao=getNoteRect$2(),lo=to.anchored;ao.x=to.startx,ao.y=to.starty,ao.class="activation"+so%3,ao.width=to.stopx-to.startx,ao.height=no-to.starty,drawRect$2(lo,ao)},drawLoop=async function(eo,to,no,io){const{boxMargin:so,boxTextMargin:ao,labelBoxHeight:lo,labelBoxWidth:uo,messageFontFamily:ho,messageFontSize:go,messageFontWeight:mo}=io,yo=eo.append("g"),So=function(Co,$o,Ro,Oo){return yo.append("line").attr("x1",Co).attr("y1",$o).attr("x2",Ro).attr("y2",Oo).attr("class","loopLine")};So(to.startx,to.starty,to.stopx,to.starty),So(to.stopx,to.starty,to.stopx,to.stopy),So(to.startx,to.stopy,to.stopx,to.stopy),So(to.startx,to.starty,to.startx,to.stopy),to.sections!==void 0&&to.sections.forEach(function(Co){So(to.startx,Co.y,to.stopx,Co.y).style("stroke-dasharray","3, 3")});let _o=getTextObj$2();_o.text=no,_o.x=to.startx,_o.y=to.starty,_o.fontFamily=ho,_o.fontSize=go,_o.fontWeight=mo,_o.anchor="middle",_o.valign="middle",_o.tspan=!1,_o.width=uo||50,_o.height=lo||20,_o.textMargin=ao,_o.class="labelText",drawLabel$2(yo,_o),_o=getTextObj$1(),_o.text=to.title,_o.x=to.startx+uo/2+(to.stopx-to.startx)/2,_o.y=to.starty+so+ao,_o.anchor="middle",_o.valign="middle",_o.textMargin=ao,_o.class="loopText",_o.fontFamily=ho,_o.fontSize=go,_o.fontWeight=mo,_o.wrap=!0;let ko=hasKatex(_o.text)?await drawKatex(yo,_o,to):drawText$2(yo,_o);if(to.sectionTitles!==void 0){for(const[Co,$o]of Object.entries(to.sectionTitles))if($o.message){_o.text=$o.message,_o.x=to.startx+(to.stopx-to.startx)/2,_o.y=to.sections[Co].y+so+ao,_o.class="loopText",_o.anchor="middle",_o.valign="middle",_o.tspan=!1,_o.fontFamily=ho,_o.fontSize=go,_o.fontWeight=mo,_o.wrap=to.wrap,hasKatex(_o.text)?(to.starty=to.sections[Co].y,await drawKatex(yo,_o,to)):drawText$2(yo,_o);let Ro=Math.round(ko.map(Oo=>(Oo._groups||Oo)[0][0].getBBox().height).reduce((Oo,No)=>Oo+No));to.sections[Co].height+=Ro-(so+ao)}}return to.height=Math.round(to.stopy-to.starty),yo},drawBackgroundRect$2=function(eo,to){drawBackgroundRect$3(eo,to)},insertDatabaseIcon=function(eo){eo.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},insertComputerIcon=function(eo){eo.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},insertClockIcon=function(eo){eo.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},insertArrowHead=function(eo){eo.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},insertArrowFilledHead=function(eo){eo.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},insertSequenceNumber=function(eo){eo.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},insertArrowCrossHead=function(eo){eo.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},getTextObj$1=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},getNoteRect$1=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},_drawTextCandidateFunc$2=function(){function eo(ao,lo,uo,ho,go,mo,yo){const So=lo.append("text").attr("x",uo+go/2).attr("y",ho+mo/2+5).style("text-anchor","middle").text(ao);so(So,yo)}function to(ao,lo,uo,ho,go,mo,yo,So){const{actorFontSize:_o,actorFontFamily:ko,actorFontWeight:Co}=So,[$o,Ro]=parseFontSize(_o),Oo=ao.split(common$1.lineBreakRegex);for(let No=0;Noeo.height||0))+(this.loops.length===0?0:this.loops.map(eo=>eo.height||0).reduce((eo,to)=>eo+to))+(this.messages.length===0?0:this.messages.map(eo=>eo.height||0).reduce((eo,to)=>eo+to))+(this.notes.length===0?0:this.notes.map(eo=>eo.height||0).reduce((eo,to)=>eo+to))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(eo){this.boxes.push(eo)},addActor:function(eo){this.actors.push(eo)},addLoop:function(eo){this.loops.push(eo)},addMessage:function(eo){this.messages.push(eo)},addNote:function(eo){this.notes.push(eo)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,setConf$4(getConfig$2())},updateVal:function(eo,to,no,io){eo[to]===void 0?eo[to]=no:eo[to]=io(no,eo[to])},updateBounds:function(eo,to,no,io){const so=this;let ao=0;function lo(uo){return function(go){ao++;const mo=so.sequenceItems.length-ao+1;so.updateVal(go,"starty",to-mo*conf$4.boxMargin,Math.min),so.updateVal(go,"stopy",io+mo*conf$4.boxMargin,Math.max),so.updateVal(bounds$2.data,"startx",eo-mo*conf$4.boxMargin,Math.min),so.updateVal(bounds$2.data,"stopx",no+mo*conf$4.boxMargin,Math.max),uo!=="activation"&&(so.updateVal(go,"startx",eo-mo*conf$4.boxMargin,Math.min),so.updateVal(go,"stopx",no+mo*conf$4.boxMargin,Math.max),so.updateVal(bounds$2.data,"starty",to-mo*conf$4.boxMargin,Math.min),so.updateVal(bounds$2.data,"stopy",io+mo*conf$4.boxMargin,Math.max))}}this.sequenceItems.forEach(lo()),this.activations.forEach(lo("activation"))},insert:function(eo,to,no,io){const so=common$1.getMin(eo,no),ao=common$1.getMax(eo,no),lo=common$1.getMin(to,io),uo=common$1.getMax(to,io);this.updateVal(bounds$2.data,"startx",so,Math.min),this.updateVal(bounds$2.data,"starty",lo,Math.min),this.updateVal(bounds$2.data,"stopx",ao,Math.max),this.updateVal(bounds$2.data,"stopy",uo,Math.max),this.updateBounds(so,lo,ao,uo)},newActivation:function(eo,to,no){const io=no[eo.from.actor],so=actorActivations(eo.from.actor).length||0,ao=io.x+io.width/2+(so-1)*conf$4.activationWidth/2;this.activations.push({startx:ao,starty:this.verticalPos+2,stopx:ao+conf$4.activationWidth,stopy:void 0,actor:eo.from.actor,anchored:svgDraw$3.anchorElement(to)})},endActivation:function(eo){const to=this.activations.map(function(no){return no.actor}).lastIndexOf(eo.from.actor);return this.activations.splice(to,1)[0]},createLoop:function(eo={message:void 0,wrap:!1,width:void 0},to){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:eo.message,wrap:eo.wrap,width:eo.width,height:0,fill:to}},newLoop:function(eo={message:void 0,wrap:!1,width:void 0},to){this.sequenceItems.push(this.createLoop(eo,to))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},addSectionToLoop:function(eo){const to=this.sequenceItems.pop();to.sections=to.sections||[],to.sectionTitles=to.sectionTitles||[],to.sections.push({y:bounds$2.getVerticalPos(),height:0}),to.sectionTitles.push(eo),this.sequenceItems.push(to)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(eo){this.verticalPos=this.verticalPos+eo,this.data.stopy=common$1.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},drawNote$2=async function(eo,to){bounds$2.bumpVerticalPos(conf$4.boxMargin),to.height=conf$4.boxMargin,to.starty=bounds$2.getVerticalPos();const no=getNoteRect$2();no.x=to.startx,no.y=to.starty,no.width=to.width||conf$4.width,no.class="note";const io=eo.append("g"),so=svgDraw$3.drawRect(io,no),ao=getTextObj$2();ao.x=to.startx,ao.y=to.starty,ao.width=no.width,ao.dy="1em",ao.text=to.message,ao.class="noteText",ao.fontFamily=conf$4.noteFontFamily,ao.fontSize=conf$4.noteFontSize,ao.fontWeight=conf$4.noteFontWeight,ao.anchor=conf$4.noteAlign,ao.textMargin=conf$4.noteMargin,ao.valign="center";const lo=hasKatex(ao.text)?await drawKatex(io,ao):drawText$2(io,ao),uo=Math.round(lo.map(ho=>(ho._groups||ho)[0][0].getBBox().height).reduce((ho,go)=>ho+go));so.attr("height",uo+2*conf$4.noteMargin),to.height+=uo+2*conf$4.noteMargin,bounds$2.bumpVerticalPos(uo+2*conf$4.noteMargin),to.stopy=to.starty+uo+2*conf$4.noteMargin,to.stopx=to.startx+no.width,bounds$2.insert(to.startx,to.starty,to.stopx,to.stopy),bounds$2.models.addNote(to)},messageFont=eo=>({fontFamily:eo.messageFontFamily,fontSize:eo.messageFontSize,fontWeight:eo.messageFontWeight}),noteFont=eo=>({fontFamily:eo.noteFontFamily,fontSize:eo.noteFontSize,fontWeight:eo.noteFontWeight}),actorFont=eo=>({fontFamily:eo.actorFontFamily,fontSize:eo.actorFontSize,fontWeight:eo.actorFontWeight});async function boundMessage(eo,to){bounds$2.bumpVerticalPos(10);const{startx:no,stopx:io,message:so}=to,ao=common$1.splitBreaks(so).length,lo=hasKatex(so),uo=lo?await calculateMathMLDimensions(so,getConfig$2()):utils$1.calculateTextDimensions(so,messageFont(conf$4));if(!lo){const yo=uo.height/ao;to.height+=yo,bounds$2.bumpVerticalPos(yo)}let ho,go=uo.height-10;const mo=uo.width;if(no===io){ho=bounds$2.getVerticalPos()+go,conf$4.rightAngles||(go+=conf$4.boxMargin,ho=bounds$2.getVerticalPos()+go),go+=30;const yo=common$1.getMax(mo/2,conf$4.width/2);bounds$2.insert(no-yo,bounds$2.getVerticalPos()-10+go,io+yo,bounds$2.getVerticalPos()+30+go)}else go+=conf$4.boxMargin,ho=bounds$2.getVerticalPos()+go,bounds$2.insert(no,ho-10,io,ho);return bounds$2.bumpVerticalPos(go),to.height+=go,to.stopy=to.starty+to.height,bounds$2.insert(to.fromBounds,to.starty,to.toBounds,to.stopy),ho}const drawMessage=async function(eo,to,no,io){const{startx:so,stopx:ao,starty:lo,message:uo,type:ho,sequenceIndex:go,sequenceVisible:mo}=to,yo=utils$1.calculateTextDimensions(uo,messageFont(conf$4)),So=getTextObj$2();So.x=so,So.y=lo+10,So.width=ao-so,So.class="messageText",So.dy="1em",So.text=uo,So.fontFamily=conf$4.messageFontFamily,So.fontSize=conf$4.messageFontSize,So.fontWeight=conf$4.messageFontWeight,So.anchor=conf$4.messageAlign,So.valign="center",So.textMargin=conf$4.wrapPadding,So.tspan=!1,hasKatex(So.text)?await drawKatex(eo,So,{startx:so,stopx:ao,starty:no}):drawText$2(eo,So);const _o=yo.width;let ko;so===ao?conf$4.rightAngles?ko=eo.append("path").attr("d",`M ${so},${no} H ${so+common$1.getMax(conf$4.width/2,_o/2)} V ${no+25} H ${so}`):ko=eo.append("path").attr("d","M "+so+","+no+" C "+(so+60)+","+(no-10)+" "+(so+60)+","+(no+30)+" "+so+","+(no+20)):(ko=eo.append("line"),ko.attr("x1",so),ko.attr("y1",no),ko.attr("x2",ao),ko.attr("y2",no)),ho===io.db.LINETYPE.DOTTED||ho===io.db.LINETYPE.DOTTED_CROSS||ho===io.db.LINETYPE.DOTTED_POINT||ho===io.db.LINETYPE.DOTTED_OPEN?(ko.style("stroke-dasharray","3, 3"),ko.attr("class","messageLine1")):ko.attr("class","messageLine0");let Co="";conf$4.arrowMarkerAbsolute&&(Co=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Co=Co.replace(/\(/g,"\\("),Co=Co.replace(/\)/g,"\\)")),ko.attr("stroke-width",2),ko.attr("stroke","none"),ko.style("fill","none"),(ho===io.db.LINETYPE.SOLID||ho===io.db.LINETYPE.DOTTED)&&ko.attr("marker-end","url("+Co+"#arrowhead)"),(ho===io.db.LINETYPE.SOLID_POINT||ho===io.db.LINETYPE.DOTTED_POINT)&&ko.attr("marker-end","url("+Co+"#filled-head)"),(ho===io.db.LINETYPE.SOLID_CROSS||ho===io.db.LINETYPE.DOTTED_CROSS)&&ko.attr("marker-end","url("+Co+"#crosshead)"),(mo||conf$4.showSequenceNumbers)&&(ko.attr("marker-start","url("+Co+"#sequencenumber)"),eo.append("text").attr("x",so).attr("y",no+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(go))},addActorRenderingData=async function(eo,to,no,io,so,ao,lo){let uo=0,ho=0,go,mo=0;for(const yo of io){const So=to[yo],_o=So.box;go&&go!=_o&&(lo||bounds$2.models.addBox(go),ho+=conf$4.boxMargin+go.margin),_o&&_o!=go&&(lo||(_o.x=uo+ho,_o.y=so),ho+=_o.margin),So.width=So.width||conf$4.width,So.height=common$1.getMax(So.height||conf$4.height,conf$4.height),So.margin=So.margin||conf$4.actorMargin,mo=common$1.getMax(mo,So.height),no[So.name]&&(ho+=So.width/2),So.x=uo+ho,So.starty=bounds$2.getVerticalPos(),bounds$2.insert(So.x,so,So.x+So.width,So.height),uo+=So.width+ho,So.box&&(So.box.width=uo+_o.margin-So.box.x),ho=So.margin,go=So.box,bounds$2.models.addActor(So)}go&&!lo&&bounds$2.models.addBox(go),bounds$2.bumpVerticalPos(mo)},drawActors=async function(eo,to,no,io){if(io){let so=0;bounds$2.bumpVerticalPos(conf$4.boxMargin*2);for(const ao of no){const lo=to[ao];lo.stopy||(lo.stopy=bounds$2.getVerticalPos());const uo=await svgDraw$3.drawActor(eo,lo,conf$4,!0);so=common$1.getMax(so,uo)}bounds$2.bumpVerticalPos(so+conf$4.boxMargin)}else for(const so of no){const ao=to[so];await svgDraw$3.drawActor(eo,ao,conf$4,!1)}},drawActorsPopup=function(eo,to,no,io){let so=0,ao=0;for(const lo of no){const uo=to[lo],ho=getRequiredPopupWidth(uo),go=svgDraw$3.drawPopup(eo,uo,ho,conf$4,conf$4.forceMenus,io);go.height>so&&(so=go.height),go.width+uo.x>ao&&(ao=go.width+uo.x)}return{maxHeight:so,maxWidth:ao}},setConf$4=function(eo){assignWithDepth$1(conf$4,eo),eo.fontFamily&&(conf$4.actorFontFamily=conf$4.noteFontFamily=conf$4.messageFontFamily=eo.fontFamily),eo.fontSize&&(conf$4.actorFontSize=conf$4.noteFontSize=conf$4.messageFontSize=eo.fontSize),eo.fontWeight&&(conf$4.actorFontWeight=conf$4.noteFontWeight=conf$4.messageFontWeight=eo.fontWeight)},actorActivations=function(eo){return bounds$2.activations.filter(function(to){return to.actor===eo})},activationBounds=function(eo,to){const no=to[eo],io=actorActivations(eo),so=io.reduce(function(lo,uo){return common$1.getMin(lo,uo.startx)},no.x+no.width/2-1),ao=io.reduce(function(lo,uo){return common$1.getMax(lo,uo.stopx)},no.x+no.width/2+1);return[so,ao]};function adjustLoopHeightForWrap(eo,to,no,io,so){bounds$2.bumpVerticalPos(no);let ao=io;if(to.id&&to.message&&eo[to.id]){const lo=eo[to.id].width,uo=messageFont(conf$4);to.message=utils$1.wrapLabel(`[${to.message}]`,lo-2*conf$4.wrapPadding,uo),to.width=lo,to.wrap=!0;const ho=utils$1.calculateTextDimensions(to.message,uo),go=common$1.getMax(ho.height,conf$4.labelBoxHeight);ao=io+go,log$1.debug(`${go} - ${to.message}`)}so(to),bounds$2.bumpVerticalPos(ao)}function adjustCreatedDestroyedData(eo,to,no,io,so,ao,lo){function uo(go,mo){go.x{gs.add(ys.from),gs.add(ys.to)}),ko=ko.filter(ys=>gs.has(ys))}await addActorRenderingData(go,mo,yo,ko,0,Co,!1);const Mo=await calculateLoopBounds(Co,mo,No,io);svgDraw$3.insertArrowHead(go),svgDraw$3.insertArrowCrossHead(go),svgDraw$3.insertArrowFilledHead(go),svgDraw$3.insertSequenceNumber(go);function Bo(gs,ys){const vs=bounds$2.endActivation(gs);vs.starty+18>ys&&(vs.starty=ys-6,ys+=12),svgDraw$3.drawActivation(go,vs,ys,conf$4,actorActivations(gs.from.actor).length),bounds$2.insert(vs.startx,ys-10,vs.stopx,ys)}let Po=1,Lo=1;const Go=[],Do=[];let Uo=0;for(const gs of Co){let ys,vs,ks;switch(gs.type){case io.db.LINETYPE.NOTE:bounds$2.resetVerticalPos(),vs=gs.noteModel,await drawNote$2(go,vs);break;case io.db.LINETYPE.ACTIVE_START:bounds$2.newActivation(gs,go,mo);break;case io.db.LINETYPE.ACTIVE_END:Bo(gs,bounds$2.getVerticalPos());break;case io.db.LINETYPE.LOOP_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin+conf$4.boxTextMargin,Os=>bounds$2.newLoop(Os));break;case io.db.LINETYPE.LOOP_END:ys=bounds$2.endLoop(),await svgDraw$3.drawLoop(go,ys,"loop",conf$4),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos()),bounds$2.models.addLoop(ys);break;case io.db.LINETYPE.RECT_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin,Os=>bounds$2.newLoop(void 0,Os.message));break;case io.db.LINETYPE.RECT_END:ys=bounds$2.endLoop(),Do.push(ys),bounds$2.models.addLoop(ys),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos());break;case io.db.LINETYPE.OPT_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin+conf$4.boxTextMargin,Os=>bounds$2.newLoop(Os));break;case io.db.LINETYPE.OPT_END:ys=bounds$2.endLoop(),await svgDraw$3.drawLoop(go,ys,"opt",conf$4),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos()),bounds$2.models.addLoop(ys);break;case io.db.LINETYPE.ALT_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin+conf$4.boxTextMargin,Os=>bounds$2.newLoop(Os));break;case io.db.LINETYPE.ALT_ELSE:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin+conf$4.boxTextMargin,conf$4.boxMargin,Os=>bounds$2.addSectionToLoop(Os));break;case io.db.LINETYPE.ALT_END:ys=bounds$2.endLoop(),await svgDraw$3.drawLoop(go,ys,"alt",conf$4),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos()),bounds$2.models.addLoop(ys);break;case io.db.LINETYPE.PAR_START:case io.db.LINETYPE.PAR_OVER_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin+conf$4.boxTextMargin,Os=>bounds$2.newLoop(Os)),bounds$2.saveVerticalPos();break;case io.db.LINETYPE.PAR_AND:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin+conf$4.boxTextMargin,conf$4.boxMargin,Os=>bounds$2.addSectionToLoop(Os));break;case io.db.LINETYPE.PAR_END:ys=bounds$2.endLoop(),await svgDraw$3.drawLoop(go,ys,"par",conf$4),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos()),bounds$2.models.addLoop(ys);break;case io.db.LINETYPE.AUTONUMBER:Po=gs.message.start||Po,Lo=gs.message.step||Lo,gs.message.visible?io.db.enableSequenceNumbers():io.db.disableSequenceNumbers();break;case io.db.LINETYPE.CRITICAL_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin+conf$4.boxTextMargin,Os=>bounds$2.newLoop(Os));break;case io.db.LINETYPE.CRITICAL_OPTION:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin+conf$4.boxTextMargin,conf$4.boxMargin,Os=>bounds$2.addSectionToLoop(Os));break;case io.db.LINETYPE.CRITICAL_END:ys=bounds$2.endLoop(),await svgDraw$3.drawLoop(go,ys,"critical",conf$4),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos()),bounds$2.models.addLoop(ys);break;case io.db.LINETYPE.BREAK_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin+conf$4.boxTextMargin,Os=>bounds$2.newLoop(Os));break;case io.db.LINETYPE.BREAK_END:ys=bounds$2.endLoop(),await svgDraw$3.drawLoop(go,ys,"break",conf$4),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos()),bounds$2.models.addLoop(ys);break;default:try{ks=gs.msgModel,ks.starty=bounds$2.getVerticalPos(),ks.sequenceIndex=Po,ks.sequenceVisible=io.db.showSequenceNumbers();const Os=await boundMessage(go,ks);adjustCreatedDestroyedData(gs,ks,Os,Uo,mo,yo,So),Go.push({messageModel:ks,lineStartY:Os}),bounds$2.models.addMessage(ks)}catch(Os){log$1.error("error while drawing message",Os)}}[io.db.LINETYPE.SOLID_OPEN,io.db.LINETYPE.DOTTED_OPEN,io.db.LINETYPE.SOLID,io.db.LINETYPE.DOTTED,io.db.LINETYPE.SOLID_CROSS,io.db.LINETYPE.DOTTED_CROSS,io.db.LINETYPE.SOLID_POINT,io.db.LINETYPE.DOTTED_POINT].includes(gs.type)&&(Po=Po+Lo),Uo++}log$1.debug("createdActors",yo),log$1.debug("destroyedActors",So),await drawActors(go,mo,ko,!1);for(const gs of Go)await drawMessage(go,gs.messageModel,gs.lineStartY,io);conf$4.mirrorActors&&await drawActors(go,mo,ko,!0),Do.forEach(gs=>svgDraw$3.drawBackgroundRect(go,gs)),fixLifeLineHeights(go,mo,ko,conf$4);for(const gs of bounds$2.models.boxes)gs.height=bounds$2.getVerticalPos()-gs.y,bounds$2.insert(gs.x,gs.y,gs.x+gs.width,gs.height),gs.startx=gs.x,gs.starty=gs.y,gs.stopx=gs.startx+gs.width,gs.stopy=gs.starty+gs.height,gs.stroke="rgb(0,0,0, 0.5)",await svgDraw$3.drawBox(go,gs,conf$4);Ro&&bounds$2.bumpVerticalPos(conf$4.boxMargin);const Ho=drawActorsPopup(go,mo,ko,ho),{bounds:Yo}=bounds$2.getBounds();let qo=Yo.stopy-Yo.starty;qo{const lo=messageFont(conf$4);let uo=ao.actorKeys.reduce((mo,yo)=>mo+=eo[yo].width+(eo[yo].margin||0),0);uo-=2*conf$4.boxTextMargin,ao.wrap&&(ao.name=utils$1.wrapLabel(ao.name,uo-2*conf$4.wrapPadding,lo));const ho=utils$1.calculateTextDimensions(ao.name,lo);so=common$1.getMax(ho.height,so);const go=common$1.getMax(uo,ho.width+2*conf$4.wrapPadding);if(ao.margin=conf$4.boxTextMargin,uoao.textMaxHeight=so),common$1.getMax(io,conf$4.height)}const buildNoteModel=async function(eo,to,no){const io=to[eo.from].x,so=to[eo.to].x,ao=eo.wrap&&eo.message;let lo=hasKatex(eo.message)?await calculateMathMLDimensions(eo.message,getConfig$2()):utils$1.calculateTextDimensions(ao?utils$1.wrapLabel(eo.message,conf$4.width,noteFont(conf$4)):eo.message,noteFont(conf$4));const uo={width:ao?conf$4.width:common$1.getMax(conf$4.width,lo.width+2*conf$4.noteMargin),height:0,startx:to[eo.from].x,stopx:0,starty:0,stopy:0,message:eo.message};return eo.placement===no.db.PLACEMENT.RIGHTOF?(uo.width=ao?common$1.getMax(conf$4.width,lo.width):common$1.getMax(to[eo.from].width/2+to[eo.to].width/2,lo.width+2*conf$4.noteMargin),uo.startx=io+(to[eo.from].width+conf$4.actorMargin)/2):eo.placement===no.db.PLACEMENT.LEFTOF?(uo.width=ao?common$1.getMax(conf$4.width,lo.width+2*conf$4.noteMargin):common$1.getMax(to[eo.from].width/2+to[eo.to].width/2,lo.width+2*conf$4.noteMargin),uo.startx=io-uo.width+(to[eo.from].width-conf$4.actorMargin)/2):eo.to===eo.from?(lo=utils$1.calculateTextDimensions(ao?utils$1.wrapLabel(eo.message,common$1.getMax(conf$4.width,to[eo.from].width),noteFont(conf$4)):eo.message,noteFont(conf$4)),uo.width=ao?common$1.getMax(conf$4.width,to[eo.from].width):common$1.getMax(to[eo.from].width,conf$4.width,lo.width+2*conf$4.noteMargin),uo.startx=io+(to[eo.from].width-uo.width)/2):(uo.width=Math.abs(io+to[eo.from].width/2-(so+to[eo.to].width/2))+conf$4.actorMargin,uo.startx=io2,yo=Co=>uo?-Co:Co;eo.from===eo.to?go=ho:(eo.activate&&!mo&&(go+=yo(conf$4.activationWidth/2-1)),[no.db.LINETYPE.SOLID_OPEN,no.db.LINETYPE.DOTTED_OPEN].includes(eo.type)||(go+=yo(3)));const So=[io,so,ao,lo],_o=Math.abs(ho-go);eo.wrap&&eo.message&&(eo.message=utils$1.wrapLabel(eo.message,common$1.getMax(_o+2*conf$4.wrapPadding,conf$4.width),messageFont(conf$4)));const ko=utils$1.calculateTextDimensions(eo.message,messageFont(conf$4));return{width:common$1.getMax(eo.wrap?0:ko.width+2*conf$4.wrapPadding,_o+2*conf$4.wrapPadding,conf$4.width),height:0,startx:ho,stopx:go,starty:0,stopy:0,message:eo.message,type:eo.type,wrap:eo.wrap,fromBounds:Math.min.apply(null,So),toBounds:Math.max.apply(null,So)}},calculateLoopBounds=async function(eo,to,no,io){const so={},ao=[];let lo,uo,ho;for(const go of eo){switch(go.id=utils$1.random({length:10}),go.type){case io.db.LINETYPE.LOOP_START:case io.db.LINETYPE.ALT_START:case io.db.LINETYPE.OPT_START:case io.db.LINETYPE.PAR_START:case io.db.LINETYPE.PAR_OVER_START:case io.db.LINETYPE.CRITICAL_START:case io.db.LINETYPE.BREAK_START:ao.push({id:go.id,msg:go.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case io.db.LINETYPE.ALT_ELSE:case io.db.LINETYPE.PAR_AND:case io.db.LINETYPE.CRITICAL_OPTION:go.message&&(lo=ao.pop(),so[lo.id]=lo,so[go.id]=lo,ao.push(lo));break;case io.db.LINETYPE.LOOP_END:case io.db.LINETYPE.ALT_END:case io.db.LINETYPE.OPT_END:case io.db.LINETYPE.PAR_END:case io.db.LINETYPE.CRITICAL_END:case io.db.LINETYPE.BREAK_END:lo=ao.pop(),so[lo.id]=lo;break;case io.db.LINETYPE.ACTIVE_START:{const yo=to[go.from?go.from.actor:go.to.actor],So=actorActivations(go.from?go.from.actor:go.to.actor).length,_o=yo.x+yo.width/2+(So-1)*conf$4.activationWidth/2,ko={startx:_o,stopx:_o+conf$4.activationWidth,actor:go.from.actor,enabled:!0};bounds$2.activations.push(ko)}break;case io.db.LINETYPE.ACTIVE_END:{const yo=bounds$2.activations.map(So=>So.actor).lastIndexOf(go.from.actor);delete bounds$2.activations.splice(yo,1)[0]}break}go.placement!==void 0?(uo=await buildNoteModel(go,to,io),go.noteModel=uo,ao.forEach(yo=>{lo=yo,lo.from=common$1.getMin(lo.from,uo.startx),lo.to=common$1.getMax(lo.to,uo.startx+uo.width),lo.width=common$1.getMax(lo.width,Math.abs(lo.from-lo.to))-conf$4.labelBoxWidth})):(ho=buildMessageModel(go,to,io),go.msgModel=ho,ho.startx&&ho.stopx&&ao.length>0&&ao.forEach(yo=>{if(lo=yo,ho.startx===ho.stopx){const So=to[go.from],_o=to[go.to];lo.from=common$1.getMin(So.x-ho.width/2,So.x-So.width/2,lo.from),lo.to=common$1.getMax(_o.x+ho.width/2,_o.x+So.width/2,lo.to),lo.width=common$1.getMax(lo.width,Math.abs(lo.to-lo.from))-conf$4.labelBoxWidth}else lo.from=common$1.getMin(ho.startx,lo.from),lo.to=common$1.getMax(ho.stopx,lo.to),lo.width=common$1.getMax(lo.width,ho.width)-conf$4.labelBoxWidth}))}return bounds$2.activations=[],log$1.debug("Loop type widths:",so),so},renderer$b={bounds:bounds$2,drawActors,drawActorsPopup,setConf:setConf$4,draw:draw$a},diagram$a={parser:parser$1$7,db:db$8,renderer:renderer$b,styles:styles$6,init:({wrap:eo})=>{db$8.setWrap(eo)}},sequenceDiagramAcc0e65c=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$a},Symbol.toStringTag,{value:"Module"}));var parser$7=function(){var eo=function(r1,$u,Kl,Is){for(Kl=Kl||{},Is=r1.length;Is--;Kl[r1[Is]]=$u);return Kl},to=[1,17],no=[1,18],io=[1,19],so=[1,39],ao=[1,40],lo=[1,25],uo=[1,23],ho=[1,24],go=[1,31],mo=[1,32],yo=[1,33],So=[1,34],_o=[1,35],ko=[1,36],Co=[1,26],$o=[1,27],Ro=[1,28],Oo=[1,29],No=[1,43],Mo=[1,30],Bo=[1,42],Po=[1,44],Lo=[1,41],Go=[1,45],Do=[1,9],Uo=[1,8,9],Ho=[1,56],Yo=[1,57],qo=[1,58],Jo=[1,59],ps=[1,60],Qo=[1,61],hs=[1,62],gs=[1,8,9,39],ys=[1,74],vs=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],ks=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],Os=[13,74,80,95,97,98],Ts=[13,64,65,74,80,95,97,98],Xs=[13,59,60,61,62,63,74,80,95,97,98],Ws=[1,93],Ps=[1,110],qs=[1,108],ga=[1,102],Fs=[1,103],Js=[1,104],Vs=[1,105],El=[1,106],yl=[1,107],Gl=[1,109],Qs=[1,8,9,37,39,42],du=[1,8,9,21],Ol=[1,8,9,78],Fu=[1,8,9,21,73,74,78,80,81,82,83,84,85],ju={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function($u,Kl,Is,Ks,Bs,Ds,Zs){var Cl=Ds.length-1;switch(Bs){case 8:this.$=Ds[Cl-1];break;case 9:case 11:case 12:this.$=Ds[Cl];break;case 10:case 13:this.$=Ds[Cl-1]+Ds[Cl];break;case 14:case 15:this.$=Ds[Cl-1]+"~"+Ds[Cl]+"~";break;case 16:Ks.addRelation(Ds[Cl]);break;case 17:Ds[Cl-1].title=Ks.cleanupLabel(Ds[Cl]),Ks.addRelation(Ds[Cl-1]);break;case 27:this.$=Ds[Cl].trim(),Ks.setAccTitle(this.$);break;case 28:case 29:this.$=Ds[Cl].trim(),Ks.setAccDescription(this.$);break;case 30:Ks.addClassesToNamespace(Ds[Cl-3],Ds[Cl-1]);break;case 31:Ks.addClassesToNamespace(Ds[Cl-4],Ds[Cl-1]);break;case 32:this.$=Ds[Cl],Ks.addNamespace(Ds[Cl]);break;case 33:this.$=[Ds[Cl]];break;case 34:this.$=[Ds[Cl-1]];break;case 35:Ds[Cl].unshift(Ds[Cl-2]),this.$=Ds[Cl];break;case 37:Ks.setCssClass(Ds[Cl-2],Ds[Cl]);break;case 38:Ks.addMembers(Ds[Cl-3],Ds[Cl-1]);break;case 39:Ks.setCssClass(Ds[Cl-5],Ds[Cl-3]),Ks.addMembers(Ds[Cl-5],Ds[Cl-1]);break;case 40:this.$=Ds[Cl],Ks.addClass(Ds[Cl]);break;case 41:this.$=Ds[Cl-1],Ks.addClass(Ds[Cl-1]),Ks.setClassLabel(Ds[Cl-1],Ds[Cl]);break;case 42:Ks.addAnnotation(Ds[Cl],Ds[Cl-2]);break;case 43:this.$=[Ds[Cl]];break;case 44:Ds[Cl].push(Ds[Cl-1]),this.$=Ds[Cl];break;case 45:break;case 46:Ks.addMember(Ds[Cl-1],Ks.cleanupLabel(Ds[Cl]));break;case 47:break;case 48:break;case 49:this.$={id1:Ds[Cl-2],id2:Ds[Cl],relation:Ds[Cl-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:Ds[Cl-3],id2:Ds[Cl],relation:Ds[Cl-1],relationTitle1:Ds[Cl-2],relationTitle2:"none"};break;case 51:this.$={id1:Ds[Cl-3],id2:Ds[Cl],relation:Ds[Cl-2],relationTitle1:"none",relationTitle2:Ds[Cl-1]};break;case 52:this.$={id1:Ds[Cl-4],id2:Ds[Cl],relation:Ds[Cl-2],relationTitle1:Ds[Cl-3],relationTitle2:Ds[Cl-1]};break;case 53:Ks.addNote(Ds[Cl],Ds[Cl-1]);break;case 54:Ks.addNote(Ds[Cl]);break;case 55:Ks.setDirection("TB");break;case 56:Ks.setDirection("BT");break;case 57:Ks.setDirection("RL");break;case 58:Ks.setDirection("LR");break;case 59:this.$={type1:Ds[Cl-2],type2:Ds[Cl],lineType:Ds[Cl-1]};break;case 60:this.$={type1:"none",type2:Ds[Cl],lineType:Ds[Cl-1]};break;case 61:this.$={type1:Ds[Cl-1],type2:"none",lineType:Ds[Cl]};break;case 62:this.$={type1:"none",type2:"none",lineType:Ds[Cl]};break;case 63:this.$=Ks.relationType.AGGREGATION;break;case 64:this.$=Ks.relationType.EXTENSION;break;case 65:this.$=Ks.relationType.COMPOSITION;break;case 66:this.$=Ks.relationType.DEPENDENCY;break;case 67:this.$=Ks.relationType.LOLLIPOP;break;case 68:this.$=Ks.lineType.LINE;break;case 69:this.$=Ks.lineType.DOTTED_LINE;break;case 70:case 76:this.$=Ds[Cl-2],Ks.setClickEvent(Ds[Cl-1],Ds[Cl]);break;case 71:case 77:this.$=Ds[Cl-3],Ks.setClickEvent(Ds[Cl-2],Ds[Cl-1]),Ks.setTooltip(Ds[Cl-2],Ds[Cl]);break;case 72:this.$=Ds[Cl-2],Ks.setLink(Ds[Cl-1],Ds[Cl]);break;case 73:this.$=Ds[Cl-3],Ks.setLink(Ds[Cl-2],Ds[Cl-1],Ds[Cl]);break;case 74:this.$=Ds[Cl-3],Ks.setLink(Ds[Cl-2],Ds[Cl-1]),Ks.setTooltip(Ds[Cl-2],Ds[Cl]);break;case 75:this.$=Ds[Cl-4],Ks.setLink(Ds[Cl-3],Ds[Cl-2],Ds[Cl]),Ks.setTooltip(Ds[Cl-3],Ds[Cl-1]);break;case 78:this.$=Ds[Cl-3],Ks.setClickEvent(Ds[Cl-2],Ds[Cl-1],Ds[Cl]);break;case 79:this.$=Ds[Cl-4],Ks.setClickEvent(Ds[Cl-3],Ds[Cl-2],Ds[Cl-1]),Ks.setTooltip(Ds[Cl-3],Ds[Cl]);break;case 80:this.$=Ds[Cl-3],Ks.setLink(Ds[Cl-2],Ds[Cl]);break;case 81:this.$=Ds[Cl-4],Ks.setLink(Ds[Cl-3],Ds[Cl-1],Ds[Cl]);break;case 82:this.$=Ds[Cl-4],Ks.setLink(Ds[Cl-3],Ds[Cl-1]),Ks.setTooltip(Ds[Cl-3],Ds[Cl]);break;case 83:this.$=Ds[Cl-5],Ks.setLink(Ds[Cl-4],Ds[Cl-2],Ds[Cl]),Ks.setTooltip(Ds[Cl-4],Ds[Cl-1]);break;case 84:this.$=Ds[Cl-2],Ks.setCssStyle(Ds[Cl-1],Ds[Cl]);break;case 85:Ks.setCssClass(Ds[Cl-1],Ds[Cl]);break;case 86:this.$=[Ds[Cl]];break;case 87:Ds[Cl-2].push(Ds[Cl]),this.$=Ds[Cl-2];break;case 89:this.$=Ds[Cl-1]+Ds[Cl];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:to,33:no,35:io,36:21,40:so,41:22,44:ao,45:lo,47:uo,48:ho,50:go,52:mo,53:yo,54:So,55:_o,56:ko,66:Co,67:$o,69:Ro,73:Oo,74:No,76:Mo,80:Bo,95:Po,97:Lo,98:Go},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},eo(Do,[2,5],{8:[1,46]}),{8:[1,47]},eo(Uo,[2,16],{21:[1,48]}),eo(Uo,[2,18]),eo(Uo,[2,19]),eo(Uo,[2,20]),eo(Uo,[2,21]),eo(Uo,[2,22]),eo(Uo,[2,23]),eo(Uo,[2,24]),eo(Uo,[2,25]),eo(Uo,[2,26]),{32:[1,49]},{34:[1,50]},eo(Uo,[2,29]),eo(Uo,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Ho,60:Yo,61:qo,62:Jo,63:ps,64:Qo,65:hs}),{37:[1,63]},eo(gs,[2,36],{37:[1,65],42:[1,64]}),eo(Uo,[2,47]),eo(Uo,[2,48]),{16:66,74:No,80:Bo,95:Po,97:Lo},{16:37,17:67,18:38,74:No,80:Bo,95:Po,97:Lo,98:Go},{16:37,17:68,18:38,74:No,80:Bo,95:Po,97:Lo,98:Go},{16:37,17:69,18:38,74:No,80:Bo,95:Po,97:Lo,98:Go},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:No,80:Bo,95:Po,97:Lo,98:Go},{13:ys,51:73},eo(Uo,[2,55]),eo(Uo,[2,56]),eo(Uo,[2,57]),eo(Uo,[2,58]),eo(vs,[2,11],{16:37,18:38,17:75,19:[1,76],74:No,80:Bo,95:Po,97:Lo,98:Go}),eo(vs,[2,12],{19:[1,77]}),{15:78,16:79,74:No,80:Bo,95:Po,97:Lo},{16:37,17:80,18:38,74:No,80:Bo,95:Po,97:Lo,98:Go},eo(ks,[2,112]),eo(ks,[2,113]),eo(ks,[2,114]),eo(ks,[2,115]),eo([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),eo(Do,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:to,33:no,35:io,40:so,44:ao,45:lo,47:uo,48:ho,50:go,52:mo,53:yo,54:So,55:_o,56:ko,66:Co,67:$o,69:Ro,73:Oo,74:No,76:Mo,80:Bo,95:Po,97:Lo,98:Go}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:to,33:no,35:io,36:21,40:so,41:22,44:ao,45:lo,47:uo,48:ho,50:go,52:mo,53:yo,54:So,55:_o,56:ko,66:Co,67:$o,69:Ro,73:Oo,74:No,76:Mo,80:Bo,95:Po,97:Lo,98:Go},eo(Uo,[2,17]),eo(Uo,[2,27]),eo(Uo,[2,28]),{13:[1,84],16:37,17:83,18:38,74:No,80:Bo,95:Po,97:Lo,98:Go},{49:85,57:54,58:55,59:Ho,60:Yo,61:qo,62:Jo,63:ps,64:Qo,65:hs},eo(Uo,[2,46]),{58:86,64:Qo,65:hs},eo(Os,[2,62],{57:87,59:Ho,60:Yo,61:qo,62:Jo,63:ps}),eo(Ts,[2,63]),eo(Ts,[2,64]),eo(Ts,[2,65]),eo(Ts,[2,66]),eo(Ts,[2,67]),eo(Xs,[2,68]),eo(Xs,[2,69]),{8:[1,89],23:90,38:88,41:22,44:ao},{16:91,74:No,80:Bo,95:Po,97:Lo},{43:92,47:Ws},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Ps,73:qs,74:ga,75:99,77:100,79:101,80:Fs,81:Js,82:Vs,83:El,84:yl,85:Gl},{74:[1,111]},{13:ys,51:112},eo(Uo,[2,54]),eo(Uo,[2,117]),eo(vs,[2,13]),eo(vs,[2,14]),eo(vs,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:No,80:Bo,95:Po,97:Lo},eo(Qs,[2,40],{11:114,12:[1,115]}),eo(Do,[2,7]),{9:[1,116]},eo(du,[2,49]),{16:37,17:117,18:38,74:No,80:Bo,95:Po,97:Lo,98:Go},{13:[1,119],16:37,17:118,18:38,74:No,80:Bo,95:Po,97:Lo,98:Go},eo(Os,[2,61],{57:120,59:Ho,60:Yo,61:qo,62:Jo,63:ps}),eo(Os,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:ao},{8:[1,123],39:[2,33]},eo(gs,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:Ws},{16:37,17:127,18:38,74:No,80:Bo,95:Po,97:Lo,98:Go},eo(Uo,[2,70],{13:[1,128]}),eo(Uo,[2,72],{13:[1,130],68:[1,129]}),eo(Uo,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},eo(Uo,[2,84],{78:[1,134]}),eo(Ol,[2,86],{79:135,21:Ps,73:qs,74:ga,80:Fs,81:Js,82:Vs,83:El,84:yl,85:Gl}),eo(Fu,[2,88]),eo(Fu,[2,90]),eo(Fu,[2,91]),eo(Fu,[2,92]),eo(Fu,[2,93]),eo(Fu,[2,94]),eo(Fu,[2,95]),eo(Fu,[2,96]),eo(Fu,[2,97]),eo(Fu,[2,98]),eo(Uo,[2,85]),eo(Uo,[2,53]),{37:[2,10]},eo(Qs,[2,41]),{13:[1,136]},{1:[2,4]},eo(du,[2,51]),eo(du,[2,50]),{16:37,17:137,18:38,74:No,80:Bo,95:Po,97:Lo,98:Go},eo(Os,[2,59]),eo(Uo,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:ao},{43:140,47:Ws},eo(gs,[2,38]),{39:[2,44]},eo(Uo,[2,42]),eo(Uo,[2,71]),eo(Uo,[2,73]),eo(Uo,[2,74],{68:[1,141]}),eo(Uo,[2,77]),eo(Uo,[2,78],{13:[1,142]}),eo(Uo,[2,80],{13:[1,144],68:[1,143]}),{21:Ps,73:qs,74:ga,77:145,79:101,80:Fs,81:Js,82:Vs,83:El,84:yl,85:Gl},eo(Fu,[2,89]),{14:[1,146]},eo(du,[2,52]),eo(Uo,[2,31]),{39:[2,35]},{39:[1,147]},eo(Uo,[2,75]),eo(Uo,[2,79]),eo(Uo,[2,81]),eo(Uo,[2,82],{68:[1,148]}),eo(Ol,[2,87],{79:135,21:Ps,73:qs,74:ga,80:Fs,81:Js,82:Vs,83:El,84:yl,85:Gl}),eo(Qs,[2,8]),eo(gs,[2,39]),eo(Uo,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function($u,Kl){if(Kl.recoverable)this.trace($u);else{var Is=new Error($u);throw Is.hash=Kl,Is}},parse:function($u){var Kl=this,Is=[0],Ks=[],Bs=[null],Ds=[],Zs=this.table,Cl="",ba=0,fu=0,Lu=2,e1=1,Gu=Ds.slice.call(arguments,1),w1=Object.create(this.lexer),Zu={yy:{}};for(var L1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L1)&&(Zu.yy[L1]=this.yy[L1]);w1.setInput($u,Zu.yy),Zu.yy.lexer=w1,Zu.yy.parser=this,typeof w1.yylloc>"u"&&(w1.yylloc={});var K1=w1.yylloc;Ds.push(K1);var yp=w1.options&&w1.options.ranges;typeof Zu.yy.parseError=="function"?this.parseError=Zu.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wp(){var P0;return P0=Ks.pop()||w1.lex()||e1,typeof P0!="number"&&(P0 instanceof Array&&(Ks=P0,P0=Ks.pop()),P0=Kl.symbols_[P0]||P0),P0}for(var j0,h0,cp,k0,ap={},x0,b0,P1,c1;;){if(h0=Is[Is.length-1],this.defaultActions[h0]?cp=this.defaultActions[h0]:((j0===null||typeof j0>"u")&&(j0=wp()),cp=Zs[h0]&&Zs[h0][j0]),typeof cp>"u"||!cp.length||!cp[0]){var V0="";c1=[];for(x0 in Zs[h0])this.terminals_[x0]&&x0>Lu&&c1.push("'"+this.terminals_[x0]+"'");w1.showPosition?V0="Parse error on line "+(ba+1)+`: +`,styles$6=getStyles$7,ACTOR_TYPE_WIDTH=18*2,TOP_ACTOR_CLASS="actor-top",BOTTOM_ACTOR_CLASS="actor-bottom",drawRect$2=function(eo,to){return drawRect$4(eo,to)},drawPopup=function(eo,to,no,io,so){if(to.links===void 0||to.links===null||Object.keys(to.links).length===0)return{height:0,width:0};const ao=to.links,lo=to.actorCnt,uo=to.rectData;var ho="none";so&&(ho="block !important");const go=eo.append("g");go.attr("id","actor"+lo+"_popup"),go.attr("class","actorPopupMenu"),go.attr("display",ho);var mo="";uo.class!==void 0&&(mo=" "+uo.class);let yo=uo.width>no?uo.width:no;const So=go.append("rect");if(So.attr("class","actorPopupMenuPanel"+mo),So.attr("x",uo.x),So.attr("y",uo.height),So.attr("fill",uo.fill),So.attr("stroke",uo.stroke),So.attr("width",yo),So.attr("height",uo.height),So.attr("rx",uo.rx),So.attr("ry",uo.ry),ao!=null){var _o=20;for(let $o in ao){var ko=go.append("a"),Co=dist$2.sanitizeUrl(ao[$o]);ko.attr("xlink:href",Co),ko.attr("target","_blank"),_drawMenuItemTextCandidateFunc(io)($o,ko,uo.x+10,uo.height+_o,yo,20,{class:"actor"},io),_o+=30}}return So.attr("height",_o),{height:uo.height+_o,width:yo}},popupMenuToggle=function(eo){return"var pu = document.getElementById('"+eo+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},drawKatex=async function(eo,to,no=null){let io=eo.append("foreignObject");const so=await renderKatex(to.text,getConfig$1$1()),lo=io.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(so).node().getBoundingClientRect();if(io.attr("height",Math.round(lo.height)).attr("width",Math.round(lo.width)),to.class==="noteText"){const uo=eo.node().firstChild;uo.setAttribute("height",lo.height+2*to.textMargin);const ho=uo.getBBox();io.attr("x",Math.round(ho.x+ho.width/2-lo.width/2)).attr("y",Math.round(ho.y+ho.height/2-lo.height/2))}else if(no){let{startx:uo,stopx:ho,starty:go}=no;if(uo>ho){const mo=uo;uo=ho,ho=mo}io.attr("x",Math.round(uo+Math.abs(uo-ho)/2-lo.width/2)),to.class==="loopText"?io.attr("y",Math.round(go)):io.attr("y",Math.round(go-lo.height))}return[io]},drawText$2=function(eo,to){let no=0,io=0;const so=to.text.split(common$1.lineBreakRegex),[ao,lo]=parseFontSize(to.fontSize);let uo=[],ho=0,go=()=>to.y;if(to.valign!==void 0&&to.textMargin!==void 0&&to.textMargin>0)switch(to.valign){case"top":case"start":go=()=>Math.round(to.y+to.textMargin);break;case"middle":case"center":go=()=>Math.round(to.y+(no+io+to.textMargin)/2);break;case"bottom":case"end":go=()=>Math.round(to.y+(no+io+2*to.textMargin)-to.textMargin);break}if(to.anchor!==void 0&&to.textMargin!==void 0&&to.width!==void 0)switch(to.anchor){case"left":case"start":to.x=Math.round(to.x+to.textMargin),to.anchor="start",to.dominantBaseline="middle",to.alignmentBaseline="middle";break;case"middle":case"center":to.x=Math.round(to.x+to.width/2),to.anchor="middle",to.dominantBaseline="middle",to.alignmentBaseline="middle";break;case"right":case"end":to.x=Math.round(to.x+to.width-to.textMargin),to.anchor="end",to.dominantBaseline="middle",to.alignmentBaseline="middle";break}for(let[mo,yo]of so.entries()){to.textMargin!==void 0&&to.textMargin===0&&ao!==void 0&&(ho=mo*ao);const So=eo.append("text");So.attr("x",to.x),So.attr("y",go()),to.anchor!==void 0&&So.attr("text-anchor",to.anchor).attr("dominant-baseline",to.dominantBaseline).attr("alignment-baseline",to.alignmentBaseline),to.fontFamily!==void 0&&So.style("font-family",to.fontFamily),lo!==void 0&&So.style("font-size",lo),to.fontWeight!==void 0&&So.style("font-weight",to.fontWeight),to.fill!==void 0&&So.attr("fill",to.fill),to.class!==void 0&&So.attr("class",to.class),to.dy!==void 0?So.attr("dy",to.dy):ho!==0&&So.attr("dy",ho);const _o=yo||ZERO_WIDTH_SPACE;if(to.tspan){const ko=So.append("tspan");ko.attr("x",to.x),to.fill!==void 0&&ko.attr("fill",to.fill),ko.text(_o)}else So.text(_o);to.valign!==void 0&&to.textMargin!==void 0&&to.textMargin>0&&(io+=(So._groups||So)[0][0].getBBox().height,no=io),uo.push(So)}return uo},drawLabel$2=function(eo,to){function no(so,ao,lo,uo,ho){return so+","+ao+" "+(so+lo)+","+ao+" "+(so+lo)+","+(ao+uo-ho)+" "+(so+lo-ho*1.2)+","+(ao+uo)+" "+so+","+(ao+uo)}const io=eo.append("polygon");return io.attr("points",no(to.x,to.y,to.width,to.height,7)),io.attr("class","labelBox"),to.y=to.y+to.height/2,drawText$2(eo,to),io};let actorCnt=-1;const fixLifeLineHeights=(eo,to,no,io)=>{eo.select&&no.forEach(so=>{const ao=to[so],lo=eo.select("#actor"+ao.actorCnt);!io.mirrorActors&&ao.stopy?lo.attr("y2",ao.stopy+ao.height/2):io.mirrorActors&&lo.attr("y2",ao.stopy)})},drawActorTypeParticipant=async function(eo,to,no,io){const so=io?to.stopy:to.starty,ao=to.x+to.width/2,lo=so+5,uo=eo.append("g").lower();var ho=uo;io||(actorCnt++,Object.keys(to.links||{}).length&&!no.forceMenus&&ho.attr("onclick",popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor","pointer"),ho.append("line").attr("id","actor"+actorCnt).attr("x1",ao).attr("y1",lo).attr("x2",ao).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),ho=uo.append("g"),to.actorCnt=actorCnt,to.links!=null&&ho.attr("id","root-"+actorCnt));const go=getNoteRect$2();var mo="actor";to.properties!=null&&to.properties.class?mo=to.properties.class:go.fill="#eaeaea",io?mo+=` ${BOTTOM_ACTOR_CLASS}`:mo+=` ${TOP_ACTOR_CLASS}`,go.x=to.x,go.y=so,go.width=to.width,go.height=to.height,go.class=mo,go.rx=3,go.ry=3,go.name=to.name;const yo=drawRect$2(ho,go);if(to.rectData=go,to.properties!=null&&to.properties.icon){const _o=to.properties.icon.trim();_o.charAt(0)==="@"?drawEmbeddedImage(ho,go.x+go.width-20,go.y+10,_o.substr(1)):drawImage$1(ho,go.x+go.width-20,go.y+10,_o)}await _drawTextCandidateFunc$2(no,hasKatex(to.description))(to.description,ho,go.x,go.y,go.width,go.height,{class:"actor"},no);let So=to.height;if(yo.node){const _o=yo.node().getBBox();to.height=_o.height,So=_o.height}return So},drawActorTypeActor=async function(eo,to,no,io){const so=io?to.stopy:to.starty,ao=to.x+to.width/2,lo=so+80;eo.lower(),io||(actorCnt++,eo.append("line").attr("id","actor"+actorCnt).attr("x1",ao).attr("y1",lo).attr("x2",ao).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),to.actorCnt=actorCnt);const uo=eo.append("g");let ho="actor-man";io?ho+=` ${BOTTOM_ACTOR_CLASS}`:ho+=` ${TOP_ACTOR_CLASS}`,uo.attr("class",ho),uo.attr("name",to.name);const go=getNoteRect$2();go.x=to.x,go.y=so,go.fill="#eaeaea",go.width=to.width,go.height=to.height,go.class="actor",go.rx=3,go.ry=3,uo.append("line").attr("id","actor-man-torso"+actorCnt).attr("x1",ao).attr("y1",so+25).attr("x2",ao).attr("y2",so+45),uo.append("line").attr("id","actor-man-arms"+actorCnt).attr("x1",ao-ACTOR_TYPE_WIDTH/2).attr("y1",so+33).attr("x2",ao+ACTOR_TYPE_WIDTH/2).attr("y2",so+33),uo.append("line").attr("x1",ao-ACTOR_TYPE_WIDTH/2).attr("y1",so+60).attr("x2",ao).attr("y2",so+45),uo.append("line").attr("x1",ao).attr("y1",so+45).attr("x2",ao+ACTOR_TYPE_WIDTH/2-2).attr("y2",so+60);const mo=uo.append("circle");mo.attr("cx",to.x+to.width/2),mo.attr("cy",so+10),mo.attr("r",15),mo.attr("width",to.width),mo.attr("height",to.height);const yo=uo.node().getBBox();return to.height=yo.height,await _drawTextCandidateFunc$2(no,hasKatex(to.description))(to.description,uo,go.x,go.y+35,go.width,go.height,{class:"actor"},no),to.height},drawActor=async function(eo,to,no,io){switch(to.type){case"actor":return await drawActorTypeActor(eo,to,no,io);case"participant":return await drawActorTypeParticipant(eo,to,no,io)}},drawBox=async function(eo,to,no){const so=eo.append("g");drawBackgroundRect$2(so,to),to.name&&await _drawTextCandidateFunc$2(no)(to.name,so,to.x,to.y+(to.textMaxHeight||0)/2,to.width,0,{class:"text"},no),so.lower()},anchorElement=function(eo){return eo.append("g")},drawActivation=function(eo,to,no,io,so){const ao=getNoteRect$2(),lo=to.anchored;ao.x=to.startx,ao.y=to.starty,ao.class="activation"+so%3,ao.width=to.stopx-to.startx,ao.height=no-to.starty,drawRect$2(lo,ao)},drawLoop=async function(eo,to,no,io){const{boxMargin:so,boxTextMargin:ao,labelBoxHeight:lo,labelBoxWidth:uo,messageFontFamily:ho,messageFontSize:go,messageFontWeight:mo}=io,yo=eo.append("g"),So=function(Co,$o,Ro,Oo){return yo.append("line").attr("x1",Co).attr("y1",$o).attr("x2",Ro).attr("y2",Oo).attr("class","loopLine")};So(to.startx,to.starty,to.stopx,to.starty),So(to.stopx,to.starty,to.stopx,to.stopy),So(to.startx,to.stopy,to.stopx,to.stopy),So(to.startx,to.starty,to.startx,to.stopy),to.sections!==void 0&&to.sections.forEach(function(Co){So(to.startx,Co.y,to.stopx,Co.y).style("stroke-dasharray","3, 3")});let _o=getTextObj$2();_o.text=no,_o.x=to.startx,_o.y=to.starty,_o.fontFamily=ho,_o.fontSize=go,_o.fontWeight=mo,_o.anchor="middle",_o.valign="middle",_o.tspan=!1,_o.width=uo||50,_o.height=lo||20,_o.textMargin=ao,_o.class="labelText",drawLabel$2(yo,_o),_o=getTextObj$1(),_o.text=to.title,_o.x=to.startx+uo/2+(to.stopx-to.startx)/2,_o.y=to.starty+so+ao,_o.anchor="middle",_o.valign="middle",_o.textMargin=ao,_o.class="loopText",_o.fontFamily=ho,_o.fontSize=go,_o.fontWeight=mo,_o.wrap=!0;let ko=hasKatex(_o.text)?await drawKatex(yo,_o,to):drawText$2(yo,_o);if(to.sectionTitles!==void 0){for(const[Co,$o]of Object.entries(to.sectionTitles))if($o.message){_o.text=$o.message,_o.x=to.startx+(to.stopx-to.startx)/2,_o.y=to.sections[Co].y+so+ao,_o.class="loopText",_o.anchor="middle",_o.valign="middle",_o.tspan=!1,_o.fontFamily=ho,_o.fontSize=go,_o.fontWeight=mo,_o.wrap=to.wrap,hasKatex(_o.text)?(to.starty=to.sections[Co].y,await drawKatex(yo,_o,to)):drawText$2(yo,_o);let Ro=Math.round(ko.map(Oo=>(Oo._groups||Oo)[0][0].getBBox().height).reduce((Oo,No)=>Oo+No));to.sections[Co].height+=Ro-(so+ao)}}return to.height=Math.round(to.stopy-to.starty),yo},drawBackgroundRect$2=function(eo,to){drawBackgroundRect$3(eo,to)},insertDatabaseIcon=function(eo){eo.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},insertComputerIcon=function(eo){eo.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},insertClockIcon=function(eo){eo.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},insertArrowHead=function(eo){eo.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},insertArrowFilledHead=function(eo){eo.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},insertSequenceNumber=function(eo){eo.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},insertArrowCrossHead=function(eo){eo.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},getTextObj$1=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},getNoteRect$1=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},_drawTextCandidateFunc$2=function(){function eo(ao,lo,uo,ho,go,mo,yo){const So=lo.append("text").attr("x",uo+go/2).attr("y",ho+mo/2+5).style("text-anchor","middle").text(ao);so(So,yo)}function to(ao,lo,uo,ho,go,mo,yo,So){const{actorFontSize:_o,actorFontFamily:ko,actorFontWeight:Co}=So,[$o,Ro]=parseFontSize(_o),Oo=ao.split(common$1.lineBreakRegex);for(let No=0;Noeo.height||0))+(this.loops.length===0?0:this.loops.map(eo=>eo.height||0).reduce((eo,to)=>eo+to))+(this.messages.length===0?0:this.messages.map(eo=>eo.height||0).reduce((eo,to)=>eo+to))+(this.notes.length===0?0:this.notes.map(eo=>eo.height||0).reduce((eo,to)=>eo+to))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(eo){this.boxes.push(eo)},addActor:function(eo){this.actors.push(eo)},addLoop:function(eo){this.loops.push(eo)},addMessage:function(eo){this.messages.push(eo)},addNote:function(eo){this.notes.push(eo)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,setConf$4(getConfig$2())},updateVal:function(eo,to,no,io){eo[to]===void 0?eo[to]=no:eo[to]=io(no,eo[to])},updateBounds:function(eo,to,no,io){const so=this;let ao=0;function lo(uo){return function(go){ao++;const mo=so.sequenceItems.length-ao+1;so.updateVal(go,"starty",to-mo*conf$4.boxMargin,Math.min),so.updateVal(go,"stopy",io+mo*conf$4.boxMargin,Math.max),so.updateVal(bounds$2.data,"startx",eo-mo*conf$4.boxMargin,Math.min),so.updateVal(bounds$2.data,"stopx",no+mo*conf$4.boxMargin,Math.max),uo!=="activation"&&(so.updateVal(go,"startx",eo-mo*conf$4.boxMargin,Math.min),so.updateVal(go,"stopx",no+mo*conf$4.boxMargin,Math.max),so.updateVal(bounds$2.data,"starty",to-mo*conf$4.boxMargin,Math.min),so.updateVal(bounds$2.data,"stopy",io+mo*conf$4.boxMargin,Math.max))}}this.sequenceItems.forEach(lo()),this.activations.forEach(lo("activation"))},insert:function(eo,to,no,io){const so=common$1.getMin(eo,no),ao=common$1.getMax(eo,no),lo=common$1.getMin(to,io),uo=common$1.getMax(to,io);this.updateVal(bounds$2.data,"startx",so,Math.min),this.updateVal(bounds$2.data,"starty",lo,Math.min),this.updateVal(bounds$2.data,"stopx",ao,Math.max),this.updateVal(bounds$2.data,"stopy",uo,Math.max),this.updateBounds(so,lo,ao,uo)},newActivation:function(eo,to,no){const io=no[eo.from.actor],so=actorActivations(eo.from.actor).length||0,ao=io.x+io.width/2+(so-1)*conf$4.activationWidth/2;this.activations.push({startx:ao,starty:this.verticalPos+2,stopx:ao+conf$4.activationWidth,stopy:void 0,actor:eo.from.actor,anchored:svgDraw$3.anchorElement(to)})},endActivation:function(eo){const to=this.activations.map(function(no){return no.actor}).lastIndexOf(eo.from.actor);return this.activations.splice(to,1)[0]},createLoop:function(eo={message:void 0,wrap:!1,width:void 0},to){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:eo.message,wrap:eo.wrap,width:eo.width,height:0,fill:to}},newLoop:function(eo={message:void 0,wrap:!1,width:void 0},to){this.sequenceItems.push(this.createLoop(eo,to))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},addSectionToLoop:function(eo){const to=this.sequenceItems.pop();to.sections=to.sections||[],to.sectionTitles=to.sectionTitles||[],to.sections.push({y:bounds$2.getVerticalPos(),height:0}),to.sectionTitles.push(eo),this.sequenceItems.push(to)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(eo){this.verticalPos=this.verticalPos+eo,this.data.stopy=common$1.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},drawNote$2=async function(eo,to){bounds$2.bumpVerticalPos(conf$4.boxMargin),to.height=conf$4.boxMargin,to.starty=bounds$2.getVerticalPos();const no=getNoteRect$2();no.x=to.startx,no.y=to.starty,no.width=to.width||conf$4.width,no.class="note";const io=eo.append("g"),so=svgDraw$3.drawRect(io,no),ao=getTextObj$2();ao.x=to.startx,ao.y=to.starty,ao.width=no.width,ao.dy="1em",ao.text=to.message,ao.class="noteText",ao.fontFamily=conf$4.noteFontFamily,ao.fontSize=conf$4.noteFontSize,ao.fontWeight=conf$4.noteFontWeight,ao.anchor=conf$4.noteAlign,ao.textMargin=conf$4.noteMargin,ao.valign="center";const lo=hasKatex(ao.text)?await drawKatex(io,ao):drawText$2(io,ao),uo=Math.round(lo.map(ho=>(ho._groups||ho)[0][0].getBBox().height).reduce((ho,go)=>ho+go));so.attr("height",uo+2*conf$4.noteMargin),to.height+=uo+2*conf$4.noteMargin,bounds$2.bumpVerticalPos(uo+2*conf$4.noteMargin),to.stopy=to.starty+uo+2*conf$4.noteMargin,to.stopx=to.startx+no.width,bounds$2.insert(to.startx,to.starty,to.stopx,to.stopy),bounds$2.models.addNote(to)},messageFont=eo=>({fontFamily:eo.messageFontFamily,fontSize:eo.messageFontSize,fontWeight:eo.messageFontWeight}),noteFont=eo=>({fontFamily:eo.noteFontFamily,fontSize:eo.noteFontSize,fontWeight:eo.noteFontWeight}),actorFont=eo=>({fontFamily:eo.actorFontFamily,fontSize:eo.actorFontSize,fontWeight:eo.actorFontWeight});async function boundMessage(eo,to){bounds$2.bumpVerticalPos(10);const{startx:no,stopx:io,message:so}=to,ao=common$1.splitBreaks(so).length,lo=hasKatex(so),uo=lo?await calculateMathMLDimensions(so,getConfig$2()):utils$1.calculateTextDimensions(so,messageFont(conf$4));if(!lo){const yo=uo.height/ao;to.height+=yo,bounds$2.bumpVerticalPos(yo)}let ho,go=uo.height-10;const mo=uo.width;if(no===io){ho=bounds$2.getVerticalPos()+go,conf$4.rightAngles||(go+=conf$4.boxMargin,ho=bounds$2.getVerticalPos()+go),go+=30;const yo=common$1.getMax(mo/2,conf$4.width/2);bounds$2.insert(no-yo,bounds$2.getVerticalPos()-10+go,io+yo,bounds$2.getVerticalPos()+30+go)}else go+=conf$4.boxMargin,ho=bounds$2.getVerticalPos()+go,bounds$2.insert(no,ho-10,io,ho);return bounds$2.bumpVerticalPos(go),to.height+=go,to.stopy=to.starty+to.height,bounds$2.insert(to.fromBounds,to.starty,to.toBounds,to.stopy),ho}const drawMessage=async function(eo,to,no,io){const{startx:so,stopx:ao,starty:lo,message:uo,type:ho,sequenceIndex:go,sequenceVisible:mo}=to,yo=utils$1.calculateTextDimensions(uo,messageFont(conf$4)),So=getTextObj$2();So.x=so,So.y=lo+10,So.width=ao-so,So.class="messageText",So.dy="1em",So.text=uo,So.fontFamily=conf$4.messageFontFamily,So.fontSize=conf$4.messageFontSize,So.fontWeight=conf$4.messageFontWeight,So.anchor=conf$4.messageAlign,So.valign="center",So.textMargin=conf$4.wrapPadding,So.tspan=!1,hasKatex(So.text)?await drawKatex(eo,So,{startx:so,stopx:ao,starty:no}):drawText$2(eo,So);const _o=yo.width;let ko;so===ao?conf$4.rightAngles?ko=eo.append("path").attr("d",`M ${so},${no} H ${so+common$1.getMax(conf$4.width/2,_o/2)} V ${no+25} H ${so}`):ko=eo.append("path").attr("d","M "+so+","+no+" C "+(so+60)+","+(no-10)+" "+(so+60)+","+(no+30)+" "+so+","+(no+20)):(ko=eo.append("line"),ko.attr("x1",so),ko.attr("y1",no),ko.attr("x2",ao),ko.attr("y2",no)),ho===io.db.LINETYPE.DOTTED||ho===io.db.LINETYPE.DOTTED_CROSS||ho===io.db.LINETYPE.DOTTED_POINT||ho===io.db.LINETYPE.DOTTED_OPEN?(ko.style("stroke-dasharray","3, 3"),ko.attr("class","messageLine1")):ko.attr("class","messageLine0");let Co="";conf$4.arrowMarkerAbsolute&&(Co=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Co=Co.replace(/\(/g,"\\("),Co=Co.replace(/\)/g,"\\)")),ko.attr("stroke-width",2),ko.attr("stroke","none"),ko.style("fill","none"),(ho===io.db.LINETYPE.SOLID||ho===io.db.LINETYPE.DOTTED)&&ko.attr("marker-end","url("+Co+"#arrowhead)"),(ho===io.db.LINETYPE.SOLID_POINT||ho===io.db.LINETYPE.DOTTED_POINT)&&ko.attr("marker-end","url("+Co+"#filled-head)"),(ho===io.db.LINETYPE.SOLID_CROSS||ho===io.db.LINETYPE.DOTTED_CROSS)&&ko.attr("marker-end","url("+Co+"#crosshead)"),(mo||conf$4.showSequenceNumbers)&&(ko.attr("marker-start","url("+Co+"#sequencenumber)"),eo.append("text").attr("x",so).attr("y",no+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(go))},addActorRenderingData=async function(eo,to,no,io,so,ao,lo){let uo=0,ho=0,go,mo=0;for(const yo of io){const So=to[yo],_o=So.box;go&&go!=_o&&(lo||bounds$2.models.addBox(go),ho+=conf$4.boxMargin+go.margin),_o&&_o!=go&&(lo||(_o.x=uo+ho,_o.y=so),ho+=_o.margin),So.width=So.width||conf$4.width,So.height=common$1.getMax(So.height||conf$4.height,conf$4.height),So.margin=So.margin||conf$4.actorMargin,mo=common$1.getMax(mo,So.height),no[So.name]&&(ho+=So.width/2),So.x=uo+ho,So.starty=bounds$2.getVerticalPos(),bounds$2.insert(So.x,so,So.x+So.width,So.height),uo+=So.width+ho,So.box&&(So.box.width=uo+_o.margin-So.box.x),ho=So.margin,go=So.box,bounds$2.models.addActor(So)}go&&!lo&&bounds$2.models.addBox(go),bounds$2.bumpVerticalPos(mo)},drawActors=async function(eo,to,no,io){if(io){let so=0;bounds$2.bumpVerticalPos(conf$4.boxMargin*2);for(const ao of no){const lo=to[ao];lo.stopy||(lo.stopy=bounds$2.getVerticalPos());const uo=await svgDraw$3.drawActor(eo,lo,conf$4,!0);so=common$1.getMax(so,uo)}bounds$2.bumpVerticalPos(so+conf$4.boxMargin)}else for(const so of no){const ao=to[so];await svgDraw$3.drawActor(eo,ao,conf$4,!1)}},drawActorsPopup=function(eo,to,no,io){let so=0,ao=0;for(const lo of no){const uo=to[lo],ho=getRequiredPopupWidth(uo),go=svgDraw$3.drawPopup(eo,uo,ho,conf$4,conf$4.forceMenus,io);go.height>so&&(so=go.height),go.width+uo.x>ao&&(ao=go.width+uo.x)}return{maxHeight:so,maxWidth:ao}},setConf$4=function(eo){assignWithDepth$1(conf$4,eo),eo.fontFamily&&(conf$4.actorFontFamily=conf$4.noteFontFamily=conf$4.messageFontFamily=eo.fontFamily),eo.fontSize&&(conf$4.actorFontSize=conf$4.noteFontSize=conf$4.messageFontSize=eo.fontSize),eo.fontWeight&&(conf$4.actorFontWeight=conf$4.noteFontWeight=conf$4.messageFontWeight=eo.fontWeight)},actorActivations=function(eo){return bounds$2.activations.filter(function(to){return to.actor===eo})},activationBounds=function(eo,to){const no=to[eo],io=actorActivations(eo),so=io.reduce(function(lo,uo){return common$1.getMin(lo,uo.startx)},no.x+no.width/2-1),ao=io.reduce(function(lo,uo){return common$1.getMax(lo,uo.stopx)},no.x+no.width/2+1);return[so,ao]};function adjustLoopHeightForWrap(eo,to,no,io,so){bounds$2.bumpVerticalPos(no);let ao=io;if(to.id&&to.message&&eo[to.id]){const lo=eo[to.id].width,uo=messageFont(conf$4);to.message=utils$1.wrapLabel(`[${to.message}]`,lo-2*conf$4.wrapPadding,uo),to.width=lo,to.wrap=!0;const ho=utils$1.calculateTextDimensions(to.message,uo),go=common$1.getMax(ho.height,conf$4.labelBoxHeight);ao=io+go,log$1.debug(`${go} - ${to.message}`)}so(to),bounds$2.bumpVerticalPos(ao)}function adjustCreatedDestroyedData(eo,to,no,io,so,ao,lo){function uo(go,mo){go.x{gs.add(ys.from),gs.add(ys.to)}),ko=ko.filter(ys=>gs.has(ys))}await addActorRenderingData(go,mo,yo,ko,0,Co,!1);const Mo=await calculateLoopBounds(Co,mo,No,io);svgDraw$3.insertArrowHead(go),svgDraw$3.insertArrowCrossHead(go),svgDraw$3.insertArrowFilledHead(go),svgDraw$3.insertSequenceNumber(go);function Bo(gs,ys){const vs=bounds$2.endActivation(gs);vs.starty+18>ys&&(vs.starty=ys-6,ys+=12),svgDraw$3.drawActivation(go,vs,ys,conf$4,actorActivations(gs.from.actor).length),bounds$2.insert(vs.startx,ys-10,vs.stopx,ys)}let Fo=1,Lo=1;const Go=[],Do=[];let Uo=0;for(const gs of Co){let ys,vs,ks;switch(gs.type){case io.db.LINETYPE.NOTE:bounds$2.resetVerticalPos(),vs=gs.noteModel,await drawNote$2(go,vs);break;case io.db.LINETYPE.ACTIVE_START:bounds$2.newActivation(gs,go,mo);break;case io.db.LINETYPE.ACTIVE_END:Bo(gs,bounds$2.getVerticalPos());break;case io.db.LINETYPE.LOOP_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin+conf$4.boxTextMargin,Os=>bounds$2.newLoop(Os));break;case io.db.LINETYPE.LOOP_END:ys=bounds$2.endLoop(),await svgDraw$3.drawLoop(go,ys,"loop",conf$4),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos()),bounds$2.models.addLoop(ys);break;case io.db.LINETYPE.RECT_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin,Os=>bounds$2.newLoop(void 0,Os.message));break;case io.db.LINETYPE.RECT_END:ys=bounds$2.endLoop(),Do.push(ys),bounds$2.models.addLoop(ys),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos());break;case io.db.LINETYPE.OPT_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin+conf$4.boxTextMargin,Os=>bounds$2.newLoop(Os));break;case io.db.LINETYPE.OPT_END:ys=bounds$2.endLoop(),await svgDraw$3.drawLoop(go,ys,"opt",conf$4),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos()),bounds$2.models.addLoop(ys);break;case io.db.LINETYPE.ALT_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin+conf$4.boxTextMargin,Os=>bounds$2.newLoop(Os));break;case io.db.LINETYPE.ALT_ELSE:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin+conf$4.boxTextMargin,conf$4.boxMargin,Os=>bounds$2.addSectionToLoop(Os));break;case io.db.LINETYPE.ALT_END:ys=bounds$2.endLoop(),await svgDraw$3.drawLoop(go,ys,"alt",conf$4),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos()),bounds$2.models.addLoop(ys);break;case io.db.LINETYPE.PAR_START:case io.db.LINETYPE.PAR_OVER_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin+conf$4.boxTextMargin,Os=>bounds$2.newLoop(Os)),bounds$2.saveVerticalPos();break;case io.db.LINETYPE.PAR_AND:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin+conf$4.boxTextMargin,conf$4.boxMargin,Os=>bounds$2.addSectionToLoop(Os));break;case io.db.LINETYPE.PAR_END:ys=bounds$2.endLoop(),await svgDraw$3.drawLoop(go,ys,"par",conf$4),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos()),bounds$2.models.addLoop(ys);break;case io.db.LINETYPE.AUTONUMBER:Fo=gs.message.start||Fo,Lo=gs.message.step||Lo,gs.message.visible?io.db.enableSequenceNumbers():io.db.disableSequenceNumbers();break;case io.db.LINETYPE.CRITICAL_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin+conf$4.boxTextMargin,Os=>bounds$2.newLoop(Os));break;case io.db.LINETYPE.CRITICAL_OPTION:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin+conf$4.boxTextMargin,conf$4.boxMargin,Os=>bounds$2.addSectionToLoop(Os));break;case io.db.LINETYPE.CRITICAL_END:ys=bounds$2.endLoop(),await svgDraw$3.drawLoop(go,ys,"critical",conf$4),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos()),bounds$2.models.addLoop(ys);break;case io.db.LINETYPE.BREAK_START:adjustLoopHeightForWrap(Mo,gs,conf$4.boxMargin,conf$4.boxMargin+conf$4.boxTextMargin,Os=>bounds$2.newLoop(Os));break;case io.db.LINETYPE.BREAK_END:ys=bounds$2.endLoop(),await svgDraw$3.drawLoop(go,ys,"break",conf$4),bounds$2.bumpVerticalPos(ys.stopy-bounds$2.getVerticalPos()),bounds$2.models.addLoop(ys);break;default:try{ks=gs.msgModel,ks.starty=bounds$2.getVerticalPos(),ks.sequenceIndex=Fo,ks.sequenceVisible=io.db.showSequenceNumbers();const Os=await boundMessage(go,ks);adjustCreatedDestroyedData(gs,ks,Os,Uo,mo,yo,So),Go.push({messageModel:ks,lineStartY:Os}),bounds$2.models.addMessage(ks)}catch(Os){log$1.error("error while drawing message",Os)}}[io.db.LINETYPE.SOLID_OPEN,io.db.LINETYPE.DOTTED_OPEN,io.db.LINETYPE.SOLID,io.db.LINETYPE.DOTTED,io.db.LINETYPE.SOLID_CROSS,io.db.LINETYPE.DOTTED_CROSS,io.db.LINETYPE.SOLID_POINT,io.db.LINETYPE.DOTTED_POINT].includes(gs.type)&&(Fo=Fo+Lo),Uo++}log$1.debug("createdActors",yo),log$1.debug("destroyedActors",So),await drawActors(go,mo,ko,!1);for(const gs of Go)await drawMessage(go,gs.messageModel,gs.lineStartY,io);conf$4.mirrorActors&&await drawActors(go,mo,ko,!0),Do.forEach(gs=>svgDraw$3.drawBackgroundRect(go,gs)),fixLifeLineHeights(go,mo,ko,conf$4);for(const gs of bounds$2.models.boxes)gs.height=bounds$2.getVerticalPos()-gs.y,bounds$2.insert(gs.x,gs.y,gs.x+gs.width,gs.height),gs.startx=gs.x,gs.starty=gs.y,gs.stopx=gs.startx+gs.width,gs.stopy=gs.starty+gs.height,gs.stroke="rgb(0,0,0, 0.5)",await svgDraw$3.drawBox(go,gs,conf$4);Ro&&bounds$2.bumpVerticalPos(conf$4.boxMargin);const Ho=drawActorsPopup(go,mo,ko,ho),{bounds:Yo}=bounds$2.getBounds();let qo=Yo.stopy-Yo.starty;qo{const lo=messageFont(conf$4);let uo=ao.actorKeys.reduce((mo,yo)=>mo+=eo[yo].width+(eo[yo].margin||0),0);uo-=2*conf$4.boxTextMargin,ao.wrap&&(ao.name=utils$1.wrapLabel(ao.name,uo-2*conf$4.wrapPadding,lo));const ho=utils$1.calculateTextDimensions(ao.name,lo);so=common$1.getMax(ho.height,so);const go=common$1.getMax(uo,ho.width+2*conf$4.wrapPadding);if(ao.margin=conf$4.boxTextMargin,uoao.textMaxHeight=so),common$1.getMax(io,conf$4.height)}const buildNoteModel=async function(eo,to,no){const io=to[eo.from].x,so=to[eo.to].x,ao=eo.wrap&&eo.message;let lo=hasKatex(eo.message)?await calculateMathMLDimensions(eo.message,getConfig$2()):utils$1.calculateTextDimensions(ao?utils$1.wrapLabel(eo.message,conf$4.width,noteFont(conf$4)):eo.message,noteFont(conf$4));const uo={width:ao?conf$4.width:common$1.getMax(conf$4.width,lo.width+2*conf$4.noteMargin),height:0,startx:to[eo.from].x,stopx:0,starty:0,stopy:0,message:eo.message};return eo.placement===no.db.PLACEMENT.RIGHTOF?(uo.width=ao?common$1.getMax(conf$4.width,lo.width):common$1.getMax(to[eo.from].width/2+to[eo.to].width/2,lo.width+2*conf$4.noteMargin),uo.startx=io+(to[eo.from].width+conf$4.actorMargin)/2):eo.placement===no.db.PLACEMENT.LEFTOF?(uo.width=ao?common$1.getMax(conf$4.width,lo.width+2*conf$4.noteMargin):common$1.getMax(to[eo.from].width/2+to[eo.to].width/2,lo.width+2*conf$4.noteMargin),uo.startx=io-uo.width+(to[eo.from].width-conf$4.actorMargin)/2):eo.to===eo.from?(lo=utils$1.calculateTextDimensions(ao?utils$1.wrapLabel(eo.message,common$1.getMax(conf$4.width,to[eo.from].width),noteFont(conf$4)):eo.message,noteFont(conf$4)),uo.width=ao?common$1.getMax(conf$4.width,to[eo.from].width):common$1.getMax(to[eo.from].width,conf$4.width,lo.width+2*conf$4.noteMargin),uo.startx=io+(to[eo.from].width-uo.width)/2):(uo.width=Math.abs(io+to[eo.from].width/2-(so+to[eo.to].width/2))+conf$4.actorMargin,uo.startx=io2,yo=Co=>uo?-Co:Co;eo.from===eo.to?go=ho:(eo.activate&&!mo&&(go+=yo(conf$4.activationWidth/2-1)),[no.db.LINETYPE.SOLID_OPEN,no.db.LINETYPE.DOTTED_OPEN].includes(eo.type)||(go+=yo(3)));const So=[io,so,ao,lo],_o=Math.abs(ho-go);eo.wrap&&eo.message&&(eo.message=utils$1.wrapLabel(eo.message,common$1.getMax(_o+2*conf$4.wrapPadding,conf$4.width),messageFont(conf$4)));const ko=utils$1.calculateTextDimensions(eo.message,messageFont(conf$4));return{width:common$1.getMax(eo.wrap?0:ko.width+2*conf$4.wrapPadding,_o+2*conf$4.wrapPadding,conf$4.width),height:0,startx:ho,stopx:go,starty:0,stopy:0,message:eo.message,type:eo.type,wrap:eo.wrap,fromBounds:Math.min.apply(null,So),toBounds:Math.max.apply(null,So)}},calculateLoopBounds=async function(eo,to,no,io){const so={},ao=[];let lo,uo,ho;for(const go of eo){switch(go.id=utils$1.random({length:10}),go.type){case io.db.LINETYPE.LOOP_START:case io.db.LINETYPE.ALT_START:case io.db.LINETYPE.OPT_START:case io.db.LINETYPE.PAR_START:case io.db.LINETYPE.PAR_OVER_START:case io.db.LINETYPE.CRITICAL_START:case io.db.LINETYPE.BREAK_START:ao.push({id:go.id,msg:go.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case io.db.LINETYPE.ALT_ELSE:case io.db.LINETYPE.PAR_AND:case io.db.LINETYPE.CRITICAL_OPTION:go.message&&(lo=ao.pop(),so[lo.id]=lo,so[go.id]=lo,ao.push(lo));break;case io.db.LINETYPE.LOOP_END:case io.db.LINETYPE.ALT_END:case io.db.LINETYPE.OPT_END:case io.db.LINETYPE.PAR_END:case io.db.LINETYPE.CRITICAL_END:case io.db.LINETYPE.BREAK_END:lo=ao.pop(),so[lo.id]=lo;break;case io.db.LINETYPE.ACTIVE_START:{const yo=to[go.from?go.from.actor:go.to.actor],So=actorActivations(go.from?go.from.actor:go.to.actor).length,_o=yo.x+yo.width/2+(So-1)*conf$4.activationWidth/2,ko={startx:_o,stopx:_o+conf$4.activationWidth,actor:go.from.actor,enabled:!0};bounds$2.activations.push(ko)}break;case io.db.LINETYPE.ACTIVE_END:{const yo=bounds$2.activations.map(So=>So.actor).lastIndexOf(go.from.actor);delete bounds$2.activations.splice(yo,1)[0]}break}go.placement!==void 0?(uo=await buildNoteModel(go,to,io),go.noteModel=uo,ao.forEach(yo=>{lo=yo,lo.from=common$1.getMin(lo.from,uo.startx),lo.to=common$1.getMax(lo.to,uo.startx+uo.width),lo.width=common$1.getMax(lo.width,Math.abs(lo.from-lo.to))-conf$4.labelBoxWidth})):(ho=buildMessageModel(go,to,io),go.msgModel=ho,ho.startx&&ho.stopx&&ao.length>0&&ao.forEach(yo=>{if(lo=yo,ho.startx===ho.stopx){const So=to[go.from],_o=to[go.to];lo.from=common$1.getMin(So.x-ho.width/2,So.x-So.width/2,lo.from),lo.to=common$1.getMax(_o.x+ho.width/2,_o.x+So.width/2,lo.to),lo.width=common$1.getMax(lo.width,Math.abs(lo.to-lo.from))-conf$4.labelBoxWidth}else lo.from=common$1.getMin(ho.startx,lo.from),lo.to=common$1.getMax(ho.stopx,lo.to),lo.width=common$1.getMax(lo.width,ho.width)-conf$4.labelBoxWidth}))}return bounds$2.activations=[],log$1.debug("Loop type widths:",so),so},renderer$b={bounds:bounds$2,drawActors,drawActorsPopup,setConf:setConf$4,draw:draw$a},diagram$a={parser:parser$1$7,db:db$8,renderer:renderer$b,styles:styles$6,init:({wrap:eo})=>{db$8.setWrap(eo)}},sequenceDiagramAcc0e65c=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$a},Symbol.toStringTag,{value:"Module"}));var parser$7=function(){var eo=function(r1,$u,Kl,Is){for(Kl=Kl||{},Is=r1.length;Is--;Kl[r1[Is]]=$u);return Kl},to=[1,17],no=[1,18],io=[1,19],so=[1,39],ao=[1,40],lo=[1,25],uo=[1,23],ho=[1,24],go=[1,31],mo=[1,32],yo=[1,33],So=[1,34],_o=[1,35],ko=[1,36],Co=[1,26],$o=[1,27],Ro=[1,28],Oo=[1,29],No=[1,43],Mo=[1,30],Bo=[1,42],Fo=[1,44],Lo=[1,41],Go=[1,45],Do=[1,9],Uo=[1,8,9],Ho=[1,56],Yo=[1,57],qo=[1,58],Jo=[1,59],ps=[1,60],Qo=[1,61],hs=[1,62],gs=[1,8,9,39],ys=[1,74],vs=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],ks=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],Os=[13,74,80,95,97,98],Ts=[13,64,65,74,80,95,97,98],Xs=[13,59,60,61,62,63,74,80,95,97,98],Ws=[1,93],Ps=[1,110],qs=[1,108],ga=[1,102],Fs=[1,103],Js=[1,104],Vs=[1,105],El=[1,106],yl=[1,107],Gl=[1,109],Qs=[1,8,9,37,39,42],du=[1,8,9,21],Ol=[1,8,9,78],Fu=[1,8,9,21,73,74,78,80,81,82,83,84,85],ju={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function($u,Kl,Is,Ks,Bs,Ds,Zs){var Cl=Ds.length-1;switch(Bs){case 8:this.$=Ds[Cl-1];break;case 9:case 11:case 12:this.$=Ds[Cl];break;case 10:case 13:this.$=Ds[Cl-1]+Ds[Cl];break;case 14:case 15:this.$=Ds[Cl-1]+"~"+Ds[Cl]+"~";break;case 16:Ks.addRelation(Ds[Cl]);break;case 17:Ds[Cl-1].title=Ks.cleanupLabel(Ds[Cl]),Ks.addRelation(Ds[Cl-1]);break;case 27:this.$=Ds[Cl].trim(),Ks.setAccTitle(this.$);break;case 28:case 29:this.$=Ds[Cl].trim(),Ks.setAccDescription(this.$);break;case 30:Ks.addClassesToNamespace(Ds[Cl-3],Ds[Cl-1]);break;case 31:Ks.addClassesToNamespace(Ds[Cl-4],Ds[Cl-1]);break;case 32:this.$=Ds[Cl],Ks.addNamespace(Ds[Cl]);break;case 33:this.$=[Ds[Cl]];break;case 34:this.$=[Ds[Cl-1]];break;case 35:Ds[Cl].unshift(Ds[Cl-2]),this.$=Ds[Cl];break;case 37:Ks.setCssClass(Ds[Cl-2],Ds[Cl]);break;case 38:Ks.addMembers(Ds[Cl-3],Ds[Cl-1]);break;case 39:Ks.setCssClass(Ds[Cl-5],Ds[Cl-3]),Ks.addMembers(Ds[Cl-5],Ds[Cl-1]);break;case 40:this.$=Ds[Cl],Ks.addClass(Ds[Cl]);break;case 41:this.$=Ds[Cl-1],Ks.addClass(Ds[Cl-1]),Ks.setClassLabel(Ds[Cl-1],Ds[Cl]);break;case 42:Ks.addAnnotation(Ds[Cl],Ds[Cl-2]);break;case 43:this.$=[Ds[Cl]];break;case 44:Ds[Cl].push(Ds[Cl-1]),this.$=Ds[Cl];break;case 45:break;case 46:Ks.addMember(Ds[Cl-1],Ks.cleanupLabel(Ds[Cl]));break;case 47:break;case 48:break;case 49:this.$={id1:Ds[Cl-2],id2:Ds[Cl],relation:Ds[Cl-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:Ds[Cl-3],id2:Ds[Cl],relation:Ds[Cl-1],relationTitle1:Ds[Cl-2],relationTitle2:"none"};break;case 51:this.$={id1:Ds[Cl-3],id2:Ds[Cl],relation:Ds[Cl-2],relationTitle1:"none",relationTitle2:Ds[Cl-1]};break;case 52:this.$={id1:Ds[Cl-4],id2:Ds[Cl],relation:Ds[Cl-2],relationTitle1:Ds[Cl-3],relationTitle2:Ds[Cl-1]};break;case 53:Ks.addNote(Ds[Cl],Ds[Cl-1]);break;case 54:Ks.addNote(Ds[Cl]);break;case 55:Ks.setDirection("TB");break;case 56:Ks.setDirection("BT");break;case 57:Ks.setDirection("RL");break;case 58:Ks.setDirection("LR");break;case 59:this.$={type1:Ds[Cl-2],type2:Ds[Cl],lineType:Ds[Cl-1]};break;case 60:this.$={type1:"none",type2:Ds[Cl],lineType:Ds[Cl-1]};break;case 61:this.$={type1:Ds[Cl-1],type2:"none",lineType:Ds[Cl]};break;case 62:this.$={type1:"none",type2:"none",lineType:Ds[Cl]};break;case 63:this.$=Ks.relationType.AGGREGATION;break;case 64:this.$=Ks.relationType.EXTENSION;break;case 65:this.$=Ks.relationType.COMPOSITION;break;case 66:this.$=Ks.relationType.DEPENDENCY;break;case 67:this.$=Ks.relationType.LOLLIPOP;break;case 68:this.$=Ks.lineType.LINE;break;case 69:this.$=Ks.lineType.DOTTED_LINE;break;case 70:case 76:this.$=Ds[Cl-2],Ks.setClickEvent(Ds[Cl-1],Ds[Cl]);break;case 71:case 77:this.$=Ds[Cl-3],Ks.setClickEvent(Ds[Cl-2],Ds[Cl-1]),Ks.setTooltip(Ds[Cl-2],Ds[Cl]);break;case 72:this.$=Ds[Cl-2],Ks.setLink(Ds[Cl-1],Ds[Cl]);break;case 73:this.$=Ds[Cl-3],Ks.setLink(Ds[Cl-2],Ds[Cl-1],Ds[Cl]);break;case 74:this.$=Ds[Cl-3],Ks.setLink(Ds[Cl-2],Ds[Cl-1]),Ks.setTooltip(Ds[Cl-2],Ds[Cl]);break;case 75:this.$=Ds[Cl-4],Ks.setLink(Ds[Cl-3],Ds[Cl-2],Ds[Cl]),Ks.setTooltip(Ds[Cl-3],Ds[Cl-1]);break;case 78:this.$=Ds[Cl-3],Ks.setClickEvent(Ds[Cl-2],Ds[Cl-1],Ds[Cl]);break;case 79:this.$=Ds[Cl-4],Ks.setClickEvent(Ds[Cl-3],Ds[Cl-2],Ds[Cl-1]),Ks.setTooltip(Ds[Cl-3],Ds[Cl]);break;case 80:this.$=Ds[Cl-3],Ks.setLink(Ds[Cl-2],Ds[Cl]);break;case 81:this.$=Ds[Cl-4],Ks.setLink(Ds[Cl-3],Ds[Cl-1],Ds[Cl]);break;case 82:this.$=Ds[Cl-4],Ks.setLink(Ds[Cl-3],Ds[Cl-1]),Ks.setTooltip(Ds[Cl-3],Ds[Cl]);break;case 83:this.$=Ds[Cl-5],Ks.setLink(Ds[Cl-4],Ds[Cl-2],Ds[Cl]),Ks.setTooltip(Ds[Cl-4],Ds[Cl-1]);break;case 84:this.$=Ds[Cl-2],Ks.setCssStyle(Ds[Cl-1],Ds[Cl]);break;case 85:Ks.setCssClass(Ds[Cl-1],Ds[Cl]);break;case 86:this.$=[Ds[Cl]];break;case 87:Ds[Cl-2].push(Ds[Cl]),this.$=Ds[Cl-2];break;case 89:this.$=Ds[Cl-1]+Ds[Cl];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:to,33:no,35:io,36:21,40:so,41:22,44:ao,45:lo,47:uo,48:ho,50:go,52:mo,53:yo,54:So,55:_o,56:ko,66:Co,67:$o,69:Ro,73:Oo,74:No,76:Mo,80:Bo,95:Fo,97:Lo,98:Go},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},eo(Do,[2,5],{8:[1,46]}),{8:[1,47]},eo(Uo,[2,16],{21:[1,48]}),eo(Uo,[2,18]),eo(Uo,[2,19]),eo(Uo,[2,20]),eo(Uo,[2,21]),eo(Uo,[2,22]),eo(Uo,[2,23]),eo(Uo,[2,24]),eo(Uo,[2,25]),eo(Uo,[2,26]),{32:[1,49]},{34:[1,50]},eo(Uo,[2,29]),eo(Uo,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Ho,60:Yo,61:qo,62:Jo,63:ps,64:Qo,65:hs}),{37:[1,63]},eo(gs,[2,36],{37:[1,65],42:[1,64]}),eo(Uo,[2,47]),eo(Uo,[2,48]),{16:66,74:No,80:Bo,95:Fo,97:Lo},{16:37,17:67,18:38,74:No,80:Bo,95:Fo,97:Lo,98:Go},{16:37,17:68,18:38,74:No,80:Bo,95:Fo,97:Lo,98:Go},{16:37,17:69,18:38,74:No,80:Bo,95:Fo,97:Lo,98:Go},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:No,80:Bo,95:Fo,97:Lo,98:Go},{13:ys,51:73},eo(Uo,[2,55]),eo(Uo,[2,56]),eo(Uo,[2,57]),eo(Uo,[2,58]),eo(vs,[2,11],{16:37,18:38,17:75,19:[1,76],74:No,80:Bo,95:Fo,97:Lo,98:Go}),eo(vs,[2,12],{19:[1,77]}),{15:78,16:79,74:No,80:Bo,95:Fo,97:Lo},{16:37,17:80,18:38,74:No,80:Bo,95:Fo,97:Lo,98:Go},eo(ks,[2,112]),eo(ks,[2,113]),eo(ks,[2,114]),eo(ks,[2,115]),eo([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),eo(Do,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:to,33:no,35:io,40:so,44:ao,45:lo,47:uo,48:ho,50:go,52:mo,53:yo,54:So,55:_o,56:ko,66:Co,67:$o,69:Ro,73:Oo,74:No,76:Mo,80:Bo,95:Fo,97:Lo,98:Go}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:to,33:no,35:io,36:21,40:so,41:22,44:ao,45:lo,47:uo,48:ho,50:go,52:mo,53:yo,54:So,55:_o,56:ko,66:Co,67:$o,69:Ro,73:Oo,74:No,76:Mo,80:Bo,95:Fo,97:Lo,98:Go},eo(Uo,[2,17]),eo(Uo,[2,27]),eo(Uo,[2,28]),{13:[1,84],16:37,17:83,18:38,74:No,80:Bo,95:Fo,97:Lo,98:Go},{49:85,57:54,58:55,59:Ho,60:Yo,61:qo,62:Jo,63:ps,64:Qo,65:hs},eo(Uo,[2,46]),{58:86,64:Qo,65:hs},eo(Os,[2,62],{57:87,59:Ho,60:Yo,61:qo,62:Jo,63:ps}),eo(Ts,[2,63]),eo(Ts,[2,64]),eo(Ts,[2,65]),eo(Ts,[2,66]),eo(Ts,[2,67]),eo(Xs,[2,68]),eo(Xs,[2,69]),{8:[1,89],23:90,38:88,41:22,44:ao},{16:91,74:No,80:Bo,95:Fo,97:Lo},{43:92,47:Ws},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Ps,73:qs,74:ga,75:99,77:100,79:101,80:Fs,81:Js,82:Vs,83:El,84:yl,85:Gl},{74:[1,111]},{13:ys,51:112},eo(Uo,[2,54]),eo(Uo,[2,117]),eo(vs,[2,13]),eo(vs,[2,14]),eo(vs,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:No,80:Bo,95:Fo,97:Lo},eo(Qs,[2,40],{11:114,12:[1,115]}),eo(Do,[2,7]),{9:[1,116]},eo(du,[2,49]),{16:37,17:117,18:38,74:No,80:Bo,95:Fo,97:Lo,98:Go},{13:[1,119],16:37,17:118,18:38,74:No,80:Bo,95:Fo,97:Lo,98:Go},eo(Os,[2,61],{57:120,59:Ho,60:Yo,61:qo,62:Jo,63:ps}),eo(Os,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:ao},{8:[1,123],39:[2,33]},eo(gs,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:Ws},{16:37,17:127,18:38,74:No,80:Bo,95:Fo,97:Lo,98:Go},eo(Uo,[2,70],{13:[1,128]}),eo(Uo,[2,72],{13:[1,130],68:[1,129]}),eo(Uo,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},eo(Uo,[2,84],{78:[1,134]}),eo(Ol,[2,86],{79:135,21:Ps,73:qs,74:ga,80:Fs,81:Js,82:Vs,83:El,84:yl,85:Gl}),eo(Fu,[2,88]),eo(Fu,[2,90]),eo(Fu,[2,91]),eo(Fu,[2,92]),eo(Fu,[2,93]),eo(Fu,[2,94]),eo(Fu,[2,95]),eo(Fu,[2,96]),eo(Fu,[2,97]),eo(Fu,[2,98]),eo(Uo,[2,85]),eo(Uo,[2,53]),{37:[2,10]},eo(Qs,[2,41]),{13:[1,136]},{1:[2,4]},eo(du,[2,51]),eo(du,[2,50]),{16:37,17:137,18:38,74:No,80:Bo,95:Fo,97:Lo,98:Go},eo(Os,[2,59]),eo(Uo,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:ao},{43:140,47:Ws},eo(gs,[2,38]),{39:[2,44]},eo(Uo,[2,42]),eo(Uo,[2,71]),eo(Uo,[2,73]),eo(Uo,[2,74],{68:[1,141]}),eo(Uo,[2,77]),eo(Uo,[2,78],{13:[1,142]}),eo(Uo,[2,80],{13:[1,144],68:[1,143]}),{21:Ps,73:qs,74:ga,77:145,79:101,80:Fs,81:Js,82:Vs,83:El,84:yl,85:Gl},eo(Fu,[2,89]),{14:[1,146]},eo(du,[2,52]),eo(Uo,[2,31]),{39:[2,35]},{39:[1,147]},eo(Uo,[2,75]),eo(Uo,[2,79]),eo(Uo,[2,81]),eo(Uo,[2,82],{68:[1,148]}),eo(Ol,[2,87],{79:135,21:Ps,73:qs,74:ga,80:Fs,81:Js,82:Vs,83:El,84:yl,85:Gl}),eo(Qs,[2,8]),eo(gs,[2,39]),eo(Uo,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function($u,Kl){if(Kl.recoverable)this.trace($u);else{var Is=new Error($u);throw Is.hash=Kl,Is}},parse:function($u){var Kl=this,Is=[0],Ks=[],Bs=[null],Ds=[],Zs=this.table,Cl="",ba=0,fu=0,Lu=2,e1=1,Gu=Ds.slice.call(arguments,1),w1=Object.create(this.lexer),Zu={yy:{}};for(var L1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L1)&&(Zu.yy[L1]=this.yy[L1]);w1.setInput($u,Zu.yy),Zu.yy.lexer=w1,Zu.yy.parser=this,typeof w1.yylloc>"u"&&(w1.yylloc={});var K1=w1.yylloc;Ds.push(K1);var yp=w1.options&&w1.options.ranges;typeof Zu.yy.parseError=="function"?this.parseError=Zu.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wp(){var P0;return P0=Ks.pop()||w1.lex()||e1,typeof P0!="number"&&(P0 instanceof Array&&(Ks=P0,P0=Ks.pop()),P0=Kl.symbols_[P0]||P0),P0}for(var j0,h0,cp,k0,ap={},x0,b0,P1,c1;;){if(h0=Is[Is.length-1],this.defaultActions[h0]?cp=this.defaultActions[h0]:((j0===null||typeof j0>"u")&&(j0=wp()),cp=Zs[h0]&&Zs[h0][j0]),typeof cp>"u"||!cp.length||!cp[0]){var V0="";c1=[];for(x0 in Zs[h0])this.terminals_[x0]&&x0>Lu&&c1.push("'"+this.terminals_[x0]+"'");w1.showPosition?V0="Parse error on line "+(ba+1)+`: `+w1.showPosition()+` Expecting `+c1.join(", ")+", got '"+(this.terminals_[j0]||j0)+"'":V0="Parse error on line "+(ba+1)+": Unexpected "+(j0==e1?"end of input":"'"+(this.terminals_[j0]||j0)+"'"),this.parseError(V0,{text:w1.match,token:this.terminals_[j0]||j0,line:w1.yylineno,loc:K1,expected:c1})}if(cp[0]instanceof Array&&cp.length>1)throw new Error("Parse Error: multiple actions possible at state: "+h0+", token: "+j0);switch(cp[0]){case 1:Is.push(j0),Bs.push(w1.yytext),Ds.push(w1.yylloc),Is.push(cp[1]),j0=null,fu=w1.yyleng,Cl=w1.yytext,ba=w1.yylineno,K1=w1.yylloc;break;case 2:if(b0=this.productions_[cp[1]][1],ap.$=Bs[Bs.length-b0],ap._$={first_line:Ds[Ds.length-(b0||1)].first_line,last_line:Ds[Ds.length-1].last_line,first_column:Ds[Ds.length-(b0||1)].first_column,last_column:Ds[Ds.length-1].last_column},yp&&(ap._$.range=[Ds[Ds.length-(b0||1)].range[0],Ds[Ds.length-1].range[1]]),k0=this.performAction.apply(ap,[Cl,fu,ba,Zu.yy,cp[1],Bs,Ds].concat(Gu)),typeof k0<"u")return k0;b0&&(Is=Is.slice(0,-1*b0*2),Bs=Bs.slice(0,-1*b0),Ds=Ds.slice(0,-1*b0)),Is.push(this.productions_[cp[1]][0]),Bs.push(ap.$),Ds.push(ap._$),P1=Zs[Is[Is.length-2]][Is[Is.length-1]],Is.push(P1);break;case 3:return!0}}return!0}},F1=function(){var r1={EOF:1,parseError:function(Kl,Is){if(this.yy.parser)this.yy.parser.parseError(Kl,Is);else throw new Error(Kl)},setInput:function($u,Kl){return this.yy=Kl||this.yy||{},this._input=$u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var $u=this._input[0];this.yytext+=$u,this.yyleng++,this.offset++,this.match+=$u,this.matched+=$u;var Kl=$u.match(/(?:\r\n?|\n).*/g);return Kl?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),$u},unput:function($u){var Kl=$u.length,Is=$u.split(/(?:\r\n?|\n)/g);this._input=$u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Kl),this.offset-=Kl;var Ks=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Is.length-1&&(this.yylineno-=Is.length-1);var Bs=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Is?(Is.length===Ks.length?this.yylloc.first_column:0)+Ks[Ks.length-Is.length].length-Is[0].length:this.yylloc.first_column-Kl},this.options.ranges&&(this.yylloc.range=[Bs[0],Bs[0]+this.yyleng-Kl]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function($u){this.unput(this.match.slice($u))},pastInput:function(){var $u=this.matched.substr(0,this.matched.length-this.match.length);return($u.length>20?"...":"")+$u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var $u=this.match;return $u.length<20&&($u+=this._input.substr(0,20-$u.length)),($u.substr(0,20)+($u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var $u=this.pastInput(),Kl=new Array($u.length+1).join("-");return $u+this.upcomingInput()+` @@ -3187,7 +3187,7 @@ g.classGroup line { } `,styles$5=getStyles$6;let edgeCount$2=0;const drawEdge$1=function(eo,to,no,io,so){const ao=function(Oo){switch(Oo){case so.db.relationType.AGGREGATION:return"aggregation";case so.db.relationType.EXTENSION:return"extension";case so.db.relationType.COMPOSITION:return"composition";case so.db.relationType.DEPENDENCY:return"dependency";case so.db.relationType.LOLLIPOP:return"lollipop"}};to.points=to.points.filter(Oo=>!Number.isNaN(Oo.y));const lo=to.points,uo=line$1().x(function(Oo){return Oo.x}).y(function(Oo){return Oo.y}).curve(curveBasis),ho=eo.append("path").attr("d",uo(lo)).attr("id","edge"+edgeCount$2).attr("class","relation");let go="";io.arrowMarkerAbsolute&&(go=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,go=go.replace(/\(/g,"\\("),go=go.replace(/\)/g,"\\)")),no.relation.lineType==1&&ho.attr("class","relation dashed-line"),no.relation.lineType==10&&ho.attr("class","relation dotted-line"),no.relation.type1!=="none"&&ho.attr("marker-start","url("+go+"#"+ao(no.relation.type1)+"Start)"),no.relation.type2!=="none"&&ho.attr("marker-end","url("+go+"#"+ao(no.relation.type2)+"End)");let mo,yo;const So=to.points.length;let _o=utils$1.calcLabelPosition(to.points);mo=_o.x,yo=_o.y;let ko,Co,$o,Ro;if(So%2!==0&&So>1){let Oo=utils$1.calcCardinalityPosition(no.relation.type1!=="none",to.points,to.points[0]),No=utils$1.calcCardinalityPosition(no.relation.type2!=="none",to.points,to.points[So-1]);log$1.debug("cardinality_1_point "+JSON.stringify(Oo)),log$1.debug("cardinality_2_point "+JSON.stringify(No)),ko=Oo.x,Co=Oo.y,$o=No.x,Ro=No.y}if(no.title!==void 0){const Oo=eo.append("g").attr("class","classLabel"),No=Oo.append("text").attr("class","label").attr("x",mo).attr("y",yo).attr("fill","red").attr("text-anchor","middle").text(no.title);window.label=No;const Mo=No.node().getBBox();Oo.insert("rect",":first-child").attr("class","box").attr("x",Mo.x-io.padding/2).attr("y",Mo.y-io.padding/2).attr("width",Mo.width+io.padding).attr("height",Mo.height+io.padding)}log$1.info("Rendering relation "+JSON.stringify(no)),no.relationTitle1!==void 0&&no.relationTitle1!=="none"&&eo.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",ko).attr("y",Co).attr("fill","black").attr("font-size","6").text(no.relationTitle1),no.relationTitle2!==void 0&&no.relationTitle2!=="none"&&eo.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",$o).attr("y",Ro).attr("fill","black").attr("font-size","6").text(no.relationTitle2),edgeCount$2++},drawClass=function(eo,to,no,io){log$1.debug("Rendering class ",to,no);const so=to.id,ao={id:so,label:to.id,width:0,height:0},lo=eo.append("g").attr("id",io.db.lookUpDomId(so)).attr("class","classGroup");let uo;to.link?uo=lo.append("svg:a").attr("xlink:href",to.link).attr("target",to.linkTarget).append("text").attr("y",no.textHeight+no.padding).attr("x",0):uo=lo.append("text").attr("y",no.textHeight+no.padding).attr("x",0);let ho=!0;to.annotations.forEach(function(No){const Mo=uo.append("tspan").text("«"+No+"»");ho||Mo.attr("dy",no.textHeight),ho=!1});let go=getClassTitleString(to);const mo=uo.append("tspan").text(go).attr("class","title");ho||mo.attr("dy",no.textHeight);const yo=uo.node().getBBox().height;let So,_o,ko;if(to.members.length>0){So=lo.append("line").attr("x1",0).attr("y1",no.padding+yo+no.dividerMargin/2).attr("y2",no.padding+yo+no.dividerMargin/2);const No=lo.append("text").attr("x",no.padding).attr("y",yo+no.dividerMargin+no.textHeight).attr("fill","white").attr("class","classText");ho=!0,to.members.forEach(function(Mo){addTspan(No,Mo,ho,no),ho=!1}),_o=No.node().getBBox()}if(to.methods.length>0){ko=lo.append("line").attr("x1",0).attr("y1",no.padding+yo+no.dividerMargin+_o.height).attr("y2",no.padding+yo+no.dividerMargin+_o.height);const No=lo.append("text").attr("x",no.padding).attr("y",yo+2*no.dividerMargin+_o.height+no.textHeight).attr("fill","white").attr("class","classText");ho=!0,to.methods.forEach(function(Mo){addTspan(No,Mo,ho,no),ho=!1})}const Co=lo.node().getBBox();var $o=" ";to.cssClasses.length>0&&($o=$o+to.cssClasses.join(" "));const Oo=lo.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",Co.width+2*no.padding).attr("height",Co.height+no.padding+.5*no.dividerMargin).attr("class",$o).node().getBBox().width;return uo.node().childNodes.forEach(function(No){No.setAttribute("x",(Oo-No.getBBox().width)/2)}),to.tooltip&&uo.insert("title").text(to.tooltip),So&&So.attr("x2",Oo),ko&&ko.attr("x2",Oo),ao.width=Oo,ao.height=Co.height+no.padding+.5*no.dividerMargin,ao},getClassTitleString=function(eo){let to=eo.id;return eo.type&&(to+="<"+parseGenericTypes(eo.type)+">"),to},drawNote$1=function(eo,to,no,io){log$1.debug("Rendering note ",to,no);const so=to.id,ao={id:so,text:to.text,width:0,height:0},lo=eo.append("g").attr("id",so).attr("class","classGroup");let uo=lo.append("text").attr("y",no.textHeight+no.padding).attr("x",0);const ho=JSON.parse(`"${to.text}"`).split(` `);ho.forEach(function(So){log$1.debug(`Adding line: ${So}`),uo.append("tspan").text(So).attr("class","title").attr("dy",no.textHeight)});const go=lo.node().getBBox(),yo=lo.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",go.width+2*no.padding).attr("height",go.height+ho.length*no.textHeight+no.padding+.5*no.dividerMargin).node().getBBox().width;return uo.node().childNodes.forEach(function(So){So.setAttribute("x",(yo-So.getBBox().width)/2)}),ao.width=yo,ao.height=go.height+ho.length*no.textHeight+no.padding+.5*no.dividerMargin,ao},addTspan=function(eo,to,no,io){const{displayText:so,cssStyle:ao}=to.getDisplayDetails(),lo=eo.append("tspan").attr("x",io.padding).text(so);ao!==""&&lo.attr("style",to.cssStyle),no||lo.attr("dy",io.textHeight)},svgDraw$2={getClassTitleString,drawClass,drawEdge:drawEdge$1,drawNote:drawNote$1};let idCache={};const padding$1=20,getGraphId=function(eo){const to=Object.entries(idCache).find(no=>no[1].label===eo);if(to)return to[0]},insertMarkers$1=function(eo){eo.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),eo.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),eo.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),eo.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},draw$9=function(eo,to,no,io){const so=getConfig$2().class;idCache={},log$1.info("Rendering diagram "+eo);const ao=getConfig$2().securityLevel;let lo;ao==="sandbox"&&(lo=select("#i"+to));const uo=select(ao==="sandbox"?lo.nodes()[0].contentDocument.body:"body"),ho=uo.select(`[id='${to}']`);insertMarkers$1(ho);const go=new Graph({multigraph:!0});go.setGraph({isMultiGraph:!0}),go.setDefaultEdgeLabel(function(){return{}});const mo=io.db.getClasses(),yo=Object.keys(mo);for(const Oo of yo){const No=mo[Oo],Mo=svgDraw$2.drawClass(ho,No,so,io);idCache[Mo.id]=Mo,go.setNode(Mo.id,Mo),log$1.info("Org height: "+Mo.height)}io.db.getRelations().forEach(function(Oo){log$1.info("tjoho"+getGraphId(Oo.id1)+getGraphId(Oo.id2)+JSON.stringify(Oo)),go.setEdge(getGraphId(Oo.id1),getGraphId(Oo.id2),{relation:Oo},Oo.title||"DEFAULT")}),io.db.getNotes().forEach(function(Oo){log$1.debug(`Adding note: ${JSON.stringify(Oo)}`);const No=svgDraw$2.drawNote(ho,Oo,so,io);idCache[No.id]=No,go.setNode(No.id,No),Oo.class&&Oo.class in mo&&go.setEdge(Oo.id,getGraphId(Oo.class),{relation:{id1:Oo.id,id2:Oo.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),layout$2(go),go.nodes().forEach(function(Oo){Oo!==void 0&&go.node(Oo)!==void 0&&(log$1.debug("Node "+Oo+": "+JSON.stringify(go.node(Oo))),uo.select("#"+(io.db.lookUpDomId(Oo)||Oo)).attr("transform","translate("+(go.node(Oo).x-go.node(Oo).width/2)+","+(go.node(Oo).y-go.node(Oo).height/2)+" )"))}),go.edges().forEach(function(Oo){Oo!==void 0&&go.edge(Oo)!==void 0&&(log$1.debug("Edge "+Oo.v+" -> "+Oo.w+": "+JSON.stringify(go.edge(Oo))),svgDraw$2.drawEdge(ho,go.edge(Oo),go.edge(Oo).relation,so,io))});const ko=ho.node().getBBox(),Co=ko.width+padding$1*2,$o=ko.height+padding$1*2;configureSvgSize(ho,$o,Co,so.useMaxWidth);const Ro=`${ko.x-padding$1} ${ko.y-padding$1} ${Co} ${$o}`;log$1.debug(`viewBox ${Ro}`),ho.attr("viewBox",Ro)},renderer$a={draw:draw$9},diagram$9={parser:parser$1$6,db:db$7,renderer:renderer$a,styles:styles$5,init:eo=>{eo.class||(eo.class={}),eo.class.arrowMarkerAbsolute=eo.arrowMarkerAbsolute,db$7.clear()}},classDiagram30eddba6=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$9},Symbol.toStringTag,{value:"Module"})),sanitizeText=eo=>common$1.sanitizeText(eo,getConfig$2());let conf$3={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const addNamespaces=function(eo,to,no,io){const so=Object.keys(eo);log$1.info("keys:",so),log$1.info(eo),so.forEach(function(ao){var lo,uo;const ho=eo[ao],mo={shape:"rect",id:ho.id,domId:ho.domId,labelText:sanitizeText(ho.id),labelStyle:"",style:"fill: none; stroke: black",padding:((lo=getConfig$2().flowchart)==null?void 0:lo.padding)??((uo=getConfig$2().class)==null?void 0:uo.padding)};to.setNode(ho.id,mo),addClasses(ho.classes,to,no,io,ho.id),log$1.info("setNode",mo)})},addClasses=function(eo,to,no,io,so){const ao=Object.keys(eo);log$1.info("keys:",ao),log$1.info(eo),ao.filter(lo=>eo[lo].parent==so).forEach(function(lo){var uo,ho;const go=eo[lo],mo=go.cssClasses.join(" "),yo=getStylesFromArray(go.styles),So=go.label??go.id,_o=0,ko="class_box",Co={labelStyle:yo.labelStyle,shape:ko,labelText:sanitizeText(So),classData:go,rx:_o,ry:_o,class:mo,style:yo.style,id:go.id,domId:go.domId,tooltip:io.db.getTooltip(go.id,so)||"",haveCallback:go.haveCallback,link:go.link,width:go.type==="group"?500:void 0,type:go.type,padding:((uo=getConfig$2().flowchart)==null?void 0:uo.padding)??((ho=getConfig$2().class)==null?void 0:ho.padding)};to.setNode(go.id,Co),so&&to.setParent(go.id,so),log$1.info("setNode",Co)})},addNotes=function(eo,to,no,io){log$1.info(eo),eo.forEach(function(so,ao){var lo,uo;const ho=so,go="",mo={labelStyle:"",style:""},yo=ho.text,So=0,_o="note",ko={labelStyle:mo.labelStyle,shape:_o,labelText:sanitizeText(yo),noteData:ho,rx:So,ry:So,class:go,style:mo.style,id:ho.id,domId:ho.id,tooltip:"",type:"note",padding:((lo=getConfig$2().flowchart)==null?void 0:lo.padding)??((uo=getConfig$2().class)==null?void 0:uo.padding)};if(to.setNode(ho.id,ko),log$1.info("setNode",ko),!ho.class||!(ho.class in io))return;const Co=no+ao,$o={id:`edgeNote${Co}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:interpolateToCurve(conf$3.curve,curveLinear)};to.setEdge(ho.id,ho.class,$o,Co)})},addRelations=function(eo,to){const no=getConfig$2().flowchart;let io=0;eo.forEach(function(so){var ao;io++;const lo={classes:"relation",pattern:so.relation.lineType==1?"dashed":"solid",id:`id_${so.id1}_${so.id2}_${io}`,arrowhead:so.type==="arrow_open"?"none":"normal",startLabelRight:so.relationTitle1==="none"?"":so.relationTitle1,endLabelLeft:so.relationTitle2==="none"?"":so.relationTitle2,arrowTypeStart:getArrowMarker(so.relation.type1),arrowTypeEnd:getArrowMarker(so.relation.type2),style:"fill:none",labelStyle:"",curve:interpolateToCurve(no==null?void 0:no.curve,curveLinear)};if(log$1.info(lo,so),so.style!==void 0){const uo=getStylesFromArray(so.style);lo.style=uo.style,lo.labelStyle=uo.labelStyle}so.text=so.title,so.text===void 0?so.style!==void 0&&(lo.arrowheadStyle="fill: #333"):(lo.arrowheadStyle="fill: #333",lo.labelpos="c",((ao=getConfig$2().flowchart)==null?void 0:ao.htmlLabels)??getConfig$2().htmlLabels?(lo.labelType="html",lo.label=''+so.text+""):(lo.labelType="text",lo.label=so.text.replace(common$1.lineBreakRegex,` -`),so.style===void 0&&(lo.style=lo.style||"stroke: #333; stroke-width: 1.5px;fill:none"),lo.labelStyle=lo.labelStyle.replace("color:","fill:"))),to.setEdge(so.id1,so.id2,lo,io)})},setConf$3=function(eo){conf$3={...conf$3,...eo}},draw$8=async function(eo,to,no,io){log$1.info("Drawing class - ",to);const so=getConfig$2().flowchart??getConfig$2().class,ao=getConfig$2().securityLevel;log$1.info("config:",so);const lo=(so==null?void 0:so.nodeSpacing)??50,uo=(so==null?void 0:so.rankSpacing)??50,ho=new Graph({multigraph:!0,compound:!0}).setGraph({rankdir:io.db.getDirection(),nodesep:lo,ranksep:uo,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),go=io.db.getNamespaces(),mo=io.db.getClasses(),yo=io.db.getRelations(),So=io.db.getNotes();log$1.info(yo),addNamespaces(go,ho,to,io),addClasses(mo,ho,to,io),addRelations(yo,ho),addNotes(So,ho,yo.length+1,mo);let _o;ao==="sandbox"&&(_o=select("#i"+to));const ko=select(ao==="sandbox"?_o.nodes()[0].contentDocument.body:"body"),Co=ko.select(`[id="${to}"]`),$o=ko.select("#"+to+" g");if(await render($o,ho,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",to),utils$1.insertTitle(Co,"classTitleText",(so==null?void 0:so.titleTopMargin)??5,io.db.getDiagramTitle()),setupGraphViewbox$1(ho,Co,so==null?void 0:so.diagramPadding,so==null?void 0:so.useMaxWidth),!(so!=null&&so.htmlLabels)){const Ro=ao==="sandbox"?_o.nodes()[0].contentDocument:document,Oo=Ro.querySelectorAll('[id="'+to+'"] .edgeLabel .label');for(const No of Oo){const Mo=No.getBBox(),Bo=Ro.createElementNS("http://www.w3.org/2000/svg","rect");Bo.setAttribute("rx",0),Bo.setAttribute("ry",0),Bo.setAttribute("width",Mo.width),Bo.setAttribute("height",Mo.height),No.insertBefore(Bo,No.firstChild)}}};function getArrowMarker(eo){let to;switch(eo){case 0:to="aggregation";break;case 1:to="extension";break;case 2:to="composition";break;case 3:to="dependency";break;case 4:to="lollipop";break;default:to="none"}return to}const renderer$9={setConf:setConf$3,draw:draw$8},diagram$8={parser:parser$1$6,db:db$7,renderer:renderer$9,styles:styles$5,init:eo=>{eo.class||(eo.class={}),eo.class.arrowMarkerAbsolute=eo.arrowMarkerAbsolute,db$7.clear()}},classDiagramV2F2df5561=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$8},Symbol.toStringTag,{value:"Module"}));var parser$6=function(){var eo=function(hs,gs,ys,vs){for(ys=ys||{},vs=hs.length;vs--;ys[hs[vs]]=gs);return ys},to=[1,2],no=[1,3],io=[1,4],so=[2,4],ao=[1,9],lo=[1,11],uo=[1,15],ho=[1,16],go=[1,17],mo=[1,18],yo=[1,30],So=[1,19],_o=[1,20],ko=[1,21],Co=[1,22],$o=[1,23],Ro=[1,25],Oo=[1,26],No=[1,27],Mo=[1,28],Bo=[1,29],Po=[1,32],Lo=[1,33],Go=[1,34],Do=[1,35],Uo=[1,31],Ho=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Yo=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],qo=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Jo={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(gs,ys,vs,ks,Os,Ts,Xs){var Ws=Ts.length-1;switch(Os){case 3:return ks.setRootDoc(Ts[Ws]),Ts[Ws];case 4:this.$=[];break;case 5:Ts[Ws]!="nl"&&(Ts[Ws-1].push(Ts[Ws]),this.$=Ts[Ws-1]);break;case 6:case 7:this.$=Ts[Ws];break;case 8:this.$="nl";break;case 11:this.$=Ts[Ws];break;case 12:const Fs=Ts[Ws-1];Fs.description=ks.trimColon(Ts[Ws]),this.$=Fs;break;case 13:this.$={stmt:"relation",state1:Ts[Ws-2],state2:Ts[Ws]};break;case 14:const Js=ks.trimColon(Ts[Ws]);this.$={stmt:"relation",state1:Ts[Ws-3],state2:Ts[Ws-1],description:Js};break;case 18:this.$={stmt:"state",id:Ts[Ws-3],type:"default",description:"",doc:Ts[Ws-1]};break;case 19:var Ps=Ts[Ws],qs=Ts[Ws-2].trim();if(Ts[Ws].match(":")){var ga=Ts[Ws].split(":");Ps=ga[0],qs=[qs,ga[1]]}this.$={stmt:"state",id:Ps,type:"default",description:qs};break;case 20:this.$={stmt:"state",id:Ts[Ws-3],type:"default",description:Ts[Ws-5],doc:Ts[Ws-1]};break;case 21:this.$={stmt:"state",id:Ts[Ws],type:"fork"};break;case 22:this.$={stmt:"state",id:Ts[Ws],type:"join"};break;case 23:this.$={stmt:"state",id:Ts[Ws],type:"choice"};break;case 24:this.$={stmt:"state",id:ks.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:Ts[Ws-1].trim(),note:{position:Ts[Ws-2].trim(),text:Ts[Ws].trim()}};break;case 28:this.$=Ts[Ws].trim(),ks.setAccTitle(this.$);break;case 29:case 30:this.$=Ts[Ws].trim(),ks.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:Ts[Ws-1].trim(),classes:Ts[Ws].trim()};break;case 33:this.$={stmt:"applyClass",id:Ts[Ws-1].trim(),styleClass:Ts[Ws].trim()};break;case 34:ks.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:ks.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:ks.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:ks.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:Ts[Ws].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:Ts[Ws-2].trim(),classes:[Ts[Ws].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:Ts[Ws-2].trim(),classes:[Ts[Ws].trim()],type:"default",description:""};break}},table:[{3:1,4:to,5:no,6:io},{1:[3]},{3:5,4:to,5:no,6:io},{3:6,4:to,5:no,6:io},eo([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],so,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:ao,5:lo,8:8,9:10,10:12,11:13,12:14,15:uo,16:ho,18:go,21:mo,23:yo,24:So,25:_o,26:ko,27:Co,28:$o,31:24,32:Ro,34:Oo,36:No,37:Mo,41:Bo,44:Po,45:Lo,46:Go,47:Do,50:Uo},eo(Ho,[2,5]),{9:36,10:12,11:13,12:14,15:uo,16:ho,18:go,21:mo,23:yo,24:So,25:_o,26:ko,27:Co,28:$o,31:24,32:Ro,34:Oo,36:No,37:Mo,41:Bo,44:Po,45:Lo,46:Go,47:Do,50:Uo},eo(Ho,[2,7]),eo(Ho,[2,8]),eo(Ho,[2,9]),eo(Ho,[2,10]),eo(Ho,[2,11],{13:[1,37],14:[1,38]}),eo(Ho,[2,15]),{17:[1,39]},eo(Ho,[2,17],{19:[1,40]}),{22:[1,41]},eo(Ho,[2,21]),eo(Ho,[2,22]),eo(Ho,[2,23]),eo(Ho,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},eo(Ho,[2,27]),{33:[1,46]},{35:[1,47]},eo(Ho,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},eo(Yo,[2,40],{51:[1,51]}),eo(Yo,[2,41],{51:[1,52]}),eo(Ho,[2,34]),eo(Ho,[2,35]),eo(Ho,[2,36]),eo(Ho,[2,37]),eo(Ho,[2,6]),eo(Ho,[2,12]),{12:53,23:yo,50:Uo},eo(Ho,[2,16]),eo(qo,so,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},eo(Ho,[2,28]),eo(Ho,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},eo(Ho,[2,13],{13:[1,63]}),{4:ao,5:lo,8:8,9:10,10:12,11:13,12:14,15:uo,16:ho,18:go,20:[1,64],21:mo,23:yo,24:So,25:_o,26:ko,27:Co,28:$o,31:24,32:Ro,34:Oo,36:No,37:Mo,41:Bo,44:Po,45:Lo,46:Go,47:Do,50:Uo},eo(Ho,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},eo(Ho,[2,31]),eo(Ho,[2,32]),eo(Ho,[2,33]),eo(Yo,[2,42]),eo(Yo,[2,43]),eo(Ho,[2,14]),eo(Ho,[2,18]),eo(qo,so,{7:68}),eo(Ho,[2,25]),eo(Ho,[2,26]),{4:ao,5:lo,8:8,9:10,10:12,11:13,12:14,15:uo,16:ho,18:go,20:[1,69],21:mo,23:yo,24:So,25:_o,26:ko,27:Co,28:$o,31:24,32:Ro,34:Oo,36:No,37:Mo,41:Bo,44:Po,45:Lo,46:Go,47:Do,50:Uo},eo(Ho,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(gs,ys){if(ys.recoverable)this.trace(gs);else{var vs=new Error(gs);throw vs.hash=ys,vs}},parse:function(gs){var ys=this,vs=[0],ks=[],Os=[null],Ts=[],Xs=this.table,Ws="",Ps=0,qs=0,ga=2,Fs=1,Js=Ts.slice.call(arguments,1),Vs=Object.create(this.lexer),El={yy:{}};for(var yl in this.yy)Object.prototype.hasOwnProperty.call(this.yy,yl)&&(El.yy[yl]=this.yy[yl]);Vs.setInput(gs,El.yy),El.yy.lexer=Vs,El.yy.parser=this,typeof Vs.yylloc>"u"&&(Vs.yylloc={});var Gl=Vs.yylloc;Ts.push(Gl);var Qs=Vs.options&&Vs.options.ranges;typeof El.yy.parseError=="function"?this.parseError=El.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function du(){var Bs;return Bs=ks.pop()||Vs.lex()||Fs,typeof Bs!="number"&&(Bs instanceof Array&&(ks=Bs,Bs=ks.pop()),Bs=ys.symbols_[Bs]||Bs),Bs}for(var Ol,Fu,ju,F1,y1={},r1,$u,Kl,Is;;){if(Fu=vs[vs.length-1],this.defaultActions[Fu]?ju=this.defaultActions[Fu]:((Ol===null||typeof Ol>"u")&&(Ol=du()),ju=Xs[Fu]&&Xs[Fu][Ol]),typeof ju>"u"||!ju.length||!ju[0]){var Ks="";Is=[];for(r1 in Xs[Fu])this.terminals_[r1]&&r1>ga&&Is.push("'"+this.terminals_[r1]+"'");Vs.showPosition?Ks="Parse error on line "+(Ps+1)+`: +`),so.style===void 0&&(lo.style=lo.style||"stroke: #333; stroke-width: 1.5px;fill:none"),lo.labelStyle=lo.labelStyle.replace("color:","fill:"))),to.setEdge(so.id1,so.id2,lo,io)})},setConf$3=function(eo){conf$3={...conf$3,...eo}},draw$8=async function(eo,to,no,io){log$1.info("Drawing class - ",to);const so=getConfig$2().flowchart??getConfig$2().class,ao=getConfig$2().securityLevel;log$1.info("config:",so);const lo=(so==null?void 0:so.nodeSpacing)??50,uo=(so==null?void 0:so.rankSpacing)??50,ho=new Graph({multigraph:!0,compound:!0}).setGraph({rankdir:io.db.getDirection(),nodesep:lo,ranksep:uo,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),go=io.db.getNamespaces(),mo=io.db.getClasses(),yo=io.db.getRelations(),So=io.db.getNotes();log$1.info(yo),addNamespaces(go,ho,to,io),addClasses(mo,ho,to,io),addRelations(yo,ho),addNotes(So,ho,yo.length+1,mo);let _o;ao==="sandbox"&&(_o=select("#i"+to));const ko=select(ao==="sandbox"?_o.nodes()[0].contentDocument.body:"body"),Co=ko.select(`[id="${to}"]`),$o=ko.select("#"+to+" g");if(await render($o,ho,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",to),utils$1.insertTitle(Co,"classTitleText",(so==null?void 0:so.titleTopMargin)??5,io.db.getDiagramTitle()),setupGraphViewbox$1(ho,Co,so==null?void 0:so.diagramPadding,so==null?void 0:so.useMaxWidth),!(so!=null&&so.htmlLabels)){const Ro=ao==="sandbox"?_o.nodes()[0].contentDocument:document,Oo=Ro.querySelectorAll('[id="'+to+'"] .edgeLabel .label');for(const No of Oo){const Mo=No.getBBox(),Bo=Ro.createElementNS("http://www.w3.org/2000/svg","rect");Bo.setAttribute("rx",0),Bo.setAttribute("ry",0),Bo.setAttribute("width",Mo.width),Bo.setAttribute("height",Mo.height),No.insertBefore(Bo,No.firstChild)}}};function getArrowMarker(eo){let to;switch(eo){case 0:to="aggregation";break;case 1:to="extension";break;case 2:to="composition";break;case 3:to="dependency";break;case 4:to="lollipop";break;default:to="none"}return to}const renderer$9={setConf:setConf$3,draw:draw$8},diagram$8={parser:parser$1$6,db:db$7,renderer:renderer$9,styles:styles$5,init:eo=>{eo.class||(eo.class={}),eo.class.arrowMarkerAbsolute=eo.arrowMarkerAbsolute,db$7.clear()}},classDiagramV2F2df5561=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$8},Symbol.toStringTag,{value:"Module"}));var parser$6=function(){var eo=function(hs,gs,ys,vs){for(ys=ys||{},vs=hs.length;vs--;ys[hs[vs]]=gs);return ys},to=[1,2],no=[1,3],io=[1,4],so=[2,4],ao=[1,9],lo=[1,11],uo=[1,15],ho=[1,16],go=[1,17],mo=[1,18],yo=[1,30],So=[1,19],_o=[1,20],ko=[1,21],Co=[1,22],$o=[1,23],Ro=[1,25],Oo=[1,26],No=[1,27],Mo=[1,28],Bo=[1,29],Fo=[1,32],Lo=[1,33],Go=[1,34],Do=[1,35],Uo=[1,31],Ho=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Yo=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],qo=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Jo={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(gs,ys,vs,ks,Os,Ts,Xs){var Ws=Ts.length-1;switch(Os){case 3:return ks.setRootDoc(Ts[Ws]),Ts[Ws];case 4:this.$=[];break;case 5:Ts[Ws]!="nl"&&(Ts[Ws-1].push(Ts[Ws]),this.$=Ts[Ws-1]);break;case 6:case 7:this.$=Ts[Ws];break;case 8:this.$="nl";break;case 11:this.$=Ts[Ws];break;case 12:const Fs=Ts[Ws-1];Fs.description=ks.trimColon(Ts[Ws]),this.$=Fs;break;case 13:this.$={stmt:"relation",state1:Ts[Ws-2],state2:Ts[Ws]};break;case 14:const Js=ks.trimColon(Ts[Ws]);this.$={stmt:"relation",state1:Ts[Ws-3],state2:Ts[Ws-1],description:Js};break;case 18:this.$={stmt:"state",id:Ts[Ws-3],type:"default",description:"",doc:Ts[Ws-1]};break;case 19:var Ps=Ts[Ws],qs=Ts[Ws-2].trim();if(Ts[Ws].match(":")){var ga=Ts[Ws].split(":");Ps=ga[0],qs=[qs,ga[1]]}this.$={stmt:"state",id:Ps,type:"default",description:qs};break;case 20:this.$={stmt:"state",id:Ts[Ws-3],type:"default",description:Ts[Ws-5],doc:Ts[Ws-1]};break;case 21:this.$={stmt:"state",id:Ts[Ws],type:"fork"};break;case 22:this.$={stmt:"state",id:Ts[Ws],type:"join"};break;case 23:this.$={stmt:"state",id:Ts[Ws],type:"choice"};break;case 24:this.$={stmt:"state",id:ks.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:Ts[Ws-1].trim(),note:{position:Ts[Ws-2].trim(),text:Ts[Ws].trim()}};break;case 28:this.$=Ts[Ws].trim(),ks.setAccTitle(this.$);break;case 29:case 30:this.$=Ts[Ws].trim(),ks.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:Ts[Ws-1].trim(),classes:Ts[Ws].trim()};break;case 33:this.$={stmt:"applyClass",id:Ts[Ws-1].trim(),styleClass:Ts[Ws].trim()};break;case 34:ks.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:ks.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:ks.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:ks.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:Ts[Ws].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:Ts[Ws-2].trim(),classes:[Ts[Ws].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:Ts[Ws-2].trim(),classes:[Ts[Ws].trim()],type:"default",description:""};break}},table:[{3:1,4:to,5:no,6:io},{1:[3]},{3:5,4:to,5:no,6:io},{3:6,4:to,5:no,6:io},eo([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],so,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:ao,5:lo,8:8,9:10,10:12,11:13,12:14,15:uo,16:ho,18:go,21:mo,23:yo,24:So,25:_o,26:ko,27:Co,28:$o,31:24,32:Ro,34:Oo,36:No,37:Mo,41:Bo,44:Fo,45:Lo,46:Go,47:Do,50:Uo},eo(Ho,[2,5]),{9:36,10:12,11:13,12:14,15:uo,16:ho,18:go,21:mo,23:yo,24:So,25:_o,26:ko,27:Co,28:$o,31:24,32:Ro,34:Oo,36:No,37:Mo,41:Bo,44:Fo,45:Lo,46:Go,47:Do,50:Uo},eo(Ho,[2,7]),eo(Ho,[2,8]),eo(Ho,[2,9]),eo(Ho,[2,10]),eo(Ho,[2,11],{13:[1,37],14:[1,38]}),eo(Ho,[2,15]),{17:[1,39]},eo(Ho,[2,17],{19:[1,40]}),{22:[1,41]},eo(Ho,[2,21]),eo(Ho,[2,22]),eo(Ho,[2,23]),eo(Ho,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},eo(Ho,[2,27]),{33:[1,46]},{35:[1,47]},eo(Ho,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},eo(Yo,[2,40],{51:[1,51]}),eo(Yo,[2,41],{51:[1,52]}),eo(Ho,[2,34]),eo(Ho,[2,35]),eo(Ho,[2,36]),eo(Ho,[2,37]),eo(Ho,[2,6]),eo(Ho,[2,12]),{12:53,23:yo,50:Uo},eo(Ho,[2,16]),eo(qo,so,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},eo(Ho,[2,28]),eo(Ho,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},eo(Ho,[2,13],{13:[1,63]}),{4:ao,5:lo,8:8,9:10,10:12,11:13,12:14,15:uo,16:ho,18:go,20:[1,64],21:mo,23:yo,24:So,25:_o,26:ko,27:Co,28:$o,31:24,32:Ro,34:Oo,36:No,37:Mo,41:Bo,44:Fo,45:Lo,46:Go,47:Do,50:Uo},eo(Ho,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},eo(Ho,[2,31]),eo(Ho,[2,32]),eo(Ho,[2,33]),eo(Yo,[2,42]),eo(Yo,[2,43]),eo(Ho,[2,14]),eo(Ho,[2,18]),eo(qo,so,{7:68}),eo(Ho,[2,25]),eo(Ho,[2,26]),{4:ao,5:lo,8:8,9:10,10:12,11:13,12:14,15:uo,16:ho,18:go,20:[1,69],21:mo,23:yo,24:So,25:_o,26:ko,27:Co,28:$o,31:24,32:Ro,34:Oo,36:No,37:Mo,41:Bo,44:Fo,45:Lo,46:Go,47:Do,50:Uo},eo(Ho,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(gs,ys){if(ys.recoverable)this.trace(gs);else{var vs=new Error(gs);throw vs.hash=ys,vs}},parse:function(gs){var ys=this,vs=[0],ks=[],Os=[null],Ts=[],Xs=this.table,Ws="",Ps=0,qs=0,ga=2,Fs=1,Js=Ts.slice.call(arguments,1),Vs=Object.create(this.lexer),El={yy:{}};for(var yl in this.yy)Object.prototype.hasOwnProperty.call(this.yy,yl)&&(El.yy[yl]=this.yy[yl]);Vs.setInput(gs,El.yy),El.yy.lexer=Vs,El.yy.parser=this,typeof Vs.yylloc>"u"&&(Vs.yylloc={});var Gl=Vs.yylloc;Ts.push(Gl);var Qs=Vs.options&&Vs.options.ranges;typeof El.yy.parseError=="function"?this.parseError=El.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function du(){var Bs;return Bs=ks.pop()||Vs.lex()||Fs,typeof Bs!="number"&&(Bs instanceof Array&&(ks=Bs,Bs=ks.pop()),Bs=ys.symbols_[Bs]||Bs),Bs}for(var Ol,Fu,ju,F1,y1={},r1,$u,Kl,Is;;){if(Fu=vs[vs.length-1],this.defaultActions[Fu]?ju=this.defaultActions[Fu]:((Ol===null||typeof Ol>"u")&&(Ol=du()),ju=Xs[Fu]&&Xs[Fu][Ol]),typeof ju>"u"||!ju.length||!ju[0]){var Ks="";Is=[];for(r1 in Xs[Fu])this.terminals_[r1]&&r1>ga&&Is.push("'"+this.terminals_[r1]+"'");Vs.showPosition?Ks="Parse error on line "+(Ps+1)+`: `+Vs.showPosition()+` Expecting `+Is.join(", ")+", got '"+(this.terminals_[Ol]||Ol)+"'":Ks="Parse error on line "+(Ps+1)+": Unexpected "+(Ol==Fs?"end of input":"'"+(this.terminals_[Ol]||Ol)+"'"),this.parseError(Ks,{text:Vs.match,token:this.terminals_[Ol]||Ol,line:Vs.yylineno,loc:Gl,expected:Is})}if(ju[0]instanceof Array&&ju.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fu+", token: "+Ol);switch(ju[0]){case 1:vs.push(Ol),Os.push(Vs.yytext),Ts.push(Vs.yylloc),vs.push(ju[1]),Ol=null,qs=Vs.yyleng,Ws=Vs.yytext,Ps=Vs.yylineno,Gl=Vs.yylloc;break;case 2:if($u=this.productions_[ju[1]][1],y1.$=Os[Os.length-$u],y1._$={first_line:Ts[Ts.length-($u||1)].first_line,last_line:Ts[Ts.length-1].last_line,first_column:Ts[Ts.length-($u||1)].first_column,last_column:Ts[Ts.length-1].last_column},Qs&&(y1._$.range=[Ts[Ts.length-($u||1)].range[0],Ts[Ts.length-1].range[1]]),F1=this.performAction.apply(y1,[Ws,qs,Ps,El.yy,ju[1],Os,Ts].concat(Js)),typeof F1<"u")return F1;$u&&(vs=vs.slice(0,-1*$u*2),Os=Os.slice(0,-1*$u),Ts=Ts.slice(0,-1*$u)),vs.push(this.productions_[ju[1]][0]),Os.push(y1.$),Ts.push(y1._$),Kl=Xs[vs[vs.length-2]][vs[vs.length-1]],vs.push(Kl);break;case 3:return!0}}return!0}},ps=function(){var hs={EOF:1,parseError:function(ys,vs){if(this.yy.parser)this.yy.parser.parseError(ys,vs);else throw new Error(ys)},setInput:function(gs,ys){return this.yy=ys||this.yy||{},this._input=gs,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var gs=this._input[0];this.yytext+=gs,this.yyleng++,this.offset++,this.match+=gs,this.matched+=gs;var ys=gs.match(/(?:\r\n?|\n).*/g);return ys?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),gs},unput:function(gs){var ys=gs.length,vs=gs.split(/(?:\r\n?|\n)/g);this._input=gs+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ys),this.offset-=ys;var ks=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),vs.length-1&&(this.yylineno-=vs.length-1);var Os=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:vs?(vs.length===ks.length?this.yylloc.first_column:0)+ks[ks.length-vs.length].length-vs[0].length:this.yylloc.first_column-ys},this.options.ranges&&(this.yylloc.range=[Os[0],Os[0]+this.yyleng-ys]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(gs){this.unput(this.match.slice(gs))},pastInput:function(){var gs=this.matched.substr(0,this.matched.length-this.match.length);return(gs.length>20?"...":"")+gs.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var gs=this.match;return gs.length<20&&(gs+=this._input.substr(0,20-gs.length)),(gs.substr(0,20)+(gs.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var gs=this.pastInput(),ys=new Array(gs.length+1).join("-");return gs+this.upcomingInput()+` @@ -3393,7 +3393,7 @@ g.stateGroup line { font-size: 18px; fill: ${eo.textColor}; } -`,styles$4=getStyles$5,drawStartState=eo=>eo.append("circle").attr("class","start-state").attr("r",getConfig$2().state.sizeUnit).attr("cx",getConfig$2().state.padding+getConfig$2().state.sizeUnit).attr("cy",getConfig$2().state.padding+getConfig$2().state.sizeUnit),drawDivider=eo=>eo.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",getConfig$2().state.textHeight).attr("class","divider").attr("x2",getConfig$2().state.textHeight*2).attr("y1",0).attr("y2",0),drawSimpleState=(eo,to)=>{const no=eo.append("text").attr("x",2*getConfig$2().state.padding).attr("y",getConfig$2().state.textHeight+2*getConfig$2().state.padding).attr("font-size",getConfig$2().state.fontSize).attr("class","state-title").text(to.id),io=no.node().getBBox();return eo.insert("rect",":first-child").attr("x",getConfig$2().state.padding).attr("y",getConfig$2().state.padding).attr("width",io.width+2*getConfig$2().state.padding).attr("height",io.height+2*getConfig$2().state.padding).attr("rx",getConfig$2().state.radius),no},drawDescrState=(eo,to)=>{const no=function(So,_o,ko){const Co=So.append("tspan").attr("x",2*getConfig$2().state.padding).text(_o);ko||Co.attr("dy",getConfig$2().state.textHeight)},so=eo.append("text").attr("x",2*getConfig$2().state.padding).attr("y",getConfig$2().state.textHeight+1.3*getConfig$2().state.padding).attr("font-size",getConfig$2().state.fontSize).attr("class","state-title").text(to.descriptions[0]).node().getBBox(),ao=so.height,lo=eo.append("text").attr("x",getConfig$2().state.padding).attr("y",ao+getConfig$2().state.padding*.4+getConfig$2().state.dividerMargin+getConfig$2().state.textHeight).attr("class","state-description");let uo=!0,ho=!0;to.descriptions.forEach(function(So){uo||(no(lo,So,ho),ho=!1),uo=!1});const go=eo.append("line").attr("x1",getConfig$2().state.padding).attr("y1",getConfig$2().state.padding+ao+getConfig$2().state.dividerMargin/2).attr("y2",getConfig$2().state.padding+ao+getConfig$2().state.dividerMargin/2).attr("class","descr-divider"),mo=lo.node().getBBox(),yo=Math.max(mo.width,so.width);return go.attr("x2",yo+3*getConfig$2().state.padding),eo.insert("rect",":first-child").attr("x",getConfig$2().state.padding).attr("y",getConfig$2().state.padding).attr("width",yo+2*getConfig$2().state.padding).attr("height",mo.height+ao+2*getConfig$2().state.padding).attr("rx",getConfig$2().state.radius),eo},addTitleAndBox=(eo,to,no)=>{const io=getConfig$2().state.padding,so=2*getConfig$2().state.padding,ao=eo.node().getBBox(),lo=ao.width,uo=ao.x,ho=eo.append("text").attr("x",0).attr("y",getConfig$2().state.titleShift).attr("font-size",getConfig$2().state.fontSize).attr("class","state-title").text(to.id),mo=ho.node().getBBox().width+so;let yo=Math.max(mo,lo);yo===lo&&(yo=yo+so);let So;const _o=eo.node().getBBox();to.doc,So=uo-io,mo>lo&&(So=(lo-yo)/2+io),Math.abs(uo-_o.x)lo&&(So=uo-(mo-lo)/2);const ko=1-getConfig$2().state.textHeight;return eo.insert("rect",":first-child").attr("x",So).attr("y",ko).attr("class",no?"alt-composit":"composit").attr("width",yo).attr("height",_o.height+getConfig$2().state.textHeight+getConfig$2().state.titleShift+1).attr("rx","0"),ho.attr("x",So+io),mo<=lo&&ho.attr("x",uo+(yo-so)/2-mo/2+io),eo.insert("rect",":first-child").attr("x",So).attr("y",getConfig$2().state.titleShift-getConfig$2().state.textHeight-getConfig$2().state.padding).attr("width",yo).attr("height",getConfig$2().state.textHeight*3).attr("rx",getConfig$2().state.radius),eo.insert("rect",":first-child").attr("x",So).attr("y",getConfig$2().state.titleShift-getConfig$2().state.textHeight-getConfig$2().state.padding).attr("width",yo).attr("height",_o.height+3+2*getConfig$2().state.textHeight).attr("rx",getConfig$2().state.radius),eo},drawEndState=eo=>(eo.append("circle").attr("class","end-state-outer").attr("r",getConfig$2().state.sizeUnit+getConfig$2().state.miniPadding).attr("cx",getConfig$2().state.padding+getConfig$2().state.sizeUnit+getConfig$2().state.miniPadding).attr("cy",getConfig$2().state.padding+getConfig$2().state.sizeUnit+getConfig$2().state.miniPadding),eo.append("circle").attr("class","end-state-inner").attr("r",getConfig$2().state.sizeUnit).attr("cx",getConfig$2().state.padding+getConfig$2().state.sizeUnit+2).attr("cy",getConfig$2().state.padding+getConfig$2().state.sizeUnit+2)),drawForkJoinState=(eo,to)=>{let no=getConfig$2().state.forkWidth,io=getConfig$2().state.forkHeight;if(to.parentId){let so=no;no=io,io=so}return eo.append("rect").style("stroke","black").style("fill","black").attr("width",no).attr("height",io).attr("x",getConfig$2().state.padding).attr("y",getConfig$2().state.padding)},_drawLongText=(eo,to,no,io)=>{let so=0;const ao=io.append("text");ao.style("text-anchor","start"),ao.attr("class","noteText");let lo=eo.replace(/\r\n/g,"
");lo=lo.replace(/\n/g,"
");const uo=lo.split(common$1.lineBreakRegex);let ho=1.25*getConfig$2().state.noteMargin;for(const go of uo){const mo=go.trim();if(mo.length>0){const yo=ao.append("tspan");if(yo.text(mo),ho===0){const So=yo.node().getBBox();ho+=So.height}so+=ho,yo.attr("x",to+getConfig$2().state.noteMargin),yo.attr("y",no+so+1.25*getConfig$2().state.noteMargin)}}return{textWidth:ao.node().getBBox().width,textHeight:so}},drawNote=(eo,to)=>{to.attr("class","state-note");const no=to.append("rect").attr("x",0).attr("y",getConfig$2().state.padding),io=to.append("g"),{textWidth:so,textHeight:ao}=_drawLongText(eo,0,0,io);return no.attr("height",ao+2*getConfig$2().state.noteMargin),no.attr("width",so+getConfig$2().state.noteMargin*2),no},drawState=function(eo,to){const no=to.id,io={id:no,label:to.id,width:0,height:0},so=eo.append("g").attr("id",no).attr("class","stateGroup");to.type==="start"&&drawStartState(so),to.type==="end"&&drawEndState(so),(to.type==="fork"||to.type==="join")&&drawForkJoinState(so,to),to.type==="note"&&drawNote(to.note.text,so),to.type==="divider"&&drawDivider(so),to.type==="default"&&to.descriptions.length===0&&drawSimpleState(so,to),to.type==="default"&&to.descriptions.length>0&&drawDescrState(so,to);const ao=so.node().getBBox();return io.width=ao.width+2*getConfig$2().state.padding,io.height=ao.height+2*getConfig$2().state.padding,io};let edgeCount$1=0;const drawEdge=function(eo,to,no){const io=function(ho){switch(ho){case db$6.relationType.AGGREGATION:return"aggregation";case db$6.relationType.EXTENSION:return"extension";case db$6.relationType.COMPOSITION:return"composition";case db$6.relationType.DEPENDENCY:return"dependency"}};to.points=to.points.filter(ho=>!Number.isNaN(ho.y));const so=to.points,ao=line$1().x(function(ho){return ho.x}).y(function(ho){return ho.y}).curve(curveBasis),lo=eo.append("path").attr("d",ao(so)).attr("id","edge"+edgeCount$1).attr("class","transition");let uo="";if(getConfig$2().state.arrowMarkerAbsolute&&(uo=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,uo=uo.replace(/\(/g,"\\("),uo=uo.replace(/\)/g,"\\)")),lo.attr("marker-end","url("+uo+"#"+io(db$6.relationType.DEPENDENCY)+"End)"),no.title!==void 0){const ho=eo.append("g").attr("class","stateLabel"),{x:go,y:mo}=utils$1.calcLabelPosition(to.points),yo=common$1.getRows(no.title);let So=0;const _o=[];let ko=0,Co=0;for(let Oo=0;Oo<=yo.length;Oo++){const No=ho.append("text").attr("text-anchor","middle").text(yo[Oo]).attr("x",go).attr("y",mo+So),Mo=No.node().getBBox();ko=Math.max(ko,Mo.width),Co=Math.min(Co,Mo.x),log$1.info(Mo.x,go,mo+So),So===0&&(So=No.node().getBBox().height,log$1.info("Title height",So,mo)),_o.push(No)}let $o=So*yo.length;if(yo.length>1){const Oo=(yo.length-1)*So*.5;_o.forEach((No,Mo)=>No.attr("y",mo+Mo*So-Oo)),$o=So*yo.length}const Ro=ho.node().getBBox();ho.insert("rect",":first-child").attr("class","box").attr("x",go-ko/2-getConfig$2().state.padding/2).attr("y",mo-$o/2-getConfig$2().state.padding/2-3.5).attr("width",ko+getConfig$2().state.padding).attr("height",$o+getConfig$2().state.padding),log$1.info(Ro)}edgeCount$1++};let conf$2;const transformationLog={},setConf$2=function(){},insertMarkers=function(eo){eo.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},draw$7=function(eo,to,no,io){conf$2=getConfig$2().state;const so=getConfig$2().securityLevel;let ao;so==="sandbox"&&(ao=select("#i"+to));const lo=select(so==="sandbox"?ao.nodes()[0].contentDocument.body:"body"),uo=so==="sandbox"?ao.nodes()[0].contentDocument:document;log$1.debug("Rendering diagram "+eo);const ho=lo.select(`[id='${to}']`);insertMarkers(ho);const go=io.db.getRootDoc();renderDoc(go,ho,void 0,!1,lo,uo,io);const mo=conf$2.padding,yo=ho.node().getBBox(),So=yo.width+mo*2,_o=yo.height+mo*2,ko=So*1.75;configureSvgSize(ho,_o,ko,conf$2.useMaxWidth),ho.attr("viewBox",`${yo.x-conf$2.padding} ${yo.y-conf$2.padding} `+So+" "+_o)},getLabelWidth=eo=>eo?eo.length*conf$2.fontSizeFactor:1,renderDoc=(eo,to,no,io,so,ao,lo)=>{const uo=new Graph({compound:!0,multigraph:!0});let ho,go=!0;for(ho=0;ho{const Mo=No.parentElement;let Bo=0,Po=0;Mo&&(Mo.parentElement&&(Bo=Mo.parentElement.getBBox().width),Po=parseInt(Mo.getAttribute("data-x-shift"),10),Number.isNaN(Po)&&(Po=0)),No.setAttribute("x1",0-Po+8),No.setAttribute("x2",Bo-Po-8)})):log$1.debug("No Node "+Ro+": "+JSON.stringify(uo.node(Ro)))});let Co=ko.getBBox();uo.edges().forEach(function(Ro){Ro!==void 0&&uo.edge(Ro)!==void 0&&(log$1.debug("Edge "+Ro.v+" -> "+Ro.w+": "+JSON.stringify(uo.edge(Ro))),drawEdge(to,uo.edge(Ro),uo.edge(Ro).relation))}),Co=ko.getBBox();const $o={id:no||"root",label:no||"root",width:0,height:0};return $o.width=Co.width+2*conf$2.padding,$o.height=Co.height+2*conf$2.padding,log$1.debug("Doc rendered",$o,uo),$o},renderer$8={setConf:setConf$2,draw:draw$7},diagram$7={parser:parser$1$5,db:db$6,renderer:renderer$8,styles:styles$4,init:eo=>{eo.state||(eo.state={}),eo.state.arrowMarkerAbsolute=eo.arrowMarkerAbsolute,db$6.clear()}},stateDiagram0ff1cf1a=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$7},Symbol.toStringTag,{value:"Module"})),SHAPE_STATE="rect",SHAPE_STATE_WITH_DESC="rectWithTitle",SHAPE_START="start",SHAPE_END="end",SHAPE_DIVIDER="divider",SHAPE_GROUP="roundedWithTitle",SHAPE_NOTE="note",SHAPE_NOTEGROUP="noteGroup",CSS_DIAGRAM="statediagram",CSS_STATE="state",CSS_DIAGRAM_STATE=`${CSS_DIAGRAM}-${CSS_STATE}`,CSS_EDGE="transition",CSS_NOTE="note",CSS_NOTE_EDGE="note-edge",CSS_EDGE_NOTE_EDGE=`${CSS_EDGE} ${CSS_NOTE_EDGE}`,CSS_DIAGRAM_NOTE=`${CSS_DIAGRAM}-${CSS_NOTE}`,CSS_CLUSTER="cluster",CSS_DIAGRAM_CLUSTER=`${CSS_DIAGRAM}-${CSS_CLUSTER}`,CSS_CLUSTER_ALT="cluster-alt",CSS_DIAGRAM_CLUSTER_ALT=`${CSS_DIAGRAM}-${CSS_CLUSTER_ALT}`,PARENT="parent",NOTE="note",DOMID_STATE="state",DOMID_TYPE_SPACER="----",NOTE_ID=`${DOMID_TYPE_SPACER}${NOTE}`,PARENT_ID=`${DOMID_TYPE_SPACER}${PARENT}`,G_EDGE_STYLE="fill:none",G_EDGE_ARROWHEADSTYLE="fill: #333",G_EDGE_LABELPOS="c",G_EDGE_LABELTYPE="text",G_EDGE_THICKNESS="normal";let nodeDb$1={},graphItemCount=0;const setConf$1=function(eo){const to=Object.keys(eo);for(const no of to)eo[no]},getClasses$3=function(eo,to){return to.db.extract(to.db.getRootDocV2()),to.db.getClasses()};function getClassesFromDbInfo(eo){return eo==null?"":eo.classes?eo.classes.join(" "):""}function stateDomId(eo="",to=0,no="",io=DOMID_TYPE_SPACER){const so=no!==null&&no.length>0?`${io}${no}`:"";return`${DOMID_STATE}-${eo}${so}-${to}`}const setupNode=(eo,to,no,io,so,ao)=>{const lo=no.id,uo=getClassesFromDbInfo(io[lo]);if(lo!=="root"){let ho=SHAPE_STATE;no.start===!0&&(ho=SHAPE_START),no.start===!1&&(ho=SHAPE_END),no.type!==DEFAULT_STATE_TYPE&&(ho=no.type),nodeDb$1[lo]||(nodeDb$1[lo]={id:lo,shape:ho,description:common$1.sanitizeText(lo,getConfig$2()),classes:`${uo} ${CSS_DIAGRAM_STATE}`});const go=nodeDb$1[lo];no.description&&(Array.isArray(go.description)?(go.shape=SHAPE_STATE_WITH_DESC,go.description.push(no.description)):go.description.length>0?(go.shape=SHAPE_STATE_WITH_DESC,go.description===lo?go.description=[no.description]:go.description=[go.description,no.description]):(go.shape=SHAPE_STATE,go.description=no.description),go.description=common$1.sanitizeTextOrArray(go.description,getConfig$2())),go.description.length===1&&go.shape===SHAPE_STATE_WITH_DESC&&(go.shape=SHAPE_STATE),!go.type&&no.doc&&(log$1.info("Setting cluster for ",lo,getDir(no)),go.type="group",go.dir=getDir(no),go.shape=no.type===DIVIDER_TYPE?SHAPE_DIVIDER:SHAPE_GROUP,go.classes=go.classes+" "+CSS_DIAGRAM_CLUSTER+" "+(ao?CSS_DIAGRAM_CLUSTER_ALT:""));const mo={labelStyle:"",shape:go.shape,labelText:go.description,classes:go.classes,style:"",id:lo,dir:go.dir,domId:stateDomId(lo,graphItemCount),type:go.type,padding:15};if(mo.centerLabel=!0,no.note){const yo={labelStyle:"",shape:SHAPE_NOTE,labelText:no.note.text,classes:CSS_DIAGRAM_NOTE,style:"",id:lo+NOTE_ID+"-"+graphItemCount,domId:stateDomId(lo,graphItemCount,NOTE),type:go.type,padding:15},So={labelStyle:"",shape:SHAPE_NOTEGROUP,labelText:no.note.text,classes:go.classes,style:"",id:lo+PARENT_ID,domId:stateDomId(lo,graphItemCount,PARENT),type:"group",padding:0};graphItemCount++;const _o=lo+PARENT_ID;eo.setNode(_o,So),eo.setNode(yo.id,yo),eo.setNode(lo,mo),eo.setParent(lo,_o),eo.setParent(yo.id,_o);let ko=lo,Co=yo.id;no.note.position==="left of"&&(ko=yo.id,Co=lo),eo.setEdge(ko,Co,{arrowhead:"none",arrowType:"",style:G_EDGE_STYLE,labelStyle:"",classes:CSS_EDGE_NOTE_EDGE,arrowheadStyle:G_EDGE_ARROWHEADSTYLE,labelpos:G_EDGE_LABELPOS,labelType:G_EDGE_LABELTYPE,thickness:G_EDGE_THICKNESS})}else eo.setNode(lo,mo)}to&&to.id!=="root"&&(log$1.trace("Setting node ",lo," to be child of its parent ",to.id),eo.setParent(lo,to.id)),no.doc&&(log$1.trace("Adding nodes children "),setupDoc(eo,no,no.doc,io,so,!ao))},setupDoc=(eo,to,no,io,so,ao)=>{log$1.trace("items",no),no.forEach(lo=>{switch(lo.stmt){case STMT_STATE:setupNode(eo,to,lo,io,so,ao);break;case DEFAULT_STATE_TYPE:setupNode(eo,to,lo,io,so,ao);break;case STMT_RELATION:{setupNode(eo,to,lo.state1,io,so,ao),setupNode(eo,to,lo.state2,io,so,ao);const uo={id:"edge"+graphItemCount,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:G_EDGE_STYLE,labelStyle:"",label:common$1.sanitizeText(lo.description,getConfig$2()),arrowheadStyle:G_EDGE_ARROWHEADSTYLE,labelpos:G_EDGE_LABELPOS,labelType:G_EDGE_LABELTYPE,thickness:G_EDGE_THICKNESS,classes:CSS_EDGE};eo.setEdge(lo.state1.id,lo.state2.id,uo,graphItemCount),graphItemCount++}break}})},getDir=(eo,to=DEFAULT_NESTED_DOC_DIR)=>{let no=to;if(eo.doc)for(let io=0;io{eo.state||(eo.state={}),eo.state.arrowMarkerAbsolute=eo.arrowMarkerAbsolute,db$6.clear()}},stateDiagramV29a9d610d=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$6},Symbol.toStringTag,{value:"Module"}));var parser$5=function(){var eo=function(yo,So,_o,ko){for(_o=_o||{},ko=yo.length;ko--;_o[yo[ko]]=So);return _o},to=[6,8,10,11,12,14,16,17,18],no=[1,9],io=[1,10],so=[1,11],ao=[1,12],lo=[1,13],uo=[1,14],ho={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(So,_o,ko,Co,$o,Ro,Oo){var No=Ro.length-1;switch($o){case 1:return Ro[No-1];case 2:this.$=[];break;case 3:Ro[No-1].push(Ro[No]),this.$=Ro[No-1];break;case 4:case 5:this.$=Ro[No];break;case 6:case 7:this.$=[];break;case 8:Co.setDiagramTitle(Ro[No].substr(6)),this.$=Ro[No].substr(6);break;case 9:this.$=Ro[No].trim(),Co.setAccTitle(this.$);break;case 10:case 11:this.$=Ro[No].trim(),Co.setAccDescription(this.$);break;case 12:Co.addSection(Ro[No].substr(8)),this.$=Ro[No].substr(8);break;case 13:Co.addTask(Ro[No-1],Ro[No]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},eo(to,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:no,12:io,14:so,16:ao,17:lo,18:uo},eo(to,[2,7],{1:[2,1]}),eo(to,[2,3]),{9:15,11:no,12:io,14:so,16:ao,17:lo,18:uo},eo(to,[2,5]),eo(to,[2,6]),eo(to,[2,8]),{13:[1,16]},{15:[1,17]},eo(to,[2,11]),eo(to,[2,12]),{19:[1,18]},eo(to,[2,4]),eo(to,[2,9]),eo(to,[2,10]),eo(to,[2,13])],defaultActions:{},parseError:function(So,_o){if(_o.recoverable)this.trace(So);else{var ko=new Error(So);throw ko.hash=_o,ko}},parse:function(So){var _o=this,ko=[0],Co=[],$o=[null],Ro=[],Oo=this.table,No="",Mo=0,Bo=0,Po=2,Lo=1,Go=Ro.slice.call(arguments,1),Do=Object.create(this.lexer),Uo={yy:{}};for(var Ho in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ho)&&(Uo.yy[Ho]=this.yy[Ho]);Do.setInput(So,Uo.yy),Uo.yy.lexer=Do,Uo.yy.parser=this,typeof Do.yylloc>"u"&&(Do.yylloc={});var Yo=Do.yylloc;Ro.push(Yo);var qo=Do.options&&Do.options.ranges;typeof Uo.yy.parseError=="function"?this.parseError=Uo.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Jo(){var Ws;return Ws=Co.pop()||Do.lex()||Lo,typeof Ws!="number"&&(Ws instanceof Array&&(Co=Ws,Ws=Co.pop()),Ws=_o.symbols_[Ws]||Ws),Ws}for(var ps,Qo,hs,gs,ys={},vs,ks,Os,Ts;;){if(Qo=ko[ko.length-1],this.defaultActions[Qo]?hs=this.defaultActions[Qo]:((ps===null||typeof ps>"u")&&(ps=Jo()),hs=Oo[Qo]&&Oo[Qo][ps]),typeof hs>"u"||!hs.length||!hs[0]){var Xs="";Ts=[];for(vs in Oo[Qo])this.terminals_[vs]&&vs>Po&&Ts.push("'"+this.terminals_[vs]+"'");Do.showPosition?Xs="Parse error on line "+(Mo+1)+`: +`,styles$4=getStyles$5,drawStartState=eo=>eo.append("circle").attr("class","start-state").attr("r",getConfig$2().state.sizeUnit).attr("cx",getConfig$2().state.padding+getConfig$2().state.sizeUnit).attr("cy",getConfig$2().state.padding+getConfig$2().state.sizeUnit),drawDivider=eo=>eo.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",getConfig$2().state.textHeight).attr("class","divider").attr("x2",getConfig$2().state.textHeight*2).attr("y1",0).attr("y2",0),drawSimpleState=(eo,to)=>{const no=eo.append("text").attr("x",2*getConfig$2().state.padding).attr("y",getConfig$2().state.textHeight+2*getConfig$2().state.padding).attr("font-size",getConfig$2().state.fontSize).attr("class","state-title").text(to.id),io=no.node().getBBox();return eo.insert("rect",":first-child").attr("x",getConfig$2().state.padding).attr("y",getConfig$2().state.padding).attr("width",io.width+2*getConfig$2().state.padding).attr("height",io.height+2*getConfig$2().state.padding).attr("rx",getConfig$2().state.radius),no},drawDescrState=(eo,to)=>{const no=function(So,_o,ko){const Co=So.append("tspan").attr("x",2*getConfig$2().state.padding).text(_o);ko||Co.attr("dy",getConfig$2().state.textHeight)},so=eo.append("text").attr("x",2*getConfig$2().state.padding).attr("y",getConfig$2().state.textHeight+1.3*getConfig$2().state.padding).attr("font-size",getConfig$2().state.fontSize).attr("class","state-title").text(to.descriptions[0]).node().getBBox(),ao=so.height,lo=eo.append("text").attr("x",getConfig$2().state.padding).attr("y",ao+getConfig$2().state.padding*.4+getConfig$2().state.dividerMargin+getConfig$2().state.textHeight).attr("class","state-description");let uo=!0,ho=!0;to.descriptions.forEach(function(So){uo||(no(lo,So,ho),ho=!1),uo=!1});const go=eo.append("line").attr("x1",getConfig$2().state.padding).attr("y1",getConfig$2().state.padding+ao+getConfig$2().state.dividerMargin/2).attr("y2",getConfig$2().state.padding+ao+getConfig$2().state.dividerMargin/2).attr("class","descr-divider"),mo=lo.node().getBBox(),yo=Math.max(mo.width,so.width);return go.attr("x2",yo+3*getConfig$2().state.padding),eo.insert("rect",":first-child").attr("x",getConfig$2().state.padding).attr("y",getConfig$2().state.padding).attr("width",yo+2*getConfig$2().state.padding).attr("height",mo.height+ao+2*getConfig$2().state.padding).attr("rx",getConfig$2().state.radius),eo},addTitleAndBox=(eo,to,no)=>{const io=getConfig$2().state.padding,so=2*getConfig$2().state.padding,ao=eo.node().getBBox(),lo=ao.width,uo=ao.x,ho=eo.append("text").attr("x",0).attr("y",getConfig$2().state.titleShift).attr("font-size",getConfig$2().state.fontSize).attr("class","state-title").text(to.id),mo=ho.node().getBBox().width+so;let yo=Math.max(mo,lo);yo===lo&&(yo=yo+so);let So;const _o=eo.node().getBBox();to.doc,So=uo-io,mo>lo&&(So=(lo-yo)/2+io),Math.abs(uo-_o.x)lo&&(So=uo-(mo-lo)/2);const ko=1-getConfig$2().state.textHeight;return eo.insert("rect",":first-child").attr("x",So).attr("y",ko).attr("class",no?"alt-composit":"composit").attr("width",yo).attr("height",_o.height+getConfig$2().state.textHeight+getConfig$2().state.titleShift+1).attr("rx","0"),ho.attr("x",So+io),mo<=lo&&ho.attr("x",uo+(yo-so)/2-mo/2+io),eo.insert("rect",":first-child").attr("x",So).attr("y",getConfig$2().state.titleShift-getConfig$2().state.textHeight-getConfig$2().state.padding).attr("width",yo).attr("height",getConfig$2().state.textHeight*3).attr("rx",getConfig$2().state.radius),eo.insert("rect",":first-child").attr("x",So).attr("y",getConfig$2().state.titleShift-getConfig$2().state.textHeight-getConfig$2().state.padding).attr("width",yo).attr("height",_o.height+3+2*getConfig$2().state.textHeight).attr("rx",getConfig$2().state.radius),eo},drawEndState=eo=>(eo.append("circle").attr("class","end-state-outer").attr("r",getConfig$2().state.sizeUnit+getConfig$2().state.miniPadding).attr("cx",getConfig$2().state.padding+getConfig$2().state.sizeUnit+getConfig$2().state.miniPadding).attr("cy",getConfig$2().state.padding+getConfig$2().state.sizeUnit+getConfig$2().state.miniPadding),eo.append("circle").attr("class","end-state-inner").attr("r",getConfig$2().state.sizeUnit).attr("cx",getConfig$2().state.padding+getConfig$2().state.sizeUnit+2).attr("cy",getConfig$2().state.padding+getConfig$2().state.sizeUnit+2)),drawForkJoinState=(eo,to)=>{let no=getConfig$2().state.forkWidth,io=getConfig$2().state.forkHeight;if(to.parentId){let so=no;no=io,io=so}return eo.append("rect").style("stroke","black").style("fill","black").attr("width",no).attr("height",io).attr("x",getConfig$2().state.padding).attr("y",getConfig$2().state.padding)},_drawLongText=(eo,to,no,io)=>{let so=0;const ao=io.append("text");ao.style("text-anchor","start"),ao.attr("class","noteText");let lo=eo.replace(/\r\n/g,"
");lo=lo.replace(/\n/g,"
");const uo=lo.split(common$1.lineBreakRegex);let ho=1.25*getConfig$2().state.noteMargin;for(const go of uo){const mo=go.trim();if(mo.length>0){const yo=ao.append("tspan");if(yo.text(mo),ho===0){const So=yo.node().getBBox();ho+=So.height}so+=ho,yo.attr("x",to+getConfig$2().state.noteMargin),yo.attr("y",no+so+1.25*getConfig$2().state.noteMargin)}}return{textWidth:ao.node().getBBox().width,textHeight:so}},drawNote=(eo,to)=>{to.attr("class","state-note");const no=to.append("rect").attr("x",0).attr("y",getConfig$2().state.padding),io=to.append("g"),{textWidth:so,textHeight:ao}=_drawLongText(eo,0,0,io);return no.attr("height",ao+2*getConfig$2().state.noteMargin),no.attr("width",so+getConfig$2().state.noteMargin*2),no},drawState=function(eo,to){const no=to.id,io={id:no,label:to.id,width:0,height:0},so=eo.append("g").attr("id",no).attr("class","stateGroup");to.type==="start"&&drawStartState(so),to.type==="end"&&drawEndState(so),(to.type==="fork"||to.type==="join")&&drawForkJoinState(so,to),to.type==="note"&&drawNote(to.note.text,so),to.type==="divider"&&drawDivider(so),to.type==="default"&&to.descriptions.length===0&&drawSimpleState(so,to),to.type==="default"&&to.descriptions.length>0&&drawDescrState(so,to);const ao=so.node().getBBox();return io.width=ao.width+2*getConfig$2().state.padding,io.height=ao.height+2*getConfig$2().state.padding,io};let edgeCount$1=0;const drawEdge=function(eo,to,no){const io=function(ho){switch(ho){case db$6.relationType.AGGREGATION:return"aggregation";case db$6.relationType.EXTENSION:return"extension";case db$6.relationType.COMPOSITION:return"composition";case db$6.relationType.DEPENDENCY:return"dependency"}};to.points=to.points.filter(ho=>!Number.isNaN(ho.y));const so=to.points,ao=line$1().x(function(ho){return ho.x}).y(function(ho){return ho.y}).curve(curveBasis),lo=eo.append("path").attr("d",ao(so)).attr("id","edge"+edgeCount$1).attr("class","transition");let uo="";if(getConfig$2().state.arrowMarkerAbsolute&&(uo=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,uo=uo.replace(/\(/g,"\\("),uo=uo.replace(/\)/g,"\\)")),lo.attr("marker-end","url("+uo+"#"+io(db$6.relationType.DEPENDENCY)+"End)"),no.title!==void 0){const ho=eo.append("g").attr("class","stateLabel"),{x:go,y:mo}=utils$1.calcLabelPosition(to.points),yo=common$1.getRows(no.title);let So=0;const _o=[];let ko=0,Co=0;for(let Oo=0;Oo<=yo.length;Oo++){const No=ho.append("text").attr("text-anchor","middle").text(yo[Oo]).attr("x",go).attr("y",mo+So),Mo=No.node().getBBox();ko=Math.max(ko,Mo.width),Co=Math.min(Co,Mo.x),log$1.info(Mo.x,go,mo+So),So===0&&(So=No.node().getBBox().height,log$1.info("Title height",So,mo)),_o.push(No)}let $o=So*yo.length;if(yo.length>1){const Oo=(yo.length-1)*So*.5;_o.forEach((No,Mo)=>No.attr("y",mo+Mo*So-Oo)),$o=So*yo.length}const Ro=ho.node().getBBox();ho.insert("rect",":first-child").attr("class","box").attr("x",go-ko/2-getConfig$2().state.padding/2).attr("y",mo-$o/2-getConfig$2().state.padding/2-3.5).attr("width",ko+getConfig$2().state.padding).attr("height",$o+getConfig$2().state.padding),log$1.info(Ro)}edgeCount$1++};let conf$2;const transformationLog={},setConf$2=function(){},insertMarkers=function(eo){eo.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},draw$7=function(eo,to,no,io){conf$2=getConfig$2().state;const so=getConfig$2().securityLevel;let ao;so==="sandbox"&&(ao=select("#i"+to));const lo=select(so==="sandbox"?ao.nodes()[0].contentDocument.body:"body"),uo=so==="sandbox"?ao.nodes()[0].contentDocument:document;log$1.debug("Rendering diagram "+eo);const ho=lo.select(`[id='${to}']`);insertMarkers(ho);const go=io.db.getRootDoc();renderDoc(go,ho,void 0,!1,lo,uo,io);const mo=conf$2.padding,yo=ho.node().getBBox(),So=yo.width+mo*2,_o=yo.height+mo*2,ko=So*1.75;configureSvgSize(ho,_o,ko,conf$2.useMaxWidth),ho.attr("viewBox",`${yo.x-conf$2.padding} ${yo.y-conf$2.padding} `+So+" "+_o)},getLabelWidth=eo=>eo?eo.length*conf$2.fontSizeFactor:1,renderDoc=(eo,to,no,io,so,ao,lo)=>{const uo=new Graph({compound:!0,multigraph:!0});let ho,go=!0;for(ho=0;ho{const Mo=No.parentElement;let Bo=0,Fo=0;Mo&&(Mo.parentElement&&(Bo=Mo.parentElement.getBBox().width),Fo=parseInt(Mo.getAttribute("data-x-shift"),10),Number.isNaN(Fo)&&(Fo=0)),No.setAttribute("x1",0-Fo+8),No.setAttribute("x2",Bo-Fo-8)})):log$1.debug("No Node "+Ro+": "+JSON.stringify(uo.node(Ro)))});let Co=ko.getBBox();uo.edges().forEach(function(Ro){Ro!==void 0&&uo.edge(Ro)!==void 0&&(log$1.debug("Edge "+Ro.v+" -> "+Ro.w+": "+JSON.stringify(uo.edge(Ro))),drawEdge(to,uo.edge(Ro),uo.edge(Ro).relation))}),Co=ko.getBBox();const $o={id:no||"root",label:no||"root",width:0,height:0};return $o.width=Co.width+2*conf$2.padding,$o.height=Co.height+2*conf$2.padding,log$1.debug("Doc rendered",$o,uo),$o},renderer$8={setConf:setConf$2,draw:draw$7},diagram$7={parser:parser$1$5,db:db$6,renderer:renderer$8,styles:styles$4,init:eo=>{eo.state||(eo.state={}),eo.state.arrowMarkerAbsolute=eo.arrowMarkerAbsolute,db$6.clear()}},stateDiagram0ff1cf1a=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$7},Symbol.toStringTag,{value:"Module"})),SHAPE_STATE="rect",SHAPE_STATE_WITH_DESC="rectWithTitle",SHAPE_START="start",SHAPE_END="end",SHAPE_DIVIDER="divider",SHAPE_GROUP="roundedWithTitle",SHAPE_NOTE="note",SHAPE_NOTEGROUP="noteGroup",CSS_DIAGRAM="statediagram",CSS_STATE="state",CSS_DIAGRAM_STATE=`${CSS_DIAGRAM}-${CSS_STATE}`,CSS_EDGE="transition",CSS_NOTE="note",CSS_NOTE_EDGE="note-edge",CSS_EDGE_NOTE_EDGE=`${CSS_EDGE} ${CSS_NOTE_EDGE}`,CSS_DIAGRAM_NOTE=`${CSS_DIAGRAM}-${CSS_NOTE}`,CSS_CLUSTER="cluster",CSS_DIAGRAM_CLUSTER=`${CSS_DIAGRAM}-${CSS_CLUSTER}`,CSS_CLUSTER_ALT="cluster-alt",CSS_DIAGRAM_CLUSTER_ALT=`${CSS_DIAGRAM}-${CSS_CLUSTER_ALT}`,PARENT="parent",NOTE="note",DOMID_STATE="state",DOMID_TYPE_SPACER="----",NOTE_ID=`${DOMID_TYPE_SPACER}${NOTE}`,PARENT_ID=`${DOMID_TYPE_SPACER}${PARENT}`,G_EDGE_STYLE="fill:none",G_EDGE_ARROWHEADSTYLE="fill: #333",G_EDGE_LABELPOS="c",G_EDGE_LABELTYPE="text",G_EDGE_THICKNESS="normal";let nodeDb$1={},graphItemCount=0;const setConf$1=function(eo){const to=Object.keys(eo);for(const no of to)eo[no]},getClasses$3=function(eo,to){return to.db.extract(to.db.getRootDocV2()),to.db.getClasses()};function getClassesFromDbInfo(eo){return eo==null?"":eo.classes?eo.classes.join(" "):""}function stateDomId(eo="",to=0,no="",io=DOMID_TYPE_SPACER){const so=no!==null&&no.length>0?`${io}${no}`:"";return`${DOMID_STATE}-${eo}${so}-${to}`}const setupNode=(eo,to,no,io,so,ao)=>{const lo=no.id,uo=getClassesFromDbInfo(io[lo]);if(lo!=="root"){let ho=SHAPE_STATE;no.start===!0&&(ho=SHAPE_START),no.start===!1&&(ho=SHAPE_END),no.type!==DEFAULT_STATE_TYPE&&(ho=no.type),nodeDb$1[lo]||(nodeDb$1[lo]={id:lo,shape:ho,description:common$1.sanitizeText(lo,getConfig$2()),classes:`${uo} ${CSS_DIAGRAM_STATE}`});const go=nodeDb$1[lo];no.description&&(Array.isArray(go.description)?(go.shape=SHAPE_STATE_WITH_DESC,go.description.push(no.description)):go.description.length>0?(go.shape=SHAPE_STATE_WITH_DESC,go.description===lo?go.description=[no.description]:go.description=[go.description,no.description]):(go.shape=SHAPE_STATE,go.description=no.description),go.description=common$1.sanitizeTextOrArray(go.description,getConfig$2())),go.description.length===1&&go.shape===SHAPE_STATE_WITH_DESC&&(go.shape=SHAPE_STATE),!go.type&&no.doc&&(log$1.info("Setting cluster for ",lo,getDir(no)),go.type="group",go.dir=getDir(no),go.shape=no.type===DIVIDER_TYPE?SHAPE_DIVIDER:SHAPE_GROUP,go.classes=go.classes+" "+CSS_DIAGRAM_CLUSTER+" "+(ao?CSS_DIAGRAM_CLUSTER_ALT:""));const mo={labelStyle:"",shape:go.shape,labelText:go.description,classes:go.classes,style:"",id:lo,dir:go.dir,domId:stateDomId(lo,graphItemCount),type:go.type,padding:15};if(mo.centerLabel=!0,no.note){const yo={labelStyle:"",shape:SHAPE_NOTE,labelText:no.note.text,classes:CSS_DIAGRAM_NOTE,style:"",id:lo+NOTE_ID+"-"+graphItemCount,domId:stateDomId(lo,graphItemCount,NOTE),type:go.type,padding:15},So={labelStyle:"",shape:SHAPE_NOTEGROUP,labelText:no.note.text,classes:go.classes,style:"",id:lo+PARENT_ID,domId:stateDomId(lo,graphItemCount,PARENT),type:"group",padding:0};graphItemCount++;const _o=lo+PARENT_ID;eo.setNode(_o,So),eo.setNode(yo.id,yo),eo.setNode(lo,mo),eo.setParent(lo,_o),eo.setParent(yo.id,_o);let ko=lo,Co=yo.id;no.note.position==="left of"&&(ko=yo.id,Co=lo),eo.setEdge(ko,Co,{arrowhead:"none",arrowType:"",style:G_EDGE_STYLE,labelStyle:"",classes:CSS_EDGE_NOTE_EDGE,arrowheadStyle:G_EDGE_ARROWHEADSTYLE,labelpos:G_EDGE_LABELPOS,labelType:G_EDGE_LABELTYPE,thickness:G_EDGE_THICKNESS})}else eo.setNode(lo,mo)}to&&to.id!=="root"&&(log$1.trace("Setting node ",lo," to be child of its parent ",to.id),eo.setParent(lo,to.id)),no.doc&&(log$1.trace("Adding nodes children "),setupDoc(eo,no,no.doc,io,so,!ao))},setupDoc=(eo,to,no,io,so,ao)=>{log$1.trace("items",no),no.forEach(lo=>{switch(lo.stmt){case STMT_STATE:setupNode(eo,to,lo,io,so,ao);break;case DEFAULT_STATE_TYPE:setupNode(eo,to,lo,io,so,ao);break;case STMT_RELATION:{setupNode(eo,to,lo.state1,io,so,ao),setupNode(eo,to,lo.state2,io,so,ao);const uo={id:"edge"+graphItemCount,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:G_EDGE_STYLE,labelStyle:"",label:common$1.sanitizeText(lo.description,getConfig$2()),arrowheadStyle:G_EDGE_ARROWHEADSTYLE,labelpos:G_EDGE_LABELPOS,labelType:G_EDGE_LABELTYPE,thickness:G_EDGE_THICKNESS,classes:CSS_EDGE};eo.setEdge(lo.state1.id,lo.state2.id,uo,graphItemCount),graphItemCount++}break}})},getDir=(eo,to=DEFAULT_NESTED_DOC_DIR)=>{let no=to;if(eo.doc)for(let io=0;io{eo.state||(eo.state={}),eo.state.arrowMarkerAbsolute=eo.arrowMarkerAbsolute,db$6.clear()}},stateDiagramV29a9d610d=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$6},Symbol.toStringTag,{value:"Module"}));var parser$5=function(){var eo=function(yo,So,_o,ko){for(_o=_o||{},ko=yo.length;ko--;_o[yo[ko]]=So);return _o},to=[6,8,10,11,12,14,16,17,18],no=[1,9],io=[1,10],so=[1,11],ao=[1,12],lo=[1,13],uo=[1,14],ho={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(So,_o,ko,Co,$o,Ro,Oo){var No=Ro.length-1;switch($o){case 1:return Ro[No-1];case 2:this.$=[];break;case 3:Ro[No-1].push(Ro[No]),this.$=Ro[No-1];break;case 4:case 5:this.$=Ro[No];break;case 6:case 7:this.$=[];break;case 8:Co.setDiagramTitle(Ro[No].substr(6)),this.$=Ro[No].substr(6);break;case 9:this.$=Ro[No].trim(),Co.setAccTitle(this.$);break;case 10:case 11:this.$=Ro[No].trim(),Co.setAccDescription(this.$);break;case 12:Co.addSection(Ro[No].substr(8)),this.$=Ro[No].substr(8);break;case 13:Co.addTask(Ro[No-1],Ro[No]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},eo(to,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:no,12:io,14:so,16:ao,17:lo,18:uo},eo(to,[2,7],{1:[2,1]}),eo(to,[2,3]),{9:15,11:no,12:io,14:so,16:ao,17:lo,18:uo},eo(to,[2,5]),eo(to,[2,6]),eo(to,[2,8]),{13:[1,16]},{15:[1,17]},eo(to,[2,11]),eo(to,[2,12]),{19:[1,18]},eo(to,[2,4]),eo(to,[2,9]),eo(to,[2,10]),eo(to,[2,13])],defaultActions:{},parseError:function(So,_o){if(_o.recoverable)this.trace(So);else{var ko=new Error(So);throw ko.hash=_o,ko}},parse:function(So){var _o=this,ko=[0],Co=[],$o=[null],Ro=[],Oo=this.table,No="",Mo=0,Bo=0,Fo=2,Lo=1,Go=Ro.slice.call(arguments,1),Do=Object.create(this.lexer),Uo={yy:{}};for(var Ho in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ho)&&(Uo.yy[Ho]=this.yy[Ho]);Do.setInput(So,Uo.yy),Uo.yy.lexer=Do,Uo.yy.parser=this,typeof Do.yylloc>"u"&&(Do.yylloc={});var Yo=Do.yylloc;Ro.push(Yo);var qo=Do.options&&Do.options.ranges;typeof Uo.yy.parseError=="function"?this.parseError=Uo.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Jo(){var Ws;return Ws=Co.pop()||Do.lex()||Lo,typeof Ws!="number"&&(Ws instanceof Array&&(Co=Ws,Ws=Co.pop()),Ws=_o.symbols_[Ws]||Ws),Ws}for(var ps,Qo,hs,gs,ys={},vs,ks,Os,Ts;;){if(Qo=ko[ko.length-1],this.defaultActions[Qo]?hs=this.defaultActions[Qo]:((ps===null||typeof ps>"u")&&(ps=Jo()),hs=Oo[Qo]&&Oo[Qo][ps]),typeof hs>"u"||!hs.length||!hs[0]){var Xs="";Ts=[];for(vs in Oo[Qo])this.terminals_[vs]&&vs>Fo&&Ts.push("'"+this.terminals_[vs]+"'");Do.showPosition?Xs="Parse error on line "+(Mo+1)+`: `+Do.showPosition()+` Expecting `+Ts.join(", ")+", got '"+(this.terminals_[ps]||ps)+"'":Xs="Parse error on line "+(Mo+1)+": Unexpected "+(ps==Lo?"end of input":"'"+(this.terminals_[ps]||ps)+"'"),this.parseError(Xs,{text:Do.match,token:this.terminals_[ps]||ps,line:Do.yylineno,loc:Yo,expected:Ts})}if(hs[0]instanceof Array&&hs.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qo+", token: "+ps);switch(hs[0]){case 1:ko.push(ps),$o.push(Do.yytext),Ro.push(Do.yylloc),ko.push(hs[1]),ps=null,Bo=Do.yyleng,No=Do.yytext,Mo=Do.yylineno,Yo=Do.yylloc;break;case 2:if(ks=this.productions_[hs[1]][1],ys.$=$o[$o.length-ks],ys._$={first_line:Ro[Ro.length-(ks||1)].first_line,last_line:Ro[Ro.length-1].last_line,first_column:Ro[Ro.length-(ks||1)].first_column,last_column:Ro[Ro.length-1].last_column},qo&&(ys._$.range=[Ro[Ro.length-(ks||1)].range[0],Ro[Ro.length-1].range[1]]),gs=this.performAction.apply(ys,[No,Bo,Mo,Uo.yy,hs[1],$o,Ro].concat(Go)),typeof gs<"u")return gs;ks&&(ko=ko.slice(0,-1*ks*2),$o=$o.slice(0,-1*ks),Ro=Ro.slice(0,-1*ks)),ko.push(this.productions_[hs[1]][0]),$o.push(ys.$),Ro.push(ys._$),Os=Oo[ko[ko.length-2]][ko[ko.length-1]],ko.push(Os);break;case 3:return!0}}return!0}},go=function(){var yo={EOF:1,parseError:function(_o,ko){if(this.yy.parser)this.yy.parser.parseError(_o,ko);else throw new Error(_o)},setInput:function(So,_o){return this.yy=_o||this.yy||{},this._input=So,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var So=this._input[0];this.yytext+=So,this.yyleng++,this.offset++,this.match+=So,this.matched+=So;var _o=So.match(/(?:\r\n?|\n).*/g);return _o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),So},unput:function(So){var _o=So.length,ko=So.split(/(?:\r\n?|\n)/g);this._input=So+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_o),this.offset-=_o;var Co=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ko.length-1&&(this.yylineno-=ko.length-1);var $o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ko?(ko.length===Co.length?this.yylloc.first_column:0)+Co[Co.length-ko.length].length-ko[0].length:this.yylloc.first_column-_o},this.options.ranges&&(this.yylloc.range=[$o[0],$o[0]+this.yyleng-_o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(So){this.unput(this.match.slice(So))},pastInput:function(){var So=this.matched.substr(0,this.matched.length-this.match.length);return(So.length>20?"...":"")+So.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var So=this.match;return So.length<20&&(So+=this._input.substr(0,20-So.length)),(So.substr(0,20)+(So.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var So=this.pastInput(),_o=new Array(So.length+1).join("-");return So+this.upcomingInput()+` @@ -3531,17 +3531,17 @@ Expecting `+Ts.join(", ")+", got '"+(this.terminals_[ps]||ps)+"'":Xs="Parse erro .actor-5 { ${eo.actor5?`fill: ${eo.actor5}`:""}; } -`,styles$3=getStyles$4,drawRect$1=function(eo,to){return drawRect$4(eo,to)},drawFace$1=function(eo,to){const io=eo.append("circle").attr("cx",to.cx).attr("cy",to.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),so=eo.append("g");so.append("circle").attr("cx",to.cx-15/3).attr("cy",to.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),so.append("circle").attr("cx",to.cx+15/3).attr("cy",to.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function ao(ho){const go=arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);ho.append("path").attr("class","mouth").attr("d",go).attr("transform","translate("+to.cx+","+(to.cy+2)+")")}function lo(ho){const go=arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);ho.append("path").attr("class","mouth").attr("d",go).attr("transform","translate("+to.cx+","+(to.cy+7)+")")}function uo(ho){ho.append("line").attr("class","mouth").attr("stroke",2).attr("x1",to.cx-5).attr("y1",to.cy+7).attr("x2",to.cx+5).attr("y2",to.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return to.score>3?ao(so):to.score<3?lo(so):uo(so),io},drawCircle$1=function(eo,to){const no=eo.append("circle");return no.attr("cx",to.cx),no.attr("cy",to.cy),no.attr("class","actor-"+to.pos),no.attr("fill",to.fill),no.attr("stroke",to.stroke),no.attr("r",to.r),no.class!==void 0&&no.attr("class",no.class),to.title!==void 0&&no.append("title").text(to.title),no},drawText$1=function(eo,to){return drawText$4(eo,to)},drawLabel$1=function(eo,to){function no(so,ao,lo,uo,ho){return so+","+ao+" "+(so+lo)+","+ao+" "+(so+lo)+","+(ao+uo-ho)+" "+(so+lo-ho*1.2)+","+(ao+uo)+" "+so+","+(ao+uo)}const io=eo.append("polygon");io.attr("points",no(to.x,to.y,50,20,7)),io.attr("class","labelBox"),to.y=to.y+to.labelMargin,to.x=to.x+.5*to.labelMargin,drawText$1(eo,to)},drawSection$1=function(eo,to,no){const io=eo.append("g"),so=getNoteRect$2();so.x=to.x,so.y=to.y,so.fill=to.fill,so.width=no.width*to.taskCount+no.diagramMarginX*(to.taskCount-1),so.height=no.height,so.class="journey-section section-type-"+to.num,so.rx=3,so.ry=3,drawRect$1(io,so),_drawTextCandidateFunc$1(no)(to.text,io,so.x,so.y,so.width,so.height,{class:"journey-section section-type-"+to.num},no,to.colour)};let taskCount$1=-1;const drawTask$1=function(eo,to,no){const io=to.x+no.width/2,so=eo.append("g");taskCount$1++;const ao=300+5*30;so.append("line").attr("id","task"+taskCount$1).attr("x1",io).attr("y1",to.y).attr("x2",io).attr("y2",ao).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),drawFace$1(so,{cx:io,cy:300+(5-to.score)*30,score:to.score});const lo=getNoteRect$2();lo.x=to.x,lo.y=to.y,lo.fill=to.fill,lo.width=no.width,lo.height=no.height,lo.class="task task-type-"+to.num,lo.rx=3,lo.ry=3,drawRect$1(so,lo);let uo=to.x+14;to.people.forEach(ho=>{const go=to.actors[ho].color,mo={cx:uo,cy:to.y,r:7,fill:go,stroke:"#000",title:ho,pos:to.actors[ho].position};drawCircle$1(so,mo),uo+=10}),_drawTextCandidateFunc$1(no)(to.task,so,lo.x,lo.y,lo.width,lo.height,{class:"task"},no,to.colour)},drawBackgroundRect$1=function(eo,to){drawBackgroundRect$3(eo,to)},_drawTextCandidateFunc$1=function(){function eo(so,ao,lo,uo,ho,go,mo,yo){const So=ao.append("text").attr("x",lo+ho/2).attr("y",uo+go/2+5).style("font-color",yo).style("text-anchor","middle").text(so);io(So,mo)}function to(so,ao,lo,uo,ho,go,mo,yo,So){const{taskFontSize:_o,taskFontFamily:ko}=yo,Co=so.split(//gi);for(let $o=0;$o{const so=actors[io].color,ao={cx:20,cy:no,r:7,fill:so,stroke:"#000",pos:actors[io].position};svgDraw$1.drawCircle(eo,ao);const lo={x:40,y:no+7,fill:"#666",text:io,textMargin:to.boxTextMargin|5};svgDraw$1.drawText(eo,lo),no+=20})}const conf$1=getConfig$2().journey,LEFT_MARGIN=conf$1.leftMargin,draw$5=function(eo,to,no,io){const so=getConfig$2().journey,ao=getConfig$2().securityLevel;let lo;ao==="sandbox"&&(lo=select("#i"+to));const uo=select(ao==="sandbox"?lo.nodes()[0].contentDocument.body:"body");bounds$1.init();const ho=uo.select("#"+to);svgDraw$1.initGraphics(ho);const go=io.db.getTasks(),mo=io.db.getDiagramTitle(),yo=io.db.getActors();for(const Ro in actors)delete actors[Ro];let So=0;yo.forEach(Ro=>{actors[Ro]={color:so.actorColours[So%so.actorColours.length],position:So},So++}),drawActorLegend(ho),bounds$1.insert(0,0,LEFT_MARGIN,Object.keys(actors).length*50),drawTasks$1(ho,go,0);const _o=bounds$1.getBounds();mo&&ho.append("text").text(mo).attr("x",LEFT_MARGIN).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const ko=_o.stopy-_o.starty+2*so.diagramMarginY,Co=LEFT_MARGIN+_o.stopx+2*so.diagramMarginX;configureSvgSize(ho,ko,Co,so.useMaxWidth),ho.append("line").attr("x1",LEFT_MARGIN).attr("y1",so.height*4).attr("x2",Co-LEFT_MARGIN-4).attr("y2",so.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const $o=mo?70:0;ho.attr("viewBox",`${_o.startx} -25 ${Co} ${ko+$o}`),ho.attr("preserveAspectRatio","xMinYMin meet"),ho.attr("height",ko+$o+25)},bounds$1={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(eo,to,no,io){eo[to]===void 0?eo[to]=no:eo[to]=io(no,eo[to])},updateBounds:function(eo,to,no,io){const so=getConfig$2().journey,ao=this;let lo=0;function uo(ho){return function(mo){lo++;const yo=ao.sequenceItems.length-lo+1;ao.updateVal(mo,"starty",to-yo*so.boxMargin,Math.min),ao.updateVal(mo,"stopy",io+yo*so.boxMargin,Math.max),ao.updateVal(bounds$1.data,"startx",eo-yo*so.boxMargin,Math.min),ao.updateVal(bounds$1.data,"stopx",no+yo*so.boxMargin,Math.max),ho!=="activation"&&(ao.updateVal(mo,"startx",eo-yo*so.boxMargin,Math.min),ao.updateVal(mo,"stopx",no+yo*so.boxMargin,Math.max),ao.updateVal(bounds$1.data,"starty",to-yo*so.boxMargin,Math.min),ao.updateVal(bounds$1.data,"stopy",io+yo*so.boxMargin,Math.max))}}this.sequenceItems.forEach(uo())},insert:function(eo,to,no,io){const so=Math.min(eo,no),ao=Math.max(eo,no),lo=Math.min(to,io),uo=Math.max(to,io);this.updateVal(bounds$1.data,"startx",so,Math.min),this.updateVal(bounds$1.data,"starty",lo,Math.min),this.updateVal(bounds$1.data,"stopx",ao,Math.max),this.updateVal(bounds$1.data,"stopy",uo,Math.max),this.updateBounds(so,lo,ao,uo)},bumpVerticalPos:function(eo){this.verticalPos=this.verticalPos+eo,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},fills=conf$1.sectionFills,textColours=conf$1.sectionColours,drawTasks$1=function(eo,to,no){const io=getConfig$2().journey;let so="";const ao=io.height*2+io.diagramMarginY,lo=no+ao;let uo=0,ho="#CCC",go="black",mo=0;for(const[yo,So]of to.entries()){if(so!==So.section){ho=fills[uo%fills.length],mo=uo%fills.length,go=textColours[uo%textColours.length];let ko=0;const Co=So.section;for(let Ro=yo;Ro(actors[Co]&&(ko[Co]=actors[Co]),ko),{});So.x=yo*io.taskMargin+yo*io.width+LEFT_MARGIN,So.y=lo,So.width=io.diagramMarginX,So.height=io.diagramMarginY,So.colour=go,So.fill=ho,So.num=mo,So.actors=_o,svgDraw$1.drawTask(eo,So,io),bounds$1.insert(So.x,So.y,So.x+So.width+io.taskMargin,300+5*30)}},renderer$6={setConf,draw:draw$5},diagram$5={parser:parser$1$4,db:db$5,renderer:renderer$6,styles:styles$3,init:eo=>{renderer$6.setConf(eo.journey),db$5.clear()}},journeyDiagram4fe6b3dc=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$5},Symbol.toStringTag,{value:"Module"}));var elk_bundled={exports:{}};(function(eo,to){(function(no){eo.exports=no()})(function(){return function(){function no(io,so,ao){function lo(go,mo){if(!so[go]){if(!io[go]){var yo=typeof commonjsRequire$1=="function"&&commonjsRequire$1;if(!mo&&yo)return yo(go,!0);if(uo)return uo(go,!0);var So=new Error("Cannot find module '"+go+"'");throw So.code="MODULE_NOT_FOUND",So}var _o=so[go]={exports:{}};io[go][0].call(_o.exports,function(ko){var Co=io[go][1][ko];return lo(Co||ko)},_o,_o.exports,no,io,so,ao)}return so[go].exports}for(var uo=typeof commonjsRequire$1=="function"&&commonjsRequire$1,ho=0;ho0&&arguments[0]!==void 0?arguments[0]:{},So=yo.defaultLayoutOptions,_o=So===void 0?{}:So,ko=yo.algorithms,Co=ko===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:ko,$o=yo.workerFactory,Ro=yo.workerUrl;if(lo(this,go),this.defaultLayoutOptions=_o,this.initialized=!1,typeof Ro>"u"&&typeof $o>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Oo=$o;typeof Ro<"u"&&typeof $o>"u"&&(Oo=function(Bo){return new Worker(Bo)});var No=Oo(Ro);if(typeof No.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new ho(No),this.worker.postMessage({cmd:"register",algorithms:Co}).then(function(Mo){return mo.initialized=!0}).catch(console.err)}return ao(go,[{key:"layout",value:function(yo){var So=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_o=So.layoutOptions,ko=_o===void 0?this.defaultLayoutOptions:_o,Co=So.logging,$o=Co===void 0?!1:Co,Ro=So.measureExecutionTime,Oo=Ro===void 0?!1:Ro;return yo?this.worker.postMessage({cmd:"layout",graph:yo,layoutOptions:ko,options:{logging:$o,measureExecutionTime:Oo}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),go}();so.default=uo;var ho=function(){function go(mo){var yo=this;if(lo(this,go),mo===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=mo,this.worker.onmessage=function(So){setTimeout(function(){yo.receive(yo,So)},0)}}return ao(go,[{key:"postMessage",value:function(yo){var So=this.id||0;this.id=So+1,yo.id=So;var _o=this;return new Promise(function(ko,Co){_o.resolvers[So]=function($o,Ro){$o?(_o.convertGwtStyleError($o),Co($o)):ko(Ro)},_o.worker.postMessage(yo)})}},{key:"receive",value:function(yo,So){var _o=So.data,ko=yo.resolvers[_o.id];ko&&(delete yo.resolvers[_o.id],_o.error?ko(_o.error):ko(null,_o.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(yo){if(yo){var So=yo.__java$exception;So&&(So.cause&&So.cause.backingJsObject&&(yo.cause=So.cause.backingJsObject,this.convertGwtStyleError(yo.cause)),delete yo.__java$exception)}}}]),go}()},{}],2:[function(no,io,so){(function(ao){(function(){var lo;typeof window<"u"?lo=window:typeof ao<"u"?lo=ao:typeof self<"u"&&(lo=self);var uo;function ho(){}function go(){}function mo(){}function yo(){}function So(){}function _o(){}function ko(){}function Co(){}function $o(){}function Ro(){}function Oo(){}function No(){}function Mo(){}function Bo(){}function Po(){}function Lo(){}function Go(){}function Do(){}function Uo(){}function Ho(){}function Yo(){}function qo(){}function Jo(){}function ps(){}function Qo(){}function hs(){}function gs(){}function ys(){}function vs(){}function ks(){}function Os(){}function Ts(){}function Xs(){}function Ws(){}function Ps(){}function qs(){}function ga(){}function Fs(){}function Js(){}function Vs(){}function El(){}function yl(){}function Gl(){}function Qs(){}function du(){}function Ol(){}function Fu(){}function ju(){}function F1(){}function y1(){}function r1(){}function $u(){}function Kl(){}function Is(){}function Ks(){}function Bs(){}function Ds(){}function Zs(){}function Cl(){}function ba(){}function fu(){}function Lu(){}function e1(){}function Gu(){}function w1(){}function Zu(){}function L1(){}function K1(){}function yp(){}function wp(){}function j0(){}function h0(){}function cp(){}function k0(){}function ap(){}function x0(){}function b0(){}function P1(){}function c1(){}function V0(){}function P0(){}function up(){}function Lp(){}function Mv(){}function $v(){}function Gv(){}function C1(){}function Ll(){}function Ul(){}function _l(){}function $l(){}function Us(){}function Rl(){}function Sl(){}function eu(){}function _c(){}function zu(){}function N1(){}function K0(){}function J0(){}function S1(){}function O1(){}function r0(){}function I1(){}function R0(){}function tu(){}function T2(){}function hu(){}function Z2(){}function r_(){}function G4(){}function bE(){}function hw(){}function Ay(){}function NS(){}function i_(){}function JE(){}function _k(){}function W4(){}function B2(){}function DS(){}function Tw(){}function yE(){}function LS(){}function U4(){}function D_(){}function K4(){}function cC(){}function uC(){}function BS(){}function q7(){}function V7(){}function fC(){}function t$(){}function dP(){}function vM(){}function hP(){}function ZR(){}function pP(){}function gP(){}function VA(){}function mP(){}function dC(){}function JR(){}function A0(){}function Y0(){}function Rm(){}function wm(){}function jp(){}function im(){}function i2(){}function f2(){}function Ox(){}function P5(){}function hC(){}function vP(){}function G7(){}function eO(){}function Ix(){}function bP(){}function GA(){}function ZG(){}function yP(){}function j5(){}function JG(){}function eW(){}function tW(){}function nW(){}function rW(){}function iW(){}function t5(){}function bne(){}function z5(){}function yne(){}function oW(){}function n$(){}function bM(){}function wP(){}function J2(){}function r$(){}function xP(){}function wne(){}function SP(){}function xne(){}function Sne(){}function _ne(){}function sW(){}function yM(){}function W7(){}function Ene(){}function aW(){}function lW(){}function _P(){}function EP(){}function cW(){}function kne(){}function kP(){}function TP(){}function Tne(){}function uW(){}function n5(){}function CP(){}function tO(){}function fW(){}function dW(){}function Cne(){}function $ne(){}function Ane(){}function Rne(){}function One(){}function U7(){}function Ine(){}function Nne(){}function $P(){}function hW(){}function i$(){}function wM(){}function Mne(){}function Dne(){}function Lne(){}function K7(){}function Y4(){}function pW(){}function Bne(){}function Fne(){}function Pne(){}function jne(){}function zne(){}function Y7(){}function Bu(){}function $1(){}function h1(){}function _p(){}function Wm(){}function Ry(){}function Nx(){}function d2(){}function AP(){}function Hne(){}function H5(){}function xM(){}function qne(){}function X7(){}function SM(){}function nO(){}function Hy(){}function Vne(){}function gW(){}function _M(){}function Gne(){}function Wne(){}function Une(){}function EM(){}function o$(){}function kM(){}function mW(){}function TM(){}function vW(){}function bW(){}function CM(){}function yW(){}function rO(){}function WA(){}function $M(){}function Kne(){}function Yne(){}function Xne(){}function AM(){}function RM(){}function RP(){}function Qne(){}function wW(){}function Zne(){}function Jne(){}function Mx(){}function o_(){}function ere(){}function tre(){}function xW(){}function nre(){}function OP(){}function iO(){}function IP(){}function Q7(){}function oO(){}function sO(){}function OM(){}function Z7(){}function rre(){}function ire(){}function ore(){}function sre(){}function are(){}function IM(){}function aO(){}function SW(){}function Il(){}function J7(){}function NM(){}function q5(){}function Wv(){}function lre(){}function cre(){}function ure(){}function UA(){}function fre(){}function dre(){}function hre(){}function pre(){}function gre(){}function pC(){}function mre(){}function vre(){}function bre(){}function yre(){}function wre(){}function gC(){}function xre(){}function _W(){}function Sre(){}function _re(){}function Ere(){}function KA(){}function kre(){}function Tre(){}function X4(){}function Cre(){}function $re(){}function Are(){}function EW(){}function Rre(){}function kW(){}function TW(){}function Ore(){}function Ire(){}function NP(){}function e8(){}function lO(){}function Nre(){}function MP(){}function CW(){}function mC(){}function DP(){}function YA(){}function V5(){}function Mre(){}function $W(){}function AW(){}function cO(){}function s$(){}function RW(){}function Dre(){}function uO(){}function Lre(){}function OW(){}function FS(){}function LP(){}function IW(){}function rT(){}function BP(){}function MM(){}function XA(){}function NW(){}function L_(){}function FP(){}function Bre(){}function Fre(){}function Pre(){}function PP(){}function jre(){}function fO(){}function MW(){}function zre(){}function Hre(){}function dO(){}function qre(){}function Vre(){}function jP(){}function DW(){}function Gre(){}function Wre(){}function Ure(){}function LW(){}function zP(){}function Kre(){}function HP(){}function BW(){}function FW(){}function PW(){}function DM(){}function Yre(){}function jW(){}function zW(){}function Xre(){}function HW(){}function Qre(){}function qP(){}function qW(){}function VP(){}function Zre(){}function GP(){}function yv(){}function Jre(){}function eie(){}function hO(){}function VW(){}function tie(){}function nie(){}function G5(){}function rie(){}function LM(){}function WP(){}function GW(){}function WW(){}function r5(){}function a$(){}function UP(){}function UW(){}function BM(){}function KW(){}function KP(){}function YW(){}function YP(){}function XP(){}function l$(){}function iie(){}function c$(){}function XW(){}function QW(){}function QP(){}function oie(){}function sie(){}function aie(){}function ZW(){}function JW(){}function lie(){}function eU(){}function tU(){}function wE(){}function vC(){}function cie(){}function uie(){}function FM(){}function t8(){}function nU(){}function rU(){}function fie(){}function iU(){}function n8(){}function pO(){}function die(){}function oU(){}function sU(){}function PM(){}function aU(){}function jM(){}function ZP(){}function zM(){}function hie(){}function lU(){}function HM(){}function cU(){}function JP(){}function gie(){}function uU(){}function bC(){}function fU(){}function qM(){}function _j(){}function dU(){}function $j(){}function mie(){}function yC(){}function ez(){}function tz(){}function nz(){}function VM(){}function r8(){}function gm(){}function GM(){}function rz(){}function u$(){}function vie(){}function iz(){}function hU(){}function B_(){}function bie(){}function yie(){}function pU(){}function wie(){}function gU(){}function xie(){}function Sie(){}function W5(){}function wC(){}function Cw(){}function WM(){}function _ie(){}function oz(){}function Eie(){}function kie(){}function gO(){}function mU(){}function vU(){}function Tie(){}function Cie(){}function $ie(){}function Aie(){}function bU(){}function yU(){}function Rie(){}function sz(){}function wU(){}function mO(){}function az(){}function xU(){}function pu(){}function UM(){}function SU(){}function iT(){}function QA(){}function Oie(){}function _U(){}function Iie(){}function Nie(){}function Mie(){}function Die(){}function Lie(){}function Bie(){}function Fie(){}function lz(){}function Pie(){}function jie(){}function zie(){}function vO(){}function EU(){}function KM(){}function YM(){}function Hie(){}function kU(){}function TU(){}function qie(){}function Vie(){}function Gie(){}function Wie(){}function Uie(){}function XM(){}function U5(){}function Kie(){}function QM(){}function Yie(){}function bO(){}function Xie(){}function CU(){}function Qie(){}function cz(){}function ZM(){}function Zie(){}function Jie(){}function eoe(){}function toe(){}function mbe(){}function noe(){}function roe(){}function ioe(){}function ooe(){}function soe(){}function aoe(){}function loe(){}function coe(){}function uoe(){}function foe(){}function ZA(){}function uz(){}function doe(){}function hoe(){}function poe(){}function fz(){}function $U(){}function goe(){}function moe(){}function voe(){}function boe(){}function yoe(){}function woe(){}function xoe(){}function Soe(){}function AU(){}function _oe(){}function JM(){}function Eoe(){}function koe(){}function Toe(){}function Coe(){}function $oe(){}function Aoe(){}function Roe(){}function Ooe(){}function Ioe(){}function Noe(){}function Moe(){}function Doe(){}function Loe(){}function Boe(){}function Foe(){}function Poe(){}function RU(){}function OU(){}function joe(){}function zoe(){}function Hoe(){}function qoe(){}function eD(){}function Voe(){}function Goe(){}function Woe(){}function Uoe(){}function Koe(){}function Yoe(){}function Xoe(){}function Qoe(){}function Zoe(){}function Joe(){}function ese(){}function tD(){}function tse(){}function IU(){}function NU(){}function dz(){}function MU(){}function DU(){}function LU(){}function BU(){}function nse(){}function rse(){}function ise(){}function nD(){}function rD(){}function ose(){}function sse(){}function hz(){}function FU(){}function ase(){}function lse(){}function cse(){}function use(){}function fse(){}function dse(){}function hse(){}function pse(){}function gse(){}function mse(){}function vse(){}function bse(){}function Q4(){}function yse(){}function wse(){}function JA(){}function Zm(){}function xse(){}function xE(){}function Lw(){}function Sse(){}function f$(){}function _se(){}function Ese(){}function kse(){}function Tse(){}function Cse(){}function pz(){}function $se(){}function xC(){}function PU(){}function iD(){}function pw(){}function gw(){}function jU(){}function Ase(){}function gz(){bD()}function Rse(){Fz()}function Ose(){XQ()}function Ise(){Ife()}function Nse(){VL()}function zU(){L5e()}function yO(){vS()}function mz(){Wke()}function Mse(){kq()}function HU(){Pz()}function oD(){hH()}function i5(){ize()}function i8(){G8()}function Dse(){IXe()}function Lse(){G_e()}function Bse(){wKe()}function Fse(){W_e()}function Pse(){cQe()}function qU(){yKe()}function SC(){$I()}function uv(){WZe()}function VU(){GZe()}function K5(){gYe()}function GU(){UZe()}function jse(){E3()}function By(){BK()}function zse(){D3e()}function WU(){ou()}function sD(){KZe()}function Hse(){xJe()}function qse(){xKe()}function Vse(){Znt()}function Gse(){SKe()}function Wse(){gat()}function Use(){h4e()}function Kse(){y5()}function Yse(){ftt()}function Xse(){by()}function Qse(){OKe()}function Zse(){V8()}function Jse(){Y4e()}function eae(){k3()}function vz(){X4e()}function tae(){y_()}function bz(){Rq()}function nae(){ihe()}function rae(){hde()}function Dx(){aGe()}function rS(){LX()}function SE(){nZ()}function UU(){$0()}function iae(){bQ()}function oae(){Ske()}function yz(){hfe()}function KU(){EZ()}function sae(){a3e()}function YU(ro){u1(ro)}function XU(ro){this.a=ro}function aD(ro){this.a=ro}function aae(ro){this.a=ro}function lae(ro){this.a=ro}function QU(ro){this.a=ro}function ZU(ro){this.a=ro}function cae(ro){this.a=ro}function uae(ro){this.a=ro}function JU(ro){this.a=ro}function eK(ro){this.a=ro}function o8(ro){this.a=ro}function fae(ro){this.a=ro}function wz(ro){this.a=ro}function dae(ro){this.a=ro}function hae(ro){this.a=ro}function xz(ro){this.a=ro}function lD(ro){this.a=ro}function tK(ro){this.a=ro}function Sz(ro){this.a=ro}function pae(ro){this.a=ro}function gae(ro){this.a=ro}function mae(ro){this.a=ro}function nK(ro){this.b=ro}function vae(ro){this.c=ro}function bae(ro){this.a=ro}function yae(ro){this.a=ro}function wae(ro){this.a=ro}function xae(ro){this.a=ro}function Sae(ro){this.a=ro}function _ae(ro){this.a=ro}function Eae(ro){this.a=ro}function kae(ro){this.a=ro}function Tae(ro){this.a=ro}function Cae(ro){this.a=ro}function $ae(ro){this.a=ro}function Aae(ro){this.a=ro}function Rae(ro){this.a=ro}function rK(ro){this.a=ro}function iK(ro){this.a=ro}function cD(ro){this.a=ro}function wO(ro){this.a=ro}function Y5(){this.a=[]}function Oae(ro,oo){ro.a=oo}function oK(ro,oo){ro.a=oo}function Iae(ro,oo){ro.b=oo}function Nae(ro,oo){ro.b=oo}function vbe(ro,oo){ro.b=oo}function sK(ro,oo){ro.j=oo}function bbe(ro,oo){ro.g=oo}function aK(ro,oo){ro.i=oo}function ybe(ro,oo){ro.c=oo}function wbe(ro,oo){ro.c=oo}function xbe(ro,oo){ro.d=oo}function o5(ro,oo){ro.d=oo}function _E(ro,oo){ro.k=oo}function Sbe(ro,oo){ro.c=oo}function lK(ro,oo){ro.c=oo}function cK(ro,oo){ro.a=oo}function _be(ro,oo){ro.a=oo}function uK(ro,oo){ro.f=oo}function Ebe(ro,oo){ro.a=oo}function fK(ro,oo){ro.b=oo}function _z(ro,oo){ro.d=oo}function uD(ro,oo){ro.i=oo}function dK(ro,oo){ro.o=oo}function kbe(ro,oo){ro.r=oo}function Mae(ro,oo){ro.a=oo}function Tbe(ro,oo){ro.b=oo}function Dae(ro,oo){ro.e=oo}function Cbe(ro,oo){ro.f=oo}function fD(ro,oo){ro.g=oo}function hK(ro,oo){ro.e=oo}function $be(ro,oo){ro.f=oo}function Abe(ro,oo){ro.f=oo}function Ez(ro,oo){ro.a=oo}function kz(ro,oo){ro.b=oo}function Rbe(ro,oo){ro.n=oo}function Obe(ro,oo){ro.a=oo}function Ibe(ro,oo){ro.c=oo}function Nbe(ro,oo){ro.c=oo}function Mbe(ro,oo){ro.c=oo}function Dbe(ro,oo){ro.a=oo}function Lbe(ro,oo){ro.a=oo}function Bbe(ro,oo){ro.d=oo}function Fbe(ro,oo){ro.d=oo}function Pbe(ro,oo){ro.e=oo}function jbe(ro,oo){ro.e=oo}function zbe(ro,oo){ro.g=oo}function Hbe(ro,oo){ro.f=oo}function qbe(ro,oo){ro.j=oo}function Vbe(ro,oo){ro.a=oo}function Gbe(ro,oo){ro.a=oo}function Wbe(ro,oo){ro.b=oo}function jo(ro){ro.b=ro.a}function Ko(ro){ro.c=ro.d.d}function xs(ro){this.a=ro}function Ms(ro){this.a=ro}function xa(ro){this.a=ro}function Dl(ro){this.a=ro}function su(ro){this.a=ro}function Cu(ro){this.a=ro}function Vu(ro){this.a=ro}function B1(ro){this.a=ro}function M1(ro){this.a=ro}function Z1(ro){this.a=ro}function L0(ro){this.a=ro}function pp(ro){this.a=ro}function xm(ro){this.a=ro}function mv(ro){this.a=ro}function um(ro){this.b=ro}function Jm(ro){this.b=ro}function fv(ro){this.b=ro}function F_(ro){this.a=ro}function P_(ro){this.a=ro}function j_(ro){this.c=ro}function _s(ro){this.c=ro}function Z4(ro){this.c=ro}function EE(ro){this.d=ro}function Tz(ro){this.a=ro}function o0(ro){this.a=ro}function rDe(ro){this.a=ro}function Ube(ro){this.a=ro}function Kbe(ro){this.a=ro}function Ybe(ro){this.a=ro}function Xbe(ro){this.a=ro}function Qbe(ro){this.a=ro}function Zbe(ro){this.a=ro}function xO(ro){this.a=ro}function iDe(ro){this.a=ro}function oDe(ro){this.a=ro}function SO(ro){this.a=ro}function sDe(ro){this.a=ro}function aDe(ro){this.a=ro}function lDe(ro){this.a=ro}function cDe(ro){this.a=ro}function uDe(ro){this.a=ro}function fDe(ro){this.a=ro}function dDe(ro){this.a=ro}function hDe(ro){this.a=ro}function pDe(ro){this.a=ro}function gDe(ro){this.a=ro}function mDe(ro){this.a=ro}function vDe(ro){this.a=ro}function bDe(ro){this.a=ro}function yDe(ro){this.a=ro}function wDe(ro){this.a=ro}function dD(ro){this.a=ro}function xDe(ro){this.a=ro}function SDe(ro){this.a=ro}function _De(ro){this.a=ro}function EDe(ro){this.a=ro}function pK(ro){this.a=ro}function kDe(ro){this.a=ro}function TDe(ro){this.a=ro}function _O(ro){this.a=ro}function Jbe(ro){this.a=ro}function CDe(ro){this.a=ro}function $De(ro){this.a=ro}function ADe(ro){this.a=ro}function RDe(ro){this.a=ro}function ODe(ro){this.a=ro}function IDe(ro){this.a=ro}function eye(ro){this.a=ro}function tye(ro){this.a=ro}function nye(ro){this.a=ro}function hD(ro){this.a=ro}function gK(ro){this.e=ro}function EO(ro){this.a=ro}function NDe(ro){this.a=ro}function s8(ro){this.a=ro}function rye(ro){this.a=ro}function MDe(ro){this.a=ro}function DDe(ro){this.a=ro}function LDe(ro){this.a=ro}function BDe(ro){this.a=ro}function FDe(ro){this.a=ro}function PDe(ro){this.a=ro}function jDe(ro){this.a=ro}function zDe(ro){this.a=ro}function HDe(ro){this.a=ro}function qDe(ro){this.a=ro}function VDe(ro){this.a=ro}function iye(ro){this.a=ro}function GDe(ro){this.a=ro}function WDe(ro){this.a=ro}function UDe(ro){this.a=ro}function KDe(ro){this.a=ro}function YDe(ro){this.a=ro}function XDe(ro){this.a=ro}function QDe(ro){this.a=ro}function ZDe(ro){this.a=ro}function JDe(ro){this.a=ro}function eLe(ro){this.a=ro}function tLe(ro){this.a=ro}function nLe(ro){this.a=ro}function rLe(ro){this.a=ro}function iLe(ro){this.a=ro}function oLe(ro){this.a=ro}function sLe(ro){this.a=ro}function aLe(ro){this.a=ro}function lLe(ro){this.a=ro}function cLe(ro){this.a=ro}function uLe(ro){this.a=ro}function fLe(ro){this.a=ro}function dLe(ro){this.a=ro}function hLe(ro){this.a=ro}function pLe(ro){this.a=ro}function gLe(ro){this.a=ro}function mLe(ro){this.a=ro}function vLe(ro){this.a=ro}function bLe(ro){this.a=ro}function yLe(ro){this.a=ro}function wLe(ro){this.a=ro}function xLe(ro){this.a=ro}function SLe(ro){this.a=ro}function _Le(ro){this.a=ro}function ELe(ro){this.a=ro}function kLe(ro){this.a=ro}function TLe(ro){this.a=ro}function CLe(ro){this.a=ro}function $Le(ro){this.a=ro}function ALe(ro){this.c=ro}function RLe(ro){this.b=ro}function OLe(ro){this.a=ro}function ILe(ro){this.a=ro}function NLe(ro){this.a=ro}function MLe(ro){this.a=ro}function DLe(ro){this.a=ro}function LLe(ro){this.a=ro}function BLe(ro){this.a=ro}function FLe(ro){this.a=ro}function PLe(ro){this.a=ro}function jLe(ro){this.a=ro}function zLe(ro){this.a=ro}function HLe(ro){this.a=ro}function qLe(ro){this.a=ro}function VLe(ro){this.a=ro}function GLe(ro){this.a=ro}function WLe(ro){this.a=ro}function ULe(ro){this.a=ro}function KLe(ro){this.a=ro}function YLe(ro){this.a=ro}function XLe(ro){this.a=ro}function QLe(ro){this.a=ro}function ZLe(ro){this.a=ro}function JLe(ro){this.a=ro}function eBe(ro){this.a=ro}function tBe(ro){this.a=ro}function nBe(ro){this.a=ro}function rBe(ro){this.a=ro}function s5(ro){this.a=ro}function e9(ro){this.a=ro}function iBe(ro){this.a=ro}function oBe(ro){this.a=ro}function sBe(ro){this.a=ro}function aBe(ro){this.a=ro}function lBe(ro){this.a=ro}function cBe(ro){this.a=ro}function uBe(ro){this.a=ro}function fBe(ro){this.a=ro}function dBe(ro){this.a=ro}function hBe(ro){this.a=ro}function pBe(ro){this.a=ro}function gBe(ro){this.a=ro}function mBe(ro){this.a=ro}function vBe(ro){this.a=ro}function bBe(ro){this.a=ro}function yBe(ro){this.a=ro}function wBe(ro){this.a=ro}function xBe(ro){this.a=ro}function SBe(ro){this.a=ro}function _Be(ro){this.a=ro}function EBe(ro){this.a=ro}function kBe(ro){this.a=ro}function TBe(ro){this.a=ro}function CBe(ro){this.a=ro}function $Be(ro){this.a=ro}function ABe(ro){this.a=ro}function mK(ro){this.a=ro}function RBe(ro){this.f=ro}function OBe(ro){this.a=ro}function IBe(ro){this.a=ro}function NBe(ro){this.a=ro}function MBe(ro){this.a=ro}function DBe(ro){this.a=ro}function LBe(ro){this.a=ro}function BBe(ro){this.a=ro}function FBe(ro){this.a=ro}function PBe(ro){this.a=ro}function jBe(ro){this.a=ro}function zBe(ro){this.a=ro}function HBe(ro){this.a=ro}function qBe(ro){this.a=ro}function VBe(ro){this.a=ro}function GBe(ro){this.a=ro}function WBe(ro){this.a=ro}function UBe(ro){this.a=ro}function KBe(ro){this.a=ro}function YBe(ro){this.a=ro}function XBe(ro){this.a=ro}function QBe(ro){this.a=ro}function ZBe(ro){this.a=ro}function JBe(ro){this.a=ro}function eFe(ro){this.a=ro}function tFe(ro){this.a=ro}function nFe(ro){this.a=ro}function rFe(ro){this.a=ro}function iFe(ro){this.a=ro}function Lae(ro){this.a=ro}function oye(ro){this.a=ro}function np(ro){this.b=ro}function oFe(ro){this.a=ro}function sFe(ro){this.a=ro}function aFe(ro){this.a=ro}function lFe(ro){this.a=ro}function cFe(ro){this.a=ro}function uFe(ro){this.a=ro}function fFe(ro){this.a=ro}function dFe(ro){this.b=ro}function hFe(ro){this.a=ro}function Cz(ro){this.a=ro}function pFe(ro){this.a=ro}function gFe(ro){this.a=ro}function sye(ro){this.c=ro}function vK(ro){this.e=ro}function bK(ro){this.a=ro}function yK(ro){this.a=ro}function Bae(ro){this.a=ro}function mFe(ro){this.d=ro}function vFe(ro){this.a=ro}function aye(ro){this.a=ro}function lye(ro){this.a=ro}function _C(ro){this.e=ro}function jSt(){this.a=0}function H1(){nw(this)}function Zl(){Qle(this)}function Fae(){eUe(this)}function bFe(){}function EC(){this.c=mMe}function yFe(ro,oo){ro.b+=oo}function zSt(ro,oo){oo.Wb(ro)}function HSt(ro){return ro.a}function qSt(ro){return ro.a}function VSt(ro){return ro.a}function GSt(ro){return ro.a}function WSt(ro){return ro.a}function Cs(ro){return ro.e}function USt(){return null}function KSt(){return null}function YSt(){Uye(),AYt()}function XSt(ro){ro.b.Of(ro.e)}function wFe(ro){ro.b=new ile}function pD(ro,oo){ro.b=oo-ro.b}function gD(ro,oo){ro.a=oo-ro.a}function Ju(ro,oo){ro.push(oo)}function xFe(ro,oo){ro.sort(oo)}function SFe(ro,oo){oo.jd(ro.a)}function QSt(ro,oo){hm(oo,ro)}function ZSt(ro,oo,co){ro.Yd(co,oo)}function $z(ro,oo){ro.e=oo,oo.b=ro}function cye(ro){U_(),this.a=ro}function _Fe(ro){U_(),this.a=ro}function EFe(ro){U_(),this.a=ro}function Pae(ro){WC(),this.a=ro}function kFe(ro){eI(),Ape.le(ro)}function uye(){uye=qo,new H1}function oT(){Vqe.call(this)}function fye(){Vqe.call(this)}function dye(){oT.call(this)}function jae(){oT.call(this)}function TFe(){oT.call(this)}function Az(){oT.call(this)}function F2(){oT.call(this)}function a8(){oT.call(this)}function l0(){oT.call(this)}function rx(){oT.call(this)}function CFe(){oT.call(this)}function ay(){oT.call(this)}function $Fe(){oT.call(this)}function AFe(){this.a=this}function wK(){this.Bb|=256}function RFe(){this.b=new BHe}function d$(ro,oo){ro.length=oo}function xK(ro,oo){Jl(ro.a,oo)}function JSt(ro,oo){F5e(ro.c,oo)}function e_t(ro,oo){om(ro.b,oo)}function t_t(ro,oo){VQ(ro.a,oo)}function n_t(ro,oo){jfe(ro.a,oo)}function kO(ro,oo){W0(ro.e,oo)}function l8(ro){sZ(ro.c,ro.b)}function r_t(ro,oo){ro.kc().Nb(oo)}function hye(ro){this.a=XIt(ro)}function Yp(){this.a=new H1}function OFe(){this.a=new H1}function pye(){this.a=new Xje}function SK(){this.a=new Zl}function zae(){this.a=new Zl}function gye(){this.a=new Zl}function Lx(){this.a=new wp}function sT(){this.a=new TXe}function mye(){this.a=new i_}function vye(){this.a=new bKe}function bye(){this.a=new RVe}function IFe(){this.a=new Zl}function NFe(){this.a=new Zl}function MFe(){this.a=new Zl}function yye(){this.a=new Zl}function DFe(){this.d=new Zl}function LFe(){this.a=new FKe}function BFe(){this.a=new Yp}function FFe(){this.a=new H1}function PFe(){this.b=new H1}function jFe(){this.b=new Zl}function wye(){this.e=new Zl}function zFe(){this.a=new jse}function HFe(){this.d=new Zl}function qFe(){qUe.call(this)}function VFe(){qUe.call(this)}function GFe(){Zl.call(this)}function xye(){dye.call(this)}function Sye(){SK.call(this)}function WFe(){CY.call(this)}function UFe(){yye.call(this)}function mD(){bFe.call(this)}function Hae(){mD.call(this)}function c8(){bFe.call(this)}function _ye(){c8.call(this)}function KFe(){Cye.call(this)}function YFe(){Cye.call(this)}function XFe(){Cye.call(this)}function QFe(){$ye.call(this)}function vD(){EU.call(this)}function Eye(){EU.call(this)}function P2(){xp.call(this)}function ZFe(){hPe.call(this)}function JFe(){hPe.call(this)}function ePe(){H1.call(this)}function tPe(){H1.call(this)}function nPe(){H1.call(this)}function qae(){QZe.call(this)}function rPe(){Yp.call(this)}function iPe(){wK.call(this)}function Vae(){awe.call(this)}function kye(){H1.call(this)}function Gae(){awe.call(this)}function Wae(){H1.call(this)}function oPe(){H1.call(this)}function Tye(){bO.call(this)}function sPe(){Tye.call(this)}function aPe(){bO.call(this)}function lPe(){gw.call(this)}function Cye(){this.a=new Yp}function cPe(){this.a=new H1}function uPe(){this.a=new Zl}function $ye(){this.a=new H1}function u8(){this.a=new xp}function fPe(){this.j=new Zl}function dPe(){this.a=new uje}function hPe(){this.a=new Yie}function Aye(){this.a=new cU}function bD(){bD=qo,xpe=new go}function Uae(){Uae=qo,Spe=new gPe}function Kae(){Kae=qo,_pe=new pPe}function pPe(){xz.call(this,"")}function gPe(){xz.call(this,"")}function mPe(ro){wZe.call(this,ro)}function vPe(ro){wZe.call(this,ro)}function Rye(ro){JU.call(this,ro)}function Oye(ro){Pje.call(this,ro)}function i_t(ro){Pje.call(this,ro)}function o_t(ro){Oye.call(this,ro)}function s_t(ro){Oye.call(this,ro)}function a_t(ro){Oye.call(this,ro)}function bPe(ro){Cue.call(this,ro)}function yPe(ro){Cue.call(this,ro)}function wPe(ro){ZVe.call(this,ro)}function xPe(ro){e2e.call(this,ro)}function yD(ro){NK.call(this,ro)}function Iye(ro){NK.call(this,ro)}function SPe(ro){NK.call(this,ro)}function Nye(ro){RFt.call(this,ro)}function Mye(ro){Nye.call(this,ro)}function ly(ro){yWe.call(this,ro)}function _Pe(ro){ly.call(this,ro)}function f8(){wO.call(this,{})}function EPe(){EPe=qo,p1t=new Ho}function _K(){_K=qo,Tpe=new wqe}function kPe(){kPe=qo,I$e=new ho}function Dye(){Dye=qo,N$e=new Bo}function EK(){EK=qo,KB=new Go}function Yae(ro){BO(),this.a=ro}function Xae(ro){cEe(),this.a=ro}function kC(ro){Mce(),this.f=ro}function Qae(ro){Mce(),this.f=ro}function TPe(ro){sGe(),this.a=ro}function CPe(ro){ro.b=null,ro.c=0}function l_t(ro,oo){ro.e=oo,gst(ro,oo)}function c_t(ro,oo){ro.a=oo,vPt(ro)}function Zae(ro,oo,co){ro.a[oo.g]=co}function u_t(ro,oo,co){ILt(co,ro,oo)}function f_t(ro,oo){s4t(oo.i,ro.n)}function $Pe(ro,oo){OOt(ro).Cd(oo)}function d_t(ro,oo){ro.a.ec().Mc(oo)}function APe(ro,oo){return ro.g-oo.g}function h_t(ro,oo){return ro*ro/oo}function lu(ro){return u1(ro),ro}function na(ro){return u1(ro),ro}function Rz(ro){return u1(ro),ro}function p_t(ro){return new cD(ro)}function g_t(ro){return new T$(ro)}function Lye(ro){return u1(ro),ro}function m_t(ro){return u1(ro),ro}function kK(ro){ly.call(this,ro)}function Dv(ro){ly.call(this,ro)}function RPe(ro){ly.call(this,ro)}function Jae(ro){yWe.call(this,ro)}function TO(ro){ly.call(this,ro)}function i1(ro){ly.call(this,ro)}function Lv(ro){ly.call(this,ro)}function OPe(ro){ly.call(this,ro)}function d8(ro){ly.call(this,ro)}function X5(ro){ly.call(this,ro)}function Q5(ro){ly.call(this,ro)}function h8(ro){ly.call(this,ro)}function z_(ro){ly.call(this,ro)}function ele(ro){ly.call(this,ro)}function p0(ro){ly.call(this,ro)}function ew(ro){u1(ro),this.a=ro}function Bye(ro){return kT(ro),ro}function wD(ro){Yxe(ro,ro.length)}function xD(ro){return ro.b==ro.c}function h$(ro){return!!ro&&ro.b}function v_t(ro){return!!ro&&ro.k}function b_t(ro){return!!ro&&ro.j}function y_t(ro,oo,co){ro.c.Ef(oo,co)}function IPe(ro,oo){ro.be(oo),oo.ae(ro)}function p8(ro){U_(),this.a=a0(ro)}function tle(){this.a=u0(a0(av))}function NPe(){throw Cs(new l0)}function w_t(){throw Cs(new l0)}function Fye(){throw Cs(new l0)}function MPe(){throw Cs(new l0)}function x_t(){throw Cs(new l0)}function S_t(){throw Cs(new l0)}function TK(){TK=qo,eI()}function Z5(){Cu.call(this,"")}function SD(){Cu.call(this,"")}function J4(){Cu.call(this,"")}function t9(){Cu.call(this,"")}function Pye(ro){Dv.call(this,ro)}function jye(ro){Dv.call(this,ro)}function H_(ro){i1.call(this,ro)}function CO(ro){fv.call(this,ro)}function DPe(ro){CO.call(this,ro)}function nle(ro){SY.call(this,ro)}function rle(ro){ywe.call(this,ro,0)}function ile(){OSe.call(this,12,3)}function $s(ro,oo){return dKe(ro,oo)}function CK(ro,oo){return Hue(ro,oo)}function __t(ro,oo){return ro.a-oo.a}function E_t(ro,oo){return ro.a-oo.a}function k_t(ro,oo){return ro.a-oo.a}function T_t(ro,oo){return oo in ro.a}function LPe(ro){return ro.a?ro.b:0}function C_t(ro){return ro.a?ro.b:0}function $_t(ro,oo,co){oo.Cd(ro.a[co])}function A_t(ro,oo,co){oo.Pe(ro.a[co])}function R_t(ro,oo){ro.b=new ov(oo)}function O_t(ro,oo){return ro.b=oo,ro}function BPe(ro,oo){return ro.c=oo,ro}function FPe(ro,oo){return ro.f=oo,ro}function I_t(ro,oo){return ro.g=oo,ro}function zye(ro,oo){return ro.a=oo,ro}function Hye(ro,oo){return ro.f=oo,ro}function N_t(ro,oo){return ro.k=oo,ro}function qye(ro,oo){return ro.a=oo,ro}function M_t(ro,oo){return ro.e=oo,ro}function Vye(ro,oo){return ro.e=oo,ro}function D_t(ro,oo){return ro.f=oo,ro}function L_t(ro,oo){ro.b=!0,ro.d=oo}function B_t(ro,oo){return ro.b-oo.b}function F_t(ro,oo){return ro.g-oo.g}function P_t(ro,oo){return ro?0:oo-1}function PPe(ro,oo){return ro?0:oo-1}function j_t(ro,oo){return ro?oo-1:0}function z_t(ro,oo){return ro.s-oo.s}function H_t(ro,oo){return oo.rg(ro)}function TC(ro,oo){return ro.b=oo,ro}function $K(ro,oo){return ro.a=oo,ro}function CC(ro,oo){return ro.c=oo,ro}function $C(ro,oo){return ro.d=oo,ro}function AC(ro,oo){return ro.e=oo,ro}function Gye(ro,oo){return ro.f=oo,ro}function _D(ro,oo){return ro.a=oo,ro}function $O(ro,oo){return ro.b=oo,ro}function AO(ro,oo){return ro.c=oo,ro}function mu(ro,oo){return ro.c=oo,ro}function Nu(ro,oo){return ro.b=oo,ro}function vu(ro,oo){return ro.d=oo,ro}function bu(ro,oo){return ro.e=oo,ro}function q_t(ro,oo){return ro.f=oo,ro}function yu(ro,oo){return ro.g=oo,ro}function wu(ro,oo){return ro.a=oo,ro}function xu(ro,oo){return ro.i=oo,ro}function Su(ro,oo){return ro.j=oo,ro}function V_t(ro,oo){E3(),uy(oo,ro)}function G_t(ro,oo,co){aCt(ro.a,oo,co)}function AK(ro){gce.call(this,ro)}function jPe(ro){fNt.call(this,ro)}function zPe(ro){wUe.call(this,ro)}function Wye(ro){wUe.call(this,ro)}function e3(ro){n6.call(this,ro)}function HPe(ro){iue.call(this,ro)}function qPe(ro){iue.call(this,ro)}function VPe(){twe.call(this,"")}function Nm(){this.a=0,this.b=0}function GPe(){this.b=0,this.a=0}function WPe(ro,oo){ro.b=0,L$(ro,oo)}function UPe(ro,oo){return ro.k=oo,ro}function W_t(ro,oo){return ro.j=oo,ro}function U_t(ro,oo){ro.c=oo,ro.b=!0}function KPe(){KPe=qo,C1t=oBt()}function n3(){n3=qo,wxt=mLt()}function YPe(){YPe=qo,Tm=$Bt()}function Uye(){Uye=qo,X3=gI()}function RO(){RO=qo,gMe=vLt()}function XPe(){XPe=qo,iSt=bLt()}function Kye(){Kye=qo,$y=pPt()}function PS(ro){return ro.e&&ro.e()}function QPe(ro){return ro.l|ro.m<<22}function ZPe(ro,oo){return ro.c._b(oo)}function JPe(ro,oo){return ett(ro.b,oo)}function ole(ro){return ro?ro.d:null}function K_t(ro){return ro?ro.g:null}function Y_t(ro){return ro?ro.i:null}function aT(ro){return c5(ro),ro.o}function n9(ro,oo){return ro.a+=oo,ro}function sle(ro,oo){return ro.a+=oo,ro}function J5(ro,oo){return ro.a+=oo,ro}function RC(ro,oo){return ro.a+=oo,ro}function Yye(ro,oo){for(;ro.Bd(oo););}function RK(ro){this.a=new g8(ro)}function eje(){throw Cs(new l0)}function tje(){throw Cs(new l0)}function nje(){throw Cs(new l0)}function rje(){throw Cs(new l0)}function ije(){throw Cs(new l0)}function oje(){throw Cs(new l0)}function e4(ro){this.a=new Bce(ro)}function sje(){this.a=new oB(uOe)}function aje(){this.b=new oB(ARe)}function lje(){this.a=new oB(MOe)}function cje(){this.b=new oB(bve)}function uje(){this.b=new oB(bve)}function OK(ro){this.a=0,this.b=ro}function Xye(ro){Ult(),HYt(this,ro)}function OO(ro){return f3(ro),ro.a}function Oz(ro){return ro.b!=ro.d.c}function Qye(ro,oo){return ro.d[oo.p]}function fje(ro,oo){return oqt(ro,oo)}function Zye(ro,oo,co){ro.splice(oo,co)}function r9(ro,oo){for(;ro.Re(oo););}function dje(ro){ro.c?Nst(ro):Mst(ro)}function hje(){throw Cs(new l0)}function pje(){throw Cs(new l0)}function gje(){throw Cs(new l0)}function mje(){throw Cs(new l0)}function vje(){throw Cs(new l0)}function bje(){throw Cs(new l0)}function yje(){throw Cs(new l0)}function wje(){throw Cs(new l0)}function xje(){throw Cs(new l0)}function Sje(){throw Cs(new l0)}function X_t(){throw Cs(new ay)}function Q_t(){throw Cs(new ay)}function Iz(ro){this.a=new _je(ro)}function _je(ro){nRt(this,ro,MFt())}function Nz(ro){return!ro||JWe(ro)}function Mz(ro){return M_[ro]!=-1}function Z_t(){qJ!=0&&(qJ=0),VJ=-1}function Eje(){wpe==null&&(wpe=[])}function Dz(ro,oo){v9.call(this,ro,oo)}function IO(ro,oo){Dz.call(this,ro,oo)}function kje(ro,oo){this.a=ro,this.b=oo}function Tje(ro,oo){this.a=ro,this.b=oo}function Cje(ro,oo){this.a=ro,this.b=oo}function $je(ro,oo){this.a=ro,this.b=oo}function Aje(ro,oo){this.a=ro,this.b=oo}function Rje(ro,oo){this.a=ro,this.b=oo}function Oje(ro,oo){this.a=ro,this.b=oo}function NO(ro,oo){this.e=ro,this.d=oo}function Jye(ro,oo){this.b=ro,this.c=oo}function Ije(ro,oo){this.b=ro,this.a=oo}function Nje(ro,oo){this.b=ro,this.a=oo}function Mje(ro,oo){this.b=ro,this.a=oo}function Dje(ro,oo){this.b=ro,this.a=oo}function Lje(ro,oo){this.a=ro,this.b=oo}function ale(ro,oo){this.a=ro,this.b=oo}function Bje(ro,oo){this.a=ro,this.f=oo}function OC(ro,oo){this.g=ro,this.i=oo}function J1(ro,oo){this.f=ro,this.g=oo}function Fje(ro,oo){this.b=ro,this.c=oo}function Pje(ro){cwe(ro.dc()),this.c=ro}function J_t(ro,oo){this.a=ro,this.b=oo}function jje(ro,oo){this.a=ro,this.b=oo}function zje(ro){this.a=bo(a0(ro),15)}function e2e(ro){this.a=bo(a0(ro),15)}function Hje(ro){this.a=bo(a0(ro),85)}function IK(ro){this.b=bo(a0(ro),85)}function NK(ro){this.b=bo(a0(ro),51)}function MK(){this.q=new lo.Date}function lle(ro,oo){this.a=ro,this.b=oo}function qje(ro,oo){return p2(ro.b,oo)}function Lz(ro,oo){return ro.b.Hc(oo)}function Vje(ro,oo){return ro.b.Ic(oo)}function Gje(ro,oo){return ro.b.Qc(oo)}function Wje(ro,oo){return ro.b.Hc(oo)}function Uje(ro,oo){return ro.c.uc(oo)}function Kje(ro,oo){return U0(ro.c,oo)}function jS(ro,oo){return ro.a._b(oo)}function Yje(ro,oo){return ro>oo&&oo0}function ple(ro,oo){return Iy(ro,oo)<0}function fze(ro,oo){return Rce(ro.a,oo)}function bEt(ro,oo){hKe.call(this,ro,oo)}function a2e(ro){Yce(),ZVe.call(this,ro)}function l2e(ro,oo){sWe(ro,ro.length,oo)}function jz(ro,oo){MWe(ro,ro.length,oo)}function OD(ro,oo){return ro.a.get(oo)}function dze(ro,oo){return p2(ro.e,oo)}function c2e(ro){return u1(ro),!1}function u2e(ro){this.a=bo(a0(ro),229)}function qK(ro){Du.call(this,ro,21)}function VK(ro,oo){J1.call(this,ro,oo)}function gle(ro,oo){J1.call(this,ro,oo)}function hze(ro,oo){this.b=ro,this.a=oo}function GK(ro,oo){this.d=ro,this.e=oo}function pze(ro,oo){this.a=ro,this.b=oo}function gze(ro,oo){this.a=ro,this.b=oo}function mze(ro,oo){this.a=ro,this.b=oo}function vze(ro,oo){this.a=ro,this.b=oo}function v8(ro,oo){this.a=ro,this.b=oo}function bze(ro,oo){this.b=ro,this.a=oo}function f2e(ro,oo){this.b=ro,this.a=oo}function d2e(ro,oo){J1.call(this,ro,oo)}function h2e(ro,oo){J1.call(this,ro,oo)}function i9(ro,oo){J1.call(this,ro,oo)}function mle(ro,oo){J1.call(this,ro,oo)}function vle(ro,oo){J1.call(this,ro,oo)}function ble(ro,oo){J1.call(this,ro,oo)}function WK(ro,oo){J1.call(this,ro,oo)}function p2e(ro,oo){this.b=ro,this.a=oo}function UK(ro,oo){J1.call(this,ro,oo)}function g2e(ro,oo){this.b=ro,this.a=oo}function KK(ro,oo){J1.call(this,ro,oo)}function yze(ro,oo){this.b=ro,this.a=oo}function m2e(ro,oo){J1.call(this,ro,oo)}function yle(ro,oo){J1.call(this,ro,oo)}function zz(ro,oo){J1.call(this,ro,oo)}function ND(ro,oo,co){ro.splice(oo,0,co)}function yEt(ro,oo,co){ro.Mb(co)&&oo.Cd(co)}function wEt(ro,oo,co){oo.Pe(ro.a.Ye(co))}function xEt(ro,oo,co){oo.Dd(ro.a.Ze(co))}function SEt(ro,oo,co){oo.Cd(ro.a.Kb(co))}function _Et(ro,oo){return z2(ro.c,oo)}function EEt(ro,oo){return z2(ro.e,oo)}function YK(ro,oo){J1.call(this,ro,oo)}function XK(ro,oo){J1.call(this,ro,oo)}function MD(ro,oo){J1.call(this,ro,oo)}function v2e(ro,oo){J1.call(this,ro,oo)}function Xp(ro,oo){J1.call(this,ro,oo)}function QK(ro,oo){J1.call(this,ro,oo)}function wze(ro,oo){this.a=ro,this.b=oo}function xze(ro,oo){this.a=ro,this.b=oo}function Sze(ro,oo){this.a=ro,this.b=oo}function _ze(ro,oo){this.a=ro,this.b=oo}function Eze(ro,oo){this.a=ro,this.b=oo}function kze(ro,oo){this.a=ro,this.b=oo}function Tze(ro,oo){this.b=ro,this.a=oo}function Cze(ro,oo){this.b=ro,this.a=oo}function b2e(ro,oo){this.b=ro,this.a=oo}function LO(ro,oo){this.c=ro,this.d=oo}function $ze(ro,oo){this.e=ro,this.d=oo}function Aze(ro,oo){this.a=ro,this.b=oo}function Rze(ro,oo){this.a=ro,this.b=oo}function Oze(ro,oo){this.a=ro,this.b=oo}function Ize(ro,oo){this.b=ro,this.a=oo}function Nze(ro,oo){this.b=oo,this.c=ro}function ZK(ro,oo){J1.call(this,ro,oo)}function Hz(ro,oo){J1.call(this,ro,oo)}function wle(ro,oo){J1.call(this,ro,oo)}function y2e(ro,oo){J1.call(this,ro,oo)}function DD(ro,oo){J1.call(this,ro,oo)}function xle(ro,oo){J1.call(this,ro,oo)}function Sle(ro,oo){J1.call(this,ro,oo)}function qz(ro,oo){J1.call(this,ro,oo)}function w2e(ro,oo){J1.call(this,ro,oo)}function _le(ro,oo){J1.call(this,ro,oo)}function LD(ro,oo){J1.call(this,ro,oo)}function x2e(ro,oo){J1.call(this,ro,oo)}function BD(ro,oo){J1.call(this,ro,oo)}function FD(ro,oo){J1.call(this,ro,oo)}function g$(ro,oo){J1.call(this,ro,oo)}function Ele(ro,oo){J1.call(this,ro,oo)}function kle(ro,oo){J1.call(this,ro,oo)}function S2e(ro,oo){J1.call(this,ro,oo)}function Vz(ro,oo){J1.call(this,ro,oo)}function o9(ro,oo){J1.call(this,ro,oo)}function Tle(ro,oo){J1.call(this,ro,oo)}function JK(ro,oo){J1.call(this,ro,oo)}function Gz(ro,oo){J1.call(this,ro,oo)}function m$(ro,oo){J1.call(this,ro,oo)}function eY(ro,oo){J1.call(this,ro,oo)}function _2e(ro,oo){J1.call(this,ro,oo)}function Cle(ro,oo){J1.call(this,ro,oo)}function $le(ro,oo){J1.call(this,ro,oo)}function Ale(ro,oo){J1.call(this,ro,oo)}function Rle(ro,oo){J1.call(this,ro,oo)}function Ole(ro,oo){J1.call(this,ro,oo)}function Ile(ro,oo){J1.call(this,ro,oo)}function Nle(ro,oo){J1.call(this,ro,oo)}function Mze(ro,oo){this.b=ro,this.a=oo}function E2e(ro,oo){J1.call(this,ro,oo)}function Dze(ro,oo){this.a=ro,this.b=oo}function Lze(ro,oo){this.a=ro,this.b=oo}function Bze(ro,oo){this.a=ro,this.b=oo}function k2e(ro,oo){J1.call(this,ro,oo)}function T2e(ro,oo){J1.call(this,ro,oo)}function Fze(ro,oo){this.a=ro,this.b=oo}function kEt(ro,oo){return qO(),oo!=ro}function Wz(ro){return T1(ro.a),ro.b}function Mle(ro){return Njt(ro,ro.c),ro}function Pze(){return KPe(),new C1t}function jze(){IY(),this.a=new qwe}function zze(){gZ(),this.a=new Yp}function Hze(){gue(),this.b=new Yp}function qze(ro,oo){this.b=ro,this.d=oo}function Vze(ro,oo){this.a=ro,this.b=oo}function Gze(ro,oo){this.a=ro,this.b=oo}function Wze(ro,oo){this.a=ro,this.b=oo}function Uze(ro,oo){this.b=ro,this.a=oo}function C2e(ro,oo){J1.call(this,ro,oo)}function $2e(ro,oo){J1.call(this,ro,oo)}function tY(ro,oo){J1.call(this,ro,oo)}function MC(ro,oo){J1.call(this,ro,oo)}function Dle(ro,oo){J1.call(this,ro,oo)}function nY(ro,oo){J1.call(this,ro,oo)}function A2e(ro,oo){J1.call(this,ro,oo)}function R2e(ro,oo){J1.call(this,ro,oo)}function Uz(ro,oo){J1.call(this,ro,oo)}function O2e(ro,oo){J1.call(this,ro,oo)}function Lle(ro,oo){J1.call(this,ro,oo)}function rY(ro,oo){J1.call(this,ro,oo)}function Ble(ro,oo){J1.call(this,ro,oo)}function Fle(ro,oo){J1.call(this,ro,oo)}function Ple(ro,oo){J1.call(this,ro,oo)}function jle(ro,oo){J1.call(this,ro,oo)}function I2e(ro,oo){J1.call(this,ro,oo)}function zle(ro,oo){J1.call(this,ro,oo)}function N2e(ro,oo){J1.call(this,ro,oo)}function Kz(ro,oo){J1.call(this,ro,oo)}function Hle(ro,oo){J1.call(this,ro,oo)}function M2e(ro,oo){J1.call(this,ro,oo)}function Yz(ro,oo){J1.call(this,ro,oo)}function D2e(ro,oo){J1.call(this,ro,oo)}function Kze(ro,oo){this.b=ro,this.a=oo}function Yze(ro,oo){this.b=ro,this.a=oo}function Xze(ro,oo){this.b=ro,this.a=oo}function Qze(ro,oo){this.b=ro,this.a=oo}function L2e(ro,oo){this.a=ro,this.b=oo}function Zze(ro,oo){this.a=ro,this.b=oo}function Jze(ro,oo){this.a=ro,this.b=oo}function Vl(ro,oo){this.a=ro,this.b=oo}function PD(ro,oo){J1.call(this,ro,oo)}function Xz(ro,oo){J1.call(this,ro,oo)}function b8(ro,oo){J1.call(this,ro,oo)}function jD(ro,oo){J1.call(this,ro,oo)}function Qz(ro,oo){J1.call(this,ro,oo)}function qle(ro,oo){J1.call(this,ro,oo)}function iY(ro,oo){J1.call(this,ro,oo)}function zD(ro,oo){J1.call(this,ro,oo)}function Vle(ro,oo){J1.call(this,ro,oo)}function oY(ro,oo){J1.call(this,ro,oo)}function s9(ro,oo){J1.call(this,ro,oo)}function Zz(ro,oo){J1.call(this,ro,oo)}function HD(ro,oo){J1.call(this,ro,oo)}function qD(ro,oo){J1.call(this,ro,oo)}function Jz(ro,oo){J1.call(this,ro,oo)}function sY(ro,oo){J1.call(this,ro,oo)}function a9(ro,oo){J1.call(this,ro,oo)}function Gle(ro,oo){J1.call(this,ro,oo)}function eHe(ro,oo){J1.call(this,ro,oo)}function aY(ro,oo){J1.call(this,ro,oo)}function tHe(ro,oo){this.a=ro,this.b=oo}function nHe(ro,oo){this.a=ro,this.b=oo}function rHe(ro,oo){this.a=ro,this.b=oo}function iHe(ro,oo){this.a=ro,this.b=oo}function oHe(ro,oo){this.a=ro,this.b=oo}function sHe(ro,oo){this.a=ro,this.b=oo}function fm(ro,oo){this.a=ro,this.b=oo}function aHe(ro,oo){this.a=ro,this.b=oo}function lHe(ro,oo){this.a=ro,this.b=oo}function cHe(ro,oo){this.a=ro,this.b=oo}function uHe(ro,oo){this.a=ro,this.b=oo}function fHe(ro,oo){this.a=ro,this.b=oo}function dHe(ro,oo){this.a=ro,this.b=oo}function hHe(ro,oo){this.b=ro,this.a=oo}function pHe(ro,oo){this.b=ro,this.a=oo}function gHe(ro,oo){this.b=ro,this.a=oo}function mHe(ro,oo){this.b=ro,this.a=oo}function vHe(ro,oo){this.a=ro,this.b=oo}function bHe(ro,oo){this.a=ro,this.b=oo}function lY(ro,oo){J1.call(this,ro,oo)}function yHe(ro,oo){this.a=ro,this.b=oo}function wHe(ro,oo){this.a=ro,this.b=oo}function y8(ro,oo){J1.call(this,ro,oo)}function xHe(ro,oo){this.f=ro,this.c=oo}function B2e(ro,oo){return z2(ro.g,oo)}function TEt(ro,oo){return z2(oo.b,ro)}function SHe(ro,oo){return Xfe(ro.a,oo)}function CEt(ro,oo){return-ro.b.af(oo)}function $Et(ro,oo){ro&&N0(qG,ro,oo)}function F2e(ro,oo){ro.i=null,iQ(ro,oo)}function AEt(ro,oo,co){yrt(oo,Hde(ro,co))}function REt(ro,oo,co){yrt(oo,Hde(ro,co))}function OEt(ro,oo){sHt(ro.a,bo(oo,58))}function _He(ro,oo){n8t(ro.a,bo(oo,12))}function cY(ro,oo){this.a=ro,this.b=oo}function EHe(ro,oo){this.a=ro,this.b=oo}function kHe(ro,oo){this.a=ro,this.b=oo}function THe(ro,oo){this.a=ro,this.b=oo}function CHe(ro,oo){this.a=ro,this.b=oo}function $He(ro,oo){this.d=ro,this.b=oo}function AHe(ro,oo){this.e=ro,this.a=oo}function eH(ro,oo){this.b=ro,this.c=oo}function P2e(ro,oo){this.i=ro,this.g=oo}function j2e(ro,oo){this.d=ro,this.e=oo}function IEt(ro,oo){v8t(new g1(ro),oo)}function uY(ro){return bq(ro.c,ro.b)}function Uv(ro){return ro?ro.md():null}function $a(ro){return ro??null}function Cm(ro){return typeof ro===Dhe}function v$(ro){return typeof ro===sR}function b$(ro){return typeof ro===B3e}function DC(ro,oo){return Iy(ro,oo)==0}function fY(ro,oo){return Iy(ro,oo)>=0}function VD(ro,oo){return Iy(ro,oo)!=0}function dY(ro,oo){return MRt(ro.Kc(),oo)}function o3(ro,oo){return ro.Rd().Xb(oo)}function RHe(ro){return bw(ro),ro.d.gc()}function hY(ro){return nL(ro==null),ro}function GD(ro,oo){return ro.a+=""+oo,ro}function Av(ro,oo){return ro.a+=""+oo,ro}function WD(ro,oo){return ro.a+=""+oo,ro}function qy(ro,oo){return ro.a+=""+oo,ro}function S0(ro,oo){return ro.a+=""+oo,ro}function z2e(ro,oo){return ro.a+=""+oo,ro}function NEt(ro){return""+(u1(ro),ro)}function OHe(ro){nw(this),$L(this,ro)}function IHe(){RSe(),Lxe.call(this)}function NHe(ro,oo){zxe.call(this,ro,oo)}function MHe(ro,oo){zxe.call(this,ro,oo)}function pY(ro,oo){zxe.call(this,ro,oo)}function iv(ro,oo){Mp(ro,oo,ro.c.b,ro.c)}function l9(ro,oo){Mp(ro,oo,ro.a,ro.a.a)}function H2e(ro){return qu(ro,0),null}function DHe(){this.b=0,this.a=!1}function LHe(){this.b=0,this.a=!1}function BHe(){this.b=new g8(M$(12))}function FHe(){FHe=qo,x0t=n0(rde())}function PHe(){PHe=qo,qpt=n0(ist())}function jHe(){jHe=qo,dyt=n0($Je())}function q2e(){q2e=qo,uye(),M$e=new H1}function zS(ro){return ro.a=0,ro.b=0,ro}function zHe(ro,oo){return ro.a=oo.g+1,ro}function Wle(ro,oo){_$.call(this,ro,oo)}function Ru(ro,oo){Rp.call(this,ro,oo)}function c9(ro,oo){P2e.call(this,ro,oo)}function HHe(ro,oo){iH.call(this,ro,oo)}function Ule(ro,oo){xI.call(this,ro,oo)}function O0(ro,oo){zK(),N0(ane,ro,oo)}function qHe(ro,oo){ro.q.setTime(vT(oo))}function MEt(ro){lo.clearTimeout(ro)}function DEt(ro){return a0(ro),new UD(ro)}function VHe(ro,oo){return $a(ro)===$a(oo)}function GHe(ro,oo){return ro.a.a.a.cc(oo)}function Kle(ro,oo){return lx(ro.a,0,oo)}function V2e(ro){return FCt(bo(ro,74))}function w8(ro){return dm((u1(ro),ro))}function LEt(ro){return dm((u1(ro),ro))}function WHe(ro){return h2(ro.l,ro.m,ro.h)}function G2e(ro,oo){return Oy(ro.a,oo.a)}function BEt(ro,oo){return IWe(ro.a,oo.a)}function FEt(ro,oo){return sp(ro.a,oo.a)}function q_(ro,oo){return ro.indexOf(oo)}function PEt(ro,oo){return ro.j[oo.p]==2}function LC(ro,oo){return ro==oo?0:ro?1:-1}function gY(ro){return ro<10?"0"+ro:""+ro}function ty(ro){return typeof ro===B3e}function jEt(ro){return ro==I6||ro==hA}function zEt(ro){return ro==I6||ro==dA}function UHe(ro,oo){return Oy(ro.g,oo.g)}function W2e(ro){return Xv(ro.b.b,ro,0)}function KHe(){HY.call(this,0,0,0,0)}function V_(){Ube.call(this,new a4)}function U2e(ro,oo){sI(ro,0,ro.length,oo)}function HEt(ro,oo){return Jl(ro.a,oo),oo}function qEt(ro,oo){return uS(),oo.a+=ro}function VEt(ro,oo){return uS(),oo.a+=ro}function GEt(ro,oo){return uS(),oo.c+=ro}function WEt(ro,oo){return Jl(ro.c,oo),ro}function K2e(ro,oo){return Vw(ro.a,oo),ro}function YHe(ro){this.a=Pze(),this.b=ro}function XHe(ro){this.a=Pze(),this.b=ro}function ov(ro){this.a=ro.a,this.b=ro.b}function UD(ro){this.a=ro,gz.call(this)}function QHe(ro){this.a=ro,gz.call(this)}function x8(){ax.call(this,0,0,0,0)}function mY(ro){return Vw(new Zp,ro)}function ZHe(ro){return sX(bo(ro,123))}function $w(ro){return ro.vh()&&ro.wh()}function u9(ro){return ro!=O_&&ro!=U3}function l5(ro){return ro==qv||ro==ey}function f9(ro){return ro==Cx||ro==A_}function JHe(ro){return ro==x7||ro==w7}function UEt(ro,oo){return Oy(ro.g,oo.g)}function eqe(ro,oo){return new xI(oo,ro)}function KEt(ro,oo){return new xI(oo,ro)}function Y2e(ro){return gTt(ro.b.Kc(),ro.a)}function Yle(ro,oo){AI(ro,oo),pI(ro,ro.D)}function Xle(ro,oo,co){XX(ro,oo),YX(ro,co)}function d9(ro,oo,co){i6(ro,oo),r6(ro,co)}function ix(ro,oo,co){m2(ro,oo),b2(ro,co)}function tH(ro,oo,co){uI(ro,oo),dI(ro,co)}function nH(ro,oo,co){fI(ro,oo),hI(ro,co)}function tqe(ro,oo,co){Owe.call(this,ro,oo,co)}function X2e(ro){xHe.call(this,ro,!0)}function nqe(){VK.call(this,"Tail",3)}function rqe(){VK.call(this,"Head",1)}function s3(ro){J_(),RRt.call(this,ro)}function BC(ro){HY.call(this,ro,ro,ro,ro)}function Qle(ro){ro.c=Al(bm,Xu,1,0,5,1)}function Q2e(ro){return ro.b&&vhe(ro),ro.a}function Z2e(ro){return ro.b&&vhe(ro),ro.c}function YEt(ro,oo){E_||(ro.b=oo)}function XEt(ro,oo){return ro[ro.length]=oo}function QEt(ro,oo){return ro[ro.length]=oo}function ZEt(ro,oo){return D$(oo,l_(ro))}function JEt(ro,oo){return D$(oo,l_(ro))}function ekt(ro,oo){return tQ(Uce(ro.d),oo)}function tkt(ro,oo){return tQ(Uce(ro.g),oo)}function nkt(ro,oo){return tQ(Uce(ro.j),oo)}function Mm(ro,oo){Rp.call(this,ro.b,oo)}function rkt(ro,oo){Y1(Fy(ro.a),EKe(oo))}function ikt(ro,oo){Y1(vw(ro.a),kKe(oo))}function okt(ro,oo,co){ix(co,co.i+ro,co.j+oo)}function iqe(ro,oo,co){Np(ro.c[oo.g],oo.g,co)}function skt(ro,oo,co){bo(ro.c,71).Gi(oo,co)}function Zle(ro,oo,co){return Np(ro,oo,co),co}function oqe(ro){g2(ro.Sf(),new EDe(ro))}function h9(ro){return ro!=null?dp(ro):0}function akt(ro){return ro==null?0:dp(ro)}function KD(ro){H0(),_C.call(this,ro)}function sqe(ro){this.a=ro,dxe.call(this,ro)}function s_(){s_=qo,lo.Math.log(2)}function ox(){ox=qo,QE=(cze(),Txt)}function aqe(){aqe=qo,Nme=new zL(Uve)}function c0(){c0=qo,new lqe,new Zl}function lqe(){new H1,new H1,new H1}function lkt(){throw Cs(new X5(Zht))}function ckt(){throw Cs(new X5(Zht))}function ukt(){throw Cs(new X5(Jht))}function fkt(){throw Cs(new X5(Jht))}function Jle(ro){this.a=ro,IK.call(this,ro)}function ece(ro){this.a=ro,IK.call(this,ro)}function cqe(ro,oo){WC(),this.a=ro,this.b=oo}function dkt(ro,oo){a0(oo),y9(ro).Jc(new Ro)}function Up(ro,oo){Oce(ro.c,ro.c.length,oo)}function cy(ro){return ro.aoo?1:0}function ewe(ro,oo){return Iy(ro,oo)>0?ro:oo}function h2(ro,oo,co){return{l:ro,m:oo,h:co}}function hkt(ro,oo){ro.a!=null&&_He(oo,ro.a)}function pkt(ro){ev(ro,null),Om(ro,null)}function gkt(ro,oo,co){return N0(ro.g,co,oo)}function p9(ro,oo,co){return Eke(oo,co,ro.c)}function mkt(ro,oo,co){return N0(ro.k,co,oo)}function vkt(ro,oo,co){return rKt(ro,oo,co),co}function bkt(ro,oo){return Pw(),oo.n.b+=ro}function fqe(ro){_Se.call(this),this.b=ro}function twe(ro){Hwe.call(this),this.a=ro}function dqe(){VK.call(this,"Range",2)}function vY(ro){this.b=ro,this.a=new Zl}function hqe(ro){this.b=new R0,this.a=ro}function pqe(ro){ro.a=new Ws,ro.c=new Ws}function gqe(ro){ro.a=new H1,ro.d=new H1}function mqe(ro){mue(ro,null),vue(ro,null)}function vqe(ro,oo){return oKt(ro.a,oo,null)}function ykt(ro,oo){return N0(ro.a,oo.a,oo)}function Pm(ro){return new Vl(ro.a,ro.b)}function nwe(ro){return new Vl(ro.c,ro.d)}function wkt(ro){return new Vl(ro.c,ro.d)}function YD(ro,oo){return vUt(ro.c,ro.b,oo)}function Hs(ro,oo){return ro!=null&&ade(ro,oo)}function tce(ro,oo){return uOt(ro.Kc(),oo)!=-1}function bY(ro){return ro.Ob()?ro.Pb():null}function xkt(ro){this.b=(Hu(),new j_(ro))}function rwe(ro){this.a=ro,H1.call(this)}function bqe(){iH.call(this,null,null)}function yqe(){kY.call(this,null,null)}function wqe(){J1.call(this,"INSTANCE",0)}function xqe(){r5e(),this.a=new oB(t9e)}function Sqe(ro){return zx(ro,0,ro.length)}function Skt(ro,oo){return new jqe(ro.Kc(),oo)}function iwe(ro,oo){return ro.a.Bc(oo)!=null}function _qe(ro,oo){U1(ro),ro.Gc(bo(oo,15))}function _kt(ro,oo,co){ro.c.bd(oo,bo(co,136))}function Ekt(ro,oo,co){ro.c.Ui(oo,bo(co,136))}function Eqe(ro,oo){ro.c&&(kxe(oo),XUe(oo))}function kkt(ro,oo){ro.q.setHours(oo),uB(ro,oo)}function Tkt(ro,oo){jC(oo,ro.a.a.a,ro.a.a.b)}function Ckt(ro,oo,co,fo){Np(ro.a[oo.g],co.g,fo)}function nce(ro,oo,co){return ro.a[oo.g][co.g]}function $kt(ro,oo){return ro.e[oo.c.p][oo.p]}function Akt(ro,oo){return ro.c[oo.c.p][oo.p]}function a_(ro,oo){return ro.a[oo.c.p][oo.p]}function Rkt(ro,oo){return ro.j[oo.p]=Hzt(oo)}function rce(ro,oo){return ro.a.Bc(oo)!=null}function Okt(ro,oo){return na(Tl(oo.a))<=ro}function Ikt(ro,oo){return na(Tl(oo.a))>=ro}function Nkt(ro,oo){return l_e(ro.f,oo.Pg())}function S8(ro,oo){return ro.a*oo.a+ro.b*oo.b}function Mkt(ro,oo){return ro.a0?oo/(ro*ro):oo*100}function o5t(ro,oo){return ro>0?oo*oo/ro:oo*oo*100}function y$(ro,oo){return bo(p_(ro.a,oo),34)}function s5t(ro,oo){return E3(),Mu(ro,oo.e,oo)}function a5t(ro,oo,co){return FK(),co.Mg(ro,oo)}function l5t(ro){return y5(),ro.e.a+ro.f.a/2}function c5t(ro,oo,co){return y5(),co.e.a-ro*oo}function u5t(ro){return y5(),ro.e.b+ro.f.b/2}function f5t(ro,oo,co){return y5(),co.e.b-ro*oo}function eVe(ro){ro.d=new Qqe(ro),ro.e=new H1}function tVe(){this.a=new ZC,this.b=new ZC}function nVe(ro){this.c=ro,this.a=1,this.b=1}function rVe(ro){Nhe(),wFe(this),this.Ff(ro)}function d5t(ro,oo,co){LX(),ro.pf(oo)&&co.Cd(ro)}function h5t(ro,oo,co){return Jl(oo,btt(ro,co))}function jC(ro,oo,co){return ro.a+=oo,ro.b+=co,ro}function p5t(ro,oo,co){return ro.a*=oo,ro.b*=co,ro}function Swe(ro,oo){return ro.a=oo.a,ro.b=oo.b,ro}function TY(ro){return ro.a=-ro.a,ro.b=-ro.b,ro}function JD(ro,oo,co){return ro.a-=oo,ro.b-=co,ro}function iVe(ro){xp.call(this),EL(this,ro)}function oVe(){J1.call(this,"GROW_TREE",0)}function sVe(){J1.call(this,"POLYOMINO",0)}function Rw(ro,oo,co){V2.call(this,ro,oo,co,2)}function g5t(ro,oo,co){PL(Fy(ro.a),oo,EKe(co))}function aVe(ro,oo){RD(),iH.call(this,ro,oo)}function _we(ro,oo){t4(),kY.call(this,ro,oo)}function lVe(ro,oo){t4(),_we.call(this,ro,oo)}function cVe(ro,oo){t4(),kY.call(this,ro,oo)}function m5t(ro,oo){return ro.c.Fc(bo(oo,136))}function v5t(ro,oo,co){PL(vw(ro.a),oo,kKe(co))}function uVe(ro){this.c=ro,m2(ro,0),b2(ro,0)}function cce(ro,oo){ox(),GY.call(this,ro,oo)}function fVe(ro,oo){ox(),cce.call(this,ro,oo)}function Ewe(ro,oo){ox(),cce.call(this,ro,oo)}function kwe(ro,oo){ox(),GY.call(this,ro,oo)}function dVe(ro,oo){ox(),Ewe.call(this,ro,oo)}function hVe(ro,oo){ox(),kwe.call(this,ro,oo)}function pVe(ro,oo){ox(),GY.call(this,ro,oo)}function b5t(ro,oo,co){return oo.zl(ro.e,ro.c,co)}function y5t(ro,oo,co){return oo.Al(ro.e,ro.c,co)}function Twe(ro,oo,co){return CZ(VH(ro,oo),co)}function uce(ro,oo){return y3(ro.e,bo(oo,54))}function w5t(ro){return ro==null?null:WKt(ro)}function x5t(ro){return ro==null?null:PFt(ro)}function S5t(ro){return ro==null?null:ry(ro)}function _5t(ro){return ro==null?null:ry(ro)}function au(ro){return nL(ro==null||v$(ro)),ro}function Tl(ro){return nL(ro==null||b$(ro)),ro}function u0(ro){return nL(ro==null||Cm(ro)),ro}function c5(ro){ro.o==null&&vzt(ro)}function Cwe(ro){if(!ro)throw Cs(new Az)}function E5t(ro){if(!ro)throw Cs(new jae)}function T1(ro){if(!ro)throw Cs(new ay)}function w$(ro){if(!ro)throw Cs(new F2)}function gVe(ro){if(!ro)throw Cs(new rx)}function zO(){zO=qo,GG=new ZFe,new JFe}function b9(){b9=qo,E7=new np("root")}function $we(){QZe.call(this),this.Bb|=hv}function k5t(ro,oo){this.d=ro,Ko(this),this.b=oo}function Awe(ro,oo){Fue.call(this,ro),this.a=oo}function Rwe(ro,oo){Fue.call(this,ro),this.a=oo}function Owe(ro,oo,co){IX.call(this,ro,oo,co,null)}function mVe(ro,oo,co){IX.call(this,ro,oo,co,null)}function aH(ro,oo){this.c=ro,NO.call(this,ro,oo)}function eL(ro,oo){this.a=ro,aH.call(this,ro,oo)}function Iwe(ro){this.q=new lo.Date(vT(ro))}function vVe(ro){return ro>8?0:ro+1}function bVe(ro,oo){E_||Jl(ro.a,oo)}function T5t(ro,oo){return Pz(),wI(oo.d.i,ro)}function C5t(ro,oo){return G8(),new rat(oo,ro)}function $5t(ro,oo,co){return ro.Ne(oo,co)<=0?co:oo}function A5t(ro,oo,co){return ro.Ne(oo,co)<=0?oo:co}function R5t(ro,oo){return bo(p_(ro.b,oo),143)}function O5t(ro,oo){return bo(p_(ro.c,oo),233)}function fce(ro){return bo(cu(ro.a,ro.b),294)}function yVe(ro){return new Vl(ro.c,ro.d+ro.a)}function wVe(ro){return u1(ro),ro?1231:1237}function xVe(ro){return Pw(),JHe(bo(ro,203))}function x$(){x$=qo,AAe=Tu((Mw(),oC))}function I5t(ro,oo){oo.a?Bjt(ro,oo):rce(ro.a,oo.b)}function lH(ro,oo,co){++ro.j,ro.tj(),Bue(ro,oo,co)}function SVe(ro,oo,co){++ro.j,ro.qj(oo,ro.Zi(oo,co))}function _Ve(ro,oo,co){var fo;fo=ro.fd(oo),fo.Rb(co)}function Nwe(ro,oo,co){return co=Uw(ro,oo,6,co),co}function Mwe(ro,oo,co){return co=Uw(ro,oo,3,co),co}function Dwe(ro,oo,co){return co=Uw(ro,oo,9,co),co}function W_(ro,oo){return kH(oo,sTe),ro.f=oo,ro}function Lwe(ro,oo){return(oo&q0)%ro.d.length}function EVe(ro,oo,co){return m3e(ro.c,ro.b,oo,co)}function kVe(ro,oo){this.c=ro,n6.call(this,oo)}function TVe(ro,oo){this.a=ro,dFe.call(this,oo)}function cH(ro,oo){this.a=ro,dFe.call(this,oo)}function Rp(ro,oo){np.call(this,ro),this.a=oo}function Bwe(ro,oo){sye.call(this,ro),this.a=oo}function dce(ro,oo){sye.call(this,ro),this.a=oo}function N5t(ro){bke.call(this,0,0),this.f=ro}function CVe(ro,oo,co){return ro.a+=zx(oo,0,co),ro}function uH(ro){return!ro.a&&(ro.a=new Uo),ro.a}function Fwe(ro,oo){var co;return co=ro.e,ro.e=oo,co}function Pwe(ro,oo){var co;return co=oo,!!ro.Fe(co)}function M5t(ro,oo){return _f(),ro==oo?0:ro?1:-1}function S$(ro,oo){ro.a.bd(ro.b,oo),++ro.b,ro.c=-1}function fH(ro){ro.b?fH(ro.b):ro.f.c.zc(ro.e,ro.d)}function $Ve(ro){nw(ro.e),ro.d.b=ro.d,ro.d.a=ro.d}function D5t(ro,oo,co){lT(),Oae(ro,oo.Ve(ro.a,co))}function jwe(ro,oo,co){return I8(ro,bo(oo,22),co)}function cS(ro,oo){return CK(new Array(oo),ro)}function L5t(ro){return s0(l3(ro,32))^s0(ro)}function hce(ro){return String.fromCharCode(ro)}function B5t(ro){return ro==null?null:ro.message}function F5t(ro,oo,co){return ro.apply(oo,co)}function P5t(ro,oo){var co;co=ro[h1e],co.call(ro,oo)}function j5t(ro,oo){var co;co=ro[h1e],co.call(ro,oo)}function z5t(ro,oo){return Pz(),!wI(oo.d.i,ro)}function zwe(ro,oo,co,fo){HY.call(this,ro,oo,co,fo)}function AVe(){CY.call(this),this.a=new Nm}function Hwe(){this.n=new Nm,this.o=new Nm}function RVe(){this.b=new Nm,this.c=new Zl}function OVe(){this.a=new Zl,this.b=new Zl}function IVe(){this.a=new i_,this.b=new RFe}function qwe(){this.b=new a4,this.a=new a4}function NVe(){this.b=new Yp,this.a=new Yp}function MVe(){this.b=new H1,this.a=new H1}function DVe(){this.b=new aje,this.a=new Qre}function LVe(){this.a=new By,this.b=new Cre}function BVe(){this.a=new Zl,this.d=new Zl}function CY(){this.n=new c8,this.i=new x8}function FVe(ro){this.a=(qw(ro,tA),new o2(ro))}function PVe(ro){this.a=(qw(ro,tA),new o2(ro))}function H5t(ro){return ro<100?null:new e3(ro)}function q5t(ro,oo){return ro.n.a=(u1(oo),oo+10)}function V5t(ro,oo){return ro.n.a=(u1(oo),oo+10)}function G5t(ro,oo){return oo==ro||VI(uZ(oo),ro)}function jVe(ro,oo){return N0(ro.a,oo,"")==null}function W5t(ro,oo){var co;return co=oo.qi(ro.a),co}function G0(ro,oo){return ro.a+=oo.a,ro.b+=oo.b,ro}function mm(ro,oo){return ro.a-=oo.a,ro.b-=oo.b,ro}function U5t(ro){return d$(ro.j.c,0),ro.a=-1,ro}function Vwe(ro,oo,co){return co=Uw(ro,oo,11,co),co}function K5t(ro,oo,co){co!=null&&nQ(oo,bde(ro,co))}function Y5t(ro,oo,co){co!=null&&rQ(oo,bde(ro,co))}function k8(ro,oo,co,fo){Bl.call(this,ro,oo,co,fo)}function Gwe(ro,oo,co,fo){Bl.call(this,ro,oo,co,fo)}function zVe(ro,oo,co,fo){Gwe.call(this,ro,oo,co,fo)}function HVe(ro,oo,co,fo){ZY.call(this,ro,oo,co,fo)}function pce(ro,oo,co,fo){ZY.call(this,ro,oo,co,fo)}function Wwe(ro,oo,co,fo){ZY.call(this,ro,oo,co,fo)}function qVe(ro,oo,co,fo){pce.call(this,ro,oo,co,fo)}function Uwe(ro,oo,co,fo){pce.call(this,ro,oo,co,fo)}function Wu(ro,oo,co,fo){Wwe.call(this,ro,oo,co,fo)}function VVe(ro,oo,co,fo){Uwe.call(this,ro,oo,co,fo)}function GVe(ro,oo,co,fo){Gxe.call(this,ro,oo,co,fo)}function _$(ro,oo){Dv.call(this,PB+ro+jT+oo)}function Kwe(ro,oo){return ro.jk().wi().ri(ro,oo)}function Ywe(ro,oo){return ro.jk().wi().ti(ro,oo)}function WVe(ro,oo){return u1(ro),$a(ro)===$a(oo)}function Iu(ro,oo){return u1(ro),$a(ro)===$a(oo)}function X5t(ro,oo){return ro.b.Bd(new gze(ro,oo))}function Q5t(ro,oo){return ro.b.Bd(new mze(ro,oo))}function UVe(ro,oo){return ro.b.Bd(new vze(ro,oo))}function Z5t(ro,oo){return ro.e=bo(ro.d.Kb(oo),159)}function Xwe(ro,oo,co){return ro.lastIndexOf(oo,co)}function J5t(ro,oo,co){return sp(ro[oo.a],ro[co.a])}function e4t(ro,oo){return Fl(oo,(ou(),rG),ro)}function t4t(ro,oo){return Oy(oo.a.d.p,ro.a.d.p)}function n4t(ro,oo){return Oy(ro.a.d.p,oo.a.d.p)}function r4t(ro,oo){return sp(ro.c-ro.s,oo.c-oo.s)}function i4t(ro,oo){return sp(ro.b.e.a,oo.b.e.a)}function o4t(ro,oo){return sp(ro.c.e.a,oo.c.e.a)}function KVe(ro){return ro.c?Xv(ro.c.a,ro,0):-1}function T8(ro){return ro==iC||ro==YE||ro==n2}function Qwe(ro,oo){this.c=ro,zce.call(this,ro,oo)}function YVe(ro,oo,co){this.a=ro,ywe.call(this,oo,co)}function XVe(ro){this.c=ro,pY.call(this,nV,0)}function QVe(ro,oo,co){this.c=oo,this.b=co,this.a=ro}function dH(ro){qO(),this.d=ro,this.a=new m9}function ZVe(ro){U_(),this.a=(Hu(),new CO(ro))}function s4t(ro,oo){l5(ro.f)?czt(ro,oo):jBt(ro,oo)}function JVe(ro,oo){yTt.call(this,ro,ro.length,oo)}function a4t(ro,oo){E_||oo&&(ro.d=oo)}function eGe(ro,oo){return Hs(oo,15)&&Bst(ro.c,oo)}function l4t(ro,oo,co){return bo(ro.c,71).Wk(oo,co)}function $Y(ro,oo,co){return bo(ro.c,71).Xk(oo,co)}function c4t(ro,oo,co){return b5t(ro,bo(oo,343),co)}function Zwe(ro,oo,co){return y5t(ro,bo(oo,343),co)}function u4t(ro,oo,co){return Crt(ro,bo(oo,343),co)}function tGe(ro,oo,co){return JBt(ro,bo(oo,343),co)}function tL(ro,oo){return oo==null?null:P$(ro.b,oo)}function Jwe(ro){return b$(ro)?(u1(ro),ro):ro.ue()}function AY(ro){return!isNaN(ro)&&!isFinite(ro)}function gce(ro){pqe(this),Fw(this),Fm(this,ro)}function tw(ro){Qle(this),gxe(this.c,0,ro.Pc())}function sx(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function nGe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function rGe(ro,oo,co){this.d=ro,this.b=co,this.a=oo}function iGe(ro){this.a=ro,a5(),Ty(Date.now())}function oGe(ro){Iw(ro.a),p_e(ro.c,ro.b),ro.b=null}function mce(){mce=qo,nAe=new Ps,$1t=new qs}function sGe(){sGe=qo,Oxt=Al(bm,Xu,1,0,5,1)}function aGe(){aGe=qo,Yxt=Al(bm,Xu,1,0,5,1)}function exe(){exe=qo,Xxt=Al(bm,Xu,1,0,5,1)}function U_(){U_=qo,new cye((Hu(),Hu(),cv))}function f4t(ro){return aI(),e0((hQe(),O1t),ro)}function d4t(ro){return ow(),e0((rQe(),B1t),ro)}function h4t(ro){return LQ(),e0((HYe(),q1t),ro)}function p4t(ro){return qX(),e0((qYe(),V1t),ro)}function g4t(ro){return bZ(),e0((HJe(),G1t),ro)}function m4t(ro){return US(),e0((tQe(),K1t),ro)}function v4t(ro){return iw(),e0((eQe(),X1t),ro)}function b4t(ro){return R2(),e0((nQe(),Z1t),ro)}function y4t(ro){return IZ(),e0((FHe(),x0t),ro)}function w4t(ro){return l6(),e0((gQe(),_0t),ro)}function x4t(ro){return Q8(),e0((vQe(),k0t),ro)}function S4t(ro){return WL(),e0((mQe(),$0t),ro)}function _4t(ro){return LK(),e0((pYe(),A0t),ro)}function E4t(ro){return VX(),e0((VYe(),W0t),ro)}function k4t(ro){return SL(),e0((iQe(),bpt),ro)}function T4t(ro){return Km(),e0((ZQe(),Spt),ro)}function C4t(ro){return _I(),e0((yQe(),Cpt),ro)}function $4t(ro){return CT(),e0((bQe(),Npt),ro)}function txe(ro,oo){if(!ro)throw Cs(new i1(oo))}function HO(ro){if(!ro)throw Cs(new Lv(F3e))}function vce(ro,oo){if(ro!=oo)throw Cs(new rx)}function lGe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function nxe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function cGe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function RY(ro,oo,co){this.b=ro,this.a=oo,this.c=co}function rxe(ro,oo,co){this.b=ro,this.c=oo,this.a=co}function ixe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function OY(ro,oo,co){this.e=oo,this.b=ro,this.d=co}function uGe(ro,oo,co){this.b=ro,this.a=oo,this.c=co}function A4t(ro,oo,co){return lT(),ro.a.Yd(oo,co),oo}function bce(ro){var oo;return oo=new j0,oo.e=ro,oo}function oxe(ro){var oo;return oo=new DFe,oo.b=ro,oo}function hH(){hH=qo,lee=new lW,cee=new _P}function IY(){IY=qo,Kpt=new Lne,Upt=new K7}function uS(){uS=qo,Jpt=new Q7,egt=new oO}function R4t(ro){return s6(),e0((DXe(),ugt),ro)}function O4t(ro){return rv(),e0((PHe(),qpt),ro)}function I4t(ro){return gQ(),e0((xQe(),Wpt),ro)}function N4t(ro){return m_(),e0((wQe(),rgt),ro)}function M4t(ro){return V$(),e0((JQe(),ogt),ro)}function D4t(ro){return mZ(),e0((CJe(),fgt),ro)}function L4t(ro){return tR(),e0((EZe(),dgt),ro)}function B4t(ro){return DX(),e0((QYe(),hgt),ro)}function F4t(ro){return kL(),e0((NXe(),pgt),ro)}function P4t(ro){return ZX(),e0((MXe(),ggt),ro)}function j4t(ro){return y4(),e0((eZe(),mgt),ro)}function z4t(ro){return YH(),e0((UYe(),vgt),ro)}function H4t(ro){return WI(),e0((CZe(),_gt),ro)}function q4t(ro){return Sv(),e0((iet(),Egt),ro)}function V4t(ro){return SI(),e0((BXe(),kgt),ro)}function G4t(ro){return b5(),e0((FXe(),Cgt),ro)}function W4t(ro){return EX(),e0((WYe(),$gt),ro)}function U4t(ro){return Aq(),e0((TZe(),Sgt),ro)}function K4t(ro){return ET(),e0((LXe(),ygt),ro)}function Y4t(ro){return rZ(),e0((kZe(),wgt),ro)}function X4t(ro){return HH(),e0((KYe(),xgt),ro)}function Q4t(ro){return yx(),e0((nZe(),Agt),ro)}function Z4t(ro){return E4(),e0((PJe(),Jvt),ro)}function J4t(ro){return DL(),e0((PXe(),ebt),ro)}function e3t(ro){return H$(),e0((SQe(),tbt),ro)}function t3t(ro){return GL(),e0((tZe(),nbt),ro)}function n3t(ro){return qx(),e0((oet(),rbt),ro)}function r3t(ro){return Q_(),e0((_Qe(),ibt),ro)}function i3t(ro){return UH(),e0((YYe(),obt),ro)}function o3t(ro){return xv(),e0((HXe(),abt),ro)}function s3t(ro){return dQ(),e0((jXe(),lbt),ro)}function a3t(ro){return IL(),e0((zXe(),cbt),ro)}function l3t(ro){return RI(),e0((qXe(),ubt),ro)}function c3t(ro){return QX(),e0((VXe(),fbt),ro)}function u3t(ro){return mQ(),e0((GXe(),dbt),ro)}function f3t(ro){return o6(),e0((JXe(),$bt),ro)}function d3t(ro){return yL(),e0((XYe(),Nbt),ro)}function h3t(ro){return Y_(),e0((eXe(),jbt),ro)}function p3t(ro){return c_(),e0((tXe(),Hbt),ro)}function g3t(ro){return VS(),e0((nXe(),ryt),ro)}function m3t(ro){return JC(),e0((rXe(),uyt),ro)}function v3t(ro){return eR(),e0((RQe(),fyt),ro)}function b3t(ro){return lB(),e0((jHe(),dyt),ro)}function y3t(ro){return NL(),e0((WXe(),hyt),ro)}function w3t(ro){return ML(),e0((AQe(),Lyt),ro)}function x3t(ro){return xX(),e0((ZYe(),Byt),ro)}function S3t(ro){return oQ(),e0((JYe(),Hyt),ro)}function _3t(ro){return JQ(),e0((rZe(),Vyt),ro)}function E3t(ro){return uq(),e0((UXe(),Wyt),ro)}function k3t(ro){return BX(),e0((iXe(),Gyt),ro)}function T3t(ro){return WQ(),e0(($Qe(),d2t),ro)}function C3t(ro){return fQ(),e0((KXe(),h2t),ro)}function $3t(ro){return OQ(),e0((YXe(),p2t),ro)}function A3t(ro){return HQ(),e0((XXe(),m2t),ro)}function R3t(ro){return kQ(),e0((QXe(),y2t),ro)}function O3t(ro){return AX(),e0((oXe(),j2t),ro)}function I3t(ro){return vI(),e0((GYe(),Hpt),ro)}function N3t(ro){return a1(),e0(($Ze(),Bpt),ro)}function M3t(ro){return FX(),e0((ZXe(),z2t),ro)}function D3t(ro){return gfe(),e0((sXe(),H2t),ro)}function L3t(ro){return iB(),e0((iZe(),V2t),ro)}function B3t(ro){return PK(),e0((SYe(),W2t),ro)}function F3t(ro){return mq(),e0((sQe(),G2t),ro)}function P3t(ro){return jK(),e0((_Ye(),K2t),ro)}function j3t(ro){return BH(),e0((aXe(),Y2t),ro)}function z3t(ro){return Oq(),e0((oZe(),X2t),ro)}function H3t(ro){return CD(),e0((EYe(),dwt),ro)}function q3t(ro){return sq(),e0((lXe(),hwt),ro)}function V3t(ro){return YS(),e0((aZe(),ywt),ro)}function G3t(ro){return _4(),e0((kJe(),xwt),ro)}function W3t(ro){return IE(),e0((AZe(),Swt),ro)}function U3t(ro){return AT(),e0((RZe(),$wt),ro)}function K3t(ro){return _g(),e0((sZe(),Uwt),ro)}function Y3t(ro){return g_(),e0((aQe(),Kwt),ro)}function X3t(ro){return S5(),e0((OQe(),Ywt),ro)}function Q3t(ro){return tZ(),e0((OZe(),Xwt),ro)}function Z3t(ro){return x5(),e0((oQe(),Zwt),ro)}function J3t(ro){return Gw(),e0((IQe(),ext),ro)}function eTt(ro){return K$(),e0((zJe(),txt),ro)}function tTt(ro){return R9(),e0((lZe(),nxt),ro)}function nTt(ro){return Im(),e0((IZe(),rxt),ro)}function rTt(ro){return sw(),e0((NZe(),ixt),ro)}function iTt(ro){return nu(),e0((cZe(),oxt),ro)}function oTt(ro){return Mw(),e0((NQe(),uxt),ro)}function sTt(ro){return ww(),e0((jJe(),fxt),ro)}function aTt(ro){return K8(),e0((lQe(),dxt),ro)}function lTt(ro,oo){return u1(ro),ro+(u1(oo),oo)}function cTt(ro){return yce(),e0((cXe(),hxt),ro)}function uTt(ro){return CQ(),e0((MQe(),pxt),ro)}function fTt(ro){return vQ(),e0((DQe(),vxt),ro)}function qO(){qO=qo,CRe=(nu(),l1),gte=p1}function yce(){yce=qo,VNe=new jGe,GNe=new kWe}function dTt(ro){return!ro.e&&(ro.e=new Zl),ro.e}function wce(ro,oo){this.c=ro,this.a=oo,this.b=oo-ro}function fGe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function xce(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function sxe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function axe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function dGe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function hGe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function r4(ro,oo,co){this.e=ro,this.a=oo,this.c=co}function pGe(ro,oo,co){ox(),kSe.call(this,ro,oo,co)}function Sce(ro,oo,co){ox(),lSe.call(this,ro,oo,co)}function lxe(ro,oo,co){ox(),lSe.call(this,ro,oo,co)}function cxe(ro,oo,co){ox(),lSe.call(this,ro,oo,co)}function gGe(ro,oo,co){ox(),Sce.call(this,ro,oo,co)}function uxe(ro,oo,co){ox(),Sce.call(this,ro,oo,co)}function mGe(ro,oo,co){ox(),uxe.call(this,ro,oo,co)}function vGe(ro,oo,co){ox(),lxe.call(this,ro,oo,co)}function bGe(ro,oo,co){ox(),cxe.call(this,ro,oo,co)}function _ce(ro){HY.call(this,ro.d,ro.c,ro.a,ro.b)}function fxe(ro){HY.call(this,ro.d,ro.c,ro.a,ro.b)}function dxe(ro){this.d=ro,Ko(this),this.b=fCt(ro.d)}function hTt(ro){return KI(),e0((TJe(),Rxt),ro)}function pH(ro,oo){return a0(ro),a0(oo),new Tje(ro,oo)}function C8(ro,oo){return a0(ro),a0(oo),new OGe(ro,oo)}function pTt(ro,oo){return a0(ro),a0(oo),new IGe(ro,oo)}function gTt(ro,oo){return a0(ro),a0(oo),new Dje(ro,oo)}function Ece(ro){return T1(ro.b!=0),hx(ro,ro.a.a)}function mTt(ro){return T1(ro.b!=0),hx(ro,ro.c.b)}function vTt(ro){return!ro.c&&(ro.c=new ZA),ro.c}function VO(ro){var oo;return oo=new Zl,Yue(oo,ro),oo}function bTt(ro){var oo;return oo=new Yp,Yue(oo,ro),oo}function yGe(ro){var oo;return oo=new pye,lfe(oo,ro),oo}function gH(ro){var oo;return oo=new xp,lfe(oo,ro),oo}function bo(ro,oo){return nL(ro==null||ade(ro,oo)),ro}function yTt(ro,oo,co){bWe.call(this,oo,co),this.a=ro}function wGe(ro,oo){this.c=ro,this.b=oo,this.a=!1}function xGe(){this.a=";,;",this.b="",this.c=""}function SGe(ro,oo,co){this.b=ro,NHe.call(this,oo,co)}function hxe(ro,oo,co){this.c=ro,GK.call(this,oo,co)}function pxe(ro,oo,co){LO.call(this,ro,oo),this.b=co}function gxe(ro,oo,co){l4e(co,0,ro,oo,co.length,!1)}function TE(ro,oo,co,fo,po){ro.b=oo,ro.c=co,ro.d=fo,ro.a=po}function mxe(ro,oo,co,fo,po){ro.d=oo,ro.c=co,ro.a=fo,ro.b=po}function wTt(ro,oo){oo&&(ro.b=oo,ro.a=(f3(oo),oo.a))}function mH(ro,oo){if(!ro)throw Cs(new i1(oo))}function $8(ro,oo){if(!ro)throw Cs(new Lv(oo))}function vxe(ro,oo){if(!ro)throw Cs(new RPe(oo))}function xTt(ro,oo){return BK(),Oy(ro.d.p,oo.d.p)}function STt(ro,oo){return y5(),sp(ro.e.b,oo.e.b)}function _Tt(ro,oo){return y5(),sp(ro.e.a,oo.e.a)}function ETt(ro,oo){return Oy(BGe(ro.d),BGe(oo.d))}function NY(ro,oo){return oo&&rX(ro,oo.d)?oo:null}function kTt(ro,oo){return oo==(nu(),l1)?ro.c:ro.d}function bxe(ro){return m3(ECt(ty(ro)?Px(ro):ro))}function TTt(ro){return new Vl(ro.c+ro.b,ro.d+ro.a)}function _Ge(ro){return ro!=null&&!Wfe(ro,JF,eP)}function CTt(ro,oo){return(ott(ro)<<4|ott(oo))&em}function EGe(ro,oo,co,fo,po){ro.c=oo,ro.d=co,ro.b=fo,ro.a=po}function yxe(ro){var oo,co;oo=ro.b,co=ro.c,ro.b=co,ro.c=oo}function wxe(ro){var oo,co;co=ro.d,oo=ro.a,ro.d=oo,ro.a=co}function $Tt(ro,oo){var co;return co=ro.c,J_e(ro,oo),co}function xxe(ro,oo){return oo<0?ro.g=-1:ro.g=oo,ro}function MY(ro,oo){return B8t(ro),ro.a*=oo,ro.b*=oo,ro}function kGe(ro,oo,co){yZe.call(this,oo,co),this.d=ro}function vH(ro,oo,co){j2e.call(this,ro,oo),this.c=co}function DY(ro,oo,co){j2e.call(this,ro,oo),this.c=co}function Sxe(ro){exe(),bO.call(this),this.ci(ro)}function TGe(){iI(),YCt.call(this,(r3(),tS))}function CGe(ro){return H0(),new CE(0,ro)}function $Ge(){$Ge=qo,lbe=(Hu(),new F_(fpe))}function LY(){LY=qo,new Mke((Kae(),_pe),(Uae(),Spe))}function AGe(){AGe=qo,H$e=Al(Vm,Yl,17,256,0,1)}function RGe(){this.b=na(Tl(iu((vS(),nge))))}function kce(ro){this.b=ro,this.a=uT(this.b.a).Od()}function OGe(ro,oo){this.b=ro,this.a=oo,gz.call(this)}function IGe(ro,oo){this.a=ro,this.b=oo,gz.call(this)}function NGe(ro,oo,co){this.a=ro,c9.call(this,oo,co)}function MGe(ro,oo,co){this.a=ro,c9.call(this,oo,co)}function GO(ro,oo,co){var fo;fo=new T$(co),WS(ro,oo,fo)}function _xe(ro,oo,co){var fo;return fo=ro[oo],ro[oo]=co,fo}function BY(ro){var oo;return oo=ro.slice(),Hue(oo,ro)}function FY(ro){var oo;return oo=ro.n,ro.a.b+oo.d+oo.a}function DGe(ro){var oo;return oo=ro.n,ro.e.b+oo.d+oo.a}function Exe(ro){var oo;return oo=ro.n,ro.e.a+oo.b+oo.c}function kxe(ro){ro.a.b=ro.b,ro.b.a=ro.a,ro.a=ro.b=null}function y0(ro,oo){return Mp(ro,oo,ro.c.b,ro.c),!0}function ATt(ro){return ro.a?ro.a:Jce(ro)}function RTt(ro){return L8(),NE(ro)==kp(S3(ro))}function OTt(ro){return L8(),S3(ro)==kp(NE(ro))}function zC(ro,oo){return XL(ro,new LO(oo.a,oo.b))}function ITt(ro,oo){return oX(),gde(ro,oo),new rUe(ro,oo)}function NTt(ro,oo){return ro.c=oo)throw Cs(new xye)}function E$(ro,oo){return pq(ro,(u1(oo),new iDe(oo)))}function R8(ro,oo){return pq(ro,(u1(oo),new oDe(oo)))}function wWe(ro,oo,co){return sXt(ro,bo(oo,12),bo(co,12))}function xWe(ro){return G2(),bo(ro,12).g.c.length!=0}function SWe(ro){return G2(),bo(ro,12).e.c.length!=0}function vCt(ro,oo){return G8(),sp(oo.a.o.a,ro.a.o.a)}function bCt(ro,oo){oo.Bb&Cy&&!ro.a.o&&(ro.a.o=oo)}function yCt(ro,oo){oo.Ug("General 'Rotator",1),MKt(ro)}function wCt(ro,oo,co){oo.qf(co,na(Tl(m1(ro.b,co)))*ro.a)}function _We(ro,oo,co){return j9(),bI(ro,oo)&&bI(ro,co)}function sL(ro){return sw(),!ro.Hc(L5)&&!ro.Hc(K3)}function xCt(ro){return ro.e?d_e(ro.e):null}function aL(ro){return ty(ro)?""+ro:Lst(ro)}function Vxe(ro){var oo;for(oo=ro;oo.f;)oo=oo.f;return oo}function SCt(ro,oo,co){return Np(oo,0,Rxe(oo[0],co[0])),oo}function i4(ro,oo,co,fo){var po;po=ro.i,po.i=oo,po.a=co,po.b=fo}function Bl(ro,oo,co,fo){Qp.call(this,ro,oo,co),this.b=fo}function Em(ro,oo,co,fo,po){jue.call(this,ro,oo,co,fo,po,-1)}function lL(ro,oo,co,fo,po){PH.call(this,ro,oo,co,fo,po,-1)}function ZY(ro,oo,co,fo){vH.call(this,ro,oo,co),this.b=fo}function EWe(ro){xHe.call(this,ro,!1),this.a=!1}function kWe(){eHe.call(this,"LOOKAHEAD_LAYOUT",1)}function TWe(ro){this.b=ro,_8.call(this,ro),Oqe(this)}function CWe(ro){this.b=ro,oH.call(this,ro),Iqe(this)}function k$(ro,oo,co){this.a=ro,k8.call(this,oo,co,5,6)}function Gxe(ro,oo,co,fo){this.b=ro,Qp.call(this,oo,co,fo)}function $We(ro,oo){this.b=ro,vae.call(this,ro.b),this.a=oo}function AWe(ro){this.a=bnt(ro.a),this.b=new tw(ro.b)}function Wxe(ro,oo){WC(),J_t.call(this,ro,xQ(new ew(oo)))}function JY(ro,oo){return H0(),new aSe(ro,oo,0)}function Fce(ro,oo){return H0(),new aSe(6,ro,oo)}function jm(ro,oo){for(u1(oo);ro.Ob();)oo.Cd(ro.Pb())}function p2(ro,oo){return Cm(oo)?aue(ro,oo):!!wv(ro.f,oo)}function Pce(ro,oo){return oo.Vh()?y3(ro.b,bo(oo,54)):oo}function _Ct(ro,oo){return Iu(ro.substr(0,oo.length),oo)}function $E(ro){return new x1(new hwe(ro.a.length,ro.a))}function eX(ro){return new Vl(ro.c+ro.b/2,ro.d+ro.a/2)}function ECt(ro){return h2(~ro.l&xw,~ro.m&xw,~ro.h&A5)}function jce(ro){return typeof ro===Zq||typeof ro===Lhe}function nw(ro){ro.f=new YHe(ro),ro.i=new XHe(ro),++ro.g}function RWe(ro){if(!ro)throw Cs(new ay);return ro.d}function O8(ro){var oo;return oo=OL(ro),T1(oo!=null),oo}function kCt(ro){var oo;return oo=HIt(ro),T1(oo!=null),oo}function UO(ro,oo){var co;return co=ro.a.gc(),a_e(oo,co),co-oo}function om(ro,oo){var co;return co=ro.a.zc(oo,ro),co==null}function yH(ro,oo){return ro.a.zc(oo,(_f(),M3))==null}function Uxe(ro){return new Ou(null,RCt(ro,ro.length))}function Kxe(ro,oo,co){return slt(ro,bo(oo,42),bo(co,176))}function I8(ro,oo,co){return pS(ro.a,oo),_xe(ro.b,oo.g,co)}function TCt(ro,oo,co){WO(co,ro.a.c.length),fx(ro.a,co,oo)}function xl(ro,oo,co,fo){Iet(oo,co,ro.length),CCt(ro,oo,co,fo)}function CCt(ro,oo,co,fo){var po;for(po=oo;po0?lo.Math.log(ro/oo):-100}function IWe(ro,oo){return Iy(ro,oo)<0?-1:Iy(ro,oo)>0?1:0}function wH(ro,oo){_qe(ro,Hs(oo,160)?oo:bo(oo,2036).Rl())}function Zxe(ro,oo){if(ro==null)throw Cs(new d8(oo))}function RCt(ro,oo){return N8t(oo,ro.length),new PGe(ro,oo)}function Jxe(ro,oo){return oo?Fm(ro,oo):!1}function OCt(){return _K(),As($s(a1t,1),Pl,549,0,[Tpe])}function uL(ro){return ro.e==0?ro:new dT(-ro.e,ro.d,ro.a)}function ICt(ro,oo){return sp(ro.c.c+ro.c.b,oo.c.c+oo.c.b)}function xH(ro,oo){Mp(ro.d,oo,ro.b.b,ro.b),++ro.a,ro.c=null}function NWe(ro,oo){return ro.c?NWe(ro.c,oo):Jl(ro.b,oo),ro}function NCt(ro,oo,co){var fo;return fo=N$(ro,oo),Eue(ro,oo,co),fo}function MWe(ro,oo,co){var fo;for(fo=0;fo=ro.g}function Np(ro,oo,co){return E5t(co==null||yGt(ro,co)),ro[oo]=co}function iSe(ro,oo){return o1(oo,ro.length+1),ro.substr(oo)}function Xce(ro,oo){for(u1(oo);ro.c=ro?new t2e:rRt(ro-1)}function zm(ro){return!ro.a&&ro.c?ro.c.b:ro.a}function cSe(ro){return Hs(ro,616)?ro:new JUe(ro)}function f3(ro){ro.c?f3(ro.c):(w3(ro),ro.d=!0)}function hL(ro){ro.c?ro.c.$e():(ro.d=!0,xHt(ro))}function eUe(ro){ro.b=!1,ro.c=!1,ro.d=!1,ro.a=!1}function tUe(ro){var oo,co;return oo=ro.c.i.c,co=ro.d.i.c,oo==co}function ZCt(ro,oo){var co;co=ro.Ih(oo),co>=0?ro.ki(co):J5e(ro,oo)}function nUe(ro,oo){ro.c<0||ro.b.b0;)ro=ro<<1|(ro<0?1:0);return ro}function uUe(ro,oo){var co;return co=new Vy(ro),Ju(oo.c,co),co}function fUe(ro,oo){ro.u.Hc((sw(),L5))&&ijt(ro,oo),S7t(ro,oo)}function ky(ro,oo){return $a(ro)===$a(oo)||ro!=null&&U0(ro,oo)}function Rv(ro,oo){return Rce(ro.a,oo)?ro.b[bo(oo,22).g]:null}function f6t(){return LK(),As($s(IAe,1),Pl,489,0,[Ype])}function d6t(){return PK(),As($s(sIe,1),Pl,490,0,[yve])}function h6t(){return jK(),As($s(U2t,1),Pl,558,0,[wve])}function p6t(){return CD(),As($s(CIe,1),Pl,539,0,[xG])}function sX(ro){return!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),ro.n}function Zce(ro){return!ro.c&&(ro.c=new Bl(fw,ro,9,9)),ro.c}function hSe(ro){return!ro.c&&(ro.c=new Wu(D1,ro,5,8)),ro.c}function g6t(ro){return!ro.b&&(ro.b=new Wu(D1,ro,4,7)),ro.b}function SH(ro){return ro.j.c.length=0,gSe(ro.c),U5t(ro.a),ro}function ZO(ro){return ro.e==$N&&jbe(ro,uMt(ro.g,ro.b)),ro.e}function _H(ro){return ro.f==$N&&Hbe(ro,tLt(ro.g,ro.b)),ro.f}function M0(ro,oo,co,fo){return MJe(ro,oo,co,!1),SQ(ro,fo),ro}function dUe(ro,oo){this.b=ro,zce.call(this,ro,oo),Oqe(this)}function hUe(ro,oo){this.b=ro,Qwe.call(this,ro,oo),Iqe(this)}function pL(ro){this.d=ro,this.a=this.d.b,this.b=this.d.c}function pSe(ro,oo){this.b=ro,this.c=oo,this.a=new m8(this.b)}function Um(ro,oo){return o1(oo,ro.length),ro.charCodeAt(oo)}function m6t(ro,oo){nke(ro,na(w5(oo,"x")),na(w5(oo,"y")))}function v6t(ro,oo){nke(ro,na(w5(oo,"x")),na(w5(oo,"y")))}function X0(ro,oo){return w3(ro),new Ou(ro,new T_e(oo,ro.a))}function Kv(ro,oo){return w3(ro),new Ou(ro,new u_e(oo,ro.a))}function C$(ro,oo){return w3(ro),new Awe(ro,new SXe(oo,ro.a))}function aX(ro,oo){return w3(ro),new Rwe(ro,new _Xe(oo,ro.a))}function b6t(ro,oo){return new BUe(bo(a0(ro),50),bo(a0(oo),50))}function y6t(ro,oo){return sp(ro.d.c+ro.d.b/2,oo.d.c+oo.d.b/2)}function pUe(ro,oo,co){co.a?b2(ro,oo.b-ro.f/2):m2(ro,oo.a-ro.g/2)}function w6t(ro,oo){return sp(ro.g.c+ro.g.b/2,oo.g.c+oo.g.b/2)}function x6t(ro,oo){return i2e(),sp((u1(ro),ro),(u1(oo),oo))}function S6t(ro){return ro!=null&&Lz(lne,ro.toLowerCase())}function gSe(ro){var oo;for(oo=ro.Kc();oo.Ob();)oo.Pb(),oo.Qb()}function y9(ro){var oo;return oo=ro.b,!oo&&(ro.b=oo=new o8(ro)),oo}function Jce(ro){var oo;return oo=aRt(ro),oo||null}function gUe(ro,oo){var co,fo;return co=ro/oo,fo=dm(co),co>fo&&++fo,fo}function _6t(ro,oo,co){var fo;fo=bo(ro.d.Kb(co),159),fo&&fo.Nb(oo)}function E6t(ro,oo,co){CWt(ro.a,co),iOt(co),Kjt(ro.b,co),UWt(oo,co)}function lX(ro,oo,co,fo){this.a=ro,this.c=oo,this.b=co,this.d=fo}function mSe(ro,oo,co,fo){this.c=ro,this.b=oo,this.a=co,this.d=fo}function mUe(ro,oo,co,fo){this.c=ro,this.b=oo,this.d=co,this.a=fo}function ax(ro,oo,co,fo){this.c=ro,this.d=oo,this.b=co,this.a=fo}function vUe(ro,oo,co,fo){this.a=ro,this.d=oo,this.c=co,this.b=fo}function eue(ro,oo,co,fo){this.a=ro,this.e=oo,this.d=co,this.c=fo}function bUe(ro,oo,co,fo){this.a=ro,this.c=oo,this.d=co,this.b=fo}function tue(ro,oo,co){this.a=V3e,this.d=ro,this.b=oo,this.c=co}function M8(ro,oo,co,fo){J1.call(this,ro,oo),this.a=co,this.b=fo}function yUe(ro,oo){this.d=(u1(ro),ro),this.a=16449,this.c=oo}function wUe(ro){this.a=new Zl,this.e=Al(Q1,Yl,53,ro,0,2)}function k6t(ro){ro.Ug("No crossing minimization",1),ro.Vg()}function xUe(){ly.call(this,"There is no more element.")}function SUe(ro,oo,co,fo){this.a=ro,this.b=oo,this.c=co,this.d=fo}function _Ue(ro,oo,co,fo){this.a=ro,this.b=oo,this.c=co,this.d=fo}function hT(ro,oo,co,fo){this.e=ro,this.a=oo,this.c=co,this.d=fo}function EUe(ro,oo,co,fo){this.a=ro,this.c=oo,this.d=co,this.b=fo}function kUe(ro,oo,co,fo){ox(),EXe.call(this,oo,co,fo),this.a=ro}function TUe(ro,oo,co,fo){ox(),EXe.call(this,oo,co,fo),this.a=ro}function nue(ro,oo,co){var fo,po;return fo=R3e(ro),po=oo.ti(co,fo),po}function u5(ro){var oo,co;return co=(oo=new EC,oo),cI(co,ro),co}function rue(ro){var oo,co;return co=(oo=new EC,oo),N5e(co,ro),co}function T6t(ro,oo){var co;return co=m1(ro.f,oo),dEe(oo,co),null}function CUe(ro){return!ro.b&&(ro.b=new Bl(Gp,ro,12,3)),ro.b}function $Ue(ro){return nL(ro==null||jce(ro)&&ro.Tm!==Yo),ro}function cX(ro){return ro.n&&(ro.e!==Fct&&ro.je(),ro.j=null),ro}function JO(ro){if(bw(ro.d),ro.d.d!=ro.c)throw Cs(new rx)}function vSe(ro){return T1(ro.b0&&drt(this)}function AUe(ro,oo){this.a=ro,k5t.call(this,ro,bo(ro.d,15).fd(oo))}function C6t(ro,oo){return sp(H2(ro)*Ow(ro),H2(oo)*Ow(oo))}function $6t(ro,oo){return sp(H2(ro)*Ow(ro),H2(oo)*Ow(oo))}function A6t(ro){return g6(ro)&&lu(au(zl(ro,(ou(),KT))))}function R6t(ro,oo){return Mu(ro,bo(bs(oo,(ou(),KN)),17),oo)}function O6t(ro,oo){return bo(bs(ro,(Wl(),RR)),15).Fc(oo),oo}function bSe(ro,oo){return ro.b=oo.b,ro.c=oo.c,ro.d=oo.d,ro.a=oo.a,ro}function RUe(ro,oo,co,fo){this.b=ro,this.c=fo,pY.call(this,oo,co)}function I6t(ro,oo,co){ro.i=0,ro.e=0,oo!=co&&met(ro,oo,co)}function N6t(ro,oo,co){ro.i=0,ro.e=0,oo!=co&&vet(ro,oo,co)}function M6t(ro,oo,co){return TD(),lNt(bo(m1(ro.e,oo),529),co)}function D8(ro){var oo;return oo=ro.f,oo||(ro.f=new NO(ro,ro.c))}function OUe(ro,oo){return A9(ro.j,oo.s,oo.c)+A9(oo.e,ro.s,ro.c)}function IUe(ro,oo){ro.e&&!ro.e.a&&(yFe(ro.e,oo),IUe(ro.e,oo))}function NUe(ro,oo){ro.d&&!ro.d.a&&(yFe(ro.d,oo),NUe(ro.d,oo))}function D6t(ro,oo){return-sp(H2(ro)*Ow(ro),H2(oo)*Ow(oo))}function L6t(ro){return bo(ro.ld(),149).Pg()+":"+ry(ro.md())}function MUe(){Bde(this,new KU),this.wb=(c3(),_d),RO()}function DUe(ro){this.b=new Zl,sm(this.b,this.b),this.a=ro}function ySe(ro,oo){new xp,this.a=new P2,this.b=ro,this.c=oo}function XC(){XC=qo,eAe=new ks,Mpe=new ks,tAe=new Os}function Hu(){Hu=qo,cv=new Qo,HE=new gs,KJ=new ys}function wSe(){wSe=qo,j1t=new w1,H1t=new Dxe,z1t=new Zu}function L8(){L8=qo,nee=new Zl,Jpe=new H1,Zpe=new Zl}function uX(ro,oo){if(ro==null)throw Cs(new d8(oo));return ro}function fX(ro){return!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a}function ep(ro){return!ro.q&&(ro.q=new Bl(eS,ro,11,10)),ro.q}function Ml(ro){return!ro.s&&(ro.s=new Bl(L2,ro,21,17)),ro.s}function B6t(ro){return a0(ro),$nt(new x1(E1(ro.a.Kc(),new ko)))}function F6t(ro,oo){return Nw(ro),Nw(oo),APe(bo(ro,22),bo(oo,22))}function pT(ro,oo,co){var fo,po;fo=Jwe(co),po=new cD(fo),WS(ro,oo,po)}function oue(ro,oo,co,fo,po,vo){PH.call(this,ro,oo,co,fo,po,vo?-2:-1)}function LUe(ro,oo,co,fo){j2e.call(this,oo,co),this.b=ro,this.a=fo}function BUe(ro,oo){o_t.call(this,new Bce(ro)),this.a=ro,this.b=oo}function xSe(ro){this.b=ro,this.c=ro,ro.e=null,ro.c=null,this.a=1}function P6t(ro){uS();var oo;oo=bo(ro.g,10),oo.n.a=ro.d.c+oo.d.b}function eI(){eI=qo;var ro,oo;oo=!UNt(),ro=new Lo,Ape=oo?new Po:ro}function sue(ro){return Hu(),Hs(ro,59)?new nle(ro):new SY(ro)}function dX(ro){return Hs(ro,16)?new rL(bo(ro,16)):bTt(ro.Kc())}function j6t(ro){return new Mqe(ro,ro.e.Rd().gc()*ro.c.Rd().gc())}function z6t(ro){return new Dqe(ro,ro.e.Rd().gc()*ro.c.Rd().gc())}function SSe(ro){return ro&&ro.hashCode?ro.hashCode():PC(ro)}function aue(ro,oo){return oo==null?!!wv(ro.f,null):rCt(ro.i,oo)}function H6t(ro,oo){var co;return co=iwe(ro.a,oo),co&&(oo.d=null),co}function FUe(ro,oo,co){return ro.f?ro.f.ef(oo,co):!1}function EH(ro,oo,co,fo){Np(ro.c[oo.g],co.g,fo),Np(ro.c[co.g],oo.g,fo)}function lue(ro,oo,co,fo){Np(ro.c[oo.g],oo.g,co),Np(ro.b[oo.g],oo.g,fo)}function q6t(ro,oo,co){return na(Tl(co.a))<=ro&&na(Tl(co.b))>=oo}function PUe(ro,oo){this.g=ro,this.d=As($s(VE,1),T4,10,0,[oo])}function jUe(ro){this.c=ro,this.b=new e4(bo(a0(new L1),50))}function zUe(ro){this.c=ro,this.b=new e4(bo(a0(new cC),50))}function HUe(ro){this.b=ro,this.a=new e4(bo(a0(new I1),50))}function qUe(){this.b=new Yp,this.d=new xp,this.e=new Sye}function _Se(){this.c=new Nm,this.d=new Nm,this.e=new Nm}function QC(){this.a=new P2,this.b=(qw(3,tA),new o2(3))}function o4(ro,oo){this.e=ro,this.a=bm,this.b=Zst(oo),this.c=oo}function hX(ro){this.c=ro.c,this.d=ro.d,this.b=ro.b,this.a=ro.a}function VUe(ro,oo,co,fo,po,vo){this.a=ro,tfe.call(this,oo,co,fo,po,vo)}function GUe(ro,oo,co,fo,po,vo){this.a=ro,tfe.call(this,oo,co,fo,po,vo)}function d3(ro,oo,co,fo,po,vo,xo){return new Tue(ro.e,oo,co,fo,po,vo,xo)}function V6t(ro,oo,co){return co>=0&&Iu(ro.substr(co,oo.length),oo)}function WUe(ro,oo){return Hs(oo,149)&&Iu(ro.b,bo(oo,149).Pg())}function G6t(ro,oo){return ro.a?oo.Gh().Kc():bo(oo.Gh(),71).Ii()}function UUe(ro,oo){var co;return co=ro.b.Qc(oo),zYe(co,ro.b.gc()),co}function kH(ro,oo){if(ro==null)throw Cs(new d8(oo));return ro}function Yv(ro){return ro.u||(mw(ro),ro.u=new TVe(ro,ro)),ro.u}function cue(ro){this.a=(Hu(),Hs(ro,59)?new nle(ro):new SY(ro))}function $2(ro){var oo;return oo=bo(n1(ro,16),29),oo||ro.ii()}function pX(ro,oo){var co;return co=aT(ro.Rm),oo==null?co:co+": "+oo}function lx(ro,oo,co){return Bm(oo,co,ro.length),ro.substr(oo,co-oo)}function KUe(ro,oo){CY.call(this),D_e(this),this.a=ro,this.c=oo}function W6t(ro){ro&&pX(ro,ro.ie())}function U6t(ro){TK(),lo.setTimeout(function(){throw ro},0)}function K6t(){return LQ(),As($s(cAe,1),Pl,436,0,[Hpe,lAe])}function Y6t(){return qX(),As($s(fAe,1),Pl,435,0,[uAe,qpe])}function X6t(){return VX(),As($s(PAe,1),Pl,432,0,[ege,ree])}function Q6t(){return vI(),As($s(zpt,1),Pl,517,0,[WV,pge])}function Z6t(){return EX(),As($s(S7e,1),Pl,429,0,[Vge,x7e])}function J6t(){return YH(),As($s(s7e,1),Pl,428,0,[Mee,o7e])}function e$t(){return DX(),As($s(Z9e,1),Pl,431,0,[Q9e,Age])}function t$t(){return UH(),As($s(pRe,1),Pl,430,0,[kme,Tme])}function n$t(){return yL(),As($s(Ibt,1),Pl,531,0,[_F,SF])}function r$t(){return oQ(),As($s(uOe,1),Pl,501,0,[Ete,k7])}function i$t(){return Y_(),As($s(Pbt,1),Pl,523,0,[W6,N4])}function o$t(){return c_(),As($s(zbt,1),Pl,522,0,[JT,C_])}function s$t(){return VS(),As($s(nyt,1),Pl,528,0,[AA,z3])}function a$t(){return HH(),As($s(c7e,1),Pl,488,0,[l7e,Lee])}function l$t(){return AX(),As($s(JOe,1),Pl,491,0,[mve,ZOe])}function c$t(){return gfe(),As($s(oIe,1),Pl,492,0,[rIe,iIe])}function u$t(){return xX(),As($s(cOe,1),Pl,433,0,[Kme,lOe])}function f$t(){return BX(),As($s(dOe,1),Pl,434,0,[fOe,eve])}function d$t(){return JC(),As($s(cyt,1),Pl,465,0,[H3,S7])}function h$t(){return BH(),As($s(aIe,1),Pl,438,0,[xve,Dte])}function p$t(){return sq(),As($s(AIe,1),Pl,437,0,[Bte,$Ie])}function g$t(){return yce(),As($s(Zte,1),Pl,347,0,[VNe,GNe])}function gX(ro,oo,co,fo){return co>=0?ro.Uh(oo,co,fo):ro.Ch(null,co,fo)}function TH(ro){return ro.b.b==0?ro.a.sf():Ece(ro.b)}function m$t(ro){if(ro.p!=5)throw Cs(new F2);return s0(ro.f)}function v$t(ro){if(ro.p!=5)throw Cs(new F2);return s0(ro.k)}function ESe(ro){return $a(ro.a)===$a((hfe(),obe))&&mUt(ro),ro.a}function b$t(ro,oo){ro.b=oo,ro.c>0&&ro.b>0&&(ro.g=qY(ro.c,ro.b,ro.a))}function y$t(ro,oo){ro.c=oo,ro.c>0&&ro.b>0&&(ro.g=qY(ro.c,ro.b,ro.a))}function YUe(ro,oo){Mae(this,new Vl(ro.a,ro.b)),Tbe(this,gH(oo))}function ZC(){s_t.call(this,new g8(M$(12))),cwe(!0),this.a=2}function uue(ro,oo,co){H0(),_C.call(this,ro),this.b=oo,this.a=co}function kSe(ro,oo,co){ox(),vK.call(this,oo),this.a=ro,this.b=co}function XUe(ro){var oo;oo=ro.c.d.b,ro.b=oo,ro.a=ro.c.d,oo.a=ro.c.d.b=ro}function w$t(ro){return ro.b==0?null:(T1(ro.b!=0),hx(ro,ro.a.a))}function Gy(ro,oo){return oo==null?Uv(wv(ro.f,null)):OD(ro.i,oo)}function QUe(ro,oo,co,fo,po){return new Pde(ro,(aI(),Fpe),oo,co,fo,po)}function mX(ro,oo){return FYe(oo),G8t(ro,Al(Q1,E0,28,oo,15,1),oo)}function vX(ro,oo){return uX(ro,"set1"),uX(oo,"set2"),new jje(ro,oo)}function x$t(ro,oo){var co=$pe[ro.charCodeAt(0)];return co??ro}function ZUe(ro,oo){var co,fo;return co=oo,fo=new Fs,Mlt(ro,co,fo),fo.d}function fue(ro,oo,co,fo){var po;po=new AVe,oo.a[co.g]=po,I8(ro.b,fo,po)}function S$t(ro,oo){var co;return co=H8t(ro.f,oo),G0(TY(co),ro.f.d)}function CH(ro){var oo;J8t(ro.a),oqe(ro.a),oo=new pK(ro.a),dke(oo)}function E$t(ro,oo){Hst(ro,!0),g2(ro.e.Rf(),new rxe(ro,!0,oo))}function k$t(ro,oo){return L8(),ro==kp(NE(oo))||ro==kp(S3(oo))}function T$t(ro,oo){return y5(),bo(bs(oo,(by(),pE)),17).a==ro}function dm(ro){return Math.max(Math.min(ro,q0),-2147483648)|0}function JUe(ro){this.a=bo(a0(ro),277),this.b=(Hu(),new mwe(ro))}function eKe(ro,oo,co){this.i=new Zl,this.b=ro,this.g=oo,this.a=co}function TSe(ro,oo,co){this.a=new Zl,this.e=ro,this.f=oo,this.c=co}function bX(ro,oo,co){this.c=new Zl,this.e=ro,this.f=oo,this.b=co}function tKe(ro){CY.call(this),D_e(this),this.a=ro,this.c=!0}function C$t(ro){function oo(){}return oo.prototype=ro||{},new oo}function $$t(ro){if(ro.Ae())return null;var oo=ro.n;return HJ[oo]}function $H(ro){return ro.Db>>16!=3?null:bo(ro.Cb,27)}function l_(ro){return ro.Db>>16!=9?null:bo(ro.Cb,27)}function nKe(ro){return ro.Db>>16!=6?null:bo(ro.Cb,74)}function JC(){JC=qo,H3=new $2e(fR,0),S7=new $2e(dR,1)}function Y_(){Y_=qo,W6=new k2e(dR,0),N4=new k2e(fR,1)}function c_(){c_=qo,JT=new T2e(S1e,0),C_=new T2e("UP",1)}function rKe(){rKe=qo,l1t=n0((_K(),As($s(a1t,1),Pl,549,0,[Tpe])))}function iKe(ro){var oo;return oo=new RK(M$(ro.length)),kEe(oo,ro),oo}function oKe(ro,oo){return ro.b+=oo.b,ro.c+=oo.c,ro.d+=oo.d,ro.a+=oo.a,ro}function A$t(ro,oo){return GJe(ro,oo)?(zZe(ro),!0):!1}function f5(ro,oo){if(oo==null)throw Cs(new a8);return YNt(ro,oo)}function AH(ro,oo){var co;co=ro.q.getHours(),ro.q.setDate(oo),uB(ro,co)}function CSe(ro,oo,co){var fo;fo=ro.Ih(oo),fo>=0?ro.bi(fo,co):T4e(ro,oo,co)}function sKe(ro,oo){var co;return co=ro.Ih(oo),co>=0?ro.Wh(co):Gde(ro,oo)}function aKe(ro,oo){var co;for(a0(oo),co=ro.a;co;co=co.c)oo.Yd(co.g,co.i)}function due(ro,oo,co){var fo;fo=het(ro,oo,co),ro.b=new aQ(fo.c.length)}function w9(ro,oo,co){yX(),ro&&N0(nbe,ro,oo),ro&&N0(qG,ro,co)}function R$t(ro,oo){return IY(),_f(),bo(oo.a,17).a0}function $Se(ro){var oo;return oo=ro.d,oo=ro.bj(ro.f),Y1(ro,oo),oo.Ob()}function lKe(ro,oo){var co;return co=new Ixe(oo),Prt(co,ro),new tw(co)}function N$t(ro){if(ro.p!=0)throw Cs(new F2);return VD(ro.f,0)}function M$t(ro){if(ro.p!=0)throw Cs(new F2);return VD(ro.k,0)}function cKe(ro){return ro.Db>>16!=7?null:bo(ro.Cb,241)}function tI(ro){return ro.Db>>16!=6?null:bo(ro.Cb,241)}function uKe(ro){return ro.Db>>16!=7?null:bo(ro.Cb,167)}function kp(ro){return ro.Db>>16!=11?null:bo(ro.Cb,27)}function $$(ro){return ro.Db>>16!=17?null:bo(ro.Cb,29)}function fKe(ro){return ro.Db>>16!=3?null:bo(ro.Cb,155)}function ASe(ro){var oo;return w3(ro),oo=new Yp,X0(ro,new vDe(oo))}function dKe(ro,oo){var co=ro.a=ro.a||[];return co[oo]||(co[oo]=ro.ve(oo))}function D$t(ro,oo){var co;co=ro.q.getHours(),ro.q.setMonth(oo),uB(ro,co)}function hKe(ro,oo){wY(this),this.f=oo,this.g=ro,cX(this),this.je()}function pKe(ro,oo){this.a=ro,this.c=Pm(this.a),this.b=new hX(oo)}function gKe(ro,oo,co){this.a=oo,this.c=ro,this.b=(a0(co),new tw(co))}function mKe(ro,oo,co){this.a=oo,this.c=ro,this.b=(a0(co),new tw(co))}function vKe(ro){this.a=ro,this.b=Al(Abt,Yl,2043,ro.e.length,0,2)}function bKe(){this.a=new V_,this.e=new Yp,this.g=0,this.i=0}function yX(){yX=qo,nbe=new H1,qG=new H1,$Et(T1t,new Uie)}function yKe(){yKe=qo,hbt=q2(new Zp,(Km(),Jv),(rv(),UV))}function RSe(){RSe=qo,pbt=q2(new Zp,(Km(),Jv),(rv(),UV))}function wKe(){wKe=qo,mbt=q2(new Zp,(Km(),Jv),(rv(),UV))}function xKe(){xKe=qo,Mbt=_0(new Zp,(Km(),Jv),(rv(),tF))}function Pw(){Pw=qo,Bbt=_0(new Zp,(Km(),Jv),(rv(),tF))}function SKe(){SKe=qo,Fbt=_0(new Zp,(Km(),Jv),(rv(),tF))}function gue(){gue=qo,qbt=_0(new Zp,(Km(),Jv),(rv(),tF))}function gL(ro,oo,co,fo,po,vo){return new m5(ro.e,oo,ro.Lj(),co,fo,po,vo)}function Bv(ro,oo,co){return oo==null?l2(ro.f,null,co):c6(ro.i,oo,co)}function ev(ro,oo){ro.c&&A2(ro.c.g,ro),ro.c=oo,ro.c&&Jl(ro.c.g,ro)}function Dm(ro,oo){ro.c&&A2(ro.c.a,ro),ro.c=oo,ro.c&&Jl(ro.c.a,ro)}function uy(ro,oo){ro.i&&A2(ro.i.j,ro),ro.i=oo,ro.i&&Jl(ro.i.j,ro)}function Om(ro,oo){ro.d&&A2(ro.d.e,ro),ro.d=oo,ro.d&&Jl(ro.d.e,ro)}function mue(ro,oo){ro.a&&A2(ro.a.k,ro),ro.a=oo,ro.a&&Jl(ro.a.k,ro)}function vue(ro,oo){ro.b&&A2(ro.b.f,ro),ro.b=oo,ro.b&&Jl(ro.b.f,ro)}function _Ke(ro,oo){WCt(ro,ro.b,ro.c),bo(ro.b.b,68),oo&&bo(oo.b,68).b}function L$t(ro,oo){return sp(bo(ro.c,65).c.e.b,bo(oo.c,65).c.e.b)}function B$t(ro,oo){return sp(bo(ro.c,65).c.e.a,bo(oo.c,65).c.e.a)}function F$t(ro){return Nfe(),_f(),bo(ro.a,86).d.e!=0}function wX(ro,oo){Hs(ro.Cb,184)&&(bo(ro.Cb,184).tb=null),s2(ro,oo)}function bue(ro,oo){Hs(ro.Cb,90)&&U$(mw(bo(ro.Cb,90)),4),s2(ro,oo)}function P$t(ro,oo){rke(ro,oo),Hs(ro.Cb,90)&&U$(mw(bo(ro.Cb,90)),2)}function j$t(ro,oo){var co,fo;co=oo.c,fo=co!=null,fo&&N8(ro,new T$(oo.c))}function EKe(ro){var oo,co;return co=(RO(),oo=new EC,oo),cI(co,ro),co}function kKe(ro){var oo,co;return co=(RO(),oo=new EC,oo),cI(co,ro),co}function TKe(ro){for(var oo;;)if(oo=ro.Pb(),!ro.Ob())return oo}function z$t(ro,oo,co){return Jl(ro.a,(oX(),gde(oo,co),new OC(oo,co))),ro}function Wy(ro,oo){return vv(),Uue(oo)?new PY(oo,ro):new eH(oo,ro)}function RH(ro){return J_(),Iy(ro,0)>=0?x3(ro):uL(x3(f4(ro)))}function H$t(ro){var oo;return oo=bo(BY(ro.b),9),new sx(ro.a,oo,ro.c)}function CKe(ro,oo){var co;return co=bo(P$(D8(ro.a),oo),16),co?co.gc():0}function $Ke(ro,oo,co){var fo;rtt(oo,co,ro.c.length),fo=co-oo,Zye(ro.c,oo,fo)}function s4(ro,oo,co){rtt(oo,co,ro.gc()),this.c=ro,this.a=oo,this.b=co-oo}function B8(ro){this.c=new xp,this.b=ro.b,this.d=ro.c,this.a=ro.a}function yue(ro){this.a=lo.Math.cos(ro),this.b=lo.Math.sin(ro)}function gT(ro,oo,co,fo){this.c=ro,this.d=fo,mue(this,oo),vue(this,co)}function OSe(ro,oo){i_t.call(this,new g8(M$(ro))),qw(oo,Ict),this.a=oo}function AKe(ro,oo,co){return new Pde(ro,(aI(),Bpe),null,!1,oo,co)}function RKe(ro,oo,co){return new Pde(ro,(aI(),Ppe),oo,co,null,!1)}function q$t(){return ow(),As($s(zv,1),Pl,108,0,[aAe,oy,uA])}function V$t(){return R2(),As($s(Q1t,1),Pl,472,0,[ZS,L3,wS])}function G$t(){return iw(),As($s(Y1t,1),Pl,471,0,[fE,D3,yS])}function W$t(){return US(),As($s(fA,1),Pl,237,0,[xy,c2,Sy])}function U$t(){return SL(),As($s(e9e,1),Pl,391,0,[ige,rge,oge])}function K$t(){return s6(),As($s(wge,1),Pl,372,0,[M6,B3,N6])}function Y$t(){return kL(),As($s(e7e,1),Pl,322,0,[rF,XV,J9e])}function X$t(){return ZX(),As($s(n7e,1),Pl,351,0,[t7e,Nee,Rge])}function Q$t(){return ET(),As($s(bgt,1),Pl,460,0,[Nge,HN,u7])}function Z$t(){return SI(),As($s(qge,1),Pl,299,0,[zge,Hge,QV])}function J$t(){return b5(),As($s(Tgt,1),Pl,311,0,[ZV,d7,TR])}function eAt(){return DL(),As($s(iRe,1),Pl,390,0,[bme,rRe,ute])}function tAt(){return xv(),As($s(sbt,1),Pl,463,0,[yF,lw,u2])}function nAt(){return dQ(),As($s(vRe,1),Pl,387,0,[gRe,Cme,mRe])}function rAt(){return IL(),As($s(bRe,1),Pl,349,0,[Ame,$me,cG])}function iAt(){return RI(),As($s(wRe,1),Pl,350,0,[Rme,yRe,wF])}function oAt(){return QX(),As($s(_Re,1),Pl,352,0,[SRe,Ome,xRe])}function sAt(){return mQ(),As($s(ERe,1),Pl,388,0,[Ime,tM,$A])}function aAt(){return o6(),As($s(Cbt,1),Pl,464,0,[uG,xF,pte])}function u_(ro){return dy(As($s(_m,1),Yl,8,0,[ro.i.n,ro.n,ro.a]))}function lAt(){return NL(),As($s(zRe,1),Pl,392,0,[jRe,Dme,dG])}function OKe(){OKe=qo,Fyt=q2(new Zp,(eR(),kF),(lB(),ORe))}function xX(){xX=qo,Kme=new A2e("DFS",0),lOe=new A2e("BFS",1)}function IKe(ro,oo,co){var fo;fo=new Vre,fo.b=oo,fo.a=co,++oo.b,Jl(ro.d,fo)}function cAt(ro,oo,co){var fo;fo=new ov(co.d),G0(fo,ro),nke(oo,fo.a,fo.b)}function uAt(ro,oo){kqe(ro,s0(vm(qC(oo,24),LZ)),s0(vm(oo,LZ)))}function A$(ro,oo){if(ro<0||ro>oo)throw Cs(new Dv(J3e+ro+eTe+oo))}function qu(ro,oo){if(ro<0||ro>=oo)throw Cs(new Dv(J3e+ro+eTe+oo))}function o1(ro,oo){if(ro<0||ro>=oo)throw Cs(new Pye(J3e+ro+eTe+oo))}function Du(ro,oo){this.b=(u1(ro),ro),this.a=oo&nA?oo:oo|64|tE}function ISe(ro){var oo;return w3(ro),oo=(XC(),XC(),Mpe),UX(ro,oo)}function fAt(ro,oo,co){var fo;return fo=hB(ro,oo,!1),fo.b<=oo&&fo.a<=co}function dAt(){return FX(),As($s(nIe,1),Pl,439,0,[vve,tIe,eIe])}function hAt(){return kQ(),As($s(BOe,1),Pl,394,0,[LOe,dve,DOe])}function pAt(){return OQ(),As($s(MOe,1),Pl,445,0,[vG,$te,sve])}function gAt(){return HQ(),As($s(g2t,1),Pl,456,0,[ave,cve,lve])}function mAt(){return uq(),As($s(gOe,1),Pl,393,0,[kte,hOe,pOe])}function vAt(){return fQ(),As($s(NOe,1),Pl,300,0,[ove,IOe,OOe])}function bAt(){return x5(),As($s(LNe,1),Pl,346,0,[Gte,B4,VF])}function yAt(){return mq(),As($s(bve,1),Pl,444,0,[Ite,Nte,Mte])}function wAt(){return g_(),As($s(ENe,1),Pl,278,0,[lM,NA,cM])}function xAt(){return K8(),As($s(qNe,1),Pl,280,0,[HNe,DA,Qte])}function e6(ro){return a0(ro),Hs(ro,16)?new tw(bo(ro,16)):VO(ro.Kc())}function NSe(ro,oo){return ro&&ro.equals?ro.equals(oo):$a(ro)===$a(oo)}function vm(ro,oo){return m3(dCt(ty(ro)?Px(ro):ro,ty(oo)?Px(oo):oo))}function qS(ro,oo){return m3(hCt(ty(ro)?Px(ro):ro,ty(oo)?Px(oo):oo))}function wue(ro,oo){return m3(pCt(ty(ro)?Px(ro):ro,ty(oo)?Px(oo):oo))}function SAt(ro,oo){var co;return co=(u1(ro),ro).g,Cwe(!!co),u1(oo),co(oo)}function NKe(ro,oo){var co,fo;return fo=UO(ro,oo),co=ro.a.fd(fo),new Fje(ro,co)}function _At(ro){return ro.Db>>16!=6?null:bo(Kde(ro),241)}function EAt(ro){if(ro.p!=2)throw Cs(new F2);return s0(ro.f)&em}function kAt(ro){if(ro.p!=2)throw Cs(new F2);return s0(ro.k)&em}function Es(ro){return T1(ro.afo?1:0}function BKe(ro,oo){var co,fo;return co=que(oo),fo=co,bo(m1(ro.c,fo),17).a}function xue(ro,oo,co){var fo;fo=ro.d[oo.p],ro.d[oo.p]=ro.d[co.p],ro.d[co.p]=fo}function LAt(ro,oo,co){var fo;ro.n&&oo&&co&&(fo=new jie,Jl(ro.e,fo))}function Sue(ro,oo){if(om(ro.a,oo),oo.d)throw Cs(new ly(tut));oo.d=ro}function LSe(ro,oo){this.a=new Zl,this.d=new Zl,this.f=ro,this.c=oo}function FKe(){this.c=new xqe,this.a=new CXe,this.b=new PFe,rze()}function PKe(){W8(),this.b=new H1,this.a=new H1,this.c=new Zl}function jKe(ro,oo,co){this.d=ro,this.j=oo,this.e=co,this.o=-1,this.p=3}function zKe(ro,oo,co){this.d=ro,this.k=oo,this.f=co,this.o=-1,this.p=5}function HKe(ro,oo,co,fo,po,vo){B_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function qKe(ro,oo,co,fo,po,vo){F_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function VKe(ro,oo,co,fo,po,vo){e_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function GKe(ro,oo,co,fo,po,vo){z_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function WKe(ro,oo,co,fo,po,vo){t_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function UKe(ro,oo,co,fo,po,vo){P_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function KKe(ro,oo,co,fo,po,vo){j_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function YKe(ro,oo,co,fo,po,vo){n_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function XKe(ro,oo,co,fo){vK.call(this,co),this.b=ro,this.c=oo,this.d=fo}function QKe(ro,oo){this.f=ro,this.a=(iI(),fne),this.c=fne,this.b=oo}function ZKe(ro,oo){this.g=ro,this.d=(iI(),dne),this.a=dne,this.b=oo}function BSe(ro,oo){!ro.c&&(ro.c=new Fp(ro,0)),TZ(ro.c,(rp(),nP),oo)}function BAt(ro,oo){return yzt(ro,oo,Hs(oo,102)&&(bo(oo,19).Bb&hv)!=0)}function FAt(ro,oo){return IWe(Ty(ro.q.getTime()),Ty(oo.q.getTime()))}function JKe(ro){return Cce(ro.e.Rd().gc()*ro.c.Rd().gc(),16,new ZU(ro))}function PAt(ro){return!!ro.u&&Fy(ro.u.a).i!=0&&!(ro.n&&fde(ro.n))}function jAt(ro){return!!ro.a&&vw(ro.a.a).i!=0&&!(ro.b&&dde(ro.b))}function FSe(ro,oo){return oo==0?!!ro.o&&ro.o.f!=0:ode(ro,oo)}function zAt(ro,oo,co){var fo;return fo=bo(ro.Zb().xc(oo),16),!!fo&&fo.Hc(co)}function eYe(ro,oo,co){var fo;return fo=bo(ro.Zb().xc(oo),16),!!fo&&fo.Mc(co)}function tYe(ro,oo){var co;return co=1-oo,ro.a[co]=sQ(ro.a[co],co),sQ(ro,oo)}function nYe(ro,oo){var co,fo;return fo=vm(ro,_v),co=fS(oo,32),qS(co,fo)}function rYe(ro,oo,co){var fo;fo=(a0(ro),new tw(ro)),qDt(new gKe(fo,oo,co))}function OH(ro,oo,co){var fo;fo=(a0(ro),new tw(ro)),VDt(new mKe(fo,oo,co))}function my(ro,oo,co,fo,po,vo){return MJe(ro,oo,co,vo),KEe(ro,fo),YEe(ro,po),ro}function iYe(ro,oo,co,fo){return ro.a+=""+lx(oo==null?I2:ry(oo),co,fo),ro}function Lm(ro,oo){this.a=ro,EE.call(this,ro),A$(oo,ro.gc()),this.b=oo}function oYe(ro){this.a=Al(bm,Xu,1,xEe(lo.Math.max(8,ro))<<1,5,1)}function IH(ro){return bo(v_(ro,Al(VE,T4,10,ro.c.length,0,1)),199)}function X_(ro){return bo(v_(ro,Al(dge,P1e,18,ro.c.length,0,1)),483)}function sYe(ro){return ro.a?ro.e.length==0?ro.a.a:ro.a.a+(""+ro.e):ro.c}function mL(ro){for(;ro.d>0&&ro.a[--ro.d]==0;);ro.a[ro.d++]==0&&(ro.e=0)}function aYe(ro){return T1(ro.b.b!=ro.d.a),ro.c=ro.b=ro.b.b,--ro.a,ro.c.c}function HAt(ro,oo,co){ro.a=oo,ro.c=co,ro.b.a.$b(),Fw(ro.d),d$(ro.e.a.c,0)}function lYe(ro,oo){var co;ro.e=new Aye,co=Y$(oo),Up(co,ro.c),Ost(ro,co,0)}function Jp(ro,oo,co,fo){var po;po=new WM,po.a=oo,po.b=co,po.c=fo,y0(ro.a,po)}function Xl(ro,oo,co,fo){var po;po=new WM,po.a=oo,po.b=co,po.c=fo,y0(ro.b,po)}function cYe(ro,oo,co){if(ro<0||ooco)throw Cs(new Dv(tPt(ro,oo,co)))}function NH(ro,oo){if(ro<0||ro>=oo)throw Cs(new Dv(IPt(ro,oo)));return ro}function qAt(ro){if(!("stack"in ro))try{throw ro}catch{}return ro}function x9(ro){return TD(),Hs(ro.g,10)?bo(ro.g,10):null}function VAt(ro){return y9(ro).dc()?!1:(dkt(ro,new Oo),!0)}function vT(ro){var oo;return ty(ro)?(oo=ro,oo==-0?0:oo):o8t(ro)}function uYe(ro,oo){return Hs(oo,44)?vde(ro.a,bo(oo,44)):!1}function fYe(ro,oo){return Hs(oo,44)?vde(ro.a,bo(oo,44)):!1}function dYe(ro,oo){return Hs(oo,44)?vde(ro.a,bo(oo,44)):!1}function PSe(ro){var oo;return f3(ro),oo=new Ts,r9(ro.a,new pDe(oo)),oo}function jSe(){var ro,oo,co;return oo=(co=(ro=new EC,ro),co),Jl(kMe,oo),oo}function SX(ro){var oo;return f3(ro),oo=new Xs,r9(ro.a,new gDe(oo)),oo}function GAt(ro,oo){return ro.a<=ro.b?(oo.Dd(ro.a++),!0):!1}function hYe(ro){ufe.call(this,ro,(aI(),Lpe),null,!1,null,!1)}function pYe(){pYe=qo,A0t=n0((LK(),As($s(IAe,1),Pl,489,0,[Ype])))}function gYe(){gYe=qo,TRe=aUe(Ql(1),Ql(4)),kRe=aUe(Ql(1),Ql(2))}function WAt(ro,oo){return new xce(oo,JD(Pm(oo.e),ro,ro),(_f(),!0))}function _X(ro){return new o2((qw(ro,jhe),GX(tv(tv(5,ro),ro/10|0))))}function UAt(ro){return Cce(ro.e.Rd().gc()*ro.c.Rd().gc(),273,new QU(ro))}function mYe(ro){return bo(v_(ro,Al(Fpt,Nut,12,ro.c.length,0,1)),2042)}function KAt(ro){return Pw(),!dv(ro)&&!(!dv(ro)&&ro.c.i.c==ro.d.i.c)}function YAt(ro,oo){return V8(),bo(bs(oo,(by(),_7)),17).a>=ro.gc()}function vL(ro,oo){OYt(oo,ro),yxe(ro.d),yxe(bo(bs(ro,(ou(),rte)),214))}function _ue(ro,oo){IYt(oo,ro),wxe(ro.d),wxe(bo(bs(ro,(ou(),rte)),214))}function XAt(ro,oo,co){ro.d&&A2(ro.d.e,ro),ro.d=oo,ro.d&&HC(ro.d.e,co,ro)}function QAt(ro,oo,co){return co.f.c.length>0?Kxe(ro.a,oo,co):Kxe(ro.b,oo,co)}function ZAt(ro,oo,co){var fo;fo=gMt();try{return F5t(ro,oo,co)}finally{V9t(fo)}}function t6(ro,oo){var co,fo;return co=f5(ro,oo),fo=null,co&&(fo=co.pe()),fo}function bL(ro,oo){var co,fo;return co=f5(ro,oo),fo=null,co&&(fo=co.se()),fo}function nI(ro,oo){var co,fo;return co=N$(ro,oo),fo=null,co&&(fo=co.se()),fo}function d5(ro,oo){var co,fo;return co=f5(ro,oo),fo=null,co&&(fo=j5e(co)),fo}function JAt(ro,oo,co){var fo;return fo=PI(co),xZ(ro.g,fo,oo),xZ(ro.i,oo,co),oo}function zSe(ro,oo,co){this.d=new CLe(this),this.e=ro,this.i=oo,this.f=co}function vYe(ro,oo,co,fo){this.e=null,this.c=ro,this.d=oo,this.a=co,this.b=fo}function bYe(ro,oo,co,fo){gqe(this),this.c=ro,this.e=oo,this.f=co,this.b=fo}function HSe(ro,oo,co,fo){this.d=ro,this.n=oo,this.g=co,this.o=fo,this.p=-1}function yYe(ro,oo,co,fo){return Hs(co,59)?new Yqe(ro,oo,co,fo):new Hxe(ro,oo,co,fo)}function rI(ro){return Hs(ro,16)?bo(ro,16).dc():!ro.Kc().Ob()}function wYe(ro){if(ro.e.g!=ro.b)throw Cs(new rx);return!!ro.c&&ro.d>0}function q1(ro){return T1(ro.b!=ro.d.c),ro.c=ro.b,ro.b=ro.b.a,++ro.a,ro.c.c}function qSe(ro,oo){u1(oo),Np(ro.a,ro.c,oo),ro.c=ro.c+1&ro.a.length-1,Knt(ro)}function h3(ro,oo){u1(oo),ro.b=ro.b-1&ro.a.length-1,Np(ro.a,ro.b,oo),Knt(ro)}function xYe(ro){var oo;oo=ro.Gh(),this.a=Hs(oo,71)?bo(oo,71).Ii():oo.Kc()}function e9t(ro){return new Du(P8t(bo(ro.a.md(),16).gc(),ro.a.ld()),16)}function SYe(){SYe=qo,W2t=n0((PK(),As($s(sIe,1),Pl,490,0,[yve])))}function _Ye(){_Ye=qo,K2t=n0((jK(),As($s(U2t,1),Pl,558,0,[wve])))}function EYe(){EYe=qo,dwt=n0((CD(),As($s(CIe,1),Pl,539,0,[xG])))}function t9t(){return CT(),As($s(i9e,1),Pl,389,0,[pA,r9e,uge,fge])}function n9t(){return aI(),As($s(YJ,1),Pl,304,0,[Lpe,Bpe,Fpe,Ppe])}function r9t(){return Q8(),As($s(E0t,1),Pl,332,0,[PV,FV,jV,zV])}function i9t(){return WL(),As($s(C0t,1),Pl,406,0,[HV,JJ,eee,qV])}function o9t(){return l6(),As($s(S0t,1),Pl,417,0,[BV,LV,Upe,Kpe])}function s9t(){return _I(),As($s(Tpt,1),Pl,416,0,[I6,hA,dA,o7])}function a9t(){return m_(),As($s(ngt,1),Pl,421,0,[kR,DN,LN,yge])}function l9t(){return gQ(),As($s(Gpt,1),Pl,371,0,[bge,Cee,$ee,KV])}function c9t(){return H$(),As($s(wme,1),Pl,203,0,[fte,yme,x7,w7])}function u9t(){return Q_(),As($s(hRe,1),Pl,284,0,[I4,dRe,_me,Eme])}function f9t(ro){var oo;return ro.j==(nu(),z1)&&(oo=yot(ro),z2(oo,p1))}function d9t(ro,oo){var co;co=oo.a,ev(co,oo.c.d),Om(co,oo.d.d),B$(co.a,ro.n)}function VSe(ro,oo){var co;return co=bo(p_(ro.b,oo),67),!co&&(co=new xp),co}function P8(ro){return TD(),Hs(ro.g,154)?bo(ro.g,154):null}function h9t(ro){ro.a=null,ro.e=null,d$(ro.b.c,0),d$(ro.f.c,0),ro.c=null}function EX(){EX=qo,Vge=new S2e(hN,0),x7e=new S2e("TOP_LEFT",1)}function yL(){yL=qo,_F=new E2e("UPPER",0),SF=new E2e("LOWER",1)}function p9t(ro,oo){return S8(new Vl(oo.e.a+oo.f.a/2,oo.e.b+oo.f.b/2),ro)}function kYe(ro,oo){return bo(Aw(E$(bo(Q0(ro.k,oo),15).Oc(),a7)),113)}function TYe(ro,oo){return bo(Aw(R8(bo(Q0(ro.k,oo),15).Oc(),a7)),113)}function g9t(){return eR(),As($s(ARe,1),Pl,405,0,[bte,EF,kF,TF])}function m9t(){return ML(),As($s(aOe,1),Pl,353,0,[Ume,_te,Wme,Gme])}function v9t(){return WQ(),As($s(ROe,1),Pl,354,0,[ive,$Oe,AOe,COe])}function b9t(){return Mw(),As($s(YF,1),Pl,386,0,[BG,oC,LG,MA])}function y9t(){return Gw(),As($s(Jwt,1),Pl,291,0,[NG,UE,G3,IG])}function w9t(){return S5(),As($s(Uve,1),Pl,223,0,[Wve,OG,uM,HR])}function x9t(){return CQ(),As($s(YNe,1),Pl,320,0,[Xve,WNe,KNe,UNe])}function S9t(){return vQ(),As($s(mxt,1),Pl,415,0,[Qve,QNe,XNe,ZNe])}function _9t(ro){return yX(),p2(nbe,ro)?bo(m1(nbe,ro),341).Qg():null}function ux(ro,oo,co){return oo<0?Gde(ro,co):bo(co,69).wk().Bk(ro,ro.hi(),oo)}function E9t(ro,oo,co){var fo;return fo=PI(co),xZ(ro.j,fo,oo),N0(ro.k,oo,co),oo}function k9t(ro,oo,co){var fo;return fo=PI(co),xZ(ro.d,fo,oo),N0(ro.e,oo,co),oo}function CYe(ro){var oo,co;return oo=(n3(),co=new KM,co),ro&&fZ(oo,ro),oo}function GSe(ro){var oo;return oo=ro.aj(ro.i),ro.i>0&&jy(ro.g,0,oo,0,ro.i),oo}function $Ye(ro,oo){var co;for(co=ro.j.c.length;co>24}function C9t(ro){if(ro.p!=1)throw Cs(new F2);return s0(ro.k)<<24>>24}function $9t(ro){if(ro.p!=7)throw Cs(new F2);return s0(ro.k)<<16>>16}function A9t(ro){if(ro.p!=7)throw Cs(new F2);return s0(ro.f)<<16>>16}function S9(ro,oo){return oo.e==0||ro.e==0?XB:(QI(),ehe(ro,oo))}function OYe(ro,oo){return $a(oo)===$a(ro)?"(this Map)":oo==null?I2:ry(oo)}function R9t(ro,oo,co){return Lce(Tl(Uv(wv(ro.f,oo))),Tl(Uv(wv(ro.f,co))))}function O9t(ro,oo,co){var fo;fo=bo(m1(ro.g,co),60),Jl(ro.a.c,new fm(oo,fo))}function IYe(ro,oo,co){ro.i=0,ro.e=0,oo!=co&&(vet(ro,oo,co),met(ro,oo,co))}function I9t(ro,oo,co,fo,po){var vo;vo=Nzt(po,co,fo),Jl(oo,kPt(po,vo)),mFt(ro,po,oo)}function WSe(ro,oo,co,fo,po){this.i=ro,this.a=oo,this.e=co,this.j=fo,this.f=po}function NYe(ro,oo){_Se.call(this),this.a=ro,this.b=oo,Jl(this.a.b,this)}function MYe(ro){this.b=new H1,this.c=new H1,this.d=new H1,this.a=ro}function DYe(ro,oo){var co;return co=new t9,ro.Gd(co),co.a+="..",oo.Hd(co),co.a}function LYe(ro,oo){var co;for(co=oo;co;)jC(ro,co.i,co.j),co=kp(co);return ro}function BYe(ro,oo,co){var fo;return fo=PI(co),N0(ro.b,fo,oo),N0(ro.c,oo,co),oo}function h5(ro){var oo;for(oo=0;ro.Ob();)ro.Pb(),oo=tv(oo,1);return GX(oo)}function RE(ro,oo){vv();var co;return co=bo(ro,69).vk(),IFt(co,oo),co.xl(oo)}function N9t(ro,oo,co){if(co){var fo=co.oe();ro.a[oo]=fo(co)}else delete ro.a[oo]}function USe(ro,oo){var co;co=ro.q.getHours(),ro.q.setFullYear(oo+$3),uB(ro,co)}function M9t(ro,oo){return bo(oo==null?Uv(wv(ro.f,null)):OD(ro.i,oo),288)}function KSe(ro,oo){return ro==(a1(),Vp)&&oo==Vp?4:ro==Vp||oo==Vp?8:32}function kX(ro,oo,co){return _Z(ro,oo,co,Hs(oo,102)&&(bo(oo,19).Bb&hv)!=0)}function D9t(ro,oo,co){return tN(ro,oo,co,Hs(oo,102)&&(bo(oo,19).Bb&hv)!=0)}function L9t(ro,oo,co){return Tzt(ro,oo,co,Hs(oo,102)&&(bo(oo,19).Bb&hv)!=0)}function YSe(ro){ro.b!=ro.c&&(ro.a=Al(bm,Xu,1,8,5,1),ro.b=0,ro.c=0)}function wL(ro){return T1(ro.a=0&&ro.a[co]===oo[co];co--);return co<0}function TX(ro){var oo;return ro?new Ixe(ro):(oo=new V_,lfe(oo,ro),oo)}function q9t(ro,oo){var co,fo;fo=!1;do co=ret(ro,oo),fo=fo|co;while(co);return fo}function V9t(ro){ro&&m8t((Dye(),N$e)),--qJ,ro&&VJ!=-1&&(MEt(VJ),VJ=-1)}function CX(ro){E5e(),kqe(this,s0(vm(qC(ro,24),LZ)),s0(vm(ro,LZ)))}function HYe(){HYe=qo,q1t=n0((LQ(),As($s(cAe,1),Pl,436,0,[Hpe,lAe])))}function qYe(){qYe=qo,V1t=n0((qX(),As($s(fAe,1),Pl,435,0,[uAe,qpe])))}function VYe(){VYe=qo,W0t=n0((VX(),As($s(PAe,1),Pl,432,0,[ege,ree])))}function GYe(){GYe=qo,Hpt=n0((vI(),As($s(zpt,1),Pl,517,0,[WV,pge])))}function WYe(){WYe=qo,$gt=n0((EX(),As($s(S7e,1),Pl,429,0,[Vge,x7e])))}function UYe(){UYe=qo,vgt=n0((YH(),As($s(s7e,1),Pl,428,0,[Mee,o7e])))}function KYe(){KYe=qo,xgt=n0((HH(),As($s(c7e,1),Pl,488,0,[l7e,Lee])))}function YYe(){YYe=qo,obt=n0((UH(),As($s(pRe,1),Pl,430,0,[kme,Tme])))}function XYe(){XYe=qo,Nbt=n0((yL(),As($s(Ibt,1),Pl,531,0,[_F,SF])))}function QYe(){QYe=qo,hgt=n0((DX(),As($s(Z9e,1),Pl,431,0,[Q9e,Age])))}function ZYe(){ZYe=qo,Byt=n0((xX(),As($s(cOe,1),Pl,433,0,[Kme,lOe])))}function JYe(){JYe=qo,Hyt=n0((oQ(),As($s(uOe,1),Pl,501,0,[Ete,k7])))}function eXe(){eXe=qo,jbt=n0((Y_(),As($s(Pbt,1),Pl,523,0,[W6,N4])))}function tXe(){tXe=qo,Hbt=n0((c_(),As($s(zbt,1),Pl,522,0,[JT,C_])))}function nXe(){nXe=qo,ryt=n0((VS(),As($s(nyt,1),Pl,528,0,[AA,z3])))}function rXe(){rXe=qo,uyt=n0((JC(),As($s(cyt,1),Pl,465,0,[H3,S7])))}function iXe(){iXe=qo,Gyt=n0((BX(),As($s(dOe,1),Pl,434,0,[fOe,eve])))}function oXe(){oXe=qo,j2t=n0((AX(),As($s(JOe,1),Pl,491,0,[mve,ZOe])))}function sXe(){sXe=qo,H2t=n0((gfe(),As($s(oIe,1),Pl,492,0,[rIe,iIe])))}function aXe(){aXe=qo,Y2t=n0((BH(),As($s(aIe,1),Pl,438,0,[xve,Dte])))}function lXe(){lXe=qo,hwt=n0((sq(),As($s(AIe,1),Pl,437,0,[Bte,$Ie])))}function cXe(){cXe=qo,hxt=n0((yce(),As($s(Zte,1),Pl,347,0,[VNe,GNe])))}function G9t(){return _g(),As($s(HF,1),Pl,88,0,[R_,ey,qv,A_,Cx])}function W9t(){return nu(),As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1])}function U9t(ro,oo,co){return bo(oo==null?l2(ro.f,null,co):c6(ro.i,oo,co),288)}function K9t(ro){return(ro.k==(a1(),Vp)||ro.k==Kp)&&gp(ro,(Wl(),aF))}function $ue(ro){return ro.c&&ro.d?DSe(ro.c)+"->"+DSe(ro.d):"e_"+PC(ro)}function Hm(ro,oo){var co,fo;for(u1(oo),fo=ro.Kc();fo.Ob();)co=fo.Pb(),oo.Cd(co)}function Y9t(ro,oo){var co;co=new f8,pT(co,"x",oo.a),pT(co,"y",oo.b),N8(ro,co)}function X9t(ro,oo){var co;co=new f8,pT(co,"x",oo.a),pT(co,"y",oo.b),N8(ro,co)}function uXe(ro,oo){var co;for(co=oo;co;)jC(ro,-co.i,-co.j),co=kp(co);return ro}function QSe(ro,oo){var co,fo;for(co=oo,fo=0;co>0;)fo+=ro.a[co],co-=co&-co;return fo}function fx(ro,oo,co){var fo;return fo=(qu(oo,ro.c.length),ro.c[oo]),ro.c[oo]=co,fo}function ZSe(ro,oo,co){ro.a.c.length=0,xUt(ro,oo,co),ro.a.c.length==0||KVt(ro,oo)}function MH(ro){ro.i=0,jz(ro.b,null),jz(ro.c,null),ro.a=null,ro.e=null,++ro.g}function $X(){$X=qo,E_=!0,N1t=!1,M1t=!1,L1t=!1,D1t=!1}function Aue(ro){$X(),!E_&&(this.c=ro,this.e=!0,this.a=new Zl)}function fXe(ro,oo){this.c=0,this.b=oo,MHe.call(this,ro,17493),this.a=this.c}function dXe(ro){_ct(),wFe(this),this.a=new xp,IEe(this,ro),y0(this.a,ro)}function hXe(){Qle(this),this.b=new Vl(Tp,Tp),this.a=new Vl(am,am)}function AX(){AX=qo,mve=new I2e(ATe,0),ZOe=new I2e("TARGET_WIDTH",1)}function _9(ro,oo){return(w3(ro),OO(new Ou(ro,new T_e(oo,ro.a)))).Bd(SR)}function Q9t(){return Km(),As($s(t9e,1),Pl,367,0,[xS,qE,zy,Qy,Jv])}function Z9t(){return V$(),As($s(igt,1),Pl,375,0,[YV,Oee,Iee,Ree,Aee])}function J9t(){return y4(),As($s(i7e,1),Pl,348,0,[Oge,r7e,Ige,zN,jN])}function e7t(){return GL(),As($s(sRe,1),Pl,323,0,[oRe,xme,Sme,vF,bF])}function t7t(){return yx(),As($s(D7e,1),Pl,171,0,[nG,cF,P3,uF,yA])}function n7t(){return JQ(),As($s(qyt,1),Pl,368,0,[Zme,Yme,Jme,Xme,Qme])}function r7t(){return iB(),As($s(q2t,1),Pl,373,0,[T7,LR,DF,MF,wG])}function i7t(){return Oq(),As($s(fIe,1),Pl,324,0,[lIe,Sve,uIe,_ve,cIe])}function o7t(){return YS(),As($s(WE,1),Pl,170,0,[Ku,pm,gE,eC,D4])}function s7t(){return R9(),As($s(WF,1),Pl,256,0,[W3,MG,BNe,GF,FNe])}function a7t(ro){return TK(),function(){return ZAt(ro,this,arguments)}}function dv(ro){return!ro.c||!ro.d?!1:!!ro.c.i&&ro.c.i==ro.d.i}function JSe(ro,oo){return Hs(oo,143)?Iu(ro.c,bo(oo,143).c):!1}function mw(ro){return ro.t||(ro.t=new uFe(ro),PL(new TPe(ro),0,ro.t)),ro.t}function pXe(ro){this.b=ro,g1.call(this,ro),this.a=bo(n1(this.b.a,4),129)}function gXe(ro){this.b=ro,E8.call(this,ro),this.a=bo(n1(this.b.a,4),129)}function dS(ro,oo,co,fo,po){kXe.call(this,oo,fo,po),this.c=ro,this.b=co}function e_e(ro,oo,co,fo,po){jKe.call(this,oo,fo,po),this.c=ro,this.a=co}function t_e(ro,oo,co,fo,po){zKe.call(this,oo,fo,po),this.c=ro,this.a=co}function n_e(ro,oo,co,fo,po){kXe.call(this,oo,fo,po),this.c=ro,this.a=co}function Rue(ro,oo){var co;return co=bo(p_(ro.d,oo),23),co||bo(p_(ro.e,oo),23)}function mXe(ro,oo){var co,fo;return co=oo.ld(),fo=ro.Fe(co),!!fo&&ky(fo.e,oo.md())}function vXe(ro,oo){var co;return co=oo.ld(),new OC(co,ro.e.pc(co,bo(oo.md(),16)))}function l7t(ro,oo){var co;return co=ro.a.get(oo),co??Al(bm,Xu,1,0,5,1)}function bXe(ro){var oo;return oo=ro.length,Iu(d1.substr(d1.length-oo,oo),ro)}function R1(ro){if(W1(ro))return ro.c=ro.a,ro.a.Pb();throw Cs(new ay)}function r_e(ro,oo){return oo==0||ro.e==0?ro:oo>0?mst(ro,oo):Dtt(ro,-oo)}function j8(ro,oo){return oo==0||ro.e==0?ro:oo>0?Dtt(ro,oo):mst(ro,-oo)}function i_e(ro){bEt.call(this,ro==null?I2:ry(ro),Hs(ro,82)?bo(ro,82):null)}function yXe(ro){var oo;return ro.c||(oo=ro.r,Hs(oo,90)&&(ro.c=bo(oo,29))),ro.c}function Oue(ro){var oo;return oo=new QC,Qv(oo,ro),Fl(oo,(ou(),Hv),null),oo}function wXe(ro){var oo,co;return oo=ro.c.i,co=ro.d.i,oo.k==(a1(),Kp)&&co.k==Kp}function Iue(ro){var oo,co,fo;return oo=ro&xw,co=ro>>22&xw,fo=ro<0?A5:0,h2(oo,co,fo)}function c7t(ro){var oo,co,fo,po;for(co=ro,fo=0,po=co.length;fo=0?ro.Lh(fo,co,!0):m6(ro,oo,co)}function f7t(ro,oo,co){return sp(S8(zI(ro),Pm(oo.b)),S8(zI(ro),Pm(co.b)))}function d7t(ro,oo,co){return sp(S8(zI(ro),Pm(oo.e)),S8(zI(ro),Pm(co.e)))}function h7t(ro,oo){return lo.Math.min(p3(oo.a,ro.d.d.c),p3(oo.b,ro.d.d.c))}function DH(ro,oo){ro._i(ro.i+1),XD(ro,ro.i,ro.Zi(ro.i,oo)),ro.Mi(ro.i++,oo),ro.Ni()}function xL(ro){var oo,co;++ro.j,oo=ro.g,co=ro.i,ro.g=null,ro.i=0,ro.Oi(co,oo),ro.Ni()}function xXe(ro,oo,co){var fo;fo=new rwe(ro.a),$L(fo,ro.a.a),l2(fo.f,oo,co),ro.a.a=fo}function o_e(ro,oo,co,fo){var po;for(po=0;pooo)throw Cs(new Dv(Y5e(ro,oo,"index")));return ro}function l4(ro,oo){var co;return co=(qu(oo,ro.c.length),ro.c[oo]),Zye(ro.c,oo,1),co}function l_e(ro,oo){var co,fo;return co=(u1(ro),ro),fo=(u1(oo),oo),co==fo?0:cooo.p?-1:0}function AXe(ro){var oo;return ro.a||(oo=ro.r,Hs(oo,156)&&(ro.a=bo(oo,156))),ro.a}function y7t(ro,oo,co){var fo;return++ro.e,--ro.f,fo=bo(ro.d[oo].gd(co),136),fo.md()}function w7t(ro){var oo,co;return oo=ro.ld(),co=bo(ro.md(),16),pH(co.Nc(),new uae(oo))}function RXe(ro,oo){return p2(ro.a,oo)?(z8(ro.a,oo),!0):!1}function H8(ro,oo,co){return NH(oo,ro.e.Rd().gc()),NH(co,ro.c.Rd().gc()),ro.a[oo][co]}function OX(ro,oo,co){this.a=ro,this.b=oo,this.c=co,Jl(ro.t,this),Jl(oo.i,this)}function IX(ro,oo,co,fo){this.f=ro,this.e=oo,this.d=co,this.b=fo,this.c=fo?fo.d:null}function LH(){this.b=new xp,this.a=new xp,this.b=new xp,this.a=new xp}function iI(){iI=qo;var ro,oo;fne=(RO(),oo=new wK,oo),dne=(ro=new qae,ro)}function x7t(ro){var oo;return w3(ro),oo=new SGe(ro,ro.a.e,ro.a.d|4),new Awe(ro,oo)}function OXe(ro){var oo;for(f3(ro),oo=0;ro.a.Bd(new ba);)oo=tv(oo,1);return oo}function NX(ro,oo){return u1(oo),ro.c=0,"Initial capacity must not be negative")}function MX(){MX=qo,LF=new np("org.eclipse.elk.labels.labelManager")}function IXe(){IXe=qo,W9e=new Rp("separateLayerConnections",(gQ(),bge))}function VS(){VS=qo,AA=new C2e("REGULAR",0),z3=new C2e("CRITICAL",1)}function BH(){BH=qo,xve=new M2e("FIXED",0),Dte=new M2e("CENTER_NODE",1)}function DX(){DX=qo,Q9e=new y2e("QUADRATIC",0),Age=new y2e("SCANLINE",1)}function NXe(){NXe=qo,pgt=n0((kL(),As($s(e7e,1),Pl,322,0,[rF,XV,J9e])))}function MXe(){MXe=qo,ggt=n0((ZX(),As($s(n7e,1),Pl,351,0,[t7e,Nee,Rge])))}function DXe(){DXe=qo,ugt=n0((s6(),As($s(wge,1),Pl,372,0,[M6,B3,N6])))}function LXe(){LXe=qo,ygt=n0((ET(),As($s(bgt,1),Pl,460,0,[Nge,HN,u7])))}function BXe(){BXe=qo,kgt=n0((SI(),As($s(qge,1),Pl,299,0,[zge,Hge,QV])))}function FXe(){FXe=qo,Cgt=n0((b5(),As($s(Tgt,1),Pl,311,0,[ZV,d7,TR])))}function PXe(){PXe=qo,ebt=n0((DL(),As($s(iRe,1),Pl,390,0,[bme,rRe,ute])))}function jXe(){jXe=qo,lbt=n0((dQ(),As($s(vRe,1),Pl,387,0,[gRe,Cme,mRe])))}function zXe(){zXe=qo,cbt=n0((IL(),As($s(bRe,1),Pl,349,0,[Ame,$me,cG])))}function HXe(){HXe=qo,abt=n0((xv(),As($s(sbt,1),Pl,463,0,[yF,lw,u2])))}function qXe(){qXe=qo,ubt=n0((RI(),As($s(wRe,1),Pl,350,0,[Rme,yRe,wF])))}function VXe(){VXe=qo,fbt=n0((QX(),As($s(_Re,1),Pl,352,0,[SRe,Ome,xRe])))}function GXe(){GXe=qo,dbt=n0((mQ(),As($s(ERe,1),Pl,388,0,[Ime,tM,$A])))}function WXe(){WXe=qo,hyt=n0((NL(),As($s(zRe,1),Pl,392,0,[jRe,Dme,dG])))}function UXe(){UXe=qo,Wyt=n0((uq(),As($s(gOe,1),Pl,393,0,[kte,hOe,pOe])))}function KXe(){KXe=qo,h2t=n0((fQ(),As($s(NOe,1),Pl,300,0,[ove,IOe,OOe])))}function YXe(){YXe=qo,p2t=n0((OQ(),As($s(MOe,1),Pl,445,0,[vG,$te,sve])))}function XXe(){XXe=qo,m2t=n0((HQ(),As($s(g2t,1),Pl,456,0,[ave,cve,lve])))}function QXe(){QXe=qo,y2t=n0((kQ(),As($s(BOe,1),Pl,394,0,[LOe,dve,DOe])))}function ZXe(){ZXe=qo,z2t=n0((FX(),As($s(nIe,1),Pl,439,0,[vve,tIe,eIe])))}function JXe(){JXe=qo,$bt=n0((o6(),As($s(Cbt,1),Pl,464,0,[uG,xF,pte])))}function eQe(){eQe=qo,X1t=n0((iw(),As($s(Y1t,1),Pl,471,0,[fE,D3,yS])))}function tQe(){tQe=qo,K1t=n0((US(),As($s(fA,1),Pl,237,0,[xy,c2,Sy])))}function nQe(){nQe=qo,Z1t=n0((R2(),As($s(Q1t,1),Pl,472,0,[ZS,L3,wS])))}function rQe(){rQe=qo,B1t=n0((ow(),As($s(zv,1),Pl,108,0,[aAe,oy,uA])))}function iQe(){iQe=qo,bpt=n0((SL(),As($s(e9e,1),Pl,391,0,[ige,rge,oge])))}function oQe(){oQe=qo,Zwt=n0((x5(),As($s(LNe,1),Pl,346,0,[Gte,B4,VF])))}function sQe(){sQe=qo,G2t=n0((mq(),As($s(bve,1),Pl,444,0,[Ite,Nte,Mte])))}function aQe(){aQe=qo,Kwt=n0((g_(),As($s(ENe,1),Pl,278,0,[lM,NA,cM])))}function lQe(){lQe=qo,dxt=n0((K8(),As($s(qNe,1),Pl,280,0,[HNe,DA,Qte])))}function h_(ro,oo){return!ro.o&&(ro.o=new V2((Ny(),XE),F4,ro,0)),Xfe(ro.o,oo)}function S7t(ro,oo){var co;ro.C&&(co=bo(Rv(ro.b,oo),127).n,co.d=ro.C.d,co.a=ro.C.a)}function h_e(ro){var oo,co,fo,po;po=ro.d,oo=ro.a,co=ro.b,fo=ro.c,ro.d=co,ro.a=fo,ro.b=po,ro.c=oo}function _7t(ro){return!ro.g&&(ro.g=new QM),!ro.g.b&&(ro.g.b=new sFe(ro)),ro.g.b}function FH(ro){return!ro.g&&(ro.g=new QM),!ro.g.c&&(ro.g.c=new cFe(ro)),ro.g.c}function E7t(ro){return!ro.g&&(ro.g=new QM),!ro.g.d&&(ro.g.d=new aFe(ro)),ro.g.d}function k7t(ro){return!ro.g&&(ro.g=new QM),!ro.g.a&&(ro.g.a=new lFe(ro)),ro.g.a}function T7t(ro,oo,co,fo){return co&&(fo=co.Rh(oo,Ap(co.Dh(),ro.c.uk()),null,fo)),fo}function C7t(ro,oo,co,fo){return co&&(fo=co.Th(oo,Ap(co.Dh(),ro.c.uk()),null,fo)),fo}function Lue(ro,oo,co,fo){var po;return po=Al(Q1,E0,28,oo+1,15,1),OGt(po,ro,oo,co,fo),po}function Al(ro,oo,co,fo,po,vo){var xo;return xo=Pnt(po,fo),po!=10&&As($s(ro,vo),oo,co,po,xo),xo}function $7t(ro,oo,co){var fo,po;for(po=new xI(oo,ro),fo=0;foco||oo=0?ro.Lh(co,!0,!0):m6(ro,oo,!0)}function G7t(ro,oo,co){var fo;return fo=het(ro,oo,co),ro.b=new aQ(fo.c.length),B4e(ro,fo)}function W7t(ro){if(ro.b<=0)throw Cs(new ay);return--ro.b,ro.a-=ro.c.c,Ql(ro.a)}function U7t(ro){var oo;if(!ro.a)throw Cs(new xUe);return oo=ro.a,ro.a=kp(ro.a),oo}function K7t(ro){for(;!ro.a;)if(!UVe(ro.c,new mDe(ro)))return!1;return!0}function q8(ro){var oo;return a0(ro),Hs(ro,204)?(oo=bo(ro,204),oo):new mae(ro)}function Y7t(ro){LX(),bo(ro.of(($0(),IA)),181).Fc((sw(),DG)),ro.qf(qve,null)}function LX(){LX=qo,mwt=new gU,bwt=new xie,vwt=BOt(($0(),qve),mwt,V3,bwt)}function BX(){BX=qo,fOe=new O2e("LEAF_NUMBER",0),eve=new O2e("NODE_SIZE",1)}function zue(ro){ro.a=Al(Q1,E0,28,ro.b+1,15,1),ro.c=Al(Q1,E0,28,ro.b,15,1),ro.d=0}function X7t(ro,oo){ro.a.Ne(oo.d,ro.b)>0&&(Jl(ro.c,new pxe(oo.c,oo.d,ro.d)),ro.b=oo.d)}function E_e(ro,oo){if(ro.g==null||oo>=ro.i)throw Cs(new Wle(oo,ro.i));return ro.g[oo]}function dQe(ro,oo,co){if(CI(ro,co),co!=null&&!ro.fk(co))throw Cs(new jae);return co}function Hue(ro,oo){return KH(oo)!=10&&As(Nw(oo),oo.Sm,oo.__elementTypeId$,KH(oo),ro),ro}function sI(ro,oo,co,fo){var po;fo=(XC(),fo||eAe),po=ro.slice(oo,co),X5e(po,ro,oo,co,-oo,fo)}function dx(ro,oo,co,fo,po){return oo<0?m6(ro,co,fo):bo(co,69).wk().yk(ro,ro.hi(),oo,fo,po)}function Q7t(ro,oo){return sp(na(Tl(bs(ro,(Wl(),B6)))),na(Tl(bs(oo,B6))))}function hQe(){hQe=qo,O1t=n0((aI(),As($s(YJ,1),Pl,304,0,[Lpe,Bpe,Fpe,Ppe])))}function aI(){aI=qo,Lpe=new VK("All",0),Bpe=new rqe,Fpe=new dqe,Ppe=new nqe}function iw(){iw=qo,fE=new vle(fR,0),D3=new vle(hN,1),yS=new vle(dR,2)}function pQe(){pQe=qo,EZ(),NMe=Tp,ySt=am,MMe=new M1(Tp),wSt=new M1(am)}function gQe(){gQe=qo,_0t=n0((l6(),As($s(S0t,1),Pl,417,0,[BV,LV,Upe,Kpe])))}function mQe(){mQe=qo,$0t=n0((WL(),As($s(C0t,1),Pl,406,0,[HV,JJ,eee,qV])))}function vQe(){vQe=qo,k0t=n0((Q8(),As($s(E0t,1),Pl,332,0,[PV,FV,jV,zV])))}function bQe(){bQe=qo,Npt=n0((CT(),As($s(i9e,1),Pl,389,0,[pA,r9e,uge,fge])))}function yQe(){yQe=qo,Cpt=n0((_I(),As($s(Tpt,1),Pl,416,0,[I6,hA,dA,o7])))}function wQe(){wQe=qo,rgt=n0((m_(),As($s(ngt,1),Pl,421,0,[kR,DN,LN,yge])))}function xQe(){xQe=qo,Wpt=n0((gQ(),As($s(Gpt,1),Pl,371,0,[bge,Cee,$ee,KV])))}function SQe(){SQe=qo,tbt=n0((H$(),As($s(wme,1),Pl,203,0,[fte,yme,x7,w7])))}function _Qe(){_Qe=qo,ibt=n0((Q_(),As($s(hRe,1),Pl,284,0,[I4,dRe,_me,Eme])))}function HH(){HH=qo,l7e=new x2e(sE,0),Lee=new x2e("IMPROVE_STRAIGHTNESS",1)}function EQe(ro,oo){var co,fo;return fo=oo/ro.c.Rd().gc()|0,co=oo%ro.c.Rd().gc(),H8(ro,fo,co)}function kQe(ro){var oo;if(ro.nl())for(oo=ro.i-1;oo>=0;--oo)Gs(ro,oo);return GSe(ro)}function k_e(ro){var oo,co;if(!ro.b)return null;for(co=ro.b;oo=co.a[0];)co=oo;return co}function TQe(ro){var oo,co;if(!ro.b)return null;for(co=ro.b;oo=co.a[1];)co=oo;return co}function Z7t(ro){return Hs(ro,180)?""+bo(ro,180).a:ro==null?null:ry(ro)}function J7t(ro){return Hs(ro,180)?""+bo(ro,180).a:ro==null?null:ry(ro)}function CQe(ro,oo){if(oo.a)throw Cs(new ly(tut));om(ro.a,oo),oo.a=ro,!ro.j&&(ro.j=oo)}function T_e(ro,oo){pY.call(this,oo.zd(),oo.yd()&-16449),u1(ro),this.a=ro,this.c=oo}function e8t(ro,oo){return new xce(oo,jC(Pm(oo.e),oo.f.a+ro,oo.f.b+ro),(_f(),!1))}function t8t(ro,oo){return qO(),Jl(ro,new fm(oo,Ql(oo.e.c.length+oo.g.c.length)))}function n8t(ro,oo){return qO(),Jl(ro,new fm(oo,Ql(oo.e.c.length+oo.g.c.length)))}function $Qe(){$Qe=qo,d2t=n0((WQ(),As($s(ROe,1),Pl,354,0,[ive,$Oe,AOe,COe])))}function AQe(){AQe=qo,Lyt=n0((ML(),As($s(aOe,1),Pl,353,0,[Ume,_te,Wme,Gme])))}function RQe(){RQe=qo,fyt=n0((eR(),As($s(ARe,1),Pl,405,0,[bte,EF,kF,TF])))}function OQe(){OQe=qo,Ywt=n0((S5(),As($s(Uve,1),Pl,223,0,[Wve,OG,uM,HR])))}function IQe(){IQe=qo,ext=n0((Gw(),As($s(Jwt,1),Pl,291,0,[NG,UE,G3,IG])))}function NQe(){NQe=qo,uxt=n0((Mw(),As($s(YF,1),Pl,386,0,[BG,oC,LG,MA])))}function MQe(){MQe=qo,pxt=n0((CQ(),As($s(YNe,1),Pl,320,0,[Xve,WNe,KNe,UNe])))}function DQe(){DQe=qo,vxt=n0((vQ(),As($s(mxt,1),Pl,415,0,[Qve,QNe,XNe,ZNe])))}function FX(){FX=qo,vve=new zle(yft,0),tIe=new zle(KCe,1),eIe=new zle(sE,2)}function I$(ro,oo,co,fo,po){return u1(ro),u1(oo),u1(co),u1(fo),u1(po),new Xxe(ro,oo,fo)}function LQe(ro,oo){var co;return co=bo(z8(ro.e,oo),400),co?(kxe(co),co.e):null}function A2(ro,oo){var co;return co=Xv(ro,oo,0),co==-1?!1:(l4(ro,co),!0)}function BQe(ro,oo,co){var fo;return f3(ro),fo=new Zs,fo.a=oo,ro.a.Nb(new bze(fo,co)),fo.a}function r8t(ro){var oo;return f3(ro),oo=Al(Am,Iv,28,0,15,1),r9(ro.a,new hDe(oo)),oo}function C_e(ro){var oo;if(!ife(ro))throw Cs(new ay);return ro.e=1,oo=ro.d,ro.d=null,oo}function f4(ro){var oo;return ty(ro)&&(oo=0-ro,!isNaN(oo))?oo:m3(kI(ro))}function Xv(ro,oo,co){for(;co=0?jQ(ro,co,!0,!0):m6(ro,oo,!0)}function A_e(ro){var oo;return oo=yT(n1(ro,32)),oo==null&&(y2(ro),oo=yT(n1(ro,32))),oo}function R_e(ro){var oo;return ro.Oh()||(oo=A1(ro.Dh())-ro.ji(),ro.$h().Mk(oo)),ro.zh()}function qQe(ro,oo){RAe=new tu,T0t=oo,ZB=ro,bo(ZB.b,68),m_e(ZB,RAe,null),hlt(ZB)}function SL(){SL=qo,ige=new yle("XY",0),rge=new yle("X",1),oge=new yle("Y",2)}function R2(){R2=qo,ZS=new ble("TOP",0),L3=new ble(hN,1),wS=new ble(aTe,2)}function b5(){b5=qo,ZV=new kle(sE,0),d7=new kle("TOP",1),TR=new kle(aTe,2)}function UH(){UH=qo,kme=new _2e("INPUT_ORDER",0),Tme=new _2e("PORT_DEGREE",1)}function lI(){lI=qo,D$e=h2(xw,xw,524287),g1t=h2(0,0,oV),L$e=Iue(1),Iue(2),B$e=Iue(0)}function Uue(ro){var oo;return ro.d!=ro.r&&(oo=Hx(ro),ro.e=!!oo&&oo.lk()==ght,ro.d=oo),ro.e}function Kue(ro,oo,co){var fo;return fo=ro.g[oo],XD(ro,oo,ro.Zi(oo,co)),ro.Ri(oo,co,fo),ro.Ni(),fo}function HX(ro,oo){var co;return co=ro.dd(oo),co>=0?(ro.gd(co),!0):!1}function Yue(ro,oo){var co;for(a0(ro),a0(oo),co=!1;oo.Ob();)co=co|ro.Fc(oo.Pb());return co}function p_(ro,oo){var co;return co=bo(m1(ro.e,oo),400),co?(Eqe(ro,co),co.e):null}function VQe(ro){var oo,co;return oo=ro/60|0,co=ro%60,co==0?""+oo:""+oo+":"+(""+co)}function N$(ro,oo){var co=ro.a[oo],fo=(xfe(),Rpe)[typeof co];return fo?fo(co):PEe(typeof co)}function fy(ro,oo){var co,fo;return w3(ro),fo=new u_e(oo,ro.a),co=new XVe(fo),new Ou(ro,co)}function Xue(ro){var oo;return oo=ro.b.c.length==0?null:cu(ro.b,0),oo!=null&&sfe(ro,0),oo}function a8t(ro,oo){var co,fo,po;po=oo.c.i,co=bo(m1(ro.f,po),60),fo=co.d.c-co.e.c,lEe(oo.a,fo,0)}function O_e(ro,oo){var co;for(++ro.d,++ro.c[oo],co=oo+1;co=0;)++oo[0]}function l8t(ro,oo){m2(ro,oo==null||AY((u1(oo),oo))||isNaN((u1(oo),oo))?0:(u1(oo),oo))}function c8t(ro,oo){b2(ro,oo==null||AY((u1(oo),oo))||isNaN((u1(oo),oo))?0:(u1(oo),oo))}function u8t(ro,oo){i6(ro,oo==null||AY((u1(oo),oo))||isNaN((u1(oo),oo))?0:(u1(oo),oo))}function f8t(ro,oo){r6(ro,oo==null||AY((u1(oo),oo))||isNaN((u1(oo),oo))?0:(u1(oo),oo))}function d8t(ro,oo,co){return S8(new Vl(co.e.a+co.f.a/2,co.e.b+co.f.b/2),ro)==(u1(oo),oo)}function h8t(ro,oo){return Hs(oo,102)&&bo(oo,19).Bb&hv?new Ule(oo,ro):new xI(oo,ro)}function p8t(ro,oo){return Hs(oo,102)&&bo(oo,19).Bb&hv?new Ule(oo,ro):new xI(oo,ro)}function KH(ro){return ro.__elementTypeCategory$==null?10:ro.__elementTypeCategory$}function UQe(ro,oo){return oo==(mce(),mce(),$1t)?ro.toLocaleLowerCase():ro.toLowerCase()}function KQe(ro){if(!ro.e)throw Cs(new ay);return ro.c=ro.a=ro.e,ro.e=ro.e.e,--ro.d,ro.a.f}function I_e(ro){if(!ro.c)throw Cs(new ay);return ro.e=ro.a=ro.c,ro.c=ro.c.c,++ro.d,ro.a.f}function YQe(ro){var oo;for(++ro.a,oo=ro.c.a.length;ro.aro.a[fo]&&(fo=co);return fo}function XQe(ro){var oo;return oo=bo(bs(ro,(Wl(),D6)),313),oo?oo.a==ro:!1}function QQe(ro){var oo;return oo=bo(bs(ro,(Wl(),D6)),313),oo?oo.i==ro:!1}function ZQe(){ZQe=qo,Spt=n0((Km(),As($s(t9e,1),Pl,367,0,[xS,qE,zy,Qy,Jv])))}function JQe(){JQe=qo,ogt=n0((V$(),As($s(igt,1),Pl,375,0,[YV,Oee,Iee,Ree,Aee])))}function eZe(){eZe=qo,mgt=n0((y4(),As($s(i7e,1),Pl,348,0,[Oge,r7e,Ige,zN,jN])))}function tZe(){tZe=qo,nbt=n0((GL(),As($s(sRe,1),Pl,323,0,[oRe,xme,Sme,vF,bF])))}function nZe(){nZe=qo,Agt=n0((yx(),As($s(D7e,1),Pl,171,0,[nG,cF,P3,uF,yA])))}function rZe(){rZe=qo,Vyt=n0((JQ(),As($s(qyt,1),Pl,368,0,[Zme,Yme,Jme,Xme,Qme])))}function iZe(){iZe=qo,V2t=n0((iB(),As($s(q2t,1),Pl,373,0,[T7,LR,DF,MF,wG])))}function oZe(){oZe=qo,X2t=n0((Oq(),As($s(fIe,1),Pl,324,0,[lIe,Sve,uIe,_ve,cIe])))}function sZe(){sZe=qo,Uwt=n0((_g(),As($s(HF,1),Pl,88,0,[R_,ey,qv,A_,Cx])))}function aZe(){aZe=qo,ywt=n0((YS(),As($s(WE,1),Pl,170,0,[Ku,pm,gE,eC,D4])))}function lZe(){lZe=qo,nxt=n0((R9(),As($s(WF,1),Pl,256,0,[W3,MG,BNe,GF,FNe])))}function cZe(){cZe=qo,oxt=n0((nu(),As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1])))}function qX(){qX=qo,uAe=new h2e("BY_SIZE",0),qpe=new h2e("BY_SIZE_AND_SHAPE",1)}function VX(){VX=qo,ege=new m2e("EADES",0),ree=new m2e("FRUCHTERMAN_REINGOLD",1)}function YH(){YH=qo,Mee=new w2e("READING_DIRECTION",0),o7e=new w2e("ROTATION",1)}function _L(){_L=qo,Rpt=new q7,Opt=new dP,$pt=new vM,Apt=new t$,Ipt=new hP}function uZe(ro){this.b=new Zl,this.a=new Zl,this.c=new Zl,this.d=new Zl,this.e=ro}function fZe(ro){this.g=ro,this.f=new Zl,this.a=lo.Math.min(this.g.c.c,this.g.d.c)}function dZe(ro,oo,co){CY.call(this),D_e(this),this.a=ro,this.c=co,this.b=oo.d,this.f=oo.e}function w8t(ro,oo,co){var fo,po;for(po=new _s(co);po.a=0&&oo0?oo-1:oo,UPe(W_t(LZe(xxe(new u8,co),ro.n),ro.j),ro.k)}function Pv(ro){var oo,co;co=(oo=new Vae,oo),Y1((!ro.q&&(ro.q=new Bl(eS,ro,11,10)),ro.q),co)}function N_e(ro){return(ro.i&2?"interface ":ro.i&1?"":"class ")+(c5(ro),ro.o)}function GX(ro){return Iy(ro,q0)>0?q0:Iy(ro,Ym)<0?Ym:s0(ro)}function M$(ro){return ro<3?(qw(ro,Lct),ro+1):ro=-.01&&ro.a<=x_&&(ro.a=0),ro.b>=-.01&&ro.b<=x_&&(ro.b=0),ro}function E9(ro){j9();var oo,co;for(co=QCe,oo=0;ooco&&(co=ro[oo]);return co}function mZe(ro,oo){var co;if(co=jq(ro.Dh(),oo),!co)throw Cs(new i1(I3+oo+q0e));return co}function D$(ro,oo){var co;for(co=ro;kp(co);)if(co=kp(co),co==oo)return!0;return!1}function O8t(ro,oo){var co,fo,po;for(fo=oo.a.ld(),co=bo(oo.a.md(),16).gc(),po=0;poro||ro>oo)throw Cs(new jye("fromIndex: 0, toIndex: "+ro+Y3e+oo))}function n6(ro){if(ro<0)throw Cs(new i1("Illegal Capacity: "+ro));this.g=this.aj(ro)}function M_e(ro,oo){return s_(),hS(C3),lo.Math.abs(ro-oo)<=C3||ro==oo||isNaN(ro)&&isNaN(oo)}function Jue(ro,oo){var co,fo,po,vo;for(fo=ro.d,po=0,vo=fo.length;po0&&(ro.a/=oo,ro.b/=oo),ro}function zw(ro){var oo;return ro.w?ro.w:(oo=_At(ro),oo&&!oo.Vh()&&(ro.w=oo),oo)}function cI(ro,oo){var co,fo;fo=ro.a,co=CIt(ro,oo,null),fo!=oo&&!ro.e&&(co=iN(ro,oo,co)),co&&co.oj()}function xZe(ro,oo,co){var fo,po;fo=oo;do po=na(ro.p[fo.p])+co,ro.p[fo.p]=po,fo=ro.a[fo.p];while(fo!=oo)}function SZe(ro,oo,co){var fo=function(){return ro.apply(fo,arguments)};return oo.apply(fo,co),fo}function F8t(ro){var oo;return ro==null?null:(oo=bo(ro,195),XBt(oo,oo.length))}function Gs(ro,oo){if(ro.g==null||oo>=ro.i)throw Cs(new Wle(oo,ro.i));return ro.Wi(oo,ro.g[oo])}function P8t(ro,oo){Hu();var co,fo;for(fo=new Zl,co=0;co=14&&oo<=16))),ro}function e0(ro,oo){var co;return u1(oo),co=ro[":"+oo],mH(!!co,"Enum constant undefined: "+oo),co}function V1(ro,oo,co,fo,po,vo){var xo;return xo=Kce(ro,oo),BZe(co,xo),xo.i=po?8:0,xo.f=fo,xo.e=po,xo.g=vo,xo}function B_e(ro,oo,co,fo,po){this.d=oo,this.k=fo,this.f=po,this.o=-1,this.p=1,this.c=ro,this.a=co}function F_e(ro,oo,co,fo,po){this.d=oo,this.k=fo,this.f=po,this.o=-1,this.p=2,this.c=ro,this.a=co}function P_e(ro,oo,co,fo,po){this.d=oo,this.k=fo,this.f=po,this.o=-1,this.p=6,this.c=ro,this.a=co}function j_e(ro,oo,co,fo,po){this.d=oo,this.k=fo,this.f=po,this.o=-1,this.p=7,this.c=ro,this.a=co}function z_e(ro,oo,co,fo,po){this.d=oo,this.j=fo,this.e=po,this.o=-1,this.p=4,this.c=ro,this.a=co}function FZe(ro,oo){var co,fo,po,vo;for(fo=oo,po=0,vo=fo.length;po=0))throw Cs(new i1("tolerance ("+ro+") must be >= 0"));return ro}function jZe(ro,oo){var co;return Hs(oo,44)?ro.c.Mc(oo):(co=Xfe(ro,oo),IQ(ro,oo),co)}function Ov(ro,oo,co){return TT(ro,oo),s2(ro,co),d4(ro,0),L$(ro,1),b4(ro,!0),m4(ro,!0),ro}function QH(ro,oo){var co;if(co=ro.gc(),oo<0||oo>co)throw Cs(new _$(oo,co));return new Qwe(ro,oo)}function JX(ro,oo){ro.b=lo.Math.max(ro.b,oo.d),ro.e+=oo.r+(ro.a.c.length==0?0:ro.c),Jl(ro.a,oo)}function zZe(ro){w$(ro.c>=0),JNt(ro.d,ro.c)<0&&(ro.a=ro.a-1&ro.d.a.length-1,ro.b=ro.d.c),ro.c=-1}function eQ(ro){var oo,co;for(co=ro.c.Cc().Kc();co.Ob();)oo=bo(co.Pb(),16),oo.$b();ro.c.$b(),ro.d=0}function Y8t(ro){var oo,co,fo,po;for(co=ro.a,fo=0,po=co.length;fo=0}function K_e(ro,oo){ro.r>0&&ro.c0&&ro.g!=0&&K_e(ro.i,oo/ro.r*ro.i.d))}function Y_e(ro,oo){var co;co=ro.c,ro.c=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,1,co,ro.c))}function nfe(ro,oo){var co;co=ro.c,ro.c=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,4,co,ro.c))}function mI(ro,oo){var co;co=ro.k,ro.k=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,2,co,ro.k))}function rfe(ro,oo){var co;co=ro.D,ro.D=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,2,co,ro.D))}function nQ(ro,oo){var co;co=ro.f,ro.f=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,8,co,ro.f))}function rQ(ro,oo){var co;co=ro.i,ro.i=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,7,co,ro.i))}function X_e(ro,oo){var co;co=ro.a,ro.a=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,8,co,ro.a))}function Q_e(ro,oo){var co;co=ro.b,ro.b=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,0,co,ro.b))}function Z_e(ro,oo){var co;co=ro.b,ro.b=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,0,co,ro.b))}function J_e(ro,oo){var co;co=ro.c,ro.c=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,1,co,ro.c))}function eEe(ro,oo){var co;co=ro.d,ro.d=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,1,co,ro.d))}function nRt(ro,oo,co){var fo;ro.b=oo,ro.a=co,fo=(ro.a&512)==512?new lPe:new gw,ro.c=mqt(fo,ro.b,ro.a)}function JZe(ro,oo){return C5(ro.e,oo)?(vv(),Uue(oo)?new PY(oo,ro):new eH(oo,ro)):new CHe(oo,ro)}function rRt(ro){var oo,co;return 0>ro?new t2e:(oo=ro+1,co=new fXe(oo,ro),new Rwe(null,co))}function iRt(ro,oo){Hu();var co;return co=new g8(1),Cm(ro)?Bv(co,ro,oo):l2(co.f,ro,oo),new j_(co)}function oRt(ro,oo){var co,fo;return co=ro.c,fo=oo.e[ro.p],fo>0?bo(cu(co.a,fo-1),10):null}function sRt(ro,oo){var co,fo;return co=ro.o+ro.p,fo=oo.o+oo.p,cooo?(oo<<=1,oo>0?oo:vB):oo}function ife(ro){switch(uwe(ro.e!=3),ro.e){case 2:return!1;case 0:return!0}return g7t(ro)}function tJe(ro,oo){var co;return Hs(oo,8)?(co=bo(oo,8),ro.a==co.a&&ro.b==co.b):!1}function lRt(ro,oo){var co;co=new tu,bo(oo.b,68),bo(oo.b,68),bo(oo.b,68),g2(oo.a,new axe(ro,co,oo))}function nJe(ro,oo){var co,fo;for(fo=oo.vc().Kc();fo.Ob();)co=bo(fo.Pb(),44),Cq(ro,co.ld(),co.md())}function tEe(ro,oo){var co;co=ro.d,ro.d=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,11,co,ro.d))}function iQ(ro,oo){var co;co=ro.j,ro.j=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,13,co,ro.j))}function nEe(ro,oo){var co;co=ro.b,ro.b=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,21,co,ro.b))}function cRt(ro,oo){($X(),E_?null:oo.c).length==0&&bVe(oo,new El),Bv(ro.a,E_?null:oo.c,oo)}function uRt(ro,oo){oo.Ug("Hierarchical port constraint processing",1),$Mt(ro),KYt(ro),oo.Vg()}function s6(){s6=qo,M6=new wle("START",0),B3=new wle("MIDDLE",1),N6=new wle("END",2)}function oQ(){oQ=qo,Ete=new R2e("P1_NODE_PLACEMENT",0),k7=new R2e("P2_EDGE_ROUTING",1)}function g3(){g3=qo,ER=new np(wTe),see=new np(Tut),eF=new np(Cut),VV=new np($ut)}function a6(ro){var oo;return vce(ro.f.g,ro.d),T1(ro.b),ro.c=ro.a,oo=bo(ro.a.Pb(),44),ro.b=gEe(ro),oo}function rEe(ro){var oo;return ro.b==null?(t4(),t4(),WG):(oo=ro.ul()?ro.tl():ro.sl(),oo)}function rJe(ro,oo){var co;return co=oo==null?-1:Xv(ro.b,oo,0),co<0?!1:(sfe(ro,co),!0)}function pS(ro,oo){var co;return u1(oo),co=oo.g,ro.b[co]?!1:(Np(ro.b,co,oo),++ro.c,!0)}function sQ(ro,oo){var co,fo;return co=1-oo,fo=ro.a[co],ro.a[co]=fo.a[oo],fo.a[oo]=ro,ro.b=!0,fo.b=!1,fo}function fRt(ro,oo){var co,fo;for(fo=oo.Kc();fo.Ob();)co=bo(fo.Pb(),272),ro.b=!0,om(ro.e,co),co.b=ro}function dRt(ro,oo){var co,fo;return co=bo(bs(ro,(ou(),kA)),8),fo=bo(bs(oo,kA),8),sp(co.b,fo.b)}function ofe(ro,oo,co){var fo,po,vo;return vo=oo>>5,po=oo&31,fo=vm(l3(ro.n[co][vo],s0(fS(po,1))),3),fo}function iJe(ro,oo,co){var fo,po,vo;for(vo=ro.a.length-1,po=ro.b,fo=0;fo0?1:0:(!ro.c&&(ro.c=RH(Ty(ro.f))),ro.c).e}function hJe(ro,oo){oo?ro.B==null&&(ro.B=ro.D,ro.D=null):ro.B!=null&&(ro.D=ro.B,ro.B=null)}function mRt(ro,oo){return _I(),ro==I6&&oo==hA||ro==hA&&oo==I6||ro==o7&&oo==dA||ro==dA&&oo==o7}function vRt(ro,oo){return _I(),ro==I6&&oo==dA||ro==I6&&oo==o7||ro==hA&&oo==o7||ro==hA&&oo==dA}function pJe(ro,oo){return s_(),hS(x_),lo.Math.abs(0-oo)<=x_||oo==0||isNaN(0)&&isNaN(oo)?0:ro/oo}function gJe(ro,oo){return na(Tl(Aw(pq(Kv(new Ou(null,new Du(ro.c.b,16)),new SLe(ro)),oo))))}function aEe(ro,oo){return na(Tl(Aw(pq(Kv(new Ou(null,new Du(ro.c.b,16)),new xLe(ro)),oo))))}function bRt(){return Sv(),As($s(jge,1),Pl,259,0,[Fee,Tx,oF,Pee,GN,f7,sF,qN,VN,jee])}function yRt(){return qx(),As($s(fRe,1),Pl,243,0,[dte,aG,lG,lRe,cRe,aRe,uRe,hte,G6,CA])}function wRt(ro,oo){var co;oo.Ug("General Compactor",1),co=kNt(bo(zl(ro,(k3(),nve)),393)),co.Cg(ro)}function xRt(ro,oo){var co,fo;return co=bo(zl(ro,(k3(),Tte)),17),fo=bo(zl(oo,Tte),17),Oy(co.a,fo.a)}function lEe(ro,oo,co){var fo,po;for(po=G1(ro,0);po.b!=po.d.c;)fo=bo(q1(po),8),fo.a+=oo,fo.b+=co;return ro}function TL(ro,oo,co){var fo;for(fo=ro.b[co&ro.f];fo;fo=fo.b)if(co==fo.a&&K_(oo,fo.g))return fo;return null}function CL(ro,oo,co){var fo;for(fo=ro.c[co&ro.f];fo;fo=fo.d)if(co==fo.f&&K_(oo,fo.i))return fo;return null}function SRt(ro,oo,co){var fo,po,vo;for(fo=0,po=0;po>>31;fo!=0&&(ro[co]=fo)}function ufe(ro,oo,co,fo,po,vo){var xo;this.c=ro,xo=new Zl,zke(ro,xo,oo,ro.b,co,fo,po,vo),this.a=new Lm(xo,0)}function mJe(){this.c=new OK(0),this.b=new OK(XCe),this.d=new OK(dft),this.a=new OK(I1e)}function gx(ro,oo,co,fo,po,vo,xo){J1.call(this,ro,oo),this.d=co,this.e=fo,this.c=po,this.b=vo,this.a=f_(xo)}function Hp(ro,oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo){return $it(ro,oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo),qfe(ro,!1),ro}function _Rt(ro){return ro.b.c.i.k==(a1(),Kp)?bo(bs(ro.b.c.i,(Wl(),Z0)),12):ro.b.c}function vJe(ro){return ro.b.d.i.k==(a1(),Kp)?bo(bs(ro.b.d.i,(Wl(),Z0)),12):ro.b.d}function ERt(ro){var oo;return oo=SX(ro),DC(oo.a,0)?(DK(),DK(),A1t):(DK(),new Zqe(oo.b))}function ffe(ro){var oo;return oo=PSe(ro),DC(oo.a,0)?(p$(),p$(),Dpe):(p$(),new ace(oo.b))}function dfe(ro){var oo;return oo=PSe(ro),DC(oo.a,0)?(p$(),p$(),Dpe):(p$(),new ace(oo.c))}function bJe(ro){switch(ro.g){case 2:return nu(),l1;case 4:return nu(),p1;default:return ro}}function yJe(ro){switch(ro.g){case 1:return nu(),z1;case 3:return nu(),s1;default:return ro}}function wJe(ro){switch(ro.g){case 0:return new nz;case 1:return new VM;default:return null}}function G8(){G8=qo,vge=new Rp("edgelabelcenterednessanalysis.includelabel",(_f(),M3))}function cEe(){cEe=qo,Tbt=Z_(zHe(_0(_0(new Zp,(Km(),zy),(rv(),yee)),Qy,hee),Jv),bee)}function xJe(){xJe=qo,Rbt=Z_(zHe(_0(_0(new Zp,(Km(),zy),(rv(),yee)),Qy,hee),Jv),bee)}function hfe(){hfe=qo,tP=new rPe,obe=As($s(L2,1),t7,179,0,[]),Qxt=As($s(eS,1),g$e,62,0,[])}function vI(){vI=qo,WV=new v2e("TO_INTERNAL_LTR",0),pge=new v2e("TO_INPUT_DIRECTION",1)}function G2(){G2=qo,u9e=new A0,l9e=new Y0,c9e=new Rm,a9e=new wm,f9e=new jp,d9e=new im}function kRt(ro,oo){oo.Ug(qut,1),dke(lEt(new pK((kD(),new eue(ro,!1,!1,new dC))))),oo.Vg()}function TRt(ro,oo,co){co.Ug("DFS Treeifying phase",1),qNt(ro,oo),zHt(ro,oo),ro.a=null,ro.b=null,co.Vg()}function ZH(ro,oo){return _f(),Cm(ro)?l_e(ro,u0(oo)):b$(ro)?Lce(ro,Tl(oo)):v$(ro)?gCt(ro,au(oo)):ro.Fd(oo)}function $L(ro,oo){var co,fo;for(u1(oo),fo=oo.vc().Kc();fo.Ob();)co=bo(fo.Pb(),44),ro.zc(co.ld(),co.md())}function CRt(ro,oo,co){var fo;for(fo=co.Kc();fo.Ob();)if(!kX(ro,oo,fo.Pb()))return!1;return!0}function $Rt(ro,oo,co,fo,po){var vo;return co&&(vo=Ap(oo.Dh(),ro.c),po=co.Rh(oo,-1-(vo==-1?fo:vo),null,po)),po}function ARt(ro,oo,co,fo,po){var vo;return co&&(vo=Ap(oo.Dh(),ro.c),po=co.Th(oo,-1-(vo==-1?fo:vo),null,po)),po}function SJe(ro){var oo;if(ro.b==-2){if(ro.e==0)oo=-1;else for(oo=0;ro.a[oo]==0;oo++);ro.b=oo}return ro.b}function RRt(ro){if(u1(ro),ro.length==0)throw Cs(new H_("Zero length BigInteger"));DVt(this,ro)}function uEe(ro){this.i=ro.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),ro.Qc(this.g))}function _Je(ro,oo,co){this.g=ro,this.d=oo,this.e=co,this.a=new Zl,HPt(this),Hu(),Up(this.a,null)}function fEe(ro,oo){oo.q=ro,ro.d=lo.Math.max(ro.d,oo.r),ro.b+=oo.d+(ro.a.c.length==0?0:ro.c),Jl(ro.a,oo)}function bI(ro,oo){var co,fo,po,vo;return po=ro.c,co=ro.c+ro.b,vo=ro.d,fo=ro.d+ro.a,oo.a>po&&oo.avo&&oo.bpo?co=po:o1(oo,co+1),ro.a=lx(ro.a,0,oo)+(""+fo)+iSe(ro.a,co)}function IJe(ro,oo){ro.a=tv(ro.a,1),ro.c=lo.Math.min(ro.c,oo),ro.b=lo.Math.max(ro.b,oo),ro.d=tv(ro.d,oo)}function BRt(ro,oo){return oo1||ro.Ob())return++ro.a,ro.g=0,oo=ro.i,ro.Ob(),oo;throw Cs(new ay)}function LJe(ro){switch(ro.a.g){case 1:return new zze;case 3:return new Unt;default:return new Wse}}function hEe(ro,oo){switch(oo){case 1:return!!ro.n&&ro.n.i!=0;case 2:return ro.k!=null}return FSe(ro,oo)}function Ty(ro){return sV>22),po=ro.h+oo.h+(fo>>22),h2(co&xw,fo&xw,po&A5)}function VJe(ro,oo){var co,fo,po;return co=ro.l-oo.l,fo=ro.m-oo.m+(co>>22),po=ro.h-oo.h+(fo>>22),h2(co&xw,fo&xw,po&A5)}function iOt(ro){var oo,co;for(QKt(ro),co=new _s(ro.d);co.afo)throw Cs(new _$(oo,fo));return ro.Si()&&(co=lKe(ro,co)),ro.Ei(oo,co)}function EI(ro,oo,co,fo,po){var vo,xo;for(xo=co;xo<=po;xo++)for(vo=oo;vo<=fo;vo++)I9(ro,vo,xo)||wZ(ro,vo,xo,!0,!1)}function bOt(ro){j9();var oo,co,fo;for(co=Al(_m,Yl,8,2,0,1),fo=0,oo=0;oo<2;oo++)fo+=.5,co[oo]=fDt(fo,ro);return co}function kI(ro){var oo,co,fo;return oo=~ro.l+1&xw,co=~ro.m+(oo==0?1:0)&xw,fo=~ro.h+(oo==0&&co==0?1:0)&A5,h2(oo,co,fo)}function xEe(ro){var oo;if(ro<0)return Ym;if(ro==0)return 0;for(oo=vB;!(oo&ro);oo>>=1);return oo}function wfe(ro,oo,co){return ro>=128?!1:ro<64?VD(vm(fS(1,ro),co),0):VD(vm(fS(1,ro-64),oo),0)}function lq(ro,oo,co){return co==null?(!ro.q&&(ro.q=new H1),z8(ro.q,oo)):(!ro.q&&(ro.q=new H1),N0(ro.q,oo,co)),ro}function Fl(ro,oo,co){return co==null?(!ro.q&&(ro.q=new H1),z8(ro.q,oo)):(!ro.q&&(ro.q=new H1),N0(ro.q,oo,co)),ro}function tet(ro){var oo,co;return co=new RX,Qv(co,ro),Fl(co,(g3(),ER),ro),oo=new H1,UGt(ro,co,oo),xKt(ro,co,oo),co}function net(ro){var oo,co;return oo=ro.t-ro.k[ro.o.p]*ro.d+ro.j[ro.o.p]>ro.f,co=ro.u+ro.e[ro.o.p]*ro.d>ro.f*ro.s*ro.d,oo||co}function ret(ro,oo){var co,fo,po,vo;for(co=!1,fo=ro.a[oo].length,vo=0;vo=0,"Negative initial capacity"),mH(oo>=0,"Non-positive load factor"),nw(this)}function wOt(ro,oo,co,fo,po){var vo,xo;if(xo=ro.length,vo=co.length,oo<0||fo<0||po<0||oo+po>xo||fo+po>vo)throw Cs(new dye)}function kEe(ro,oo){Hu();var co,fo,po,vo,xo;for(xo=!1,fo=oo,po=0,vo=fo.length;po1||oo>=0&&ro.b<3)}function _fe(ro){var oo,co,fo;oo=~ro.l+1&xw,co=~ro.m+(oo==0?1:0)&xw,fo=~ro.h+(oo==0&&co==0?1:0)&A5,ro.l=oo,ro.m=co,ro.h=fo}function $Ee(ro){Hu();var oo,co,fo;for(fo=1,co=ro.Kc();co.Ob();)oo=co.Pb(),fo=31*fo+(oo!=null?dp(oo):0),fo=fo|0;return fo}function kOt(ro,oo,co,fo,po){var vo;return vo=v4e(ro,oo),co&&_fe(vo),po&&(ro=bDt(ro,oo),fo?N3=kI(ro):N3=h2(ro.l,ro.m,ro.h)),vo}function met(ro,oo,co){ro.g=zde(ro,oo,(nu(),p1),ro.b),ro.d=zde(ro,co,p1,ro.b),!(ro.g.c==0||ro.d.c==0)&&Xrt(ro)}function vet(ro,oo,co){ro.g=zde(ro,oo,(nu(),l1),ro.j),ro.d=zde(ro,co,l1,ro.j),!(ro.g.c==0||ro.d.c==0)&&Xrt(ro)}function AEe(ro,oo){switch(oo){case 7:return!!ro.e&&ro.e.i!=0;case 8:return!!ro.d&&ro.d.i!=0}return hke(ro,oo)}function TOt(ro,oo){switch(oo.g){case 0:Hs(ro.b,641)||(ro.b=new OJe);break;case 1:Hs(ro.b,642)||(ro.b=new RGe)}}function bet(ro){switch(ro.g){case 0:return new vie;default:throw Cs(new i1(wJ+(ro.f!=null?ro.f:""+ro.g)))}}function yet(ro){switch(ro.g){case 0:return new rz;default:throw Cs(new i1(wJ+(ro.f!=null?ro.f:""+ro.g)))}}function COt(ro,oo,co){return!OO(X0(new Ou(null,new Du(ro.c,16)),new SO(new nHe(oo,co)))).Bd((lT(),SR))}function wet(ro,oo){return S8(zI(bo(bs(oo,(by(),U6)),88)),new Vl(ro.c.e.a-ro.b.e.a,ro.c.e.b-ro.b.e.b))<=0}function $Ot(ro,oo){for(;ro.g==null&&!ro.c?$Se(ro):ro.g==null||ro.i!=0&&bo(ro.g[ro.i-1],51).Ob();)OEt(oo,lZ(ro))}function kT(ro){var oo,co;for(co=new _s(ro.a.b);co.afo?1:0}function OOt(ro){return Jl(ro.c,(W8(),gwt)),M_e(ro.a,na(Tl(iu((Yfe(),lte)))))?new Lie:new CBe(ro)}function IOt(ro){for(;!ro.d||!ro.d.Ob();)if(ro.b&&!xD(ro.b))ro.d=bo(O8(ro.b),51);else return null;return ro.d}function OEe(ro){switch(ro.g){case 1:return dft;default:case 2:return 0;case 3:return I1e;case 4:return XCe}}function NOt(){H0();var ro;return fbe||(ro=Zkt(T3("M",!0)),ro=VY(T3("M",!1),ro),fbe=ro,fbe)}function vQ(){vQ=qo,Qve=new lY("ELK",0),QNe=new lY("JSON",1),XNe=new lY("DOT",2),ZNe=new lY("SVG",3)}function IL(){IL=qo,Ame=new Ale("STACKED",0),$me=new Ale("REVERSE_STACKED",1),cG=new Ale("SEQUENCED",2)}function NL(){NL=qo,jRe=new Dle(sE,0),Dme=new Dle("MIDDLE_TO_MIDDLE",1),dG=new Dle("AVOID_OVERLAP",2)}function $I(){$I=qo,K9e=new Nx,Y9e=new d2,Qpt=new Wm,Xpt=new AP,Ypt=new Ry,U9e=(u1(Ypt),new vs)}function bQ(){bQ=qo,DNe=new BC(15),Qwt=new Mm(($0(),L4),DNe),qF=PR,ONe=Rwt,INe=nC,MNe=N7,NNe=OA}function T9(ro,oo){var co,fo,po,vo,xo;for(fo=oo,po=0,vo=fo.length;po=ro.b.c.length||(NEe(ro,2*oo+1),co=2*oo+2,co0&&(oo.Cd(co),co.i&&DIt(co))}function MEe(ro,oo,co){var fo;for(fo=co-1;fo>=0&&ro[fo]===oo[fo];fo--);return fo<0?0:ple(vm(ro[fo],_v),vm(oo[fo],_v))?-1:1}function Eet(ro,oo,co){var fo,po;this.g=ro,this.c=oo,this.a=this,this.d=this,po=eJe(co),fo=Al(c1t,rV,227,po,0,1),this.b=fo}function $fe(ro,oo,co,fo,po){var vo,xo;for(xo=co;xo<=po;xo++)for(vo=oo;vo<=fo;vo++)if(I9(ro,vo,xo))return!0;return!1}function POt(ro,oo){var co,fo;for(fo=ro.Zb().Cc().Kc();fo.Ob();)if(co=bo(fo.Pb(),16),co.Hc(oo))return!0;return!1}function ket(ro,oo,co){var fo,po,vo,xo;for(u1(co),xo=!1,vo=ro.fd(oo),po=co.Kc();po.Ob();)fo=po.Pb(),vo.Rb(fo),xo=!0;return xo}function Afe(ro,oo){var co,fo;return fo=bo(n1(ro.a,4),129),co=Al(rbe,spe,424,oo,0,1),fo!=null&&jy(fo,0,co,0,fo.length),co}function Tet(ro,oo){var co;return co=new rhe((ro.f&256)!=0,ro.i,ro.a,ro.d,(ro.f&16)!=0,ro.j,ro.g,oo),ro.e!=null||(co.c=ro),co}function jOt(ro,oo){var co;return ro===oo?!0:Hs(oo,85)?(co=bo(oo,85),B5e(uT(ro),co.vc())):!1}function Cet(ro,oo,co){var fo,po;for(po=co.Kc();po.Ob();)if(fo=bo(po.Pb(),44),ro.Be(oo,fo.md()))return!0;return!1}function $et(ro,oo,co){return ro.d[oo.p][co.p]||(qMt(ro,oo,co),ro.d[oo.p][co.p]=!0,ro.d[co.p][oo.p]=!0),ro.a[oo.p][co.p]}function zOt(ro,oo){var co;return!ro||ro==oo||!gp(oo,(Wl(),L6))?!1:(co=bo(bs(oo,(Wl(),L6)),10),co!=ro)}function Rfe(ro){switch(ro.i){case 2:return!0;case 1:return!1;case-1:++ro.c;default:return ro.$l()}}function Aet(ro){switch(ro.i){case-2:return!0;case-1:return!1;case 1:--ro.c;default:return ro._l()}}function Ret(ro){hKe.call(this,"The given string does not match the expected format for individual spacings.",ro)}function HOt(ro,oo){var co;oo.Ug("Min Size Preprocessing",1),co=W5e(ro),tp(ro,(ME(),OF),co.a),tp(ro,Ate,co.b),oo.Vg()}function qOt(ro){var oo,co,fo;for(oo=0,fo=Al(_m,Yl,8,ro.b,0,1),co=G1(ro,0);co.b!=co.d.c;)fo[oo++]=bo(q1(co),8);return fo}function Ofe(ro,oo,co){var fo,po,vo;for(fo=new xp,vo=G1(co,0);vo.b!=vo.d.c;)po=bo(q1(vo),8),y0(fo,new ov(po));ket(ro,oo,fo)}function VOt(ro,oo){var co;return co=tv(ro,oo),ple(wue(ro,oo),0)|fY(wue(ro,co),0)?co:tv(nV,wue(l3(co,63),1))}function GOt(ro,oo){var co,fo;return co=bo(ro.d.Bc(oo),16),co?(fo=ro.e.hc(),fo.Gc(co),ro.e.d-=co.gc(),co.$b(),fo):null}function Oet(ro){var oo;if(oo=ro.a.c.length,oo>0)return WO(oo-1,ro.a.c.length),l4(ro.a,oo-1);throw Cs(new CFe)}function Iet(ro,oo,co){if(ro>oo)throw Cs(new i1(BZ+ro+Zct+oo));if(ro<0||oo>co)throw Cs(new jye(BZ+ro+Z3e+oo+Y3e+co))}function AI(ro,oo){ro.D==null&&ro.B!=null&&(ro.D=ro.B,ro.B=null),rfe(ro,oo==null?null:(u1(oo),oo)),ro.C&&ro.hl(null)}function WOt(ro,oo){var co;co=iu((Yfe(),lte))!=null&&oo.Sg()!=null?na(Tl(oo.Sg()))/na(Tl(iu(lte))):1,N0(ro.b,oo,co)}function DEe(ro,oo){var co,fo;if(fo=ro.c[oo],fo!=0)for(ro.c[oo]=0,ro.d-=fo,co=oo+1;cohJ?ro-co>hJ:co-ro>hJ}function qet(ro,oo){var co;for(co=0;copo&&(xrt(oo.q,po),fo=co!=oo.q.d)),fo}function Vet(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao;return To=oo.i,Ao=oo.j,fo=ro.f,po=fo.i,vo=fo.j,xo=To-po,Eo=Ao-vo,co=lo.Math.sqrt(xo*xo+Eo*Eo),co}function zEe(ro,oo){var co,fo;return fo=NQ(ro),fo||(co=(khe(),Lot(oo)),fo=new mFe(co),Y1(fo.El(),ro)),fo}function dq(ro,oo){var co,fo;return co=bo(ro.c.Bc(oo),16),co?(fo=ro.hc(),fo.Gc(co),ro.d-=co.gc(),co.$b(),ro.mc(fo)):ro.jc()}function rIt(ro,oo){var co,fo;for(fo=yw(ro.d,1)!=0,co=!0;co;)co=!1,co=oo.c.mg(oo.e,fo),co=co|zq(ro,oo,fo,!1),fo=!fo;oEe(ro)}function Get(ro,oo,co,fo){var po,vo;ro.a=oo,vo=fo?0:1,ro.f=(po=new sit(ro.c,ro.a,co,vo),new zst(co,ro.a,po,ro.e,ro.b,ro.c==(o6(),xF)))}function wQ(ro){var oo;return T1(ro.a!=ro.b),oo=ro.d.a[ro.a],gVe(ro.b==ro.d.c&&oo!=null),ro.c=ro.a,ro.a=ro.a+1&ro.d.a.length-1,oo}function Wet(ro){var oo;if(ro.c!=0)return ro.c;for(oo=0;oo=ro.c.b:ro.a<=ro.c.b))throw Cs(new ay);return oo=ro.a,ro.a+=ro.c.c,++ro.b,Ql(oo)}function Lfe(ro){var oo;return oo=new twe(ro.a),Qv(oo,ro),Fl(oo,(Wl(),Z0),ro),oo.o.a=ro.g,oo.o.b=ro.f,oo.n.a=ro.i,oo.n.b=ro.j,oo}function Bfe(ro){return(nu(),M2).Hc(ro.j)?na(Tl(bs(ro,(Wl(),WN)))):dy(As($s(_m,1),Yl,8,0,[ro.i.n,ro.n,ro.a])).b}function oIt(ro){var oo;return oo=mY(kbt),bo(bs(ro,(Wl(),Jy)),21).Hc((Sv(),GN))&&_0(oo,(Km(),zy),(rv(),See)),oo}function sIt(ro){var oo,co,fo,po;for(po=new Yp,fo=new _s(ro);fo.a=0?oo:-oo;fo>0;)fo%2==0?(co*=co,fo=fo/2|0):(po*=co,fo-=1);return oo<0?1/po:po}function fIt(ro,oo){var co,fo,po;for(po=1,co=ro,fo=oo>=0?oo:-oo;fo>0;)fo%2==0?(co*=co,fo=fo/2|0):(po*=co,fo-=1);return oo<0?1/po:po}function y3(ro,oo){var co,fo,po,vo;return vo=(po=ro?NQ(ro):null,Rit((fo=oo,po&&po.Gl(),fo))),vo==oo&&(co=NQ(ro),co&&co.Gl()),vo}function Uet(ro,oo,co){var fo,po;return po=ro.f,ro.f=oo,ro.Db&4&&!(ro.Db&1)&&(fo=new Em(ro,1,0,po,oo),co?co.nj(fo):co=fo),co}function Ket(ro,oo,co){var fo,po;return po=ro.b,ro.b=oo,ro.Db&4&&!(ro.Db&1)&&(fo=new Em(ro,1,3,po,oo),co?co.nj(fo):co=fo),co}function qEe(ro,oo,co){var fo,po;return po=ro.a,ro.a=oo,ro.Db&4&&!(ro.Db&1)&&(fo=new Em(ro,1,1,po,oo),co?co.nj(fo):co=fo),co}function Yet(ro){var oo,co;if(ro!=null)for(co=0;co=fo||oo-129&&ro<128?(AGe(),oo=ro+128,co=H$e[oo],!co&&(co=H$e[oo]=new xs(ro)),co):new xs(ro)}function OI(ro){var oo,co;return ro>-129&&ro<128?(WGe(),oo=ro+128,co=W$e[oo],!co&&(co=W$e[oo]=new xa(ro)),co):new xa(ro)}function Zet(ro,oo){var co;ro.a.c.length>0&&(co=bo(cu(ro.a,ro.a.c.length-1),579),IEe(co,oo))||Jl(ro.a,new dXe(oo))}function vIt(ro){uS();var oo,co;oo=ro.d.c-ro.e.c,co=bo(ro.g,154),g2(co.b,new cLe(oo)),g2(co.c,new uLe(oo)),Hm(co.i,new fLe(oo))}function Jet(ro){var oo;return oo=new J4,oo.a+="VerticalSegment ",qy(oo,ro.e),oo.a+=" ",S0(oo,lwe(new tle,new _s(ro.k))),oo.a}function Ffe(ro,oo){var co,fo,po;for(co=0,po=hy(ro,oo).Kc();po.Ob();)fo=bo(po.Pb(),12),co+=bs(fo,(Wl(),aw))!=null?1:0;return co}function A9(ro,oo,co){var fo,po,vo;for(fo=0,vo=G1(ro,0);vo.b!=vo.d.c&&(po=na(Tl(q1(vo))),!(po>co));)po>=oo&&++fo;return fo}function ett(ro,oo){a0(ro);try{return ro._b(oo)}catch(co){if(co=$p(co),Hs(co,212)||Hs(co,169))return!1;throw Cs(co)}}function GEe(ro,oo){a0(ro);try{return ro.Hc(oo)}catch(co){if(co=$p(co),Hs(co,212)||Hs(co,169))return!1;throw Cs(co)}}function bIt(ro,oo){a0(ro);try{return ro.Mc(oo)}catch(co){if(co=$p(co),Hs(co,212)||Hs(co,169))return!1;throw Cs(co)}}function P$(ro,oo){a0(ro);try{return ro.xc(oo)}catch(co){if(co=$p(co),Hs(co,212)||Hs(co,169))return null;throw Cs(co)}}function yIt(ro,oo){a0(ro);try{return ro.Bc(oo)}catch(co){if(co=$p(co),Hs(co,212)||Hs(co,169))return null;throw Cs(co)}}function LL(ro,oo){switch(oo.g){case 2:case 1:return hy(ro,oo);case 3:case 4:return bx(hy(ro,oo))}return Hu(),Hu(),cv}function BL(ro){var oo;return ro.Db&64?gS(ro):(oo=new Bx(gS(ro)),oo.a+=" (name: ",Av(oo,ro.zb),oo.a+=")",oo.a)}function wIt(ro){var oo;return oo=bo(p_(ro.c.c,""),233),oo||(oo=new B8(AO($O(new Cw,""),"Other")),w4(ro.c.c,"",oo)),oo}function WEe(ro,oo,co){var fo,po;return po=ro.sb,ro.sb=oo,ro.Db&4&&!(ro.Db&1)&&(fo=new Em(ro,1,4,po,oo),co?co.nj(fo):co=fo),co}function UEe(ro,oo,co){var fo,po;return po=ro.r,ro.r=oo,ro.Db&4&&!(ro.Db&1)&&(fo=new Em(ro,1,8,po,ro.r),co?co.nj(fo):co=fo),co}function xIt(ro,oo,co){var fo,po;return fo=new m5(ro.e,4,13,(po=oo.c,po||(Pu(),N_)),null,x4(ro,oo),!1),co?co.nj(fo):co=fo,co}function SIt(ro,oo,co){var fo,po;return fo=new m5(ro.e,3,13,null,(po=oo.c,po||(Pu(),N_)),x4(ro,oo),!1),co?co.nj(fo):co=fo,co}function g4(ro,oo){var co,fo;return co=bo(oo,691),fo=co.el(),!fo&&co.fl(fo=Hs(oo,90)?new $He(ro,bo(oo,29)):new QKe(ro,bo(oo,156))),fo}function hq(ro,oo,co){var fo;ro._i(ro.i+1),fo=ro.Zi(oo,co),oo!=ro.i&&jy(ro.g,oo,ro.g,oo+1,ro.i-oo),Np(ro.g,oo,fo),++ro.i,ro.Mi(oo,co),ro.Ni()}function _It(ro,oo){var co;return oo.a&&(co=oo.a.a.length,ro.a?S0(ro.a,ro.b):ro.a=new Bw(ro.d),iYe(ro.a,oo.a,oo.d.length,co)),ro}function EIt(ro,oo){var co;ro.c=oo,ro.a=ANt(oo),ro.a<54&&(ro.f=(co=oo.d>1?nYe(oo.a[0],oo.a[1]):nYe(oo.a[0],0),vT(oo.e>0?co:f4(co))))}function pq(ro,oo){var co;return co=new Zs,ro.a.Bd(co)?(BO(),new Yae(u1(BQe(ro,co.a,oo)))):(f3(ro),BO(),BO(),rAe)}function ttt(ro,oo){var co;ro.c.length!=0&&(co=bo(v_(ro,Al(VE,T4,10,ro.c.length,0,1)),199),U2e(co,new yM),Qit(co,oo))}function ntt(ro,oo){var co;ro.c.length!=0&&(co=bo(v_(ro,Al(VE,T4,10,ro.c.length,0,1)),199),U2e(co,new W7),Qit(co,oo))}function U0(ro,oo){return Cm(ro)?Iu(ro,oo):b$(ro)?WVe(ro,oo):v$(ro)?(u1(ro),$a(ro)===$a(oo)):jxe(ro)?ro.Fb(oo):Nxe(ro)?VHe(ro,oo):NSe(ro,oo)}function mx(ro,oo,co){if(oo<0)J5e(ro,co);else{if(!co.rk())throw Cs(new i1(I3+co.xe()+LB));bo(co,69).wk().Ek(ro,ro.hi(),oo)}}function rtt(ro,oo,co){if(ro<0||oo>co)throw Cs(new Dv(BZ+ro+Z3e+oo+", size: "+co));if(ro>oo)throw Cs(new i1(BZ+ro+Zct+oo))}function itt(ro){var oo;return ro.Db&64?gS(ro):(oo=new Bx(gS(ro)),oo.a+=" (source: ",Av(oo,ro.d),oo.a+=")",oo.a)}function ott(ro){return ro>=65&&ro<=70?ro-65+10:ro>=97&&ro<=102?ro-97+10:ro>=48&&ro<=57?ro-48:0}function kIt(ro){IZ();var oo,co,fo,po;for(co=rde(),fo=0,po=co.length;fo=0?x3(ro):uL(x3(f4(ro))))}function ltt(ro,oo,co,fo,po,vo){this.e=new Zl,this.f=(xv(),yF),Jl(this.e,ro),this.d=oo,this.a=co,this.b=fo,this.f=po,this.c=vo}function $It(ro,oo,co){ro.n=cT(tT,[Yl,c1e],[376,28],14,[co,dm(lo.Math.ceil(oo/32))],2),ro.o=oo,ro.p=co,ro.j=oo-1>>1,ro.k=co-1>>1}function ctt(ro){return ro-=ro>>1&1431655765,ro=(ro>>2&858993459)+(ro&858993459),ro=(ro>>4)+ro&252645135,ro+=ro>>8,ro+=ro>>16,ro&63}function utt(ro,oo){var co,fo;for(fo=new g1(ro);fo.e!=fo.i.gc();)if(co=bo(k1(fo),142),$a(oo)===$a(co))return!0;return!1}function AIt(ro,oo,co){var fo,po,vo;return vo=(po=YI(ro.b,oo),po),vo&&(fo=bo(CZ(VH(ro,vo),""),29),fo)?x4e(ro,fo,oo,co):null}function Pfe(ro,oo,co){var fo,po,vo;return vo=(po=YI(ro.b,oo),po),vo&&(fo=bo(CZ(VH(ro,vo),""),29),fo)?S4e(ro,fo,oo,co):null}function RIt(ro,oo){var co;if(co=k9(ro.i,oo),co==null)throw Cs(new z_("Node did not exist in input."));return dEe(oo,co),null}function OIt(ro,oo){var co;if(co=jq(ro,oo),Hs(co,331))return bo(co,35);throw Cs(new i1(I3+oo+"' is not a valid attribute"))}function PL(ro,oo,co){var fo;if(fo=ro.gc(),oo>fo)throw Cs(new _$(oo,fo));if(ro.Si()&&ro.Hc(co))throw Cs(new i1(CV));ro.Gi(oo,co)}function IIt(ro,oo){oo.Ug("Sort end labels",1),zp(X0(fy(new Ou(null,new Du(ro.b,16)),new bne),new z5),new yne),oo.Vg()}function _g(){_g=qo,R_=new Qz(SB,0),ey=new Qz(dR,1),qv=new Qz(fR,2),A_=new Qz(S1e,3),Cx=new Qz("UP",4)}function mq(){mq=qo,Ite=new Hle("P1_STRUCTURE",0),Nte=new Hle("P2_PROCESSING_ORDER",1),Mte=new Hle("P3_EXECUTION",2)}function ftt(){ftt=qo,jyt=Z_(Z_(AD(Z_(Z_(AD(_0(new Zp,(eR(),EF),(lB(),Mme)),kF),LRe),FRe),TF),IRe),PRe)}function NIt(ro){switch(bo(bs(ro,(Wl(),GT)),311).g){case 1:Fl(ro,GT,(b5(),TR));break;case 2:Fl(ro,GT,(b5(),d7))}}function MIt(ro){switch(ro){case 0:return new XFe;case 1:return new KFe;case 2:return new YFe;default:throw Cs(new Az)}}function dtt(ro){switch(ro.g){case 2:return ey;case 1:return qv;case 4:return A_;case 3:return Cx;default:return R_}}function QEe(ro,oo){switch(ro.b.g){case 0:case 1:return oo;case 2:case 3:return new ax(oo.d,0,oo.a,oo.b);default:return null}}function ZEe(ro){switch(ro.g){case 1:return l1;case 2:return s1;case 3:return p1;case 4:return z1;default:return gy}}function vq(ro){switch(ro.g){case 1:return z1;case 2:return l1;case 3:return s1;case 4:return p1;default:return gy}}function _Q(ro){switch(ro.g){case 1:return p1;case 2:return z1;case 3:return l1;case 4:return s1;default:return gy}}function JEe(ro,oo,co,fo){switch(oo){case 1:return!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),ro.n;case 2:return ro.k}return Gke(ro,oo,co,fo)}function jL(ro,oo,co){var fo,po;return ro.Pj()?(po=ro.Qj(),fo=Wde(ro,oo,co),ro.Jj(ro.Ij(7,Ql(co),fo,oo,po)),fo):Wde(ro,oo,co)}function jfe(ro,oo){var co,fo,po;ro.d==null?(++ro.e,--ro.f):(po=oo.ld(),co=oo.Bi(),fo=(co&q0)%ro.d.length,y7t(ro,fo,jot(ro,fo,co,po)))}function II(ro,oo){var co;co=(ro.Bb&bS)!=0,oo?ro.Bb|=bS:ro.Bb&=-1025,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,10,co,oo))}function NI(ro,oo){var co;co=(ro.Bb&nA)!=0,oo?ro.Bb|=nA:ro.Bb&=-4097,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,12,co,oo))}function MI(ro,oo){var co;co=(ro.Bb&Y2)!=0,oo?ro.Bb|=Y2:ro.Bb&=-8193,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,15,co,oo))}function LI(ro,oo){var co;co=(ro.Bb&cA)!=0,oo?ro.Bb|=cA:ro.Bb&=-2049,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,11,co,oo))}function DIt(ro){var oo;ro.g&&(oo=ro.c.kg()?ro.f:ro.a,D4e(oo.a,ro.o,!0),D4e(oo.a,ro.o,!1),Fl(ro.o,(ou(),Pp),(Im(),iC)))}function LIt(ro){var oo;if(!ro.a)throw Cs(new Lv("Cannot offset an unassigned cut."));oo=ro.c-ro.b,ro.b+=oo,NUe(ro,oo),IUe(ro,oo)}function BIt(ro,oo){var co;if(co=m1(ro.k,oo),co==null)throw Cs(new z_("Port did not exist in input."));return dEe(oo,co),null}function FIt(ro){var oo,co;for(co=Bot(zw(ro)).Kc();co.Ob();)if(oo=u0(co.Pb()),cB(ro,oo))return P9t((uze(),Pxt),oo);return null}function htt(ro){var oo,co;for(co=ro.p.a.ec().Kc();co.Ob();)if(oo=bo(co.Pb(),218),oo.f&&ro.b[oo.c]<-1e-10)return oo;return null}function PIt(ro){var oo,co;for(co=u3(new J4,91),oo=!0;ro.Ob();)oo||(co.a+=av),oo=!1,qy(co,ro.Pb());return(co.a+="]",co).a}function jIt(ro){var oo,co,fo;for(oo=new Zl,fo=new _s(ro.b);fo.aoo?1:ro==oo?ro==0?sp(1/ro,1/oo):0:isNaN(ro)?isNaN(oo)?0:1:-1}function HIt(ro){var oo;return oo=ro.a[ro.c-1&ro.a.length-1],oo==null?null:(ro.c=ro.c-1&ro.a.length-1,Np(ro.a,ro.c,null),oo)}function qIt(ro){var oo,co,fo;for(fo=0,co=ro.length,oo=0;oo=1?ey:A_):co}function UIt(ro){switch(bo(bs(ro,(ou(),M5)),223).g){case 1:return new KA;case 3:return new $re;default:return new Ere}}function w3(ro){if(ro.c)w3(ro.c);else if(ro.d)throw Cs(new Lv("Stream already terminated, can't be modified or used"))}function c6(ro,oo,co){var fo;return fo=ro.a.get(oo),ro.a.set(oo,co===void 0?null:co),fo===void 0?(++ro.c,++ro.b.g):++ro.d,fo}function KIt(ro,oo,co){var fo,po;for(po=ro.a.ec().Kc();po.Ob();)if(fo=bo(po.Pb(),10),iq(co,bo(cu(oo,fo.p),16)))return fo;return null}function tke(ro,oo,co){var fo;return fo=0,oo&&(f9(ro.a)?fo+=oo.f.a/2:fo+=oo.f.b/2),co&&(f9(ro.a)?fo+=co.f.a/2:fo+=co.f.b/2),fo}function YIt(ro,oo,co){var fo;fo=co,!fo&&(fo=xxe(new u8,0)),fo.Ug(Rut,2),wnt(ro.b,oo,fo.eh(1)),uUt(ro,oo,fo.eh(1)),hYt(oo,fo.eh(1)),fo.Vg()}function nke(ro,oo,co){var fo,po;return fo=(n3(),po=new vO,po),XX(fo,oo),YX(fo,co),ro&&Y1((!ro.a&&(ro.a=new Qp(tx,ro,5)),ro.a),fo),fo}function Hfe(ro){var oo;return ro.Db&64?gS(ro):(oo=new Bx(gS(ro)),oo.a+=" (identifier: ",Av(oo,ro.k),oo.a+=")",oo.a)}function qfe(ro,oo){var co;co=(ro.Bb&Cy)!=0,oo?ro.Bb|=Cy:ro.Bb&=-32769,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,18,co,oo))}function rke(ro,oo){var co;co=(ro.Bb&Cy)!=0,oo?ro.Bb|=Cy:ro.Bb&=-32769,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,18,co,oo))}function BI(ro,oo){var co;co=(ro.Bb&tE)!=0,oo?ro.Bb|=tE:ro.Bb&=-16385,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,16,co,oo))}function ike(ro,oo){var co;co=(ro.Bb&hv)!=0,oo?ro.Bb|=hv:ro.Bb&=-65537,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,20,co,oo))}function oke(ro){var oo;return oo=Al(Rx,nE,28,2,15,1),ro-=hv,oo[0]=(ro>>10)+aV&em,oo[1]=(ro&1023)+56320&em,zx(oo,0,oo.length)}function XIt(ro){var oo;return oo=G$(ro),oo>34028234663852886e22?Tp:oo<-34028234663852886e22?am:oo}function tv(ro,oo){var co;return ty(ro)&&ty(oo)&&(co=ro+oo,sV"+mT(oo.c):"e_"+dp(oo),ro.b&&ro.c?mT(ro.b)+"->"+mT(ro.c):"e_"+dp(ro))}function JIt(ro,oo){return Iu(oo.b&&oo.c?mT(oo.b)+"->"+mT(oo.c):"e_"+dp(oo),ro.b&&ro.c?mT(ro.b)+"->"+mT(ro.c):"e_"+dp(ro))}function u6(ro,oo){return s_(),hS(C3),lo.Math.abs(ro-oo)<=C3||ro==oo||isNaN(ro)&&isNaN(oo)?0:rooo?1:LC(isNaN(ro),isNaN(oo))}function S5(){S5=qo,Wve=new iY(SB,0),OG=new iY("POLYLINE",1),uM=new iY("ORTHOGONAL",2),HR=new iY("SPLINES",3)}function kQ(){kQ=qo,LOe=new jle("ASPECT_RATIO_DRIVEN",0),dve=new jle("MAX_SCALE_DRIVEN",1),DOe=new jle("AREA_DRIVEN",2)}function eNt(ro,oo,co){var fo;try{_Ot(ro,oo,co)}catch(po){throw po=$p(po),Hs(po,606)?(fo=po,Cs(new i_e(fo))):Cs(po)}return oo}function tNt(ro){var oo,co,fo;for(co=0,fo=ro.length;cooo&&fo.Ne(ro[vo-1],ro[vo])>0;--vo)xo=ro[vo],Np(ro,vo,ro[vo-1]),Np(ro,vo-1,xo)}function _u(ro,oo){var co,fo,po,vo,xo;if(co=oo.f,w4(ro.c.d,co,oo),oo.g!=null)for(po=oo.g,vo=0,xo=po.length;vooo){aYe(co);break}}xH(co,oo)}function oNt(ro,oo){var co,fo,po;fo=x9(oo),po=na(Tl(z$(fo,(ou(),_S)))),co=lo.Math.max(0,po/2-.5),YL(oo,co,1),Jl(ro,new Tze(oo,co))}function sNt(ro,oo,co){var fo;co.Ug("Straight Line Edge Routing",1),co.dh(oo,s6e),fo=bo(zl(oo,(b9(),E7)),27),ilt(ro,fo),co.dh(oo,mJ)}function ske(ro,oo){ro.n.c.length==0&&Jl(ro.n,new bX(ro.s,ro.t,ro.i)),Jl(ro.b,oo),jke(bo(cu(ro.n,ro.n.c.length-1),209),oo),jat(ro,oo)}function zL(ro){var oo;this.a=(oo=bo(ro.e&&ro.e(),9),new sx(oo,bo(cS(oo,oo.length),9),0)),this.b=Al(bm,Xu,1,this.a.a.length,5,1)}function ry(ro){var oo;return Array.isArray(ro)&&ro.Tm===Yo?aT(Nw(ro))+"@"+(oo=dp(ro)>>>0,oo.toString(16)):ro.toString()}function aNt(ro,oo){return ro.h==oV&&ro.m==0&&ro.l==0?(oo&&(N3=h2(0,0,0)),WHe((lI(),L$e))):(oo&&(N3=h2(ro.l,ro.m,ro.h)),h2(0,0,0))}function lNt(ro,oo){switch(oo.g){case 2:return ro.b;case 1:return ro.c;case 4:return ro.d;case 3:return ro.a;default:return!1}}function vtt(ro,oo){switch(oo.g){case 2:return ro.b;case 1:return ro.c;case 4:return ro.d;case 3:return ro.a;default:return!1}}function ake(ro,oo,co,fo){switch(oo){case 3:return ro.f;case 4:return ro.g;case 5:return ro.i;case 6:return ro.j}return JEe(ro,oo,co,fo)}function TQ(ro,oo){if(oo==ro.d)return ro.e;if(oo==ro.e)return ro.d;throw Cs(new i1("Node "+oo+" not part of edge "+ro))}function cNt(ro,oo){var co;if(co=jq(ro.Dh(),oo),Hs(co,102))return bo(co,19);throw Cs(new i1(I3+oo+"' is not a valid reference"))}function vx(ro,oo,co,fo){if(oo<0)T4e(ro,co,fo);else{if(!co.rk())throw Cs(new i1(I3+co.xe()+LB));bo(co,69).wk().Ck(ro,ro.hi(),oo,fo)}}function bw(ro){var oo;if(ro.b){if(bw(ro.b),ro.b.d!=ro.c)throw Cs(new rx)}else ro.d.dc()&&(oo=bo(ro.f.c.xc(ro.e),16),oo&&(ro.d=oo))}function uNt(ro){x$();var oo,co,fo,po;for(oo=ro.o.b,fo=bo(bo(Q0(ro.r,(nu(),z1)),21),87).Kc();fo.Ob();)co=bo(fo.Pb(),117),po=co.e,po.b+=oo}function fNt(ro){var oo,co,fo;for(this.a=new V_,fo=new _s(ro);fo.a=po)return oo.c+co;return oo.c+oo.b.gc()}function hNt(ro,oo){zO();var co,fo,po,vo;for(fo=kQe(ro),po=oo,sI(fo,0,fo.length,po),co=0;co0&&(fo+=po,++co);return co>1&&(fo+=ro.d*(co-1)),fo}function gNt(ro){var oo,co,fo,po,vo;return vo=k5e(ro),co=Nz(ro.c),fo=!co,fo&&(po=new Y5,WS(vo,"knownLayouters",po),oo=new rFe(po),Hm(ro.c,oo)),vo}function uke(ro){var oo,co,fo;for(fo=new Z5,fo.a+="[",oo=0,co=ro.gc();oo0&&(o1(oo-1,ro.length),ro.charCodeAt(oo-1)==58)&&!Wfe(ro,JF,eP))}function fke(ro,oo){var co;return $a(ro)===$a(oo)?!0:Hs(oo,92)?(co=bo(oo,92),ro.e==co.e&&ro.d==co.d&&H9t(ro,co.a)):!1}function Y8(ro){switch(nu(),ro.g){case 4:return s1;case 1:return p1;case 3:return z1;case 2:return l1;default:return gy}}function yNt(ro){var oo,co;if(ro.b)return ro.b;for(co=E_?null:ro.d;co;){if(oo=E_?null:co.b,oo)return oo;co=E_?null:co.d}return DO(),sAe}function dke(ro){var oo,co,fo;for(fo=na(Tl(ro.a.of(($0(),Hte)))),co=new _s(ro.a.Sf());co.a3?ao(so):to.score<3?lo(so):uo(so),io},drawCircle$1=function(eo,to){const no=eo.append("circle");return no.attr("cx",to.cx),no.attr("cy",to.cy),no.attr("class","actor-"+to.pos),no.attr("fill",to.fill),no.attr("stroke",to.stroke),no.attr("r",to.r),no.class!==void 0&&no.attr("class",no.class),to.title!==void 0&&no.append("title").text(to.title),no},drawText$1=function(eo,to){return drawText$4(eo,to)},drawLabel$1=function(eo,to){function no(so,ao,lo,uo,ho){return so+","+ao+" "+(so+lo)+","+ao+" "+(so+lo)+","+(ao+uo-ho)+" "+(so+lo-ho*1.2)+","+(ao+uo)+" "+so+","+(ao+uo)}const io=eo.append("polygon");io.attr("points",no(to.x,to.y,50,20,7)),io.attr("class","labelBox"),to.y=to.y+to.labelMargin,to.x=to.x+.5*to.labelMargin,drawText$1(eo,to)},drawSection$1=function(eo,to,no){const io=eo.append("g"),so=getNoteRect$2();so.x=to.x,so.y=to.y,so.fill=to.fill,so.width=no.width*to.taskCount+no.diagramMarginX*(to.taskCount-1),so.height=no.height,so.class="journey-section section-type-"+to.num,so.rx=3,so.ry=3,drawRect$1(io,so),_drawTextCandidateFunc$1(no)(to.text,io,so.x,so.y,so.width,so.height,{class:"journey-section section-type-"+to.num},no,to.colour)};let taskCount$1=-1;const drawTask$1=function(eo,to,no){const io=to.x+no.width/2,so=eo.append("g");taskCount$1++;const ao=300+5*30;so.append("line").attr("id","task"+taskCount$1).attr("x1",io).attr("y1",to.y).attr("x2",io).attr("y2",ao).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),drawFace$1(so,{cx:io,cy:300+(5-to.score)*30,score:to.score});const lo=getNoteRect$2();lo.x=to.x,lo.y=to.y,lo.fill=to.fill,lo.width=no.width,lo.height=no.height,lo.class="task task-type-"+to.num,lo.rx=3,lo.ry=3,drawRect$1(so,lo);let uo=to.x+14;to.people.forEach(ho=>{const go=to.actors[ho].color,mo={cx:uo,cy:to.y,r:7,fill:go,stroke:"#000",title:ho,pos:to.actors[ho].position};drawCircle$1(so,mo),uo+=10}),_drawTextCandidateFunc$1(no)(to.task,so,lo.x,lo.y,lo.width,lo.height,{class:"task"},no,to.colour)},drawBackgroundRect$1=function(eo,to){drawBackgroundRect$3(eo,to)},_drawTextCandidateFunc$1=function(){function eo(so,ao,lo,uo,ho,go,mo,yo){const So=ao.append("text").attr("x",lo+ho/2).attr("y",uo+go/2+5).style("font-color",yo).style("text-anchor","middle").text(so);io(So,mo)}function to(so,ao,lo,uo,ho,go,mo,yo,So){const{taskFontSize:_o,taskFontFamily:ko}=yo,Co=so.split(//gi);for(let $o=0;$o{const so=actors[io].color,ao={cx:20,cy:no,r:7,fill:so,stroke:"#000",pos:actors[io].position};svgDraw$1.drawCircle(eo,ao);const lo={x:40,y:no+7,fill:"#666",text:io,textMargin:to.boxTextMargin|5};svgDraw$1.drawText(eo,lo),no+=20})}const conf$1=getConfig$2().journey,LEFT_MARGIN=conf$1.leftMargin,draw$5=function(eo,to,no,io){const so=getConfig$2().journey,ao=getConfig$2().securityLevel;let lo;ao==="sandbox"&&(lo=select("#i"+to));const uo=select(ao==="sandbox"?lo.nodes()[0].contentDocument.body:"body");bounds$1.init();const ho=uo.select("#"+to);svgDraw$1.initGraphics(ho);const go=io.db.getTasks(),mo=io.db.getDiagramTitle(),yo=io.db.getActors();for(const Ro in actors)delete actors[Ro];let So=0;yo.forEach(Ro=>{actors[Ro]={color:so.actorColours[So%so.actorColours.length],position:So},So++}),drawActorLegend(ho),bounds$1.insert(0,0,LEFT_MARGIN,Object.keys(actors).length*50),drawTasks$1(ho,go,0);const _o=bounds$1.getBounds();mo&&ho.append("text").text(mo).attr("x",LEFT_MARGIN).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const ko=_o.stopy-_o.starty+2*so.diagramMarginY,Co=LEFT_MARGIN+_o.stopx+2*so.diagramMarginX;configureSvgSize(ho,ko,Co,so.useMaxWidth),ho.append("line").attr("x1",LEFT_MARGIN).attr("y1",so.height*4).attr("x2",Co-LEFT_MARGIN-4).attr("y2",so.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const $o=mo?70:0;ho.attr("viewBox",`${_o.startx} -25 ${Co} ${ko+$o}`),ho.attr("preserveAspectRatio","xMinYMin meet"),ho.attr("height",ko+$o+25)},bounds$1={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(eo,to,no,io){eo[to]===void 0?eo[to]=no:eo[to]=io(no,eo[to])},updateBounds:function(eo,to,no,io){const so=getConfig$2().journey,ao=this;let lo=0;function uo(ho){return function(mo){lo++;const yo=ao.sequenceItems.length-lo+1;ao.updateVal(mo,"starty",to-yo*so.boxMargin,Math.min),ao.updateVal(mo,"stopy",io+yo*so.boxMargin,Math.max),ao.updateVal(bounds$1.data,"startx",eo-yo*so.boxMargin,Math.min),ao.updateVal(bounds$1.data,"stopx",no+yo*so.boxMargin,Math.max),ho!=="activation"&&(ao.updateVal(mo,"startx",eo-yo*so.boxMargin,Math.min),ao.updateVal(mo,"stopx",no+yo*so.boxMargin,Math.max),ao.updateVal(bounds$1.data,"starty",to-yo*so.boxMargin,Math.min),ao.updateVal(bounds$1.data,"stopy",io+yo*so.boxMargin,Math.max))}}this.sequenceItems.forEach(uo())},insert:function(eo,to,no,io){const so=Math.min(eo,no),ao=Math.max(eo,no),lo=Math.min(to,io),uo=Math.max(to,io);this.updateVal(bounds$1.data,"startx",so,Math.min),this.updateVal(bounds$1.data,"starty",lo,Math.min),this.updateVal(bounds$1.data,"stopx",ao,Math.max),this.updateVal(bounds$1.data,"stopy",uo,Math.max),this.updateBounds(so,lo,ao,uo)},bumpVerticalPos:function(eo){this.verticalPos=this.verticalPos+eo,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},fills=conf$1.sectionFills,textColours=conf$1.sectionColours,drawTasks$1=function(eo,to,no){const io=getConfig$2().journey;let so="";const ao=io.height*2+io.diagramMarginY,lo=no+ao;let uo=0,ho="#CCC",go="black",mo=0;for(const[yo,So]of to.entries()){if(so!==So.section){ho=fills[uo%fills.length],mo=uo%fills.length,go=textColours[uo%textColours.length];let ko=0;const Co=So.section;for(let Ro=yo;Ro(actors[Co]&&(ko[Co]=actors[Co]),ko),{});So.x=yo*io.taskMargin+yo*io.width+LEFT_MARGIN,So.y=lo,So.width=io.diagramMarginX,So.height=io.diagramMarginY,So.colour=go,So.fill=ho,So.num=mo,So.actors=_o,svgDraw$1.drawTask(eo,So,io),bounds$1.insert(So.x,So.y,So.x+So.width+io.taskMargin,300+5*30)}},renderer$6={setConf,draw:draw$5},diagram$5={parser:parser$1$4,db:db$5,renderer:renderer$6,styles:styles$3,init:eo=>{renderer$6.setConf(eo.journey),db$5.clear()}},journeyDiagram4fe6b3dc=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$5},Symbol.toStringTag,{value:"Module"}));var elk_bundled={exports:{}};(function(eo,to){(function(no){eo.exports=no()})(function(){return function(){function no(io,so,ao){function lo(go,mo){if(!so[go]){if(!io[go]){var yo=typeof commonjsRequire$1=="function"&&commonjsRequire$1;if(!mo&&yo)return yo(go,!0);if(uo)return uo(go,!0);var So=new Error("Cannot find module '"+go+"'");throw So.code="MODULE_NOT_FOUND",So}var _o=so[go]={exports:{}};io[go][0].call(_o.exports,function(ko){var Co=io[go][1][ko];return lo(Co||ko)},_o,_o.exports,no,io,so,ao)}return so[go].exports}for(var uo=typeof commonjsRequire$1=="function"&&commonjsRequire$1,ho=0;ho0&&arguments[0]!==void 0?arguments[0]:{},So=yo.defaultLayoutOptions,_o=So===void 0?{}:So,ko=yo.algorithms,Co=ko===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:ko,$o=yo.workerFactory,Ro=yo.workerUrl;if(lo(this,go),this.defaultLayoutOptions=_o,this.initialized=!1,typeof Ro>"u"&&typeof $o>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Oo=$o;typeof Ro<"u"&&typeof $o>"u"&&(Oo=function(Bo){return new Worker(Bo)});var No=Oo(Ro);if(typeof No.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new ho(No),this.worker.postMessage({cmd:"register",algorithms:Co}).then(function(Mo){return mo.initialized=!0}).catch(console.err)}return ao(go,[{key:"layout",value:function(yo){var So=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_o=So.layoutOptions,ko=_o===void 0?this.defaultLayoutOptions:_o,Co=So.logging,$o=Co===void 0?!1:Co,Ro=So.measureExecutionTime,Oo=Ro===void 0?!1:Ro;return yo?this.worker.postMessage({cmd:"layout",graph:yo,layoutOptions:ko,options:{logging:$o,measureExecutionTime:Oo}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),go}();so.default=uo;var ho=function(){function go(mo){var yo=this;if(lo(this,go),mo===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=mo,this.worker.onmessage=function(So){setTimeout(function(){yo.receive(yo,So)},0)}}return ao(go,[{key:"postMessage",value:function(yo){var So=this.id||0;this.id=So+1,yo.id=So;var _o=this;return new Promise(function(ko,Co){_o.resolvers[So]=function($o,Ro){$o?(_o.convertGwtStyleError($o),Co($o)):ko(Ro)},_o.worker.postMessage(yo)})}},{key:"receive",value:function(yo,So){var _o=So.data,ko=yo.resolvers[_o.id];ko&&(delete yo.resolvers[_o.id],_o.error?ko(_o.error):ko(null,_o.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(yo){if(yo){var So=yo.__java$exception;So&&(So.cause&&So.cause.backingJsObject&&(yo.cause=So.cause.backingJsObject,this.convertGwtStyleError(yo.cause)),delete yo.__java$exception)}}}]),go}()},{}],2:[function(no,io,so){(function(ao){(function(){var lo;typeof window<"u"?lo=window:typeof ao<"u"?lo=ao:typeof self<"u"&&(lo=self);var uo;function ho(){}function go(){}function mo(){}function yo(){}function So(){}function _o(){}function ko(){}function Co(){}function $o(){}function Ro(){}function Oo(){}function No(){}function Mo(){}function Bo(){}function Fo(){}function Lo(){}function Go(){}function Do(){}function Uo(){}function Ho(){}function Yo(){}function qo(){}function Jo(){}function ps(){}function Qo(){}function hs(){}function gs(){}function ys(){}function vs(){}function ks(){}function Os(){}function Ts(){}function Xs(){}function Ws(){}function Ps(){}function qs(){}function ga(){}function Fs(){}function Js(){}function Vs(){}function El(){}function yl(){}function Gl(){}function Qs(){}function du(){}function Ol(){}function Fu(){}function ju(){}function F1(){}function y1(){}function r1(){}function $u(){}function Kl(){}function Is(){}function Ks(){}function Bs(){}function Ds(){}function Zs(){}function Cl(){}function ba(){}function fu(){}function Lu(){}function e1(){}function Gu(){}function w1(){}function Zu(){}function L1(){}function K1(){}function yp(){}function wp(){}function j0(){}function h0(){}function cp(){}function k0(){}function ap(){}function x0(){}function b0(){}function P1(){}function c1(){}function V0(){}function P0(){}function up(){}function Lp(){}function Mv(){}function $v(){}function Gv(){}function C1(){}function Ll(){}function Ul(){}function _l(){}function $l(){}function Us(){}function Rl(){}function Sl(){}function eu(){}function _c(){}function zu(){}function N1(){}function K0(){}function J0(){}function S1(){}function O1(){}function r0(){}function I1(){}function R0(){}function tu(){}function T2(){}function hu(){}function Z2(){}function r_(){}function G4(){}function bE(){}function hw(){}function Ay(){}function NS(){}function i_(){}function JE(){}function _k(){}function W4(){}function B2(){}function DS(){}function Tw(){}function yE(){}function LS(){}function U4(){}function D_(){}function K4(){}function cC(){}function uC(){}function BS(){}function q7(){}function V7(){}function fC(){}function t$(){}function dP(){}function vM(){}function hP(){}function ZR(){}function pP(){}function gP(){}function VA(){}function mP(){}function dC(){}function JR(){}function A0(){}function Y0(){}function Rm(){}function wm(){}function jp(){}function im(){}function i2(){}function f2(){}function Ox(){}function P5(){}function hC(){}function vP(){}function G7(){}function eO(){}function Ix(){}function bP(){}function GA(){}function ZG(){}function yP(){}function j5(){}function JG(){}function eW(){}function tW(){}function nW(){}function rW(){}function iW(){}function t5(){}function bne(){}function z5(){}function yne(){}function oW(){}function n$(){}function bM(){}function wP(){}function J2(){}function r$(){}function xP(){}function wne(){}function SP(){}function xne(){}function Sne(){}function _ne(){}function sW(){}function yM(){}function W7(){}function Ene(){}function aW(){}function lW(){}function _P(){}function EP(){}function cW(){}function kne(){}function kP(){}function TP(){}function Tne(){}function uW(){}function n5(){}function CP(){}function tO(){}function fW(){}function dW(){}function Cne(){}function $ne(){}function Ane(){}function Rne(){}function One(){}function U7(){}function Ine(){}function Nne(){}function $P(){}function hW(){}function i$(){}function wM(){}function Mne(){}function Dne(){}function Lne(){}function K7(){}function Y4(){}function pW(){}function Bne(){}function Fne(){}function Pne(){}function jne(){}function zne(){}function Y7(){}function Bu(){}function $1(){}function h1(){}function _p(){}function Wm(){}function Ry(){}function Nx(){}function d2(){}function AP(){}function Hne(){}function H5(){}function xM(){}function qne(){}function X7(){}function SM(){}function nO(){}function Hy(){}function Vne(){}function gW(){}function _M(){}function Gne(){}function Wne(){}function Une(){}function EM(){}function o$(){}function kM(){}function mW(){}function TM(){}function vW(){}function bW(){}function CM(){}function yW(){}function rO(){}function WA(){}function $M(){}function Kne(){}function Yne(){}function Xne(){}function AM(){}function RM(){}function RP(){}function Qne(){}function wW(){}function Zne(){}function Jne(){}function Mx(){}function o_(){}function ere(){}function tre(){}function xW(){}function nre(){}function OP(){}function iO(){}function IP(){}function Q7(){}function oO(){}function sO(){}function OM(){}function Z7(){}function rre(){}function ire(){}function ore(){}function sre(){}function are(){}function IM(){}function aO(){}function SW(){}function Il(){}function J7(){}function NM(){}function q5(){}function Wv(){}function lre(){}function cre(){}function ure(){}function UA(){}function fre(){}function dre(){}function hre(){}function pre(){}function gre(){}function pC(){}function mre(){}function vre(){}function bre(){}function yre(){}function wre(){}function gC(){}function xre(){}function _W(){}function Sre(){}function _re(){}function Ere(){}function KA(){}function kre(){}function Tre(){}function X4(){}function Cre(){}function $re(){}function Are(){}function EW(){}function Rre(){}function kW(){}function TW(){}function Ore(){}function Ire(){}function NP(){}function e8(){}function lO(){}function Nre(){}function MP(){}function CW(){}function mC(){}function DP(){}function YA(){}function V5(){}function Mre(){}function $W(){}function AW(){}function cO(){}function s$(){}function RW(){}function Dre(){}function uO(){}function Lre(){}function OW(){}function FS(){}function LP(){}function IW(){}function rT(){}function BP(){}function MM(){}function XA(){}function NW(){}function L_(){}function FP(){}function Bre(){}function Fre(){}function Pre(){}function PP(){}function jre(){}function fO(){}function MW(){}function zre(){}function Hre(){}function dO(){}function qre(){}function Vre(){}function jP(){}function DW(){}function Gre(){}function Wre(){}function Ure(){}function LW(){}function zP(){}function Kre(){}function HP(){}function BW(){}function FW(){}function PW(){}function DM(){}function Yre(){}function jW(){}function zW(){}function Xre(){}function HW(){}function Qre(){}function qP(){}function qW(){}function VP(){}function Zre(){}function GP(){}function yv(){}function Jre(){}function eie(){}function hO(){}function VW(){}function tie(){}function nie(){}function G5(){}function rie(){}function LM(){}function WP(){}function GW(){}function WW(){}function r5(){}function a$(){}function UP(){}function UW(){}function BM(){}function KW(){}function KP(){}function YW(){}function YP(){}function XP(){}function l$(){}function iie(){}function c$(){}function XW(){}function QW(){}function QP(){}function oie(){}function sie(){}function aie(){}function ZW(){}function JW(){}function lie(){}function eU(){}function tU(){}function wE(){}function vC(){}function cie(){}function uie(){}function FM(){}function t8(){}function nU(){}function rU(){}function fie(){}function iU(){}function n8(){}function pO(){}function die(){}function oU(){}function sU(){}function PM(){}function aU(){}function jM(){}function ZP(){}function zM(){}function hie(){}function lU(){}function HM(){}function cU(){}function JP(){}function gie(){}function uU(){}function bC(){}function fU(){}function qM(){}function _j(){}function dU(){}function $j(){}function mie(){}function yC(){}function ez(){}function tz(){}function nz(){}function VM(){}function r8(){}function gm(){}function GM(){}function rz(){}function u$(){}function vie(){}function iz(){}function hU(){}function B_(){}function bie(){}function yie(){}function pU(){}function wie(){}function gU(){}function xie(){}function Sie(){}function W5(){}function wC(){}function Cw(){}function WM(){}function _ie(){}function oz(){}function Eie(){}function kie(){}function gO(){}function mU(){}function vU(){}function Tie(){}function Cie(){}function $ie(){}function Aie(){}function bU(){}function yU(){}function Rie(){}function sz(){}function wU(){}function mO(){}function az(){}function xU(){}function pu(){}function UM(){}function SU(){}function iT(){}function QA(){}function Oie(){}function _U(){}function Iie(){}function Nie(){}function Mie(){}function Die(){}function Lie(){}function Bie(){}function Fie(){}function lz(){}function Pie(){}function jie(){}function zie(){}function vO(){}function EU(){}function KM(){}function YM(){}function Hie(){}function kU(){}function TU(){}function qie(){}function Vie(){}function Gie(){}function Wie(){}function Uie(){}function XM(){}function U5(){}function Kie(){}function QM(){}function Yie(){}function bO(){}function Xie(){}function CU(){}function Qie(){}function cz(){}function ZM(){}function Zie(){}function Jie(){}function eoe(){}function toe(){}function mbe(){}function noe(){}function roe(){}function ioe(){}function ooe(){}function soe(){}function aoe(){}function loe(){}function coe(){}function uoe(){}function foe(){}function ZA(){}function uz(){}function doe(){}function hoe(){}function poe(){}function fz(){}function $U(){}function goe(){}function moe(){}function voe(){}function boe(){}function yoe(){}function woe(){}function xoe(){}function Soe(){}function AU(){}function _oe(){}function JM(){}function Eoe(){}function koe(){}function Toe(){}function Coe(){}function $oe(){}function Aoe(){}function Roe(){}function Ooe(){}function Ioe(){}function Noe(){}function Moe(){}function Doe(){}function Loe(){}function Boe(){}function Foe(){}function Poe(){}function RU(){}function OU(){}function joe(){}function zoe(){}function Hoe(){}function qoe(){}function eD(){}function Voe(){}function Goe(){}function Woe(){}function Uoe(){}function Koe(){}function Yoe(){}function Xoe(){}function Qoe(){}function Zoe(){}function Joe(){}function ese(){}function tD(){}function tse(){}function IU(){}function NU(){}function dz(){}function MU(){}function DU(){}function LU(){}function BU(){}function nse(){}function rse(){}function ise(){}function nD(){}function rD(){}function ose(){}function sse(){}function hz(){}function FU(){}function ase(){}function lse(){}function cse(){}function use(){}function fse(){}function dse(){}function hse(){}function pse(){}function gse(){}function mse(){}function vse(){}function bse(){}function Q4(){}function yse(){}function wse(){}function JA(){}function Zm(){}function xse(){}function xE(){}function Lw(){}function Sse(){}function f$(){}function _se(){}function Ese(){}function kse(){}function Tse(){}function Cse(){}function pz(){}function $se(){}function xC(){}function PU(){}function iD(){}function pw(){}function gw(){}function jU(){}function Ase(){}function gz(){bD()}function Rse(){Fz()}function Ose(){XQ()}function Ise(){Ife()}function Nse(){VL()}function zU(){L5e()}function yO(){vS()}function mz(){Wke()}function Mse(){kq()}function HU(){Pz()}function oD(){hH()}function i5(){ize()}function i8(){G8()}function Dse(){IXe()}function Lse(){G_e()}function Bse(){wKe()}function Fse(){W_e()}function Pse(){cQe()}function qU(){yKe()}function SC(){$I()}function uv(){WZe()}function VU(){GZe()}function K5(){gYe()}function GU(){UZe()}function jse(){E3()}function By(){BK()}function zse(){D3e()}function WU(){ou()}function sD(){KZe()}function Hse(){xJe()}function qse(){xKe()}function Vse(){Znt()}function Gse(){SKe()}function Wse(){gat()}function Use(){h4e()}function Kse(){y5()}function Yse(){ftt()}function Xse(){by()}function Qse(){OKe()}function Zse(){V8()}function Jse(){Y4e()}function eae(){k3()}function vz(){X4e()}function tae(){y_()}function bz(){Rq()}function nae(){ihe()}function rae(){hde()}function Dx(){aGe()}function rS(){LX()}function SE(){nZ()}function UU(){$0()}function iae(){bQ()}function oae(){Ske()}function yz(){hfe()}function KU(){EZ()}function sae(){a3e()}function YU(ro){u1(ro)}function XU(ro){this.a=ro}function aD(ro){this.a=ro}function aae(ro){this.a=ro}function lae(ro){this.a=ro}function QU(ro){this.a=ro}function ZU(ro){this.a=ro}function cae(ro){this.a=ro}function uae(ro){this.a=ro}function JU(ro){this.a=ro}function eK(ro){this.a=ro}function o8(ro){this.a=ro}function fae(ro){this.a=ro}function wz(ro){this.a=ro}function dae(ro){this.a=ro}function hae(ro){this.a=ro}function xz(ro){this.a=ro}function lD(ro){this.a=ro}function tK(ro){this.a=ro}function Sz(ro){this.a=ro}function pae(ro){this.a=ro}function gae(ro){this.a=ro}function mae(ro){this.a=ro}function nK(ro){this.b=ro}function vae(ro){this.c=ro}function bae(ro){this.a=ro}function yae(ro){this.a=ro}function wae(ro){this.a=ro}function xae(ro){this.a=ro}function Sae(ro){this.a=ro}function _ae(ro){this.a=ro}function Eae(ro){this.a=ro}function kae(ro){this.a=ro}function Tae(ro){this.a=ro}function Cae(ro){this.a=ro}function $ae(ro){this.a=ro}function Aae(ro){this.a=ro}function Rae(ro){this.a=ro}function rK(ro){this.a=ro}function iK(ro){this.a=ro}function cD(ro){this.a=ro}function wO(ro){this.a=ro}function Y5(){this.a=[]}function Oae(ro,oo){ro.a=oo}function oK(ro,oo){ro.a=oo}function Iae(ro,oo){ro.b=oo}function Nae(ro,oo){ro.b=oo}function vbe(ro,oo){ro.b=oo}function sK(ro,oo){ro.j=oo}function bbe(ro,oo){ro.g=oo}function aK(ro,oo){ro.i=oo}function ybe(ro,oo){ro.c=oo}function wbe(ro,oo){ro.c=oo}function xbe(ro,oo){ro.d=oo}function o5(ro,oo){ro.d=oo}function _E(ro,oo){ro.k=oo}function Sbe(ro,oo){ro.c=oo}function lK(ro,oo){ro.c=oo}function cK(ro,oo){ro.a=oo}function _be(ro,oo){ro.a=oo}function uK(ro,oo){ro.f=oo}function Ebe(ro,oo){ro.a=oo}function fK(ro,oo){ro.b=oo}function _z(ro,oo){ro.d=oo}function uD(ro,oo){ro.i=oo}function dK(ro,oo){ro.o=oo}function kbe(ro,oo){ro.r=oo}function Mae(ro,oo){ro.a=oo}function Tbe(ro,oo){ro.b=oo}function Dae(ro,oo){ro.e=oo}function Cbe(ro,oo){ro.f=oo}function fD(ro,oo){ro.g=oo}function hK(ro,oo){ro.e=oo}function $be(ro,oo){ro.f=oo}function Abe(ro,oo){ro.f=oo}function Ez(ro,oo){ro.a=oo}function kz(ro,oo){ro.b=oo}function Rbe(ro,oo){ro.n=oo}function Obe(ro,oo){ro.a=oo}function Ibe(ro,oo){ro.c=oo}function Nbe(ro,oo){ro.c=oo}function Mbe(ro,oo){ro.c=oo}function Dbe(ro,oo){ro.a=oo}function Lbe(ro,oo){ro.a=oo}function Bbe(ro,oo){ro.d=oo}function Fbe(ro,oo){ro.d=oo}function Pbe(ro,oo){ro.e=oo}function jbe(ro,oo){ro.e=oo}function zbe(ro,oo){ro.g=oo}function Hbe(ro,oo){ro.f=oo}function qbe(ro,oo){ro.j=oo}function Vbe(ro,oo){ro.a=oo}function Gbe(ro,oo){ro.a=oo}function Wbe(ro,oo){ro.b=oo}function jo(ro){ro.b=ro.a}function Ko(ro){ro.c=ro.d.d}function xs(ro){this.a=ro}function Ms(ro){this.a=ro}function xa(ro){this.a=ro}function Dl(ro){this.a=ro}function su(ro){this.a=ro}function Cu(ro){this.a=ro}function Vu(ro){this.a=ro}function B1(ro){this.a=ro}function M1(ro){this.a=ro}function Z1(ro){this.a=ro}function L0(ro){this.a=ro}function pp(ro){this.a=ro}function xm(ro){this.a=ro}function mv(ro){this.a=ro}function um(ro){this.b=ro}function Jm(ro){this.b=ro}function fv(ro){this.b=ro}function F_(ro){this.a=ro}function P_(ro){this.a=ro}function j_(ro){this.c=ro}function _s(ro){this.c=ro}function Z4(ro){this.c=ro}function EE(ro){this.d=ro}function Tz(ro){this.a=ro}function o0(ro){this.a=ro}function rDe(ro){this.a=ro}function Ube(ro){this.a=ro}function Kbe(ro){this.a=ro}function Ybe(ro){this.a=ro}function Xbe(ro){this.a=ro}function Qbe(ro){this.a=ro}function Zbe(ro){this.a=ro}function xO(ro){this.a=ro}function iDe(ro){this.a=ro}function oDe(ro){this.a=ro}function SO(ro){this.a=ro}function sDe(ro){this.a=ro}function aDe(ro){this.a=ro}function lDe(ro){this.a=ro}function cDe(ro){this.a=ro}function uDe(ro){this.a=ro}function fDe(ro){this.a=ro}function dDe(ro){this.a=ro}function hDe(ro){this.a=ro}function pDe(ro){this.a=ro}function gDe(ro){this.a=ro}function mDe(ro){this.a=ro}function vDe(ro){this.a=ro}function bDe(ro){this.a=ro}function yDe(ro){this.a=ro}function wDe(ro){this.a=ro}function dD(ro){this.a=ro}function xDe(ro){this.a=ro}function SDe(ro){this.a=ro}function _De(ro){this.a=ro}function EDe(ro){this.a=ro}function pK(ro){this.a=ro}function kDe(ro){this.a=ro}function TDe(ro){this.a=ro}function _O(ro){this.a=ro}function Jbe(ro){this.a=ro}function CDe(ro){this.a=ro}function $De(ro){this.a=ro}function ADe(ro){this.a=ro}function RDe(ro){this.a=ro}function ODe(ro){this.a=ro}function IDe(ro){this.a=ro}function eye(ro){this.a=ro}function tye(ro){this.a=ro}function nye(ro){this.a=ro}function hD(ro){this.a=ro}function gK(ro){this.e=ro}function EO(ro){this.a=ro}function NDe(ro){this.a=ro}function s8(ro){this.a=ro}function rye(ro){this.a=ro}function MDe(ro){this.a=ro}function DDe(ro){this.a=ro}function LDe(ro){this.a=ro}function BDe(ro){this.a=ro}function FDe(ro){this.a=ro}function PDe(ro){this.a=ro}function jDe(ro){this.a=ro}function zDe(ro){this.a=ro}function HDe(ro){this.a=ro}function qDe(ro){this.a=ro}function VDe(ro){this.a=ro}function iye(ro){this.a=ro}function GDe(ro){this.a=ro}function WDe(ro){this.a=ro}function UDe(ro){this.a=ro}function KDe(ro){this.a=ro}function YDe(ro){this.a=ro}function XDe(ro){this.a=ro}function QDe(ro){this.a=ro}function ZDe(ro){this.a=ro}function JDe(ro){this.a=ro}function eLe(ro){this.a=ro}function tLe(ro){this.a=ro}function nLe(ro){this.a=ro}function rLe(ro){this.a=ro}function iLe(ro){this.a=ro}function oLe(ro){this.a=ro}function sLe(ro){this.a=ro}function aLe(ro){this.a=ro}function lLe(ro){this.a=ro}function cLe(ro){this.a=ro}function uLe(ro){this.a=ro}function fLe(ro){this.a=ro}function dLe(ro){this.a=ro}function hLe(ro){this.a=ro}function pLe(ro){this.a=ro}function gLe(ro){this.a=ro}function mLe(ro){this.a=ro}function vLe(ro){this.a=ro}function bLe(ro){this.a=ro}function yLe(ro){this.a=ro}function wLe(ro){this.a=ro}function xLe(ro){this.a=ro}function SLe(ro){this.a=ro}function _Le(ro){this.a=ro}function ELe(ro){this.a=ro}function kLe(ro){this.a=ro}function TLe(ro){this.a=ro}function CLe(ro){this.a=ro}function $Le(ro){this.a=ro}function ALe(ro){this.c=ro}function RLe(ro){this.b=ro}function OLe(ro){this.a=ro}function ILe(ro){this.a=ro}function NLe(ro){this.a=ro}function MLe(ro){this.a=ro}function DLe(ro){this.a=ro}function LLe(ro){this.a=ro}function BLe(ro){this.a=ro}function FLe(ro){this.a=ro}function PLe(ro){this.a=ro}function jLe(ro){this.a=ro}function zLe(ro){this.a=ro}function HLe(ro){this.a=ro}function qLe(ro){this.a=ro}function VLe(ro){this.a=ro}function GLe(ro){this.a=ro}function WLe(ro){this.a=ro}function ULe(ro){this.a=ro}function KLe(ro){this.a=ro}function YLe(ro){this.a=ro}function XLe(ro){this.a=ro}function QLe(ro){this.a=ro}function ZLe(ro){this.a=ro}function JLe(ro){this.a=ro}function eBe(ro){this.a=ro}function tBe(ro){this.a=ro}function nBe(ro){this.a=ro}function rBe(ro){this.a=ro}function s5(ro){this.a=ro}function e9(ro){this.a=ro}function iBe(ro){this.a=ro}function oBe(ro){this.a=ro}function sBe(ro){this.a=ro}function aBe(ro){this.a=ro}function lBe(ro){this.a=ro}function cBe(ro){this.a=ro}function uBe(ro){this.a=ro}function fBe(ro){this.a=ro}function dBe(ro){this.a=ro}function hBe(ro){this.a=ro}function pBe(ro){this.a=ro}function gBe(ro){this.a=ro}function mBe(ro){this.a=ro}function vBe(ro){this.a=ro}function bBe(ro){this.a=ro}function yBe(ro){this.a=ro}function wBe(ro){this.a=ro}function xBe(ro){this.a=ro}function SBe(ro){this.a=ro}function _Be(ro){this.a=ro}function EBe(ro){this.a=ro}function kBe(ro){this.a=ro}function TBe(ro){this.a=ro}function CBe(ro){this.a=ro}function $Be(ro){this.a=ro}function ABe(ro){this.a=ro}function mK(ro){this.a=ro}function RBe(ro){this.f=ro}function OBe(ro){this.a=ro}function IBe(ro){this.a=ro}function NBe(ro){this.a=ro}function MBe(ro){this.a=ro}function DBe(ro){this.a=ro}function LBe(ro){this.a=ro}function BBe(ro){this.a=ro}function FBe(ro){this.a=ro}function PBe(ro){this.a=ro}function jBe(ro){this.a=ro}function zBe(ro){this.a=ro}function HBe(ro){this.a=ro}function qBe(ro){this.a=ro}function VBe(ro){this.a=ro}function GBe(ro){this.a=ro}function WBe(ro){this.a=ro}function UBe(ro){this.a=ro}function KBe(ro){this.a=ro}function YBe(ro){this.a=ro}function XBe(ro){this.a=ro}function QBe(ro){this.a=ro}function ZBe(ro){this.a=ro}function JBe(ro){this.a=ro}function eFe(ro){this.a=ro}function tFe(ro){this.a=ro}function nFe(ro){this.a=ro}function rFe(ro){this.a=ro}function iFe(ro){this.a=ro}function Lae(ro){this.a=ro}function oye(ro){this.a=ro}function np(ro){this.b=ro}function oFe(ro){this.a=ro}function sFe(ro){this.a=ro}function aFe(ro){this.a=ro}function lFe(ro){this.a=ro}function cFe(ro){this.a=ro}function uFe(ro){this.a=ro}function fFe(ro){this.a=ro}function dFe(ro){this.b=ro}function hFe(ro){this.a=ro}function Cz(ro){this.a=ro}function pFe(ro){this.a=ro}function gFe(ro){this.a=ro}function sye(ro){this.c=ro}function vK(ro){this.e=ro}function bK(ro){this.a=ro}function yK(ro){this.a=ro}function Bae(ro){this.a=ro}function mFe(ro){this.d=ro}function vFe(ro){this.a=ro}function aye(ro){this.a=ro}function lye(ro){this.a=ro}function _C(ro){this.e=ro}function jSt(){this.a=0}function H1(){nw(this)}function Zl(){Qle(this)}function Fae(){eUe(this)}function bFe(){}function EC(){this.c=mMe}function yFe(ro,oo){ro.b+=oo}function zSt(ro,oo){oo.Wb(ro)}function HSt(ro){return ro.a}function qSt(ro){return ro.a}function VSt(ro){return ro.a}function GSt(ro){return ro.a}function WSt(ro){return ro.a}function Cs(ro){return ro.e}function USt(){return null}function KSt(){return null}function YSt(){Uye(),AYt()}function XSt(ro){ro.b.Of(ro.e)}function wFe(ro){ro.b=new ile}function pD(ro,oo){ro.b=oo-ro.b}function gD(ro,oo){ro.a=oo-ro.a}function Ju(ro,oo){ro.push(oo)}function xFe(ro,oo){ro.sort(oo)}function SFe(ro,oo){oo.jd(ro.a)}function QSt(ro,oo){hm(oo,ro)}function ZSt(ro,oo,co){ro.Yd(co,oo)}function $z(ro,oo){ro.e=oo,oo.b=ro}function cye(ro){U_(),this.a=ro}function _Fe(ro){U_(),this.a=ro}function EFe(ro){U_(),this.a=ro}function Pae(ro){WC(),this.a=ro}function kFe(ro){eI(),Ape.le(ro)}function uye(){uye=qo,new H1}function oT(){Vqe.call(this)}function fye(){Vqe.call(this)}function dye(){oT.call(this)}function jae(){oT.call(this)}function TFe(){oT.call(this)}function Az(){oT.call(this)}function F2(){oT.call(this)}function a8(){oT.call(this)}function l0(){oT.call(this)}function rx(){oT.call(this)}function CFe(){oT.call(this)}function ay(){oT.call(this)}function $Fe(){oT.call(this)}function AFe(){this.a=this}function wK(){this.Bb|=256}function RFe(){this.b=new BHe}function d$(ro,oo){ro.length=oo}function xK(ro,oo){Jl(ro.a,oo)}function JSt(ro,oo){F5e(ro.c,oo)}function e_t(ro,oo){om(ro.b,oo)}function t_t(ro,oo){VQ(ro.a,oo)}function n_t(ro,oo){jfe(ro.a,oo)}function kO(ro,oo){W0(ro.e,oo)}function l8(ro){sZ(ro.c,ro.b)}function r_t(ro,oo){ro.kc().Nb(oo)}function hye(ro){this.a=XIt(ro)}function Yp(){this.a=new H1}function OFe(){this.a=new H1}function pye(){this.a=new Xje}function SK(){this.a=new Zl}function zae(){this.a=new Zl}function gye(){this.a=new Zl}function Lx(){this.a=new wp}function sT(){this.a=new TXe}function mye(){this.a=new i_}function vye(){this.a=new bKe}function bye(){this.a=new RVe}function IFe(){this.a=new Zl}function NFe(){this.a=new Zl}function MFe(){this.a=new Zl}function yye(){this.a=new Zl}function DFe(){this.d=new Zl}function LFe(){this.a=new FKe}function BFe(){this.a=new Yp}function FFe(){this.a=new H1}function PFe(){this.b=new H1}function jFe(){this.b=new Zl}function wye(){this.e=new Zl}function zFe(){this.a=new jse}function HFe(){this.d=new Zl}function qFe(){qUe.call(this)}function VFe(){qUe.call(this)}function GFe(){Zl.call(this)}function xye(){dye.call(this)}function Sye(){SK.call(this)}function WFe(){CY.call(this)}function UFe(){yye.call(this)}function mD(){bFe.call(this)}function Hae(){mD.call(this)}function c8(){bFe.call(this)}function _ye(){c8.call(this)}function KFe(){Cye.call(this)}function YFe(){Cye.call(this)}function XFe(){Cye.call(this)}function QFe(){$ye.call(this)}function vD(){EU.call(this)}function Eye(){EU.call(this)}function P2(){xp.call(this)}function ZFe(){hPe.call(this)}function JFe(){hPe.call(this)}function ePe(){H1.call(this)}function tPe(){H1.call(this)}function nPe(){H1.call(this)}function qae(){QZe.call(this)}function rPe(){Yp.call(this)}function iPe(){wK.call(this)}function Vae(){awe.call(this)}function kye(){H1.call(this)}function Gae(){awe.call(this)}function Wae(){H1.call(this)}function oPe(){H1.call(this)}function Tye(){bO.call(this)}function sPe(){Tye.call(this)}function aPe(){bO.call(this)}function lPe(){gw.call(this)}function Cye(){this.a=new Yp}function cPe(){this.a=new H1}function uPe(){this.a=new Zl}function $ye(){this.a=new H1}function u8(){this.a=new xp}function fPe(){this.j=new Zl}function dPe(){this.a=new uje}function hPe(){this.a=new Yie}function Aye(){this.a=new cU}function bD(){bD=qo,xpe=new go}function Uae(){Uae=qo,Spe=new gPe}function Kae(){Kae=qo,_pe=new pPe}function pPe(){xz.call(this,"")}function gPe(){xz.call(this,"")}function mPe(ro){wZe.call(this,ro)}function vPe(ro){wZe.call(this,ro)}function Rye(ro){JU.call(this,ro)}function Oye(ro){Pje.call(this,ro)}function i_t(ro){Pje.call(this,ro)}function o_t(ro){Oye.call(this,ro)}function s_t(ro){Oye.call(this,ro)}function a_t(ro){Oye.call(this,ro)}function bPe(ro){Cue.call(this,ro)}function yPe(ro){Cue.call(this,ro)}function wPe(ro){ZVe.call(this,ro)}function xPe(ro){e2e.call(this,ro)}function yD(ro){NK.call(this,ro)}function Iye(ro){NK.call(this,ro)}function SPe(ro){NK.call(this,ro)}function Nye(ro){RFt.call(this,ro)}function Mye(ro){Nye.call(this,ro)}function ly(ro){yWe.call(this,ro)}function _Pe(ro){ly.call(this,ro)}function f8(){wO.call(this,{})}function EPe(){EPe=qo,p1t=new Ho}function _K(){_K=qo,Tpe=new wqe}function kPe(){kPe=qo,I$e=new ho}function Dye(){Dye=qo,N$e=new Bo}function EK(){EK=qo,KB=new Go}function Yae(ro){BO(),this.a=ro}function Xae(ro){cEe(),this.a=ro}function kC(ro){Mce(),this.f=ro}function Qae(ro){Mce(),this.f=ro}function TPe(ro){sGe(),this.a=ro}function CPe(ro){ro.b=null,ro.c=0}function l_t(ro,oo){ro.e=oo,gst(ro,oo)}function c_t(ro,oo){ro.a=oo,vPt(ro)}function Zae(ro,oo,co){ro.a[oo.g]=co}function u_t(ro,oo,co){ILt(co,ro,oo)}function f_t(ro,oo){s4t(oo.i,ro.n)}function $Pe(ro,oo){OOt(ro).Cd(oo)}function d_t(ro,oo){ro.a.ec().Mc(oo)}function APe(ro,oo){return ro.g-oo.g}function h_t(ro,oo){return ro*ro/oo}function lu(ro){return u1(ro),ro}function na(ro){return u1(ro),ro}function Rz(ro){return u1(ro),ro}function p_t(ro){return new cD(ro)}function g_t(ro){return new T$(ro)}function Lye(ro){return u1(ro),ro}function m_t(ro){return u1(ro),ro}function kK(ro){ly.call(this,ro)}function Dv(ro){ly.call(this,ro)}function RPe(ro){ly.call(this,ro)}function Jae(ro){yWe.call(this,ro)}function TO(ro){ly.call(this,ro)}function i1(ro){ly.call(this,ro)}function Lv(ro){ly.call(this,ro)}function OPe(ro){ly.call(this,ro)}function d8(ro){ly.call(this,ro)}function X5(ro){ly.call(this,ro)}function Q5(ro){ly.call(this,ro)}function h8(ro){ly.call(this,ro)}function z_(ro){ly.call(this,ro)}function ele(ro){ly.call(this,ro)}function p0(ro){ly.call(this,ro)}function ew(ro){u1(ro),this.a=ro}function Bye(ro){return kT(ro),ro}function wD(ro){Yxe(ro,ro.length)}function xD(ro){return ro.b==ro.c}function h$(ro){return!!ro&&ro.b}function v_t(ro){return!!ro&&ro.k}function b_t(ro){return!!ro&&ro.j}function y_t(ro,oo,co){ro.c.Ef(oo,co)}function IPe(ro,oo){ro.be(oo),oo.ae(ro)}function p8(ro){U_(),this.a=a0(ro)}function tle(){this.a=u0(a0(av))}function NPe(){throw Cs(new l0)}function w_t(){throw Cs(new l0)}function Fye(){throw Cs(new l0)}function MPe(){throw Cs(new l0)}function x_t(){throw Cs(new l0)}function S_t(){throw Cs(new l0)}function TK(){TK=qo,eI()}function Z5(){Cu.call(this,"")}function SD(){Cu.call(this,"")}function J4(){Cu.call(this,"")}function t9(){Cu.call(this,"")}function Pye(ro){Dv.call(this,ro)}function jye(ro){Dv.call(this,ro)}function H_(ro){i1.call(this,ro)}function CO(ro){fv.call(this,ro)}function DPe(ro){CO.call(this,ro)}function nle(ro){SY.call(this,ro)}function rle(ro){ywe.call(this,ro,0)}function ile(){OSe.call(this,12,3)}function $s(ro,oo){return dKe(ro,oo)}function CK(ro,oo){return Hue(ro,oo)}function __t(ro,oo){return ro.a-oo.a}function E_t(ro,oo){return ro.a-oo.a}function k_t(ro,oo){return ro.a-oo.a}function T_t(ro,oo){return oo in ro.a}function LPe(ro){return ro.a?ro.b:0}function C_t(ro){return ro.a?ro.b:0}function $_t(ro,oo,co){oo.Cd(ro.a[co])}function A_t(ro,oo,co){oo.Pe(ro.a[co])}function R_t(ro,oo){ro.b=new ov(oo)}function O_t(ro,oo){return ro.b=oo,ro}function BPe(ro,oo){return ro.c=oo,ro}function FPe(ro,oo){return ro.f=oo,ro}function I_t(ro,oo){return ro.g=oo,ro}function zye(ro,oo){return ro.a=oo,ro}function Hye(ro,oo){return ro.f=oo,ro}function N_t(ro,oo){return ro.k=oo,ro}function qye(ro,oo){return ro.a=oo,ro}function M_t(ro,oo){return ro.e=oo,ro}function Vye(ro,oo){return ro.e=oo,ro}function D_t(ro,oo){return ro.f=oo,ro}function L_t(ro,oo){ro.b=!0,ro.d=oo}function B_t(ro,oo){return ro.b-oo.b}function F_t(ro,oo){return ro.g-oo.g}function P_t(ro,oo){return ro?0:oo-1}function PPe(ro,oo){return ro?0:oo-1}function j_t(ro,oo){return ro?oo-1:0}function z_t(ro,oo){return ro.s-oo.s}function H_t(ro,oo){return oo.rg(ro)}function TC(ro,oo){return ro.b=oo,ro}function $K(ro,oo){return ro.a=oo,ro}function CC(ro,oo){return ro.c=oo,ro}function $C(ro,oo){return ro.d=oo,ro}function AC(ro,oo){return ro.e=oo,ro}function Gye(ro,oo){return ro.f=oo,ro}function _D(ro,oo){return ro.a=oo,ro}function $O(ro,oo){return ro.b=oo,ro}function AO(ro,oo){return ro.c=oo,ro}function mu(ro,oo){return ro.c=oo,ro}function Nu(ro,oo){return ro.b=oo,ro}function vu(ro,oo){return ro.d=oo,ro}function bu(ro,oo){return ro.e=oo,ro}function q_t(ro,oo){return ro.f=oo,ro}function yu(ro,oo){return ro.g=oo,ro}function wu(ro,oo){return ro.a=oo,ro}function xu(ro,oo){return ro.i=oo,ro}function Su(ro,oo){return ro.j=oo,ro}function V_t(ro,oo){E3(),uy(oo,ro)}function G_t(ro,oo,co){aCt(ro.a,oo,co)}function AK(ro){gce.call(this,ro)}function jPe(ro){fNt.call(this,ro)}function zPe(ro){wUe.call(this,ro)}function Wye(ro){wUe.call(this,ro)}function e3(ro){n6.call(this,ro)}function HPe(ro){iue.call(this,ro)}function qPe(ro){iue.call(this,ro)}function VPe(){twe.call(this,"")}function Nm(){this.a=0,this.b=0}function GPe(){this.b=0,this.a=0}function WPe(ro,oo){ro.b=0,L$(ro,oo)}function UPe(ro,oo){return ro.k=oo,ro}function W_t(ro,oo){return ro.j=oo,ro}function U_t(ro,oo){ro.c=oo,ro.b=!0}function KPe(){KPe=qo,C1t=oBt()}function n3(){n3=qo,wxt=mLt()}function YPe(){YPe=qo,Tm=$Bt()}function Uye(){Uye=qo,X3=gI()}function RO(){RO=qo,gMe=vLt()}function XPe(){XPe=qo,iSt=bLt()}function Kye(){Kye=qo,$y=pPt()}function PS(ro){return ro.e&&ro.e()}function QPe(ro){return ro.l|ro.m<<22}function ZPe(ro,oo){return ro.c._b(oo)}function JPe(ro,oo){return ett(ro.b,oo)}function ole(ro){return ro?ro.d:null}function K_t(ro){return ro?ro.g:null}function Y_t(ro){return ro?ro.i:null}function aT(ro){return c5(ro),ro.o}function n9(ro,oo){return ro.a+=oo,ro}function sle(ro,oo){return ro.a+=oo,ro}function J5(ro,oo){return ro.a+=oo,ro}function RC(ro,oo){return ro.a+=oo,ro}function Yye(ro,oo){for(;ro.Bd(oo););}function RK(ro){this.a=new g8(ro)}function eje(){throw Cs(new l0)}function tje(){throw Cs(new l0)}function nje(){throw Cs(new l0)}function rje(){throw Cs(new l0)}function ije(){throw Cs(new l0)}function oje(){throw Cs(new l0)}function e4(ro){this.a=new Bce(ro)}function sje(){this.a=new oB(uOe)}function aje(){this.b=new oB(ARe)}function lje(){this.a=new oB(MOe)}function cje(){this.b=new oB(bve)}function uje(){this.b=new oB(bve)}function OK(ro){this.a=0,this.b=ro}function Xye(ro){Ult(),HYt(this,ro)}function OO(ro){return f3(ro),ro.a}function Oz(ro){return ro.b!=ro.d.c}function Qye(ro,oo){return ro.d[oo.p]}function fje(ro,oo){return oqt(ro,oo)}function Zye(ro,oo,co){ro.splice(oo,co)}function r9(ro,oo){for(;ro.Re(oo););}function dje(ro){ro.c?Nst(ro):Mst(ro)}function hje(){throw Cs(new l0)}function pje(){throw Cs(new l0)}function gje(){throw Cs(new l0)}function mje(){throw Cs(new l0)}function vje(){throw Cs(new l0)}function bje(){throw Cs(new l0)}function yje(){throw Cs(new l0)}function wje(){throw Cs(new l0)}function xje(){throw Cs(new l0)}function Sje(){throw Cs(new l0)}function X_t(){throw Cs(new ay)}function Q_t(){throw Cs(new ay)}function Iz(ro){this.a=new _je(ro)}function _je(ro){nRt(this,ro,MFt())}function Nz(ro){return!ro||JWe(ro)}function Mz(ro){return M_[ro]!=-1}function Z_t(){qJ!=0&&(qJ=0),VJ=-1}function Eje(){wpe==null&&(wpe=[])}function Dz(ro,oo){v9.call(this,ro,oo)}function IO(ro,oo){Dz.call(this,ro,oo)}function kje(ro,oo){this.a=ro,this.b=oo}function Tje(ro,oo){this.a=ro,this.b=oo}function Cje(ro,oo){this.a=ro,this.b=oo}function $je(ro,oo){this.a=ro,this.b=oo}function Aje(ro,oo){this.a=ro,this.b=oo}function Rje(ro,oo){this.a=ro,this.b=oo}function Oje(ro,oo){this.a=ro,this.b=oo}function NO(ro,oo){this.e=ro,this.d=oo}function Jye(ro,oo){this.b=ro,this.c=oo}function Ije(ro,oo){this.b=ro,this.a=oo}function Nje(ro,oo){this.b=ro,this.a=oo}function Mje(ro,oo){this.b=ro,this.a=oo}function Dje(ro,oo){this.b=ro,this.a=oo}function Lje(ro,oo){this.a=ro,this.b=oo}function ale(ro,oo){this.a=ro,this.b=oo}function Bje(ro,oo){this.a=ro,this.f=oo}function OC(ro,oo){this.g=ro,this.i=oo}function J1(ro,oo){this.f=ro,this.g=oo}function Fje(ro,oo){this.b=ro,this.c=oo}function Pje(ro){cwe(ro.dc()),this.c=ro}function J_t(ro,oo){this.a=ro,this.b=oo}function jje(ro,oo){this.a=ro,this.b=oo}function zje(ro){this.a=bo(a0(ro),15)}function e2e(ro){this.a=bo(a0(ro),15)}function Hje(ro){this.a=bo(a0(ro),85)}function IK(ro){this.b=bo(a0(ro),85)}function NK(ro){this.b=bo(a0(ro),51)}function MK(){this.q=new lo.Date}function lle(ro,oo){this.a=ro,this.b=oo}function qje(ro,oo){return p2(ro.b,oo)}function Lz(ro,oo){return ro.b.Hc(oo)}function Vje(ro,oo){return ro.b.Ic(oo)}function Gje(ro,oo){return ro.b.Qc(oo)}function Wje(ro,oo){return ro.b.Hc(oo)}function Uje(ro,oo){return ro.c.uc(oo)}function Kje(ro,oo){return U0(ro.c,oo)}function jS(ro,oo){return ro.a._b(oo)}function Yje(ro,oo){return ro>oo&&oo0}function ple(ro,oo){return Iy(ro,oo)<0}function fze(ro,oo){return Rce(ro.a,oo)}function bEt(ro,oo){hKe.call(this,ro,oo)}function a2e(ro){Yce(),ZVe.call(this,ro)}function l2e(ro,oo){sWe(ro,ro.length,oo)}function jz(ro,oo){MWe(ro,ro.length,oo)}function OD(ro,oo){return ro.a.get(oo)}function dze(ro,oo){return p2(ro.e,oo)}function c2e(ro){return u1(ro),!1}function u2e(ro){this.a=bo(a0(ro),229)}function qK(ro){Du.call(this,ro,21)}function VK(ro,oo){J1.call(this,ro,oo)}function gle(ro,oo){J1.call(this,ro,oo)}function hze(ro,oo){this.b=ro,this.a=oo}function GK(ro,oo){this.d=ro,this.e=oo}function pze(ro,oo){this.a=ro,this.b=oo}function gze(ro,oo){this.a=ro,this.b=oo}function mze(ro,oo){this.a=ro,this.b=oo}function vze(ro,oo){this.a=ro,this.b=oo}function v8(ro,oo){this.a=ro,this.b=oo}function bze(ro,oo){this.b=ro,this.a=oo}function f2e(ro,oo){this.b=ro,this.a=oo}function d2e(ro,oo){J1.call(this,ro,oo)}function h2e(ro,oo){J1.call(this,ro,oo)}function i9(ro,oo){J1.call(this,ro,oo)}function mle(ro,oo){J1.call(this,ro,oo)}function vle(ro,oo){J1.call(this,ro,oo)}function ble(ro,oo){J1.call(this,ro,oo)}function WK(ro,oo){J1.call(this,ro,oo)}function p2e(ro,oo){this.b=ro,this.a=oo}function UK(ro,oo){J1.call(this,ro,oo)}function g2e(ro,oo){this.b=ro,this.a=oo}function KK(ro,oo){J1.call(this,ro,oo)}function yze(ro,oo){this.b=ro,this.a=oo}function m2e(ro,oo){J1.call(this,ro,oo)}function yle(ro,oo){J1.call(this,ro,oo)}function zz(ro,oo){J1.call(this,ro,oo)}function ND(ro,oo,co){ro.splice(oo,0,co)}function yEt(ro,oo,co){ro.Mb(co)&&oo.Cd(co)}function wEt(ro,oo,co){oo.Pe(ro.a.Ye(co))}function xEt(ro,oo,co){oo.Dd(ro.a.Ze(co))}function SEt(ro,oo,co){oo.Cd(ro.a.Kb(co))}function _Et(ro,oo){return z2(ro.c,oo)}function EEt(ro,oo){return z2(ro.e,oo)}function YK(ro,oo){J1.call(this,ro,oo)}function XK(ro,oo){J1.call(this,ro,oo)}function MD(ro,oo){J1.call(this,ro,oo)}function v2e(ro,oo){J1.call(this,ro,oo)}function Xp(ro,oo){J1.call(this,ro,oo)}function QK(ro,oo){J1.call(this,ro,oo)}function wze(ro,oo){this.a=ro,this.b=oo}function xze(ro,oo){this.a=ro,this.b=oo}function Sze(ro,oo){this.a=ro,this.b=oo}function _ze(ro,oo){this.a=ro,this.b=oo}function Eze(ro,oo){this.a=ro,this.b=oo}function kze(ro,oo){this.a=ro,this.b=oo}function Tze(ro,oo){this.b=ro,this.a=oo}function Cze(ro,oo){this.b=ro,this.a=oo}function b2e(ro,oo){this.b=ro,this.a=oo}function LO(ro,oo){this.c=ro,this.d=oo}function $ze(ro,oo){this.e=ro,this.d=oo}function Aze(ro,oo){this.a=ro,this.b=oo}function Rze(ro,oo){this.a=ro,this.b=oo}function Oze(ro,oo){this.a=ro,this.b=oo}function Ize(ro,oo){this.b=ro,this.a=oo}function Nze(ro,oo){this.b=oo,this.c=ro}function ZK(ro,oo){J1.call(this,ro,oo)}function Hz(ro,oo){J1.call(this,ro,oo)}function wle(ro,oo){J1.call(this,ro,oo)}function y2e(ro,oo){J1.call(this,ro,oo)}function DD(ro,oo){J1.call(this,ro,oo)}function xle(ro,oo){J1.call(this,ro,oo)}function Sle(ro,oo){J1.call(this,ro,oo)}function qz(ro,oo){J1.call(this,ro,oo)}function w2e(ro,oo){J1.call(this,ro,oo)}function _le(ro,oo){J1.call(this,ro,oo)}function LD(ro,oo){J1.call(this,ro,oo)}function x2e(ro,oo){J1.call(this,ro,oo)}function BD(ro,oo){J1.call(this,ro,oo)}function FD(ro,oo){J1.call(this,ro,oo)}function g$(ro,oo){J1.call(this,ro,oo)}function Ele(ro,oo){J1.call(this,ro,oo)}function kle(ro,oo){J1.call(this,ro,oo)}function S2e(ro,oo){J1.call(this,ro,oo)}function Vz(ro,oo){J1.call(this,ro,oo)}function o9(ro,oo){J1.call(this,ro,oo)}function Tle(ro,oo){J1.call(this,ro,oo)}function JK(ro,oo){J1.call(this,ro,oo)}function Gz(ro,oo){J1.call(this,ro,oo)}function m$(ro,oo){J1.call(this,ro,oo)}function eY(ro,oo){J1.call(this,ro,oo)}function _2e(ro,oo){J1.call(this,ro,oo)}function Cle(ro,oo){J1.call(this,ro,oo)}function $le(ro,oo){J1.call(this,ro,oo)}function Ale(ro,oo){J1.call(this,ro,oo)}function Rle(ro,oo){J1.call(this,ro,oo)}function Ole(ro,oo){J1.call(this,ro,oo)}function Ile(ro,oo){J1.call(this,ro,oo)}function Nle(ro,oo){J1.call(this,ro,oo)}function Mze(ro,oo){this.b=ro,this.a=oo}function E2e(ro,oo){J1.call(this,ro,oo)}function Dze(ro,oo){this.a=ro,this.b=oo}function Lze(ro,oo){this.a=ro,this.b=oo}function Bze(ro,oo){this.a=ro,this.b=oo}function k2e(ro,oo){J1.call(this,ro,oo)}function T2e(ro,oo){J1.call(this,ro,oo)}function Fze(ro,oo){this.a=ro,this.b=oo}function kEt(ro,oo){return qO(),oo!=ro}function Wz(ro){return T1(ro.a),ro.b}function Mle(ro){return Njt(ro,ro.c),ro}function Pze(){return KPe(),new C1t}function jze(){IY(),this.a=new qwe}function zze(){gZ(),this.a=new Yp}function Hze(){gue(),this.b=new Yp}function qze(ro,oo){this.b=ro,this.d=oo}function Vze(ro,oo){this.a=ro,this.b=oo}function Gze(ro,oo){this.a=ro,this.b=oo}function Wze(ro,oo){this.a=ro,this.b=oo}function Uze(ro,oo){this.b=ro,this.a=oo}function C2e(ro,oo){J1.call(this,ro,oo)}function $2e(ro,oo){J1.call(this,ro,oo)}function tY(ro,oo){J1.call(this,ro,oo)}function MC(ro,oo){J1.call(this,ro,oo)}function Dle(ro,oo){J1.call(this,ro,oo)}function nY(ro,oo){J1.call(this,ro,oo)}function A2e(ro,oo){J1.call(this,ro,oo)}function R2e(ro,oo){J1.call(this,ro,oo)}function Uz(ro,oo){J1.call(this,ro,oo)}function O2e(ro,oo){J1.call(this,ro,oo)}function Lle(ro,oo){J1.call(this,ro,oo)}function rY(ro,oo){J1.call(this,ro,oo)}function Ble(ro,oo){J1.call(this,ro,oo)}function Fle(ro,oo){J1.call(this,ro,oo)}function Ple(ro,oo){J1.call(this,ro,oo)}function jle(ro,oo){J1.call(this,ro,oo)}function I2e(ro,oo){J1.call(this,ro,oo)}function zle(ro,oo){J1.call(this,ro,oo)}function N2e(ro,oo){J1.call(this,ro,oo)}function Kz(ro,oo){J1.call(this,ro,oo)}function Hle(ro,oo){J1.call(this,ro,oo)}function M2e(ro,oo){J1.call(this,ro,oo)}function Yz(ro,oo){J1.call(this,ro,oo)}function D2e(ro,oo){J1.call(this,ro,oo)}function Kze(ro,oo){this.b=ro,this.a=oo}function Yze(ro,oo){this.b=ro,this.a=oo}function Xze(ro,oo){this.b=ro,this.a=oo}function Qze(ro,oo){this.b=ro,this.a=oo}function L2e(ro,oo){this.a=ro,this.b=oo}function Zze(ro,oo){this.a=ro,this.b=oo}function Jze(ro,oo){this.a=ro,this.b=oo}function Vl(ro,oo){this.a=ro,this.b=oo}function PD(ro,oo){J1.call(this,ro,oo)}function Xz(ro,oo){J1.call(this,ro,oo)}function b8(ro,oo){J1.call(this,ro,oo)}function jD(ro,oo){J1.call(this,ro,oo)}function Qz(ro,oo){J1.call(this,ro,oo)}function qle(ro,oo){J1.call(this,ro,oo)}function iY(ro,oo){J1.call(this,ro,oo)}function zD(ro,oo){J1.call(this,ro,oo)}function Vle(ro,oo){J1.call(this,ro,oo)}function oY(ro,oo){J1.call(this,ro,oo)}function s9(ro,oo){J1.call(this,ro,oo)}function Zz(ro,oo){J1.call(this,ro,oo)}function HD(ro,oo){J1.call(this,ro,oo)}function qD(ro,oo){J1.call(this,ro,oo)}function Jz(ro,oo){J1.call(this,ro,oo)}function sY(ro,oo){J1.call(this,ro,oo)}function a9(ro,oo){J1.call(this,ro,oo)}function Gle(ro,oo){J1.call(this,ro,oo)}function eHe(ro,oo){J1.call(this,ro,oo)}function aY(ro,oo){J1.call(this,ro,oo)}function tHe(ro,oo){this.a=ro,this.b=oo}function nHe(ro,oo){this.a=ro,this.b=oo}function rHe(ro,oo){this.a=ro,this.b=oo}function iHe(ro,oo){this.a=ro,this.b=oo}function oHe(ro,oo){this.a=ro,this.b=oo}function sHe(ro,oo){this.a=ro,this.b=oo}function fm(ro,oo){this.a=ro,this.b=oo}function aHe(ro,oo){this.a=ro,this.b=oo}function lHe(ro,oo){this.a=ro,this.b=oo}function cHe(ro,oo){this.a=ro,this.b=oo}function uHe(ro,oo){this.a=ro,this.b=oo}function fHe(ro,oo){this.a=ro,this.b=oo}function dHe(ro,oo){this.a=ro,this.b=oo}function hHe(ro,oo){this.b=ro,this.a=oo}function pHe(ro,oo){this.b=ro,this.a=oo}function gHe(ro,oo){this.b=ro,this.a=oo}function mHe(ro,oo){this.b=ro,this.a=oo}function vHe(ro,oo){this.a=ro,this.b=oo}function bHe(ro,oo){this.a=ro,this.b=oo}function lY(ro,oo){J1.call(this,ro,oo)}function yHe(ro,oo){this.a=ro,this.b=oo}function wHe(ro,oo){this.a=ro,this.b=oo}function y8(ro,oo){J1.call(this,ro,oo)}function xHe(ro,oo){this.f=ro,this.c=oo}function B2e(ro,oo){return z2(ro.g,oo)}function TEt(ro,oo){return z2(oo.b,ro)}function SHe(ro,oo){return Xfe(ro.a,oo)}function CEt(ro,oo){return-ro.b.af(oo)}function $Et(ro,oo){ro&&N0(qG,ro,oo)}function F2e(ro,oo){ro.i=null,iQ(ro,oo)}function AEt(ro,oo,co){yrt(oo,Hde(ro,co))}function REt(ro,oo,co){yrt(oo,Hde(ro,co))}function OEt(ro,oo){sHt(ro.a,bo(oo,58))}function _He(ro,oo){n8t(ro.a,bo(oo,12))}function cY(ro,oo){this.a=ro,this.b=oo}function EHe(ro,oo){this.a=ro,this.b=oo}function kHe(ro,oo){this.a=ro,this.b=oo}function THe(ro,oo){this.a=ro,this.b=oo}function CHe(ro,oo){this.a=ro,this.b=oo}function $He(ro,oo){this.d=ro,this.b=oo}function AHe(ro,oo){this.e=ro,this.a=oo}function eH(ro,oo){this.b=ro,this.c=oo}function P2e(ro,oo){this.i=ro,this.g=oo}function j2e(ro,oo){this.d=ro,this.e=oo}function IEt(ro,oo){v8t(new g1(ro),oo)}function uY(ro){return bq(ro.c,ro.b)}function Uv(ro){return ro?ro.md():null}function $a(ro){return ro??null}function Cm(ro){return typeof ro===Dhe}function v$(ro){return typeof ro===sR}function b$(ro){return typeof ro===B3e}function DC(ro,oo){return Iy(ro,oo)==0}function fY(ro,oo){return Iy(ro,oo)>=0}function VD(ro,oo){return Iy(ro,oo)!=0}function dY(ro,oo){return MRt(ro.Kc(),oo)}function o3(ro,oo){return ro.Rd().Xb(oo)}function RHe(ro){return bw(ro),ro.d.gc()}function hY(ro){return nL(ro==null),ro}function GD(ro,oo){return ro.a+=""+oo,ro}function Av(ro,oo){return ro.a+=""+oo,ro}function WD(ro,oo){return ro.a+=""+oo,ro}function qy(ro,oo){return ro.a+=""+oo,ro}function S0(ro,oo){return ro.a+=""+oo,ro}function z2e(ro,oo){return ro.a+=""+oo,ro}function NEt(ro){return""+(u1(ro),ro)}function OHe(ro){nw(this),$L(this,ro)}function IHe(){RSe(),Lxe.call(this)}function NHe(ro,oo){zxe.call(this,ro,oo)}function MHe(ro,oo){zxe.call(this,ro,oo)}function pY(ro,oo){zxe.call(this,ro,oo)}function iv(ro,oo){Mp(ro,oo,ro.c.b,ro.c)}function l9(ro,oo){Mp(ro,oo,ro.a,ro.a.a)}function H2e(ro){return qu(ro,0),null}function DHe(){this.b=0,this.a=!1}function LHe(){this.b=0,this.a=!1}function BHe(){this.b=new g8(M$(12))}function FHe(){FHe=qo,x0t=n0(rde())}function PHe(){PHe=qo,qpt=n0(ist())}function jHe(){jHe=qo,dyt=n0($Je())}function q2e(){q2e=qo,uye(),M$e=new H1}function zS(ro){return ro.a=0,ro.b=0,ro}function zHe(ro,oo){return ro.a=oo.g+1,ro}function Wle(ro,oo){_$.call(this,ro,oo)}function Ru(ro,oo){Rp.call(this,ro,oo)}function c9(ro,oo){P2e.call(this,ro,oo)}function HHe(ro,oo){iH.call(this,ro,oo)}function Ule(ro,oo){xI.call(this,ro,oo)}function O0(ro,oo){zK(),N0(ane,ro,oo)}function qHe(ro,oo){ro.q.setTime(vT(oo))}function MEt(ro){lo.clearTimeout(ro)}function DEt(ro){return a0(ro),new UD(ro)}function VHe(ro,oo){return $a(ro)===$a(oo)}function GHe(ro,oo){return ro.a.a.a.cc(oo)}function Kle(ro,oo){return lx(ro.a,0,oo)}function V2e(ro){return FCt(bo(ro,74))}function w8(ro){return dm((u1(ro),ro))}function LEt(ro){return dm((u1(ro),ro))}function WHe(ro){return h2(ro.l,ro.m,ro.h)}function G2e(ro,oo){return Oy(ro.a,oo.a)}function BEt(ro,oo){return IWe(ro.a,oo.a)}function FEt(ro,oo){return sp(ro.a,oo.a)}function q_(ro,oo){return ro.indexOf(oo)}function PEt(ro,oo){return ro.j[oo.p]==2}function LC(ro,oo){return ro==oo?0:ro?1:-1}function gY(ro){return ro<10?"0"+ro:""+ro}function ty(ro){return typeof ro===B3e}function jEt(ro){return ro==I6||ro==hA}function zEt(ro){return ro==I6||ro==dA}function UHe(ro,oo){return Oy(ro.g,oo.g)}function W2e(ro){return Xv(ro.b.b,ro,0)}function KHe(){HY.call(this,0,0,0,0)}function V_(){Ube.call(this,new a4)}function U2e(ro,oo){sI(ro,0,ro.length,oo)}function HEt(ro,oo){return Jl(ro.a,oo),oo}function qEt(ro,oo){return uS(),oo.a+=ro}function VEt(ro,oo){return uS(),oo.a+=ro}function GEt(ro,oo){return uS(),oo.c+=ro}function WEt(ro,oo){return Jl(ro.c,oo),ro}function K2e(ro,oo){return Vw(ro.a,oo),ro}function YHe(ro){this.a=Pze(),this.b=ro}function XHe(ro){this.a=Pze(),this.b=ro}function ov(ro){this.a=ro.a,this.b=ro.b}function UD(ro){this.a=ro,gz.call(this)}function QHe(ro){this.a=ro,gz.call(this)}function x8(){ax.call(this,0,0,0,0)}function mY(ro){return Vw(new Zp,ro)}function ZHe(ro){return sX(bo(ro,123))}function $w(ro){return ro.vh()&&ro.wh()}function u9(ro){return ro!=O_&&ro!=U3}function l5(ro){return ro==qv||ro==ey}function f9(ro){return ro==Cx||ro==A_}function JHe(ro){return ro==x7||ro==w7}function UEt(ro,oo){return Oy(ro.g,oo.g)}function eqe(ro,oo){return new xI(oo,ro)}function KEt(ro,oo){return new xI(oo,ro)}function Y2e(ro){return gTt(ro.b.Kc(),ro.a)}function Yle(ro,oo){AI(ro,oo),pI(ro,ro.D)}function Xle(ro,oo,co){XX(ro,oo),YX(ro,co)}function d9(ro,oo,co){i6(ro,oo),r6(ro,co)}function ix(ro,oo,co){m2(ro,oo),b2(ro,co)}function tH(ro,oo,co){uI(ro,oo),dI(ro,co)}function nH(ro,oo,co){fI(ro,oo),hI(ro,co)}function tqe(ro,oo,co){Owe.call(this,ro,oo,co)}function X2e(ro){xHe.call(this,ro,!0)}function nqe(){VK.call(this,"Tail",3)}function rqe(){VK.call(this,"Head",1)}function s3(ro){J_(),RRt.call(this,ro)}function BC(ro){HY.call(this,ro,ro,ro,ro)}function Qle(ro){ro.c=Al(bm,Xu,1,0,5,1)}function Q2e(ro){return ro.b&&vhe(ro),ro.a}function Z2e(ro){return ro.b&&vhe(ro),ro.c}function YEt(ro,oo){E_||(ro.b=oo)}function XEt(ro,oo){return ro[ro.length]=oo}function QEt(ro,oo){return ro[ro.length]=oo}function ZEt(ro,oo){return D$(oo,l_(ro))}function JEt(ro,oo){return D$(oo,l_(ro))}function ekt(ro,oo){return tQ(Uce(ro.d),oo)}function tkt(ro,oo){return tQ(Uce(ro.g),oo)}function nkt(ro,oo){return tQ(Uce(ro.j),oo)}function Mm(ro,oo){Rp.call(this,ro.b,oo)}function rkt(ro,oo){Y1(Fy(ro.a),EKe(oo))}function ikt(ro,oo){Y1(vw(ro.a),kKe(oo))}function okt(ro,oo,co){ix(co,co.i+ro,co.j+oo)}function iqe(ro,oo,co){Np(ro.c[oo.g],oo.g,co)}function skt(ro,oo,co){bo(ro.c,71).Gi(oo,co)}function Zle(ro,oo,co){return Np(ro,oo,co),co}function oqe(ro){g2(ro.Sf(),new EDe(ro))}function h9(ro){return ro!=null?dp(ro):0}function akt(ro){return ro==null?0:dp(ro)}function KD(ro){H0(),_C.call(this,ro)}function sqe(ro){this.a=ro,dxe.call(this,ro)}function s_(){s_=qo,lo.Math.log(2)}function ox(){ox=qo,QE=(cze(),Txt)}function aqe(){aqe=qo,Nme=new zL(Uve)}function c0(){c0=qo,new lqe,new Zl}function lqe(){new H1,new H1,new H1}function lkt(){throw Cs(new X5(Zht))}function ckt(){throw Cs(new X5(Zht))}function ukt(){throw Cs(new X5(Jht))}function fkt(){throw Cs(new X5(Jht))}function Jle(ro){this.a=ro,IK.call(this,ro)}function ece(ro){this.a=ro,IK.call(this,ro)}function cqe(ro,oo){WC(),this.a=ro,this.b=oo}function dkt(ro,oo){a0(oo),y9(ro).Jc(new Ro)}function Up(ro,oo){Oce(ro.c,ro.c.length,oo)}function cy(ro){return ro.aoo?1:0}function ewe(ro,oo){return Iy(ro,oo)>0?ro:oo}function h2(ro,oo,co){return{l:ro,m:oo,h:co}}function hkt(ro,oo){ro.a!=null&&_He(oo,ro.a)}function pkt(ro){ev(ro,null),Om(ro,null)}function gkt(ro,oo,co){return N0(ro.g,co,oo)}function p9(ro,oo,co){return Eke(oo,co,ro.c)}function mkt(ro,oo,co){return N0(ro.k,co,oo)}function vkt(ro,oo,co){return rKt(ro,oo,co),co}function bkt(ro,oo){return Pw(),oo.n.b+=ro}function fqe(ro){_Se.call(this),this.b=ro}function twe(ro){Hwe.call(this),this.a=ro}function dqe(){VK.call(this,"Range",2)}function vY(ro){this.b=ro,this.a=new Zl}function hqe(ro){this.b=new R0,this.a=ro}function pqe(ro){ro.a=new Ws,ro.c=new Ws}function gqe(ro){ro.a=new H1,ro.d=new H1}function mqe(ro){mue(ro,null),vue(ro,null)}function vqe(ro,oo){return oKt(ro.a,oo,null)}function ykt(ro,oo){return N0(ro.a,oo.a,oo)}function Pm(ro){return new Vl(ro.a,ro.b)}function nwe(ro){return new Vl(ro.c,ro.d)}function wkt(ro){return new Vl(ro.c,ro.d)}function YD(ro,oo){return vUt(ro.c,ro.b,oo)}function Hs(ro,oo){return ro!=null&&ade(ro,oo)}function tce(ro,oo){return uOt(ro.Kc(),oo)!=-1}function bY(ro){return ro.Ob()?ro.Pb():null}function xkt(ro){this.b=(Hu(),new j_(ro))}function rwe(ro){this.a=ro,H1.call(this)}function bqe(){iH.call(this,null,null)}function yqe(){kY.call(this,null,null)}function wqe(){J1.call(this,"INSTANCE",0)}function xqe(){r5e(),this.a=new oB(t9e)}function Sqe(ro){return zx(ro,0,ro.length)}function Skt(ro,oo){return new jqe(ro.Kc(),oo)}function iwe(ro,oo){return ro.a.Bc(oo)!=null}function _qe(ro,oo){U1(ro),ro.Gc(bo(oo,15))}function _kt(ro,oo,co){ro.c.bd(oo,bo(co,136))}function Ekt(ro,oo,co){ro.c.Ui(oo,bo(co,136))}function Eqe(ro,oo){ro.c&&(kxe(oo),XUe(oo))}function kkt(ro,oo){ro.q.setHours(oo),uB(ro,oo)}function Tkt(ro,oo){jC(oo,ro.a.a.a,ro.a.a.b)}function Ckt(ro,oo,co,fo){Np(ro.a[oo.g],co.g,fo)}function nce(ro,oo,co){return ro.a[oo.g][co.g]}function $kt(ro,oo){return ro.e[oo.c.p][oo.p]}function Akt(ro,oo){return ro.c[oo.c.p][oo.p]}function a_(ro,oo){return ro.a[oo.c.p][oo.p]}function Rkt(ro,oo){return ro.j[oo.p]=Hzt(oo)}function rce(ro,oo){return ro.a.Bc(oo)!=null}function Okt(ro,oo){return na(Tl(oo.a))<=ro}function Ikt(ro,oo){return na(Tl(oo.a))>=ro}function Nkt(ro,oo){return l_e(ro.f,oo.Pg())}function S8(ro,oo){return ro.a*oo.a+ro.b*oo.b}function Mkt(ro,oo){return ro.a0?oo/(ro*ro):oo*100}function o5t(ro,oo){return ro>0?oo*oo/ro:oo*oo*100}function y$(ro,oo){return bo(p_(ro.a,oo),34)}function s5t(ro,oo){return E3(),Mu(ro,oo.e,oo)}function a5t(ro,oo,co){return FK(),co.Mg(ro,oo)}function l5t(ro){return y5(),ro.e.a+ro.f.a/2}function c5t(ro,oo,co){return y5(),co.e.a-ro*oo}function u5t(ro){return y5(),ro.e.b+ro.f.b/2}function f5t(ro,oo,co){return y5(),co.e.b-ro*oo}function eVe(ro){ro.d=new Qqe(ro),ro.e=new H1}function tVe(){this.a=new ZC,this.b=new ZC}function nVe(ro){this.c=ro,this.a=1,this.b=1}function rVe(ro){Nhe(),wFe(this),this.Ff(ro)}function d5t(ro,oo,co){LX(),ro.pf(oo)&&co.Cd(ro)}function h5t(ro,oo,co){return Jl(oo,btt(ro,co))}function jC(ro,oo,co){return ro.a+=oo,ro.b+=co,ro}function p5t(ro,oo,co){return ro.a*=oo,ro.b*=co,ro}function Swe(ro,oo){return ro.a=oo.a,ro.b=oo.b,ro}function TY(ro){return ro.a=-ro.a,ro.b=-ro.b,ro}function JD(ro,oo,co){return ro.a-=oo,ro.b-=co,ro}function iVe(ro){xp.call(this),EL(this,ro)}function oVe(){J1.call(this,"GROW_TREE",0)}function sVe(){J1.call(this,"POLYOMINO",0)}function Rw(ro,oo,co){V2.call(this,ro,oo,co,2)}function g5t(ro,oo,co){PL(Fy(ro.a),oo,EKe(co))}function aVe(ro,oo){RD(),iH.call(this,ro,oo)}function _we(ro,oo){t4(),kY.call(this,ro,oo)}function lVe(ro,oo){t4(),_we.call(this,ro,oo)}function cVe(ro,oo){t4(),kY.call(this,ro,oo)}function m5t(ro,oo){return ro.c.Fc(bo(oo,136))}function v5t(ro,oo,co){PL(vw(ro.a),oo,kKe(co))}function uVe(ro){this.c=ro,m2(ro,0),b2(ro,0)}function cce(ro,oo){ox(),GY.call(this,ro,oo)}function fVe(ro,oo){ox(),cce.call(this,ro,oo)}function Ewe(ro,oo){ox(),cce.call(this,ro,oo)}function kwe(ro,oo){ox(),GY.call(this,ro,oo)}function dVe(ro,oo){ox(),Ewe.call(this,ro,oo)}function hVe(ro,oo){ox(),kwe.call(this,ro,oo)}function pVe(ro,oo){ox(),GY.call(this,ro,oo)}function b5t(ro,oo,co){return oo.zl(ro.e,ro.c,co)}function y5t(ro,oo,co){return oo.Al(ro.e,ro.c,co)}function Twe(ro,oo,co){return CZ(VH(ro,oo),co)}function uce(ro,oo){return y3(ro.e,bo(oo,54))}function w5t(ro){return ro==null?null:WKt(ro)}function x5t(ro){return ro==null?null:PFt(ro)}function S5t(ro){return ro==null?null:ry(ro)}function _5t(ro){return ro==null?null:ry(ro)}function au(ro){return nL(ro==null||v$(ro)),ro}function Tl(ro){return nL(ro==null||b$(ro)),ro}function u0(ro){return nL(ro==null||Cm(ro)),ro}function c5(ro){ro.o==null&&vzt(ro)}function Cwe(ro){if(!ro)throw Cs(new Az)}function E5t(ro){if(!ro)throw Cs(new jae)}function T1(ro){if(!ro)throw Cs(new ay)}function w$(ro){if(!ro)throw Cs(new F2)}function gVe(ro){if(!ro)throw Cs(new rx)}function zO(){zO=qo,GG=new ZFe,new JFe}function b9(){b9=qo,E7=new np("root")}function $we(){QZe.call(this),this.Bb|=hv}function k5t(ro,oo){this.d=ro,Ko(this),this.b=oo}function Awe(ro,oo){Fue.call(this,ro),this.a=oo}function Rwe(ro,oo){Fue.call(this,ro),this.a=oo}function Owe(ro,oo,co){IX.call(this,ro,oo,co,null)}function mVe(ro,oo,co){IX.call(this,ro,oo,co,null)}function aH(ro,oo){this.c=ro,NO.call(this,ro,oo)}function eL(ro,oo){this.a=ro,aH.call(this,ro,oo)}function Iwe(ro){this.q=new lo.Date(vT(ro))}function vVe(ro){return ro>8?0:ro+1}function bVe(ro,oo){E_||Jl(ro.a,oo)}function T5t(ro,oo){return Pz(),wI(oo.d.i,ro)}function C5t(ro,oo){return G8(),new rat(oo,ro)}function $5t(ro,oo,co){return ro.Ne(oo,co)<=0?co:oo}function A5t(ro,oo,co){return ro.Ne(oo,co)<=0?oo:co}function R5t(ro,oo){return bo(p_(ro.b,oo),143)}function O5t(ro,oo){return bo(p_(ro.c,oo),233)}function fce(ro){return bo(cu(ro.a,ro.b),294)}function yVe(ro){return new Vl(ro.c,ro.d+ro.a)}function wVe(ro){return u1(ro),ro?1231:1237}function xVe(ro){return Pw(),JHe(bo(ro,203))}function x$(){x$=qo,AAe=Tu((Mw(),oC))}function I5t(ro,oo){oo.a?Bjt(ro,oo):rce(ro.a,oo.b)}function lH(ro,oo,co){++ro.j,ro.tj(),Bue(ro,oo,co)}function SVe(ro,oo,co){++ro.j,ro.qj(oo,ro.Zi(oo,co))}function _Ve(ro,oo,co){var fo;fo=ro.fd(oo),fo.Rb(co)}function Nwe(ro,oo,co){return co=Uw(ro,oo,6,co),co}function Mwe(ro,oo,co){return co=Uw(ro,oo,3,co),co}function Dwe(ro,oo,co){return co=Uw(ro,oo,9,co),co}function W_(ro,oo){return kH(oo,sTe),ro.f=oo,ro}function Lwe(ro,oo){return(oo&q0)%ro.d.length}function EVe(ro,oo,co){return m3e(ro.c,ro.b,oo,co)}function kVe(ro,oo){this.c=ro,n6.call(this,oo)}function TVe(ro,oo){this.a=ro,dFe.call(this,oo)}function cH(ro,oo){this.a=ro,dFe.call(this,oo)}function Rp(ro,oo){np.call(this,ro),this.a=oo}function Bwe(ro,oo){sye.call(this,ro),this.a=oo}function dce(ro,oo){sye.call(this,ro),this.a=oo}function N5t(ro){bke.call(this,0,0),this.f=ro}function CVe(ro,oo,co){return ro.a+=zx(oo,0,co),ro}function uH(ro){return!ro.a&&(ro.a=new Uo),ro.a}function Fwe(ro,oo){var co;return co=ro.e,ro.e=oo,co}function Pwe(ro,oo){var co;return co=oo,!!ro.Fe(co)}function M5t(ro,oo){return _f(),ro==oo?0:ro?1:-1}function S$(ro,oo){ro.a.bd(ro.b,oo),++ro.b,ro.c=-1}function fH(ro){ro.b?fH(ro.b):ro.f.c.zc(ro.e,ro.d)}function $Ve(ro){nw(ro.e),ro.d.b=ro.d,ro.d.a=ro.d}function D5t(ro,oo,co){lT(),Oae(ro,oo.Ve(ro.a,co))}function jwe(ro,oo,co){return I8(ro,bo(oo,22),co)}function cS(ro,oo){return CK(new Array(oo),ro)}function L5t(ro){return s0(l3(ro,32))^s0(ro)}function hce(ro){return String.fromCharCode(ro)}function B5t(ro){return ro==null?null:ro.message}function F5t(ro,oo,co){return ro.apply(oo,co)}function P5t(ro,oo){var co;co=ro[h1e],co.call(ro,oo)}function j5t(ro,oo){var co;co=ro[h1e],co.call(ro,oo)}function z5t(ro,oo){return Pz(),!wI(oo.d.i,ro)}function zwe(ro,oo,co,fo){HY.call(this,ro,oo,co,fo)}function AVe(){CY.call(this),this.a=new Nm}function Hwe(){this.n=new Nm,this.o=new Nm}function RVe(){this.b=new Nm,this.c=new Zl}function OVe(){this.a=new Zl,this.b=new Zl}function IVe(){this.a=new i_,this.b=new RFe}function qwe(){this.b=new a4,this.a=new a4}function NVe(){this.b=new Yp,this.a=new Yp}function MVe(){this.b=new H1,this.a=new H1}function DVe(){this.b=new aje,this.a=new Qre}function LVe(){this.a=new By,this.b=new Cre}function BVe(){this.a=new Zl,this.d=new Zl}function CY(){this.n=new c8,this.i=new x8}function FVe(ro){this.a=(qw(ro,tA),new o2(ro))}function PVe(ro){this.a=(qw(ro,tA),new o2(ro))}function H5t(ro){return ro<100?null:new e3(ro)}function q5t(ro,oo){return ro.n.a=(u1(oo),oo+10)}function V5t(ro,oo){return ro.n.a=(u1(oo),oo+10)}function G5t(ro,oo){return oo==ro||VI(uZ(oo),ro)}function jVe(ro,oo){return N0(ro.a,oo,"")==null}function W5t(ro,oo){var co;return co=oo.qi(ro.a),co}function G0(ro,oo){return ro.a+=oo.a,ro.b+=oo.b,ro}function mm(ro,oo){return ro.a-=oo.a,ro.b-=oo.b,ro}function U5t(ro){return d$(ro.j.c,0),ro.a=-1,ro}function Vwe(ro,oo,co){return co=Uw(ro,oo,11,co),co}function K5t(ro,oo,co){co!=null&&nQ(oo,bde(ro,co))}function Y5t(ro,oo,co){co!=null&&rQ(oo,bde(ro,co))}function k8(ro,oo,co,fo){Bl.call(this,ro,oo,co,fo)}function Gwe(ro,oo,co,fo){Bl.call(this,ro,oo,co,fo)}function zVe(ro,oo,co,fo){Gwe.call(this,ro,oo,co,fo)}function HVe(ro,oo,co,fo){ZY.call(this,ro,oo,co,fo)}function pce(ro,oo,co,fo){ZY.call(this,ro,oo,co,fo)}function Wwe(ro,oo,co,fo){ZY.call(this,ro,oo,co,fo)}function qVe(ro,oo,co,fo){pce.call(this,ro,oo,co,fo)}function Uwe(ro,oo,co,fo){pce.call(this,ro,oo,co,fo)}function Wu(ro,oo,co,fo){Wwe.call(this,ro,oo,co,fo)}function VVe(ro,oo,co,fo){Uwe.call(this,ro,oo,co,fo)}function GVe(ro,oo,co,fo){Gxe.call(this,ro,oo,co,fo)}function _$(ro,oo){Dv.call(this,PB+ro+jT+oo)}function Kwe(ro,oo){return ro.jk().wi().ri(ro,oo)}function Ywe(ro,oo){return ro.jk().wi().ti(ro,oo)}function WVe(ro,oo){return u1(ro),$a(ro)===$a(oo)}function Iu(ro,oo){return u1(ro),$a(ro)===$a(oo)}function X5t(ro,oo){return ro.b.Bd(new gze(ro,oo))}function Q5t(ro,oo){return ro.b.Bd(new mze(ro,oo))}function UVe(ro,oo){return ro.b.Bd(new vze(ro,oo))}function Z5t(ro,oo){return ro.e=bo(ro.d.Kb(oo),159)}function Xwe(ro,oo,co){return ro.lastIndexOf(oo,co)}function J5t(ro,oo,co){return sp(ro[oo.a],ro[co.a])}function e4t(ro,oo){return Fl(oo,(ou(),rG),ro)}function t4t(ro,oo){return Oy(oo.a.d.p,ro.a.d.p)}function n4t(ro,oo){return Oy(ro.a.d.p,oo.a.d.p)}function r4t(ro,oo){return sp(ro.c-ro.s,oo.c-oo.s)}function i4t(ro,oo){return sp(ro.b.e.a,oo.b.e.a)}function o4t(ro,oo){return sp(ro.c.e.a,oo.c.e.a)}function KVe(ro){return ro.c?Xv(ro.c.a,ro,0):-1}function T8(ro){return ro==iC||ro==YE||ro==n2}function Qwe(ro,oo){this.c=ro,zce.call(this,ro,oo)}function YVe(ro,oo,co){this.a=ro,ywe.call(this,oo,co)}function XVe(ro){this.c=ro,pY.call(this,nV,0)}function QVe(ro,oo,co){this.c=oo,this.b=co,this.a=ro}function dH(ro){qO(),this.d=ro,this.a=new m9}function ZVe(ro){U_(),this.a=(Hu(),new CO(ro))}function s4t(ro,oo){l5(ro.f)?czt(ro,oo):jBt(ro,oo)}function JVe(ro,oo){yTt.call(this,ro,ro.length,oo)}function a4t(ro,oo){E_||oo&&(ro.d=oo)}function eGe(ro,oo){return Hs(oo,15)&&Bst(ro.c,oo)}function l4t(ro,oo,co){return bo(ro.c,71).Wk(oo,co)}function $Y(ro,oo,co){return bo(ro.c,71).Xk(oo,co)}function c4t(ro,oo,co){return b5t(ro,bo(oo,343),co)}function Zwe(ro,oo,co){return y5t(ro,bo(oo,343),co)}function u4t(ro,oo,co){return Crt(ro,bo(oo,343),co)}function tGe(ro,oo,co){return JBt(ro,bo(oo,343),co)}function tL(ro,oo){return oo==null?null:P$(ro.b,oo)}function Jwe(ro){return b$(ro)?(u1(ro),ro):ro.ue()}function AY(ro){return!isNaN(ro)&&!isFinite(ro)}function gce(ro){pqe(this),Fw(this),Fm(this,ro)}function tw(ro){Qle(this),gxe(this.c,0,ro.Pc())}function sx(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function nGe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function rGe(ro,oo,co){this.d=ro,this.b=co,this.a=oo}function iGe(ro){this.a=ro,a5(),Ty(Date.now())}function oGe(ro){Iw(ro.a),p_e(ro.c,ro.b),ro.b=null}function mce(){mce=qo,nAe=new Ps,$1t=new qs}function sGe(){sGe=qo,Oxt=Al(bm,Xu,1,0,5,1)}function aGe(){aGe=qo,Yxt=Al(bm,Xu,1,0,5,1)}function exe(){exe=qo,Xxt=Al(bm,Xu,1,0,5,1)}function U_(){U_=qo,new cye((Hu(),Hu(),cv))}function f4t(ro){return aI(),e0((hQe(),O1t),ro)}function d4t(ro){return ow(),e0((rQe(),B1t),ro)}function h4t(ro){return LQ(),e0((HYe(),q1t),ro)}function p4t(ro){return qX(),e0((qYe(),V1t),ro)}function g4t(ro){return bZ(),e0((HJe(),G1t),ro)}function m4t(ro){return US(),e0((tQe(),K1t),ro)}function v4t(ro){return iw(),e0((eQe(),X1t),ro)}function b4t(ro){return R2(),e0((nQe(),Z1t),ro)}function y4t(ro){return IZ(),e0((FHe(),x0t),ro)}function w4t(ro){return l6(),e0((gQe(),_0t),ro)}function x4t(ro){return Q8(),e0((vQe(),k0t),ro)}function S4t(ro){return WL(),e0((mQe(),$0t),ro)}function _4t(ro){return LK(),e0((pYe(),A0t),ro)}function E4t(ro){return VX(),e0((VYe(),W0t),ro)}function k4t(ro){return SL(),e0((iQe(),bpt),ro)}function T4t(ro){return Km(),e0((ZQe(),Spt),ro)}function C4t(ro){return _I(),e0((yQe(),Cpt),ro)}function $4t(ro){return CT(),e0((bQe(),Npt),ro)}function txe(ro,oo){if(!ro)throw Cs(new i1(oo))}function HO(ro){if(!ro)throw Cs(new Lv(F3e))}function vce(ro,oo){if(ro!=oo)throw Cs(new rx)}function lGe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function nxe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function cGe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function RY(ro,oo,co){this.b=ro,this.a=oo,this.c=co}function rxe(ro,oo,co){this.b=ro,this.c=oo,this.a=co}function ixe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function OY(ro,oo,co){this.e=oo,this.b=ro,this.d=co}function uGe(ro,oo,co){this.b=ro,this.a=oo,this.c=co}function A4t(ro,oo,co){return lT(),ro.a.Yd(oo,co),oo}function bce(ro){var oo;return oo=new j0,oo.e=ro,oo}function oxe(ro){var oo;return oo=new DFe,oo.b=ro,oo}function hH(){hH=qo,lee=new lW,cee=new _P}function IY(){IY=qo,Kpt=new Lne,Upt=new K7}function uS(){uS=qo,Jpt=new Q7,egt=new oO}function R4t(ro){return s6(),e0((DXe(),ugt),ro)}function O4t(ro){return rv(),e0((PHe(),qpt),ro)}function I4t(ro){return gQ(),e0((xQe(),Wpt),ro)}function N4t(ro){return m_(),e0((wQe(),rgt),ro)}function M4t(ro){return V$(),e0((JQe(),ogt),ro)}function D4t(ro){return mZ(),e0((CJe(),fgt),ro)}function L4t(ro){return tR(),e0((EZe(),dgt),ro)}function B4t(ro){return DX(),e0((QYe(),hgt),ro)}function F4t(ro){return kL(),e0((NXe(),pgt),ro)}function P4t(ro){return ZX(),e0((MXe(),ggt),ro)}function j4t(ro){return y4(),e0((eZe(),mgt),ro)}function z4t(ro){return YH(),e0((UYe(),vgt),ro)}function H4t(ro){return WI(),e0((CZe(),_gt),ro)}function q4t(ro){return Sv(),e0((iet(),Egt),ro)}function V4t(ro){return SI(),e0((BXe(),kgt),ro)}function G4t(ro){return b5(),e0((FXe(),Cgt),ro)}function W4t(ro){return EX(),e0((WYe(),$gt),ro)}function U4t(ro){return Aq(),e0((TZe(),Sgt),ro)}function K4t(ro){return ET(),e0((LXe(),ygt),ro)}function Y4t(ro){return rZ(),e0((kZe(),wgt),ro)}function X4t(ro){return HH(),e0((KYe(),xgt),ro)}function Q4t(ro){return yx(),e0((nZe(),Agt),ro)}function Z4t(ro){return E4(),e0((PJe(),Jvt),ro)}function J4t(ro){return DL(),e0((PXe(),ebt),ro)}function e3t(ro){return H$(),e0((SQe(),tbt),ro)}function t3t(ro){return GL(),e0((tZe(),nbt),ro)}function n3t(ro){return qx(),e0((oet(),rbt),ro)}function r3t(ro){return Q_(),e0((_Qe(),ibt),ro)}function i3t(ro){return UH(),e0((YYe(),obt),ro)}function o3t(ro){return xv(),e0((HXe(),abt),ro)}function s3t(ro){return dQ(),e0((jXe(),lbt),ro)}function a3t(ro){return IL(),e0((zXe(),cbt),ro)}function l3t(ro){return RI(),e0((qXe(),ubt),ro)}function c3t(ro){return QX(),e0((VXe(),fbt),ro)}function u3t(ro){return mQ(),e0((GXe(),dbt),ro)}function f3t(ro){return o6(),e0((JXe(),$bt),ro)}function d3t(ro){return yL(),e0((XYe(),Nbt),ro)}function h3t(ro){return Y_(),e0((eXe(),jbt),ro)}function p3t(ro){return c_(),e0((tXe(),Hbt),ro)}function g3t(ro){return VS(),e0((nXe(),ryt),ro)}function m3t(ro){return JC(),e0((rXe(),uyt),ro)}function v3t(ro){return eR(),e0((RQe(),fyt),ro)}function b3t(ro){return lB(),e0((jHe(),dyt),ro)}function y3t(ro){return NL(),e0((WXe(),hyt),ro)}function w3t(ro){return ML(),e0((AQe(),Lyt),ro)}function x3t(ro){return xX(),e0((ZYe(),Byt),ro)}function S3t(ro){return oQ(),e0((JYe(),Hyt),ro)}function _3t(ro){return JQ(),e0((rZe(),Vyt),ro)}function E3t(ro){return uq(),e0((UXe(),Wyt),ro)}function k3t(ro){return BX(),e0((iXe(),Gyt),ro)}function T3t(ro){return WQ(),e0(($Qe(),d2t),ro)}function C3t(ro){return fQ(),e0((KXe(),h2t),ro)}function $3t(ro){return OQ(),e0((YXe(),p2t),ro)}function A3t(ro){return HQ(),e0((XXe(),m2t),ro)}function R3t(ro){return kQ(),e0((QXe(),y2t),ro)}function O3t(ro){return AX(),e0((oXe(),j2t),ro)}function I3t(ro){return vI(),e0((GYe(),Hpt),ro)}function N3t(ro){return a1(),e0(($Ze(),Bpt),ro)}function M3t(ro){return FX(),e0((ZXe(),z2t),ro)}function D3t(ro){return gfe(),e0((sXe(),H2t),ro)}function L3t(ro){return iB(),e0((iZe(),V2t),ro)}function B3t(ro){return PK(),e0((SYe(),W2t),ro)}function F3t(ro){return mq(),e0((sQe(),G2t),ro)}function P3t(ro){return jK(),e0((_Ye(),K2t),ro)}function j3t(ro){return BH(),e0((aXe(),Y2t),ro)}function z3t(ro){return Oq(),e0((oZe(),X2t),ro)}function H3t(ro){return CD(),e0((EYe(),dwt),ro)}function q3t(ro){return sq(),e0((lXe(),hwt),ro)}function V3t(ro){return YS(),e0((aZe(),ywt),ro)}function G3t(ro){return _4(),e0((kJe(),xwt),ro)}function W3t(ro){return IE(),e0((AZe(),Swt),ro)}function U3t(ro){return AT(),e0((RZe(),$wt),ro)}function K3t(ro){return _g(),e0((sZe(),Uwt),ro)}function Y3t(ro){return g_(),e0((aQe(),Kwt),ro)}function X3t(ro){return S5(),e0((OQe(),Ywt),ro)}function Q3t(ro){return tZ(),e0((OZe(),Xwt),ro)}function Z3t(ro){return x5(),e0((oQe(),Zwt),ro)}function J3t(ro){return Gw(),e0((IQe(),ext),ro)}function eTt(ro){return K$(),e0((zJe(),txt),ro)}function tTt(ro){return R9(),e0((lZe(),nxt),ro)}function nTt(ro){return Im(),e0((IZe(),rxt),ro)}function rTt(ro){return sw(),e0((NZe(),ixt),ro)}function iTt(ro){return nu(),e0((cZe(),oxt),ro)}function oTt(ro){return Mw(),e0((NQe(),uxt),ro)}function sTt(ro){return ww(),e0((jJe(),fxt),ro)}function aTt(ro){return K8(),e0((lQe(),dxt),ro)}function lTt(ro,oo){return u1(ro),ro+(u1(oo),oo)}function cTt(ro){return yce(),e0((cXe(),hxt),ro)}function uTt(ro){return CQ(),e0((MQe(),pxt),ro)}function fTt(ro){return vQ(),e0((DQe(),vxt),ro)}function qO(){qO=qo,CRe=(nu(),l1),gte=p1}function yce(){yce=qo,VNe=new jGe,GNe=new kWe}function dTt(ro){return!ro.e&&(ro.e=new Zl),ro.e}function wce(ro,oo){this.c=ro,this.a=oo,this.b=oo-ro}function fGe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function xce(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function sxe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function axe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function dGe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function hGe(ro,oo,co){this.a=ro,this.b=oo,this.c=co}function r4(ro,oo,co){this.e=ro,this.a=oo,this.c=co}function pGe(ro,oo,co){ox(),kSe.call(this,ro,oo,co)}function Sce(ro,oo,co){ox(),lSe.call(this,ro,oo,co)}function lxe(ro,oo,co){ox(),lSe.call(this,ro,oo,co)}function cxe(ro,oo,co){ox(),lSe.call(this,ro,oo,co)}function gGe(ro,oo,co){ox(),Sce.call(this,ro,oo,co)}function uxe(ro,oo,co){ox(),Sce.call(this,ro,oo,co)}function mGe(ro,oo,co){ox(),uxe.call(this,ro,oo,co)}function vGe(ro,oo,co){ox(),lxe.call(this,ro,oo,co)}function bGe(ro,oo,co){ox(),cxe.call(this,ro,oo,co)}function _ce(ro){HY.call(this,ro.d,ro.c,ro.a,ro.b)}function fxe(ro){HY.call(this,ro.d,ro.c,ro.a,ro.b)}function dxe(ro){this.d=ro,Ko(this),this.b=fCt(ro.d)}function hTt(ro){return KI(),e0((TJe(),Rxt),ro)}function pH(ro,oo){return a0(ro),a0(oo),new Tje(ro,oo)}function C8(ro,oo){return a0(ro),a0(oo),new OGe(ro,oo)}function pTt(ro,oo){return a0(ro),a0(oo),new IGe(ro,oo)}function gTt(ro,oo){return a0(ro),a0(oo),new Dje(ro,oo)}function Ece(ro){return T1(ro.b!=0),hx(ro,ro.a.a)}function mTt(ro){return T1(ro.b!=0),hx(ro,ro.c.b)}function vTt(ro){return!ro.c&&(ro.c=new ZA),ro.c}function VO(ro){var oo;return oo=new Zl,Yue(oo,ro),oo}function bTt(ro){var oo;return oo=new Yp,Yue(oo,ro),oo}function yGe(ro){var oo;return oo=new pye,lfe(oo,ro),oo}function gH(ro){var oo;return oo=new xp,lfe(oo,ro),oo}function bo(ro,oo){return nL(ro==null||ade(ro,oo)),ro}function yTt(ro,oo,co){bWe.call(this,oo,co),this.a=ro}function wGe(ro,oo){this.c=ro,this.b=oo,this.a=!1}function xGe(){this.a=";,;",this.b="",this.c=""}function SGe(ro,oo,co){this.b=ro,NHe.call(this,oo,co)}function hxe(ro,oo,co){this.c=ro,GK.call(this,oo,co)}function pxe(ro,oo,co){LO.call(this,ro,oo),this.b=co}function gxe(ro,oo,co){l4e(co,0,ro,oo,co.length,!1)}function TE(ro,oo,co,fo,po){ro.b=oo,ro.c=co,ro.d=fo,ro.a=po}function mxe(ro,oo,co,fo,po){ro.d=oo,ro.c=co,ro.a=fo,ro.b=po}function wTt(ro,oo){oo&&(ro.b=oo,ro.a=(f3(oo),oo.a))}function mH(ro,oo){if(!ro)throw Cs(new i1(oo))}function $8(ro,oo){if(!ro)throw Cs(new Lv(oo))}function vxe(ro,oo){if(!ro)throw Cs(new RPe(oo))}function xTt(ro,oo){return BK(),Oy(ro.d.p,oo.d.p)}function STt(ro,oo){return y5(),sp(ro.e.b,oo.e.b)}function _Tt(ro,oo){return y5(),sp(ro.e.a,oo.e.a)}function ETt(ro,oo){return Oy(BGe(ro.d),BGe(oo.d))}function NY(ro,oo){return oo&&rX(ro,oo.d)?oo:null}function kTt(ro,oo){return oo==(nu(),l1)?ro.c:ro.d}function bxe(ro){return m3(ECt(ty(ro)?Px(ro):ro))}function TTt(ro){return new Vl(ro.c+ro.b,ro.d+ro.a)}function _Ge(ro){return ro!=null&&!Wfe(ro,JF,eP)}function CTt(ro,oo){return(ott(ro)<<4|ott(oo))&em}function EGe(ro,oo,co,fo,po){ro.c=oo,ro.d=co,ro.b=fo,ro.a=po}function yxe(ro){var oo,co;oo=ro.b,co=ro.c,ro.b=co,ro.c=oo}function wxe(ro){var oo,co;co=ro.d,oo=ro.a,ro.d=oo,ro.a=co}function $Tt(ro,oo){var co;return co=ro.c,J_e(ro,oo),co}function xxe(ro,oo){return oo<0?ro.g=-1:ro.g=oo,ro}function MY(ro,oo){return B8t(ro),ro.a*=oo,ro.b*=oo,ro}function kGe(ro,oo,co){yZe.call(this,oo,co),this.d=ro}function vH(ro,oo,co){j2e.call(this,ro,oo),this.c=co}function DY(ro,oo,co){j2e.call(this,ro,oo),this.c=co}function Sxe(ro){exe(),bO.call(this),this.ci(ro)}function TGe(){iI(),YCt.call(this,(r3(),tS))}function CGe(ro){return H0(),new CE(0,ro)}function $Ge(){$Ge=qo,lbe=(Hu(),new F_(fpe))}function LY(){LY=qo,new Mke((Kae(),_pe),(Uae(),Spe))}function AGe(){AGe=qo,H$e=Al(Vm,Yl,17,256,0,1)}function RGe(){this.b=na(Tl(iu((vS(),nge))))}function kce(ro){this.b=ro,this.a=uT(this.b.a).Od()}function OGe(ro,oo){this.b=ro,this.a=oo,gz.call(this)}function IGe(ro,oo){this.a=ro,this.b=oo,gz.call(this)}function NGe(ro,oo,co){this.a=ro,c9.call(this,oo,co)}function MGe(ro,oo,co){this.a=ro,c9.call(this,oo,co)}function GO(ro,oo,co){var fo;fo=new T$(co),WS(ro,oo,fo)}function _xe(ro,oo,co){var fo;return fo=ro[oo],ro[oo]=co,fo}function BY(ro){var oo;return oo=ro.slice(),Hue(oo,ro)}function FY(ro){var oo;return oo=ro.n,ro.a.b+oo.d+oo.a}function DGe(ro){var oo;return oo=ro.n,ro.e.b+oo.d+oo.a}function Exe(ro){var oo;return oo=ro.n,ro.e.a+oo.b+oo.c}function kxe(ro){ro.a.b=ro.b,ro.b.a=ro.a,ro.a=ro.b=null}function y0(ro,oo){return Mp(ro,oo,ro.c.b,ro.c),!0}function ATt(ro){return ro.a?ro.a:Jce(ro)}function RTt(ro){return L8(),NE(ro)==kp(S3(ro))}function OTt(ro){return L8(),S3(ro)==kp(NE(ro))}function zC(ro,oo){return XL(ro,new LO(oo.a,oo.b))}function ITt(ro,oo){return oX(),gde(ro,oo),new rUe(ro,oo)}function NTt(ro,oo){return ro.c=oo)throw Cs(new xye)}function E$(ro,oo){return pq(ro,(u1(oo),new iDe(oo)))}function R8(ro,oo){return pq(ro,(u1(oo),new oDe(oo)))}function wWe(ro,oo,co){return sXt(ro,bo(oo,12),bo(co,12))}function xWe(ro){return G2(),bo(ro,12).g.c.length!=0}function SWe(ro){return G2(),bo(ro,12).e.c.length!=0}function vCt(ro,oo){return G8(),sp(oo.a.o.a,ro.a.o.a)}function bCt(ro,oo){oo.Bb&Cy&&!ro.a.o&&(ro.a.o=oo)}function yCt(ro,oo){oo.Ug("General 'Rotator",1),MKt(ro)}function wCt(ro,oo,co){oo.qf(co,na(Tl(m1(ro.b,co)))*ro.a)}function _We(ro,oo,co){return j9(),bI(ro,oo)&&bI(ro,co)}function sL(ro){return sw(),!ro.Hc(L5)&&!ro.Hc(K3)}function xCt(ro){return ro.e?d_e(ro.e):null}function aL(ro){return ty(ro)?""+ro:Lst(ro)}function Vxe(ro){var oo;for(oo=ro;oo.f;)oo=oo.f;return oo}function SCt(ro,oo,co){return Np(oo,0,Rxe(oo[0],co[0])),oo}function i4(ro,oo,co,fo){var po;po=ro.i,po.i=oo,po.a=co,po.b=fo}function Bl(ro,oo,co,fo){Qp.call(this,ro,oo,co),this.b=fo}function Em(ro,oo,co,fo,po){jue.call(this,ro,oo,co,fo,po,-1)}function lL(ro,oo,co,fo,po){PH.call(this,ro,oo,co,fo,po,-1)}function ZY(ro,oo,co,fo){vH.call(this,ro,oo,co),this.b=fo}function EWe(ro){xHe.call(this,ro,!1),this.a=!1}function kWe(){eHe.call(this,"LOOKAHEAD_LAYOUT",1)}function TWe(ro){this.b=ro,_8.call(this,ro),Oqe(this)}function CWe(ro){this.b=ro,oH.call(this,ro),Iqe(this)}function k$(ro,oo,co){this.a=ro,k8.call(this,oo,co,5,6)}function Gxe(ro,oo,co,fo){this.b=ro,Qp.call(this,oo,co,fo)}function $We(ro,oo){this.b=ro,vae.call(this,ro.b),this.a=oo}function AWe(ro){this.a=bnt(ro.a),this.b=new tw(ro.b)}function Wxe(ro,oo){WC(),J_t.call(this,ro,xQ(new ew(oo)))}function JY(ro,oo){return H0(),new aSe(ro,oo,0)}function Fce(ro,oo){return H0(),new aSe(6,ro,oo)}function jm(ro,oo){for(u1(oo);ro.Ob();)oo.Cd(ro.Pb())}function p2(ro,oo){return Cm(oo)?aue(ro,oo):!!wv(ro.f,oo)}function Pce(ro,oo){return oo.Vh()?y3(ro.b,bo(oo,54)):oo}function _Ct(ro,oo){return Iu(ro.substr(0,oo.length),oo)}function $E(ro){return new x1(new hwe(ro.a.length,ro.a))}function eX(ro){return new Vl(ro.c+ro.b/2,ro.d+ro.a/2)}function ECt(ro){return h2(~ro.l&xw,~ro.m&xw,~ro.h&A5)}function jce(ro){return typeof ro===Zq||typeof ro===Lhe}function nw(ro){ro.f=new YHe(ro),ro.i=new XHe(ro),++ro.g}function RWe(ro){if(!ro)throw Cs(new ay);return ro.d}function O8(ro){var oo;return oo=OL(ro),T1(oo!=null),oo}function kCt(ro){var oo;return oo=HIt(ro),T1(oo!=null),oo}function UO(ro,oo){var co;return co=ro.a.gc(),a_e(oo,co),co-oo}function om(ro,oo){var co;return co=ro.a.zc(oo,ro),co==null}function yH(ro,oo){return ro.a.zc(oo,(_f(),M3))==null}function Uxe(ro){return new Ou(null,RCt(ro,ro.length))}function Kxe(ro,oo,co){return slt(ro,bo(oo,42),bo(co,176))}function I8(ro,oo,co){return pS(ro.a,oo),_xe(ro.b,oo.g,co)}function TCt(ro,oo,co){WO(co,ro.a.c.length),fx(ro.a,co,oo)}function xl(ro,oo,co,fo){Iet(oo,co,ro.length),CCt(ro,oo,co,fo)}function CCt(ro,oo,co,fo){var po;for(po=oo;po0?lo.Math.log(ro/oo):-100}function IWe(ro,oo){return Iy(ro,oo)<0?-1:Iy(ro,oo)>0?1:0}function wH(ro,oo){_qe(ro,Hs(oo,160)?oo:bo(oo,2036).Rl())}function Zxe(ro,oo){if(ro==null)throw Cs(new d8(oo))}function RCt(ro,oo){return N8t(oo,ro.length),new PGe(ro,oo)}function Jxe(ro,oo){return oo?Fm(ro,oo):!1}function OCt(){return _K(),As($s(a1t,1),Pl,549,0,[Tpe])}function uL(ro){return ro.e==0?ro:new dT(-ro.e,ro.d,ro.a)}function ICt(ro,oo){return sp(ro.c.c+ro.c.b,oo.c.c+oo.c.b)}function xH(ro,oo){Mp(ro.d,oo,ro.b.b,ro.b),++ro.a,ro.c=null}function NWe(ro,oo){return ro.c?NWe(ro.c,oo):Jl(ro.b,oo),ro}function NCt(ro,oo,co){var fo;return fo=N$(ro,oo),Eue(ro,oo,co),fo}function MWe(ro,oo,co){var fo;for(fo=0;fo=ro.g}function Np(ro,oo,co){return E5t(co==null||yGt(ro,co)),ro[oo]=co}function iSe(ro,oo){return o1(oo,ro.length+1),ro.substr(oo)}function Xce(ro,oo){for(u1(oo);ro.c=ro?new t2e:rRt(ro-1)}function zm(ro){return!ro.a&&ro.c?ro.c.b:ro.a}function cSe(ro){return Hs(ro,616)?ro:new JUe(ro)}function f3(ro){ro.c?f3(ro.c):(w3(ro),ro.d=!0)}function hL(ro){ro.c?ro.c.$e():(ro.d=!0,xHt(ro))}function eUe(ro){ro.b=!1,ro.c=!1,ro.d=!1,ro.a=!1}function tUe(ro){var oo,co;return oo=ro.c.i.c,co=ro.d.i.c,oo==co}function ZCt(ro,oo){var co;co=ro.Ih(oo),co>=0?ro.ki(co):J5e(ro,oo)}function nUe(ro,oo){ro.c<0||ro.b.b0;)ro=ro<<1|(ro<0?1:0);return ro}function uUe(ro,oo){var co;return co=new Vy(ro),Ju(oo.c,co),co}function fUe(ro,oo){ro.u.Hc((sw(),L5))&&ijt(ro,oo),S7t(ro,oo)}function ky(ro,oo){return $a(ro)===$a(oo)||ro!=null&&U0(ro,oo)}function Rv(ro,oo){return Rce(ro.a,oo)?ro.b[bo(oo,22).g]:null}function f6t(){return LK(),As($s(IAe,1),Pl,489,0,[Ype])}function d6t(){return PK(),As($s(sIe,1),Pl,490,0,[yve])}function h6t(){return jK(),As($s(U2t,1),Pl,558,0,[wve])}function p6t(){return CD(),As($s(CIe,1),Pl,539,0,[xG])}function sX(ro){return!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),ro.n}function Zce(ro){return!ro.c&&(ro.c=new Bl(fw,ro,9,9)),ro.c}function hSe(ro){return!ro.c&&(ro.c=new Wu(D1,ro,5,8)),ro.c}function g6t(ro){return!ro.b&&(ro.b=new Wu(D1,ro,4,7)),ro.b}function SH(ro){return ro.j.c.length=0,gSe(ro.c),U5t(ro.a),ro}function ZO(ro){return ro.e==$N&&jbe(ro,uMt(ro.g,ro.b)),ro.e}function _H(ro){return ro.f==$N&&Hbe(ro,tLt(ro.g,ro.b)),ro.f}function M0(ro,oo,co,fo){return MJe(ro,oo,co,!1),SQ(ro,fo),ro}function dUe(ro,oo){this.b=ro,zce.call(this,ro,oo),Oqe(this)}function hUe(ro,oo){this.b=ro,Qwe.call(this,ro,oo),Iqe(this)}function pL(ro){this.d=ro,this.a=this.d.b,this.b=this.d.c}function pSe(ro,oo){this.b=ro,this.c=oo,this.a=new m8(this.b)}function Um(ro,oo){return o1(oo,ro.length),ro.charCodeAt(oo)}function m6t(ro,oo){nke(ro,na(w5(oo,"x")),na(w5(oo,"y")))}function v6t(ro,oo){nke(ro,na(w5(oo,"x")),na(w5(oo,"y")))}function X0(ro,oo){return w3(ro),new Ou(ro,new T_e(oo,ro.a))}function Kv(ro,oo){return w3(ro),new Ou(ro,new u_e(oo,ro.a))}function C$(ro,oo){return w3(ro),new Awe(ro,new SXe(oo,ro.a))}function aX(ro,oo){return w3(ro),new Rwe(ro,new _Xe(oo,ro.a))}function b6t(ro,oo){return new BUe(bo(a0(ro),50),bo(a0(oo),50))}function y6t(ro,oo){return sp(ro.d.c+ro.d.b/2,oo.d.c+oo.d.b/2)}function pUe(ro,oo,co){co.a?b2(ro,oo.b-ro.f/2):m2(ro,oo.a-ro.g/2)}function w6t(ro,oo){return sp(ro.g.c+ro.g.b/2,oo.g.c+oo.g.b/2)}function x6t(ro,oo){return i2e(),sp((u1(ro),ro),(u1(oo),oo))}function S6t(ro){return ro!=null&&Lz(lne,ro.toLowerCase())}function gSe(ro){var oo;for(oo=ro.Kc();oo.Ob();)oo.Pb(),oo.Qb()}function y9(ro){var oo;return oo=ro.b,!oo&&(ro.b=oo=new o8(ro)),oo}function Jce(ro){var oo;return oo=aRt(ro),oo||null}function gUe(ro,oo){var co,fo;return co=ro/oo,fo=dm(co),co>fo&&++fo,fo}function _6t(ro,oo,co){var fo;fo=bo(ro.d.Kb(co),159),fo&&fo.Nb(oo)}function E6t(ro,oo,co){CWt(ro.a,co),iOt(co),Kjt(ro.b,co),UWt(oo,co)}function lX(ro,oo,co,fo){this.a=ro,this.c=oo,this.b=co,this.d=fo}function mSe(ro,oo,co,fo){this.c=ro,this.b=oo,this.a=co,this.d=fo}function mUe(ro,oo,co,fo){this.c=ro,this.b=oo,this.d=co,this.a=fo}function ax(ro,oo,co,fo){this.c=ro,this.d=oo,this.b=co,this.a=fo}function vUe(ro,oo,co,fo){this.a=ro,this.d=oo,this.c=co,this.b=fo}function eue(ro,oo,co,fo){this.a=ro,this.e=oo,this.d=co,this.c=fo}function bUe(ro,oo,co,fo){this.a=ro,this.c=oo,this.d=co,this.b=fo}function tue(ro,oo,co){this.a=V3e,this.d=ro,this.b=oo,this.c=co}function M8(ro,oo,co,fo){J1.call(this,ro,oo),this.a=co,this.b=fo}function yUe(ro,oo){this.d=(u1(ro),ro),this.a=16449,this.c=oo}function wUe(ro){this.a=new Zl,this.e=Al(Q1,Yl,53,ro,0,2)}function k6t(ro){ro.Ug("No crossing minimization",1),ro.Vg()}function xUe(){ly.call(this,"There is no more element.")}function SUe(ro,oo,co,fo){this.a=ro,this.b=oo,this.c=co,this.d=fo}function _Ue(ro,oo,co,fo){this.a=ro,this.b=oo,this.c=co,this.d=fo}function hT(ro,oo,co,fo){this.e=ro,this.a=oo,this.c=co,this.d=fo}function EUe(ro,oo,co,fo){this.a=ro,this.c=oo,this.d=co,this.b=fo}function kUe(ro,oo,co,fo){ox(),EXe.call(this,oo,co,fo),this.a=ro}function TUe(ro,oo,co,fo){ox(),EXe.call(this,oo,co,fo),this.a=ro}function nue(ro,oo,co){var fo,po;return fo=R3e(ro),po=oo.ti(co,fo),po}function u5(ro){var oo,co;return co=(oo=new EC,oo),cI(co,ro),co}function rue(ro){var oo,co;return co=(oo=new EC,oo),N5e(co,ro),co}function T6t(ro,oo){var co;return co=m1(ro.f,oo),dEe(oo,co),null}function CUe(ro){return!ro.b&&(ro.b=new Bl(Gp,ro,12,3)),ro.b}function $Ue(ro){return nL(ro==null||jce(ro)&&ro.Tm!==Yo),ro}function cX(ro){return ro.n&&(ro.e!==Fct&&ro.je(),ro.j=null),ro}function JO(ro){if(bw(ro.d),ro.d.d!=ro.c)throw Cs(new rx)}function vSe(ro){return T1(ro.b0&&drt(this)}function AUe(ro,oo){this.a=ro,k5t.call(this,ro,bo(ro.d,15).fd(oo))}function C6t(ro,oo){return sp(H2(ro)*Ow(ro),H2(oo)*Ow(oo))}function $6t(ro,oo){return sp(H2(ro)*Ow(ro),H2(oo)*Ow(oo))}function A6t(ro){return g6(ro)&&lu(au(zl(ro,(ou(),KT))))}function R6t(ro,oo){return Mu(ro,bo(bs(oo,(ou(),KN)),17),oo)}function O6t(ro,oo){return bo(bs(ro,(Wl(),RR)),15).Fc(oo),oo}function bSe(ro,oo){return ro.b=oo.b,ro.c=oo.c,ro.d=oo.d,ro.a=oo.a,ro}function RUe(ro,oo,co,fo){this.b=ro,this.c=fo,pY.call(this,oo,co)}function I6t(ro,oo,co){ro.i=0,ro.e=0,oo!=co&&met(ro,oo,co)}function N6t(ro,oo,co){ro.i=0,ro.e=0,oo!=co&&vet(ro,oo,co)}function M6t(ro,oo,co){return TD(),lNt(bo(m1(ro.e,oo),529),co)}function D8(ro){var oo;return oo=ro.f,oo||(ro.f=new NO(ro,ro.c))}function OUe(ro,oo){return A9(ro.j,oo.s,oo.c)+A9(oo.e,ro.s,ro.c)}function IUe(ro,oo){ro.e&&!ro.e.a&&(yFe(ro.e,oo),IUe(ro.e,oo))}function NUe(ro,oo){ro.d&&!ro.d.a&&(yFe(ro.d,oo),NUe(ro.d,oo))}function D6t(ro,oo){return-sp(H2(ro)*Ow(ro),H2(oo)*Ow(oo))}function L6t(ro){return bo(ro.ld(),149).Pg()+":"+ry(ro.md())}function MUe(){Bde(this,new KU),this.wb=(c3(),_d),RO()}function DUe(ro){this.b=new Zl,sm(this.b,this.b),this.a=ro}function ySe(ro,oo){new xp,this.a=new P2,this.b=ro,this.c=oo}function XC(){XC=qo,eAe=new ks,Mpe=new ks,tAe=new Os}function Hu(){Hu=qo,cv=new Qo,HE=new gs,KJ=new ys}function wSe(){wSe=qo,j1t=new w1,H1t=new Dxe,z1t=new Zu}function L8(){L8=qo,nee=new Zl,Jpe=new H1,Zpe=new Zl}function uX(ro,oo){if(ro==null)throw Cs(new d8(oo));return ro}function fX(ro){return!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a}function ep(ro){return!ro.q&&(ro.q=new Bl(eS,ro,11,10)),ro.q}function Ml(ro){return!ro.s&&(ro.s=new Bl(L2,ro,21,17)),ro.s}function B6t(ro){return a0(ro),$nt(new x1(E1(ro.a.Kc(),new ko)))}function F6t(ro,oo){return Nw(ro),Nw(oo),APe(bo(ro,22),bo(oo,22))}function pT(ro,oo,co){var fo,po;fo=Jwe(co),po=new cD(fo),WS(ro,oo,po)}function oue(ro,oo,co,fo,po,vo){PH.call(this,ro,oo,co,fo,po,vo?-2:-1)}function LUe(ro,oo,co,fo){j2e.call(this,oo,co),this.b=ro,this.a=fo}function BUe(ro,oo){o_t.call(this,new Bce(ro)),this.a=ro,this.b=oo}function xSe(ro){this.b=ro,this.c=ro,ro.e=null,ro.c=null,this.a=1}function P6t(ro){uS();var oo;oo=bo(ro.g,10),oo.n.a=ro.d.c+oo.d.b}function eI(){eI=qo;var ro,oo;oo=!UNt(),ro=new Lo,Ape=oo?new Fo:ro}function sue(ro){return Hu(),Hs(ro,59)?new nle(ro):new SY(ro)}function dX(ro){return Hs(ro,16)?new rL(bo(ro,16)):bTt(ro.Kc())}function j6t(ro){return new Mqe(ro,ro.e.Rd().gc()*ro.c.Rd().gc())}function z6t(ro){return new Dqe(ro,ro.e.Rd().gc()*ro.c.Rd().gc())}function SSe(ro){return ro&&ro.hashCode?ro.hashCode():PC(ro)}function aue(ro,oo){return oo==null?!!wv(ro.f,null):rCt(ro.i,oo)}function H6t(ro,oo){var co;return co=iwe(ro.a,oo),co&&(oo.d=null),co}function FUe(ro,oo,co){return ro.f?ro.f.ef(oo,co):!1}function EH(ro,oo,co,fo){Np(ro.c[oo.g],co.g,fo),Np(ro.c[co.g],oo.g,fo)}function lue(ro,oo,co,fo){Np(ro.c[oo.g],oo.g,co),Np(ro.b[oo.g],oo.g,fo)}function q6t(ro,oo,co){return na(Tl(co.a))<=ro&&na(Tl(co.b))>=oo}function PUe(ro,oo){this.g=ro,this.d=As($s(VE,1),T4,10,0,[oo])}function jUe(ro){this.c=ro,this.b=new e4(bo(a0(new L1),50))}function zUe(ro){this.c=ro,this.b=new e4(bo(a0(new cC),50))}function HUe(ro){this.b=ro,this.a=new e4(bo(a0(new I1),50))}function qUe(){this.b=new Yp,this.d=new xp,this.e=new Sye}function _Se(){this.c=new Nm,this.d=new Nm,this.e=new Nm}function QC(){this.a=new P2,this.b=(qw(3,tA),new o2(3))}function o4(ro,oo){this.e=ro,this.a=bm,this.b=Zst(oo),this.c=oo}function hX(ro){this.c=ro.c,this.d=ro.d,this.b=ro.b,this.a=ro.a}function VUe(ro,oo,co,fo,po,vo){this.a=ro,tfe.call(this,oo,co,fo,po,vo)}function GUe(ro,oo,co,fo,po,vo){this.a=ro,tfe.call(this,oo,co,fo,po,vo)}function d3(ro,oo,co,fo,po,vo,xo){return new Tue(ro.e,oo,co,fo,po,vo,xo)}function V6t(ro,oo,co){return co>=0&&Iu(ro.substr(co,oo.length),oo)}function WUe(ro,oo){return Hs(oo,149)&&Iu(ro.b,bo(oo,149).Pg())}function G6t(ro,oo){return ro.a?oo.Gh().Kc():bo(oo.Gh(),71).Ii()}function UUe(ro,oo){var co;return co=ro.b.Qc(oo),zYe(co,ro.b.gc()),co}function kH(ro,oo){if(ro==null)throw Cs(new d8(oo));return ro}function Yv(ro){return ro.u||(mw(ro),ro.u=new TVe(ro,ro)),ro.u}function cue(ro){this.a=(Hu(),Hs(ro,59)?new nle(ro):new SY(ro))}function $2(ro){var oo;return oo=bo(n1(ro,16),29),oo||ro.ii()}function pX(ro,oo){var co;return co=aT(ro.Rm),oo==null?co:co+": "+oo}function lx(ro,oo,co){return Bm(oo,co,ro.length),ro.substr(oo,co-oo)}function KUe(ro,oo){CY.call(this),D_e(this),this.a=ro,this.c=oo}function W6t(ro){ro&&pX(ro,ro.ie())}function U6t(ro){TK(),lo.setTimeout(function(){throw ro},0)}function K6t(){return LQ(),As($s(cAe,1),Pl,436,0,[Hpe,lAe])}function Y6t(){return qX(),As($s(fAe,1),Pl,435,0,[uAe,qpe])}function X6t(){return VX(),As($s(PAe,1),Pl,432,0,[ege,ree])}function Q6t(){return vI(),As($s(zpt,1),Pl,517,0,[WV,pge])}function Z6t(){return EX(),As($s(S7e,1),Pl,429,0,[Vge,x7e])}function J6t(){return YH(),As($s(s7e,1),Pl,428,0,[Mee,o7e])}function e$t(){return DX(),As($s(Z9e,1),Pl,431,0,[Q9e,Age])}function t$t(){return UH(),As($s(pRe,1),Pl,430,0,[kme,Tme])}function n$t(){return yL(),As($s(Ibt,1),Pl,531,0,[_F,SF])}function r$t(){return oQ(),As($s(uOe,1),Pl,501,0,[Ete,k7])}function i$t(){return Y_(),As($s(Pbt,1),Pl,523,0,[W6,N4])}function o$t(){return c_(),As($s(zbt,1),Pl,522,0,[JT,C_])}function s$t(){return VS(),As($s(nyt,1),Pl,528,0,[AA,z3])}function a$t(){return HH(),As($s(c7e,1),Pl,488,0,[l7e,Lee])}function l$t(){return AX(),As($s(JOe,1),Pl,491,0,[mve,ZOe])}function c$t(){return gfe(),As($s(oIe,1),Pl,492,0,[rIe,iIe])}function u$t(){return xX(),As($s(cOe,1),Pl,433,0,[Kme,lOe])}function f$t(){return BX(),As($s(dOe,1),Pl,434,0,[fOe,eve])}function d$t(){return JC(),As($s(cyt,1),Pl,465,0,[H3,S7])}function h$t(){return BH(),As($s(aIe,1),Pl,438,0,[xve,Dte])}function p$t(){return sq(),As($s(AIe,1),Pl,437,0,[Bte,$Ie])}function g$t(){return yce(),As($s(Zte,1),Pl,347,0,[VNe,GNe])}function gX(ro,oo,co,fo){return co>=0?ro.Uh(oo,co,fo):ro.Ch(null,co,fo)}function TH(ro){return ro.b.b==0?ro.a.sf():Ece(ro.b)}function m$t(ro){if(ro.p!=5)throw Cs(new F2);return s0(ro.f)}function v$t(ro){if(ro.p!=5)throw Cs(new F2);return s0(ro.k)}function ESe(ro){return $a(ro.a)===$a((hfe(),obe))&&mUt(ro),ro.a}function b$t(ro,oo){ro.b=oo,ro.c>0&&ro.b>0&&(ro.g=qY(ro.c,ro.b,ro.a))}function y$t(ro,oo){ro.c=oo,ro.c>0&&ro.b>0&&(ro.g=qY(ro.c,ro.b,ro.a))}function YUe(ro,oo){Mae(this,new Vl(ro.a,ro.b)),Tbe(this,gH(oo))}function ZC(){s_t.call(this,new g8(M$(12))),cwe(!0),this.a=2}function uue(ro,oo,co){H0(),_C.call(this,ro),this.b=oo,this.a=co}function kSe(ro,oo,co){ox(),vK.call(this,oo),this.a=ro,this.b=co}function XUe(ro){var oo;oo=ro.c.d.b,ro.b=oo,ro.a=ro.c.d,oo.a=ro.c.d.b=ro}function w$t(ro){return ro.b==0?null:(T1(ro.b!=0),hx(ro,ro.a.a))}function Gy(ro,oo){return oo==null?Uv(wv(ro.f,null)):OD(ro.i,oo)}function QUe(ro,oo,co,fo,po){return new Pde(ro,(aI(),Fpe),oo,co,fo,po)}function mX(ro,oo){return FYe(oo),G8t(ro,Al(Q1,E0,28,oo,15,1),oo)}function vX(ro,oo){return uX(ro,"set1"),uX(oo,"set2"),new jje(ro,oo)}function x$t(ro,oo){var co=$pe[ro.charCodeAt(0)];return co??ro}function ZUe(ro,oo){var co,fo;return co=oo,fo=new Fs,Mlt(ro,co,fo),fo.d}function fue(ro,oo,co,fo){var po;po=new AVe,oo.a[co.g]=po,I8(ro.b,fo,po)}function S$t(ro,oo){var co;return co=H8t(ro.f,oo),G0(TY(co),ro.f.d)}function CH(ro){var oo;J8t(ro.a),oqe(ro.a),oo=new pK(ro.a),dke(oo)}function E$t(ro,oo){Hst(ro,!0),g2(ro.e.Rf(),new rxe(ro,!0,oo))}function k$t(ro,oo){return L8(),ro==kp(NE(oo))||ro==kp(S3(oo))}function T$t(ro,oo){return y5(),bo(bs(oo,(by(),pE)),17).a==ro}function dm(ro){return Math.max(Math.min(ro,q0),-2147483648)|0}function JUe(ro){this.a=bo(a0(ro),277),this.b=(Hu(),new mwe(ro))}function eKe(ro,oo,co){this.i=new Zl,this.b=ro,this.g=oo,this.a=co}function TSe(ro,oo,co){this.a=new Zl,this.e=ro,this.f=oo,this.c=co}function bX(ro,oo,co){this.c=new Zl,this.e=ro,this.f=oo,this.b=co}function tKe(ro){CY.call(this),D_e(this),this.a=ro,this.c=!0}function C$t(ro){function oo(){}return oo.prototype=ro||{},new oo}function $$t(ro){if(ro.Ae())return null;var oo=ro.n;return HJ[oo]}function $H(ro){return ro.Db>>16!=3?null:bo(ro.Cb,27)}function l_(ro){return ro.Db>>16!=9?null:bo(ro.Cb,27)}function nKe(ro){return ro.Db>>16!=6?null:bo(ro.Cb,74)}function JC(){JC=qo,H3=new $2e(fR,0),S7=new $2e(dR,1)}function Y_(){Y_=qo,W6=new k2e(dR,0),N4=new k2e(fR,1)}function c_(){c_=qo,JT=new T2e(S1e,0),C_=new T2e("UP",1)}function rKe(){rKe=qo,l1t=n0((_K(),As($s(a1t,1),Pl,549,0,[Tpe])))}function iKe(ro){var oo;return oo=new RK(M$(ro.length)),kEe(oo,ro),oo}function oKe(ro,oo){return ro.b+=oo.b,ro.c+=oo.c,ro.d+=oo.d,ro.a+=oo.a,ro}function A$t(ro,oo){return GJe(ro,oo)?(zZe(ro),!0):!1}function f5(ro,oo){if(oo==null)throw Cs(new a8);return YNt(ro,oo)}function AH(ro,oo){var co;co=ro.q.getHours(),ro.q.setDate(oo),uB(ro,co)}function CSe(ro,oo,co){var fo;fo=ro.Ih(oo),fo>=0?ro.bi(fo,co):T4e(ro,oo,co)}function sKe(ro,oo){var co;return co=ro.Ih(oo),co>=0?ro.Wh(co):Gde(ro,oo)}function aKe(ro,oo){var co;for(a0(oo),co=ro.a;co;co=co.c)oo.Yd(co.g,co.i)}function due(ro,oo,co){var fo;fo=het(ro,oo,co),ro.b=new aQ(fo.c.length)}function w9(ro,oo,co){yX(),ro&&N0(nbe,ro,oo),ro&&N0(qG,ro,co)}function R$t(ro,oo){return IY(),_f(),bo(oo.a,17).a0}function $Se(ro){var oo;return oo=ro.d,oo=ro.bj(ro.f),Y1(ro,oo),oo.Ob()}function lKe(ro,oo){var co;return co=new Ixe(oo),Prt(co,ro),new tw(co)}function N$t(ro){if(ro.p!=0)throw Cs(new F2);return VD(ro.f,0)}function M$t(ro){if(ro.p!=0)throw Cs(new F2);return VD(ro.k,0)}function cKe(ro){return ro.Db>>16!=7?null:bo(ro.Cb,241)}function tI(ro){return ro.Db>>16!=6?null:bo(ro.Cb,241)}function uKe(ro){return ro.Db>>16!=7?null:bo(ro.Cb,167)}function kp(ro){return ro.Db>>16!=11?null:bo(ro.Cb,27)}function $$(ro){return ro.Db>>16!=17?null:bo(ro.Cb,29)}function fKe(ro){return ro.Db>>16!=3?null:bo(ro.Cb,155)}function ASe(ro){var oo;return w3(ro),oo=new Yp,X0(ro,new vDe(oo))}function dKe(ro,oo){var co=ro.a=ro.a||[];return co[oo]||(co[oo]=ro.ve(oo))}function D$t(ro,oo){var co;co=ro.q.getHours(),ro.q.setMonth(oo),uB(ro,co)}function hKe(ro,oo){wY(this),this.f=oo,this.g=ro,cX(this),this.je()}function pKe(ro,oo){this.a=ro,this.c=Pm(this.a),this.b=new hX(oo)}function gKe(ro,oo,co){this.a=oo,this.c=ro,this.b=(a0(co),new tw(co))}function mKe(ro,oo,co){this.a=oo,this.c=ro,this.b=(a0(co),new tw(co))}function vKe(ro){this.a=ro,this.b=Al(Abt,Yl,2043,ro.e.length,0,2)}function bKe(){this.a=new V_,this.e=new Yp,this.g=0,this.i=0}function yX(){yX=qo,nbe=new H1,qG=new H1,$Et(T1t,new Uie)}function yKe(){yKe=qo,hbt=q2(new Zp,(Km(),Jv),(rv(),UV))}function RSe(){RSe=qo,pbt=q2(new Zp,(Km(),Jv),(rv(),UV))}function wKe(){wKe=qo,mbt=q2(new Zp,(Km(),Jv),(rv(),UV))}function xKe(){xKe=qo,Mbt=_0(new Zp,(Km(),Jv),(rv(),tF))}function Pw(){Pw=qo,Bbt=_0(new Zp,(Km(),Jv),(rv(),tF))}function SKe(){SKe=qo,Fbt=_0(new Zp,(Km(),Jv),(rv(),tF))}function gue(){gue=qo,qbt=_0(new Zp,(Km(),Jv),(rv(),tF))}function gL(ro,oo,co,fo,po,vo){return new m5(ro.e,oo,ro.Lj(),co,fo,po,vo)}function Bv(ro,oo,co){return oo==null?l2(ro.f,null,co):c6(ro.i,oo,co)}function ev(ro,oo){ro.c&&A2(ro.c.g,ro),ro.c=oo,ro.c&&Jl(ro.c.g,ro)}function Dm(ro,oo){ro.c&&A2(ro.c.a,ro),ro.c=oo,ro.c&&Jl(ro.c.a,ro)}function uy(ro,oo){ro.i&&A2(ro.i.j,ro),ro.i=oo,ro.i&&Jl(ro.i.j,ro)}function Om(ro,oo){ro.d&&A2(ro.d.e,ro),ro.d=oo,ro.d&&Jl(ro.d.e,ro)}function mue(ro,oo){ro.a&&A2(ro.a.k,ro),ro.a=oo,ro.a&&Jl(ro.a.k,ro)}function vue(ro,oo){ro.b&&A2(ro.b.f,ro),ro.b=oo,ro.b&&Jl(ro.b.f,ro)}function _Ke(ro,oo){WCt(ro,ro.b,ro.c),bo(ro.b.b,68),oo&&bo(oo.b,68).b}function L$t(ro,oo){return sp(bo(ro.c,65).c.e.b,bo(oo.c,65).c.e.b)}function B$t(ro,oo){return sp(bo(ro.c,65).c.e.a,bo(oo.c,65).c.e.a)}function F$t(ro){return Nfe(),_f(),bo(ro.a,86).d.e!=0}function wX(ro,oo){Hs(ro.Cb,184)&&(bo(ro.Cb,184).tb=null),s2(ro,oo)}function bue(ro,oo){Hs(ro.Cb,90)&&U$(mw(bo(ro.Cb,90)),4),s2(ro,oo)}function P$t(ro,oo){rke(ro,oo),Hs(ro.Cb,90)&&U$(mw(bo(ro.Cb,90)),2)}function j$t(ro,oo){var co,fo;co=oo.c,fo=co!=null,fo&&N8(ro,new T$(oo.c))}function EKe(ro){var oo,co;return co=(RO(),oo=new EC,oo),cI(co,ro),co}function kKe(ro){var oo,co;return co=(RO(),oo=new EC,oo),cI(co,ro),co}function TKe(ro){for(var oo;;)if(oo=ro.Pb(),!ro.Ob())return oo}function z$t(ro,oo,co){return Jl(ro.a,(oX(),gde(oo,co),new OC(oo,co))),ro}function Wy(ro,oo){return vv(),Uue(oo)?new PY(oo,ro):new eH(oo,ro)}function RH(ro){return J_(),Iy(ro,0)>=0?x3(ro):uL(x3(f4(ro)))}function H$t(ro){var oo;return oo=bo(BY(ro.b),9),new sx(ro.a,oo,ro.c)}function CKe(ro,oo){var co;return co=bo(P$(D8(ro.a),oo),16),co?co.gc():0}function $Ke(ro,oo,co){var fo;rtt(oo,co,ro.c.length),fo=co-oo,Zye(ro.c,oo,fo)}function s4(ro,oo,co){rtt(oo,co,ro.gc()),this.c=ro,this.a=oo,this.b=co-oo}function B8(ro){this.c=new xp,this.b=ro.b,this.d=ro.c,this.a=ro.a}function yue(ro){this.a=lo.Math.cos(ro),this.b=lo.Math.sin(ro)}function gT(ro,oo,co,fo){this.c=ro,this.d=fo,mue(this,oo),vue(this,co)}function OSe(ro,oo){i_t.call(this,new g8(M$(ro))),qw(oo,Ict),this.a=oo}function AKe(ro,oo,co){return new Pde(ro,(aI(),Bpe),null,!1,oo,co)}function RKe(ro,oo,co){return new Pde(ro,(aI(),Ppe),oo,co,null,!1)}function q$t(){return ow(),As($s(zv,1),Pl,108,0,[aAe,oy,uA])}function V$t(){return R2(),As($s(Q1t,1),Pl,472,0,[ZS,L3,wS])}function G$t(){return iw(),As($s(Y1t,1),Pl,471,0,[fE,D3,yS])}function W$t(){return US(),As($s(fA,1),Pl,237,0,[xy,c2,Sy])}function U$t(){return SL(),As($s(e9e,1),Pl,391,0,[ige,rge,oge])}function K$t(){return s6(),As($s(wge,1),Pl,372,0,[M6,B3,N6])}function Y$t(){return kL(),As($s(e7e,1),Pl,322,0,[rF,XV,J9e])}function X$t(){return ZX(),As($s(n7e,1),Pl,351,0,[t7e,Nee,Rge])}function Q$t(){return ET(),As($s(bgt,1),Pl,460,0,[Nge,HN,u7])}function Z$t(){return SI(),As($s(qge,1),Pl,299,0,[zge,Hge,QV])}function J$t(){return b5(),As($s(Tgt,1),Pl,311,0,[ZV,d7,TR])}function eAt(){return DL(),As($s(iRe,1),Pl,390,0,[bme,rRe,ute])}function tAt(){return xv(),As($s(sbt,1),Pl,463,0,[yF,lw,u2])}function nAt(){return dQ(),As($s(vRe,1),Pl,387,0,[gRe,Cme,mRe])}function rAt(){return IL(),As($s(bRe,1),Pl,349,0,[Ame,$me,cG])}function iAt(){return RI(),As($s(wRe,1),Pl,350,0,[Rme,yRe,wF])}function oAt(){return QX(),As($s(_Re,1),Pl,352,0,[SRe,Ome,xRe])}function sAt(){return mQ(),As($s(ERe,1),Pl,388,0,[Ime,tM,$A])}function aAt(){return o6(),As($s(Cbt,1),Pl,464,0,[uG,xF,pte])}function u_(ro){return dy(As($s(_m,1),Yl,8,0,[ro.i.n,ro.n,ro.a]))}function lAt(){return NL(),As($s(zRe,1),Pl,392,0,[jRe,Dme,dG])}function OKe(){OKe=qo,Fyt=q2(new Zp,(eR(),kF),(lB(),ORe))}function xX(){xX=qo,Kme=new A2e("DFS",0),lOe=new A2e("BFS",1)}function IKe(ro,oo,co){var fo;fo=new Vre,fo.b=oo,fo.a=co,++oo.b,Jl(ro.d,fo)}function cAt(ro,oo,co){var fo;fo=new ov(co.d),G0(fo,ro),nke(oo,fo.a,fo.b)}function uAt(ro,oo){kqe(ro,s0(vm(qC(oo,24),LZ)),s0(vm(oo,LZ)))}function A$(ro,oo){if(ro<0||ro>oo)throw Cs(new Dv(J3e+ro+eTe+oo))}function qu(ro,oo){if(ro<0||ro>=oo)throw Cs(new Dv(J3e+ro+eTe+oo))}function o1(ro,oo){if(ro<0||ro>=oo)throw Cs(new Pye(J3e+ro+eTe+oo))}function Du(ro,oo){this.b=(u1(ro),ro),this.a=oo&nA?oo:oo|64|tE}function ISe(ro){var oo;return w3(ro),oo=(XC(),XC(),Mpe),UX(ro,oo)}function fAt(ro,oo,co){var fo;return fo=hB(ro,oo,!1),fo.b<=oo&&fo.a<=co}function dAt(){return FX(),As($s(nIe,1),Pl,439,0,[vve,tIe,eIe])}function hAt(){return kQ(),As($s(BOe,1),Pl,394,0,[LOe,dve,DOe])}function pAt(){return OQ(),As($s(MOe,1),Pl,445,0,[vG,$te,sve])}function gAt(){return HQ(),As($s(g2t,1),Pl,456,0,[ave,cve,lve])}function mAt(){return uq(),As($s(gOe,1),Pl,393,0,[kte,hOe,pOe])}function vAt(){return fQ(),As($s(NOe,1),Pl,300,0,[ove,IOe,OOe])}function bAt(){return x5(),As($s(LNe,1),Pl,346,0,[Gte,B4,VF])}function yAt(){return mq(),As($s(bve,1),Pl,444,0,[Ite,Nte,Mte])}function wAt(){return g_(),As($s(ENe,1),Pl,278,0,[lM,NA,cM])}function xAt(){return K8(),As($s(qNe,1),Pl,280,0,[HNe,DA,Qte])}function e6(ro){return a0(ro),Hs(ro,16)?new tw(bo(ro,16)):VO(ro.Kc())}function NSe(ro,oo){return ro&&ro.equals?ro.equals(oo):$a(ro)===$a(oo)}function vm(ro,oo){return m3(dCt(ty(ro)?Px(ro):ro,ty(oo)?Px(oo):oo))}function qS(ro,oo){return m3(hCt(ty(ro)?Px(ro):ro,ty(oo)?Px(oo):oo))}function wue(ro,oo){return m3(pCt(ty(ro)?Px(ro):ro,ty(oo)?Px(oo):oo))}function SAt(ro,oo){var co;return co=(u1(ro),ro).g,Cwe(!!co),u1(oo),co(oo)}function NKe(ro,oo){var co,fo;return fo=UO(ro,oo),co=ro.a.fd(fo),new Fje(ro,co)}function _At(ro){return ro.Db>>16!=6?null:bo(Kde(ro),241)}function EAt(ro){if(ro.p!=2)throw Cs(new F2);return s0(ro.f)&em}function kAt(ro){if(ro.p!=2)throw Cs(new F2);return s0(ro.k)&em}function Es(ro){return T1(ro.afo?1:0}function BKe(ro,oo){var co,fo;return co=que(oo),fo=co,bo(m1(ro.c,fo),17).a}function xue(ro,oo,co){var fo;fo=ro.d[oo.p],ro.d[oo.p]=ro.d[co.p],ro.d[co.p]=fo}function LAt(ro,oo,co){var fo;ro.n&&oo&&co&&(fo=new jie,Jl(ro.e,fo))}function Sue(ro,oo){if(om(ro.a,oo),oo.d)throw Cs(new ly(tut));oo.d=ro}function LSe(ro,oo){this.a=new Zl,this.d=new Zl,this.f=ro,this.c=oo}function FKe(){this.c=new xqe,this.a=new CXe,this.b=new PFe,rze()}function PKe(){W8(),this.b=new H1,this.a=new H1,this.c=new Zl}function jKe(ro,oo,co){this.d=ro,this.j=oo,this.e=co,this.o=-1,this.p=3}function zKe(ro,oo,co){this.d=ro,this.k=oo,this.f=co,this.o=-1,this.p=5}function HKe(ro,oo,co,fo,po,vo){B_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function qKe(ro,oo,co,fo,po,vo){F_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function VKe(ro,oo,co,fo,po,vo){e_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function GKe(ro,oo,co,fo,po,vo){z_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function WKe(ro,oo,co,fo,po,vo){t_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function UKe(ro,oo,co,fo,po,vo){P_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function KKe(ro,oo,co,fo,po,vo){j_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function YKe(ro,oo,co,fo,po,vo){n_e.call(this,ro,oo,co,fo,po),vo&&(this.o=-2)}function XKe(ro,oo,co,fo){vK.call(this,co),this.b=ro,this.c=oo,this.d=fo}function QKe(ro,oo){this.f=ro,this.a=(iI(),fne),this.c=fne,this.b=oo}function ZKe(ro,oo){this.g=ro,this.d=(iI(),dne),this.a=dne,this.b=oo}function BSe(ro,oo){!ro.c&&(ro.c=new Fp(ro,0)),TZ(ro.c,(rp(),nP),oo)}function BAt(ro,oo){return yzt(ro,oo,Hs(oo,102)&&(bo(oo,19).Bb&hv)!=0)}function FAt(ro,oo){return IWe(Ty(ro.q.getTime()),Ty(oo.q.getTime()))}function JKe(ro){return Cce(ro.e.Rd().gc()*ro.c.Rd().gc(),16,new ZU(ro))}function PAt(ro){return!!ro.u&&Fy(ro.u.a).i!=0&&!(ro.n&&fde(ro.n))}function jAt(ro){return!!ro.a&&vw(ro.a.a).i!=0&&!(ro.b&&dde(ro.b))}function FSe(ro,oo){return oo==0?!!ro.o&&ro.o.f!=0:ode(ro,oo)}function zAt(ro,oo,co){var fo;return fo=bo(ro.Zb().xc(oo),16),!!fo&&fo.Hc(co)}function eYe(ro,oo,co){var fo;return fo=bo(ro.Zb().xc(oo),16),!!fo&&fo.Mc(co)}function tYe(ro,oo){var co;return co=1-oo,ro.a[co]=sQ(ro.a[co],co),sQ(ro,oo)}function nYe(ro,oo){var co,fo;return fo=vm(ro,_v),co=fS(oo,32),qS(co,fo)}function rYe(ro,oo,co){var fo;fo=(a0(ro),new tw(ro)),qDt(new gKe(fo,oo,co))}function OH(ro,oo,co){var fo;fo=(a0(ro),new tw(ro)),VDt(new mKe(fo,oo,co))}function my(ro,oo,co,fo,po,vo){return MJe(ro,oo,co,vo),KEe(ro,fo),YEe(ro,po),ro}function iYe(ro,oo,co,fo){return ro.a+=""+lx(oo==null?I2:ry(oo),co,fo),ro}function Lm(ro,oo){this.a=ro,EE.call(this,ro),A$(oo,ro.gc()),this.b=oo}function oYe(ro){this.a=Al(bm,Xu,1,xEe(lo.Math.max(8,ro))<<1,5,1)}function IH(ro){return bo(v_(ro,Al(VE,T4,10,ro.c.length,0,1)),199)}function X_(ro){return bo(v_(ro,Al(dge,P1e,18,ro.c.length,0,1)),483)}function sYe(ro){return ro.a?ro.e.length==0?ro.a.a:ro.a.a+(""+ro.e):ro.c}function mL(ro){for(;ro.d>0&&ro.a[--ro.d]==0;);ro.a[ro.d++]==0&&(ro.e=0)}function aYe(ro){return T1(ro.b.b!=ro.d.a),ro.c=ro.b=ro.b.b,--ro.a,ro.c.c}function HAt(ro,oo,co){ro.a=oo,ro.c=co,ro.b.a.$b(),Fw(ro.d),d$(ro.e.a.c,0)}function lYe(ro,oo){var co;ro.e=new Aye,co=Y$(oo),Up(co,ro.c),Ost(ro,co,0)}function Jp(ro,oo,co,fo){var po;po=new WM,po.a=oo,po.b=co,po.c=fo,y0(ro.a,po)}function Xl(ro,oo,co,fo){var po;po=new WM,po.a=oo,po.b=co,po.c=fo,y0(ro.b,po)}function cYe(ro,oo,co){if(ro<0||ooco)throw Cs(new Dv(tPt(ro,oo,co)))}function NH(ro,oo){if(ro<0||ro>=oo)throw Cs(new Dv(IPt(ro,oo)));return ro}function qAt(ro){if(!("stack"in ro))try{throw ro}catch{}return ro}function x9(ro){return TD(),Hs(ro.g,10)?bo(ro.g,10):null}function VAt(ro){return y9(ro).dc()?!1:(dkt(ro,new Oo),!0)}function vT(ro){var oo;return ty(ro)?(oo=ro,oo==-0?0:oo):o8t(ro)}function uYe(ro,oo){return Hs(oo,44)?vde(ro.a,bo(oo,44)):!1}function fYe(ro,oo){return Hs(oo,44)?vde(ro.a,bo(oo,44)):!1}function dYe(ro,oo){return Hs(oo,44)?vde(ro.a,bo(oo,44)):!1}function PSe(ro){var oo;return f3(ro),oo=new Ts,r9(ro.a,new pDe(oo)),oo}function jSe(){var ro,oo,co;return oo=(co=(ro=new EC,ro),co),Jl(kMe,oo),oo}function SX(ro){var oo;return f3(ro),oo=new Xs,r9(ro.a,new gDe(oo)),oo}function GAt(ro,oo){return ro.a<=ro.b?(oo.Dd(ro.a++),!0):!1}function hYe(ro){ufe.call(this,ro,(aI(),Lpe),null,!1,null,!1)}function pYe(){pYe=qo,A0t=n0((LK(),As($s(IAe,1),Pl,489,0,[Ype])))}function gYe(){gYe=qo,TRe=aUe(Ql(1),Ql(4)),kRe=aUe(Ql(1),Ql(2))}function WAt(ro,oo){return new xce(oo,JD(Pm(oo.e),ro,ro),(_f(),!0))}function _X(ro){return new o2((qw(ro,jhe),GX(tv(tv(5,ro),ro/10|0))))}function UAt(ro){return Cce(ro.e.Rd().gc()*ro.c.Rd().gc(),273,new QU(ro))}function mYe(ro){return bo(v_(ro,Al(Fpt,Nut,12,ro.c.length,0,1)),2042)}function KAt(ro){return Pw(),!dv(ro)&&!(!dv(ro)&&ro.c.i.c==ro.d.i.c)}function YAt(ro,oo){return V8(),bo(bs(oo,(by(),_7)),17).a>=ro.gc()}function vL(ro,oo){OYt(oo,ro),yxe(ro.d),yxe(bo(bs(ro,(ou(),rte)),214))}function _ue(ro,oo){IYt(oo,ro),wxe(ro.d),wxe(bo(bs(ro,(ou(),rte)),214))}function XAt(ro,oo,co){ro.d&&A2(ro.d.e,ro),ro.d=oo,ro.d&&HC(ro.d.e,co,ro)}function QAt(ro,oo,co){return co.f.c.length>0?Kxe(ro.a,oo,co):Kxe(ro.b,oo,co)}function ZAt(ro,oo,co){var fo;fo=gMt();try{return F5t(ro,oo,co)}finally{V9t(fo)}}function t6(ro,oo){var co,fo;return co=f5(ro,oo),fo=null,co&&(fo=co.pe()),fo}function bL(ro,oo){var co,fo;return co=f5(ro,oo),fo=null,co&&(fo=co.se()),fo}function nI(ro,oo){var co,fo;return co=N$(ro,oo),fo=null,co&&(fo=co.se()),fo}function d5(ro,oo){var co,fo;return co=f5(ro,oo),fo=null,co&&(fo=j5e(co)),fo}function JAt(ro,oo,co){var fo;return fo=PI(co),xZ(ro.g,fo,oo),xZ(ro.i,oo,co),oo}function zSe(ro,oo,co){this.d=new CLe(this),this.e=ro,this.i=oo,this.f=co}function vYe(ro,oo,co,fo){this.e=null,this.c=ro,this.d=oo,this.a=co,this.b=fo}function bYe(ro,oo,co,fo){gqe(this),this.c=ro,this.e=oo,this.f=co,this.b=fo}function HSe(ro,oo,co,fo){this.d=ro,this.n=oo,this.g=co,this.o=fo,this.p=-1}function yYe(ro,oo,co,fo){return Hs(co,59)?new Yqe(ro,oo,co,fo):new Hxe(ro,oo,co,fo)}function rI(ro){return Hs(ro,16)?bo(ro,16).dc():!ro.Kc().Ob()}function wYe(ro){if(ro.e.g!=ro.b)throw Cs(new rx);return!!ro.c&&ro.d>0}function q1(ro){return T1(ro.b!=ro.d.c),ro.c=ro.b,ro.b=ro.b.a,++ro.a,ro.c.c}function qSe(ro,oo){u1(oo),Np(ro.a,ro.c,oo),ro.c=ro.c+1&ro.a.length-1,Knt(ro)}function h3(ro,oo){u1(oo),ro.b=ro.b-1&ro.a.length-1,Np(ro.a,ro.b,oo),Knt(ro)}function xYe(ro){var oo;oo=ro.Gh(),this.a=Hs(oo,71)?bo(oo,71).Ii():oo.Kc()}function e9t(ro){return new Du(P8t(bo(ro.a.md(),16).gc(),ro.a.ld()),16)}function SYe(){SYe=qo,W2t=n0((PK(),As($s(sIe,1),Pl,490,0,[yve])))}function _Ye(){_Ye=qo,K2t=n0((jK(),As($s(U2t,1),Pl,558,0,[wve])))}function EYe(){EYe=qo,dwt=n0((CD(),As($s(CIe,1),Pl,539,0,[xG])))}function t9t(){return CT(),As($s(i9e,1),Pl,389,0,[pA,r9e,uge,fge])}function n9t(){return aI(),As($s(YJ,1),Pl,304,0,[Lpe,Bpe,Fpe,Ppe])}function r9t(){return Q8(),As($s(E0t,1),Pl,332,0,[PV,FV,jV,zV])}function i9t(){return WL(),As($s(C0t,1),Pl,406,0,[HV,JJ,eee,qV])}function o9t(){return l6(),As($s(S0t,1),Pl,417,0,[BV,LV,Upe,Kpe])}function s9t(){return _I(),As($s(Tpt,1),Pl,416,0,[I6,hA,dA,o7])}function a9t(){return m_(),As($s(ngt,1),Pl,421,0,[kR,DN,LN,yge])}function l9t(){return gQ(),As($s(Gpt,1),Pl,371,0,[bge,Cee,$ee,KV])}function c9t(){return H$(),As($s(wme,1),Pl,203,0,[fte,yme,x7,w7])}function u9t(){return Q_(),As($s(hRe,1),Pl,284,0,[I4,dRe,_me,Eme])}function f9t(ro){var oo;return ro.j==(nu(),z1)&&(oo=yot(ro),z2(oo,p1))}function d9t(ro,oo){var co;co=oo.a,ev(co,oo.c.d),Om(co,oo.d.d),B$(co.a,ro.n)}function VSe(ro,oo){var co;return co=bo(p_(ro.b,oo),67),!co&&(co=new xp),co}function P8(ro){return TD(),Hs(ro.g,154)?bo(ro.g,154):null}function h9t(ro){ro.a=null,ro.e=null,d$(ro.b.c,0),d$(ro.f.c,0),ro.c=null}function EX(){EX=qo,Vge=new S2e(hN,0),x7e=new S2e("TOP_LEFT",1)}function yL(){yL=qo,_F=new E2e("UPPER",0),SF=new E2e("LOWER",1)}function p9t(ro,oo){return S8(new Vl(oo.e.a+oo.f.a/2,oo.e.b+oo.f.b/2),ro)}function kYe(ro,oo){return bo(Aw(E$(bo(Q0(ro.k,oo),15).Oc(),a7)),113)}function TYe(ro,oo){return bo(Aw(R8(bo(Q0(ro.k,oo),15).Oc(),a7)),113)}function g9t(){return eR(),As($s(ARe,1),Pl,405,0,[bte,EF,kF,TF])}function m9t(){return ML(),As($s(aOe,1),Pl,353,0,[Ume,_te,Wme,Gme])}function v9t(){return WQ(),As($s(ROe,1),Pl,354,0,[ive,$Oe,AOe,COe])}function b9t(){return Mw(),As($s(YF,1),Pl,386,0,[BG,oC,LG,MA])}function y9t(){return Gw(),As($s(Jwt,1),Pl,291,0,[NG,UE,G3,IG])}function w9t(){return S5(),As($s(Uve,1),Pl,223,0,[Wve,OG,uM,HR])}function x9t(){return CQ(),As($s(YNe,1),Pl,320,0,[Xve,WNe,KNe,UNe])}function S9t(){return vQ(),As($s(mxt,1),Pl,415,0,[Qve,QNe,XNe,ZNe])}function _9t(ro){return yX(),p2(nbe,ro)?bo(m1(nbe,ro),341).Qg():null}function ux(ro,oo,co){return oo<0?Gde(ro,co):bo(co,69).wk().Bk(ro,ro.hi(),oo)}function E9t(ro,oo,co){var fo;return fo=PI(co),xZ(ro.j,fo,oo),N0(ro.k,oo,co),oo}function k9t(ro,oo,co){var fo;return fo=PI(co),xZ(ro.d,fo,oo),N0(ro.e,oo,co),oo}function CYe(ro){var oo,co;return oo=(n3(),co=new KM,co),ro&&fZ(oo,ro),oo}function GSe(ro){var oo;return oo=ro.aj(ro.i),ro.i>0&&jy(ro.g,0,oo,0,ro.i),oo}function $Ye(ro,oo){var co;for(co=ro.j.c.length;co>24}function C9t(ro){if(ro.p!=1)throw Cs(new F2);return s0(ro.k)<<24>>24}function $9t(ro){if(ro.p!=7)throw Cs(new F2);return s0(ro.k)<<16>>16}function A9t(ro){if(ro.p!=7)throw Cs(new F2);return s0(ro.f)<<16>>16}function S9(ro,oo){return oo.e==0||ro.e==0?XB:(QI(),ehe(ro,oo))}function OYe(ro,oo){return $a(oo)===$a(ro)?"(this Map)":oo==null?I2:ry(oo)}function R9t(ro,oo,co){return Lce(Tl(Uv(wv(ro.f,oo))),Tl(Uv(wv(ro.f,co))))}function O9t(ro,oo,co){var fo;fo=bo(m1(ro.g,co),60),Jl(ro.a.c,new fm(oo,fo))}function IYe(ro,oo,co){ro.i=0,ro.e=0,oo!=co&&(vet(ro,oo,co),met(ro,oo,co))}function I9t(ro,oo,co,fo,po){var vo;vo=Nzt(po,co,fo),Jl(oo,kPt(po,vo)),mFt(ro,po,oo)}function WSe(ro,oo,co,fo,po){this.i=ro,this.a=oo,this.e=co,this.j=fo,this.f=po}function NYe(ro,oo){_Se.call(this),this.a=ro,this.b=oo,Jl(this.a.b,this)}function MYe(ro){this.b=new H1,this.c=new H1,this.d=new H1,this.a=ro}function DYe(ro,oo){var co;return co=new t9,ro.Gd(co),co.a+="..",oo.Hd(co),co.a}function LYe(ro,oo){var co;for(co=oo;co;)jC(ro,co.i,co.j),co=kp(co);return ro}function BYe(ro,oo,co){var fo;return fo=PI(co),N0(ro.b,fo,oo),N0(ro.c,oo,co),oo}function h5(ro){var oo;for(oo=0;ro.Ob();)ro.Pb(),oo=tv(oo,1);return GX(oo)}function RE(ro,oo){vv();var co;return co=bo(ro,69).vk(),IFt(co,oo),co.xl(oo)}function N9t(ro,oo,co){if(co){var fo=co.oe();ro.a[oo]=fo(co)}else delete ro.a[oo]}function USe(ro,oo){var co;co=ro.q.getHours(),ro.q.setFullYear(oo+$3),uB(ro,co)}function M9t(ro,oo){return bo(oo==null?Uv(wv(ro.f,null)):OD(ro.i,oo),288)}function KSe(ro,oo){return ro==(a1(),Vp)&&oo==Vp?4:ro==Vp||oo==Vp?8:32}function kX(ro,oo,co){return _Z(ro,oo,co,Hs(oo,102)&&(bo(oo,19).Bb&hv)!=0)}function D9t(ro,oo,co){return tN(ro,oo,co,Hs(oo,102)&&(bo(oo,19).Bb&hv)!=0)}function L9t(ro,oo,co){return Tzt(ro,oo,co,Hs(oo,102)&&(bo(oo,19).Bb&hv)!=0)}function YSe(ro){ro.b!=ro.c&&(ro.a=Al(bm,Xu,1,8,5,1),ro.b=0,ro.c=0)}function wL(ro){return T1(ro.a=0&&ro.a[co]===oo[co];co--);return co<0}function TX(ro){var oo;return ro?new Ixe(ro):(oo=new V_,lfe(oo,ro),oo)}function q9t(ro,oo){var co,fo;fo=!1;do co=ret(ro,oo),fo=fo|co;while(co);return fo}function V9t(ro){ro&&m8t((Dye(),N$e)),--qJ,ro&&VJ!=-1&&(MEt(VJ),VJ=-1)}function CX(ro){E5e(),kqe(this,s0(vm(qC(ro,24),LZ)),s0(vm(ro,LZ)))}function HYe(){HYe=qo,q1t=n0((LQ(),As($s(cAe,1),Pl,436,0,[Hpe,lAe])))}function qYe(){qYe=qo,V1t=n0((qX(),As($s(fAe,1),Pl,435,0,[uAe,qpe])))}function VYe(){VYe=qo,W0t=n0((VX(),As($s(PAe,1),Pl,432,0,[ege,ree])))}function GYe(){GYe=qo,Hpt=n0((vI(),As($s(zpt,1),Pl,517,0,[WV,pge])))}function WYe(){WYe=qo,$gt=n0((EX(),As($s(S7e,1),Pl,429,0,[Vge,x7e])))}function UYe(){UYe=qo,vgt=n0((YH(),As($s(s7e,1),Pl,428,0,[Mee,o7e])))}function KYe(){KYe=qo,xgt=n0((HH(),As($s(c7e,1),Pl,488,0,[l7e,Lee])))}function YYe(){YYe=qo,obt=n0((UH(),As($s(pRe,1),Pl,430,0,[kme,Tme])))}function XYe(){XYe=qo,Nbt=n0((yL(),As($s(Ibt,1),Pl,531,0,[_F,SF])))}function QYe(){QYe=qo,hgt=n0((DX(),As($s(Z9e,1),Pl,431,0,[Q9e,Age])))}function ZYe(){ZYe=qo,Byt=n0((xX(),As($s(cOe,1),Pl,433,0,[Kme,lOe])))}function JYe(){JYe=qo,Hyt=n0((oQ(),As($s(uOe,1),Pl,501,0,[Ete,k7])))}function eXe(){eXe=qo,jbt=n0((Y_(),As($s(Pbt,1),Pl,523,0,[W6,N4])))}function tXe(){tXe=qo,Hbt=n0((c_(),As($s(zbt,1),Pl,522,0,[JT,C_])))}function nXe(){nXe=qo,ryt=n0((VS(),As($s(nyt,1),Pl,528,0,[AA,z3])))}function rXe(){rXe=qo,uyt=n0((JC(),As($s(cyt,1),Pl,465,0,[H3,S7])))}function iXe(){iXe=qo,Gyt=n0((BX(),As($s(dOe,1),Pl,434,0,[fOe,eve])))}function oXe(){oXe=qo,j2t=n0((AX(),As($s(JOe,1),Pl,491,0,[mve,ZOe])))}function sXe(){sXe=qo,H2t=n0((gfe(),As($s(oIe,1),Pl,492,0,[rIe,iIe])))}function aXe(){aXe=qo,Y2t=n0((BH(),As($s(aIe,1),Pl,438,0,[xve,Dte])))}function lXe(){lXe=qo,hwt=n0((sq(),As($s(AIe,1),Pl,437,0,[Bte,$Ie])))}function cXe(){cXe=qo,hxt=n0((yce(),As($s(Zte,1),Pl,347,0,[VNe,GNe])))}function G9t(){return _g(),As($s(HF,1),Pl,88,0,[R_,ey,qv,A_,Cx])}function W9t(){return nu(),As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1])}function U9t(ro,oo,co){return bo(oo==null?l2(ro.f,null,co):c6(ro.i,oo,co),288)}function K9t(ro){return(ro.k==(a1(),Vp)||ro.k==Kp)&&gp(ro,(Wl(),aF))}function $ue(ro){return ro.c&&ro.d?DSe(ro.c)+"->"+DSe(ro.d):"e_"+PC(ro)}function Hm(ro,oo){var co,fo;for(u1(oo),fo=ro.Kc();fo.Ob();)co=fo.Pb(),oo.Cd(co)}function Y9t(ro,oo){var co;co=new f8,pT(co,"x",oo.a),pT(co,"y",oo.b),N8(ro,co)}function X9t(ro,oo){var co;co=new f8,pT(co,"x",oo.a),pT(co,"y",oo.b),N8(ro,co)}function uXe(ro,oo){var co;for(co=oo;co;)jC(ro,-co.i,-co.j),co=kp(co);return ro}function QSe(ro,oo){var co,fo;for(co=oo,fo=0;co>0;)fo+=ro.a[co],co-=co&-co;return fo}function fx(ro,oo,co){var fo;return fo=(qu(oo,ro.c.length),ro.c[oo]),ro.c[oo]=co,fo}function ZSe(ro,oo,co){ro.a.c.length=0,xUt(ro,oo,co),ro.a.c.length==0||KVt(ro,oo)}function MH(ro){ro.i=0,jz(ro.b,null),jz(ro.c,null),ro.a=null,ro.e=null,++ro.g}function $X(){$X=qo,E_=!0,N1t=!1,M1t=!1,L1t=!1,D1t=!1}function Aue(ro){$X(),!E_&&(this.c=ro,this.e=!0,this.a=new Zl)}function fXe(ro,oo){this.c=0,this.b=oo,MHe.call(this,ro,17493),this.a=this.c}function dXe(ro){_ct(),wFe(this),this.a=new xp,IEe(this,ro),y0(this.a,ro)}function hXe(){Qle(this),this.b=new Vl(Tp,Tp),this.a=new Vl(am,am)}function AX(){AX=qo,mve=new I2e(ATe,0),ZOe=new I2e("TARGET_WIDTH",1)}function _9(ro,oo){return(w3(ro),OO(new Ou(ro,new T_e(oo,ro.a)))).Bd(SR)}function Q9t(){return Km(),As($s(t9e,1),Pl,367,0,[xS,qE,zy,Qy,Jv])}function Z9t(){return V$(),As($s(igt,1),Pl,375,0,[YV,Oee,Iee,Ree,Aee])}function J9t(){return y4(),As($s(i7e,1),Pl,348,0,[Oge,r7e,Ige,zN,jN])}function e7t(){return GL(),As($s(sRe,1),Pl,323,0,[oRe,xme,Sme,vF,bF])}function t7t(){return yx(),As($s(D7e,1),Pl,171,0,[nG,cF,P3,uF,yA])}function n7t(){return JQ(),As($s(qyt,1),Pl,368,0,[Zme,Yme,Jme,Xme,Qme])}function r7t(){return iB(),As($s(q2t,1),Pl,373,0,[T7,LR,DF,MF,wG])}function i7t(){return Oq(),As($s(fIe,1),Pl,324,0,[lIe,Sve,uIe,_ve,cIe])}function o7t(){return YS(),As($s(WE,1),Pl,170,0,[Ku,pm,gE,eC,D4])}function s7t(){return R9(),As($s(WF,1),Pl,256,0,[W3,MG,BNe,GF,FNe])}function a7t(ro){return TK(),function(){return ZAt(ro,this,arguments)}}function dv(ro){return!ro.c||!ro.d?!1:!!ro.c.i&&ro.c.i==ro.d.i}function JSe(ro,oo){return Hs(oo,143)?Iu(ro.c,bo(oo,143).c):!1}function mw(ro){return ro.t||(ro.t=new uFe(ro),PL(new TPe(ro),0,ro.t)),ro.t}function pXe(ro){this.b=ro,g1.call(this,ro),this.a=bo(n1(this.b.a,4),129)}function gXe(ro){this.b=ro,E8.call(this,ro),this.a=bo(n1(this.b.a,4),129)}function dS(ro,oo,co,fo,po){kXe.call(this,oo,fo,po),this.c=ro,this.b=co}function e_e(ro,oo,co,fo,po){jKe.call(this,oo,fo,po),this.c=ro,this.a=co}function t_e(ro,oo,co,fo,po){zKe.call(this,oo,fo,po),this.c=ro,this.a=co}function n_e(ro,oo,co,fo,po){kXe.call(this,oo,fo,po),this.c=ro,this.a=co}function Rue(ro,oo){var co;return co=bo(p_(ro.d,oo),23),co||bo(p_(ro.e,oo),23)}function mXe(ro,oo){var co,fo;return co=oo.ld(),fo=ro.Fe(co),!!fo&&ky(fo.e,oo.md())}function vXe(ro,oo){var co;return co=oo.ld(),new OC(co,ro.e.pc(co,bo(oo.md(),16)))}function l7t(ro,oo){var co;return co=ro.a.get(oo),co??Al(bm,Xu,1,0,5,1)}function bXe(ro){var oo;return oo=ro.length,Iu(d1.substr(d1.length-oo,oo),ro)}function R1(ro){if(W1(ro))return ro.c=ro.a,ro.a.Pb();throw Cs(new ay)}function r_e(ro,oo){return oo==0||ro.e==0?ro:oo>0?mst(ro,oo):Dtt(ro,-oo)}function j8(ro,oo){return oo==0||ro.e==0?ro:oo>0?Dtt(ro,oo):mst(ro,-oo)}function i_e(ro){bEt.call(this,ro==null?I2:ry(ro),Hs(ro,82)?bo(ro,82):null)}function yXe(ro){var oo;return ro.c||(oo=ro.r,Hs(oo,90)&&(ro.c=bo(oo,29))),ro.c}function Oue(ro){var oo;return oo=new QC,Qv(oo,ro),Fl(oo,(ou(),Hv),null),oo}function wXe(ro){var oo,co;return oo=ro.c.i,co=ro.d.i,oo.k==(a1(),Kp)&&co.k==Kp}function Iue(ro){var oo,co,fo;return oo=ro&xw,co=ro>>22&xw,fo=ro<0?A5:0,h2(oo,co,fo)}function c7t(ro){var oo,co,fo,po;for(co=ro,fo=0,po=co.length;fo=0?ro.Lh(fo,co,!0):m6(ro,oo,co)}function f7t(ro,oo,co){return sp(S8(zI(ro),Pm(oo.b)),S8(zI(ro),Pm(co.b)))}function d7t(ro,oo,co){return sp(S8(zI(ro),Pm(oo.e)),S8(zI(ro),Pm(co.e)))}function h7t(ro,oo){return lo.Math.min(p3(oo.a,ro.d.d.c),p3(oo.b,ro.d.d.c))}function DH(ro,oo){ro._i(ro.i+1),XD(ro,ro.i,ro.Zi(ro.i,oo)),ro.Mi(ro.i++,oo),ro.Ni()}function xL(ro){var oo,co;++ro.j,oo=ro.g,co=ro.i,ro.g=null,ro.i=0,ro.Oi(co,oo),ro.Ni()}function xXe(ro,oo,co){var fo;fo=new rwe(ro.a),$L(fo,ro.a.a),l2(fo.f,oo,co),ro.a.a=fo}function o_e(ro,oo,co,fo){var po;for(po=0;pooo)throw Cs(new Dv(Y5e(ro,oo,"index")));return ro}function l4(ro,oo){var co;return co=(qu(oo,ro.c.length),ro.c[oo]),Zye(ro.c,oo,1),co}function l_e(ro,oo){var co,fo;return co=(u1(ro),ro),fo=(u1(oo),oo),co==fo?0:cooo.p?-1:0}function AXe(ro){var oo;return ro.a||(oo=ro.r,Hs(oo,156)&&(ro.a=bo(oo,156))),ro.a}function y7t(ro,oo,co){var fo;return++ro.e,--ro.f,fo=bo(ro.d[oo].gd(co),136),fo.md()}function w7t(ro){var oo,co;return oo=ro.ld(),co=bo(ro.md(),16),pH(co.Nc(),new uae(oo))}function RXe(ro,oo){return p2(ro.a,oo)?(z8(ro.a,oo),!0):!1}function H8(ro,oo,co){return NH(oo,ro.e.Rd().gc()),NH(co,ro.c.Rd().gc()),ro.a[oo][co]}function OX(ro,oo,co){this.a=ro,this.b=oo,this.c=co,Jl(ro.t,this),Jl(oo.i,this)}function IX(ro,oo,co,fo){this.f=ro,this.e=oo,this.d=co,this.b=fo,this.c=fo?fo.d:null}function LH(){this.b=new xp,this.a=new xp,this.b=new xp,this.a=new xp}function iI(){iI=qo;var ro,oo;fne=(RO(),oo=new wK,oo),dne=(ro=new qae,ro)}function x7t(ro){var oo;return w3(ro),oo=new SGe(ro,ro.a.e,ro.a.d|4),new Awe(ro,oo)}function OXe(ro){var oo;for(f3(ro),oo=0;ro.a.Bd(new ba);)oo=tv(oo,1);return oo}function NX(ro,oo){return u1(oo),ro.c=0,"Initial capacity must not be negative")}function MX(){MX=qo,LF=new np("org.eclipse.elk.labels.labelManager")}function IXe(){IXe=qo,W9e=new Rp("separateLayerConnections",(gQ(),bge))}function VS(){VS=qo,AA=new C2e("REGULAR",0),z3=new C2e("CRITICAL",1)}function BH(){BH=qo,xve=new M2e("FIXED",0),Dte=new M2e("CENTER_NODE",1)}function DX(){DX=qo,Q9e=new y2e("QUADRATIC",0),Age=new y2e("SCANLINE",1)}function NXe(){NXe=qo,pgt=n0((kL(),As($s(e7e,1),Pl,322,0,[rF,XV,J9e])))}function MXe(){MXe=qo,ggt=n0((ZX(),As($s(n7e,1),Pl,351,0,[t7e,Nee,Rge])))}function DXe(){DXe=qo,ugt=n0((s6(),As($s(wge,1),Pl,372,0,[M6,B3,N6])))}function LXe(){LXe=qo,ygt=n0((ET(),As($s(bgt,1),Pl,460,0,[Nge,HN,u7])))}function BXe(){BXe=qo,kgt=n0((SI(),As($s(qge,1),Pl,299,0,[zge,Hge,QV])))}function FXe(){FXe=qo,Cgt=n0((b5(),As($s(Tgt,1),Pl,311,0,[ZV,d7,TR])))}function PXe(){PXe=qo,ebt=n0((DL(),As($s(iRe,1),Pl,390,0,[bme,rRe,ute])))}function jXe(){jXe=qo,lbt=n0((dQ(),As($s(vRe,1),Pl,387,0,[gRe,Cme,mRe])))}function zXe(){zXe=qo,cbt=n0((IL(),As($s(bRe,1),Pl,349,0,[Ame,$me,cG])))}function HXe(){HXe=qo,abt=n0((xv(),As($s(sbt,1),Pl,463,0,[yF,lw,u2])))}function qXe(){qXe=qo,ubt=n0((RI(),As($s(wRe,1),Pl,350,0,[Rme,yRe,wF])))}function VXe(){VXe=qo,fbt=n0((QX(),As($s(_Re,1),Pl,352,0,[SRe,Ome,xRe])))}function GXe(){GXe=qo,dbt=n0((mQ(),As($s(ERe,1),Pl,388,0,[Ime,tM,$A])))}function WXe(){WXe=qo,hyt=n0((NL(),As($s(zRe,1),Pl,392,0,[jRe,Dme,dG])))}function UXe(){UXe=qo,Wyt=n0((uq(),As($s(gOe,1),Pl,393,0,[kte,hOe,pOe])))}function KXe(){KXe=qo,h2t=n0((fQ(),As($s(NOe,1),Pl,300,0,[ove,IOe,OOe])))}function YXe(){YXe=qo,p2t=n0((OQ(),As($s(MOe,1),Pl,445,0,[vG,$te,sve])))}function XXe(){XXe=qo,m2t=n0((HQ(),As($s(g2t,1),Pl,456,0,[ave,cve,lve])))}function QXe(){QXe=qo,y2t=n0((kQ(),As($s(BOe,1),Pl,394,0,[LOe,dve,DOe])))}function ZXe(){ZXe=qo,z2t=n0((FX(),As($s(nIe,1),Pl,439,0,[vve,tIe,eIe])))}function JXe(){JXe=qo,$bt=n0((o6(),As($s(Cbt,1),Pl,464,0,[uG,xF,pte])))}function eQe(){eQe=qo,X1t=n0((iw(),As($s(Y1t,1),Pl,471,0,[fE,D3,yS])))}function tQe(){tQe=qo,K1t=n0((US(),As($s(fA,1),Pl,237,0,[xy,c2,Sy])))}function nQe(){nQe=qo,Z1t=n0((R2(),As($s(Q1t,1),Pl,472,0,[ZS,L3,wS])))}function rQe(){rQe=qo,B1t=n0((ow(),As($s(zv,1),Pl,108,0,[aAe,oy,uA])))}function iQe(){iQe=qo,bpt=n0((SL(),As($s(e9e,1),Pl,391,0,[ige,rge,oge])))}function oQe(){oQe=qo,Zwt=n0((x5(),As($s(LNe,1),Pl,346,0,[Gte,B4,VF])))}function sQe(){sQe=qo,G2t=n0((mq(),As($s(bve,1),Pl,444,0,[Ite,Nte,Mte])))}function aQe(){aQe=qo,Kwt=n0((g_(),As($s(ENe,1),Pl,278,0,[lM,NA,cM])))}function lQe(){lQe=qo,dxt=n0((K8(),As($s(qNe,1),Pl,280,0,[HNe,DA,Qte])))}function h_(ro,oo){return!ro.o&&(ro.o=new V2((Ny(),XE),F4,ro,0)),Xfe(ro.o,oo)}function S7t(ro,oo){var co;ro.C&&(co=bo(Rv(ro.b,oo),127).n,co.d=ro.C.d,co.a=ro.C.a)}function h_e(ro){var oo,co,fo,po;po=ro.d,oo=ro.a,co=ro.b,fo=ro.c,ro.d=co,ro.a=fo,ro.b=po,ro.c=oo}function _7t(ro){return!ro.g&&(ro.g=new QM),!ro.g.b&&(ro.g.b=new sFe(ro)),ro.g.b}function FH(ro){return!ro.g&&(ro.g=new QM),!ro.g.c&&(ro.g.c=new cFe(ro)),ro.g.c}function E7t(ro){return!ro.g&&(ro.g=new QM),!ro.g.d&&(ro.g.d=new aFe(ro)),ro.g.d}function k7t(ro){return!ro.g&&(ro.g=new QM),!ro.g.a&&(ro.g.a=new lFe(ro)),ro.g.a}function T7t(ro,oo,co,fo){return co&&(fo=co.Rh(oo,Ap(co.Dh(),ro.c.uk()),null,fo)),fo}function C7t(ro,oo,co,fo){return co&&(fo=co.Th(oo,Ap(co.Dh(),ro.c.uk()),null,fo)),fo}function Lue(ro,oo,co,fo){var po;return po=Al(Q1,E0,28,oo+1,15,1),OGt(po,ro,oo,co,fo),po}function Al(ro,oo,co,fo,po,vo){var xo;return xo=Pnt(po,fo),po!=10&&As($s(ro,vo),oo,co,po,xo),xo}function $7t(ro,oo,co){var fo,po;for(po=new xI(oo,ro),fo=0;foco||oo=0?ro.Lh(co,!0,!0):m6(ro,oo,!0)}function G7t(ro,oo,co){var fo;return fo=het(ro,oo,co),ro.b=new aQ(fo.c.length),B4e(ro,fo)}function W7t(ro){if(ro.b<=0)throw Cs(new ay);return--ro.b,ro.a-=ro.c.c,Ql(ro.a)}function U7t(ro){var oo;if(!ro.a)throw Cs(new xUe);return oo=ro.a,ro.a=kp(ro.a),oo}function K7t(ro){for(;!ro.a;)if(!UVe(ro.c,new mDe(ro)))return!1;return!0}function q8(ro){var oo;return a0(ro),Hs(ro,204)?(oo=bo(ro,204),oo):new mae(ro)}function Y7t(ro){LX(),bo(ro.of(($0(),IA)),181).Fc((sw(),DG)),ro.qf(qve,null)}function LX(){LX=qo,mwt=new gU,bwt=new xie,vwt=BOt(($0(),qve),mwt,V3,bwt)}function BX(){BX=qo,fOe=new O2e("LEAF_NUMBER",0),eve=new O2e("NODE_SIZE",1)}function zue(ro){ro.a=Al(Q1,E0,28,ro.b+1,15,1),ro.c=Al(Q1,E0,28,ro.b,15,1),ro.d=0}function X7t(ro,oo){ro.a.Ne(oo.d,ro.b)>0&&(Jl(ro.c,new pxe(oo.c,oo.d,ro.d)),ro.b=oo.d)}function E_e(ro,oo){if(ro.g==null||oo>=ro.i)throw Cs(new Wle(oo,ro.i));return ro.g[oo]}function dQe(ro,oo,co){if(CI(ro,co),co!=null&&!ro.fk(co))throw Cs(new jae);return co}function Hue(ro,oo){return KH(oo)!=10&&As(Nw(oo),oo.Sm,oo.__elementTypeId$,KH(oo),ro),ro}function sI(ro,oo,co,fo){var po;fo=(XC(),fo||eAe),po=ro.slice(oo,co),X5e(po,ro,oo,co,-oo,fo)}function dx(ro,oo,co,fo,po){return oo<0?m6(ro,co,fo):bo(co,69).wk().yk(ro,ro.hi(),oo,fo,po)}function Q7t(ro,oo){return sp(na(Tl(bs(ro,(Wl(),B6)))),na(Tl(bs(oo,B6))))}function hQe(){hQe=qo,O1t=n0((aI(),As($s(YJ,1),Pl,304,0,[Lpe,Bpe,Fpe,Ppe])))}function aI(){aI=qo,Lpe=new VK("All",0),Bpe=new rqe,Fpe=new dqe,Ppe=new nqe}function iw(){iw=qo,fE=new vle(fR,0),D3=new vle(hN,1),yS=new vle(dR,2)}function pQe(){pQe=qo,EZ(),NMe=Tp,ySt=am,MMe=new M1(Tp),wSt=new M1(am)}function gQe(){gQe=qo,_0t=n0((l6(),As($s(S0t,1),Pl,417,0,[BV,LV,Upe,Kpe])))}function mQe(){mQe=qo,$0t=n0((WL(),As($s(C0t,1),Pl,406,0,[HV,JJ,eee,qV])))}function vQe(){vQe=qo,k0t=n0((Q8(),As($s(E0t,1),Pl,332,0,[PV,FV,jV,zV])))}function bQe(){bQe=qo,Npt=n0((CT(),As($s(i9e,1),Pl,389,0,[pA,r9e,uge,fge])))}function yQe(){yQe=qo,Cpt=n0((_I(),As($s(Tpt,1),Pl,416,0,[I6,hA,dA,o7])))}function wQe(){wQe=qo,rgt=n0((m_(),As($s(ngt,1),Pl,421,0,[kR,DN,LN,yge])))}function xQe(){xQe=qo,Wpt=n0((gQ(),As($s(Gpt,1),Pl,371,0,[bge,Cee,$ee,KV])))}function SQe(){SQe=qo,tbt=n0((H$(),As($s(wme,1),Pl,203,0,[fte,yme,x7,w7])))}function _Qe(){_Qe=qo,ibt=n0((Q_(),As($s(hRe,1),Pl,284,0,[I4,dRe,_me,Eme])))}function HH(){HH=qo,l7e=new x2e(sE,0),Lee=new x2e("IMPROVE_STRAIGHTNESS",1)}function EQe(ro,oo){var co,fo;return fo=oo/ro.c.Rd().gc()|0,co=oo%ro.c.Rd().gc(),H8(ro,fo,co)}function kQe(ro){var oo;if(ro.nl())for(oo=ro.i-1;oo>=0;--oo)Gs(ro,oo);return GSe(ro)}function k_e(ro){var oo,co;if(!ro.b)return null;for(co=ro.b;oo=co.a[0];)co=oo;return co}function TQe(ro){var oo,co;if(!ro.b)return null;for(co=ro.b;oo=co.a[1];)co=oo;return co}function Z7t(ro){return Hs(ro,180)?""+bo(ro,180).a:ro==null?null:ry(ro)}function J7t(ro){return Hs(ro,180)?""+bo(ro,180).a:ro==null?null:ry(ro)}function CQe(ro,oo){if(oo.a)throw Cs(new ly(tut));om(ro.a,oo),oo.a=ro,!ro.j&&(ro.j=oo)}function T_e(ro,oo){pY.call(this,oo.zd(),oo.yd()&-16449),u1(ro),this.a=ro,this.c=oo}function e8t(ro,oo){return new xce(oo,jC(Pm(oo.e),oo.f.a+ro,oo.f.b+ro),(_f(),!1))}function t8t(ro,oo){return qO(),Jl(ro,new fm(oo,Ql(oo.e.c.length+oo.g.c.length)))}function n8t(ro,oo){return qO(),Jl(ro,new fm(oo,Ql(oo.e.c.length+oo.g.c.length)))}function $Qe(){$Qe=qo,d2t=n0((WQ(),As($s(ROe,1),Pl,354,0,[ive,$Oe,AOe,COe])))}function AQe(){AQe=qo,Lyt=n0((ML(),As($s(aOe,1),Pl,353,0,[Ume,_te,Wme,Gme])))}function RQe(){RQe=qo,fyt=n0((eR(),As($s(ARe,1),Pl,405,0,[bte,EF,kF,TF])))}function OQe(){OQe=qo,Ywt=n0((S5(),As($s(Uve,1),Pl,223,0,[Wve,OG,uM,HR])))}function IQe(){IQe=qo,ext=n0((Gw(),As($s(Jwt,1),Pl,291,0,[NG,UE,G3,IG])))}function NQe(){NQe=qo,uxt=n0((Mw(),As($s(YF,1),Pl,386,0,[BG,oC,LG,MA])))}function MQe(){MQe=qo,pxt=n0((CQ(),As($s(YNe,1),Pl,320,0,[Xve,WNe,KNe,UNe])))}function DQe(){DQe=qo,vxt=n0((vQ(),As($s(mxt,1),Pl,415,0,[Qve,QNe,XNe,ZNe])))}function FX(){FX=qo,vve=new zle(yft,0),tIe=new zle(KCe,1),eIe=new zle(sE,2)}function I$(ro,oo,co,fo,po){return u1(ro),u1(oo),u1(co),u1(fo),u1(po),new Xxe(ro,oo,fo)}function LQe(ro,oo){var co;return co=bo(z8(ro.e,oo),400),co?(kxe(co),co.e):null}function A2(ro,oo){var co;return co=Xv(ro,oo,0),co==-1?!1:(l4(ro,co),!0)}function BQe(ro,oo,co){var fo;return f3(ro),fo=new Zs,fo.a=oo,ro.a.Nb(new bze(fo,co)),fo.a}function r8t(ro){var oo;return f3(ro),oo=Al(Am,Iv,28,0,15,1),r9(ro.a,new hDe(oo)),oo}function C_e(ro){var oo;if(!ife(ro))throw Cs(new ay);return ro.e=1,oo=ro.d,ro.d=null,oo}function f4(ro){var oo;return ty(ro)&&(oo=0-ro,!isNaN(oo))?oo:m3(kI(ro))}function Xv(ro,oo,co){for(;co=0?jQ(ro,co,!0,!0):m6(ro,oo,!0)}function A_e(ro){var oo;return oo=yT(n1(ro,32)),oo==null&&(y2(ro),oo=yT(n1(ro,32))),oo}function R_e(ro){var oo;return ro.Oh()||(oo=A1(ro.Dh())-ro.ji(),ro.$h().Mk(oo)),ro.zh()}function qQe(ro,oo){RAe=new tu,T0t=oo,ZB=ro,bo(ZB.b,68),m_e(ZB,RAe,null),hlt(ZB)}function SL(){SL=qo,ige=new yle("XY",0),rge=new yle("X",1),oge=new yle("Y",2)}function R2(){R2=qo,ZS=new ble("TOP",0),L3=new ble(hN,1),wS=new ble(aTe,2)}function b5(){b5=qo,ZV=new kle(sE,0),d7=new kle("TOP",1),TR=new kle(aTe,2)}function UH(){UH=qo,kme=new _2e("INPUT_ORDER",0),Tme=new _2e("PORT_DEGREE",1)}function lI(){lI=qo,D$e=h2(xw,xw,524287),g1t=h2(0,0,oV),L$e=Iue(1),Iue(2),B$e=Iue(0)}function Uue(ro){var oo;return ro.d!=ro.r&&(oo=Hx(ro),ro.e=!!oo&&oo.lk()==ght,ro.d=oo),ro.e}function Kue(ro,oo,co){var fo;return fo=ro.g[oo],XD(ro,oo,ro.Zi(oo,co)),ro.Ri(oo,co,fo),ro.Ni(),fo}function HX(ro,oo){var co;return co=ro.dd(oo),co>=0?(ro.gd(co),!0):!1}function Yue(ro,oo){var co;for(a0(ro),a0(oo),co=!1;oo.Ob();)co=co|ro.Fc(oo.Pb());return co}function p_(ro,oo){var co;return co=bo(m1(ro.e,oo),400),co?(Eqe(ro,co),co.e):null}function VQe(ro){var oo,co;return oo=ro/60|0,co=ro%60,co==0?""+oo:""+oo+":"+(""+co)}function N$(ro,oo){var co=ro.a[oo],fo=(xfe(),Rpe)[typeof co];return fo?fo(co):PEe(typeof co)}function fy(ro,oo){var co,fo;return w3(ro),fo=new u_e(oo,ro.a),co=new XVe(fo),new Ou(ro,co)}function Xue(ro){var oo;return oo=ro.b.c.length==0?null:cu(ro.b,0),oo!=null&&sfe(ro,0),oo}function a8t(ro,oo){var co,fo,po;po=oo.c.i,co=bo(m1(ro.f,po),60),fo=co.d.c-co.e.c,lEe(oo.a,fo,0)}function O_e(ro,oo){var co;for(++ro.d,++ro.c[oo],co=oo+1;co=0;)++oo[0]}function l8t(ro,oo){m2(ro,oo==null||AY((u1(oo),oo))||isNaN((u1(oo),oo))?0:(u1(oo),oo))}function c8t(ro,oo){b2(ro,oo==null||AY((u1(oo),oo))||isNaN((u1(oo),oo))?0:(u1(oo),oo))}function u8t(ro,oo){i6(ro,oo==null||AY((u1(oo),oo))||isNaN((u1(oo),oo))?0:(u1(oo),oo))}function f8t(ro,oo){r6(ro,oo==null||AY((u1(oo),oo))||isNaN((u1(oo),oo))?0:(u1(oo),oo))}function d8t(ro,oo,co){return S8(new Vl(co.e.a+co.f.a/2,co.e.b+co.f.b/2),ro)==(u1(oo),oo)}function h8t(ro,oo){return Hs(oo,102)&&bo(oo,19).Bb&hv?new Ule(oo,ro):new xI(oo,ro)}function p8t(ro,oo){return Hs(oo,102)&&bo(oo,19).Bb&hv?new Ule(oo,ro):new xI(oo,ro)}function KH(ro){return ro.__elementTypeCategory$==null?10:ro.__elementTypeCategory$}function UQe(ro,oo){return oo==(mce(),mce(),$1t)?ro.toLocaleLowerCase():ro.toLowerCase()}function KQe(ro){if(!ro.e)throw Cs(new ay);return ro.c=ro.a=ro.e,ro.e=ro.e.e,--ro.d,ro.a.f}function I_e(ro){if(!ro.c)throw Cs(new ay);return ro.e=ro.a=ro.c,ro.c=ro.c.c,++ro.d,ro.a.f}function YQe(ro){var oo;for(++ro.a,oo=ro.c.a.length;ro.aro.a[fo]&&(fo=co);return fo}function XQe(ro){var oo;return oo=bo(bs(ro,(Wl(),D6)),313),oo?oo.a==ro:!1}function QQe(ro){var oo;return oo=bo(bs(ro,(Wl(),D6)),313),oo?oo.i==ro:!1}function ZQe(){ZQe=qo,Spt=n0((Km(),As($s(t9e,1),Pl,367,0,[xS,qE,zy,Qy,Jv])))}function JQe(){JQe=qo,ogt=n0((V$(),As($s(igt,1),Pl,375,0,[YV,Oee,Iee,Ree,Aee])))}function eZe(){eZe=qo,mgt=n0((y4(),As($s(i7e,1),Pl,348,0,[Oge,r7e,Ige,zN,jN])))}function tZe(){tZe=qo,nbt=n0((GL(),As($s(sRe,1),Pl,323,0,[oRe,xme,Sme,vF,bF])))}function nZe(){nZe=qo,Agt=n0((yx(),As($s(D7e,1),Pl,171,0,[nG,cF,P3,uF,yA])))}function rZe(){rZe=qo,Vyt=n0((JQ(),As($s(qyt,1),Pl,368,0,[Zme,Yme,Jme,Xme,Qme])))}function iZe(){iZe=qo,V2t=n0((iB(),As($s(q2t,1),Pl,373,0,[T7,LR,DF,MF,wG])))}function oZe(){oZe=qo,X2t=n0((Oq(),As($s(fIe,1),Pl,324,0,[lIe,Sve,uIe,_ve,cIe])))}function sZe(){sZe=qo,Uwt=n0((_g(),As($s(HF,1),Pl,88,0,[R_,ey,qv,A_,Cx])))}function aZe(){aZe=qo,ywt=n0((YS(),As($s(WE,1),Pl,170,0,[Ku,pm,gE,eC,D4])))}function lZe(){lZe=qo,nxt=n0((R9(),As($s(WF,1),Pl,256,0,[W3,MG,BNe,GF,FNe])))}function cZe(){cZe=qo,oxt=n0((nu(),As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1])))}function qX(){qX=qo,uAe=new h2e("BY_SIZE",0),qpe=new h2e("BY_SIZE_AND_SHAPE",1)}function VX(){VX=qo,ege=new m2e("EADES",0),ree=new m2e("FRUCHTERMAN_REINGOLD",1)}function YH(){YH=qo,Mee=new w2e("READING_DIRECTION",0),o7e=new w2e("ROTATION",1)}function _L(){_L=qo,Rpt=new q7,Opt=new dP,$pt=new vM,Apt=new t$,Ipt=new hP}function uZe(ro){this.b=new Zl,this.a=new Zl,this.c=new Zl,this.d=new Zl,this.e=ro}function fZe(ro){this.g=ro,this.f=new Zl,this.a=lo.Math.min(this.g.c.c,this.g.d.c)}function dZe(ro,oo,co){CY.call(this),D_e(this),this.a=ro,this.c=co,this.b=oo.d,this.f=oo.e}function w8t(ro,oo,co){var fo,po;for(po=new _s(co);po.a=0&&oo0?oo-1:oo,UPe(W_t(LZe(xxe(new u8,co),ro.n),ro.j),ro.k)}function Pv(ro){var oo,co;co=(oo=new Vae,oo),Y1((!ro.q&&(ro.q=new Bl(eS,ro,11,10)),ro.q),co)}function N_e(ro){return(ro.i&2?"interface ":ro.i&1?"":"class ")+(c5(ro),ro.o)}function GX(ro){return Iy(ro,q0)>0?q0:Iy(ro,Ym)<0?Ym:s0(ro)}function M$(ro){return ro<3?(qw(ro,Lct),ro+1):ro=-.01&&ro.a<=x_&&(ro.a=0),ro.b>=-.01&&ro.b<=x_&&(ro.b=0),ro}function E9(ro){j9();var oo,co;for(co=QCe,oo=0;ooco&&(co=ro[oo]);return co}function mZe(ro,oo){var co;if(co=jq(ro.Dh(),oo),!co)throw Cs(new i1(I3+oo+q0e));return co}function D$(ro,oo){var co;for(co=ro;kp(co);)if(co=kp(co),co==oo)return!0;return!1}function O8t(ro,oo){var co,fo,po;for(fo=oo.a.ld(),co=bo(oo.a.md(),16).gc(),po=0;poro||ro>oo)throw Cs(new jye("fromIndex: 0, toIndex: "+ro+Y3e+oo))}function n6(ro){if(ro<0)throw Cs(new i1("Illegal Capacity: "+ro));this.g=this.aj(ro)}function M_e(ro,oo){return s_(),hS(C3),lo.Math.abs(ro-oo)<=C3||ro==oo||isNaN(ro)&&isNaN(oo)}function Jue(ro,oo){var co,fo,po,vo;for(fo=ro.d,po=0,vo=fo.length;po0&&(ro.a/=oo,ro.b/=oo),ro}function zw(ro){var oo;return ro.w?ro.w:(oo=_At(ro),oo&&!oo.Vh()&&(ro.w=oo),oo)}function cI(ro,oo){var co,fo;fo=ro.a,co=CIt(ro,oo,null),fo!=oo&&!ro.e&&(co=iN(ro,oo,co)),co&&co.oj()}function xZe(ro,oo,co){var fo,po;fo=oo;do po=na(ro.p[fo.p])+co,ro.p[fo.p]=po,fo=ro.a[fo.p];while(fo!=oo)}function SZe(ro,oo,co){var fo=function(){return ro.apply(fo,arguments)};return oo.apply(fo,co),fo}function F8t(ro){var oo;return ro==null?null:(oo=bo(ro,195),XBt(oo,oo.length))}function Gs(ro,oo){if(ro.g==null||oo>=ro.i)throw Cs(new Wle(oo,ro.i));return ro.Wi(oo,ro.g[oo])}function P8t(ro,oo){Hu();var co,fo;for(fo=new Zl,co=0;co=14&&oo<=16))),ro}function e0(ro,oo){var co;return u1(oo),co=ro[":"+oo],mH(!!co,"Enum constant undefined: "+oo),co}function V1(ro,oo,co,fo,po,vo){var xo;return xo=Kce(ro,oo),BZe(co,xo),xo.i=po?8:0,xo.f=fo,xo.e=po,xo.g=vo,xo}function B_e(ro,oo,co,fo,po){this.d=oo,this.k=fo,this.f=po,this.o=-1,this.p=1,this.c=ro,this.a=co}function F_e(ro,oo,co,fo,po){this.d=oo,this.k=fo,this.f=po,this.o=-1,this.p=2,this.c=ro,this.a=co}function P_e(ro,oo,co,fo,po){this.d=oo,this.k=fo,this.f=po,this.o=-1,this.p=6,this.c=ro,this.a=co}function j_e(ro,oo,co,fo,po){this.d=oo,this.k=fo,this.f=po,this.o=-1,this.p=7,this.c=ro,this.a=co}function z_e(ro,oo,co,fo,po){this.d=oo,this.j=fo,this.e=po,this.o=-1,this.p=4,this.c=ro,this.a=co}function FZe(ro,oo){var co,fo,po,vo;for(fo=oo,po=0,vo=fo.length;po=0))throw Cs(new i1("tolerance ("+ro+") must be >= 0"));return ro}function jZe(ro,oo){var co;return Hs(oo,44)?ro.c.Mc(oo):(co=Xfe(ro,oo),IQ(ro,oo),co)}function Ov(ro,oo,co){return TT(ro,oo),s2(ro,co),d4(ro,0),L$(ro,1),b4(ro,!0),m4(ro,!0),ro}function QH(ro,oo){var co;if(co=ro.gc(),oo<0||oo>co)throw Cs(new _$(oo,co));return new Qwe(ro,oo)}function JX(ro,oo){ro.b=lo.Math.max(ro.b,oo.d),ro.e+=oo.r+(ro.a.c.length==0?0:ro.c),Jl(ro.a,oo)}function zZe(ro){w$(ro.c>=0),JNt(ro.d,ro.c)<0&&(ro.a=ro.a-1&ro.d.a.length-1,ro.b=ro.d.c),ro.c=-1}function eQ(ro){var oo,co;for(co=ro.c.Cc().Kc();co.Ob();)oo=bo(co.Pb(),16),oo.$b();ro.c.$b(),ro.d=0}function Y8t(ro){var oo,co,fo,po;for(co=ro.a,fo=0,po=co.length;fo=0}function K_e(ro,oo){ro.r>0&&ro.c0&&ro.g!=0&&K_e(ro.i,oo/ro.r*ro.i.d))}function Y_e(ro,oo){var co;co=ro.c,ro.c=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,1,co,ro.c))}function nfe(ro,oo){var co;co=ro.c,ro.c=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,4,co,ro.c))}function mI(ro,oo){var co;co=ro.k,ro.k=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,2,co,ro.k))}function rfe(ro,oo){var co;co=ro.D,ro.D=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,2,co,ro.D))}function nQ(ro,oo){var co;co=ro.f,ro.f=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,8,co,ro.f))}function rQ(ro,oo){var co;co=ro.i,ro.i=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,7,co,ro.i))}function X_e(ro,oo){var co;co=ro.a,ro.a=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,8,co,ro.a))}function Q_e(ro,oo){var co;co=ro.b,ro.b=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,0,co,ro.b))}function Z_e(ro,oo){var co;co=ro.b,ro.b=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,0,co,ro.b))}function J_e(ro,oo){var co;co=ro.c,ro.c=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,1,co,ro.c))}function eEe(ro,oo){var co;co=ro.d,ro.d=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,1,co,ro.d))}function nRt(ro,oo,co){var fo;ro.b=oo,ro.a=co,fo=(ro.a&512)==512?new lPe:new gw,ro.c=mqt(fo,ro.b,ro.a)}function JZe(ro,oo){return C5(ro.e,oo)?(vv(),Uue(oo)?new PY(oo,ro):new eH(oo,ro)):new CHe(oo,ro)}function rRt(ro){var oo,co;return 0>ro?new t2e:(oo=ro+1,co=new fXe(oo,ro),new Rwe(null,co))}function iRt(ro,oo){Hu();var co;return co=new g8(1),Cm(ro)?Bv(co,ro,oo):l2(co.f,ro,oo),new j_(co)}function oRt(ro,oo){var co,fo;return co=ro.c,fo=oo.e[ro.p],fo>0?bo(cu(co.a,fo-1),10):null}function sRt(ro,oo){var co,fo;return co=ro.o+ro.p,fo=oo.o+oo.p,cooo?(oo<<=1,oo>0?oo:vB):oo}function ife(ro){switch(uwe(ro.e!=3),ro.e){case 2:return!1;case 0:return!0}return g7t(ro)}function tJe(ro,oo){var co;return Hs(oo,8)?(co=bo(oo,8),ro.a==co.a&&ro.b==co.b):!1}function lRt(ro,oo){var co;co=new tu,bo(oo.b,68),bo(oo.b,68),bo(oo.b,68),g2(oo.a,new axe(ro,co,oo))}function nJe(ro,oo){var co,fo;for(fo=oo.vc().Kc();fo.Ob();)co=bo(fo.Pb(),44),Cq(ro,co.ld(),co.md())}function tEe(ro,oo){var co;co=ro.d,ro.d=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,11,co,ro.d))}function iQ(ro,oo){var co;co=ro.j,ro.j=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,13,co,ro.j))}function nEe(ro,oo){var co;co=ro.b,ro.b=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,21,co,ro.b))}function cRt(ro,oo){($X(),E_?null:oo.c).length==0&&bVe(oo,new El),Bv(ro.a,E_?null:oo.c,oo)}function uRt(ro,oo){oo.Ug("Hierarchical port constraint processing",1),$Mt(ro),KYt(ro),oo.Vg()}function s6(){s6=qo,M6=new wle("START",0),B3=new wle("MIDDLE",1),N6=new wle("END",2)}function oQ(){oQ=qo,Ete=new R2e("P1_NODE_PLACEMENT",0),k7=new R2e("P2_EDGE_ROUTING",1)}function g3(){g3=qo,ER=new np(wTe),see=new np(Tut),eF=new np(Cut),VV=new np($ut)}function a6(ro){var oo;return vce(ro.f.g,ro.d),T1(ro.b),ro.c=ro.a,oo=bo(ro.a.Pb(),44),ro.b=gEe(ro),oo}function rEe(ro){var oo;return ro.b==null?(t4(),t4(),WG):(oo=ro.ul()?ro.tl():ro.sl(),oo)}function rJe(ro,oo){var co;return co=oo==null?-1:Xv(ro.b,oo,0),co<0?!1:(sfe(ro,co),!0)}function pS(ro,oo){var co;return u1(oo),co=oo.g,ro.b[co]?!1:(Np(ro.b,co,oo),++ro.c,!0)}function sQ(ro,oo){var co,fo;return co=1-oo,fo=ro.a[co],ro.a[co]=fo.a[oo],fo.a[oo]=ro,ro.b=!0,fo.b=!1,fo}function fRt(ro,oo){var co,fo;for(fo=oo.Kc();fo.Ob();)co=bo(fo.Pb(),272),ro.b=!0,om(ro.e,co),co.b=ro}function dRt(ro,oo){var co,fo;return co=bo(bs(ro,(ou(),kA)),8),fo=bo(bs(oo,kA),8),sp(co.b,fo.b)}function ofe(ro,oo,co){var fo,po,vo;return vo=oo>>5,po=oo&31,fo=vm(l3(ro.n[co][vo],s0(fS(po,1))),3),fo}function iJe(ro,oo,co){var fo,po,vo;for(vo=ro.a.length-1,po=ro.b,fo=0;fo0?1:0:(!ro.c&&(ro.c=RH(Ty(ro.f))),ro.c).e}function hJe(ro,oo){oo?ro.B==null&&(ro.B=ro.D,ro.D=null):ro.B!=null&&(ro.D=ro.B,ro.B=null)}function mRt(ro,oo){return _I(),ro==I6&&oo==hA||ro==hA&&oo==I6||ro==o7&&oo==dA||ro==dA&&oo==o7}function vRt(ro,oo){return _I(),ro==I6&&oo==dA||ro==I6&&oo==o7||ro==hA&&oo==o7||ro==hA&&oo==dA}function pJe(ro,oo){return s_(),hS(x_),lo.Math.abs(0-oo)<=x_||oo==0||isNaN(0)&&isNaN(oo)?0:ro/oo}function gJe(ro,oo){return na(Tl(Aw(pq(Kv(new Ou(null,new Du(ro.c.b,16)),new SLe(ro)),oo))))}function aEe(ro,oo){return na(Tl(Aw(pq(Kv(new Ou(null,new Du(ro.c.b,16)),new xLe(ro)),oo))))}function bRt(){return Sv(),As($s(jge,1),Pl,259,0,[Fee,Tx,oF,Pee,GN,f7,sF,qN,VN,jee])}function yRt(){return qx(),As($s(fRe,1),Pl,243,0,[dte,aG,lG,lRe,cRe,aRe,uRe,hte,G6,CA])}function wRt(ro,oo){var co;oo.Ug("General Compactor",1),co=kNt(bo(zl(ro,(k3(),nve)),393)),co.Cg(ro)}function xRt(ro,oo){var co,fo;return co=bo(zl(ro,(k3(),Tte)),17),fo=bo(zl(oo,Tte),17),Oy(co.a,fo.a)}function lEe(ro,oo,co){var fo,po;for(po=G1(ro,0);po.b!=po.d.c;)fo=bo(q1(po),8),fo.a+=oo,fo.b+=co;return ro}function TL(ro,oo,co){var fo;for(fo=ro.b[co&ro.f];fo;fo=fo.b)if(co==fo.a&&K_(oo,fo.g))return fo;return null}function CL(ro,oo,co){var fo;for(fo=ro.c[co&ro.f];fo;fo=fo.d)if(co==fo.f&&K_(oo,fo.i))return fo;return null}function SRt(ro,oo,co){var fo,po,vo;for(fo=0,po=0;po>>31;fo!=0&&(ro[co]=fo)}function ufe(ro,oo,co,fo,po,vo){var xo;this.c=ro,xo=new Zl,zke(ro,xo,oo,ro.b,co,fo,po,vo),this.a=new Lm(xo,0)}function mJe(){this.c=new OK(0),this.b=new OK(XCe),this.d=new OK(dft),this.a=new OK(I1e)}function gx(ro,oo,co,fo,po,vo,xo){J1.call(this,ro,oo),this.d=co,this.e=fo,this.c=po,this.b=vo,this.a=f_(xo)}function Hp(ro,oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo){return $it(ro,oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo),qfe(ro,!1),ro}function _Rt(ro){return ro.b.c.i.k==(a1(),Kp)?bo(bs(ro.b.c.i,(Wl(),Z0)),12):ro.b.c}function vJe(ro){return ro.b.d.i.k==(a1(),Kp)?bo(bs(ro.b.d.i,(Wl(),Z0)),12):ro.b.d}function ERt(ro){var oo;return oo=SX(ro),DC(oo.a,0)?(DK(),DK(),A1t):(DK(),new Zqe(oo.b))}function ffe(ro){var oo;return oo=PSe(ro),DC(oo.a,0)?(p$(),p$(),Dpe):(p$(),new ace(oo.b))}function dfe(ro){var oo;return oo=PSe(ro),DC(oo.a,0)?(p$(),p$(),Dpe):(p$(),new ace(oo.c))}function bJe(ro){switch(ro.g){case 2:return nu(),l1;case 4:return nu(),p1;default:return ro}}function yJe(ro){switch(ro.g){case 1:return nu(),z1;case 3:return nu(),s1;default:return ro}}function wJe(ro){switch(ro.g){case 0:return new nz;case 1:return new VM;default:return null}}function G8(){G8=qo,vge=new Rp("edgelabelcenterednessanalysis.includelabel",(_f(),M3))}function cEe(){cEe=qo,Tbt=Z_(zHe(_0(_0(new Zp,(Km(),zy),(rv(),yee)),Qy,hee),Jv),bee)}function xJe(){xJe=qo,Rbt=Z_(zHe(_0(_0(new Zp,(Km(),zy),(rv(),yee)),Qy,hee),Jv),bee)}function hfe(){hfe=qo,tP=new rPe,obe=As($s(L2,1),t7,179,0,[]),Qxt=As($s(eS,1),g$e,62,0,[])}function vI(){vI=qo,WV=new v2e("TO_INTERNAL_LTR",0),pge=new v2e("TO_INPUT_DIRECTION",1)}function G2(){G2=qo,u9e=new A0,l9e=new Y0,c9e=new Rm,a9e=new wm,f9e=new jp,d9e=new im}function kRt(ro,oo){oo.Ug(qut,1),dke(lEt(new pK((kD(),new eue(ro,!1,!1,new dC))))),oo.Vg()}function TRt(ro,oo,co){co.Ug("DFS Treeifying phase",1),qNt(ro,oo),zHt(ro,oo),ro.a=null,ro.b=null,co.Vg()}function ZH(ro,oo){return _f(),Cm(ro)?l_e(ro,u0(oo)):b$(ro)?Lce(ro,Tl(oo)):v$(ro)?gCt(ro,au(oo)):ro.Fd(oo)}function $L(ro,oo){var co,fo;for(u1(oo),fo=oo.vc().Kc();fo.Ob();)co=bo(fo.Pb(),44),ro.zc(co.ld(),co.md())}function CRt(ro,oo,co){var fo;for(fo=co.Kc();fo.Ob();)if(!kX(ro,oo,fo.Pb()))return!1;return!0}function $Rt(ro,oo,co,fo,po){var vo;return co&&(vo=Ap(oo.Dh(),ro.c),po=co.Rh(oo,-1-(vo==-1?fo:vo),null,po)),po}function ARt(ro,oo,co,fo,po){var vo;return co&&(vo=Ap(oo.Dh(),ro.c),po=co.Th(oo,-1-(vo==-1?fo:vo),null,po)),po}function SJe(ro){var oo;if(ro.b==-2){if(ro.e==0)oo=-1;else for(oo=0;ro.a[oo]==0;oo++);ro.b=oo}return ro.b}function RRt(ro){if(u1(ro),ro.length==0)throw Cs(new H_("Zero length BigInteger"));DVt(this,ro)}function uEe(ro){this.i=ro.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),ro.Qc(this.g))}function _Je(ro,oo,co){this.g=ro,this.d=oo,this.e=co,this.a=new Zl,HPt(this),Hu(),Up(this.a,null)}function fEe(ro,oo){oo.q=ro,ro.d=lo.Math.max(ro.d,oo.r),ro.b+=oo.d+(ro.a.c.length==0?0:ro.c),Jl(ro.a,oo)}function bI(ro,oo){var co,fo,po,vo;return po=ro.c,co=ro.c+ro.b,vo=ro.d,fo=ro.d+ro.a,oo.a>po&&oo.avo&&oo.bpo?co=po:o1(oo,co+1),ro.a=lx(ro.a,0,oo)+(""+fo)+iSe(ro.a,co)}function IJe(ro,oo){ro.a=tv(ro.a,1),ro.c=lo.Math.min(ro.c,oo),ro.b=lo.Math.max(ro.b,oo),ro.d=tv(ro.d,oo)}function BRt(ro,oo){return oo1||ro.Ob())return++ro.a,ro.g=0,oo=ro.i,ro.Ob(),oo;throw Cs(new ay)}function LJe(ro){switch(ro.a.g){case 1:return new zze;case 3:return new Unt;default:return new Wse}}function hEe(ro,oo){switch(oo){case 1:return!!ro.n&&ro.n.i!=0;case 2:return ro.k!=null}return FSe(ro,oo)}function Ty(ro){return sV>22),po=ro.h+oo.h+(fo>>22),h2(co&xw,fo&xw,po&A5)}function VJe(ro,oo){var co,fo,po;return co=ro.l-oo.l,fo=ro.m-oo.m+(co>>22),po=ro.h-oo.h+(fo>>22),h2(co&xw,fo&xw,po&A5)}function iOt(ro){var oo,co;for(QKt(ro),co=new _s(ro.d);co.afo)throw Cs(new _$(oo,fo));return ro.Si()&&(co=lKe(ro,co)),ro.Ei(oo,co)}function EI(ro,oo,co,fo,po){var vo,xo;for(xo=co;xo<=po;xo++)for(vo=oo;vo<=fo;vo++)I9(ro,vo,xo)||wZ(ro,vo,xo,!0,!1)}function bOt(ro){j9();var oo,co,fo;for(co=Al(_m,Yl,8,2,0,1),fo=0,oo=0;oo<2;oo++)fo+=.5,co[oo]=fDt(fo,ro);return co}function kI(ro){var oo,co,fo;return oo=~ro.l+1&xw,co=~ro.m+(oo==0?1:0)&xw,fo=~ro.h+(oo==0&&co==0?1:0)&A5,h2(oo,co,fo)}function xEe(ro){var oo;if(ro<0)return Ym;if(ro==0)return 0;for(oo=vB;!(oo&ro);oo>>=1);return oo}function wfe(ro,oo,co){return ro>=128?!1:ro<64?VD(vm(fS(1,ro),co),0):VD(vm(fS(1,ro-64),oo),0)}function lq(ro,oo,co){return co==null?(!ro.q&&(ro.q=new H1),z8(ro.q,oo)):(!ro.q&&(ro.q=new H1),N0(ro.q,oo,co)),ro}function Fl(ro,oo,co){return co==null?(!ro.q&&(ro.q=new H1),z8(ro.q,oo)):(!ro.q&&(ro.q=new H1),N0(ro.q,oo,co)),ro}function tet(ro){var oo,co;return co=new RX,Qv(co,ro),Fl(co,(g3(),ER),ro),oo=new H1,UGt(ro,co,oo),xKt(ro,co,oo),co}function net(ro){var oo,co;return oo=ro.t-ro.k[ro.o.p]*ro.d+ro.j[ro.o.p]>ro.f,co=ro.u+ro.e[ro.o.p]*ro.d>ro.f*ro.s*ro.d,oo||co}function ret(ro,oo){var co,fo,po,vo;for(co=!1,fo=ro.a[oo].length,vo=0;vo=0,"Negative initial capacity"),mH(oo>=0,"Non-positive load factor"),nw(this)}function wOt(ro,oo,co,fo,po){var vo,xo;if(xo=ro.length,vo=co.length,oo<0||fo<0||po<0||oo+po>xo||fo+po>vo)throw Cs(new dye)}function kEe(ro,oo){Hu();var co,fo,po,vo,xo;for(xo=!1,fo=oo,po=0,vo=fo.length;po1||oo>=0&&ro.b<3)}function _fe(ro){var oo,co,fo;oo=~ro.l+1&xw,co=~ro.m+(oo==0?1:0)&xw,fo=~ro.h+(oo==0&&co==0?1:0)&A5,ro.l=oo,ro.m=co,ro.h=fo}function $Ee(ro){Hu();var oo,co,fo;for(fo=1,co=ro.Kc();co.Ob();)oo=co.Pb(),fo=31*fo+(oo!=null?dp(oo):0),fo=fo|0;return fo}function kOt(ro,oo,co,fo,po){var vo;return vo=v4e(ro,oo),co&&_fe(vo),po&&(ro=bDt(ro,oo),fo?N3=kI(ro):N3=h2(ro.l,ro.m,ro.h)),vo}function met(ro,oo,co){ro.g=zde(ro,oo,(nu(),p1),ro.b),ro.d=zde(ro,co,p1,ro.b),!(ro.g.c==0||ro.d.c==0)&&Xrt(ro)}function vet(ro,oo,co){ro.g=zde(ro,oo,(nu(),l1),ro.j),ro.d=zde(ro,co,l1,ro.j),!(ro.g.c==0||ro.d.c==0)&&Xrt(ro)}function AEe(ro,oo){switch(oo){case 7:return!!ro.e&&ro.e.i!=0;case 8:return!!ro.d&&ro.d.i!=0}return hke(ro,oo)}function TOt(ro,oo){switch(oo.g){case 0:Hs(ro.b,641)||(ro.b=new OJe);break;case 1:Hs(ro.b,642)||(ro.b=new RGe)}}function bet(ro){switch(ro.g){case 0:return new vie;default:throw Cs(new i1(wJ+(ro.f!=null?ro.f:""+ro.g)))}}function yet(ro){switch(ro.g){case 0:return new rz;default:throw Cs(new i1(wJ+(ro.f!=null?ro.f:""+ro.g)))}}function COt(ro,oo,co){return!OO(X0(new Ou(null,new Du(ro.c,16)),new SO(new nHe(oo,co)))).Bd((lT(),SR))}function wet(ro,oo){return S8(zI(bo(bs(oo,(by(),U6)),88)),new Vl(ro.c.e.a-ro.b.e.a,ro.c.e.b-ro.b.e.b))<=0}function $Ot(ro,oo){for(;ro.g==null&&!ro.c?$Se(ro):ro.g==null||ro.i!=0&&bo(ro.g[ro.i-1],51).Ob();)OEt(oo,lZ(ro))}function kT(ro){var oo,co;for(co=new _s(ro.a.b);co.afo?1:0}function OOt(ro){return Jl(ro.c,(W8(),gwt)),M_e(ro.a,na(Tl(iu((Yfe(),lte)))))?new Lie:new CBe(ro)}function IOt(ro){for(;!ro.d||!ro.d.Ob();)if(ro.b&&!xD(ro.b))ro.d=bo(O8(ro.b),51);else return null;return ro.d}function OEe(ro){switch(ro.g){case 1:return dft;default:case 2:return 0;case 3:return I1e;case 4:return XCe}}function NOt(){H0();var ro;return fbe||(ro=Zkt(T3("M",!0)),ro=VY(T3("M",!1),ro),fbe=ro,fbe)}function vQ(){vQ=qo,Qve=new lY("ELK",0),QNe=new lY("JSON",1),XNe=new lY("DOT",2),ZNe=new lY("SVG",3)}function IL(){IL=qo,Ame=new Ale("STACKED",0),$me=new Ale("REVERSE_STACKED",1),cG=new Ale("SEQUENCED",2)}function NL(){NL=qo,jRe=new Dle(sE,0),Dme=new Dle("MIDDLE_TO_MIDDLE",1),dG=new Dle("AVOID_OVERLAP",2)}function $I(){$I=qo,K9e=new Nx,Y9e=new d2,Qpt=new Wm,Xpt=new AP,Ypt=new Ry,U9e=(u1(Ypt),new vs)}function bQ(){bQ=qo,DNe=new BC(15),Qwt=new Mm(($0(),L4),DNe),qF=PR,ONe=Rwt,INe=nC,MNe=N7,NNe=OA}function T9(ro,oo){var co,fo,po,vo,xo;for(fo=oo,po=0,vo=fo.length;po=ro.b.c.length||(NEe(ro,2*oo+1),co=2*oo+2,co0&&(oo.Cd(co),co.i&&DIt(co))}function MEe(ro,oo,co){var fo;for(fo=co-1;fo>=0&&ro[fo]===oo[fo];fo--);return fo<0?0:ple(vm(ro[fo],_v),vm(oo[fo],_v))?-1:1}function Eet(ro,oo,co){var fo,po;this.g=ro,this.c=oo,this.a=this,this.d=this,po=eJe(co),fo=Al(c1t,rV,227,po,0,1),this.b=fo}function $fe(ro,oo,co,fo,po){var vo,xo;for(xo=co;xo<=po;xo++)for(vo=oo;vo<=fo;vo++)if(I9(ro,vo,xo))return!0;return!1}function POt(ro,oo){var co,fo;for(fo=ro.Zb().Cc().Kc();fo.Ob();)if(co=bo(fo.Pb(),16),co.Hc(oo))return!0;return!1}function ket(ro,oo,co){var fo,po,vo,xo;for(u1(co),xo=!1,vo=ro.fd(oo),po=co.Kc();po.Ob();)fo=po.Pb(),vo.Rb(fo),xo=!0;return xo}function Afe(ro,oo){var co,fo;return fo=bo(n1(ro.a,4),129),co=Al(rbe,spe,424,oo,0,1),fo!=null&&jy(fo,0,co,0,fo.length),co}function Tet(ro,oo){var co;return co=new rhe((ro.f&256)!=0,ro.i,ro.a,ro.d,(ro.f&16)!=0,ro.j,ro.g,oo),ro.e!=null||(co.c=ro),co}function jOt(ro,oo){var co;return ro===oo?!0:Hs(oo,85)?(co=bo(oo,85),B5e(uT(ro),co.vc())):!1}function Cet(ro,oo,co){var fo,po;for(po=co.Kc();po.Ob();)if(fo=bo(po.Pb(),44),ro.Be(oo,fo.md()))return!0;return!1}function $et(ro,oo,co){return ro.d[oo.p][co.p]||(qMt(ro,oo,co),ro.d[oo.p][co.p]=!0,ro.d[co.p][oo.p]=!0),ro.a[oo.p][co.p]}function zOt(ro,oo){var co;return!ro||ro==oo||!gp(oo,(Wl(),L6))?!1:(co=bo(bs(oo,(Wl(),L6)),10),co!=ro)}function Rfe(ro){switch(ro.i){case 2:return!0;case 1:return!1;case-1:++ro.c;default:return ro.$l()}}function Aet(ro){switch(ro.i){case-2:return!0;case-1:return!1;case 1:--ro.c;default:return ro._l()}}function Ret(ro){hKe.call(this,"The given string does not match the expected format for individual spacings.",ro)}function HOt(ro,oo){var co;oo.Ug("Min Size Preprocessing",1),co=W5e(ro),tp(ro,(ME(),OF),co.a),tp(ro,Ate,co.b),oo.Vg()}function qOt(ro){var oo,co,fo;for(oo=0,fo=Al(_m,Yl,8,ro.b,0,1),co=G1(ro,0);co.b!=co.d.c;)fo[oo++]=bo(q1(co),8);return fo}function Ofe(ro,oo,co){var fo,po,vo;for(fo=new xp,vo=G1(co,0);vo.b!=vo.d.c;)po=bo(q1(vo),8),y0(fo,new ov(po));ket(ro,oo,fo)}function VOt(ro,oo){var co;return co=tv(ro,oo),ple(wue(ro,oo),0)|fY(wue(ro,co),0)?co:tv(nV,wue(l3(co,63),1))}function GOt(ro,oo){var co,fo;return co=bo(ro.d.Bc(oo),16),co?(fo=ro.e.hc(),fo.Gc(co),ro.e.d-=co.gc(),co.$b(),fo):null}function Oet(ro){var oo;if(oo=ro.a.c.length,oo>0)return WO(oo-1,ro.a.c.length),l4(ro.a,oo-1);throw Cs(new CFe)}function Iet(ro,oo,co){if(ro>oo)throw Cs(new i1(BZ+ro+Zct+oo));if(ro<0||oo>co)throw Cs(new jye(BZ+ro+Z3e+oo+Y3e+co))}function AI(ro,oo){ro.D==null&&ro.B!=null&&(ro.D=ro.B,ro.B=null),rfe(ro,oo==null?null:(u1(oo),oo)),ro.C&&ro.hl(null)}function WOt(ro,oo){var co;co=iu((Yfe(),lte))!=null&&oo.Sg()!=null?na(Tl(oo.Sg()))/na(Tl(iu(lte))):1,N0(ro.b,oo,co)}function DEe(ro,oo){var co,fo;if(fo=ro.c[oo],fo!=0)for(ro.c[oo]=0,ro.d-=fo,co=oo+1;cohJ?ro-co>hJ:co-ro>hJ}function qet(ro,oo){var co;for(co=0;copo&&(xrt(oo.q,po),fo=co!=oo.q.d)),fo}function Vet(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao;return To=oo.i,Ao=oo.j,fo=ro.f,po=fo.i,vo=fo.j,xo=To-po,Eo=Ao-vo,co=lo.Math.sqrt(xo*xo+Eo*Eo),co}function zEe(ro,oo){var co,fo;return fo=NQ(ro),fo||(co=(khe(),Lot(oo)),fo=new mFe(co),Y1(fo.El(),ro)),fo}function dq(ro,oo){var co,fo;return co=bo(ro.c.Bc(oo),16),co?(fo=ro.hc(),fo.Gc(co),ro.d-=co.gc(),co.$b(),ro.mc(fo)):ro.jc()}function rIt(ro,oo){var co,fo;for(fo=yw(ro.d,1)!=0,co=!0;co;)co=!1,co=oo.c.mg(oo.e,fo),co=co|zq(ro,oo,fo,!1),fo=!fo;oEe(ro)}function Get(ro,oo,co,fo){var po,vo;ro.a=oo,vo=fo?0:1,ro.f=(po=new sit(ro.c,ro.a,co,vo),new zst(co,ro.a,po,ro.e,ro.b,ro.c==(o6(),xF)))}function wQ(ro){var oo;return T1(ro.a!=ro.b),oo=ro.d.a[ro.a],gVe(ro.b==ro.d.c&&oo!=null),ro.c=ro.a,ro.a=ro.a+1&ro.d.a.length-1,oo}function Wet(ro){var oo;if(ro.c!=0)return ro.c;for(oo=0;oo=ro.c.b:ro.a<=ro.c.b))throw Cs(new ay);return oo=ro.a,ro.a+=ro.c.c,++ro.b,Ql(oo)}function Lfe(ro){var oo;return oo=new twe(ro.a),Qv(oo,ro),Fl(oo,(Wl(),Z0),ro),oo.o.a=ro.g,oo.o.b=ro.f,oo.n.a=ro.i,oo.n.b=ro.j,oo}function Bfe(ro){return(nu(),M2).Hc(ro.j)?na(Tl(bs(ro,(Wl(),WN)))):dy(As($s(_m,1),Yl,8,0,[ro.i.n,ro.n,ro.a])).b}function oIt(ro){var oo;return oo=mY(kbt),bo(bs(ro,(Wl(),Jy)),21).Hc((Sv(),GN))&&_0(oo,(Km(),zy),(rv(),See)),oo}function sIt(ro){var oo,co,fo,po;for(po=new Yp,fo=new _s(ro);fo.a=0?oo:-oo;fo>0;)fo%2==0?(co*=co,fo=fo/2|0):(po*=co,fo-=1);return oo<0?1/po:po}function fIt(ro,oo){var co,fo,po;for(po=1,co=ro,fo=oo>=0?oo:-oo;fo>0;)fo%2==0?(co*=co,fo=fo/2|0):(po*=co,fo-=1);return oo<0?1/po:po}function y3(ro,oo){var co,fo,po,vo;return vo=(po=ro?NQ(ro):null,Rit((fo=oo,po&&po.Gl(),fo))),vo==oo&&(co=NQ(ro),co&&co.Gl()),vo}function Uet(ro,oo,co){var fo,po;return po=ro.f,ro.f=oo,ro.Db&4&&!(ro.Db&1)&&(fo=new Em(ro,1,0,po,oo),co?co.nj(fo):co=fo),co}function Ket(ro,oo,co){var fo,po;return po=ro.b,ro.b=oo,ro.Db&4&&!(ro.Db&1)&&(fo=new Em(ro,1,3,po,oo),co?co.nj(fo):co=fo),co}function qEe(ro,oo,co){var fo,po;return po=ro.a,ro.a=oo,ro.Db&4&&!(ro.Db&1)&&(fo=new Em(ro,1,1,po,oo),co?co.nj(fo):co=fo),co}function Yet(ro){var oo,co;if(ro!=null)for(co=0;co=fo||oo-129&&ro<128?(AGe(),oo=ro+128,co=H$e[oo],!co&&(co=H$e[oo]=new xs(ro)),co):new xs(ro)}function OI(ro){var oo,co;return ro>-129&&ro<128?(WGe(),oo=ro+128,co=W$e[oo],!co&&(co=W$e[oo]=new xa(ro)),co):new xa(ro)}function Zet(ro,oo){var co;ro.a.c.length>0&&(co=bo(cu(ro.a,ro.a.c.length-1),579),IEe(co,oo))||Jl(ro.a,new dXe(oo))}function vIt(ro){uS();var oo,co;oo=ro.d.c-ro.e.c,co=bo(ro.g,154),g2(co.b,new cLe(oo)),g2(co.c,new uLe(oo)),Hm(co.i,new fLe(oo))}function Jet(ro){var oo;return oo=new J4,oo.a+="VerticalSegment ",qy(oo,ro.e),oo.a+=" ",S0(oo,lwe(new tle,new _s(ro.k))),oo.a}function Ffe(ro,oo){var co,fo,po;for(co=0,po=hy(ro,oo).Kc();po.Ob();)fo=bo(po.Pb(),12),co+=bs(fo,(Wl(),aw))!=null?1:0;return co}function A9(ro,oo,co){var fo,po,vo;for(fo=0,vo=G1(ro,0);vo.b!=vo.d.c&&(po=na(Tl(q1(vo))),!(po>co));)po>=oo&&++fo;return fo}function ett(ro,oo){a0(ro);try{return ro._b(oo)}catch(co){if(co=$p(co),Hs(co,212)||Hs(co,169))return!1;throw Cs(co)}}function GEe(ro,oo){a0(ro);try{return ro.Hc(oo)}catch(co){if(co=$p(co),Hs(co,212)||Hs(co,169))return!1;throw Cs(co)}}function bIt(ro,oo){a0(ro);try{return ro.Mc(oo)}catch(co){if(co=$p(co),Hs(co,212)||Hs(co,169))return!1;throw Cs(co)}}function P$(ro,oo){a0(ro);try{return ro.xc(oo)}catch(co){if(co=$p(co),Hs(co,212)||Hs(co,169))return null;throw Cs(co)}}function yIt(ro,oo){a0(ro);try{return ro.Bc(oo)}catch(co){if(co=$p(co),Hs(co,212)||Hs(co,169))return null;throw Cs(co)}}function LL(ro,oo){switch(oo.g){case 2:case 1:return hy(ro,oo);case 3:case 4:return bx(hy(ro,oo))}return Hu(),Hu(),cv}function BL(ro){var oo;return ro.Db&64?gS(ro):(oo=new Bx(gS(ro)),oo.a+=" (name: ",Av(oo,ro.zb),oo.a+=")",oo.a)}function wIt(ro){var oo;return oo=bo(p_(ro.c.c,""),233),oo||(oo=new B8(AO($O(new Cw,""),"Other")),w4(ro.c.c,"",oo)),oo}function WEe(ro,oo,co){var fo,po;return po=ro.sb,ro.sb=oo,ro.Db&4&&!(ro.Db&1)&&(fo=new Em(ro,1,4,po,oo),co?co.nj(fo):co=fo),co}function UEe(ro,oo,co){var fo,po;return po=ro.r,ro.r=oo,ro.Db&4&&!(ro.Db&1)&&(fo=new Em(ro,1,8,po,ro.r),co?co.nj(fo):co=fo),co}function xIt(ro,oo,co){var fo,po;return fo=new m5(ro.e,4,13,(po=oo.c,po||(Pu(),N_)),null,x4(ro,oo),!1),co?co.nj(fo):co=fo,co}function SIt(ro,oo,co){var fo,po;return fo=new m5(ro.e,3,13,null,(po=oo.c,po||(Pu(),N_)),x4(ro,oo),!1),co?co.nj(fo):co=fo,co}function g4(ro,oo){var co,fo;return co=bo(oo,691),fo=co.el(),!fo&&co.fl(fo=Hs(oo,90)?new $He(ro,bo(oo,29)):new QKe(ro,bo(oo,156))),fo}function hq(ro,oo,co){var fo;ro._i(ro.i+1),fo=ro.Zi(oo,co),oo!=ro.i&&jy(ro.g,oo,ro.g,oo+1,ro.i-oo),Np(ro.g,oo,fo),++ro.i,ro.Mi(oo,co),ro.Ni()}function _It(ro,oo){var co;return oo.a&&(co=oo.a.a.length,ro.a?S0(ro.a,ro.b):ro.a=new Bw(ro.d),iYe(ro.a,oo.a,oo.d.length,co)),ro}function EIt(ro,oo){var co;ro.c=oo,ro.a=ANt(oo),ro.a<54&&(ro.f=(co=oo.d>1?nYe(oo.a[0],oo.a[1]):nYe(oo.a[0],0),vT(oo.e>0?co:f4(co))))}function pq(ro,oo){var co;return co=new Zs,ro.a.Bd(co)?(BO(),new Yae(u1(BQe(ro,co.a,oo)))):(f3(ro),BO(),BO(),rAe)}function ttt(ro,oo){var co;ro.c.length!=0&&(co=bo(v_(ro,Al(VE,T4,10,ro.c.length,0,1)),199),U2e(co,new yM),Qit(co,oo))}function ntt(ro,oo){var co;ro.c.length!=0&&(co=bo(v_(ro,Al(VE,T4,10,ro.c.length,0,1)),199),U2e(co,new W7),Qit(co,oo))}function U0(ro,oo){return Cm(ro)?Iu(ro,oo):b$(ro)?WVe(ro,oo):v$(ro)?(u1(ro),$a(ro)===$a(oo)):jxe(ro)?ro.Fb(oo):Nxe(ro)?VHe(ro,oo):NSe(ro,oo)}function mx(ro,oo,co){if(oo<0)J5e(ro,co);else{if(!co.rk())throw Cs(new i1(I3+co.xe()+LB));bo(co,69).wk().Ek(ro,ro.hi(),oo)}}function rtt(ro,oo,co){if(ro<0||oo>co)throw Cs(new Dv(BZ+ro+Z3e+oo+", size: "+co));if(ro>oo)throw Cs(new i1(BZ+ro+Zct+oo))}function itt(ro){var oo;return ro.Db&64?gS(ro):(oo=new Bx(gS(ro)),oo.a+=" (source: ",Av(oo,ro.d),oo.a+=")",oo.a)}function ott(ro){return ro>=65&&ro<=70?ro-65+10:ro>=97&&ro<=102?ro-97+10:ro>=48&&ro<=57?ro-48:0}function kIt(ro){IZ();var oo,co,fo,po;for(co=rde(),fo=0,po=co.length;fo=0?x3(ro):uL(x3(f4(ro))))}function ltt(ro,oo,co,fo,po,vo){this.e=new Zl,this.f=(xv(),yF),Jl(this.e,ro),this.d=oo,this.a=co,this.b=fo,this.f=po,this.c=vo}function $It(ro,oo,co){ro.n=cT(tT,[Yl,c1e],[376,28],14,[co,dm(lo.Math.ceil(oo/32))],2),ro.o=oo,ro.p=co,ro.j=oo-1>>1,ro.k=co-1>>1}function ctt(ro){return ro-=ro>>1&1431655765,ro=(ro>>2&858993459)+(ro&858993459),ro=(ro>>4)+ro&252645135,ro+=ro>>8,ro+=ro>>16,ro&63}function utt(ro,oo){var co,fo;for(fo=new g1(ro);fo.e!=fo.i.gc();)if(co=bo(k1(fo),142),$a(oo)===$a(co))return!0;return!1}function AIt(ro,oo,co){var fo,po,vo;return vo=(po=YI(ro.b,oo),po),vo&&(fo=bo(CZ(VH(ro,vo),""),29),fo)?x4e(ro,fo,oo,co):null}function Pfe(ro,oo,co){var fo,po,vo;return vo=(po=YI(ro.b,oo),po),vo&&(fo=bo(CZ(VH(ro,vo),""),29),fo)?S4e(ro,fo,oo,co):null}function RIt(ro,oo){var co;if(co=k9(ro.i,oo),co==null)throw Cs(new z_("Node did not exist in input."));return dEe(oo,co),null}function OIt(ro,oo){var co;if(co=jq(ro,oo),Hs(co,331))return bo(co,35);throw Cs(new i1(I3+oo+"' is not a valid attribute"))}function PL(ro,oo,co){var fo;if(fo=ro.gc(),oo>fo)throw Cs(new _$(oo,fo));if(ro.Si()&&ro.Hc(co))throw Cs(new i1(CV));ro.Gi(oo,co)}function IIt(ro,oo){oo.Ug("Sort end labels",1),zp(X0(fy(new Ou(null,new Du(ro.b,16)),new bne),new z5),new yne),oo.Vg()}function _g(){_g=qo,R_=new Qz(SB,0),ey=new Qz(dR,1),qv=new Qz(fR,2),A_=new Qz(S1e,3),Cx=new Qz("UP",4)}function mq(){mq=qo,Ite=new Hle("P1_STRUCTURE",0),Nte=new Hle("P2_PROCESSING_ORDER",1),Mte=new Hle("P3_EXECUTION",2)}function ftt(){ftt=qo,jyt=Z_(Z_(AD(Z_(Z_(AD(_0(new Zp,(eR(),EF),(lB(),Mme)),kF),LRe),FRe),TF),IRe),PRe)}function NIt(ro){switch(bo(bs(ro,(Wl(),GT)),311).g){case 1:Fl(ro,GT,(b5(),TR));break;case 2:Fl(ro,GT,(b5(),d7))}}function MIt(ro){switch(ro){case 0:return new XFe;case 1:return new KFe;case 2:return new YFe;default:throw Cs(new Az)}}function dtt(ro){switch(ro.g){case 2:return ey;case 1:return qv;case 4:return A_;case 3:return Cx;default:return R_}}function QEe(ro,oo){switch(ro.b.g){case 0:case 1:return oo;case 2:case 3:return new ax(oo.d,0,oo.a,oo.b);default:return null}}function ZEe(ro){switch(ro.g){case 1:return l1;case 2:return s1;case 3:return p1;case 4:return z1;default:return gy}}function vq(ro){switch(ro.g){case 1:return z1;case 2:return l1;case 3:return s1;case 4:return p1;default:return gy}}function _Q(ro){switch(ro.g){case 1:return p1;case 2:return z1;case 3:return l1;case 4:return s1;default:return gy}}function JEe(ro,oo,co,fo){switch(oo){case 1:return!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),ro.n;case 2:return ro.k}return Gke(ro,oo,co,fo)}function jL(ro,oo,co){var fo,po;return ro.Pj()?(po=ro.Qj(),fo=Wde(ro,oo,co),ro.Jj(ro.Ij(7,Ql(co),fo,oo,po)),fo):Wde(ro,oo,co)}function jfe(ro,oo){var co,fo,po;ro.d==null?(++ro.e,--ro.f):(po=oo.ld(),co=oo.Bi(),fo=(co&q0)%ro.d.length,y7t(ro,fo,jot(ro,fo,co,po)))}function II(ro,oo){var co;co=(ro.Bb&bS)!=0,oo?ro.Bb|=bS:ro.Bb&=-1025,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,10,co,oo))}function NI(ro,oo){var co;co=(ro.Bb&nA)!=0,oo?ro.Bb|=nA:ro.Bb&=-4097,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,12,co,oo))}function MI(ro,oo){var co;co=(ro.Bb&Y2)!=0,oo?ro.Bb|=Y2:ro.Bb&=-8193,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,15,co,oo))}function LI(ro,oo){var co;co=(ro.Bb&cA)!=0,oo?ro.Bb|=cA:ro.Bb&=-2049,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,11,co,oo))}function DIt(ro){var oo;ro.g&&(oo=ro.c.kg()?ro.f:ro.a,D4e(oo.a,ro.o,!0),D4e(oo.a,ro.o,!1),Fl(ro.o,(ou(),Pp),(Im(),iC)))}function LIt(ro){var oo;if(!ro.a)throw Cs(new Lv("Cannot offset an unassigned cut."));oo=ro.c-ro.b,ro.b+=oo,NUe(ro,oo),IUe(ro,oo)}function BIt(ro,oo){var co;if(co=m1(ro.k,oo),co==null)throw Cs(new z_("Port did not exist in input."));return dEe(oo,co),null}function FIt(ro){var oo,co;for(co=Bot(zw(ro)).Kc();co.Ob();)if(oo=u0(co.Pb()),cB(ro,oo))return P9t((uze(),Pxt),oo);return null}function htt(ro){var oo,co;for(co=ro.p.a.ec().Kc();co.Ob();)if(oo=bo(co.Pb(),218),oo.f&&ro.b[oo.c]<-1e-10)return oo;return null}function PIt(ro){var oo,co;for(co=u3(new J4,91),oo=!0;ro.Ob();)oo||(co.a+=av),oo=!1,qy(co,ro.Pb());return(co.a+="]",co).a}function jIt(ro){var oo,co,fo;for(oo=new Zl,fo=new _s(ro.b);fo.aoo?1:ro==oo?ro==0?sp(1/ro,1/oo):0:isNaN(ro)?isNaN(oo)?0:1:-1}function HIt(ro){var oo;return oo=ro.a[ro.c-1&ro.a.length-1],oo==null?null:(ro.c=ro.c-1&ro.a.length-1,Np(ro.a,ro.c,null),oo)}function qIt(ro){var oo,co,fo;for(fo=0,co=ro.length,oo=0;oo=1?ey:A_):co}function UIt(ro){switch(bo(bs(ro,(ou(),M5)),223).g){case 1:return new KA;case 3:return new $re;default:return new Ere}}function w3(ro){if(ro.c)w3(ro.c);else if(ro.d)throw Cs(new Lv("Stream already terminated, can't be modified or used"))}function c6(ro,oo,co){var fo;return fo=ro.a.get(oo),ro.a.set(oo,co===void 0?null:co),fo===void 0?(++ro.c,++ro.b.g):++ro.d,fo}function KIt(ro,oo,co){var fo,po;for(po=ro.a.ec().Kc();po.Ob();)if(fo=bo(po.Pb(),10),iq(co,bo(cu(oo,fo.p),16)))return fo;return null}function tke(ro,oo,co){var fo;return fo=0,oo&&(f9(ro.a)?fo+=oo.f.a/2:fo+=oo.f.b/2),co&&(f9(ro.a)?fo+=co.f.a/2:fo+=co.f.b/2),fo}function YIt(ro,oo,co){var fo;fo=co,!fo&&(fo=xxe(new u8,0)),fo.Ug(Rut,2),wnt(ro.b,oo,fo.eh(1)),uUt(ro,oo,fo.eh(1)),hYt(oo,fo.eh(1)),fo.Vg()}function nke(ro,oo,co){var fo,po;return fo=(n3(),po=new vO,po),XX(fo,oo),YX(fo,co),ro&&Y1((!ro.a&&(ro.a=new Qp(tx,ro,5)),ro.a),fo),fo}function Hfe(ro){var oo;return ro.Db&64?gS(ro):(oo=new Bx(gS(ro)),oo.a+=" (identifier: ",Av(oo,ro.k),oo.a+=")",oo.a)}function qfe(ro,oo){var co;co=(ro.Bb&Cy)!=0,oo?ro.Bb|=Cy:ro.Bb&=-32769,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,18,co,oo))}function rke(ro,oo){var co;co=(ro.Bb&Cy)!=0,oo?ro.Bb|=Cy:ro.Bb&=-32769,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,18,co,oo))}function BI(ro,oo){var co;co=(ro.Bb&tE)!=0,oo?ro.Bb|=tE:ro.Bb&=-16385,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,16,co,oo))}function ike(ro,oo){var co;co=(ro.Bb&hv)!=0,oo?ro.Bb|=hv:ro.Bb&=-65537,ro.Db&4&&!(ro.Db&1)&&W0(ro,new dS(ro,1,20,co,oo))}function oke(ro){var oo;return oo=Al(Rx,nE,28,2,15,1),ro-=hv,oo[0]=(ro>>10)+aV&em,oo[1]=(ro&1023)+56320&em,zx(oo,0,oo.length)}function XIt(ro){var oo;return oo=G$(ro),oo>34028234663852886e22?Tp:oo<-34028234663852886e22?am:oo}function tv(ro,oo){var co;return ty(ro)&&ty(oo)&&(co=ro+oo,sV"+mT(oo.c):"e_"+dp(oo),ro.b&&ro.c?mT(ro.b)+"->"+mT(ro.c):"e_"+dp(ro))}function JIt(ro,oo){return Iu(oo.b&&oo.c?mT(oo.b)+"->"+mT(oo.c):"e_"+dp(oo),ro.b&&ro.c?mT(ro.b)+"->"+mT(ro.c):"e_"+dp(ro))}function u6(ro,oo){return s_(),hS(C3),lo.Math.abs(ro-oo)<=C3||ro==oo||isNaN(ro)&&isNaN(oo)?0:rooo?1:LC(isNaN(ro),isNaN(oo))}function S5(){S5=qo,Wve=new iY(SB,0),OG=new iY("POLYLINE",1),uM=new iY("ORTHOGONAL",2),HR=new iY("SPLINES",3)}function kQ(){kQ=qo,LOe=new jle("ASPECT_RATIO_DRIVEN",0),dve=new jle("MAX_SCALE_DRIVEN",1),DOe=new jle("AREA_DRIVEN",2)}function eNt(ro,oo,co){var fo;try{_Ot(ro,oo,co)}catch(po){throw po=$p(po),Hs(po,606)?(fo=po,Cs(new i_e(fo))):Cs(po)}return oo}function tNt(ro){var oo,co,fo;for(co=0,fo=ro.length;cooo&&fo.Ne(ro[vo-1],ro[vo])>0;--vo)xo=ro[vo],Np(ro,vo,ro[vo-1]),Np(ro,vo-1,xo)}function _u(ro,oo){var co,fo,po,vo,xo;if(co=oo.f,w4(ro.c.d,co,oo),oo.g!=null)for(po=oo.g,vo=0,xo=po.length;vooo){aYe(co);break}}xH(co,oo)}function oNt(ro,oo){var co,fo,po;fo=x9(oo),po=na(Tl(z$(fo,(ou(),_S)))),co=lo.Math.max(0,po/2-.5),YL(oo,co,1),Jl(ro,new Tze(oo,co))}function sNt(ro,oo,co){var fo;co.Ug("Straight Line Edge Routing",1),co.dh(oo,s6e),fo=bo(zl(oo,(b9(),E7)),27),ilt(ro,fo),co.dh(oo,mJ)}function ske(ro,oo){ro.n.c.length==0&&Jl(ro.n,new bX(ro.s,ro.t,ro.i)),Jl(ro.b,oo),jke(bo(cu(ro.n,ro.n.c.length-1),209),oo),jat(ro,oo)}function zL(ro){var oo;this.a=(oo=bo(ro.e&&ro.e(),9),new sx(oo,bo(cS(oo,oo.length),9),0)),this.b=Al(bm,Xu,1,this.a.a.length,5,1)}function ry(ro){var oo;return Array.isArray(ro)&&ro.Tm===Yo?aT(Nw(ro))+"@"+(oo=dp(ro)>>>0,oo.toString(16)):ro.toString()}function aNt(ro,oo){return ro.h==oV&&ro.m==0&&ro.l==0?(oo&&(N3=h2(0,0,0)),WHe((lI(),L$e))):(oo&&(N3=h2(ro.l,ro.m,ro.h)),h2(0,0,0))}function lNt(ro,oo){switch(oo.g){case 2:return ro.b;case 1:return ro.c;case 4:return ro.d;case 3:return ro.a;default:return!1}}function vtt(ro,oo){switch(oo.g){case 2:return ro.b;case 1:return ro.c;case 4:return ro.d;case 3:return ro.a;default:return!1}}function ake(ro,oo,co,fo){switch(oo){case 3:return ro.f;case 4:return ro.g;case 5:return ro.i;case 6:return ro.j}return JEe(ro,oo,co,fo)}function TQ(ro,oo){if(oo==ro.d)return ro.e;if(oo==ro.e)return ro.d;throw Cs(new i1("Node "+oo+" not part of edge "+ro))}function cNt(ro,oo){var co;if(co=jq(ro.Dh(),oo),Hs(co,102))return bo(co,19);throw Cs(new i1(I3+oo+"' is not a valid reference"))}function vx(ro,oo,co,fo){if(oo<0)T4e(ro,co,fo);else{if(!co.rk())throw Cs(new i1(I3+co.xe()+LB));bo(co,69).wk().Ck(ro,ro.hi(),oo,fo)}}function bw(ro){var oo;if(ro.b){if(bw(ro.b),ro.b.d!=ro.c)throw Cs(new rx)}else ro.d.dc()&&(oo=bo(ro.f.c.xc(ro.e),16),oo&&(ro.d=oo))}function uNt(ro){x$();var oo,co,fo,po;for(oo=ro.o.b,fo=bo(bo(Q0(ro.r,(nu(),z1)),21),87).Kc();fo.Ob();)co=bo(fo.Pb(),117),po=co.e,po.b+=oo}function fNt(ro){var oo,co,fo;for(this.a=new V_,fo=new _s(ro);fo.a=po)return oo.c+co;return oo.c+oo.b.gc()}function hNt(ro,oo){zO();var co,fo,po,vo;for(fo=kQe(ro),po=oo,sI(fo,0,fo.length,po),co=0;co0&&(fo+=po,++co);return co>1&&(fo+=ro.d*(co-1)),fo}function gNt(ro){var oo,co,fo,po,vo;return vo=k5e(ro),co=Nz(ro.c),fo=!co,fo&&(po=new Y5,WS(vo,"knownLayouters",po),oo=new rFe(po),Hm(ro.c,oo)),vo}function uke(ro){var oo,co,fo;for(fo=new Z5,fo.a+="[",oo=0,co=ro.gc();oo0&&(o1(oo-1,ro.length),ro.charCodeAt(oo-1)==58)&&!Wfe(ro,JF,eP))}function fke(ro,oo){var co;return $a(ro)===$a(oo)?!0:Hs(oo,92)?(co=bo(oo,92),ro.e==co.e&&ro.d==co.d&&H9t(ro,co.a)):!1}function Y8(ro){switch(nu(),ro.g){case 4:return s1;case 1:return p1;case 3:return z1;case 2:return l1;default:return gy}}function yNt(ro){var oo,co;if(ro.b)return ro.b;for(co=E_?null:ro.d;co;){if(oo=E_?null:co.b,oo)return oo;co=E_?null:co.d}return DO(),sAe}function dke(ro){var oo,co,fo;for(fo=na(Tl(ro.a.of(($0(),Hte)))),co=new _s(ro.a.Sf());co.a>5,oo=ro&31,fo=Al(Q1,E0,28,co+1,15,1),fo[co]=1<3;)po*=10,--vo;ro=(ro+(po>>1))/po|0}return fo.i=ro,!0}function Ap(ro,oo){var co,fo,po;if(co=(ro.i==null&&eE(ro),ro.i),fo=oo.Lj(),fo!=-1){for(po=co.length;fo=0;--fo)for(oo=co[fo],po=0;po>1,this.k=oo-1>>1}function MNt(ro){LX(),bo(ro.of(($0(),V3)),181).Hc((ww(),Yte))&&(bo(ro.of(IA),181).Fc((sw(),qR)),bo(ro.of(V3),181).Mc(Yte))}function Ett(ro){var oo,co;oo=ro.d==(tR(),BN),co=g5e(ro),oo&&!co||!oo&&co?Fl(ro.a,(ou(),dE),(IE(),_G)):Fl(ro.a,(ou(),dE),(IE(),SG))}function Yfe(){Yfe=qo,FK(),lte=(ou(),V6),Zvt=f_(As($s($ve,1),UCe,149,0,[oG,_S,b7,q6,TA,fme,QN,ZN,dme,gF,v7,ZT,y7]))}function DNt(ro,oo){var co;return co=bo(ny(ro,rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),co.Qc(zGe(co.gc()))}function ktt(ro,oo){var co,fo;if(fo=new xO(ro.a.ad(oo,!0)),fo.a.gc()<=1)throw Cs(new a8);return co=fo.a.ec().Kc(),co.Pb(),bo(co.Pb(),40)}function LNt(ro,oo,co){var fo,po;return fo=na(ro.p[oo.i.p])+na(ro.d[oo.i.p])+oo.n.b+oo.a.b,po=na(ro.p[co.i.p])+na(ro.d[co.i.p])+co.n.b+co.a.b,po-fo}function yke(ro,oo){var co;return ro.i>0&&(oo.lengthro.i&&Np(oo,ro.i,null),oo}function $Q(ro){var oo;return ro.Db&64?BL(ro):(oo=new Bx(BL(ro)),oo.a+=" (instanceClassName: ",Av(oo,ro.D),oo.a+=")",oo.a)}function AQ(ro){var oo,co,fo,po;for(po=0,co=0,fo=ro.length;co0?(ro._j(),fo=oo==null?0:dp(oo),po=(fo&q0)%ro.d.length,co=jot(ro,po,fo,oo),co!=-1):!1}function Ttt(ro,oo){var co,fo;ro.a=tv(ro.a,1),ro.c=lo.Math.min(ro.c,oo),ro.b=lo.Math.max(ro.b,oo),ro.d+=oo,co=oo-ro.f,fo=ro.e+co,ro.f=fo-ro.e-co,ro.e=fo}function wke(ro,oo){switch(oo){case 3:r6(ro,0);return;case 4:i6(ro,0);return;case 5:m2(ro,0);return;case 6:b2(ro,0);return}VEe(ro,oo)}function f6(ro,oo){switch(oo.g){case 1:return C8(ro.j,(G2(),l9e));case 2:return C8(ro.j,(G2(),u9e));default:return Hu(),Hu(),cv}}function xke(ro){WC();var oo;switch(oo=ro.Pc(),oo.length){case 0:return Epe;case 1:return new $ce(a0(oo[0]));default:return new cue(tNt(oo))}}function Ctt(ro,oo){ro.Xj();try{ro.d.bd(ro.e++,oo),ro.f=ro.d.j,ro.g=-1}catch(co){throw co=$p(co),Hs(co,77)?Cs(new rx):Cs(co)}}function Qfe(){Qfe=qo,abe=new roe,vMe=new ioe,bMe=new ooe,yMe=new soe,wMe=new aoe,xMe=new loe,SMe=new coe,_Me=new uoe,EMe=new foe}function RQ(ro,oo){q2e();var co,fo;return co=uH((EK(),EK(),KB)),fo=null,oo==co&&(fo=bo(Gy(M$e,ro),624)),fo||(fo=new HWe(ro),oo==co&&Bv(M$e,ro,fo)),fo}function $tt(ro){H$();var oo;return(ro.q?ro.q:(Hu(),Hu(),HE))._b((ou(),z6))?oo=bo(bs(ro,z6),203):oo=bo(bs(zm(ro),pF),203),oo}function z$(ro,oo){var co,fo;return fo=null,gp(ro,(ou(),ste))&&(co=bo(bs(ro,ste),96),co.pf(oo)&&(fo=co.of(oo))),fo==null&&(fo=bs(zm(ro),oo)),fo}function Att(ro,oo){var co,fo,po;return Hs(oo,44)?(co=bo(oo,44),fo=co.ld(),po=P$(ro.Rc(),fo),K_(po,co.md())&&(po!=null||ro.Rc()._b(fo))):!1}function KS(ro,oo){var co,fo,po;return ro.f>0&&(ro._j(),fo=oo==null?0:dp(oo),po=(fo&q0)%ro.d.length,co=s4e(ro,po,fo,oo),co)?co.md():null}function a2(ro,oo,co){var fo,po,vo;return ro.Pj()?(fo=ro.i,vo=ro.Qj(),hq(ro,fo,oo),po=ro.Ij(3,null,oo,fo,vo),co?co.nj(po):co=po):hq(ro,ro.i,oo),co}function FNt(ro,oo,co){var fo,po;return fo=new m5(ro.e,4,10,(po=oo.c,Hs(po,90)?bo(po,29):(Pu(),nS)),null,x4(ro,oo),!1),co?co.nj(fo):co=fo,co}function PNt(ro,oo,co){var fo,po;return fo=new m5(ro.e,3,10,null,(po=oo.c,Hs(po,90)?bo(po,29):(Pu(),nS)),x4(ro,oo),!1),co?co.nj(fo):co=fo,co}function Rtt(ro){x$();var oo;return oo=new ov(bo(ro.e.of(($0(),N7)),8)),ro.B.Hc((ww(),dM))&&(oo.a<=0&&(oo.a=20),oo.b<=0&&(oo.b=20)),oo}function x3(ro){J_();var oo,co;return co=s0(ro),oo=s0(l3(ro,32)),oo!=0?new MKe(co,oo):co>10||co<0?new p5(1,co):x1t[co]}function yq(ro,oo){var co;return ty(ro)&&ty(oo)&&(co=ro%oo,sV=0?vo=vo.a[1]:(po=vo,vo=vo.a[0])}return po}function xq(ro,oo,co){var fo,po,vo;for(po=null,vo=ro.b;vo;){if(fo=ro.a.Ne(oo,vo.d),co&&fo==0)return vo;fo<=0?vo=vo.a[0]:(po=vo,vo=vo.a[1])}return po}function GNt(ro,oo,co,fo){var po,vo,xo;return po=!1,KUt(ro.f,co,fo)&&(hMt(ro.f,ro.a[oo][co],ro.a[oo][fo]),vo=ro.a[oo],xo=vo[fo],vo[fo]=vo[co],vo[co]=xo,po=!0),po}function Mtt(ro,oo,co){var fo,po,vo,xo;for(po=bo(m1(ro.b,co),183),fo=0,xo=new _s(oo.j);xo.a>5,oo&=31,po=ro.d+co+(oo==0?0:1),fo=Al(Q1,E0,28,po,15,1),qBt(fo,ro.a,co,oo),vo=new dT(ro.e,po,fo),mL(vo),vo}function WNt(ro,oo){var co,fo,po;for(fo=new x1(E1(Wp(ro).a.Kc(),new ko));W1(fo);)if(co=bo(R1(fo),18),po=co.d.i,po.c==oo)return!1;return!0}function Eke(ro,oo,co){var fo,po,vo,xo,Eo;return xo=ro.k,Eo=oo.k,fo=co[xo.g][Eo.g],po=Tl(z$(ro,fo)),vo=Tl(z$(oo,fo)),lo.Math.max((u1(po),po),(u1(vo),vo))}function UNt(){return Error.stackTraceLimit>0?(lo.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function KNt(ro,oo){return s_(),s_(),hS(C3),(lo.Math.abs(ro-oo)<=C3||ro==oo||isNaN(ro)&&isNaN(oo)?0:rooo?1:LC(isNaN(ro),isNaN(oo)))>0}function kke(ro,oo){return s_(),s_(),hS(C3),(lo.Math.abs(ro-oo)<=C3||ro==oo||isNaN(ro)&&isNaN(oo)?0:rooo?1:LC(isNaN(ro),isNaN(oo)))<0}function Ltt(ro,oo){return s_(),s_(),hS(C3),(lo.Math.abs(ro-oo)<=C3||ro==oo||isNaN(ro)&&isNaN(oo)?0:rooo?1:LC(isNaN(ro),isNaN(oo)))<=0}function Jfe(ro,oo){for(var co=0;!oo[co]||oo[co]=="";)co++;for(var fo=oo[co++];co0&&this.b>0&&(this.g=qY(this.c,this.b,this.a))}function YNt(ro,oo){var co=ro.a,fo;oo=String(oo),co.hasOwnProperty(oo)&&(fo=co[oo]);var po=(xfe(),Rpe)[typeof fo],vo=po?po(fo):PEe(typeof fo);return vo}function PI(ro){var oo,co,fo;if(fo=null,oo=cE in ro.a,co=!oo,co)throw Cs(new z_("Every element must have an id."));return fo=nR(f5(ro,cE)),fo}function d6(ro){var oo,co;for(co=uit(ro),oo=null;ro.c==2;)z0(ro),oo||(oo=(H0(),H0(),new KD(2)),OT(oo,co),co=oo),co.Jm(uit(ro));return co}function IQ(ro,oo){var co,fo,po;return ro._j(),fo=oo==null?0:dp(oo),po=(fo&q0)%ro.d.length,co=s4e(ro,po,fo,oo),co?(jZe(ro,co),co.md()):null}function qtt(ro,oo){return ro.e>oo.e?1:ro.eoo.d?ro.e:ro.d=48&&ro<48+lo.Math.min(10,10)?ro-48:ro>=97&&ro<97?ro-97+10:ro>=65&&ro<65?ro-65+10:-1}function XNt(ro,oo){if(oo.c==ro)return oo.d;if(oo.d==ro)return oo.c;throw Cs(new i1("Input edge is not connected to the input port."))}function QNt(ro){if(MQ(EN,ro))return _f(),ON;if(MQ(j0e,ro))return _f(),M3;throw Cs(new i1("Expecting true or false"))}function $ke(ro){switch(typeof ro){case Dhe:return h4(ro);case B3e:return w8(ro);case sR:return wVe(ro);default:return ro==null?0:PC(ro)}}function Z_(ro,oo){if(ro.a<0)throw Cs(new Lv("Did not call before(...) or after(...) before calling add(...)."));return xwe(ro,ro.a,oo),ro}function Ake(ro){return yX(),Hs(ro,162)?bo(m1(qG,T1t),295).Rg(ro):p2(qG,Nw(ro))?bo(m1(qG,Nw(ro)),295).Rg(ro):null}function y2(ro){var oo,co;return ro.Db&32||(co=(oo=bo(n1(ro,16),29),A1(oo||ro.ii())-A1(ro.ii())),co!=0&&X8(ro,32,Al(bm,Xu,1,co,5,1))),ro}function X8(ro,oo,co){var fo;ro.Db&oo?co==null?Mjt(ro,oo):(fo=wde(ro,oo),fo==-1?ro.Eb=co:Np(yT(ro.Eb),fo,co)):co!=null&&rqt(ro,oo,co)}function ZNt(ro,oo,co,fo){var po,vo;oo.c.length!=0&&(po=Uzt(co,fo),vo=KPt(oo),zp(UX(new Ou(null,new Du(vo,1)),new BW),new vUe(ro,co,po,fo)))}function JNt(ro,oo){var co,fo,po,vo;return fo=ro.a.length-1,co=oo-ro.b&fo,vo=ro.c-oo&fo,po=ro.c-ro.b&fo,gVe(co=vo?(QOt(ro,oo),-1):(XOt(ro,oo),1)}function NQ(ro){var oo,co,fo;if(fo=ro.Jh(),!fo)for(oo=0,co=ro.Ph();co;co=co.Ph()){if(++oo>u1e)return co.Qh();if(fo=co.Jh(),fo||co==ro)break}return fo}function Gtt(ro,oo){var co;return $a(oo)===$a(ro)?!0:!Hs(oo,21)||(co=bo(oo,21),co.gc()!=ro.gc())?!1:ro.Ic(co)}function eMt(ro,oo){return ro.eoo.e?1:ro.foo.f?1:dp(ro)-dp(oo)}function MQ(ro,oo){return u1(ro),oo==null?!1:Iu(ro,oo)?!0:ro.length==oo.length&&Iu(ro.toLowerCase(),oo.toLowerCase())}function E5(ro){var oo,co;return Iy(ro,-129)>0&&Iy(ro,128)<0?(GGe(),oo=s0(ro)+128,co=q$e[oo],!co&&(co=q$e[oo]=new Ms(ro)),co):new Ms(ro)}function CT(){CT=qo,pA=new XK(sE,0),r9e=new XK("INSIDE_PORT_SIDE_GROUPS",1),uge=new XK("GROUP_MODEL_ORDER",2),fge=new XK(TTe,3)}function tMt(ro){var oo;return ro.b||U_t(ro,(oo=W5t(ro.e,ro.a),!oo||!Iu(j0e,KS((!oo.b&&(oo.b=new Rw((Pu(),gv),Ey,oo)),oo.b),"qualified")))),ro.c}function nMt(ro,oo){var co,fo;for(co=(o1(oo,ro.length),ro.charCodeAt(oo)),fo=oo+1;fo2e3&&(f1t=ro,VJ=lo.setTimeout(Z_t,10))),qJ++==0?(g8t((Dye(),N$e)),!0):!1}function mMt(ro,oo,co){var fo;(N1t?(yNt(ro),!0):M1t||L1t?(DO(),!0):D1t&&(DO(),!1))&&(fo=new iGe(oo),fo.b=co,EFt(ro,fo))}function tde(ro,oo){var co;co=!ro.A.Hc((Mw(),oC))||ro.q==(Im(),n2),ro.u.Hc((sw(),L5))?co?oYt(ro,oo):Glt(ro,oo):ro.u.Hc(K3)&&(co?kKt(ro,oo):sct(ro,oo))}function Qtt(ro){var oo;$a(zl(ro,($0(),O7)))===$a((x5(),Gte))&&(kp(ro)?(oo=bo(zl(kp(ro),O7),346),tp(ro,O7,oo)):tp(ro,O7,VF))}function vMt(ro){var oo,co;return gp(ro.d.i,(ou(),KN))?(oo=bo(bs(ro.c.i,KN),17),co=bo(bs(ro.d.i,KN),17),Oy(oo.a,co.a)>0):!1}function Ztt(ro,oo,co){return new ax(lo.Math.min(ro.a,oo.a)-co/2,lo.Math.min(ro.b,oo.b)-co/2,lo.Math.abs(ro.a-oo.a)+co,lo.Math.abs(ro.b-oo.b)+co)}function Jtt(ro){var oo;this.d=new Zl,this.j=new Nm,this.g=new Nm,oo=ro.g.b,this.f=bo(bs(zm(oo),(ou(),Qw)),88),this.e=na(Tl(FQ(oo,TA)))}function ent(ro){this.d=new Zl,this.e=new a4,this.c=Al(Q1,E0,28,(nu(),As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1])).length,15,1),this.b=ro}function Ike(ro,oo,co){var fo;switch(fo=co[ro.g][oo],ro.g){case 1:case 3:return new Vl(0,fo);case 2:case 4:return new Vl(fo,0);default:return null}}function tnt(ro,oo,co){var fo,po;po=bo(TH(oo.f),205);try{po.rf(ro,co),nUe(oo.f,po)}catch(vo){throw vo=$p(vo),Hs(vo,103)?(fo=vo,Cs(fo)):Cs(vo)}}function nnt(ro,oo,co){var fo,po,vo,xo,Eo,To;return fo=null,Eo=_3e(gI(),oo),vo=null,Eo&&(po=null,To=x3e(Eo,co),xo=null,To!=null&&(xo=ro.qf(Eo,To)),po=xo,vo=po),fo=vo,fo}function nde(ro,oo,co,fo){var po;if(po=ro.length,oo>=po)return po;for(oo=oo>0?oo:0;oofo&&Np(oo,fo,null),oo}function rnt(ro,oo){var co,fo;for(fo=ro.a.length,oo.lengthfo&&Np(oo,fo,null),oo}function jI(ro,oo){var co,fo;if(++ro.j,oo!=null&&(co=(fo=ro.a.Cb,Hs(fo,99)?bo(fo,99).th():null),Sjt(oo,co))){X8(ro.a,4,co);return}X8(ro.a,4,bo(oo,129))}function bMt(ro){var oo;if(ro==null)return null;if(oo=_zt(Ky(ro,!0)),oo==null)throw Cs(new ele("Invalid hexBinary value: '"+ro+"'"));return oo}function DQ(ro,oo,co){var fo;oo.a.length>0&&(Jl(ro.b,new wGe(oo.a,co)),fo=oo.a.length,0fo&&(oo.a+=Sqe(Al(Rx,nE,28,-fo,15,1))))}function ont(ro,oo,co){var fo,po,vo;if(!co[oo.d])for(co[oo.d]=!0,po=new _s($9(oo));po.a=ro.b>>1)for(fo=ro.c,co=ro.b;co>oo;--co)fo=fo.b;else for(fo=ro.a.a,co=0;co=0?ro.Wh(po):Gde(ro,fo)):co<0?Gde(ro,fo):bo(fo,69).wk().Bk(ro,ro.hi(),co)}function unt(ro){var oo,co,fo;for(fo=(!ro.o&&(ro.o=new V2((Ny(),XE),F4,ro,0)),ro.o),co=fo.c.Kc();co.e!=co.i.gc();)oo=bo(co.Yj(),44),oo.md();return FH(fo)}function iu(ro){var oo;if(Hs(ro.a,4)){if(oo=Ake(ro.a),oo==null)throw Cs(new Lv(Dft+ro.b+"'. "+Mft+(c5(VG),VG.k)+F6e));return oo}else return ro.a}function TMt(ro,oo){var co,fo;if(ro.j.length!=oo.j.length)return!1;for(co=0,fo=ro.j.length;co=64&&oo<128&&(po=qS(po,fS(1,oo-64)));return po}function FQ(ro,oo){var co,fo;return fo=null,gp(ro,($0(),jR))&&(co=bo(bs(ro,jR),96),co.pf(oo)&&(fo=co.of(oo))),fo==null&&zm(ro)&&(fo=bs(zm(ro),oo)),fo}function CMt(ro,oo){var co;return co=bo(bs(ro,(ou(),Hv)),75),tce(oo,Mpt)?co?Fw(co):(co=new P2,Fl(ro,Hv,co)):co&&Fl(ro,Hv,null),co}function VL(){VL=qo,BAe=($0(),pNe),Qpe=KIe,N0t=$7,LAe=L4,B0t=(XQ(),gAe),L0t=hAe,F0t=vAe,D0t=dAe,M0t=(Ife(),NAe),Xpe=R0t,DAe=O0t,tee=I0t}function PQ(ro){switch(i2e(),this.c=new Zl,this.d=ro,ro.g){case 0:case 2:this.a=dSe(n9e),this.b=Tp;break;case 3:case 1:this.a=n9e,this.b=am}}function $Mt(ro){var oo;T8(bo(bs(ro,(ou(),Pp)),101))&&(oo=ro.b,Jit((qu(0,oo.c.length),bo(oo.c[0],30))),Jit(bo(cu(oo,oo.c.length-1),30)))}function AMt(ro,oo){oo.Ug("Self-Loop post-processing",1),zp(X0(X0(fy(new Ou(null,new Du(ro.b,16)),new Vne),new gW),new _M),new Gne),oo.Vg()}function fnt(ro,oo,co){var fo,po;if(ro.c)m2(ro.c,ro.c.i+oo),b2(ro.c,ro.c.j+co);else for(po=new _s(ro.b);po.a=0&&(co.d=ro.t);break;case 3:ro.t>=0&&(co.a=ro.t)}ro.C&&(co.b=ro.C.b,co.c=ro.C.c)}function GL(){GL=qo,oRe=new Gz(KCe,0),xme=new Gz(q1e,1),Sme=new Gz("LINEAR_SEGMENTS",2),vF=new Gz("BRANDES_KOEPF",3),bF=new Gz(cft,4)}function WL(){WL=qo,HV=new KK(PZ,0),JJ=new KK(_1e,1),eee=new KK(E1e,2),qV=new KK(k1e,3),HV.a=!1,JJ.a=!0,eee.a=!1,qV.a=!0}function Q8(){Q8=qo,PV=new UK(PZ,0),FV=new UK(_1e,1),jV=new UK(E1e,2),zV=new UK(k1e,3),PV.a=!1,FV.a=!0,jV.a=!1,zV.a=!0}function Z8(ro,oo,co,fo){var po;return co>=0?ro.Sh(oo,co,fo):(ro.Ph()&&(fo=(po=ro.Fh(),po>=0?ro.Ah(fo):ro.Ph().Th(ro,-1-po,null,fo))),ro.Ch(oo,co,fo))}function Nke(ro,oo){switch(oo){case 7:!ro.e&&(ro.e=new Wu(Gp,ro,7,4)),U1(ro.e);return;case 8:!ro.d&&(ro.d=new Wu(Gp,ro,8,5)),U1(ro.d);return}wke(ro,oo)}function tp(ro,oo,co){return co==null?(!ro.o&&(ro.o=new V2((Ny(),XE),F4,ro,0)),IQ(ro.o,oo)):(!ro.o&&(ro.o=new V2((Ny(),XE),F4,ro,0)),Cq(ro.o,oo,co)),ro}function gnt(ro,oo){Hu();var co,fo,po,vo;for(co=ro,vo=oo,Hs(ro,21)&&!Hs(oo,21)&&(co=oo,vo=ro),po=co.Kc();po.Ob();)if(fo=po.Pb(),vo.Hc(fo))return!1;return!0}function MMt(ro,oo,co,fo){if(oo.aco.b)return!0}return!1}function ade(ro,oo){return Cm(ro)?!!i1t[oo]:ro.Sm?!!ro.Sm[oo]:b$(ro)?!!r1t[oo]:v$(ro)?!!n1t[oo]:!1}function DMt(ro){var oo;oo=ro.a;do oo=bo(R1(new x1(E1(Sm(oo).a.Kc(),new ko))),18).c.i,oo.k==(a1(),km)&&ro.b.Fc(oo);while(oo.k==(a1(),km));ro.b=bx(ro.b)}function mnt(ro,oo){var co,fo,po;for(po=ro,fo=new x1(E1(Sm(oo).a.Kc(),new ko));W1(fo);)co=bo(R1(fo),18),co.c.i.c&&(po=lo.Math.max(po,co.c.i.c.p));return po}function LMt(ro,oo){var co,fo,po;for(po=0,fo=bo(bo(Q0(ro.r,oo),21),87).Kc();fo.Ob();)co=bo(fo.Pb(),117),po+=co.d.d+co.b.Mf().b+co.d.a,fo.Ob()&&(po+=ro.w);return po}function BMt(ro,oo){var co,fo,po;for(po=0,fo=bo(bo(Q0(ro.r,oo),21),87).Kc();fo.Ob();)co=bo(fo.Pb(),117),po+=co.d.b+co.b.Mf().a+co.d.c,fo.Ob()&&(po+=ro.w);return po}function vnt(ro){var oo,co,fo,po;if(fo=0,po=Y$(ro),po.c.length==0)return 1;for(co=new _s(po);co.a=0?ro.Lh(xo,co,!0):m6(ro,vo,co)):bo(vo,69).wk().yk(ro,ro.hi(),po,co,fo)}function zMt(ro,oo,co,fo){var po,vo;vo=oo.pf(($0(),I7))?bo(oo.of(I7),21):ro.j,po=kIt(vo),po!=(IZ(),Wpe)&&(co&&!Tke(po)||F5e(Ezt(ro,po,fo),oo))}function HMt(ro){switch(ro.g){case 1:return l6(),BV;case 3:return l6(),LV;case 2:return l6(),Kpe;case 4:return l6(),Upe;default:return null}}function qMt(ro,oo,co){if(ro.e)switch(ro.b){case 1:I6t(ro.c,oo,co);break;case 0:N6t(ro.c,oo,co)}else IYe(ro.c,oo,co);ro.a[oo.p][co.p]=ro.c.i,ro.a[co.p][oo.p]=ro.c.e}function bnt(ro){var oo,co;if(ro==null)return null;for(co=Al(VE,Yl,199,ro.length,0,2),oo=0;oo=0)return po;if(ro.ol()){for(fo=0;fo=po)throw Cs(new _$(oo,po));if(ro.Si()&&(fo=ro.dd(co),fo>=0&&fo!=oo))throw Cs(new i1(CV));return ro.Xi(oo,co)}function Mke(ro,oo){if(this.a=bo(a0(ro),253),this.b=bo(a0(oo),253),ro.Ed(oo)>0||ro==(Uae(),Spe)||oo==(Kae(),_pe))throw Cs(new i1("Invalid range: "+DYe(ro,oo)))}function ynt(ro){var oo,co;for(this.b=new Zl,this.c=ro,this.a=!1,co=new _s(ro.a);co.a0),(oo&-oo)==oo)return dm(oo*yw(ro,31)*4656612873077393e-25);do co=yw(ro,31),fo=co%oo;while(co-fo+(oo-1)<0);return dm(fo)}function YMt(ro,oo,co){switch(co.g){case 1:ro.a=oo.a/2,ro.b=0;break;case 2:ro.a=oo.a,ro.b=oo.b/2;break;case 3:ro.a=oo.a/2,ro.b=oo.b;break;case 4:ro.a=0,ro.b=oo.b/2}}function Sq(ro,oo,co,fo){var po,vo;for(po=oo;po1&&(vo=GMt(ro,oo)),vo}function Snt(ro){var oo;return oo=na(Tl(zl(ro,($0(),RG))))*lo.Math.sqrt((!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a).i),new Vl(oo,oo/na(Tl(zl(ro,qte))))}function cde(ro){var oo;return ro.f&&ro.f.Vh()&&(oo=bo(ro.f,54),ro.f=bo(y3(ro,oo),84),ro.f!=oo&&ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,9,8,oo,ro.f))),ro.f}function ude(ro){var oo;return ro.i&&ro.i.Vh()&&(oo=bo(ro.i,54),ro.i=bo(y3(ro,oo),84),ro.i!=oo&&ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,9,7,oo,ro.i))),ro.i}function bv(ro){var oo;return ro.b&&ro.b.Db&64&&(oo=ro.b,ro.b=bo(y3(ro,oo),19),ro.b!=oo&&ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,9,21,oo,ro.b))),ro.b}function VQ(ro,oo){var co,fo,po;ro.d==null?(++ro.e,++ro.f):(fo=oo.Bi(),bHt(ro,ro.f+1),po=(fo&q0)%ro.d.length,co=ro.d[po],!co&&(co=ro.d[po]=ro.dk()),co.Fc(oo),++ro.f)}function Bke(ro,oo,co){var fo;return oo.tk()?!1:oo.Ik()!=-2?(fo=oo.ik(),fo==null?co==null:U0(fo,co)):oo.qk()==ro.e.Dh()&&co==null}function GQ(){var ro;qw(16,Lct),ro=eJe(16),this.b=Al(kpe,rV,303,ro,0,1),this.c=Al(kpe,rV,303,ro,0,1),this.a=null,this.e=null,this.i=0,this.f=ro-1,this.g=0}function k5(ro){Hwe.call(this),this.k=(a1(),Vp),this.j=(qw(6,tA),new o2(6)),this.b=(qw(2,tA),new o2(2)),this.d=new Hae,this.f=new _ye,this.a=ro}function QMt(ro){var oo,co;ro.c.length<=1||(oo=Ast(ro,(nu(),z1)),hit(ro,bo(oo.a,17).a,bo(oo.b,17).a),co=Ast(ro,l1),hit(ro,bo(co.a,17).a,bo(co.b,17).a))}function ZMt(ro,oo,co){var fo,po;for(po=ro.a.b,fo=po.c.length;fo102?-1:ro<=57?ro-48:ro<65?-1:ro<=70?ro-65+10:ro<97?-1:ro-97+10}function gde(ro,oo){if(ro==null)throw Cs(new d8("null key in entry: null="+oo));if(oo==null)throw Cs(new d8("null value in entry: "+ro+"=null"))}function tDt(ro,oo){for(var co,fo;ro.Ob();)if(!oo.Ob()||(co=ro.Pb(),fo=oo.Pb(),!($a(co)===$a(fo)||co!=null&&U0(co,fo))))return!1;return!oo.Ob()}function knt(ro,oo){var co;return co=As($s(Am,1),Iv,28,15,[Mfe(ro.a[0],oo),Mfe(ro.a[1],oo),Mfe(ro.a[2],oo)]),ro.d&&(co[0]=lo.Math.max(co[0],co[2]),co[2]=co[0]),co}function Tnt(ro,oo){var co;return co=As($s(Am,1),Iv,28,15,[yQ(ro.a[0],oo),yQ(ro.a[1],oo),yQ(ro.a[2],oo)]),ro.d&&(co[0]=lo.Math.max(co[0],co[2]),co[2]=co[0]),co}function Pke(ro,oo,co){T8(bo(bs(oo,(ou(),Pp)),101))||(ZSe(ro,oo,S4(oo,co)),ZSe(ro,oo,S4(oo,(nu(),z1))),ZSe(ro,oo,S4(oo,s1)),Hu(),Up(oo.j,new TLe(ro)))}function Cnt(ro){var oo,co;for(ro.c||wUt(ro),co=new P2,oo=new _s(ro.a),Es(oo);oo.a0&&(o1(0,oo.length),oo.charCodeAt(0)==43)?(o1(1,oo.length+1),oo.substr(1)):oo))}function gDt(ro){var oo;return ro==null?null:new s3((oo=Ky(ro,!0),oo.length>0&&(o1(0,oo.length),oo.charCodeAt(0)==43)?(o1(1,oo.length+1),oo.substr(1)):oo))}function zke(ro,oo,co,fo,po,vo,xo,Eo){var To,Ao;fo&&(To=fo.a[0],To&&zke(ro,oo,co,To,po,vo,xo,Eo),Ede(ro,co,fo.d,po,vo,xo,Eo)&&oo.Fc(fo),Ao=fo.a[1],Ao&&zke(ro,oo,co,Ao,po,vo,xo,Eo))}function I9(ro,oo,co){try{return DC(ofe(ro,oo,co),1)}catch(fo){throw fo=$p(fo),Hs(fo,333)?Cs(new Dv(T1e+ro.o+"*"+ro.p+C1e+oo+av+co+$1e)):Cs(fo)}}function Int(ro,oo,co){try{return DC(ofe(ro,oo,co),0)}catch(fo){throw fo=$p(fo),Hs(fo,333)?Cs(new Dv(T1e+ro.o+"*"+ro.p+C1e+oo+av+co+$1e)):Cs(fo)}}function Nnt(ro,oo,co){try{return DC(ofe(ro,oo,co),2)}catch(fo){throw fo=$p(fo),Hs(fo,333)?Cs(new Dv(T1e+ro.o+"*"+ro.p+C1e+oo+av+co+$1e)):Cs(fo)}}function Mnt(ro,oo){if(ro.g==-1)throw Cs(new F2);ro.Xj();try{ro.d.hd(ro.g,oo),ro.f=ro.d.j}catch(co){throw co=$p(co),Hs(co,77)?Cs(new rx):Cs(co)}}function mDt(ro){var oo,co,fo,po,vo;for(fo=new _s(ro.b);fo.avo&&Np(oo,vo,null),oo}function vDt(ro,oo){var co,fo;if(fo=ro.gc(),oo==null){for(co=0;co0&&(To+=po),Ao[Io]=xo,xo+=Eo*(To+fo)}function Lnt(ro){var oo,co,fo;for(fo=ro.f,ro.n=Al(Am,Iv,28,fo,15,1),ro.d=Al(Am,Iv,28,fo,15,1),oo=0;oo0?ro.c:0),++po;ro.b=fo,ro.d=vo}function znt(ro,oo){var co;return co=As($s(Am,1),Iv,28,15,[Lke(ro,(US(),xy),oo),Lke(ro,c2,oo),Lke(ro,Sy,oo)]),ro.f&&(co[0]=lo.Math.max(co[0],co[2]),co[2]=co[0]),co}function kDt(ro,oo,co){var fo;try{wZ(ro,oo+ro.j,co+ro.k,!1,!0)}catch(po){throw po=$p(po),Hs(po,77)?(fo=po,Cs(new Dv(fo.g+zZ+oo+av+co+")."))):Cs(po)}}function TDt(ro,oo,co){var fo;try{wZ(ro,oo+ro.j,co+ro.k,!0,!1)}catch(po){throw po=$p(po),Hs(po,77)?(fo=po,Cs(new Dv(fo.g+zZ+oo+av+co+")."))):Cs(po)}}function Hnt(ro){var oo;gp(ro,(ou(),j6))&&(oo=bo(bs(ro,j6),21),oo.Hc((K$(),kS))?(oo.Mc(kS),oo.Fc(TS)):oo.Hc(TS)&&(oo.Mc(TS),oo.Fc(kS)))}function qnt(ro){var oo;gp(ro,(ou(),j6))&&(oo=bo(bs(ro,j6),21),oo.Hc((K$(),$S))?(oo.Mc($S),oo.Fc(Qx)):oo.Hc(Qx)&&(oo.Mc(Qx),oo.Fc($S)))}function xde(ro,oo,co,fo){var po,vo,xo,Eo;return ro.a==null&&$Ft(ro,oo),xo=oo.b.j.c.length,vo=co.d.p,Eo=fo.d.p,po=Eo-1,po<0&&(po=xo-1),vo<=po?ro.a[po]-ro.a[vo]:ro.a[xo-1]-ro.a[vo]+ro.a[po]}function CDt(ro){var oo,co;if(!ro.b)for(ro.b=_X(bo(ro.f,27).kh().i),co=new g1(bo(ro.f,27).kh());co.e!=co.i.gc();)oo=bo(k1(co),135),Jl(ro.b,new Qae(oo));return ro.b}function $Dt(ro){var oo,co;if(!ro.e)for(ro.e=_X(Zce(bo(ro.f,27)).i),co=new g1(Zce(bo(ro.f,27)));co.e!=co.i.gc();)oo=bo(k1(co),123),Jl(ro.e,new RBe(oo));return ro.e}function Vnt(ro){var oo,co;if(!ro.a)for(ro.a=_X(fX(bo(ro.f,27)).i),co=new g1(fX(bo(ro.f,27)));co.e!=co.i.gc();)oo=bo(k1(co),27),Jl(ro.a,new oce(ro,oo));return ro.a}function p6(ro){var oo;if(!ro.C&&(ro.D!=null||ro.B!=null))if(oo=gKt(ro),oo)ro.hl(oo);else try{ro.hl(null)}catch(co){if(co=$p(co),!Hs(co,63))throw Cs(co)}return ro.C}function ADt(ro){switch(ro.q.g){case 5:prt(ro,(nu(),s1)),prt(ro,z1);break;case 4:ylt(ro,(nu(),s1)),ylt(ro,z1);break;default:wit(ro,(nu(),s1)),wit(ro,z1)}}function RDt(ro){switch(ro.q.g){case 5:grt(ro,(nu(),p1)),grt(ro,l1);break;case 4:wlt(ro,(nu(),p1)),wlt(ro,l1);break;default:xit(ro,(nu(),p1)),xit(ro,l1)}}function N9(ro,oo){var co,fo,po;for(po=new Nm,fo=ro.Kc();fo.Ob();)co=bo(fo.Pb(),36),ZI(co,po.a,0),po.a+=co.f.a+oo,po.b=lo.Math.max(po.b,co.f.b);return po.b>0&&(po.b+=oo),po}function KQ(ro,oo){var co,fo,po;for(po=new Nm,fo=ro.Kc();fo.Ob();)co=bo(fo.Pb(),36),ZI(co,0,po.b),po.b+=co.f.b+oo,po.a=lo.Math.max(po.a,co.f.a);return po.a>0&&(po.a+=oo),po}function Gnt(ro){var oo,co,fo;for(fo=q0,co=new _s(ro.a);co.a>16==6?ro.Cb.Th(ro,5,t_,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||ro.ii()),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function ODt(ro){eI();var oo=ro.e;if(oo&&oo.stack){var co=oo.stack,fo=oo+` `;return co.substring(0,fo.length)==fo&&(co=co.substring(fo.length)),co.split(` -`)}return[]}function IDt(ro){var oo;return oo=(qZe(),m1t),oo[ro>>>28]|oo[ro>>24&15]<<4|oo[ro>>20&15]<<8|oo[ro>>16&15]<<12|oo[ro>>12&15]<<16|oo[ro>>8&15]<<20|oo[ro>>4&15]<<24|oo[ro&15]<<28}function Knt(ro){var oo,co,fo;ro.b==ro.c&&(fo=ro.a.length,co=xEe(lo.Math.max(8,fo))<<1,ro.b!=0?(oo=cS(ro.a,co),iJe(ro,oo,fo),ro.a=oo,ro.b=0):d$(ro.a,co),ro.c=fo)}function NDt(ro,oo){var co;return co=ro.b,co.pf(($0(),Ew))?co.ag()==(nu(),l1)?-co.Mf().a-na(Tl(co.of(Ew))):oo+na(Tl(co.of(Ew))):co.ag()==(nu(),l1)?-co.Mf().a:oo}function Eq(ro){var oo;return ro.b.c.length!=0&&bo(cu(ro.b,0),72).a?bo(cu(ro.b,0),72).a:(oo=Jce(ro),oo??""+(ro.c?Xv(ro.c.a,ro,0):-1))}function YQ(ro){var oo;return ro.f.c.length!=0&&bo(cu(ro.f,0),72).a?bo(cu(ro.f,0),72).a:(oo=Jce(ro),oo??""+(ro.i?Xv(ro.i.j,ro,0):-1))}function MDt(ro,oo){var co,fo;if(oo<0||oo>=ro.gc())return null;for(co=oo;co0?ro.c:0),po=lo.Math.max(po,oo.d),++fo;ro.e=vo,ro.b=po}function LDt(ro){var oo,co;if(!ro.b)for(ro.b=_X(bo(ro.f,123).kh().i),co=new g1(bo(ro.f,123).kh());co.e!=co.i.gc();)oo=bo(k1(co),135),Jl(ro.b,new Qae(oo));return ro.b}function BDt(ro,oo){var co,fo,po;if(oo.dc())return zO(),zO(),GG;for(co=new kVe(ro,oo.gc()),po=new g1(ro);po.e!=po.i.gc();)fo=k1(po),oo.Hc(fo)&&Y1(co,fo);return co}function Gke(ro,oo,co,fo){return oo==0?fo?(!ro.o&&(ro.o=new V2((Ny(),XE),F4,ro,0)),ro.o):(!ro.o&&(ro.o=new V2((Ny(),XE),F4,ro,0)),FH(ro.o)):jQ(ro,oo,co,fo)}function _de(ro){var oo,co;if(ro.rb)for(oo=0,co=ro.rb.i;oo>22),po+=fo>>22,po<0)?!1:(ro.l=co&xw,ro.m=fo&xw,ro.h=po&A5,!0)}function Ede(ro,oo,co,fo,po,vo,xo){var Eo,To;return!(oo.Te()&&(To=ro.a.Ne(co,fo),To<0||!po&&To==0)||oo.Ue()&&(Eo=ro.a.Ne(co,vo),Eo>0||!xo&&Eo==0))}function zDt(ro,oo){$I();var co;if(co=ro.j.g-oo.j.g,co!=0)return 0;switch(ro.j.g){case 2:return Vfe(oo,Y9e)-Vfe(ro,Y9e);case 4:return Vfe(ro,K9e)-Vfe(oo,K9e)}return 0}function HDt(ro){switch(ro.g){case 0:return Mge;case 1:return Dge;case 2:return Lge;case 3:return Bge;case 4:return Dee;case 5:return Fge;default:return null}}function jv(ro,oo,co){var fo,po;return fo=(po=new Gae,TT(po,oo),s2(po,co),Y1((!ro.c&&(ro.c=new Bl(Y6,ro,12,10)),ro.c),po),po),d4(fo,0),L$(fo,1),b4(fo,!0),m4(fo,!0),fo}function J8(ro,oo){var co,fo;if(oo>=ro.i)throw Cs(new Wle(oo,ro.i));return++ro.j,co=ro.g[oo],fo=ro.i-oo-1,fo>0&&jy(ro.g,oo+1,ro.g,oo,fo),Np(ro.g,--ro.i,null),ro.Qi(oo,co),ro.Ni(),co}function Ynt(ro,oo){var co,fo;return ro.Db>>16==17?ro.Cb.Th(ro,21,Jx,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||ro.ii()),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function qDt(ro){var oo,co,fo,po;for(Hu(),Up(ro.c,ro.a),po=new _s(ro.c);po.aco.a.c.length))throw Cs(new i1("index must be >= 0 and <= layer node count"));ro.c&&A2(ro.c.a,ro),ro.c=co,co&&HC(co.a,oo,ro)}function ert(ro,oo){var co,fo,po;for(fo=new x1(E1(_5(ro).a.Kc(),new ko));W1(fo);)return co=bo(R1(fo),18),po=bo(oo.Kb(co),10),new aD(a0(po.n.b+po.o.b/2));return bD(),bD(),xpe}function trt(ro,oo){this.c=new H1,this.a=ro,this.b=oo,this.d=bo(bs(ro,(Wl(),g7)),312),$a(bs(ro,(ou(),N8e)))===$a((HH(),Lee))?this.e=new VFe:this.e=new qFe}function KL(ro,oo){var co,fo;return fo=null,ro.pf(($0(),jR))&&(co=bo(ro.of(jR),96),co.pf(oo)&&(fo=co.of(oo))),fo==null&&ro.Tf()&&(fo=ro.Tf().of(oo)),fo==null&&(fo=iu(oo)),fo}function kde(ro,oo){var co,fo;co=ro.fd(oo);try{return fo=co.Pb(),co.Qb(),fo}catch(po){throw po=$p(po),Hs(po,112)?Cs(new Dv("Can't remove element "+oo)):Cs(po)}}function QDt(ro,oo){var co,fo,po;if(fo=new MK,po=new EEe(fo.q.getFullYear()-$3,fo.q.getMonth(),fo.q.getDate()),co=lWt(ro,oo,po),co==0||co0?oo:0),++co;return new Vl(fo,po)}function Xke(ro,oo){var co,fo;return ro.Db>>16==6?ro.Cb.Th(ro,6,Gp,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Ny(),Jte)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function Qke(ro,oo){var co,fo;return ro.Db>>16==7?ro.Cb.Th(ro,1,jG,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Ny(),eMe)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function Zke(ro,oo){var co,fo;return ro.Db>>16==9?ro.Cb.Th(ro,9,F0,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Ny(),nMe)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function irt(ro,oo){var co,fo;return ro.Db>>16==5?ro.Cb.Th(ro,9,cne,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Pu(),j4)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function ort(ro,oo){var co,fo;return ro.Db>>16==7?ro.Cb.Th(ro,6,t_,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Pu(),H4)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function Jke(ro,oo){var co,fo;return ro.Db>>16==3?ro.Cb.Th(ro,0,HG,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Pu(),P4)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function srt(){this.a=new Gie,this.g=new GQ,this.j=new GQ,this.b=new H1,this.d=new GQ,this.i=new GQ,this.k=new H1,this.c=new H1,this.e=new H1,this.f=new H1}function eLt(ro,oo,co){var fo,po,vo;for(co<0&&(co=0),vo=ro.i,po=co;pou1e)return HI(ro,fo);if(fo==ro)return!0}}return!1}function nLt(ro){switch(EY(),ro.q.g){case 5:qit(ro,(nu(),s1)),qit(ro,z1);break;case 4:Wot(ro,(nu(),s1)),Wot(ro,z1);break;default:Ylt(ro,(nu(),s1)),Ylt(ro,z1)}}function rLt(ro){switch(EY(),ro.q.g){case 5:cot(ro,(nu(),p1)),cot(ro,l1);break;case 4:dnt(ro,(nu(),p1)),dnt(ro,l1);break;default:Xlt(ro,(nu(),p1)),Xlt(ro,l1)}}function iLt(ro){var oo,co;oo=bo(bs(ro,(vS(),tpt)),17),oo?(co=oo.a,co==0?Fl(ro,(g3(),see),new Kfe):Fl(ro,(g3(),see),new CX(co))):Fl(ro,(g3(),see),new CX(1))}function oLt(ro,oo){var co;switch(co=ro.i,oo.g){case 1:return-(ro.n.b+ro.o.b);case 2:return ro.n.a-co.o.a;case 3:return ro.n.b-co.o.b;case 4:return-(ro.n.a+ro.o.a)}return 0}function sLt(ro,oo){switch(ro.g){case 0:return oo==(yx(),P3)?Cee:$ee;case 1:return oo==(yx(),P3)?Cee:KV;case 2:return oo==(yx(),P3)?KV:$ee;default:return KV}}function Tq(ro,oo){var co,fo,po;for(A2(ro.a,oo),ro.e-=oo.r+(ro.a.c.length==0?0:ro.c),po=a6e,fo=new _s(ro.a);fo.a>16==3?ro.Cb.Th(ro,12,F0,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Ny(),JNe)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function t5e(ro,oo){var co,fo;return ro.Db>>16==11?ro.Cb.Th(ro,10,F0,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Ny(),tMe)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function art(ro,oo){var co,fo;return ro.Db>>16==10?ro.Cb.Th(ro,11,Jx,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Pu(),z4)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function lrt(ro,oo){var co,fo;return ro.Db>>16==10?ro.Cb.Th(ro,12,eS,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Pu(),jA)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function Hx(ro){var oo;return!(ro.Bb&1)&&ro.r&&ro.r.Vh()&&(oo=bo(ro.r,54),ro.r=bo(y3(ro,oo),142),ro.r!=oo&&ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,9,8,oo,ro.r))),ro.r}function Tde(ro,oo,co){var fo;return fo=As($s(Am,1),Iv,28,15,[C5e(ro,(US(),xy),oo,co),C5e(ro,c2,oo,co),C5e(ro,Sy,oo,co)]),ro.f&&(fo[0]=lo.Math.max(fo[0],fo[2]),fo[2]=fo[0]),fo}function aLt(ro,oo){var co,fo,po;if(po=OMt(ro,oo),po.c.length!=0)for(Up(po,new Nne),co=po.c.length,fo=0;fo>19,Ao=oo.h>>19,To!=Ao?Ao-To:(po=ro.h,Eo=oo.h,po!=Eo?po-Eo:(fo=ro.m,xo=oo.m,fo!=xo?fo-xo:(co=ro.l,vo=oo.l,co-vo)))}function XQ(){XQ=qo,bAe=(bZ(),Vpe),vAe=new Ru(tTe,bAe),mAe=(qX(),qpe),gAe=new Ru(nTe,mAe),pAe=(LQ(),Hpe),hAe=new Ru(rTe,pAe),dAe=new Ru(iTe,(_f(),!0))}function YL(ro,oo,co){var fo,po;fo=oo*co,Hs(ro.g,154)?(po=P8(ro),po.f.d?po.f.a||(ro.d.a+=fo+x_):(ro.d.d-=fo+x_,ro.d.a+=fo+x_)):Hs(ro.g,10)&&(ro.d.d-=fo,ro.d.a+=2*fo)}function crt(ro,oo,co){var fo,po,vo,xo,Eo;for(po=ro[co.g],Eo=new _s(oo.d);Eo.a0?ro.b:0),++co;oo.b=fo,oo.e=po}function urt(ro){var oo,co,fo;if(fo=ro.b,Yje(ro.i,fo.length)){for(co=fo.length*2,ro.b=Al(kpe,rV,303,co,0,1),ro.c=Al(kpe,rV,303,co,0,1),ro.f=co-1,ro.i=0,oo=ro.a;oo;oo=oo.c)Dq(ro,oo,oo);++ro.g}}function pLt(ro,oo,co,fo){var po,vo,xo,Eo;for(po=0;poxo&&(Eo=xo/fo),po>vo&&(To=vo/po),G_(ro,lo.Math.min(Eo,To)),ro}function mLt(){EZ();var ro,oo;try{if(oo=bo(d5e((r3(),tS),TN),2113),oo)return oo}catch(co){if(co=$p(co),Hs(co,103))ro=co,eSe((c0(),ro));else throw Cs(co)}return new Hie}function vLt(){EZ();var ro,oo;try{if(oo=bo(d5e((r3(),tS),Wx),2040),oo)return oo}catch(co){if(co=$p(co),Hs(co,103))ro=co,eSe((c0(),ro));else throw Cs(co)}return new doe}function bLt(){pQe();var ro,oo;try{if(oo=bo(d5e((r3(),tS),HT),2122),oo)return oo}catch(co){if(co=$p(co),Hs(co,103))ro=co,eSe((c0(),ro));else throw Cs(co)}return new Zoe}function yLt(ro,oo,co){var fo,po;return po=ro.e,ro.e=oo,ro.Db&4&&!(ro.Db&1)&&(fo=new Em(ro,1,4,po,oo),co?co.nj(fo):co=fo),po!=oo&&(oo?co=iN(ro,cZ(ro,oo),co):co=iN(ro,ro.a,co)),co}function frt(){MK.call(this),this.e=-1,this.a=!1,this.p=Ym,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Ym}function wLt(ro,oo){var co,fo,po;if(fo=ro.b.d.d,ro.a||(fo+=ro.b.d.a),po=oo.b.d.d,oo.a||(po+=oo.b.d.a),co=sp(fo,po),co==0){if(!ro.a&&oo.a)return-1;if(!oo.a&&ro.a)return 1}return co}function xLt(ro,oo){var co,fo,po;if(fo=ro.b.b.d,ro.a||(fo+=ro.b.b.a),po=oo.b.b.d,oo.a||(po+=oo.b.b.a),co=sp(fo,po),co==0){if(!ro.a&&oo.a)return-1;if(!oo.a&&ro.a)return 1}return co}function SLt(ro,oo){var co,fo,po;if(fo=ro.b.g.d,ro.a||(fo+=ro.b.g.a),po=oo.b.g.d,oo.a||(po+=oo.b.g.a),co=sp(fo,po),co==0){if(!ro.a&&oo.a)return-1;if(!oo.a&&ro.a)return 1}return co}function r5e(){r5e=qo,ypt=q2(_0(_0(_0(new Zp,(Km(),Qy),(rv(),M9e)),Qy,D9e),Jv,L9e),Jv,_9e),xpt=_0(_0(new Zp,Qy,m9e),Qy,E9e),wpt=q2(new Zp,Jv,T9e)}function _Lt(ro){var oo,co,fo,po,vo;for(oo=bo(bs(ro,(Wl(),aF)),85),vo=ro.n,fo=oo.Cc().Kc();fo.Ob();)co=bo(fo.Pb(),314),po=co.i,po.c+=vo.a,po.d+=vo.b,co.c?Nst(co):Mst(co);Fl(ro,aF,null)}function ELt(ro,oo,co){var fo,po;switch(po=ro.b,fo=po.d,oo.g){case 1:return-fo.d-co;case 2:return po.o.a+fo.c+co;case 3:return po.o.b+fo.a+co;case 4:return-fo.b-co;default:return-1}}function kLt(ro,oo,co){var fo,po;for(co.Ug("Interactive node placement",1),ro.a=bo(bs(oo,(Wl(),g7)),312),po=new _s(oo.b);po.a0&&(xo=(vo&q0)%ro.d.length,po=s4e(ro,xo,vo,oo),po)?(Eo=po.nd(co),Eo):(fo=ro.ck(vo,oo,co),ro.c.Fc(fo),null)}function s5e(ro,oo){var co,fo,po,vo;switch(g4(ro,oo).Kl()){case 3:case 2:{for(co=H9(oo),po=0,vo=co.i;po=0;fo--)if(Iu(ro[fo].d,oo)||Iu(ro[fo].d,co)){ro.length>=fo+1&&ro.splice(0,fo+1);break}return ro}function $q(ro,oo){var co;return ty(ro)&&ty(oo)&&(co=ro/oo,sV0&&(ro.b+=2,ro.a+=fo):(ro.b+=1,ro.a+=lo.Math.min(fo,po))}function brt(ro){var oo;oo=bo(bs(bo(wx(ro.b,0),40),(by(),tOe)),107),Fl(ro,(fp(),nM),new Vl(0,0)),dat(new LH,ro,oo.b+oo.c-na(Tl(bs(ro,Pme))),oo.d+oo.a-na(Tl(bs(ro,jme))))}function yrt(ro,oo){var co,fo;if(fo=!1,Cm(oo)&&(fo=!0,N8(ro,new T$(u0(oo)))),fo||Hs(oo,242)&&(fo=!0,N8(ro,(co=Jwe(bo(oo,242)),new cD(co)))),!fo)throw Cs(new Jae(r$e))}function HLt(ro,oo,co,fo){var po,vo,xo;return po=new m5(ro.e,1,10,(xo=oo.c,Hs(xo,90)?bo(xo,29):(Pu(),nS)),(vo=co.c,Hs(vo,90)?bo(vo,29):(Pu(),nS)),x4(ro,oo),!1),fo?fo.nj(po):fo=po,fo}function c5e(ro){var oo,co;switch(bo(bs(zm(ro),(ou(),T8e)),429).g){case 0:return oo=ro.n,co=ro.o,new Vl(oo.a+co.a/2,oo.b+co.b/2);case 1:return new ov(ro.n);default:return null}}function Aq(){Aq=qo,Bee=new BD(sE,0),f7e=new BD("LEFTUP",1),h7e=new BD("RIGHTUP",2),u7e=new BD("LEFTDOWN",3),d7e=new BD("RIGHTDOWN",4),Pge=new BD("BALANCED",5)}function qLt(ro,oo,co){var fo,po,vo;if(fo=sp(ro.a[oo.p],ro.a[co.p]),fo==0){if(po=bo(bs(oo,(Wl(),RR)),15),vo=bo(bs(co,RR),15),po.Hc(co))return-1;if(vo.Hc(oo))return 1}return fo}function VLt(ro){switch(ro.g){case 1:return new sU;case 2:return new PM;case 3:return new oU;case 0:return null;default:throw Cs(new i1(T0e+(ro.f!=null?ro.f:""+ro.g)))}}function u5e(ro,oo,co){switch(oo){case 1:!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),U1(ro.n),!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),Bp(ro.n,bo(co,16));return;case 2:mI(ro,u0(co));return}REe(ro,oo,co)}function f5e(ro,oo,co){switch(oo){case 3:r6(ro,na(Tl(co)));return;case 4:i6(ro,na(Tl(co)));return;case 5:m2(ro,na(Tl(co)));return;case 6:b2(ro,na(Tl(co)));return}u5e(ro,oo,co)}function QQ(ro,oo,co){var fo,po,vo;vo=(fo=new Gae,fo),po=b_(vo,oo,null),po&&po.oj(),s2(vo,co),Y1((!ro.c&&(ro.c=new Bl(Y6,ro,12,10)),ro.c),vo),d4(vo,0),L$(vo,1),b4(vo,!0),m4(vo,!0)}function d5e(ro,oo){var co,fo,po;return co=OD(ro.i,oo),Hs(co,241)?(po=bo(co,241),po.zi()==null,po.wi()):Hs(co,507)?(fo=bo(co,2037),po=fo.b,po):null}function GLt(ro,oo,co,fo){var po,vo;return a0(oo),a0(co),vo=bo(tL(ro.d,oo),17),jQe(!!vo,"Row %s not in %s",oo,ro.e),po=bo(tL(ro.b,co),17),jQe(!!po,"Column %s not in %s",co,ro.c),QJe(ro,vo.a,po.a,fo)}function wrt(ro,oo,co,fo,po,vo,xo){var Eo,To,Ao,Io,Fo;if(Io=po[vo],Ao=vo==xo-1,Eo=Ao?fo:0,Fo=Pnt(Eo,Io),fo!=10&&As($s(ro,xo-vo),oo[vo],co[vo],Eo,Fo),!Ao)for(++vo,To=0;To1||Eo==-1?(vo=bo(To,15),po.Wb($Nt(ro,vo))):po.Wb(fhe(ro,bo(To,58)))))}function ZLt(ro,oo,co,fo){Eje();var po=wpe;function vo(){for(var xo=0;xo0)return!1;return!0}function tBt(ro){var oo,co,fo,po,vo;for(fo=new ST(new su(ro.b).a);fo.b;)co=a6(fo),oo=bo(co.ld(),10),vo=bo(bo(co.md(),42).a,10),po=bo(bo(co.md(),42).b,8),G0(zS(oo.n),G0(Pm(vo.n),po))}function nBt(ro){switch(bo(bs(ro.b,(ou(),y8e)),387).g){case 1:zp(Kv(fy(new Ou(null,new Du(ro.d,16)),new bre),new yre),new wre);break;case 2:Qqt(ro);break;case 0:APt(ro)}}function rBt(ro,oo,co){var fo,po,vo;for(fo=co,!fo&&(fo=new u8),fo.Ug("Layout",ro.a.c.length),vo=new _s(ro.a);vo.aS0e)return co;po>-1e-6&&++co}return co}function p5e(ro,oo){var co;oo!=ro.b?(co=null,ro.b&&(co=gX(ro.b,ro,-4,co)),oo&&(co=Z8(oo,ro,-4,co)),co=Ket(ro,oo,co),co&&co.oj()):ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,3,oo,oo))}function _rt(ro,oo){var co;oo!=ro.f?(co=null,ro.f&&(co=gX(ro.f,ro,-1,co)),oo&&(co=Z8(oo,ro,-1,co)),co=Uet(ro,oo,co),co&&co.oj()):ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,0,oo,oo))}function aBt(ro,oo,co,fo){var po,vo,xo,Eo;return $w(ro.e)&&(po=oo.Lk(),Eo=oo.md(),vo=co.md(),xo=d3(ro,1,po,Eo,vo,po.Jk()?tN(ro,po,vo,Hs(po,102)&&(bo(po,19).Bb&hv)!=0):-1,!0),fo?fo.nj(xo):fo=xo),fo}function Ert(ro){var oo,co,fo;if(ro==null)return null;if(co=bo(ro,15),co.dc())return"";for(fo=new Z5,oo=co.Kc();oo.Ob();)Av(fo,(rp(),u0(oo.Pb()))),fo.a+=" ";return Kle(fo,fo.a.length-1)}function krt(ro){var oo,co,fo;if(ro==null)return null;if(co=bo(ro,15),co.dc())return"";for(fo=new Z5,oo=co.Kc();oo.Ob();)Av(fo,(rp(),u0(oo.Pb()))),fo.a+=" ";return Kle(fo,fo.a.length-1)}function lBt(ro,oo,co){var fo,po;return fo=ro.c[oo.c.p][oo.p],po=ro.c[co.c.p][co.p],fo.a!=null&&po.a!=null?Lce(fo.a,po.a):fo.a!=null?-1:po.a!=null?1:0}function cBt(ro,oo,co){return co.Ug("Tree layout",1),SH(ro.b),HS(ro.b,(eR(),bte),bte),HS(ro.b,EF,EF),HS(ro.b,kF,kF),HS(ro.b,TF,TF),ro.a=Yq(ro.b,oo),rBt(ro,oo,co.eh(1)),co.Vg(),oo}function uBt(ro,oo){var co,fo,po,vo,xo,Eo;if(oo)for(vo=oo.a.length,co=new fT(vo),Eo=(co.b-co.a)*co.c<0?(i3(),eT):new a3(co);Eo.Ob();)xo=bo(Eo.Pb(),17),po=nI(oo,xo.a),fo=new jBe(ro),v6t(fo.a,po)}function fBt(ro,oo){var co,fo,po,vo,xo,Eo;if(oo)for(vo=oo.a.length,co=new fT(vo),Eo=(co.b-co.a)*co.c<0?(i3(),eT):new a3(co);Eo.Ob();)xo=bo(Eo.Pb(),17),po=nI(oo,xo.a),fo=new OBe(ro),m6t(fo.a,po)}function dBt(ro){var oo;if(ro!=null&&ro.length>0&&Um(ro,ro.length-1)==33)try{return oo=Lot(lx(ro,0,ro.length-1)),oo.e==null}catch(co){if(co=$p(co),!Hs(co,33))throw Cs(co)}return!1}function hBt(ro,oo,co){var fo,po,vo;switch(fo=zm(oo),po=EQ(fo),vo=new Py,uy(vo,oo),co.g){case 1:hm(vo,vq(Y8(po)));break;case 2:hm(vo,Y8(po))}return Fl(vo,(ou(),_A),Tl(bs(ro,_A))),vo}function g5e(ro){var oo,co;return oo=bo(R1(new x1(E1(Sm(ro.a).a.Kc(),new ko))),18),co=bo(R1(new x1(E1(Wp(ro.a).a.Kc(),new ko))),18),lu(au(bs(oo,(Wl(),T_))))||lu(au(bs(co,T_)))}function V$(){V$=qo,YV=new Hz("ONE_SIDE",0),Oee=new Hz("TWO_SIDES_CORNER",1),Iee=new Hz("TWO_SIDES_OPPOSING",2),Ree=new Hz("THREE_SIDES",3),Aee=new Hz("FOUR_SIDES",4)}function Trt(ro,oo){var co,fo,po,vo;for(vo=new Zl,po=0,fo=oo.Kc();fo.Ob();){for(co=Ql(bo(fo.Pb(),17).a+po);co.a=ro.f)break;Ju(vo.c,co)}return vo}function pBt(ro,oo){var co,fo,po,vo,xo;for(vo=new _s(oo.a);vo.a0&&Xnt(this,this.c-1,(nu(),p1)),this.c0&&ro[0].length>0&&(this.c=lu(au(bs(zm(ro[0][0]),(Wl(),$7e))))),this.a=Al(_bt,Yl,2117,ro.length,0,2),this.b=Al(Ebt,Yl,2118,ro.length,0,2),this.d=new Het}function yBt(ro){return ro.c.length==0?!1:(qu(0,ro.c.length),bo(ro.c[0],18)).c.i.k==(a1(),km)?!0:_9(Kv(new Ou(null,new Du(ro,16)),new FS),new LP)}function Art(ro,oo){var co,fo,po,vo,xo,Eo,To;for(Eo=Y$(oo),vo=oo.f,To=oo.g,xo=lo.Math.sqrt(vo*vo+To*To),po=0,fo=new _s(Eo);fo.a=0?(co=$q(ro,DZ),fo=yq(ro,DZ)):(oo=l3(ro,1),co=$q(oo,5e8),fo=yq(oo,5e8),fo=tv(fS(fo,1),vm(ro,1))),qS(fS(fo,32),vm(co,_v))}function Irt(ro,oo,co){var fo,po;switch(fo=(T1(oo.b!=0),bo(hx(oo,oo.a.a),8)),co.g){case 0:fo.b=0;break;case 2:fo.b=ro.f;break;case 3:fo.a=0;break;default:fo.a=ro.g}return po=G1(oo,0),xH(po,fo),oo}function Nrt(ro,oo,co,fo){var po,vo,xo,Eo,To;switch(To=ro.b,vo=oo.d,xo=vo.j,Eo=Ike(xo,To.d[xo.g],co),po=G0(Pm(vo.n),vo.a),vo.j.g){case 1:case 3:Eo.a+=po.a;break;case 2:case 4:Eo.b+=po.b}Mp(fo,Eo,fo.c.b,fo.c)}function OBt(ro,oo,co){var fo,po,vo,xo;for(xo=Xv(ro.e,oo,0),vo=new wye,vo.b=co,fo=new Lm(ro.e,xo);fo.b1;oo>>=1)oo&1&&(fo=S9(fo,co)),co.d==1?co=S9(co,co):co=new Utt(bat(co.a,co.d,Al(Q1,E0,28,co.d<<1,15,1)));return fo=S9(fo,co),fo}function E5e(){E5e=qo;var ro,oo,co,fo;for(iAe=Al(Am,Iv,28,25,15,1),oAe=Al(Am,Iv,28,33,15,1),fo=152587890625e-16,oo=32;oo>=0;oo--)oAe[oo]=fo,fo*=.5;for(co=1,ro=24;ro>=0;ro--)iAe[ro]=co,co*=.5}function BBt(ro){var oo,co;if(lu(au(zl(ro,(ou(),SA))))){for(co=new x1(E1(T5(ro).a.Kc(),new ko));W1(co);)if(oo=bo(R1(co),74),g6(oo)&&lu(au(zl(oo,KT))))return!0}return!1}function Mrt(ro,oo){var co,fo,po;om(ro.f,oo)&&(oo.b=ro,fo=oo.c,Xv(ro.j,fo,0)!=-1||Jl(ro.j,fo),po=oo.d,Xv(ro.j,po,0)!=-1||Jl(ro.j,po),co=oo.a.b,co.c.length!=0&&(!ro.i&&(ro.i=new Jtt(ro)),HRt(ro.i,co)))}function FBt(ro){var oo,co,fo,po,vo;return co=ro.c.d,fo=co.j,po=ro.d.d,vo=po.j,fo==vo?co.p=0&&Iu(ro.substr(oo,3),"GMT")||oo>=0&&Iu(ro.substr(oo,3),"UTC"))&&(co[0]=oo+3),r3e(ro,co,fo)}function jBt(ro,oo){var co,fo,po,vo,xo;for(vo=ro.g.a,xo=ro.g.b,fo=new _s(ro.d);fo.aco;vo--)ro[vo]|=oo[vo-co-1]>>>xo,ro[vo-1]=oo[vo-co-1]<0&&jy(ro.g,oo,ro.g,oo+fo,Eo),xo=co.Kc(),ro.i+=fo,po=0;po>4&15,vo=ro[fo]&15,xo[po++]=rMe[co],xo[po++]=rMe[vo];return zx(xo,0,xo.length)}function O2(ro){var oo,co;return ro>=hv?(oo=aV+(ro-hv>>10&1023)&em,co=56320+(ro-hv&1023)&em,String.fromCharCode(oo)+(""+String.fromCharCode(co))):String.fromCharCode(ro&em)}function QBt(ro,oo){x$();var co,fo,po,vo;return po=bo(bo(Q0(ro.r,oo),21),87),po.gc()>=2?(fo=bo(po.Kc().Pb(),117),co=ro.u.Hc((sw(),KF)),vo=ro.u.Hc(qR),!fo.a&&!co&&(po.gc()==2||vo)):!1}function Brt(ro,oo,co,fo,po){var vo,xo,Eo;for(vo=kst(ro,oo,co,fo,po),Eo=!1;!vo;)aZ(ro,po,!0),Eo=!0,vo=kst(ro,oo,co,fo,po);Eo&&aZ(ro,po,!1),xo=yfe(po),xo.c.length!=0&&(ro.d&&ro.d.Gg(xo),Brt(ro,po,co,fo,xo))}function tZ(){tZ=qo,Kve=new zD(sE,0),CNe=new zD("DIRECTED",1),ANe=new zD("UNDIRECTED",2),kNe=new zD("ASSOCIATION",3),$Ne=new zD("GENERALIZATION",4),TNe=new zD("DEPENDENCY",5)}function ZBt(ro,oo){var co;if(!l_(ro))throw Cs(new Lv(ndt));switch(co=l_(ro),oo.g){case 1:return-(ro.j+ro.f);case 2:return ro.i-co.g;case 3:return ro.j-co.f;case 4:return-(ro.i+ro.g)}return 0}function JBt(ro,oo,co){var fo,po,vo;return fo=oo.Lk(),vo=oo.md(),po=fo.Jk()?d3(ro,4,fo,vo,null,tN(ro,fo,vo,Hs(fo,102)&&(bo(fo,19).Bb&hv)!=0),!0):d3(ro,fo.tk()?2:1,fo,vo,fo.ik(),-1,!0),co?co.nj(po):co=po,co}function GI(ro,oo){var co,fo;for(u1(oo),fo=ro.b.c.length,Jl(ro.b,oo);fo>0;){if(co=fo,fo=(fo-1)/2|0,ro.a.Ne(cu(ro.b,fo),oo)<=0)return fx(ro.b,co,oo),!0;fx(ro.b,co,cu(ro.b,fo))}return fx(ro.b,fo,oo),!0}function C5e(ro,oo,co,fo){var po,vo;if(po=0,co)po=yQ(ro.a[co.g][oo.g],fo);else for(vo=0;vo=Eo)}function Frt(ro){switch(ro.g){case 0:return new dU;case 1:return new mie;default:throw Cs(new i1("No implementation is available for the width approximator "+(ro.f!=null?ro.f:""+ro.g)))}}function $5e(ro,oo,co,fo){var po;if(po=!1,Cm(fo)&&(po=!0,GO(oo,co,u0(fo))),po||v$(fo)&&(po=!0,$5e(ro,oo,co,fo)),po||Hs(fo,242)&&(po=!0,pT(oo,co,bo(fo,242))),!po)throw Cs(new Jae(r$e))}function tFt(ro,oo){var co,fo,po;if(co=oo.qi(ro.a),co&&(po=KS((!co.b&&(co.b=new Rw((Pu(),gv),Ey,co)),co.b),Gx),po!=null)){for(fo=1;fo<(W2(),CMe).length;++fo)if(Iu(CMe[fo],po))return fo}return 0}function nFt(ro,oo){var co,fo,po;if(co=oo.qi(ro.a),co&&(po=KS((!co.b&&(co.b=new Rw((Pu(),gv),Ey,co)),co.b),Gx),po!=null)){for(fo=1;fo<(W2(),$Me).length;++fo)if(Iu($Me[fo],po))return fo}return 0}function Prt(ro,oo){var co,fo,po,vo;if(u1(oo),vo=ro.a.gc(),vo0?1:0;vo.a[po]!=co;)vo=vo.a[po],po=ro.a.Ne(co.d,vo.d)>0?1:0;vo.a[po]=fo,fo.b=co.b,fo.a[0]=co.a[0],fo.a[1]=co.a[1],co.a[0]=null,co.a[1]=null}function oFt(ro){var oo,co,fo,po;for(oo=new Zl,co=Al(kw,jE,28,ro.a.c.length,16,1),Yxe(co,co.length),po=new _s(ro.a);po.a0&&pat((qu(0,co.c.length),bo(co.c[0],30)),ro),co.c.length>1&&pat(bo(cu(co,co.c.length-1),30),ro),oo.Vg()}function aFt(ro){sw();var oo,co;return oo=mp(L5,As($s(Wte,1),Pl,279,0,[K3])),!(tq(vX(oo,ro))>1||(co=mp(KF,As($s(Wte,1),Pl,279,0,[UF,qR])),tq(vX(co,ro))>1))}function R5e(ro,oo){var co;co=Gy((r3(),tS),ro),Hs(co,507)?Bv(tS,ro,new kHe(this,oo)):Bv(tS,ro,this),Bde(this,oo),oo==(RO(),gMe)?(this.wb=bo(this,2038),bo(oo,2040)):this.wb=(c3(),_d)}function lFt(ro){var oo,co,fo;if(ro==null)return null;for(oo=null,co=0;co=k4?"error":fo>=900?"warn":fo>=800?"info":"log"),WWe(co,ro.a),ro.b&&I4e(oo,co,ro.b,"Exception: ",!0))}function bs(ro,oo){var co,fo;return fo=(!ro.q&&(ro.q=new H1),m1(ro.q,oo)),fo??(co=oo.Sg(),Hs(co,4)&&(co==null?(!ro.q&&(ro.q=new H1),z8(ro.q,oo)):(!ro.q&&(ro.q=new H1),N0(ro.q,oo,co))),co)}function Km(){Km=qo,xS=new zz("P1_CYCLE_BREAKING",0),qE=new zz("P2_LAYERING",1),zy=new zz("P3_NODE_ORDERING",2),Qy=new zz("P4_NODE_PLACEMENT",3),Jv=new zz("P5_EDGE_ROUTING",4)}function cFt(ro,oo){_L();var co;if(ro.c==oo.c){if(ro.b==oo.b||mRt(ro.b,oo.b)){if(co=jEt(ro.b)?1:-1,ro.a&&!oo.a)return co;if(!ro.a&&oo.a)return-co}return Oy(ro.b.g,oo.b.g)}else return sp(ro.c,oo.c)}function Vrt(ro,oo){var co,fo,po;if(I5e(ro,oo))return!0;for(fo=new _s(oo);fo.a=po||oo<0)throw Cs(new Dv(epe+oo+jT+po));if(co>=po||co<0)throw Cs(new Dv(tpe+co+jT+po));return oo!=co?fo=(vo=ro.Cj(co),ro.qj(oo,vo),vo):fo=ro.xj(co),fo}function Urt(ro){var oo,co,fo;if(fo=ro,ro)for(oo=0,co=ro.Eh();co;co=co.Eh()){if(++oo>u1e)return Urt(co);if(fo=co,co==ro)throw Cs(new Lv("There is a cycle in the containment hierarchy of "+ro))}return fo}function _3(ro){var oo,co,fo;for(fo=new _T(av,"[","]"),co=ro.Kc();co.Ob();)oo=co.Pb(),g5(fo,$a(oo)===$a(ro)?"(this Collection)":oo==null?I2:ry(oo));return fo.a?fo.e.length==0?fo.a.a:fo.a.a+(""+fo.e):fo.c}function I5e(ro,oo){var co,fo;if(fo=!1,oo.gc()<2)return!1;for(co=0;co1&&(ro.j.b+=ro.e)):(ro.j.a+=co.a,ro.j.b=lo.Math.max(ro.j.b,co.b),ro.d.c.length>1&&(ro.j.a+=ro.e))}function E3(){E3=qo,agt=As($s(pv,1),My,64,0,[(nu(),s1),p1,z1]),sgt=As($s(pv,1),My,64,0,[p1,z1,l1]),lgt=As($s(pv,1),My,64,0,[z1,l1,s1]),cgt=As($s(pv,1),My,64,0,[l1,s1,p1])}function fFt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io;if(xo=ro.c.d,Eo=ro.d.d,xo.j!=Eo.j)for(Io=ro.b,po=xo.j,To=null;po!=Eo.j;)To=oo==0?_Q(po):ZEe(po),vo=Ike(po,Io.d[po.g],co),Ao=Ike(To,Io.d[To.g],co),y0(fo,G0(vo,Ao)),po=To}function dFt(ro,oo,co,fo){var po,vo,xo,Eo,To;return xo=Qnt(ro.a,oo,co),Eo=bo(xo.a,17).a,vo=bo(xo.b,17).a,fo&&(To=bo(bs(oo,(Wl(),aw)),10),po=bo(bs(co,aw),10),To&&po&&(IYe(ro.b,To,po),Eo+=ro.b.i,vo+=ro.b.e)),Eo>vo}function Yrt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao;for(this.a=bnt(ro),this.b=new Zl,co=ro,fo=0,po=co.length;fofce(ro.d).c?(ro.i+=ro.g.c,Zfe(ro.d)):fce(ro.d).c>fce(ro.g).c?(ro.e+=ro.d.c,Zfe(ro.g)):(ro.i+=eWe(ro.g),ro.e+=eWe(ro.d),Zfe(ro.g),Zfe(ro.d))}function mFt(ro,oo,co){var fo,po,vo,xo;for(vo=oo.q,xo=oo.r,new gT((VS(),z3),oo,vo,1),new gT(z3,vo,xo,1),po=new _s(co);po.aEo&&(To=Eo/fo),po>vo&&(Ao=vo/po),xo=lo.Math.min(To,Ao),ro.a+=xo*(oo.a-ro.a),ro.b+=xo*(oo.b-ro.b)}function wFt(ro,oo,co,fo,po){var vo,xo;for(xo=!1,vo=bo(cu(co.b,0),27);YGt(ro,oo,vo,fo,po)&&(xo=!0,XLt(co,vo),co.b.c.length!=0);)vo=bo(cu(co.b,0),27);return co.b.c.length==0&&Tq(co.j,co),xo&&UQ(oo.q),xo}function xFt(ro,oo){j9();var co,fo,po,vo;if(oo.b<2)return!1;for(vo=G1(oo,0),co=bo(q1(vo),8),fo=co;vo.b!=vo.d.c;){if(po=bo(q1(vo),8),Jde(ro,fo,po))return!0;fo=po}return!!Jde(ro,fo,co)}function M5e(ro,oo,co,fo){var po,vo;return co==0?(!ro.o&&(ro.o=new V2((Ny(),XE),F4,ro,0)),$Y(ro.o,oo,fo)):(vo=bo(Uu((po=bo(n1(ro,16),29),po||ro.ii()),co),69),vo.wk().Ak(ro,y2(ro),co-A1(ro.ii()),oo,fo))}function Bde(ro,oo){var co;oo!=ro.sb?(co=null,ro.sb&&(co=bo(ro.sb,54).Th(ro,1,QF,co)),oo&&(co=bo(oo,54).Rh(ro,1,QF,co)),co=WEe(ro,oo,co),co&&co.oj()):ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,4,oo,oo))}function SFt(ro,oo){var co,fo,po,vo;if(oo)po=w5(oo,"x"),co=new BBe(ro),uI(co.a,(u1(po),po)),vo=w5(oo,"y"),fo=new FBe(ro),dI(fo.a,(u1(vo),vo));else throw Cs(new z_("All edge sections need an end point."))}function _Ft(ro,oo){var co,fo,po,vo;if(oo)po=w5(oo,"x"),co=new MBe(ro),fI(co.a,(u1(po),po)),vo=w5(oo,"y"),fo=new DBe(ro),hI(fo.a,(u1(vo),vo));else throw Cs(new z_("All edge sections need a start point."))}function EFt(ro,oo){var co,fo,po,vo,xo,Eo,To;for(fo=_et(ro),vo=0,Eo=fo.length;vo>22-oo,po=ro.h<>22-oo):oo<44?(co=0,fo=ro.l<>44-oo):(co=0,fo=0,po=ro.l<ro)throw Cs(new i1("k must be smaller than n"));return oo==0||oo==ro?1:ro==0?0:a5e(ro)/(a5e(oo)*a5e(ro-oo))}function D5e(ro,oo){var co,fo,po,vo;for(co=new X2e(ro);co.g==null&&!co.c?$Se(co):co.g==null||co.i!=0&&bo(co.g[co.i-1],51).Ob();)if(vo=bo(lZ(co),58),Hs(vo,167))for(fo=bo(vo,167),po=0;po>4],oo[co*2+1]=pne[vo&15];return zx(oo,0,oo.length)}function jFt(ro){oX();var oo,co,fo;switch(fo=ro.c.length,fo){case 0:return o1t;case 1:return oo=bo(Bit(new _s(ro)),44),ITt(oo.ld(),oo.md());default:return co=bo(v_(ro,Al(qT,NZ,44,ro.c.length,0,1)),173),new Nye(co)}}function zFt(ro){var oo,co,fo,po,vo,xo;for(oo=new m9,co=new m9,h3(oo,ro),h3(co,ro);co.b!=co.c;)for(po=bo(O8(co),36),xo=new _s(po.a);xo.a0&&qq(ro,co,oo),po):Ajt(ro,oo,co)}function k3(){k3=qo,u2t=($0(),PR),f2t=rC,s2t=nC,a2t=N7,l2t=V3,o2t=I7,xOe=$G,c2t=IA,tve=(Y4e(),Kyt),nve=Yyt,_Oe=Jyt,rve=n2t,EOe=e2t,kOe=t2t,SOe=Xyt,Tte=Qyt,Cte=Zyt,mG=r2t,TOe=i2t,wOe=Uyt}function rit(ro,oo){var co,fo,po,vo,xo;if(ro.e<=oo||fAt(ro,ro.g,oo))return ro.g;for(vo=ro.r,fo=ro.g,xo=ro.r,po=(vo-fo)/2+fo;fo+11&&(ro.e.b+=ro.a)):(ro.e.a+=co.a,ro.e.b=lo.Math.max(ro.e.b,co.b),ro.d.c.length>1&&(ro.e.a+=ro.a))}function WFt(ro){var oo,co,fo,po;switch(po=ro.i,oo=po.b,fo=po.j,co=po.g,po.a.g){case 0:co.a=(ro.g.b.o.a-fo.a)/2;break;case 1:co.a=oo.d.n.a+oo.d.a.a;break;case 2:co.a=oo.d.n.a+oo.d.a.a-fo.a;break;case 3:co.b=oo.d.n.b+oo.d.a.b}}function UFt(ro,oo,co){var fo,po,vo;for(po=new x1(E1(_5(co).a.Kc(),new ko));W1(po);)fo=bo(R1(po),18),!dv(fo)&&!(!dv(fo)&&fo.c.i.c==fo.d.i.c)&&(vo=Xot(ro,fo,co,new GFe),vo.c.length>1&&Ju(oo.c,vo))}function oit(ro,oo,co,fo,po){if(fofo&&(ro.a=fo),ro.bpo&&(ro.b=po),ro}function KFt(ro){if(Hs(ro,143))return kHt(bo(ro,143));if(Hs(ro,233))return gNt(bo(ro,233));if(Hs(ro,23))return TFt(bo(ro,23));throw Cs(new i1(i$e+_3(new ew(As($s(bm,1),Xu,1,5,[ro])))))}function YFt(ro,oo,co,fo,po){var vo,xo,Eo;for(vo=!0,xo=0;xo>>po|co[xo+fo+1]<>>po,++xo}return vo}function P5e(ro,oo,co,fo){var po,vo,xo;if(oo.k==(a1(),km)){for(vo=new x1(E1(Sm(oo).a.Kc(),new ko));W1(vo);)if(po=bo(R1(vo),18),xo=po.c.i.k,xo==km&&ro.c.a[po.c.i.c.p]==fo&&ro.c.a[oo.c.p]==co)return!0}return!1}function XFt(ro,oo){var co,fo,po,vo;return oo&=63,co=ro.h&A5,oo<22?(vo=co>>>oo,po=ro.m>>oo|co<<22-oo,fo=ro.l>>oo|ro.m<<22-oo):oo<44?(vo=0,po=co>>>oo-22,fo=ro.m>>oo-22|ro.h<<44-oo):(vo=0,po=0,fo=co>>>oo-44),h2(fo&xw,po&xw,vo&A5)}function sit(ro,oo,co,fo){var po;this.b=fo,this.e=ro==(o6(),xF),po=oo[co],this.d=cT(kw,[Yl,jE],[183,28],16,[po.length,po.length],2),this.a=cT(Q1,[Yl,E0],[53,28],15,[po.length,po.length],2),this.c=new w5e(oo,co)}function QFt(ro){var oo,co,fo;for(ro.k=new OSe((nu(),As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1])).length,ro.j.c.length),fo=new _s(ro.j);fo.a=co)return UI(ro,oo,fo.p),!0;return!1}function L9(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao;for(xo=co.length,vo=0,po=-1,Ao=UQe((o1(oo,ro.length+1),ro.substr(oo)),(mce(),nAe)),Eo=0;Eovo&&_Ct(Ao,UQe(co[Eo],nAe))&&(po=Eo,vo=To);return po>=0&&(fo[0]=oo+vo),po}function lit(ro){var oo;return ro.Db&64?Fde(ro):(oo=new Bw(U6e),!ro.a||S0(S0((oo.a+=' "',oo),ro.a),'"'),S0(RC(S0(RC(S0(RC(S0(RC((oo.a+=" (",oo),ro.i),","),ro.j)," | "),ro.g),","),ro.f),")"),oo.a)}function cit(ro,oo,co){var fo,po,vo,xo,Eo;for(Eo=w2(ro.e.Dh(),oo),po=bo(ro.g,124),fo=0,xo=0;xoco?Y5e(ro,co,"start index"):oo<0||oo>co?Y5e(oo,co,"end index"):aB("end index (%s) must not be less than start index (%s)",As($s(bm,1),Xu,1,5,[Ql(oo),Ql(ro)]))}function fit(ro,oo){var co,fo,po,vo;for(fo=0,po=ro.length;fo0&&dit(ro,vo,co));oo.p=0}function gu(ro){var oo;this.c=new xp,this.f=ro.e,this.e=ro.d,this.i=ro.g,this.d=ro.c,this.b=ro.b,this.k=ro.j,this.a=ro.a,ro.i?this.j=ro.i:this.j=(oo=bo(PS(WE),9),new sx(oo,bo(cS(oo,oo.length),9),0)),this.g=ro.f}function rPt(ro){var oo,co,fo,po;for(oo=u3(S0(new Bw("Predicates."),"and"),40),co=!0,po=new EE(ro);po.b0?Eo[xo-1]:Al(VE,T4,10,0,0,1),po=Eo[xo],Ao=xo=0?ro.ki(po):J5e(ro,fo);else throw Cs(new i1(I3+fo.xe()+LB));else throw Cs(new i1(hdt+oo+pdt));else mx(ro,co,fo)}function j5e(ro){var oo,co;if(co=null,oo=!1,Hs(ro,211)&&(oo=!0,co=bo(ro,211).a),oo||Hs(ro,263)&&(oo=!0,co=""+bo(ro,263).a),oo||Hs(ro,493)&&(oo=!0,co=""+bo(ro,493).a),!oo)throw Cs(new Jae(r$e));return co}function z5e(ro,oo,co){var fo,po,vo,xo,Eo,To;for(To=w2(ro.e.Dh(),oo),fo=0,Eo=ro.i,po=bo(ro.g,124),xo=0;xo=ro.d.b.c.length&&(oo=new Vy(ro.d),oo.p=fo.p-1,Jl(ro.d.b,oo),co=new Vy(ro.d),co.p=fo.p,Jl(ro.d.b,co)),Dm(fo,bo(cu(ro.d.b,fo.p),30))}function V5e(ro,oo,co){var fo,po,vo;if(!ro.b[oo.g]){for(ro.b[oo.g]=!0,fo=co,!fo&&(fo=new LH),y0(fo.b,oo),vo=ro.a[oo.g].Kc();vo.Ob();)po=bo(vo.Pb(),65),po.b!=oo&&V5e(ro,po.b,fo),po.c!=oo&&V5e(ro,po.c,fo),y0(fo.a,po);return fo}return null}function aPt(ro){switch(ro.g){case 0:case 1:case 2:return nu(),s1;case 3:case 4:case 5:return nu(),z1;case 6:case 7:case 8:return nu(),l1;case 9:case 10:case 11:return nu(),p1;default:return nu(),gy}}function lPt(ro,oo){var co;return ro.c.length==0?!1:(co=$tt((qu(0,ro.c.length),bo(ro.c[0],18)).c.i),Pw(),co==(H$(),x7)||co==w7?!0:_9(Kv(new Ou(null,new Du(ro,16)),new IW),new VLe(oo)))}function Hde(ro,oo){if(Hs(oo,207))return tkt(ro,bo(oo,27));if(Hs(oo,193))return nkt(ro,bo(oo,123));if(Hs(oo,452))return ekt(ro,bo(oo,166));throw Cs(new i1(i$e+_3(new ew(As($s(bm,1),Xu,1,5,[oo])))))}function yit(ro,oo,co){var fo,po;if(this.f=ro,fo=bo(m1(ro.b,oo),260),po=fo?fo.a:0,a_e(co,po),co>=(po/2|0))for(this.e=fo?fo.c:null,this.d=po;co++0;)I_e(this);this.b=oo,this.a=null}function cPt(ro,oo){var co,fo;oo.a?qHt(ro,oo):(co=bo(ule(ro.b,oo.b),60),co&&co==ro.a[oo.b.f]&&co.a&&co.a!=oo.b.a&&co.c.Fc(oo.b),fo=bo(cle(ro.b,oo.b),60),fo&&ro.a[fo.f]==oo.b&&fo.a&&fo.a!=oo.b.a&&oo.b.c.Fc(fo),rce(ro.b,oo.b))}function wit(ro,oo){var co,fo;if(co=bo(Rv(ro.b,oo),127),bo(bo(Q0(ro.r,oo),21),87).dc()){co.n.b=0,co.n.c=0;return}co.n.b=ro.C.b,co.n.c=ro.C.c,ro.A.Hc((Mw(),oC))&&Kst(ro,oo),fo=BMt(ro,oo),the(ro,oo)==(R9(),W3)&&(fo+=2*ro.w),co.a.a=fo}function xit(ro,oo){var co,fo;if(co=bo(Rv(ro.b,oo),127),bo(bo(Q0(ro.r,oo),21),87).dc()){co.n.d=0,co.n.a=0;return}co.n.d=ro.C.d,co.n.a=ro.C.a,ro.A.Hc((Mw(),oC))&&Yst(ro,oo),fo=LMt(ro,oo),the(ro,oo)==(R9(),W3)&&(fo+=2*ro.w),co.a.b=fo}function uPt(ro,oo){var co,fo,po,vo;for(vo=new Zl,fo=new _s(oo);fo.afo&&(o1(oo-1,ro.length),ro.charCodeAt(oo-1)<=32);)--oo;return fo>0||ooco.a&&(fo.Hc((AT(),BF))?po=(oo.a-co.a)/2:fo.Hc(FF)&&(po=oo.a-co.a)),oo.b>co.b&&(fo.Hc((AT(),jF))?vo=(oo.b-co.b)/2:fo.Hc(PF)&&(vo=oo.b-co.b)),A5e(ro,po,vo)}function $it(ro,oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo){Hs(ro.Cb,90)&&U$(mw(bo(ro.Cb,90)),4),s2(ro,co),ro.f=xo,NI(ro,Eo),LI(ro,To),II(ro,Ao),MI(ro,Io),b4(ro,Fo),BI(ro,Wo),m4(ro,!0),d4(ro,po),ro.Zk(vo),TT(ro,oo),fo!=null&&(ro.i=null,iQ(ro,fo))}function Y5e(ro,oo,co){if(ro<0)return aB(Cct,As($s(bm,1),Xu,1,5,[co,Ql(ro)]));if(oo<0)throw Cs(new i1($ct+oo));return aB("%s (%s) must not be greater than size (%s)",As($s(bm,1),Xu,1,5,[co,Ql(ro),Ql(oo)]))}function X5e(ro,oo,co,fo,po,vo){var xo,Eo,To,Ao;if(xo=fo-co,xo<7){iNt(oo,co,fo,vo);return}if(To=co+po,Eo=fo+po,Ao=To+(Eo-To>>1),X5e(oo,ro,To,Ao,-po,vo),X5e(oo,ro,Ao,Eo,-po,vo),vo.Ne(ro[Ao-1],ro[Ao])<=0){for(;co=0?ro.bi(vo,co):T4e(ro,po,co);else throw Cs(new i1(I3+po.xe()+LB));else throw Cs(new i1(hdt+oo+pdt));else vx(ro,fo,po,co)}function Ait(ro){var oo,co;if(ro.f){for(;ro.n>0;){if(oo=bo(ro.k.Xb(ro.n-1),76),co=oo.Lk(),Hs(co,102)&&bo(co,19).Bb&Cy&&(!ro.e||co.pk()!=hM||co.Lj()!=0)&&oo.md()!=null)return!0;--ro.n}return!1}else return ro.n>0}function Rit(ro){var oo,co,fo,po;if(co=bo(ro,54)._h(),co)try{if(fo=null,oo=YI((r3(),tS),vat(mNt(co))),oo&&(po=oo.ai(),po&&(fo=po.Fl(m_t(co.e)))),fo&&fo!=ro)return Rit(fo)}catch(vo){if(vo=$p(vo),!Hs(vo,63))throw Cs(vo)}return ro}function TPt(ro,oo,co){var fo,po,vo;co.Ug("Remove overlaps",1),co.dh(oo,s6e),fo=bo(zl(oo,(b9(),E7)),27),ro.f=fo,ro.a=lde(bo(zl(oo,(k3(),mG)),300)),po=Tl(zl(oo,($0(),rC))),fD(ro,(u1(po),po)),vo=Y$(fo),Plt(ro,oo,vo,co),co.dh(oo,mJ)}function CPt(ro){var oo,co,fo;if(lu(au(zl(ro,($0(),TG))))){for(fo=new Zl,co=new x1(E1(T5(ro).a.Kc(),new ko));W1(co);)oo=bo(R1(co),74),g6(oo)&&lu(au(zl(oo,Lve)))&&Ju(fo.c,oo);return fo}else return Hu(),Hu(),cv}function Oit(ro){if(!ro)return EPe(),p1t;var oo=ro.valueOf?ro.valueOf():ro;if(oo!==ro){var co=Rpe[typeof oo];return co?co(oo):PEe(typeof oo)}else return ro instanceof Array||ro instanceof lo.Array?new rK(ro):new wO(ro)}function Iit(ro,oo,co){var fo,po,vo;switch(vo=ro.o,fo=bo(Rv(ro.p,co),252),po=fo.i,po.b=eB(fo),po.a=JL(fo),po.b=lo.Math.max(po.b,vo.a),po.b>vo.a&&!oo&&(po.b=vo.a),po.c=-(po.b-vo.a)/2,co.g){case 1:po.d=-po.a;break;case 3:po.d=vo.b}phe(fo),ghe(fo)}function Nit(ro,oo,co){var fo,po,vo;switch(vo=ro.o,fo=bo(Rv(ro.p,co),252),po=fo.i,po.b=eB(fo),po.a=JL(fo),po.a=lo.Math.max(po.a,vo.b),po.a>vo.b&&!oo&&(po.a=vo.b),po.d=-(po.a-vo.b)/2,co.g){case 4:po.c=-po.b;break;case 2:po.c=vo.a}phe(fo),ghe(fo)}function $Pt(ro,oo){var co,fo,po,vo,xo;if(!oo.dc()){if(po=bo(oo.Xb(0),131),oo.gc()==1){dst(ro,po,po,1,0,oo);return}for(co=1;co0)try{po=Ww(oo,Ym,q0)}catch(vo){throw vo=$p(vo),Hs(vo,130)?(fo=vo,Cs(new PX(fo))):Cs(vo)}return co=(!ro.a&&(ro.a=new Bae(ro)),ro.a),po=0?bo(Gs(co,po),58):null}function IPt(ro,oo){if(ro<0)return aB(Cct,As($s(bm,1),Xu,1,5,["index",Ql(ro)]));if(oo<0)throw Cs(new i1($ct+oo));return aB("%s (%s) must be less than size (%s)",As($s(bm,1),Xu,1,5,["index",Ql(ro),Ql(oo)]))}function NPt(ro){var oo,co,fo,po,vo;if(ro==null)return I2;for(vo=new _T(av,"[","]"),co=ro,fo=0,po=co.length;fo=0?ro.Lh(co,!0,!0):m6(ro,po,!0),160)),bo(fo,220).Zl(oo);else throw Cs(new i1(I3+oo.xe()+LB))}function e4e(ro){var oo,co;return ro>-0x800000000000&&ro<0x800000000000?ro==0?0:(oo=ro<0,oo&&(ro=-ro),co=dm(lo.Math.floor(lo.Math.log(ro)/.6931471805599453)),(!oo||ro!=lo.Math.pow(2,co))&&++co,co):qJe(Ty(ro))}function KPt(ro){var oo,co,fo,po,vo,xo,Eo;for(vo=new V_,co=new _s(ro);co.a2&&Eo.e.b+Eo.j.b<=2&&(po=Eo,fo=xo),vo.a.zc(po,vo),po.q=fo);return vo}function YPt(ro,oo,co){co.Ug("Eades radial",1),co.dh(oo,mJ),ro.d=bo(zl(oo,(b9(),E7)),27),ro.c=na(Tl(zl(oo,(k3(),Cte)))),ro.e=lde(bo(zl(oo,mG),300)),ro.a=ENt(bo(zl(oo,TOe),434)),ro.b=VLt(bo(zl(oo,SOe),354)),TLt(ro),co.dh(oo,mJ)}function XPt(ro,oo){if(oo.Ug("Target Width Setter",1),h_(ro,(y_(),gve)))tp(ro,(ME(),RA),Tl(zl(ro,gve)));else throw Cs(new Q5("A target width has to be set if the TargetWidthWidthApproximator should be used."));oo.Vg()}function Fit(ro,oo){var co,fo,po;return fo=new k5(ro),Qv(fo,oo),Fl(fo,(Wl(),Vee),oo),Fl(fo,(ou(),Pp),(Im(),n2)),Fl(fo,dE,(IE(),Pte)),_E(fo,(a1(),Kp)),co=new Py,uy(co,fo),hm(co,(nu(),l1)),po=new Py,uy(po,fo),hm(po,p1),fo}function Pit(ro){switch(ro.g){case 0:return new Xae((o6(),uG));case 1:return new sD;case 2:return new Hse;default:throw Cs(new i1("No implementation is available for the crossing minimizer "+(ro.f!=null?ro.f:""+ro.g)))}}function jit(ro,oo){var co,fo,po,vo,xo;for(ro.c[oo.p]=!0,Jl(ro.a,oo),xo=new _s(oo.j);xo.a=vo)xo.$b();else for(po=xo.Kc(),fo=0;fo0?Fye():xo<0&&Vit(ro,oo,-xo),!0):!1}function JL(ro){var oo,co,fo,po,vo,xo,Eo;if(Eo=0,ro.b==0){for(xo=knt(ro,!0),oo=0,fo=xo,po=0,vo=fo.length;po0&&(Eo+=co,++oo);oo>1&&(Eo+=ro.c*(oo-1))}else Eo=LPe(ffe(C$(X0(Uxe(ro.a),new k0),new ap)));return Eo>0?Eo+ro.n.d+ro.n.a:0}function eB(ro){var oo,co,fo,po,vo,xo,Eo;if(Eo=0,ro.b==0)Eo=LPe(ffe(C$(X0(Uxe(ro.a),new h0),new cp)));else{for(xo=Tnt(ro,!0),oo=0,fo=xo,po=0,vo=fo.length;po0&&(Eo+=co,++oo);oo>1&&(Eo+=ro.c*(oo-1))}return Eo>0?Eo+ro.n.b+ro.n.c:0}function rjt(ro){var oo,co;if(ro.c.length!=2)throw Cs(new Lv("Order only allowed for two paths."));oo=(qu(0,ro.c.length),bo(ro.c[0],18)),co=(qu(1,ro.c.length),bo(ro.c[1],18)),oo.d.i!=co.c.i&&(ro.c.length=0,Ju(ro.c,co),Ju(ro.c,oo))}function Git(ro,oo,co){var fo;for(d9(co,oo.g,oo.f),ix(co,oo.i,oo.j),fo=0;fo<(!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a).i;fo++)Git(ro,bo(Gs((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a),fo),27),bo(Gs((!co.a&&(co.a=new Bl(F0,co,10,11)),co.a),fo),27))}function ijt(ro,oo){var co,fo,po,vo;for(vo=bo(Rv(ro.b,oo),127),co=vo.a,po=bo(bo(Q0(ro.r,oo),21),87).Kc();po.Ob();)fo=bo(po.Pb(),117),fo.c&&(co.a=lo.Math.max(co.a,Exe(fo.c)));if(co.a>0)switch(oo.g){case 2:vo.n.c=ro.s;break;case 4:vo.n.b=ro.s}}function ojt(ro,oo){var co,fo,po;return co=bo(bs(oo,(vS(),_R)),17).a-bo(bs(ro,_R),17).a,co==0?(fo=mm(Pm(bo(bs(ro,(g3(),VV)),8)),bo(bs(ro,eF),8)),po=mm(Pm(bo(bs(oo,VV),8)),bo(bs(oo,eF),8)),sp(fo.a*fo.b,po.a*po.b)):co}function sjt(ro,oo){var co,fo,po;return co=bo(bs(oo,(by(),Ste)),17).a-bo(bs(ro,Ste),17).a,co==0?(fo=mm(Pm(bo(bs(ro,(fp(),hG)),8)),bo(bs(ro,nM),8)),po=mm(Pm(bo(bs(oo,hG),8)),bo(bs(oo,nM),8)),sp(fo.a*fo.b,po.a*po.b)):co}function Wit(ro){var oo,co;return co=new J4,co.a+="e_",oo=JRt(ro),oo!=null&&(co.a+=""+oo),ro.c&&ro.d&&(S0((co.a+=" ",co),YQ(ro.c)),S0(qy((co.a+="[",co),ro.c.i),"]"),S0((co.a+=F1e,co),YQ(ro.d)),S0(qy((co.a+="[",co),ro.d.i),"]")),co.a}function Uit(ro){switch(ro.g){case 0:return new Qse;case 1:return new Zse;case 2:return new Yse;case 3:return new Kse;default:throw Cs(new i1("No implementation is available for the layout phase "+(ro.f!=null?ro.f:""+ro.g)))}}function r4e(ro,oo,co,fo,po){var vo;switch(vo=0,po.g){case 1:vo=lo.Math.max(0,oo.b+ro.b-(co.b+fo));break;case 3:vo=lo.Math.max(0,-ro.b-fo);break;case 2:vo=lo.Math.max(0,-ro.a-fo);break;case 4:vo=lo.Math.max(0,oo.a+ro.a-(co.a+fo))}return vo}function ajt(ro,oo,co){var fo,po,vo,xo,Eo;if(co)for(po=co.a.length,fo=new fT(po),Eo=(fo.b-fo.a)*fo.c<0?(i3(),eT):new a3(fo);Eo.Ob();)xo=bo(Eo.Pb(),17),vo=nI(co,xo.a),Q6e in vo.a||Z0e in vo.a?xVt(ro,vo,oo):jYt(ro,vo,oo),Fkt(bo(m1(ro.b,PI(vo)),74))}function i4e(ro){var oo,co;switch(ro.b){case-1:return!0;case 0:return co=ro.t,co>1||co==-1?(ro.b=-1,!0):(oo=Hx(ro),oo&&(vv(),oo.lk()==ght)?(ro.b=-1,!0):(ro.b=1,!1));default:case 1:return!1}}function o4e(ro,oo){var co,fo,po,vo;if(z0(ro),ro.c!=0||ro.a!=123)throw Cs(new p0(m0((c0(),Bdt))));if(vo=oo==112,fo=ro.d,co=FO(ro.i,125,fo),co<0)throw Cs(new p0(m0((c0(),Fdt))));return po=lx(ro.i,fo,co),ro.d=co+1,uQe(po,vo,(ro.e&512)==512)}function Kit(ro){var oo,co,fo,po,vo,xo,Eo;if(fo=ro.a.c.length,fo>0)for(xo=ro.c.d,Eo=ro.d.d,po=G_(mm(new Vl(Eo.a,Eo.b),xo),1/(fo+1)),vo=new Vl(xo.a,xo.b),co=new _s(ro.a);co.a=0&&fo=0?ro.Lh(co,!0,!0):m6(ro,po,!0),160)),bo(fo,220).Wl(oo);throw Cs(new i1(I3+oo.xe()+q0e))}function fjt(){s2e();var ro;return Jxt?bo(YI((r3(),tS),Wx),2038):(O0(qT,new Voe),sKt(),ro=bo(Hs(Gy((r3(),tS),Wx),560)?Gy(tS,Wx):new iUe,560),Jxt=!0,aXt(ro),pXt(ro),N0((o2e(),pMe),ro,new hoe),Bv(tS,Wx,ro),ro)}function djt(ro,oo){var co,fo,po,vo;ro.j=-1,$w(ro.e)?(co=ro.i,vo=ro.i!=0,DH(ro,oo),fo=new m5(ro.e,3,ro.c,null,oo,co,vo),po=oo.zl(ro.e,ro.c,null),po=Crt(ro,oo,po),po?(po.nj(fo),po.oj()):W0(ro.e,fo)):(DH(ro,oo),po=oo.zl(ro.e,ro.c,null),po&&po.oj())}function oZ(ro,oo){var co,fo,po;if(po=0,fo=oo[0],fo>=ro.length)return-1;for(co=(o1(fo,ro.length),ro.charCodeAt(fo));co>=48&&co<=57&&(po=po*10+(co-48),++fo,!(fo>=ro.length));)co=(o1(fo,ro.length),ro.charCodeAt(fo));return fo>oo[0]?oo[0]=fo:po=-1,po}function hjt(ro){var oo,co,fo,po,vo;return po=bo(ro.a,17).a,vo=bo(ro.b,17).a,co=po,fo=vo,oo=lo.Math.max(lo.Math.abs(po),lo.Math.abs(vo)),po<=0&&po==vo?(co=0,fo=vo-1):po==-oo&&vo!=oo?(co=vo,fo=po,vo>=0&&++co):(co=-vo,fo=po),new fm(Ql(co),Ql(fo))}function pjt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao;for(po=0;po=0&&Ao>=0&&To=ro.i)throw Cs(new Dv(epe+oo+jT+ro.i));if(co>=ro.i)throw Cs(new Dv(tpe+co+jT+ro.i));return fo=ro.g[co],oo!=co&&(oo>16),oo=fo>>16&16,co=16-oo,ro=ro>>oo,fo=ro-256,oo=fo>>16&8,co+=oo,ro<<=oo,fo=ro-nA,oo=fo>>16&4,co+=oo,ro<<=oo,fo=ro-tE,oo=fo>>16&2,co+=oo,ro<<=oo,fo=ro>>14,oo=fo&~(fo>>1),co+2-oo)}function mjt(ro){L8();var oo,co,fo,po;for(nee=new Zl,Jpe=new H1,Zpe=new Zl,oo=(!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a),sYt(oo),po=new g1(oo);po.e!=po.i.gc();)fo=bo(k1(po),27),Xv(nee,fo,0)==-1&&(co=new Zl,Jl(Zpe,co),Ytt(fo,co));return Zpe}function vjt(ro,oo,co){var fo,po,vo,xo;ro.a=co.b.d,Hs(oo,326)?(po=P9(bo(oo,74),!1,!1),vo=Iq(po),fo=new ADe(ro),Hm(vo,fo),Wq(vo,po),oo.of(($0(),K6))!=null&&Hm(bo(oo.of(K6),75),fo)):(xo=bo(oo,422),xo.rh(xo.nh()+ro.a.a),xo.sh(xo.oh()+ro.a.b))}function bjt(ro,oo){var co,fo,po;for(po=new Zl,fo=G1(oo.a,0);fo.b!=fo.d.c;)co=bo(q1(fo),65),co.c.g==ro.g&&$a(bs(co.b,(by(),pE)))!==$a(bs(co.c,pE))&&!_9(new Ou(null,new Du(po,16)),new nBe(co))&&Ju(po.c,co);return Up(po,new qW),po}function Xit(ro,oo,co){var fo,po,vo,xo;return Hs(oo,153)&&Hs(co,153)?(vo=bo(oo,153),xo=bo(co,153),ro.a[vo.a][xo.a]+ro.a[xo.a][vo.a]):Hs(oo,250)&&Hs(co,250)&&(fo=bo(oo,250),po=bo(co,250),fo.a==po.a)?bo(bs(po.a,(vS(),_R)),17).a:0}function Qit(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao;for(Ao=na(Tl(bs(oo,(ou(),gF)))),To=ro[0].n.a+ro[0].o.a+ro[0].d.c+Ao,Eo=1;Eo=0?co:(Eo=dL(mm(new Vl(xo.c+xo.b/2,xo.d+xo.a/2),new Vl(vo.c+vo.b/2,vo.d+vo.a/2))),-(kat(vo,xo)-1)*Eo)}function wjt(ro,oo,co){var fo;zp(new Ou(null,(!co.a&&(co.a=new Bl(Sp,co,6,6)),new Du(co.a,16))),new oHe(ro,oo)),zp(new Ou(null,(!co.n&&(co.n=new Bl(Nv,co,1,7)),new Du(co.n,16))),new sHe(ro,oo)),fo=bo(zl(co,($0(),K6)),75),fo&&lEe(fo,ro,oo)}function m6(ro,oo,co){var fo,po,vo;if(vo=q9((W2(),Gm),ro.Dh(),oo),vo)return vv(),bo(vo,69).xk()||(vo=F8(Fv(Gm,vo))),po=(fo=ro.Ih(vo),bo(fo>=0?ro.Lh(fo,!0,!0):m6(ro,vo,!0),160)),bo(po,220).Sl(oo,co);throw Cs(new i1(I3+oo.xe()+q0e))}function s4e(ro,oo,co,fo){var po,vo,xo,Eo,To;if(po=ro.d[oo],po){if(vo=po.g,To=po.i,fo!=null){for(Eo=0;Eo=co&&(fo=oo,Ao=(To.c+To.a)/2,xo=Ao-co,To.c<=Ao-co&&(po=new wce(To.c,xo),HC(ro,fo++,po)),Eo=Ao+co,Eo<=To.a&&(vo=new wce(Eo,To.a),A$(fo,ro.c.length),ND(ro.c,fo,vo)))}function eot(ro,oo,co){var fo,po,vo,xo,Eo,To;if(!oo.dc()){for(po=new xp,To=oo.Kc();To.Ob();)for(Eo=bo(To.Pb(),40),N0(ro.a,Ql(Eo.g),Ql(co)),xo=(fo=G1(new s5(Eo).a.d,0),new e9(fo));Oz(xo.a);)vo=bo(q1(xo.a),65).c,Mp(po,vo,po.c.b,po.c);eot(ro,po,co+1)}}function a4e(ro){var oo;if(!ro.c&&ro.g==null)ro.d=ro.bj(ro.f),Y1(ro,ro.d),oo=ro.d;else{if(ro.g==null)return!0;if(ro.i==0)return!1;oo=bo(ro.g[ro.i-1],51)}return oo==ro.b&&null.Vm>=null.Um()?(lZ(ro),a4e(ro)):oo.Ob()}function tot(ro){if(this.a=ro,ro.c.i.k==(a1(),Kp))this.c=ro.c,this.d=bo(bs(ro.c.i,(Wl(),_y)),64);else if(ro.d.i.k==Kp)this.c=ro.d,this.d=bo(bs(ro.d.i,(Wl(),_y)),64);else throw Cs(new i1("Edge "+ro+" is not an external edge."))}function rot(ro,oo){var co,fo,po;po=ro.b,ro.b=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,3,po,ro.b)),oo?oo!=ro&&(s2(ro,oo.zb),efe(ro,oo.d),co=(fo=oo.c,fo??oo.zb),nfe(ro,co==null||Iu(co,oo.zb)?null:co)):(s2(ro,null),efe(ro,0),nfe(ro,null))}function iot(ro,oo){var co;this.e=(WC(),a0(ro),WC(),xke(ro)),this.c=(a0(oo),xke(oo)),cwe(this.e.Rd().dc()==this.c.Rd().dc()),this.d=gtt(this.e),this.b=gtt(this.c),co=cT(bm,[Yl,Xu],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=co,Y8t(this)}function oot(ro){!$pe&&($pe=bYt());var oo=ro.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(co){return x$t(co)});return'"'+oo+'"'}function l4e(ro,oo,co,fo,po,vo){var xo,Eo,To,Ao,Io;if(po!=0)for($a(ro)===$a(co)&&(ro=ro.slice(oo,oo+po),oo=0),To=co,Eo=oo,Ao=oo+po;Eo=xo)throw Cs(new _$(oo,xo));return po=co[oo],xo==1?fo=null:(fo=Al(rbe,spe,424,xo-1,0,1),jy(co,0,fo,0,oo),vo=xo-oo-1,vo>0&&jy(co,oo+1,fo,oo,vo)),jI(ro,fo),Cit(ro,oo,po),po}function aot(ro){var oo,co;if(ro.f){for(;ro.n0?vo=Y8(co):vo=vq(Y8(co))),tp(oo,YN,vo)}function Cjt(ro,oo){var co;oo.Ug("Partition preprocessing",1),co=bo(ny(X0(fy(X0(new Ou(null,new Du(ro.a,16)),new Bu),new $1),new h1),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),zp(co.Oc(),new _p),oo.Vg()}function $jt(ro,oo){var co,fo,po,vo,xo;for(xo=ro.j,oo.a!=oo.b&&Up(xo,new xre),po=xo.c.length/2|0,fo=0;fo0&&qq(ro,co,oo),vo):fo.a!=null?(qq(ro,oo,co),-1):po.a!=null?(qq(ro,co,oo),1):0}function Rjt(ro,oo){var co,fo,po,vo,xo;for(po=oo.b.b,ro.a=Al(kx,rA,15,po,0,1),ro.b=Al(kw,jE,28,po,16,1),xo=G1(oo.b,0);xo.b!=xo.d.c;)vo=bo(q1(xo),40),ro.a[vo.g]=new xp;for(fo=G1(oo.a,0);fo.b!=fo.d.c;)co=bo(q1(fo),65),ro.a[co.b.g].Fc(co),ro.a[co.c.g].Fc(co)}function fot(ro,oo){var co,fo,po,vo;ro.Pj()?(co=ro.Ej(),vo=ro.Qj(),++ro.j,ro.qj(co,ro.Zi(co,oo)),fo=ro.Ij(3,null,oo,co,vo),ro.Mj()?(po=ro.Nj(oo,null),po?(po.nj(fo),po.oj()):ro.Jj(fo)):ro.Jj(fo)):(UWe(ro,oo),ro.Mj()&&(po=ro.Nj(oo,null),po&&po.oj()))}function c4e(ro,oo,co){var fo,po,vo;ro.Pj()?(vo=ro.Qj(),hq(ro,oo,co),fo=ro.Ij(3,null,co,oo,vo),ro.Mj()?(po=ro.Nj(co,null),ro.Tj()&&(po=ro.Uj(co,po)),po?(po.nj(fo),po.oj()):ro.Jj(fo)):ro.Jj(fo)):(hq(ro,oo,co),ro.Mj()&&(po=ro.Nj(co,null),po&&po.oj()))}function sZ(ro,oo){var co,fo,po,vo,xo;for(xo=w2(ro.e.Dh(),oo),po=new XM,co=bo(ro.g,124),vo=ro.i;--vo>=0;)fo=co[vo],xo.am(fo.Lk())&&Y1(po,fo);!act(ro,po)&&$w(ro.e)&&kO(ro,oo.Jk()?d3(ro,6,oo,(Hu(),cv),null,-1,!1):d3(ro,oo.tk()?2:1,oo,null,null,-1,!1))}function Ojt(ro,oo){var co,fo,po,vo,xo;return ro.a==(WI(),iF)?!0:(vo=oo.a.c,co=oo.a.c+oo.a.b,!(oo.j&&(fo=oo.A,xo=fo.c.c.a-fo.o.a/2,po=vo-(fo.n.a+fo.o.a),po>xo)||oo.q&&(fo=oo.C,xo=fo.c.c.a-fo.o.a/2,po=fo.n.a-co,po>xo)))}function hot(ro){gue();var oo,co,fo,po,vo,xo,Eo;for(co=new a4,po=new _s(ro.e.b);po.a1?ro.e*=na(ro.a):ro.f/=na(ro.a),JOt(ro),oMt(ro),nVt(ro),Fl(ro.b,(VL(),tee),ro.g)}function vot(ro,oo,co){var fo,po,vo,xo,Eo,To;for(fo=0,To=co,oo||(fo=co*(ro.c.length-1),To*=-1),vo=new _s(ro);vo.a=0?ro.Ah(null):ro.Ph().Th(ro,-1-oo,null,null)),ro.Bh(bo(po,54),co),fo&&fo.oj(),ro.vh()&&ro.wh()&&co>-1&&W0(ro,new Em(ro,9,co,vo,po)),po):vo}function d4e(ro,oo){var co,fo,po,vo,xo;for(vo=ro.b.Ce(oo),fo=(co=ro.a.get(vo),co??Al(bm,Xu,1,0,5,1)),xo=0;xo>5,po>=ro.d)return ro.e<0;if(co=ro.a[po],oo=1<<(oo&31),ro.e<0){if(fo=SJe(ro),po>16)),15).dd(vo),Eo0&&(!(l5(ro.a.c)&&oo.n.d)&&!(f9(ro.a.c)&&oo.n.b)&&(oo.g.d+=lo.Math.max(0,fo/2-.5)),!(l5(ro.a.c)&&oo.n.a)&&!(f9(ro.a.c)&&oo.n.c)&&(oo.g.a-=fo-1))}function Tot(ro){var oo,co,fo,po,vo;if(po=new Zl,vo=xat(ro,po),oo=bo(bs(ro,(Wl(),aw)),10),oo)for(fo=new _s(oo.j);fo.a>oo,vo=ro.m>>oo|co<<22-oo,po=ro.l>>oo|ro.m<<22-oo):oo<44?(xo=fo?A5:0,vo=co>>oo-22,po=ro.m>>oo-22|co<<44-oo):(xo=fo?A5:0,vo=fo?xw:0,po=co>>oo-44),h2(po&xw,vo&xw,xo&A5)}function Yde(ro){var oo,co,fo,po,vo,xo;for(this.c=new Zl,this.d=ro,fo=Tp,po=Tp,oo=am,co=am,xo=G1(ro,0);xo.b!=xo.d.c;)vo=bo(q1(xo),8),fo=lo.Math.min(fo,vo.a),po=lo.Math.min(po,vo.b),oo=lo.Math.max(oo,vo.a),co=lo.Math.max(co,vo.b);this.a=new ax(fo,po,oo-fo,co-po)}function $ot(ro,oo){var co,fo,po,vo,xo,Eo;for(vo=new _s(ro.b);vo.a0&&Hs(oo,44)&&(ro.a._j(),Ao=bo(oo,44),To=Ao.ld(),vo=To==null?0:dp(To),xo=Lwe(ro.a,vo),co=ro.a.d[xo],co)){for(fo=bo(co.g,379),Io=co.i,Eo=0;Eo=2)for(co=po.Kc(),oo=Tl(co.Pb());co.Ob();)vo=oo,oo=Tl(co.Pb()),fo=lo.Math.min(fo,(u1(oo),oo-(u1(vo),vo)));return fo}function Jjt(ro,oo){var co,fo,po;for(po=new Zl,fo=G1(oo.a,0);fo.b!=fo.d.c;)co=bo(q1(fo),65),co.b.g==ro.g&&!Iu(co.b.c,pJ)&&$a(bs(co.b,(by(),pE)))!==$a(bs(co.c,pE))&&!_9(new Ou(null,new Du(po,16)),new rBe(co))&&Ju(po.c,co);return Up(po,new yv),po}function ezt(ro,oo){var co,fo,po;if($a(oo)===$a(a0(ro)))return!0;if(!Hs(oo,15)||(fo=bo(oo,15),po=ro.gc(),po!=fo.gc()))return!1;if(Hs(fo,59)){for(co=0;co0&&(po=co),xo=new _s(ro.f.e);xo.a0?(oo-=1,co-=1):fo>=0&&po<0?(oo+=1,co+=1):fo>0&&po>=0?(oo-=1,co+=1):(oo+=1,co-=1),new fm(Ql(oo),Ql(co))}function pzt(ro,oo){return ro.coo.c?1:ro.boo.b?1:ro.a!=oo.a?dp(ro.a)-dp(oo.a):ro.d==(yL(),_F)&&oo.d==SF?-1:ro.d==SF&&oo.d==_F?1:0}function Dot(ro,oo){var co,fo,po,vo,xo;return vo=oo.a,vo.c.i==oo.b?xo=vo.d:xo=vo.c,vo.c.i==oo.b?fo=vo.c:fo=vo.d,po=LNt(ro.a,xo,fo),po>0&&po0):po<0&&-po0):!1}function gzt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo;for(po=(oo-ro.d)/ro.c.c.length,vo=0,ro.a+=co,ro.d=oo,Fo=new _s(ro.c);Fo.a>24;return xo}function vzt(ro){if(ro.ze()){var oo=ro.c;oo.Ae()?ro.o="["+oo.n:oo.ze()?ro.o="["+oo.xe():ro.o="[L"+oo.xe()+";",ro.b=oo.we()+"[]",ro.k=oo.ye()+"[]";return}var co=ro.j,fo=ro.d;fo=fo.split("/"),ro.o=Jfe(".",[co,Jfe("$",fo)]),ro.b=Jfe(".",[co,Jfe(".",fo)]),ro.k=fo[fo.length-1]}function bzt(ro,oo){var co,fo,po,vo,xo;for(xo=null,vo=new _s(ro.e.a);vo.a=0;oo-=2)for(co=0;co<=oo;co+=2)(ro.b[co]>ro.b[co+2]||ro.b[co]===ro.b[co+2]&&ro.b[co+1]>ro.b[co+3])&&(fo=ro.b[co+2],ro.b[co+2]=ro.b[co],ro.b[co]=fo,fo=ro.b[co+3],ro.b[co+3]=ro.b[co+1],ro.b[co+1]=fo);ro.c=!0}}function xzt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;for(Ao=-1,Io=0,xo=ro,Eo=0,To=xo.length;Eo0&&++Io;++Ao}return Io}function gS(ro){var oo,co;return co=new Bw(aT(ro.Rm)),co.a+="@",S0(co,(oo=dp(ro)>>>0,oo.toString(16))),ro.Vh()?(co.a+=" (eProxyURI: ",qy(co,ro._h()),ro.Kh()&&(co.a+=" eClass: ",qy(co,ro.Kh())),co.a+=")"):ro.Kh()&&(co.a+=" (eClass: ",qy(co,ro.Kh()),co.a+=")"),co.a}function rB(ro){var oo,co,fo,po;if(ro.e)throw Cs(new Lv((c5(zpe),b1e+zpe.k+y1e)));for(ro.d==(_g(),R_)&&$Z(ro,qv),co=new _s(ro.a.a);co.a>24}return co}function Ezt(ro,oo,co){var fo,po,vo;if(po=bo(Rv(ro.i,oo),314),!po)if(po=new dZe(ro.d,oo,co),I8(ro.i,oo,po),Tke(oo))Ckt(ro.a,oo.c,oo.b,po);else switch(vo=aPt(oo),fo=bo(Rv(ro.p,vo),252),vo.g){case 1:case 3:po.j=!0,Zae(fo,oo.b,po);break;case 4:case 2:po.k=!0,Zae(fo,oo.c,po)}return po}function kzt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;for(To=kE(ro.c-ro.b&ro.a.length-1),Ao=null,Io=null,vo=new pL(ro);vo.a!=vo.b;)po=bo(wQ(vo),10),co=(Eo=bo(bs(po,(Wl(),JS)),12),Eo?Eo.i:null),fo=(xo=bo(bs(po,Yx),12),xo?xo.i:null),(Ao!=co||Io!=fo)&&(bot(To,oo),Ao=co,Io=fo),Ju(To.c,po);bot(To,oo)}function Tzt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao;if(Eo=new XM,To=w2(ro.e.Dh(),oo),po=bo(ro.g,124),vv(),bo(oo,69).xk())for(xo=0;xo=0)return po;for(vo=1,Eo=new _s(oo.j);Eo.a=0)return po;for(vo=1,Eo=new _s(oo.j);Eo.a0&&oo.Ne((qu(po-1,ro.c.length),bo(ro.c[po-1],10)),vo)>0;)fx(ro,po,(qu(po-1,ro.c.length),bo(ro.c[po-1],10))),--po;qu(po,ro.c.length),ro.c[po]=vo}co.a=new H1,co.b=new H1}function Czt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;for(Io=(fo=bo(oo.e&&oo.e(),9),new sx(fo,bo(cS(fo,fo.length),9),0)),To=Z$(co,"[\\[\\]\\s,]+"),vo=To,xo=0,Eo=vo.length;xo=0?(oo||(oo=new SD,fo>0&&Av(oo,(Bm(0,fo,ro.length),ro.substr(0,fo)))),oo.a+="\\",YO(oo,co&em)):oo&&YO(oo,co&em);return oo?oo.a:ro}function Azt(ro){var oo,co,fo;for(co=new _s(ro.a.a.b);co.a0&&(!(l5(ro.a.c)&&oo.n.d)&&!(f9(ro.a.c)&&oo.n.b)&&(oo.g.d-=lo.Math.max(0,fo/2-.5)),!(l5(ro.a.c)&&oo.n.a)&&!(f9(ro.a.c)&&oo.n.c)&&(oo.g.a+=lo.Math.max(0,fo-1)))}function Vot(ro,oo,co){var fo,po;if((ro.c-ro.b&ro.a.length-1)==2)oo==(nu(),s1)||oo==p1?(WX(bo(OL(ro),15),(Gw(),UE)),WX(bo(OL(ro),15),G3)):(WX(bo(OL(ro),15),(Gw(),G3)),WX(bo(OL(ro),15),UE));else for(po=new pL(ro);po.a!=po.b;)fo=bo(wQ(po),15),WX(fo,co)}function Rzt(ro,oo){var co,fo,po,vo,xo,Eo,To;for(po=VO(new oye(ro)),Eo=new Lm(po,po.c.length),vo=VO(new oye(oo)),To=new Lm(vo,vo.c.length),xo=null;Eo.b>0&&To.b>0&&(co=(T1(Eo.b>0),bo(Eo.a.Xb(Eo.c=--Eo.b),27)),fo=(T1(To.b>0),bo(To.a.Xb(To.c=--To.b),27)),co==fo);)xo=co;return xo}function Got(ro,oo,co){var fo,po,vo,xo;BKe(ro,oo)>BKe(ro,co)?(fo=hy(co,(nu(),p1)),ro.d=fo.dc()?0:Tce(bo(fo.Xb(0),12)),xo=hy(oo,l1),ro.b=xo.dc()?0:Tce(bo(xo.Xb(0),12))):(po=hy(co,(nu(),l1)),ro.d=po.dc()?0:Tce(bo(po.Xb(0),12)),vo=hy(oo,p1),ro.b=vo.dc()?0:Tce(bo(vo.Xb(0),12)))}function Wot(ro,oo){var co,fo,po,vo;for(co=ro.o.a,vo=bo(bo(Q0(ro.r,oo),21),87).Kc();vo.Ob();)po=bo(vo.Pb(),117),po.e.a=co*na(Tl(po.b.of(ZJ))),po.e.b=(fo=po.b,fo.pf(($0(),Ew))?fo.ag()==(nu(),s1)?-fo.Mf().b-na(Tl(fo.of(Ew))):na(Tl(fo.of(Ew))):fo.ag()==(nu(),s1)?-fo.Mf().b:0)}function Ozt(ro,oo){var co,fo,po,vo;for(oo.Ug("Self-Loop pre-processing",1),fo=new _s(ro.a);fo.aro.c));xo++)po.a>=ro.s&&(vo<0&&(vo=xo),Eo=xo);return To=(ro.s+ro.c)/2,vo>=0&&(fo=yVt(ro,oo,vo,Eo),To=mEt((qu(fo,oo.c.length),bo(oo.c[fo],339))),Ejt(oo,fo,co)),To}function i0(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;for(xo=(vo=new CU,vo),eEe(xo,(u1(oo),oo)),Ao=(!xo.b&&(xo.b=new Rw((Pu(),gv),Ey,xo)),xo.b),To=1;To0&&gUt(this,po)}function _4e(ro,oo,co,fo,po,vo){var xo,Eo,To;if(!po[oo.a]){for(po[oo.a]=!0,xo=fo,!xo&&(xo=new RX),Jl(xo.e,oo),To=vo[oo.a].Kc();To.Ob();)Eo=bo(To.Pb(),290),!(Eo.d==co||Eo.c==co)&&(Eo.c!=oo&&_4e(ro,Eo.c,oo,xo,po,vo),Eo.d!=oo&&_4e(ro,Eo.d,oo,xo,po,vo),Jl(xo.c,Eo),sm(xo.d,Eo.b));return xo}return null}function Mzt(ro){var oo,co,fo,po,vo,xo,Eo;for(oo=0,po=new _s(ro.e);po.a=2}function Dzt(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io;for(vo=ro.c.d.j,xo=bo(wx(co,0),8),Io=1;Io1||(oo=mp(kS,As($s(Tv,1),Pl,95,0,[D5,TS])),tq(vX(oo,ro))>1)||(fo=mp($S,As($s(Tv,1),Pl,95,0,[KE,Qx])),tq(vX(fo,ro))>1))}function E4e(ro,oo,co){var fo,po,vo;for(vo=new _s(ro.t);vo.a0&&(fo.b.n-=fo.c,fo.b.n<=0&&fo.b.u>0&&y0(oo,fo.b));for(po=new _s(ro.i);po.a0&&(fo.a.u-=fo.c,fo.a.u<=0&&fo.a.n>0&&y0(co,fo.a))}function lZ(ro){var oo,co,fo,po,vo;if(ro.g==null&&(ro.d=ro.bj(ro.f),Y1(ro,ro.d),ro.c))return vo=ro.f,vo;if(oo=bo(ro.g[ro.i-1],51),po=oo.Pb(),ro.e=oo,co=ro.bj(po),co.Ob())ro.d=co,Y1(ro,co);else for(ro.d=null;!oo.Ob()&&(Np(ro.g,--ro.i,null),ro.i!=0);)fo=bo(ro.g[ro.i-1],51),oo=fo;return po}function Bzt(ro,oo){var co,fo,po,vo,xo,Eo;if(fo=oo,po=fo.Lk(),C5(ro.e,po)){if(po.Si()&&kX(ro,po,fo.md()))return!1}else for(Eo=w2(ro.e.Dh(),po),co=bo(ro.g,124),vo=0;vo1||co>1)return 2;return oo+co==1?2:0}function yw(ro,oo){var co,fo,po,vo,xo,Eo;return vo=ro.a*p1e+ro.b*1502,Eo=ro.b*p1e+11,co=lo.Math.floor(Eo*cV),vo+=co,Eo-=co*K3e,vo%=K3e,ro.a=vo,ro.b=Eo,oo<=24?lo.Math.floor(ro.a*iAe[oo]):(po=ro.a*(1<=2147483648&&(fo-=4294967296),fo)}function Qot(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;for(vo=new Zl,Ao=new xp,xo=new xp,oWt(ro,Ao,xo,oo),BUt(ro,Ao,xo,oo,co),To=new _s(ro);To.afo.b.g&&Ju(vo.c,fo);return vo}function qzt(ro,oo,co){var fo,po,vo,xo,Eo,To;for(Eo=ro.c,xo=(co.q?co.q:(Hu(),Hu(),HE)).vc().Kc();xo.Ob();)vo=bo(xo.Pb(),44),fo=!OO(X0(new Ou(null,new Du(Eo,16)),new SO(new Zze(oo,vo)))).Bd((lT(),SR)),fo&&(To=vo.md(),Hs(To,4)&&(po=Ake(To),po!=null&&(To=po)),oo.qf(bo(vo.ld(),149),To))}function Vzt(ro,oo,co){var fo,po;if(SH(ro.b),HS(ro.b,(mq(),Ite),(CD(),xG)),HS(ro.b,Nte,oo.g),HS(ro.b,Mte,oo.a),ro.a=Yq(ro.b,oo),co.Ug("Compaction by shrinking a tree",ro.a.c.length),oo.i.c.length>1)for(po=new _s(ro.a);po.a=0?ro.Lh(fo,!0,!0):m6(ro,vo,!0),160)),bo(po,220).Xl(oo,co)}else throw Cs(new i1(I3+oo.xe()+LB))}function cZ(ro,oo){var co,fo,po,vo,xo;if(oo){for(vo=Hs(ro.Cb,90)||Hs(ro.Cb,102),xo=!vo&&Hs(ro.Cb,331),fo=new g1((!oo.a&&(oo.a=new iL(oo,Cv,oo)),oo.a));fo.e!=fo.i.gc();)if(co=bo(k1(fo),89),po=SZ(co),vo?Hs(po,90):xo?Hs(po,156):po)return po;return vo?(Pu(),nS):(Pu(),N_)}else return null}function Gzt(ro,oo){var co,fo,po,vo;for(oo.Ug("Resize child graph to fit parent.",1),fo=new _s(ro.b);fo.a=2*oo&&Jl(co,new wce(xo[fo-1]+oo,xo[fo]-oo));return co}function Kzt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;if(co)for(vo=co.a.length,fo=new fT(vo),Eo=(fo.b-fo.a)*fo.c<0?(i3(),eT):new a3(fo);Eo.Ob();)xo=bo(Eo.Pb(),17),po=nI(co,xo.a),po&&(To=E9t(ro,(Ao=(n3(),Io=new Eye,Io),oo&&C4e(Ao,oo),Ao),po),mI(To,d5(po,cE)),eZ(po,To),Q5e(po,To),Sfe(ro,po,To))}function uZ(ro){var oo,co,fo,po,vo,xo;if(!ro.j){if(xo=new toe,oo=tP,vo=oo.a.zc(ro,oo),vo==null){for(fo=new g1(Yv(ro));fo.e!=fo.i.gc();)co=bo(k1(fo),29),po=uZ(co),Bp(xo,po),Y1(xo,co);oo.a.Bc(ro)!=null}F$(xo),ro.j=new c9((bo(Gs(Ml((c3(),_d).o),11),19),xo.i),xo.g),mw(ro).b&=-33}return ro.j}function Yzt(ro){var oo,co,fo,po;if(ro==null)return null;if(fo=Ky(ro,!0),po=NV.length,Iu(fo.substr(fo.length-po,po),NV)){if(co=fo.length,co==4){if(oo=(o1(0,fo.length),fo.charCodeAt(0)),oo==43)return MMe;if(oo==45)return wSt}else if(co==3)return MMe}return new hye(fo)}function Xzt(ro){var oo,co,fo;return co=ro.l,co&co-1||(fo=ro.m,fo&fo-1)||(oo=ro.h,oo&oo-1)||oo==0&&fo==0&&co==0?-1:oo==0&&fo==0&&co!=0?V_e(co):oo==0&&fo!=0&&co==0?V_e(fo)+22:oo!=0&&fo==0&&co==0?V_e(oo)+44:-1}function F9(ro,oo){var co,fo,po,vo,xo;for(po=oo.a&ro.f,vo=null,fo=ro.b[po];;fo=fo.b){if(fo==oo){vo?vo.b=oo.b:ro.b[po]=oo.b;break}vo=fo}for(xo=oo.f&ro.f,vo=null,co=ro.c[xo];;co=co.d){if(co==oo){vo?vo.d=oo.d:ro.c[xo]=oo.d;break}vo=co}oo.e?oo.e.c=oo.c:ro.a=oo.c,oo.c?oo.c.e=oo.e:ro.e=oo.e,--ro.i,++ro.g}function Qzt(ro,oo){var co;oo.d?oo.d.b=oo.b:ro.a=oo.b,oo.b?oo.b.d=oo.d:ro.e=oo.d,!oo.e&&!oo.c?(co=bo(Fx(bo(z8(ro.b,oo.a),260)),260),co.a=0,++ro.c):(co=bo(Fx(bo(m1(ro.b,oo.a),260)),260),--co.a,oo.e?oo.e.c=oo.c:co.b=bo(Fx(oo.c),511),oo.c?oo.c.e=oo.e:co.c=bo(Fx(oo.e),511)),--ro.d}function Zzt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io;for(co=ro.o,oo=ro.p,xo=q0,po=Ym,Eo=q0,vo=Ym,Ao=0;Ao0),vo.a.Xb(vo.c=--vo.b),S$(vo,po),T1(vo.b3&&OE(ro,0,oo-3))}function eHt(ro){var oo,co,fo,po;return $a(bs(ro,(ou(),xA)))===$a((x5(),B4))?!ro.e&&$a(bs(ro,rG))!==$a((SI(),QV)):(fo=bo(bs(ro,nme),299),po=lu(au(bs(ro,rme)))||$a(bs(ro,dF))===$a((kL(),XV)),oo=bo(bs(ro,h8e),17).a,co=ro.a.c.length,!po&&fo!=(SI(),QV)&&(oo==0||oo>co))}function tHt(ro){var oo,co;for(co=0;co0);co++);if(co>0&&co0);oo++);return oo>0&&co>16!=6&&oo){if(HI(ro,oo))throw Cs(new i1(BB+pot(ro)));fo=null,ro.Cb&&(fo=(co=ro.Db>>16,co>=0?Xke(ro,fo):ro.Cb.Th(ro,-1-co,null,fo))),oo&&(fo=Z8(oo,ro,6,fo)),fo=Nwe(ro,oo,fo),fo&&fo.oj()}else ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,6,oo,oo))}function fZ(ro,oo){var co,fo;if(oo!=ro.Cb||ro.Db>>16!=3&&oo){if(HI(ro,oo))throw Cs(new i1(BB+tlt(ro)));fo=null,ro.Cb&&(fo=(co=ro.Db>>16,co>=0?e5e(ro,fo):ro.Cb.Th(ro,-1-co,null,fo))),oo&&(fo=Z8(oo,ro,12,fo)),fo=Mwe(ro,oo,fo),fo&&fo.oj()}else ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,3,oo,oo))}function C4e(ro,oo){var co,fo;if(oo!=ro.Cb||ro.Db>>16!=9&&oo){if(HI(ro,oo))throw Cs(new i1(BB+Jst(ro)));fo=null,ro.Cb&&(fo=(co=ro.Db>>16,co>=0?Zke(ro,fo):ro.Cb.Th(ro,-1-co,null,fo))),oo&&(fo=Z8(oo,ro,9,fo)),fo=Dwe(ro,oo,fo),fo&&fo.oj()}else ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,9,oo,oo))}function XI(ro){var oo,co,fo,po,vo;if(fo=Hx(ro),vo=ro.j,vo==null&&fo)return ro.Jk()?null:fo.ik();if(Hs(fo,156)){if(co=fo.jk(),co&&(po=co.wi(),po!=ro.i)){if(oo=bo(fo,156),oo.nk())try{ro.g=po.ti(oo,vo)}catch(xo){if(xo=$p(xo),Hs(xo,82))ro.g=null;else throw Cs(xo)}ro.i=po}return ro.g}return null}function tst(ro){var oo;return oo=new Zl,Jl(oo,new v8(new Vl(ro.c,ro.d),new Vl(ro.c+ro.b,ro.d))),Jl(oo,new v8(new Vl(ro.c,ro.d),new Vl(ro.c,ro.d+ro.a))),Jl(oo,new v8(new Vl(ro.c+ro.b,ro.d+ro.a),new Vl(ro.c+ro.b,ro.d))),Jl(oo,new v8(new Vl(ro.c+ro.b,ro.d+ro.a),new Vl(ro.c,ro.d+ro.a))),oo}function nHt(ro){var oo,co,fo;if(ro==null)return I2;try{return ry(ro)}catch(po){if(po=$p(po),Hs(po,103))return oo=po,fo=aT(Nw(ro))+"@"+(co=(a5(),$ke(ro)>>>0),co.toString(16)),mMt(tOt(),(DO(),"Exception during lenientFormat for "+fo),oo),"<"+fo+" threw "+aT(oo.Rm)+">";throw Cs(po)}}function rHt(ro,oo,co){var fo,po,vo;for(vo=oo.a.ec().Kc();vo.Ob();)po=bo(vo.Pb(),74),fo=bo(m1(ro.b,po),272),!fo&&(kp(NE(po))==kp(S3(po))?VHt(ro,po,co):NE(po)==kp(S3(po))?m1(ro.c,po)==null&&m1(ro.b,S3(po))!=null&&Nlt(ro,po,co,!1):m1(ro.d,po)==null&&m1(ro.b,NE(po))!=null&&Nlt(ro,po,co,!0))}function iHt(ro,oo){var co,fo,po,vo,xo,Eo,To;for(po=ro.Kc();po.Ob();)for(fo=bo(po.Pb(),10),Eo=new Py,uy(Eo,fo),hm(Eo,(nu(),p1)),Fl(Eo,(Wl(),Gee),(_f(),!0)),xo=oo.Kc();xo.Ob();)vo=bo(xo.Pb(),10),To=new Py,uy(To,vo),hm(To,l1),Fl(To,Gee,!0),co=new QC,Fl(co,Gee,!0),ev(co,Eo),Om(co,To)}function oHt(ro,oo,co,fo){var po,vo,xo,Eo;po=Mtt(ro,oo,co),vo=Mtt(ro,co,oo),xo=bo(m1(ro.c,oo),118),Eo=bo(m1(ro.c,co),118),po1)for(oo=FC((co=new sT,++ro.b,co),ro.d),Eo=G1(vo,0);Eo.b!=Eo.d.c;)xo=bo(q1(Eo),125),mS(sS(oS(aS(iS(new Lx,1),0),oo),xo))}function lHt(ro,oo,co){var fo,po,vo,xo,Eo;for(co.Ug("Breaking Point Removing",1),ro.a=bo(bs(oo,(ou(),M5)),223),vo=new _s(oo.b);vo.a>16!=11&&oo){if(HI(ro,oo))throw Cs(new i1(BB+U4e(ro)));fo=null,ro.Cb&&(fo=(co=ro.Db>>16,co>=0?t5e(ro,fo):ro.Cb.Th(ro,-1-co,null,fo))),oo&&(fo=Z8(oo,ro,10,fo)),fo=Vwe(ro,oo,fo),fo&&fo.oj()}else ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,11,oo,oo))}function cHt(ro){var oo,co,fo,po;for(fo=new ST(new su(ro.b).a);fo.b;)co=a6(fo),po=bo(co.ld(),12),oo=bo(co.md(),10),Fl(oo,(Wl(),Z0),po),Fl(po,aw,oo),Fl(po,eG,(_f(),!0)),hm(po,bo(bs(oo,_y),64)),bs(oo,_y),Fl(po.i,(ou(),Pp),(Im(),fM)),bo(bs(zm(po.i),Jy),21).Fc((Sv(),GN))}function uHt(ro,oo,co){var fo,po,vo,xo,Eo,To;if(vo=0,xo=0,ro.c)for(To=new _s(ro.d.i.j);To.avo.a?-1:po.aTo){for(Io=ro.d,ro.d=Al(oMe,h$e,66,2*To+4,0,1),vo=0;vo=9223372036854776e3?(lI(),D$e):(po=!1,ro<0&&(po=!0,ro=-ro),fo=0,ro>=NT&&(fo=dm(ro/NT),ro-=fo*NT),co=0,ro>=uR&&(co=dm(ro/uR),ro-=co*uR),oo=dm(ro),vo=h2(oo,co,fo),po&&_fe(vo),vo)}function xHt(ro){var oo,co,fo,po,vo;if(vo=new Zl,g2(ro.b,new wDe(vo)),ro.b.c.length=0,vo.c.length!=0){for(oo=(qu(0,vo.c.length),bo(vo.c[0],82)),co=1,fo=vo.c.length;co=-oo&&fo==oo?new fm(Ql(co-1),Ql(fo)):new fm(Ql(co),Ql(fo-1))}function ist(){return rv(),As($s(NXt,1),Pl,81,0,[S9e,y9e,s7,gge,z9e,pee,kee,mA,P9e,R9e,B9e,gA,j9e,C9e,H9e,h9e,yee,mge,dee,See,V9e,xee,p9e,F9e,G9e,_ee,q9e,hee,E9e,D9e,M9e,Tee,v9e,fee,mee,m9e,MN,I9e,$9e,L9e,tF,w9e,b9e,N9e,A9e,bee,Eee,g9e,wee,O9e,gee,k9e,_9e,UV,uee,T9e,x9e])}function EHt(ro,oo,co){ro.d=0,ro.b=0,oo.k==(a1(),Zy)&&co.k==Zy&&bo(bs(oo,(Wl(),Z0)),10)==bo(bs(co,Z0),10)&&(que(oo).j==(nu(),s1)?Got(ro,oo,co):Got(ro,co,oo)),oo.k==Zy&&co.k==km?que(oo).j==(nu(),s1)?ro.d=1:ro.b=1:co.k==Zy&&oo.k==km&&(que(co).j==(nu(),s1)?ro.b=1:ro.d=1),lDt(ro,oo,co)}function kHt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo;return Fo=k5e(ro),oo=ro.a,To=oo!=null,To&&GO(Fo,"category",ro.a),po=Nz(new Dl(ro.d)),xo=!po,xo&&(Ao=new Y5,WS(Fo,"knownOptions",Ao),co=new tFe(Ao),Hm(new Dl(ro.d),co)),vo=Nz(ro.g),Eo=!vo,Eo&&(Io=new Y5,WS(Fo,"supportedFeatures",Io),fo=new nFe(Io),Hm(ro.g,fo)),Fo}function THt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao;for(fo=!1,oo=336,co=0,vo=new FVe(ro.length),Eo=ro,To=0,Ao=Eo.length;To>16!=7&&oo){if(HI(ro,oo))throw Cs(new i1(BB+lit(ro)));fo=null,ro.Cb&&(fo=(co=ro.Db>>16,co>=0?Qke(ro,fo):ro.Cb.Th(ro,-1-co,null,fo))),oo&&(fo=bo(oo,54).Rh(ro,1,jG,fo)),fo=Bxe(ro,oo,fo),fo&&fo.oj()}else ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,7,oo,oo))}function ost(ro,oo){var co,fo;if(oo!=ro.Cb||ro.Db>>16!=3&&oo){if(HI(ro,oo))throw Cs(new i1(BB+itt(ro)));fo=null,ro.Cb&&(fo=(co=ro.Db>>16,co>=0?Jke(ro,fo):ro.Cb.Th(ro,-1-co,null,fo))),oo&&(fo=bo(oo,54).Rh(ro,0,HG,fo)),fo=Fxe(ro,oo,fo),fo&&fo.oj()}else ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,3,oo,oo))}function ehe(ro,oo){QI();var co,fo,po,vo,xo,Eo,To,Ao,Io;return oo.d>ro.d&&(Eo=ro,ro=oo,oo=Eo),oo.d<63?pqt(ro,oo):(xo=(ro.d&-2)<<4,Ao=r_e(ro,xo),Io=r_e(oo,xo),fo=whe(ro,j8(Ao,xo)),po=whe(oo,j8(Io,xo)),To=ehe(Ao,Io),co=ehe(fo,po),vo=ehe(whe(Ao,fo),whe(po,Io)),vo=Che(Che(vo,To),co),vo=j8(vo,xo),To=j8(To,xo<<1),Che(Che(To,vo),co))}function E4(){E4=qo,vme=new o9(cft,0),J8e=new o9("LONGEST_PATH",1),eRe=new o9("LONGEST_PATH_SOURCE",2),mme=new o9("COFFMAN_GRAHAM",3),Z8e=new o9(q1e,4),tRe=new o9("STRETCH_WIDTH",5),cte=new o9("MIN_WIDTH",6),JN=new o9("BF_MODEL_ORDER",7),eM=new o9("DF_MODEL_ORDER",8)}function $Ht(ro,oo,co){var fo,po,vo,xo,Eo;for(xo=LL(ro,co),Eo=Al(VE,T4,10,oo.length,0,1),fo=0,vo=xo.Kc();vo.Ob();)po=bo(vo.Pb(),12),lu(au(bs(po,(Wl(),eG))))&&(Eo[fo++]=bo(bs(po,aw),10));if(fo=0;vo+=co?1:-1)xo=xo|oo.c.lg(To,vo,co,fo&&!lu(au(bs(oo.j,(Wl(),F3))))&&!lu(au(bs(oo.j,(Wl(),p7))))),xo=xo|oo.q.ug(To,vo,co),xo=xo|Wst(ro,To[vo],co,fo);return om(ro.c,oo),xo}function pZ(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;for(Io=mYe(ro.j),Fo=0,Wo=Io.length;Fo1&&(ro.a=!0),sCt(bo(co.b,68),G0(Pm(bo(oo.b,68).c),G_(mm(Pm(bo(co.b,68).a),bo(oo.b,68).a),po))),_Ke(ro,oo),sst(ro,co)}function ast(ro){var oo,co,fo,po,vo,xo,Eo;for(vo=new _s(ro.a.a);vo.a0&&vo>0?xo.p=oo++:fo>0?xo.p=co++:vo>0?xo.p=po++:xo.p=co++}Hu(),Up(ro.j,new Fne)}function NHt(ro){var oo,co;co=null,oo=bo(cu(ro.g,0),18);do{if(co=oo.d.i,gp(co,(Wl(),Yx)))return bo(bs(co,Yx),12).i;if(co.k!=(a1(),Vp)&&W1(new x1(E1(Wp(co).a.Kc(),new ko))))oo=bo(R1(new x1(E1(Wp(co).a.Kc(),new ko))),18);else if(co.k!=Vp)return null}while(co&&co.k!=(a1(),Vp));return co}function MHt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;for(Eo=oo.j,xo=oo.g,To=bo(cu(Eo,Eo.c.length-1),113),Io=(qu(0,Eo.c.length),bo(Eo.c[0],113)),Ao=xde(ro,xo,To,Io),vo=1;voAo&&(To=co,Io=po,Ao=fo);oo.a=Io,oo.c=To}function DHt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;for(Ao=new e4(new PLe(ro)),xo=As($s(Fpt,1),Nut,12,0,[oo,co]),Eo=0,To=xo.length;EoTo-ro.b&&EoTo-ro.a&&Eo0?vo.a?(Eo=vo.b.Mf().a,co>Eo&&(po=(co-Eo)/2,vo.d.b=po,vo.d.c=po)):vo.d.c=ro.s+co:sL(ro.u)&&(fo=T5e(vo.b),fo.c<0&&(vo.d.b=-fo.c),fo.c+fo.b>vo.b.Mf().a&&(vo.d.c=fo.c+fo.b-vo.b.Mf().a))}function ZHt(ro,oo){var co,fo,po,vo,xo;xo=new Zl,co=oo;do vo=bo(m1(ro.b,co),131),vo.B=co.c,vo.D=co.d,Ju(xo.c,vo),co=bo(m1(ro.k,co),18);while(co);return fo=(qu(0,xo.c.length),bo(xo.c[0],131)),fo.j=!0,fo.A=bo(fo.d.a.ec().Kc().Pb(),18).c.i,po=bo(cu(xo,xo.c.length-1),131),po.q=!0,po.C=bo(po.d.a.ec().Kc().Pb(),18).d.i,xo}function JHt(ro){var oo,co;if(oo=bo(ro.a,17).a,co=bo(ro.b,17).a,oo>=0){if(oo==co)return new fm(Ql(-oo-1),Ql(-oo-1));if(oo==-co)return new fm(Ql(-oo),Ql(co+1))}return lo.Math.abs(oo)>lo.Math.abs(co)?oo<0?new fm(Ql(-oo),Ql(co)):new fm(Ql(-oo),Ql(co+1)):new fm(Ql(oo+1),Ql(co))}function eqt(ro){var oo,co;co=bo(bs(ro,(ou(),_2)),171),oo=bo(bs(ro,(Wl(),GT)),311),co==(yx(),P3)?(Fl(ro,_2,nG),Fl(ro,GT,(b5(),d7))):co==yA?(Fl(ro,_2,nG),Fl(ro,GT,(b5(),TR))):oo==(b5(),d7)?(Fl(ro,_2,P3),Fl(ro,GT,ZV)):oo==TR&&(Fl(ro,_2,yA),Fl(ro,GT,ZV))}function gZ(){gZ=qo,fG=new Wre,Qbt=_0(new Zp,(Km(),zy),(rv(),dee)),eyt=q2(_0(new Zp,zy,xee),Jv,wee),tyt=Z_(Z_(AD(q2(_0(new Zp,xS,kee),Jv,Eee),Qy),_ee),Tee),Zbt=q2(_0(_0(_0(new Zp,qE,pee),Qy,mee),Qy,MN),Jv,gee),Jbt=q2(_0(_0(new Zp,Qy,MN),Qy,fee),Jv,uee)}function sB(){sB=qo,iyt=_0(q2(new Zp,(Km(),Jv),(rv(),k9e)),zy,dee),lyt=Z_(Z_(AD(q2(_0(new Zp,xS,kee),Jv,Eee),Qy),_ee),Tee),oyt=q2(_0(_0(_0(new Zp,qE,pee),Qy,mee),Qy,MN),Jv,gee),ayt=_0(_0(new Zp,zy,xee),Jv,wee),syt=q2(_0(_0(new Zp,Qy,MN),Qy,fee),Jv,uee)}function tqt(ro,oo,co,fo,po){var vo,xo;(!dv(oo)&&oo.c.i.c==oo.d.i.c||!tJe(dy(As($s(_m,1),Yl,8,0,[po.i.n,po.n,po.a])),co))&&!dv(oo)&&(oo.c==po?PO(oo.a,0,new ov(co)):y0(oo.a,new ov(co)),fo&&!jS(ro.a,co)&&(xo=bo(bs(oo,(ou(),Hv)),75),xo||(xo=new P2,Fl(oo,Hv,xo)),vo=new ov(co),Mp(xo,vo,xo.c.b,xo.c),om(ro.a,vo)))}function ust(ro,oo){var co,fo,po,vo;for(vo=s0(nv(BE,AE(s0(nv(oo==null?0:dp(oo),FE)),15))),co=vo&ro.b.length-1,po=null,fo=ro.b[co];fo;po=fo,fo=fo.a)if(fo.d==vo&&K_(fo.i,oo))return po?po.a=fo.a:ro.b[co]=fo.a,IPe(bo(Fx(fo.c),604),bo(Fx(fo.f),604)),$z(bo(Fx(fo.b),227),bo(Fx(fo.e),227)),--ro.f,++ro.e,!0;return!1}function nqt(ro){var oo,co;for(co=new x1(E1(Sm(ro).a.Kc(),new ko));W1(co);)if(oo=bo(R1(co),18),oo.c.i.k!=(a1(),Ly))throw Cs(new Q5(H1e+Eq(ro)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function rqt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;if(po=ctt(ro.Db&254),po==0)ro.Eb=co;else{if(po==1)Eo=Al(bm,Xu,1,2,5,1),vo=wde(ro,oo),vo==0?(Eo[0]=co,Eo[1]=ro.Eb):(Eo[0]=ro.Eb,Eo[1]=co);else for(Eo=Al(bm,Xu,1,po+1,5,1),xo=yT(ro.Eb),fo=2,To=0,Ao=0;fo<=128;fo<<=1)fo==oo?Eo[Ao++]=co:ro.Db&fo&&(Eo[Ao++]=xo[To++]);ro.Eb=Eo}ro.Db|=oo}function fst(ro,oo,co){var fo,po,vo,xo;for(this.b=new Zl,po=0,fo=0,xo=new _s(ro);xo.a0&&(vo=bo(cu(this.b,0),176),po+=vo.o,fo+=vo.p),po*=2,fo*=2,oo>1?po=dm(lo.Math.ceil(po*oo)):fo=dm(lo.Math.ceil(fo/oo)),this.a=new bke(po,fo)}function dst(ro,oo,co,fo,po,vo){var xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs;for(Io=fo,oo.j&&oo.o?(Xo=bo(m1(ro.f,oo.A),60),ws=Xo.d.c+Xo.d.b,--Io):ws=oo.a.c+oo.a.b,Fo=po,co.q&&co.o?(Xo=bo(m1(ro.f,co.C),60),Ao=Xo.d.c,++Fo):Ao=co.a.c,Ss=Ao-ws,To=lo.Math.max(2,Fo-Io),Eo=Ss/To,Zo=ws+Eo,Wo=Io;Wo=0;xo+=po?1:-1){for(Eo=oo[xo],To=fo==(nu(),p1)?po?hy(Eo,fo):bx(hy(Eo,fo)):po?bx(hy(Eo,fo)):hy(Eo,fo),vo&&(ro.c[Eo.p]=To.gc()),Fo=To.Kc();Fo.Ob();)Io=bo(Fo.Pb(),12),ro.d[Io.p]=Ao++;sm(co,To)}}function pst(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;for(vo=na(Tl(ro.b.Kc().Pb())),Ao=na(Tl(eOt(oo.b))),fo=G_(Pm(ro.a),Ao-co),po=G_(Pm(oo.a),co-vo),Io=G0(fo,po),G_(Io,1/(Ao-vo)),this.a=Io,this.b=new Zl,Eo=!0,xo=ro.b.Kc(),xo.Pb();xo.Ob();)To=na(Tl(xo.Pb())),Eo&&To-co>S0e&&(this.b.Fc(co),Eo=!1),this.b.Fc(To);Eo&&this.b.Fc(co)}function iqt(ro){var oo,co,fo,po;if(SVt(ro,ro.n),ro.d.c.length>0){for(wD(ro.c);g4e(ro,bo(Es(new _s(ro.e.a)),125))>5,oo&=31,fo>=ro.d)return ro.e<0?(J_(),w1t):(J_(),XB);if(vo=ro.d-fo,po=Al(Q1,E0,28,vo+1,15,1),YFt(po,vo,ro.a,fo,oo),ro.e<0){for(co=0;co0&&ro.a[co]<<32-oo){for(co=0;co=0?!1:(co=q9((W2(),Gm),po,oo),co?(fo=co.Ik(),(fo>1||fo==-1)&&YC(Fv(Gm,co))!=3):!0)):!1}function lqt(ro,oo,co,fo){var po,vo,xo,Eo,To;return Eo=Zv(bo(Gs((!oo.b&&(oo.b=new Wu(D1,oo,4,7)),oo.b),0),84)),To=Zv(bo(Gs((!oo.c&&(oo.c=new Wu(D1,oo,5,8)),oo.c),0),84)),kp(Eo)==kp(To)||D$(To,Eo)?null:(xo=$H(oo),xo==co?fo:(vo=bo(m1(ro.a,xo),10),vo&&(po=vo.e,po)?po:null))}function cqt(ro,oo,co){var fo,po,vo,xo,Eo;for(co.Ug("Longest path to source layering",1),ro.a=oo,Eo=ro.a.a,ro.b=Al(Q1,E0,28,Eo.c.length,15,1),fo=0,xo=new _s(Eo);xo.a0&&(co[0]+=ro.d,xo-=co[0]),co[2]>0&&(co[2]+=ro.d,xo-=co[2]),vo=lo.Math.max(0,xo),co[1]=lo.Math.max(co[1],xo),o_e(ro,c2,po.c+fo.b+co[0]-(co[1]-xo)/2,co),oo==c2&&(ro.c.b=vo,ro.c.c=po.c+fo.b+(vo-xo)/2)}function Est(){this.c=Al(Am,Iv,28,(nu(),As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1])).length,15,1),this.b=Al(Am,Iv,28,As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1]).length,15,1),this.a=Al(Am,Iv,28,As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1]).length,15,1),l2e(this.c,Tp),l2e(this.b,am),l2e(this.a,am)}function Uy(ro,oo,co){var fo,po,vo,xo;if(oo<=co?(po=oo,vo=co):(po=co,vo=oo),fo=0,ro.b==null)ro.b=Al(Q1,E0,28,2,15,1),ro.b[0]=po,ro.b[1]=vo,ro.c=!0;else{if(fo=ro.b.length,ro.b[fo-1]+1==po){ro.b[fo-1]=vo;return}xo=Al(Q1,E0,28,fo+2,15,1),jy(ro.b,0,xo,0,fo),ro.b=xo,ro.b[fo-1]>=po&&(ro.c=!1,ro.a=!1),ro.b[fo++]=po,ro.b[fo]=vo,ro.c||B9(ro)}}function gqt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;for(Ao=oo.d,ro.a=new o2(Ao.c.length),ro.c=new H1,Eo=new _s(Ao);Eo.a=0?ro.Lh(Ao,!1,!0):m6(ro,co,!1),61));e:for(vo=Fo.Kc();vo.Ob();){for(po=bo(vo.Pb(),58),Io=0;Io1;)X$(po,po.i-1);return fo}function Tst(ro,oo){var co,fo,po,vo,xo,Eo,To;for(co=new m9,vo=new _s(ro.b);vo.aro.d[xo.p]&&(co+=QSe(ro.b,vo),h3(ro.a,Ql(vo)));for(;!xD(ro.a);)O_e(ro.b,bo(O8(ro.a),17).a)}return co}function xqt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao;for(ro.a=new qwe,Ao=0,po=0,fo=new _s(ro.i.b);fo.aEo.d&&(Io=Eo.d+Eo.a+Ao));co.c.d=Io,oo.a.zc(co,oo),To=lo.Math.max(To,co.c.d+co.c.a)}return To}function Sv(){Sv=qo,Fee=new g$("COMMENTS",0),Tx=new g$("EXTERNAL_PORTS",1),oF=new g$("HYPEREDGES",2),Pee=new g$("HYPERNODES",3),GN=new g$("NON_FREE_PORTS",4),f7=new g$("NORTH_SOUTH_PORTS",5),sF=new g$(Qut,6),qN=new g$("CENTER_LABELS",7),VN=new g$("END_LABELS",8),jee=new g$("PARTITIONS",9)}function _qt(ro,oo,co,fo,po){return fo<0?(fo=L9(ro,po,As($s(uu,1),Yl,2,6,[qhe,Vhe,Ghe,Whe,lR,Uhe,Khe,Yhe,Xhe,Qhe,Zhe,Jhe]),oo),fo<0&&(fo=L9(ro,po,As($s(uu,1),Yl,2,6,["Jan","Feb","Mar","Apr",lR,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),oo)),fo<0?!1:(co.k=fo,!0)):fo>0?(co.k=fo-1,!0):!1}function Eqt(ro,oo,co,fo,po){return fo<0?(fo=L9(ro,po,As($s(uu,1),Yl,2,6,[qhe,Vhe,Ghe,Whe,lR,Uhe,Khe,Yhe,Xhe,Qhe,Zhe,Jhe]),oo),fo<0&&(fo=L9(ro,po,As($s(uu,1),Yl,2,6,["Jan","Feb","Mar","Apr",lR,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),oo)),fo<0?!1:(co.k=fo,!0)):fo>0?(co.k=fo-1,!0):!1}function kqt(ro,oo,co,fo,po,vo){var xo,Eo,To,Ao;if(Eo=32,fo<0){if(oo[0]>=ro.length||(Eo=Um(ro,oo[0]),Eo!=43&&Eo!=45)||(++oo[0],fo=oZ(ro,oo),fo<0))return!1;Eo==45&&(fo=-fo)}return Eo==32&&oo[0]-co==2&&po.b==2&&(To=new MK,Ao=To.q.getFullYear()-$3+$3-80,xo=Ao%100,vo.a=fo==xo,fo+=(Ao/100|0)*100+(fo=0?x3(ro):uL(x3(f4(ro)))),QB[oo]=fY(fS(ro,oo),0)?x3(fS(ro,oo)):uL(x3(f4(fS(ro,oo)))),ro=nv(ro,5);for(;oo=Ao&&(To=fo);To&&(Io=lo.Math.max(Io,To.a.o.a)),Io>Wo&&(Fo=Ao,Wo=Io)}return Fo}function Oqt(ro){var oo,co,fo,po,vo,xo,Eo;for(vo=new e4(bo(a0(new $v),50)),Eo=am,co=new _s(ro.d);co.a_ft?Up(To,ro.b):fo<=_ft&&fo>Eft?Up(To,ro.d):fo<=Eft&&fo>kft?Up(To,ro.c):fo<=kft&&Up(To,ro.a),vo=Ost(ro,To,vo);return po}function Ist(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao;for(po=(fo.c+fo.a)/2,Fw(oo.j),y0(oo.j,po),Fw(co.e),y0(co.e,po),Ao=new GPe,Eo=new _s(ro.f);Eo.a1,Eo&&(fo=new Vl(po,co.b),y0(oo.a,fo)),EL(oo.a,As($s(_m,1),Yl,8,0,[Wo,Fo]))}function F4e(ro,oo,co){var fo,po;for(oo=48;co--)oP[co]=co-48<<24>>24;for(fo=70;fo>=65;fo--)oP[fo]=fo-65+10<<24>>24;for(po=102;po>=97;po--)oP[po]=po-97+10<<24>>24;for(vo=0;vo<10;vo++)pne[vo]=48+vo&em;for(ro=10;ro<=15;ro++)pne[ro]=65+ro-10&em}function Dqt(ro,oo){oo.Ug("Process graph bounds",1),Fl(ro,(fp(),Pme),Wz(dfe(C$(new Ou(null,new Du(ro.b,16)),new WP)))),Fl(ro,jme,Wz(dfe(C$(new Ou(null,new Du(ro.b,16)),new GW)))),Fl(ro,VRe,Wz(ffe(C$(new Ou(null,new Du(ro.b,16)),new WW)))),Fl(ro,GRe,Wz(ffe(C$(new Ou(null,new Du(ro.b,16)),new r5)))),oo.Vg()}function Lqt(ro){var oo,co,fo,po,vo;po=bo(bs(ro,(ou(),XT)),21),vo=bo(bs(ro,ote),21),co=new Vl(ro.f.a+ro.d.b+ro.d.c,ro.f.b+ro.d.d+ro.d.a),oo=new ov(co),po.Hc((Mw(),MA))&&(fo=bo(bs(ro,UN),8),vo.Hc((ww(),dM))&&(fo.a<=0&&(fo.a=20),fo.b<=0&&(fo.b=20)),oo.a=lo.Math.max(co.a,fo.a),oo.b=lo.Math.max(co.b,fo.b)),lu(au(bs(ro,cme)))||dWt(ro,co,oo)}function Bqt(ro,oo){var co,fo,po,vo;for(vo=hy(oo,(nu(),z1)).Kc();vo.Ob();)fo=bo(vo.Pb(),12),co=bo(bs(fo,(Wl(),aw)),10),co&&mS(sS(oS(aS(iS(new Lx,0),.1),ro.i[oo.p].d),ro.i[co.p].a));for(po=hy(oo,s1).Kc();po.Ob();)fo=bo(po.Pb(),12),co=bo(bs(fo,(Wl(),aw)),10),co&&mS(sS(oS(aS(iS(new Lx,0),.1),ro.i[co.p].d),ro.i[oo.p].a))}function nhe(ro){var oo,co,fo,po,vo,xo;if(!ro.c){if(xo=new Qie,oo=tP,vo=oo.a.zc(ro,oo),vo==null){for(fo=new g1(Fy(ro));fo.e!=fo.i.gc();)co=bo(k1(fo),89),po=SZ(co),Hs(po,90)&&Bp(xo,nhe(bo(po,29))),Y1(xo,co);oo.a.Bc(ro)!=null,oo.a.gc()==0}INt(xo),F$(xo),ro.c=new c9((bo(Gs(Ml((c3(),_d).o),15),19),xo.i),xo.g),mw(ro).b&=-33}return ro.c}function j4e(ro){var oo;if(ro.c!=10)throw Cs(new p0(m0((c0(),CJ))));switch(oo=ro.a,oo){case 110:oo=10;break;case 114:oo=13;break;case 116:oo=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw Cs(new p0(m0((c0(),Ex))))}return oo}function Lst(ro){var oo,co,fo,po,vo;if(ro.l==0&&ro.m==0&&ro.h==0)return"0";if(ro.h==oV&&ro.m==0&&ro.l==0)return"-9223372036854775808";if(ro.h>>19)return"-"+Lst(kI(ro));for(co=ro,fo="";!(co.l==0&&co.m==0&&co.h==0);){if(po=Iue(DZ),co=w3e(co,po,!0),oo=""+QPe(N3),!(co.l==0&&co.m==0&&co.h==0))for(vo=9-oo.length;vo>0;vo--)oo="0"+oo;fo=oo+fo}return fo}function Fqt(ro){var oo,co,fo,po,vo,xo,Eo;for(oo=!1,co=0,po=new _s(ro.d.b);po.a=ro.a||!S5e(oo,co))return-1;if(rI(bo(fo.Kb(oo),20)))return 1;for(po=0,xo=bo(fo.Kb(oo),20).Kc();xo.Ob();)if(vo=bo(xo.Pb(),18),To=vo.c.i==oo?vo.d.i:vo.c.i,Eo=z4e(ro,To,co,fo),Eo==-1||(po=lo.Math.max(po,Eo),po>ro.c-1))return-1;return po+1}function Bst(ro,oo){var co,fo,po,vo,xo,Eo;if($a(oo)===$a(ro))return!0;if(!Hs(oo,15)||(fo=bo(oo,15),Eo=ro.gc(),fo.gc()!=Eo))return!1;if(xo=fo.Kc(),ro.Yi()){for(co=0;co0){if(ro._j(),oo!=null){for(vo=0;vo>24;case 97:case 98:case 99:case 100:case 101:case 102:return ro-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return ro-65+10<<24>>24;default:throw Cs(new H_("Invalid hexadecimal"))}}function bZ(){bZ=qo,TAe=new i9("SPIRAL",0),SAe=new i9("LINE_BY_LINE",1),_Ae=new i9("MANHATTAN",2),xAe=new i9("JITTER",3),Vpe=new i9("QUADRANTS_LINE_BY_LINE",4),kAe=new i9("QUADRANTS_MANHATTAN",5),EAe=new i9("QUADRANTS_JITTER",6),wAe=new i9("COMBINE_LINE_BY_LINE_MANHATTAN",7),yAe=new i9("COMBINE_JITTER_MANHATTAN",8)}function Pst(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao;for(To=Cde(ro,co),Ao=Cde(oo,co),po=!1;To&&Ao&&(fo||DDt(To,Ao,co));)xo=Cde(To,co),Eo=Cde(Ao,co),qH(oo),qH(ro),vo=To.c,$he(To,!1),$he(Ao,!1),co?(q$(oo,Ao.p,vo),oo.p=Ao.p,q$(ro,To.p+1,vo),ro.p=To.p):(q$(ro,To.p,vo),ro.p=To.p,q$(oo,Ao.p+1,vo),oo.p=Ao.p),Dm(To,null),Dm(Ao,null),To=xo,Ao=Eo,po=!0;return po}function jst(ro){switch(ro.g){case 0:return new GU;case 1:return new VU;case 3:return new oze;case 4:return new Mre;case 5:return new NVe;case 6:return new K5;case 2:return new uv;case 7:return new Lse;case 8:return new Fse;default:throw Cs(new i1("No implementation is available for the layerer "+(ro.f!=null?ro.f:""+ro.g)))}}function Vqt(ro,oo,co,fo){var po,vo,xo,Eo,To;for(po=!1,vo=!1,Eo=new _s(fo.j);Eo.a=oo.length)throw Cs(new Dv("Greedy SwitchDecider: Free layer not in graph."));this.c=oo[ro],this.e=new dH(fo),afe(this.e,this.c,(nu(),l1)),this.i=new dH(fo),afe(this.i,this.c,p1),this.f=new XGe(this.c),this.a=!vo&&po.i&&!po.s&&this.c[0].k==(a1(),Kp),this.a&&iPt(this,ro,oo.length)}function Hst(ro,oo){var co,fo,po,vo,xo,Eo;vo=!ro.B.Hc((ww(),FG)),xo=ro.B.Hc(Yve),ro.a=new _tt(xo,vo,ro.c),ro.n&&bSe(ro.a.n,ro.n),Zae(ro.g,(US(),c2),ro.a),oo||(fo=new qL(1,vo,ro.c),fo.n.a=ro.k,I8(ro.p,(nu(),s1),fo),po=new qL(1,vo,ro.c),po.n.d=ro.k,I8(ro.p,z1,po),Eo=new qL(0,vo,ro.c),Eo.n.c=ro.k,I8(ro.p,l1,Eo),co=new qL(0,vo,ro.c),co.n.b=ro.k,I8(ro.p,p1,co))}function Wqt(ro){var oo,co,fo;switch(oo=bo(bs(ro.d,(ou(),M5)),223),oo.g){case 2:co=MYt(ro);break;case 3:co=(fo=new Zl,zp(X0(Kv(fy(fy(new Ou(null,new Du(ro.d.b,16)),new SW),new Il),new J7),new IP),new gLe(fo)),fo);break;default:throw Cs(new Lv("Compaction not supported for "+oo+" edges."))}nUt(ro,co),Hm(new Dl(ro.g),new hLe(ro))}function Uqt(ro,oo){var co,fo,po,vo,xo,Eo,To;if(oo.Ug("Process directions",1),co=bo(bs(ro,(by(),U6)),88),co!=(_g(),A_))for(po=G1(ro.b,0);po.b!=po.d.c;){switch(fo=bo(q1(po),40),Eo=bo(bs(fo,(fp(),pG)),17).a,To=bo(bs(fo,gG),17).a,co.g){case 4:To*=-1;break;case 1:vo=Eo,Eo=To,To=vo;break;case 2:xo=Eo,Eo=-To,To=xo}Fl(fo,pG,Ql(Eo)),Fl(fo,gG,Ql(To))}oo.Vg()}function Kqt(ro,oo){var co;return co=new O1,oo&&Qv(co,bo(m1(ro.a,jG),96)),Hs(oo,422)&&Qv(co,bo(m1(ro.a,zG),96)),Hs(oo,366)?(Qv(co,bo(m1(ro.a,Nv),96)),co):(Hs(oo,84)&&Qv(co,bo(m1(ro.a,D1),96)),Hs(oo,207)?(Qv(co,bo(m1(ro.a,F0),96)),co):Hs(oo,193)?(Qv(co,bo(m1(ro.a,fw),96)),co):(Hs(oo,326)&&Qv(co,bo(m1(ro.a,Gp),96)),co))}function Yqt(ro){var oo,co,fo,po,vo,xo,Eo,To;for(To=new hXe,Eo=new _s(ro.a);Eo.a0&&oo=0)return!1;if(oo.p=co.b,Jl(co.e,oo),po==(a1(),km)||po==Zy){for(xo=new _s(oo.j);xo.aro.d[Eo.p]&&(co+=QSe(ro.b,vo),h3(ro.a,Ql(vo)))):++xo;for(co+=ro.b.d*xo;!xD(ro.a);)O_e(ro.b,bo(O8(ro.a),17).a)}return co}function Zst(ro){var oo,co,fo,po,vo,xo;return vo=0,oo=Hx(ro),oo.kk()&&(vo|=4),ro.Bb&Y2&&(vo|=2),Hs(ro,102)?(co=bo(ro,19),po=bv(co),co.Bb&Cy&&(vo|=32),po&&(A1($$(po)),vo|=8,xo=po.t,(xo>1||xo==-1)&&(vo|=16),po.Bb&Cy&&(vo|=64)),co.Bb&hv&&(vo|=cA),vo|=bS):Hs(oo,469)?vo|=512:(fo=oo.kk(),fo&&fo.i&1&&(vo|=256)),ro.Bb&512&&(vo|=128),vo}function aVt(ro,oo){var co;return ro.f==lbe?(co=YC(Fv((W2(),Gm),oo)),ro.e?co==4&&oo!=(rR(),WR)&&oo!=(rR(),GR)&&oo!=(rR(),cbe)&&oo!=(rR(),ube):co==2):ro.d&&(ro.d.Hc(oo)||ro.d.Hc(F8(Fv((W2(),Gm),oo)))||ro.d.Hc(q9((W2(),Gm),ro.b,oo)))?!0:ro.f&&$4e((W2(),ro.f),_H(Fv(Gm,oo)))?(co=YC(Fv(Gm,oo)),ro.e?co==4:co==2):!1}function lVt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo;for(Wo=-1,Xo=0,Ao=ro,Io=0,Fo=Ao.length;Io0&&++Xo;++Wo}return Xo}function cVt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo;return xo=bo(zl(co,($0(),PR)),8),To=xo.a,Io=xo.b+ro,po=lo.Math.atan2(Io,To),po<0&&(po+=FT),po+=oo,po>FT&&(po-=FT),Eo=bo(zl(fo,PR),8),Ao=Eo.a,Fo=Eo.b+ro,vo=lo.Math.atan2(Fo,Ao),vo<0&&(vo+=FT),vo+=oo,vo>FT&&(vo-=FT),s_(),hS(1e-10),lo.Math.abs(po-vo)<=1e-10||po==vo||isNaN(po)&&isNaN(vo)?0:povo?1:LC(isNaN(po),isNaN(vo))}function ohe(ro){var oo,co,fo,po,vo,xo,Eo;for(Eo=new H1,fo=new _s(ro.a.b);fo.a=ro.o)throw Cs(new xye);Eo=oo>>5,xo=oo&31,vo=fS(1,s0(fS(xo,1))),po?ro.n[co][Eo]=qS(ro.n[co][Eo],vo):ro.n[co][Eo]=vm(ro.n[co][Eo],bxe(vo)),vo=fS(vo,1),fo?ro.n[co][Eo]=qS(ro.n[co][Eo],vo):ro.n[co][Eo]=vm(ro.n[co][Eo],bxe(vo))}catch(To){throw To=$p(To),Hs(To,333)?Cs(new Dv(T1e+ro.o+"*"+ro.p+C1e+oo+av+co+$1e)):Cs(To)}}function dVt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo,Wo;for(Wo=new e4(new FLe(ro)),Eo=As($s(VE,1),T4,10,0,[oo,co]),To=0,Ao=Eo.length;To0&&(fo=(!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),bo(Gs(ro.n,0),135)).a,!fo||S0(S0((oo.a+=' "',oo),fo),'"'))),S0(RC(S0(RC(S0(RC(S0(RC((oo.a+=" (",oo),ro.i),","),ro.j)," | "),ro.g),","),ro.f),")"),oo.a)}function Jst(ro){var oo,co,fo;return ro.Db&64?Fde(ro):(oo=new Bw(Y6e),co=ro.k,co?S0(S0((oo.a+=' "',oo),co),'"'):(!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),ro.n.i>0&&(fo=(!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),bo(Gs(ro.n,0),135)).a,!fo||S0(S0((oo.a+=' "',oo),fo),'"'))),S0(RC(S0(RC(S0(RC(S0(RC((oo.a+=" (",oo),ro.i),","),ro.j)," | "),ro.g),","),ro.f),")"),oo.a)}function gVt(ro,oo){var co,fo,po,vo,xo;for(oo==(IL(),$me)&&Nq(bo(Q0(ro.a,(V$(),YV)),15)),po=bo(Q0(ro.a,(V$(),YV)),15).Kc();po.Ob();)switch(fo=bo(po.Pb(),105),co=bo(cu(fo.j,0),113).d.j,vo=new tw(fo.j),Up(vo,new UA),oo.g){case 2:Ide(ro,vo,co,(s6(),B3),1);break;case 1:case 0:xo=tHt(vo),Ide(ro,new s4(vo,0,xo),co,(s6(),B3),0),Ide(ro,new s4(vo,xo,vo.c.length),co,B3,1)}}function ahe(ro,oo){var co,fo,po,vo,xo,Eo,To;if(oo==null||oo.length==0)return null;if(po=bo(Gy(ro.a,oo),143),!po){for(fo=(Eo=new L0(ro.b).a.vc().Kc(),new pp(Eo));fo.a.Ob();)if(co=(vo=bo(fo.a.Pb(),44),bo(vo.md(),143)),xo=co.c,To=oo.length,Iu(xo.substr(xo.length-To,To),oo)&&(oo.length==xo.length||Um(xo,xo.length-oo.length-1)==46)){if(po)return null;po=co}po&&Bv(ro.a,oo,po)}return po}function mVt(ro,oo){var co,fo,po,vo;return co=new $l,fo=bo(ny(Kv(new Ou(null,new Du(ro.f,16)),co),I$(new Ol,new Fu,new Is,new Ks,As($s(zv,1),Pl,108,0,[(ow(),uA),oy]))),21),po=fo.gc(),fo=bo(ny(Kv(new Ou(null,new Du(oo.f,16)),co),I$(new Ol,new Fu,new Is,new Ks,As($s(zv,1),Pl,108,0,[uA,oy]))),21),vo=fo.gc(),popo.p?(hm(vo,z1),vo.d&&(Eo=vo.o.b,oo=vo.a.b,vo.a.b=Eo-oo)):vo.j==z1&&po.p>ro.p&&(hm(vo,s1),vo.d&&(Eo=vo.o.b,oo=vo.a.b,vo.a.b=-(Eo-oo)));break}return po}function Hq(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Fo;if(!(Hs(oo,207)||Hs(oo,366)||Hs(oo,193)))throw Cs(new i1("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return xo=ro.a/2,To=oo.i+fo-xo,Io=oo.j+po-xo,Ao=To+oo.g+ro.a,Fo=Io+oo.f+ro.a,vo=new P2,y0(vo,new Vl(To,Io)),y0(vo,new Vl(To,Fo)),y0(vo,new Vl(Ao,Fo)),y0(vo,new Vl(Ao,Io)),Eo=new Yde(vo),Qv(Eo,oo),co&&N0(ro.b,oo,Eo),Eo}function ZI(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;for(vo=new Vl(oo,co),Io=new _s(ro.a);Io.a1,Eo&&(fo=new Vl(po,co.b),y0(oo.a,fo)),EL(oo.a,As($s(_m,1),Yl,8,0,[Wo,Fo]))}function qx(){qx=qo,dte=new m$(sE,0),aG=new m$("NIKOLOV",1),lG=new m$("NIKOLOV_PIXEL",2),lRe=new m$("NIKOLOV_IMPROVED",3),cRe=new m$("NIKOLOV_IMPROVED_PIXEL",4),aRe=new m$("DUMMYNODE_PERCENTAGE",5),uRe=new m$("NODECOUNT_PERCENTAGE",6),hte=new m$("NO_BOUNDARY",7),G6=new m$("MODEL_ORDER_LEFT_TO_RIGHT",8),CA=new m$("MODEL_ORDER_RIGHT_TO_LEFT",9)}function TVt(ro){var oo,co,fo,po,vo;for(fo=ro.length,oo=new SD,vo=0;vo=40,xo&&CGt(ro),DWt(ro),iqt(ro),co=htt(ro),fo=0;co&&fo0&&y0(ro.f,vo)):(ro.c[xo]-=Ao+1,ro.c[xo]<=0&&ro.a[xo]>0&&y0(ro.e,vo))))}function dat(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io;for(To=new Vl(co,fo),mm(To,bo(bs(oo,(fp(),nM)),8)),Io=G1(oo.b,0);Io.b!=Io.d.c;)Ao=bo(q1(Io),40),G0(Ao.e,To),y0(ro.b,Ao);for(Eo=bo(ny(ASe(new Ou(null,new Du(oo.a,16))),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15).Kc();Eo.Ob();){for(xo=bo(Eo.Pb(),65),vo=G1(xo.a,0);vo.b!=vo.d.c;)po=bo(q1(vo),8),po.a+=To.a,po.b+=To.b;y0(ro.a,xo)}}function n3e(ro,oo){var co,fo,po,vo;if(0<(Hs(ro,16)?bo(ro,16).gc():h5(ro.Kc()))){if(po=oo,1=0&&Tovo*2?(Io=new KX(Fo),Ao=H2(xo)/Ow(xo),To=Ihe(Io,oo,new c8,co,fo,po,Ao),G0(zS(Io.e),To),Fo.c.length=0,vo=0,Ju(Fo.c,Io),Ju(Fo.c,xo),vo=H2(Io)*Ow(Io)+H2(xo)*Ow(xo)):(Ju(Fo.c,xo),vo+=H2(xo)*Ow(xo));return Fo}function pat(ro,oo){var co,fo,po,vo,xo,Eo;if(Eo=bo(bs(oo,(ou(),Pp)),101),Eo==(Im(),YE)||Eo==n2)for(po=new Vl(oo.f.a+oo.d.b+oo.d.c,oo.f.b+oo.d.d+oo.d.a).b,xo=new _s(ro.a);xo.aco?oo:co;Ao<=Fo;++Ao)Ao==co?Eo=fo++:(vo=po[Ao],Io=Zo.am(vo.Lk()),Ao==oo&&(To=Ao==Fo&&!Io?fo-1:fo),Io&&++fo);return Wo=bo(jL(ro,oo,co),76),Eo!=To&&kO(ro,new PH(ro.e,7,xo,Ql(Eo),Xo.md(),To)),Wo}}else return bo(Wde(ro,oo,co),76);return bo(jL(ro,oo,co),76)}function GVt(ro,oo){var co,fo,po,vo,xo,Eo,To;for(oo.Ug("Port order processing",1),To=bo(bs(ro,(ou(),j8e)),430),fo=new _s(ro.b);fo.a=0&&(Eo=jDt(ro,xo),!(Eo&&(Ao<22?To.l|=1<>>1,xo.m=Io>>>1|(Fo&1)<<21,xo.l=Wo>>>1|(Io&1)<<21,--Ao;return co&&_fe(To),vo&&(fo?(N3=kI(ro),po&&(N3=VJe(N3,(lI(),L$e)))):N3=h2(ro.l,ro.m,ro.h)),To}function KVt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo;for(Ao=ro.e[oo.c.p][oo.p]+1,To=oo.c.a.c.length+1,Eo=new _s(ro.a);Eo.a0&&(o1(0,ro.length),ro.charCodeAt(0)==45||(o1(0,ro.length),ro.charCodeAt(0)==43))?1:0,fo=xo;foco)throw Cs(new H_(S6+ro+'"'));return Eo}function YVt(ro){var oo,co,fo,po,vo,xo,Eo;for(xo=new xp,vo=new _s(ro.a);vo.a1)&&oo==1&&bo(ro.a[ro.b],10).k==(a1(),Ly)?oR(bo(ro.a[ro.b],10),(Gw(),UE)):fo&&(!co||(ro.c-ro.b&ro.a.length-1)>1)&&oo==1&&bo(ro.a[ro.c-1&ro.a.length-1],10).k==(a1(),Ly)?oR(bo(ro.a[ro.c-1&ro.a.length-1],10),(Gw(),G3)):(ro.c-ro.b&ro.a.length-1)==2?(oR(bo(OL(ro),10),(Gw(),UE)),oR(bo(OL(ro),10),G3)):kzt(ro,po),YSe(ro)}function ZVt(ro,oo,co){var fo,po,vo,xo,Eo;for(vo=0,po=new g1((!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a));po.e!=po.i.gc();)fo=bo(k1(po),27),xo="",(!fo.n&&(fo.n=new Bl(Nv,fo,1,7)),fo.n).i==0||(xo=bo(Gs((!fo.n&&(fo.n=new Bl(Nv,fo,1,7)),fo.n),0),135).a),Eo=new Efe(vo++,oo,xo),Qv(Eo,fo),Fl(Eo,(fp(),$F),fo),Eo.e.b=fo.j+fo.f/2,Eo.f.a=lo.Math.max(fo.g,1),Eo.e.a=fo.i+fo.g/2,Eo.f.b=lo.Math.max(fo.f,1),y0(oo.b,Eo),l2(co.f,fo,Eo)}function JVt(ro){var oo,co,fo,po,vo;fo=bo(bs(ro,(Wl(),Z0)),27),vo=bo(zl(fo,(ou(),XT)),181).Hc((Mw(),oC)),ro.e||(po=bo(bs(ro,Jy),21),oo=new Vl(ro.f.a+ro.d.b+ro.d.c,ro.f.b+ro.d.d+ro.d.a),po.Hc((Sv(),Tx))?(tp(fo,Pp,(Im(),n2)),y6(fo,oo.a,oo.b,!1,!0)):lu(au(zl(fo,cme)))||y6(fo,oo.a,oo.b,!0,!0)),vo?tp(fo,XT,Tu(oC)):tp(fo,XT,(co=bo(PS(YF),9),new sx(co,bo(cS(co,co.length),9),0)))}function r3e(ro,oo,co){var fo,po,vo,xo;if(oo[0]>=ro.length)return co.o=0,!0;switch(Um(ro,oo[0])){case 43:po=1;break;case 45:po=-1;break;default:return co.o=0,!0}if(++oo[0],vo=oo[0],xo=oZ(ro,oo),xo==0&&oo[0]==vo)return!1;if(oo[0]Eo&&(Eo=po,Io.c.length=0),po==Eo&&Jl(Io,new fm(co.c.i,co)));Hu(),Up(Io,ro.c),HC(ro.b,To.p,Io)}}function rGt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;for(xo=new _s(oo.b);xo.aEo&&(Eo=po,Io.c.length=0),po==Eo&&Jl(Io,new fm(co.d.i,co)));Hu(),Up(Io,ro.c),HC(ro.f,To.p,Io)}}function iGt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao;if(Ao=au(bs(oo,(by(),Oyt))),Ao==null||(u1(Ao),Ao)){for(Rjt(ro,oo),po=new Zl,To=G1(oo.b,0);To.b!=To.d.c;)xo=bo(q1(To),40),co=V5e(ro,xo,null),co&&(Qv(co,oo),Ju(po.c,co));if(ro.a=null,ro.b=null,po.c.length>1)for(fo=new _s(po);fo.a=0&&Eo!=co&&(vo=new Em(ro,1,Eo,xo,null),fo?fo.nj(vo):fo=vo),co>=0&&(vo=new Em(ro,1,co,Eo==co?xo:null,oo),fo?fo.nj(vo):fo=vo)),fo}function vat(ro){var oo,co,fo;if(ro.b==null){if(fo=new Z5,ro.i!=null&&(Av(fo,ro.i),fo.a+=":"),ro.f&256){for(ro.f&256&&ro.a!=null&&(S6t(ro.i)||(fo.a+="//"),Av(fo,ro.a)),ro.d!=null&&(fo.a+="/",Av(fo,ro.d)),ro.f&16&&(fo.a+="/"),oo=0,co=ro.j.length;ooWo?!1:(Fo=(To=hB(fo,Wo,!1),To.a),Io+Eo+Fo<=oo.b&&(jH(co,vo-co.s),co.c=!0,jH(fo,vo-co.s),_q(fo,co.s,co.t+co.d+Eo),fo.k=!0,fEe(co.q,fo),Xo=!0,po&&(JX(oo,fo),fo.j=oo,ro.c.length>xo&&(Tq((qu(xo,ro.c.length),bo(ro.c[xo],186)),fo),(qu(xo,ro.c.length),bo(ro.c[xo],186)).a.c.length==0&&l4(ro,xo)))),Xo)}function fGt(ro,oo){var co,fo,po,vo,xo,Eo;if(oo.Ug("Partition midprocessing",1),po=new ZC,zp(X0(new Ou(null,new Du(ro.a,16)),new jne),new nLe(po)),po.d!=0){for(Eo=bo(ny(ISe((vo=po.i,new Ou(null,(vo||(po.i=new v9(po,po.c))).Nc()))),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),fo=Eo.Kc(),co=bo(fo.Pb(),17);fo.Ob();)xo=bo(fo.Pb(),17),iHt(bo(Q0(po,co),21),bo(Q0(po,xo),21)),co=xo;oo.Vg()}}function wat(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;if(oo.p==0){for(oo.p=1,xo=co,xo||(po=new Zl,vo=(fo=bo(PS(pv),9),new sx(fo,bo(cS(fo,fo.length),9),0)),xo=new fm(po,vo)),bo(xo.a,15).Fc(oo),oo.k==(a1(),Kp)&&bo(xo.b,21).Fc(bo(bs(oo,(Wl(),_y)),64)),To=new _s(oo.j);To.a0){if(po=bo(ro.Ab.g,2033),oo==null){for(vo=0;voco.s&&Eoxo)return nu(),p1;break;case 4:case 3:if(Io<0)return nu(),s1;if(Io+co>vo)return nu(),z1}return To=(Ao+Eo/2)/xo,fo=(Io+co/2)/vo,To+fo<=1&&To-fo<=0?(nu(),l1):To+fo>=1&&To-fo>=0?(nu(),p1):fo<.5?(nu(),s1):(nu(),z1)}function mGt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws;for(co=!1,Io=na(Tl(bs(oo,(ou(),V6)))),Zo=C3*Io,po=new _s(oo.b);po.aTo+Zo&&(ws=Fo.g+Wo.g,Wo.a=(Wo.g*Wo.a+Fo.g*Fo.a)/ws,Wo.g=ws,Fo.f=Wo,co=!0)),vo=Eo,Fo=Wo;return co}function Eat(ro,oo,co,fo,po,vo,xo){var Eo,To,Ao,Io,Fo,Wo;for(Wo=new x8,Ao=oo.Kc();Ao.Ob();)for(Eo=bo(Ao.Pb(),853),Fo=new _s(Eo.Rf());Fo.a0?Eo.a?(Ao=Eo.b.Mf().b,po>Ao&&(ro.v||Eo.c.d.c.length==1?(xo=(po-Ao)/2,Eo.d.d=xo,Eo.d.a=xo):(co=bo(cu(Eo.c.d,0),187).Mf().b,fo=(co-Ao)/2,Eo.d.d=lo.Math.max(0,fo),Eo.d.a=po-fo-Ao))):Eo.d.a=ro.t+po:sL(ro.u)&&(vo=T5e(Eo.b),vo.d<0&&(Eo.d.d=-vo.d),vo.d+vo.a>Eo.b.Mf().b&&(Eo.d.a=vo.d+vo.a-Eo.b.Mf().b))}function vS(){vS=qo,_R=new Mm(($0(),AG),Ql(1)),oee=new Mm(rC,80),rpt=new Mm(gNe,5),U0t=new Mm($7,gN),tpt=new Mm(Vve,Ql(1)),npt=new Mm(Gve,(_f(),!0)),qAe=new BC(50),J0t=new Mm(L4,qAe),jAe=CG,VAe=zF,K0t=new Mm(Mve,!1),HAe=$G,Q0t=OA,Z0t=V3,X0t=nC,Y0t=I7,ept=IA,zAe=(L5e(),j0t),nge=V0t,iee=P0t,tge=z0t,GAe=q0t,spt=aM,apt=Vte,opt=RG,ipt=qte,WAe=(K8(),DA),new Mm(zR,WAe)}function yGt(ro,oo){var co;switch(KH(ro)){case 6:return Cm(oo);case 7:return b$(oo);case 8:return v$(oo);case 3:return Array.isArray(oo)&&(co=KH(oo),!(co>=14&&co<=16));case 11:return oo!=null&&typeof oo===Lhe;case 12:return oo!=null&&(typeof oo===Zq||typeof oo==Lhe);case 0:return ade(oo,ro.__elementTypeId$);case 2:return jce(oo)&&oo.Tm!==Yo;case 1:return jce(oo)&&oo.Tm!==Yo||ade(oo,ro.__elementTypeId$);default:return!0}}function wGt(ro){var oo,co,fo,po;fo=ro.o,x$(),ro.A.dc()||U0(ro.A,AAe)?po=fo.a:(ro.D?po=lo.Math.max(fo.a,eB(ro.f)):po=eB(ro.f),ro.A.Hc((Mw(),LG))&&!ro.B.Hc((ww(),XF))&&(po=lo.Math.max(po,eB(bo(Rv(ro.p,(nu(),s1)),252))),po=lo.Math.max(po,eB(bo(Rv(ro.p,z1),252)))),oo=RJe(ro),oo&&(po=lo.Math.max(po,oo.a))),lu(au(ro.e.Tf().of(($0(),OA))))?fo.a=lo.Math.max(fo.a,po):fo.a=po,co=ro.f.i,co.c=0,co.b=po,phe(ro.f)}function kat(ro,oo){var co,fo,po,vo;return fo=lo.Math.min(lo.Math.abs(ro.c-(oo.c+oo.b)),lo.Math.abs(ro.c+ro.b-oo.c)),vo=lo.Math.min(lo.Math.abs(ro.d-(oo.d+oo.a)),lo.Math.abs(ro.d+ro.a-oo.d)),co=lo.Math.abs(ro.c+ro.b/2-(oo.c+oo.b/2)),co>ro.b/2+oo.b/2||(po=lo.Math.abs(ro.d+ro.a/2-(oo.d+oo.a/2)),po>ro.a/2+oo.a/2)?1:co==0&&po==0?0:co==0?vo/po+1:po==0?fo/co+1:lo.Math.min(fo/co,vo/po)+1}function xGt(ro,oo){var co,fo,po,vo,xo,Eo,To;for(vo=0,Eo=0,To=0,po=new _s(ro.f.e);po.a0&&ro.d!=(SL(),oge)&&(Eo+=xo*(fo.d.a+ro.a[oo.a][fo.a]*(oo.d.a-fo.d.a)/co)),co>0&&ro.d!=(SL(),rge)&&(To+=xo*(fo.d.b+ro.a[oo.a][fo.a]*(oo.d.b-fo.d.b)/co)));switch(ro.d.g){case 1:return new Vl(Eo/vo,oo.d.b);case 2:return new Vl(oo.d.a,To/vo);default:return new Vl(Eo/vo,To/vo)}}function Tat(ro){var oo,co,fo,po,vo,xo;for(co=(!ro.a&&(ro.a=new Qp(tx,ro,5)),ro.a).i+2,xo=new o2(co),Jl(xo,new Vl(ro.j,ro.k)),zp(new Ou(null,(!ro.a&&(ro.a=new Qp(tx,ro,5)),new Du(ro.a,16))),new $Be(xo)),Jl(xo,new Vl(ro.b,ro.c)),oo=1;oo0&&(aq(To,!1,(_g(),qv)),aq(To,!0,ey)),g2(oo.g,new Oze(ro,co)),N0(ro.g,oo,co)}function Aat(){Aat=qo;var ro;for(V$e=As($s(Q1,1),E0,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),Ope=Al(Q1,E0,28,37,15,1),v1t=As($s(Q1,1),E0,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),G$e=Al(tT,c1e,28,37,14,1),ro=2;ro<=36;ro++)Ope[ro]=dm(lo.Math.pow(ro,V$e[ro])),G$e[ro]=$q(nV,Ope[ro])}function SGt(ro){var oo;if((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a).i!=1)throw Cs(new i1(rdt+(!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a).i));return oo=new P2,oq(bo(Gs((!ro.b&&(ro.b=new Wu(D1,ro,4,7)),ro.b),0),84))&&Fm(oo,vct(ro,oq(bo(Gs((!ro.b&&(ro.b=new Wu(D1,ro,4,7)),ro.b),0),84)),!1)),oq(bo(Gs((!ro.c&&(ro.c=new Wu(D1,ro,5,8)),ro.c),0),84))&&Fm(oo,vct(ro,oq(bo(Gs((!ro.c&&(ro.c=new Wu(D1,ro,5,8)),ro.c),0),84)),!0)),oo}function Rat(ro,oo){var co,fo,po,vo,xo;for(oo.d?po=ro.a.c==(Y_(),W6)?Sm(oo.b):Wp(oo.b):po=ro.a.c==(Y_(),N4)?Sm(oo.b):Wp(oo.b),vo=!1,fo=new x1(E1(po.a.Kc(),new ko));W1(fo);)if(co=bo(R1(fo),18),xo=lu(ro.a.f[ro.a.g[oo.b.p].p]),!(!xo&&!dv(co)&&co.c.i.c==co.d.i.c)&&!(lu(ro.a.n[ro.a.g[oo.b.p].p])||lu(ro.a.n[ro.a.g[oo.b.p].p]))&&(vo=!0,jS(ro.b,ro.a.g[SDt(co,oo.b).p])))return oo.c=!0,oo.a=co,oo;return oo.c=vo,oo.a=null,oo}function o3e(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;if(fo=co.gc(),fo==0)return!1;if(ro.Pj())if(To=ro.Qj(),pke(ro,oo,co),xo=fo==1?ro.Ij(3,null,co.Kc().Pb(),oo,To):ro.Ij(5,null,co,oo,To),ro.Mj()){for(Eo=fo<100?null:new e3(fo),vo=oo+fo,po=oo;po0){for(xo=0;xo>16==-15&&ro.Cb.Yh()&&Gue(new jue(ro.Cb,9,13,co,ro.c,x4(vw(bo(ro.Cb,62)),ro))):Hs(ro.Cb,90)&&ro.Db>>16==-23&&ro.Cb.Yh()&&(oo=ro.c,Hs(oo,90)||(oo=(Pu(),nS)),Hs(co,90)||(co=(Pu(),nS)),Gue(new jue(ro.Cb,9,10,co,oo,x4(Fy(bo(ro.Cb,29)),ro)))))),ro.c}function kGt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo;for(co.Ug("Hyperedge merging",1),Yjt(ro,oo),To=new Lm(oo.b,0);To.b0,Eo=TQ(oo,vo),vwe(co?Eo.b:Eo.g,oo),$9(Eo).c.length==1&&Mp(fo,Eo,fo.c.b,fo.c),po=new fm(vo,oo),h3(ro.o,po),A2(ro.e.a,vo))}function Bat(ro,oo){var co,fo,po,vo,xo,Eo,To;return fo=lo.Math.abs(eX(ro.b).a-eX(oo.b).a),Eo=lo.Math.abs(eX(ro.b).b-eX(oo.b).b),po=0,To=0,co=1,xo=1,fo>ro.b.b/2+oo.b.b/2&&(po=lo.Math.min(lo.Math.abs(ro.b.c-(oo.b.c+oo.b.b)),lo.Math.abs(ro.b.c+ro.b.b-oo.b.c)),co=1-po/fo),Eo>ro.b.a/2+oo.b.a/2&&(To=lo.Math.min(lo.Math.abs(ro.b.d-(oo.b.d+oo.b.a)),lo.Math.abs(ro.b.d+ro.b.a-oo.b.d)),xo=1-To/Eo),vo=lo.Math.min(co,xo),(1-vo)*lo.Math.sqrt(fo*fo+Eo*Eo)}function $Gt(ro){var oo,co,fo,po;for(Ohe(ro,ro.e,ro.f,(JC(),H3),!0,ro.c,ro.i),Ohe(ro,ro.e,ro.f,H3,!1,ro.c,ro.i),Ohe(ro,ro.e,ro.f,S7,!0,ro.c,ro.i),Ohe(ro,ro.e,ro.f,S7,!1,ro.c,ro.i),EGt(ro,ro.c,ro.e,ro.f,ro.i),fo=new Lm(ro.i,0);fo.b=65;co--)M_[co]=co-65<<24>>24;for(fo=122;fo>=97;fo--)M_[fo]=fo-97+26<<24>>24;for(po=57;po>=48;po--)M_[po]=po-48+52<<24>>24;for(M_[43]=62,M_[47]=63,vo=0;vo<=25;vo++)q4[vo]=65+vo&em;for(xo=26,To=0;xo<=51;++xo,To++)q4[xo]=97+To&em;for(ro=52,Eo=0;ro<=61;++ro,Eo++)q4[ro]=48+Eo&em;q4[62]=43,q4[63]=47}function Fat(ro,oo){var co,fo,po,vo,xo,Eo;return po=sEe(ro),Eo=sEe(oo),po==Eo?ro.e==oo.e&&ro.a<54&&oo.a<54?ro.foo.f?1:0:(fo=ro.e-oo.e,co=(ro.d>0?ro.d:lo.Math.floor((ro.a-1)*Gct)+1)-(oo.d>0?oo.d:lo.Math.floor((oo.a-1)*Gct)+1),co>fo+1?po:co0&&(xo=S9(xo,Yat(fo))),qtt(vo,xo))):poAo&&(Wo=0,Xo+=To+oo,To=0),ZI(xo,Wo,Xo),co=lo.Math.max(co,Wo+Io.a),To=lo.Math.max(To,Io.b),Wo+=Io.a+oo;return new Vl(co+oo,Xo+To+oo)}function c3e(ro,oo){var co,fo,po,vo,xo,Eo,To;if(!l_(ro))throw Cs(new Lv(ndt));if(fo=l_(ro),vo=fo.g,po=fo.f,vo<=0&&po<=0)return nu(),gy;switch(Eo=ro.i,To=ro.j,oo.g){case 2:case 1:if(Eo<0)return nu(),l1;if(Eo+ro.g>vo)return nu(),p1;break;case 4:case 3:if(To<0)return nu(),s1;if(To+ro.f>po)return nu(),z1}return xo=(Eo+ro.g/2)/vo,co=(To+ro.f/2)/po,xo+co<=1&&xo-co<=0?(nu(),l1):xo+co>=1&&xo-co>=0?(nu(),p1):co<.5?(nu(),s1):(nu(),z1)}function OGt(ro,oo,co,fo,po){var vo,xo;if(vo=tv(vm(oo[0],_v),vm(fo[0],_v)),ro[0]=s0(vo),vo=qC(vo,32),co>=po){for(xo=1;xo0&&(po.b[xo++]=0,po.b[xo++]=vo.b[0]-1),oo=1;oo0&&(_z(To,To.d-po.d),po.c==(VS(),z3)&&Ebe(To,To.a-po.d),To.d<=0&&To.i>0&&Mp(oo,To,oo.c.b,oo.c)));for(vo=new _s(ro.f);vo.a0&&(uD(Eo,Eo.i-po.d),po.c==(VS(),z3)&&fK(Eo,Eo.b-po.d),Eo.i<=0&&Eo.d>0&&Mp(co,Eo,co.c.b,co.c)))}function MGt(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo;for(Hu(),Up(ro,new Oie),xo=gH(ro),Xo=new Zl,Wo=new Zl,Eo=null,To=0;xo.b!=0;)vo=bo(xo.b==0?null:(T1(xo.b!=0),hx(xo,xo.a.a)),163),!Eo||H2(Eo)*Ow(Eo)/21&&(To>H2(Eo)*Ow(Eo)/2||xo.b==0)&&(Fo=new KX(Wo),Io=H2(Eo)/Ow(Eo),Ao=Ihe(Fo,oo,new c8,co,fo,po,Io),G0(zS(Fo.e),Ao),Eo=Fo,Ju(Xo.c,Fo),To=0,Wo.c.length=0));return sm(Xo,Wo),Xo}function jy(ro,oo,co,fo,po){a5();var vo,xo,Eo,To,Ao,Io,Fo;if(Zxe(ro,"src"),Zxe(co,"dest"),Fo=Nw(ro),To=Nw(co),vxe((Fo.i&4)!=0,"srcType is not an array"),vxe((To.i&4)!=0,"destType is not an array"),Io=Fo.c,xo=To.c,vxe(Io.i&1?Io==xo:(xo.i&1)==0,"Array types don't match"),wOt(ro,oo,co,fo,po),!(Io.i&1)&&Fo!=To)if(Ao=yT(ro),vo=yT(co),$a(ro)===$a(co)&&oofo;)Np(vo,Eo,Ao[--oo]);else for(Eo=fo+po;fo0),fo.a.Xb(fo.c=--fo.b),Fo>Wo+To&&Iw(fo);for(xo=new _s(Xo);xo.a0),fo.a.Xb(fo.c=--fo.b)}}function LGt(){H0();var ro,oo,co,fo,po,vo;if(dbe)return dbe;for(ro=new jw(4),J$(ro,T3(bpe,!0)),mB(ro,T3("M",!0)),mB(ro,T3("C",!0)),vo=new jw(4),fo=0;fo<11;fo++)Uy(vo,fo,fo);return oo=new jw(4),J$(oo,T3("M",!0)),Uy(oo,4448,4607),Uy(oo,65438,65439),po=new KD(2),OT(po,ro),OT(po,aP),co=new KD(2),co.Jm(VY(vo,T3("L",!0))),co.Jm(oo),co=new R$(3,co),co=new Qxe(po,co),dbe=co,dbe}function Z$(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao;for(co=new RegExp(oo,"g"),To=Al(uu,Yl,2,0,6,1),fo=0,Ao=ro,vo=null;;)if(Eo=co.exec(Ao),Eo==null||Ao==""){To[fo]=Ao;break}else xo=Eo.index,To[fo]=(Bm(0,xo,Ao.length),Ao.substr(0,xo)),Ao=lx(Ao,xo+Eo[0].length,Ao.length),co.lastIndex=0,vo==Ao&&(To[fo]=(Bm(0,1,Ao.length),Ao.substr(0,1)),Ao=(o1(1,Ao.length+1),Ao.substr(1))),vo=Ao,++fo;if(ro.length>0){for(po=To.length;po>0&&To[po-1]=="";)--po;po0&&(Fo-=fo[0]+ro.c,fo[0]+=ro.c),fo[2]>0&&(Fo-=fo[2]+ro.c),fo[1]=lo.Math.max(fo[1],Fo),KY(ro.a[1],co.c+oo.b+fo[0]-(fo[1]-Fo)/2,fo[1]);for(vo=ro.a,Eo=0,Ao=vo.length;Eo0?(ro.n.c.length-1)*ro.i:0,fo=new _s(ro.n);fo.a1)for(fo=G1(po,0);fo.b!=fo.d.c;)for(co=bo(q1(fo),235),vo=0,To=new _s(co.e);To.a0&&(oo[0]+=ro.c,Fo-=oo[0]),oo[2]>0&&(Fo-=oo[2]+ro.c),oo[1]=lo.Math.max(oo[1],Fo),YY(ro.a[1],fo.d+co.d+oo[0]-(oo[1]-Fo)/2,oo[1]);else for(Zo=fo.d+co.d,Xo=fo.a-co.d-co.a,xo=ro.a,To=0,Io=xo.length;To0||u6(po.b.d,ro.b.d+ro.b.a)==0&&fo.b<0||u6(po.b.d+po.b.a,ro.b.d)==0&&fo.b>0){Eo=0;break}}else Eo=lo.Math.min(Eo,Dit(ro,po,fo));Eo=lo.Math.min(Eo,Hat(ro,vo,Eo,fo))}return Eo}function Wq(ro,oo){var co,fo,po,vo,xo,Eo,To;if(ro.b<2)throw Cs(new i1("The vector chain must contain at least a source and a target point."));for(po=(T1(ro.b!=0),bo(ro.a.a.c,8)),nH(oo,po.a,po.b),To=new _8((!oo.a&&(oo.a=new Qp(tx,oo,5)),oo.a)),xo=G1(ro,1);xo.a=0&&vo!=co))throw Cs(new i1(CV));for(po=0,To=0;Tona(a_(xo.g,xo.d[0]).a)?(T1(To.b>0),To.a.Xb(To.c=--To.b),S$(To,xo),po=!0):Eo.e&&Eo.e.gc()>0&&(vo=(!Eo.e&&(Eo.e=new Zl),Eo.e).Mc(oo),Ao=(!Eo.e&&(Eo.e=new Zl),Eo.e).Mc(co),(vo||Ao)&&((!Eo.e&&(Eo.e=new Zl),Eo.e).Fc(xo),++xo.c));po||Ju(fo.c,xo)}function qGt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs;return Fo=ro.a.i+ro.a.g/2,Wo=ro.a.i+ro.a.g/2,Zo=oo.i+oo.g/2,Ss=oo.j+oo.f/2,Eo=new Vl(Zo,Ss),Ao=bo(zl(oo,($0(),PR)),8),Ao.a=Ao.a+Fo,Ao.b=Ao.b+Wo,vo=(Eo.b-Ao.b)/(Eo.a-Ao.a),fo=Eo.b-vo*Eo.a,ws=co.i+co.g/2,Rs=co.j+co.f/2,To=new Vl(ws,Rs),Io=bo(zl(co,PR),8),Io.a=Io.a+Fo,Io.b=Io.b+Wo,xo=(To.b-Io.b)/(To.a-Io.a),po=To.b-xo*To.a,Xo=(fo-po)/(xo-vo),Ao.a>>0,"0"+oo.toString(16)),fo="\\x"+lx(co,co.length-2,co.length)):ro>=hv?(co=(oo=ro>>>0,"0"+oo.toString(16)),fo="\\v"+lx(co,co.length-6,co.length)):fo=""+String.fromCharCode(ro&em)}return fo}function Wat(ro){var oo,co,fo;if(u9(bo(bs(ro,(ou(),Pp)),101)))for(co=new _s(ro.j);co.a=oo.o&&co.f<=oo.f||oo.a*.5<=co.f&&oo.a*1.5>=co.f){if(xo=bo(cu(oo.n,oo.n.c.length-1),209),xo.e+xo.d+co.g+po<=fo&&(vo=bo(cu(oo.n,oo.n.c.length-1),209),vo.f-ro.f+co.f<=ro.b||ro.a.c.length==1))return ske(oo,co),!0;if(oo.s+co.g<=fo&&(oo.t+oo.d+co.f+po<=ro.b||ro.a.c.length==1))return Jl(oo.b,co),Eo=bo(cu(oo.n,oo.n.c.length-1),209),Jl(oo.n,new bX(oo.s,Eo.f+Eo.a+oo.i,oo.i)),jke(bo(cu(oo.n,oo.n.c.length-1),209),co),jat(oo,co),!0}return!1}function Kat(ro,oo,co){var fo,po,vo,xo;return ro.Pj()?(po=null,vo=ro.Qj(),fo=ro.Ij(1,xo=Kue(ro,oo,co),co,oo,vo),ro.Mj()&&!(ro.Yi()&&xo!=null?U0(xo,co):$a(xo)===$a(co))?(xo!=null&&(po=ro.Oj(xo,po)),po=ro.Nj(co,po),ro.Tj()&&(po=ro.Wj(xo,co,po)),po?(po.nj(fo),po.oj()):ro.Jj(fo)):(ro.Tj()&&(po=ro.Wj(xo,co,po)),po?(po.nj(fo),po.oj()):ro.Jj(fo)),xo):(xo=Kue(ro,oo,co),ro.Mj()&&!(ro.Yi()&&xo!=null?U0(xo,co):$a(xo)===$a(co))&&(po=null,xo!=null&&(po=ro.Oj(xo,null)),po=ro.Nj(co,po),po&&po.oj()),xo)}function XGt(ro,oo){var co,fo,po,vo,xo;if(oo.Ug("Path-Like Graph Wrapping",1),ro.b.c.length==0){oo.Vg();return}if(po=new m4e(ro),xo=(po.i==null&&(po.i=aEe(po,new e8)),na(po.i)*po.f),co=xo/(po.i==null&&(po.i=aEe(po,new e8)),na(po.i)),po.b>co){oo.Vg();return}switch(bo(bs(ro,(ou(),pme)),351).g){case 2:vo=new MP;break;case 0:vo=new EW;break;default:vo=new CW}if(fo=vo.og(ro,po),!vo.pg())switch(bo(bs(ro,ate),352).g){case 2:fo=Lit(po,fo);break;case 1:fo=Trt(po,fo)}GWt(ro,po,fo),oo.Vg()}function uB(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao;oo%=24,ro.q.getHours()!=oo&&(fo=new lo.Date(ro.q.getTime()),fo.setDate(fo.getDate()+1),Eo=ro.q.getTimezoneOffset()-fo.getTimezoneOffset(),Eo>0&&(To=Eo/60|0,Ao=Eo%60,po=ro.q.getDate(),co=ro.q.getHours(),co+To>=24&&++po,vo=new lo.Date(ro.q.getFullYear(),ro.q.getMonth(),po,oo+To,ro.q.getMinutes()+Ao,ro.q.getSeconds(),ro.q.getMilliseconds()),ro.q.setTime(vo.getTime()))),xo=ro.q.getTime(),ro.q.setTime(xo+36e5),ro.q.getHours()!=oo&&ro.q.setTime(xo)}function QGt(ro,oo){var co,fo,po,vo;if(uAt(ro.d,ro.e),ro.c.a.$b(),na(Tl(bs(oo.j,(ou(),Yee))))!=0||na(Tl(bs(oo.j,Yee)))!=0)for(co=Y9,$a(bs(oo.j,GE))!==$a((Q_(),I4))&&Fl(oo.j,(Wl(),F3),(_f(),!0)),vo=bo(bs(oo.j,mF),17).a,po=0;popo&&++Ao,Jl(xo,(qu(Eo+Ao,oo.c.length),bo(oo.c[Eo+Ao],17))),To+=(qu(Eo+Ao,oo.c.length),bo(oo.c[Eo+Ao],17)).a-fo,++co;co=Ss&&ro.e[To.p]>Zo*ro.b||zs>=co*Ss)&&(Ju(Wo.c,Eo),Eo=new Zl,Fm(xo,vo),vo.a.$b(),Ao-=Io,Xo=lo.Math.max(Xo,Ao*ro.b+ws),Ao+=zs,Ls=zs,zs=0,Io=0,ws=0);return new fm(Xo,Wo)}function mhe(ro){var oo,co,fo,po,vo,xo,Eo;if(!ro.d){if(Eo=new Jie,oo=tP,vo=oo.a.zc(ro,oo),vo==null){for(fo=new g1(Yv(ro));fo.e!=fo.i.gc();)co=bo(k1(fo),29),Bp(Eo,mhe(co));oo.a.Bc(ro)!=null,oo.a.gc()==0}for(xo=Eo.i,po=(!ro.q&&(ro.q=new Bl(eS,ro,11,10)),new g1(ro.q));po.e!=po.i.gc();++xo)bo(k1(po),411);Bp(Eo,(!ro.q&&(ro.q=new Bl(eS,ro,11,10)),ro.q)),F$(Eo),ro.d=new c9((bo(Gs(Ml((c3(),_d).o),9),19),Eo.i),Eo.g),ro.e=bo(Eo.g,688),ro.e==null&&(ro.e=Qxt),mw(ro).b&=-17}return ro.d}function tN(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao;if(Ao=w2(ro.e.Dh(),oo),To=0,po=bo(ro.g,124),vv(),bo(oo,69).xk()){for(xo=0;xo1||Zo==-1)if(Fo=bo(ws,71),Wo=bo(Io,71),Fo.dc())Wo.$b();else for(xo=!!bv(oo),vo=0,Eo=ro.a?Fo.Kc():Fo.Ii();Eo.Ob();)Ao=bo(Eo.Pb(),58),po=bo(p_(ro,Ao),58),po?(xo?(To=Wo.dd(po),To==-1?Wo.Gi(vo,po):vo!=To&&Wo.Ui(vo,po)):Wo.Gi(vo,po),++vo):ro.b&&!xo&&(Wo.Gi(vo,Ao),++vo);else ws==null?Io.Wb(null):(po=p_(ro,ws),po==null?ro.b&&!bv(oo)&&Io.Wb(ws):Io.Wb(po))}function nWt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao;for(co=new aW,po=new x1(E1(Sm(oo).a.Kc(),new ko));W1(po);)if(fo=bo(R1(po),18),!dv(fo)&&(Eo=fo.c.i,S5e(Eo,cee))){if(Ao=z4e(ro,Eo,cee,lee),Ao==-1)continue;co.b=lo.Math.max(co.b,Ao),!co.a&&(co.a=new Zl),Jl(co.a,Eo)}for(xo=new x1(E1(Wp(oo).a.Kc(),new ko));W1(xo);)if(vo=bo(R1(xo),18),!dv(vo)&&(To=vo.d.i,S5e(To,lee))){if(Ao=z4e(ro,To,lee,cee),Ao==-1)continue;co.d=lo.Math.max(co.d,Ao),!co.c&&(co.c=new Zl),Jl(co.c,To)}return co}function rWt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io;if(co.d.i!=oo.i){for(po=new k5(ro),_E(po,(a1(),km)),Fl(po,(Wl(),Z0),co),Fl(po,(ou(),Pp),(Im(),n2)),Ju(fo.c,po),xo=new Py,uy(xo,po),hm(xo,(nu(),l1)),Eo=new Py,uy(Eo,po),hm(Eo,p1),Io=co.d,Om(co,xo),vo=new QC,Qv(vo,co),Fl(vo,Hv,null),ev(vo,Eo),Om(vo,Io),Ao=new Lm(co.b,0);Ao.b1e6)throw Cs(new kK("power of ten too big"));if(ro<=q0)return j8(Bq(xR[1],oo),oo);for(fo=Bq(xR[1],q0),po=fo,co=Ty(ro-q0),oo=dm(ro%q0);Iy(co,q0)>0;)po=S9(po,fo),co=jx(co,q0);for(po=S9(po,Bq(xR[1],oo)),po=j8(po,q0),co=Ty(ro-q0);Iy(co,q0)>0;)po=j8(po,q0),co=jx(co,q0);return po=j8(po,oo),po}function Xat(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io;for(To=new _s(ro.a);To.aAo&&fo>Ao)Io=Eo,Ao=na(oo.p[Eo.p])+na(oo.d[Eo.p])+Eo.o.b+Eo.d.a;else{po=!1,co._g()&&co.bh("bk node placement breaks on "+Eo+" which should have been after "+Io);break}if(!po)break}return co._g()&&co.bh(oo+" is feasible: "+po),po}function h3e(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo,Wo;if(vo=new k5(ro),_E(vo,(a1(),Zy)),Fl(vo,(ou(),Pp),(Im(),n2)),po=0,oo){for(xo=new Py,Fl(xo,(Wl(),Z0),oo),Fl(vo,Z0,oo.i),hm(xo,(nu(),l1)),uy(xo,vo),Wo=X_(oo.e),Ao=Wo,Io=0,Fo=Ao.length;Io0){if(po<0&&Io.a&&(po=To,vo=Ao[0],fo=0),po>=0){if(Eo=Io.b,To==po&&(Eo-=fo++,Eo==0))return 0;if(!ect(oo,Ao,Io,Eo,xo)){To=po-1,Ao[0]=vo;continue}}else if(po=-1,!ect(oo,Ao,Io,0,xo))return 0}else{if(po=-1,Um(Io.c,0)==32){if(Fo=Ao[0],WQe(oo,Ao),Ao[0]>Fo)continue}else if(V6t(oo,Io.c,Ao[0])){Ao[0]+=Io.c.length;continue}return 0}return UKt(xo,co)?Ao[0]:0}function cWt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;for(Io=new QY(new RDe(co)),Eo=Al(kw,jE,28,ro.f.e.c.length,16,1),Yxe(Eo,Eo.length),co[oo.a]=0,Ao=new _s(ro.f.e);Ao.a=0&&!I9(ro,Io,Fo);)--Fo;po[Io]=Fo}for(Xo=0;Xo=0&&!I9(ro,Eo,Zo);)--Eo;vo[Zo]=Eo}for(To=0;Tooo[Wo]&&Wofo[To]&&wZ(ro,To,Wo,!1,!0)}function p3e(ro){var oo,co,fo,po,vo,xo,Eo,To;co=lu(au(bs(ro,(vS(),K0t)))),vo=ro.a.c.d,Eo=ro.a.d.d,co?(xo=G_(mm(new Vl(Eo.a,Eo.b),vo),.5),To=G_(Pm(ro.e),.5),oo=mm(G0(new Vl(vo.a,vo.b),xo),To),Swe(ro.d,oo)):(po=na(Tl(bs(ro.a,rpt))),fo=ro.d,vo.a>=Eo.a?vo.b>=Eo.b?(fo.a=Eo.a+(vo.a-Eo.a)/2+po,fo.b=Eo.b+(vo.b-Eo.b)/2-po-ro.e.b):(fo.a=Eo.a+(vo.a-Eo.a)/2+po,fo.b=vo.b+(Eo.b-vo.b)/2+po):vo.b>=Eo.b?(fo.a=vo.a+(Eo.a-vo.a)/2+po,fo.b=Eo.b+(vo.b-Eo.b)/2+po):(fo.a=vo.a+(Eo.a-vo.a)/2+po,fo.b=vo.b+(Eo.b-vo.b)/2-po-ro.e.b))}function dB(ro){var oo,co,fo,po,vo,xo,Eo,To;if(!ro.f){if(To=new ZM,Eo=new ZM,oo=tP,xo=oo.a.zc(ro,oo),xo==null){for(vo=new g1(Yv(ro));vo.e!=vo.i.gc();)po=bo(k1(vo),29),Bp(To,dB(po));oo.a.Bc(ro)!=null,oo.a.gc()==0}for(fo=(!ro.s&&(ro.s=new Bl(L2,ro,21,17)),new g1(ro.s));fo.e!=fo.i.gc();)co=bo(k1(fo),179),Hs(co,102)&&Y1(Eo,bo(co,19));F$(Eo),ro.r=new NGe(ro,(bo(Gs(Ml((c3(),_d).o),6),19),Eo.i),Eo.g),Bp(To,ro.r),F$(To),ro.f=new c9((bo(Gs(Ml(_d.o),5),19),To.i),To.g),mw(ro).b&=-3}return ro.f}function Zat(ro){IC(ro,new RT(AC(TC($C(CC(new W5,LT),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new Z2))),Xl(ro,LT,R1e,iu(BAe)),Xl(ro,LT,O1e,iu(Qpe)),Xl(ro,LT,pR,iu(N0t)),Xl(ro,LT,_6,iu(LAe)),Xl(ro,LT,nTe,iu(B0t)),Xl(ro,LT,rTe,iu(L0t)),Xl(ro,LT,tTe,iu(F0t)),Xl(ro,LT,iTe,iu(D0t)),Xl(ro,LT,fTe,iu(M0t)),Xl(ro,LT,dTe,iu(Xpe)),Xl(ro,LT,hTe,iu(DAe)),Xl(ro,LT,pTe,iu(tee))}function EZ(){EZ=qo,rMe=As($s(Rx,1),nE,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Cxt=new RegExp(`[ -\r\f]+`);try{ZF=As($s(GXt,1),Xu,2114,0,[new Cz((q2e(),RQ("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",uH((EK(),EK(),KB))))),new Cz(RQ("yyyy-MM-dd'T'HH:mm:ss'.'SSS",uH(KB))),new Cz(RQ("yyyy-MM-dd'T'HH:mm:ss",uH(KB))),new Cz(RQ("yyyy-MM-dd'T'HH:mm",uH(KB))),new Cz(RQ("yyyy-MM-dd",uH(KB)))])}catch(ro){if(ro=$p(ro),!Hs(ro,82))throw Cs(ro)}}function fWt(ro,oo){var co,fo,po,vo;if(po=yw(ro.d,1)!=0,fo=K4e(ro,oo),fo==0&&lu(au(bs(oo.j,(Wl(),F3)))))return 0;!lu(au(bs(oo.j,(Wl(),F3))))&&!lu(au(bs(oo.j,p7)))||$a(bs(oo.j,(ou(),GE)))===$a((Q_(),I4))?oo.c.mg(oo.e,po):po=lu(au(bs(oo.j,F3))),zq(ro,oo,po,!0),lu(au(bs(oo.j,p7)))&&Fl(oo.j,p7,(_f(),!1)),lu(au(bs(oo.j,F3)))&&(Fl(oo.j,F3,(_f(),!1)),Fl(oo.j,p7,!0)),co=K4e(ro,oo);do{if(oEe(ro),co==0)return 0;po=!po,vo=co,zq(ro,oo,po,!1),co=K4e(ro,oo)}while(vo>co);return vo}function Jat(ro,oo){var co,fo,po,vo;if(po=yw(ro.d,1)!=0,fo=iZ(ro,oo),fo==0&&lu(au(bs(oo.j,(Wl(),F3)))))return 0;!lu(au(bs(oo.j,(Wl(),F3))))&&!lu(au(bs(oo.j,p7)))||$a(bs(oo.j,(ou(),GE)))===$a((Q_(),I4))?oo.c.mg(oo.e,po):po=lu(au(bs(oo.j,F3))),zq(ro,oo,po,!0),lu(au(bs(oo.j,p7)))&&Fl(oo.j,p7,(_f(),!1)),lu(au(bs(oo.j,F3)))&&(Fl(oo.j,F3,(_f(),!1)),Fl(oo.j,p7,!0)),co=iZ(ro,oo);do{if(oEe(ro),co==0)return 0;po=!po,vo=co,zq(ro,oo,po,!1),co=iZ(ro,oo)}while(vo>co);return vo}function g3e(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo,Wo;return To=mm(new Vl(co.a,co.b),ro),Ao=To.a*oo.b-To.b*oo.a,Io=oo.a*fo.b-oo.b*fo.a,Fo=(To.a*fo.b-To.b*fo.a)/Io,Wo=Ao/Io,Io==0?Ao==0?(po=G0(new Vl(co.a,co.b),G_(new Vl(fo.a,fo.b),.5)),vo=p3(ro,po),xo=p3(G0(new Vl(ro.a,ro.b),oo),po),Eo=lo.Math.sqrt(fo.a*fo.a+fo.b*fo.b)*.5,vo=0&&Fo<=1&&Wo>=0&&Wo<=1?G0(new Vl(ro.a,ro.b),G_(new Vl(oo.a,oo.b),Fo)):null}function dWt(ro,oo,co){var fo,po,vo,xo,Eo;if(fo=bo(bs(ro,(ou(),tme)),21),co.a>oo.a&&(fo.Hc((AT(),BF))?ro.c.a+=(co.a-oo.a)/2:fo.Hc(FF)&&(ro.c.a+=co.a-oo.a)),co.b>oo.b&&(fo.Hc((AT(),jF))?ro.c.b+=(co.b-oo.b)/2:fo.Hc(PF)&&(ro.c.b+=co.b-oo.b)),bo(bs(ro,(Wl(),Jy)),21).Hc((Sv(),Tx))&&(co.a>oo.a||co.b>oo.b))for(Eo=new _s(ro.a);Eo.aoo.a&&(fo.Hc((AT(),BF))?ro.c.a+=(co.a-oo.a)/2:fo.Hc(FF)&&(ro.c.a+=co.a-oo.a)),co.b>oo.b&&(fo.Hc((AT(),jF))?ro.c.b+=(co.b-oo.b)/2:fo.Hc(PF)&&(ro.c.b+=co.b-oo.b)),bo(bs(ro,(Wl(),Jy)),21).Hc((Sv(),Tx))&&(co.a>oo.a||co.b>oo.b))for(xo=new _s(ro.a);xo.a0?ro.i:0)>oo&&To>0&&(vo=0,xo+=To+ro.i,po=lo.Math.max(po,Wo),fo+=To+ro.i,To=0,Wo=0,co&&(++Fo,Jl(ro.n,new bX(ro.s,xo,ro.i))),Eo=0),Wo+=Ao.g+(Eo>0?ro.i:0),To=lo.Math.max(To,Ao.f),co&&jke(bo(cu(ro.n,Fo),209),Ao),vo+=Ao.g+(Eo>0?ro.i:0),++Eo;return po=lo.Math.max(po,Wo),fo+=To,co&&(ro.r=po,ro.d=fo,Vke(ro.j)),new ax(ro.s,ro.t,po,fo)}function vhe(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;for(ro.b=!1,Fo=Tp,To=am,Wo=Tp,Ao=am,fo=ro.e.a.ec().Kc();fo.Ob();)for(co=bo(fo.Pb(),272),po=co.a,Fo=lo.Math.min(Fo,po.c),To=lo.Math.max(To,po.c+po.b),Wo=lo.Math.min(Wo,po.d),Ao=lo.Math.max(Ao,po.d+po.a),xo=new _s(co.c);xo.aro.o.a&&(Io=(To-ro.o.a)/2,Eo.b=lo.Math.max(Eo.b,Io),Eo.c=lo.Math.max(Eo.c,Io))}}function mWt(ro){var oo,co,fo,po,vo,xo,Eo,To;for(vo=new PKe,WEt(vo,(W8(),pwt)),fo=(po=cfe(ro,Al(uu,Yl,2,0,6,1)),new EE(new ew(new lle(ro,po).b)));fo.bEo?1:-1:MEe(ro.a,oo.a,vo),po==-1)Fo=-To,Io=xo==To?Mue(oo.a,Eo,ro.a,vo):Lue(oo.a,Eo,ro.a,vo);else if(Fo=xo,xo==To){if(po==0)return J_(),XB;Io=Mue(ro.a,vo,oo.a,Eo)}else Io=Lue(ro.a,vo,oo.a,Eo);return Ao=new dT(Fo,Io.length,Io),mL(Ao),Ao}function vWt(ro,oo){var co,fo,po,vo;if(vo=Lat(oo),!oo.c&&(oo.c=new Bl(fw,oo,9,9)),zp(new Ou(null,(!oo.c&&(oo.c=new Bl(fw,oo,9,9)),new Du(oo.c,16))),new MDe(vo)),po=bo(bs(vo,(Wl(),Jy)),21),cKt(oo,po),po.Hc((Sv(),Tx)))for(fo=new g1((!oo.c&&(oo.c=new Bl(fw,oo,9,9)),oo.c));fo.e!=fo.i.gc();)co=bo(k1(fo),123),FKt(ro,oo,vo,co);return bo(zl(oo,(ou(),XT)),181).gc()!=0&&$st(oo,vo),lu(au(bs(vo,B8e)))&&po.Fc(jee),gp(vo,iG)&&$Pe(new vke(na(Tl(bs(vo,iG)))),vo),$a(zl(oo,xA))===$a((x5(),B4))?lXt(ro,oo,vo):WYt(ro,oo,vo),vo}function bWt(ro){var oo,co,fo,po,vo,xo,Eo,To;for(po=new _s(ro.b);po.a0?lx(co.a,0,vo-1):""):(Bm(0,vo-1,ro.length),ro.substr(0,vo-1)):co?co.a:ro}function yWt(ro,oo){var co,fo,po,vo,xo,Eo,To;for(oo.Ug("Sort By Input Model "+bs(ro,(ou(),GE)),1),po=0,fo=new _s(ro.b);fo.a=ro.b.length?(vo[po++]=xo.b[fo++],vo[po++]=xo.b[fo++]):fo>=xo.b.length?(vo[po++]=ro.b[co++],vo[po++]=ro.b[co++]):xo.b[fo]0?ro.i:0)),++oo;for(eke(ro.n,To),ro.d=co,ro.r=fo,ro.g=0,ro.f=0,ro.e=0,ro.o=Tp,ro.p=Tp,vo=new _s(ro.b);vo.a0&&(po=(!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),bo(Gs(ro.n,0),135)).a,!po||S0(S0((oo.a+=' "',oo),po),'"'))),co=(!ro.b&&(ro.b=new Wu(D1,ro,4,7)),!(ro.b.i<=1&&(!ro.c&&(ro.c=new Wu(D1,ro,5,8)),ro.c.i<=1))),co?oo.a+=" [":oo.a+=" ",S0(oo,lwe(new tle,new g1(ro.b))),co&&(oo.a+="]"),oo.a+=F1e,co&&(oo.a+="["),S0(oo,lwe(new tle,new g1(ro.c))),co&&(oo.a+="]"),oo.a)}function xWt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu;for(Nl=ro.c,Hl=oo.c,co=Xv(Nl.a,ro,0),fo=Xv(Hl.a,oo,0),zs=bo(f6(ro,(xv(),lw)).Kc().Pb(),12),Eu=bo(f6(ro,u2).Kc().Pb(),12),Ys=bo(f6(oo,lw).Kc().Pb(),12),Yu=bo(f6(oo,u2).Kc().Pb(),12),Rs=X_(zs.e),ru=X_(Eu.g),Ls=X_(Ys.e),ku=X_(Yu.g),q$(ro,fo,Hl),xo=Ls,Io=0,Zo=xo.length;IoIo?new gT((VS(),AA),co,oo,Ao-Io):Ao>0&&Io>0&&(new gT((VS(),AA),oo,co,0),new gT(AA,co,oo,0))),xo)}function EWt(ro,oo,co){var fo,po,vo;for(ro.a=new Zl,vo=G1(oo.b,0);vo.b!=vo.d.c;){for(po=bo(q1(vo),40);bo(bs(po,(by(),pE)),17).a>ro.a.c.length-1;)Jl(ro.a,new fm(Y9,QCe));fo=bo(bs(po,pE),17).a,co==(_g(),qv)||co==ey?(po.e.ana(Tl(bo(cu(ro.a,fo),42).b))&&kz(bo(cu(ro.a,fo),42),po.e.a+po.f.a)):(po.e.bna(Tl(bo(cu(ro.a,fo),42).b))&&kz(bo(cu(ro.a,fo),42),po.e.b+po.f.b))}}function nlt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io;if(vo=EQ(fo),Eo=lu(au(bs(fo,(ou(),O8e)))),(Eo||lu(au(bs(ro,ete))))&&!u9(bo(bs(ro,Pp),101)))po=Y8(vo),To=i3e(ro,co,co==(xv(),u2)?po:vq(po));else switch(To=new Py,uy(To,ro),oo?(Io=To.n,Io.a=oo.a-ro.n.a,Io.b=oo.b-ro.n.b,oit(Io,0,0,ro.o.a,ro.o.b),hm(To,_at(To,vo))):(po=Y8(vo),hm(To,co==(xv(),u2)?po:vq(po))),xo=bo(bs(fo,(Wl(),Jy)),21),Ao=To.j,vo.g){case 2:case 1:(Ao==(nu(),s1)||Ao==z1)&&xo.Fc((Sv(),f7));break;case 4:case 3:(Ao==(nu(),p1)||Ao==l1)&&xo.Fc((Sv(),f7))}return To}function rlt(ro,oo){var co,fo,po,vo,xo,Eo;for(xo=new ST(new su(ro.f.b).a);xo.b;){if(vo=a6(xo),po=bo(vo.ld(),602),oo==1){if(po.Af()!=(_g(),Cx)&&po.Af()!=A_)continue}else if(po.Af()!=(_g(),qv)&&po.Af()!=ey)continue;switch(fo=bo(bo(vo.md(),42).b,86),Eo=bo(bo(vo.md(),42).a,194),co=Eo.c,po.Af().g){case 2:fo.g.c=ro.e.a,fo.g.b=lo.Math.max(1,fo.g.b+co);break;case 1:fo.g.c=fo.g.c+co,fo.g.b=lo.Math.max(1,fo.g.b-co);break;case 4:fo.g.d=ro.e.b,fo.g.a=lo.Math.max(1,fo.g.a+co);break;case 3:fo.g.d=fo.g.d+co,fo.g.a=lo.Math.max(1,fo.g.a-co)}}}function kWt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws;for(Eo=Al(Q1,E0,28,oo.b.c.length,15,1),Ao=Al(hge,Pl,273,oo.b.c.length,0,1),To=Al(VE,T4,10,oo.b.c.length,0,1),Fo=ro.a,Wo=0,Xo=Fo.length;Wo0&&To[fo]&&(Zo=p9(ro.b,To[fo],po)),ws=lo.Math.max(ws,po.c.c.b+Zo);for(vo=new _s(Io.e);vo.a1)throw Cs(new i1(IV));To||(vo=RE(oo,fo.Kc().Pb()),xo.Fc(vo))}return wEe(ro,z5e(ro,oo,co),xo)}function TZ(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;if(C5(ro.e,oo))To=(vv(),bo(oo,69).xk()?new PY(oo,ro):new eH(oo,ro)),sZ(To.c,To.b),YD(To,bo(co,16));else{for(Io=w2(ro.e.Dh(),oo),fo=bo(ro.g,124),xo=0;xo"}To!=null&&(oo.a+=""+To)}else ro.e?(Eo=ro.e.zb,Eo!=null&&(oo.a+=""+Eo)):(oo.a+="?",ro.b?(oo.a+=" super ",She(ro.b,oo)):ro.f&&(oo.a+=" extends ",She(ro.f,oo)))}function RWt(ro){ro.b=null,ro.a=null,ro.o=null,ro.q=null,ro.v=null,ro.w=null,ro.B=null,ro.p=null,ro.Q=null,ro.R=null,ro.S=null,ro.T=null,ro.U=null,ro.V=null,ro.W=null,ro.bb=null,ro.eb=null,ro.ab=null,ro.H=null,ro.db=null,ro.c=null,ro.d=null,ro.f=null,ro.n=null,ro.r=null,ro.s=null,ro.u=null,ro.G=null,ro.J=null,ro.e=null,ro.j=null,ro.i=null,ro.g=null,ro.k=null,ro.t=null,ro.F=null,ro.I=null,ro.L=null,ro.M=null,ro.O=null,ro.P=null,ro.$=null,ro.N=null,ro.Z=null,ro.cb=null,ro.K=null,ro.D=null,ro.A=null,ro.C=null,ro._=null,ro.fb=null,ro.X=null,ro.Y=null,ro.gb=!1,ro.hb=!1}function OWt(ro){var oo,co,fo,po;if(fo=Mhe((!ro.c&&(ro.c=RH(Ty(ro.f))),ro.c),0),ro.e==0||ro.a==0&&ro.f!=-1&&ro.e<0)return fo;if(oo=sEe(ro)<0?1:0,co=ro.e,po=(fo.length+1+lo.Math.abs(dm(ro.e)),new t9),oo==1&&(po.a+="-"),ro.e>0)if(co-=fo.length-oo,co>=0){for(po.a+="0.";co>VT.length;co-=VT.length)qGe(po,VT);CVe(po,VT,dm(co)),S0(po,(o1(oo,fo.length+1),fo.substr(oo)))}else co=oo-co,S0(po,lx(fo,oo,dm(co))),po.a+=".",S0(po,iSe(fo,dm(co)));else{for(S0(po,(o1(oo,fo.length+1),fo.substr(oo)));co<-VT.length;co+=VT.length)qGe(po,VT);CVe(po,VT,dm(-co))}return po.a}function _he(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao;return!(ro.k!=(a1(),Vp)||ro.j.c.length<=1||(vo=bo(bs(ro,(ou(),Pp)),101),vo==(Im(),n2))||(po=(H$(),(ro.q?ro.q:(Hu(),Hu(),HE))._b(z6)?fo=bo(bs(ro,z6),203):fo=bo(bs(zm(ro),pF),203),fo),po==fte)||!(po==x7||po==w7)&&(xo=na(Tl(z$(ro,gF))),oo=bo(bs(ro,sG),140),!oo&&(oo=new zwe(xo,xo,xo,xo)),Ao=hy(ro,(nu(),l1)),To=oo.d+oo.a+(Ao.gc()-1)*xo,To>ro.o.b||(co=hy(ro,p1),Eo=oo.d+oo.a+(co.gc()-1)*xo,Eo>ro.o.b)))}function IWt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss;oo.Ug("Orthogonal edge routing",1),Ao=na(Tl(bs(ro,(ou(),y7)))),co=na(Tl(bs(ro,v7))),fo=na(Tl(bs(ro,ZT))),Wo=new Gce(0,co),Ss=0,xo=new Lm(ro.b,0),Eo=null,Io=null,To=null,Fo=null;do Io=xo.b0?(Xo=(Zo-1)*co,Eo&&(Xo+=fo),Io&&(Xo+=fo),Xooo||lu(au(zl(To,(y_(),yG)))))&&(po=0,vo+=Io.b+co,Ju(Fo.c,Io),Io=new LSe(vo,co),fo=new kfe(0,Io.f,Io,co),JX(Io,fo),po=0),fo.b.c.length==0||!lu(au(zl(kp(To),(y_(),pve))))&&(To.f>=fo.o&&To.f<=fo.f||fo.a*.5<=To.f&&fo.a*1.5>=To.f)?ske(fo,To):(xo=new kfe(fo.s+fo.r+co,Io.f,Io,co),JX(Io,xo),ske(xo,To)),po=To.i+To.g;return Ju(Fo.c,Io),Fo}function pB(ro){var oo,co,fo,po;if(!(ro.b==null||ro.b.length<=2)&&!ro.a){for(oo=0,po=0;po=ro.b[po+1])po+=2;else if(co0)for(fo=new tw(bo(Q0(ro.a,vo),21)),Hu(),Up(fo,new nye(oo)),po=new Lm(vo.b,0);po.b0&&fo>=-6?fo>=0?rH(vo,co-dm(ro.e),"."):(pfe(vo,oo-1,oo-1,"0."),rH(vo,oo+1,zx(VT,0,-dm(fo)-1))):(co-oo>=1&&(rH(vo,oo,"."),++co),rH(vo,co,"E"),fo>0&&rH(vo,++co,"+"),rH(vo,++co,""+aL(Ty(fo)))),ro.g=vo.a,ro.g))}function HWt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru;fo=na(Tl(bs(oo,(ou(),M8e)))),Nl=bo(bs(oo,mF),17).a,Wo=4,po=3,Hl=20/Nl,Xo=!1,To=0,xo=q0;do{for(vo=To!=1,Fo=To!=0,ru=0,Ss=ro.a,Ls=0,Ys=Ss.length;LsNl)?(To=2,xo=q0):To==0?(To=1,xo=ru):(To=0,xo=ru)):(Xo=ru>=xo||xo-ru0?1:LC(isNaN(fo),isNaN(0)))>=0^(hS(lE),(lo.Math.abs(Eo)<=lE||Eo==0||isNaN(Eo)&&isNaN(0)?0:Eo<0?-1:Eo>0?1:LC(isNaN(Eo),isNaN(0)))>=0)?lo.Math.max(Eo,fo):(hS(lE),(lo.Math.abs(fo)<=lE||fo==0||isNaN(fo)&&isNaN(0)?0:fo<0?-1:fo>0?1:LC(isNaN(fo),isNaN(0)))>0?lo.Math.sqrt(Eo*Eo+fo*fo):-lo.Math.sqrt(Eo*Eo+fo*fo))}function OT(ro,oo){var co,fo,po,vo,xo,Eo;if(oo){if(!ro.a&&(ro.a=new SK),ro.e==2){xK(ro.a,oo);return}if(oo.e==1){for(po=0;po=hv?Av(co,oke(fo)):YO(co,fo&em),xo=new uue(10,null,0),TCt(ro.a,xo,Eo-1)):(co=(xo.Mm().length+vo,new SD),Av(co,xo.Mm())),oo.e==0?(fo=oo.Km(),fo>=hv?Av(co,oke(fo)):YO(co,fo&em)):Av(co,oo.Mm()),bo(xo,530).b=co.a}}function GWt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss;if(!co.dc()){for(Eo=0,Wo=0,fo=co.Kc(),Zo=bo(fo.Pb(),17).a;Eo1&&(To=Ao.Hg(To,ro.a,Eo));return To.c.length==1?bo(cu(To,To.c.length-1),238):To.c.length==2?MWt((qu(0,To.c.length),bo(To.c[0],238)),(qu(1,To.c.length),bo(To.c[1],238)),xo,vo):null}function XWt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;for(co.Ug("Find roots",1),ro.a.c.length=0,po=G1(oo.b,0);po.b!=po.d.c;)fo=bo(q1(po),40),fo.b.b==0&&(Fl(fo,(fp(),q3),(_f(),!0)),Jl(ro.a,fo));switch(ro.a.c.length){case 0:vo=new Efe(0,oo,"DUMMY_ROOT"),Fl(vo,(fp(),q3),(_f(),!0)),Fl(vo,Bme,!0),y0(oo.b,vo);break;case 1:break;default:for(xo=new Efe(0,oo,pJ),To=new _s(ro.a);To.a=lo.Math.abs(fo.b)?(fo.b=0,vo.d+vo.a>xo.d&&vo.dxo.c&&vo.c0){if(oo=new P2e(ro.i,ro.g),co=ro.i,vo=co<100?null:new e3(co),ro.Tj())for(fo=0;fo0){for(Eo=ro.g,Ao=ro.i,xL(ro),vo=Ao<100?null:new e3(Ao),fo=0;fo>13|(ro.m&15)<<9,po=ro.m>>4&8191,vo=ro.m>>17|(ro.h&255)<<5,xo=(ro.h&1048320)>>8,Eo=oo.l&8191,To=oo.l>>13|(oo.m&15)<<9,Ao=oo.m>>4&8191,Io=oo.m>>17|(oo.h&255)<<5,Fo=(oo.h&1048320)>>8,ku=co*Eo,Eu=fo*Eo,Yu=po*Eo,Qu=vo*Eo,b1=xo*Eo,To!=0&&(Eu+=co*To,Yu+=fo*To,Qu+=po*To,b1+=vo*To),Ao!=0&&(Yu+=co*Ao,Qu+=fo*Ao,b1+=po*Ao),Io!=0&&(Qu+=co*Io,b1+=fo*Io),Fo!=0&&(b1+=co*Fo),Xo=ku&xw,Zo=(Eu&511)<<13,Wo=Xo+Zo,Ss=ku>>22,Rs=Eu>>9,Ls=(Yu&262143)<<4,zs=(Qu&31)<<17,ws=Ss+Rs+Ls+zs,Nl=Yu>>18,Hl=Qu>>5,ru=(b1&4095)<<8,Ys=Nl+Hl+ru,ws+=Wo>>22,Wo&=xw,Ys+=ws>>22,ws&=xw,Ys&=A5,h2(Wo,ws,Ys)}function plt(ro){var oo,co,fo,po,vo,xo,Eo;if(Eo=bo(cu(ro.j,0),12),Eo.g.c.length!=0&&Eo.e.c.length!=0)throw Cs(new Lv("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(Eo.g.c.length!=0){for(vo=Tp,co=new _s(Eo.g);co.a4)if(ro.fk(oo)){if(ro.al()){if(po=bo(oo,54),fo=po.Eh(),To=fo==ro.e&&(ro.ml()?po.yh(po.Fh(),ro.il())==ro.jl():-1-po.Fh()==ro.Lj()),ro.nl()&&!To&&!fo&&po.Jh()){for(vo=0;vo0&&dit(ro,Eo,Fo);for(po=new _s(Fo);po.aro.d[xo.p]&&(co+=QSe(ro.b,vo)*bo(To.b,17).a,h3(ro.a,Ql(vo)));for(;!xD(ro.a);)O_e(ro.b,bo(O8(ro.a),17).a)}return co}function tUt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo;if(Io=bo(bs(ro,(Wl(),_y)),64),fo=bo(cu(ro.j,0),12),Io==(nu(),s1)?hm(fo,z1):Io==z1&&hm(fo,s1),bo(bs(oo,(ou(),XT)),181).Hc((Mw(),oC))){if(To=na(Tl(bs(ro,QN))),Ao=na(Tl(bs(ro,ZN))),xo=na(Tl(bs(ro,TA))),Eo=bo(bs(oo,EA),21),Eo.Hc((sw(),L5)))for(co=Ao,Fo=ro.o.a/2-fo.n.a,vo=new _s(fo.f);vo.a0&&(Ao=ro.n.a/vo);break;case 2:case 4:po=ro.i.o.b,po>0&&(Ao=ro.n.b/po)}Fl(ro,(Wl(),B6),Ao)}if(To=ro.o,xo=ro.a,fo)xo.a=fo.a,xo.b=fo.b,ro.d=!0;else if(oo!=O_&&oo!=U3&&Eo!=gy)switch(Eo.g){case 1:xo.a=To.a/2;break;case 2:xo.a=To.a,xo.b=To.b/2;break;case 3:xo.a=To.a/2,xo.b=To.b;break;case 4:xo.b=To.b/2}else xo.a=To.a/2,xo.b=To.b/2}function gB(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io;if(ro.Pj())if(Io=ro.Ej(),To=ro.Qj(),Io>0)if(oo=new uEe(ro.pj()),co=Io,vo=co<100?null:new e3(co),lH(ro,co,oo.g),po=co==1?ro.Ij(4,Gs(oo,0),null,0,To):ro.Ij(6,oo,null,-1,To),ro.Mj()){for(fo=new g1(oo);fo.e!=fo.i.gc();)vo=ro.Oj(k1(fo),vo);vo?(vo.nj(po),vo.oj()):ro.Jj(po)}else vo?(vo.nj(po),vo.oj()):ro.Jj(po);else lH(ro,ro.Ej(),ro.Fj()),ro.Jj(ro.Ij(6,(Hu(),cv),null,-1,To));else if(ro.Mj())if(Io=ro.Ej(),Io>0){for(Eo=ro.Fj(),Ao=Io,lH(ro,Io,Eo),vo=Ao<100?null:new e3(Ao),fo=0;fo1&&H2(xo)*Ow(xo)/2>Eo[0]){for(vo=0;voEo[vo];)++vo;Zo=new s4(ws,0,vo+1),Fo=new KX(Zo),Io=H2(xo)/Ow(xo),To=Ihe(Fo,oo,new c8,co,fo,po,Io),G0(zS(Fo.e),To),$8(GI(Wo,Fo),fN),Xo=new s4(ws,vo+1,ws.c.length),Kke(Wo,Xo),ws.c.length=0,Ao=0,sWe(Eo,Eo.length,0)}else Ss=Wo.b.c.length==0?null:cu(Wo.b,0),Ss!=null&&sfe(Wo,0),Ao>0&&(Eo[Ao]=Eo[Ao-1]),Eo[Ao]+=H2(xo)*Ow(xo),++Ao,Ju(ws.c,xo);return ws}function aUt(ro,oo){var co,fo,po,vo;co=oo.b,vo=new tw(co.j),po=0,fo=co.j,fo.c.length=0,VC(bo(xT(ro.b,(nu(),s1),(s6(),M6)),15),co),po=Sq(vo,po,new dre,fo),VC(bo(xT(ro.b,s1,B3),15),co),po=Sq(vo,po,new q5,fo),VC(bo(xT(ro.b,s1,N6),15),co),VC(bo(xT(ro.b,p1,M6),15),co),VC(bo(xT(ro.b,p1,B3),15),co),po=Sq(vo,po,new hre,fo),VC(bo(xT(ro.b,p1,N6),15),co),VC(bo(xT(ro.b,z1,M6),15),co),po=Sq(vo,po,new pre,fo),VC(bo(xT(ro.b,z1,B3),15),co),po=Sq(vo,po,new gre,fo),VC(bo(xT(ro.b,z1,N6),15),co),VC(bo(xT(ro.b,l1,M6),15),co),po=Sq(vo,po,new cre,fo),VC(bo(xT(ro.b,l1,B3),15),co),VC(bo(xT(ro.b,l1,N6),15),co)}function lUt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo;for(Eo=new _s(oo);Eo.a.5?Rs-=xo*2*(Zo-.5):Zo<.5&&(Rs+=vo*2*(.5-Zo)),po=Eo.d.b,RsSs.a-ws-Io&&(Rs=Ss.a-ws-Io),Eo.n.a=oo+Rs}}function dUt(ro){var oo,co,fo,po,vo;if(fo=bo(bs(ro,(ou(),_2)),171),fo==(yx(),P3)){for(co=new x1(E1(Sm(ro).a.Kc(),new ko));W1(co);)if(oo=bo(R1(co),18),!wXe(oo))throw Cs(new Q5(H1e+Eq(ro)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(fo==yA){for(vo=new x1(E1(Wp(ro).a.Kc(),new ko));W1(vo);)if(po=bo(R1(vo),18),!wXe(po))throw Cs(new Q5(H1e+Eq(ro)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function Yq(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo;if(ro.e&&ro.c.c>19&&(oo=kI(oo),To=!To),xo=Xzt(oo),vo=!1,po=!1,fo=!1,ro.h==oV&&ro.m==0&&ro.l==0)if(po=!0,vo=!0,xo==-1)ro=WHe((lI(),D$e)),fo=!0,To=!To;else return Eo=v4e(ro,xo),To&&_fe(Eo),co&&(N3=h2(0,0,0)),Eo;else ro.h>>19&&(vo=!0,ro=kI(ro),fo=!0,To=!To);return xo!=-1?kOt(ro,xo,To,vo,co):n5e(ro,oo)<0?(co&&(vo?N3=kI(ro):N3=h2(ro.l,ro.m,ro.h)),h2(0,0,0)):UVt(fo?ro:h2(ro.l,ro.m,ro.h),oo,To,vo,po,co)}function Che(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo;if(xo=ro.e,To=oo.e,xo==0)return oo;if(To==0)return ro;if(vo=ro.d,Eo=oo.d,vo+Eo==2)return co=vm(ro.a[0],_v),fo=vm(oo.a[0],_v),xo==To?(Io=tv(co,fo),Zo=s0(Io),Xo=s0(l3(Io,32)),Xo==0?new p5(xo,Zo):new dT(xo,2,As($s(Q1,1),E0,28,15,[Zo,Xo]))):(J_(),fY(xo<0?jx(fo,co):jx(co,fo),0)?x3(xo<0?jx(fo,co):jx(co,fo)):uL(x3(f4(xo<0?jx(fo,co):jx(co,fo)))));if(xo==To)Wo=xo,Fo=vo>=Eo?Lue(ro.a,vo,oo.a,Eo):Lue(oo.a,Eo,ro.a,vo);else{if(po=vo!=Eo?vo>Eo?1:-1:MEe(ro.a,oo.a,vo),po==0)return J_(),XB;po==1?(Wo=xo,Fo=Mue(ro.a,vo,oo.a,Eo)):(Wo=To,Fo=Mue(oo.a,Eo,ro.a,vo))}return Ao=new dT(Wo,Fo.length,Fo),mL(Ao),Ao}function pUt(ro,oo){var co,fo,po,vo,xo,Eo,To;if(!(ro.g>oo.f||oo.g>ro.f)){for(co=0,fo=0,xo=ro.w.a.ec().Kc();xo.Ob();)po=bo(xo.Pb(),12),Dfe(dy(As($s(_m,1),Yl,8,0,[po.i.n,po.n,po.a])).b,oo.g,oo.f)&&++co;for(Eo=ro.r.a.ec().Kc();Eo.Ob();)po=bo(Eo.Pb(),12),Dfe(dy(As($s(_m,1),Yl,8,0,[po.i.n,po.n,po.a])).b,oo.g,oo.f)&&--co;for(To=oo.w.a.ec().Kc();To.Ob();)po=bo(To.Pb(),12),Dfe(dy(As($s(_m,1),Yl,8,0,[po.i.n,po.n,po.a])).b,ro.g,ro.f)&&++fo;for(vo=oo.r.a.ec().Kc();vo.Ob();)po=bo(vo.Pb(),12),Dfe(dy(As($s(_m,1),Yl,8,0,[po.i.n,po.n,po.a])).b,ro.g,ro.f)&&--fo;co=0)return co;switch(YC(Fv(ro,co))){case 2:{if(Iu("",g4(ro,co.qk()).xe())){if(To=_H(Fv(ro,co)),Eo=ZO(Fv(ro,co)),Io=x4e(ro,oo,To,Eo),Io)return Io;for(po=Q4e(ro,oo),xo=0,Fo=po.gc();xo1)throw Cs(new i1(IV));for(Io=w2(ro.e.Dh(),oo),fo=bo(ro.g,124),xo=0;xo1,Ao=new d_(Wo.b);cy(Ao.a)||cy(Ao.b);)To=bo(cy(Ao.a)?Es(Ao.a):Es(Ao.b),18),Fo=To.c==Wo?To.d:To.c,lo.Math.abs(dy(As($s(_m,1),Yl,8,0,[Fo.i.n,Fo.n,Fo.a])).b-xo.b)>1&&tqt(ro,To,xo,vo,Wo)}}function wUt(ro){var oo,co,fo,po,vo,xo;if(po=new Lm(ro.e,0),fo=new Lm(ro.a,0),ro.d)for(co=0;coS0e;){for(vo=oo,xo=0;lo.Math.abs(oo-vo)0),po.a.Xb(po.c=--po.b),DGt(ro,ro.b-xo,vo,fo,po),T1(po.b0),fo.a.Xb(fo.c=--fo.b)}if(!ro.d)for(co=0;co0?(ro.f[Io.p]=Xo/(Io.e.c.length+Io.g.c.length),ro.c=lo.Math.min(ro.c,ro.f[Io.p]),ro.b=lo.Math.max(ro.b,ro.f[Io.p])):Eo&&(ro.f[Io.p]=Xo)}}function SUt(ro){ro.b=null,ro.bb=null,ro.fb=null,ro.qb=null,ro.a=null,ro.c=null,ro.d=null,ro.e=null,ro.f=null,ro.n=null,ro.M=null,ro.L=null,ro.Q=null,ro.R=null,ro.K=null,ro.db=null,ro.eb=null,ro.g=null,ro.i=null,ro.j=null,ro.k=null,ro.gb=null,ro.o=null,ro.p=null,ro.q=null,ro.r=null,ro.$=null,ro.ib=null,ro.S=null,ro.T=null,ro.t=null,ro.s=null,ro.u=null,ro.v=null,ro.w=null,ro.B=null,ro.A=null,ro.C=null,ro.D=null,ro.F=null,ro.G=null,ro.H=null,ro.I=null,ro.J=null,ro.P=null,ro.Z=null,ro.U=null,ro.V=null,ro.W=null,ro.X=null,ro.Y=null,ro._=null,ro.ab=null,ro.cb=null,ro.hb=null,ro.nb=null,ro.lb=null,ro.mb=null,ro.ob=null,ro.pb=null,ro.jb=null,ro.kb=null,ro.N=!1,ro.O=!1}function _Ut(ro,oo,co){var fo,po,vo,xo;for(co.Ug("Graph transformation ("+ro.a+")",1),xo=e6(oo.a),vo=new _s(oo.b);vo.a=Eo.b.c)&&(Eo.b=oo),(!Eo.c||oo.c<=Eo.c.c)&&(Eo.d=Eo.c,Eo.c=oo),(!Eo.e||oo.d>=Eo.e.d)&&(Eo.e=oo),(!Eo.f||oo.d<=Eo.f.d)&&(Eo.f=oo);return fo=new PQ((_I(),I6)),OH(ro,Opt,new ew(As($s(GV,1),Xu,382,0,[fo]))),xo=new PQ(hA),OH(ro,Rpt,new ew(As($s(GV,1),Xu,382,0,[xo]))),po=new PQ(dA),OH(ro,Apt,new ew(As($s(GV,1),Xu,382,0,[po]))),vo=new PQ(o7),OH(ro,$pt,new ew(As($s(GV,1),Xu,382,0,[vo]))),Zde(fo.c,I6),Zde(po.c,dA),Zde(vo.c,o7),Zde(xo.c,hA),Eo.a.c.length=0,sm(Eo.a,fo.c),sm(Eo.a,bx(po.c)),sm(Eo.a,vo.c),sm(Eo.a,bx(xo.c)),Eo}function TUt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo;for(oo.Ug(Aft,1),Xo=na(Tl(zl(ro,(ME(),RA)))),xo=na(Tl(zl(ro,(y_(),NF)))),Eo=bo(zl(ro,IF),107),iEe((!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a)),Io=ult((!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a),Xo,xo),!ro.a&&(ro.a=new Bl(F0,ro,10,11)),Ao=new _s(Io);Ao.a0&&(ro.a=To+(Xo-1)*vo,oo.c.b+=ro.a,oo.f.b+=ro.a)),Zo.a.gc()!=0&&(Wo=new Gce(1,vo),Xo=E3e(Wo,oo,Zo,ws,oo.f.b+To-oo.c.b),Xo>0&&(oo.f.b+=To+(Xo-1)*vo))}function vlt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;for(Io=na(Tl(bs(ro,(ou(),q6)))),fo=na(Tl(bs(ro,V8e))),Wo=new lz,Fl(Wo,q6,Io+fo),Ao=oo,Rs=Ao.d,ws=Ao.c.i,Ls=Ao.d.i,Ss=W2e(ws.c),zs=W2e(Ls.c),po=new Zl,Fo=Ss;Fo<=zs;Fo++)Eo=new k5(ro),_E(Eo,(a1(),km)),Fl(Eo,(Wl(),Z0),Ao),Fl(Eo,Pp,(Im(),n2)),Fl(Eo,ste,Wo),Xo=bo(cu(ro.b,Fo),30),Fo==Ss?q$(Eo,Xo.a.c.length-co,Xo):Dm(Eo,Xo),Ys=na(Tl(bs(Ao,R4))),Ys<0&&(Ys=0,Fl(Ao,R4,Ys)),Eo.o.b=Ys,Zo=lo.Math.floor(Ys/2),xo=new Py,hm(xo,(nu(),l1)),uy(xo,Eo),xo.n.b=Zo,To=new Py,hm(To,p1),uy(To,Eo),To.n.b=Zo,Om(Ao,xo),vo=new QC,Qv(vo,Ao),Fl(vo,Hv,null),ev(vo,To),Om(vo,Rs),gLt(Eo,Ao,vo),Ju(po.c,vo),Ao=vo;return po}function $he(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs;for(To=bo(S4(ro,(nu(),l1)).Kc().Pb(),12).e,Xo=bo(S4(ro,p1).Kc().Pb(),12).g,Eo=To.c.length,zs=u_(bo(cu(ro.j,0),12));Eo-- >0;){for(ws=(qu(0,To.c.length),bo(To.c[0],18)),po=(qu(0,Xo.c.length),bo(Xo.c[0],18)),Ls=po.d.e,vo=Xv(Ls,po,0),XAt(ws,po.d,vo),ev(po,null),Om(po,null),Zo=ws.a,oo&&y0(Zo,new ov(zs)),fo=G1(po.a,0);fo.b!=fo.d.c;)co=bo(q1(fo),8),y0(Zo,new ov(co));for(Rs=ws.b,Wo=new _s(po.b);Wo.axo)&&om(ro.b,bo(Ss.b,18));++Eo}vo=xo}}}function x3e(ro,oo){var co;if(oo==null||Iu(oo,I2)||oo.length==0&&ro.k!=(_4(),FR))return null;switch(ro.k.g){case 1:return MQ(oo,EN)?(_f(),ON):MQ(oo,j0e)?(_f(),M3):null;case 2:try{return Ql(Ww(oo,Ym,q0))}catch(fo){if(fo=$p(fo),Hs(fo,130))return null;throw Cs(fo)}case 4:try{return G$(oo)}catch(fo){if(fo=$p(fo),Hs(fo,130))return null;throw Cs(fo)}case 3:return oo;case 5:return Net(ro),Yit(ro,oo);case 6:return Net(ro),Czt(ro,ro.a,oo);case 7:try{return co=Fjt(ro),co.cg(oo),co}catch(fo){if(fo=$p(fo),Hs(fo,33))return null;throw Cs(fo)}default:throw Cs(new Lv("Invalid type set for this layout option."))}}function S3e(ro){var oo;switch(ro.d){case 1:{if(ro.Sj())return ro.o!=-2;break}case 2:{if(ro.Sj())return ro.o==-2;break}case 3:case 5:case 4:case 6:case 7:return ro.o>-2;default:return!1}switch(oo=ro.Rj(),ro.p){case 0:return oo!=null&&lu(au(oo))!=VD(ro.k,0);case 1:return oo!=null&&bo(oo,222).a!=s0(ro.k)<<24>>24;case 2:return oo!=null&&bo(oo,180).a!=(s0(ro.k)&em);case 6:return oo!=null&&VD(bo(oo,168).a,ro.k);case 5:return oo!=null&&bo(oo,17).a!=s0(ro.k);case 7:return oo!=null&&bo(oo,191).a!=s0(ro.k)<<16>>16;case 3:return oo!=null&&na(Tl(oo))!=ro.j;case 4:return oo!=null&&bo(oo,161).a!=ro.j;default:return oo==null?ro.n!=null:!U0(oo,ro.n)}}function Xq(ro,oo,co){var fo,po,vo,xo;return ro.ol()&&ro.nl()&&(xo=Pce(ro,bo(co,58)),$a(xo)!==$a(co))?(ro.xj(oo),ro.Dj(oo,dQe(ro,oo,xo)),ro.al()&&(vo=(po=bo(co,54),ro.ml()?ro.kl()?po.Th(ro.b,bv(bo(Uu($2(ro.b),ro.Lj()),19)).n,bo(Uu($2(ro.b),ro.Lj()).Hk(),29).kk(),null):po.Th(ro.b,Ap(po.Dh(),bv(bo(Uu($2(ro.b),ro.Lj()),19))),null,null):po.Th(ro.b,-1-ro.Lj(),null,null)),!bo(xo,54).Ph()&&(vo=(fo=bo(xo,54),ro.ml()?ro.kl()?fo.Rh(ro.b,bv(bo(Uu($2(ro.b),ro.Lj()),19)).n,bo(Uu($2(ro.b),ro.Lj()).Hk(),29).kk(),vo):fo.Rh(ro.b,Ap(fo.Dh(),bv(bo(Uu($2(ro.b),ro.Lj()),19))),null,vo):fo.Rh(ro.b,-1-ro.Lj(),null,vo))),vo&&vo.oj()),$w(ro.b)&&ro.Jj(ro.Ij(9,co,xo,oo,!1)),xo):co}function blt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io;for(fo=new Zl,xo=new _s(ro.e.a);xo.a0&&(xo=lo.Math.max(xo,pJe(ro.C.b+fo.d.b,po))),Io=fo,Fo=po,Wo=vo;ro.C&&ro.C.c>0&&(Xo=Wo+ro.C.c,Ao&&(Xo+=Io.d.c),xo=lo.Math.max(xo,(s_(),hS(x_),lo.Math.abs(Fo-1)<=x_||Fo==1||isNaN(Fo)&&isNaN(1)?0:Xo/(1-Fo)))),co.n.b=0,co.a.a=xo}function wlt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo;if(co=bo(Rv(ro.b,oo),127),To=bo(bo(Q0(ro.r,oo),21),87),To.dc()){co.n.d=0,co.n.a=0;return}for(Ao=ro.u.Hc((sw(),L5)),xo=0,ro.A.Hc((Mw(),oC))&&Yst(ro,oo),Eo=To.Kc(),Io=null,Wo=0,Fo=0;Eo.Ob();)fo=bo(Eo.Pb(),117),vo=na(Tl(fo.b.of((EY(),ZJ)))),po=fo.b.Mf().b,Io?(Xo=Fo+Io.d.a+ro.w+fo.d.d,xo=lo.Math.max(xo,(s_(),hS(x_),lo.Math.abs(Wo-vo)<=x_||Wo==vo||isNaN(Wo)&&isNaN(vo)?0:Xo/(vo-Wo)))):ro.C&&ro.C.d>0&&(xo=lo.Math.max(xo,pJe(ro.C.d+fo.d.d,vo))),Io=fo,Wo=vo,Fo=po;ro.C&&ro.C.a>0&&(Xo=Fo+ro.C.a,Ao&&(Xo+=Io.d.a),xo=lo.Math.max(xo,(s_(),hS(x_),lo.Math.abs(Wo-1)<=x_||Wo==1||isNaN(Wo)&&isNaN(1)?0:Xo/(1-Wo)))),co.n.d=0,co.a.b=xo}function AUt(ro,oo,co,fo,po,vo,xo,Eo){var To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs;if(Zo=!1,Ao=A4e(co.q,oo.f+oo.b-co.q.f),Xo=fo.f>oo.b&&Eo,Rs=po-(co.q.e+Ao-xo),Fo=(To=hB(fo,Rs,!1),To.a),Xo&&Fo>fo.f)return!1;if(Xo){for(Wo=0,Ss=new _s(oo.d);Ss.a=(qu(vo,ro.c.length),bo(ro.c[vo],186)).e,!Xo&&Fo>oo.b&&!Io)?!1:((Io||Xo||Fo<=oo.b)&&(Io&&Fo>oo.b?(co.d=Fo,jH(co,rit(co,Fo))):(xrt(co.q,Ao),co.c=!0),jH(fo,po-(co.s+co.r)),_q(fo,co.q.e+co.q.d,oo.f),JX(oo,fo),ro.c.length>vo&&(Tq((qu(vo,ro.c.length),bo(ro.c[vo],186)),fo),(qu(vo,ro.c.length),bo(ro.c[vo],186)).a.c.length==0&&l4(ro,vo)),Zo=!0),Zo)}function xlt(ro,oo,co){var fo,po,vo,xo,Eo,To;for(this.g=ro,Eo=oo.d.length,To=co.d.length,this.d=Al(VE,T4,10,Eo+To,0,1),xo=0;xo0?Jue(this,this.f/this.a):a_(oo.g,oo.d[0]).a!=null&&a_(co.g,co.d[0]).a!=null?Jue(this,(na(a_(oo.g,oo.d[0]).a)+na(a_(co.g,co.d[0]).a))/2):a_(oo.g,oo.d[0]).a!=null?Jue(this,a_(oo.g,oo.d[0]).a):a_(co.g,co.d[0]).a!=null&&Jue(this,a_(co.g,co.d[0]).a)}function RUt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo;for(ro.a=new GWe(dOt(HF)),fo=new _s(oo.a);fo.a=1&&(Ss-xo>0&&Fo>=0?(To.n.a+=ws,To.n.b+=vo*xo):Ss-xo<0&&Io>=0&&(To.n.a+=ws*Ss,To.n.b+=vo));ro.o.a=oo.a,ro.o.b=oo.b,Fl(ro,(ou(),XT),(Mw(),fo=bo(PS(YF),9),new sx(fo,bo(cS(fo,fo.length),9),0)))}function NUt(ro,oo,co,fo,po,vo){var xo;if(!(oo==null||!Wfe(oo,fMe,dMe)))throw Cs(new i1("invalid scheme: "+oo));if(!ro&&!(co!=null&&q_(co,O2(35))==-1&&co.length>0&&(o1(0,co.length),co.charCodeAt(0)!=47)))throw Cs(new i1("invalid opaquePart: "+co));if(ro&&!(oo!=null&&Lz(lne,oo.toLowerCase()))&&!(co==null||!Wfe(co,JF,eP)))throw Cs(new i1(rht+co));if(ro&&oo!=null&&Lz(lne,oo.toLowerCase())&&!dBt(co))throw Cs(new i1(rht+co));if(!bNt(fo))throw Cs(new i1("invalid device: "+fo));if(!nIt(po))throw xo=po==null?"invalid segments: null":"invalid segment: "+ZOt(po),Cs(new i1(xo));if(!(vo==null||q_(vo,O2(35))==-1))throw Cs(new i1("invalid query: "+vo))}function MUt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs;if(co.Ug("Network simplex layering",1),ro.b=oo,Rs=bo(bs(oo,(ou(),mF)),17).a*4,Ss=ro.b.a,Ss.c.length<1){co.Vg();return}for(vo=OVt(ro,Ss),ws=null,po=G1(vo,0);po.b!=po.d.c;){for(fo=bo(q1(po),15),Eo=Rs*dm(lo.Math.sqrt(fo.gc())),xo=WVt(fo),uhe(zye(N_t(Hye(bce(xo),Eo),ws),!0),co.eh(1)),Wo=ro.b.b,Zo=new _s(xo.a);Zo.a1)for(ws=Al(Q1,E0,28,ro.b.b.c.length,15,1),Fo=0,Ao=new _s(ro.b.b);Ao.a0){DQ(ro,co,0),co.a+=String.fromCharCode(fo),po=nMt(oo,vo),DQ(ro,co,po),vo+=po-1;continue}fo==39?vo+10&&Zo.a<=0){To.c.length=0,Ju(To.c,Zo);break}Xo=Zo.i-Zo.d,Xo>=Eo&&(Xo>Eo&&(To.c.length=0,Eo=Xo),Ju(To.c,Zo))}To.c.length!=0&&(xo=bo(cu(To,qQ(po,To.c.length)),118),zs.a.Bc(xo)!=null,xo.g=Io++,u3e(xo,oo,co,fo),To.c.length=0)}for(Ss=ro.c.length+1,Wo=new _s(ro);Wo.aam||oo.o==JT&&Io=Eo&&po<=To)Eo<=po&&vo<=To?(co[Io++]=po,co[Io++]=vo,fo+=2):Eo<=po?(co[Io++]=po,co[Io++]=To,ro.b[fo]=To+1,xo+=2):vo<=To?(co[Io++]=Eo,co[Io++]=vo,fo+=2):(co[Io++]=Eo,co[Io++]=To,ro.b[fo]=To+1);else if(ToC3)&&Eo<10);Vye(ro.c,new U4),klt(ro),$Ct(ro.c),EUt(ro.f)}function qUt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws;for(co=bo(bs(ro,(ou(),Pp)),101),xo=ro.f,vo=ro.d,Eo=xo.a+vo.b+vo.c,To=0-vo.d-ro.c.b,Io=xo.b+vo.d+vo.a-ro.c.b,Ao=new Zl,Fo=new Zl,po=new _s(oo);po.a=2){for(To=G1(co,0),xo=bo(q1(To),8),Eo=bo(q1(To),8);Eo.a0&&aq(Ao,!0,(_g(),ey)),Eo.k==(a1(),Kp)&&eUe(Ao),N0(ro.f,Eo,oo)}}function WUt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;for(po=bo(bs(ro,(fp(),$F)),27),Ao=q0,Io=q0,Eo=Ym,To=Ym,zs=G1(ro.b,0);zs.b!=zs.d.c;)Rs=bo(q1(zs),40),Xo=Rs.e,Zo=Rs.f,Ao=lo.Math.min(Ao,Xo.a-Zo.a/2),Io=lo.Math.min(Io,Xo.b-Zo.b/2),Eo=lo.Math.max(Eo,Xo.a+Zo.a/2),To=lo.Math.max(To,Xo.b+Zo.b/2);for(Wo=bo(zl(po,(by(),tOe)),107),Ls=G1(ro.b,0);Ls.b!=Ls.d.c;)Rs=bo(q1(Ls),40),Fo=bs(Rs,$F),Hs(Fo,207)&&(vo=bo(Fo,27),ix(vo,Rs.e.a,Rs.e.b),Pq(vo,Rs));for(Ss=G1(ro.a,0);Ss.b!=Ss.d.c;)ws=bo(q1(Ss),65),fo=bo(bs(ws,$F),74),fo&&(oo=ws.a,co=P9(fo,!0,!0),Wq(oo,co));Ys=Eo-Ao+(Wo.b+Wo.c),xo=To-Io+(Wo.d+Wo.a),lu(au(zl(po,($0(),OA))))||y6(po,Ys,xo,!1,!1),tp(po,R7,Ys-(Wo.b+Wo.c)),tp(po,A7,xo-(Wo.d+Wo.a))}function Clt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo;for(To=!0,po=0,Ao=ro.g[oo.p],Io=oo.o.b+ro.o,co=ro.d[oo.p][2],fx(ro.b,Ao,Ql(bo(cu(ro.b,Ao),17).a-1+co)),fx(ro.c,Ao,na(Tl(cu(ro.c,Ao)))-Io+co*ro.f),++Ao,Ao>=ro.j?(++ro.j,Jl(ro.b,Ql(1)),Jl(ro.c,Io)):(fo=ro.d[oo.p][1],fx(ro.b,Ao,Ql(bo(cu(ro.b,Ao),17).a+1-fo)),fx(ro.c,Ao,na(Tl(cu(ro.c,Ao)))+Io-fo*ro.f)),(ro.r==(qx(),aG)&&(bo(cu(ro.b,Ao),17).a>ro.k||bo(cu(ro.b,Ao-1),17).a>ro.k)||ro.r==lG&&(na(Tl(cu(ro.c,Ao)))>ro.n||na(Tl(cu(ro.c,Ao-1)))>ro.n))&&(To=!1),xo=new x1(E1(Sm(oo).a.Kc(),new ko));W1(xo);)vo=bo(R1(xo),18),Eo=vo.c.i,ro.g[Eo.p]==Ao&&(Fo=Clt(ro,Eo),po=po+bo(Fo.a,17).a,To=To&&lu(au(Fo.b)));return ro.g[oo.p]=Ao,po=po+ro.d[oo.p][0],new fm(Ql(po),(_f(),!!To))}function $lt(ro,oo){var co,fo,po,vo,xo;co=na(Tl(bs(oo,(ou(),_S)))),co<2&&Fl(oo,_S,2),fo=bo(bs(oo,Qw),88),fo==(_g(),R_)&&Fl(oo,Qw,EQ(oo)),po=bo(bs(oo,Gvt),17),po.a==0?Fl(oo,(Wl(),IR),new Kfe):Fl(oo,(Wl(),IR),new CX(po.a)),vo=au(bs(oo,hF)),vo==null&&Fl(oo,hF,(_f(),$a(bs(oo,M5))===$a((S5(),uM)))),zp(new Ou(null,new Du(oo.a,16)),new eye(ro)),zp(fy(new Ou(null,new Du(oo.b,16)),new W4),new tye(ro)),xo=new Slt(oo),Fl(oo,(Wl(),g7),xo),SH(ro.a),HS(ro.a,(Km(),xS),bo(bs(oo,UT),188)),HS(ro.a,qE,bo(bs(oo,YT),188)),HS(ro.a,zy,bo(bs(oo,dF),188)),HS(ro.a,Qy,bo(bs(oo,ite),188)),HS(ro.a,Jv,WRt(bo(bs(oo,M5),223))),K2e(ro.a,zYt(oo)),Fl(oo,Xge,Yq(ro.a,oo))}function E3e(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs;for(Fo=new H1,xo=new Zl,kit(ro,co,ro.d.Ag(),xo,Fo),kit(ro,fo,ro.d.Bg(),xo,Fo),ro.b=.2*(ws=Iot(fy(new Ou(null,new Du(xo,16)),new Yre)),Ss=Iot(fy(new Ou(null,new Du(xo,16)),new jW)),lo.Math.min(ws,Ss)),vo=0,Eo=0;Eo=2&&(Rs=Qot(xo,!0,Wo),!ro.e&&(ro.e=new JLe(ro)),ZNt(ro.e,Rs,xo,ro.b)),Ort(xo,Wo),ZUt(xo),Xo=-1,Io=new _s(xo);Io.aEo)}function Alt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls;for(Ao=Tp,Io=Tp,Eo=am,To=am,Wo=new _s(oo.i);Wo.a-1){for(po=G1(Eo,0);po.b!=po.d.c;)fo=bo(q1(po),131),fo.v=xo;for(;Eo.b!=0;)for(fo=bo(kde(Eo,0),131),co=new _s(fo.i);co.a-1){for(vo=new _s(Eo);vo.a0)&&(dK(To,lo.Math.min(To.o,po.o-1)),uD(To,To.i-1),To.i==0&&Ju(Eo.c,To))}}function Olt(ro,oo,co,fo,po){var vo,xo,Eo,To;return To=Tp,xo=!1,Eo=g3e(ro,mm(new Vl(oo.a,oo.b),ro),G0(new Vl(co.a,co.b),po),mm(new Vl(fo.a,fo.b),co)),vo=!!Eo&&!(lo.Math.abs(Eo.a-ro.a)<=T6&&lo.Math.abs(Eo.b-ro.b)<=T6||lo.Math.abs(Eo.a-oo.a)<=T6&&lo.Math.abs(Eo.b-oo.b)<=T6),Eo=g3e(ro,mm(new Vl(oo.a,oo.b),ro),co,po),Eo&&((lo.Math.abs(Eo.a-ro.a)<=T6&&lo.Math.abs(Eo.b-ro.b)<=T6)==(lo.Math.abs(Eo.a-oo.a)<=T6&&lo.Math.abs(Eo.b-oo.b)<=T6)||vo?To=lo.Math.min(To,dL(mm(Eo,co))):xo=!0),Eo=g3e(ro,mm(new Vl(oo.a,oo.b),ro),fo,po),Eo&&(xo||(lo.Math.abs(Eo.a-ro.a)<=T6&&lo.Math.abs(Eo.b-ro.b)<=T6)==(lo.Math.abs(Eo.a-oo.a)<=T6&&lo.Math.abs(Eo.b-oo.b)<=T6)||vo)&&(To=lo.Math.min(To,dL(mm(Eo,fo)))),To}function Ilt(ro){IC(ro,new RT($K(AC(TC($C(CC(new W5,A3),Aut),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new B2),x2))),Xl(ro,A3,kB,iu(QAe)),Xl(ro,A3,GZ,(_f(),!0)),Xl(ro,A3,X9,iu(ppt)),Xl(ro,A3,mR,iu(gpt)),Xl(ro,A3,gR,iu(mpt)),Xl(ro,A3,vN,iu(hpt)),Xl(ro,A3,TB,iu(JAe)),Xl(ro,A3,bN,iu(vpt)),Xl(ro,A3,xTe,iu(XAe)),Xl(ro,A3,_Te,iu(KAe)),Xl(ro,A3,ETe,iu(YAe)),Xl(ro,A3,kTe,iu(ZAe)),Xl(ro,A3,STe,iu(aee))}function JUt(ro){var oo,co,fo,po,vo,xo,Eo,To;for(oo=null,fo=new _s(ro);fo.a0&&co.c==0&&(!oo&&(oo=new Zl),Ju(oo.c,co));if(oo)for(;oo.c.length!=0;){if(co=bo(l4(oo,0),239),co.b&&co.b.c.length>0){for(vo=(!co.b&&(co.b=new Zl),new _s(co.b));vo.aXv(ro,co,0))return new fm(po,co)}else if(na(a_(po.g,po.d[0]).a)>na(a_(co.g,co.d[0]).a))return new fm(po,co)}for(Eo=(!co.e&&(co.e=new Zl),co.e).Kc();Eo.Ob();)xo=bo(Eo.Pb(),239),To=(!xo.b&&(xo.b=new Zl),xo.b),A$(0,To.c.length),ND(To.c,0,co),xo.c==To.c.length&&Ju(oo.c,xo)}return null}function eKt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs;for(oo.Ug("Interactive crossing minimization",1),xo=0,vo=new _s(ro.b);vo.a0&&(co+=To.n.a+To.o.a/2,++Fo),Zo=new _s(To.j);Zo.a0&&(co/=Fo),Rs=Al(Am,Iv,28,fo.a.c.length,15,1),Eo=0,Ao=new _s(fo.a);Ao.a=Eo&&po<=To)Eo<=po&&vo<=To?fo+=2:Eo<=po?(ro.b[fo]=To+1,xo+=2):vo<=To?(co[Io++]=po,co[Io++]=Eo-1,fo+=2):(co[Io++]=po,co[Io++]=Eo-1,ro.b[fo]=To+1,xo+=2);else if(To2?(Io=new Zl,sm(Io,new s4(Rs,1,Rs.b)),vo=yct(Io,zs+ro.a),Ls=new Yde(vo),Qv(Ls,oo),Ju(co.c,Ls)):fo?Ls=bo(m1(ro.b,NE(oo)),272):Ls=bo(m1(ro.b,S3(oo)),272),To=NE(oo),fo&&(To=S3(oo)),xo=JFt(Ss,To),Ao=zs+ro.a,xo.a?(Ao+=lo.Math.abs(Ss.b-Fo.b),ws=new Vl(Fo.a,(Fo.b+Ss.b)/2)):(Ao+=lo.Math.abs(Ss.a-Fo.a),ws=new Vl((Fo.a+Ss.a)/2,Fo.b)),fo?N0(ro.d,oo,new Hke(Ls,xo,ws,Ao)):N0(ro.c,oo,new Hke(Ls,xo,ws,Ao)),N0(ro.b,oo,Ls),Zo=(!oo.n&&(oo.n=new Bl(Nv,oo,1,7)),oo.n),Xo=new g1(Zo);Xo.e!=Xo.i.gc();)Wo=bo(k1(Xo),135),po=Hq(ro,Wo,!0,0,0),Ju(co.c,po)}function tKt(ro){var oo,co,fo,po,vo,xo,Eo;if(!ro.A.dc()){if(ro.A.Hc((Mw(),BG))&&(bo(Rv(ro.b,(nu(),s1)),127).k=!0,bo(Rv(ro.b,z1),127).k=!0,oo=ro.q!=(Im(),YE)&&ro.q!=n2,sK(bo(Rv(ro.b,p1),127),oo),sK(bo(Rv(ro.b,l1),127),oo),sK(ro.g,oo),ro.A.Hc(oC)&&(bo(Rv(ro.b,s1),127).j=!0,bo(Rv(ro.b,z1),127).j=!0,bo(Rv(ro.b,p1),127).k=!0,bo(Rv(ro.b,l1),127).k=!0,ro.g.k=!0)),ro.A.Hc(LG))for(ro.a.j=!0,ro.a.k=!0,ro.g.j=!0,ro.g.k=!0,Eo=ro.B.Hc((ww(),XF)),po=rde(),vo=0,xo=po.length;vo0),bo(Io.a.Xb(Io.c=--Io.b),18));vo!=fo&&Io.b>0;)ro.a[vo.p]=!0,ro.a[fo.p]=!0,vo=(T1(Io.b>0),bo(Io.a.Xb(Io.c=--Io.b),18));Io.b>0&&Iw(Io)}}function Mlt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo;if(!ro.b)return!1;for(xo=null,Wo=null,To=new Pue(null,null),po=1,To.a[1]=ro.b,Fo=To;Fo.a[po];)Ao=po,Eo=Wo,Wo=Fo,Fo=Fo.a[po],fo=ro.a.Ne(oo,Fo.d),po=fo<0?0:1,fo==0&&(!co.c||ky(Fo.e,co.d))&&(xo=Fo),!(Fo&&Fo.b)&&!h$(Fo.a[po])&&(h$(Fo.a[1-po])?Wo=Wo.a[Ao]=sQ(Fo,po):h$(Fo.a[1-po])||(Xo=Wo.a[1-Ao],Xo&&(!h$(Xo.a[1-Ao])&&!h$(Xo.a[Ao])?(Wo.b=!1,Xo.b=!0,Fo.b=!0):(vo=Eo.a[1]==Wo?1:0,h$(Xo.a[Ao])?Eo.a[vo]=tYe(Wo,Ao):h$(Xo.a[1-Ao])&&(Eo.a[vo]=sQ(Wo,Ao)),Fo.b=Eo.a[vo].b=!0,Eo.a[vo].a[0].b=!1,Eo.a[vo].a[1].b=!1))));return xo&&(co.b=!0,co.d=xo.e,Fo!=xo&&(Io=new Pue(Fo.d,Fo.e),iFt(ro,To,xo,Io),Wo==xo&&(Wo=Io)),Wo.a[Wo.a[1]==Fo?1:0]=Fo.a[Fo.a[0]?0:1],--ro.c),ro.b=To.a[1],ro.b&&(ro.b.b=!1),co.b}function iKt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;for(po=new _s(ro.a.a.b);po.a0?po-=864e5:po+=864e5,To=new Iwe(tv(Ty(oo.q.getTime()),po))),Io=new t9,Ao=ro.a.length,vo=0;vo=97&&fo<=122||fo>=65&&fo<=90){for(xo=vo+1;xo=Ao)throw Cs(new i1("Missing trailing '"));xo+1=14&&Io<=16))?oo.a._b(fo)?(co.a?S0(co.a,co.b):co.a=new Bw(co.d),WD(co.a,"[...]")):(Eo=yT(fo),Ao=new rL(oo),g5(co,Llt(Eo,Ao))):Hs(fo,183)?g5(co,LPt(bo(fo,183))):Hs(fo,195)?g5(co,xBt(bo(fo,195))):Hs(fo,201)?g5(co,OFt(bo(fo,201))):Hs(fo,2111)?g5(co,SBt(bo(fo,2111))):Hs(fo,53)?g5(co,DPt(bo(fo,53))):Hs(fo,376)?g5(co,JPt(bo(fo,376))):Hs(fo,846)?g5(co,MPt(bo(fo,846))):Hs(fo,109)&&g5(co,NPt(bo(fo,109))):g5(co,fo==null?I2:ry(fo));return co.a?co.e.length==0?co.a.a:co.a.a+(""+co.e):co.c}function rN(ro,oo){var co,fo,po,vo;vo=ro.F,oo==null?(ro.F=null,AI(ro,null)):(ro.F=(u1(oo),oo),fo=q_(oo,O2(60)),fo!=-1?(po=(Bm(0,fo,oo.length),oo.substr(0,fo)),q_(oo,O2(46))==-1&&!Iu(po,sR)&&!Iu(po,jB)&&!Iu(po,AJ)&&!Iu(po,zB)&&!Iu(po,HB)&&!Iu(po,qB)&&!Iu(po,VB)&&!Iu(po,GB)&&(po=mht),co=xY(oo,O2(62)),co!=-1&&(po+=""+(o1(co+1,oo.length+1),oo.substr(co+1))),AI(ro,po)):(po=oo,q_(oo,O2(46))==-1&&(fo=q_(oo,O2(91)),fo!=-1&&(po=(Bm(0,fo,oo.length),oo.substr(0,fo))),!Iu(po,sR)&&!Iu(po,jB)&&!Iu(po,AJ)&&!Iu(po,zB)&&!Iu(po,HB)&&!Iu(po,qB)&&!Iu(po,VB)&&!Iu(po,GB)?(po=mht,fo!=-1&&(po+=""+(o1(fo,oo.length+1),oo.substr(fo)))):po=oo),AI(ro,po),po==oo&&(ro.F=ro.D))),ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,5,vo,oo))}function Blt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo;if(To=oo.length-1,Eo=(o1(To,oo.length),oo.charCodeAt(To)),Eo==93){if(xo=q_(oo,O2(91)),xo>=0)return po=cNt(ro,(Bm(1,xo,oo.length),oo.substr(1,xo-1))),Io=(Bm(xo+1,To,oo.length),oo.substr(xo+1,To-(xo+1))),DYt(ro,Io,po)}else{if(co=-1,j$e==null&&(j$e=new RegExp("\\d")),j$e.test(String.fromCharCode(Eo))&&(co=Xwe(oo,O2(46),To-1),co>=0)){fo=bo(Nue(ro,mZe(ro,(Bm(1,co,oo.length),oo.substr(1,co-1))),!1),61),Ao=0;try{Ao=Ww((o1(co+1,oo.length+1),oo.substr(co+1)),Ym,q0)}catch(Wo){throw Wo=$p(Wo),Hs(Wo,130)?(vo=Wo,Cs(new PX(vo))):Cs(Wo)}if(Ao>16==-10?co=bo(ro.Cb,292).Yk(oo,co):ro.Db>>16==-15&&(!oo&&(oo=(Pu(),N_)),!Ao&&(Ao=(Pu(),N_)),ro.Cb.Yh()&&(To=new m5(ro.Cb,1,13,Ao,oo,x4(vw(bo(ro.Cb,62)),ro),!1),co?co.nj(To):co=To));else if(Hs(ro.Cb,90))ro.Db>>16==-23&&(Hs(oo,90)||(oo=(Pu(),nS)),Hs(Ao,90)||(Ao=(Pu(),nS)),ro.Cb.Yh()&&(To=new m5(ro.Cb,1,10,Ao,oo,x4(Fy(bo(ro.Cb,29)),ro),!1),co?co.nj(To):co=To));else if(Hs(ro.Cb,457))for(Eo=bo(ro.Cb,850),xo=(!Eo.b&&(Eo.b=new bK(new Wae)),Eo.b),vo=(fo=new ST(new su(xo.a).a),new yK(fo));vo.a.b;)po=bo(a6(vo.a).ld(),89),co=iN(po,cZ(po,Eo),co)}return co}function cKt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;for(xo=lu(au(zl(ro,(ou(),SA)))),Wo=bo(zl(ro,EA),21),To=!1,Ao=!1,Fo=new g1((!ro.c&&(ro.c=new Bl(fw,ro,9,9)),ro.c));Fo.e!=Fo.i.gc()&&(!To||!Ao);){for(vo=bo(k1(Fo),123),Eo=0,po=$E(Hw(As($s(Xw,1),Xu,20,0,[(!vo.d&&(vo.d=new Wu(Gp,vo,8,5)),vo.d),(!vo.e&&(vo.e=new Wu(Gp,vo,7,4)),vo.e)])));W1(po)&&(fo=bo(R1(po),74),Io=xo&&g6(fo)&&lu(au(zl(fo,KT))),co=glt((!fo.b&&(fo.b=new Wu(D1,fo,4,7)),fo.b),vo)?ro==kp(Zv(bo(Gs((!fo.c&&(fo.c=new Wu(D1,fo,5,8)),fo.c),0),84))):ro==kp(Zv(bo(Gs((!fo.b&&(fo.b=new Wu(D1,fo,4,7)),fo.b),0),84))),!((Io||co)&&(++Eo,Eo>1))););(Eo>0||Wo.Hc((sw(),L5))&&(!vo.n&&(vo.n=new Bl(Nv,vo,1,7)),vo.n).i>0)&&(To=!0),Eo>1&&(Ao=!0)}To&&oo.Fc((Sv(),Tx)),Ao&&oo.Fc((Sv(),oF))}function Flt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;if(Wo=bo(zl(ro,($0(),nC)),21),Wo.dc())return null;if(Eo=0,xo=0,Wo.Hc((Mw(),BG))){for(Io=bo(zl(ro,zF),101),fo=2,co=2,po=2,vo=2,oo=kp(ro)?bo(zl(kp(ro),tC),88):bo(zl(ro,tC),88),Ao=new g1((!ro.c&&(ro.c=new Bl(fw,ro,9,9)),ro.c));Ao.e!=Ao.i.gc();)if(To=bo(k1(Ao),123),Fo=bo(zl(To,M7),64),Fo==(nu(),gy)&&(Fo=c3e(To,oo),tp(To,M7,Fo)),Io==(Im(),n2))switch(Fo.g){case 1:fo=lo.Math.max(fo,To.i+To.g);break;case 2:co=lo.Math.max(co,To.j+To.f);break;case 3:po=lo.Math.max(po,To.i+To.g);break;case 4:vo=lo.Math.max(vo,To.j+To.f)}else switch(Fo.g){case 1:fo+=To.g+2;break;case 2:co+=To.f+2;break;case 3:po+=To.g+2;break;case 4:vo+=To.f+2}Eo=lo.Math.max(fo,po),xo=lo.Math.max(co,vo)}return y6(ro,Eo,xo,!0,!0)}function Ahe(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;for(Ls=bo(ny(UX(X0(new Ou(null,new Du(oo.d,16)),new yLe(co)),new wLe(co)),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),Fo=q0,Io=Ym,To=new _s(oo.b.j);To.a0,Ao?Ao&&(Wo=Rs.p,xo?++Wo:--Wo,Fo=bo(cu(Rs.c.a,Wo),10),fo=JJe(Fo),Xo=!(Jde(fo,Hl,co[0])||_We(fo,Hl,co[0]))):Xo=!0),Zo=!1,Nl=oo.D.i,Nl&&Nl.c&&Eo.e&&(Io=xo&&Nl.p>0||!xo&&Nl.p=0){for(To=null,Eo=new Lm(Io.a,Ao+1);Eo.bxo?1:LC(isNaN(0),isNaN(xo)))<0&&(hS(lE),(lo.Math.abs(xo-1)<=lE||xo==1||isNaN(xo)&&isNaN(1)?0:xo<1?-1:xo>1?1:LC(isNaN(xo),isNaN(1)))<0)&&(hS(lE),(lo.Math.abs(0-Eo)<=lE||Eo==0||isNaN(0)&&isNaN(Eo)?0:0Eo?1:LC(isNaN(0),isNaN(Eo)))<0)&&(hS(lE),(lo.Math.abs(Eo-1)<=lE||Eo==1||isNaN(Eo)&&isNaN(1)?0:Eo<1?-1:Eo>1?1:LC(isNaN(Eo),isNaN(1)))<0)),vo)}function gKt(ro){var oo,co,fo,po;if(co=ro.D!=null?ro.D:ro.B,oo=q_(co,O2(91)),oo!=-1){fo=(Bm(0,oo,co.length),co.substr(0,oo)),po=new Z5;do po.a+="[";while((oo=FO(co,91,++oo))!=-1);Iu(fo,sR)?po.a+="Z":Iu(fo,jB)?po.a+="B":Iu(fo,AJ)?po.a+="C":Iu(fo,zB)?po.a+="D":Iu(fo,HB)?po.a+="F":Iu(fo,qB)?po.a+="I":Iu(fo,VB)?po.a+="J":Iu(fo,GB)?po.a+="S":(po.a+="L",po.a+=""+fo,po.a+=";");try{return null}catch(vo){if(vo=$p(vo),!Hs(vo,63))throw Cs(vo)}}else if(q_(co,O2(46))==-1){if(Iu(co,sR))return kw;if(Iu(co,jB))return Q2;if(Iu(co,AJ))return Rx;if(Iu(co,zB))return Am;if(Iu(co,HB))return HA;if(Iu(co,qB))return Q1;if(Iu(co,VB))return tT;if(Iu(co,GB))return j7}return null}function mKt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru;for(ro.e=oo,Eo=mjt(oo),Hl=new Zl,fo=new _s(Eo);fo.a=0&&ws=Ao.c.c.length?Io=KSe((a1(),Vp),km):Io=KSe((a1(),km),km),Io*=2,vo=co.a.g,co.a.g=lo.Math.max(vo,vo+(Io-vo)),xo=co.b.g,co.b.g=lo.Math.max(xo,xo+(Io-xo)),po=oo}}function wKt(ro){var oo,co,fo,po;for(zp(X0(new Ou(null,new Du(ro.a.b,16)),new sO),new OM),tBt(ro),zp(X0(new Ou(null,new Du(ro.a.b,16)),new Z7),new rre),ro.c==(S5(),HR)&&(zp(X0(fy(new Ou(null,new Du(new Dl(ro.f),1)),new ire),new ore),new dLe(ro)),zp(X0(Kv(fy(fy(new Ou(null,new Du(ro.d.b,16)),new sre),new are),new IM),new aO),new pLe(ro))),po=new Vl(Tp,Tp),oo=new Vl(am,am),fo=new _s(ro.a.b);fo.a0&&(oo.a+=av),AZ(bo(k1(Eo),167),oo);for(oo.a+=F1e,To=new _8((!fo.c&&(fo.c=new Wu(D1,fo,5,8)),fo.c));To.e!=To.i.gc();)To.e>0&&(oo.a+=av),AZ(bo(k1(To),167),oo);oo.a+=")"}}function xKt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;for(To=new g1((!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a));To.e!=To.i.gc();)for(Eo=bo(k1(To),27),po=new x1(E1(T5(Eo).a.Kc(),new ko));W1(po);){if(fo=bo(R1(po),74),!fo.b&&(fo.b=new Wu(D1,fo,4,7)),!(fo.b.i<=1&&(!fo.c&&(fo.c=new Wu(D1,fo,5,8)),fo.c.i<=1)))throw Cs(new h8("Graph must not contain hyperedges."));if(!nB(fo)&&Eo!=Zv(bo(Gs((!fo.c&&(fo.c=new Wu(D1,fo,5,8)),fo.c),0),84)))for(Ao=new OVe,Qv(Ao,fo),Fl(Ao,(g3(),ER),fo),ybe(Ao,bo(Uv(wv(co.f,Eo)),153)),o5(Ao,bo(m1(co,Zv(bo(Gs((!fo.c&&(fo.c=new Wu(D1,fo,5,8)),fo.c),0),84))),153)),Jl(oo.c,Ao),xo=new g1((!fo.n&&(fo.n=new Bl(Nv,fo,1,7)),fo.n));xo.e!=xo.i.gc();)vo=bo(k1(xo),135),Io=new NYe(Ao,vo.a),Qv(Io,vo),Fl(Io,ER,vo),Io.e.a=lo.Math.max(vo.g,1),Io.e.b=lo.Math.max(vo.f,1),p3e(Io),Jl(oo.d,Io)}}function SKt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;switch(co.Ug("Node promotion heuristic",1),ro.i=oo,ro.r=bo(bs(oo,(ou(),j3)),243),ro.r!=(qx(),G6)&&ro.r!=CA?YKt(ro):xqt(ro),Io=bo(bs(ro.i,R8e),17).a,vo=new Y4,ro.r.g){case 2:case 1:nN(ro,vo);break;case 3:for(ro.r=hte,nN(ro,vo),To=0,Eo=new _s(ro.b);Eo.aro.k&&(ro.r=aG,nN(ro,vo));break;case 4:for(ro.r=hte,nN(ro,vo),Ao=0,po=new _s(ro.c);po.aro.n&&(ro.r=lG,nN(ro,vo));break;case 6:Wo=dm(lo.Math.ceil(ro.g.length*Io/100)),nN(ro,new eLe(Wo));break;case 5:Fo=dm(lo.Math.ceil(ro.e*Io/100)),nN(ro,new tLe(Fo));break;case 8:Sct(ro,!0);break;case 9:Sct(ro,!1);break;default:nN(ro,vo)}ro.r!=G6&&ro.r!=CA?GHt(ro,oo):fVt(ro,oo),co.Vg()}function _Kt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs;for(Fo=ro.b,Io=new Lm(Fo,0),S$(Io,new Vy(ro)),Ls=!1,xo=1;Io.b0&&(Wo.d+=Io.n.d,Wo.d+=Io.d),Wo.a>0&&(Wo.a+=Io.n.a,Wo.a+=Io.d),Wo.b>0&&(Wo.b+=Io.n.b,Wo.b+=Io.d),Wo.c>0&&(Wo.c+=Io.n.c,Wo.c+=Io.d),Wo}function jlt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo;for(Wo=co.d,Fo=co.c,vo=new Vl(co.f.a+co.d.b+co.d.c,co.f.b+co.d.d+co.d.a),xo=vo.b,Ao=new _s(ro.a);Ao.a0&&(ro.c[oo.c.p][oo.p].d+=yw(ro.i,24)*cV*.07000000029802322-.03500000014901161,ro.c[oo.c.p][oo.p].a=ro.c[oo.c.p][oo.p].d/ro.c[oo.c.p][oo.p].b)}}function TKt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss;for(Zo=new _s(ro);Zo.afo.d,fo.d=lo.Math.max(fo.d,oo),Eo&&co&&(fo.d=lo.Math.max(fo.d,fo.a),fo.a=fo.d+po);break;case 3:co=oo>fo.a,fo.a=lo.Math.max(fo.a,oo),Eo&&co&&(fo.a=lo.Math.max(fo.a,fo.d),fo.d=fo.a+po);break;case 2:co=oo>fo.c,fo.c=lo.Math.max(fo.c,oo),Eo&&co&&(fo.c=lo.Math.max(fo.b,fo.c),fo.b=fo.c+po);break;case 4:co=oo>fo.b,fo.b=lo.Math.max(fo.b,oo),Eo&&co&&(fo.b=lo.Math.max(fo.b,fo.c),fo.c=fo.b+po)}}}function Hlt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;return Ao="",oo.length==0?ro.ne(V3e,zhe,-1,-1):(Io=W$(oo),Iu(Io.substr(0,3),"at ")&&(Io=(o1(3,Io.length+1),Io.substr(3))),Io=Io.replace(/\[.*?\]/g,""),xo=Io.indexOf("("),xo==-1?(xo=Io.indexOf("@"),xo==-1?(Ao=Io,Io=""):(Ao=W$((o1(xo+1,Io.length+1),Io.substr(xo+1))),Io=W$((Bm(0,xo,Io.length),Io.substr(0,xo))))):(co=Io.indexOf(")",xo),Ao=(Bm(xo+1,co,Io.length),Io.substr(xo+1,co-(xo+1))),Io=W$((Bm(0,xo,Io.length),Io.substr(0,xo)))),xo=q_(Io,O2(46)),xo!=-1&&(Io=(o1(xo+1,Io.length+1),Io.substr(xo+1))),(Io.length==0||Iu(Io,"Anonymous function"))&&(Io=zhe),Eo=xY(Ao,O2(58)),po=Xwe(Ao,O2(58),Eo-1),To=-1,fo=-1,vo=V3e,Eo!=-1&&po!=-1&&(vo=(Bm(0,po,Ao.length),Ao.substr(0,po)),To=Xqe((Bm(po+1,Eo,Ao.length),Ao.substr(po+1,Eo-(po+1)))),fo=Xqe((o1(Eo+1,Ao.length+1),Ao.substr(Eo+1)))),ro.ne(vo,Io,To,fo))}function AKt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo;for(Ao=new _s(ro);Ao.a0||Io.j==l1&&Io.e.c.length-Io.g.c.length<0)){oo=!1;break}for(po=new _s(Io.g);po.a=Ao&&Nl>=Ss&&(Wo+=Zo.n.b+ws.n.b+ws.a.b-Ys,++Eo));if(co)for(xo=new _s(Ls.e);xo.a=Ao&&Nl>=Ss&&(Wo+=Zo.n.b+ws.n.b+ws.a.b-Ys,++Eo))}Eo>0&&(Hl+=Wo/Eo,++Xo)}Xo>0?(oo.a=po*Hl/Xo,oo.g=Xo):(oo.a=0,oo.g=0)}function OKt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru;for(vo=ro.f.b,Wo=vo.a,Io=vo.b,Zo=ro.e.g,Xo=ro.e.f,d9(ro.e,vo.a,vo.b),Hl=Wo/Zo,ru=Io/Xo,Ao=new g1(sX(ro.e));Ao.e!=Ao.i.gc();)To=bo(k1(Ao),135),m2(To,To.i*Hl),b2(To,To.j*ru);for(Ls=new g1(Zce(ro.e));Ls.e!=Ls.i.gc();)Rs=bo(k1(Ls),123),Ys=Rs.i,Nl=Rs.j,Ys>0&&m2(Rs,Ys*Hl),Nl>0&&b2(Rs,Nl*ru);for(AL(ro.b,new NS),oo=new Zl,Eo=new ST(new su(ro.c).a);Eo.b;)xo=a6(Eo),fo=bo(xo.ld(),74),co=bo(xo.md(),407).a,po=P9(fo,!1,!1),Fo=Irt(NE(fo),Iq(po),co),Wq(Fo,po),zs=Grt(fo),zs&&Xv(oo,zs,0)==-1&&(Ju(oo.c,zs),pUe(zs,(T1(Fo.b!=0),bo(Fo.a.a.c,8)),co));for(Ss=new ST(new su(ro.d).a);Ss.b;)ws=a6(Ss),fo=bo(ws.ld(),74),co=bo(ws.md(),407).a,po=P9(fo,!1,!1),Fo=Irt(S3(fo),cq(Iq(po)),co),Fo=cq(Fo),Wq(Fo,po),zs=Wrt(fo),zs&&Xv(oo,zs,0)==-1&&(Ju(oo.c,zs),pUe(zs,(T1(Fo.b!=0),bo(Fo.c.b.c,8)),co))}function qlt(ro,oo,co,fo){var po,vo,xo,Eo,To;return Eo=new $3e(oo),SHt(Eo,fo),po=!0,ro&&ro.pf(($0(),tC))&&(vo=bo(ro.of(($0(),tC)),88),po=vo==(_g(),R_)||vo==qv||vo==ey),Hst(Eo,!1),g2(Eo.e.Rf(),new rxe(Eo,!1,po)),fue(Eo,Eo.f,(US(),xy),(nu(),s1)),fue(Eo,Eo.f,Sy,z1),fue(Eo,Eo.g,xy,l1),fue(Eo,Eo.g,Sy,p1),pnt(Eo,s1),pnt(Eo,z1),fUe(Eo,p1),fUe(Eo,l1),x$(),xo=Eo.A.Hc((Mw(),MA))&&Eo.B.Hc((ww(),PG))?Rtt(Eo):null,xo&&R_t(Eo.a,xo),$Kt(Eo),ADt(Eo),RDt(Eo),tKt(Eo),wGt(Eo),nLt(Eo),tde(Eo,s1),tde(Eo,z1),sVt(Eo),KWt(Eo),co&&(uNt(Eo),rLt(Eo),tde(Eo,p1),tde(Eo,l1),To=Eo.B.Hc((ww(),XF)),Iit(Eo,To,s1),Iit(Eo,To,z1),Nit(Eo,To,p1),Nit(Eo,To,l1),zp(new Ou(null,new Du(new L0(Eo.i),0)),new P1),zp(X0(new Ou(null,tSe(Eo.r).a.oc()),new c1),new V0),vBt(Eo),Eo.e.Pf(Eo.o),zp(new Ou(null,tSe(Eo.r).a.oc()),new P0)),Eo.o}function IKt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws;for(Ao=Tp,fo=new _s(ro.a.b);fo.a1)for(Xo=new b3e(Zo,zs,fo),Hm(zs,new Vze(ro,Xo)),Ju(xo.c,Xo),Fo=zs.a.ec().Kc();Fo.Ob();)Io=bo(Fo.Pb(),42),A2(vo,Io.b);if(Eo.a.gc()>1)for(Xo=new b3e(Zo,Eo,fo),Hm(Eo,new Gze(ro,Xo)),Ju(xo.c,Xo),Fo=Eo.a.ec().Kc();Fo.Ob();)Io=bo(Fo.Pb(),42),A2(vo,Io.b)}}function LKt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs;if(ws=ro.n,Ss=ro.o,Wo=ro.d,Fo=na(Tl(z$(ro,(ou(),ume)))),oo){for(Io=Fo*(oo.gc()-1),Xo=0,To=oo.Kc();To.Ob();)xo=bo(To.Pb(),10),Io+=xo.o.a,Xo=lo.Math.max(Xo,xo.o.b);for(Rs=ws.a-(Io-Ss.a)/2,vo=ws.b-Wo.d+Xo,fo=Ss.a/(oo.gc()+1),po=fo,Eo=oo.Kc();Eo.Ob();)xo=bo(Eo.Pb(),10),xo.n.a=Rs,xo.n.b=vo-xo.o.b,Rs+=xo.o.a+Fo,Ao=Zot(xo),Ao.n.a=xo.o.a/2-Ao.a.a,Ao.n.b=xo.o.b,Zo=bo(bs(xo,(Wl(),zee)),12),Zo.e.c.length+Zo.g.c.length==1&&(Zo.n.a=po-Zo.a.a,Zo.n.b=0,uy(Zo,ro)),po+=fo}if(co){for(Io=Fo*(co.gc()-1),Xo=0,To=co.Kc();To.Ob();)xo=bo(To.Pb(),10),Io+=xo.o.a,Xo=lo.Math.max(Xo,xo.o.b);for(Rs=ws.a-(Io-Ss.a)/2,vo=ws.b+Ss.b+Wo.a-Xo,fo=Ss.a/(co.gc()+1),po=fo,Eo=co.Kc();Eo.Ob();)xo=bo(Eo.Pb(),10),xo.n.a=Rs,xo.n.b=vo,Rs+=xo.o.a+Fo,Ao=Zot(xo),Ao.n.a=xo.o.a/2-Ao.a.a,Ao.n.b=0,Zo=bo(bs(xo,(Wl(),zee)),12),Zo.e.c.length+Zo.g.c.length==1&&(Zo.n.a=po-Zo.a.a,Zo.n.b=Ss.b,uy(Zo,ro)),po+=fo}}function BKt(ro,oo){var co,fo,po,vo,xo,Eo;if(bo(bs(oo,(Wl(),Jy)),21).Hc((Sv(),Tx))){for(Eo=new _s(oo.a);Eo.a=0&&xo0&&(bo(Rv(ro.b,oo),127).a.b=co)}function HKt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws;if(Wo=na(Tl(bs(ro,(ou(),QN)))),Xo=na(Tl(bs(ro,ZN))),Fo=na(Tl(bs(ro,TA))),Eo=ro.o,vo=bo(cu(ro.j,0),12),xo=vo.n,ws=oPt(vo,Fo),!!ws){if(oo.Hc((sw(),L5)))switch(bo(bs(ro,(Wl(),_y)),64).g){case 1:ws.c=(Eo.a-ws.b)/2-xo.a,ws.d=Xo;break;case 3:ws.c=(Eo.a-ws.b)/2-xo.a,ws.d=-Xo-ws.a;break;case 2:co&&vo.e.c.length==0&&vo.g.c.length==0?(Io=fo?ws.a:bo(cu(vo.f,0),72).o.b,ws.d=(Eo.b-Io)/2-xo.b):ws.d=Eo.b+Xo-xo.b,ws.c=-Wo-ws.b;break;case 4:co&&vo.e.c.length==0&&vo.g.c.length==0?(Io=fo?ws.a:bo(cu(vo.f,0),72).o.b,ws.d=(Eo.b-Io)/2-xo.b):ws.d=Eo.b+Xo-xo.b,ws.c=Wo}else if(oo.Hc(K3))switch(bo(bs(ro,(Wl(),_y)),64).g){case 1:case 3:ws.c=xo.a+Wo;break;case 2:case 4:co&&!vo.c?(Io=fo?ws.a:bo(cu(vo.f,0),72).o.b,ws.d=(Eo.b-Io)/2-xo.b):ws.d=xo.b+Xo}for(po=ws.d,Ao=new _s(vo.f);Ao.a=oo.length)return{done:!0};var po=oo[fo++];return{value:[po,co.get(po)],done:!1}}}},Pqt()||(ro.prototype.createObject=function(){return{}},ro.prototype.get=function(oo){return this.obj[":"+oo]},ro.prototype.set=function(oo,co){this.obj[":"+oo]=co},ro.prototype[h1e]=function(oo){delete this.obj[":"+oo]},ro.prototype.keys=function(){var oo=[];for(var co in this.obj)co.charCodeAt(0)==58&&oo.push(co.substring(1));return oo}),ro}function fp(){fp=qo,$F=new np(wTe),new Rp("DEPTH",Ql(0)),Fme=new Rp("FAN",Ql(0)),qRe=new Rp(gft,Ql(0)),q3=new Rp("ROOT",(_f(),!1)),zme=new Rp("LEFTNEIGHBOR",null),pyt=new Rp("RIGHTNEIGHBOR",null),wte=new Rp("LEFTSIBLING",null),Hme=new Rp("RIGHTSIBLING",null),Bme=new Rp("DUMMY",!1),new Rp("LEVEL",Ql(0)),WRe=new Rp("REMOVABLE_EDGES",new xp),pG=new Rp("XCOOR",Ql(0)),gG=new Rp("YCOOR",Ql(0)),xte=new Rp("LEVELHEIGHT",0),e_=new Rp("LEVELMIN",0),ES=new Rp("LEVELMAX",0),Pme=new Rp("GRAPH_XMIN",0),jme=new Rp("GRAPH_YMIN",0),VRe=new Rp("GRAPH_XMAX",0),GRe=new Rp("GRAPH_YMAX",0),HRe=new Rp("COMPACT_LEVEL_ASCENSION",!1),Lme=new Rp("COMPACT_CONSTRAINTS",new Zl),CF=new Rp("ID",""),AF=new Rp("POSITION",Ql(0)),M4=new Rp("PRELIM",0),rM=new Rp("MODIFIER",0),nM=new np(Cut),hG=new np($ut)}function WKt(ro){l3e();var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss;if(ro==null)return null;if(Fo=ro.length*8,Fo==0)return"";for(Eo=Fo%24,Xo=Fo/24|0,Wo=Eo!=0?Xo+1:Xo,vo=null,vo=Al(Rx,nE,28,Wo*4,15,1),Ao=0,Io=0,oo=0,co=0,fo=0,xo=0,po=0,To=0;To>24,Ao=(oo&3)<<24>>24,Zo=oo&-128?(oo>>2^192)<<24>>24:oo>>2<<24>>24,ws=co&-128?(co>>4^240)<<24>>24:co>>4<<24>>24,Ss=fo&-128?(fo>>6^252)<<24>>24:fo>>6<<24>>24,vo[xo++]=q4[Zo],vo[xo++]=q4[ws|Ao<<4],vo[xo++]=q4[Io<<2|Ss],vo[xo++]=q4[fo&63];return Eo==8?(oo=ro[po],Ao=(oo&3)<<24>>24,Zo=oo&-128?(oo>>2^192)<<24>>24:oo>>2<<24>>24,vo[xo++]=q4[Zo],vo[xo++]=q4[Ao<<4],vo[xo++]=61,vo[xo++]=61):Eo==16&&(oo=ro[po],co=ro[po+1],Io=(co&15)<<24>>24,Ao=(oo&3)<<24>>24,Zo=oo&-128?(oo>>2^192)<<24>>24:oo>>2<<24>>24,ws=co&-128?(co>>4^240)<<24>>24:co>>4<<24>>24,vo[xo++]=q4[Zo],vo[xo++]=q4[ws|Ao<<4],vo[xo++]=q4[Io<<2],vo[xo++]=61),zx(vo,0,vo.length)}function UKt(ro,oo){var co,fo,po,vo,xo,Eo,To;if(ro.e==0&&ro.p>0&&(ro.p=-(ro.p-1)),ro.p>Ym&&USe(oo,ro.p-$3),xo=oo.q.getDate(),AH(oo,1),ro.k>=0&&D$t(oo,ro.k),ro.c>=0?AH(oo,ro.c):ro.k>=0?(To=new EEe(oo.q.getFullYear()-$3,oo.q.getMonth(),35),fo=35-To.q.getDate(),AH(oo,lo.Math.min(fo,xo))):AH(oo,xo),ro.f<0&&(ro.f=oo.q.getHours()),ro.b>0&&ro.f<12&&(ro.f+=12),kkt(oo,ro.f==24&&ro.g?0:ro.f),ro.j>=0&&v7t(oo,ro.j),ro.n>=0&&A7t(oo,ro.n),ro.i>=0&&qHe(oo,tv(nv($q(Ty(oo.q.getTime()),k4),k4),ro.i)),ro.a&&(po=new MK,USe(po,po.q.getFullYear()-$3-80),ple(Ty(oo.q.getTime()),Ty(po.q.getTime()))&&USe(oo,po.q.getFullYear()-$3+100)),ro.d>=0){if(ro.c==-1)co=(7+ro.d-oo.q.getDay())%7,co>3&&(co-=7),Eo=oo.q.getMonth(),AH(oo,oo.q.getDate()+co),oo.q.getMonth()!=Eo&&AH(oo,oo.q.getDate()+(co>0?-7:7));else if(oo.q.getDay()!=ro.d)return!1}return ro.o>Ym&&(vo=oo.q.getTimezoneOffset(),qHe(oo,tv(Ty(oo.q.getTime()),(ro.o-vo)*60*k4))),!0}function Klt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;if(po=bs(oo,(Wl(),Z0)),!!Hs(po,207)){for(Zo=bo(po,27),ws=oo.e,Wo=new ov(oo.c),vo=oo.d,Wo.a+=vo.b,Wo.b+=vo.d,Ys=bo(zl(Zo,(ou(),ote)),181),z2(Ys,(ww(),Ute))&&(Xo=bo(zl(Zo,D8e),107),oK(Xo,vo.a),xbe(Xo,vo.d),Iae(Xo,vo.b),wbe(Xo,vo.c)),co=new Zl,Io=new _s(oo.a);Io.afo.c.length-1;)Jl(fo,new fm(Y9,QCe));co=bo(bs(po,pE),17).a,l5(bo(bs(ro,U6),88))?(po.e.ana(Tl((qu(co,fo.c.length),bo(fo.c[co],42)).b))&&kz((qu(co,fo.c.length),bo(fo.c[co],42)),po.e.a+po.f.a)):(po.e.bna(Tl((qu(co,fo.c.length),bo(fo.c[co],42)).b))&&kz((qu(co,fo.c.length),bo(fo.c[co],42)),po.e.b+po.f.b))}for(vo=G1(ro.b,0);vo.b!=vo.d.c;)po=bo(q1(vo),40),co=bo(bs(po,(by(),pE)),17).a,Fl(po,(fp(),e_),Tl((qu(co,fo.c.length),bo(fo.c[co],42)).a)),Fl(po,ES,Tl((qu(co,fo.c.length),bo(fo.c[co],42)).b));oo.Vg()}function YKt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws;for(ro.o=na(Tl(bs(ro.i,(ou(),V6)))),ro.f=na(Tl(bs(ro.i,ZT))),ro.j=ro.i.b.c.length,Eo=ro.j-1,Wo=0,ro.k=0,ro.n=0,ro.b=f_(Al(Vm,Yl,17,ro.j,0,1)),ro.c=f_(Al(nm,Yl,345,ro.j,7,1)),xo=new _s(ro.i.b);xo.a0&&Jl(ro.q,Io),Jl(ro.p,Io);oo-=fo,Xo=To+oo,Ao+=oo*ro.f,fx(ro.b,Eo,Ql(Xo)),fx(ro.c,Eo,Ao),ro.k=lo.Math.max(ro.k,Xo),ro.n=lo.Math.max(ro.n,Ao),ro.e+=oo,oo+=ws}}function nu(){nu=qo;var ro;gy=new Jz(SB,0),s1=new Jz(PZ,1),p1=new Jz(_1e,2),z1=new Jz(E1e,3),l1=new Jz(k1e,4),I_=(Hu(),new CO((ro=bo(PS(pv),9),new sx(ro,bo(cS(ro,ro.length),9),0)))),AS=p4(mp(s1,As($s(pv,1),My,64,0,[]))),$x=p4(mp(p1,As($s(pv,1),My,64,0,[]))),Jw=p4(mp(z1,As($s(pv,1),My,64,0,[]))),Zx=p4(mp(l1,As($s(pv,1),My,64,0,[]))),M2=p4(mp(s1,As($s(pv,1),My,64,0,[z1]))),E2=p4(mp(p1,As($s(pv,1),My,64,0,[l1]))),RS=p4(mp(s1,As($s(pv,1),My,64,0,[l1]))),cw=p4(mp(s1,As($s(pv,1),My,64,0,[p1]))),ex=p4(mp(z1,As($s(pv,1),My,64,0,[l1]))),Ax=p4(mp(p1,As($s(pv,1),My,64,0,[z1]))),uw=p4(mp(s1,As($s(pv,1),My,64,0,[p1,l1]))),N2=p4(mp(p1,As($s(pv,1),My,64,0,[z1,l1]))),D2=p4(mp(s1,As($s(pv,1),My,64,0,[z1,l1]))),X2=p4(mp(s1,As($s(pv,1),My,64,0,[p1,z1]))),r2=p4(mp(s1,As($s(pv,1),My,64,0,[p1,z1,l1])))}function XKt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru;for(oo.Ug(Kut,1),ws=new Zl,Hl=new Zl,Ao=new _s(ro.b);Ao.a0&&(zs-=Xo),y3e(xo,zs),Io=0,Wo=new _s(xo.a);Wo.a0),Eo.a.Xb(Eo.c=--Eo.b)),To=.4*fo*Io,!vo&&Eo.b0&&(To=(o1(0,oo.length),oo.charCodeAt(0)),To!=64)){if(To==37&&(Fo=oo.lastIndexOf("%"),Ao=!1,Fo!=0&&(Fo==Wo-1||(Ao=(o1(Fo+1,oo.length),oo.charCodeAt(Fo+1)==46))))){if(xo=(Bm(1,Fo,oo.length),oo.substr(1,Fo-1)),zs=Iu("%",xo)?null:R3e(xo),fo=0,Ao)try{fo=Ww((o1(Fo+2,oo.length+1),oo.substr(Fo+2)),Ym,q0)}catch(Ys){throw Ys=$p(Ys),Hs(Ys,130)?(Eo=Ys,Cs(new PX(Eo))):Cs(Ys)}for(Ss=rEe(ro.Gh());Ss.Ob();)if(Zo=hQ(Ss),Hs(Zo,519)&&(po=bo(Zo,598),Ls=po.d,(zs==null?Ls==null:Iu(zs,Ls))&&fo--==0))return po;return null}if(Io=oo.lastIndexOf("."),Xo=Io==-1?oo:(Bm(0,Io,oo.length),oo.substr(0,Io)),co=0,Io!=-1)try{co=Ww((o1(Io+1,oo.length+1),oo.substr(Io+1)),Ym,q0)}catch(Ys){if(Ys=$p(Ys),Hs(Ys,130))Xo=oo;else throw Cs(Ys)}for(Xo=Iu("%",Xo)?null:R3e(Xo),ws=rEe(ro.Gh());ws.Ob();)if(Zo=hQ(ws),Hs(Zo,197)&&(vo=bo(Zo,197),Rs=vo.xe(),(Xo==null?Rs==null:Iu(Xo,Rs))&&co--==0))return vo;return null}return Blt(ro,oo)}function iYt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls;for(Io=new H1,To=new ZC,fo=new _s(ro.a.a.b);fo.aoo.d.c){if(Xo=ro.c[oo.a.d],Ss=ro.c[Fo.a.d],Xo==Ss)continue;mS(sS(oS(aS(iS(new Lx,1),100),Xo),Ss))}}}}}function oYt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl;if(Wo=bo(bo(Q0(ro.r,oo),21),87),oo==(nu(),p1)||oo==l1){Glt(ro,oo);return}for(vo=oo==s1?(l6(),LV):(l6(),BV),Ys=oo==s1?(R2(),ZS):(R2(),wS),co=bo(Rv(ro.b,oo),127),fo=co.i,po=fo.c+E9(As($s(Am,1),Iv,28,15,[co.n.b,ro.C.b,ro.k])),Rs=fo.c+fo.b-E9(As($s(Am,1),Iv,28,15,[co.n.c,ro.C.c,ro.k])),xo=qye(oxe(vo),ro.t),Ls=oo==s1?am:Tp,Fo=Wo.Kc();Fo.Ob();)Ao=bo(Fo.Pb(),117),!(!Ao.c||Ao.c.d.c.length<=0)&&(Ss=Ao.b.Mf(),ws=Ao.e,Xo=Ao.c,Zo=Xo.i,Zo.b=(To=Xo.n,Xo.e.a+To.b+To.c),Zo.a=(Eo=Xo.n,Xo.e.b+Eo.d+Eo.a),kH(Ys,sTe),Xo.f=Ys,GS(Xo,(iw(),yS)),Zo.c=ws.a-(Zo.b-Ss.a)/2,Nl=lo.Math.min(po,ws.a),Hl=lo.Math.max(Rs,ws.a+Ss.a),Zo.cHl&&(Zo.c=Hl-Zo.b),Jl(xo.d,new Nce(Zo,QEe(xo,Zo))),Ls=oo==s1?lo.Math.max(Ls,ws.b+Ao.b.Mf().b):lo.Math.min(Ls,ws.b));for(Ls+=oo==s1?ro.t:-ro.t,zs=mke((xo.e=Ls,xo)),zs>0&&(bo(Rv(ro.b,oo),127).a.b=zs),Io=Wo.Kc();Io.Ob();)Ao=bo(Io.Pb(),117),!(!Ao.c||Ao.c.d.c.length<=0)&&(Zo=Ao.c.i,Zo.c-=Ao.e.a,Zo.d-=Ao.e.b)}function sYt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo;for(oo=new H1,To=new g1(ro);To.e!=To.i.gc();){for(Eo=bo(k1(To),27),co=new Yp,N0(Jpe,Eo,co),Xo=new r_,po=bo(ny(new Ou(null,new GC(new x1(E1(Fq(Eo).a.Kc(),new ko)))),oWe(Xo,rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)])))),85),PZe(co,bo(po.xc((_f(),!0)),16),new G4),fo=bo(ny(X0(bo(po.xc(!1),15).Lc(),new bE),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy]))),15),xo=fo.Kc();xo.Ob();)vo=bo(xo.Pb(),74),Wo=Grt(vo),Wo&&(Ao=bo(Uv(wv(oo.f,Wo)),21),Ao||(Ao=vst(Wo),l2(oo.f,Wo,Ao)),Fm(co,Ao));for(po=bo(ny(new Ou(null,new GC(new x1(E1(T5(Eo).a.Kc(),new ko)))),oWe(Xo,rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy])))),85),PZe(co,bo(po.xc(!0),16),new hw),fo=bo(ny(X0(bo(po.xc(!1),15).Lc(),new Ay),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy]))),15),Fo=fo.Kc();Fo.Ob();)Io=bo(Fo.Pb(),74),Wo=Wrt(Io),Wo&&(Ao=bo(Uv(wv(oo.f,Wo)),21),Ao||(Ao=vst(Wo),l2(oo.f,Wo,Ao)),Fm(co,Ao))}}function aYt(ro,oo){yhe();var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws;if(To=Iy(ro,0)<0,To&&(ro=f4(ro)),Iy(ro,0)==0)switch(oo){case 0:return"0";case 1:return uN;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return Xo=new J4,oo<0?Xo.a+="0E+":Xo.a+="0E",Xo.a+=oo==Ym?"2147483648":""+-oo,Xo.a}Io=18,Fo=Al(Rx,nE,28,Io+1,15,1),co=Io,ws=ro;do Ao=ws,ws=$q(ws,10),Fo[--co]=s0(tv(48,jx(Ao,nv(ws,10))))&em;while(Iy(ws,0)!=0);if(po=jx(jx(jx(Io,co),oo),1),oo==0)return To&&(Fo[--co]=45),zx(Fo,co,Io-co);if(oo>0&&Iy(po,-6)>=0){if(Iy(po,0)>=0){for(vo=co+s0(po),Eo=Io-1;Eo>=vo;Eo--)Fo[Eo+1]=Fo[Eo];return Fo[++vo]=46,To&&(Fo[--co]=45),zx(Fo,co,Io-co+1)}for(xo=2;ple(xo,tv(f4(po),1));xo++)Fo[--co]=48;return Fo[--co]=46,Fo[--co]=48,To&&(Fo[--co]=45),zx(Fo,co,Io-co)}return Zo=co+1,fo=Io,Wo=new t9,To&&(Wo.a+="-"),fo-Zo>=1?(u3(Wo,Fo[co]),Wo.a+=".",Wo.a+=zx(Fo,co+1,Io-co-1)):Wo.a+=zx(Fo,co,Io-co),Wo.a+="E",Iy(po,0)>0&&(Wo.a+="+"),Wo.a+=""+aL(po),Wo.a}function y6(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl;if(Ss=new Vl(ro.g,ro.f),ws=W5e(ro),ws.a=lo.Math.max(ws.a,oo),ws.b=lo.Math.max(ws.b,co),Hl=ws.a/Ss.a,Io=ws.b/Ss.b,Ys=ws.a-Ss.a,To=ws.b-Ss.b,fo)for(xo=kp(ro)?bo(zl(kp(ro),($0(),tC)),88):bo(zl(ro,($0(),tC)),88),Eo=$a(zl(ro,($0(),zF)))===$a((Im(),n2)),Ls=new g1((!ro.c&&(ro.c=new Bl(fw,ro,9,9)),ro.c));Ls.e!=Ls.i.gc();)switch(Rs=bo(k1(Ls),123),zs=bo(zl(Rs,M7),64),zs==(nu(),gy)&&(zs=c3e(Rs,xo),tp(Rs,M7,zs)),zs.g){case 1:Eo||m2(Rs,Rs.i*Hl);break;case 2:m2(Rs,Rs.i+Ys),Eo||b2(Rs,Rs.j*Io);break;case 3:Eo||m2(Rs,Rs.i*Hl),b2(Rs,Rs.j+To);break;case 4:Eo||b2(Rs,Rs.j*Io)}if(d9(ro,ws.a,ws.b),po)for(Wo=new g1((!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),ro.n));Wo.e!=Wo.i.gc();)Fo=bo(k1(Wo),135),Xo=Fo.i+Fo.g/2,Zo=Fo.j+Fo.f/2,Nl=Xo/Ss.a,Ao=Zo/Ss.b,Nl+Ao>=1&&(Nl-Ao>0&&Zo>=0?(m2(Fo,Fo.i+Ys),b2(Fo,Fo.j+To*Ao)):Nl-Ao<0&&Xo>=0&&(m2(Fo,Fo.i+Ys*Nl),b2(Fo,Fo.j+To)));return tp(ro,($0(),nC),(Mw(),vo=bo(PS(YF),9),new sx(vo,bo(cS(vo,vo.length),9),0))),new Vl(Hl,Io)}function Zlt(ro){IC(ro,new RT($K(AC(TC($C(CC(new W5,Sx),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new ZP),Sx))),Xl(ro,Sx,uJ,iu(u2t)),Xl(ro,Sx,iA,iu(f2t)),Xl(ro,Sx,X9,iu(s2t)),Xl(ro,Sx,mR,iu(a2t)),Xl(ro,Sx,gR,iu(l2t)),Xl(ro,Sx,vN,iu(o2t)),Xl(ro,Sx,TB,iu(xOe)),Xl(ro,Sx,bN,iu(c2t)),Xl(ro,Sx,$0e,iu(tve)),Xl(ro,Sx,C0e,iu(nve)),Xl(ro,Sx,vJ,iu(_Oe)),Xl(ro,Sx,A0e,iu(rve)),Xl(ro,Sx,R0e,iu(EOe)),Xl(ro,Sx,m6e,iu(kOe)),Xl(ro,Sx,g6e,iu(SOe)),Xl(ro,Sx,f6e,iu(Tte)),Xl(ro,Sx,d6e,iu(Cte)),Xl(ro,Sx,h6e,iu(mG)),Xl(ro,Sx,p6e,iu(TOe)),Xl(ro,Sx,u6e,iu(wOe))}function RZ(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo;if(ro==null)throw Cs(new H_(I2));if(Ao=ro,vo=ro.length,To=!1,vo>0&&(oo=(o1(0,ro.length),ro.charCodeAt(0)),(oo==45||oo==43)&&(ro=(o1(1,ro.length+1),ro.substr(1)),--vo,To=oo==45)),vo==0)throw Cs(new H_(S6+Ao+'"'));for(;ro.length>0&&(o1(0,ro.length),ro.charCodeAt(0)==48);)ro=(o1(1,ro.length+1),ro.substr(1)),--vo;if(vo>(Aat(),v1t)[10])throw Cs(new H_(S6+Ao+'"'));for(po=0;po0&&(Fo=-parseInt((Bm(0,fo,ro.length),ro.substr(0,fo)),10),ro=(o1(fo,ro.length+1),ro.substr(fo)),vo-=fo,co=!1);vo>=xo;){if(fo=parseInt((Bm(0,xo,ro.length),ro.substr(0,xo)),10),ro=(o1(xo,ro.length+1),ro.substr(xo)),vo-=xo,co)co=!1;else{if(Iy(Fo,Eo)<0)throw Cs(new H_(S6+Ao+'"'));Fo=nv(Fo,Io)}Fo=jx(Fo,fo)}if(Iy(Fo,0)>0)throw Cs(new H_(S6+Ao+'"'));if(!To&&(Fo=f4(Fo),Iy(Fo,0)<0))throw Cs(new H_(S6+Ao+'"'));return Fo}function R3e(ro){khe();var oo,co,fo,po,vo,xo,Eo,To;if(ro==null)return null;if(po=q_(ro,O2(37)),po<0)return ro;for(To=new Bw((Bm(0,po,ro.length),ro.substr(0,po))),oo=Al(Q2,e7,28,4,15,1),Eo=0,fo=0,xo=ro.length;popo+2&&wfe((o1(po+1,ro.length),ro.charCodeAt(po+1)),cMe,uMe)&&wfe((o1(po+2,ro.length),ro.charCodeAt(po+2)),cMe,uMe))if(co=CTt((o1(po+1,ro.length),ro.charCodeAt(po+1)),(o1(po+2,ro.length),ro.charCodeAt(po+2))),po+=2,fo>0?(co&192)==128?oo[Eo++]=co<<24>>24:fo=0:co>=128&&((co&224)==192?(oo[Eo++]=co<<24>>24,fo=2):(co&240)==224?(oo[Eo++]=co<<24>>24,fo=3):(co&248)==240&&(oo[Eo++]=co<<24>>24,fo=4)),fo>0){if(Eo==fo){switch(Eo){case 2:{u3(To,((oo[0]&31)<<6|oo[1]&63)&em);break}case 3:{u3(To,((oo[0]&15)<<12|(oo[1]&63)<<6|oo[2]&63)&em);break}}Eo=0,fo=0}}else{for(vo=0;vo=2){if((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a).i==0)co=(n3(),po=new YM,po),Y1((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a),co);else if((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a).i>1)for(Wo=new _8((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a));Wo.e!=Wo.i.gc();)QL(Wo);Wq(oo,bo(Gs((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a),0),166))}if(Fo)for(fo=new g1((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a));fo.e!=fo.i.gc();)for(co=bo(k1(fo),166),Ao=new g1((!co.a&&(co.a=new Qp(tx,co,5)),co.a));Ao.e!=Ao.i.gc();)To=bo(k1(Ao),377),Eo.a=lo.Math.max(Eo.a,To.a),Eo.b=lo.Math.max(Eo.b,To.b);for(xo=new g1((!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),ro.n));xo.e!=xo.i.gc();)vo=bo(k1(xo),135),Io=bo(zl(vo,qF),8),Io&&ix(vo,Io.a,Io.b),Fo&&(Eo.a=lo.Math.max(Eo.a,vo.i+vo.g),Eo.b=lo.Math.max(Eo.b,vo.j+vo.f));return Eo}function ect(ro,oo,co,fo,po){var vo,xo,Eo;if(WQe(ro,oo),xo=oo[0],vo=Um(co.c,0),Eo=-1,CEe(co))if(fo>0){if(xo+fo>ro.length)return!1;Eo=oZ((Bm(0,xo+fo,ro.length),ro.substr(0,xo+fo)),oo)}else Eo=oZ(ro,oo);switch(vo){case 71:return Eo=L9(ro,xo,As($s(uu,1),Yl,2,6,[Pct,jct]),oo),po.e=Eo,!0;case 77:return _qt(ro,oo,po,Eo,xo);case 76:return Eqt(ro,oo,po,Eo,xo);case 69:return gPt(ro,oo,xo,po);case 99:return mPt(ro,oo,xo,po);case 97:return Eo=L9(ro,xo,As($s(uu,1),Yl,2,6,["AM","PM"]),oo),po.b=Eo,!0;case 121:return kqt(ro,oo,xo,Eo,co,po);case 100:return Eo<=0?!1:(po.c=Eo,!0);case 83:return Eo<0?!1:ONt(Eo,xo,oo[0],po);case 104:Eo==12&&(Eo=0);case 75:case 72:return Eo<0?!1:(po.f=Eo,po.g=!1,!0);case 107:return Eo<0?!1:(po.f=Eo,po.g=!0,!0);case 109:return Eo<0?!1:(po.j=Eo,!0);case 115:return Eo<0?!1:(po.n=Eo,!0);case 90:if(xoku[To]&&(Ss=To),Fo=new _s(ro.a.b);Fo.a1;){if(po=mHt(oo),Fo=vo.g,Zo=bo(zl(oo,IF),107),ws=na(Tl(zl(oo,Ote))),(!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a).i>1&&na(Tl(zl(oo,(ME(),fve))))!=Tp&&(vo.c+(Zo.b+Zo.c))/(vo.b+(Zo.d+Zo.a))1&&na(Tl(zl(oo,(ME(),uve))))!=Tp&&(vo.c+(Zo.b+Zo.c))/(vo.b+(Zo.d+Zo.a))>ws&&tp(po,(ME(),RA),lo.Math.max(na(Tl(zl(oo,OF))),na(Tl(zl(po,RA)))-na(Tl(zl(oo,uve))))),Xo=new L2e(fo,Io),To=wct(Xo,po,Wo),Ao=To.g,Ao>=Fo&&Ao==Ao){for(xo=0;xo<(!po.a&&(po.a=new Bl(F0,po,10,11)),po.a).i;xo++)Git(ro,bo(Gs((!po.a&&(po.a=new Bl(F0,po,10,11)),po.a),xo),27),bo(Gs((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a),xo),27));bZe(oo,Xo),y$t(vo,To.c),b$t(vo,To.b)}--Eo}tp(oo,(ME(),iM),vo.b),tp(oo,DR,vo.c),co.Vg()}function fYt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls;for(oo.Ug("Interactive node layering",1),co=new Zl,Wo=new _s(ro.a);Wo.a=Eo){T1(Ls.b>0),Ls.a.Xb(Ls.c=--Ls.b);break}else Ss.a>To&&(fo?(sm(fo.b,Ss.b),fo.a=lo.Math.max(fo.a,Ss.a),Iw(Ls)):(Jl(Ss.b,Io),Ss.c=lo.Math.min(Ss.c,To),Ss.a=lo.Math.max(Ss.a,Eo),fo=Ss));fo||(fo=new jFe,fo.c=To,fo.a=Eo,S$(Ls,fo),Jl(fo.b,Io))}for(xo=ro.b,Ao=0,Rs=new _s(co);Rs.aXo&&(vo&&(iv(Hl,Wo),iv(ku,Ql(Ao.b-1))),v0=co.b,Op+=Wo+oo,Wo=0,Io=lo.Math.max(Io,co.b+co.c+b1)),m2(Eo,v0),b2(Eo,Op),Io=lo.Math.max(Io,v0+b1+co.c),Wo=lo.Math.max(Wo,Fo),v0+=b1+oo;if(Io=lo.Math.max(Io,fo),Qu=Op+Wo+co.a,QuoE,Eu=lo.Math.abs(Wo.b-Zo.b)>oE,(!co&&ku&&Eu||co&&(ku||Eu))&&y0(Ss.a,Ys)),Fm(Ss.a,fo),fo.b==0?Wo=Ys:Wo=(T1(fo.b!=0),bo(fo.c.b.c,8)),QRt(Xo,Fo,ws),vJe(po)==ru&&(zm(ru.i)!=po.a&&(ws=new Nm,H5e(ws,zm(ru.i),Ls)),Fl(Ss,Zge,ws)),NFt(Xo,Ss,Ls),Io.a.zc(Xo,Io);ev(Ss,Nl),Om(Ss,ru)}for(Ao=Io.a.ec().Kc();Ao.Ob();)To=bo(Ao.Pb(),18),ev(To,null),Om(To,null);oo.Vg()}function pYt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;for(po=bo(bs(ro,(by(),U6)),88),Io=po==(_g(),qv)||po==ey?A_:ey,co=bo(ny(X0(new Ou(null,new Du(ro.b,16)),new nie),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),To=bo(ny(Kv(co.Oc(),new aBe(oo)),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy]))),15),To.Gc(bo(ny(Kv(co.Oc(),new lBe(oo)),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy]))),16)),To.jd(new cBe(Io)),Wo=new e4(new uBe(po)),fo=new H1,Eo=To.Kc();Eo.Ob();)xo=bo(Eo.Pb(),240),Ao=bo(xo.a,40),lu(au(xo.c))?(Wo.a.zc(Ao,(_f(),M3))==null,new xO(Wo.a.Zc(Ao,!1)).a.gc()>0&&N0(fo,Ao,bo(new xO(Wo.a.Zc(Ao,!1)).a.Vc(),40)),new xO(Wo.a.ad(Ao,!0)).a.gc()>1&&N0(fo,ktt(Wo,Ao),Ao)):(new xO(Wo.a.Zc(Ao,!1)).a.gc()>0&&(vo=bo(new xO(Wo.a.Zc(Ao,!1)).a.Vc(),40),$a(vo)===$a(Uv(wv(fo.f,Ao)))&&bo(bs(Ao,(fp(),Lme)),15).Fc(vo)),new xO(Wo.a.ad(Ao,!0)).a.gc()>1&&(Fo=ktt(Wo,Ao),$a(Uv(wv(fo.f,Fo)))===$a(Ao)&&bo(bs(Fo,(fp(),Lme)),15).Fc(Ao)),Wo.a.Bc(Ao)!=null)}function tct(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;if(ro.gc()==1)return bo(ro.Xb(0),235);if(ro.gc()<=0)return new RX;for(po=ro.Kc();po.Ob();){for(co=bo(po.Pb(),235),Zo=0,Io=q0,Fo=q0,To=Ym,Ao=Ym,Xo=new _s(co.e);Xo.aEo&&(zs=0,Ys+=xo+Rs,xo=0),jVt(ws,co,zs,Ys),oo=lo.Math.max(oo,zs+Ss.a),xo=lo.Math.max(xo,Ss.b),zs+=Ss.a+Rs;return ws}function gYt(ro){l3e();var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss;if(ro==null||(vo=zX(ro),Zo=qIt(vo),Zo%4!=0))return null;if(ws=Zo/4|0,ws==0)return Al(Q2,e7,28,0,15,1);for(Fo=null,oo=0,co=0,fo=0,po=0,xo=0,Eo=0,To=0,Ao=0,Xo=0,Wo=0,Io=0,Fo=Al(Q2,e7,28,ws*3,15,1);Xo>4)<<24>>24,Fo[Wo++]=((co&15)<<4|fo>>2&15)<<24>>24,Fo[Wo++]=(fo<<6|po)<<24>>24}return!Mz(xo=vo[Io++])||!Mz(Eo=vo[Io++])?null:(oo=M_[xo],co=M_[Eo],To=vo[Io++],Ao=vo[Io++],M_[To]==-1||M_[Ao]==-1?To==61&&Ao==61?co&15?null:(Ss=Al(Q2,e7,28,Xo*3+1,15,1),jy(Fo,0,Ss,0,Xo*3),Ss[Wo]=(oo<<2|co>>4)<<24>>24,Ss):To!=61&&Ao==61?(fo=M_[To],fo&3?null:(Ss=Al(Q2,e7,28,Xo*3+2,15,1),jy(Fo,0,Ss,0,Xo*3),Ss[Wo++]=(oo<<2|co>>4)<<24>>24,Ss[Wo]=((co&15)<<4|fo>>2&15)<<24>>24,Ss)):null:(fo=M_[To],po=M_[Ao],Fo[Wo++]=(oo<<2|co>>4)<<24>>24,Fo[Wo++]=((co&15)<<4|fo>>2&15)<<24>>24,Fo[Wo++]=(fo<<6|po)<<24>>24,Fo))}function mYt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl;for(oo.Ug(Kut,1),Zo=bo(bs(ro,(ou(),M5)),223),po=new _s(ro.b);po.a=2){for(ws=!0,Wo=new _s(vo.j),co=bo(Es(Wo),12),Xo=null;Wo.a0)if(fo=Fo.gc(),Ao=dm(lo.Math.floor((fo+1)/2))-1,po=dm(lo.Math.ceil((fo+1)/2))-1,oo.o==C_)for(Io=po;Io>=Ao;Io--)oo.a[Ys.p]==Ys&&(ws=bo(Fo.Xb(Io),42),Zo=bo(ws.a,10),!jS(co,ws.b)&&Xo>ro.b.e[Zo.p]&&(oo.a[Zo.p]=Ys,oo.g[Ys.p]=oo.g[Zo.p],oo.a[Ys.p]=oo.g[Ys.p],oo.f[oo.g[Ys.p].p]=(_f(),!!(lu(oo.f[oo.g[Ys.p].p])&Ys.k==(a1(),km))),Xo=ro.b.e[Zo.p]));else for(Io=Ao;Io<=po;Io++)oo.a[Ys.p]==Ys&&(Rs=bo(Fo.Xb(Io),42),Ss=bo(Rs.a,10),!jS(co,Rs.b)&&Xo0&&(po=bo(cu(Ss.c.a,Hl-1),10),xo=ro.i[po.p],ku=lo.Math.ceil(p9(ro.n,po,Ss)),vo=Nl.a.e-Ss.d.d-(xo.a.e+po.o.b+po.d.a)-ku),Ao=Tp,Hl0&&ru.a.e.e-ru.a.a-(ru.b.e.e-ru.b.a)<0,Zo=zs.a.e.e-zs.a.a-(zs.b.e.e-zs.b.a)<0&&ru.a.e.e-ru.a.a-(ru.b.e.e-ru.b.a)>0,Xo=zs.a.e.e+zs.b.aru.b.e.e+ru.a.a,Ys=0,!ws&&!Zo&&(Wo?vo+Fo>0?Ys=Fo:Ao-fo>0&&(Ys=fo):Xo&&(vo+Eo>0?Ys=Eo:Ao-Ls>0&&(Ys=Ls))),Nl.a.e+=Ys,Nl.b&&(Nl.d.e+=Ys),!1))}function rct(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;if(fo=new ax(oo.Lf().a,oo.Lf().b,oo.Mf().a,oo.Mf().b),po=new x8,ro.c)for(xo=new _s(oo.Rf());xo.aAo&&(fo.a+=Sqe(Al(Rx,nE,28,-Ao,15,1))),fo.a+="Is",q_(To,O2(32))>=0)for(po=0;po=fo.o.b/2}else Ls=!Fo;Ls?(Rs=bo(bs(fo,(Wl(),NR)),15),Rs?Wo?vo=Rs:(po=bo(bs(fo,$R),15),po?Rs.gc()<=po.gc()?vo=Rs:vo=po:(vo=new Zl,Fl(fo,$R,vo))):(vo=new Zl,Fl(fo,NR,vo))):(po=bo(bs(fo,(Wl(),$R)),15),po?Fo?vo=po:(Rs=bo(bs(fo,NR),15),Rs?po.gc()<=Rs.gc()?vo=po:vo=Rs:(vo=new Zl,Fl(fo,NR,vo))):(vo=new Zl,Fl(fo,$R,vo))),vo.Fc(ro),Fl(ro,(Wl(),zee),co),oo.d==co?(Om(oo,null),co.e.c.length+co.g.c.length==0&&uy(co,null),MOt(co)):(ev(oo,null),co.e.c.length+co.g.c.length==0&&uy(co,null)),Fw(oo.a)}function wYt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1,v0,Op;for(co.Ug("MinWidth layering",1),Xo=oo.b,ru=oo.a,Op=bo(bs(oo,(ou(),$8e)),17).a,Eo=bo(bs(oo,A8e),17).a,ro.b=na(Tl(bs(oo,_S))),ro.d=Tp,Ys=new _s(ru);Ys.a0?(Ao=0,Ss&&(Ao+=Eo),Ao+=(Eu-1)*xo,zs&&(Ao+=Eo),ku&&zs&&(Ao=lo.Math.max(Ao,jHt(zs,xo,Ls,ru))),Ao=ro.a&&(fo=nWt(ro,Ls),Io=lo.Math.max(Io,fo.b),Ys=lo.Math.max(Ys,fo.d),Jl(Eo,new fm(Ls,fo)));for(ku=new Zl,Ao=0;Ao0),Ss.a.Xb(Ss.c=--Ss.b),Eu=new Vy(ro.b),S$(Ss,Eu),T1(Ss.b0){for(Wo=Io<100?null:new e3(Io),Ao=new uEe(oo),Zo=Ao.g,Rs=Al(Q1,E0,28,Io,15,1),fo=0,Ys=new n6(Io),po=0;po=0;)if(Xo!=null?U0(Xo,Zo[To]):$a(Xo)===$a(Zo[To])){Rs.length<=fo&&(Ss=Rs,Rs=Al(Q1,E0,28,2*Rs.length,15,1),jy(Ss,0,Rs,0,fo)),Rs[fo++]=po,Y1(Ys,Zo[To]);break e}if(Xo=Xo,$a(Xo)===$a(Eo))break}}if(Ao=Ys,Zo=Ys.g,Io=fo,fo>Rs.length&&(Ss=Rs,Rs=Al(Q1,E0,28,fo,15,1),jy(Ss,0,Rs,0,fo)),fo>0){for(zs=!0,vo=0;vo=0;)J8(ro,Rs[xo]);if(fo!=Io){for(po=Io;--po>=fo;)J8(Ao,po);Ss=Rs,Rs=Al(Q1,E0,28,fo,15,1),jy(Ss,0,Rs,0,fo)}oo=Ao}}}else for(oo=BDt(ro,oo),po=ro.i;--po>=0;)oo.Hc(ro.g[po])&&(J8(ro,po),zs=!0);if(zs){if(Rs!=null){for(co=oo.gc(),Fo=co==1?gL(ro,4,oo.Kc().Pb(),null,Rs[0],ws):gL(ro,6,oo,Rs,Rs[0],ws),Wo=co<100?null:new e3(co),po=oo.Kc();po.Ob();)Xo=po.Pb(),Wo=Zwe(ro,bo(Xo,76),Wo);Wo?(Wo.nj(Fo),Wo.oj()):W0(ro.e,Fo)}else{for(Wo=H5t(oo.gc()),po=oo.Kc();po.Ob();)Xo=po.Pb(),Wo=Zwe(ro,bo(Xo,76),Wo);Wo&&Wo.oj()}return!0}else return!1}function _Yt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs;for(co=new ynt(oo),co.a||QVt(oo),Ao=Yqt(oo),To=new ZC,Ss=new Est,ws=new _s(oo.a);ws.a0||co.o==C_&&po=co}function kYt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1;for(zs=oo,Ls=new ZC,Ys=new ZC,Io=t6(zs,Z6e),fo=new SUe(ro,co,Ls,Ys),GFt(fo.a,fo.b,fo.c,fo.d,Io),To=(ru=Ls.i,ru||(Ls.i=new v9(Ls,Ls.c))),Eu=To.Kc();Eu.Ob();)for(ku=bo(Eu.Pb(),166),po=bo(Q0(Ls,ku),21),ws=po.Kc();ws.Ob();)if(Zo=ws.Pb(),Nl=bo(k9(ro.d,Zo),166),Nl)Eo=(!ku.e&&(ku.e=new Wu(Sp,ku,10,9)),ku.e),Y1(Eo,Nl);else throw xo=d5(zs,cE),Wo=xdt+Zo+Sdt+xo,Xo=Wo+CN,Cs(new z_(Xo));for(Ao=(Hl=Ys.i,Hl||(Ys.i=new v9(Ys,Ys.c))),Qu=Ao.Kc();Qu.Ob();)for(Yu=bo(Qu.Pb(),166),vo=bo(Q0(Ys,Yu),21),Rs=vo.Kc();Rs.Ob();)if(Ss=Rs.Pb(),Nl=bo(k9(ro.d,Ss),166),Nl)Fo=(!Yu.g&&(Yu.g=new Wu(Sp,Yu,9,10)),Yu.g),Y1(Fo,Nl);else throw xo=d5(zs,cE),Wo=xdt+Ss+Sdt+xo,Xo=Wo+CN,Cs(new z_(Xo));!co.b&&(co.b=new Wu(D1,co,4,7)),co.b.i!=0&&(!co.c&&(co.c=new Wu(D1,co,5,8)),co.c.i!=0)&&(!co.b&&(co.b=new Wu(D1,co,4,7)),co.b.i<=1&&(!co.c&&(co.c=new Wu(D1,co,5,8)),co.c.i<=1))&&(!co.a&&(co.a=new Bl(Sp,co,6,6)),co.a).i==1&&(b1=bo(Gs((!co.a&&(co.a=new Bl(Sp,co,6,6)),co.a),0),166),!cde(b1)&&!ude(b1)&&(nQ(b1,bo(Gs((!co.b&&(co.b=new Wu(D1,co,4,7)),co.b),0),84)),rQ(b1,bo(Gs((!co.c&&(co.c=new Wu(D1,co,5,8)),co.c),0),84))))}function TYt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu;for(zs=ro.a,Ys=0,Nl=zs.length;Ys0?(Fo=bo(cu(Wo.c.a,xo-1),10),ku=p9(ro.b,Wo,Fo),Ss=Wo.n.b-Wo.d.d-(Fo.n.b+Fo.o.b+Fo.d.a+ku)):Ss=Wo.n.b-Wo.d.d,Ao=lo.Math.min(Ss,Ao),xo1&&(xo=lo.Math.min(xo,lo.Math.abs(bo(wx(Eo.a,1),8).b-Io.b)))));else for(ws=new _s(oo.j);ws.apo&&(vo=Wo.a-po,xo=q0,fo.c.length=0,po=Wo.a),Wo.a>=po&&(Ju(fo.c,Eo),Eo.a.b>1&&(xo=lo.Math.min(xo,lo.Math.abs(bo(wx(Eo.a,Eo.a.b-2),8).b-Wo.b)))));if(fo.c.length!=0&&vo>oo.o.a/2&&xo>oo.o.b/2){for(Xo=new Py,uy(Xo,oo),hm(Xo,(nu(),s1)),Xo.n.a=oo.o.a/2,Rs=new Py,uy(Rs,oo),hm(Rs,z1),Rs.n.a=oo.o.a/2,Rs.n.b=oo.o.b,To=new _s(fo);To.a=Ao.b?ev(Eo,Rs):ev(Eo,Xo)):(Ao=bo(mTt(Eo.a),8),Ss=Eo.a.b==0?u_(Eo.c):bo(lS(Eo.a),8),Ss.b>=Ao.b?Om(Eo,Rs):Om(Eo,Xo)),Fo=bo(bs(Eo,(ou(),Hv)),75),Fo&&j$(Fo,Ao,!0);oo.n.a=po-oo.o.a/2}}function $Yt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;for(Eo=G1(ro.b,0);Eo.b!=Eo.d.c;)if(xo=bo(q1(Eo),40),!Iu(xo.c,pJ))for(Ao=Jjt(xo,ro),oo==(_g(),qv)||oo==ey?Up(Ao,new aie):Up(Ao,new ZW),To=Ao.c.length,fo=0;fo=0?Xo=Y8(Eo):Xo=vq(Y8(Eo)),ro.qf(YN,Xo)),Ao=new Nm,Wo=!1,ro.pf(H6)?(Swe(Ao,bo(ro.of(H6),8)),Wo=!0):Bkt(Ao,xo.a/2,xo.b/2),Xo.g){case 4:Fl(Io,_2,(yx(),P3)),Fl(Io,qee,(ET(),u7)),Io.o.b=xo.b,ws<0&&(Io.o.a=-ws),hm(Fo,(nu(),p1)),Wo||(Ao.a=xo.a),Ao.a-=xo.a;break;case 2:Fl(Io,_2,(yx(),yA)),Fl(Io,qee,(ET(),HN)),Io.o.b=xo.b,ws<0&&(Io.o.a=-ws),hm(Fo,(nu(),l1)),Wo||(Ao.a=0);break;case 1:Fl(Io,GT,(b5(),d7)),Io.o.a=xo.a,ws<0&&(Io.o.b=-ws),hm(Fo,(nu(),z1)),Wo||(Ao.b=xo.b),Ao.b-=xo.b;break;case 3:Fl(Io,GT,(b5(),TR)),Io.o.a=xo.a,ws<0&&(Io.o.b=-ws),hm(Fo,(nu(),s1)),Wo||(Ao.b=0)}if(Swe(Fo.n,Ao),Fl(Io,H6,Ao),oo==iC||oo==YE||oo==n2){if(Zo=0,oo==iC&&ro.pf(O4))switch(Xo.g){case 1:case 2:Zo=bo(ro.of(O4),17).a;break;case 3:case 4:Zo=-bo(ro.of(O4),17).a}else switch(Xo.g){case 4:case 2:Zo=vo.b,oo==YE&&(Zo/=po.b);break;case 1:case 3:Zo=vo.a,oo==YE&&(Zo/=po.a)}Fl(Io,B6,Zo)}return Fl(Io,_y,Xo),Io}function AYt(){Uye();function ro(fo){var po=this;this.dispatch=function(vo){var xo=vo.data;switch(xo.cmd){case"algorithms":var Eo=gke((Hu(),new fv(new L0(X3.b))));fo.postMessage({id:xo.id,data:Eo});break;case"categories":var To=gke((Hu(),new fv(new L0(X3.c))));fo.postMessage({id:xo.id,data:To});break;case"options":var Ao=gke((Hu(),new fv(new L0(X3.d))));fo.postMessage({id:xo.id,data:Ao});break;case"register":IUt(xo.algorithms),fo.postMessage({id:xo.id});break;case"layout":aWt(xo.graph,xo.layoutOptions||{},xo.options||{}),fo.postMessage({id:xo.id,data:xo.graph});break}},this.saveDispatch=function(vo){try{po.dispatch(vo)}catch(xo){fo.postMessage({id:vo.data.id,error:xo})}}}function oo(fo){var po=this;this.dispatcher=new ro({postMessage:function(vo){po.onmessage({data:vo})}}),this.postMessage=function(vo){setTimeout(function(){po.dispatcher.saveDispatch({data:vo})},0)}}if(typeof document===v1e&&typeof self!==v1e){var co=new ro(self);self.onmessage=co.saveDispatch}else typeof io!==v1e&&io.exports&&(Object.defineProperty(so,"__esModule",{value:!0}),io.exports={default:oo,Worker:oo})}function cct(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;for(Io=new k5(co),Qv(Io,oo),Fl(Io,(Wl(),Z0),oo),Io.o.a=oo.g,Io.o.b=oo.f,Io.n.a=oo.i,Io.n.b=oo.j,Jl(co.a,Io),N0(ro.a,oo,Io),((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a).i!=0||lu(au(zl(oo,(ou(),SA)))))&&Fl(Io,E7e,(_f(),!0)),Ao=bo(bs(co,Jy),21),Fo=bo(bs(Io,(ou(),Pp)),101),Fo==(Im(),U3)?Fl(Io,Pp,O_):Fo!=O_&&Ao.Fc((Sv(),GN)),Wo=0,fo=bo(bs(co,Qw),88),To=new g1((!oo.c&&(oo.c=new Bl(fw,oo,9,9)),oo.c));To.e!=To.i.gc();)Eo=bo(k1(To),123),po=kp(oo),($a(zl(po,GE))!==$a((Q_(),I4))||$a(zl(po,UT))===$a((y4(),zN))||$a(zl(po,UT))===$a((y4(),jN))||lu(au(zl(po,P6)))||$a(zl(po,wA))!==$a((CT(),pA))||$a(zl(po,j3))===$a((qx(),G6))||$a(zl(po,j3))===$a((qx(),CA))||$a(zl(po,YT))===$a((E4(),JN))||$a(zl(po,YT))===$a((E4(),eM)))&&!lu(au(zl(oo,Xee)))&&tp(Eo,ip,Ql(Wo++)),lu(au(zl(Eo,QT)))||PKt(ro,Eo,Io,Ao,fo,Fo);for(xo=new g1((!oo.n&&(oo.n=new Bl(Nv,oo,1,7)),oo.n));xo.e!=xo.i.gc();)vo=bo(k1(xo),135),!lu(au(zl(vo,QT)))&&vo.a&&Jl(Io.b,Lfe(vo));return lu(au(bs(Io,fF)))&&Ao.Fc((Sv(),Fee)),lu(au(bs(Io,ete)))&&(Ao.Fc((Sv(),Pee)),Ao.Fc(oF),Fl(Io,Pp,O_)),Io}function Ihe(ro,oo,co,fo,po,vo,xo){var Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1,v0,Op;for(ws=0,Yu=0,Ao=new _s(ro.b);Ao.aws&&(vo&&(iv(Hl,Xo),iv(ku,Ql(Io.b-1)),Jl(ro.d,Zo),Eo.c.length=0),v0=co.b,Op+=Xo+oo,Xo=0,Fo=lo.Math.max(Fo,co.b+co.c+b1)),Ju(Eo.c,To),fnt(To,v0,Op),Fo=lo.Math.max(Fo,v0+b1+co.c),Xo=lo.Math.max(Xo,Wo),v0+=b1+oo,Zo=To;if(sm(ro.a,Eo),Jl(ro.d,bo(cu(Eo,Eo.c.length-1),163)),Fo=lo.Math.max(Fo,fo),Qu=Op+Xo+co.a,Qupo.d.d+po.d.a?Io.f.d=!0:(Io.f.d=!0,Io.f.a=!0))),fo.b!=fo.d.c&&(oo=co);Io&&(vo=bo(m1(ro.f,xo.d.i),60),oo.bvo.d.d+vo.d.a?Io.f.d=!0:(Io.f.d=!0,Io.f.a=!0))}for(Eo=new x1(E1(Sm(Xo).a.Kc(),new ko));W1(Eo);)xo=bo(R1(Eo),18),xo.a.b!=0&&(oo=bo(lS(xo.a),8),xo.d.j==(nu(),s1)&&(Ss=new fB(oo,new Vl(oo.a,po.d.d),po,xo),Ss.f.a=!0,Ss.a=xo.d,Ju(ws.c,Ss)),xo.d.j==z1&&(Ss=new fB(oo,new Vl(oo.a,po.d.d+po.d.a),po,xo),Ss.f.d=!0,Ss.a=xo.d,Ju(ws.c,Ss)))}return ws}function DYt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;for(To=new Zl,Fo=oo.length,xo=TEe(co),Ao=0;Ao=Zo&&(Ls>Zo&&(Xo.c.length=0,Zo=Ls),Ju(Xo.c,xo));Xo.c.length!=0&&(Wo=bo(cu(Xo,qQ(oo,Xo.c.length)),131),Qu.a.Bc(Wo)!=null,Wo.s=ws++,E4e(Wo,Eu,Hl),Xo.c.length=0)}for(Ys=ro.c.length+1,Eo=new _s(ro);Eo.aYu.s&&(Iw(co),A2(Yu.i,fo),fo.c>0&&(fo.a=Yu,Jl(Yu.t,fo),fo.b=ru,Jl(ru.i,fo)))}function uct(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu;for(ws=new o2(oo.b),Ys=new o2(oo.b),Wo=new o2(oo.b),ku=new o2(oo.b),Ss=new o2(oo.b),ru=G1(oo,0);ru.b!=ru.d.c;)for(Nl=bo(q1(ru),12),Eo=new _s(Nl.g);Eo.a0,Rs=Nl.g.c.length>0,Ao&&Rs?Ju(Wo.c,Nl):Ao?Ju(ws.c,Nl):Rs&&Ju(Ys.c,Nl);for(Zo=new _s(ws);Zo.aLs.nh()-Ao.b&&(Wo=Ls.nh()-Ao.b),Xo>Ls.oh()-Ao.d&&(Xo=Ls.oh()-Ao.d),Io0){for(zs=G1(ro.f,0);zs.b!=zs.d.c;)Ls=bo(q1(zs),10),Ls.p+=Wo-ro.e;q5e(ro),Fw(ro.f),F4e(ro,fo,Xo)}else{for(y0(ro.f,Xo),Xo.p=fo,ro.e=lo.Math.max(ro.e,fo),vo=new x1(E1(Sm(Xo).a.Kc(),new ko));W1(vo);)po=bo(R1(vo),18),!po.c.i.c&&po.c.i.k==(a1(),Ly)&&(y0(ro.f,po.c.i),po.c.i.p=fo-1);ro.c=fo}else q5e(ro),Fw(ro.f),fo=0,W1(new x1(E1(Sm(Xo).a.Kc(),new ko)))?(Wo=0,Wo=mnt(Wo,Xo),fo=Wo+2,F4e(ro,fo,Xo)):(y0(ro.f,Xo),Xo.p=0,ro.e=lo.Math.max(ro.e,0),ro.b=bo(cu(ro.d.b,0),30),ro.c=0);for(ro.f.b==0||q5e(ro),ro.d.a.c.length=0,Rs=new Zl,Ao=new _s(ro.d.b);Ao.a=48&&oo<=57){for(fo=oo-48;po=48&&oo<=57;)if(fo=fo*10+oo-48,fo<0)throw Cs(new p0(m0((c0(),f$e))))}else throw Cs(new p0(m0((c0(),Kdt))));if(co=fo,oo==44){if(po>=ro.j)throw Cs(new p0(m0((c0(),Xdt))));if((oo=Um(ro.i,po++))>=48&&oo<=57){for(co=oo-48;po=48&&oo<=57;)if(co=co*10+oo-48,co<0)throw Cs(new p0(m0((c0(),f$e))));if(fo>co)throw Cs(new p0(m0((c0(),Qdt))))}else co=-1}if(oo!=125)throw Cs(new p0(m0((c0(),Ydt))));ro.bm(po)?(vo=(H0(),H0(),new R$(9,vo)),ro.d=po+1):(vo=(H0(),H0(),new R$(3,vo)),ro.d=po),vo.Om(fo),vo.Nm(co),z0(ro)}}return vo}function zYt(ro){var oo,co,fo,po,vo;switch(co=bo(bs(ro,(Wl(),Jy)),21),oo=mY(ypt),po=bo(bs(ro,(ou(),xA)),346),po==(x5(),B4)&&Vw(oo,wpt),lu(au(bs(ro,ame)))?_0(oo,(Km(),xS),(rv(),mge)):_0(oo,(Km(),zy),(rv(),mge)),bs(ro,(MX(),LF))!=null&&Vw(oo,xpt),(lu(au(bs(ro,k8e)))||lu(au(bs(ro,x8e))))&&q2(oo,(Km(),Jv),(rv(),w9e)),bo(bs(ro,Qw),88).g){case 2:case 3:case 4:q2(_0(oo,(Km(),xS),(rv(),S9e)),Jv,x9e)}switch(co.Hc((Sv(),Fee))&&q2(_0(_0(oo,(Km(),xS),(rv(),y9e)),Qy,v9e),Jv,b9e),$a(bs(ro,j3))!==$a((qx(),dte))&&_0(oo,(Km(),zy),(rv(),B9e)),co.Hc(jee)&&(_0(oo,(Km(),xS),(rv(),z9e)),_0(oo,qE,P9e),_0(oo,zy,j9e)),$a(bs(ro,Kee))!==$a((WI(),iF))&&$a(bs(ro,M5))!==$a((S5(),OG))&&q2(oo,(Km(),Jv),(rv(),O9e)),lu(au(bs(ro,_8e)))&&_0(oo,(Km(),zy),(rv(),R9e)),lu(au(bs(ro,rme)))&&_0(oo,(Km(),zy),(rv(),H9e)),eHt(ro)&&($a(bs(ro,xA))===$a(B4)?fo=bo(bs(ro,rG),299):fo=bo(bs(ro,nme),299),vo=fo==(SI(),zge)?(rv(),F9e):(rv(),G9e),_0(oo,(Km(),Qy),vo)),bo(bs(ro,Q8e),388).g){case 1:_0(oo,(Km(),Qy),(rv(),q9e));break;case 2:q2(_0(_0(oo,(Km(),zy),(rv(),h9e)),Qy,p9e),Jv,g9e)}return $a(bs(ro,GE))!==$a((Q_(),I4))&&_0(oo,(Km(),zy),(rv(),V9e)),oo}function pct(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs;if(p2(ro.a,oo)){if(jS(bo(m1(ro.a,oo),49),co))return 1}else N0(ro.a,oo,new Yp);if(p2(ro.a,co)){if(jS(bo(m1(ro.a,co),49),oo))return-1}else N0(ro.a,co,new Yp);if(p2(ro.e,oo)){if(jS(bo(m1(ro.e,oo),49),co))return-1}else N0(ro.e,oo,new Yp);if(p2(ro.e,co)){if(jS(bo(m1(ro.a,co),49),oo))return 1}else N0(ro.e,co,new Yp);if(ro.c==(Q_(),_me)||!gp(oo,(Wl(),ip))||!gp(co,(Wl(),ip))){for(Fo=null,Ao=new _s(oo.j);Ao.axo?JI(ro,oo,co):JI(ro,co,oo),poxo?1:0}return fo=bo(bs(oo,(Wl(),ip)),17).a,vo=bo(bs(co,ip),17).a,fo>vo?JI(ro,oo,co):JI(ro,co,oo),fovo?1:0}function w6(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss;if(co==null)return null;if(ro.a!=oo.jk())throw Cs(new i1(kN+oo.xe()+$6));if(Hs(oo,469)){if(Ss=Iqt(bo(oo,685),co),!Ss)throw Cs(new i1(V0e+co+"' is not a valid enumerator of '"+oo.xe()+"'"));return Ss}switch(g4((W2(),Gm),oo).Nl()){case 2:{co=Ky(co,!1);break}case 3:{co=Ky(co,!0);break}}if(fo=g4(Gm,oo).Jl(),fo)return fo.jk().wi().ti(fo,co);if(Wo=g4(Gm,oo).Ll(),Wo){for(Ss=new Zl,Ao=Cfe(co),Io=0,Fo=Ao.length;Io1)for(Zo=new _8((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a));Zo.e!=Zo.i.gc();)QL(Zo);for(xo=bo(Gs((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a),0),166),Ss=v0,v0>Nl+Ys?Ss=Nl+Ys:v0Hl+ws?Rs=Hl+ws:OpNl-Ys&&SsHl-ws&&Rsv0+b1?ku=v0+b1:NlOp+ru?Eu=Op+ru:Hlv0-b1&&kuOp-ru&&Euco&&(Wo=co-1),Xo=V4+yw(oo,24)*cV*Fo-Fo/2,Xo<0?Xo=1:Xo>fo&&(Xo=fo-1),po=(n3(),To=new vO,To),XX(po,Wo),YX(po,Xo),Y1((!xo.a&&(xo.a=new Qp(tx,xo,5)),xo.a),po)}function gct(ro){IC(ro,new RT(AC(TC($C(CC(new W5,Sw),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new fU))),Xl(ro,Sw,pR,1.3),Xl(ro,Sw,mN,(_f(),!1)),Xl(ro,Sw,_6,GOe),Xl(ro,Sw,iA,15),Xl(ro,Sw,cJ,iu(I2t)),Xl(ro,Sw,X9,iu(D2t)),Xl(ro,Sw,mR,iu(B2t)),Xl(ro,Sw,gR,iu(F2t)),Xl(ro,Sw,vN,iu(M2t)),Xl(ro,Sw,TB,iu(hve)),Xl(ro,Sw,bN,iu(P2t)),Xl(ro,Sw,k6e,iu(YOe)),Xl(ro,Sw,T6e,iu(KOe)),Xl(ro,Sw,E6e,iu(gve)),Xl(ro,Sw,_6e,iu(XOe)),Xl(ro,Sw,C6e,iu(VOe)),Xl(ro,Sw,$6e,iu(pve)),Xl(ro,Sw,A6e,iu(qOe)),Xl(ro,Sw,R6e,iu(UOe)),Xl(ro,Sw,kB,iu(HOe)),Xl(ro,Sw,fJ,iu(N2t)),Xl(ro,Sw,x6e,iu(bG)),Xl(ro,Sw,w6e,iu(zOe)),Xl(ro,Sw,S6e,iu(yG)),Xl(ro,Sw,y6e,iu(WOe))}function Mhe(ro,oo){yhe();var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1,v0;if(ku=ro.e,Zo=ro.d,po=ro.a,ku==0)switch(oo){case 0:return"0";case 1:return uN;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return Hl=new J4,oo<0?Hl.a+="0E+":Hl.a+="0E",Hl.a+=-oo,Hl.a}if(zs=Zo*10+1+7,Ys=Al(Rx,nE,28,zs+1,15,1),co=zs,Zo==1)if(Eo=po[0],Eo<0){v0=vm(Eo,_v);do ws=v0,v0=$q(v0,10),Ys[--co]=48+s0(jx(ws,nv(v0,10)))&em;while(Iy(v0,0)!=0)}else{v0=Eo;do ws=v0,v0=v0/10|0,Ys[--co]=48+(ws-v0*10)&em;while(v0!=0)}else{Yu=Al(Q1,E0,28,Zo,15,1),b1=Zo,jy(po,0,Yu,0,b1);e:for(;;){for(ru=0,Ao=b1-1;Ao>=0;Ao--)Qu=tv(fS(ru,32),vm(Yu[Ao],_v)),Rs=RBt(Qu),Yu[Ao]=s0(Rs),ru=s0(qC(Rs,32));Ls=s0(ru),Ss=co;do Ys[--co]=48+Ls%10&em;while((Ls=Ls/10|0)!=0&&co!=0);for(fo=9-Ss+co,To=0;To0;To++)Ys[--co]=48;for(Fo=b1-1;Yu[Fo]==0;Fo--)if(Fo==0)break e;b1=Fo+1}for(;Ys[co]==48;)++co}if(Xo=ku<0,xo=zs-co-oo-1,oo==0)return Xo&&(Ys[--co]=45),zx(Ys,co,zs-co);if(oo>0&&xo>=-6){if(xo>=0){for(Io=co+xo,Wo=zs-1;Wo>=Io;Wo--)Ys[Wo+1]=Ys[Wo];return Ys[++Io]=46,Xo&&(Ys[--co]=45),zx(Ys,co,zs-co+1)}for(Fo=2;Fo<-xo+1;Fo++)Ys[--co]=48;return Ys[--co]=46,Ys[--co]=48,Xo&&(Ys[--co]=45),zx(Ys,co,zs-co)}return Eu=co+1,vo=zs,Nl=new t9,Xo&&(Nl.a+="-"),vo-Eu>=1?(u3(Nl,Ys[co]),Nl.a+=".",Nl.a+=zx(Ys,co+1,zs-co-1)):Nl.a+=zx(Ys,co,zs-co),Nl.a+="E",xo>0&&(Nl.a+="+"),Nl.a+=""+xo,Nl.a}function mct(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl;switch(ro.c=oo,ro.g=new H1,co=(NC(),new kC(ro.c)),fo=new pK(co),dke(fo),zs=u0(zl(ro.c,(Rq(),gIe))),To=bo(zl(ro.c,kve),324),Nl=bo(zl(ro.c,Tve),437),xo=bo(zl(ro.c,dIe),490),Ys=bo(zl(ro.c,Eve),438),ro.j=na(Tl(zl(ro.c,J2t))),Eo=ro.a,To.g){case 0:Eo=ro.a;break;case 1:Eo=ro.b;break;case 2:Eo=ro.i;break;case 3:Eo=ro.e;break;case 4:Eo=ro.f;break;default:throw Cs(new i1(wJ+(To.f!=null?To.f:""+To.g)))}if(ro.d=new eKe(Eo,Nl,xo),Fl(ro.d,(yI(),JB),au(zl(ro.c,Q2t))),ro.d.c=lu(au(zl(ro.c,hIe))),fX(ro.c).i==0)return ro.d;for(Fo=new g1(fX(ro.c));Fo.e!=Fo.i.gc();){for(Io=bo(k1(Fo),27),Xo=Io.g/2,Wo=Io.f/2,Hl=new Vl(Io.i+Xo,Io.j+Wo);p2(ro.g,Hl);)jC(Hl,(lo.Math.random()-.5)*oE,(lo.Math.random()-.5)*oE);ws=bo(zl(Io,($0(),sM)),140),Ss=new pKe(Hl,new ax(Hl.a-Xo-ro.j/2-ws.b,Hl.b-Wo-ro.j/2-ws.d,Io.g+ro.j+(ws.b+ws.c),Io.f+ro.j+(ws.d+ws.a))),Jl(ro.d.i,Ss),N0(ro.g,Hl,new fm(Ss,Io))}switch(Ys.g){case 0:if(zs==null)ro.d.d=bo(cu(ro.d.i,0),68);else for(Ls=new _s(ro.d.i);Ls.a0?b1+1:1);for(xo=new _s(Hl.g);xo.a0?b1+1:1)}ro.c[Ao]==0?y0(ro.e,ws):ro.a[Ao]==0&&y0(ro.f,ws),++Ao}for(Zo=-1,Xo=1,Fo=new Zl,ro.d=bo(bs(oo,(Wl(),IR)),234);nx>0;){for(;ro.e.b!=0;)Op=bo(Ece(ro.e),10),ro.b[Op.p]=Zo--,t3e(ro,Op),--nx;for(;ro.f.b!=0;)dw=bo(Ece(ro.f),10),ro.b[dw.p]=Xo++,t3e(ro,dw),--nx;if(nx>0){for(Wo=Ym,Ls=new _s(zs);Ls.a=Wo&&(Ys>Wo&&(Fo.c.length=0,Wo=Ys),Ju(Fo.c,ws)));Io=ro.sg(Fo),ro.b[Io.p]=Xo++,t3e(ro,Io),--nx}}for(v0=zs.c.length+1,Ao=0;Aoro.b[Vv]&&(b6(fo,!0),Fl(oo,JV,(_f(),!0)));ro.a=null,ro.c=null,ro.b=null,Fw(ro.f),Fw(ro.e),co.Vg()}function vct(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl;for(Nl=bo(Gs((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a),0),166),Io=new P2,Ys=new H1,Hl=Tat(Nl),l2(Ys.f,Nl,Hl),Wo=new H1,fo=new xp,Zo=$E(Hw(As($s(Xw,1),Xu,20,0,[(!oo.d&&(oo.d=new Wu(Gp,oo,8,5)),oo.d),(!oo.e&&(oo.e=new Wu(Gp,oo,7,4)),oo.e)])));W1(Zo);){if(Xo=bo(R1(Zo),74),(!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a).i!=1)throw Cs(new i1(rdt+(!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a).i));Xo!=ro&&(Ss=bo(Gs((!Xo.a&&(Xo.a=new Bl(Sp,Xo,6,6)),Xo.a),0),166),Mp(fo,Ss,fo.c.b,fo.c),ws=bo(Uv(wv(Ys.f,Ss)),13),ws||(ws=Tat(Ss),l2(Ys.f,Ss,ws)),Fo=co?mm(new ov(bo(cu(Hl,Hl.c.length-1),8)),bo(cu(ws,ws.c.length-1),8)):mm(new ov((qu(0,Hl.c.length),bo(Hl.c[0],8))),(qu(0,ws.c.length),bo(ws.c[0],8))),l2(Wo.f,Ss,Fo))}if(fo.b!=0)for(Rs=bo(cu(Hl,co?Hl.c.length-1:0),8),Ao=1;Ao1&&Mp(Io,Rs,Io.c.b,Io.c),Zue(po)));Rs=Ls}return Io}function bct(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu;for(co.Ug(bft,1),Yu=bo(ny(X0(new Ou(null,new Du(oo,16)),new uie),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),Io=bo(ny(X0(new Ou(null,new Du(oo,16)),new dBe(oo)),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy]))),15),Zo=bo(ny(X0(new Ou(null,new Du(oo,16)),new fBe(oo)),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy]))),15),ws=Al(yte,gJ,40,oo.gc(),0,1),xo=0;xo=0&&Eu=0&&!ws[Xo]){ws[Xo]=po,Io.gd(Eo),--Eo;break}if(Xo=Eu-Wo,Xo=0&&!ws[Xo]){ws[Xo]=po,Io.gd(Eo),--Eo;break}}for(Zo.jd(new FM),To=ws.length-1;To>=0;To--)!ws[To]&&!Zo.dc()&&(ws[To]=bo(Zo.Xb(0),40),Zo.gd(0));for(Ao=0;Ao=0;To--)y0(co,(qu(To,xo.c.length),bo(xo.c[To],8)));return co}function wct(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;for(zs=na(Tl(zl(oo,(ME(),RA)))),Xo=na(Tl(zl(oo,OF))),Wo=na(Tl(zl(oo,Ate))),iEe((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a)),Rs=ult((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a),zs,ro.b),Ss=0;SsWo&&Tq((qu(Wo,oo.c.length),bo(oo.c[Wo],186)),Io),Io=null;oo.c.length>Wo&&(qu(Wo,oo.c.length),bo(oo.c[Wo],186)).a.c.length==0;)A2(oo,(qu(Wo,oo.c.length),oo.c[Wo]));if(!Io){--xo;continue}if(!lu(au(bo(cu(Io.b,0),27).of((y_(),yG))))&&uGt(oo,Zo,vo,Io,Ss,co,Wo,fo)){ws=!0;continue}if(Ss){if(Xo=Zo.b,Fo=Io.f,!lu(au(bo(cu(Io.b,0),27).of(yG)))&&AUt(oo,Zo,vo,Io,co,Wo,fo,po)){if(ws=!0,Xo=ro.j){ro.a=-1,ro.c=1;return}if(oo=Um(ro.i,ro.d++),ro.a=oo,ro.b==1){switch(oo){case 92:if(fo=10,ro.d>=ro.j)throw Cs(new p0(m0((c0(),CJ))));ro.a=Um(ro.i,ro.d++);break;case 45:(ro.e&512)==512&&ro.d=ro.j||Um(ro.i,ro.d)!=63)break;if(++ro.d>=ro.j)throw Cs(new p0(m0((c0(),rpe))));switch(oo=Um(ro.i,ro.d++),oo){case 58:fo=13;break;case 61:fo=14;break;case 33:fo=15;break;case 91:fo=19;break;case 62:fo=18;break;case 60:if(ro.d>=ro.j)throw Cs(new p0(m0((c0(),rpe))));if(oo=Um(ro.i,ro.d++),oo==61)fo=16;else if(oo==33)fo=17;else throw Cs(new p0(m0((c0(),Rdt))));break;case 35:for(;ro.d=ro.j)throw Cs(new p0(m0((c0(),CJ))));ro.a=Um(ro.i,ro.d++);break;default:fo=0}ro.c=fo}function QYt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss;if(co.Ug("Process compaction",1),!!lu(au(bs(oo,(by(),XRe))))){for(po=bo(bs(oo,U6),88),Xo=na(Tl(bs(oo,Vme))),EWt(ro,oo,po),pYt(oo,Xo/2/2),Zo=oo.b,wT(Zo,new iBe(po)),Ao=G1(Zo,0);Ao.b!=Ao.d.c;)if(To=bo(q1(Ao),40),!lu(au(bs(To,(fp(),q3))))){if(fo=Xqt(To,po),ws=GGt(To,oo),Fo=0,Wo=0,fo)switch(Ss=fo.e,po.g){case 2:Fo=Ss.a-Xo-To.f.a,ws.e.a-Xo-To.f.aFo&&(Fo=ws.e.a+ws.f.a+Xo),Wo=Fo+To.f.a;break;case 4:Fo=Ss.b-Xo-To.f.b,ws.e.b-Xo-To.f.bFo&&(Fo=ws.e.b+ws.f.b+Xo),Wo=Fo+To.f.b}else if(ws)switch(po.g){case 2:Fo=ws.e.a-Xo-To.f.a,Wo=Fo+To.f.a;break;case 1:Fo=ws.e.a+ws.f.a+Xo,Wo=Fo+To.f.a;break;case 4:Fo=ws.e.b-Xo-To.f.b,Wo=Fo+To.f.b;break;case 3:Fo=ws.e.b+ws.f.b+Xo,Wo=Fo+To.f.b}$a(bs(oo,qme))===$a((NL(),dG))?(vo=Fo,xo=Wo,Eo=TI(X0(new Ou(null,new Du(ro.a,16)),new Uze(vo,xo))),Eo.a!=null?po==(_g(),qv)||po==ey?To.e.a=Fo:To.e.b=Fo:(po==(_g(),qv)||po==Cx?Eo=TI(X0(_Ze(new Ou(null,new Du(ro.a,16))),new oBe(vo))):Eo=TI(X0(_Ze(new Ou(null,new Du(ro.a,16))),new sBe(vo))),Eo.a!=null&&(po==qv||po==ey?To.e.a=na(Tl((T1(Eo.a!=null),bo(Eo.a,42)).a)):To.e.b=na(Tl((T1(Eo.a!=null),bo(Eo.a,42)).a)))),Eo.a!=null&&(Io=Xv(ro.a,(T1(Eo.a!=null),Eo.a),0),Io>0&&Io!=bo(bs(To,pE),17).a&&(Fl(To,HRe,(_f(),!0)),Fl(To,pE,Ql(Io))))):po==(_g(),qv)||po==ey?To.e.a=Fo:To.e.b=Fo}co.Vg()}}function xct(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao;for(ro.b=1,z0(ro),oo=null,ro.c==0&&ro.a==94?(z0(ro),oo=(H0(),H0(),new jw(4)),Uy(oo,0,AN),Eo=new jw(4)):Eo=(H0(),H0(),new jw(4)),po=!0;(Ao=ro.c)!=1;){if(Ao==0&&ro.a==93&&!po){oo&&(mB(oo,Eo),Eo=oo);break}if(co=ro.a,fo=!1,Ao==10)switch(co){case 100:case 68:case 119:case 87:case 115:case 83:J$(Eo,eN(co)),fo=!0;break;case 105:case 73:case 99:case 67:co=(J$(Eo,eN(co)),-1),co<0&&(fo=!0);break;case 112:case 80:if(To=o4e(ro,co),!To)throw Cs(new p0(m0((c0(),ipe))));J$(Eo,To),fo=!0;break;default:co=j4e(ro)}else if(Ao==24&&!po){if(oo&&(mB(oo,Eo),Eo=oo),vo=xct(ro),mB(Eo,vo),ro.c!=0||ro.a!=93)throw Cs(new p0(m0((c0(),jdt))));break}if(z0(ro),!fo){if(Ao==0){if(co==91)throw Cs(new p0(m0((c0(),c$e))));if(co==93)throw Cs(new p0(m0((c0(),u$e))));if(co==45&&!po&&ro.a!=93)throw Cs(new p0(m0((c0(),ope))))}if(ro.c!=0||ro.a!=45||co==45&&po)Uy(Eo,co,co);else{if(z0(ro),(Ao=ro.c)==1)throw Cs(new p0(m0((c0(),$J))));if(Ao==0&&ro.a==93)Uy(Eo,co,co),Uy(Eo,45,45);else{if(Ao==0&&ro.a==93||Ao==24)throw Cs(new p0(m0((c0(),ope))));if(xo=ro.a,Ao==0){if(xo==91)throw Cs(new p0(m0((c0(),c$e))));if(xo==93)throw Cs(new p0(m0((c0(),u$e))));if(xo==45)throw Cs(new p0(m0((c0(),ope))))}else Ao==10&&(xo=j4e(ro));if(z0(ro),co>xo)throw Cs(new p0(m0((c0(),qdt))));Uy(Eo,co,xo)}}}po=!1}if(ro.c==1)throw Cs(new p0(m0((c0(),$J))));return B9(Eo),pB(Eo),ro.b=0,z0(ro),Eo}function ZYt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl;if(co.Ug("Coffman-Graham Layering",1),oo.a.c.length==0){co.Vg();return}for(Nl=bo(bs(oo,(ou(),C8e)),17).a,To=0,xo=0,Wo=new _s(oo.a);Wo.a=Nl||!WNt(Rs,fo))&&(fo=uUe(oo,Io)),Dm(Rs,fo),vo=new x1(E1(Sm(Rs).a.Kc(),new ko));W1(vo);)po=bo(R1(vo),18),!ro.a[po.p]&&(ws=po.c.i,--ro.e[ws.p],ro.e[ws.p]==0&&$8(GI(Xo,ws),fN));for(Ao=Io.c.length-1;Ao>=0;--Ao)Jl(oo.b,(qu(Ao,Io.c.length),bo(Io.c[Ao],30)));oo.a.c.length=0,co.Vg()}function Sct(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;Ys=!1;do for(Ys=!1,vo=oo?new Dl(ro.a.b).a.gc()-2:1;oo?vo>=0:vobo(bs(Ss,ip),17).a)&&(zs=!1);if(zs){for(To=oo?vo+1:vo-1,Eo=VSe(ro.a,Ql(To)),xo=!1,Ls=!0,fo=!1,Io=G1(Eo,0);Io.b!=Io.d.c;)Ao=bo(q1(Io),10),gp(Ao,ip)?Ao.p!=Fo.p&&(xo=xo|(oo?bo(bs(Ao,ip),17).abo(bs(Fo,ip),17).a),Ls=!1):!xo&&Ls&&Ao.k==(a1(),Ly)&&(fo=!0,oo?Wo=bo(R1(new x1(E1(Sm(Ao).a.Kc(),new ko))),18).c.i:Wo=bo(R1(new x1(E1(Wp(Ao).a.Kc(),new ko))),18).d.i,Wo==Fo&&(oo?co=bo(R1(new x1(E1(Wp(Ao).a.Kc(),new ko))),18).d.i:co=bo(R1(new x1(E1(Sm(Ao).a.Kc(),new ko))),18).c.i,(oo?bo(y$(ro.a,co),17).a-bo(y$(ro.a,Wo),17).a:bo(y$(ro.a,Wo),17).a-bo(y$(ro.a,co),17).a)<=2&&(Ls=!1)));if(fo&&Ls&&(oo?co=bo(R1(new x1(E1(Wp(Fo).a.Kc(),new ko))),18).d.i:co=bo(R1(new x1(E1(Sm(Fo).a.Kc(),new ko))),18).c.i,(oo?bo(y$(ro.a,co),17).a-bo(y$(ro.a,Fo),17).a:bo(y$(ro.a,Fo),17).a-bo(y$(ro.a,co),17).a)<=2&&co.k==(a1(),Vp)&&(Ls=!1)),xo||Ls){for(ws=Jot(ro,Fo,oo);ws.a.gc()!=0;)Zo=bo(ws.a.ec().Kc().Pb(),10),ws.a.Bc(Zo)!=null,Fm(ws,Jot(ro,Zo,oo));--Xo,Ys=!0}}}while(Ys)}function JYt(ro){i0(ro.c,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#decimal"])),i0(ro.d,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#integer"])),i0(ro.e,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#boolean"])),i0(ro.f,w0,As($s(uu,1),Yl,2,6,[Xm,"EBoolean",B0,"EBoolean:Object"])),i0(ro.i,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#byte"])),i0(ro.g,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#hexBinary"])),i0(ro.j,w0,As($s(uu,1),Yl,2,6,[Xm,"EByte",B0,"EByte:Object"])),i0(ro.n,w0,As($s(uu,1),Yl,2,6,[Xm,"EChar",B0,"EChar:Object"])),i0(ro.t,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#double"])),i0(ro.u,w0,As($s(uu,1),Yl,2,6,[Xm,"EDouble",B0,"EDouble:Object"])),i0(ro.F,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#float"])),i0(ro.G,w0,As($s(uu,1),Yl,2,6,[Xm,"EFloat",B0,"EFloat:Object"])),i0(ro.I,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#int"])),i0(ro.J,w0,As($s(uu,1),Yl,2,6,[Xm,"EInt",B0,"EInt:Object"])),i0(ro.N,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#long"])),i0(ro.O,w0,As($s(uu,1),Yl,2,6,[Xm,"ELong",B0,"ELong:Object"])),i0(ro.Z,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#short"])),i0(ro.$,w0,As($s(uu,1),Yl,2,6,[Xm,"EShort",B0,"EShort:Object"])),i0(ro._,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#string"]))}function eXt(ro,oo,co,fo,po,vo,xo){var Eo,To,Ao,Io,Fo,Wo,Xo,Zo;return Wo=bo(fo.a,17).a,Xo=bo(fo.b,17).a,Fo=ro.b,Zo=ro.c,Eo=0,Io=0,oo==(_g(),qv)||oo==ey?(Io=Wz(att(C$(Kv(new Ou(null,new Du(co.b,16)),new nU),new iie))),Fo.e.b+Fo.f.b/2>Io?(Ao=++Xo,Eo=na(Tl(Aw(E$(Kv(new Ou(null,new Du(co.b,16)),new Xze(po,Ao)),new c$))))):(To=++Wo,Eo=na(Tl(Aw(R8(Kv(new Ou(null,new Du(co.b,16)),new Qze(po,To)),new XW)))))):(Io=Wz(att(C$(Kv(new Ou(null,new Du(co.b,16)),new sie),new l$))),Fo.e.a+Fo.f.a/2>Io?(Ao=++Xo,Eo=na(Tl(Aw(E$(Kv(new Ou(null,new Du(co.b,16)),new Kze(po,Ao)),new QW))))):(To=++Wo,Eo=na(Tl(Aw(R8(Kv(new Ou(null,new Du(co.b,16)),new Yze(po,To)),new QP)))))),oo==qv?(iv(ro.a,new Vl(na(Tl(bs(Fo,(fp(),e_))))-po,Eo)),iv(ro.a,new Vl(Zo.e.a+Zo.f.a+po+vo,Eo)),iv(ro.a,new Vl(Zo.e.a+Zo.f.a+po+vo,Zo.e.b+Zo.f.b/2)),iv(ro.a,new Vl(Zo.e.a+Zo.f.a,Zo.e.b+Zo.f.b/2))):oo==ey?(iv(ro.a,new Vl(na(Tl(bs(Fo,(fp(),ES))))+po,Fo.e.b+Fo.f.b/2)),iv(ro.a,new Vl(Fo.e.a+Fo.f.a+po,Eo)),iv(ro.a,new Vl(Zo.e.a-po-vo,Eo)),iv(ro.a,new Vl(Zo.e.a-po-vo,Zo.e.b+Zo.f.b/2)),iv(ro.a,new Vl(Zo.e.a,Zo.e.b+Zo.f.b/2))):oo==Cx?(iv(ro.a,new Vl(Eo,na(Tl(bs(Fo,(fp(),e_))))-po)),iv(ro.a,new Vl(Eo,Zo.e.b+Zo.f.b+po+vo)),iv(ro.a,new Vl(Zo.e.a+Zo.f.a/2,Zo.e.b+Zo.f.b+po+vo)),iv(ro.a,new Vl(Zo.e.a+Zo.f.a/2,Zo.e.b+Zo.f.b+po))):(ro.a.b==0||(bo(lS(ro.a),8).b=na(Tl(bs(Fo,(fp(),ES))))+po*bo(xo.b,17).a),iv(ro.a,new Vl(Eo,na(Tl(bs(Fo,(fp(),ES))))+po*bo(xo.b,17).a)),iv(ro.a,new Vl(Eo,Zo.e.b-po*bo(xo.a,17).a-vo))),new fm(Ql(Wo),Ql(Xo))}function tXt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo;if(xo=!0,Fo=null,fo=null,po=null,oo=!1,Xo=Lxt,Ao=null,vo=null,Eo=0,To=nde(ro,Eo,fMe,dMe),To=0&&Iu(ro.substr(Eo,2),"//")?(Eo+=2,To=nde(ro,Eo,JF,eP),fo=(Bm(Eo,To,ro.length),ro.substr(Eo,To-Eo)),Eo=To):Fo!=null&&(Eo==ro.length||(o1(Eo,ro.length),ro.charCodeAt(Eo)!=47))&&(xo=!1,To=pwe(ro,O2(35),Eo),To==-1&&(To=ro.length),fo=(Bm(Eo,To,ro.length),ro.substr(Eo,To-Eo)),Eo=To);if(!co&&Eo0&&Um(Io,Io.length-1)==58&&(po=Io,Eo=To)),EoQde(vo))&&(Fo=vo);for(!Fo&&(Fo=(qu(0,Ss.c.length),bo(Ss.c[0],185))),ws=new _s(oo.b);ws.aFo&&(Qu=0,b1+=Io+ru,Io=0),dat(Nl,xo,Qu,b1),oo=lo.Math.max(oo,Qu+Hl.a),Io=lo.Math.max(Io,Hl.b),Qu+=Hl.a+ru;for(Ys=new H1,co=new H1,Eu=new _s(ro);Eu.a=-1900?1:0,co>=4?S0(ro,As($s(uu,1),Yl,2,6,[Pct,jct])[Eo]):S0(ro,As($s(uu,1),Yl,2,6,["BC","AD"])[Eo]);break;case 121:xMt(ro,co,fo);break;case 77:PVt(ro,co,fo);break;case 107:To=po.q.getHours(),To==0?OE(ro,24,co):OE(ro,To,co);break;case 83:Jzt(ro,co,po);break;case 69:Io=fo.q.getDay(),co==5?S0(ro,As($s(uu,1),Yl,2,6,["S","M","T","W","T","F","S"])[Io]):co==4?S0(ro,As($s(uu,1),Yl,2,6,[e1e,t1e,n1e,r1e,i1e,o1e,s1e])[Io]):S0(ro,As($s(uu,1),Yl,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[Io]);break;case 97:po.q.getHours()>=12&&po.q.getHours()<24?S0(ro,As($s(uu,1),Yl,2,6,["AM","PM"])[1]):S0(ro,As($s(uu,1),Yl,2,6,["AM","PM"])[0]);break;case 104:Fo=po.q.getHours()%12,Fo==0?OE(ro,12,co):OE(ro,Fo,co);break;case 75:Wo=po.q.getHours()%12,OE(ro,Wo,co);break;case 72:Xo=po.q.getHours(),OE(ro,Xo,co);break;case 99:Zo=fo.q.getDay(),co==5?S0(ro,As($s(uu,1),Yl,2,6,["S","M","T","W","T","F","S"])[Zo]):co==4?S0(ro,As($s(uu,1),Yl,2,6,[e1e,t1e,n1e,r1e,i1e,o1e,s1e])[Zo]):co==3?S0(ro,As($s(uu,1),Yl,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[Zo]):OE(ro,Zo,1);break;case 76:ws=fo.q.getMonth(),co==5?S0(ro,As($s(uu,1),Yl,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[ws]):co==4?S0(ro,As($s(uu,1),Yl,2,6,[qhe,Vhe,Ghe,Whe,lR,Uhe,Khe,Yhe,Xhe,Qhe,Zhe,Jhe])[ws]):co==3?S0(ro,As($s(uu,1),Yl,2,6,["Jan","Feb","Mar","Apr",lR,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[ws]):OE(ro,ws+1,co);break;case 81:Ss=fo.q.getMonth()/3|0,co<4?S0(ro,As($s(uu,1),Yl,2,6,["Q1","Q2","Q3","Q4"])[Ss]):S0(ro,As($s(uu,1),Yl,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[Ss]);break;case 100:Rs=fo.q.getDate(),OE(ro,Rs,co);break;case 109:Ao=po.q.getMinutes(),OE(ro,Ao,co);break;case 115:xo=po.q.getSeconds(),OE(ro,xo,co);break;case 122:co<4?S0(ro,vo.c[0]):S0(ro,vo.c[1]);break;case 118:S0(ro,vo.b);break;case 90:co<3?S0(ro,WPt(vo)):co==3?S0(ro,QPt(vo)):S0(ro,ZPt(vo.a));break;default:return!1}return!0}function M3e(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1,v0;if(tat(oo),To=bo(Gs((!oo.b&&(oo.b=new Wu(D1,oo,4,7)),oo.b),0),84),Io=bo(Gs((!oo.c&&(oo.c=new Wu(D1,oo,5,8)),oo.c),0),84),Eo=Zv(To),Ao=Zv(Io),xo=(!oo.a&&(oo.a=new Bl(Sp,oo,6,6)),oo.a).i==0?null:bo(Gs((!oo.a&&(oo.a=new Bl(Sp,oo,6,6)),oo.a),0),166),ru=bo(m1(ro.a,Eo),10),Qu=bo(m1(ro.a,Ao),10),ku=null,b1=null,Hs(To,193)&&(Hl=bo(m1(ro.a,To),305),Hs(Hl,12)?ku=bo(Hl,12):Hs(Hl,10)&&(ru=bo(Hl,10),ku=bo(cu(ru.j,0),12))),Hs(Io,193)&&(Yu=bo(m1(ro.a,Io),305),Hs(Yu,12)?b1=bo(Yu,12):Hs(Yu,10)&&(Qu=bo(Yu,10),b1=bo(cu(Qu.j,0),12))),!ru||!Qu)throw Cs(new h8("The source or the target of edge "+oo+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(ws=new QC,Qv(ws,oo),Fl(ws,(Wl(),Z0),oo),Fl(ws,(ou(),Hv),null),Xo=bo(bs(fo,Jy),21),ru==Qu&&Xo.Fc((Sv(),sF)),ku||(Nl=(xv(),u2),Eu=null,xo&&u9(bo(bs(ru,Pp),101))&&(Eu=new Vl(xo.j,xo.k),LYe(Eu,$H(oo)),uXe(Eu,co),D$(Ao,Eo)&&(Nl=lw,G0(Eu,ru.n))),ku=nlt(ru,Eu,Nl,fo)),b1||(Nl=(xv(),lw),v0=null,xo&&u9(bo(bs(Qu,Pp),101))&&(v0=new Vl(xo.b,xo.c),LYe(v0,$H(oo)),uXe(v0,co)),b1=nlt(Qu,v0,Nl,zm(Qu))),ev(ws,ku),Om(ws,b1),(ku.e.c.length>1||ku.g.c.length>1||b1.e.c.length>1||b1.g.c.length>1)&&Xo.Fc((Sv(),oF)),Wo=new g1((!oo.n&&(oo.n=new Bl(Nv,oo,1,7)),oo.n));Wo.e!=Wo.i.gc();)if(Fo=bo(k1(Wo),135),!lu(au(zl(Fo,QT)))&&Fo.a)switch(Ss=Lfe(Fo),Jl(ws.b,Ss),bo(bs(Ss,hE),278).g){case 1:case 2:Xo.Fc((Sv(),VN));break;case 0:Xo.Fc((Sv(),qN)),Fl(Ss,hE,(g_(),lM))}if(vo=bo(bs(fo,dF),322),Rs=bo(bs(fo,ite),323),po=vo==(kL(),XV)||Rs==(GL(),xme),xo&&(!xo.a&&(xo.a=new Qp(tx,xo,5)),xo.a).i!=0&&po){for(Ls=Iq(xo),Zo=new P2,Ys=G1(Ls,0);Ys.b!=Ys.d.c;)zs=bo(q1(Ys),8),y0(Zo,new ov(zs));Fl(ws,A7e,Zo)}return ws}function oXt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1,v0,Op;for(Eu=0,Yu=0,ru=new H1,Nl=bo(Aw(E$(Kv(new Ou(null,new Du(ro.b,16)),new oie),new wE)),17).a+1,ku=Al(Q1,E0,28,Nl,15,1),Ss=Al(Q1,E0,28,Nl,15,1),ws=0;ws1)for(Eo=b1+1;EoAo.b.e.b*(1-Rs)+Ao.c.e.b*Rs));Zo++);if(Hl.gc()>0&&(v0=Ao.a.b==0?Pm(Ao.b.e):bo(lS(Ao.a),8),zs=G0(Pm(bo(Hl.Xb(Hl.gc()-1),40).e),bo(Hl.Xb(Hl.gc()-1),40).f),Wo=G0(Pm(bo(Hl.Xb(0),40).e),bo(Hl.Xb(0),40).f),Zo>=Hl.gc()-1&&v0.b>zs.b&&Ao.c.e.b>zs.b||Zo<=0&&v0.bAo.b.e.a*(1-Rs)+Ao.c.e.a*Rs));Zo++);if(Hl.gc()>0&&(v0=Ao.a.b==0?Pm(Ao.b.e):bo(lS(Ao.a),8),zs=G0(Pm(bo(Hl.Xb(Hl.gc()-1),40).e),bo(Hl.Xb(Hl.gc()-1),40).f),Wo=G0(Pm(bo(Hl.Xb(0),40).e),bo(Hl.Xb(0),40).f),Zo>=Hl.gc()-1&&v0.a>zs.a&&Ao.c.e.a>zs.a||Zo<=0&&v0.a=na(Tl(bs(ro,(fp(),GRe))))&&++Yu):(Xo.f&&Xo.d.e.a<=na(Tl(bs(ro,(fp(),Pme))))&&++Eu,Xo.g&&Xo.c.e.a+Xo.c.f.a>=na(Tl(bs(ro,(fp(),VRe))))&&++Yu)}else Ys==0?n4e(Ao):Ys<0&&(++ku[b1],++Ss[Op],Qu=eXt(Ao,oo,ro,new fm(Ql(Eu),Ql(Yu)),co,fo,new fm(Ql(Ss[Op]),Ql(ku[b1]))),Eu=bo(Qu.a,17).a,Yu=bo(Qu.b,17).a)}function sXt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls;if(fo=oo,To=co,ro.b&&fo.j==(nu(),l1)&&To.j==(nu(),l1)&&(Ls=fo,fo=To,To=Ls),p2(ro.a,fo)){if(jS(bo(m1(ro.a,fo),49),To))return 1}else N0(ro.a,fo,new Yp);if(p2(ro.a,To)){if(jS(bo(m1(ro.a,To),49),fo))return-1}else N0(ro.a,To,new Yp);if(p2(ro.d,fo)){if(jS(bo(m1(ro.d,fo),49),To))return-1}else N0(ro.d,fo,new Yp);if(p2(ro.d,To)){if(jS(bo(m1(ro.a,To),49),fo))return 1}else N0(ro.d,To,new Yp);if(fo.j!=To.j)return Rs=UEt(fo.j,To.j),Rs==-1?xx(ro,To,fo):xx(ro,fo,To),Rs;if(fo.e.c.length!=0&&To.e.c.length!=0){if(ro.b&&(Rs=Det(fo,To),Rs!=0))return Rs==-1?xx(ro,To,fo):Rs==1&&xx(ro,fo,To),Rs;if(vo=bo(cu(fo.e,0),18).c.i,Io=bo(cu(To.e,0),18).c.i,vo==Io)return po=bo(bs(bo(cu(fo.e,0),18),(Wl(),ip)),17).a,Ao=bo(bs(bo(cu(To.e,0),18),ip),17).a,po>Ao?xx(ro,fo,To):xx(ro,To,fo),poAo?1:0;for(Zo=ro.c,ws=0,Ss=Zo.length;wsAo?xx(ro,fo,To):xx(ro,To,fo),poAo?1:0):ro.b&&(Rs=Det(fo,To),Rs!=0)?(Rs==-1?xx(ro,To,fo):Rs==1&&xx(ro,fo,To),Rs):(xo=0,Fo=0,gp(bo(cu(fo.g,0),18),ip)&&(xo=bo(bs(bo(cu(fo.g,0),18),ip),17).a),gp(bo(cu(To.g,0),18),ip)&&(Fo=bo(bs(bo(cu(fo.g,0),18),ip),17).a),Eo&&Eo==Wo?lu(au(bs(bo(cu(fo.g,0),18),T_)))&&!lu(au(bs(bo(cu(To.g,0),18),T_)))?(xx(ro,fo,To),1):!lu(au(bs(bo(cu(fo.g,0),18),T_)))&&lu(au(bs(bo(cu(To.g,0),18),T_)))?(xx(ro,To,fo),-1):(xo>Fo?xx(ro,fo,To):xx(ro,To,fo),xoFo?1:0):(ro.f&&(ro.f._b(Eo)&&(xo=bo(ro.f.xc(Eo),17).a),ro.f._b(Wo)&&(Fo=bo(ro.f.xc(Wo),17).a)),xo>Fo?xx(ro,fo,To):xx(ro,To,fo),xoFo?1:0))):fo.e.c.length!=0&&To.g.c.length!=0?(xx(ro,fo,To),1):fo.g.c.length!=0&&To.e.c.length!=0?(xx(ro,To,fo),-1):gp(fo,(Wl(),ip))&&gp(To,ip)?(po=bo(bs(fo,ip),17).a,Ao=bo(bs(To,ip),17).a,po>Ao?xx(ro,fo,To):xx(ro,To,fo),poAo?1:0):(xx(ro,To,fo),-1)}function aXt(ro){ro.gb||(ro.gb=!0,ro.b=vy(ro,0),Dp(ro.b,18),vp(ro.b,19),ro.a=vy(ro,1),Dp(ro.a,1),vp(ro.a,2),vp(ro.a,3),vp(ro.a,4),vp(ro.a,5),ro.o=vy(ro,2),Dp(ro.o,8),Dp(ro.o,9),vp(ro.o,10),vp(ro.o,11),vp(ro.o,12),vp(ro.o,13),vp(ro.o,14),vp(ro.o,15),vp(ro.o,16),vp(ro.o,17),vp(ro.o,18),vp(ro.o,19),vp(ro.o,20),vp(ro.o,21),vp(ro.o,22),vp(ro.o,23),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),ro.p=vy(ro,3),Dp(ro.p,2),Dp(ro.p,3),Dp(ro.p,4),Dp(ro.p,5),vp(ro.p,6),vp(ro.p,7),Pv(ro.p),Pv(ro.p),ro.q=vy(ro,4),Dp(ro.q,8),ro.v=vy(ro,5),vp(ro.v,9),Pv(ro.v),Pv(ro.v),Pv(ro.v),ro.w=vy(ro,6),Dp(ro.w,2),Dp(ro.w,3),Dp(ro.w,4),vp(ro.w,5),ro.B=vy(ro,7),vp(ro.B,1),Pv(ro.B),Pv(ro.B),Pv(ro.B),ro.Q=vy(ro,8),vp(ro.Q,0),Pv(ro.Q),ro.R=vy(ro,9),Dp(ro.R,1),ro.S=vy(ro,10),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),ro.T=vy(ro,11),vp(ro.T,10),vp(ro.T,11),vp(ro.T,12),vp(ro.T,13),vp(ro.T,14),Pv(ro.T),Pv(ro.T),ro.U=vy(ro,12),Dp(ro.U,2),Dp(ro.U,3),vp(ro.U,4),vp(ro.U,5),vp(ro.U,6),vp(ro.U,7),Pv(ro.U),ro.V=vy(ro,13),vp(ro.V,10),ro.W=vy(ro,14),Dp(ro.W,18),Dp(ro.W,19),Dp(ro.W,20),vp(ro.W,21),vp(ro.W,22),vp(ro.W,23),ro.bb=vy(ro,15),Dp(ro.bb,10),Dp(ro.bb,11),Dp(ro.bb,12),Dp(ro.bb,13),Dp(ro.bb,14),Dp(ro.bb,15),Dp(ro.bb,16),vp(ro.bb,17),Pv(ro.bb),Pv(ro.bb),ro.eb=vy(ro,16),Dp(ro.eb,2),Dp(ro.eb,3),Dp(ro.eb,4),Dp(ro.eb,5),Dp(ro.eb,6),Dp(ro.eb,7),vp(ro.eb,8),vp(ro.eb,9),ro.ab=vy(ro,17),Dp(ro.ab,0),Dp(ro.ab,1),ro.H=vy(ro,18),vp(ro.H,0),vp(ro.H,1),vp(ro.H,2),vp(ro.H,3),vp(ro.H,4),vp(ro.H,5),Pv(ro.H),ro.db=vy(ro,19),vp(ro.db,2),ro.c=D0(ro,20),ro.d=D0(ro,21),ro.e=D0(ro,22),ro.f=D0(ro,23),ro.i=D0(ro,24),ro.g=D0(ro,25),ro.j=D0(ro,26),ro.k=D0(ro,27),ro.n=D0(ro,28),ro.r=D0(ro,29),ro.s=D0(ro,30),ro.t=D0(ro,31),ro.u=D0(ro,32),ro.fb=D0(ro,33),ro.A=D0(ro,34),ro.C=D0(ro,35),ro.D=D0(ro,36),ro.F=D0(ro,37),ro.G=D0(ro,38),ro.I=D0(ro,39),ro.J=D0(ro,40),ro.L=D0(ro,41),ro.M=D0(ro,42),ro.N=D0(ro,43),ro.O=D0(ro,44),ro.P=D0(ro,45),ro.X=D0(ro,46),ro.Y=D0(ro,47),ro.Z=D0(ro,48),ro.$=D0(ro,49),ro._=D0(ro,50),ro.cb=D0(ro,51),ro.K=D0(ro,52))}function lXt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1;for(xo=new xp,Hl=bo(bs(co,(ou(),Qw)),88),ws=0,Fm(xo,(!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a));xo.b!=0;)Io=bo(xo.b==0?null:(T1(xo.b!=0),hx(xo,xo.a.a)),27),Ao=kp(Io),($a(zl(Ao,GE))!==$a((Q_(),I4))||$a(zl(Ao,UT))===$a((y4(),zN))||$a(zl(Ao,UT))===$a((y4(),jN))||lu(au(zl(Ao,P6)))||$a(zl(Ao,wA))!==$a((CT(),pA))||$a(zl(Ao,j3))===$a((qx(),G6))||$a(zl(Ao,j3))===$a((qx(),CA))||$a(zl(Ao,YT))===$a((E4(),JN))||$a(zl(Ao,YT))===$a((E4(),eM)))&&!lu(au(zl(Io,Xee)))&&tp(Io,(Wl(),ip),Ql(ws++)),Rs=!lu(au(zl(Io,QT))),Rs&&(Wo=(!Io.a&&(Io.a=new Bl(F0,Io,10,11)),Io.a).i!=0,Zo=BBt(Io),Xo=$a(zl(Io,xA))===$a((x5(),B4)),b1=!h_(Io,($0(),oM))||bXe(u0(zl(Io,oM))),Ys=null,b1&&Xo&&(Wo||Zo)&&(Ys=Lat(Io),Fl(Ys,Qw,Hl),gp(Ys,iG)&&$Pe(new vke(na(Tl(bs(Ys,iG)))),Ys),bo(zl(Io,XT),181).gc()!=0&&(Fo=Ys,zp(new Ou(null,(!Io.c&&(Io.c=new Bl(fw,Io,9,9)),new Du(Io.c,16))),new DDe(Fo)),$st(Io,Ys))),ru=co,ku=bo(m1(ro.a,kp(Io)),10),ku&&(ru=ku.e),zs=cct(ro,Io,ru),Ys&&(zs.e=Ys,Ys.e=zs,Fm(xo,(!Io.a&&(Io.a=new Bl(F0,Io,10,11)),Io.a))));for(ws=0,Mp(xo,oo,xo.c.b,xo.c);xo.b!=0;){for(vo=bo(xo.b==0?null:(T1(xo.b!=0),hx(xo,xo.a.a)),27),To=new g1((!vo.b&&(vo.b=new Bl(Gp,vo,12,3)),vo.b));To.e!=To.i.gc();)Eo=bo(k1(To),74),tat(Eo),($a(zl(oo,GE))!==$a((Q_(),I4))||$a(zl(oo,UT))===$a((y4(),zN))||$a(zl(oo,UT))===$a((y4(),jN))||lu(au(zl(oo,P6)))||$a(zl(oo,wA))!==$a((CT(),pA))||$a(zl(oo,j3))===$a((qx(),G6))||$a(zl(oo,j3))===$a((qx(),CA))||$a(zl(oo,YT))===$a((E4(),JN))||$a(zl(oo,YT))===$a((E4(),eM)))&&tp(Eo,(Wl(),ip),Ql(ws++)),Yu=Zv(bo(Gs((!Eo.b&&(Eo.b=new Wu(D1,Eo,4,7)),Eo.b),0),84)),Qu=Zv(bo(Gs((!Eo.c&&(Eo.c=new Wu(D1,Eo,5,8)),Eo.c),0),84)),!(lu(au(zl(Eo,QT)))||lu(au(zl(Yu,QT)))||lu(au(zl(Qu,QT))))&&(Ss=g6(Eo)&&lu(au(zl(Yu,SA)))&&lu(au(zl(Eo,KT))),Nl=vo,Ss||D$(Qu,Yu)?Nl=Yu:D$(Yu,Qu)&&(Nl=Qu),ru=co,ku=bo(m1(ro.a,Nl),10),ku&&(ru=ku.e),Ls=M3e(ro,Eo,Nl,ru),Fl(Ls,(Wl(),k7e),lqt(ro,Eo,oo,co)));if(Xo=$a(zl(vo,xA))===$a((x5(),B4)),Xo)for(po=new g1((!vo.a&&(vo.a=new Bl(F0,vo,10,11)),vo.a));po.e!=po.i.gc();)fo=bo(k1(po),27),b1=!h_(fo,($0(),oM))||bXe(u0(zl(fo,oM))),Eu=$a(zl(fo,xA))===$a(B4),b1&&Eu&&Mp(xo,fo,xo.c.b,xo.c)}}function Wl(){Wl=qo;var ro,oo;Z0=new np(wTe),k7e=new np("coordinateOrigin"),Xge=new np("processors"),E7e=new Rp("compoundNode",(_f(),!1)),eG=new Rp("insideConnections",!1),A7e=new np("originalBendpoints"),R7e=new np("originalDummyNodePosition"),O7e=new np("originalLabelEdge"),lF=new np("representedLabels"),aF=new np("endLabels"),AR=new np("endLabel.origin"),OR=new Rp("labelSide",(Gw(),NG)),h7=new Rp("maxEdgeThickness",0),T_=new Rp("reversed",!1),IR=new np(Tut),JS=new Rp("longEdgeSource",null),Yx=new Rp("longEdgeTarget",null),bA=new Rp("longEdgeHasLabelDummies",!1),tG=new Rp("longEdgeBeforeLabelDummy",!1),qee=new Rp("edgeConstraint",(ET(),Nge)),L6=new np("inLayerLayoutUnit"),GT=new Rp("inLayerConstraint",(b5(),ZV)),RR=new Rp("inLayerSuccessorConstraint",new Zl),$7e=new Rp("inLayerSuccessorConstraintBetweenNonDummies",!1),aw=new np("portDummy"),Hee=new Rp("crossingHint",Ql(0)),Jy=new Rp("graphProperties",(oo=bo(PS(jge),9),new sx(oo,bo(cS(oo,oo.length),9),0))),_y=new Rp("externalPortSide",(nu(),gy)),C7e=new Rp("externalPortSize",new Nm),Gge=new np("externalPortReplacedDummies"),Vee=new np("externalPortReplacedDummy"),N5=new Rp("externalPortConnections",(ro=bo(PS(pv),9),new sx(ro,bo(cS(ro,ro.length),9),0))),B6=new Rp(vut,0),_7e=new np("barycenterAssociates"),NR=new np("TopSideComments"),$R=new np("BottomSideComments"),zee=new np("CommentConnectionPort"),Uge=new Rp("inputCollect",!1),Yge=new Rp("outputCollect",!1),JV=new Rp("cyclic",!1),T7e=new np("crossHierarchyMap"),Zge=new np("targetOffset"),new Rp("splineLabelSize",new Nm),g7=new np("spacings"),Gee=new Rp("partitionConstraint",!1),D6=new np("breakingPoint.info"),M7e=new np("splines.survivingEdge"),WT=new np("splines.route.start"),m7=new np("splines.edgeChain"),N7e=new np("originalPortConstraints"),F6=new np("selfLoopHolder"),WN=new np("splines.nsPortY"),ip=new np("modelOrder"),Kge=new np("longEdgeTargetNode"),F3=new Rp(Zut,!1),p7=new Rp(Zut,!1),Wge=new np("layerConstraints.hiddenNodes"),I7e=new np("layerConstraints.opposidePort"),Qge=new np("targetNode.modelOrder")}function cXt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo;for(Fo=G1(ro.b,0);Fo.b!=Fo.d.c;)if(Io=bo(q1(Fo),40),!Iu(Io.c,pJ))for(vo=bo(ny(new Ou(null,new Du(bjt(Io,ro),16)),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),oo==(_g(),qv)||oo==ey?vo.jd(new JW):vo.jd(new lie),Zo=vo.gc(),po=0;po0&&(Eo=bo(lS(bo(vo.Xb(po),65).a),8).a,Wo=Io.e.a+Io.f.a/2,To=bo(lS(bo(vo.Xb(po),65).a),8).b,Xo=Io.e.b+Io.f.b/2,fo>0&&lo.Math.abs(To-Xo)/(lo.Math.abs(Eo-Wo)/40)>50&&(Xo>To?iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a+fo/5.3,Io.e.b+Io.f.b*xo-fo/2)):iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a+fo/5.3,Io.e.b+Io.f.b*xo+fo/2)))),iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a,Io.e.b+Io.f.b*xo))):oo==ey?(Ao=na(Tl(bs(Io,(fp(),e_)))),Io.e.a-fo>Ao?iv(bo(vo.Xb(po),65).a,new Vl(Ao-co,Io.e.b+Io.f.b*xo)):bo(vo.Xb(po),65).a.b>0&&(Eo=bo(lS(bo(vo.Xb(po),65).a),8).a,Wo=Io.e.a+Io.f.a/2,To=bo(lS(bo(vo.Xb(po),65).a),8).b,Xo=Io.e.b+Io.f.b/2,fo>0&&lo.Math.abs(To-Xo)/(lo.Math.abs(Eo-Wo)/40)>50&&(Xo>To?iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a-fo/5.3,Io.e.b+Io.f.b*xo-fo/2)):iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a-fo/5.3,Io.e.b+Io.f.b*xo+fo/2)))),iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a,Io.e.b+Io.f.b*xo))):oo==Cx?(Ao=na(Tl(bs(Io,(fp(),ES)))),Io.e.b+Io.f.b+fo0&&(Eo=bo(lS(bo(vo.Xb(po),65).a),8).a,Wo=Io.e.a+Io.f.a/2,To=bo(lS(bo(vo.Xb(po),65).a),8).b,Xo=Io.e.b+Io.f.b/2,fo>0&&lo.Math.abs(Eo-Wo)/(lo.Math.abs(To-Xo)/40)>50&&(Wo>Eo?iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo-fo/2,Io.e.b+fo/5.3+Io.f.b)):iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo+fo/2,Io.e.b+fo/5.3+Io.f.b)))),iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo,Io.e.b+Io.f.b))):(Ao=na(Tl(bs(Io,(fp(),e_)))),wet(bo(vo.Xb(po),65),ro)?iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo,bo(lS(bo(vo.Xb(po),65).a),8).b)):Io.e.b-fo>Ao?iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo,Ao-co)):bo(vo.Xb(po),65).a.b>0&&(Eo=bo(lS(bo(vo.Xb(po),65).a),8).a,Wo=Io.e.a+Io.f.a/2,To=bo(lS(bo(vo.Xb(po),65).a),8).b,Xo=Io.e.b+Io.f.b/2,fo>0&&lo.Math.abs(Eo-Wo)/(lo.Math.abs(To-Xo)/40)>50&&(Wo>Eo?iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo-fo/2,Io.e.b-fo/5.3)):iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo+fo/2,Io.e.b-fo/5.3)))),iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo,Io.e.b)))}function $0(){$0=qo;var ro,oo;oM=new np(Bft),D7=new np(Fft),zIe=(IE(),Ave),Awt=new Ru($Ce,zIe),$7=new Ru(pR,null),Rwt=new np(z6e),qIe=(AT(),mp(Ive,As($s(Nve,1),Pl,298,0,[Ove]))),EG=new Ru(cJ,qIe),kG=new Ru(_V,(_f(),!1)),VIe=(_g(),R_),tC=new Ru(v0e,VIe),UIe=(S5(),Wve),WIe=new Ru(SV,UIe),Nwt=new Ru(P6e,!1),XIe=(x5(),Gte),O7=new Ru(lJ,XIe),oNe=new BC(12),L4=new Ru(_6,oNe),CG=new Ru(kB,!1),Bve=new Ru(fJ,!1),$G=new Ru(TB,!1),uNe=(Im(),U3),zF=new Ru(B1e,uNe),PR=new np(uJ),AG=new np(hV),Vve=new np(VZ),Gve=new np(EB),QIe=new P2,K6=new Ru(PCe,QIe),Iwt=new Ru(HCe,!1),Mwt=new Ru(qCe,!1),ZIe=new mD,sM=new Ru(GCe,ZIe),zte=new Ru(TCe,!1),Fwt=new Ru(Pft,1),R7=new np(jft),A7=new np(zft),aM=new Ru(pV,!1),new Ru(Hft,!0),Ql(0),new Ru(qft,Ql(100)),new Ru(Vft,!1),Ql(0),new Ru(Gft,Ql(4e3)),Ql(0),new Ru(Wft,Ql(400)),new Ru(Uft,!1),new Ru(Kft,!1),new Ru(Yft,!0),new Ru(Xft,!1),HIe=(CQ(),Xve),Owt=new Ru(j6e,HIe),Pwt=new Ru(gCe,10),jwt=new Ru(mCe,10),pNe=new Ru(R1e,20),zwt=new Ru(vCe,10),gNe=new Ru(L1e,2),mNe=new Ru(m0e,10),vNe=new Ru(bCe,0),Hte=new Ru(xCe,5),bNe=new Ru(yCe,1),yNe=new Ru(wCe,1),rC=new Ru(iA,20),Hwt=new Ru(SCe,10),SNe=new Ru(_Ce,10),jR=new np(ECe),xNe=new KHe,wNe=new Ru(WCe,xNe),Lwt=new np(y0e),sNe=!1,Dwt=new Ru(b0e,sNe),eNe=new BC(5),JIe=new Ru(OCe,eNe),tNe=(K$(),oo=bo(PS(Tv),9),new sx(oo,bo(cS(oo,oo.length),9),0)),I7=new Ru(vN,tNe),lNe=(R9(),W3),aNe=new Ru(MCe,lNe),Pve=new np(DCe),jve=new np(LCe),zve=new np(BCe),Fve=new np(FCe),nNe=(ro=bo(PS(YF),9),new sx(ro,bo(cS(ro,ro.length),9),0)),nC=new Ru(X9,nNe),iNe=Tu((ww(),dM)),V3=new Ru(gR,iNe),rNe=new Vl(0,0),N7=new Ru(mR,rNe),OA=new Ru(mN,!1),GIe=(g_(),lM),Dve=new Ru(jCe,GIe),Mve=new Ru(GZ,!1),Ql(1),new Ru(Qft,null),cNe=new np(VCe),Hve=new np(zCe),hNe=(nu(),gy),M7=new Ru(CCe,hNe),Ew=new np(kCe),fNe=(sw(),Tu(K3)),IA=new Ru(bN,fNe),qve=new Ru(ICe,!1),dNe=new Ru(NCe,!0),Vte=new Ru(gV,1),_Ne=new Ru(H6e,null),RG=new Ru(mV,150),qte=new Ru(vV,1.414),zR=new Ru(E6,null),qwt=new Ru(q6e,1),TG=new Ru(ACe,!1),Lve=new Ru(RCe,!1),KIe=new Ru(O1e,1),YIe=(tZ(),Kve),new Ru(Zft,YIe),Bwt=!0,Gwt=(K8(),DA),Wwt=DA,Vwt=DA}function rv(){rv=qo,S9e=new Xp("DIRECTION_PREPROCESSOR",0),y9e=new Xp("COMMENT_PREPROCESSOR",1),s7=new Xp("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),gge=new Xp("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),z9e=new Xp("PARTITION_PREPROCESSOR",4),pee=new Xp("LABEL_DUMMY_INSERTER",5),kee=new Xp("SELF_LOOP_PREPROCESSOR",6),mA=new Xp("LAYER_CONSTRAINT_PREPROCESSOR",7),P9e=new Xp("PARTITION_MIDPROCESSOR",8),R9e=new Xp("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),B9e=new Xp("NODE_PROMOTION",10),gA=new Xp("LAYER_CONSTRAINT_POSTPROCESSOR",11),j9e=new Xp("PARTITION_POSTPROCESSOR",12),C9e=new Xp("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),H9e=new Xp("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),h9e=new Xp("BREAKING_POINT_INSERTER",15),yee=new Xp("LONG_EDGE_SPLITTER",16),mge=new Xp("PORT_SIDE_PROCESSOR",17),dee=new Xp("INVERTED_PORT_PROCESSOR",18),See=new Xp("PORT_LIST_SORTER",19),V9e=new Xp("SORT_BY_INPUT_ORDER_OF_MODEL",20),xee=new Xp("NORTH_SOUTH_PORT_PREPROCESSOR",21),p9e=new Xp("BREAKING_POINT_PROCESSOR",22),F9e=new Xp(Vut,23),G9e=new Xp(Gut,24),_ee=new Xp("SELF_LOOP_PORT_RESTORER",25),q9e=new Xp("SINGLE_EDGE_GRAPH_WRAPPER",26),hee=new Xp("IN_LAYER_CONSTRAINT_PROCESSOR",27),E9e=new Xp("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),D9e=new Xp("LABEL_AND_NODE_SIZE_PROCESSOR",29),M9e=new Xp("INNERMOST_NODE_MARGIN_CALCULATOR",30),Tee=new Xp("SELF_LOOP_ROUTER",31),v9e=new Xp("COMMENT_NODE_MARGIN_CALCULATOR",32),fee=new Xp("END_LABEL_PREPROCESSOR",33),mee=new Xp("LABEL_DUMMY_SWITCHER",34),m9e=new Xp("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),MN=new Xp("LABEL_SIDE_SELECTOR",36),I9e=new Xp("HYPEREDGE_DUMMY_MERGER",37),$9e=new Xp("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),L9e=new Xp("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),tF=new Xp("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),w9e=new Xp("CONSTRAINTS_POSTPROCESSOR",41),b9e=new Xp("COMMENT_POSTPROCESSOR",42),N9e=new Xp("HYPERNODE_PROCESSOR",43),A9e=new Xp("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),bee=new Xp("LONG_EDGE_JOINER",45),Eee=new Xp("SELF_LOOP_POSTPROCESSOR",46),g9e=new Xp("BREAKING_POINT_REMOVER",47),wee=new Xp("NORTH_SOUTH_PORT_POSTPROCESSOR",48),O9e=new Xp("HORIZONTAL_COMPACTOR",49),gee=new Xp("LABEL_DUMMY_REMOVER",50),k9e=new Xp("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),_9e=new Xp("END_LABEL_SORTER",52),UV=new Xp("REVERSED_EDGE_RESTORER",53),uee=new Xp("END_LABEL_POSTPROCESSOR",54),T9e=new Xp("HIERARCHICAL_NODE_RESIZER",55),x9e=new Xp("DIRECTION_POSTPROCESSOR",56)}function D3e(){D3e=qo,G7e=(YH(),Mee),imt=new Ru(RTe,G7e),mmt=new Ru(OTe,(_f(),!1)),Q7e=(EX(),Vge),xmt=new Ru(YZ,Q7e),Lmt=new Ru(ITe,!1),Bmt=new Ru(NTe,!0),Rgt=new Ru(MTe,!1),o8e=(UH(),kme),Zmt=new Ru(DTe,o8e),Ql(1),svt=new Ru(LTe,Ql(7)),avt=new Ru(BTe,!1),vmt=new Ru(FTe,!1),V7e=(y4(),Oge),rmt=new Ru(V1e,V7e),e8e=(E4(),vme),Dmt=new Ru(xV,e8e),Z7e=(yx(),nG),Cmt=new Ru(PTe,Z7e),Ql(-1),Tmt=new Ru(jTe,null),Ql(-1),$mt=new Ru(zTe,Ql(-1)),Ql(-1),Amt=new Ru(G1e,Ql(4)),Ql(-1),Omt=new Ru(W1e,Ql(2)),J7e=(qx(),dte),Mmt=new Ru(U1e,J7e),Ql(0),Nmt=new Ru(K1e,Ql(0)),Emt=new Ru(Y1e,Ql(q0)),q7e=(kL(),rF),nmt=new Ru(AB,q7e),zgt=new Ru(HTe,!1),Kgt=new Ru(X1e,.1),emt=new Ru(Q1e,!1),Xgt=new Ru(qTe,null),Qgt=new Ru(VTe,null),Ql(-1),Zgt=new Ru(GTe,null),Ql(-1),Jgt=new Ru(WTe,Ql(-1)),Ql(0),Hgt=new Ru(UTe,Ql(40)),H7e=(SI(),Hge),Wgt=new Ru(Z1e,H7e),z7e=QV,qgt=new Ru(XZ,z7e),i8e=(GL(),vF),Qmt=new Ru(Q9,i8e),Hmt=new np(QZ),t8e=(HH(),Lee),Fmt=new Ru(J1e,t8e),n8e=(Aq(),Bee),jmt=new Ru(e0e,n8e),Gmt=new Ru(t0e,.3),Umt=new np(n0e),r8e=(H$(),fte),Kmt=new Ru(r0e,r8e),K7e=(dQ(),Cme),cmt=new Ru(KTe,K7e),Y7e=(IL(),Ame),umt=new Ru(YTe,Y7e),X7e=(RI(),wF),fmt=new Ru(ZZ,X7e),hmt=new Ru(JZ,.2),amt=new Ru(i0e,2),nvt=new Ru(XTe,null),ivt=new Ru(QTe,10),rvt=new Ru(ZTe,10),ovt=new Ru(JTe,20),Ql(0),Jmt=new Ru(eCe,Ql(0)),Ql(0),evt=new Ru(tCe,Ql(0)),Ql(0),tvt=new Ru(nCe,Ql(0)),Ogt=new Ru(o0e,!1),B7e=(WI(),iF),Ngt=new Ru(rCe,B7e),L7e=(DX(),Age),Igt=new Ru(iCe,L7e),ymt=new Ru(eJ,!1),Ql(0),bmt=new Ru(s0e,Ql(16)),Ql(0),wmt=new Ru(a0e,Ql(5)),l8e=(mQ(),Ime),Cvt=new Ru(R5,l8e),lvt=new Ru(tJ,10),fvt=new Ru(nJ,1),a8e=(ZX(),Nee),bvt=new Ru(RB,a8e),pvt=new np(l0e),s8e=Ql(1),Ql(0),mvt=new Ru(c0e,s8e),c8e=(QX(),Ome),Ovt=new Ru(rJ,c8e),$vt=new np(iJ),_vt=new Ru(oJ,!0),xvt=new Ru(sJ,2),kvt=new Ru(u0e,!0),U7e=(rZ(),Dee),smt=new Ru(oCe,U7e),W7e=(tR(),FN),omt=new Ru(sCe,W7e),j7e=(Q_(),I4),jgt=new Ru(aJ,j7e),Pgt=new Ru(aCe,!1),Fgt=new Ru(lCe,!1),F7e=(CT(),pA),Mgt=new Ru(f0e,F7e),P7e=(DL(),bme),Bgt=new Ru(cCe,P7e),Dgt=new Ru(d0e,0),Lgt=new Ru(h0e,0),_mt=Ige,Smt=XV,Rmt=cte,Imt=cte,kmt=mme,Ygt=(x5(),B4),tmt=rF,Ugt=rF,Vgt=rF,Ggt=B4,qmt=bF,Vmt=vF,Pmt=vF,zmt=vF,Wmt=Sme,Xmt=bF,Ymt=bF,dmt=(S5(),HR),pmt=HR,gmt=wF,lmt=OG,cvt=tM,uvt=$A,dvt=tM,hvt=$A,yvt=tM,wvt=$A,gvt=Rge,vvt=Nee,Ivt=tM,Nvt=$A,Avt=tM,Rvt=$A,Evt=$A,Svt=$A,Tvt=$A}function uXt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1,v0,Op,dw,Vv,nx,z7,V4,OS,IS,aC,KR,nT,YR,mE,ZE,J6,XR,H7,vE,lC,F5,NSt,WMe,e$,lP,hbe,QR,cP,qA,uP,pbe,MSt;for(WMe=0,v0=oo,Vv=0,V4=v0.length;Vv0&&(ro.a[mE.p]=WMe++)}for(cP=0,Op=co,nx=0,OS=Op.length;nx0;){for(mE=(T1(H7.b>0),bo(H7.a.Xb(H7.c=--H7.b),12)),XR=0,Eo=new _s(mE.e);Eo.a0&&(mE.j==(nu(),s1)?(ro.a[mE.p]=cP,++cP):(ro.a[mE.p]=cP+IS+KR,++KR))}cP+=KR}for(J6=new H1,Zo=new V_,b1=oo,dw=0,z7=b1.length;dwAo.b&&(Ao.b=vE)):mE.i.c==NSt&&(vEAo.c&&(Ao.c=vE));for(sI(ws,0,ws.length,null),QR=Al(Q1,E0,28,ws.length,15,1),fo=Al(Q1,E0,28,cP+1,15,1),Rs=0;Rs0;)ru%2>0&&(po+=pbe[ru+1]),ru=(ru-1)/2|0,++pbe[ru];for(Eu=Al(Obt,Xu,374,ws.length*2,0,1),Ys=0;Ys0&&TH(dw.f),zl(Rs,_Ne)!=null&&(Eo=bo(zl(Rs,_Ne),347),J6=Eo.Tg(Rs),d9(Rs,lo.Math.max(Rs.g,J6.a),lo.Math.max(Rs.f,J6.b)));if(OS=bo(zl(oo,L4),107),Xo=oo.g-(OS.b+OS.c),Wo=oo.f-(OS.d+OS.a),vE.bh("Available Child Area: ("+Xo+"|"+Wo+")"),tp(oo,$7,Xo/Wo),tnt(oo,po,fo.eh(z7)),bo(zl(oo,zR),280)==Qte&&(O3e(oo),d9(oo,OS.b+na(Tl(zl(oo,R7)))+OS.c,OS.d+na(Tl(zl(oo,A7)))+OS.a)),vE.bh("Executed layout algorithm: "+u0(zl(oo,oM))+" on node "+oo.k),bo(zl(oo,zR),280)==DA){if(Xo<0||Wo<0)throw Cs(new Q5("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+oo.k));for(h_(oo,R7)||h_(oo,A7)||O3e(oo),ws=na(Tl(zl(oo,R7))),Zo=na(Tl(zl(oo,A7))),vE.bh("Desired Child Area: ("+ws+"|"+Zo+")"),aC=Xo/ws,KR=Wo/Zo,IS=lo.Math.min(aC,lo.Math.min(KR,na(Tl(zl(oo,qwt))))),tp(oo,Vte,IS),vE.bh(oo.k+" -- Local Scale Factor (X|Y): ("+aC+"|"+KR+")"),Ys=bo(zl(oo,EG),21),vo=0,xo=0,IS'?":Iu(Rdt,ro)?"'(?<' or '(? toIndex: ",Z3e=", toIndex: ",J3e="Index: ",eTe=", Size: ",dN="org.eclipse.elk.alg.common",g0={50:1},Jct="org.eclipse.elk.alg.common.compaction",eut="Scanline/EventHandler",PE="org.eclipse.elk.alg.common.compaction.oned",tut="CNode belongs to another CGroup.",nut="ISpacingsHandler/1",b1e="The ",y1e=" instance has been finished already.",rut="The direction ",iut=" is not supported by the CGraph instance.",out="OneDimensionalCompactor",sut="OneDimensionalCompactor/lambda$0$Type",aut="Quadruplet",lut="ScanlineConstraintCalculator",cut="ScanlineConstraintCalculator/ConstraintsScanlineHandler",uut="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",fut="ScanlineConstraintCalculator/Timestamp",dut="ScanlineConstraintCalculator/lambda$0$Type",rE={178:1,46:1},w1e="org.eclipse.elk.alg.common.compaction.options",py="org.eclipse.elk.core.data",tTe="org.eclipse.elk.polyomino.traversalStrategy",nTe="org.eclipse.elk.polyomino.lowLevelSort",rTe="org.eclipse.elk.polyomino.highLevelSort",iTe="org.eclipse.elk.polyomino.fill",Vx={134:1},x1e="polyomino",xB="org.eclipse.elk.alg.common.networksimplex",jE={183:1,3:1,4:1},hut="org.eclipse.elk.alg.common.nodespacing",MT="org.eclipse.elk.alg.common.nodespacing.cellsystem",hN="CENTER",put={217:1,336:1},oTe={3:1,4:1,5:1,603:1},fR="LEFT",dR="RIGHT",sTe="Vertical alignment cannot be null",aTe="BOTTOM",FZ="org.eclipse.elk.alg.common.nodespacing.internal",SB="UNDEFINED",x_=.01,uV="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",gut="LabelPlacer/lambda$0$Type",mut="LabelPlacer/lambda$1$Type",vut="portRatioOrPosition",pN="org.eclipse.elk.alg.common.overlaps",S1e="DOWN",iE="org.eclipse.elk.alg.common.polyomino",PZ="NORTH",_1e="EAST",E1e="SOUTH",k1e="WEST",jZ="org.eclipse.elk.alg.common.polyomino.structures",lTe="Direction",T1e="Grid is only of size ",C1e=". Requested point (",$1e=") is out of bounds.",zZ=" Given center based coordinates were (",fV="org.eclipse.elk.graph.properties",but="IPropertyHolder",cTe={3:1,96:1,137:1},hR="org.eclipse.elk.alg.common.spore",yut="org.eclipse.elk.alg.common.utils",DT={205:1},U9="org.eclipse.elk.core",wut="Connected Components Compaction",xut="org.eclipse.elk.alg.disco",HZ="org.eclipse.elk.alg.disco.graph",A1e="org.eclipse.elk.alg.disco.options",uTe="CompactionStrategy",fTe="org.eclipse.elk.disco.componentCompaction.strategy",dTe="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",hTe="org.eclipse.elk.disco.debug.discoGraph",pTe="org.eclipse.elk.disco.debug.discoPolys",Sut="componentCompaction",LT="org.eclipse.elk.disco",R1e="org.eclipse.elk.spacing.componentComponent",O1e="org.eclipse.elk.edge.thickness",pR="org.eclipse.elk.aspectRatio",_6="org.eclipse.elk.padding",K9="org.eclipse.elk.alg.disco.transform",I1e=1.5707963267948966,Y9=17976931348623157e292,rA={3:1,4:1,5:1,198:1},_ut={3:1,6:1,4:1,5:1,100:1,115:1},N1e="org.eclipse.elk.alg.force",gTe="ComponentsProcessor",Eut="ComponentsProcessor/1",mTe="ElkGraphImporter/lambda$0$Type",dV="org.eclipse.elk.alg.force.graph",kut="Component Layout",vTe="org.eclipse.elk.alg.force.model",qZ="org.eclipse.elk.force.model",bTe="org.eclipse.elk.force.iterations",yTe="org.eclipse.elk.force.repulsivePower",M1e="org.eclipse.elk.force.temperature",oE=.001,D1e="org.eclipse.elk.force.repulsion",_B="org.eclipse.elk.alg.force.options",gN=1.600000023841858,x2="org.eclipse.elk.force",hV="org.eclipse.elk.priority",iA="org.eclipse.elk.spacing.nodeNode",L1e="org.eclipse.elk.spacing.edgeLabel",VZ="org.eclipse.elk.randomSeed",EB="org.eclipse.elk.separateConnectedComponents",kB="org.eclipse.elk.interactive",B1e="org.eclipse.elk.portConstraints",GZ="org.eclipse.elk.edgeLabels.inline",TB="org.eclipse.elk.omitNodeMicroLayout",mN="org.eclipse.elk.nodeSize.fixedGraphSize",gR="org.eclipse.elk.nodeSize.options",X9="org.eclipse.elk.nodeSize.constraints",vN="org.eclipse.elk.nodeLabels.placement",bN="org.eclipse.elk.portLabels.placement",pV="org.eclipse.elk.topdownLayout",gV="org.eclipse.elk.topdown.scaleFactor",mV="org.eclipse.elk.topdown.hierarchicalNodeWidth",vV="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",E6="org.eclipse.elk.topdown.nodeType",wTe="origin",Tut="random",Cut="boundingBox.upLeft",$ut="boundingBox.lowRight",xTe="org.eclipse.elk.stress.fixed",STe="org.eclipse.elk.stress.desiredEdgeLength",_Te="org.eclipse.elk.stress.dimension",ETe="org.eclipse.elk.stress.epsilon",kTe="org.eclipse.elk.stress.iterationLimit",A3="org.eclipse.elk.stress",Aut="ELK Stress",mR="org.eclipse.elk.nodeSize.minimum",WZ="org.eclipse.elk.alg.force.stress",Rut="Layered layout",vR="org.eclipse.elk.alg.layered",bV="org.eclipse.elk.alg.layered.compaction.components",CB="org.eclipse.elk.alg.layered.compaction.oned",UZ="org.eclipse.elk.alg.layered.compaction.oned.algs",BT="org.eclipse.elk.alg.layered.compaction.recthull",S_="org.eclipse.elk.alg.layered.components",sE="NONE",TTe="MODEL_ORDER",My={3:1,6:1,4:1,9:1,5:1,126:1},Out={3:1,6:1,4:1,5:1,150:1,100:1,115:1},KZ="org.eclipse.elk.alg.layered.compound",hp={47:1},Yy="org.eclipse.elk.alg.layered.graph",F1e=" -> ",Iut="Not supported by LGraph",CTe="Port side is undefined",P1e={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},T4={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},Nut={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},Mut=`([{"' \r +`)}return[]}function IDt(ro){var oo;return oo=(qZe(),m1t),oo[ro>>>28]|oo[ro>>24&15]<<4|oo[ro>>20&15]<<8|oo[ro>>16&15]<<12|oo[ro>>12&15]<<16|oo[ro>>8&15]<<20|oo[ro>>4&15]<<24|oo[ro&15]<<28}function Knt(ro){var oo,co,fo;ro.b==ro.c&&(fo=ro.a.length,co=xEe(lo.Math.max(8,fo))<<1,ro.b!=0?(oo=cS(ro.a,co),iJe(ro,oo,fo),ro.a=oo,ro.b=0):d$(ro.a,co),ro.c=fo)}function NDt(ro,oo){var co;return co=ro.b,co.pf(($0(),Ew))?co.ag()==(nu(),l1)?-co.Mf().a-na(Tl(co.of(Ew))):oo+na(Tl(co.of(Ew))):co.ag()==(nu(),l1)?-co.Mf().a:oo}function Eq(ro){var oo;return ro.b.c.length!=0&&bo(cu(ro.b,0),72).a?bo(cu(ro.b,0),72).a:(oo=Jce(ro),oo??""+(ro.c?Xv(ro.c.a,ro,0):-1))}function YQ(ro){var oo;return ro.f.c.length!=0&&bo(cu(ro.f,0),72).a?bo(cu(ro.f,0),72).a:(oo=Jce(ro),oo??""+(ro.i?Xv(ro.i.j,ro,0):-1))}function MDt(ro,oo){var co,fo;if(oo<0||oo>=ro.gc())return null;for(co=oo;co0?ro.c:0),po=lo.Math.max(po,oo.d),++fo;ro.e=vo,ro.b=po}function LDt(ro){var oo,co;if(!ro.b)for(ro.b=_X(bo(ro.f,123).kh().i),co=new g1(bo(ro.f,123).kh());co.e!=co.i.gc();)oo=bo(k1(co),135),Jl(ro.b,new Qae(oo));return ro.b}function BDt(ro,oo){var co,fo,po;if(oo.dc())return zO(),zO(),GG;for(co=new kVe(ro,oo.gc()),po=new g1(ro);po.e!=po.i.gc();)fo=k1(po),oo.Hc(fo)&&Y1(co,fo);return co}function Gke(ro,oo,co,fo){return oo==0?fo?(!ro.o&&(ro.o=new V2((Ny(),XE),F4,ro,0)),ro.o):(!ro.o&&(ro.o=new V2((Ny(),XE),F4,ro,0)),FH(ro.o)):jQ(ro,oo,co,fo)}function _de(ro){var oo,co;if(ro.rb)for(oo=0,co=ro.rb.i;oo>22),po+=fo>>22,po<0)?!1:(ro.l=co&xw,ro.m=fo&xw,ro.h=po&A5,!0)}function Ede(ro,oo,co,fo,po,vo,xo){var Eo,To;return!(oo.Te()&&(To=ro.a.Ne(co,fo),To<0||!po&&To==0)||oo.Ue()&&(Eo=ro.a.Ne(co,vo),Eo>0||!xo&&Eo==0))}function zDt(ro,oo){$I();var co;if(co=ro.j.g-oo.j.g,co!=0)return 0;switch(ro.j.g){case 2:return Vfe(oo,Y9e)-Vfe(ro,Y9e);case 4:return Vfe(ro,K9e)-Vfe(oo,K9e)}return 0}function HDt(ro){switch(ro.g){case 0:return Mge;case 1:return Dge;case 2:return Lge;case 3:return Bge;case 4:return Dee;case 5:return Fge;default:return null}}function jv(ro,oo,co){var fo,po;return fo=(po=new Gae,TT(po,oo),s2(po,co),Y1((!ro.c&&(ro.c=new Bl(Y6,ro,12,10)),ro.c),po),po),d4(fo,0),L$(fo,1),b4(fo,!0),m4(fo,!0),fo}function J8(ro,oo){var co,fo;if(oo>=ro.i)throw Cs(new Wle(oo,ro.i));return++ro.j,co=ro.g[oo],fo=ro.i-oo-1,fo>0&&jy(ro.g,oo+1,ro.g,oo,fo),Np(ro.g,--ro.i,null),ro.Qi(oo,co),ro.Ni(),co}function Ynt(ro,oo){var co,fo;return ro.Db>>16==17?ro.Cb.Th(ro,21,Jx,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||ro.ii()),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function qDt(ro){var oo,co,fo,po;for(Hu(),Up(ro.c,ro.a),po=new _s(ro.c);po.aco.a.c.length))throw Cs(new i1("index must be >= 0 and <= layer node count"));ro.c&&A2(ro.c.a,ro),ro.c=co,co&&HC(co.a,oo,ro)}function ert(ro,oo){var co,fo,po;for(fo=new x1(E1(_5(ro).a.Kc(),new ko));W1(fo);)return co=bo(R1(fo),18),po=bo(oo.Kb(co),10),new aD(a0(po.n.b+po.o.b/2));return bD(),bD(),xpe}function trt(ro,oo){this.c=new H1,this.a=ro,this.b=oo,this.d=bo(bs(ro,(Wl(),g7)),312),$a(bs(ro,(ou(),N8e)))===$a((HH(),Lee))?this.e=new VFe:this.e=new qFe}function KL(ro,oo){var co,fo;return fo=null,ro.pf(($0(),jR))&&(co=bo(ro.of(jR),96),co.pf(oo)&&(fo=co.of(oo))),fo==null&&ro.Tf()&&(fo=ro.Tf().of(oo)),fo==null&&(fo=iu(oo)),fo}function kde(ro,oo){var co,fo;co=ro.fd(oo);try{return fo=co.Pb(),co.Qb(),fo}catch(po){throw po=$p(po),Hs(po,112)?Cs(new Dv("Can't remove element "+oo)):Cs(po)}}function QDt(ro,oo){var co,fo,po;if(fo=new MK,po=new EEe(fo.q.getFullYear()-$3,fo.q.getMonth(),fo.q.getDate()),co=lWt(ro,oo,po),co==0||co0?oo:0),++co;return new Vl(fo,po)}function Xke(ro,oo){var co,fo;return ro.Db>>16==6?ro.Cb.Th(ro,6,Gp,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Ny(),Jte)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function Qke(ro,oo){var co,fo;return ro.Db>>16==7?ro.Cb.Th(ro,1,jG,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Ny(),eMe)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function Zke(ro,oo){var co,fo;return ro.Db>>16==9?ro.Cb.Th(ro,9,F0,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Ny(),nMe)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function irt(ro,oo){var co,fo;return ro.Db>>16==5?ro.Cb.Th(ro,9,cne,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Pu(),j4)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function ort(ro,oo){var co,fo;return ro.Db>>16==7?ro.Cb.Th(ro,6,t_,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Pu(),H4)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function Jke(ro,oo){var co,fo;return ro.Db>>16==3?ro.Cb.Th(ro,0,HG,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Pu(),P4)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function srt(){this.a=new Gie,this.g=new GQ,this.j=new GQ,this.b=new H1,this.d=new GQ,this.i=new GQ,this.k=new H1,this.c=new H1,this.e=new H1,this.f=new H1}function eLt(ro,oo,co){var fo,po,vo;for(co<0&&(co=0),vo=ro.i,po=co;pou1e)return HI(ro,fo);if(fo==ro)return!0}}return!1}function nLt(ro){switch(EY(),ro.q.g){case 5:qit(ro,(nu(),s1)),qit(ro,z1);break;case 4:Wot(ro,(nu(),s1)),Wot(ro,z1);break;default:Ylt(ro,(nu(),s1)),Ylt(ro,z1)}}function rLt(ro){switch(EY(),ro.q.g){case 5:cot(ro,(nu(),p1)),cot(ro,l1);break;case 4:dnt(ro,(nu(),p1)),dnt(ro,l1);break;default:Xlt(ro,(nu(),p1)),Xlt(ro,l1)}}function iLt(ro){var oo,co;oo=bo(bs(ro,(vS(),tpt)),17),oo?(co=oo.a,co==0?Fl(ro,(g3(),see),new Kfe):Fl(ro,(g3(),see),new CX(co))):Fl(ro,(g3(),see),new CX(1))}function oLt(ro,oo){var co;switch(co=ro.i,oo.g){case 1:return-(ro.n.b+ro.o.b);case 2:return ro.n.a-co.o.a;case 3:return ro.n.b-co.o.b;case 4:return-(ro.n.a+ro.o.a)}return 0}function sLt(ro,oo){switch(ro.g){case 0:return oo==(yx(),P3)?Cee:$ee;case 1:return oo==(yx(),P3)?Cee:KV;case 2:return oo==(yx(),P3)?KV:$ee;default:return KV}}function Tq(ro,oo){var co,fo,po;for(A2(ro.a,oo),ro.e-=oo.r+(ro.a.c.length==0?0:ro.c),po=a6e,fo=new _s(ro.a);fo.a>16==3?ro.Cb.Th(ro,12,F0,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Ny(),JNe)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function t5e(ro,oo){var co,fo;return ro.Db>>16==11?ro.Cb.Th(ro,10,F0,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Ny(),tMe)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function art(ro,oo){var co,fo;return ro.Db>>16==10?ro.Cb.Th(ro,11,Jx,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Pu(),z4)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function lrt(ro,oo){var co,fo;return ro.Db>>16==10?ro.Cb.Th(ro,12,eS,oo):(fo=bv(bo(Uu((co=bo(n1(ro,16),29),co||(Pu(),jA)),ro.Db>>16),19)),ro.Cb.Th(ro,fo.n,fo.f,oo))}function Hx(ro){var oo;return!(ro.Bb&1)&&ro.r&&ro.r.Vh()&&(oo=bo(ro.r,54),ro.r=bo(y3(ro,oo),142),ro.r!=oo&&ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,9,8,oo,ro.r))),ro.r}function Tde(ro,oo,co){var fo;return fo=As($s(Am,1),Iv,28,15,[C5e(ro,(US(),xy),oo,co),C5e(ro,c2,oo,co),C5e(ro,Sy,oo,co)]),ro.f&&(fo[0]=lo.Math.max(fo[0],fo[2]),fo[2]=fo[0]),fo}function aLt(ro,oo){var co,fo,po;if(po=OMt(ro,oo),po.c.length!=0)for(Up(po,new Nne),co=po.c.length,fo=0;fo>19,Ao=oo.h>>19,To!=Ao?Ao-To:(po=ro.h,Eo=oo.h,po!=Eo?po-Eo:(fo=ro.m,xo=oo.m,fo!=xo?fo-xo:(co=ro.l,vo=oo.l,co-vo)))}function XQ(){XQ=qo,bAe=(bZ(),Vpe),vAe=new Ru(tTe,bAe),mAe=(qX(),qpe),gAe=new Ru(nTe,mAe),pAe=(LQ(),Hpe),hAe=new Ru(rTe,pAe),dAe=new Ru(iTe,(_f(),!0))}function YL(ro,oo,co){var fo,po;fo=oo*co,Hs(ro.g,154)?(po=P8(ro),po.f.d?po.f.a||(ro.d.a+=fo+x_):(ro.d.d-=fo+x_,ro.d.a+=fo+x_)):Hs(ro.g,10)&&(ro.d.d-=fo,ro.d.a+=2*fo)}function crt(ro,oo,co){var fo,po,vo,xo,Eo;for(po=ro[co.g],Eo=new _s(oo.d);Eo.a0?ro.b:0),++co;oo.b=fo,oo.e=po}function urt(ro){var oo,co,fo;if(fo=ro.b,Yje(ro.i,fo.length)){for(co=fo.length*2,ro.b=Al(kpe,rV,303,co,0,1),ro.c=Al(kpe,rV,303,co,0,1),ro.f=co-1,ro.i=0,oo=ro.a;oo;oo=oo.c)Dq(ro,oo,oo);++ro.g}}function pLt(ro,oo,co,fo){var po,vo,xo,Eo;for(po=0;poxo&&(Eo=xo/fo),po>vo&&(To=vo/po),G_(ro,lo.Math.min(Eo,To)),ro}function mLt(){EZ();var ro,oo;try{if(oo=bo(d5e((r3(),tS),TN),2113),oo)return oo}catch(co){if(co=$p(co),Hs(co,103))ro=co,eSe((c0(),ro));else throw Cs(co)}return new Hie}function vLt(){EZ();var ro,oo;try{if(oo=bo(d5e((r3(),tS),Wx),2040),oo)return oo}catch(co){if(co=$p(co),Hs(co,103))ro=co,eSe((c0(),ro));else throw Cs(co)}return new doe}function bLt(){pQe();var ro,oo;try{if(oo=bo(d5e((r3(),tS),HT),2122),oo)return oo}catch(co){if(co=$p(co),Hs(co,103))ro=co,eSe((c0(),ro));else throw Cs(co)}return new Zoe}function yLt(ro,oo,co){var fo,po;return po=ro.e,ro.e=oo,ro.Db&4&&!(ro.Db&1)&&(fo=new Em(ro,1,4,po,oo),co?co.nj(fo):co=fo),po!=oo&&(oo?co=iN(ro,cZ(ro,oo),co):co=iN(ro,ro.a,co)),co}function frt(){MK.call(this),this.e=-1,this.a=!1,this.p=Ym,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Ym}function wLt(ro,oo){var co,fo,po;if(fo=ro.b.d.d,ro.a||(fo+=ro.b.d.a),po=oo.b.d.d,oo.a||(po+=oo.b.d.a),co=sp(fo,po),co==0){if(!ro.a&&oo.a)return-1;if(!oo.a&&ro.a)return 1}return co}function xLt(ro,oo){var co,fo,po;if(fo=ro.b.b.d,ro.a||(fo+=ro.b.b.a),po=oo.b.b.d,oo.a||(po+=oo.b.b.a),co=sp(fo,po),co==0){if(!ro.a&&oo.a)return-1;if(!oo.a&&ro.a)return 1}return co}function SLt(ro,oo){var co,fo,po;if(fo=ro.b.g.d,ro.a||(fo+=ro.b.g.a),po=oo.b.g.d,oo.a||(po+=oo.b.g.a),co=sp(fo,po),co==0){if(!ro.a&&oo.a)return-1;if(!oo.a&&ro.a)return 1}return co}function r5e(){r5e=qo,ypt=q2(_0(_0(_0(new Zp,(Km(),Qy),(rv(),M9e)),Qy,D9e),Jv,L9e),Jv,_9e),xpt=_0(_0(new Zp,Qy,m9e),Qy,E9e),wpt=q2(new Zp,Jv,T9e)}function _Lt(ro){var oo,co,fo,po,vo;for(oo=bo(bs(ro,(Wl(),aF)),85),vo=ro.n,fo=oo.Cc().Kc();fo.Ob();)co=bo(fo.Pb(),314),po=co.i,po.c+=vo.a,po.d+=vo.b,co.c?Nst(co):Mst(co);Fl(ro,aF,null)}function ELt(ro,oo,co){var fo,po;switch(po=ro.b,fo=po.d,oo.g){case 1:return-fo.d-co;case 2:return po.o.a+fo.c+co;case 3:return po.o.b+fo.a+co;case 4:return-fo.b-co;default:return-1}}function kLt(ro,oo,co){var fo,po;for(co.Ug("Interactive node placement",1),ro.a=bo(bs(oo,(Wl(),g7)),312),po=new _s(oo.b);po.a0&&(xo=(vo&q0)%ro.d.length,po=s4e(ro,xo,vo,oo),po)?(Eo=po.nd(co),Eo):(fo=ro.ck(vo,oo,co),ro.c.Fc(fo),null)}function s5e(ro,oo){var co,fo,po,vo;switch(g4(ro,oo).Kl()){case 3:case 2:{for(co=H9(oo),po=0,vo=co.i;po=0;fo--)if(Iu(ro[fo].d,oo)||Iu(ro[fo].d,co)){ro.length>=fo+1&&ro.splice(0,fo+1);break}return ro}function $q(ro,oo){var co;return ty(ro)&&ty(oo)&&(co=ro/oo,sV0&&(ro.b+=2,ro.a+=fo):(ro.b+=1,ro.a+=lo.Math.min(fo,po))}function brt(ro){var oo;oo=bo(bs(bo(wx(ro.b,0),40),(by(),tOe)),107),Fl(ro,(fp(),nM),new Vl(0,0)),dat(new LH,ro,oo.b+oo.c-na(Tl(bs(ro,Pme))),oo.d+oo.a-na(Tl(bs(ro,jme))))}function yrt(ro,oo){var co,fo;if(fo=!1,Cm(oo)&&(fo=!0,N8(ro,new T$(u0(oo)))),fo||Hs(oo,242)&&(fo=!0,N8(ro,(co=Jwe(bo(oo,242)),new cD(co)))),!fo)throw Cs(new Jae(r$e))}function HLt(ro,oo,co,fo){var po,vo,xo;return po=new m5(ro.e,1,10,(xo=oo.c,Hs(xo,90)?bo(xo,29):(Pu(),nS)),(vo=co.c,Hs(vo,90)?bo(vo,29):(Pu(),nS)),x4(ro,oo),!1),fo?fo.nj(po):fo=po,fo}function c5e(ro){var oo,co;switch(bo(bs(zm(ro),(ou(),T8e)),429).g){case 0:return oo=ro.n,co=ro.o,new Vl(oo.a+co.a/2,oo.b+co.b/2);case 1:return new ov(ro.n);default:return null}}function Aq(){Aq=qo,Bee=new BD(sE,0),f7e=new BD("LEFTUP",1),h7e=new BD("RIGHTUP",2),u7e=new BD("LEFTDOWN",3),d7e=new BD("RIGHTDOWN",4),Pge=new BD("BALANCED",5)}function qLt(ro,oo,co){var fo,po,vo;if(fo=sp(ro.a[oo.p],ro.a[co.p]),fo==0){if(po=bo(bs(oo,(Wl(),RR)),15),vo=bo(bs(co,RR),15),po.Hc(co))return-1;if(vo.Hc(oo))return 1}return fo}function VLt(ro){switch(ro.g){case 1:return new sU;case 2:return new PM;case 3:return new oU;case 0:return null;default:throw Cs(new i1(T0e+(ro.f!=null?ro.f:""+ro.g)))}}function u5e(ro,oo,co){switch(oo){case 1:!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),U1(ro.n),!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),Bp(ro.n,bo(co,16));return;case 2:mI(ro,u0(co));return}REe(ro,oo,co)}function f5e(ro,oo,co){switch(oo){case 3:r6(ro,na(Tl(co)));return;case 4:i6(ro,na(Tl(co)));return;case 5:m2(ro,na(Tl(co)));return;case 6:b2(ro,na(Tl(co)));return}u5e(ro,oo,co)}function QQ(ro,oo,co){var fo,po,vo;vo=(fo=new Gae,fo),po=b_(vo,oo,null),po&&po.oj(),s2(vo,co),Y1((!ro.c&&(ro.c=new Bl(Y6,ro,12,10)),ro.c),vo),d4(vo,0),L$(vo,1),b4(vo,!0),m4(vo,!0)}function d5e(ro,oo){var co,fo,po;return co=OD(ro.i,oo),Hs(co,241)?(po=bo(co,241),po.zi()==null,po.wi()):Hs(co,507)?(fo=bo(co,2037),po=fo.b,po):null}function GLt(ro,oo,co,fo){var po,vo;return a0(oo),a0(co),vo=bo(tL(ro.d,oo),17),jQe(!!vo,"Row %s not in %s",oo,ro.e),po=bo(tL(ro.b,co),17),jQe(!!po,"Column %s not in %s",co,ro.c),QJe(ro,vo.a,po.a,fo)}function wrt(ro,oo,co,fo,po,vo,xo){var Eo,To,Ao,Io,Po;if(Io=po[vo],Ao=vo==xo-1,Eo=Ao?fo:0,Po=Pnt(Eo,Io),fo!=10&&As($s(ro,xo-vo),oo[vo],co[vo],Eo,Po),!Ao)for(++vo,To=0;To1||Eo==-1?(vo=bo(To,15),po.Wb($Nt(ro,vo))):po.Wb(fhe(ro,bo(To,58)))))}function ZLt(ro,oo,co,fo){Eje();var po=wpe;function vo(){for(var xo=0;xo0)return!1;return!0}function tBt(ro){var oo,co,fo,po,vo;for(fo=new ST(new su(ro.b).a);fo.b;)co=a6(fo),oo=bo(co.ld(),10),vo=bo(bo(co.md(),42).a,10),po=bo(bo(co.md(),42).b,8),G0(zS(oo.n),G0(Pm(vo.n),po))}function nBt(ro){switch(bo(bs(ro.b,(ou(),y8e)),387).g){case 1:zp(Kv(fy(new Ou(null,new Du(ro.d,16)),new bre),new yre),new wre);break;case 2:Qqt(ro);break;case 0:APt(ro)}}function rBt(ro,oo,co){var fo,po,vo;for(fo=co,!fo&&(fo=new u8),fo.Ug("Layout",ro.a.c.length),vo=new _s(ro.a);vo.aS0e)return co;po>-1e-6&&++co}return co}function p5e(ro,oo){var co;oo!=ro.b?(co=null,ro.b&&(co=gX(ro.b,ro,-4,co)),oo&&(co=Z8(oo,ro,-4,co)),co=Ket(ro,oo,co),co&&co.oj()):ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,3,oo,oo))}function _rt(ro,oo){var co;oo!=ro.f?(co=null,ro.f&&(co=gX(ro.f,ro,-1,co)),oo&&(co=Z8(oo,ro,-1,co)),co=Uet(ro,oo,co),co&&co.oj()):ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,0,oo,oo))}function aBt(ro,oo,co,fo){var po,vo,xo,Eo;return $w(ro.e)&&(po=oo.Lk(),Eo=oo.md(),vo=co.md(),xo=d3(ro,1,po,Eo,vo,po.Jk()?tN(ro,po,vo,Hs(po,102)&&(bo(po,19).Bb&hv)!=0):-1,!0),fo?fo.nj(xo):fo=xo),fo}function Ert(ro){var oo,co,fo;if(ro==null)return null;if(co=bo(ro,15),co.dc())return"";for(fo=new Z5,oo=co.Kc();oo.Ob();)Av(fo,(rp(),u0(oo.Pb()))),fo.a+=" ";return Kle(fo,fo.a.length-1)}function krt(ro){var oo,co,fo;if(ro==null)return null;if(co=bo(ro,15),co.dc())return"";for(fo=new Z5,oo=co.Kc();oo.Ob();)Av(fo,(rp(),u0(oo.Pb()))),fo.a+=" ";return Kle(fo,fo.a.length-1)}function lBt(ro,oo,co){var fo,po;return fo=ro.c[oo.c.p][oo.p],po=ro.c[co.c.p][co.p],fo.a!=null&&po.a!=null?Lce(fo.a,po.a):fo.a!=null?-1:po.a!=null?1:0}function cBt(ro,oo,co){return co.Ug("Tree layout",1),SH(ro.b),HS(ro.b,(eR(),bte),bte),HS(ro.b,EF,EF),HS(ro.b,kF,kF),HS(ro.b,TF,TF),ro.a=Yq(ro.b,oo),rBt(ro,oo,co.eh(1)),co.Vg(),oo}function uBt(ro,oo){var co,fo,po,vo,xo,Eo;if(oo)for(vo=oo.a.length,co=new fT(vo),Eo=(co.b-co.a)*co.c<0?(i3(),eT):new a3(co);Eo.Ob();)xo=bo(Eo.Pb(),17),po=nI(oo,xo.a),fo=new jBe(ro),v6t(fo.a,po)}function fBt(ro,oo){var co,fo,po,vo,xo,Eo;if(oo)for(vo=oo.a.length,co=new fT(vo),Eo=(co.b-co.a)*co.c<0?(i3(),eT):new a3(co);Eo.Ob();)xo=bo(Eo.Pb(),17),po=nI(oo,xo.a),fo=new OBe(ro),m6t(fo.a,po)}function dBt(ro){var oo;if(ro!=null&&ro.length>0&&Um(ro,ro.length-1)==33)try{return oo=Lot(lx(ro,0,ro.length-1)),oo.e==null}catch(co){if(co=$p(co),!Hs(co,33))throw Cs(co)}return!1}function hBt(ro,oo,co){var fo,po,vo;switch(fo=zm(oo),po=EQ(fo),vo=new Py,uy(vo,oo),co.g){case 1:hm(vo,vq(Y8(po)));break;case 2:hm(vo,Y8(po))}return Fl(vo,(ou(),_A),Tl(bs(ro,_A))),vo}function g5e(ro){var oo,co;return oo=bo(R1(new x1(E1(Sm(ro.a).a.Kc(),new ko))),18),co=bo(R1(new x1(E1(Wp(ro.a).a.Kc(),new ko))),18),lu(au(bs(oo,(Wl(),T_))))||lu(au(bs(co,T_)))}function V$(){V$=qo,YV=new Hz("ONE_SIDE",0),Oee=new Hz("TWO_SIDES_CORNER",1),Iee=new Hz("TWO_SIDES_OPPOSING",2),Ree=new Hz("THREE_SIDES",3),Aee=new Hz("FOUR_SIDES",4)}function Trt(ro,oo){var co,fo,po,vo;for(vo=new Zl,po=0,fo=oo.Kc();fo.Ob();){for(co=Ql(bo(fo.Pb(),17).a+po);co.a=ro.f)break;Ju(vo.c,co)}return vo}function pBt(ro,oo){var co,fo,po,vo,xo;for(vo=new _s(oo.a);vo.a0&&Xnt(this,this.c-1,(nu(),p1)),this.c0&&ro[0].length>0&&(this.c=lu(au(bs(zm(ro[0][0]),(Wl(),$7e))))),this.a=Al(_bt,Yl,2117,ro.length,0,2),this.b=Al(Ebt,Yl,2118,ro.length,0,2),this.d=new Het}function yBt(ro){return ro.c.length==0?!1:(qu(0,ro.c.length),bo(ro.c[0],18)).c.i.k==(a1(),km)?!0:_9(Kv(new Ou(null,new Du(ro,16)),new FS),new LP)}function Art(ro,oo){var co,fo,po,vo,xo,Eo,To;for(Eo=Y$(oo),vo=oo.f,To=oo.g,xo=lo.Math.sqrt(vo*vo+To*To),po=0,fo=new _s(Eo);fo.a=0?(co=$q(ro,DZ),fo=yq(ro,DZ)):(oo=l3(ro,1),co=$q(oo,5e8),fo=yq(oo,5e8),fo=tv(fS(fo,1),vm(ro,1))),qS(fS(fo,32),vm(co,_v))}function Irt(ro,oo,co){var fo,po;switch(fo=(T1(oo.b!=0),bo(hx(oo,oo.a.a),8)),co.g){case 0:fo.b=0;break;case 2:fo.b=ro.f;break;case 3:fo.a=0;break;default:fo.a=ro.g}return po=G1(oo,0),xH(po,fo),oo}function Nrt(ro,oo,co,fo){var po,vo,xo,Eo,To;switch(To=ro.b,vo=oo.d,xo=vo.j,Eo=Ike(xo,To.d[xo.g],co),po=G0(Pm(vo.n),vo.a),vo.j.g){case 1:case 3:Eo.a+=po.a;break;case 2:case 4:Eo.b+=po.b}Mp(fo,Eo,fo.c.b,fo.c)}function OBt(ro,oo,co){var fo,po,vo,xo;for(xo=Xv(ro.e,oo,0),vo=new wye,vo.b=co,fo=new Lm(ro.e,xo);fo.b1;oo>>=1)oo&1&&(fo=S9(fo,co)),co.d==1?co=S9(co,co):co=new Utt(bat(co.a,co.d,Al(Q1,E0,28,co.d<<1,15,1)));return fo=S9(fo,co),fo}function E5e(){E5e=qo;var ro,oo,co,fo;for(iAe=Al(Am,Iv,28,25,15,1),oAe=Al(Am,Iv,28,33,15,1),fo=152587890625e-16,oo=32;oo>=0;oo--)oAe[oo]=fo,fo*=.5;for(co=1,ro=24;ro>=0;ro--)iAe[ro]=co,co*=.5}function BBt(ro){var oo,co;if(lu(au(zl(ro,(ou(),SA))))){for(co=new x1(E1(T5(ro).a.Kc(),new ko));W1(co);)if(oo=bo(R1(co),74),g6(oo)&&lu(au(zl(oo,KT))))return!0}return!1}function Mrt(ro,oo){var co,fo,po;om(ro.f,oo)&&(oo.b=ro,fo=oo.c,Xv(ro.j,fo,0)!=-1||Jl(ro.j,fo),po=oo.d,Xv(ro.j,po,0)!=-1||Jl(ro.j,po),co=oo.a.b,co.c.length!=0&&(!ro.i&&(ro.i=new Jtt(ro)),HRt(ro.i,co)))}function FBt(ro){var oo,co,fo,po,vo;return co=ro.c.d,fo=co.j,po=ro.d.d,vo=po.j,fo==vo?co.p=0&&Iu(ro.substr(oo,3),"GMT")||oo>=0&&Iu(ro.substr(oo,3),"UTC"))&&(co[0]=oo+3),r3e(ro,co,fo)}function jBt(ro,oo){var co,fo,po,vo,xo;for(vo=ro.g.a,xo=ro.g.b,fo=new _s(ro.d);fo.aco;vo--)ro[vo]|=oo[vo-co-1]>>>xo,ro[vo-1]=oo[vo-co-1]<0&&jy(ro.g,oo,ro.g,oo+fo,Eo),xo=co.Kc(),ro.i+=fo,po=0;po>4&15,vo=ro[fo]&15,xo[po++]=rMe[co],xo[po++]=rMe[vo];return zx(xo,0,xo.length)}function O2(ro){var oo,co;return ro>=hv?(oo=aV+(ro-hv>>10&1023)&em,co=56320+(ro-hv&1023)&em,String.fromCharCode(oo)+(""+String.fromCharCode(co))):String.fromCharCode(ro&em)}function QBt(ro,oo){x$();var co,fo,po,vo;return po=bo(bo(Q0(ro.r,oo),21),87),po.gc()>=2?(fo=bo(po.Kc().Pb(),117),co=ro.u.Hc((sw(),KF)),vo=ro.u.Hc(qR),!fo.a&&!co&&(po.gc()==2||vo)):!1}function Brt(ro,oo,co,fo,po){var vo,xo,Eo;for(vo=kst(ro,oo,co,fo,po),Eo=!1;!vo;)aZ(ro,po,!0),Eo=!0,vo=kst(ro,oo,co,fo,po);Eo&&aZ(ro,po,!1),xo=yfe(po),xo.c.length!=0&&(ro.d&&ro.d.Gg(xo),Brt(ro,po,co,fo,xo))}function tZ(){tZ=qo,Kve=new zD(sE,0),CNe=new zD("DIRECTED",1),ANe=new zD("UNDIRECTED",2),kNe=new zD("ASSOCIATION",3),$Ne=new zD("GENERALIZATION",4),TNe=new zD("DEPENDENCY",5)}function ZBt(ro,oo){var co;if(!l_(ro))throw Cs(new Lv(ndt));switch(co=l_(ro),oo.g){case 1:return-(ro.j+ro.f);case 2:return ro.i-co.g;case 3:return ro.j-co.f;case 4:return-(ro.i+ro.g)}return 0}function JBt(ro,oo,co){var fo,po,vo;return fo=oo.Lk(),vo=oo.md(),po=fo.Jk()?d3(ro,4,fo,vo,null,tN(ro,fo,vo,Hs(fo,102)&&(bo(fo,19).Bb&hv)!=0),!0):d3(ro,fo.tk()?2:1,fo,vo,fo.ik(),-1,!0),co?co.nj(po):co=po,co}function GI(ro,oo){var co,fo;for(u1(oo),fo=ro.b.c.length,Jl(ro.b,oo);fo>0;){if(co=fo,fo=(fo-1)/2|0,ro.a.Ne(cu(ro.b,fo),oo)<=0)return fx(ro.b,co,oo),!0;fx(ro.b,co,cu(ro.b,fo))}return fx(ro.b,fo,oo),!0}function C5e(ro,oo,co,fo){var po,vo;if(po=0,co)po=yQ(ro.a[co.g][oo.g],fo);else for(vo=0;vo=Eo)}function Frt(ro){switch(ro.g){case 0:return new dU;case 1:return new mie;default:throw Cs(new i1("No implementation is available for the width approximator "+(ro.f!=null?ro.f:""+ro.g)))}}function $5e(ro,oo,co,fo){var po;if(po=!1,Cm(fo)&&(po=!0,GO(oo,co,u0(fo))),po||v$(fo)&&(po=!0,$5e(ro,oo,co,fo)),po||Hs(fo,242)&&(po=!0,pT(oo,co,bo(fo,242))),!po)throw Cs(new Jae(r$e))}function tFt(ro,oo){var co,fo,po;if(co=oo.qi(ro.a),co&&(po=KS((!co.b&&(co.b=new Rw((Pu(),gv),Ey,co)),co.b),Gx),po!=null)){for(fo=1;fo<(W2(),CMe).length;++fo)if(Iu(CMe[fo],po))return fo}return 0}function nFt(ro,oo){var co,fo,po;if(co=oo.qi(ro.a),co&&(po=KS((!co.b&&(co.b=new Rw((Pu(),gv),Ey,co)),co.b),Gx),po!=null)){for(fo=1;fo<(W2(),$Me).length;++fo)if(Iu($Me[fo],po))return fo}return 0}function Prt(ro,oo){var co,fo,po,vo;if(u1(oo),vo=ro.a.gc(),vo0?1:0;vo.a[po]!=co;)vo=vo.a[po],po=ro.a.Ne(co.d,vo.d)>0?1:0;vo.a[po]=fo,fo.b=co.b,fo.a[0]=co.a[0],fo.a[1]=co.a[1],co.a[0]=null,co.a[1]=null}function oFt(ro){var oo,co,fo,po;for(oo=new Zl,co=Al(kw,jE,28,ro.a.c.length,16,1),Yxe(co,co.length),po=new _s(ro.a);po.a0&&pat((qu(0,co.c.length),bo(co.c[0],30)),ro),co.c.length>1&&pat(bo(cu(co,co.c.length-1),30),ro),oo.Vg()}function aFt(ro){sw();var oo,co;return oo=mp(L5,As($s(Wte,1),Pl,279,0,[K3])),!(tq(vX(oo,ro))>1||(co=mp(KF,As($s(Wte,1),Pl,279,0,[UF,qR])),tq(vX(co,ro))>1))}function R5e(ro,oo){var co;co=Gy((r3(),tS),ro),Hs(co,507)?Bv(tS,ro,new kHe(this,oo)):Bv(tS,ro,this),Bde(this,oo),oo==(RO(),gMe)?(this.wb=bo(this,2038),bo(oo,2040)):this.wb=(c3(),_d)}function lFt(ro){var oo,co,fo;if(ro==null)return null;for(oo=null,co=0;co=k4?"error":fo>=900?"warn":fo>=800?"info":"log"),WWe(co,ro.a),ro.b&&I4e(oo,co,ro.b,"Exception: ",!0))}function bs(ro,oo){var co,fo;return fo=(!ro.q&&(ro.q=new H1),m1(ro.q,oo)),fo??(co=oo.Sg(),Hs(co,4)&&(co==null?(!ro.q&&(ro.q=new H1),z8(ro.q,oo)):(!ro.q&&(ro.q=new H1),N0(ro.q,oo,co))),co)}function Km(){Km=qo,xS=new zz("P1_CYCLE_BREAKING",0),qE=new zz("P2_LAYERING",1),zy=new zz("P3_NODE_ORDERING",2),Qy=new zz("P4_NODE_PLACEMENT",3),Jv=new zz("P5_EDGE_ROUTING",4)}function cFt(ro,oo){_L();var co;if(ro.c==oo.c){if(ro.b==oo.b||mRt(ro.b,oo.b)){if(co=jEt(ro.b)?1:-1,ro.a&&!oo.a)return co;if(!ro.a&&oo.a)return-co}return Oy(ro.b.g,oo.b.g)}else return sp(ro.c,oo.c)}function Vrt(ro,oo){var co,fo,po;if(I5e(ro,oo))return!0;for(fo=new _s(oo);fo.a=po||oo<0)throw Cs(new Dv(epe+oo+jT+po));if(co>=po||co<0)throw Cs(new Dv(tpe+co+jT+po));return oo!=co?fo=(vo=ro.Cj(co),ro.qj(oo,vo),vo):fo=ro.xj(co),fo}function Urt(ro){var oo,co,fo;if(fo=ro,ro)for(oo=0,co=ro.Eh();co;co=co.Eh()){if(++oo>u1e)return Urt(co);if(fo=co,co==ro)throw Cs(new Lv("There is a cycle in the containment hierarchy of "+ro))}return fo}function _3(ro){var oo,co,fo;for(fo=new _T(av,"[","]"),co=ro.Kc();co.Ob();)oo=co.Pb(),g5(fo,$a(oo)===$a(ro)?"(this Collection)":oo==null?I2:ry(oo));return fo.a?fo.e.length==0?fo.a.a:fo.a.a+(""+fo.e):fo.c}function I5e(ro,oo){var co,fo;if(fo=!1,oo.gc()<2)return!1;for(co=0;co1&&(ro.j.b+=ro.e)):(ro.j.a+=co.a,ro.j.b=lo.Math.max(ro.j.b,co.b),ro.d.c.length>1&&(ro.j.a+=ro.e))}function E3(){E3=qo,agt=As($s(pv,1),My,64,0,[(nu(),s1),p1,z1]),sgt=As($s(pv,1),My,64,0,[p1,z1,l1]),lgt=As($s(pv,1),My,64,0,[z1,l1,s1]),cgt=As($s(pv,1),My,64,0,[l1,s1,p1])}function fFt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io;if(xo=ro.c.d,Eo=ro.d.d,xo.j!=Eo.j)for(Io=ro.b,po=xo.j,To=null;po!=Eo.j;)To=oo==0?_Q(po):ZEe(po),vo=Ike(po,Io.d[po.g],co),Ao=Ike(To,Io.d[To.g],co),y0(fo,G0(vo,Ao)),po=To}function dFt(ro,oo,co,fo){var po,vo,xo,Eo,To;return xo=Qnt(ro.a,oo,co),Eo=bo(xo.a,17).a,vo=bo(xo.b,17).a,fo&&(To=bo(bs(oo,(Wl(),aw)),10),po=bo(bs(co,aw),10),To&&po&&(IYe(ro.b,To,po),Eo+=ro.b.i,vo+=ro.b.e)),Eo>vo}function Yrt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao;for(this.a=bnt(ro),this.b=new Zl,co=ro,fo=0,po=co.length;fofce(ro.d).c?(ro.i+=ro.g.c,Zfe(ro.d)):fce(ro.d).c>fce(ro.g).c?(ro.e+=ro.d.c,Zfe(ro.g)):(ro.i+=eWe(ro.g),ro.e+=eWe(ro.d),Zfe(ro.g),Zfe(ro.d))}function mFt(ro,oo,co){var fo,po,vo,xo;for(vo=oo.q,xo=oo.r,new gT((VS(),z3),oo,vo,1),new gT(z3,vo,xo,1),po=new _s(co);po.aEo&&(To=Eo/fo),po>vo&&(Ao=vo/po),xo=lo.Math.min(To,Ao),ro.a+=xo*(oo.a-ro.a),ro.b+=xo*(oo.b-ro.b)}function wFt(ro,oo,co,fo,po){var vo,xo;for(xo=!1,vo=bo(cu(co.b,0),27);YGt(ro,oo,vo,fo,po)&&(xo=!0,XLt(co,vo),co.b.c.length!=0);)vo=bo(cu(co.b,0),27);return co.b.c.length==0&&Tq(co.j,co),xo&&UQ(oo.q),xo}function xFt(ro,oo){j9();var co,fo,po,vo;if(oo.b<2)return!1;for(vo=G1(oo,0),co=bo(q1(vo),8),fo=co;vo.b!=vo.d.c;){if(po=bo(q1(vo),8),Jde(ro,fo,po))return!0;fo=po}return!!Jde(ro,fo,co)}function M5e(ro,oo,co,fo){var po,vo;return co==0?(!ro.o&&(ro.o=new V2((Ny(),XE),F4,ro,0)),$Y(ro.o,oo,fo)):(vo=bo(Uu((po=bo(n1(ro,16),29),po||ro.ii()),co),69),vo.wk().Ak(ro,y2(ro),co-A1(ro.ii()),oo,fo))}function Bde(ro,oo){var co;oo!=ro.sb?(co=null,ro.sb&&(co=bo(ro.sb,54).Th(ro,1,QF,co)),oo&&(co=bo(oo,54).Rh(ro,1,QF,co)),co=WEe(ro,oo,co),co&&co.oj()):ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,4,oo,oo))}function SFt(ro,oo){var co,fo,po,vo;if(oo)po=w5(oo,"x"),co=new BBe(ro),uI(co.a,(u1(po),po)),vo=w5(oo,"y"),fo=new FBe(ro),dI(fo.a,(u1(vo),vo));else throw Cs(new z_("All edge sections need an end point."))}function _Ft(ro,oo){var co,fo,po,vo;if(oo)po=w5(oo,"x"),co=new MBe(ro),fI(co.a,(u1(po),po)),vo=w5(oo,"y"),fo=new DBe(ro),hI(fo.a,(u1(vo),vo));else throw Cs(new z_("All edge sections need a start point."))}function EFt(ro,oo){var co,fo,po,vo,xo,Eo,To;for(fo=_et(ro),vo=0,Eo=fo.length;vo>22-oo,po=ro.h<>22-oo):oo<44?(co=0,fo=ro.l<>44-oo):(co=0,fo=0,po=ro.l<ro)throw Cs(new i1("k must be smaller than n"));return oo==0||oo==ro?1:ro==0?0:a5e(ro)/(a5e(oo)*a5e(ro-oo))}function D5e(ro,oo){var co,fo,po,vo;for(co=new X2e(ro);co.g==null&&!co.c?$Se(co):co.g==null||co.i!=0&&bo(co.g[co.i-1],51).Ob();)if(vo=bo(lZ(co),58),Hs(vo,167))for(fo=bo(vo,167),po=0;po>4],oo[co*2+1]=pne[vo&15];return zx(oo,0,oo.length)}function jFt(ro){oX();var oo,co,fo;switch(fo=ro.c.length,fo){case 0:return o1t;case 1:return oo=bo(Bit(new _s(ro)),44),ITt(oo.ld(),oo.md());default:return co=bo(v_(ro,Al(qT,NZ,44,ro.c.length,0,1)),173),new Nye(co)}}function zFt(ro){var oo,co,fo,po,vo,xo;for(oo=new m9,co=new m9,h3(oo,ro),h3(co,ro);co.b!=co.c;)for(po=bo(O8(co),36),xo=new _s(po.a);xo.a0&&qq(ro,co,oo),po):Ajt(ro,oo,co)}function k3(){k3=qo,u2t=($0(),PR),f2t=rC,s2t=nC,a2t=N7,l2t=V3,o2t=I7,xOe=$G,c2t=IA,tve=(Y4e(),Kyt),nve=Yyt,_Oe=Jyt,rve=n2t,EOe=e2t,kOe=t2t,SOe=Xyt,Tte=Qyt,Cte=Zyt,mG=r2t,TOe=i2t,wOe=Uyt}function rit(ro,oo){var co,fo,po,vo,xo;if(ro.e<=oo||fAt(ro,ro.g,oo))return ro.g;for(vo=ro.r,fo=ro.g,xo=ro.r,po=(vo-fo)/2+fo;fo+11&&(ro.e.b+=ro.a)):(ro.e.a+=co.a,ro.e.b=lo.Math.max(ro.e.b,co.b),ro.d.c.length>1&&(ro.e.a+=ro.a))}function WFt(ro){var oo,co,fo,po;switch(po=ro.i,oo=po.b,fo=po.j,co=po.g,po.a.g){case 0:co.a=(ro.g.b.o.a-fo.a)/2;break;case 1:co.a=oo.d.n.a+oo.d.a.a;break;case 2:co.a=oo.d.n.a+oo.d.a.a-fo.a;break;case 3:co.b=oo.d.n.b+oo.d.a.b}}function UFt(ro,oo,co){var fo,po,vo;for(po=new x1(E1(_5(co).a.Kc(),new ko));W1(po);)fo=bo(R1(po),18),!dv(fo)&&!(!dv(fo)&&fo.c.i.c==fo.d.i.c)&&(vo=Xot(ro,fo,co,new GFe),vo.c.length>1&&Ju(oo.c,vo))}function oit(ro,oo,co,fo,po){if(fofo&&(ro.a=fo),ro.bpo&&(ro.b=po),ro}function KFt(ro){if(Hs(ro,143))return kHt(bo(ro,143));if(Hs(ro,233))return gNt(bo(ro,233));if(Hs(ro,23))return TFt(bo(ro,23));throw Cs(new i1(i$e+_3(new ew(As($s(bm,1),Xu,1,5,[ro])))))}function YFt(ro,oo,co,fo,po){var vo,xo,Eo;for(vo=!0,xo=0;xo>>po|co[xo+fo+1]<>>po,++xo}return vo}function P5e(ro,oo,co,fo){var po,vo,xo;if(oo.k==(a1(),km)){for(vo=new x1(E1(Sm(oo).a.Kc(),new ko));W1(vo);)if(po=bo(R1(vo),18),xo=po.c.i.k,xo==km&&ro.c.a[po.c.i.c.p]==fo&&ro.c.a[oo.c.p]==co)return!0}return!1}function XFt(ro,oo){var co,fo,po,vo;return oo&=63,co=ro.h&A5,oo<22?(vo=co>>>oo,po=ro.m>>oo|co<<22-oo,fo=ro.l>>oo|ro.m<<22-oo):oo<44?(vo=0,po=co>>>oo-22,fo=ro.m>>oo-22|ro.h<<44-oo):(vo=0,po=0,fo=co>>>oo-44),h2(fo&xw,po&xw,vo&A5)}function sit(ro,oo,co,fo){var po;this.b=fo,this.e=ro==(o6(),xF),po=oo[co],this.d=cT(kw,[Yl,jE],[183,28],16,[po.length,po.length],2),this.a=cT(Q1,[Yl,E0],[53,28],15,[po.length,po.length],2),this.c=new w5e(oo,co)}function QFt(ro){var oo,co,fo;for(ro.k=new OSe((nu(),As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1])).length,ro.j.c.length),fo=new _s(ro.j);fo.a=co)return UI(ro,oo,fo.p),!0;return!1}function L9(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao;for(xo=co.length,vo=0,po=-1,Ao=UQe((o1(oo,ro.length+1),ro.substr(oo)),(mce(),nAe)),Eo=0;Eovo&&_Ct(Ao,UQe(co[Eo],nAe))&&(po=Eo,vo=To);return po>=0&&(fo[0]=oo+vo),po}function lit(ro){var oo;return ro.Db&64?Fde(ro):(oo=new Bw(U6e),!ro.a||S0(S0((oo.a+=' "',oo),ro.a),'"'),S0(RC(S0(RC(S0(RC(S0(RC((oo.a+=" (",oo),ro.i),","),ro.j)," | "),ro.g),","),ro.f),")"),oo.a)}function cit(ro,oo,co){var fo,po,vo,xo,Eo;for(Eo=w2(ro.e.Dh(),oo),po=bo(ro.g,124),fo=0,xo=0;xoco?Y5e(ro,co,"start index"):oo<0||oo>co?Y5e(oo,co,"end index"):aB("end index (%s) must not be less than start index (%s)",As($s(bm,1),Xu,1,5,[Ql(oo),Ql(ro)]))}function fit(ro,oo){var co,fo,po,vo;for(fo=0,po=ro.length;fo0&&dit(ro,vo,co));oo.p=0}function gu(ro){var oo;this.c=new xp,this.f=ro.e,this.e=ro.d,this.i=ro.g,this.d=ro.c,this.b=ro.b,this.k=ro.j,this.a=ro.a,ro.i?this.j=ro.i:this.j=(oo=bo(PS(WE),9),new sx(oo,bo(cS(oo,oo.length),9),0)),this.g=ro.f}function rPt(ro){var oo,co,fo,po;for(oo=u3(S0(new Bw("Predicates."),"and"),40),co=!0,po=new EE(ro);po.b0?Eo[xo-1]:Al(VE,T4,10,0,0,1),po=Eo[xo],Ao=xo=0?ro.ki(po):J5e(ro,fo);else throw Cs(new i1(I3+fo.xe()+LB));else throw Cs(new i1(hdt+oo+pdt));else mx(ro,co,fo)}function j5e(ro){var oo,co;if(co=null,oo=!1,Hs(ro,211)&&(oo=!0,co=bo(ro,211).a),oo||Hs(ro,263)&&(oo=!0,co=""+bo(ro,263).a),oo||Hs(ro,493)&&(oo=!0,co=""+bo(ro,493).a),!oo)throw Cs(new Jae(r$e));return co}function z5e(ro,oo,co){var fo,po,vo,xo,Eo,To;for(To=w2(ro.e.Dh(),oo),fo=0,Eo=ro.i,po=bo(ro.g,124),xo=0;xo=ro.d.b.c.length&&(oo=new Vy(ro.d),oo.p=fo.p-1,Jl(ro.d.b,oo),co=new Vy(ro.d),co.p=fo.p,Jl(ro.d.b,co)),Dm(fo,bo(cu(ro.d.b,fo.p),30))}function V5e(ro,oo,co){var fo,po,vo;if(!ro.b[oo.g]){for(ro.b[oo.g]=!0,fo=co,!fo&&(fo=new LH),y0(fo.b,oo),vo=ro.a[oo.g].Kc();vo.Ob();)po=bo(vo.Pb(),65),po.b!=oo&&V5e(ro,po.b,fo),po.c!=oo&&V5e(ro,po.c,fo),y0(fo.a,po);return fo}return null}function aPt(ro){switch(ro.g){case 0:case 1:case 2:return nu(),s1;case 3:case 4:case 5:return nu(),z1;case 6:case 7:case 8:return nu(),l1;case 9:case 10:case 11:return nu(),p1;default:return nu(),gy}}function lPt(ro,oo){var co;return ro.c.length==0?!1:(co=$tt((qu(0,ro.c.length),bo(ro.c[0],18)).c.i),Pw(),co==(H$(),x7)||co==w7?!0:_9(Kv(new Ou(null,new Du(ro,16)),new IW),new VLe(oo)))}function Hde(ro,oo){if(Hs(oo,207))return tkt(ro,bo(oo,27));if(Hs(oo,193))return nkt(ro,bo(oo,123));if(Hs(oo,452))return ekt(ro,bo(oo,166));throw Cs(new i1(i$e+_3(new ew(As($s(bm,1),Xu,1,5,[oo])))))}function yit(ro,oo,co){var fo,po;if(this.f=ro,fo=bo(m1(ro.b,oo),260),po=fo?fo.a:0,a_e(co,po),co>=(po/2|0))for(this.e=fo?fo.c:null,this.d=po;co++0;)I_e(this);this.b=oo,this.a=null}function cPt(ro,oo){var co,fo;oo.a?qHt(ro,oo):(co=bo(ule(ro.b,oo.b),60),co&&co==ro.a[oo.b.f]&&co.a&&co.a!=oo.b.a&&co.c.Fc(oo.b),fo=bo(cle(ro.b,oo.b),60),fo&&ro.a[fo.f]==oo.b&&fo.a&&fo.a!=oo.b.a&&oo.b.c.Fc(fo),rce(ro.b,oo.b))}function wit(ro,oo){var co,fo;if(co=bo(Rv(ro.b,oo),127),bo(bo(Q0(ro.r,oo),21),87).dc()){co.n.b=0,co.n.c=0;return}co.n.b=ro.C.b,co.n.c=ro.C.c,ro.A.Hc((Mw(),oC))&&Kst(ro,oo),fo=BMt(ro,oo),the(ro,oo)==(R9(),W3)&&(fo+=2*ro.w),co.a.a=fo}function xit(ro,oo){var co,fo;if(co=bo(Rv(ro.b,oo),127),bo(bo(Q0(ro.r,oo),21),87).dc()){co.n.d=0,co.n.a=0;return}co.n.d=ro.C.d,co.n.a=ro.C.a,ro.A.Hc((Mw(),oC))&&Yst(ro,oo),fo=LMt(ro,oo),the(ro,oo)==(R9(),W3)&&(fo+=2*ro.w),co.a.b=fo}function uPt(ro,oo){var co,fo,po,vo;for(vo=new Zl,fo=new _s(oo);fo.afo&&(o1(oo-1,ro.length),ro.charCodeAt(oo-1)<=32);)--oo;return fo>0||ooco.a&&(fo.Hc((AT(),BF))?po=(oo.a-co.a)/2:fo.Hc(FF)&&(po=oo.a-co.a)),oo.b>co.b&&(fo.Hc((AT(),jF))?vo=(oo.b-co.b)/2:fo.Hc(PF)&&(vo=oo.b-co.b)),A5e(ro,po,vo)}function $it(ro,oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo){Hs(ro.Cb,90)&&U$(mw(bo(ro.Cb,90)),4),s2(ro,co),ro.f=xo,NI(ro,Eo),LI(ro,To),II(ro,Ao),MI(ro,Io),b4(ro,Po),BI(ro,Wo),m4(ro,!0),d4(ro,po),ro.Zk(vo),TT(ro,oo),fo!=null&&(ro.i=null,iQ(ro,fo))}function Y5e(ro,oo,co){if(ro<0)return aB(Cct,As($s(bm,1),Xu,1,5,[co,Ql(ro)]));if(oo<0)throw Cs(new i1($ct+oo));return aB("%s (%s) must not be greater than size (%s)",As($s(bm,1),Xu,1,5,[co,Ql(ro),Ql(oo)]))}function X5e(ro,oo,co,fo,po,vo){var xo,Eo,To,Ao;if(xo=fo-co,xo<7){iNt(oo,co,fo,vo);return}if(To=co+po,Eo=fo+po,Ao=To+(Eo-To>>1),X5e(oo,ro,To,Ao,-po,vo),X5e(oo,ro,Ao,Eo,-po,vo),vo.Ne(ro[Ao-1],ro[Ao])<=0){for(;co=0?ro.bi(vo,co):T4e(ro,po,co);else throw Cs(new i1(I3+po.xe()+LB));else throw Cs(new i1(hdt+oo+pdt));else vx(ro,fo,po,co)}function Ait(ro){var oo,co;if(ro.f){for(;ro.n>0;){if(oo=bo(ro.k.Xb(ro.n-1),76),co=oo.Lk(),Hs(co,102)&&bo(co,19).Bb&Cy&&(!ro.e||co.pk()!=hM||co.Lj()!=0)&&oo.md()!=null)return!0;--ro.n}return!1}else return ro.n>0}function Rit(ro){var oo,co,fo,po;if(co=bo(ro,54)._h(),co)try{if(fo=null,oo=YI((r3(),tS),vat(mNt(co))),oo&&(po=oo.ai(),po&&(fo=po.Fl(m_t(co.e)))),fo&&fo!=ro)return Rit(fo)}catch(vo){if(vo=$p(vo),!Hs(vo,63))throw Cs(vo)}return ro}function TPt(ro,oo,co){var fo,po,vo;co.Ug("Remove overlaps",1),co.dh(oo,s6e),fo=bo(zl(oo,(b9(),E7)),27),ro.f=fo,ro.a=lde(bo(zl(oo,(k3(),mG)),300)),po=Tl(zl(oo,($0(),rC))),fD(ro,(u1(po),po)),vo=Y$(fo),Plt(ro,oo,vo,co),co.dh(oo,mJ)}function CPt(ro){var oo,co,fo;if(lu(au(zl(ro,($0(),TG))))){for(fo=new Zl,co=new x1(E1(T5(ro).a.Kc(),new ko));W1(co);)oo=bo(R1(co),74),g6(oo)&&lu(au(zl(oo,Lve)))&&Ju(fo.c,oo);return fo}else return Hu(),Hu(),cv}function Oit(ro){if(!ro)return EPe(),p1t;var oo=ro.valueOf?ro.valueOf():ro;if(oo!==ro){var co=Rpe[typeof oo];return co?co(oo):PEe(typeof oo)}else return ro instanceof Array||ro instanceof lo.Array?new rK(ro):new wO(ro)}function Iit(ro,oo,co){var fo,po,vo;switch(vo=ro.o,fo=bo(Rv(ro.p,co),252),po=fo.i,po.b=eB(fo),po.a=JL(fo),po.b=lo.Math.max(po.b,vo.a),po.b>vo.a&&!oo&&(po.b=vo.a),po.c=-(po.b-vo.a)/2,co.g){case 1:po.d=-po.a;break;case 3:po.d=vo.b}phe(fo),ghe(fo)}function Nit(ro,oo,co){var fo,po,vo;switch(vo=ro.o,fo=bo(Rv(ro.p,co),252),po=fo.i,po.b=eB(fo),po.a=JL(fo),po.a=lo.Math.max(po.a,vo.b),po.a>vo.b&&!oo&&(po.a=vo.b),po.d=-(po.a-vo.b)/2,co.g){case 4:po.c=-po.b;break;case 2:po.c=vo.a}phe(fo),ghe(fo)}function $Pt(ro,oo){var co,fo,po,vo,xo;if(!oo.dc()){if(po=bo(oo.Xb(0),131),oo.gc()==1){dst(ro,po,po,1,0,oo);return}for(co=1;co0)try{po=Ww(oo,Ym,q0)}catch(vo){throw vo=$p(vo),Hs(vo,130)?(fo=vo,Cs(new PX(fo))):Cs(vo)}return co=(!ro.a&&(ro.a=new Bae(ro)),ro.a),po=0?bo(Gs(co,po),58):null}function IPt(ro,oo){if(ro<0)return aB(Cct,As($s(bm,1),Xu,1,5,["index",Ql(ro)]));if(oo<0)throw Cs(new i1($ct+oo));return aB("%s (%s) must be less than size (%s)",As($s(bm,1),Xu,1,5,["index",Ql(ro),Ql(oo)]))}function NPt(ro){var oo,co,fo,po,vo;if(ro==null)return I2;for(vo=new _T(av,"[","]"),co=ro,fo=0,po=co.length;fo=0?ro.Lh(co,!0,!0):m6(ro,po,!0),160)),bo(fo,220).Zl(oo);else throw Cs(new i1(I3+oo.xe()+LB))}function e4e(ro){var oo,co;return ro>-0x800000000000&&ro<0x800000000000?ro==0?0:(oo=ro<0,oo&&(ro=-ro),co=dm(lo.Math.floor(lo.Math.log(ro)/.6931471805599453)),(!oo||ro!=lo.Math.pow(2,co))&&++co,co):qJe(Ty(ro))}function KPt(ro){var oo,co,fo,po,vo,xo,Eo;for(vo=new V_,co=new _s(ro);co.a2&&Eo.e.b+Eo.j.b<=2&&(po=Eo,fo=xo),vo.a.zc(po,vo),po.q=fo);return vo}function YPt(ro,oo,co){co.Ug("Eades radial",1),co.dh(oo,mJ),ro.d=bo(zl(oo,(b9(),E7)),27),ro.c=na(Tl(zl(oo,(k3(),Cte)))),ro.e=lde(bo(zl(oo,mG),300)),ro.a=ENt(bo(zl(oo,TOe),434)),ro.b=VLt(bo(zl(oo,SOe),354)),TLt(ro),co.dh(oo,mJ)}function XPt(ro,oo){if(oo.Ug("Target Width Setter",1),h_(ro,(y_(),gve)))tp(ro,(ME(),RA),Tl(zl(ro,gve)));else throw Cs(new Q5("A target width has to be set if the TargetWidthWidthApproximator should be used."));oo.Vg()}function Fit(ro,oo){var co,fo,po;return fo=new k5(ro),Qv(fo,oo),Fl(fo,(Wl(),Vee),oo),Fl(fo,(ou(),Pp),(Im(),n2)),Fl(fo,dE,(IE(),Pte)),_E(fo,(a1(),Kp)),co=new Py,uy(co,fo),hm(co,(nu(),l1)),po=new Py,uy(po,fo),hm(po,p1),fo}function Pit(ro){switch(ro.g){case 0:return new Xae((o6(),uG));case 1:return new sD;case 2:return new Hse;default:throw Cs(new i1("No implementation is available for the crossing minimizer "+(ro.f!=null?ro.f:""+ro.g)))}}function jit(ro,oo){var co,fo,po,vo,xo;for(ro.c[oo.p]=!0,Jl(ro.a,oo),xo=new _s(oo.j);xo.a=vo)xo.$b();else for(po=xo.Kc(),fo=0;fo0?Fye():xo<0&&Vit(ro,oo,-xo),!0):!1}function JL(ro){var oo,co,fo,po,vo,xo,Eo;if(Eo=0,ro.b==0){for(xo=knt(ro,!0),oo=0,fo=xo,po=0,vo=fo.length;po0&&(Eo+=co,++oo);oo>1&&(Eo+=ro.c*(oo-1))}else Eo=LPe(ffe(C$(X0(Uxe(ro.a),new k0),new ap)));return Eo>0?Eo+ro.n.d+ro.n.a:0}function eB(ro){var oo,co,fo,po,vo,xo,Eo;if(Eo=0,ro.b==0)Eo=LPe(ffe(C$(X0(Uxe(ro.a),new h0),new cp)));else{for(xo=Tnt(ro,!0),oo=0,fo=xo,po=0,vo=fo.length;po0&&(Eo+=co,++oo);oo>1&&(Eo+=ro.c*(oo-1))}return Eo>0?Eo+ro.n.b+ro.n.c:0}function rjt(ro){var oo,co;if(ro.c.length!=2)throw Cs(new Lv("Order only allowed for two paths."));oo=(qu(0,ro.c.length),bo(ro.c[0],18)),co=(qu(1,ro.c.length),bo(ro.c[1],18)),oo.d.i!=co.c.i&&(ro.c.length=0,Ju(ro.c,co),Ju(ro.c,oo))}function Git(ro,oo,co){var fo;for(d9(co,oo.g,oo.f),ix(co,oo.i,oo.j),fo=0;fo<(!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a).i;fo++)Git(ro,bo(Gs((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a),fo),27),bo(Gs((!co.a&&(co.a=new Bl(F0,co,10,11)),co.a),fo),27))}function ijt(ro,oo){var co,fo,po,vo;for(vo=bo(Rv(ro.b,oo),127),co=vo.a,po=bo(bo(Q0(ro.r,oo),21),87).Kc();po.Ob();)fo=bo(po.Pb(),117),fo.c&&(co.a=lo.Math.max(co.a,Exe(fo.c)));if(co.a>0)switch(oo.g){case 2:vo.n.c=ro.s;break;case 4:vo.n.b=ro.s}}function ojt(ro,oo){var co,fo,po;return co=bo(bs(oo,(vS(),_R)),17).a-bo(bs(ro,_R),17).a,co==0?(fo=mm(Pm(bo(bs(ro,(g3(),VV)),8)),bo(bs(ro,eF),8)),po=mm(Pm(bo(bs(oo,VV),8)),bo(bs(oo,eF),8)),sp(fo.a*fo.b,po.a*po.b)):co}function sjt(ro,oo){var co,fo,po;return co=bo(bs(oo,(by(),Ste)),17).a-bo(bs(ro,Ste),17).a,co==0?(fo=mm(Pm(bo(bs(ro,(fp(),hG)),8)),bo(bs(ro,nM),8)),po=mm(Pm(bo(bs(oo,hG),8)),bo(bs(oo,nM),8)),sp(fo.a*fo.b,po.a*po.b)):co}function Wit(ro){var oo,co;return co=new J4,co.a+="e_",oo=JRt(ro),oo!=null&&(co.a+=""+oo),ro.c&&ro.d&&(S0((co.a+=" ",co),YQ(ro.c)),S0(qy((co.a+="[",co),ro.c.i),"]"),S0((co.a+=F1e,co),YQ(ro.d)),S0(qy((co.a+="[",co),ro.d.i),"]")),co.a}function Uit(ro){switch(ro.g){case 0:return new Qse;case 1:return new Zse;case 2:return new Yse;case 3:return new Kse;default:throw Cs(new i1("No implementation is available for the layout phase "+(ro.f!=null?ro.f:""+ro.g)))}}function r4e(ro,oo,co,fo,po){var vo;switch(vo=0,po.g){case 1:vo=lo.Math.max(0,oo.b+ro.b-(co.b+fo));break;case 3:vo=lo.Math.max(0,-ro.b-fo);break;case 2:vo=lo.Math.max(0,-ro.a-fo);break;case 4:vo=lo.Math.max(0,oo.a+ro.a-(co.a+fo))}return vo}function ajt(ro,oo,co){var fo,po,vo,xo,Eo;if(co)for(po=co.a.length,fo=new fT(po),Eo=(fo.b-fo.a)*fo.c<0?(i3(),eT):new a3(fo);Eo.Ob();)xo=bo(Eo.Pb(),17),vo=nI(co,xo.a),Q6e in vo.a||Z0e in vo.a?xVt(ro,vo,oo):jYt(ro,vo,oo),Fkt(bo(m1(ro.b,PI(vo)),74))}function i4e(ro){var oo,co;switch(ro.b){case-1:return!0;case 0:return co=ro.t,co>1||co==-1?(ro.b=-1,!0):(oo=Hx(ro),oo&&(vv(),oo.lk()==ght)?(ro.b=-1,!0):(ro.b=1,!1));default:case 1:return!1}}function o4e(ro,oo){var co,fo,po,vo;if(z0(ro),ro.c!=0||ro.a!=123)throw Cs(new p0(m0((c0(),Bdt))));if(vo=oo==112,fo=ro.d,co=FO(ro.i,125,fo),co<0)throw Cs(new p0(m0((c0(),Fdt))));return po=lx(ro.i,fo,co),ro.d=co+1,uQe(po,vo,(ro.e&512)==512)}function Kit(ro){var oo,co,fo,po,vo,xo,Eo;if(fo=ro.a.c.length,fo>0)for(xo=ro.c.d,Eo=ro.d.d,po=G_(mm(new Vl(Eo.a,Eo.b),xo),1/(fo+1)),vo=new Vl(xo.a,xo.b),co=new _s(ro.a);co.a=0&&fo=0?ro.Lh(co,!0,!0):m6(ro,po,!0),160)),bo(fo,220).Wl(oo);throw Cs(new i1(I3+oo.xe()+q0e))}function fjt(){s2e();var ro;return Jxt?bo(YI((r3(),tS),Wx),2038):(O0(qT,new Voe),sKt(),ro=bo(Hs(Gy((r3(),tS),Wx),560)?Gy(tS,Wx):new iUe,560),Jxt=!0,aXt(ro),pXt(ro),N0((o2e(),pMe),ro,new hoe),Bv(tS,Wx,ro),ro)}function djt(ro,oo){var co,fo,po,vo;ro.j=-1,$w(ro.e)?(co=ro.i,vo=ro.i!=0,DH(ro,oo),fo=new m5(ro.e,3,ro.c,null,oo,co,vo),po=oo.zl(ro.e,ro.c,null),po=Crt(ro,oo,po),po?(po.nj(fo),po.oj()):W0(ro.e,fo)):(DH(ro,oo),po=oo.zl(ro.e,ro.c,null),po&&po.oj())}function oZ(ro,oo){var co,fo,po;if(po=0,fo=oo[0],fo>=ro.length)return-1;for(co=(o1(fo,ro.length),ro.charCodeAt(fo));co>=48&&co<=57&&(po=po*10+(co-48),++fo,!(fo>=ro.length));)co=(o1(fo,ro.length),ro.charCodeAt(fo));return fo>oo[0]?oo[0]=fo:po=-1,po}function hjt(ro){var oo,co,fo,po,vo;return po=bo(ro.a,17).a,vo=bo(ro.b,17).a,co=po,fo=vo,oo=lo.Math.max(lo.Math.abs(po),lo.Math.abs(vo)),po<=0&&po==vo?(co=0,fo=vo-1):po==-oo&&vo!=oo?(co=vo,fo=po,vo>=0&&++co):(co=-vo,fo=po),new fm(Ql(co),Ql(fo))}function pjt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao;for(po=0;po=0&&Ao>=0&&To=ro.i)throw Cs(new Dv(epe+oo+jT+ro.i));if(co>=ro.i)throw Cs(new Dv(tpe+co+jT+ro.i));return fo=ro.g[co],oo!=co&&(oo>16),oo=fo>>16&16,co=16-oo,ro=ro>>oo,fo=ro-256,oo=fo>>16&8,co+=oo,ro<<=oo,fo=ro-nA,oo=fo>>16&4,co+=oo,ro<<=oo,fo=ro-tE,oo=fo>>16&2,co+=oo,ro<<=oo,fo=ro>>14,oo=fo&~(fo>>1),co+2-oo)}function mjt(ro){L8();var oo,co,fo,po;for(nee=new Zl,Jpe=new H1,Zpe=new Zl,oo=(!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a),sYt(oo),po=new g1(oo);po.e!=po.i.gc();)fo=bo(k1(po),27),Xv(nee,fo,0)==-1&&(co=new Zl,Jl(Zpe,co),Ytt(fo,co));return Zpe}function vjt(ro,oo,co){var fo,po,vo,xo;ro.a=co.b.d,Hs(oo,326)?(po=P9(bo(oo,74),!1,!1),vo=Iq(po),fo=new ADe(ro),Hm(vo,fo),Wq(vo,po),oo.of(($0(),K6))!=null&&Hm(bo(oo.of(K6),75),fo)):(xo=bo(oo,422),xo.rh(xo.nh()+ro.a.a),xo.sh(xo.oh()+ro.a.b))}function bjt(ro,oo){var co,fo,po;for(po=new Zl,fo=G1(oo.a,0);fo.b!=fo.d.c;)co=bo(q1(fo),65),co.c.g==ro.g&&$a(bs(co.b,(by(),pE)))!==$a(bs(co.c,pE))&&!_9(new Ou(null,new Du(po,16)),new nBe(co))&&Ju(po.c,co);return Up(po,new qW),po}function Xit(ro,oo,co){var fo,po,vo,xo;return Hs(oo,153)&&Hs(co,153)?(vo=bo(oo,153),xo=bo(co,153),ro.a[vo.a][xo.a]+ro.a[xo.a][vo.a]):Hs(oo,250)&&Hs(co,250)&&(fo=bo(oo,250),po=bo(co,250),fo.a==po.a)?bo(bs(po.a,(vS(),_R)),17).a:0}function Qit(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao;for(Ao=na(Tl(bs(oo,(ou(),gF)))),To=ro[0].n.a+ro[0].o.a+ro[0].d.c+Ao,Eo=1;Eo=0?co:(Eo=dL(mm(new Vl(xo.c+xo.b/2,xo.d+xo.a/2),new Vl(vo.c+vo.b/2,vo.d+vo.a/2))),-(kat(vo,xo)-1)*Eo)}function wjt(ro,oo,co){var fo;zp(new Ou(null,(!co.a&&(co.a=new Bl(Sp,co,6,6)),new Du(co.a,16))),new oHe(ro,oo)),zp(new Ou(null,(!co.n&&(co.n=new Bl(Nv,co,1,7)),new Du(co.n,16))),new sHe(ro,oo)),fo=bo(zl(co,($0(),K6)),75),fo&&lEe(fo,ro,oo)}function m6(ro,oo,co){var fo,po,vo;if(vo=q9((W2(),Gm),ro.Dh(),oo),vo)return vv(),bo(vo,69).xk()||(vo=F8(Fv(Gm,vo))),po=(fo=ro.Ih(vo),bo(fo>=0?ro.Lh(fo,!0,!0):m6(ro,vo,!0),160)),bo(po,220).Sl(oo,co);throw Cs(new i1(I3+oo.xe()+q0e))}function s4e(ro,oo,co,fo){var po,vo,xo,Eo,To;if(po=ro.d[oo],po){if(vo=po.g,To=po.i,fo!=null){for(Eo=0;Eo=co&&(fo=oo,Ao=(To.c+To.a)/2,xo=Ao-co,To.c<=Ao-co&&(po=new wce(To.c,xo),HC(ro,fo++,po)),Eo=Ao+co,Eo<=To.a&&(vo=new wce(Eo,To.a),A$(fo,ro.c.length),ND(ro.c,fo,vo)))}function eot(ro,oo,co){var fo,po,vo,xo,Eo,To;if(!oo.dc()){for(po=new xp,To=oo.Kc();To.Ob();)for(Eo=bo(To.Pb(),40),N0(ro.a,Ql(Eo.g),Ql(co)),xo=(fo=G1(new s5(Eo).a.d,0),new e9(fo));Oz(xo.a);)vo=bo(q1(xo.a),65).c,Mp(po,vo,po.c.b,po.c);eot(ro,po,co+1)}}function a4e(ro){var oo;if(!ro.c&&ro.g==null)ro.d=ro.bj(ro.f),Y1(ro,ro.d),oo=ro.d;else{if(ro.g==null)return!0;if(ro.i==0)return!1;oo=bo(ro.g[ro.i-1],51)}return oo==ro.b&&null.Vm>=null.Um()?(lZ(ro),a4e(ro)):oo.Ob()}function tot(ro){if(this.a=ro,ro.c.i.k==(a1(),Kp))this.c=ro.c,this.d=bo(bs(ro.c.i,(Wl(),_y)),64);else if(ro.d.i.k==Kp)this.c=ro.d,this.d=bo(bs(ro.d.i,(Wl(),_y)),64);else throw Cs(new i1("Edge "+ro+" is not an external edge."))}function rot(ro,oo){var co,fo,po;po=ro.b,ro.b=oo,ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,3,po,ro.b)),oo?oo!=ro&&(s2(ro,oo.zb),efe(ro,oo.d),co=(fo=oo.c,fo??oo.zb),nfe(ro,co==null||Iu(co,oo.zb)?null:co)):(s2(ro,null),efe(ro,0),nfe(ro,null))}function iot(ro,oo){var co;this.e=(WC(),a0(ro),WC(),xke(ro)),this.c=(a0(oo),xke(oo)),cwe(this.e.Rd().dc()==this.c.Rd().dc()),this.d=gtt(this.e),this.b=gtt(this.c),co=cT(bm,[Yl,Xu],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=co,Y8t(this)}function oot(ro){!$pe&&($pe=bYt());var oo=ro.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(co){return x$t(co)});return'"'+oo+'"'}function l4e(ro,oo,co,fo,po,vo){var xo,Eo,To,Ao,Io;if(po!=0)for($a(ro)===$a(co)&&(ro=ro.slice(oo,oo+po),oo=0),To=co,Eo=oo,Ao=oo+po;Eo=xo)throw Cs(new _$(oo,xo));return po=co[oo],xo==1?fo=null:(fo=Al(rbe,spe,424,xo-1,0,1),jy(co,0,fo,0,oo),vo=xo-oo-1,vo>0&&jy(co,oo+1,fo,oo,vo)),jI(ro,fo),Cit(ro,oo,po),po}function aot(ro){var oo,co;if(ro.f){for(;ro.n0?vo=Y8(co):vo=vq(Y8(co))),tp(oo,YN,vo)}function Cjt(ro,oo){var co;oo.Ug("Partition preprocessing",1),co=bo(ny(X0(fy(X0(new Ou(null,new Du(ro.a,16)),new Bu),new $1),new h1),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),zp(co.Oc(),new _p),oo.Vg()}function $jt(ro,oo){var co,fo,po,vo,xo;for(xo=ro.j,oo.a!=oo.b&&Up(xo,new xre),po=xo.c.length/2|0,fo=0;fo0&&qq(ro,co,oo),vo):fo.a!=null?(qq(ro,oo,co),-1):po.a!=null?(qq(ro,co,oo),1):0}function Rjt(ro,oo){var co,fo,po,vo,xo;for(po=oo.b.b,ro.a=Al(kx,rA,15,po,0,1),ro.b=Al(kw,jE,28,po,16,1),xo=G1(oo.b,0);xo.b!=xo.d.c;)vo=bo(q1(xo),40),ro.a[vo.g]=new xp;for(fo=G1(oo.a,0);fo.b!=fo.d.c;)co=bo(q1(fo),65),ro.a[co.b.g].Fc(co),ro.a[co.c.g].Fc(co)}function fot(ro,oo){var co,fo,po,vo;ro.Pj()?(co=ro.Ej(),vo=ro.Qj(),++ro.j,ro.qj(co,ro.Zi(co,oo)),fo=ro.Ij(3,null,oo,co,vo),ro.Mj()?(po=ro.Nj(oo,null),po?(po.nj(fo),po.oj()):ro.Jj(fo)):ro.Jj(fo)):(UWe(ro,oo),ro.Mj()&&(po=ro.Nj(oo,null),po&&po.oj()))}function c4e(ro,oo,co){var fo,po,vo;ro.Pj()?(vo=ro.Qj(),hq(ro,oo,co),fo=ro.Ij(3,null,co,oo,vo),ro.Mj()?(po=ro.Nj(co,null),ro.Tj()&&(po=ro.Uj(co,po)),po?(po.nj(fo),po.oj()):ro.Jj(fo)):ro.Jj(fo)):(hq(ro,oo,co),ro.Mj()&&(po=ro.Nj(co,null),po&&po.oj()))}function sZ(ro,oo){var co,fo,po,vo,xo;for(xo=w2(ro.e.Dh(),oo),po=new XM,co=bo(ro.g,124),vo=ro.i;--vo>=0;)fo=co[vo],xo.am(fo.Lk())&&Y1(po,fo);!act(ro,po)&&$w(ro.e)&&kO(ro,oo.Jk()?d3(ro,6,oo,(Hu(),cv),null,-1,!1):d3(ro,oo.tk()?2:1,oo,null,null,-1,!1))}function Ojt(ro,oo){var co,fo,po,vo,xo;return ro.a==(WI(),iF)?!0:(vo=oo.a.c,co=oo.a.c+oo.a.b,!(oo.j&&(fo=oo.A,xo=fo.c.c.a-fo.o.a/2,po=vo-(fo.n.a+fo.o.a),po>xo)||oo.q&&(fo=oo.C,xo=fo.c.c.a-fo.o.a/2,po=fo.n.a-co,po>xo)))}function hot(ro){gue();var oo,co,fo,po,vo,xo,Eo;for(co=new a4,po=new _s(ro.e.b);po.a1?ro.e*=na(ro.a):ro.f/=na(ro.a),JOt(ro),oMt(ro),nVt(ro),Fl(ro.b,(VL(),tee),ro.g)}function vot(ro,oo,co){var fo,po,vo,xo,Eo,To;for(fo=0,To=co,oo||(fo=co*(ro.c.length-1),To*=-1),vo=new _s(ro);vo.a=0?ro.Ah(null):ro.Ph().Th(ro,-1-oo,null,null)),ro.Bh(bo(po,54),co),fo&&fo.oj(),ro.vh()&&ro.wh()&&co>-1&&W0(ro,new Em(ro,9,co,vo,po)),po):vo}function d4e(ro,oo){var co,fo,po,vo,xo;for(vo=ro.b.Ce(oo),fo=(co=ro.a.get(vo),co??Al(bm,Xu,1,0,5,1)),xo=0;xo>5,po>=ro.d)return ro.e<0;if(co=ro.a[po],oo=1<<(oo&31),ro.e<0){if(fo=SJe(ro),po>16)),15).dd(vo),Eo0&&(!(l5(ro.a.c)&&oo.n.d)&&!(f9(ro.a.c)&&oo.n.b)&&(oo.g.d+=lo.Math.max(0,fo/2-.5)),!(l5(ro.a.c)&&oo.n.a)&&!(f9(ro.a.c)&&oo.n.c)&&(oo.g.a-=fo-1))}function Tot(ro){var oo,co,fo,po,vo;if(po=new Zl,vo=xat(ro,po),oo=bo(bs(ro,(Wl(),aw)),10),oo)for(fo=new _s(oo.j);fo.a>oo,vo=ro.m>>oo|co<<22-oo,po=ro.l>>oo|ro.m<<22-oo):oo<44?(xo=fo?A5:0,vo=co>>oo-22,po=ro.m>>oo-22|co<<44-oo):(xo=fo?A5:0,vo=fo?xw:0,po=co>>oo-44),h2(po&xw,vo&xw,xo&A5)}function Yde(ro){var oo,co,fo,po,vo,xo;for(this.c=new Zl,this.d=ro,fo=Tp,po=Tp,oo=am,co=am,xo=G1(ro,0);xo.b!=xo.d.c;)vo=bo(q1(xo),8),fo=lo.Math.min(fo,vo.a),po=lo.Math.min(po,vo.b),oo=lo.Math.max(oo,vo.a),co=lo.Math.max(co,vo.b);this.a=new ax(fo,po,oo-fo,co-po)}function $ot(ro,oo){var co,fo,po,vo,xo,Eo;for(vo=new _s(ro.b);vo.a0&&Hs(oo,44)&&(ro.a._j(),Ao=bo(oo,44),To=Ao.ld(),vo=To==null?0:dp(To),xo=Lwe(ro.a,vo),co=ro.a.d[xo],co)){for(fo=bo(co.g,379),Io=co.i,Eo=0;Eo=2)for(co=po.Kc(),oo=Tl(co.Pb());co.Ob();)vo=oo,oo=Tl(co.Pb()),fo=lo.Math.min(fo,(u1(oo),oo-(u1(vo),vo)));return fo}function Jjt(ro,oo){var co,fo,po;for(po=new Zl,fo=G1(oo.a,0);fo.b!=fo.d.c;)co=bo(q1(fo),65),co.b.g==ro.g&&!Iu(co.b.c,pJ)&&$a(bs(co.b,(by(),pE)))!==$a(bs(co.c,pE))&&!_9(new Ou(null,new Du(po,16)),new rBe(co))&&Ju(po.c,co);return Up(po,new yv),po}function ezt(ro,oo){var co,fo,po;if($a(oo)===$a(a0(ro)))return!0;if(!Hs(oo,15)||(fo=bo(oo,15),po=ro.gc(),po!=fo.gc()))return!1;if(Hs(fo,59)){for(co=0;co0&&(po=co),xo=new _s(ro.f.e);xo.a0?(oo-=1,co-=1):fo>=0&&po<0?(oo+=1,co+=1):fo>0&&po>=0?(oo-=1,co+=1):(oo+=1,co-=1),new fm(Ql(oo),Ql(co))}function pzt(ro,oo){return ro.coo.c?1:ro.boo.b?1:ro.a!=oo.a?dp(ro.a)-dp(oo.a):ro.d==(yL(),_F)&&oo.d==SF?-1:ro.d==SF&&oo.d==_F?1:0}function Dot(ro,oo){var co,fo,po,vo,xo;return vo=oo.a,vo.c.i==oo.b?xo=vo.d:xo=vo.c,vo.c.i==oo.b?fo=vo.c:fo=vo.d,po=LNt(ro.a,xo,fo),po>0&&po0):po<0&&-po0):!1}function gzt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po;for(po=(oo-ro.d)/ro.c.c.length,vo=0,ro.a+=co,ro.d=oo,Po=new _s(ro.c);Po.a>24;return xo}function vzt(ro){if(ro.ze()){var oo=ro.c;oo.Ae()?ro.o="["+oo.n:oo.ze()?ro.o="["+oo.xe():ro.o="[L"+oo.xe()+";",ro.b=oo.we()+"[]",ro.k=oo.ye()+"[]";return}var co=ro.j,fo=ro.d;fo=fo.split("/"),ro.o=Jfe(".",[co,Jfe("$",fo)]),ro.b=Jfe(".",[co,Jfe(".",fo)]),ro.k=fo[fo.length-1]}function bzt(ro,oo){var co,fo,po,vo,xo;for(xo=null,vo=new _s(ro.e.a);vo.a=0;oo-=2)for(co=0;co<=oo;co+=2)(ro.b[co]>ro.b[co+2]||ro.b[co]===ro.b[co+2]&&ro.b[co+1]>ro.b[co+3])&&(fo=ro.b[co+2],ro.b[co+2]=ro.b[co],ro.b[co]=fo,fo=ro.b[co+3],ro.b[co+3]=ro.b[co+1],ro.b[co+1]=fo);ro.c=!0}}function xzt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;for(Ao=-1,Io=0,xo=ro,Eo=0,To=xo.length;Eo0&&++Io;++Ao}return Io}function gS(ro){var oo,co;return co=new Bw(aT(ro.Rm)),co.a+="@",S0(co,(oo=dp(ro)>>>0,oo.toString(16))),ro.Vh()?(co.a+=" (eProxyURI: ",qy(co,ro._h()),ro.Kh()&&(co.a+=" eClass: ",qy(co,ro.Kh())),co.a+=")"):ro.Kh()&&(co.a+=" (eClass: ",qy(co,ro.Kh()),co.a+=")"),co.a}function rB(ro){var oo,co,fo,po;if(ro.e)throw Cs(new Lv((c5(zpe),b1e+zpe.k+y1e)));for(ro.d==(_g(),R_)&&$Z(ro,qv),co=new _s(ro.a.a);co.a>24}return co}function Ezt(ro,oo,co){var fo,po,vo;if(po=bo(Rv(ro.i,oo),314),!po)if(po=new dZe(ro.d,oo,co),I8(ro.i,oo,po),Tke(oo))Ckt(ro.a,oo.c,oo.b,po);else switch(vo=aPt(oo),fo=bo(Rv(ro.p,vo),252),vo.g){case 1:case 3:po.j=!0,Zae(fo,oo.b,po);break;case 4:case 2:po.k=!0,Zae(fo,oo.c,po)}return po}function kzt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;for(To=kE(ro.c-ro.b&ro.a.length-1),Ao=null,Io=null,vo=new pL(ro);vo.a!=vo.b;)po=bo(wQ(vo),10),co=(Eo=bo(bs(po,(Wl(),JS)),12),Eo?Eo.i:null),fo=(xo=bo(bs(po,Yx),12),xo?xo.i:null),(Ao!=co||Io!=fo)&&(bot(To,oo),Ao=co,Io=fo),Ju(To.c,po);bot(To,oo)}function Tzt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao;if(Eo=new XM,To=w2(ro.e.Dh(),oo),po=bo(ro.g,124),vv(),bo(oo,69).xk())for(xo=0;xo=0)return po;for(vo=1,Eo=new _s(oo.j);Eo.a=0)return po;for(vo=1,Eo=new _s(oo.j);Eo.a0&&oo.Ne((qu(po-1,ro.c.length),bo(ro.c[po-1],10)),vo)>0;)fx(ro,po,(qu(po-1,ro.c.length),bo(ro.c[po-1],10))),--po;qu(po,ro.c.length),ro.c[po]=vo}co.a=new H1,co.b=new H1}function Czt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;for(Io=(fo=bo(oo.e&&oo.e(),9),new sx(fo,bo(cS(fo,fo.length),9),0)),To=Z$(co,"[\\[\\]\\s,]+"),vo=To,xo=0,Eo=vo.length;xo=0?(oo||(oo=new SD,fo>0&&Av(oo,(Bm(0,fo,ro.length),ro.substr(0,fo)))),oo.a+="\\",YO(oo,co&em)):oo&&YO(oo,co&em);return oo?oo.a:ro}function Azt(ro){var oo,co,fo;for(co=new _s(ro.a.a.b);co.a0&&(!(l5(ro.a.c)&&oo.n.d)&&!(f9(ro.a.c)&&oo.n.b)&&(oo.g.d-=lo.Math.max(0,fo/2-.5)),!(l5(ro.a.c)&&oo.n.a)&&!(f9(ro.a.c)&&oo.n.c)&&(oo.g.a+=lo.Math.max(0,fo-1)))}function Vot(ro,oo,co){var fo,po;if((ro.c-ro.b&ro.a.length-1)==2)oo==(nu(),s1)||oo==p1?(WX(bo(OL(ro),15),(Gw(),UE)),WX(bo(OL(ro),15),G3)):(WX(bo(OL(ro),15),(Gw(),G3)),WX(bo(OL(ro),15),UE));else for(po=new pL(ro);po.a!=po.b;)fo=bo(wQ(po),15),WX(fo,co)}function Rzt(ro,oo){var co,fo,po,vo,xo,Eo,To;for(po=VO(new oye(ro)),Eo=new Lm(po,po.c.length),vo=VO(new oye(oo)),To=new Lm(vo,vo.c.length),xo=null;Eo.b>0&&To.b>0&&(co=(T1(Eo.b>0),bo(Eo.a.Xb(Eo.c=--Eo.b),27)),fo=(T1(To.b>0),bo(To.a.Xb(To.c=--To.b),27)),co==fo);)xo=co;return xo}function Got(ro,oo,co){var fo,po,vo,xo;BKe(ro,oo)>BKe(ro,co)?(fo=hy(co,(nu(),p1)),ro.d=fo.dc()?0:Tce(bo(fo.Xb(0),12)),xo=hy(oo,l1),ro.b=xo.dc()?0:Tce(bo(xo.Xb(0),12))):(po=hy(co,(nu(),l1)),ro.d=po.dc()?0:Tce(bo(po.Xb(0),12)),vo=hy(oo,p1),ro.b=vo.dc()?0:Tce(bo(vo.Xb(0),12)))}function Wot(ro,oo){var co,fo,po,vo;for(co=ro.o.a,vo=bo(bo(Q0(ro.r,oo),21),87).Kc();vo.Ob();)po=bo(vo.Pb(),117),po.e.a=co*na(Tl(po.b.of(ZJ))),po.e.b=(fo=po.b,fo.pf(($0(),Ew))?fo.ag()==(nu(),s1)?-fo.Mf().b-na(Tl(fo.of(Ew))):na(Tl(fo.of(Ew))):fo.ag()==(nu(),s1)?-fo.Mf().b:0)}function Ozt(ro,oo){var co,fo,po,vo;for(oo.Ug("Self-Loop pre-processing",1),fo=new _s(ro.a);fo.aro.c));xo++)po.a>=ro.s&&(vo<0&&(vo=xo),Eo=xo);return To=(ro.s+ro.c)/2,vo>=0&&(fo=yVt(ro,oo,vo,Eo),To=mEt((qu(fo,oo.c.length),bo(oo.c[fo],339))),Ejt(oo,fo,co)),To}function i0(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;for(xo=(vo=new CU,vo),eEe(xo,(u1(oo),oo)),Ao=(!xo.b&&(xo.b=new Rw((Pu(),gv),Ey,xo)),xo.b),To=1;To0&&gUt(this,po)}function _4e(ro,oo,co,fo,po,vo){var xo,Eo,To;if(!po[oo.a]){for(po[oo.a]=!0,xo=fo,!xo&&(xo=new RX),Jl(xo.e,oo),To=vo[oo.a].Kc();To.Ob();)Eo=bo(To.Pb(),290),!(Eo.d==co||Eo.c==co)&&(Eo.c!=oo&&_4e(ro,Eo.c,oo,xo,po,vo),Eo.d!=oo&&_4e(ro,Eo.d,oo,xo,po,vo),Jl(xo.c,Eo),sm(xo.d,Eo.b));return xo}return null}function Mzt(ro){var oo,co,fo,po,vo,xo,Eo;for(oo=0,po=new _s(ro.e);po.a=2}function Dzt(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io;for(vo=ro.c.d.j,xo=bo(wx(co,0),8),Io=1;Io1||(oo=mp(kS,As($s(Tv,1),Pl,95,0,[D5,TS])),tq(vX(oo,ro))>1)||(fo=mp($S,As($s(Tv,1),Pl,95,0,[KE,Qx])),tq(vX(fo,ro))>1))}function E4e(ro,oo,co){var fo,po,vo;for(vo=new _s(ro.t);vo.a0&&(fo.b.n-=fo.c,fo.b.n<=0&&fo.b.u>0&&y0(oo,fo.b));for(po=new _s(ro.i);po.a0&&(fo.a.u-=fo.c,fo.a.u<=0&&fo.a.n>0&&y0(co,fo.a))}function lZ(ro){var oo,co,fo,po,vo;if(ro.g==null&&(ro.d=ro.bj(ro.f),Y1(ro,ro.d),ro.c))return vo=ro.f,vo;if(oo=bo(ro.g[ro.i-1],51),po=oo.Pb(),ro.e=oo,co=ro.bj(po),co.Ob())ro.d=co,Y1(ro,co);else for(ro.d=null;!oo.Ob()&&(Np(ro.g,--ro.i,null),ro.i!=0);)fo=bo(ro.g[ro.i-1],51),oo=fo;return po}function Bzt(ro,oo){var co,fo,po,vo,xo,Eo;if(fo=oo,po=fo.Lk(),C5(ro.e,po)){if(po.Si()&&kX(ro,po,fo.md()))return!1}else for(Eo=w2(ro.e.Dh(),po),co=bo(ro.g,124),vo=0;vo1||co>1)return 2;return oo+co==1?2:0}function yw(ro,oo){var co,fo,po,vo,xo,Eo;return vo=ro.a*p1e+ro.b*1502,Eo=ro.b*p1e+11,co=lo.Math.floor(Eo*cV),vo+=co,Eo-=co*K3e,vo%=K3e,ro.a=vo,ro.b=Eo,oo<=24?lo.Math.floor(ro.a*iAe[oo]):(po=ro.a*(1<=2147483648&&(fo-=4294967296),fo)}function Qot(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;for(vo=new Zl,Ao=new xp,xo=new xp,oWt(ro,Ao,xo,oo),BUt(ro,Ao,xo,oo,co),To=new _s(ro);To.afo.b.g&&Ju(vo.c,fo);return vo}function qzt(ro,oo,co){var fo,po,vo,xo,Eo,To;for(Eo=ro.c,xo=(co.q?co.q:(Hu(),Hu(),HE)).vc().Kc();xo.Ob();)vo=bo(xo.Pb(),44),fo=!OO(X0(new Ou(null,new Du(Eo,16)),new SO(new Zze(oo,vo)))).Bd((lT(),SR)),fo&&(To=vo.md(),Hs(To,4)&&(po=Ake(To),po!=null&&(To=po)),oo.qf(bo(vo.ld(),149),To))}function Vzt(ro,oo,co){var fo,po;if(SH(ro.b),HS(ro.b,(mq(),Ite),(CD(),xG)),HS(ro.b,Nte,oo.g),HS(ro.b,Mte,oo.a),ro.a=Yq(ro.b,oo),co.Ug("Compaction by shrinking a tree",ro.a.c.length),oo.i.c.length>1)for(po=new _s(ro.a);po.a=0?ro.Lh(fo,!0,!0):m6(ro,vo,!0),160)),bo(po,220).Xl(oo,co)}else throw Cs(new i1(I3+oo.xe()+LB))}function cZ(ro,oo){var co,fo,po,vo,xo;if(oo){for(vo=Hs(ro.Cb,90)||Hs(ro.Cb,102),xo=!vo&&Hs(ro.Cb,331),fo=new g1((!oo.a&&(oo.a=new iL(oo,Cv,oo)),oo.a));fo.e!=fo.i.gc();)if(co=bo(k1(fo),89),po=SZ(co),vo?Hs(po,90):xo?Hs(po,156):po)return po;return vo?(Pu(),nS):(Pu(),N_)}else return null}function Gzt(ro,oo){var co,fo,po,vo;for(oo.Ug("Resize child graph to fit parent.",1),fo=new _s(ro.b);fo.a=2*oo&&Jl(co,new wce(xo[fo-1]+oo,xo[fo]-oo));return co}function Kzt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;if(co)for(vo=co.a.length,fo=new fT(vo),Eo=(fo.b-fo.a)*fo.c<0?(i3(),eT):new a3(fo);Eo.Ob();)xo=bo(Eo.Pb(),17),po=nI(co,xo.a),po&&(To=E9t(ro,(Ao=(n3(),Io=new Eye,Io),oo&&C4e(Ao,oo),Ao),po),mI(To,d5(po,cE)),eZ(po,To),Q5e(po,To),Sfe(ro,po,To))}function uZ(ro){var oo,co,fo,po,vo,xo;if(!ro.j){if(xo=new toe,oo=tP,vo=oo.a.zc(ro,oo),vo==null){for(fo=new g1(Yv(ro));fo.e!=fo.i.gc();)co=bo(k1(fo),29),po=uZ(co),Bp(xo,po),Y1(xo,co);oo.a.Bc(ro)!=null}F$(xo),ro.j=new c9((bo(Gs(Ml((c3(),_d).o),11),19),xo.i),xo.g),mw(ro).b&=-33}return ro.j}function Yzt(ro){var oo,co,fo,po;if(ro==null)return null;if(fo=Ky(ro,!0),po=NV.length,Iu(fo.substr(fo.length-po,po),NV)){if(co=fo.length,co==4){if(oo=(o1(0,fo.length),fo.charCodeAt(0)),oo==43)return MMe;if(oo==45)return wSt}else if(co==3)return MMe}return new hye(fo)}function Xzt(ro){var oo,co,fo;return co=ro.l,co&co-1||(fo=ro.m,fo&fo-1)||(oo=ro.h,oo&oo-1)||oo==0&&fo==0&&co==0?-1:oo==0&&fo==0&&co!=0?V_e(co):oo==0&&fo!=0&&co==0?V_e(fo)+22:oo!=0&&fo==0&&co==0?V_e(oo)+44:-1}function F9(ro,oo){var co,fo,po,vo,xo;for(po=oo.a&ro.f,vo=null,fo=ro.b[po];;fo=fo.b){if(fo==oo){vo?vo.b=oo.b:ro.b[po]=oo.b;break}vo=fo}for(xo=oo.f&ro.f,vo=null,co=ro.c[xo];;co=co.d){if(co==oo){vo?vo.d=oo.d:ro.c[xo]=oo.d;break}vo=co}oo.e?oo.e.c=oo.c:ro.a=oo.c,oo.c?oo.c.e=oo.e:ro.e=oo.e,--ro.i,++ro.g}function Qzt(ro,oo){var co;oo.d?oo.d.b=oo.b:ro.a=oo.b,oo.b?oo.b.d=oo.d:ro.e=oo.d,!oo.e&&!oo.c?(co=bo(Fx(bo(z8(ro.b,oo.a),260)),260),co.a=0,++ro.c):(co=bo(Fx(bo(m1(ro.b,oo.a),260)),260),--co.a,oo.e?oo.e.c=oo.c:co.b=bo(Fx(oo.c),511),oo.c?oo.c.e=oo.e:co.c=bo(Fx(oo.e),511)),--ro.d}function Zzt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io;for(co=ro.o,oo=ro.p,xo=q0,po=Ym,Eo=q0,vo=Ym,Ao=0;Ao0),vo.a.Xb(vo.c=--vo.b),S$(vo,po),T1(vo.b3&&OE(ro,0,oo-3))}function eHt(ro){var oo,co,fo,po;return $a(bs(ro,(ou(),xA)))===$a((x5(),B4))?!ro.e&&$a(bs(ro,rG))!==$a((SI(),QV)):(fo=bo(bs(ro,nme),299),po=lu(au(bs(ro,rme)))||$a(bs(ro,dF))===$a((kL(),XV)),oo=bo(bs(ro,h8e),17).a,co=ro.a.c.length,!po&&fo!=(SI(),QV)&&(oo==0||oo>co))}function tHt(ro){var oo,co;for(co=0;co0);co++);if(co>0&&co0);oo++);return oo>0&&co>16!=6&&oo){if(HI(ro,oo))throw Cs(new i1(BB+pot(ro)));fo=null,ro.Cb&&(fo=(co=ro.Db>>16,co>=0?Xke(ro,fo):ro.Cb.Th(ro,-1-co,null,fo))),oo&&(fo=Z8(oo,ro,6,fo)),fo=Nwe(ro,oo,fo),fo&&fo.oj()}else ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,6,oo,oo))}function fZ(ro,oo){var co,fo;if(oo!=ro.Cb||ro.Db>>16!=3&&oo){if(HI(ro,oo))throw Cs(new i1(BB+tlt(ro)));fo=null,ro.Cb&&(fo=(co=ro.Db>>16,co>=0?e5e(ro,fo):ro.Cb.Th(ro,-1-co,null,fo))),oo&&(fo=Z8(oo,ro,12,fo)),fo=Mwe(ro,oo,fo),fo&&fo.oj()}else ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,3,oo,oo))}function C4e(ro,oo){var co,fo;if(oo!=ro.Cb||ro.Db>>16!=9&&oo){if(HI(ro,oo))throw Cs(new i1(BB+Jst(ro)));fo=null,ro.Cb&&(fo=(co=ro.Db>>16,co>=0?Zke(ro,fo):ro.Cb.Th(ro,-1-co,null,fo))),oo&&(fo=Z8(oo,ro,9,fo)),fo=Dwe(ro,oo,fo),fo&&fo.oj()}else ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,9,oo,oo))}function XI(ro){var oo,co,fo,po,vo;if(fo=Hx(ro),vo=ro.j,vo==null&&fo)return ro.Jk()?null:fo.ik();if(Hs(fo,156)){if(co=fo.jk(),co&&(po=co.wi(),po!=ro.i)){if(oo=bo(fo,156),oo.nk())try{ro.g=po.ti(oo,vo)}catch(xo){if(xo=$p(xo),Hs(xo,82))ro.g=null;else throw Cs(xo)}ro.i=po}return ro.g}return null}function tst(ro){var oo;return oo=new Zl,Jl(oo,new v8(new Vl(ro.c,ro.d),new Vl(ro.c+ro.b,ro.d))),Jl(oo,new v8(new Vl(ro.c,ro.d),new Vl(ro.c,ro.d+ro.a))),Jl(oo,new v8(new Vl(ro.c+ro.b,ro.d+ro.a),new Vl(ro.c+ro.b,ro.d))),Jl(oo,new v8(new Vl(ro.c+ro.b,ro.d+ro.a),new Vl(ro.c,ro.d+ro.a))),oo}function nHt(ro){var oo,co,fo;if(ro==null)return I2;try{return ry(ro)}catch(po){if(po=$p(po),Hs(po,103))return oo=po,fo=aT(Nw(ro))+"@"+(co=(a5(),$ke(ro)>>>0),co.toString(16)),mMt(tOt(),(DO(),"Exception during lenientFormat for "+fo),oo),"<"+fo+" threw "+aT(oo.Rm)+">";throw Cs(po)}}function rHt(ro,oo,co){var fo,po,vo;for(vo=oo.a.ec().Kc();vo.Ob();)po=bo(vo.Pb(),74),fo=bo(m1(ro.b,po),272),!fo&&(kp(NE(po))==kp(S3(po))?VHt(ro,po,co):NE(po)==kp(S3(po))?m1(ro.c,po)==null&&m1(ro.b,S3(po))!=null&&Nlt(ro,po,co,!1):m1(ro.d,po)==null&&m1(ro.b,NE(po))!=null&&Nlt(ro,po,co,!0))}function iHt(ro,oo){var co,fo,po,vo,xo,Eo,To;for(po=ro.Kc();po.Ob();)for(fo=bo(po.Pb(),10),Eo=new Py,uy(Eo,fo),hm(Eo,(nu(),p1)),Fl(Eo,(Wl(),Gee),(_f(),!0)),xo=oo.Kc();xo.Ob();)vo=bo(xo.Pb(),10),To=new Py,uy(To,vo),hm(To,l1),Fl(To,Gee,!0),co=new QC,Fl(co,Gee,!0),ev(co,Eo),Om(co,To)}function oHt(ro,oo,co,fo){var po,vo,xo,Eo;po=Mtt(ro,oo,co),vo=Mtt(ro,co,oo),xo=bo(m1(ro.c,oo),118),Eo=bo(m1(ro.c,co),118),po1)for(oo=FC((co=new sT,++ro.b,co),ro.d),Eo=G1(vo,0);Eo.b!=Eo.d.c;)xo=bo(q1(Eo),125),mS(sS(oS(aS(iS(new Lx,1),0),oo),xo))}function lHt(ro,oo,co){var fo,po,vo,xo,Eo;for(co.Ug("Breaking Point Removing",1),ro.a=bo(bs(oo,(ou(),M5)),223),vo=new _s(oo.b);vo.a>16!=11&&oo){if(HI(ro,oo))throw Cs(new i1(BB+U4e(ro)));fo=null,ro.Cb&&(fo=(co=ro.Db>>16,co>=0?t5e(ro,fo):ro.Cb.Th(ro,-1-co,null,fo))),oo&&(fo=Z8(oo,ro,10,fo)),fo=Vwe(ro,oo,fo),fo&&fo.oj()}else ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,11,oo,oo))}function cHt(ro){var oo,co,fo,po;for(fo=new ST(new su(ro.b).a);fo.b;)co=a6(fo),po=bo(co.ld(),12),oo=bo(co.md(),10),Fl(oo,(Wl(),Z0),po),Fl(po,aw,oo),Fl(po,eG,(_f(),!0)),hm(po,bo(bs(oo,_y),64)),bs(oo,_y),Fl(po.i,(ou(),Pp),(Im(),fM)),bo(bs(zm(po.i),Jy),21).Fc((Sv(),GN))}function uHt(ro,oo,co){var fo,po,vo,xo,Eo,To;if(vo=0,xo=0,ro.c)for(To=new _s(ro.d.i.j);To.avo.a?-1:po.aTo){for(Io=ro.d,ro.d=Al(oMe,h$e,66,2*To+4,0,1),vo=0;vo=9223372036854776e3?(lI(),D$e):(po=!1,ro<0&&(po=!0,ro=-ro),fo=0,ro>=NT&&(fo=dm(ro/NT),ro-=fo*NT),co=0,ro>=uR&&(co=dm(ro/uR),ro-=co*uR),oo=dm(ro),vo=h2(oo,co,fo),po&&_fe(vo),vo)}function xHt(ro){var oo,co,fo,po,vo;if(vo=new Zl,g2(ro.b,new wDe(vo)),ro.b.c.length=0,vo.c.length!=0){for(oo=(qu(0,vo.c.length),bo(vo.c[0],82)),co=1,fo=vo.c.length;co=-oo&&fo==oo?new fm(Ql(co-1),Ql(fo)):new fm(Ql(co),Ql(fo-1))}function ist(){return rv(),As($s(NXt,1),Pl,81,0,[S9e,y9e,s7,gge,z9e,pee,kee,mA,P9e,R9e,B9e,gA,j9e,C9e,H9e,h9e,yee,mge,dee,See,V9e,xee,p9e,F9e,G9e,_ee,q9e,hee,E9e,D9e,M9e,Tee,v9e,fee,mee,m9e,MN,I9e,$9e,L9e,tF,w9e,b9e,N9e,A9e,bee,Eee,g9e,wee,O9e,gee,k9e,_9e,UV,uee,T9e,x9e])}function EHt(ro,oo,co){ro.d=0,ro.b=0,oo.k==(a1(),Zy)&&co.k==Zy&&bo(bs(oo,(Wl(),Z0)),10)==bo(bs(co,Z0),10)&&(que(oo).j==(nu(),s1)?Got(ro,oo,co):Got(ro,co,oo)),oo.k==Zy&&co.k==km?que(oo).j==(nu(),s1)?ro.d=1:ro.b=1:co.k==Zy&&oo.k==km&&(que(co).j==(nu(),s1)?ro.b=1:ro.d=1),lDt(ro,oo,co)}function kHt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po;return Po=k5e(ro),oo=ro.a,To=oo!=null,To&&GO(Po,"category",ro.a),po=Nz(new Dl(ro.d)),xo=!po,xo&&(Ao=new Y5,WS(Po,"knownOptions",Ao),co=new tFe(Ao),Hm(new Dl(ro.d),co)),vo=Nz(ro.g),Eo=!vo,Eo&&(Io=new Y5,WS(Po,"supportedFeatures",Io),fo=new nFe(Io),Hm(ro.g,fo)),Po}function THt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao;for(fo=!1,oo=336,co=0,vo=new FVe(ro.length),Eo=ro,To=0,Ao=Eo.length;To>16!=7&&oo){if(HI(ro,oo))throw Cs(new i1(BB+lit(ro)));fo=null,ro.Cb&&(fo=(co=ro.Db>>16,co>=0?Qke(ro,fo):ro.Cb.Th(ro,-1-co,null,fo))),oo&&(fo=bo(oo,54).Rh(ro,1,jG,fo)),fo=Bxe(ro,oo,fo),fo&&fo.oj()}else ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,7,oo,oo))}function ost(ro,oo){var co,fo;if(oo!=ro.Cb||ro.Db>>16!=3&&oo){if(HI(ro,oo))throw Cs(new i1(BB+itt(ro)));fo=null,ro.Cb&&(fo=(co=ro.Db>>16,co>=0?Jke(ro,fo):ro.Cb.Th(ro,-1-co,null,fo))),oo&&(fo=bo(oo,54).Rh(ro,0,HG,fo)),fo=Fxe(ro,oo,fo),fo&&fo.oj()}else ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,3,oo,oo))}function ehe(ro,oo){QI();var co,fo,po,vo,xo,Eo,To,Ao,Io;return oo.d>ro.d&&(Eo=ro,ro=oo,oo=Eo),oo.d<63?pqt(ro,oo):(xo=(ro.d&-2)<<4,Ao=r_e(ro,xo),Io=r_e(oo,xo),fo=whe(ro,j8(Ao,xo)),po=whe(oo,j8(Io,xo)),To=ehe(Ao,Io),co=ehe(fo,po),vo=ehe(whe(Ao,fo),whe(po,Io)),vo=Che(Che(vo,To),co),vo=j8(vo,xo),To=j8(To,xo<<1),Che(Che(To,vo),co))}function E4(){E4=qo,vme=new o9(cft,0),J8e=new o9("LONGEST_PATH",1),eRe=new o9("LONGEST_PATH_SOURCE",2),mme=new o9("COFFMAN_GRAHAM",3),Z8e=new o9(q1e,4),tRe=new o9("STRETCH_WIDTH",5),cte=new o9("MIN_WIDTH",6),JN=new o9("BF_MODEL_ORDER",7),eM=new o9("DF_MODEL_ORDER",8)}function $Ht(ro,oo,co){var fo,po,vo,xo,Eo;for(xo=LL(ro,co),Eo=Al(VE,T4,10,oo.length,0,1),fo=0,vo=xo.Kc();vo.Ob();)po=bo(vo.Pb(),12),lu(au(bs(po,(Wl(),eG))))&&(Eo[fo++]=bo(bs(po,aw),10));if(fo=0;vo+=co?1:-1)xo=xo|oo.c.lg(To,vo,co,fo&&!lu(au(bs(oo.j,(Wl(),F3))))&&!lu(au(bs(oo.j,(Wl(),p7))))),xo=xo|oo.q.ug(To,vo,co),xo=xo|Wst(ro,To[vo],co,fo);return om(ro.c,oo),xo}function pZ(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;for(Io=mYe(ro.j),Po=0,Wo=Io.length;Po1&&(ro.a=!0),sCt(bo(co.b,68),G0(Pm(bo(oo.b,68).c),G_(mm(Pm(bo(co.b,68).a),bo(oo.b,68).a),po))),_Ke(ro,oo),sst(ro,co)}function ast(ro){var oo,co,fo,po,vo,xo,Eo;for(vo=new _s(ro.a.a);vo.a0&&vo>0?xo.p=oo++:fo>0?xo.p=co++:vo>0?xo.p=po++:xo.p=co++}Hu(),Up(ro.j,new Fne)}function NHt(ro){var oo,co;co=null,oo=bo(cu(ro.g,0),18);do{if(co=oo.d.i,gp(co,(Wl(),Yx)))return bo(bs(co,Yx),12).i;if(co.k!=(a1(),Vp)&&W1(new x1(E1(Wp(co).a.Kc(),new ko))))oo=bo(R1(new x1(E1(Wp(co).a.Kc(),new ko))),18);else if(co.k!=Vp)return null}while(co&&co.k!=(a1(),Vp));return co}function MHt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;for(Eo=oo.j,xo=oo.g,To=bo(cu(Eo,Eo.c.length-1),113),Io=(qu(0,Eo.c.length),bo(Eo.c[0],113)),Ao=xde(ro,xo,To,Io),vo=1;voAo&&(To=co,Io=po,Ao=fo);oo.a=Io,oo.c=To}function DHt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;for(Ao=new e4(new PLe(ro)),xo=As($s(Fpt,1),Nut,12,0,[oo,co]),Eo=0,To=xo.length;EoTo-ro.b&&EoTo-ro.a&&Eo0?vo.a?(Eo=vo.b.Mf().a,co>Eo&&(po=(co-Eo)/2,vo.d.b=po,vo.d.c=po)):vo.d.c=ro.s+co:sL(ro.u)&&(fo=T5e(vo.b),fo.c<0&&(vo.d.b=-fo.c),fo.c+fo.b>vo.b.Mf().a&&(vo.d.c=fo.c+fo.b-vo.b.Mf().a))}function ZHt(ro,oo){var co,fo,po,vo,xo;xo=new Zl,co=oo;do vo=bo(m1(ro.b,co),131),vo.B=co.c,vo.D=co.d,Ju(xo.c,vo),co=bo(m1(ro.k,co),18);while(co);return fo=(qu(0,xo.c.length),bo(xo.c[0],131)),fo.j=!0,fo.A=bo(fo.d.a.ec().Kc().Pb(),18).c.i,po=bo(cu(xo,xo.c.length-1),131),po.q=!0,po.C=bo(po.d.a.ec().Kc().Pb(),18).d.i,xo}function JHt(ro){var oo,co;if(oo=bo(ro.a,17).a,co=bo(ro.b,17).a,oo>=0){if(oo==co)return new fm(Ql(-oo-1),Ql(-oo-1));if(oo==-co)return new fm(Ql(-oo),Ql(co+1))}return lo.Math.abs(oo)>lo.Math.abs(co)?oo<0?new fm(Ql(-oo),Ql(co)):new fm(Ql(-oo),Ql(co+1)):new fm(Ql(oo+1),Ql(co))}function eqt(ro){var oo,co;co=bo(bs(ro,(ou(),_2)),171),oo=bo(bs(ro,(Wl(),GT)),311),co==(yx(),P3)?(Fl(ro,_2,nG),Fl(ro,GT,(b5(),d7))):co==yA?(Fl(ro,_2,nG),Fl(ro,GT,(b5(),TR))):oo==(b5(),d7)?(Fl(ro,_2,P3),Fl(ro,GT,ZV)):oo==TR&&(Fl(ro,_2,yA),Fl(ro,GT,ZV))}function gZ(){gZ=qo,fG=new Wre,Qbt=_0(new Zp,(Km(),zy),(rv(),dee)),eyt=q2(_0(new Zp,zy,xee),Jv,wee),tyt=Z_(Z_(AD(q2(_0(new Zp,xS,kee),Jv,Eee),Qy),_ee),Tee),Zbt=q2(_0(_0(_0(new Zp,qE,pee),Qy,mee),Qy,MN),Jv,gee),Jbt=q2(_0(_0(new Zp,Qy,MN),Qy,fee),Jv,uee)}function sB(){sB=qo,iyt=_0(q2(new Zp,(Km(),Jv),(rv(),k9e)),zy,dee),lyt=Z_(Z_(AD(q2(_0(new Zp,xS,kee),Jv,Eee),Qy),_ee),Tee),oyt=q2(_0(_0(_0(new Zp,qE,pee),Qy,mee),Qy,MN),Jv,gee),ayt=_0(_0(new Zp,zy,xee),Jv,wee),syt=q2(_0(_0(new Zp,Qy,MN),Qy,fee),Jv,uee)}function tqt(ro,oo,co,fo,po){var vo,xo;(!dv(oo)&&oo.c.i.c==oo.d.i.c||!tJe(dy(As($s(_m,1),Yl,8,0,[po.i.n,po.n,po.a])),co))&&!dv(oo)&&(oo.c==po?PO(oo.a,0,new ov(co)):y0(oo.a,new ov(co)),fo&&!jS(ro.a,co)&&(xo=bo(bs(oo,(ou(),Hv)),75),xo||(xo=new P2,Fl(oo,Hv,xo)),vo=new ov(co),Mp(xo,vo,xo.c.b,xo.c),om(ro.a,vo)))}function ust(ro,oo){var co,fo,po,vo;for(vo=s0(nv(BE,AE(s0(nv(oo==null?0:dp(oo),FE)),15))),co=vo&ro.b.length-1,po=null,fo=ro.b[co];fo;po=fo,fo=fo.a)if(fo.d==vo&&K_(fo.i,oo))return po?po.a=fo.a:ro.b[co]=fo.a,IPe(bo(Fx(fo.c),604),bo(Fx(fo.f),604)),$z(bo(Fx(fo.b),227),bo(Fx(fo.e),227)),--ro.f,++ro.e,!0;return!1}function nqt(ro){var oo,co;for(co=new x1(E1(Sm(ro).a.Kc(),new ko));W1(co);)if(oo=bo(R1(co),18),oo.c.i.k!=(a1(),Ly))throw Cs(new Q5(H1e+Eq(ro)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function rqt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;if(po=ctt(ro.Db&254),po==0)ro.Eb=co;else{if(po==1)Eo=Al(bm,Xu,1,2,5,1),vo=wde(ro,oo),vo==0?(Eo[0]=co,Eo[1]=ro.Eb):(Eo[0]=ro.Eb,Eo[1]=co);else for(Eo=Al(bm,Xu,1,po+1,5,1),xo=yT(ro.Eb),fo=2,To=0,Ao=0;fo<=128;fo<<=1)fo==oo?Eo[Ao++]=co:ro.Db&fo&&(Eo[Ao++]=xo[To++]);ro.Eb=Eo}ro.Db|=oo}function fst(ro,oo,co){var fo,po,vo,xo;for(this.b=new Zl,po=0,fo=0,xo=new _s(ro);xo.a0&&(vo=bo(cu(this.b,0),176),po+=vo.o,fo+=vo.p),po*=2,fo*=2,oo>1?po=dm(lo.Math.ceil(po*oo)):fo=dm(lo.Math.ceil(fo/oo)),this.a=new bke(po,fo)}function dst(ro,oo,co,fo,po,vo){var xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs;for(Io=fo,oo.j&&oo.o?(Xo=bo(m1(ro.f,oo.A),60),ws=Xo.d.c+Xo.d.b,--Io):ws=oo.a.c+oo.a.b,Po=po,co.q&&co.o?(Xo=bo(m1(ro.f,co.C),60),Ao=Xo.d.c,++Po):Ao=co.a.c,Ss=Ao-ws,To=lo.Math.max(2,Po-Io),Eo=Ss/To,Zo=ws+Eo,Wo=Io;Wo=0;xo+=po?1:-1){for(Eo=oo[xo],To=fo==(nu(),p1)?po?hy(Eo,fo):bx(hy(Eo,fo)):po?bx(hy(Eo,fo)):hy(Eo,fo),vo&&(ro.c[Eo.p]=To.gc()),Po=To.Kc();Po.Ob();)Io=bo(Po.Pb(),12),ro.d[Io.p]=Ao++;sm(co,To)}}function pst(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;for(vo=na(Tl(ro.b.Kc().Pb())),Ao=na(Tl(eOt(oo.b))),fo=G_(Pm(ro.a),Ao-co),po=G_(Pm(oo.a),co-vo),Io=G0(fo,po),G_(Io,1/(Ao-vo)),this.a=Io,this.b=new Zl,Eo=!0,xo=ro.b.Kc(),xo.Pb();xo.Ob();)To=na(Tl(xo.Pb())),Eo&&To-co>S0e&&(this.b.Fc(co),Eo=!1),this.b.Fc(To);Eo&&this.b.Fc(co)}function iqt(ro){var oo,co,fo,po;if(SVt(ro,ro.n),ro.d.c.length>0){for(wD(ro.c);g4e(ro,bo(Es(new _s(ro.e.a)),125))>5,oo&=31,fo>=ro.d)return ro.e<0?(J_(),w1t):(J_(),XB);if(vo=ro.d-fo,po=Al(Q1,E0,28,vo+1,15,1),YFt(po,vo,ro.a,fo,oo),ro.e<0){for(co=0;co0&&ro.a[co]<<32-oo){for(co=0;co=0?!1:(co=q9((W2(),Gm),po,oo),co?(fo=co.Ik(),(fo>1||fo==-1)&&YC(Fv(Gm,co))!=3):!0)):!1}function lqt(ro,oo,co,fo){var po,vo,xo,Eo,To;return Eo=Zv(bo(Gs((!oo.b&&(oo.b=new Wu(D1,oo,4,7)),oo.b),0),84)),To=Zv(bo(Gs((!oo.c&&(oo.c=new Wu(D1,oo,5,8)),oo.c),0),84)),kp(Eo)==kp(To)||D$(To,Eo)?null:(xo=$H(oo),xo==co?fo:(vo=bo(m1(ro.a,xo),10),vo&&(po=vo.e,po)?po:null))}function cqt(ro,oo,co){var fo,po,vo,xo,Eo;for(co.Ug("Longest path to source layering",1),ro.a=oo,Eo=ro.a.a,ro.b=Al(Q1,E0,28,Eo.c.length,15,1),fo=0,xo=new _s(Eo);xo.a0&&(co[0]+=ro.d,xo-=co[0]),co[2]>0&&(co[2]+=ro.d,xo-=co[2]),vo=lo.Math.max(0,xo),co[1]=lo.Math.max(co[1],xo),o_e(ro,c2,po.c+fo.b+co[0]-(co[1]-xo)/2,co),oo==c2&&(ro.c.b=vo,ro.c.c=po.c+fo.b+(vo-xo)/2)}function Est(){this.c=Al(Am,Iv,28,(nu(),As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1])).length,15,1),this.b=Al(Am,Iv,28,As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1]).length,15,1),this.a=Al(Am,Iv,28,As($s(pv,1),My,64,0,[gy,s1,p1,z1,l1]).length,15,1),l2e(this.c,Tp),l2e(this.b,am),l2e(this.a,am)}function Uy(ro,oo,co){var fo,po,vo,xo;if(oo<=co?(po=oo,vo=co):(po=co,vo=oo),fo=0,ro.b==null)ro.b=Al(Q1,E0,28,2,15,1),ro.b[0]=po,ro.b[1]=vo,ro.c=!0;else{if(fo=ro.b.length,ro.b[fo-1]+1==po){ro.b[fo-1]=vo;return}xo=Al(Q1,E0,28,fo+2,15,1),jy(ro.b,0,xo,0,fo),ro.b=xo,ro.b[fo-1]>=po&&(ro.c=!1,ro.a=!1),ro.b[fo++]=po,ro.b[fo]=vo,ro.c||B9(ro)}}function gqt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;for(Ao=oo.d,ro.a=new o2(Ao.c.length),ro.c=new H1,Eo=new _s(Ao);Eo.a=0?ro.Lh(Ao,!1,!0):m6(ro,co,!1),61));e:for(vo=Po.Kc();vo.Ob();){for(po=bo(vo.Pb(),58),Io=0;Io1;)X$(po,po.i-1);return fo}function Tst(ro,oo){var co,fo,po,vo,xo,Eo,To;for(co=new m9,vo=new _s(ro.b);vo.aro.d[xo.p]&&(co+=QSe(ro.b,vo),h3(ro.a,Ql(vo)));for(;!xD(ro.a);)O_e(ro.b,bo(O8(ro.a),17).a)}return co}function xqt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao;for(ro.a=new qwe,Ao=0,po=0,fo=new _s(ro.i.b);fo.aEo.d&&(Io=Eo.d+Eo.a+Ao));co.c.d=Io,oo.a.zc(co,oo),To=lo.Math.max(To,co.c.d+co.c.a)}return To}function Sv(){Sv=qo,Fee=new g$("COMMENTS",0),Tx=new g$("EXTERNAL_PORTS",1),oF=new g$("HYPEREDGES",2),Pee=new g$("HYPERNODES",3),GN=new g$("NON_FREE_PORTS",4),f7=new g$("NORTH_SOUTH_PORTS",5),sF=new g$(Qut,6),qN=new g$("CENTER_LABELS",7),VN=new g$("END_LABELS",8),jee=new g$("PARTITIONS",9)}function _qt(ro,oo,co,fo,po){return fo<0?(fo=L9(ro,po,As($s(uu,1),Yl,2,6,[qhe,Vhe,Ghe,Whe,lR,Uhe,Khe,Yhe,Xhe,Qhe,Zhe,Jhe]),oo),fo<0&&(fo=L9(ro,po,As($s(uu,1),Yl,2,6,["Jan","Feb","Mar","Apr",lR,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),oo)),fo<0?!1:(co.k=fo,!0)):fo>0?(co.k=fo-1,!0):!1}function Eqt(ro,oo,co,fo,po){return fo<0?(fo=L9(ro,po,As($s(uu,1),Yl,2,6,[qhe,Vhe,Ghe,Whe,lR,Uhe,Khe,Yhe,Xhe,Qhe,Zhe,Jhe]),oo),fo<0&&(fo=L9(ro,po,As($s(uu,1),Yl,2,6,["Jan","Feb","Mar","Apr",lR,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),oo)),fo<0?!1:(co.k=fo,!0)):fo>0?(co.k=fo-1,!0):!1}function kqt(ro,oo,co,fo,po,vo){var xo,Eo,To,Ao;if(Eo=32,fo<0){if(oo[0]>=ro.length||(Eo=Um(ro,oo[0]),Eo!=43&&Eo!=45)||(++oo[0],fo=oZ(ro,oo),fo<0))return!1;Eo==45&&(fo=-fo)}return Eo==32&&oo[0]-co==2&&po.b==2&&(To=new MK,Ao=To.q.getFullYear()-$3+$3-80,xo=Ao%100,vo.a=fo==xo,fo+=(Ao/100|0)*100+(fo=0?x3(ro):uL(x3(f4(ro)))),QB[oo]=fY(fS(ro,oo),0)?x3(fS(ro,oo)):uL(x3(f4(fS(ro,oo)))),ro=nv(ro,5);for(;oo=Ao&&(To=fo);To&&(Io=lo.Math.max(Io,To.a.o.a)),Io>Wo&&(Po=Ao,Wo=Io)}return Po}function Oqt(ro){var oo,co,fo,po,vo,xo,Eo;for(vo=new e4(bo(a0(new $v),50)),Eo=am,co=new _s(ro.d);co.a_ft?Up(To,ro.b):fo<=_ft&&fo>Eft?Up(To,ro.d):fo<=Eft&&fo>kft?Up(To,ro.c):fo<=kft&&Up(To,ro.a),vo=Ost(ro,To,vo);return po}function Ist(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao;for(po=(fo.c+fo.a)/2,Fw(oo.j),y0(oo.j,po),Fw(co.e),y0(co.e,po),Ao=new GPe,Eo=new _s(ro.f);Eo.a1,Eo&&(fo=new Vl(po,co.b),y0(oo.a,fo)),EL(oo.a,As($s(_m,1),Yl,8,0,[Wo,Po]))}function F4e(ro,oo,co){var fo,po;for(oo=48;co--)oP[co]=co-48<<24>>24;for(fo=70;fo>=65;fo--)oP[fo]=fo-65+10<<24>>24;for(po=102;po>=97;po--)oP[po]=po-97+10<<24>>24;for(vo=0;vo<10;vo++)pne[vo]=48+vo&em;for(ro=10;ro<=15;ro++)pne[ro]=65+ro-10&em}function Dqt(ro,oo){oo.Ug("Process graph bounds",1),Fl(ro,(fp(),Pme),Wz(dfe(C$(new Ou(null,new Du(ro.b,16)),new WP)))),Fl(ro,jme,Wz(dfe(C$(new Ou(null,new Du(ro.b,16)),new GW)))),Fl(ro,VRe,Wz(ffe(C$(new Ou(null,new Du(ro.b,16)),new WW)))),Fl(ro,GRe,Wz(ffe(C$(new Ou(null,new Du(ro.b,16)),new r5)))),oo.Vg()}function Lqt(ro){var oo,co,fo,po,vo;po=bo(bs(ro,(ou(),XT)),21),vo=bo(bs(ro,ote),21),co=new Vl(ro.f.a+ro.d.b+ro.d.c,ro.f.b+ro.d.d+ro.d.a),oo=new ov(co),po.Hc((Mw(),MA))&&(fo=bo(bs(ro,UN),8),vo.Hc((ww(),dM))&&(fo.a<=0&&(fo.a=20),fo.b<=0&&(fo.b=20)),oo.a=lo.Math.max(co.a,fo.a),oo.b=lo.Math.max(co.b,fo.b)),lu(au(bs(ro,cme)))||dWt(ro,co,oo)}function Bqt(ro,oo){var co,fo,po,vo;for(vo=hy(oo,(nu(),z1)).Kc();vo.Ob();)fo=bo(vo.Pb(),12),co=bo(bs(fo,(Wl(),aw)),10),co&&mS(sS(oS(aS(iS(new Lx,0),.1),ro.i[oo.p].d),ro.i[co.p].a));for(po=hy(oo,s1).Kc();po.Ob();)fo=bo(po.Pb(),12),co=bo(bs(fo,(Wl(),aw)),10),co&&mS(sS(oS(aS(iS(new Lx,0),.1),ro.i[co.p].d),ro.i[oo.p].a))}function nhe(ro){var oo,co,fo,po,vo,xo;if(!ro.c){if(xo=new Qie,oo=tP,vo=oo.a.zc(ro,oo),vo==null){for(fo=new g1(Fy(ro));fo.e!=fo.i.gc();)co=bo(k1(fo),89),po=SZ(co),Hs(po,90)&&Bp(xo,nhe(bo(po,29))),Y1(xo,co);oo.a.Bc(ro)!=null,oo.a.gc()==0}INt(xo),F$(xo),ro.c=new c9((bo(Gs(Ml((c3(),_d).o),15),19),xo.i),xo.g),mw(ro).b&=-33}return ro.c}function j4e(ro){var oo;if(ro.c!=10)throw Cs(new p0(m0((c0(),CJ))));switch(oo=ro.a,oo){case 110:oo=10;break;case 114:oo=13;break;case 116:oo=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw Cs(new p0(m0((c0(),Ex))))}return oo}function Lst(ro){var oo,co,fo,po,vo;if(ro.l==0&&ro.m==0&&ro.h==0)return"0";if(ro.h==oV&&ro.m==0&&ro.l==0)return"-9223372036854775808";if(ro.h>>19)return"-"+Lst(kI(ro));for(co=ro,fo="";!(co.l==0&&co.m==0&&co.h==0);){if(po=Iue(DZ),co=w3e(co,po,!0),oo=""+QPe(N3),!(co.l==0&&co.m==0&&co.h==0))for(vo=9-oo.length;vo>0;vo--)oo="0"+oo;fo=oo+fo}return fo}function Fqt(ro){var oo,co,fo,po,vo,xo,Eo;for(oo=!1,co=0,po=new _s(ro.d.b);po.a=ro.a||!S5e(oo,co))return-1;if(rI(bo(fo.Kb(oo),20)))return 1;for(po=0,xo=bo(fo.Kb(oo),20).Kc();xo.Ob();)if(vo=bo(xo.Pb(),18),To=vo.c.i==oo?vo.d.i:vo.c.i,Eo=z4e(ro,To,co,fo),Eo==-1||(po=lo.Math.max(po,Eo),po>ro.c-1))return-1;return po+1}function Bst(ro,oo){var co,fo,po,vo,xo,Eo;if($a(oo)===$a(ro))return!0;if(!Hs(oo,15)||(fo=bo(oo,15),Eo=ro.gc(),fo.gc()!=Eo))return!1;if(xo=fo.Kc(),ro.Yi()){for(co=0;co0){if(ro._j(),oo!=null){for(vo=0;vo>24;case 97:case 98:case 99:case 100:case 101:case 102:return ro-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return ro-65+10<<24>>24;default:throw Cs(new H_("Invalid hexadecimal"))}}function bZ(){bZ=qo,TAe=new i9("SPIRAL",0),SAe=new i9("LINE_BY_LINE",1),_Ae=new i9("MANHATTAN",2),xAe=new i9("JITTER",3),Vpe=new i9("QUADRANTS_LINE_BY_LINE",4),kAe=new i9("QUADRANTS_MANHATTAN",5),EAe=new i9("QUADRANTS_JITTER",6),wAe=new i9("COMBINE_LINE_BY_LINE_MANHATTAN",7),yAe=new i9("COMBINE_JITTER_MANHATTAN",8)}function Pst(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao;for(To=Cde(ro,co),Ao=Cde(oo,co),po=!1;To&&Ao&&(fo||DDt(To,Ao,co));)xo=Cde(To,co),Eo=Cde(Ao,co),qH(oo),qH(ro),vo=To.c,$he(To,!1),$he(Ao,!1),co?(q$(oo,Ao.p,vo),oo.p=Ao.p,q$(ro,To.p+1,vo),ro.p=To.p):(q$(ro,To.p,vo),ro.p=To.p,q$(oo,Ao.p+1,vo),oo.p=Ao.p),Dm(To,null),Dm(Ao,null),To=xo,Ao=Eo,po=!0;return po}function jst(ro){switch(ro.g){case 0:return new GU;case 1:return new VU;case 3:return new oze;case 4:return new Mre;case 5:return new NVe;case 6:return new K5;case 2:return new uv;case 7:return new Lse;case 8:return new Fse;default:throw Cs(new i1("No implementation is available for the layerer "+(ro.f!=null?ro.f:""+ro.g)))}}function Vqt(ro,oo,co,fo){var po,vo,xo,Eo,To;for(po=!1,vo=!1,Eo=new _s(fo.j);Eo.a=oo.length)throw Cs(new Dv("Greedy SwitchDecider: Free layer not in graph."));this.c=oo[ro],this.e=new dH(fo),afe(this.e,this.c,(nu(),l1)),this.i=new dH(fo),afe(this.i,this.c,p1),this.f=new XGe(this.c),this.a=!vo&&po.i&&!po.s&&this.c[0].k==(a1(),Kp),this.a&&iPt(this,ro,oo.length)}function Hst(ro,oo){var co,fo,po,vo,xo,Eo;vo=!ro.B.Hc((ww(),FG)),xo=ro.B.Hc(Yve),ro.a=new _tt(xo,vo,ro.c),ro.n&&bSe(ro.a.n,ro.n),Zae(ro.g,(US(),c2),ro.a),oo||(fo=new qL(1,vo,ro.c),fo.n.a=ro.k,I8(ro.p,(nu(),s1),fo),po=new qL(1,vo,ro.c),po.n.d=ro.k,I8(ro.p,z1,po),Eo=new qL(0,vo,ro.c),Eo.n.c=ro.k,I8(ro.p,l1,Eo),co=new qL(0,vo,ro.c),co.n.b=ro.k,I8(ro.p,p1,co))}function Wqt(ro){var oo,co,fo;switch(oo=bo(bs(ro.d,(ou(),M5)),223),oo.g){case 2:co=MYt(ro);break;case 3:co=(fo=new Zl,zp(X0(Kv(fy(fy(new Ou(null,new Du(ro.d.b,16)),new SW),new Il),new J7),new IP),new gLe(fo)),fo);break;default:throw Cs(new Lv("Compaction not supported for "+oo+" edges."))}nUt(ro,co),Hm(new Dl(ro.g),new hLe(ro))}function Uqt(ro,oo){var co,fo,po,vo,xo,Eo,To;if(oo.Ug("Process directions",1),co=bo(bs(ro,(by(),U6)),88),co!=(_g(),A_))for(po=G1(ro.b,0);po.b!=po.d.c;){switch(fo=bo(q1(po),40),Eo=bo(bs(fo,(fp(),pG)),17).a,To=bo(bs(fo,gG),17).a,co.g){case 4:To*=-1;break;case 1:vo=Eo,Eo=To,To=vo;break;case 2:xo=Eo,Eo=-To,To=xo}Fl(fo,pG,Ql(Eo)),Fl(fo,gG,Ql(To))}oo.Vg()}function Kqt(ro,oo){var co;return co=new O1,oo&&Qv(co,bo(m1(ro.a,jG),96)),Hs(oo,422)&&Qv(co,bo(m1(ro.a,zG),96)),Hs(oo,366)?(Qv(co,bo(m1(ro.a,Nv),96)),co):(Hs(oo,84)&&Qv(co,bo(m1(ro.a,D1),96)),Hs(oo,207)?(Qv(co,bo(m1(ro.a,F0),96)),co):Hs(oo,193)?(Qv(co,bo(m1(ro.a,fw),96)),co):(Hs(oo,326)&&Qv(co,bo(m1(ro.a,Gp),96)),co))}function Yqt(ro){var oo,co,fo,po,vo,xo,Eo,To;for(To=new hXe,Eo=new _s(ro.a);Eo.a0&&oo=0)return!1;if(oo.p=co.b,Jl(co.e,oo),po==(a1(),km)||po==Zy){for(xo=new _s(oo.j);xo.aro.d[Eo.p]&&(co+=QSe(ro.b,vo),h3(ro.a,Ql(vo)))):++xo;for(co+=ro.b.d*xo;!xD(ro.a);)O_e(ro.b,bo(O8(ro.a),17).a)}return co}function Zst(ro){var oo,co,fo,po,vo,xo;return vo=0,oo=Hx(ro),oo.kk()&&(vo|=4),ro.Bb&Y2&&(vo|=2),Hs(ro,102)?(co=bo(ro,19),po=bv(co),co.Bb&Cy&&(vo|=32),po&&(A1($$(po)),vo|=8,xo=po.t,(xo>1||xo==-1)&&(vo|=16),po.Bb&Cy&&(vo|=64)),co.Bb&hv&&(vo|=cA),vo|=bS):Hs(oo,469)?vo|=512:(fo=oo.kk(),fo&&fo.i&1&&(vo|=256)),ro.Bb&512&&(vo|=128),vo}function aVt(ro,oo){var co;return ro.f==lbe?(co=YC(Fv((W2(),Gm),oo)),ro.e?co==4&&oo!=(rR(),WR)&&oo!=(rR(),GR)&&oo!=(rR(),cbe)&&oo!=(rR(),ube):co==2):ro.d&&(ro.d.Hc(oo)||ro.d.Hc(F8(Fv((W2(),Gm),oo)))||ro.d.Hc(q9((W2(),Gm),ro.b,oo)))?!0:ro.f&&$4e((W2(),ro.f),_H(Fv(Gm,oo)))?(co=YC(Fv(Gm,oo)),ro.e?co==4:co==2):!1}function lVt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo;for(Wo=-1,Xo=0,Ao=ro,Io=0,Po=Ao.length;Io0&&++Xo;++Wo}return Xo}function cVt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po;return xo=bo(zl(co,($0(),PR)),8),To=xo.a,Io=xo.b+ro,po=lo.Math.atan2(Io,To),po<0&&(po+=FT),po+=oo,po>FT&&(po-=FT),Eo=bo(zl(fo,PR),8),Ao=Eo.a,Po=Eo.b+ro,vo=lo.Math.atan2(Po,Ao),vo<0&&(vo+=FT),vo+=oo,vo>FT&&(vo-=FT),s_(),hS(1e-10),lo.Math.abs(po-vo)<=1e-10||po==vo||isNaN(po)&&isNaN(vo)?0:povo?1:LC(isNaN(po),isNaN(vo))}function ohe(ro){var oo,co,fo,po,vo,xo,Eo;for(Eo=new H1,fo=new _s(ro.a.b);fo.a=ro.o)throw Cs(new xye);Eo=oo>>5,xo=oo&31,vo=fS(1,s0(fS(xo,1))),po?ro.n[co][Eo]=qS(ro.n[co][Eo],vo):ro.n[co][Eo]=vm(ro.n[co][Eo],bxe(vo)),vo=fS(vo,1),fo?ro.n[co][Eo]=qS(ro.n[co][Eo],vo):ro.n[co][Eo]=vm(ro.n[co][Eo],bxe(vo))}catch(To){throw To=$p(To),Hs(To,333)?Cs(new Dv(T1e+ro.o+"*"+ro.p+C1e+oo+av+co+$1e)):Cs(To)}}function dVt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po,Wo;for(Wo=new e4(new FLe(ro)),Eo=As($s(VE,1),T4,10,0,[oo,co]),To=0,Ao=Eo.length;To0&&(fo=(!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),bo(Gs(ro.n,0),135)).a,!fo||S0(S0((oo.a+=' "',oo),fo),'"'))),S0(RC(S0(RC(S0(RC(S0(RC((oo.a+=" (",oo),ro.i),","),ro.j)," | "),ro.g),","),ro.f),")"),oo.a)}function Jst(ro){var oo,co,fo;return ro.Db&64?Fde(ro):(oo=new Bw(Y6e),co=ro.k,co?S0(S0((oo.a+=' "',oo),co),'"'):(!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),ro.n.i>0&&(fo=(!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),bo(Gs(ro.n,0),135)).a,!fo||S0(S0((oo.a+=' "',oo),fo),'"'))),S0(RC(S0(RC(S0(RC(S0(RC((oo.a+=" (",oo),ro.i),","),ro.j)," | "),ro.g),","),ro.f),")"),oo.a)}function gVt(ro,oo){var co,fo,po,vo,xo;for(oo==(IL(),$me)&&Nq(bo(Q0(ro.a,(V$(),YV)),15)),po=bo(Q0(ro.a,(V$(),YV)),15).Kc();po.Ob();)switch(fo=bo(po.Pb(),105),co=bo(cu(fo.j,0),113).d.j,vo=new tw(fo.j),Up(vo,new UA),oo.g){case 2:Ide(ro,vo,co,(s6(),B3),1);break;case 1:case 0:xo=tHt(vo),Ide(ro,new s4(vo,0,xo),co,(s6(),B3),0),Ide(ro,new s4(vo,xo,vo.c.length),co,B3,1)}}function ahe(ro,oo){var co,fo,po,vo,xo,Eo,To;if(oo==null||oo.length==0)return null;if(po=bo(Gy(ro.a,oo),143),!po){for(fo=(Eo=new L0(ro.b).a.vc().Kc(),new pp(Eo));fo.a.Ob();)if(co=(vo=bo(fo.a.Pb(),44),bo(vo.md(),143)),xo=co.c,To=oo.length,Iu(xo.substr(xo.length-To,To),oo)&&(oo.length==xo.length||Um(xo,xo.length-oo.length-1)==46)){if(po)return null;po=co}po&&Bv(ro.a,oo,po)}return po}function mVt(ro,oo){var co,fo,po,vo;return co=new $l,fo=bo(ny(Kv(new Ou(null,new Du(ro.f,16)),co),I$(new Ol,new Fu,new Is,new Ks,As($s(zv,1),Pl,108,0,[(ow(),uA),oy]))),21),po=fo.gc(),fo=bo(ny(Kv(new Ou(null,new Du(oo.f,16)),co),I$(new Ol,new Fu,new Is,new Ks,As($s(zv,1),Pl,108,0,[uA,oy]))),21),vo=fo.gc(),popo.p?(hm(vo,z1),vo.d&&(Eo=vo.o.b,oo=vo.a.b,vo.a.b=Eo-oo)):vo.j==z1&&po.p>ro.p&&(hm(vo,s1),vo.d&&(Eo=vo.o.b,oo=vo.a.b,vo.a.b=-(Eo-oo)));break}return po}function Hq(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Po;if(!(Hs(oo,207)||Hs(oo,366)||Hs(oo,193)))throw Cs(new i1("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return xo=ro.a/2,To=oo.i+fo-xo,Io=oo.j+po-xo,Ao=To+oo.g+ro.a,Po=Io+oo.f+ro.a,vo=new P2,y0(vo,new Vl(To,Io)),y0(vo,new Vl(To,Po)),y0(vo,new Vl(Ao,Po)),y0(vo,new Vl(Ao,Io)),Eo=new Yde(vo),Qv(Eo,oo),co&&N0(ro.b,oo,Eo),Eo}function ZI(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;for(vo=new Vl(oo,co),Io=new _s(ro.a);Io.a1,Eo&&(fo=new Vl(po,co.b),y0(oo.a,fo)),EL(oo.a,As($s(_m,1),Yl,8,0,[Wo,Po]))}function qx(){qx=qo,dte=new m$(sE,0),aG=new m$("NIKOLOV",1),lG=new m$("NIKOLOV_PIXEL",2),lRe=new m$("NIKOLOV_IMPROVED",3),cRe=new m$("NIKOLOV_IMPROVED_PIXEL",4),aRe=new m$("DUMMYNODE_PERCENTAGE",5),uRe=new m$("NODECOUNT_PERCENTAGE",6),hte=new m$("NO_BOUNDARY",7),G6=new m$("MODEL_ORDER_LEFT_TO_RIGHT",8),CA=new m$("MODEL_ORDER_RIGHT_TO_LEFT",9)}function TVt(ro){var oo,co,fo,po,vo;for(fo=ro.length,oo=new SD,vo=0;vo=40,xo&&CGt(ro),DWt(ro),iqt(ro),co=htt(ro),fo=0;co&&fo0&&y0(ro.f,vo)):(ro.c[xo]-=Ao+1,ro.c[xo]<=0&&ro.a[xo]>0&&y0(ro.e,vo))))}function dat(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io;for(To=new Vl(co,fo),mm(To,bo(bs(oo,(fp(),nM)),8)),Io=G1(oo.b,0);Io.b!=Io.d.c;)Ao=bo(q1(Io),40),G0(Ao.e,To),y0(ro.b,Ao);for(Eo=bo(ny(ASe(new Ou(null,new Du(oo.a,16))),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15).Kc();Eo.Ob();){for(xo=bo(Eo.Pb(),65),vo=G1(xo.a,0);vo.b!=vo.d.c;)po=bo(q1(vo),8),po.a+=To.a,po.b+=To.b;y0(ro.a,xo)}}function n3e(ro,oo){var co,fo,po,vo;if(0<(Hs(ro,16)?bo(ro,16).gc():h5(ro.Kc()))){if(po=oo,1=0&&Tovo*2?(Io=new KX(Po),Ao=H2(xo)/Ow(xo),To=Ihe(Io,oo,new c8,co,fo,po,Ao),G0(zS(Io.e),To),Po.c.length=0,vo=0,Ju(Po.c,Io),Ju(Po.c,xo),vo=H2(Io)*Ow(Io)+H2(xo)*Ow(xo)):(Ju(Po.c,xo),vo+=H2(xo)*Ow(xo));return Po}function pat(ro,oo){var co,fo,po,vo,xo,Eo;if(Eo=bo(bs(oo,(ou(),Pp)),101),Eo==(Im(),YE)||Eo==n2)for(po=new Vl(oo.f.a+oo.d.b+oo.d.c,oo.f.b+oo.d.d+oo.d.a).b,xo=new _s(ro.a);xo.aco?oo:co;Ao<=Po;++Ao)Ao==co?Eo=fo++:(vo=po[Ao],Io=Zo.am(vo.Lk()),Ao==oo&&(To=Ao==Po&&!Io?fo-1:fo),Io&&++fo);return Wo=bo(jL(ro,oo,co),76),Eo!=To&&kO(ro,new PH(ro.e,7,xo,Ql(Eo),Xo.md(),To)),Wo}}else return bo(Wde(ro,oo,co),76);return bo(jL(ro,oo,co),76)}function GVt(ro,oo){var co,fo,po,vo,xo,Eo,To;for(oo.Ug("Port order processing",1),To=bo(bs(ro,(ou(),j8e)),430),fo=new _s(ro.b);fo.a=0&&(Eo=jDt(ro,xo),!(Eo&&(Ao<22?To.l|=1<>>1,xo.m=Io>>>1|(Po&1)<<21,xo.l=Wo>>>1|(Io&1)<<21,--Ao;return co&&_fe(To),vo&&(fo?(N3=kI(ro),po&&(N3=VJe(N3,(lI(),L$e)))):N3=h2(ro.l,ro.m,ro.h)),To}function KVt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po;for(Ao=ro.e[oo.c.p][oo.p]+1,To=oo.c.a.c.length+1,Eo=new _s(ro.a);Eo.a0&&(o1(0,ro.length),ro.charCodeAt(0)==45||(o1(0,ro.length),ro.charCodeAt(0)==43))?1:0,fo=xo;foco)throw Cs(new H_(S6+ro+'"'));return Eo}function YVt(ro){var oo,co,fo,po,vo,xo,Eo;for(xo=new xp,vo=new _s(ro.a);vo.a1)&&oo==1&&bo(ro.a[ro.b],10).k==(a1(),Ly)?oR(bo(ro.a[ro.b],10),(Gw(),UE)):fo&&(!co||(ro.c-ro.b&ro.a.length-1)>1)&&oo==1&&bo(ro.a[ro.c-1&ro.a.length-1],10).k==(a1(),Ly)?oR(bo(ro.a[ro.c-1&ro.a.length-1],10),(Gw(),G3)):(ro.c-ro.b&ro.a.length-1)==2?(oR(bo(OL(ro),10),(Gw(),UE)),oR(bo(OL(ro),10),G3)):kzt(ro,po),YSe(ro)}function ZVt(ro,oo,co){var fo,po,vo,xo,Eo;for(vo=0,po=new g1((!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a));po.e!=po.i.gc();)fo=bo(k1(po),27),xo="",(!fo.n&&(fo.n=new Bl(Nv,fo,1,7)),fo.n).i==0||(xo=bo(Gs((!fo.n&&(fo.n=new Bl(Nv,fo,1,7)),fo.n),0),135).a),Eo=new Efe(vo++,oo,xo),Qv(Eo,fo),Fl(Eo,(fp(),$F),fo),Eo.e.b=fo.j+fo.f/2,Eo.f.a=lo.Math.max(fo.g,1),Eo.e.a=fo.i+fo.g/2,Eo.f.b=lo.Math.max(fo.f,1),y0(oo.b,Eo),l2(co.f,fo,Eo)}function JVt(ro){var oo,co,fo,po,vo;fo=bo(bs(ro,(Wl(),Z0)),27),vo=bo(zl(fo,(ou(),XT)),181).Hc((Mw(),oC)),ro.e||(po=bo(bs(ro,Jy),21),oo=new Vl(ro.f.a+ro.d.b+ro.d.c,ro.f.b+ro.d.d+ro.d.a),po.Hc((Sv(),Tx))?(tp(fo,Pp,(Im(),n2)),y6(fo,oo.a,oo.b,!1,!0)):lu(au(zl(fo,cme)))||y6(fo,oo.a,oo.b,!0,!0)),vo?tp(fo,XT,Tu(oC)):tp(fo,XT,(co=bo(PS(YF),9),new sx(co,bo(cS(co,co.length),9),0)))}function r3e(ro,oo,co){var fo,po,vo,xo;if(oo[0]>=ro.length)return co.o=0,!0;switch(Um(ro,oo[0])){case 43:po=1;break;case 45:po=-1;break;default:return co.o=0,!0}if(++oo[0],vo=oo[0],xo=oZ(ro,oo),xo==0&&oo[0]==vo)return!1;if(oo[0]Eo&&(Eo=po,Io.c.length=0),po==Eo&&Jl(Io,new fm(co.c.i,co)));Hu(),Up(Io,ro.c),HC(ro.b,To.p,Io)}}function rGt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;for(xo=new _s(oo.b);xo.aEo&&(Eo=po,Io.c.length=0),po==Eo&&Jl(Io,new fm(co.d.i,co)));Hu(),Up(Io,ro.c),HC(ro.f,To.p,Io)}}function iGt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao;if(Ao=au(bs(oo,(by(),Oyt))),Ao==null||(u1(Ao),Ao)){for(Rjt(ro,oo),po=new Zl,To=G1(oo.b,0);To.b!=To.d.c;)xo=bo(q1(To),40),co=V5e(ro,xo,null),co&&(Qv(co,oo),Ju(po.c,co));if(ro.a=null,ro.b=null,po.c.length>1)for(fo=new _s(po);fo.a=0&&Eo!=co&&(vo=new Em(ro,1,Eo,xo,null),fo?fo.nj(vo):fo=vo),co>=0&&(vo=new Em(ro,1,co,Eo==co?xo:null,oo),fo?fo.nj(vo):fo=vo)),fo}function vat(ro){var oo,co,fo;if(ro.b==null){if(fo=new Z5,ro.i!=null&&(Av(fo,ro.i),fo.a+=":"),ro.f&256){for(ro.f&256&&ro.a!=null&&(S6t(ro.i)||(fo.a+="//"),Av(fo,ro.a)),ro.d!=null&&(fo.a+="/",Av(fo,ro.d)),ro.f&16&&(fo.a+="/"),oo=0,co=ro.j.length;ooWo?!1:(Po=(To=hB(fo,Wo,!1),To.a),Io+Eo+Po<=oo.b&&(jH(co,vo-co.s),co.c=!0,jH(fo,vo-co.s),_q(fo,co.s,co.t+co.d+Eo),fo.k=!0,fEe(co.q,fo),Xo=!0,po&&(JX(oo,fo),fo.j=oo,ro.c.length>xo&&(Tq((qu(xo,ro.c.length),bo(ro.c[xo],186)),fo),(qu(xo,ro.c.length),bo(ro.c[xo],186)).a.c.length==0&&l4(ro,xo)))),Xo)}function fGt(ro,oo){var co,fo,po,vo,xo,Eo;if(oo.Ug("Partition midprocessing",1),po=new ZC,zp(X0(new Ou(null,new Du(ro.a,16)),new jne),new nLe(po)),po.d!=0){for(Eo=bo(ny(ISe((vo=po.i,new Ou(null,(vo||(po.i=new v9(po,po.c))).Nc()))),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),fo=Eo.Kc(),co=bo(fo.Pb(),17);fo.Ob();)xo=bo(fo.Pb(),17),iHt(bo(Q0(po,co),21),bo(Q0(po,xo),21)),co=xo;oo.Vg()}}function wat(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;if(oo.p==0){for(oo.p=1,xo=co,xo||(po=new Zl,vo=(fo=bo(PS(pv),9),new sx(fo,bo(cS(fo,fo.length),9),0)),xo=new fm(po,vo)),bo(xo.a,15).Fc(oo),oo.k==(a1(),Kp)&&bo(xo.b,21).Fc(bo(bs(oo,(Wl(),_y)),64)),To=new _s(oo.j);To.a0){if(po=bo(ro.Ab.g,2033),oo==null){for(vo=0;voco.s&&Eoxo)return nu(),p1;break;case 4:case 3:if(Io<0)return nu(),s1;if(Io+co>vo)return nu(),z1}return To=(Ao+Eo/2)/xo,fo=(Io+co/2)/vo,To+fo<=1&&To-fo<=0?(nu(),l1):To+fo>=1&&To-fo>=0?(nu(),p1):fo<.5?(nu(),s1):(nu(),z1)}function mGt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws;for(co=!1,Io=na(Tl(bs(oo,(ou(),V6)))),Zo=C3*Io,po=new _s(oo.b);po.aTo+Zo&&(ws=Po.g+Wo.g,Wo.a=(Wo.g*Wo.a+Po.g*Po.a)/ws,Wo.g=ws,Po.f=Wo,co=!0)),vo=Eo,Po=Wo;return co}function Eat(ro,oo,co,fo,po,vo,xo){var Eo,To,Ao,Io,Po,Wo;for(Wo=new x8,Ao=oo.Kc();Ao.Ob();)for(Eo=bo(Ao.Pb(),853),Po=new _s(Eo.Rf());Po.a0?Eo.a?(Ao=Eo.b.Mf().b,po>Ao&&(ro.v||Eo.c.d.c.length==1?(xo=(po-Ao)/2,Eo.d.d=xo,Eo.d.a=xo):(co=bo(cu(Eo.c.d,0),187).Mf().b,fo=(co-Ao)/2,Eo.d.d=lo.Math.max(0,fo),Eo.d.a=po-fo-Ao))):Eo.d.a=ro.t+po:sL(ro.u)&&(vo=T5e(Eo.b),vo.d<0&&(Eo.d.d=-vo.d),vo.d+vo.a>Eo.b.Mf().b&&(Eo.d.a=vo.d+vo.a-Eo.b.Mf().b))}function vS(){vS=qo,_R=new Mm(($0(),AG),Ql(1)),oee=new Mm(rC,80),rpt=new Mm(gNe,5),U0t=new Mm($7,gN),tpt=new Mm(Vve,Ql(1)),npt=new Mm(Gve,(_f(),!0)),qAe=new BC(50),J0t=new Mm(L4,qAe),jAe=CG,VAe=zF,K0t=new Mm(Mve,!1),HAe=$G,Q0t=OA,Z0t=V3,X0t=nC,Y0t=I7,ept=IA,zAe=(L5e(),j0t),nge=V0t,iee=P0t,tge=z0t,GAe=q0t,spt=aM,apt=Vte,opt=RG,ipt=qte,WAe=(K8(),DA),new Mm(zR,WAe)}function yGt(ro,oo){var co;switch(KH(ro)){case 6:return Cm(oo);case 7:return b$(oo);case 8:return v$(oo);case 3:return Array.isArray(oo)&&(co=KH(oo),!(co>=14&&co<=16));case 11:return oo!=null&&typeof oo===Lhe;case 12:return oo!=null&&(typeof oo===Zq||typeof oo==Lhe);case 0:return ade(oo,ro.__elementTypeId$);case 2:return jce(oo)&&oo.Tm!==Yo;case 1:return jce(oo)&&oo.Tm!==Yo||ade(oo,ro.__elementTypeId$);default:return!0}}function wGt(ro){var oo,co,fo,po;fo=ro.o,x$(),ro.A.dc()||U0(ro.A,AAe)?po=fo.a:(ro.D?po=lo.Math.max(fo.a,eB(ro.f)):po=eB(ro.f),ro.A.Hc((Mw(),LG))&&!ro.B.Hc((ww(),XF))&&(po=lo.Math.max(po,eB(bo(Rv(ro.p,(nu(),s1)),252))),po=lo.Math.max(po,eB(bo(Rv(ro.p,z1),252)))),oo=RJe(ro),oo&&(po=lo.Math.max(po,oo.a))),lu(au(ro.e.Tf().of(($0(),OA))))?fo.a=lo.Math.max(fo.a,po):fo.a=po,co=ro.f.i,co.c=0,co.b=po,phe(ro.f)}function kat(ro,oo){var co,fo,po,vo;return fo=lo.Math.min(lo.Math.abs(ro.c-(oo.c+oo.b)),lo.Math.abs(ro.c+ro.b-oo.c)),vo=lo.Math.min(lo.Math.abs(ro.d-(oo.d+oo.a)),lo.Math.abs(ro.d+ro.a-oo.d)),co=lo.Math.abs(ro.c+ro.b/2-(oo.c+oo.b/2)),co>ro.b/2+oo.b/2||(po=lo.Math.abs(ro.d+ro.a/2-(oo.d+oo.a/2)),po>ro.a/2+oo.a/2)?1:co==0&&po==0?0:co==0?vo/po+1:po==0?fo/co+1:lo.Math.min(fo/co,vo/po)+1}function xGt(ro,oo){var co,fo,po,vo,xo,Eo,To;for(vo=0,Eo=0,To=0,po=new _s(ro.f.e);po.a0&&ro.d!=(SL(),oge)&&(Eo+=xo*(fo.d.a+ro.a[oo.a][fo.a]*(oo.d.a-fo.d.a)/co)),co>0&&ro.d!=(SL(),rge)&&(To+=xo*(fo.d.b+ro.a[oo.a][fo.a]*(oo.d.b-fo.d.b)/co)));switch(ro.d.g){case 1:return new Vl(Eo/vo,oo.d.b);case 2:return new Vl(oo.d.a,To/vo);default:return new Vl(Eo/vo,To/vo)}}function Tat(ro){var oo,co,fo,po,vo,xo;for(co=(!ro.a&&(ro.a=new Qp(tx,ro,5)),ro.a).i+2,xo=new o2(co),Jl(xo,new Vl(ro.j,ro.k)),zp(new Ou(null,(!ro.a&&(ro.a=new Qp(tx,ro,5)),new Du(ro.a,16))),new $Be(xo)),Jl(xo,new Vl(ro.b,ro.c)),oo=1;oo0&&(aq(To,!1,(_g(),qv)),aq(To,!0,ey)),g2(oo.g,new Oze(ro,co)),N0(ro.g,oo,co)}function Aat(){Aat=qo;var ro;for(V$e=As($s(Q1,1),E0,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),Ope=Al(Q1,E0,28,37,15,1),v1t=As($s(Q1,1),E0,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),G$e=Al(tT,c1e,28,37,14,1),ro=2;ro<=36;ro++)Ope[ro]=dm(lo.Math.pow(ro,V$e[ro])),G$e[ro]=$q(nV,Ope[ro])}function SGt(ro){var oo;if((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a).i!=1)throw Cs(new i1(rdt+(!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a).i));return oo=new P2,oq(bo(Gs((!ro.b&&(ro.b=new Wu(D1,ro,4,7)),ro.b),0),84))&&Fm(oo,vct(ro,oq(bo(Gs((!ro.b&&(ro.b=new Wu(D1,ro,4,7)),ro.b),0),84)),!1)),oq(bo(Gs((!ro.c&&(ro.c=new Wu(D1,ro,5,8)),ro.c),0),84))&&Fm(oo,vct(ro,oq(bo(Gs((!ro.c&&(ro.c=new Wu(D1,ro,5,8)),ro.c),0),84)),!0)),oo}function Rat(ro,oo){var co,fo,po,vo,xo;for(oo.d?po=ro.a.c==(Y_(),W6)?Sm(oo.b):Wp(oo.b):po=ro.a.c==(Y_(),N4)?Sm(oo.b):Wp(oo.b),vo=!1,fo=new x1(E1(po.a.Kc(),new ko));W1(fo);)if(co=bo(R1(fo),18),xo=lu(ro.a.f[ro.a.g[oo.b.p].p]),!(!xo&&!dv(co)&&co.c.i.c==co.d.i.c)&&!(lu(ro.a.n[ro.a.g[oo.b.p].p])||lu(ro.a.n[ro.a.g[oo.b.p].p]))&&(vo=!0,jS(ro.b,ro.a.g[SDt(co,oo.b).p])))return oo.c=!0,oo.a=co,oo;return oo.c=vo,oo.a=null,oo}function o3e(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;if(fo=co.gc(),fo==0)return!1;if(ro.Pj())if(To=ro.Qj(),pke(ro,oo,co),xo=fo==1?ro.Ij(3,null,co.Kc().Pb(),oo,To):ro.Ij(5,null,co,oo,To),ro.Mj()){for(Eo=fo<100?null:new e3(fo),vo=oo+fo,po=oo;po0){for(xo=0;xo>16==-15&&ro.Cb.Yh()&&Gue(new jue(ro.Cb,9,13,co,ro.c,x4(vw(bo(ro.Cb,62)),ro))):Hs(ro.Cb,90)&&ro.Db>>16==-23&&ro.Cb.Yh()&&(oo=ro.c,Hs(oo,90)||(oo=(Pu(),nS)),Hs(co,90)||(co=(Pu(),nS)),Gue(new jue(ro.Cb,9,10,co,oo,x4(Fy(bo(ro.Cb,29)),ro)))))),ro.c}function kGt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po;for(co.Ug("Hyperedge merging",1),Yjt(ro,oo),To=new Lm(oo.b,0);To.b0,Eo=TQ(oo,vo),vwe(co?Eo.b:Eo.g,oo),$9(Eo).c.length==1&&Mp(fo,Eo,fo.c.b,fo.c),po=new fm(vo,oo),h3(ro.o,po),A2(ro.e.a,vo))}function Bat(ro,oo){var co,fo,po,vo,xo,Eo,To;return fo=lo.Math.abs(eX(ro.b).a-eX(oo.b).a),Eo=lo.Math.abs(eX(ro.b).b-eX(oo.b).b),po=0,To=0,co=1,xo=1,fo>ro.b.b/2+oo.b.b/2&&(po=lo.Math.min(lo.Math.abs(ro.b.c-(oo.b.c+oo.b.b)),lo.Math.abs(ro.b.c+ro.b.b-oo.b.c)),co=1-po/fo),Eo>ro.b.a/2+oo.b.a/2&&(To=lo.Math.min(lo.Math.abs(ro.b.d-(oo.b.d+oo.b.a)),lo.Math.abs(ro.b.d+ro.b.a-oo.b.d)),xo=1-To/Eo),vo=lo.Math.min(co,xo),(1-vo)*lo.Math.sqrt(fo*fo+Eo*Eo)}function $Gt(ro){var oo,co,fo,po;for(Ohe(ro,ro.e,ro.f,(JC(),H3),!0,ro.c,ro.i),Ohe(ro,ro.e,ro.f,H3,!1,ro.c,ro.i),Ohe(ro,ro.e,ro.f,S7,!0,ro.c,ro.i),Ohe(ro,ro.e,ro.f,S7,!1,ro.c,ro.i),EGt(ro,ro.c,ro.e,ro.f,ro.i),fo=new Lm(ro.i,0);fo.b=65;co--)M_[co]=co-65<<24>>24;for(fo=122;fo>=97;fo--)M_[fo]=fo-97+26<<24>>24;for(po=57;po>=48;po--)M_[po]=po-48+52<<24>>24;for(M_[43]=62,M_[47]=63,vo=0;vo<=25;vo++)q4[vo]=65+vo&em;for(xo=26,To=0;xo<=51;++xo,To++)q4[xo]=97+To&em;for(ro=52,Eo=0;ro<=61;++ro,Eo++)q4[ro]=48+Eo&em;q4[62]=43,q4[63]=47}function Fat(ro,oo){var co,fo,po,vo,xo,Eo;return po=sEe(ro),Eo=sEe(oo),po==Eo?ro.e==oo.e&&ro.a<54&&oo.a<54?ro.foo.f?1:0:(fo=ro.e-oo.e,co=(ro.d>0?ro.d:lo.Math.floor((ro.a-1)*Gct)+1)-(oo.d>0?oo.d:lo.Math.floor((oo.a-1)*Gct)+1),co>fo+1?po:co0&&(xo=S9(xo,Yat(fo))),qtt(vo,xo))):poAo&&(Wo=0,Xo+=To+oo,To=0),ZI(xo,Wo,Xo),co=lo.Math.max(co,Wo+Io.a),To=lo.Math.max(To,Io.b),Wo+=Io.a+oo;return new Vl(co+oo,Xo+To+oo)}function c3e(ro,oo){var co,fo,po,vo,xo,Eo,To;if(!l_(ro))throw Cs(new Lv(ndt));if(fo=l_(ro),vo=fo.g,po=fo.f,vo<=0&&po<=0)return nu(),gy;switch(Eo=ro.i,To=ro.j,oo.g){case 2:case 1:if(Eo<0)return nu(),l1;if(Eo+ro.g>vo)return nu(),p1;break;case 4:case 3:if(To<0)return nu(),s1;if(To+ro.f>po)return nu(),z1}return xo=(Eo+ro.g/2)/vo,co=(To+ro.f/2)/po,xo+co<=1&&xo-co<=0?(nu(),l1):xo+co>=1&&xo-co>=0?(nu(),p1):co<.5?(nu(),s1):(nu(),z1)}function OGt(ro,oo,co,fo,po){var vo,xo;if(vo=tv(vm(oo[0],_v),vm(fo[0],_v)),ro[0]=s0(vo),vo=qC(vo,32),co>=po){for(xo=1;xo0&&(po.b[xo++]=0,po.b[xo++]=vo.b[0]-1),oo=1;oo0&&(_z(To,To.d-po.d),po.c==(VS(),z3)&&Ebe(To,To.a-po.d),To.d<=0&&To.i>0&&Mp(oo,To,oo.c.b,oo.c)));for(vo=new _s(ro.f);vo.a0&&(uD(Eo,Eo.i-po.d),po.c==(VS(),z3)&&fK(Eo,Eo.b-po.d),Eo.i<=0&&Eo.d>0&&Mp(co,Eo,co.c.b,co.c)))}function MGt(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Po,Wo,Xo;for(Hu(),Up(ro,new Oie),xo=gH(ro),Xo=new Zl,Wo=new Zl,Eo=null,To=0;xo.b!=0;)vo=bo(xo.b==0?null:(T1(xo.b!=0),hx(xo,xo.a.a)),163),!Eo||H2(Eo)*Ow(Eo)/21&&(To>H2(Eo)*Ow(Eo)/2||xo.b==0)&&(Po=new KX(Wo),Io=H2(Eo)/Ow(Eo),Ao=Ihe(Po,oo,new c8,co,fo,po,Io),G0(zS(Po.e),Ao),Eo=Po,Ju(Xo.c,Po),To=0,Wo.c.length=0));return sm(Xo,Wo),Xo}function jy(ro,oo,co,fo,po){a5();var vo,xo,Eo,To,Ao,Io,Po;if(Zxe(ro,"src"),Zxe(co,"dest"),Po=Nw(ro),To=Nw(co),vxe((Po.i&4)!=0,"srcType is not an array"),vxe((To.i&4)!=0,"destType is not an array"),Io=Po.c,xo=To.c,vxe(Io.i&1?Io==xo:(xo.i&1)==0,"Array types don't match"),wOt(ro,oo,co,fo,po),!(Io.i&1)&&Po!=To)if(Ao=yT(ro),vo=yT(co),$a(ro)===$a(co)&&oofo;)Np(vo,Eo,Ao[--oo]);else for(Eo=fo+po;fo0),fo.a.Xb(fo.c=--fo.b),Po>Wo+To&&Iw(fo);for(xo=new _s(Xo);xo.a0),fo.a.Xb(fo.c=--fo.b)}}function LGt(){H0();var ro,oo,co,fo,po,vo;if(dbe)return dbe;for(ro=new jw(4),J$(ro,T3(bpe,!0)),mB(ro,T3("M",!0)),mB(ro,T3("C",!0)),vo=new jw(4),fo=0;fo<11;fo++)Uy(vo,fo,fo);return oo=new jw(4),J$(oo,T3("M",!0)),Uy(oo,4448,4607),Uy(oo,65438,65439),po=new KD(2),OT(po,ro),OT(po,aP),co=new KD(2),co.Jm(VY(vo,T3("L",!0))),co.Jm(oo),co=new R$(3,co),co=new Qxe(po,co),dbe=co,dbe}function Z$(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao;for(co=new RegExp(oo,"g"),To=Al(uu,Yl,2,0,6,1),fo=0,Ao=ro,vo=null;;)if(Eo=co.exec(Ao),Eo==null||Ao==""){To[fo]=Ao;break}else xo=Eo.index,To[fo]=(Bm(0,xo,Ao.length),Ao.substr(0,xo)),Ao=lx(Ao,xo+Eo[0].length,Ao.length),co.lastIndex=0,vo==Ao&&(To[fo]=(Bm(0,1,Ao.length),Ao.substr(0,1)),Ao=(o1(1,Ao.length+1),Ao.substr(1))),vo=Ao,++fo;if(ro.length>0){for(po=To.length;po>0&&To[po-1]=="";)--po;po0&&(Po-=fo[0]+ro.c,fo[0]+=ro.c),fo[2]>0&&(Po-=fo[2]+ro.c),fo[1]=lo.Math.max(fo[1],Po),KY(ro.a[1],co.c+oo.b+fo[0]-(fo[1]-Po)/2,fo[1]);for(vo=ro.a,Eo=0,Ao=vo.length;Eo0?(ro.n.c.length-1)*ro.i:0,fo=new _s(ro.n);fo.a1)for(fo=G1(po,0);fo.b!=fo.d.c;)for(co=bo(q1(fo),235),vo=0,To=new _s(co.e);To.a0&&(oo[0]+=ro.c,Po-=oo[0]),oo[2]>0&&(Po-=oo[2]+ro.c),oo[1]=lo.Math.max(oo[1],Po),YY(ro.a[1],fo.d+co.d+oo[0]-(oo[1]-Po)/2,oo[1]);else for(Zo=fo.d+co.d,Xo=fo.a-co.d-co.a,xo=ro.a,To=0,Io=xo.length;To0||u6(po.b.d,ro.b.d+ro.b.a)==0&&fo.b<0||u6(po.b.d+po.b.a,ro.b.d)==0&&fo.b>0){Eo=0;break}}else Eo=lo.Math.min(Eo,Dit(ro,po,fo));Eo=lo.Math.min(Eo,Hat(ro,vo,Eo,fo))}return Eo}function Wq(ro,oo){var co,fo,po,vo,xo,Eo,To;if(ro.b<2)throw Cs(new i1("The vector chain must contain at least a source and a target point."));for(po=(T1(ro.b!=0),bo(ro.a.a.c,8)),nH(oo,po.a,po.b),To=new _8((!oo.a&&(oo.a=new Qp(tx,oo,5)),oo.a)),xo=G1(ro,1);xo.a=0&&vo!=co))throw Cs(new i1(CV));for(po=0,To=0;Tona(a_(xo.g,xo.d[0]).a)?(T1(To.b>0),To.a.Xb(To.c=--To.b),S$(To,xo),po=!0):Eo.e&&Eo.e.gc()>0&&(vo=(!Eo.e&&(Eo.e=new Zl),Eo.e).Mc(oo),Ao=(!Eo.e&&(Eo.e=new Zl),Eo.e).Mc(co),(vo||Ao)&&((!Eo.e&&(Eo.e=new Zl),Eo.e).Fc(xo),++xo.c));po||Ju(fo.c,xo)}function qGt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs;return Po=ro.a.i+ro.a.g/2,Wo=ro.a.i+ro.a.g/2,Zo=oo.i+oo.g/2,Ss=oo.j+oo.f/2,Eo=new Vl(Zo,Ss),Ao=bo(zl(oo,($0(),PR)),8),Ao.a=Ao.a+Po,Ao.b=Ao.b+Wo,vo=(Eo.b-Ao.b)/(Eo.a-Ao.a),fo=Eo.b-vo*Eo.a,ws=co.i+co.g/2,Rs=co.j+co.f/2,To=new Vl(ws,Rs),Io=bo(zl(co,PR),8),Io.a=Io.a+Po,Io.b=Io.b+Wo,xo=(To.b-Io.b)/(To.a-Io.a),po=To.b-xo*To.a,Xo=(fo-po)/(xo-vo),Ao.a>>0,"0"+oo.toString(16)),fo="\\x"+lx(co,co.length-2,co.length)):ro>=hv?(co=(oo=ro>>>0,"0"+oo.toString(16)),fo="\\v"+lx(co,co.length-6,co.length)):fo=""+String.fromCharCode(ro&em)}return fo}function Wat(ro){var oo,co,fo;if(u9(bo(bs(ro,(ou(),Pp)),101)))for(co=new _s(ro.j);co.a=oo.o&&co.f<=oo.f||oo.a*.5<=co.f&&oo.a*1.5>=co.f){if(xo=bo(cu(oo.n,oo.n.c.length-1),209),xo.e+xo.d+co.g+po<=fo&&(vo=bo(cu(oo.n,oo.n.c.length-1),209),vo.f-ro.f+co.f<=ro.b||ro.a.c.length==1))return ske(oo,co),!0;if(oo.s+co.g<=fo&&(oo.t+oo.d+co.f+po<=ro.b||ro.a.c.length==1))return Jl(oo.b,co),Eo=bo(cu(oo.n,oo.n.c.length-1),209),Jl(oo.n,new bX(oo.s,Eo.f+Eo.a+oo.i,oo.i)),jke(bo(cu(oo.n,oo.n.c.length-1),209),co),jat(oo,co),!0}return!1}function Kat(ro,oo,co){var fo,po,vo,xo;return ro.Pj()?(po=null,vo=ro.Qj(),fo=ro.Ij(1,xo=Kue(ro,oo,co),co,oo,vo),ro.Mj()&&!(ro.Yi()&&xo!=null?U0(xo,co):$a(xo)===$a(co))?(xo!=null&&(po=ro.Oj(xo,po)),po=ro.Nj(co,po),ro.Tj()&&(po=ro.Wj(xo,co,po)),po?(po.nj(fo),po.oj()):ro.Jj(fo)):(ro.Tj()&&(po=ro.Wj(xo,co,po)),po?(po.nj(fo),po.oj()):ro.Jj(fo)),xo):(xo=Kue(ro,oo,co),ro.Mj()&&!(ro.Yi()&&xo!=null?U0(xo,co):$a(xo)===$a(co))&&(po=null,xo!=null&&(po=ro.Oj(xo,null)),po=ro.Nj(co,po),po&&po.oj()),xo)}function XGt(ro,oo){var co,fo,po,vo,xo;if(oo.Ug("Path-Like Graph Wrapping",1),ro.b.c.length==0){oo.Vg();return}if(po=new m4e(ro),xo=(po.i==null&&(po.i=aEe(po,new e8)),na(po.i)*po.f),co=xo/(po.i==null&&(po.i=aEe(po,new e8)),na(po.i)),po.b>co){oo.Vg();return}switch(bo(bs(ro,(ou(),pme)),351).g){case 2:vo=new MP;break;case 0:vo=new EW;break;default:vo=new CW}if(fo=vo.og(ro,po),!vo.pg())switch(bo(bs(ro,ate),352).g){case 2:fo=Lit(po,fo);break;case 1:fo=Trt(po,fo)}GWt(ro,po,fo),oo.Vg()}function uB(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao;oo%=24,ro.q.getHours()!=oo&&(fo=new lo.Date(ro.q.getTime()),fo.setDate(fo.getDate()+1),Eo=ro.q.getTimezoneOffset()-fo.getTimezoneOffset(),Eo>0&&(To=Eo/60|0,Ao=Eo%60,po=ro.q.getDate(),co=ro.q.getHours(),co+To>=24&&++po,vo=new lo.Date(ro.q.getFullYear(),ro.q.getMonth(),po,oo+To,ro.q.getMinutes()+Ao,ro.q.getSeconds(),ro.q.getMilliseconds()),ro.q.setTime(vo.getTime()))),xo=ro.q.getTime(),ro.q.setTime(xo+36e5),ro.q.getHours()!=oo&&ro.q.setTime(xo)}function QGt(ro,oo){var co,fo,po,vo;if(uAt(ro.d,ro.e),ro.c.a.$b(),na(Tl(bs(oo.j,(ou(),Yee))))!=0||na(Tl(bs(oo.j,Yee)))!=0)for(co=Y9,$a(bs(oo.j,GE))!==$a((Q_(),I4))&&Fl(oo.j,(Wl(),F3),(_f(),!0)),vo=bo(bs(oo.j,mF),17).a,po=0;popo&&++Ao,Jl(xo,(qu(Eo+Ao,oo.c.length),bo(oo.c[Eo+Ao],17))),To+=(qu(Eo+Ao,oo.c.length),bo(oo.c[Eo+Ao],17)).a-fo,++co;co=Ss&&ro.e[To.p]>Zo*ro.b||zs>=co*Ss)&&(Ju(Wo.c,Eo),Eo=new Zl,Fm(xo,vo),vo.a.$b(),Ao-=Io,Xo=lo.Math.max(Xo,Ao*ro.b+ws),Ao+=zs,Ls=zs,zs=0,Io=0,ws=0);return new fm(Xo,Wo)}function mhe(ro){var oo,co,fo,po,vo,xo,Eo;if(!ro.d){if(Eo=new Jie,oo=tP,vo=oo.a.zc(ro,oo),vo==null){for(fo=new g1(Yv(ro));fo.e!=fo.i.gc();)co=bo(k1(fo),29),Bp(Eo,mhe(co));oo.a.Bc(ro)!=null,oo.a.gc()==0}for(xo=Eo.i,po=(!ro.q&&(ro.q=new Bl(eS,ro,11,10)),new g1(ro.q));po.e!=po.i.gc();++xo)bo(k1(po),411);Bp(Eo,(!ro.q&&(ro.q=new Bl(eS,ro,11,10)),ro.q)),F$(Eo),ro.d=new c9((bo(Gs(Ml((c3(),_d).o),9),19),Eo.i),Eo.g),ro.e=bo(Eo.g,688),ro.e==null&&(ro.e=Qxt),mw(ro).b&=-17}return ro.d}function tN(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao;if(Ao=w2(ro.e.Dh(),oo),To=0,po=bo(ro.g,124),vv(),bo(oo,69).xk()){for(xo=0;xo1||Zo==-1)if(Po=bo(ws,71),Wo=bo(Io,71),Po.dc())Wo.$b();else for(xo=!!bv(oo),vo=0,Eo=ro.a?Po.Kc():Po.Ii();Eo.Ob();)Ao=bo(Eo.Pb(),58),po=bo(p_(ro,Ao),58),po?(xo?(To=Wo.dd(po),To==-1?Wo.Gi(vo,po):vo!=To&&Wo.Ui(vo,po)):Wo.Gi(vo,po),++vo):ro.b&&!xo&&(Wo.Gi(vo,Ao),++vo);else ws==null?Io.Wb(null):(po=p_(ro,ws),po==null?ro.b&&!bv(oo)&&Io.Wb(ws):Io.Wb(po))}function nWt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao;for(co=new aW,po=new x1(E1(Sm(oo).a.Kc(),new ko));W1(po);)if(fo=bo(R1(po),18),!dv(fo)&&(Eo=fo.c.i,S5e(Eo,cee))){if(Ao=z4e(ro,Eo,cee,lee),Ao==-1)continue;co.b=lo.Math.max(co.b,Ao),!co.a&&(co.a=new Zl),Jl(co.a,Eo)}for(xo=new x1(E1(Wp(oo).a.Kc(),new ko));W1(xo);)if(vo=bo(R1(xo),18),!dv(vo)&&(To=vo.d.i,S5e(To,lee))){if(Ao=z4e(ro,To,lee,cee),Ao==-1)continue;co.d=lo.Math.max(co.d,Ao),!co.c&&(co.c=new Zl),Jl(co.c,To)}return co}function rWt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io;if(co.d.i!=oo.i){for(po=new k5(ro),_E(po,(a1(),km)),Fl(po,(Wl(),Z0),co),Fl(po,(ou(),Pp),(Im(),n2)),Ju(fo.c,po),xo=new Py,uy(xo,po),hm(xo,(nu(),l1)),Eo=new Py,uy(Eo,po),hm(Eo,p1),Io=co.d,Om(co,xo),vo=new QC,Qv(vo,co),Fl(vo,Hv,null),ev(vo,Eo),Om(vo,Io),Ao=new Lm(co.b,0);Ao.b1e6)throw Cs(new kK("power of ten too big"));if(ro<=q0)return j8(Bq(xR[1],oo),oo);for(fo=Bq(xR[1],q0),po=fo,co=Ty(ro-q0),oo=dm(ro%q0);Iy(co,q0)>0;)po=S9(po,fo),co=jx(co,q0);for(po=S9(po,Bq(xR[1],oo)),po=j8(po,q0),co=Ty(ro-q0);Iy(co,q0)>0;)po=j8(po,q0),co=jx(co,q0);return po=j8(po,oo),po}function Xat(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io;for(To=new _s(ro.a);To.aAo&&fo>Ao)Io=Eo,Ao=na(oo.p[Eo.p])+na(oo.d[Eo.p])+Eo.o.b+Eo.d.a;else{po=!1,co._g()&&co.bh("bk node placement breaks on "+Eo+" which should have been after "+Io);break}if(!po)break}return co._g()&&co.bh(oo+" is feasible: "+po),po}function h3e(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po,Wo;if(vo=new k5(ro),_E(vo,(a1(),Zy)),Fl(vo,(ou(),Pp),(Im(),n2)),po=0,oo){for(xo=new Py,Fl(xo,(Wl(),Z0),oo),Fl(vo,Z0,oo.i),hm(xo,(nu(),l1)),uy(xo,vo),Wo=X_(oo.e),Ao=Wo,Io=0,Po=Ao.length;Io0){if(po<0&&Io.a&&(po=To,vo=Ao[0],fo=0),po>=0){if(Eo=Io.b,To==po&&(Eo-=fo++,Eo==0))return 0;if(!ect(oo,Ao,Io,Eo,xo)){To=po-1,Ao[0]=vo;continue}}else if(po=-1,!ect(oo,Ao,Io,0,xo))return 0}else{if(po=-1,Um(Io.c,0)==32){if(Po=Ao[0],WQe(oo,Ao),Ao[0]>Po)continue}else if(V6t(oo,Io.c,Ao[0])){Ao[0]+=Io.c.length;continue}return 0}return UKt(xo,co)?Ao[0]:0}function cWt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;for(Io=new QY(new RDe(co)),Eo=Al(kw,jE,28,ro.f.e.c.length,16,1),Yxe(Eo,Eo.length),co[oo.a]=0,Ao=new _s(ro.f.e);Ao.a=0&&!I9(ro,Io,Po);)--Po;po[Io]=Po}for(Xo=0;Xo=0&&!I9(ro,Eo,Zo);)--Eo;vo[Zo]=Eo}for(To=0;Tooo[Wo]&&Wofo[To]&&wZ(ro,To,Wo,!1,!0)}function p3e(ro){var oo,co,fo,po,vo,xo,Eo,To;co=lu(au(bs(ro,(vS(),K0t)))),vo=ro.a.c.d,Eo=ro.a.d.d,co?(xo=G_(mm(new Vl(Eo.a,Eo.b),vo),.5),To=G_(Pm(ro.e),.5),oo=mm(G0(new Vl(vo.a,vo.b),xo),To),Swe(ro.d,oo)):(po=na(Tl(bs(ro.a,rpt))),fo=ro.d,vo.a>=Eo.a?vo.b>=Eo.b?(fo.a=Eo.a+(vo.a-Eo.a)/2+po,fo.b=Eo.b+(vo.b-Eo.b)/2-po-ro.e.b):(fo.a=Eo.a+(vo.a-Eo.a)/2+po,fo.b=vo.b+(Eo.b-vo.b)/2+po):vo.b>=Eo.b?(fo.a=vo.a+(Eo.a-vo.a)/2+po,fo.b=Eo.b+(vo.b-Eo.b)/2+po):(fo.a=vo.a+(Eo.a-vo.a)/2+po,fo.b=vo.b+(Eo.b-vo.b)/2-po-ro.e.b))}function dB(ro){var oo,co,fo,po,vo,xo,Eo,To;if(!ro.f){if(To=new ZM,Eo=new ZM,oo=tP,xo=oo.a.zc(ro,oo),xo==null){for(vo=new g1(Yv(ro));vo.e!=vo.i.gc();)po=bo(k1(vo),29),Bp(To,dB(po));oo.a.Bc(ro)!=null,oo.a.gc()==0}for(fo=(!ro.s&&(ro.s=new Bl(L2,ro,21,17)),new g1(ro.s));fo.e!=fo.i.gc();)co=bo(k1(fo),179),Hs(co,102)&&Y1(Eo,bo(co,19));F$(Eo),ro.r=new NGe(ro,(bo(Gs(Ml((c3(),_d).o),6),19),Eo.i),Eo.g),Bp(To,ro.r),F$(To),ro.f=new c9((bo(Gs(Ml(_d.o),5),19),To.i),To.g),mw(ro).b&=-3}return ro.f}function Zat(ro){IC(ro,new RT(AC(TC($C(CC(new W5,LT),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new Z2))),Xl(ro,LT,R1e,iu(BAe)),Xl(ro,LT,O1e,iu(Qpe)),Xl(ro,LT,pR,iu(N0t)),Xl(ro,LT,_6,iu(LAe)),Xl(ro,LT,nTe,iu(B0t)),Xl(ro,LT,rTe,iu(L0t)),Xl(ro,LT,tTe,iu(F0t)),Xl(ro,LT,iTe,iu(D0t)),Xl(ro,LT,fTe,iu(M0t)),Xl(ro,LT,dTe,iu(Xpe)),Xl(ro,LT,hTe,iu(DAe)),Xl(ro,LT,pTe,iu(tee))}function EZ(){EZ=qo,rMe=As($s(Rx,1),nE,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Cxt=new RegExp(`[ +\r\f]+`);try{ZF=As($s(GXt,1),Xu,2114,0,[new Cz((q2e(),RQ("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",uH((EK(),EK(),KB))))),new Cz(RQ("yyyy-MM-dd'T'HH:mm:ss'.'SSS",uH(KB))),new Cz(RQ("yyyy-MM-dd'T'HH:mm:ss",uH(KB))),new Cz(RQ("yyyy-MM-dd'T'HH:mm",uH(KB))),new Cz(RQ("yyyy-MM-dd",uH(KB)))])}catch(ro){if(ro=$p(ro),!Hs(ro,82))throw Cs(ro)}}function fWt(ro,oo){var co,fo,po,vo;if(po=yw(ro.d,1)!=0,fo=K4e(ro,oo),fo==0&&lu(au(bs(oo.j,(Wl(),F3)))))return 0;!lu(au(bs(oo.j,(Wl(),F3))))&&!lu(au(bs(oo.j,p7)))||$a(bs(oo.j,(ou(),GE)))===$a((Q_(),I4))?oo.c.mg(oo.e,po):po=lu(au(bs(oo.j,F3))),zq(ro,oo,po,!0),lu(au(bs(oo.j,p7)))&&Fl(oo.j,p7,(_f(),!1)),lu(au(bs(oo.j,F3)))&&(Fl(oo.j,F3,(_f(),!1)),Fl(oo.j,p7,!0)),co=K4e(ro,oo);do{if(oEe(ro),co==0)return 0;po=!po,vo=co,zq(ro,oo,po,!1),co=K4e(ro,oo)}while(vo>co);return vo}function Jat(ro,oo){var co,fo,po,vo;if(po=yw(ro.d,1)!=0,fo=iZ(ro,oo),fo==0&&lu(au(bs(oo.j,(Wl(),F3)))))return 0;!lu(au(bs(oo.j,(Wl(),F3))))&&!lu(au(bs(oo.j,p7)))||$a(bs(oo.j,(ou(),GE)))===$a((Q_(),I4))?oo.c.mg(oo.e,po):po=lu(au(bs(oo.j,F3))),zq(ro,oo,po,!0),lu(au(bs(oo.j,p7)))&&Fl(oo.j,p7,(_f(),!1)),lu(au(bs(oo.j,F3)))&&(Fl(oo.j,F3,(_f(),!1)),Fl(oo.j,p7,!0)),co=iZ(ro,oo);do{if(oEe(ro),co==0)return 0;po=!po,vo=co,zq(ro,oo,po,!1),co=iZ(ro,oo)}while(vo>co);return vo}function g3e(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po,Wo;return To=mm(new Vl(co.a,co.b),ro),Ao=To.a*oo.b-To.b*oo.a,Io=oo.a*fo.b-oo.b*fo.a,Po=(To.a*fo.b-To.b*fo.a)/Io,Wo=Ao/Io,Io==0?Ao==0?(po=G0(new Vl(co.a,co.b),G_(new Vl(fo.a,fo.b),.5)),vo=p3(ro,po),xo=p3(G0(new Vl(ro.a,ro.b),oo),po),Eo=lo.Math.sqrt(fo.a*fo.a+fo.b*fo.b)*.5,vo=0&&Po<=1&&Wo>=0&&Wo<=1?G0(new Vl(ro.a,ro.b),G_(new Vl(oo.a,oo.b),Po)):null}function dWt(ro,oo,co){var fo,po,vo,xo,Eo;if(fo=bo(bs(ro,(ou(),tme)),21),co.a>oo.a&&(fo.Hc((AT(),BF))?ro.c.a+=(co.a-oo.a)/2:fo.Hc(FF)&&(ro.c.a+=co.a-oo.a)),co.b>oo.b&&(fo.Hc((AT(),jF))?ro.c.b+=(co.b-oo.b)/2:fo.Hc(PF)&&(ro.c.b+=co.b-oo.b)),bo(bs(ro,(Wl(),Jy)),21).Hc((Sv(),Tx))&&(co.a>oo.a||co.b>oo.b))for(Eo=new _s(ro.a);Eo.aoo.a&&(fo.Hc((AT(),BF))?ro.c.a+=(co.a-oo.a)/2:fo.Hc(FF)&&(ro.c.a+=co.a-oo.a)),co.b>oo.b&&(fo.Hc((AT(),jF))?ro.c.b+=(co.b-oo.b)/2:fo.Hc(PF)&&(ro.c.b+=co.b-oo.b)),bo(bs(ro,(Wl(),Jy)),21).Hc((Sv(),Tx))&&(co.a>oo.a||co.b>oo.b))for(xo=new _s(ro.a);xo.a0?ro.i:0)>oo&&To>0&&(vo=0,xo+=To+ro.i,po=lo.Math.max(po,Wo),fo+=To+ro.i,To=0,Wo=0,co&&(++Po,Jl(ro.n,new bX(ro.s,xo,ro.i))),Eo=0),Wo+=Ao.g+(Eo>0?ro.i:0),To=lo.Math.max(To,Ao.f),co&&jke(bo(cu(ro.n,Po),209),Ao),vo+=Ao.g+(Eo>0?ro.i:0),++Eo;return po=lo.Math.max(po,Wo),fo+=To,co&&(ro.r=po,ro.d=fo,Vke(ro.j)),new ax(ro.s,ro.t,po,fo)}function vhe(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;for(ro.b=!1,Po=Tp,To=am,Wo=Tp,Ao=am,fo=ro.e.a.ec().Kc();fo.Ob();)for(co=bo(fo.Pb(),272),po=co.a,Po=lo.Math.min(Po,po.c),To=lo.Math.max(To,po.c+po.b),Wo=lo.Math.min(Wo,po.d),Ao=lo.Math.max(Ao,po.d+po.a),xo=new _s(co.c);xo.aro.o.a&&(Io=(To-ro.o.a)/2,Eo.b=lo.Math.max(Eo.b,Io),Eo.c=lo.Math.max(Eo.c,Io))}}function mWt(ro){var oo,co,fo,po,vo,xo,Eo,To;for(vo=new PKe,WEt(vo,(W8(),pwt)),fo=(po=cfe(ro,Al(uu,Yl,2,0,6,1)),new EE(new ew(new lle(ro,po).b)));fo.bEo?1:-1:MEe(ro.a,oo.a,vo),po==-1)Po=-To,Io=xo==To?Mue(oo.a,Eo,ro.a,vo):Lue(oo.a,Eo,ro.a,vo);else if(Po=xo,xo==To){if(po==0)return J_(),XB;Io=Mue(ro.a,vo,oo.a,Eo)}else Io=Lue(ro.a,vo,oo.a,Eo);return Ao=new dT(Po,Io.length,Io),mL(Ao),Ao}function vWt(ro,oo){var co,fo,po,vo;if(vo=Lat(oo),!oo.c&&(oo.c=new Bl(fw,oo,9,9)),zp(new Ou(null,(!oo.c&&(oo.c=new Bl(fw,oo,9,9)),new Du(oo.c,16))),new MDe(vo)),po=bo(bs(vo,(Wl(),Jy)),21),cKt(oo,po),po.Hc((Sv(),Tx)))for(fo=new g1((!oo.c&&(oo.c=new Bl(fw,oo,9,9)),oo.c));fo.e!=fo.i.gc();)co=bo(k1(fo),123),FKt(ro,oo,vo,co);return bo(zl(oo,(ou(),XT)),181).gc()!=0&&$st(oo,vo),lu(au(bs(vo,B8e)))&&po.Fc(jee),gp(vo,iG)&&$Pe(new vke(na(Tl(bs(vo,iG)))),vo),$a(zl(oo,xA))===$a((x5(),B4))?lXt(ro,oo,vo):WYt(ro,oo,vo),vo}function bWt(ro){var oo,co,fo,po,vo,xo,Eo,To;for(po=new _s(ro.b);po.a0?lx(co.a,0,vo-1):""):(Bm(0,vo-1,ro.length),ro.substr(0,vo-1)):co?co.a:ro}function yWt(ro,oo){var co,fo,po,vo,xo,Eo,To;for(oo.Ug("Sort By Input Model "+bs(ro,(ou(),GE)),1),po=0,fo=new _s(ro.b);fo.a=ro.b.length?(vo[po++]=xo.b[fo++],vo[po++]=xo.b[fo++]):fo>=xo.b.length?(vo[po++]=ro.b[co++],vo[po++]=ro.b[co++]):xo.b[fo]0?ro.i:0)),++oo;for(eke(ro.n,To),ro.d=co,ro.r=fo,ro.g=0,ro.f=0,ro.e=0,ro.o=Tp,ro.p=Tp,vo=new _s(ro.b);vo.a0&&(po=(!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),bo(Gs(ro.n,0),135)).a,!po||S0(S0((oo.a+=' "',oo),po),'"'))),co=(!ro.b&&(ro.b=new Wu(D1,ro,4,7)),!(ro.b.i<=1&&(!ro.c&&(ro.c=new Wu(D1,ro,5,8)),ro.c.i<=1))),co?oo.a+=" [":oo.a+=" ",S0(oo,lwe(new tle,new g1(ro.b))),co&&(oo.a+="]"),oo.a+=F1e,co&&(oo.a+="["),S0(oo,lwe(new tle,new g1(ro.c))),co&&(oo.a+="]"),oo.a)}function xWt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu;for(Nl=ro.c,Hl=oo.c,co=Xv(Nl.a,ro,0),fo=Xv(Hl.a,oo,0),zs=bo(f6(ro,(xv(),lw)).Kc().Pb(),12),Eu=bo(f6(ro,u2).Kc().Pb(),12),Ys=bo(f6(oo,lw).Kc().Pb(),12),Yu=bo(f6(oo,u2).Kc().Pb(),12),Rs=X_(zs.e),ru=X_(Eu.g),Ls=X_(Ys.e),ku=X_(Yu.g),q$(ro,fo,Hl),xo=Ls,Io=0,Zo=xo.length;IoIo?new gT((VS(),AA),co,oo,Ao-Io):Ao>0&&Io>0&&(new gT((VS(),AA),oo,co,0),new gT(AA,co,oo,0))),xo)}function EWt(ro,oo,co){var fo,po,vo;for(ro.a=new Zl,vo=G1(oo.b,0);vo.b!=vo.d.c;){for(po=bo(q1(vo),40);bo(bs(po,(by(),pE)),17).a>ro.a.c.length-1;)Jl(ro.a,new fm(Y9,QCe));fo=bo(bs(po,pE),17).a,co==(_g(),qv)||co==ey?(po.e.ana(Tl(bo(cu(ro.a,fo),42).b))&&kz(bo(cu(ro.a,fo),42),po.e.a+po.f.a)):(po.e.bna(Tl(bo(cu(ro.a,fo),42).b))&&kz(bo(cu(ro.a,fo),42),po.e.b+po.f.b))}}function nlt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io;if(vo=EQ(fo),Eo=lu(au(bs(fo,(ou(),O8e)))),(Eo||lu(au(bs(ro,ete))))&&!u9(bo(bs(ro,Pp),101)))po=Y8(vo),To=i3e(ro,co,co==(xv(),u2)?po:vq(po));else switch(To=new Py,uy(To,ro),oo?(Io=To.n,Io.a=oo.a-ro.n.a,Io.b=oo.b-ro.n.b,oit(Io,0,0,ro.o.a,ro.o.b),hm(To,_at(To,vo))):(po=Y8(vo),hm(To,co==(xv(),u2)?po:vq(po))),xo=bo(bs(fo,(Wl(),Jy)),21),Ao=To.j,vo.g){case 2:case 1:(Ao==(nu(),s1)||Ao==z1)&&xo.Fc((Sv(),f7));break;case 4:case 3:(Ao==(nu(),p1)||Ao==l1)&&xo.Fc((Sv(),f7))}return To}function rlt(ro,oo){var co,fo,po,vo,xo,Eo;for(xo=new ST(new su(ro.f.b).a);xo.b;){if(vo=a6(xo),po=bo(vo.ld(),602),oo==1){if(po.Af()!=(_g(),Cx)&&po.Af()!=A_)continue}else if(po.Af()!=(_g(),qv)&&po.Af()!=ey)continue;switch(fo=bo(bo(vo.md(),42).b,86),Eo=bo(bo(vo.md(),42).a,194),co=Eo.c,po.Af().g){case 2:fo.g.c=ro.e.a,fo.g.b=lo.Math.max(1,fo.g.b+co);break;case 1:fo.g.c=fo.g.c+co,fo.g.b=lo.Math.max(1,fo.g.b-co);break;case 4:fo.g.d=ro.e.b,fo.g.a=lo.Math.max(1,fo.g.a+co);break;case 3:fo.g.d=fo.g.d+co,fo.g.a=lo.Math.max(1,fo.g.a-co)}}}function kWt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws;for(Eo=Al(Q1,E0,28,oo.b.c.length,15,1),Ao=Al(hge,Pl,273,oo.b.c.length,0,1),To=Al(VE,T4,10,oo.b.c.length,0,1),Po=ro.a,Wo=0,Xo=Po.length;Wo0&&To[fo]&&(Zo=p9(ro.b,To[fo],po)),ws=lo.Math.max(ws,po.c.c.b+Zo);for(vo=new _s(Io.e);vo.a1)throw Cs(new i1(IV));To||(vo=RE(oo,fo.Kc().Pb()),xo.Fc(vo))}return wEe(ro,z5e(ro,oo,co),xo)}function TZ(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;if(C5(ro.e,oo))To=(vv(),bo(oo,69).xk()?new PY(oo,ro):new eH(oo,ro)),sZ(To.c,To.b),YD(To,bo(co,16));else{for(Io=w2(ro.e.Dh(),oo),fo=bo(ro.g,124),xo=0;xo"}To!=null&&(oo.a+=""+To)}else ro.e?(Eo=ro.e.zb,Eo!=null&&(oo.a+=""+Eo)):(oo.a+="?",ro.b?(oo.a+=" super ",She(ro.b,oo)):ro.f&&(oo.a+=" extends ",She(ro.f,oo)))}function RWt(ro){ro.b=null,ro.a=null,ro.o=null,ro.q=null,ro.v=null,ro.w=null,ro.B=null,ro.p=null,ro.Q=null,ro.R=null,ro.S=null,ro.T=null,ro.U=null,ro.V=null,ro.W=null,ro.bb=null,ro.eb=null,ro.ab=null,ro.H=null,ro.db=null,ro.c=null,ro.d=null,ro.f=null,ro.n=null,ro.r=null,ro.s=null,ro.u=null,ro.G=null,ro.J=null,ro.e=null,ro.j=null,ro.i=null,ro.g=null,ro.k=null,ro.t=null,ro.F=null,ro.I=null,ro.L=null,ro.M=null,ro.O=null,ro.P=null,ro.$=null,ro.N=null,ro.Z=null,ro.cb=null,ro.K=null,ro.D=null,ro.A=null,ro.C=null,ro._=null,ro.fb=null,ro.X=null,ro.Y=null,ro.gb=!1,ro.hb=!1}function OWt(ro){var oo,co,fo,po;if(fo=Mhe((!ro.c&&(ro.c=RH(Ty(ro.f))),ro.c),0),ro.e==0||ro.a==0&&ro.f!=-1&&ro.e<0)return fo;if(oo=sEe(ro)<0?1:0,co=ro.e,po=(fo.length+1+lo.Math.abs(dm(ro.e)),new t9),oo==1&&(po.a+="-"),ro.e>0)if(co-=fo.length-oo,co>=0){for(po.a+="0.";co>VT.length;co-=VT.length)qGe(po,VT);CVe(po,VT,dm(co)),S0(po,(o1(oo,fo.length+1),fo.substr(oo)))}else co=oo-co,S0(po,lx(fo,oo,dm(co))),po.a+=".",S0(po,iSe(fo,dm(co)));else{for(S0(po,(o1(oo,fo.length+1),fo.substr(oo)));co<-VT.length;co+=VT.length)qGe(po,VT);CVe(po,VT,dm(-co))}return po.a}function _he(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao;return!(ro.k!=(a1(),Vp)||ro.j.c.length<=1||(vo=bo(bs(ro,(ou(),Pp)),101),vo==(Im(),n2))||(po=(H$(),(ro.q?ro.q:(Hu(),Hu(),HE))._b(z6)?fo=bo(bs(ro,z6),203):fo=bo(bs(zm(ro),pF),203),fo),po==fte)||!(po==x7||po==w7)&&(xo=na(Tl(z$(ro,gF))),oo=bo(bs(ro,sG),140),!oo&&(oo=new zwe(xo,xo,xo,xo)),Ao=hy(ro,(nu(),l1)),To=oo.d+oo.a+(Ao.gc()-1)*xo,To>ro.o.b||(co=hy(ro,p1),Eo=oo.d+oo.a+(co.gc()-1)*xo,Eo>ro.o.b)))}function IWt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss;oo.Ug("Orthogonal edge routing",1),Ao=na(Tl(bs(ro,(ou(),y7)))),co=na(Tl(bs(ro,v7))),fo=na(Tl(bs(ro,ZT))),Wo=new Gce(0,co),Ss=0,xo=new Lm(ro.b,0),Eo=null,Io=null,To=null,Po=null;do Io=xo.b0?(Xo=(Zo-1)*co,Eo&&(Xo+=fo),Io&&(Xo+=fo),Xooo||lu(au(zl(To,(y_(),yG)))))&&(po=0,vo+=Io.b+co,Ju(Po.c,Io),Io=new LSe(vo,co),fo=new kfe(0,Io.f,Io,co),JX(Io,fo),po=0),fo.b.c.length==0||!lu(au(zl(kp(To),(y_(),pve))))&&(To.f>=fo.o&&To.f<=fo.f||fo.a*.5<=To.f&&fo.a*1.5>=To.f)?ske(fo,To):(xo=new kfe(fo.s+fo.r+co,Io.f,Io,co),JX(Io,xo),ske(xo,To)),po=To.i+To.g;return Ju(Po.c,Io),Po}function pB(ro){var oo,co,fo,po;if(!(ro.b==null||ro.b.length<=2)&&!ro.a){for(oo=0,po=0;po=ro.b[po+1])po+=2;else if(co0)for(fo=new tw(bo(Q0(ro.a,vo),21)),Hu(),Up(fo,new nye(oo)),po=new Lm(vo.b,0);po.b0&&fo>=-6?fo>=0?rH(vo,co-dm(ro.e),"."):(pfe(vo,oo-1,oo-1,"0."),rH(vo,oo+1,zx(VT,0,-dm(fo)-1))):(co-oo>=1&&(rH(vo,oo,"."),++co),rH(vo,co,"E"),fo>0&&rH(vo,++co,"+"),rH(vo,++co,""+aL(Ty(fo)))),ro.g=vo.a,ro.g))}function HWt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru;fo=na(Tl(bs(oo,(ou(),M8e)))),Nl=bo(bs(oo,mF),17).a,Wo=4,po=3,Hl=20/Nl,Xo=!1,To=0,xo=q0;do{for(vo=To!=1,Po=To!=0,ru=0,Ss=ro.a,Ls=0,Ys=Ss.length;LsNl)?(To=2,xo=q0):To==0?(To=1,xo=ru):(To=0,xo=ru)):(Xo=ru>=xo||xo-ru0?1:LC(isNaN(fo),isNaN(0)))>=0^(hS(lE),(lo.Math.abs(Eo)<=lE||Eo==0||isNaN(Eo)&&isNaN(0)?0:Eo<0?-1:Eo>0?1:LC(isNaN(Eo),isNaN(0)))>=0)?lo.Math.max(Eo,fo):(hS(lE),(lo.Math.abs(fo)<=lE||fo==0||isNaN(fo)&&isNaN(0)?0:fo<0?-1:fo>0?1:LC(isNaN(fo),isNaN(0)))>0?lo.Math.sqrt(Eo*Eo+fo*fo):-lo.Math.sqrt(Eo*Eo+fo*fo))}function OT(ro,oo){var co,fo,po,vo,xo,Eo;if(oo){if(!ro.a&&(ro.a=new SK),ro.e==2){xK(ro.a,oo);return}if(oo.e==1){for(po=0;po=hv?Av(co,oke(fo)):YO(co,fo&em),xo=new uue(10,null,0),TCt(ro.a,xo,Eo-1)):(co=(xo.Mm().length+vo,new SD),Av(co,xo.Mm())),oo.e==0?(fo=oo.Km(),fo>=hv?Av(co,oke(fo)):YO(co,fo&em)):Av(co,oo.Mm()),bo(xo,530).b=co.a}}function GWt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss;if(!co.dc()){for(Eo=0,Wo=0,fo=co.Kc(),Zo=bo(fo.Pb(),17).a;Eo1&&(To=Ao.Hg(To,ro.a,Eo));return To.c.length==1?bo(cu(To,To.c.length-1),238):To.c.length==2?MWt((qu(0,To.c.length),bo(To.c[0],238)),(qu(1,To.c.length),bo(To.c[1],238)),xo,vo):null}function XWt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao;for(co.Ug("Find roots",1),ro.a.c.length=0,po=G1(oo.b,0);po.b!=po.d.c;)fo=bo(q1(po),40),fo.b.b==0&&(Fl(fo,(fp(),q3),(_f(),!0)),Jl(ro.a,fo));switch(ro.a.c.length){case 0:vo=new Efe(0,oo,"DUMMY_ROOT"),Fl(vo,(fp(),q3),(_f(),!0)),Fl(vo,Bme,!0),y0(oo.b,vo);break;case 1:break;default:for(xo=new Efe(0,oo,pJ),To=new _s(ro.a);To.a=lo.Math.abs(fo.b)?(fo.b=0,vo.d+vo.a>xo.d&&vo.dxo.c&&vo.c0){if(oo=new P2e(ro.i,ro.g),co=ro.i,vo=co<100?null:new e3(co),ro.Tj())for(fo=0;fo0){for(Eo=ro.g,Ao=ro.i,xL(ro),vo=Ao<100?null:new e3(Ao),fo=0;fo>13|(ro.m&15)<<9,po=ro.m>>4&8191,vo=ro.m>>17|(ro.h&255)<<5,xo=(ro.h&1048320)>>8,Eo=oo.l&8191,To=oo.l>>13|(oo.m&15)<<9,Ao=oo.m>>4&8191,Io=oo.m>>17|(oo.h&255)<<5,Po=(oo.h&1048320)>>8,ku=co*Eo,Eu=fo*Eo,Yu=po*Eo,Qu=vo*Eo,b1=xo*Eo,To!=0&&(Eu+=co*To,Yu+=fo*To,Qu+=po*To,b1+=vo*To),Ao!=0&&(Yu+=co*Ao,Qu+=fo*Ao,b1+=po*Ao),Io!=0&&(Qu+=co*Io,b1+=fo*Io),Po!=0&&(b1+=co*Po),Xo=ku&xw,Zo=(Eu&511)<<13,Wo=Xo+Zo,Ss=ku>>22,Rs=Eu>>9,Ls=(Yu&262143)<<4,zs=(Qu&31)<<17,ws=Ss+Rs+Ls+zs,Nl=Yu>>18,Hl=Qu>>5,ru=(b1&4095)<<8,Ys=Nl+Hl+ru,ws+=Wo>>22,Wo&=xw,Ys+=ws>>22,ws&=xw,Ys&=A5,h2(Wo,ws,Ys)}function plt(ro){var oo,co,fo,po,vo,xo,Eo;if(Eo=bo(cu(ro.j,0),12),Eo.g.c.length!=0&&Eo.e.c.length!=0)throw Cs(new Lv("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(Eo.g.c.length!=0){for(vo=Tp,co=new _s(Eo.g);co.a4)if(ro.fk(oo)){if(ro.al()){if(po=bo(oo,54),fo=po.Eh(),To=fo==ro.e&&(ro.ml()?po.yh(po.Fh(),ro.il())==ro.jl():-1-po.Fh()==ro.Lj()),ro.nl()&&!To&&!fo&&po.Jh()){for(vo=0;vo0&&dit(ro,Eo,Po);for(po=new _s(Po);po.aro.d[xo.p]&&(co+=QSe(ro.b,vo)*bo(To.b,17).a,h3(ro.a,Ql(vo)));for(;!xD(ro.a);)O_e(ro.b,bo(O8(ro.a),17).a)}return co}function tUt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po;if(Io=bo(bs(ro,(Wl(),_y)),64),fo=bo(cu(ro.j,0),12),Io==(nu(),s1)?hm(fo,z1):Io==z1&&hm(fo,s1),bo(bs(oo,(ou(),XT)),181).Hc((Mw(),oC))){if(To=na(Tl(bs(ro,QN))),Ao=na(Tl(bs(ro,ZN))),xo=na(Tl(bs(ro,TA))),Eo=bo(bs(oo,EA),21),Eo.Hc((sw(),L5)))for(co=Ao,Po=ro.o.a/2-fo.n.a,vo=new _s(fo.f);vo.a0&&(Ao=ro.n.a/vo);break;case 2:case 4:po=ro.i.o.b,po>0&&(Ao=ro.n.b/po)}Fl(ro,(Wl(),B6),Ao)}if(To=ro.o,xo=ro.a,fo)xo.a=fo.a,xo.b=fo.b,ro.d=!0;else if(oo!=O_&&oo!=U3&&Eo!=gy)switch(Eo.g){case 1:xo.a=To.a/2;break;case 2:xo.a=To.a,xo.b=To.b/2;break;case 3:xo.a=To.a/2,xo.b=To.b;break;case 4:xo.b=To.b/2}else xo.a=To.a/2,xo.b=To.b/2}function gB(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io;if(ro.Pj())if(Io=ro.Ej(),To=ro.Qj(),Io>0)if(oo=new uEe(ro.pj()),co=Io,vo=co<100?null:new e3(co),lH(ro,co,oo.g),po=co==1?ro.Ij(4,Gs(oo,0),null,0,To):ro.Ij(6,oo,null,-1,To),ro.Mj()){for(fo=new g1(oo);fo.e!=fo.i.gc();)vo=ro.Oj(k1(fo),vo);vo?(vo.nj(po),vo.oj()):ro.Jj(po)}else vo?(vo.nj(po),vo.oj()):ro.Jj(po);else lH(ro,ro.Ej(),ro.Fj()),ro.Jj(ro.Ij(6,(Hu(),cv),null,-1,To));else if(ro.Mj())if(Io=ro.Ej(),Io>0){for(Eo=ro.Fj(),Ao=Io,lH(ro,Io,Eo),vo=Ao<100?null:new e3(Ao),fo=0;fo1&&H2(xo)*Ow(xo)/2>Eo[0]){for(vo=0;voEo[vo];)++vo;Zo=new s4(ws,0,vo+1),Po=new KX(Zo),Io=H2(xo)/Ow(xo),To=Ihe(Po,oo,new c8,co,fo,po,Io),G0(zS(Po.e),To),$8(GI(Wo,Po),fN),Xo=new s4(ws,vo+1,ws.c.length),Kke(Wo,Xo),ws.c.length=0,Ao=0,sWe(Eo,Eo.length,0)}else Ss=Wo.b.c.length==0?null:cu(Wo.b,0),Ss!=null&&sfe(Wo,0),Ao>0&&(Eo[Ao]=Eo[Ao-1]),Eo[Ao]+=H2(xo)*Ow(xo),++Ao,Ju(ws.c,xo);return ws}function aUt(ro,oo){var co,fo,po,vo;co=oo.b,vo=new tw(co.j),po=0,fo=co.j,fo.c.length=0,VC(bo(xT(ro.b,(nu(),s1),(s6(),M6)),15),co),po=Sq(vo,po,new dre,fo),VC(bo(xT(ro.b,s1,B3),15),co),po=Sq(vo,po,new q5,fo),VC(bo(xT(ro.b,s1,N6),15),co),VC(bo(xT(ro.b,p1,M6),15),co),VC(bo(xT(ro.b,p1,B3),15),co),po=Sq(vo,po,new hre,fo),VC(bo(xT(ro.b,p1,N6),15),co),VC(bo(xT(ro.b,z1,M6),15),co),po=Sq(vo,po,new pre,fo),VC(bo(xT(ro.b,z1,B3),15),co),po=Sq(vo,po,new gre,fo),VC(bo(xT(ro.b,z1,N6),15),co),VC(bo(xT(ro.b,l1,M6),15),co),po=Sq(vo,po,new cre,fo),VC(bo(xT(ro.b,l1,B3),15),co),VC(bo(xT(ro.b,l1,N6),15),co)}function lUt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo;for(Eo=new _s(oo);Eo.a.5?Rs-=xo*2*(Zo-.5):Zo<.5&&(Rs+=vo*2*(.5-Zo)),po=Eo.d.b,RsSs.a-ws-Io&&(Rs=Ss.a-ws-Io),Eo.n.a=oo+Rs}}function dUt(ro){var oo,co,fo,po,vo;if(fo=bo(bs(ro,(ou(),_2)),171),fo==(yx(),P3)){for(co=new x1(E1(Sm(ro).a.Kc(),new ko));W1(co);)if(oo=bo(R1(co),18),!wXe(oo))throw Cs(new Q5(H1e+Eq(ro)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(fo==yA){for(vo=new x1(E1(Wp(ro).a.Kc(),new ko));W1(vo);)if(po=bo(R1(vo),18),!wXe(po))throw Cs(new Q5(H1e+Eq(ro)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function Yq(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo;if(ro.e&&ro.c.c>19&&(oo=kI(oo),To=!To),xo=Xzt(oo),vo=!1,po=!1,fo=!1,ro.h==oV&&ro.m==0&&ro.l==0)if(po=!0,vo=!0,xo==-1)ro=WHe((lI(),D$e)),fo=!0,To=!To;else return Eo=v4e(ro,xo),To&&_fe(Eo),co&&(N3=h2(0,0,0)),Eo;else ro.h>>19&&(vo=!0,ro=kI(ro),fo=!0,To=!To);return xo!=-1?kOt(ro,xo,To,vo,co):n5e(ro,oo)<0?(co&&(vo?N3=kI(ro):N3=h2(ro.l,ro.m,ro.h)),h2(0,0,0)):UVt(fo?ro:h2(ro.l,ro.m,ro.h),oo,To,vo,po,co)}function Che(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo;if(xo=ro.e,To=oo.e,xo==0)return oo;if(To==0)return ro;if(vo=ro.d,Eo=oo.d,vo+Eo==2)return co=vm(ro.a[0],_v),fo=vm(oo.a[0],_v),xo==To?(Io=tv(co,fo),Zo=s0(Io),Xo=s0(l3(Io,32)),Xo==0?new p5(xo,Zo):new dT(xo,2,As($s(Q1,1),E0,28,15,[Zo,Xo]))):(J_(),fY(xo<0?jx(fo,co):jx(co,fo),0)?x3(xo<0?jx(fo,co):jx(co,fo)):uL(x3(f4(xo<0?jx(fo,co):jx(co,fo)))));if(xo==To)Wo=xo,Po=vo>=Eo?Lue(ro.a,vo,oo.a,Eo):Lue(oo.a,Eo,ro.a,vo);else{if(po=vo!=Eo?vo>Eo?1:-1:MEe(ro.a,oo.a,vo),po==0)return J_(),XB;po==1?(Wo=xo,Po=Mue(ro.a,vo,oo.a,Eo)):(Wo=To,Po=Mue(oo.a,Eo,ro.a,vo))}return Ao=new dT(Wo,Po.length,Po),mL(Ao),Ao}function pUt(ro,oo){var co,fo,po,vo,xo,Eo,To;if(!(ro.g>oo.f||oo.g>ro.f)){for(co=0,fo=0,xo=ro.w.a.ec().Kc();xo.Ob();)po=bo(xo.Pb(),12),Dfe(dy(As($s(_m,1),Yl,8,0,[po.i.n,po.n,po.a])).b,oo.g,oo.f)&&++co;for(Eo=ro.r.a.ec().Kc();Eo.Ob();)po=bo(Eo.Pb(),12),Dfe(dy(As($s(_m,1),Yl,8,0,[po.i.n,po.n,po.a])).b,oo.g,oo.f)&&--co;for(To=oo.w.a.ec().Kc();To.Ob();)po=bo(To.Pb(),12),Dfe(dy(As($s(_m,1),Yl,8,0,[po.i.n,po.n,po.a])).b,ro.g,ro.f)&&++fo;for(vo=oo.r.a.ec().Kc();vo.Ob();)po=bo(vo.Pb(),12),Dfe(dy(As($s(_m,1),Yl,8,0,[po.i.n,po.n,po.a])).b,ro.g,ro.f)&&--fo;co=0)return co;switch(YC(Fv(ro,co))){case 2:{if(Iu("",g4(ro,co.qk()).xe())){if(To=_H(Fv(ro,co)),Eo=ZO(Fv(ro,co)),Io=x4e(ro,oo,To,Eo),Io)return Io;for(po=Q4e(ro,oo),xo=0,Po=po.gc();xo1)throw Cs(new i1(IV));for(Io=w2(ro.e.Dh(),oo),fo=bo(ro.g,124),xo=0;xo1,Ao=new d_(Wo.b);cy(Ao.a)||cy(Ao.b);)To=bo(cy(Ao.a)?Es(Ao.a):Es(Ao.b),18),Po=To.c==Wo?To.d:To.c,lo.Math.abs(dy(As($s(_m,1),Yl,8,0,[Po.i.n,Po.n,Po.a])).b-xo.b)>1&&tqt(ro,To,xo,vo,Wo)}}function wUt(ro){var oo,co,fo,po,vo,xo;if(po=new Lm(ro.e,0),fo=new Lm(ro.a,0),ro.d)for(co=0;coS0e;){for(vo=oo,xo=0;lo.Math.abs(oo-vo)0),po.a.Xb(po.c=--po.b),DGt(ro,ro.b-xo,vo,fo,po),T1(po.b0),fo.a.Xb(fo.c=--fo.b)}if(!ro.d)for(co=0;co0?(ro.f[Io.p]=Xo/(Io.e.c.length+Io.g.c.length),ro.c=lo.Math.min(ro.c,ro.f[Io.p]),ro.b=lo.Math.max(ro.b,ro.f[Io.p])):Eo&&(ro.f[Io.p]=Xo)}}function SUt(ro){ro.b=null,ro.bb=null,ro.fb=null,ro.qb=null,ro.a=null,ro.c=null,ro.d=null,ro.e=null,ro.f=null,ro.n=null,ro.M=null,ro.L=null,ro.Q=null,ro.R=null,ro.K=null,ro.db=null,ro.eb=null,ro.g=null,ro.i=null,ro.j=null,ro.k=null,ro.gb=null,ro.o=null,ro.p=null,ro.q=null,ro.r=null,ro.$=null,ro.ib=null,ro.S=null,ro.T=null,ro.t=null,ro.s=null,ro.u=null,ro.v=null,ro.w=null,ro.B=null,ro.A=null,ro.C=null,ro.D=null,ro.F=null,ro.G=null,ro.H=null,ro.I=null,ro.J=null,ro.P=null,ro.Z=null,ro.U=null,ro.V=null,ro.W=null,ro.X=null,ro.Y=null,ro._=null,ro.ab=null,ro.cb=null,ro.hb=null,ro.nb=null,ro.lb=null,ro.mb=null,ro.ob=null,ro.pb=null,ro.jb=null,ro.kb=null,ro.N=!1,ro.O=!1}function _Ut(ro,oo,co){var fo,po,vo,xo;for(co.Ug("Graph transformation ("+ro.a+")",1),xo=e6(oo.a),vo=new _s(oo.b);vo.a=Eo.b.c)&&(Eo.b=oo),(!Eo.c||oo.c<=Eo.c.c)&&(Eo.d=Eo.c,Eo.c=oo),(!Eo.e||oo.d>=Eo.e.d)&&(Eo.e=oo),(!Eo.f||oo.d<=Eo.f.d)&&(Eo.f=oo);return fo=new PQ((_I(),I6)),OH(ro,Opt,new ew(As($s(GV,1),Xu,382,0,[fo]))),xo=new PQ(hA),OH(ro,Rpt,new ew(As($s(GV,1),Xu,382,0,[xo]))),po=new PQ(dA),OH(ro,Apt,new ew(As($s(GV,1),Xu,382,0,[po]))),vo=new PQ(o7),OH(ro,$pt,new ew(As($s(GV,1),Xu,382,0,[vo]))),Zde(fo.c,I6),Zde(po.c,dA),Zde(vo.c,o7),Zde(xo.c,hA),Eo.a.c.length=0,sm(Eo.a,fo.c),sm(Eo.a,bx(po.c)),sm(Eo.a,vo.c),sm(Eo.a,bx(xo.c)),Eo}function TUt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo;for(oo.Ug(Aft,1),Xo=na(Tl(zl(ro,(ME(),RA)))),xo=na(Tl(zl(ro,(y_(),NF)))),Eo=bo(zl(ro,IF),107),iEe((!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a)),Io=ult((!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a),Xo,xo),!ro.a&&(ro.a=new Bl(F0,ro,10,11)),Ao=new _s(Io);Ao.a0&&(ro.a=To+(Xo-1)*vo,oo.c.b+=ro.a,oo.f.b+=ro.a)),Zo.a.gc()!=0&&(Wo=new Gce(1,vo),Xo=E3e(Wo,oo,Zo,ws,oo.f.b+To-oo.c.b),Xo>0&&(oo.f.b+=To+(Xo-1)*vo))}function vlt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;for(Io=na(Tl(bs(ro,(ou(),q6)))),fo=na(Tl(bs(ro,V8e))),Wo=new lz,Fl(Wo,q6,Io+fo),Ao=oo,Rs=Ao.d,ws=Ao.c.i,Ls=Ao.d.i,Ss=W2e(ws.c),zs=W2e(Ls.c),po=new Zl,Po=Ss;Po<=zs;Po++)Eo=new k5(ro),_E(Eo,(a1(),km)),Fl(Eo,(Wl(),Z0),Ao),Fl(Eo,Pp,(Im(),n2)),Fl(Eo,ste,Wo),Xo=bo(cu(ro.b,Po),30),Po==Ss?q$(Eo,Xo.a.c.length-co,Xo):Dm(Eo,Xo),Ys=na(Tl(bs(Ao,R4))),Ys<0&&(Ys=0,Fl(Ao,R4,Ys)),Eo.o.b=Ys,Zo=lo.Math.floor(Ys/2),xo=new Py,hm(xo,(nu(),l1)),uy(xo,Eo),xo.n.b=Zo,To=new Py,hm(To,p1),uy(To,Eo),To.n.b=Zo,Om(Ao,xo),vo=new QC,Qv(vo,Ao),Fl(vo,Hv,null),ev(vo,To),Om(vo,Rs),gLt(Eo,Ao,vo),Ju(po.c,vo),Ao=vo;return po}function $he(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs;for(To=bo(S4(ro,(nu(),l1)).Kc().Pb(),12).e,Xo=bo(S4(ro,p1).Kc().Pb(),12).g,Eo=To.c.length,zs=u_(bo(cu(ro.j,0),12));Eo-- >0;){for(ws=(qu(0,To.c.length),bo(To.c[0],18)),po=(qu(0,Xo.c.length),bo(Xo.c[0],18)),Ls=po.d.e,vo=Xv(Ls,po,0),XAt(ws,po.d,vo),ev(po,null),Om(po,null),Zo=ws.a,oo&&y0(Zo,new ov(zs)),fo=G1(po.a,0);fo.b!=fo.d.c;)co=bo(q1(fo),8),y0(Zo,new ov(co));for(Rs=ws.b,Wo=new _s(po.b);Wo.axo)&&om(ro.b,bo(Ss.b,18));++Eo}vo=xo}}}function x3e(ro,oo){var co;if(oo==null||Iu(oo,I2)||oo.length==0&&ro.k!=(_4(),FR))return null;switch(ro.k.g){case 1:return MQ(oo,EN)?(_f(),ON):MQ(oo,j0e)?(_f(),M3):null;case 2:try{return Ql(Ww(oo,Ym,q0))}catch(fo){if(fo=$p(fo),Hs(fo,130))return null;throw Cs(fo)}case 4:try{return G$(oo)}catch(fo){if(fo=$p(fo),Hs(fo,130))return null;throw Cs(fo)}case 3:return oo;case 5:return Net(ro),Yit(ro,oo);case 6:return Net(ro),Czt(ro,ro.a,oo);case 7:try{return co=Fjt(ro),co.cg(oo),co}catch(fo){if(fo=$p(fo),Hs(fo,33))return null;throw Cs(fo)}default:throw Cs(new Lv("Invalid type set for this layout option."))}}function S3e(ro){var oo;switch(ro.d){case 1:{if(ro.Sj())return ro.o!=-2;break}case 2:{if(ro.Sj())return ro.o==-2;break}case 3:case 5:case 4:case 6:case 7:return ro.o>-2;default:return!1}switch(oo=ro.Rj(),ro.p){case 0:return oo!=null&&lu(au(oo))!=VD(ro.k,0);case 1:return oo!=null&&bo(oo,222).a!=s0(ro.k)<<24>>24;case 2:return oo!=null&&bo(oo,180).a!=(s0(ro.k)&em);case 6:return oo!=null&&VD(bo(oo,168).a,ro.k);case 5:return oo!=null&&bo(oo,17).a!=s0(ro.k);case 7:return oo!=null&&bo(oo,191).a!=s0(ro.k)<<16>>16;case 3:return oo!=null&&na(Tl(oo))!=ro.j;case 4:return oo!=null&&bo(oo,161).a!=ro.j;default:return oo==null?ro.n!=null:!U0(oo,ro.n)}}function Xq(ro,oo,co){var fo,po,vo,xo;return ro.ol()&&ro.nl()&&(xo=Pce(ro,bo(co,58)),$a(xo)!==$a(co))?(ro.xj(oo),ro.Dj(oo,dQe(ro,oo,xo)),ro.al()&&(vo=(po=bo(co,54),ro.ml()?ro.kl()?po.Th(ro.b,bv(bo(Uu($2(ro.b),ro.Lj()),19)).n,bo(Uu($2(ro.b),ro.Lj()).Hk(),29).kk(),null):po.Th(ro.b,Ap(po.Dh(),bv(bo(Uu($2(ro.b),ro.Lj()),19))),null,null):po.Th(ro.b,-1-ro.Lj(),null,null)),!bo(xo,54).Ph()&&(vo=(fo=bo(xo,54),ro.ml()?ro.kl()?fo.Rh(ro.b,bv(bo(Uu($2(ro.b),ro.Lj()),19)).n,bo(Uu($2(ro.b),ro.Lj()).Hk(),29).kk(),vo):fo.Rh(ro.b,Ap(fo.Dh(),bv(bo(Uu($2(ro.b),ro.Lj()),19))),null,vo):fo.Rh(ro.b,-1-ro.Lj(),null,vo))),vo&&vo.oj()),$w(ro.b)&&ro.Jj(ro.Ij(9,co,xo,oo,!1)),xo):co}function blt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io;for(fo=new Zl,xo=new _s(ro.e.a);xo.a0&&(xo=lo.Math.max(xo,pJe(ro.C.b+fo.d.b,po))),Io=fo,Po=po,Wo=vo;ro.C&&ro.C.c>0&&(Xo=Wo+ro.C.c,Ao&&(Xo+=Io.d.c),xo=lo.Math.max(xo,(s_(),hS(x_),lo.Math.abs(Po-1)<=x_||Po==1||isNaN(Po)&&isNaN(1)?0:Xo/(1-Po)))),co.n.b=0,co.a.a=xo}function wlt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo;if(co=bo(Rv(ro.b,oo),127),To=bo(bo(Q0(ro.r,oo),21),87),To.dc()){co.n.d=0,co.n.a=0;return}for(Ao=ro.u.Hc((sw(),L5)),xo=0,ro.A.Hc((Mw(),oC))&&Yst(ro,oo),Eo=To.Kc(),Io=null,Wo=0,Po=0;Eo.Ob();)fo=bo(Eo.Pb(),117),vo=na(Tl(fo.b.of((EY(),ZJ)))),po=fo.b.Mf().b,Io?(Xo=Po+Io.d.a+ro.w+fo.d.d,xo=lo.Math.max(xo,(s_(),hS(x_),lo.Math.abs(Wo-vo)<=x_||Wo==vo||isNaN(Wo)&&isNaN(vo)?0:Xo/(vo-Wo)))):ro.C&&ro.C.d>0&&(xo=lo.Math.max(xo,pJe(ro.C.d+fo.d.d,vo))),Io=fo,Wo=vo,Po=po;ro.C&&ro.C.a>0&&(Xo=Po+ro.C.a,Ao&&(Xo+=Io.d.a),xo=lo.Math.max(xo,(s_(),hS(x_),lo.Math.abs(Wo-1)<=x_||Wo==1||isNaN(Wo)&&isNaN(1)?0:Xo/(1-Wo)))),co.n.d=0,co.a.b=xo}function AUt(ro,oo,co,fo,po,vo,xo,Eo){var To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs;if(Zo=!1,Ao=A4e(co.q,oo.f+oo.b-co.q.f),Xo=fo.f>oo.b&&Eo,Rs=po-(co.q.e+Ao-xo),Po=(To=hB(fo,Rs,!1),To.a),Xo&&Po>fo.f)return!1;if(Xo){for(Wo=0,Ss=new _s(oo.d);Ss.a=(qu(vo,ro.c.length),bo(ro.c[vo],186)).e,!Xo&&Po>oo.b&&!Io)?!1:((Io||Xo||Po<=oo.b)&&(Io&&Po>oo.b?(co.d=Po,jH(co,rit(co,Po))):(xrt(co.q,Ao),co.c=!0),jH(fo,po-(co.s+co.r)),_q(fo,co.q.e+co.q.d,oo.f),JX(oo,fo),ro.c.length>vo&&(Tq((qu(vo,ro.c.length),bo(ro.c[vo],186)),fo),(qu(vo,ro.c.length),bo(ro.c[vo],186)).a.c.length==0&&l4(ro,vo)),Zo=!0),Zo)}function xlt(ro,oo,co){var fo,po,vo,xo,Eo,To;for(this.g=ro,Eo=oo.d.length,To=co.d.length,this.d=Al(VE,T4,10,Eo+To,0,1),xo=0;xo0?Jue(this,this.f/this.a):a_(oo.g,oo.d[0]).a!=null&&a_(co.g,co.d[0]).a!=null?Jue(this,(na(a_(oo.g,oo.d[0]).a)+na(a_(co.g,co.d[0]).a))/2):a_(oo.g,oo.d[0]).a!=null?Jue(this,a_(oo.g,oo.d[0]).a):a_(co.g,co.d[0]).a!=null&&Jue(this,a_(co.g,co.d[0]).a)}function RUt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po;for(ro.a=new GWe(dOt(HF)),fo=new _s(oo.a);fo.a=1&&(Ss-xo>0&&Po>=0?(To.n.a+=ws,To.n.b+=vo*xo):Ss-xo<0&&Io>=0&&(To.n.a+=ws*Ss,To.n.b+=vo));ro.o.a=oo.a,ro.o.b=oo.b,Fl(ro,(ou(),XT),(Mw(),fo=bo(PS(YF),9),new sx(fo,bo(cS(fo,fo.length),9),0)))}function NUt(ro,oo,co,fo,po,vo){var xo;if(!(oo==null||!Wfe(oo,fMe,dMe)))throw Cs(new i1("invalid scheme: "+oo));if(!ro&&!(co!=null&&q_(co,O2(35))==-1&&co.length>0&&(o1(0,co.length),co.charCodeAt(0)!=47)))throw Cs(new i1("invalid opaquePart: "+co));if(ro&&!(oo!=null&&Lz(lne,oo.toLowerCase()))&&!(co==null||!Wfe(co,JF,eP)))throw Cs(new i1(rht+co));if(ro&&oo!=null&&Lz(lne,oo.toLowerCase())&&!dBt(co))throw Cs(new i1(rht+co));if(!bNt(fo))throw Cs(new i1("invalid device: "+fo));if(!nIt(po))throw xo=po==null?"invalid segments: null":"invalid segment: "+ZOt(po),Cs(new i1(xo));if(!(vo==null||q_(vo,O2(35))==-1))throw Cs(new i1("invalid query: "+vo))}function MUt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs;if(co.Ug("Network simplex layering",1),ro.b=oo,Rs=bo(bs(oo,(ou(),mF)),17).a*4,Ss=ro.b.a,Ss.c.length<1){co.Vg();return}for(vo=OVt(ro,Ss),ws=null,po=G1(vo,0);po.b!=po.d.c;){for(fo=bo(q1(po),15),Eo=Rs*dm(lo.Math.sqrt(fo.gc())),xo=WVt(fo),uhe(zye(N_t(Hye(bce(xo),Eo),ws),!0),co.eh(1)),Wo=ro.b.b,Zo=new _s(xo.a);Zo.a1)for(ws=Al(Q1,E0,28,ro.b.b.c.length,15,1),Po=0,Ao=new _s(ro.b.b);Ao.a0){DQ(ro,co,0),co.a+=String.fromCharCode(fo),po=nMt(oo,vo),DQ(ro,co,po),vo+=po-1;continue}fo==39?vo+10&&Zo.a<=0){To.c.length=0,Ju(To.c,Zo);break}Xo=Zo.i-Zo.d,Xo>=Eo&&(Xo>Eo&&(To.c.length=0,Eo=Xo),Ju(To.c,Zo))}To.c.length!=0&&(xo=bo(cu(To,qQ(po,To.c.length)),118),zs.a.Bc(xo)!=null,xo.g=Io++,u3e(xo,oo,co,fo),To.c.length=0)}for(Ss=ro.c.length+1,Wo=new _s(ro);Wo.aam||oo.o==JT&&Io=Eo&&po<=To)Eo<=po&&vo<=To?(co[Io++]=po,co[Io++]=vo,fo+=2):Eo<=po?(co[Io++]=po,co[Io++]=To,ro.b[fo]=To+1,xo+=2):vo<=To?(co[Io++]=Eo,co[Io++]=vo,fo+=2):(co[Io++]=Eo,co[Io++]=To,ro.b[fo]=To+1);else if(ToC3)&&Eo<10);Vye(ro.c,new U4),klt(ro),$Ct(ro.c),EUt(ro.f)}function qUt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws;for(co=bo(bs(ro,(ou(),Pp)),101),xo=ro.f,vo=ro.d,Eo=xo.a+vo.b+vo.c,To=0-vo.d-ro.c.b,Io=xo.b+vo.d+vo.a-ro.c.b,Ao=new Zl,Po=new Zl,po=new _s(oo);po.a=2){for(To=G1(co,0),xo=bo(q1(To),8),Eo=bo(q1(To),8);Eo.a0&&aq(Ao,!0,(_g(),ey)),Eo.k==(a1(),Kp)&&eUe(Ao),N0(ro.f,Eo,oo)}}function WUt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;for(po=bo(bs(ro,(fp(),$F)),27),Ao=q0,Io=q0,Eo=Ym,To=Ym,zs=G1(ro.b,0);zs.b!=zs.d.c;)Rs=bo(q1(zs),40),Xo=Rs.e,Zo=Rs.f,Ao=lo.Math.min(Ao,Xo.a-Zo.a/2),Io=lo.Math.min(Io,Xo.b-Zo.b/2),Eo=lo.Math.max(Eo,Xo.a+Zo.a/2),To=lo.Math.max(To,Xo.b+Zo.b/2);for(Wo=bo(zl(po,(by(),tOe)),107),Ls=G1(ro.b,0);Ls.b!=Ls.d.c;)Rs=bo(q1(Ls),40),Po=bs(Rs,$F),Hs(Po,207)&&(vo=bo(Po,27),ix(vo,Rs.e.a,Rs.e.b),Pq(vo,Rs));for(Ss=G1(ro.a,0);Ss.b!=Ss.d.c;)ws=bo(q1(Ss),65),fo=bo(bs(ws,$F),74),fo&&(oo=ws.a,co=P9(fo,!0,!0),Wq(oo,co));Ys=Eo-Ao+(Wo.b+Wo.c),xo=To-Io+(Wo.d+Wo.a),lu(au(zl(po,($0(),OA))))||y6(po,Ys,xo,!1,!1),tp(po,R7,Ys-(Wo.b+Wo.c)),tp(po,A7,xo-(Wo.d+Wo.a))}function Clt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po;for(To=!0,po=0,Ao=ro.g[oo.p],Io=oo.o.b+ro.o,co=ro.d[oo.p][2],fx(ro.b,Ao,Ql(bo(cu(ro.b,Ao),17).a-1+co)),fx(ro.c,Ao,na(Tl(cu(ro.c,Ao)))-Io+co*ro.f),++Ao,Ao>=ro.j?(++ro.j,Jl(ro.b,Ql(1)),Jl(ro.c,Io)):(fo=ro.d[oo.p][1],fx(ro.b,Ao,Ql(bo(cu(ro.b,Ao),17).a+1-fo)),fx(ro.c,Ao,na(Tl(cu(ro.c,Ao)))+Io-fo*ro.f)),(ro.r==(qx(),aG)&&(bo(cu(ro.b,Ao),17).a>ro.k||bo(cu(ro.b,Ao-1),17).a>ro.k)||ro.r==lG&&(na(Tl(cu(ro.c,Ao)))>ro.n||na(Tl(cu(ro.c,Ao-1)))>ro.n))&&(To=!1),xo=new x1(E1(Sm(oo).a.Kc(),new ko));W1(xo);)vo=bo(R1(xo),18),Eo=vo.c.i,ro.g[Eo.p]==Ao&&(Po=Clt(ro,Eo),po=po+bo(Po.a,17).a,To=To&&lu(au(Po.b)));return ro.g[oo.p]=Ao,po=po+ro.d[oo.p][0],new fm(Ql(po),(_f(),!!To))}function $lt(ro,oo){var co,fo,po,vo,xo;co=na(Tl(bs(oo,(ou(),_S)))),co<2&&Fl(oo,_S,2),fo=bo(bs(oo,Qw),88),fo==(_g(),R_)&&Fl(oo,Qw,EQ(oo)),po=bo(bs(oo,Gvt),17),po.a==0?Fl(oo,(Wl(),IR),new Kfe):Fl(oo,(Wl(),IR),new CX(po.a)),vo=au(bs(oo,hF)),vo==null&&Fl(oo,hF,(_f(),$a(bs(oo,M5))===$a((S5(),uM)))),zp(new Ou(null,new Du(oo.a,16)),new eye(ro)),zp(fy(new Ou(null,new Du(oo.b,16)),new W4),new tye(ro)),xo=new Slt(oo),Fl(oo,(Wl(),g7),xo),SH(ro.a),HS(ro.a,(Km(),xS),bo(bs(oo,UT),188)),HS(ro.a,qE,bo(bs(oo,YT),188)),HS(ro.a,zy,bo(bs(oo,dF),188)),HS(ro.a,Qy,bo(bs(oo,ite),188)),HS(ro.a,Jv,WRt(bo(bs(oo,M5),223))),K2e(ro.a,zYt(oo)),Fl(oo,Xge,Yq(ro.a,oo))}function E3e(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs;for(Po=new H1,xo=new Zl,kit(ro,co,ro.d.Ag(),xo,Po),kit(ro,fo,ro.d.Bg(),xo,Po),ro.b=.2*(ws=Iot(fy(new Ou(null,new Du(xo,16)),new Yre)),Ss=Iot(fy(new Ou(null,new Du(xo,16)),new jW)),lo.Math.min(ws,Ss)),vo=0,Eo=0;Eo=2&&(Rs=Qot(xo,!0,Wo),!ro.e&&(ro.e=new JLe(ro)),ZNt(ro.e,Rs,xo,ro.b)),Ort(xo,Wo),ZUt(xo),Xo=-1,Io=new _s(xo);Io.aEo)}function Alt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls;for(Ao=Tp,Io=Tp,Eo=am,To=am,Wo=new _s(oo.i);Wo.a-1){for(po=G1(Eo,0);po.b!=po.d.c;)fo=bo(q1(po),131),fo.v=xo;for(;Eo.b!=0;)for(fo=bo(kde(Eo,0),131),co=new _s(fo.i);co.a-1){for(vo=new _s(Eo);vo.a0)&&(dK(To,lo.Math.min(To.o,po.o-1)),uD(To,To.i-1),To.i==0&&Ju(Eo.c,To))}}function Olt(ro,oo,co,fo,po){var vo,xo,Eo,To;return To=Tp,xo=!1,Eo=g3e(ro,mm(new Vl(oo.a,oo.b),ro),G0(new Vl(co.a,co.b),po),mm(new Vl(fo.a,fo.b),co)),vo=!!Eo&&!(lo.Math.abs(Eo.a-ro.a)<=T6&&lo.Math.abs(Eo.b-ro.b)<=T6||lo.Math.abs(Eo.a-oo.a)<=T6&&lo.Math.abs(Eo.b-oo.b)<=T6),Eo=g3e(ro,mm(new Vl(oo.a,oo.b),ro),co,po),Eo&&((lo.Math.abs(Eo.a-ro.a)<=T6&&lo.Math.abs(Eo.b-ro.b)<=T6)==(lo.Math.abs(Eo.a-oo.a)<=T6&&lo.Math.abs(Eo.b-oo.b)<=T6)||vo?To=lo.Math.min(To,dL(mm(Eo,co))):xo=!0),Eo=g3e(ro,mm(new Vl(oo.a,oo.b),ro),fo,po),Eo&&(xo||(lo.Math.abs(Eo.a-ro.a)<=T6&&lo.Math.abs(Eo.b-ro.b)<=T6)==(lo.Math.abs(Eo.a-oo.a)<=T6&&lo.Math.abs(Eo.b-oo.b)<=T6)||vo)&&(To=lo.Math.min(To,dL(mm(Eo,fo)))),To}function Ilt(ro){IC(ro,new RT($K(AC(TC($C(CC(new W5,A3),Aut),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new B2),x2))),Xl(ro,A3,kB,iu(QAe)),Xl(ro,A3,GZ,(_f(),!0)),Xl(ro,A3,X9,iu(ppt)),Xl(ro,A3,mR,iu(gpt)),Xl(ro,A3,gR,iu(mpt)),Xl(ro,A3,vN,iu(hpt)),Xl(ro,A3,TB,iu(JAe)),Xl(ro,A3,bN,iu(vpt)),Xl(ro,A3,xTe,iu(XAe)),Xl(ro,A3,_Te,iu(KAe)),Xl(ro,A3,ETe,iu(YAe)),Xl(ro,A3,kTe,iu(ZAe)),Xl(ro,A3,STe,iu(aee))}function JUt(ro){var oo,co,fo,po,vo,xo,Eo,To;for(oo=null,fo=new _s(ro);fo.a0&&co.c==0&&(!oo&&(oo=new Zl),Ju(oo.c,co));if(oo)for(;oo.c.length!=0;){if(co=bo(l4(oo,0),239),co.b&&co.b.c.length>0){for(vo=(!co.b&&(co.b=new Zl),new _s(co.b));vo.aXv(ro,co,0))return new fm(po,co)}else if(na(a_(po.g,po.d[0]).a)>na(a_(co.g,co.d[0]).a))return new fm(po,co)}for(Eo=(!co.e&&(co.e=new Zl),co.e).Kc();Eo.Ob();)xo=bo(Eo.Pb(),239),To=(!xo.b&&(xo.b=new Zl),xo.b),A$(0,To.c.length),ND(To.c,0,co),xo.c==To.c.length&&Ju(oo.c,xo)}return null}function eKt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs;for(oo.Ug("Interactive crossing minimization",1),xo=0,vo=new _s(ro.b);vo.a0&&(co+=To.n.a+To.o.a/2,++Po),Zo=new _s(To.j);Zo.a0&&(co/=Po),Rs=Al(Am,Iv,28,fo.a.c.length,15,1),Eo=0,Ao=new _s(fo.a);Ao.a=Eo&&po<=To)Eo<=po&&vo<=To?fo+=2:Eo<=po?(ro.b[fo]=To+1,xo+=2):vo<=To?(co[Io++]=po,co[Io++]=Eo-1,fo+=2):(co[Io++]=po,co[Io++]=Eo-1,ro.b[fo]=To+1,xo+=2);else if(To2?(Io=new Zl,sm(Io,new s4(Rs,1,Rs.b)),vo=yct(Io,zs+ro.a),Ls=new Yde(vo),Qv(Ls,oo),Ju(co.c,Ls)):fo?Ls=bo(m1(ro.b,NE(oo)),272):Ls=bo(m1(ro.b,S3(oo)),272),To=NE(oo),fo&&(To=S3(oo)),xo=JFt(Ss,To),Ao=zs+ro.a,xo.a?(Ao+=lo.Math.abs(Ss.b-Po.b),ws=new Vl(Po.a,(Po.b+Ss.b)/2)):(Ao+=lo.Math.abs(Ss.a-Po.a),ws=new Vl((Po.a+Ss.a)/2,Po.b)),fo?N0(ro.d,oo,new Hke(Ls,xo,ws,Ao)):N0(ro.c,oo,new Hke(Ls,xo,ws,Ao)),N0(ro.b,oo,Ls),Zo=(!oo.n&&(oo.n=new Bl(Nv,oo,1,7)),oo.n),Xo=new g1(Zo);Xo.e!=Xo.i.gc();)Wo=bo(k1(Xo),135),po=Hq(ro,Wo,!0,0,0),Ju(co.c,po)}function tKt(ro){var oo,co,fo,po,vo,xo,Eo;if(!ro.A.dc()){if(ro.A.Hc((Mw(),BG))&&(bo(Rv(ro.b,(nu(),s1)),127).k=!0,bo(Rv(ro.b,z1),127).k=!0,oo=ro.q!=(Im(),YE)&&ro.q!=n2,sK(bo(Rv(ro.b,p1),127),oo),sK(bo(Rv(ro.b,l1),127),oo),sK(ro.g,oo),ro.A.Hc(oC)&&(bo(Rv(ro.b,s1),127).j=!0,bo(Rv(ro.b,z1),127).j=!0,bo(Rv(ro.b,p1),127).k=!0,bo(Rv(ro.b,l1),127).k=!0,ro.g.k=!0)),ro.A.Hc(LG))for(ro.a.j=!0,ro.a.k=!0,ro.g.j=!0,ro.g.k=!0,Eo=ro.B.Hc((ww(),XF)),po=rde(),vo=0,xo=po.length;vo0),bo(Io.a.Xb(Io.c=--Io.b),18));vo!=fo&&Io.b>0;)ro.a[vo.p]=!0,ro.a[fo.p]=!0,vo=(T1(Io.b>0),bo(Io.a.Xb(Io.c=--Io.b),18));Io.b>0&&Iw(Io)}}function Mlt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo;if(!ro.b)return!1;for(xo=null,Wo=null,To=new Pue(null,null),po=1,To.a[1]=ro.b,Po=To;Po.a[po];)Ao=po,Eo=Wo,Wo=Po,Po=Po.a[po],fo=ro.a.Ne(oo,Po.d),po=fo<0?0:1,fo==0&&(!co.c||ky(Po.e,co.d))&&(xo=Po),!(Po&&Po.b)&&!h$(Po.a[po])&&(h$(Po.a[1-po])?Wo=Wo.a[Ao]=sQ(Po,po):h$(Po.a[1-po])||(Xo=Wo.a[1-Ao],Xo&&(!h$(Xo.a[1-Ao])&&!h$(Xo.a[Ao])?(Wo.b=!1,Xo.b=!0,Po.b=!0):(vo=Eo.a[1]==Wo?1:0,h$(Xo.a[Ao])?Eo.a[vo]=tYe(Wo,Ao):h$(Xo.a[1-Ao])&&(Eo.a[vo]=sQ(Wo,Ao)),Po.b=Eo.a[vo].b=!0,Eo.a[vo].a[0].b=!1,Eo.a[vo].a[1].b=!1))));return xo&&(co.b=!0,co.d=xo.e,Po!=xo&&(Io=new Pue(Po.d,Po.e),iFt(ro,To,xo,Io),Wo==xo&&(Wo=Io)),Wo.a[Wo.a[1]==Po?1:0]=Po.a[Po.a[0]?0:1],--ro.c),ro.b=To.a[1],ro.b&&(ro.b.b=!1),co.b}function iKt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;for(po=new _s(ro.a.a.b);po.a0?po-=864e5:po+=864e5,To=new Iwe(tv(Ty(oo.q.getTime()),po))),Io=new t9,Ao=ro.a.length,vo=0;vo=97&&fo<=122||fo>=65&&fo<=90){for(xo=vo+1;xo=Ao)throw Cs(new i1("Missing trailing '"));xo+1=14&&Io<=16))?oo.a._b(fo)?(co.a?S0(co.a,co.b):co.a=new Bw(co.d),WD(co.a,"[...]")):(Eo=yT(fo),Ao=new rL(oo),g5(co,Llt(Eo,Ao))):Hs(fo,183)?g5(co,LPt(bo(fo,183))):Hs(fo,195)?g5(co,xBt(bo(fo,195))):Hs(fo,201)?g5(co,OFt(bo(fo,201))):Hs(fo,2111)?g5(co,SBt(bo(fo,2111))):Hs(fo,53)?g5(co,DPt(bo(fo,53))):Hs(fo,376)?g5(co,JPt(bo(fo,376))):Hs(fo,846)?g5(co,MPt(bo(fo,846))):Hs(fo,109)&&g5(co,NPt(bo(fo,109))):g5(co,fo==null?I2:ry(fo));return co.a?co.e.length==0?co.a.a:co.a.a+(""+co.e):co.c}function rN(ro,oo){var co,fo,po,vo;vo=ro.F,oo==null?(ro.F=null,AI(ro,null)):(ro.F=(u1(oo),oo),fo=q_(oo,O2(60)),fo!=-1?(po=(Bm(0,fo,oo.length),oo.substr(0,fo)),q_(oo,O2(46))==-1&&!Iu(po,sR)&&!Iu(po,jB)&&!Iu(po,AJ)&&!Iu(po,zB)&&!Iu(po,HB)&&!Iu(po,qB)&&!Iu(po,VB)&&!Iu(po,GB)&&(po=mht),co=xY(oo,O2(62)),co!=-1&&(po+=""+(o1(co+1,oo.length+1),oo.substr(co+1))),AI(ro,po)):(po=oo,q_(oo,O2(46))==-1&&(fo=q_(oo,O2(91)),fo!=-1&&(po=(Bm(0,fo,oo.length),oo.substr(0,fo))),!Iu(po,sR)&&!Iu(po,jB)&&!Iu(po,AJ)&&!Iu(po,zB)&&!Iu(po,HB)&&!Iu(po,qB)&&!Iu(po,VB)&&!Iu(po,GB)?(po=mht,fo!=-1&&(po+=""+(o1(fo,oo.length+1),oo.substr(fo)))):po=oo),AI(ro,po),po==oo&&(ro.F=ro.D))),ro.Db&4&&!(ro.Db&1)&&W0(ro,new Em(ro,1,5,vo,oo))}function Blt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po;if(To=oo.length-1,Eo=(o1(To,oo.length),oo.charCodeAt(To)),Eo==93){if(xo=q_(oo,O2(91)),xo>=0)return po=cNt(ro,(Bm(1,xo,oo.length),oo.substr(1,xo-1))),Io=(Bm(xo+1,To,oo.length),oo.substr(xo+1,To-(xo+1))),DYt(ro,Io,po)}else{if(co=-1,j$e==null&&(j$e=new RegExp("\\d")),j$e.test(String.fromCharCode(Eo))&&(co=Xwe(oo,O2(46),To-1),co>=0)){fo=bo(Nue(ro,mZe(ro,(Bm(1,co,oo.length),oo.substr(1,co-1))),!1),61),Ao=0;try{Ao=Ww((o1(co+1,oo.length+1),oo.substr(co+1)),Ym,q0)}catch(Wo){throw Wo=$p(Wo),Hs(Wo,130)?(vo=Wo,Cs(new PX(vo))):Cs(Wo)}if(Ao>16==-10?co=bo(ro.Cb,292).Yk(oo,co):ro.Db>>16==-15&&(!oo&&(oo=(Pu(),N_)),!Ao&&(Ao=(Pu(),N_)),ro.Cb.Yh()&&(To=new m5(ro.Cb,1,13,Ao,oo,x4(vw(bo(ro.Cb,62)),ro),!1),co?co.nj(To):co=To));else if(Hs(ro.Cb,90))ro.Db>>16==-23&&(Hs(oo,90)||(oo=(Pu(),nS)),Hs(Ao,90)||(Ao=(Pu(),nS)),ro.Cb.Yh()&&(To=new m5(ro.Cb,1,10,Ao,oo,x4(Fy(bo(ro.Cb,29)),ro),!1),co?co.nj(To):co=To));else if(Hs(ro.Cb,457))for(Eo=bo(ro.Cb,850),xo=(!Eo.b&&(Eo.b=new bK(new Wae)),Eo.b),vo=(fo=new ST(new su(xo.a).a),new yK(fo));vo.a.b;)po=bo(a6(vo.a).ld(),89),co=iN(po,cZ(po,Eo),co)}return co}function cKt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;for(xo=lu(au(zl(ro,(ou(),SA)))),Wo=bo(zl(ro,EA),21),To=!1,Ao=!1,Po=new g1((!ro.c&&(ro.c=new Bl(fw,ro,9,9)),ro.c));Po.e!=Po.i.gc()&&(!To||!Ao);){for(vo=bo(k1(Po),123),Eo=0,po=$E(Hw(As($s(Xw,1),Xu,20,0,[(!vo.d&&(vo.d=new Wu(Gp,vo,8,5)),vo.d),(!vo.e&&(vo.e=new Wu(Gp,vo,7,4)),vo.e)])));W1(po)&&(fo=bo(R1(po),74),Io=xo&&g6(fo)&&lu(au(zl(fo,KT))),co=glt((!fo.b&&(fo.b=new Wu(D1,fo,4,7)),fo.b),vo)?ro==kp(Zv(bo(Gs((!fo.c&&(fo.c=new Wu(D1,fo,5,8)),fo.c),0),84))):ro==kp(Zv(bo(Gs((!fo.b&&(fo.b=new Wu(D1,fo,4,7)),fo.b),0),84))),!((Io||co)&&(++Eo,Eo>1))););(Eo>0||Wo.Hc((sw(),L5))&&(!vo.n&&(vo.n=new Bl(Nv,vo,1,7)),vo.n).i>0)&&(To=!0),Eo>1&&(Ao=!0)}To&&oo.Fc((Sv(),Tx)),Ao&&oo.Fc((Sv(),oF))}function Flt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;if(Wo=bo(zl(ro,($0(),nC)),21),Wo.dc())return null;if(Eo=0,xo=0,Wo.Hc((Mw(),BG))){for(Io=bo(zl(ro,zF),101),fo=2,co=2,po=2,vo=2,oo=kp(ro)?bo(zl(kp(ro),tC),88):bo(zl(ro,tC),88),Ao=new g1((!ro.c&&(ro.c=new Bl(fw,ro,9,9)),ro.c));Ao.e!=Ao.i.gc();)if(To=bo(k1(Ao),123),Po=bo(zl(To,M7),64),Po==(nu(),gy)&&(Po=c3e(To,oo),tp(To,M7,Po)),Io==(Im(),n2))switch(Po.g){case 1:fo=lo.Math.max(fo,To.i+To.g);break;case 2:co=lo.Math.max(co,To.j+To.f);break;case 3:po=lo.Math.max(po,To.i+To.g);break;case 4:vo=lo.Math.max(vo,To.j+To.f)}else switch(Po.g){case 1:fo+=To.g+2;break;case 2:co+=To.f+2;break;case 3:po+=To.g+2;break;case 4:vo+=To.f+2}Eo=lo.Math.max(fo,po),xo=lo.Math.max(co,vo)}return y6(ro,Eo,xo,!0,!0)}function Ahe(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;for(Ls=bo(ny(UX(X0(new Ou(null,new Du(oo.d,16)),new yLe(co)),new wLe(co)),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),Po=q0,Io=Ym,To=new _s(oo.b.j);To.a0,Ao?Ao&&(Wo=Rs.p,xo?++Wo:--Wo,Po=bo(cu(Rs.c.a,Wo),10),fo=JJe(Po),Xo=!(Jde(fo,Hl,co[0])||_We(fo,Hl,co[0]))):Xo=!0),Zo=!1,Nl=oo.D.i,Nl&&Nl.c&&Eo.e&&(Io=xo&&Nl.p>0||!xo&&Nl.p=0){for(To=null,Eo=new Lm(Io.a,Ao+1);Eo.bxo?1:LC(isNaN(0),isNaN(xo)))<0&&(hS(lE),(lo.Math.abs(xo-1)<=lE||xo==1||isNaN(xo)&&isNaN(1)?0:xo<1?-1:xo>1?1:LC(isNaN(xo),isNaN(1)))<0)&&(hS(lE),(lo.Math.abs(0-Eo)<=lE||Eo==0||isNaN(0)&&isNaN(Eo)?0:0Eo?1:LC(isNaN(0),isNaN(Eo)))<0)&&(hS(lE),(lo.Math.abs(Eo-1)<=lE||Eo==1||isNaN(Eo)&&isNaN(1)?0:Eo<1?-1:Eo>1?1:LC(isNaN(Eo),isNaN(1)))<0)),vo)}function gKt(ro){var oo,co,fo,po;if(co=ro.D!=null?ro.D:ro.B,oo=q_(co,O2(91)),oo!=-1){fo=(Bm(0,oo,co.length),co.substr(0,oo)),po=new Z5;do po.a+="[";while((oo=FO(co,91,++oo))!=-1);Iu(fo,sR)?po.a+="Z":Iu(fo,jB)?po.a+="B":Iu(fo,AJ)?po.a+="C":Iu(fo,zB)?po.a+="D":Iu(fo,HB)?po.a+="F":Iu(fo,qB)?po.a+="I":Iu(fo,VB)?po.a+="J":Iu(fo,GB)?po.a+="S":(po.a+="L",po.a+=""+fo,po.a+=";");try{return null}catch(vo){if(vo=$p(vo),!Hs(vo,63))throw Cs(vo)}}else if(q_(co,O2(46))==-1){if(Iu(co,sR))return kw;if(Iu(co,jB))return Q2;if(Iu(co,AJ))return Rx;if(Iu(co,zB))return Am;if(Iu(co,HB))return HA;if(Iu(co,qB))return Q1;if(Iu(co,VB))return tT;if(Iu(co,GB))return j7}return null}function mKt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru;for(ro.e=oo,Eo=mjt(oo),Hl=new Zl,fo=new _s(Eo);fo.a=0&&ws=Ao.c.c.length?Io=KSe((a1(),Vp),km):Io=KSe((a1(),km),km),Io*=2,vo=co.a.g,co.a.g=lo.Math.max(vo,vo+(Io-vo)),xo=co.b.g,co.b.g=lo.Math.max(xo,xo+(Io-xo)),po=oo}}function wKt(ro){var oo,co,fo,po;for(zp(X0(new Ou(null,new Du(ro.a.b,16)),new sO),new OM),tBt(ro),zp(X0(new Ou(null,new Du(ro.a.b,16)),new Z7),new rre),ro.c==(S5(),HR)&&(zp(X0(fy(new Ou(null,new Du(new Dl(ro.f),1)),new ire),new ore),new dLe(ro)),zp(X0(Kv(fy(fy(new Ou(null,new Du(ro.d.b,16)),new sre),new are),new IM),new aO),new pLe(ro))),po=new Vl(Tp,Tp),oo=new Vl(am,am),fo=new _s(ro.a.b);fo.a0&&(oo.a+=av),AZ(bo(k1(Eo),167),oo);for(oo.a+=F1e,To=new _8((!fo.c&&(fo.c=new Wu(D1,fo,5,8)),fo.c));To.e!=To.i.gc();)To.e>0&&(oo.a+=av),AZ(bo(k1(To),167),oo);oo.a+=")"}}function xKt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;for(To=new g1((!ro.a&&(ro.a=new Bl(F0,ro,10,11)),ro.a));To.e!=To.i.gc();)for(Eo=bo(k1(To),27),po=new x1(E1(T5(Eo).a.Kc(),new ko));W1(po);){if(fo=bo(R1(po),74),!fo.b&&(fo.b=new Wu(D1,fo,4,7)),!(fo.b.i<=1&&(!fo.c&&(fo.c=new Wu(D1,fo,5,8)),fo.c.i<=1)))throw Cs(new h8("Graph must not contain hyperedges."));if(!nB(fo)&&Eo!=Zv(bo(Gs((!fo.c&&(fo.c=new Wu(D1,fo,5,8)),fo.c),0),84)))for(Ao=new OVe,Qv(Ao,fo),Fl(Ao,(g3(),ER),fo),ybe(Ao,bo(Uv(wv(co.f,Eo)),153)),o5(Ao,bo(m1(co,Zv(bo(Gs((!fo.c&&(fo.c=new Wu(D1,fo,5,8)),fo.c),0),84))),153)),Jl(oo.c,Ao),xo=new g1((!fo.n&&(fo.n=new Bl(Nv,fo,1,7)),fo.n));xo.e!=xo.i.gc();)vo=bo(k1(xo),135),Io=new NYe(Ao,vo.a),Qv(Io,vo),Fl(Io,ER,vo),Io.e.a=lo.Math.max(vo.g,1),Io.e.b=lo.Math.max(vo.f,1),p3e(Io),Jl(oo.d,Io)}}function SKt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;switch(co.Ug("Node promotion heuristic",1),ro.i=oo,ro.r=bo(bs(oo,(ou(),j3)),243),ro.r!=(qx(),G6)&&ro.r!=CA?YKt(ro):xqt(ro),Io=bo(bs(ro.i,R8e),17).a,vo=new Y4,ro.r.g){case 2:case 1:nN(ro,vo);break;case 3:for(ro.r=hte,nN(ro,vo),To=0,Eo=new _s(ro.b);Eo.aro.k&&(ro.r=aG,nN(ro,vo));break;case 4:for(ro.r=hte,nN(ro,vo),Ao=0,po=new _s(ro.c);po.aro.n&&(ro.r=lG,nN(ro,vo));break;case 6:Wo=dm(lo.Math.ceil(ro.g.length*Io/100)),nN(ro,new eLe(Wo));break;case 5:Po=dm(lo.Math.ceil(ro.e*Io/100)),nN(ro,new tLe(Po));break;case 8:Sct(ro,!0);break;case 9:Sct(ro,!1);break;default:nN(ro,vo)}ro.r!=G6&&ro.r!=CA?GHt(ro,oo):fVt(ro,oo),co.Vg()}function _Kt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs;for(Po=ro.b,Io=new Lm(Po,0),S$(Io,new Vy(ro)),Ls=!1,xo=1;Io.b0&&(Wo.d+=Io.n.d,Wo.d+=Io.d),Wo.a>0&&(Wo.a+=Io.n.a,Wo.a+=Io.d),Wo.b>0&&(Wo.b+=Io.n.b,Wo.b+=Io.d),Wo.c>0&&(Wo.c+=Io.n.c,Wo.c+=Io.d),Wo}function jlt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo;for(Wo=co.d,Po=co.c,vo=new Vl(co.f.a+co.d.b+co.d.c,co.f.b+co.d.d+co.d.a),xo=vo.b,Ao=new _s(ro.a);Ao.a0&&(ro.c[oo.c.p][oo.p].d+=yw(ro.i,24)*cV*.07000000029802322-.03500000014901161,ro.c[oo.c.p][oo.p].a=ro.c[oo.c.p][oo.p].d/ro.c[oo.c.p][oo.p].b)}}function TKt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss;for(Zo=new _s(ro);Zo.afo.d,fo.d=lo.Math.max(fo.d,oo),Eo&&co&&(fo.d=lo.Math.max(fo.d,fo.a),fo.a=fo.d+po);break;case 3:co=oo>fo.a,fo.a=lo.Math.max(fo.a,oo),Eo&&co&&(fo.a=lo.Math.max(fo.a,fo.d),fo.d=fo.a+po);break;case 2:co=oo>fo.c,fo.c=lo.Math.max(fo.c,oo),Eo&&co&&(fo.c=lo.Math.max(fo.b,fo.c),fo.b=fo.c+po);break;case 4:co=oo>fo.b,fo.b=lo.Math.max(fo.b,oo),Eo&&co&&(fo.b=lo.Math.max(fo.b,fo.c),fo.c=fo.b+po)}}}function Hlt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;return Ao="",oo.length==0?ro.ne(V3e,zhe,-1,-1):(Io=W$(oo),Iu(Io.substr(0,3),"at ")&&(Io=(o1(3,Io.length+1),Io.substr(3))),Io=Io.replace(/\[.*?\]/g,""),xo=Io.indexOf("("),xo==-1?(xo=Io.indexOf("@"),xo==-1?(Ao=Io,Io=""):(Ao=W$((o1(xo+1,Io.length+1),Io.substr(xo+1))),Io=W$((Bm(0,xo,Io.length),Io.substr(0,xo))))):(co=Io.indexOf(")",xo),Ao=(Bm(xo+1,co,Io.length),Io.substr(xo+1,co-(xo+1))),Io=W$((Bm(0,xo,Io.length),Io.substr(0,xo)))),xo=q_(Io,O2(46)),xo!=-1&&(Io=(o1(xo+1,Io.length+1),Io.substr(xo+1))),(Io.length==0||Iu(Io,"Anonymous function"))&&(Io=zhe),Eo=xY(Ao,O2(58)),po=Xwe(Ao,O2(58),Eo-1),To=-1,fo=-1,vo=V3e,Eo!=-1&&po!=-1&&(vo=(Bm(0,po,Ao.length),Ao.substr(0,po)),To=Xqe((Bm(po+1,Eo,Ao.length),Ao.substr(po+1,Eo-(po+1)))),fo=Xqe((o1(Eo+1,Ao.length+1),Ao.substr(Eo+1)))),ro.ne(vo,Io,To,fo))}function AKt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po;for(Ao=new _s(ro);Ao.a0||Io.j==l1&&Io.e.c.length-Io.g.c.length<0)){oo=!1;break}for(po=new _s(Io.g);po.a=Ao&&Nl>=Ss&&(Wo+=Zo.n.b+ws.n.b+ws.a.b-Ys,++Eo));if(co)for(xo=new _s(Ls.e);xo.a=Ao&&Nl>=Ss&&(Wo+=Zo.n.b+ws.n.b+ws.a.b-Ys,++Eo))}Eo>0&&(Hl+=Wo/Eo,++Xo)}Xo>0?(oo.a=po*Hl/Xo,oo.g=Xo):(oo.a=0,oo.g=0)}function OKt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru;for(vo=ro.f.b,Wo=vo.a,Io=vo.b,Zo=ro.e.g,Xo=ro.e.f,d9(ro.e,vo.a,vo.b),Hl=Wo/Zo,ru=Io/Xo,Ao=new g1(sX(ro.e));Ao.e!=Ao.i.gc();)To=bo(k1(Ao),135),m2(To,To.i*Hl),b2(To,To.j*ru);for(Ls=new g1(Zce(ro.e));Ls.e!=Ls.i.gc();)Rs=bo(k1(Ls),123),Ys=Rs.i,Nl=Rs.j,Ys>0&&m2(Rs,Ys*Hl),Nl>0&&b2(Rs,Nl*ru);for(AL(ro.b,new NS),oo=new Zl,Eo=new ST(new su(ro.c).a);Eo.b;)xo=a6(Eo),fo=bo(xo.ld(),74),co=bo(xo.md(),407).a,po=P9(fo,!1,!1),Po=Irt(NE(fo),Iq(po),co),Wq(Po,po),zs=Grt(fo),zs&&Xv(oo,zs,0)==-1&&(Ju(oo.c,zs),pUe(zs,(T1(Po.b!=0),bo(Po.a.a.c,8)),co));for(Ss=new ST(new su(ro.d).a);Ss.b;)ws=a6(Ss),fo=bo(ws.ld(),74),co=bo(ws.md(),407).a,po=P9(fo,!1,!1),Po=Irt(S3(fo),cq(Iq(po)),co),Po=cq(Po),Wq(Po,po),zs=Wrt(fo),zs&&Xv(oo,zs,0)==-1&&(Ju(oo.c,zs),pUe(zs,(T1(Po.b!=0),bo(Po.c.b.c,8)),co))}function qlt(ro,oo,co,fo){var po,vo,xo,Eo,To;return Eo=new $3e(oo),SHt(Eo,fo),po=!0,ro&&ro.pf(($0(),tC))&&(vo=bo(ro.of(($0(),tC)),88),po=vo==(_g(),R_)||vo==qv||vo==ey),Hst(Eo,!1),g2(Eo.e.Rf(),new rxe(Eo,!1,po)),fue(Eo,Eo.f,(US(),xy),(nu(),s1)),fue(Eo,Eo.f,Sy,z1),fue(Eo,Eo.g,xy,l1),fue(Eo,Eo.g,Sy,p1),pnt(Eo,s1),pnt(Eo,z1),fUe(Eo,p1),fUe(Eo,l1),x$(),xo=Eo.A.Hc((Mw(),MA))&&Eo.B.Hc((ww(),PG))?Rtt(Eo):null,xo&&R_t(Eo.a,xo),$Kt(Eo),ADt(Eo),RDt(Eo),tKt(Eo),wGt(Eo),nLt(Eo),tde(Eo,s1),tde(Eo,z1),sVt(Eo),KWt(Eo),co&&(uNt(Eo),rLt(Eo),tde(Eo,p1),tde(Eo,l1),To=Eo.B.Hc((ww(),XF)),Iit(Eo,To,s1),Iit(Eo,To,z1),Nit(Eo,To,p1),Nit(Eo,To,l1),zp(new Ou(null,new Du(new L0(Eo.i),0)),new P1),zp(X0(new Ou(null,tSe(Eo.r).a.oc()),new c1),new V0),vBt(Eo),Eo.e.Pf(Eo.o),zp(new Ou(null,tSe(Eo.r).a.oc()),new P0)),Eo.o}function IKt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws;for(Ao=Tp,fo=new _s(ro.a.b);fo.a1)for(Xo=new b3e(Zo,zs,fo),Hm(zs,new Vze(ro,Xo)),Ju(xo.c,Xo),Po=zs.a.ec().Kc();Po.Ob();)Io=bo(Po.Pb(),42),A2(vo,Io.b);if(Eo.a.gc()>1)for(Xo=new b3e(Zo,Eo,fo),Hm(Eo,new Gze(ro,Xo)),Ju(xo.c,Xo),Po=Eo.a.ec().Kc();Po.Ob();)Io=bo(Po.Pb(),42),A2(vo,Io.b)}}function LKt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs;if(ws=ro.n,Ss=ro.o,Wo=ro.d,Po=na(Tl(z$(ro,(ou(),ume)))),oo){for(Io=Po*(oo.gc()-1),Xo=0,To=oo.Kc();To.Ob();)xo=bo(To.Pb(),10),Io+=xo.o.a,Xo=lo.Math.max(Xo,xo.o.b);for(Rs=ws.a-(Io-Ss.a)/2,vo=ws.b-Wo.d+Xo,fo=Ss.a/(oo.gc()+1),po=fo,Eo=oo.Kc();Eo.Ob();)xo=bo(Eo.Pb(),10),xo.n.a=Rs,xo.n.b=vo-xo.o.b,Rs+=xo.o.a+Po,Ao=Zot(xo),Ao.n.a=xo.o.a/2-Ao.a.a,Ao.n.b=xo.o.b,Zo=bo(bs(xo,(Wl(),zee)),12),Zo.e.c.length+Zo.g.c.length==1&&(Zo.n.a=po-Zo.a.a,Zo.n.b=0,uy(Zo,ro)),po+=fo}if(co){for(Io=Po*(co.gc()-1),Xo=0,To=co.Kc();To.Ob();)xo=bo(To.Pb(),10),Io+=xo.o.a,Xo=lo.Math.max(Xo,xo.o.b);for(Rs=ws.a-(Io-Ss.a)/2,vo=ws.b+Ss.b+Wo.a-Xo,fo=Ss.a/(co.gc()+1),po=fo,Eo=co.Kc();Eo.Ob();)xo=bo(Eo.Pb(),10),xo.n.a=Rs,xo.n.b=vo,Rs+=xo.o.a+Po,Ao=Zot(xo),Ao.n.a=xo.o.a/2-Ao.a.a,Ao.n.b=0,Zo=bo(bs(xo,(Wl(),zee)),12),Zo.e.c.length+Zo.g.c.length==1&&(Zo.n.a=po-Zo.a.a,Zo.n.b=Ss.b,uy(Zo,ro)),po+=fo}}function BKt(ro,oo){var co,fo,po,vo,xo,Eo;if(bo(bs(oo,(Wl(),Jy)),21).Hc((Sv(),Tx))){for(Eo=new _s(oo.a);Eo.a=0&&xo0&&(bo(Rv(ro.b,oo),127).a.b=co)}function HKt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws;if(Wo=na(Tl(bs(ro,(ou(),QN)))),Xo=na(Tl(bs(ro,ZN))),Po=na(Tl(bs(ro,TA))),Eo=ro.o,vo=bo(cu(ro.j,0),12),xo=vo.n,ws=oPt(vo,Po),!!ws){if(oo.Hc((sw(),L5)))switch(bo(bs(ro,(Wl(),_y)),64).g){case 1:ws.c=(Eo.a-ws.b)/2-xo.a,ws.d=Xo;break;case 3:ws.c=(Eo.a-ws.b)/2-xo.a,ws.d=-Xo-ws.a;break;case 2:co&&vo.e.c.length==0&&vo.g.c.length==0?(Io=fo?ws.a:bo(cu(vo.f,0),72).o.b,ws.d=(Eo.b-Io)/2-xo.b):ws.d=Eo.b+Xo-xo.b,ws.c=-Wo-ws.b;break;case 4:co&&vo.e.c.length==0&&vo.g.c.length==0?(Io=fo?ws.a:bo(cu(vo.f,0),72).o.b,ws.d=(Eo.b-Io)/2-xo.b):ws.d=Eo.b+Xo-xo.b,ws.c=Wo}else if(oo.Hc(K3))switch(bo(bs(ro,(Wl(),_y)),64).g){case 1:case 3:ws.c=xo.a+Wo;break;case 2:case 4:co&&!vo.c?(Io=fo?ws.a:bo(cu(vo.f,0),72).o.b,ws.d=(Eo.b-Io)/2-xo.b):ws.d=xo.b+Xo}for(po=ws.d,Ao=new _s(vo.f);Ao.a=oo.length)return{done:!0};var po=oo[fo++];return{value:[po,co.get(po)],done:!1}}}},Pqt()||(ro.prototype.createObject=function(){return{}},ro.prototype.get=function(oo){return this.obj[":"+oo]},ro.prototype.set=function(oo,co){this.obj[":"+oo]=co},ro.prototype[h1e]=function(oo){delete this.obj[":"+oo]},ro.prototype.keys=function(){var oo=[];for(var co in this.obj)co.charCodeAt(0)==58&&oo.push(co.substring(1));return oo}),ro}function fp(){fp=qo,$F=new np(wTe),new Rp("DEPTH",Ql(0)),Fme=new Rp("FAN",Ql(0)),qRe=new Rp(gft,Ql(0)),q3=new Rp("ROOT",(_f(),!1)),zme=new Rp("LEFTNEIGHBOR",null),pyt=new Rp("RIGHTNEIGHBOR",null),wte=new Rp("LEFTSIBLING",null),Hme=new Rp("RIGHTSIBLING",null),Bme=new Rp("DUMMY",!1),new Rp("LEVEL",Ql(0)),WRe=new Rp("REMOVABLE_EDGES",new xp),pG=new Rp("XCOOR",Ql(0)),gG=new Rp("YCOOR",Ql(0)),xte=new Rp("LEVELHEIGHT",0),e_=new Rp("LEVELMIN",0),ES=new Rp("LEVELMAX",0),Pme=new Rp("GRAPH_XMIN",0),jme=new Rp("GRAPH_YMIN",0),VRe=new Rp("GRAPH_XMAX",0),GRe=new Rp("GRAPH_YMAX",0),HRe=new Rp("COMPACT_LEVEL_ASCENSION",!1),Lme=new Rp("COMPACT_CONSTRAINTS",new Zl),CF=new Rp("ID",""),AF=new Rp("POSITION",Ql(0)),M4=new Rp("PRELIM",0),rM=new Rp("MODIFIER",0),nM=new np(Cut),hG=new np($ut)}function WKt(ro){l3e();var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss;if(ro==null)return null;if(Po=ro.length*8,Po==0)return"";for(Eo=Po%24,Xo=Po/24|0,Wo=Eo!=0?Xo+1:Xo,vo=null,vo=Al(Rx,nE,28,Wo*4,15,1),Ao=0,Io=0,oo=0,co=0,fo=0,xo=0,po=0,To=0;To>24,Ao=(oo&3)<<24>>24,Zo=oo&-128?(oo>>2^192)<<24>>24:oo>>2<<24>>24,ws=co&-128?(co>>4^240)<<24>>24:co>>4<<24>>24,Ss=fo&-128?(fo>>6^252)<<24>>24:fo>>6<<24>>24,vo[xo++]=q4[Zo],vo[xo++]=q4[ws|Ao<<4],vo[xo++]=q4[Io<<2|Ss],vo[xo++]=q4[fo&63];return Eo==8?(oo=ro[po],Ao=(oo&3)<<24>>24,Zo=oo&-128?(oo>>2^192)<<24>>24:oo>>2<<24>>24,vo[xo++]=q4[Zo],vo[xo++]=q4[Ao<<4],vo[xo++]=61,vo[xo++]=61):Eo==16&&(oo=ro[po],co=ro[po+1],Io=(co&15)<<24>>24,Ao=(oo&3)<<24>>24,Zo=oo&-128?(oo>>2^192)<<24>>24:oo>>2<<24>>24,ws=co&-128?(co>>4^240)<<24>>24:co>>4<<24>>24,vo[xo++]=q4[Zo],vo[xo++]=q4[ws|Ao<<4],vo[xo++]=q4[Io<<2],vo[xo++]=61),zx(vo,0,vo.length)}function UKt(ro,oo){var co,fo,po,vo,xo,Eo,To;if(ro.e==0&&ro.p>0&&(ro.p=-(ro.p-1)),ro.p>Ym&&USe(oo,ro.p-$3),xo=oo.q.getDate(),AH(oo,1),ro.k>=0&&D$t(oo,ro.k),ro.c>=0?AH(oo,ro.c):ro.k>=0?(To=new EEe(oo.q.getFullYear()-$3,oo.q.getMonth(),35),fo=35-To.q.getDate(),AH(oo,lo.Math.min(fo,xo))):AH(oo,xo),ro.f<0&&(ro.f=oo.q.getHours()),ro.b>0&&ro.f<12&&(ro.f+=12),kkt(oo,ro.f==24&&ro.g?0:ro.f),ro.j>=0&&v7t(oo,ro.j),ro.n>=0&&A7t(oo,ro.n),ro.i>=0&&qHe(oo,tv(nv($q(Ty(oo.q.getTime()),k4),k4),ro.i)),ro.a&&(po=new MK,USe(po,po.q.getFullYear()-$3-80),ple(Ty(oo.q.getTime()),Ty(po.q.getTime()))&&USe(oo,po.q.getFullYear()-$3+100)),ro.d>=0){if(ro.c==-1)co=(7+ro.d-oo.q.getDay())%7,co>3&&(co-=7),Eo=oo.q.getMonth(),AH(oo,oo.q.getDate()+co),oo.q.getMonth()!=Eo&&AH(oo,oo.q.getDate()+(co>0?-7:7));else if(oo.q.getDay()!=ro.d)return!1}return ro.o>Ym&&(vo=oo.q.getTimezoneOffset(),qHe(oo,tv(Ty(oo.q.getTime()),(ro.o-vo)*60*k4))),!0}function Klt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;if(po=bs(oo,(Wl(),Z0)),!!Hs(po,207)){for(Zo=bo(po,27),ws=oo.e,Wo=new ov(oo.c),vo=oo.d,Wo.a+=vo.b,Wo.b+=vo.d,Ys=bo(zl(Zo,(ou(),ote)),181),z2(Ys,(ww(),Ute))&&(Xo=bo(zl(Zo,D8e),107),oK(Xo,vo.a),xbe(Xo,vo.d),Iae(Xo,vo.b),wbe(Xo,vo.c)),co=new Zl,Io=new _s(oo.a);Io.afo.c.length-1;)Jl(fo,new fm(Y9,QCe));co=bo(bs(po,pE),17).a,l5(bo(bs(ro,U6),88))?(po.e.ana(Tl((qu(co,fo.c.length),bo(fo.c[co],42)).b))&&kz((qu(co,fo.c.length),bo(fo.c[co],42)),po.e.a+po.f.a)):(po.e.bna(Tl((qu(co,fo.c.length),bo(fo.c[co],42)).b))&&kz((qu(co,fo.c.length),bo(fo.c[co],42)),po.e.b+po.f.b))}for(vo=G1(ro.b,0);vo.b!=vo.d.c;)po=bo(q1(vo),40),co=bo(bs(po,(by(),pE)),17).a,Fl(po,(fp(),e_),Tl((qu(co,fo.c.length),bo(fo.c[co],42)).a)),Fl(po,ES,Tl((qu(co,fo.c.length),bo(fo.c[co],42)).b));oo.Vg()}function YKt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws;for(ro.o=na(Tl(bs(ro.i,(ou(),V6)))),ro.f=na(Tl(bs(ro.i,ZT))),ro.j=ro.i.b.c.length,Eo=ro.j-1,Wo=0,ro.k=0,ro.n=0,ro.b=f_(Al(Vm,Yl,17,ro.j,0,1)),ro.c=f_(Al(nm,Yl,345,ro.j,7,1)),xo=new _s(ro.i.b);xo.a0&&Jl(ro.q,Io),Jl(ro.p,Io);oo-=fo,Xo=To+oo,Ao+=oo*ro.f,fx(ro.b,Eo,Ql(Xo)),fx(ro.c,Eo,Ao),ro.k=lo.Math.max(ro.k,Xo),ro.n=lo.Math.max(ro.n,Ao),ro.e+=oo,oo+=ws}}function nu(){nu=qo;var ro;gy=new Jz(SB,0),s1=new Jz(PZ,1),p1=new Jz(_1e,2),z1=new Jz(E1e,3),l1=new Jz(k1e,4),I_=(Hu(),new CO((ro=bo(PS(pv),9),new sx(ro,bo(cS(ro,ro.length),9),0)))),AS=p4(mp(s1,As($s(pv,1),My,64,0,[]))),$x=p4(mp(p1,As($s(pv,1),My,64,0,[]))),Jw=p4(mp(z1,As($s(pv,1),My,64,0,[]))),Zx=p4(mp(l1,As($s(pv,1),My,64,0,[]))),M2=p4(mp(s1,As($s(pv,1),My,64,0,[z1]))),E2=p4(mp(p1,As($s(pv,1),My,64,0,[l1]))),RS=p4(mp(s1,As($s(pv,1),My,64,0,[l1]))),cw=p4(mp(s1,As($s(pv,1),My,64,0,[p1]))),ex=p4(mp(z1,As($s(pv,1),My,64,0,[l1]))),Ax=p4(mp(p1,As($s(pv,1),My,64,0,[z1]))),uw=p4(mp(s1,As($s(pv,1),My,64,0,[p1,l1]))),N2=p4(mp(p1,As($s(pv,1),My,64,0,[z1,l1]))),D2=p4(mp(s1,As($s(pv,1),My,64,0,[z1,l1]))),X2=p4(mp(s1,As($s(pv,1),My,64,0,[p1,z1]))),r2=p4(mp(s1,As($s(pv,1),My,64,0,[p1,z1,l1])))}function XKt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru;for(oo.Ug(Kut,1),ws=new Zl,Hl=new Zl,Ao=new _s(ro.b);Ao.a0&&(zs-=Xo),y3e(xo,zs),Io=0,Wo=new _s(xo.a);Wo.a0),Eo.a.Xb(Eo.c=--Eo.b)),To=.4*fo*Io,!vo&&Eo.b0&&(To=(o1(0,oo.length),oo.charCodeAt(0)),To!=64)){if(To==37&&(Po=oo.lastIndexOf("%"),Ao=!1,Po!=0&&(Po==Wo-1||(Ao=(o1(Po+1,oo.length),oo.charCodeAt(Po+1)==46))))){if(xo=(Bm(1,Po,oo.length),oo.substr(1,Po-1)),zs=Iu("%",xo)?null:R3e(xo),fo=0,Ao)try{fo=Ww((o1(Po+2,oo.length+1),oo.substr(Po+2)),Ym,q0)}catch(Ys){throw Ys=$p(Ys),Hs(Ys,130)?(Eo=Ys,Cs(new PX(Eo))):Cs(Ys)}for(Ss=rEe(ro.Gh());Ss.Ob();)if(Zo=hQ(Ss),Hs(Zo,519)&&(po=bo(Zo,598),Ls=po.d,(zs==null?Ls==null:Iu(zs,Ls))&&fo--==0))return po;return null}if(Io=oo.lastIndexOf("."),Xo=Io==-1?oo:(Bm(0,Io,oo.length),oo.substr(0,Io)),co=0,Io!=-1)try{co=Ww((o1(Io+1,oo.length+1),oo.substr(Io+1)),Ym,q0)}catch(Ys){if(Ys=$p(Ys),Hs(Ys,130))Xo=oo;else throw Cs(Ys)}for(Xo=Iu("%",Xo)?null:R3e(Xo),ws=rEe(ro.Gh());ws.Ob();)if(Zo=hQ(ws),Hs(Zo,197)&&(vo=bo(Zo,197),Rs=vo.xe(),(Xo==null?Rs==null:Iu(Xo,Rs))&&co--==0))return vo;return null}return Blt(ro,oo)}function iYt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls;for(Io=new H1,To=new ZC,fo=new _s(ro.a.a.b);fo.aoo.d.c){if(Xo=ro.c[oo.a.d],Ss=ro.c[Po.a.d],Xo==Ss)continue;mS(sS(oS(aS(iS(new Lx,1),100),Xo),Ss))}}}}}function oYt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl;if(Wo=bo(bo(Q0(ro.r,oo),21),87),oo==(nu(),p1)||oo==l1){Glt(ro,oo);return}for(vo=oo==s1?(l6(),LV):(l6(),BV),Ys=oo==s1?(R2(),ZS):(R2(),wS),co=bo(Rv(ro.b,oo),127),fo=co.i,po=fo.c+E9(As($s(Am,1),Iv,28,15,[co.n.b,ro.C.b,ro.k])),Rs=fo.c+fo.b-E9(As($s(Am,1),Iv,28,15,[co.n.c,ro.C.c,ro.k])),xo=qye(oxe(vo),ro.t),Ls=oo==s1?am:Tp,Po=Wo.Kc();Po.Ob();)Ao=bo(Po.Pb(),117),!(!Ao.c||Ao.c.d.c.length<=0)&&(Ss=Ao.b.Mf(),ws=Ao.e,Xo=Ao.c,Zo=Xo.i,Zo.b=(To=Xo.n,Xo.e.a+To.b+To.c),Zo.a=(Eo=Xo.n,Xo.e.b+Eo.d+Eo.a),kH(Ys,sTe),Xo.f=Ys,GS(Xo,(iw(),yS)),Zo.c=ws.a-(Zo.b-Ss.a)/2,Nl=lo.Math.min(po,ws.a),Hl=lo.Math.max(Rs,ws.a+Ss.a),Zo.cHl&&(Zo.c=Hl-Zo.b),Jl(xo.d,new Nce(Zo,QEe(xo,Zo))),Ls=oo==s1?lo.Math.max(Ls,ws.b+Ao.b.Mf().b):lo.Math.min(Ls,ws.b));for(Ls+=oo==s1?ro.t:-ro.t,zs=mke((xo.e=Ls,xo)),zs>0&&(bo(Rv(ro.b,oo),127).a.b=zs),Io=Wo.Kc();Io.Ob();)Ao=bo(Io.Pb(),117),!(!Ao.c||Ao.c.d.c.length<=0)&&(Zo=Ao.c.i,Zo.c-=Ao.e.a,Zo.d-=Ao.e.b)}function sYt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo;for(oo=new H1,To=new g1(ro);To.e!=To.i.gc();){for(Eo=bo(k1(To),27),co=new Yp,N0(Jpe,Eo,co),Xo=new r_,po=bo(ny(new Ou(null,new GC(new x1(E1(Fq(Eo).a.Kc(),new ko)))),oWe(Xo,rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)])))),85),PZe(co,bo(po.xc((_f(),!0)),16),new G4),fo=bo(ny(X0(bo(po.xc(!1),15).Lc(),new bE),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy]))),15),xo=fo.Kc();xo.Ob();)vo=bo(xo.Pb(),74),Wo=Grt(vo),Wo&&(Ao=bo(Uv(wv(oo.f,Wo)),21),Ao||(Ao=vst(Wo),l2(oo.f,Wo,Ao)),Fm(co,Ao));for(po=bo(ny(new Ou(null,new GC(new x1(E1(T5(Eo).a.Kc(),new ko)))),oWe(Xo,rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy])))),85),PZe(co,bo(po.xc(!0),16),new hw),fo=bo(ny(X0(bo(po.xc(!1),15).Lc(),new Ay),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy]))),15),Po=fo.Kc();Po.Ob();)Io=bo(Po.Pb(),74),Wo=Wrt(Io),Wo&&(Ao=bo(Uv(wv(oo.f,Wo)),21),Ao||(Ao=vst(Wo),l2(oo.f,Wo,Ao)),Fm(co,Ao))}}function aYt(ro,oo){yhe();var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws;if(To=Iy(ro,0)<0,To&&(ro=f4(ro)),Iy(ro,0)==0)switch(oo){case 0:return"0";case 1:return uN;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return Xo=new J4,oo<0?Xo.a+="0E+":Xo.a+="0E",Xo.a+=oo==Ym?"2147483648":""+-oo,Xo.a}Io=18,Po=Al(Rx,nE,28,Io+1,15,1),co=Io,ws=ro;do Ao=ws,ws=$q(ws,10),Po[--co]=s0(tv(48,jx(Ao,nv(ws,10))))&em;while(Iy(ws,0)!=0);if(po=jx(jx(jx(Io,co),oo),1),oo==0)return To&&(Po[--co]=45),zx(Po,co,Io-co);if(oo>0&&Iy(po,-6)>=0){if(Iy(po,0)>=0){for(vo=co+s0(po),Eo=Io-1;Eo>=vo;Eo--)Po[Eo+1]=Po[Eo];return Po[++vo]=46,To&&(Po[--co]=45),zx(Po,co,Io-co+1)}for(xo=2;ple(xo,tv(f4(po),1));xo++)Po[--co]=48;return Po[--co]=46,Po[--co]=48,To&&(Po[--co]=45),zx(Po,co,Io-co)}return Zo=co+1,fo=Io,Wo=new t9,To&&(Wo.a+="-"),fo-Zo>=1?(u3(Wo,Po[co]),Wo.a+=".",Wo.a+=zx(Po,co+1,Io-co-1)):Wo.a+=zx(Po,co,Io-co),Wo.a+="E",Iy(po,0)>0&&(Wo.a+="+"),Wo.a+=""+aL(po),Wo.a}function y6(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl;if(Ss=new Vl(ro.g,ro.f),ws=W5e(ro),ws.a=lo.Math.max(ws.a,oo),ws.b=lo.Math.max(ws.b,co),Hl=ws.a/Ss.a,Io=ws.b/Ss.b,Ys=ws.a-Ss.a,To=ws.b-Ss.b,fo)for(xo=kp(ro)?bo(zl(kp(ro),($0(),tC)),88):bo(zl(ro,($0(),tC)),88),Eo=$a(zl(ro,($0(),zF)))===$a((Im(),n2)),Ls=new g1((!ro.c&&(ro.c=new Bl(fw,ro,9,9)),ro.c));Ls.e!=Ls.i.gc();)switch(Rs=bo(k1(Ls),123),zs=bo(zl(Rs,M7),64),zs==(nu(),gy)&&(zs=c3e(Rs,xo),tp(Rs,M7,zs)),zs.g){case 1:Eo||m2(Rs,Rs.i*Hl);break;case 2:m2(Rs,Rs.i+Ys),Eo||b2(Rs,Rs.j*Io);break;case 3:Eo||m2(Rs,Rs.i*Hl),b2(Rs,Rs.j+To);break;case 4:Eo||b2(Rs,Rs.j*Io)}if(d9(ro,ws.a,ws.b),po)for(Wo=new g1((!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),ro.n));Wo.e!=Wo.i.gc();)Po=bo(k1(Wo),135),Xo=Po.i+Po.g/2,Zo=Po.j+Po.f/2,Nl=Xo/Ss.a,Ao=Zo/Ss.b,Nl+Ao>=1&&(Nl-Ao>0&&Zo>=0?(m2(Po,Po.i+Ys),b2(Po,Po.j+To*Ao)):Nl-Ao<0&&Xo>=0&&(m2(Po,Po.i+Ys*Nl),b2(Po,Po.j+To)));return tp(ro,($0(),nC),(Mw(),vo=bo(PS(YF),9),new sx(vo,bo(cS(vo,vo.length),9),0))),new Vl(Hl,Io)}function Zlt(ro){IC(ro,new RT($K(AC(TC($C(CC(new W5,Sx),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new ZP),Sx))),Xl(ro,Sx,uJ,iu(u2t)),Xl(ro,Sx,iA,iu(f2t)),Xl(ro,Sx,X9,iu(s2t)),Xl(ro,Sx,mR,iu(a2t)),Xl(ro,Sx,gR,iu(l2t)),Xl(ro,Sx,vN,iu(o2t)),Xl(ro,Sx,TB,iu(xOe)),Xl(ro,Sx,bN,iu(c2t)),Xl(ro,Sx,$0e,iu(tve)),Xl(ro,Sx,C0e,iu(nve)),Xl(ro,Sx,vJ,iu(_Oe)),Xl(ro,Sx,A0e,iu(rve)),Xl(ro,Sx,R0e,iu(EOe)),Xl(ro,Sx,m6e,iu(kOe)),Xl(ro,Sx,g6e,iu(SOe)),Xl(ro,Sx,f6e,iu(Tte)),Xl(ro,Sx,d6e,iu(Cte)),Xl(ro,Sx,h6e,iu(mG)),Xl(ro,Sx,p6e,iu(TOe)),Xl(ro,Sx,u6e,iu(wOe))}function RZ(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po;if(ro==null)throw Cs(new H_(I2));if(Ao=ro,vo=ro.length,To=!1,vo>0&&(oo=(o1(0,ro.length),ro.charCodeAt(0)),(oo==45||oo==43)&&(ro=(o1(1,ro.length+1),ro.substr(1)),--vo,To=oo==45)),vo==0)throw Cs(new H_(S6+Ao+'"'));for(;ro.length>0&&(o1(0,ro.length),ro.charCodeAt(0)==48);)ro=(o1(1,ro.length+1),ro.substr(1)),--vo;if(vo>(Aat(),v1t)[10])throw Cs(new H_(S6+Ao+'"'));for(po=0;po0&&(Po=-parseInt((Bm(0,fo,ro.length),ro.substr(0,fo)),10),ro=(o1(fo,ro.length+1),ro.substr(fo)),vo-=fo,co=!1);vo>=xo;){if(fo=parseInt((Bm(0,xo,ro.length),ro.substr(0,xo)),10),ro=(o1(xo,ro.length+1),ro.substr(xo)),vo-=xo,co)co=!1;else{if(Iy(Po,Eo)<0)throw Cs(new H_(S6+Ao+'"'));Po=nv(Po,Io)}Po=jx(Po,fo)}if(Iy(Po,0)>0)throw Cs(new H_(S6+Ao+'"'));if(!To&&(Po=f4(Po),Iy(Po,0)<0))throw Cs(new H_(S6+Ao+'"'));return Po}function R3e(ro){khe();var oo,co,fo,po,vo,xo,Eo,To;if(ro==null)return null;if(po=q_(ro,O2(37)),po<0)return ro;for(To=new Bw((Bm(0,po,ro.length),ro.substr(0,po))),oo=Al(Q2,e7,28,4,15,1),Eo=0,fo=0,xo=ro.length;popo+2&&wfe((o1(po+1,ro.length),ro.charCodeAt(po+1)),cMe,uMe)&&wfe((o1(po+2,ro.length),ro.charCodeAt(po+2)),cMe,uMe))if(co=CTt((o1(po+1,ro.length),ro.charCodeAt(po+1)),(o1(po+2,ro.length),ro.charCodeAt(po+2))),po+=2,fo>0?(co&192)==128?oo[Eo++]=co<<24>>24:fo=0:co>=128&&((co&224)==192?(oo[Eo++]=co<<24>>24,fo=2):(co&240)==224?(oo[Eo++]=co<<24>>24,fo=3):(co&248)==240&&(oo[Eo++]=co<<24>>24,fo=4)),fo>0){if(Eo==fo){switch(Eo){case 2:{u3(To,((oo[0]&31)<<6|oo[1]&63)&em);break}case 3:{u3(To,((oo[0]&15)<<12|(oo[1]&63)<<6|oo[2]&63)&em);break}}Eo=0,fo=0}}else{for(vo=0;vo=2){if((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a).i==0)co=(n3(),po=new YM,po),Y1((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a),co);else if((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a).i>1)for(Wo=new _8((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a));Wo.e!=Wo.i.gc();)QL(Wo);Wq(oo,bo(Gs((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a),0),166))}if(Po)for(fo=new g1((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a));fo.e!=fo.i.gc();)for(co=bo(k1(fo),166),Ao=new g1((!co.a&&(co.a=new Qp(tx,co,5)),co.a));Ao.e!=Ao.i.gc();)To=bo(k1(Ao),377),Eo.a=lo.Math.max(Eo.a,To.a),Eo.b=lo.Math.max(Eo.b,To.b);for(xo=new g1((!ro.n&&(ro.n=new Bl(Nv,ro,1,7)),ro.n));xo.e!=xo.i.gc();)vo=bo(k1(xo),135),Io=bo(zl(vo,qF),8),Io&&ix(vo,Io.a,Io.b),Po&&(Eo.a=lo.Math.max(Eo.a,vo.i+vo.g),Eo.b=lo.Math.max(Eo.b,vo.j+vo.f));return Eo}function ect(ro,oo,co,fo,po){var vo,xo,Eo;if(WQe(ro,oo),xo=oo[0],vo=Um(co.c,0),Eo=-1,CEe(co))if(fo>0){if(xo+fo>ro.length)return!1;Eo=oZ((Bm(0,xo+fo,ro.length),ro.substr(0,xo+fo)),oo)}else Eo=oZ(ro,oo);switch(vo){case 71:return Eo=L9(ro,xo,As($s(uu,1),Yl,2,6,[Pct,jct]),oo),po.e=Eo,!0;case 77:return _qt(ro,oo,po,Eo,xo);case 76:return Eqt(ro,oo,po,Eo,xo);case 69:return gPt(ro,oo,xo,po);case 99:return mPt(ro,oo,xo,po);case 97:return Eo=L9(ro,xo,As($s(uu,1),Yl,2,6,["AM","PM"]),oo),po.b=Eo,!0;case 121:return kqt(ro,oo,xo,Eo,co,po);case 100:return Eo<=0?!1:(po.c=Eo,!0);case 83:return Eo<0?!1:ONt(Eo,xo,oo[0],po);case 104:Eo==12&&(Eo=0);case 75:case 72:return Eo<0?!1:(po.f=Eo,po.g=!1,!0);case 107:return Eo<0?!1:(po.f=Eo,po.g=!0,!0);case 109:return Eo<0?!1:(po.j=Eo,!0);case 115:return Eo<0?!1:(po.n=Eo,!0);case 90:if(xoku[To]&&(Ss=To),Po=new _s(ro.a.b);Po.a1;){if(po=mHt(oo),Po=vo.g,Zo=bo(zl(oo,IF),107),ws=na(Tl(zl(oo,Ote))),(!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a).i>1&&na(Tl(zl(oo,(ME(),fve))))!=Tp&&(vo.c+(Zo.b+Zo.c))/(vo.b+(Zo.d+Zo.a))1&&na(Tl(zl(oo,(ME(),uve))))!=Tp&&(vo.c+(Zo.b+Zo.c))/(vo.b+(Zo.d+Zo.a))>ws&&tp(po,(ME(),RA),lo.Math.max(na(Tl(zl(oo,OF))),na(Tl(zl(po,RA)))-na(Tl(zl(oo,uve))))),Xo=new L2e(fo,Io),To=wct(Xo,po,Wo),Ao=To.g,Ao>=Po&&Ao==Ao){for(xo=0;xo<(!po.a&&(po.a=new Bl(F0,po,10,11)),po.a).i;xo++)Git(ro,bo(Gs((!po.a&&(po.a=new Bl(F0,po,10,11)),po.a),xo),27),bo(Gs((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a),xo),27));bZe(oo,Xo),y$t(vo,To.c),b$t(vo,To.b)}--Eo}tp(oo,(ME(),iM),vo.b),tp(oo,DR,vo.c),co.Vg()}function fYt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls;for(oo.Ug("Interactive node layering",1),co=new Zl,Wo=new _s(ro.a);Wo.a=Eo){T1(Ls.b>0),Ls.a.Xb(Ls.c=--Ls.b);break}else Ss.a>To&&(fo?(sm(fo.b,Ss.b),fo.a=lo.Math.max(fo.a,Ss.a),Iw(Ls)):(Jl(Ss.b,Io),Ss.c=lo.Math.min(Ss.c,To),Ss.a=lo.Math.max(Ss.a,Eo),fo=Ss));fo||(fo=new jFe,fo.c=To,fo.a=Eo,S$(Ls,fo),Jl(fo.b,Io))}for(xo=ro.b,Ao=0,Rs=new _s(co);Rs.aXo&&(vo&&(iv(Hl,Wo),iv(ku,Ql(Ao.b-1))),v0=co.b,Op+=Wo+oo,Wo=0,Io=lo.Math.max(Io,co.b+co.c+b1)),m2(Eo,v0),b2(Eo,Op),Io=lo.Math.max(Io,v0+b1+co.c),Wo=lo.Math.max(Wo,Po),v0+=b1+oo;if(Io=lo.Math.max(Io,fo),Qu=Op+Wo+co.a,QuoE,Eu=lo.Math.abs(Wo.b-Zo.b)>oE,(!co&&ku&&Eu||co&&(ku||Eu))&&y0(Ss.a,Ys)),Fm(Ss.a,fo),fo.b==0?Wo=Ys:Wo=(T1(fo.b!=0),bo(fo.c.b.c,8)),QRt(Xo,Po,ws),vJe(po)==ru&&(zm(ru.i)!=po.a&&(ws=new Nm,H5e(ws,zm(ru.i),Ls)),Fl(Ss,Zge,ws)),NFt(Xo,Ss,Ls),Io.a.zc(Xo,Io);ev(Ss,Nl),Om(Ss,ru)}for(Ao=Io.a.ec().Kc();Ao.Ob();)To=bo(Ao.Pb(),18),ev(To,null),Om(To,null);oo.Vg()}function pYt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;for(po=bo(bs(ro,(by(),U6)),88),Io=po==(_g(),qv)||po==ey?A_:ey,co=bo(ny(X0(new Ou(null,new Du(ro.b,16)),new nie),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),To=bo(ny(Kv(co.Oc(),new aBe(oo)),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy]))),15),To.Gc(bo(ny(Kv(co.Oc(),new lBe(oo)),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy]))),16)),To.jd(new cBe(Io)),Wo=new e4(new uBe(po)),fo=new H1,Eo=To.Kc();Eo.Ob();)xo=bo(Eo.Pb(),240),Ao=bo(xo.a,40),lu(au(xo.c))?(Wo.a.zc(Ao,(_f(),M3))==null,new xO(Wo.a.Zc(Ao,!1)).a.gc()>0&&N0(fo,Ao,bo(new xO(Wo.a.Zc(Ao,!1)).a.Vc(),40)),new xO(Wo.a.ad(Ao,!0)).a.gc()>1&&N0(fo,ktt(Wo,Ao),Ao)):(new xO(Wo.a.Zc(Ao,!1)).a.gc()>0&&(vo=bo(new xO(Wo.a.Zc(Ao,!1)).a.Vc(),40),$a(vo)===$a(Uv(wv(fo.f,Ao)))&&bo(bs(Ao,(fp(),Lme)),15).Fc(vo)),new xO(Wo.a.ad(Ao,!0)).a.gc()>1&&(Po=ktt(Wo,Ao),$a(Uv(wv(fo.f,Po)))===$a(Ao)&&bo(bs(Po,(fp(),Lme)),15).Fc(Ao)),Wo.a.Bc(Ao)!=null)}function tct(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;if(ro.gc()==1)return bo(ro.Xb(0),235);if(ro.gc()<=0)return new RX;for(po=ro.Kc();po.Ob();){for(co=bo(po.Pb(),235),Zo=0,Io=q0,Po=q0,To=Ym,Ao=Ym,Xo=new _s(co.e);Xo.aEo&&(zs=0,Ys+=xo+Rs,xo=0),jVt(ws,co,zs,Ys),oo=lo.Math.max(oo,zs+Ss.a),xo=lo.Math.max(xo,Ss.b),zs+=Ss.a+Rs;return ws}function gYt(ro){l3e();var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss;if(ro==null||(vo=zX(ro),Zo=qIt(vo),Zo%4!=0))return null;if(ws=Zo/4|0,ws==0)return Al(Q2,e7,28,0,15,1);for(Po=null,oo=0,co=0,fo=0,po=0,xo=0,Eo=0,To=0,Ao=0,Xo=0,Wo=0,Io=0,Po=Al(Q2,e7,28,ws*3,15,1);Xo>4)<<24>>24,Po[Wo++]=((co&15)<<4|fo>>2&15)<<24>>24,Po[Wo++]=(fo<<6|po)<<24>>24}return!Mz(xo=vo[Io++])||!Mz(Eo=vo[Io++])?null:(oo=M_[xo],co=M_[Eo],To=vo[Io++],Ao=vo[Io++],M_[To]==-1||M_[Ao]==-1?To==61&&Ao==61?co&15?null:(Ss=Al(Q2,e7,28,Xo*3+1,15,1),jy(Po,0,Ss,0,Xo*3),Ss[Wo]=(oo<<2|co>>4)<<24>>24,Ss):To!=61&&Ao==61?(fo=M_[To],fo&3?null:(Ss=Al(Q2,e7,28,Xo*3+2,15,1),jy(Po,0,Ss,0,Xo*3),Ss[Wo++]=(oo<<2|co>>4)<<24>>24,Ss[Wo]=((co&15)<<4|fo>>2&15)<<24>>24,Ss)):null:(fo=M_[To],po=M_[Ao],Po[Wo++]=(oo<<2|co>>4)<<24>>24,Po[Wo++]=((co&15)<<4|fo>>2&15)<<24>>24,Po[Wo++]=(fo<<6|po)<<24>>24,Po))}function mYt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl;for(oo.Ug(Kut,1),Zo=bo(bs(ro,(ou(),M5)),223),po=new _s(ro.b);po.a=2){for(ws=!0,Wo=new _s(vo.j),co=bo(Es(Wo),12),Xo=null;Wo.a0)if(fo=Po.gc(),Ao=dm(lo.Math.floor((fo+1)/2))-1,po=dm(lo.Math.ceil((fo+1)/2))-1,oo.o==C_)for(Io=po;Io>=Ao;Io--)oo.a[Ys.p]==Ys&&(ws=bo(Po.Xb(Io),42),Zo=bo(ws.a,10),!jS(co,ws.b)&&Xo>ro.b.e[Zo.p]&&(oo.a[Zo.p]=Ys,oo.g[Ys.p]=oo.g[Zo.p],oo.a[Ys.p]=oo.g[Ys.p],oo.f[oo.g[Ys.p].p]=(_f(),!!(lu(oo.f[oo.g[Ys.p].p])&Ys.k==(a1(),km))),Xo=ro.b.e[Zo.p]));else for(Io=Ao;Io<=po;Io++)oo.a[Ys.p]==Ys&&(Rs=bo(Po.Xb(Io),42),Ss=bo(Rs.a,10),!jS(co,Rs.b)&&Xo0&&(po=bo(cu(Ss.c.a,Hl-1),10),xo=ro.i[po.p],ku=lo.Math.ceil(p9(ro.n,po,Ss)),vo=Nl.a.e-Ss.d.d-(xo.a.e+po.o.b+po.d.a)-ku),Ao=Tp,Hl0&&ru.a.e.e-ru.a.a-(ru.b.e.e-ru.b.a)<0,Zo=zs.a.e.e-zs.a.a-(zs.b.e.e-zs.b.a)<0&&ru.a.e.e-ru.a.a-(ru.b.e.e-ru.b.a)>0,Xo=zs.a.e.e+zs.b.aru.b.e.e+ru.a.a,Ys=0,!ws&&!Zo&&(Wo?vo+Po>0?Ys=Po:Ao-fo>0&&(Ys=fo):Xo&&(vo+Eo>0?Ys=Eo:Ao-Ls>0&&(Ys=Ls))),Nl.a.e+=Ys,Nl.b&&(Nl.d.e+=Ys),!1))}function rct(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;if(fo=new ax(oo.Lf().a,oo.Lf().b,oo.Mf().a,oo.Mf().b),po=new x8,ro.c)for(xo=new _s(oo.Rf());xo.aAo&&(fo.a+=Sqe(Al(Rx,nE,28,-Ao,15,1))),fo.a+="Is",q_(To,O2(32))>=0)for(po=0;po=fo.o.b/2}else Ls=!Po;Ls?(Rs=bo(bs(fo,(Wl(),NR)),15),Rs?Wo?vo=Rs:(po=bo(bs(fo,$R),15),po?Rs.gc()<=po.gc()?vo=Rs:vo=po:(vo=new Zl,Fl(fo,$R,vo))):(vo=new Zl,Fl(fo,NR,vo))):(po=bo(bs(fo,(Wl(),$R)),15),po?Po?vo=po:(Rs=bo(bs(fo,NR),15),Rs?po.gc()<=Rs.gc()?vo=po:vo=Rs:(vo=new Zl,Fl(fo,NR,vo))):(vo=new Zl,Fl(fo,$R,vo))),vo.Fc(ro),Fl(ro,(Wl(),zee),co),oo.d==co?(Om(oo,null),co.e.c.length+co.g.c.length==0&&uy(co,null),MOt(co)):(ev(oo,null),co.e.c.length+co.g.c.length==0&&uy(co,null)),Fw(oo.a)}function wYt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1,v0,Op;for(co.Ug("MinWidth layering",1),Xo=oo.b,ru=oo.a,Op=bo(bs(oo,(ou(),$8e)),17).a,Eo=bo(bs(oo,A8e),17).a,ro.b=na(Tl(bs(oo,_S))),ro.d=Tp,Ys=new _s(ru);Ys.a0?(Ao=0,Ss&&(Ao+=Eo),Ao+=(Eu-1)*xo,zs&&(Ao+=Eo),ku&&zs&&(Ao=lo.Math.max(Ao,jHt(zs,xo,Ls,ru))),Ao=ro.a&&(fo=nWt(ro,Ls),Io=lo.Math.max(Io,fo.b),Ys=lo.Math.max(Ys,fo.d),Jl(Eo,new fm(Ls,fo)));for(ku=new Zl,Ao=0;Ao0),Ss.a.Xb(Ss.c=--Ss.b),Eu=new Vy(ro.b),S$(Ss,Eu),T1(Ss.b0){for(Wo=Io<100?null:new e3(Io),Ao=new uEe(oo),Zo=Ao.g,Rs=Al(Q1,E0,28,Io,15,1),fo=0,Ys=new n6(Io),po=0;po=0;)if(Xo!=null?U0(Xo,Zo[To]):$a(Xo)===$a(Zo[To])){Rs.length<=fo&&(Ss=Rs,Rs=Al(Q1,E0,28,2*Rs.length,15,1),jy(Ss,0,Rs,0,fo)),Rs[fo++]=po,Y1(Ys,Zo[To]);break e}if(Xo=Xo,$a(Xo)===$a(Eo))break}}if(Ao=Ys,Zo=Ys.g,Io=fo,fo>Rs.length&&(Ss=Rs,Rs=Al(Q1,E0,28,fo,15,1),jy(Ss,0,Rs,0,fo)),fo>0){for(zs=!0,vo=0;vo=0;)J8(ro,Rs[xo]);if(fo!=Io){for(po=Io;--po>=fo;)J8(Ao,po);Ss=Rs,Rs=Al(Q1,E0,28,fo,15,1),jy(Ss,0,Rs,0,fo)}oo=Ao}}}else for(oo=BDt(ro,oo),po=ro.i;--po>=0;)oo.Hc(ro.g[po])&&(J8(ro,po),zs=!0);if(zs){if(Rs!=null){for(co=oo.gc(),Po=co==1?gL(ro,4,oo.Kc().Pb(),null,Rs[0],ws):gL(ro,6,oo,Rs,Rs[0],ws),Wo=co<100?null:new e3(co),po=oo.Kc();po.Ob();)Xo=po.Pb(),Wo=Zwe(ro,bo(Xo,76),Wo);Wo?(Wo.nj(Po),Wo.oj()):W0(ro.e,Po)}else{for(Wo=H5t(oo.gc()),po=oo.Kc();po.Ob();)Xo=po.Pb(),Wo=Zwe(ro,bo(Xo,76),Wo);Wo&&Wo.oj()}return!0}else return!1}function _Yt(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs;for(co=new ynt(oo),co.a||QVt(oo),Ao=Yqt(oo),To=new ZC,Ss=new Est,ws=new _s(oo.a);ws.a0||co.o==C_&&po=co}function kYt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1;for(zs=oo,Ls=new ZC,Ys=new ZC,Io=t6(zs,Z6e),fo=new SUe(ro,co,Ls,Ys),GFt(fo.a,fo.b,fo.c,fo.d,Io),To=(ru=Ls.i,ru||(Ls.i=new v9(Ls,Ls.c))),Eu=To.Kc();Eu.Ob();)for(ku=bo(Eu.Pb(),166),po=bo(Q0(Ls,ku),21),ws=po.Kc();ws.Ob();)if(Zo=ws.Pb(),Nl=bo(k9(ro.d,Zo),166),Nl)Eo=(!ku.e&&(ku.e=new Wu(Sp,ku,10,9)),ku.e),Y1(Eo,Nl);else throw xo=d5(zs,cE),Wo=xdt+Zo+Sdt+xo,Xo=Wo+CN,Cs(new z_(Xo));for(Ao=(Hl=Ys.i,Hl||(Ys.i=new v9(Ys,Ys.c))),Qu=Ao.Kc();Qu.Ob();)for(Yu=bo(Qu.Pb(),166),vo=bo(Q0(Ys,Yu),21),Rs=vo.Kc();Rs.Ob();)if(Ss=Rs.Pb(),Nl=bo(k9(ro.d,Ss),166),Nl)Po=(!Yu.g&&(Yu.g=new Wu(Sp,Yu,9,10)),Yu.g),Y1(Po,Nl);else throw xo=d5(zs,cE),Wo=xdt+Ss+Sdt+xo,Xo=Wo+CN,Cs(new z_(Xo));!co.b&&(co.b=new Wu(D1,co,4,7)),co.b.i!=0&&(!co.c&&(co.c=new Wu(D1,co,5,8)),co.c.i!=0)&&(!co.b&&(co.b=new Wu(D1,co,4,7)),co.b.i<=1&&(!co.c&&(co.c=new Wu(D1,co,5,8)),co.c.i<=1))&&(!co.a&&(co.a=new Bl(Sp,co,6,6)),co.a).i==1&&(b1=bo(Gs((!co.a&&(co.a=new Bl(Sp,co,6,6)),co.a),0),166),!cde(b1)&&!ude(b1)&&(nQ(b1,bo(Gs((!co.b&&(co.b=new Wu(D1,co,4,7)),co.b),0),84)),rQ(b1,bo(Gs((!co.c&&(co.c=new Wu(D1,co,5,8)),co.c),0),84))))}function TYt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu;for(zs=ro.a,Ys=0,Nl=zs.length;Ys0?(Po=bo(cu(Wo.c.a,xo-1),10),ku=p9(ro.b,Wo,Po),Ss=Wo.n.b-Wo.d.d-(Po.n.b+Po.o.b+Po.d.a+ku)):Ss=Wo.n.b-Wo.d.d,Ao=lo.Math.min(Ss,Ao),xo1&&(xo=lo.Math.min(xo,lo.Math.abs(bo(wx(Eo.a,1),8).b-Io.b)))));else for(ws=new _s(oo.j);ws.apo&&(vo=Wo.a-po,xo=q0,fo.c.length=0,po=Wo.a),Wo.a>=po&&(Ju(fo.c,Eo),Eo.a.b>1&&(xo=lo.Math.min(xo,lo.Math.abs(bo(wx(Eo.a,Eo.a.b-2),8).b-Wo.b)))));if(fo.c.length!=0&&vo>oo.o.a/2&&xo>oo.o.b/2){for(Xo=new Py,uy(Xo,oo),hm(Xo,(nu(),s1)),Xo.n.a=oo.o.a/2,Rs=new Py,uy(Rs,oo),hm(Rs,z1),Rs.n.a=oo.o.a/2,Rs.n.b=oo.o.b,To=new _s(fo);To.a=Ao.b?ev(Eo,Rs):ev(Eo,Xo)):(Ao=bo(mTt(Eo.a),8),Ss=Eo.a.b==0?u_(Eo.c):bo(lS(Eo.a),8),Ss.b>=Ao.b?Om(Eo,Rs):Om(Eo,Xo)),Po=bo(bs(Eo,(ou(),Hv)),75),Po&&j$(Po,Ao,!0);oo.n.a=po-oo.o.a/2}}function $Yt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;for(Eo=G1(ro.b,0);Eo.b!=Eo.d.c;)if(xo=bo(q1(Eo),40),!Iu(xo.c,pJ))for(Ao=Jjt(xo,ro),oo==(_g(),qv)||oo==ey?Up(Ao,new aie):Up(Ao,new ZW),To=Ao.c.length,fo=0;fo=0?Xo=Y8(Eo):Xo=vq(Y8(Eo)),ro.qf(YN,Xo)),Ao=new Nm,Wo=!1,ro.pf(H6)?(Swe(Ao,bo(ro.of(H6),8)),Wo=!0):Bkt(Ao,xo.a/2,xo.b/2),Xo.g){case 4:Fl(Io,_2,(yx(),P3)),Fl(Io,qee,(ET(),u7)),Io.o.b=xo.b,ws<0&&(Io.o.a=-ws),hm(Po,(nu(),p1)),Wo||(Ao.a=xo.a),Ao.a-=xo.a;break;case 2:Fl(Io,_2,(yx(),yA)),Fl(Io,qee,(ET(),HN)),Io.o.b=xo.b,ws<0&&(Io.o.a=-ws),hm(Po,(nu(),l1)),Wo||(Ao.a=0);break;case 1:Fl(Io,GT,(b5(),d7)),Io.o.a=xo.a,ws<0&&(Io.o.b=-ws),hm(Po,(nu(),z1)),Wo||(Ao.b=xo.b),Ao.b-=xo.b;break;case 3:Fl(Io,GT,(b5(),TR)),Io.o.a=xo.a,ws<0&&(Io.o.b=-ws),hm(Po,(nu(),s1)),Wo||(Ao.b=0)}if(Swe(Po.n,Ao),Fl(Io,H6,Ao),oo==iC||oo==YE||oo==n2){if(Zo=0,oo==iC&&ro.pf(O4))switch(Xo.g){case 1:case 2:Zo=bo(ro.of(O4),17).a;break;case 3:case 4:Zo=-bo(ro.of(O4),17).a}else switch(Xo.g){case 4:case 2:Zo=vo.b,oo==YE&&(Zo/=po.b);break;case 1:case 3:Zo=vo.a,oo==YE&&(Zo/=po.a)}Fl(Io,B6,Zo)}return Fl(Io,_y,Xo),Io}function AYt(){Uye();function ro(fo){var po=this;this.dispatch=function(vo){var xo=vo.data;switch(xo.cmd){case"algorithms":var Eo=gke((Hu(),new fv(new L0(X3.b))));fo.postMessage({id:xo.id,data:Eo});break;case"categories":var To=gke((Hu(),new fv(new L0(X3.c))));fo.postMessage({id:xo.id,data:To});break;case"options":var Ao=gke((Hu(),new fv(new L0(X3.d))));fo.postMessage({id:xo.id,data:Ao});break;case"register":IUt(xo.algorithms),fo.postMessage({id:xo.id});break;case"layout":aWt(xo.graph,xo.layoutOptions||{},xo.options||{}),fo.postMessage({id:xo.id,data:xo.graph});break}},this.saveDispatch=function(vo){try{po.dispatch(vo)}catch(xo){fo.postMessage({id:vo.data.id,error:xo})}}}function oo(fo){var po=this;this.dispatcher=new ro({postMessage:function(vo){po.onmessage({data:vo})}}),this.postMessage=function(vo){setTimeout(function(){po.dispatcher.saveDispatch({data:vo})},0)}}if(typeof document===v1e&&typeof self!==v1e){var co=new ro(self);self.onmessage=co.saveDispatch}else typeof io!==v1e&&io.exports&&(Object.defineProperty(so,"__esModule",{value:!0}),io.exports={default:oo,Worker:oo})}function cct(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;for(Io=new k5(co),Qv(Io,oo),Fl(Io,(Wl(),Z0),oo),Io.o.a=oo.g,Io.o.b=oo.f,Io.n.a=oo.i,Io.n.b=oo.j,Jl(co.a,Io),N0(ro.a,oo,Io),((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a).i!=0||lu(au(zl(oo,(ou(),SA)))))&&Fl(Io,E7e,(_f(),!0)),Ao=bo(bs(co,Jy),21),Po=bo(bs(Io,(ou(),Pp)),101),Po==(Im(),U3)?Fl(Io,Pp,O_):Po!=O_&&Ao.Fc((Sv(),GN)),Wo=0,fo=bo(bs(co,Qw),88),To=new g1((!oo.c&&(oo.c=new Bl(fw,oo,9,9)),oo.c));To.e!=To.i.gc();)Eo=bo(k1(To),123),po=kp(oo),($a(zl(po,GE))!==$a((Q_(),I4))||$a(zl(po,UT))===$a((y4(),zN))||$a(zl(po,UT))===$a((y4(),jN))||lu(au(zl(po,P6)))||$a(zl(po,wA))!==$a((CT(),pA))||$a(zl(po,j3))===$a((qx(),G6))||$a(zl(po,j3))===$a((qx(),CA))||$a(zl(po,YT))===$a((E4(),JN))||$a(zl(po,YT))===$a((E4(),eM)))&&!lu(au(zl(oo,Xee)))&&tp(Eo,ip,Ql(Wo++)),lu(au(zl(Eo,QT)))||PKt(ro,Eo,Io,Ao,fo,Po);for(xo=new g1((!oo.n&&(oo.n=new Bl(Nv,oo,1,7)),oo.n));xo.e!=xo.i.gc();)vo=bo(k1(xo),135),!lu(au(zl(vo,QT)))&&vo.a&&Jl(Io.b,Lfe(vo));return lu(au(bs(Io,fF)))&&Ao.Fc((Sv(),Fee)),lu(au(bs(Io,ete)))&&(Ao.Fc((Sv(),Pee)),Ao.Fc(oF),Fl(Io,Pp,O_)),Io}function Ihe(ro,oo,co,fo,po,vo,xo){var Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1,v0,Op;for(ws=0,Yu=0,Ao=new _s(ro.b);Ao.aws&&(vo&&(iv(Hl,Xo),iv(ku,Ql(Io.b-1)),Jl(ro.d,Zo),Eo.c.length=0),v0=co.b,Op+=Xo+oo,Xo=0,Po=lo.Math.max(Po,co.b+co.c+b1)),Ju(Eo.c,To),fnt(To,v0,Op),Po=lo.Math.max(Po,v0+b1+co.c),Xo=lo.Math.max(Xo,Wo),v0+=b1+oo,Zo=To;if(sm(ro.a,Eo),Jl(ro.d,bo(cu(Eo,Eo.c.length-1),163)),Po=lo.Math.max(Po,fo),Qu=Op+Xo+co.a,Qupo.d.d+po.d.a?Io.f.d=!0:(Io.f.d=!0,Io.f.a=!0))),fo.b!=fo.d.c&&(oo=co);Io&&(vo=bo(m1(ro.f,xo.d.i),60),oo.bvo.d.d+vo.d.a?Io.f.d=!0:(Io.f.d=!0,Io.f.a=!0))}for(Eo=new x1(E1(Sm(Xo).a.Kc(),new ko));W1(Eo);)xo=bo(R1(Eo),18),xo.a.b!=0&&(oo=bo(lS(xo.a),8),xo.d.j==(nu(),s1)&&(Ss=new fB(oo,new Vl(oo.a,po.d.d),po,xo),Ss.f.a=!0,Ss.a=xo.d,Ju(ws.c,Ss)),xo.d.j==z1&&(Ss=new fB(oo,new Vl(oo.a,po.d.d+po.d.a),po,xo),Ss.f.d=!0,Ss.a=xo.d,Ju(ws.c,Ss)))}return ws}function DYt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;for(To=new Zl,Po=oo.length,xo=TEe(co),Ao=0;Ao=Zo&&(Ls>Zo&&(Xo.c.length=0,Zo=Ls),Ju(Xo.c,xo));Xo.c.length!=0&&(Wo=bo(cu(Xo,qQ(oo,Xo.c.length)),131),Qu.a.Bc(Wo)!=null,Wo.s=ws++,E4e(Wo,Eu,Hl),Xo.c.length=0)}for(Ys=ro.c.length+1,Eo=new _s(ro);Eo.aYu.s&&(Iw(co),A2(Yu.i,fo),fo.c>0&&(fo.a=Yu,Jl(Yu.t,fo),fo.b=ru,Jl(ru.i,fo)))}function uct(ro,oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu;for(ws=new o2(oo.b),Ys=new o2(oo.b),Wo=new o2(oo.b),ku=new o2(oo.b),Ss=new o2(oo.b),ru=G1(oo,0);ru.b!=ru.d.c;)for(Nl=bo(q1(ru),12),Eo=new _s(Nl.g);Eo.a0,Rs=Nl.g.c.length>0,Ao&&Rs?Ju(Wo.c,Nl):Ao?Ju(ws.c,Nl):Rs&&Ju(Ys.c,Nl);for(Zo=new _s(ws);Zo.aLs.nh()-Ao.b&&(Wo=Ls.nh()-Ao.b),Xo>Ls.oh()-Ao.d&&(Xo=Ls.oh()-Ao.d),Io0){for(zs=G1(ro.f,0);zs.b!=zs.d.c;)Ls=bo(q1(zs),10),Ls.p+=Wo-ro.e;q5e(ro),Fw(ro.f),F4e(ro,fo,Xo)}else{for(y0(ro.f,Xo),Xo.p=fo,ro.e=lo.Math.max(ro.e,fo),vo=new x1(E1(Sm(Xo).a.Kc(),new ko));W1(vo);)po=bo(R1(vo),18),!po.c.i.c&&po.c.i.k==(a1(),Ly)&&(y0(ro.f,po.c.i),po.c.i.p=fo-1);ro.c=fo}else q5e(ro),Fw(ro.f),fo=0,W1(new x1(E1(Sm(Xo).a.Kc(),new ko)))?(Wo=0,Wo=mnt(Wo,Xo),fo=Wo+2,F4e(ro,fo,Xo)):(y0(ro.f,Xo),Xo.p=0,ro.e=lo.Math.max(ro.e,0),ro.b=bo(cu(ro.d.b,0),30),ro.c=0);for(ro.f.b==0||q5e(ro),ro.d.a.c.length=0,Rs=new Zl,Ao=new _s(ro.d.b);Ao.a=48&&oo<=57){for(fo=oo-48;po=48&&oo<=57;)if(fo=fo*10+oo-48,fo<0)throw Cs(new p0(m0((c0(),f$e))))}else throw Cs(new p0(m0((c0(),Kdt))));if(co=fo,oo==44){if(po>=ro.j)throw Cs(new p0(m0((c0(),Xdt))));if((oo=Um(ro.i,po++))>=48&&oo<=57){for(co=oo-48;po=48&&oo<=57;)if(co=co*10+oo-48,co<0)throw Cs(new p0(m0((c0(),f$e))));if(fo>co)throw Cs(new p0(m0((c0(),Qdt))))}else co=-1}if(oo!=125)throw Cs(new p0(m0((c0(),Ydt))));ro.bm(po)?(vo=(H0(),H0(),new R$(9,vo)),ro.d=po+1):(vo=(H0(),H0(),new R$(3,vo)),ro.d=po),vo.Om(fo),vo.Nm(co),z0(ro)}}return vo}function zYt(ro){var oo,co,fo,po,vo;switch(co=bo(bs(ro,(Wl(),Jy)),21),oo=mY(ypt),po=bo(bs(ro,(ou(),xA)),346),po==(x5(),B4)&&Vw(oo,wpt),lu(au(bs(ro,ame)))?_0(oo,(Km(),xS),(rv(),mge)):_0(oo,(Km(),zy),(rv(),mge)),bs(ro,(MX(),LF))!=null&&Vw(oo,xpt),(lu(au(bs(ro,k8e)))||lu(au(bs(ro,x8e))))&&q2(oo,(Km(),Jv),(rv(),w9e)),bo(bs(ro,Qw),88).g){case 2:case 3:case 4:q2(_0(oo,(Km(),xS),(rv(),S9e)),Jv,x9e)}switch(co.Hc((Sv(),Fee))&&q2(_0(_0(oo,(Km(),xS),(rv(),y9e)),Qy,v9e),Jv,b9e),$a(bs(ro,j3))!==$a((qx(),dte))&&_0(oo,(Km(),zy),(rv(),B9e)),co.Hc(jee)&&(_0(oo,(Km(),xS),(rv(),z9e)),_0(oo,qE,P9e),_0(oo,zy,j9e)),$a(bs(ro,Kee))!==$a((WI(),iF))&&$a(bs(ro,M5))!==$a((S5(),OG))&&q2(oo,(Km(),Jv),(rv(),O9e)),lu(au(bs(ro,_8e)))&&_0(oo,(Km(),zy),(rv(),R9e)),lu(au(bs(ro,rme)))&&_0(oo,(Km(),zy),(rv(),H9e)),eHt(ro)&&($a(bs(ro,xA))===$a(B4)?fo=bo(bs(ro,rG),299):fo=bo(bs(ro,nme),299),vo=fo==(SI(),zge)?(rv(),F9e):(rv(),G9e),_0(oo,(Km(),Qy),vo)),bo(bs(ro,Q8e),388).g){case 1:_0(oo,(Km(),Qy),(rv(),q9e));break;case 2:q2(_0(_0(oo,(Km(),zy),(rv(),h9e)),Qy,p9e),Jv,g9e)}return $a(bs(ro,GE))!==$a((Q_(),I4))&&_0(oo,(Km(),zy),(rv(),V9e)),oo}function pct(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs;if(p2(ro.a,oo)){if(jS(bo(m1(ro.a,oo),49),co))return 1}else N0(ro.a,oo,new Yp);if(p2(ro.a,co)){if(jS(bo(m1(ro.a,co),49),oo))return-1}else N0(ro.a,co,new Yp);if(p2(ro.e,oo)){if(jS(bo(m1(ro.e,oo),49),co))return-1}else N0(ro.e,oo,new Yp);if(p2(ro.e,co)){if(jS(bo(m1(ro.a,co),49),oo))return 1}else N0(ro.e,co,new Yp);if(ro.c==(Q_(),_me)||!gp(oo,(Wl(),ip))||!gp(co,(Wl(),ip))){for(Po=null,Ao=new _s(oo.j);Ao.axo?JI(ro,oo,co):JI(ro,co,oo),poxo?1:0}return fo=bo(bs(oo,(Wl(),ip)),17).a,vo=bo(bs(co,ip),17).a,fo>vo?JI(ro,oo,co):JI(ro,co,oo),fovo?1:0}function w6(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss;if(co==null)return null;if(ro.a!=oo.jk())throw Cs(new i1(kN+oo.xe()+$6));if(Hs(oo,469)){if(Ss=Iqt(bo(oo,685),co),!Ss)throw Cs(new i1(V0e+co+"' is not a valid enumerator of '"+oo.xe()+"'"));return Ss}switch(g4((W2(),Gm),oo).Nl()){case 2:{co=Ky(co,!1);break}case 3:{co=Ky(co,!0);break}}if(fo=g4(Gm,oo).Jl(),fo)return fo.jk().wi().ti(fo,co);if(Wo=g4(Gm,oo).Ll(),Wo){for(Ss=new Zl,Ao=Cfe(co),Io=0,Po=Ao.length;Io1)for(Zo=new _8((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a));Zo.e!=Zo.i.gc();)QL(Zo);for(xo=bo(Gs((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a),0),166),Ss=v0,v0>Nl+Ys?Ss=Nl+Ys:v0Hl+ws?Rs=Hl+ws:OpNl-Ys&&SsHl-ws&&Rsv0+b1?ku=v0+b1:NlOp+ru?Eu=Op+ru:Hlv0-b1&&kuOp-ru&&Euco&&(Wo=co-1),Xo=V4+yw(oo,24)*cV*Po-Po/2,Xo<0?Xo=1:Xo>fo&&(Xo=fo-1),po=(n3(),To=new vO,To),XX(po,Wo),YX(po,Xo),Y1((!xo.a&&(xo.a=new Qp(tx,xo,5)),xo.a),po)}function gct(ro){IC(ro,new RT(AC(TC($C(CC(new W5,Sw),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new fU))),Xl(ro,Sw,pR,1.3),Xl(ro,Sw,mN,(_f(),!1)),Xl(ro,Sw,_6,GOe),Xl(ro,Sw,iA,15),Xl(ro,Sw,cJ,iu(I2t)),Xl(ro,Sw,X9,iu(D2t)),Xl(ro,Sw,mR,iu(B2t)),Xl(ro,Sw,gR,iu(F2t)),Xl(ro,Sw,vN,iu(M2t)),Xl(ro,Sw,TB,iu(hve)),Xl(ro,Sw,bN,iu(P2t)),Xl(ro,Sw,k6e,iu(YOe)),Xl(ro,Sw,T6e,iu(KOe)),Xl(ro,Sw,E6e,iu(gve)),Xl(ro,Sw,_6e,iu(XOe)),Xl(ro,Sw,C6e,iu(VOe)),Xl(ro,Sw,$6e,iu(pve)),Xl(ro,Sw,A6e,iu(qOe)),Xl(ro,Sw,R6e,iu(UOe)),Xl(ro,Sw,kB,iu(HOe)),Xl(ro,Sw,fJ,iu(N2t)),Xl(ro,Sw,x6e,iu(bG)),Xl(ro,Sw,w6e,iu(zOe)),Xl(ro,Sw,S6e,iu(yG)),Xl(ro,Sw,y6e,iu(WOe))}function Mhe(ro,oo){yhe();var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1,v0;if(ku=ro.e,Zo=ro.d,po=ro.a,ku==0)switch(oo){case 0:return"0";case 1:return uN;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return Hl=new J4,oo<0?Hl.a+="0E+":Hl.a+="0E",Hl.a+=-oo,Hl.a}if(zs=Zo*10+1+7,Ys=Al(Rx,nE,28,zs+1,15,1),co=zs,Zo==1)if(Eo=po[0],Eo<0){v0=vm(Eo,_v);do ws=v0,v0=$q(v0,10),Ys[--co]=48+s0(jx(ws,nv(v0,10)))&em;while(Iy(v0,0)!=0)}else{v0=Eo;do ws=v0,v0=v0/10|0,Ys[--co]=48+(ws-v0*10)&em;while(v0!=0)}else{Yu=Al(Q1,E0,28,Zo,15,1),b1=Zo,jy(po,0,Yu,0,b1);e:for(;;){for(ru=0,Ao=b1-1;Ao>=0;Ao--)Qu=tv(fS(ru,32),vm(Yu[Ao],_v)),Rs=RBt(Qu),Yu[Ao]=s0(Rs),ru=s0(qC(Rs,32));Ls=s0(ru),Ss=co;do Ys[--co]=48+Ls%10&em;while((Ls=Ls/10|0)!=0&&co!=0);for(fo=9-Ss+co,To=0;To0;To++)Ys[--co]=48;for(Po=b1-1;Yu[Po]==0;Po--)if(Po==0)break e;b1=Po+1}for(;Ys[co]==48;)++co}if(Xo=ku<0,xo=zs-co-oo-1,oo==0)return Xo&&(Ys[--co]=45),zx(Ys,co,zs-co);if(oo>0&&xo>=-6){if(xo>=0){for(Io=co+xo,Wo=zs-1;Wo>=Io;Wo--)Ys[Wo+1]=Ys[Wo];return Ys[++Io]=46,Xo&&(Ys[--co]=45),zx(Ys,co,zs-co+1)}for(Po=2;Po<-xo+1;Po++)Ys[--co]=48;return Ys[--co]=46,Ys[--co]=48,Xo&&(Ys[--co]=45),zx(Ys,co,zs-co)}return Eu=co+1,vo=zs,Nl=new t9,Xo&&(Nl.a+="-"),vo-Eu>=1?(u3(Nl,Ys[co]),Nl.a+=".",Nl.a+=zx(Ys,co+1,zs-co-1)):Nl.a+=zx(Ys,co,zs-co),Nl.a+="E",xo>0&&(Nl.a+="+"),Nl.a+=""+xo,Nl.a}function mct(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl;switch(ro.c=oo,ro.g=new H1,co=(NC(),new kC(ro.c)),fo=new pK(co),dke(fo),zs=u0(zl(ro.c,(Rq(),gIe))),To=bo(zl(ro.c,kve),324),Nl=bo(zl(ro.c,Tve),437),xo=bo(zl(ro.c,dIe),490),Ys=bo(zl(ro.c,Eve),438),ro.j=na(Tl(zl(ro.c,J2t))),Eo=ro.a,To.g){case 0:Eo=ro.a;break;case 1:Eo=ro.b;break;case 2:Eo=ro.i;break;case 3:Eo=ro.e;break;case 4:Eo=ro.f;break;default:throw Cs(new i1(wJ+(To.f!=null?To.f:""+To.g)))}if(ro.d=new eKe(Eo,Nl,xo),Fl(ro.d,(yI(),JB),au(zl(ro.c,Q2t))),ro.d.c=lu(au(zl(ro.c,hIe))),fX(ro.c).i==0)return ro.d;for(Po=new g1(fX(ro.c));Po.e!=Po.i.gc();){for(Io=bo(k1(Po),27),Xo=Io.g/2,Wo=Io.f/2,Hl=new Vl(Io.i+Xo,Io.j+Wo);p2(ro.g,Hl);)jC(Hl,(lo.Math.random()-.5)*oE,(lo.Math.random()-.5)*oE);ws=bo(zl(Io,($0(),sM)),140),Ss=new pKe(Hl,new ax(Hl.a-Xo-ro.j/2-ws.b,Hl.b-Wo-ro.j/2-ws.d,Io.g+ro.j+(ws.b+ws.c),Io.f+ro.j+(ws.d+ws.a))),Jl(ro.d.i,Ss),N0(ro.g,Hl,new fm(Ss,Io))}switch(Ys.g){case 0:if(zs==null)ro.d.d=bo(cu(ro.d.i,0),68);else for(Ls=new _s(ro.d.i);Ls.a0?b1+1:1);for(xo=new _s(Hl.g);xo.a0?b1+1:1)}ro.c[Ao]==0?y0(ro.e,ws):ro.a[Ao]==0&&y0(ro.f,ws),++Ao}for(Zo=-1,Xo=1,Po=new Zl,ro.d=bo(bs(oo,(Wl(),IR)),234);nx>0;){for(;ro.e.b!=0;)Op=bo(Ece(ro.e),10),ro.b[Op.p]=Zo--,t3e(ro,Op),--nx;for(;ro.f.b!=0;)dw=bo(Ece(ro.f),10),ro.b[dw.p]=Xo++,t3e(ro,dw),--nx;if(nx>0){for(Wo=Ym,Ls=new _s(zs);Ls.a=Wo&&(Ys>Wo&&(Po.c.length=0,Wo=Ys),Ju(Po.c,ws)));Io=ro.sg(Po),ro.b[Io.p]=Xo++,t3e(ro,Io),--nx}}for(v0=zs.c.length+1,Ao=0;Aoro.b[Vv]&&(b6(fo,!0),Fl(oo,JV,(_f(),!0)));ro.a=null,ro.c=null,ro.b=null,Fw(ro.f),Fw(ro.e),co.Vg()}function vct(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl;for(Nl=bo(Gs((!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a),0),166),Io=new P2,Ys=new H1,Hl=Tat(Nl),l2(Ys.f,Nl,Hl),Wo=new H1,fo=new xp,Zo=$E(Hw(As($s(Xw,1),Xu,20,0,[(!oo.d&&(oo.d=new Wu(Gp,oo,8,5)),oo.d),(!oo.e&&(oo.e=new Wu(Gp,oo,7,4)),oo.e)])));W1(Zo);){if(Xo=bo(R1(Zo),74),(!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a).i!=1)throw Cs(new i1(rdt+(!ro.a&&(ro.a=new Bl(Sp,ro,6,6)),ro.a).i));Xo!=ro&&(Ss=bo(Gs((!Xo.a&&(Xo.a=new Bl(Sp,Xo,6,6)),Xo.a),0),166),Mp(fo,Ss,fo.c.b,fo.c),ws=bo(Uv(wv(Ys.f,Ss)),13),ws||(ws=Tat(Ss),l2(Ys.f,Ss,ws)),Po=co?mm(new ov(bo(cu(Hl,Hl.c.length-1),8)),bo(cu(ws,ws.c.length-1),8)):mm(new ov((qu(0,Hl.c.length),bo(Hl.c[0],8))),(qu(0,ws.c.length),bo(ws.c[0],8))),l2(Wo.f,Ss,Po))}if(fo.b!=0)for(Rs=bo(cu(Hl,co?Hl.c.length-1:0),8),Ao=1;Ao1&&Mp(Io,Rs,Io.c.b,Io.c),Zue(po)));Rs=Ls}return Io}function bct(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu;for(co.Ug(bft,1),Yu=bo(ny(X0(new Ou(null,new Du(oo,16)),new uie),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),Io=bo(ny(X0(new Ou(null,new Du(oo,16)),new dBe(oo)),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy]))),15),Zo=bo(ny(X0(new Ou(null,new Du(oo,16)),new fBe(oo)),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[oy]))),15),ws=Al(yte,gJ,40,oo.gc(),0,1),xo=0;xo=0&&Eu=0&&!ws[Xo]){ws[Xo]=po,Io.gd(Eo),--Eo;break}if(Xo=Eu-Wo,Xo=0&&!ws[Xo]){ws[Xo]=po,Io.gd(Eo),--Eo;break}}for(Zo.jd(new FM),To=ws.length-1;To>=0;To--)!ws[To]&&!Zo.dc()&&(ws[To]=bo(Zo.Xb(0),40),Zo.gd(0));for(Ao=0;Ao=0;To--)y0(co,(qu(To,xo.c.length),bo(xo.c[To],8)));return co}function wct(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;for(zs=na(Tl(zl(oo,(ME(),RA)))),Xo=na(Tl(zl(oo,OF))),Wo=na(Tl(zl(oo,Ate))),iEe((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a)),Rs=ult((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a),zs,ro.b),Ss=0;SsWo&&Tq((qu(Wo,oo.c.length),bo(oo.c[Wo],186)),Io),Io=null;oo.c.length>Wo&&(qu(Wo,oo.c.length),bo(oo.c[Wo],186)).a.c.length==0;)A2(oo,(qu(Wo,oo.c.length),oo.c[Wo]));if(!Io){--xo;continue}if(!lu(au(bo(cu(Io.b,0),27).of((y_(),yG))))&&uGt(oo,Zo,vo,Io,Ss,co,Wo,fo)){ws=!0;continue}if(Ss){if(Xo=Zo.b,Po=Io.f,!lu(au(bo(cu(Io.b,0),27).of(yG)))&&AUt(oo,Zo,vo,Io,co,Wo,fo,po)){if(ws=!0,Xo=ro.j){ro.a=-1,ro.c=1;return}if(oo=Um(ro.i,ro.d++),ro.a=oo,ro.b==1){switch(oo){case 92:if(fo=10,ro.d>=ro.j)throw Cs(new p0(m0((c0(),CJ))));ro.a=Um(ro.i,ro.d++);break;case 45:(ro.e&512)==512&&ro.d=ro.j||Um(ro.i,ro.d)!=63)break;if(++ro.d>=ro.j)throw Cs(new p0(m0((c0(),rpe))));switch(oo=Um(ro.i,ro.d++),oo){case 58:fo=13;break;case 61:fo=14;break;case 33:fo=15;break;case 91:fo=19;break;case 62:fo=18;break;case 60:if(ro.d>=ro.j)throw Cs(new p0(m0((c0(),rpe))));if(oo=Um(ro.i,ro.d++),oo==61)fo=16;else if(oo==33)fo=17;else throw Cs(new p0(m0((c0(),Rdt))));break;case 35:for(;ro.d=ro.j)throw Cs(new p0(m0((c0(),CJ))));ro.a=Um(ro.i,ro.d++);break;default:fo=0}ro.c=fo}function QYt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss;if(co.Ug("Process compaction",1),!!lu(au(bs(oo,(by(),XRe))))){for(po=bo(bs(oo,U6),88),Xo=na(Tl(bs(oo,Vme))),EWt(ro,oo,po),pYt(oo,Xo/2/2),Zo=oo.b,wT(Zo,new iBe(po)),Ao=G1(Zo,0);Ao.b!=Ao.d.c;)if(To=bo(q1(Ao),40),!lu(au(bs(To,(fp(),q3))))){if(fo=Xqt(To,po),ws=GGt(To,oo),Po=0,Wo=0,fo)switch(Ss=fo.e,po.g){case 2:Po=Ss.a-Xo-To.f.a,ws.e.a-Xo-To.f.aPo&&(Po=ws.e.a+ws.f.a+Xo),Wo=Po+To.f.a;break;case 4:Po=Ss.b-Xo-To.f.b,ws.e.b-Xo-To.f.bPo&&(Po=ws.e.b+ws.f.b+Xo),Wo=Po+To.f.b}else if(ws)switch(po.g){case 2:Po=ws.e.a-Xo-To.f.a,Wo=Po+To.f.a;break;case 1:Po=ws.e.a+ws.f.a+Xo,Wo=Po+To.f.a;break;case 4:Po=ws.e.b-Xo-To.f.b,Wo=Po+To.f.b;break;case 3:Po=ws.e.b+ws.f.b+Xo,Wo=Po+To.f.b}$a(bs(oo,qme))===$a((NL(),dG))?(vo=Po,xo=Wo,Eo=TI(X0(new Ou(null,new Du(ro.a,16)),new Uze(vo,xo))),Eo.a!=null?po==(_g(),qv)||po==ey?To.e.a=Po:To.e.b=Po:(po==(_g(),qv)||po==Cx?Eo=TI(X0(_Ze(new Ou(null,new Du(ro.a,16))),new oBe(vo))):Eo=TI(X0(_Ze(new Ou(null,new Du(ro.a,16))),new sBe(vo))),Eo.a!=null&&(po==qv||po==ey?To.e.a=na(Tl((T1(Eo.a!=null),bo(Eo.a,42)).a)):To.e.b=na(Tl((T1(Eo.a!=null),bo(Eo.a,42)).a)))),Eo.a!=null&&(Io=Xv(ro.a,(T1(Eo.a!=null),Eo.a),0),Io>0&&Io!=bo(bs(To,pE),17).a&&(Fl(To,HRe,(_f(),!0)),Fl(To,pE,Ql(Io))))):po==(_g(),qv)||po==ey?To.e.a=Po:To.e.b=Po}co.Vg()}}function xct(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao;for(ro.b=1,z0(ro),oo=null,ro.c==0&&ro.a==94?(z0(ro),oo=(H0(),H0(),new jw(4)),Uy(oo,0,AN),Eo=new jw(4)):Eo=(H0(),H0(),new jw(4)),po=!0;(Ao=ro.c)!=1;){if(Ao==0&&ro.a==93&&!po){oo&&(mB(oo,Eo),Eo=oo);break}if(co=ro.a,fo=!1,Ao==10)switch(co){case 100:case 68:case 119:case 87:case 115:case 83:J$(Eo,eN(co)),fo=!0;break;case 105:case 73:case 99:case 67:co=(J$(Eo,eN(co)),-1),co<0&&(fo=!0);break;case 112:case 80:if(To=o4e(ro,co),!To)throw Cs(new p0(m0((c0(),ipe))));J$(Eo,To),fo=!0;break;default:co=j4e(ro)}else if(Ao==24&&!po){if(oo&&(mB(oo,Eo),Eo=oo),vo=xct(ro),mB(Eo,vo),ro.c!=0||ro.a!=93)throw Cs(new p0(m0((c0(),jdt))));break}if(z0(ro),!fo){if(Ao==0){if(co==91)throw Cs(new p0(m0((c0(),c$e))));if(co==93)throw Cs(new p0(m0((c0(),u$e))));if(co==45&&!po&&ro.a!=93)throw Cs(new p0(m0((c0(),ope))))}if(ro.c!=0||ro.a!=45||co==45&&po)Uy(Eo,co,co);else{if(z0(ro),(Ao=ro.c)==1)throw Cs(new p0(m0((c0(),$J))));if(Ao==0&&ro.a==93)Uy(Eo,co,co),Uy(Eo,45,45);else{if(Ao==0&&ro.a==93||Ao==24)throw Cs(new p0(m0((c0(),ope))));if(xo=ro.a,Ao==0){if(xo==91)throw Cs(new p0(m0((c0(),c$e))));if(xo==93)throw Cs(new p0(m0((c0(),u$e))));if(xo==45)throw Cs(new p0(m0((c0(),ope))))}else Ao==10&&(xo=j4e(ro));if(z0(ro),co>xo)throw Cs(new p0(m0((c0(),qdt))));Uy(Eo,co,xo)}}}po=!1}if(ro.c==1)throw Cs(new p0(m0((c0(),$J))));return B9(Eo),pB(Eo),ro.b=0,z0(ro),Eo}function ZYt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl;if(co.Ug("Coffman-Graham Layering",1),oo.a.c.length==0){co.Vg();return}for(Nl=bo(bs(oo,(ou(),C8e)),17).a,To=0,xo=0,Wo=new _s(oo.a);Wo.a=Nl||!WNt(Rs,fo))&&(fo=uUe(oo,Io)),Dm(Rs,fo),vo=new x1(E1(Sm(Rs).a.Kc(),new ko));W1(vo);)po=bo(R1(vo),18),!ro.a[po.p]&&(ws=po.c.i,--ro.e[ws.p],ro.e[ws.p]==0&&$8(GI(Xo,ws),fN));for(Ao=Io.c.length-1;Ao>=0;--Ao)Jl(oo.b,(qu(Ao,Io.c.length),bo(Io.c[Ao],30)));oo.a.c.length=0,co.Vg()}function Sct(ro,oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys;Ys=!1;do for(Ys=!1,vo=oo?new Dl(ro.a.b).a.gc()-2:1;oo?vo>=0:vobo(bs(Ss,ip),17).a)&&(zs=!1);if(zs){for(To=oo?vo+1:vo-1,Eo=VSe(ro.a,Ql(To)),xo=!1,Ls=!0,fo=!1,Io=G1(Eo,0);Io.b!=Io.d.c;)Ao=bo(q1(Io),10),gp(Ao,ip)?Ao.p!=Po.p&&(xo=xo|(oo?bo(bs(Ao,ip),17).abo(bs(Po,ip),17).a),Ls=!1):!xo&&Ls&&Ao.k==(a1(),Ly)&&(fo=!0,oo?Wo=bo(R1(new x1(E1(Sm(Ao).a.Kc(),new ko))),18).c.i:Wo=bo(R1(new x1(E1(Wp(Ao).a.Kc(),new ko))),18).d.i,Wo==Po&&(oo?co=bo(R1(new x1(E1(Wp(Ao).a.Kc(),new ko))),18).d.i:co=bo(R1(new x1(E1(Sm(Ao).a.Kc(),new ko))),18).c.i,(oo?bo(y$(ro.a,co),17).a-bo(y$(ro.a,Wo),17).a:bo(y$(ro.a,Wo),17).a-bo(y$(ro.a,co),17).a)<=2&&(Ls=!1)));if(fo&&Ls&&(oo?co=bo(R1(new x1(E1(Wp(Po).a.Kc(),new ko))),18).d.i:co=bo(R1(new x1(E1(Sm(Po).a.Kc(),new ko))),18).c.i,(oo?bo(y$(ro.a,co),17).a-bo(y$(ro.a,Po),17).a:bo(y$(ro.a,Po),17).a-bo(y$(ro.a,co),17).a)<=2&&co.k==(a1(),Vp)&&(Ls=!1)),xo||Ls){for(ws=Jot(ro,Po,oo);ws.a.gc()!=0;)Zo=bo(ws.a.ec().Kc().Pb(),10),ws.a.Bc(Zo)!=null,Fm(ws,Jot(ro,Zo,oo));--Xo,Ys=!0}}}while(Ys)}function JYt(ro){i0(ro.c,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#decimal"])),i0(ro.d,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#integer"])),i0(ro.e,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#boolean"])),i0(ro.f,w0,As($s(uu,1),Yl,2,6,[Xm,"EBoolean",B0,"EBoolean:Object"])),i0(ro.i,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#byte"])),i0(ro.g,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#hexBinary"])),i0(ro.j,w0,As($s(uu,1),Yl,2,6,[Xm,"EByte",B0,"EByte:Object"])),i0(ro.n,w0,As($s(uu,1),Yl,2,6,[Xm,"EChar",B0,"EChar:Object"])),i0(ro.t,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#double"])),i0(ro.u,w0,As($s(uu,1),Yl,2,6,[Xm,"EDouble",B0,"EDouble:Object"])),i0(ro.F,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#float"])),i0(ro.G,w0,As($s(uu,1),Yl,2,6,[Xm,"EFloat",B0,"EFloat:Object"])),i0(ro.I,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#int"])),i0(ro.J,w0,As($s(uu,1),Yl,2,6,[Xm,"EInt",B0,"EInt:Object"])),i0(ro.N,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#long"])),i0(ro.O,w0,As($s(uu,1),Yl,2,6,[Xm,"ELong",B0,"ELong:Object"])),i0(ro.Z,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#short"])),i0(ro.$,w0,As($s(uu,1),Yl,2,6,[Xm,"EShort",B0,"EShort:Object"])),i0(ro._,w0,As($s(uu,1),Yl,2,6,[Xm,"http://www.w3.org/2001/XMLSchema#string"]))}function eXt(ro,oo,co,fo,po,vo,xo){var Eo,To,Ao,Io,Po,Wo,Xo,Zo;return Wo=bo(fo.a,17).a,Xo=bo(fo.b,17).a,Po=ro.b,Zo=ro.c,Eo=0,Io=0,oo==(_g(),qv)||oo==ey?(Io=Wz(att(C$(Kv(new Ou(null,new Du(co.b,16)),new nU),new iie))),Po.e.b+Po.f.b/2>Io?(Ao=++Xo,Eo=na(Tl(Aw(E$(Kv(new Ou(null,new Du(co.b,16)),new Xze(po,Ao)),new c$))))):(To=++Wo,Eo=na(Tl(Aw(R8(Kv(new Ou(null,new Du(co.b,16)),new Qze(po,To)),new XW)))))):(Io=Wz(att(C$(Kv(new Ou(null,new Du(co.b,16)),new sie),new l$))),Po.e.a+Po.f.a/2>Io?(Ao=++Xo,Eo=na(Tl(Aw(E$(Kv(new Ou(null,new Du(co.b,16)),new Kze(po,Ao)),new QW))))):(To=++Wo,Eo=na(Tl(Aw(R8(Kv(new Ou(null,new Du(co.b,16)),new Yze(po,To)),new QP)))))),oo==qv?(iv(ro.a,new Vl(na(Tl(bs(Po,(fp(),e_))))-po,Eo)),iv(ro.a,new Vl(Zo.e.a+Zo.f.a+po+vo,Eo)),iv(ro.a,new Vl(Zo.e.a+Zo.f.a+po+vo,Zo.e.b+Zo.f.b/2)),iv(ro.a,new Vl(Zo.e.a+Zo.f.a,Zo.e.b+Zo.f.b/2))):oo==ey?(iv(ro.a,new Vl(na(Tl(bs(Po,(fp(),ES))))+po,Po.e.b+Po.f.b/2)),iv(ro.a,new Vl(Po.e.a+Po.f.a+po,Eo)),iv(ro.a,new Vl(Zo.e.a-po-vo,Eo)),iv(ro.a,new Vl(Zo.e.a-po-vo,Zo.e.b+Zo.f.b/2)),iv(ro.a,new Vl(Zo.e.a,Zo.e.b+Zo.f.b/2))):oo==Cx?(iv(ro.a,new Vl(Eo,na(Tl(bs(Po,(fp(),e_))))-po)),iv(ro.a,new Vl(Eo,Zo.e.b+Zo.f.b+po+vo)),iv(ro.a,new Vl(Zo.e.a+Zo.f.a/2,Zo.e.b+Zo.f.b+po+vo)),iv(ro.a,new Vl(Zo.e.a+Zo.f.a/2,Zo.e.b+Zo.f.b+po))):(ro.a.b==0||(bo(lS(ro.a),8).b=na(Tl(bs(Po,(fp(),ES))))+po*bo(xo.b,17).a),iv(ro.a,new Vl(Eo,na(Tl(bs(Po,(fp(),ES))))+po*bo(xo.b,17).a)),iv(ro.a,new Vl(Eo,Zo.e.b-po*bo(xo.a,17).a-vo))),new fm(Ql(Wo),Ql(Xo))}function tXt(ro){var oo,co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo;if(xo=!0,Po=null,fo=null,po=null,oo=!1,Xo=Lxt,Ao=null,vo=null,Eo=0,To=nde(ro,Eo,fMe,dMe),To=0&&Iu(ro.substr(Eo,2),"//")?(Eo+=2,To=nde(ro,Eo,JF,eP),fo=(Bm(Eo,To,ro.length),ro.substr(Eo,To-Eo)),Eo=To):Po!=null&&(Eo==ro.length||(o1(Eo,ro.length),ro.charCodeAt(Eo)!=47))&&(xo=!1,To=pwe(ro,O2(35),Eo),To==-1&&(To=ro.length),fo=(Bm(Eo,To,ro.length),ro.substr(Eo,To-Eo)),Eo=To);if(!co&&Eo0&&Um(Io,Io.length-1)==58&&(po=Io,Eo=To)),EoQde(vo))&&(Po=vo);for(!Po&&(Po=(qu(0,Ss.c.length),bo(Ss.c[0],185))),ws=new _s(oo.b);ws.aPo&&(Qu=0,b1+=Io+ru,Io=0),dat(Nl,xo,Qu,b1),oo=lo.Math.max(oo,Qu+Hl.a),Io=lo.Math.max(Io,Hl.b),Qu+=Hl.a+ru;for(Ys=new H1,co=new H1,Eu=new _s(ro);Eu.a=-1900?1:0,co>=4?S0(ro,As($s(uu,1),Yl,2,6,[Pct,jct])[Eo]):S0(ro,As($s(uu,1),Yl,2,6,["BC","AD"])[Eo]);break;case 121:xMt(ro,co,fo);break;case 77:PVt(ro,co,fo);break;case 107:To=po.q.getHours(),To==0?OE(ro,24,co):OE(ro,To,co);break;case 83:Jzt(ro,co,po);break;case 69:Io=fo.q.getDay(),co==5?S0(ro,As($s(uu,1),Yl,2,6,["S","M","T","W","T","F","S"])[Io]):co==4?S0(ro,As($s(uu,1),Yl,2,6,[e1e,t1e,n1e,r1e,i1e,o1e,s1e])[Io]):S0(ro,As($s(uu,1),Yl,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[Io]);break;case 97:po.q.getHours()>=12&&po.q.getHours()<24?S0(ro,As($s(uu,1),Yl,2,6,["AM","PM"])[1]):S0(ro,As($s(uu,1),Yl,2,6,["AM","PM"])[0]);break;case 104:Po=po.q.getHours()%12,Po==0?OE(ro,12,co):OE(ro,Po,co);break;case 75:Wo=po.q.getHours()%12,OE(ro,Wo,co);break;case 72:Xo=po.q.getHours(),OE(ro,Xo,co);break;case 99:Zo=fo.q.getDay(),co==5?S0(ro,As($s(uu,1),Yl,2,6,["S","M","T","W","T","F","S"])[Zo]):co==4?S0(ro,As($s(uu,1),Yl,2,6,[e1e,t1e,n1e,r1e,i1e,o1e,s1e])[Zo]):co==3?S0(ro,As($s(uu,1),Yl,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[Zo]):OE(ro,Zo,1);break;case 76:ws=fo.q.getMonth(),co==5?S0(ro,As($s(uu,1),Yl,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[ws]):co==4?S0(ro,As($s(uu,1),Yl,2,6,[qhe,Vhe,Ghe,Whe,lR,Uhe,Khe,Yhe,Xhe,Qhe,Zhe,Jhe])[ws]):co==3?S0(ro,As($s(uu,1),Yl,2,6,["Jan","Feb","Mar","Apr",lR,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[ws]):OE(ro,ws+1,co);break;case 81:Ss=fo.q.getMonth()/3|0,co<4?S0(ro,As($s(uu,1),Yl,2,6,["Q1","Q2","Q3","Q4"])[Ss]):S0(ro,As($s(uu,1),Yl,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[Ss]);break;case 100:Rs=fo.q.getDate(),OE(ro,Rs,co);break;case 109:Ao=po.q.getMinutes(),OE(ro,Ao,co);break;case 115:xo=po.q.getSeconds(),OE(ro,xo,co);break;case 122:co<4?S0(ro,vo.c[0]):S0(ro,vo.c[1]);break;case 118:S0(ro,vo.b);break;case 90:co<3?S0(ro,WPt(vo)):co==3?S0(ro,QPt(vo)):S0(ro,ZPt(vo.a));break;default:return!1}return!0}function M3e(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1,v0;if(tat(oo),To=bo(Gs((!oo.b&&(oo.b=new Wu(D1,oo,4,7)),oo.b),0),84),Io=bo(Gs((!oo.c&&(oo.c=new Wu(D1,oo,5,8)),oo.c),0),84),Eo=Zv(To),Ao=Zv(Io),xo=(!oo.a&&(oo.a=new Bl(Sp,oo,6,6)),oo.a).i==0?null:bo(Gs((!oo.a&&(oo.a=new Bl(Sp,oo,6,6)),oo.a),0),166),ru=bo(m1(ro.a,Eo),10),Qu=bo(m1(ro.a,Ao),10),ku=null,b1=null,Hs(To,193)&&(Hl=bo(m1(ro.a,To),305),Hs(Hl,12)?ku=bo(Hl,12):Hs(Hl,10)&&(ru=bo(Hl,10),ku=bo(cu(ru.j,0),12))),Hs(Io,193)&&(Yu=bo(m1(ro.a,Io),305),Hs(Yu,12)?b1=bo(Yu,12):Hs(Yu,10)&&(Qu=bo(Yu,10),b1=bo(cu(Qu.j,0),12))),!ru||!Qu)throw Cs(new h8("The source or the target of edge "+oo+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(ws=new QC,Qv(ws,oo),Fl(ws,(Wl(),Z0),oo),Fl(ws,(ou(),Hv),null),Xo=bo(bs(fo,Jy),21),ru==Qu&&Xo.Fc((Sv(),sF)),ku||(Nl=(xv(),u2),Eu=null,xo&&u9(bo(bs(ru,Pp),101))&&(Eu=new Vl(xo.j,xo.k),LYe(Eu,$H(oo)),uXe(Eu,co),D$(Ao,Eo)&&(Nl=lw,G0(Eu,ru.n))),ku=nlt(ru,Eu,Nl,fo)),b1||(Nl=(xv(),lw),v0=null,xo&&u9(bo(bs(Qu,Pp),101))&&(v0=new Vl(xo.b,xo.c),LYe(v0,$H(oo)),uXe(v0,co)),b1=nlt(Qu,v0,Nl,zm(Qu))),ev(ws,ku),Om(ws,b1),(ku.e.c.length>1||ku.g.c.length>1||b1.e.c.length>1||b1.g.c.length>1)&&Xo.Fc((Sv(),oF)),Wo=new g1((!oo.n&&(oo.n=new Bl(Nv,oo,1,7)),oo.n));Wo.e!=Wo.i.gc();)if(Po=bo(k1(Wo),135),!lu(au(zl(Po,QT)))&&Po.a)switch(Ss=Lfe(Po),Jl(ws.b,Ss),bo(bs(Ss,hE),278).g){case 1:case 2:Xo.Fc((Sv(),VN));break;case 0:Xo.Fc((Sv(),qN)),Fl(Ss,hE,(g_(),lM))}if(vo=bo(bs(fo,dF),322),Rs=bo(bs(fo,ite),323),po=vo==(kL(),XV)||Rs==(GL(),xme),xo&&(!xo.a&&(xo.a=new Qp(tx,xo,5)),xo.a).i!=0&&po){for(Ls=Iq(xo),Zo=new P2,Ys=G1(Ls,0);Ys.b!=Ys.d.c;)zs=bo(q1(Ys),8),y0(Zo,new ov(zs));Fl(ws,A7e,Zo)}return ws}function oXt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1,v0,Op;for(Eu=0,Yu=0,ru=new H1,Nl=bo(Aw(E$(Kv(new Ou(null,new Du(ro.b,16)),new oie),new wE)),17).a+1,ku=Al(Q1,E0,28,Nl,15,1),Ss=Al(Q1,E0,28,Nl,15,1),ws=0;ws1)for(Eo=b1+1;EoAo.b.e.b*(1-Rs)+Ao.c.e.b*Rs));Zo++);if(Hl.gc()>0&&(v0=Ao.a.b==0?Pm(Ao.b.e):bo(lS(Ao.a),8),zs=G0(Pm(bo(Hl.Xb(Hl.gc()-1),40).e),bo(Hl.Xb(Hl.gc()-1),40).f),Wo=G0(Pm(bo(Hl.Xb(0),40).e),bo(Hl.Xb(0),40).f),Zo>=Hl.gc()-1&&v0.b>zs.b&&Ao.c.e.b>zs.b||Zo<=0&&v0.bAo.b.e.a*(1-Rs)+Ao.c.e.a*Rs));Zo++);if(Hl.gc()>0&&(v0=Ao.a.b==0?Pm(Ao.b.e):bo(lS(Ao.a),8),zs=G0(Pm(bo(Hl.Xb(Hl.gc()-1),40).e),bo(Hl.Xb(Hl.gc()-1),40).f),Wo=G0(Pm(bo(Hl.Xb(0),40).e),bo(Hl.Xb(0),40).f),Zo>=Hl.gc()-1&&v0.a>zs.a&&Ao.c.e.a>zs.a||Zo<=0&&v0.a=na(Tl(bs(ro,(fp(),GRe))))&&++Yu):(Xo.f&&Xo.d.e.a<=na(Tl(bs(ro,(fp(),Pme))))&&++Eu,Xo.g&&Xo.c.e.a+Xo.c.f.a>=na(Tl(bs(ro,(fp(),VRe))))&&++Yu)}else Ys==0?n4e(Ao):Ys<0&&(++ku[b1],++Ss[Op],Qu=eXt(Ao,oo,ro,new fm(Ql(Eu),Ql(Yu)),co,fo,new fm(Ql(Ss[Op]),Ql(ku[b1]))),Eu=bo(Qu.a,17).a,Yu=bo(Qu.b,17).a)}function sXt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls;if(fo=oo,To=co,ro.b&&fo.j==(nu(),l1)&&To.j==(nu(),l1)&&(Ls=fo,fo=To,To=Ls),p2(ro.a,fo)){if(jS(bo(m1(ro.a,fo),49),To))return 1}else N0(ro.a,fo,new Yp);if(p2(ro.a,To)){if(jS(bo(m1(ro.a,To),49),fo))return-1}else N0(ro.a,To,new Yp);if(p2(ro.d,fo)){if(jS(bo(m1(ro.d,fo),49),To))return-1}else N0(ro.d,fo,new Yp);if(p2(ro.d,To)){if(jS(bo(m1(ro.a,To),49),fo))return 1}else N0(ro.d,To,new Yp);if(fo.j!=To.j)return Rs=UEt(fo.j,To.j),Rs==-1?xx(ro,To,fo):xx(ro,fo,To),Rs;if(fo.e.c.length!=0&&To.e.c.length!=0){if(ro.b&&(Rs=Det(fo,To),Rs!=0))return Rs==-1?xx(ro,To,fo):Rs==1&&xx(ro,fo,To),Rs;if(vo=bo(cu(fo.e,0),18).c.i,Io=bo(cu(To.e,0),18).c.i,vo==Io)return po=bo(bs(bo(cu(fo.e,0),18),(Wl(),ip)),17).a,Ao=bo(bs(bo(cu(To.e,0),18),ip),17).a,po>Ao?xx(ro,fo,To):xx(ro,To,fo),poAo?1:0;for(Zo=ro.c,ws=0,Ss=Zo.length;wsAo?xx(ro,fo,To):xx(ro,To,fo),poAo?1:0):ro.b&&(Rs=Det(fo,To),Rs!=0)?(Rs==-1?xx(ro,To,fo):Rs==1&&xx(ro,fo,To),Rs):(xo=0,Po=0,gp(bo(cu(fo.g,0),18),ip)&&(xo=bo(bs(bo(cu(fo.g,0),18),ip),17).a),gp(bo(cu(To.g,0),18),ip)&&(Po=bo(bs(bo(cu(fo.g,0),18),ip),17).a),Eo&&Eo==Wo?lu(au(bs(bo(cu(fo.g,0),18),T_)))&&!lu(au(bs(bo(cu(To.g,0),18),T_)))?(xx(ro,fo,To),1):!lu(au(bs(bo(cu(fo.g,0),18),T_)))&&lu(au(bs(bo(cu(To.g,0),18),T_)))?(xx(ro,To,fo),-1):(xo>Po?xx(ro,fo,To):xx(ro,To,fo),xoPo?1:0):(ro.f&&(ro.f._b(Eo)&&(xo=bo(ro.f.xc(Eo),17).a),ro.f._b(Wo)&&(Po=bo(ro.f.xc(Wo),17).a)),xo>Po?xx(ro,fo,To):xx(ro,To,fo),xoPo?1:0))):fo.e.c.length!=0&&To.g.c.length!=0?(xx(ro,fo,To),1):fo.g.c.length!=0&&To.e.c.length!=0?(xx(ro,To,fo),-1):gp(fo,(Wl(),ip))&&gp(To,ip)?(po=bo(bs(fo,ip),17).a,Ao=bo(bs(To,ip),17).a,po>Ao?xx(ro,fo,To):xx(ro,To,fo),poAo?1:0):(xx(ro,To,fo),-1)}function aXt(ro){ro.gb||(ro.gb=!0,ro.b=vy(ro,0),Dp(ro.b,18),vp(ro.b,19),ro.a=vy(ro,1),Dp(ro.a,1),vp(ro.a,2),vp(ro.a,3),vp(ro.a,4),vp(ro.a,5),ro.o=vy(ro,2),Dp(ro.o,8),Dp(ro.o,9),vp(ro.o,10),vp(ro.o,11),vp(ro.o,12),vp(ro.o,13),vp(ro.o,14),vp(ro.o,15),vp(ro.o,16),vp(ro.o,17),vp(ro.o,18),vp(ro.o,19),vp(ro.o,20),vp(ro.o,21),vp(ro.o,22),vp(ro.o,23),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),Pv(ro.o),ro.p=vy(ro,3),Dp(ro.p,2),Dp(ro.p,3),Dp(ro.p,4),Dp(ro.p,5),vp(ro.p,6),vp(ro.p,7),Pv(ro.p),Pv(ro.p),ro.q=vy(ro,4),Dp(ro.q,8),ro.v=vy(ro,5),vp(ro.v,9),Pv(ro.v),Pv(ro.v),Pv(ro.v),ro.w=vy(ro,6),Dp(ro.w,2),Dp(ro.w,3),Dp(ro.w,4),vp(ro.w,5),ro.B=vy(ro,7),vp(ro.B,1),Pv(ro.B),Pv(ro.B),Pv(ro.B),ro.Q=vy(ro,8),vp(ro.Q,0),Pv(ro.Q),ro.R=vy(ro,9),Dp(ro.R,1),ro.S=vy(ro,10),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),Pv(ro.S),ro.T=vy(ro,11),vp(ro.T,10),vp(ro.T,11),vp(ro.T,12),vp(ro.T,13),vp(ro.T,14),Pv(ro.T),Pv(ro.T),ro.U=vy(ro,12),Dp(ro.U,2),Dp(ro.U,3),vp(ro.U,4),vp(ro.U,5),vp(ro.U,6),vp(ro.U,7),Pv(ro.U),ro.V=vy(ro,13),vp(ro.V,10),ro.W=vy(ro,14),Dp(ro.W,18),Dp(ro.W,19),Dp(ro.W,20),vp(ro.W,21),vp(ro.W,22),vp(ro.W,23),ro.bb=vy(ro,15),Dp(ro.bb,10),Dp(ro.bb,11),Dp(ro.bb,12),Dp(ro.bb,13),Dp(ro.bb,14),Dp(ro.bb,15),Dp(ro.bb,16),vp(ro.bb,17),Pv(ro.bb),Pv(ro.bb),ro.eb=vy(ro,16),Dp(ro.eb,2),Dp(ro.eb,3),Dp(ro.eb,4),Dp(ro.eb,5),Dp(ro.eb,6),Dp(ro.eb,7),vp(ro.eb,8),vp(ro.eb,9),ro.ab=vy(ro,17),Dp(ro.ab,0),Dp(ro.ab,1),ro.H=vy(ro,18),vp(ro.H,0),vp(ro.H,1),vp(ro.H,2),vp(ro.H,3),vp(ro.H,4),vp(ro.H,5),Pv(ro.H),ro.db=vy(ro,19),vp(ro.db,2),ro.c=D0(ro,20),ro.d=D0(ro,21),ro.e=D0(ro,22),ro.f=D0(ro,23),ro.i=D0(ro,24),ro.g=D0(ro,25),ro.j=D0(ro,26),ro.k=D0(ro,27),ro.n=D0(ro,28),ro.r=D0(ro,29),ro.s=D0(ro,30),ro.t=D0(ro,31),ro.u=D0(ro,32),ro.fb=D0(ro,33),ro.A=D0(ro,34),ro.C=D0(ro,35),ro.D=D0(ro,36),ro.F=D0(ro,37),ro.G=D0(ro,38),ro.I=D0(ro,39),ro.J=D0(ro,40),ro.L=D0(ro,41),ro.M=D0(ro,42),ro.N=D0(ro,43),ro.O=D0(ro,44),ro.P=D0(ro,45),ro.X=D0(ro,46),ro.Y=D0(ro,47),ro.Z=D0(ro,48),ro.$=D0(ro,49),ro._=D0(ro,50),ro.cb=D0(ro,51),ro.K=D0(ro,52))}function lXt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1;for(xo=new xp,Hl=bo(bs(co,(ou(),Qw)),88),ws=0,Fm(xo,(!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a));xo.b!=0;)Io=bo(xo.b==0?null:(T1(xo.b!=0),hx(xo,xo.a.a)),27),Ao=kp(Io),($a(zl(Ao,GE))!==$a((Q_(),I4))||$a(zl(Ao,UT))===$a((y4(),zN))||$a(zl(Ao,UT))===$a((y4(),jN))||lu(au(zl(Ao,P6)))||$a(zl(Ao,wA))!==$a((CT(),pA))||$a(zl(Ao,j3))===$a((qx(),G6))||$a(zl(Ao,j3))===$a((qx(),CA))||$a(zl(Ao,YT))===$a((E4(),JN))||$a(zl(Ao,YT))===$a((E4(),eM)))&&!lu(au(zl(Io,Xee)))&&tp(Io,(Wl(),ip),Ql(ws++)),Rs=!lu(au(zl(Io,QT))),Rs&&(Wo=(!Io.a&&(Io.a=new Bl(F0,Io,10,11)),Io.a).i!=0,Zo=BBt(Io),Xo=$a(zl(Io,xA))===$a((x5(),B4)),b1=!h_(Io,($0(),oM))||bXe(u0(zl(Io,oM))),Ys=null,b1&&Xo&&(Wo||Zo)&&(Ys=Lat(Io),Fl(Ys,Qw,Hl),gp(Ys,iG)&&$Pe(new vke(na(Tl(bs(Ys,iG)))),Ys),bo(zl(Io,XT),181).gc()!=0&&(Po=Ys,zp(new Ou(null,(!Io.c&&(Io.c=new Bl(fw,Io,9,9)),new Du(Io.c,16))),new DDe(Po)),$st(Io,Ys))),ru=co,ku=bo(m1(ro.a,kp(Io)),10),ku&&(ru=ku.e),zs=cct(ro,Io,ru),Ys&&(zs.e=Ys,Ys.e=zs,Fm(xo,(!Io.a&&(Io.a=new Bl(F0,Io,10,11)),Io.a))));for(ws=0,Mp(xo,oo,xo.c.b,xo.c);xo.b!=0;){for(vo=bo(xo.b==0?null:(T1(xo.b!=0),hx(xo,xo.a.a)),27),To=new g1((!vo.b&&(vo.b=new Bl(Gp,vo,12,3)),vo.b));To.e!=To.i.gc();)Eo=bo(k1(To),74),tat(Eo),($a(zl(oo,GE))!==$a((Q_(),I4))||$a(zl(oo,UT))===$a((y4(),zN))||$a(zl(oo,UT))===$a((y4(),jN))||lu(au(zl(oo,P6)))||$a(zl(oo,wA))!==$a((CT(),pA))||$a(zl(oo,j3))===$a((qx(),G6))||$a(zl(oo,j3))===$a((qx(),CA))||$a(zl(oo,YT))===$a((E4(),JN))||$a(zl(oo,YT))===$a((E4(),eM)))&&tp(Eo,(Wl(),ip),Ql(ws++)),Yu=Zv(bo(Gs((!Eo.b&&(Eo.b=new Wu(D1,Eo,4,7)),Eo.b),0),84)),Qu=Zv(bo(Gs((!Eo.c&&(Eo.c=new Wu(D1,Eo,5,8)),Eo.c),0),84)),!(lu(au(zl(Eo,QT)))||lu(au(zl(Yu,QT)))||lu(au(zl(Qu,QT))))&&(Ss=g6(Eo)&&lu(au(zl(Yu,SA)))&&lu(au(zl(Eo,KT))),Nl=vo,Ss||D$(Qu,Yu)?Nl=Yu:D$(Yu,Qu)&&(Nl=Qu),ru=co,ku=bo(m1(ro.a,Nl),10),ku&&(ru=ku.e),Ls=M3e(ro,Eo,Nl,ru),Fl(Ls,(Wl(),k7e),lqt(ro,Eo,oo,co)));if(Xo=$a(zl(vo,xA))===$a((x5(),B4)),Xo)for(po=new g1((!vo.a&&(vo.a=new Bl(F0,vo,10,11)),vo.a));po.e!=po.i.gc();)fo=bo(k1(po),27),b1=!h_(fo,($0(),oM))||bXe(u0(zl(fo,oM))),Eu=$a(zl(fo,xA))===$a(B4),b1&&Eu&&Mp(xo,fo,xo.c.b,xo.c)}}function Wl(){Wl=qo;var ro,oo;Z0=new np(wTe),k7e=new np("coordinateOrigin"),Xge=new np("processors"),E7e=new Rp("compoundNode",(_f(),!1)),eG=new Rp("insideConnections",!1),A7e=new np("originalBendpoints"),R7e=new np("originalDummyNodePosition"),O7e=new np("originalLabelEdge"),lF=new np("representedLabels"),aF=new np("endLabels"),AR=new np("endLabel.origin"),OR=new Rp("labelSide",(Gw(),NG)),h7=new Rp("maxEdgeThickness",0),T_=new Rp("reversed",!1),IR=new np(Tut),JS=new Rp("longEdgeSource",null),Yx=new Rp("longEdgeTarget",null),bA=new Rp("longEdgeHasLabelDummies",!1),tG=new Rp("longEdgeBeforeLabelDummy",!1),qee=new Rp("edgeConstraint",(ET(),Nge)),L6=new np("inLayerLayoutUnit"),GT=new Rp("inLayerConstraint",(b5(),ZV)),RR=new Rp("inLayerSuccessorConstraint",new Zl),$7e=new Rp("inLayerSuccessorConstraintBetweenNonDummies",!1),aw=new np("portDummy"),Hee=new Rp("crossingHint",Ql(0)),Jy=new Rp("graphProperties",(oo=bo(PS(jge),9),new sx(oo,bo(cS(oo,oo.length),9),0))),_y=new Rp("externalPortSide",(nu(),gy)),C7e=new Rp("externalPortSize",new Nm),Gge=new np("externalPortReplacedDummies"),Vee=new np("externalPortReplacedDummy"),N5=new Rp("externalPortConnections",(ro=bo(PS(pv),9),new sx(ro,bo(cS(ro,ro.length),9),0))),B6=new Rp(vut,0),_7e=new np("barycenterAssociates"),NR=new np("TopSideComments"),$R=new np("BottomSideComments"),zee=new np("CommentConnectionPort"),Uge=new Rp("inputCollect",!1),Yge=new Rp("outputCollect",!1),JV=new Rp("cyclic",!1),T7e=new np("crossHierarchyMap"),Zge=new np("targetOffset"),new Rp("splineLabelSize",new Nm),g7=new np("spacings"),Gee=new Rp("partitionConstraint",!1),D6=new np("breakingPoint.info"),M7e=new np("splines.survivingEdge"),WT=new np("splines.route.start"),m7=new np("splines.edgeChain"),N7e=new np("originalPortConstraints"),F6=new np("selfLoopHolder"),WN=new np("splines.nsPortY"),ip=new np("modelOrder"),Kge=new np("longEdgeTargetNode"),F3=new Rp(Zut,!1),p7=new Rp(Zut,!1),Wge=new np("layerConstraints.hiddenNodes"),I7e=new np("layerConstraints.opposidePort"),Qge=new np("targetNode.modelOrder")}function cXt(ro,oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo;for(Po=G1(ro.b,0);Po.b!=Po.d.c;)if(Io=bo(q1(Po),40),!Iu(Io.c,pJ))for(vo=bo(ny(new Ou(null,new Du(bjt(Io,ro),16)),rw(new du,new Qs,new Kl,As($s(zv,1),Pl,108,0,[(ow(),oy)]))),15),oo==(_g(),qv)||oo==ey?vo.jd(new JW):vo.jd(new lie),Zo=vo.gc(),po=0;po0&&(Eo=bo(lS(bo(vo.Xb(po),65).a),8).a,Wo=Io.e.a+Io.f.a/2,To=bo(lS(bo(vo.Xb(po),65).a),8).b,Xo=Io.e.b+Io.f.b/2,fo>0&&lo.Math.abs(To-Xo)/(lo.Math.abs(Eo-Wo)/40)>50&&(Xo>To?iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a+fo/5.3,Io.e.b+Io.f.b*xo-fo/2)):iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a+fo/5.3,Io.e.b+Io.f.b*xo+fo/2)))),iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a,Io.e.b+Io.f.b*xo))):oo==ey?(Ao=na(Tl(bs(Io,(fp(),e_)))),Io.e.a-fo>Ao?iv(bo(vo.Xb(po),65).a,new Vl(Ao-co,Io.e.b+Io.f.b*xo)):bo(vo.Xb(po),65).a.b>0&&(Eo=bo(lS(bo(vo.Xb(po),65).a),8).a,Wo=Io.e.a+Io.f.a/2,To=bo(lS(bo(vo.Xb(po),65).a),8).b,Xo=Io.e.b+Io.f.b/2,fo>0&&lo.Math.abs(To-Xo)/(lo.Math.abs(Eo-Wo)/40)>50&&(Xo>To?iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a-fo/5.3,Io.e.b+Io.f.b*xo-fo/2)):iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a-fo/5.3,Io.e.b+Io.f.b*xo+fo/2)))),iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a,Io.e.b+Io.f.b*xo))):oo==Cx?(Ao=na(Tl(bs(Io,(fp(),ES)))),Io.e.b+Io.f.b+fo0&&(Eo=bo(lS(bo(vo.Xb(po),65).a),8).a,Wo=Io.e.a+Io.f.a/2,To=bo(lS(bo(vo.Xb(po),65).a),8).b,Xo=Io.e.b+Io.f.b/2,fo>0&&lo.Math.abs(Eo-Wo)/(lo.Math.abs(To-Xo)/40)>50&&(Wo>Eo?iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo-fo/2,Io.e.b+fo/5.3+Io.f.b)):iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo+fo/2,Io.e.b+fo/5.3+Io.f.b)))),iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo,Io.e.b+Io.f.b))):(Ao=na(Tl(bs(Io,(fp(),e_)))),wet(bo(vo.Xb(po),65),ro)?iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo,bo(lS(bo(vo.Xb(po),65).a),8).b)):Io.e.b-fo>Ao?iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo,Ao-co)):bo(vo.Xb(po),65).a.b>0&&(Eo=bo(lS(bo(vo.Xb(po),65).a),8).a,Wo=Io.e.a+Io.f.a/2,To=bo(lS(bo(vo.Xb(po),65).a),8).b,Xo=Io.e.b+Io.f.b/2,fo>0&&lo.Math.abs(Eo-Wo)/(lo.Math.abs(To-Xo)/40)>50&&(Wo>Eo?iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo-fo/2,Io.e.b-fo/5.3)):iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo+fo/2,Io.e.b-fo/5.3)))),iv(bo(vo.Xb(po),65).a,new Vl(Io.e.a+Io.f.a*xo,Io.e.b)))}function $0(){$0=qo;var ro,oo;oM=new np(Bft),D7=new np(Fft),zIe=(IE(),Ave),Awt=new Ru($Ce,zIe),$7=new Ru(pR,null),Rwt=new np(z6e),qIe=(AT(),mp(Ive,As($s(Nve,1),Pl,298,0,[Ove]))),EG=new Ru(cJ,qIe),kG=new Ru(_V,(_f(),!1)),VIe=(_g(),R_),tC=new Ru(v0e,VIe),UIe=(S5(),Wve),WIe=new Ru(SV,UIe),Nwt=new Ru(P6e,!1),XIe=(x5(),Gte),O7=new Ru(lJ,XIe),oNe=new BC(12),L4=new Ru(_6,oNe),CG=new Ru(kB,!1),Bve=new Ru(fJ,!1),$G=new Ru(TB,!1),uNe=(Im(),U3),zF=new Ru(B1e,uNe),PR=new np(uJ),AG=new np(hV),Vve=new np(VZ),Gve=new np(EB),QIe=new P2,K6=new Ru(PCe,QIe),Iwt=new Ru(HCe,!1),Mwt=new Ru(qCe,!1),ZIe=new mD,sM=new Ru(GCe,ZIe),zte=new Ru(TCe,!1),Fwt=new Ru(Pft,1),R7=new np(jft),A7=new np(zft),aM=new Ru(pV,!1),new Ru(Hft,!0),Ql(0),new Ru(qft,Ql(100)),new Ru(Vft,!1),Ql(0),new Ru(Gft,Ql(4e3)),Ql(0),new Ru(Wft,Ql(400)),new Ru(Uft,!1),new Ru(Kft,!1),new Ru(Yft,!0),new Ru(Xft,!1),HIe=(CQ(),Xve),Owt=new Ru(j6e,HIe),Pwt=new Ru(gCe,10),jwt=new Ru(mCe,10),pNe=new Ru(R1e,20),zwt=new Ru(vCe,10),gNe=new Ru(L1e,2),mNe=new Ru(m0e,10),vNe=new Ru(bCe,0),Hte=new Ru(xCe,5),bNe=new Ru(yCe,1),yNe=new Ru(wCe,1),rC=new Ru(iA,20),Hwt=new Ru(SCe,10),SNe=new Ru(_Ce,10),jR=new np(ECe),xNe=new KHe,wNe=new Ru(WCe,xNe),Lwt=new np(y0e),sNe=!1,Dwt=new Ru(b0e,sNe),eNe=new BC(5),JIe=new Ru(OCe,eNe),tNe=(K$(),oo=bo(PS(Tv),9),new sx(oo,bo(cS(oo,oo.length),9),0)),I7=new Ru(vN,tNe),lNe=(R9(),W3),aNe=new Ru(MCe,lNe),Pve=new np(DCe),jve=new np(LCe),zve=new np(BCe),Fve=new np(FCe),nNe=(ro=bo(PS(YF),9),new sx(ro,bo(cS(ro,ro.length),9),0)),nC=new Ru(X9,nNe),iNe=Tu((ww(),dM)),V3=new Ru(gR,iNe),rNe=new Vl(0,0),N7=new Ru(mR,rNe),OA=new Ru(mN,!1),GIe=(g_(),lM),Dve=new Ru(jCe,GIe),Mve=new Ru(GZ,!1),Ql(1),new Ru(Qft,null),cNe=new np(VCe),Hve=new np(zCe),hNe=(nu(),gy),M7=new Ru(CCe,hNe),Ew=new np(kCe),fNe=(sw(),Tu(K3)),IA=new Ru(bN,fNe),qve=new Ru(ICe,!1),dNe=new Ru(NCe,!0),Vte=new Ru(gV,1),_Ne=new Ru(H6e,null),RG=new Ru(mV,150),qte=new Ru(vV,1.414),zR=new Ru(E6,null),qwt=new Ru(q6e,1),TG=new Ru(ACe,!1),Lve=new Ru(RCe,!1),KIe=new Ru(O1e,1),YIe=(tZ(),Kve),new Ru(Zft,YIe),Bwt=!0,Gwt=(K8(),DA),Wwt=DA,Vwt=DA}function rv(){rv=qo,S9e=new Xp("DIRECTION_PREPROCESSOR",0),y9e=new Xp("COMMENT_PREPROCESSOR",1),s7=new Xp("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),gge=new Xp("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),z9e=new Xp("PARTITION_PREPROCESSOR",4),pee=new Xp("LABEL_DUMMY_INSERTER",5),kee=new Xp("SELF_LOOP_PREPROCESSOR",6),mA=new Xp("LAYER_CONSTRAINT_PREPROCESSOR",7),P9e=new Xp("PARTITION_MIDPROCESSOR",8),R9e=new Xp("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),B9e=new Xp("NODE_PROMOTION",10),gA=new Xp("LAYER_CONSTRAINT_POSTPROCESSOR",11),j9e=new Xp("PARTITION_POSTPROCESSOR",12),C9e=new Xp("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),H9e=new Xp("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),h9e=new Xp("BREAKING_POINT_INSERTER",15),yee=new Xp("LONG_EDGE_SPLITTER",16),mge=new Xp("PORT_SIDE_PROCESSOR",17),dee=new Xp("INVERTED_PORT_PROCESSOR",18),See=new Xp("PORT_LIST_SORTER",19),V9e=new Xp("SORT_BY_INPUT_ORDER_OF_MODEL",20),xee=new Xp("NORTH_SOUTH_PORT_PREPROCESSOR",21),p9e=new Xp("BREAKING_POINT_PROCESSOR",22),F9e=new Xp(Vut,23),G9e=new Xp(Gut,24),_ee=new Xp("SELF_LOOP_PORT_RESTORER",25),q9e=new Xp("SINGLE_EDGE_GRAPH_WRAPPER",26),hee=new Xp("IN_LAYER_CONSTRAINT_PROCESSOR",27),E9e=new Xp("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),D9e=new Xp("LABEL_AND_NODE_SIZE_PROCESSOR",29),M9e=new Xp("INNERMOST_NODE_MARGIN_CALCULATOR",30),Tee=new Xp("SELF_LOOP_ROUTER",31),v9e=new Xp("COMMENT_NODE_MARGIN_CALCULATOR",32),fee=new Xp("END_LABEL_PREPROCESSOR",33),mee=new Xp("LABEL_DUMMY_SWITCHER",34),m9e=new Xp("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),MN=new Xp("LABEL_SIDE_SELECTOR",36),I9e=new Xp("HYPEREDGE_DUMMY_MERGER",37),$9e=new Xp("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),L9e=new Xp("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),tF=new Xp("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),w9e=new Xp("CONSTRAINTS_POSTPROCESSOR",41),b9e=new Xp("COMMENT_POSTPROCESSOR",42),N9e=new Xp("HYPERNODE_PROCESSOR",43),A9e=new Xp("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),bee=new Xp("LONG_EDGE_JOINER",45),Eee=new Xp("SELF_LOOP_POSTPROCESSOR",46),g9e=new Xp("BREAKING_POINT_REMOVER",47),wee=new Xp("NORTH_SOUTH_PORT_POSTPROCESSOR",48),O9e=new Xp("HORIZONTAL_COMPACTOR",49),gee=new Xp("LABEL_DUMMY_REMOVER",50),k9e=new Xp("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),_9e=new Xp("END_LABEL_SORTER",52),UV=new Xp("REVERSED_EDGE_RESTORER",53),uee=new Xp("END_LABEL_POSTPROCESSOR",54),T9e=new Xp("HIERARCHICAL_NODE_RESIZER",55),x9e=new Xp("DIRECTION_POSTPROCESSOR",56)}function D3e(){D3e=qo,G7e=(YH(),Mee),imt=new Ru(RTe,G7e),mmt=new Ru(OTe,(_f(),!1)),Q7e=(EX(),Vge),xmt=new Ru(YZ,Q7e),Lmt=new Ru(ITe,!1),Bmt=new Ru(NTe,!0),Rgt=new Ru(MTe,!1),o8e=(UH(),kme),Zmt=new Ru(DTe,o8e),Ql(1),svt=new Ru(LTe,Ql(7)),avt=new Ru(BTe,!1),vmt=new Ru(FTe,!1),V7e=(y4(),Oge),rmt=new Ru(V1e,V7e),e8e=(E4(),vme),Dmt=new Ru(xV,e8e),Z7e=(yx(),nG),Cmt=new Ru(PTe,Z7e),Ql(-1),Tmt=new Ru(jTe,null),Ql(-1),$mt=new Ru(zTe,Ql(-1)),Ql(-1),Amt=new Ru(G1e,Ql(4)),Ql(-1),Omt=new Ru(W1e,Ql(2)),J7e=(qx(),dte),Mmt=new Ru(U1e,J7e),Ql(0),Nmt=new Ru(K1e,Ql(0)),Emt=new Ru(Y1e,Ql(q0)),q7e=(kL(),rF),nmt=new Ru(AB,q7e),zgt=new Ru(HTe,!1),Kgt=new Ru(X1e,.1),emt=new Ru(Q1e,!1),Xgt=new Ru(qTe,null),Qgt=new Ru(VTe,null),Ql(-1),Zgt=new Ru(GTe,null),Ql(-1),Jgt=new Ru(WTe,Ql(-1)),Ql(0),Hgt=new Ru(UTe,Ql(40)),H7e=(SI(),Hge),Wgt=new Ru(Z1e,H7e),z7e=QV,qgt=new Ru(XZ,z7e),i8e=(GL(),vF),Qmt=new Ru(Q9,i8e),Hmt=new np(QZ),t8e=(HH(),Lee),Fmt=new Ru(J1e,t8e),n8e=(Aq(),Bee),jmt=new Ru(e0e,n8e),Gmt=new Ru(t0e,.3),Umt=new np(n0e),r8e=(H$(),fte),Kmt=new Ru(r0e,r8e),K7e=(dQ(),Cme),cmt=new Ru(KTe,K7e),Y7e=(IL(),Ame),umt=new Ru(YTe,Y7e),X7e=(RI(),wF),fmt=new Ru(ZZ,X7e),hmt=new Ru(JZ,.2),amt=new Ru(i0e,2),nvt=new Ru(XTe,null),ivt=new Ru(QTe,10),rvt=new Ru(ZTe,10),ovt=new Ru(JTe,20),Ql(0),Jmt=new Ru(eCe,Ql(0)),Ql(0),evt=new Ru(tCe,Ql(0)),Ql(0),tvt=new Ru(nCe,Ql(0)),Ogt=new Ru(o0e,!1),B7e=(WI(),iF),Ngt=new Ru(rCe,B7e),L7e=(DX(),Age),Igt=new Ru(iCe,L7e),ymt=new Ru(eJ,!1),Ql(0),bmt=new Ru(s0e,Ql(16)),Ql(0),wmt=new Ru(a0e,Ql(5)),l8e=(mQ(),Ime),Cvt=new Ru(R5,l8e),lvt=new Ru(tJ,10),fvt=new Ru(nJ,1),a8e=(ZX(),Nee),bvt=new Ru(RB,a8e),pvt=new np(l0e),s8e=Ql(1),Ql(0),mvt=new Ru(c0e,s8e),c8e=(QX(),Ome),Ovt=new Ru(rJ,c8e),$vt=new np(iJ),_vt=new Ru(oJ,!0),xvt=new Ru(sJ,2),kvt=new Ru(u0e,!0),U7e=(rZ(),Dee),smt=new Ru(oCe,U7e),W7e=(tR(),FN),omt=new Ru(sCe,W7e),j7e=(Q_(),I4),jgt=new Ru(aJ,j7e),Pgt=new Ru(aCe,!1),Fgt=new Ru(lCe,!1),F7e=(CT(),pA),Mgt=new Ru(f0e,F7e),P7e=(DL(),bme),Bgt=new Ru(cCe,P7e),Dgt=new Ru(d0e,0),Lgt=new Ru(h0e,0),_mt=Ige,Smt=XV,Rmt=cte,Imt=cte,kmt=mme,Ygt=(x5(),B4),tmt=rF,Ugt=rF,Vgt=rF,Ggt=B4,qmt=bF,Vmt=vF,Pmt=vF,zmt=vF,Wmt=Sme,Xmt=bF,Ymt=bF,dmt=(S5(),HR),pmt=HR,gmt=wF,lmt=OG,cvt=tM,uvt=$A,dvt=tM,hvt=$A,yvt=tM,wvt=$A,gvt=Rge,vvt=Nee,Ivt=tM,Nvt=$A,Avt=tM,Rvt=$A,Evt=$A,Svt=$A,Tvt=$A}function uXt(ro,oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu,Qu,b1,v0,Op,dw,Vv,nx,z7,V4,OS,IS,aC,KR,nT,YR,mE,ZE,J6,XR,H7,vE,lC,F5,NSt,WMe,e$,lP,hbe,QR,cP,qA,uP,pbe,MSt;for(WMe=0,v0=oo,Vv=0,V4=v0.length;Vv0&&(ro.a[mE.p]=WMe++)}for(cP=0,Op=co,nx=0,OS=Op.length;nx0;){for(mE=(T1(H7.b>0),bo(H7.a.Xb(H7.c=--H7.b),12)),XR=0,Eo=new _s(mE.e);Eo.a0&&(mE.j==(nu(),s1)?(ro.a[mE.p]=cP,++cP):(ro.a[mE.p]=cP+IS+KR,++KR))}cP+=KR}for(J6=new H1,Zo=new V_,b1=oo,dw=0,z7=b1.length;dwAo.b&&(Ao.b=vE)):mE.i.c==NSt&&(vEAo.c&&(Ao.c=vE));for(sI(ws,0,ws.length,null),QR=Al(Q1,E0,28,ws.length,15,1),fo=Al(Q1,E0,28,cP+1,15,1),Rs=0;Rs0;)ru%2>0&&(po+=pbe[ru+1]),ru=(ru-1)/2|0,++pbe[ru];for(Eu=Al(Obt,Xu,374,ws.length*2,0,1),Ys=0;Ys0&&TH(dw.f),zl(Rs,_Ne)!=null&&(Eo=bo(zl(Rs,_Ne),347),J6=Eo.Tg(Rs),d9(Rs,lo.Math.max(Rs.g,J6.a),lo.Math.max(Rs.f,J6.b)));if(OS=bo(zl(oo,L4),107),Xo=oo.g-(OS.b+OS.c),Wo=oo.f-(OS.d+OS.a),vE.bh("Available Child Area: ("+Xo+"|"+Wo+")"),tp(oo,$7,Xo/Wo),tnt(oo,po,fo.eh(z7)),bo(zl(oo,zR),280)==Qte&&(O3e(oo),d9(oo,OS.b+na(Tl(zl(oo,R7)))+OS.c,OS.d+na(Tl(zl(oo,A7)))+OS.a)),vE.bh("Executed layout algorithm: "+u0(zl(oo,oM))+" on node "+oo.k),bo(zl(oo,zR),280)==DA){if(Xo<0||Wo<0)throw Cs(new Q5("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+oo.k));for(h_(oo,R7)||h_(oo,A7)||O3e(oo),ws=na(Tl(zl(oo,R7))),Zo=na(Tl(zl(oo,A7))),vE.bh("Desired Child Area: ("+ws+"|"+Zo+")"),aC=Xo/ws,KR=Wo/Zo,IS=lo.Math.min(aC,lo.Math.min(KR,na(Tl(zl(oo,qwt))))),tp(oo,Vte,IS),vE.bh(oo.k+" -- Local Scale Factor (X|Y): ("+aC+"|"+KR+")"),Ys=bo(zl(oo,EG),21),vo=0,xo=0,IS'?":Iu(Rdt,ro)?"'(?<' or '(? toIndex: ",Z3e=", toIndex: ",J3e="Index: ",eTe=", Size: ",dN="org.eclipse.elk.alg.common",g0={50:1},Jct="org.eclipse.elk.alg.common.compaction",eut="Scanline/EventHandler",PE="org.eclipse.elk.alg.common.compaction.oned",tut="CNode belongs to another CGroup.",nut="ISpacingsHandler/1",b1e="The ",y1e=" instance has been finished already.",rut="The direction ",iut=" is not supported by the CGraph instance.",out="OneDimensionalCompactor",sut="OneDimensionalCompactor/lambda$0$Type",aut="Quadruplet",lut="ScanlineConstraintCalculator",cut="ScanlineConstraintCalculator/ConstraintsScanlineHandler",uut="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",fut="ScanlineConstraintCalculator/Timestamp",dut="ScanlineConstraintCalculator/lambda$0$Type",rE={178:1,46:1},w1e="org.eclipse.elk.alg.common.compaction.options",py="org.eclipse.elk.core.data",tTe="org.eclipse.elk.polyomino.traversalStrategy",nTe="org.eclipse.elk.polyomino.lowLevelSort",rTe="org.eclipse.elk.polyomino.highLevelSort",iTe="org.eclipse.elk.polyomino.fill",Vx={134:1},x1e="polyomino",xB="org.eclipse.elk.alg.common.networksimplex",jE={183:1,3:1,4:1},hut="org.eclipse.elk.alg.common.nodespacing",MT="org.eclipse.elk.alg.common.nodespacing.cellsystem",hN="CENTER",put={217:1,336:1},oTe={3:1,4:1,5:1,603:1},fR="LEFT",dR="RIGHT",sTe="Vertical alignment cannot be null",aTe="BOTTOM",FZ="org.eclipse.elk.alg.common.nodespacing.internal",SB="UNDEFINED",x_=.01,uV="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",gut="LabelPlacer/lambda$0$Type",mut="LabelPlacer/lambda$1$Type",vut="portRatioOrPosition",pN="org.eclipse.elk.alg.common.overlaps",S1e="DOWN",iE="org.eclipse.elk.alg.common.polyomino",PZ="NORTH",_1e="EAST",E1e="SOUTH",k1e="WEST",jZ="org.eclipse.elk.alg.common.polyomino.structures",lTe="Direction",T1e="Grid is only of size ",C1e=". Requested point (",$1e=") is out of bounds.",zZ=" Given center based coordinates were (",fV="org.eclipse.elk.graph.properties",but="IPropertyHolder",cTe={3:1,96:1,137:1},hR="org.eclipse.elk.alg.common.spore",yut="org.eclipse.elk.alg.common.utils",DT={205:1},U9="org.eclipse.elk.core",wut="Connected Components Compaction",xut="org.eclipse.elk.alg.disco",HZ="org.eclipse.elk.alg.disco.graph",A1e="org.eclipse.elk.alg.disco.options",uTe="CompactionStrategy",fTe="org.eclipse.elk.disco.componentCompaction.strategy",dTe="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",hTe="org.eclipse.elk.disco.debug.discoGraph",pTe="org.eclipse.elk.disco.debug.discoPolys",Sut="componentCompaction",LT="org.eclipse.elk.disco",R1e="org.eclipse.elk.spacing.componentComponent",O1e="org.eclipse.elk.edge.thickness",pR="org.eclipse.elk.aspectRatio",_6="org.eclipse.elk.padding",K9="org.eclipse.elk.alg.disco.transform",I1e=1.5707963267948966,Y9=17976931348623157e292,rA={3:1,4:1,5:1,198:1},_ut={3:1,6:1,4:1,5:1,100:1,115:1},N1e="org.eclipse.elk.alg.force",gTe="ComponentsProcessor",Eut="ComponentsProcessor/1",mTe="ElkGraphImporter/lambda$0$Type",dV="org.eclipse.elk.alg.force.graph",kut="Component Layout",vTe="org.eclipse.elk.alg.force.model",qZ="org.eclipse.elk.force.model",bTe="org.eclipse.elk.force.iterations",yTe="org.eclipse.elk.force.repulsivePower",M1e="org.eclipse.elk.force.temperature",oE=.001,D1e="org.eclipse.elk.force.repulsion",_B="org.eclipse.elk.alg.force.options",gN=1.600000023841858,x2="org.eclipse.elk.force",hV="org.eclipse.elk.priority",iA="org.eclipse.elk.spacing.nodeNode",L1e="org.eclipse.elk.spacing.edgeLabel",VZ="org.eclipse.elk.randomSeed",EB="org.eclipse.elk.separateConnectedComponents",kB="org.eclipse.elk.interactive",B1e="org.eclipse.elk.portConstraints",GZ="org.eclipse.elk.edgeLabels.inline",TB="org.eclipse.elk.omitNodeMicroLayout",mN="org.eclipse.elk.nodeSize.fixedGraphSize",gR="org.eclipse.elk.nodeSize.options",X9="org.eclipse.elk.nodeSize.constraints",vN="org.eclipse.elk.nodeLabels.placement",bN="org.eclipse.elk.portLabels.placement",pV="org.eclipse.elk.topdownLayout",gV="org.eclipse.elk.topdown.scaleFactor",mV="org.eclipse.elk.topdown.hierarchicalNodeWidth",vV="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",E6="org.eclipse.elk.topdown.nodeType",wTe="origin",Tut="random",Cut="boundingBox.upLeft",$ut="boundingBox.lowRight",xTe="org.eclipse.elk.stress.fixed",STe="org.eclipse.elk.stress.desiredEdgeLength",_Te="org.eclipse.elk.stress.dimension",ETe="org.eclipse.elk.stress.epsilon",kTe="org.eclipse.elk.stress.iterationLimit",A3="org.eclipse.elk.stress",Aut="ELK Stress",mR="org.eclipse.elk.nodeSize.minimum",WZ="org.eclipse.elk.alg.force.stress",Rut="Layered layout",vR="org.eclipse.elk.alg.layered",bV="org.eclipse.elk.alg.layered.compaction.components",CB="org.eclipse.elk.alg.layered.compaction.oned",UZ="org.eclipse.elk.alg.layered.compaction.oned.algs",BT="org.eclipse.elk.alg.layered.compaction.recthull",S_="org.eclipse.elk.alg.layered.components",sE="NONE",TTe="MODEL_ORDER",My={3:1,6:1,4:1,9:1,5:1,126:1},Out={3:1,6:1,4:1,5:1,150:1,100:1,115:1},KZ="org.eclipse.elk.alg.layered.compound",hp={47:1},Yy="org.eclipse.elk.alg.layered.graph",F1e=" -> ",Iut="Not supported by LGraph",CTe="Port side is undefined",P1e={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},T4={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},Nut={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},Mut=`([{"' \r `,Dut=`)]}"' \r -`,Lut="The given string contains parts that cannot be parsed as numbers.",yV="org.eclipse.elk.core.math",But={3:1,4:1,140:1,214:1,423:1},Fut={3:1,4:1,107:1,214:1,423:1},C4="org.eclipse.elk.alg.layered.graph.transform",Put="ElkGraphImporter",jut="ElkGraphImporter/lambda$1$Type",zut="ElkGraphImporter/lambda$2$Type",Hut="ElkGraphImporter/lambda$4$Type",f1="org.eclipse.elk.alg.layered.intermediate",qut="Node margin calculation",Vut="ONE_SIDED_GREEDY_SWITCH",Gut="TWO_SIDED_GREEDY_SWITCH",j1e="No implementation is available for the layout processor ",z1e="IntermediateProcessorStrategy",H1e="Node '",Wut="FIRST_SEPARATE",Uut="LAST_SEPARATE",Kut="Odd port side processing",cm="org.eclipse.elk.alg.layered.intermediate.compaction",$B="org.eclipse.elk.alg.layered.intermediate.greedyswitch",zE="org.eclipse.elk.alg.layered.p3order.counting",wV={230:1},bR="org.eclipse.elk.alg.layered.intermediate.loops",Yw="org.eclipse.elk.alg.layered.intermediate.loops.ordering",R3="org.eclipse.elk.alg.layered.intermediate.loops.routing",$Te="org.eclipse.elk.alg.layered.intermediate.preserveorder",aE="org.eclipse.elk.alg.layered.intermediate.wrapping",Dy="org.eclipse.elk.alg.layered.options",q1e="INTERACTIVE",ATe="GREEDY",Yut="DEPTH_FIRST",Xut="EDGE_LENGTH",Qut="SELF_LOOPS",Zut="firstTryWithInitialOrder",RTe="org.eclipse.elk.layered.directionCongruency",OTe="org.eclipse.elk.layered.feedbackEdges",YZ="org.eclipse.elk.layered.interactiveReferencePoint",ITe="org.eclipse.elk.layered.mergeEdges",NTe="org.eclipse.elk.layered.mergeHierarchyEdges",MTe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",DTe="org.eclipse.elk.layered.portSortingStrategy",LTe="org.eclipse.elk.layered.thoroughness",BTe="org.eclipse.elk.layered.unnecessaryBendpoints",FTe="org.eclipse.elk.layered.generatePositionAndLayerIds",V1e="org.eclipse.elk.layered.cycleBreaking.strategy",xV="org.eclipse.elk.layered.layering.strategy",PTe="org.eclipse.elk.layered.layering.layerConstraint",jTe="org.eclipse.elk.layered.layering.layerChoiceConstraint",zTe="org.eclipse.elk.layered.layering.layerId",G1e="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",W1e="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",U1e="org.eclipse.elk.layered.layering.nodePromotion.strategy",K1e="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",Y1e="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",AB="org.eclipse.elk.layered.crossingMinimization.strategy",HTe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",X1e="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Q1e="org.eclipse.elk.layered.crossingMinimization.semiInteractive",qTe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",VTe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",GTe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",WTe="org.eclipse.elk.layered.crossingMinimization.positionId",UTe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Z1e="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",XZ="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",Q9="org.eclipse.elk.layered.nodePlacement.strategy",QZ="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",J1e="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",e0e="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",t0e="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",n0e="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",r0e="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",KTe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",YTe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",ZZ="org.eclipse.elk.layered.edgeRouting.splines.mode",JZ="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",i0e="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",XTe="org.eclipse.elk.layered.spacing.baseValue",QTe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",ZTe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",JTe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",eCe="org.eclipse.elk.layered.priority.direction",tCe="org.eclipse.elk.layered.priority.shortness",nCe="org.eclipse.elk.layered.priority.straightness",o0e="org.eclipse.elk.layered.compaction.connectedComponents",rCe="org.eclipse.elk.layered.compaction.postCompaction.strategy",iCe="org.eclipse.elk.layered.compaction.postCompaction.constraints",eJ="org.eclipse.elk.layered.highDegreeNodes.treatment",s0e="org.eclipse.elk.layered.highDegreeNodes.threshold",a0e="org.eclipse.elk.layered.highDegreeNodes.treeHeight",R5="org.eclipse.elk.layered.wrapping.strategy",tJ="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",nJ="org.eclipse.elk.layered.wrapping.correctionFactor",RB="org.eclipse.elk.layered.wrapping.cutting.strategy",l0e="org.eclipse.elk.layered.wrapping.cutting.cuts",c0e="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",rJ="org.eclipse.elk.layered.wrapping.validify.strategy",iJ="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",oJ="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",sJ="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",u0e="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",oCe="org.eclipse.elk.layered.edgeLabels.sideSelection",sCe="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",aJ="org.eclipse.elk.layered.considerModelOrder.strategy",aCe="org.eclipse.elk.layered.considerModelOrder.portModelOrder",lCe="org.eclipse.elk.layered.considerModelOrder.noModelOrder",f0e="org.eclipse.elk.layered.considerModelOrder.components",cCe="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",d0e="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",h0e="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",p0e="layering",Jut="layering.minWidth",eft="layering.nodePromotion",yN="crossingMinimization",lJ="org.eclipse.elk.hierarchyHandling",tft="crossingMinimization.greedySwitch",nft="nodePlacement",rft="nodePlacement.bk",ift="edgeRouting",SV="org.eclipse.elk.edgeRouting",__="spacing",uCe="priority",fCe="compaction",oft="compaction.postCompaction",sft="Specifies whether and how post-process compaction is applied.",dCe="highDegreeNodes",hCe="wrapping",aft="wrapping.cutting",lft="wrapping.validify",pCe="wrapping.multiEdge",g0e="edgeLabels",OB="considerModelOrder",gCe="org.eclipse.elk.spacing.commentComment",mCe="org.eclipse.elk.spacing.commentNode",vCe="org.eclipse.elk.spacing.edgeEdge",m0e="org.eclipse.elk.spacing.edgeNode",bCe="org.eclipse.elk.spacing.labelLabel",yCe="org.eclipse.elk.spacing.labelPortHorizontal",wCe="org.eclipse.elk.spacing.labelPortVertical",xCe="org.eclipse.elk.spacing.labelNode",SCe="org.eclipse.elk.spacing.nodeSelfLoop",_Ce="org.eclipse.elk.spacing.portPort",ECe="org.eclipse.elk.spacing.individual",kCe="org.eclipse.elk.port.borderOffset",TCe="org.eclipse.elk.noLayout",CCe="org.eclipse.elk.port.side",_V="org.eclipse.elk.debugMode",$Ce="org.eclipse.elk.alignment",ACe="org.eclipse.elk.insideSelfLoops.activate",RCe="org.eclipse.elk.insideSelfLoops.yo",v0e="org.eclipse.elk.direction",OCe="org.eclipse.elk.nodeLabels.padding",ICe="org.eclipse.elk.portLabels.nextToPortIfPossible",NCe="org.eclipse.elk.portLabels.treatAsGroup",MCe="org.eclipse.elk.portAlignment.default",DCe="org.eclipse.elk.portAlignment.north",LCe="org.eclipse.elk.portAlignment.south",BCe="org.eclipse.elk.portAlignment.west",FCe="org.eclipse.elk.portAlignment.east",cJ="org.eclipse.elk.contentAlignment",PCe="org.eclipse.elk.junctionPoints",jCe="org.eclipse.elk.edgeLabels.placement",zCe="org.eclipse.elk.port.index",HCe="org.eclipse.elk.commentBox",qCe="org.eclipse.elk.hypernode",VCe="org.eclipse.elk.port.anchor",b0e="org.eclipse.elk.partitioning.activate",y0e="org.eclipse.elk.partitioning.partition",uJ="org.eclipse.elk.position",GCe="org.eclipse.elk.margins",WCe="org.eclipse.elk.spacing.portsSurrounding",fJ="org.eclipse.elk.interactiveLayout",wy="org.eclipse.elk.core.util",UCe={3:1,4:1,5:1,601:1},cft="NETWORK_SIMPLEX",KCe="SIMPLE",Ev={106:1,47:1},dJ="org.eclipse.elk.alg.layered.p1cycles",O5="org.eclipse.elk.alg.layered.p2layers",YCe={413:1,230:1},uft={846:1,3:1,4:1},K2="org.eclipse.elk.alg.layered.p3order",kv="org.eclipse.elk.alg.layered.p4nodes",fft={3:1,4:1,5:1,854:1},lE=1e-5,O3="org.eclipse.elk.alg.layered.p4nodes.bk",w0e="org.eclipse.elk.alg.layered.p5edges",XS="org.eclipse.elk.alg.layered.p5edges.orthogonal",x0e="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",S0e=1e-6,oA="org.eclipse.elk.alg.layered.p5edges.splines",_0e=.09999999999999998,hJ=1e-8,dft=4.71238898038469,XCe=3.141592653589793,I5="org.eclipse.elk.alg.mrtree",E0e=.10000000149011612,pJ="SUPER_ROOT",IB="org.eclipse.elk.alg.mrtree.graph",QCe=-17976931348623157e292,Xy="org.eclipse.elk.alg.mrtree.intermediate",hft="Processor compute fanout",gJ={3:1,6:1,4:1,5:1,534:1,100:1,115:1},pft="Set neighbors in level",EV="org.eclipse.elk.alg.mrtree.options",gft="DESCENDANTS",ZCe="org.eclipse.elk.mrtree.compaction",JCe="org.eclipse.elk.mrtree.edgeEndTextureLength",e6e="org.eclipse.elk.mrtree.treeLevel",t6e="org.eclipse.elk.mrtree.positionConstraint",n6e="org.eclipse.elk.mrtree.weighting",r6e="org.eclipse.elk.mrtree.edgeRoutingMode",i6e="org.eclipse.elk.mrtree.searchOrder",mft="Position Constraint",S2="org.eclipse.elk.mrtree",vft="org.eclipse.elk.tree",bft="Processor arrange level",wN="org.eclipse.elk.alg.mrtree.p2order",Dw="org.eclipse.elk.alg.mrtree.p4route",o6e="org.eclipse.elk.alg.radial",FT=6.283185307179586,s6e="Before",a6e=5e-324,mJ="After",l6e="org.eclipse.elk.alg.radial.intermediate",yft="COMPACTION",k0e="org.eclipse.elk.alg.radial.intermediate.compaction",wft={3:1,4:1,5:1,100:1},c6e="org.eclipse.elk.alg.radial.intermediate.optimization",T0e="No implementation is available for the layout option ",NB="org.eclipse.elk.alg.radial.options",u6e="org.eclipse.elk.radial.centerOnRoot",f6e="org.eclipse.elk.radial.orderId",d6e="org.eclipse.elk.radial.radius",vJ="org.eclipse.elk.radial.rotate",C0e="org.eclipse.elk.radial.compactor",$0e="org.eclipse.elk.radial.compactionStepSize",h6e="org.eclipse.elk.radial.sorter",p6e="org.eclipse.elk.radial.wedgeCriteria",g6e="org.eclipse.elk.radial.optimizationCriteria",A0e="org.eclipse.elk.radial.rotation.targetAngle",R0e="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",m6e="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",xft="Compaction",v6e="rotation",Sx="org.eclipse.elk.radial",Sft="org.eclipse.elk.alg.radial.p1position.wedge",b6e="org.eclipse.elk.alg.radial.sorting",_ft=5.497787143782138,Eft=3.9269908169872414,kft=2.356194490192345,Tft="org.eclipse.elk.alg.rectpacking",bJ="org.eclipse.elk.alg.rectpacking.intermediate",O0e="org.eclipse.elk.alg.rectpacking.options",y6e="org.eclipse.elk.rectpacking.trybox",w6e="org.eclipse.elk.rectpacking.currentPosition",x6e="org.eclipse.elk.rectpacking.desiredPosition",S6e="org.eclipse.elk.rectpacking.inNewRow",_6e="org.eclipse.elk.rectpacking.widthApproximation.strategy",E6e="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",k6e="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",T6e="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",C6e="org.eclipse.elk.rectpacking.packing.strategy",$6e="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",A6e="org.eclipse.elk.rectpacking.packing.compaction.iterations",R6e="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",I0e="widthApproximation",Cft="Compaction Strategy",$ft="packing.compaction",Sw="org.eclipse.elk.rectpacking",xN="org.eclipse.elk.alg.rectpacking.p1widthapproximation",yJ="org.eclipse.elk.alg.rectpacking.p2packing",Aft="No Compaction",O6e="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",kV="org.eclipse.elk.alg.rectpacking.util",wJ="No implementation available for ",sA="org.eclipse.elk.alg.spore",aA="org.eclipse.elk.alg.spore.options",k6="org.eclipse.elk.sporeCompaction",N0e="org.eclipse.elk.underlyingLayoutAlgorithm",I6e="org.eclipse.elk.processingOrder.treeConstruction",N6e="org.eclipse.elk.processingOrder.spanningTreeCostFunction",M0e="org.eclipse.elk.processingOrder.preferredRoot",D0e="org.eclipse.elk.processingOrder.rootSelection",L0e="org.eclipse.elk.structure.structureExtractionStrategy",M6e="org.eclipse.elk.compaction.compactionStrategy",D6e="org.eclipse.elk.compaction.orthogonal",L6e="org.eclipse.elk.overlapRemoval.maxIterations",B6e="org.eclipse.elk.overlapRemoval.runScanline",B0e="processingOrder",Rft="overlapRemoval",SN="org.eclipse.elk.sporeOverlap",Oft="org.eclipse.elk.alg.spore.p1structure",F0e="org.eclipse.elk.alg.spore.p2processingorder",P0e="org.eclipse.elk.alg.spore.p3execution",Ift="Topdown Layout",Nft="Invalid index: ",_N="org.eclipse.elk.core.alg",Z9={341:1},lA={295:1},Mft="Make sure its type is registered with the ",F6e=" utility class.",EN="true",j0e="false",Dft="Couldn't clone property '",T6=.05,_w="org.eclipse.elk.core.options",Lft=1.2999999523162842,C6="org.eclipse.elk.box",P6e="org.eclipse.elk.expandNodes",j6e="org.eclipse.elk.box.packingMode",Bft="org.eclipse.elk.algorithm",Fft="org.eclipse.elk.resolvedAlgorithm",z6e="org.eclipse.elk.bendPoints",gXt="org.eclipse.elk.labelManager",Pft="org.eclipse.elk.scaleFactor",jft="org.eclipse.elk.childAreaWidth",zft="org.eclipse.elk.childAreaHeight",Hft="org.eclipse.elk.animate",qft="org.eclipse.elk.animTimeFactor",Vft="org.eclipse.elk.layoutAncestors",Gft="org.eclipse.elk.maxAnimTime",Wft="org.eclipse.elk.minAnimTime",Uft="org.eclipse.elk.progressBar",Kft="org.eclipse.elk.validateGraph",Yft="org.eclipse.elk.validateOptions",Xft="org.eclipse.elk.zoomToFit",mXt="org.eclipse.elk.font.name",Qft="org.eclipse.elk.font.size",H6e="org.eclipse.elk.topdown.sizeApproximator",q6e="org.eclipse.elk.topdown.scaleCap",Zft="org.eclipse.elk.edge.type",Jft="partitioning",edt="nodeLabels",xJ="portAlignment",z0e="nodeSize",H0e="port",V6e="portLabels",TV="topdown",tdt="insideSelfLoops",MB="org.eclipse.elk.fixed",SJ="org.eclipse.elk.random",G6e={3:1,34:1,22:1,347:1},ndt="port must have a parent node to calculate the port side",rdt="The edge needs to have exactly one edge section. Found: ",DB="org.eclipse.elk.core.util.adapters",_x="org.eclipse.emf.ecore",J9="org.eclipse.elk.graph",idt="EMapPropertyHolder",odt="ElkBendPoint",sdt="ElkGraphElement",adt="ElkConnectableShape",W6e="ElkEdge",ldt="ElkEdgeSection",cdt="EModelElement",udt="ENamedElement",U6e="ElkLabel",K6e="ElkNode",Y6e="ElkPort",fdt={94:1,93:1},yR="org.eclipse.emf.common.notify.impl",I3="The feature '",LB="' is not a valid changeable feature",ddt="Expecting null",q0e="' is not a valid feature",hdt="The feature ID",pdt=" is not a valid feature ID",Cy=32768,gdt={110:1,94:1,93:1,58:1,54:1,99:1},_h="org.eclipse.emf.ecore.impl",PT="org.eclipse.elk.graph.impl",BB="Recursive containment not allowed for ",kN="The datatype '",$6="' is not a valid classifier",V0e="The value '",e7={195:1,3:1,4:1},G0e="The class '",TN="http://www.eclipse.org/elk/ElkGraph",X6e="property",FB="value",W0e="source",mdt="properties",vdt="identifier",U0e="height",K0e="width",Y0e="parent",X0e="text",Q0e="children",bdt="hierarchical",Q6e="sources",Z0e="targets",Z6e="sections",_J="bendPoints",J6e="outgoingShape",e$e="incomingShape",t$e="outgoingSections",n$e="incomingSections",lv="org.eclipse.emf.common.util",r$e="Severe implementation error in the Json to ElkGraph importer.",cE="id",qm="org.eclipse.elk.graph.json",i$e="Unhandled parameter types: ",ydt="startPoint",wdt="An edge must have at least one source and one target (edge id: '",CN="').",xdt="Referenced edge section does not exist: ",Sdt=" (edge id: '",o$e="target",_dt="sourcePoint",Edt="targetPoint",EJ="group",B0="name",kdt="connectableShape cannot be null",Tdt="edge cannot be null",J0e="Passed edge is not 'simple'.",kJ="org.eclipse.elk.graph.util",CV="The 'no duplicates' constraint is violated",epe="targetIndex=",jT=", size=",tpe="sourceIndex=",uE={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},npe={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},TJ="logging",Cdt="measureExecutionTime",$dt="parser.parse.1",Adt="parser.parse.2",CJ="parser.next.1",rpe="parser.next.2",Rdt="parser.next.3",Odt="parser.next.4",zT="parser.factor.1",s$e="parser.factor.2",Idt="parser.factor.3",Ndt="parser.factor.4",Mdt="parser.factor.5",Ddt="parser.factor.6",Ldt="parser.atom.1",Bdt="parser.atom.2",Fdt="parser.atom.3",a$e="parser.atom.4",ipe="parser.atom.5",l$e="parser.cc.1",$J="parser.cc.2",Pdt="parser.cc.3",jdt="parser.cc.5",c$e="parser.cc.6",u$e="parser.cc.7",ope="parser.cc.8",zdt="parser.ope.1",Hdt="parser.ope.2",qdt="parser.ope.3",$4="parser.descape.1",Vdt="parser.descape.2",Gdt="parser.descape.3",Wdt="parser.descape.4",Udt="parser.descape.5",Ex="parser.process.1",Kdt="parser.quantifier.1",Ydt="parser.quantifier.2",Xdt="parser.quantifier.3",Qdt="parser.quantifier.4",f$e="parser.quantifier.5",Zdt="org.eclipse.emf.common.notify",d$e={424:1,686:1},Jdt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},$V={378:1,152:1},PB="index=",spe={3:1,4:1,5:1,129:1},eht={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},h$e={3:1,6:1,4:1,5:1,198:1},tht={3:1,4:1,5:1,173:1,379:1},nht=";/?:@&=+$,",rht="invalid authority: ",iht="EAnnotation",oht="ETypedElement",sht="EStructuralFeature",aht="EAttribute",lht="EClassifier",cht="EEnumLiteral",uht="EGenericType",fht="EOperation",dht="EParameter",hht="EReference",pht="ETypeParameter",Ep="org.eclipse.emf.ecore.util",ape={79:1},p$e={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},ght="org.eclipse.emf.ecore.util.FeatureMap$Entry",Y2=8192,cA=2048,jB="byte",AJ="char",zB="double",HB="float",qB="int",VB="long",GB="short",mht="java.lang.Object",t7={3:1,4:1,5:1,254:1},g$e={3:1,4:1,5:1,688:1},vht={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},iy={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},AV="mixed",w0="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Gx="kind",bht={3:1,4:1,5:1,689:1},m$e={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},RJ={20:1,31:1,56:1,16:1,15:1,61:1,71:1},OJ={51:1,128:1,287:1},IJ={76:1,343:1},NJ="The value of type '",MJ="' must be of type '",n7=1352,Wx="http://www.eclipse.org/emf/2002/Ecore",DJ=-32768,A6="constraints",Xm="baseType",yht="getEStructuralFeature",wht="getFeatureID",WB="feature",xht="getOperationID",v$e="operation",Sht="defaultValue",_ht="eTypeParameters",Eht="isInstance",kht="getEEnumLiteral",Tht="eContainingClass",I0={57:1},Cht={3:1,4:1,5:1,124:1},$ht="org.eclipse.emf.ecore.resource",Aht={94:1,93:1,599:1,2034:1},lpe="org.eclipse.emf.ecore.resource.impl",b$e="unspecified",RV="simple",LJ="attribute",Rht="attributeWildcard",BJ="element",cpe="elementWildcard",QS="collapse",upe="itemType",FJ="namespace",OV="##targetNamespace",Ux="whiteSpace",y$e="wildcards",HT="http://www.eclipse.org/emf/2003/XMLType",fpe="##any",$N="uninitialized",IV="The multiplicity constraint is violated",PJ="org.eclipse.emf.ecore.xml.type",Oht="ProcessingInstruction",Iht="SimpleAnyType",Nht="XMLTypeDocumentRoot",tm="org.eclipse.emf.ecore.xml.type.impl",NV="INF",Mht="processing",Dht="ENTITIES_._base",w$e="minLength",x$e="ENTITY",jJ="NCName",Lht="IDREFS_._base",S$e="integer",dpe="token",hpe="pattern",Bht="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",E$e="\\i\\c*",Fht="[\\i-[:]][\\c-[:]]*",Pht="nonPositiveInteger",MV="maxInclusive",k$e="NMTOKEN",jht="NMTOKENS_._base",T$e="nonNegativeInteger",DV="minInclusive",zht="normalizedString",Hht="unsignedByte",qht="unsignedInt",Vht="18446744073709551615",Ght="unsignedShort",Wht="processingInstruction",A4="org.eclipse.emf.ecore.xml.type.internal",AN=1114111,Uht="Internal Error: shorthands: \\u",UB="xml:isDigit",ppe="xml:isWord",gpe="xml:isSpace",mpe="xml:isNameChar",vpe="xml:isInitialNameChar",Kht="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",Yht="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",Xht="Private Use",bpe="ASSIGNED",ype="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",C$e="UNASSIGNED",RN={3:1,122:1},Qht="org.eclipse.emf.ecore.xml.type.util",zJ={3:1,4:1,5:1,381:1},$$e="org.eclipse.xtext.xbase.lib",Zht="Cannot add elements to a Range",Jht="Cannot set elements in a Range",e1t="Cannot remove elements from a Range",t1t="user.agent",wo,HJ,wpe;lo.goog=lo.goog||{},lo.goog.global=lo.goog.global||lo,HJ={},zo(1,null,{},ho),wo.Fb=function(oo){return VHe(this,oo)},wo.Gb=function(){return this.Rm},wo.Hb=function(){return PC(this)},wo.Ib=function(){var oo;return aT(Nw(this))+"@"+(oo=dp(this)>>>0,oo.toString(16))},wo.equals=function(ro){return this.Fb(ro)},wo.hashCode=function(){return this.Hb()},wo.toString=function(){return this.Ib()};var n1t,r1t,i1t;zo(297,1,{297:1,2124:1},SEe),wo.ve=function(oo){var co;return co=new SEe,co.i=4,oo>1?co.c=dKe(this,oo-1):co.c=this,co},wo.we=function(){return c5(this),this.b},wo.xe=function(){return aT(this)},wo.ye=function(){return c5(this),this.k},wo.ze=function(){return(this.i&4)!=0},wo.Ae=function(){return(this.i&1)!=0},wo.Ib=function(){return N_e(this)},wo.i=0;var bm=Vo(yy,"Object",1),A$e=Vo(yy,"Class",297);zo(2096,1,Jq),Vo(eV,"Optional",2096),zo(1191,2096,Jq,go),wo.Fb=function(oo){return oo===this},wo.Hb=function(){return 2040732332},wo.Ib=function(){return"Optional.absent()"},wo.Jb=function(oo){return a0(oo),bD(),xpe};var xpe;Vo(eV,"Absent",1191),zo(636,1,{},tle),Vo(eV,"Joiner",636);var vXt=Ip(eV,"Predicate");zo(589,1,{178:1,589:1,3:1,46:1},XU),wo.Mb=function(oo){return pet(this,oo)},wo.Lb=function(oo){return pet(this,oo)},wo.Fb=function(oo){var co;return Hs(oo,589)?(co=bo(oo,589),y4e(this.a,co.a)):!1},wo.Hb=function(){return $Ee(this.a)+306654252},wo.Ib=function(){return rPt(this.a)},Vo(eV,"Predicates/AndPredicate",589),zo(419,2096,{419:1,3:1},aD),wo.Fb=function(oo){var co;return Hs(oo,419)?(co=bo(oo,419),U0(this.a,co.a)):!1},wo.Hb=function(){return 1502476572+dp(this.a)},wo.Ib=function(){return Act+this.a+")"},wo.Jb=function(oo){return new aD(uX(oo.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},Vo(eV,"Present",419),zo(204,1,oN),wo.Nb=function(oo){jm(this,oo)},wo.Qb=function(){NPe()},Vo(Au,"UnmodifiableIterator",204),zo(2076,204,sN),wo.Qb=function(){NPe()},wo.Rb=function(oo){throw Cs(new l0)},wo.Wb=function(oo){throw Cs(new l0)},Vo(Au,"UnmodifiableListIterator",2076),zo(399,2076,sN),wo.Ob=function(){return this.c0},wo.Pb=function(){if(this.c>=this.d)throw Cs(new ay);return this.Xb(this.c++)},wo.Tb=function(){return this.c},wo.Ub=function(){if(this.c<=0)throw Cs(new ay);return this.Xb(--this.c)},wo.Vb=function(){return this.c-1},wo.c=0,wo.d=0,Vo(Au,"AbstractIndexedListIterator",399),zo(713,204,oN),wo.Ob=function(){return ife(this)},wo.Pb=function(){return C_e(this)},wo.e=1,Vo(Au,"AbstractIterator",713),zo(2084,1,{229:1}),wo.Zb=function(){var oo;return oo=this.f,oo||(this.f=this.ac())},wo.Fb=function(oo){return Tfe(this,oo)},wo.Hb=function(){return dp(this.Zb())},wo.dc=function(){return this.gc()==0},wo.ec=function(){return A8(this)},wo.Ib=function(){return ry(this.Zb())},Vo(Au,"AbstractMultimap",2084),zo(742,2084,IT),wo.$b=function(){eQ(this)},wo._b=function(oo){return ZPe(this,oo)},wo.ac=function(){return new NO(this,this.c)},wo.ic=function(oo){return this.hc()},wo.bc=function(){return new v9(this,this.c)},wo.jc=function(){return this.mc(this.hc())},wo.kc=function(){return new vPe(this)},wo.lc=function(){return Dde(this.c.vc().Nc(),new yo,64,this.d)},wo.cc=function(oo){return Q0(this,oo)},wo.fc=function(oo){return dq(this,oo)},wo.gc=function(){return this.d},wo.mc=function(oo){return Hu(),new fv(oo)},wo.nc=function(){return new mPe(this)},wo.oc=function(){return Dde(this.c.Cc().Nc(),new mo,64,this.d)},wo.pc=function(oo,co){return new IX(this,oo,co,null)},wo.d=0,Vo(Au,"AbstractMapBasedMultimap",742),zo(1696,742,IT),wo.hc=function(){return new o2(this.a)},wo.jc=function(){return Hu(),Hu(),cv},wo.cc=function(oo){return bo(Q0(this,oo),15)},wo.fc=function(oo){return bo(dq(this,oo),15)},wo.Zb=function(){return D8(this)},wo.Fb=function(oo){return Tfe(this,oo)},wo.qc=function(oo){return bo(Q0(this,oo),15)},wo.rc=function(oo){return bo(dq(this,oo),15)},wo.mc=function(oo){return sue(bo(oo,15))},wo.pc=function(oo,co){return yYe(this,oo,bo(co,15),null)},Vo(Au,"AbstractListMultimap",1696),zo(748,1,$m),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return this.c.Ob()||this.e.Ob()},wo.Pb=function(){var oo;return this.e.Ob()||(oo=bo(this.c.Pb(),44),this.b=oo.ld(),this.a=bo(oo.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},wo.Qb=function(){this.e.Qb(),bo(Fx(this.a),16).dc()&&this.c.Qb(),--this.d.d},Vo(Au,"AbstractMapBasedMultimap/Itr",748),zo(1129,748,$m,mPe),wo.sc=function(oo,co){return co},Vo(Au,"AbstractMapBasedMultimap/1",1129),zo(1130,1,{},mo),wo.Kb=function(oo){return bo(oo,16).Nc()},Vo(Au,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),zo(1131,748,$m,vPe),wo.sc=function(oo,co){return new OC(oo,co)},Vo(Au,"AbstractMapBasedMultimap/2",1131);var R$e=Ip(j1,"Map");zo(2065,1,x6),wo.wc=function(oo){AL(this,oo)},wo.yc=function(oo,co,fo){return Gfe(this,oo,co,fo)},wo.$b=function(){this.vc().$b()},wo.tc=function(oo){return vde(this,oo)},wo._b=function(oo){return!!v5e(this,oo,!1)},wo.uc=function(oo){var co,fo,po;for(fo=this.vc().Kc();fo.Ob();)if(co=bo(fo.Pb(),44),po=co.md(),$a(oo)===$a(po)||oo!=null&&U0(oo,po))return!0;return!1},wo.Fb=function(oo){var co,fo,po;if(oo===this)return!0;if(!Hs(oo,85)||(po=bo(oo,85),this.gc()!=po.gc()))return!1;for(fo=po.vc().Kc();fo.Ob();)if(co=bo(fo.Pb(),44),!this.tc(co))return!1;return!0},wo.xc=function(oo){return Uv(v5e(this,oo,!1))},wo.Hb=function(){return bEe(this.vc())},wo.dc=function(){return this.gc()==0},wo.ec=function(){return new Dl(this)},wo.zc=function(oo,co){throw Cs(new X5("Put not supported on this map"))},wo.Ac=function(oo){$L(this,oo)},wo.Bc=function(oo){return Uv(v5e(this,oo,!0))},wo.gc=function(){return this.vc().gc()},wo.Ib=function(){return Rrt(this)},wo.Cc=function(){return new L0(this)},Vo(j1,"AbstractMap",2065),zo(2085,2065,x6),wo.bc=function(){return new IK(this)},wo.vc=function(){return gWe(this)},wo.ec=function(){var oo;return oo=this.g,oo||(this.g=this.bc())},wo.Cc=function(){var oo;return oo=this.i,oo||(this.i=new Hje(this))},Vo(Au,"Maps/ViewCachingAbstractMap",2085),zo(402,2085,x6,NO),wo.xc=function(oo){return S8t(this,oo)},wo.Bc=function(oo){return GOt(this,oo)},wo.$b=function(){this.d==this.e.c?this.e.$b():zY(new Axe(this))},wo._b=function(oo){return ett(this.d,oo)},wo.Ec=function(){return new aae(this)},wo.Dc=function(){return this.Ec()},wo.Fb=function(oo){return this===oo||U0(this.d,oo)},wo.Hb=function(){return dp(this.d)},wo.ec=function(){return this.e.ec()},wo.gc=function(){return this.d.gc()},wo.Ib=function(){return ry(this.d)},Vo(Au,"AbstractMapBasedMultimap/AsMap",402);var Xw=Ip(yy,"Iterable");zo(31,1,eA),wo.Jc=function(oo){Hm(this,oo)},wo.Lc=function(){return this.Oc()},wo.Nc=function(){return new Du(this,0)},wo.Oc=function(){return new Ou(null,this.Nc())},wo.Fc=function(oo){throw Cs(new X5("Add not supported on this collection"))},wo.Gc=function(oo){return Fm(this,oo)},wo.$b=function(){gSe(this)},wo.Hc=function(oo){return j$(this,oo,!1)},wo.Ic=function(oo){return iq(this,oo)},wo.dc=function(){return this.gc()==0},wo.Mc=function(oo){return j$(this,oo,!0)},wo.Pc=function(){return Pxe(this)},wo.Qc=function(oo){return UL(this,oo)},wo.Ib=function(){return _3(this)},Vo(j1,"AbstractCollection",31);var Kx=Ip(j1,"Set");zo(w_,31,U2),wo.Nc=function(){return new Du(this,1)},wo.Fb=function(oo){return Gtt(this,oo)},wo.Hb=function(){return bEe(this)},Vo(j1,"AbstractSet",w_),zo(2068,w_,U2),Vo(Au,"Sets/ImprovedAbstractSet",2068),zo(2069,2068,U2),wo.$b=function(){this.Rc().$b()},wo.Hc=function(oo){return Att(this,oo)},wo.dc=function(){return this.Rc().dc()},wo.Mc=function(oo){var co;return this.Hc(oo)&&Hs(oo,44)?(co=bo(oo,44),this.Rc().ec().Mc(co.ld())):!1},wo.gc=function(){return this.Rc().gc()},Vo(Au,"Maps/EntrySet",2069),zo(1127,2069,U2,aae),wo.Hc=function(oo){return GEe(this.a.d.vc(),oo)},wo.Kc=function(){return new Axe(this.a)},wo.Rc=function(){return this.a},wo.Mc=function(oo){var co;return GEe(this.a.d.vc(),oo)?(co=bo(Fx(bo(oo,44)),44),u7t(this.a.e,co.ld()),!0):!1},wo.Nc=function(){return pH(this.a.d.vc().Nc(),new lae(this.a))},Vo(Au,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),zo(1128,1,{},lae),wo.Kb=function(oo){return vXe(this.a,bo(oo,44))},Vo(Au,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),zo(746,1,$m,Axe),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){var oo;return oo=bo(this.b.Pb(),44),this.a=bo(oo.md(),16),vXe(this.c,oo)},wo.Ob=function(){return this.b.Ob()},wo.Qb=function(){HO(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},Vo(Au,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),zo(542,2068,U2,IK),wo.$b=function(){this.b.$b()},wo.Hc=function(oo){return this.b._b(oo)},wo.Jc=function(oo){a0(oo),this.b.wc(new xae(oo))},wo.dc=function(){return this.b.dc()},wo.Kc=function(){return new yD(this.b.vc().Kc())},wo.Mc=function(oo){return this.b._b(oo)?(this.b.Bc(oo),!0):!1},wo.gc=function(){return this.b.gc()},Vo(Au,"Maps/KeySet",542),zo(327,542,U2,v9),wo.$b=function(){var oo;zY((oo=this.b.vc().Kc(),new Jye(this,oo)))},wo.Ic=function(oo){return this.b.ec().Ic(oo)},wo.Fb=function(oo){return this===oo||U0(this.b.ec(),oo)},wo.Hb=function(){return dp(this.b.ec())},wo.Kc=function(){var oo;return oo=this.b.vc().Kc(),new Jye(this,oo)},wo.Mc=function(oo){var co,fo;return fo=0,co=bo(this.b.Bc(oo),16),co&&(fo=co.gc(),co.$b(),this.a.d-=fo),fo>0},wo.Nc=function(){return this.b.ec().Nc()},Vo(Au,"AbstractMapBasedMultimap/KeySet",327),zo(747,1,$m,Jye),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return this.c.Ob()},wo.Pb=function(){return this.a=bo(this.c.Pb(),44),this.a.ld()},wo.Qb=function(){var oo;HO(!!this.a),oo=bo(this.a.md(),16),this.c.Qb(),this.b.a.d-=oo.gc(),oo.$b(),this.a=null},Vo(Au,"AbstractMapBasedMultimap/KeySet/1",747),zo(503,402,{85:1,133:1},aH),wo.bc=function(){return this.Sc()},wo.ec=function(){return this.Uc()},wo.Sc=function(){return new Dz(this.c,this.Wc())},wo.Tc=function(){return this.Wc().Tc()},wo.Uc=function(){var oo;return oo=this.b,oo||(this.b=this.Sc())},wo.Vc=function(){return this.Wc().Vc()},wo.Wc=function(){return bo(this.d,133)},Vo(Au,"AbstractMapBasedMultimap/SortedAsMap",503),zo(446,503,P3e,eL),wo.bc=function(){return new IO(this.a,bo(bo(this.d,133),139))},wo.Sc=function(){return new IO(this.a,bo(bo(this.d,133),139))},wo.ec=function(){var oo;return oo=this.b,bo(oo||(this.b=new IO(this.a,bo(bo(this.d,133),139))),277)},wo.Uc=function(){var oo;return oo=this.b,bo(oo||(this.b=new IO(this.a,bo(bo(this.d,133),139))),277)},wo.Wc=function(){return bo(bo(this.d,133),139)},wo.Xc=function(oo){return bo(bo(this.d,133),139).Xc(oo)},wo.Yc=function(oo){return bo(bo(this.d,133),139).Yc(oo)},wo.Zc=function(oo,co){return new eL(this.a,bo(bo(this.d,133),139).Zc(oo,co))},wo.$c=function(oo){return bo(bo(this.d,133),139).$c(oo)},wo._c=function(oo){return bo(bo(this.d,133),139)._c(oo)},wo.ad=function(oo,co){return new eL(this.a,bo(bo(this.d,133),139).ad(oo,co))},Vo(Au,"AbstractMapBasedMultimap/NavigableAsMap",446),zo(502,327,Rct,Dz),wo.Nc=function(){return this.b.ec().Nc()},Vo(Au,"AbstractMapBasedMultimap/SortedKeySet",502),zo(401,502,j3e,IO),Vo(Au,"AbstractMapBasedMultimap/NavigableKeySet",401),zo(551,31,eA,IX),wo.Fc=function(oo){var co,fo;return bw(this),fo=this.d.dc(),co=this.d.Fc(oo),co&&(++this.f.d,fo&&fH(this)),co},wo.Gc=function(oo){var co,fo,po;return oo.dc()?!1:(po=(bw(this),this.d.gc()),co=this.d.Gc(oo),co&&(fo=this.d.gc(),this.f.d+=fo-po,po==0&&fH(this)),co)},wo.$b=function(){var oo;oo=(bw(this),this.d.gc()),oo!=0&&(this.d.$b(),this.f.d-=oo,UY(this))},wo.Hc=function(oo){return bw(this),this.d.Hc(oo)},wo.Ic=function(oo){return bw(this),this.d.Ic(oo)},wo.Fb=function(oo){return oo===this?!0:(bw(this),U0(this.d,oo))},wo.Hb=function(){return bw(this),dp(this.d)},wo.Kc=function(){return bw(this),new dxe(this)},wo.Mc=function(oo){var co;return bw(this),co=this.d.Mc(oo),co&&(--this.f.d,UY(this)),co},wo.gc=function(){return RHe(this)},wo.Nc=function(){return bw(this),this.d.Nc()},wo.Ib=function(){return bw(this),ry(this.d)},Vo(Au,"AbstractMapBasedMultimap/WrappedCollection",551);var kx=Ip(j1,"List");zo(744,551,{20:1,31:1,16:1,15:1},Hxe),wo.jd=function(oo){wT(this,oo)},wo.Nc=function(){return bw(this),this.d.Nc()},wo.bd=function(oo,co){var fo;bw(this),fo=this.d.dc(),bo(this.d,15).bd(oo,co),++this.a.d,fo&&fH(this)},wo.cd=function(oo,co){var fo,po,vo;return co.dc()?!1:(vo=(bw(this),this.d.gc()),fo=bo(this.d,15).cd(oo,co),fo&&(po=this.d.gc(),this.a.d+=po-vo,vo==0&&fH(this)),fo)},wo.Xb=function(oo){return bw(this),bo(this.d,15).Xb(oo)},wo.dd=function(oo){return bw(this),bo(this.d,15).dd(oo)},wo.ed=function(){return bw(this),new sqe(this)},wo.fd=function(oo){return bw(this),new AUe(this,oo)},wo.gd=function(oo){var co;return bw(this),co=bo(this.d,15).gd(oo),--this.a.d,UY(this),co},wo.hd=function(oo,co){return bw(this),bo(this.d,15).hd(oo,co)},wo.kd=function(oo,co){return bw(this),yYe(this.a,this.e,bo(this.d,15).kd(oo,co),this.b?this.b:this)},Vo(Au,"AbstractMapBasedMultimap/WrappedList",744),zo(1126,744,{20:1,31:1,16:1,15:1,59:1},Yqe),Vo(Au,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),zo(628,1,$m,dxe),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return JO(this),this.b.Ob()},wo.Pb=function(){return JO(this),this.b.Pb()},wo.Qb=function(){Nqe(this)},Vo(Au,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),zo(745,628,DE,sqe,AUe),wo.Qb=function(){Nqe(this)},wo.Rb=function(oo){var co;co=RHe(this.a)==0,(JO(this),bo(this.b,128)).Rb(oo),++this.a.a.d,co&&fH(this.a)},wo.Sb=function(){return(JO(this),bo(this.b,128)).Sb()},wo.Tb=function(){return(JO(this),bo(this.b,128)).Tb()},wo.Ub=function(){return(JO(this),bo(this.b,128)).Ub()},wo.Vb=function(){return(JO(this),bo(this.b,128)).Vb()},wo.Wb=function(oo){(JO(this),bo(this.b,128)).Wb(oo)},Vo(Au,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),zo(743,551,Rct,Owe),wo.Nc=function(){return bw(this),this.d.Nc()},Vo(Au,"AbstractMapBasedMultimap/WrappedSortedSet",743),zo(1125,743,j3e,tqe),Vo(Au,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),zo(1124,551,U2,mVe),wo.Nc=function(){return bw(this),this.d.Nc()},Vo(Au,"AbstractMapBasedMultimap/WrappedSet",1124),zo(1133,1,{},yo),wo.Kb=function(oo){return w7t(bo(oo,44))},Vo(Au,"AbstractMapBasedMultimap/lambda$1$Type",1133),zo(1132,1,{},uae),wo.Kb=function(oo){return new OC(this.a,oo)},Vo(Au,"AbstractMapBasedMultimap/lambda$2$Type",1132);var qT=Ip(j1,"Map/Entry");zo(358,1,Bhe),wo.Fb=function(oo){var co;return Hs(oo,44)?(co=bo(oo,44),K_(this.ld(),co.ld())&&K_(this.md(),co.md())):!1},wo.Hb=function(){var oo,co;return oo=this.ld(),co=this.md(),(oo==null?0:dp(oo))^(co==null?0:dp(co))},wo.nd=function(oo){throw Cs(new l0)},wo.Ib=function(){return this.ld()+"="+this.md()},Vo(Au,Oct,358),zo(2086,31,eA),wo.$b=function(){this.od().$b()},wo.Hc=function(oo){var co;return Hs(oo,44)?(co=bo(oo,44),zAt(this.od(),co.ld(),co.md())):!1},wo.Mc=function(oo){var co;return Hs(oo,44)?(co=bo(oo,44),eYe(this.od(),co.ld(),co.md())):!1},wo.gc=function(){return this.od().d},Vo(Au,"Multimaps/Entries",2086),zo(749,2086,eA,JU),wo.Kc=function(){return this.a.kc()},wo.od=function(){return this.a},wo.Nc=function(){return this.a.lc()},Vo(Au,"AbstractMultimap/Entries",749),zo(750,749,U2,Rye),wo.Nc=function(){return this.a.lc()},wo.Fb=function(oo){return B5e(this,oo)},wo.Hb=function(){return fJe(this)},Vo(Au,"AbstractMultimap/EntrySet",750),zo(751,31,eA,eK),wo.$b=function(){this.a.$b()},wo.Hc=function(oo){return POt(this.a,oo)},wo.Kc=function(){return this.a.nc()},wo.gc=function(){return this.a.d},wo.Nc=function(){return this.a.oc()},Vo(Au,"AbstractMultimap/Values",751),zo(2087,31,{849:1,20:1,31:1,16:1}),wo.Jc=function(oo){a0(oo),y9(this).Jc(new Cae(oo))},wo.Nc=function(){var oo;return oo=y9(this).Nc(),Dde(oo,new No,64|oo.yd()&1296,this.a.d)},wo.Fc=function(oo){return Fye(),!0},wo.Gc=function(oo){return a0(this),a0(oo),Hs(oo,552)?VAt(bo(oo,849)):!oo.dc()&&Yue(this,oo.Kc())},wo.Hc=function(oo){var co;return co=bo(P$(D8(this.a),oo),16),(co?co.gc():0)>0},wo.Fb=function(oo){return dzt(this,oo)},wo.Hb=function(){return dp(y9(this))},wo.dc=function(){return y9(this).dc()},wo.Mc=function(oo){return Vit(this,oo,1)>0},wo.Ib=function(){return ry(y9(this))},Vo(Au,"AbstractMultiset",2087),zo(2089,2068,U2),wo.$b=function(){eQ(this.a.a)},wo.Hc=function(oo){var co,fo;return Hs(oo,504)?(fo=bo(oo,425),bo(fo.a.md(),16).gc()<=0?!1:(co=CKe(this.a,fo.a.ld()),co==bo(fo.a.md(),16).gc())):!1},wo.Mc=function(oo){var co,fo,po,vo;return Hs(oo,504)&&(fo=bo(oo,425),co=fo.a.ld(),po=bo(fo.a.md(),16).gc(),po!=0)?(vo=this.a,njt(vo,co,po)):!1},Vo(Au,"Multisets/EntrySet",2089),zo(1139,2089,U2,o8),wo.Kc=function(){return new SPe(gWe(D8(this.a.a)).Kc())},wo.gc=function(){return D8(this.a.a).gc()},Vo(Au,"AbstractMultiset/EntrySet",1139),zo(627,742,IT),wo.hc=function(){return this.pd()},wo.jc=function(){return this.qd()},wo.cc=function(oo){return this.rd(oo)},wo.fc=function(oo){return this.sd(oo)},wo.Zb=function(){var oo;return oo=this.f,oo||(this.f=this.ac())},wo.qd=function(){return Hu(),Hu(),KJ},wo.Fb=function(oo){return Tfe(this,oo)},wo.rd=function(oo){return bo(Q0(this,oo),21)},wo.sd=function(oo){return bo(dq(this,oo),21)},wo.mc=function(oo){return Hu(),new CO(bo(oo,21))},wo.pc=function(oo,co){return new mVe(this,oo,bo(co,21))},Vo(Au,"AbstractSetMultimap",627),zo(1723,627,IT),wo.hc=function(){return new e4(this.b)},wo.pd=function(){return new e4(this.b)},wo.jc=function(){return cSe(new e4(this.b))},wo.qd=function(){return cSe(new e4(this.b))},wo.cc=function(oo){return bo(bo(Q0(this,oo),21),87)},wo.rd=function(oo){return bo(bo(Q0(this,oo),21),87)},wo.fc=function(oo){return bo(bo(dq(this,oo),21),87)},wo.sd=function(oo){return bo(bo(dq(this,oo),21),87)},wo.mc=function(oo){return Hs(oo,277)?cSe(bo(oo,277)):(Hu(),new mwe(bo(oo,87)))},wo.Zb=function(){var oo;return oo=this.f,oo||(this.f=Hs(this.c,139)?new eL(this,bo(this.c,139)):Hs(this.c,133)?new aH(this,bo(this.c,133)):new NO(this,this.c))},wo.pc=function(oo,co){return Hs(co,277)?new tqe(this,oo,bo(co,277)):new Owe(this,oo,bo(co,87))},Vo(Au,"AbstractSortedSetMultimap",1723),zo(1724,1723,IT),wo.Zb=function(){var oo;return oo=this.f,bo(bo(oo||(this.f=Hs(this.c,139)?new eL(this,bo(this.c,139)):Hs(this.c,133)?new aH(this,bo(this.c,133)):new NO(this,this.c)),133),139)},wo.ec=function(){var oo;return oo=this.i,bo(bo(oo||(this.i=Hs(this.c,139)?new IO(this,bo(this.c,139)):Hs(this.c,133)?new Dz(this,bo(this.c,133)):new v9(this,this.c)),87),277)},wo.bc=function(){return Hs(this.c,139)?new IO(this,bo(this.c,139)):Hs(this.c,133)?new Dz(this,bo(this.c,133)):new v9(this,this.c)},Vo(Au,"AbstractSortedKeySortedSetMultimap",1724),zo(2109,1,{2046:1}),wo.Fb=function(oo){return BLt(this,oo)},wo.Hb=function(){var oo;return bEe((oo=this.g,oo||(this.g=new wz(this))))},wo.Ib=function(){var oo;return Rrt((oo=this.f,oo||(this.f=new dwe(this))))},Vo(Au,"AbstractTable",2109),zo(679,w_,U2,wz),wo.$b=function(){MPe()},wo.Hc=function(oo){var co,fo;return Hs(oo,479)?(co=bo(oo,697),fo=bo(P$(PWe(this.a),o3(co.c.e,co.b)),85),!!fo&&GEe(fo.vc(),new OC(o3(co.c.c,co.a),H8(co.c,co.b,co.a)))):!1},wo.Kc=function(){return j6t(this.a)},wo.Mc=function(oo){var co,fo;return Hs(oo,479)?(co=bo(oo,697),fo=bo(P$(PWe(this.a),o3(co.c.e,co.b)),85),!!fo&&bIt(fo.vc(),new OC(o3(co.c.c,co.a),H8(co.c,co.b,co.a)))):!1},wo.gc=function(){return HGe(this.a)},wo.Nc=function(){return UAt(this.a)},Vo(Au,"AbstractTable/CellSet",679),zo(2025,31,eA,dae),wo.$b=function(){MPe()},wo.Hc=function(oo){return ABt(this.a,oo)},wo.Kc=function(){return z6t(this.a)},wo.gc=function(){return HGe(this.a)},wo.Nc=function(){return JKe(this.a)},Vo(Au,"AbstractTable/Values",2025),zo(1697,1696,IT),Vo(Au,"ArrayListMultimapGwtSerializationDependencies",1697),zo(520,1697,IT,ile,OSe),wo.hc=function(){return new o2(this.a)},wo.a=0,Vo(Au,"ArrayListMultimap",520),zo(678,2109,{678:1,2046:1,3:1},iot),Vo(Au,"ArrayTable",678),zo(2021,399,sN,Mqe),wo.Xb=function(oo){return new _Ee(this.a,oo)},Vo(Au,"ArrayTable/1",2021),zo(2022,1,{},QU),wo.td=function(oo){return new _Ee(this.a,oo)},Vo(Au,"ArrayTable/1methodref$getCell$Type",2022),zo(2110,1,{697:1}),wo.Fb=function(oo){var co;return oo===this?!0:Hs(oo,479)?(co=bo(oo,697),K_(o3(this.c.e,this.b),o3(co.c.e,co.b))&&K_(o3(this.c.c,this.a),o3(co.c.c,co.a))&&K_(H8(this.c,this.b,this.a),H8(co.c,co.b,co.a))):!1},wo.Hb=function(){return fq(As($s(bm,1),Xu,1,5,[o3(this.c.e,this.b),o3(this.c.c,this.a),H8(this.c,this.b,this.a)]))},wo.Ib=function(){return"("+o3(this.c.e,this.b)+","+o3(this.c.c,this.a)+")="+H8(this.c,this.b,this.a)},Vo(Au,"Tables/AbstractCell",2110),zo(479,2110,{479:1,697:1},_Ee),wo.a=0,wo.b=0,wo.d=0,Vo(Au,"ArrayTable/2",479),zo(2024,1,{},ZU),wo.td=function(oo){return EQe(this.a,oo)},Vo(Au,"ArrayTable/2methodref$getValue$Type",2024),zo(2023,399,sN,Dqe),wo.Xb=function(oo){return EQe(this.a,oo)},Vo(Au,"ArrayTable/3",2023),zo(2077,2065,x6),wo.$b=function(){zY(this.kc())},wo.vc=function(){return new wae(this)},wo.lc=function(){return new yUe(this.kc(),this.gc())},Vo(Au,"Maps/IteratorBasedAbstractMap",2077),zo(842,2077,x6),wo.$b=function(){throw Cs(new l0)},wo._b=function(oo){return JPe(this.c,oo)},wo.kc=function(){return new Lqe(this,this.c.b.c.gc())},wo.lc=function(){return Cce(this.c.b.c.gc(),16,new cae(this))},wo.xc=function(oo){var co;return co=bo(tL(this.c,oo),17),co?this.vd(co.a):null},wo.dc=function(){return this.c.b.c.dc()},wo.ec=function(){return Dce(this.c)},wo.zc=function(oo,co){var fo;if(fo=bo(tL(this.c,oo),17),!fo)throw Cs(new i1(this.ud()+" "+oo+" not in "+Dce(this.c)));return this.wd(fo.a,co)},wo.Bc=function(oo){throw Cs(new l0)},wo.gc=function(){return this.c.b.c.gc()},Vo(Au,"ArrayTable/ArrayMap",842),zo(2020,1,{},cae),wo.td=function(oo){return zWe(this.a,oo)},Vo(Au,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),zo(2018,358,Bhe,kje),wo.ld=function(){return e5t(this.a,this.b)},wo.md=function(){return this.a.vd(this.b)},wo.nd=function(oo){return this.a.wd(this.b,oo)},wo.b=0,Vo(Au,"ArrayTable/ArrayMap/1",2018),zo(2019,399,sN,Lqe),wo.Xb=function(oo){return zWe(this.a,oo)},Vo(Au,"ArrayTable/ArrayMap/2",2019),zo(2017,842,x6,$We),wo.ud=function(){return"Column"},wo.vd=function(oo){return H8(this.b,this.a,oo)},wo.wd=function(oo,co){return QJe(this.b,this.a,oo,co)},wo.a=0,Vo(Au,"ArrayTable/Row",2017),zo(843,842,x6,dwe),wo.vd=function(oo){return new $We(this.a,oo)},wo.zc=function(oo,co){return bo(co,85),x_t()},wo.wd=function(oo,co){return bo(co,85),S_t()},wo.ud=function(){return"Row"},Vo(Au,"ArrayTable/RowMap",843),zo(1157,1,Kw,Tje),wo.Ad=function(oo){return(this.a.yd()&-262&oo)!=0},wo.yd=function(){return this.a.yd()&-262},wo.zd=function(){return this.a.zd()},wo.Nb=function(oo){this.a.Nb(new $je(oo,this.b))},wo.Bd=function(oo){return this.a.Bd(new Cje(oo,this.b))},Vo(Au,"CollectSpliterators/1",1157),zo(1158,1,_1,Cje),wo.Cd=function(oo){this.a.Cd(this.b.Kb(oo))},Vo(Au,"CollectSpliterators/1/lambda$0$Type",1158),zo(1159,1,_1,$je),wo.Cd=function(oo){this.a.Cd(this.b.Kb(oo))},Vo(Au,"CollectSpliterators/1/lambda$1$Type",1159),zo(1154,1,Kw,QVe),wo.Ad=function(oo){return((16464|this.b)&oo)!=0},wo.yd=function(){return 16464|this.b},wo.zd=function(){return this.a.zd()},wo.Nb=function(oo){this.a.Qe(new Rje(oo,this.c))},wo.Bd=function(oo){return this.a.Re(new Aje(oo,this.c))},wo.b=0,Vo(Au,"CollectSpliterators/1WithCharacteristics",1154),zo(1155,1,tV,Aje),wo.Dd=function(oo){this.a.Cd(this.b.td(oo))},Vo(Au,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),zo(1156,1,tV,Rje),wo.Dd=function(oo){this.a.Cd(this.b.td(oo))},Vo(Au,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),zo(1150,1,Kw),wo.Ad=function(oo){return(this.a&oo)!=0},wo.yd=function(){return this.a},wo.zd=function(){return this.e&&(this.b=ewe(this.b,this.e.zd())),ewe(this.b,0)},wo.Nb=function(oo){this.e&&(this.e.Nb(oo),this.e=null),this.c.Nb(new Oje(this,oo)),this.b=0},wo.Bd=function(oo){for(;;){if(this.e&&this.e.Bd(oo))return VD(this.b,nV)&&(this.b=jx(this.b,1)),!0;if(this.e=null,!this.c.Bd(new hae(this)))return!1}},wo.a=0,wo.b=0,Vo(Au,"CollectSpliterators/FlatMapSpliterator",1150),zo(1152,1,_1,hae),wo.Cd=function(oo){Z5t(this.a,oo)},Vo(Au,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),zo(1153,1,_1,Oje),wo.Cd=function(oo){_6t(this.a,this.b,oo)},Vo(Au,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),zo(1151,1150,Kw,vYe),Vo(Au,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),zo(253,1,Fhe),wo.Fd=function(oo){return this.Ed(bo(oo,253))},wo.Ed=function(oo){var co;return oo==(Kae(),_pe)?1:oo==(Uae(),Spe)?-1:(co=(LY(),ZH(this.a,oo.a)),co!=0?co:Hs(this,526)==Hs(oo,526)?0:Hs(this,526)?1:-1)},wo.Id=function(){return this.a},wo.Fb=function(oo){return qke(this,oo)},Vo(Au,"Cut",253),zo(1823,253,Fhe,gPe),wo.Ed=function(oo){return oo==this?0:1},wo.Gd=function(oo){throw Cs(new fye)},wo.Hd=function(oo){oo.a+="+∞)"},wo.Id=function(){throw Cs(new Lv(Nct))},wo.Hb=function(){return a5(),$ke(this)},wo.Jd=function(oo){return!1},wo.Ib=function(){return"+∞"};var Spe;Vo(Au,"Cut/AboveAll",1823),zo(526,253,{253:1,526:1,3:1,34:1},Hqe),wo.Gd=function(oo){qy((oo.a+="(",oo),this.a)},wo.Hd=function(oo){u3(qy(oo,this.a),93)},wo.Hb=function(){return~dp(this.a)},wo.Jd=function(oo){return LY(),ZH(this.a,oo)<0},wo.Ib=function(){return"/"+this.a+"\\"},Vo(Au,"Cut/AboveValue",526),zo(1822,253,Fhe,pPe),wo.Ed=function(oo){return oo==this?0:-1},wo.Gd=function(oo){oo.a+="(-∞"},wo.Hd=function(oo){throw Cs(new fye)},wo.Id=function(){throw Cs(new Lv(Nct))},wo.Hb=function(){return a5(),$ke(this)},wo.Jd=function(oo){return!0},wo.Ib=function(){return"-∞"};var _pe;Vo(Au,"Cut/BelowAll",1822),zo(1824,253,Fhe,qqe),wo.Gd=function(oo){qy((oo.a+="[",oo),this.a)},wo.Hd=function(oo){u3(qy(oo,this.a),41)},wo.Hb=function(){return dp(this.a)},wo.Jd=function(oo){return LY(),ZH(this.a,oo)<=0},wo.Ib=function(){return"\\"+this.a+"/"},Vo(Au,"Cut/BelowValue",1824),zo(547,1,LE),wo.Jc=function(oo){Hm(this,oo)},wo.Ib=function(){return PIt(bo(uX(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},Vo(Au,"FluentIterable",547),zo(442,547,LE,UD),wo.Kc=function(){return new x1(E1(this.a.Kc(),new ko))},Vo(Au,"FluentIterable/2",442),zo(1059,547,LE,QHe),wo.Kc=function(){return $E(this)},Vo(Au,"FluentIterable/3",1059),zo(724,399,sN,hwe),wo.Xb=function(oo){return this.a[oo].Kc()},Vo(Au,"FluentIterable/3/1",724),zo(2070,1,{}),wo.Ib=function(){return ry(this.Kd().b)},Vo(Au,"ForwardingObject",2070),zo(2071,2070,Mct),wo.Kd=function(){return this.Ld()},wo.Jc=function(oo){Hm(this,oo)},wo.Lc=function(){return this.Oc()},wo.Nc=function(){return new Du(this,0)},wo.Oc=function(){return new Ou(null,this.Nc())},wo.Fc=function(oo){return this.Ld(),tje()},wo.Gc=function(oo){return this.Ld(),nje()},wo.$b=function(){this.Ld(),rje()},wo.Hc=function(oo){return this.Ld().Hc(oo)},wo.Ic=function(oo){return this.Ld().Ic(oo)},wo.dc=function(){return this.Ld().b.dc()},wo.Kc=function(){return this.Ld().Kc()},wo.Mc=function(oo){return this.Ld(),ije()},wo.gc=function(){return this.Ld().b.gc()},wo.Pc=function(){return this.Ld().Pc()},wo.Qc=function(oo){return this.Ld().Qc(oo)},Vo(Au,"ForwardingCollection",2071),zo(2078,31,z3e),wo.Kc=function(){return this.Od()},wo.Fc=function(oo){throw Cs(new l0)},wo.Gc=function(oo){throw Cs(new l0)},wo.Md=function(){var oo;return oo=this.c,oo||(this.c=this.Nd())},wo.$b=function(){throw Cs(new l0)},wo.Hc=function(oo){return oo!=null&&j$(this,oo,!1)},wo.Nd=function(){switch(this.gc()){case 0:return WC(),WC(),Epe;case 1:return WC(),new $ce(a0(this.Od().Pb()));default:return new Wxe(this,this.Pc())}},wo.Mc=function(oo){throw Cs(new l0)},Vo(Au,"ImmutableCollection",2078),zo(727,2078,z3e,cye),wo.Kc=function(){return q8(this.a.Kc())},wo.Hc=function(oo){return oo!=null&&this.a.Hc(oo)},wo.Ic=function(oo){return this.a.Ic(oo)},wo.dc=function(){return this.a.dc()},wo.Od=function(){return q8(this.a.Kc())},wo.gc=function(){return this.a.gc()},wo.Pc=function(){return this.a.Pc()},wo.Qc=function(oo){return this.a.Qc(oo)},wo.Ib=function(){return ry(this.a)},Vo(Au,"ForwardingImmutableCollection",727),zo(307,2078,aN),wo.Kc=function(){return this.Od()},wo.ed=function(){return this.Pd(0)},wo.fd=function(oo){return this.Pd(oo)},wo.jd=function(oo){wT(this,oo)},wo.Nc=function(){return new Du(this,16)},wo.kd=function(oo,co){return this.Qd(oo,co)},wo.bd=function(oo,co){throw Cs(new l0)},wo.cd=function(oo,co){throw Cs(new l0)},wo.Md=function(){return this},wo.Fb=function(oo){return ezt(this,oo)},wo.Hb=function(){return KRt(this)},wo.dd=function(oo){return oo==null?-1:vDt(this,oo)},wo.Od=function(){return this.Pd(0)},wo.Pd=function(oo){return sce(this,oo)},wo.gd=function(oo){throw Cs(new l0)},wo.hd=function(oo,co){throw Cs(new l0)},wo.Qd=function(oo,co){var fo;return xQ((fo=new zje(this),new s4(fo,oo,co)))};var Epe;Vo(Au,"ImmutableList",307),zo(2105,307,aN),wo.Kc=function(){return q8(this.Rd().Kc())},wo.kd=function(oo,co){return xQ(this.Rd().kd(oo,co))},wo.Hc=function(oo){return oo!=null&&this.Rd().Hc(oo)},wo.Ic=function(oo){return this.Rd().Ic(oo)},wo.Fb=function(oo){return U0(this.Rd(),oo)},wo.Xb=function(oo){return o3(this,oo)},wo.Hb=function(){return dp(this.Rd())},wo.dd=function(oo){return this.Rd().dd(oo)},wo.dc=function(){return this.Rd().dc()},wo.Od=function(){return q8(this.Rd().Kc())},wo.gc=function(){return this.Rd().gc()},wo.Qd=function(oo,co){return xQ(this.Rd().kd(oo,co))},wo.Pc=function(){return this.Rd().Qc(Al(bm,Xu,1,this.Rd().gc(),5,1))},wo.Qc=function(oo){return this.Rd().Qc(oo)},wo.Ib=function(){return ry(this.Rd())},Vo(Au,"ForwardingImmutableList",2105),zo(729,1,lN),wo.vc=function(){return uT(this)},wo.wc=function(oo){AL(this,oo)},wo.ec=function(){return Dce(this)},wo.yc=function(oo,co,fo){return Gfe(this,oo,co,fo)},wo.Cc=function(){return this.Vd()},wo.$b=function(){throw Cs(new l0)},wo._b=function(oo){return this.xc(oo)!=null},wo.uc=function(oo){return this.Vd().Hc(oo)},wo.Td=function(){return new _Fe(this)},wo.Ud=function(){return new EFe(this)},wo.Fb=function(oo){return jOt(this,oo)},wo.Hb=function(){return uT(this).Hb()},wo.dc=function(){return this.gc()==0},wo.zc=function(oo,co){return w_t()},wo.Bc=function(oo){throw Cs(new l0)},wo.Ib=function(){return CFt(this)},wo.Vd=function(){return this.e?this.e:this.e=this.Ud()},wo.c=null,wo.d=null,wo.e=null;var o1t;Vo(Au,"ImmutableMap",729),zo(730,729,lN),wo._b=function(oo){return JPe(this,oo)},wo.uc=function(oo){return Uje(this.b,oo)},wo.Sd=function(){return Qet(new fae(this))},wo.Td=function(){return Qet(cUe(this.b))},wo.Ud=function(){return U_(),new cye(lUe(this.b))},wo.Fb=function(oo){return Kje(this.b,oo)},wo.xc=function(oo){return tL(this,oo)},wo.Hb=function(){return dp(this.b.c)},wo.dc=function(){return this.b.c.dc()},wo.gc=function(){return this.b.c.gc()},wo.Ib=function(){return ry(this.b.c)},Vo(Au,"ForwardingImmutableMap",730),zo(2072,2071,Phe),wo.Kd=function(){return this.Wd()},wo.Ld=function(){return this.Wd()},wo.Nc=function(){return new Du(this,1)},wo.Fb=function(oo){return oo===this||this.Wd().Fb(oo)},wo.Hb=function(){return this.Wd().Hb()},Vo(Au,"ForwardingSet",2072),zo(1085,2072,Phe,fae),wo.Kd=function(){return QO(this.a.b)},wo.Ld=function(){return QO(this.a.b)},wo.Hc=function(oo){if(Hs(oo,44)&&bo(oo,44).ld()==null)return!1;try{return Wje(QO(this.a.b),oo)}catch(co){if(co=$p(co),Hs(co,212))return!1;throw Cs(co)}},wo.Wd=function(){return QO(this.a.b)},wo.Qc=function(oo){var co;return co=UUe(QO(this.a.b),oo),QO(this.a.b).b.gc()=0?"+":"")+(fo/60|0),co=gY(lo.Math.abs(fo)%60),(Hrt(),E1t)[this.q.getDay()]+" "+k1t[this.q.getMonth()]+" "+gY(this.q.getDate())+" "+gY(this.q.getHours())+":"+gY(this.q.getMinutes())+":"+gY(this.q.getSeconds())+" GMT"+oo+co+" "+this.q.getFullYear()};var GJ=Vo(j1,"Date",206);zo(2015,206,qct,frt),wo.a=!1,wo.b=0,wo.c=0,wo.d=0,wo.e=0,wo.f=0,wo.g=!1,wo.i=0,wo.j=0,wo.k=0,wo.n=0,wo.o=0,wo.p=0,Vo("com.google.gwt.i18n.shared.impl","DateRecord",2015),zo(2064,1,{}),wo.pe=function(){return null},wo.qe=function(){return null},wo.re=function(){return null},wo.se=function(){return null},wo.te=function(){return null},Vo(cR,"JSONValue",2064),zo(221,2064,{221:1},Y5,rK),wo.Fb=function(oo){return Hs(oo,221)?NSe(this.a,bo(oo,221).a):!1},wo.oe=function(){return GSt},wo.Hb=function(){return SSe(this.a)},wo.pe=function(){return this},wo.Ib=function(){var oo,co,fo;for(fo=new Bw("["),co=0,oo=this.a.length;co0&&(fo.a+=","),qy(fo,N$(this,co));return fo.a+="]",fo.a},Vo(cR,"JSONArray",221),zo(493,2064,{493:1},iK),wo.oe=function(){return WSt},wo.qe=function(){return this},wo.Ib=function(){return _f(),""+this.a},wo.a=!1;var d1t,h1t;Vo(cR,"JSONBoolean",493),zo(997,63,$5,_Pe),Vo(cR,"JSONException",997),zo(1036,2064,{},Ho),wo.oe=function(){return USt},wo.Ib=function(){return I2};var p1t;Vo(cR,"JSONNull",1036),zo(263,2064,{263:1},cD),wo.Fb=function(oo){return Hs(oo,263)?this.a==bo(oo,263).a:!1},wo.oe=function(){return qSt},wo.Hb=function(){return w8(this.a)},wo.re=function(){return this},wo.Ib=function(){return this.a+""},wo.a=0,Vo(cR,"JSONNumber",263),zo(190,2064,{190:1},f8,wO),wo.Fb=function(oo){return Hs(oo,190)?NSe(this.a,bo(oo,190).a):!1},wo.oe=function(){return VSt},wo.Hb=function(){return SSe(this.a)},wo.se=function(){return this},wo.Ib=function(){var oo,co,fo,po,vo,xo,Eo;for(Eo=new Bw("{"),oo=!0,xo=cfe(this,Al(uu,Yl,2,0,6,1)),fo=xo,po=0,vo=fo.length;po=0?":"+this.c:"")+")"},wo.c=0;var U$e=Vo(yy,"StackTraceElement",319);i1t={3:1,484:1,34:1,2:1};var uu=Vo(yy,H3e,2);zo(111,427,{484:1},Z5,SD,Bx),Vo(yy,"StringBuffer",111),zo(104,427,{484:1},J4,t9,Bw),Vo(yy,"StringBuilder",104),zo(702,77,l1e,Pye),Vo(yy,"StringIndexOutOfBoundsException",702),zo(2145,1,{});var b1t;zo(48,63,{3:1,103:1,63:1,82:1,48:1},l0,X5),Vo(yy,"UnsupportedOperationException",48),zo(247,242,{3:1,34:1,242:1,247:1},gq,Xye),wo.Fd=function(oo){return Fat(this,bo(oo,247))},wo.ue=function(){return G$(dlt(this))},wo.Fb=function(oo){var co;return this===oo?!0:Hs(oo,247)?(co=bo(oo,247),this.e==co.e&&Fat(this,co)==0):!1},wo.Hb=function(){var oo;return this.b!=0?this.b:this.a<54?(oo=Ty(this.f),this.b=s0(vm(oo,-1)),this.b=33*this.b+s0(vm(qC(oo,32),-1)),this.b=17*this.b+dm(this.e),this.b):(this.b=17*Wet(this.c)+dm(this.e),this.b)},wo.Ib=function(){return dlt(this)},wo.a=0,wo.b=0,wo.d=0,wo.e=0,wo.f=0;var y1t,VT,K$e,Y$e,X$e,Q$e,Z$e,J$e,Ipe=Vo("java.math","BigDecimal",247);zo(92,242,{3:1,34:1,242:1,92:1},p5,MKe,dT,Utt,s3),wo.Fd=function(oo){return qtt(this,bo(oo,92))},wo.ue=function(){return G$(Mhe(this,0))},wo.Fb=function(oo){return fke(this,oo)},wo.Hb=function(){return Wet(this)},wo.Ib=function(){return Mhe(this,0)},wo.b=-2,wo.c=0,wo.d=0,wo.e=0;var w1t,WJ,x1t,Npe,UJ,XB,r7=Vo("java.math","BigInteger",92),S1t,_1t,xR,QB;zo(498,2065,x6),wo.$b=function(){nw(this)},wo._b=function(oo){return p2(this,oo)},wo.uc=function(oo){return Cet(this,oo,this.i)||Cet(this,oo,this.f)},wo.vc=function(){return new su(this)},wo.xc=function(oo){return m1(this,oo)},wo.zc=function(oo,co){return N0(this,oo,co)},wo.Bc=function(oo){return z8(this,oo)},wo.gc=function(){return ED(this)},wo.g=0,Vo(j1,"AbstractHashMap",498),zo(267,w_,U2,su),wo.$b=function(){this.a.$b()},wo.Hc=function(oo){return uYe(this,oo)},wo.Kc=function(){return new ST(this.a)},wo.Mc=function(oo){var co;return uYe(this,oo)?(co=bo(oo,44).ld(),this.a.Bc(co),!0):!1},wo.gc=function(){return this.a.gc()},Vo(j1,"AbstractHashMap/EntrySet",267),zo(268,1,$m,ST),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){return a6(this)},wo.Ob=function(){return this.b},wo.Qb=function(){PQe(this)},wo.b=!1,wo.d=0,Vo(j1,"AbstractHashMap/EntrySetIterator",268),zo(426,1,$m,EE),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return dle(this)},wo.Pb=function(){return vSe(this)},wo.Qb=function(){Iw(this)},wo.b=0,wo.c=-1,Vo(j1,"AbstractList/IteratorImpl",426),zo(98,426,DE,Lm),wo.Qb=function(){Iw(this)},wo.Rb=function(oo){S$(this,oo)},wo.Sb=function(){return this.b>0},wo.Tb=function(){return this.b},wo.Ub=function(){return T1(this.b>0),this.a.Xb(this.c=--this.b)},wo.Vb=function(){return this.b-1},wo.Wb=function(oo){w$(this.c!=-1),this.a.hd(this.c,oo)},Vo(j1,"AbstractList/ListIteratorImpl",98),zo(244,56,cN,s4),wo.bd=function(oo,co){A$(oo,this.b),this.c.bd(this.a+oo,co),++this.b},wo.Xb=function(oo){return qu(oo,this.b),this.c.Xb(this.a+oo)},wo.gd=function(oo){var co;return qu(oo,this.b),co=this.c.gd(this.a+oo),--this.b,co},wo.hd=function(oo,co){return qu(oo,this.b),this.c.hd(this.a+oo,co)},wo.gc=function(){return this.b},wo.a=0,wo.b=0,Vo(j1,"AbstractList/SubList",244),zo(266,w_,U2,Dl),wo.$b=function(){this.a.$b()},wo.Hc=function(oo){return this.a._b(oo)},wo.Kc=function(){var oo;return oo=this.a.vc().Kc(),new Z1(oo)},wo.Mc=function(oo){return this.a._b(oo)?(this.a.Bc(oo),!0):!1},wo.gc=function(){return this.a.gc()},Vo(j1,"AbstractMap/1",266),zo(541,1,$m,Z1),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return this.a.Ob()},wo.Pb=function(){var oo;return oo=bo(this.a.Pb(),44),oo.ld()},wo.Qb=function(){this.a.Qb()},Vo(j1,"AbstractMap/1/1",541),zo(231,31,eA,L0),wo.$b=function(){this.a.$b()},wo.Hc=function(oo){return this.a.uc(oo)},wo.Kc=function(){var oo;return oo=this.a.vc().Kc(),new pp(oo)},wo.gc=function(){return this.a.gc()},Vo(j1,"AbstractMap/2",231),zo(301,1,$m,pp),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return this.a.Ob()},wo.Pb=function(){var oo;return oo=bo(this.a.Pb(),44),oo.md()},wo.Qb=function(){this.a.Qb()},Vo(j1,"AbstractMap/2/1",301),zo(494,1,{494:1,44:1}),wo.Fb=function(oo){var co;return Hs(oo,44)?(co=bo(oo,44),ky(this.d,co.ld())&&ky(this.e,co.md())):!1},wo.ld=function(){return this.d},wo.md=function(){return this.e},wo.Hb=function(){return h9(this.d)^h9(this.e)},wo.nd=function(oo){return Fwe(this,oo)},wo.Ib=function(){return this.d+"="+this.e},Vo(j1,"AbstractMap/AbstractEntry",494),zo(397,494,{494:1,397:1,44:1},GK),Vo(j1,"AbstractMap/SimpleEntry",397),zo(2082,1,f1e),wo.Fb=function(oo){var co;return Hs(oo,44)?(co=bo(oo,44),ky(this.ld(),co.ld())&&ky(this.md(),co.md())):!1},wo.Hb=function(){return h9(this.ld())^h9(this.md())},wo.Ib=function(){return this.ld()+"="+this.md()},Vo(j1,Oct,2082),zo(2090,2065,P3e),wo.Xc=function(oo){return ole(this.Ee(oo))},wo.tc=function(oo){return mXe(this,oo)},wo._b=function(oo){return Pwe(this,oo)},wo.vc=function(){return new um(this)},wo.Tc=function(){return RWe(this.Ge())},wo.Yc=function(oo){return ole(this.He(oo))},wo.xc=function(oo){var co;return co=oo,Uv(this.Fe(co))},wo.$c=function(oo){return ole(this.Ie(oo))},wo.ec=function(){return new xm(this)},wo.Vc=function(){return RWe(this.Je())},wo._c=function(oo){return ole(this.Ke(oo))},Vo(j1,"AbstractNavigableMap",2090),zo(629,w_,U2,um),wo.Hc=function(oo){return Hs(oo,44)&&mXe(this.b,bo(oo,44))},wo.Kc=function(){return this.b.De()},wo.Mc=function(oo){var co;return Hs(oo,44)?(co=bo(oo,44),this.b.Le(co)):!1},wo.gc=function(){return this.b.gc()},Vo(j1,"AbstractNavigableMap/EntrySet",629),zo(1146,w_,j3e,xm),wo.Nc=function(){return new qK(this)},wo.$b=function(){this.a.$b()},wo.Hc=function(oo){return Pwe(this.a,oo)},wo.Kc=function(){var oo;return oo=this.a.vc().b.De(),new mv(oo)},wo.Mc=function(oo){return Pwe(this.a,oo)?(this.a.Bc(oo),!0):!1},wo.gc=function(){return this.a.gc()},Vo(j1,"AbstractNavigableMap/NavigableKeySet",1146),zo(1147,1,$m,mv),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return dle(this.a.a)},wo.Pb=function(){var oo;return oo=Jqe(this.a),oo.ld()},wo.Qb=function(){oGe(this.a)},Vo(j1,"AbstractNavigableMap/NavigableKeySet/1",1147),zo(2103,31,eA),wo.Fc=function(oo){return $8(GI(this,oo),fN),!0},wo.Gc=function(oo){return u1(oo),mH(oo!=this,"Can't add a queue to itself"),Fm(this,oo)},wo.$b=function(){for(;Xue(this)!=null;);},Vo(j1,"AbstractQueue",2103),zo(310,31,{4:1,20:1,31:1,16:1},m9,oYe),wo.Fc=function(oo){return qSe(this,oo),!0},wo.$b=function(){YSe(this)},wo.Hc=function(oo){return GJe(new pL(this),oo)},wo.dc=function(){return xD(this)},wo.Kc=function(){return new pL(this)},wo.Mc=function(oo){return A$t(new pL(this),oo)},wo.gc=function(){return this.c-this.b&this.a.length-1},wo.Nc=function(){return new Du(this,272)},wo.Qc=function(oo){var co;return co=this.c-this.b&this.a.length-1,oo.lengthco&&Np(oo,co,null),oo},wo.b=0,wo.c=0,Vo(j1,"ArrayDeque",310),zo(459,1,$m,pL),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return this.a!=this.b},wo.Pb=function(){return wQ(this)},wo.Qb=function(){zZe(this)},wo.a=0,wo.b=0,wo.c=-1,Vo(j1,"ArrayDeque/IteratorImpl",459),zo(13,56,Wct,Zl,o2,tw),wo.bd=function(oo,co){HC(this,oo,co)},wo.Fc=function(oo){return Jl(this,oo)},wo.cd=function(oo,co){return BEe(this,oo,co)},wo.Gc=function(oo){return sm(this,oo)},wo.$b=function(){d$(this.c,0)},wo.Hc=function(oo){return Xv(this,oo,0)!=-1},wo.Jc=function(oo){g2(this,oo)},wo.Xb=function(oo){return cu(this,oo)},wo.dd=function(oo){return Xv(this,oo,0)},wo.dc=function(){return this.c.length==0},wo.Kc=function(){return new _s(this)},wo.gd=function(oo){return l4(this,oo)},wo.Mc=function(oo){return A2(this,oo)},wo.ce=function(oo,co){$Ke(this,oo,co)},wo.hd=function(oo,co){return fx(this,oo,co)},wo.gc=function(){return this.c.length},wo.jd=function(oo){Up(this,oo)},wo.Pc=function(){return BY(this.c)},wo.Qc=function(oo){return v_(this,oo)};var bXt=Vo(j1,"ArrayList",13);zo(7,1,$m,_s),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return cy(this)},wo.Pb=function(){return Es(this)},wo.Qb=function(){cL(this)},wo.a=0,wo.b=-1,Vo(j1,"ArrayList/1",7),zo(2112,lo.Function,{},ps),wo.Me=function(oo,co){return sp(oo,co)},zo(151,56,Uct,ew),wo.Hc=function(oo){return HZe(this,oo)!=-1},wo.Jc=function(oo){var co,fo,po,vo;for(u1(oo),fo=this.a,po=0,vo=fo.length;po0)throw Cs(new i1(X3e+oo+" greater than "+this.e));return this.f.Te()?QUe(this.c,this.b,this.a,oo,co):AKe(this.c,oo,co)},wo.zc=function(oo,co){if(!Ede(this.c,this.f,oo,this.b,this.a,this.e,this.d))throw Cs(new i1(oo+" outside the range "+this.b+" to "+this.e));return uet(this.c,oo,co)},wo.Bc=function(oo){var co;return co=oo,Ede(this.c,this.f,co,this.b,this.a,this.e,this.d)?ZUe(this.c,co):null},wo.Le=function(oo){return rX(this,oo.ld())&&p_e(this.c,oo)},wo.gc=function(){var oo,co,fo;if(this.f.Te()?this.a?co=FI(this.c,this.b,!0):co=FI(this.c,this.b,!1):co=k_e(this.c),!(co&&rX(this,co.d)&&co))return 0;for(oo=0,fo=new ufe(this.c,this.f,this.b,this.a,this.e,this.d);dle(fo.a);fo.b=bo(vSe(fo.a),44))++oo;return oo},wo.ad=function(oo,co){if(this.f.Te()&&this.c.a.Ne(oo,this.b)<0)throw Cs(new i1(X3e+oo+Xct+this.b));return this.f.Ue()?QUe(this.c,oo,co,this.e,this.d):RKe(this.c,oo,co)},wo.a=!1,wo.d=!1,Vo(j1,"TreeMap/SubMap",631),zo(304,22,g1e,VK),wo.Te=function(){return!1},wo.Ue=function(){return!1};var Lpe,Bpe,Fpe,Ppe,YJ=V1(j1,"TreeMap/SubMapType",304,X1,n9t,f4t);zo(1143,304,g1e,rqe),wo.Ue=function(){return!0},V1(j1,"TreeMap/SubMapType/1",1143,YJ,null,null),zo(1144,304,g1e,dqe),wo.Te=function(){return!0},wo.Ue=function(){return!0},V1(j1,"TreeMap/SubMapType/2",1144,YJ,null,null),zo(1145,304,g1e,nqe),wo.Te=function(){return!0},V1(j1,"TreeMap/SubMapType/3",1145,YJ,null,null);var O1t;zo(157,w_,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},pye,e4,xO),wo.Nc=function(){return new qK(this)},wo.Fc=function(oo){return yH(this,oo)},wo.$b=function(){this.a.$b()},wo.Hc=function(oo){return this.a._b(oo)},wo.Kc=function(){return this.a.ec().Kc()},wo.Mc=function(oo){return rce(this,oo)},wo.gc=function(){return this.a.gc()};var EXt=Vo(j1,"TreeSet",157);zo(1082,1,{},iDe),wo.Ve=function(oo,co){return $5t(this.a,oo,co)},Vo(m1e,"BinaryOperator/lambda$0$Type",1082),zo(1083,1,{},oDe),wo.Ve=function(oo,co){return A5t(this.a,oo,co)},Vo(m1e,"BinaryOperator/lambda$1$Type",1083),zo(952,1,{},Js),wo.Kb=function(oo){return oo},Vo(m1e,"Function/lambda$0$Type",952),zo(395,1,f0,SO),wo.Mb=function(oo){return!this.a.Mb(oo)},Vo(m1e,"Predicate/lambda$2$Type",395),zo(581,1,{581:1});var I1t=Vo(wB,"Handler",581);zo(2107,1,Jq),wo.xe=function(){return"DUMMY"},wo.Ib=function(){return this.xe()};var sAe;Vo(wB,"Level",2107),zo(1706,2107,Jq,Vs),wo.xe=function(){return"INFO"},Vo(wB,"Level/LevelInfo",1706),zo(1843,1,{},OFe);var jpe;Vo(wB,"LogManager",1843),zo(1896,1,Jq,iGe),wo.b=null,Vo(wB,"LogRecord",1896),zo(525,1,{525:1},Aue),wo.e=!1;var N1t=!1,M1t=!1,E_=!1,D1t=!1,L1t=!1;Vo(wB,"Logger",525),zo(835,581,{581:1},El),Vo(wB,"SimpleConsoleLogHandler",835),zo(108,22,{3:1,34:1,22:1,108:1},gle);var aAe,oy,uA,zv=V1(lm,"Collector/Characteristics",108,X1,q$t,d4t),B1t;zo(758,1,{},Xxe),Vo(lm,"CollectorImpl",758),zo(1074,1,{},yl),wo.Ve=function(oo,co){return _It(bo(oo,213),bo(co,213))},Vo(lm,"Collectors/10methodref$merge$Type",1074),zo(1075,1,{},Gl),wo.Kb=function(oo){return sYe(bo(oo,213))},Vo(lm,"Collectors/11methodref$toString$Type",1075),zo(1076,1,{},sDe),wo.Kb=function(oo){return _f(),!!V2e(oo)},Vo(lm,"Collectors/12methodref$test$Type",1076),zo(144,1,{},Qs),wo.Yd=function(oo,co){bo(oo,16).Fc(co)},Vo(lm,"Collectors/20methodref$add$Type",144),zo(146,1,{},du),wo.Xe=function(){return new Zl},Vo(lm,"Collectors/21methodref$ctor$Type",146),zo(359,1,{},Ol),wo.Xe=function(){return new Yp},Vo(lm,"Collectors/23methodref$ctor$Type",359),zo(360,1,{},Fu),wo.Yd=function(oo,co){om(bo(oo,49),co)},Vo(lm,"Collectors/24methodref$add$Type",360),zo(1069,1,{},ju),wo.Ve=function(oo,co){return Qje(bo(oo,15),bo(co,16))},Vo(lm,"Collectors/4methodref$addAll$Type",1069),zo(1073,1,{},F1),wo.Yd=function(oo,co){g5(bo(oo,213),bo(co,484))},Vo(lm,"Collectors/9methodref$add$Type",1073),zo(1072,1,{},xGe),wo.Xe=function(){return new _T(this.a,this.b,this.c)},Vo(lm,"Collectors/lambda$15$Type",1072),zo(1077,1,{},y1),wo.Xe=function(){var oo;return oo=new a4,w4(oo,(_f(),!1),new Zl),w4(oo,!0,new Zl),oo},Vo(lm,"Collectors/lambda$22$Type",1077),zo(1078,1,{},aDe),wo.Xe=function(){return As($s(bm,1),Xu,1,5,[this.a])},Vo(lm,"Collectors/lambda$25$Type",1078),zo(1079,1,{},lDe),wo.Yd=function(oo,co){KTt(this.a,yT(oo))},Vo(lm,"Collectors/lambda$26$Type",1079),zo(1080,1,{},cDe),wo.Ve=function(oo,co){return SCt(this.a,yT(oo),yT(co))},Vo(lm,"Collectors/lambda$27$Type",1080),zo(1081,1,{},r1),wo.Kb=function(oo){return yT(oo)[0]},Vo(lm,"Collectors/lambda$28$Type",1081),zo(728,1,{},$u),wo.Ve=function(oo,co){return Rxe(oo,co)},Vo(lm,"Collectors/lambda$4$Type",728),zo(145,1,{},Kl),wo.Ve=function(oo,co){return rEt(bo(oo,16),bo(co,16))},Vo(lm,"Collectors/lambda$42$Type",145),zo(361,1,{},Is),wo.Ve=function(oo,co){return iEt(bo(oo,49),bo(co,49))},Vo(lm,"Collectors/lambda$50$Type",361),zo(362,1,{},Ks),wo.Kb=function(oo){return bo(oo,49)},Vo(lm,"Collectors/lambda$51$Type",362),zo(1068,1,{},uDe),wo.Yd=function(oo,co){AOt(this.a,bo(oo,85),co)},Vo(lm,"Collectors/lambda$7$Type",1068),zo(1070,1,{},Bs),wo.Ve=function(oo,co){return oOt(bo(oo,85),bo(co,85),new ju)},Vo(lm,"Collectors/lambda$8$Type",1070),zo(1071,1,{},fDe),wo.Kb=function(oo){return nNt(this.a,bo(oo,85))},Vo(lm,"Collectors/lambda$9$Type",1071),zo(550,1,{}),wo.$e=function(){hL(this)},wo.d=!1,Vo(lm,"TerminatableStream",550),zo(827,550,Q3e,Awe),wo.$e=function(){hL(this)},Vo(lm,"DoubleStreamImpl",827),zo(1847,736,Kw,SGe),wo.Re=function(oo){return oDt(this,bo(oo,189))},wo.a=null,Vo(lm,"DoubleStreamImpl/2",1847),zo(1848,1,lV,dDe),wo.Pe=function(oo){QEt(this.a,oo)},Vo(lm,"DoubleStreamImpl/2/lambda$0$Type",1848),zo(1845,1,lV,hDe),wo.Pe=function(oo){XEt(this.a,oo)},Vo(lm,"DoubleStreamImpl/lambda$0$Type",1845),zo(1846,1,lV,pDe),wo.Pe=function(oo){Ttt(this.a,oo)},Vo(lm,"DoubleStreamImpl/lambda$2$Type",1846),zo(1397,735,Kw,fXe),wo.Re=function(oo){return GAt(this,bo(oo,202))},wo.a=0,wo.b=0,wo.c=0,Vo(lm,"IntStream/5",1397),zo(806,550,Q3e,Rwe),wo.$e=function(){hL(this)},wo._e=function(){return f3(this),this.a},Vo(lm,"IntStreamImpl",806),zo(807,550,Q3e,t2e),wo.$e=function(){hL(this)},wo._e=function(){return f3(this),fwe(),R1t},Vo(lm,"IntStreamImpl/Empty",807),zo(1687,1,tV,gDe),wo.Dd=function(oo){IJe(this.a,oo)},Vo(lm,"IntStreamImpl/lambda$4$Type",1687);var kXt=Ip(lm,"Stream");zo(26,550,{533:1,687:1,848:1},Ou),wo.$e=function(){hL(this)};var SR;Vo(lm,"StreamImpl",26),zo(1102,500,Kw,XVe),wo.Bd=function(oo){for(;K7t(this);){if(this.a.Bd(oo))return!0;hL(this.b),this.b=null,this.a=null}return!1},Vo(lm,"StreamImpl/1",1102),zo(1103,1,_1,mDe),wo.Cd=function(oo){wTt(this.a,bo(oo,848))},Vo(lm,"StreamImpl/1/lambda$0$Type",1103),zo(1104,1,f0,vDe),wo.Mb=function(oo){return om(this.a,oo)},Vo(lm,"StreamImpl/1methodref$add$Type",1104),zo(1105,500,Kw,RUe),wo.Bd=function(oo){var co;return this.a||(co=new Zl,this.b.a.Nb(new bDe(co)),Hu(),Up(co,this.c),this.a=new Du(co,16)),hZe(this.a,oo)},wo.a=null,Vo(lm,"StreamImpl/5",1105),zo(1106,1,_1,bDe),wo.Cd=function(oo){Jl(this.a,oo)},Vo(lm,"StreamImpl/5/2methodref$add$Type",1106),zo(737,500,Kw,T_e),wo.Bd=function(oo){for(this.b=!1;!this.b&&this.c.Bd(new pze(this,oo)););return this.b},wo.b=!1,Vo(lm,"StreamImpl/FilterSpliterator",737),zo(1096,1,_1,pze),wo.Cd=function(oo){mCt(this.a,this.b,oo)},Vo(lm,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),zo(1091,736,Kw,SXe),wo.Re=function(oo){return X5t(this,bo(oo,189))},Vo(lm,"StreamImpl/MapToDoubleSpliterator",1091),zo(1095,1,_1,gze),wo.Cd=function(oo){wEt(this.a,this.b,oo)},Vo(lm,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),zo(1090,735,Kw,_Xe),wo.Re=function(oo){return Q5t(this,bo(oo,202))},Vo(lm,"StreamImpl/MapToIntSpliterator",1090),zo(1094,1,_1,mze),wo.Cd=function(oo){xEt(this.a,this.b,oo)},Vo(lm,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),zo(734,500,Kw,u_e),wo.Bd=function(oo){return UVe(this,oo)},Vo(lm,"StreamImpl/MapToObjSpliterator",734),zo(1093,1,_1,vze),wo.Cd=function(oo){SEt(this.a,this.b,oo)},Vo(lm,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),zo(1092,500,Kw,ZZe),wo.Bd=function(oo){for(;hle(this.b,0);){if(!this.a.Bd(new Ds))return!1;this.b=jx(this.b,1)}return this.a.Bd(oo)},wo.b=0,Vo(lm,"StreamImpl/SkipSpliterator",1092),zo(1097,1,_1,Ds),wo.Cd=function(oo){},Vo(lm,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),zo(626,1,_1,Zs),wo.Cd=function(oo){Oae(this,oo)},Vo(lm,"StreamImpl/ValueConsumer",626),zo(1098,1,_1,Cl),wo.Cd=function(oo){lT()},Vo(lm,"StreamImpl/lambda$0$Type",1098),zo(1099,1,_1,ba),wo.Cd=function(oo){lT()},Vo(lm,"StreamImpl/lambda$1$Type",1099),zo(1100,1,{},yDe),wo.Ve=function(oo,co){return A4t(this.a,oo,co)},Vo(lm,"StreamImpl/lambda$4$Type",1100),zo(1101,1,_1,bze),wo.Cd=function(oo){D5t(this.b,this.a,oo)},Vo(lm,"StreamImpl/lambda$5$Type",1101),zo(1107,1,_1,wDe),wo.Cd=function(oo){URt(this.a,bo(oo,380))},Vo(lm,"TerminatableStream/lambda$0$Type",1107),zo(2142,1,{}),zo(2014,1,{},fu),Vo("javaemul.internal","ConsoleLogger",2014);var TXt=0;zo(2134,1,{}),zo(1830,1,_1,Lu),wo.Cd=function(oo){bo(oo,317)},Vo(dN,"BowyerWatsonTriangulation/lambda$0$Type",1830),zo(1831,1,_1,xDe),wo.Cd=function(oo){Fm(this.a,bo(oo,317).e)},Vo(dN,"BowyerWatsonTriangulation/lambda$1$Type",1831),zo(1832,1,_1,e1),wo.Cd=function(oo){bo(oo,177)},Vo(dN,"BowyerWatsonTriangulation/lambda$2$Type",1832),zo(1827,1,g0,SDe),wo.Ne=function(oo,co){return R9t(this.a,bo(oo,177),bo(co,177))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(dN,"NaiveMinST/lambda$0$Type",1827),zo(449,1,{},dD),Vo(dN,"NodeMicroLayout",449),zo(177,1,{177:1},v8),wo.Fb=function(oo){var co;return Hs(oo,177)?(co=bo(oo,177),ky(this.a,co.a)&&ky(this.b,co.b)||ky(this.a,co.b)&&ky(this.b,co.a)):!1},wo.Hb=function(){return h9(this.a)+h9(this.b)};var CXt=Vo(dN,"TEdge",177);zo(317,1,{317:1},f3e),wo.Fb=function(oo){var co;return Hs(oo,317)?(co=bo(oo,317),jX(this,co.a)&&jX(this,co.b)&&jX(this,co.c)):!1},wo.Hb=function(){return h9(this.a)+h9(this.b)+h9(this.c)},Vo(dN,"TTriangle",317),zo(225,1,{225:1},vY),Vo(dN,"Tree",225),zo(1218,1,{},gKe),Vo(Jct,"Scanline",1218);var F1t=Ip(Jct,eut);zo(1758,1,{},uZe),Vo(PE,"CGraph",1758),zo(316,1,{316:1},bKe),wo.b=0,wo.c=0,wo.d=0,wo.g=0,wo.i=0,wo.k=am,Vo(PE,"CGroup",316),zo(830,1,{},vye),Vo(PE,"CGroup/CGroupBuilder",830),zo(60,1,{60:1},RVe),wo.Ib=function(){var oo;return this.j?u0(this.j.Kb(this)):(c5(XJ),XJ.o+"@"+(oo=PC(this)>>>0,oo.toString(16)))},wo.f=0,wo.i=am;var XJ=Vo(PE,"CNode",60);zo(829,1,{},bye),Vo(PE,"CNode/CNodeBuilder",829);var P1t;zo(1590,1,{},Gu),wo.ff=function(oo,co){return 0},wo.gf=function(oo,co){return 0},Vo(PE,nut,1590),zo(1853,1,{},w1),wo.cf=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss;for(Io=Tp,po=new _s(oo.a.b);po.apo.d.c||po.d.c==xo.d.c&&po.d.b0?oo+this.n.d+this.n.a:0},wo.kf=function(){var oo,co,fo,po,vo;if(vo=0,this.e)this.b?vo=this.b.a:this.a[1][1]&&(vo=this.a[1][1].kf());else if(this.g)vo=cke(this,Tde(this,null,!0));else for(co=(US(),As($s(fA,1),Pl,237,0,[xy,c2,Sy])),fo=0,po=co.length;fo0?vo+this.n.b+this.n.c:0},wo.lf=function(){var oo,co,fo,po,vo;if(this.g)for(oo=Tde(this,null,!1),fo=(US(),As($s(fA,1),Pl,237,0,[xy,c2,Sy])),po=0,vo=fo.length;po0&&(po[0]+=this.d,fo-=po[0]),po[2]>0&&(po[2]+=this.d,fo-=po[2]),this.c.a=lo.Math.max(0,fo),this.c.d=co.d+oo.d+(this.c.a-fo)/2,po[1]=lo.Math.max(po[1],fo),s_e(this,c2,co.d+oo.d+po[0]-(po[1]-fo)/2,po)},wo.b=null,wo.d=0,wo.e=!1,wo.f=!1,wo.g=!1;var Gpe=0,QJ=0;Vo(MT,"GridContainerCell",1538),zo(471,22,{3:1,34:1,22:1,471:1},vle);var D3,fE,yS,Y1t=V1(MT,"HorizontalLabelAlignment",471,X1,G$t,v4t),X1t;zo(314,217,{217:1,314:1},tKe,dZe,KUe),wo.jf=function(){return DGe(this)},wo.kf=function(){return Exe(this)},wo.a=0,wo.c=!1;var $Xt=Vo(MT,"LabelCell",314);zo(252,336,{217:1,336:1,252:1},qL),wo.jf=function(){return JL(this)},wo.kf=function(){return eB(this)},wo.lf=function(){phe(this)},wo.mf=function(){ghe(this)},wo.b=0,wo.c=0,wo.d=!1,Vo(MT,"StripContainerCell",252),zo(1691,1,f0,h0),wo.Mb=function(oo){return v_t(bo(oo,217))},Vo(MT,"StripContainerCell/lambda$0$Type",1691),zo(1692,1,{},cp),wo.Ye=function(oo){return bo(oo,217).kf()},Vo(MT,"StripContainerCell/lambda$1$Type",1692),zo(1693,1,f0,k0),wo.Mb=function(oo){return b_t(bo(oo,217))},Vo(MT,"StripContainerCell/lambda$2$Type",1693),zo(1694,1,{},ap),wo.Ye=function(oo){return bo(oo,217).jf()},Vo(MT,"StripContainerCell/lambda$3$Type",1694),zo(472,22,{3:1,34:1,22:1,472:1},ble);var wS,L3,ZS,Q1t=V1(MT,"VerticalLabelAlignment",472,X1,V$t,b4t),Z1t;zo(800,1,{},$3e),wo.c=0,wo.d=0,wo.k=0,wo.s=0,wo.t=0,wo.v=!1,wo.w=0,wo.D=!1,wo.F=!1,Vo(FZ,"NodeContext",800),zo(1536,1,g0,x0),wo.Ne=function(oo,co){return UHe(bo(oo,64),bo(co,64))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(FZ,"NodeContext/0methodref$comparePortSides$Type",1536),zo(1537,1,g0,b0),wo.Ne=function(oo,co){return KBt(bo(oo,117),bo(co,117))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(FZ,"NodeContext/1methodref$comparePortContexts$Type",1537),zo(164,22,{3:1,34:1,22:1,164:1},gx);var J1t,e0t,t0t,n0t,r0t,i0t,o0t,s0t,a0t,l0t,c0t,u0t,f0t,d0t,h0t,p0t,g0t,m0t,v0t,b0t,y0t,Wpe,w0t=V1(FZ,"NodeLabelLocation",164,X1,rde,y4t),x0t;zo(117,1,{117:1},lot),wo.a=!1,Vo(FZ,"PortContext",117),zo(1541,1,_1,P1),wo.Cd=function(oo){dje(bo(oo,314))},Vo(uV,gut,1541),zo(1542,1,f0,c1),wo.Mb=function(oo){return!!bo(oo,117).c},Vo(uV,mut,1542),zo(1543,1,_1,V0),wo.Cd=function(oo){dje(bo(oo,117).c)},Vo(uV,"LabelPlacer/lambda$2$Type",1543);var AAe;zo(1540,1,_1,P0),wo.Cd=function(oo){x$(),XSt(bo(oo,117))},Vo(uV,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),zo(801,1,_1,rxe),wo.Cd=function(oo){uEt(this.b,this.c,this.a,bo(oo,187))},wo.a=!1,wo.c=!1,Vo(uV,"NodeLabelCellCreator/lambda$0$Type",801),zo(1539,1,_1,kDe),wo.Cd=function(oo){JSt(this.a,bo(oo,187))},Vo(uV,"PortContextCreator/lambda$0$Type",1539);var ZJ;zo(1902,1,{},up),Vo(pN,"GreedyRectangleStripOverlapRemover",1902),zo(1903,1,g0,Lp),wo.Ne=function(oo,co){return Hkt(bo(oo,226),bo(co,226))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(pN,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),zo(1849,1,{},DFe),wo.a=5,wo.e=0,Vo(pN,"RectangleStripOverlapRemover",1849),zo(1850,1,g0,Mv),wo.Ne=function(oo,co){return qkt(bo(oo,226),bo(co,226))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(pN,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),zo(1852,1,g0,$v),wo.Ne=function(oo,co){return ICt(bo(oo,226),bo(co,226))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(pN,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),zo(417,22,{3:1,34:1,22:1,417:1},WK);var LV,Upe,Kpe,BV,S0t=V1(pN,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,X1,o9t,w4t),_0t;zo(226,1,{226:1},Nce),Vo(pN,"RectangleStripOverlapRemover/RectangleNode",226),zo(1851,1,_1,TDe),wo.Cd=function(oo){wDt(this.a,bo(oo,226))},Vo(pN,"RectangleStripOverlapRemover/lambda$1$Type",1851),zo(1323,1,g0,Gv),wo.Ne=function(oo,co){return PWt(bo(oo,176),bo(co,176))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(iE,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),zo(1326,1,{},C1),wo.Kb=function(oo){return bo(oo,334).a},Vo(iE,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),zo(1327,1,f0,Ll),wo.Mb=function(oo){return bo(oo,332).a},Vo(iE,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),zo(1328,1,f0,Ul),wo.Mb=function(oo){return bo(oo,332).a},Vo(iE,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),zo(1321,1,g0,_l),wo.Ne=function(oo,co){return mVt(bo(oo,176),bo(co,176))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(iE,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),zo(1324,1,{},$l),wo.Kb=function(oo){return bo(oo,334).a},Vo(iE,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),zo(781,1,g0,Us),wo.Ne=function(oo,co){return ZRt(bo(oo,176),bo(co,176))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(iE,"PolyominoCompactor/MinNumOfExtensionsComparator",781),zo(1319,1,g0,Rl),wo.Ne=function(oo,co){return sRt(bo(oo,330),bo(co,330))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(iE,"PolyominoCompactor/MinPerimeterComparator",1319),zo(1320,1,g0,Sl),wo.Ne=function(oo,co){return VMt(bo(oo,330),bo(co,330))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(iE,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),zo(1322,1,g0,eu),wo.Ne=function(oo,co){return LVt(bo(oo,176),bo(co,176))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(iE,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),zo(1325,1,{},_c),wo.Kb=function(oo){return bo(oo,334).a},Vo(iE,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),zo(782,1,{},p2e),wo.Ve=function(oo,co){return QAt(this,bo(oo,42),bo(co,176))},Vo(iE,"SuccessorCombination",782),zo(649,1,{},zu),wo.Ve=function(oo,co){var fo;return hjt((fo=bo(oo,42),bo(co,176),fo))},Vo(iE,"SuccessorJitter",649),zo(648,1,{},N1),wo.Ve=function(oo,co){var fo;return JHt((fo=bo(oo,42),bo(co,176),fo))},Vo(iE,"SuccessorLineByLine",648),zo(573,1,{},K0),wo.Ve=function(oo,co){var fo;return hzt((fo=bo(oo,42),bo(co,176),fo))},Vo(iE,"SuccessorManhattan",573),zo(1344,1,{},J0),wo.Ve=function(oo,co){var fo;return _Ht((fo=bo(oo,42),bo(co,176),fo))},Vo(iE,"SuccessorMaxNormWindingInMathPosSense",1344),zo(409,1,{},_O),wo.Ve=function(oo,co){return Kxe(this,oo,co)},wo.c=!1,wo.d=!1,wo.e=!1,wo.f=!1,Vo(iE,"SuccessorQuadrantsGeneric",409),zo(1345,1,{},S1),wo.Kb=function(oo){return bo(oo,334).a},Vo(iE,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),zo(332,22,{3:1,34:1,22:1,332:1},UK),wo.a=!1;var FV,PV,jV,zV,E0t=V1(jZ,lTe,332,X1,r9t,x4t),k0t;zo(1317,1,{}),wo.Ib=function(){var oo,co,fo,po,vo,xo;for(fo=" ",oo=Ql(0),vo=0;vo>>0,oo.toString(16))},wo.equals=function(ro){return this.Fb(ro)},wo.hashCode=function(){return this.Hb()},wo.toString=function(){return this.Ib()};var n1t,r1t,i1t;zo(297,1,{297:1,2124:1},SEe),wo.ve=function(oo){var co;return co=new SEe,co.i=4,oo>1?co.c=dKe(this,oo-1):co.c=this,co},wo.we=function(){return c5(this),this.b},wo.xe=function(){return aT(this)},wo.ye=function(){return c5(this),this.k},wo.ze=function(){return(this.i&4)!=0},wo.Ae=function(){return(this.i&1)!=0},wo.Ib=function(){return N_e(this)},wo.i=0;var bm=Vo(yy,"Object",1),A$e=Vo(yy,"Class",297);zo(2096,1,Jq),Vo(eV,"Optional",2096),zo(1191,2096,Jq,go),wo.Fb=function(oo){return oo===this},wo.Hb=function(){return 2040732332},wo.Ib=function(){return"Optional.absent()"},wo.Jb=function(oo){return a0(oo),bD(),xpe};var xpe;Vo(eV,"Absent",1191),zo(636,1,{},tle),Vo(eV,"Joiner",636);var vXt=Ip(eV,"Predicate");zo(589,1,{178:1,589:1,3:1,46:1},XU),wo.Mb=function(oo){return pet(this,oo)},wo.Lb=function(oo){return pet(this,oo)},wo.Fb=function(oo){var co;return Hs(oo,589)?(co=bo(oo,589),y4e(this.a,co.a)):!1},wo.Hb=function(){return $Ee(this.a)+306654252},wo.Ib=function(){return rPt(this.a)},Vo(eV,"Predicates/AndPredicate",589),zo(419,2096,{419:1,3:1},aD),wo.Fb=function(oo){var co;return Hs(oo,419)?(co=bo(oo,419),U0(this.a,co.a)):!1},wo.Hb=function(){return 1502476572+dp(this.a)},wo.Ib=function(){return Act+this.a+")"},wo.Jb=function(oo){return new aD(uX(oo.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},Vo(eV,"Present",419),zo(204,1,oN),wo.Nb=function(oo){jm(this,oo)},wo.Qb=function(){NPe()},Vo(Au,"UnmodifiableIterator",204),zo(2076,204,sN),wo.Qb=function(){NPe()},wo.Rb=function(oo){throw Cs(new l0)},wo.Wb=function(oo){throw Cs(new l0)},Vo(Au,"UnmodifiableListIterator",2076),zo(399,2076,sN),wo.Ob=function(){return this.c0},wo.Pb=function(){if(this.c>=this.d)throw Cs(new ay);return this.Xb(this.c++)},wo.Tb=function(){return this.c},wo.Ub=function(){if(this.c<=0)throw Cs(new ay);return this.Xb(--this.c)},wo.Vb=function(){return this.c-1},wo.c=0,wo.d=0,Vo(Au,"AbstractIndexedListIterator",399),zo(713,204,oN),wo.Ob=function(){return ife(this)},wo.Pb=function(){return C_e(this)},wo.e=1,Vo(Au,"AbstractIterator",713),zo(2084,1,{229:1}),wo.Zb=function(){var oo;return oo=this.f,oo||(this.f=this.ac())},wo.Fb=function(oo){return Tfe(this,oo)},wo.Hb=function(){return dp(this.Zb())},wo.dc=function(){return this.gc()==0},wo.ec=function(){return A8(this)},wo.Ib=function(){return ry(this.Zb())},Vo(Au,"AbstractMultimap",2084),zo(742,2084,IT),wo.$b=function(){eQ(this)},wo._b=function(oo){return ZPe(this,oo)},wo.ac=function(){return new NO(this,this.c)},wo.ic=function(oo){return this.hc()},wo.bc=function(){return new v9(this,this.c)},wo.jc=function(){return this.mc(this.hc())},wo.kc=function(){return new vPe(this)},wo.lc=function(){return Dde(this.c.vc().Nc(),new yo,64,this.d)},wo.cc=function(oo){return Q0(this,oo)},wo.fc=function(oo){return dq(this,oo)},wo.gc=function(){return this.d},wo.mc=function(oo){return Hu(),new fv(oo)},wo.nc=function(){return new mPe(this)},wo.oc=function(){return Dde(this.c.Cc().Nc(),new mo,64,this.d)},wo.pc=function(oo,co){return new IX(this,oo,co,null)},wo.d=0,Vo(Au,"AbstractMapBasedMultimap",742),zo(1696,742,IT),wo.hc=function(){return new o2(this.a)},wo.jc=function(){return Hu(),Hu(),cv},wo.cc=function(oo){return bo(Q0(this,oo),15)},wo.fc=function(oo){return bo(dq(this,oo),15)},wo.Zb=function(){return D8(this)},wo.Fb=function(oo){return Tfe(this,oo)},wo.qc=function(oo){return bo(Q0(this,oo),15)},wo.rc=function(oo){return bo(dq(this,oo),15)},wo.mc=function(oo){return sue(bo(oo,15))},wo.pc=function(oo,co){return yYe(this,oo,bo(co,15),null)},Vo(Au,"AbstractListMultimap",1696),zo(748,1,$m),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return this.c.Ob()||this.e.Ob()},wo.Pb=function(){var oo;return this.e.Ob()||(oo=bo(this.c.Pb(),44),this.b=oo.ld(),this.a=bo(oo.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},wo.Qb=function(){this.e.Qb(),bo(Fx(this.a),16).dc()&&this.c.Qb(),--this.d.d},Vo(Au,"AbstractMapBasedMultimap/Itr",748),zo(1129,748,$m,mPe),wo.sc=function(oo,co){return co},Vo(Au,"AbstractMapBasedMultimap/1",1129),zo(1130,1,{},mo),wo.Kb=function(oo){return bo(oo,16).Nc()},Vo(Au,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),zo(1131,748,$m,vPe),wo.sc=function(oo,co){return new OC(oo,co)},Vo(Au,"AbstractMapBasedMultimap/2",1131);var R$e=Ip(j1,"Map");zo(2065,1,x6),wo.wc=function(oo){AL(this,oo)},wo.yc=function(oo,co,fo){return Gfe(this,oo,co,fo)},wo.$b=function(){this.vc().$b()},wo.tc=function(oo){return vde(this,oo)},wo._b=function(oo){return!!v5e(this,oo,!1)},wo.uc=function(oo){var co,fo,po;for(fo=this.vc().Kc();fo.Ob();)if(co=bo(fo.Pb(),44),po=co.md(),$a(oo)===$a(po)||oo!=null&&U0(oo,po))return!0;return!1},wo.Fb=function(oo){var co,fo,po;if(oo===this)return!0;if(!Hs(oo,85)||(po=bo(oo,85),this.gc()!=po.gc()))return!1;for(fo=po.vc().Kc();fo.Ob();)if(co=bo(fo.Pb(),44),!this.tc(co))return!1;return!0},wo.xc=function(oo){return Uv(v5e(this,oo,!1))},wo.Hb=function(){return bEe(this.vc())},wo.dc=function(){return this.gc()==0},wo.ec=function(){return new Dl(this)},wo.zc=function(oo,co){throw Cs(new X5("Put not supported on this map"))},wo.Ac=function(oo){$L(this,oo)},wo.Bc=function(oo){return Uv(v5e(this,oo,!0))},wo.gc=function(){return this.vc().gc()},wo.Ib=function(){return Rrt(this)},wo.Cc=function(){return new L0(this)},Vo(j1,"AbstractMap",2065),zo(2085,2065,x6),wo.bc=function(){return new IK(this)},wo.vc=function(){return gWe(this)},wo.ec=function(){var oo;return oo=this.g,oo||(this.g=this.bc())},wo.Cc=function(){var oo;return oo=this.i,oo||(this.i=new Hje(this))},Vo(Au,"Maps/ViewCachingAbstractMap",2085),zo(402,2085,x6,NO),wo.xc=function(oo){return S8t(this,oo)},wo.Bc=function(oo){return GOt(this,oo)},wo.$b=function(){this.d==this.e.c?this.e.$b():zY(new Axe(this))},wo._b=function(oo){return ett(this.d,oo)},wo.Ec=function(){return new aae(this)},wo.Dc=function(){return this.Ec()},wo.Fb=function(oo){return this===oo||U0(this.d,oo)},wo.Hb=function(){return dp(this.d)},wo.ec=function(){return this.e.ec()},wo.gc=function(){return this.d.gc()},wo.Ib=function(){return ry(this.d)},Vo(Au,"AbstractMapBasedMultimap/AsMap",402);var Xw=Ip(yy,"Iterable");zo(31,1,eA),wo.Jc=function(oo){Hm(this,oo)},wo.Lc=function(){return this.Oc()},wo.Nc=function(){return new Du(this,0)},wo.Oc=function(){return new Ou(null,this.Nc())},wo.Fc=function(oo){throw Cs(new X5("Add not supported on this collection"))},wo.Gc=function(oo){return Fm(this,oo)},wo.$b=function(){gSe(this)},wo.Hc=function(oo){return j$(this,oo,!1)},wo.Ic=function(oo){return iq(this,oo)},wo.dc=function(){return this.gc()==0},wo.Mc=function(oo){return j$(this,oo,!0)},wo.Pc=function(){return Pxe(this)},wo.Qc=function(oo){return UL(this,oo)},wo.Ib=function(){return _3(this)},Vo(j1,"AbstractCollection",31);var Kx=Ip(j1,"Set");zo(w_,31,U2),wo.Nc=function(){return new Du(this,1)},wo.Fb=function(oo){return Gtt(this,oo)},wo.Hb=function(){return bEe(this)},Vo(j1,"AbstractSet",w_),zo(2068,w_,U2),Vo(Au,"Sets/ImprovedAbstractSet",2068),zo(2069,2068,U2),wo.$b=function(){this.Rc().$b()},wo.Hc=function(oo){return Att(this,oo)},wo.dc=function(){return this.Rc().dc()},wo.Mc=function(oo){var co;return this.Hc(oo)&&Hs(oo,44)?(co=bo(oo,44),this.Rc().ec().Mc(co.ld())):!1},wo.gc=function(){return this.Rc().gc()},Vo(Au,"Maps/EntrySet",2069),zo(1127,2069,U2,aae),wo.Hc=function(oo){return GEe(this.a.d.vc(),oo)},wo.Kc=function(){return new Axe(this.a)},wo.Rc=function(){return this.a},wo.Mc=function(oo){var co;return GEe(this.a.d.vc(),oo)?(co=bo(Fx(bo(oo,44)),44),u7t(this.a.e,co.ld()),!0):!1},wo.Nc=function(){return pH(this.a.d.vc().Nc(),new lae(this.a))},Vo(Au,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),zo(1128,1,{},lae),wo.Kb=function(oo){return vXe(this.a,bo(oo,44))},Vo(Au,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),zo(746,1,$m,Axe),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){var oo;return oo=bo(this.b.Pb(),44),this.a=bo(oo.md(),16),vXe(this.c,oo)},wo.Ob=function(){return this.b.Ob()},wo.Qb=function(){HO(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},Vo(Au,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),zo(542,2068,U2,IK),wo.$b=function(){this.b.$b()},wo.Hc=function(oo){return this.b._b(oo)},wo.Jc=function(oo){a0(oo),this.b.wc(new xae(oo))},wo.dc=function(){return this.b.dc()},wo.Kc=function(){return new yD(this.b.vc().Kc())},wo.Mc=function(oo){return this.b._b(oo)?(this.b.Bc(oo),!0):!1},wo.gc=function(){return this.b.gc()},Vo(Au,"Maps/KeySet",542),zo(327,542,U2,v9),wo.$b=function(){var oo;zY((oo=this.b.vc().Kc(),new Jye(this,oo)))},wo.Ic=function(oo){return this.b.ec().Ic(oo)},wo.Fb=function(oo){return this===oo||U0(this.b.ec(),oo)},wo.Hb=function(){return dp(this.b.ec())},wo.Kc=function(){var oo;return oo=this.b.vc().Kc(),new Jye(this,oo)},wo.Mc=function(oo){var co,fo;return fo=0,co=bo(this.b.Bc(oo),16),co&&(fo=co.gc(),co.$b(),this.a.d-=fo),fo>0},wo.Nc=function(){return this.b.ec().Nc()},Vo(Au,"AbstractMapBasedMultimap/KeySet",327),zo(747,1,$m,Jye),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return this.c.Ob()},wo.Pb=function(){return this.a=bo(this.c.Pb(),44),this.a.ld()},wo.Qb=function(){var oo;HO(!!this.a),oo=bo(this.a.md(),16),this.c.Qb(),this.b.a.d-=oo.gc(),oo.$b(),this.a=null},Vo(Au,"AbstractMapBasedMultimap/KeySet/1",747),zo(503,402,{85:1,133:1},aH),wo.bc=function(){return this.Sc()},wo.ec=function(){return this.Uc()},wo.Sc=function(){return new Dz(this.c,this.Wc())},wo.Tc=function(){return this.Wc().Tc()},wo.Uc=function(){var oo;return oo=this.b,oo||(this.b=this.Sc())},wo.Vc=function(){return this.Wc().Vc()},wo.Wc=function(){return bo(this.d,133)},Vo(Au,"AbstractMapBasedMultimap/SortedAsMap",503),zo(446,503,P3e,eL),wo.bc=function(){return new IO(this.a,bo(bo(this.d,133),139))},wo.Sc=function(){return new IO(this.a,bo(bo(this.d,133),139))},wo.ec=function(){var oo;return oo=this.b,bo(oo||(this.b=new IO(this.a,bo(bo(this.d,133),139))),277)},wo.Uc=function(){var oo;return oo=this.b,bo(oo||(this.b=new IO(this.a,bo(bo(this.d,133),139))),277)},wo.Wc=function(){return bo(bo(this.d,133),139)},wo.Xc=function(oo){return bo(bo(this.d,133),139).Xc(oo)},wo.Yc=function(oo){return bo(bo(this.d,133),139).Yc(oo)},wo.Zc=function(oo,co){return new eL(this.a,bo(bo(this.d,133),139).Zc(oo,co))},wo.$c=function(oo){return bo(bo(this.d,133),139).$c(oo)},wo._c=function(oo){return bo(bo(this.d,133),139)._c(oo)},wo.ad=function(oo,co){return new eL(this.a,bo(bo(this.d,133),139).ad(oo,co))},Vo(Au,"AbstractMapBasedMultimap/NavigableAsMap",446),zo(502,327,Rct,Dz),wo.Nc=function(){return this.b.ec().Nc()},Vo(Au,"AbstractMapBasedMultimap/SortedKeySet",502),zo(401,502,j3e,IO),Vo(Au,"AbstractMapBasedMultimap/NavigableKeySet",401),zo(551,31,eA,IX),wo.Fc=function(oo){var co,fo;return bw(this),fo=this.d.dc(),co=this.d.Fc(oo),co&&(++this.f.d,fo&&fH(this)),co},wo.Gc=function(oo){var co,fo,po;return oo.dc()?!1:(po=(bw(this),this.d.gc()),co=this.d.Gc(oo),co&&(fo=this.d.gc(),this.f.d+=fo-po,po==0&&fH(this)),co)},wo.$b=function(){var oo;oo=(bw(this),this.d.gc()),oo!=0&&(this.d.$b(),this.f.d-=oo,UY(this))},wo.Hc=function(oo){return bw(this),this.d.Hc(oo)},wo.Ic=function(oo){return bw(this),this.d.Ic(oo)},wo.Fb=function(oo){return oo===this?!0:(bw(this),U0(this.d,oo))},wo.Hb=function(){return bw(this),dp(this.d)},wo.Kc=function(){return bw(this),new dxe(this)},wo.Mc=function(oo){var co;return bw(this),co=this.d.Mc(oo),co&&(--this.f.d,UY(this)),co},wo.gc=function(){return RHe(this)},wo.Nc=function(){return bw(this),this.d.Nc()},wo.Ib=function(){return bw(this),ry(this.d)},Vo(Au,"AbstractMapBasedMultimap/WrappedCollection",551);var kx=Ip(j1,"List");zo(744,551,{20:1,31:1,16:1,15:1},Hxe),wo.jd=function(oo){wT(this,oo)},wo.Nc=function(){return bw(this),this.d.Nc()},wo.bd=function(oo,co){var fo;bw(this),fo=this.d.dc(),bo(this.d,15).bd(oo,co),++this.a.d,fo&&fH(this)},wo.cd=function(oo,co){var fo,po,vo;return co.dc()?!1:(vo=(bw(this),this.d.gc()),fo=bo(this.d,15).cd(oo,co),fo&&(po=this.d.gc(),this.a.d+=po-vo,vo==0&&fH(this)),fo)},wo.Xb=function(oo){return bw(this),bo(this.d,15).Xb(oo)},wo.dd=function(oo){return bw(this),bo(this.d,15).dd(oo)},wo.ed=function(){return bw(this),new sqe(this)},wo.fd=function(oo){return bw(this),new AUe(this,oo)},wo.gd=function(oo){var co;return bw(this),co=bo(this.d,15).gd(oo),--this.a.d,UY(this),co},wo.hd=function(oo,co){return bw(this),bo(this.d,15).hd(oo,co)},wo.kd=function(oo,co){return bw(this),yYe(this.a,this.e,bo(this.d,15).kd(oo,co),this.b?this.b:this)},Vo(Au,"AbstractMapBasedMultimap/WrappedList",744),zo(1126,744,{20:1,31:1,16:1,15:1,59:1},Yqe),Vo(Au,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),zo(628,1,$m,dxe),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return JO(this),this.b.Ob()},wo.Pb=function(){return JO(this),this.b.Pb()},wo.Qb=function(){Nqe(this)},Vo(Au,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),zo(745,628,DE,sqe,AUe),wo.Qb=function(){Nqe(this)},wo.Rb=function(oo){var co;co=RHe(this.a)==0,(JO(this),bo(this.b,128)).Rb(oo),++this.a.a.d,co&&fH(this.a)},wo.Sb=function(){return(JO(this),bo(this.b,128)).Sb()},wo.Tb=function(){return(JO(this),bo(this.b,128)).Tb()},wo.Ub=function(){return(JO(this),bo(this.b,128)).Ub()},wo.Vb=function(){return(JO(this),bo(this.b,128)).Vb()},wo.Wb=function(oo){(JO(this),bo(this.b,128)).Wb(oo)},Vo(Au,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),zo(743,551,Rct,Owe),wo.Nc=function(){return bw(this),this.d.Nc()},Vo(Au,"AbstractMapBasedMultimap/WrappedSortedSet",743),zo(1125,743,j3e,tqe),Vo(Au,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),zo(1124,551,U2,mVe),wo.Nc=function(){return bw(this),this.d.Nc()},Vo(Au,"AbstractMapBasedMultimap/WrappedSet",1124),zo(1133,1,{},yo),wo.Kb=function(oo){return w7t(bo(oo,44))},Vo(Au,"AbstractMapBasedMultimap/lambda$1$Type",1133),zo(1132,1,{},uae),wo.Kb=function(oo){return new OC(this.a,oo)},Vo(Au,"AbstractMapBasedMultimap/lambda$2$Type",1132);var qT=Ip(j1,"Map/Entry");zo(358,1,Bhe),wo.Fb=function(oo){var co;return Hs(oo,44)?(co=bo(oo,44),K_(this.ld(),co.ld())&&K_(this.md(),co.md())):!1},wo.Hb=function(){var oo,co;return oo=this.ld(),co=this.md(),(oo==null?0:dp(oo))^(co==null?0:dp(co))},wo.nd=function(oo){throw Cs(new l0)},wo.Ib=function(){return this.ld()+"="+this.md()},Vo(Au,Oct,358),zo(2086,31,eA),wo.$b=function(){this.od().$b()},wo.Hc=function(oo){var co;return Hs(oo,44)?(co=bo(oo,44),zAt(this.od(),co.ld(),co.md())):!1},wo.Mc=function(oo){var co;return Hs(oo,44)?(co=bo(oo,44),eYe(this.od(),co.ld(),co.md())):!1},wo.gc=function(){return this.od().d},Vo(Au,"Multimaps/Entries",2086),zo(749,2086,eA,JU),wo.Kc=function(){return this.a.kc()},wo.od=function(){return this.a},wo.Nc=function(){return this.a.lc()},Vo(Au,"AbstractMultimap/Entries",749),zo(750,749,U2,Rye),wo.Nc=function(){return this.a.lc()},wo.Fb=function(oo){return B5e(this,oo)},wo.Hb=function(){return fJe(this)},Vo(Au,"AbstractMultimap/EntrySet",750),zo(751,31,eA,eK),wo.$b=function(){this.a.$b()},wo.Hc=function(oo){return POt(this.a,oo)},wo.Kc=function(){return this.a.nc()},wo.gc=function(){return this.a.d},wo.Nc=function(){return this.a.oc()},Vo(Au,"AbstractMultimap/Values",751),zo(2087,31,{849:1,20:1,31:1,16:1}),wo.Jc=function(oo){a0(oo),y9(this).Jc(new Cae(oo))},wo.Nc=function(){var oo;return oo=y9(this).Nc(),Dde(oo,new No,64|oo.yd()&1296,this.a.d)},wo.Fc=function(oo){return Fye(),!0},wo.Gc=function(oo){return a0(this),a0(oo),Hs(oo,552)?VAt(bo(oo,849)):!oo.dc()&&Yue(this,oo.Kc())},wo.Hc=function(oo){var co;return co=bo(P$(D8(this.a),oo),16),(co?co.gc():0)>0},wo.Fb=function(oo){return dzt(this,oo)},wo.Hb=function(){return dp(y9(this))},wo.dc=function(){return y9(this).dc()},wo.Mc=function(oo){return Vit(this,oo,1)>0},wo.Ib=function(){return ry(y9(this))},Vo(Au,"AbstractMultiset",2087),zo(2089,2068,U2),wo.$b=function(){eQ(this.a.a)},wo.Hc=function(oo){var co,fo;return Hs(oo,504)?(fo=bo(oo,425),bo(fo.a.md(),16).gc()<=0?!1:(co=CKe(this.a,fo.a.ld()),co==bo(fo.a.md(),16).gc())):!1},wo.Mc=function(oo){var co,fo,po,vo;return Hs(oo,504)&&(fo=bo(oo,425),co=fo.a.ld(),po=bo(fo.a.md(),16).gc(),po!=0)?(vo=this.a,njt(vo,co,po)):!1},Vo(Au,"Multisets/EntrySet",2089),zo(1139,2089,U2,o8),wo.Kc=function(){return new SPe(gWe(D8(this.a.a)).Kc())},wo.gc=function(){return D8(this.a.a).gc()},Vo(Au,"AbstractMultiset/EntrySet",1139),zo(627,742,IT),wo.hc=function(){return this.pd()},wo.jc=function(){return this.qd()},wo.cc=function(oo){return this.rd(oo)},wo.fc=function(oo){return this.sd(oo)},wo.Zb=function(){var oo;return oo=this.f,oo||(this.f=this.ac())},wo.qd=function(){return Hu(),Hu(),KJ},wo.Fb=function(oo){return Tfe(this,oo)},wo.rd=function(oo){return bo(Q0(this,oo),21)},wo.sd=function(oo){return bo(dq(this,oo),21)},wo.mc=function(oo){return Hu(),new CO(bo(oo,21))},wo.pc=function(oo,co){return new mVe(this,oo,bo(co,21))},Vo(Au,"AbstractSetMultimap",627),zo(1723,627,IT),wo.hc=function(){return new e4(this.b)},wo.pd=function(){return new e4(this.b)},wo.jc=function(){return cSe(new e4(this.b))},wo.qd=function(){return cSe(new e4(this.b))},wo.cc=function(oo){return bo(bo(Q0(this,oo),21),87)},wo.rd=function(oo){return bo(bo(Q0(this,oo),21),87)},wo.fc=function(oo){return bo(bo(dq(this,oo),21),87)},wo.sd=function(oo){return bo(bo(dq(this,oo),21),87)},wo.mc=function(oo){return Hs(oo,277)?cSe(bo(oo,277)):(Hu(),new mwe(bo(oo,87)))},wo.Zb=function(){var oo;return oo=this.f,oo||(this.f=Hs(this.c,139)?new eL(this,bo(this.c,139)):Hs(this.c,133)?new aH(this,bo(this.c,133)):new NO(this,this.c))},wo.pc=function(oo,co){return Hs(co,277)?new tqe(this,oo,bo(co,277)):new Owe(this,oo,bo(co,87))},Vo(Au,"AbstractSortedSetMultimap",1723),zo(1724,1723,IT),wo.Zb=function(){var oo;return oo=this.f,bo(bo(oo||(this.f=Hs(this.c,139)?new eL(this,bo(this.c,139)):Hs(this.c,133)?new aH(this,bo(this.c,133)):new NO(this,this.c)),133),139)},wo.ec=function(){var oo;return oo=this.i,bo(bo(oo||(this.i=Hs(this.c,139)?new IO(this,bo(this.c,139)):Hs(this.c,133)?new Dz(this,bo(this.c,133)):new v9(this,this.c)),87),277)},wo.bc=function(){return Hs(this.c,139)?new IO(this,bo(this.c,139)):Hs(this.c,133)?new Dz(this,bo(this.c,133)):new v9(this,this.c)},Vo(Au,"AbstractSortedKeySortedSetMultimap",1724),zo(2109,1,{2046:1}),wo.Fb=function(oo){return BLt(this,oo)},wo.Hb=function(){var oo;return bEe((oo=this.g,oo||(this.g=new wz(this))))},wo.Ib=function(){var oo;return Rrt((oo=this.f,oo||(this.f=new dwe(this))))},Vo(Au,"AbstractTable",2109),zo(679,w_,U2,wz),wo.$b=function(){MPe()},wo.Hc=function(oo){var co,fo;return Hs(oo,479)?(co=bo(oo,697),fo=bo(P$(PWe(this.a),o3(co.c.e,co.b)),85),!!fo&&GEe(fo.vc(),new OC(o3(co.c.c,co.a),H8(co.c,co.b,co.a)))):!1},wo.Kc=function(){return j6t(this.a)},wo.Mc=function(oo){var co,fo;return Hs(oo,479)?(co=bo(oo,697),fo=bo(P$(PWe(this.a),o3(co.c.e,co.b)),85),!!fo&&bIt(fo.vc(),new OC(o3(co.c.c,co.a),H8(co.c,co.b,co.a)))):!1},wo.gc=function(){return HGe(this.a)},wo.Nc=function(){return UAt(this.a)},Vo(Au,"AbstractTable/CellSet",679),zo(2025,31,eA,dae),wo.$b=function(){MPe()},wo.Hc=function(oo){return ABt(this.a,oo)},wo.Kc=function(){return z6t(this.a)},wo.gc=function(){return HGe(this.a)},wo.Nc=function(){return JKe(this.a)},Vo(Au,"AbstractTable/Values",2025),zo(1697,1696,IT),Vo(Au,"ArrayListMultimapGwtSerializationDependencies",1697),zo(520,1697,IT,ile,OSe),wo.hc=function(){return new o2(this.a)},wo.a=0,Vo(Au,"ArrayListMultimap",520),zo(678,2109,{678:1,2046:1,3:1},iot),Vo(Au,"ArrayTable",678),zo(2021,399,sN,Mqe),wo.Xb=function(oo){return new _Ee(this.a,oo)},Vo(Au,"ArrayTable/1",2021),zo(2022,1,{},QU),wo.td=function(oo){return new _Ee(this.a,oo)},Vo(Au,"ArrayTable/1methodref$getCell$Type",2022),zo(2110,1,{697:1}),wo.Fb=function(oo){var co;return oo===this?!0:Hs(oo,479)?(co=bo(oo,697),K_(o3(this.c.e,this.b),o3(co.c.e,co.b))&&K_(o3(this.c.c,this.a),o3(co.c.c,co.a))&&K_(H8(this.c,this.b,this.a),H8(co.c,co.b,co.a))):!1},wo.Hb=function(){return fq(As($s(bm,1),Xu,1,5,[o3(this.c.e,this.b),o3(this.c.c,this.a),H8(this.c,this.b,this.a)]))},wo.Ib=function(){return"("+o3(this.c.e,this.b)+","+o3(this.c.c,this.a)+")="+H8(this.c,this.b,this.a)},Vo(Au,"Tables/AbstractCell",2110),zo(479,2110,{479:1,697:1},_Ee),wo.a=0,wo.b=0,wo.d=0,Vo(Au,"ArrayTable/2",479),zo(2024,1,{},ZU),wo.td=function(oo){return EQe(this.a,oo)},Vo(Au,"ArrayTable/2methodref$getValue$Type",2024),zo(2023,399,sN,Dqe),wo.Xb=function(oo){return EQe(this.a,oo)},Vo(Au,"ArrayTable/3",2023),zo(2077,2065,x6),wo.$b=function(){zY(this.kc())},wo.vc=function(){return new wae(this)},wo.lc=function(){return new yUe(this.kc(),this.gc())},Vo(Au,"Maps/IteratorBasedAbstractMap",2077),zo(842,2077,x6),wo.$b=function(){throw Cs(new l0)},wo._b=function(oo){return JPe(this.c,oo)},wo.kc=function(){return new Lqe(this,this.c.b.c.gc())},wo.lc=function(){return Cce(this.c.b.c.gc(),16,new cae(this))},wo.xc=function(oo){var co;return co=bo(tL(this.c,oo),17),co?this.vd(co.a):null},wo.dc=function(){return this.c.b.c.dc()},wo.ec=function(){return Dce(this.c)},wo.zc=function(oo,co){var fo;if(fo=bo(tL(this.c,oo),17),!fo)throw Cs(new i1(this.ud()+" "+oo+" not in "+Dce(this.c)));return this.wd(fo.a,co)},wo.Bc=function(oo){throw Cs(new l0)},wo.gc=function(){return this.c.b.c.gc()},Vo(Au,"ArrayTable/ArrayMap",842),zo(2020,1,{},cae),wo.td=function(oo){return zWe(this.a,oo)},Vo(Au,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),zo(2018,358,Bhe,kje),wo.ld=function(){return e5t(this.a,this.b)},wo.md=function(){return this.a.vd(this.b)},wo.nd=function(oo){return this.a.wd(this.b,oo)},wo.b=0,Vo(Au,"ArrayTable/ArrayMap/1",2018),zo(2019,399,sN,Lqe),wo.Xb=function(oo){return zWe(this.a,oo)},Vo(Au,"ArrayTable/ArrayMap/2",2019),zo(2017,842,x6,$We),wo.ud=function(){return"Column"},wo.vd=function(oo){return H8(this.b,this.a,oo)},wo.wd=function(oo,co){return QJe(this.b,this.a,oo,co)},wo.a=0,Vo(Au,"ArrayTable/Row",2017),zo(843,842,x6,dwe),wo.vd=function(oo){return new $We(this.a,oo)},wo.zc=function(oo,co){return bo(co,85),x_t()},wo.wd=function(oo,co){return bo(co,85),S_t()},wo.ud=function(){return"Row"},Vo(Au,"ArrayTable/RowMap",843),zo(1157,1,Kw,Tje),wo.Ad=function(oo){return(this.a.yd()&-262&oo)!=0},wo.yd=function(){return this.a.yd()&-262},wo.zd=function(){return this.a.zd()},wo.Nb=function(oo){this.a.Nb(new $je(oo,this.b))},wo.Bd=function(oo){return this.a.Bd(new Cje(oo,this.b))},Vo(Au,"CollectSpliterators/1",1157),zo(1158,1,_1,Cje),wo.Cd=function(oo){this.a.Cd(this.b.Kb(oo))},Vo(Au,"CollectSpliterators/1/lambda$0$Type",1158),zo(1159,1,_1,$je),wo.Cd=function(oo){this.a.Cd(this.b.Kb(oo))},Vo(Au,"CollectSpliterators/1/lambda$1$Type",1159),zo(1154,1,Kw,QVe),wo.Ad=function(oo){return((16464|this.b)&oo)!=0},wo.yd=function(){return 16464|this.b},wo.zd=function(){return this.a.zd()},wo.Nb=function(oo){this.a.Qe(new Rje(oo,this.c))},wo.Bd=function(oo){return this.a.Re(new Aje(oo,this.c))},wo.b=0,Vo(Au,"CollectSpliterators/1WithCharacteristics",1154),zo(1155,1,tV,Aje),wo.Dd=function(oo){this.a.Cd(this.b.td(oo))},Vo(Au,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),zo(1156,1,tV,Rje),wo.Dd=function(oo){this.a.Cd(this.b.td(oo))},Vo(Au,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),zo(1150,1,Kw),wo.Ad=function(oo){return(this.a&oo)!=0},wo.yd=function(){return this.a},wo.zd=function(){return this.e&&(this.b=ewe(this.b,this.e.zd())),ewe(this.b,0)},wo.Nb=function(oo){this.e&&(this.e.Nb(oo),this.e=null),this.c.Nb(new Oje(this,oo)),this.b=0},wo.Bd=function(oo){for(;;){if(this.e&&this.e.Bd(oo))return VD(this.b,nV)&&(this.b=jx(this.b,1)),!0;if(this.e=null,!this.c.Bd(new hae(this)))return!1}},wo.a=0,wo.b=0,Vo(Au,"CollectSpliterators/FlatMapSpliterator",1150),zo(1152,1,_1,hae),wo.Cd=function(oo){Z5t(this.a,oo)},Vo(Au,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),zo(1153,1,_1,Oje),wo.Cd=function(oo){_6t(this.a,this.b,oo)},Vo(Au,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),zo(1151,1150,Kw,vYe),Vo(Au,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),zo(253,1,Fhe),wo.Fd=function(oo){return this.Ed(bo(oo,253))},wo.Ed=function(oo){var co;return oo==(Kae(),_pe)?1:oo==(Uae(),Spe)?-1:(co=(LY(),ZH(this.a,oo.a)),co!=0?co:Hs(this,526)==Hs(oo,526)?0:Hs(this,526)?1:-1)},wo.Id=function(){return this.a},wo.Fb=function(oo){return qke(this,oo)},Vo(Au,"Cut",253),zo(1823,253,Fhe,gPe),wo.Ed=function(oo){return oo==this?0:1},wo.Gd=function(oo){throw Cs(new fye)},wo.Hd=function(oo){oo.a+="+∞)"},wo.Id=function(){throw Cs(new Lv(Nct))},wo.Hb=function(){return a5(),$ke(this)},wo.Jd=function(oo){return!1},wo.Ib=function(){return"+∞"};var Spe;Vo(Au,"Cut/AboveAll",1823),zo(526,253,{253:1,526:1,3:1,34:1},Hqe),wo.Gd=function(oo){qy((oo.a+="(",oo),this.a)},wo.Hd=function(oo){u3(qy(oo,this.a),93)},wo.Hb=function(){return~dp(this.a)},wo.Jd=function(oo){return LY(),ZH(this.a,oo)<0},wo.Ib=function(){return"/"+this.a+"\\"},Vo(Au,"Cut/AboveValue",526),zo(1822,253,Fhe,pPe),wo.Ed=function(oo){return oo==this?0:-1},wo.Gd=function(oo){oo.a+="(-∞"},wo.Hd=function(oo){throw Cs(new fye)},wo.Id=function(){throw Cs(new Lv(Nct))},wo.Hb=function(){return a5(),$ke(this)},wo.Jd=function(oo){return!0},wo.Ib=function(){return"-∞"};var _pe;Vo(Au,"Cut/BelowAll",1822),zo(1824,253,Fhe,qqe),wo.Gd=function(oo){qy((oo.a+="[",oo),this.a)},wo.Hd=function(oo){u3(qy(oo,this.a),41)},wo.Hb=function(){return dp(this.a)},wo.Jd=function(oo){return LY(),ZH(this.a,oo)<=0},wo.Ib=function(){return"\\"+this.a+"/"},Vo(Au,"Cut/BelowValue",1824),zo(547,1,LE),wo.Jc=function(oo){Hm(this,oo)},wo.Ib=function(){return PIt(bo(uX(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},Vo(Au,"FluentIterable",547),zo(442,547,LE,UD),wo.Kc=function(){return new x1(E1(this.a.Kc(),new ko))},Vo(Au,"FluentIterable/2",442),zo(1059,547,LE,QHe),wo.Kc=function(){return $E(this)},Vo(Au,"FluentIterable/3",1059),zo(724,399,sN,hwe),wo.Xb=function(oo){return this.a[oo].Kc()},Vo(Au,"FluentIterable/3/1",724),zo(2070,1,{}),wo.Ib=function(){return ry(this.Kd().b)},Vo(Au,"ForwardingObject",2070),zo(2071,2070,Mct),wo.Kd=function(){return this.Ld()},wo.Jc=function(oo){Hm(this,oo)},wo.Lc=function(){return this.Oc()},wo.Nc=function(){return new Du(this,0)},wo.Oc=function(){return new Ou(null,this.Nc())},wo.Fc=function(oo){return this.Ld(),tje()},wo.Gc=function(oo){return this.Ld(),nje()},wo.$b=function(){this.Ld(),rje()},wo.Hc=function(oo){return this.Ld().Hc(oo)},wo.Ic=function(oo){return this.Ld().Ic(oo)},wo.dc=function(){return this.Ld().b.dc()},wo.Kc=function(){return this.Ld().Kc()},wo.Mc=function(oo){return this.Ld(),ije()},wo.gc=function(){return this.Ld().b.gc()},wo.Pc=function(){return this.Ld().Pc()},wo.Qc=function(oo){return this.Ld().Qc(oo)},Vo(Au,"ForwardingCollection",2071),zo(2078,31,z3e),wo.Kc=function(){return this.Od()},wo.Fc=function(oo){throw Cs(new l0)},wo.Gc=function(oo){throw Cs(new l0)},wo.Md=function(){var oo;return oo=this.c,oo||(this.c=this.Nd())},wo.$b=function(){throw Cs(new l0)},wo.Hc=function(oo){return oo!=null&&j$(this,oo,!1)},wo.Nd=function(){switch(this.gc()){case 0:return WC(),WC(),Epe;case 1:return WC(),new $ce(a0(this.Od().Pb()));default:return new Wxe(this,this.Pc())}},wo.Mc=function(oo){throw Cs(new l0)},Vo(Au,"ImmutableCollection",2078),zo(727,2078,z3e,cye),wo.Kc=function(){return q8(this.a.Kc())},wo.Hc=function(oo){return oo!=null&&this.a.Hc(oo)},wo.Ic=function(oo){return this.a.Ic(oo)},wo.dc=function(){return this.a.dc()},wo.Od=function(){return q8(this.a.Kc())},wo.gc=function(){return this.a.gc()},wo.Pc=function(){return this.a.Pc()},wo.Qc=function(oo){return this.a.Qc(oo)},wo.Ib=function(){return ry(this.a)},Vo(Au,"ForwardingImmutableCollection",727),zo(307,2078,aN),wo.Kc=function(){return this.Od()},wo.ed=function(){return this.Pd(0)},wo.fd=function(oo){return this.Pd(oo)},wo.jd=function(oo){wT(this,oo)},wo.Nc=function(){return new Du(this,16)},wo.kd=function(oo,co){return this.Qd(oo,co)},wo.bd=function(oo,co){throw Cs(new l0)},wo.cd=function(oo,co){throw Cs(new l0)},wo.Md=function(){return this},wo.Fb=function(oo){return ezt(this,oo)},wo.Hb=function(){return KRt(this)},wo.dd=function(oo){return oo==null?-1:vDt(this,oo)},wo.Od=function(){return this.Pd(0)},wo.Pd=function(oo){return sce(this,oo)},wo.gd=function(oo){throw Cs(new l0)},wo.hd=function(oo,co){throw Cs(new l0)},wo.Qd=function(oo,co){var fo;return xQ((fo=new zje(this),new s4(fo,oo,co)))};var Epe;Vo(Au,"ImmutableList",307),zo(2105,307,aN),wo.Kc=function(){return q8(this.Rd().Kc())},wo.kd=function(oo,co){return xQ(this.Rd().kd(oo,co))},wo.Hc=function(oo){return oo!=null&&this.Rd().Hc(oo)},wo.Ic=function(oo){return this.Rd().Ic(oo)},wo.Fb=function(oo){return U0(this.Rd(),oo)},wo.Xb=function(oo){return o3(this,oo)},wo.Hb=function(){return dp(this.Rd())},wo.dd=function(oo){return this.Rd().dd(oo)},wo.dc=function(){return this.Rd().dc()},wo.Od=function(){return q8(this.Rd().Kc())},wo.gc=function(){return this.Rd().gc()},wo.Qd=function(oo,co){return xQ(this.Rd().kd(oo,co))},wo.Pc=function(){return this.Rd().Qc(Al(bm,Xu,1,this.Rd().gc(),5,1))},wo.Qc=function(oo){return this.Rd().Qc(oo)},wo.Ib=function(){return ry(this.Rd())},Vo(Au,"ForwardingImmutableList",2105),zo(729,1,lN),wo.vc=function(){return uT(this)},wo.wc=function(oo){AL(this,oo)},wo.ec=function(){return Dce(this)},wo.yc=function(oo,co,fo){return Gfe(this,oo,co,fo)},wo.Cc=function(){return this.Vd()},wo.$b=function(){throw Cs(new l0)},wo._b=function(oo){return this.xc(oo)!=null},wo.uc=function(oo){return this.Vd().Hc(oo)},wo.Td=function(){return new _Fe(this)},wo.Ud=function(){return new EFe(this)},wo.Fb=function(oo){return jOt(this,oo)},wo.Hb=function(){return uT(this).Hb()},wo.dc=function(){return this.gc()==0},wo.zc=function(oo,co){return w_t()},wo.Bc=function(oo){throw Cs(new l0)},wo.Ib=function(){return CFt(this)},wo.Vd=function(){return this.e?this.e:this.e=this.Ud()},wo.c=null,wo.d=null,wo.e=null;var o1t;Vo(Au,"ImmutableMap",729),zo(730,729,lN),wo._b=function(oo){return JPe(this,oo)},wo.uc=function(oo){return Uje(this.b,oo)},wo.Sd=function(){return Qet(new fae(this))},wo.Td=function(){return Qet(cUe(this.b))},wo.Ud=function(){return U_(),new cye(lUe(this.b))},wo.Fb=function(oo){return Kje(this.b,oo)},wo.xc=function(oo){return tL(this,oo)},wo.Hb=function(){return dp(this.b.c)},wo.dc=function(){return this.b.c.dc()},wo.gc=function(){return this.b.c.gc()},wo.Ib=function(){return ry(this.b.c)},Vo(Au,"ForwardingImmutableMap",730),zo(2072,2071,Phe),wo.Kd=function(){return this.Wd()},wo.Ld=function(){return this.Wd()},wo.Nc=function(){return new Du(this,1)},wo.Fb=function(oo){return oo===this||this.Wd().Fb(oo)},wo.Hb=function(){return this.Wd().Hb()},Vo(Au,"ForwardingSet",2072),zo(1085,2072,Phe,fae),wo.Kd=function(){return QO(this.a.b)},wo.Ld=function(){return QO(this.a.b)},wo.Hc=function(oo){if(Hs(oo,44)&&bo(oo,44).ld()==null)return!1;try{return Wje(QO(this.a.b),oo)}catch(co){if(co=$p(co),Hs(co,212))return!1;throw Cs(co)}},wo.Wd=function(){return QO(this.a.b)},wo.Qc=function(oo){var co;return co=UUe(QO(this.a.b),oo),QO(this.a.b).b.gc()=0?"+":"")+(fo/60|0),co=gY(lo.Math.abs(fo)%60),(Hrt(),E1t)[this.q.getDay()]+" "+k1t[this.q.getMonth()]+" "+gY(this.q.getDate())+" "+gY(this.q.getHours())+":"+gY(this.q.getMinutes())+":"+gY(this.q.getSeconds())+" GMT"+oo+co+" "+this.q.getFullYear()};var GJ=Vo(j1,"Date",206);zo(2015,206,qct,frt),wo.a=!1,wo.b=0,wo.c=0,wo.d=0,wo.e=0,wo.f=0,wo.g=!1,wo.i=0,wo.j=0,wo.k=0,wo.n=0,wo.o=0,wo.p=0,Vo("com.google.gwt.i18n.shared.impl","DateRecord",2015),zo(2064,1,{}),wo.pe=function(){return null},wo.qe=function(){return null},wo.re=function(){return null},wo.se=function(){return null},wo.te=function(){return null},Vo(cR,"JSONValue",2064),zo(221,2064,{221:1},Y5,rK),wo.Fb=function(oo){return Hs(oo,221)?NSe(this.a,bo(oo,221).a):!1},wo.oe=function(){return GSt},wo.Hb=function(){return SSe(this.a)},wo.pe=function(){return this},wo.Ib=function(){var oo,co,fo;for(fo=new Bw("["),co=0,oo=this.a.length;co0&&(fo.a+=","),qy(fo,N$(this,co));return fo.a+="]",fo.a},Vo(cR,"JSONArray",221),zo(493,2064,{493:1},iK),wo.oe=function(){return WSt},wo.qe=function(){return this},wo.Ib=function(){return _f(),""+this.a},wo.a=!1;var d1t,h1t;Vo(cR,"JSONBoolean",493),zo(997,63,$5,_Pe),Vo(cR,"JSONException",997),zo(1036,2064,{},Ho),wo.oe=function(){return USt},wo.Ib=function(){return I2};var p1t;Vo(cR,"JSONNull",1036),zo(263,2064,{263:1},cD),wo.Fb=function(oo){return Hs(oo,263)?this.a==bo(oo,263).a:!1},wo.oe=function(){return qSt},wo.Hb=function(){return w8(this.a)},wo.re=function(){return this},wo.Ib=function(){return this.a+""},wo.a=0,Vo(cR,"JSONNumber",263),zo(190,2064,{190:1},f8,wO),wo.Fb=function(oo){return Hs(oo,190)?NSe(this.a,bo(oo,190).a):!1},wo.oe=function(){return VSt},wo.Hb=function(){return SSe(this.a)},wo.se=function(){return this},wo.Ib=function(){var oo,co,fo,po,vo,xo,Eo;for(Eo=new Bw("{"),oo=!0,xo=cfe(this,Al(uu,Yl,2,0,6,1)),fo=xo,po=0,vo=fo.length;po=0?":"+this.c:"")+")"},wo.c=0;var U$e=Vo(yy,"StackTraceElement",319);i1t={3:1,484:1,34:1,2:1};var uu=Vo(yy,H3e,2);zo(111,427,{484:1},Z5,SD,Bx),Vo(yy,"StringBuffer",111),zo(104,427,{484:1},J4,t9,Bw),Vo(yy,"StringBuilder",104),zo(702,77,l1e,Pye),Vo(yy,"StringIndexOutOfBoundsException",702),zo(2145,1,{});var b1t;zo(48,63,{3:1,103:1,63:1,82:1,48:1},l0,X5),Vo(yy,"UnsupportedOperationException",48),zo(247,242,{3:1,34:1,242:1,247:1},gq,Xye),wo.Fd=function(oo){return Fat(this,bo(oo,247))},wo.ue=function(){return G$(dlt(this))},wo.Fb=function(oo){var co;return this===oo?!0:Hs(oo,247)?(co=bo(oo,247),this.e==co.e&&Fat(this,co)==0):!1},wo.Hb=function(){var oo;return this.b!=0?this.b:this.a<54?(oo=Ty(this.f),this.b=s0(vm(oo,-1)),this.b=33*this.b+s0(vm(qC(oo,32),-1)),this.b=17*this.b+dm(this.e),this.b):(this.b=17*Wet(this.c)+dm(this.e),this.b)},wo.Ib=function(){return dlt(this)},wo.a=0,wo.b=0,wo.d=0,wo.e=0,wo.f=0;var y1t,VT,K$e,Y$e,X$e,Q$e,Z$e,J$e,Ipe=Vo("java.math","BigDecimal",247);zo(92,242,{3:1,34:1,242:1,92:1},p5,MKe,dT,Utt,s3),wo.Fd=function(oo){return qtt(this,bo(oo,92))},wo.ue=function(){return G$(Mhe(this,0))},wo.Fb=function(oo){return fke(this,oo)},wo.Hb=function(){return Wet(this)},wo.Ib=function(){return Mhe(this,0)},wo.b=-2,wo.c=0,wo.d=0,wo.e=0;var w1t,WJ,x1t,Npe,UJ,XB,r7=Vo("java.math","BigInteger",92),S1t,_1t,xR,QB;zo(498,2065,x6),wo.$b=function(){nw(this)},wo._b=function(oo){return p2(this,oo)},wo.uc=function(oo){return Cet(this,oo,this.i)||Cet(this,oo,this.f)},wo.vc=function(){return new su(this)},wo.xc=function(oo){return m1(this,oo)},wo.zc=function(oo,co){return N0(this,oo,co)},wo.Bc=function(oo){return z8(this,oo)},wo.gc=function(){return ED(this)},wo.g=0,Vo(j1,"AbstractHashMap",498),zo(267,w_,U2,su),wo.$b=function(){this.a.$b()},wo.Hc=function(oo){return uYe(this,oo)},wo.Kc=function(){return new ST(this.a)},wo.Mc=function(oo){var co;return uYe(this,oo)?(co=bo(oo,44).ld(),this.a.Bc(co),!0):!1},wo.gc=function(){return this.a.gc()},Vo(j1,"AbstractHashMap/EntrySet",267),zo(268,1,$m,ST),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){return a6(this)},wo.Ob=function(){return this.b},wo.Qb=function(){PQe(this)},wo.b=!1,wo.d=0,Vo(j1,"AbstractHashMap/EntrySetIterator",268),zo(426,1,$m,EE),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return dle(this)},wo.Pb=function(){return vSe(this)},wo.Qb=function(){Iw(this)},wo.b=0,wo.c=-1,Vo(j1,"AbstractList/IteratorImpl",426),zo(98,426,DE,Lm),wo.Qb=function(){Iw(this)},wo.Rb=function(oo){S$(this,oo)},wo.Sb=function(){return this.b>0},wo.Tb=function(){return this.b},wo.Ub=function(){return T1(this.b>0),this.a.Xb(this.c=--this.b)},wo.Vb=function(){return this.b-1},wo.Wb=function(oo){w$(this.c!=-1),this.a.hd(this.c,oo)},Vo(j1,"AbstractList/ListIteratorImpl",98),zo(244,56,cN,s4),wo.bd=function(oo,co){A$(oo,this.b),this.c.bd(this.a+oo,co),++this.b},wo.Xb=function(oo){return qu(oo,this.b),this.c.Xb(this.a+oo)},wo.gd=function(oo){var co;return qu(oo,this.b),co=this.c.gd(this.a+oo),--this.b,co},wo.hd=function(oo,co){return qu(oo,this.b),this.c.hd(this.a+oo,co)},wo.gc=function(){return this.b},wo.a=0,wo.b=0,Vo(j1,"AbstractList/SubList",244),zo(266,w_,U2,Dl),wo.$b=function(){this.a.$b()},wo.Hc=function(oo){return this.a._b(oo)},wo.Kc=function(){var oo;return oo=this.a.vc().Kc(),new Z1(oo)},wo.Mc=function(oo){return this.a._b(oo)?(this.a.Bc(oo),!0):!1},wo.gc=function(){return this.a.gc()},Vo(j1,"AbstractMap/1",266),zo(541,1,$m,Z1),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return this.a.Ob()},wo.Pb=function(){var oo;return oo=bo(this.a.Pb(),44),oo.ld()},wo.Qb=function(){this.a.Qb()},Vo(j1,"AbstractMap/1/1",541),zo(231,31,eA,L0),wo.$b=function(){this.a.$b()},wo.Hc=function(oo){return this.a.uc(oo)},wo.Kc=function(){var oo;return oo=this.a.vc().Kc(),new pp(oo)},wo.gc=function(){return this.a.gc()},Vo(j1,"AbstractMap/2",231),zo(301,1,$m,pp),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return this.a.Ob()},wo.Pb=function(){var oo;return oo=bo(this.a.Pb(),44),oo.md()},wo.Qb=function(){this.a.Qb()},Vo(j1,"AbstractMap/2/1",301),zo(494,1,{494:1,44:1}),wo.Fb=function(oo){var co;return Hs(oo,44)?(co=bo(oo,44),ky(this.d,co.ld())&&ky(this.e,co.md())):!1},wo.ld=function(){return this.d},wo.md=function(){return this.e},wo.Hb=function(){return h9(this.d)^h9(this.e)},wo.nd=function(oo){return Fwe(this,oo)},wo.Ib=function(){return this.d+"="+this.e},Vo(j1,"AbstractMap/AbstractEntry",494),zo(397,494,{494:1,397:1,44:1},GK),Vo(j1,"AbstractMap/SimpleEntry",397),zo(2082,1,f1e),wo.Fb=function(oo){var co;return Hs(oo,44)?(co=bo(oo,44),ky(this.ld(),co.ld())&&ky(this.md(),co.md())):!1},wo.Hb=function(){return h9(this.ld())^h9(this.md())},wo.Ib=function(){return this.ld()+"="+this.md()},Vo(j1,Oct,2082),zo(2090,2065,P3e),wo.Xc=function(oo){return ole(this.Ee(oo))},wo.tc=function(oo){return mXe(this,oo)},wo._b=function(oo){return Pwe(this,oo)},wo.vc=function(){return new um(this)},wo.Tc=function(){return RWe(this.Ge())},wo.Yc=function(oo){return ole(this.He(oo))},wo.xc=function(oo){var co;return co=oo,Uv(this.Fe(co))},wo.$c=function(oo){return ole(this.Ie(oo))},wo.ec=function(){return new xm(this)},wo.Vc=function(){return RWe(this.Je())},wo._c=function(oo){return ole(this.Ke(oo))},Vo(j1,"AbstractNavigableMap",2090),zo(629,w_,U2,um),wo.Hc=function(oo){return Hs(oo,44)&&mXe(this.b,bo(oo,44))},wo.Kc=function(){return this.b.De()},wo.Mc=function(oo){var co;return Hs(oo,44)?(co=bo(oo,44),this.b.Le(co)):!1},wo.gc=function(){return this.b.gc()},Vo(j1,"AbstractNavigableMap/EntrySet",629),zo(1146,w_,j3e,xm),wo.Nc=function(){return new qK(this)},wo.$b=function(){this.a.$b()},wo.Hc=function(oo){return Pwe(this.a,oo)},wo.Kc=function(){var oo;return oo=this.a.vc().b.De(),new mv(oo)},wo.Mc=function(oo){return Pwe(this.a,oo)?(this.a.Bc(oo),!0):!1},wo.gc=function(){return this.a.gc()},Vo(j1,"AbstractNavigableMap/NavigableKeySet",1146),zo(1147,1,$m,mv),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return dle(this.a.a)},wo.Pb=function(){var oo;return oo=Jqe(this.a),oo.ld()},wo.Qb=function(){oGe(this.a)},Vo(j1,"AbstractNavigableMap/NavigableKeySet/1",1147),zo(2103,31,eA),wo.Fc=function(oo){return $8(GI(this,oo),fN),!0},wo.Gc=function(oo){return u1(oo),mH(oo!=this,"Can't add a queue to itself"),Fm(this,oo)},wo.$b=function(){for(;Xue(this)!=null;);},Vo(j1,"AbstractQueue",2103),zo(310,31,{4:1,20:1,31:1,16:1},m9,oYe),wo.Fc=function(oo){return qSe(this,oo),!0},wo.$b=function(){YSe(this)},wo.Hc=function(oo){return GJe(new pL(this),oo)},wo.dc=function(){return xD(this)},wo.Kc=function(){return new pL(this)},wo.Mc=function(oo){return A$t(new pL(this),oo)},wo.gc=function(){return this.c-this.b&this.a.length-1},wo.Nc=function(){return new Du(this,272)},wo.Qc=function(oo){var co;return co=this.c-this.b&this.a.length-1,oo.lengthco&&Np(oo,co,null),oo},wo.b=0,wo.c=0,Vo(j1,"ArrayDeque",310),zo(459,1,$m,pL),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return this.a!=this.b},wo.Pb=function(){return wQ(this)},wo.Qb=function(){zZe(this)},wo.a=0,wo.b=0,wo.c=-1,Vo(j1,"ArrayDeque/IteratorImpl",459),zo(13,56,Wct,Zl,o2,tw),wo.bd=function(oo,co){HC(this,oo,co)},wo.Fc=function(oo){return Jl(this,oo)},wo.cd=function(oo,co){return BEe(this,oo,co)},wo.Gc=function(oo){return sm(this,oo)},wo.$b=function(){d$(this.c,0)},wo.Hc=function(oo){return Xv(this,oo,0)!=-1},wo.Jc=function(oo){g2(this,oo)},wo.Xb=function(oo){return cu(this,oo)},wo.dd=function(oo){return Xv(this,oo,0)},wo.dc=function(){return this.c.length==0},wo.Kc=function(){return new _s(this)},wo.gd=function(oo){return l4(this,oo)},wo.Mc=function(oo){return A2(this,oo)},wo.ce=function(oo,co){$Ke(this,oo,co)},wo.hd=function(oo,co){return fx(this,oo,co)},wo.gc=function(){return this.c.length},wo.jd=function(oo){Up(this,oo)},wo.Pc=function(){return BY(this.c)},wo.Qc=function(oo){return v_(this,oo)};var bXt=Vo(j1,"ArrayList",13);zo(7,1,$m,_s),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return cy(this)},wo.Pb=function(){return Es(this)},wo.Qb=function(){cL(this)},wo.a=0,wo.b=-1,Vo(j1,"ArrayList/1",7),zo(2112,lo.Function,{},ps),wo.Me=function(oo,co){return sp(oo,co)},zo(151,56,Uct,ew),wo.Hc=function(oo){return HZe(this,oo)!=-1},wo.Jc=function(oo){var co,fo,po,vo;for(u1(oo),fo=this.a,po=0,vo=fo.length;po0)throw Cs(new i1(X3e+oo+" greater than "+this.e));return this.f.Te()?QUe(this.c,this.b,this.a,oo,co):AKe(this.c,oo,co)},wo.zc=function(oo,co){if(!Ede(this.c,this.f,oo,this.b,this.a,this.e,this.d))throw Cs(new i1(oo+" outside the range "+this.b+" to "+this.e));return uet(this.c,oo,co)},wo.Bc=function(oo){var co;return co=oo,Ede(this.c,this.f,co,this.b,this.a,this.e,this.d)?ZUe(this.c,co):null},wo.Le=function(oo){return rX(this,oo.ld())&&p_e(this.c,oo)},wo.gc=function(){var oo,co,fo;if(this.f.Te()?this.a?co=FI(this.c,this.b,!0):co=FI(this.c,this.b,!1):co=k_e(this.c),!(co&&rX(this,co.d)&&co))return 0;for(oo=0,fo=new ufe(this.c,this.f,this.b,this.a,this.e,this.d);dle(fo.a);fo.b=bo(vSe(fo.a),44))++oo;return oo},wo.ad=function(oo,co){if(this.f.Te()&&this.c.a.Ne(oo,this.b)<0)throw Cs(new i1(X3e+oo+Xct+this.b));return this.f.Ue()?QUe(this.c,oo,co,this.e,this.d):RKe(this.c,oo,co)},wo.a=!1,wo.d=!1,Vo(j1,"TreeMap/SubMap",631),zo(304,22,g1e,VK),wo.Te=function(){return!1},wo.Ue=function(){return!1};var Lpe,Bpe,Fpe,Ppe,YJ=V1(j1,"TreeMap/SubMapType",304,X1,n9t,f4t);zo(1143,304,g1e,rqe),wo.Ue=function(){return!0},V1(j1,"TreeMap/SubMapType/1",1143,YJ,null,null),zo(1144,304,g1e,dqe),wo.Te=function(){return!0},wo.Ue=function(){return!0},V1(j1,"TreeMap/SubMapType/2",1144,YJ,null,null),zo(1145,304,g1e,nqe),wo.Te=function(){return!0},V1(j1,"TreeMap/SubMapType/3",1145,YJ,null,null);var O1t;zo(157,w_,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},pye,e4,xO),wo.Nc=function(){return new qK(this)},wo.Fc=function(oo){return yH(this,oo)},wo.$b=function(){this.a.$b()},wo.Hc=function(oo){return this.a._b(oo)},wo.Kc=function(){return this.a.ec().Kc()},wo.Mc=function(oo){return rce(this,oo)},wo.gc=function(){return this.a.gc()};var EXt=Vo(j1,"TreeSet",157);zo(1082,1,{},iDe),wo.Ve=function(oo,co){return $5t(this.a,oo,co)},Vo(m1e,"BinaryOperator/lambda$0$Type",1082),zo(1083,1,{},oDe),wo.Ve=function(oo,co){return A5t(this.a,oo,co)},Vo(m1e,"BinaryOperator/lambda$1$Type",1083),zo(952,1,{},Js),wo.Kb=function(oo){return oo},Vo(m1e,"Function/lambda$0$Type",952),zo(395,1,f0,SO),wo.Mb=function(oo){return!this.a.Mb(oo)},Vo(m1e,"Predicate/lambda$2$Type",395),zo(581,1,{581:1});var I1t=Vo(wB,"Handler",581);zo(2107,1,Jq),wo.xe=function(){return"DUMMY"},wo.Ib=function(){return this.xe()};var sAe;Vo(wB,"Level",2107),zo(1706,2107,Jq,Vs),wo.xe=function(){return"INFO"},Vo(wB,"Level/LevelInfo",1706),zo(1843,1,{},OFe);var jpe;Vo(wB,"LogManager",1843),zo(1896,1,Jq,iGe),wo.b=null,Vo(wB,"LogRecord",1896),zo(525,1,{525:1},Aue),wo.e=!1;var N1t=!1,M1t=!1,E_=!1,D1t=!1,L1t=!1;Vo(wB,"Logger",525),zo(835,581,{581:1},El),Vo(wB,"SimpleConsoleLogHandler",835),zo(108,22,{3:1,34:1,22:1,108:1},gle);var aAe,oy,uA,zv=V1(lm,"Collector/Characteristics",108,X1,q$t,d4t),B1t;zo(758,1,{},Xxe),Vo(lm,"CollectorImpl",758),zo(1074,1,{},yl),wo.Ve=function(oo,co){return _It(bo(oo,213),bo(co,213))},Vo(lm,"Collectors/10methodref$merge$Type",1074),zo(1075,1,{},Gl),wo.Kb=function(oo){return sYe(bo(oo,213))},Vo(lm,"Collectors/11methodref$toString$Type",1075),zo(1076,1,{},sDe),wo.Kb=function(oo){return _f(),!!V2e(oo)},Vo(lm,"Collectors/12methodref$test$Type",1076),zo(144,1,{},Qs),wo.Yd=function(oo,co){bo(oo,16).Fc(co)},Vo(lm,"Collectors/20methodref$add$Type",144),zo(146,1,{},du),wo.Xe=function(){return new Zl},Vo(lm,"Collectors/21methodref$ctor$Type",146),zo(359,1,{},Ol),wo.Xe=function(){return new Yp},Vo(lm,"Collectors/23methodref$ctor$Type",359),zo(360,1,{},Fu),wo.Yd=function(oo,co){om(bo(oo,49),co)},Vo(lm,"Collectors/24methodref$add$Type",360),zo(1069,1,{},ju),wo.Ve=function(oo,co){return Qje(bo(oo,15),bo(co,16))},Vo(lm,"Collectors/4methodref$addAll$Type",1069),zo(1073,1,{},F1),wo.Yd=function(oo,co){g5(bo(oo,213),bo(co,484))},Vo(lm,"Collectors/9methodref$add$Type",1073),zo(1072,1,{},xGe),wo.Xe=function(){return new _T(this.a,this.b,this.c)},Vo(lm,"Collectors/lambda$15$Type",1072),zo(1077,1,{},y1),wo.Xe=function(){var oo;return oo=new a4,w4(oo,(_f(),!1),new Zl),w4(oo,!0,new Zl),oo},Vo(lm,"Collectors/lambda$22$Type",1077),zo(1078,1,{},aDe),wo.Xe=function(){return As($s(bm,1),Xu,1,5,[this.a])},Vo(lm,"Collectors/lambda$25$Type",1078),zo(1079,1,{},lDe),wo.Yd=function(oo,co){KTt(this.a,yT(oo))},Vo(lm,"Collectors/lambda$26$Type",1079),zo(1080,1,{},cDe),wo.Ve=function(oo,co){return SCt(this.a,yT(oo),yT(co))},Vo(lm,"Collectors/lambda$27$Type",1080),zo(1081,1,{},r1),wo.Kb=function(oo){return yT(oo)[0]},Vo(lm,"Collectors/lambda$28$Type",1081),zo(728,1,{},$u),wo.Ve=function(oo,co){return Rxe(oo,co)},Vo(lm,"Collectors/lambda$4$Type",728),zo(145,1,{},Kl),wo.Ve=function(oo,co){return rEt(bo(oo,16),bo(co,16))},Vo(lm,"Collectors/lambda$42$Type",145),zo(361,1,{},Is),wo.Ve=function(oo,co){return iEt(bo(oo,49),bo(co,49))},Vo(lm,"Collectors/lambda$50$Type",361),zo(362,1,{},Ks),wo.Kb=function(oo){return bo(oo,49)},Vo(lm,"Collectors/lambda$51$Type",362),zo(1068,1,{},uDe),wo.Yd=function(oo,co){AOt(this.a,bo(oo,85),co)},Vo(lm,"Collectors/lambda$7$Type",1068),zo(1070,1,{},Bs),wo.Ve=function(oo,co){return oOt(bo(oo,85),bo(co,85),new ju)},Vo(lm,"Collectors/lambda$8$Type",1070),zo(1071,1,{},fDe),wo.Kb=function(oo){return nNt(this.a,bo(oo,85))},Vo(lm,"Collectors/lambda$9$Type",1071),zo(550,1,{}),wo.$e=function(){hL(this)},wo.d=!1,Vo(lm,"TerminatableStream",550),zo(827,550,Q3e,Awe),wo.$e=function(){hL(this)},Vo(lm,"DoubleStreamImpl",827),zo(1847,736,Kw,SGe),wo.Re=function(oo){return oDt(this,bo(oo,189))},wo.a=null,Vo(lm,"DoubleStreamImpl/2",1847),zo(1848,1,lV,dDe),wo.Pe=function(oo){QEt(this.a,oo)},Vo(lm,"DoubleStreamImpl/2/lambda$0$Type",1848),zo(1845,1,lV,hDe),wo.Pe=function(oo){XEt(this.a,oo)},Vo(lm,"DoubleStreamImpl/lambda$0$Type",1845),zo(1846,1,lV,pDe),wo.Pe=function(oo){Ttt(this.a,oo)},Vo(lm,"DoubleStreamImpl/lambda$2$Type",1846),zo(1397,735,Kw,fXe),wo.Re=function(oo){return GAt(this,bo(oo,202))},wo.a=0,wo.b=0,wo.c=0,Vo(lm,"IntStream/5",1397),zo(806,550,Q3e,Rwe),wo.$e=function(){hL(this)},wo._e=function(){return f3(this),this.a},Vo(lm,"IntStreamImpl",806),zo(807,550,Q3e,t2e),wo.$e=function(){hL(this)},wo._e=function(){return f3(this),fwe(),R1t},Vo(lm,"IntStreamImpl/Empty",807),zo(1687,1,tV,gDe),wo.Dd=function(oo){IJe(this.a,oo)},Vo(lm,"IntStreamImpl/lambda$4$Type",1687);var kXt=Ip(lm,"Stream");zo(26,550,{533:1,687:1,848:1},Ou),wo.$e=function(){hL(this)};var SR;Vo(lm,"StreamImpl",26),zo(1102,500,Kw,XVe),wo.Bd=function(oo){for(;K7t(this);){if(this.a.Bd(oo))return!0;hL(this.b),this.b=null,this.a=null}return!1},Vo(lm,"StreamImpl/1",1102),zo(1103,1,_1,mDe),wo.Cd=function(oo){wTt(this.a,bo(oo,848))},Vo(lm,"StreamImpl/1/lambda$0$Type",1103),zo(1104,1,f0,vDe),wo.Mb=function(oo){return om(this.a,oo)},Vo(lm,"StreamImpl/1methodref$add$Type",1104),zo(1105,500,Kw,RUe),wo.Bd=function(oo){var co;return this.a||(co=new Zl,this.b.a.Nb(new bDe(co)),Hu(),Up(co,this.c),this.a=new Du(co,16)),hZe(this.a,oo)},wo.a=null,Vo(lm,"StreamImpl/5",1105),zo(1106,1,_1,bDe),wo.Cd=function(oo){Jl(this.a,oo)},Vo(lm,"StreamImpl/5/2methodref$add$Type",1106),zo(737,500,Kw,T_e),wo.Bd=function(oo){for(this.b=!1;!this.b&&this.c.Bd(new pze(this,oo)););return this.b},wo.b=!1,Vo(lm,"StreamImpl/FilterSpliterator",737),zo(1096,1,_1,pze),wo.Cd=function(oo){mCt(this.a,this.b,oo)},Vo(lm,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),zo(1091,736,Kw,SXe),wo.Re=function(oo){return X5t(this,bo(oo,189))},Vo(lm,"StreamImpl/MapToDoubleSpliterator",1091),zo(1095,1,_1,gze),wo.Cd=function(oo){wEt(this.a,this.b,oo)},Vo(lm,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),zo(1090,735,Kw,_Xe),wo.Re=function(oo){return Q5t(this,bo(oo,202))},Vo(lm,"StreamImpl/MapToIntSpliterator",1090),zo(1094,1,_1,mze),wo.Cd=function(oo){xEt(this.a,this.b,oo)},Vo(lm,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),zo(734,500,Kw,u_e),wo.Bd=function(oo){return UVe(this,oo)},Vo(lm,"StreamImpl/MapToObjSpliterator",734),zo(1093,1,_1,vze),wo.Cd=function(oo){SEt(this.a,this.b,oo)},Vo(lm,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),zo(1092,500,Kw,ZZe),wo.Bd=function(oo){for(;hle(this.b,0);){if(!this.a.Bd(new Ds))return!1;this.b=jx(this.b,1)}return this.a.Bd(oo)},wo.b=0,Vo(lm,"StreamImpl/SkipSpliterator",1092),zo(1097,1,_1,Ds),wo.Cd=function(oo){},Vo(lm,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),zo(626,1,_1,Zs),wo.Cd=function(oo){Oae(this,oo)},Vo(lm,"StreamImpl/ValueConsumer",626),zo(1098,1,_1,Cl),wo.Cd=function(oo){lT()},Vo(lm,"StreamImpl/lambda$0$Type",1098),zo(1099,1,_1,ba),wo.Cd=function(oo){lT()},Vo(lm,"StreamImpl/lambda$1$Type",1099),zo(1100,1,{},yDe),wo.Ve=function(oo,co){return A4t(this.a,oo,co)},Vo(lm,"StreamImpl/lambda$4$Type",1100),zo(1101,1,_1,bze),wo.Cd=function(oo){D5t(this.b,this.a,oo)},Vo(lm,"StreamImpl/lambda$5$Type",1101),zo(1107,1,_1,wDe),wo.Cd=function(oo){URt(this.a,bo(oo,380))},Vo(lm,"TerminatableStream/lambda$0$Type",1107),zo(2142,1,{}),zo(2014,1,{},fu),Vo("javaemul.internal","ConsoleLogger",2014);var TXt=0;zo(2134,1,{}),zo(1830,1,_1,Lu),wo.Cd=function(oo){bo(oo,317)},Vo(dN,"BowyerWatsonTriangulation/lambda$0$Type",1830),zo(1831,1,_1,xDe),wo.Cd=function(oo){Fm(this.a,bo(oo,317).e)},Vo(dN,"BowyerWatsonTriangulation/lambda$1$Type",1831),zo(1832,1,_1,e1),wo.Cd=function(oo){bo(oo,177)},Vo(dN,"BowyerWatsonTriangulation/lambda$2$Type",1832),zo(1827,1,g0,SDe),wo.Ne=function(oo,co){return R9t(this.a,bo(oo,177),bo(co,177))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(dN,"NaiveMinST/lambda$0$Type",1827),zo(449,1,{},dD),Vo(dN,"NodeMicroLayout",449),zo(177,1,{177:1},v8),wo.Fb=function(oo){var co;return Hs(oo,177)?(co=bo(oo,177),ky(this.a,co.a)&&ky(this.b,co.b)||ky(this.a,co.b)&&ky(this.b,co.a)):!1},wo.Hb=function(){return h9(this.a)+h9(this.b)};var CXt=Vo(dN,"TEdge",177);zo(317,1,{317:1},f3e),wo.Fb=function(oo){var co;return Hs(oo,317)?(co=bo(oo,317),jX(this,co.a)&&jX(this,co.b)&&jX(this,co.c)):!1},wo.Hb=function(){return h9(this.a)+h9(this.b)+h9(this.c)},Vo(dN,"TTriangle",317),zo(225,1,{225:1},vY),Vo(dN,"Tree",225),zo(1218,1,{},gKe),Vo(Jct,"Scanline",1218);var F1t=Ip(Jct,eut);zo(1758,1,{},uZe),Vo(PE,"CGraph",1758),zo(316,1,{316:1},bKe),wo.b=0,wo.c=0,wo.d=0,wo.g=0,wo.i=0,wo.k=am,Vo(PE,"CGroup",316),zo(830,1,{},vye),Vo(PE,"CGroup/CGroupBuilder",830),zo(60,1,{60:1},RVe),wo.Ib=function(){var oo;return this.j?u0(this.j.Kb(this)):(c5(XJ),XJ.o+"@"+(oo=PC(this)>>>0,oo.toString(16)))},wo.f=0,wo.i=am;var XJ=Vo(PE,"CNode",60);zo(829,1,{},bye),Vo(PE,"CNode/CNodeBuilder",829);var P1t;zo(1590,1,{},Gu),wo.ff=function(oo,co){return 0},wo.gf=function(oo,co){return 0},Vo(PE,nut,1590),zo(1853,1,{},w1),wo.cf=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss;for(Io=Tp,po=new _s(oo.a.b);po.apo.d.c||po.d.c==xo.d.c&&po.d.b0?oo+this.n.d+this.n.a:0},wo.kf=function(){var oo,co,fo,po,vo;if(vo=0,this.e)this.b?vo=this.b.a:this.a[1][1]&&(vo=this.a[1][1].kf());else if(this.g)vo=cke(this,Tde(this,null,!0));else for(co=(US(),As($s(fA,1),Pl,237,0,[xy,c2,Sy])),fo=0,po=co.length;fo0?vo+this.n.b+this.n.c:0},wo.lf=function(){var oo,co,fo,po,vo;if(this.g)for(oo=Tde(this,null,!1),fo=(US(),As($s(fA,1),Pl,237,0,[xy,c2,Sy])),po=0,vo=fo.length;po0&&(po[0]+=this.d,fo-=po[0]),po[2]>0&&(po[2]+=this.d,fo-=po[2]),this.c.a=lo.Math.max(0,fo),this.c.d=co.d+oo.d+(this.c.a-fo)/2,po[1]=lo.Math.max(po[1],fo),s_e(this,c2,co.d+oo.d+po[0]-(po[1]-fo)/2,po)},wo.b=null,wo.d=0,wo.e=!1,wo.f=!1,wo.g=!1;var Gpe=0,QJ=0;Vo(MT,"GridContainerCell",1538),zo(471,22,{3:1,34:1,22:1,471:1},vle);var D3,fE,yS,Y1t=V1(MT,"HorizontalLabelAlignment",471,X1,G$t,v4t),X1t;zo(314,217,{217:1,314:1},tKe,dZe,KUe),wo.jf=function(){return DGe(this)},wo.kf=function(){return Exe(this)},wo.a=0,wo.c=!1;var $Xt=Vo(MT,"LabelCell",314);zo(252,336,{217:1,336:1,252:1},qL),wo.jf=function(){return JL(this)},wo.kf=function(){return eB(this)},wo.lf=function(){phe(this)},wo.mf=function(){ghe(this)},wo.b=0,wo.c=0,wo.d=!1,Vo(MT,"StripContainerCell",252),zo(1691,1,f0,h0),wo.Mb=function(oo){return v_t(bo(oo,217))},Vo(MT,"StripContainerCell/lambda$0$Type",1691),zo(1692,1,{},cp),wo.Ye=function(oo){return bo(oo,217).kf()},Vo(MT,"StripContainerCell/lambda$1$Type",1692),zo(1693,1,f0,k0),wo.Mb=function(oo){return b_t(bo(oo,217))},Vo(MT,"StripContainerCell/lambda$2$Type",1693),zo(1694,1,{},ap),wo.Ye=function(oo){return bo(oo,217).jf()},Vo(MT,"StripContainerCell/lambda$3$Type",1694),zo(472,22,{3:1,34:1,22:1,472:1},ble);var wS,L3,ZS,Q1t=V1(MT,"VerticalLabelAlignment",472,X1,V$t,b4t),Z1t;zo(800,1,{},$3e),wo.c=0,wo.d=0,wo.k=0,wo.s=0,wo.t=0,wo.v=!1,wo.w=0,wo.D=!1,wo.F=!1,Vo(FZ,"NodeContext",800),zo(1536,1,g0,x0),wo.Ne=function(oo,co){return UHe(bo(oo,64),bo(co,64))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(FZ,"NodeContext/0methodref$comparePortSides$Type",1536),zo(1537,1,g0,b0),wo.Ne=function(oo,co){return KBt(bo(oo,117),bo(co,117))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(FZ,"NodeContext/1methodref$comparePortContexts$Type",1537),zo(164,22,{3:1,34:1,22:1,164:1},gx);var J1t,e0t,t0t,n0t,r0t,i0t,o0t,s0t,a0t,l0t,c0t,u0t,f0t,d0t,h0t,p0t,g0t,m0t,v0t,b0t,y0t,Wpe,w0t=V1(FZ,"NodeLabelLocation",164,X1,rde,y4t),x0t;zo(117,1,{117:1},lot),wo.a=!1,Vo(FZ,"PortContext",117),zo(1541,1,_1,P1),wo.Cd=function(oo){dje(bo(oo,314))},Vo(uV,gut,1541),zo(1542,1,f0,c1),wo.Mb=function(oo){return!!bo(oo,117).c},Vo(uV,mut,1542),zo(1543,1,_1,V0),wo.Cd=function(oo){dje(bo(oo,117).c)},Vo(uV,"LabelPlacer/lambda$2$Type",1543);var AAe;zo(1540,1,_1,P0),wo.Cd=function(oo){x$(),XSt(bo(oo,117))},Vo(uV,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),zo(801,1,_1,rxe),wo.Cd=function(oo){uEt(this.b,this.c,this.a,bo(oo,187))},wo.a=!1,wo.c=!1,Vo(uV,"NodeLabelCellCreator/lambda$0$Type",801),zo(1539,1,_1,kDe),wo.Cd=function(oo){JSt(this.a,bo(oo,187))},Vo(uV,"PortContextCreator/lambda$0$Type",1539);var ZJ;zo(1902,1,{},up),Vo(pN,"GreedyRectangleStripOverlapRemover",1902),zo(1903,1,g0,Lp),wo.Ne=function(oo,co){return Hkt(bo(oo,226),bo(co,226))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(pN,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),zo(1849,1,{},DFe),wo.a=5,wo.e=0,Vo(pN,"RectangleStripOverlapRemover",1849),zo(1850,1,g0,Mv),wo.Ne=function(oo,co){return qkt(bo(oo,226),bo(co,226))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(pN,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),zo(1852,1,g0,$v),wo.Ne=function(oo,co){return ICt(bo(oo,226),bo(co,226))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(pN,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),zo(417,22,{3:1,34:1,22:1,417:1},WK);var LV,Upe,Kpe,BV,S0t=V1(pN,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,X1,o9t,w4t),_0t;zo(226,1,{226:1},Nce),Vo(pN,"RectangleStripOverlapRemover/RectangleNode",226),zo(1851,1,_1,TDe),wo.Cd=function(oo){wDt(this.a,bo(oo,226))},Vo(pN,"RectangleStripOverlapRemover/lambda$1$Type",1851),zo(1323,1,g0,Gv),wo.Ne=function(oo,co){return PWt(bo(oo,176),bo(co,176))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(iE,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),zo(1326,1,{},C1),wo.Kb=function(oo){return bo(oo,334).a},Vo(iE,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),zo(1327,1,f0,Ll),wo.Mb=function(oo){return bo(oo,332).a},Vo(iE,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),zo(1328,1,f0,Ul),wo.Mb=function(oo){return bo(oo,332).a},Vo(iE,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),zo(1321,1,g0,_l),wo.Ne=function(oo,co){return mVt(bo(oo,176),bo(co,176))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(iE,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),zo(1324,1,{},$l),wo.Kb=function(oo){return bo(oo,334).a},Vo(iE,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),zo(781,1,g0,Us),wo.Ne=function(oo,co){return ZRt(bo(oo,176),bo(co,176))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(iE,"PolyominoCompactor/MinNumOfExtensionsComparator",781),zo(1319,1,g0,Rl),wo.Ne=function(oo,co){return sRt(bo(oo,330),bo(co,330))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(iE,"PolyominoCompactor/MinPerimeterComparator",1319),zo(1320,1,g0,Sl),wo.Ne=function(oo,co){return VMt(bo(oo,330),bo(co,330))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(iE,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),zo(1322,1,g0,eu),wo.Ne=function(oo,co){return LVt(bo(oo,176),bo(co,176))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(iE,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),zo(1325,1,{},_c),wo.Kb=function(oo){return bo(oo,334).a},Vo(iE,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),zo(782,1,{},p2e),wo.Ve=function(oo,co){return QAt(this,bo(oo,42),bo(co,176))},Vo(iE,"SuccessorCombination",782),zo(649,1,{},zu),wo.Ve=function(oo,co){var fo;return hjt((fo=bo(oo,42),bo(co,176),fo))},Vo(iE,"SuccessorJitter",649),zo(648,1,{},N1),wo.Ve=function(oo,co){var fo;return JHt((fo=bo(oo,42),bo(co,176),fo))},Vo(iE,"SuccessorLineByLine",648),zo(573,1,{},K0),wo.Ve=function(oo,co){var fo;return hzt((fo=bo(oo,42),bo(co,176),fo))},Vo(iE,"SuccessorManhattan",573),zo(1344,1,{},J0),wo.Ve=function(oo,co){var fo;return _Ht((fo=bo(oo,42),bo(co,176),fo))},Vo(iE,"SuccessorMaxNormWindingInMathPosSense",1344),zo(409,1,{},_O),wo.Ve=function(oo,co){return Kxe(this,oo,co)},wo.c=!1,wo.d=!1,wo.e=!1,wo.f=!1,Vo(iE,"SuccessorQuadrantsGeneric",409),zo(1345,1,{},S1),wo.Kb=function(oo){return bo(oo,334).a},Vo(iE,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),zo(332,22,{3:1,34:1,22:1,332:1},UK),wo.a=!1;var FV,PV,jV,zV,E0t=V1(jZ,lTe,332,X1,r9t,x4t),k0t;zo(1317,1,{}),wo.Ib=function(){var oo,co,fo,po,vo,xo;for(fo=" ",oo=Ql(0),vo=0;vo=0?"b"+oo+"["+$ue(this.a)+"]":"b["+$ue(this.a)+"]"):"b_"+PC(this)},Vo(dV,"FBendpoint",250),zo(290,137,{3:1,290:1,96:1,137:1},OVe),wo.Ib=function(){return $ue(this)},Vo(dV,"FEdge",290),zo(235,137,{3:1,235:1,96:1,137:1},RX);var RXt=Vo(dV,"FGraph",235);zo(454,309,{3:1,454:1,309:1,96:1,137:1},NYe),wo.Ib=function(){return this.b==null||this.b.length==0?"l["+$ue(this.a)+"]":"l_"+this.b},Vo(dV,"FLabel",454),zo(153,309,{3:1,153:1,309:1,96:1,137:1},fqe),wo.Ib=function(){return DSe(this)},wo.a=0,Vo(dV,"FNode",153),zo(2100,1,{}),wo.vf=function(oo){s3e(this,oo)},wo.wf=function(){jnt(this)},wo.d=0,Vo(vTe,"AbstractForceModel",2100),zo(641,2100,{641:1},OJe),wo.uf=function(oo,co){var fo,po,vo,xo,Eo;return mlt(this.f,oo,co),vo=mm(Pm(co.d),oo.d),Eo=lo.Math.sqrt(vo.a*vo.a+vo.b*vo.b),po=lo.Math.max(0,Eo-dL(oo.e)/2-dL(co.e)/2),fo=Xit(this.e,oo,co),fo>0?xo=-ACt(po,this.c)*fo:xo=i5t(po,this.b)*bo(bs(oo,(vS(),_R)),17).a,G_(vo,xo/Eo),vo},wo.vf=function(oo){s3e(this,oo),this.a=bo(bs(oo,(vS(),iee)),17).a,this.c=na(Tl(bs(oo,oee))),this.b=na(Tl(bs(oo,tge)))},wo.xf=function(oo){return oo0&&(xo-=h_t(po,this.a)*fo),G_(vo,xo*this.b/Eo),vo},wo.vf=function(oo){var co,fo,po,vo,xo,Eo,To;for(s3e(this,oo),this.b=na(Tl(bs(oo,(vS(),nge)))),this.c=this.b/bo(bs(oo,iee),17).a,po=oo.e.c.length,xo=0,vo=0,To=new _s(oo.e);To.a0},wo.a=0,wo.b=0,wo.c=0,Vo(vTe,"FruchtermanReingoldModel",642),zo(860,1,Vx,zU),wo.hf=function(oo){_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,qZ),""),"Force Model"),"Determines the model for force calculation."),FAe),(_4(),Cp)),PAe),Tu((YS(),Ku))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,bTe),""),"Iterations"),"The number of iterations on the force model."),Ql(300)),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,yTe),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Ql(0)),sy),Vm),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,M1e),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),oE),Qm),nm),Tu(Ku)))),Jp(oo,M1e,qZ,G0t),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,D1e),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Qm),nm),Tu(Ku)))),Jp(oo,D1e,qZ,H0t),ict((new yO,oo))};var P0t,j0t,FAe,z0t,H0t,q0t,V0t,G0t;Vo(_B,"ForceMetaDataProvider",860),zo(432,22,{3:1,34:1,22:1,432:1},m2e);var ege,ree,PAe=V1(_B,"ForceModelStrategy",432,X1,X6t,E4t),W0t;zo(k4,1,Vx,yO),wo.hf=function(oo){ict(oo)};var U0t,K0t,jAe,iee,zAe,Y0t,X0t,Q0t,Z0t,HAe,J0t,qAe,VAe,ept,_R,tpt,tge,GAe,npt,rpt,oee,nge,ipt,opt,spt,WAe,apt;Vo(_B,"ForceOptions",k4),zo(1001,1,{},Tw),wo.sf=function(){var oo;return oo=new mye,oo},wo.tf=function(oo){},Vo(_B,"ForceOptions/ForceFactory",1001);var VV,eF,ER,see;zo(861,1,Vx,mz),wo.hf=function(oo){_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,xTe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(_f(),!1)),(_4(),ym)),qp),Tu((YS(),pm))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,STe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Qm),nm),mp(Ku,As($s(WE,1),Pl,170,0,[gE]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,_Te),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),UAe),Cp),e9e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ETe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),oE),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,kTe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Ql(q0)),sy),Vm),Tu(Ku)))),Ilt((new Mse,oo))};var lpt,cpt,UAe,upt,fpt,dpt;Vo(_B,"StressMetaDataProvider",861),zo(1004,1,Vx,Mse),wo.hf=function(oo){Ilt(oo)};var aee,KAe,YAe,XAe,QAe,ZAe,hpt,ppt,gpt,mpt,JAe,vpt;Vo(_B,"StressOptions",1004),zo(1005,1,{},B2),wo.sf=function(){var oo;return oo=new IVe,oo},wo.tf=function(oo){},Vo(_B,"StressOptions/StressFactory",1005),zo(1110,205,DT,IVe),wo.rf=function(oo,co){var fo,po,vo,xo,Eo;for(co.Ug(Aut,1),lu(au(zl(oo,(kq(),QAe))))?lu(au(zl(oo,JAe)))||CH((fo=new dD((NC(),new kC(oo))),fo)):Yot(new mye,oo,co.eh(1)),vo=tet(oo),po=zat(this.a,vo),Eo=po.Kc();Eo.Ob();)xo=bo(Eo.Pb(),235),!(xo.e.c.length<=1)&&(LWt(this.b,xo),lzt(this.b),g2(xo.d,new DS));vo=tct(po),fct(vo),co.Vg()},Vo(WZ,"StressLayoutProvider",1110),zo(1111,1,_1,DS),wo.Cd=function(oo){p3e(bo(oo,454))},Vo(WZ,"StressLayoutProvider/lambda$0$Type",1111),zo(1002,1,{},RFe),wo.c=0,wo.e=0,wo.g=0,Vo(WZ,"StressMajorization",1002),zo(391,22,{3:1,34:1,22:1,391:1},yle);var rge,ige,oge,e9e=V1(WZ,"StressMajorization/Dimension",391,X1,U$t,k4t),bpt;zo(1003,1,g0,RDe),wo.Ne=function(oo,co){return J5t(this.a,bo(oo,153),bo(co,153))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(WZ,"StressMajorization/lambda$0$Type",1003),zo(1192,1,{},FKe),Vo(vR,"ElkLayered",1192),zo(1193,1,_1,ODe),wo.Cd=function(oo){BPt(this.a,bo(oo,36))},Vo(vR,"ElkLayered/lambda$0$Type",1193),zo(1194,1,_1,IDe),wo.Cd=function(oo){e4t(this.a,bo(oo,36))},Vo(vR,"ElkLayered/lambda$1$Type",1194),zo(1281,1,{},xqe);var ypt,wpt,xpt;Vo(vR,"GraphConfigurator",1281),zo(770,1,_1,eye),wo.Cd=function(oo){Jrt(this.a,bo(oo,10))},Vo(vR,"GraphConfigurator/lambda$0$Type",770),zo(771,1,{},W4),wo.Kb=function(oo){return r5e(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(vR,"GraphConfigurator/lambda$1$Type",771),zo(772,1,_1,tye),wo.Cd=function(oo){Jrt(this.a,bo(oo,10))},Vo(vR,"GraphConfigurator/lambda$2$Type",772),zo(1109,205,DT,LFe),wo.rf=function(oo,co){var fo;fo=vWt(new FFe,oo),$a(zl(oo,(ou(),xA)))===$a((x5(),B4))?YIt(this.a,fo,co):izt(this.a,fo,co),co.$g()||Klt(new HU,fo)},Vo(vR,"LayeredLayoutProvider",1109),zo(367,22,{3:1,34:1,22:1,367:1},zz);var xS,qE,zy,Qy,Jv,t9e=V1(vR,"LayeredPhases",367,X1,Q9t,T4t),Spt;zo(1717,1,{},YZe),wo.i=0;var _pt;Vo(bV,"ComponentsToCGraphTransformer",1717);var Ept;zo(1718,1,{},_k),wo.yf=function(oo,co){return lo.Math.min(oo.a!=null?na(oo.a):oo.c.i,co.a!=null?na(co.a):co.c.i)},wo.zf=function(oo,co){return lo.Math.min(oo.a!=null?na(oo.a):oo.c.i,co.a!=null?na(co.a):co.c.i)},Vo(bV,"ComponentsToCGraphTransformer/1",1718),zo(86,1,{86:1}),wo.i=0,wo.k=!0,wo.o=am;var sge=Vo(CB,"CNode",86);zo(470,86,{470:1,86:1},wwe,Oke),wo.Ib=function(){return""},Vo(bV,"ComponentsToCGraphTransformer/CRectNode",470),zo(1688,1,{},yE);var age,lge;Vo(bV,"OneDimensionalComponentsCompaction",1688),zo(1689,1,{},LS),wo.Kb=function(oo){return F$t(bo(oo,42))},wo.Fb=function(oo){return this===oo},Vo(bV,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),zo(1690,1,{},U4),wo.Kb=function(oo){return QIt(bo(oo,42))},wo.Fb=function(oo){return this===oo},Vo(bV,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),zo(1720,1,{},GWe),Vo(CB,"CGraph",1720),zo(194,1,{194:1},ede),wo.b=0,wo.c=0,wo.e=0,wo.g=!0,wo.i=am,Vo(CB,"CGroup",194),zo(1719,1,{},D_),wo.yf=function(oo,co){return lo.Math.max(oo.a!=null?na(oo.a):oo.c.i,co.a!=null?na(co.a):co.c.i)},wo.zf=function(oo,co){return lo.Math.max(oo.a!=null?na(oo.a):oo.c.i,co.a!=null?na(co.a):co.c.i)},Vo(CB,nut,1719),zo(1721,1,{},Zit),wo.d=!1;var kpt,cge=Vo(CB,out,1721);zo(1722,1,{},K4),wo.Kb=function(oo){return r2e(),_f(),bo(bo(oo,42).a,86).d.e!=0},wo.Fb=function(oo){return this===oo},Vo(CB,sut,1722),zo(833,1,{},Oxe),wo.a=!1,wo.b=!1,wo.c=!1,wo.d=!1,Vo(CB,aut,833),zo(1898,1,{},aWe),Vo(UZ,lut,1898);var GV=Ip(BT,eut);zo(1899,1,{382:1},zUe),wo.bf=function(oo){dqt(this,bo(oo,476))},Vo(UZ,cut,1899),zo($3,1,g0,cC),wo.Ne=function(oo,co){return w6t(bo(oo,86),bo(co,86))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(UZ,uut,$3),zo(476,1,{476:1},b2e),wo.a=!1,Vo(UZ,fut,476),zo(1901,1,g0,uC),wo.Ne=function(oo,co){return SLt(bo(oo,476),bo(co,476))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(UZ,dut,1901),zo(148,1,{148:1},LO,pxe),wo.Fb=function(oo){var co;return oo==null||OXt!=Nw(oo)?!1:(co=bo(oo,148),ky(this.c,co.c)&&ky(this.d,co.d))},wo.Hb=function(){return fq(As($s(bm,1),Xu,1,5,[this.c,this.d]))},wo.Ib=function(){return"("+this.c+av+this.d+(this.a?"cx":"")+this.b+")"},wo.a=!0,wo.c=0,wo.d=0;var OXt=Vo(BT,"Point",148);zo(416,22,{3:1,34:1,22:1,416:1},YK);var I6,dA,o7,hA,Tpt=V1(BT,"Point/Quadrant",416,X1,s9t,C4t),Cpt;zo(1708,1,{},MFe),wo.b=null,wo.c=null,wo.d=null,wo.e=null,wo.f=null;var $pt,Apt,Rpt,Opt,Ipt;Vo(BT,"RectilinearConvexHull",1708),zo(583,1,{382:1},PQ),wo.bf=function(oo){X7t(this,bo(oo,148))},wo.b=0;var n9e;Vo(BT,"RectilinearConvexHull/MaximalElementsEventHandler",583),zo(1710,1,g0,BS),wo.Ne=function(oo,co){return x6t(Tl(oo),Tl(co))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(BT,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),zo(1709,1,{382:1},fZe),wo.bf=function(oo){CHt(this,bo(oo,148))},wo.a=0,wo.b=null,wo.c=null,wo.d=null,wo.e=null,Vo(BT,"RectilinearConvexHull/RectangleEventHandler",1709),zo(1711,1,g0,q7),wo.Ne=function(oo,co){return RAt(bo(oo,148),bo(co,148))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(BT,"RectilinearConvexHull/lambda$0$Type",1711),zo(1712,1,g0,dP),wo.Ne=function(oo,co){return OAt(bo(oo,148),bo(co,148))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(BT,"RectilinearConvexHull/lambda$1$Type",1712),zo(1713,1,g0,vM),wo.Ne=function(oo,co){return AAt(bo(oo,148),bo(co,148))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(BT,"RectilinearConvexHull/lambda$2$Type",1713),zo(1714,1,g0,t$),wo.Ne=function(oo,co){return IAt(bo(oo,148),bo(co,148))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(BT,"RectilinearConvexHull/lambda$3$Type",1714),zo(1715,1,g0,hP),wo.Ne=function(oo,co){return cFt(bo(oo,148),bo(co,148))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(BT,"RectilinearConvexHull/lambda$4$Type",1715),zo(1716,1,{},mKe),Vo(BT,"Scanline",1716),zo(2104,1,{}),Vo(S_,"AbstractGraphPlacer",2104),zo(335,1,{335:1},rVe),wo.Ff=function(oo){return this.Gf(oo)?(Mu(this.b,bo(bs(oo,(Wl(),N5)),21),oo),!0):!1},wo.Gf=function(oo){var co,fo,po,vo;for(co=bo(bs(oo,(Wl(),N5)),21),vo=bo(Q0(lp,co),21),po=vo.Kc();po.Ob();)if(fo=bo(po.Pb(),21),!bo(Q0(this.b,fo),15).dc())return!1;return!0};var lp;Vo(S_,"ComponentGroup",335),zo(779,2104,{},yye),wo.Hf=function(oo){var co,fo;for(fo=new _s(this.a);fo.afo&&(Fo=0,Wo+=To+po,To=0),Ao=xo.c,ZI(xo,Fo+Ao.a,Wo+Ao.b),zS(Ao),vo=lo.Math.max(vo,Fo+Io.a),To=lo.Math.max(To,Io.b),Fo+=Io.a+po;co.f.a=vo,co.f.b=Wo+To},wo.Jf=function(oo,co){var fo,po,vo,xo,Eo;if($a(bs(co,(ou(),wA)))===$a((CT(),pA))){for(po=oo.Kc();po.Ob();){for(fo=bo(po.Pb(),36),Eo=0,xo=new _s(fo.a);xo.afo&&!bo(bs(xo,(Wl(),N5)),21).Hc((nu(),s1))||Ao&&bo(bs(Ao,(Wl(),N5)),21).Hc((nu(),p1))||bo(bs(xo,(Wl(),N5)),21).Hc((nu(),l1)))&&(Xo=Wo,Zo+=To+po,To=0),Io=xo.c,bo(bs(xo,(Wl(),N5)),21).Hc((nu(),s1))&&(Xo=vo+po),ZI(xo,Xo+Io.a,Zo+Io.b),vo=lo.Math.max(vo,Xo+Fo.a),bo(bs(xo,N5),21).Hc(z1)&&(Wo=lo.Math.max(Wo,Xo+Fo.a+po)),zS(Io),To=lo.Math.max(To,Fo.b),Xo+=Fo.a+po,Ao=xo;co.f.a=vo,co.f.b=Zo+To},wo.Jf=function(oo,co){},Vo(S_,"ModelOrderRowGraphPlacer",1313),zo(1311,1,g0,gP),wo.Ne=function(oo,co){return YRt(bo(oo,36),bo(co,36))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(S_,"SimpleRowGraphPlacer/1",1311);var Mpt;zo(1280,1,rE,VA),wo.Lb=function(oo){var co;return co=bo(bs(bo(oo,249).b,(ou(),Hv)),75),!!co&&co.b!=0},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){var co;return co=bo(bs(bo(oo,249).b,(ou(),Hv)),75),!!co&&co.b!=0},Vo(KZ,"CompoundGraphPostprocessor/1",1280),zo(1279,1,hp,PFe),wo.Kf=function(oo,co){wnt(this,bo(oo,36),co)},Vo(KZ,"CompoundGraphPreprocessor",1279),zo(453,1,{453:1},ltt),wo.c=!1,Vo(KZ,"CompoundGraphPreprocessor/ExternalPort",453),zo(249,1,{249:1},RY),wo.Ib=function(){return lce(this.c)+":"+Wit(this.b)},Vo(KZ,"CrossHierarchyEdge",249),zo(777,1,g0,nye),wo.Ne=function(oo,co){return XDt(this,bo(oo,249),bo(co,249))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(KZ,"CrossHierarchyEdgeComparator",777),zo(305,137,{3:1,305:1,96:1,137:1}),wo.p=0,Vo(Yy,"LGraphElement",305),zo(18,305,{3:1,18:1,305:1,96:1,137:1},QC),wo.Ib=function(){return Wit(this)};var dge=Vo(Yy,"LEdge",18);zo(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},U_e),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){return new _s(this.b)},wo.Ib=function(){return this.b.c.length==0?"G-unlayered"+_3(this.a):this.a.c.length==0?"G-layered"+_3(this.b):"G[layerless"+_3(this.a)+", layers"+_3(this.b)+"]"};var Dpt=Vo(Yy,"LGraph",36),Lpt;zo(666,1,{}),wo.Lf=function(){return this.e.n},wo.of=function(oo){return bs(this.e,oo)},wo.Mf=function(){return this.e.o},wo.Nf=function(){return this.e.p},wo.pf=function(oo){return gp(this.e,oo)},wo.Of=function(oo){this.e.n.a=oo.a,this.e.n.b=oo.b},wo.Pf=function(oo){this.e.o.a=oo.a,this.e.o.b=oo.b},wo.Qf=function(oo){this.e.p=oo},Vo(Yy,"LGraphAdapters/AbstractLShapeAdapter",666),zo(474,1,{853:1},hD),wo.Rf=function(){var oo,co;if(!this.b)for(this.b=kE(this.a.b.c.length),co=new _s(this.a.b);co.a0&&Pet((o1(co-1,oo.length),oo.charCodeAt(co-1)),Dut);)--co;if(xo> ",oo),YQ(fo)),S0(qy((oo.a+="[",oo),fo.i),"]")),oo.a},wo.c=!0,wo.d=!1;var a9e,l9e,c9e,u9e,f9e,d9e,Fpt=Vo(Yy,"LPort",12);zo(408,1,LE,EO),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){var oo;return oo=new _s(this.a.e),new NDe(oo)},Vo(Yy,"LPort/1",408),zo(1309,1,$m,NDe),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){return bo(Es(this.a),18).c},wo.Ob=function(){return cy(this.a)},wo.Qb=function(){cL(this.a)},Vo(Yy,"LPort/1/1",1309),zo(369,1,LE,s8),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){var oo;return oo=new _s(this.a.g),new rye(oo)},Vo(Yy,"LPort/2",369),zo(776,1,$m,rye),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){return bo(Es(this.a),18).d},wo.Ob=function(){return cy(this.a)},wo.Qb=function(){cL(this.a)},Vo(Yy,"LPort/2/1",776),zo(1302,1,LE,Sze),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){return new d_(this)},Vo(Yy,"LPort/CombineIter",1302),zo(208,1,$m,d_),wo.Nb=function(oo){jm(this,oo)},wo.Qb=function(){eje()},wo.Ob=function(){return ZD(this)},wo.Pb=function(){return cy(this.a)?Es(this.a):Es(this.b)},Vo(Yy,"LPort/CombineIter/1",208),zo(1303,1,rE,A0),wo.Lb=function(oo){return xWe(oo)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return G2(),bo(oo,12).g.c.length!=0},Vo(Yy,"LPort/lambda$0$Type",1303),zo(1304,1,rE,Y0),wo.Lb=function(oo){return SWe(oo)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return G2(),bo(oo,12).e.c.length!=0},Vo(Yy,"LPort/lambda$1$Type",1304),zo(1305,1,rE,Rm),wo.Lb=function(oo){return G2(),bo(oo,12).j==(nu(),s1)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return G2(),bo(oo,12).j==(nu(),s1)},Vo(Yy,"LPort/lambda$2$Type",1305),zo(1306,1,rE,wm),wo.Lb=function(oo){return G2(),bo(oo,12).j==(nu(),p1)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return G2(),bo(oo,12).j==(nu(),p1)},Vo(Yy,"LPort/lambda$3$Type",1306),zo(1307,1,rE,jp),wo.Lb=function(oo){return G2(),bo(oo,12).j==(nu(),z1)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return G2(),bo(oo,12).j==(nu(),z1)},Vo(Yy,"LPort/lambda$4$Type",1307),zo(1308,1,rE,im),wo.Lb=function(oo){return G2(),bo(oo,12).j==(nu(),l1)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return G2(),bo(oo,12).j==(nu(),l1)},Vo(Yy,"LPort/lambda$5$Type",1308),zo(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},Vy),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){return new _s(this.a)},wo.Ib=function(){return"L_"+Xv(this.b.b,this,0)+_3(this.a)},Vo(Yy,"Layer",30),zo(1330,1,{},FFe),Vo(C4,Put,1330),zo(1334,1,{},i2),wo.Kb=function(oo){return Zv(bo(oo,84))},Vo(C4,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),zo(1337,1,{},f2),wo.Kb=function(oo){return Zv(bo(oo,84))},Vo(C4,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),zo(1331,1,_1,MDe),wo.Cd=function(oo){uot(this.a,bo(oo,123))},Vo(C4,mTe,1331),zo(1332,1,_1,DDe),wo.Cd=function(oo){uot(this.a,bo(oo,123))},Vo(C4,jut,1332),zo(1333,1,{},Ox),wo.Kb=function(oo){return new Ou(null,new Du(hSe(bo(oo,74)),16))},Vo(C4,zut,1333),zo(1335,1,f0,LDe),wo.Mb=function(oo){return ZEt(this.a,bo(oo,27))},Vo(C4,Hut,1335),zo(1336,1,{},P5),wo.Kb=function(oo){return new Ou(null,new Du(g6t(bo(oo,74)),16))},Vo(C4,"ElkGraphImporter/lambda$5$Type",1336),zo(1338,1,f0,BDe),wo.Mb=function(oo){return JEt(this.a,bo(oo,27))},Vo(C4,"ElkGraphImporter/lambda$7$Type",1338),zo(1339,1,f0,hC),wo.Mb=function(oo){return A6t(bo(oo,74))},Vo(C4,"ElkGraphImporter/lambda$8$Type",1339),zo(1297,1,{},HU);var Ppt;Vo(C4,"ElkGraphLayoutTransferrer",1297),zo(1298,1,f0,FDe),wo.Mb=function(oo){return z5t(this.a,bo(oo,18))},Vo(C4,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),zo(1299,1,_1,PDe),wo.Cd=function(oo){Pz(),Jl(this.a,bo(oo,18))},Vo(C4,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),zo(1300,1,f0,jDe),wo.Mb=function(oo){return T5t(this.a,bo(oo,18))},Vo(C4,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),zo(1301,1,_1,zDe),wo.Cd=function(oo){Pz(),Jl(this.a,bo(oo,18))},Vo(C4,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),zo(819,1,{},qwe),Vo(f1,"BiLinkedHashMultiMap",819),zo(1550,1,hp,vP),wo.Kf=function(oo,co){gRt(bo(oo,36),co)},Vo(f1,"CommentNodeMarginCalculator",1550),zo(1551,1,{},G7),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"CommentNodeMarginCalculator/lambda$0$Type",1551),zo(1552,1,_1,eO),wo.Cd=function(oo){gWt(bo(oo,10))},Vo(f1,"CommentNodeMarginCalculator/lambda$1$Type",1552),zo(1553,1,hp,Ix),wo.Kf=function(oo,co){yqt(bo(oo,36),co)},Vo(f1,"CommentPostprocessor",1553),zo(1554,1,hp,bP),wo.Kf=function(oo,co){zKt(bo(oo,36),co)},Vo(f1,"CommentPreprocessor",1554),zo(1555,1,hp,GA),wo.Kf=function(oo,co){LHt(bo(oo,36),co)},Vo(f1,"ConstraintsPostprocessor",1555),zo(1556,1,hp,ZG),wo.Kf=function(oo,co){qRt(bo(oo,36),co)},Vo(f1,"EdgeAndLayerConstraintEdgeReverser",1556),zo(1557,1,hp,yP),wo.Kf=function(oo,co){NNt(bo(oo,36),co)},Vo(f1,"EndLabelPostprocessor",1557),zo(1558,1,{},j5),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"EndLabelPostprocessor/lambda$0$Type",1558),zo(1559,1,f0,JG),wo.Mb=function(oo){return K9t(bo(oo,10))},Vo(f1,"EndLabelPostprocessor/lambda$1$Type",1559),zo(1560,1,_1,eW),wo.Cd=function(oo){_Lt(bo(oo,10))},Vo(f1,"EndLabelPostprocessor/lambda$2$Type",1560),zo(1561,1,hp,tW),wo.Kf=function(oo,co){fPt(bo(oo,36),co)},Vo(f1,"EndLabelPreprocessor",1561),zo(1562,1,{},nW),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"EndLabelPreprocessor/lambda$0$Type",1562),zo(1563,1,_1,cGe),wo.Cd=function(oo){fEt(this.a,this.b,this.c,bo(oo,10))},wo.a=0,wo.b=0,wo.c=!1,Vo(f1,"EndLabelPreprocessor/lambda$1$Type",1563),zo(1564,1,f0,rW),wo.Mb=function(oo){return $a(bs(bo(oo,72),(ou(),hE)))===$a((g_(),cM))},Vo(f1,"EndLabelPreprocessor/lambda$2$Type",1564),zo(1565,1,_1,HDe),wo.Cd=function(oo){y0(this.a,bo(oo,72))},Vo(f1,"EndLabelPreprocessor/lambda$3$Type",1565),zo(1566,1,f0,iW),wo.Mb=function(oo){return $a(bs(bo(oo,72),(ou(),hE)))===$a((g_(),NA))},Vo(f1,"EndLabelPreprocessor/lambda$4$Type",1566),zo(1567,1,_1,qDe),wo.Cd=function(oo){y0(this.a,bo(oo,72))},Vo(f1,"EndLabelPreprocessor/lambda$5$Type",1567),zo(1615,1,hp,Rse),wo.Kf=function(oo,co){IIt(bo(oo,36),co)};var jpt;Vo(f1,"EndLabelSorter",1615),zo(1616,1,g0,t5),wo.Ne=function(oo,co){return fMt(bo(oo,466),bo(co,466))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"EndLabelSorter/1",1616),zo(466,1,{466:1},DUe),Vo(f1,"EndLabelSorter/LabelGroup",466),zo(1617,1,{},bne),wo.Kb=function(oo){return Fz(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"EndLabelSorter/lambda$0$Type",1617),zo(1618,1,f0,z5),wo.Mb=function(oo){return Fz(),bo(oo,10).k==(a1(),Vp)},Vo(f1,"EndLabelSorter/lambda$1$Type",1618),zo(1619,1,_1,yne),wo.Cd=function(oo){kFt(bo(oo,10))},Vo(f1,"EndLabelSorter/lambda$2$Type",1619),zo(1620,1,f0,oW),wo.Mb=function(oo){return Fz(),$a(bs(bo(oo,72),(ou(),hE)))===$a((g_(),NA))},Vo(f1,"EndLabelSorter/lambda$3$Type",1620),zo(1621,1,f0,n$),wo.Mb=function(oo){return Fz(),$a(bs(bo(oo,72),(ou(),hE)))===$a((g_(),cM))},Vo(f1,"EndLabelSorter/lambda$4$Type",1621),zo(1568,1,hp,bM),wo.Kf=function(oo,co){AWt(this,bo(oo,36))},wo.b=0,wo.c=0,Vo(f1,"FinalSplineBendpointsCalculator",1568),zo(1569,1,{},wP),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),zo(1570,1,{},J2),wo.Kb=function(oo){return new Ou(null,new GC(new x1(E1(Wp(bo(oo,10)).a.Kc(),new ko))))},Vo(f1,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),zo(1571,1,f0,r$),wo.Mb=function(oo){return!dv(bo(oo,18))},Vo(f1,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),zo(1572,1,f0,xP),wo.Mb=function(oo){return gp(bo(oo,18),(Wl(),WT))},Vo(f1,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),zo(1573,1,_1,VDe),wo.Cd=function(oo){FVt(this.a,bo(oo,131))},Vo(f1,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),zo(1574,1,_1,wne),wo.Cd=function(oo){Nq(bo(oo,18).a)},Vo(f1,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),zo(803,1,hp,iye),wo.Kf=function(oo,co){_Ut(this,bo(oo,36),co)},Vo(f1,"GraphTransformer",803),zo(517,22,{3:1,34:1,22:1,517:1},v2e);var pge,WV,zpt=V1(f1,"GraphTransformer/Mode",517,X1,Q6t,I3t),Hpt;zo(1575,1,hp,SP),wo.Kf=function(oo,co){Gzt(bo(oo,36),co)},Vo(f1,"HierarchicalNodeResizingProcessor",1575),zo(1576,1,hp,xne),wo.Kf=function(oo,co){uRt(bo(oo,36),co)},Vo(f1,"HierarchicalPortConstraintProcessor",1576),zo(1577,1,g0,Sne),wo.Ne=function(oo,co){return IMt(bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"HierarchicalPortConstraintProcessor/NodeComparator",1577),zo(1578,1,hp,_ne),wo.Kf=function(oo,co){NGt(bo(oo,36),co)},Vo(f1,"HierarchicalPortDummySizeProcessor",1578),zo(1579,1,hp,sW),wo.Kf=function(oo,co){qqt(this,bo(oo,36),co)},wo.a=0,Vo(f1,"HierarchicalPortOrthogonalEdgeRouter",1579),zo(1580,1,g0,yM),wo.Ne=function(oo,co){return Vkt(bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"HierarchicalPortOrthogonalEdgeRouter/1",1580),zo(1581,1,g0,W7),wo.Ne=function(oo,co){return Q7t(bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"HierarchicalPortOrthogonalEdgeRouter/2",1581),zo(1582,1,hp,Ene),wo.Kf=function(oo,co){sFt(bo(oo,36),co)},Vo(f1,"HierarchicalPortPositionProcessor",1582),zo(1583,1,hp,oD),wo.Kf=function(oo,co){SYt(this,bo(oo,36))},wo.a=0,wo.c=0;var lee,cee;Vo(f1,"HighDegreeNodeLayeringProcessor",1583),zo(580,1,{580:1},aW),wo.b=-1,wo.d=-1,Vo(f1,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),zo(1584,1,{},lW),wo.Kb=function(oo){return hH(),Sm(bo(oo,10))},wo.Fb=function(oo){return this===oo},Vo(f1,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),zo(1585,1,{},_P),wo.Kb=function(oo){return hH(),Wp(bo(oo,10))},wo.Fb=function(oo){return this===oo},Vo(f1,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),zo(1591,1,hp,EP),wo.Kf=function(oo,co){kGt(this,bo(oo,36),co)},Vo(f1,"HyperedgeDummyMerger",1591),zo(804,1,{},ixe),wo.a=!1,wo.b=!1,wo.c=!1,Vo(f1,"HyperedgeDummyMerger/MergeState",804),zo(1592,1,{},cW),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"HyperedgeDummyMerger/lambda$0$Type",1592),zo(1593,1,{},kne),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,10).j,16))},Vo(f1,"HyperedgeDummyMerger/lambda$1$Type",1593),zo(1594,1,_1,kP),wo.Cd=function(oo){bo(oo,12).p=-1},Vo(f1,"HyperedgeDummyMerger/lambda$2$Type",1594),zo(1595,1,hp,TP),wo.Kf=function(oo,co){_Gt(bo(oo,36),co)},Vo(f1,"HypernodesProcessor",1595),zo(1596,1,hp,Tne),wo.Kf=function(oo,co){IGt(bo(oo,36),co)},Vo(f1,"InLayerConstraintProcessor",1596),zo(1597,1,hp,uW),wo.Kf=function(oo,co){kRt(bo(oo,36),co)},Vo(f1,"InnermostNodeMarginCalculator",1597),zo(1598,1,hp,n5),wo.Kf=function(oo,co){BKt(this,bo(oo,36))},wo.a=am,wo.b=am,wo.c=Tp,wo.d=Tp;var IXt=Vo(f1,"InteractiveExternalPortPositioner",1598);zo(1599,1,{},CP),wo.Kb=function(oo){return bo(oo,18).d.i},wo.Fb=function(oo){return this===oo},Vo(f1,"InteractiveExternalPortPositioner/lambda$0$Type",1599),zo(1600,1,{},GDe),wo.Kb=function(oo){return Gkt(this.a,Tl(oo))},wo.Fb=function(oo){return this===oo},Vo(f1,"InteractiveExternalPortPositioner/lambda$1$Type",1600),zo(1601,1,{},tO),wo.Kb=function(oo){return bo(oo,18).c.i},wo.Fb=function(oo){return this===oo},Vo(f1,"InteractiveExternalPortPositioner/lambda$2$Type",1601),zo(1602,1,{},WDe),wo.Kb=function(oo){return Wkt(this.a,Tl(oo))},wo.Fb=function(oo){return this===oo},Vo(f1,"InteractiveExternalPortPositioner/lambda$3$Type",1602),zo(1603,1,{},UDe),wo.Kb=function(oo){return q5t(this.a,Tl(oo))},wo.Fb=function(oo){return this===oo},Vo(f1,"InteractiveExternalPortPositioner/lambda$4$Type",1603),zo(1604,1,{},KDe),wo.Kb=function(oo){return V5t(this.a,Tl(oo))},wo.Fb=function(oo){return this===oo},Vo(f1,"InteractiveExternalPortPositioner/lambda$5$Type",1604),zo(81,22,{3:1,34:1,22:1,81:1,196:1},Xp),wo.dg=function(){switch(this.g){case 15:return new Rre;case 22:return new kW;case 47:return new Ire;case 28:case 35:return new $P;case 32:return new vP;case 42:return new Ix;case 1:return new bP;case 41:return new GA;case 56:return new iye((vI(),WV));case 0:return new iye((vI(),pge));case 2:return new ZG;case 54:return new yP;case 33:return new tW;case 51:return new bM;case 55:return new SP;case 13:return new xne;case 38:return new _ne;case 44:return new sW;case 40:return new Ene;case 9:return new oD;case 49:return new Kqe;case 37:return new EP;case 43:return new TP;case 27:return new Tne;case 30:return new uW;case 3:return new n5;case 18:return new dW;case 29:return new Cne;case 5:return new i5;case 50:return new fW;case 34:return new i8;case 36:return new hW;case 52:return new Rse;case 11:return new i$;case 7:return new Dse;case 39:return new wM;case 45:return new Mne;case 16:return new Dne;case 10:return new jze;case 48:return new pW;case 21:return new Bne;case 23:return new Xae((o6(),xF));case 8:return new Pne;case 12:return new zne;case 4:return new Y7;case 19:return new SC;case 17:return new Hne;case 53:return new H5;case 6:return new EM;case 25:return new zFe;case 46:return new Hy;case 31:return new LVe;case 14:return new yW;case 26:return new mC;case 20:return new Yne;case 24:return new Xae((o6(),pte));default:throw Cs(new i1(j1e+(this.f!=null?this.f:""+this.g)))}};var h9e,p9e,g9e,m9e,v9e,b9e,y9e,w9e,x9e,S9e,s7,uee,fee,_9e,E9e,k9e,T9e,C9e,$9e,A9e,tF,R9e,O9e,I9e,N9e,M9e,gge,dee,hee,D9e,pee,gee,mee,MN,gA,mA,L9e,bee,yee,B9e,wee,xee,F9e,P9e,j9e,z9e,See,mge,UV,_ee,Eee,kee,Tee,H9e,q9e,V9e,G9e,NXt=V1(f1,z1e,81,X1,ist,O4t),qpt;zo(1605,1,hp,dW),wo.Kf=function(oo,co){DKt(bo(oo,36),co)},Vo(f1,"InvertedPortProcessor",1605),zo(1606,1,hp,Cne),wo.Kf=function(oo,co){RVt(bo(oo,36),co)},Vo(f1,"LabelAndNodeSizeProcessor",1606),zo(1607,1,f0,$ne),wo.Mb=function(oo){return bo(oo,10).k==(a1(),Vp)},Vo(f1,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),zo(1608,1,f0,Ane),wo.Mb=function(oo){return bo(oo,10).k==(a1(),Kp)},Vo(f1,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),zo(1609,1,_1,uGe),wo.Cd=function(oo){dEt(this.b,this.a,this.c,bo(oo,10))},wo.a=!1,wo.c=!1,Vo(f1,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),zo(1610,1,hp,i5),wo.Kf=function(oo,co){aKt(bo(oo,36),co)};var Vpt;Vo(f1,"LabelDummyInserter",1610),zo(1611,1,rE,Rne),wo.Lb=function(oo){return $a(bs(bo(oo,72),(ou(),hE)))===$a((g_(),lM))},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return $a(bs(bo(oo,72),(ou(),hE)))===$a((g_(),lM))},Vo(f1,"LabelDummyInserter/1",1611),zo(1612,1,hp,fW),wo.Kf=function(oo,co){YUt(bo(oo,36),co)},Vo(f1,"LabelDummyRemover",1612),zo(1613,1,f0,One),wo.Mb=function(oo){return lu(au(bs(bo(oo,72),(ou(),ime))))},Vo(f1,"LabelDummyRemover/lambda$0$Type",1613),zo(1378,1,hp,i8),wo.Kf=function(oo,co){zUt(this,bo(oo,36),co)},wo.a=null;var vge;Vo(f1,"LabelDummySwitcher",1378),zo(293,1,{293:1},rat),wo.c=0,wo.d=null,wo.f=0,Vo(f1,"LabelDummySwitcher/LabelDummyInfo",293),zo(1379,1,{},U7),wo.Kb=function(oo){return G8(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"LabelDummySwitcher/lambda$0$Type",1379),zo(1380,1,f0,Ine),wo.Mb=function(oo){return G8(),bo(oo,10).k==(a1(),Ly)},Vo(f1,"LabelDummySwitcher/lambda$1$Type",1380),zo(1381,1,{},YDe),wo.Kb=function(oo){return C5t(this.a,bo(oo,10))},Vo(f1,"LabelDummySwitcher/lambda$2$Type",1381),zo(1382,1,_1,XDe),wo.Cd=function(oo){UCt(this.a,bo(oo,293))},Vo(f1,"LabelDummySwitcher/lambda$3$Type",1382),zo(1383,1,g0,Nne),wo.Ne=function(oo,co){return vCt(bo(oo,293),bo(co,293))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"LabelDummySwitcher/lambda$4$Type",1383),zo(802,1,hp,$P),wo.Kf=function(oo,co){R7t(bo(oo,36),co)},Vo(f1,"LabelManagementProcessor",802),zo(1614,1,hp,hW),wo.Kf=function(oo,co){aqt(bo(oo,36),co)},Vo(f1,"LabelSideSelector",1614),zo(1622,1,hp,i$),wo.Kf=function(oo,co){KGt(bo(oo,36),co)},Vo(f1,"LayerConstraintPostprocessor",1622),zo(1623,1,hp,Dse),wo.Kf=function(oo,co){qjt(bo(oo,36),co)};var W9e;Vo(f1,"LayerConstraintPreprocessor",1623),zo(371,22,{3:1,34:1,22:1,371:1},QK);var KV,Cee,$ee,bge,Gpt=V1(f1,"LayerConstraintPreprocessor/HiddenNodeConnections",371,X1,l9t,I4t),Wpt;zo(1624,1,hp,wM),wo.Kf=function(oo,co){fUt(bo(oo,36),co)},Vo(f1,"LayerSizeAndGraphHeightCalculator",1624),zo(1625,1,hp,Mne),wo.Kf=function(oo,co){Wzt(bo(oo,36),co)},Vo(f1,"LongEdgeJoiner",1625),zo(1626,1,hp,Dne),wo.Kf=function(oo,co){jWt(bo(oo,36),co)},Vo(f1,"LongEdgeSplitter",1626),zo(1627,1,hp,jze),wo.Kf=function(oo,co){SKt(this,bo(oo,36),co)},wo.e=0,wo.f=0,wo.j=0,wo.k=0,wo.n=0,wo.o=0;var Upt,Kpt;Vo(f1,"NodePromotion",1627),zo(1628,1,g0,Lne),wo.Ne=function(oo,co){return DOt(bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"NodePromotion/1",1628),zo(1629,1,g0,K7),wo.Ne=function(oo,co){return LOt(bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"NodePromotion/2",1629),zo(1630,1,{},Y4),wo.Kb=function(oo){return bo(oo,42),IY(),_f(),!0},wo.Fb=function(oo){return this===oo},Vo(f1,"NodePromotion/lambda$0$Type",1630),zo(1631,1,{},eLe),wo.Kb=function(oo){return O$t(this.a,bo(oo,42))},wo.Fb=function(oo){return this===oo},wo.a=0,Vo(f1,"NodePromotion/lambda$1$Type",1631),zo(1632,1,{},tLe),wo.Kb=function(oo){return R$t(this.a,bo(oo,42))},wo.Fb=function(oo){return this===oo},wo.a=0,Vo(f1,"NodePromotion/lambda$2$Type",1632),zo(1633,1,hp,pW),wo.Kf=function(oo,co){mYt(bo(oo,36),co)},Vo(f1,"NorthSouthPortPostprocessor",1633),zo(1634,1,hp,Bne),wo.Kf=function(oo,co){XKt(bo(oo,36),co)},Vo(f1,"NorthSouthPortPreprocessor",1634),zo(1635,1,g0,Fne),wo.Ne=function(oo,co){return XRt(bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"NorthSouthPortPreprocessor/lambda$0$Type",1635),zo(1636,1,hp,Pne),wo.Kf=function(oo,co){fGt(bo(oo,36),co)},Vo(f1,"PartitionMidprocessor",1636),zo(1637,1,f0,jne),wo.Mb=function(oo){return gp(bo(oo,10),(ou(),KN))},Vo(f1,"PartitionMidprocessor/lambda$0$Type",1637),zo(1638,1,_1,nLe),wo.Cd=function(oo){R6t(this.a,bo(oo,10))},Vo(f1,"PartitionMidprocessor/lambda$1$Type",1638),zo(1639,1,hp,zne),wo.Kf=function(oo,co){hHt(bo(oo,36),co)},Vo(f1,"PartitionPostprocessor",1639),zo(1640,1,hp,Y7),wo.Kf=function(oo,co){Cjt(bo(oo,36),co)},Vo(f1,"PartitionPreprocessor",1640),zo(1641,1,f0,Bu),wo.Mb=function(oo){return gp(bo(oo,10),(ou(),KN))},Vo(f1,"PartitionPreprocessor/lambda$0$Type",1641),zo(1642,1,{},$1),wo.Kb=function(oo){return new Ou(null,new GC(new x1(E1(Wp(bo(oo,10)).a.Kc(),new ko))))},Vo(f1,"PartitionPreprocessor/lambda$1$Type",1642),zo(1643,1,f0,h1),wo.Mb=function(oo){return vMt(bo(oo,18))},Vo(f1,"PartitionPreprocessor/lambda$2$Type",1643),zo(1644,1,_1,_p),wo.Cd=function(oo){hOt(bo(oo,18))},Vo(f1,"PartitionPreprocessor/lambda$3$Type",1644),zo(1645,1,hp,SC),wo.Kf=function(oo,co){GVt(bo(oo,36),co)};var U9e,Ypt,Xpt,Qpt,K9e,Y9e;Vo(f1,"PortListSorter",1645),zo(1648,1,g0,Wm),wo.Ne=function(oo,co){return PYe(bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"PortListSorter/lambda$0$Type",1648),zo(1650,1,g0,Ry),wo.Ne=function(oo,co){return Cat(bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"PortListSorter/lambda$1$Type",1650),zo(1646,1,{},Nx),wo.Kb=function(oo){return $I(),bo(oo,12).e},Vo(f1,"PortListSorter/lambda$2$Type",1646),zo(1647,1,{},d2),wo.Kb=function(oo){return $I(),bo(oo,12).g},Vo(f1,"PortListSorter/lambda$3$Type",1647),zo(1649,1,g0,AP),wo.Ne=function(oo,co){return zDt(bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"PortListSorter/lambda$4$Type",1649),zo(1651,1,hp,Hne),wo.Kf=function(oo,co){nzt(bo(oo,36),co)},Vo(f1,"PortSideProcessor",1651),zo(1652,1,hp,H5),wo.Kf=function(oo,co){rVt(bo(oo,36),co)},Vo(f1,"ReversedEdgeRestorer",1652),zo(1657,1,hp,zFe),wo.Kf=function(oo,co){_Dt(this,bo(oo,36),co)},Vo(f1,"SelfLoopPortRestorer",1657),zo(1658,1,{},xM),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"SelfLoopPortRestorer/lambda$0$Type",1658),zo(1659,1,f0,qne),wo.Mb=function(oo){return bo(oo,10).k==(a1(),Vp)},Vo(f1,"SelfLoopPortRestorer/lambda$1$Type",1659),zo(1660,1,f0,X7),wo.Mb=function(oo){return gp(bo(oo,10),(Wl(),F6))},Vo(f1,"SelfLoopPortRestorer/lambda$2$Type",1660),zo(1661,1,{},SM),wo.Kb=function(oo){return bo(bs(bo(oo,10),(Wl(),F6)),337)},Vo(f1,"SelfLoopPortRestorer/lambda$3$Type",1661),zo(1662,1,_1,ZDe),wo.Cd=function(oo){FFt(this.a,bo(oo,337))},Vo(f1,"SelfLoopPortRestorer/lambda$4$Type",1662),zo(805,1,_1,nO),wo.Cd=function(oo){QFt(bo(oo,105))},Vo(f1,"SelfLoopPortRestorer/lambda$5$Type",805),zo(1663,1,hp,Hy),wo.Kf=function(oo,co){AMt(bo(oo,36),co)},Vo(f1,"SelfLoopPostProcessor",1663),zo(1664,1,{},Vne),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"SelfLoopPostProcessor/lambda$0$Type",1664),zo(1665,1,f0,gW),wo.Mb=function(oo){return bo(oo,10).k==(a1(),Vp)},Vo(f1,"SelfLoopPostProcessor/lambda$1$Type",1665),zo(1666,1,f0,_M),wo.Mb=function(oo){return gp(bo(oo,10),(Wl(),F6))},Vo(f1,"SelfLoopPostProcessor/lambda$2$Type",1666),zo(1667,1,_1,Gne),wo.Cd=function(oo){jLt(bo(oo,10))},Vo(f1,"SelfLoopPostProcessor/lambda$3$Type",1667),zo(1668,1,{},Wne),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,105).f,1))},Vo(f1,"SelfLoopPostProcessor/lambda$4$Type",1668),zo(1669,1,_1,QDe),wo.Cd=function(oo){d9t(this.a,bo(oo,340))},Vo(f1,"SelfLoopPostProcessor/lambda$5$Type",1669),zo(1670,1,f0,Une),wo.Mb=function(oo){return!!bo(oo,105).i},Vo(f1,"SelfLoopPostProcessor/lambda$6$Type",1670),zo(1671,1,_1,JDe),wo.Cd=function(oo){f_t(this.a,bo(oo,105))},Vo(f1,"SelfLoopPostProcessor/lambda$7$Type",1671),zo(1653,1,hp,EM),wo.Kf=function(oo,co){Ozt(bo(oo,36),co)},Vo(f1,"SelfLoopPreProcessor",1653),zo(1654,1,{},o$),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,105).f,1))},Vo(f1,"SelfLoopPreProcessor/lambda$0$Type",1654),zo(1655,1,{},kM),wo.Kb=function(oo){return bo(oo,340).a},Vo(f1,"SelfLoopPreProcessor/lambda$1$Type",1655),zo(1656,1,_1,mW),wo.Cd=function(oo){pkt(bo(oo,18))},Vo(f1,"SelfLoopPreProcessor/lambda$2$Type",1656),zo(1672,1,hp,LVe),wo.Kf=function(oo,co){yFt(this,bo(oo,36),co)},Vo(f1,"SelfLoopRouter",1672),zo(1673,1,{},TM),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"SelfLoopRouter/lambda$0$Type",1673),zo(1674,1,f0,vW),wo.Mb=function(oo){return bo(oo,10).k==(a1(),Vp)},Vo(f1,"SelfLoopRouter/lambda$1$Type",1674),zo(1675,1,f0,bW),wo.Mb=function(oo){return gp(bo(oo,10),(Wl(),F6))},Vo(f1,"SelfLoopRouter/lambda$2$Type",1675),zo(1676,1,{},CM),wo.Kb=function(oo){return bo(bs(bo(oo,10),(Wl(),F6)),337)},Vo(f1,"SelfLoopRouter/lambda$3$Type",1676),zo(1677,1,_1,wze),wo.Cd=function(oo){E6t(this.a,this.b,bo(oo,337))},Vo(f1,"SelfLoopRouter/lambda$4$Type",1677),zo(1678,1,hp,yW),wo.Kf=function(oo,co){YHt(bo(oo,36),co)},Vo(f1,"SemiInteractiveCrossMinProcessor",1678),zo(1679,1,f0,rO),wo.Mb=function(oo){return bo(oo,10).k==(a1(),Vp)},Vo(f1,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),zo(1680,1,f0,WA),wo.Mb=function(oo){return JGe(bo(oo,10))._b((ou(),kA))},Vo(f1,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),zo(1681,1,g0,$M),wo.Ne=function(oo,co){return dRt(bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),zo(1682,1,{},Kne),wo.Ve=function(oo,co){return O6t(bo(oo,10),bo(co,10))},Vo(f1,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),zo(1684,1,hp,Yne),wo.Kf=function(oo,co){yWt(bo(oo,36),co)},Vo(f1,"SortByInputModelProcessor",1684),zo(1685,1,f0,Xne),wo.Mb=function(oo){return bo(oo,12).g.c.length!=0},Vo(f1,"SortByInputModelProcessor/lambda$0$Type",1685),zo(1686,1,_1,rLe),wo.Cd=function(oo){nPt(this.a,bo(oo,12))},Vo(f1,"SortByInputModelProcessor/lambda$1$Type",1686),zo(1759,817,{},cJe),wo.df=function(oo){var co,fo,po,vo;switch(this.c=oo,this.a.g){case 2:co=new Zl,zp(X0(new Ou(null,new Du(this.c.a.b,16)),new OP),new Aze(this,co)),Mq(this,new RM),g2(co,new RP),co.c.length=0,zp(X0(new Ou(null,new Du(this.c.a.b,16)),new Qne),new oLe(co)),Mq(this,new wW),g2(co,new Zne),co.c.length=0,fo=uqe(dfe(C$(new Ou(null,new Du(this.c.a.b,16)),new sLe(this))),new Jne),zp(new Ou(null,new Du(this.c.a.a,16)),new _ze(fo,co)),Mq(this,new o_),g2(co,new ere),co.c.length=0;break;case 3:po=new Zl,Mq(this,new AM),vo=uqe(dfe(C$(new Ou(null,new Du(this.c.a.b,16)),new iLe(this))),new Mx),zp(X0(new Ou(null,new Du(this.c.a.b,16)),new tre),new kze(vo,po)),Mq(this,new xW),g2(po,new nre),po.c.length=0;break;default:throw Cs(new $Fe)}},wo.b=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation",1759),zo(1760,1,rE,AM),wo.Lb=function(oo){return Hs(bo(oo,60).g,154)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return Hs(bo(oo,60).g,154)},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),zo(1761,1,{},iLe),wo.Ye=function(oo){return PPt(this.a,bo(oo,60))},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),zo(1769,1,MZ,xze),wo.de=function(){YL(this.a,this.b,-1)},wo.b=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),zo(1771,1,rE,RM),wo.Lb=function(oo){return Hs(bo(oo,60).g,154)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return Hs(bo(oo,60).g,154)},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),zo(1772,1,_1,RP),wo.Cd=function(oo){bo(oo,380).de()},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),zo(1773,1,f0,Qne),wo.Mb=function(oo){return Hs(bo(oo,60).g,10)},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),zo(1775,1,_1,oLe),wo.Cd=function(oo){oNt(this.a,bo(oo,60))},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),zo(1774,1,MZ,Tze),wo.de=function(){YL(this.b,this.a,-1)},wo.a=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),zo(1776,1,rE,wW),wo.Lb=function(oo){return Hs(bo(oo,60).g,10)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return Hs(bo(oo,60).g,10)},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),zo(1777,1,_1,Zne),wo.Cd=function(oo){bo(oo,380).de()},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),zo(1778,1,{},sLe),wo.Ye=function(oo){return jPt(this.a,bo(oo,60))},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),zo(1779,1,{},Jne),wo.We=function(){return 0},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),zo(1762,1,{},Mx),wo.We=function(){return 0},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),zo(1781,1,_1,_ze),wo.Cd=function(oo){cCt(this.a,this.b,bo(oo,316))},wo.a=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),zo(1780,1,MZ,Eze),wo.de=function(){Not(this.a,this.b,-1)},wo.b=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),zo(1782,1,rE,o_),wo.Lb=function(oo){return bo(oo,60),!0},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return bo(oo,60),!0},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),zo(1783,1,_1,ere),wo.Cd=function(oo){bo(oo,380).de()},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),zo(1763,1,f0,tre),wo.Mb=function(oo){return Hs(bo(oo,60).g,10)},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),zo(1765,1,_1,kze),wo.Cd=function(oo){uCt(this.a,this.b,bo(oo,60))},wo.a=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),zo(1764,1,MZ,Cze),wo.de=function(){YL(this.b,this.a,-1)},wo.a=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),zo(1766,1,rE,xW),wo.Lb=function(oo){return bo(oo,60),!0},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return bo(oo,60),!0},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),zo(1767,1,_1,nre),wo.Cd=function(oo){bo(oo,380).de()},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),zo(1768,1,f0,OP),wo.Mb=function(oo){return Hs(bo(oo,60).g,154)},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),zo(1770,1,_1,Aze),wo.Cd=function(oo){A8t(this.a,this.b,bo(oo,60))},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),zo(1586,1,hp,Kqe),wo.Kf=function(oo,co){WWt(this,bo(oo,36),co)};var Zpt;Vo(cm,"HorizontalGraphCompactor",1586),zo(1587,1,{},aLe),wo.ff=function(oo,co){var fo,po,vo;return $_e(oo,co)||(fo=x9(oo),po=x9(co),fo&&fo.k==(a1(),Kp)||po&&po.k==(a1(),Kp))?0:(vo=bo(bs(this.a.a,(Wl(),g7)),312),Xkt(vo,fo?fo.k:(a1(),km),po?po.k:(a1(),km)))},wo.gf=function(oo,co){var fo,po,vo;return $_e(oo,co)?1:(fo=x9(oo),po=x9(co),vo=bo(bs(this.a.a,(Wl(),g7)),312),bwe(vo,fo?fo.k:(a1(),km),po?po.k:(a1(),km)))},Vo(cm,"HorizontalGraphCompactor/1",1587),zo(1588,1,{},iO),wo.ef=function(oo,co){return TD(),oo.a.i==0},Vo(cm,"HorizontalGraphCompactor/lambda$0$Type",1588),zo(1589,1,{},lLe),wo.ef=function(oo,co){return M6t(this.a,oo,co)},Vo(cm,"HorizontalGraphCompactor/lambda$1$Type",1589),zo(1730,1,{},FQe);var Jpt,egt;Vo(cm,"LGraphToCGraphTransformer",1730),zo(1738,1,f0,IP),wo.Mb=function(oo){return oo!=null},Vo(cm,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),zo(1731,1,{},Q7),wo.Kb=function(oo){return uS(),ry(bs(bo(bo(oo,60).g,10),(Wl(),Z0)))},Vo(cm,"LGraphToCGraphTransformer/lambda$0$Type",1731),zo(1732,1,{},oO),wo.Kb=function(oo){return uS(),Jet(bo(bo(oo,60).g,154))},Vo(cm,"LGraphToCGraphTransformer/lambda$1$Type",1732),zo(1741,1,f0,sO),wo.Mb=function(oo){return uS(),Hs(bo(oo,60).g,10)},Vo(cm,"LGraphToCGraphTransformer/lambda$10$Type",1741),zo(1742,1,_1,OM),wo.Cd=function(oo){P6t(bo(oo,60))},Vo(cm,"LGraphToCGraphTransformer/lambda$11$Type",1742),zo(1743,1,f0,Z7),wo.Mb=function(oo){return uS(),Hs(bo(oo,60).g,154)},Vo(cm,"LGraphToCGraphTransformer/lambda$12$Type",1743),zo(1747,1,_1,rre),wo.Cd=function(oo){vIt(bo(oo,60))},Vo(cm,"LGraphToCGraphTransformer/lambda$13$Type",1747),zo(1744,1,_1,cLe),wo.Cd=function(oo){qEt(this.a,bo(oo,8))},wo.a=0,Vo(cm,"LGraphToCGraphTransformer/lambda$14$Type",1744),zo(1745,1,_1,uLe),wo.Cd=function(oo){GEt(this.a,bo(oo,116))},wo.a=0,Vo(cm,"LGraphToCGraphTransformer/lambda$15$Type",1745),zo(1746,1,_1,fLe),wo.Cd=function(oo){VEt(this.a,bo(oo,8))},wo.a=0,Vo(cm,"LGraphToCGraphTransformer/lambda$16$Type",1746),zo(1748,1,{},ire),wo.Kb=function(oo){return uS(),new Ou(null,new GC(new x1(E1(Wp(bo(oo,10)).a.Kc(),new ko))))},Vo(cm,"LGraphToCGraphTransformer/lambda$17$Type",1748),zo(1749,1,f0,ore),wo.Mb=function(oo){return uS(),dv(bo(oo,18))},Vo(cm,"LGraphToCGraphTransformer/lambda$18$Type",1749),zo(1750,1,_1,dLe),wo.Cd=function(oo){a8t(this.a,bo(oo,18))},Vo(cm,"LGraphToCGraphTransformer/lambda$19$Type",1750),zo(1734,1,_1,hLe),wo.Cd=function(oo){MAt(this.a,bo(oo,154))},Vo(cm,"LGraphToCGraphTransformer/lambda$2$Type",1734),zo(1751,1,{},sre),wo.Kb=function(oo){return uS(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(cm,"LGraphToCGraphTransformer/lambda$20$Type",1751),zo(1752,1,{},are),wo.Kb=function(oo){return uS(),new Ou(null,new GC(new x1(E1(Wp(bo(oo,10)).a.Kc(),new ko))))},Vo(cm,"LGraphToCGraphTransformer/lambda$21$Type",1752),zo(1753,1,{},IM),wo.Kb=function(oo){return uS(),bo(bs(bo(oo,18),(Wl(),WT)),15)},Vo(cm,"LGraphToCGraphTransformer/lambda$22$Type",1753),zo(1754,1,f0,aO),wo.Mb=function(oo){return Qkt(bo(oo,15))},Vo(cm,"LGraphToCGraphTransformer/lambda$23$Type",1754),zo(1755,1,_1,pLe),wo.Cd=function(oo){$Pt(this.a,bo(oo,15))},Vo(cm,"LGraphToCGraphTransformer/lambda$24$Type",1755),zo(1733,1,_1,Rze),wo.Cd=function(oo){O9t(this.a,this.b,bo(oo,154))},Vo(cm,"LGraphToCGraphTransformer/lambda$3$Type",1733),zo(1735,1,{},SW),wo.Kb=function(oo){return uS(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(cm,"LGraphToCGraphTransformer/lambda$4$Type",1735),zo(1736,1,{},Il),wo.Kb=function(oo){return uS(),new Ou(null,new GC(new x1(E1(Wp(bo(oo,10)).a.Kc(),new ko))))},Vo(cm,"LGraphToCGraphTransformer/lambda$5$Type",1736),zo(1737,1,{},J7),wo.Kb=function(oo){return uS(),bo(bs(bo(oo,18),(Wl(),WT)),15)},Vo(cm,"LGraphToCGraphTransformer/lambda$6$Type",1737),zo(1739,1,_1,gLe),wo.Cd=function(oo){zPt(this.a,bo(oo,15))},Vo(cm,"LGraphToCGraphTransformer/lambda$8$Type",1739),zo(1740,1,_1,Oze),wo.Cd=function(oo){gkt(this.a,this.b,bo(oo,154))},Vo(cm,"LGraphToCGraphTransformer/lambda$9$Type",1740),zo(1729,1,{},NM),wo.cf=function(oo){var co,fo,po,vo,xo;for(this.a=oo,this.d=new zae,this.c=Al($Ae,Xu,125,this.a.a.a.c.length,0,1),this.b=0,fo=new _s(this.a.a.a);fo.a=0?"b"+oo+"["+$ue(this.a)+"]":"b["+$ue(this.a)+"]"):"b_"+PC(this)},Vo(dV,"FBendpoint",250),zo(290,137,{3:1,290:1,96:1,137:1},OVe),wo.Ib=function(){return $ue(this)},Vo(dV,"FEdge",290),zo(235,137,{3:1,235:1,96:1,137:1},RX);var RXt=Vo(dV,"FGraph",235);zo(454,309,{3:1,454:1,309:1,96:1,137:1},NYe),wo.Ib=function(){return this.b==null||this.b.length==0?"l["+$ue(this.a)+"]":"l_"+this.b},Vo(dV,"FLabel",454),zo(153,309,{3:1,153:1,309:1,96:1,137:1},fqe),wo.Ib=function(){return DSe(this)},wo.a=0,Vo(dV,"FNode",153),zo(2100,1,{}),wo.vf=function(oo){s3e(this,oo)},wo.wf=function(){jnt(this)},wo.d=0,Vo(vTe,"AbstractForceModel",2100),zo(641,2100,{641:1},OJe),wo.uf=function(oo,co){var fo,po,vo,xo,Eo;return mlt(this.f,oo,co),vo=mm(Pm(co.d),oo.d),Eo=lo.Math.sqrt(vo.a*vo.a+vo.b*vo.b),po=lo.Math.max(0,Eo-dL(oo.e)/2-dL(co.e)/2),fo=Xit(this.e,oo,co),fo>0?xo=-ACt(po,this.c)*fo:xo=i5t(po,this.b)*bo(bs(oo,(vS(),_R)),17).a,G_(vo,xo/Eo),vo},wo.vf=function(oo){s3e(this,oo),this.a=bo(bs(oo,(vS(),iee)),17).a,this.c=na(Tl(bs(oo,oee))),this.b=na(Tl(bs(oo,tge)))},wo.xf=function(oo){return oo0&&(xo-=h_t(po,this.a)*fo),G_(vo,xo*this.b/Eo),vo},wo.vf=function(oo){var co,fo,po,vo,xo,Eo,To;for(s3e(this,oo),this.b=na(Tl(bs(oo,(vS(),nge)))),this.c=this.b/bo(bs(oo,iee),17).a,po=oo.e.c.length,xo=0,vo=0,To=new _s(oo.e);To.a0},wo.a=0,wo.b=0,wo.c=0,Vo(vTe,"FruchtermanReingoldModel",642),zo(860,1,Vx,zU),wo.hf=function(oo){_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,qZ),""),"Force Model"),"Determines the model for force calculation."),FAe),(_4(),Cp)),PAe),Tu((YS(),Ku))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,bTe),""),"Iterations"),"The number of iterations on the force model."),Ql(300)),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,yTe),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Ql(0)),sy),Vm),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,M1e),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),oE),Qm),nm),Tu(Ku)))),Jp(oo,M1e,qZ,G0t),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,D1e),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Qm),nm),Tu(Ku)))),Jp(oo,D1e,qZ,H0t),ict((new yO,oo))};var P0t,j0t,FAe,z0t,H0t,q0t,V0t,G0t;Vo(_B,"ForceMetaDataProvider",860),zo(432,22,{3:1,34:1,22:1,432:1},m2e);var ege,ree,PAe=V1(_B,"ForceModelStrategy",432,X1,X6t,E4t),W0t;zo(k4,1,Vx,yO),wo.hf=function(oo){ict(oo)};var U0t,K0t,jAe,iee,zAe,Y0t,X0t,Q0t,Z0t,HAe,J0t,qAe,VAe,ept,_R,tpt,tge,GAe,npt,rpt,oee,nge,ipt,opt,spt,WAe,apt;Vo(_B,"ForceOptions",k4),zo(1001,1,{},Tw),wo.sf=function(){var oo;return oo=new mye,oo},wo.tf=function(oo){},Vo(_B,"ForceOptions/ForceFactory",1001);var VV,eF,ER,see;zo(861,1,Vx,mz),wo.hf=function(oo){_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,xTe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(_f(),!1)),(_4(),ym)),qp),Tu((YS(),pm))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,STe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Qm),nm),mp(Ku,As($s(WE,1),Pl,170,0,[gE]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,_Te),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),UAe),Cp),e9e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ETe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),oE),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,kTe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Ql(q0)),sy),Vm),Tu(Ku)))),Ilt((new Mse,oo))};var lpt,cpt,UAe,upt,fpt,dpt;Vo(_B,"StressMetaDataProvider",861),zo(1004,1,Vx,Mse),wo.hf=function(oo){Ilt(oo)};var aee,KAe,YAe,XAe,QAe,ZAe,hpt,ppt,gpt,mpt,JAe,vpt;Vo(_B,"StressOptions",1004),zo(1005,1,{},B2),wo.sf=function(){var oo;return oo=new IVe,oo},wo.tf=function(oo){},Vo(_B,"StressOptions/StressFactory",1005),zo(1110,205,DT,IVe),wo.rf=function(oo,co){var fo,po,vo,xo,Eo;for(co.Ug(Aut,1),lu(au(zl(oo,(kq(),QAe))))?lu(au(zl(oo,JAe)))||CH((fo=new dD((NC(),new kC(oo))),fo)):Yot(new mye,oo,co.eh(1)),vo=tet(oo),po=zat(this.a,vo),Eo=po.Kc();Eo.Ob();)xo=bo(Eo.Pb(),235),!(xo.e.c.length<=1)&&(LWt(this.b,xo),lzt(this.b),g2(xo.d,new DS));vo=tct(po),fct(vo),co.Vg()},Vo(WZ,"StressLayoutProvider",1110),zo(1111,1,_1,DS),wo.Cd=function(oo){p3e(bo(oo,454))},Vo(WZ,"StressLayoutProvider/lambda$0$Type",1111),zo(1002,1,{},RFe),wo.c=0,wo.e=0,wo.g=0,Vo(WZ,"StressMajorization",1002),zo(391,22,{3:1,34:1,22:1,391:1},yle);var rge,ige,oge,e9e=V1(WZ,"StressMajorization/Dimension",391,X1,U$t,k4t),bpt;zo(1003,1,g0,RDe),wo.Ne=function(oo,co){return J5t(this.a,bo(oo,153),bo(co,153))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(WZ,"StressMajorization/lambda$0$Type",1003),zo(1192,1,{},FKe),Vo(vR,"ElkLayered",1192),zo(1193,1,_1,ODe),wo.Cd=function(oo){BPt(this.a,bo(oo,36))},Vo(vR,"ElkLayered/lambda$0$Type",1193),zo(1194,1,_1,IDe),wo.Cd=function(oo){e4t(this.a,bo(oo,36))},Vo(vR,"ElkLayered/lambda$1$Type",1194),zo(1281,1,{},xqe);var ypt,wpt,xpt;Vo(vR,"GraphConfigurator",1281),zo(770,1,_1,eye),wo.Cd=function(oo){Jrt(this.a,bo(oo,10))},Vo(vR,"GraphConfigurator/lambda$0$Type",770),zo(771,1,{},W4),wo.Kb=function(oo){return r5e(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(vR,"GraphConfigurator/lambda$1$Type",771),zo(772,1,_1,tye),wo.Cd=function(oo){Jrt(this.a,bo(oo,10))},Vo(vR,"GraphConfigurator/lambda$2$Type",772),zo(1109,205,DT,LFe),wo.rf=function(oo,co){var fo;fo=vWt(new FFe,oo),$a(zl(oo,(ou(),xA)))===$a((x5(),B4))?YIt(this.a,fo,co):izt(this.a,fo,co),co.$g()||Klt(new HU,fo)},Vo(vR,"LayeredLayoutProvider",1109),zo(367,22,{3:1,34:1,22:1,367:1},zz);var xS,qE,zy,Qy,Jv,t9e=V1(vR,"LayeredPhases",367,X1,Q9t,T4t),Spt;zo(1717,1,{},YZe),wo.i=0;var _pt;Vo(bV,"ComponentsToCGraphTransformer",1717);var Ept;zo(1718,1,{},_k),wo.yf=function(oo,co){return lo.Math.min(oo.a!=null?na(oo.a):oo.c.i,co.a!=null?na(co.a):co.c.i)},wo.zf=function(oo,co){return lo.Math.min(oo.a!=null?na(oo.a):oo.c.i,co.a!=null?na(co.a):co.c.i)},Vo(bV,"ComponentsToCGraphTransformer/1",1718),zo(86,1,{86:1}),wo.i=0,wo.k=!0,wo.o=am;var sge=Vo(CB,"CNode",86);zo(470,86,{470:1,86:1},wwe,Oke),wo.Ib=function(){return""},Vo(bV,"ComponentsToCGraphTransformer/CRectNode",470),zo(1688,1,{},yE);var age,lge;Vo(bV,"OneDimensionalComponentsCompaction",1688),zo(1689,1,{},LS),wo.Kb=function(oo){return F$t(bo(oo,42))},wo.Fb=function(oo){return this===oo},Vo(bV,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),zo(1690,1,{},U4),wo.Kb=function(oo){return QIt(bo(oo,42))},wo.Fb=function(oo){return this===oo},Vo(bV,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),zo(1720,1,{},GWe),Vo(CB,"CGraph",1720),zo(194,1,{194:1},ede),wo.b=0,wo.c=0,wo.e=0,wo.g=!0,wo.i=am,Vo(CB,"CGroup",194),zo(1719,1,{},D_),wo.yf=function(oo,co){return lo.Math.max(oo.a!=null?na(oo.a):oo.c.i,co.a!=null?na(co.a):co.c.i)},wo.zf=function(oo,co){return lo.Math.max(oo.a!=null?na(oo.a):oo.c.i,co.a!=null?na(co.a):co.c.i)},Vo(CB,nut,1719),zo(1721,1,{},Zit),wo.d=!1;var kpt,cge=Vo(CB,out,1721);zo(1722,1,{},K4),wo.Kb=function(oo){return r2e(),_f(),bo(bo(oo,42).a,86).d.e!=0},wo.Fb=function(oo){return this===oo},Vo(CB,sut,1722),zo(833,1,{},Oxe),wo.a=!1,wo.b=!1,wo.c=!1,wo.d=!1,Vo(CB,aut,833),zo(1898,1,{},aWe),Vo(UZ,lut,1898);var GV=Ip(BT,eut);zo(1899,1,{382:1},zUe),wo.bf=function(oo){dqt(this,bo(oo,476))},Vo(UZ,cut,1899),zo($3,1,g0,cC),wo.Ne=function(oo,co){return w6t(bo(oo,86),bo(co,86))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(UZ,uut,$3),zo(476,1,{476:1},b2e),wo.a=!1,Vo(UZ,fut,476),zo(1901,1,g0,uC),wo.Ne=function(oo,co){return SLt(bo(oo,476),bo(co,476))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(UZ,dut,1901),zo(148,1,{148:1},LO,pxe),wo.Fb=function(oo){var co;return oo==null||OXt!=Nw(oo)?!1:(co=bo(oo,148),ky(this.c,co.c)&&ky(this.d,co.d))},wo.Hb=function(){return fq(As($s(bm,1),Xu,1,5,[this.c,this.d]))},wo.Ib=function(){return"("+this.c+av+this.d+(this.a?"cx":"")+this.b+")"},wo.a=!0,wo.c=0,wo.d=0;var OXt=Vo(BT,"Point",148);zo(416,22,{3:1,34:1,22:1,416:1},YK);var I6,dA,o7,hA,Tpt=V1(BT,"Point/Quadrant",416,X1,s9t,C4t),Cpt;zo(1708,1,{},MFe),wo.b=null,wo.c=null,wo.d=null,wo.e=null,wo.f=null;var $pt,Apt,Rpt,Opt,Ipt;Vo(BT,"RectilinearConvexHull",1708),zo(583,1,{382:1},PQ),wo.bf=function(oo){X7t(this,bo(oo,148))},wo.b=0;var n9e;Vo(BT,"RectilinearConvexHull/MaximalElementsEventHandler",583),zo(1710,1,g0,BS),wo.Ne=function(oo,co){return x6t(Tl(oo),Tl(co))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(BT,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),zo(1709,1,{382:1},fZe),wo.bf=function(oo){CHt(this,bo(oo,148))},wo.a=0,wo.b=null,wo.c=null,wo.d=null,wo.e=null,Vo(BT,"RectilinearConvexHull/RectangleEventHandler",1709),zo(1711,1,g0,q7),wo.Ne=function(oo,co){return RAt(bo(oo,148),bo(co,148))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(BT,"RectilinearConvexHull/lambda$0$Type",1711),zo(1712,1,g0,dP),wo.Ne=function(oo,co){return OAt(bo(oo,148),bo(co,148))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(BT,"RectilinearConvexHull/lambda$1$Type",1712),zo(1713,1,g0,vM),wo.Ne=function(oo,co){return AAt(bo(oo,148),bo(co,148))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(BT,"RectilinearConvexHull/lambda$2$Type",1713),zo(1714,1,g0,t$),wo.Ne=function(oo,co){return IAt(bo(oo,148),bo(co,148))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(BT,"RectilinearConvexHull/lambda$3$Type",1714),zo(1715,1,g0,hP),wo.Ne=function(oo,co){return cFt(bo(oo,148),bo(co,148))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(BT,"RectilinearConvexHull/lambda$4$Type",1715),zo(1716,1,{},mKe),Vo(BT,"Scanline",1716),zo(2104,1,{}),Vo(S_,"AbstractGraphPlacer",2104),zo(335,1,{335:1},rVe),wo.Ff=function(oo){return this.Gf(oo)?(Mu(this.b,bo(bs(oo,(Wl(),N5)),21),oo),!0):!1},wo.Gf=function(oo){var co,fo,po,vo;for(co=bo(bs(oo,(Wl(),N5)),21),vo=bo(Q0(lp,co),21),po=vo.Kc();po.Ob();)if(fo=bo(po.Pb(),21),!bo(Q0(this.b,fo),15).dc())return!1;return!0};var lp;Vo(S_,"ComponentGroup",335),zo(779,2104,{},yye),wo.Hf=function(oo){var co,fo;for(fo=new _s(this.a);fo.afo&&(Po=0,Wo+=To+po,To=0),Ao=xo.c,ZI(xo,Po+Ao.a,Wo+Ao.b),zS(Ao),vo=lo.Math.max(vo,Po+Io.a),To=lo.Math.max(To,Io.b),Po+=Io.a+po;co.f.a=vo,co.f.b=Wo+To},wo.Jf=function(oo,co){var fo,po,vo,xo,Eo;if($a(bs(co,(ou(),wA)))===$a((CT(),pA))){for(po=oo.Kc();po.Ob();){for(fo=bo(po.Pb(),36),Eo=0,xo=new _s(fo.a);xo.afo&&!bo(bs(xo,(Wl(),N5)),21).Hc((nu(),s1))||Ao&&bo(bs(Ao,(Wl(),N5)),21).Hc((nu(),p1))||bo(bs(xo,(Wl(),N5)),21).Hc((nu(),l1)))&&(Xo=Wo,Zo+=To+po,To=0),Io=xo.c,bo(bs(xo,(Wl(),N5)),21).Hc((nu(),s1))&&(Xo=vo+po),ZI(xo,Xo+Io.a,Zo+Io.b),vo=lo.Math.max(vo,Xo+Po.a),bo(bs(xo,N5),21).Hc(z1)&&(Wo=lo.Math.max(Wo,Xo+Po.a+po)),zS(Io),To=lo.Math.max(To,Po.b),Xo+=Po.a+po,Ao=xo;co.f.a=vo,co.f.b=Zo+To},wo.Jf=function(oo,co){},Vo(S_,"ModelOrderRowGraphPlacer",1313),zo(1311,1,g0,gP),wo.Ne=function(oo,co){return YRt(bo(oo,36),bo(co,36))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(S_,"SimpleRowGraphPlacer/1",1311);var Mpt;zo(1280,1,rE,VA),wo.Lb=function(oo){var co;return co=bo(bs(bo(oo,249).b,(ou(),Hv)),75),!!co&&co.b!=0},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){var co;return co=bo(bs(bo(oo,249).b,(ou(),Hv)),75),!!co&&co.b!=0},Vo(KZ,"CompoundGraphPostprocessor/1",1280),zo(1279,1,hp,PFe),wo.Kf=function(oo,co){wnt(this,bo(oo,36),co)},Vo(KZ,"CompoundGraphPreprocessor",1279),zo(453,1,{453:1},ltt),wo.c=!1,Vo(KZ,"CompoundGraphPreprocessor/ExternalPort",453),zo(249,1,{249:1},RY),wo.Ib=function(){return lce(this.c)+":"+Wit(this.b)},Vo(KZ,"CrossHierarchyEdge",249),zo(777,1,g0,nye),wo.Ne=function(oo,co){return XDt(this,bo(oo,249),bo(co,249))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(KZ,"CrossHierarchyEdgeComparator",777),zo(305,137,{3:1,305:1,96:1,137:1}),wo.p=0,Vo(Yy,"LGraphElement",305),zo(18,305,{3:1,18:1,305:1,96:1,137:1},QC),wo.Ib=function(){return Wit(this)};var dge=Vo(Yy,"LEdge",18);zo(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},U_e),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){return new _s(this.b)},wo.Ib=function(){return this.b.c.length==0?"G-unlayered"+_3(this.a):this.a.c.length==0?"G-layered"+_3(this.b):"G[layerless"+_3(this.a)+", layers"+_3(this.b)+"]"};var Dpt=Vo(Yy,"LGraph",36),Lpt;zo(666,1,{}),wo.Lf=function(){return this.e.n},wo.of=function(oo){return bs(this.e,oo)},wo.Mf=function(){return this.e.o},wo.Nf=function(){return this.e.p},wo.pf=function(oo){return gp(this.e,oo)},wo.Of=function(oo){this.e.n.a=oo.a,this.e.n.b=oo.b},wo.Pf=function(oo){this.e.o.a=oo.a,this.e.o.b=oo.b},wo.Qf=function(oo){this.e.p=oo},Vo(Yy,"LGraphAdapters/AbstractLShapeAdapter",666),zo(474,1,{853:1},hD),wo.Rf=function(){var oo,co;if(!this.b)for(this.b=kE(this.a.b.c.length),co=new _s(this.a.b);co.a0&&Pet((o1(co-1,oo.length),oo.charCodeAt(co-1)),Dut);)--co;if(xo> ",oo),YQ(fo)),S0(qy((oo.a+="[",oo),fo.i),"]")),oo.a},wo.c=!0,wo.d=!1;var a9e,l9e,c9e,u9e,f9e,d9e,Fpt=Vo(Yy,"LPort",12);zo(408,1,LE,EO),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){var oo;return oo=new _s(this.a.e),new NDe(oo)},Vo(Yy,"LPort/1",408),zo(1309,1,$m,NDe),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){return bo(Es(this.a),18).c},wo.Ob=function(){return cy(this.a)},wo.Qb=function(){cL(this.a)},Vo(Yy,"LPort/1/1",1309),zo(369,1,LE,s8),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){var oo;return oo=new _s(this.a.g),new rye(oo)},Vo(Yy,"LPort/2",369),zo(776,1,$m,rye),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){return bo(Es(this.a),18).d},wo.Ob=function(){return cy(this.a)},wo.Qb=function(){cL(this.a)},Vo(Yy,"LPort/2/1",776),zo(1302,1,LE,Sze),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){return new d_(this)},Vo(Yy,"LPort/CombineIter",1302),zo(208,1,$m,d_),wo.Nb=function(oo){jm(this,oo)},wo.Qb=function(){eje()},wo.Ob=function(){return ZD(this)},wo.Pb=function(){return cy(this.a)?Es(this.a):Es(this.b)},Vo(Yy,"LPort/CombineIter/1",208),zo(1303,1,rE,A0),wo.Lb=function(oo){return xWe(oo)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return G2(),bo(oo,12).g.c.length!=0},Vo(Yy,"LPort/lambda$0$Type",1303),zo(1304,1,rE,Y0),wo.Lb=function(oo){return SWe(oo)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return G2(),bo(oo,12).e.c.length!=0},Vo(Yy,"LPort/lambda$1$Type",1304),zo(1305,1,rE,Rm),wo.Lb=function(oo){return G2(),bo(oo,12).j==(nu(),s1)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return G2(),bo(oo,12).j==(nu(),s1)},Vo(Yy,"LPort/lambda$2$Type",1305),zo(1306,1,rE,wm),wo.Lb=function(oo){return G2(),bo(oo,12).j==(nu(),p1)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return G2(),bo(oo,12).j==(nu(),p1)},Vo(Yy,"LPort/lambda$3$Type",1306),zo(1307,1,rE,jp),wo.Lb=function(oo){return G2(),bo(oo,12).j==(nu(),z1)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return G2(),bo(oo,12).j==(nu(),z1)},Vo(Yy,"LPort/lambda$4$Type",1307),zo(1308,1,rE,im),wo.Lb=function(oo){return G2(),bo(oo,12).j==(nu(),l1)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return G2(),bo(oo,12).j==(nu(),l1)},Vo(Yy,"LPort/lambda$5$Type",1308),zo(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},Vy),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){return new _s(this.a)},wo.Ib=function(){return"L_"+Xv(this.b.b,this,0)+_3(this.a)},Vo(Yy,"Layer",30),zo(1330,1,{},FFe),Vo(C4,Put,1330),zo(1334,1,{},i2),wo.Kb=function(oo){return Zv(bo(oo,84))},Vo(C4,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),zo(1337,1,{},f2),wo.Kb=function(oo){return Zv(bo(oo,84))},Vo(C4,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),zo(1331,1,_1,MDe),wo.Cd=function(oo){uot(this.a,bo(oo,123))},Vo(C4,mTe,1331),zo(1332,1,_1,DDe),wo.Cd=function(oo){uot(this.a,bo(oo,123))},Vo(C4,jut,1332),zo(1333,1,{},Ox),wo.Kb=function(oo){return new Ou(null,new Du(hSe(bo(oo,74)),16))},Vo(C4,zut,1333),zo(1335,1,f0,LDe),wo.Mb=function(oo){return ZEt(this.a,bo(oo,27))},Vo(C4,Hut,1335),zo(1336,1,{},P5),wo.Kb=function(oo){return new Ou(null,new Du(g6t(bo(oo,74)),16))},Vo(C4,"ElkGraphImporter/lambda$5$Type",1336),zo(1338,1,f0,BDe),wo.Mb=function(oo){return JEt(this.a,bo(oo,27))},Vo(C4,"ElkGraphImporter/lambda$7$Type",1338),zo(1339,1,f0,hC),wo.Mb=function(oo){return A6t(bo(oo,74))},Vo(C4,"ElkGraphImporter/lambda$8$Type",1339),zo(1297,1,{},HU);var Ppt;Vo(C4,"ElkGraphLayoutTransferrer",1297),zo(1298,1,f0,FDe),wo.Mb=function(oo){return z5t(this.a,bo(oo,18))},Vo(C4,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),zo(1299,1,_1,PDe),wo.Cd=function(oo){Pz(),Jl(this.a,bo(oo,18))},Vo(C4,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),zo(1300,1,f0,jDe),wo.Mb=function(oo){return T5t(this.a,bo(oo,18))},Vo(C4,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),zo(1301,1,_1,zDe),wo.Cd=function(oo){Pz(),Jl(this.a,bo(oo,18))},Vo(C4,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),zo(819,1,{},qwe),Vo(f1,"BiLinkedHashMultiMap",819),zo(1550,1,hp,vP),wo.Kf=function(oo,co){gRt(bo(oo,36),co)},Vo(f1,"CommentNodeMarginCalculator",1550),zo(1551,1,{},G7),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"CommentNodeMarginCalculator/lambda$0$Type",1551),zo(1552,1,_1,eO),wo.Cd=function(oo){gWt(bo(oo,10))},Vo(f1,"CommentNodeMarginCalculator/lambda$1$Type",1552),zo(1553,1,hp,Ix),wo.Kf=function(oo,co){yqt(bo(oo,36),co)},Vo(f1,"CommentPostprocessor",1553),zo(1554,1,hp,bP),wo.Kf=function(oo,co){zKt(bo(oo,36),co)},Vo(f1,"CommentPreprocessor",1554),zo(1555,1,hp,GA),wo.Kf=function(oo,co){LHt(bo(oo,36),co)},Vo(f1,"ConstraintsPostprocessor",1555),zo(1556,1,hp,ZG),wo.Kf=function(oo,co){qRt(bo(oo,36),co)},Vo(f1,"EdgeAndLayerConstraintEdgeReverser",1556),zo(1557,1,hp,yP),wo.Kf=function(oo,co){NNt(bo(oo,36),co)},Vo(f1,"EndLabelPostprocessor",1557),zo(1558,1,{},j5),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"EndLabelPostprocessor/lambda$0$Type",1558),zo(1559,1,f0,JG),wo.Mb=function(oo){return K9t(bo(oo,10))},Vo(f1,"EndLabelPostprocessor/lambda$1$Type",1559),zo(1560,1,_1,eW),wo.Cd=function(oo){_Lt(bo(oo,10))},Vo(f1,"EndLabelPostprocessor/lambda$2$Type",1560),zo(1561,1,hp,tW),wo.Kf=function(oo,co){fPt(bo(oo,36),co)},Vo(f1,"EndLabelPreprocessor",1561),zo(1562,1,{},nW),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"EndLabelPreprocessor/lambda$0$Type",1562),zo(1563,1,_1,cGe),wo.Cd=function(oo){fEt(this.a,this.b,this.c,bo(oo,10))},wo.a=0,wo.b=0,wo.c=!1,Vo(f1,"EndLabelPreprocessor/lambda$1$Type",1563),zo(1564,1,f0,rW),wo.Mb=function(oo){return $a(bs(bo(oo,72),(ou(),hE)))===$a((g_(),cM))},Vo(f1,"EndLabelPreprocessor/lambda$2$Type",1564),zo(1565,1,_1,HDe),wo.Cd=function(oo){y0(this.a,bo(oo,72))},Vo(f1,"EndLabelPreprocessor/lambda$3$Type",1565),zo(1566,1,f0,iW),wo.Mb=function(oo){return $a(bs(bo(oo,72),(ou(),hE)))===$a((g_(),NA))},Vo(f1,"EndLabelPreprocessor/lambda$4$Type",1566),zo(1567,1,_1,qDe),wo.Cd=function(oo){y0(this.a,bo(oo,72))},Vo(f1,"EndLabelPreprocessor/lambda$5$Type",1567),zo(1615,1,hp,Rse),wo.Kf=function(oo,co){IIt(bo(oo,36),co)};var jpt;Vo(f1,"EndLabelSorter",1615),zo(1616,1,g0,t5),wo.Ne=function(oo,co){return fMt(bo(oo,466),bo(co,466))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"EndLabelSorter/1",1616),zo(466,1,{466:1},DUe),Vo(f1,"EndLabelSorter/LabelGroup",466),zo(1617,1,{},bne),wo.Kb=function(oo){return Fz(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"EndLabelSorter/lambda$0$Type",1617),zo(1618,1,f0,z5),wo.Mb=function(oo){return Fz(),bo(oo,10).k==(a1(),Vp)},Vo(f1,"EndLabelSorter/lambda$1$Type",1618),zo(1619,1,_1,yne),wo.Cd=function(oo){kFt(bo(oo,10))},Vo(f1,"EndLabelSorter/lambda$2$Type",1619),zo(1620,1,f0,oW),wo.Mb=function(oo){return Fz(),$a(bs(bo(oo,72),(ou(),hE)))===$a((g_(),NA))},Vo(f1,"EndLabelSorter/lambda$3$Type",1620),zo(1621,1,f0,n$),wo.Mb=function(oo){return Fz(),$a(bs(bo(oo,72),(ou(),hE)))===$a((g_(),cM))},Vo(f1,"EndLabelSorter/lambda$4$Type",1621),zo(1568,1,hp,bM),wo.Kf=function(oo,co){AWt(this,bo(oo,36))},wo.b=0,wo.c=0,Vo(f1,"FinalSplineBendpointsCalculator",1568),zo(1569,1,{},wP),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),zo(1570,1,{},J2),wo.Kb=function(oo){return new Ou(null,new GC(new x1(E1(Wp(bo(oo,10)).a.Kc(),new ko))))},Vo(f1,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),zo(1571,1,f0,r$),wo.Mb=function(oo){return!dv(bo(oo,18))},Vo(f1,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),zo(1572,1,f0,xP),wo.Mb=function(oo){return gp(bo(oo,18),(Wl(),WT))},Vo(f1,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),zo(1573,1,_1,VDe),wo.Cd=function(oo){FVt(this.a,bo(oo,131))},Vo(f1,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),zo(1574,1,_1,wne),wo.Cd=function(oo){Nq(bo(oo,18).a)},Vo(f1,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),zo(803,1,hp,iye),wo.Kf=function(oo,co){_Ut(this,bo(oo,36),co)},Vo(f1,"GraphTransformer",803),zo(517,22,{3:1,34:1,22:1,517:1},v2e);var pge,WV,zpt=V1(f1,"GraphTransformer/Mode",517,X1,Q6t,I3t),Hpt;zo(1575,1,hp,SP),wo.Kf=function(oo,co){Gzt(bo(oo,36),co)},Vo(f1,"HierarchicalNodeResizingProcessor",1575),zo(1576,1,hp,xne),wo.Kf=function(oo,co){uRt(bo(oo,36),co)},Vo(f1,"HierarchicalPortConstraintProcessor",1576),zo(1577,1,g0,Sne),wo.Ne=function(oo,co){return IMt(bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"HierarchicalPortConstraintProcessor/NodeComparator",1577),zo(1578,1,hp,_ne),wo.Kf=function(oo,co){NGt(bo(oo,36),co)},Vo(f1,"HierarchicalPortDummySizeProcessor",1578),zo(1579,1,hp,sW),wo.Kf=function(oo,co){qqt(this,bo(oo,36),co)},wo.a=0,Vo(f1,"HierarchicalPortOrthogonalEdgeRouter",1579),zo(1580,1,g0,yM),wo.Ne=function(oo,co){return Vkt(bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"HierarchicalPortOrthogonalEdgeRouter/1",1580),zo(1581,1,g0,W7),wo.Ne=function(oo,co){return Q7t(bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"HierarchicalPortOrthogonalEdgeRouter/2",1581),zo(1582,1,hp,Ene),wo.Kf=function(oo,co){sFt(bo(oo,36),co)},Vo(f1,"HierarchicalPortPositionProcessor",1582),zo(1583,1,hp,oD),wo.Kf=function(oo,co){SYt(this,bo(oo,36))},wo.a=0,wo.c=0;var lee,cee;Vo(f1,"HighDegreeNodeLayeringProcessor",1583),zo(580,1,{580:1},aW),wo.b=-1,wo.d=-1,Vo(f1,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),zo(1584,1,{},lW),wo.Kb=function(oo){return hH(),Sm(bo(oo,10))},wo.Fb=function(oo){return this===oo},Vo(f1,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),zo(1585,1,{},_P),wo.Kb=function(oo){return hH(),Wp(bo(oo,10))},wo.Fb=function(oo){return this===oo},Vo(f1,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),zo(1591,1,hp,EP),wo.Kf=function(oo,co){kGt(this,bo(oo,36),co)},Vo(f1,"HyperedgeDummyMerger",1591),zo(804,1,{},ixe),wo.a=!1,wo.b=!1,wo.c=!1,Vo(f1,"HyperedgeDummyMerger/MergeState",804),zo(1592,1,{},cW),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"HyperedgeDummyMerger/lambda$0$Type",1592),zo(1593,1,{},kne),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,10).j,16))},Vo(f1,"HyperedgeDummyMerger/lambda$1$Type",1593),zo(1594,1,_1,kP),wo.Cd=function(oo){bo(oo,12).p=-1},Vo(f1,"HyperedgeDummyMerger/lambda$2$Type",1594),zo(1595,1,hp,TP),wo.Kf=function(oo,co){_Gt(bo(oo,36),co)},Vo(f1,"HypernodesProcessor",1595),zo(1596,1,hp,Tne),wo.Kf=function(oo,co){IGt(bo(oo,36),co)},Vo(f1,"InLayerConstraintProcessor",1596),zo(1597,1,hp,uW),wo.Kf=function(oo,co){kRt(bo(oo,36),co)},Vo(f1,"InnermostNodeMarginCalculator",1597),zo(1598,1,hp,n5),wo.Kf=function(oo,co){BKt(this,bo(oo,36))},wo.a=am,wo.b=am,wo.c=Tp,wo.d=Tp;var IXt=Vo(f1,"InteractiveExternalPortPositioner",1598);zo(1599,1,{},CP),wo.Kb=function(oo){return bo(oo,18).d.i},wo.Fb=function(oo){return this===oo},Vo(f1,"InteractiveExternalPortPositioner/lambda$0$Type",1599),zo(1600,1,{},GDe),wo.Kb=function(oo){return Gkt(this.a,Tl(oo))},wo.Fb=function(oo){return this===oo},Vo(f1,"InteractiveExternalPortPositioner/lambda$1$Type",1600),zo(1601,1,{},tO),wo.Kb=function(oo){return bo(oo,18).c.i},wo.Fb=function(oo){return this===oo},Vo(f1,"InteractiveExternalPortPositioner/lambda$2$Type",1601),zo(1602,1,{},WDe),wo.Kb=function(oo){return Wkt(this.a,Tl(oo))},wo.Fb=function(oo){return this===oo},Vo(f1,"InteractiveExternalPortPositioner/lambda$3$Type",1602),zo(1603,1,{},UDe),wo.Kb=function(oo){return q5t(this.a,Tl(oo))},wo.Fb=function(oo){return this===oo},Vo(f1,"InteractiveExternalPortPositioner/lambda$4$Type",1603),zo(1604,1,{},KDe),wo.Kb=function(oo){return V5t(this.a,Tl(oo))},wo.Fb=function(oo){return this===oo},Vo(f1,"InteractiveExternalPortPositioner/lambda$5$Type",1604),zo(81,22,{3:1,34:1,22:1,81:1,196:1},Xp),wo.dg=function(){switch(this.g){case 15:return new Rre;case 22:return new kW;case 47:return new Ire;case 28:case 35:return new $P;case 32:return new vP;case 42:return new Ix;case 1:return new bP;case 41:return new GA;case 56:return new iye((vI(),WV));case 0:return new iye((vI(),pge));case 2:return new ZG;case 54:return new yP;case 33:return new tW;case 51:return new bM;case 55:return new SP;case 13:return new xne;case 38:return new _ne;case 44:return new sW;case 40:return new Ene;case 9:return new oD;case 49:return new Kqe;case 37:return new EP;case 43:return new TP;case 27:return new Tne;case 30:return new uW;case 3:return new n5;case 18:return new dW;case 29:return new Cne;case 5:return new i5;case 50:return new fW;case 34:return new i8;case 36:return new hW;case 52:return new Rse;case 11:return new i$;case 7:return new Dse;case 39:return new wM;case 45:return new Mne;case 16:return new Dne;case 10:return new jze;case 48:return new pW;case 21:return new Bne;case 23:return new Xae((o6(),xF));case 8:return new Pne;case 12:return new zne;case 4:return new Y7;case 19:return new SC;case 17:return new Hne;case 53:return new H5;case 6:return new EM;case 25:return new zFe;case 46:return new Hy;case 31:return new LVe;case 14:return new yW;case 26:return new mC;case 20:return new Yne;case 24:return new Xae((o6(),pte));default:throw Cs(new i1(j1e+(this.f!=null?this.f:""+this.g)))}};var h9e,p9e,g9e,m9e,v9e,b9e,y9e,w9e,x9e,S9e,s7,uee,fee,_9e,E9e,k9e,T9e,C9e,$9e,A9e,tF,R9e,O9e,I9e,N9e,M9e,gge,dee,hee,D9e,pee,gee,mee,MN,gA,mA,L9e,bee,yee,B9e,wee,xee,F9e,P9e,j9e,z9e,See,mge,UV,_ee,Eee,kee,Tee,H9e,q9e,V9e,G9e,NXt=V1(f1,z1e,81,X1,ist,O4t),qpt;zo(1605,1,hp,dW),wo.Kf=function(oo,co){DKt(bo(oo,36),co)},Vo(f1,"InvertedPortProcessor",1605),zo(1606,1,hp,Cne),wo.Kf=function(oo,co){RVt(bo(oo,36),co)},Vo(f1,"LabelAndNodeSizeProcessor",1606),zo(1607,1,f0,$ne),wo.Mb=function(oo){return bo(oo,10).k==(a1(),Vp)},Vo(f1,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),zo(1608,1,f0,Ane),wo.Mb=function(oo){return bo(oo,10).k==(a1(),Kp)},Vo(f1,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),zo(1609,1,_1,uGe),wo.Cd=function(oo){dEt(this.b,this.a,this.c,bo(oo,10))},wo.a=!1,wo.c=!1,Vo(f1,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),zo(1610,1,hp,i5),wo.Kf=function(oo,co){aKt(bo(oo,36),co)};var Vpt;Vo(f1,"LabelDummyInserter",1610),zo(1611,1,rE,Rne),wo.Lb=function(oo){return $a(bs(bo(oo,72),(ou(),hE)))===$a((g_(),lM))},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return $a(bs(bo(oo,72),(ou(),hE)))===$a((g_(),lM))},Vo(f1,"LabelDummyInserter/1",1611),zo(1612,1,hp,fW),wo.Kf=function(oo,co){YUt(bo(oo,36),co)},Vo(f1,"LabelDummyRemover",1612),zo(1613,1,f0,One),wo.Mb=function(oo){return lu(au(bs(bo(oo,72),(ou(),ime))))},Vo(f1,"LabelDummyRemover/lambda$0$Type",1613),zo(1378,1,hp,i8),wo.Kf=function(oo,co){zUt(this,bo(oo,36),co)},wo.a=null;var vge;Vo(f1,"LabelDummySwitcher",1378),zo(293,1,{293:1},rat),wo.c=0,wo.d=null,wo.f=0,Vo(f1,"LabelDummySwitcher/LabelDummyInfo",293),zo(1379,1,{},U7),wo.Kb=function(oo){return G8(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"LabelDummySwitcher/lambda$0$Type",1379),zo(1380,1,f0,Ine),wo.Mb=function(oo){return G8(),bo(oo,10).k==(a1(),Ly)},Vo(f1,"LabelDummySwitcher/lambda$1$Type",1380),zo(1381,1,{},YDe),wo.Kb=function(oo){return C5t(this.a,bo(oo,10))},Vo(f1,"LabelDummySwitcher/lambda$2$Type",1381),zo(1382,1,_1,XDe),wo.Cd=function(oo){UCt(this.a,bo(oo,293))},Vo(f1,"LabelDummySwitcher/lambda$3$Type",1382),zo(1383,1,g0,Nne),wo.Ne=function(oo,co){return vCt(bo(oo,293),bo(co,293))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"LabelDummySwitcher/lambda$4$Type",1383),zo(802,1,hp,$P),wo.Kf=function(oo,co){R7t(bo(oo,36),co)},Vo(f1,"LabelManagementProcessor",802),zo(1614,1,hp,hW),wo.Kf=function(oo,co){aqt(bo(oo,36),co)},Vo(f1,"LabelSideSelector",1614),zo(1622,1,hp,i$),wo.Kf=function(oo,co){KGt(bo(oo,36),co)},Vo(f1,"LayerConstraintPostprocessor",1622),zo(1623,1,hp,Dse),wo.Kf=function(oo,co){qjt(bo(oo,36),co)};var W9e;Vo(f1,"LayerConstraintPreprocessor",1623),zo(371,22,{3:1,34:1,22:1,371:1},QK);var KV,Cee,$ee,bge,Gpt=V1(f1,"LayerConstraintPreprocessor/HiddenNodeConnections",371,X1,l9t,I4t),Wpt;zo(1624,1,hp,wM),wo.Kf=function(oo,co){fUt(bo(oo,36),co)},Vo(f1,"LayerSizeAndGraphHeightCalculator",1624),zo(1625,1,hp,Mne),wo.Kf=function(oo,co){Wzt(bo(oo,36),co)},Vo(f1,"LongEdgeJoiner",1625),zo(1626,1,hp,Dne),wo.Kf=function(oo,co){jWt(bo(oo,36),co)},Vo(f1,"LongEdgeSplitter",1626),zo(1627,1,hp,jze),wo.Kf=function(oo,co){SKt(this,bo(oo,36),co)},wo.e=0,wo.f=0,wo.j=0,wo.k=0,wo.n=0,wo.o=0;var Upt,Kpt;Vo(f1,"NodePromotion",1627),zo(1628,1,g0,Lne),wo.Ne=function(oo,co){return DOt(bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"NodePromotion/1",1628),zo(1629,1,g0,K7),wo.Ne=function(oo,co){return LOt(bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"NodePromotion/2",1629),zo(1630,1,{},Y4),wo.Kb=function(oo){return bo(oo,42),IY(),_f(),!0},wo.Fb=function(oo){return this===oo},Vo(f1,"NodePromotion/lambda$0$Type",1630),zo(1631,1,{},eLe),wo.Kb=function(oo){return O$t(this.a,bo(oo,42))},wo.Fb=function(oo){return this===oo},wo.a=0,Vo(f1,"NodePromotion/lambda$1$Type",1631),zo(1632,1,{},tLe),wo.Kb=function(oo){return R$t(this.a,bo(oo,42))},wo.Fb=function(oo){return this===oo},wo.a=0,Vo(f1,"NodePromotion/lambda$2$Type",1632),zo(1633,1,hp,pW),wo.Kf=function(oo,co){mYt(bo(oo,36),co)},Vo(f1,"NorthSouthPortPostprocessor",1633),zo(1634,1,hp,Bne),wo.Kf=function(oo,co){XKt(bo(oo,36),co)},Vo(f1,"NorthSouthPortPreprocessor",1634),zo(1635,1,g0,Fne),wo.Ne=function(oo,co){return XRt(bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"NorthSouthPortPreprocessor/lambda$0$Type",1635),zo(1636,1,hp,Pne),wo.Kf=function(oo,co){fGt(bo(oo,36),co)},Vo(f1,"PartitionMidprocessor",1636),zo(1637,1,f0,jne),wo.Mb=function(oo){return gp(bo(oo,10),(ou(),KN))},Vo(f1,"PartitionMidprocessor/lambda$0$Type",1637),zo(1638,1,_1,nLe),wo.Cd=function(oo){R6t(this.a,bo(oo,10))},Vo(f1,"PartitionMidprocessor/lambda$1$Type",1638),zo(1639,1,hp,zne),wo.Kf=function(oo,co){hHt(bo(oo,36),co)},Vo(f1,"PartitionPostprocessor",1639),zo(1640,1,hp,Y7),wo.Kf=function(oo,co){Cjt(bo(oo,36),co)},Vo(f1,"PartitionPreprocessor",1640),zo(1641,1,f0,Bu),wo.Mb=function(oo){return gp(bo(oo,10),(ou(),KN))},Vo(f1,"PartitionPreprocessor/lambda$0$Type",1641),zo(1642,1,{},$1),wo.Kb=function(oo){return new Ou(null,new GC(new x1(E1(Wp(bo(oo,10)).a.Kc(),new ko))))},Vo(f1,"PartitionPreprocessor/lambda$1$Type",1642),zo(1643,1,f0,h1),wo.Mb=function(oo){return vMt(bo(oo,18))},Vo(f1,"PartitionPreprocessor/lambda$2$Type",1643),zo(1644,1,_1,_p),wo.Cd=function(oo){hOt(bo(oo,18))},Vo(f1,"PartitionPreprocessor/lambda$3$Type",1644),zo(1645,1,hp,SC),wo.Kf=function(oo,co){GVt(bo(oo,36),co)};var U9e,Ypt,Xpt,Qpt,K9e,Y9e;Vo(f1,"PortListSorter",1645),zo(1648,1,g0,Wm),wo.Ne=function(oo,co){return PYe(bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"PortListSorter/lambda$0$Type",1648),zo(1650,1,g0,Ry),wo.Ne=function(oo,co){return Cat(bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"PortListSorter/lambda$1$Type",1650),zo(1646,1,{},Nx),wo.Kb=function(oo){return $I(),bo(oo,12).e},Vo(f1,"PortListSorter/lambda$2$Type",1646),zo(1647,1,{},d2),wo.Kb=function(oo){return $I(),bo(oo,12).g},Vo(f1,"PortListSorter/lambda$3$Type",1647),zo(1649,1,g0,AP),wo.Ne=function(oo,co){return zDt(bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"PortListSorter/lambda$4$Type",1649),zo(1651,1,hp,Hne),wo.Kf=function(oo,co){nzt(bo(oo,36),co)},Vo(f1,"PortSideProcessor",1651),zo(1652,1,hp,H5),wo.Kf=function(oo,co){rVt(bo(oo,36),co)},Vo(f1,"ReversedEdgeRestorer",1652),zo(1657,1,hp,zFe),wo.Kf=function(oo,co){_Dt(this,bo(oo,36),co)},Vo(f1,"SelfLoopPortRestorer",1657),zo(1658,1,{},xM),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"SelfLoopPortRestorer/lambda$0$Type",1658),zo(1659,1,f0,qne),wo.Mb=function(oo){return bo(oo,10).k==(a1(),Vp)},Vo(f1,"SelfLoopPortRestorer/lambda$1$Type",1659),zo(1660,1,f0,X7),wo.Mb=function(oo){return gp(bo(oo,10),(Wl(),F6))},Vo(f1,"SelfLoopPortRestorer/lambda$2$Type",1660),zo(1661,1,{},SM),wo.Kb=function(oo){return bo(bs(bo(oo,10),(Wl(),F6)),337)},Vo(f1,"SelfLoopPortRestorer/lambda$3$Type",1661),zo(1662,1,_1,ZDe),wo.Cd=function(oo){FFt(this.a,bo(oo,337))},Vo(f1,"SelfLoopPortRestorer/lambda$4$Type",1662),zo(805,1,_1,nO),wo.Cd=function(oo){QFt(bo(oo,105))},Vo(f1,"SelfLoopPortRestorer/lambda$5$Type",805),zo(1663,1,hp,Hy),wo.Kf=function(oo,co){AMt(bo(oo,36),co)},Vo(f1,"SelfLoopPostProcessor",1663),zo(1664,1,{},Vne),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"SelfLoopPostProcessor/lambda$0$Type",1664),zo(1665,1,f0,gW),wo.Mb=function(oo){return bo(oo,10).k==(a1(),Vp)},Vo(f1,"SelfLoopPostProcessor/lambda$1$Type",1665),zo(1666,1,f0,_M),wo.Mb=function(oo){return gp(bo(oo,10),(Wl(),F6))},Vo(f1,"SelfLoopPostProcessor/lambda$2$Type",1666),zo(1667,1,_1,Gne),wo.Cd=function(oo){jLt(bo(oo,10))},Vo(f1,"SelfLoopPostProcessor/lambda$3$Type",1667),zo(1668,1,{},Wne),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,105).f,1))},Vo(f1,"SelfLoopPostProcessor/lambda$4$Type",1668),zo(1669,1,_1,QDe),wo.Cd=function(oo){d9t(this.a,bo(oo,340))},Vo(f1,"SelfLoopPostProcessor/lambda$5$Type",1669),zo(1670,1,f0,Une),wo.Mb=function(oo){return!!bo(oo,105).i},Vo(f1,"SelfLoopPostProcessor/lambda$6$Type",1670),zo(1671,1,_1,JDe),wo.Cd=function(oo){f_t(this.a,bo(oo,105))},Vo(f1,"SelfLoopPostProcessor/lambda$7$Type",1671),zo(1653,1,hp,EM),wo.Kf=function(oo,co){Ozt(bo(oo,36),co)},Vo(f1,"SelfLoopPreProcessor",1653),zo(1654,1,{},o$),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,105).f,1))},Vo(f1,"SelfLoopPreProcessor/lambda$0$Type",1654),zo(1655,1,{},kM),wo.Kb=function(oo){return bo(oo,340).a},Vo(f1,"SelfLoopPreProcessor/lambda$1$Type",1655),zo(1656,1,_1,mW),wo.Cd=function(oo){pkt(bo(oo,18))},Vo(f1,"SelfLoopPreProcessor/lambda$2$Type",1656),zo(1672,1,hp,LVe),wo.Kf=function(oo,co){yFt(this,bo(oo,36),co)},Vo(f1,"SelfLoopRouter",1672),zo(1673,1,{},TM),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,30).a,16))},Vo(f1,"SelfLoopRouter/lambda$0$Type",1673),zo(1674,1,f0,vW),wo.Mb=function(oo){return bo(oo,10).k==(a1(),Vp)},Vo(f1,"SelfLoopRouter/lambda$1$Type",1674),zo(1675,1,f0,bW),wo.Mb=function(oo){return gp(bo(oo,10),(Wl(),F6))},Vo(f1,"SelfLoopRouter/lambda$2$Type",1675),zo(1676,1,{},CM),wo.Kb=function(oo){return bo(bs(bo(oo,10),(Wl(),F6)),337)},Vo(f1,"SelfLoopRouter/lambda$3$Type",1676),zo(1677,1,_1,wze),wo.Cd=function(oo){E6t(this.a,this.b,bo(oo,337))},Vo(f1,"SelfLoopRouter/lambda$4$Type",1677),zo(1678,1,hp,yW),wo.Kf=function(oo,co){YHt(bo(oo,36),co)},Vo(f1,"SemiInteractiveCrossMinProcessor",1678),zo(1679,1,f0,rO),wo.Mb=function(oo){return bo(oo,10).k==(a1(),Vp)},Vo(f1,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),zo(1680,1,f0,WA),wo.Mb=function(oo){return JGe(bo(oo,10))._b((ou(),kA))},Vo(f1,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),zo(1681,1,g0,$M),wo.Ne=function(oo,co){return dRt(bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(f1,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),zo(1682,1,{},Kne),wo.Ve=function(oo,co){return O6t(bo(oo,10),bo(co,10))},Vo(f1,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),zo(1684,1,hp,Yne),wo.Kf=function(oo,co){yWt(bo(oo,36),co)},Vo(f1,"SortByInputModelProcessor",1684),zo(1685,1,f0,Xne),wo.Mb=function(oo){return bo(oo,12).g.c.length!=0},Vo(f1,"SortByInputModelProcessor/lambda$0$Type",1685),zo(1686,1,_1,rLe),wo.Cd=function(oo){nPt(this.a,bo(oo,12))},Vo(f1,"SortByInputModelProcessor/lambda$1$Type",1686),zo(1759,817,{},cJe),wo.df=function(oo){var co,fo,po,vo;switch(this.c=oo,this.a.g){case 2:co=new Zl,zp(X0(new Ou(null,new Du(this.c.a.b,16)),new OP),new Aze(this,co)),Mq(this,new RM),g2(co,new RP),co.c.length=0,zp(X0(new Ou(null,new Du(this.c.a.b,16)),new Qne),new oLe(co)),Mq(this,new wW),g2(co,new Zne),co.c.length=0,fo=uqe(dfe(C$(new Ou(null,new Du(this.c.a.b,16)),new sLe(this))),new Jne),zp(new Ou(null,new Du(this.c.a.a,16)),new _ze(fo,co)),Mq(this,new o_),g2(co,new ere),co.c.length=0;break;case 3:po=new Zl,Mq(this,new AM),vo=uqe(dfe(C$(new Ou(null,new Du(this.c.a.b,16)),new iLe(this))),new Mx),zp(X0(new Ou(null,new Du(this.c.a.b,16)),new tre),new kze(vo,po)),Mq(this,new xW),g2(po,new nre),po.c.length=0;break;default:throw Cs(new $Fe)}},wo.b=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation",1759),zo(1760,1,rE,AM),wo.Lb=function(oo){return Hs(bo(oo,60).g,154)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return Hs(bo(oo,60).g,154)},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),zo(1761,1,{},iLe),wo.Ye=function(oo){return PPt(this.a,bo(oo,60))},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),zo(1769,1,MZ,xze),wo.de=function(){YL(this.a,this.b,-1)},wo.b=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),zo(1771,1,rE,RM),wo.Lb=function(oo){return Hs(bo(oo,60).g,154)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return Hs(bo(oo,60).g,154)},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),zo(1772,1,_1,RP),wo.Cd=function(oo){bo(oo,380).de()},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),zo(1773,1,f0,Qne),wo.Mb=function(oo){return Hs(bo(oo,60).g,10)},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),zo(1775,1,_1,oLe),wo.Cd=function(oo){oNt(this.a,bo(oo,60))},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),zo(1774,1,MZ,Tze),wo.de=function(){YL(this.b,this.a,-1)},wo.a=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),zo(1776,1,rE,wW),wo.Lb=function(oo){return Hs(bo(oo,60).g,10)},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return Hs(bo(oo,60).g,10)},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),zo(1777,1,_1,Zne),wo.Cd=function(oo){bo(oo,380).de()},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),zo(1778,1,{},sLe),wo.Ye=function(oo){return jPt(this.a,bo(oo,60))},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),zo(1779,1,{},Jne),wo.We=function(){return 0},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),zo(1762,1,{},Mx),wo.We=function(){return 0},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),zo(1781,1,_1,_ze),wo.Cd=function(oo){cCt(this.a,this.b,bo(oo,316))},wo.a=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),zo(1780,1,MZ,Eze),wo.de=function(){Not(this.a,this.b,-1)},wo.b=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),zo(1782,1,rE,o_),wo.Lb=function(oo){return bo(oo,60),!0},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return bo(oo,60),!0},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),zo(1783,1,_1,ere),wo.Cd=function(oo){bo(oo,380).de()},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),zo(1763,1,f0,tre),wo.Mb=function(oo){return Hs(bo(oo,60).g,10)},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),zo(1765,1,_1,kze),wo.Cd=function(oo){uCt(this.a,this.b,bo(oo,60))},wo.a=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),zo(1764,1,MZ,Cze),wo.de=function(){YL(this.b,this.a,-1)},wo.a=0,Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),zo(1766,1,rE,xW),wo.Lb=function(oo){return bo(oo,60),!0},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return bo(oo,60),!0},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),zo(1767,1,_1,nre),wo.Cd=function(oo){bo(oo,380).de()},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),zo(1768,1,f0,OP),wo.Mb=function(oo){return Hs(bo(oo,60).g,154)},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),zo(1770,1,_1,Aze),wo.Cd=function(oo){A8t(this.a,this.b,bo(oo,60))},Vo(cm,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),zo(1586,1,hp,Kqe),wo.Kf=function(oo,co){WWt(this,bo(oo,36),co)};var Zpt;Vo(cm,"HorizontalGraphCompactor",1586),zo(1587,1,{},aLe),wo.ff=function(oo,co){var fo,po,vo;return $_e(oo,co)||(fo=x9(oo),po=x9(co),fo&&fo.k==(a1(),Kp)||po&&po.k==(a1(),Kp))?0:(vo=bo(bs(this.a.a,(Wl(),g7)),312),Xkt(vo,fo?fo.k:(a1(),km),po?po.k:(a1(),km)))},wo.gf=function(oo,co){var fo,po,vo;return $_e(oo,co)?1:(fo=x9(oo),po=x9(co),vo=bo(bs(this.a.a,(Wl(),g7)),312),bwe(vo,fo?fo.k:(a1(),km),po?po.k:(a1(),km)))},Vo(cm,"HorizontalGraphCompactor/1",1587),zo(1588,1,{},iO),wo.ef=function(oo,co){return TD(),oo.a.i==0},Vo(cm,"HorizontalGraphCompactor/lambda$0$Type",1588),zo(1589,1,{},lLe),wo.ef=function(oo,co){return M6t(this.a,oo,co)},Vo(cm,"HorizontalGraphCompactor/lambda$1$Type",1589),zo(1730,1,{},FQe);var Jpt,egt;Vo(cm,"LGraphToCGraphTransformer",1730),zo(1738,1,f0,IP),wo.Mb=function(oo){return oo!=null},Vo(cm,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),zo(1731,1,{},Q7),wo.Kb=function(oo){return uS(),ry(bs(bo(bo(oo,60).g,10),(Wl(),Z0)))},Vo(cm,"LGraphToCGraphTransformer/lambda$0$Type",1731),zo(1732,1,{},oO),wo.Kb=function(oo){return uS(),Jet(bo(bo(oo,60).g,154))},Vo(cm,"LGraphToCGraphTransformer/lambda$1$Type",1732),zo(1741,1,f0,sO),wo.Mb=function(oo){return uS(),Hs(bo(oo,60).g,10)},Vo(cm,"LGraphToCGraphTransformer/lambda$10$Type",1741),zo(1742,1,_1,OM),wo.Cd=function(oo){P6t(bo(oo,60))},Vo(cm,"LGraphToCGraphTransformer/lambda$11$Type",1742),zo(1743,1,f0,Z7),wo.Mb=function(oo){return uS(),Hs(bo(oo,60).g,154)},Vo(cm,"LGraphToCGraphTransformer/lambda$12$Type",1743),zo(1747,1,_1,rre),wo.Cd=function(oo){vIt(bo(oo,60))},Vo(cm,"LGraphToCGraphTransformer/lambda$13$Type",1747),zo(1744,1,_1,cLe),wo.Cd=function(oo){qEt(this.a,bo(oo,8))},wo.a=0,Vo(cm,"LGraphToCGraphTransformer/lambda$14$Type",1744),zo(1745,1,_1,uLe),wo.Cd=function(oo){GEt(this.a,bo(oo,116))},wo.a=0,Vo(cm,"LGraphToCGraphTransformer/lambda$15$Type",1745),zo(1746,1,_1,fLe),wo.Cd=function(oo){VEt(this.a,bo(oo,8))},wo.a=0,Vo(cm,"LGraphToCGraphTransformer/lambda$16$Type",1746),zo(1748,1,{},ire),wo.Kb=function(oo){return uS(),new Ou(null,new GC(new x1(E1(Wp(bo(oo,10)).a.Kc(),new ko))))},Vo(cm,"LGraphToCGraphTransformer/lambda$17$Type",1748),zo(1749,1,f0,ore),wo.Mb=function(oo){return uS(),dv(bo(oo,18))},Vo(cm,"LGraphToCGraphTransformer/lambda$18$Type",1749),zo(1750,1,_1,dLe),wo.Cd=function(oo){a8t(this.a,bo(oo,18))},Vo(cm,"LGraphToCGraphTransformer/lambda$19$Type",1750),zo(1734,1,_1,hLe),wo.Cd=function(oo){MAt(this.a,bo(oo,154))},Vo(cm,"LGraphToCGraphTransformer/lambda$2$Type",1734),zo(1751,1,{},sre),wo.Kb=function(oo){return uS(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(cm,"LGraphToCGraphTransformer/lambda$20$Type",1751),zo(1752,1,{},are),wo.Kb=function(oo){return uS(),new Ou(null,new GC(new x1(E1(Wp(bo(oo,10)).a.Kc(),new ko))))},Vo(cm,"LGraphToCGraphTransformer/lambda$21$Type",1752),zo(1753,1,{},IM),wo.Kb=function(oo){return uS(),bo(bs(bo(oo,18),(Wl(),WT)),15)},Vo(cm,"LGraphToCGraphTransformer/lambda$22$Type",1753),zo(1754,1,f0,aO),wo.Mb=function(oo){return Qkt(bo(oo,15))},Vo(cm,"LGraphToCGraphTransformer/lambda$23$Type",1754),zo(1755,1,_1,pLe),wo.Cd=function(oo){$Pt(this.a,bo(oo,15))},Vo(cm,"LGraphToCGraphTransformer/lambda$24$Type",1755),zo(1733,1,_1,Rze),wo.Cd=function(oo){O9t(this.a,this.b,bo(oo,154))},Vo(cm,"LGraphToCGraphTransformer/lambda$3$Type",1733),zo(1735,1,{},SW),wo.Kb=function(oo){return uS(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(cm,"LGraphToCGraphTransformer/lambda$4$Type",1735),zo(1736,1,{},Il),wo.Kb=function(oo){return uS(),new Ou(null,new GC(new x1(E1(Wp(bo(oo,10)).a.Kc(),new ko))))},Vo(cm,"LGraphToCGraphTransformer/lambda$5$Type",1736),zo(1737,1,{},J7),wo.Kb=function(oo){return uS(),bo(bs(bo(oo,18),(Wl(),WT)),15)},Vo(cm,"LGraphToCGraphTransformer/lambda$6$Type",1737),zo(1739,1,_1,gLe),wo.Cd=function(oo){zPt(this.a,bo(oo,15))},Vo(cm,"LGraphToCGraphTransformer/lambda$8$Type",1739),zo(1740,1,_1,Oze),wo.Cd=function(oo){gkt(this.a,this.b,bo(oo,154))},Vo(cm,"LGraphToCGraphTransformer/lambda$9$Type",1740),zo(1729,1,{},NM),wo.cf=function(oo){var co,fo,po,vo,xo;for(this.a=oo,this.d=new zae,this.c=Al($Ae,Xu,125,this.a.a.a.c.length,0,1),this.b=0,fo=new _s(this.a.a.a);fo.a=Ss&&(Jl(xo,Ql(Fo)),zs=lo.Math.max(zs,Ys[Fo-1]-Wo),To+=ws,Rs+=Ys[Fo-1]-Rs,Wo=Ys[Fo-1],ws=Ao[Fo]),ws=lo.Math.max(ws,Ao[Fo]),++Fo;To+=ws}Zo=lo.Math.min(1/zs,1/co.b/To),Zo>po&&(po=Zo,fo=xo)}return fo},wo.pg=function(){return!1},Vo(aE,"MSDCutIndexHeuristic",816),zo(1683,1,hp,mC),wo.Kf=function(oo,co){XGt(bo(oo,36),co)},Vo(aE,"SingleEdgeGraphWrapper",1683),zo(232,22,{3:1,34:1,22:1,232:1},DD);var l7,BN,FN,vA,nF,c7,PN=V1(Dy,"CenterEdgeLabelPlacementStrategy",232,X1,D7t,L4t),dgt;zo(431,22,{3:1,34:1,22:1,431:1},y2e);var Q9e,Age,Z9e=V1(Dy,"ConstraintCalculationStrategy",431,X1,e$t,B4t),hgt;zo(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},xle),wo.dg=function(){return Pit(this)},wo.qg=function(){return Pit(this)};var XV,rF,J9e,e7e=V1(Dy,"CrossingMinimizationStrategy",322,X1,Y$t,F4t),pgt;zo(351,22,{3:1,34:1,22:1,351:1},Sle);var t7e,Rge,Nee,n7e=V1(Dy,"CuttingStrategy",351,X1,X$t,P4t),ggt;zo(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},qz),wo.dg=function(){return Oot(this)},wo.qg=function(){return Oot(this)};var r7e,Oge,jN,Ige,zN,i7e=V1(Dy,"CycleBreakingStrategy",348,X1,J9t,j4t),mgt;zo(428,22,{3:1,34:1,22:1,428:1},w2e);var Mee,o7e,s7e=V1(Dy,"DirectionCongruency",428,X1,J6t,z4t),vgt;zo(460,22,{3:1,34:1,22:1,460:1},_le);var HN,Nge,u7,bgt=V1(Dy,"EdgeConstraint",460,X1,Q$t,K4t),ygt;zo(283,22,{3:1,34:1,22:1,283:1},LD);var Mge,Dge,Lge,Bge,Dee,Fge,a7e=V1(Dy,"EdgeLabelSideSelection",283,X1,I7t,Y4t),wgt;zo(488,22,{3:1,34:1,22:1,488:1},x2e);var Lee,l7e,c7e=V1(Dy,"EdgeStraighteningStrategy",488,X1,a$t,X4t),xgt;zo(281,22,{3:1,34:1,22:1,281:1},BD);var Pge,u7e,f7e,Bee,d7e,h7e,p7e=V1(Dy,"FixedAlignment",281,X1,N7t,U4t),Sgt;zo(282,22,{3:1,34:1,22:1,282:1},FD);var g7e,m7e,v7e,b7e,iF,y7e,w7e=V1(Dy,"GraphCompactionStrategy",282,X1,M7t,H4t),_gt;zo(259,22,{3:1,34:1,22:1,259:1},g$);var qN,Fee,VN,Tx,oF,Pee,GN,f7,jee,sF,jge=V1(Dy,"GraphProperties",259,X1,bRt,q4t),Egt;zo(299,22,{3:1,34:1,22:1,299:1},Ele);var QV,zge,Hge,qge=V1(Dy,"GreedySwitchType",299,X1,Z$t,V4t),kgt;zo(311,22,{3:1,34:1,22:1,311:1},kle);var TR,ZV,d7,Tgt=V1(Dy,"InLayerConstraint",311,X1,J$t,G4t),Cgt;zo(429,22,{3:1,34:1,22:1,429:1},S2e);var Vge,x7e,S7e=V1(Dy,"InteractiveReferencePoint",429,X1,Z6t,W4t),$gt,_7e,$R,D6,zee,E7e,k7e,Hee,T7e,JV,qee,aF,AR,N5,Gge,Vee,_y,C7e,F3,Jy,Wge,Uge,eG,GT,L6,RR,$7e,OR,tG,bA,JS,Yx,Kge,h7,ip,Z0,A7e,R7e,O7e,I7e,N7e,Yge,Gee,aw,B6,Xge,IR,lF,T_,p7,F6,g7,m7,WN,WT,M7e,Qge,Zge,NR;zo(171,22,{3:1,34:1,22:1,171:1},Vz);var cF,P3,uF,yA,nG,D7e=V1(Dy,"LayerConstraint",171,X1,t7t,Q4t),Agt;zo(859,1,Vx,zse),wo.hf=function(oo){_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,RTe),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),G7e),(_4(),Cp)),s7e),Tu((YS(),Ku))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,OTe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(_f(),!1)),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,YZ),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Q7e),Cp),S7e),Tu(Ku)))),Jp(oo,YZ,V1e,_mt),Jp(oo,YZ,AB,Smt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ITe),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,NTe),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),ym),qp),Tu(Ku)))),_u(oo,new gu(q_t(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,MTe),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),ym),qp),Tu(eC)),As($s(uu,1),Yl,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,DTe),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),o8e),Cp),pRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,LTe),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Ql(7)),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,BTe),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,FTe),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,V1e),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),V7e),Cp),i7e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,xV),p0e),"Node Layering Strategy"),"Strategy for node layering."),e8e),Cp),nRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,PTe),p0e),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Z7e),Cp),D7e),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,jTe),p0e),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),sy),Vm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,zTe),p0e),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Ql(-1)),sy),Vm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,G1e),Jut),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Ql(4)),sy),Vm),Tu(Ku)))),Jp(oo,G1e,xV,Rmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,W1e),Jut),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Ql(2)),sy),Vm),Tu(Ku)))),Jp(oo,W1e,xV,Imt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,U1e),eft),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),J7e),Cp),fRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,K1e),eft),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Ql(0)),sy),Vm),Tu(Ku)))),Jp(oo,K1e,U1e,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Y1e),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Ql(q0)),sy),Vm),Tu(Ku)))),Jp(oo,Y1e,xV,kmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,AB),yN),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),q7e),Cp),e7e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,HTe),yN),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,X1e),yN),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Qm),nm),Tu(Ku)))),Jp(oo,X1e,lJ,Ygt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Q1e),yN),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),ym),qp),Tu(Ku)))),Jp(oo,Q1e,AB,tmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,qTe),yN),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),C7),uu),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,VTe),yN),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),C7),uu),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,GTe),yN),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),sy),Vm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,WTe),yN),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Ql(-1)),sy),Vm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,UTe),tft),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Ql(40)),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Z1e),tft),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),H7e),Cp),qge),Tu(Ku)))),Jp(oo,Z1e,AB,Ugt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,XZ),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),z7e),Cp),qge),Tu(Ku)))),Jp(oo,XZ,AB,Vgt),Jp(oo,XZ,lJ,Ggt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Q9),nft),"Node Placement Strategy"),"Strategy for node placement."),i8e),Cp),sRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,QZ),nft),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),ym),qp),Tu(Ku)))),Jp(oo,QZ,Q9,qmt),Jp(oo,QZ,Q9,Vmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,J1e),rft),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),t8e),Cp),c7e),Tu(Ku)))),Jp(oo,J1e,Q9,Pmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,e0e),rft),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),n8e),Cp),p7e),Tu(Ku)))),Jp(oo,e0e,Q9,zmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,t0e),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Qm),nm),Tu(Ku)))),Jp(oo,t0e,Q9,Wmt),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,n0e),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),Cp),wme),Tu(pm)))),Jp(oo,n0e,Q9,Xmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,r0e),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),r8e),Cp),wme),Tu(Ku)))),Jp(oo,r0e,Q9,Ymt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,KTe),ift),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),K7e),Cp),vRe),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,YTe),ift),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Y7e),Cp),bRe),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ZZ),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),X7e),Cp),wRe),Tu(Ku)))),Jp(oo,ZZ,SV,dmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,JZ),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Qm),nm),Tu(Ku)))),Jp(oo,JZ,SV,pmt),Jp(oo,JZ,ZZ,gmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,i0e),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Qm),nm),Tu(Ku)))),Jp(oo,i0e,SV,lmt),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,XTe),__),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,QTe),__),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ZTe),__),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,JTe),__),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,eCe),uCe),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Ql(0)),sy),Vm),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,tCe),uCe),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Ql(0)),sy),Vm),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,nCe),uCe),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Ql(0)),sy),Vm),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,o0e),fCe),wut),"Tries to further compact components (disconnected sub-graphs)."),!1),ym),qp),Tu(Ku)))),Jp(oo,o0e,EB,!0),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,rCe),oft),"Post Compaction Strategy"),sft),B7e),Cp),w7e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,iCe),oft),"Post Compaction Constraint Calculation"),sft),L7e),Cp),Z9e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,eJ),dCe),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,s0e),dCe),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Ql(16)),sy),Vm),Tu(Ku)))),Jp(oo,s0e,eJ,!0),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,a0e),dCe),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Ql(5)),sy),Vm),Tu(Ku)))),Jp(oo,a0e,eJ,!0),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,R5),hCe),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),l8e),Cp),ERe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,tJ),hCe),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Qm),nm),Tu(Ku)))),Jp(oo,tJ,R5,cvt),Jp(oo,tJ,R5,uvt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,nJ),hCe),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Qm),nm),Tu(Ku)))),Jp(oo,nJ,R5,dvt),Jp(oo,nJ,R5,hvt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,RB),aft),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),a8e),Cp),n7e),Tu(Ku)))),Jp(oo,RB,R5,yvt),Jp(oo,RB,R5,wvt),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,l0e),aft),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),$_),kx),Tu(Ku)))),Jp(oo,l0e,RB,gvt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,c0e),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),s8e),sy),Vm),Tu(Ku)))),Jp(oo,c0e,RB,vvt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,rJ),lft),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),c8e),Cp),_Re),Tu(Ku)))),Jp(oo,rJ,R5,Ivt),Jp(oo,rJ,R5,Nvt),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,iJ),lft),"Valid Indices for Wrapping"),null),$_),kx),Tu(Ku)))),Jp(oo,iJ,R5,Avt),Jp(oo,iJ,R5,Rvt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,oJ),pCe),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),ym),qp),Tu(Ku)))),Jp(oo,oJ,R5,Evt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,sJ),pCe),"Distance Penalty When Improving Cuts"),null),2),Qm),nm),Tu(Ku)))),Jp(oo,sJ,R5,Svt),Jp(oo,sJ,oJ,!0),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,u0e),pCe),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),ym),qp),Tu(Ku)))),Jp(oo,u0e,R5,Tvt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,oCe),g0e),"Edge Label Side Selection"),"Method to decide on edge label sides."),U7e),Cp),a7e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,sCe),g0e),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),W7e),Cp),PN),mp(Ku,As($s(WE,1),Pl,170,0,[D4]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,aJ),OB),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),j7e),Cp),hRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,aCe),OB),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,lCe),OB),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),ym),qp),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,f0e),OB),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),F7e),Cp),i9e),Tu(Ku)))),Jp(oo,f0e,EB,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,cCe),OB),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),P7e),Cp),iRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,d0e),OB),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Qm),nm),Tu(Ku)))),Jp(oo,d0e,aJ,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,h0e),OB),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Qm),nm),Tu(Ku)))),Jp(oo,h0e,aJ,null),kct((new WU,oo))};var Rgt,Ogt,Igt,L7e,Ngt,B7e,Mgt,F7e,Dgt,Lgt,Bgt,P7e,Fgt,Pgt,jgt,j7e,zgt,Hgt,qgt,z7e,Vgt,Ggt,Wgt,H7e,Ugt,Kgt,Ygt,Xgt,Qgt,Zgt,Jgt,emt,tmt,nmt,q7e,rmt,V7e,imt,G7e,omt,W7e,smt,U7e,amt,lmt,cmt,K7e,umt,Y7e,fmt,X7e,dmt,hmt,pmt,gmt,mmt,vmt,bmt,ymt,wmt,xmt,Q7e,Smt,_mt,Emt,kmt,Tmt,Cmt,Z7e,$mt,Amt,Rmt,Omt,Imt,Nmt,Mmt,J7e,Dmt,e8e,Lmt,Bmt,Fmt,t8e,Pmt,jmt,n8e,zmt,Hmt,qmt,Vmt,Gmt,Wmt,Umt,Kmt,r8e,Ymt,Xmt,Qmt,i8e,Zmt,o8e,Jmt,evt,tvt,nvt,rvt,ivt,ovt,svt,avt,lvt,cvt,uvt,fvt,dvt,hvt,pvt,gvt,mvt,s8e,vvt,bvt,a8e,yvt,wvt,xvt,Svt,_vt,Evt,kvt,Tvt,Cvt,l8e,$vt,Avt,Rvt,Ovt,c8e,Ivt,Nvt;Vo(Dy,"LayeredMetaDataProvider",859),zo(998,1,Vx,WU),wo.hf=function(oo){kct(oo)};var dE,Jge,Wee,fF,Uee,u8e,Kee,wA,Yee,f8e,d8e,Xee,eme,GE,tme,P6,h8e,rG,nme,p8e,Mvt,Dvt,Lvt,Qee,rme,dF,UT,Bvt,Qw,g8e,m8e,Zee,ime,hE,Jee,M5,v8e,b8e,y8e,ome,sme,w8e,R4,ame,x8e,xA,S8e,_8e,E8e,ete,SA,KT,k8e,T8e,Hv,C8e,Fvt,_2,tte,$8e,A8e,R8e,j3,YT,nte,O8e,I8e,rte,j6,N8e,lme,hF,M8e,z6,pF,ite,XT,cme,UN,ote,QT,D8e,L8e,B8e,KN,F8e,Pvt,jvt,zvt,Hvt,H6,_A,Pp,O4,qvt,EA,P8e,YN,j8e,kA,Vvt,XN,z8e,MR,Gvt,Wvt,iG,ume,H8e,oG,_S,v7,b7,q6,ZT,ste,TA,fme,QN,ZN,V6,y7,dme,sG,gF,mF,Uvt,Kvt,Yvt,q8e,Xvt,hme,V8e,G8e,W8e,U8e,pme,K8e,Y8e,X8e,Q8e,gme,ate;Vo(Dy,"LayeredOptions",998),zo(999,1,{},DP),wo.sf=function(){var oo;return oo=new LFe,oo},wo.tf=function(oo){},Vo(Dy,"LayeredOptions/LayeredFactory",999),zo(1391,1,{}),wo.a=0;var Qvt;Vo(wy,"ElkSpacings/AbstractSpacingsBuilder",1391),zo(792,1391,{},vke);var lte,Zvt;Vo(Dy,"LayeredSpacings/LayeredSpacingsBuilder",792),zo(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},o9),wo.dg=function(){return jst(this)},wo.qg=function(){return jst(this)};var JN,mme,eM,Z8e,J8e,eRe,cte,vme,tRe,nRe=V1(Dy,"LayeringStrategy",265,X1,K8t,Z4t),Jvt;zo(390,22,{3:1,34:1,22:1,390:1},Tle);var bme,rRe,ute,iRe=V1(Dy,"LongEdgeOrderingStrategy",390,X1,eAt,J4t),ebt;zo(203,22,{3:1,34:1,22:1,203:1},JK);var w7,x7,fte,yme,wme=V1(Dy,"NodeFlexibility",203,X1,c9t,e3t),tbt;zo(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},Gz),wo.dg=function(){return Rot(this)},wo.qg=function(){return Rot(this)};var vF,xme,Sme,bF,oRe,sRe=V1(Dy,"NodePlacementStrategy",323,X1,e7t,t3t),nbt;zo(243,22,{3:1,34:1,22:1,243:1},m$);var aRe,G6,CA,aG,lRe,cRe,lG,uRe,dte,hte,fRe=V1(Dy,"NodePromotionStrategy",243,X1,yRt,n3t),rbt;zo(284,22,{3:1,34:1,22:1,284:1},eY);var dRe,I4,_me,Eme,hRe=V1(Dy,"OrderingStrategy",284,X1,u9t,r3t),ibt;zo(430,22,{3:1,34:1,22:1,430:1},_2e);var kme,Tme,pRe=V1(Dy,"PortSortingStrategy",430,X1,t$t,i3t),obt;zo(463,22,{3:1,34:1,22:1,463:1},Cle);var lw,u2,yF,sbt=V1(Dy,"PortType",463,X1,tAt,o3t),abt;zo(387,22,{3:1,34:1,22:1,387:1},$le);var gRe,Cme,mRe,vRe=V1(Dy,"SelfLoopDistributionStrategy",387,X1,nAt,s3t),lbt;zo(349,22,{3:1,34:1,22:1,349:1},Ale);var $me,cG,Ame,bRe=V1(Dy,"SelfLoopOrderingStrategy",349,X1,rAt,a3t),cbt;zo(312,1,{312:1},Slt),Vo(Dy,"Spacings",312),zo(350,22,{3:1,34:1,22:1,350:1},Rle);var Rme,yRe,wF,wRe=V1(Dy,"SplineRoutingMode",350,X1,iAt,l3t),ubt;zo(352,22,{3:1,34:1,22:1,352:1},Ole);var Ome,xRe,SRe,_Re=V1(Dy,"ValidifyStrategy",352,X1,oAt,c3t),fbt;zo(388,22,{3:1,34:1,22:1,388:1},Ile);var $A,Ime,tM,ERe=V1(Dy,"WrappingStrategy",388,X1,sAt,u3t),dbt;zo(1398,1,Ev,qU),wo.rg=function(oo){return bo(oo,36),hbt},wo.Kf=function(oo,co){qWt(this,bo(oo,36),co)};var hbt;Vo(dJ,"DepthFirstCycleBreaker",1398),zo(793,1,Ev,Lxe),wo.rg=function(oo){return bo(oo,36),pbt},wo.Kf=function(oo,co){UYt(this,bo(oo,36),co)},wo.sg=function(oo){return bo(cu(oo,qQ(this.d,oo.c.length)),10)};var pbt;Vo(dJ,"GreedyCycleBreaker",793),zo(1401,793,Ev,IHe),wo.sg=function(oo){var co,fo,po,vo;for(vo=null,co=q0,po=new _s(oo);po.a1&&(lu(au(bs(zm((qu(0,oo.c.length),bo(oo.c[0],10))),(ou(),P6))))?qot(oo,this.d,bo(this,669)):(Hu(),Up(oo,this.d)),DJe(this.e,oo))},wo.lg=function(oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Fo;for(co!=ZGe(fo,oo.length)&&(xo=oo[co-(fo?1:-1)],f_e(this.f,xo,fo?(xv(),u2):(xv(),lw))),vo=oo[co][0],Fo=!po||vo.k==(a1(),Kp),Io=f_(oo[co]),this.vg(Io,Fo,!1,fo),Eo=0,Ao=new _s(Io);Ao.a"),oo0?due(this.a,oo[co-1],oo[co]):!fo&&co1&&(lu(au(bs(zm((qu(0,oo.c.length),bo(oo.c[0],10))),(ou(),P6))))?qot(oo,this.d,this):(Hu(),Up(oo,this.d)),lu(au(bs(zm((qu(0,oo.c.length),bo(oo.c[0],10))),P6)))||DJe(this.e,oo))},Vo(K2,"ModelOrderBarycenterHeuristic",669),zo(1866,1,g0,DLe),wo.Ne=function(oo,co){return qFt(this.a,bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(K2,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),zo(1423,1,Ev,Hse),wo.rg=function(oo){var co;return bo(oo,36),co=mY(Rbt),_0(co,(Km(),zy),(rv(),See)),co},wo.Kf=function(oo,co){k6t((bo(oo,36),co))};var Rbt;Vo(K2,"NoCrossingMinimizer",1423),zo(809,413,YCe,Wye),wo.tg=function(oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo;switch(Wo=this.g,fo.g){case 1:{for(vo=0,xo=0,Fo=new _s(oo.j);Fo.a1&&(vo.j==(nu(),p1)?this.b[oo]=!0:vo.j==l1&&oo>0&&(this.b[oo-1]=!0))},wo.f=0,Vo(zE,"AllCrossingsCounter",1861),zo(595,1,{},aQ),wo.b=0,wo.d=0,Vo(zE,"BinaryIndexedTree",595),zo(532,1,{},dH);var CRe,gte;Vo(zE,"CrossingsCounter",532),zo(1950,1,g0,LLe),wo.Ne=function(oo,co){return QTt(this.a,bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(zE,"CrossingsCounter/lambda$0$Type",1950),zo(1951,1,g0,BLe),wo.Ne=function(oo,co){return ZTt(this.a,bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(zE,"CrossingsCounter/lambda$1$Type",1951),zo(1952,1,g0,FLe),wo.Ne=function(oo,co){return JTt(this.a,bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(zE,"CrossingsCounter/lambda$2$Type",1952),zo(1953,1,g0,PLe),wo.Ne=function(oo,co){return eCt(this.a,bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(zE,"CrossingsCounter/lambda$3$Type",1953),zo(1954,1,_1,jLe),wo.Cd=function(oo){t8t(this.a,bo(oo,12))},Vo(zE,"CrossingsCounter/lambda$4$Type",1954),zo(1955,1,f0,zLe),wo.Mb=function(oo){return kEt(this.a,bo(oo,12))},Vo(zE,"CrossingsCounter/lambda$5$Type",1955),zo(1956,1,_1,HLe),wo.Cd=function(oo){_He(this,oo)},Vo(zE,"CrossingsCounter/lambda$6$Type",1956),zo(1957,1,_1,Mze),wo.Cd=function(oo){var co;qO(),h3(this.b,(co=this.a,bo(oo,12),co))},Vo(zE,"CrossingsCounter/lambda$7$Type",1957),zo(839,1,rE,uO),wo.Lb=function(oo){return qO(),gp(bo(oo,12),(Wl(),aw))},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return qO(),gp(bo(oo,12),(Wl(),aw))},Vo(zE,"CrossingsCounter/lambda$8$Type",839),zo(1949,1,{},qLe),Vo(zE,"HyperedgeCrossingsCounter",1949),zo(478,1,{34:1,478:1},BVe),wo.Fd=function(oo){return eMt(this,bo(oo,478))},wo.b=0,wo.c=0,wo.e=0,wo.f=0;var MXt=Vo(zE,"HyperedgeCrossingsCounter/Hyperedge",478);zo(374,1,{34:1,374:1},lX),wo.Fd=function(oo){return pzt(this,bo(oo,374))},wo.b=0,wo.c=0;var Obt=Vo(zE,"HyperedgeCrossingsCounter/HyperedgeCorner",374);zo(531,22,{3:1,34:1,22:1,531:1},E2e);var SF,_F,Ibt=V1(zE,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,X1,n$t,d3t),Nbt;zo(1425,1,Ev,qse),wo.rg=function(oo){return bo(bs(bo(oo,36),(Wl(),Jy)),21).Hc((Sv(),Tx))?Mbt:null},wo.Kf=function(oo,co){kLt(this,bo(oo,36),co)};var Mbt;Vo(kv,"InteractiveNodePlacer",1425),zo(1426,1,Ev,Vse),wo.rg=function(oo){return bo(bs(bo(oo,36),(Wl(),Jy)),21).Hc((Sv(),Tx))?Dbt:null},wo.Kf=function(oo,co){cDt(this,bo(oo,36),co)};var Dbt,mte,vte;Vo(kv,"LinearSegmentsNodePlacer",1426),zo(261,1,{34:1,261:1},wye),wo.Fd=function(oo){return B_t(this,bo(oo,261))},wo.Fb=function(oo){var co;return Hs(oo,261)?(co=bo(oo,261),this.b==co.b):!1},wo.Hb=function(){return this.b},wo.Ib=function(){return"ls"+_3(this.e)},wo.a=0,wo.b=0,wo.c=-1,wo.d=-1,wo.g=0;var Lbt=Vo(kv,"LinearSegmentsNodePlacer/LinearSegment",261);zo(1428,1,Ev,lWe),wo.rg=function(oo){return bo(bs(bo(oo,36),(Wl(),Jy)),21).Hc((Sv(),Tx))?Bbt:null},wo.Kf=function(oo,co){FYt(this,bo(oo,36),co)},wo.b=0,wo.g=0;var Bbt;Vo(kv,"NetworkSimplexPlacer",1428),zo(1447,1,g0,Lre),wo.Ne=function(oo,co){return Oy(bo(oo,17).a,bo(co,17).a)},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(kv,"NetworkSimplexPlacer/0methodref$compare$Type",1447),zo(1449,1,g0,OW),wo.Ne=function(oo,co){return Oy(bo(oo,17).a,bo(co,17).a)},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(kv,"NetworkSimplexPlacer/1methodref$compare$Type",1449),zo(655,1,{655:1},Dze);var DXt=Vo(kv,"NetworkSimplexPlacer/EdgeRep",655);zo(412,1,{412:1},mSe),wo.b=!1;var LXt=Vo(kv,"NetworkSimplexPlacer/NodeRep",412);zo(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},GFe),Vo(kv,"NetworkSimplexPlacer/Path",515),zo(1429,1,{},FS),wo.Kb=function(oo){return bo(oo,18).d.i.k},Vo(kv,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),zo(1430,1,f0,LP),wo.Mb=function(oo){return bo(oo,273)==(a1(),km)},Vo(kv,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),zo(1431,1,{},IW),wo.Kb=function(oo){return bo(oo,18).d.i},Vo(kv,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),zo(1432,1,f0,VLe),wo.Mb=function(oo){return xVe($tt(bo(oo,10)))},Vo(kv,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),zo(1433,1,f0,rT),wo.Mb=function(oo){return DTt(bo(oo,12))},Vo(kv,"NetworkSimplexPlacer/lambda$0$Type",1433),zo(1434,1,_1,Lze),wo.Cd=function(oo){mkt(this.a,this.b,bo(oo,12))},Vo(kv,"NetworkSimplexPlacer/lambda$1$Type",1434),zo(1443,1,_1,GLe),wo.Cd=function(oo){qPt(this.a,bo(oo,18))},Vo(kv,"NetworkSimplexPlacer/lambda$10$Type",1443),zo(1444,1,{},BP),wo.Kb=function(oo){return Pw(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(kv,"NetworkSimplexPlacer/lambda$11$Type",1444),zo(1445,1,_1,WLe),wo.Cd=function(oo){Bqt(this.a,bo(oo,10))},Vo(kv,"NetworkSimplexPlacer/lambda$12$Type",1445),zo(1446,1,{},MM),wo.Kb=function(oo){return Pw(),Ql(bo(oo,125).e)},Vo(kv,"NetworkSimplexPlacer/lambda$13$Type",1446),zo(1448,1,{},XA),wo.Kb=function(oo){return Pw(),Ql(bo(oo,125).e)},Vo(kv,"NetworkSimplexPlacer/lambda$15$Type",1448),zo(1450,1,f0,NW),wo.Mb=function(oo){return Pw(),bo(oo,412).c.k==(a1(),Vp)},Vo(kv,"NetworkSimplexPlacer/lambda$17$Type",1450),zo(1451,1,f0,L_),wo.Mb=function(oo){return Pw(),bo(oo,412).c.j.c.length>1},Vo(kv,"NetworkSimplexPlacer/lambda$18$Type",1451),zo(1452,1,_1,mUe),wo.Cd=function(oo){SNt(this.c,this.b,this.d,this.a,bo(oo,412))},wo.c=0,wo.d=0,Vo(kv,"NetworkSimplexPlacer/lambda$19$Type",1452),zo(1435,1,{},FP),wo.Kb=function(oo){return Pw(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(kv,"NetworkSimplexPlacer/lambda$2$Type",1435),zo(1453,1,_1,ULe),wo.Cd=function(oo){bkt(this.a,bo(oo,12))},wo.a=0,Vo(kv,"NetworkSimplexPlacer/lambda$20$Type",1453),zo(1454,1,{},Bre),wo.Kb=function(oo){return Pw(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(kv,"NetworkSimplexPlacer/lambda$21$Type",1454),zo(1455,1,_1,KLe),wo.Cd=function(oo){Rkt(this.a,bo(oo,10))},Vo(kv,"NetworkSimplexPlacer/lambda$22$Type",1455),zo(1456,1,f0,Fre),wo.Mb=function(oo){return xVe(oo)},Vo(kv,"NetworkSimplexPlacer/lambda$23$Type",1456),zo(1457,1,{},Pre),wo.Kb=function(oo){return Pw(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(kv,"NetworkSimplexPlacer/lambda$24$Type",1457),zo(1458,1,f0,YLe),wo.Mb=function(oo){return PEt(this.a,bo(oo,10))},Vo(kv,"NetworkSimplexPlacer/lambda$25$Type",1458),zo(1459,1,_1,Bze),wo.Cd=function(oo){UFt(this.a,this.b,bo(oo,10))},Vo(kv,"NetworkSimplexPlacer/lambda$26$Type",1459),zo(1460,1,f0,PP),wo.Mb=function(oo){return Pw(),!dv(bo(oo,18))},Vo(kv,"NetworkSimplexPlacer/lambda$27$Type",1460),zo(1461,1,f0,jre),wo.Mb=function(oo){return Pw(),!dv(bo(oo,18))},Vo(kv,"NetworkSimplexPlacer/lambda$28$Type",1461),zo(1462,1,{},XLe),wo.Ve=function(oo,co){return vkt(this.a,bo(oo,30),bo(co,30))},Vo(kv,"NetworkSimplexPlacer/lambda$29$Type",1462),zo(1436,1,{},fO),wo.Kb=function(oo){return Pw(),new Ou(null,new GC(new x1(E1(Wp(bo(oo,10)).a.Kc(),new ko))))},Vo(kv,"NetworkSimplexPlacer/lambda$3$Type",1436),zo(1437,1,f0,MW),wo.Mb=function(oo){return Pw(),KAt(bo(oo,18))},Vo(kv,"NetworkSimplexPlacer/lambda$4$Type",1437),zo(1438,1,_1,QLe),wo.Cd=function(oo){WGt(this.a,bo(oo,18))},Vo(kv,"NetworkSimplexPlacer/lambda$5$Type",1438),zo(1439,1,{},zre),wo.Kb=function(oo){return Pw(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(kv,"NetworkSimplexPlacer/lambda$6$Type",1439),zo(1440,1,f0,Hre),wo.Mb=function(oo){return Pw(),bo(oo,10).k==(a1(),Vp)},Vo(kv,"NetworkSimplexPlacer/lambda$7$Type",1440),zo(1441,1,{},dO),wo.Kb=function(oo){return Pw(),new Ou(null,new GC(new x1(E1(_5(bo(oo,10)).a.Kc(),new ko))))},Vo(kv,"NetworkSimplexPlacer/lambda$8$Type",1441),zo(1442,1,f0,qre),wo.Mb=function(oo){return Pw(),MTt(bo(oo,18))},Vo(kv,"NetworkSimplexPlacer/lambda$9$Type",1442),zo(1424,1,Ev,Gse),wo.rg=function(oo){return bo(bs(bo(oo,36),(Wl(),Jy)),21).Hc((Sv(),Tx))?Fbt:null},wo.Kf=function(oo,co){TWt(bo(oo,36),co)};var Fbt;Vo(kv,"SimpleNodePlacer",1424),zo(185,1,{185:1},z9),wo.Ib=function(){var oo;return oo="",this.c==(Y_(),W6)?oo+=dR:this.c==N4&&(oo+=fR),this.o==(c_(),JT)?oo+=S1e:this.o==C_?oo+="UP":oo+="BALANCED",oo},Vo(O3,"BKAlignedLayout",185),zo(523,22,{3:1,34:1,22:1,523:1},k2e);var N4,W6,Pbt=V1(O3,"BKAlignedLayout/HDirection",523,X1,i$t,h3t),jbt;zo(522,22,{3:1,34:1,22:1,522:1},T2e);var JT,C_,zbt=V1(O3,"BKAlignedLayout/VDirection",522,X1,o$t,p3t),Hbt;zo(1699,1,{},Fze),Vo(O3,"BKAligner",1699),zo(1702,1,{},trt),Vo(O3,"BKCompactor",1702),zo(663,1,{663:1},Vre),wo.a=0,Vo(O3,"BKCompactor/ClassEdge",663),zo(467,1,{467:1},HFe),wo.a=null,wo.b=0,Vo(O3,"BKCompactor/ClassNode",467),zo(1427,1,Ev,Hze),wo.rg=function(oo){return bo(bs(bo(oo,36),(Wl(),Jy)),21).Hc((Sv(),Tx))?qbt:null},wo.Kf=function(oo,co){nXt(this,bo(oo,36),co)},wo.d=!1;var qbt;Vo(O3,"BKNodePlacer",1427),zo(1700,1,{},jP),wo.d=0,Vo(O3,"NeighborhoodInformation",1700),zo(1701,1,g0,ZLe),wo.Ne=function(oo,co){return R8t(this,bo(oo,42),bo(co,42))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(O3,"NeighborhoodInformation/NeighborComparator",1701),zo(823,1,{}),Vo(O3,"ThresholdStrategy",823),zo(1825,823,{},qFe),wo.wg=function(oo,co,fo){return this.a.o==(c_(),C_)?Tp:am},wo.xg=function(){},Vo(O3,"ThresholdStrategy/NullThresholdStrategy",1825),zo(587,1,{587:1},qze),wo.c=!1,wo.d=!1,Vo(O3,"ThresholdStrategy/Postprocessable",587),zo(1826,823,{},VFe),wo.wg=function(oo,co,fo){var po,vo,xo;return vo=co==fo,po=this.a.a[fo.p]==co,vo||po?(xo=oo,this.a.c==(Y_(),W6)?(vo&&(xo=xhe(this,co,!0)),!isNaN(xo)&&!isFinite(xo)&&po&&(xo=xhe(this,fo,!1))):(vo&&(xo=xhe(this,co,!0)),!isNaN(xo)&&!isFinite(xo)&&po&&(xo=xhe(this,fo,!1))),xo):oo},wo.xg=function(){for(var oo,co,fo,po,vo;this.d.b!=0;)vo=bo(w$t(this.d),587),po=Rat(this,vo),po.a&&(oo=po.a,fo=lu(this.a.f[this.a.g[vo.b.p].p]),!(!fo&&!dv(oo)&&oo.c.i.c==oo.d.i.c)&&(co=Dot(this,vo),co||HEt(this.e,vo)));for(;this.e.a.c.length!=0;)Dot(this,bo(Oet(this.e),587))},Vo(O3,"ThresholdStrategy/SimpleThresholdStrategy",1826),zo(645,1,{645:1,188:1,196:1},DW),wo.dg=function(){return LJe(this)},wo.qg=function(){return LJe(this)};var Nme;Vo(w0e,"EdgeRouterFactory",645),zo(1485,1,Ev,Wse),wo.rg=function(oo){return hqt(bo(oo,36))},wo.Kf=function(oo,co){IWt(bo(oo,36),co)};var Vbt,Gbt,Wbt,Ubt,Kbt,$Re,Ybt,Xbt;Vo(w0e,"OrthogonalEdgeRouter",1485),zo(1478,1,Ev,zze),wo.rg=function(oo){return DLt(bo(oo,36))},wo.Kf=function(oo,co){nYt(this,bo(oo,36),co)};var Qbt,Zbt,Jbt,eyt,fG,tyt;Vo(w0e,"PolylineEdgeRouter",1478),zo(1479,1,rE,Wre),wo.Lb=function(oo){return pEe(bo(oo,10))},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return pEe(bo(oo,10))},Vo(w0e,"PolylineEdgeRouter/1",1479),zo(1872,1,f0,Ure),wo.Mb=function(oo){return bo(oo,132).c==(VS(),z3)},Vo(XS,"HyperEdgeCycleDetector/lambda$0$Type",1872),zo(1873,1,{},LW),wo.Ze=function(oo){return bo(oo,132).d},Vo(XS,"HyperEdgeCycleDetector/lambda$1$Type",1873),zo(1874,1,f0,zP),wo.Mb=function(oo){return bo(oo,132).c==(VS(),z3)},Vo(XS,"HyperEdgeCycleDetector/lambda$2$Type",1874),zo(1875,1,{},Kre),wo.Ze=function(oo){return bo(oo,132).d},Vo(XS,"HyperEdgeCycleDetector/lambda$3$Type",1875),zo(1876,1,{},HP),wo.Ze=function(oo){return bo(oo,132).d},Vo(XS,"HyperEdgeCycleDetector/lambda$4$Type",1876),zo(1877,1,{},Gre),wo.Ze=function(oo){return bo(oo,132).d},Vo(XS,"HyperEdgeCycleDetector/lambda$5$Type",1877),zo(118,1,{34:1,118:1},nq),wo.Fd=function(oo){return F_t(this,bo(oo,118))},wo.Fb=function(oo){var co;return Hs(oo,118)?(co=bo(oo,118),this.g==co.g):!1},wo.Hb=function(){return this.g},wo.Ib=function(){var oo,co,fo,po;for(oo=new Bw("{"),po=new _s(this.n);po.a"+this.b+" ("+r5t(this.c)+")"},wo.d=0,Vo(XS,"HyperEdgeSegmentDependency",132),zo(528,22,{3:1,34:1,22:1,528:1},C2e);var z3,AA,nyt=V1(XS,"HyperEdgeSegmentDependency/DependencyType",528,X1,s$t,g3t),ryt;zo(1878,1,{},JLe),Vo(XS,"HyperEdgeSegmentSplitter",1878),zo(1879,1,{},GPe),wo.a=0,wo.b=0,Vo(XS,"HyperEdgeSegmentSplitter/AreaRating",1879),zo(339,1,{339:1},wce),wo.a=0,wo.b=0,wo.c=0,Vo(XS,"HyperEdgeSegmentSplitter/FreeArea",339),zo(1880,1,g0,BW),wo.Ne=function(oo,co){return r4t(bo(oo,118),bo(co,118))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(XS,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),zo(1881,1,_1,vUe),wo.Cd=function(oo){I9t(this.a,this.d,this.c,this.b,bo(oo,118))},wo.b=0,Vo(XS,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),zo(1882,1,{},FW),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,118).e,16))},Vo(XS,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),zo(1883,1,{},PW),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,118).j,16))},Vo(XS,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),zo(1884,1,{},DM),wo.Ye=function(oo){return na(Tl(oo))},Vo(XS,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),zo(664,1,{},Gce),wo.a=0,wo.b=0,wo.c=0,Vo(XS,"OrthogonalRoutingGenerator",664),zo(1703,1,{},Yre),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,118).e,16))},Vo(XS,"OrthogonalRoutingGenerator/lambda$0$Type",1703),zo(1704,1,{},jW),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,118).j,16))},Vo(XS,"OrthogonalRoutingGenerator/lambda$1$Type",1704),zo(670,1,{}),Vo(x0e,"BaseRoutingDirectionStrategy",670),zo(1870,670,{},KFe),wo.yg=function(oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss;if(!(oo.r&&!oo.q))for(Fo=co+oo.o*fo,Io=new _s(oo.n);Io.aoE&&(xo=Fo,vo=oo,po=new Vl(Wo,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1),Xo=oo.r,Xo&&(Zo=na(Tl(wx(Xo.e,0))),po=new Vl(Zo,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1),xo=co+Xo.o*fo,vo=Xo,po=new Vl(Zo,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1)),po=new Vl(Ss,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1)))},wo.zg=function(oo){return oo.i.n.a+oo.n.a+oo.a.a},wo.Ag=function(){return nu(),z1},wo.Bg=function(){return nu(),s1},Vo(x0e,"NorthToSouthRoutingStrategy",1870),zo(1871,670,{},YFe),wo.yg=function(oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss;if(!(oo.r&&!oo.q))for(Fo=co-oo.o*fo,Io=new _s(oo.n);Io.aoE&&(xo=Fo,vo=oo,po=new Vl(Wo,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1),Xo=oo.r,Xo&&(Zo=na(Tl(wx(Xo.e,0))),po=new Vl(Zo,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1),xo=co-Xo.o*fo,vo=Xo,po=new Vl(Zo,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1)),po=new Vl(Ss,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1)))},wo.zg=function(oo){return oo.i.n.a+oo.n.a+oo.a.a},wo.Ag=function(){return nu(),s1},wo.Bg=function(){return nu(),z1},Vo(x0e,"SouthToNorthRoutingStrategy",1871),zo(1869,670,{},XFe),wo.yg=function(oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss;if(!(oo.r&&!oo.q))for(Fo=co+oo.o*fo,Io=new _s(oo.n);Io.aoE&&(xo=Fo,vo=oo,po=new Vl(xo,Wo),y0(Eo.a,po),v6(this,Eo,vo,po,!0),Xo=oo.r,Xo&&(Zo=na(Tl(wx(Xo.e,0))),po=new Vl(xo,Zo),y0(Eo.a,po),v6(this,Eo,vo,po,!0),xo=co+Xo.o*fo,vo=Xo,po=new Vl(xo,Zo),y0(Eo.a,po),v6(this,Eo,vo,po,!0)),po=new Vl(xo,Ss),y0(Eo.a,po),v6(this,Eo,vo,po,!0)))},wo.zg=function(oo){return oo.i.n.b+oo.n.b+oo.a.b},wo.Ag=function(){return nu(),p1},wo.Bg=function(){return nu(),l1},Vo(x0e,"WestToEastRoutingStrategy",1869),zo(828,1,{},d3e),wo.Ib=function(){return _3(this.a)},wo.b=0,wo.c=!1,wo.d=!1,wo.f=0,Vo(oA,"NubSpline",828),zo(418,1,{418:1},pst,YUe),Vo(oA,"NubSpline/PolarCP",418),zo(1480,1,Ev,Unt),wo.rg=function(oo){return EBt(bo(oo,36))},wo.Kf=function(oo,co){xYt(this,bo(oo,36),co)};var iyt,oyt,syt,ayt,lyt;Vo(oA,"SplineEdgeRouter",1480),zo(274,1,{274:1},OX),wo.Ib=function(){return this.a+" ->("+this.c+") "+this.b},wo.c=0,Vo(oA,"SplineEdgeRouter/Dependency",274),zo(465,22,{3:1,34:1,22:1,465:1},$2e);var H3,S7,cyt=V1(oA,"SplineEdgeRouter/SideToProcess",465,X1,d$t,m3t),uyt;zo(1481,1,f0,zW),wo.Mb=function(oo){return sB(),!bo(oo,131).o},Vo(oA,"SplineEdgeRouter/lambda$0$Type",1481),zo(1482,1,{},Xre),wo.Ze=function(oo){return sB(),bo(oo,131).v+1},Vo(oA,"SplineEdgeRouter/lambda$1$Type",1482),zo(1483,1,_1,Vze),wo.Cd=function(oo){FTt(this.a,this.b,bo(oo,42))},Vo(oA,"SplineEdgeRouter/lambda$2$Type",1483),zo(1484,1,_1,Gze),wo.Cd=function(oo){PTt(this.a,this.b,bo(oo,42))},Vo(oA,"SplineEdgeRouter/lambda$3$Type",1484),zo(131,1,{34:1,131:1},Tit,b3e),wo.Fd=function(oo){return z_t(this,bo(oo,131))},wo.b=0,wo.e=!1,wo.f=0,wo.g=0,wo.j=!1,wo.k=!1,wo.n=0,wo.o=!1,wo.p=!1,wo.q=!1,wo.s=0,wo.u=0,wo.v=0,wo.F=0,Vo(oA,"SplineSegment",131),zo(468,1,{468:1},HW),wo.a=0,wo.b=!1,wo.c=!1,wo.d=!1,wo.e=!1,wo.f=0,Vo(oA,"SplineSegment/EdgeInformation",468),zo(1198,1,{},Qre),Vo(I5,gTe,1198),zo(1199,1,g0,qP),wo.Ne=function(oo,co){return sjt(bo(oo,121),bo(co,121))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(I5,Eut,1199),zo(1197,1,{},aje),Vo(I5,"MrTree",1197),zo(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},tY),wo.dg=function(){return Uit(this)},wo.qg=function(){return Uit(this)};var bte,EF,kF,TF,ARe=V1(I5,"TreeLayoutPhases",405,X1,g9t,v3t),fyt;zo(1112,205,DT,DVe),wo.rf=function(oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;for(lu(au(zl(oo,(by(),eOe))))||CH((fo=new dD((NC(),new kC(oo))),fo)),Eo=co.eh(E0e),Eo.Ug("build tGraph",1),To=(Ao=new LH,Qv(Ao,oo),Fl(Ao,(fp(),$F),oo),Io=new H1,ZVt(oo,Ao,Io),vGt(oo,Ao,Io),Ao),Eo.Vg(),Eo=co.eh(E0e),Eo.Ug("Split graph",1),xo=iGt(this.a,To),Eo.Vg(),vo=new _s(xo);vo.a"+mT(this.c):"e_"+dp(this)},Vo(IB,"TEdge",65),zo(121,137,{3:1,121:1,96:1,137:1},LH),wo.Ib=function(){var oo,co,fo,po,vo;for(vo=null,po=G1(this.b,0);po.b!=po.d.c;)fo=bo(q1(po),40),vo+=(fo.c==null||fo.c.length==0?"n_"+fo.g:"n_"+fo.c)+` + endInLayerEdge=`,qy(oo,this.c),oo.a},Vo(aE,"BreakingPointInserter/BPInfo",313),zo(661,1,{661:1},RLe),wo.a=!1,wo.b=0,wo.c=0,Vo(aE,"BreakingPointInserter/Cut",661),zo(1545,1,hp,kW),wo.Kf=function(oo,co){jzt(bo(oo,36),co)},Vo(aE,"BreakingPointProcessor",1545),zo(1546,1,f0,TW),wo.Mb=function(oo){return XQe(bo(oo,10))},Vo(aE,"BreakingPointProcessor/0methodref$isEnd$Type",1546),zo(1547,1,f0,Ore),wo.Mb=function(oo){return QQe(bo(oo,10))},Vo(aE,"BreakingPointProcessor/1methodref$isStart$Type",1547),zo(1548,1,hp,Ire),wo.Kf=function(oo,co){lHt(this,bo(oo,36),co)},Vo(aE,"BreakingPointRemover",1548),zo(1549,1,_1,NP),wo.Cd=function(oo){bo(oo,131).k=!0},Vo(aE,"BreakingPointRemover/lambda$0$Type",1549),zo(811,1,{},m4e),wo.b=0,wo.e=0,wo.f=0,wo.j=0,Vo(aE,"GraphStats",811),zo(812,1,{},e8),wo.Ve=function(oo,co){return lo.Math.max(na(Tl(oo)),na(Tl(co)))},Vo(aE,"GraphStats/0methodref$max$Type",812),zo(813,1,{},lO),wo.Ve=function(oo,co){return lo.Math.max(na(Tl(oo)),na(Tl(co)))},Vo(aE,"GraphStats/2methodref$max$Type",813),zo(1726,1,{},Nre),wo.Ve=function(oo,co){return lTt(Tl(oo),Tl(co))},Vo(aE,"GraphStats/lambda$1$Type",1726),zo(1727,1,{},xLe),wo.Kb=function(oo){return ant(this.a,bo(oo,30))},Vo(aE,"GraphStats/lambda$2$Type",1727),zo(1728,1,{},SLe),wo.Kb=function(oo){return nst(this.a,bo(oo,30))},Vo(aE,"GraphStats/lambda$6$Type",1728),zo(814,1,{},MP),wo.og=function(oo,co){var fo;return fo=bo(bs(oo,(ou(),W8e)),15),fo||(Hu(),Hu(),cv)},wo.pg=function(){return!1},Vo(aE,"ICutIndexCalculator/ManualCutIndexCalculator",814),zo(816,1,{},CW),wo.og=function(oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl;for(Nl=(co.n==null&&Lnt(co),co.n),Ao=(co.d==null&&Lnt(co),co.d),Ys=Al(Am,Iv,28,Nl.length,15,1),Ys[0]=Nl[0],Ls=Nl[0],Io=1;Io=Ss&&(Jl(xo,Ql(Po)),zs=lo.Math.max(zs,Ys[Po-1]-Wo),To+=ws,Rs+=Ys[Po-1]-Rs,Wo=Ys[Po-1],ws=Ao[Po]),ws=lo.Math.max(ws,Ao[Po]),++Po;To+=ws}Zo=lo.Math.min(1/zs,1/co.b/To),Zo>po&&(po=Zo,fo=xo)}return fo},wo.pg=function(){return!1},Vo(aE,"MSDCutIndexHeuristic",816),zo(1683,1,hp,mC),wo.Kf=function(oo,co){XGt(bo(oo,36),co)},Vo(aE,"SingleEdgeGraphWrapper",1683),zo(232,22,{3:1,34:1,22:1,232:1},DD);var l7,BN,FN,vA,nF,c7,PN=V1(Dy,"CenterEdgeLabelPlacementStrategy",232,X1,D7t,L4t),dgt;zo(431,22,{3:1,34:1,22:1,431:1},y2e);var Q9e,Age,Z9e=V1(Dy,"ConstraintCalculationStrategy",431,X1,e$t,B4t),hgt;zo(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},xle),wo.dg=function(){return Pit(this)},wo.qg=function(){return Pit(this)};var XV,rF,J9e,e7e=V1(Dy,"CrossingMinimizationStrategy",322,X1,Y$t,F4t),pgt;zo(351,22,{3:1,34:1,22:1,351:1},Sle);var t7e,Rge,Nee,n7e=V1(Dy,"CuttingStrategy",351,X1,X$t,P4t),ggt;zo(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},qz),wo.dg=function(){return Oot(this)},wo.qg=function(){return Oot(this)};var r7e,Oge,jN,Ige,zN,i7e=V1(Dy,"CycleBreakingStrategy",348,X1,J9t,j4t),mgt;zo(428,22,{3:1,34:1,22:1,428:1},w2e);var Mee,o7e,s7e=V1(Dy,"DirectionCongruency",428,X1,J6t,z4t),vgt;zo(460,22,{3:1,34:1,22:1,460:1},_le);var HN,Nge,u7,bgt=V1(Dy,"EdgeConstraint",460,X1,Q$t,K4t),ygt;zo(283,22,{3:1,34:1,22:1,283:1},LD);var Mge,Dge,Lge,Bge,Dee,Fge,a7e=V1(Dy,"EdgeLabelSideSelection",283,X1,I7t,Y4t),wgt;zo(488,22,{3:1,34:1,22:1,488:1},x2e);var Lee,l7e,c7e=V1(Dy,"EdgeStraighteningStrategy",488,X1,a$t,X4t),xgt;zo(281,22,{3:1,34:1,22:1,281:1},BD);var Pge,u7e,f7e,Bee,d7e,h7e,p7e=V1(Dy,"FixedAlignment",281,X1,N7t,U4t),Sgt;zo(282,22,{3:1,34:1,22:1,282:1},FD);var g7e,m7e,v7e,b7e,iF,y7e,w7e=V1(Dy,"GraphCompactionStrategy",282,X1,M7t,H4t),_gt;zo(259,22,{3:1,34:1,22:1,259:1},g$);var qN,Fee,VN,Tx,oF,Pee,GN,f7,jee,sF,jge=V1(Dy,"GraphProperties",259,X1,bRt,q4t),Egt;zo(299,22,{3:1,34:1,22:1,299:1},Ele);var QV,zge,Hge,qge=V1(Dy,"GreedySwitchType",299,X1,Z$t,V4t),kgt;zo(311,22,{3:1,34:1,22:1,311:1},kle);var TR,ZV,d7,Tgt=V1(Dy,"InLayerConstraint",311,X1,J$t,G4t),Cgt;zo(429,22,{3:1,34:1,22:1,429:1},S2e);var Vge,x7e,S7e=V1(Dy,"InteractiveReferencePoint",429,X1,Z6t,W4t),$gt,_7e,$R,D6,zee,E7e,k7e,Hee,T7e,JV,qee,aF,AR,N5,Gge,Vee,_y,C7e,F3,Jy,Wge,Uge,eG,GT,L6,RR,$7e,OR,tG,bA,JS,Yx,Kge,h7,ip,Z0,A7e,R7e,O7e,I7e,N7e,Yge,Gee,aw,B6,Xge,IR,lF,T_,p7,F6,g7,m7,WN,WT,M7e,Qge,Zge,NR;zo(171,22,{3:1,34:1,22:1,171:1},Vz);var cF,P3,uF,yA,nG,D7e=V1(Dy,"LayerConstraint",171,X1,t7t,Q4t),Agt;zo(859,1,Vx,zse),wo.hf=function(oo){_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,RTe),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),G7e),(_4(),Cp)),s7e),Tu((YS(),Ku))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,OTe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(_f(),!1)),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,YZ),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Q7e),Cp),S7e),Tu(Ku)))),Jp(oo,YZ,V1e,_mt),Jp(oo,YZ,AB,Smt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ITe),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,NTe),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),ym),qp),Tu(Ku)))),_u(oo,new gu(q_t(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,MTe),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),ym),qp),Tu(eC)),As($s(uu,1),Yl,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,DTe),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),o8e),Cp),pRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,LTe),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Ql(7)),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,BTe),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,FTe),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,V1e),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),V7e),Cp),i7e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,xV),p0e),"Node Layering Strategy"),"Strategy for node layering."),e8e),Cp),nRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,PTe),p0e),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Z7e),Cp),D7e),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,jTe),p0e),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),sy),Vm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,zTe),p0e),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Ql(-1)),sy),Vm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,G1e),Jut),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Ql(4)),sy),Vm),Tu(Ku)))),Jp(oo,G1e,xV,Rmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,W1e),Jut),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Ql(2)),sy),Vm),Tu(Ku)))),Jp(oo,W1e,xV,Imt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,U1e),eft),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),J7e),Cp),fRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,K1e),eft),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Ql(0)),sy),Vm),Tu(Ku)))),Jp(oo,K1e,U1e,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Y1e),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Ql(q0)),sy),Vm),Tu(Ku)))),Jp(oo,Y1e,xV,kmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,AB),yN),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),q7e),Cp),e7e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,HTe),yN),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,X1e),yN),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Qm),nm),Tu(Ku)))),Jp(oo,X1e,lJ,Ygt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Q1e),yN),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),ym),qp),Tu(Ku)))),Jp(oo,Q1e,AB,tmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,qTe),yN),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),C7),uu),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,VTe),yN),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),C7),uu),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,GTe),yN),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),sy),Vm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,WTe),yN),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Ql(-1)),sy),Vm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,UTe),tft),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Ql(40)),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Z1e),tft),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),H7e),Cp),qge),Tu(Ku)))),Jp(oo,Z1e,AB,Ugt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,XZ),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),z7e),Cp),qge),Tu(Ku)))),Jp(oo,XZ,AB,Vgt),Jp(oo,XZ,lJ,Ggt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Q9),nft),"Node Placement Strategy"),"Strategy for node placement."),i8e),Cp),sRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,QZ),nft),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),ym),qp),Tu(Ku)))),Jp(oo,QZ,Q9,qmt),Jp(oo,QZ,Q9,Vmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,J1e),rft),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),t8e),Cp),c7e),Tu(Ku)))),Jp(oo,J1e,Q9,Pmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,e0e),rft),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),n8e),Cp),p7e),Tu(Ku)))),Jp(oo,e0e,Q9,zmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,t0e),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Qm),nm),Tu(Ku)))),Jp(oo,t0e,Q9,Wmt),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,n0e),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),Cp),wme),Tu(pm)))),Jp(oo,n0e,Q9,Xmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,r0e),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),r8e),Cp),wme),Tu(Ku)))),Jp(oo,r0e,Q9,Ymt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,KTe),ift),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),K7e),Cp),vRe),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,YTe),ift),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Y7e),Cp),bRe),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ZZ),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),X7e),Cp),wRe),Tu(Ku)))),Jp(oo,ZZ,SV,dmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,JZ),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Qm),nm),Tu(Ku)))),Jp(oo,JZ,SV,pmt),Jp(oo,JZ,ZZ,gmt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,i0e),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Qm),nm),Tu(Ku)))),Jp(oo,i0e,SV,lmt),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,XTe),__),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,QTe),__),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ZTe),__),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,JTe),__),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,eCe),uCe),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Ql(0)),sy),Vm),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,tCe),uCe),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Ql(0)),sy),Vm),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,nCe),uCe),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Ql(0)),sy),Vm),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,o0e),fCe),wut),"Tries to further compact components (disconnected sub-graphs)."),!1),ym),qp),Tu(Ku)))),Jp(oo,o0e,EB,!0),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,rCe),oft),"Post Compaction Strategy"),sft),B7e),Cp),w7e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,iCe),oft),"Post Compaction Constraint Calculation"),sft),L7e),Cp),Z9e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,eJ),dCe),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,s0e),dCe),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Ql(16)),sy),Vm),Tu(Ku)))),Jp(oo,s0e,eJ,!0),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,a0e),dCe),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Ql(5)),sy),Vm),Tu(Ku)))),Jp(oo,a0e,eJ,!0),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,R5),hCe),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),l8e),Cp),ERe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,tJ),hCe),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Qm),nm),Tu(Ku)))),Jp(oo,tJ,R5,cvt),Jp(oo,tJ,R5,uvt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,nJ),hCe),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Qm),nm),Tu(Ku)))),Jp(oo,nJ,R5,dvt),Jp(oo,nJ,R5,hvt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,RB),aft),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),a8e),Cp),n7e),Tu(Ku)))),Jp(oo,RB,R5,yvt),Jp(oo,RB,R5,wvt),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,l0e),aft),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),$_),kx),Tu(Ku)))),Jp(oo,l0e,RB,gvt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,c0e),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),s8e),sy),Vm),Tu(Ku)))),Jp(oo,c0e,RB,vvt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,rJ),lft),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),c8e),Cp),_Re),Tu(Ku)))),Jp(oo,rJ,R5,Ivt),Jp(oo,rJ,R5,Nvt),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,iJ),lft),"Valid Indices for Wrapping"),null),$_),kx),Tu(Ku)))),Jp(oo,iJ,R5,Avt),Jp(oo,iJ,R5,Rvt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,oJ),pCe),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),ym),qp),Tu(Ku)))),Jp(oo,oJ,R5,Evt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,sJ),pCe),"Distance Penalty When Improving Cuts"),null),2),Qm),nm),Tu(Ku)))),Jp(oo,sJ,R5,Svt),Jp(oo,sJ,oJ,!0),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,u0e),pCe),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),ym),qp),Tu(Ku)))),Jp(oo,u0e,R5,Tvt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,oCe),g0e),"Edge Label Side Selection"),"Method to decide on edge label sides."),U7e),Cp),a7e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,sCe),g0e),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),W7e),Cp),PN),mp(Ku,As($s(WE,1),Pl,170,0,[D4]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,aJ),OB),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),j7e),Cp),hRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,aCe),OB),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,lCe),OB),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),ym),qp),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,f0e),OB),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),F7e),Cp),i9e),Tu(Ku)))),Jp(oo,f0e,EB,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,cCe),OB),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),P7e),Cp),iRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,d0e),OB),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Qm),nm),Tu(Ku)))),Jp(oo,d0e,aJ,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,h0e),OB),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Qm),nm),Tu(Ku)))),Jp(oo,h0e,aJ,null),kct((new WU,oo))};var Rgt,Ogt,Igt,L7e,Ngt,B7e,Mgt,F7e,Dgt,Lgt,Bgt,P7e,Fgt,Pgt,jgt,j7e,zgt,Hgt,qgt,z7e,Vgt,Ggt,Wgt,H7e,Ugt,Kgt,Ygt,Xgt,Qgt,Zgt,Jgt,emt,tmt,nmt,q7e,rmt,V7e,imt,G7e,omt,W7e,smt,U7e,amt,lmt,cmt,K7e,umt,Y7e,fmt,X7e,dmt,hmt,pmt,gmt,mmt,vmt,bmt,ymt,wmt,xmt,Q7e,Smt,_mt,Emt,kmt,Tmt,Cmt,Z7e,$mt,Amt,Rmt,Omt,Imt,Nmt,Mmt,J7e,Dmt,e8e,Lmt,Bmt,Fmt,t8e,Pmt,jmt,n8e,zmt,Hmt,qmt,Vmt,Gmt,Wmt,Umt,Kmt,r8e,Ymt,Xmt,Qmt,i8e,Zmt,o8e,Jmt,evt,tvt,nvt,rvt,ivt,ovt,svt,avt,lvt,cvt,uvt,fvt,dvt,hvt,pvt,gvt,mvt,s8e,vvt,bvt,a8e,yvt,wvt,xvt,Svt,_vt,Evt,kvt,Tvt,Cvt,l8e,$vt,Avt,Rvt,Ovt,c8e,Ivt,Nvt;Vo(Dy,"LayeredMetaDataProvider",859),zo(998,1,Vx,WU),wo.hf=function(oo){kct(oo)};var dE,Jge,Wee,fF,Uee,u8e,Kee,wA,Yee,f8e,d8e,Xee,eme,GE,tme,P6,h8e,rG,nme,p8e,Mvt,Dvt,Lvt,Qee,rme,dF,UT,Bvt,Qw,g8e,m8e,Zee,ime,hE,Jee,M5,v8e,b8e,y8e,ome,sme,w8e,R4,ame,x8e,xA,S8e,_8e,E8e,ete,SA,KT,k8e,T8e,Hv,C8e,Fvt,_2,tte,$8e,A8e,R8e,j3,YT,nte,O8e,I8e,rte,j6,N8e,lme,hF,M8e,z6,pF,ite,XT,cme,UN,ote,QT,D8e,L8e,B8e,KN,F8e,Pvt,jvt,zvt,Hvt,H6,_A,Pp,O4,qvt,EA,P8e,YN,j8e,kA,Vvt,XN,z8e,MR,Gvt,Wvt,iG,ume,H8e,oG,_S,v7,b7,q6,ZT,ste,TA,fme,QN,ZN,V6,y7,dme,sG,gF,mF,Uvt,Kvt,Yvt,q8e,Xvt,hme,V8e,G8e,W8e,U8e,pme,K8e,Y8e,X8e,Q8e,gme,ate;Vo(Dy,"LayeredOptions",998),zo(999,1,{},DP),wo.sf=function(){var oo;return oo=new LFe,oo},wo.tf=function(oo){},Vo(Dy,"LayeredOptions/LayeredFactory",999),zo(1391,1,{}),wo.a=0;var Qvt;Vo(wy,"ElkSpacings/AbstractSpacingsBuilder",1391),zo(792,1391,{},vke);var lte,Zvt;Vo(Dy,"LayeredSpacings/LayeredSpacingsBuilder",792),zo(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},o9),wo.dg=function(){return jst(this)},wo.qg=function(){return jst(this)};var JN,mme,eM,Z8e,J8e,eRe,cte,vme,tRe,nRe=V1(Dy,"LayeringStrategy",265,X1,K8t,Z4t),Jvt;zo(390,22,{3:1,34:1,22:1,390:1},Tle);var bme,rRe,ute,iRe=V1(Dy,"LongEdgeOrderingStrategy",390,X1,eAt,J4t),ebt;zo(203,22,{3:1,34:1,22:1,203:1},JK);var w7,x7,fte,yme,wme=V1(Dy,"NodeFlexibility",203,X1,c9t,e3t),tbt;zo(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},Gz),wo.dg=function(){return Rot(this)},wo.qg=function(){return Rot(this)};var vF,xme,Sme,bF,oRe,sRe=V1(Dy,"NodePlacementStrategy",323,X1,e7t,t3t),nbt;zo(243,22,{3:1,34:1,22:1,243:1},m$);var aRe,G6,CA,aG,lRe,cRe,lG,uRe,dte,hte,fRe=V1(Dy,"NodePromotionStrategy",243,X1,yRt,n3t),rbt;zo(284,22,{3:1,34:1,22:1,284:1},eY);var dRe,I4,_me,Eme,hRe=V1(Dy,"OrderingStrategy",284,X1,u9t,r3t),ibt;zo(430,22,{3:1,34:1,22:1,430:1},_2e);var kme,Tme,pRe=V1(Dy,"PortSortingStrategy",430,X1,t$t,i3t),obt;zo(463,22,{3:1,34:1,22:1,463:1},Cle);var lw,u2,yF,sbt=V1(Dy,"PortType",463,X1,tAt,o3t),abt;zo(387,22,{3:1,34:1,22:1,387:1},$le);var gRe,Cme,mRe,vRe=V1(Dy,"SelfLoopDistributionStrategy",387,X1,nAt,s3t),lbt;zo(349,22,{3:1,34:1,22:1,349:1},Ale);var $me,cG,Ame,bRe=V1(Dy,"SelfLoopOrderingStrategy",349,X1,rAt,a3t),cbt;zo(312,1,{312:1},Slt),Vo(Dy,"Spacings",312),zo(350,22,{3:1,34:1,22:1,350:1},Rle);var Rme,yRe,wF,wRe=V1(Dy,"SplineRoutingMode",350,X1,iAt,l3t),ubt;zo(352,22,{3:1,34:1,22:1,352:1},Ole);var Ome,xRe,SRe,_Re=V1(Dy,"ValidifyStrategy",352,X1,oAt,c3t),fbt;zo(388,22,{3:1,34:1,22:1,388:1},Ile);var $A,Ime,tM,ERe=V1(Dy,"WrappingStrategy",388,X1,sAt,u3t),dbt;zo(1398,1,Ev,qU),wo.rg=function(oo){return bo(oo,36),hbt},wo.Kf=function(oo,co){qWt(this,bo(oo,36),co)};var hbt;Vo(dJ,"DepthFirstCycleBreaker",1398),zo(793,1,Ev,Lxe),wo.rg=function(oo){return bo(oo,36),pbt},wo.Kf=function(oo,co){UYt(this,bo(oo,36),co)},wo.sg=function(oo){return bo(cu(oo,qQ(this.d,oo.c.length)),10)};var pbt;Vo(dJ,"GreedyCycleBreaker",793),zo(1401,793,Ev,IHe),wo.sg=function(oo){var co,fo,po,vo;for(vo=null,co=q0,po=new _s(oo);po.a1&&(lu(au(bs(zm((qu(0,oo.c.length),bo(oo.c[0],10))),(ou(),P6))))?qot(oo,this.d,bo(this,669)):(Hu(),Up(oo,this.d)),DJe(this.e,oo))},wo.lg=function(oo,co,fo,po){var vo,xo,Eo,To,Ao,Io,Po;for(co!=ZGe(fo,oo.length)&&(xo=oo[co-(fo?1:-1)],f_e(this.f,xo,fo?(xv(),u2):(xv(),lw))),vo=oo[co][0],Po=!po||vo.k==(a1(),Kp),Io=f_(oo[co]),this.vg(Io,Po,!1,fo),Eo=0,Ao=new _s(Io);Ao.a"),oo0?due(this.a,oo[co-1],oo[co]):!fo&&co1&&(lu(au(bs(zm((qu(0,oo.c.length),bo(oo.c[0],10))),(ou(),P6))))?qot(oo,this.d,this):(Hu(),Up(oo,this.d)),lu(au(bs(zm((qu(0,oo.c.length),bo(oo.c[0],10))),P6)))||DJe(this.e,oo))},Vo(K2,"ModelOrderBarycenterHeuristic",669),zo(1866,1,g0,DLe),wo.Ne=function(oo,co){return qFt(this.a,bo(oo,10),bo(co,10))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(K2,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),zo(1423,1,Ev,Hse),wo.rg=function(oo){var co;return bo(oo,36),co=mY(Rbt),_0(co,(Km(),zy),(rv(),See)),co},wo.Kf=function(oo,co){k6t((bo(oo,36),co))};var Rbt;Vo(K2,"NoCrossingMinimizer",1423),zo(809,413,YCe,Wye),wo.tg=function(oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo;switch(Wo=this.g,fo.g){case 1:{for(vo=0,xo=0,Po=new _s(oo.j);Po.a1&&(vo.j==(nu(),p1)?this.b[oo]=!0:vo.j==l1&&oo>0&&(this.b[oo-1]=!0))},wo.f=0,Vo(zE,"AllCrossingsCounter",1861),zo(595,1,{},aQ),wo.b=0,wo.d=0,Vo(zE,"BinaryIndexedTree",595),zo(532,1,{},dH);var CRe,gte;Vo(zE,"CrossingsCounter",532),zo(1950,1,g0,LLe),wo.Ne=function(oo,co){return QTt(this.a,bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(zE,"CrossingsCounter/lambda$0$Type",1950),zo(1951,1,g0,BLe),wo.Ne=function(oo,co){return ZTt(this.a,bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(zE,"CrossingsCounter/lambda$1$Type",1951),zo(1952,1,g0,FLe),wo.Ne=function(oo,co){return JTt(this.a,bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(zE,"CrossingsCounter/lambda$2$Type",1952),zo(1953,1,g0,PLe),wo.Ne=function(oo,co){return eCt(this.a,bo(oo,12),bo(co,12))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(zE,"CrossingsCounter/lambda$3$Type",1953),zo(1954,1,_1,jLe),wo.Cd=function(oo){t8t(this.a,bo(oo,12))},Vo(zE,"CrossingsCounter/lambda$4$Type",1954),zo(1955,1,f0,zLe),wo.Mb=function(oo){return kEt(this.a,bo(oo,12))},Vo(zE,"CrossingsCounter/lambda$5$Type",1955),zo(1956,1,_1,HLe),wo.Cd=function(oo){_He(this,oo)},Vo(zE,"CrossingsCounter/lambda$6$Type",1956),zo(1957,1,_1,Mze),wo.Cd=function(oo){var co;qO(),h3(this.b,(co=this.a,bo(oo,12),co))},Vo(zE,"CrossingsCounter/lambda$7$Type",1957),zo(839,1,rE,uO),wo.Lb=function(oo){return qO(),gp(bo(oo,12),(Wl(),aw))},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return qO(),gp(bo(oo,12),(Wl(),aw))},Vo(zE,"CrossingsCounter/lambda$8$Type",839),zo(1949,1,{},qLe),Vo(zE,"HyperedgeCrossingsCounter",1949),zo(478,1,{34:1,478:1},BVe),wo.Fd=function(oo){return eMt(this,bo(oo,478))},wo.b=0,wo.c=0,wo.e=0,wo.f=0;var MXt=Vo(zE,"HyperedgeCrossingsCounter/Hyperedge",478);zo(374,1,{34:1,374:1},lX),wo.Fd=function(oo){return pzt(this,bo(oo,374))},wo.b=0,wo.c=0;var Obt=Vo(zE,"HyperedgeCrossingsCounter/HyperedgeCorner",374);zo(531,22,{3:1,34:1,22:1,531:1},E2e);var SF,_F,Ibt=V1(zE,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,X1,n$t,d3t),Nbt;zo(1425,1,Ev,qse),wo.rg=function(oo){return bo(bs(bo(oo,36),(Wl(),Jy)),21).Hc((Sv(),Tx))?Mbt:null},wo.Kf=function(oo,co){kLt(this,bo(oo,36),co)};var Mbt;Vo(kv,"InteractiveNodePlacer",1425),zo(1426,1,Ev,Vse),wo.rg=function(oo){return bo(bs(bo(oo,36),(Wl(),Jy)),21).Hc((Sv(),Tx))?Dbt:null},wo.Kf=function(oo,co){cDt(this,bo(oo,36),co)};var Dbt,mte,vte;Vo(kv,"LinearSegmentsNodePlacer",1426),zo(261,1,{34:1,261:1},wye),wo.Fd=function(oo){return B_t(this,bo(oo,261))},wo.Fb=function(oo){var co;return Hs(oo,261)?(co=bo(oo,261),this.b==co.b):!1},wo.Hb=function(){return this.b},wo.Ib=function(){return"ls"+_3(this.e)},wo.a=0,wo.b=0,wo.c=-1,wo.d=-1,wo.g=0;var Lbt=Vo(kv,"LinearSegmentsNodePlacer/LinearSegment",261);zo(1428,1,Ev,lWe),wo.rg=function(oo){return bo(bs(bo(oo,36),(Wl(),Jy)),21).Hc((Sv(),Tx))?Bbt:null},wo.Kf=function(oo,co){FYt(this,bo(oo,36),co)},wo.b=0,wo.g=0;var Bbt;Vo(kv,"NetworkSimplexPlacer",1428),zo(1447,1,g0,Lre),wo.Ne=function(oo,co){return Oy(bo(oo,17).a,bo(co,17).a)},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(kv,"NetworkSimplexPlacer/0methodref$compare$Type",1447),zo(1449,1,g0,OW),wo.Ne=function(oo,co){return Oy(bo(oo,17).a,bo(co,17).a)},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(kv,"NetworkSimplexPlacer/1methodref$compare$Type",1449),zo(655,1,{655:1},Dze);var DXt=Vo(kv,"NetworkSimplexPlacer/EdgeRep",655);zo(412,1,{412:1},mSe),wo.b=!1;var LXt=Vo(kv,"NetworkSimplexPlacer/NodeRep",412);zo(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},GFe),Vo(kv,"NetworkSimplexPlacer/Path",515),zo(1429,1,{},FS),wo.Kb=function(oo){return bo(oo,18).d.i.k},Vo(kv,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),zo(1430,1,f0,LP),wo.Mb=function(oo){return bo(oo,273)==(a1(),km)},Vo(kv,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),zo(1431,1,{},IW),wo.Kb=function(oo){return bo(oo,18).d.i},Vo(kv,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),zo(1432,1,f0,VLe),wo.Mb=function(oo){return xVe($tt(bo(oo,10)))},Vo(kv,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),zo(1433,1,f0,rT),wo.Mb=function(oo){return DTt(bo(oo,12))},Vo(kv,"NetworkSimplexPlacer/lambda$0$Type",1433),zo(1434,1,_1,Lze),wo.Cd=function(oo){mkt(this.a,this.b,bo(oo,12))},Vo(kv,"NetworkSimplexPlacer/lambda$1$Type",1434),zo(1443,1,_1,GLe),wo.Cd=function(oo){qPt(this.a,bo(oo,18))},Vo(kv,"NetworkSimplexPlacer/lambda$10$Type",1443),zo(1444,1,{},BP),wo.Kb=function(oo){return Pw(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(kv,"NetworkSimplexPlacer/lambda$11$Type",1444),zo(1445,1,_1,WLe),wo.Cd=function(oo){Bqt(this.a,bo(oo,10))},Vo(kv,"NetworkSimplexPlacer/lambda$12$Type",1445),zo(1446,1,{},MM),wo.Kb=function(oo){return Pw(),Ql(bo(oo,125).e)},Vo(kv,"NetworkSimplexPlacer/lambda$13$Type",1446),zo(1448,1,{},XA),wo.Kb=function(oo){return Pw(),Ql(bo(oo,125).e)},Vo(kv,"NetworkSimplexPlacer/lambda$15$Type",1448),zo(1450,1,f0,NW),wo.Mb=function(oo){return Pw(),bo(oo,412).c.k==(a1(),Vp)},Vo(kv,"NetworkSimplexPlacer/lambda$17$Type",1450),zo(1451,1,f0,L_),wo.Mb=function(oo){return Pw(),bo(oo,412).c.j.c.length>1},Vo(kv,"NetworkSimplexPlacer/lambda$18$Type",1451),zo(1452,1,_1,mUe),wo.Cd=function(oo){SNt(this.c,this.b,this.d,this.a,bo(oo,412))},wo.c=0,wo.d=0,Vo(kv,"NetworkSimplexPlacer/lambda$19$Type",1452),zo(1435,1,{},FP),wo.Kb=function(oo){return Pw(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(kv,"NetworkSimplexPlacer/lambda$2$Type",1435),zo(1453,1,_1,ULe),wo.Cd=function(oo){bkt(this.a,bo(oo,12))},wo.a=0,Vo(kv,"NetworkSimplexPlacer/lambda$20$Type",1453),zo(1454,1,{},Bre),wo.Kb=function(oo){return Pw(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(kv,"NetworkSimplexPlacer/lambda$21$Type",1454),zo(1455,1,_1,KLe),wo.Cd=function(oo){Rkt(this.a,bo(oo,10))},Vo(kv,"NetworkSimplexPlacer/lambda$22$Type",1455),zo(1456,1,f0,Fre),wo.Mb=function(oo){return xVe(oo)},Vo(kv,"NetworkSimplexPlacer/lambda$23$Type",1456),zo(1457,1,{},Pre),wo.Kb=function(oo){return Pw(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(kv,"NetworkSimplexPlacer/lambda$24$Type",1457),zo(1458,1,f0,YLe),wo.Mb=function(oo){return PEt(this.a,bo(oo,10))},Vo(kv,"NetworkSimplexPlacer/lambda$25$Type",1458),zo(1459,1,_1,Bze),wo.Cd=function(oo){UFt(this.a,this.b,bo(oo,10))},Vo(kv,"NetworkSimplexPlacer/lambda$26$Type",1459),zo(1460,1,f0,PP),wo.Mb=function(oo){return Pw(),!dv(bo(oo,18))},Vo(kv,"NetworkSimplexPlacer/lambda$27$Type",1460),zo(1461,1,f0,jre),wo.Mb=function(oo){return Pw(),!dv(bo(oo,18))},Vo(kv,"NetworkSimplexPlacer/lambda$28$Type",1461),zo(1462,1,{},XLe),wo.Ve=function(oo,co){return vkt(this.a,bo(oo,30),bo(co,30))},Vo(kv,"NetworkSimplexPlacer/lambda$29$Type",1462),zo(1436,1,{},fO),wo.Kb=function(oo){return Pw(),new Ou(null,new GC(new x1(E1(Wp(bo(oo,10)).a.Kc(),new ko))))},Vo(kv,"NetworkSimplexPlacer/lambda$3$Type",1436),zo(1437,1,f0,MW),wo.Mb=function(oo){return Pw(),KAt(bo(oo,18))},Vo(kv,"NetworkSimplexPlacer/lambda$4$Type",1437),zo(1438,1,_1,QLe),wo.Cd=function(oo){WGt(this.a,bo(oo,18))},Vo(kv,"NetworkSimplexPlacer/lambda$5$Type",1438),zo(1439,1,{},zre),wo.Kb=function(oo){return Pw(),new Ou(null,new Du(bo(oo,30).a,16))},Vo(kv,"NetworkSimplexPlacer/lambda$6$Type",1439),zo(1440,1,f0,Hre),wo.Mb=function(oo){return Pw(),bo(oo,10).k==(a1(),Vp)},Vo(kv,"NetworkSimplexPlacer/lambda$7$Type",1440),zo(1441,1,{},dO),wo.Kb=function(oo){return Pw(),new Ou(null,new GC(new x1(E1(_5(bo(oo,10)).a.Kc(),new ko))))},Vo(kv,"NetworkSimplexPlacer/lambda$8$Type",1441),zo(1442,1,f0,qre),wo.Mb=function(oo){return Pw(),MTt(bo(oo,18))},Vo(kv,"NetworkSimplexPlacer/lambda$9$Type",1442),zo(1424,1,Ev,Gse),wo.rg=function(oo){return bo(bs(bo(oo,36),(Wl(),Jy)),21).Hc((Sv(),Tx))?Fbt:null},wo.Kf=function(oo,co){TWt(bo(oo,36),co)};var Fbt;Vo(kv,"SimpleNodePlacer",1424),zo(185,1,{185:1},z9),wo.Ib=function(){var oo;return oo="",this.c==(Y_(),W6)?oo+=dR:this.c==N4&&(oo+=fR),this.o==(c_(),JT)?oo+=S1e:this.o==C_?oo+="UP":oo+="BALANCED",oo},Vo(O3,"BKAlignedLayout",185),zo(523,22,{3:1,34:1,22:1,523:1},k2e);var N4,W6,Pbt=V1(O3,"BKAlignedLayout/HDirection",523,X1,i$t,h3t),jbt;zo(522,22,{3:1,34:1,22:1,522:1},T2e);var JT,C_,zbt=V1(O3,"BKAlignedLayout/VDirection",522,X1,o$t,p3t),Hbt;zo(1699,1,{},Fze),Vo(O3,"BKAligner",1699),zo(1702,1,{},trt),Vo(O3,"BKCompactor",1702),zo(663,1,{663:1},Vre),wo.a=0,Vo(O3,"BKCompactor/ClassEdge",663),zo(467,1,{467:1},HFe),wo.a=null,wo.b=0,Vo(O3,"BKCompactor/ClassNode",467),zo(1427,1,Ev,Hze),wo.rg=function(oo){return bo(bs(bo(oo,36),(Wl(),Jy)),21).Hc((Sv(),Tx))?qbt:null},wo.Kf=function(oo,co){nXt(this,bo(oo,36),co)},wo.d=!1;var qbt;Vo(O3,"BKNodePlacer",1427),zo(1700,1,{},jP),wo.d=0,Vo(O3,"NeighborhoodInformation",1700),zo(1701,1,g0,ZLe),wo.Ne=function(oo,co){return R8t(this,bo(oo,42),bo(co,42))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(O3,"NeighborhoodInformation/NeighborComparator",1701),zo(823,1,{}),Vo(O3,"ThresholdStrategy",823),zo(1825,823,{},qFe),wo.wg=function(oo,co,fo){return this.a.o==(c_(),C_)?Tp:am},wo.xg=function(){},Vo(O3,"ThresholdStrategy/NullThresholdStrategy",1825),zo(587,1,{587:1},qze),wo.c=!1,wo.d=!1,Vo(O3,"ThresholdStrategy/Postprocessable",587),zo(1826,823,{},VFe),wo.wg=function(oo,co,fo){var po,vo,xo;return vo=co==fo,po=this.a.a[fo.p]==co,vo||po?(xo=oo,this.a.c==(Y_(),W6)?(vo&&(xo=xhe(this,co,!0)),!isNaN(xo)&&!isFinite(xo)&&po&&(xo=xhe(this,fo,!1))):(vo&&(xo=xhe(this,co,!0)),!isNaN(xo)&&!isFinite(xo)&&po&&(xo=xhe(this,fo,!1))),xo):oo},wo.xg=function(){for(var oo,co,fo,po,vo;this.d.b!=0;)vo=bo(w$t(this.d),587),po=Rat(this,vo),po.a&&(oo=po.a,fo=lu(this.a.f[this.a.g[vo.b.p].p]),!(!fo&&!dv(oo)&&oo.c.i.c==oo.d.i.c)&&(co=Dot(this,vo),co||HEt(this.e,vo)));for(;this.e.a.c.length!=0;)Dot(this,bo(Oet(this.e),587))},Vo(O3,"ThresholdStrategy/SimpleThresholdStrategy",1826),zo(645,1,{645:1,188:1,196:1},DW),wo.dg=function(){return LJe(this)},wo.qg=function(){return LJe(this)};var Nme;Vo(w0e,"EdgeRouterFactory",645),zo(1485,1,Ev,Wse),wo.rg=function(oo){return hqt(bo(oo,36))},wo.Kf=function(oo,co){IWt(bo(oo,36),co)};var Vbt,Gbt,Wbt,Ubt,Kbt,$Re,Ybt,Xbt;Vo(w0e,"OrthogonalEdgeRouter",1485),zo(1478,1,Ev,zze),wo.rg=function(oo){return DLt(bo(oo,36))},wo.Kf=function(oo,co){nYt(this,bo(oo,36),co)};var Qbt,Zbt,Jbt,eyt,fG,tyt;Vo(w0e,"PolylineEdgeRouter",1478),zo(1479,1,rE,Wre),wo.Lb=function(oo){return pEe(bo(oo,10))},wo.Fb=function(oo){return this===oo},wo.Mb=function(oo){return pEe(bo(oo,10))},Vo(w0e,"PolylineEdgeRouter/1",1479),zo(1872,1,f0,Ure),wo.Mb=function(oo){return bo(oo,132).c==(VS(),z3)},Vo(XS,"HyperEdgeCycleDetector/lambda$0$Type",1872),zo(1873,1,{},LW),wo.Ze=function(oo){return bo(oo,132).d},Vo(XS,"HyperEdgeCycleDetector/lambda$1$Type",1873),zo(1874,1,f0,zP),wo.Mb=function(oo){return bo(oo,132).c==(VS(),z3)},Vo(XS,"HyperEdgeCycleDetector/lambda$2$Type",1874),zo(1875,1,{},Kre),wo.Ze=function(oo){return bo(oo,132).d},Vo(XS,"HyperEdgeCycleDetector/lambda$3$Type",1875),zo(1876,1,{},HP),wo.Ze=function(oo){return bo(oo,132).d},Vo(XS,"HyperEdgeCycleDetector/lambda$4$Type",1876),zo(1877,1,{},Gre),wo.Ze=function(oo){return bo(oo,132).d},Vo(XS,"HyperEdgeCycleDetector/lambda$5$Type",1877),zo(118,1,{34:1,118:1},nq),wo.Fd=function(oo){return F_t(this,bo(oo,118))},wo.Fb=function(oo){var co;return Hs(oo,118)?(co=bo(oo,118),this.g==co.g):!1},wo.Hb=function(){return this.g},wo.Ib=function(){var oo,co,fo,po;for(oo=new Bw("{"),po=new _s(this.n);po.a"+this.b+" ("+r5t(this.c)+")"},wo.d=0,Vo(XS,"HyperEdgeSegmentDependency",132),zo(528,22,{3:1,34:1,22:1,528:1},C2e);var z3,AA,nyt=V1(XS,"HyperEdgeSegmentDependency/DependencyType",528,X1,s$t,g3t),ryt;zo(1878,1,{},JLe),Vo(XS,"HyperEdgeSegmentSplitter",1878),zo(1879,1,{},GPe),wo.a=0,wo.b=0,Vo(XS,"HyperEdgeSegmentSplitter/AreaRating",1879),zo(339,1,{339:1},wce),wo.a=0,wo.b=0,wo.c=0,Vo(XS,"HyperEdgeSegmentSplitter/FreeArea",339),zo(1880,1,g0,BW),wo.Ne=function(oo,co){return r4t(bo(oo,118),bo(co,118))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(XS,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),zo(1881,1,_1,vUe),wo.Cd=function(oo){I9t(this.a,this.d,this.c,this.b,bo(oo,118))},wo.b=0,Vo(XS,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),zo(1882,1,{},FW),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,118).e,16))},Vo(XS,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),zo(1883,1,{},PW),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,118).j,16))},Vo(XS,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),zo(1884,1,{},DM),wo.Ye=function(oo){return na(Tl(oo))},Vo(XS,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),zo(664,1,{},Gce),wo.a=0,wo.b=0,wo.c=0,Vo(XS,"OrthogonalRoutingGenerator",664),zo(1703,1,{},Yre),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,118).e,16))},Vo(XS,"OrthogonalRoutingGenerator/lambda$0$Type",1703),zo(1704,1,{},jW),wo.Kb=function(oo){return new Ou(null,new Du(bo(oo,118).j,16))},Vo(XS,"OrthogonalRoutingGenerator/lambda$1$Type",1704),zo(670,1,{}),Vo(x0e,"BaseRoutingDirectionStrategy",670),zo(1870,670,{},KFe),wo.yg=function(oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss;if(!(oo.r&&!oo.q))for(Po=co+oo.o*fo,Io=new _s(oo.n);Io.aoE&&(xo=Po,vo=oo,po=new Vl(Wo,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1),Xo=oo.r,Xo&&(Zo=na(Tl(wx(Xo.e,0))),po=new Vl(Zo,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1),xo=co+Xo.o*fo,vo=Xo,po=new Vl(Zo,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1)),po=new Vl(Ss,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1)))},wo.zg=function(oo){return oo.i.n.a+oo.n.a+oo.a.a},wo.Ag=function(){return nu(),z1},wo.Bg=function(){return nu(),s1},Vo(x0e,"NorthToSouthRoutingStrategy",1870),zo(1871,670,{},YFe),wo.yg=function(oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss;if(!(oo.r&&!oo.q))for(Po=co-oo.o*fo,Io=new _s(oo.n);Io.aoE&&(xo=Po,vo=oo,po=new Vl(Wo,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1),Xo=oo.r,Xo&&(Zo=na(Tl(wx(Xo.e,0))),po=new Vl(Zo,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1),xo=co-Xo.o*fo,vo=Xo,po=new Vl(Zo,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1)),po=new Vl(Ss,xo),y0(Eo.a,po),v6(this,Eo,vo,po,!1)))},wo.zg=function(oo){return oo.i.n.a+oo.n.a+oo.a.a},wo.Ag=function(){return nu(),s1},wo.Bg=function(){return nu(),z1},Vo(x0e,"SouthToNorthRoutingStrategy",1871),zo(1869,670,{},XFe),wo.yg=function(oo,co,fo){var po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss;if(!(oo.r&&!oo.q))for(Po=co+oo.o*fo,Io=new _s(oo.n);Io.aoE&&(xo=Po,vo=oo,po=new Vl(xo,Wo),y0(Eo.a,po),v6(this,Eo,vo,po,!0),Xo=oo.r,Xo&&(Zo=na(Tl(wx(Xo.e,0))),po=new Vl(xo,Zo),y0(Eo.a,po),v6(this,Eo,vo,po,!0),xo=co+Xo.o*fo,vo=Xo,po=new Vl(xo,Zo),y0(Eo.a,po),v6(this,Eo,vo,po,!0)),po=new Vl(xo,Ss),y0(Eo.a,po),v6(this,Eo,vo,po,!0)))},wo.zg=function(oo){return oo.i.n.b+oo.n.b+oo.a.b},wo.Ag=function(){return nu(),p1},wo.Bg=function(){return nu(),l1},Vo(x0e,"WestToEastRoutingStrategy",1869),zo(828,1,{},d3e),wo.Ib=function(){return _3(this.a)},wo.b=0,wo.c=!1,wo.d=!1,wo.f=0,Vo(oA,"NubSpline",828),zo(418,1,{418:1},pst,YUe),Vo(oA,"NubSpline/PolarCP",418),zo(1480,1,Ev,Unt),wo.rg=function(oo){return EBt(bo(oo,36))},wo.Kf=function(oo,co){xYt(this,bo(oo,36),co)};var iyt,oyt,syt,ayt,lyt;Vo(oA,"SplineEdgeRouter",1480),zo(274,1,{274:1},OX),wo.Ib=function(){return this.a+" ->("+this.c+") "+this.b},wo.c=0,Vo(oA,"SplineEdgeRouter/Dependency",274),zo(465,22,{3:1,34:1,22:1,465:1},$2e);var H3,S7,cyt=V1(oA,"SplineEdgeRouter/SideToProcess",465,X1,d$t,m3t),uyt;zo(1481,1,f0,zW),wo.Mb=function(oo){return sB(),!bo(oo,131).o},Vo(oA,"SplineEdgeRouter/lambda$0$Type",1481),zo(1482,1,{},Xre),wo.Ze=function(oo){return sB(),bo(oo,131).v+1},Vo(oA,"SplineEdgeRouter/lambda$1$Type",1482),zo(1483,1,_1,Vze),wo.Cd=function(oo){FTt(this.a,this.b,bo(oo,42))},Vo(oA,"SplineEdgeRouter/lambda$2$Type",1483),zo(1484,1,_1,Gze),wo.Cd=function(oo){PTt(this.a,this.b,bo(oo,42))},Vo(oA,"SplineEdgeRouter/lambda$3$Type",1484),zo(131,1,{34:1,131:1},Tit,b3e),wo.Fd=function(oo){return z_t(this,bo(oo,131))},wo.b=0,wo.e=!1,wo.f=0,wo.g=0,wo.j=!1,wo.k=!1,wo.n=0,wo.o=!1,wo.p=!1,wo.q=!1,wo.s=0,wo.u=0,wo.v=0,wo.F=0,Vo(oA,"SplineSegment",131),zo(468,1,{468:1},HW),wo.a=0,wo.b=!1,wo.c=!1,wo.d=!1,wo.e=!1,wo.f=0,Vo(oA,"SplineSegment/EdgeInformation",468),zo(1198,1,{},Qre),Vo(I5,gTe,1198),zo(1199,1,g0,qP),wo.Ne=function(oo,co){return sjt(bo(oo,121),bo(co,121))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(I5,Eut,1199),zo(1197,1,{},aje),Vo(I5,"MrTree",1197),zo(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},tY),wo.dg=function(){return Uit(this)},wo.qg=function(){return Uit(this)};var bte,EF,kF,TF,ARe=V1(I5,"TreeLayoutPhases",405,X1,g9t,v3t),fyt;zo(1112,205,DT,DVe),wo.rf=function(oo,co){var fo,po,vo,xo,Eo,To,Ao,Io;for(lu(au(zl(oo,(by(),eOe))))||CH((fo=new dD((NC(),new kC(oo))),fo)),Eo=co.eh(E0e),Eo.Ug("build tGraph",1),To=(Ao=new LH,Qv(Ao,oo),Fl(Ao,(fp(),$F),oo),Io=new H1,ZVt(oo,Ao,Io),vGt(oo,Ao,Io),Ao),Eo.Vg(),Eo=co.eh(E0e),Eo.Ug("Split graph",1),xo=iGt(this.a,To),Eo.Vg(),vo=new _s(xo);vo.a"+mT(this.c):"e_"+dp(this)},Vo(IB,"TEdge",65),zo(121,137,{3:1,121:1,96:1,137:1},LH),wo.Ib=function(){var oo,co,fo,po,vo;for(vo=null,po=G1(this.b,0);po.b!=po.d.c;)fo=bo(q1(po),40),vo+=(fo.c==null||fo.c.length==0?"n_"+fo.g:"n_"+fo.c)+` `;for(co=G1(this.a,0);co.b!=co.d.c;)oo=bo(q1(co),65),vo+=(oo.b&&oo.c?mT(oo.b)+"->"+mT(oo.c):"e_"+dp(oo))+` -`;return vo};var BXt=Vo(IB,"TGraph",121);zo(643,508,{3:1,508:1,643:1,96:1,137:1}),Vo(IB,"TShape",643),zo(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},Efe),wo.Ib=function(){return mT(this)};var yte=Vo(IB,"TNode",40);zo(236,1,LE,s5),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){var oo;return oo=G1(this.a.d,0),new e9(oo)},Vo(IB,"TNode/2",236),zo(329,1,$m,e9),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){return bo(q1(this.a),65).c},wo.Ob=function(){return Oz(this.a)},wo.Qb=function(){Zue(this.a)},Vo(IB,"TNode/2/1",329),zo(1923,1,hp,eie),wo.Kf=function(oo,co){QYt(this,bo(oo,121),co)},Vo(Xy,"CompactionProcessor",1923),zo(1924,1,g0,iBe),wo.Ne=function(oo,co){return FRt(this.a,bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$0$Type",1924),zo(1925,1,f0,Uze),wo.Mb=function(oo){return q6t(this.b,this.a,bo(oo,42))},wo.a=0,wo.b=0,Vo(Xy,"CompactionProcessor/lambda$1$Type",1925),zo(1934,1,g0,hO),wo.Ne=function(oo,co){return MCt(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$10$Type",1934),zo(1935,1,g0,VW),wo.Ne=function(oo,co){return Kkt(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$11$Type",1935),zo(1936,1,g0,tie),wo.Ne=function(oo,co){return DCt(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$12$Type",1936),zo(1926,1,f0,oBe),wo.Mb=function(oo){return Okt(this.a,bo(oo,42))},wo.a=0,Vo(Xy,"CompactionProcessor/lambda$2$Type",1926),zo(1927,1,f0,sBe),wo.Mb=function(oo){return Ikt(this.a,bo(oo,42))},wo.a=0,Vo(Xy,"CompactionProcessor/lambda$3$Type",1927),zo(1928,1,f0,nie),wo.Mb=function(oo){return bo(oo,40).c.indexOf(pJ)==-1},Vo(Xy,"CompactionProcessor/lambda$4$Type",1928),zo(1929,1,{},aBe),wo.Kb=function(oo){return WAt(this.a,bo(oo,40))},wo.a=0,Vo(Xy,"CompactionProcessor/lambda$5$Type",1929),zo(1930,1,{},lBe),wo.Kb=function(oo){return e8t(this.a,bo(oo,40))},wo.a=0,Vo(Xy,"CompactionProcessor/lambda$6$Type",1930),zo(1931,1,g0,cBe),wo.Ne=function(oo,co){return f7t(this.a,bo(oo,240),bo(co,240))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$7$Type",1931),zo(1932,1,g0,uBe),wo.Ne=function(oo,co){return d7t(this.a,bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$8$Type",1932),zo(1933,1,g0,G5),wo.Ne=function(oo,co){return Ykt(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$9$Type",1933),zo(1921,1,hp,rie),wo.Kf=function(oo,co){Uqt(bo(oo,121),co)},Vo(Xy,"DirectionProcessor",1921),zo(1913,1,hp,MVe),wo.Kf=function(oo,co){gGt(this,bo(oo,121),co)},Vo(Xy,"FanProcessor",1913),zo(1937,1,hp,LM),wo.Kf=function(oo,co){Dqt(bo(oo,121),co)},Vo(Xy,"GraphBoundsProcessor",1937),zo(1938,1,{},WP),wo.Ye=function(oo){return bo(oo,40).e.a},Vo(Xy,"GraphBoundsProcessor/lambda$0$Type",1938),zo(1939,1,{},GW),wo.Ye=function(oo){return bo(oo,40).e.b},Vo(Xy,"GraphBoundsProcessor/lambda$1$Type",1939),zo(1940,1,{},WW),wo.Ye=function(oo){return pEt(bo(oo,40))},Vo(Xy,"GraphBoundsProcessor/lambda$2$Type",1940),zo(1941,1,{},r5),wo.Ye=function(oo){return hEt(bo(oo,40))},Vo(Xy,"GraphBoundsProcessor/lambda$3$Type",1941),zo(262,22,{3:1,34:1,22:1,262:1,196:1},MC),wo.dg=function(){switch(this.g){case 0:return new uPe;case 1:return new MVe;case 2:return new cPe;case 3:return new KW;case 4:return new UP;case 8:return new a$;case 5:return new rie;case 6:return new YW;case 7:return new eie;case 9:return new LM;case 10:return new YP;default:throw Cs(new i1(j1e+(this.f!=null?this.f:""+this.g)))}};var RRe,ORe,IRe,NRe,MRe,DRe,LRe,BRe,FRe,PRe,Mme,FXt=V1(Xy,z1e,262,X1,$Je,b3t),dyt;zo(1920,1,hp,a$),wo.Kf=function(oo,co){KKt(bo(oo,121),co)},Vo(Xy,"LevelCoordinatesProcessor",1920),zo(1918,1,hp,UP),wo.Kf=function(oo,co){gHt(this,bo(oo,121),co)},wo.a=0,Vo(Xy,"LevelHeightProcessor",1918),zo(1919,1,LE,UW),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){return Hu(),MO(),NN},Vo(Xy,"LevelHeightProcessor/1",1919),zo(1914,1,hp,cPe),wo.Kf=function(oo,co){Aqt(this,bo(oo,121),co)},Vo(Xy,"LevelProcessor",1914),zo(1915,1,f0,BM),wo.Mb=function(oo){return lu(au(bs(bo(oo,40),(fp(),q3))))},Vo(Xy,"LevelProcessor/lambda$0$Type",1915),zo(1916,1,hp,KW),wo.Kf=function(oo,co){dPt(this,bo(oo,121),co)},wo.a=0,Vo(Xy,"NeighborsProcessor",1916),zo(1917,1,LE,KP),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){return Hu(),MO(),NN},Vo(Xy,"NeighborsProcessor/1",1917),zo(1922,1,hp,YW),wo.Kf=function(oo,co){pGt(this,bo(oo,121),co)},wo.a=0,Vo(Xy,"NodePositionProcessor",1922),zo(1912,1,hp,uPe),wo.Kf=function(oo,co){XWt(this,bo(oo,121),co)},Vo(Xy,"RootProcessor",1912),zo(1942,1,hp,YP),wo.Kf=function(oo,co){WMt(bo(oo,121),co)},Vo(Xy,"Untreeifyer",1942),zo(392,22,{3:1,34:1,22:1,392:1},Dle);var dG,Dme,jRe,zRe=V1(EV,"EdgeRoutingMode",392,X1,lAt,y3t),hyt,hG,nM,Lme,HRe,qRe,Bme,Fme,VRe,Pme,GRe,jme,CF,zme,wte,xte,ES,e_,rM,$F,AF,M4,WRe,pyt,Hme,q3,pG,gG;zo(862,1,Vx,Use),wo.hf=function(oo){_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ZCe),""),mft),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(_f(),!1)),(_4(),ym)),qp),Tu((YS(),Ku))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,JCe),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,e6e),""),"Tree Level"),"The index for the tree level the node is in"),Ql(0)),sy),Vm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,t6e),""),mft),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Ql(-1)),sy),Vm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,n6e),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),YRe),Cp),aOe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,r6e),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),URe),Cp),zRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,i6e),""),"Search Order"),"Which search order to use when computing a spanning tree."),KRe),Cp),cOe),Tu(Ku)))),oct((new Xse,oo))};var gyt,myt,vyt,URe,byt,yyt,KRe,wyt,xyt,YRe;Vo(EV,"MrTreeMetaDataProvider",862),zo(1006,1,Vx,Xse),wo.hf=function(oo){oct(oo)};var Syt,XRe,QRe,U6,ZRe,JRe,qme,_yt,Eyt,kyt,Tyt,Cyt,$yt,Ayt,eOe,tOe,nOe,Ryt,_7,Ste,rOe,Oyt,iOe,Vme,Iyt,Nyt,Myt,oOe,Dyt,pE,sOe;Vo(EV,"MrTreeOptions",1006),zo(1007,1,{},XP),wo.sf=function(){var oo;return oo=new DVe,oo},wo.tf=function(oo){},Vo(EV,"MrTreeOptions/MrtreeFactory",1007),zo(353,22,{3:1,34:1,22:1,353:1},nY);var Gme,_te,Wme,Ume,aOe=V1(EV,"OrderWeighting",353,X1,m9t,w3t),Lyt;zo(433,22,{3:1,34:1,22:1,433:1},A2e);var lOe,Kme,cOe=V1(EV,"TreeifyingOrder",433,X1,u$t,x3t),Byt;zo(1486,1,Ev,Qse),wo.rg=function(oo){return bo(oo,121),Fyt},wo.Kf=function(oo,co){TRt(this,bo(oo,121),co)};var Fyt;Vo("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),zo(1487,1,Ev,Zse),wo.rg=function(oo){return bo(oo,121),Pyt},wo.Kf=function(oo,co){Nqt(this,bo(oo,121),co)};var Pyt;Vo(wN,"NodeOrderer",1487),zo(1494,1,{},vC),wo.td=function(oo){return zGe(oo)},Vo(wN,"NodeOrderer/0methodref$lambda$6$Type",1494),zo(1488,1,f0,cie),wo.Mb=function(oo){return V8(),lu(au(bs(bo(oo,40),(fp(),q3))))},Vo(wN,"NodeOrderer/lambda$0$Type",1488),zo(1489,1,f0,uie),wo.Mb=function(oo){return V8(),bo(bs(bo(oo,40),(by(),_7)),17).a<0},Vo(wN,"NodeOrderer/lambda$1$Type",1489),zo(1490,1,f0,dBe),wo.Mb=function(oo){return tRt(this.a,bo(oo,40))},Vo(wN,"NodeOrderer/lambda$2$Type",1490),zo(1491,1,f0,fBe),wo.Mb=function(oo){return YAt(this.a,bo(oo,40))},Vo(wN,"NodeOrderer/lambda$3$Type",1491),zo(1492,1,g0,FM),wo.Ne=function(oo,co){return E8t(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(wN,"NodeOrderer/lambda$4$Type",1492),zo(1493,1,f0,t8),wo.Mb=function(oo){return V8(),bo(bs(bo(oo,40),(fp(),Fme)),17).a!=0},Vo(wN,"NodeOrderer/lambda$5$Type",1493),zo(1495,1,Ev,Yse),wo.rg=function(oo){return bo(oo,121),jyt},wo.Kf=function(oo,co){zVt(this,bo(oo,121),co)},wo.b=0;var jyt;Vo("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),zo(1496,1,Ev,Kse),wo.rg=function(oo){return bo(oo,121),zyt},wo.Kf=function(oo,co){_Vt(bo(oo,121),co)};var zyt,PXt=Vo(Dw,"EdgeRouter",1496);zo(1498,1,g0,wE),wo.Ne=function(oo,co){return Oy(bo(oo,17).a,bo(co,17).a)},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/0methodref$compare$Type",1498),zo(1503,1,{},iie),wo.Ye=function(oo){return na(Tl(oo))},Vo(Dw,"EdgeRouter/1methodref$doubleValue$Type",1503),zo(1505,1,g0,c$),wo.Ne=function(oo,co){return sp(na(Tl(oo)),na(Tl(co)))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/2methodref$compare$Type",1505),zo(1507,1,g0,XW),wo.Ne=function(oo,co){return sp(na(Tl(oo)),na(Tl(co)))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/3methodref$compare$Type",1507),zo(1509,1,{},l$),wo.Ye=function(oo){return na(Tl(oo))},Vo(Dw,"EdgeRouter/4methodref$doubleValue$Type",1509),zo(1511,1,g0,QW),wo.Ne=function(oo,co){return sp(na(Tl(oo)),na(Tl(co)))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/5methodref$compare$Type",1511),zo(1513,1,g0,QP),wo.Ne=function(oo,co){return sp(na(Tl(oo)),na(Tl(co)))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/6methodref$compare$Type",1513),zo(1497,1,{},oie),wo.Kb=function(oo){return y5(),bo(bs(bo(oo,40),(by(),pE)),17)},Vo(Dw,"EdgeRouter/lambda$0$Type",1497),zo(1508,1,{},sie),wo.Kb=function(oo){return l5t(bo(oo,40))},Vo(Dw,"EdgeRouter/lambda$11$Type",1508),zo(1510,1,{},Kze),wo.Kb=function(oo){return LTt(this.b,this.a,bo(oo,40))},wo.a=0,wo.b=0,Vo(Dw,"EdgeRouter/lambda$13$Type",1510),zo(1512,1,{},Yze),wo.Kb=function(oo){return c5t(this.b,this.a,bo(oo,40))},wo.a=0,wo.b=0,Vo(Dw,"EdgeRouter/lambda$15$Type",1512),zo(1514,1,g0,aie),wo.Ne=function(oo,co){return SMt(bo(oo,65),bo(co,65))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/lambda$17$Type",1514),zo(1515,1,g0,ZW),wo.Ne=function(oo,co){return _Mt(bo(oo,65),bo(co,65))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/lambda$18$Type",1515),zo(1516,1,g0,JW),wo.Ne=function(oo,co){return kMt(bo(oo,65),bo(co,65))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/lambda$19$Type",1516),zo(1499,1,f0,hBe),wo.Mb=function(oo){return T$t(this.a,bo(oo,40))},wo.a=0,Vo(Dw,"EdgeRouter/lambda$2$Type",1499),zo(1517,1,g0,lie),wo.Ne=function(oo,co){return EMt(bo(oo,65),bo(co,65))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/lambda$20$Type",1517),zo(1500,1,g0,eU),wo.Ne=function(oo,co){return STt(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/lambda$3$Type",1500),zo(1501,1,g0,tU),wo.Ne=function(oo,co){return _Tt(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/lambda$4$Type",1501),zo(1502,1,{},nU),wo.Kb=function(oo){return u5t(bo(oo,40))},Vo(Dw,"EdgeRouter/lambda$5$Type",1502),zo(1504,1,{},Xze),wo.Kb=function(oo){return BTt(this.b,this.a,bo(oo,40))},wo.a=0,wo.b=0,Vo(Dw,"EdgeRouter/lambda$7$Type",1504),zo(1506,1,{},Qze),wo.Kb=function(oo){return f5t(this.b,this.a,bo(oo,40))},wo.a=0,wo.b=0,Vo(Dw,"EdgeRouter/lambda$9$Type",1506),zo(675,1,{675:1},Dnt),wo.e=0,wo.f=!1,wo.g=!1,Vo(Dw,"MultiLevelEdgeNodeNodeGap",675),zo(1943,1,g0,rU),wo.Ne=function(oo,co){return L$t(bo(oo,240),bo(co,240))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),zo(1944,1,g0,fie),wo.Ne=function(oo,co){return B$t(bo(oo,240),bo(co,240))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var E7;zo(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},R2e),wo.dg=function(){return ytt(this)},wo.qg=function(){return ytt(this)};var Ete,k7,uOe=V1(o6e,"RadialLayoutPhases",501,X1,r$t,S3t),Hyt;zo(1113,205,DT,sje),wo.rf=function(oo,co){var fo,po,vo,xo,Eo,To;if(fo=cst(this,oo),co.Ug("Radial layout",fo.c.length),lu(au(zl(oo,(k3(),xOe))))||CH((po=new dD((NC(),new kC(oo))),po)),To=CBt(oo),tp(oo,(b9(),E7),To),!To)throw Cs(new i1("The given graph is not a tree!"));for(vo=na(Tl(zl(oo,Cte))),vo==0&&(vo=zit(oo)),tp(oo,Cte,vo),Eo=new _s(cst(this,oo));Eo.a=3)for(Hl=bo(Gs(Ys,0),27),ru=bo(Gs(Ys,1),27),xo=0;xo+2=Hl.f+ru.f+Fo||ru.f>=Nl.f+Hl.f+Fo){ku=!0;break}else++xo;else ku=!0;if(!ku){for(Xo=Ys.i,To=new g1(Ys);To.e!=To.i.gc();)Eo=bo(k1(To),27),tp(Eo,($0(),AG),Ql(Xo)),--Xo;Pat(oo,new u8),co.Vg();return}for(fo=(SH(this.a),HS(this.a,(OQ(),vG),bo(zl(oo,XOe),188)),HS(this.a,$te,bo(zl(oo,VOe),188)),HS(this.a,sve,bo(zl(oo,UOe),188)),K2e(this.a,(Yu=new Zp,_0(Yu,vG,(HQ(),cve)),_0(Yu,$te,lve),lu(au(zl(oo,HOe)))&&_0(Yu,vG,ave),Yu)),Yq(this.a,oo)),Io=1/fo.c.length,ws=new _s(fo);ws.a0&&qet((o1(co-1,oo.length),oo.charCodeAt(co-1)),Dut);)--co;if(po>=co)throw Cs(new i1("The given string does not contain any numbers."));if(vo=Z$((Bm(po,co,oo.length),oo.substr(po,co-po)),`,|;|\r| +`;return vo};var BXt=Vo(IB,"TGraph",121);zo(643,508,{3:1,508:1,643:1,96:1,137:1}),Vo(IB,"TShape",643),zo(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},Efe),wo.Ib=function(){return mT(this)};var yte=Vo(IB,"TNode",40);zo(236,1,LE,s5),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){var oo;return oo=G1(this.a.d,0),new e9(oo)},Vo(IB,"TNode/2",236),zo(329,1,$m,e9),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){return bo(q1(this.a),65).c},wo.Ob=function(){return Oz(this.a)},wo.Qb=function(){Zue(this.a)},Vo(IB,"TNode/2/1",329),zo(1923,1,hp,eie),wo.Kf=function(oo,co){QYt(this,bo(oo,121),co)},Vo(Xy,"CompactionProcessor",1923),zo(1924,1,g0,iBe),wo.Ne=function(oo,co){return FRt(this.a,bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$0$Type",1924),zo(1925,1,f0,Uze),wo.Mb=function(oo){return q6t(this.b,this.a,bo(oo,42))},wo.a=0,wo.b=0,Vo(Xy,"CompactionProcessor/lambda$1$Type",1925),zo(1934,1,g0,hO),wo.Ne=function(oo,co){return MCt(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$10$Type",1934),zo(1935,1,g0,VW),wo.Ne=function(oo,co){return Kkt(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$11$Type",1935),zo(1936,1,g0,tie),wo.Ne=function(oo,co){return DCt(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$12$Type",1936),zo(1926,1,f0,oBe),wo.Mb=function(oo){return Okt(this.a,bo(oo,42))},wo.a=0,Vo(Xy,"CompactionProcessor/lambda$2$Type",1926),zo(1927,1,f0,sBe),wo.Mb=function(oo){return Ikt(this.a,bo(oo,42))},wo.a=0,Vo(Xy,"CompactionProcessor/lambda$3$Type",1927),zo(1928,1,f0,nie),wo.Mb=function(oo){return bo(oo,40).c.indexOf(pJ)==-1},Vo(Xy,"CompactionProcessor/lambda$4$Type",1928),zo(1929,1,{},aBe),wo.Kb=function(oo){return WAt(this.a,bo(oo,40))},wo.a=0,Vo(Xy,"CompactionProcessor/lambda$5$Type",1929),zo(1930,1,{},lBe),wo.Kb=function(oo){return e8t(this.a,bo(oo,40))},wo.a=0,Vo(Xy,"CompactionProcessor/lambda$6$Type",1930),zo(1931,1,g0,cBe),wo.Ne=function(oo,co){return f7t(this.a,bo(oo,240),bo(co,240))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$7$Type",1931),zo(1932,1,g0,uBe),wo.Ne=function(oo,co){return d7t(this.a,bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$8$Type",1932),zo(1933,1,g0,G5),wo.Ne=function(oo,co){return Ykt(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Xy,"CompactionProcessor/lambda$9$Type",1933),zo(1921,1,hp,rie),wo.Kf=function(oo,co){Uqt(bo(oo,121),co)},Vo(Xy,"DirectionProcessor",1921),zo(1913,1,hp,MVe),wo.Kf=function(oo,co){gGt(this,bo(oo,121),co)},Vo(Xy,"FanProcessor",1913),zo(1937,1,hp,LM),wo.Kf=function(oo,co){Dqt(bo(oo,121),co)},Vo(Xy,"GraphBoundsProcessor",1937),zo(1938,1,{},WP),wo.Ye=function(oo){return bo(oo,40).e.a},Vo(Xy,"GraphBoundsProcessor/lambda$0$Type",1938),zo(1939,1,{},GW),wo.Ye=function(oo){return bo(oo,40).e.b},Vo(Xy,"GraphBoundsProcessor/lambda$1$Type",1939),zo(1940,1,{},WW),wo.Ye=function(oo){return pEt(bo(oo,40))},Vo(Xy,"GraphBoundsProcessor/lambda$2$Type",1940),zo(1941,1,{},r5),wo.Ye=function(oo){return hEt(bo(oo,40))},Vo(Xy,"GraphBoundsProcessor/lambda$3$Type",1941),zo(262,22,{3:1,34:1,22:1,262:1,196:1},MC),wo.dg=function(){switch(this.g){case 0:return new uPe;case 1:return new MVe;case 2:return new cPe;case 3:return new KW;case 4:return new UP;case 8:return new a$;case 5:return new rie;case 6:return new YW;case 7:return new eie;case 9:return new LM;case 10:return new YP;default:throw Cs(new i1(j1e+(this.f!=null?this.f:""+this.g)))}};var RRe,ORe,IRe,NRe,MRe,DRe,LRe,BRe,FRe,PRe,Mme,FXt=V1(Xy,z1e,262,X1,$Je,b3t),dyt;zo(1920,1,hp,a$),wo.Kf=function(oo,co){KKt(bo(oo,121),co)},Vo(Xy,"LevelCoordinatesProcessor",1920),zo(1918,1,hp,UP),wo.Kf=function(oo,co){gHt(this,bo(oo,121),co)},wo.a=0,Vo(Xy,"LevelHeightProcessor",1918),zo(1919,1,LE,UW),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){return Hu(),MO(),NN},Vo(Xy,"LevelHeightProcessor/1",1919),zo(1914,1,hp,cPe),wo.Kf=function(oo,co){Aqt(this,bo(oo,121),co)},Vo(Xy,"LevelProcessor",1914),zo(1915,1,f0,BM),wo.Mb=function(oo){return lu(au(bs(bo(oo,40),(fp(),q3))))},Vo(Xy,"LevelProcessor/lambda$0$Type",1915),zo(1916,1,hp,KW),wo.Kf=function(oo,co){dPt(this,bo(oo,121),co)},wo.a=0,Vo(Xy,"NeighborsProcessor",1916),zo(1917,1,LE,KP),wo.Jc=function(oo){Hm(this,oo)},wo.Kc=function(){return Hu(),MO(),NN},Vo(Xy,"NeighborsProcessor/1",1917),zo(1922,1,hp,YW),wo.Kf=function(oo,co){pGt(this,bo(oo,121),co)},wo.a=0,Vo(Xy,"NodePositionProcessor",1922),zo(1912,1,hp,uPe),wo.Kf=function(oo,co){XWt(this,bo(oo,121),co)},Vo(Xy,"RootProcessor",1912),zo(1942,1,hp,YP),wo.Kf=function(oo,co){WMt(bo(oo,121),co)},Vo(Xy,"Untreeifyer",1942),zo(392,22,{3:1,34:1,22:1,392:1},Dle);var dG,Dme,jRe,zRe=V1(EV,"EdgeRoutingMode",392,X1,lAt,y3t),hyt,hG,nM,Lme,HRe,qRe,Bme,Fme,VRe,Pme,GRe,jme,CF,zme,wte,xte,ES,e_,rM,$F,AF,M4,WRe,pyt,Hme,q3,pG,gG;zo(862,1,Vx,Use),wo.hf=function(oo){_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ZCe),""),mft),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(_f(),!1)),(_4(),ym)),qp),Tu((YS(),Ku))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,JCe),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,e6e),""),"Tree Level"),"The index for the tree level the node is in"),Ql(0)),sy),Vm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,t6e),""),mft),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Ql(-1)),sy),Vm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,n6e),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),YRe),Cp),aOe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,r6e),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),URe),Cp),zRe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,i6e),""),"Search Order"),"Which search order to use when computing a spanning tree."),KRe),Cp),cOe),Tu(Ku)))),oct((new Xse,oo))};var gyt,myt,vyt,URe,byt,yyt,KRe,wyt,xyt,YRe;Vo(EV,"MrTreeMetaDataProvider",862),zo(1006,1,Vx,Xse),wo.hf=function(oo){oct(oo)};var Syt,XRe,QRe,U6,ZRe,JRe,qme,_yt,Eyt,kyt,Tyt,Cyt,$yt,Ayt,eOe,tOe,nOe,Ryt,_7,Ste,rOe,Oyt,iOe,Vme,Iyt,Nyt,Myt,oOe,Dyt,pE,sOe;Vo(EV,"MrTreeOptions",1006),zo(1007,1,{},XP),wo.sf=function(){var oo;return oo=new DVe,oo},wo.tf=function(oo){},Vo(EV,"MrTreeOptions/MrtreeFactory",1007),zo(353,22,{3:1,34:1,22:1,353:1},nY);var Gme,_te,Wme,Ume,aOe=V1(EV,"OrderWeighting",353,X1,m9t,w3t),Lyt;zo(433,22,{3:1,34:1,22:1,433:1},A2e);var lOe,Kme,cOe=V1(EV,"TreeifyingOrder",433,X1,u$t,x3t),Byt;zo(1486,1,Ev,Qse),wo.rg=function(oo){return bo(oo,121),Fyt},wo.Kf=function(oo,co){TRt(this,bo(oo,121),co)};var Fyt;Vo("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),zo(1487,1,Ev,Zse),wo.rg=function(oo){return bo(oo,121),Pyt},wo.Kf=function(oo,co){Nqt(this,bo(oo,121),co)};var Pyt;Vo(wN,"NodeOrderer",1487),zo(1494,1,{},vC),wo.td=function(oo){return zGe(oo)},Vo(wN,"NodeOrderer/0methodref$lambda$6$Type",1494),zo(1488,1,f0,cie),wo.Mb=function(oo){return V8(),lu(au(bs(bo(oo,40),(fp(),q3))))},Vo(wN,"NodeOrderer/lambda$0$Type",1488),zo(1489,1,f0,uie),wo.Mb=function(oo){return V8(),bo(bs(bo(oo,40),(by(),_7)),17).a<0},Vo(wN,"NodeOrderer/lambda$1$Type",1489),zo(1490,1,f0,dBe),wo.Mb=function(oo){return tRt(this.a,bo(oo,40))},Vo(wN,"NodeOrderer/lambda$2$Type",1490),zo(1491,1,f0,fBe),wo.Mb=function(oo){return YAt(this.a,bo(oo,40))},Vo(wN,"NodeOrderer/lambda$3$Type",1491),zo(1492,1,g0,FM),wo.Ne=function(oo,co){return E8t(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(wN,"NodeOrderer/lambda$4$Type",1492),zo(1493,1,f0,t8),wo.Mb=function(oo){return V8(),bo(bs(bo(oo,40),(fp(),Fme)),17).a!=0},Vo(wN,"NodeOrderer/lambda$5$Type",1493),zo(1495,1,Ev,Yse),wo.rg=function(oo){return bo(oo,121),jyt},wo.Kf=function(oo,co){zVt(this,bo(oo,121),co)},wo.b=0;var jyt;Vo("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),zo(1496,1,Ev,Kse),wo.rg=function(oo){return bo(oo,121),zyt},wo.Kf=function(oo,co){_Vt(bo(oo,121),co)};var zyt,PXt=Vo(Dw,"EdgeRouter",1496);zo(1498,1,g0,wE),wo.Ne=function(oo,co){return Oy(bo(oo,17).a,bo(co,17).a)},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/0methodref$compare$Type",1498),zo(1503,1,{},iie),wo.Ye=function(oo){return na(Tl(oo))},Vo(Dw,"EdgeRouter/1methodref$doubleValue$Type",1503),zo(1505,1,g0,c$),wo.Ne=function(oo,co){return sp(na(Tl(oo)),na(Tl(co)))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/2methodref$compare$Type",1505),zo(1507,1,g0,XW),wo.Ne=function(oo,co){return sp(na(Tl(oo)),na(Tl(co)))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/3methodref$compare$Type",1507),zo(1509,1,{},l$),wo.Ye=function(oo){return na(Tl(oo))},Vo(Dw,"EdgeRouter/4methodref$doubleValue$Type",1509),zo(1511,1,g0,QW),wo.Ne=function(oo,co){return sp(na(Tl(oo)),na(Tl(co)))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/5methodref$compare$Type",1511),zo(1513,1,g0,QP),wo.Ne=function(oo,co){return sp(na(Tl(oo)),na(Tl(co)))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/6methodref$compare$Type",1513),zo(1497,1,{},oie),wo.Kb=function(oo){return y5(),bo(bs(bo(oo,40),(by(),pE)),17)},Vo(Dw,"EdgeRouter/lambda$0$Type",1497),zo(1508,1,{},sie),wo.Kb=function(oo){return l5t(bo(oo,40))},Vo(Dw,"EdgeRouter/lambda$11$Type",1508),zo(1510,1,{},Kze),wo.Kb=function(oo){return LTt(this.b,this.a,bo(oo,40))},wo.a=0,wo.b=0,Vo(Dw,"EdgeRouter/lambda$13$Type",1510),zo(1512,1,{},Yze),wo.Kb=function(oo){return c5t(this.b,this.a,bo(oo,40))},wo.a=0,wo.b=0,Vo(Dw,"EdgeRouter/lambda$15$Type",1512),zo(1514,1,g0,aie),wo.Ne=function(oo,co){return SMt(bo(oo,65),bo(co,65))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/lambda$17$Type",1514),zo(1515,1,g0,ZW),wo.Ne=function(oo,co){return _Mt(bo(oo,65),bo(co,65))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/lambda$18$Type",1515),zo(1516,1,g0,JW),wo.Ne=function(oo,co){return kMt(bo(oo,65),bo(co,65))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/lambda$19$Type",1516),zo(1499,1,f0,hBe),wo.Mb=function(oo){return T$t(this.a,bo(oo,40))},wo.a=0,Vo(Dw,"EdgeRouter/lambda$2$Type",1499),zo(1517,1,g0,lie),wo.Ne=function(oo,co){return EMt(bo(oo,65),bo(co,65))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/lambda$20$Type",1517),zo(1500,1,g0,eU),wo.Ne=function(oo,co){return STt(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/lambda$3$Type",1500),zo(1501,1,g0,tU),wo.Ne=function(oo,co){return _Tt(bo(oo,40),bo(co,40))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"EdgeRouter/lambda$4$Type",1501),zo(1502,1,{},nU),wo.Kb=function(oo){return u5t(bo(oo,40))},Vo(Dw,"EdgeRouter/lambda$5$Type",1502),zo(1504,1,{},Xze),wo.Kb=function(oo){return BTt(this.b,this.a,bo(oo,40))},wo.a=0,wo.b=0,Vo(Dw,"EdgeRouter/lambda$7$Type",1504),zo(1506,1,{},Qze),wo.Kb=function(oo){return f5t(this.b,this.a,bo(oo,40))},wo.a=0,wo.b=0,Vo(Dw,"EdgeRouter/lambda$9$Type",1506),zo(675,1,{675:1},Dnt),wo.e=0,wo.f=!1,wo.g=!1,Vo(Dw,"MultiLevelEdgeNodeNodeGap",675),zo(1943,1,g0,rU),wo.Ne=function(oo,co){return L$t(bo(oo,240),bo(co,240))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),zo(1944,1,g0,fie),wo.Ne=function(oo,co){return B$t(bo(oo,240),bo(co,240))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(Dw,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var E7;zo(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},R2e),wo.dg=function(){return ytt(this)},wo.qg=function(){return ytt(this)};var Ete,k7,uOe=V1(o6e,"RadialLayoutPhases",501,X1,r$t,S3t),Hyt;zo(1113,205,DT,sje),wo.rf=function(oo,co){var fo,po,vo,xo,Eo,To;if(fo=cst(this,oo),co.Ug("Radial layout",fo.c.length),lu(au(zl(oo,(k3(),xOe))))||CH((po=new dD((NC(),new kC(oo))),po)),To=CBt(oo),tp(oo,(b9(),E7),To),!To)throw Cs(new i1("The given graph is not a tree!"));for(vo=na(Tl(zl(oo,Cte))),vo==0&&(vo=zit(oo)),tp(oo,Cte,vo),Eo=new _s(cst(this,oo));Eo.a=3)for(Hl=bo(Gs(Ys,0),27),ru=bo(Gs(Ys,1),27),xo=0;xo+2=Hl.f+ru.f+Po||ru.f>=Nl.f+Hl.f+Po){ku=!0;break}else++xo;else ku=!0;if(!ku){for(Xo=Ys.i,To=new g1(Ys);To.e!=To.i.gc();)Eo=bo(k1(To),27),tp(Eo,($0(),AG),Ql(Xo)),--Xo;Pat(oo,new u8),co.Vg();return}for(fo=(SH(this.a),HS(this.a,(OQ(),vG),bo(zl(oo,XOe),188)),HS(this.a,$te,bo(zl(oo,VOe),188)),HS(this.a,sve,bo(zl(oo,UOe),188)),K2e(this.a,(Yu=new Zp,_0(Yu,vG,(HQ(),cve)),_0(Yu,$te,lve),lu(au(zl(oo,HOe)))&&_0(Yu,vG,ave),Yu)),Yq(this.a,oo)),Io=1/fo.c.length,ws=new _s(fo);ws.a0&&qet((o1(co-1,oo.length),oo.charCodeAt(co-1)),Dut);)--co;if(po>=co)throw Cs(new i1("The given string does not contain any numbers."));if(vo=Z$((Bm(po,co,oo.length),oo.substr(po,co-po)),`,|;|\r| `),vo.length!=2)throw Cs(new i1("Exactly two numbers are expected, "+vo.length+" were found."));try{this.a=G$(W$(vo[0])),this.b=G$(W$(vo[1]))}catch(xo){throw xo=$p(xo),Hs(xo,130)?(fo=xo,Cs(new i1(Lut+fo))):Cs(xo)}},wo.Ib=function(){return"("+this.a+","+this.b+")"},wo.a=0,wo.b=0;var _m=Vo(yV,"KVector",8);zo(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},P2,AK,iVe),wo.Pc=function(){return qOt(this)},wo.cg=function(oo){var co,fo,po,vo,xo,Eo;po=Z$(oo,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | -`),Fw(this);try{for(fo=0,xo=0,vo=0,Eo=0;fo0&&(xo%2==0?vo=G$(po[fo]):Eo=G$(po[fo]),xo>0&&xo%2!=0&&y0(this,new Vl(vo,Eo)),++xo),++fo}catch(To){throw To=$p(To),Hs(To,130)?(co=To,Cs(new i1("The given string does not match the expected format for vectors."+co))):Cs(To)}},wo.Ib=function(){var oo,co,fo;for(oo=new Bw("("),co=G1(this,0);co.b!=co.d.c;)fo=bo(q1(co),8),S0(oo,fo.a+","+fo.b),co.b!=co.d.c&&(oo.a+="; ");return(oo.a+=")",oo).a};var NIe=Vo(yV,"KVectorChain",75);zo(255,22,{3:1,34:1,22:1,255:1},PD);var Ave,Fte,Pte,SG,_G,jte,MIe=V1(_w,"Alignment",255,X1,j7t,W3t),Swt;zo(991,1,Vx,SE),wo.hf=function(oo){Sat(oo)};var DIe,Rve,_wt,LIe,BIe,Ewt,FIe,kwt,Twt,PIe,jIe,Cwt;Vo(_w,"BoxLayouterOptions",991),zo(992,1,{},UM),wo.sf=function(){var oo;return oo=new QA,oo},wo.tf=function(oo){},Vo(_w,"BoxLayouterOptions/BoxFactory",992),zo(298,22,{3:1,34:1,22:1,298:1},jD);var BF,Ove,FF,PF,jF,Ive,Nve=V1(_w,"ContentAlignment",298,X1,z7t,U3t),$wt;zo(699,1,Vx,UU),wo.hf=function(oo){_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,Bft),""),"Layout Algorithm"),"Select a specific layout algorithm."),(_4(),C7)),uu),Tu((YS(),Ku))))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,Fft),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),$_),HXt),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,$Ce),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),zIe),Cp),MIe),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,pR),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,z6e),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),$_),NIe),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,cJ),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),qIe),FR),Nve),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,_V),""),"Debug Mode"),"Whether additional debug information shall be generated."),(_f(),!1)),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,v0e),""),lTe),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),VIe),Cp),HF),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,SV),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),UIe),Cp),Uve),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,P6e),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,lJ),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),XIe),Cp),LNe),mp(Ku,As($s(WE,1),Pl,170,0,[pm]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,_6),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),oNe),$_),s9e),mp(Ku,As($s(WE,1),Pl,170,0,[pm]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,kB),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,fJ),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,TB),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,B1e),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),uNe),Cp),PNe),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,uJ),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),$_),_m),mp(pm,As($s(WE,1),Pl,170,0,[eC,D4]))))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,hV),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),sy),Vm),mp(pm,As($s(WE,1),Pl,170,0,[gE]))))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,VZ),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,EB),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,PCe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),QIe),$_),NIe),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,HCe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),ym),qp),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,qCe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),ym),qp),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,gXt),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),$_),UXt),mp(Ku,As($s(WE,1),Pl,170,0,[D4]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,GCe),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),ZIe),$_),o9e),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,TCe),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),ym),qp),mp(pm,As($s(WE,1),Pl,170,0,[gE,eC,D4]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Pft),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Qm),nm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,jft),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,zft),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,pV),""),Ift),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),ym),qp),Tu(Ku)))),Jp(oo,pV,E6,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Hft),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,qft),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Ql(100)),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Vft),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Gft),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Ql(4e3)),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Wft),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Ql(400)),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Uft),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Kft),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Yft),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Xft),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,j6e),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),HIe),Cp),YNe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,gCe),__),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,mCe),__),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,R1e),__),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,vCe),__),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,L1e),__),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,m0e),__),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,bCe),__),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,xCe),__),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,yCe),__),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,wCe),__),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,iA),__),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,SCe),__),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,_Ce),__),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Qm),nm),mp(Ku,As($s(WE,1),Pl,170,0,[pm]))))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,ECe),__),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),$_),gxt),mp(pm,As($s(WE,1),Pl,170,0,[gE,eC,D4]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,WCe),__),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),xNe),$_),o9e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,y0e),Jft),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),sy),Vm),mp(Ku,As($s(WE,1),Pl,170,0,[pm]))))),Jp(oo,y0e,b0e,Bwt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,b0e),Jft),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),sNe),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,OCe),edt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),eNe),$_),s9e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,vN),edt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),tNe),FR),Tv),mp(pm,As($s(WE,1),Pl,170,0,[D4]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,MCe),xJ),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),lNe),Cp),WF),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,DCe),xJ),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Cp),WF),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,LCe),xJ),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Cp),WF),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,BCe),xJ),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Cp),WF),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,FCe),xJ),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Cp),WF),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,X9),z0e),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),nNe),FR),YF),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,gR),z0e),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),iNe),FR),zNe),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,mR),z0e),"Node Size Minimum"),"The minimal size to which a node can be reduced."),rNe),$_),_m),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,mN),z0e),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,jCe),g0e),"Edge Label Placement"),"Gives a hint on where to put edge labels."),GIe),Cp),ENe),Tu(D4)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,GZ),g0e),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),ym),qp),Tu(D4)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,mXt),"font"),"Font Name"),"Font name used for a label."),C7),uu),Tu(D4)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,Qft),"font"),"Font Size"),"Font size used for a label."),sy),Vm),Tu(D4)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,VCe),H0e),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),$_),_m),Tu(eC)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,zCe),H0e),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),sy),Vm),Tu(eC)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,CCe),H0e),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),hNe),Cp),pv),Tu(eC)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,kCe),H0e),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Qm),nm),Tu(eC)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,bN),V6e),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),fNe),FR),Wte),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ICe),V6e),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),ym),qp),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,NCe),V6e),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),ym),qp),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,gV),TV),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Qm),nm),Tu(Ku)))),Jp(oo,gV,E6,Gwt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,H6e),TV),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),Cp),Zte),Tu(pm)))),Jp(oo,H6e,E6,Wwt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,mV),TV),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Qm),nm),mp(Ku,As($s(WE,1),Pl,170,0,[pm]))))),Jp(oo,mV,E6,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,vV),TV),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Qm),nm),mp(Ku,As($s(WE,1),Pl,170,0,[pm]))))),Jp(oo,vV,E6,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,E6),TV),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),Cp),qNe),Tu(pm)))),Jp(oo,E6,mN,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,q6e),TV),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Qm),nm),Tu(Ku)))),Jp(oo,q6e,E6,Vwt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ACe),tdt),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),ym),qp),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,RCe),tdt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),ym),qp),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,O1e),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Qm),nm),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Zft),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),YIe),Cp),RNe),Tu(gE)))),$D(oo,new B8(_D(AO($O(new Cw,d1),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),$D(oo,new B8(_D(AO($O(new Cw,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),$D(oo,new B8(_D(AO($O(new Cw,x2),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),$D(oo,new B8(_D(AO($O(new Cw,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),$D(oo,new B8(_D(AO($O(new Cw,vft),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),$D(oo,new B8(_D(AO($O(new Cw,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),$D(oo,new B8(_D(AO($O(new Cw,Sx),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),aat((new iae,oo)),Sat((new SE,oo)),Dst((new oae,oo))};var oM,Awt,zIe,$7,Rwt,Owt,HIe,A7,R7,Iwt,EG,qIe,kG,tC,VIe,Mve,Dve,GIe,WIe,UIe,KIe,YIe,Nwt,O7,XIe,Mwt,TG,Lve,CG,Bve,K6,QIe,sM,ZIe,JIe,eNe,I7,tNe,nC,nNe,OA,N7,rNe,V3,iNe,zte,$G,L4,oNe,Dwt,sNe,Lwt,Bwt,aNe,lNe,Fve,Pve,jve,zve,cNe,Ew,zF,uNe,Hve,qve,IA,fNe,dNe,M7,hNe,PR,AG,Vve,D7,Fwt,Gve,Pwt,jwt,pNe,zwt,gNe,mNe,jR,vNe,Hte,bNe,yNe,rC,Hwt,wNe,xNe,SNe,qte,RG,aM,zR,qwt,Vwt,Vte,Gwt,_Ne,Wwt;Vo(_w,"CoreOptions",699),zo(88,22,{3:1,34:1,22:1,88:1},Qz);var A_,qv,ey,R_,Cx,HF=V1(_w,lTe,88,X1,G9t,K3t),Uwt;zo(278,22,{3:1,34:1,22:1,278:1},qle);var lM,NA,cM,ENe=V1(_w,"EdgeLabelPlacement",278,X1,wAt,Y3t),Kwt;zo(223,22,{3:1,34:1,22:1,223:1},iY);var uM,OG,HR,Wve,Uve=V1(_w,"EdgeRouting",223,X1,w9t,X3t),Ywt;zo(321,22,{3:1,34:1,22:1,321:1},zD);var kNe,TNe,CNe,$Ne,Kve,ANe,RNe=V1(_w,"EdgeType",321,X1,P7t,Q3t),Xwt;zo(989,1,Vx,iae),wo.hf=function(oo){aat(oo)};var ONe,INe,NNe,MNe,Qwt,DNe,qF;Vo(_w,"FixedLayouterOptions",989),zo(990,1,{},SU),wo.sf=function(){var oo;return oo=new Fie,oo},wo.tf=function(oo){},Vo(_w,"FixedLayouterOptions/FixedFactory",990),zo(346,22,{3:1,34:1,22:1,346:1},Vle);var B4,Gte,VF,LNe=V1(_w,"HierarchyHandling",346,X1,bAt,Z3t),Zwt;zo(291,22,{3:1,34:1,22:1,291:1},oY);var UE,G3,IG,NG,Jwt=V1(_w,"LabelSide",291,X1,y9t,J3t),ext;zo(95,22,{3:1,34:1,22:1,95:1},s9);var D5,kS,Xx,TS,Zw,CS,Qx,KE,$S,Tv=V1(_w,"NodeLabelPlacement",95,X1,j8t,eTt),txt;zo(256,22,{3:1,34:1,22:1,256:1},Zz);var BNe,GF,W3,FNe,MG,WF=V1(_w,"PortAlignment",256,X1,s7t,tTt),nxt;zo(101,22,{3:1,34:1,22:1,101:1},HD);var iC,n2,YE,fM,O_,U3,PNe=V1(_w,"PortConstraints",101,X1,F7t,nTt),rxt;zo(279,22,{3:1,34:1,22:1,279:1},qD);var UF,KF,L5,DG,K3,qR,Wte=V1(_w,"PortLabelPlacement",279,X1,B7t,rTt),ixt;zo(64,22,{3:1,34:1,22:1,64:1},Jz);var p1,s1,$x,Ax,N2,E2,I_,AS,cw,X2,r2,uw,M2,D2,RS,Jw,ex,Zx,z1,gy,l1,pv=V1(_w,"PortSide",64,X1,W9t,iTt),oxt;zo(993,1,Vx,oae),wo.hf=function(oo){Dst(oo)};var sxt,axt,jNe,lxt,cxt;Vo(_w,"RandomLayouterOptions",993),zo(994,1,{},iT),wo.sf=function(){var oo;return oo=new Die,oo},wo.tf=function(oo){},Vo(_w,"RandomLayouterOptions/RandomFactory",994),zo(386,22,{3:1,34:1,22:1,386:1},sY);var MA,LG,BG,oC,YF=V1(_w,"SizeConstraint",386,X1,b9t,oTt),uxt;zo(264,22,{3:1,34:1,22:1,264:1},a9);var FG,Ute,dM,Yve,PG,XF,Kte,Yte,Xte,zNe=V1(_w,"SizeOptions",264,X1,Z8t,sTt),fxt;zo(280,22,{3:1,34:1,22:1,280:1},Gle);var DA,HNe,Qte,qNe=V1(_w,"TopdownNodeTypes",280,X1,xAt,aTt),dxt;zo(347,22,G6e);var VNe,GNe,Zte=V1(_w,"TopdownSizeApproximator",347,X1,g$t,cTt);zo(987,347,G6e,jGe),wo.Tg=function(oo){return Snt(oo)},V1(_w,"TopdownSizeApproximator/1",987,Zte,null,null),zo(988,347,G6e,kWe),wo.Tg=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu;for(co=bo(zl(oo,($0(),D7)),143),ru=(n3(),Zo=new vD,Zo),Pq(ru,oo),ku=new H1,xo=new g1((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a));xo.e!=xo.i.gc();)po=bo(k1(xo),27),zs=(Xo=new vD,Xo),dZ(zs,ru),Pq(zs,po),Yu=Snt(po),d9(zs,lo.Math.max(po.g,Yu.a),lo.Math.max(po.f,Yu.b)),l2(ku.f,po,zs);for(vo=new g1((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a));vo.e!=vo.i.gc();)for(po=bo(k1(vo),27),Fo=new g1((!po.e&&(po.e=new Wu(Gp,po,7,4)),po.e));Fo.e!=Fo.i.gc();)Io=bo(k1(Fo),74),Nl=bo(Uv(wv(ku.f,po)),27),Hl=bo(m1(ku,Gs((!Io.c&&(Io.c=new Wu(D1,Io,5,8)),Io.c),0)),27),Ys=(Wo=new KM,Wo),Y1((!Ys.b&&(Ys.b=new Wu(D1,Ys,4,7)),Ys.b),Nl),Y1((!Ys.c&&(Ys.c=new Wu(D1,Ys,5,8)),Ys.c),Hl),fZ(Ys,kp(Nl)),Pq(Ys,Io);Ss=bo(TH(co.f),205);try{Ss.rf(ru,new zie),nUe(co.f,Ss)}catch(Qu){throw Qu=$p(Qu),Hs(Qu,103)?(ws=Qu,Cs(ws)):Cs(Qu)}return h_(ru,R7)||h_(ru,A7)||O3e(ru),Ao=na(Tl(zl(ru,R7))),To=na(Tl(zl(ru,A7))),Eo=Ao/To,fo=na(Tl(zl(ru,RG)))*lo.Math.sqrt((!ru.a&&(ru.a=new Bl(F0,ru,10,11)),ru.a).i),Eu=bo(zl(ru,L4),107),Ls=Eu.b+Eu.c+1,Rs=Eu.d+Eu.a+1,new Vl(lo.Math.max(Ls,fo),lo.Math.max(Rs,fo/Eo))},V1(_w,"TopdownSizeApproximator/2",988,Zte,null,null);var hxt;zo(344,1,{871:1},u8),wo.Ug=function(oo,co){return Drt(this,oo,co)},wo.Vg=function(){iit(this)},wo.Wg=function(){return this.q},wo.Xg=function(){return this.f?sue(this.f):null},wo.Yg=function(){return sue(this.a)},wo.Zg=function(){return this.p},wo.$g=function(){return!1},wo._g=function(){return this.n},wo.ah=function(){return this.p!=null&&!this.b},wo.bh=function(oo){var co;this.n&&(co=oo,Jl(this.f,co))},wo.dh=function(oo,co){var fo,po;this.n&&oo&&LAt(this,(fo=new BWe,po=fhe(fo,oo),vKt(fo),po),(vQ(),Qve))},wo.eh=function(oo){var co;return this.b?null:(co=x8t(this,this.g),y0(this.a,co),co.i=this,this.d=oo,co)},wo.fh=function(oo){oo>0&&!this.b&&K_e(this,oo)},wo.b=!1,wo.c=0,wo.d=-1,wo.e=null,wo.f=null,wo.g=-1,wo.j=!1,wo.k=!1,wo.n=!1,wo.o=0,wo.q=0,wo.r=0,Vo(wy,"BasicProgressMonitor",344),zo(717,205,DT,QA),wo.rf=function(oo,co){Pat(oo,co)},Vo(wy,"BoxLayoutProvider",717),zo(983,1,g0,kBe),wo.Ne=function(oo,co){return vHt(this,bo(oo,27),bo(co,27))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},wo.a=!1,Vo(wy,"BoxLayoutProvider/1",983),zo(163,1,{163:1},KX,uVe),wo.Ib=function(){return this.c?U4e(this.c):_3(this.b)},Vo(wy,"BoxLayoutProvider/Group",163),zo(320,22,{3:1,34:1,22:1,320:1},aY);var WNe,UNe,KNe,Xve,YNe=V1(wy,"BoxLayoutProvider/PackingMode",320,X1,x9t,uTt),pxt;zo(984,1,g0,Oie),wo.Ne=function(oo,co){return D6t(bo(oo,163),bo(co,163))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(wy,"BoxLayoutProvider/lambda$0$Type",984),zo(985,1,g0,_U),wo.Ne=function(oo,co){return C6t(bo(oo,163),bo(co,163))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(wy,"BoxLayoutProvider/lambda$1$Type",985),zo(986,1,g0,Iie),wo.Ne=function(oo,co){return $6t(bo(oo,163),bo(co,163))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(wy,"BoxLayoutProvider/lambda$2$Type",986),zo(1384,1,{845:1},Nie),wo.Mg=function(oo,co){return FK(),!Hs(co,167)||fje((W8(),bo(oo,167)),co)},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),zo(1385,1,_1,TBe),wo.Cd=function(oo){WOt(this.a,bo(oo,149))},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),zo(1386,1,_1,Lie),wo.Cd=function(oo){bo(oo,96),FK()},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),zo(1390,1,_1,CBe),wo.Cd=function(oo){pRt(this.a,bo(oo,96))},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),zo(1388,1,f0,tHe),wo.Mb=function(oo){return COt(this.a,this.b,bo(oo,149))},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),zo(1387,1,f0,nHe),wo.Mb=function(oo){return a5t(this.a,this.b,bo(oo,845))},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),zo(1389,1,_1,rHe),wo.Cd=function(oo){wCt(this.a,this.b,bo(oo,149))},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),zo(947,1,{},Bie),wo.Kb=function(oo){return ZHe(oo)},wo.Fb=function(oo){return this===oo},Vo(wy,"ElkUtil/lambda$0$Type",947),zo(948,1,_1,iHe),wo.Cd=function(oo){wjt(this.a,this.b,bo(oo,74))},wo.a=0,wo.b=0,Vo(wy,"ElkUtil/lambda$1$Type",948),zo(949,1,_1,oHe),wo.Cd=function(oo){u_t(this.a,this.b,bo(oo,166))},wo.a=0,wo.b=0,Vo(wy,"ElkUtil/lambda$2$Type",949),zo(950,1,_1,sHe),wo.Cd=function(oo){okt(this.a,this.b,bo(oo,135))},wo.a=0,wo.b=0,Vo(wy,"ElkUtil/lambda$3$Type",950),zo(951,1,_1,$Be),wo.Cd=function(oo){zTt(this.a,bo(oo,377))},Vo(wy,"ElkUtil/lambda$4$Type",951),zo(325,1,{34:1,325:1},jSt),wo.Fd=function(oo){return Mkt(this,bo(oo,242))},wo.Fb=function(oo){var co;return Hs(oo,325)?(co=bo(oo,325),this.a==co.a):!1},wo.Hb=function(){return dm(this.a)},wo.Ib=function(){return this.a+" (exclusive)"},wo.a=0,Vo(wy,"ExclusiveBounds/ExclusiveLowerBound",325),zo(1119,205,DT,Fie),wo.rf=function(oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu;for(co.Ug("Fixed Layout",1),xo=bo(zl(oo,($0(),WIe)),223),Wo=0,Xo=0,zs=new g1((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a));zs.e!=zs.i.gc();){for(Rs=bo(k1(zs),27),Eu=bo(zl(Rs,(bQ(),qF)),8),Eu&&(ix(Rs,Eu.a,Eu.b),bo(zl(Rs,INe),181).Hc((Mw(),MA))&&(Zo=bo(zl(Rs,MNe),8),Zo.a>0&&Zo.b>0&&y6(Rs,Zo.a,Zo.b,!0,!0))),Wo=lo.Math.max(Wo,Rs.i+Rs.g),Xo=lo.Math.max(Xo,Rs.j+Rs.f),Io=new g1((!Rs.n&&(Rs.n=new Bl(Nv,Rs,1,7)),Rs.n));Io.e!=Io.i.gc();)To=bo(k1(Io),135),Eu=bo(zl(To,qF),8),Eu&&ix(To,Eu.a,Eu.b),Wo=lo.Math.max(Wo,Rs.i+To.i+To.g),Xo=lo.Math.max(Xo,Rs.j+To.j+To.f);for(Hl=new g1((!Rs.c&&(Rs.c=new Bl(fw,Rs,9,9)),Rs.c));Hl.e!=Hl.i.gc();)for(Nl=bo(k1(Hl),123),Eu=bo(zl(Nl,qF),8),Eu&&ix(Nl,Eu.a,Eu.b),ru=Rs.i+Nl.i,ku=Rs.j+Nl.j,Wo=lo.Math.max(Wo,ru+Nl.g),Xo=lo.Math.max(Xo,ku+Nl.f),Ao=new g1((!Nl.n&&(Nl.n=new Bl(Nv,Nl,1,7)),Nl.n));Ao.e!=Ao.i.gc();)To=bo(k1(Ao),135),Eu=bo(zl(To,qF),8),Eu&&ix(To,Eu.a,Eu.b),Wo=lo.Math.max(Wo,ru+To.i+To.g),Xo=lo.Math.max(Xo,ku+To.j+To.f);for(vo=new x1(E1(T5(Rs).a.Kc(),new ko));W1(vo);)fo=bo(R1(vo),74),Fo=Jlt(fo),Wo=lo.Math.max(Wo,Fo.a),Xo=lo.Math.max(Xo,Fo.b);for(po=new x1(E1(Fq(Rs).a.Kc(),new ko));W1(po);)fo=bo(R1(po),74),kp(NE(fo))!=oo&&(Fo=Jlt(fo),Wo=lo.Math.max(Wo,Fo.a),Xo=lo.Math.max(Xo,Fo.b))}if(xo==(S5(),uM))for(Ls=new g1((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a));Ls.e!=Ls.i.gc();)for(Rs=bo(k1(Ls),27),po=new x1(E1(T5(Rs).a.Kc(),new ko));W1(po);)fo=bo(R1(po),74),Eo=SGt(fo),Eo.b==0?tp(fo,K6,null):tp(fo,K6,Eo);lu(au(zl(oo,(bQ(),NNe))))||(Ys=bo(zl(oo,Qwt),107),Ss=Wo+Ys.b+Ys.c,ws=Xo+Ys.d+Ys.a,y6(oo,Ss,ws,!0,!0)),co.Vg()},Vo(wy,"FixedLayoutProvider",1119),zo(385,137,{3:1,423:1,385:1,96:1,137:1},lz,HQe),wo.cg=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;if(oo)try{for(Ao=Z$(oo,";,;"),xo=Ao,Eo=0,To=xo.length;Eo>16&em|co^po<<16},wo.Kc=function(){return new ABe(this)},wo.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+ry(this.b)+")":this.b==null?"pair("+ry(this.a)+",null)":"pair("+ry(this.a)+","+ry(this.b)+")"},Vo(wy,"Pair",42),zo(995,1,$m,ABe),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},wo.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw Cs(new ay)},wo.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),Cs(new F2)},wo.b=!1,wo.c=!1,Vo(wy,"Pair/1",995),zo(455,1,{455:1},bUe),wo.Fb=function(oo){return ky(this.a,bo(oo,455).a)&&ky(this.c,bo(oo,455).c)&&ky(this.d,bo(oo,455).d)&&ky(this.b,bo(oo,455).b)},wo.Hb=function(){return fq(As($s(bm,1),Xu,1,5,[this.a,this.c,this.d,this.b]))},wo.Ib=function(){return"("+this.a+av+this.c+av+this.d+av+this.b+")"},Vo(wy,"Quadruple",455),zo(1108,205,DT,Die),wo.rf=function(oo,co){var fo,po,vo,xo,Eo;if(co.Ug("Random Layout",1),(!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a).i==0){co.Vg();return}xo=bo(zl(oo,(Ske(),lxt)),17),xo&&xo.a!=0?vo=new CX(xo.a):vo=new Kfe,fo=Rz(Tl(zl(oo,sxt))),Eo=Rz(Tl(zl(oo,cxt))),po=bo(zl(oo,axt),107),jKt(oo,vo,fo,Eo,po),co.Vg()},Vo(wy,"RandomLayoutProvider",1108),zo(240,1,{240:1},xce),wo.Fb=function(oo){return ky(this.a,bo(oo,240).a)&&ky(this.b,bo(oo,240).b)&&ky(this.c,bo(oo,240).c)},wo.Hb=function(){return fq(As($s(bm,1),Xu,1,5,[this.a,this.b,this.c]))},wo.Ib=function(){return"("+this.a+av+this.b+av+this.c+")"},Vo(wy,"Triple",240);var bxt;zo(562,1,{}),wo.Lf=function(){return new Vl(this.f.i,this.f.j)},wo.of=function(oo){return WUe(oo,($0(),Ew))?zl(this.f,yxt):zl(this.f,oo)},wo.Mf=function(){return new Vl(this.f.g,this.f.f)},wo.Nf=function(){return this.g},wo.pf=function(oo){return h_(this.f,oo)},wo.Of=function(oo){m2(this.f,oo.a),b2(this.f,oo.b)},wo.Pf=function(oo){i6(this.f,oo.a),r6(this.f,oo.b)},wo.Qf=function(oo){this.g=oo},wo.g=0;var yxt;Vo(DB,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),zo(563,1,{853:1},mK),wo.Rf=function(){var oo,co;if(!this.b)for(this.b=_X(sX(this.a).i),co=new g1(sX(this.a));co.e!=co.i.gc();)oo=bo(k1(co),135),Jl(this.b,new Qae(oo));return this.b},wo.b=null,Vo(DB,"ElkGraphAdapters/ElkEdgeAdapter",563),zo(289,562,{},kC),wo.Sf=function(){return Vnt(this)},wo.a=null,Vo(DB,"ElkGraphAdapters/ElkGraphAdapter",289),zo(640,562,{187:1},Qae),Vo(DB,"ElkGraphAdapters/ElkLabelAdapter",640),zo(639,562,{695:1},oce),wo.Rf=function(){return CDt(this)},wo.Vf=function(){var oo;return oo=bo(zl(this.f,($0(),sM)),140),!oo&&(oo=new mD),oo},wo.Xf=function(){return $Dt(this)},wo.Zf=function(oo){var co;co=new _ce(oo),tp(this.f,($0(),sM),co)},wo.$f=function(oo){tp(this.f,($0(),L4),new fxe(oo))},wo.Tf=function(){return this.d},wo.Uf=function(){var oo,co;if(!this.a)for(this.a=new Zl,co=new x1(E1(Fq(bo(this.f,27)).a.Kc(),new ko));W1(co);)oo=bo(R1(co),74),Jl(this.a,new mK(oo));return this.a},wo.Wf=function(){var oo,co;if(!this.c)for(this.c=new Zl,co=new x1(E1(T5(bo(this.f,27)).a.Kc(),new ko));W1(co);)oo=bo(R1(co),74),Jl(this.c,new mK(oo));return this.c},wo.Yf=function(){return fX(bo(this.f,27)).i!=0||lu(au(bo(this.f,27).of(($0(),TG))))},wo._f=function(){s8t(this,(NC(),bxt))},wo.a=null,wo.b=null,wo.c=null,wo.d=null,wo.e=null,Vo(DB,"ElkGraphAdapters/ElkNodeAdapter",639),zo(1284,562,{852:1},RBe),wo.Rf=function(){return LDt(this)},wo.Uf=function(){var oo,co;if(!this.a)for(this.a=kE(bo(this.f,123).hh().i),co=new g1(bo(this.f,123).hh());co.e!=co.i.gc();)oo=bo(k1(co),74),Jl(this.a,new mK(oo));return this.a},wo.Wf=function(){var oo,co;if(!this.c)for(this.c=kE(bo(this.f,123).ih().i),co=new g1(bo(this.f,123).ih());co.e!=co.i.gc();)oo=bo(k1(co),74),Jl(this.c,new mK(oo));return this.c},wo.ag=function(){return bo(bo(this.f,123).of(($0(),M7)),64)},wo.bg=function(){var oo,co,fo,po,vo,xo,Eo,To;for(po=l_(bo(this.f,123)),fo=new g1(bo(this.f,123).ih());fo.e!=fo.i.gc();)for(oo=bo(k1(fo),74),To=new g1((!oo.c&&(oo.c=new Wu(D1,oo,5,8)),oo.c));To.e!=To.i.gc();){if(Eo=bo(k1(To),84),D$(Zv(Eo),po))return!0;if(Zv(Eo)==po&&lu(au(zl(oo,($0(),Lve)))))return!0}for(co=new g1(bo(this.f,123).hh());co.e!=co.i.gc();)for(oo=bo(k1(co),74),xo=new g1((!oo.b&&(oo.b=new Wu(D1,oo,4,7)),oo.b));xo.e!=xo.i.gc();)if(vo=bo(k1(xo),84),D$(Zv(vo),po))return!0;return!1},wo.a=null,wo.b=null,wo.c=null,Vo(DB,"ElkGraphAdapters/ElkPortAdapter",1284),zo(1285,1,g0,Mie),wo.Ne=function(oo,co){return pVt(bo(oo,123),bo(co,123))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(DB,"ElkGraphAdapters/PortComparator",1285);var Y3=Ip(_x,"EObject"),hM=Ip(J9,idt),tx=Ip(J9,odt),jG=Ip(J9,sdt),zG=Ip(J9,"ElkShape"),D1=Ip(J9,adt),Gp=Ip(J9,W6e),Sp=Ip(J9,ldt),HG=Ip(_x,cdt),QF=Ip(_x,"EFactory"),wxt,Zve=Ip(_x,udt),t_=Ip(_x,"EPackage"),Tm,xxt,Sxt,JNe,Jte,_xt,eMe,tMe,nMe,XE,Ext,kxt,Nv=Ip(J9,U6e),F0=Ip(J9,K6e),fw=Ip(J9,Y6e);zo(93,1,fdt),wo.th=function(){return this.uh(),null},wo.uh=function(){return null},wo.vh=function(){return this.uh(),!1},wo.wh=function(){return!1},wo.xh=function(oo){W0(this,oo)},Vo(yR,"BasicNotifierImpl",93),zo(99,93,gdt),wo.Yh=function(){return $w(this)},wo.yh=function(oo,co){return oo},wo.zh=function(){throw Cs(new l0)},wo.Ah=function(oo){var co;return co=bv(bo(Uu(this.Dh(),this.Fh()),19)),this.Ph().Th(this,co.n,co.f,oo)},wo.Bh=function(oo,co){throw Cs(new l0)},wo.Ch=function(oo,co,fo){return Uw(this,oo,co,fo)},wo.Dh=function(){var oo;return this.zh()&&(oo=this.zh().Nk(),oo)?oo:this.ii()},wo.Eh=function(){return Kde(this)},wo.Fh=function(){throw Cs(new l0)},wo.Gh=function(){var oo,co;return co=this.$h().Ok(),!co&&this.zh().Tk(co=(RD(),oo=ESe(eE(this.Dh())),oo==null?sbe:new iH(this,oo))),co},wo.Hh=function(oo,co){return oo},wo.Ih=function(oo){var co;return co=oo.pk(),co?oo.Lj():Ap(this.Dh(),oo)},wo.Jh=function(){var oo;return oo=this.zh(),oo?oo.Qk():null},wo.Kh=function(){return this.zh()?this.zh().Nk():null},wo.Lh=function(oo,co,fo){return jQ(this,oo,co,fo)},wo.Mh=function(oo){return oI(this,oo)},wo.Nh=function(oo,co){return Nue(this,oo,co)},wo.Oh=function(){var oo;return oo=this.zh(),!!oo&&oo.Rk()},wo.Ph=function(){throw Cs(new l0)},wo.Qh=function(){return NQ(this)},wo.Rh=function(oo,co,fo,po){return Z8(this,oo,co,po)},wo.Sh=function(oo,co,fo){var po;return po=bo(Uu(this.Dh(),co),69),po.wk().zk(this,this.hi(),co-this.ji(),oo,fo)},wo.Th=function(oo,co,fo,po){return gX(this,oo,co,po)},wo.Uh=function(oo,co,fo){var po;return po=bo(Uu(this.Dh(),co),69),po.wk().Ak(this,this.hi(),co-this.ji(),oo,fo)},wo.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},wo.Wh=function(oo){return ode(this,oo)},wo.Xh=function(oo){return sKe(this,oo)},wo.Zh=function(oo){return Blt(this,oo)},wo.$h=function(){throw Cs(new l0)},wo._h=function(){return this.zh()?this.zh().Pk():null},wo.ai=function(){return NQ(this)},wo.bi=function(oo,co){qde(this,oo,co)},wo.ci=function(oo){this.$h().Sk(oo)},wo.di=function(oo){this.$h().Vk(oo)},wo.ei=function(oo){this.$h().Uk(oo)},wo.fi=function(oo,co){var fo,po,vo,xo;return xo=this.Jh(),xo&&oo&&(co=sv(xo.El(),this,co),xo.Il(this)),po=this.Ph(),po&&(lhe(this,this.Ph(),this.Fh()).Bb&hv?(vo=po.Qh(),vo&&(oo?!xo&&vo.Il(this):vo.Hl(this))):(co=(fo=this.Fh(),fo>=0?this.Ah(co):this.Ph().Th(this,-1-fo,null,co)),co=this.Ch(null,-1,co))),this.di(oo),co},wo.gi=function(oo){var co,fo,po,vo,xo,Eo,To,Ao;if(fo=this.Dh(),xo=Ap(fo,oo),co=this.ji(),xo>=co)return bo(oo,69).wk().Dk(this,this.hi(),xo-co);if(xo<=-1)if(Eo=q9((W2(),Gm),fo,oo),Eo){if(vv(),bo(Eo,69).xk()||(Eo=F8(Fv(Gm,Eo))),vo=(po=this.Ih(Eo),bo(po>=0?this.Lh(po,!0,!0):m6(this,Eo,!0),160)),Ao=Eo.Ik(),Ao>1||Ao==-1)return bo(bo(vo,220).Sl(oo,!1),79)}else throw Cs(new i1(I3+oo.xe()+q0e));else if(oo.Jk())return po=this.Ih(oo),bo(po>=0?this.Lh(po,!1,!0):m6(this,oo,!1),79);return To=new EHe(this,oo),To},wo.hi=function(){return R_e(this)},wo.ii=function(){return(c3(),_d).S},wo.ji=function(){return A1(this.ii())},wo.ki=function(oo){jde(this,oo)},wo.Ib=function(){return gS(this)},Vo(_h,"BasicEObjectImpl",99);var Txt;zo(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),wo.li=function(oo){var co;return co=A_e(this),co[oo]},wo.mi=function(oo,co){var fo;fo=A_e(this),Np(fo,oo,co)},wo.ni=function(oo){var co;co=A_e(this),Np(co,oo,null)},wo.th=function(){return bo(n1(this,4),129)},wo.uh=function(){throw Cs(new l0)},wo.vh=function(){return(this.Db&4)!=0},wo.zh=function(){throw Cs(new l0)},wo.oi=function(oo){X8(this,2,oo)},wo.Bh=function(oo,co){this.Db=co<<16|this.Db&255,this.oi(oo)},wo.Dh=function(){return $2(this)},wo.Fh=function(){return this.Db>>16},wo.Gh=function(){var oo,co;return RD(),co=ESe(eE((oo=bo(n1(this,16),29),oo||this.ii()))),co==null?sbe:new iH(this,co)},wo.wh=function(){return(this.Db&1)==0},wo.Jh=function(){return bo(n1(this,128),2034)},wo.Kh=function(){return bo(n1(this,16),29)},wo.Oh=function(){return(this.Db&32)!=0},wo.Ph=function(){return bo(n1(this,2),54)},wo.Vh=function(){return(this.Db&64)!=0},wo.$h=function(){throw Cs(new l0)},wo._h=function(){return bo(n1(this,64),288)},wo.ci=function(oo){X8(this,16,oo)},wo.di=function(oo){X8(this,128,oo)},wo.ei=function(oo){X8(this,64,oo)},wo.hi=function(){return y2(this)},wo.Db=0,Vo(_h,"MinimalEObjectImpl",119),zo(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),wo.oi=function(oo){this.Cb=oo},wo.Ph=function(){return this.Cb},Vo(_h,"MinimalEObjectImpl/Container",120),zo(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),wo.Lh=function(oo,co,fo){return Gke(this,oo,co,fo)},wo.Uh=function(oo,co,fo){return M5e(this,oo,co,fo)},wo.Wh=function(oo){return FSe(this,oo)},wo.bi=function(oo,co){REe(this,oo,co)},wo.ii=function(){return Ny(),kxt},wo.ki=function(oo){yEe(this,oo)},wo.nf=function(){return unt(this)},wo.gh=function(){return!this.o&&(this.o=new V2((Ny(),XE),F4,this,0)),this.o},wo.of=function(oo){return zl(this,oo)},wo.pf=function(oo){return h_(this,oo)},wo.qf=function(oo,co){return tp(this,oo,co)},Vo(PT,"EMapPropertyHolderImpl",2083),zo(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},vO),wo.Lh=function(oo,co,fo){switch(oo){case 0:return this.a;case 1:return this.b}return jQ(this,oo,co,fo)},wo.Wh=function(oo){switch(oo){case 0:return this.a!=0;case 1:return this.b!=0}return ode(this,oo)},wo.bi=function(oo,co){switch(oo){case 0:XX(this,na(Tl(co)));return;case 1:YX(this,na(Tl(co)));return}qde(this,oo,co)},wo.ii=function(){return Ny(),xxt},wo.ki=function(oo){switch(oo){case 0:XX(this,0);return;case 1:YX(this,0);return}jde(this,oo)},wo.Ib=function(){var oo;return this.Db&64?gS(this):(oo=new Bx(gS(this)),oo.a+=" (x: ",n9(oo,this.a),oo.a+=", y: ",n9(oo,this.b),oo.a+=")",oo.a)},wo.a=0,wo.b=0,Vo(PT,"ElkBendPointImpl",572),zo(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),wo.Lh=function(oo,co,fo){return JEe(this,oo,co,fo)},wo.Sh=function(oo,co,fo){return Nde(this,oo,co,fo)},wo.Uh=function(oo,co,fo){return mfe(this,oo,co,fo)},wo.Wh=function(oo){return hEe(this,oo)},wo.bi=function(oo,co){u5e(this,oo,co)},wo.ii=function(){return Ny(),_xt},wo.ki=function(oo){VEe(this,oo)},wo.jh=function(){return this.k},wo.kh=function(){return sX(this)},wo.Ib=function(){return Hfe(this)},wo.k=null,Vo(PT,"ElkGraphElementImpl",739),zo(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),wo.Lh=function(oo,co,fo){return ake(this,oo,co,fo)},wo.Wh=function(oo){return hke(this,oo)},wo.bi=function(oo,co){f5e(this,oo,co)},wo.ii=function(){return Ny(),Ext},wo.ki=function(oo){wke(this,oo)},wo.lh=function(){return this.f},wo.mh=function(){return this.g},wo.nh=function(){return this.i},wo.oh=function(){return this.j},wo.ph=function(oo,co){d9(this,oo,co)},wo.qh=function(oo,co){ix(this,oo,co)},wo.rh=function(oo){m2(this,oo)},wo.sh=function(oo){b2(this,oo)},wo.Ib=function(){return Fde(this)},wo.f=0,wo.g=0,wo.i=0,wo.j=0,Vo(PT,"ElkShapeImpl",740),zo(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),wo.Lh=function(oo,co,fo){return Fke(this,oo,co,fo)},wo.Sh=function(oo,co,fo){return i5e(this,oo,co,fo)},wo.Uh=function(oo,co,fo){return o5e(this,oo,co,fo)},wo.Wh=function(oo){return AEe(this,oo)},wo.bi=function(oo,co){b4e(this,oo,co)},wo.ii=function(){return Ny(),Sxt},wo.ki=function(oo){Nke(this,oo)},wo.hh=function(){return!this.d&&(this.d=new Wu(Gp,this,8,5)),this.d},wo.ih=function(){return!this.e&&(this.e=new Wu(Gp,this,7,4)),this.e},Vo(PT,"ElkConnectableShapeImpl",741),zo(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},KM),wo.Ah=function(oo){return e5e(this,oo)},wo.Lh=function(oo,co,fo){switch(oo){case 3:return $H(this);case 4:return!this.b&&(this.b=new Wu(D1,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Wu(D1,this,5,8)),this.c;case 6:return!this.a&&(this.a=new Bl(Sp,this,6,6)),this.a;case 7:return _f(),!this.b&&(this.b=new Wu(D1,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Wu(D1,this,5,8)),this.c.i<=1));case 8:return _f(),!!nB(this);case 9:return _f(),!!g6(this);case 10:return _f(),!this.b&&(this.b=new Wu(D1,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Wu(D1,this,5,8)),this.c.i!=0)}return JEe(this,oo,co,fo)},wo.Sh=function(oo,co,fo){var po;switch(co){case 3:return this.Cb&&(fo=(po=this.Db>>16,po>=0?e5e(this,fo):this.Cb.Th(this,-1-po,null,fo))),Mwe(this,bo(oo,27),fo);case 4:return!this.b&&(this.b=new Wu(D1,this,4,7)),a2(this.b,oo,fo);case 5:return!this.c&&(this.c=new Wu(D1,this,5,8)),a2(this.c,oo,fo);case 6:return!this.a&&(this.a=new Bl(Sp,this,6,6)),a2(this.a,oo,fo)}return Nde(this,oo,co,fo)},wo.Uh=function(oo,co,fo){switch(co){case 3:return Mwe(this,null,fo);case 4:return!this.b&&(this.b=new Wu(D1,this,4,7)),sv(this.b,oo,fo);case 5:return!this.c&&(this.c=new Wu(D1,this,5,8)),sv(this.c,oo,fo);case 6:return!this.a&&(this.a=new Bl(Sp,this,6,6)),sv(this.a,oo,fo)}return mfe(this,oo,co,fo)},wo.Wh=function(oo){switch(oo){case 3:return!!$H(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Wu(D1,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Wu(D1,this,5,8)),this.c.i<=1));case 8:return nB(this);case 9:return g6(this);case 10:return!this.b&&(this.b=new Wu(D1,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Wu(D1,this,5,8)),this.c.i!=0)}return hEe(this,oo)},wo.bi=function(oo,co){switch(oo){case 3:fZ(this,bo(co,27));return;case 4:!this.b&&(this.b=new Wu(D1,this,4,7)),U1(this.b),!this.b&&(this.b=new Wu(D1,this,4,7)),Bp(this.b,bo(co,16));return;case 5:!this.c&&(this.c=new Wu(D1,this,5,8)),U1(this.c),!this.c&&(this.c=new Wu(D1,this,5,8)),Bp(this.c,bo(co,16));return;case 6:!this.a&&(this.a=new Bl(Sp,this,6,6)),U1(this.a),!this.a&&(this.a=new Bl(Sp,this,6,6)),Bp(this.a,bo(co,16));return}u5e(this,oo,co)},wo.ii=function(){return Ny(),JNe},wo.ki=function(oo){switch(oo){case 3:fZ(this,null);return;case 4:!this.b&&(this.b=new Wu(D1,this,4,7)),U1(this.b);return;case 5:!this.c&&(this.c=new Wu(D1,this,5,8)),U1(this.c);return;case 6:!this.a&&(this.a=new Bl(Sp,this,6,6)),U1(this.a);return}VEe(this,oo)},wo.Ib=function(){return tlt(this)},Vo(PT,"ElkEdgeImpl",326),zo(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},YM),wo.Ah=function(oo){return Xke(this,oo)},wo.Lh=function(oo,co,fo){switch(oo){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Qp(tx,this,5)),this.a;case 6:return nKe(this);case 7:return co?ude(this):this.i;case 8:return co?cde(this):this.f;case 9:return!this.g&&(this.g=new Wu(Sp,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Wu(Sp,this,10,9)),this.e;case 11:return this.d}return Gke(this,oo,co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 6:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?Xke(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Nwe(this,bo(oo,74),fo);case 9:return!this.g&&(this.g=new Wu(Sp,this,9,10)),a2(this.g,oo,fo);case 10:return!this.e&&(this.e=new Wu(Sp,this,10,9)),a2(this.e,oo,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Ny(),Jte)),co),69),xo.wk().zk(this,y2(this),co-A1((Ny(),Jte)),oo,fo)},wo.Uh=function(oo,co,fo){switch(co){case 5:return!this.a&&(this.a=new Qp(tx,this,5)),sv(this.a,oo,fo);case 6:return Nwe(this,null,fo);case 9:return!this.g&&(this.g=new Wu(Sp,this,9,10)),sv(this.g,oo,fo);case 10:return!this.e&&(this.e=new Wu(Sp,this,10,9)),sv(this.e,oo,fo)}return M5e(this,oo,co,fo)},wo.Wh=function(oo){switch(oo){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!nKe(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return FSe(this,oo)},wo.bi=function(oo,co){switch(oo){case 1:fI(this,na(Tl(co)));return;case 2:hI(this,na(Tl(co)));return;case 3:uI(this,na(Tl(co)));return;case 4:dI(this,na(Tl(co)));return;case 5:!this.a&&(this.a=new Qp(tx,this,5)),U1(this.a),!this.a&&(this.a=new Qp(tx,this,5)),Bp(this.a,bo(co,16));return;case 6:est(this,bo(co,74));return;case 7:rQ(this,bo(co,84));return;case 8:nQ(this,bo(co,84));return;case 9:!this.g&&(this.g=new Wu(Sp,this,9,10)),U1(this.g),!this.g&&(this.g=new Wu(Sp,this,9,10)),Bp(this.g,bo(co,16));return;case 10:!this.e&&(this.e=new Wu(Sp,this,10,9)),U1(this.e),!this.e&&(this.e=new Wu(Sp,this,10,9)),Bp(this.e,bo(co,16));return;case 11:tEe(this,u0(co));return}REe(this,oo,co)},wo.ii=function(){return Ny(),Jte},wo.ki=function(oo){switch(oo){case 1:fI(this,0);return;case 2:hI(this,0);return;case 3:uI(this,0);return;case 4:dI(this,0);return;case 5:!this.a&&(this.a=new Qp(tx,this,5)),U1(this.a);return;case 6:est(this,null);return;case 7:rQ(this,null);return;case 8:nQ(this,null);return;case 9:!this.g&&(this.g=new Wu(Sp,this,9,10)),U1(this.g);return;case 10:!this.e&&(this.e=new Wu(Sp,this,10,9)),U1(this.e);return;case 11:tEe(this,null);return}yEe(this,oo)},wo.Ib=function(){return pot(this)},wo.b=0,wo.c=0,wo.d=null,wo.j=0,wo.k=0,Vo(PT,"ElkEdgeSectionImpl",452),zo(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),wo.Lh=function(oo,co,fo){var po;return oo==0?(!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab):dx(this,oo-A1(this.ii()),Uu((po=bo(n1(this,16),29),po||this.ii()),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo;return co==0?(!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo)):(vo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),vo.wk().zk(this,y2(this),co-A1(this.ii()),oo,fo))},wo.Uh=function(oo,co,fo){var po,vo;return co==0?(!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo)):(vo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),vo.wk().Ak(this,y2(this),co-A1(this.ii()),oo,fo))},wo.Wh=function(oo){var co;return oo==0?!!this.Ab&&this.Ab.i!=0:ux(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.Zh=function(oo){return A3e(this,oo)},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return}vx(this,oo-A1(this.ii()),Uu((fo=bo(n1(this,16),29),fo||this.ii()),oo),co)},wo.di=function(oo){X8(this,128,oo)},wo.ii=function(){return Pu(),Vxt},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return}mx(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.pi=function(){this.Bb|=1},wo.qi=function(oo){return cB(this,oo)},wo.Bb=0,Vo(_h,"EModelElementImpl",158),zo(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},KU),wo.ri=function(oo,co){return Rlt(this,oo,co)},wo.si=function(oo){var co,fo,po,vo,xo;if(this.a!=zw(oo)||oo.Bb&256)throw Cs(new i1(G0e+oo.zb+$6));for(po=Yv(oo);Fy(po.a).i!=0;){if(fo=bo(Xq(po,0,(co=bo(Gs(Fy(po.a),0),89),xo=co.c,Hs(xo,90)?bo(xo,29):(Pu(),nS))),29),p6(fo))return vo=zw(fo).wi().si(fo),bo(vo,54).ci(oo),vo;po=Yv(fo)}return(oo.D!=null?oo.D:oo.B)=="java.util.Map$Entry"?new FGe(oo):new Sxe(oo)},wo.ti=function(oo,co){return w6(this,oo,co)},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.a}return dx(this,oo-A1((Pu(),J3)),Uu((po=bo(n1(this,16),29),po||J3),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 1:return this.a&&(fo=bo(this.a,54).Th(this,4,t_,fo)),qEe(this,bo(oo,241),fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),J3)),co),69),vo.wk().zk(this,y2(this),co-A1((Pu(),J3)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 1:return qEe(this,null,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),J3)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),J3)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return ux(this,oo-A1((Pu(),J3)),Uu((co=bo(n1(this,16),29),co||J3),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:Krt(this,bo(co,241));return}vx(this,oo-A1((Pu(),J3)),Uu((fo=bo(n1(this,16),29),fo||J3),oo),co)},wo.ii=function(){return Pu(),J3},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Krt(this,null);return}mx(this,oo-A1((Pu(),J3)),Uu((co=bo(n1(this,16),29),co||J3),oo))};var ZF,rMe,Cxt;Vo(_h,"EFactoryImpl",720),zo(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},Hie),wo.ri=function(oo,co){switch(oo.hk()){case 12:return bo(co,149).Pg();case 13:return ry(co);default:throw Cs(new i1(kN+oo.xe()+$6))}},wo.si=function(oo){var co,fo,po,vo,xo,Eo,To,Ao;switch(oo.G==-1&&(oo.G=(co=zw(oo),co?x4(co.vi(),oo):-1)),oo.G){case 4:return xo=new kU,xo;case 6:return Eo=new vD,Eo;case 7:return To=new Eye,To;case 8:return po=new KM,po;case 9:return fo=new vO,fo;case 10:return vo=new YM,vo;case 11:return Ao=new TU,Ao;default:throw Cs(new i1(G0e+oo.zb+$6))}},wo.ti=function(oo,co){switch(oo.hk()){case 13:case 12:return null;default:throw Cs(new i1(kN+oo.xe()+$6))}},Vo(PT,"ElkGraphFactoryImpl",1037),zo(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),wo.Gh=function(){var oo,co;return co=(oo=bo(n1(this,16),29),ESe(eE(oo||this.ii()))),co==null?(RD(),RD(),sbe):new aVe(this,co)},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.xe()}return dx(this,oo-A1(this.ii()),Uu((po=bo(n1(this,16),29),po||this.ii()),oo),co,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return ux(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:this.ui(u0(co));return}vx(this,oo-A1(this.ii()),Uu((fo=bo(n1(this,16),29),fo||this.ii()),oo),co)},wo.ii=function(){return Pu(),Gxt},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:this.ui(null);return}mx(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.xe=function(){return this.zb},wo.ui=function(oo){s2(this,oo)},wo.Ib=function(){return BL(this)},wo.zb=null,Vo(_h,"ENamedElementImpl",448),zo(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},MUe),wo.Ah=function(oo){return ort(this,oo)},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new k$(this,n_,this)),this.rb;case 6:return!this.vb&&(this.vb=new k8(t_,this,6,7)),this.vb;case 7:return co?this.Db>>16==7?bo(this.Cb,241):null:cKe(this)}return dx(this,oo-A1((Pu(),H4)),Uu((po=bo(n1(this,16),29),po||H4),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 4:return this.sb&&(fo=bo(this.sb,54).Th(this,1,QF,fo)),WEe(this,bo(oo,480),fo);case 5:return!this.rb&&(this.rb=new k$(this,n_,this)),a2(this.rb,oo,fo);case 6:return!this.vb&&(this.vb=new k8(t_,this,6,7)),a2(this.vb,oo,fo);case 7:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?ort(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,7,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),H4)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),H4)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 4:return WEe(this,null,fo);case 5:return!this.rb&&(this.rb=new k$(this,n_,this)),sv(this.rb,oo,fo);case 6:return!this.vb&&(this.vb=new k8(t_,this,6,7)),sv(this.vb,oo,fo);case 7:return Uw(this,null,7,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),H4)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),H4)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!cKe(this)}return ux(this,oo-A1((Pu(),H4)),Uu((co=bo(n1(this,16),29),co||H4),oo))},wo.Zh=function(oo){var co;return co=AHt(this,oo),co||A3e(this,oo)},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:s2(this,u0(co));return;case 2:cQ(this,u0(co));return;case 3:lQ(this,u0(co));return;case 4:Bde(this,bo(co,480));return;case 5:!this.rb&&(this.rb=new k$(this,n_,this)),U1(this.rb),!this.rb&&(this.rb=new k$(this,n_,this)),Bp(this.rb,bo(co,16));return;case 6:!this.vb&&(this.vb=new k8(t_,this,6,7)),U1(this.vb),!this.vb&&(this.vb=new k8(t_,this,6,7)),Bp(this.vb,bo(co,16));return}vx(this,oo-A1((Pu(),H4)),Uu((fo=bo(n1(this,16),29),fo||H4),oo),co)},wo.ei=function(oo){var co,fo;if(oo&&this.rb)for(fo=new g1(this.rb);fo.e!=fo.i.gc();)co=k1(fo),Hs(co,364)&&(bo(co,364).w=null);X8(this,64,oo)},wo.ii=function(){return Pu(),H4},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:s2(this,null);return;case 2:cQ(this,null);return;case 3:lQ(this,null);return;case 4:Bde(this,null);return;case 5:!this.rb&&(this.rb=new k$(this,n_,this)),U1(this.rb);return;case 6:!this.vb&&(this.vb=new k8(t_,this,6,7)),U1(this.vb);return}mx(this,oo-A1((Pu(),H4)),Uu((co=bo(n1(this,16),29),co||H4),oo))},wo.pi=function(){_de(this)},wo.vi=function(){return!this.rb&&(this.rb=new k$(this,n_,this)),this.rb},wo.wi=function(){return this.sb},wo.xi=function(){return this.ub},wo.yi=function(){return this.xb},wo.zi=function(){return this.yb},wo.Ai=function(oo){this.ub=oo},wo.Ib=function(){var oo;return this.Db&64?BL(this):(oo=new Bx(BL(this)),oo.a+=" (nsURI: ",Av(oo,this.yb),oo.a+=", nsPrefix: ",Av(oo,this.xb),oo.a+=")",oo.a)},wo.xb=null,wo.yb=null,Vo(_h,"EPackageImpl",184),zo(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},_ot),wo.q=!1,wo.r=!1;var $xt=!1;Vo(PT,"ElkGraphPackageImpl",569),zo(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},kU),wo.Ah=function(oo){return Qke(this,oo)},wo.Lh=function(oo,co,fo){switch(oo){case 7:return uKe(this);case 8:return this.a}return ake(this,oo,co,fo)},wo.Sh=function(oo,co,fo){var po;switch(co){case 7:return this.Cb&&(fo=(po=this.Db>>16,po>=0?Qke(this,fo):this.Cb.Th(this,-1-po,null,fo))),Bxe(this,bo(oo,167),fo)}return Nde(this,oo,co,fo)},wo.Uh=function(oo,co,fo){return co==7?Bxe(this,null,fo):mfe(this,oo,co,fo)},wo.Wh=function(oo){switch(oo){case 7:return!!uKe(this);case 8:return!Iu("",this.a)}return hke(this,oo)},wo.bi=function(oo,co){switch(oo){case 7:O4e(this,bo(co,167));return;case 8:X_e(this,u0(co));return}f5e(this,oo,co)},wo.ii=function(){return Ny(),eMe},wo.ki=function(oo){switch(oo){case 7:O4e(this,null);return;case 8:X_e(this,"");return}wke(this,oo)},wo.Ib=function(){return lit(this)},wo.a="",Vo(PT,"ElkLabelImpl",366),zo(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},vD),wo.Ah=function(oo){return t5e(this,oo)},wo.Lh=function(oo,co,fo){switch(oo){case 9:return!this.c&&(this.c=new Bl(fw,this,9,9)),this.c;case 10:return!this.a&&(this.a=new Bl(F0,this,10,11)),this.a;case 11:return kp(this);case 12:return!this.b&&(this.b=new Bl(Gp,this,12,3)),this.b;case 13:return _f(),!this.a&&(this.a=new Bl(F0,this,10,11)),this.a.i>0}return Fke(this,oo,co,fo)},wo.Sh=function(oo,co,fo){var po;switch(co){case 9:return!this.c&&(this.c=new Bl(fw,this,9,9)),a2(this.c,oo,fo);case 10:return!this.a&&(this.a=new Bl(F0,this,10,11)),a2(this.a,oo,fo);case 11:return this.Cb&&(fo=(po=this.Db>>16,po>=0?t5e(this,fo):this.Cb.Th(this,-1-po,null,fo))),Vwe(this,bo(oo,27),fo);case 12:return!this.b&&(this.b=new Bl(Gp,this,12,3)),a2(this.b,oo,fo)}return i5e(this,oo,co,fo)},wo.Uh=function(oo,co,fo){switch(co){case 9:return!this.c&&(this.c=new Bl(fw,this,9,9)),sv(this.c,oo,fo);case 10:return!this.a&&(this.a=new Bl(F0,this,10,11)),sv(this.a,oo,fo);case 11:return Vwe(this,null,fo);case 12:return!this.b&&(this.b=new Bl(Gp,this,12,3)),sv(this.b,oo,fo)}return o5e(this,oo,co,fo)},wo.Wh=function(oo){switch(oo){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!kp(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new Bl(F0,this,10,11)),this.a.i>0}return AEe(this,oo)},wo.bi=function(oo,co){switch(oo){case 9:!this.c&&(this.c=new Bl(fw,this,9,9)),U1(this.c),!this.c&&(this.c=new Bl(fw,this,9,9)),Bp(this.c,bo(co,16));return;case 10:!this.a&&(this.a=new Bl(F0,this,10,11)),U1(this.a),!this.a&&(this.a=new Bl(F0,this,10,11)),Bp(this.a,bo(co,16));return;case 11:dZ(this,bo(co,27));return;case 12:!this.b&&(this.b=new Bl(Gp,this,12,3)),U1(this.b),!this.b&&(this.b=new Bl(Gp,this,12,3)),Bp(this.b,bo(co,16));return}b4e(this,oo,co)},wo.ii=function(){return Ny(),tMe},wo.ki=function(oo){switch(oo){case 9:!this.c&&(this.c=new Bl(fw,this,9,9)),U1(this.c);return;case 10:!this.a&&(this.a=new Bl(F0,this,10,11)),U1(this.a);return;case 11:dZ(this,null);return;case 12:!this.b&&(this.b=new Bl(Gp,this,12,3)),U1(this.b);return}Nke(this,oo)},wo.Ib=function(){return U4e(this)},Vo(PT,"ElkNodeImpl",207),zo(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Eye),wo.Ah=function(oo){return Zke(this,oo)},wo.Lh=function(oo,co,fo){return oo==9?l_(this):Fke(this,oo,co,fo)},wo.Sh=function(oo,co,fo){var po;switch(co){case 9:return this.Cb&&(fo=(po=this.Db>>16,po>=0?Zke(this,fo):this.Cb.Th(this,-1-po,null,fo))),Dwe(this,bo(oo,27),fo)}return i5e(this,oo,co,fo)},wo.Uh=function(oo,co,fo){return co==9?Dwe(this,null,fo):o5e(this,oo,co,fo)},wo.Wh=function(oo){return oo==9?!!l_(this):AEe(this,oo)},wo.bi=function(oo,co){switch(oo){case 9:C4e(this,bo(co,27));return}b4e(this,oo,co)},wo.ii=function(){return Ny(),nMe},wo.ki=function(oo){switch(oo){case 9:C4e(this,null);return}Nke(this,oo)},wo.Ib=function(){return Jst(this)},Vo(PT,"ElkPortImpl",193);var Axt=Ip(lv,"BasicEMap/Entry");zo(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},TU),wo.Fb=function(oo){return this===oo},wo.ld=function(){return this.b},wo.Hb=function(){return PC(this)},wo.Di=function(oo){Q_e(this,bo(oo,149))},wo.Lh=function(oo,co,fo){switch(oo){case 0:return this.b;case 1:return this.c}return jQ(this,oo,co,fo)},wo.Wh=function(oo){switch(oo){case 0:return!!this.b;case 1:return this.c!=null}return ode(this,oo)},wo.bi=function(oo,co){switch(oo){case 0:Q_e(this,bo(co,149));return;case 1:Y_e(this,co);return}qde(this,oo,co)},wo.ii=function(){return Ny(),XE},wo.ki=function(oo){switch(oo){case 0:Q_e(this,null);return;case 1:Y_e(this,null);return}jde(this,oo)},wo.Bi=function(){var oo;return this.a==-1&&(oo=this.b,this.a=oo?dp(oo):0),this.a},wo.md=function(){return this.c},wo.Ci=function(oo){this.a=oo},wo.nd=function(oo){var co;return co=this.c,Y_e(this,oo),co},wo.Ib=function(){var oo;return this.Db&64?gS(this):(oo=new J4,S0(S0(S0(oo,this.b?this.b.Pg():I2),F1e),QD(this.c)),oo.a)},wo.a=-1,wo.c=null;var F4=Vo(PT,"ElkPropertyToValueMapEntryImpl",1122);zo(996,1,{},Gie),Vo(qm,"JsonAdapter",996),zo(216,63,$5,z_),Vo(qm,"JsonImportException",216),zo(868,1,{},srt),Vo(qm,"JsonImporter",868),zo(903,1,{},aHe),Vo(qm,"JsonImporter/lambda$0$Type",903),zo(904,1,{},lHe),Vo(qm,"JsonImporter/lambda$1$Type",904),zo(912,1,{},OBe),Vo(qm,"JsonImporter/lambda$10$Type",912),zo(914,1,{},cHe),Vo(qm,"JsonImporter/lambda$11$Type",914),zo(915,1,{},uHe),Vo(qm,"JsonImporter/lambda$12$Type",915),zo(921,1,{},SUe),Vo(qm,"JsonImporter/lambda$13$Type",921),zo(920,1,{},_Ue),Vo(qm,"JsonImporter/lambda$14$Type",920),zo(916,1,{},fHe),Vo(qm,"JsonImporter/lambda$15$Type",916),zo(917,1,{},dHe),Vo(qm,"JsonImporter/lambda$16$Type",917),zo(918,1,{},hHe),Vo(qm,"JsonImporter/lambda$17$Type",918),zo(919,1,{},pHe),Vo(qm,"JsonImporter/lambda$18$Type",919),zo(924,1,{},IBe),Vo(qm,"JsonImporter/lambda$19$Type",924),zo(905,1,{},NBe),Vo(qm,"JsonImporter/lambda$2$Type",905),zo(922,1,{},MBe),Vo(qm,"JsonImporter/lambda$20$Type",922),zo(923,1,{},DBe),Vo(qm,"JsonImporter/lambda$21$Type",923),zo(927,1,{},LBe),Vo(qm,"JsonImporter/lambda$22$Type",927),zo(925,1,{},BBe),Vo(qm,"JsonImporter/lambda$23$Type",925),zo(926,1,{},FBe),Vo(qm,"JsonImporter/lambda$24$Type",926),zo(929,1,{},PBe),Vo(qm,"JsonImporter/lambda$25$Type",929),zo(928,1,{},jBe),Vo(qm,"JsonImporter/lambda$26$Type",928),zo(930,1,_1,gHe),wo.Cd=function(oo){q7t(this.b,this.a,u0(oo))},Vo(qm,"JsonImporter/lambda$27$Type",930),zo(931,1,_1,mHe),wo.Cd=function(oo){V7t(this.b,this.a,u0(oo))},Vo(qm,"JsonImporter/lambda$28$Type",931),zo(932,1,{},vHe),Vo(qm,"JsonImporter/lambda$29$Type",932),zo(908,1,{},zBe),Vo(qm,"JsonImporter/lambda$3$Type",908),zo(933,1,{},bHe),Vo(qm,"JsonImporter/lambda$30$Type",933),zo(934,1,{},HBe),Vo(qm,"JsonImporter/lambda$31$Type",934),zo(935,1,{},qBe),Vo(qm,"JsonImporter/lambda$32$Type",935),zo(936,1,{},VBe),Vo(qm,"JsonImporter/lambda$33$Type",936),zo(937,1,{},GBe),Vo(qm,"JsonImporter/lambda$34$Type",937),zo(870,1,{},WBe),Vo(qm,"JsonImporter/lambda$35$Type",870),zo(941,1,{},dGe),Vo(qm,"JsonImporter/lambda$36$Type",941),zo(938,1,_1,UBe),wo.Cd=function(oo){Y9t(this.a,bo(oo,377))},Vo(qm,"JsonImporter/lambda$37$Type",938),zo(939,1,_1,yHe),wo.Cd=function(oo){AEt(this.a,this.b,bo(oo,166))},Vo(qm,"JsonImporter/lambda$38$Type",939),zo(940,1,_1,wHe),wo.Cd=function(oo){REt(this.a,this.b,bo(oo,166))},Vo(qm,"JsonImporter/lambda$39$Type",940),zo(906,1,{},KBe),Vo(qm,"JsonImporter/lambda$4$Type",906),zo(942,1,_1,YBe),wo.Cd=function(oo){X9t(this.a,bo(oo,8))},Vo(qm,"JsonImporter/lambda$40$Type",942),zo(907,1,{},XBe),Vo(qm,"JsonImporter/lambda$5$Type",907),zo(911,1,{},QBe),Vo(qm,"JsonImporter/lambda$6$Type",911),zo(909,1,{},ZBe),Vo(qm,"JsonImporter/lambda$7$Type",909),zo(910,1,{},JBe),Vo(qm,"JsonImporter/lambda$8$Type",910),zo(913,1,{},eFe),Vo(qm,"JsonImporter/lambda$9$Type",913),zo(961,1,_1,tFe),wo.Cd=function(oo){N8(this.a,new T$(u0(oo)))},Vo(qm,"JsonMetaDataConverter/lambda$0$Type",961),zo(962,1,_1,nFe),wo.Cd=function(oo){jCt(this.a,bo(oo,245))},Vo(qm,"JsonMetaDataConverter/lambda$1$Type",962),zo(963,1,_1,rFe),wo.Cd=function(oo){j$t(this.a,bo(oo,143))},Vo(qm,"JsonMetaDataConverter/lambda$2$Type",963),zo(964,1,_1,iFe),wo.Cd=function(oo){zCt(this.a,bo(oo,170))},Vo(qm,"JsonMetaDataConverter/lambda$3$Type",964),zo(245,22,{3:1,34:1,22:1,245:1},y8);var ene,tne,Jve,nne,rne,ine,ebe,tbe,sne=V1(fV,"GraphFeature",245,X1,k8t,hTt),Rxt;zo(11,1,{34:1,149:1},np,Rp,Ru,Mm),wo.Fd=function(oo){return Dkt(this,bo(oo,149))},wo.Fb=function(oo){return WUe(this,oo)},wo.Sg=function(){return iu(this)},wo.Pg=function(){return this.b},wo.Hb=function(){return h4(this.b)},wo.Ib=function(){return this.b},Vo(fV,"Property",11),zo(671,1,g0,Lae),wo.Ne=function(oo,co){return WIt(this,bo(oo,96),bo(co,96))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(fV,"PropertyHolderComparator",671),zo(709,1,$m,oye),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){return U7t(this)},wo.Qb=function(){eje()},wo.Ob=function(){return!!this.a},Vo(kJ,"ElkGraphUtil/AncestorIterator",709);var iMe=Ip(lv,"EList");zo(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),wo.bd=function(oo,co){PL(this,oo,co)},wo.Fc=function(oo){return Y1(this,oo)},wo.cd=function(oo,co){return wEe(this,oo,co)},wo.Gc=function(oo){return Bp(this,oo)},wo.Ii=function(){return new E8(this)},wo.Ji=function(){return new oH(this)},wo.Ki=function(oo){return QH(this,oo)},wo.Li=function(){return!0},wo.Mi=function(oo,co){},wo.Ni=function(){},wo.Oi=function(oo,co){Bue(this,oo,co)},wo.Pi=function(oo,co,fo){},wo.Qi=function(oo,co){},wo.Ri=function(oo,co,fo){},wo.Fb=function(oo){return Bst(this,oo)},wo.Hb=function(){return mEe(this)},wo.Si=function(){return!1},wo.Kc=function(){return new g1(this)},wo.ed=function(){return new _8(this)},wo.fd=function(oo){var co;if(co=this.gc(),oo<0||oo>co)throw Cs(new _$(oo,co));return new zce(this,oo)},wo.Ui=function(oo,co){this.Ti(oo,this.dd(co))},wo.Mc=function(oo){return HX(this,oo)},wo.Wi=function(oo,co){return co},wo.hd=function(oo,co){return O9(this,oo,co)},wo.Ib=function(){return uke(this)},wo.Yi=function(){return!0},wo.Zi=function(oo,co){return CI(this,co)},Vo(lv,"AbstractEList",70),zo(66,70,uE,XM,n6,uEe),wo.Ei=function(oo,co){return Mde(this,oo,co)},wo.Fi=function(oo){return Ont(this,oo)},wo.Gi=function(oo,co){hq(this,oo,co)},wo.Hi=function(oo){DH(this,oo)},wo.$i=function(oo){return E_e(this,oo)},wo.$b=function(){xL(this)},wo.Hc=function(oo){return VI(this,oo)},wo.Xb=function(oo){return Gs(this,oo)},wo._i=function(oo){var co,fo,po;++this.j,fo=this.g==null?0:this.g.length,oo>fo&&(po=this.g,co=fo+(fo/2|0)+4,co=0?(this.gd(co),!0):!1},wo.Xi=function(oo,co){return this.Dj(oo,this.Zi(oo,co))},wo.gc=function(){return this.Ej()},wo.Pc=function(){return this.Fj()},wo.Qc=function(oo){return this.Gj(oo)},wo.Ib=function(){return this.Hj()},Vo(lv,"DelegatingEList",2093),zo(2094,2093,Jdt),wo.Ei=function(oo,co){return o3e(this,oo,co)},wo.Fi=function(oo){return this.Ei(this.Ej(),oo)},wo.Gi=function(oo,co){Eot(this,oo,co)},wo.Hi=function(oo){fot(this,oo)},wo.Li=function(){return!this.Mj()},wo.$b=function(){gB(this)},wo.Ij=function(oo,co,fo,po,vo){return new GUe(this,oo,co,fo,po,vo)},wo.Jj=function(oo){W0(this.jj(),oo)},wo.Kj=function(){return null},wo.Lj=function(){return-1},wo.jj=function(){return null},wo.Mj=function(){return!1},wo.Nj=function(oo,co){return co},wo.Oj=function(oo,co){return co},wo.Pj=function(){return!1},wo.Qj=function(){return!this.Aj()},wo.Ti=function(oo,co){var fo,po;return this.Pj()?(po=this.Qj(),fo=O5e(this,oo,co),this.Jj(this.Ij(7,Ql(co),fo,oo,po)),fo):O5e(this,oo,co)},wo.gd=function(oo){var co,fo,po,vo;return this.Pj()?(fo=null,po=this.Qj(),co=this.Ij(4,vo=jY(this,oo),null,oo,po),this.Mj()&&vo?(fo=this.Oj(vo,fo),fo?(fo.nj(co),fo.oj()):this.Jj(co)):fo?(fo.nj(co),fo.oj()):this.Jj(co),vo):(vo=jY(this,oo),this.Mj()&&vo&&(fo=this.Oj(vo,null),fo&&fo.oj()),vo)},wo.Xi=function(oo,co){return Oat(this,oo,co)},Vo(yR,"DelegatingNotifyingListImpl",2094),zo(152,1,$V),wo.nj=function(oo){return m5e(this,oo)},wo.oj=function(){Gue(this)},wo.gj=function(){return this.d},wo.Kj=function(){return null},wo.Rj=function(){return null},wo.hj=function(oo){return-1},wo.ij=function(){return bst(this)},wo.jj=function(){return null},wo.kj=function(){return L4e(this)},wo.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},wo.Sj=function(){return!1},wo.mj=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo;switch(this.d){case 1:case 2:switch(vo=oo.gj(),vo){case 1:case 2:if(xo=oo.jj(),$a(xo)===$a(this.jj())&&this.hj(null)==oo.hj(null))return this.g=oo.ij(),oo.gj()==1&&(this.d=1),!0}case 4:{switch(vo=oo.gj(),vo){case 4:{if(xo=oo.jj(),$a(xo)===$a(this.jj())&&this.hj(null)==oo.hj(null))return Io=S3e(this),Ao=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,Eo=oo.lj(),this.d=6,Wo=new n6(2),Ao<=Eo?(Y1(Wo,this.n),Y1(Wo,oo.kj()),this.g=As($s(Q1,1),E0,28,15,[this.o=Ao,Eo+1])):(Y1(Wo,oo.kj()),Y1(Wo,this.n),this.g=As($s(Q1,1),E0,28,15,[this.o=Eo,Ao])),this.n=Wo,Io||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(vo=oo.gj(),vo){case 4:{if(xo=oo.jj(),$a(xo)===$a(this.jj())&&this.hj(null)==oo.hj(null)){for(Io=S3e(this),Eo=oo.lj(),Fo=bo(this.g,53),po=Al(Q1,E0,28,Fo.length+1,15,1),co=0;co>>0,co.toString(16))),po.a+=" (eventType: ",this.d){case 1:{po.a+="SET";break}case 2:{po.a+="UNSET";break}case 3:{po.a+="ADD";break}case 5:{po.a+="ADD_MANY";break}case 4:{po.a+="REMOVE";break}case 6:{po.a+="REMOVE_MANY";break}case 7:{po.a+="MOVE";break}case 8:{po.a+="REMOVING_ADAPTER";break}case 9:{po.a+="RESOLVE";break}default:{sle(po,this.d);break}}if(oat(this)&&(po.a+=", touch: true"),po.a+=", position: ",sle(po,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),po.a+=", notifier: ",GD(po,this.jj()),po.a+=", feature: ",GD(po,this.Kj()),po.a+=", oldValue: ",GD(po,L4e(this)),po.a+=", newValue: ",this.d==6&&Hs(this.g,53)){for(fo=bo(this.g,53),po.a+="[",oo=0;oo10?((!this.b||this.c.j!=this.a)&&(this.b=new rL(this),this.a=this.j),jS(this.b,oo)):VI(this,oo)},wo.Yi=function(){return!0},wo.a=0,Vo(lv,"AbstractEList/1",966),zo(302,77,l1e,_$),Vo(lv,"AbstractEList/BasicIndexOutOfBoundsException",302),zo(37,1,$m,g1),wo.Nb=function(oo){jm(this,oo)},wo.Xj=function(){if(this.i.j!=this.f)throw Cs(new rx)},wo.Yj=function(){return k1(this)},wo.Ob=function(){return this.e!=this.i.gc()},wo.Pb=function(){return this.Yj()},wo.Qb=function(){QL(this)},wo.e=0,wo.f=0,wo.g=-1,Vo(lv,"AbstractEList/EIterator",37),zo(286,37,DE,_8,zce),wo.Qb=function(){QL(this)},wo.Rb=function(oo){Ctt(this,oo)},wo.Zj=function(){var oo;try{return oo=this.d.Xb(--this.e),this.Xj(),this.g=this.e,oo}catch(co){throw co=$p(co),Hs(co,77)?(this.Xj(),Cs(new ay)):Cs(co)}},wo.$j=function(oo){Mnt(this,oo)},wo.Sb=function(){return this.e!=0},wo.Tb=function(){return this.e},wo.Ub=function(){return this.Zj()},wo.Vb=function(){return this.e-1},wo.Wb=function(oo){this.$j(oo)},Vo(lv,"AbstractEList/EListIterator",286),zo(355,37,$m,E8),wo.Yj=function(){return sde(this)},wo.Qb=function(){throw Cs(new l0)},Vo(lv,"AbstractEList/NonResolvingEIterator",355),zo(398,286,DE,oH,Qwe),wo.Rb=function(oo){throw Cs(new l0)},wo.Yj=function(){var oo;try{return oo=this.c.Vi(this.e),this.Xj(),this.g=this.e++,oo}catch(co){throw co=$p(co),Hs(co,77)?(this.Xj(),Cs(new ay)):Cs(co)}},wo.Zj=function(){var oo;try{return oo=this.c.Vi(--this.e),this.Xj(),this.g=this.e,oo}catch(co){throw co=$p(co),Hs(co,77)?(this.Xj(),Cs(new ay)):Cs(co)}},wo.Qb=function(){throw Cs(new l0)},wo.Wb=function(oo){throw Cs(new l0)},Vo(lv,"AbstractEList/NonResolvingEListIterator",398),zo(2080,70,eht),wo.Ei=function(oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo;if(vo=co.gc(),vo!=0){for(Io=bo(n1(this.a,4),129),Fo=Io==null?0:Io.length,Xo=Fo+vo,po=Afe(this,Xo),Wo=Fo-oo,Wo>0&&jy(Io,oo,po,oo+vo,Wo),Ao=co.Kc(),Eo=0;Eofo)throw Cs(new _$(oo,fo));return new hUe(this,oo)},wo.$b=function(){var oo,co;++this.j,oo=bo(n1(this.a,4),129),co=oo==null?0:oo.length,jI(this,null),Bue(this,co,oo)},wo.Hc=function(oo){var co,fo,po,vo,xo;if(co=bo(n1(this.a,4),129),co!=null){if(oo!=null){for(po=co,vo=0,xo=po.length;vo=fo)throw Cs(new _$(oo,fo));return co[oo]},wo.dd=function(oo){var co,fo,po;if(co=bo(n1(this.a,4),129),co!=null){if(oo!=null){for(fo=0,po=co.length;fofo)throw Cs(new _$(oo,fo));return new dUe(this,oo)},wo.Ti=function(oo,co){var fo,po,vo;if(fo=Btt(this),vo=fo==null?0:fo.length,oo>=vo)throw Cs(new Dv(epe+oo+jT+vo));if(co>=vo)throw Cs(new Dv(tpe+co+jT+vo));return po=fo[co],oo!=co&&(oo0&&jy(oo,0,co,0,fo),co},wo.Qc=function(oo){var co,fo,po;return co=bo(n1(this.a,4),129),po=co==null?0:co.length,po>0&&(oo.lengthpo&&Np(oo,po,null),oo};var Oxt;Vo(lv,"ArrayDelegatingEList",2080),zo(1051,37,$m,pXe),wo.Xj=function(){if(this.b.j!=this.f||$a(bo(n1(this.b.a,4),129))!==$a(this.a))throw Cs(new rx)},wo.Qb=function(){QL(this),this.a=bo(n1(this.b.a,4),129)},Vo(lv,"ArrayDelegatingEList/EIterator",1051),zo(722,286,DE,TWe,dUe),wo.Xj=function(){if(this.b.j!=this.f||$a(bo(n1(this.b.a,4),129))!==$a(this.a))throw Cs(new rx)},wo.$j=function(oo){Mnt(this,oo),this.a=bo(n1(this.b.a,4),129)},wo.Qb=function(){QL(this),this.a=bo(n1(this.b.a,4),129)},Vo(lv,"ArrayDelegatingEList/EListIterator",722),zo(1052,355,$m,gXe),wo.Xj=function(){if(this.b.j!=this.f||$a(bo(n1(this.b.a,4),129))!==$a(this.a))throw Cs(new rx)},Vo(lv,"ArrayDelegatingEList/NonResolvingEIterator",1052),zo(723,398,DE,CWe,hUe),wo.Xj=function(){if(this.b.j!=this.f||$a(bo(n1(this.b.a,4),129))!==$a(this.a))throw Cs(new rx)},Vo(lv,"ArrayDelegatingEList/NonResolvingEListIterator",723),zo(615,302,l1e,Wle),Vo(lv,"BasicEList/BasicIndexOutOfBoundsException",615),zo(710,66,uE,P2e),wo.bd=function(oo,co){throw Cs(new l0)},wo.Fc=function(oo){throw Cs(new l0)},wo.cd=function(oo,co){throw Cs(new l0)},wo.Gc=function(oo){throw Cs(new l0)},wo.$b=function(){throw Cs(new l0)},wo._i=function(oo){throw Cs(new l0)},wo.Kc=function(){return this.Ii()},wo.ed=function(){return this.Ji()},wo.fd=function(oo){return this.Ki(oo)},wo.Ti=function(oo,co){throw Cs(new l0)},wo.Ui=function(oo,co){throw Cs(new l0)},wo.gd=function(oo){throw Cs(new l0)},wo.Mc=function(oo){throw Cs(new l0)},wo.hd=function(oo,co){throw Cs(new l0)},Vo(lv,"BasicEList/UnmodifiableEList",710),zo(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),wo.bd=function(oo,co){_kt(this,oo,bo(co,44))},wo.Fc=function(oo){return m5t(this,bo(oo,44))},wo.Jc=function(oo){Hm(this,oo)},wo.Xb=function(oo){return bo(Gs(this.c,oo),136)},wo.Ti=function(oo,co){return bo(this.c.Ti(oo,co),44)},wo.Ui=function(oo,co){Ekt(this,oo,bo(co,44))},wo.Lc=function(){return new Ou(null,new Du(this,16))},wo.gd=function(oo){return bo(this.c.gd(oo),44)},wo.hd=function(oo,co){return PCt(this,oo,bo(co,44))},wo.jd=function(oo){wT(this,oo)},wo.Nc=function(){return new Du(this,16)},wo.Oc=function(){return new Ou(null,new Du(this,16))},wo.cd=function(oo,co){return this.c.cd(oo,co)},wo.Gc=function(oo){return this.c.Gc(oo)},wo.$b=function(){this.c.$b()},wo.Hc=function(oo){return this.c.Hc(oo)},wo.Ic=function(oo){return iq(this.c,oo)},wo._j=function(){var oo,co,fo;if(this.d==null){for(this.d=Al(oMe,h$e,66,2*this.f+1,0,1),fo=this.e,this.f=0,co=this.c.Kc();co.e!=co.i.gc();)oo=bo(co.Yj(),136),VQ(this,oo);this.e=fo}},wo.Fb=function(oo){return eGe(this,oo)},wo.Hb=function(){return mEe(this.c)},wo.dd=function(oo){return this.c.dd(oo)},wo.ak=function(){this.c=new oFe(this)},wo.dc=function(){return this.f==0},wo.Kc=function(){return this.c.Kc()},wo.ed=function(){return this.c.ed()},wo.fd=function(oo){return this.c.fd(oo)},wo.bk=function(){return FH(this)},wo.ck=function(oo,co,fo){return new hGe(oo,co,fo)},wo.dk=function(){return new Kie},wo.Mc=function(oo){return jZe(this,oo)},wo.gc=function(){return this.f},wo.kd=function(oo,co){return new s4(this.c,oo,co)},wo.Pc=function(){return this.c.Pc()},wo.Qc=function(oo){return this.c.Qc(oo)},wo.Ib=function(){return uke(this.c)},wo.e=0,wo.f=0,Vo(lv,"BasicEMap",721),zo(1046,66,uE,oFe),wo.Mi=function(oo,co){t_t(this,bo(co,136))},wo.Pi=function(oo,co,fo){var po;++(po=this,bo(co,136),po).a.e},wo.Qi=function(oo,co){n_t(this,bo(co,136))},wo.Ri=function(oo,co,fo){t5t(this,bo(co,136),bo(fo,136))},wo.Oi=function(oo,co){NJe(this.a)},Vo(lv,"BasicEMap/1",1046),zo(1047,66,uE,Kie),wo.aj=function(oo){return Al(VXt,tht,621,oo,0,1)},Vo(lv,"BasicEMap/2",1047),zo(1048,w_,U2,sFe),wo.$b=function(){this.a.c.$b()},wo.Hc=function(oo){return Xfe(this.a,oo)},wo.Kc=function(){return this.a.f==0?(zO(),GG.a):new HPe(this.a)},wo.Mc=function(oo){var co;return co=this.a.f,IQ(this.a,oo),this.a.f!=co},wo.gc=function(){return this.a.f},Vo(lv,"BasicEMap/3",1048),zo(1049,31,eA,aFe),wo.$b=function(){this.a.c.$b()},wo.Hc=function(oo){return Fst(this.a,oo)},wo.Kc=function(){return this.a.f==0?(zO(),GG.a):new qPe(this.a)},wo.gc=function(){return this.a.f},Vo(lv,"BasicEMap/4",1049),zo(1050,w_,U2,lFe),wo.$b=function(){this.a.c.$b()},wo.Hc=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;if(this.a.f>0&&Hs(oo,44)&&(this.a._j(),Ao=bo(oo,44),To=Ao.ld(),vo=To==null?0:dp(To),xo=Lwe(this.a,vo),co=this.a.d[xo],co)){for(fo=bo(co.g,379),Io=co.i,Eo=0;Eo"+this.c},wo.a=0;var VXt=Vo(lv,"BasicEMap/EntryImpl",621);zo(546,1,{},QM),Vo(lv,"BasicEMap/View",546);var GG;zo(783,1,{}),wo.Fb=function(oo){return y4e((Hu(),cv),oo)},wo.Hb=function(){return $Ee((Hu(),cv))},wo.Ib=function(){return _3((Hu(),cv))},Vo(lv,"ECollections/BasicEmptyUnmodifiableEList",783),zo(1348,1,DE,Yie),wo.Nb=function(oo){jm(this,oo)},wo.Rb=function(oo){throw Cs(new l0)},wo.Ob=function(){return!1},wo.Sb=function(){return!1},wo.Pb=function(){throw Cs(new ay)},wo.Tb=function(){return 0},wo.Ub=function(){throw Cs(new ay)},wo.Vb=function(){return-1},wo.Qb=function(){throw Cs(new l0)},wo.Wb=function(oo){throw Cs(new l0)},Vo(lv,"ECollections/BasicEmptyUnmodifiableEList/1",1348),zo(1346,783,{20:1,16:1,15:1,61:1},ZFe),wo.bd=function(oo,co){hje()},wo.Fc=function(oo){return pje()},wo.cd=function(oo,co){return gje()},wo.Gc=function(oo){return mje()},wo.$b=function(){vje()},wo.Hc=function(oo){return!1},wo.Ic=function(oo){return!1},wo.Jc=function(oo){Hm(this,oo)},wo.Xb=function(oo){return H2e((Hu(),oo)),null},wo.dd=function(oo){return-1},wo.dc=function(){return!0},wo.Kc=function(){return this.a},wo.ed=function(){return this.a},wo.fd=function(oo){return this.a},wo.Ti=function(oo,co){return bje()},wo.Ui=function(oo,co){yje()},wo.Lc=function(){return new Ou(null,new Du(this,16))},wo.gd=function(oo){return wje()},wo.Mc=function(oo){return xje()},wo.hd=function(oo,co){return Sje()},wo.gc=function(){return 0},wo.jd=function(oo){wT(this,oo)},wo.Nc=function(){return new Du(this,16)},wo.Oc=function(){return new Ou(null,new Du(this,16))},wo.kd=function(oo,co){return Hu(),new s4(cv,oo,co)},wo.Pc=function(){return Pxe((Hu(),cv))},wo.Qc=function(oo){return Hu(),UL(cv,oo)},Vo(lv,"ECollections/EmptyUnmodifiableEList",1346),zo(1347,783,{20:1,16:1,15:1,61:1,597:1},JFe),wo.bd=function(oo,co){hje()},wo.Fc=function(oo){return pje()},wo.cd=function(oo,co){return gje()},wo.Gc=function(oo){return mje()},wo.$b=function(){vje()},wo.Hc=function(oo){return!1},wo.Ic=function(oo){return!1},wo.Jc=function(oo){Hm(this,oo)},wo.Xb=function(oo){return H2e((Hu(),oo)),null},wo.dd=function(oo){return-1},wo.dc=function(){return!0},wo.Kc=function(){return this.a},wo.ed=function(){return this.a},wo.fd=function(oo){return this.a},wo.Ti=function(oo,co){return bje()},wo.Ui=function(oo,co){yje()},wo.Lc=function(){return new Ou(null,new Du(this,16))},wo.gd=function(oo){return wje()},wo.Mc=function(oo){return xje()},wo.hd=function(oo,co){return Sje()},wo.gc=function(){return 0},wo.jd=function(oo){wT(this,oo)},wo.Nc=function(){return new Du(this,16)},wo.Oc=function(){return new Ou(null,new Du(this,16))},wo.kd=function(oo,co){return Hu(),new s4(cv,oo,co)},wo.Pc=function(){return Pxe((Hu(),cv))},wo.Qc=function(oo){return Hu(),UL(cv,oo)},wo.bk=function(){return Hu(),Hu(),HE},Vo(lv,"ECollections/EmptyUnmodifiableEMap",1347);var aMe=Ip(lv,"Enumerator"),ane;zo(288,1,{288:1},rhe),wo.Fb=function(oo){var co;return this===oo?!0:Hs(oo,288)?(co=bo(oo,288),this.f==co.f&&tCt(this.i,co.i)&&Ace(this.a,this.f&256?co.f&256?co.a:null:co.f&256?null:co.a)&&Ace(this.d,co.d)&&Ace(this.g,co.g)&&Ace(this.e,co.e)&&TMt(this,co)):!1},wo.Hb=function(){return this.f},wo.Ib=function(){return vat(this)},wo.f=0;var Ixt=0,Nxt=0,Mxt=0,Dxt=0,lMe=0,cMe=0,uMe=0,fMe=0,dMe=0,Lxt,JF=0,eP=0,Bxt=0,Fxt=0,lne,hMe;Vo(lv,"URI",288),zo(1121,45,W9,ePe),wo.zc=function(oo,co){return bo(Bv(this,u0(oo),bo(co,288)),288)},Vo(lv,"URI/URICache",1121),zo(506,66,uE,Vie,WY),wo.Si=function(){return!0},Vo(lv,"UniqueEList",506),zo(590,63,$5,PX),Vo(lv,"WrappedException",590);var C0=Ip(_x,iht),LA=Ip(_x,oht),L2=Ip(_x,sht),BA=Ip(_x,aht),n_=Ip(_x,lht),Jx=Ip(_x,"EClass"),ibe=Ip(_x,"EDataType"),Pxt;zo(1233,45,W9,tPe),wo.xc=function(oo){return Cm(oo)?Gy(this,oo):Uv(wv(this.f,oo))},Vo(_x,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var cne=Ip(_x,"EEnum"),B5=Ip(_x,cht),Cv=Ip(_x,uht),eS=Ip(_x,fht),tS,Y6=Ip(_x,dht),FA=Ip(_x,hht);zo(1042,1,{},qie),wo.Ib=function(){return"NIL"},Vo(_x,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var jxt;zo(1041,45,W9,nPe),wo.xc=function(oo){return Cm(oo)?Gy(this,oo):Uv(wv(this.f,oo))},Vo(_x,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var k2=Ip(_x,pht),VR=Ip(_x,"EValidator/PatternMatcher"),pMe,gMe,_d,P4,PA,Q3,zxt,Hxt,qxt,Z3,j4,J3,X6,N_,Vxt,Gxt,nS,z4,Wxt,H4,jA,L7,gv,Uxt,Kxt,Q6,une=Ip(Ep,"FeatureMap/Entry");zo(545,1,{76:1},cY),wo.Lk=function(){return this.a},wo.md=function(){return this.b},Vo(_h,"BasicEObjectImpl/1",545),zo(1040,1,ape,EHe),wo.Fk=function(oo){return Nue(this.a,this.b,oo)},wo.Qj=function(){return sKe(this.a,this.b)},wo.Wb=function(oo){CSe(this.a,this.b,oo)},wo.Gk=function(){ZCt(this.a,this.b)},Vo(_h,"BasicEObjectImpl/4",1040),zo(2081,1,{114:1}),wo.Mk=function(oo){this.e=oo==0?Yxt:Al(bm,Xu,1,oo,5,1)},wo.li=function(oo){return this.e[oo]},wo.mi=function(oo,co){this.e[oo]=co},wo.ni=function(oo){this.e[oo]=null},wo.Nk=function(){return this.c},wo.Ok=function(){throw Cs(new l0)},wo.Pk=function(){throw Cs(new l0)},wo.Qk=function(){return this.d},wo.Rk=function(){return this.e!=null},wo.Sk=function(oo){this.c=oo},wo.Tk=function(oo){throw Cs(new l0)},wo.Uk=function(oo){throw Cs(new l0)},wo.Vk=function(oo){this.d=oo};var Yxt;Vo(_h,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),zo(192,2081,{114:1},Dx),wo.Ok=function(){return this.a},wo.Pk=function(){return this.b},wo.Tk=function(oo){this.a=oo},wo.Uk=function(oo){this.b=oo},Vo(_h,"BasicEObjectImpl/EPropertiesHolderImpl",192),zo(516,99,gdt,bO),wo.uh=function(){return this.f},wo.zh=function(){return this.k},wo.Bh=function(oo,co){this.g=oo,this.i=co},wo.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},wo.Fh=function(){return this.i},wo.wh=function(){return(this.j&1)!=0},wo.Ph=function(){return this.g},wo.Vh=function(){return(this.j&4)!=0},wo.$h=function(){return!this.k&&(this.k=new Dx),this.k},wo.ci=function(oo){this.$h().Sk(oo),oo?this.j|=2:this.j&=-3},wo.ei=function(oo){this.$h().Uk(oo),oo?this.j|=4:this.j&=-5},wo.ii=function(){return(c3(),_d).S},wo.i=0,wo.j=1,Vo(_h,"EObjectImpl",516),zo(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},Sxe),wo.li=function(oo){return this.e[oo]},wo.mi=function(oo,co){this.e[oo]=co},wo.ni=function(oo){this.e[oo]=null},wo.Dh=function(){return this.d},wo.Ih=function(oo){return Ap(this.d,oo)},wo.Kh=function(){return this.d},wo.Oh=function(){return this.e!=null},wo.$h=function(){return!this.k&&(this.k=new Xie),this.k},wo.ci=function(oo){this.d=oo},wo.hi=function(){var oo;return this.e==null&&(oo=A1(this.d),this.e=oo==0?Xxt:Al(bm,Xu,1,oo,5,1)),this},wo.ji=function(){return 0};var Xxt;Vo(_h,"DynamicEObjectImpl",798),zo(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},FGe),wo.Fb=function(oo){return this===oo},wo.Hb=function(){return PC(this)},wo.ci=function(oo){this.d=oo,this.b=jq(oo,"key"),this.c=jq(oo,FB)},wo.Bi=function(){var oo;return this.a==-1&&(oo=Wue(this,this.b),this.a=oo==null?0:dp(oo)),this.a},wo.ld=function(){return Wue(this,this.b)},wo.md=function(){return Wue(this,this.c)},wo.Ci=function(oo){this.a=oo},wo.Di=function(oo){CSe(this,this.b,oo)},wo.nd=function(oo){var co;return co=Wue(this,this.c),CSe(this,this.c,oo),co},wo.a=0,Vo(_h,"DynamicEObjectImpl/BasicEMapEntry",1522),zo(1523,1,{114:1},Xie),wo.Mk=function(oo){throw Cs(new l0)},wo.li=function(oo){throw Cs(new l0)},wo.mi=function(oo,co){throw Cs(new l0)},wo.ni=function(oo){throw Cs(new l0)},wo.Nk=function(){throw Cs(new l0)},wo.Ok=function(){return this.a},wo.Pk=function(){return this.b},wo.Qk=function(){return this.c},wo.Rk=function(){throw Cs(new l0)},wo.Sk=function(oo){throw Cs(new l0)},wo.Tk=function(oo){this.a=oo},wo.Uk=function(oo){this.b=oo},wo.Vk=function(oo){this.c=oo},Vo(_h,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),zo(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},CU),wo.Ah=function(oo){return Jke(this,oo)},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.d;case 2:return fo?(!this.b&&(this.b=new Rw((Pu(),gv),Ey,this)),this.b):(!this.b&&(this.b=new Rw((Pu(),gv),Ey,this)),FH(this.b));case 3:return fKe(this);case 4:return!this.a&&(this.a=new Qp(Y3,this,4)),this.a;case 5:return!this.c&&(this.c=new g9(Y3,this,5)),this.c}return dx(this,oo-A1((Pu(),P4)),Uu((po=bo(n1(this,16),29),po||P4),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 3:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?Jke(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Fxe(this,bo(oo,155),fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),P4)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),P4)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 2:return!this.b&&(this.b=new Rw((Pu(),gv),Ey,this)),$Y(this.b,oo,fo);case 3:return Fxe(this,null,fo);case 4:return!this.a&&(this.a=new Qp(Y3,this,4)),sv(this.a,oo,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),P4)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),P4)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!fKe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return ux(this,oo-A1((Pu(),P4)),Uu((co=bo(n1(this,16),29),co||P4),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:HTt(this,u0(co));return;case 2:!this.b&&(this.b=new Rw((Pu(),gv),Ey,this)),uQ(this.b,co);return;case 3:ost(this,bo(co,155));return;case 4:!this.a&&(this.a=new Qp(Y3,this,4)),U1(this.a),!this.a&&(this.a=new Qp(Y3,this,4)),Bp(this.a,bo(co,16));return;case 5:!this.c&&(this.c=new g9(Y3,this,5)),U1(this.c),!this.c&&(this.c=new g9(Y3,this,5)),Bp(this.c,bo(co,16));return}vx(this,oo-A1((Pu(),P4)),Uu((fo=bo(n1(this,16),29),fo||P4),oo),co)},wo.ii=function(){return Pu(),P4},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:eEe(this,null);return;case 2:!this.b&&(this.b=new Rw((Pu(),gv),Ey,this)),this.b.c.$b();return;case 3:ost(this,null);return;case 4:!this.a&&(this.a=new Qp(Y3,this,4)),U1(this.a);return;case 5:!this.c&&(this.c=new g9(Y3,this,5)),U1(this.c);return}mx(this,oo-A1((Pu(),P4)),Uu((co=bo(n1(this,16),29),co||P4),oo))},wo.Ib=function(){return itt(this)},wo.d=null,Vo(_h,"EAnnotationImpl",519),zo(141,721,p$e,V2),wo.Gi=function(oo,co){skt(this,oo,bo(co,44))},wo.Wk=function(oo,co){return l4t(this,bo(oo,44),co)},wo.$i=function(oo){return bo(bo(this.c,71).$i(oo),136)},wo.Ii=function(){return bo(this.c,71).Ii()},wo.Ji=function(){return bo(this.c,71).Ji()},wo.Ki=function(oo){return bo(this.c,71).Ki(oo)},wo.Xk=function(oo,co){return $Y(this,oo,co)},wo.Fk=function(oo){return bo(this.c,79).Fk(oo)},wo.ak=function(){},wo.Qj=function(){return bo(this.c,79).Qj()},wo.ck=function(oo,co,fo){var po;return po=bo(zw(this.b).wi().si(this.b),136),po.Ci(oo),po.Di(co),po.nd(fo),po},wo.dk=function(){return new aye(this)},wo.Wb=function(oo){uQ(this,oo)},wo.Gk=function(){bo(this.c,79).Gk()},Vo(Ep,"EcoreEMap",141),zo(165,141,p$e,Rw),wo._j=function(){var oo,co,fo,po,vo,xo;if(this.d==null){for(xo=Al(oMe,h$e,66,2*this.f+1,0,1),fo=this.c.Kc();fo.e!=fo.i.gc();)co=bo(fo.Yj(),136),po=co.Bi(),vo=(po&q0)%xo.length,oo=xo[vo],!oo&&(oo=xo[vo]=new aye(this)),oo.Fc(co);this.d=xo}},Vo(_h,"EAnnotationImpl/1",165),zo(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),wo.Lh=function(oo,co,fo){var po,vo;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _f(),!!(this.Bb&256);case 3:return _f(),!!(this.Bb&512);case 4:return Ql(this.s);case 5:return Ql(this.t);case 6:return _f(),!!this.Jk();case 7:return _f(),vo=this.s,vo>=1;case 8:return co?Hx(this):this.r;case 9:return this.q}return dx(this,oo-A1(this.ii()),Uu((po=bo(n1(this,16),29),po||this.ii()),oo),co,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 9:return Vce(this,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),vo.wk().Ak(this,y2(this),co-A1(this.ii()),oo,fo)},wo.Wh=function(oo){var co,fo;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return fo=this.s,fo>=1;case 8:return!!this.r&&!this.q.e&&UC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&UC(this.q).i==0)}return ux(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.bi=function(oo,co){var fo,po;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:this.ui(u0(co));return;case 2:m4(this,lu(au(co)));return;case 3:b4(this,lu(au(co)));return;case 4:d4(this,bo(co,17).a);return;case 5:this.Zk(bo(co,17).a);return;case 8:TT(this,bo(co,142));return;case 9:po=b_(this,bo(co,89),null),po&&po.oj();return}vx(this,oo-A1(this.ii()),Uu((fo=bo(n1(this,16),29),fo||this.ii()),oo),co)},wo.ii=function(){return Pu(),Kxt},wo.ki=function(oo){var co,fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:this.ui(null);return;case 2:m4(this,!0);return;case 3:b4(this,!0);return;case 4:d4(this,0);return;case 5:this.Zk(1);return;case 8:TT(this,null);return;case 9:fo=b_(this,null,null),fo&&fo.oj();return}mx(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.pi=function(){Hx(this),this.Bb|=1},wo.Hk=function(){return Hx(this)},wo.Ik=function(){return this.t},wo.Jk=function(){var oo;return oo=this.t,oo>1||oo==-1},wo.Si=function(){return(this.Bb&512)!=0},wo.Yk=function(oo,co){return UEe(this,oo,co)},wo.Zk=function(oo){L$(this,oo)},wo.Ib=function(){return u4e(this)},wo.s=0,wo.t=1,Vo(_h,"ETypedElementImpl",292),zo(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),wo.Ah=function(oo){return Ynt(this,oo)},wo.Lh=function(oo,co,fo){var po,vo;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _f(),!!(this.Bb&256);case 3:return _f(),!!(this.Bb&512);case 4:return Ql(this.s);case 5:return Ql(this.t);case 6:return _f(),!!this.Jk();case 7:return _f(),vo=this.s,vo>=1;case 8:return co?Hx(this):this.r;case 9:return this.q;case 10:return _f(),!!(this.Bb&bS);case 11:return _f(),!!(this.Bb&cA);case 12:return _f(),!!(this.Bb&nA);case 13:return this.j;case 14:return XI(this);case 15:return _f(),!!(this.Bb&Y2);case 16:return _f(),!!(this.Bb&tE);case 17:return $$(this)}return dx(this,oo-A1(this.ii()),Uu((po=bo(n1(this,16),29),po||this.ii()),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 17:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?Ynt(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,17,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),xo.wk().zk(this,y2(this),co-A1(this.ii()),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 9:return Vce(this,fo);case 17:return Uw(this,null,17,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),vo.wk().Ak(this,y2(this),co-A1(this.ii()),oo,fo)},wo.Wh=function(oo){var co,fo;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return fo=this.s,fo>=1;case 8:return!!this.r&&!this.q.e&&UC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&UC(this.q).i==0);case 10:return(this.Bb&bS)==0;case 11:return(this.Bb&cA)!=0;case 12:return(this.Bb&nA)!=0;case 13:return this.j!=null;case 14:return XI(this)!=null;case 15:return(this.Bb&Y2)!=0;case 16:return(this.Bb&tE)!=0;case 17:return!!$$(this)}return ux(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.bi=function(oo,co){var fo,po;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:bue(this,u0(co));return;case 2:m4(this,lu(au(co)));return;case 3:b4(this,lu(au(co)));return;case 4:d4(this,bo(co,17).a);return;case 5:this.Zk(bo(co,17).a);return;case 8:TT(this,bo(co,142));return;case 9:po=b_(this,bo(co,89),null),po&&po.oj();return;case 10:II(this,lu(au(co)));return;case 11:LI(this,lu(au(co)));return;case 12:NI(this,lu(au(co)));return;case 13:F2e(this,u0(co));return;case 15:MI(this,lu(au(co)));return;case 16:BI(this,lu(au(co)));return}vx(this,oo-A1(this.ii()),Uu((fo=bo(n1(this,16),29),fo||this.ii()),oo),co)},wo.ii=function(){return Pu(),Uxt},wo.ki=function(oo){var co,fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Hs(this.Cb,90)&&U$(mw(bo(this.Cb,90)),4),s2(this,null);return;case 2:m4(this,!0);return;case 3:b4(this,!0);return;case 4:d4(this,0);return;case 5:this.Zk(1);return;case 8:TT(this,null);return;case 9:fo=b_(this,null,null),fo&&fo.oj();return;case 10:II(this,!0);return;case 11:LI(this,!1);return;case 12:NI(this,!1);return;case 13:this.i=null,iQ(this,null);return;case 15:MI(this,!1);return;case 16:BI(this,!1);return}mx(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.pi=function(){ZO(Fv((W2(),Gm),this)),Hx(this),this.Bb|=1},wo.pk=function(){return this.f},wo.ik=function(){return XI(this)},wo.qk=function(){return $$(this)},wo.uk=function(){return null},wo.$k=function(){return this.k},wo.Lj=function(){return this.n},wo.vk=function(){return ZQ(this)},wo.wk=function(){var oo,co,fo,po,vo,xo,Eo,To,Ao;return this.p||(fo=$$(this),(fo.i==null&&eE(fo),fo.i).length,po=this.uk(),po&&A1($$(po)),vo=Hx(this),Eo=vo.kk(),oo=Eo?Eo.i&1?Eo==kw?qp:Eo==Q1?Vm:Eo==HA?IN:Eo==Am?nm:Eo==tT?R6:Eo==j7?O6:Eo==Q2?wR:YB:Eo:null,co=XI(this),To=vo.ik(),rNt(this),this.Bb&tE&&((xo=s5e((W2(),Gm),fo))&&xo!=this||(xo=F8(Fv(Gm,this))))?this.p=new THe(this,xo):this.Jk()?this.al()?po?this.Bb&Y2?oo?this.bl()?this.p=new hT(47,oo,this,po):this.p=new hT(5,oo,this,po):this.bl()?this.p=new bT(46,this,po):this.p=new bT(4,this,po):oo?this.bl()?this.p=new hT(49,oo,this,po):this.p=new hT(7,oo,this,po):this.bl()?this.p=new bT(48,this,po):this.p=new bT(6,this,po):this.Bb&Y2?oo?oo==qT?this.p=new r4(50,Axt,this):this.bl()?this.p=new r4(43,oo,this):this.p=new r4(1,oo,this):this.bl()?this.p=new o4(42,this):this.p=new o4(0,this):oo?oo==qT?this.p=new r4(41,Axt,this):this.bl()?this.p=new r4(45,oo,this):this.p=new r4(3,oo,this):this.bl()?this.p=new o4(44,this):this.p=new o4(2,this):Hs(vo,156)?oo==une?this.p=new o4(40,this):this.Bb&512?this.Bb&Y2?oo?this.p=new r4(9,oo,this):this.p=new o4(8,this):oo?this.p=new r4(11,oo,this):this.p=new o4(10,this):this.Bb&Y2?oo?this.p=new r4(13,oo,this):this.p=new o4(12,this):oo?this.p=new r4(15,oo,this):this.p=new o4(14,this):po?(Ao=po.t,Ao>1||Ao==-1?this.bl()?this.Bb&Y2?oo?this.p=new hT(25,oo,this,po):this.p=new bT(24,this,po):oo?this.p=new hT(27,oo,this,po):this.p=new bT(26,this,po):this.Bb&Y2?oo?this.p=new hT(29,oo,this,po):this.p=new bT(28,this,po):oo?this.p=new hT(31,oo,this,po):this.p=new bT(30,this,po):this.bl()?this.Bb&Y2?oo?this.p=new hT(33,oo,this,po):this.p=new bT(32,this,po):oo?this.p=new hT(35,oo,this,po):this.p=new bT(34,this,po):this.Bb&Y2?oo?this.p=new hT(37,oo,this,po):this.p=new bT(36,this,po):oo?this.p=new hT(39,oo,this,po):this.p=new bT(38,this,po)):this.bl()?this.Bb&Y2?oo?this.p=new r4(17,oo,this):this.p=new o4(16,this):oo?this.p=new r4(19,oo,this):this.p=new o4(18,this):this.Bb&Y2?oo?this.p=new r4(21,oo,this):this.p=new o4(20,this):oo?this.p=new r4(23,oo,this):this.p=new o4(22,this):this._k()?this.bl()?this.p=new pGe(bo(vo,29),this,po):this.p=new kSe(bo(vo,29),this,po):Hs(vo,156)?oo==une?this.p=new o4(40,this):this.Bb&Y2?oo?this.p=new hWe(co,To,this,(Qfe(),Eo==Q1?SMe:Eo==kw?vMe:Eo==tT?_Me:Eo==HA?xMe:Eo==Am?wMe:Eo==j7?EMe:Eo==Q2?bMe:Eo==Rx?yMe:abe)):this.p=new TUe(bo(vo,156),co,To,this):oo?this.p=new dWe(co,To,this,(Qfe(),Eo==Q1?SMe:Eo==kw?vMe:Eo==tT?_Me:Eo==HA?xMe:Eo==Am?wMe:Eo==j7?EMe:Eo==Q2?bMe:Eo==Rx?yMe:abe)):this.p=new kUe(bo(vo,156),co,To,this):this.al()?po?this.Bb&Y2?this.bl()?this.p=new mGe(bo(vo,29),this,po):this.p=new uxe(bo(vo,29),this,po):this.bl()?this.p=new gGe(bo(vo,29),this,po):this.p=new Sce(bo(vo,29),this,po):this.Bb&Y2?this.bl()?this.p=new dVe(bo(vo,29),this):this.p=new Ewe(bo(vo,29),this):this.bl()?this.p=new fVe(bo(vo,29),this):this.p=new cce(bo(vo,29),this):this.bl()?po?this.Bb&Y2?this.p=new vGe(bo(vo,29),this,po):this.p=new lxe(bo(vo,29),this,po):this.Bb&Y2?this.p=new hVe(bo(vo,29),this):this.p=new kwe(bo(vo,29),this):po?this.Bb&Y2?this.p=new bGe(bo(vo,29),this,po):this.p=new cxe(bo(vo,29),this,po):this.Bb&Y2?this.p=new pVe(bo(vo,29),this):this.p=new GY(bo(vo,29),this)),this.p},wo.rk=function(){return(this.Bb&bS)!=0},wo._k=function(){return!1},wo.al=function(){return!1},wo.sk=function(){return(this.Bb&tE)!=0},wo.xk=function(){return Uue(this)},wo.bl=function(){return!1},wo.tk=function(){return(this.Bb&Y2)!=0},wo.cl=function(oo){this.k=oo},wo.ui=function(oo){bue(this,oo)},wo.Ib=function(){return yZ(this)},wo.e=!1,wo.n=0,Vo(_h,"EStructuralFeatureImpl",462),zo(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},qae),wo.Lh=function(oo,co,fo){var po,vo;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _f(),!!(this.Bb&256);case 3:return _f(),!!(this.Bb&512);case 4:return Ql(this.s);case 5:return Ql(this.t);case 6:return _f(),!!i4e(this);case 7:return _f(),vo=this.s,vo>=1;case 8:return co?Hx(this):this.r;case 9:return this.q;case 10:return _f(),!!(this.Bb&bS);case 11:return _f(),!!(this.Bb&cA);case 12:return _f(),!!(this.Bb&nA);case 13:return this.j;case 14:return XI(this);case 15:return _f(),!!(this.Bb&Y2);case 16:return _f(),!!(this.Bb&tE);case 17:return $$(this);case 18:return _f(),!!(this.Bb&Cy);case 19:return co?vfe(this):AXe(this)}return dx(this,oo-A1((Pu(),PA)),Uu((po=bo(n1(this,16),29),po||PA),oo),co,fo)},wo.Wh=function(oo){var co,fo;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i4e(this);case 7:return fo=this.s,fo>=1;case 8:return!!this.r&&!this.q.e&&UC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&UC(this.q).i==0);case 10:return(this.Bb&bS)==0;case 11:return(this.Bb&cA)!=0;case 12:return(this.Bb&nA)!=0;case 13:return this.j!=null;case 14:return XI(this)!=null;case 15:return(this.Bb&Y2)!=0;case 16:return(this.Bb&tE)!=0;case 17:return!!$$(this);case 18:return(this.Bb&Cy)!=0;case 19:return!!AXe(this)}return ux(this,oo-A1((Pu(),PA)),Uu((co=bo(n1(this,16),29),co||PA),oo))},wo.bi=function(oo,co){var fo,po;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:bue(this,u0(co));return;case 2:m4(this,lu(au(co)));return;case 3:b4(this,lu(au(co)));return;case 4:d4(this,bo(co,17).a);return;case 5:WPe(this,bo(co,17).a);return;case 8:TT(this,bo(co,142));return;case 9:po=b_(this,bo(co,89),null),po&&po.oj();return;case 10:II(this,lu(au(co)));return;case 11:LI(this,lu(au(co)));return;case 12:NI(this,lu(au(co)));return;case 13:F2e(this,u0(co));return;case 15:MI(this,lu(au(co)));return;case 16:BI(this,lu(au(co)));return;case 18:qfe(this,lu(au(co)));return}vx(this,oo-A1((Pu(),PA)),Uu((fo=bo(n1(this,16),29),fo||PA),oo),co)},wo.ii=function(){return Pu(),PA},wo.ki=function(oo){var co,fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Hs(this.Cb,90)&&U$(mw(bo(this.Cb,90)),4),s2(this,null);return;case 2:m4(this,!0);return;case 3:b4(this,!0);return;case 4:d4(this,0);return;case 5:this.b=0,L$(this,1);return;case 8:TT(this,null);return;case 9:fo=b_(this,null,null),fo&&fo.oj();return;case 10:II(this,!0);return;case 11:LI(this,!1);return;case 12:NI(this,!1);return;case 13:this.i=null,iQ(this,null);return;case 15:MI(this,!1);return;case 16:BI(this,!1);return;case 18:qfe(this,!1);return}mx(this,oo-A1((Pu(),PA)),Uu((co=bo(n1(this,16),29),co||PA),oo))},wo.pi=function(){vfe(this),ZO(Fv((W2(),Gm),this)),Hx(this),this.Bb|=1},wo.Jk=function(){return i4e(this)},wo.Yk=function(oo,co){return this.b=0,this.a=null,UEe(this,oo,co)},wo.Zk=function(oo){WPe(this,oo)},wo.Ib=function(){var oo;return this.Db&64?yZ(this):(oo=new Bx(yZ(this)),oo.a+=" (iD: ",J5(oo,(this.Bb&Cy)!=0),oo.a+=")",oo.a)},wo.b=0,Vo(_h,"EAttributeImpl",331),zo(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),wo.dl=function(oo){return oo.Dh()==this},wo.Ah=function(oo){return Sde(this,oo)},wo.Bh=function(oo,co){this.w=null,this.Db=co<<16|this.Db&255,this.Cb=oo},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return p6(this);case 4:return this.ik();case 5:return this.F;case 6:return co?zw(this):tI(this);case 7:return!this.A&&(this.A=new j2(k2,this,7)),this.A}return dx(this,oo-A1(this.ii()),Uu((po=bo(n1(this,16),29),po||this.ii()),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 6:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?Sde(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,6,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),xo.wk().zk(this,y2(this),co-A1(this.ii()),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 6:return Uw(this,null,6,fo);case 7:return!this.A&&(this.A=new j2(k2,this,7)),sv(this.A,oo,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),vo.wk().Ak(this,y2(this),co-A1(this.ii()),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!p6(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!tI(this);case 7:return!!this.A&&this.A.i!=0}return ux(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:wX(this,u0(co));return;case 2:Yle(this,u0(co));return;case 5:rN(this,u0(co));return;case 7:!this.A&&(this.A=new j2(k2,this,7)),U1(this.A),!this.A&&(this.A=new j2(k2,this,7)),Bp(this.A,bo(co,16));return}vx(this,oo-A1(this.ii()),Uu((fo=bo(n1(this,16),29),fo||this.ii()),oo),co)},wo.ii=function(){return Pu(),zxt},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Hs(this.Cb,184)&&(bo(this.Cb,184).tb=null),s2(this,null);return;case 2:AI(this,null),pI(this,this.D);return;case 5:rN(this,null);return;case 7:!this.A&&(this.A=new j2(k2,this,7)),U1(this.A);return}mx(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.hk=function(){var oo;return this.G==-1&&(this.G=(oo=zw(this),oo?x4(oo.vi(),this):-1)),this.G},wo.ik=function(){return null},wo.jk=function(){return zw(this)},wo.el=function(){return this.v},wo.kk=function(){return p6(this)},wo.lk=function(){return this.D!=null?this.D:this.B},wo.mk=function(){return this.F},wo.fk=function(oo){return dhe(this,oo)},wo.fl=function(oo){this.v=oo},wo.gl=function(oo){hJe(this,oo)},wo.hl=function(oo){this.C=oo},wo.ui=function(oo){wX(this,oo)},wo.Ib=function(){return $Q(this)},wo.C=null,wo.D=null,wo.G=-1,Vo(_h,"EClassifierImpl",364),zo(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},yz),wo.dl=function(oo){return G5t(this,oo.Dh())},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return p6(this);case 4:return null;case 5:return this.F;case 6:return co?zw(this):tI(this);case 7:return!this.A&&(this.A=new j2(k2,this,7)),this.A;case 8:return _f(),!!(this.Bb&256);case 9:return _f(),!!(this.Bb&512);case 10:return Yv(this);case 11:return!this.q&&(this.q=new Bl(eS,this,11,10)),this.q;case 12:return H9(this);case 13:return dB(this);case 14:return dB(this),this.r;case 15:return H9(this),this.k;case 16:return U5e(this);case 17:return mhe(this);case 18:return eE(this);case 19:return uZ(this);case 20:return H9(this),this.o;case 21:return!this.s&&(this.s=new Bl(L2,this,21,17)),this.s;case 22:return Fy(this);case 23:return nhe(this)}return dx(this,oo-A1((Pu(),Q3)),Uu((po=bo(n1(this,16),29),po||Q3),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 6:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?Sde(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,6,fo);case 11:return!this.q&&(this.q=new Bl(eS,this,11,10)),a2(this.q,oo,fo);case 21:return!this.s&&(this.s=new Bl(L2,this,21,17)),a2(this.s,oo,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),Q3)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),Q3)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 6:return Uw(this,null,6,fo);case 7:return!this.A&&(this.A=new j2(k2,this,7)),sv(this.A,oo,fo);case 11:return!this.q&&(this.q=new Bl(eS,this,11,10)),sv(this.q,oo,fo);case 21:return!this.s&&(this.s=new Bl(L2,this,21,17)),sv(this.s,oo,fo);case 22:return sv(Fy(this),oo,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),Q3)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),Q3)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!p6(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!tI(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Fy(this.u.a).i!=0&&!(this.n&&fde(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return H9(this).i!=0;case 13:return dB(this).i!=0;case 14:return dB(this),this.r.i!=0;case 15:return H9(this),this.k.i!=0;case 16:return U5e(this).i!=0;case 17:return mhe(this).i!=0;case 18:return eE(this).i!=0;case 19:return uZ(this).i!=0;case 20:return H9(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&fde(this.n);case 23:return nhe(this).i!=0}return ux(this,oo-A1((Pu(),Q3)),Uu((co=bo(n1(this,16),29),co||Q3),oo))},wo.Zh=function(oo){var co;return co=this.i==null||this.q&&this.q.i!=0?null:jq(this,oo),co||A3e(this,oo)},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:wX(this,u0(co));return;case 2:Yle(this,u0(co));return;case 5:rN(this,u0(co));return;case 7:!this.A&&(this.A=new j2(k2,this,7)),U1(this.A),!this.A&&(this.A=new j2(k2,this,7)),Bp(this.A,bo(co,16));return;case 8:KEe(this,lu(au(co)));return;case 9:YEe(this,lu(au(co)));return;case 10:gB(Yv(this)),Bp(Yv(this),bo(co,16));return;case 11:!this.q&&(this.q=new Bl(eS,this,11,10)),U1(this.q),!this.q&&(this.q=new Bl(eS,this,11,10)),Bp(this.q,bo(co,16));return;case 21:!this.s&&(this.s=new Bl(L2,this,21,17)),U1(this.s),!this.s&&(this.s=new Bl(L2,this,21,17)),Bp(this.s,bo(co,16));return;case 22:U1(Fy(this)),Bp(Fy(this),bo(co,16));return}vx(this,oo-A1((Pu(),Q3)),Uu((fo=bo(n1(this,16),29),fo||Q3),oo),co)},wo.ii=function(){return Pu(),Q3},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Hs(this.Cb,184)&&(bo(this.Cb,184).tb=null),s2(this,null);return;case 2:AI(this,null),pI(this,this.D);return;case 5:rN(this,null);return;case 7:!this.A&&(this.A=new j2(k2,this,7)),U1(this.A);return;case 8:KEe(this,!1);return;case 9:YEe(this,!1);return;case 10:this.u&&gB(this.u);return;case 11:!this.q&&(this.q=new Bl(eS,this,11,10)),U1(this.q);return;case 21:!this.s&&(this.s=new Bl(L2,this,21,17)),U1(this.s);return;case 22:this.n&&U1(this.n);return}mx(this,oo-A1((Pu(),Q3)),Uu((co=bo(n1(this,16),29),co||Q3),oo))},wo.pi=function(){var oo,co;if(H9(this),dB(this),U5e(this),mhe(this),eE(this),uZ(this),nhe(this),xL(vTt(mw(this))),this.s)for(oo=0,co=this.s.i;oo=0;--co)Gs(this,co);return yke(this,oo)},wo.Gk=function(){U1(this)},wo.Zi=function(oo,co){return DZe(this,oo,co)},Vo(Ep,"EcoreEList",632),zo(505,632,iy,vH),wo.Li=function(){return!1},wo.Lj=function(){return this.c},wo.Mj=function(){return!1},wo.ol=function(){return!0},wo.Si=function(){return!0},wo.Wi=function(oo,co){return co},wo.Yi=function(){return!1},wo.c=0,Vo(Ep,"EObjectEList",505),zo(83,505,iy,Qp),wo.Mj=function(){return!0},wo.ml=function(){return!1},wo.al=function(){return!0},Vo(Ep,"EObjectContainmentEList",83),zo(555,83,iy,yY),wo.Ni=function(){this.b=!0},wo.Qj=function(){return this.b},wo.Gk=function(){var oo;U1(this),$w(this.e)?(oo=this.b,this.b=!1,W0(this.e,new dS(this.e,2,this.c,oo,!1))):this.b=!1},wo.b=!1,Vo(Ep,"EObjectContainmentEList/Unsettable",555),zo(1161,555,iy,uWe),wo.Ti=function(oo,co){var fo,po;return fo=bo(jL(this,oo,co),89),$w(this.e)&&kO(this,new PH(this.a,7,(Pu(),Hxt),Ql(co),(po=fo.c,Hs(po,90)?bo(po,29):nS),oo)),fo},wo.Uj=function(oo,co){return PNt(this,bo(oo,89),co)},wo.Vj=function(oo,co){return FNt(this,bo(oo,89),co)},wo.Wj=function(oo,co,fo){return HLt(this,bo(oo,89),bo(co,89),fo)},wo.Ij=function(oo,co,fo,po,vo){switch(oo){case 3:return gL(this,oo,co,fo,po,this.i>1);case 5:return gL(this,oo,co,fo,po,this.i-bo(fo,15).gc()>0);default:return new m5(this.e,oo,this.c,co,fo,po,!0)}},wo.Tj=function(){return!0},wo.Qj=function(){return fde(this)},wo.Gk=function(){U1(this)},Vo(_h,"EClassImpl/1",1161),zo(1175,1174,d$e),wo.dj=function(oo){var co,fo,po,vo,xo,Eo,To;if(fo=oo.gj(),fo!=8){if(po=wMt(oo),po==0)switch(fo){case 1:case 9:{To=oo.kj(),To!=null&&(co=mw(bo(To,482)),!co.c&&(co.c=new ZA),HX(co.c,oo.jj())),Eo=oo.ij(),Eo!=null&&(vo=bo(Eo,482),vo.Bb&1||(co=mw(vo),!co.c&&(co.c=new ZA),Y1(co.c,bo(oo.jj(),29))));break}case 3:{Eo=oo.ij(),Eo!=null&&(vo=bo(Eo,482),vo.Bb&1||(co=mw(vo),!co.c&&(co.c=new ZA),Y1(co.c,bo(oo.jj(),29))));break}case 5:{if(Eo=oo.ij(),Eo!=null)for(xo=bo(Eo,16).Kc();xo.Ob();)vo=bo(xo.Pb(),482),vo.Bb&1||(co=mw(vo),!co.c&&(co.c=new ZA),Y1(co.c,bo(oo.jj(),29)));break}case 4:{To=oo.kj(),To!=null&&(vo=bo(To,482),vo.Bb&1||(co=mw(vo),!co.c&&(co.c=new ZA),HX(co.c,oo.jj())));break}case 6:{if(To=oo.kj(),To!=null)for(xo=bo(To,16).Kc();xo.Ob();)vo=bo(xo.Pb(),482),vo.Bb&1||(co=mw(vo),!co.c&&(co.c=new ZA),HX(co.c,oo.jj()));break}}this.ql(po)}},wo.ql=function(oo){Gst(this,oo)},wo.b=63,Vo(_h,"ESuperAdapter",1175),zo(1176,1175,d$e,uFe),wo.ql=function(oo){U$(this,oo)},Vo(_h,"EClassImpl/10",1176),zo(1165,710,iy),wo.Ei=function(oo,co){return Mde(this,oo,co)},wo.Fi=function(oo){return Ont(this,oo)},wo.Gi=function(oo,co){hq(this,oo,co)},wo.Hi=function(oo){DH(this,oo)},wo.$i=function(oo){return E_e(this,oo)},wo.Xi=function(oo,co){return Kue(this,oo,co)},wo.Wk=function(oo,co){throw Cs(new l0)},wo.Ii=function(){return new E8(this)},wo.Ji=function(){return new oH(this)},wo.Ki=function(oo){return QH(this,oo)},wo.Xk=function(oo,co){throw Cs(new l0)},wo.Fk=function(oo){return this},wo.Qj=function(){return this.i!=0},wo.Wb=function(oo){throw Cs(new l0)},wo.Gk=function(){throw Cs(new l0)},Vo(Ep,"EcoreEList/UnmodifiableEList",1165),zo(328,1165,iy,c9),wo.Yi=function(){return!1},Vo(Ep,"EcoreEList/UnmodifiableEList/FastCompare",328),zo(1168,328,iy,aet),wo.dd=function(oo){var co,fo,po;if(Hs(oo,179)&&(co=bo(oo,179),fo=co.Lj(),fo!=-1)){for(po=this.i;fo4)if(this.fk(oo)){if(this.al()){if(po=bo(oo,54),fo=po.Eh(),To=fo==this.b&&(this.ml()?po.yh(po.Fh(),bo(Uu($2(this.b),this.Lj()).Hk(),29).kk())==bv(bo(Uu($2(this.b),this.Lj()),19)).n:-1-po.Fh()==this.Lj()),this.nl()&&!To&&!fo&&po.Jh()){for(vo=0;vo1||po==-1)):!1},wo.ml=function(){var oo,co,fo;return co=Uu($2(this.b),this.Lj()),Hs(co,102)?(oo=bo(co,19),fo=bv(oo),!!fo):!1},wo.nl=function(){var oo,co;return co=Uu($2(this.b),this.Lj()),Hs(co,102)?(oo=bo(co,19),(oo.Bb&hv)!=0):!1},wo.dd=function(oo){var co,fo,po,vo;if(po=this.zj(oo),po>=0)return po;if(this.ol()){for(fo=0,vo=this.Ej();fo=0;--oo)Xq(this,oo,this.xj(oo));return this.Fj()},wo.Qc=function(oo){var co;if(this.nl())for(co=this.Ej()-1;co>=0;--co)Xq(this,co,this.xj(co));return this.Gj(oo)},wo.Gk=function(){gB(this)},wo.Zi=function(oo,co){return dQe(this,oo,co)},Vo(Ep,"DelegatingEcoreEList",756),zo(1171,756,m$e,TVe),wo.qj=function(oo,co){g5t(this,oo,bo(co,29))},wo.rj=function(oo){rkt(this,bo(oo,29))},wo.xj=function(oo){var co,fo;return co=bo(Gs(Fy(this.a),oo),89),fo=co.c,Hs(fo,90)?bo(fo,29):(Pu(),nS)},wo.Cj=function(oo){var co,fo;return co=bo(X$(Fy(this.a),oo),89),fo=co.c,Hs(fo,90)?bo(fo,29):(Pu(),nS)},wo.Dj=function(oo,co){return hDt(this,oo,bo(co,29))},wo.Li=function(){return!1},wo.Ij=function(oo,co,fo,po,vo){return null},wo.sj=function(){return new hFe(this)},wo.tj=function(){U1(Fy(this.a))},wo.uj=function(oo){return stt(this,oo)},wo.vj=function(oo){var co,fo;for(fo=oo.Kc();fo.Ob();)if(co=fo.Pb(),!stt(this,co))return!1;return!0},wo.wj=function(oo){var co,fo,po;if(Hs(oo,15)&&(po=bo(oo,15),po.gc()==Fy(this.a).i)){for(co=po.Kc(),fo=new g1(this);co.Ob();)if($a(co.Pb())!==$a(k1(fo)))return!1;return!0}return!1},wo.yj=function(){var oo,co,fo,po,vo;for(fo=1,co=new g1(Fy(this.a));co.e!=co.i.gc();)oo=bo(k1(co),89),po=(vo=oo.c,Hs(vo,90)?bo(vo,29):(Pu(),nS)),fo=31*fo+(po?PC(po):0);return fo},wo.zj=function(oo){var co,fo,po,vo;for(po=0,fo=new g1(Fy(this.a));fo.e!=fo.i.gc();){if(co=bo(k1(fo),89),$a(oo)===$a((vo=co.c,Hs(vo,90)?bo(vo,29):(Pu(),nS))))return po;++po}return-1},wo.Aj=function(){return Fy(this.a).i==0},wo.Bj=function(){return null},wo.Ej=function(){return Fy(this.a).i},wo.Fj=function(){var oo,co,fo,po,vo,xo;for(xo=Fy(this.a).i,vo=Al(bm,Xu,1,xo,5,1),fo=0,co=new g1(Fy(this.a));co.e!=co.i.gc();)oo=bo(k1(co),89),vo[fo++]=(po=oo.c,Hs(po,90)?bo(po,29):(Pu(),nS));return vo},wo.Gj=function(oo){var co,fo,po,vo,xo,Eo,To;for(To=Fy(this.a).i,oo.lengthTo&&Np(oo,To,null),po=0,fo=new g1(Fy(this.a));fo.e!=fo.i.gc();)co=bo(k1(fo),89),xo=(Eo=co.c,Hs(Eo,90)?bo(Eo,29):(Pu(),nS)),Np(oo,po++,xo);return oo},wo.Hj=function(){var oo,co,fo,po,vo;for(vo=new Z5,vo.a+="[",oo=Fy(this.a),co=0,po=Fy(this.a).i;co>16,vo>=0?Sde(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,6,fo);case 9:return!this.a&&(this.a=new Bl(B5,this,9,5)),a2(this.a,oo,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),Z3)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),Z3)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 6:return Uw(this,null,6,fo);case 7:return!this.A&&(this.A=new j2(k2,this,7)),sv(this.A,oo,fo);case 9:return!this.a&&(this.a=new Bl(B5,this,9,5)),sv(this.a,oo,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),Z3)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),Z3)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!p6(this);case 4:return!!LEe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!tI(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return ux(this,oo-A1((Pu(),Z3)),Uu((co=bo(n1(this,16),29),co||Z3),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:wX(this,u0(co));return;case 2:Yle(this,u0(co));return;case 5:rN(this,u0(co));return;case 7:!this.A&&(this.A=new j2(k2,this,7)),U1(this.A),!this.A&&(this.A=new j2(k2,this,7)),Bp(this.A,bo(co,16));return;case 8:SQ(this,lu(au(co)));return;case 9:!this.a&&(this.a=new Bl(B5,this,9,5)),U1(this.a),!this.a&&(this.a=new Bl(B5,this,9,5)),Bp(this.a,bo(co,16));return}vx(this,oo-A1((Pu(),Z3)),Uu((fo=bo(n1(this,16),29),fo||Z3),oo),co)},wo.ii=function(){return Pu(),Z3},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Hs(this.Cb,184)&&(bo(this.Cb,184).tb=null),s2(this,null);return;case 2:AI(this,null),pI(this,this.D);return;case 5:rN(this,null);return;case 7:!this.A&&(this.A=new j2(k2,this,7)),U1(this.A);return;case 8:SQ(this,!0);return;case 9:!this.a&&(this.a=new Bl(B5,this,9,5)),U1(this.a);return}mx(this,oo-A1((Pu(),Z3)),Uu((co=bo(n1(this,16),29),co||Z3),oo))},wo.pi=function(){var oo,co;if(this.a)for(oo=0,co=this.a.i;oo>16==5?bo(this.Cb,685):null}return dx(this,oo-A1((Pu(),j4)),Uu((po=bo(n1(this,16),29),po||j4),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 5:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?irt(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,5,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),j4)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),j4)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 5:return Uw(this,null,5,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),j4)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),j4)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&bo(this.Cb,685))}return ux(this,oo-A1((Pu(),j4)),Uu((co=bo(n1(this,16),29),co||j4),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:s2(this,u0(co));return;case 2:efe(this,bo(co,17).a);return;case 3:rot(this,bo(co,2039));return;case 4:nfe(this,u0(co));return}vx(this,oo-A1((Pu(),j4)),Uu((fo=bo(n1(this,16),29),fo||j4),oo),co)},wo.ii=function(){return Pu(),j4},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:s2(this,null);return;case 2:efe(this,0);return;case 3:rot(this,null);return;case 4:nfe(this,null);return}mx(this,oo-A1((Pu(),j4)),Uu((co=bo(n1(this,16),29),co||j4),oo))},wo.Ib=function(){var oo;return oo=this.c,oo??this.zb},wo.b=null,wo.c=null,wo.d=0,Vo(_h,"EEnumLiteralImpl",582);var GXt=Ip(_h,"EFactoryImpl/InternalEDateTimeFormat");zo(499,1,{2114:1},Cz),Vo(_h,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),zo(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},EC),wo.Ch=function(oo,co,fo){var po;return fo=Uw(this,oo,co,fo),this.e&&Hs(oo,179)&&(po=cZ(this,this.e),po!=this.c&&(fo=iN(this,po,fo))),fo},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return this.f;case 1:return!this.d&&(this.d=new Qp(Cv,this,1)),this.d;case 2:return co?SZ(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return co?pde(this):this.a}return dx(this,oo-A1((Pu(),X6)),Uu((po=bo(n1(this,16),29),po||X6),oo),co,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return Uet(this,null,fo);case 1:return!this.d&&(this.d=new Qp(Cv,this,1)),sv(this.d,oo,fo);case 3:return Ket(this,null,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),X6)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),X6)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return ux(this,oo-A1((Pu(),X6)),Uu((co=bo(n1(this,16),29),co||X6),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:_rt(this,bo(co,89));return;case 1:!this.d&&(this.d=new Qp(Cv,this,1)),U1(this.d),!this.d&&(this.d=new Qp(Cv,this,1)),Bp(this.d,bo(co,16));return;case 3:p5e(this,bo(co,89));return;case 4:N5e(this,bo(co,850));return;case 5:cI(this,bo(co,142));return}vx(this,oo-A1((Pu(),X6)),Uu((fo=bo(n1(this,16),29),fo||X6),oo),co)},wo.ii=function(){return Pu(),X6},wo.ki=function(oo){var co;switch(oo){case 0:_rt(this,null);return;case 1:!this.d&&(this.d=new Qp(Cv,this,1)),U1(this.d);return;case 3:p5e(this,null);return;case 4:N5e(this,null);return;case 5:cI(this,null);return}mx(this,oo-A1((Pu(),X6)),Uu((co=bo(n1(this,16),29),co||X6),oo))},wo.Ib=function(){var oo;return oo=new Bw(gS(this)),oo.a+=" (expression: ",She(this,oo),oo.a+=")",oo.a};var mMe;Vo(_h,"EGenericTypeImpl",248),zo(2067,2062,RJ),wo.Gi=function(oo,co){_Ve(this,oo,co)},wo.Wk=function(oo,co){return _Ve(this,this.gc(),oo),co},wo.$i=function(oo){return wx(this.pj(),oo)},wo.Ii=function(){return this.Ji()},wo.pj=function(){return new vFe(this)},wo.Ji=function(){return this.Ki(0)},wo.Ki=function(oo){return this.pj().fd(oo)},wo.Xk=function(oo,co){return j$(this,oo,!0),co},wo.Ti=function(oo,co){var fo,po;return po=kde(this,co),fo=this.fd(oo),fo.Rb(po),po},wo.Ui=function(oo,co){var fo;j$(this,co,!0),fo=this.fd(oo),fo.Rb(co)},Vo(Ep,"AbstractSequentialInternalEList",2067),zo(496,2067,RJ,iH),wo.$i=function(oo){return wx(this.pj(),oo)},wo.Ii=function(){return this.b==null?(t4(),t4(),WG):this.sl()},wo.pj=function(){return new HHe(this.a,this.b)},wo.Ji=function(){return this.b==null?(t4(),t4(),WG):this.sl()},wo.Ki=function(oo){var co,fo;if(this.b==null){if(oo<0||oo>1)throw Cs(new Dv(PB+oo+", size=0"));return t4(),t4(),WG}for(fo=this.sl(),co=0;co0;)if(co=this.c[--this.d],(!this.e||co.pk()!=hM||co.Lj()!=0)&&(!this.vl()||this.b.Xh(co))){if(xo=this.b.Nh(co,this.ul()),this.f=(vv(),bo(co,69).xk()),this.f||co.Jk()){if(this.ul()?(po=bo(xo,15),this.k=po):(po=bo(xo,71),this.k=this.j=po),Hs(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?bit(this,this.p):Ait(this))return vo=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(oo=bo(vo,76),oo.Lk(),fo=oo.md(),this.i=fo):(fo=vo,this.i=fo),this.g=-3,!0}else if(xo!=null)return this.k=null,this.p=null,fo=xo,this.i=fo,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return vo=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(oo=bo(vo,76),oo.Lk(),fo=oo.md(),this.i=fo):(fo=vo,this.i=fo),this.g=-3,!0}},wo.Pb=function(){return hQ(this)},wo.Tb=function(){return this.a},wo.Ub=function(){var oo;if(this.g<-1||this.Sb())return--this.a,this.g=0,oo=this.i,this.Sb(),oo;throw Cs(new ay)},wo.Vb=function(){return this.a-1},wo.Qb=function(){throw Cs(new l0)},wo.ul=function(){return!1},wo.Wb=function(oo){throw Cs(new l0)},wo.vl=function(){return!0},wo.a=0,wo.d=0,wo.f=!1,wo.g=0,wo.n=0,wo.o=0;var WG;Vo(Ep,"EContentsEList/FeatureIteratorImpl",287),zo(711,287,OJ,_we),wo.ul=function(){return!0},Vo(Ep,"EContentsEList/ResolvingFeatureIteratorImpl",711),zo(1178,711,OJ,lVe),wo.vl=function(){return!1},Vo(_h,"ENamedElementImpl/1/1",1178),zo(1179,287,OJ,cVe),wo.vl=function(){return!1},Vo(_h,"ENamedElementImpl/1/2",1179),zo(39,152,$V,O$,kue,Em,jue,m5,dS,B_e,HKe,F_e,qKe,e_e,VKe,z_e,GKe,t_e,WKe,P_e,UKe,lL,PH,oue,j_e,KKe,n_e,YKe),wo.Kj=function(){return y_e(this)},wo.Rj=function(){var oo;return oo=y_e(this),oo?oo.ik():null},wo.hj=function(oo){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,oo)},wo.jj=function(){return this.c},wo.Sj=function(){var oo;return oo=y_e(this),oo?oo.tk():!1},wo.b=-1,Vo(_h,"ENotificationImpl",39),zo(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},Vae),wo.Ah=function(oo){return art(this,oo)},wo.Lh=function(oo,co,fo){var po,vo,xo;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _f(),!!(this.Bb&256);case 3:return _f(),!!(this.Bb&512);case 4:return Ql(this.s);case 5:return Ql(this.t);case 6:return _f(),xo=this.t,xo>1||xo==-1;case 7:return _f(),vo=this.s,vo>=1;case 8:return co?Hx(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?bo(this.Cb,29):null;case 11:return!this.d&&(this.d=new j2(k2,this,11)),this.d;case 12:return!this.c&&(this.c=new Bl(Y6,this,12,10)),this.c;case 13:return!this.a&&(this.a=new cH(this,this)),this.a;case 14:return vw(this)}return dx(this,oo-A1((Pu(),z4)),Uu((po=bo(n1(this,16),29),po||z4),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 10:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?art(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,10,fo);case 12:return!this.c&&(this.c=new Bl(Y6,this,12,10)),a2(this.c,oo,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),z4)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),z4)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 9:return Vce(this,fo);case 10:return Uw(this,null,10,fo);case 11:return!this.d&&(this.d=new j2(k2,this,11)),sv(this.d,oo,fo);case 12:return!this.c&&(this.c=new Bl(Y6,this,12,10)),sv(this.c,oo,fo);case 14:return sv(vw(this),oo,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),z4)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),z4)),oo,fo)},wo.Wh=function(oo){var co,fo,po;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return po=this.t,po>1||po==-1;case 7:return fo=this.s,fo>=1;case 8:return!!this.r&&!this.q.e&&UC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&UC(this.q).i==0);case 10:return!!(this.Db>>16==10&&bo(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&vw(this.a.a).i!=0&&!(this.b&&dde(this.b));case 14:return!!this.b&&dde(this.b)}return ux(this,oo-A1((Pu(),z4)),Uu((co=bo(n1(this,16),29),co||z4),oo))},wo.bi=function(oo,co){var fo,po;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:s2(this,u0(co));return;case 2:m4(this,lu(au(co)));return;case 3:b4(this,lu(au(co)));return;case 4:d4(this,bo(co,17).a);return;case 5:L$(this,bo(co,17).a);return;case 8:TT(this,bo(co,142));return;case 9:po=b_(this,bo(co,89),null),po&&po.oj();return;case 11:!this.d&&(this.d=new j2(k2,this,11)),U1(this.d),!this.d&&(this.d=new j2(k2,this,11)),Bp(this.d,bo(co,16));return;case 12:!this.c&&(this.c=new Bl(Y6,this,12,10)),U1(this.c),!this.c&&(this.c=new Bl(Y6,this,12,10)),Bp(this.c,bo(co,16));return;case 13:!this.a&&(this.a=new cH(this,this)),gB(this.a),!this.a&&(this.a=new cH(this,this)),Bp(this.a,bo(co,16));return;case 14:U1(vw(this)),Bp(vw(this),bo(co,16));return}vx(this,oo-A1((Pu(),z4)),Uu((fo=bo(n1(this,16),29),fo||z4),oo),co)},wo.ii=function(){return Pu(),z4},wo.ki=function(oo){var co,fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:s2(this,null);return;case 2:m4(this,!0);return;case 3:b4(this,!0);return;case 4:d4(this,0);return;case 5:L$(this,1);return;case 8:TT(this,null);return;case 9:fo=b_(this,null,null),fo&&fo.oj();return;case 11:!this.d&&(this.d=new j2(k2,this,11)),U1(this.d);return;case 12:!this.c&&(this.c=new Bl(Y6,this,12,10)),U1(this.c);return;case 13:this.a&&gB(this.a);return;case 14:this.b&&U1(this.b);return}mx(this,oo-A1((Pu(),z4)),Uu((co=bo(n1(this,16),29),co||z4),oo))},wo.pi=function(){var oo,co;if(this.c)for(oo=0,co=this.c.i;ooTo&&Np(oo,To,null),po=0,fo=new g1(vw(this.a));fo.e!=fo.i.gc();)co=bo(k1(fo),89),xo=(Eo=co.c,Eo||(Pu(),N_)),Np(oo,po++,xo);return oo},wo.Hj=function(){var oo,co,fo,po,vo;for(vo=new Z5,vo.a+="[",oo=vw(this.a),co=0,po=vw(this.a).i;co1);case 5:return gL(this,oo,co,fo,po,this.i-bo(fo,15).gc()>0);default:return new m5(this.e,oo,this.c,co,fo,po,!0)}},wo.Tj=function(){return!0},wo.Qj=function(){return dde(this)},wo.Gk=function(){U1(this)},Vo(_h,"EOperationImpl/2",1377),zo(507,1,{2037:1,507:1},kHe),Vo(_h,"EPackageImpl/1",507),zo(14,83,iy,Bl),wo.il=function(){return this.d},wo.jl=function(){return this.b},wo.ml=function(){return!0},wo.b=0,Vo(Ep,"EObjectContainmentWithInverseEList",14),zo(365,14,iy,k8),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectContainmentWithInverseEList/Resolving",365),zo(308,365,iy,k$),wo.Ni=function(){this.a.tb=null},Vo(_h,"EPackageImpl/2",308),zo(1278,1,{},mbe),Vo(_h,"EPackageImpl/3",1278),zo(733,45,W9,kye),wo._b=function(oo){return Cm(oo)?aue(this,oo):!!wv(this.f,oo)},Vo(_h,"EPackageRegistryImpl",733),zo(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},Gae),wo.Ah=function(oo){return lrt(this,oo)},wo.Lh=function(oo,co,fo){var po,vo,xo;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _f(),!!(this.Bb&256);case 3:return _f(),!!(this.Bb&512);case 4:return Ql(this.s);case 5:return Ql(this.t);case 6:return _f(),xo=this.t,xo>1||xo==-1;case 7:return _f(),vo=this.s,vo>=1;case 8:return co?Hx(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?bo(this.Cb,62):null}return dx(this,oo-A1((Pu(),jA)),Uu((po=bo(n1(this,16),29),po||jA),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 10:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?lrt(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,10,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),jA)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),jA)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 9:return Vce(this,fo);case 10:return Uw(this,null,10,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),jA)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),jA)),oo,fo)},wo.Wh=function(oo){var co,fo,po;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return po=this.t,po>1||po==-1;case 7:return fo=this.s,fo>=1;case 8:return!!this.r&&!this.q.e&&UC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&UC(this.q).i==0);case 10:return!!(this.Db>>16==10&&bo(this.Cb,62))}return ux(this,oo-A1((Pu(),jA)),Uu((co=bo(n1(this,16),29),co||jA),oo))},wo.ii=function(){return Pu(),jA},Vo(_h,"EParameterImpl",518),zo(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},$we),wo.Lh=function(oo,co,fo){var po,vo,xo,Eo;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _f(),!!(this.Bb&256);case 3:return _f(),!!(this.Bb&512);case 4:return Ql(this.s);case 5:return Ql(this.t);case 6:return _f(),Eo=this.t,Eo>1||Eo==-1;case 7:return _f(),vo=this.s,vo>=1;case 8:return co?Hx(this):this.r;case 9:return this.q;case 10:return _f(),!!(this.Bb&bS);case 11:return _f(),!!(this.Bb&cA);case 12:return _f(),!!(this.Bb&nA);case 13:return this.j;case 14:return XI(this);case 15:return _f(),!!(this.Bb&Y2);case 16:return _f(),!!(this.Bb&tE);case 17:return $$(this);case 18:return _f(),!!(this.Bb&Cy);case 19:return _f(),xo=bv(this),!!(xo&&xo.Bb&Cy);case 20:return _f(),!!(this.Bb&hv);case 21:return co?bv(this):this.b;case 22:return co?TEe(this):yXe(this);case 23:return!this.a&&(this.a=new g9(BA,this,23)),this.a}return dx(this,oo-A1((Pu(),L7)),Uu((po=bo(n1(this,16),29),po||L7),oo),co,fo)},wo.Wh=function(oo){var co,fo,po,vo;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return vo=this.t,vo>1||vo==-1;case 7:return fo=this.s,fo>=1;case 8:return!!this.r&&!this.q.e&&UC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&UC(this.q).i==0);case 10:return(this.Bb&bS)==0;case 11:return(this.Bb&cA)!=0;case 12:return(this.Bb&nA)!=0;case 13:return this.j!=null;case 14:return XI(this)!=null;case 15:return(this.Bb&Y2)!=0;case 16:return(this.Bb&tE)!=0;case 17:return!!$$(this);case 18:return(this.Bb&Cy)!=0;case 19:return po=bv(this),!!po&&(po.Bb&Cy)!=0;case 20:return(this.Bb&hv)==0;case 21:return!!this.b;case 22:return!!yXe(this);case 23:return!!this.a&&this.a.i!=0}return ux(this,oo-A1((Pu(),L7)),Uu((co=bo(n1(this,16),29),co||L7),oo))},wo.bi=function(oo,co){var fo,po;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:bue(this,u0(co));return;case 2:m4(this,lu(au(co)));return;case 3:b4(this,lu(au(co)));return;case 4:d4(this,bo(co,17).a);return;case 5:L$(this,bo(co,17).a);return;case 8:TT(this,bo(co,142));return;case 9:po=b_(this,bo(co,89),null),po&&po.oj();return;case 10:II(this,lu(au(co)));return;case 11:LI(this,lu(au(co)));return;case 12:NI(this,lu(au(co)));return;case 13:F2e(this,u0(co));return;case 15:MI(this,lu(au(co)));return;case 16:BI(this,lu(au(co)));return;case 18:P$t(this,lu(au(co)));return;case 20:ike(this,lu(au(co)));return;case 21:nEe(this,bo(co,19));return;case 23:!this.a&&(this.a=new g9(BA,this,23)),U1(this.a),!this.a&&(this.a=new g9(BA,this,23)),Bp(this.a,bo(co,16));return}vx(this,oo-A1((Pu(),L7)),Uu((fo=bo(n1(this,16),29),fo||L7),oo),co)},wo.ii=function(){return Pu(),L7},wo.ki=function(oo){var co,fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Hs(this.Cb,90)&&U$(mw(bo(this.Cb,90)),4),s2(this,null);return;case 2:m4(this,!0);return;case 3:b4(this,!0);return;case 4:d4(this,0);return;case 5:L$(this,1);return;case 8:TT(this,null);return;case 9:fo=b_(this,null,null),fo&&fo.oj();return;case 10:II(this,!0);return;case 11:LI(this,!1);return;case 12:NI(this,!1);return;case 13:this.i=null,iQ(this,null);return;case 15:MI(this,!1);return;case 16:BI(this,!1);return;case 18:rke(this,!1),Hs(this.Cb,90)&&U$(mw(bo(this.Cb,90)),2);return;case 20:ike(this,!0);return;case 21:nEe(this,null);return;case 23:!this.a&&(this.a=new g9(BA,this,23)),U1(this.a);return}mx(this,oo-A1((Pu(),L7)),Uu((co=bo(n1(this,16),29),co||L7),oo))},wo.pi=function(){TEe(this),ZO(Fv((W2(),Gm),this)),Hx(this),this.Bb|=1},wo.uk=function(){return bv(this)},wo._k=function(){var oo;return oo=bv(this),!!oo&&(oo.Bb&Cy)!=0},wo.al=function(){return(this.Bb&Cy)!=0},wo.bl=function(){return(this.Bb&hv)!=0},wo.Yk=function(oo,co){return this.c=null,UEe(this,oo,co)},wo.Ib=function(){var oo;return this.Db&64?yZ(this):(oo=new Bx(yZ(this)),oo.a+=" (containment: ",J5(oo,(this.Bb&Cy)!=0),oo.a+=", resolveProxies: ",J5(oo,(this.Bb&hv)!=0),oo.a+=")",oo.a)},Vo(_h,"EReferenceImpl",102),zo(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},noe),wo.Fb=function(oo){return this===oo},wo.ld=function(){return this.b},wo.md=function(){return this.c},wo.Hb=function(){return PC(this)},wo.Di=function(oo){qTt(this,u0(oo))},wo.nd=function(oo){return $Tt(this,u0(oo))},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return this.b;case 1:return this.c}return dx(this,oo-A1((Pu(),gv)),Uu((po=bo(n1(this,16),29),po||gv),oo),co,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return this.b!=null;case 1:return this.c!=null}return ux(this,oo-A1((Pu(),gv)),Uu((co=bo(n1(this,16),29),co||gv),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:VTt(this,u0(co));return;case 1:J_e(this,u0(co));return}vx(this,oo-A1((Pu(),gv)),Uu((fo=bo(n1(this,16),29),fo||gv),oo),co)},wo.ii=function(){return Pu(),gv},wo.ki=function(oo){var co;switch(oo){case 0:Z_e(this,null);return;case 1:J_e(this,null);return}mx(this,oo-A1((Pu(),gv)),Uu((co=bo(n1(this,16),29),co||gv),oo))},wo.Bi=function(){var oo;return this.a==-1&&(oo=this.b,this.a=oo==null?0:h4(oo)),this.a},wo.Ci=function(oo){this.a=oo},wo.Ib=function(){var oo;return this.Db&64?gS(this):(oo=new Bx(gS(this)),oo.a+=" (key: ",Av(oo,this.b),oo.a+=", value: ",Av(oo,this.c),oo.a+=")",oo.a)},wo.a=-1,wo.b=null,wo.c=null;var Ey=Vo(_h,"EStringToStringMapEntryImpl",561),Zxt=Ip(Ep,"FeatureMap/Entry/Internal");zo(576,1,IJ),wo.xl=function(oo){return this.yl(bo(oo,54))},wo.yl=function(oo){return this.xl(oo)},wo.Fb=function(oo){var co,fo;return this===oo?!0:Hs(oo,76)?(co=bo(oo,76),co.Lk()==this.c?(fo=this.md(),fo==null?co.md()==null:U0(fo,co.md())):!1):!1},wo.Lk=function(){return this.c},wo.Hb=function(){var oo;return oo=this.md(),dp(this.c)^(oo==null?0:dp(oo))},wo.Ib=function(){var oo,co;return oo=this.c,co=zw(oo.qk()).yi(),oo.xe(),(co!=null&&co.length!=0?co+":"+oo.xe():oo.xe())+"="+this.md()},Vo(_h,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),zo(791,576,IJ,Bwe),wo.yl=function(oo){return new Bwe(this.c,oo)},wo.md=function(){return this.a},wo.zl=function(oo,co,fo){return $Rt(this,oo,this.a,co,fo)},wo.Al=function(oo,co,fo){return ARt(this,oo,this.a,co,fo)},Vo(_h,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),zo(1350,1,{},THe),wo.yk=function(oo,co,fo,po,vo){var xo;return xo=bo(oI(oo,this.b),220),xo.Yl(this.a).Fk(po)},wo.zk=function(oo,co,fo,po,vo){var xo;return xo=bo(oI(oo,this.b),220),xo.Pl(this.a,po,vo)},wo.Ak=function(oo,co,fo,po,vo){var xo;return xo=bo(oI(oo,this.b),220),xo.Ql(this.a,po,vo)},wo.Bk=function(oo,co,fo){var po;return po=bo(oI(oo,this.b),220),po.Yl(this.a).Qj()},wo.Ck=function(oo,co,fo,po){var vo;vo=bo(oI(oo,this.b),220),vo.Yl(this.a).Wb(po)},wo.Dk=function(oo,co,fo){return bo(oI(oo,this.b),220).Yl(this.a)},wo.Ek=function(oo,co,fo){var po;po=bo(oI(oo,this.b),220),po.Yl(this.a).Gk()},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),zo(91,1,{},r4,hT,o4,bT),wo.yk=function(oo,co,fo,po,vo){var xo;if(xo=co.li(fo),xo==null&&co.mi(fo,xo=OZ(this,oo)),!vo)switch(this.e){case 50:case 41:return bo(xo,597).bk();case 40:return bo(xo,220).Vl()}return xo},wo.zk=function(oo,co,fo,po,vo){var xo,Eo;return Eo=co.li(fo),Eo==null&&co.mi(fo,Eo=OZ(this,oo)),xo=bo(Eo,71).Wk(po,vo),xo},wo.Ak=function(oo,co,fo,po,vo){var xo;return xo=co.li(fo),xo!=null&&(vo=bo(xo,71).Xk(po,vo)),vo},wo.Bk=function(oo,co,fo){var po;return po=co.li(fo),po!=null&&bo(po,79).Qj()},wo.Ck=function(oo,co,fo,po){var vo;vo=bo(co.li(fo),79),!vo&&co.mi(fo,vo=OZ(this,oo)),vo.Wb(po)},wo.Dk=function(oo,co,fo){var po,vo;return vo=co.li(fo),vo==null&&co.mi(fo,vo=OZ(this,oo)),Hs(vo,79)?bo(vo,79):(po=bo(co.li(fo),15),new gFe(po))},wo.Ek=function(oo,co,fo){var po;po=bo(co.li(fo),79),!po&&co.mi(fo,po=OZ(this,oo)),po.Gk()},wo.b=0,wo.e=0,Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),zo(512,1,{}),wo.zk=function(oo,co,fo,po,vo){throw Cs(new l0)},wo.Ak=function(oo,co,fo,po,vo){throw Cs(new l0)},wo.Dk=function(oo,co,fo){return new EUe(this,oo,co,fo)};var QE;Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),zo(1367,1,ape,EUe),wo.Fk=function(oo){return this.a.yk(this.c,this.d,this.b,oo,!0)},wo.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},wo.Wb=function(oo){this.a.Ck(this.c,this.d,this.b,oo)},wo.Gk=function(){this.a.Ek(this.c,this.d,this.b)},wo.b=0,Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),zo(784,512,{},kSe),wo.yk=function(oo,co,fo,po,vo){return lhe(oo,oo.Ph(),oo.Fh())==this.b?this.bl()&&po?Kde(oo):oo.Ph():null},wo.zk=function(oo,co,fo,po,vo){var xo,Eo;return oo.Ph()&&(vo=(xo=oo.Fh(),xo>=0?oo.Ah(vo):oo.Ph().Th(oo,-1-xo,null,vo))),Eo=Ap(oo.Dh(),this.e),oo.Ch(po,Eo,vo)},wo.Ak=function(oo,co,fo,po,vo){var xo;return xo=Ap(oo.Dh(),this.e),oo.Ch(null,xo,vo)},wo.Bk=function(oo,co,fo){var po;return po=Ap(oo.Dh(),this.e),!!oo.Ph()&&oo.Fh()==po},wo.Ck=function(oo,co,fo,po){var vo,xo,Eo,To,Ao;if(po!=null&&!dhe(this.a,po))throw Cs(new TO(NJ+(Hs(po,58)?h5e(bo(po,58).Dh()):N_e(Nw(po)))+MJ+this.a+"'"));if(vo=oo.Ph(),Eo=Ap(oo.Dh(),this.e),$a(po)!==$a(vo)||oo.Fh()!=Eo&&po!=null){if(HI(oo,bo(po,58)))throw Cs(new i1(BB+oo.Ib()));Ao=null,vo&&(Ao=(xo=oo.Fh(),xo>=0?oo.Ah(Ao):oo.Ph().Th(oo,-1-xo,null,Ao))),To=bo(po,54),To&&(Ao=To.Rh(oo,Ap(To.Dh(),this.b),null,Ao)),Ao=oo.Ch(To,Eo,Ao),Ao&&Ao.oj()}else oo.vh()&&oo.wh()&&W0(oo,new Em(oo,1,Eo,po,po))},wo.Ek=function(oo,co,fo){var po,vo,xo,Eo;po=oo.Ph(),po?(Eo=(vo=oo.Fh(),vo>=0?oo.Ah(null):oo.Ph().Th(oo,-1-vo,null,null)),xo=Ap(oo.Dh(),this.e),Eo=oo.Ch(null,xo,Eo),Eo&&Eo.oj()):oo.vh()&&oo.wh()&&W0(oo,new lL(oo,1,this.e,null,null))},wo.bl=function(){return!1},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),zo(1351,784,{},pGe),wo.bl=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),zo(574,512,{}),wo.yk=function(oo,co,fo,po,vo){var xo;return xo=co.li(fo),xo==null?this.b:$a(xo)===$a(QE)?null:xo},wo.Bk=function(oo,co,fo){var po;return po=co.li(fo),po!=null&&($a(po)===$a(QE)||!U0(po,this.b))},wo.Ck=function(oo,co,fo,po){var vo,xo;oo.vh()&&oo.wh()?(vo=(xo=co.li(fo),xo==null?this.b:$a(xo)===$a(QE)?null:xo),po==null?this.c!=null?(co.mi(fo,null),po=this.b):this.b!=null?co.mi(fo,QE):co.mi(fo,null):(this.Bl(po),co.mi(fo,po)),W0(oo,this.d.Cl(oo,1,this.e,vo,po))):po==null?this.c!=null?co.mi(fo,null):this.b!=null?co.mi(fo,QE):co.mi(fo,null):(this.Bl(po),co.mi(fo,po))},wo.Ek=function(oo,co,fo){var po,vo;oo.vh()&&oo.wh()?(po=(vo=co.li(fo),vo==null?this.b:$a(vo)===$a(QE)?null:vo),co.ni(fo),W0(oo,this.d.Cl(oo,1,this.e,po,this.b))):co.ni(fo)},wo.Bl=function(oo){throw Cs(new TFe)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),zo(n7,1,{},roe),wo.Cl=function(oo,co,fo,po,vo){return new lL(oo,co,fo,po,vo)},wo.Dl=function(oo,co,fo,po,vo,xo){return new oue(oo,co,fo,po,vo,xo)};var vMe,bMe,yMe,wMe,xMe,SMe,_Me,abe,EMe;Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",n7),zo(1368,n7,{},ioe),wo.Cl=function(oo,co,fo,po,vo){return new n_e(oo,co,fo,lu(au(po)),lu(au(vo)))},wo.Dl=function(oo,co,fo,po,vo,xo){return new YKe(oo,co,fo,lu(au(po)),lu(au(vo)),xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),zo(1369,n7,{},ooe),wo.Cl=function(oo,co,fo,po,vo){return new B_e(oo,co,fo,bo(po,222).a,bo(vo,222).a)},wo.Dl=function(oo,co,fo,po,vo,xo){return new HKe(oo,co,fo,bo(po,222).a,bo(vo,222).a,xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),zo(1370,n7,{},soe),wo.Cl=function(oo,co,fo,po,vo){return new F_e(oo,co,fo,bo(po,180).a,bo(vo,180).a)},wo.Dl=function(oo,co,fo,po,vo,xo){return new qKe(oo,co,fo,bo(po,180).a,bo(vo,180).a,xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),zo(1371,n7,{},aoe),wo.Cl=function(oo,co,fo,po,vo){return new e_e(oo,co,fo,na(Tl(po)),na(Tl(vo)))},wo.Dl=function(oo,co,fo,po,vo,xo){return new VKe(oo,co,fo,na(Tl(po)),na(Tl(vo)),xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),zo(1372,n7,{},loe),wo.Cl=function(oo,co,fo,po,vo){return new z_e(oo,co,fo,bo(po,161).a,bo(vo,161).a)},wo.Dl=function(oo,co,fo,po,vo,xo){return new GKe(oo,co,fo,bo(po,161).a,bo(vo,161).a,xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),zo(1373,n7,{},coe),wo.Cl=function(oo,co,fo,po,vo){return new t_e(oo,co,fo,bo(po,17).a,bo(vo,17).a)},wo.Dl=function(oo,co,fo,po,vo,xo){return new WKe(oo,co,fo,bo(po,17).a,bo(vo,17).a,xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),zo(1374,n7,{},uoe),wo.Cl=function(oo,co,fo,po,vo){return new P_e(oo,co,fo,bo(po,168).a,bo(vo,168).a)},wo.Dl=function(oo,co,fo,po,vo,xo){return new UKe(oo,co,fo,bo(po,168).a,bo(vo,168).a,xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),zo(1375,n7,{},foe),wo.Cl=function(oo,co,fo,po,vo){return new j_e(oo,co,fo,bo(po,191).a,bo(vo,191).a)},wo.Dl=function(oo,co,fo,po,vo,xo){return new KKe(oo,co,fo,bo(po,191).a,bo(vo,191).a,xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),zo(1353,574,{},kUe),wo.Bl=function(oo){if(!this.a.fk(oo))throw Cs(new TO(NJ+Nw(oo)+MJ+this.a+"'"))},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),zo(1354,574,{},dWe),wo.Bl=function(oo){},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),zo(785,574,{}),wo.Bk=function(oo,co,fo){var po;return po=co.li(fo),po!=null},wo.Ck=function(oo,co,fo,po){var vo,xo;oo.vh()&&oo.wh()?(vo=!0,xo=co.li(fo),xo==null?(vo=!1,xo=this.b):$a(xo)===$a(QE)&&(xo=null),po==null?this.c!=null?(co.mi(fo,null),po=this.b):co.mi(fo,QE):(this.Bl(po),co.mi(fo,po)),W0(oo,this.d.Dl(oo,1,this.e,xo,po,!vo))):po==null?this.c!=null?co.mi(fo,null):co.mi(fo,QE):(this.Bl(po),co.mi(fo,po))},wo.Ek=function(oo,co,fo){var po,vo;oo.vh()&&oo.wh()?(po=!0,vo=co.li(fo),vo==null?(po=!1,vo=this.b):$a(vo)===$a(QE)&&(vo=null),co.ni(fo),W0(oo,this.d.Dl(oo,2,this.e,vo,this.b,po))):co.ni(fo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),zo(1355,785,{},TUe),wo.Bl=function(oo){if(!this.a.fk(oo))throw Cs(new TO(NJ+Nw(oo)+MJ+this.a+"'"))},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),zo(1356,785,{},hWe),wo.Bl=function(oo){},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),zo(410,512,{},GY),wo.yk=function(oo,co,fo,po,vo){var xo,Eo,To,Ao,Io;if(Io=co.li(fo),this.tk()&&$a(Io)===$a(QE))return null;if(this.bl()&&po&&Io!=null){if(To=bo(Io,54),To.Vh()&&(Ao=y3(oo,To),To!=Ao)){if(!dhe(this.a,Ao))throw Cs(new TO(NJ+Nw(Ao)+MJ+this.a+"'"));co.mi(fo,Io=Ao),this.al()&&(xo=bo(Ao,54),Eo=To.Th(oo,this.b?Ap(To.Dh(),this.b):-1-Ap(oo.Dh(),this.e),null,null),!xo.Ph()&&(Eo=xo.Rh(oo,this.b?Ap(xo.Dh(),this.b):-1-Ap(oo.Dh(),this.e),null,Eo)),Eo&&Eo.oj()),oo.vh()&&oo.wh()&&W0(oo,new lL(oo,9,this.e,To,Ao))}return Io}else return Io},wo.zk=function(oo,co,fo,po,vo){var xo,Eo;return Eo=co.li(fo),$a(Eo)===$a(QE)&&(Eo=null),co.mi(fo,po),this.Mj()?$a(Eo)!==$a(po)&&Eo!=null&&(xo=bo(Eo,54),vo=xo.Th(oo,Ap(xo.Dh(),this.b),null,vo)):this.al()&&Eo!=null&&(vo=bo(Eo,54).Th(oo,-1-Ap(oo.Dh(),this.e),null,vo)),oo.vh()&&oo.wh()&&(!vo&&(vo=new e3(4)),vo.nj(new lL(oo,1,this.e,Eo,po))),vo},wo.Ak=function(oo,co,fo,po,vo){var xo;return xo=co.li(fo),$a(xo)===$a(QE)&&(xo=null),co.ni(fo),oo.vh()&&oo.wh()&&(!vo&&(vo=new e3(4)),this.tk()?vo.nj(new lL(oo,2,this.e,xo,null)):vo.nj(new lL(oo,1,this.e,xo,null))),vo},wo.Bk=function(oo,co,fo){var po;return po=co.li(fo),po!=null},wo.Ck=function(oo,co,fo,po){var vo,xo,Eo,To,Ao;if(po!=null&&!dhe(this.a,po))throw Cs(new TO(NJ+(Hs(po,58)?h5e(bo(po,58).Dh()):N_e(Nw(po)))+MJ+this.a+"'"));Ao=co.li(fo),To=Ao!=null,this.tk()&&$a(Ao)===$a(QE)&&(Ao=null),Eo=null,this.Mj()?$a(Ao)!==$a(po)&&(Ao!=null&&(vo=bo(Ao,54),Eo=vo.Th(oo,Ap(vo.Dh(),this.b),null,Eo)),po!=null&&(vo=bo(po,54),Eo=vo.Rh(oo,Ap(vo.Dh(),this.b),null,Eo))):this.al()&&$a(Ao)!==$a(po)&&(Ao!=null&&(Eo=bo(Ao,54).Th(oo,-1-Ap(oo.Dh(),this.e),null,Eo)),po!=null&&(Eo=bo(po,54).Rh(oo,-1-Ap(oo.Dh(),this.e),null,Eo))),po==null&&this.tk()?co.mi(fo,QE):co.mi(fo,po),oo.vh()&&oo.wh()?(xo=new oue(oo,1,this.e,Ao,po,this.tk()&&!To),Eo?(Eo.nj(xo),Eo.oj()):W0(oo,xo)):Eo&&Eo.oj()},wo.Ek=function(oo,co,fo){var po,vo,xo,Eo,To;To=co.li(fo),Eo=To!=null,this.tk()&&$a(To)===$a(QE)&&(To=null),xo=null,To!=null&&(this.Mj()?(po=bo(To,54),xo=po.Th(oo,Ap(po.Dh(),this.b),null,xo)):this.al()&&(xo=bo(To,54).Th(oo,-1-Ap(oo.Dh(),this.e),null,xo))),co.ni(fo),oo.vh()&&oo.wh()?(vo=new oue(oo,this.tk()?2:1,this.e,To,null,Eo),xo?(xo.nj(vo),xo.oj()):W0(oo,vo)):xo&&xo.oj()},wo.Mj=function(){return!1},wo.al=function(){return!1},wo.bl=function(){return!1},wo.tk=function(){return!1},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),zo(575,410,{},cce),wo.al=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),zo(1359,575,{},fVe),wo.bl=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),zo(787,575,{},Ewe),wo.tk=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),zo(1361,787,{},dVe),wo.bl=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),zo(650,575,{},Sce),wo.Mj=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),zo(1360,650,{},gGe),wo.bl=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),zo(788,650,{},uxe),wo.tk=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),zo(1362,788,{},mGe),wo.bl=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),zo(651,410,{},kwe),wo.bl=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),zo(1363,651,{},hVe),wo.tk=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),zo(789,651,{},lxe),wo.Mj=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),zo(1364,789,{},vGe),wo.tk=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),zo(1357,410,{},pVe),wo.tk=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),zo(786,410,{},cxe),wo.Mj=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),zo(1358,786,{},bGe),wo.tk=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),zo(790,576,IJ,sSe),wo.yl=function(oo){return new sSe(this.a,this.c,oo)},wo.md=function(){return this.b},wo.zl=function(oo,co,fo){return T7t(this,oo,this.b,fo)},wo.Al=function(oo,co,fo){return C7t(this,oo,this.b,fo)},Vo(_h,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),zo(1365,1,ape,gFe),wo.Fk=function(oo){return this.a},wo.Qj=function(){return Hs(this.a,97)?bo(this.a,97).Qj():!this.a.dc()},wo.Wb=function(oo){this.a.$b(),this.a.Gc(bo(oo,15))},wo.Gk=function(){Hs(this.a,97)?bo(this.a,97).Gk():this.a.$b()},Vo(_h,"EStructuralFeatureImpl/SettingMany",1365),zo(1366,576,IJ,jYe),wo.xl=function(oo){return new dce((rp(),iP),this.b.ri(this.a,oo))},wo.md=function(){return null},wo.zl=function(oo,co,fo){return fo},wo.Al=function(oo,co,fo){return fo},Vo(_h,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),zo(652,576,IJ,dce),wo.xl=function(oo){return new dce(this.c,oo)},wo.md=function(){return this.a},wo.zl=function(oo,co,fo){return fo},wo.Al=function(oo,co,fo){return fo},Vo(_h,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),zo(403,506,uE,ZA),wo.aj=function(oo){return Al(Jx,Xu,29,oo,0,1)},wo.Yi=function(){return!1},Vo(_h,"ESuperAdapter/1",403),zo(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},uz),wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new iL(this,Cv,this)),this.a}return dx(this,oo-A1((Pu(),Q6)),Uu((po=bo(n1(this,16),29),po||Q6),oo),co,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 2:return!this.a&&(this.a=new iL(this,Cv,this)),sv(this.a,oo,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),Q6)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),Q6)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return ux(this,oo-A1((Pu(),Q6)),Uu((co=bo(n1(this,16),29),co||Q6),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:s2(this,u0(co));return;case 2:!this.a&&(this.a=new iL(this,Cv,this)),U1(this.a),!this.a&&(this.a=new iL(this,Cv,this)),Bp(this.a,bo(co,16));return}vx(this,oo-A1((Pu(),Q6)),Uu((fo=bo(n1(this,16),29),fo||Q6),oo),co)},wo.ii=function(){return Pu(),Q6},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:s2(this,null);return;case 2:!this.a&&(this.a=new iL(this,Cv,this)),U1(this.a);return}mx(this,oo-A1((Pu(),Q6)),Uu((co=bo(n1(this,16),29),co||Q6),oo))},Vo(_h,"ETypeParameterImpl",457),zo(458,83,iy,iL),wo.Nj=function(oo,co){return zBt(this,bo(oo,89),co)},wo.Oj=function(oo,co){return HBt(this,bo(oo,89),co)},Vo(_h,"ETypeParameterImpl/1",458),zo(647,45,W9,Wae),wo.ec=function(){return new bK(this)},Vo(_h,"ETypeParameterImpl/2",647),zo(570,w_,U2,bK),wo.Fc=function(oo){return jVe(this,bo(oo,89))},wo.Gc=function(oo){var co,fo,po;for(po=!1,fo=oo.Kc();fo.Ob();)co=bo(fo.Pb(),89),N0(this.a,co,"")==null&&(po=!0);return po},wo.$b=function(){nw(this.a)},wo.Hc=function(oo){return p2(this.a,oo)},wo.Kc=function(){var oo;return oo=new ST(new su(this.a).a),new yK(oo)},wo.Mc=function(oo){return RXe(this,oo)},wo.gc=function(){return ED(this.a)},Vo(_h,"ETypeParameterImpl/2/1",570),zo(571,1,$m,yK),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){return bo(a6(this.a).ld(),89)},wo.Ob=function(){return this.a.b},wo.Qb=function(){PQe(this.a)},Vo(_h,"ETypeParameterImpl/2/1/1",571),zo(1329,45,W9,oPe),wo._b=function(oo){return Cm(oo)?aue(this,oo):!!wv(this.f,oo)},wo.xc=function(oo){var co,fo;return co=Cm(oo)?Gy(this,oo):Uv(wv(this.f,oo)),Hs(co,851)?(fo=bo(co,851),co=fo.Kk(),N0(this,bo(oo,241),co),co):co??(oo==null?(fle(),eSt):null)},Vo(_h,"EValidatorRegistryImpl",1329),zo(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},doe),wo.ri=function(oo,co){switch(oo.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return co==null?null:ry(co);case 25:return F8t(co);case 27:return Z7t(co);case 28:return J7t(co);case 29:return co==null?null:vqe(ZF[0],bo(co,206));case 41:return co==null?"":aT(bo(co,297));case 42:return ry(co);case 50:return u0(co);default:throw Cs(new i1(kN+oo.xe()+$6))}},wo.si=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs;switch(oo.G==-1&&(oo.G=(Xo=zw(oo),Xo?x4(Xo.vi(),oo):-1)),oo.G){case 0:return fo=new qae,fo;case 1:return co=new CU,co;case 2:return po=new yz,po;case 4:return vo=new wK,vo;case 5:return xo=new iPe,xo;case 6:return Eo=new AFe,Eo;case 7:return To=new KU,To;case 10:return Io=new bO,Io;case 11:return Fo=new Vae,Fo;case 12:return Wo=new MUe,Wo;case 13:return Zo=new Gae,Zo;case 14:return ws=new $we,ws;case 17:return Ss=new noe,Ss;case 18:return Ao=new EC,Ao;case 19:return Rs=new uz,Rs;default:throw Cs(new i1(G0e+oo.zb+$6))}},wo.ti=function(oo,co){switch(oo.hk()){case 20:return co==null?null:new Xye(co);case 21:return co==null?null:new s3(co);case 23:case 22:return co==null?null:QNt(co);case 26:case 24:return co==null?null:WH(Ww(co,-128,127)<<24>>24);case 25:return mzt(co);case 27:return FDt(co);case 28:return PDt(co);case 29:return lFt(co);case 32:case 31:return co==null?null:G$(co);case 38:case 37:return co==null?null:new hye(co);case 40:case 39:return co==null?null:Ql(Ww(co,Ym,q0));case 41:return null;case 42:return co==null,null;case 44:case 43:return co==null?null:E5(RZ(co));case 49:case 48:return co==null?null:OI(Ww(co,DJ,32767)<<16>>16);case 50:return co;default:throw Cs(new i1(kN+oo.xe()+$6))}},Vo(_h,"EcoreFactoryImpl",1349),zo(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},iUe),wo.gb=!1,wo.hb=!1;var kMe,Jxt=!1;Vo(_h,"EcorePackageImpl",560),zo(1234,1,{851:1},hoe),wo.Kk=function(){return Rqe(),tSt},Vo(_h,"EcorePackageImpl/1",1234),zo(1243,1,I0,poe),wo.fk=function(oo){return Hs(oo,155)},wo.gk=function(oo){return Al(HG,Xu,155,oo,0,1)},Vo(_h,"EcorePackageImpl/10",1243),zo(1244,1,I0,fz),wo.fk=function(oo){return Hs(oo,197)},wo.gk=function(oo){return Al(Zve,Xu,197,oo,0,1)},Vo(_h,"EcorePackageImpl/11",1244),zo(1245,1,I0,$U),wo.fk=function(oo){return Hs(oo,58)},wo.gk=function(oo){return Al(Y3,Xu,58,oo,0,1)},Vo(_h,"EcorePackageImpl/12",1245),zo(1246,1,I0,goe),wo.fk=function(oo){return Hs(oo,411)},wo.gk=function(oo){return Al(eS,g$e,62,oo,0,1)},Vo(_h,"EcorePackageImpl/13",1246),zo(1247,1,I0,moe),wo.fk=function(oo){return Hs(oo,241)},wo.gk=function(oo){return Al(t_,Xu,241,oo,0,1)},Vo(_h,"EcorePackageImpl/14",1247),zo(1248,1,I0,voe),wo.fk=function(oo){return Hs(oo,518)},wo.gk=function(oo){return Al(Y6,Xu,2116,oo,0,1)},Vo(_h,"EcorePackageImpl/15",1248),zo(1249,1,I0,boe),wo.fk=function(oo){return Hs(oo,102)},wo.gk=function(oo){return Al(FA,t7,19,oo,0,1)},Vo(_h,"EcorePackageImpl/16",1249),zo(1250,1,I0,yoe),wo.fk=function(oo){return Hs(oo,179)},wo.gk=function(oo){return Al(L2,t7,179,oo,0,1)},Vo(_h,"EcorePackageImpl/17",1250),zo(1251,1,I0,woe),wo.fk=function(oo){return Hs(oo,481)},wo.gk=function(oo){return Al(LA,Xu,481,oo,0,1)},Vo(_h,"EcorePackageImpl/18",1251),zo(1252,1,I0,xoe),wo.fk=function(oo){return Hs(oo,561)},wo.gk=function(oo){return Al(Ey,tht,561,oo,0,1)},Vo(_h,"EcorePackageImpl/19",1252),zo(1235,1,I0,Soe),wo.fk=function(oo){return Hs(oo,331)},wo.gk=function(oo){return Al(BA,t7,35,oo,0,1)},Vo(_h,"EcorePackageImpl/2",1235),zo(1253,1,I0,AU),wo.fk=function(oo){return Hs(oo,248)},wo.gk=function(oo){return Al(Cv,bht,89,oo,0,1)},Vo(_h,"EcorePackageImpl/20",1253),zo(1254,1,I0,_oe),wo.fk=function(oo){return Hs(oo,457)},wo.gk=function(oo){return Al(k2,Xu,850,oo,0,1)},Vo(_h,"EcorePackageImpl/21",1254),zo(1255,1,I0,JM),wo.fk=function(oo){return v$(oo)},wo.gk=function(oo){return Al(qp,Yl,485,oo,8,1)},Vo(_h,"EcorePackageImpl/22",1255),zo(1256,1,I0,Eoe),wo.fk=function(oo){return Hs(oo,195)},wo.gk=function(oo){return Al(Q2,Yl,195,oo,0,2)},Vo(_h,"EcorePackageImpl/23",1256),zo(1257,1,I0,koe),wo.fk=function(oo){return Hs(oo,222)},wo.gk=function(oo){return Al(wR,Yl,222,oo,0,1)},Vo(_h,"EcorePackageImpl/24",1257),zo(1258,1,I0,Toe),wo.fk=function(oo){return Hs(oo,180)},wo.gk=function(oo){return Al(YB,Yl,180,oo,0,1)},Vo(_h,"EcorePackageImpl/25",1258),zo(1259,1,I0,Coe),wo.fk=function(oo){return Hs(oo,206)},wo.gk=function(oo){return Al(GJ,Yl,206,oo,0,1)},Vo(_h,"EcorePackageImpl/26",1259),zo(1260,1,I0,$oe),wo.fk=function(oo){return!1},wo.gk=function(oo){return Al(qMe,Xu,2215,oo,0,1)},Vo(_h,"EcorePackageImpl/27",1260),zo(1261,1,I0,Aoe),wo.fk=function(oo){return b$(oo)},wo.gk=function(oo){return Al(nm,Yl,345,oo,7,1)},Vo(_h,"EcorePackageImpl/28",1261),zo(1262,1,I0,Roe),wo.fk=function(oo){return Hs(oo,61)},wo.gk=function(oo){return Al(iMe,rA,61,oo,0,1)},Vo(_h,"EcorePackageImpl/29",1262),zo(1236,1,I0,Ooe),wo.fk=function(oo){return Hs(oo,519)},wo.gk=function(oo){return Al(C0,{3:1,4:1,5:1,2033:1},598,oo,0,1)},Vo(_h,"EcorePackageImpl/3",1236),zo(1263,1,I0,Ioe),wo.fk=function(oo){return Hs(oo,582)},wo.gk=function(oo){return Al(aMe,Xu,2039,oo,0,1)},Vo(_h,"EcorePackageImpl/30",1263),zo(1264,1,I0,Noe),wo.fk=function(oo){return Hs(oo,160)},wo.gk=function(oo){return Al(RMe,rA,160,oo,0,1)},Vo(_h,"EcorePackageImpl/31",1264),zo(1265,1,I0,Moe),wo.fk=function(oo){return Hs(oo,76)},wo.gk=function(oo){return Al(une,Cht,76,oo,0,1)},Vo(_h,"EcorePackageImpl/32",1265),zo(1266,1,I0,Doe),wo.fk=function(oo){return Hs(oo,161)},wo.gk=function(oo){return Al(IN,Yl,161,oo,0,1)},Vo(_h,"EcorePackageImpl/33",1266),zo(1267,1,I0,Loe),wo.fk=function(oo){return Hs(oo,17)},wo.gk=function(oo){return Al(Vm,Yl,17,oo,0,1)},Vo(_h,"EcorePackageImpl/34",1267),zo(1268,1,I0,Boe),wo.fk=function(oo){return Hs(oo,297)},wo.gk=function(oo){return Al(A$e,Xu,297,oo,0,1)},Vo(_h,"EcorePackageImpl/35",1268),zo(1269,1,I0,Foe),wo.fk=function(oo){return Hs(oo,168)},wo.gk=function(oo){return Al(R6,Yl,168,oo,0,1)},Vo(_h,"EcorePackageImpl/36",1269),zo(1270,1,I0,Poe),wo.fk=function(oo){return Hs(oo,85)},wo.gk=function(oo){return Al(R$e,Xu,85,oo,0,1)},Vo(_h,"EcorePackageImpl/37",1270),zo(1271,1,I0,RU),wo.fk=function(oo){return Hs(oo,599)},wo.gk=function(oo){return Al(TMe,Xu,599,oo,0,1)},Vo(_h,"EcorePackageImpl/38",1271),zo(1272,1,I0,OU),wo.fk=function(oo){return!1},wo.gk=function(oo){return Al(VMe,Xu,2216,oo,0,1)},Vo(_h,"EcorePackageImpl/39",1272),zo(1237,1,I0,joe),wo.fk=function(oo){return Hs(oo,90)},wo.gk=function(oo){return Al(Jx,Xu,29,oo,0,1)},Vo(_h,"EcorePackageImpl/4",1237),zo(1273,1,I0,zoe),wo.fk=function(oo){return Hs(oo,191)},wo.gk=function(oo){return Al(O6,Yl,191,oo,0,1)},Vo(_h,"EcorePackageImpl/40",1273),zo(1274,1,I0,Hoe),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(_h,"EcorePackageImpl/41",1274),zo(1275,1,I0,qoe),wo.fk=function(oo){return Hs(oo,596)},wo.gk=function(oo){return Al(sMe,Xu,596,oo,0,1)},Vo(_h,"EcorePackageImpl/42",1275),zo(1276,1,I0,eD),wo.fk=function(oo){return!1},wo.gk=function(oo){return Al(GMe,Yl,2217,oo,0,1)},Vo(_h,"EcorePackageImpl/43",1276),zo(1277,1,I0,Voe),wo.fk=function(oo){return Hs(oo,44)},wo.gk=function(oo){return Al(qT,NZ,44,oo,0,1)},Vo(_h,"EcorePackageImpl/44",1277),zo(1238,1,I0,Goe),wo.fk=function(oo){return Hs(oo,142)},wo.gk=function(oo){return Al(n_,Xu,142,oo,0,1)},Vo(_h,"EcorePackageImpl/5",1238),zo(1239,1,I0,Woe),wo.fk=function(oo){return Hs(oo,156)},wo.gk=function(oo){return Al(ibe,Xu,156,oo,0,1)},Vo(_h,"EcorePackageImpl/6",1239),zo(1240,1,I0,Uoe),wo.fk=function(oo){return Hs(oo,469)},wo.gk=function(oo){return Al(cne,Xu,685,oo,0,1)},Vo(_h,"EcorePackageImpl/7",1240),zo(1241,1,I0,Koe),wo.fk=function(oo){return Hs(oo,582)},wo.gk=function(oo){return Al(B5,Xu,694,oo,0,1)},Vo(_h,"EcorePackageImpl/8",1241),zo(1242,1,I0,Yoe),wo.fk=function(oo){return Hs(oo,480)},wo.gk=function(oo){return Al(QF,Xu,480,oo,0,1)},Vo(_h,"EcorePackageImpl/9",1242),zo(1038,2080,eht,TPe),wo.Mi=function(oo,co){TIt(this,bo(co,424))},wo.Qi=function(oo,co){Cit(this,oo,bo(co,424))},Vo(_h,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),zo(1039,152,$V,KWe),wo.jj=function(){return this.a.a},Vo(_h,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),zo(1067,1066,{},lqe),Vo("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var TMe=Ip($ht,"Resource");zo(799,1524,Aht),wo.Hl=function(oo){},wo.Il=function(oo){},wo.El=function(){return!this.a&&(this.a=new Bae(this)),this.a},wo.Fl=function(oo){var co,fo,po,vo,xo;if(po=oo.length,po>0)if(o1(0,oo.length),oo.charCodeAt(0)==47){for(xo=new o2(4),vo=1,co=1;co0&&(oo=(Bm(0,fo,oo.length),oo.substr(0,fo))));return tjt(this,oo)},wo.Gl=function(){return this.c},wo.Ib=function(){var oo;return aT(this.Rm)+"@"+(oo=dp(this)>>>0,oo.toString(16))+" uri='"+this.d+"'"},wo.b=!1,Vo(lpe,"ResourceImpl",799),zo(1525,799,Aht,mFe),Vo(lpe,"BinaryResourceImpl",1525),zo(1190,708,npe),wo.bj=function(oo){return Hs(oo,58)?G6t(this,bo(oo,58)):Hs(oo,599)?new g1(bo(oo,599).El()):$a(oo)===$a(this.f)?bo(oo,16).Kc():(zO(),GG.a)},wo.Ob=function(){return a4e(this)},wo.a=!1,Vo(Ep,"EcoreUtil/ContentTreeIterator",1190),zo(1526,1190,npe,EWe),wo.bj=function(oo){return $a(oo)===$a(this.f)?bo(oo,15).Kc():new xYe(bo(oo,58))},Vo(lpe,"ResourceImpl/5",1526),zo(658,2092,vht,Bae),wo.Hc=function(oo){return this.i<=4?VI(this,oo):Hs(oo,54)&&bo(oo,54).Jh()==this.a},wo.Mi=function(oo,co){oo==this.i-1&&(this.a.b||(this.a.b=!0))},wo.Oi=function(oo,co){oo==0?this.a.b||(this.a.b=!0):Bue(this,oo,co)},wo.Qi=function(oo,co){},wo.Ri=function(oo,co,fo){},wo.Lj=function(){return 2},wo.jj=function(){return this.a},wo.Mj=function(){return!0},wo.Nj=function(oo,co){var fo;return fo=bo(oo,54),co=fo.fi(this.a,co),co},wo.Oj=function(oo,co){var fo;return fo=bo(oo,54),fo.fi(null,co)},wo.Pj=function(){return!1},wo.Si=function(){return!0},wo.aj=function(oo){return Al(Y3,Xu,58,oo,0,1)},wo.Yi=function(){return!1},Vo(lpe,"ResourceImpl/ContentsEList",658),zo(970,2062,cN,vFe),wo.fd=function(oo){return this.a.Ki(oo)},wo.gc=function(){return this.a.gc()},Vo(Ep,"AbstractSequentialInternalEList/1",970);var CMe,$Me,Gm,AMe;zo(634,1,{},TGe);var fne,dne;Vo(Ep,"BasicExtendedMetaData",634),zo(1181,1,{},$He),wo.Jl=function(){return null},wo.Kl=function(){return this.a==-2&&Obe(this,tFt(this.d,this.b)),this.a},wo.Ll=function(){return null},wo.Ml=function(){return Hu(),Hu(),cv},wo.xe=function(){return this.c==$N&&Ibe(this,Ktt(this.d,this.b)),this.c},wo.Nl=function(){return 0},wo.a=-2,wo.c=$N,Vo(Ep,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),zo(1182,1,{},QKe),wo.Jl=function(){return this.a==(iI(),fne)&&Dbe(this,eVt(this.f,this.b)),this.a},wo.Kl=function(){return 0},wo.Ll=function(){return this.c==(iI(),fne)&&Nbe(this,tVt(this.f,this.b)),this.c},wo.Ml=function(){return!this.d&&Bbe(this,PGt(this.f,this.b)),this.d},wo.xe=function(){return this.e==$N&&Pbe(this,Ktt(this.f,this.b)),this.e},wo.Nl=function(){return this.g==-2&&zbe(this,wBt(this.f,this.b)),this.g},wo.e=$N,wo.g=-2,Vo(Ep,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),zo(1180,1,{},AHe),wo.b=!1,wo.c=!1,Vo(Ep,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),zo(1183,1,{},ZKe),wo.c=-2,wo.e=$N,wo.f=$N,Vo(Ep,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),zo(593,632,iy,DY),wo.Lj=function(){return this.c},wo.ol=function(){return!1},wo.Wi=function(oo,co){return co},wo.c=0,Vo(Ep,"EDataTypeEList",593);var RMe=Ip(Ep,"FeatureMap");zo(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Fp),wo.bd=function(oo,co){yHt(this,oo,bo(co,76))},wo.Fc=function(oo){return Bzt(this,bo(oo,76))},wo.Hi=function(oo){HCt(this,bo(oo,76))},wo.Nj=function(oo,co){return c4t(this,bo(oo,76),co)},wo.Oj=function(oo,co){return Zwe(this,bo(oo,76),co)},wo.Ti=function(oo,co){return VVt(this,oo,co)},wo.Wi=function(oo,co){return OUt(this,oo,bo(co,76))},wo.hd=function(oo,co){return sqt(this,oo,bo(co,76))},wo.Uj=function(oo,co){return u4t(this,bo(oo,76),co)},wo.Vj=function(oo,co){return tGe(this,bo(oo,76),co)},wo.Wj=function(oo,co,fo){return aBt(this,bo(oo,76),bo(co,76),fo)},wo.Zi=function(oo,co){return Ode(this,oo,bo(co,76))},wo.Ol=function(oo,co){return Z4e(this,oo,co)},wo.cd=function(oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo;for(Io=new n6(co.gc()),vo=co.Kc();vo.Ob();)if(po=bo(vo.Pb(),76),xo=po.Lk(),C5(this.e,xo))(!xo.Si()||!kX(this,xo,po.md())&&!VI(Io,po))&&Y1(Io,po);else{for(Fo=w2(this.e.Dh(),xo),fo=bo(this.g,124),Eo=!0,To=0;To=0;)if(co=oo[this.c],this.k.am(co.Lk()))return this.j=this.f?co:co.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},Vo(Ep,"BasicFeatureMap/FeatureEIterator",420),zo(676,420,DE,Ule),wo.ul=function(){return!0},Vo(Ep,"BasicFeatureMap/ResolvingFeatureEIterator",676),zo(968,496,RJ,bqe),wo.pj=function(){return this},Vo(Ep,"EContentsEList/1",968),zo(969,496,RJ,HHe),wo.ul=function(){return!1},Vo(Ep,"EContentsEList/2",969),zo(967,287,OJ,yqe),wo.wl=function(oo){},wo.Ob=function(){return!1},wo.Sb=function(){return!1},Vo(Ep,"EContentsEList/FeatureIteratorImpl/1",967),zo(840,593,iy,owe),wo.Ni=function(){this.a=!0},wo.Qj=function(){return this.a},wo.Gk=function(){var oo;U1(this),$w(this.e)?(oo=this.a,this.a=!1,W0(this.e,new dS(this.e,2,this.c,oo,!1))):this.a=!1},wo.a=!1,Vo(Ep,"EDataTypeEList/Unsettable",840),zo(1958,593,iy,Tqe),wo.Si=function(){return!0},Vo(Ep,"EDataTypeUniqueEList",1958),zo(1959,840,iy,Cqe),wo.Si=function(){return!0},Vo(Ep,"EDataTypeUniqueEList/Unsettable",1959),zo(147,83,iy,j2),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectContainmentEList/Resolving",147),zo(1184,555,iy,$qe),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectContainmentEList/Unsettable/Resolving",1184),zo(766,14,iy,Gwe),wo.Ni=function(){this.a=!0},wo.Qj=function(){return this.a},wo.Gk=function(){var oo;U1(this),$w(this.e)?(oo=this.a,this.a=!1,W0(this.e,new dS(this.e,2,this.c,oo,!1))):this.a=!1},wo.a=!1,Vo(Ep,"EObjectContainmentWithInverseEList/Unsettable",766),zo(1222,766,iy,zVe),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),zo(757,505,iy,swe),wo.Ni=function(){this.a=!0},wo.Qj=function(){return this.a},wo.Gk=function(){var oo;U1(this),$w(this.e)?(oo=this.a,this.a=!1,W0(this.e,new dS(this.e,2,this.c,oo,!1))):this.a=!1},wo.a=!1,Vo(Ep,"EObjectEList/Unsettable",757),zo(338,505,iy,g9),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectResolvingEList",338),zo(1844,757,iy,Aqe),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectResolvingEList/Unsettable",1844),zo(1527,1,{},Xoe);var eSt;Vo(Ep,"EObjectValidator",1527),zo(559,505,iy,ZY),wo.il=function(){return this.d},wo.jl=function(){return this.b},wo.Mj=function(){return!0},wo.ml=function(){return!0},wo.b=0,Vo(Ep,"EObjectWithInverseEList",559),zo(1225,559,iy,HVe),wo.ll=function(){return!0},Vo(Ep,"EObjectWithInverseEList/ManyInverse",1225),zo(635,559,iy,pce),wo.Ni=function(){this.a=!0},wo.Qj=function(){return this.a},wo.Gk=function(){var oo;U1(this),$w(this.e)?(oo=this.a,this.a=!1,W0(this.e,new dS(this.e,2,this.c,oo,!1))):this.a=!1},wo.a=!1,Vo(Ep,"EObjectWithInverseEList/Unsettable",635),zo(1224,635,iy,qVe),wo.ll=function(){return!0},Vo(Ep,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),zo(767,559,iy,Wwe),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectWithInverseResolvingEList",767),zo(32,767,iy,Wu),wo.ll=function(){return!0},Vo(Ep,"EObjectWithInverseResolvingEList/ManyInverse",32),zo(768,635,iy,Uwe),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectWithInverseResolvingEList/Unsettable",768),zo(1223,768,iy,VVe),wo.ll=function(){return!0},Vo(Ep,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),zo(1185,632,iy),wo.Li=function(){return(this.b&1792)==0},wo.Ni=function(){this.b|=1},wo.kl=function(){return(this.b&4)!=0},wo.Mj=function(){return(this.b&40)!=0},wo.ll=function(){return(this.b&16)!=0},wo.ml=function(){return(this.b&8)!=0},wo.nl=function(){return(this.b&cA)!=0},wo.al=function(){return(this.b&32)!=0},wo.ol=function(){return(this.b&bS)!=0},wo.fk=function(oo){return this.d?RYe(this.d,oo):this.Lk().Hk().fk(oo)},wo.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},wo.Si=function(){return(this.b&128)!=0},wo.Gk=function(){var oo;U1(this),this.b&2&&($w(this.e)?(oo=(this.b&1)!=0,this.b&=-2,kO(this,new dS(this.e,2,Ap(this.e.Dh(),this.Lk()),oo,!1))):this.b&=-2)},wo.Yi=function(){return(this.b&1536)==0},wo.b=0,Vo(Ep,"EcoreEList/Generic",1185),zo(1186,1185,iy,LUe),wo.Lk=function(){return this.a},Vo(Ep,"EcoreEList/Dynamic",1186),zo(765,66,uE,aye),wo.aj=function(oo){return XH(this.a.a,oo)},Vo(Ep,"EcoreEMap/1",765),zo(764,83,iy,Gxe),wo.Mi=function(oo,co){VQ(this.b,bo(co,136))},wo.Oi=function(oo,co){NJe(this.b)},wo.Pi=function(oo,co,fo){var po;++(po=this.b,bo(co,136),po).e},wo.Qi=function(oo,co){jfe(this.b,bo(co,136))},wo.Ri=function(oo,co,fo){jfe(this.b,bo(fo,136)),$a(fo)===$a(co)&&bo(fo,136).Ci(akt(bo(co,136).ld())),VQ(this.b,bo(co,136))},Vo(Ep,"EcoreEMap/DelegateEObjectContainmentEList",764),zo(1220,141,p$e,XZe),Vo(Ep,"EcoreEMap/Unsettable",1220),zo(1221,764,iy,GVe),wo.Ni=function(){this.a=!0},wo.Qj=function(){return this.a},wo.Gk=function(){var oo;U1(this),$w(this.e)?(oo=this.a,this.a=!1,W0(this.e,new dS(this.e,2,this.c,oo,!1))):this.a=!1},wo.a=!1,Vo(Ep,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),zo(1189,215,W9,BWe),wo.a=!1,wo.b=!1,Vo(Ep,"EcoreUtil/Copier",1189),zo(759,1,$m,xYe),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return Ntt(this)},wo.Pb=function(){var oo;return Ntt(this),oo=this.b,this.b=null,oo},wo.Qb=function(){this.a.Qb()},Vo(Ep,"EcoreUtil/ProperContentIterator",759),zo(1528,1527,{},sae);var tSt;Vo(Ep,"EcoreValidator",1528);var nSt;Ip(Ep,"FeatureMapUtil/Validator"),zo(1295,1,{2041:1},Qoe),wo.am=function(oo){return!0},Vo(Ep,"FeatureMapUtil/1",1295),zo(773,1,{2041:1},C3e),wo.am=function(oo){var co;return this.c==oo?!0:(co=au(m1(this.a,oo)),co==null?aVt(this,oo)?(xXe(this.a,oo,(_f(),ON)),!0):(xXe(this.a,oo,(_f(),M3)),!1):co==(_f(),ON))},wo.e=!1;var lbe;Vo(Ep,"FeatureMapUtil/BasicValidator",773),zo(774,45,W9,rwe),Vo(Ep,"FeatureMapUtil/BasicValidator/Cache",774),zo(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},eH),wo.bd=function(oo,co){yst(this.c,this.b,oo,co)},wo.Fc=function(oo){return Z4e(this.c,this.b,oo)},wo.cd=function(oo,co){return $Wt(this.c,this.b,oo,co)},wo.Gc=function(oo){return YD(this,oo)},wo.Gi=function(oo,co){_8t(this.c,this.b,oo,co)},wo.Wk=function(oo,co){return V4e(this.c,this.b,oo,co)},wo.$i=function(oo){return kZ(this.c,this.b,oo,!1)},wo.Ii=function(){return eqe(this.c,this.b)},wo.Ji=function(){return KEt(this.c,this.b)},wo.Ki=function(oo){return $7t(this.c,this.b,oo)},wo.Xk=function(oo,co){return EVe(this,oo,co)},wo.$b=function(){l8(this)},wo.Hc=function(oo){return kX(this.c,this.b,oo)},wo.Ic=function(oo){return CRt(this.c,this.b,oo)},wo.Xb=function(oo){return kZ(this.c,this.b,oo,!0)},wo.Fk=function(oo){return this},wo.dd=function(oo){return D9t(this.c,this.b,oo)},wo.dc=function(){return uY(this)},wo.Qj=function(){return!bq(this.c,this.b)},wo.Kc=function(){return h8t(this.c,this.b)},wo.ed=function(){return p8t(this.c,this.b)},wo.fd=function(oo){return GIt(this.c,this.b,oo)},wo.Ti=function(oo,co){return Mat(this.c,this.b,oo,co)},wo.Ui=function(oo,co){O7t(this.c,this.b,oo,co)},wo.gd=function(oo){return cit(this.c,this.b,oo)},wo.Mc=function(oo){return AVt(this.c,this.b,oo)},wo.hd=function(oo,co){return qat(this.c,this.b,oo,co)},wo.Wb=function(oo){sZ(this.c,this.b),YD(this,bo(oo,15))},wo.gc=function(){return VIt(this.c,this.b)},wo.Pc=function(){return BAt(this.c,this.b)},wo.Qc=function(oo){return L9t(this.c,this.b,oo)},wo.Ib=function(){var oo,co;for(co=new Z5,co.a+="[",oo=eqe(this.c,this.b);Rfe(oo);)Av(co,QD(zQ(oo))),Rfe(oo)&&(co.a+=av);return co.a+="]",co.a},wo.Gk=function(){sZ(this.c,this.b)},Vo(Ep,"FeatureMapUtil/FeatureEList",509),zo(644,39,$V,Tue),wo.hj=function(oo){return FL(this,oo)},wo.mj=function(oo){var co,fo,po,vo,xo,Eo,To;switch(this.d){case 1:case 2:{if(xo=oo.jj(),$a(xo)===$a(this.c)&&FL(this,null)==oo.hj(null))return this.g=oo.ij(),oo.gj()==1&&(this.d=1),!0;break}case 3:{switch(vo=oo.gj(),vo){case 3:{if(xo=oo.jj(),$a(xo)===$a(this.c)&&FL(this,null)==oo.hj(null))return this.d=5,co=new n6(2),Y1(co,this.g),Y1(co,oo.ij()),this.g=co,!0;break}}break}case 5:{switch(vo=oo.gj(),vo){case 3:{if(xo=oo.jj(),$a(xo)===$a(this.c)&&FL(this,null)==oo.hj(null))return fo=bo(this.g,16),fo.Fc(oo.ij()),!0;break}}break}case 4:{switch(vo=oo.gj(),vo){case 3:{if(xo=oo.jj(),$a(xo)===$a(this.c)&&FL(this,null)==oo.hj(null))return this.d=1,this.g=oo.ij(),!0;break}case 4:{if(xo=oo.jj(),$a(xo)===$a(this.c)&&FL(this,null)==oo.hj(null))return this.d=6,To=new n6(2),Y1(To,this.n),Y1(To,oo.kj()),this.n=To,Eo=As($s(Q1,1),E0,28,15,[this.o,oo.lj()]),this.g=Eo,!0;break}}break}case 6:{switch(vo=oo.gj(),vo){case 4:{if(xo=oo.jj(),$a(xo)===$a(this.c)&&FL(this,null)==oo.hj(null))return fo=bo(this.n,16),fo.Fc(oo.kj()),Eo=bo(this.g,53),po=Al(Q1,E0,28,Eo.length+1,15,1),jy(Eo,0,po,0,Eo.length),po[Eo.length]=oo.lj(),this.g=po,!0;break}}break}}return!1},Vo(Ep,"FeatureMapUtil/FeatureENotificationImpl",644),zo(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},PY),wo.Ol=function(oo,co){return Z4e(this.c,oo,co)},wo.Pl=function(oo,co,fo){return V4e(this.c,oo,co,fo)},wo.Ql=function(oo,co,fo){return m3e(this.c,oo,co,fo)},wo.Rl=function(){return this},wo.Sl=function(oo,co){return Kq(this.c,oo,co)},wo.Tl=function(oo){return bo(kZ(this.c,this.b,oo,!1),76).Lk()},wo.Ul=function(oo){return bo(kZ(this.c,this.b,oo,!1),76).md()},wo.Vl=function(){return this.a},wo.Wl=function(oo){return!bq(this.c,oo)},wo.Xl=function(oo,co){TZ(this.c,oo,co)},wo.Yl=function(oo){return JZe(this.c,oo)},wo.Zl=function(oo){Bnt(this.c,oo)},Vo(Ep,"FeatureMapUtil/FeatureFeatureMap",564),zo(1294,1,ape,CHe),wo.Fk=function(oo){return kZ(this.b,this.a,-1,oo)},wo.Qj=function(){return!bq(this.b,this.a)},wo.Wb=function(oo){TZ(this.b,this.a,oo)},wo.Gk=function(){sZ(this.b,this.a)},Vo(Ep,"FeatureMapUtil/FeatureValue",1294);var GR,cbe,ube,WR,rSt,UG=Ip(PJ,"AnyType");zo(680,63,$5,ele),Vo(PJ,"InvalidDatatypeValueException",680);var hne=Ip(PJ,Oht),KG=Ip(PJ,Iht),OMe=Ip(PJ,Nht),iSt,$y,IMe,sC,oSt,sSt,aSt,lSt,cSt,uSt,fSt,dSt,hSt,pSt,gSt,B7,mSt,F7,nP,vSt,Z6,YG,XG,bSt,rP,iP;zo(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},Tye),wo.Lh=function(oo,co,fo){switch(oo){case 0:return fo?(!this.c&&(this.c=new Fp(this,0)),this.c):(!this.c&&(this.c=new Fp(this,0)),this.c.b);case 1:return fo?(!this.c&&(this.c=new Fp(this,0)),bo(Wy(this.c,(rp(),sC)),160)):(!this.c&&(this.c=new Fp(this,0)),bo(bo(Wy(this.c,(rp(),sC)),160),220)).Vl();case 2:return fo?(!this.b&&(this.b=new Fp(this,2)),this.b):(!this.b&&(this.b=new Fp(this,2)),this.b.b)}return dx(this,oo-A1(this.ii()),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():this.ii(),oo),co,fo)},wo.Uh=function(oo,co,fo){var po;switch(co){case 0:return!this.c&&(this.c=new Fp(this,0)),Vq(this.c,oo,fo);case 1:return(!this.c&&(this.c=new Fp(this,0)),bo(bo(Wy(this.c,(rp(),sC)),160),71)).Xk(oo,fo);case 2:return!this.b&&(this.b=new Fp(this,2)),Vq(this.b,oo,fo)}return po=bo(Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():this.ii(),co),69),po.wk().Ak(this,R_e(this),co-A1(this.ii()),oo,fo)},wo.Wh=function(oo){switch(oo){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Fp(this,0)),bo(Wy(this.c,(rp(),sC)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return ux(this,oo-A1(this.ii()),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():this.ii(),oo))},wo.bi=function(oo,co){switch(oo){case 0:!this.c&&(this.c=new Fp(this,0)),wH(this.c,co);return;case 1:(!this.c&&(this.c=new Fp(this,0)),bo(bo(Wy(this.c,(rp(),sC)),160),220)).Wb(co);return;case 2:!this.b&&(this.b=new Fp(this,2)),wH(this.b,co);return}vx(this,oo-A1(this.ii()),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():this.ii(),oo),co)},wo.ii=function(){return rp(),IMe},wo.ki=function(oo){switch(oo){case 0:!this.c&&(this.c=new Fp(this,0)),U1(this.c);return;case 1:(!this.c&&(this.c=new Fp(this,0)),bo(Wy(this.c,(rp(),sC)),160)).$b();return;case 2:!this.b&&(this.b=new Fp(this,2)),U1(this.b);return}mx(this,oo-A1(this.ii()),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():this.ii(),oo))},wo.Ib=function(){var oo;return this.j&4?gS(this):(oo=new Bx(gS(this)),oo.a+=" (mixed: ",GD(oo,this.c),oo.a+=", anyAttribute: ",GD(oo,this.b),oo.a+=")",oo.a)},Vo(tm,"AnyTypeImpl",844),zo(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},LU),wo.Lh=function(oo,co,fo){switch(oo){case 0:return this.a;case 1:return this.b}return dx(this,oo-A1((rp(),B7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():B7,oo),co,fo)},wo.Wh=function(oo){switch(oo){case 0:return this.a!=null;case 1:return this.b!=null}return ux(this,oo-A1((rp(),B7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():B7,oo))},wo.bi=function(oo,co){switch(oo){case 0:Vbe(this,u0(co));return;case 1:Wbe(this,u0(co));return}vx(this,oo-A1((rp(),B7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():B7,oo),co)},wo.ii=function(){return rp(),B7},wo.ki=function(oo){switch(oo){case 0:this.a=null;return;case 1:this.b=null;return}mx(this,oo-A1((rp(),B7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():B7,oo))},wo.Ib=function(){var oo;return this.j&4?gS(this):(oo=new Bx(gS(this)),oo.a+=" (data: ",Av(oo,this.a),oo.a+=", target: ",Av(oo,this.b),oo.a+=")",oo.a)},wo.a=null,wo.b=null,Vo(tm,"ProcessingInstructionImpl",681),zo(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},sPe),wo.Lh=function(oo,co,fo){switch(oo){case 0:return fo?(!this.c&&(this.c=new Fp(this,0)),this.c):(!this.c&&(this.c=new Fp(this,0)),this.c.b);case 1:return fo?(!this.c&&(this.c=new Fp(this,0)),bo(Wy(this.c,(rp(),sC)),160)):(!this.c&&(this.c=new Fp(this,0)),bo(bo(Wy(this.c,(rp(),sC)),160),220)).Vl();case 2:return fo?(!this.b&&(this.b=new Fp(this,2)),this.b):(!this.b&&(this.b=new Fp(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Fp(this,0)),u0(Kq(this.c,(rp(),nP),!0));case 4:return Ywe(this.a,(!this.c&&(this.c=new Fp(this,0)),u0(Kq(this.c,(rp(),nP),!0))));case 5:return this.a}return dx(this,oo-A1((rp(),F7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():F7,oo),co,fo)},wo.Wh=function(oo){switch(oo){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Fp(this,0)),bo(Wy(this.c,(rp(),sC)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Fp(this,0)),u0(Kq(this.c,(rp(),nP),!0))!=null;case 4:return Ywe(this.a,(!this.c&&(this.c=new Fp(this,0)),u0(Kq(this.c,(rp(),nP),!0))))!=null;case 5:return!!this.a}return ux(this,oo-A1((rp(),F7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():F7,oo))},wo.bi=function(oo,co){switch(oo){case 0:!this.c&&(this.c=new Fp(this,0)),wH(this.c,co);return;case 1:(!this.c&&(this.c=new Fp(this,0)),bo(bo(Wy(this.c,(rp(),sC)),160),220)).Wb(co);return;case 2:!this.b&&(this.b=new Fp(this,2)),wH(this.b,co);return;case 3:BSe(this,u0(co));return;case 4:BSe(this,Kwe(this.a,co));return;case 5:Gbe(this,bo(co,156));return}vx(this,oo-A1((rp(),F7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():F7,oo),co)},wo.ii=function(){return rp(),F7},wo.ki=function(oo){switch(oo){case 0:!this.c&&(this.c=new Fp(this,0)),U1(this.c);return;case 1:(!this.c&&(this.c=new Fp(this,0)),bo(Wy(this.c,(rp(),sC)),160)).$b();return;case 2:!this.b&&(this.b=new Fp(this,2)),U1(this.b);return;case 3:!this.c&&(this.c=new Fp(this,0)),TZ(this.c,(rp(),nP),null);return;case 4:BSe(this,Kwe(this.a,null));return;case 5:this.a=null;return}mx(this,oo-A1((rp(),F7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():F7,oo))},Vo(tm,"SimpleAnyTypeImpl",682),zo(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},aPe),wo.Lh=function(oo,co,fo){switch(oo){case 0:return fo?(!this.a&&(this.a=new Fp(this,0)),this.a):(!this.a&&(this.a=new Fp(this,0)),this.a.b);case 1:return fo?(!this.b&&(this.b=new V2((Pu(),gv),Ey,this,1)),this.b):(!this.b&&(this.b=new V2((Pu(),gv),Ey,this,1)),FH(this.b));case 2:return fo?(!this.c&&(this.c=new V2((Pu(),gv),Ey,this,2)),this.c):(!this.c&&(this.c=new V2((Pu(),gv),Ey,this,2)),FH(this.c));case 3:return!this.a&&(this.a=new Fp(this,0)),Wy(this.a,(rp(),YG));case 4:return!this.a&&(this.a=new Fp(this,0)),Wy(this.a,(rp(),XG));case 5:return!this.a&&(this.a=new Fp(this,0)),Wy(this.a,(rp(),rP));case 6:return!this.a&&(this.a=new Fp(this,0)),Wy(this.a,(rp(),iP))}return dx(this,oo-A1((rp(),Z6)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():Z6,oo),co,fo)},wo.Uh=function(oo,co,fo){var po;switch(co){case 0:return!this.a&&(this.a=new Fp(this,0)),Vq(this.a,oo,fo);case 1:return!this.b&&(this.b=new V2((Pu(),gv),Ey,this,1)),$Y(this.b,oo,fo);case 2:return!this.c&&(this.c=new V2((Pu(),gv),Ey,this,2)),$Y(this.c,oo,fo);case 5:return!this.a&&(this.a=new Fp(this,0)),EVe(Wy(this.a,(rp(),rP)),oo,fo)}return po=bo(Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():(rp(),Z6),co),69),po.wk().Ak(this,R_e(this),co-A1((rp(),Z6)),oo,fo)},wo.Wh=function(oo){switch(oo){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Fp(this,0)),!uY(Wy(this.a,(rp(),YG)));case 4:return!this.a&&(this.a=new Fp(this,0)),!uY(Wy(this.a,(rp(),XG)));case 5:return!this.a&&(this.a=new Fp(this,0)),!uY(Wy(this.a,(rp(),rP)));case 6:return!this.a&&(this.a=new Fp(this,0)),!uY(Wy(this.a,(rp(),iP)))}return ux(this,oo-A1((rp(),Z6)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():Z6,oo))},wo.bi=function(oo,co){switch(oo){case 0:!this.a&&(this.a=new Fp(this,0)),wH(this.a,co);return;case 1:!this.b&&(this.b=new V2((Pu(),gv),Ey,this,1)),uQ(this.b,co);return;case 2:!this.c&&(this.c=new V2((Pu(),gv),Ey,this,2)),uQ(this.c,co);return;case 3:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),YG))),!this.a&&(this.a=new Fp(this,0)),YD(Wy(this.a,YG),bo(co,16));return;case 4:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),XG))),!this.a&&(this.a=new Fp(this,0)),YD(Wy(this.a,XG),bo(co,16));return;case 5:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),rP))),!this.a&&(this.a=new Fp(this,0)),YD(Wy(this.a,rP),bo(co,16));return;case 6:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),iP))),!this.a&&(this.a=new Fp(this,0)),YD(Wy(this.a,iP),bo(co,16));return}vx(this,oo-A1((rp(),Z6)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():Z6,oo),co)},wo.ii=function(){return rp(),Z6},wo.ki=function(oo){switch(oo){case 0:!this.a&&(this.a=new Fp(this,0)),U1(this.a);return;case 1:!this.b&&(this.b=new V2((Pu(),gv),Ey,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new V2((Pu(),gv),Ey,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),YG)));return;case 4:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),XG)));return;case 5:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),rP)));return;case 6:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),iP)));return}mx(this,oo-A1((rp(),Z6)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():Z6,oo))},wo.Ib=function(){var oo;return this.j&4?gS(this):(oo=new Bx(gS(this)),oo.a+=" (mixed: ",GD(oo,this.a),oo.a+=")",oo.a)},Vo(tm,"XMLTypeDocumentRootImpl",683),zo(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},Zoe),wo.ri=function(oo,co){switch(oo.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return co==null?null:ry(co);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return u0(co);case 6:return w5t(bo(co,195));case 12:case 47:case 49:case 11:return Rlt(this,oo,co);case 13:return co==null?null:OWt(bo(co,247));case 15:case 14:return co==null?null:LCt(na(Tl(co)));case 17:return Ert((rp(),co));case 18:return Ert(co);case 21:case 20:return co==null?null:BCt(bo(co,161).a);case 27:return x5t(bo(co,195));case 30:return Fnt((rp(),bo(co,15)));case 31:return Fnt(bo(co,15));case 40:return _5t((rp(),co));case 42:return krt((rp(),co));case 43:return krt(co);case 59:case 48:return S5t((rp(),co));default:throw Cs(new i1(kN+oo.xe()+$6))}},wo.si=function(oo){var co,fo,po,vo,xo;switch(oo.G==-1&&(oo.G=(fo=zw(oo),fo?x4(fo.vi(),oo):-1)),oo.G){case 0:return co=new Tye,co;case 1:return po=new LU,po;case 2:return vo=new sPe,vo;case 3:return xo=new aPe,xo;default:throw Cs(new i1(G0e+oo.zb+$6))}},wo.ti=function(oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo,Zo,ws,Ss,Rs,Ls;switch(oo.hk()){case 5:case 52:case 4:return co;case 6:return RMt(co);case 8:case 7:return co==null?null:mBt(co);case 9:return co==null?null:WH(Ww((po=Ky(co,!0),po.length>0&&(o1(0,po.length),po.charCodeAt(0)==43)?(o1(1,po.length+1),po.substr(1)):po),-128,127)<<24>>24);case 10:return co==null?null:WH(Ww((vo=Ky(co,!0),vo.length>0&&(o1(0,vo.length),vo.charCodeAt(0)==43)?(o1(1,vo.length+1),vo.substr(1)):vo),-128,127)<<24>>24);case 11:return u0(w6(this,(rp(),aSt),co));case 12:return u0(w6(this,(rp(),lSt),co));case 13:return co==null?null:new Xye(Ky(co,!0));case 15:case 14:return Pzt(co);case 16:return u0(w6(this,(rp(),cSt),co));case 17:return Ftt((rp(),co));case 18:return Ftt(co);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Ky(co,!0);case 21:case 20:return Yzt(co);case 22:return u0(w6(this,(rp(),uSt),co));case 23:return u0(w6(this,(rp(),fSt),co));case 24:return u0(w6(this,(rp(),dSt),co));case 25:return u0(w6(this,(rp(),hSt),co));case 26:return u0(w6(this,(rp(),pSt),co));case 27:return bMt(co);case 30:return Ptt((rp(),co));case 31:return Ptt(co);case 32:return co==null?null:Ql(Ww((Fo=Ky(co,!0),Fo.length>0&&(o1(0,Fo.length),Fo.charCodeAt(0)==43)?(o1(1,Fo.length+1),Fo.substr(1)):Fo),Ym,q0));case 33:return co==null?null:new s3((Wo=Ky(co,!0),Wo.length>0&&(o1(0,Wo.length),Wo.charCodeAt(0)==43)?(o1(1,Wo.length+1),Wo.substr(1)):Wo));case 34:return co==null?null:Ql(Ww((Xo=Ky(co,!0),Xo.length>0&&(o1(0,Xo.length),Xo.charCodeAt(0)==43)?(o1(1,Xo.length+1),Xo.substr(1)):Xo),Ym,q0));case 36:return co==null?null:E5(RZ((Zo=Ky(co,!0),Zo.length>0&&(o1(0,Zo.length),Zo.charCodeAt(0)==43)?(o1(1,Zo.length+1),Zo.substr(1)):Zo)));case 37:return co==null?null:E5(RZ((ws=Ky(co,!0),ws.length>0&&(o1(0,ws.length),ws.charCodeAt(0)==43)?(o1(1,ws.length+1),ws.substr(1)):ws)));case 40:return gDt((rp(),co));case 42:return jtt((rp(),co));case 43:return jtt(co);case 44:return co==null?null:new s3((Ss=Ky(co,!0),Ss.length>0&&(o1(0,Ss.length),Ss.charCodeAt(0)==43)?(o1(1,Ss.length+1),Ss.substr(1)):Ss));case 45:return co==null?null:new s3((Rs=Ky(co,!0),Rs.length>0&&(o1(0,Rs.length),Rs.charCodeAt(0)==43)?(o1(1,Rs.length+1),Rs.substr(1)):Rs));case 46:return Ky(co,!1);case 47:return u0(w6(this,(rp(),gSt),co));case 59:case 48:return pDt((rp(),co));case 49:return u0(w6(this,(rp(),mSt),co));case 50:return co==null?null:OI(Ww((Ls=Ky(co,!0),Ls.length>0&&(o1(0,Ls.length),Ls.charCodeAt(0)==43)?(o1(1,Ls.length+1),Ls.substr(1)):Ls),DJ,32767)<<16>>16);case 51:return co==null?null:OI(Ww((xo=Ky(co,!0),xo.length>0&&(o1(0,xo.length),xo.charCodeAt(0)==43)?(o1(1,xo.length+1),xo.substr(1)):xo),DJ,32767)<<16>>16);case 53:return u0(w6(this,(rp(),vSt),co));case 55:return co==null?null:OI(Ww((Eo=Ky(co,!0),Eo.length>0&&(o1(0,Eo.length),Eo.charCodeAt(0)==43)?(o1(1,Eo.length+1),Eo.substr(1)):Eo),DJ,32767)<<16>>16);case 56:return co==null?null:OI(Ww((To=Ky(co,!0),To.length>0&&(o1(0,To.length),To.charCodeAt(0)==43)?(o1(1,To.length+1),To.substr(1)):To),DJ,32767)<<16>>16);case 57:return co==null?null:E5(RZ((Ao=Ky(co,!0),Ao.length>0&&(o1(0,Ao.length),Ao.charCodeAt(0)==43)?(o1(1,Ao.length+1),Ao.substr(1)):Ao)));case 58:return co==null?null:E5(RZ((Io=Ky(co,!0),Io.length>0&&(o1(0,Io.length),Io.charCodeAt(0)==43)?(o1(1,Io.length+1),Io.substr(1)):Io)));case 60:return co==null?null:Ql(Ww((fo=Ky(co,!0),fo.length>0&&(o1(0,fo.length),fo.charCodeAt(0)==43)?(o1(1,fo.length+1),fo.substr(1)):fo),Ym,q0));case 61:return co==null?null:Ql(Ww(Ky(co,!0),Ym,q0));default:throw Cs(new i1(kN+oo.xe()+$6))}};var ySt,NMe,wSt,MMe;Vo(tm,"XMLTypeFactoryImpl",2028),zo(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},oUe),wo.N=!1,wo.O=!1;var xSt=!1;Vo(tm,"XMLTypePackageImpl",594),zo(1961,1,{851:1},Joe),wo.Kk=function(){return a3e(),RSt},Vo(tm,"XMLTypePackageImpl/1",1961),zo(1970,1,I0,ese),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/10",1970),zo(1971,1,I0,tD),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/11",1971),zo(1972,1,I0,tse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/12",1972),zo(1973,1,I0,IU),wo.fk=function(oo){return b$(oo)},wo.gk=function(oo){return Al(nm,Yl,345,oo,7,1)},Vo(tm,"XMLTypePackageImpl/13",1973),zo(1974,1,I0,NU),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/14",1974),zo(1975,1,I0,dz),wo.fk=function(oo){return Hs(oo,15)},wo.gk=function(oo){return Al(kx,rA,15,oo,0,1)},Vo(tm,"XMLTypePackageImpl/15",1975),zo(1976,1,I0,MU),wo.fk=function(oo){return Hs(oo,15)},wo.gk=function(oo){return Al(kx,rA,15,oo,0,1)},Vo(tm,"XMLTypePackageImpl/16",1976),zo(1977,1,I0,DU),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/17",1977),zo(1978,1,I0,BU),wo.fk=function(oo){return Hs(oo,161)},wo.gk=function(oo){return Al(IN,Yl,161,oo,0,1)},Vo(tm,"XMLTypePackageImpl/18",1978),zo(1979,1,I0,nse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/19",1979),zo(1962,1,I0,rse),wo.fk=function(oo){return Hs(oo,857)},wo.gk=function(oo){return Al(UG,Xu,857,oo,0,1)},Vo(tm,"XMLTypePackageImpl/2",1962),zo(1980,1,I0,ise),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/20",1980),zo(1981,1,I0,nD),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/21",1981),zo(1982,1,I0,rD),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/22",1982),zo(1983,1,I0,ose),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/23",1983),zo(1984,1,I0,sse),wo.fk=function(oo){return Hs(oo,195)},wo.gk=function(oo){return Al(Q2,Yl,195,oo,0,2)},Vo(tm,"XMLTypePackageImpl/24",1984),zo(1985,1,I0,hz),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/25",1985),zo(1986,1,I0,FU),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/26",1986),zo(1987,1,I0,ase),wo.fk=function(oo){return Hs(oo,15)},wo.gk=function(oo){return Al(kx,rA,15,oo,0,1)},Vo(tm,"XMLTypePackageImpl/27",1987),zo(1988,1,I0,lse),wo.fk=function(oo){return Hs(oo,15)},wo.gk=function(oo){return Al(kx,rA,15,oo,0,1)},Vo(tm,"XMLTypePackageImpl/28",1988),zo(1989,1,I0,cse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/29",1989),zo(1963,1,I0,use),wo.fk=function(oo){return Hs(oo,681)},wo.gk=function(oo){return Al(hne,Xu,2119,oo,0,1)},Vo(tm,"XMLTypePackageImpl/3",1963),zo(1990,1,I0,fse),wo.fk=function(oo){return Hs(oo,17)},wo.gk=function(oo){return Al(Vm,Yl,17,oo,0,1)},Vo(tm,"XMLTypePackageImpl/30",1990),zo(1991,1,I0,dse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/31",1991),zo(1992,1,I0,hse),wo.fk=function(oo){return Hs(oo,168)},wo.gk=function(oo){return Al(R6,Yl,168,oo,0,1)},Vo(tm,"XMLTypePackageImpl/32",1992),zo(1993,1,I0,pse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/33",1993),zo(1994,1,I0,gse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/34",1994),zo(1995,1,I0,mse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/35",1995),zo(1996,1,I0,vse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/36",1996),zo(1997,1,I0,bse),wo.fk=function(oo){return Hs(oo,15)},wo.gk=function(oo){return Al(kx,rA,15,oo,0,1)},Vo(tm,"XMLTypePackageImpl/37",1997),zo(1998,1,I0,Q4),wo.fk=function(oo){return Hs(oo,15)},wo.gk=function(oo){return Al(kx,rA,15,oo,0,1)},Vo(tm,"XMLTypePackageImpl/38",1998),zo(1999,1,I0,yse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/39",1999),zo(1964,1,I0,wse),wo.fk=function(oo){return Hs(oo,682)},wo.gk=function(oo){return Al(KG,Xu,2120,oo,0,1)},Vo(tm,"XMLTypePackageImpl/4",1964),zo(2e3,1,I0,JA),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/40",2e3),zo(2001,1,I0,Zm),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/41",2001),zo(2002,1,I0,xse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/42",2002),zo(2003,1,I0,xE),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/43",2003),zo(2004,1,I0,Lw),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/44",2004),zo(2005,1,I0,Sse),wo.fk=function(oo){return Hs(oo,191)},wo.gk=function(oo){return Al(O6,Yl,191,oo,0,1)},Vo(tm,"XMLTypePackageImpl/45",2005),zo(2006,1,I0,f$),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/46",2006),zo(2007,1,I0,_se),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/47",2007),zo(2008,1,I0,Ese),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/48",2008),zo(2009,1,I0,kse),wo.fk=function(oo){return Hs(oo,191)},wo.gk=function(oo){return Al(O6,Yl,191,oo,0,1)},Vo(tm,"XMLTypePackageImpl/49",2009),zo(1965,1,I0,Tse),wo.fk=function(oo){return Hs(oo,683)},wo.gk=function(oo){return Al(OMe,Xu,2121,oo,0,1)},Vo(tm,"XMLTypePackageImpl/5",1965),zo(2010,1,I0,Cse),wo.fk=function(oo){return Hs(oo,168)},wo.gk=function(oo){return Al(R6,Yl,168,oo,0,1)},Vo(tm,"XMLTypePackageImpl/50",2010),zo(2011,1,I0,pz),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/51",2011),zo(2012,1,I0,$se),wo.fk=function(oo){return Hs(oo,17)},wo.gk=function(oo){return Al(Vm,Yl,17,oo,0,1)},Vo(tm,"XMLTypePackageImpl/52",2012),zo(1966,1,I0,xC),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/6",1966),zo(1967,1,I0,PU),wo.fk=function(oo){return Hs(oo,195)},wo.gk=function(oo){return Al(Q2,Yl,195,oo,0,2)},Vo(tm,"XMLTypePackageImpl/7",1967),zo(1968,1,I0,iD),wo.fk=function(oo){return v$(oo)},wo.gk=function(oo){return Al(qp,Yl,485,oo,8,1)},Vo(tm,"XMLTypePackageImpl/8",1968),zo(1969,1,I0,pw),wo.fk=function(oo){return Hs(oo,222)},wo.gk=function(oo){return Al(wR,Yl,222,oo,0,1)},Vo(tm,"XMLTypePackageImpl/9",1969);var M_,q4,oP,pne,Ns;zo(55,63,$5,p0),Vo(A4,"RegEx/ParseException",55),zo(836,1,{},gw),wo.bm=function(oo){return oofo*16)throw Cs(new p0(m0((c0(),Vdt))));fo=fo*16+vo}while(!0);if(this.a!=125)throw Cs(new p0(m0((c0(),Gdt))));if(fo>AN)throw Cs(new p0(m0((c0(),Wdt))));oo=fo}else{if(vo=0,this.c!=0||(vo=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(fo=vo,z0(this),this.c!=0||(vo=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));fo=fo*16+vo,oo=fo}break;case 117:if(po=0,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));co=co*16+po,oo=co;break;case 118:if(z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,co>AN)throw Cs(new p0(m0((c0(),"parser.descappe.4"))));oo=co;break;case 65:case 90:case 122:throw Cs(new p0(m0((c0(),Udt))))}return oo},wo.dm=function(oo){var co,fo;switch(oo){case 100:fo=(this.e&32)==32?T3("Nd",!0):(H0(),gne);break;case 68:fo=(this.e&32)==32?T3("Nd",!1):(H0(),jMe);break;case 119:fo=(this.e&32)==32?T3("IsWord",!0):(H0(),mM);break;case 87:fo=(this.e&32)==32?T3("IsWord",!1):(H0(),HMe);break;case 115:fo=(this.e&32)==32?T3("IsSpace",!0):(H0(),UR);break;case 83:fo=(this.e&32)==32?T3("IsSpace",!1):(H0(),zMe);break;default:throw Cs(new ly((co=oo,Uht+co.toString(16))))}return fo},wo.em=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Fo,Wo,Xo;for(this.b=1,z0(this),co=null,this.c==0&&this.a==94?(z0(this),oo?Fo=(H0(),H0(),new jw(5)):(co=(H0(),H0(),new jw(4)),Uy(co,0,AN),Fo=new jw(4))):Fo=(H0(),H0(),new jw(4)),vo=!0;(Xo=this.c)!=1&&!(Xo==0&&this.a==93&&!vo);){if(vo=!1,fo=this.a,po=!1,Xo==10)switch(fo){case 100:case 68:case 119:case 87:case 115:case 83:J$(Fo,this.dm(fo)),po=!0;break;case 105:case 73:case 99:case 67:fo=this.um(Fo,fo),fo<0&&(po=!0);break;case 112:case 80:if(Wo=o4e(this,fo),!Wo)throw Cs(new p0(m0((c0(),ipe))));J$(Fo,Wo),po=!0;break;default:fo=this.cm()}else if(Xo==20){if(Eo=FO(this.i,58,this.d),Eo<0)throw Cs(new p0(m0((c0(),l$e))));if(To=!0,Um(this.i,this.d)==94&&(++this.d,To=!1),xo=lx(this.i,this.d,Eo),Ao=uQe(xo,To,(this.e&512)==512),!Ao)throw Cs(new p0(m0((c0(),Pdt))));if(J$(Fo,Ao),po=!0,Eo+1>=this.j||Um(this.i,Eo+1)!=93)throw Cs(new p0(m0((c0(),l$e))));this.d=Eo+2}if(z0(this),!po)if(this.c!=0||this.a!=45)Uy(Fo,fo,fo);else{if(z0(this),(Xo=this.c)==1)throw Cs(new p0(m0((c0(),$J))));Xo==0&&this.a==93?(Uy(Fo,fo,fo),Uy(Fo,45,45)):(Io=this.a,Xo==10&&(Io=this.cm()),z0(this),Uy(Fo,fo,Io))}(this.e&bS)==bS&&this.c==0&&this.a==44&&z0(this)}if(this.c==1)throw Cs(new p0(m0((c0(),$J))));return co&&(mB(co,Fo),Fo=co),B9(Fo),pB(Fo),this.b=0,z0(this),Fo},wo.fm=function(){var oo,co,fo,po;for(fo=this.em(!1);(po=this.c)!=7;)if(oo=this.a,po==0&&(oo==45||oo==38)||po==4){if(z0(this),this.c!=9)throw Cs(new p0(m0((c0(),zdt))));if(co=this.em(!1),po==4)J$(fo,co);else if(oo==45)mB(fo,co);else if(oo==38)Tlt(fo,co);else throw Cs(new ly("ASSERT"))}else throw Cs(new p0(m0((c0(),Hdt))));return z0(this),fo},wo.gm=function(){var oo,co;return oo=this.a-48,co=(H0(),H0(),new uue(12,null,oo)),!this.g&&(this.g=new SK),xK(this.g,new lye(oo)),z0(this),co},wo.hm=function(){return z0(this),H0(),ESt},wo.im=function(){return z0(this),H0(),_St},wo.jm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.km=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.lm=function(){return z0(this),NOt()},wo.mm=function(){return z0(this),H0(),TSt},wo.nm=function(){return z0(this),H0(),$St},wo.om=function(){var oo;if(this.d>=this.j||((oo=Um(this.i,this.d++))&65504)!=64)throw Cs(new p0(m0((c0(),Ldt))));return z0(this),H0(),H0(),new CE(0,oo-64)},wo.pm=function(){return z0(this),LGt()},wo.qm=function(){return z0(this),H0(),ASt},wo.rm=function(){var oo;return oo=(H0(),H0(),new CE(0,105)),z0(this),oo},wo.sm=function(){return z0(this),H0(),CSt},wo.tm=function(){return z0(this),H0(),kSt},wo.um=function(oo,co){return this.cm()},wo.vm=function(){return z0(this),H0(),FMe},wo.wm=function(){var oo,co,fo,po,vo;if(this.d+1>=this.j)throw Cs(new p0(m0((c0(),Ndt))));if(po=-1,co=null,oo=Um(this.i,this.d),49<=oo&&oo<=57){if(po=oo-48,!this.g&&(this.g=new SK),xK(this.g,new lye(po)),++this.d,Um(this.i,this.d)!=41)throw Cs(new p0(m0((c0(),zT))));++this.d}else switch(oo==63&&--this.d,z0(this),co=I3e(this),co.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw Cs(new p0(m0((c0(),zT))));break;default:throw Cs(new p0(m0((c0(),Mdt))))}if(z0(this),vo=d6(this),fo=null,vo.e==2){if(vo.Pm()!=2)throw Cs(new p0(m0((c0(),Ddt))));fo=vo.Lm(1),vo=vo.Lm(0)}if(this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),H0(),H0(),new GQe(po,co,vo,fo)},wo.xm=function(){return z0(this),H0(),PMe},wo.ym=function(){var oo;if(z0(this),oo=JY(24,d6(this)),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.zm=function(){var oo;if(z0(this),oo=JY(20,d6(this)),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.Am=function(){var oo;if(z0(this),oo=JY(22,d6(this)),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.Bm=function(){var oo,co,fo,po,vo;for(oo=0,fo=0,co=-1;this.d=this.j)throw Cs(new p0(m0((c0(),s$e))));if(co==45){for(++this.d;this.d=this.j)throw Cs(new p0(m0((c0(),s$e))))}if(co==58){if(++this.d,z0(this),po=jWe(d6(this),oo,fo),this.c!=7)throw Cs(new p0(m0((c0(),zT))));z0(this)}else if(co==41)++this.d,z0(this),po=jWe(d6(this),oo,fo);else throw Cs(new p0(m0((c0(),Idt))));return po},wo.Cm=function(){var oo;if(z0(this),oo=JY(21,d6(this)),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.Dm=function(){var oo;if(z0(this),oo=JY(23,d6(this)),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.Em=function(){var oo,co;if(z0(this),oo=this.f++,co=Fce(d6(this),oo),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),co},wo.Fm=function(){var oo;if(z0(this),oo=Fce(d6(this),0),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.Gm=function(oo){return z0(this),this.c==5?(z0(this),VY(oo,(H0(),H0(),new R$(9,oo)))):VY(oo,(H0(),H0(),new R$(3,oo)))},wo.Hm=function(oo){var co;return z0(this),co=(H0(),H0(),new KD(2)),this.c==5?(z0(this),OT(co,aP),OT(co,oo)):(OT(co,oo),OT(co,aP)),co},wo.Im=function(oo){return z0(this),this.c==5?(z0(this),H0(),H0(),new R$(9,oo)):(H0(),H0(),new R$(3,oo))},wo.a=0,wo.b=0,wo.c=0,wo.d=0,wo.e=0,wo.f=1,wo.g=null,wo.j=0,Vo(A4,"RegEx/RegexParser",836),zo(1947,836,{},lPe),wo.bm=function(oo){return!1},wo.cm=function(){return j4e(this)},wo.dm=function(oo){return eN(oo)},wo.em=function(oo){return xct(this)},wo.fm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.gm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.hm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.im=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.jm=function(){return z0(this),eN(67)},wo.km=function(){return z0(this),eN(73)},wo.lm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.mm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.nm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.om=function(){return z0(this),eN(99)},wo.pm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.qm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.rm=function(){return z0(this),eN(105)},wo.sm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.tm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.um=function(oo,co){return J$(oo,eN(co)),-1},wo.vm=function(){return z0(this),H0(),H0(),new CE(0,94)},wo.wm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.xm=function(){return z0(this),H0(),H0(),new CE(0,36)},wo.ym=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.zm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.Am=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.Bm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.Cm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.Dm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.Em=function(){var oo;if(z0(this),oo=Fce(d6(this),0),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.Fm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.Gm=function(oo){return z0(this),VY(oo,(H0(),H0(),new R$(3,oo)))},wo.Hm=function(oo){var co;return z0(this),co=(H0(),H0(),new KD(2)),OT(co,oo),OT(co,aP),co},wo.Im=function(oo){return z0(this),H0(),H0(),new R$(3,oo)};var P7=null,pM=null;Vo(A4,"RegEx/ParserForXMLSchema",1947),zo(122,1,RN,_C),wo.Jm=function(oo){throw Cs(new ly("Not supported."))},wo.Km=function(){return-1},wo.Lm=function(oo){return null},wo.Mm=function(){return null},wo.Nm=function(oo){},wo.Om=function(oo){},wo.Pm=function(){return 0},wo.Ib=function(){return this.Qm(0)},wo.Qm=function(oo){return this.e==11?".":""},wo.e=0;var DMe,gM,sP,SSt,LMe,zA=null,gne,fbe=null,BMe,aP,dbe=null,FMe,PMe,jMe,zMe,HMe,_St,UR,ESt,kSt,TSt,CSt,mM,$St,ASt,WXt=Vo(A4,"RegEx/Token",122);zo(138,122,{3:1,138:1,122:1},jw),wo.Qm=function(oo){var co,fo,po;if(this.e==4)if(this==BMe)fo=".";else if(this==gne)fo="\\d";else if(this==mM)fo="\\w";else if(this==UR)fo="\\s";else{for(po=new Z5,po.a+="[",co=0;co0&&(po.a+=","),this.b[co]===this.b[co+1]?Av(po,Uq(this.b[co])):(Av(po,Uq(this.b[co])),po.a+="-",Av(po,Uq(this.b[co+1])));po.a+="]",fo=po.a}else if(this==jMe)fo="\\D";else if(this==HMe)fo="\\W";else if(this==zMe)fo="\\S";else{for(po=new Z5,po.a+="[^",co=0;co0&&(po.a+=","),this.b[co]===this.b[co+1]?Av(po,Uq(this.b[co])):(Av(po,Uq(this.b[co])),po.a+="-",Av(po,Uq(this.b[co+1])));po.a+="]",fo=po.a}return fo},wo.a=!1,wo.c=!1,Vo(A4,"RegEx/RangeToken",138),zo(592,1,{592:1},lye),wo.a=0,Vo(A4,"RegEx/RegexParser/ReferencePosition",592),zo(591,1,{3:1,591:1},_je),wo.Fb=function(oo){var co;return oo==null||!Hs(oo,591)?!1:(co=bo(oo,591),Iu(this.b,co.b)&&this.a==co.a)},wo.Hb=function(){return h4(this.b+"/"+N4e(this.a))},wo.Ib=function(){return this.c.Qm(this.a)},wo.a=0,Vo(A4,"RegEx/RegularExpression",591),zo(228,122,RN,CE),wo.Km=function(){return this.a},wo.Qm=function(oo){var co,fo,po;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:po="\\"+hce(this.a&em);break;case 12:po="\\f";break;case 10:po="\\n";break;case 13:po="\\r";break;case 9:po="\\t";break;case 27:po="\\e";break;default:this.a>=hv?(fo=(co=this.a>>>0,"0"+co.toString(16)),po="\\v"+lx(fo,fo.length-6,fo.length)):po=""+hce(this.a&em)}break;case 8:this==FMe||this==PMe?po=""+hce(this.a&em):po="\\"+hce(this.a&em);break;default:po=null}return po},wo.a=0,Vo(A4,"RegEx/Token/CharToken",228),zo(318,122,RN,R$),wo.Lm=function(oo){return this.a},wo.Nm=function(oo){this.b=oo},wo.Om=function(oo){this.c=oo},wo.Pm=function(){return 1},wo.Qm=function(oo){var co;if(this.e==3)if(this.c<0&&this.b<0)co=this.a.Qm(oo)+"*";else if(this.c==this.b)co=this.a.Qm(oo)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)co=this.a.Qm(oo)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)co=this.a.Qm(oo)+"{"+this.c+",}";else throw Cs(new ly("Token#toString(): CLOSURE "+this.c+av+this.b));else if(this.c<0&&this.b<0)co=this.a.Qm(oo)+"*?";else if(this.c==this.b)co=this.a.Qm(oo)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)co=this.a.Qm(oo)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)co=this.a.Qm(oo)+"{"+this.c+",}?";else throw Cs(new ly("Token#toString(): NONGREEDYCLOSURE "+this.c+av+this.b));return co},wo.b=0,wo.c=0,Vo(A4,"RegEx/Token/ClosureToken",318),zo(837,122,RN,Qxe),wo.Lm=function(oo){return oo==0?this.a:this.b},wo.Pm=function(){return 2},wo.Qm=function(oo){var co;return this.b.e==3&&this.b.Lm(0)==this.a?co=this.a.Qm(oo)+"+":this.b.e==9&&this.b.Lm(0)==this.a?co=this.a.Qm(oo)+"+?":co=this.a.Qm(oo)+(""+this.b.Qm(oo)),co},Vo(A4,"RegEx/Token/ConcatToken",837),zo(1945,122,RN,GQe),wo.Lm=function(oo){if(oo==0)return this.d;if(oo==1)return this.b;throw Cs(new ly("Internal Error: "+oo))},wo.Pm=function(){return this.b?2:1},wo.Qm=function(oo){var co;return this.c>0?co="(?("+this.c+")":this.a.e==8?co="(?("+this.a+")":co="(?"+this.a,this.b?co+=this.d+"|"+this.b+")":co+=this.d+")",co},wo.c=0,Vo(A4,"RegEx/Token/ConditionToken",1945),zo(1946,122,RN,DKe),wo.Lm=function(oo){return this.b},wo.Pm=function(){return 1},wo.Qm=function(oo){return"(?"+(this.a==0?"":N4e(this.a))+(this.c==0?"":N4e(this.c))+":"+this.b.Qm(oo)+")"},wo.a=0,wo.c=0,Vo(A4,"RegEx/Token/ModifierToken",1946),zo(838,122,RN,aSe),wo.Lm=function(oo){return this.a},wo.Pm=function(){return 1},wo.Qm=function(oo){var co;switch(co=null,this.e){case 6:this.b==0?co="(?:"+this.a.Qm(oo)+")":co="("+this.a.Qm(oo)+")";break;case 20:co="(?="+this.a.Qm(oo)+")";break;case 21:co="(?!"+this.a.Qm(oo)+")";break;case 22:co="(?<="+this.a.Qm(oo)+")";break;case 23:co="(?"+this.a.Qm(oo)+")"}return co},wo.b=0,Vo(A4,"RegEx/Token/ParenToken",838),zo(530,122,{3:1,122:1,530:1},uue),wo.Mm=function(){return this.b},wo.Qm=function(oo){return this.e==12?"\\"+this.a:$zt(this.b)},wo.a=0,Vo(A4,"RegEx/Token/StringToken",530),zo(477,122,RN,KD),wo.Jm=function(oo){OT(this,oo)},wo.Lm=function(oo){return bo(KC(this.a,oo),122)},wo.Pm=function(){return this.a?this.a.a.c.length:0},wo.Qm=function(oo){var co,fo,po,vo,xo;if(this.e==1){if(this.a.a.c.length==2)co=bo(KC(this.a,0),122),fo=bo(KC(this.a,1),122),fo.e==3&&fo.Lm(0)==co?vo=co.Qm(oo)+"+":fo.e==9&&fo.Lm(0)==co?vo=co.Qm(oo)+"+?":vo=co.Qm(oo)+(""+fo.Qm(oo));else{for(xo=new Z5,po=0;po=this.c.b:this.a<=this.c.b},wo.Sb=function(){return this.b>0},wo.Tb=function(){return this.b},wo.Vb=function(){return this.b-1},wo.Qb=function(){throw Cs(new X5(e1t))},wo.a=0,wo.b=0,Vo($$e,"ExclusiveRange/RangeIterator",258);var Rx=XO(AJ,"C"),Q1=XO(qB,"I"),kw=XO(sR,"Z"),tT=XO(VB,"J"),Q2=XO(jB,"B"),Am=XO(zB,"D"),HA=XO(HB,"F"),j7=XO(GB,"S"),UXt=Ip("org.eclipse.elk.core.labels","ILabelManager"),qMe=Ip(lv,"DiagnosticChain"),VMe=Ip($ht,"ResourceSet"),GMe=Vo(lv,"InvocationTargetException",null),OSt=(TK(),a7t),ISt=ISt=ZLt;eRt(YSt),X8t("permProps",[[["locale","default"],[t1t,"gecko1_8"]],[["locale","default"],[t1t,"safari"]]]),ISt(null,"elk",null)}).call(this)}).call(this,typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(no,io,so){function ao(mo,yo){if(!(mo instanceof yo))throw new TypeError("Cannot call a class as a function")}function lo(mo,yo){if(!mo)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return yo&&(typeof yo=="object"||typeof yo=="function")?yo:mo}function uo(mo,yo){if(typeof yo!="function"&&yo!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof yo);mo.prototype=Object.create(yo&&yo.prototype,{constructor:{value:mo,enumerable:!1,writable:!0,configurable:!0}}),yo&&(Object.setPrototypeOf?Object.setPrototypeOf(mo,yo):mo.__proto__=yo)}var ho=no("./elk-api.js").default,go=function(mo){uo(yo,mo);function yo(){var So=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ao(this,yo);var _o=Object.assign({},So),ko=!1;try{no.resolve("web-worker"),ko=!0}catch{}if(So.workerUrl)if(ko){var Co=no("web-worker");_o.workerFactory=function(Oo){return new Co(Oo)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +`),Fw(this);try{for(fo=0,xo=0,vo=0,Eo=0;fo0&&(xo%2==0?vo=G$(po[fo]):Eo=G$(po[fo]),xo>0&&xo%2!=0&&y0(this,new Vl(vo,Eo)),++xo),++fo}catch(To){throw To=$p(To),Hs(To,130)?(co=To,Cs(new i1("The given string does not match the expected format for vectors."+co))):Cs(To)}},wo.Ib=function(){var oo,co,fo;for(oo=new Bw("("),co=G1(this,0);co.b!=co.d.c;)fo=bo(q1(co),8),S0(oo,fo.a+","+fo.b),co.b!=co.d.c&&(oo.a+="; ");return(oo.a+=")",oo).a};var NIe=Vo(yV,"KVectorChain",75);zo(255,22,{3:1,34:1,22:1,255:1},PD);var Ave,Fte,Pte,SG,_G,jte,MIe=V1(_w,"Alignment",255,X1,j7t,W3t),Swt;zo(991,1,Vx,SE),wo.hf=function(oo){Sat(oo)};var DIe,Rve,_wt,LIe,BIe,Ewt,FIe,kwt,Twt,PIe,jIe,Cwt;Vo(_w,"BoxLayouterOptions",991),zo(992,1,{},UM),wo.sf=function(){var oo;return oo=new QA,oo},wo.tf=function(oo){},Vo(_w,"BoxLayouterOptions/BoxFactory",992),zo(298,22,{3:1,34:1,22:1,298:1},jD);var BF,Ove,FF,PF,jF,Ive,Nve=V1(_w,"ContentAlignment",298,X1,z7t,U3t),$wt;zo(699,1,Vx,UU),wo.hf=function(oo){_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,Bft),""),"Layout Algorithm"),"Select a specific layout algorithm."),(_4(),C7)),uu),Tu((YS(),Ku))))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,Fft),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),$_),HXt),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,$Ce),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),zIe),Cp),MIe),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,pR),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,z6e),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),$_),NIe),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,cJ),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),qIe),FR),Nve),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,_V),""),"Debug Mode"),"Whether additional debug information shall be generated."),(_f(),!1)),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,v0e),""),lTe),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),VIe),Cp),HF),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,SV),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),UIe),Cp),Uve),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,P6e),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,lJ),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),XIe),Cp),LNe),mp(Ku,As($s(WE,1),Pl,170,0,[pm]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,_6),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),oNe),$_),s9e),mp(Ku,As($s(WE,1),Pl,170,0,[pm]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,kB),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,fJ),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,TB),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,B1e),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),uNe),Cp),PNe),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,uJ),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),$_),_m),mp(pm,As($s(WE,1),Pl,170,0,[eC,D4]))))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,hV),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),sy),Vm),mp(pm,As($s(WE,1),Pl,170,0,[gE]))))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,VZ),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,EB),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,PCe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),QIe),$_),NIe),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,HCe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),ym),qp),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,qCe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),ym),qp),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,gXt),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),$_),UXt),mp(Ku,As($s(WE,1),Pl,170,0,[D4]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,GCe),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),ZIe),$_),o9e),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,TCe),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),ym),qp),mp(pm,As($s(WE,1),Pl,170,0,[gE,eC,D4]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Pft),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Qm),nm),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,jft),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,zft),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,pV),""),Ift),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),ym),qp),Tu(Ku)))),Jp(oo,pV,E6,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Hft),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,qft),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Ql(100)),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Vft),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Gft),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Ql(4e3)),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Wft),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Ql(400)),sy),Vm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Uft),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Kft),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Yft),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Xft),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,j6e),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),HIe),Cp),YNe),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,gCe),__),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,mCe),__),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,R1e),__),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,vCe),__),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,L1e),__),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,m0e),__),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,bCe),__),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,xCe),__),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,yCe),__),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,wCe),__),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,iA),__),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,SCe),__),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Qm),nm),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,_Ce),__),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Qm),nm),mp(Ku,As($s(WE,1),Pl,170,0,[pm]))))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,ECe),__),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),$_),gxt),mp(pm,As($s(WE,1),Pl,170,0,[gE,eC,D4]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,WCe),__),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),xNe),$_),o9e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,y0e),Jft),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),sy),Vm),mp(Ku,As($s(WE,1),Pl,170,0,[pm]))))),Jp(oo,y0e,b0e,Bwt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,b0e),Jft),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),sNe),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,OCe),edt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),eNe),$_),s9e),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,vN),edt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),tNe),FR),Tv),mp(pm,As($s(WE,1),Pl,170,0,[D4]))))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,MCe),xJ),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),lNe),Cp),WF),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,DCe),xJ),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Cp),WF),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,LCe),xJ),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Cp),WF),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,BCe),xJ),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Cp),WF),Tu(pm)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,FCe),xJ),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Cp),WF),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,X9),z0e),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),nNe),FR),YF),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,gR),z0e),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),iNe),FR),zNe),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,mR),z0e),"Node Size Minimum"),"The minimal size to which a node can be reduced."),rNe),$_),_m),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,mN),z0e),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),ym),qp),Tu(Ku)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,jCe),g0e),"Edge Label Placement"),"Gives a hint on where to put edge labels."),GIe),Cp),ENe),Tu(D4)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,GZ),g0e),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),ym),qp),Tu(D4)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,mXt),"font"),"Font Name"),"Font name used for a label."),C7),uu),Tu(D4)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,Qft),"font"),"Font Size"),"Font size used for a label."),sy),Vm),Tu(D4)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,VCe),H0e),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),$_),_m),Tu(eC)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,zCe),H0e),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),sy),Vm),Tu(eC)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,CCe),H0e),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),hNe),Cp),pv),Tu(eC)))),_u(oo,new gu(xu(wu(Su(mu(yu(vu(bu(new pu,kCe),H0e),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Qm),nm),Tu(eC)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,bN),V6e),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),fNe),FR),Wte),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ICe),V6e),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),ym),qp),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,NCe),V6e),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),ym),qp),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,gV),TV),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Qm),nm),Tu(Ku)))),Jp(oo,gV,E6,Gwt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,H6e),TV),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),Cp),Zte),Tu(pm)))),Jp(oo,H6e,E6,Wwt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,mV),TV),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Qm),nm),mp(Ku,As($s(WE,1),Pl,170,0,[pm]))))),Jp(oo,mV,E6,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,vV),TV),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Qm),nm),mp(Ku,As($s(WE,1),Pl,170,0,[pm]))))),Jp(oo,vV,E6,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,E6),TV),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),Cp),qNe),Tu(pm)))),Jp(oo,E6,mN,null),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,q6e),TV),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Qm),nm),Tu(Ku)))),Jp(oo,q6e,E6,Vwt),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,ACe),tdt),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),ym),qp),Tu(pm)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,RCe),tdt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),ym),qp),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,O1e),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Qm),nm),Tu(gE)))),_u(oo,new gu(xu(wu(Su(Nu(mu(yu(vu(bu(new pu,Zft),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),YIe),Cp),RNe),Tu(gE)))),$D(oo,new B8(_D(AO($O(new Cw,d1),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),$D(oo,new B8(_D(AO($O(new Cw,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),$D(oo,new B8(_D(AO($O(new Cw,x2),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),$D(oo,new B8(_D(AO($O(new Cw,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),$D(oo,new B8(_D(AO($O(new Cw,vft),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),$D(oo,new B8(_D(AO($O(new Cw,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),$D(oo,new B8(_D(AO($O(new Cw,Sx),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),aat((new iae,oo)),Sat((new SE,oo)),Dst((new oae,oo))};var oM,Awt,zIe,$7,Rwt,Owt,HIe,A7,R7,Iwt,EG,qIe,kG,tC,VIe,Mve,Dve,GIe,WIe,UIe,KIe,YIe,Nwt,O7,XIe,Mwt,TG,Lve,CG,Bve,K6,QIe,sM,ZIe,JIe,eNe,I7,tNe,nC,nNe,OA,N7,rNe,V3,iNe,zte,$G,L4,oNe,Dwt,sNe,Lwt,Bwt,aNe,lNe,Fve,Pve,jve,zve,cNe,Ew,zF,uNe,Hve,qve,IA,fNe,dNe,M7,hNe,PR,AG,Vve,D7,Fwt,Gve,Pwt,jwt,pNe,zwt,gNe,mNe,jR,vNe,Hte,bNe,yNe,rC,Hwt,wNe,xNe,SNe,qte,RG,aM,zR,qwt,Vwt,Vte,Gwt,_Ne,Wwt;Vo(_w,"CoreOptions",699),zo(88,22,{3:1,34:1,22:1,88:1},Qz);var A_,qv,ey,R_,Cx,HF=V1(_w,lTe,88,X1,G9t,K3t),Uwt;zo(278,22,{3:1,34:1,22:1,278:1},qle);var lM,NA,cM,ENe=V1(_w,"EdgeLabelPlacement",278,X1,wAt,Y3t),Kwt;zo(223,22,{3:1,34:1,22:1,223:1},iY);var uM,OG,HR,Wve,Uve=V1(_w,"EdgeRouting",223,X1,w9t,X3t),Ywt;zo(321,22,{3:1,34:1,22:1,321:1},zD);var kNe,TNe,CNe,$Ne,Kve,ANe,RNe=V1(_w,"EdgeType",321,X1,P7t,Q3t),Xwt;zo(989,1,Vx,iae),wo.hf=function(oo){aat(oo)};var ONe,INe,NNe,MNe,Qwt,DNe,qF;Vo(_w,"FixedLayouterOptions",989),zo(990,1,{},SU),wo.sf=function(){var oo;return oo=new Fie,oo},wo.tf=function(oo){},Vo(_w,"FixedLayouterOptions/FixedFactory",990),zo(346,22,{3:1,34:1,22:1,346:1},Vle);var B4,Gte,VF,LNe=V1(_w,"HierarchyHandling",346,X1,bAt,Z3t),Zwt;zo(291,22,{3:1,34:1,22:1,291:1},oY);var UE,G3,IG,NG,Jwt=V1(_w,"LabelSide",291,X1,y9t,J3t),ext;zo(95,22,{3:1,34:1,22:1,95:1},s9);var D5,kS,Xx,TS,Zw,CS,Qx,KE,$S,Tv=V1(_w,"NodeLabelPlacement",95,X1,j8t,eTt),txt;zo(256,22,{3:1,34:1,22:1,256:1},Zz);var BNe,GF,W3,FNe,MG,WF=V1(_w,"PortAlignment",256,X1,s7t,tTt),nxt;zo(101,22,{3:1,34:1,22:1,101:1},HD);var iC,n2,YE,fM,O_,U3,PNe=V1(_w,"PortConstraints",101,X1,F7t,nTt),rxt;zo(279,22,{3:1,34:1,22:1,279:1},qD);var UF,KF,L5,DG,K3,qR,Wte=V1(_w,"PortLabelPlacement",279,X1,B7t,rTt),ixt;zo(64,22,{3:1,34:1,22:1,64:1},Jz);var p1,s1,$x,Ax,N2,E2,I_,AS,cw,X2,r2,uw,M2,D2,RS,Jw,ex,Zx,z1,gy,l1,pv=V1(_w,"PortSide",64,X1,W9t,iTt),oxt;zo(993,1,Vx,oae),wo.hf=function(oo){Dst(oo)};var sxt,axt,jNe,lxt,cxt;Vo(_w,"RandomLayouterOptions",993),zo(994,1,{},iT),wo.sf=function(){var oo;return oo=new Die,oo},wo.tf=function(oo){},Vo(_w,"RandomLayouterOptions/RandomFactory",994),zo(386,22,{3:1,34:1,22:1,386:1},sY);var MA,LG,BG,oC,YF=V1(_w,"SizeConstraint",386,X1,b9t,oTt),uxt;zo(264,22,{3:1,34:1,22:1,264:1},a9);var FG,Ute,dM,Yve,PG,XF,Kte,Yte,Xte,zNe=V1(_w,"SizeOptions",264,X1,Z8t,sTt),fxt;zo(280,22,{3:1,34:1,22:1,280:1},Gle);var DA,HNe,Qte,qNe=V1(_w,"TopdownNodeTypes",280,X1,xAt,aTt),dxt;zo(347,22,G6e);var VNe,GNe,Zte=V1(_w,"TopdownSizeApproximator",347,X1,g$t,cTt);zo(987,347,G6e,jGe),wo.Tg=function(oo){return Snt(oo)},V1(_w,"TopdownSizeApproximator/1",987,Zte,null,null),zo(988,347,G6e,kWe),wo.Tg=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu,Yu;for(co=bo(zl(oo,($0(),D7)),143),ru=(n3(),Zo=new vD,Zo),Pq(ru,oo),ku=new H1,xo=new g1((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a));xo.e!=xo.i.gc();)po=bo(k1(xo),27),zs=(Xo=new vD,Xo),dZ(zs,ru),Pq(zs,po),Yu=Snt(po),d9(zs,lo.Math.max(po.g,Yu.a),lo.Math.max(po.f,Yu.b)),l2(ku.f,po,zs);for(vo=new g1((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a));vo.e!=vo.i.gc();)for(po=bo(k1(vo),27),Po=new g1((!po.e&&(po.e=new Wu(Gp,po,7,4)),po.e));Po.e!=Po.i.gc();)Io=bo(k1(Po),74),Nl=bo(Uv(wv(ku.f,po)),27),Hl=bo(m1(ku,Gs((!Io.c&&(Io.c=new Wu(D1,Io,5,8)),Io.c),0)),27),Ys=(Wo=new KM,Wo),Y1((!Ys.b&&(Ys.b=new Wu(D1,Ys,4,7)),Ys.b),Nl),Y1((!Ys.c&&(Ys.c=new Wu(D1,Ys,5,8)),Ys.c),Hl),fZ(Ys,kp(Nl)),Pq(Ys,Io);Ss=bo(TH(co.f),205);try{Ss.rf(ru,new zie),nUe(co.f,Ss)}catch(Qu){throw Qu=$p(Qu),Hs(Qu,103)?(ws=Qu,Cs(ws)):Cs(Qu)}return h_(ru,R7)||h_(ru,A7)||O3e(ru),Ao=na(Tl(zl(ru,R7))),To=na(Tl(zl(ru,A7))),Eo=Ao/To,fo=na(Tl(zl(ru,RG)))*lo.Math.sqrt((!ru.a&&(ru.a=new Bl(F0,ru,10,11)),ru.a).i),Eu=bo(zl(ru,L4),107),Ls=Eu.b+Eu.c+1,Rs=Eu.d+Eu.a+1,new Vl(lo.Math.max(Ls,fo),lo.Math.max(Rs,fo/Eo))},V1(_w,"TopdownSizeApproximator/2",988,Zte,null,null);var hxt;zo(344,1,{871:1},u8),wo.Ug=function(oo,co){return Drt(this,oo,co)},wo.Vg=function(){iit(this)},wo.Wg=function(){return this.q},wo.Xg=function(){return this.f?sue(this.f):null},wo.Yg=function(){return sue(this.a)},wo.Zg=function(){return this.p},wo.$g=function(){return!1},wo._g=function(){return this.n},wo.ah=function(){return this.p!=null&&!this.b},wo.bh=function(oo){var co;this.n&&(co=oo,Jl(this.f,co))},wo.dh=function(oo,co){var fo,po;this.n&&oo&&LAt(this,(fo=new BWe,po=fhe(fo,oo),vKt(fo),po),(vQ(),Qve))},wo.eh=function(oo){var co;return this.b?null:(co=x8t(this,this.g),y0(this.a,co),co.i=this,this.d=oo,co)},wo.fh=function(oo){oo>0&&!this.b&&K_e(this,oo)},wo.b=!1,wo.c=0,wo.d=-1,wo.e=null,wo.f=null,wo.g=-1,wo.j=!1,wo.k=!1,wo.n=!1,wo.o=0,wo.q=0,wo.r=0,Vo(wy,"BasicProgressMonitor",344),zo(717,205,DT,QA),wo.rf=function(oo,co){Pat(oo,co)},Vo(wy,"BoxLayoutProvider",717),zo(983,1,g0,kBe),wo.Ne=function(oo,co){return vHt(this,bo(oo,27),bo(co,27))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},wo.a=!1,Vo(wy,"BoxLayoutProvider/1",983),zo(163,1,{163:1},KX,uVe),wo.Ib=function(){return this.c?U4e(this.c):_3(this.b)},Vo(wy,"BoxLayoutProvider/Group",163),zo(320,22,{3:1,34:1,22:1,320:1},aY);var WNe,UNe,KNe,Xve,YNe=V1(wy,"BoxLayoutProvider/PackingMode",320,X1,x9t,uTt),pxt;zo(984,1,g0,Oie),wo.Ne=function(oo,co){return D6t(bo(oo,163),bo(co,163))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(wy,"BoxLayoutProvider/lambda$0$Type",984),zo(985,1,g0,_U),wo.Ne=function(oo,co){return C6t(bo(oo,163),bo(co,163))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(wy,"BoxLayoutProvider/lambda$1$Type",985),zo(986,1,g0,Iie),wo.Ne=function(oo,co){return $6t(bo(oo,163),bo(co,163))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(wy,"BoxLayoutProvider/lambda$2$Type",986),zo(1384,1,{845:1},Nie),wo.Mg=function(oo,co){return FK(),!Hs(co,167)||fje((W8(),bo(oo,167)),co)},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),zo(1385,1,_1,TBe),wo.Cd=function(oo){WOt(this.a,bo(oo,149))},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),zo(1386,1,_1,Lie),wo.Cd=function(oo){bo(oo,96),FK()},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),zo(1390,1,_1,CBe),wo.Cd=function(oo){pRt(this.a,bo(oo,96))},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),zo(1388,1,f0,tHe),wo.Mb=function(oo){return COt(this.a,this.b,bo(oo,149))},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),zo(1387,1,f0,nHe),wo.Mb=function(oo){return a5t(this.a,this.b,bo(oo,845))},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),zo(1389,1,_1,rHe),wo.Cd=function(oo){wCt(this.a,this.b,bo(oo,149))},Vo(wy,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),zo(947,1,{},Bie),wo.Kb=function(oo){return ZHe(oo)},wo.Fb=function(oo){return this===oo},Vo(wy,"ElkUtil/lambda$0$Type",947),zo(948,1,_1,iHe),wo.Cd=function(oo){wjt(this.a,this.b,bo(oo,74))},wo.a=0,wo.b=0,Vo(wy,"ElkUtil/lambda$1$Type",948),zo(949,1,_1,oHe),wo.Cd=function(oo){u_t(this.a,this.b,bo(oo,166))},wo.a=0,wo.b=0,Vo(wy,"ElkUtil/lambda$2$Type",949),zo(950,1,_1,sHe),wo.Cd=function(oo){okt(this.a,this.b,bo(oo,135))},wo.a=0,wo.b=0,Vo(wy,"ElkUtil/lambda$3$Type",950),zo(951,1,_1,$Be),wo.Cd=function(oo){zTt(this.a,bo(oo,377))},Vo(wy,"ElkUtil/lambda$4$Type",951),zo(325,1,{34:1,325:1},jSt),wo.Fd=function(oo){return Mkt(this,bo(oo,242))},wo.Fb=function(oo){var co;return Hs(oo,325)?(co=bo(oo,325),this.a==co.a):!1},wo.Hb=function(){return dm(this.a)},wo.Ib=function(){return this.a+" (exclusive)"},wo.a=0,Vo(wy,"ExclusiveBounds/ExclusiveLowerBound",325),zo(1119,205,DT,Fie),wo.rf=function(oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls,zs,Ys,Nl,Hl,ru,ku,Eu;for(co.Ug("Fixed Layout",1),xo=bo(zl(oo,($0(),WIe)),223),Wo=0,Xo=0,zs=new g1((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a));zs.e!=zs.i.gc();){for(Rs=bo(k1(zs),27),Eu=bo(zl(Rs,(bQ(),qF)),8),Eu&&(ix(Rs,Eu.a,Eu.b),bo(zl(Rs,INe),181).Hc((Mw(),MA))&&(Zo=bo(zl(Rs,MNe),8),Zo.a>0&&Zo.b>0&&y6(Rs,Zo.a,Zo.b,!0,!0))),Wo=lo.Math.max(Wo,Rs.i+Rs.g),Xo=lo.Math.max(Xo,Rs.j+Rs.f),Io=new g1((!Rs.n&&(Rs.n=new Bl(Nv,Rs,1,7)),Rs.n));Io.e!=Io.i.gc();)To=bo(k1(Io),135),Eu=bo(zl(To,qF),8),Eu&&ix(To,Eu.a,Eu.b),Wo=lo.Math.max(Wo,Rs.i+To.i+To.g),Xo=lo.Math.max(Xo,Rs.j+To.j+To.f);for(Hl=new g1((!Rs.c&&(Rs.c=new Bl(fw,Rs,9,9)),Rs.c));Hl.e!=Hl.i.gc();)for(Nl=bo(k1(Hl),123),Eu=bo(zl(Nl,qF),8),Eu&&ix(Nl,Eu.a,Eu.b),ru=Rs.i+Nl.i,ku=Rs.j+Nl.j,Wo=lo.Math.max(Wo,ru+Nl.g),Xo=lo.Math.max(Xo,ku+Nl.f),Ao=new g1((!Nl.n&&(Nl.n=new Bl(Nv,Nl,1,7)),Nl.n));Ao.e!=Ao.i.gc();)To=bo(k1(Ao),135),Eu=bo(zl(To,qF),8),Eu&&ix(To,Eu.a,Eu.b),Wo=lo.Math.max(Wo,ru+To.i+To.g),Xo=lo.Math.max(Xo,ku+To.j+To.f);for(vo=new x1(E1(T5(Rs).a.Kc(),new ko));W1(vo);)fo=bo(R1(vo),74),Po=Jlt(fo),Wo=lo.Math.max(Wo,Po.a),Xo=lo.Math.max(Xo,Po.b);for(po=new x1(E1(Fq(Rs).a.Kc(),new ko));W1(po);)fo=bo(R1(po),74),kp(NE(fo))!=oo&&(Po=Jlt(fo),Wo=lo.Math.max(Wo,Po.a),Xo=lo.Math.max(Xo,Po.b))}if(xo==(S5(),uM))for(Ls=new g1((!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a));Ls.e!=Ls.i.gc();)for(Rs=bo(k1(Ls),27),po=new x1(E1(T5(Rs).a.Kc(),new ko));W1(po);)fo=bo(R1(po),74),Eo=SGt(fo),Eo.b==0?tp(fo,K6,null):tp(fo,K6,Eo);lu(au(zl(oo,(bQ(),NNe))))||(Ys=bo(zl(oo,Qwt),107),Ss=Wo+Ys.b+Ys.c,ws=Xo+Ys.d+Ys.a,y6(oo,Ss,ws,!0,!0)),co.Vg()},Vo(wy,"FixedLayoutProvider",1119),zo(385,137,{3:1,423:1,385:1,96:1,137:1},lz,HQe),wo.cg=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;if(oo)try{for(Ao=Z$(oo,";,;"),xo=Ao,Eo=0,To=xo.length;Eo>16&em|co^po<<16},wo.Kc=function(){return new ABe(this)},wo.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+ry(this.b)+")":this.b==null?"pair("+ry(this.a)+",null)":"pair("+ry(this.a)+","+ry(this.b)+")"},Vo(wy,"Pair",42),zo(995,1,$m,ABe),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},wo.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw Cs(new ay)},wo.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),Cs(new F2)},wo.b=!1,wo.c=!1,Vo(wy,"Pair/1",995),zo(455,1,{455:1},bUe),wo.Fb=function(oo){return ky(this.a,bo(oo,455).a)&&ky(this.c,bo(oo,455).c)&&ky(this.d,bo(oo,455).d)&&ky(this.b,bo(oo,455).b)},wo.Hb=function(){return fq(As($s(bm,1),Xu,1,5,[this.a,this.c,this.d,this.b]))},wo.Ib=function(){return"("+this.a+av+this.c+av+this.d+av+this.b+")"},Vo(wy,"Quadruple",455),zo(1108,205,DT,Die),wo.rf=function(oo,co){var fo,po,vo,xo,Eo;if(co.Ug("Random Layout",1),(!oo.a&&(oo.a=new Bl(F0,oo,10,11)),oo.a).i==0){co.Vg();return}xo=bo(zl(oo,(Ske(),lxt)),17),xo&&xo.a!=0?vo=new CX(xo.a):vo=new Kfe,fo=Rz(Tl(zl(oo,sxt))),Eo=Rz(Tl(zl(oo,cxt))),po=bo(zl(oo,axt),107),jKt(oo,vo,fo,Eo,po),co.Vg()},Vo(wy,"RandomLayoutProvider",1108),zo(240,1,{240:1},xce),wo.Fb=function(oo){return ky(this.a,bo(oo,240).a)&&ky(this.b,bo(oo,240).b)&&ky(this.c,bo(oo,240).c)},wo.Hb=function(){return fq(As($s(bm,1),Xu,1,5,[this.a,this.b,this.c]))},wo.Ib=function(){return"("+this.a+av+this.b+av+this.c+")"},Vo(wy,"Triple",240);var bxt;zo(562,1,{}),wo.Lf=function(){return new Vl(this.f.i,this.f.j)},wo.of=function(oo){return WUe(oo,($0(),Ew))?zl(this.f,yxt):zl(this.f,oo)},wo.Mf=function(){return new Vl(this.f.g,this.f.f)},wo.Nf=function(){return this.g},wo.pf=function(oo){return h_(this.f,oo)},wo.Of=function(oo){m2(this.f,oo.a),b2(this.f,oo.b)},wo.Pf=function(oo){i6(this.f,oo.a),r6(this.f,oo.b)},wo.Qf=function(oo){this.g=oo},wo.g=0;var yxt;Vo(DB,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),zo(563,1,{853:1},mK),wo.Rf=function(){var oo,co;if(!this.b)for(this.b=_X(sX(this.a).i),co=new g1(sX(this.a));co.e!=co.i.gc();)oo=bo(k1(co),135),Jl(this.b,new Qae(oo));return this.b},wo.b=null,Vo(DB,"ElkGraphAdapters/ElkEdgeAdapter",563),zo(289,562,{},kC),wo.Sf=function(){return Vnt(this)},wo.a=null,Vo(DB,"ElkGraphAdapters/ElkGraphAdapter",289),zo(640,562,{187:1},Qae),Vo(DB,"ElkGraphAdapters/ElkLabelAdapter",640),zo(639,562,{695:1},oce),wo.Rf=function(){return CDt(this)},wo.Vf=function(){var oo;return oo=bo(zl(this.f,($0(),sM)),140),!oo&&(oo=new mD),oo},wo.Xf=function(){return $Dt(this)},wo.Zf=function(oo){var co;co=new _ce(oo),tp(this.f,($0(),sM),co)},wo.$f=function(oo){tp(this.f,($0(),L4),new fxe(oo))},wo.Tf=function(){return this.d},wo.Uf=function(){var oo,co;if(!this.a)for(this.a=new Zl,co=new x1(E1(Fq(bo(this.f,27)).a.Kc(),new ko));W1(co);)oo=bo(R1(co),74),Jl(this.a,new mK(oo));return this.a},wo.Wf=function(){var oo,co;if(!this.c)for(this.c=new Zl,co=new x1(E1(T5(bo(this.f,27)).a.Kc(),new ko));W1(co);)oo=bo(R1(co),74),Jl(this.c,new mK(oo));return this.c},wo.Yf=function(){return fX(bo(this.f,27)).i!=0||lu(au(bo(this.f,27).of(($0(),TG))))},wo._f=function(){s8t(this,(NC(),bxt))},wo.a=null,wo.b=null,wo.c=null,wo.d=null,wo.e=null,Vo(DB,"ElkGraphAdapters/ElkNodeAdapter",639),zo(1284,562,{852:1},RBe),wo.Rf=function(){return LDt(this)},wo.Uf=function(){var oo,co;if(!this.a)for(this.a=kE(bo(this.f,123).hh().i),co=new g1(bo(this.f,123).hh());co.e!=co.i.gc();)oo=bo(k1(co),74),Jl(this.a,new mK(oo));return this.a},wo.Wf=function(){var oo,co;if(!this.c)for(this.c=kE(bo(this.f,123).ih().i),co=new g1(bo(this.f,123).ih());co.e!=co.i.gc();)oo=bo(k1(co),74),Jl(this.c,new mK(oo));return this.c},wo.ag=function(){return bo(bo(this.f,123).of(($0(),M7)),64)},wo.bg=function(){var oo,co,fo,po,vo,xo,Eo,To;for(po=l_(bo(this.f,123)),fo=new g1(bo(this.f,123).ih());fo.e!=fo.i.gc();)for(oo=bo(k1(fo),74),To=new g1((!oo.c&&(oo.c=new Wu(D1,oo,5,8)),oo.c));To.e!=To.i.gc();){if(Eo=bo(k1(To),84),D$(Zv(Eo),po))return!0;if(Zv(Eo)==po&&lu(au(zl(oo,($0(),Lve)))))return!0}for(co=new g1(bo(this.f,123).hh());co.e!=co.i.gc();)for(oo=bo(k1(co),74),xo=new g1((!oo.b&&(oo.b=new Wu(D1,oo,4,7)),oo.b));xo.e!=xo.i.gc();)if(vo=bo(k1(xo),84),D$(Zv(vo),po))return!0;return!1},wo.a=null,wo.b=null,wo.c=null,Vo(DB,"ElkGraphAdapters/ElkPortAdapter",1284),zo(1285,1,g0,Mie),wo.Ne=function(oo,co){return pVt(bo(oo,123),bo(co,123))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(DB,"ElkGraphAdapters/PortComparator",1285);var Y3=Ip(_x,"EObject"),hM=Ip(J9,idt),tx=Ip(J9,odt),jG=Ip(J9,sdt),zG=Ip(J9,"ElkShape"),D1=Ip(J9,adt),Gp=Ip(J9,W6e),Sp=Ip(J9,ldt),HG=Ip(_x,cdt),QF=Ip(_x,"EFactory"),wxt,Zve=Ip(_x,udt),t_=Ip(_x,"EPackage"),Tm,xxt,Sxt,JNe,Jte,_xt,eMe,tMe,nMe,XE,Ext,kxt,Nv=Ip(J9,U6e),F0=Ip(J9,K6e),fw=Ip(J9,Y6e);zo(93,1,fdt),wo.th=function(){return this.uh(),null},wo.uh=function(){return null},wo.vh=function(){return this.uh(),!1},wo.wh=function(){return!1},wo.xh=function(oo){W0(this,oo)},Vo(yR,"BasicNotifierImpl",93),zo(99,93,gdt),wo.Yh=function(){return $w(this)},wo.yh=function(oo,co){return oo},wo.zh=function(){throw Cs(new l0)},wo.Ah=function(oo){var co;return co=bv(bo(Uu(this.Dh(),this.Fh()),19)),this.Ph().Th(this,co.n,co.f,oo)},wo.Bh=function(oo,co){throw Cs(new l0)},wo.Ch=function(oo,co,fo){return Uw(this,oo,co,fo)},wo.Dh=function(){var oo;return this.zh()&&(oo=this.zh().Nk(),oo)?oo:this.ii()},wo.Eh=function(){return Kde(this)},wo.Fh=function(){throw Cs(new l0)},wo.Gh=function(){var oo,co;return co=this.$h().Ok(),!co&&this.zh().Tk(co=(RD(),oo=ESe(eE(this.Dh())),oo==null?sbe:new iH(this,oo))),co},wo.Hh=function(oo,co){return oo},wo.Ih=function(oo){var co;return co=oo.pk(),co?oo.Lj():Ap(this.Dh(),oo)},wo.Jh=function(){var oo;return oo=this.zh(),oo?oo.Qk():null},wo.Kh=function(){return this.zh()?this.zh().Nk():null},wo.Lh=function(oo,co,fo){return jQ(this,oo,co,fo)},wo.Mh=function(oo){return oI(this,oo)},wo.Nh=function(oo,co){return Nue(this,oo,co)},wo.Oh=function(){var oo;return oo=this.zh(),!!oo&&oo.Rk()},wo.Ph=function(){throw Cs(new l0)},wo.Qh=function(){return NQ(this)},wo.Rh=function(oo,co,fo,po){return Z8(this,oo,co,po)},wo.Sh=function(oo,co,fo){var po;return po=bo(Uu(this.Dh(),co),69),po.wk().zk(this,this.hi(),co-this.ji(),oo,fo)},wo.Th=function(oo,co,fo,po){return gX(this,oo,co,po)},wo.Uh=function(oo,co,fo){var po;return po=bo(Uu(this.Dh(),co),69),po.wk().Ak(this,this.hi(),co-this.ji(),oo,fo)},wo.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},wo.Wh=function(oo){return ode(this,oo)},wo.Xh=function(oo){return sKe(this,oo)},wo.Zh=function(oo){return Blt(this,oo)},wo.$h=function(){throw Cs(new l0)},wo._h=function(){return this.zh()?this.zh().Pk():null},wo.ai=function(){return NQ(this)},wo.bi=function(oo,co){qde(this,oo,co)},wo.ci=function(oo){this.$h().Sk(oo)},wo.di=function(oo){this.$h().Vk(oo)},wo.ei=function(oo){this.$h().Uk(oo)},wo.fi=function(oo,co){var fo,po,vo,xo;return xo=this.Jh(),xo&&oo&&(co=sv(xo.El(),this,co),xo.Il(this)),po=this.Ph(),po&&(lhe(this,this.Ph(),this.Fh()).Bb&hv?(vo=po.Qh(),vo&&(oo?!xo&&vo.Il(this):vo.Hl(this))):(co=(fo=this.Fh(),fo>=0?this.Ah(co):this.Ph().Th(this,-1-fo,null,co)),co=this.Ch(null,-1,co))),this.di(oo),co},wo.gi=function(oo){var co,fo,po,vo,xo,Eo,To,Ao;if(fo=this.Dh(),xo=Ap(fo,oo),co=this.ji(),xo>=co)return bo(oo,69).wk().Dk(this,this.hi(),xo-co);if(xo<=-1)if(Eo=q9((W2(),Gm),fo,oo),Eo){if(vv(),bo(Eo,69).xk()||(Eo=F8(Fv(Gm,Eo))),vo=(po=this.Ih(Eo),bo(po>=0?this.Lh(po,!0,!0):m6(this,Eo,!0),160)),Ao=Eo.Ik(),Ao>1||Ao==-1)return bo(bo(vo,220).Sl(oo,!1),79)}else throw Cs(new i1(I3+oo.xe()+q0e));else if(oo.Jk())return po=this.Ih(oo),bo(po>=0?this.Lh(po,!1,!0):m6(this,oo,!1),79);return To=new EHe(this,oo),To},wo.hi=function(){return R_e(this)},wo.ii=function(){return(c3(),_d).S},wo.ji=function(){return A1(this.ii())},wo.ki=function(oo){jde(this,oo)},wo.Ib=function(){return gS(this)},Vo(_h,"BasicEObjectImpl",99);var Txt;zo(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),wo.li=function(oo){var co;return co=A_e(this),co[oo]},wo.mi=function(oo,co){var fo;fo=A_e(this),Np(fo,oo,co)},wo.ni=function(oo){var co;co=A_e(this),Np(co,oo,null)},wo.th=function(){return bo(n1(this,4),129)},wo.uh=function(){throw Cs(new l0)},wo.vh=function(){return(this.Db&4)!=0},wo.zh=function(){throw Cs(new l0)},wo.oi=function(oo){X8(this,2,oo)},wo.Bh=function(oo,co){this.Db=co<<16|this.Db&255,this.oi(oo)},wo.Dh=function(){return $2(this)},wo.Fh=function(){return this.Db>>16},wo.Gh=function(){var oo,co;return RD(),co=ESe(eE((oo=bo(n1(this,16),29),oo||this.ii()))),co==null?sbe:new iH(this,co)},wo.wh=function(){return(this.Db&1)==0},wo.Jh=function(){return bo(n1(this,128),2034)},wo.Kh=function(){return bo(n1(this,16),29)},wo.Oh=function(){return(this.Db&32)!=0},wo.Ph=function(){return bo(n1(this,2),54)},wo.Vh=function(){return(this.Db&64)!=0},wo.$h=function(){throw Cs(new l0)},wo._h=function(){return bo(n1(this,64),288)},wo.ci=function(oo){X8(this,16,oo)},wo.di=function(oo){X8(this,128,oo)},wo.ei=function(oo){X8(this,64,oo)},wo.hi=function(){return y2(this)},wo.Db=0,Vo(_h,"MinimalEObjectImpl",119),zo(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),wo.oi=function(oo){this.Cb=oo},wo.Ph=function(){return this.Cb},Vo(_h,"MinimalEObjectImpl/Container",120),zo(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),wo.Lh=function(oo,co,fo){return Gke(this,oo,co,fo)},wo.Uh=function(oo,co,fo){return M5e(this,oo,co,fo)},wo.Wh=function(oo){return FSe(this,oo)},wo.bi=function(oo,co){REe(this,oo,co)},wo.ii=function(){return Ny(),kxt},wo.ki=function(oo){yEe(this,oo)},wo.nf=function(){return unt(this)},wo.gh=function(){return!this.o&&(this.o=new V2((Ny(),XE),F4,this,0)),this.o},wo.of=function(oo){return zl(this,oo)},wo.pf=function(oo){return h_(this,oo)},wo.qf=function(oo,co){return tp(this,oo,co)},Vo(PT,"EMapPropertyHolderImpl",2083),zo(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},vO),wo.Lh=function(oo,co,fo){switch(oo){case 0:return this.a;case 1:return this.b}return jQ(this,oo,co,fo)},wo.Wh=function(oo){switch(oo){case 0:return this.a!=0;case 1:return this.b!=0}return ode(this,oo)},wo.bi=function(oo,co){switch(oo){case 0:XX(this,na(Tl(co)));return;case 1:YX(this,na(Tl(co)));return}qde(this,oo,co)},wo.ii=function(){return Ny(),xxt},wo.ki=function(oo){switch(oo){case 0:XX(this,0);return;case 1:YX(this,0);return}jde(this,oo)},wo.Ib=function(){var oo;return this.Db&64?gS(this):(oo=new Bx(gS(this)),oo.a+=" (x: ",n9(oo,this.a),oo.a+=", y: ",n9(oo,this.b),oo.a+=")",oo.a)},wo.a=0,wo.b=0,Vo(PT,"ElkBendPointImpl",572),zo(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),wo.Lh=function(oo,co,fo){return JEe(this,oo,co,fo)},wo.Sh=function(oo,co,fo){return Nde(this,oo,co,fo)},wo.Uh=function(oo,co,fo){return mfe(this,oo,co,fo)},wo.Wh=function(oo){return hEe(this,oo)},wo.bi=function(oo,co){u5e(this,oo,co)},wo.ii=function(){return Ny(),_xt},wo.ki=function(oo){VEe(this,oo)},wo.jh=function(){return this.k},wo.kh=function(){return sX(this)},wo.Ib=function(){return Hfe(this)},wo.k=null,Vo(PT,"ElkGraphElementImpl",739),zo(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),wo.Lh=function(oo,co,fo){return ake(this,oo,co,fo)},wo.Wh=function(oo){return hke(this,oo)},wo.bi=function(oo,co){f5e(this,oo,co)},wo.ii=function(){return Ny(),Ext},wo.ki=function(oo){wke(this,oo)},wo.lh=function(){return this.f},wo.mh=function(){return this.g},wo.nh=function(){return this.i},wo.oh=function(){return this.j},wo.ph=function(oo,co){d9(this,oo,co)},wo.qh=function(oo,co){ix(this,oo,co)},wo.rh=function(oo){m2(this,oo)},wo.sh=function(oo){b2(this,oo)},wo.Ib=function(){return Fde(this)},wo.f=0,wo.g=0,wo.i=0,wo.j=0,Vo(PT,"ElkShapeImpl",740),zo(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),wo.Lh=function(oo,co,fo){return Fke(this,oo,co,fo)},wo.Sh=function(oo,co,fo){return i5e(this,oo,co,fo)},wo.Uh=function(oo,co,fo){return o5e(this,oo,co,fo)},wo.Wh=function(oo){return AEe(this,oo)},wo.bi=function(oo,co){b4e(this,oo,co)},wo.ii=function(){return Ny(),Sxt},wo.ki=function(oo){Nke(this,oo)},wo.hh=function(){return!this.d&&(this.d=new Wu(Gp,this,8,5)),this.d},wo.ih=function(){return!this.e&&(this.e=new Wu(Gp,this,7,4)),this.e},Vo(PT,"ElkConnectableShapeImpl",741),zo(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},KM),wo.Ah=function(oo){return e5e(this,oo)},wo.Lh=function(oo,co,fo){switch(oo){case 3:return $H(this);case 4:return!this.b&&(this.b=new Wu(D1,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Wu(D1,this,5,8)),this.c;case 6:return!this.a&&(this.a=new Bl(Sp,this,6,6)),this.a;case 7:return _f(),!this.b&&(this.b=new Wu(D1,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Wu(D1,this,5,8)),this.c.i<=1));case 8:return _f(),!!nB(this);case 9:return _f(),!!g6(this);case 10:return _f(),!this.b&&(this.b=new Wu(D1,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Wu(D1,this,5,8)),this.c.i!=0)}return JEe(this,oo,co,fo)},wo.Sh=function(oo,co,fo){var po;switch(co){case 3:return this.Cb&&(fo=(po=this.Db>>16,po>=0?e5e(this,fo):this.Cb.Th(this,-1-po,null,fo))),Mwe(this,bo(oo,27),fo);case 4:return!this.b&&(this.b=new Wu(D1,this,4,7)),a2(this.b,oo,fo);case 5:return!this.c&&(this.c=new Wu(D1,this,5,8)),a2(this.c,oo,fo);case 6:return!this.a&&(this.a=new Bl(Sp,this,6,6)),a2(this.a,oo,fo)}return Nde(this,oo,co,fo)},wo.Uh=function(oo,co,fo){switch(co){case 3:return Mwe(this,null,fo);case 4:return!this.b&&(this.b=new Wu(D1,this,4,7)),sv(this.b,oo,fo);case 5:return!this.c&&(this.c=new Wu(D1,this,5,8)),sv(this.c,oo,fo);case 6:return!this.a&&(this.a=new Bl(Sp,this,6,6)),sv(this.a,oo,fo)}return mfe(this,oo,co,fo)},wo.Wh=function(oo){switch(oo){case 3:return!!$H(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Wu(D1,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Wu(D1,this,5,8)),this.c.i<=1));case 8:return nB(this);case 9:return g6(this);case 10:return!this.b&&(this.b=new Wu(D1,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Wu(D1,this,5,8)),this.c.i!=0)}return hEe(this,oo)},wo.bi=function(oo,co){switch(oo){case 3:fZ(this,bo(co,27));return;case 4:!this.b&&(this.b=new Wu(D1,this,4,7)),U1(this.b),!this.b&&(this.b=new Wu(D1,this,4,7)),Bp(this.b,bo(co,16));return;case 5:!this.c&&(this.c=new Wu(D1,this,5,8)),U1(this.c),!this.c&&(this.c=new Wu(D1,this,5,8)),Bp(this.c,bo(co,16));return;case 6:!this.a&&(this.a=new Bl(Sp,this,6,6)),U1(this.a),!this.a&&(this.a=new Bl(Sp,this,6,6)),Bp(this.a,bo(co,16));return}u5e(this,oo,co)},wo.ii=function(){return Ny(),JNe},wo.ki=function(oo){switch(oo){case 3:fZ(this,null);return;case 4:!this.b&&(this.b=new Wu(D1,this,4,7)),U1(this.b);return;case 5:!this.c&&(this.c=new Wu(D1,this,5,8)),U1(this.c);return;case 6:!this.a&&(this.a=new Bl(Sp,this,6,6)),U1(this.a);return}VEe(this,oo)},wo.Ib=function(){return tlt(this)},Vo(PT,"ElkEdgeImpl",326),zo(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},YM),wo.Ah=function(oo){return Xke(this,oo)},wo.Lh=function(oo,co,fo){switch(oo){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Qp(tx,this,5)),this.a;case 6:return nKe(this);case 7:return co?ude(this):this.i;case 8:return co?cde(this):this.f;case 9:return!this.g&&(this.g=new Wu(Sp,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Wu(Sp,this,10,9)),this.e;case 11:return this.d}return Gke(this,oo,co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 6:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?Xke(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Nwe(this,bo(oo,74),fo);case 9:return!this.g&&(this.g=new Wu(Sp,this,9,10)),a2(this.g,oo,fo);case 10:return!this.e&&(this.e=new Wu(Sp,this,10,9)),a2(this.e,oo,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Ny(),Jte)),co),69),xo.wk().zk(this,y2(this),co-A1((Ny(),Jte)),oo,fo)},wo.Uh=function(oo,co,fo){switch(co){case 5:return!this.a&&(this.a=new Qp(tx,this,5)),sv(this.a,oo,fo);case 6:return Nwe(this,null,fo);case 9:return!this.g&&(this.g=new Wu(Sp,this,9,10)),sv(this.g,oo,fo);case 10:return!this.e&&(this.e=new Wu(Sp,this,10,9)),sv(this.e,oo,fo)}return M5e(this,oo,co,fo)},wo.Wh=function(oo){switch(oo){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!nKe(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return FSe(this,oo)},wo.bi=function(oo,co){switch(oo){case 1:fI(this,na(Tl(co)));return;case 2:hI(this,na(Tl(co)));return;case 3:uI(this,na(Tl(co)));return;case 4:dI(this,na(Tl(co)));return;case 5:!this.a&&(this.a=new Qp(tx,this,5)),U1(this.a),!this.a&&(this.a=new Qp(tx,this,5)),Bp(this.a,bo(co,16));return;case 6:est(this,bo(co,74));return;case 7:rQ(this,bo(co,84));return;case 8:nQ(this,bo(co,84));return;case 9:!this.g&&(this.g=new Wu(Sp,this,9,10)),U1(this.g),!this.g&&(this.g=new Wu(Sp,this,9,10)),Bp(this.g,bo(co,16));return;case 10:!this.e&&(this.e=new Wu(Sp,this,10,9)),U1(this.e),!this.e&&(this.e=new Wu(Sp,this,10,9)),Bp(this.e,bo(co,16));return;case 11:tEe(this,u0(co));return}REe(this,oo,co)},wo.ii=function(){return Ny(),Jte},wo.ki=function(oo){switch(oo){case 1:fI(this,0);return;case 2:hI(this,0);return;case 3:uI(this,0);return;case 4:dI(this,0);return;case 5:!this.a&&(this.a=new Qp(tx,this,5)),U1(this.a);return;case 6:est(this,null);return;case 7:rQ(this,null);return;case 8:nQ(this,null);return;case 9:!this.g&&(this.g=new Wu(Sp,this,9,10)),U1(this.g);return;case 10:!this.e&&(this.e=new Wu(Sp,this,10,9)),U1(this.e);return;case 11:tEe(this,null);return}yEe(this,oo)},wo.Ib=function(){return pot(this)},wo.b=0,wo.c=0,wo.d=null,wo.j=0,wo.k=0,Vo(PT,"ElkEdgeSectionImpl",452),zo(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),wo.Lh=function(oo,co,fo){var po;return oo==0?(!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab):dx(this,oo-A1(this.ii()),Uu((po=bo(n1(this,16),29),po||this.ii()),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo;return co==0?(!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo)):(vo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),vo.wk().zk(this,y2(this),co-A1(this.ii()),oo,fo))},wo.Uh=function(oo,co,fo){var po,vo;return co==0?(!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo)):(vo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),vo.wk().Ak(this,y2(this),co-A1(this.ii()),oo,fo))},wo.Wh=function(oo){var co;return oo==0?!!this.Ab&&this.Ab.i!=0:ux(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.Zh=function(oo){return A3e(this,oo)},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return}vx(this,oo-A1(this.ii()),Uu((fo=bo(n1(this,16),29),fo||this.ii()),oo),co)},wo.di=function(oo){X8(this,128,oo)},wo.ii=function(){return Pu(),Vxt},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return}mx(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.pi=function(){this.Bb|=1},wo.qi=function(oo){return cB(this,oo)},wo.Bb=0,Vo(_h,"EModelElementImpl",158),zo(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},KU),wo.ri=function(oo,co){return Rlt(this,oo,co)},wo.si=function(oo){var co,fo,po,vo,xo;if(this.a!=zw(oo)||oo.Bb&256)throw Cs(new i1(G0e+oo.zb+$6));for(po=Yv(oo);Fy(po.a).i!=0;){if(fo=bo(Xq(po,0,(co=bo(Gs(Fy(po.a),0),89),xo=co.c,Hs(xo,90)?bo(xo,29):(Pu(),nS))),29),p6(fo))return vo=zw(fo).wi().si(fo),bo(vo,54).ci(oo),vo;po=Yv(fo)}return(oo.D!=null?oo.D:oo.B)=="java.util.Map$Entry"?new FGe(oo):new Sxe(oo)},wo.ti=function(oo,co){return w6(this,oo,co)},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.a}return dx(this,oo-A1((Pu(),J3)),Uu((po=bo(n1(this,16),29),po||J3),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 1:return this.a&&(fo=bo(this.a,54).Th(this,4,t_,fo)),qEe(this,bo(oo,241),fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),J3)),co),69),vo.wk().zk(this,y2(this),co-A1((Pu(),J3)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 1:return qEe(this,null,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),J3)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),J3)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return ux(this,oo-A1((Pu(),J3)),Uu((co=bo(n1(this,16),29),co||J3),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:Krt(this,bo(co,241));return}vx(this,oo-A1((Pu(),J3)),Uu((fo=bo(n1(this,16),29),fo||J3),oo),co)},wo.ii=function(){return Pu(),J3},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Krt(this,null);return}mx(this,oo-A1((Pu(),J3)),Uu((co=bo(n1(this,16),29),co||J3),oo))};var ZF,rMe,Cxt;Vo(_h,"EFactoryImpl",720),zo(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},Hie),wo.ri=function(oo,co){switch(oo.hk()){case 12:return bo(co,149).Pg();case 13:return ry(co);default:throw Cs(new i1(kN+oo.xe()+$6))}},wo.si=function(oo){var co,fo,po,vo,xo,Eo,To,Ao;switch(oo.G==-1&&(oo.G=(co=zw(oo),co?x4(co.vi(),oo):-1)),oo.G){case 4:return xo=new kU,xo;case 6:return Eo=new vD,Eo;case 7:return To=new Eye,To;case 8:return po=new KM,po;case 9:return fo=new vO,fo;case 10:return vo=new YM,vo;case 11:return Ao=new TU,Ao;default:throw Cs(new i1(G0e+oo.zb+$6))}},wo.ti=function(oo,co){switch(oo.hk()){case 13:case 12:return null;default:throw Cs(new i1(kN+oo.xe()+$6))}},Vo(PT,"ElkGraphFactoryImpl",1037),zo(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),wo.Gh=function(){var oo,co;return co=(oo=bo(n1(this,16),29),ESe(eE(oo||this.ii()))),co==null?(RD(),RD(),sbe):new aVe(this,co)},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.xe()}return dx(this,oo-A1(this.ii()),Uu((po=bo(n1(this,16),29),po||this.ii()),oo),co,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return ux(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:this.ui(u0(co));return}vx(this,oo-A1(this.ii()),Uu((fo=bo(n1(this,16),29),fo||this.ii()),oo),co)},wo.ii=function(){return Pu(),Gxt},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:this.ui(null);return}mx(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.xe=function(){return this.zb},wo.ui=function(oo){s2(this,oo)},wo.Ib=function(){return BL(this)},wo.zb=null,Vo(_h,"ENamedElementImpl",448),zo(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},MUe),wo.Ah=function(oo){return ort(this,oo)},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new k$(this,n_,this)),this.rb;case 6:return!this.vb&&(this.vb=new k8(t_,this,6,7)),this.vb;case 7:return co?this.Db>>16==7?bo(this.Cb,241):null:cKe(this)}return dx(this,oo-A1((Pu(),H4)),Uu((po=bo(n1(this,16),29),po||H4),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 4:return this.sb&&(fo=bo(this.sb,54).Th(this,1,QF,fo)),WEe(this,bo(oo,480),fo);case 5:return!this.rb&&(this.rb=new k$(this,n_,this)),a2(this.rb,oo,fo);case 6:return!this.vb&&(this.vb=new k8(t_,this,6,7)),a2(this.vb,oo,fo);case 7:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?ort(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,7,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),H4)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),H4)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 4:return WEe(this,null,fo);case 5:return!this.rb&&(this.rb=new k$(this,n_,this)),sv(this.rb,oo,fo);case 6:return!this.vb&&(this.vb=new k8(t_,this,6,7)),sv(this.vb,oo,fo);case 7:return Uw(this,null,7,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),H4)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),H4)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!cKe(this)}return ux(this,oo-A1((Pu(),H4)),Uu((co=bo(n1(this,16),29),co||H4),oo))},wo.Zh=function(oo){var co;return co=AHt(this,oo),co||A3e(this,oo)},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:s2(this,u0(co));return;case 2:cQ(this,u0(co));return;case 3:lQ(this,u0(co));return;case 4:Bde(this,bo(co,480));return;case 5:!this.rb&&(this.rb=new k$(this,n_,this)),U1(this.rb),!this.rb&&(this.rb=new k$(this,n_,this)),Bp(this.rb,bo(co,16));return;case 6:!this.vb&&(this.vb=new k8(t_,this,6,7)),U1(this.vb),!this.vb&&(this.vb=new k8(t_,this,6,7)),Bp(this.vb,bo(co,16));return}vx(this,oo-A1((Pu(),H4)),Uu((fo=bo(n1(this,16),29),fo||H4),oo),co)},wo.ei=function(oo){var co,fo;if(oo&&this.rb)for(fo=new g1(this.rb);fo.e!=fo.i.gc();)co=k1(fo),Hs(co,364)&&(bo(co,364).w=null);X8(this,64,oo)},wo.ii=function(){return Pu(),H4},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:s2(this,null);return;case 2:cQ(this,null);return;case 3:lQ(this,null);return;case 4:Bde(this,null);return;case 5:!this.rb&&(this.rb=new k$(this,n_,this)),U1(this.rb);return;case 6:!this.vb&&(this.vb=new k8(t_,this,6,7)),U1(this.vb);return}mx(this,oo-A1((Pu(),H4)),Uu((co=bo(n1(this,16),29),co||H4),oo))},wo.pi=function(){_de(this)},wo.vi=function(){return!this.rb&&(this.rb=new k$(this,n_,this)),this.rb},wo.wi=function(){return this.sb},wo.xi=function(){return this.ub},wo.yi=function(){return this.xb},wo.zi=function(){return this.yb},wo.Ai=function(oo){this.ub=oo},wo.Ib=function(){var oo;return this.Db&64?BL(this):(oo=new Bx(BL(this)),oo.a+=" (nsURI: ",Av(oo,this.yb),oo.a+=", nsPrefix: ",Av(oo,this.xb),oo.a+=")",oo.a)},wo.xb=null,wo.yb=null,Vo(_h,"EPackageImpl",184),zo(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},_ot),wo.q=!1,wo.r=!1;var $xt=!1;Vo(PT,"ElkGraphPackageImpl",569),zo(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},kU),wo.Ah=function(oo){return Qke(this,oo)},wo.Lh=function(oo,co,fo){switch(oo){case 7:return uKe(this);case 8:return this.a}return ake(this,oo,co,fo)},wo.Sh=function(oo,co,fo){var po;switch(co){case 7:return this.Cb&&(fo=(po=this.Db>>16,po>=0?Qke(this,fo):this.Cb.Th(this,-1-po,null,fo))),Bxe(this,bo(oo,167),fo)}return Nde(this,oo,co,fo)},wo.Uh=function(oo,co,fo){return co==7?Bxe(this,null,fo):mfe(this,oo,co,fo)},wo.Wh=function(oo){switch(oo){case 7:return!!uKe(this);case 8:return!Iu("",this.a)}return hke(this,oo)},wo.bi=function(oo,co){switch(oo){case 7:O4e(this,bo(co,167));return;case 8:X_e(this,u0(co));return}f5e(this,oo,co)},wo.ii=function(){return Ny(),eMe},wo.ki=function(oo){switch(oo){case 7:O4e(this,null);return;case 8:X_e(this,"");return}wke(this,oo)},wo.Ib=function(){return lit(this)},wo.a="",Vo(PT,"ElkLabelImpl",366),zo(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},vD),wo.Ah=function(oo){return t5e(this,oo)},wo.Lh=function(oo,co,fo){switch(oo){case 9:return!this.c&&(this.c=new Bl(fw,this,9,9)),this.c;case 10:return!this.a&&(this.a=new Bl(F0,this,10,11)),this.a;case 11:return kp(this);case 12:return!this.b&&(this.b=new Bl(Gp,this,12,3)),this.b;case 13:return _f(),!this.a&&(this.a=new Bl(F0,this,10,11)),this.a.i>0}return Fke(this,oo,co,fo)},wo.Sh=function(oo,co,fo){var po;switch(co){case 9:return!this.c&&(this.c=new Bl(fw,this,9,9)),a2(this.c,oo,fo);case 10:return!this.a&&(this.a=new Bl(F0,this,10,11)),a2(this.a,oo,fo);case 11:return this.Cb&&(fo=(po=this.Db>>16,po>=0?t5e(this,fo):this.Cb.Th(this,-1-po,null,fo))),Vwe(this,bo(oo,27),fo);case 12:return!this.b&&(this.b=new Bl(Gp,this,12,3)),a2(this.b,oo,fo)}return i5e(this,oo,co,fo)},wo.Uh=function(oo,co,fo){switch(co){case 9:return!this.c&&(this.c=new Bl(fw,this,9,9)),sv(this.c,oo,fo);case 10:return!this.a&&(this.a=new Bl(F0,this,10,11)),sv(this.a,oo,fo);case 11:return Vwe(this,null,fo);case 12:return!this.b&&(this.b=new Bl(Gp,this,12,3)),sv(this.b,oo,fo)}return o5e(this,oo,co,fo)},wo.Wh=function(oo){switch(oo){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!kp(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new Bl(F0,this,10,11)),this.a.i>0}return AEe(this,oo)},wo.bi=function(oo,co){switch(oo){case 9:!this.c&&(this.c=new Bl(fw,this,9,9)),U1(this.c),!this.c&&(this.c=new Bl(fw,this,9,9)),Bp(this.c,bo(co,16));return;case 10:!this.a&&(this.a=new Bl(F0,this,10,11)),U1(this.a),!this.a&&(this.a=new Bl(F0,this,10,11)),Bp(this.a,bo(co,16));return;case 11:dZ(this,bo(co,27));return;case 12:!this.b&&(this.b=new Bl(Gp,this,12,3)),U1(this.b),!this.b&&(this.b=new Bl(Gp,this,12,3)),Bp(this.b,bo(co,16));return}b4e(this,oo,co)},wo.ii=function(){return Ny(),tMe},wo.ki=function(oo){switch(oo){case 9:!this.c&&(this.c=new Bl(fw,this,9,9)),U1(this.c);return;case 10:!this.a&&(this.a=new Bl(F0,this,10,11)),U1(this.a);return;case 11:dZ(this,null);return;case 12:!this.b&&(this.b=new Bl(Gp,this,12,3)),U1(this.b);return}Nke(this,oo)},wo.Ib=function(){return U4e(this)},Vo(PT,"ElkNodeImpl",207),zo(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Eye),wo.Ah=function(oo){return Zke(this,oo)},wo.Lh=function(oo,co,fo){return oo==9?l_(this):Fke(this,oo,co,fo)},wo.Sh=function(oo,co,fo){var po;switch(co){case 9:return this.Cb&&(fo=(po=this.Db>>16,po>=0?Zke(this,fo):this.Cb.Th(this,-1-po,null,fo))),Dwe(this,bo(oo,27),fo)}return i5e(this,oo,co,fo)},wo.Uh=function(oo,co,fo){return co==9?Dwe(this,null,fo):o5e(this,oo,co,fo)},wo.Wh=function(oo){return oo==9?!!l_(this):AEe(this,oo)},wo.bi=function(oo,co){switch(oo){case 9:C4e(this,bo(co,27));return}b4e(this,oo,co)},wo.ii=function(){return Ny(),nMe},wo.ki=function(oo){switch(oo){case 9:C4e(this,null);return}Nke(this,oo)},wo.Ib=function(){return Jst(this)},Vo(PT,"ElkPortImpl",193);var Axt=Ip(lv,"BasicEMap/Entry");zo(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},TU),wo.Fb=function(oo){return this===oo},wo.ld=function(){return this.b},wo.Hb=function(){return PC(this)},wo.Di=function(oo){Q_e(this,bo(oo,149))},wo.Lh=function(oo,co,fo){switch(oo){case 0:return this.b;case 1:return this.c}return jQ(this,oo,co,fo)},wo.Wh=function(oo){switch(oo){case 0:return!!this.b;case 1:return this.c!=null}return ode(this,oo)},wo.bi=function(oo,co){switch(oo){case 0:Q_e(this,bo(co,149));return;case 1:Y_e(this,co);return}qde(this,oo,co)},wo.ii=function(){return Ny(),XE},wo.ki=function(oo){switch(oo){case 0:Q_e(this,null);return;case 1:Y_e(this,null);return}jde(this,oo)},wo.Bi=function(){var oo;return this.a==-1&&(oo=this.b,this.a=oo?dp(oo):0),this.a},wo.md=function(){return this.c},wo.Ci=function(oo){this.a=oo},wo.nd=function(oo){var co;return co=this.c,Y_e(this,oo),co},wo.Ib=function(){var oo;return this.Db&64?gS(this):(oo=new J4,S0(S0(S0(oo,this.b?this.b.Pg():I2),F1e),QD(this.c)),oo.a)},wo.a=-1,wo.c=null;var F4=Vo(PT,"ElkPropertyToValueMapEntryImpl",1122);zo(996,1,{},Gie),Vo(qm,"JsonAdapter",996),zo(216,63,$5,z_),Vo(qm,"JsonImportException",216),zo(868,1,{},srt),Vo(qm,"JsonImporter",868),zo(903,1,{},aHe),Vo(qm,"JsonImporter/lambda$0$Type",903),zo(904,1,{},lHe),Vo(qm,"JsonImporter/lambda$1$Type",904),zo(912,1,{},OBe),Vo(qm,"JsonImporter/lambda$10$Type",912),zo(914,1,{},cHe),Vo(qm,"JsonImporter/lambda$11$Type",914),zo(915,1,{},uHe),Vo(qm,"JsonImporter/lambda$12$Type",915),zo(921,1,{},SUe),Vo(qm,"JsonImporter/lambda$13$Type",921),zo(920,1,{},_Ue),Vo(qm,"JsonImporter/lambda$14$Type",920),zo(916,1,{},fHe),Vo(qm,"JsonImporter/lambda$15$Type",916),zo(917,1,{},dHe),Vo(qm,"JsonImporter/lambda$16$Type",917),zo(918,1,{},hHe),Vo(qm,"JsonImporter/lambda$17$Type",918),zo(919,1,{},pHe),Vo(qm,"JsonImporter/lambda$18$Type",919),zo(924,1,{},IBe),Vo(qm,"JsonImporter/lambda$19$Type",924),zo(905,1,{},NBe),Vo(qm,"JsonImporter/lambda$2$Type",905),zo(922,1,{},MBe),Vo(qm,"JsonImporter/lambda$20$Type",922),zo(923,1,{},DBe),Vo(qm,"JsonImporter/lambda$21$Type",923),zo(927,1,{},LBe),Vo(qm,"JsonImporter/lambda$22$Type",927),zo(925,1,{},BBe),Vo(qm,"JsonImporter/lambda$23$Type",925),zo(926,1,{},FBe),Vo(qm,"JsonImporter/lambda$24$Type",926),zo(929,1,{},PBe),Vo(qm,"JsonImporter/lambda$25$Type",929),zo(928,1,{},jBe),Vo(qm,"JsonImporter/lambda$26$Type",928),zo(930,1,_1,gHe),wo.Cd=function(oo){q7t(this.b,this.a,u0(oo))},Vo(qm,"JsonImporter/lambda$27$Type",930),zo(931,1,_1,mHe),wo.Cd=function(oo){V7t(this.b,this.a,u0(oo))},Vo(qm,"JsonImporter/lambda$28$Type",931),zo(932,1,{},vHe),Vo(qm,"JsonImporter/lambda$29$Type",932),zo(908,1,{},zBe),Vo(qm,"JsonImporter/lambda$3$Type",908),zo(933,1,{},bHe),Vo(qm,"JsonImporter/lambda$30$Type",933),zo(934,1,{},HBe),Vo(qm,"JsonImporter/lambda$31$Type",934),zo(935,1,{},qBe),Vo(qm,"JsonImporter/lambda$32$Type",935),zo(936,1,{},VBe),Vo(qm,"JsonImporter/lambda$33$Type",936),zo(937,1,{},GBe),Vo(qm,"JsonImporter/lambda$34$Type",937),zo(870,1,{},WBe),Vo(qm,"JsonImporter/lambda$35$Type",870),zo(941,1,{},dGe),Vo(qm,"JsonImporter/lambda$36$Type",941),zo(938,1,_1,UBe),wo.Cd=function(oo){Y9t(this.a,bo(oo,377))},Vo(qm,"JsonImporter/lambda$37$Type",938),zo(939,1,_1,yHe),wo.Cd=function(oo){AEt(this.a,this.b,bo(oo,166))},Vo(qm,"JsonImporter/lambda$38$Type",939),zo(940,1,_1,wHe),wo.Cd=function(oo){REt(this.a,this.b,bo(oo,166))},Vo(qm,"JsonImporter/lambda$39$Type",940),zo(906,1,{},KBe),Vo(qm,"JsonImporter/lambda$4$Type",906),zo(942,1,_1,YBe),wo.Cd=function(oo){X9t(this.a,bo(oo,8))},Vo(qm,"JsonImporter/lambda$40$Type",942),zo(907,1,{},XBe),Vo(qm,"JsonImporter/lambda$5$Type",907),zo(911,1,{},QBe),Vo(qm,"JsonImporter/lambda$6$Type",911),zo(909,1,{},ZBe),Vo(qm,"JsonImporter/lambda$7$Type",909),zo(910,1,{},JBe),Vo(qm,"JsonImporter/lambda$8$Type",910),zo(913,1,{},eFe),Vo(qm,"JsonImporter/lambda$9$Type",913),zo(961,1,_1,tFe),wo.Cd=function(oo){N8(this.a,new T$(u0(oo)))},Vo(qm,"JsonMetaDataConverter/lambda$0$Type",961),zo(962,1,_1,nFe),wo.Cd=function(oo){jCt(this.a,bo(oo,245))},Vo(qm,"JsonMetaDataConverter/lambda$1$Type",962),zo(963,1,_1,rFe),wo.Cd=function(oo){j$t(this.a,bo(oo,143))},Vo(qm,"JsonMetaDataConverter/lambda$2$Type",963),zo(964,1,_1,iFe),wo.Cd=function(oo){zCt(this.a,bo(oo,170))},Vo(qm,"JsonMetaDataConverter/lambda$3$Type",964),zo(245,22,{3:1,34:1,22:1,245:1},y8);var ene,tne,Jve,nne,rne,ine,ebe,tbe,sne=V1(fV,"GraphFeature",245,X1,k8t,hTt),Rxt;zo(11,1,{34:1,149:1},np,Rp,Ru,Mm),wo.Fd=function(oo){return Dkt(this,bo(oo,149))},wo.Fb=function(oo){return WUe(this,oo)},wo.Sg=function(){return iu(this)},wo.Pg=function(){return this.b},wo.Hb=function(){return h4(this.b)},wo.Ib=function(){return this.b},Vo(fV,"Property",11),zo(671,1,g0,Lae),wo.Ne=function(oo,co){return WIt(this,bo(oo,96),bo(co,96))},wo.Fb=function(oo){return this===oo},wo.Oe=function(){return new o0(this)},Vo(fV,"PropertyHolderComparator",671),zo(709,1,$m,oye),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){return U7t(this)},wo.Qb=function(){eje()},wo.Ob=function(){return!!this.a},Vo(kJ,"ElkGraphUtil/AncestorIterator",709);var iMe=Ip(lv,"EList");zo(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),wo.bd=function(oo,co){PL(this,oo,co)},wo.Fc=function(oo){return Y1(this,oo)},wo.cd=function(oo,co){return wEe(this,oo,co)},wo.Gc=function(oo){return Bp(this,oo)},wo.Ii=function(){return new E8(this)},wo.Ji=function(){return new oH(this)},wo.Ki=function(oo){return QH(this,oo)},wo.Li=function(){return!0},wo.Mi=function(oo,co){},wo.Ni=function(){},wo.Oi=function(oo,co){Bue(this,oo,co)},wo.Pi=function(oo,co,fo){},wo.Qi=function(oo,co){},wo.Ri=function(oo,co,fo){},wo.Fb=function(oo){return Bst(this,oo)},wo.Hb=function(){return mEe(this)},wo.Si=function(){return!1},wo.Kc=function(){return new g1(this)},wo.ed=function(){return new _8(this)},wo.fd=function(oo){var co;if(co=this.gc(),oo<0||oo>co)throw Cs(new _$(oo,co));return new zce(this,oo)},wo.Ui=function(oo,co){this.Ti(oo,this.dd(co))},wo.Mc=function(oo){return HX(this,oo)},wo.Wi=function(oo,co){return co},wo.hd=function(oo,co){return O9(this,oo,co)},wo.Ib=function(){return uke(this)},wo.Yi=function(){return!0},wo.Zi=function(oo,co){return CI(this,co)},Vo(lv,"AbstractEList",70),zo(66,70,uE,XM,n6,uEe),wo.Ei=function(oo,co){return Mde(this,oo,co)},wo.Fi=function(oo){return Ont(this,oo)},wo.Gi=function(oo,co){hq(this,oo,co)},wo.Hi=function(oo){DH(this,oo)},wo.$i=function(oo){return E_e(this,oo)},wo.$b=function(){xL(this)},wo.Hc=function(oo){return VI(this,oo)},wo.Xb=function(oo){return Gs(this,oo)},wo._i=function(oo){var co,fo,po;++this.j,fo=this.g==null?0:this.g.length,oo>fo&&(po=this.g,co=fo+(fo/2|0)+4,co=0?(this.gd(co),!0):!1},wo.Xi=function(oo,co){return this.Dj(oo,this.Zi(oo,co))},wo.gc=function(){return this.Ej()},wo.Pc=function(){return this.Fj()},wo.Qc=function(oo){return this.Gj(oo)},wo.Ib=function(){return this.Hj()},Vo(lv,"DelegatingEList",2093),zo(2094,2093,Jdt),wo.Ei=function(oo,co){return o3e(this,oo,co)},wo.Fi=function(oo){return this.Ei(this.Ej(),oo)},wo.Gi=function(oo,co){Eot(this,oo,co)},wo.Hi=function(oo){fot(this,oo)},wo.Li=function(){return!this.Mj()},wo.$b=function(){gB(this)},wo.Ij=function(oo,co,fo,po,vo){return new GUe(this,oo,co,fo,po,vo)},wo.Jj=function(oo){W0(this.jj(),oo)},wo.Kj=function(){return null},wo.Lj=function(){return-1},wo.jj=function(){return null},wo.Mj=function(){return!1},wo.Nj=function(oo,co){return co},wo.Oj=function(oo,co){return co},wo.Pj=function(){return!1},wo.Qj=function(){return!this.Aj()},wo.Ti=function(oo,co){var fo,po;return this.Pj()?(po=this.Qj(),fo=O5e(this,oo,co),this.Jj(this.Ij(7,Ql(co),fo,oo,po)),fo):O5e(this,oo,co)},wo.gd=function(oo){var co,fo,po,vo;return this.Pj()?(fo=null,po=this.Qj(),co=this.Ij(4,vo=jY(this,oo),null,oo,po),this.Mj()&&vo?(fo=this.Oj(vo,fo),fo?(fo.nj(co),fo.oj()):this.Jj(co)):fo?(fo.nj(co),fo.oj()):this.Jj(co),vo):(vo=jY(this,oo),this.Mj()&&vo&&(fo=this.Oj(vo,null),fo&&fo.oj()),vo)},wo.Xi=function(oo,co){return Oat(this,oo,co)},Vo(yR,"DelegatingNotifyingListImpl",2094),zo(152,1,$V),wo.nj=function(oo){return m5e(this,oo)},wo.oj=function(){Gue(this)},wo.gj=function(){return this.d},wo.Kj=function(){return null},wo.Rj=function(){return null},wo.hj=function(oo){return-1},wo.ij=function(){return bst(this)},wo.jj=function(){return null},wo.kj=function(){return L4e(this)},wo.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},wo.Sj=function(){return!1},wo.mj=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo;switch(this.d){case 1:case 2:switch(vo=oo.gj(),vo){case 1:case 2:if(xo=oo.jj(),$a(xo)===$a(this.jj())&&this.hj(null)==oo.hj(null))return this.g=oo.ij(),oo.gj()==1&&(this.d=1),!0}case 4:{switch(vo=oo.gj(),vo){case 4:{if(xo=oo.jj(),$a(xo)===$a(this.jj())&&this.hj(null)==oo.hj(null))return Io=S3e(this),Ao=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,Eo=oo.lj(),this.d=6,Wo=new n6(2),Ao<=Eo?(Y1(Wo,this.n),Y1(Wo,oo.kj()),this.g=As($s(Q1,1),E0,28,15,[this.o=Ao,Eo+1])):(Y1(Wo,oo.kj()),Y1(Wo,this.n),this.g=As($s(Q1,1),E0,28,15,[this.o=Eo,Ao])),this.n=Wo,Io||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(vo=oo.gj(),vo){case 4:{if(xo=oo.jj(),$a(xo)===$a(this.jj())&&this.hj(null)==oo.hj(null)){for(Io=S3e(this),Eo=oo.lj(),Po=bo(this.g,53),po=Al(Q1,E0,28,Po.length+1,15,1),co=0;co>>0,co.toString(16))),po.a+=" (eventType: ",this.d){case 1:{po.a+="SET";break}case 2:{po.a+="UNSET";break}case 3:{po.a+="ADD";break}case 5:{po.a+="ADD_MANY";break}case 4:{po.a+="REMOVE";break}case 6:{po.a+="REMOVE_MANY";break}case 7:{po.a+="MOVE";break}case 8:{po.a+="REMOVING_ADAPTER";break}case 9:{po.a+="RESOLVE";break}default:{sle(po,this.d);break}}if(oat(this)&&(po.a+=", touch: true"),po.a+=", position: ",sle(po,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),po.a+=", notifier: ",GD(po,this.jj()),po.a+=", feature: ",GD(po,this.Kj()),po.a+=", oldValue: ",GD(po,L4e(this)),po.a+=", newValue: ",this.d==6&&Hs(this.g,53)){for(fo=bo(this.g,53),po.a+="[",oo=0;oo10?((!this.b||this.c.j!=this.a)&&(this.b=new rL(this),this.a=this.j),jS(this.b,oo)):VI(this,oo)},wo.Yi=function(){return!0},wo.a=0,Vo(lv,"AbstractEList/1",966),zo(302,77,l1e,_$),Vo(lv,"AbstractEList/BasicIndexOutOfBoundsException",302),zo(37,1,$m,g1),wo.Nb=function(oo){jm(this,oo)},wo.Xj=function(){if(this.i.j!=this.f)throw Cs(new rx)},wo.Yj=function(){return k1(this)},wo.Ob=function(){return this.e!=this.i.gc()},wo.Pb=function(){return this.Yj()},wo.Qb=function(){QL(this)},wo.e=0,wo.f=0,wo.g=-1,Vo(lv,"AbstractEList/EIterator",37),zo(286,37,DE,_8,zce),wo.Qb=function(){QL(this)},wo.Rb=function(oo){Ctt(this,oo)},wo.Zj=function(){var oo;try{return oo=this.d.Xb(--this.e),this.Xj(),this.g=this.e,oo}catch(co){throw co=$p(co),Hs(co,77)?(this.Xj(),Cs(new ay)):Cs(co)}},wo.$j=function(oo){Mnt(this,oo)},wo.Sb=function(){return this.e!=0},wo.Tb=function(){return this.e},wo.Ub=function(){return this.Zj()},wo.Vb=function(){return this.e-1},wo.Wb=function(oo){this.$j(oo)},Vo(lv,"AbstractEList/EListIterator",286),zo(355,37,$m,E8),wo.Yj=function(){return sde(this)},wo.Qb=function(){throw Cs(new l0)},Vo(lv,"AbstractEList/NonResolvingEIterator",355),zo(398,286,DE,oH,Qwe),wo.Rb=function(oo){throw Cs(new l0)},wo.Yj=function(){var oo;try{return oo=this.c.Vi(this.e),this.Xj(),this.g=this.e++,oo}catch(co){throw co=$p(co),Hs(co,77)?(this.Xj(),Cs(new ay)):Cs(co)}},wo.Zj=function(){var oo;try{return oo=this.c.Vi(--this.e),this.Xj(),this.g=this.e,oo}catch(co){throw co=$p(co),Hs(co,77)?(this.Xj(),Cs(new ay)):Cs(co)}},wo.Qb=function(){throw Cs(new l0)},wo.Wb=function(oo){throw Cs(new l0)},Vo(lv,"AbstractEList/NonResolvingEListIterator",398),zo(2080,70,eht),wo.Ei=function(oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo;if(vo=co.gc(),vo!=0){for(Io=bo(n1(this.a,4),129),Po=Io==null?0:Io.length,Xo=Po+vo,po=Afe(this,Xo),Wo=Po-oo,Wo>0&&jy(Io,oo,po,oo+vo,Wo),Ao=co.Kc(),Eo=0;Eofo)throw Cs(new _$(oo,fo));return new hUe(this,oo)},wo.$b=function(){var oo,co;++this.j,oo=bo(n1(this.a,4),129),co=oo==null?0:oo.length,jI(this,null),Bue(this,co,oo)},wo.Hc=function(oo){var co,fo,po,vo,xo;if(co=bo(n1(this.a,4),129),co!=null){if(oo!=null){for(po=co,vo=0,xo=po.length;vo=fo)throw Cs(new _$(oo,fo));return co[oo]},wo.dd=function(oo){var co,fo,po;if(co=bo(n1(this.a,4),129),co!=null){if(oo!=null){for(fo=0,po=co.length;fofo)throw Cs(new _$(oo,fo));return new dUe(this,oo)},wo.Ti=function(oo,co){var fo,po,vo;if(fo=Btt(this),vo=fo==null?0:fo.length,oo>=vo)throw Cs(new Dv(epe+oo+jT+vo));if(co>=vo)throw Cs(new Dv(tpe+co+jT+vo));return po=fo[co],oo!=co&&(oo0&&jy(oo,0,co,0,fo),co},wo.Qc=function(oo){var co,fo,po;return co=bo(n1(this.a,4),129),po=co==null?0:co.length,po>0&&(oo.lengthpo&&Np(oo,po,null),oo};var Oxt;Vo(lv,"ArrayDelegatingEList",2080),zo(1051,37,$m,pXe),wo.Xj=function(){if(this.b.j!=this.f||$a(bo(n1(this.b.a,4),129))!==$a(this.a))throw Cs(new rx)},wo.Qb=function(){QL(this),this.a=bo(n1(this.b.a,4),129)},Vo(lv,"ArrayDelegatingEList/EIterator",1051),zo(722,286,DE,TWe,dUe),wo.Xj=function(){if(this.b.j!=this.f||$a(bo(n1(this.b.a,4),129))!==$a(this.a))throw Cs(new rx)},wo.$j=function(oo){Mnt(this,oo),this.a=bo(n1(this.b.a,4),129)},wo.Qb=function(){QL(this),this.a=bo(n1(this.b.a,4),129)},Vo(lv,"ArrayDelegatingEList/EListIterator",722),zo(1052,355,$m,gXe),wo.Xj=function(){if(this.b.j!=this.f||$a(bo(n1(this.b.a,4),129))!==$a(this.a))throw Cs(new rx)},Vo(lv,"ArrayDelegatingEList/NonResolvingEIterator",1052),zo(723,398,DE,CWe,hUe),wo.Xj=function(){if(this.b.j!=this.f||$a(bo(n1(this.b.a,4),129))!==$a(this.a))throw Cs(new rx)},Vo(lv,"ArrayDelegatingEList/NonResolvingEListIterator",723),zo(615,302,l1e,Wle),Vo(lv,"BasicEList/BasicIndexOutOfBoundsException",615),zo(710,66,uE,P2e),wo.bd=function(oo,co){throw Cs(new l0)},wo.Fc=function(oo){throw Cs(new l0)},wo.cd=function(oo,co){throw Cs(new l0)},wo.Gc=function(oo){throw Cs(new l0)},wo.$b=function(){throw Cs(new l0)},wo._i=function(oo){throw Cs(new l0)},wo.Kc=function(){return this.Ii()},wo.ed=function(){return this.Ji()},wo.fd=function(oo){return this.Ki(oo)},wo.Ti=function(oo,co){throw Cs(new l0)},wo.Ui=function(oo,co){throw Cs(new l0)},wo.gd=function(oo){throw Cs(new l0)},wo.Mc=function(oo){throw Cs(new l0)},wo.hd=function(oo,co){throw Cs(new l0)},Vo(lv,"BasicEList/UnmodifiableEList",710),zo(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),wo.bd=function(oo,co){_kt(this,oo,bo(co,44))},wo.Fc=function(oo){return m5t(this,bo(oo,44))},wo.Jc=function(oo){Hm(this,oo)},wo.Xb=function(oo){return bo(Gs(this.c,oo),136)},wo.Ti=function(oo,co){return bo(this.c.Ti(oo,co),44)},wo.Ui=function(oo,co){Ekt(this,oo,bo(co,44))},wo.Lc=function(){return new Ou(null,new Du(this,16))},wo.gd=function(oo){return bo(this.c.gd(oo),44)},wo.hd=function(oo,co){return PCt(this,oo,bo(co,44))},wo.jd=function(oo){wT(this,oo)},wo.Nc=function(){return new Du(this,16)},wo.Oc=function(){return new Ou(null,new Du(this,16))},wo.cd=function(oo,co){return this.c.cd(oo,co)},wo.Gc=function(oo){return this.c.Gc(oo)},wo.$b=function(){this.c.$b()},wo.Hc=function(oo){return this.c.Hc(oo)},wo.Ic=function(oo){return iq(this.c,oo)},wo._j=function(){var oo,co,fo;if(this.d==null){for(this.d=Al(oMe,h$e,66,2*this.f+1,0,1),fo=this.e,this.f=0,co=this.c.Kc();co.e!=co.i.gc();)oo=bo(co.Yj(),136),VQ(this,oo);this.e=fo}},wo.Fb=function(oo){return eGe(this,oo)},wo.Hb=function(){return mEe(this.c)},wo.dd=function(oo){return this.c.dd(oo)},wo.ak=function(){this.c=new oFe(this)},wo.dc=function(){return this.f==0},wo.Kc=function(){return this.c.Kc()},wo.ed=function(){return this.c.ed()},wo.fd=function(oo){return this.c.fd(oo)},wo.bk=function(){return FH(this)},wo.ck=function(oo,co,fo){return new hGe(oo,co,fo)},wo.dk=function(){return new Kie},wo.Mc=function(oo){return jZe(this,oo)},wo.gc=function(){return this.f},wo.kd=function(oo,co){return new s4(this.c,oo,co)},wo.Pc=function(){return this.c.Pc()},wo.Qc=function(oo){return this.c.Qc(oo)},wo.Ib=function(){return uke(this.c)},wo.e=0,wo.f=0,Vo(lv,"BasicEMap",721),zo(1046,66,uE,oFe),wo.Mi=function(oo,co){t_t(this,bo(co,136))},wo.Pi=function(oo,co,fo){var po;++(po=this,bo(co,136),po).a.e},wo.Qi=function(oo,co){n_t(this,bo(co,136))},wo.Ri=function(oo,co,fo){t5t(this,bo(co,136),bo(fo,136))},wo.Oi=function(oo,co){NJe(this.a)},Vo(lv,"BasicEMap/1",1046),zo(1047,66,uE,Kie),wo.aj=function(oo){return Al(VXt,tht,621,oo,0,1)},Vo(lv,"BasicEMap/2",1047),zo(1048,w_,U2,sFe),wo.$b=function(){this.a.c.$b()},wo.Hc=function(oo){return Xfe(this.a,oo)},wo.Kc=function(){return this.a.f==0?(zO(),GG.a):new HPe(this.a)},wo.Mc=function(oo){var co;return co=this.a.f,IQ(this.a,oo),this.a.f!=co},wo.gc=function(){return this.a.f},Vo(lv,"BasicEMap/3",1048),zo(1049,31,eA,aFe),wo.$b=function(){this.a.c.$b()},wo.Hc=function(oo){return Fst(this.a,oo)},wo.Kc=function(){return this.a.f==0?(zO(),GG.a):new qPe(this.a)},wo.gc=function(){return this.a.f},Vo(lv,"BasicEMap/4",1049),zo(1050,w_,U2,lFe),wo.$b=function(){this.a.c.$b()},wo.Hc=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io;if(this.a.f>0&&Hs(oo,44)&&(this.a._j(),Ao=bo(oo,44),To=Ao.ld(),vo=To==null?0:dp(To),xo=Lwe(this.a,vo),co=this.a.d[xo],co)){for(fo=bo(co.g,379),Io=co.i,Eo=0;Eo"+this.c},wo.a=0;var VXt=Vo(lv,"BasicEMap/EntryImpl",621);zo(546,1,{},QM),Vo(lv,"BasicEMap/View",546);var GG;zo(783,1,{}),wo.Fb=function(oo){return y4e((Hu(),cv),oo)},wo.Hb=function(){return $Ee((Hu(),cv))},wo.Ib=function(){return _3((Hu(),cv))},Vo(lv,"ECollections/BasicEmptyUnmodifiableEList",783),zo(1348,1,DE,Yie),wo.Nb=function(oo){jm(this,oo)},wo.Rb=function(oo){throw Cs(new l0)},wo.Ob=function(){return!1},wo.Sb=function(){return!1},wo.Pb=function(){throw Cs(new ay)},wo.Tb=function(){return 0},wo.Ub=function(){throw Cs(new ay)},wo.Vb=function(){return-1},wo.Qb=function(){throw Cs(new l0)},wo.Wb=function(oo){throw Cs(new l0)},Vo(lv,"ECollections/BasicEmptyUnmodifiableEList/1",1348),zo(1346,783,{20:1,16:1,15:1,61:1},ZFe),wo.bd=function(oo,co){hje()},wo.Fc=function(oo){return pje()},wo.cd=function(oo,co){return gje()},wo.Gc=function(oo){return mje()},wo.$b=function(){vje()},wo.Hc=function(oo){return!1},wo.Ic=function(oo){return!1},wo.Jc=function(oo){Hm(this,oo)},wo.Xb=function(oo){return H2e((Hu(),oo)),null},wo.dd=function(oo){return-1},wo.dc=function(){return!0},wo.Kc=function(){return this.a},wo.ed=function(){return this.a},wo.fd=function(oo){return this.a},wo.Ti=function(oo,co){return bje()},wo.Ui=function(oo,co){yje()},wo.Lc=function(){return new Ou(null,new Du(this,16))},wo.gd=function(oo){return wje()},wo.Mc=function(oo){return xje()},wo.hd=function(oo,co){return Sje()},wo.gc=function(){return 0},wo.jd=function(oo){wT(this,oo)},wo.Nc=function(){return new Du(this,16)},wo.Oc=function(){return new Ou(null,new Du(this,16))},wo.kd=function(oo,co){return Hu(),new s4(cv,oo,co)},wo.Pc=function(){return Pxe((Hu(),cv))},wo.Qc=function(oo){return Hu(),UL(cv,oo)},Vo(lv,"ECollections/EmptyUnmodifiableEList",1346),zo(1347,783,{20:1,16:1,15:1,61:1,597:1},JFe),wo.bd=function(oo,co){hje()},wo.Fc=function(oo){return pje()},wo.cd=function(oo,co){return gje()},wo.Gc=function(oo){return mje()},wo.$b=function(){vje()},wo.Hc=function(oo){return!1},wo.Ic=function(oo){return!1},wo.Jc=function(oo){Hm(this,oo)},wo.Xb=function(oo){return H2e((Hu(),oo)),null},wo.dd=function(oo){return-1},wo.dc=function(){return!0},wo.Kc=function(){return this.a},wo.ed=function(){return this.a},wo.fd=function(oo){return this.a},wo.Ti=function(oo,co){return bje()},wo.Ui=function(oo,co){yje()},wo.Lc=function(){return new Ou(null,new Du(this,16))},wo.gd=function(oo){return wje()},wo.Mc=function(oo){return xje()},wo.hd=function(oo,co){return Sje()},wo.gc=function(){return 0},wo.jd=function(oo){wT(this,oo)},wo.Nc=function(){return new Du(this,16)},wo.Oc=function(){return new Ou(null,new Du(this,16))},wo.kd=function(oo,co){return Hu(),new s4(cv,oo,co)},wo.Pc=function(){return Pxe((Hu(),cv))},wo.Qc=function(oo){return Hu(),UL(cv,oo)},wo.bk=function(){return Hu(),Hu(),HE},Vo(lv,"ECollections/EmptyUnmodifiableEMap",1347);var aMe=Ip(lv,"Enumerator"),ane;zo(288,1,{288:1},rhe),wo.Fb=function(oo){var co;return this===oo?!0:Hs(oo,288)?(co=bo(oo,288),this.f==co.f&&tCt(this.i,co.i)&&Ace(this.a,this.f&256?co.f&256?co.a:null:co.f&256?null:co.a)&&Ace(this.d,co.d)&&Ace(this.g,co.g)&&Ace(this.e,co.e)&&TMt(this,co)):!1},wo.Hb=function(){return this.f},wo.Ib=function(){return vat(this)},wo.f=0;var Ixt=0,Nxt=0,Mxt=0,Dxt=0,lMe=0,cMe=0,uMe=0,fMe=0,dMe=0,Lxt,JF=0,eP=0,Bxt=0,Fxt=0,lne,hMe;Vo(lv,"URI",288),zo(1121,45,W9,ePe),wo.zc=function(oo,co){return bo(Bv(this,u0(oo),bo(co,288)),288)},Vo(lv,"URI/URICache",1121),zo(506,66,uE,Vie,WY),wo.Si=function(){return!0},Vo(lv,"UniqueEList",506),zo(590,63,$5,PX),Vo(lv,"WrappedException",590);var C0=Ip(_x,iht),LA=Ip(_x,oht),L2=Ip(_x,sht),BA=Ip(_x,aht),n_=Ip(_x,lht),Jx=Ip(_x,"EClass"),ibe=Ip(_x,"EDataType"),Pxt;zo(1233,45,W9,tPe),wo.xc=function(oo){return Cm(oo)?Gy(this,oo):Uv(wv(this.f,oo))},Vo(_x,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var cne=Ip(_x,"EEnum"),B5=Ip(_x,cht),Cv=Ip(_x,uht),eS=Ip(_x,fht),tS,Y6=Ip(_x,dht),FA=Ip(_x,hht);zo(1042,1,{},qie),wo.Ib=function(){return"NIL"},Vo(_x,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var jxt;zo(1041,45,W9,nPe),wo.xc=function(oo){return Cm(oo)?Gy(this,oo):Uv(wv(this.f,oo))},Vo(_x,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var k2=Ip(_x,pht),VR=Ip(_x,"EValidator/PatternMatcher"),pMe,gMe,_d,P4,PA,Q3,zxt,Hxt,qxt,Z3,j4,J3,X6,N_,Vxt,Gxt,nS,z4,Wxt,H4,jA,L7,gv,Uxt,Kxt,Q6,une=Ip(Ep,"FeatureMap/Entry");zo(545,1,{76:1},cY),wo.Lk=function(){return this.a},wo.md=function(){return this.b},Vo(_h,"BasicEObjectImpl/1",545),zo(1040,1,ape,EHe),wo.Fk=function(oo){return Nue(this.a,this.b,oo)},wo.Qj=function(){return sKe(this.a,this.b)},wo.Wb=function(oo){CSe(this.a,this.b,oo)},wo.Gk=function(){ZCt(this.a,this.b)},Vo(_h,"BasicEObjectImpl/4",1040),zo(2081,1,{114:1}),wo.Mk=function(oo){this.e=oo==0?Yxt:Al(bm,Xu,1,oo,5,1)},wo.li=function(oo){return this.e[oo]},wo.mi=function(oo,co){this.e[oo]=co},wo.ni=function(oo){this.e[oo]=null},wo.Nk=function(){return this.c},wo.Ok=function(){throw Cs(new l0)},wo.Pk=function(){throw Cs(new l0)},wo.Qk=function(){return this.d},wo.Rk=function(){return this.e!=null},wo.Sk=function(oo){this.c=oo},wo.Tk=function(oo){throw Cs(new l0)},wo.Uk=function(oo){throw Cs(new l0)},wo.Vk=function(oo){this.d=oo};var Yxt;Vo(_h,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),zo(192,2081,{114:1},Dx),wo.Ok=function(){return this.a},wo.Pk=function(){return this.b},wo.Tk=function(oo){this.a=oo},wo.Uk=function(oo){this.b=oo},Vo(_h,"BasicEObjectImpl/EPropertiesHolderImpl",192),zo(516,99,gdt,bO),wo.uh=function(){return this.f},wo.zh=function(){return this.k},wo.Bh=function(oo,co){this.g=oo,this.i=co},wo.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},wo.Fh=function(){return this.i},wo.wh=function(){return(this.j&1)!=0},wo.Ph=function(){return this.g},wo.Vh=function(){return(this.j&4)!=0},wo.$h=function(){return!this.k&&(this.k=new Dx),this.k},wo.ci=function(oo){this.$h().Sk(oo),oo?this.j|=2:this.j&=-3},wo.ei=function(oo){this.$h().Uk(oo),oo?this.j|=4:this.j&=-5},wo.ii=function(){return(c3(),_d).S},wo.i=0,wo.j=1,Vo(_h,"EObjectImpl",516),zo(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},Sxe),wo.li=function(oo){return this.e[oo]},wo.mi=function(oo,co){this.e[oo]=co},wo.ni=function(oo){this.e[oo]=null},wo.Dh=function(){return this.d},wo.Ih=function(oo){return Ap(this.d,oo)},wo.Kh=function(){return this.d},wo.Oh=function(){return this.e!=null},wo.$h=function(){return!this.k&&(this.k=new Xie),this.k},wo.ci=function(oo){this.d=oo},wo.hi=function(){var oo;return this.e==null&&(oo=A1(this.d),this.e=oo==0?Xxt:Al(bm,Xu,1,oo,5,1)),this},wo.ji=function(){return 0};var Xxt;Vo(_h,"DynamicEObjectImpl",798),zo(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},FGe),wo.Fb=function(oo){return this===oo},wo.Hb=function(){return PC(this)},wo.ci=function(oo){this.d=oo,this.b=jq(oo,"key"),this.c=jq(oo,FB)},wo.Bi=function(){var oo;return this.a==-1&&(oo=Wue(this,this.b),this.a=oo==null?0:dp(oo)),this.a},wo.ld=function(){return Wue(this,this.b)},wo.md=function(){return Wue(this,this.c)},wo.Ci=function(oo){this.a=oo},wo.Di=function(oo){CSe(this,this.b,oo)},wo.nd=function(oo){var co;return co=Wue(this,this.c),CSe(this,this.c,oo),co},wo.a=0,Vo(_h,"DynamicEObjectImpl/BasicEMapEntry",1522),zo(1523,1,{114:1},Xie),wo.Mk=function(oo){throw Cs(new l0)},wo.li=function(oo){throw Cs(new l0)},wo.mi=function(oo,co){throw Cs(new l0)},wo.ni=function(oo){throw Cs(new l0)},wo.Nk=function(){throw Cs(new l0)},wo.Ok=function(){return this.a},wo.Pk=function(){return this.b},wo.Qk=function(){return this.c},wo.Rk=function(){throw Cs(new l0)},wo.Sk=function(oo){throw Cs(new l0)},wo.Tk=function(oo){this.a=oo},wo.Uk=function(oo){this.b=oo},wo.Vk=function(oo){this.c=oo},Vo(_h,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),zo(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},CU),wo.Ah=function(oo){return Jke(this,oo)},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.d;case 2:return fo?(!this.b&&(this.b=new Rw((Pu(),gv),Ey,this)),this.b):(!this.b&&(this.b=new Rw((Pu(),gv),Ey,this)),FH(this.b));case 3:return fKe(this);case 4:return!this.a&&(this.a=new Qp(Y3,this,4)),this.a;case 5:return!this.c&&(this.c=new g9(Y3,this,5)),this.c}return dx(this,oo-A1((Pu(),P4)),Uu((po=bo(n1(this,16),29),po||P4),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 3:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?Jke(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Fxe(this,bo(oo,155),fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),P4)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),P4)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 2:return!this.b&&(this.b=new Rw((Pu(),gv),Ey,this)),$Y(this.b,oo,fo);case 3:return Fxe(this,null,fo);case 4:return!this.a&&(this.a=new Qp(Y3,this,4)),sv(this.a,oo,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),P4)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),P4)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!fKe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return ux(this,oo-A1((Pu(),P4)),Uu((co=bo(n1(this,16),29),co||P4),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:HTt(this,u0(co));return;case 2:!this.b&&(this.b=new Rw((Pu(),gv),Ey,this)),uQ(this.b,co);return;case 3:ost(this,bo(co,155));return;case 4:!this.a&&(this.a=new Qp(Y3,this,4)),U1(this.a),!this.a&&(this.a=new Qp(Y3,this,4)),Bp(this.a,bo(co,16));return;case 5:!this.c&&(this.c=new g9(Y3,this,5)),U1(this.c),!this.c&&(this.c=new g9(Y3,this,5)),Bp(this.c,bo(co,16));return}vx(this,oo-A1((Pu(),P4)),Uu((fo=bo(n1(this,16),29),fo||P4),oo),co)},wo.ii=function(){return Pu(),P4},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:eEe(this,null);return;case 2:!this.b&&(this.b=new Rw((Pu(),gv),Ey,this)),this.b.c.$b();return;case 3:ost(this,null);return;case 4:!this.a&&(this.a=new Qp(Y3,this,4)),U1(this.a);return;case 5:!this.c&&(this.c=new g9(Y3,this,5)),U1(this.c);return}mx(this,oo-A1((Pu(),P4)),Uu((co=bo(n1(this,16),29),co||P4),oo))},wo.Ib=function(){return itt(this)},wo.d=null,Vo(_h,"EAnnotationImpl",519),zo(141,721,p$e,V2),wo.Gi=function(oo,co){skt(this,oo,bo(co,44))},wo.Wk=function(oo,co){return l4t(this,bo(oo,44),co)},wo.$i=function(oo){return bo(bo(this.c,71).$i(oo),136)},wo.Ii=function(){return bo(this.c,71).Ii()},wo.Ji=function(){return bo(this.c,71).Ji()},wo.Ki=function(oo){return bo(this.c,71).Ki(oo)},wo.Xk=function(oo,co){return $Y(this,oo,co)},wo.Fk=function(oo){return bo(this.c,79).Fk(oo)},wo.ak=function(){},wo.Qj=function(){return bo(this.c,79).Qj()},wo.ck=function(oo,co,fo){var po;return po=bo(zw(this.b).wi().si(this.b),136),po.Ci(oo),po.Di(co),po.nd(fo),po},wo.dk=function(){return new aye(this)},wo.Wb=function(oo){uQ(this,oo)},wo.Gk=function(){bo(this.c,79).Gk()},Vo(Ep,"EcoreEMap",141),zo(165,141,p$e,Rw),wo._j=function(){var oo,co,fo,po,vo,xo;if(this.d==null){for(xo=Al(oMe,h$e,66,2*this.f+1,0,1),fo=this.c.Kc();fo.e!=fo.i.gc();)co=bo(fo.Yj(),136),po=co.Bi(),vo=(po&q0)%xo.length,oo=xo[vo],!oo&&(oo=xo[vo]=new aye(this)),oo.Fc(co);this.d=xo}},Vo(_h,"EAnnotationImpl/1",165),zo(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),wo.Lh=function(oo,co,fo){var po,vo;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _f(),!!(this.Bb&256);case 3:return _f(),!!(this.Bb&512);case 4:return Ql(this.s);case 5:return Ql(this.t);case 6:return _f(),!!this.Jk();case 7:return _f(),vo=this.s,vo>=1;case 8:return co?Hx(this):this.r;case 9:return this.q}return dx(this,oo-A1(this.ii()),Uu((po=bo(n1(this,16),29),po||this.ii()),oo),co,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 9:return Vce(this,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),vo.wk().Ak(this,y2(this),co-A1(this.ii()),oo,fo)},wo.Wh=function(oo){var co,fo;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return fo=this.s,fo>=1;case 8:return!!this.r&&!this.q.e&&UC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&UC(this.q).i==0)}return ux(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.bi=function(oo,co){var fo,po;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:this.ui(u0(co));return;case 2:m4(this,lu(au(co)));return;case 3:b4(this,lu(au(co)));return;case 4:d4(this,bo(co,17).a);return;case 5:this.Zk(bo(co,17).a);return;case 8:TT(this,bo(co,142));return;case 9:po=b_(this,bo(co,89),null),po&&po.oj();return}vx(this,oo-A1(this.ii()),Uu((fo=bo(n1(this,16),29),fo||this.ii()),oo),co)},wo.ii=function(){return Pu(),Kxt},wo.ki=function(oo){var co,fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:this.ui(null);return;case 2:m4(this,!0);return;case 3:b4(this,!0);return;case 4:d4(this,0);return;case 5:this.Zk(1);return;case 8:TT(this,null);return;case 9:fo=b_(this,null,null),fo&&fo.oj();return}mx(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.pi=function(){Hx(this),this.Bb|=1},wo.Hk=function(){return Hx(this)},wo.Ik=function(){return this.t},wo.Jk=function(){var oo;return oo=this.t,oo>1||oo==-1},wo.Si=function(){return(this.Bb&512)!=0},wo.Yk=function(oo,co){return UEe(this,oo,co)},wo.Zk=function(oo){L$(this,oo)},wo.Ib=function(){return u4e(this)},wo.s=0,wo.t=1,Vo(_h,"ETypedElementImpl",292),zo(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),wo.Ah=function(oo){return Ynt(this,oo)},wo.Lh=function(oo,co,fo){var po,vo;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _f(),!!(this.Bb&256);case 3:return _f(),!!(this.Bb&512);case 4:return Ql(this.s);case 5:return Ql(this.t);case 6:return _f(),!!this.Jk();case 7:return _f(),vo=this.s,vo>=1;case 8:return co?Hx(this):this.r;case 9:return this.q;case 10:return _f(),!!(this.Bb&bS);case 11:return _f(),!!(this.Bb&cA);case 12:return _f(),!!(this.Bb&nA);case 13:return this.j;case 14:return XI(this);case 15:return _f(),!!(this.Bb&Y2);case 16:return _f(),!!(this.Bb&tE);case 17:return $$(this)}return dx(this,oo-A1(this.ii()),Uu((po=bo(n1(this,16),29),po||this.ii()),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 17:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?Ynt(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,17,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),xo.wk().zk(this,y2(this),co-A1(this.ii()),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 9:return Vce(this,fo);case 17:return Uw(this,null,17,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),vo.wk().Ak(this,y2(this),co-A1(this.ii()),oo,fo)},wo.Wh=function(oo){var co,fo;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return fo=this.s,fo>=1;case 8:return!!this.r&&!this.q.e&&UC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&UC(this.q).i==0);case 10:return(this.Bb&bS)==0;case 11:return(this.Bb&cA)!=0;case 12:return(this.Bb&nA)!=0;case 13:return this.j!=null;case 14:return XI(this)!=null;case 15:return(this.Bb&Y2)!=0;case 16:return(this.Bb&tE)!=0;case 17:return!!$$(this)}return ux(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.bi=function(oo,co){var fo,po;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:bue(this,u0(co));return;case 2:m4(this,lu(au(co)));return;case 3:b4(this,lu(au(co)));return;case 4:d4(this,bo(co,17).a);return;case 5:this.Zk(bo(co,17).a);return;case 8:TT(this,bo(co,142));return;case 9:po=b_(this,bo(co,89),null),po&&po.oj();return;case 10:II(this,lu(au(co)));return;case 11:LI(this,lu(au(co)));return;case 12:NI(this,lu(au(co)));return;case 13:F2e(this,u0(co));return;case 15:MI(this,lu(au(co)));return;case 16:BI(this,lu(au(co)));return}vx(this,oo-A1(this.ii()),Uu((fo=bo(n1(this,16),29),fo||this.ii()),oo),co)},wo.ii=function(){return Pu(),Uxt},wo.ki=function(oo){var co,fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Hs(this.Cb,90)&&U$(mw(bo(this.Cb,90)),4),s2(this,null);return;case 2:m4(this,!0);return;case 3:b4(this,!0);return;case 4:d4(this,0);return;case 5:this.Zk(1);return;case 8:TT(this,null);return;case 9:fo=b_(this,null,null),fo&&fo.oj();return;case 10:II(this,!0);return;case 11:LI(this,!1);return;case 12:NI(this,!1);return;case 13:this.i=null,iQ(this,null);return;case 15:MI(this,!1);return;case 16:BI(this,!1);return}mx(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.pi=function(){ZO(Fv((W2(),Gm),this)),Hx(this),this.Bb|=1},wo.pk=function(){return this.f},wo.ik=function(){return XI(this)},wo.qk=function(){return $$(this)},wo.uk=function(){return null},wo.$k=function(){return this.k},wo.Lj=function(){return this.n},wo.vk=function(){return ZQ(this)},wo.wk=function(){var oo,co,fo,po,vo,xo,Eo,To,Ao;return this.p||(fo=$$(this),(fo.i==null&&eE(fo),fo.i).length,po=this.uk(),po&&A1($$(po)),vo=Hx(this),Eo=vo.kk(),oo=Eo?Eo.i&1?Eo==kw?qp:Eo==Q1?Vm:Eo==HA?IN:Eo==Am?nm:Eo==tT?R6:Eo==j7?O6:Eo==Q2?wR:YB:Eo:null,co=XI(this),To=vo.ik(),rNt(this),this.Bb&tE&&((xo=s5e((W2(),Gm),fo))&&xo!=this||(xo=F8(Fv(Gm,this))))?this.p=new THe(this,xo):this.Jk()?this.al()?po?this.Bb&Y2?oo?this.bl()?this.p=new hT(47,oo,this,po):this.p=new hT(5,oo,this,po):this.bl()?this.p=new bT(46,this,po):this.p=new bT(4,this,po):oo?this.bl()?this.p=new hT(49,oo,this,po):this.p=new hT(7,oo,this,po):this.bl()?this.p=new bT(48,this,po):this.p=new bT(6,this,po):this.Bb&Y2?oo?oo==qT?this.p=new r4(50,Axt,this):this.bl()?this.p=new r4(43,oo,this):this.p=new r4(1,oo,this):this.bl()?this.p=new o4(42,this):this.p=new o4(0,this):oo?oo==qT?this.p=new r4(41,Axt,this):this.bl()?this.p=new r4(45,oo,this):this.p=new r4(3,oo,this):this.bl()?this.p=new o4(44,this):this.p=new o4(2,this):Hs(vo,156)?oo==une?this.p=new o4(40,this):this.Bb&512?this.Bb&Y2?oo?this.p=new r4(9,oo,this):this.p=new o4(8,this):oo?this.p=new r4(11,oo,this):this.p=new o4(10,this):this.Bb&Y2?oo?this.p=new r4(13,oo,this):this.p=new o4(12,this):oo?this.p=new r4(15,oo,this):this.p=new o4(14,this):po?(Ao=po.t,Ao>1||Ao==-1?this.bl()?this.Bb&Y2?oo?this.p=new hT(25,oo,this,po):this.p=new bT(24,this,po):oo?this.p=new hT(27,oo,this,po):this.p=new bT(26,this,po):this.Bb&Y2?oo?this.p=new hT(29,oo,this,po):this.p=new bT(28,this,po):oo?this.p=new hT(31,oo,this,po):this.p=new bT(30,this,po):this.bl()?this.Bb&Y2?oo?this.p=new hT(33,oo,this,po):this.p=new bT(32,this,po):oo?this.p=new hT(35,oo,this,po):this.p=new bT(34,this,po):this.Bb&Y2?oo?this.p=new hT(37,oo,this,po):this.p=new bT(36,this,po):oo?this.p=new hT(39,oo,this,po):this.p=new bT(38,this,po)):this.bl()?this.Bb&Y2?oo?this.p=new r4(17,oo,this):this.p=new o4(16,this):oo?this.p=new r4(19,oo,this):this.p=new o4(18,this):this.Bb&Y2?oo?this.p=new r4(21,oo,this):this.p=new o4(20,this):oo?this.p=new r4(23,oo,this):this.p=new o4(22,this):this._k()?this.bl()?this.p=new pGe(bo(vo,29),this,po):this.p=new kSe(bo(vo,29),this,po):Hs(vo,156)?oo==une?this.p=new o4(40,this):this.Bb&Y2?oo?this.p=new hWe(co,To,this,(Qfe(),Eo==Q1?SMe:Eo==kw?vMe:Eo==tT?_Me:Eo==HA?xMe:Eo==Am?wMe:Eo==j7?EMe:Eo==Q2?bMe:Eo==Rx?yMe:abe)):this.p=new TUe(bo(vo,156),co,To,this):oo?this.p=new dWe(co,To,this,(Qfe(),Eo==Q1?SMe:Eo==kw?vMe:Eo==tT?_Me:Eo==HA?xMe:Eo==Am?wMe:Eo==j7?EMe:Eo==Q2?bMe:Eo==Rx?yMe:abe)):this.p=new kUe(bo(vo,156),co,To,this):this.al()?po?this.Bb&Y2?this.bl()?this.p=new mGe(bo(vo,29),this,po):this.p=new uxe(bo(vo,29),this,po):this.bl()?this.p=new gGe(bo(vo,29),this,po):this.p=new Sce(bo(vo,29),this,po):this.Bb&Y2?this.bl()?this.p=new dVe(bo(vo,29),this):this.p=new Ewe(bo(vo,29),this):this.bl()?this.p=new fVe(bo(vo,29),this):this.p=new cce(bo(vo,29),this):this.bl()?po?this.Bb&Y2?this.p=new vGe(bo(vo,29),this,po):this.p=new lxe(bo(vo,29),this,po):this.Bb&Y2?this.p=new hVe(bo(vo,29),this):this.p=new kwe(bo(vo,29),this):po?this.Bb&Y2?this.p=new bGe(bo(vo,29),this,po):this.p=new cxe(bo(vo,29),this,po):this.Bb&Y2?this.p=new pVe(bo(vo,29),this):this.p=new GY(bo(vo,29),this)),this.p},wo.rk=function(){return(this.Bb&bS)!=0},wo._k=function(){return!1},wo.al=function(){return!1},wo.sk=function(){return(this.Bb&tE)!=0},wo.xk=function(){return Uue(this)},wo.bl=function(){return!1},wo.tk=function(){return(this.Bb&Y2)!=0},wo.cl=function(oo){this.k=oo},wo.ui=function(oo){bue(this,oo)},wo.Ib=function(){return yZ(this)},wo.e=!1,wo.n=0,Vo(_h,"EStructuralFeatureImpl",462),zo(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},qae),wo.Lh=function(oo,co,fo){var po,vo;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _f(),!!(this.Bb&256);case 3:return _f(),!!(this.Bb&512);case 4:return Ql(this.s);case 5:return Ql(this.t);case 6:return _f(),!!i4e(this);case 7:return _f(),vo=this.s,vo>=1;case 8:return co?Hx(this):this.r;case 9:return this.q;case 10:return _f(),!!(this.Bb&bS);case 11:return _f(),!!(this.Bb&cA);case 12:return _f(),!!(this.Bb&nA);case 13:return this.j;case 14:return XI(this);case 15:return _f(),!!(this.Bb&Y2);case 16:return _f(),!!(this.Bb&tE);case 17:return $$(this);case 18:return _f(),!!(this.Bb&Cy);case 19:return co?vfe(this):AXe(this)}return dx(this,oo-A1((Pu(),PA)),Uu((po=bo(n1(this,16),29),po||PA),oo),co,fo)},wo.Wh=function(oo){var co,fo;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i4e(this);case 7:return fo=this.s,fo>=1;case 8:return!!this.r&&!this.q.e&&UC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&UC(this.q).i==0);case 10:return(this.Bb&bS)==0;case 11:return(this.Bb&cA)!=0;case 12:return(this.Bb&nA)!=0;case 13:return this.j!=null;case 14:return XI(this)!=null;case 15:return(this.Bb&Y2)!=0;case 16:return(this.Bb&tE)!=0;case 17:return!!$$(this);case 18:return(this.Bb&Cy)!=0;case 19:return!!AXe(this)}return ux(this,oo-A1((Pu(),PA)),Uu((co=bo(n1(this,16),29),co||PA),oo))},wo.bi=function(oo,co){var fo,po;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:bue(this,u0(co));return;case 2:m4(this,lu(au(co)));return;case 3:b4(this,lu(au(co)));return;case 4:d4(this,bo(co,17).a);return;case 5:WPe(this,bo(co,17).a);return;case 8:TT(this,bo(co,142));return;case 9:po=b_(this,bo(co,89),null),po&&po.oj();return;case 10:II(this,lu(au(co)));return;case 11:LI(this,lu(au(co)));return;case 12:NI(this,lu(au(co)));return;case 13:F2e(this,u0(co));return;case 15:MI(this,lu(au(co)));return;case 16:BI(this,lu(au(co)));return;case 18:qfe(this,lu(au(co)));return}vx(this,oo-A1((Pu(),PA)),Uu((fo=bo(n1(this,16),29),fo||PA),oo),co)},wo.ii=function(){return Pu(),PA},wo.ki=function(oo){var co,fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Hs(this.Cb,90)&&U$(mw(bo(this.Cb,90)),4),s2(this,null);return;case 2:m4(this,!0);return;case 3:b4(this,!0);return;case 4:d4(this,0);return;case 5:this.b=0,L$(this,1);return;case 8:TT(this,null);return;case 9:fo=b_(this,null,null),fo&&fo.oj();return;case 10:II(this,!0);return;case 11:LI(this,!1);return;case 12:NI(this,!1);return;case 13:this.i=null,iQ(this,null);return;case 15:MI(this,!1);return;case 16:BI(this,!1);return;case 18:qfe(this,!1);return}mx(this,oo-A1((Pu(),PA)),Uu((co=bo(n1(this,16),29),co||PA),oo))},wo.pi=function(){vfe(this),ZO(Fv((W2(),Gm),this)),Hx(this),this.Bb|=1},wo.Jk=function(){return i4e(this)},wo.Yk=function(oo,co){return this.b=0,this.a=null,UEe(this,oo,co)},wo.Zk=function(oo){WPe(this,oo)},wo.Ib=function(){var oo;return this.Db&64?yZ(this):(oo=new Bx(yZ(this)),oo.a+=" (iD: ",J5(oo,(this.Bb&Cy)!=0),oo.a+=")",oo.a)},wo.b=0,Vo(_h,"EAttributeImpl",331),zo(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),wo.dl=function(oo){return oo.Dh()==this},wo.Ah=function(oo){return Sde(this,oo)},wo.Bh=function(oo,co){this.w=null,this.Db=co<<16|this.Db&255,this.Cb=oo},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return p6(this);case 4:return this.ik();case 5:return this.F;case 6:return co?zw(this):tI(this);case 7:return!this.A&&(this.A=new j2(k2,this,7)),this.A}return dx(this,oo-A1(this.ii()),Uu((po=bo(n1(this,16),29),po||this.ii()),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 6:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?Sde(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,6,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),xo.wk().zk(this,y2(this),co-A1(this.ii()),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 6:return Uw(this,null,6,fo);case 7:return!this.A&&(this.A=new j2(k2,this,7)),sv(this.A,oo,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||this.ii()),co),69),vo.wk().Ak(this,y2(this),co-A1(this.ii()),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!p6(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!tI(this);case 7:return!!this.A&&this.A.i!=0}return ux(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:wX(this,u0(co));return;case 2:Yle(this,u0(co));return;case 5:rN(this,u0(co));return;case 7:!this.A&&(this.A=new j2(k2,this,7)),U1(this.A),!this.A&&(this.A=new j2(k2,this,7)),Bp(this.A,bo(co,16));return}vx(this,oo-A1(this.ii()),Uu((fo=bo(n1(this,16),29),fo||this.ii()),oo),co)},wo.ii=function(){return Pu(),zxt},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Hs(this.Cb,184)&&(bo(this.Cb,184).tb=null),s2(this,null);return;case 2:AI(this,null),pI(this,this.D);return;case 5:rN(this,null);return;case 7:!this.A&&(this.A=new j2(k2,this,7)),U1(this.A);return}mx(this,oo-A1(this.ii()),Uu((co=bo(n1(this,16),29),co||this.ii()),oo))},wo.hk=function(){var oo;return this.G==-1&&(this.G=(oo=zw(this),oo?x4(oo.vi(),this):-1)),this.G},wo.ik=function(){return null},wo.jk=function(){return zw(this)},wo.el=function(){return this.v},wo.kk=function(){return p6(this)},wo.lk=function(){return this.D!=null?this.D:this.B},wo.mk=function(){return this.F},wo.fk=function(oo){return dhe(this,oo)},wo.fl=function(oo){this.v=oo},wo.gl=function(oo){hJe(this,oo)},wo.hl=function(oo){this.C=oo},wo.ui=function(oo){wX(this,oo)},wo.Ib=function(){return $Q(this)},wo.C=null,wo.D=null,wo.G=-1,Vo(_h,"EClassifierImpl",364),zo(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},yz),wo.dl=function(oo){return G5t(this,oo.Dh())},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return p6(this);case 4:return null;case 5:return this.F;case 6:return co?zw(this):tI(this);case 7:return!this.A&&(this.A=new j2(k2,this,7)),this.A;case 8:return _f(),!!(this.Bb&256);case 9:return _f(),!!(this.Bb&512);case 10:return Yv(this);case 11:return!this.q&&(this.q=new Bl(eS,this,11,10)),this.q;case 12:return H9(this);case 13:return dB(this);case 14:return dB(this),this.r;case 15:return H9(this),this.k;case 16:return U5e(this);case 17:return mhe(this);case 18:return eE(this);case 19:return uZ(this);case 20:return H9(this),this.o;case 21:return!this.s&&(this.s=new Bl(L2,this,21,17)),this.s;case 22:return Fy(this);case 23:return nhe(this)}return dx(this,oo-A1((Pu(),Q3)),Uu((po=bo(n1(this,16),29),po||Q3),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 6:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?Sde(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,6,fo);case 11:return!this.q&&(this.q=new Bl(eS,this,11,10)),a2(this.q,oo,fo);case 21:return!this.s&&(this.s=new Bl(L2,this,21,17)),a2(this.s,oo,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),Q3)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),Q3)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 6:return Uw(this,null,6,fo);case 7:return!this.A&&(this.A=new j2(k2,this,7)),sv(this.A,oo,fo);case 11:return!this.q&&(this.q=new Bl(eS,this,11,10)),sv(this.q,oo,fo);case 21:return!this.s&&(this.s=new Bl(L2,this,21,17)),sv(this.s,oo,fo);case 22:return sv(Fy(this),oo,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),Q3)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),Q3)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!p6(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!tI(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Fy(this.u.a).i!=0&&!(this.n&&fde(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return H9(this).i!=0;case 13:return dB(this).i!=0;case 14:return dB(this),this.r.i!=0;case 15:return H9(this),this.k.i!=0;case 16:return U5e(this).i!=0;case 17:return mhe(this).i!=0;case 18:return eE(this).i!=0;case 19:return uZ(this).i!=0;case 20:return H9(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&fde(this.n);case 23:return nhe(this).i!=0}return ux(this,oo-A1((Pu(),Q3)),Uu((co=bo(n1(this,16),29),co||Q3),oo))},wo.Zh=function(oo){var co;return co=this.i==null||this.q&&this.q.i!=0?null:jq(this,oo),co||A3e(this,oo)},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:wX(this,u0(co));return;case 2:Yle(this,u0(co));return;case 5:rN(this,u0(co));return;case 7:!this.A&&(this.A=new j2(k2,this,7)),U1(this.A),!this.A&&(this.A=new j2(k2,this,7)),Bp(this.A,bo(co,16));return;case 8:KEe(this,lu(au(co)));return;case 9:YEe(this,lu(au(co)));return;case 10:gB(Yv(this)),Bp(Yv(this),bo(co,16));return;case 11:!this.q&&(this.q=new Bl(eS,this,11,10)),U1(this.q),!this.q&&(this.q=new Bl(eS,this,11,10)),Bp(this.q,bo(co,16));return;case 21:!this.s&&(this.s=new Bl(L2,this,21,17)),U1(this.s),!this.s&&(this.s=new Bl(L2,this,21,17)),Bp(this.s,bo(co,16));return;case 22:U1(Fy(this)),Bp(Fy(this),bo(co,16));return}vx(this,oo-A1((Pu(),Q3)),Uu((fo=bo(n1(this,16),29),fo||Q3),oo),co)},wo.ii=function(){return Pu(),Q3},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Hs(this.Cb,184)&&(bo(this.Cb,184).tb=null),s2(this,null);return;case 2:AI(this,null),pI(this,this.D);return;case 5:rN(this,null);return;case 7:!this.A&&(this.A=new j2(k2,this,7)),U1(this.A);return;case 8:KEe(this,!1);return;case 9:YEe(this,!1);return;case 10:this.u&&gB(this.u);return;case 11:!this.q&&(this.q=new Bl(eS,this,11,10)),U1(this.q);return;case 21:!this.s&&(this.s=new Bl(L2,this,21,17)),U1(this.s);return;case 22:this.n&&U1(this.n);return}mx(this,oo-A1((Pu(),Q3)),Uu((co=bo(n1(this,16),29),co||Q3),oo))},wo.pi=function(){var oo,co;if(H9(this),dB(this),U5e(this),mhe(this),eE(this),uZ(this),nhe(this),xL(vTt(mw(this))),this.s)for(oo=0,co=this.s.i;oo=0;--co)Gs(this,co);return yke(this,oo)},wo.Gk=function(){U1(this)},wo.Zi=function(oo,co){return DZe(this,oo,co)},Vo(Ep,"EcoreEList",632),zo(505,632,iy,vH),wo.Li=function(){return!1},wo.Lj=function(){return this.c},wo.Mj=function(){return!1},wo.ol=function(){return!0},wo.Si=function(){return!0},wo.Wi=function(oo,co){return co},wo.Yi=function(){return!1},wo.c=0,Vo(Ep,"EObjectEList",505),zo(83,505,iy,Qp),wo.Mj=function(){return!0},wo.ml=function(){return!1},wo.al=function(){return!0},Vo(Ep,"EObjectContainmentEList",83),zo(555,83,iy,yY),wo.Ni=function(){this.b=!0},wo.Qj=function(){return this.b},wo.Gk=function(){var oo;U1(this),$w(this.e)?(oo=this.b,this.b=!1,W0(this.e,new dS(this.e,2,this.c,oo,!1))):this.b=!1},wo.b=!1,Vo(Ep,"EObjectContainmentEList/Unsettable",555),zo(1161,555,iy,uWe),wo.Ti=function(oo,co){var fo,po;return fo=bo(jL(this,oo,co),89),$w(this.e)&&kO(this,new PH(this.a,7,(Pu(),Hxt),Ql(co),(po=fo.c,Hs(po,90)?bo(po,29):nS),oo)),fo},wo.Uj=function(oo,co){return PNt(this,bo(oo,89),co)},wo.Vj=function(oo,co){return FNt(this,bo(oo,89),co)},wo.Wj=function(oo,co,fo){return HLt(this,bo(oo,89),bo(co,89),fo)},wo.Ij=function(oo,co,fo,po,vo){switch(oo){case 3:return gL(this,oo,co,fo,po,this.i>1);case 5:return gL(this,oo,co,fo,po,this.i-bo(fo,15).gc()>0);default:return new m5(this.e,oo,this.c,co,fo,po,!0)}},wo.Tj=function(){return!0},wo.Qj=function(){return fde(this)},wo.Gk=function(){U1(this)},Vo(_h,"EClassImpl/1",1161),zo(1175,1174,d$e),wo.dj=function(oo){var co,fo,po,vo,xo,Eo,To;if(fo=oo.gj(),fo!=8){if(po=wMt(oo),po==0)switch(fo){case 1:case 9:{To=oo.kj(),To!=null&&(co=mw(bo(To,482)),!co.c&&(co.c=new ZA),HX(co.c,oo.jj())),Eo=oo.ij(),Eo!=null&&(vo=bo(Eo,482),vo.Bb&1||(co=mw(vo),!co.c&&(co.c=new ZA),Y1(co.c,bo(oo.jj(),29))));break}case 3:{Eo=oo.ij(),Eo!=null&&(vo=bo(Eo,482),vo.Bb&1||(co=mw(vo),!co.c&&(co.c=new ZA),Y1(co.c,bo(oo.jj(),29))));break}case 5:{if(Eo=oo.ij(),Eo!=null)for(xo=bo(Eo,16).Kc();xo.Ob();)vo=bo(xo.Pb(),482),vo.Bb&1||(co=mw(vo),!co.c&&(co.c=new ZA),Y1(co.c,bo(oo.jj(),29)));break}case 4:{To=oo.kj(),To!=null&&(vo=bo(To,482),vo.Bb&1||(co=mw(vo),!co.c&&(co.c=new ZA),HX(co.c,oo.jj())));break}case 6:{if(To=oo.kj(),To!=null)for(xo=bo(To,16).Kc();xo.Ob();)vo=bo(xo.Pb(),482),vo.Bb&1||(co=mw(vo),!co.c&&(co.c=new ZA),HX(co.c,oo.jj()));break}}this.ql(po)}},wo.ql=function(oo){Gst(this,oo)},wo.b=63,Vo(_h,"ESuperAdapter",1175),zo(1176,1175,d$e,uFe),wo.ql=function(oo){U$(this,oo)},Vo(_h,"EClassImpl/10",1176),zo(1165,710,iy),wo.Ei=function(oo,co){return Mde(this,oo,co)},wo.Fi=function(oo){return Ont(this,oo)},wo.Gi=function(oo,co){hq(this,oo,co)},wo.Hi=function(oo){DH(this,oo)},wo.$i=function(oo){return E_e(this,oo)},wo.Xi=function(oo,co){return Kue(this,oo,co)},wo.Wk=function(oo,co){throw Cs(new l0)},wo.Ii=function(){return new E8(this)},wo.Ji=function(){return new oH(this)},wo.Ki=function(oo){return QH(this,oo)},wo.Xk=function(oo,co){throw Cs(new l0)},wo.Fk=function(oo){return this},wo.Qj=function(){return this.i!=0},wo.Wb=function(oo){throw Cs(new l0)},wo.Gk=function(){throw Cs(new l0)},Vo(Ep,"EcoreEList/UnmodifiableEList",1165),zo(328,1165,iy,c9),wo.Yi=function(){return!1},Vo(Ep,"EcoreEList/UnmodifiableEList/FastCompare",328),zo(1168,328,iy,aet),wo.dd=function(oo){var co,fo,po;if(Hs(oo,179)&&(co=bo(oo,179),fo=co.Lj(),fo!=-1)){for(po=this.i;fo4)if(this.fk(oo)){if(this.al()){if(po=bo(oo,54),fo=po.Eh(),To=fo==this.b&&(this.ml()?po.yh(po.Fh(),bo(Uu($2(this.b),this.Lj()).Hk(),29).kk())==bv(bo(Uu($2(this.b),this.Lj()),19)).n:-1-po.Fh()==this.Lj()),this.nl()&&!To&&!fo&&po.Jh()){for(vo=0;vo1||po==-1)):!1},wo.ml=function(){var oo,co,fo;return co=Uu($2(this.b),this.Lj()),Hs(co,102)?(oo=bo(co,19),fo=bv(oo),!!fo):!1},wo.nl=function(){var oo,co;return co=Uu($2(this.b),this.Lj()),Hs(co,102)?(oo=bo(co,19),(oo.Bb&hv)!=0):!1},wo.dd=function(oo){var co,fo,po,vo;if(po=this.zj(oo),po>=0)return po;if(this.ol()){for(fo=0,vo=this.Ej();fo=0;--oo)Xq(this,oo,this.xj(oo));return this.Fj()},wo.Qc=function(oo){var co;if(this.nl())for(co=this.Ej()-1;co>=0;--co)Xq(this,co,this.xj(co));return this.Gj(oo)},wo.Gk=function(){gB(this)},wo.Zi=function(oo,co){return dQe(this,oo,co)},Vo(Ep,"DelegatingEcoreEList",756),zo(1171,756,m$e,TVe),wo.qj=function(oo,co){g5t(this,oo,bo(co,29))},wo.rj=function(oo){rkt(this,bo(oo,29))},wo.xj=function(oo){var co,fo;return co=bo(Gs(Fy(this.a),oo),89),fo=co.c,Hs(fo,90)?bo(fo,29):(Pu(),nS)},wo.Cj=function(oo){var co,fo;return co=bo(X$(Fy(this.a),oo),89),fo=co.c,Hs(fo,90)?bo(fo,29):(Pu(),nS)},wo.Dj=function(oo,co){return hDt(this,oo,bo(co,29))},wo.Li=function(){return!1},wo.Ij=function(oo,co,fo,po,vo){return null},wo.sj=function(){return new hFe(this)},wo.tj=function(){U1(Fy(this.a))},wo.uj=function(oo){return stt(this,oo)},wo.vj=function(oo){var co,fo;for(fo=oo.Kc();fo.Ob();)if(co=fo.Pb(),!stt(this,co))return!1;return!0},wo.wj=function(oo){var co,fo,po;if(Hs(oo,15)&&(po=bo(oo,15),po.gc()==Fy(this.a).i)){for(co=po.Kc(),fo=new g1(this);co.Ob();)if($a(co.Pb())!==$a(k1(fo)))return!1;return!0}return!1},wo.yj=function(){var oo,co,fo,po,vo;for(fo=1,co=new g1(Fy(this.a));co.e!=co.i.gc();)oo=bo(k1(co),89),po=(vo=oo.c,Hs(vo,90)?bo(vo,29):(Pu(),nS)),fo=31*fo+(po?PC(po):0);return fo},wo.zj=function(oo){var co,fo,po,vo;for(po=0,fo=new g1(Fy(this.a));fo.e!=fo.i.gc();){if(co=bo(k1(fo),89),$a(oo)===$a((vo=co.c,Hs(vo,90)?bo(vo,29):(Pu(),nS))))return po;++po}return-1},wo.Aj=function(){return Fy(this.a).i==0},wo.Bj=function(){return null},wo.Ej=function(){return Fy(this.a).i},wo.Fj=function(){var oo,co,fo,po,vo,xo;for(xo=Fy(this.a).i,vo=Al(bm,Xu,1,xo,5,1),fo=0,co=new g1(Fy(this.a));co.e!=co.i.gc();)oo=bo(k1(co),89),vo[fo++]=(po=oo.c,Hs(po,90)?bo(po,29):(Pu(),nS));return vo},wo.Gj=function(oo){var co,fo,po,vo,xo,Eo,To;for(To=Fy(this.a).i,oo.lengthTo&&Np(oo,To,null),po=0,fo=new g1(Fy(this.a));fo.e!=fo.i.gc();)co=bo(k1(fo),89),xo=(Eo=co.c,Hs(Eo,90)?bo(Eo,29):(Pu(),nS)),Np(oo,po++,xo);return oo},wo.Hj=function(){var oo,co,fo,po,vo;for(vo=new Z5,vo.a+="[",oo=Fy(this.a),co=0,po=Fy(this.a).i;co>16,vo>=0?Sde(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,6,fo);case 9:return!this.a&&(this.a=new Bl(B5,this,9,5)),a2(this.a,oo,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),Z3)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),Z3)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 6:return Uw(this,null,6,fo);case 7:return!this.A&&(this.A=new j2(k2,this,7)),sv(this.A,oo,fo);case 9:return!this.a&&(this.a=new Bl(B5,this,9,5)),sv(this.a,oo,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),Z3)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),Z3)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!p6(this);case 4:return!!LEe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!tI(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return ux(this,oo-A1((Pu(),Z3)),Uu((co=bo(n1(this,16),29),co||Z3),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:wX(this,u0(co));return;case 2:Yle(this,u0(co));return;case 5:rN(this,u0(co));return;case 7:!this.A&&(this.A=new j2(k2,this,7)),U1(this.A),!this.A&&(this.A=new j2(k2,this,7)),Bp(this.A,bo(co,16));return;case 8:SQ(this,lu(au(co)));return;case 9:!this.a&&(this.a=new Bl(B5,this,9,5)),U1(this.a),!this.a&&(this.a=new Bl(B5,this,9,5)),Bp(this.a,bo(co,16));return}vx(this,oo-A1((Pu(),Z3)),Uu((fo=bo(n1(this,16),29),fo||Z3),oo),co)},wo.ii=function(){return Pu(),Z3},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Hs(this.Cb,184)&&(bo(this.Cb,184).tb=null),s2(this,null);return;case 2:AI(this,null),pI(this,this.D);return;case 5:rN(this,null);return;case 7:!this.A&&(this.A=new j2(k2,this,7)),U1(this.A);return;case 8:SQ(this,!0);return;case 9:!this.a&&(this.a=new Bl(B5,this,9,5)),U1(this.a);return}mx(this,oo-A1((Pu(),Z3)),Uu((co=bo(n1(this,16),29),co||Z3),oo))},wo.pi=function(){var oo,co;if(this.a)for(oo=0,co=this.a.i;oo>16==5?bo(this.Cb,685):null}return dx(this,oo-A1((Pu(),j4)),Uu((po=bo(n1(this,16),29),po||j4),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 5:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?irt(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,5,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),j4)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),j4)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 5:return Uw(this,null,5,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),j4)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),j4)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&bo(this.Cb,685))}return ux(this,oo-A1((Pu(),j4)),Uu((co=bo(n1(this,16),29),co||j4),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:s2(this,u0(co));return;case 2:efe(this,bo(co,17).a);return;case 3:rot(this,bo(co,2039));return;case 4:nfe(this,u0(co));return}vx(this,oo-A1((Pu(),j4)),Uu((fo=bo(n1(this,16),29),fo||j4),oo),co)},wo.ii=function(){return Pu(),j4},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:s2(this,null);return;case 2:efe(this,0);return;case 3:rot(this,null);return;case 4:nfe(this,null);return}mx(this,oo-A1((Pu(),j4)),Uu((co=bo(n1(this,16),29),co||j4),oo))},wo.Ib=function(){var oo;return oo=this.c,oo??this.zb},wo.b=null,wo.c=null,wo.d=0,Vo(_h,"EEnumLiteralImpl",582);var GXt=Ip(_h,"EFactoryImpl/InternalEDateTimeFormat");zo(499,1,{2114:1},Cz),Vo(_h,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),zo(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},EC),wo.Ch=function(oo,co,fo){var po;return fo=Uw(this,oo,co,fo),this.e&&Hs(oo,179)&&(po=cZ(this,this.e),po!=this.c&&(fo=iN(this,po,fo))),fo},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return this.f;case 1:return!this.d&&(this.d=new Qp(Cv,this,1)),this.d;case 2:return co?SZ(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return co?pde(this):this.a}return dx(this,oo-A1((Pu(),X6)),Uu((po=bo(n1(this,16),29),po||X6),oo),co,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return Uet(this,null,fo);case 1:return!this.d&&(this.d=new Qp(Cv,this,1)),sv(this.d,oo,fo);case 3:return Ket(this,null,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),X6)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),X6)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return ux(this,oo-A1((Pu(),X6)),Uu((co=bo(n1(this,16),29),co||X6),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:_rt(this,bo(co,89));return;case 1:!this.d&&(this.d=new Qp(Cv,this,1)),U1(this.d),!this.d&&(this.d=new Qp(Cv,this,1)),Bp(this.d,bo(co,16));return;case 3:p5e(this,bo(co,89));return;case 4:N5e(this,bo(co,850));return;case 5:cI(this,bo(co,142));return}vx(this,oo-A1((Pu(),X6)),Uu((fo=bo(n1(this,16),29),fo||X6),oo),co)},wo.ii=function(){return Pu(),X6},wo.ki=function(oo){var co;switch(oo){case 0:_rt(this,null);return;case 1:!this.d&&(this.d=new Qp(Cv,this,1)),U1(this.d);return;case 3:p5e(this,null);return;case 4:N5e(this,null);return;case 5:cI(this,null);return}mx(this,oo-A1((Pu(),X6)),Uu((co=bo(n1(this,16),29),co||X6),oo))},wo.Ib=function(){var oo;return oo=new Bw(gS(this)),oo.a+=" (expression: ",She(this,oo),oo.a+=")",oo.a};var mMe;Vo(_h,"EGenericTypeImpl",248),zo(2067,2062,RJ),wo.Gi=function(oo,co){_Ve(this,oo,co)},wo.Wk=function(oo,co){return _Ve(this,this.gc(),oo),co},wo.$i=function(oo){return wx(this.pj(),oo)},wo.Ii=function(){return this.Ji()},wo.pj=function(){return new vFe(this)},wo.Ji=function(){return this.Ki(0)},wo.Ki=function(oo){return this.pj().fd(oo)},wo.Xk=function(oo,co){return j$(this,oo,!0),co},wo.Ti=function(oo,co){var fo,po;return po=kde(this,co),fo=this.fd(oo),fo.Rb(po),po},wo.Ui=function(oo,co){var fo;j$(this,co,!0),fo=this.fd(oo),fo.Rb(co)},Vo(Ep,"AbstractSequentialInternalEList",2067),zo(496,2067,RJ,iH),wo.$i=function(oo){return wx(this.pj(),oo)},wo.Ii=function(){return this.b==null?(t4(),t4(),WG):this.sl()},wo.pj=function(){return new HHe(this.a,this.b)},wo.Ji=function(){return this.b==null?(t4(),t4(),WG):this.sl()},wo.Ki=function(oo){var co,fo;if(this.b==null){if(oo<0||oo>1)throw Cs(new Dv(PB+oo+", size=0"));return t4(),t4(),WG}for(fo=this.sl(),co=0;co0;)if(co=this.c[--this.d],(!this.e||co.pk()!=hM||co.Lj()!=0)&&(!this.vl()||this.b.Xh(co))){if(xo=this.b.Nh(co,this.ul()),this.f=(vv(),bo(co,69).xk()),this.f||co.Jk()){if(this.ul()?(po=bo(xo,15),this.k=po):(po=bo(xo,71),this.k=this.j=po),Hs(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?bit(this,this.p):Ait(this))return vo=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(oo=bo(vo,76),oo.Lk(),fo=oo.md(),this.i=fo):(fo=vo,this.i=fo),this.g=-3,!0}else if(xo!=null)return this.k=null,this.p=null,fo=xo,this.i=fo,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return vo=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(oo=bo(vo,76),oo.Lk(),fo=oo.md(),this.i=fo):(fo=vo,this.i=fo),this.g=-3,!0}},wo.Pb=function(){return hQ(this)},wo.Tb=function(){return this.a},wo.Ub=function(){var oo;if(this.g<-1||this.Sb())return--this.a,this.g=0,oo=this.i,this.Sb(),oo;throw Cs(new ay)},wo.Vb=function(){return this.a-1},wo.Qb=function(){throw Cs(new l0)},wo.ul=function(){return!1},wo.Wb=function(oo){throw Cs(new l0)},wo.vl=function(){return!0},wo.a=0,wo.d=0,wo.f=!1,wo.g=0,wo.n=0,wo.o=0;var WG;Vo(Ep,"EContentsEList/FeatureIteratorImpl",287),zo(711,287,OJ,_we),wo.ul=function(){return!0},Vo(Ep,"EContentsEList/ResolvingFeatureIteratorImpl",711),zo(1178,711,OJ,lVe),wo.vl=function(){return!1},Vo(_h,"ENamedElementImpl/1/1",1178),zo(1179,287,OJ,cVe),wo.vl=function(){return!1},Vo(_h,"ENamedElementImpl/1/2",1179),zo(39,152,$V,O$,kue,Em,jue,m5,dS,B_e,HKe,F_e,qKe,e_e,VKe,z_e,GKe,t_e,WKe,P_e,UKe,lL,PH,oue,j_e,KKe,n_e,YKe),wo.Kj=function(){return y_e(this)},wo.Rj=function(){var oo;return oo=y_e(this),oo?oo.ik():null},wo.hj=function(oo){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,oo)},wo.jj=function(){return this.c},wo.Sj=function(){var oo;return oo=y_e(this),oo?oo.tk():!1},wo.b=-1,Vo(_h,"ENotificationImpl",39),zo(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},Vae),wo.Ah=function(oo){return art(this,oo)},wo.Lh=function(oo,co,fo){var po,vo,xo;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _f(),!!(this.Bb&256);case 3:return _f(),!!(this.Bb&512);case 4:return Ql(this.s);case 5:return Ql(this.t);case 6:return _f(),xo=this.t,xo>1||xo==-1;case 7:return _f(),vo=this.s,vo>=1;case 8:return co?Hx(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?bo(this.Cb,29):null;case 11:return!this.d&&(this.d=new j2(k2,this,11)),this.d;case 12:return!this.c&&(this.c=new Bl(Y6,this,12,10)),this.c;case 13:return!this.a&&(this.a=new cH(this,this)),this.a;case 14:return vw(this)}return dx(this,oo-A1((Pu(),z4)),Uu((po=bo(n1(this,16),29),po||z4),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 10:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?art(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,10,fo);case 12:return!this.c&&(this.c=new Bl(Y6,this,12,10)),a2(this.c,oo,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),z4)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),z4)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 9:return Vce(this,fo);case 10:return Uw(this,null,10,fo);case 11:return!this.d&&(this.d=new j2(k2,this,11)),sv(this.d,oo,fo);case 12:return!this.c&&(this.c=new Bl(Y6,this,12,10)),sv(this.c,oo,fo);case 14:return sv(vw(this),oo,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),z4)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),z4)),oo,fo)},wo.Wh=function(oo){var co,fo,po;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return po=this.t,po>1||po==-1;case 7:return fo=this.s,fo>=1;case 8:return!!this.r&&!this.q.e&&UC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&UC(this.q).i==0);case 10:return!!(this.Db>>16==10&&bo(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&vw(this.a.a).i!=0&&!(this.b&&dde(this.b));case 14:return!!this.b&&dde(this.b)}return ux(this,oo-A1((Pu(),z4)),Uu((co=bo(n1(this,16),29),co||z4),oo))},wo.bi=function(oo,co){var fo,po;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:s2(this,u0(co));return;case 2:m4(this,lu(au(co)));return;case 3:b4(this,lu(au(co)));return;case 4:d4(this,bo(co,17).a);return;case 5:L$(this,bo(co,17).a);return;case 8:TT(this,bo(co,142));return;case 9:po=b_(this,bo(co,89),null),po&&po.oj();return;case 11:!this.d&&(this.d=new j2(k2,this,11)),U1(this.d),!this.d&&(this.d=new j2(k2,this,11)),Bp(this.d,bo(co,16));return;case 12:!this.c&&(this.c=new Bl(Y6,this,12,10)),U1(this.c),!this.c&&(this.c=new Bl(Y6,this,12,10)),Bp(this.c,bo(co,16));return;case 13:!this.a&&(this.a=new cH(this,this)),gB(this.a),!this.a&&(this.a=new cH(this,this)),Bp(this.a,bo(co,16));return;case 14:U1(vw(this)),Bp(vw(this),bo(co,16));return}vx(this,oo-A1((Pu(),z4)),Uu((fo=bo(n1(this,16),29),fo||z4),oo),co)},wo.ii=function(){return Pu(),z4},wo.ki=function(oo){var co,fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:s2(this,null);return;case 2:m4(this,!0);return;case 3:b4(this,!0);return;case 4:d4(this,0);return;case 5:L$(this,1);return;case 8:TT(this,null);return;case 9:fo=b_(this,null,null),fo&&fo.oj();return;case 11:!this.d&&(this.d=new j2(k2,this,11)),U1(this.d);return;case 12:!this.c&&(this.c=new Bl(Y6,this,12,10)),U1(this.c);return;case 13:this.a&&gB(this.a);return;case 14:this.b&&U1(this.b);return}mx(this,oo-A1((Pu(),z4)),Uu((co=bo(n1(this,16),29),co||z4),oo))},wo.pi=function(){var oo,co;if(this.c)for(oo=0,co=this.c.i;ooTo&&Np(oo,To,null),po=0,fo=new g1(vw(this.a));fo.e!=fo.i.gc();)co=bo(k1(fo),89),xo=(Eo=co.c,Eo||(Pu(),N_)),Np(oo,po++,xo);return oo},wo.Hj=function(){var oo,co,fo,po,vo;for(vo=new Z5,vo.a+="[",oo=vw(this.a),co=0,po=vw(this.a).i;co1);case 5:return gL(this,oo,co,fo,po,this.i-bo(fo,15).gc()>0);default:return new m5(this.e,oo,this.c,co,fo,po,!0)}},wo.Tj=function(){return!0},wo.Qj=function(){return dde(this)},wo.Gk=function(){U1(this)},Vo(_h,"EOperationImpl/2",1377),zo(507,1,{2037:1,507:1},kHe),Vo(_h,"EPackageImpl/1",507),zo(14,83,iy,Bl),wo.il=function(){return this.d},wo.jl=function(){return this.b},wo.ml=function(){return!0},wo.b=0,Vo(Ep,"EObjectContainmentWithInverseEList",14),zo(365,14,iy,k8),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectContainmentWithInverseEList/Resolving",365),zo(308,365,iy,k$),wo.Ni=function(){this.a.tb=null},Vo(_h,"EPackageImpl/2",308),zo(1278,1,{},mbe),Vo(_h,"EPackageImpl/3",1278),zo(733,45,W9,kye),wo._b=function(oo){return Cm(oo)?aue(this,oo):!!wv(this.f,oo)},Vo(_h,"EPackageRegistryImpl",733),zo(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},Gae),wo.Ah=function(oo){return lrt(this,oo)},wo.Lh=function(oo,co,fo){var po,vo,xo;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _f(),!!(this.Bb&256);case 3:return _f(),!!(this.Bb&512);case 4:return Ql(this.s);case 5:return Ql(this.t);case 6:return _f(),xo=this.t,xo>1||xo==-1;case 7:return _f(),vo=this.s,vo>=1;case 8:return co?Hx(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?bo(this.Cb,62):null}return dx(this,oo-A1((Pu(),jA)),Uu((po=bo(n1(this,16),29),po||jA),oo),co,fo)},wo.Sh=function(oo,co,fo){var po,vo,xo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),a2(this.Ab,oo,fo);case 10:return this.Cb&&(fo=(vo=this.Db>>16,vo>=0?lrt(this,fo):this.Cb.Th(this,-1-vo,null,fo))),Uw(this,oo,10,fo)}return xo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),jA)),co),69),xo.wk().zk(this,y2(this),co-A1((Pu(),jA)),oo,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 9:return Vce(this,fo);case 10:return Uw(this,null,10,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),jA)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),jA)),oo,fo)},wo.Wh=function(oo){var co,fo,po;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return po=this.t,po>1||po==-1;case 7:return fo=this.s,fo>=1;case 8:return!!this.r&&!this.q.e&&UC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&UC(this.q).i==0);case 10:return!!(this.Db>>16==10&&bo(this.Cb,62))}return ux(this,oo-A1((Pu(),jA)),Uu((co=bo(n1(this,16),29),co||jA),oo))},wo.ii=function(){return Pu(),jA},Vo(_h,"EParameterImpl",518),zo(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},$we),wo.Lh=function(oo,co,fo){var po,vo,xo,Eo;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _f(),!!(this.Bb&256);case 3:return _f(),!!(this.Bb&512);case 4:return Ql(this.s);case 5:return Ql(this.t);case 6:return _f(),Eo=this.t,Eo>1||Eo==-1;case 7:return _f(),vo=this.s,vo>=1;case 8:return co?Hx(this):this.r;case 9:return this.q;case 10:return _f(),!!(this.Bb&bS);case 11:return _f(),!!(this.Bb&cA);case 12:return _f(),!!(this.Bb&nA);case 13:return this.j;case 14:return XI(this);case 15:return _f(),!!(this.Bb&Y2);case 16:return _f(),!!(this.Bb&tE);case 17:return $$(this);case 18:return _f(),!!(this.Bb&Cy);case 19:return _f(),xo=bv(this),!!(xo&&xo.Bb&Cy);case 20:return _f(),!!(this.Bb&hv);case 21:return co?bv(this):this.b;case 22:return co?TEe(this):yXe(this);case 23:return!this.a&&(this.a=new g9(BA,this,23)),this.a}return dx(this,oo-A1((Pu(),L7)),Uu((po=bo(n1(this,16),29),po||L7),oo),co,fo)},wo.Wh=function(oo){var co,fo,po,vo;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return vo=this.t,vo>1||vo==-1;case 7:return fo=this.s,fo>=1;case 8:return!!this.r&&!this.q.e&&UC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&UC(this.q).i==0);case 10:return(this.Bb&bS)==0;case 11:return(this.Bb&cA)!=0;case 12:return(this.Bb&nA)!=0;case 13:return this.j!=null;case 14:return XI(this)!=null;case 15:return(this.Bb&Y2)!=0;case 16:return(this.Bb&tE)!=0;case 17:return!!$$(this);case 18:return(this.Bb&Cy)!=0;case 19:return po=bv(this),!!po&&(po.Bb&Cy)!=0;case 20:return(this.Bb&hv)==0;case 21:return!!this.b;case 22:return!!yXe(this);case 23:return!!this.a&&this.a.i!=0}return ux(this,oo-A1((Pu(),L7)),Uu((co=bo(n1(this,16),29),co||L7),oo))},wo.bi=function(oo,co){var fo,po;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:bue(this,u0(co));return;case 2:m4(this,lu(au(co)));return;case 3:b4(this,lu(au(co)));return;case 4:d4(this,bo(co,17).a);return;case 5:L$(this,bo(co,17).a);return;case 8:TT(this,bo(co,142));return;case 9:po=b_(this,bo(co,89),null),po&&po.oj();return;case 10:II(this,lu(au(co)));return;case 11:LI(this,lu(au(co)));return;case 12:NI(this,lu(au(co)));return;case 13:F2e(this,u0(co));return;case 15:MI(this,lu(au(co)));return;case 16:BI(this,lu(au(co)));return;case 18:P$t(this,lu(au(co)));return;case 20:ike(this,lu(au(co)));return;case 21:nEe(this,bo(co,19));return;case 23:!this.a&&(this.a=new g9(BA,this,23)),U1(this.a),!this.a&&(this.a=new g9(BA,this,23)),Bp(this.a,bo(co,16));return}vx(this,oo-A1((Pu(),L7)),Uu((fo=bo(n1(this,16),29),fo||L7),oo),co)},wo.ii=function(){return Pu(),L7},wo.ki=function(oo){var co,fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:Hs(this.Cb,90)&&U$(mw(bo(this.Cb,90)),4),s2(this,null);return;case 2:m4(this,!0);return;case 3:b4(this,!0);return;case 4:d4(this,0);return;case 5:L$(this,1);return;case 8:TT(this,null);return;case 9:fo=b_(this,null,null),fo&&fo.oj();return;case 10:II(this,!0);return;case 11:LI(this,!1);return;case 12:NI(this,!1);return;case 13:this.i=null,iQ(this,null);return;case 15:MI(this,!1);return;case 16:BI(this,!1);return;case 18:rke(this,!1),Hs(this.Cb,90)&&U$(mw(bo(this.Cb,90)),2);return;case 20:ike(this,!0);return;case 21:nEe(this,null);return;case 23:!this.a&&(this.a=new g9(BA,this,23)),U1(this.a);return}mx(this,oo-A1((Pu(),L7)),Uu((co=bo(n1(this,16),29),co||L7),oo))},wo.pi=function(){TEe(this),ZO(Fv((W2(),Gm),this)),Hx(this),this.Bb|=1},wo.uk=function(){return bv(this)},wo._k=function(){var oo;return oo=bv(this),!!oo&&(oo.Bb&Cy)!=0},wo.al=function(){return(this.Bb&Cy)!=0},wo.bl=function(){return(this.Bb&hv)!=0},wo.Yk=function(oo,co){return this.c=null,UEe(this,oo,co)},wo.Ib=function(){var oo;return this.Db&64?yZ(this):(oo=new Bx(yZ(this)),oo.a+=" (containment: ",J5(oo,(this.Bb&Cy)!=0),oo.a+=", resolveProxies: ",J5(oo,(this.Bb&hv)!=0),oo.a+=")",oo.a)},Vo(_h,"EReferenceImpl",102),zo(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},noe),wo.Fb=function(oo){return this===oo},wo.ld=function(){return this.b},wo.md=function(){return this.c},wo.Hb=function(){return PC(this)},wo.Di=function(oo){qTt(this,u0(oo))},wo.nd=function(oo){return $Tt(this,u0(oo))},wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return this.b;case 1:return this.c}return dx(this,oo-A1((Pu(),gv)),Uu((po=bo(n1(this,16),29),po||gv),oo),co,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return this.b!=null;case 1:return this.c!=null}return ux(this,oo-A1((Pu(),gv)),Uu((co=bo(n1(this,16),29),co||gv),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:VTt(this,u0(co));return;case 1:J_e(this,u0(co));return}vx(this,oo-A1((Pu(),gv)),Uu((fo=bo(n1(this,16),29),fo||gv),oo),co)},wo.ii=function(){return Pu(),gv},wo.ki=function(oo){var co;switch(oo){case 0:Z_e(this,null);return;case 1:J_e(this,null);return}mx(this,oo-A1((Pu(),gv)),Uu((co=bo(n1(this,16),29),co||gv),oo))},wo.Bi=function(){var oo;return this.a==-1&&(oo=this.b,this.a=oo==null?0:h4(oo)),this.a},wo.Ci=function(oo){this.a=oo},wo.Ib=function(){var oo;return this.Db&64?gS(this):(oo=new Bx(gS(this)),oo.a+=" (key: ",Av(oo,this.b),oo.a+=", value: ",Av(oo,this.c),oo.a+=")",oo.a)},wo.a=-1,wo.b=null,wo.c=null;var Ey=Vo(_h,"EStringToStringMapEntryImpl",561),Zxt=Ip(Ep,"FeatureMap/Entry/Internal");zo(576,1,IJ),wo.xl=function(oo){return this.yl(bo(oo,54))},wo.yl=function(oo){return this.xl(oo)},wo.Fb=function(oo){var co,fo;return this===oo?!0:Hs(oo,76)?(co=bo(oo,76),co.Lk()==this.c?(fo=this.md(),fo==null?co.md()==null:U0(fo,co.md())):!1):!1},wo.Lk=function(){return this.c},wo.Hb=function(){var oo;return oo=this.md(),dp(this.c)^(oo==null?0:dp(oo))},wo.Ib=function(){var oo,co;return oo=this.c,co=zw(oo.qk()).yi(),oo.xe(),(co!=null&&co.length!=0?co+":"+oo.xe():oo.xe())+"="+this.md()},Vo(_h,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),zo(791,576,IJ,Bwe),wo.yl=function(oo){return new Bwe(this.c,oo)},wo.md=function(){return this.a},wo.zl=function(oo,co,fo){return $Rt(this,oo,this.a,co,fo)},wo.Al=function(oo,co,fo){return ARt(this,oo,this.a,co,fo)},Vo(_h,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),zo(1350,1,{},THe),wo.yk=function(oo,co,fo,po,vo){var xo;return xo=bo(oI(oo,this.b),220),xo.Yl(this.a).Fk(po)},wo.zk=function(oo,co,fo,po,vo){var xo;return xo=bo(oI(oo,this.b),220),xo.Pl(this.a,po,vo)},wo.Ak=function(oo,co,fo,po,vo){var xo;return xo=bo(oI(oo,this.b),220),xo.Ql(this.a,po,vo)},wo.Bk=function(oo,co,fo){var po;return po=bo(oI(oo,this.b),220),po.Yl(this.a).Qj()},wo.Ck=function(oo,co,fo,po){var vo;vo=bo(oI(oo,this.b),220),vo.Yl(this.a).Wb(po)},wo.Dk=function(oo,co,fo){return bo(oI(oo,this.b),220).Yl(this.a)},wo.Ek=function(oo,co,fo){var po;po=bo(oI(oo,this.b),220),po.Yl(this.a).Gk()},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),zo(91,1,{},r4,hT,o4,bT),wo.yk=function(oo,co,fo,po,vo){var xo;if(xo=co.li(fo),xo==null&&co.mi(fo,xo=OZ(this,oo)),!vo)switch(this.e){case 50:case 41:return bo(xo,597).bk();case 40:return bo(xo,220).Vl()}return xo},wo.zk=function(oo,co,fo,po,vo){var xo,Eo;return Eo=co.li(fo),Eo==null&&co.mi(fo,Eo=OZ(this,oo)),xo=bo(Eo,71).Wk(po,vo),xo},wo.Ak=function(oo,co,fo,po,vo){var xo;return xo=co.li(fo),xo!=null&&(vo=bo(xo,71).Xk(po,vo)),vo},wo.Bk=function(oo,co,fo){var po;return po=co.li(fo),po!=null&&bo(po,79).Qj()},wo.Ck=function(oo,co,fo,po){var vo;vo=bo(co.li(fo),79),!vo&&co.mi(fo,vo=OZ(this,oo)),vo.Wb(po)},wo.Dk=function(oo,co,fo){var po,vo;return vo=co.li(fo),vo==null&&co.mi(fo,vo=OZ(this,oo)),Hs(vo,79)?bo(vo,79):(po=bo(co.li(fo),15),new gFe(po))},wo.Ek=function(oo,co,fo){var po;po=bo(co.li(fo),79),!po&&co.mi(fo,po=OZ(this,oo)),po.Gk()},wo.b=0,wo.e=0,Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),zo(512,1,{}),wo.zk=function(oo,co,fo,po,vo){throw Cs(new l0)},wo.Ak=function(oo,co,fo,po,vo){throw Cs(new l0)},wo.Dk=function(oo,co,fo){return new EUe(this,oo,co,fo)};var QE;Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),zo(1367,1,ape,EUe),wo.Fk=function(oo){return this.a.yk(this.c,this.d,this.b,oo,!0)},wo.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},wo.Wb=function(oo){this.a.Ck(this.c,this.d,this.b,oo)},wo.Gk=function(){this.a.Ek(this.c,this.d,this.b)},wo.b=0,Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),zo(784,512,{},kSe),wo.yk=function(oo,co,fo,po,vo){return lhe(oo,oo.Ph(),oo.Fh())==this.b?this.bl()&&po?Kde(oo):oo.Ph():null},wo.zk=function(oo,co,fo,po,vo){var xo,Eo;return oo.Ph()&&(vo=(xo=oo.Fh(),xo>=0?oo.Ah(vo):oo.Ph().Th(oo,-1-xo,null,vo))),Eo=Ap(oo.Dh(),this.e),oo.Ch(po,Eo,vo)},wo.Ak=function(oo,co,fo,po,vo){var xo;return xo=Ap(oo.Dh(),this.e),oo.Ch(null,xo,vo)},wo.Bk=function(oo,co,fo){var po;return po=Ap(oo.Dh(),this.e),!!oo.Ph()&&oo.Fh()==po},wo.Ck=function(oo,co,fo,po){var vo,xo,Eo,To,Ao;if(po!=null&&!dhe(this.a,po))throw Cs(new TO(NJ+(Hs(po,58)?h5e(bo(po,58).Dh()):N_e(Nw(po)))+MJ+this.a+"'"));if(vo=oo.Ph(),Eo=Ap(oo.Dh(),this.e),$a(po)!==$a(vo)||oo.Fh()!=Eo&&po!=null){if(HI(oo,bo(po,58)))throw Cs(new i1(BB+oo.Ib()));Ao=null,vo&&(Ao=(xo=oo.Fh(),xo>=0?oo.Ah(Ao):oo.Ph().Th(oo,-1-xo,null,Ao))),To=bo(po,54),To&&(Ao=To.Rh(oo,Ap(To.Dh(),this.b),null,Ao)),Ao=oo.Ch(To,Eo,Ao),Ao&&Ao.oj()}else oo.vh()&&oo.wh()&&W0(oo,new Em(oo,1,Eo,po,po))},wo.Ek=function(oo,co,fo){var po,vo,xo,Eo;po=oo.Ph(),po?(Eo=(vo=oo.Fh(),vo>=0?oo.Ah(null):oo.Ph().Th(oo,-1-vo,null,null)),xo=Ap(oo.Dh(),this.e),Eo=oo.Ch(null,xo,Eo),Eo&&Eo.oj()):oo.vh()&&oo.wh()&&W0(oo,new lL(oo,1,this.e,null,null))},wo.bl=function(){return!1},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),zo(1351,784,{},pGe),wo.bl=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),zo(574,512,{}),wo.yk=function(oo,co,fo,po,vo){var xo;return xo=co.li(fo),xo==null?this.b:$a(xo)===$a(QE)?null:xo},wo.Bk=function(oo,co,fo){var po;return po=co.li(fo),po!=null&&($a(po)===$a(QE)||!U0(po,this.b))},wo.Ck=function(oo,co,fo,po){var vo,xo;oo.vh()&&oo.wh()?(vo=(xo=co.li(fo),xo==null?this.b:$a(xo)===$a(QE)?null:xo),po==null?this.c!=null?(co.mi(fo,null),po=this.b):this.b!=null?co.mi(fo,QE):co.mi(fo,null):(this.Bl(po),co.mi(fo,po)),W0(oo,this.d.Cl(oo,1,this.e,vo,po))):po==null?this.c!=null?co.mi(fo,null):this.b!=null?co.mi(fo,QE):co.mi(fo,null):(this.Bl(po),co.mi(fo,po))},wo.Ek=function(oo,co,fo){var po,vo;oo.vh()&&oo.wh()?(po=(vo=co.li(fo),vo==null?this.b:$a(vo)===$a(QE)?null:vo),co.ni(fo),W0(oo,this.d.Cl(oo,1,this.e,po,this.b))):co.ni(fo)},wo.Bl=function(oo){throw Cs(new TFe)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),zo(n7,1,{},roe),wo.Cl=function(oo,co,fo,po,vo){return new lL(oo,co,fo,po,vo)},wo.Dl=function(oo,co,fo,po,vo,xo){return new oue(oo,co,fo,po,vo,xo)};var vMe,bMe,yMe,wMe,xMe,SMe,_Me,abe,EMe;Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",n7),zo(1368,n7,{},ioe),wo.Cl=function(oo,co,fo,po,vo){return new n_e(oo,co,fo,lu(au(po)),lu(au(vo)))},wo.Dl=function(oo,co,fo,po,vo,xo){return new YKe(oo,co,fo,lu(au(po)),lu(au(vo)),xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),zo(1369,n7,{},ooe),wo.Cl=function(oo,co,fo,po,vo){return new B_e(oo,co,fo,bo(po,222).a,bo(vo,222).a)},wo.Dl=function(oo,co,fo,po,vo,xo){return new HKe(oo,co,fo,bo(po,222).a,bo(vo,222).a,xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),zo(1370,n7,{},soe),wo.Cl=function(oo,co,fo,po,vo){return new F_e(oo,co,fo,bo(po,180).a,bo(vo,180).a)},wo.Dl=function(oo,co,fo,po,vo,xo){return new qKe(oo,co,fo,bo(po,180).a,bo(vo,180).a,xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),zo(1371,n7,{},aoe),wo.Cl=function(oo,co,fo,po,vo){return new e_e(oo,co,fo,na(Tl(po)),na(Tl(vo)))},wo.Dl=function(oo,co,fo,po,vo,xo){return new VKe(oo,co,fo,na(Tl(po)),na(Tl(vo)),xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),zo(1372,n7,{},loe),wo.Cl=function(oo,co,fo,po,vo){return new z_e(oo,co,fo,bo(po,161).a,bo(vo,161).a)},wo.Dl=function(oo,co,fo,po,vo,xo){return new GKe(oo,co,fo,bo(po,161).a,bo(vo,161).a,xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),zo(1373,n7,{},coe),wo.Cl=function(oo,co,fo,po,vo){return new t_e(oo,co,fo,bo(po,17).a,bo(vo,17).a)},wo.Dl=function(oo,co,fo,po,vo,xo){return new WKe(oo,co,fo,bo(po,17).a,bo(vo,17).a,xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),zo(1374,n7,{},uoe),wo.Cl=function(oo,co,fo,po,vo){return new P_e(oo,co,fo,bo(po,168).a,bo(vo,168).a)},wo.Dl=function(oo,co,fo,po,vo,xo){return new UKe(oo,co,fo,bo(po,168).a,bo(vo,168).a,xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),zo(1375,n7,{},foe),wo.Cl=function(oo,co,fo,po,vo){return new j_e(oo,co,fo,bo(po,191).a,bo(vo,191).a)},wo.Dl=function(oo,co,fo,po,vo,xo){return new KKe(oo,co,fo,bo(po,191).a,bo(vo,191).a,xo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),zo(1353,574,{},kUe),wo.Bl=function(oo){if(!this.a.fk(oo))throw Cs(new TO(NJ+Nw(oo)+MJ+this.a+"'"))},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),zo(1354,574,{},dWe),wo.Bl=function(oo){},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),zo(785,574,{}),wo.Bk=function(oo,co,fo){var po;return po=co.li(fo),po!=null},wo.Ck=function(oo,co,fo,po){var vo,xo;oo.vh()&&oo.wh()?(vo=!0,xo=co.li(fo),xo==null?(vo=!1,xo=this.b):$a(xo)===$a(QE)&&(xo=null),po==null?this.c!=null?(co.mi(fo,null),po=this.b):co.mi(fo,QE):(this.Bl(po),co.mi(fo,po)),W0(oo,this.d.Dl(oo,1,this.e,xo,po,!vo))):po==null?this.c!=null?co.mi(fo,null):co.mi(fo,QE):(this.Bl(po),co.mi(fo,po))},wo.Ek=function(oo,co,fo){var po,vo;oo.vh()&&oo.wh()?(po=!0,vo=co.li(fo),vo==null?(po=!1,vo=this.b):$a(vo)===$a(QE)&&(vo=null),co.ni(fo),W0(oo,this.d.Dl(oo,2,this.e,vo,this.b,po))):co.ni(fo)},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),zo(1355,785,{},TUe),wo.Bl=function(oo){if(!this.a.fk(oo))throw Cs(new TO(NJ+Nw(oo)+MJ+this.a+"'"))},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),zo(1356,785,{},hWe),wo.Bl=function(oo){},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),zo(410,512,{},GY),wo.yk=function(oo,co,fo,po,vo){var xo,Eo,To,Ao,Io;if(Io=co.li(fo),this.tk()&&$a(Io)===$a(QE))return null;if(this.bl()&&po&&Io!=null){if(To=bo(Io,54),To.Vh()&&(Ao=y3(oo,To),To!=Ao)){if(!dhe(this.a,Ao))throw Cs(new TO(NJ+Nw(Ao)+MJ+this.a+"'"));co.mi(fo,Io=Ao),this.al()&&(xo=bo(Ao,54),Eo=To.Th(oo,this.b?Ap(To.Dh(),this.b):-1-Ap(oo.Dh(),this.e),null,null),!xo.Ph()&&(Eo=xo.Rh(oo,this.b?Ap(xo.Dh(),this.b):-1-Ap(oo.Dh(),this.e),null,Eo)),Eo&&Eo.oj()),oo.vh()&&oo.wh()&&W0(oo,new lL(oo,9,this.e,To,Ao))}return Io}else return Io},wo.zk=function(oo,co,fo,po,vo){var xo,Eo;return Eo=co.li(fo),$a(Eo)===$a(QE)&&(Eo=null),co.mi(fo,po),this.Mj()?$a(Eo)!==$a(po)&&Eo!=null&&(xo=bo(Eo,54),vo=xo.Th(oo,Ap(xo.Dh(),this.b),null,vo)):this.al()&&Eo!=null&&(vo=bo(Eo,54).Th(oo,-1-Ap(oo.Dh(),this.e),null,vo)),oo.vh()&&oo.wh()&&(!vo&&(vo=new e3(4)),vo.nj(new lL(oo,1,this.e,Eo,po))),vo},wo.Ak=function(oo,co,fo,po,vo){var xo;return xo=co.li(fo),$a(xo)===$a(QE)&&(xo=null),co.ni(fo),oo.vh()&&oo.wh()&&(!vo&&(vo=new e3(4)),this.tk()?vo.nj(new lL(oo,2,this.e,xo,null)):vo.nj(new lL(oo,1,this.e,xo,null))),vo},wo.Bk=function(oo,co,fo){var po;return po=co.li(fo),po!=null},wo.Ck=function(oo,co,fo,po){var vo,xo,Eo,To,Ao;if(po!=null&&!dhe(this.a,po))throw Cs(new TO(NJ+(Hs(po,58)?h5e(bo(po,58).Dh()):N_e(Nw(po)))+MJ+this.a+"'"));Ao=co.li(fo),To=Ao!=null,this.tk()&&$a(Ao)===$a(QE)&&(Ao=null),Eo=null,this.Mj()?$a(Ao)!==$a(po)&&(Ao!=null&&(vo=bo(Ao,54),Eo=vo.Th(oo,Ap(vo.Dh(),this.b),null,Eo)),po!=null&&(vo=bo(po,54),Eo=vo.Rh(oo,Ap(vo.Dh(),this.b),null,Eo))):this.al()&&$a(Ao)!==$a(po)&&(Ao!=null&&(Eo=bo(Ao,54).Th(oo,-1-Ap(oo.Dh(),this.e),null,Eo)),po!=null&&(Eo=bo(po,54).Rh(oo,-1-Ap(oo.Dh(),this.e),null,Eo))),po==null&&this.tk()?co.mi(fo,QE):co.mi(fo,po),oo.vh()&&oo.wh()?(xo=new oue(oo,1,this.e,Ao,po,this.tk()&&!To),Eo?(Eo.nj(xo),Eo.oj()):W0(oo,xo)):Eo&&Eo.oj()},wo.Ek=function(oo,co,fo){var po,vo,xo,Eo,To;To=co.li(fo),Eo=To!=null,this.tk()&&$a(To)===$a(QE)&&(To=null),xo=null,To!=null&&(this.Mj()?(po=bo(To,54),xo=po.Th(oo,Ap(po.Dh(),this.b),null,xo)):this.al()&&(xo=bo(To,54).Th(oo,-1-Ap(oo.Dh(),this.e),null,xo))),co.ni(fo),oo.vh()&&oo.wh()?(vo=new oue(oo,this.tk()?2:1,this.e,To,null,Eo),xo?(xo.nj(vo),xo.oj()):W0(oo,vo)):xo&&xo.oj()},wo.Mj=function(){return!1},wo.al=function(){return!1},wo.bl=function(){return!1},wo.tk=function(){return!1},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),zo(575,410,{},cce),wo.al=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),zo(1359,575,{},fVe),wo.bl=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),zo(787,575,{},Ewe),wo.tk=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),zo(1361,787,{},dVe),wo.bl=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),zo(650,575,{},Sce),wo.Mj=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),zo(1360,650,{},gGe),wo.bl=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),zo(788,650,{},uxe),wo.tk=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),zo(1362,788,{},mGe),wo.bl=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),zo(651,410,{},kwe),wo.bl=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),zo(1363,651,{},hVe),wo.tk=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),zo(789,651,{},lxe),wo.Mj=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),zo(1364,789,{},vGe),wo.tk=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),zo(1357,410,{},pVe),wo.tk=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),zo(786,410,{},cxe),wo.Mj=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),zo(1358,786,{},bGe),wo.tk=function(){return!0},Vo(_h,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),zo(790,576,IJ,sSe),wo.yl=function(oo){return new sSe(this.a,this.c,oo)},wo.md=function(){return this.b},wo.zl=function(oo,co,fo){return T7t(this,oo,this.b,fo)},wo.Al=function(oo,co,fo){return C7t(this,oo,this.b,fo)},Vo(_h,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),zo(1365,1,ape,gFe),wo.Fk=function(oo){return this.a},wo.Qj=function(){return Hs(this.a,97)?bo(this.a,97).Qj():!this.a.dc()},wo.Wb=function(oo){this.a.$b(),this.a.Gc(bo(oo,15))},wo.Gk=function(){Hs(this.a,97)?bo(this.a,97).Gk():this.a.$b()},Vo(_h,"EStructuralFeatureImpl/SettingMany",1365),zo(1366,576,IJ,jYe),wo.xl=function(oo){return new dce((rp(),iP),this.b.ri(this.a,oo))},wo.md=function(){return null},wo.zl=function(oo,co,fo){return fo},wo.Al=function(oo,co,fo){return fo},Vo(_h,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),zo(652,576,IJ,dce),wo.xl=function(oo){return new dce(this.c,oo)},wo.md=function(){return this.a},wo.zl=function(oo,co,fo){return fo},wo.Al=function(oo,co,fo){return fo},Vo(_h,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),zo(403,506,uE,ZA),wo.aj=function(oo){return Al(Jx,Xu,29,oo,0,1)},wo.Yi=function(){return!1},Vo(_h,"ESuperAdapter/1",403),zo(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},uz),wo.Lh=function(oo,co,fo){var po;switch(oo){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new iL(this,Cv,this)),this.a}return dx(this,oo-A1((Pu(),Q6)),Uu((po=bo(n1(this,16),29),po||Q6),oo),co,fo)},wo.Uh=function(oo,co,fo){var po,vo;switch(co){case 0:return!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),sv(this.Ab,oo,fo);case 2:return!this.a&&(this.a=new iL(this,Cv,this)),sv(this.a,oo,fo)}return vo=bo(Uu((po=bo(n1(this,16),29),po||(Pu(),Q6)),co),69),vo.wk().Ak(this,y2(this),co-A1((Pu(),Q6)),oo,fo)},wo.Wh=function(oo){var co;switch(oo){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return ux(this,oo-A1((Pu(),Q6)),Uu((co=bo(n1(this,16),29),co||Q6),oo))},wo.bi=function(oo,co){var fo;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab),!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),Bp(this.Ab,bo(co,16));return;case 1:s2(this,u0(co));return;case 2:!this.a&&(this.a=new iL(this,Cv,this)),U1(this.a),!this.a&&(this.a=new iL(this,Cv,this)),Bp(this.a,bo(co,16));return}vx(this,oo-A1((Pu(),Q6)),Uu((fo=bo(n1(this,16),29),fo||Q6),oo),co)},wo.ii=function(){return Pu(),Q6},wo.ki=function(oo){var co;switch(oo){case 0:!this.Ab&&(this.Ab=new Bl(C0,this,0,3)),U1(this.Ab);return;case 1:s2(this,null);return;case 2:!this.a&&(this.a=new iL(this,Cv,this)),U1(this.a);return}mx(this,oo-A1((Pu(),Q6)),Uu((co=bo(n1(this,16),29),co||Q6),oo))},Vo(_h,"ETypeParameterImpl",457),zo(458,83,iy,iL),wo.Nj=function(oo,co){return zBt(this,bo(oo,89),co)},wo.Oj=function(oo,co){return HBt(this,bo(oo,89),co)},Vo(_h,"ETypeParameterImpl/1",458),zo(647,45,W9,Wae),wo.ec=function(){return new bK(this)},Vo(_h,"ETypeParameterImpl/2",647),zo(570,w_,U2,bK),wo.Fc=function(oo){return jVe(this,bo(oo,89))},wo.Gc=function(oo){var co,fo,po;for(po=!1,fo=oo.Kc();fo.Ob();)co=bo(fo.Pb(),89),N0(this.a,co,"")==null&&(po=!0);return po},wo.$b=function(){nw(this.a)},wo.Hc=function(oo){return p2(this.a,oo)},wo.Kc=function(){var oo;return oo=new ST(new su(this.a).a),new yK(oo)},wo.Mc=function(oo){return RXe(this,oo)},wo.gc=function(){return ED(this.a)},Vo(_h,"ETypeParameterImpl/2/1",570),zo(571,1,$m,yK),wo.Nb=function(oo){jm(this,oo)},wo.Pb=function(){return bo(a6(this.a).ld(),89)},wo.Ob=function(){return this.a.b},wo.Qb=function(){PQe(this.a)},Vo(_h,"ETypeParameterImpl/2/1/1",571),zo(1329,45,W9,oPe),wo._b=function(oo){return Cm(oo)?aue(this,oo):!!wv(this.f,oo)},wo.xc=function(oo){var co,fo;return co=Cm(oo)?Gy(this,oo):Uv(wv(this.f,oo)),Hs(co,851)?(fo=bo(co,851),co=fo.Kk(),N0(this,bo(oo,241),co),co):co??(oo==null?(fle(),eSt):null)},Vo(_h,"EValidatorRegistryImpl",1329),zo(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},doe),wo.ri=function(oo,co){switch(oo.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return co==null?null:ry(co);case 25:return F8t(co);case 27:return Z7t(co);case 28:return J7t(co);case 29:return co==null?null:vqe(ZF[0],bo(co,206));case 41:return co==null?"":aT(bo(co,297));case 42:return ry(co);case 50:return u0(co);default:throw Cs(new i1(kN+oo.xe()+$6))}},wo.si=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs;switch(oo.G==-1&&(oo.G=(Xo=zw(oo),Xo?x4(Xo.vi(),oo):-1)),oo.G){case 0:return fo=new qae,fo;case 1:return co=new CU,co;case 2:return po=new yz,po;case 4:return vo=new wK,vo;case 5:return xo=new iPe,xo;case 6:return Eo=new AFe,Eo;case 7:return To=new KU,To;case 10:return Io=new bO,Io;case 11:return Po=new Vae,Po;case 12:return Wo=new MUe,Wo;case 13:return Zo=new Gae,Zo;case 14:return ws=new $we,ws;case 17:return Ss=new noe,Ss;case 18:return Ao=new EC,Ao;case 19:return Rs=new uz,Rs;default:throw Cs(new i1(G0e+oo.zb+$6))}},wo.ti=function(oo,co){switch(oo.hk()){case 20:return co==null?null:new Xye(co);case 21:return co==null?null:new s3(co);case 23:case 22:return co==null?null:QNt(co);case 26:case 24:return co==null?null:WH(Ww(co,-128,127)<<24>>24);case 25:return mzt(co);case 27:return FDt(co);case 28:return PDt(co);case 29:return lFt(co);case 32:case 31:return co==null?null:G$(co);case 38:case 37:return co==null?null:new hye(co);case 40:case 39:return co==null?null:Ql(Ww(co,Ym,q0));case 41:return null;case 42:return co==null,null;case 44:case 43:return co==null?null:E5(RZ(co));case 49:case 48:return co==null?null:OI(Ww(co,DJ,32767)<<16>>16);case 50:return co;default:throw Cs(new i1(kN+oo.xe()+$6))}},Vo(_h,"EcoreFactoryImpl",1349),zo(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},iUe),wo.gb=!1,wo.hb=!1;var kMe,Jxt=!1;Vo(_h,"EcorePackageImpl",560),zo(1234,1,{851:1},hoe),wo.Kk=function(){return Rqe(),tSt},Vo(_h,"EcorePackageImpl/1",1234),zo(1243,1,I0,poe),wo.fk=function(oo){return Hs(oo,155)},wo.gk=function(oo){return Al(HG,Xu,155,oo,0,1)},Vo(_h,"EcorePackageImpl/10",1243),zo(1244,1,I0,fz),wo.fk=function(oo){return Hs(oo,197)},wo.gk=function(oo){return Al(Zve,Xu,197,oo,0,1)},Vo(_h,"EcorePackageImpl/11",1244),zo(1245,1,I0,$U),wo.fk=function(oo){return Hs(oo,58)},wo.gk=function(oo){return Al(Y3,Xu,58,oo,0,1)},Vo(_h,"EcorePackageImpl/12",1245),zo(1246,1,I0,goe),wo.fk=function(oo){return Hs(oo,411)},wo.gk=function(oo){return Al(eS,g$e,62,oo,0,1)},Vo(_h,"EcorePackageImpl/13",1246),zo(1247,1,I0,moe),wo.fk=function(oo){return Hs(oo,241)},wo.gk=function(oo){return Al(t_,Xu,241,oo,0,1)},Vo(_h,"EcorePackageImpl/14",1247),zo(1248,1,I0,voe),wo.fk=function(oo){return Hs(oo,518)},wo.gk=function(oo){return Al(Y6,Xu,2116,oo,0,1)},Vo(_h,"EcorePackageImpl/15",1248),zo(1249,1,I0,boe),wo.fk=function(oo){return Hs(oo,102)},wo.gk=function(oo){return Al(FA,t7,19,oo,0,1)},Vo(_h,"EcorePackageImpl/16",1249),zo(1250,1,I0,yoe),wo.fk=function(oo){return Hs(oo,179)},wo.gk=function(oo){return Al(L2,t7,179,oo,0,1)},Vo(_h,"EcorePackageImpl/17",1250),zo(1251,1,I0,woe),wo.fk=function(oo){return Hs(oo,481)},wo.gk=function(oo){return Al(LA,Xu,481,oo,0,1)},Vo(_h,"EcorePackageImpl/18",1251),zo(1252,1,I0,xoe),wo.fk=function(oo){return Hs(oo,561)},wo.gk=function(oo){return Al(Ey,tht,561,oo,0,1)},Vo(_h,"EcorePackageImpl/19",1252),zo(1235,1,I0,Soe),wo.fk=function(oo){return Hs(oo,331)},wo.gk=function(oo){return Al(BA,t7,35,oo,0,1)},Vo(_h,"EcorePackageImpl/2",1235),zo(1253,1,I0,AU),wo.fk=function(oo){return Hs(oo,248)},wo.gk=function(oo){return Al(Cv,bht,89,oo,0,1)},Vo(_h,"EcorePackageImpl/20",1253),zo(1254,1,I0,_oe),wo.fk=function(oo){return Hs(oo,457)},wo.gk=function(oo){return Al(k2,Xu,850,oo,0,1)},Vo(_h,"EcorePackageImpl/21",1254),zo(1255,1,I0,JM),wo.fk=function(oo){return v$(oo)},wo.gk=function(oo){return Al(qp,Yl,485,oo,8,1)},Vo(_h,"EcorePackageImpl/22",1255),zo(1256,1,I0,Eoe),wo.fk=function(oo){return Hs(oo,195)},wo.gk=function(oo){return Al(Q2,Yl,195,oo,0,2)},Vo(_h,"EcorePackageImpl/23",1256),zo(1257,1,I0,koe),wo.fk=function(oo){return Hs(oo,222)},wo.gk=function(oo){return Al(wR,Yl,222,oo,0,1)},Vo(_h,"EcorePackageImpl/24",1257),zo(1258,1,I0,Toe),wo.fk=function(oo){return Hs(oo,180)},wo.gk=function(oo){return Al(YB,Yl,180,oo,0,1)},Vo(_h,"EcorePackageImpl/25",1258),zo(1259,1,I0,Coe),wo.fk=function(oo){return Hs(oo,206)},wo.gk=function(oo){return Al(GJ,Yl,206,oo,0,1)},Vo(_h,"EcorePackageImpl/26",1259),zo(1260,1,I0,$oe),wo.fk=function(oo){return!1},wo.gk=function(oo){return Al(qMe,Xu,2215,oo,0,1)},Vo(_h,"EcorePackageImpl/27",1260),zo(1261,1,I0,Aoe),wo.fk=function(oo){return b$(oo)},wo.gk=function(oo){return Al(nm,Yl,345,oo,7,1)},Vo(_h,"EcorePackageImpl/28",1261),zo(1262,1,I0,Roe),wo.fk=function(oo){return Hs(oo,61)},wo.gk=function(oo){return Al(iMe,rA,61,oo,0,1)},Vo(_h,"EcorePackageImpl/29",1262),zo(1236,1,I0,Ooe),wo.fk=function(oo){return Hs(oo,519)},wo.gk=function(oo){return Al(C0,{3:1,4:1,5:1,2033:1},598,oo,0,1)},Vo(_h,"EcorePackageImpl/3",1236),zo(1263,1,I0,Ioe),wo.fk=function(oo){return Hs(oo,582)},wo.gk=function(oo){return Al(aMe,Xu,2039,oo,0,1)},Vo(_h,"EcorePackageImpl/30",1263),zo(1264,1,I0,Noe),wo.fk=function(oo){return Hs(oo,160)},wo.gk=function(oo){return Al(RMe,rA,160,oo,0,1)},Vo(_h,"EcorePackageImpl/31",1264),zo(1265,1,I0,Moe),wo.fk=function(oo){return Hs(oo,76)},wo.gk=function(oo){return Al(une,Cht,76,oo,0,1)},Vo(_h,"EcorePackageImpl/32",1265),zo(1266,1,I0,Doe),wo.fk=function(oo){return Hs(oo,161)},wo.gk=function(oo){return Al(IN,Yl,161,oo,0,1)},Vo(_h,"EcorePackageImpl/33",1266),zo(1267,1,I0,Loe),wo.fk=function(oo){return Hs(oo,17)},wo.gk=function(oo){return Al(Vm,Yl,17,oo,0,1)},Vo(_h,"EcorePackageImpl/34",1267),zo(1268,1,I0,Boe),wo.fk=function(oo){return Hs(oo,297)},wo.gk=function(oo){return Al(A$e,Xu,297,oo,0,1)},Vo(_h,"EcorePackageImpl/35",1268),zo(1269,1,I0,Foe),wo.fk=function(oo){return Hs(oo,168)},wo.gk=function(oo){return Al(R6,Yl,168,oo,0,1)},Vo(_h,"EcorePackageImpl/36",1269),zo(1270,1,I0,Poe),wo.fk=function(oo){return Hs(oo,85)},wo.gk=function(oo){return Al(R$e,Xu,85,oo,0,1)},Vo(_h,"EcorePackageImpl/37",1270),zo(1271,1,I0,RU),wo.fk=function(oo){return Hs(oo,599)},wo.gk=function(oo){return Al(TMe,Xu,599,oo,0,1)},Vo(_h,"EcorePackageImpl/38",1271),zo(1272,1,I0,OU),wo.fk=function(oo){return!1},wo.gk=function(oo){return Al(VMe,Xu,2216,oo,0,1)},Vo(_h,"EcorePackageImpl/39",1272),zo(1237,1,I0,joe),wo.fk=function(oo){return Hs(oo,90)},wo.gk=function(oo){return Al(Jx,Xu,29,oo,0,1)},Vo(_h,"EcorePackageImpl/4",1237),zo(1273,1,I0,zoe),wo.fk=function(oo){return Hs(oo,191)},wo.gk=function(oo){return Al(O6,Yl,191,oo,0,1)},Vo(_h,"EcorePackageImpl/40",1273),zo(1274,1,I0,Hoe),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(_h,"EcorePackageImpl/41",1274),zo(1275,1,I0,qoe),wo.fk=function(oo){return Hs(oo,596)},wo.gk=function(oo){return Al(sMe,Xu,596,oo,0,1)},Vo(_h,"EcorePackageImpl/42",1275),zo(1276,1,I0,eD),wo.fk=function(oo){return!1},wo.gk=function(oo){return Al(GMe,Yl,2217,oo,0,1)},Vo(_h,"EcorePackageImpl/43",1276),zo(1277,1,I0,Voe),wo.fk=function(oo){return Hs(oo,44)},wo.gk=function(oo){return Al(qT,NZ,44,oo,0,1)},Vo(_h,"EcorePackageImpl/44",1277),zo(1238,1,I0,Goe),wo.fk=function(oo){return Hs(oo,142)},wo.gk=function(oo){return Al(n_,Xu,142,oo,0,1)},Vo(_h,"EcorePackageImpl/5",1238),zo(1239,1,I0,Woe),wo.fk=function(oo){return Hs(oo,156)},wo.gk=function(oo){return Al(ibe,Xu,156,oo,0,1)},Vo(_h,"EcorePackageImpl/6",1239),zo(1240,1,I0,Uoe),wo.fk=function(oo){return Hs(oo,469)},wo.gk=function(oo){return Al(cne,Xu,685,oo,0,1)},Vo(_h,"EcorePackageImpl/7",1240),zo(1241,1,I0,Koe),wo.fk=function(oo){return Hs(oo,582)},wo.gk=function(oo){return Al(B5,Xu,694,oo,0,1)},Vo(_h,"EcorePackageImpl/8",1241),zo(1242,1,I0,Yoe),wo.fk=function(oo){return Hs(oo,480)},wo.gk=function(oo){return Al(QF,Xu,480,oo,0,1)},Vo(_h,"EcorePackageImpl/9",1242),zo(1038,2080,eht,TPe),wo.Mi=function(oo,co){TIt(this,bo(co,424))},wo.Qi=function(oo,co){Cit(this,oo,bo(co,424))},Vo(_h,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),zo(1039,152,$V,KWe),wo.jj=function(){return this.a.a},Vo(_h,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),zo(1067,1066,{},lqe),Vo("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var TMe=Ip($ht,"Resource");zo(799,1524,Aht),wo.Hl=function(oo){},wo.Il=function(oo){},wo.El=function(){return!this.a&&(this.a=new Bae(this)),this.a},wo.Fl=function(oo){var co,fo,po,vo,xo;if(po=oo.length,po>0)if(o1(0,oo.length),oo.charCodeAt(0)==47){for(xo=new o2(4),vo=1,co=1;co0&&(oo=(Bm(0,fo,oo.length),oo.substr(0,fo))));return tjt(this,oo)},wo.Gl=function(){return this.c},wo.Ib=function(){var oo;return aT(this.Rm)+"@"+(oo=dp(this)>>>0,oo.toString(16))+" uri='"+this.d+"'"},wo.b=!1,Vo(lpe,"ResourceImpl",799),zo(1525,799,Aht,mFe),Vo(lpe,"BinaryResourceImpl",1525),zo(1190,708,npe),wo.bj=function(oo){return Hs(oo,58)?G6t(this,bo(oo,58)):Hs(oo,599)?new g1(bo(oo,599).El()):$a(oo)===$a(this.f)?bo(oo,16).Kc():(zO(),GG.a)},wo.Ob=function(){return a4e(this)},wo.a=!1,Vo(Ep,"EcoreUtil/ContentTreeIterator",1190),zo(1526,1190,npe,EWe),wo.bj=function(oo){return $a(oo)===$a(this.f)?bo(oo,15).Kc():new xYe(bo(oo,58))},Vo(lpe,"ResourceImpl/5",1526),zo(658,2092,vht,Bae),wo.Hc=function(oo){return this.i<=4?VI(this,oo):Hs(oo,54)&&bo(oo,54).Jh()==this.a},wo.Mi=function(oo,co){oo==this.i-1&&(this.a.b||(this.a.b=!0))},wo.Oi=function(oo,co){oo==0?this.a.b||(this.a.b=!0):Bue(this,oo,co)},wo.Qi=function(oo,co){},wo.Ri=function(oo,co,fo){},wo.Lj=function(){return 2},wo.jj=function(){return this.a},wo.Mj=function(){return!0},wo.Nj=function(oo,co){var fo;return fo=bo(oo,54),co=fo.fi(this.a,co),co},wo.Oj=function(oo,co){var fo;return fo=bo(oo,54),fo.fi(null,co)},wo.Pj=function(){return!1},wo.Si=function(){return!0},wo.aj=function(oo){return Al(Y3,Xu,58,oo,0,1)},wo.Yi=function(){return!1},Vo(lpe,"ResourceImpl/ContentsEList",658),zo(970,2062,cN,vFe),wo.fd=function(oo){return this.a.Ki(oo)},wo.gc=function(){return this.a.gc()},Vo(Ep,"AbstractSequentialInternalEList/1",970);var CMe,$Me,Gm,AMe;zo(634,1,{},TGe);var fne,dne;Vo(Ep,"BasicExtendedMetaData",634),zo(1181,1,{},$He),wo.Jl=function(){return null},wo.Kl=function(){return this.a==-2&&Obe(this,tFt(this.d,this.b)),this.a},wo.Ll=function(){return null},wo.Ml=function(){return Hu(),Hu(),cv},wo.xe=function(){return this.c==$N&&Ibe(this,Ktt(this.d,this.b)),this.c},wo.Nl=function(){return 0},wo.a=-2,wo.c=$N,Vo(Ep,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),zo(1182,1,{},QKe),wo.Jl=function(){return this.a==(iI(),fne)&&Dbe(this,eVt(this.f,this.b)),this.a},wo.Kl=function(){return 0},wo.Ll=function(){return this.c==(iI(),fne)&&Nbe(this,tVt(this.f,this.b)),this.c},wo.Ml=function(){return!this.d&&Bbe(this,PGt(this.f,this.b)),this.d},wo.xe=function(){return this.e==$N&&Pbe(this,Ktt(this.f,this.b)),this.e},wo.Nl=function(){return this.g==-2&&zbe(this,wBt(this.f,this.b)),this.g},wo.e=$N,wo.g=-2,Vo(Ep,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),zo(1180,1,{},AHe),wo.b=!1,wo.c=!1,Vo(Ep,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),zo(1183,1,{},ZKe),wo.c=-2,wo.e=$N,wo.f=$N,Vo(Ep,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),zo(593,632,iy,DY),wo.Lj=function(){return this.c},wo.ol=function(){return!1},wo.Wi=function(oo,co){return co},wo.c=0,Vo(Ep,"EDataTypeEList",593);var RMe=Ip(Ep,"FeatureMap");zo(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Fp),wo.bd=function(oo,co){yHt(this,oo,bo(co,76))},wo.Fc=function(oo){return Bzt(this,bo(oo,76))},wo.Hi=function(oo){HCt(this,bo(oo,76))},wo.Nj=function(oo,co){return c4t(this,bo(oo,76),co)},wo.Oj=function(oo,co){return Zwe(this,bo(oo,76),co)},wo.Ti=function(oo,co){return VVt(this,oo,co)},wo.Wi=function(oo,co){return OUt(this,oo,bo(co,76))},wo.hd=function(oo,co){return sqt(this,oo,bo(co,76))},wo.Uj=function(oo,co){return u4t(this,bo(oo,76),co)},wo.Vj=function(oo,co){return tGe(this,bo(oo,76),co)},wo.Wj=function(oo,co,fo){return aBt(this,bo(oo,76),bo(co,76),fo)},wo.Zi=function(oo,co){return Ode(this,oo,bo(co,76))},wo.Ol=function(oo,co){return Z4e(this,oo,co)},wo.cd=function(oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po;for(Io=new n6(co.gc()),vo=co.Kc();vo.Ob();)if(po=bo(vo.Pb(),76),xo=po.Lk(),C5(this.e,xo))(!xo.Si()||!kX(this,xo,po.md())&&!VI(Io,po))&&Y1(Io,po);else{for(Po=w2(this.e.Dh(),xo),fo=bo(this.g,124),Eo=!0,To=0;To=0;)if(co=oo[this.c],this.k.am(co.Lk()))return this.j=this.f?co:co.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},Vo(Ep,"BasicFeatureMap/FeatureEIterator",420),zo(676,420,DE,Ule),wo.ul=function(){return!0},Vo(Ep,"BasicFeatureMap/ResolvingFeatureEIterator",676),zo(968,496,RJ,bqe),wo.pj=function(){return this},Vo(Ep,"EContentsEList/1",968),zo(969,496,RJ,HHe),wo.ul=function(){return!1},Vo(Ep,"EContentsEList/2",969),zo(967,287,OJ,yqe),wo.wl=function(oo){},wo.Ob=function(){return!1},wo.Sb=function(){return!1},Vo(Ep,"EContentsEList/FeatureIteratorImpl/1",967),zo(840,593,iy,owe),wo.Ni=function(){this.a=!0},wo.Qj=function(){return this.a},wo.Gk=function(){var oo;U1(this),$w(this.e)?(oo=this.a,this.a=!1,W0(this.e,new dS(this.e,2,this.c,oo,!1))):this.a=!1},wo.a=!1,Vo(Ep,"EDataTypeEList/Unsettable",840),zo(1958,593,iy,Tqe),wo.Si=function(){return!0},Vo(Ep,"EDataTypeUniqueEList",1958),zo(1959,840,iy,Cqe),wo.Si=function(){return!0},Vo(Ep,"EDataTypeUniqueEList/Unsettable",1959),zo(147,83,iy,j2),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectContainmentEList/Resolving",147),zo(1184,555,iy,$qe),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectContainmentEList/Unsettable/Resolving",1184),zo(766,14,iy,Gwe),wo.Ni=function(){this.a=!0},wo.Qj=function(){return this.a},wo.Gk=function(){var oo;U1(this),$w(this.e)?(oo=this.a,this.a=!1,W0(this.e,new dS(this.e,2,this.c,oo,!1))):this.a=!1},wo.a=!1,Vo(Ep,"EObjectContainmentWithInverseEList/Unsettable",766),zo(1222,766,iy,zVe),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),zo(757,505,iy,swe),wo.Ni=function(){this.a=!0},wo.Qj=function(){return this.a},wo.Gk=function(){var oo;U1(this),$w(this.e)?(oo=this.a,this.a=!1,W0(this.e,new dS(this.e,2,this.c,oo,!1))):this.a=!1},wo.a=!1,Vo(Ep,"EObjectEList/Unsettable",757),zo(338,505,iy,g9),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectResolvingEList",338),zo(1844,757,iy,Aqe),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectResolvingEList/Unsettable",1844),zo(1527,1,{},Xoe);var eSt;Vo(Ep,"EObjectValidator",1527),zo(559,505,iy,ZY),wo.il=function(){return this.d},wo.jl=function(){return this.b},wo.Mj=function(){return!0},wo.ml=function(){return!0},wo.b=0,Vo(Ep,"EObjectWithInverseEList",559),zo(1225,559,iy,HVe),wo.ll=function(){return!0},Vo(Ep,"EObjectWithInverseEList/ManyInverse",1225),zo(635,559,iy,pce),wo.Ni=function(){this.a=!0},wo.Qj=function(){return this.a},wo.Gk=function(){var oo;U1(this),$w(this.e)?(oo=this.a,this.a=!1,W0(this.e,new dS(this.e,2,this.c,oo,!1))):this.a=!1},wo.a=!1,Vo(Ep,"EObjectWithInverseEList/Unsettable",635),zo(1224,635,iy,qVe),wo.ll=function(){return!0},Vo(Ep,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),zo(767,559,iy,Wwe),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectWithInverseResolvingEList",767),zo(32,767,iy,Wu),wo.ll=function(){return!0},Vo(Ep,"EObjectWithInverseResolvingEList/ManyInverse",32),zo(768,635,iy,Uwe),wo.nl=function(){return!0},wo.Wi=function(oo,co){return iR(this,oo,bo(co,58))},Vo(Ep,"EObjectWithInverseResolvingEList/Unsettable",768),zo(1223,768,iy,VVe),wo.ll=function(){return!0},Vo(Ep,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),zo(1185,632,iy),wo.Li=function(){return(this.b&1792)==0},wo.Ni=function(){this.b|=1},wo.kl=function(){return(this.b&4)!=0},wo.Mj=function(){return(this.b&40)!=0},wo.ll=function(){return(this.b&16)!=0},wo.ml=function(){return(this.b&8)!=0},wo.nl=function(){return(this.b&cA)!=0},wo.al=function(){return(this.b&32)!=0},wo.ol=function(){return(this.b&bS)!=0},wo.fk=function(oo){return this.d?RYe(this.d,oo):this.Lk().Hk().fk(oo)},wo.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},wo.Si=function(){return(this.b&128)!=0},wo.Gk=function(){var oo;U1(this),this.b&2&&($w(this.e)?(oo=(this.b&1)!=0,this.b&=-2,kO(this,new dS(this.e,2,Ap(this.e.Dh(),this.Lk()),oo,!1))):this.b&=-2)},wo.Yi=function(){return(this.b&1536)==0},wo.b=0,Vo(Ep,"EcoreEList/Generic",1185),zo(1186,1185,iy,LUe),wo.Lk=function(){return this.a},Vo(Ep,"EcoreEList/Dynamic",1186),zo(765,66,uE,aye),wo.aj=function(oo){return XH(this.a.a,oo)},Vo(Ep,"EcoreEMap/1",765),zo(764,83,iy,Gxe),wo.Mi=function(oo,co){VQ(this.b,bo(co,136))},wo.Oi=function(oo,co){NJe(this.b)},wo.Pi=function(oo,co,fo){var po;++(po=this.b,bo(co,136),po).e},wo.Qi=function(oo,co){jfe(this.b,bo(co,136))},wo.Ri=function(oo,co,fo){jfe(this.b,bo(fo,136)),$a(fo)===$a(co)&&bo(fo,136).Ci(akt(bo(co,136).ld())),VQ(this.b,bo(co,136))},Vo(Ep,"EcoreEMap/DelegateEObjectContainmentEList",764),zo(1220,141,p$e,XZe),Vo(Ep,"EcoreEMap/Unsettable",1220),zo(1221,764,iy,GVe),wo.Ni=function(){this.a=!0},wo.Qj=function(){return this.a},wo.Gk=function(){var oo;U1(this),$w(this.e)?(oo=this.a,this.a=!1,W0(this.e,new dS(this.e,2,this.c,oo,!1))):this.a=!1},wo.a=!1,Vo(Ep,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),zo(1189,215,W9,BWe),wo.a=!1,wo.b=!1,Vo(Ep,"EcoreUtil/Copier",1189),zo(759,1,$m,xYe),wo.Nb=function(oo){jm(this,oo)},wo.Ob=function(){return Ntt(this)},wo.Pb=function(){var oo;return Ntt(this),oo=this.b,this.b=null,oo},wo.Qb=function(){this.a.Qb()},Vo(Ep,"EcoreUtil/ProperContentIterator",759),zo(1528,1527,{},sae);var tSt;Vo(Ep,"EcoreValidator",1528);var nSt;Ip(Ep,"FeatureMapUtil/Validator"),zo(1295,1,{2041:1},Qoe),wo.am=function(oo){return!0},Vo(Ep,"FeatureMapUtil/1",1295),zo(773,1,{2041:1},C3e),wo.am=function(oo){var co;return this.c==oo?!0:(co=au(m1(this.a,oo)),co==null?aVt(this,oo)?(xXe(this.a,oo,(_f(),ON)),!0):(xXe(this.a,oo,(_f(),M3)),!1):co==(_f(),ON))},wo.e=!1;var lbe;Vo(Ep,"FeatureMapUtil/BasicValidator",773),zo(774,45,W9,rwe),Vo(Ep,"FeatureMapUtil/BasicValidator/Cache",774),zo(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},eH),wo.bd=function(oo,co){yst(this.c,this.b,oo,co)},wo.Fc=function(oo){return Z4e(this.c,this.b,oo)},wo.cd=function(oo,co){return $Wt(this.c,this.b,oo,co)},wo.Gc=function(oo){return YD(this,oo)},wo.Gi=function(oo,co){_8t(this.c,this.b,oo,co)},wo.Wk=function(oo,co){return V4e(this.c,this.b,oo,co)},wo.$i=function(oo){return kZ(this.c,this.b,oo,!1)},wo.Ii=function(){return eqe(this.c,this.b)},wo.Ji=function(){return KEt(this.c,this.b)},wo.Ki=function(oo){return $7t(this.c,this.b,oo)},wo.Xk=function(oo,co){return EVe(this,oo,co)},wo.$b=function(){l8(this)},wo.Hc=function(oo){return kX(this.c,this.b,oo)},wo.Ic=function(oo){return CRt(this.c,this.b,oo)},wo.Xb=function(oo){return kZ(this.c,this.b,oo,!0)},wo.Fk=function(oo){return this},wo.dd=function(oo){return D9t(this.c,this.b,oo)},wo.dc=function(){return uY(this)},wo.Qj=function(){return!bq(this.c,this.b)},wo.Kc=function(){return h8t(this.c,this.b)},wo.ed=function(){return p8t(this.c,this.b)},wo.fd=function(oo){return GIt(this.c,this.b,oo)},wo.Ti=function(oo,co){return Mat(this.c,this.b,oo,co)},wo.Ui=function(oo,co){O7t(this.c,this.b,oo,co)},wo.gd=function(oo){return cit(this.c,this.b,oo)},wo.Mc=function(oo){return AVt(this.c,this.b,oo)},wo.hd=function(oo,co){return qat(this.c,this.b,oo,co)},wo.Wb=function(oo){sZ(this.c,this.b),YD(this,bo(oo,15))},wo.gc=function(){return VIt(this.c,this.b)},wo.Pc=function(){return BAt(this.c,this.b)},wo.Qc=function(oo){return L9t(this.c,this.b,oo)},wo.Ib=function(){var oo,co;for(co=new Z5,co.a+="[",oo=eqe(this.c,this.b);Rfe(oo);)Av(co,QD(zQ(oo))),Rfe(oo)&&(co.a+=av);return co.a+="]",co.a},wo.Gk=function(){sZ(this.c,this.b)},Vo(Ep,"FeatureMapUtil/FeatureEList",509),zo(644,39,$V,Tue),wo.hj=function(oo){return FL(this,oo)},wo.mj=function(oo){var co,fo,po,vo,xo,Eo,To;switch(this.d){case 1:case 2:{if(xo=oo.jj(),$a(xo)===$a(this.c)&&FL(this,null)==oo.hj(null))return this.g=oo.ij(),oo.gj()==1&&(this.d=1),!0;break}case 3:{switch(vo=oo.gj(),vo){case 3:{if(xo=oo.jj(),$a(xo)===$a(this.c)&&FL(this,null)==oo.hj(null))return this.d=5,co=new n6(2),Y1(co,this.g),Y1(co,oo.ij()),this.g=co,!0;break}}break}case 5:{switch(vo=oo.gj(),vo){case 3:{if(xo=oo.jj(),$a(xo)===$a(this.c)&&FL(this,null)==oo.hj(null))return fo=bo(this.g,16),fo.Fc(oo.ij()),!0;break}}break}case 4:{switch(vo=oo.gj(),vo){case 3:{if(xo=oo.jj(),$a(xo)===$a(this.c)&&FL(this,null)==oo.hj(null))return this.d=1,this.g=oo.ij(),!0;break}case 4:{if(xo=oo.jj(),$a(xo)===$a(this.c)&&FL(this,null)==oo.hj(null))return this.d=6,To=new n6(2),Y1(To,this.n),Y1(To,oo.kj()),this.n=To,Eo=As($s(Q1,1),E0,28,15,[this.o,oo.lj()]),this.g=Eo,!0;break}}break}case 6:{switch(vo=oo.gj(),vo){case 4:{if(xo=oo.jj(),$a(xo)===$a(this.c)&&FL(this,null)==oo.hj(null))return fo=bo(this.n,16),fo.Fc(oo.kj()),Eo=bo(this.g,53),po=Al(Q1,E0,28,Eo.length+1,15,1),jy(Eo,0,po,0,Eo.length),po[Eo.length]=oo.lj(),this.g=po,!0;break}}break}}return!1},Vo(Ep,"FeatureMapUtil/FeatureENotificationImpl",644),zo(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},PY),wo.Ol=function(oo,co){return Z4e(this.c,oo,co)},wo.Pl=function(oo,co,fo){return V4e(this.c,oo,co,fo)},wo.Ql=function(oo,co,fo){return m3e(this.c,oo,co,fo)},wo.Rl=function(){return this},wo.Sl=function(oo,co){return Kq(this.c,oo,co)},wo.Tl=function(oo){return bo(kZ(this.c,this.b,oo,!1),76).Lk()},wo.Ul=function(oo){return bo(kZ(this.c,this.b,oo,!1),76).md()},wo.Vl=function(){return this.a},wo.Wl=function(oo){return!bq(this.c,oo)},wo.Xl=function(oo,co){TZ(this.c,oo,co)},wo.Yl=function(oo){return JZe(this.c,oo)},wo.Zl=function(oo){Bnt(this.c,oo)},Vo(Ep,"FeatureMapUtil/FeatureFeatureMap",564),zo(1294,1,ape,CHe),wo.Fk=function(oo){return kZ(this.b,this.a,-1,oo)},wo.Qj=function(){return!bq(this.b,this.a)},wo.Wb=function(oo){TZ(this.b,this.a,oo)},wo.Gk=function(){sZ(this.b,this.a)},Vo(Ep,"FeatureMapUtil/FeatureValue",1294);var GR,cbe,ube,WR,rSt,UG=Ip(PJ,"AnyType");zo(680,63,$5,ele),Vo(PJ,"InvalidDatatypeValueException",680);var hne=Ip(PJ,Oht),KG=Ip(PJ,Iht),OMe=Ip(PJ,Nht),iSt,$y,IMe,sC,oSt,sSt,aSt,lSt,cSt,uSt,fSt,dSt,hSt,pSt,gSt,B7,mSt,F7,nP,vSt,Z6,YG,XG,bSt,rP,iP;zo(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},Tye),wo.Lh=function(oo,co,fo){switch(oo){case 0:return fo?(!this.c&&(this.c=new Fp(this,0)),this.c):(!this.c&&(this.c=new Fp(this,0)),this.c.b);case 1:return fo?(!this.c&&(this.c=new Fp(this,0)),bo(Wy(this.c,(rp(),sC)),160)):(!this.c&&(this.c=new Fp(this,0)),bo(bo(Wy(this.c,(rp(),sC)),160),220)).Vl();case 2:return fo?(!this.b&&(this.b=new Fp(this,2)),this.b):(!this.b&&(this.b=new Fp(this,2)),this.b.b)}return dx(this,oo-A1(this.ii()),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():this.ii(),oo),co,fo)},wo.Uh=function(oo,co,fo){var po;switch(co){case 0:return!this.c&&(this.c=new Fp(this,0)),Vq(this.c,oo,fo);case 1:return(!this.c&&(this.c=new Fp(this,0)),bo(bo(Wy(this.c,(rp(),sC)),160),71)).Xk(oo,fo);case 2:return!this.b&&(this.b=new Fp(this,2)),Vq(this.b,oo,fo)}return po=bo(Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():this.ii(),co),69),po.wk().Ak(this,R_e(this),co-A1(this.ii()),oo,fo)},wo.Wh=function(oo){switch(oo){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Fp(this,0)),bo(Wy(this.c,(rp(),sC)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return ux(this,oo-A1(this.ii()),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():this.ii(),oo))},wo.bi=function(oo,co){switch(oo){case 0:!this.c&&(this.c=new Fp(this,0)),wH(this.c,co);return;case 1:(!this.c&&(this.c=new Fp(this,0)),bo(bo(Wy(this.c,(rp(),sC)),160),220)).Wb(co);return;case 2:!this.b&&(this.b=new Fp(this,2)),wH(this.b,co);return}vx(this,oo-A1(this.ii()),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():this.ii(),oo),co)},wo.ii=function(){return rp(),IMe},wo.ki=function(oo){switch(oo){case 0:!this.c&&(this.c=new Fp(this,0)),U1(this.c);return;case 1:(!this.c&&(this.c=new Fp(this,0)),bo(Wy(this.c,(rp(),sC)),160)).$b();return;case 2:!this.b&&(this.b=new Fp(this,2)),U1(this.b);return}mx(this,oo-A1(this.ii()),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():this.ii(),oo))},wo.Ib=function(){var oo;return this.j&4?gS(this):(oo=new Bx(gS(this)),oo.a+=" (mixed: ",GD(oo,this.c),oo.a+=", anyAttribute: ",GD(oo,this.b),oo.a+=")",oo.a)},Vo(tm,"AnyTypeImpl",844),zo(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},LU),wo.Lh=function(oo,co,fo){switch(oo){case 0:return this.a;case 1:return this.b}return dx(this,oo-A1((rp(),B7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():B7,oo),co,fo)},wo.Wh=function(oo){switch(oo){case 0:return this.a!=null;case 1:return this.b!=null}return ux(this,oo-A1((rp(),B7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():B7,oo))},wo.bi=function(oo,co){switch(oo){case 0:Vbe(this,u0(co));return;case 1:Wbe(this,u0(co));return}vx(this,oo-A1((rp(),B7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():B7,oo),co)},wo.ii=function(){return rp(),B7},wo.ki=function(oo){switch(oo){case 0:this.a=null;return;case 1:this.b=null;return}mx(this,oo-A1((rp(),B7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():B7,oo))},wo.Ib=function(){var oo;return this.j&4?gS(this):(oo=new Bx(gS(this)),oo.a+=" (data: ",Av(oo,this.a),oo.a+=", target: ",Av(oo,this.b),oo.a+=")",oo.a)},wo.a=null,wo.b=null,Vo(tm,"ProcessingInstructionImpl",681),zo(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},sPe),wo.Lh=function(oo,co,fo){switch(oo){case 0:return fo?(!this.c&&(this.c=new Fp(this,0)),this.c):(!this.c&&(this.c=new Fp(this,0)),this.c.b);case 1:return fo?(!this.c&&(this.c=new Fp(this,0)),bo(Wy(this.c,(rp(),sC)),160)):(!this.c&&(this.c=new Fp(this,0)),bo(bo(Wy(this.c,(rp(),sC)),160),220)).Vl();case 2:return fo?(!this.b&&(this.b=new Fp(this,2)),this.b):(!this.b&&(this.b=new Fp(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Fp(this,0)),u0(Kq(this.c,(rp(),nP),!0));case 4:return Ywe(this.a,(!this.c&&(this.c=new Fp(this,0)),u0(Kq(this.c,(rp(),nP),!0))));case 5:return this.a}return dx(this,oo-A1((rp(),F7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():F7,oo),co,fo)},wo.Wh=function(oo){switch(oo){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Fp(this,0)),bo(Wy(this.c,(rp(),sC)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Fp(this,0)),u0(Kq(this.c,(rp(),nP),!0))!=null;case 4:return Ywe(this.a,(!this.c&&(this.c=new Fp(this,0)),u0(Kq(this.c,(rp(),nP),!0))))!=null;case 5:return!!this.a}return ux(this,oo-A1((rp(),F7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():F7,oo))},wo.bi=function(oo,co){switch(oo){case 0:!this.c&&(this.c=new Fp(this,0)),wH(this.c,co);return;case 1:(!this.c&&(this.c=new Fp(this,0)),bo(bo(Wy(this.c,(rp(),sC)),160),220)).Wb(co);return;case 2:!this.b&&(this.b=new Fp(this,2)),wH(this.b,co);return;case 3:BSe(this,u0(co));return;case 4:BSe(this,Kwe(this.a,co));return;case 5:Gbe(this,bo(co,156));return}vx(this,oo-A1((rp(),F7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():F7,oo),co)},wo.ii=function(){return rp(),F7},wo.ki=function(oo){switch(oo){case 0:!this.c&&(this.c=new Fp(this,0)),U1(this.c);return;case 1:(!this.c&&(this.c=new Fp(this,0)),bo(Wy(this.c,(rp(),sC)),160)).$b();return;case 2:!this.b&&(this.b=new Fp(this,2)),U1(this.b);return;case 3:!this.c&&(this.c=new Fp(this,0)),TZ(this.c,(rp(),nP),null);return;case 4:BSe(this,Kwe(this.a,null));return;case 5:this.a=null;return}mx(this,oo-A1((rp(),F7)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():F7,oo))},Vo(tm,"SimpleAnyTypeImpl",682),zo(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},aPe),wo.Lh=function(oo,co,fo){switch(oo){case 0:return fo?(!this.a&&(this.a=new Fp(this,0)),this.a):(!this.a&&(this.a=new Fp(this,0)),this.a.b);case 1:return fo?(!this.b&&(this.b=new V2((Pu(),gv),Ey,this,1)),this.b):(!this.b&&(this.b=new V2((Pu(),gv),Ey,this,1)),FH(this.b));case 2:return fo?(!this.c&&(this.c=new V2((Pu(),gv),Ey,this,2)),this.c):(!this.c&&(this.c=new V2((Pu(),gv),Ey,this,2)),FH(this.c));case 3:return!this.a&&(this.a=new Fp(this,0)),Wy(this.a,(rp(),YG));case 4:return!this.a&&(this.a=new Fp(this,0)),Wy(this.a,(rp(),XG));case 5:return!this.a&&(this.a=new Fp(this,0)),Wy(this.a,(rp(),rP));case 6:return!this.a&&(this.a=new Fp(this,0)),Wy(this.a,(rp(),iP))}return dx(this,oo-A1((rp(),Z6)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():Z6,oo),co,fo)},wo.Uh=function(oo,co,fo){var po;switch(co){case 0:return!this.a&&(this.a=new Fp(this,0)),Vq(this.a,oo,fo);case 1:return!this.b&&(this.b=new V2((Pu(),gv),Ey,this,1)),$Y(this.b,oo,fo);case 2:return!this.c&&(this.c=new V2((Pu(),gv),Ey,this,2)),$Y(this.c,oo,fo);case 5:return!this.a&&(this.a=new Fp(this,0)),EVe(Wy(this.a,(rp(),rP)),oo,fo)}return po=bo(Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():(rp(),Z6),co),69),po.wk().Ak(this,R_e(this),co-A1((rp(),Z6)),oo,fo)},wo.Wh=function(oo){switch(oo){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Fp(this,0)),!uY(Wy(this.a,(rp(),YG)));case 4:return!this.a&&(this.a=new Fp(this,0)),!uY(Wy(this.a,(rp(),XG)));case 5:return!this.a&&(this.a=new Fp(this,0)),!uY(Wy(this.a,(rp(),rP)));case 6:return!this.a&&(this.a=new Fp(this,0)),!uY(Wy(this.a,(rp(),iP)))}return ux(this,oo-A1((rp(),Z6)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():Z6,oo))},wo.bi=function(oo,co){switch(oo){case 0:!this.a&&(this.a=new Fp(this,0)),wH(this.a,co);return;case 1:!this.b&&(this.b=new V2((Pu(),gv),Ey,this,1)),uQ(this.b,co);return;case 2:!this.c&&(this.c=new V2((Pu(),gv),Ey,this,2)),uQ(this.c,co);return;case 3:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),YG))),!this.a&&(this.a=new Fp(this,0)),YD(Wy(this.a,YG),bo(co,16));return;case 4:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),XG))),!this.a&&(this.a=new Fp(this,0)),YD(Wy(this.a,XG),bo(co,16));return;case 5:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),rP))),!this.a&&(this.a=new Fp(this,0)),YD(Wy(this.a,rP),bo(co,16));return;case 6:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),iP))),!this.a&&(this.a=new Fp(this,0)),YD(Wy(this.a,iP),bo(co,16));return}vx(this,oo-A1((rp(),Z6)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():Z6,oo),co)},wo.ii=function(){return rp(),Z6},wo.ki=function(oo){switch(oo){case 0:!this.a&&(this.a=new Fp(this,0)),U1(this.a);return;case 1:!this.b&&(this.b=new V2((Pu(),gv),Ey,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new V2((Pu(),gv),Ey,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),YG)));return;case 4:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),XG)));return;case 5:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),rP)));return;case 6:!this.a&&(this.a=new Fp(this,0)),l8(Wy(this.a,(rp(),iP)));return}mx(this,oo-A1((rp(),Z6)),Uu(this.j&2?(!this.k&&(this.k=new Dx),this.k).Nk():Z6,oo))},wo.Ib=function(){var oo;return this.j&4?gS(this):(oo=new Bx(gS(this)),oo.a+=" (mixed: ",GD(oo,this.a),oo.a+=")",oo.a)},Vo(tm,"XMLTypeDocumentRootImpl",683),zo(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},Zoe),wo.ri=function(oo,co){switch(oo.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return co==null?null:ry(co);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return u0(co);case 6:return w5t(bo(co,195));case 12:case 47:case 49:case 11:return Rlt(this,oo,co);case 13:return co==null?null:OWt(bo(co,247));case 15:case 14:return co==null?null:LCt(na(Tl(co)));case 17:return Ert((rp(),co));case 18:return Ert(co);case 21:case 20:return co==null?null:BCt(bo(co,161).a);case 27:return x5t(bo(co,195));case 30:return Fnt((rp(),bo(co,15)));case 31:return Fnt(bo(co,15));case 40:return _5t((rp(),co));case 42:return krt((rp(),co));case 43:return krt(co);case 59:case 48:return S5t((rp(),co));default:throw Cs(new i1(kN+oo.xe()+$6))}},wo.si=function(oo){var co,fo,po,vo,xo;switch(oo.G==-1&&(oo.G=(fo=zw(oo),fo?x4(fo.vi(),oo):-1)),oo.G){case 0:return co=new Tye,co;case 1:return po=new LU,po;case 2:return vo=new sPe,vo;case 3:return xo=new aPe,xo;default:throw Cs(new i1(G0e+oo.zb+$6))}},wo.ti=function(oo,co){var fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo,Zo,ws,Ss,Rs,Ls;switch(oo.hk()){case 5:case 52:case 4:return co;case 6:return RMt(co);case 8:case 7:return co==null?null:mBt(co);case 9:return co==null?null:WH(Ww((po=Ky(co,!0),po.length>0&&(o1(0,po.length),po.charCodeAt(0)==43)?(o1(1,po.length+1),po.substr(1)):po),-128,127)<<24>>24);case 10:return co==null?null:WH(Ww((vo=Ky(co,!0),vo.length>0&&(o1(0,vo.length),vo.charCodeAt(0)==43)?(o1(1,vo.length+1),vo.substr(1)):vo),-128,127)<<24>>24);case 11:return u0(w6(this,(rp(),aSt),co));case 12:return u0(w6(this,(rp(),lSt),co));case 13:return co==null?null:new Xye(Ky(co,!0));case 15:case 14:return Pzt(co);case 16:return u0(w6(this,(rp(),cSt),co));case 17:return Ftt((rp(),co));case 18:return Ftt(co);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Ky(co,!0);case 21:case 20:return Yzt(co);case 22:return u0(w6(this,(rp(),uSt),co));case 23:return u0(w6(this,(rp(),fSt),co));case 24:return u0(w6(this,(rp(),dSt),co));case 25:return u0(w6(this,(rp(),hSt),co));case 26:return u0(w6(this,(rp(),pSt),co));case 27:return bMt(co);case 30:return Ptt((rp(),co));case 31:return Ptt(co);case 32:return co==null?null:Ql(Ww((Po=Ky(co,!0),Po.length>0&&(o1(0,Po.length),Po.charCodeAt(0)==43)?(o1(1,Po.length+1),Po.substr(1)):Po),Ym,q0));case 33:return co==null?null:new s3((Wo=Ky(co,!0),Wo.length>0&&(o1(0,Wo.length),Wo.charCodeAt(0)==43)?(o1(1,Wo.length+1),Wo.substr(1)):Wo));case 34:return co==null?null:Ql(Ww((Xo=Ky(co,!0),Xo.length>0&&(o1(0,Xo.length),Xo.charCodeAt(0)==43)?(o1(1,Xo.length+1),Xo.substr(1)):Xo),Ym,q0));case 36:return co==null?null:E5(RZ((Zo=Ky(co,!0),Zo.length>0&&(o1(0,Zo.length),Zo.charCodeAt(0)==43)?(o1(1,Zo.length+1),Zo.substr(1)):Zo)));case 37:return co==null?null:E5(RZ((ws=Ky(co,!0),ws.length>0&&(o1(0,ws.length),ws.charCodeAt(0)==43)?(o1(1,ws.length+1),ws.substr(1)):ws)));case 40:return gDt((rp(),co));case 42:return jtt((rp(),co));case 43:return jtt(co);case 44:return co==null?null:new s3((Ss=Ky(co,!0),Ss.length>0&&(o1(0,Ss.length),Ss.charCodeAt(0)==43)?(o1(1,Ss.length+1),Ss.substr(1)):Ss));case 45:return co==null?null:new s3((Rs=Ky(co,!0),Rs.length>0&&(o1(0,Rs.length),Rs.charCodeAt(0)==43)?(o1(1,Rs.length+1),Rs.substr(1)):Rs));case 46:return Ky(co,!1);case 47:return u0(w6(this,(rp(),gSt),co));case 59:case 48:return pDt((rp(),co));case 49:return u0(w6(this,(rp(),mSt),co));case 50:return co==null?null:OI(Ww((Ls=Ky(co,!0),Ls.length>0&&(o1(0,Ls.length),Ls.charCodeAt(0)==43)?(o1(1,Ls.length+1),Ls.substr(1)):Ls),DJ,32767)<<16>>16);case 51:return co==null?null:OI(Ww((xo=Ky(co,!0),xo.length>0&&(o1(0,xo.length),xo.charCodeAt(0)==43)?(o1(1,xo.length+1),xo.substr(1)):xo),DJ,32767)<<16>>16);case 53:return u0(w6(this,(rp(),vSt),co));case 55:return co==null?null:OI(Ww((Eo=Ky(co,!0),Eo.length>0&&(o1(0,Eo.length),Eo.charCodeAt(0)==43)?(o1(1,Eo.length+1),Eo.substr(1)):Eo),DJ,32767)<<16>>16);case 56:return co==null?null:OI(Ww((To=Ky(co,!0),To.length>0&&(o1(0,To.length),To.charCodeAt(0)==43)?(o1(1,To.length+1),To.substr(1)):To),DJ,32767)<<16>>16);case 57:return co==null?null:E5(RZ((Ao=Ky(co,!0),Ao.length>0&&(o1(0,Ao.length),Ao.charCodeAt(0)==43)?(o1(1,Ao.length+1),Ao.substr(1)):Ao)));case 58:return co==null?null:E5(RZ((Io=Ky(co,!0),Io.length>0&&(o1(0,Io.length),Io.charCodeAt(0)==43)?(o1(1,Io.length+1),Io.substr(1)):Io)));case 60:return co==null?null:Ql(Ww((fo=Ky(co,!0),fo.length>0&&(o1(0,fo.length),fo.charCodeAt(0)==43)?(o1(1,fo.length+1),fo.substr(1)):fo),Ym,q0));case 61:return co==null?null:Ql(Ww(Ky(co,!0),Ym,q0));default:throw Cs(new i1(kN+oo.xe()+$6))}};var ySt,NMe,wSt,MMe;Vo(tm,"XMLTypeFactoryImpl",2028),zo(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},oUe),wo.N=!1,wo.O=!1;var xSt=!1;Vo(tm,"XMLTypePackageImpl",594),zo(1961,1,{851:1},Joe),wo.Kk=function(){return a3e(),RSt},Vo(tm,"XMLTypePackageImpl/1",1961),zo(1970,1,I0,ese),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/10",1970),zo(1971,1,I0,tD),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/11",1971),zo(1972,1,I0,tse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/12",1972),zo(1973,1,I0,IU),wo.fk=function(oo){return b$(oo)},wo.gk=function(oo){return Al(nm,Yl,345,oo,7,1)},Vo(tm,"XMLTypePackageImpl/13",1973),zo(1974,1,I0,NU),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/14",1974),zo(1975,1,I0,dz),wo.fk=function(oo){return Hs(oo,15)},wo.gk=function(oo){return Al(kx,rA,15,oo,0,1)},Vo(tm,"XMLTypePackageImpl/15",1975),zo(1976,1,I0,MU),wo.fk=function(oo){return Hs(oo,15)},wo.gk=function(oo){return Al(kx,rA,15,oo,0,1)},Vo(tm,"XMLTypePackageImpl/16",1976),zo(1977,1,I0,DU),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/17",1977),zo(1978,1,I0,BU),wo.fk=function(oo){return Hs(oo,161)},wo.gk=function(oo){return Al(IN,Yl,161,oo,0,1)},Vo(tm,"XMLTypePackageImpl/18",1978),zo(1979,1,I0,nse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/19",1979),zo(1962,1,I0,rse),wo.fk=function(oo){return Hs(oo,857)},wo.gk=function(oo){return Al(UG,Xu,857,oo,0,1)},Vo(tm,"XMLTypePackageImpl/2",1962),zo(1980,1,I0,ise),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/20",1980),zo(1981,1,I0,nD),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/21",1981),zo(1982,1,I0,rD),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/22",1982),zo(1983,1,I0,ose),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/23",1983),zo(1984,1,I0,sse),wo.fk=function(oo){return Hs(oo,195)},wo.gk=function(oo){return Al(Q2,Yl,195,oo,0,2)},Vo(tm,"XMLTypePackageImpl/24",1984),zo(1985,1,I0,hz),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/25",1985),zo(1986,1,I0,FU),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/26",1986),zo(1987,1,I0,ase),wo.fk=function(oo){return Hs(oo,15)},wo.gk=function(oo){return Al(kx,rA,15,oo,0,1)},Vo(tm,"XMLTypePackageImpl/27",1987),zo(1988,1,I0,lse),wo.fk=function(oo){return Hs(oo,15)},wo.gk=function(oo){return Al(kx,rA,15,oo,0,1)},Vo(tm,"XMLTypePackageImpl/28",1988),zo(1989,1,I0,cse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/29",1989),zo(1963,1,I0,use),wo.fk=function(oo){return Hs(oo,681)},wo.gk=function(oo){return Al(hne,Xu,2119,oo,0,1)},Vo(tm,"XMLTypePackageImpl/3",1963),zo(1990,1,I0,fse),wo.fk=function(oo){return Hs(oo,17)},wo.gk=function(oo){return Al(Vm,Yl,17,oo,0,1)},Vo(tm,"XMLTypePackageImpl/30",1990),zo(1991,1,I0,dse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/31",1991),zo(1992,1,I0,hse),wo.fk=function(oo){return Hs(oo,168)},wo.gk=function(oo){return Al(R6,Yl,168,oo,0,1)},Vo(tm,"XMLTypePackageImpl/32",1992),zo(1993,1,I0,pse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/33",1993),zo(1994,1,I0,gse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/34",1994),zo(1995,1,I0,mse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/35",1995),zo(1996,1,I0,vse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/36",1996),zo(1997,1,I0,bse),wo.fk=function(oo){return Hs(oo,15)},wo.gk=function(oo){return Al(kx,rA,15,oo,0,1)},Vo(tm,"XMLTypePackageImpl/37",1997),zo(1998,1,I0,Q4),wo.fk=function(oo){return Hs(oo,15)},wo.gk=function(oo){return Al(kx,rA,15,oo,0,1)},Vo(tm,"XMLTypePackageImpl/38",1998),zo(1999,1,I0,yse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/39",1999),zo(1964,1,I0,wse),wo.fk=function(oo){return Hs(oo,682)},wo.gk=function(oo){return Al(KG,Xu,2120,oo,0,1)},Vo(tm,"XMLTypePackageImpl/4",1964),zo(2e3,1,I0,JA),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/40",2e3),zo(2001,1,I0,Zm),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/41",2001),zo(2002,1,I0,xse),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/42",2002),zo(2003,1,I0,xE),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/43",2003),zo(2004,1,I0,Lw),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/44",2004),zo(2005,1,I0,Sse),wo.fk=function(oo){return Hs(oo,191)},wo.gk=function(oo){return Al(O6,Yl,191,oo,0,1)},Vo(tm,"XMLTypePackageImpl/45",2005),zo(2006,1,I0,f$),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/46",2006),zo(2007,1,I0,_se),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/47",2007),zo(2008,1,I0,Ese),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/48",2008),zo(2009,1,I0,kse),wo.fk=function(oo){return Hs(oo,191)},wo.gk=function(oo){return Al(O6,Yl,191,oo,0,1)},Vo(tm,"XMLTypePackageImpl/49",2009),zo(1965,1,I0,Tse),wo.fk=function(oo){return Hs(oo,683)},wo.gk=function(oo){return Al(OMe,Xu,2121,oo,0,1)},Vo(tm,"XMLTypePackageImpl/5",1965),zo(2010,1,I0,Cse),wo.fk=function(oo){return Hs(oo,168)},wo.gk=function(oo){return Al(R6,Yl,168,oo,0,1)},Vo(tm,"XMLTypePackageImpl/50",2010),zo(2011,1,I0,pz),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/51",2011),zo(2012,1,I0,$se),wo.fk=function(oo){return Hs(oo,17)},wo.gk=function(oo){return Al(Vm,Yl,17,oo,0,1)},Vo(tm,"XMLTypePackageImpl/52",2012),zo(1966,1,I0,xC),wo.fk=function(oo){return Cm(oo)},wo.gk=function(oo){return Al(uu,Yl,2,oo,6,1)},Vo(tm,"XMLTypePackageImpl/6",1966),zo(1967,1,I0,PU),wo.fk=function(oo){return Hs(oo,195)},wo.gk=function(oo){return Al(Q2,Yl,195,oo,0,2)},Vo(tm,"XMLTypePackageImpl/7",1967),zo(1968,1,I0,iD),wo.fk=function(oo){return v$(oo)},wo.gk=function(oo){return Al(qp,Yl,485,oo,8,1)},Vo(tm,"XMLTypePackageImpl/8",1968),zo(1969,1,I0,pw),wo.fk=function(oo){return Hs(oo,222)},wo.gk=function(oo){return Al(wR,Yl,222,oo,0,1)},Vo(tm,"XMLTypePackageImpl/9",1969);var M_,q4,oP,pne,Ns;zo(55,63,$5,p0),Vo(A4,"RegEx/ParseException",55),zo(836,1,{},gw),wo.bm=function(oo){return oofo*16)throw Cs(new p0(m0((c0(),Vdt))));fo=fo*16+vo}while(!0);if(this.a!=125)throw Cs(new p0(m0((c0(),Gdt))));if(fo>AN)throw Cs(new p0(m0((c0(),Wdt))));oo=fo}else{if(vo=0,this.c!=0||(vo=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(fo=vo,z0(this),this.c!=0||(vo=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));fo=fo*16+vo,oo=fo}break;case 117:if(po=0,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));co=co*16+po,oo=co;break;case 118:if(z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,z0(this),this.c!=0||(po=$T(this.a))<0)throw Cs(new p0(m0((c0(),$4))));if(co=co*16+po,co>AN)throw Cs(new p0(m0((c0(),"parser.descappe.4"))));oo=co;break;case 65:case 90:case 122:throw Cs(new p0(m0((c0(),Udt))))}return oo},wo.dm=function(oo){var co,fo;switch(oo){case 100:fo=(this.e&32)==32?T3("Nd",!0):(H0(),gne);break;case 68:fo=(this.e&32)==32?T3("Nd",!1):(H0(),jMe);break;case 119:fo=(this.e&32)==32?T3("IsWord",!0):(H0(),mM);break;case 87:fo=(this.e&32)==32?T3("IsWord",!1):(H0(),HMe);break;case 115:fo=(this.e&32)==32?T3("IsSpace",!0):(H0(),UR);break;case 83:fo=(this.e&32)==32?T3("IsSpace",!1):(H0(),zMe);break;default:throw Cs(new ly((co=oo,Uht+co.toString(16))))}return fo},wo.em=function(oo){var co,fo,po,vo,xo,Eo,To,Ao,Io,Po,Wo,Xo;for(this.b=1,z0(this),co=null,this.c==0&&this.a==94?(z0(this),oo?Po=(H0(),H0(),new jw(5)):(co=(H0(),H0(),new jw(4)),Uy(co,0,AN),Po=new jw(4))):Po=(H0(),H0(),new jw(4)),vo=!0;(Xo=this.c)!=1&&!(Xo==0&&this.a==93&&!vo);){if(vo=!1,fo=this.a,po=!1,Xo==10)switch(fo){case 100:case 68:case 119:case 87:case 115:case 83:J$(Po,this.dm(fo)),po=!0;break;case 105:case 73:case 99:case 67:fo=this.um(Po,fo),fo<0&&(po=!0);break;case 112:case 80:if(Wo=o4e(this,fo),!Wo)throw Cs(new p0(m0((c0(),ipe))));J$(Po,Wo),po=!0;break;default:fo=this.cm()}else if(Xo==20){if(Eo=FO(this.i,58,this.d),Eo<0)throw Cs(new p0(m0((c0(),l$e))));if(To=!0,Um(this.i,this.d)==94&&(++this.d,To=!1),xo=lx(this.i,this.d,Eo),Ao=uQe(xo,To,(this.e&512)==512),!Ao)throw Cs(new p0(m0((c0(),Pdt))));if(J$(Po,Ao),po=!0,Eo+1>=this.j||Um(this.i,Eo+1)!=93)throw Cs(new p0(m0((c0(),l$e))));this.d=Eo+2}if(z0(this),!po)if(this.c!=0||this.a!=45)Uy(Po,fo,fo);else{if(z0(this),(Xo=this.c)==1)throw Cs(new p0(m0((c0(),$J))));Xo==0&&this.a==93?(Uy(Po,fo,fo),Uy(Po,45,45)):(Io=this.a,Xo==10&&(Io=this.cm()),z0(this),Uy(Po,fo,Io))}(this.e&bS)==bS&&this.c==0&&this.a==44&&z0(this)}if(this.c==1)throw Cs(new p0(m0((c0(),$J))));return co&&(mB(co,Po),Po=co),B9(Po),pB(Po),this.b=0,z0(this),Po},wo.fm=function(){var oo,co,fo,po;for(fo=this.em(!1);(po=this.c)!=7;)if(oo=this.a,po==0&&(oo==45||oo==38)||po==4){if(z0(this),this.c!=9)throw Cs(new p0(m0((c0(),zdt))));if(co=this.em(!1),po==4)J$(fo,co);else if(oo==45)mB(fo,co);else if(oo==38)Tlt(fo,co);else throw Cs(new ly("ASSERT"))}else throw Cs(new p0(m0((c0(),Hdt))));return z0(this),fo},wo.gm=function(){var oo,co;return oo=this.a-48,co=(H0(),H0(),new uue(12,null,oo)),!this.g&&(this.g=new SK),xK(this.g,new lye(oo)),z0(this),co},wo.hm=function(){return z0(this),H0(),ESt},wo.im=function(){return z0(this),H0(),_St},wo.jm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.km=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.lm=function(){return z0(this),NOt()},wo.mm=function(){return z0(this),H0(),TSt},wo.nm=function(){return z0(this),H0(),$St},wo.om=function(){var oo;if(this.d>=this.j||((oo=Um(this.i,this.d++))&65504)!=64)throw Cs(new p0(m0((c0(),Ldt))));return z0(this),H0(),H0(),new CE(0,oo-64)},wo.pm=function(){return z0(this),LGt()},wo.qm=function(){return z0(this),H0(),ASt},wo.rm=function(){var oo;return oo=(H0(),H0(),new CE(0,105)),z0(this),oo},wo.sm=function(){return z0(this),H0(),CSt},wo.tm=function(){return z0(this),H0(),kSt},wo.um=function(oo,co){return this.cm()},wo.vm=function(){return z0(this),H0(),FMe},wo.wm=function(){var oo,co,fo,po,vo;if(this.d+1>=this.j)throw Cs(new p0(m0((c0(),Ndt))));if(po=-1,co=null,oo=Um(this.i,this.d),49<=oo&&oo<=57){if(po=oo-48,!this.g&&(this.g=new SK),xK(this.g,new lye(po)),++this.d,Um(this.i,this.d)!=41)throw Cs(new p0(m0((c0(),zT))));++this.d}else switch(oo==63&&--this.d,z0(this),co=I3e(this),co.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw Cs(new p0(m0((c0(),zT))));break;default:throw Cs(new p0(m0((c0(),Mdt))))}if(z0(this),vo=d6(this),fo=null,vo.e==2){if(vo.Pm()!=2)throw Cs(new p0(m0((c0(),Ddt))));fo=vo.Lm(1),vo=vo.Lm(0)}if(this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),H0(),H0(),new GQe(po,co,vo,fo)},wo.xm=function(){return z0(this),H0(),PMe},wo.ym=function(){var oo;if(z0(this),oo=JY(24,d6(this)),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.zm=function(){var oo;if(z0(this),oo=JY(20,d6(this)),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.Am=function(){var oo;if(z0(this),oo=JY(22,d6(this)),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.Bm=function(){var oo,co,fo,po,vo;for(oo=0,fo=0,co=-1;this.d=this.j)throw Cs(new p0(m0((c0(),s$e))));if(co==45){for(++this.d;this.d=this.j)throw Cs(new p0(m0((c0(),s$e))))}if(co==58){if(++this.d,z0(this),po=jWe(d6(this),oo,fo),this.c!=7)throw Cs(new p0(m0((c0(),zT))));z0(this)}else if(co==41)++this.d,z0(this),po=jWe(d6(this),oo,fo);else throw Cs(new p0(m0((c0(),Idt))));return po},wo.Cm=function(){var oo;if(z0(this),oo=JY(21,d6(this)),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.Dm=function(){var oo;if(z0(this),oo=JY(23,d6(this)),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.Em=function(){var oo,co;if(z0(this),oo=this.f++,co=Fce(d6(this),oo),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),co},wo.Fm=function(){var oo;if(z0(this),oo=Fce(d6(this),0),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.Gm=function(oo){return z0(this),this.c==5?(z0(this),VY(oo,(H0(),H0(),new R$(9,oo)))):VY(oo,(H0(),H0(),new R$(3,oo)))},wo.Hm=function(oo){var co;return z0(this),co=(H0(),H0(),new KD(2)),this.c==5?(z0(this),OT(co,aP),OT(co,oo)):(OT(co,oo),OT(co,aP)),co},wo.Im=function(oo){return z0(this),this.c==5?(z0(this),H0(),H0(),new R$(9,oo)):(H0(),H0(),new R$(3,oo))},wo.a=0,wo.b=0,wo.c=0,wo.d=0,wo.e=0,wo.f=1,wo.g=null,wo.j=0,Vo(A4,"RegEx/RegexParser",836),zo(1947,836,{},lPe),wo.bm=function(oo){return!1},wo.cm=function(){return j4e(this)},wo.dm=function(oo){return eN(oo)},wo.em=function(oo){return xct(this)},wo.fm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.gm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.hm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.im=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.jm=function(){return z0(this),eN(67)},wo.km=function(){return z0(this),eN(73)},wo.lm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.mm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.nm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.om=function(){return z0(this),eN(99)},wo.pm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.qm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.rm=function(){return z0(this),eN(105)},wo.sm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.tm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.um=function(oo,co){return J$(oo,eN(co)),-1},wo.vm=function(){return z0(this),H0(),H0(),new CE(0,94)},wo.wm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.xm=function(){return z0(this),H0(),H0(),new CE(0,36)},wo.ym=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.zm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.Am=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.Bm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.Cm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.Dm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.Em=function(){var oo;if(z0(this),oo=Fce(d6(this),0),this.c!=7)throw Cs(new p0(m0((c0(),zT))));return z0(this),oo},wo.Fm=function(){throw Cs(new p0(m0((c0(),Ex))))},wo.Gm=function(oo){return z0(this),VY(oo,(H0(),H0(),new R$(3,oo)))},wo.Hm=function(oo){var co;return z0(this),co=(H0(),H0(),new KD(2)),OT(co,oo),OT(co,aP),co},wo.Im=function(oo){return z0(this),H0(),H0(),new R$(3,oo)};var P7=null,pM=null;Vo(A4,"RegEx/ParserForXMLSchema",1947),zo(122,1,RN,_C),wo.Jm=function(oo){throw Cs(new ly("Not supported."))},wo.Km=function(){return-1},wo.Lm=function(oo){return null},wo.Mm=function(){return null},wo.Nm=function(oo){},wo.Om=function(oo){},wo.Pm=function(){return 0},wo.Ib=function(){return this.Qm(0)},wo.Qm=function(oo){return this.e==11?".":""},wo.e=0;var DMe,gM,sP,SSt,LMe,zA=null,gne,fbe=null,BMe,aP,dbe=null,FMe,PMe,jMe,zMe,HMe,_St,UR,ESt,kSt,TSt,CSt,mM,$St,ASt,WXt=Vo(A4,"RegEx/Token",122);zo(138,122,{3:1,138:1,122:1},jw),wo.Qm=function(oo){var co,fo,po;if(this.e==4)if(this==BMe)fo=".";else if(this==gne)fo="\\d";else if(this==mM)fo="\\w";else if(this==UR)fo="\\s";else{for(po=new Z5,po.a+="[",co=0;co0&&(po.a+=","),this.b[co]===this.b[co+1]?Av(po,Uq(this.b[co])):(Av(po,Uq(this.b[co])),po.a+="-",Av(po,Uq(this.b[co+1])));po.a+="]",fo=po.a}else if(this==jMe)fo="\\D";else if(this==HMe)fo="\\W";else if(this==zMe)fo="\\S";else{for(po=new Z5,po.a+="[^",co=0;co0&&(po.a+=","),this.b[co]===this.b[co+1]?Av(po,Uq(this.b[co])):(Av(po,Uq(this.b[co])),po.a+="-",Av(po,Uq(this.b[co+1])));po.a+="]",fo=po.a}return fo},wo.a=!1,wo.c=!1,Vo(A4,"RegEx/RangeToken",138),zo(592,1,{592:1},lye),wo.a=0,Vo(A4,"RegEx/RegexParser/ReferencePosition",592),zo(591,1,{3:1,591:1},_je),wo.Fb=function(oo){var co;return oo==null||!Hs(oo,591)?!1:(co=bo(oo,591),Iu(this.b,co.b)&&this.a==co.a)},wo.Hb=function(){return h4(this.b+"/"+N4e(this.a))},wo.Ib=function(){return this.c.Qm(this.a)},wo.a=0,Vo(A4,"RegEx/RegularExpression",591),zo(228,122,RN,CE),wo.Km=function(){return this.a},wo.Qm=function(oo){var co,fo,po;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:po="\\"+hce(this.a&em);break;case 12:po="\\f";break;case 10:po="\\n";break;case 13:po="\\r";break;case 9:po="\\t";break;case 27:po="\\e";break;default:this.a>=hv?(fo=(co=this.a>>>0,"0"+co.toString(16)),po="\\v"+lx(fo,fo.length-6,fo.length)):po=""+hce(this.a&em)}break;case 8:this==FMe||this==PMe?po=""+hce(this.a&em):po="\\"+hce(this.a&em);break;default:po=null}return po},wo.a=0,Vo(A4,"RegEx/Token/CharToken",228),zo(318,122,RN,R$),wo.Lm=function(oo){return this.a},wo.Nm=function(oo){this.b=oo},wo.Om=function(oo){this.c=oo},wo.Pm=function(){return 1},wo.Qm=function(oo){var co;if(this.e==3)if(this.c<0&&this.b<0)co=this.a.Qm(oo)+"*";else if(this.c==this.b)co=this.a.Qm(oo)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)co=this.a.Qm(oo)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)co=this.a.Qm(oo)+"{"+this.c+",}";else throw Cs(new ly("Token#toString(): CLOSURE "+this.c+av+this.b));else if(this.c<0&&this.b<0)co=this.a.Qm(oo)+"*?";else if(this.c==this.b)co=this.a.Qm(oo)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)co=this.a.Qm(oo)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)co=this.a.Qm(oo)+"{"+this.c+",}?";else throw Cs(new ly("Token#toString(): NONGREEDYCLOSURE "+this.c+av+this.b));return co},wo.b=0,wo.c=0,Vo(A4,"RegEx/Token/ClosureToken",318),zo(837,122,RN,Qxe),wo.Lm=function(oo){return oo==0?this.a:this.b},wo.Pm=function(){return 2},wo.Qm=function(oo){var co;return this.b.e==3&&this.b.Lm(0)==this.a?co=this.a.Qm(oo)+"+":this.b.e==9&&this.b.Lm(0)==this.a?co=this.a.Qm(oo)+"+?":co=this.a.Qm(oo)+(""+this.b.Qm(oo)),co},Vo(A4,"RegEx/Token/ConcatToken",837),zo(1945,122,RN,GQe),wo.Lm=function(oo){if(oo==0)return this.d;if(oo==1)return this.b;throw Cs(new ly("Internal Error: "+oo))},wo.Pm=function(){return this.b?2:1},wo.Qm=function(oo){var co;return this.c>0?co="(?("+this.c+")":this.a.e==8?co="(?("+this.a+")":co="(?"+this.a,this.b?co+=this.d+"|"+this.b+")":co+=this.d+")",co},wo.c=0,Vo(A4,"RegEx/Token/ConditionToken",1945),zo(1946,122,RN,DKe),wo.Lm=function(oo){return this.b},wo.Pm=function(){return 1},wo.Qm=function(oo){return"(?"+(this.a==0?"":N4e(this.a))+(this.c==0?"":N4e(this.c))+":"+this.b.Qm(oo)+")"},wo.a=0,wo.c=0,Vo(A4,"RegEx/Token/ModifierToken",1946),zo(838,122,RN,aSe),wo.Lm=function(oo){return this.a},wo.Pm=function(){return 1},wo.Qm=function(oo){var co;switch(co=null,this.e){case 6:this.b==0?co="(?:"+this.a.Qm(oo)+")":co="("+this.a.Qm(oo)+")";break;case 20:co="(?="+this.a.Qm(oo)+")";break;case 21:co="(?!"+this.a.Qm(oo)+")";break;case 22:co="(?<="+this.a.Qm(oo)+")";break;case 23:co="(?"+this.a.Qm(oo)+")"}return co},wo.b=0,Vo(A4,"RegEx/Token/ParenToken",838),zo(530,122,{3:1,122:1,530:1},uue),wo.Mm=function(){return this.b},wo.Qm=function(oo){return this.e==12?"\\"+this.a:$zt(this.b)},wo.a=0,Vo(A4,"RegEx/Token/StringToken",530),zo(477,122,RN,KD),wo.Jm=function(oo){OT(this,oo)},wo.Lm=function(oo){return bo(KC(this.a,oo),122)},wo.Pm=function(){return this.a?this.a.a.c.length:0},wo.Qm=function(oo){var co,fo,po,vo,xo;if(this.e==1){if(this.a.a.c.length==2)co=bo(KC(this.a,0),122),fo=bo(KC(this.a,1),122),fo.e==3&&fo.Lm(0)==co?vo=co.Qm(oo)+"+":fo.e==9&&fo.Lm(0)==co?vo=co.Qm(oo)+"+?":vo=co.Qm(oo)+(""+fo.Qm(oo));else{for(xo=new Z5,po=0;po=this.c.b:this.a<=this.c.b},wo.Sb=function(){return this.b>0},wo.Tb=function(){return this.b},wo.Vb=function(){return this.b-1},wo.Qb=function(){throw Cs(new X5(e1t))},wo.a=0,wo.b=0,Vo($$e,"ExclusiveRange/RangeIterator",258);var Rx=XO(AJ,"C"),Q1=XO(qB,"I"),kw=XO(sR,"Z"),tT=XO(VB,"J"),Q2=XO(jB,"B"),Am=XO(zB,"D"),HA=XO(HB,"F"),j7=XO(GB,"S"),UXt=Ip("org.eclipse.elk.core.labels","ILabelManager"),qMe=Ip(lv,"DiagnosticChain"),VMe=Ip($ht,"ResourceSet"),GMe=Vo(lv,"InvocationTargetException",null),OSt=(TK(),a7t),ISt=ISt=ZLt;eRt(YSt),X8t("permProps",[[["locale","default"],[t1t,"gecko1_8"]],[["locale","default"],[t1t,"safari"]]]),ISt(null,"elk",null)}).call(this)}).call(this,typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(no,io,so){function ao(mo,yo){if(!(mo instanceof yo))throw new TypeError("Cannot call a class as a function")}function lo(mo,yo){if(!mo)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return yo&&(typeof yo=="object"||typeof yo=="function")?yo:mo}function uo(mo,yo){if(typeof yo!="function"&&yo!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof yo);mo.prototype=Object.create(yo&&yo.prototype,{constructor:{value:mo,enumerable:!1,writable:!0,configurable:!0}}),yo&&(Object.setPrototypeOf?Object.setPrototypeOf(mo,yo):mo.__proto__=yo)}var ho=no("./elk-api.js").default,go=function(mo){uo(yo,mo);function yo(){var So=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ao(this,yo);var _o=Object.assign({},So),ko=!1;try{no.resolve("web-worker"),ko=!0}catch{}if(So.workerUrl)if(ko){var Co=no("web-worker");_o.workerFactory=function(Oo){return new Co(Oo)}}else console.warn(`Web worker requested but 'web-worker' package not installed. Consider installing the package or pass your own 'workerFactory' to ELK's constructor. -... Falling back to non-web worker version.`);if(!_o.workerFactory){var $o=no("./elk-worker.min.js"),Ro=$o.Worker;_o.workerFactory=function(Oo){return new Ro(Oo)}}return lo(this,(yo.__proto__||Object.getPrototypeOf(yo)).call(this,_o))}return yo}(ho);Object.defineProperty(io.exports,"__esModule",{value:!0}),io.exports=go,go.default=go},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(no,io,so){io.exports=Worker},{}]},{},[3])(3)})})(elk_bundled);var elk_bundledExports=elk_bundled.exports;const ELK=getDefaultExportFromCjs(elk_bundledExports),findCommonAncestor=(eo,to,no)=>{const{parentById:io}=no,so=new Set;let ao=eo;for(;ao;){if(so.add(ao),ao===to)return ao;ao=io[ao]}for(ao=to;ao;){if(so.has(ao))return ao;ao=io[ao]}return"root"},elk=new ELK;let portPos={};const conf={};let nodeDb={};const addVertices=async function(eo,to,no,io,so,ao,lo){const ho=no.select(`[id="${to}"]`).insert("g").attr("class","nodes"),go=Object.keys(eo);return await Promise.all(go.map(async function(mo){const yo=eo[mo];let So="default";yo.classes.length>0&&(So=yo.classes.join(" ")),So=So+" flowchart-label";const _o=getStylesFromArray(yo.styles);let ko=yo.text!==void 0?yo.text:yo.id;const Co={width:0,height:0},$o=[{id:yo.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:yo.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:yo.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:yo.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let Ro=0,Oo="",No={};switch(yo.type){case"round":Ro=5,Oo="rect";break;case"square":Oo="rect";break;case"diamond":Oo="question",No={portConstraints:"FIXED_SIDE"};break;case"hexagon":Oo="hexagon";break;case"odd":Oo="rect_left_inv_arrow";break;case"lean_right":Oo="lean_right";break;case"lean_left":Oo="lean_left";break;case"trapezoid":Oo="trapezoid";break;case"inv_trapezoid":Oo="inv_trapezoid";break;case"odd_right":Oo="rect_left_inv_arrow";break;case"circle":Oo="circle";break;case"ellipse":Oo="ellipse";break;case"stadium":Oo="stadium";break;case"subroutine":Oo="subroutine";break;case"cylinder":Oo="cylinder";break;case"group":Oo="rect";break;case"doublecircle":Oo="doublecircle";break;default:Oo="rect"}const Mo={labelStyle:_o.labelStyle,shape:Oo,labelText:ko,labelType:yo.labelType,rx:Ro,ry:Ro,class:So,style:_o.style,id:yo.id,link:yo.link,linkTarget:yo.linkTarget,tooltip:so.db.getTooltip(yo.id)||"",domId:so.db.lookUpDomId(yo.id),haveCallback:yo.haveCallback,width:yo.type==="group"?500:void 0,dir:yo.dir,type:yo.type,props:yo.props,padding:getConfig$1$1().flowchart.padding};let Bo,Po;if(Mo.type!=="group")Po=await insertNode(ho,Mo,yo.dir),Bo=Po.node().getBBox();else{io.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:Go,bbox:Do}=await labelHelper(ho,Mo,void 0,!0);Co.width=Do.width,Co.wrappingWidth=getConfig$1$1().flowchart.wrappingWidth,Co.height=Do.height,Co.labelNode=Go.node(),Mo.labelData=Co}const Lo={id:yo.id,ports:yo.type==="diamond"?$o:[],layoutOptions:No,labelText:ko,labelData:Co,domId:so.db.lookUpDomId(yo.id),width:Bo==null?void 0:Bo.width,height:Bo==null?void 0:Bo.height,type:yo.type,el:Po,parent:ao.parentById[yo.id]};nodeDb[Mo.id]=Lo})),lo},getNextPosition=(eo,to,no)=>{const io={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return io.TD=io.TB,io[no][to][eo]},getNextPort=(eo,to,no)=>{if(log$1.info("getNextPort",{node:eo,edgeDirection:to,graphDirection:no}),!portPos[eo])switch(no){case"TB":case"TD":portPos[eo]={inPosition:"north",outPosition:"south"};break;case"BT":portPos[eo]={inPosition:"south",outPosition:"north"};break;case"RL":portPos[eo]={inPosition:"east",outPosition:"west"};break;case"LR":portPos[eo]={inPosition:"west",outPosition:"east"};break}const io=to==="in"?portPos[eo].inPosition:portPos[eo].outPosition;return to==="in"?portPos[eo].inPosition=getNextPosition(portPos[eo].inPosition,to,no):portPos[eo].outPosition=getNextPosition(portPos[eo].outPosition,to,no),io},getEdgeStartEndPoint=(eo,to)=>{let no=eo.start,io=eo.end;const so=no,ao=io,lo=nodeDb[no],uo=nodeDb[io];return!lo||!uo?{source:no,target:io}:(lo.type==="diamond"&&(no=`${no}-${getNextPort(no,"out",to)}`),uo.type==="diamond"&&(io=`${io}-${getNextPort(io,"in",to)}`),{source:no,target:io,sourceId:so,targetId:ao})},addEdges=function(eo,to,no,io){log$1.info("abc78 edges = ",eo);const so=io.insert("g").attr("class","edgeLabels");let ao={},lo=to.db.getDirection(),uo,ho;if(eo.defaultStyle!==void 0){const go=getStylesFromArray(eo.defaultStyle);uo=go.style,ho=go.labelStyle}return eo.forEach(function(go){const mo="L-"+go.start+"-"+go.end;ao[mo]===void 0?(ao[mo]=0,log$1.info("abc78 new entry",mo,ao[mo])):(ao[mo]++,log$1.info("abc78 new entry",mo,ao[mo]));let yo=mo+"-"+ao[mo];log$1.info("abc78 new link id to be used is",mo,yo,ao[mo]);const So="LS-"+go.start,_o="LE-"+go.end,ko={style:"",labelStyle:""};switch(ko.minlen=go.length||1,go.type==="arrow_open"?ko.arrowhead="none":ko.arrowhead="normal",ko.arrowTypeStart="arrow_open",ko.arrowTypeEnd="arrow_open",go.type){case"double_arrow_cross":ko.arrowTypeStart="arrow_cross";case"arrow_cross":ko.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":ko.arrowTypeStart="arrow_point";case"arrow_point":ko.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":ko.arrowTypeStart="arrow_circle";case"arrow_circle":ko.arrowTypeEnd="arrow_circle";break}let Co="",$o="";switch(go.stroke){case"normal":Co="fill:none;",uo!==void 0&&(Co=uo),ho!==void 0&&($o=ho),ko.thickness="normal",ko.pattern="solid";break;case"dotted":ko.thickness="normal",ko.pattern="dotted",ko.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":ko.thickness="thick",ko.pattern="solid",ko.style="stroke-width: 3.5px;fill:none;";break}if(go.style!==void 0){const Po=getStylesFromArray(go.style);Co=Po.style,$o=Po.labelStyle}ko.style=ko.style+=Co,ko.labelStyle=ko.labelStyle+=$o,go.interpolate!==void 0?ko.curve=interpolateToCurve(go.interpolate,curveLinear):eo.defaultInterpolate!==void 0?ko.curve=interpolateToCurve(eo.defaultInterpolate,curveLinear):ko.curve=interpolateToCurve(conf.curve,curveLinear),go.text===void 0?go.style!==void 0&&(ko.arrowheadStyle="fill: #333"):(ko.arrowheadStyle="fill: #333",ko.labelpos="c"),ko.labelType=go.labelType,ko.label=go.text.replace(common$1.lineBreakRegex,` +... Falling back to non-web worker version.`);if(!_o.workerFactory){var $o=no("./elk-worker.min.js"),Ro=$o.Worker;_o.workerFactory=function(Oo){return new Ro(Oo)}}return lo(this,(yo.__proto__||Object.getPrototypeOf(yo)).call(this,_o))}return yo}(ho);Object.defineProperty(io.exports,"__esModule",{value:!0}),io.exports=go,go.default=go},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(no,io,so){io.exports=Worker},{}]},{},[3])(3)})})(elk_bundled);var elk_bundledExports=elk_bundled.exports;const ELK=getDefaultExportFromCjs(elk_bundledExports),findCommonAncestor=(eo,to,no)=>{const{parentById:io}=no,so=new Set;let ao=eo;for(;ao;){if(so.add(ao),ao===to)return ao;ao=io[ao]}for(ao=to;ao;){if(so.has(ao))return ao;ao=io[ao]}return"root"},elk=new ELK;let portPos={};const conf={};let nodeDb={};const addVertices=async function(eo,to,no,io,so,ao,lo){const ho=no.select(`[id="${to}"]`).insert("g").attr("class","nodes"),go=Object.keys(eo);return await Promise.all(go.map(async function(mo){const yo=eo[mo];let So="default";yo.classes.length>0&&(So=yo.classes.join(" ")),So=So+" flowchart-label";const _o=getStylesFromArray(yo.styles);let ko=yo.text!==void 0?yo.text:yo.id;const Co={width:0,height:0},$o=[{id:yo.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:yo.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:yo.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:yo.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let Ro=0,Oo="",No={};switch(yo.type){case"round":Ro=5,Oo="rect";break;case"square":Oo="rect";break;case"diamond":Oo="question",No={portConstraints:"FIXED_SIDE"};break;case"hexagon":Oo="hexagon";break;case"odd":Oo="rect_left_inv_arrow";break;case"lean_right":Oo="lean_right";break;case"lean_left":Oo="lean_left";break;case"trapezoid":Oo="trapezoid";break;case"inv_trapezoid":Oo="inv_trapezoid";break;case"odd_right":Oo="rect_left_inv_arrow";break;case"circle":Oo="circle";break;case"ellipse":Oo="ellipse";break;case"stadium":Oo="stadium";break;case"subroutine":Oo="subroutine";break;case"cylinder":Oo="cylinder";break;case"group":Oo="rect";break;case"doublecircle":Oo="doublecircle";break;default:Oo="rect"}const Mo={labelStyle:_o.labelStyle,shape:Oo,labelText:ko,labelType:yo.labelType,rx:Ro,ry:Ro,class:So,style:_o.style,id:yo.id,link:yo.link,linkTarget:yo.linkTarget,tooltip:so.db.getTooltip(yo.id)||"",domId:so.db.lookUpDomId(yo.id),haveCallback:yo.haveCallback,width:yo.type==="group"?500:void 0,dir:yo.dir,type:yo.type,props:yo.props,padding:getConfig$1$1().flowchart.padding};let Bo,Fo;if(Mo.type!=="group")Fo=await insertNode(ho,Mo,yo.dir),Bo=Fo.node().getBBox();else{io.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:Go,bbox:Do}=await labelHelper(ho,Mo,void 0,!0);Co.width=Do.width,Co.wrappingWidth=getConfig$1$1().flowchart.wrappingWidth,Co.height=Do.height,Co.labelNode=Go.node(),Mo.labelData=Co}const Lo={id:yo.id,ports:yo.type==="diamond"?$o:[],layoutOptions:No,labelText:ko,labelData:Co,domId:so.db.lookUpDomId(yo.id),width:Bo==null?void 0:Bo.width,height:Bo==null?void 0:Bo.height,type:yo.type,el:Fo,parent:ao.parentById[yo.id]};nodeDb[Mo.id]=Lo})),lo},getNextPosition=(eo,to,no)=>{const io={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return io.TD=io.TB,io[no][to][eo]},getNextPort=(eo,to,no)=>{if(log$1.info("getNextPort",{node:eo,edgeDirection:to,graphDirection:no}),!portPos[eo])switch(no){case"TB":case"TD":portPos[eo]={inPosition:"north",outPosition:"south"};break;case"BT":portPos[eo]={inPosition:"south",outPosition:"north"};break;case"RL":portPos[eo]={inPosition:"east",outPosition:"west"};break;case"LR":portPos[eo]={inPosition:"west",outPosition:"east"};break}const io=to==="in"?portPos[eo].inPosition:portPos[eo].outPosition;return to==="in"?portPos[eo].inPosition=getNextPosition(portPos[eo].inPosition,to,no):portPos[eo].outPosition=getNextPosition(portPos[eo].outPosition,to,no),io},getEdgeStartEndPoint=(eo,to)=>{let no=eo.start,io=eo.end;const so=no,ao=io,lo=nodeDb[no],uo=nodeDb[io];return!lo||!uo?{source:no,target:io}:(lo.type==="diamond"&&(no=`${no}-${getNextPort(no,"out",to)}`),uo.type==="diamond"&&(io=`${io}-${getNextPort(io,"in",to)}`),{source:no,target:io,sourceId:so,targetId:ao})},addEdges=function(eo,to,no,io){log$1.info("abc78 edges = ",eo);const so=io.insert("g").attr("class","edgeLabels");let ao={},lo=to.db.getDirection(),uo,ho;if(eo.defaultStyle!==void 0){const go=getStylesFromArray(eo.defaultStyle);uo=go.style,ho=go.labelStyle}return eo.forEach(function(go){const mo="L-"+go.start+"-"+go.end;ao[mo]===void 0?(ao[mo]=0,log$1.info("abc78 new entry",mo,ao[mo])):(ao[mo]++,log$1.info("abc78 new entry",mo,ao[mo]));let yo=mo+"-"+ao[mo];log$1.info("abc78 new link id to be used is",mo,yo,ao[mo]);const So="LS-"+go.start,_o="LE-"+go.end,ko={style:"",labelStyle:""};switch(ko.minlen=go.length||1,go.type==="arrow_open"?ko.arrowhead="none":ko.arrowhead="normal",ko.arrowTypeStart="arrow_open",ko.arrowTypeEnd="arrow_open",go.type){case"double_arrow_cross":ko.arrowTypeStart="arrow_cross";case"arrow_cross":ko.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":ko.arrowTypeStart="arrow_point";case"arrow_point":ko.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":ko.arrowTypeStart="arrow_circle";case"arrow_circle":ko.arrowTypeEnd="arrow_circle";break}let Co="",$o="";switch(go.stroke){case"normal":Co="fill:none;",uo!==void 0&&(Co=uo),ho!==void 0&&($o=ho),ko.thickness="normal",ko.pattern="solid";break;case"dotted":ko.thickness="normal",ko.pattern="dotted",ko.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":ko.thickness="thick",ko.pattern="solid",ko.style="stroke-width: 3.5px;fill:none;";break}if(go.style!==void 0){const Fo=getStylesFromArray(go.style);Co=Fo.style,$o=Fo.labelStyle}ko.style=ko.style+=Co,ko.labelStyle=ko.labelStyle+=$o,go.interpolate!==void 0?ko.curve=interpolateToCurve(go.interpolate,curveLinear):eo.defaultInterpolate!==void 0?ko.curve=interpolateToCurve(eo.defaultInterpolate,curveLinear):ko.curve=interpolateToCurve(conf.curve,curveLinear),go.text===void 0?go.style!==void 0&&(ko.arrowheadStyle="fill: #333"):(ko.arrowheadStyle="fill: #333",ko.labelpos="c"),ko.labelType=go.labelType,ko.label=go.text.replace(common$1.lineBreakRegex,` `),go.style===void 0&&(ko.style=ko.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),ko.labelStyle=ko.labelStyle.replace("color:","fill:"),ko.id=yo,ko.classes="flowchart-link "+So+" "+_o;const Ro=insertEdgeLabel(so,ko),{source:Oo,target:No,sourceId:Mo,targetId:Bo}=getEdgeStartEndPoint(go,lo);log$1.debug("abc78 source and target",Oo,No),no.edges.push({id:"e"+go.start+go.end,sources:[Oo],targets:[No],sourceId:Mo,targetId:Bo,labelEl:Ro,labels:[{width:ko.width,height:ko.height,orgWidth:ko.width,orgHeight:ko.height,text:ko.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:ko})}),no},addMarkersToEdge=function(eo,to,no,io,so){let ao="";io&&(ao=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,ao=ao.replace(/\(/g,"\\("),ao=ao.replace(/\)/g,"\\)")),addEdgeMarkers(eo,to,ao,so,no)},getClasses$2=function(eo,to){return log$1.info("Extracting classes"),to.db.getClasses()},addSubGraphs=function(eo){const to={parentById:{},childrenById:{}},no=eo.getSubGraphs();return log$1.info("Subgraphs - ",no),no.forEach(function(io){io.nodes.forEach(function(so){to.parentById[so]=io.id,to.childrenById[io.id]===void 0&&(to.childrenById[io.id]=[]),to.childrenById[io.id].push(so)})}),no.forEach(function(io){io.id,to.parentById[io.id]!==void 0&&to.parentById[io.id]}),to},calcOffset=function(eo,to,no){const io=findCommonAncestor(eo,to,no);if(io===void 0||io==="root")return{x:0,y:0};const so=nodeDb[io].offset;return{x:so.posX,y:so.posY}},insertEdge=function(eo,to,no,io,so,ao){const lo=calcOffset(to.sourceId,to.targetId,so),uo=to.sections[0].startPoint,ho=to.sections[0].endPoint,mo=(to.sections[0].bendPoints?to.sections[0].bendPoints:[]).map(No=>[No.x+lo.x,No.y+lo.y]),yo=[[uo.x+lo.x,uo.y+lo.y],...mo,[ho.x+lo.x,ho.y+lo.y]],{x:So,y:_o}=getLineFunctionsWithOffset(to.edgeData),ko=line$1().x(So).y(_o).curve(curveLinear),Co=eo.insert("path").attr("d",ko(yo)).attr("class","path "+no.classes).attr("fill","none"),$o=eo.insert("g").attr("class","edgeLabel"),Ro=select($o.node().appendChild(to.labelEl)),Oo=Ro.node().firstChild.getBoundingClientRect();Ro.attr("width",Oo.width),Ro.attr("height",Oo.height),$o.attr("transform",`translate(${to.labels[0].x+lo.x}, ${to.labels[0].y+lo.y})`),addMarkersToEdge(Co,no,io.type,io.arrowMarkerAbsolute,ao)},insertChildren=(eo,to)=>{eo.forEach(no=>{no.children||(no.children=[]);const io=to.childrenById[no.id];io&&io.forEach(so=>{no.children.push(nodeDb[so])}),insertChildren(no.children,to)})},draw$4=async function(eo,to,no,io){var so;io.db.clear(),nodeDb={},portPos={},io.db.setGen("gen-2"),io.parser.parse(eo);const ao=select("body").append("div").attr("style","height:400px").attr("id","cy");let lo={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(log$1.info("Drawing flowchart using v3 renderer",elk),io.db.getDirection()){case"BT":lo.layoutOptions["elk.direction"]="UP";break;case"TB":lo.layoutOptions["elk.direction"]="DOWN";break;case"LR":lo.layoutOptions["elk.direction"]="RIGHT";break;case"RL":lo.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:ho,flowchart:go}=getConfig$1$1();let mo;ho==="sandbox"&&(mo=select("#i"+to));const yo=select(ho==="sandbox"?mo.nodes()[0].contentDocument.body:"body"),So=ho==="sandbox"?mo.nodes()[0].contentDocument:document,_o=yo.select(`[id="${to}"]`);insertMarkers$1$1(_o,["point","circle","cross"],io.type,to);const Co=io.db.getVertices();let $o;const Ro=io.db.getSubGraphs();log$1.info("Subgraphs - ",Ro);for(let Go=Ro.length-1;Go>=0;Go--)$o=Ro[Go],io.db.addVertex($o.id,{text:$o.title,type:$o.labelType},"group",void 0,$o.classes,$o.dir);const Oo=_o.insert("g").attr("class","subgraphs"),No=addSubGraphs(io.db);lo=await addVertices(Co,to,yo,So,io,No,lo);const Mo=_o.insert("g").attr("class","edges edgePath"),Bo=io.db.getEdges();lo=addEdges(Bo,io,lo,_o),Object.keys(nodeDb).forEach(Go=>{const Do=nodeDb[Go];Do.parent||lo.children.push(Do),No.childrenById[Go]!==void 0&&(Do.labels=[{text:Do.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:Do.labelData.width,height:Do.labelData.height}],delete Do.x,delete Do.y,delete Do.width,delete Do.height)}),insertChildren(lo.children,No),log$1.info("after layout",JSON.stringify(lo,null,2));const Lo=await elk.layout(lo);drawNodes$1(0,0,Lo.children,_o,Oo,io,0),log$1.info("after layout",Lo),(so=Lo.edges)==null||so.map(Go=>{insertEdge(Mo,Go,Go.edgeData,io,No,to)}),setupGraphViewbox$1({},_o,go.diagramPadding,go.useMaxWidth),ao.remove()},drawNodes$1=(eo,to,no,io,so,ao,lo)=>{no.forEach(function(uo){if(uo)if(nodeDb[uo.id].offset={posX:uo.x+eo,posY:uo.y+to,x:eo,y:to,depth:lo,width:uo.width,height:uo.height},uo.type==="group"){const ho=so.insert("g").attr("class","subgraph");ho.insert("rect").attr("class","subgraph subgraph-lvl-"+lo%5+" node").attr("x",uo.x+eo).attr("y",uo.y+to).attr("width",uo.width).attr("height",uo.height);const go=ho.insert("g").attr("class","label"),mo=getConfig$1$1().flowchart.htmlLabels?uo.labelData.width/2:0;go.attr("transform",`translate(${uo.labels[0].x+eo+uo.x+mo}, ${uo.labels[0].y+to+uo.y+3})`),go.node().appendChild(uo.labelData.labelNode),log$1.info("Id (UGH)= ",uo.type,uo.labels)}else log$1.info("Id (UGH)= ",uo.id),uo.el.attr("transform",`translate(${uo.x+eo+uo.width/2}, ${uo.y+to+uo.height/2})`)}),no.forEach(function(uo){uo&&uo.type==="group"&&drawNodes$1(eo+uo.x,to+uo.y,uo.children,io,so,ao,lo+1)})},renderer$5={getClasses:getClasses$2,draw:draw$4},genSections$2=eo=>{let to="";for(let no=0;no<5;no++)to+=` .subgraph-lvl-${no} { fill: ${eo[`surface${no}`]}; @@ -3669,12 +3669,12 @@ Consider installing the package or pass your own 'workerFactory' to ELK's constr } ${genSections$2(eo)} -`,styles$2=getStyles$3,diagram$4={db:db$e,renderer:renderer$5,parser:parser$1$d,styles:styles$2},flowchartElkDefinition5fe447d6=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$4},Symbol.toStringTag,{value:"Module"}));var parser$4=function(){var eo=function(So,_o,ko,Co){for(ko=ko||{},Co=So.length;Co--;ko[So[Co]]=_o);return ko},to=[6,8,10,11,12,14,16,17,20,21],no=[1,9],io=[1,10],so=[1,11],ao=[1,12],lo=[1,13],uo=[1,16],ho=[1,17],go={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(_o,ko,Co,$o,Ro,Oo,No){var Mo=Oo.length-1;switch(Ro){case 1:return Oo[Mo-1];case 2:this.$=[];break;case 3:Oo[Mo-1].push(Oo[Mo]),this.$=Oo[Mo-1];break;case 4:case 5:this.$=Oo[Mo];break;case 6:case 7:this.$=[];break;case 8:$o.getCommonDb().setDiagramTitle(Oo[Mo].substr(6)),this.$=Oo[Mo].substr(6);break;case 9:this.$=Oo[Mo].trim(),$o.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=Oo[Mo].trim(),$o.getCommonDb().setAccDescription(this.$);break;case 12:$o.addSection(Oo[Mo].substr(8)),this.$=Oo[Mo].substr(8);break;case 15:$o.addTask(Oo[Mo],0,""),this.$=Oo[Mo];break;case 16:$o.addEvent(Oo[Mo].substr(2)),this.$=Oo[Mo];break}},table:[{3:1,4:[1,2]},{1:[3]},eo(to,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:no,12:io,14:so,16:ao,17:lo,18:14,19:15,20:uo,21:ho},eo(to,[2,7],{1:[2,1]}),eo(to,[2,3]),{9:18,11:no,12:io,14:so,16:ao,17:lo,18:14,19:15,20:uo,21:ho},eo(to,[2,5]),eo(to,[2,6]),eo(to,[2,8]),{13:[1,19]},{15:[1,20]},eo(to,[2,11]),eo(to,[2,12]),eo(to,[2,13]),eo(to,[2,14]),eo(to,[2,15]),eo(to,[2,16]),eo(to,[2,4]),eo(to,[2,9]),eo(to,[2,10])],defaultActions:{},parseError:function(_o,ko){if(ko.recoverable)this.trace(_o);else{var Co=new Error(_o);throw Co.hash=ko,Co}},parse:function(_o){var ko=this,Co=[0],$o=[],Ro=[null],Oo=[],No=this.table,Mo="",Bo=0,Po=0,Lo=2,Go=1,Do=Oo.slice.call(arguments,1),Uo=Object.create(this.lexer),Ho={yy:{}};for(var Yo in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Yo)&&(Ho.yy[Yo]=this.yy[Yo]);Uo.setInput(_o,Ho.yy),Ho.yy.lexer=Uo,Ho.yy.parser=this,typeof Uo.yylloc>"u"&&(Uo.yylloc={});var qo=Uo.yylloc;Oo.push(qo);var Jo=Uo.options&&Uo.options.ranges;typeof Ho.yy.parseError=="function"?this.parseError=Ho.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ps(){var Ps;return Ps=$o.pop()||Uo.lex()||Go,typeof Ps!="number"&&(Ps instanceof Array&&($o=Ps,Ps=$o.pop()),Ps=ko.symbols_[Ps]||Ps),Ps}for(var Qo,hs,gs,ys,vs={},ks,Os,Ts,Xs;;){if(hs=Co[Co.length-1],this.defaultActions[hs]?gs=this.defaultActions[hs]:((Qo===null||typeof Qo>"u")&&(Qo=ps()),gs=No[hs]&&No[hs][Qo]),typeof gs>"u"||!gs.length||!gs[0]){var Ws="";Xs=[];for(ks in No[hs])this.terminals_[ks]&&ks>Lo&&Xs.push("'"+this.terminals_[ks]+"'");Uo.showPosition?Ws="Parse error on line "+(Bo+1)+`: +`,styles$2=getStyles$3,diagram$4={db:db$e,renderer:renderer$5,parser:parser$1$d,styles:styles$2},flowchartElkDefinition5fe447d6=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$4},Symbol.toStringTag,{value:"Module"}));var parser$4=function(){var eo=function(So,_o,ko,Co){for(ko=ko||{},Co=So.length;Co--;ko[So[Co]]=_o);return ko},to=[6,8,10,11,12,14,16,17,20,21],no=[1,9],io=[1,10],so=[1,11],ao=[1,12],lo=[1,13],uo=[1,16],ho=[1,17],go={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(_o,ko,Co,$o,Ro,Oo,No){var Mo=Oo.length-1;switch(Ro){case 1:return Oo[Mo-1];case 2:this.$=[];break;case 3:Oo[Mo-1].push(Oo[Mo]),this.$=Oo[Mo-1];break;case 4:case 5:this.$=Oo[Mo];break;case 6:case 7:this.$=[];break;case 8:$o.getCommonDb().setDiagramTitle(Oo[Mo].substr(6)),this.$=Oo[Mo].substr(6);break;case 9:this.$=Oo[Mo].trim(),$o.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=Oo[Mo].trim(),$o.getCommonDb().setAccDescription(this.$);break;case 12:$o.addSection(Oo[Mo].substr(8)),this.$=Oo[Mo].substr(8);break;case 15:$o.addTask(Oo[Mo],0,""),this.$=Oo[Mo];break;case 16:$o.addEvent(Oo[Mo].substr(2)),this.$=Oo[Mo];break}},table:[{3:1,4:[1,2]},{1:[3]},eo(to,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:no,12:io,14:so,16:ao,17:lo,18:14,19:15,20:uo,21:ho},eo(to,[2,7],{1:[2,1]}),eo(to,[2,3]),{9:18,11:no,12:io,14:so,16:ao,17:lo,18:14,19:15,20:uo,21:ho},eo(to,[2,5]),eo(to,[2,6]),eo(to,[2,8]),{13:[1,19]},{15:[1,20]},eo(to,[2,11]),eo(to,[2,12]),eo(to,[2,13]),eo(to,[2,14]),eo(to,[2,15]),eo(to,[2,16]),eo(to,[2,4]),eo(to,[2,9]),eo(to,[2,10])],defaultActions:{},parseError:function(_o,ko){if(ko.recoverable)this.trace(_o);else{var Co=new Error(_o);throw Co.hash=ko,Co}},parse:function(_o){var ko=this,Co=[0],$o=[],Ro=[null],Oo=[],No=this.table,Mo="",Bo=0,Fo=0,Lo=2,Go=1,Do=Oo.slice.call(arguments,1),Uo=Object.create(this.lexer),Ho={yy:{}};for(var Yo in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Yo)&&(Ho.yy[Yo]=this.yy[Yo]);Uo.setInput(_o,Ho.yy),Ho.yy.lexer=Uo,Ho.yy.parser=this,typeof Uo.yylloc>"u"&&(Uo.yylloc={});var qo=Uo.yylloc;Oo.push(qo);var Jo=Uo.options&&Uo.options.ranges;typeof Ho.yy.parseError=="function"?this.parseError=Ho.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ps(){var Ps;return Ps=$o.pop()||Uo.lex()||Go,typeof Ps!="number"&&(Ps instanceof Array&&($o=Ps,Ps=$o.pop()),Ps=ko.symbols_[Ps]||Ps),Ps}for(var Qo,hs,gs,ys,vs={},ks,Os,Ts,Xs;;){if(hs=Co[Co.length-1],this.defaultActions[hs]?gs=this.defaultActions[hs]:((Qo===null||typeof Qo>"u")&&(Qo=ps()),gs=No[hs]&&No[hs][Qo]),typeof gs>"u"||!gs.length||!gs[0]){var Ws="";Xs=[];for(ks in No[hs])this.terminals_[ks]&&ks>Lo&&Xs.push("'"+this.terminals_[ks]+"'");Uo.showPosition?Ws="Parse error on line "+(Bo+1)+`: `+Uo.showPosition()+` -Expecting `+Xs.join(", ")+", got '"+(this.terminals_[Qo]||Qo)+"'":Ws="Parse error on line "+(Bo+1)+": Unexpected "+(Qo==Go?"end of input":"'"+(this.terminals_[Qo]||Qo)+"'"),this.parseError(Ws,{text:Uo.match,token:this.terminals_[Qo]||Qo,line:Uo.yylineno,loc:qo,expected:Xs})}if(gs[0]instanceof Array&&gs.length>1)throw new Error("Parse Error: multiple actions possible at state: "+hs+", token: "+Qo);switch(gs[0]){case 1:Co.push(Qo),Ro.push(Uo.yytext),Oo.push(Uo.yylloc),Co.push(gs[1]),Qo=null,Po=Uo.yyleng,Mo=Uo.yytext,Bo=Uo.yylineno,qo=Uo.yylloc;break;case 2:if(Os=this.productions_[gs[1]][1],vs.$=Ro[Ro.length-Os],vs._$={first_line:Oo[Oo.length-(Os||1)].first_line,last_line:Oo[Oo.length-1].last_line,first_column:Oo[Oo.length-(Os||1)].first_column,last_column:Oo[Oo.length-1].last_column},Jo&&(vs._$.range=[Oo[Oo.length-(Os||1)].range[0],Oo[Oo.length-1].range[1]]),ys=this.performAction.apply(vs,[Mo,Po,Bo,Ho.yy,gs[1],Ro,Oo].concat(Do)),typeof ys<"u")return ys;Os&&(Co=Co.slice(0,-1*Os*2),Ro=Ro.slice(0,-1*Os),Oo=Oo.slice(0,-1*Os)),Co.push(this.productions_[gs[1]][0]),Ro.push(vs.$),Oo.push(vs._$),Ts=No[Co[Co.length-2]][Co[Co.length-1]],Co.push(Ts);break;case 3:return!0}}return!0}},mo=function(){var So={EOF:1,parseError:function(ko,Co){if(this.yy.parser)this.yy.parser.parseError(ko,Co);else throw new Error(ko)},setInput:function(_o,ko){return this.yy=ko||this.yy||{},this._input=_o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _o=this._input[0];this.yytext+=_o,this.yyleng++,this.offset++,this.match+=_o,this.matched+=_o;var ko=_o.match(/(?:\r\n?|\n).*/g);return ko?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_o},unput:function(_o){var ko=_o.length,Co=_o.split(/(?:\r\n?|\n)/g);this._input=_o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ko),this.offset-=ko;var $o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Co.length-1&&(this.yylineno-=Co.length-1);var Ro=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Co?(Co.length===$o.length?this.yylloc.first_column:0)+$o[$o.length-Co.length].length-Co[0].length:this.yylloc.first_column-ko},this.options.ranges&&(this.yylloc.range=[Ro[0],Ro[0]+this.yyleng-ko]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+Xs.join(", ")+", got '"+(this.terminals_[Qo]||Qo)+"'":Ws="Parse error on line "+(Bo+1)+": Unexpected "+(Qo==Go?"end of input":"'"+(this.terminals_[Qo]||Qo)+"'"),this.parseError(Ws,{text:Uo.match,token:this.terminals_[Qo]||Qo,line:Uo.yylineno,loc:qo,expected:Xs})}if(gs[0]instanceof Array&&gs.length>1)throw new Error("Parse Error: multiple actions possible at state: "+hs+", token: "+Qo);switch(gs[0]){case 1:Co.push(Qo),Ro.push(Uo.yytext),Oo.push(Uo.yylloc),Co.push(gs[1]),Qo=null,Fo=Uo.yyleng,Mo=Uo.yytext,Bo=Uo.yylineno,qo=Uo.yylloc;break;case 2:if(Os=this.productions_[gs[1]][1],vs.$=Ro[Ro.length-Os],vs._$={first_line:Oo[Oo.length-(Os||1)].first_line,last_line:Oo[Oo.length-1].last_line,first_column:Oo[Oo.length-(Os||1)].first_column,last_column:Oo[Oo.length-1].last_column},Jo&&(vs._$.range=[Oo[Oo.length-(Os||1)].range[0],Oo[Oo.length-1].range[1]]),ys=this.performAction.apply(vs,[Mo,Fo,Bo,Ho.yy,gs[1],Ro,Oo].concat(Do)),typeof ys<"u")return ys;Os&&(Co=Co.slice(0,-1*Os*2),Ro=Ro.slice(0,-1*Os),Oo=Oo.slice(0,-1*Os)),Co.push(this.productions_[gs[1]][0]),Ro.push(vs.$),Oo.push(vs._$),Ts=No[Co[Co.length-2]][Co[Co.length-1]],Co.push(Ts);break;case 3:return!0}}return!0}},mo=function(){var So={EOF:1,parseError:function(ko,Co){if(this.yy.parser)this.yy.parser.parseError(ko,Co);else throw new Error(ko)},setInput:function(_o,ko){return this.yy=ko||this.yy||{},this._input=_o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _o=this._input[0];this.yytext+=_o,this.yyleng++,this.offset++,this.match+=_o,this.matched+=_o;var ko=_o.match(/(?:\r\n?|\n).*/g);return ko?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_o},unput:function(_o){var ko=_o.length,Co=_o.split(/(?:\r\n?|\n)/g);this._input=_o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ko),this.offset-=ko;var $o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Co.length-1&&(this.yylineno-=Co.length-1);var Ro=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Co?(Co.length===$o.length?this.yylloc.first_column:0)+$o[$o.length-Co.length].length-Co[0].length:this.yylloc.first_column-ko},this.options.ranges&&(this.yylloc.range=[Ro[0],Ro[0]+this.yyleng-ko]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_o){this.unput(this.match.slice(_o))},pastInput:function(){var _o=this.matched.substr(0,this.matched.length-this.match.length);return(_o.length>20?"...":"")+_o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _o=this.match;return _o.length<20&&(_o+=this._input.substr(0,20-_o.length)),(_o.substr(0,20)+(_o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _o=this.pastInput(),ko=new Array(_o.length+1).join("-");return _o+this.upcomingInput()+` `+ko+"^"},test_match:function(_o,ko){var Co,$o,Ro;if(this.options.backtrack_lexer&&(Ro={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ro.yylloc.range=this.yylloc.range.slice(0))),$o=_o[0].match(/(?:\r\n?|\n).*/g),$o&&(this.yylineno+=$o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$o?$o[$o.length-1].length-$o[$o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_o[0].length},this.yytext+=_o[0],this.match+=_o[0],this.matches=_o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_o[0].length),this.matched+=_o[0],Co=this.performAction.call(this,this.yy,this,ko,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Co)return Co;if(this._backtrack){for(var Oo in Ro)this[Oo]=Ro[Oo];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _o,ko,Co,$o;this._more||(this.yytext="",this.match="");for(var Ro=this._currentRules(),Oo=0;Ooko[0].length)){if(ko=Co,$o=Oo,this.options.backtrack_lexer){if(_o=this.test_match(Co,Ro[Oo]),_o!==!1)return _o;if(this._backtrack){ko=!1;continue}else return!1}else if(!this.options.flex)break}return ko?(_o=this.test_match(ko,Ro[$o]),_o!==!1?_o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ko=this.next();return ko||this.lex()},begin:function(ko){this.conditionStack.push(ko)},popState:function(){var ko=this.conditionStack.length-1;return ko>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ko){return ko=this.conditionStack.length-1-Math.abs(ko||0),ko>=0?this.conditionStack[ko]:"INITIAL"},pushState:function(ko){this.begin(ko)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ko,Co,$o,Ro){switch($o){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return So}();go.lexer=mo;function yo(){this.yy={}}return yo.prototype=go,go.Parser=yo,new yo}();parser$4.parser=parser$4;const parser$1$3=parser$4;let currentSection="",currentTaskId=0;const sections=[],tasks=[],rawTasks=[],getCommonDb=()=>commonDb,clear$3=function(){sections.length=0,tasks.length=0,currentSection="",rawTasks.length=0,clear$k()},addSection=function(eo){currentSection=eo,sections.push(eo)},getSections=function(){return sections},getTasks=function(){let eo=compileTasks();const to=100;let no=0;for(;!eo&&nono.id===currentTaskId-1).events.push(eo)},addTaskOrg=function(eo){const to={section:currentSection,type:currentSection,description:eo,task:eo,classes:[]};tasks.push(to)},compileTasks=function(){const eo=function(no){return rawTasks[no].processed};let to=!0;for(const[no,io]of rawTasks.entries())eo(no),to=to&&io.processed;return to},timelineDb={clear:clear$3,getCommonDb,addSection,getSections,getTasks,addTask,addTaskOrg,addEvent},db$4=Object.freeze(Object.defineProperty({__proto__:null,addEvent,addSection,addTask,addTaskOrg,clear:clear$3,default:timelineDb,getCommonDb,getSections,getTasks},Symbol.toStringTag,{value:"Module"})),MAX_SECTIONS$1=12,drawRect=function(eo,to){const no=eo.append("rect");return no.attr("x",to.x),no.attr("y",to.y),no.attr("fill",to.fill),no.attr("stroke",to.stroke),no.attr("width",to.width),no.attr("height",to.height),no.attr("rx",to.rx),no.attr("ry",to.ry),to.class!==void 0&&no.attr("class",to.class),no},drawFace=function(eo,to){const io=eo.append("circle").attr("cx",to.cx).attr("cy",to.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),so=eo.append("g");so.append("circle").attr("cx",to.cx-15/3).attr("cy",to.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),so.append("circle").attr("cx",to.cx+15/3).attr("cy",to.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function ao(ho){const go=arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);ho.append("path").attr("class","mouth").attr("d",go).attr("transform","translate("+to.cx+","+(to.cy+2)+")")}function lo(ho){const go=arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);ho.append("path").attr("class","mouth").attr("d",go).attr("transform","translate("+to.cx+","+(to.cy+7)+")")}function uo(ho){ho.append("line").attr("class","mouth").attr("stroke",2).attr("x1",to.cx-5).attr("y1",to.cy+7).attr("x2",to.cx+5).attr("y2",to.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return to.score>3?ao(so):to.score<3?lo(so):uo(so),io},drawCircle=function(eo,to){const no=eo.append("circle");return no.attr("cx",to.cx),no.attr("cy",to.cy),no.attr("class","actor-"+to.pos),no.attr("fill",to.fill),no.attr("stroke",to.stroke),no.attr("r",to.r),no.class!==void 0&&no.attr("class",no.class),to.title!==void 0&&no.append("title").text(to.title),no},drawText=function(eo,to){const no=to.text.replace(//gi," "),io=eo.append("text");io.attr("x",to.x),io.attr("y",to.y),io.attr("class","legend"),io.style("text-anchor",to.anchor),to.class!==void 0&&io.attr("class",to.class);const so=io.append("tspan");return so.attr("x",to.x+to.textMargin*2),so.text(no),io},drawLabel=function(eo,to){function no(so,ao,lo,uo,ho){return so+","+ao+" "+(so+lo)+","+ao+" "+(so+lo)+","+(ao+uo-ho)+" "+(so+lo-ho*1.2)+","+(ao+uo)+" "+so+","+(ao+uo)}const io=eo.append("polygon");io.attr("points",no(to.x,to.y,50,20,7)),io.attr("class","labelBox"),to.y=to.y+to.labelMargin,to.x=to.x+.5*to.labelMargin,drawText(eo,to)},drawSection=function(eo,to,no){const io=eo.append("g"),so=getNoteRect();so.x=to.x,so.y=to.y,so.fill=to.fill,so.width=no.width,so.height=no.height,so.class="journey-section section-type-"+to.num,so.rx=3,so.ry=3,drawRect(io,so),_drawTextCandidateFunc(no)(to.text,io,so.x,so.y,so.width,so.height,{class:"journey-section section-type-"+to.num},no,to.colour)};let taskCount=-1;const drawTask=function(eo,to,no){const io=to.x+no.width/2,so=eo.append("g");taskCount++;const ao=300+5*30;so.append("line").attr("id","task"+taskCount).attr("x1",io).attr("y1",to.y).attr("x2",io).attr("y2",ao).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),drawFace(so,{cx:io,cy:300+(5-to.score)*30,score:to.score});const lo=getNoteRect();lo.x=to.x,lo.y=to.y,lo.fill=to.fill,lo.width=no.width,lo.height=no.height,lo.class="task task-type-"+to.num,lo.rx=3,lo.ry=3,drawRect(so,lo),to.x+14,_drawTextCandidateFunc(no)(to.task,so,lo.x,lo.y,lo.width,lo.height,{class:"task"},no,to.colour)},drawBackgroundRect=function(eo,to){drawRect(eo,{x:to.startx,y:to.starty,width:to.stopx-to.startx,height:to.stopy-to.starty,fill:to.fill,class:"rect"}).lower()},getTextObj=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},getNoteRect=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},_drawTextCandidateFunc=function(){function eo(so,ao,lo,uo,ho,go,mo,yo){const So=ao.append("text").attr("x",lo+ho/2).attr("y",uo+go/2+5).style("font-color",yo).style("text-anchor","middle").text(so);io(So,mo)}function to(so,ao,lo,uo,ho,go,mo,yo,So){const{taskFontSize:_o,taskFontFamily:ko}=yo,Co=so.split(//gi);for(let $o=0;$o)/).reverse(),so,ao=[],lo=1.1,uo=no.attr("y"),ho=parseFloat(no.attr("dy")),go=no.text(null).append("tspan").attr("x",0).attr("y",uo).attr("dy",ho+"em");for(let mo=0;moto||so==="
")&&(ao.pop(),go.text(ao.join(" ").trim()),so==="
"?ao=[""]:ao=[so],go=no.append("tspan").attr("x",0).attr("y",uo).attr("dy",lo+"em").text(so))})}const drawNode$1=function(eo,to,no,io){const so=no%MAX_SECTIONS$1-1,ao=eo.append("g");to.section=so,ao.attr("class",(to.class?to.class+" ":"")+"timeline-node "+("section-"+so));const lo=ao.append("g"),uo=ao.append("g"),go=uo.append("text").text(to.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(wrap,to.width).node().getBBox(),mo=io.fontSize&&io.fontSize.replace?io.fontSize.replace("px",""):io.fontSize;return to.height=go.height+mo*1.1*.5+to.padding,to.height=Math.max(to.height,to.maxHeight),to.width=to.width+2*to.padding,uo.attr("transform","translate("+to.width/2+", "+to.padding/2+")"),defaultBkg$1(lo,to,so),to},getVirtualNodeHeight=function(eo,to,no){const io=eo.append("g"),ao=io.append("text").text(to.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(wrap,to.width).node().getBBox(),lo=no.fontSize&&no.fontSize.replace?no.fontSize.replace("px",""):no.fontSize;return io.remove(),ao.height+lo*1.1*.5+to.padding},defaultBkg$1=function(eo,to,no){eo.append("path").attr("id","node-"+to.id).attr("class","node-bkg node-"+to.type).attr("d",`M0 ${to.height-5} v${-to.height+2*5} q0,-5 5,-5 h${to.width-2*5} q5,0 5,5 v${to.height-5} H0 Z`),eo.append("line").attr("class","node-line-"+no).attr("x1",0).attr("y1",to.height).attr("x2",to.width).attr("y2",to.height)},svgDraw={drawRect,drawCircle,drawSection,drawText,drawLabel,drawTask,drawBackgroundRect,getTextObj,getNoteRect,initGraphics,drawNode:drawNode$1,getVirtualNodeHeight},draw$3=function(eo,to,no,io){var so,ao;const lo=getConfig$2(),uo=lo.leftMargin??50;log$1.debug("timeline",io.db);const ho=lo.securityLevel;let go;ho==="sandbox"&&(go=select("#i"+to));const yo=select(ho==="sandbox"?go.nodes()[0].contentDocument.body:"body").select("#"+to);yo.append("g");const So=io.db.getTasks(),_o=io.db.getCommonDb().getDiagramTitle();log$1.debug("task",So),svgDraw.initGraphics(yo);const ko=io.db.getSections();log$1.debug("sections",ko);let Co=0,$o=0,Ro=0,Oo=0,No=50+uo,Mo=50;Oo=50;let Bo=0,Po=!0;ko.forEach(function(Ho){const Yo={number:Bo,descr:Ho,section:Bo,width:150,padding:20,maxHeight:Co},qo=svgDraw.getVirtualNodeHeight(yo,Yo,lo);log$1.debug("sectionHeight before draw",qo),Co=Math.max(Co,qo+20)});let Lo=0,Go=0;log$1.debug("tasks.length",So.length);for(const[Ho,Yo]of So.entries()){const qo={number:Ho,descr:Yo,section:Yo.section,width:150,padding:20,maxHeight:$o},Jo=svgDraw.getVirtualNodeHeight(yo,qo,lo);log$1.debug("taskHeight before draw",Jo),$o=Math.max($o,Jo+20),Lo=Math.max(Lo,Yo.events.length);let ps=0;for(let Qo=0;Qo0?ko.forEach(Ho=>{const Yo=So.filter(Qo=>Qo.section===Ho),qo={number:Bo,descr:Ho,section:Bo,width:200*Math.max(Yo.length,1)-50,padding:20,maxHeight:Co};log$1.debug("sectionNode",qo);const Jo=yo.append("g"),ps=svgDraw.drawNode(Jo,qo,Bo,lo);log$1.debug("sectionNode output",ps),Jo.attr("transform",`translate(${No}, ${Oo})`),Mo+=Co+50,Yo.length>0&&drawTasks(yo,Yo,Bo,No,Mo,$o,lo,Lo,Go,Co,!1),No+=200*Math.max(Yo.length,1),Mo=Oo,Bo++}):(Po=!1,drawTasks(yo,So,Bo,No,Mo,$o,lo,Lo,Go,Co,!0));const Do=yo.node().getBBox();log$1.debug("bounds",Do),_o&&yo.append("text").text(_o).attr("x",Do.width/2-uo).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),Ro=Po?Co+$o+150:$o+100,yo.append("g").attr("class","lineWrapper").append("line").attr("x1",uo).attr("y1",Ro).attr("x2",Do.width+3*uo).attr("y2",Ro).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),setupGraphViewbox$1(void 0,yo,((so=lo.timeline)==null?void 0:so.padding)??50,((ao=lo.timeline)==null?void 0:ao.useMaxWidth)??!1)},drawTasks=function(eo,to,no,io,so,ao,lo,uo,ho,go,mo){var yo;for(const So of to){const _o={descr:So.task,section:no,number:no,width:150,padding:20,maxHeight:ao};log$1.debug("taskNode",_o);const ko=eo.append("g").attr("class","taskWrapper"),$o=svgDraw.drawNode(ko,_o,no,lo).height;if(log$1.debug("taskHeight after draw",$o),ko.attr("transform",`translate(${io}, ${so})`),ao=Math.max(ao,$o),So.events){const Ro=eo.append("g").attr("class","lineWrapper");let Oo=ao;so+=100,Oo=Oo+drawEvents(eo,So.events,no,io,so,lo),so-=100,Ro.append("line").attr("x1",io+190/2).attr("y1",so+ao).attr("x2",io+190/2).attr("y2",so+ao+(mo?ao:go)+ho+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}io=io+200,mo&&!((yo=lo.timeline)!=null&&yo.disableMulticolor)&&no++}so=so-10},drawEvents=function(eo,to,no,io,so,ao){let lo=0;const uo=so;so=so+100;for(const ho of to){const go={descr:ho,section:no,number:no,width:150,padding:20,maxHeight:50};log$1.debug("eventNode",go);const mo=eo.append("g").attr("class","eventWrapper"),So=svgDraw.drawNode(mo,go,no,ao).height;lo=lo+So,mo.attr("transform",`translate(${io}, ${so})`),so=so+10+So}return so=uo,lo},renderer$4={setConf:()=>{},draw:draw$3},genSections$1=eo=>{let to="";for(let no=0;no0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ko){return ko=this.conditionStack.length-1-Math.abs(ko||0),ko>=0?this.conditionStack[ko]:"INITIAL"},pushState:function(ko){this.begin(ko)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ko,Co,$o,Ro){switch($o){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return So}();go.lexer=mo;function yo(){this.yy={}}return yo.prototype=go,go.Parser=yo,new yo}();parser$4.parser=parser$4;const parser$1$3=parser$4;let currentSection="",currentTaskId=0;const sections=[],tasks=[],rawTasks=[],getCommonDb=()=>commonDb,clear$3=function(){sections.length=0,tasks.length=0,currentSection="",rawTasks.length=0,clear$k()},addSection=function(eo){currentSection=eo,sections.push(eo)},getSections=function(){return sections},getTasks=function(){let eo=compileTasks();const to=100;let no=0;for(;!eo&&nono.id===currentTaskId-1).events.push(eo)},addTaskOrg=function(eo){const to={section:currentSection,type:currentSection,description:eo,task:eo,classes:[]};tasks.push(to)},compileTasks=function(){const eo=function(no){return rawTasks[no].processed};let to=!0;for(const[no,io]of rawTasks.entries())eo(no),to=to&&io.processed;return to},timelineDb={clear:clear$3,getCommonDb,addSection,getSections,getTasks,addTask,addTaskOrg,addEvent},db$4=Object.freeze(Object.defineProperty({__proto__:null,addEvent,addSection,addTask,addTaskOrg,clear:clear$3,default:timelineDb,getCommonDb,getSections,getTasks},Symbol.toStringTag,{value:"Module"})),MAX_SECTIONS$1=12,drawRect=function(eo,to){const no=eo.append("rect");return no.attr("x",to.x),no.attr("y",to.y),no.attr("fill",to.fill),no.attr("stroke",to.stroke),no.attr("width",to.width),no.attr("height",to.height),no.attr("rx",to.rx),no.attr("ry",to.ry),to.class!==void 0&&no.attr("class",to.class),no},drawFace=function(eo,to){const io=eo.append("circle").attr("cx",to.cx).attr("cy",to.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),so=eo.append("g");so.append("circle").attr("cx",to.cx-15/3).attr("cy",to.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),so.append("circle").attr("cx",to.cx+15/3).attr("cy",to.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function ao(ho){const go=arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);ho.append("path").attr("class","mouth").attr("d",go).attr("transform","translate("+to.cx+","+(to.cy+2)+")")}function lo(ho){const go=arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);ho.append("path").attr("class","mouth").attr("d",go).attr("transform","translate("+to.cx+","+(to.cy+7)+")")}function uo(ho){ho.append("line").attr("class","mouth").attr("stroke",2).attr("x1",to.cx-5).attr("y1",to.cy+7).attr("x2",to.cx+5).attr("y2",to.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return to.score>3?ao(so):to.score<3?lo(so):uo(so),io},drawCircle=function(eo,to){const no=eo.append("circle");return no.attr("cx",to.cx),no.attr("cy",to.cy),no.attr("class","actor-"+to.pos),no.attr("fill",to.fill),no.attr("stroke",to.stroke),no.attr("r",to.r),no.class!==void 0&&no.attr("class",no.class),to.title!==void 0&&no.append("title").text(to.title),no},drawText=function(eo,to){const no=to.text.replace(//gi," "),io=eo.append("text");io.attr("x",to.x),io.attr("y",to.y),io.attr("class","legend"),io.style("text-anchor",to.anchor),to.class!==void 0&&io.attr("class",to.class);const so=io.append("tspan");return so.attr("x",to.x+to.textMargin*2),so.text(no),io},drawLabel=function(eo,to){function no(so,ao,lo,uo,ho){return so+","+ao+" "+(so+lo)+","+ao+" "+(so+lo)+","+(ao+uo-ho)+" "+(so+lo-ho*1.2)+","+(ao+uo)+" "+so+","+(ao+uo)}const io=eo.append("polygon");io.attr("points",no(to.x,to.y,50,20,7)),io.attr("class","labelBox"),to.y=to.y+to.labelMargin,to.x=to.x+.5*to.labelMargin,drawText(eo,to)},drawSection=function(eo,to,no){const io=eo.append("g"),so=getNoteRect();so.x=to.x,so.y=to.y,so.fill=to.fill,so.width=no.width,so.height=no.height,so.class="journey-section section-type-"+to.num,so.rx=3,so.ry=3,drawRect(io,so),_drawTextCandidateFunc(no)(to.text,io,so.x,so.y,so.width,so.height,{class:"journey-section section-type-"+to.num},no,to.colour)};let taskCount=-1;const drawTask=function(eo,to,no){const io=to.x+no.width/2,so=eo.append("g");taskCount++;const ao=300+5*30;so.append("line").attr("id","task"+taskCount).attr("x1",io).attr("y1",to.y).attr("x2",io).attr("y2",ao).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),drawFace(so,{cx:io,cy:300+(5-to.score)*30,score:to.score});const lo=getNoteRect();lo.x=to.x,lo.y=to.y,lo.fill=to.fill,lo.width=no.width,lo.height=no.height,lo.class="task task-type-"+to.num,lo.rx=3,lo.ry=3,drawRect(so,lo),to.x+14,_drawTextCandidateFunc(no)(to.task,so,lo.x,lo.y,lo.width,lo.height,{class:"task"},no,to.colour)},drawBackgroundRect=function(eo,to){drawRect(eo,{x:to.startx,y:to.starty,width:to.stopx-to.startx,height:to.stopy-to.starty,fill:to.fill,class:"rect"}).lower()},getTextObj=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},getNoteRect=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},_drawTextCandidateFunc=function(){function eo(so,ao,lo,uo,ho,go,mo,yo){const So=ao.append("text").attr("x",lo+ho/2).attr("y",uo+go/2+5).style("font-color",yo).style("text-anchor","middle").text(so);io(So,mo)}function to(so,ao,lo,uo,ho,go,mo,yo,So){const{taskFontSize:_o,taskFontFamily:ko}=yo,Co=so.split(//gi);for(let $o=0;$o)/).reverse(),so,ao=[],lo=1.1,uo=no.attr("y"),ho=parseFloat(no.attr("dy")),go=no.text(null).append("tspan").attr("x",0).attr("y",uo).attr("dy",ho+"em");for(let mo=0;moto||so==="
")&&(ao.pop(),go.text(ao.join(" ").trim()),so==="
"?ao=[""]:ao=[so],go=no.append("tspan").attr("x",0).attr("y",uo).attr("dy",lo+"em").text(so))})}const drawNode$1=function(eo,to,no,io){const so=no%MAX_SECTIONS$1-1,ao=eo.append("g");to.section=so,ao.attr("class",(to.class?to.class+" ":"")+"timeline-node "+("section-"+so));const lo=ao.append("g"),uo=ao.append("g"),go=uo.append("text").text(to.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(wrap,to.width).node().getBBox(),mo=io.fontSize&&io.fontSize.replace?io.fontSize.replace("px",""):io.fontSize;return to.height=go.height+mo*1.1*.5+to.padding,to.height=Math.max(to.height,to.maxHeight),to.width=to.width+2*to.padding,uo.attr("transform","translate("+to.width/2+", "+to.padding/2+")"),defaultBkg$1(lo,to,so),to},getVirtualNodeHeight=function(eo,to,no){const io=eo.append("g"),ao=io.append("text").text(to.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(wrap,to.width).node().getBBox(),lo=no.fontSize&&no.fontSize.replace?no.fontSize.replace("px",""):no.fontSize;return io.remove(),ao.height+lo*1.1*.5+to.padding},defaultBkg$1=function(eo,to,no){eo.append("path").attr("id","node-"+to.id).attr("class","node-bkg node-"+to.type).attr("d",`M0 ${to.height-5} v${-to.height+2*5} q0,-5 5,-5 h${to.width-2*5} q5,0 5,5 v${to.height-5} H0 Z`),eo.append("line").attr("class","node-line-"+no).attr("x1",0).attr("y1",to.height).attr("x2",to.width).attr("y2",to.height)},svgDraw={drawRect,drawCircle,drawSection,drawText,drawLabel,drawTask,drawBackgroundRect,getTextObj,getNoteRect,initGraphics,drawNode:drawNode$1,getVirtualNodeHeight},draw$3=function(eo,to,no,io){var so,ao;const lo=getConfig$2(),uo=lo.leftMargin??50;log$1.debug("timeline",io.db);const ho=lo.securityLevel;let go;ho==="sandbox"&&(go=select("#i"+to));const yo=select(ho==="sandbox"?go.nodes()[0].contentDocument.body:"body").select("#"+to);yo.append("g");const So=io.db.getTasks(),_o=io.db.getCommonDb().getDiagramTitle();log$1.debug("task",So),svgDraw.initGraphics(yo);const ko=io.db.getSections();log$1.debug("sections",ko);let Co=0,$o=0,Ro=0,Oo=0,No=50+uo,Mo=50;Oo=50;let Bo=0,Fo=!0;ko.forEach(function(Ho){const Yo={number:Bo,descr:Ho,section:Bo,width:150,padding:20,maxHeight:Co},qo=svgDraw.getVirtualNodeHeight(yo,Yo,lo);log$1.debug("sectionHeight before draw",qo),Co=Math.max(Co,qo+20)});let Lo=0,Go=0;log$1.debug("tasks.length",So.length);for(const[Ho,Yo]of So.entries()){const qo={number:Ho,descr:Yo,section:Yo.section,width:150,padding:20,maxHeight:$o},Jo=svgDraw.getVirtualNodeHeight(yo,qo,lo);log$1.debug("taskHeight before draw",Jo),$o=Math.max($o,Jo+20),Lo=Math.max(Lo,Yo.events.length);let ps=0;for(let Qo=0;Qo0?ko.forEach(Ho=>{const Yo=So.filter(Qo=>Qo.section===Ho),qo={number:Bo,descr:Ho,section:Bo,width:200*Math.max(Yo.length,1)-50,padding:20,maxHeight:Co};log$1.debug("sectionNode",qo);const Jo=yo.append("g"),ps=svgDraw.drawNode(Jo,qo,Bo,lo);log$1.debug("sectionNode output",ps),Jo.attr("transform",`translate(${No}, ${Oo})`),Mo+=Co+50,Yo.length>0&&drawTasks(yo,Yo,Bo,No,Mo,$o,lo,Lo,Go,Co,!1),No+=200*Math.max(Yo.length,1),Mo=Oo,Bo++}):(Fo=!1,drawTasks(yo,So,Bo,No,Mo,$o,lo,Lo,Go,Co,!0));const Do=yo.node().getBBox();log$1.debug("bounds",Do),_o&&yo.append("text").text(_o).attr("x",Do.width/2-uo).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),Ro=Fo?Co+$o+150:$o+100,yo.append("g").attr("class","lineWrapper").append("line").attr("x1",uo).attr("y1",Ro).attr("x2",Do.width+3*uo).attr("y2",Ro).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),setupGraphViewbox$1(void 0,yo,((so=lo.timeline)==null?void 0:so.padding)??50,((ao=lo.timeline)==null?void 0:ao.useMaxWidth)??!1)},drawTasks=function(eo,to,no,io,so,ao,lo,uo,ho,go,mo){var yo;for(const So of to){const _o={descr:So.task,section:no,number:no,width:150,padding:20,maxHeight:ao};log$1.debug("taskNode",_o);const ko=eo.append("g").attr("class","taskWrapper"),$o=svgDraw.drawNode(ko,_o,no,lo).height;if(log$1.debug("taskHeight after draw",$o),ko.attr("transform",`translate(${io}, ${so})`),ao=Math.max(ao,$o),So.events){const Ro=eo.append("g").attr("class","lineWrapper");let Oo=ao;so+=100,Oo=Oo+drawEvents(eo,So.events,no,io,so,lo),so-=100,Ro.append("line").attr("x1",io+190/2).attr("y1",so+ao).attr("x2",io+190/2).attr("y2",so+ao+(mo?ao:go)+ho+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}io=io+200,mo&&!((yo=lo.timeline)!=null&&yo.disableMulticolor)&&no++}so=so-10},drawEvents=function(eo,to,no,io,so,ao){let lo=0;const uo=so;so=so+100;for(const ho of to){const go={descr:ho,section:no,number:no,width:150,padding:20,maxHeight:50};log$1.debug("eventNode",go);const mo=eo.append("g").attr("class","eventWrapper"),So=svgDraw.drawNode(mo,go,no,ao).height;lo=lo+So,mo.attr("transform",`translate(${io}, ${so})`),so=so+10+So}return so=uo,lo},renderer$4={setConf:()=>{},draw:draw$3},genSections$1=eo=>{let to="";for(let no=0;noeo.length)&&(to=eo.length);for(var no=0,io=new Array(to);no=eo.length?{done:!0}:{done:!1,value:eo[io++]}},e:function(ho){throw ho},f:so}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ao=!0,lo=!1,uo;return{s:function(){no=no.call(eo)},n:function(){var ho=no.next();return ao=ho.done,ho},e:function(ho){lo=!0,uo=ho},f:function(){try{!ao&&no.return!=null&&no.return()}finally{if(lo)throw uo}}}}var _window=typeof window>"u"?null:window,navigator$1=_window?_window.navigator:null;_window&&_window.document;var typeofstr=_typeof(""),typeofobj=_typeof({}),typeoffn=_typeof(function(){}),typeofhtmlele=typeof HTMLElement>"u"?"undefined":_typeof(HTMLElement),instanceStr=function eo(to){return to&&to.instanceString&&fn$6(to.instanceString)?to.instanceString():null},string=function eo(to){return to!=null&&_typeof(to)==typeofstr},fn$6=function eo(to){return to!=null&&_typeof(to)===typeoffn},array=function eo(to){return!elementOrCollection(to)&&(Array.isArray?Array.isArray(to):to!=null&&to instanceof Array)},plainObject=function eo(to){return to!=null&&_typeof(to)===typeofobj&&!array(to)&&to.constructor===Object},object=function eo(to){return to!=null&&_typeof(to)===typeofobj},number$1=function eo(to){return to!=null&&_typeof(to)===_typeof(1)&&!isNaN(to)},integer=function eo(to){return number$1(to)&&Math.floor(to)===to},htmlElement=function eo(to){if(typeofhtmlele!=="undefined")return to!=null&&to instanceof HTMLElement},elementOrCollection=function eo(to){return element(to)||collection(to)},element=function eo(to){return instanceStr(to)==="collection"&&to._private.single},collection=function eo(to){return instanceStr(to)==="collection"&&!to._private.single},core=function eo(to){return instanceStr(to)==="core"},stylesheet=function eo(to){return instanceStr(to)==="stylesheet"},event=function eo(to){return instanceStr(to)==="event"},emptyString=function eo(to){return to==null?!0:!!(to===""||to.match(/^\s+$/))},domElement=function eo(to){return typeof HTMLElement>"u"?!1:to instanceof HTMLElement},boundingBox=function eo(to){return plainObject(to)&&number$1(to.x1)&&number$1(to.x2)&&number$1(to.y1)&&number$1(to.y2)},promise=function eo(to){return object(to)&&fn$6(to.then)},ms=function eo(){return navigator$1&&navigator$1.userAgent.match(/msie|trident|edge/i)},memoize$1=function eo(to,no){no||(no=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var ao=[],lo=0;lono?1:0},descending=function eo(to,no){return-1*ascending(to,no)},extend=Object.assign!=null?Object.assign.bind(Object):function(eo){for(var to=arguments,no=1;no1&&($o-=1),$o<1/6?ko+(Co-ko)*6*$o:$o<1/2?Co:$o<2/3?ko+(Co-ko)*(2/3-$o)*6:ko}var yo=new RegExp("^"+hsla+"$").exec(to);if(yo){if(io=parseInt(yo[1]),io<0?io=(360- -1*io%360)%360:io>360&&(io=io%360),io/=360,so=parseFloat(yo[2]),so<0||so>100||(so=so/100,ao=parseFloat(yo[3]),ao<0||ao>100)||(ao=ao/100,lo=yo[4],lo!==void 0&&(lo=parseFloat(lo),lo<0||lo>1)))return;if(so===0)uo=ho=go=Math.round(ao*255);else{var So=ao<.5?ao*(1+so):ao+so-ao*so,_o=2*ao-So;uo=Math.round(255*mo(_o,So,io+1/3)),ho=Math.round(255*mo(_o,So,io)),go=Math.round(255*mo(_o,So,io-1/3))}no=[uo,ho,go,lo]}return no},rgb2tuple=function eo(to){var no,io=new RegExp("^"+rgba+"$").exec(to);if(io){no=[];for(var so=[],ao=1;ao<=3;ao++){var lo=io[ao];if(lo[lo.length-1]==="%"&&(so[ao]=!0),lo=parseFloat(lo),so[ao]&&(lo=lo/100*255),lo<0||lo>255)return;no.push(Math.floor(lo))}var uo=so[1]||so[2]||so[3],ho=so[1]&&so[2]&&so[3];if(uo&&!ho)return;var go=io[4];if(go!==void 0){if(go=parseFloat(go),go<0||go>1)return;no.push(go)}}return no},colorname2tuple=function eo(to){return colors[to.toLowerCase()]},color2tuple=function eo(to){return(array(to)?to:null)||colorname2tuple(to)||hex2tuple(to)||rgb2tuple(to)||hsl2tuple(to)},colors={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},setMap=function eo(to){for(var no=to.map,io=to.keys,so=io.length,ao=0;ao=to||Lo<0||yo&&Go>=ao}function Ro(){var Po=now_1();if($o(Po))return Oo(Po);uo=setTimeout(Ro,Co(Po))}function Oo(Po){return uo=void 0,So&&io?_o(Po):(io=so=void 0,lo)}function No(){uo!==void 0&&clearTimeout(uo),go=0,io=ho=so=uo=void 0}function Mo(){return uo===void 0?lo:Oo(now_1())}function Bo(){var Po=now_1(),Lo=$o(Po);if(io=arguments,so=this,ho=Po,Lo){if(uo===void 0)return ko(ho);if(yo)return clearTimeout(uo),uo=setTimeout(Ro,to),_o(ho)}return uo===void 0&&(uo=setTimeout(Ro,to)),lo}return Bo.cancel=No,Bo.flush=Mo,Bo}var debounce_1=debounce,performance$1=_window?_window.performance:null,pnow=performance$1&&performance$1.now?function(){return performance$1.now()}:function(){return Date.now()},raf=function(){if(_window){if(_window.requestAnimationFrame)return function(eo){_window.requestAnimationFrame(eo)};if(_window.mozRequestAnimationFrame)return function(eo){_window.mozRequestAnimationFrame(eo)};if(_window.webkitRequestAnimationFrame)return function(eo){_window.webkitRequestAnimationFrame(eo)};if(_window.msRequestAnimationFrame)return function(eo){_window.msRequestAnimationFrame(eo)}}return function(eo){eo&&setTimeout(function(){eo(pnow())},1e3/60)}}(),requestAnimationFrame$1=function eo(to){return raf(to)},performanceNow=pnow,DEFAULT_HASH_SEED=9261,K=65599,DEFAULT_HASH_SEED_ALT=5381,hashIterableInts=function eo(to){for(var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DEFAULT_HASH_SEED,io=no,so;so=to.next(),!so.done;)io=io*K+so.value|0;return io},hashInt=function eo(to){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DEFAULT_HASH_SEED;return no*K+to|0},hashIntAlt=function eo(to){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DEFAULT_HASH_SEED_ALT;return(no<<5)+no+to|0},combineHashes=function eo(to,no){return to*2097152+no},combineHashesArray=function eo(to){return to[0]*2097152+to[1]},hashArrays=function eo(to,no){return[hashInt(to[0],no[0]),hashIntAlt(to[1],no[1])]},hashIntsArray=function eo(to,no){var io={value:0,done:!1},so=0,ao=to.length,lo={next:function(){return so=0&&!(to[so]===no&&(to.splice(so,1),io));so--);},clearArray=function eo(to){to.splice(0,to.length)},push=function eo(to,no){for(var io=0;io"u"?"undefined":_typeof(Set))!==undef?Set:ObjectSet,Element$1=function eo(to,no){var io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(to===void 0||no===void 0||!core(to)){error("An element must have a core reference and parameters set");return}var so=no.group;if(so==null&&(no.data&&no.data.source!=null&&no.data.target!=null?so="edges":so="nodes"),so!=="nodes"&&so!=="edges"){error("An element must be of type `nodes` or `edges`; you specified `"+so+"`");return}this.length=1,this[0]=this;var ao=this._private={cy:to,single:!0,data:no.data||{},position:no.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:so,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!no.selected,selectable:no.selectable===void 0?!0:!!no.selectable,locked:!!no.locked,grabbed:!1,grabbable:no.grabbable===void 0?!0:!!no.grabbable,pannable:no.pannable===void 0?so==="edges":!!no.pannable,active:!1,classes:new Set$1,animation:{current:[],queue:[]},rscratch:{},scratch:no.scratch||{},edges:[],children:[],parent:no.parent&&no.parent.isNode()?no.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(ao.position.x==null&&(ao.position.x=0),ao.position.y==null&&(ao.position.y=0),no.renderedPosition){var lo=no.renderedPosition,uo=to.pan(),ho=to.zoom();ao.position={x:(lo.x-uo.x)/ho,y:(lo.y-uo.y)/ho}}var go=[];array(no.classes)?go=no.classes:string(no.classes)&&(go=no.classes.split(/\s+/));for(var mo=0,yo=go.length;moOo?1:0},mo=function(Ro,Oo,No,Mo,Bo){var Po;if(No==null&&(No=0),Bo==null&&(Bo=io),No<0)throw new Error("lo must be non-negative");for(Mo==null&&(Mo=Ro.length);NoUo;0<=Uo?Do++:Do--)Go.push(Do);return Go}).apply(this).reverse(),Lo=[],Mo=0,Bo=Po.length;MoHo;0<=Ho?++Go:--Go)Yo.push(lo(Ro,No));return Yo},Co=function(Ro,Oo,No,Mo){var Bo,Po,Lo;for(Mo==null&&(Mo=io),Bo=Ro[No];No>Oo;){if(Lo=No-1>>1,Po=Ro[Lo],Mo(Bo,Po)<0){Ro[No]=Po,No=Lo;continue}break}return Ro[No]=Bo},$o=function(Ro,Oo,No){var Mo,Bo,Po,Lo,Go;for(No==null&&(No=io),Bo=Ro.length,Go=Oo,Po=Ro[Oo],Mo=2*Oo+1;Mo0;){var Po=Oo.pop(),Lo=$o(Po),Go=Po.id();if(So[Go]=Lo,Lo!==1/0)for(var Do=Po.neighborhood().intersect(ko),Uo=0;Uo0)for(gs.unshift(hs);yo[vs];){var ks=yo[vs];gs.unshift(ks.edge),gs.unshift(ks.node),ys=ks.node,vs=ys.id()}return uo.spawn(gs)}}}},elesfn$t={kruskal:function eo(to){to=to||function(No){return 1};for(var no=this.byGroup(),io=no.nodes,so=no.edges,ao=io.length,lo=new Array(ao),uo=io,ho=function(Mo){for(var Bo=0;Bo0;){if(Bo(),Lo++,Mo===mo){for(var Go=[],Do=ao,Uo=mo,Ho=Ro[Uo];Go.unshift(Do),Ho!=null&&Go.unshift(Ho),Do=$o[Uo],Do!=null;)Uo=Do.id(),Ho=Ro[Uo];return{found:!0,distance:yo[Mo],path:this.spawn(Go),steps:Lo}}_o[Mo]=!0;for(var Yo=No._private.edges,qo=0;qoHo&&(ko[Uo]=Ho,Oo[Uo]=Do,No[Uo]=Bo),!ao){var Yo=Do*mo+Go;!ao&&ko[Yo]>Ho&&(ko[Yo]=Ho,Oo[Yo]=Go,No[Yo]=Bo)}}}for(var qo=0;qo1&&arguments[1]!==void 0?arguments[1]:lo,F1=No(Fu),y1=[],r1=F1;;){if(r1==null)return no.spawn();var $u=Oo(r1),Kl=$u.edge,Is=$u.pred;if(y1.unshift(r1[0]),r1.same(ju)&&y1.length>0)break;Kl!=null&&y1.unshift(Kl),r1=Is}return ho.spawn(y1)},Po=0;Po<_o;Po++){var Lo=So[Po],Go=Oo(Lo);Lo.same(lo)?Go.dist=0:Go.dist=1/0,Go.pred=null,Go.edge=null}for(var Do=!1,Uo=function(Fu,ju,F1,y1,r1,$u){var Kl=y1.dist+$u;Kl=0;mo--){var yo=go[mo],So=yo[1],_o=yo[2];(no[So]===uo&&no[_o]===ho||no[So]===ho&&no[_o]===uo)&&go.splice(mo,1)}for(var ko=0;koso;){var ao=Math.floor(Math.random()*no.length);no=collapse(ao,to,no),io--}return no},elesfn$p={kargerStein:function eo(){var to=this,no=this.byGroup(),io=no.nodes,so=no.edges;so.unmergeBy(function(gs){return gs.isLoop()});var ao=io.length,lo=so.length,uo=Math.ceil(Math.pow(Math.log(ao)/Math.LN2,2)),ho=Math.floor(ao/sqrt2);if(ao<2){error("At least 2 nodes are required for Karger-Stein algorithm");return}for(var go=[],mo=0;mo1&&arguments[1]!==void 0?arguments[1]:0,io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to.length,so=1/0,ao=no;ao1&&arguments[1]!==void 0?arguments[1]:0,io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to.length,so=-1/0,ao=no;ao1&&arguments[1]!==void 0?arguments[1]:0,io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to.length,so=0,ao=0,lo=no;lo1&&arguments[1]!==void 0?arguments[1]:0,io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to.length,so=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,ao=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,lo=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;so?to=to.slice(no,io):(io0&&to.splice(0,no));for(var uo=0,ho=to.length-1;ho>=0;ho--){var go=to[ho];lo?isFinite(go)||(to[ho]=-1/0,uo++):to.splice(ho,1)}ao&&to.sort(function(So,_o){return So-_o});var mo=to.length,yo=Math.floor(mo/2);return mo%2!==0?to[yo+1+uo]:(to[yo-1+uo]+to[yo+uo])/2},deg2rad=function eo(to){return Math.PI*to/180},getAngleFromDisp=function eo(to,no){return Math.atan2(no,to)-Math.PI/2},log2=Math.log2||function(eo){return Math.log(eo)/Math.log(2)},signum=function eo(to){return to>0?1:to<0?-1:0},dist=function eo(to,no){return Math.sqrt(sqdist(to,no))},sqdist=function eo(to,no){var io=no.x-to.x,so=no.y-to.y;return io*io+so*so},inPlaceSumNormalize=function eo(to){for(var no=to.length,io=0,so=0;so=to.x1&&to.y2>=to.y1)return{x1:to.x1,y1:to.y1,x2:to.x2,y2:to.y2,w:to.x2-to.x1,h:to.y2-to.y1};if(to.w!=null&&to.h!=null&&to.w>=0&&to.h>=0)return{x1:to.x1,y1:to.y1,x2:to.x1+to.w,y2:to.y1+to.h,w:to.w,h:to.h}}},copyBoundingBox=function eo(to){return{x1:to.x1,x2:to.x2,w:to.w,y1:to.y1,y2:to.y2,h:to.h}},clearBoundingBox=function eo(to){to.x1=1/0,to.y1=1/0,to.x2=-1/0,to.y2=-1/0,to.w=0,to.h=0},shiftBoundingBox=function eo(to,no,io){return{x1:to.x1+no,x2:to.x2+no,y1:to.y1+io,y2:to.y2+io,w:to.w,h:to.h}},updateBoundingBox=function eo(to,no){to.x1=Math.min(to.x1,no.x1),to.x2=Math.max(to.x2,no.x2),to.w=to.x2-to.x1,to.y1=Math.min(to.y1,no.y1),to.y2=Math.max(to.y2,no.y2),to.h=to.y2-to.y1},expandBoundingBoxByPoint=function eo(to,no,io){to.x1=Math.min(to.x1,no),to.x2=Math.max(to.x2,no),to.w=to.x2-to.x1,to.y1=Math.min(to.y1,io),to.y2=Math.max(to.y2,io),to.h=to.y2-to.y1},expandBoundingBox=function eo(to){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return to.x1-=no,to.x2+=no,to.y1-=no,to.y2+=no,to.w=to.x2-to.x1,to.h=to.y2-to.y1,to},expandBoundingBoxSides=function eo(to){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],io,so,ao,lo;if(no.length===1)io=so=ao=lo=no[0];else if(no.length===2)io=ao=no[0],lo=so=no[1];else if(no.length===4){var uo=_slicedToArray(no,4);io=uo[0],so=uo[1],ao=uo[2],lo=uo[3]}return to.x1-=lo,to.x2+=so,to.y1-=io,to.y2+=ao,to.w=to.x2-to.x1,to.h=to.y2-to.y1,to},assignBoundingBox=function eo(to,no){to.x1=no.x1,to.y1=no.y1,to.x2=no.x2,to.y2=no.y2,to.w=to.x2-to.x1,to.h=to.y2-to.y1},boundingBoxesIntersect=function eo(to,no){return!(to.x1>no.x2||no.x1>to.x2||to.x2no.y2||no.y1>to.y2)},inBoundingBox=function eo(to,no,io){return to.x1<=no&&no<=to.x2&&to.y1<=io&&io<=to.y2},pointInBoundingBox=function eo(to,no){return inBoundingBox(to,no.x,no.y)},boundingBoxInBoundingBox=function eo(to,no){return inBoundingBox(to,no.x1,no.y1)&&inBoundingBox(to,no.x2,no.y2)},roundRectangleIntersectLine=function eo(to,no,io,so,ao,lo,uo){var ho=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",go=ho==="auto"?getRoundRectangleRadius(ao,lo):ho,mo=ao/2,yo=lo/2;go=Math.min(go,mo,yo);var So=go!==mo,_o=go!==yo,ko;if(So){var Co=io-mo+go-uo,$o=so-yo-uo,Ro=io+mo-go+uo,Oo=$o;if(ko=finiteLinesIntersect(to,no,io,so,Co,$o,Ro,Oo,!1),ko.length>0)return ko}if(_o){var No=io+mo+uo,Mo=so-yo+go-uo,Bo=No,Po=so+yo-go+uo;if(ko=finiteLinesIntersect(to,no,io,so,No,Mo,Bo,Po,!1),ko.length>0)return ko}if(So){var Lo=io-mo+go-uo,Go=so+yo+uo,Do=io+mo-go+uo,Uo=Go;if(ko=finiteLinesIntersect(to,no,io,so,Lo,Go,Do,Uo,!1),ko.length>0)return ko}if(_o){var Ho=io-mo-uo,Yo=so-yo+go-uo,qo=Ho,Jo=so+yo-go+uo;if(ko=finiteLinesIntersect(to,no,io,so,Ho,Yo,qo,Jo,!1),ko.length>0)return ko}var ps;{var Qo=io-mo+go,hs=so-yo+go;if(ps=intersectLineCircle(to,no,io,so,Qo,hs,go+uo),ps.length>0&&ps[0]<=Qo&&ps[1]<=hs)return[ps[0],ps[1]]}{var gs=io+mo-go,ys=so-yo+go;if(ps=intersectLineCircle(to,no,io,so,gs,ys,go+uo),ps.length>0&&ps[0]>=gs&&ps[1]<=ys)return[ps[0],ps[1]]}{var vs=io+mo-go,ks=so+yo-go;if(ps=intersectLineCircle(to,no,io,so,vs,ks,go+uo),ps.length>0&&ps[0]>=vs&&ps[1]>=ks)return[ps[0],ps[1]]}{var Os=io-mo+go,Ts=so+yo-go;if(ps=intersectLineCircle(to,no,io,so,Os,Ts,go+uo),ps.length>0&&ps[0]<=Os&&ps[1]>=Ts)return[ps[0],ps[1]]}return[]},inLineVicinity=function eo(to,no,io,so,ao,lo,uo){var ho=uo,go=Math.min(io,ao),mo=Math.max(io,ao),yo=Math.min(so,lo),So=Math.max(so,lo);return go-ho<=to&&to<=mo+ho&&yo-ho<=no&&no<=So+ho},inBezierVicinity=function eo(to,no,io,so,ao,lo,uo,ho,go){var mo={x1:Math.min(io,uo,ao)-go,x2:Math.max(io,uo,ao)+go,y1:Math.min(so,ho,lo)-go,y2:Math.max(so,ho,lo)+go};return!(tomo.x2||nomo.y2)},solveQuadratic=function eo(to,no,io,so){io-=so;var ao=no*no-4*to*io;if(ao<0)return[];var lo=Math.sqrt(ao),uo=2*to,ho=(-no+lo)/uo,go=(-no-lo)/uo;return[ho,go]},solveCubic=function eo(to,no,io,so,ao){var lo=1e-5;to===0&&(to=lo),no/=to,io/=to,so/=to;var uo,ho,go,mo,yo,So,_o,ko;if(ho=(3*io-no*no)/9,go=-(27*so)+no*(9*io-2*(no*no)),go/=54,uo=ho*ho*ho+go*go,ao[1]=0,_o=no/3,uo>0){yo=go+Math.sqrt(uo),yo=yo<0?-Math.pow(-yo,1/3):Math.pow(yo,1/3),So=go-Math.sqrt(uo),So=So<0?-Math.pow(-So,1/3):Math.pow(So,1/3),ao[0]=-_o+yo+So,_o+=(yo+So)/2,ao[4]=ao[2]=-_o,_o=Math.sqrt(3)*(-So+yo)/2,ao[3]=_o,ao[5]=-_o;return}if(ao[5]=ao[3]=0,uo===0){ko=go<0?-Math.pow(-go,1/3):Math.pow(go,1/3),ao[0]=-_o+2*ko,ao[4]=ao[2]=-(ko+_o);return}ho=-ho,mo=ho*ho*ho,mo=Math.acos(go/Math.sqrt(mo)),ko=2*Math.sqrt(ho),ao[0]=-_o+ko*Math.cos(mo/3),ao[2]=-_o+ko*Math.cos((mo+2*Math.PI)/3),ao[4]=-_o+ko*Math.cos((mo+4*Math.PI)/3)},sqdistToQuadraticBezier=function eo(to,no,io,so,ao,lo,uo,ho){var go=1*io*io-4*io*ao+2*io*uo+4*ao*ao-4*ao*uo+uo*uo+so*so-4*so*lo+2*so*ho+4*lo*lo-4*lo*ho+ho*ho,mo=1*9*io*ao-3*io*io-3*io*uo-6*ao*ao+3*ao*uo+9*so*lo-3*so*so-3*so*ho-6*lo*lo+3*lo*ho,yo=1*3*io*io-6*io*ao+io*uo-io*to+2*ao*ao+2*ao*to-uo*to+3*so*so-6*so*lo+so*ho-so*no+2*lo*lo+2*lo*no-ho*no,So=1*io*ao-io*io+io*to-ao*to+so*lo-so*so+so*no-lo*no,_o=[];solveCubic(go,mo,yo,So,_o);for(var ko=1e-7,Co=[],$o=0;$o<6;$o+=2)Math.abs(_o[$o+1])=0&&_o[$o]<=1&&Co.push(_o[$o]);Co.push(1),Co.push(0);for(var Ro=-1,Oo,No,Mo,Bo=0;Bo=0?Mogo?(to-ao)*(to-ao)+(no-lo)*(no-lo):mo-So},pointInsidePolygonPoints=function eo(to,no,io){for(var so,ao,lo,uo,ho,go=0,mo=0;mo=to&&to>=lo||so<=to&&to<=lo)ho=(to-so)/(lo-so)*(uo-ao)+ao,ho>no&&go++;else continue;return go%2!==0},pointInsidePolygon=function eo(to,no,io,so,ao,lo,uo,ho,go){var mo=new Array(io.length),yo;ho[0]!=null?(yo=Math.atan(ho[1]/ho[0]),ho[0]<0?yo=yo+Math.PI/2:yo=-yo-Math.PI/2):yo=ho;for(var So=Math.cos(-yo),_o=Math.sin(-yo),ko=0;ko0){var $o=expandPolygon(mo,-go);Co=joinLines($o)}else Co=mo;return pointInsidePolygonPoints(to,no,Co)},pointInsideRoundPolygon=function eo(to,no,io,so,ao,lo,uo,ho){for(var go=new Array(io.length*2),mo=0;mo=0&&$o<=1&&Oo.push($o),Ro>=0&&Ro<=1&&Oo.push(Ro),Oo.length===0)return[];var No=Oo[0]*ho[0]+to,Mo=Oo[0]*ho[1]+no;if(Oo.length>1){if(Oo[0]==Oo[1])return[No,Mo];var Bo=Oo[1]*ho[0]+to,Po=Oo[1]*ho[1]+no;return[No,Mo,Bo,Po]}else return[No,Mo]},midOfThree=function eo(to,no,io){return no<=to&&to<=io||io<=to&&to<=no?to:to<=no&&no<=io||io<=no&&no<=to?no:io},finiteLinesIntersect=function eo(to,no,io,so,ao,lo,uo,ho,go){var mo=to-ao,yo=io-to,So=uo-ao,_o=no-lo,ko=so-no,Co=ho-lo,$o=So*_o-Co*mo,Ro=yo*_o-ko*mo,Oo=Co*yo-So*ko;if(Oo!==0){var No=$o/Oo,Mo=Ro/Oo,Bo=.001,Po=0-Bo,Lo=1+Bo;return Po<=No&&No<=Lo&&Po<=Mo&&Mo<=Lo?[to+No*yo,no+No*ko]:go?[to+No*yo,no+No*ko]:[]}else return $o===0||Ro===0?midOfThree(to,io,uo)===uo?[uo,ho]:midOfThree(to,io,ao)===ao?[ao,lo]:midOfThree(ao,uo,io)===io?[io,so]:[]:[]},polygonIntersectLine=function eo(to,no,io,so,ao,lo,uo,ho){var go=[],mo,yo=new Array(io.length),So=!0;lo==null&&(So=!1);var _o;if(So){for(var ko=0;ko0){var Co=expandPolygon(yo,-ho);_o=joinLines(Co)}else _o=yo}else _o=io;for(var $o,Ro,Oo,No,Mo=0;Mo<_o.length/2;Mo++)$o=_o[Mo*2],Ro=_o[Mo*2+1],Mo<_o.length/2-1?(Oo=_o[(Mo+1)*2],No=_o[(Mo+1)*2+1]):(Oo=_o[0],No=_o[1]),mo=finiteLinesIntersect(to,no,so,ao,$o,Ro,Oo,No),mo.length!==0&&go.push(mo[0],mo[1]);return go},roundPolygonIntersectLine=function eo(to,no,io,so,ao,lo,uo,ho,go){var mo=[],yo,So=new Array(io.length*2);go.forEach(function(Oo,No){No===0?(So[So.length-2]=Oo.startX,So[So.length-1]=Oo.startY):(So[No*4-2]=Oo.startX,So[No*4-1]=Oo.startY),So[No*4]=Oo.stopX,So[No*4+1]=Oo.stopY,yo=intersectLineCircle(to,no,so,ao,Oo.cx,Oo.cy,Oo.radius),yo.length!==0&&mo.push(yo[0],yo[1])});for(var _o=0;_o2){for(var ko=[mo[0],mo[1]],Co=Math.pow(ko[0]-to,2)+Math.pow(ko[1]-no,2),$o=1;$omo&&(mo=Mo)},get:function(No){return go[No]}},So=0;So0?Qo=ps.edgesTo(Jo)[0]:Qo=Jo.edgesTo(ps)[0];var hs=so(Qo);Jo=Jo.id(),Go[Jo]>Go[Yo]+hs&&(Go[Jo]=Go[Yo]+hs,Do.nodes.indexOf(Jo)<0?Do.push(Jo):Do.updateItem(Jo),Lo[Jo]=0,Po[Jo]=[]),Go[Jo]==Go[Yo]+hs&&(Lo[Jo]=Lo[Jo]+Lo[Yo],Po[Jo].push(Yo))}else for(var gs=0;gs0;){for(var Os=Bo.pop(),Ts=0;Ts0&&uo.push(io[ho]);uo.length!==0&&ao.push(so.collection(uo))}return ao},isDuplicate=function eo(to,no){for(var io=0;io5&&arguments[5]!==void 0?arguments[5]:identity,uo=so,ho,go,mo=0;mo=2?getDistance(to,no,io,0,addSquaredDiff,sqrt):getDistance(to,no,io,0,addAbsDiff)},squaredEuclidean:function eo(to,no,io){return getDistance(to,no,io,0,addSquaredDiff)},manhattan:function eo(to,no,io){return getDistance(to,no,io,0,addAbsDiff)},max:function eo(to,no,io){return getDistance(to,no,io,-1/0,maxAbsDiff)}};distances["squared-euclidean"]=distances.squaredEuclidean;distances.squaredeuclidean=distances.squaredEuclidean;function clusteringDistance(eo,to,no,io,so,ao){var lo;return fn$6(eo)?lo=eo:lo=distances[eo]||distances.euclidean,to===0&&fn$6(eo)?lo(so,ao):lo(to,no,io,so,ao)}var defaults$b=defaults$g({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),setOptions$2=function eo(to){return defaults$b(to)},getDist=function eo(to,no,io,so,ao){var lo=ao!=="kMedoids",uo=lo?function(yo){return io[yo]}:function(yo){return so[yo](io)},ho=function(So){return so[So](no)},go=io,mo=no;return clusteringDistance(to,so.length,uo,ho,go,mo)},randomCentroids=function eo(to,no,io){for(var so=io.length,ao=new Array(so),lo=new Array(so),uo=new Array(no),ho=null,go=0;goio)return!1}return!0},seenBefore=function eo(to,no,io){for(var so=0;souo&&(uo=no[go][mo],ho=mo);ao[ho].push(to[go])}for(var yo=0;yo=ao.threshold||ao.mode==="dendrogram"&&to.length===1)return!1;var ko=no[lo],Co=no[so[lo]],$o;ao.mode==="dendrogram"?$o={left:ko,right:Co,key:ko.key}:$o={value:ko.value.concat(Co.value),key:ko.key},to[ko.index]=$o,to.splice(Co.index,1),no[ko.key]=$o;for(var Ro=0;Roio[Co.key][Oo.key]&&(ho=io[Co.key][Oo.key])):ao.linkage==="max"?(ho=io[ko.key][Oo.key],io[ko.key][Oo.key]0&&so.push(ao);return so},assignClusters=function eo(to,no,io){for(var so=[],ao=0;aouo&&(lo=go,uo=no[ao*to+go])}lo>0&&so.push(lo)}for(var mo=0;mogo&&(ho=mo,go=yo)}io[ao]=lo[ho]}return so=assignClusters(to,no,io),so},affinityPropagation=function eo(to){for(var no=this.cy(),io=this.nodes(),so=setOptions(to),ao={},lo=0;lo=Ho?(Yo=Ho,Ho=Jo,qo=ps):Jo>Yo&&(Yo=Jo);for(var Qo=0;Qo0?1:0;Lo[Do%so.minIterations*uo+Os]=Ts,ks+=Ts}if(ks>0&&(Do>=so.minIterations-1||Do==so.maxIterations-1)){for(var Xs=0,Ws=0;Ws1||Po>1)&&(uo=!0),yo[No]=[],Oo.outgoers().forEach(function(Go){Go.isEdge()&&yo[No].push(Go.id())})}else So[No]=[void 0,Oo.target().id()]}):lo.forEach(function(Oo){var No=Oo.id();if(Oo.isNode()){var Mo=Oo.degree(!0);Mo%2&&(ho?go?uo=!0:go=No:ho=No),yo[No]=[],Oo.connectedEdges().forEach(function(Bo){return yo[No].push(Bo.id())})}else So[No]=[Oo.source().id(),Oo.target().id()]});var _o={found:!1,trail:void 0};if(uo)return _o;if(go&&ho)if(ao){if(mo&&go!=mo)return _o;mo=go}else{if(mo&&go!=mo&&ho!=mo)return _o;mo||(mo=go)}else mo||(mo=lo[0].id());var ko=function(No){for(var Mo=No,Bo=[No],Po,Lo,Go;yo[Mo].length;)Po=yo[Mo].shift(),Lo=So[Po][0],Go=So[Po][1],Mo!=Go?(yo[Go]=yo[Go].filter(function(Do){return Do!=Po}),Mo=Go):!ao&&Mo!=Lo&&(yo[Lo]=yo[Lo].filter(function(Do){return Do!=Po}),Mo=Lo),Bo.unshift(Po),Bo.unshift(Mo);return Bo},Co=[],$o=[];for($o=ko(mo);$o.length!=1;)yo[$o[0]].length==0?(Co.unshift(lo.getElementById($o.shift())),Co.unshift(lo.getElementById($o.shift()))):$o=ko($o.shift()).concat($o);Co.unshift(lo.getElementById($o.shift()));for(var Ro in yo)if(yo[Ro].length)return _o;return _o.found=!0,_o.trail=this.spawn(Co,!0),_o}},hopcroftTarjanBiconnected=function eo(){var to=this,no={},io=0,so=0,ao=[],lo=[],uo={},ho=function(So,_o){for(var ko=lo.length-1,Co=[],$o=to.spawn();lo[ko].x!=So||lo[ko].y!=_o;)Co.push(lo.pop().edge),ko--;Co.push(lo.pop().edge),Co.forEach(function(Ro){var Oo=Ro.connectedNodes().intersection(to);$o.merge(Ro),Oo.forEach(function(No){var Mo=No.id(),Bo=No.connectedEdges().intersection(to);$o.merge(No),no[Mo].cutVertex?$o.merge(Bo.filter(function(Po){return Po.isLoop()})):$o.merge(Bo)})}),ao.push($o)},go=function yo(So,_o,ko){So===ko&&(so+=1),no[_o]={id:io,low:io++,cutVertex:!1};var Co=to.getElementById(_o).connectedEdges().intersection(to);if(Co.size()===0)ao.push(to.spawn(to.getElementById(_o)));else{var $o,Ro,Oo,No;Co.forEach(function(Mo){$o=Mo.source().id(),Ro=Mo.target().id(),Oo=$o===_o?Ro:$o,Oo!==ko&&(No=Mo.id(),uo[No]||(uo[No]=!0,lo.push({x:_o,y:Oo,edge:Mo})),Oo in no?no[_o].low=Math.min(no[_o].low,no[Oo].id):(yo(So,Oo,_o),no[_o].low=Math.min(no[_o].low,no[Oo].low),no[_o].id<=no[Oo].low&&(no[_o].cutVertex=!0,ho(_o,Oo))))})}};to.forEach(function(yo){if(yo.isNode()){var So=yo.id();So in no||(so=0,go(So,So),no[So].cutVertex=so>1)}});var mo=Object.keys(no).filter(function(yo){return no[yo].cutVertex}).map(function(yo){return to.getElementById(yo)});return{cut:to.spawn(mo),components:ao}},hopcroftTarjanBiconnected$1={hopcroftTarjanBiconnected,htbc:hopcroftTarjanBiconnected,htb:hopcroftTarjanBiconnected,hopcroftTarjanBiconnectedComponents:hopcroftTarjanBiconnected},tarjanStronglyConnected=function eo(){var to=this,no={},io=0,so=[],ao=[],lo=to.spawn(to),uo=function ho(go){ao.push(go),no[go]={index:io,low:io++,explored:!1};var mo=to.getElementById(go).connectedEdges().intersection(to);if(mo.forEach(function(Co){var $o=Co.target().id();$o!==go&&($o in no||ho($o),no[$o].explored||(no[go].low=Math.min(no[go].low,no[$o].low)))}),no[go].index===no[go].low){for(var yo=to.spawn();;){var So=ao.pop();if(yo.merge(to.getElementById(So)),no[So].low=no[go].index,no[So].explored=!0,So===go)break}var _o=yo.edgesWith(yo),ko=yo.merge(_o);so.push(ko),lo=lo.difference(ko)}};return to.forEach(function(ho){if(ho.isNode()){var go=ho.id();go in no||uo(go)}}),{cut:lo,components:so}},tarjanStronglyConnected$1={tarjanStronglyConnected,tsc:tarjanStronglyConnected,tscc:tarjanStronglyConnected,tarjanStronglyConnectedComponents:tarjanStronglyConnected},elesfn$j={};[elesfn$v,elesfn$u,elesfn$t,elesfn$s,elesfn$r,elesfn$q,elesfn$p,elesfn$o,elesfn$n,elesfn$m,elesfn$l,markovClustering$1,kClustering,hierarchicalClustering$1,affinityPropagation$1,elesfn$k,hopcroftTarjanBiconnected$1,tarjanStronglyConnected$1].forEach(function(eo){extend(elesfn$j,eo)});/*! +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ao=!0,lo=!1,uo;return{s:function(){no=no.call(eo)},n:function(){var ho=no.next();return ao=ho.done,ho},e:function(ho){lo=!0,uo=ho},f:function(){try{!ao&&no.return!=null&&no.return()}finally{if(lo)throw uo}}}}var _window=typeof window>"u"?null:window,navigator$1=_window?_window.navigator:null;_window&&_window.document;var typeofstr=_typeof(""),typeofobj=_typeof({}),typeoffn=_typeof(function(){}),typeofhtmlele=typeof HTMLElement>"u"?"undefined":_typeof(HTMLElement),instanceStr=function eo(to){return to&&to.instanceString&&fn$6(to.instanceString)?to.instanceString():null},string=function eo(to){return to!=null&&_typeof(to)==typeofstr},fn$6=function eo(to){return to!=null&&_typeof(to)===typeoffn},array=function eo(to){return!elementOrCollection(to)&&(Array.isArray?Array.isArray(to):to!=null&&to instanceof Array)},plainObject=function eo(to){return to!=null&&_typeof(to)===typeofobj&&!array(to)&&to.constructor===Object},object=function eo(to){return to!=null&&_typeof(to)===typeofobj},number$1=function eo(to){return to!=null&&_typeof(to)===_typeof(1)&&!isNaN(to)},integer=function eo(to){return number$1(to)&&Math.floor(to)===to},htmlElement=function eo(to){if(typeofhtmlele!=="undefined")return to!=null&&to instanceof HTMLElement},elementOrCollection=function eo(to){return element(to)||collection(to)},element=function eo(to){return instanceStr(to)==="collection"&&to._private.single},collection=function eo(to){return instanceStr(to)==="collection"&&!to._private.single},core=function eo(to){return instanceStr(to)==="core"},stylesheet=function eo(to){return instanceStr(to)==="stylesheet"},event=function eo(to){return instanceStr(to)==="event"},emptyString=function eo(to){return to==null?!0:!!(to===""||to.match(/^\s+$/))},domElement=function eo(to){return typeof HTMLElement>"u"?!1:to instanceof HTMLElement},boundingBox=function eo(to){return plainObject(to)&&number$1(to.x1)&&number$1(to.x2)&&number$1(to.y1)&&number$1(to.y2)},promise=function eo(to){return object(to)&&fn$6(to.then)},ms=function eo(){return navigator$1&&navigator$1.userAgent.match(/msie|trident|edge/i)},memoize$1=function eo(to,no){no||(no=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var ao=[],lo=0;lono?1:0},descending=function eo(to,no){return-1*ascending(to,no)},extend=Object.assign!=null?Object.assign.bind(Object):function(eo){for(var to=arguments,no=1;no1&&($o-=1),$o<1/6?ko+(Co-ko)*6*$o:$o<1/2?Co:$o<2/3?ko+(Co-ko)*(2/3-$o)*6:ko}var yo=new RegExp("^"+hsla+"$").exec(to);if(yo){if(io=parseInt(yo[1]),io<0?io=(360- -1*io%360)%360:io>360&&(io=io%360),io/=360,so=parseFloat(yo[2]),so<0||so>100||(so=so/100,ao=parseFloat(yo[3]),ao<0||ao>100)||(ao=ao/100,lo=yo[4],lo!==void 0&&(lo=parseFloat(lo),lo<0||lo>1)))return;if(so===0)uo=ho=go=Math.round(ao*255);else{var So=ao<.5?ao*(1+so):ao+so-ao*so,_o=2*ao-So;uo=Math.round(255*mo(_o,So,io+1/3)),ho=Math.round(255*mo(_o,So,io)),go=Math.round(255*mo(_o,So,io-1/3))}no=[uo,ho,go,lo]}return no},rgb2tuple=function eo(to){var no,io=new RegExp("^"+rgba+"$").exec(to);if(io){no=[];for(var so=[],ao=1;ao<=3;ao++){var lo=io[ao];if(lo[lo.length-1]==="%"&&(so[ao]=!0),lo=parseFloat(lo),so[ao]&&(lo=lo/100*255),lo<0||lo>255)return;no.push(Math.floor(lo))}var uo=so[1]||so[2]||so[3],ho=so[1]&&so[2]&&so[3];if(uo&&!ho)return;var go=io[4];if(go!==void 0){if(go=parseFloat(go),go<0||go>1)return;no.push(go)}}return no},colorname2tuple=function eo(to){return colors[to.toLowerCase()]},color2tuple=function eo(to){return(array(to)?to:null)||colorname2tuple(to)||hex2tuple(to)||rgb2tuple(to)||hsl2tuple(to)},colors={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},setMap=function eo(to){for(var no=to.map,io=to.keys,so=io.length,ao=0;ao=to||Lo<0||yo&&Go>=ao}function Ro(){var Fo=now_1();if($o(Fo))return Oo(Fo);uo=setTimeout(Ro,Co(Fo))}function Oo(Fo){return uo=void 0,So&&io?_o(Fo):(io=so=void 0,lo)}function No(){uo!==void 0&&clearTimeout(uo),go=0,io=ho=so=uo=void 0}function Mo(){return uo===void 0?lo:Oo(now_1())}function Bo(){var Fo=now_1(),Lo=$o(Fo);if(io=arguments,so=this,ho=Fo,Lo){if(uo===void 0)return ko(ho);if(yo)return clearTimeout(uo),uo=setTimeout(Ro,to),_o(ho)}return uo===void 0&&(uo=setTimeout(Ro,to)),lo}return Bo.cancel=No,Bo.flush=Mo,Bo}var debounce_1=debounce,performance$1=_window?_window.performance:null,pnow=performance$1&&performance$1.now?function(){return performance$1.now()}:function(){return Date.now()},raf=function(){if(_window){if(_window.requestAnimationFrame)return function(eo){_window.requestAnimationFrame(eo)};if(_window.mozRequestAnimationFrame)return function(eo){_window.mozRequestAnimationFrame(eo)};if(_window.webkitRequestAnimationFrame)return function(eo){_window.webkitRequestAnimationFrame(eo)};if(_window.msRequestAnimationFrame)return function(eo){_window.msRequestAnimationFrame(eo)}}return function(eo){eo&&setTimeout(function(){eo(pnow())},1e3/60)}}(),requestAnimationFrame$1=function eo(to){return raf(to)},performanceNow=pnow,DEFAULT_HASH_SEED=9261,K=65599,DEFAULT_HASH_SEED_ALT=5381,hashIterableInts=function eo(to){for(var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DEFAULT_HASH_SEED,io=no,so;so=to.next(),!so.done;)io=io*K+so.value|0;return io},hashInt=function eo(to){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DEFAULT_HASH_SEED;return no*K+to|0},hashIntAlt=function eo(to){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DEFAULT_HASH_SEED_ALT;return(no<<5)+no+to|0},combineHashes=function eo(to,no){return to*2097152+no},combineHashesArray=function eo(to){return to[0]*2097152+to[1]},hashArrays=function eo(to,no){return[hashInt(to[0],no[0]),hashIntAlt(to[1],no[1])]},hashIntsArray=function eo(to,no){var io={value:0,done:!1},so=0,ao=to.length,lo={next:function(){return so=0&&!(to[so]===no&&(to.splice(so,1),io));so--);},clearArray=function eo(to){to.splice(0,to.length)},push=function eo(to,no){for(var io=0;io"u"?"undefined":_typeof(Set))!==undef?Set:ObjectSet,Element$1=function eo(to,no){var io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(to===void 0||no===void 0||!core(to)){error("An element must have a core reference and parameters set");return}var so=no.group;if(so==null&&(no.data&&no.data.source!=null&&no.data.target!=null?so="edges":so="nodes"),so!=="nodes"&&so!=="edges"){error("An element must be of type `nodes` or `edges`; you specified `"+so+"`");return}this.length=1,this[0]=this;var ao=this._private={cy:to,single:!0,data:no.data||{},position:no.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:so,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!no.selected,selectable:no.selectable===void 0?!0:!!no.selectable,locked:!!no.locked,grabbed:!1,grabbable:no.grabbable===void 0?!0:!!no.grabbable,pannable:no.pannable===void 0?so==="edges":!!no.pannable,active:!1,classes:new Set$1,animation:{current:[],queue:[]},rscratch:{},scratch:no.scratch||{},edges:[],children:[],parent:no.parent&&no.parent.isNode()?no.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(ao.position.x==null&&(ao.position.x=0),ao.position.y==null&&(ao.position.y=0),no.renderedPosition){var lo=no.renderedPosition,uo=to.pan(),ho=to.zoom();ao.position={x:(lo.x-uo.x)/ho,y:(lo.y-uo.y)/ho}}var go=[];array(no.classes)?go=no.classes:string(no.classes)&&(go=no.classes.split(/\s+/));for(var mo=0,yo=go.length;moOo?1:0},mo=function(Ro,Oo,No,Mo,Bo){var Fo;if(No==null&&(No=0),Bo==null&&(Bo=io),No<0)throw new Error("lo must be non-negative");for(Mo==null&&(Mo=Ro.length);NoUo;0<=Uo?Do++:Do--)Go.push(Do);return Go}).apply(this).reverse(),Lo=[],Mo=0,Bo=Fo.length;MoHo;0<=Ho?++Go:--Go)Yo.push(lo(Ro,No));return Yo},Co=function(Ro,Oo,No,Mo){var Bo,Fo,Lo;for(Mo==null&&(Mo=io),Bo=Ro[No];No>Oo;){if(Lo=No-1>>1,Fo=Ro[Lo],Mo(Bo,Fo)<0){Ro[No]=Fo,No=Lo;continue}break}return Ro[No]=Bo},$o=function(Ro,Oo,No){var Mo,Bo,Fo,Lo,Go;for(No==null&&(No=io),Bo=Ro.length,Go=Oo,Fo=Ro[Oo],Mo=2*Oo+1;Mo0;){var Fo=Oo.pop(),Lo=$o(Fo),Go=Fo.id();if(So[Go]=Lo,Lo!==1/0)for(var Do=Fo.neighborhood().intersect(ko),Uo=0;Uo0)for(gs.unshift(hs);yo[vs];){var ks=yo[vs];gs.unshift(ks.edge),gs.unshift(ks.node),ys=ks.node,vs=ys.id()}return uo.spawn(gs)}}}},elesfn$t={kruskal:function eo(to){to=to||function(No){return 1};for(var no=this.byGroup(),io=no.nodes,so=no.edges,ao=io.length,lo=new Array(ao),uo=io,ho=function(Mo){for(var Bo=0;Bo0;){if(Bo(),Lo++,Mo===mo){for(var Go=[],Do=ao,Uo=mo,Ho=Ro[Uo];Go.unshift(Do),Ho!=null&&Go.unshift(Ho),Do=$o[Uo],Do!=null;)Uo=Do.id(),Ho=Ro[Uo];return{found:!0,distance:yo[Mo],path:this.spawn(Go),steps:Lo}}_o[Mo]=!0;for(var Yo=No._private.edges,qo=0;qoHo&&(ko[Uo]=Ho,Oo[Uo]=Do,No[Uo]=Bo),!ao){var Yo=Do*mo+Go;!ao&&ko[Yo]>Ho&&(ko[Yo]=Ho,Oo[Yo]=Go,No[Yo]=Bo)}}}for(var qo=0;qo1&&arguments[1]!==void 0?arguments[1]:lo,F1=No(Fu),y1=[],r1=F1;;){if(r1==null)return no.spawn();var $u=Oo(r1),Kl=$u.edge,Is=$u.pred;if(y1.unshift(r1[0]),r1.same(ju)&&y1.length>0)break;Kl!=null&&y1.unshift(Kl),r1=Is}return ho.spawn(y1)},Fo=0;Fo<_o;Fo++){var Lo=So[Fo],Go=Oo(Lo);Lo.same(lo)?Go.dist=0:Go.dist=1/0,Go.pred=null,Go.edge=null}for(var Do=!1,Uo=function(Fu,ju,F1,y1,r1,$u){var Kl=y1.dist+$u;Kl=0;mo--){var yo=go[mo],So=yo[1],_o=yo[2];(no[So]===uo&&no[_o]===ho||no[So]===ho&&no[_o]===uo)&&go.splice(mo,1)}for(var ko=0;koso;){var ao=Math.floor(Math.random()*no.length);no=collapse(ao,to,no),io--}return no},elesfn$p={kargerStein:function eo(){var to=this,no=this.byGroup(),io=no.nodes,so=no.edges;so.unmergeBy(function(gs){return gs.isLoop()});var ao=io.length,lo=so.length,uo=Math.ceil(Math.pow(Math.log(ao)/Math.LN2,2)),ho=Math.floor(ao/sqrt2);if(ao<2){error("At least 2 nodes are required for Karger-Stein algorithm");return}for(var go=[],mo=0;mo1&&arguments[1]!==void 0?arguments[1]:0,io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to.length,so=1/0,ao=no;ao1&&arguments[1]!==void 0?arguments[1]:0,io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to.length,so=-1/0,ao=no;ao1&&arguments[1]!==void 0?arguments[1]:0,io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to.length,so=0,ao=0,lo=no;lo1&&arguments[1]!==void 0?arguments[1]:0,io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to.length,so=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,ao=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,lo=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;so?to=to.slice(no,io):(io0&&to.splice(0,no));for(var uo=0,ho=to.length-1;ho>=0;ho--){var go=to[ho];lo?isFinite(go)||(to[ho]=-1/0,uo++):to.splice(ho,1)}ao&&to.sort(function(So,_o){return So-_o});var mo=to.length,yo=Math.floor(mo/2);return mo%2!==0?to[yo+1+uo]:(to[yo-1+uo]+to[yo+uo])/2},deg2rad=function eo(to){return Math.PI*to/180},getAngleFromDisp=function eo(to,no){return Math.atan2(no,to)-Math.PI/2},log2=Math.log2||function(eo){return Math.log(eo)/Math.log(2)},signum=function eo(to){return to>0?1:to<0?-1:0},dist=function eo(to,no){return Math.sqrt(sqdist(to,no))},sqdist=function eo(to,no){var io=no.x-to.x,so=no.y-to.y;return io*io+so*so},inPlaceSumNormalize=function eo(to){for(var no=to.length,io=0,so=0;so=to.x1&&to.y2>=to.y1)return{x1:to.x1,y1:to.y1,x2:to.x2,y2:to.y2,w:to.x2-to.x1,h:to.y2-to.y1};if(to.w!=null&&to.h!=null&&to.w>=0&&to.h>=0)return{x1:to.x1,y1:to.y1,x2:to.x1+to.w,y2:to.y1+to.h,w:to.w,h:to.h}}},copyBoundingBox=function eo(to){return{x1:to.x1,x2:to.x2,w:to.w,y1:to.y1,y2:to.y2,h:to.h}},clearBoundingBox=function eo(to){to.x1=1/0,to.y1=1/0,to.x2=-1/0,to.y2=-1/0,to.w=0,to.h=0},shiftBoundingBox=function eo(to,no,io){return{x1:to.x1+no,x2:to.x2+no,y1:to.y1+io,y2:to.y2+io,w:to.w,h:to.h}},updateBoundingBox=function eo(to,no){to.x1=Math.min(to.x1,no.x1),to.x2=Math.max(to.x2,no.x2),to.w=to.x2-to.x1,to.y1=Math.min(to.y1,no.y1),to.y2=Math.max(to.y2,no.y2),to.h=to.y2-to.y1},expandBoundingBoxByPoint=function eo(to,no,io){to.x1=Math.min(to.x1,no),to.x2=Math.max(to.x2,no),to.w=to.x2-to.x1,to.y1=Math.min(to.y1,io),to.y2=Math.max(to.y2,io),to.h=to.y2-to.y1},expandBoundingBox=function eo(to){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return to.x1-=no,to.x2+=no,to.y1-=no,to.y2+=no,to.w=to.x2-to.x1,to.h=to.y2-to.y1,to},expandBoundingBoxSides=function eo(to){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],io,so,ao,lo;if(no.length===1)io=so=ao=lo=no[0];else if(no.length===2)io=ao=no[0],lo=so=no[1];else if(no.length===4){var uo=_slicedToArray(no,4);io=uo[0],so=uo[1],ao=uo[2],lo=uo[3]}return to.x1-=lo,to.x2+=so,to.y1-=io,to.y2+=ao,to.w=to.x2-to.x1,to.h=to.y2-to.y1,to},assignBoundingBox=function eo(to,no){to.x1=no.x1,to.y1=no.y1,to.x2=no.x2,to.y2=no.y2,to.w=to.x2-to.x1,to.h=to.y2-to.y1},boundingBoxesIntersect=function eo(to,no){return!(to.x1>no.x2||no.x1>to.x2||to.x2no.y2||no.y1>to.y2)},inBoundingBox=function eo(to,no,io){return to.x1<=no&&no<=to.x2&&to.y1<=io&&io<=to.y2},pointInBoundingBox=function eo(to,no){return inBoundingBox(to,no.x,no.y)},boundingBoxInBoundingBox=function eo(to,no){return inBoundingBox(to,no.x1,no.y1)&&inBoundingBox(to,no.x2,no.y2)},roundRectangleIntersectLine=function eo(to,no,io,so,ao,lo,uo){var ho=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",go=ho==="auto"?getRoundRectangleRadius(ao,lo):ho,mo=ao/2,yo=lo/2;go=Math.min(go,mo,yo);var So=go!==mo,_o=go!==yo,ko;if(So){var Co=io-mo+go-uo,$o=so-yo-uo,Ro=io+mo-go+uo,Oo=$o;if(ko=finiteLinesIntersect(to,no,io,so,Co,$o,Ro,Oo,!1),ko.length>0)return ko}if(_o){var No=io+mo+uo,Mo=so-yo+go-uo,Bo=No,Fo=so+yo-go+uo;if(ko=finiteLinesIntersect(to,no,io,so,No,Mo,Bo,Fo,!1),ko.length>0)return ko}if(So){var Lo=io-mo+go-uo,Go=so+yo+uo,Do=io+mo-go+uo,Uo=Go;if(ko=finiteLinesIntersect(to,no,io,so,Lo,Go,Do,Uo,!1),ko.length>0)return ko}if(_o){var Ho=io-mo-uo,Yo=so-yo+go-uo,qo=Ho,Jo=so+yo-go+uo;if(ko=finiteLinesIntersect(to,no,io,so,Ho,Yo,qo,Jo,!1),ko.length>0)return ko}var ps;{var Qo=io-mo+go,hs=so-yo+go;if(ps=intersectLineCircle(to,no,io,so,Qo,hs,go+uo),ps.length>0&&ps[0]<=Qo&&ps[1]<=hs)return[ps[0],ps[1]]}{var gs=io+mo-go,ys=so-yo+go;if(ps=intersectLineCircle(to,no,io,so,gs,ys,go+uo),ps.length>0&&ps[0]>=gs&&ps[1]<=ys)return[ps[0],ps[1]]}{var vs=io+mo-go,ks=so+yo-go;if(ps=intersectLineCircle(to,no,io,so,vs,ks,go+uo),ps.length>0&&ps[0]>=vs&&ps[1]>=ks)return[ps[0],ps[1]]}{var Os=io-mo+go,Ts=so+yo-go;if(ps=intersectLineCircle(to,no,io,so,Os,Ts,go+uo),ps.length>0&&ps[0]<=Os&&ps[1]>=Ts)return[ps[0],ps[1]]}return[]},inLineVicinity=function eo(to,no,io,so,ao,lo,uo){var ho=uo,go=Math.min(io,ao),mo=Math.max(io,ao),yo=Math.min(so,lo),So=Math.max(so,lo);return go-ho<=to&&to<=mo+ho&&yo-ho<=no&&no<=So+ho},inBezierVicinity=function eo(to,no,io,so,ao,lo,uo,ho,go){var mo={x1:Math.min(io,uo,ao)-go,x2:Math.max(io,uo,ao)+go,y1:Math.min(so,ho,lo)-go,y2:Math.max(so,ho,lo)+go};return!(tomo.x2||nomo.y2)},solveQuadratic=function eo(to,no,io,so){io-=so;var ao=no*no-4*to*io;if(ao<0)return[];var lo=Math.sqrt(ao),uo=2*to,ho=(-no+lo)/uo,go=(-no-lo)/uo;return[ho,go]},solveCubic=function eo(to,no,io,so,ao){var lo=1e-5;to===0&&(to=lo),no/=to,io/=to,so/=to;var uo,ho,go,mo,yo,So,_o,ko;if(ho=(3*io-no*no)/9,go=-(27*so)+no*(9*io-2*(no*no)),go/=54,uo=ho*ho*ho+go*go,ao[1]=0,_o=no/3,uo>0){yo=go+Math.sqrt(uo),yo=yo<0?-Math.pow(-yo,1/3):Math.pow(yo,1/3),So=go-Math.sqrt(uo),So=So<0?-Math.pow(-So,1/3):Math.pow(So,1/3),ao[0]=-_o+yo+So,_o+=(yo+So)/2,ao[4]=ao[2]=-_o,_o=Math.sqrt(3)*(-So+yo)/2,ao[3]=_o,ao[5]=-_o;return}if(ao[5]=ao[3]=0,uo===0){ko=go<0?-Math.pow(-go,1/3):Math.pow(go,1/3),ao[0]=-_o+2*ko,ao[4]=ao[2]=-(ko+_o);return}ho=-ho,mo=ho*ho*ho,mo=Math.acos(go/Math.sqrt(mo)),ko=2*Math.sqrt(ho),ao[0]=-_o+ko*Math.cos(mo/3),ao[2]=-_o+ko*Math.cos((mo+2*Math.PI)/3),ao[4]=-_o+ko*Math.cos((mo+4*Math.PI)/3)},sqdistToQuadraticBezier=function eo(to,no,io,so,ao,lo,uo,ho){var go=1*io*io-4*io*ao+2*io*uo+4*ao*ao-4*ao*uo+uo*uo+so*so-4*so*lo+2*so*ho+4*lo*lo-4*lo*ho+ho*ho,mo=1*9*io*ao-3*io*io-3*io*uo-6*ao*ao+3*ao*uo+9*so*lo-3*so*so-3*so*ho-6*lo*lo+3*lo*ho,yo=1*3*io*io-6*io*ao+io*uo-io*to+2*ao*ao+2*ao*to-uo*to+3*so*so-6*so*lo+so*ho-so*no+2*lo*lo+2*lo*no-ho*no,So=1*io*ao-io*io+io*to-ao*to+so*lo-so*so+so*no-lo*no,_o=[];solveCubic(go,mo,yo,So,_o);for(var ko=1e-7,Co=[],$o=0;$o<6;$o+=2)Math.abs(_o[$o+1])=0&&_o[$o]<=1&&Co.push(_o[$o]);Co.push(1),Co.push(0);for(var Ro=-1,Oo,No,Mo,Bo=0;Bo=0?Mogo?(to-ao)*(to-ao)+(no-lo)*(no-lo):mo-So},pointInsidePolygonPoints=function eo(to,no,io){for(var so,ao,lo,uo,ho,go=0,mo=0;mo=to&&to>=lo||so<=to&&to<=lo)ho=(to-so)/(lo-so)*(uo-ao)+ao,ho>no&&go++;else continue;return go%2!==0},pointInsidePolygon=function eo(to,no,io,so,ao,lo,uo,ho,go){var mo=new Array(io.length),yo;ho[0]!=null?(yo=Math.atan(ho[1]/ho[0]),ho[0]<0?yo=yo+Math.PI/2:yo=-yo-Math.PI/2):yo=ho;for(var So=Math.cos(-yo),_o=Math.sin(-yo),ko=0;ko0){var $o=expandPolygon(mo,-go);Co=joinLines($o)}else Co=mo;return pointInsidePolygonPoints(to,no,Co)},pointInsideRoundPolygon=function eo(to,no,io,so,ao,lo,uo,ho){for(var go=new Array(io.length*2),mo=0;mo=0&&$o<=1&&Oo.push($o),Ro>=0&&Ro<=1&&Oo.push(Ro),Oo.length===0)return[];var No=Oo[0]*ho[0]+to,Mo=Oo[0]*ho[1]+no;if(Oo.length>1){if(Oo[0]==Oo[1])return[No,Mo];var Bo=Oo[1]*ho[0]+to,Fo=Oo[1]*ho[1]+no;return[No,Mo,Bo,Fo]}else return[No,Mo]},midOfThree=function eo(to,no,io){return no<=to&&to<=io||io<=to&&to<=no?to:to<=no&&no<=io||io<=no&&no<=to?no:io},finiteLinesIntersect=function eo(to,no,io,so,ao,lo,uo,ho,go){var mo=to-ao,yo=io-to,So=uo-ao,_o=no-lo,ko=so-no,Co=ho-lo,$o=So*_o-Co*mo,Ro=yo*_o-ko*mo,Oo=Co*yo-So*ko;if(Oo!==0){var No=$o/Oo,Mo=Ro/Oo,Bo=.001,Fo=0-Bo,Lo=1+Bo;return Fo<=No&&No<=Lo&&Fo<=Mo&&Mo<=Lo?[to+No*yo,no+No*ko]:go?[to+No*yo,no+No*ko]:[]}else return $o===0||Ro===0?midOfThree(to,io,uo)===uo?[uo,ho]:midOfThree(to,io,ao)===ao?[ao,lo]:midOfThree(ao,uo,io)===io?[io,so]:[]:[]},polygonIntersectLine=function eo(to,no,io,so,ao,lo,uo,ho){var go=[],mo,yo=new Array(io.length),So=!0;lo==null&&(So=!1);var _o;if(So){for(var ko=0;ko0){var Co=expandPolygon(yo,-ho);_o=joinLines(Co)}else _o=yo}else _o=io;for(var $o,Ro,Oo,No,Mo=0;Mo<_o.length/2;Mo++)$o=_o[Mo*2],Ro=_o[Mo*2+1],Mo<_o.length/2-1?(Oo=_o[(Mo+1)*2],No=_o[(Mo+1)*2+1]):(Oo=_o[0],No=_o[1]),mo=finiteLinesIntersect(to,no,so,ao,$o,Ro,Oo,No),mo.length!==0&&go.push(mo[0],mo[1]);return go},roundPolygonIntersectLine=function eo(to,no,io,so,ao,lo,uo,ho,go){var mo=[],yo,So=new Array(io.length*2);go.forEach(function(Oo,No){No===0?(So[So.length-2]=Oo.startX,So[So.length-1]=Oo.startY):(So[No*4-2]=Oo.startX,So[No*4-1]=Oo.startY),So[No*4]=Oo.stopX,So[No*4+1]=Oo.stopY,yo=intersectLineCircle(to,no,so,ao,Oo.cx,Oo.cy,Oo.radius),yo.length!==0&&mo.push(yo[0],yo[1])});for(var _o=0;_o2){for(var ko=[mo[0],mo[1]],Co=Math.pow(ko[0]-to,2)+Math.pow(ko[1]-no,2),$o=1;$omo&&(mo=Mo)},get:function(No){return go[No]}},So=0;So0?Qo=ps.edgesTo(Jo)[0]:Qo=Jo.edgesTo(ps)[0];var hs=so(Qo);Jo=Jo.id(),Go[Jo]>Go[Yo]+hs&&(Go[Jo]=Go[Yo]+hs,Do.nodes.indexOf(Jo)<0?Do.push(Jo):Do.updateItem(Jo),Lo[Jo]=0,Fo[Jo]=[]),Go[Jo]==Go[Yo]+hs&&(Lo[Jo]=Lo[Jo]+Lo[Yo],Fo[Jo].push(Yo))}else for(var gs=0;gs0;){for(var Os=Bo.pop(),Ts=0;Ts0&&uo.push(io[ho]);uo.length!==0&&ao.push(so.collection(uo))}return ao},isDuplicate=function eo(to,no){for(var io=0;io5&&arguments[5]!==void 0?arguments[5]:identity,uo=so,ho,go,mo=0;mo=2?getDistance(to,no,io,0,addSquaredDiff,sqrt):getDistance(to,no,io,0,addAbsDiff)},squaredEuclidean:function eo(to,no,io){return getDistance(to,no,io,0,addSquaredDiff)},manhattan:function eo(to,no,io){return getDistance(to,no,io,0,addAbsDiff)},max:function eo(to,no,io){return getDistance(to,no,io,-1/0,maxAbsDiff)}};distances["squared-euclidean"]=distances.squaredEuclidean;distances.squaredeuclidean=distances.squaredEuclidean;function clusteringDistance(eo,to,no,io,so,ao){var lo;return fn$6(eo)?lo=eo:lo=distances[eo]||distances.euclidean,to===0&&fn$6(eo)?lo(so,ao):lo(to,no,io,so,ao)}var defaults$b=defaults$g({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),setOptions$2=function eo(to){return defaults$b(to)},getDist=function eo(to,no,io,so,ao){var lo=ao!=="kMedoids",uo=lo?function(yo){return io[yo]}:function(yo){return so[yo](io)},ho=function(So){return so[So](no)},go=io,mo=no;return clusteringDistance(to,so.length,uo,ho,go,mo)},randomCentroids=function eo(to,no,io){for(var so=io.length,ao=new Array(so),lo=new Array(so),uo=new Array(no),ho=null,go=0;goio)return!1}return!0},seenBefore=function eo(to,no,io){for(var so=0;souo&&(uo=no[go][mo],ho=mo);ao[ho].push(to[go])}for(var yo=0;yo=ao.threshold||ao.mode==="dendrogram"&&to.length===1)return!1;var ko=no[lo],Co=no[so[lo]],$o;ao.mode==="dendrogram"?$o={left:ko,right:Co,key:ko.key}:$o={value:ko.value.concat(Co.value),key:ko.key},to[ko.index]=$o,to.splice(Co.index,1),no[ko.key]=$o;for(var Ro=0;Roio[Co.key][Oo.key]&&(ho=io[Co.key][Oo.key])):ao.linkage==="max"?(ho=io[ko.key][Oo.key],io[ko.key][Oo.key]0&&so.push(ao);return so},assignClusters=function eo(to,no,io){for(var so=[],ao=0;aouo&&(lo=go,uo=no[ao*to+go])}lo>0&&so.push(lo)}for(var mo=0;mogo&&(ho=mo,go=yo)}io[ao]=lo[ho]}return so=assignClusters(to,no,io),so},affinityPropagation=function eo(to){for(var no=this.cy(),io=this.nodes(),so=setOptions(to),ao={},lo=0;lo=Ho?(Yo=Ho,Ho=Jo,qo=ps):Jo>Yo&&(Yo=Jo);for(var Qo=0;Qo0?1:0;Lo[Do%so.minIterations*uo+Os]=Ts,ks+=Ts}if(ks>0&&(Do>=so.minIterations-1||Do==so.maxIterations-1)){for(var Xs=0,Ws=0;Ws1||Fo>1)&&(uo=!0),yo[No]=[],Oo.outgoers().forEach(function(Go){Go.isEdge()&&yo[No].push(Go.id())})}else So[No]=[void 0,Oo.target().id()]}):lo.forEach(function(Oo){var No=Oo.id();if(Oo.isNode()){var Mo=Oo.degree(!0);Mo%2&&(ho?go?uo=!0:go=No:ho=No),yo[No]=[],Oo.connectedEdges().forEach(function(Bo){return yo[No].push(Bo.id())})}else So[No]=[Oo.source().id(),Oo.target().id()]});var _o={found:!1,trail:void 0};if(uo)return _o;if(go&&ho)if(ao){if(mo&&go!=mo)return _o;mo=go}else{if(mo&&go!=mo&&ho!=mo)return _o;mo||(mo=go)}else mo||(mo=lo[0].id());var ko=function(No){for(var Mo=No,Bo=[No],Fo,Lo,Go;yo[Mo].length;)Fo=yo[Mo].shift(),Lo=So[Fo][0],Go=So[Fo][1],Mo!=Go?(yo[Go]=yo[Go].filter(function(Do){return Do!=Fo}),Mo=Go):!ao&&Mo!=Lo&&(yo[Lo]=yo[Lo].filter(function(Do){return Do!=Fo}),Mo=Lo),Bo.unshift(Fo),Bo.unshift(Mo);return Bo},Co=[],$o=[];for($o=ko(mo);$o.length!=1;)yo[$o[0]].length==0?(Co.unshift(lo.getElementById($o.shift())),Co.unshift(lo.getElementById($o.shift()))):$o=ko($o.shift()).concat($o);Co.unshift(lo.getElementById($o.shift()));for(var Ro in yo)if(yo[Ro].length)return _o;return _o.found=!0,_o.trail=this.spawn(Co,!0),_o}},hopcroftTarjanBiconnected=function eo(){var to=this,no={},io=0,so=0,ao=[],lo=[],uo={},ho=function(So,_o){for(var ko=lo.length-1,Co=[],$o=to.spawn();lo[ko].x!=So||lo[ko].y!=_o;)Co.push(lo.pop().edge),ko--;Co.push(lo.pop().edge),Co.forEach(function(Ro){var Oo=Ro.connectedNodes().intersection(to);$o.merge(Ro),Oo.forEach(function(No){var Mo=No.id(),Bo=No.connectedEdges().intersection(to);$o.merge(No),no[Mo].cutVertex?$o.merge(Bo.filter(function(Fo){return Fo.isLoop()})):$o.merge(Bo)})}),ao.push($o)},go=function yo(So,_o,ko){So===ko&&(so+=1),no[_o]={id:io,low:io++,cutVertex:!1};var Co=to.getElementById(_o).connectedEdges().intersection(to);if(Co.size()===0)ao.push(to.spawn(to.getElementById(_o)));else{var $o,Ro,Oo,No;Co.forEach(function(Mo){$o=Mo.source().id(),Ro=Mo.target().id(),Oo=$o===_o?Ro:$o,Oo!==ko&&(No=Mo.id(),uo[No]||(uo[No]=!0,lo.push({x:_o,y:Oo,edge:Mo})),Oo in no?no[_o].low=Math.min(no[_o].low,no[Oo].id):(yo(So,Oo,_o),no[_o].low=Math.min(no[_o].low,no[Oo].low),no[_o].id<=no[Oo].low&&(no[_o].cutVertex=!0,ho(_o,Oo))))})}};to.forEach(function(yo){if(yo.isNode()){var So=yo.id();So in no||(so=0,go(So,So),no[So].cutVertex=so>1)}});var mo=Object.keys(no).filter(function(yo){return no[yo].cutVertex}).map(function(yo){return to.getElementById(yo)});return{cut:to.spawn(mo),components:ao}},hopcroftTarjanBiconnected$1={hopcroftTarjanBiconnected,htbc:hopcroftTarjanBiconnected,htb:hopcroftTarjanBiconnected,hopcroftTarjanBiconnectedComponents:hopcroftTarjanBiconnected},tarjanStronglyConnected=function eo(){var to=this,no={},io=0,so=[],ao=[],lo=to.spawn(to),uo=function ho(go){ao.push(go),no[go]={index:io,low:io++,explored:!1};var mo=to.getElementById(go).connectedEdges().intersection(to);if(mo.forEach(function(Co){var $o=Co.target().id();$o!==go&&($o in no||ho($o),no[$o].explored||(no[go].low=Math.min(no[go].low,no[$o].low)))}),no[go].index===no[go].low){for(var yo=to.spawn();;){var So=ao.pop();if(yo.merge(to.getElementById(So)),no[So].low=no[go].index,no[So].explored=!0,So===go)break}var _o=yo.edgesWith(yo),ko=yo.merge(_o);so.push(ko),lo=lo.difference(ko)}};return to.forEach(function(ho){if(ho.isNode()){var go=ho.id();go in no||uo(go)}}),{cut:lo,components:so}},tarjanStronglyConnected$1={tarjanStronglyConnected,tsc:tarjanStronglyConnected,tscc:tarjanStronglyConnected,tarjanStronglyConnectedComponents:tarjanStronglyConnected},elesfn$j={};[elesfn$v,elesfn$u,elesfn$t,elesfn$s,elesfn$r,elesfn$q,elesfn$p,elesfn$o,elesfn$n,elesfn$m,elesfn$l,markovClustering$1,kClustering,hierarchicalClustering$1,affinityPropagation$1,elesfn$k,hopcroftTarjanBiconnected$1,tarjanStronglyConnected$1].forEach(function(eo){extend(elesfn$j,eo)});/*! Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) Licensed under The MIT License (http://opensource.org/licenses/MIT) -*/var STATE_PENDING=0,STATE_FULFILLED=1,STATE_REJECTED=2,api=function eo(to){if(!(this instanceof eo))return new eo(to);this.id="Thenable/1.0.7",this.state=STATE_PENDING,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof to=="function"&&to.call(this,this.fulfill.bind(this),this.reject.bind(this))};api.prototype={fulfill:function eo(to){return deliver(this,STATE_FULFILLED,"fulfillValue",to)},reject:function eo(to){return deliver(this,STATE_REJECTED,"rejectReason",to)},then:function eo(to,no){var io=this,so=new api;return io.onFulfilled.push(resolver(to,so,"fulfill")),io.onRejected.push(resolver(no,so,"reject")),execute(io),so.proxy}};var deliver=function eo(to,no,io,so){return to.state===STATE_PENDING&&(to.state=no,to[io]=so,execute(to)),to},execute=function eo(to){to.state===STATE_FULFILLED?execute_handlers(to,"onFulfilled",to.fulfillValue):to.state===STATE_REJECTED&&execute_handlers(to,"onRejected",to.rejectReason)},execute_handlers=function eo(to,no,io){if(to[no].length!==0){var so=to[no];to[no]=[];var ao=function(){for(var uo=0;uo0}},clearQueue:function eo(){return function(){var no=this,io=no.length!==void 0,so=io?no:[no],ao=this._private.cy||this;if(!ao.styleEnabled())return this;for(var lo=0;lo-1}var _listCacheHas=listCacheHas;function listCacheSet(eo,to){var no=this.__data__,io=_assocIndexOf(no,eo);return io<0?(++this.size,no.push([eo,to])):no[io][1]=to,this}var _listCacheSet=listCacheSet;function ListCache(eo){var to=-1,no=eo==null?0:eo.length;for(this.clear();++to-1&&eo%1==0&&eo0&&this.spawn(so).updateStyle().emit("class"),no},addClass:function eo(to){return this.toggleClass(to,!0)},hasClass:function eo(to){var no=this[0];return no!=null&&no._private.classes.has(to)},toggleClass:function eo(to,no){array(to)||(to=to.match(/\S+/g)||[]);for(var io=this,so=no===void 0,ao=[],lo=0,uo=io.length;lo0&&this.spawn(ao).updateStyle().emit("class"),io},removeClass:function eo(to){return this.toggleClass(to,!1)},flashClass:function eo(to,no){var io=this;if(no==null)no=250;else if(no===0)return io;return io.addClass(to),setTimeout(function(){io.removeClass(to)},no),io}};elesfn$h.className=elesfn$h.classNames=elesfn$h.classes;var tokens={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};tokens.variable="(?:[\\w-.]|(?:\\\\"+tokens.metaChar+"))+";tokens.className="(?:[\\w-]|(?:\\\\"+tokens.metaChar+"))+";tokens.value=tokens.string+"|"+tokens.number;tokens.id=tokens.variable;(function(){var eo,to,no;for(eo=tokens.comparatorOp.split("|"),no=0;no=0)&&to!=="="&&(tokens.comparatorOp+="|\\!"+to)})();var newQuery=function eo(){return{checks:[]}},Type={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},stateSelectors=[{selector:":selected",matches:function eo(to){return to.selected()}},{selector:":unselected",matches:function eo(to){return!to.selected()}},{selector:":selectable",matches:function eo(to){return to.selectable()}},{selector:":unselectable",matches:function eo(to){return!to.selectable()}},{selector:":locked",matches:function eo(to){return to.locked()}},{selector:":unlocked",matches:function eo(to){return!to.locked()}},{selector:":visible",matches:function eo(to){return to.visible()}},{selector:":hidden",matches:function eo(to){return!to.visible()}},{selector:":transparent",matches:function eo(to){return to.transparent()}},{selector:":grabbed",matches:function eo(to){return to.grabbed()}},{selector:":free",matches:function eo(to){return!to.grabbed()}},{selector:":removed",matches:function eo(to){return to.removed()}},{selector:":inside",matches:function eo(to){return!to.removed()}},{selector:":grabbable",matches:function eo(to){return to.grabbable()}},{selector:":ungrabbable",matches:function eo(to){return!to.grabbable()}},{selector:":animated",matches:function eo(to){return to.animated()}},{selector:":unanimated",matches:function eo(to){return!to.animated()}},{selector:":parent",matches:function eo(to){return to.isParent()}},{selector:":childless",matches:function eo(to){return to.isChildless()}},{selector:":child",matches:function eo(to){return to.isChild()}},{selector:":orphan",matches:function eo(to){return to.isOrphan()}},{selector:":nonorphan",matches:function eo(to){return to.isChild()}},{selector:":compound",matches:function eo(to){return to.isNode()?to.isParent():to.source().isParent()||to.target().isParent()}},{selector:":loop",matches:function eo(to){return to.isLoop()}},{selector:":simple",matches:function eo(to){return to.isSimple()}},{selector:":active",matches:function eo(to){return to.active()}},{selector:":inactive",matches:function eo(to){return!to.active()}},{selector:":backgrounding",matches:function eo(to){return to.backgrounding()}},{selector:":nonbackgrounding",matches:function eo(to){return!to.backgrounding()}}].sort(function(eo,to){return descending(eo.selector,to.selector)}),lookup=function(){for(var eo={},to,no=0;no0&&mo.edgeCount>0)return warn("The selector `"+to+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(mo.edgeCount>1)return warn("The selector `"+to+"` is invalid because it uses multiple edge selectors"),!1;mo.edgeCount===1&&warn("The selector `"+to+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString=function eo(){if(this.toStringCache!=null)return this.toStringCache;for(var to=function(mo){return mo??""},no=function(mo){return string(mo)?'"'+mo+'"':to(mo)},io=function(mo){return" "+mo+" "},so=function(mo,yo){var So=mo.type,_o=mo.value;switch(So){case Type.GROUP:{var ko=to(_o);return ko.substring(0,ko.length-1)}case Type.DATA_COMPARE:{var Co=mo.field,$o=mo.operator;return"["+Co+io(to($o))+no(_o)+"]"}case Type.DATA_BOOL:{var Ro=mo.operator,Oo=mo.field;return"["+to(Ro)+Oo+"]"}case Type.DATA_EXIST:{var No=mo.field;return"["+No+"]"}case Type.META_COMPARE:{var Mo=mo.operator,Bo=mo.field;return"[["+Bo+io(to(Mo))+no(_o)+"]]"}case Type.STATE:return _o;case Type.ID:return"#"+_o;case Type.CLASS:return"."+_o;case Type.PARENT:case Type.CHILD:return ao(mo.parent,yo)+io(">")+ao(mo.child,yo);case Type.ANCESTOR:case Type.DESCENDANT:return ao(mo.ancestor,yo)+" "+ao(mo.descendant,yo);case Type.COMPOUND_SPLIT:{var Po=ao(mo.left,yo),Lo=ao(mo.subject,yo),Go=ao(mo.right,yo);return Po+(Po.length>0?" ":"")+Lo+Go}case Type.TRUE:return""}},ao=function(mo,yo){return mo.checks.reduce(function(So,_o,ko){return So+(yo===mo&&ko===0?"$":"")+so(_o,yo)},"")},lo="",uo=0;uo1&&uo=0&&(no=no.replace("!",""),yo=!0),no.indexOf("@")>=0&&(no=no.replace("@",""),mo=!0),(ao||uo||mo)&&(ho=!ao&&!lo?"":""+to,go=""+io),mo&&(to=ho=ho.toLowerCase(),io=go=go.toLowerCase()),no){case"*=":so=ho.indexOf(go)>=0;break;case"$=":so=ho.indexOf(go,ho.length-go.length)>=0;break;case"^=":so=ho.indexOf(go)===0;break;case"=":so=to===io;break;case">":So=!0,so=to>io;break;case">=":So=!0,so=to>=io;break;case"<":So=!0,so=to0;){var mo=so.shift();to(mo),ao.add(mo.id()),uo&&io(so,ao,mo)}return eo}function addChildren(eo,to,no){if(no.isParent())for(var io=no._private.children,so=0;so1&&arguments[1]!==void 0?arguments[1]:!0;return forEachCompound(this,eo,to,addChildren)};function addParent(eo,to,no){if(no.isChild()){var io=no._private.parent;to.has(io.id())||eo.push(io)}}elesfn$f.forEachUp=function(eo){var to=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return forEachCompound(this,eo,to,addParent)};function addParentAndChildren(eo,to,no){addParent(eo,to,no),addChildren(eo,to,no)}elesfn$f.forEachUpAndDown=function(eo){var to=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return forEachCompound(this,eo,to,addParentAndChildren)};elesfn$f.ancestors=elesfn$f.parents;var fn$5,elesfn$e;fn$5=elesfn$e={data:define.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:define.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:define.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:define.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:define.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:define.removeData({field:"rscratch",triggerEvent:!1}),id:function eo(){var to=this[0];if(to)return to._private.data.id}};fn$5.attr=fn$5.data;fn$5.removeAttr=fn$5.removeData;var data=elesfn$e,elesfn$d={};function defineDegreeFunction(eo){return function(to){var no=this;if(to===void 0&&(to=!0),no.length!==0)if(no.isNode()&&!no.removed()){for(var io=0,so=no[0],ao=so._private.edges,lo=0;loto}),minIndegree:defineDegreeBoundsFunction("indegree",function(eo,to){return eoto}),minOutdegree:defineDegreeBoundsFunction("outdegree",function(eo,to){return eoto})});extend(elesfn$d,{totalDegree:function eo(to){for(var no=0,io=this.nodes(),so=0;so0,So=yo;yo&&(mo=mo[0]);var _o=So?mo.position():{x:0,y:0};no!==void 0?go.position(to,no+_o[to]):ao!==void 0&&go.position({x:ao.x+_o.x,y:ao.y+_o.y})}else{var ko=io.position(),Co=uo?io.parent():null,$o=Co&&Co.length>0,Ro=$o;$o&&(Co=Co[0]);var Oo=Ro?Co.position():{x:0,y:0};return ao={x:ko.x-Oo.x,y:ko.y-Oo.y},to===void 0?ao:ao[to]}else if(!lo)return;return this}};fn$4.modelPosition=fn$4.point=fn$4.position;fn$4.modelPositions=fn$4.points=fn$4.positions;fn$4.renderedPoint=fn$4.renderedPosition;fn$4.relativePoint=fn$4.relativePosition;var position=elesfn$c,fn$3,elesfn$b;fn$3=elesfn$b={};elesfn$b.renderedBoundingBox=function(eo){var to=this.boundingBox(eo),no=this.cy(),io=no.zoom(),so=no.pan(),ao=to.x1*io+so.x,lo=to.x2*io+so.x,uo=to.y1*io+so.y,ho=to.y2*io+so.y;return{x1:ao,x2:lo,y1:uo,y2:ho,w:lo-ao,h:ho-uo}};elesfn$b.dirtyCompoundBoundsCache=function(){var eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,to=this.cy();return!to.styleEnabled()||!to.hasCompoundNodes()?this:(this.forEachUp(function(no){if(no.isParent()){var io=no._private;io.compoundBoundsClean=!1,io.bbCache=null,eo||no.emitAndNotify("bounds")}}),this)};elesfn$b.updateCompoundBounds=function(){var eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,to=this.cy();if(!to.styleEnabled()||!to.hasCompoundNodes())return this;if(!eo&&to.batching())return this;function no(lo){if(!lo.isParent())return;var uo=lo._private,ho=lo.children(),go=lo.pstyle("compound-sizing-wrt-labels").value==="include",mo={width:{val:lo.pstyle("min-width").pfValue,left:lo.pstyle("min-width-bias-left"),right:lo.pstyle("min-width-bias-right")},height:{val:lo.pstyle("min-height").pfValue,top:lo.pstyle("min-height-bias-top"),bottom:lo.pstyle("min-height-bias-bottom")}},yo=ho.boundingBox({includeLabels:go,includeOverlays:!1,useCache:!1}),So=uo.position;(yo.w===0||yo.h===0)&&(yo={w:lo.pstyle("width").pfValue,h:lo.pstyle("height").pfValue},yo.x1=So.x-yo.w/2,yo.x2=So.x+yo.w/2,yo.y1=So.y-yo.h/2,yo.y2=So.y+yo.h/2);function _o(Do,Uo,Ho){var Yo=0,qo=0,Jo=Uo+Ho;return Do>0&&Jo>0&&(Yo=Uo/Jo*Do,qo=Ho/Jo*Do),{biasDiff:Yo,biasComplementDiff:qo}}function ko(Do,Uo,Ho,Yo){if(Ho.units==="%")switch(Yo){case"width":return Do>0?Ho.pfValue*Do:0;case"height":return Uo>0?Ho.pfValue*Uo:0;case"average":return Do>0&&Uo>0?Ho.pfValue*(Do+Uo)/2:0;case"min":return Do>0&&Uo>0?Do>Uo?Ho.pfValue*Uo:Ho.pfValue*Do:0;case"max":return Do>0&&Uo>0?Do>Uo?Ho.pfValue*Do:Ho.pfValue*Uo:0;default:return 0}else return Ho.units==="px"?Ho.pfValue:0}var Co=mo.width.left.value;mo.width.left.units==="px"&&mo.width.val>0&&(Co=Co*100/mo.width.val);var $o=mo.width.right.value;mo.width.right.units==="px"&&mo.width.val>0&&($o=$o*100/mo.width.val);var Ro=mo.height.top.value;mo.height.top.units==="px"&&mo.height.val>0&&(Ro=Ro*100/mo.height.val);var Oo=mo.height.bottom.value;mo.height.bottom.units==="px"&&mo.height.val>0&&(Oo=Oo*100/mo.height.val);var No=_o(mo.width.val-yo.w,Co,$o),Mo=No.biasDiff,Bo=No.biasComplementDiff,Po=_o(mo.height.val-yo.h,Ro,Oo),Lo=Po.biasDiff,Go=Po.biasComplementDiff;uo.autoPadding=ko(yo.w,yo.h,lo.pstyle("padding"),lo.pstyle("padding-relative-to").value),uo.autoWidth=Math.max(yo.w,mo.width.val),So.x=(-Mo+yo.x1+yo.x2+Bo)/2,uo.autoHeight=Math.max(yo.h,mo.height.val),So.y=(-Lo+yo.y1+yo.y2+Go)/2}for(var io=0;ioto.x2?so:to.x2,to.y1=ioto.y2?ao:to.y2,to.w=to.x2-to.x1,to.h=to.y2-to.y1)},updateBoundsFromBox=function eo(to,no){return no==null?to:updateBounds(to,no.x1,no.y1,no.x2,no.y2)},prefixedProperty=function eo(to,no,io){return getPrefixedProperty(to,no,io)},updateBoundsFromArrow=function eo(to,no,io){if(!no.cy().headless()){var so=no._private,ao=so.rstyle,lo=ao.arrowWidth/2,uo=no.pstyle(io+"-arrow-shape").value,ho,go;if(uo!=="none"){io==="source"?(ho=ao.srcX,go=ao.srcY):io==="target"?(ho=ao.tgtX,go=ao.tgtY):(ho=ao.midX,go=ao.midY);var mo=so.arrowBounds=so.arrowBounds||{},yo=mo[io]=mo[io]||{};yo.x1=ho-lo,yo.y1=go-lo,yo.x2=ho+lo,yo.y2=go+lo,yo.w=yo.x2-yo.x1,yo.h=yo.y2-yo.y1,expandBoundingBox(yo,1),updateBounds(to,yo.x1,yo.y1,yo.x2,yo.y2)}}},updateBoundsFromLabel=function eo(to,no,io){if(!no.cy().headless()){var so;io?so=io+"-":so="";var ao=no._private,lo=ao.rstyle,uo=no.pstyle(so+"label").strValue;if(uo){var ho=no.pstyle("text-halign"),go=no.pstyle("text-valign"),mo=prefixedProperty(lo,"labelWidth",io),yo=prefixedProperty(lo,"labelHeight",io),So=prefixedProperty(lo,"labelX",io),_o=prefixedProperty(lo,"labelY",io),ko=no.pstyle(so+"text-margin-x").pfValue,Co=no.pstyle(so+"text-margin-y").pfValue,$o=no.isEdge(),Ro=no.pstyle(so+"text-rotation"),Oo=no.pstyle("text-outline-width").pfValue,No=no.pstyle("text-border-width").pfValue,Mo=No/2,Bo=no.pstyle("text-background-padding").pfValue,Po=2,Lo=yo,Go=mo,Do=Go/2,Uo=Lo/2,Ho,Yo,qo,Jo;if($o)Ho=So-Do,Yo=So+Do,qo=_o-Uo,Jo=_o+Uo;else{switch(ho.value){case"left":Ho=So-Go,Yo=So;break;case"center":Ho=So-Do,Yo=So+Do;break;case"right":Ho=So,Yo=So+Go;break}switch(go.value){case"top":qo=_o-Lo,Jo=_o;break;case"center":qo=_o-Uo,Jo=_o+Uo;break;case"bottom":qo=_o,Jo=_o+Lo;break}}Ho+=ko-Math.max(Oo,Mo)-Bo-Po,Yo+=ko+Math.max(Oo,Mo)+Bo+Po,qo+=Co-Math.max(Oo,Mo)-Bo-Po,Jo+=Co+Math.max(Oo,Mo)+Bo+Po;var ps=io||"main",Qo=ao.labelBounds,hs=Qo[ps]=Qo[ps]||{};hs.x1=Ho,hs.y1=qo,hs.x2=Yo,hs.y2=Jo,hs.w=Yo-Ho,hs.h=Jo-qo;var gs=$o&&Ro.strValue==="autorotate",ys=Ro.pfValue!=null&&Ro.pfValue!==0;if(gs||ys){var vs=gs?prefixedProperty(ao.rstyle,"labelAngle",io):Ro.pfValue,ks=Math.cos(vs),Os=Math.sin(vs),Ts=(Ho+Yo)/2,Xs=(qo+Jo)/2;if(!$o){switch(ho.value){case"left":Ts=Yo;break;case"right":Ts=Ho;break}switch(go.value){case"top":Xs=Jo;break;case"bottom":Xs=qo;break}}var Ws=function(yl,Gl){return yl=yl-Ts,Gl=Gl-Xs,{x:yl*ks-Gl*Os+Ts,y:yl*Os+Gl*ks+Xs}},Ps=Ws(Ho,qo),qs=Ws(Ho,Jo),ga=Ws(Yo,qo),Fs=Ws(Yo,Jo);Ho=Math.min(Ps.x,qs.x,ga.x,Fs.x),Yo=Math.max(Ps.x,qs.x,ga.x,Fs.x),qo=Math.min(Ps.y,qs.y,ga.y,Fs.y),Jo=Math.max(Ps.y,qs.y,ga.y,Fs.y)}var Js=ps+"Rot",Vs=Qo[Js]=Qo[Js]||{};Vs.x1=Ho,Vs.y1=qo,Vs.x2=Yo,Vs.y2=Jo,Vs.w=Yo-Ho,Vs.h=Jo-qo,updateBounds(to,Ho,qo,Yo,Jo),updateBounds(ao.labelBounds.all,Ho,qo,Yo,Jo)}return to}},updateBoundsFromOutline=function eo(to,no){if(!no.cy().headless()){var io=no.pstyle("outline-opacity").value,so=no.pstyle("outline-width").value;if(io>0&&so>0){var ao=no.pstyle("outline-offset").value,lo=no.pstyle("shape").value,uo=so+ao,ho=(to.w+uo*2)/to.w,go=(to.h+uo*2)/to.h,mo=0,yo=0;["diamond","pentagon","round-triangle"].includes(lo)?(ho=(to.w+uo*2.4)/to.w,yo=-uo/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(lo)?ho=(to.w+uo*2.4)/to.w:lo==="star"?(ho=(to.w+uo*2.8)/to.w,go=(to.h+uo*2.6)/to.h,yo=-uo/3.8):lo==="triangle"?(ho=(to.w+uo*2.8)/to.w,go=(to.h+uo*2.4)/to.h,yo=-uo/1.4):lo==="vee"&&(ho=(to.w+uo*4.4)/to.w,go=(to.h+uo*3.8)/to.h,yo=-uo*.5);var So=to.h*go-to.h,_o=to.w*ho-to.w;if(expandBoundingBoxSides(to,[Math.ceil(So/2),Math.ceil(_o/2)]),mo!=0||yo!==0){var ko=shiftBoundingBox(to,mo,yo);updateBoundingBox(to,ko)}}}},boundingBoxImpl=function eo(to,no){var io=to._private.cy,so=io.styleEnabled(),ao=io.headless(),lo=makeBoundingBox(),uo=to._private,ho=to.isNode(),go=to.isEdge(),mo,yo,So,_o,ko,Co,$o=uo.rstyle,Ro=ho&&so?to.pstyle("bounds-expansion").pfValue:[0],Oo=function(du){return du.pstyle("display").value!=="none"},No=!so||Oo(to)&&(!go||Oo(to.source())&&Oo(to.target()));if(No){var Mo=0,Bo=0;so&&no.includeOverlays&&(Mo=to.pstyle("overlay-opacity").value,Mo!==0&&(Bo=to.pstyle("overlay-padding").value));var Po=0,Lo=0;so&&no.includeUnderlays&&(Po=to.pstyle("underlay-opacity").value,Po!==0&&(Lo=to.pstyle("underlay-padding").value));var Go=Math.max(Bo,Lo),Do=0,Uo=0;if(so&&(Do=to.pstyle("width").pfValue,Uo=Do/2),ho&&no.includeNodes){var Ho=to.position();ko=Ho.x,Co=Ho.y;var Yo=to.outerWidth(),qo=Yo/2,Jo=to.outerHeight(),ps=Jo/2;mo=ko-qo,yo=ko+qo,So=Co-ps,_o=Co+ps,updateBounds(lo,mo,So,yo,_o),so&&no.includeOutlines&&updateBoundsFromOutline(lo,to)}else if(go&&no.includeEdges)if(so&&!ao){var Qo=to.pstyle("curve-style").strValue;if(mo=Math.min($o.srcX,$o.midX,$o.tgtX),yo=Math.max($o.srcX,$o.midX,$o.tgtX),So=Math.min($o.srcY,$o.midY,$o.tgtY),_o=Math.max($o.srcY,$o.midY,$o.tgtY),mo-=Uo,yo+=Uo,So-=Uo,_o+=Uo,updateBounds(lo,mo,So,yo,_o),Qo==="haystack"){var hs=$o.haystackPts;if(hs&&hs.length===2){if(mo=hs[0].x,So=hs[0].y,yo=hs[1].x,_o=hs[1].y,mo>yo){var gs=mo;mo=yo,yo=gs}if(So>_o){var ys=So;So=_o,_o=ys}updateBounds(lo,mo-Uo,So-Uo,yo+Uo,_o+Uo)}}else if(Qo==="bezier"||Qo==="unbundled-bezier"||Qo.endsWith("segments")||Qo.endsWith("taxi")){var vs;switch(Qo){case"bezier":case"unbundled-bezier":vs=$o.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":vs=$o.linePts;break}if(vs!=null)for(var ks=0;ksyo){var qs=mo;mo=yo,yo=qs}if(So>_o){var ga=So;So=_o,_o=ga}mo-=Uo,yo+=Uo,So-=Uo,_o+=Uo,updateBounds(lo,mo,So,yo,_o)}if(so&&no.includeEdges&&go&&(updateBoundsFromArrow(lo,to,"mid-source"),updateBoundsFromArrow(lo,to,"mid-target"),updateBoundsFromArrow(lo,to,"source"),updateBoundsFromArrow(lo,to,"target")),so){var Fs=to.pstyle("ghost").value==="yes";if(Fs){var Js=to.pstyle("ghost-offset-x").pfValue,Vs=to.pstyle("ghost-offset-y").pfValue;updateBounds(lo,lo.x1+Js,lo.y1+Vs,lo.x2+Js,lo.y2+Vs)}}var El=uo.bodyBounds=uo.bodyBounds||{};assignBoundingBox(El,lo),expandBoundingBoxSides(El,Ro),expandBoundingBox(El,1),so&&(mo=lo.x1,yo=lo.x2,So=lo.y1,_o=lo.y2,updateBounds(lo,mo-Go,So-Go,yo+Go,_o+Go));var yl=uo.overlayBounds=uo.overlayBounds||{};assignBoundingBox(yl,lo),expandBoundingBoxSides(yl,Ro),expandBoundingBox(yl,1);var Gl=uo.labelBounds=uo.labelBounds||{};Gl.all!=null?clearBoundingBox(Gl.all):Gl.all=makeBoundingBox(),so&&no.includeLabels&&(no.includeMainLabels&&updateBoundsFromLabel(lo,to,null),go&&(no.includeSourceLabels&&updateBoundsFromLabel(lo,to,"source"),no.includeTargetLabels&&updateBoundsFromLabel(lo,to,"target")))}return lo.x1=noninf(lo.x1),lo.y1=noninf(lo.y1),lo.x2=noninf(lo.x2),lo.y2=noninf(lo.y2),lo.w=noninf(lo.x2-lo.x1),lo.h=noninf(lo.y2-lo.y1),lo.w>0&&lo.h>0&&No&&(expandBoundingBoxSides(lo,Ro),expandBoundingBox(lo,1)),lo},getKey=function eo(to){var no=0,io=function(lo){return(lo?1:0)<0}},clearQueue:function eo(){return function(){var no=this,io=no.length!==void 0,so=io?no:[no],ao=this._private.cy||this;if(!ao.styleEnabled())return this;for(var lo=0;lo-1}var _listCacheHas=listCacheHas;function listCacheSet(eo,to){var no=this.__data__,io=_assocIndexOf(no,eo);return io<0?(++this.size,no.push([eo,to])):no[io][1]=to,this}var _listCacheSet=listCacheSet;function ListCache(eo){var to=-1,no=eo==null?0:eo.length;for(this.clear();++to-1&&eo%1==0&&eo0&&this.spawn(so).updateStyle().emit("class"),no},addClass:function eo(to){return this.toggleClass(to,!0)},hasClass:function eo(to){var no=this[0];return no!=null&&no._private.classes.has(to)},toggleClass:function eo(to,no){array(to)||(to=to.match(/\S+/g)||[]);for(var io=this,so=no===void 0,ao=[],lo=0,uo=io.length;lo0&&this.spawn(ao).updateStyle().emit("class"),io},removeClass:function eo(to){return this.toggleClass(to,!1)},flashClass:function eo(to,no){var io=this;if(no==null)no=250;else if(no===0)return io;return io.addClass(to),setTimeout(function(){io.removeClass(to)},no),io}};elesfn$h.className=elesfn$h.classNames=elesfn$h.classes;var tokens={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};tokens.variable="(?:[\\w-.]|(?:\\\\"+tokens.metaChar+"))+";tokens.className="(?:[\\w-]|(?:\\\\"+tokens.metaChar+"))+";tokens.value=tokens.string+"|"+tokens.number;tokens.id=tokens.variable;(function(){var eo,to,no;for(eo=tokens.comparatorOp.split("|"),no=0;no=0)&&to!=="="&&(tokens.comparatorOp+="|\\!"+to)})();var newQuery=function eo(){return{checks:[]}},Type={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},stateSelectors=[{selector:":selected",matches:function eo(to){return to.selected()}},{selector:":unselected",matches:function eo(to){return!to.selected()}},{selector:":selectable",matches:function eo(to){return to.selectable()}},{selector:":unselectable",matches:function eo(to){return!to.selectable()}},{selector:":locked",matches:function eo(to){return to.locked()}},{selector:":unlocked",matches:function eo(to){return!to.locked()}},{selector:":visible",matches:function eo(to){return to.visible()}},{selector:":hidden",matches:function eo(to){return!to.visible()}},{selector:":transparent",matches:function eo(to){return to.transparent()}},{selector:":grabbed",matches:function eo(to){return to.grabbed()}},{selector:":free",matches:function eo(to){return!to.grabbed()}},{selector:":removed",matches:function eo(to){return to.removed()}},{selector:":inside",matches:function eo(to){return!to.removed()}},{selector:":grabbable",matches:function eo(to){return to.grabbable()}},{selector:":ungrabbable",matches:function eo(to){return!to.grabbable()}},{selector:":animated",matches:function eo(to){return to.animated()}},{selector:":unanimated",matches:function eo(to){return!to.animated()}},{selector:":parent",matches:function eo(to){return to.isParent()}},{selector:":childless",matches:function eo(to){return to.isChildless()}},{selector:":child",matches:function eo(to){return to.isChild()}},{selector:":orphan",matches:function eo(to){return to.isOrphan()}},{selector:":nonorphan",matches:function eo(to){return to.isChild()}},{selector:":compound",matches:function eo(to){return to.isNode()?to.isParent():to.source().isParent()||to.target().isParent()}},{selector:":loop",matches:function eo(to){return to.isLoop()}},{selector:":simple",matches:function eo(to){return to.isSimple()}},{selector:":active",matches:function eo(to){return to.active()}},{selector:":inactive",matches:function eo(to){return!to.active()}},{selector:":backgrounding",matches:function eo(to){return to.backgrounding()}},{selector:":nonbackgrounding",matches:function eo(to){return!to.backgrounding()}}].sort(function(eo,to){return descending(eo.selector,to.selector)}),lookup=function(){for(var eo={},to,no=0;no0&&mo.edgeCount>0)return warn("The selector `"+to+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(mo.edgeCount>1)return warn("The selector `"+to+"` is invalid because it uses multiple edge selectors"),!1;mo.edgeCount===1&&warn("The selector `"+to+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString=function eo(){if(this.toStringCache!=null)return this.toStringCache;for(var to=function(mo){return mo??""},no=function(mo){return string(mo)?'"'+mo+'"':to(mo)},io=function(mo){return" "+mo+" "},so=function(mo,yo){var So=mo.type,_o=mo.value;switch(So){case Type.GROUP:{var ko=to(_o);return ko.substring(0,ko.length-1)}case Type.DATA_COMPARE:{var Co=mo.field,$o=mo.operator;return"["+Co+io(to($o))+no(_o)+"]"}case Type.DATA_BOOL:{var Ro=mo.operator,Oo=mo.field;return"["+to(Ro)+Oo+"]"}case Type.DATA_EXIST:{var No=mo.field;return"["+No+"]"}case Type.META_COMPARE:{var Mo=mo.operator,Bo=mo.field;return"[["+Bo+io(to(Mo))+no(_o)+"]]"}case Type.STATE:return _o;case Type.ID:return"#"+_o;case Type.CLASS:return"."+_o;case Type.PARENT:case Type.CHILD:return ao(mo.parent,yo)+io(">")+ao(mo.child,yo);case Type.ANCESTOR:case Type.DESCENDANT:return ao(mo.ancestor,yo)+" "+ao(mo.descendant,yo);case Type.COMPOUND_SPLIT:{var Fo=ao(mo.left,yo),Lo=ao(mo.subject,yo),Go=ao(mo.right,yo);return Fo+(Fo.length>0?" ":"")+Lo+Go}case Type.TRUE:return""}},ao=function(mo,yo){return mo.checks.reduce(function(So,_o,ko){return So+(yo===mo&&ko===0?"$":"")+so(_o,yo)},"")},lo="",uo=0;uo1&&uo=0&&(no=no.replace("!",""),yo=!0),no.indexOf("@")>=0&&(no=no.replace("@",""),mo=!0),(ao||uo||mo)&&(ho=!ao&&!lo?"":""+to,go=""+io),mo&&(to=ho=ho.toLowerCase(),io=go=go.toLowerCase()),no){case"*=":so=ho.indexOf(go)>=0;break;case"$=":so=ho.indexOf(go,ho.length-go.length)>=0;break;case"^=":so=ho.indexOf(go)===0;break;case"=":so=to===io;break;case">":So=!0,so=to>io;break;case">=":So=!0,so=to>=io;break;case"<":So=!0,so=to0;){var mo=so.shift();to(mo),ao.add(mo.id()),uo&&io(so,ao,mo)}return eo}function addChildren(eo,to,no){if(no.isParent())for(var io=no._private.children,so=0;so1&&arguments[1]!==void 0?arguments[1]:!0;return forEachCompound(this,eo,to,addChildren)};function addParent(eo,to,no){if(no.isChild()){var io=no._private.parent;to.has(io.id())||eo.push(io)}}elesfn$f.forEachUp=function(eo){var to=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return forEachCompound(this,eo,to,addParent)};function addParentAndChildren(eo,to,no){addParent(eo,to,no),addChildren(eo,to,no)}elesfn$f.forEachUpAndDown=function(eo){var to=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return forEachCompound(this,eo,to,addParentAndChildren)};elesfn$f.ancestors=elesfn$f.parents;var fn$5,elesfn$e;fn$5=elesfn$e={data:define.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:define.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:define.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:define.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:define.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:define.removeData({field:"rscratch",triggerEvent:!1}),id:function eo(){var to=this[0];if(to)return to._private.data.id}};fn$5.attr=fn$5.data;fn$5.removeAttr=fn$5.removeData;var data=elesfn$e,elesfn$d={};function defineDegreeFunction(eo){return function(to){var no=this;if(to===void 0&&(to=!0),no.length!==0)if(no.isNode()&&!no.removed()){for(var io=0,so=no[0],ao=so._private.edges,lo=0;loto}),minIndegree:defineDegreeBoundsFunction("indegree",function(eo,to){return eoto}),minOutdegree:defineDegreeBoundsFunction("outdegree",function(eo,to){return eoto})});extend(elesfn$d,{totalDegree:function eo(to){for(var no=0,io=this.nodes(),so=0;so0,So=yo;yo&&(mo=mo[0]);var _o=So?mo.position():{x:0,y:0};no!==void 0?go.position(to,no+_o[to]):ao!==void 0&&go.position({x:ao.x+_o.x,y:ao.y+_o.y})}else{var ko=io.position(),Co=uo?io.parent():null,$o=Co&&Co.length>0,Ro=$o;$o&&(Co=Co[0]);var Oo=Ro?Co.position():{x:0,y:0};return ao={x:ko.x-Oo.x,y:ko.y-Oo.y},to===void 0?ao:ao[to]}else if(!lo)return;return this}};fn$4.modelPosition=fn$4.point=fn$4.position;fn$4.modelPositions=fn$4.points=fn$4.positions;fn$4.renderedPoint=fn$4.renderedPosition;fn$4.relativePoint=fn$4.relativePosition;var position=elesfn$c,fn$3,elesfn$b;fn$3=elesfn$b={};elesfn$b.renderedBoundingBox=function(eo){var to=this.boundingBox(eo),no=this.cy(),io=no.zoom(),so=no.pan(),ao=to.x1*io+so.x,lo=to.x2*io+so.x,uo=to.y1*io+so.y,ho=to.y2*io+so.y;return{x1:ao,x2:lo,y1:uo,y2:ho,w:lo-ao,h:ho-uo}};elesfn$b.dirtyCompoundBoundsCache=function(){var eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,to=this.cy();return!to.styleEnabled()||!to.hasCompoundNodes()?this:(this.forEachUp(function(no){if(no.isParent()){var io=no._private;io.compoundBoundsClean=!1,io.bbCache=null,eo||no.emitAndNotify("bounds")}}),this)};elesfn$b.updateCompoundBounds=function(){var eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,to=this.cy();if(!to.styleEnabled()||!to.hasCompoundNodes())return this;if(!eo&&to.batching())return this;function no(lo){if(!lo.isParent())return;var uo=lo._private,ho=lo.children(),go=lo.pstyle("compound-sizing-wrt-labels").value==="include",mo={width:{val:lo.pstyle("min-width").pfValue,left:lo.pstyle("min-width-bias-left"),right:lo.pstyle("min-width-bias-right")},height:{val:lo.pstyle("min-height").pfValue,top:lo.pstyle("min-height-bias-top"),bottom:lo.pstyle("min-height-bias-bottom")}},yo=ho.boundingBox({includeLabels:go,includeOverlays:!1,useCache:!1}),So=uo.position;(yo.w===0||yo.h===0)&&(yo={w:lo.pstyle("width").pfValue,h:lo.pstyle("height").pfValue},yo.x1=So.x-yo.w/2,yo.x2=So.x+yo.w/2,yo.y1=So.y-yo.h/2,yo.y2=So.y+yo.h/2);function _o(Do,Uo,Ho){var Yo=0,qo=0,Jo=Uo+Ho;return Do>0&&Jo>0&&(Yo=Uo/Jo*Do,qo=Ho/Jo*Do),{biasDiff:Yo,biasComplementDiff:qo}}function ko(Do,Uo,Ho,Yo){if(Ho.units==="%")switch(Yo){case"width":return Do>0?Ho.pfValue*Do:0;case"height":return Uo>0?Ho.pfValue*Uo:0;case"average":return Do>0&&Uo>0?Ho.pfValue*(Do+Uo)/2:0;case"min":return Do>0&&Uo>0?Do>Uo?Ho.pfValue*Uo:Ho.pfValue*Do:0;case"max":return Do>0&&Uo>0?Do>Uo?Ho.pfValue*Do:Ho.pfValue*Uo:0;default:return 0}else return Ho.units==="px"?Ho.pfValue:0}var Co=mo.width.left.value;mo.width.left.units==="px"&&mo.width.val>0&&(Co=Co*100/mo.width.val);var $o=mo.width.right.value;mo.width.right.units==="px"&&mo.width.val>0&&($o=$o*100/mo.width.val);var Ro=mo.height.top.value;mo.height.top.units==="px"&&mo.height.val>0&&(Ro=Ro*100/mo.height.val);var Oo=mo.height.bottom.value;mo.height.bottom.units==="px"&&mo.height.val>0&&(Oo=Oo*100/mo.height.val);var No=_o(mo.width.val-yo.w,Co,$o),Mo=No.biasDiff,Bo=No.biasComplementDiff,Fo=_o(mo.height.val-yo.h,Ro,Oo),Lo=Fo.biasDiff,Go=Fo.biasComplementDiff;uo.autoPadding=ko(yo.w,yo.h,lo.pstyle("padding"),lo.pstyle("padding-relative-to").value),uo.autoWidth=Math.max(yo.w,mo.width.val),So.x=(-Mo+yo.x1+yo.x2+Bo)/2,uo.autoHeight=Math.max(yo.h,mo.height.val),So.y=(-Lo+yo.y1+yo.y2+Go)/2}for(var io=0;ioto.x2?so:to.x2,to.y1=ioto.y2?ao:to.y2,to.w=to.x2-to.x1,to.h=to.y2-to.y1)},updateBoundsFromBox=function eo(to,no){return no==null?to:updateBounds(to,no.x1,no.y1,no.x2,no.y2)},prefixedProperty=function eo(to,no,io){return getPrefixedProperty(to,no,io)},updateBoundsFromArrow=function eo(to,no,io){if(!no.cy().headless()){var so=no._private,ao=so.rstyle,lo=ao.arrowWidth/2,uo=no.pstyle(io+"-arrow-shape").value,ho,go;if(uo!=="none"){io==="source"?(ho=ao.srcX,go=ao.srcY):io==="target"?(ho=ao.tgtX,go=ao.tgtY):(ho=ao.midX,go=ao.midY);var mo=so.arrowBounds=so.arrowBounds||{},yo=mo[io]=mo[io]||{};yo.x1=ho-lo,yo.y1=go-lo,yo.x2=ho+lo,yo.y2=go+lo,yo.w=yo.x2-yo.x1,yo.h=yo.y2-yo.y1,expandBoundingBox(yo,1),updateBounds(to,yo.x1,yo.y1,yo.x2,yo.y2)}}},updateBoundsFromLabel=function eo(to,no,io){if(!no.cy().headless()){var so;io?so=io+"-":so="";var ao=no._private,lo=ao.rstyle,uo=no.pstyle(so+"label").strValue;if(uo){var ho=no.pstyle("text-halign"),go=no.pstyle("text-valign"),mo=prefixedProperty(lo,"labelWidth",io),yo=prefixedProperty(lo,"labelHeight",io),So=prefixedProperty(lo,"labelX",io),_o=prefixedProperty(lo,"labelY",io),ko=no.pstyle(so+"text-margin-x").pfValue,Co=no.pstyle(so+"text-margin-y").pfValue,$o=no.isEdge(),Ro=no.pstyle(so+"text-rotation"),Oo=no.pstyle("text-outline-width").pfValue,No=no.pstyle("text-border-width").pfValue,Mo=No/2,Bo=no.pstyle("text-background-padding").pfValue,Fo=2,Lo=yo,Go=mo,Do=Go/2,Uo=Lo/2,Ho,Yo,qo,Jo;if($o)Ho=So-Do,Yo=So+Do,qo=_o-Uo,Jo=_o+Uo;else{switch(ho.value){case"left":Ho=So-Go,Yo=So;break;case"center":Ho=So-Do,Yo=So+Do;break;case"right":Ho=So,Yo=So+Go;break}switch(go.value){case"top":qo=_o-Lo,Jo=_o;break;case"center":qo=_o-Uo,Jo=_o+Uo;break;case"bottom":qo=_o,Jo=_o+Lo;break}}Ho+=ko-Math.max(Oo,Mo)-Bo-Fo,Yo+=ko+Math.max(Oo,Mo)+Bo+Fo,qo+=Co-Math.max(Oo,Mo)-Bo-Fo,Jo+=Co+Math.max(Oo,Mo)+Bo+Fo;var ps=io||"main",Qo=ao.labelBounds,hs=Qo[ps]=Qo[ps]||{};hs.x1=Ho,hs.y1=qo,hs.x2=Yo,hs.y2=Jo,hs.w=Yo-Ho,hs.h=Jo-qo;var gs=$o&&Ro.strValue==="autorotate",ys=Ro.pfValue!=null&&Ro.pfValue!==0;if(gs||ys){var vs=gs?prefixedProperty(ao.rstyle,"labelAngle",io):Ro.pfValue,ks=Math.cos(vs),Os=Math.sin(vs),Ts=(Ho+Yo)/2,Xs=(qo+Jo)/2;if(!$o){switch(ho.value){case"left":Ts=Yo;break;case"right":Ts=Ho;break}switch(go.value){case"top":Xs=Jo;break;case"bottom":Xs=qo;break}}var Ws=function(yl,Gl){return yl=yl-Ts,Gl=Gl-Xs,{x:yl*ks-Gl*Os+Ts,y:yl*Os+Gl*ks+Xs}},Ps=Ws(Ho,qo),qs=Ws(Ho,Jo),ga=Ws(Yo,qo),Fs=Ws(Yo,Jo);Ho=Math.min(Ps.x,qs.x,ga.x,Fs.x),Yo=Math.max(Ps.x,qs.x,ga.x,Fs.x),qo=Math.min(Ps.y,qs.y,ga.y,Fs.y),Jo=Math.max(Ps.y,qs.y,ga.y,Fs.y)}var Js=ps+"Rot",Vs=Qo[Js]=Qo[Js]||{};Vs.x1=Ho,Vs.y1=qo,Vs.x2=Yo,Vs.y2=Jo,Vs.w=Yo-Ho,Vs.h=Jo-qo,updateBounds(to,Ho,qo,Yo,Jo),updateBounds(ao.labelBounds.all,Ho,qo,Yo,Jo)}return to}},updateBoundsFromOutline=function eo(to,no){if(!no.cy().headless()){var io=no.pstyle("outline-opacity").value,so=no.pstyle("outline-width").value;if(io>0&&so>0){var ao=no.pstyle("outline-offset").value,lo=no.pstyle("shape").value,uo=so+ao,ho=(to.w+uo*2)/to.w,go=(to.h+uo*2)/to.h,mo=0,yo=0;["diamond","pentagon","round-triangle"].includes(lo)?(ho=(to.w+uo*2.4)/to.w,yo=-uo/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(lo)?ho=(to.w+uo*2.4)/to.w:lo==="star"?(ho=(to.w+uo*2.8)/to.w,go=(to.h+uo*2.6)/to.h,yo=-uo/3.8):lo==="triangle"?(ho=(to.w+uo*2.8)/to.w,go=(to.h+uo*2.4)/to.h,yo=-uo/1.4):lo==="vee"&&(ho=(to.w+uo*4.4)/to.w,go=(to.h+uo*3.8)/to.h,yo=-uo*.5);var So=to.h*go-to.h,_o=to.w*ho-to.w;if(expandBoundingBoxSides(to,[Math.ceil(So/2),Math.ceil(_o/2)]),mo!=0||yo!==0){var ko=shiftBoundingBox(to,mo,yo);updateBoundingBox(to,ko)}}}},boundingBoxImpl=function eo(to,no){var io=to._private.cy,so=io.styleEnabled(),ao=io.headless(),lo=makeBoundingBox(),uo=to._private,ho=to.isNode(),go=to.isEdge(),mo,yo,So,_o,ko,Co,$o=uo.rstyle,Ro=ho&&so?to.pstyle("bounds-expansion").pfValue:[0],Oo=function(du){return du.pstyle("display").value!=="none"},No=!so||Oo(to)&&(!go||Oo(to.source())&&Oo(to.target()));if(No){var Mo=0,Bo=0;so&&no.includeOverlays&&(Mo=to.pstyle("overlay-opacity").value,Mo!==0&&(Bo=to.pstyle("overlay-padding").value));var Fo=0,Lo=0;so&&no.includeUnderlays&&(Fo=to.pstyle("underlay-opacity").value,Fo!==0&&(Lo=to.pstyle("underlay-padding").value));var Go=Math.max(Bo,Lo),Do=0,Uo=0;if(so&&(Do=to.pstyle("width").pfValue,Uo=Do/2),ho&&no.includeNodes){var Ho=to.position();ko=Ho.x,Co=Ho.y;var Yo=to.outerWidth(),qo=Yo/2,Jo=to.outerHeight(),ps=Jo/2;mo=ko-qo,yo=ko+qo,So=Co-ps,_o=Co+ps,updateBounds(lo,mo,So,yo,_o),so&&no.includeOutlines&&updateBoundsFromOutline(lo,to)}else if(go&&no.includeEdges)if(so&&!ao){var Qo=to.pstyle("curve-style").strValue;if(mo=Math.min($o.srcX,$o.midX,$o.tgtX),yo=Math.max($o.srcX,$o.midX,$o.tgtX),So=Math.min($o.srcY,$o.midY,$o.tgtY),_o=Math.max($o.srcY,$o.midY,$o.tgtY),mo-=Uo,yo+=Uo,So-=Uo,_o+=Uo,updateBounds(lo,mo,So,yo,_o),Qo==="haystack"){var hs=$o.haystackPts;if(hs&&hs.length===2){if(mo=hs[0].x,So=hs[0].y,yo=hs[1].x,_o=hs[1].y,mo>yo){var gs=mo;mo=yo,yo=gs}if(So>_o){var ys=So;So=_o,_o=ys}updateBounds(lo,mo-Uo,So-Uo,yo+Uo,_o+Uo)}}else if(Qo==="bezier"||Qo==="unbundled-bezier"||Qo.endsWith("segments")||Qo.endsWith("taxi")){var vs;switch(Qo){case"bezier":case"unbundled-bezier":vs=$o.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":vs=$o.linePts;break}if(vs!=null)for(var ks=0;ksyo){var qs=mo;mo=yo,yo=qs}if(So>_o){var ga=So;So=_o,_o=ga}mo-=Uo,yo+=Uo,So-=Uo,_o+=Uo,updateBounds(lo,mo,So,yo,_o)}if(so&&no.includeEdges&&go&&(updateBoundsFromArrow(lo,to,"mid-source"),updateBoundsFromArrow(lo,to,"mid-target"),updateBoundsFromArrow(lo,to,"source"),updateBoundsFromArrow(lo,to,"target")),so){var Fs=to.pstyle("ghost").value==="yes";if(Fs){var Js=to.pstyle("ghost-offset-x").pfValue,Vs=to.pstyle("ghost-offset-y").pfValue;updateBounds(lo,lo.x1+Js,lo.y1+Vs,lo.x2+Js,lo.y2+Vs)}}var El=uo.bodyBounds=uo.bodyBounds||{};assignBoundingBox(El,lo),expandBoundingBoxSides(El,Ro),expandBoundingBox(El,1),so&&(mo=lo.x1,yo=lo.x2,So=lo.y1,_o=lo.y2,updateBounds(lo,mo-Go,So-Go,yo+Go,_o+Go));var yl=uo.overlayBounds=uo.overlayBounds||{};assignBoundingBox(yl,lo),expandBoundingBoxSides(yl,Ro),expandBoundingBox(yl,1);var Gl=uo.labelBounds=uo.labelBounds||{};Gl.all!=null?clearBoundingBox(Gl.all):Gl.all=makeBoundingBox(),so&&no.includeLabels&&(no.includeMainLabels&&updateBoundsFromLabel(lo,to,null),go&&(no.includeSourceLabels&&updateBoundsFromLabel(lo,to,"source"),no.includeTargetLabels&&updateBoundsFromLabel(lo,to,"target")))}return lo.x1=noninf(lo.x1),lo.y1=noninf(lo.y1),lo.x2=noninf(lo.x2),lo.y2=noninf(lo.y2),lo.w=noninf(lo.x2-lo.x1),lo.h=noninf(lo.y2-lo.y1),lo.w>0&&lo.h>0&&No&&(expandBoundingBoxSides(lo,Ro),expandBoundingBox(lo,1)),lo},getKey=function eo(to){var no=0,io=function(lo){return(lo?1:0)<0&&arguments[0]!==void 0?arguments[0]:emptyOpts,to=arguments.length>1?arguments[1]:void 0,no=0;no=0;uo--)lo(uo);return this};p.removeAllListeners=function(){return this.removeListener("*")};p.emit=p.trigger=function(eo,to,no){var io=this.listeners,so=io.length;return this.emitting++,array(to)||(to=[to]),forEachEventObj(this,function(ao,lo){no!=null&&(io=[{event:lo.event,type:lo.type,namespace:lo.namespace,callback:no}],so=io.length);for(var uo=function(mo){var yo=io[mo];if(yo.type===lo.type&&(!yo.namespace||yo.namespace===lo.namespace||yo.namespace===universalNamespace)&&ao.eventMatches(ao.context,yo,lo)){var So=[lo];to!=null&&push(So,to),ao.beforeEmit(ao.context,yo,lo),yo.conf&&yo.conf.one&&(ao.listeners=ao.listeners.filter(function(Co){return Co!==yo}));var _o=ao.callbackContext(ao.context,yo,lo),ko=yo.callback.apply(_o,So);ao.afterEmit(ao.context,yo,lo),ko===!1&&(lo.stopPropagation(),lo.preventDefault())}},ho=0;ho1&&!lo){var uo=this.length-1,ho=this[uo],go=ho._private.data.id;this[uo]=void 0,this[to]=ho,ao.set(go,{ele:ho,index:to})}return this.length--,this},unmergeOne:function eo(to){to=to[0];var no=this._private,io=to._private.data.id,so=no.map,ao=so.get(io);if(!ao)return this;var lo=ao.index;return this.unmergeAt(lo),this},unmerge:function eo(to){var no=this._private.cy;if(!to)return this;if(to&&string(to)){var io=to;to=no.mutableElements().filter(io)}for(var so=0;so=0;no--){var io=this[no];to(io)&&this.unmergeAt(no)}return this},map:function eo(to,no){for(var io=[],so=this,ao=0;aoio&&(io=ho,so=uo)}return{value:io,ele:so}},min:function eo(to,no){for(var io=1/0,so,ao=this,lo=0;lo=0&&ao"u"?"undefined":_typeof(Symbol))!=to&&_typeof(Symbol.iterator)!=to;no&&(elesfn$6[Symbol.iterator]=function(){var io=this,so={value:void 0,done:!1},ao=0,lo=this.length;return _defineProperty$1({next:function(){return ao1&&arguments[1]!==void 0?arguments[1]:!0,io=this[0],so=io.cy();if(so.styleEnabled()&&io){this.cleanStyle();var ao=io._private.style[to];return ao??(no?so.style().getDefaultProperty(to):null)}},numericStyle:function eo(to){var no=this[0];if(no.cy().styleEnabled()&&no){var io=no.pstyle(to);return io.pfValue!==void 0?io.pfValue:io.value}},numericStyleUnits:function eo(to){var no=this[0];if(no.cy().styleEnabled()&&no)return no.pstyle(to).units},renderedStyle:function eo(to){var no=this.cy();if(!no.styleEnabled())return this;var io=this[0];if(io)return no.style().getRenderedStyle(io,to)},style:function eo(to,no){var io=this.cy();if(!io.styleEnabled())return this;var so=!1,ao=io.style();if(plainObject(to)){var lo=to;ao.applyBypass(this,lo,so),this.emitAndNotify("style")}else if(string(to))if(no===void 0){var uo=this[0];return uo?ao.getStylePropertyValue(uo,to):void 0}else ao.applyBypass(this,to,no,so),this.emitAndNotify("style");else if(to===void 0){var ho=this[0];return ho?ao.getRawStyle(ho):void 0}return this},removeStyle:function eo(to){var no=this.cy();if(!no.styleEnabled())return this;var io=!1,so=no.style(),ao=this;if(to===void 0)for(var lo=0;lo0&&to.push(mo[0]),to.push(uo[0])}return this.spawn(to,!0).filter(eo)},"neighborhood"),closedNeighborhood:function eo(to){return this.neighborhood().add(this).filter(to)},openNeighborhood:function eo(to){return this.neighborhood(to)}});elesfn$2.neighbourhood=elesfn$2.neighborhood;elesfn$2.closedNeighbourhood=elesfn$2.closedNeighborhood;elesfn$2.openNeighbourhood=elesfn$2.openNeighborhood;extend(elesfn$2,{source:cache(function eo(to){var no=this[0],io;return no&&(io=no._private.source||no.cy().collection()),io&&to?io.filter(to):io},"source"),target:cache(function eo(to){var no=this[0],io;return no&&(io=no._private.target||no.cy().collection()),io&&to?io.filter(to):io},"target"),sources:defineSourceFunction({attr:"source"}),targets:defineSourceFunction({attr:"target"})});function defineSourceFunction(eo){return function(no){for(var io=[],so=0;so0);return lo},component:function eo(){var to=this[0];return to.cy().mutableElements().components(to)[0]}});elesfn$2.componentsOf=elesfn$2.components;var Collection=function eo(to,no){var io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,so=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(to===void 0){error("A collection must have a reference to the core");return}var ao=new Map$2,lo=!1;if(!no)no=[];else if(no.length>0&&plainObject(no[0])&&!element(no[0])){lo=!0;for(var uo=[],ho=new Set$1,go=0,mo=no.length;go0&&arguments[0]!==void 0?arguments[0]:!0,to=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,no=this,io=no.cy(),so=io._private,ao=[],lo=[],uo,ho=0,go=no.length;ho0){for(var ys=uo.length===no.length?no:new Collection(io,uo),vs=0;vs0&&arguments[0]!==void 0?arguments[0]:!0,to=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,no=this,io=[],so={},ao=no._private.cy;function lo(Jo){for(var ps=Jo._private.edges,Qo=0;Qo0&&(eo?Ho.emitAndNotify("remove"):to&&Ho.emit("remove"));for(var Yo=0;Yo0?Yo=Jo:Ho=Jo;while(Math.abs(qo)>lo&&++ps=ao?Oo(Uo,ps):Qo===0?ps:Mo(Uo,Ho,Ho+go)}var Po=!1;function Lo(){Po=!0,(eo!==to||no!==io)&&No()}var Go=function(Ho){return Po||Lo(),eo===to&&no===io?Ho:Ho===0?0:Ho===1?1:$o(Bo(Ho),to,io)};Go.getControlPoints=function(){return[{x:eo,y:to},{x:no,y:io}]};var Do="generateBezier("+[eo,to,no,io]+")";return Go.toString=function(){return Do},Go}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var generateSpringRK4=function(){function eo(io){return-io.tension*io.x-io.friction*io.v}function to(io,so,ao){var lo={x:io.x+ao.dx*so,v:io.v+ao.dv*so,tension:io.tension,friction:io.friction};return{dx:lo.v,dv:eo(lo)}}function no(io,so){var ao={dx:io.v,dv:eo(io)},lo=to(io,so*.5,ao),uo=to(io,so*.5,lo),ho=to(io,so,uo),go=1/6*(ao.dx+2*(lo.dx+uo.dx)+ho.dx),mo=1/6*(ao.dv+2*(lo.dv+uo.dv)+ho.dv);return io.x=io.x+go*so,io.v=io.v+mo*so,io}return function io(so,ao,lo){var uo={x:-1,v:0,tension:null,friction:null},ho=[0],go=0,mo=1/1e4,yo=16/1e3,So,_o,ko;for(so=parseFloat(so)||500,ao=parseFloat(ao)||20,lo=lo||null,uo.tension=so,uo.friction=ao,So=lo!==null,So?(go=io(so,ao),_o=go/lo*yo):_o=yo;ko=no(ko||uo,_o),ho.push(1+ko.x),go+=16,Math.abs(ko.x)>mo&&Math.abs(ko.v)>mo;);return So?function(Co){return ho[Co*(ho.length-1)|0]}:go}}(),cubicBezier=function eo(to,no,io,so){var ao=generateCubicBezier(to,no,io,so);return function(lo,uo,ho){return lo+(uo-lo)*ao(ho)}},easings={linear:function eo(to,no,io){return to+(no-to)*io},ease:cubicBezier(.25,.1,.25,1),"ease-in":cubicBezier(.42,0,1,1),"ease-out":cubicBezier(0,0,.58,1),"ease-in-out":cubicBezier(.42,0,.58,1),"ease-in-sine":cubicBezier(.47,0,.745,.715),"ease-out-sine":cubicBezier(.39,.575,.565,1),"ease-in-out-sine":cubicBezier(.445,.05,.55,.95),"ease-in-quad":cubicBezier(.55,.085,.68,.53),"ease-out-quad":cubicBezier(.25,.46,.45,.94),"ease-in-out-quad":cubicBezier(.455,.03,.515,.955),"ease-in-cubic":cubicBezier(.55,.055,.675,.19),"ease-out-cubic":cubicBezier(.215,.61,.355,1),"ease-in-out-cubic":cubicBezier(.645,.045,.355,1),"ease-in-quart":cubicBezier(.895,.03,.685,.22),"ease-out-quart":cubicBezier(.165,.84,.44,1),"ease-in-out-quart":cubicBezier(.77,0,.175,1),"ease-in-quint":cubicBezier(.755,.05,.855,.06),"ease-out-quint":cubicBezier(.23,1,.32,1),"ease-in-out-quint":cubicBezier(.86,0,.07,1),"ease-in-expo":cubicBezier(.95,.05,.795,.035),"ease-out-expo":cubicBezier(.19,1,.22,1),"ease-in-out-expo":cubicBezier(1,0,0,1),"ease-in-circ":cubicBezier(.6,.04,.98,.335),"ease-out-circ":cubicBezier(.075,.82,.165,1),"ease-in-out-circ":cubicBezier(.785,.135,.15,.86),spring:function eo(to,no,io){if(io===0)return easings.linear;var so=generateSpringRK4(to,no,io);return function(ao,lo,uo){return ao+(lo-ao)*so(uo)}},"cubic-bezier":cubicBezier};function getEasedValue(eo,to,no,io,so){if(io===1||to===no)return no;var ao=so(to,no,io);return eo==null||((eo.roundValue||eo.color)&&(ao=Math.round(ao)),eo.min!==void 0&&(ao=Math.max(ao,eo.min)),eo.max!==void 0&&(ao=Math.min(ao,eo.max))),ao}function getValue(eo,to){return eo.pfValue!=null||eo.value!=null?eo.pfValue!=null&&(to==null||to.type.units!=="%")?eo.pfValue:eo.value:eo}function ease(eo,to,no,io,so){var ao=so!=null?so.type:null;no<0?no=0:no>1&&(no=1);var lo=getValue(eo,so),uo=getValue(to,so);if(number$1(lo)&&number$1(uo))return getEasedValue(ao,lo,uo,no,io);if(array(lo)&&array(uo)){for(var ho=[],go=0;go0?(_o==="spring"&&ko.push(lo.duration),lo.easingImpl=easings[_o].apply(null,ko)):lo.easingImpl=easings[_o]}var Co=lo.easingImpl,$o;if(lo.duration===0?$o=1:$o=(no-ho)/lo.duration,lo.applying&&($o=lo.progress),$o<0?$o=0:$o>1&&($o=1),lo.delay==null){var Ro=lo.startPosition,Oo=lo.position;if(Oo&&so&&!eo.locked()){var No={};valid(Ro.x,Oo.x)&&(No.x=ease(Ro.x,Oo.x,$o,Co)),valid(Ro.y,Oo.y)&&(No.y=ease(Ro.y,Oo.y,$o,Co)),eo.position(No)}var Mo=lo.startPan,Bo=lo.pan,Po=ao.pan,Lo=Bo!=null&&io;Lo&&(valid(Mo.x,Bo.x)&&(Po.x=ease(Mo.x,Bo.x,$o,Co)),valid(Mo.y,Bo.y)&&(Po.y=ease(Mo.y,Bo.y,$o,Co)),eo.emit("pan"));var Go=lo.startZoom,Do=lo.zoom,Uo=Do!=null&&io;Uo&&(valid(Go,Do)&&(ao.zoom=bound(ao.minZoom,ease(Go,Do,$o,Co),ao.maxZoom)),eo.emit("zoom")),(Lo||Uo)&&eo.emit("viewport");var Ho=lo.style;if(Ho&&Ho.length>0&&so){for(var Yo=0;Yo=0;Lo--){var Go=Po[Lo];Go()}Po.splice(0,Po.length)},Oo=_o.length-1;Oo>=0;Oo--){var No=_o[Oo],Mo=No._private;if(Mo.stopped){_o.splice(Oo,1),Mo.hooked=!1,Mo.playing=!1,Mo.started=!1,Ro(Mo.frames);continue}!Mo.playing&&!Mo.applying||(Mo.playing&&Mo.applying&&(Mo.applying=!1),Mo.started||startAnimation(mo,No,eo),step$1(mo,No,eo,yo),Mo.applying&&(Mo.applying=!1),Ro(Mo.frames),Mo.step!=null&&Mo.step(eo),No.completed()&&(_o.splice(Oo,1),Mo.hooked=!1,Mo.playing=!1,Mo.started=!1,Ro(Mo.completes)),Co=!0)}return!yo&&_o.length===0&&ko.length===0&&io.push(mo),Co}for(var ao=!1,lo=0;lo0?to.notify("draw",no):to.notify("draw")),no.unmerge(io),to.emit("step")}var corefn$8={animate:define.animate(),animation:define.animation(),animated:define.animated(),clearQueue:define.clearQueue(),delay:define.delay(),delayAnimation:define.delayAnimation(),stop:define.stop(),addToAnimationPool:function eo(to){var no=this;no.styleEnabled()&&no._private.aniEles.merge(to)},stopAnimationLoop:function eo(){this._private.animationsRunning=!1},startAnimationLoop:function eo(){var to=this;if(to._private.animationsRunning=!0,!to.styleEnabled())return;function no(){to._private.animationsRunning&&requestAnimationFrame$1(function(ao){stepAll(ao,to),no()})}var io=to.renderer();io&&io.beforeRender?io.beforeRender(function(ao,lo){stepAll(lo,to)},io.beforeRenderPriorities.animations):no()}},emitterOptions={qualifierCompare:function eo(to,no){return to==null||no==null?to==null&&no==null:to.sameText(no)},eventMatches:function eo(to,no,io){var so=no.qualifier;return so!=null?to!==io.target&&element(io.target)&&so.matches(io.target):!0},addEventFields:function eo(to,no){no.cy=to,no.target=to},callbackContext:function eo(to,no,io){return no.qualifier!=null?io.target:to}},argSelector=function eo(to){return string(to)?new Selector(to):to},elesfn={createEmitter:function eo(){var to=this._private;return to.emitter||(to.emitter=new Emitter(emitterOptions,this)),this},emitter:function eo(){return this._private.emitter},on:function eo(to,no,io){return this.emitter().on(to,argSelector(no),io),this},removeListener:function eo(to,no,io){return this.emitter().removeListener(to,argSelector(no),io),this},removeAllListeners:function eo(){return this.emitter().removeAllListeners(),this},one:function eo(to,no,io){return this.emitter().one(to,argSelector(no),io),this},once:function eo(to,no,io){return this.emitter().one(to,argSelector(no),io),this},emit:function eo(to,no){return this.emitter().emit(to,no),this},emitAndNotify:function eo(to,no){return this.emit(to),this.notify(to,no),this}};define.eventAliasesOn(elesfn);var corefn$7={png:function eo(to){var no=this._private.renderer;return to=to||{},no.png(to)},jpg:function eo(to){var no=this._private.renderer;return to=to||{},to.bg=to.bg||"#fff",no.jpg(to)}};corefn$7.jpeg=corefn$7.jpg;var corefn$6={layout:function eo(to){var no=this;if(to==null){error("Layout options must be specified to make a layout");return}if(to.name==null){error("A `name` must be specified to make a layout");return}var io=to.name,so=no.extension("layout",io);if(so==null){error("No such layout `"+io+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var ao;string(to.eles)?ao=no.$(to.eles):ao=to.eles!=null?to.eles:no.$();var lo=new so(extend({},to,{cy:no,eles:ao}));return lo}};corefn$6.createLayout=corefn$6.makeLayout=corefn$6.layout;var corefn$5={notify:function eo(to,no){var io=this._private;if(this.batching()){io.batchNotifications=io.batchNotifications||{};var so=io.batchNotifications[to]=io.batchNotifications[to]||this.collection();no!=null&&so.merge(no);return}if(io.notificationsEnabled){var ao=this.renderer();this.destroyed()||!ao||ao.notify(to,no)}},notifications:function eo(to){var no=this._private;return to===void 0?no.notificationsEnabled:(no.notificationsEnabled=!!to,this)},noNotifications:function eo(to){this.notifications(!1),to(),this.notifications(!0)},batching:function eo(){return this._private.batchCount>0},startBatch:function eo(){var to=this._private;return to.batchCount==null&&(to.batchCount=0),to.batchCount===0&&(to.batchStyleEles=this.collection(),to.batchNotifications={}),to.batchCount++,this},endBatch:function eo(){var to=this._private;if(to.batchCount===0)return this;if(to.batchCount--,to.batchCount===0){to.batchStyleEles.updateStyle();var no=this.renderer();Object.keys(to.batchNotifications).forEach(function(io){var so=to.batchNotifications[io];so.empty()?no.notify(io):no.notify(io,so)})}return this},batch:function eo(to){return this.startBatch(),to(),this.endBatch(),this},batchData:function eo(to){var no=this;return this.batch(function(){for(var io=Object.keys(to),so=0;so0;)no.removeChild(no.childNodes[0]);to._private.renderer=null,to.mutableElements().forEach(function(io){var so=io._private;so.rscratch={},so.rstyle={},so.animation.current=[],so.animation.queue=[]})},onRender:function eo(to){return this.on("render",to)},offRender:function eo(to){return this.off("render",to)}};corefn$4.invalidateDimensions=corefn$4.resize;var corefn$3={collection:function eo(to,no){return string(to)?this.$(to):elementOrCollection(to)?to.collection():array(to)?(no||(no={}),new Collection(this,to,no.unique,no.removed)):new Collection(this)},nodes:function eo(to){var no=this.$(function(io){return io.isNode()});return to?no.filter(to):no},edges:function eo(to){var no=this.$(function(io){return io.isEdge()});return to?no.filter(to):no},$:function eo(to){var no=this._private.elements;return to?no.filter(to):no.spawnSelf()},mutableElements:function eo(){return this._private.elements}};corefn$3.elements=corefn$3.filter=corefn$3.$;var styfn$8={},TRUE="t",FALSE="f";styfn$8.apply=function(eo){for(var to=this,no=to._private,io=no.cy,so=io.collection(),ao=0;ao0;if(So||yo&&_o){var ko=void 0;So&&_o||So?ko=go.properties:_o&&(ko=go.mappedProperties);for(var Co=0;Co1&&(Mo=1),uo.color){var Po=io.valueMin[0],Lo=io.valueMax[0],Go=io.valueMin[1],Do=io.valueMax[1],Uo=io.valueMin[2],Ho=io.valueMax[2],Yo=io.valueMin[3]==null?1:io.valueMin[3],qo=io.valueMax[3]==null?1:io.valueMax[3],Jo=[Math.round(Po+(Lo-Po)*Mo),Math.round(Go+(Do-Go)*Mo),Math.round(Uo+(Ho-Uo)*Mo),Math.round(Yo+(qo-Yo)*Mo)];ao={bypass:io.bypass,name:io.name,value:Jo,strValue:"rgb("+Jo[0]+", "+Jo[1]+", "+Jo[2]+")"}}else if(uo.number){var ps=io.valueMin+(io.valueMax-io.valueMin)*Mo;ao=this.parse(io.name,ps,io.bypass,So)}else return!1;if(!ao)return Co(),!1;ao.mapping=io,io=ao;break}case lo.data:{for(var Qo=io.field.split("."),hs=yo.data,gs=0;gs0&&ao>0){for(var uo={},ho=!1,go=0;go0?eo.delayAnimation(lo).play().promise().then(No):No()}).then(function(){return eo.animation({style:uo,duration:ao,easing:eo.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){no.removeBypasses(eo,so),eo.emitAndNotify("style"),io.transitioning=!1})}else io.transitioning&&(this.removeBypasses(eo,so),eo.emitAndNotify("style"),io.transitioning=!1)};styfn$8.checkTrigger=function(eo,to,no,io,so,ao){var lo=this.properties[to],uo=so(lo);uo!=null&&uo(no,io)&&ao(lo)};styfn$8.checkZOrderTrigger=function(eo,to,no,io){var so=this;this.checkTrigger(eo,to,no,io,function(ao){return ao.triggersZOrder},function(){so._private.cy.notify("zorder",eo)})};styfn$8.checkBoundsTrigger=function(eo,to,no,io){this.checkTrigger(eo,to,no,io,function(so){return so.triggersBounds},function(so){eo.dirtyCompoundBoundsCache(),eo.dirtyBoundingBoxCache(),so.triggersBoundsOfParallelBeziers&&to==="curve-style"&&(no==="bezier"||io==="bezier")&&eo.parallelEdges().forEach(function(ao){ao.isBundledBezier()&&ao.dirtyBoundingBoxCache()}),so.triggersBoundsOfConnectedEdges&&to==="display"&&(no==="none"||io==="none")&&eo.connectedEdges().forEach(function(ao){ao.dirtyBoundingBoxCache()})})};styfn$8.checkTriggers=function(eo,to,no,io){eo.dirtyStyleCache(),this.checkZOrderTrigger(eo,to,no,io),this.checkBoundsTrigger(eo,to,no,io)};var styfn$7={};styfn$7.applyBypass=function(eo,to,no,io){var so=this,ao=[],lo=!0;if(to==="*"||to==="**"){if(no!==void 0)for(var uo=0;uoso.length?io=io.substr(so.length):io=""}function ho(){ao.length>lo.length?ao=ao.substr(lo.length):ao=""}for(;;){var go=io.match(/^\s*$/);if(go)break;var mo=io.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!mo){warn("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+io);break}so=mo[0];var yo=mo[1];if(yo!=="core"){var So=new Selector(yo);if(So.invalid){warn("Skipping parsing of block: Invalid selector found in string stylesheet: "+yo),uo();continue}}var _o=mo[2],ko=!1;ao=_o;for(var Co=[];;){var $o=ao.match(/^\s*$/);if($o)break;var Ro=ao.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!Ro){warn("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+_o),ko=!0;break}lo=Ro[0];var Oo=Ro[1],No=Ro[2],Mo=to.properties[Oo];if(!Mo){warn("Skipping property: Invalid property name in: "+lo),ho();continue}var Bo=no.parse(Oo,No);if(!Bo){warn("Skipping property: Invalid property definition in: "+lo),ho();continue}Co.push({name:Oo,val:No}),ho()}if(ko){uo();break}no.selector(yo);for(var Po=0;Po=7&&to[0]==="d"&&(mo=new RegExp(uo.data.regex).exec(to))){if(no)return!1;var So=uo.data;return{name:eo,value:mo,strValue:""+to,mapped:So,field:mo[1],bypass:no}}else if(to.length>=10&&to[0]==="m"&&(yo=new RegExp(uo.mapData.regex).exec(to))){if(no||go.multiple)return!1;var _o=uo.mapData;if(!(go.color||go.number))return!1;var ko=this.parse(eo,yo[4]);if(!ko||ko.mapped)return!1;var Co=this.parse(eo,yo[5]);if(!Co||Co.mapped)return!1;if(ko.pfValue===Co.pfValue||ko.strValue===Co.strValue)return warn("`"+eo+": "+to+"` is not a valid mapper because the output range is zero; converting to `"+eo+": "+ko.strValue+"`"),this.parse(eo,ko.strValue);if(go.color){var $o=ko.value,Ro=Co.value,Oo=$o[0]===Ro[0]&&$o[1]===Ro[1]&&$o[2]===Ro[2]&&($o[3]===Ro[3]||($o[3]==null||$o[3]===1)&&(Ro[3]==null||Ro[3]===1));if(Oo)return!1}return{name:eo,value:yo,strValue:""+to,mapped:_o,field:yo[1],fieldMin:parseFloat(yo[2]),fieldMax:parseFloat(yo[3]),valueMin:ko.value,valueMax:Co.value,bypass:no}}}if(go.multiple&&io!=="multiple"){var No;if(ho?No=to.split(/\s+/):array(to)?No=to:No=[to],go.evenMultiple&&No.length%2!==0)return null;for(var Mo=[],Bo=[],Po=[],Lo="",Go=!1,Do=0;Do0?" ":"")+Uo.strValue}return go.validate&&!go.validate(Mo,Bo)?null:go.singleEnum&&Go?Mo.length===1&&string(Mo[0])?{name:eo,value:Mo[0],strValue:Mo[0],bypass:no}:null:{name:eo,value:Mo,pfValue:Po,strValue:Lo,bypass:no,units:Bo}}var Ho=function(){for(var Fs=0;Fsgo.max||go.strictMax&&to===go.max))return null;var Qo={name:eo,value:to,strValue:""+to+(Yo||""),units:Yo,bypass:no};return go.unitless||Yo!=="px"&&Yo!=="em"?Qo.pfValue=to:Qo.pfValue=Yo==="px"||!Yo?to:this.getEmSizeInPixels()*to,(Yo==="ms"||Yo==="s")&&(Qo.pfValue=Yo==="ms"?to:1e3*to),(Yo==="deg"||Yo==="rad")&&(Qo.pfValue=Yo==="rad"?to:deg2rad(to)),Yo==="%"&&(Qo.pfValue=to/100),Qo}else if(go.propList){var hs=[],gs=""+to;if(gs!=="none"){for(var ys=gs.split(/\s*,\s*|\s+/),vs=0;vs0&&uo>0&&!isNaN(io.w)&&!isNaN(io.h)&&io.w>0&&io.h>0){ho=Math.min((lo-2*no)/io.w,(uo-2*no)/io.h),ho=ho>this._private.maxZoom?this._private.maxZoom:ho,ho=ho=io.minZoom&&(io.maxZoom=no),this},minZoom:function eo(to){return to===void 0?this._private.minZoom:this.zoomRange({min:to})},maxZoom:function eo(to){return to===void 0?this._private.maxZoom:this.zoomRange({max:to})},getZoomedViewport:function eo(to){var no=this._private,io=no.pan,so=no.zoom,ao,lo,uo=!1;if(no.zoomingEnabled||(uo=!0),number$1(to)?lo=to:plainObject(to)&&(lo=to.level,to.position!=null?ao=modelToRenderedPosition(to.position,so,io):to.renderedPosition!=null&&(ao=to.renderedPosition),ao!=null&&!no.panningEnabled&&(uo=!0)),lo=lo>no.maxZoom?no.maxZoom:lo,lo=lono.maxZoom||!no.zoomingEnabled?lo=!0:(no.zoom=ho,ao.push("zoom"))}if(so&&(!lo||!to.cancelOnFailedZoom)&&no.panningEnabled){var go=to.pan;number$1(go.x)&&(no.pan.x=go.x,uo=!1),number$1(go.y)&&(no.pan.y=go.y,uo=!1),uo||ao.push("pan")}return ao.length>0&&(ao.push("viewport"),this.emit(ao.join(" ")),this.notify("viewport")),this},center:function eo(to){var no=this.getCenterPan(to);return no&&(this._private.pan=no,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function eo(to,no){if(this._private.panningEnabled){if(string(to)){var io=to;to=this.mutableElements().filter(io)}else elementOrCollection(to)||(to=this.mutableElements());if(to.length!==0){var so=to.boundingBox(),ao=this.width(),lo=this.height();no=no===void 0?this._private.zoom:no;var uo={x:(ao-no*(so.x1+so.x2))/2,y:(lo-no*(so.y1+so.y2))/2};return uo}}},reset:function eo(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function eo(){this._private.sizeCache=null},size:function eo(){var to=this._private,no=to.container,io=this;return to.sizeCache=to.sizeCache||(no?function(){var so=io.window().getComputedStyle(no),ao=function(uo){return parseFloat(so.getPropertyValue(uo))};return{width:no.clientWidth-ao("padding-left")-ao("padding-right"),height:no.clientHeight-ao("padding-top")-ao("padding-bottom")}}():{width:1,height:1})},width:function eo(){return this.size().width},height:function eo(){return this.size().height},extent:function eo(){var to=this._private.pan,no=this._private.zoom,io=this.renderedExtent(),so={x1:(io.x1-to.x)/no,x2:(io.x2-to.x)/no,y1:(io.y1-to.y)/no,y2:(io.y2-to.y)/no};return so.w=so.x2-so.x1,so.h=so.y2-so.y1,so},renderedExtent:function eo(){var to=this.width(),no=this.height();return{x1:0,y1:0,x2:to,y2:no,w:to,h:no}},multiClickDebounceTime:function eo(to){if(to)this._private.multiClickDebounceTime=to;else return this._private.multiClickDebounceTime;return this}};corefn$1.centre=corefn$1.center;corefn$1.autolockNodes=corefn$1.autolock;corefn$1.autoungrabifyNodes=corefn$1.autoungrabify;var fn={data:define.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:define.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:define.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:define.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};fn.attr=fn.data;fn.removeAttr=fn.removeData;var Core=function eo(to){var no=this;to=extend({},to);var io=to.container;io&&!htmlElement(io)&&htmlElement(io[0])&&(io=io[0]);var so=io?io._cyreg:null;so=so||{},so&&so.cy&&(so.cy.destroy(),so={});var ao=so.readies=so.readies||[];io&&(io._cyreg=so),so.cy=no;var lo=_window!==void 0&&io!==void 0&&!to.headless,uo=to;uo.layout=extend({name:lo?"grid":"null"},uo.layout),uo.renderer=extend({name:lo?"canvas":"null"},uo.renderer);var ho=function(ko,Co,$o){return Co!==void 0?Co:$o!==void 0?$o:ko},go=this._private={container:io,ready:!1,options:uo,elements:new Collection(this),listeners:[],aniEles:new Collection(this),data:uo.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:ho(!0,uo.zoomingEnabled),userZoomingEnabled:ho(!0,uo.userZoomingEnabled),panningEnabled:ho(!0,uo.panningEnabled),userPanningEnabled:ho(!0,uo.userPanningEnabled),boxSelectionEnabled:ho(!0,uo.boxSelectionEnabled),autolock:ho(!1,uo.autolock,uo.autolockNodes),autoungrabify:ho(!1,uo.autoungrabify,uo.autoungrabifyNodes),autounselectify:ho(!1,uo.autounselectify),styleEnabled:uo.styleEnabled===void 0?lo:uo.styleEnabled,zoom:number$1(uo.zoom)?uo.zoom:1,pan:{x:plainObject(uo.pan)&&number$1(uo.pan.x)?uo.pan.x:0,y:plainObject(uo.pan)&&number$1(uo.pan.y)?uo.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:ho(250,uo.multiClickDebounceTime)};this.createEmitter(),this.selectionType(uo.selectionType),this.zoomRange({min:uo.minZoom,max:uo.maxZoom});var mo=function(ko,Co){var $o=ko.some(promise);if($o)return Promise$1.all(ko).then(Co);Co(ko)};go.styleEnabled&&no.setStyle([]);var yo=extend({},uo,uo.renderer);no.initRenderer(yo);var So=function(ko,Co,$o){no.notifications(!1);var Ro=no.mutableElements();Ro.length>0&&Ro.remove(),ko!=null&&(plainObject(ko)||array(ko))&&no.add(ko),no.one("layoutready",function(No){no.notifications(!0),no.emit(No),no.one("load",Co),no.emitAndNotify("load")}).one("layoutstop",function(){no.one("done",$o),no.emit("done")});var Oo=extend({},no._private.options.layout);Oo.eles=no.elements(),no.layout(Oo).run()};mo([uo.style,uo.elements],function(_o){var ko=_o[0],Co=_o[1];go.styleEnabled&&no.style().append(ko),So(Co,function(){no.startAnimationLoop(),go.ready=!0,fn$6(uo.ready)&&no.on("ready",uo.ready);for(var $o=0;$o0,ho=makeBoundingBox(to.boundingBox?to.boundingBox:{x1:0,y1:0,w:no.width(),h:no.height()}),go;if(elementOrCollection(to.roots))go=to.roots;else if(array(to.roots)){for(var mo=[],yo=0;yo0;){var ps=Jo(),Qo=Uo(ps,Yo);if(Qo)ps.outgoers().filter(function(Gl){return Gl.isNode()&&io.has(Gl)}).forEach(qo);else if(Qo===null){warn("Detected double maximal shift for node `"+ps.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}Do();var hs=0;if(to.avoidOverlap)for(var gs=0;gs0&&Ro[0].length<=3?r1/2:0),Is=2*Math.PI/Ro[Ol].length*Fu;return Ol===0&&Ro[0].length===1&&(Kl=1),{x:Vs.x+Kl*Math.cos(Is),y:Vs.y+Kl*Math.sin(Is)}}else{var $u={x:Vs.x+(Fu+1-(ju+1)/2)*F1,y:(Ol+1)*y1};return $u}};return io.nodes().layoutPositions(this,to,yl),this};var defaults$6={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function eo(to,no){return!0},ready:void 0,stop:void 0,transform:function eo(to,no){return no}};function CircleLayout(eo){this.options=extend({},defaults$6,eo)}CircleLayout.prototype.run=function(){var eo=this.options,to=eo,no=eo.cy,io=to.eles,so=to.counterclockwise!==void 0?!to.counterclockwise:to.clockwise,ao=io.nodes().not(":parent");to.sort&&(ao=ao.sort(to.sort));for(var lo=makeBoundingBox(to.boundingBox?to.boundingBox:{x1:0,y1:0,w:no.width(),h:no.height()}),uo={x:lo.x1+lo.w/2,y:lo.y1+lo.h/2},ho=to.sweep===void 0?2*Math.PI-2*Math.PI/ao.length:to.sweep,go=ho/Math.max(1,ao.length-1),mo,yo=0,So=0;So1&&to.avoidOverlap){yo*=1.75;var Ro=Math.cos(go)-Math.cos(0),Oo=Math.sin(go)-Math.sin(0),No=Math.sqrt(yo*yo/(Ro*Ro+Oo*Oo));mo=Math.max(No,mo)}var Mo=function(Po,Lo){var Go=to.startAngle+Lo*go*(so?1:-1),Do=mo*Math.cos(Go),Uo=mo*Math.sin(Go),Ho={x:uo.x+Do,y:uo.y+Uo};return Ho};return io.nodes().layoutPositions(this,to,Mo),this};var defaults$5={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function eo(to){return to.degree()},levelWidth:function eo(to){return to.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function eo(to,no){return!0},ready:void 0,stop:void 0,transform:function eo(to,no){return no}};function ConcentricLayout(eo){this.options=extend({},defaults$5,eo)}ConcentricLayout.prototype.run=function(){for(var eo=this.options,to=eo,no=to.counterclockwise!==void 0?!to.counterclockwise:to.clockwise,io=eo.cy,so=to.eles,ao=so.nodes().not(":parent"),lo=makeBoundingBox(to.boundingBox?to.boundingBox:{x1:0,y1:0,w:io.width(),h:io.height()}),uo={x:lo.x1+lo.w/2,y:lo.y1+lo.h/2},ho=[],go=0,mo=0;mo0){var Bo=Math.abs(Oo[0].value-Mo.value);Bo>=$o&&(Oo=[],Ro.push(Oo))}Oo.push(Mo)}var Po=go+to.minNodeSpacing;if(!to.avoidOverlap){var Lo=Ro.length>0&&Ro[0].length>1,Go=Math.min(lo.w,lo.h)/2-Po,Do=Go/(Ro.length+Lo?1:0);Po=Math.min(Po,Do)}for(var Uo=0,Ho=0;Ho1&&to.avoidOverlap){var ps=Math.cos(Jo)-Math.cos(0),Qo=Math.sin(Jo)-Math.sin(0),hs=Math.sqrt(Po*Po/(ps*ps+Qo*Qo));Uo=Math.max(hs,Uo)}Yo.r=Uo,Uo+=Po}if(to.equidistant){for(var gs=0,ys=0,vs=0;vs=eo.numIter||(step(io,eo),io.temperature=io.temperature*eo.coolingFactor,io.temperature=eo.animationThreshold&&ao(),requestAnimationFrame$1(yo)}};mo()}else{for(;go;)go=lo(ho),ho++;separateComponents(io,eo),uo()}return this};CoseLayout.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};CoseLayout.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var createLayoutInfo=function eo(to,no,io){for(var so=io.eles.edges(),ao=io.eles.nodes(),lo=makeBoundingBox(io.boundingBox?io.boundingBox:{x1:0,y1:0,w:to.width(),h:to.height()}),uo={isCompound:to.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:ao.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:so.size(),temperature:io.initialTemp,clientWidth:lo.w,clientHeight:lo.h,boundingBox:lo},ho=io.eles.components(),go={},mo=0;mo0){uo.graphSet.push(Go);for(var mo=0;moso.count?0:so.graph},findLCA_aux=function eo(to,no,io,so){var ao=so.graphSet[io];if(-10)var yo=so.nodeOverlap*mo,So=Math.sqrt(uo*uo+ho*ho),_o=yo*uo/So,ko=yo*ho/So;else var Co=findClippingPoint(to,uo,ho),$o=findClippingPoint(no,-1*uo,-1*ho),Ro=$o.x-Co.x,Oo=$o.y-Co.y,No=Ro*Ro+Oo*Oo,So=Math.sqrt(No),yo=(to.nodeRepulsion+no.nodeRepulsion)/No,_o=yo*Ro/So,ko=yo*Oo/So;to.isLocked||(to.offsetX-=_o,to.offsetY-=ko),no.isLocked||(no.offsetX+=_o,no.offsetY+=ko)}},nodesOverlap=function eo(to,no,io,so){if(io>0)var ao=to.maxX-no.minX;else var ao=no.maxX-to.minX;if(so>0)var lo=to.maxY-no.minY;else var lo=no.maxY-to.minY;return ao>=0&&lo>=0?Math.sqrt(ao*ao+lo*lo):0},findClippingPoint=function eo(to,no,io){var so=to.positionX,ao=to.positionY,lo=to.height||1,uo=to.width||1,ho=io/no,go=lo/uo,mo={};return no===0&&0io?(mo.x=so,mo.y=ao+lo/2,mo):0no&&-1*go<=ho&&ho<=go?(mo.x=so-uo/2,mo.y=ao-uo*io/2/no,mo):0=go)?(mo.x=so+lo*no/2/io,mo.y=ao+lo/2,mo):(0>io&&(ho<=-1*go||ho>=go)&&(mo.x=so-lo*no/2/io,mo.y=ao-lo/2),mo)},calculateEdgeForces=function eo(to,no){for(var io=0;ioio){var $o=no.gravity*_o/Co,Ro=no.gravity*ko/Co;So.offsetX+=$o,So.offsetY+=Ro}}}}},propagateForces=function eo(to,no){var io=[],so=0,ao=-1;for(io.push.apply(io,to.graphSet[0]),ao+=to.graphSet[0].length;so<=ao;){var lo=io[so++],uo=to.idToIndex[lo],ho=to.layoutNodes[uo],go=ho.children;if(0io)var ao={x:io*to/so,y:io*no/so};else var ao={x:to,y:no};return ao},updateAncestryBoundaries=function eo(to,no){var io=to.parentId;if(io!=null){var so=no.layoutNodes[no.idToIndex[io]],ao=!1;if((so.maxX==null||to.maxX+so.padRight>so.maxX)&&(so.maxX=to.maxX+so.padRight,ao=!0),(so.minX==null||to.minX-so.padLeftso.maxY)&&(so.maxY=to.maxY+so.padBottom,ao=!0),(so.minY==null||to.minY-so.padTopRo&&(ko+=$o+no.componentSpacing,_o=0,Co=0,$o=0)}}},defaults$3={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function eo(to){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function eo(to,no){return!0},ready:void 0,stop:void 0,transform:function eo(to,no){return no}};function GridLayout(eo){this.options=extend({},defaults$3,eo)}GridLayout.prototype.run=function(){var eo=this.options,to=eo,no=eo.cy,io=to.eles,so=io.nodes().not(":parent");to.sort&&(so=so.sort(to.sort));var ao=makeBoundingBox(to.boundingBox?to.boundingBox:{x1:0,y1:0,w:no.width(),h:no.height()});if(ao.h===0||ao.w===0)io.nodes().layoutPositions(this,to,function(Ts){return{x:ao.x1,y:ao.y1}});else{var lo=so.size(),uo=Math.sqrt(lo*ao.h/ao.w),ho=Math.round(uo),go=Math.round(ao.w/ao.h*uo),mo=function(Xs){if(Xs==null)return Math.min(ho,go);var Ws=Math.min(ho,go);Ws==ho?ho=Xs:go=Xs},yo=function(Xs){if(Xs==null)return Math.max(ho,go);var Ws=Math.max(ho,go);Ws==ho?ho=Xs:go=Xs},So=to.rows,_o=to.cols!=null?to.cols:to.columns;if(So!=null&&_o!=null)ho=So,go=_o;else if(So!=null&&_o==null)ho=So,go=Math.ceil(lo/ho);else if(So==null&&_o!=null)go=_o,ho=Math.ceil(lo/go);else if(go*ho>lo){var ko=mo(),Co=yo();(ko-1)*Co>=lo?mo(ko-1):(Co-1)*ko>=lo&&yo(Co-1)}else for(;go*ho=lo?yo(Ro+1):mo($o+1)}var Oo=ao.w/go,No=ao.h/ho;if(to.condense&&(Oo=0,No=0),to.avoidOverlap)for(var Mo=0;Mo=go&&(ps=0,Jo++)},hs={},gs=0;gs(ps=sqdistToFiniteLine(eo,to,Qo[hs],Qo[hs+1],Qo[hs+2],Qo[hs+3])))return $o(Lo,ps),!0}else if(Do.edgeType==="bezier"||Do.edgeType==="multibezier"||Do.edgeType==="self"||Do.edgeType==="compound"){for(var Qo=Do.allpts,hs=0;hs+5(ps=sqdistToQuadraticBezier(eo,to,Qo[hs],Qo[hs+1],Qo[hs+2],Qo[hs+3],Qo[hs+4],Qo[hs+5])))return $o(Lo,ps),!0}for(var gs=gs||Go.source,ys=ys||Go.target,vs=so.getArrowWidth(Uo,Ho),ks=[{name:"source",x:Do.arrowStartX,y:Do.arrowStartY,angle:Do.srcArrowAngle},{name:"target",x:Do.arrowEndX,y:Do.arrowEndY,angle:Do.tgtArrowAngle},{name:"mid-source",x:Do.midX,y:Do.midY,angle:Do.midsrcArrowAngle},{name:"mid-target",x:Do.midX,y:Do.midY,angle:Do.midtgtArrowAngle}],hs=0;hs0&&(Ro(gs),Ro(ys))}function No(Lo,Go,Do){return getPrefixedProperty(Lo,Go,Do)}function Mo(Lo,Go){var Do=Lo._private,Uo=So,Ho;Go?Ho=Go+"-":Ho="",Lo.boundingBox();var Yo=Do.labelBounds[Go||"main"],qo=Lo.pstyle(Ho+"label").value,Jo=Lo.pstyle("text-events").strValue==="yes";if(!(!Jo||!qo)){var ps=No(Do.rscratch,"labelX",Go),Qo=No(Do.rscratch,"labelY",Go),hs=No(Do.rscratch,"labelAngle",Go),gs=Lo.pstyle(Ho+"text-margin-x").pfValue,ys=Lo.pstyle(Ho+"text-margin-y").pfValue,vs=Yo.x1-Uo-gs,ks=Yo.x2+Uo-gs,Os=Yo.y1-Uo-ys,Ts=Yo.y2+Uo-ys;if(hs){var Xs=Math.cos(hs),Ws=Math.sin(hs),Ps=function(yl,Gl){return yl=yl-ps,Gl=Gl-Qo,{x:yl*Xs-Gl*Ws+ps,y:yl*Ws+Gl*Xs+Qo}},qs=Ps(vs,Os),ga=Ps(vs,Ts),Fs=Ps(ks,Os),Js=Ps(ks,Ts),Vs=[qs.x+gs,qs.y+ys,Fs.x+gs,Fs.y+ys,Js.x+gs,Js.y+ys,ga.x+gs,ga.y+ys];if(pointInsidePolygonPoints(eo,to,Vs))return $o(Lo),!0}else if(inBoundingBox(Yo,eo,to))return $o(Lo),!0}}for(var Bo=lo.length-1;Bo>=0;Bo--){var Po=lo[Bo];Po.isNode()?Ro(Po)||Mo(Po):Oo(Po)||Mo(Po)||Mo(Po,"source")||Mo(Po,"target")}return uo};BRp$e.getAllInBox=function(eo,to,no,io){var so=this.getCachedZSortedEles().interactive,ao=[],lo=Math.min(eo,no),uo=Math.max(eo,no),ho=Math.min(to,io),go=Math.max(to,io);eo=lo,no=uo,to=ho,io=go;for(var mo=makeBoundingBox({x1:eo,y1:to,x2:no,y2:io}),yo=0;yo0?-(Math.PI-to.ang):Math.PI+to.ang},calcCornerArc=function eo(to,no,io,so,ao){if(to!==lastPoint?asVec(no,to,v1):invertVec(v2,v1),asVec(no,io,v2),sinA=v1.nx*v2.ny-v1.ny*v2.nx,sinA90=v1.nx*v2.nx-v1.ny*-v2.ny,angle=Math.asin(Math.max(-1,Math.min(1,sinA))),Math.abs(angle)<1e-6){x$1=no.x,y$1=no.y,cRadius=radius=0;return}radDirection=1,drawDirection=!1,sinA90<0?angle<0?angle=Math.PI+angle:(angle=Math.PI-angle,radDirection=-1,drawDirection=!0):angle>0&&(radDirection=-1,drawDirection=!0),no.radius!==void 0?radius=no.radius:radius=so,halfAngle=angle/2,limit=Math.min(v1.len/2,v2.len/2),ao?(lenOut=Math.abs(Math.cos(halfAngle)*radius/Math.sin(halfAngle)),lenOut>limit?(lenOut=limit,cRadius=Math.abs(lenOut*Math.sin(halfAngle)/Math.cos(halfAngle))):cRadius=radius):(lenOut=Math.min(limit,radius),cRadius=Math.abs(lenOut*Math.sin(halfAngle)/Math.cos(halfAngle))),stopX=no.x+v2.nx*lenOut,stopY=no.y+v2.ny*lenOut,x$1=stopX-v2.ny*cRadius*radDirection,y$1=stopY+v2.nx*cRadius*radDirection,startX=no.x+v1.nx*lenOut,startY=no.y+v1.ny*lenOut,lastPoint=no};function drawPreparedRoundCorner(eo,to){to.radius===0?eo.lineTo(to.cx,to.cy):eo.arc(to.cx,to.cy,to.radius,to.startAngle,to.endAngle,to.counterClockwise)}function getRoundCorner(eo,to,no,io){var so=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return io===0||to.radius===0?{cx:to.x,cy:to.y,radius:0,startX:to.x,startY:to.y,stopX:to.x,stopY:to.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(calcCornerArc(eo,to,no,io,so),{cx:x$1,cy:y$1,radius:cRadius,startX,startY,stopX,stopY,startAngle:v1.ang+Math.PI/2*radDirection,endAngle:v2.ang-Math.PI/2*radDirection,counterClockwise:drawDirection})}var BRp$c={};BRp$c.findMidptPtsEtc=function(eo,to){var no=to.posPts,io=to.intersectionPts,so=to.vectorNormInverse,ao,lo=eo.pstyle("source-endpoint"),uo=eo.pstyle("target-endpoint"),ho=lo.units!=null&&uo.units!=null,go=function(Bo,Po,Lo,Go){var Do=Go-Po,Uo=Lo-Bo,Ho=Math.sqrt(Uo*Uo+Do*Do);return{x:-Do/Ho,y:Uo/Ho}},mo=eo.pstyle("edge-distances").value;switch(mo){case"node-position":ao=no;break;case"intersection":ao=io;break;case"endpoints":{if(ho){var yo=this.manualEndptToPx(eo.source()[0],lo),So=_slicedToArray(yo,2),_o=So[0],ko=So[1],Co=this.manualEndptToPx(eo.target()[0],uo),$o=_slicedToArray(Co,2),Ro=$o[0],Oo=$o[1],No={x1:_o,y1:ko,x2:Ro,y2:Oo};so=go(_o,ko,Ro,Oo),ao=No}else warn("Edge ".concat(eo.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),ao=io;break}}return{midptPts:ao,vectorNormInverse:so}};BRp$c.findHaystackPoints=function(eo){for(var to=0;to0?Math.max(Lu-e1,0):Math.min(Lu+e1,0)},qo=Yo(Uo,Go),Jo=Yo(Ho,Do),ps=!1;Oo===go?Ro=Math.abs(qo)>Math.abs(Jo)?so:io:Oo===ho||Oo===uo?(Ro=io,ps=!0):(Oo===ao||Oo===lo)&&(Ro=so,ps=!0);var Qo=Ro===io,hs=Qo?Jo:qo,gs=Qo?Ho:Uo,ys=signum(gs),vs=!1;!(ps&&(Mo||Po))&&(Oo===uo&&gs<0||Oo===ho&&gs>0||Oo===ao&&gs>0||Oo===lo&&gs<0)&&(ys*=-1,hs=ys*Math.abs(hs),vs=!0);var ks;if(Mo){var Os=Bo<0?1+Bo:Bo;ks=Os*hs}else{var Ts=Bo<0?hs:0;ks=Ts+Bo*ys}var Xs=function(Lu){return Math.abs(Lu)=Math.abs(hs)},Ws=Xs(ks),Ps=Xs(Math.abs(hs)-Math.abs(ks)),qs=Ws||Ps;if(qs&&!vs)if(Qo){var ga=Math.abs(gs)<=So/2,Fs=Math.abs(Uo)<=_o/2;if(ga){var Js=(mo.x1+mo.x2)/2,Vs=mo.y1,El=mo.y2;no.segpts=[Js,Vs,Js,El]}else if(Fs){var yl=(mo.y1+mo.y2)/2,Gl=mo.x1,Qs=mo.x2;no.segpts=[Gl,yl,Qs,yl]}else no.segpts=[mo.x1,mo.y2]}else{var du=Math.abs(gs)<=yo/2,Ol=Math.abs(Ho)<=ko/2;if(du){var Fu=(mo.y1+mo.y2)/2,ju=mo.x1,F1=mo.x2;no.segpts=[ju,Fu,F1,Fu]}else if(Ol){var y1=(mo.x1+mo.x2)/2,r1=mo.y1,$u=mo.y2;no.segpts=[y1,r1,y1,$u]}else no.segpts=[mo.x2,mo.y1]}else if(Qo){var Kl=mo.y1+ks+($o?So/2*ys:0),Is=mo.x1,Ks=mo.x2;no.segpts=[Is,Kl,Ks,Kl]}else{var Bs=mo.x1+ks+($o?yo/2*ys:0),Ds=mo.y1,Zs=mo.y2;no.segpts=[Bs,Ds,Bs,Zs]}if(no.isRound){var Cl=eo.pstyle("taxi-radius").value,ba=eo.pstyle("radius-type").value[0]==="arc-radius";no.radii=new Array(no.segpts.length/2).fill(Cl),no.isArcRadius=new Array(no.segpts.length/2).fill(ba)}};BRp$c.tryToCorrectInvalidPoints=function(eo,to){var no=eo._private.rscratch;if(no.edgeType==="bezier"){var io=to.srcPos,so=to.tgtPos,ao=to.srcW,lo=to.srcH,uo=to.tgtW,ho=to.tgtH,go=to.srcShape,mo=to.tgtShape,yo=to.srcCornerRadius,So=to.tgtCornerRadius,_o=to.srcRs,ko=to.tgtRs,Co=!number$1(no.startX)||!number$1(no.startY),$o=!number$1(no.arrowStartX)||!number$1(no.arrowStartY),Ro=!number$1(no.endX)||!number$1(no.endY),Oo=!number$1(no.arrowEndX)||!number$1(no.arrowEndY),No=3,Mo=this.getArrowWidth(eo.pstyle("width").pfValue,eo.pstyle("arrow-scale").value)*this.arrowShapeWidth,Bo=No*Mo,Po=dist({x:no.ctrlpts[0],y:no.ctrlpts[1]},{x:no.startX,y:no.startY}),Lo=PoJo.poolIndex()){var ps=qo;qo=Jo,Jo=ps}var Qo=Do.srcPos=qo.position(),hs=Do.tgtPos=Jo.position(),gs=Do.srcW=qo.outerWidth(),ys=Do.srcH=qo.outerHeight(),vs=Do.tgtW=Jo.outerWidth(),ks=Do.tgtH=Jo.outerHeight(),Os=Do.srcShape=no.nodeShapes[to.getNodeShape(qo)],Ts=Do.tgtShape=no.nodeShapes[to.getNodeShape(Jo)],Xs=Do.srcCornerRadius=qo.pstyle("corner-radius").value==="auto"?"auto":qo.pstyle("corner-radius").pfValue,Ws=Do.tgtCornerRadius=Jo.pstyle("corner-radius").value==="auto"?"auto":Jo.pstyle("corner-radius").pfValue,Ps=Do.tgtRs=Jo._private.rscratch,qs=Do.srcRs=qo._private.rscratch;Do.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var ga=0;ga0){var El=ao,yl=sqdist(El,array2point(no)),Gl=sqdist(El,array2point(Vs)),Qs=yl;if(Gl2){var du=sqdist(El,{x:Vs[2],y:Vs[3]});du0){var Zs=lo,Cl=sqdist(Zs,array2point(no)),ba=sqdist(Zs,array2point(Ds)),fu=Cl;if(ba2){var Lu=sqdist(Zs,{x:Ds[2],y:Ds[3]});Lu=ko||Lo){$o={cp:Mo,segment:Po};break}}if($o)break}var Go=$o.cp,Do=$o.segment,Uo=(ko-Ro)/Do.length,Ho=Do.t1-Do.t0,Yo=_o?Do.t0+Ho*Uo:Do.t1-Ho*Uo;Yo=bound(0,Yo,1),to=qbezierPtAt(Go.p0,Go.p1,Go.p2,Yo),So=bezierAngle(Go.p0,Go.p1,Go.p2,Yo);break}case"straight":case"segments":case"haystack":{for(var qo=0,Jo,ps,Qo,hs,gs=io.allpts.length,ys=0;ys+3=ko));ys+=2);var vs=ko-ps,ks=vs/Jo;ks=bound(0,ks,1),to=lineAt(Qo,hs,ks),So=lineAngle(Qo,hs);break}}lo("labelX",yo,to.x),lo("labelY",yo,to.y),lo("labelAutoAngle",yo,So)}};go("source"),go("target"),this.applyLabelDimensions(eo)}};BRp$9.applyLabelDimensions=function(eo){this.applyPrefixedLabelDimensions(eo),eo.isEdge()&&(this.applyPrefixedLabelDimensions(eo,"source"),this.applyPrefixedLabelDimensions(eo,"target"))};BRp$9.applyPrefixedLabelDimensions=function(eo,to){var no=eo._private,io=this.getLabelText(eo,to),so=this.calculateLabelDimensions(eo,io),ao=eo.pstyle("line-height").pfValue,lo=eo.pstyle("text-wrap").strValue,uo=getPrefixedProperty(no.rscratch,"labelWrapCachedLines",to)||[],ho=lo!=="wrap"?1:Math.max(uo.length,1),go=so.height/ho,mo=go*ao,yo=so.width,So=so.height+(ho-1)*(ao-1)*go;setPrefixedProperty(no.rstyle,"labelWidth",to,yo),setPrefixedProperty(no.rscratch,"labelWidth",to,yo),setPrefixedProperty(no.rstyle,"labelHeight",to,So),setPrefixedProperty(no.rscratch,"labelHeight",to,So),setPrefixedProperty(no.rscratch,"labelLineHeight",to,mo)};BRp$9.getLabelText=function(eo,to){var no=eo._private,io=to?to+"-":"",so=eo.pstyle(io+"label").strValue,ao=eo.pstyle("text-transform").value,lo=function(vs,ks){return ks?(setPrefixedProperty(no.rscratch,vs,to,ks),ks):getPrefixedProperty(no.rscratch,vs,to)};if(!so)return"";ao=="none"||(ao=="uppercase"?so=so.toUpperCase():ao=="lowercase"&&(so=so.toLowerCase()));var uo=eo.pstyle("text-wrap").value;if(uo==="wrap"){var ho=lo("labelKey");if(ho!=null&&lo("labelWrapKey")===ho)return lo("labelWrapCachedText");for(var go="​",mo=so.split(` -`),yo=eo.pstyle("text-max-width").pfValue,So=eo.pstyle("text-overflow-wrap").value,_o=So==="anywhere",ko=[],Co=/[\s\u200b]+/,$o=_o?"":" ",Ro=0;Royo){for(var Po=Oo.split(Co),Lo="",Go=0;Go0&&arguments[0]!==void 0?arguments[0]:emptyOpts,to=arguments.length>1?arguments[1]:void 0,no=0;no=0;uo--)lo(uo);return this};p.removeAllListeners=function(){return this.removeListener("*")};p.emit=p.trigger=function(eo,to,no){var io=this.listeners,so=io.length;return this.emitting++,array(to)||(to=[to]),forEachEventObj(this,function(ao,lo){no!=null&&(io=[{event:lo.event,type:lo.type,namespace:lo.namespace,callback:no}],so=io.length);for(var uo=function(mo){var yo=io[mo];if(yo.type===lo.type&&(!yo.namespace||yo.namespace===lo.namespace||yo.namespace===universalNamespace)&&ao.eventMatches(ao.context,yo,lo)){var So=[lo];to!=null&&push(So,to),ao.beforeEmit(ao.context,yo,lo),yo.conf&&yo.conf.one&&(ao.listeners=ao.listeners.filter(function(Co){return Co!==yo}));var _o=ao.callbackContext(ao.context,yo,lo),ko=yo.callback.apply(_o,So);ao.afterEmit(ao.context,yo,lo),ko===!1&&(lo.stopPropagation(),lo.preventDefault())}},ho=0;ho1&&!lo){var uo=this.length-1,ho=this[uo],go=ho._private.data.id;this[uo]=void 0,this[to]=ho,ao.set(go,{ele:ho,index:to})}return this.length--,this},unmergeOne:function eo(to){to=to[0];var no=this._private,io=to._private.data.id,so=no.map,ao=so.get(io);if(!ao)return this;var lo=ao.index;return this.unmergeAt(lo),this},unmerge:function eo(to){var no=this._private.cy;if(!to)return this;if(to&&string(to)){var io=to;to=no.mutableElements().filter(io)}for(var so=0;so=0;no--){var io=this[no];to(io)&&this.unmergeAt(no)}return this},map:function eo(to,no){for(var io=[],so=this,ao=0;aoio&&(io=ho,so=uo)}return{value:io,ele:so}},min:function eo(to,no){for(var io=1/0,so,ao=this,lo=0;lo=0&&ao"u"?"undefined":_typeof(Symbol))!=to&&_typeof(Symbol.iterator)!=to;no&&(elesfn$6[Symbol.iterator]=function(){var io=this,so={value:void 0,done:!1},ao=0,lo=this.length;return _defineProperty$1({next:function(){return ao1&&arguments[1]!==void 0?arguments[1]:!0,io=this[0],so=io.cy();if(so.styleEnabled()&&io){this.cleanStyle();var ao=io._private.style[to];return ao??(no?so.style().getDefaultProperty(to):null)}},numericStyle:function eo(to){var no=this[0];if(no.cy().styleEnabled()&&no){var io=no.pstyle(to);return io.pfValue!==void 0?io.pfValue:io.value}},numericStyleUnits:function eo(to){var no=this[0];if(no.cy().styleEnabled()&&no)return no.pstyle(to).units},renderedStyle:function eo(to){var no=this.cy();if(!no.styleEnabled())return this;var io=this[0];if(io)return no.style().getRenderedStyle(io,to)},style:function eo(to,no){var io=this.cy();if(!io.styleEnabled())return this;var so=!1,ao=io.style();if(plainObject(to)){var lo=to;ao.applyBypass(this,lo,so),this.emitAndNotify("style")}else if(string(to))if(no===void 0){var uo=this[0];return uo?ao.getStylePropertyValue(uo,to):void 0}else ao.applyBypass(this,to,no,so),this.emitAndNotify("style");else if(to===void 0){var ho=this[0];return ho?ao.getRawStyle(ho):void 0}return this},removeStyle:function eo(to){var no=this.cy();if(!no.styleEnabled())return this;var io=!1,so=no.style(),ao=this;if(to===void 0)for(var lo=0;lo0&&to.push(mo[0]),to.push(uo[0])}return this.spawn(to,!0).filter(eo)},"neighborhood"),closedNeighborhood:function eo(to){return this.neighborhood().add(this).filter(to)},openNeighborhood:function eo(to){return this.neighborhood(to)}});elesfn$2.neighbourhood=elesfn$2.neighborhood;elesfn$2.closedNeighbourhood=elesfn$2.closedNeighborhood;elesfn$2.openNeighbourhood=elesfn$2.openNeighborhood;extend(elesfn$2,{source:cache(function eo(to){var no=this[0],io;return no&&(io=no._private.source||no.cy().collection()),io&&to?io.filter(to):io},"source"),target:cache(function eo(to){var no=this[0],io;return no&&(io=no._private.target||no.cy().collection()),io&&to?io.filter(to):io},"target"),sources:defineSourceFunction({attr:"source"}),targets:defineSourceFunction({attr:"target"})});function defineSourceFunction(eo){return function(no){for(var io=[],so=0;so0);return lo},component:function eo(){var to=this[0];return to.cy().mutableElements().components(to)[0]}});elesfn$2.componentsOf=elesfn$2.components;var Collection=function eo(to,no){var io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,so=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(to===void 0){error("A collection must have a reference to the core");return}var ao=new Map$2,lo=!1;if(!no)no=[];else if(no.length>0&&plainObject(no[0])&&!element(no[0])){lo=!0;for(var uo=[],ho=new Set$1,go=0,mo=no.length;go0&&arguments[0]!==void 0?arguments[0]:!0,to=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,no=this,io=no.cy(),so=io._private,ao=[],lo=[],uo,ho=0,go=no.length;ho0){for(var ys=uo.length===no.length?no:new Collection(io,uo),vs=0;vs0&&arguments[0]!==void 0?arguments[0]:!0,to=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,no=this,io=[],so={},ao=no._private.cy;function lo(Jo){for(var ps=Jo._private.edges,Qo=0;Qo0&&(eo?Ho.emitAndNotify("remove"):to&&Ho.emit("remove"));for(var Yo=0;Yo0?Yo=Jo:Ho=Jo;while(Math.abs(qo)>lo&&++ps=ao?Oo(Uo,ps):Qo===0?ps:Mo(Uo,Ho,Ho+go)}var Fo=!1;function Lo(){Fo=!0,(eo!==to||no!==io)&&No()}var Go=function(Ho){return Fo||Lo(),eo===to&&no===io?Ho:Ho===0?0:Ho===1?1:$o(Bo(Ho),to,io)};Go.getControlPoints=function(){return[{x:eo,y:to},{x:no,y:io}]};var Do="generateBezier("+[eo,to,no,io]+")";return Go.toString=function(){return Do},Go}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var generateSpringRK4=function(){function eo(io){return-io.tension*io.x-io.friction*io.v}function to(io,so,ao){var lo={x:io.x+ao.dx*so,v:io.v+ao.dv*so,tension:io.tension,friction:io.friction};return{dx:lo.v,dv:eo(lo)}}function no(io,so){var ao={dx:io.v,dv:eo(io)},lo=to(io,so*.5,ao),uo=to(io,so*.5,lo),ho=to(io,so,uo),go=1/6*(ao.dx+2*(lo.dx+uo.dx)+ho.dx),mo=1/6*(ao.dv+2*(lo.dv+uo.dv)+ho.dv);return io.x=io.x+go*so,io.v=io.v+mo*so,io}return function io(so,ao,lo){var uo={x:-1,v:0,tension:null,friction:null},ho=[0],go=0,mo=1/1e4,yo=16/1e3,So,_o,ko;for(so=parseFloat(so)||500,ao=parseFloat(ao)||20,lo=lo||null,uo.tension=so,uo.friction=ao,So=lo!==null,So?(go=io(so,ao),_o=go/lo*yo):_o=yo;ko=no(ko||uo,_o),ho.push(1+ko.x),go+=16,Math.abs(ko.x)>mo&&Math.abs(ko.v)>mo;);return So?function(Co){return ho[Co*(ho.length-1)|0]}:go}}(),cubicBezier=function eo(to,no,io,so){var ao=generateCubicBezier(to,no,io,so);return function(lo,uo,ho){return lo+(uo-lo)*ao(ho)}},easings={linear:function eo(to,no,io){return to+(no-to)*io},ease:cubicBezier(.25,.1,.25,1),"ease-in":cubicBezier(.42,0,1,1),"ease-out":cubicBezier(0,0,.58,1),"ease-in-out":cubicBezier(.42,0,.58,1),"ease-in-sine":cubicBezier(.47,0,.745,.715),"ease-out-sine":cubicBezier(.39,.575,.565,1),"ease-in-out-sine":cubicBezier(.445,.05,.55,.95),"ease-in-quad":cubicBezier(.55,.085,.68,.53),"ease-out-quad":cubicBezier(.25,.46,.45,.94),"ease-in-out-quad":cubicBezier(.455,.03,.515,.955),"ease-in-cubic":cubicBezier(.55,.055,.675,.19),"ease-out-cubic":cubicBezier(.215,.61,.355,1),"ease-in-out-cubic":cubicBezier(.645,.045,.355,1),"ease-in-quart":cubicBezier(.895,.03,.685,.22),"ease-out-quart":cubicBezier(.165,.84,.44,1),"ease-in-out-quart":cubicBezier(.77,0,.175,1),"ease-in-quint":cubicBezier(.755,.05,.855,.06),"ease-out-quint":cubicBezier(.23,1,.32,1),"ease-in-out-quint":cubicBezier(.86,0,.07,1),"ease-in-expo":cubicBezier(.95,.05,.795,.035),"ease-out-expo":cubicBezier(.19,1,.22,1),"ease-in-out-expo":cubicBezier(1,0,0,1),"ease-in-circ":cubicBezier(.6,.04,.98,.335),"ease-out-circ":cubicBezier(.075,.82,.165,1),"ease-in-out-circ":cubicBezier(.785,.135,.15,.86),spring:function eo(to,no,io){if(io===0)return easings.linear;var so=generateSpringRK4(to,no,io);return function(ao,lo,uo){return ao+(lo-ao)*so(uo)}},"cubic-bezier":cubicBezier};function getEasedValue(eo,to,no,io,so){if(io===1||to===no)return no;var ao=so(to,no,io);return eo==null||((eo.roundValue||eo.color)&&(ao=Math.round(ao)),eo.min!==void 0&&(ao=Math.max(ao,eo.min)),eo.max!==void 0&&(ao=Math.min(ao,eo.max))),ao}function getValue(eo,to){return eo.pfValue!=null||eo.value!=null?eo.pfValue!=null&&(to==null||to.type.units!=="%")?eo.pfValue:eo.value:eo}function ease(eo,to,no,io,so){var ao=so!=null?so.type:null;no<0?no=0:no>1&&(no=1);var lo=getValue(eo,so),uo=getValue(to,so);if(number$1(lo)&&number$1(uo))return getEasedValue(ao,lo,uo,no,io);if(array(lo)&&array(uo)){for(var ho=[],go=0;go0?(_o==="spring"&&ko.push(lo.duration),lo.easingImpl=easings[_o].apply(null,ko)):lo.easingImpl=easings[_o]}var Co=lo.easingImpl,$o;if(lo.duration===0?$o=1:$o=(no-ho)/lo.duration,lo.applying&&($o=lo.progress),$o<0?$o=0:$o>1&&($o=1),lo.delay==null){var Ro=lo.startPosition,Oo=lo.position;if(Oo&&so&&!eo.locked()){var No={};valid(Ro.x,Oo.x)&&(No.x=ease(Ro.x,Oo.x,$o,Co)),valid(Ro.y,Oo.y)&&(No.y=ease(Ro.y,Oo.y,$o,Co)),eo.position(No)}var Mo=lo.startPan,Bo=lo.pan,Fo=ao.pan,Lo=Bo!=null&&io;Lo&&(valid(Mo.x,Bo.x)&&(Fo.x=ease(Mo.x,Bo.x,$o,Co)),valid(Mo.y,Bo.y)&&(Fo.y=ease(Mo.y,Bo.y,$o,Co)),eo.emit("pan"));var Go=lo.startZoom,Do=lo.zoom,Uo=Do!=null&&io;Uo&&(valid(Go,Do)&&(ao.zoom=bound(ao.minZoom,ease(Go,Do,$o,Co),ao.maxZoom)),eo.emit("zoom")),(Lo||Uo)&&eo.emit("viewport");var Ho=lo.style;if(Ho&&Ho.length>0&&so){for(var Yo=0;Yo=0;Lo--){var Go=Fo[Lo];Go()}Fo.splice(0,Fo.length)},Oo=_o.length-1;Oo>=0;Oo--){var No=_o[Oo],Mo=No._private;if(Mo.stopped){_o.splice(Oo,1),Mo.hooked=!1,Mo.playing=!1,Mo.started=!1,Ro(Mo.frames);continue}!Mo.playing&&!Mo.applying||(Mo.playing&&Mo.applying&&(Mo.applying=!1),Mo.started||startAnimation(mo,No,eo),step$1(mo,No,eo,yo),Mo.applying&&(Mo.applying=!1),Ro(Mo.frames),Mo.step!=null&&Mo.step(eo),No.completed()&&(_o.splice(Oo,1),Mo.hooked=!1,Mo.playing=!1,Mo.started=!1,Ro(Mo.completes)),Co=!0)}return!yo&&_o.length===0&&ko.length===0&&io.push(mo),Co}for(var ao=!1,lo=0;lo0?to.notify("draw",no):to.notify("draw")),no.unmerge(io),to.emit("step")}var corefn$8={animate:define.animate(),animation:define.animation(),animated:define.animated(),clearQueue:define.clearQueue(),delay:define.delay(),delayAnimation:define.delayAnimation(),stop:define.stop(),addToAnimationPool:function eo(to){var no=this;no.styleEnabled()&&no._private.aniEles.merge(to)},stopAnimationLoop:function eo(){this._private.animationsRunning=!1},startAnimationLoop:function eo(){var to=this;if(to._private.animationsRunning=!0,!to.styleEnabled())return;function no(){to._private.animationsRunning&&requestAnimationFrame$1(function(ao){stepAll(ao,to),no()})}var io=to.renderer();io&&io.beforeRender?io.beforeRender(function(ao,lo){stepAll(lo,to)},io.beforeRenderPriorities.animations):no()}},emitterOptions={qualifierCompare:function eo(to,no){return to==null||no==null?to==null&&no==null:to.sameText(no)},eventMatches:function eo(to,no,io){var so=no.qualifier;return so!=null?to!==io.target&&element(io.target)&&so.matches(io.target):!0},addEventFields:function eo(to,no){no.cy=to,no.target=to},callbackContext:function eo(to,no,io){return no.qualifier!=null?io.target:to}},argSelector=function eo(to){return string(to)?new Selector(to):to},elesfn={createEmitter:function eo(){var to=this._private;return to.emitter||(to.emitter=new Emitter(emitterOptions,this)),this},emitter:function eo(){return this._private.emitter},on:function eo(to,no,io){return this.emitter().on(to,argSelector(no),io),this},removeListener:function eo(to,no,io){return this.emitter().removeListener(to,argSelector(no),io),this},removeAllListeners:function eo(){return this.emitter().removeAllListeners(),this},one:function eo(to,no,io){return this.emitter().one(to,argSelector(no),io),this},once:function eo(to,no,io){return this.emitter().one(to,argSelector(no),io),this},emit:function eo(to,no){return this.emitter().emit(to,no),this},emitAndNotify:function eo(to,no){return this.emit(to),this.notify(to,no),this}};define.eventAliasesOn(elesfn);var corefn$7={png:function eo(to){var no=this._private.renderer;return to=to||{},no.png(to)},jpg:function eo(to){var no=this._private.renderer;return to=to||{},to.bg=to.bg||"#fff",no.jpg(to)}};corefn$7.jpeg=corefn$7.jpg;var corefn$6={layout:function eo(to){var no=this;if(to==null){error("Layout options must be specified to make a layout");return}if(to.name==null){error("A `name` must be specified to make a layout");return}var io=to.name,so=no.extension("layout",io);if(so==null){error("No such layout `"+io+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var ao;string(to.eles)?ao=no.$(to.eles):ao=to.eles!=null?to.eles:no.$();var lo=new so(extend({},to,{cy:no,eles:ao}));return lo}};corefn$6.createLayout=corefn$6.makeLayout=corefn$6.layout;var corefn$5={notify:function eo(to,no){var io=this._private;if(this.batching()){io.batchNotifications=io.batchNotifications||{};var so=io.batchNotifications[to]=io.batchNotifications[to]||this.collection();no!=null&&so.merge(no);return}if(io.notificationsEnabled){var ao=this.renderer();this.destroyed()||!ao||ao.notify(to,no)}},notifications:function eo(to){var no=this._private;return to===void 0?no.notificationsEnabled:(no.notificationsEnabled=!!to,this)},noNotifications:function eo(to){this.notifications(!1),to(),this.notifications(!0)},batching:function eo(){return this._private.batchCount>0},startBatch:function eo(){var to=this._private;return to.batchCount==null&&(to.batchCount=0),to.batchCount===0&&(to.batchStyleEles=this.collection(),to.batchNotifications={}),to.batchCount++,this},endBatch:function eo(){var to=this._private;if(to.batchCount===0)return this;if(to.batchCount--,to.batchCount===0){to.batchStyleEles.updateStyle();var no=this.renderer();Object.keys(to.batchNotifications).forEach(function(io){var so=to.batchNotifications[io];so.empty()?no.notify(io):no.notify(io,so)})}return this},batch:function eo(to){return this.startBatch(),to(),this.endBatch(),this},batchData:function eo(to){var no=this;return this.batch(function(){for(var io=Object.keys(to),so=0;so0;)no.removeChild(no.childNodes[0]);to._private.renderer=null,to.mutableElements().forEach(function(io){var so=io._private;so.rscratch={},so.rstyle={},so.animation.current=[],so.animation.queue=[]})},onRender:function eo(to){return this.on("render",to)},offRender:function eo(to){return this.off("render",to)}};corefn$4.invalidateDimensions=corefn$4.resize;var corefn$3={collection:function eo(to,no){return string(to)?this.$(to):elementOrCollection(to)?to.collection():array(to)?(no||(no={}),new Collection(this,to,no.unique,no.removed)):new Collection(this)},nodes:function eo(to){var no=this.$(function(io){return io.isNode()});return to?no.filter(to):no},edges:function eo(to){var no=this.$(function(io){return io.isEdge()});return to?no.filter(to):no},$:function eo(to){var no=this._private.elements;return to?no.filter(to):no.spawnSelf()},mutableElements:function eo(){return this._private.elements}};corefn$3.elements=corefn$3.filter=corefn$3.$;var styfn$8={},TRUE="t",FALSE="f";styfn$8.apply=function(eo){for(var to=this,no=to._private,io=no.cy,so=io.collection(),ao=0;ao0;if(So||yo&&_o){var ko=void 0;So&&_o||So?ko=go.properties:_o&&(ko=go.mappedProperties);for(var Co=0;Co1&&(Mo=1),uo.color){var Fo=io.valueMin[0],Lo=io.valueMax[0],Go=io.valueMin[1],Do=io.valueMax[1],Uo=io.valueMin[2],Ho=io.valueMax[2],Yo=io.valueMin[3]==null?1:io.valueMin[3],qo=io.valueMax[3]==null?1:io.valueMax[3],Jo=[Math.round(Fo+(Lo-Fo)*Mo),Math.round(Go+(Do-Go)*Mo),Math.round(Uo+(Ho-Uo)*Mo),Math.round(Yo+(qo-Yo)*Mo)];ao={bypass:io.bypass,name:io.name,value:Jo,strValue:"rgb("+Jo[0]+", "+Jo[1]+", "+Jo[2]+")"}}else if(uo.number){var ps=io.valueMin+(io.valueMax-io.valueMin)*Mo;ao=this.parse(io.name,ps,io.bypass,So)}else return!1;if(!ao)return Co(),!1;ao.mapping=io,io=ao;break}case lo.data:{for(var Qo=io.field.split("."),hs=yo.data,gs=0;gs0&&ao>0){for(var uo={},ho=!1,go=0;go0?eo.delayAnimation(lo).play().promise().then(No):No()}).then(function(){return eo.animation({style:uo,duration:ao,easing:eo.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){no.removeBypasses(eo,so),eo.emitAndNotify("style"),io.transitioning=!1})}else io.transitioning&&(this.removeBypasses(eo,so),eo.emitAndNotify("style"),io.transitioning=!1)};styfn$8.checkTrigger=function(eo,to,no,io,so,ao){var lo=this.properties[to],uo=so(lo);uo!=null&&uo(no,io)&&ao(lo)};styfn$8.checkZOrderTrigger=function(eo,to,no,io){var so=this;this.checkTrigger(eo,to,no,io,function(ao){return ao.triggersZOrder},function(){so._private.cy.notify("zorder",eo)})};styfn$8.checkBoundsTrigger=function(eo,to,no,io){this.checkTrigger(eo,to,no,io,function(so){return so.triggersBounds},function(so){eo.dirtyCompoundBoundsCache(),eo.dirtyBoundingBoxCache(),so.triggersBoundsOfParallelBeziers&&to==="curve-style"&&(no==="bezier"||io==="bezier")&&eo.parallelEdges().forEach(function(ao){ao.isBundledBezier()&&ao.dirtyBoundingBoxCache()}),so.triggersBoundsOfConnectedEdges&&to==="display"&&(no==="none"||io==="none")&&eo.connectedEdges().forEach(function(ao){ao.dirtyBoundingBoxCache()})})};styfn$8.checkTriggers=function(eo,to,no,io){eo.dirtyStyleCache(),this.checkZOrderTrigger(eo,to,no,io),this.checkBoundsTrigger(eo,to,no,io)};var styfn$7={};styfn$7.applyBypass=function(eo,to,no,io){var so=this,ao=[],lo=!0;if(to==="*"||to==="**"){if(no!==void 0)for(var uo=0;uoso.length?io=io.substr(so.length):io=""}function ho(){ao.length>lo.length?ao=ao.substr(lo.length):ao=""}for(;;){var go=io.match(/^\s*$/);if(go)break;var mo=io.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!mo){warn("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+io);break}so=mo[0];var yo=mo[1];if(yo!=="core"){var So=new Selector(yo);if(So.invalid){warn("Skipping parsing of block: Invalid selector found in string stylesheet: "+yo),uo();continue}}var _o=mo[2],ko=!1;ao=_o;for(var Co=[];;){var $o=ao.match(/^\s*$/);if($o)break;var Ro=ao.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!Ro){warn("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+_o),ko=!0;break}lo=Ro[0];var Oo=Ro[1],No=Ro[2],Mo=to.properties[Oo];if(!Mo){warn("Skipping property: Invalid property name in: "+lo),ho();continue}var Bo=no.parse(Oo,No);if(!Bo){warn("Skipping property: Invalid property definition in: "+lo),ho();continue}Co.push({name:Oo,val:No}),ho()}if(ko){uo();break}no.selector(yo);for(var Fo=0;Fo=7&&to[0]==="d"&&(mo=new RegExp(uo.data.regex).exec(to))){if(no)return!1;var So=uo.data;return{name:eo,value:mo,strValue:""+to,mapped:So,field:mo[1],bypass:no}}else if(to.length>=10&&to[0]==="m"&&(yo=new RegExp(uo.mapData.regex).exec(to))){if(no||go.multiple)return!1;var _o=uo.mapData;if(!(go.color||go.number))return!1;var ko=this.parse(eo,yo[4]);if(!ko||ko.mapped)return!1;var Co=this.parse(eo,yo[5]);if(!Co||Co.mapped)return!1;if(ko.pfValue===Co.pfValue||ko.strValue===Co.strValue)return warn("`"+eo+": "+to+"` is not a valid mapper because the output range is zero; converting to `"+eo+": "+ko.strValue+"`"),this.parse(eo,ko.strValue);if(go.color){var $o=ko.value,Ro=Co.value,Oo=$o[0]===Ro[0]&&$o[1]===Ro[1]&&$o[2]===Ro[2]&&($o[3]===Ro[3]||($o[3]==null||$o[3]===1)&&(Ro[3]==null||Ro[3]===1));if(Oo)return!1}return{name:eo,value:yo,strValue:""+to,mapped:_o,field:yo[1],fieldMin:parseFloat(yo[2]),fieldMax:parseFloat(yo[3]),valueMin:ko.value,valueMax:Co.value,bypass:no}}}if(go.multiple&&io!=="multiple"){var No;if(ho?No=to.split(/\s+/):array(to)?No=to:No=[to],go.evenMultiple&&No.length%2!==0)return null;for(var Mo=[],Bo=[],Fo=[],Lo="",Go=!1,Do=0;Do0?" ":"")+Uo.strValue}return go.validate&&!go.validate(Mo,Bo)?null:go.singleEnum&&Go?Mo.length===1&&string(Mo[0])?{name:eo,value:Mo[0],strValue:Mo[0],bypass:no}:null:{name:eo,value:Mo,pfValue:Fo,strValue:Lo,bypass:no,units:Bo}}var Ho=function(){for(var Fs=0;Fsgo.max||go.strictMax&&to===go.max))return null;var Qo={name:eo,value:to,strValue:""+to+(Yo||""),units:Yo,bypass:no};return go.unitless||Yo!=="px"&&Yo!=="em"?Qo.pfValue=to:Qo.pfValue=Yo==="px"||!Yo?to:this.getEmSizeInPixels()*to,(Yo==="ms"||Yo==="s")&&(Qo.pfValue=Yo==="ms"?to:1e3*to),(Yo==="deg"||Yo==="rad")&&(Qo.pfValue=Yo==="rad"?to:deg2rad(to)),Yo==="%"&&(Qo.pfValue=to/100),Qo}else if(go.propList){var hs=[],gs=""+to;if(gs!=="none"){for(var ys=gs.split(/\s*,\s*|\s+/),vs=0;vs0&&uo>0&&!isNaN(io.w)&&!isNaN(io.h)&&io.w>0&&io.h>0){ho=Math.min((lo-2*no)/io.w,(uo-2*no)/io.h),ho=ho>this._private.maxZoom?this._private.maxZoom:ho,ho=ho=io.minZoom&&(io.maxZoom=no),this},minZoom:function eo(to){return to===void 0?this._private.minZoom:this.zoomRange({min:to})},maxZoom:function eo(to){return to===void 0?this._private.maxZoom:this.zoomRange({max:to})},getZoomedViewport:function eo(to){var no=this._private,io=no.pan,so=no.zoom,ao,lo,uo=!1;if(no.zoomingEnabled||(uo=!0),number$1(to)?lo=to:plainObject(to)&&(lo=to.level,to.position!=null?ao=modelToRenderedPosition(to.position,so,io):to.renderedPosition!=null&&(ao=to.renderedPosition),ao!=null&&!no.panningEnabled&&(uo=!0)),lo=lo>no.maxZoom?no.maxZoom:lo,lo=lono.maxZoom||!no.zoomingEnabled?lo=!0:(no.zoom=ho,ao.push("zoom"))}if(so&&(!lo||!to.cancelOnFailedZoom)&&no.panningEnabled){var go=to.pan;number$1(go.x)&&(no.pan.x=go.x,uo=!1),number$1(go.y)&&(no.pan.y=go.y,uo=!1),uo||ao.push("pan")}return ao.length>0&&(ao.push("viewport"),this.emit(ao.join(" ")),this.notify("viewport")),this},center:function eo(to){var no=this.getCenterPan(to);return no&&(this._private.pan=no,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function eo(to,no){if(this._private.panningEnabled){if(string(to)){var io=to;to=this.mutableElements().filter(io)}else elementOrCollection(to)||(to=this.mutableElements());if(to.length!==0){var so=to.boundingBox(),ao=this.width(),lo=this.height();no=no===void 0?this._private.zoom:no;var uo={x:(ao-no*(so.x1+so.x2))/2,y:(lo-no*(so.y1+so.y2))/2};return uo}}},reset:function eo(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function eo(){this._private.sizeCache=null},size:function eo(){var to=this._private,no=to.container,io=this;return to.sizeCache=to.sizeCache||(no?function(){var so=io.window().getComputedStyle(no),ao=function(uo){return parseFloat(so.getPropertyValue(uo))};return{width:no.clientWidth-ao("padding-left")-ao("padding-right"),height:no.clientHeight-ao("padding-top")-ao("padding-bottom")}}():{width:1,height:1})},width:function eo(){return this.size().width},height:function eo(){return this.size().height},extent:function eo(){var to=this._private.pan,no=this._private.zoom,io=this.renderedExtent(),so={x1:(io.x1-to.x)/no,x2:(io.x2-to.x)/no,y1:(io.y1-to.y)/no,y2:(io.y2-to.y)/no};return so.w=so.x2-so.x1,so.h=so.y2-so.y1,so},renderedExtent:function eo(){var to=this.width(),no=this.height();return{x1:0,y1:0,x2:to,y2:no,w:to,h:no}},multiClickDebounceTime:function eo(to){if(to)this._private.multiClickDebounceTime=to;else return this._private.multiClickDebounceTime;return this}};corefn$1.centre=corefn$1.center;corefn$1.autolockNodes=corefn$1.autolock;corefn$1.autoungrabifyNodes=corefn$1.autoungrabify;var fn={data:define.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:define.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:define.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:define.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};fn.attr=fn.data;fn.removeAttr=fn.removeData;var Core=function eo(to){var no=this;to=extend({},to);var io=to.container;io&&!htmlElement(io)&&htmlElement(io[0])&&(io=io[0]);var so=io?io._cyreg:null;so=so||{},so&&so.cy&&(so.cy.destroy(),so={});var ao=so.readies=so.readies||[];io&&(io._cyreg=so),so.cy=no;var lo=_window!==void 0&&io!==void 0&&!to.headless,uo=to;uo.layout=extend({name:lo?"grid":"null"},uo.layout),uo.renderer=extend({name:lo?"canvas":"null"},uo.renderer);var ho=function(ko,Co,$o){return Co!==void 0?Co:$o!==void 0?$o:ko},go=this._private={container:io,ready:!1,options:uo,elements:new Collection(this),listeners:[],aniEles:new Collection(this),data:uo.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:ho(!0,uo.zoomingEnabled),userZoomingEnabled:ho(!0,uo.userZoomingEnabled),panningEnabled:ho(!0,uo.panningEnabled),userPanningEnabled:ho(!0,uo.userPanningEnabled),boxSelectionEnabled:ho(!0,uo.boxSelectionEnabled),autolock:ho(!1,uo.autolock,uo.autolockNodes),autoungrabify:ho(!1,uo.autoungrabify,uo.autoungrabifyNodes),autounselectify:ho(!1,uo.autounselectify),styleEnabled:uo.styleEnabled===void 0?lo:uo.styleEnabled,zoom:number$1(uo.zoom)?uo.zoom:1,pan:{x:plainObject(uo.pan)&&number$1(uo.pan.x)?uo.pan.x:0,y:plainObject(uo.pan)&&number$1(uo.pan.y)?uo.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:ho(250,uo.multiClickDebounceTime)};this.createEmitter(),this.selectionType(uo.selectionType),this.zoomRange({min:uo.minZoom,max:uo.maxZoom});var mo=function(ko,Co){var $o=ko.some(promise);if($o)return Promise$1.all(ko).then(Co);Co(ko)};go.styleEnabled&&no.setStyle([]);var yo=extend({},uo,uo.renderer);no.initRenderer(yo);var So=function(ko,Co,$o){no.notifications(!1);var Ro=no.mutableElements();Ro.length>0&&Ro.remove(),ko!=null&&(plainObject(ko)||array(ko))&&no.add(ko),no.one("layoutready",function(No){no.notifications(!0),no.emit(No),no.one("load",Co),no.emitAndNotify("load")}).one("layoutstop",function(){no.one("done",$o),no.emit("done")});var Oo=extend({},no._private.options.layout);Oo.eles=no.elements(),no.layout(Oo).run()};mo([uo.style,uo.elements],function(_o){var ko=_o[0],Co=_o[1];go.styleEnabled&&no.style().append(ko),So(Co,function(){no.startAnimationLoop(),go.ready=!0,fn$6(uo.ready)&&no.on("ready",uo.ready);for(var $o=0;$o0,ho=makeBoundingBox(to.boundingBox?to.boundingBox:{x1:0,y1:0,w:no.width(),h:no.height()}),go;if(elementOrCollection(to.roots))go=to.roots;else if(array(to.roots)){for(var mo=[],yo=0;yo0;){var ps=Jo(),Qo=Uo(ps,Yo);if(Qo)ps.outgoers().filter(function(Gl){return Gl.isNode()&&io.has(Gl)}).forEach(qo);else if(Qo===null){warn("Detected double maximal shift for node `"+ps.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}Do();var hs=0;if(to.avoidOverlap)for(var gs=0;gs0&&Ro[0].length<=3?r1/2:0),Is=2*Math.PI/Ro[Ol].length*Fu;return Ol===0&&Ro[0].length===1&&(Kl=1),{x:Vs.x+Kl*Math.cos(Is),y:Vs.y+Kl*Math.sin(Is)}}else{var $u={x:Vs.x+(Fu+1-(ju+1)/2)*F1,y:(Ol+1)*y1};return $u}};return io.nodes().layoutPositions(this,to,yl),this};var defaults$6={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function eo(to,no){return!0},ready:void 0,stop:void 0,transform:function eo(to,no){return no}};function CircleLayout(eo){this.options=extend({},defaults$6,eo)}CircleLayout.prototype.run=function(){var eo=this.options,to=eo,no=eo.cy,io=to.eles,so=to.counterclockwise!==void 0?!to.counterclockwise:to.clockwise,ao=io.nodes().not(":parent");to.sort&&(ao=ao.sort(to.sort));for(var lo=makeBoundingBox(to.boundingBox?to.boundingBox:{x1:0,y1:0,w:no.width(),h:no.height()}),uo={x:lo.x1+lo.w/2,y:lo.y1+lo.h/2},ho=to.sweep===void 0?2*Math.PI-2*Math.PI/ao.length:to.sweep,go=ho/Math.max(1,ao.length-1),mo,yo=0,So=0;So1&&to.avoidOverlap){yo*=1.75;var Ro=Math.cos(go)-Math.cos(0),Oo=Math.sin(go)-Math.sin(0),No=Math.sqrt(yo*yo/(Ro*Ro+Oo*Oo));mo=Math.max(No,mo)}var Mo=function(Fo,Lo){var Go=to.startAngle+Lo*go*(so?1:-1),Do=mo*Math.cos(Go),Uo=mo*Math.sin(Go),Ho={x:uo.x+Do,y:uo.y+Uo};return Ho};return io.nodes().layoutPositions(this,to,Mo),this};var defaults$5={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function eo(to){return to.degree()},levelWidth:function eo(to){return to.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function eo(to,no){return!0},ready:void 0,stop:void 0,transform:function eo(to,no){return no}};function ConcentricLayout(eo){this.options=extend({},defaults$5,eo)}ConcentricLayout.prototype.run=function(){for(var eo=this.options,to=eo,no=to.counterclockwise!==void 0?!to.counterclockwise:to.clockwise,io=eo.cy,so=to.eles,ao=so.nodes().not(":parent"),lo=makeBoundingBox(to.boundingBox?to.boundingBox:{x1:0,y1:0,w:io.width(),h:io.height()}),uo={x:lo.x1+lo.w/2,y:lo.y1+lo.h/2},ho=[],go=0,mo=0;mo0){var Bo=Math.abs(Oo[0].value-Mo.value);Bo>=$o&&(Oo=[],Ro.push(Oo))}Oo.push(Mo)}var Fo=go+to.minNodeSpacing;if(!to.avoidOverlap){var Lo=Ro.length>0&&Ro[0].length>1,Go=Math.min(lo.w,lo.h)/2-Fo,Do=Go/(Ro.length+Lo?1:0);Fo=Math.min(Fo,Do)}for(var Uo=0,Ho=0;Ho1&&to.avoidOverlap){var ps=Math.cos(Jo)-Math.cos(0),Qo=Math.sin(Jo)-Math.sin(0),hs=Math.sqrt(Fo*Fo/(ps*ps+Qo*Qo));Uo=Math.max(hs,Uo)}Yo.r=Uo,Uo+=Fo}if(to.equidistant){for(var gs=0,ys=0,vs=0;vs=eo.numIter||(step(io,eo),io.temperature=io.temperature*eo.coolingFactor,io.temperature=eo.animationThreshold&&ao(),requestAnimationFrame$1(yo)}};mo()}else{for(;go;)go=lo(ho),ho++;separateComponents(io,eo),uo()}return this};CoseLayout.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};CoseLayout.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var createLayoutInfo=function eo(to,no,io){for(var so=io.eles.edges(),ao=io.eles.nodes(),lo=makeBoundingBox(io.boundingBox?io.boundingBox:{x1:0,y1:0,w:to.width(),h:to.height()}),uo={isCompound:to.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:ao.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:so.size(),temperature:io.initialTemp,clientWidth:lo.w,clientHeight:lo.h,boundingBox:lo},ho=io.eles.components(),go={},mo=0;mo0){uo.graphSet.push(Go);for(var mo=0;moso.count?0:so.graph},findLCA_aux=function eo(to,no,io,so){var ao=so.graphSet[io];if(-10)var yo=so.nodeOverlap*mo,So=Math.sqrt(uo*uo+ho*ho),_o=yo*uo/So,ko=yo*ho/So;else var Co=findClippingPoint(to,uo,ho),$o=findClippingPoint(no,-1*uo,-1*ho),Ro=$o.x-Co.x,Oo=$o.y-Co.y,No=Ro*Ro+Oo*Oo,So=Math.sqrt(No),yo=(to.nodeRepulsion+no.nodeRepulsion)/No,_o=yo*Ro/So,ko=yo*Oo/So;to.isLocked||(to.offsetX-=_o,to.offsetY-=ko),no.isLocked||(no.offsetX+=_o,no.offsetY+=ko)}},nodesOverlap=function eo(to,no,io,so){if(io>0)var ao=to.maxX-no.minX;else var ao=no.maxX-to.minX;if(so>0)var lo=to.maxY-no.minY;else var lo=no.maxY-to.minY;return ao>=0&&lo>=0?Math.sqrt(ao*ao+lo*lo):0},findClippingPoint=function eo(to,no,io){var so=to.positionX,ao=to.positionY,lo=to.height||1,uo=to.width||1,ho=io/no,go=lo/uo,mo={};return no===0&&0io?(mo.x=so,mo.y=ao+lo/2,mo):0no&&-1*go<=ho&&ho<=go?(mo.x=so-uo/2,mo.y=ao-uo*io/2/no,mo):0=go)?(mo.x=so+lo*no/2/io,mo.y=ao+lo/2,mo):(0>io&&(ho<=-1*go||ho>=go)&&(mo.x=so-lo*no/2/io,mo.y=ao-lo/2),mo)},calculateEdgeForces=function eo(to,no){for(var io=0;ioio){var $o=no.gravity*_o/Co,Ro=no.gravity*ko/Co;So.offsetX+=$o,So.offsetY+=Ro}}}}},propagateForces=function eo(to,no){var io=[],so=0,ao=-1;for(io.push.apply(io,to.graphSet[0]),ao+=to.graphSet[0].length;so<=ao;){var lo=io[so++],uo=to.idToIndex[lo],ho=to.layoutNodes[uo],go=ho.children;if(0io)var ao={x:io*to/so,y:io*no/so};else var ao={x:to,y:no};return ao},updateAncestryBoundaries=function eo(to,no){var io=to.parentId;if(io!=null){var so=no.layoutNodes[no.idToIndex[io]],ao=!1;if((so.maxX==null||to.maxX+so.padRight>so.maxX)&&(so.maxX=to.maxX+so.padRight,ao=!0),(so.minX==null||to.minX-so.padLeftso.maxY)&&(so.maxY=to.maxY+so.padBottom,ao=!0),(so.minY==null||to.minY-so.padTopRo&&(ko+=$o+no.componentSpacing,_o=0,Co=0,$o=0)}}},defaults$3={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function eo(to){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function eo(to,no){return!0},ready:void 0,stop:void 0,transform:function eo(to,no){return no}};function GridLayout(eo){this.options=extend({},defaults$3,eo)}GridLayout.prototype.run=function(){var eo=this.options,to=eo,no=eo.cy,io=to.eles,so=io.nodes().not(":parent");to.sort&&(so=so.sort(to.sort));var ao=makeBoundingBox(to.boundingBox?to.boundingBox:{x1:0,y1:0,w:no.width(),h:no.height()});if(ao.h===0||ao.w===0)io.nodes().layoutPositions(this,to,function(Ts){return{x:ao.x1,y:ao.y1}});else{var lo=so.size(),uo=Math.sqrt(lo*ao.h/ao.w),ho=Math.round(uo),go=Math.round(ao.w/ao.h*uo),mo=function(Xs){if(Xs==null)return Math.min(ho,go);var Ws=Math.min(ho,go);Ws==ho?ho=Xs:go=Xs},yo=function(Xs){if(Xs==null)return Math.max(ho,go);var Ws=Math.max(ho,go);Ws==ho?ho=Xs:go=Xs},So=to.rows,_o=to.cols!=null?to.cols:to.columns;if(So!=null&&_o!=null)ho=So,go=_o;else if(So!=null&&_o==null)ho=So,go=Math.ceil(lo/ho);else if(So==null&&_o!=null)go=_o,ho=Math.ceil(lo/go);else if(go*ho>lo){var ko=mo(),Co=yo();(ko-1)*Co>=lo?mo(ko-1):(Co-1)*ko>=lo&&yo(Co-1)}else for(;go*ho=lo?yo(Ro+1):mo($o+1)}var Oo=ao.w/go,No=ao.h/ho;if(to.condense&&(Oo=0,No=0),to.avoidOverlap)for(var Mo=0;Mo=go&&(ps=0,Jo++)},hs={},gs=0;gs(ps=sqdistToFiniteLine(eo,to,Qo[hs],Qo[hs+1],Qo[hs+2],Qo[hs+3])))return $o(Lo,ps),!0}else if(Do.edgeType==="bezier"||Do.edgeType==="multibezier"||Do.edgeType==="self"||Do.edgeType==="compound"){for(var Qo=Do.allpts,hs=0;hs+5(ps=sqdistToQuadraticBezier(eo,to,Qo[hs],Qo[hs+1],Qo[hs+2],Qo[hs+3],Qo[hs+4],Qo[hs+5])))return $o(Lo,ps),!0}for(var gs=gs||Go.source,ys=ys||Go.target,vs=so.getArrowWidth(Uo,Ho),ks=[{name:"source",x:Do.arrowStartX,y:Do.arrowStartY,angle:Do.srcArrowAngle},{name:"target",x:Do.arrowEndX,y:Do.arrowEndY,angle:Do.tgtArrowAngle},{name:"mid-source",x:Do.midX,y:Do.midY,angle:Do.midsrcArrowAngle},{name:"mid-target",x:Do.midX,y:Do.midY,angle:Do.midtgtArrowAngle}],hs=0;hs0&&(Ro(gs),Ro(ys))}function No(Lo,Go,Do){return getPrefixedProperty(Lo,Go,Do)}function Mo(Lo,Go){var Do=Lo._private,Uo=So,Ho;Go?Ho=Go+"-":Ho="",Lo.boundingBox();var Yo=Do.labelBounds[Go||"main"],qo=Lo.pstyle(Ho+"label").value,Jo=Lo.pstyle("text-events").strValue==="yes";if(!(!Jo||!qo)){var ps=No(Do.rscratch,"labelX",Go),Qo=No(Do.rscratch,"labelY",Go),hs=No(Do.rscratch,"labelAngle",Go),gs=Lo.pstyle(Ho+"text-margin-x").pfValue,ys=Lo.pstyle(Ho+"text-margin-y").pfValue,vs=Yo.x1-Uo-gs,ks=Yo.x2+Uo-gs,Os=Yo.y1-Uo-ys,Ts=Yo.y2+Uo-ys;if(hs){var Xs=Math.cos(hs),Ws=Math.sin(hs),Ps=function(yl,Gl){return yl=yl-ps,Gl=Gl-Qo,{x:yl*Xs-Gl*Ws+ps,y:yl*Ws+Gl*Xs+Qo}},qs=Ps(vs,Os),ga=Ps(vs,Ts),Fs=Ps(ks,Os),Js=Ps(ks,Ts),Vs=[qs.x+gs,qs.y+ys,Fs.x+gs,Fs.y+ys,Js.x+gs,Js.y+ys,ga.x+gs,ga.y+ys];if(pointInsidePolygonPoints(eo,to,Vs))return $o(Lo),!0}else if(inBoundingBox(Yo,eo,to))return $o(Lo),!0}}for(var Bo=lo.length-1;Bo>=0;Bo--){var Fo=lo[Bo];Fo.isNode()?Ro(Fo)||Mo(Fo):Oo(Fo)||Mo(Fo)||Mo(Fo,"source")||Mo(Fo,"target")}return uo};BRp$e.getAllInBox=function(eo,to,no,io){var so=this.getCachedZSortedEles().interactive,ao=[],lo=Math.min(eo,no),uo=Math.max(eo,no),ho=Math.min(to,io),go=Math.max(to,io);eo=lo,no=uo,to=ho,io=go;for(var mo=makeBoundingBox({x1:eo,y1:to,x2:no,y2:io}),yo=0;yo0?-(Math.PI-to.ang):Math.PI+to.ang},calcCornerArc=function eo(to,no,io,so,ao){if(to!==lastPoint?asVec(no,to,v1):invertVec(v2,v1),asVec(no,io,v2),sinA=v1.nx*v2.ny-v1.ny*v2.nx,sinA90=v1.nx*v2.nx-v1.ny*-v2.ny,angle=Math.asin(Math.max(-1,Math.min(1,sinA))),Math.abs(angle)<1e-6){x$1=no.x,y$1=no.y,cRadius=radius=0;return}radDirection=1,drawDirection=!1,sinA90<0?angle<0?angle=Math.PI+angle:(angle=Math.PI-angle,radDirection=-1,drawDirection=!0):angle>0&&(radDirection=-1,drawDirection=!0),no.radius!==void 0?radius=no.radius:radius=so,halfAngle=angle/2,limit=Math.min(v1.len/2,v2.len/2),ao?(lenOut=Math.abs(Math.cos(halfAngle)*radius/Math.sin(halfAngle)),lenOut>limit?(lenOut=limit,cRadius=Math.abs(lenOut*Math.sin(halfAngle)/Math.cos(halfAngle))):cRadius=radius):(lenOut=Math.min(limit,radius),cRadius=Math.abs(lenOut*Math.sin(halfAngle)/Math.cos(halfAngle))),stopX=no.x+v2.nx*lenOut,stopY=no.y+v2.ny*lenOut,x$1=stopX-v2.ny*cRadius*radDirection,y$1=stopY+v2.nx*cRadius*radDirection,startX=no.x+v1.nx*lenOut,startY=no.y+v1.ny*lenOut,lastPoint=no};function drawPreparedRoundCorner(eo,to){to.radius===0?eo.lineTo(to.cx,to.cy):eo.arc(to.cx,to.cy,to.radius,to.startAngle,to.endAngle,to.counterClockwise)}function getRoundCorner(eo,to,no,io){var so=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return io===0||to.radius===0?{cx:to.x,cy:to.y,radius:0,startX:to.x,startY:to.y,stopX:to.x,stopY:to.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(calcCornerArc(eo,to,no,io,so),{cx:x$1,cy:y$1,radius:cRadius,startX,startY,stopX,stopY,startAngle:v1.ang+Math.PI/2*radDirection,endAngle:v2.ang-Math.PI/2*radDirection,counterClockwise:drawDirection})}var BRp$c={};BRp$c.findMidptPtsEtc=function(eo,to){var no=to.posPts,io=to.intersectionPts,so=to.vectorNormInverse,ao,lo=eo.pstyle("source-endpoint"),uo=eo.pstyle("target-endpoint"),ho=lo.units!=null&&uo.units!=null,go=function(Bo,Fo,Lo,Go){var Do=Go-Fo,Uo=Lo-Bo,Ho=Math.sqrt(Uo*Uo+Do*Do);return{x:-Do/Ho,y:Uo/Ho}},mo=eo.pstyle("edge-distances").value;switch(mo){case"node-position":ao=no;break;case"intersection":ao=io;break;case"endpoints":{if(ho){var yo=this.manualEndptToPx(eo.source()[0],lo),So=_slicedToArray(yo,2),_o=So[0],ko=So[1],Co=this.manualEndptToPx(eo.target()[0],uo),$o=_slicedToArray(Co,2),Ro=$o[0],Oo=$o[1],No={x1:_o,y1:ko,x2:Ro,y2:Oo};so=go(_o,ko,Ro,Oo),ao=No}else warn("Edge ".concat(eo.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),ao=io;break}}return{midptPts:ao,vectorNormInverse:so}};BRp$c.findHaystackPoints=function(eo){for(var to=0;to0?Math.max(Lu-e1,0):Math.min(Lu+e1,0)},qo=Yo(Uo,Go),Jo=Yo(Ho,Do),ps=!1;Oo===go?Ro=Math.abs(qo)>Math.abs(Jo)?so:io:Oo===ho||Oo===uo?(Ro=io,ps=!0):(Oo===ao||Oo===lo)&&(Ro=so,ps=!0);var Qo=Ro===io,hs=Qo?Jo:qo,gs=Qo?Ho:Uo,ys=signum(gs),vs=!1;!(ps&&(Mo||Fo))&&(Oo===uo&&gs<0||Oo===ho&&gs>0||Oo===ao&&gs>0||Oo===lo&&gs<0)&&(ys*=-1,hs=ys*Math.abs(hs),vs=!0);var ks;if(Mo){var Os=Bo<0?1+Bo:Bo;ks=Os*hs}else{var Ts=Bo<0?hs:0;ks=Ts+Bo*ys}var Xs=function(Lu){return Math.abs(Lu)=Math.abs(hs)},Ws=Xs(ks),Ps=Xs(Math.abs(hs)-Math.abs(ks)),qs=Ws||Ps;if(qs&&!vs)if(Qo){var ga=Math.abs(gs)<=So/2,Fs=Math.abs(Uo)<=_o/2;if(ga){var Js=(mo.x1+mo.x2)/2,Vs=mo.y1,El=mo.y2;no.segpts=[Js,Vs,Js,El]}else if(Fs){var yl=(mo.y1+mo.y2)/2,Gl=mo.x1,Qs=mo.x2;no.segpts=[Gl,yl,Qs,yl]}else no.segpts=[mo.x1,mo.y2]}else{var du=Math.abs(gs)<=yo/2,Ol=Math.abs(Ho)<=ko/2;if(du){var Fu=(mo.y1+mo.y2)/2,ju=mo.x1,F1=mo.x2;no.segpts=[ju,Fu,F1,Fu]}else if(Ol){var y1=(mo.x1+mo.x2)/2,r1=mo.y1,$u=mo.y2;no.segpts=[y1,r1,y1,$u]}else no.segpts=[mo.x2,mo.y1]}else if(Qo){var Kl=mo.y1+ks+($o?So/2*ys:0),Is=mo.x1,Ks=mo.x2;no.segpts=[Is,Kl,Ks,Kl]}else{var Bs=mo.x1+ks+($o?yo/2*ys:0),Ds=mo.y1,Zs=mo.y2;no.segpts=[Bs,Ds,Bs,Zs]}if(no.isRound){var Cl=eo.pstyle("taxi-radius").value,ba=eo.pstyle("radius-type").value[0]==="arc-radius";no.radii=new Array(no.segpts.length/2).fill(Cl),no.isArcRadius=new Array(no.segpts.length/2).fill(ba)}};BRp$c.tryToCorrectInvalidPoints=function(eo,to){var no=eo._private.rscratch;if(no.edgeType==="bezier"){var io=to.srcPos,so=to.tgtPos,ao=to.srcW,lo=to.srcH,uo=to.tgtW,ho=to.tgtH,go=to.srcShape,mo=to.tgtShape,yo=to.srcCornerRadius,So=to.tgtCornerRadius,_o=to.srcRs,ko=to.tgtRs,Co=!number$1(no.startX)||!number$1(no.startY),$o=!number$1(no.arrowStartX)||!number$1(no.arrowStartY),Ro=!number$1(no.endX)||!number$1(no.endY),Oo=!number$1(no.arrowEndX)||!number$1(no.arrowEndY),No=3,Mo=this.getArrowWidth(eo.pstyle("width").pfValue,eo.pstyle("arrow-scale").value)*this.arrowShapeWidth,Bo=No*Mo,Fo=dist({x:no.ctrlpts[0],y:no.ctrlpts[1]},{x:no.startX,y:no.startY}),Lo=FoJo.poolIndex()){var ps=qo;qo=Jo,Jo=ps}var Qo=Do.srcPos=qo.position(),hs=Do.tgtPos=Jo.position(),gs=Do.srcW=qo.outerWidth(),ys=Do.srcH=qo.outerHeight(),vs=Do.tgtW=Jo.outerWidth(),ks=Do.tgtH=Jo.outerHeight(),Os=Do.srcShape=no.nodeShapes[to.getNodeShape(qo)],Ts=Do.tgtShape=no.nodeShapes[to.getNodeShape(Jo)],Xs=Do.srcCornerRadius=qo.pstyle("corner-radius").value==="auto"?"auto":qo.pstyle("corner-radius").pfValue,Ws=Do.tgtCornerRadius=Jo.pstyle("corner-radius").value==="auto"?"auto":Jo.pstyle("corner-radius").pfValue,Ps=Do.tgtRs=Jo._private.rscratch,qs=Do.srcRs=qo._private.rscratch;Do.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var ga=0;ga0){var El=ao,yl=sqdist(El,array2point(no)),Gl=sqdist(El,array2point(Vs)),Qs=yl;if(Gl2){var du=sqdist(El,{x:Vs[2],y:Vs[3]});du0){var Zs=lo,Cl=sqdist(Zs,array2point(no)),ba=sqdist(Zs,array2point(Ds)),fu=Cl;if(ba2){var Lu=sqdist(Zs,{x:Ds[2],y:Ds[3]});Lu=ko||Lo){$o={cp:Mo,segment:Fo};break}}if($o)break}var Go=$o.cp,Do=$o.segment,Uo=(ko-Ro)/Do.length,Ho=Do.t1-Do.t0,Yo=_o?Do.t0+Ho*Uo:Do.t1-Ho*Uo;Yo=bound(0,Yo,1),to=qbezierPtAt(Go.p0,Go.p1,Go.p2,Yo),So=bezierAngle(Go.p0,Go.p1,Go.p2,Yo);break}case"straight":case"segments":case"haystack":{for(var qo=0,Jo,ps,Qo,hs,gs=io.allpts.length,ys=0;ys+3=ko));ys+=2);var vs=ko-ps,ks=vs/Jo;ks=bound(0,ks,1),to=lineAt(Qo,hs,ks),So=lineAngle(Qo,hs);break}}lo("labelX",yo,to.x),lo("labelY",yo,to.y),lo("labelAutoAngle",yo,So)}};go("source"),go("target"),this.applyLabelDimensions(eo)}};BRp$9.applyLabelDimensions=function(eo){this.applyPrefixedLabelDimensions(eo),eo.isEdge()&&(this.applyPrefixedLabelDimensions(eo,"source"),this.applyPrefixedLabelDimensions(eo,"target"))};BRp$9.applyPrefixedLabelDimensions=function(eo,to){var no=eo._private,io=this.getLabelText(eo,to),so=this.calculateLabelDimensions(eo,io),ao=eo.pstyle("line-height").pfValue,lo=eo.pstyle("text-wrap").strValue,uo=getPrefixedProperty(no.rscratch,"labelWrapCachedLines",to)||[],ho=lo!=="wrap"?1:Math.max(uo.length,1),go=so.height/ho,mo=go*ao,yo=so.width,So=so.height+(ho-1)*(ao-1)*go;setPrefixedProperty(no.rstyle,"labelWidth",to,yo),setPrefixedProperty(no.rscratch,"labelWidth",to,yo),setPrefixedProperty(no.rstyle,"labelHeight",to,So),setPrefixedProperty(no.rscratch,"labelHeight",to,So),setPrefixedProperty(no.rscratch,"labelLineHeight",to,mo)};BRp$9.getLabelText=function(eo,to){var no=eo._private,io=to?to+"-":"",so=eo.pstyle(io+"label").strValue,ao=eo.pstyle("text-transform").value,lo=function(vs,ks){return ks?(setPrefixedProperty(no.rscratch,vs,to,ks),ks):getPrefixedProperty(no.rscratch,vs,to)};if(!so)return"";ao=="none"||(ao=="uppercase"?so=so.toUpperCase():ao=="lowercase"&&(so=so.toLowerCase()));var uo=eo.pstyle("text-wrap").value;if(uo==="wrap"){var ho=lo("labelKey");if(ho!=null&&lo("labelWrapKey")===ho)return lo("labelWrapCachedText");for(var go="​",mo=so.split(` +`),yo=eo.pstyle("text-max-width").pfValue,So=eo.pstyle("text-overflow-wrap").value,_o=So==="anywhere",ko=[],Co=/[\s\u200b]+/,$o=_o?"":" ",Ro=0;Royo){for(var Fo=Oo.split(Co),Lo="",Go=0;Goqo)break;Jo+=so[hs],hs===so.length-1&&(Qo=!0)}return Qo||(Jo+=ps),Jo}return so};BRp$9.getLabelJustification=function(eo){var to=eo.pstyle("text-justification").strValue,no=eo.pstyle("text-halign").strValue;if(to==="auto")if(eo.isNode())switch(no){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return to};BRp$9.calculateLabelDimensions=function(eo,to){var no=this,io=hashString(to,eo._private.labelDimsKey),so=no.labelDimCache||(no.labelDimCache=[]),ao=so[io];if(ao!=null)return ao;var lo=0,uo=eo.pstyle("font-style").strValue,ho=eo.pstyle("font-size").pfValue,go=eo.pstyle("font-family").strValue,mo=eo.pstyle("font-weight").strValue,yo=this.labelCalcCanvas,So=this.labelCalcCanvasContext;if(!yo){yo=this.labelCalcCanvas=document.createElement("canvas"),So=this.labelCalcCanvasContext=yo.getContext("2d");var _o=yo.style;_o.position="absolute",_o.left="-9999px",_o.top="-9999px",_o.zIndex="-1",_o.visibility="hidden",_o.pointerEvents="none"}So.font="".concat(uo," ").concat(mo," ").concat(ho,"px ").concat(go);for(var ko=0,Co=0,$o=to.split(` -`),Ro=0;Ro<$o.length;Ro++){var Oo=$o[Ro],No=So.measureText(Oo),Mo=Math.ceil(No.width),Bo=ho;ko=Math.max(Mo,ko),Co+=Bo}return ko+=lo,Co+=lo,so[io]={width:ko,height:Co}};BRp$9.calculateLabelAngle=function(eo,to){var no=eo._private,io=no.rscratch,so=eo.isEdge(),ao=to?to+"-":"",lo=eo.pstyle(ao+"text-rotation"),uo=lo.strValue;return uo==="none"?0:so&&uo==="autorotate"?io.labelAutoAngle:uo==="autorotate"?0:lo.pfValue};BRp$9.calculateLabelAngles=function(eo){var to=this,no=eo.isEdge(),io=eo._private,so=io.rscratch;so.labelAngle=to.calculateLabelAngle(eo),no&&(so.sourceLabelAngle=to.calculateLabelAngle(eo,"source"),so.targetLabelAngle=to.calculateLabelAngle(eo,"target"))};var BRp$8={},TOO_SMALL_CUT_RECT=28,warnedCutRect=!1;BRp$8.getNodeShape=function(eo){var to=this,no=eo.pstyle("shape").value;if(no==="cutrectangle"&&(eo.width()1&&arguments[1]!==void 0?arguments[1]:!0;if(to.merge(lo),uo)for(var ho=0;ho=eo.desktopTapThreshold2}var ap=so(Is);yp&&(eo.hoverData.tapholdCancelled=!0);var x0=function(){var Gv=eo.hoverData.dragDelta=eo.hoverData.dragDelta||[];Gv.length===0?(Gv.push(L1[0]),Gv.push(L1[1])):(Gv[0]+=L1[0],Gv[1]+=L1[1])};Bs=!0,io(Gu,["mousemove","vmousemove","tapdrag"],Is,{x:ba[0],y:ba[1]});var b0=function(){eo.data.bgActivePosistion=void 0,eo.hoverData.selecting||Ds.emit({originalEvent:Is,type:"boxstart",position:{x:ba[0],y:ba[1]}}),e1[4]=1,eo.hoverData.selecting=!0,eo.redrawHint("select",!0),eo.redraw()};if(eo.hoverData.which===3){if(yp){var P1={originalEvent:Is,type:"cxtdrag",position:{x:ba[0],y:ba[1]}};Zu?Zu.emit(P1):Ds.emit(P1),eo.hoverData.cxtDragged=!0,(!eo.hoverData.cxtOver||Gu!==eo.hoverData.cxtOver)&&(eo.hoverData.cxtOver&&eo.hoverData.cxtOver.emit({originalEvent:Is,type:"cxtdragout",position:{x:ba[0],y:ba[1]}}),eo.hoverData.cxtOver=Gu,Gu&&Gu.emit({originalEvent:Is,type:"cxtdragover",position:{x:ba[0],y:ba[1]}}))}}else if(eo.hoverData.dragging){if(Bs=!0,Ds.panningEnabled()&&Ds.userPanningEnabled()){var c1;if(eo.hoverData.justStartedPan){var V0=eo.hoverData.mdownPos;c1={x:(ba[0]-V0[0])*Zs,y:(ba[1]-V0[1])*Zs},eo.hoverData.justStartedPan=!1}else c1={x:L1[0]*Zs,y:L1[1]*Zs};Ds.panBy(c1),Ds.emit("dragpan"),eo.hoverData.dragged=!0}ba=eo.projectIntoViewport(Is.clientX,Is.clientY)}else if(e1[4]==1&&(Zu==null||Zu.pannable())){if(yp){if(!eo.hoverData.dragging&&Ds.boxSelectionEnabled()&&(ap||!Ds.panningEnabled()||!Ds.userPanningEnabled()))b0();else if(!eo.hoverData.selecting&&Ds.panningEnabled()&&Ds.userPanningEnabled()){var P0=ao(Zu,eo.hoverData.downs);P0&&(eo.hoverData.dragging=!0,eo.hoverData.justStartedPan=!0,e1[4]=0,eo.data.bgActivePosistion=array2point(fu),eo.redrawHint("select",!0),eo.redraw())}Zu&&Zu.pannable()&&Zu.active()&&Zu.unactivate()}}else{if(Zu&&Zu.pannable()&&Zu.active()&&Zu.unactivate(),(!Zu||!Zu.grabbed())&&Gu!=w1&&(w1&&io(w1,["mouseout","tapdragout"],Is,{x:ba[0],y:ba[1]}),Gu&&io(Gu,["mouseover","tapdragover"],Is,{x:ba[0],y:ba[1]}),eo.hoverData.last=Gu),Zu)if(yp){if(Ds.boxSelectionEnabled()&&ap)Zu&&Zu.grabbed()&&($o(K1),Zu.emit("freeon"),K1.emit("free"),eo.dragData.didDrag&&(Zu.emit("dragfreeon"),K1.emit("dragfree"))),b0();else if(Zu&&Zu.grabbed()&&eo.nodeIsDraggable(Zu)){var up=!eo.dragData.didDrag;up&&eo.redrawHint("eles",!0),eo.dragData.didDrag=!0,eo.hoverData.draggingEles||ko(K1,{inDragLayer:!0});var Lp={x:0,y:0};if(number$1(L1[0])&&number$1(L1[1])&&(Lp.x+=L1[0],Lp.y+=L1[1],up)){var Mv=eo.hoverData.dragDelta;Mv&&number$1(Mv[0])&&number$1(Mv[1])&&(Lp.x+=Mv[0],Lp.y+=Mv[1])}eo.hoverData.draggingEles=!0,K1.silentShift(Lp).emit("position drag"),eo.redrawHint("drag",!0),eo.redraw()}}else x0();Bs=!0}if(e1[2]=ba[0],e1[3]=ba[1],Bs)return Is.stopPropagation&&Is.stopPropagation(),Is.preventDefault&&Is.preventDefault(),!1}},!1);var Uo,Ho,Yo;eo.registerBinding(to,"mouseup",function(Is){var Ks=eo.hoverData.capture;if(Ks){eo.hoverData.capture=!1;var Bs=eo.cy,Ds=eo.projectIntoViewport(Is.clientX,Is.clientY),Zs=eo.selection,Cl=eo.findNearestElement(Ds[0],Ds[1],!0,!1),ba=eo.dragData.possibleDragElements,fu=eo.hoverData.down,Lu=so(Is);if(eo.data.bgActivePosistion&&(eo.redrawHint("select",!0),eo.redraw()),eo.hoverData.tapholdCancelled=!0,eo.data.bgActivePosistion=void 0,fu&&fu.unactivate(),eo.hoverData.which===3){var e1={originalEvent:Is,type:"cxttapend",position:{x:Ds[0],y:Ds[1]}};if(fu?fu.emit(e1):Bs.emit(e1),!eo.hoverData.cxtDragged){var Gu={originalEvent:Is,type:"cxttap",position:{x:Ds[0],y:Ds[1]}};fu?fu.emit(Gu):Bs.emit(Gu)}eo.hoverData.cxtDragged=!1,eo.hoverData.which=null}else if(eo.hoverData.which===1){if(io(Cl,["mouseup","tapend","vmouseup"],Is,{x:Ds[0],y:Ds[1]}),!eo.dragData.didDrag&&!eo.hoverData.dragged&&!eo.hoverData.selecting&&!eo.hoverData.isOverThresholdDrag&&(io(fu,["click","tap","vclick"],Is,{x:Ds[0],y:Ds[1]}),Ho=!1,Is.timeStamp-Yo<=Bs.multiClickDebounceTime()?(Uo&&clearTimeout(Uo),Ho=!0,Yo=null,io(fu,["dblclick","dbltap","vdblclick"],Is,{x:Ds[0],y:Ds[1]})):(Uo=setTimeout(function(){Ho||io(fu,["oneclick","onetap","voneclick"],Is,{x:Ds[0],y:Ds[1]})},Bs.multiClickDebounceTime()),Yo=Is.timeStamp)),fu==null&&!eo.dragData.didDrag&&!eo.hoverData.selecting&&!eo.hoverData.dragged&&!so(Is)&&(Bs.$(no).unselect(["tapunselect"]),ba.length>0&&eo.redrawHint("eles",!0),eo.dragData.possibleDragElements=ba=Bs.collection()),Cl==fu&&!eo.dragData.didDrag&&!eo.hoverData.selecting&&Cl!=null&&Cl._private.selectable&&(eo.hoverData.dragging||(Bs.selectionType()==="additive"||Lu?Cl.selected()?Cl.unselect(["tapunselect"]):Cl.select(["tapselect"]):Lu||(Bs.$(no).unmerge(Cl).unselect(["tapunselect"]),Cl.select(["tapselect"]))),eo.redrawHint("eles",!0)),eo.hoverData.selecting){var w1=Bs.collection(eo.getAllInBox(Zs[0],Zs[1],Zs[2],Zs[3]));eo.redrawHint("select",!0),w1.length>0&&eo.redrawHint("eles",!0),Bs.emit({type:"boxend",originalEvent:Is,position:{x:Ds[0],y:Ds[1]}});var Zu=function(yp){return yp.selectable()&&!yp.selected()};Bs.selectionType()==="additive"||Lu||Bs.$(no).unmerge(w1).unselect(),w1.emit("box").stdFilter(Zu).select().emit("boxselect"),eo.redraw()}if(eo.hoverData.dragging&&(eo.hoverData.dragging=!1,eo.redrawHint("select",!0),eo.redrawHint("eles",!0),eo.redraw()),!Zs[4]){eo.redrawHint("drag",!0),eo.redrawHint("eles",!0);var L1=fu&&fu.grabbed();$o(ba),L1&&(fu.emit("freeon"),ba.emit("free"),eo.dragData.didDrag&&(fu.emit("dragfreeon"),ba.emit("dragfree")))}}Zs[4]=0,eo.hoverData.down=null,eo.hoverData.cxtStarted=!1,eo.hoverData.draggingEles=!1,eo.hoverData.selecting=!1,eo.hoverData.isOverThresholdDrag=!1,eo.dragData.didDrag=!1,eo.hoverData.dragged=!1,eo.hoverData.dragDelta=[],eo.hoverData.mdownPos=null,eo.hoverData.mdownGPos=null}},!1);var qo=function(Is){if(!eo.scrollingPage){var Ks=eo.cy,Bs=Ks.zoom(),Ds=Ks.pan(),Zs=eo.projectIntoViewport(Is.clientX,Is.clientY),Cl=[Zs[0]*Bs+Ds.x,Zs[1]*Bs+Ds.y];if(eo.hoverData.draggingEles||eo.hoverData.dragging||eo.hoverData.cxtStarted||Go()){Is.preventDefault();return}if(Ks.panningEnabled()&&Ks.userPanningEnabled()&&Ks.zoomingEnabled()&&Ks.userZoomingEnabled()){Is.preventDefault(),eo.data.wheelZooming=!0,clearTimeout(eo.data.wheelTimeout),eo.data.wheelTimeout=setTimeout(function(){eo.data.wheelZooming=!1,eo.redrawHint("eles",!0),eo.redraw()},150);var ba;Is.deltaY!=null?ba=Is.deltaY/-250:Is.wheelDeltaY!=null?ba=Is.wheelDeltaY/1e3:ba=Is.wheelDelta/1e3,ba=ba*eo.wheelSensitivity;var fu=Is.deltaMode===1;fu&&(ba*=33);var Lu=Ks.zoom()*Math.pow(10,ba);Is.type==="gesturechange"&&(Lu=eo.gestureStartZoom*Is.scale),Ks.zoom({level:Lu,renderedPosition:{x:Cl[0],y:Cl[1]}}),Ks.emit(Is.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};eo.registerBinding(eo.container,"wheel",qo,!0),eo.registerBinding(to,"scroll",function(Is){eo.scrollingPage=!0,clearTimeout(eo.scrollingPageTimeout),eo.scrollingPageTimeout=setTimeout(function(){eo.scrollingPage=!1},250)},!0),eo.registerBinding(eo.container,"gesturestart",function(Is){eo.gestureStartZoom=eo.cy.zoom(),eo.hasTouchStarted||Is.preventDefault()},!0),eo.registerBinding(eo.container,"gesturechange",function(Kl){eo.hasTouchStarted||qo(Kl)},!0),eo.registerBinding(eo.container,"mouseout",function(Is){var Ks=eo.projectIntoViewport(Is.clientX,Is.clientY);eo.cy.emit({originalEvent:Is,type:"mouseout",position:{x:Ks[0],y:Ks[1]}})},!1),eo.registerBinding(eo.container,"mouseover",function(Is){var Ks=eo.projectIntoViewport(Is.clientX,Is.clientY);eo.cy.emit({originalEvent:Is,type:"mouseover",position:{x:Ks[0],y:Ks[1]}})},!1);var Jo,ps,Qo,hs,gs,ys,vs,ks,Os,Ts,Xs,Ws,Ps,qs=function(Is,Ks,Bs,Ds){return Math.sqrt((Bs-Is)*(Bs-Is)+(Ds-Ks)*(Ds-Ks))},ga=function(Is,Ks,Bs,Ds){return(Bs-Is)*(Bs-Is)+(Ds-Ks)*(Ds-Ks)},Fs;eo.registerBinding(eo.container,"touchstart",Fs=function(Is){if(eo.hasTouchStarted=!0,!!Do(Is)){Oo(),eo.touchData.capture=!0,eo.data.bgActivePosistion=void 0;var Ks=eo.cy,Bs=eo.touchData.now,Ds=eo.touchData.earlier;if(Is.touches[0]){var Zs=eo.projectIntoViewport(Is.touches[0].clientX,Is.touches[0].clientY);Bs[0]=Zs[0],Bs[1]=Zs[1]}if(Is.touches[1]){var Zs=eo.projectIntoViewport(Is.touches[1].clientX,Is.touches[1].clientY);Bs[2]=Zs[0],Bs[3]=Zs[1]}if(Is.touches[2]){var Zs=eo.projectIntoViewport(Is.touches[2].clientX,Is.touches[2].clientY);Bs[4]=Zs[0],Bs[5]=Zs[1]}if(Is.touches[1]){eo.touchData.singleTouchMoved=!0,$o(eo.dragData.touchDragEles);var Cl=eo.findContainerClientCoords();Os=Cl[0],Ts=Cl[1],Xs=Cl[2],Ws=Cl[3],Jo=Is.touches[0].clientX-Os,ps=Is.touches[0].clientY-Ts,Qo=Is.touches[1].clientX-Os,hs=Is.touches[1].clientY-Ts,Ps=0<=Jo&&Jo<=Xs&&0<=Qo&&Qo<=Xs&&0<=ps&&ps<=Ws&&0<=hs&&hs<=Ws;var ba=Ks.pan(),fu=Ks.zoom();gs=qs(Jo,ps,Qo,hs),ys=ga(Jo,ps,Qo,hs),vs=[(Jo+Qo)/2,(ps+hs)/2],ks=[(vs[0]-ba.x)/fu,(vs[1]-ba.y)/fu];var Lu=200,e1=Lu*Lu;if(ys=1){for(var j0=eo.touchData.startPosition=[null,null,null,null,null,null],h0=0;h0=eo.touchTapThreshold2}if(Ks&&eo.touchData.cxt){Is.preventDefault();var j0=Is.touches[0].clientX-Os,h0=Is.touches[0].clientY-Ts,cp=Is.touches[1].clientX-Os,k0=Is.touches[1].clientY-Ts,ap=ga(j0,h0,cp,k0),x0=ap/ys,b0=150,P1=b0*b0,c1=1.5,V0=c1*c1;if(x0>=V0||ap>=P1){eo.touchData.cxt=!1,eo.data.bgActivePosistion=void 0,eo.redrawHint("select",!0);var P0={originalEvent:Is,type:"cxttapend",position:{x:Zs[0],y:Zs[1]}};eo.touchData.start?(eo.touchData.start.unactivate().emit(P0),eo.touchData.start=null):Ds.emit(P0)}}if(Ks&&eo.touchData.cxt){var P0={originalEvent:Is,type:"cxtdrag",position:{x:Zs[0],y:Zs[1]}};eo.data.bgActivePosistion=void 0,eo.redrawHint("select",!0),eo.touchData.start?eo.touchData.start.emit(P0):Ds.emit(P0),eo.touchData.start&&(eo.touchData.start._private.grabbed=!1),eo.touchData.cxtDragged=!0;var up=eo.findNearestElement(Zs[0],Zs[1],!0,!0);(!eo.touchData.cxtOver||up!==eo.touchData.cxtOver)&&(eo.touchData.cxtOver&&eo.touchData.cxtOver.emit({originalEvent:Is,type:"cxtdragout",position:{x:Zs[0],y:Zs[1]}}),eo.touchData.cxtOver=up,up&&up.emit({originalEvent:Is,type:"cxtdragover",position:{x:Zs[0],y:Zs[1]}}))}else if(Ks&&Is.touches[2]&&Ds.boxSelectionEnabled())Is.preventDefault(),eo.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,eo.touchData.selecting||Ds.emit({originalEvent:Is,type:"boxstart",position:{x:Zs[0],y:Zs[1]}}),eo.touchData.selecting=!0,eo.touchData.didSelect=!0,Bs[4]=1,!Bs||Bs.length===0||Bs[0]===void 0?(Bs[0]=(Zs[0]+Zs[2]+Zs[4])/3,Bs[1]=(Zs[1]+Zs[3]+Zs[5])/3,Bs[2]=(Zs[0]+Zs[2]+Zs[4])/3+1,Bs[3]=(Zs[1]+Zs[3]+Zs[5])/3+1):(Bs[2]=(Zs[0]+Zs[2]+Zs[4])/3,Bs[3]=(Zs[1]+Zs[3]+Zs[5])/3),eo.redrawHint("select",!0),eo.redraw();else if(Ks&&Is.touches[1]&&!eo.touchData.didSelect&&Ds.zoomingEnabled()&&Ds.panningEnabled()&&Ds.userZoomingEnabled()&&Ds.userPanningEnabled()){Is.preventDefault(),eo.data.bgActivePosistion=void 0,eo.redrawHint("select",!0);var Lp=eo.dragData.touchDragEles;if(Lp){eo.redrawHint("drag",!0);for(var Mv=0;Mv0&&!eo.hoverData.draggingEles&&!eo.swipePanning&&eo.data.bgActivePosistion!=null&&(eo.data.bgActivePosistion=void 0,eo.redrawHint("select",!0),eo.redraw())}},!1);var Vs;eo.registerBinding(to,"touchcancel",Vs=function(Is){var Ks=eo.touchData.start;eo.touchData.capture=!1,Ks&&Ks.unactivate()});var El,yl,Gl,Qs;if(eo.registerBinding(to,"touchend",El=function(Is){var Ks=eo.touchData.start,Bs=eo.touchData.capture;if(Bs)Is.touches.length===0&&(eo.touchData.capture=!1),Is.preventDefault();else return;var Ds=eo.selection;eo.swipePanning=!1,eo.hoverData.draggingEles=!1;var Zs=eo.cy,Cl=Zs.zoom(),ba=eo.touchData.now,fu=eo.touchData.earlier;if(Is.touches[0]){var Lu=eo.projectIntoViewport(Is.touches[0].clientX,Is.touches[0].clientY);ba[0]=Lu[0],ba[1]=Lu[1]}if(Is.touches[1]){var Lu=eo.projectIntoViewport(Is.touches[1].clientX,Is.touches[1].clientY);ba[2]=Lu[0],ba[3]=Lu[1]}if(Is.touches[2]){var Lu=eo.projectIntoViewport(Is.touches[2].clientX,Is.touches[2].clientY);ba[4]=Lu[0],ba[5]=Lu[1]}Ks&&Ks.unactivate();var e1;if(eo.touchData.cxt){if(e1={originalEvent:Is,type:"cxttapend",position:{x:ba[0],y:ba[1]}},Ks?Ks.emit(e1):Zs.emit(e1),!eo.touchData.cxtDragged){var Gu={originalEvent:Is,type:"cxttap",position:{x:ba[0],y:ba[1]}};Ks?Ks.emit(Gu):Zs.emit(Gu)}eo.touchData.start&&(eo.touchData.start._private.grabbed=!1),eo.touchData.cxt=!1,eo.touchData.start=null,eo.redraw();return}if(!Is.touches[2]&&Zs.boxSelectionEnabled()&&eo.touchData.selecting){eo.touchData.selecting=!1;var w1=Zs.collection(eo.getAllInBox(Ds[0],Ds[1],Ds[2],Ds[3]));Ds[0]=void 0,Ds[1]=void 0,Ds[2]=void 0,Ds[3]=void 0,Ds[4]=0,eo.redrawHint("select",!0),Zs.emit({type:"boxend",originalEvent:Is,position:{x:ba[0],y:ba[1]}});var Zu=function(P1){return P1.selectable()&&!P1.selected()};w1.emit("box").stdFilter(Zu).select().emit("boxselect"),w1.nonempty()&&eo.redrawHint("eles",!0),eo.redraw()}if(Ks!=null&&Ks.unactivate(),Is.touches[2])eo.data.bgActivePosistion=void 0,eo.redrawHint("select",!0);else if(!Is.touches[1]){if(!Is.touches[0]){if(!Is.touches[0]){eo.data.bgActivePosistion=void 0,eo.redrawHint("select",!0);var L1=eo.dragData.touchDragEles;if(Ks!=null){var K1=Ks._private.grabbed;$o(L1),eo.redrawHint("drag",!0),eo.redrawHint("eles",!0),K1&&(Ks.emit("freeon"),L1.emit("free"),eo.dragData.didDrag&&(Ks.emit("dragfreeon"),L1.emit("dragfree"))),io(Ks,["touchend","tapend","vmouseup","tapdragout"],Is,{x:ba[0],y:ba[1]}),Ks.unactivate(),eo.touchData.start=null}else{var yp=eo.findNearestElement(ba[0],ba[1],!0,!0);io(yp,["touchend","tapend","vmouseup","tapdragout"],Is,{x:ba[0],y:ba[1]})}var wp=eo.touchData.startPosition[0]-ba[0],j0=wp*wp,h0=eo.touchData.startPosition[1]-ba[1],cp=h0*h0,k0=j0+cp,ap=k0*Cl*Cl;eo.touchData.singleTouchMoved||(Ks||Zs.$(":selected").unselect(["tapunselect"]),io(Ks,["tap","vclick"],Is,{x:ba[0],y:ba[1]}),yl=!1,Is.timeStamp-Qs<=Zs.multiClickDebounceTime()?(Gl&&clearTimeout(Gl),yl=!0,Qs=null,io(Ks,["dbltap","vdblclick"],Is,{x:ba[0],y:ba[1]})):(Gl=setTimeout(function(){yl||io(Ks,["onetap","voneclick"],Is,{x:ba[0],y:ba[1]})},Zs.multiClickDebounceTime()),Qs=Is.timeStamp)),Ks!=null&&!eo.dragData.didDrag&&Ks._private.selectable&&ap"u"){var du=[],Ol=function(Is){return{clientX:Is.clientX,clientY:Is.clientY,force:1,identifier:Is.pointerId,pageX:Is.pageX,pageY:Is.pageY,radiusX:Is.width/2,radiusY:Is.height/2,screenX:Is.screenX,screenY:Is.screenY,target:Is.target}},Fu=function(Is){return{event:Is,touch:Ol(Is)}},ju=function(Is){du.push(Fu(Is))},F1=function(Is){for(var Ks=0;Ks0)return Os[0]}return null},ko=Object.keys(So),Co=0;Co0?_o:roundRectangleIntersectLine(ao,lo,to,no,io,so,uo,ho)},checkPoint:function(to,no,io,so,ao,lo,uo,ho){ho=ho==="auto"?getRoundRectangleRadius(so,ao):ho;var go=2*ho;if(pointInsidePolygon(to,no,this.points,lo,uo,so,ao-go,[0,-1],io)||pointInsidePolygon(to,no,this.points,lo,uo,so-go,ao,[0,-1],io))return!0;var mo=so/2+2*io,yo=ao/2+2*io,So=[lo-mo,uo-yo,lo-mo,uo,lo+mo,uo,lo+mo,uo-yo];return!!(pointInsidePolygonPoints(to,no,So)||checkInEllipse(to,no,go,go,lo+so/2-ho,uo+ao/2-ho,io)||checkInEllipse(to,no,go,go,lo-so/2+ho,uo+ao/2-ho,io))}}};BRp$2.registerNodeShapes=function(){var eo=this.nodeShapes={},to=this;this.generateEllipse(),this.generatePolygon("triangle",generateUnitNgonPointsFitToSquare(3,0)),this.generateRoundPolygon("round-triangle",generateUnitNgonPointsFitToSquare(3,0)),this.generatePolygon("rectangle",generateUnitNgonPointsFitToSquare(4,0)),eo.square=eo.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var no=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",no),this.generateRoundPolygon("round-diamond",no)}this.generatePolygon("pentagon",generateUnitNgonPointsFitToSquare(5,0)),this.generateRoundPolygon("round-pentagon",generateUnitNgonPointsFitToSquare(5,0)),this.generatePolygon("hexagon",generateUnitNgonPointsFitToSquare(6,0)),this.generateRoundPolygon("round-hexagon",generateUnitNgonPointsFitToSquare(6,0)),this.generatePolygon("heptagon",generateUnitNgonPointsFitToSquare(7,0)),this.generateRoundPolygon("round-heptagon",generateUnitNgonPointsFitToSquare(7,0)),this.generatePolygon("octagon",generateUnitNgonPointsFitToSquare(8,0)),this.generateRoundPolygon("round-octagon",generateUnitNgonPointsFitToSquare(8,0));var io=new Array(20);{var so=generateUnitNgonPoints(5,0),ao=generateUnitNgonPoints(5,Math.PI/5),lo=.5*(3-Math.sqrt(5));lo*=1.57;for(var uo=0;uo=to.deqFastCost*Mo)break}else if(go){if(Oo>=to.deqCost*_o||Oo>=to.deqAvgCost*So)break}else if(No>=to.deqNoDrawCost*fullFpsTime)break;var Bo=to.deq(io,$o,Co);if(Bo.length>0)for(var Po=0;Po0&&(to.onDeqd(io,ko),!go&&to.shouldRedraw(io,ko,$o,Co)&&ao())},uo=to.priority||noop$1;so.beforeRender(lo,uo(io))}}}},ElementTextureCacheLookup=function(){function eo(to){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:falsify;_classCallCheck(this,eo),this.idsByKey=new Map$2,this.keyForId=new Map$2,this.cachesByLvl=new Map$2,this.lvls=[],this.getKey=to,this.doesEleInvalidateKey=no}return _createClass(eo,[{key:"getIdsFor",value:function(no){no==null&&error("Can not get id list for null key");var io=this.idsByKey,so=this.idsByKey.get(no);return so||(so=new Set$1,io.set(no,so)),so}},{key:"addIdForKey",value:function(no,io){no!=null&&this.getIdsFor(no).add(io)}},{key:"deleteIdForKey",value:function(no,io){no!=null&&this.getIdsFor(no).delete(io)}},{key:"getNumberOfIdsForKey",value:function(no){return no==null?0:this.getIdsFor(no).size}},{key:"updateKeyMappingFor",value:function(no){var io=no.id(),so=this.keyForId.get(io),ao=this.getKey(no);this.deleteIdForKey(so,io),this.addIdForKey(ao,io),this.keyForId.set(io,ao)}},{key:"deleteKeyMappingFor",value:function(no){var io=no.id(),so=this.keyForId.get(io);this.deleteIdForKey(so,io),this.keyForId.delete(io)}},{key:"keyHasChangedFor",value:function(no){var io=no.id(),so=this.keyForId.get(io),ao=this.getKey(no);return so!==ao}},{key:"isInvalid",value:function(no){return this.keyHasChangedFor(no)||this.doesEleInvalidateKey(no)}},{key:"getCachesAt",value:function(no){var io=this.cachesByLvl,so=this.lvls,ao=io.get(no);return ao||(ao=new Map$2,io.set(no,ao),so.push(no)),ao}},{key:"getCache",value:function(no,io){return this.getCachesAt(io).get(no)}},{key:"get",value:function(no,io){var so=this.getKey(no),ao=this.getCache(so,io);return ao!=null&&this.updateKeyMappingFor(no),ao}},{key:"getForCachedKey",value:function(no,io){var so=this.keyForId.get(no.id()),ao=this.getCache(so,io);return ao}},{key:"hasCache",value:function(no,io){return this.getCachesAt(io).has(no)}},{key:"has",value:function(no,io){var so=this.getKey(no);return this.hasCache(so,io)}},{key:"setCache",value:function(no,io,so){so.key=no,this.getCachesAt(io).set(no,so)}},{key:"set",value:function(no,io,so){var ao=this.getKey(no);this.setCache(ao,io,so),this.updateKeyMappingFor(no)}},{key:"deleteCache",value:function(no,io){this.getCachesAt(io).delete(no)}},{key:"delete",value:function(no,io){var so=this.getKey(no);this.deleteCache(so,io)}},{key:"invalidateKey",value:function(no){var io=this;this.lvls.forEach(function(so){return io.deleteCache(no,so)})}},{key:"invalidate",value:function(no){var io=no.id(),so=this.keyForId.get(io);this.deleteKeyMappingFor(no);var ao=this.doesEleInvalidateKey(no);return ao&&this.invalidateKey(so),ao||this.getNumberOfIdsForKey(so)===0}}]),eo}(),minTxrH=25,txrStepH=50,minLvl$1=-4,maxLvl$1=3,maxZoom$1=7.99,eleTxrSpacing=8,defTxrWidth=1024,maxTxrW=1024,maxTxrH=1024,minUtility=.2,maxFullness=.8,maxFullnessChecks=10,deqCost$1=.15,deqAvgCost$1=.1,deqNoDrawCost$1=.9,deqFastCost$1=.9,deqRedrawThreshold$1=100,maxDeqSize$1=1,getTxrReasons={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},initDefaults=defaults$g({getKey:null,doesEleInvalidateKey:falsify,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:trueify,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),ElementTextureCache=function eo(to,no){var io=this;io.renderer=to,io.onDequeues=[];var so=initDefaults(no);extend(io,so),io.lookup=new ElementTextureCacheLookup(so.getKey,so.doesEleInvalidateKey),io.setupDequeueing()},ETCp=ElementTextureCache.prototype;ETCp.reasons=getTxrReasons;ETCp.getTextureQueue=function(eo){var to=this;return to.eleImgCaches=to.eleImgCaches||{},to.eleImgCaches[eo]=to.eleImgCaches[eo]||[]};ETCp.getRetiredTextureQueue=function(eo){var to=this,no=to.eleImgCaches.retired=to.eleImgCaches.retired||{},io=no[eo]=no[eo]||[];return io};ETCp.getElementQueue=function(){var eo=this,to=eo.eleCacheQueue=eo.eleCacheQueue||new heap(function(no,io){return io.reqs-no.reqs});return to};ETCp.getElementKeyToQueue=function(){var eo=this,to=eo.eleKeyToCacheQueue=eo.eleKeyToCacheQueue||{};return to};ETCp.getElement=function(eo,to,no,io,so){var ao=this,lo=this.renderer,uo=lo.cy.zoom(),ho=this.lookup;if(!to||to.w===0||to.h===0||isNaN(to.w)||isNaN(to.h)||!eo.visible()||eo.removed()||!ao.allowEdgeTxrCaching&&eo.isEdge()||!ao.allowParentTxrCaching&&eo.isParent())return null;if(io==null&&(io=Math.ceil(log2(uo*no))),io=maxZoom$1||io>maxLvl$1)return null;var go=Math.pow(2,io),mo=to.h*go,yo=to.w*go,So=lo.eleTextBiggerThanMin(eo,go);if(!this.isVisible(eo,So))return null;var _o=ho.get(eo,io);if(_o&&_o.invalidated&&(_o.invalidated=!1,_o.texture.invalidatedWidth-=_o.width),_o)return _o;var ko;if(mo<=minTxrH?ko=minTxrH:mo<=txrStepH?ko=txrStepH:ko=Math.ceil(mo/txrStepH)*txrStepH,mo>maxTxrH||yo>maxTxrW)return null;var Co=ao.getTextureQueue(ko),$o=Co[Co.length-2],Ro=function(){return ao.recycleTexture(ko,yo)||ao.addTexture(ko,yo)};$o||($o=Co[Co.length-1]),$o||($o=Ro()),$o.width-$o.usedWidthio;Ho--)Do=ao.getElement(eo,to,no,Ho,getTxrReasons.downscale);Uo()}else return ao.queueElement(eo,Po.level-1),Po;else{var Yo;if(!No&&!Mo&&!Bo)for(var qo=io-1;qo>=minLvl$1;qo--){var Jo=ho.get(eo,qo);if(Jo){Yo=Jo;break}}if(Oo(Yo))return ao.queueElement(eo,io),Yo;$o.context.translate($o.usedWidth,0),$o.context.scale(go,go),this.drawElement($o.context,eo,to,So,!1),$o.context.scale(1/go,1/go),$o.context.translate(-$o.usedWidth,0)}return _o={x:$o.usedWidth,texture:$o,level:io,scale:go,width:yo,height:mo,scaledLabelShown:So},$o.usedWidth+=Math.ceil(yo+eleTxrSpacing),$o.eleCaches.push(_o),ho.set(eo,io,_o),ao.checkTextureFullness($o),_o};ETCp.invalidateElements=function(eo){for(var to=0;to=minUtility*eo.width&&this.retireTexture(eo)};ETCp.checkTextureFullness=function(eo){var to=this,no=to.getTextureQueue(eo.height);eo.usedWidth/eo.width>maxFullness&&eo.fullnessChecks>=maxFullnessChecks?removeFromArray(no,eo):eo.fullnessChecks++};ETCp.retireTexture=function(eo){var to=this,no=eo.height,io=to.getTextureQueue(no),so=this.lookup;removeFromArray(io,eo),eo.retired=!0;for(var ao=eo.eleCaches,lo=0;lo=to)return lo.retired=!1,lo.usedWidth=0,lo.invalidatedWidth=0,lo.fullnessChecks=0,clearArray(lo.eleCaches),lo.context.setTransform(1,0,0,1,0,0),lo.context.clearRect(0,0,lo.width,lo.height),removeFromArray(so,lo),io.push(lo),lo}};ETCp.queueElement=function(eo,to){var no=this,io=no.getElementQueue(),so=no.getElementKeyToQueue(),ao=this.getKey(eo),lo=so[ao];if(lo)lo.level=Math.max(lo.level,to),lo.eles.merge(eo),lo.reqs++,io.updateItem(lo);else{var uo={eles:eo.spawn().merge(eo),level:to,reqs:1,key:ao};io.push(uo),so[ao]=uo}};ETCp.dequeue=function(eo){for(var to=this,no=to.getElementQueue(),io=to.getElementKeyToQueue(),so=[],ao=to.lookup,lo=0;lo0;lo++){var uo=no.pop(),ho=uo.key,go=uo.eles[0],mo=ao.hasCache(go,uo.level);if(io[ho]=null,mo)continue;so.push(uo);var yo=to.getBoundingBox(go);to.getElement(go,yo,eo,uo.level,getTxrReasons.dequeue)}return so};ETCp.removeFromQueue=function(eo){var to=this,no=to.getElementQueue(),io=to.getElementKeyToQueue(),so=this.getKey(eo),ao=io[so];ao!=null&&(ao.eles.length===1?(ao.reqs=MAX_INT$1,no.updateItem(ao),no.pop(),io[so]=null):ao.eles.unmerge(eo))};ETCp.onDequeue=function(eo){this.onDequeues.push(eo)};ETCp.offDequeue=function(eo){removeFromArray(this.onDequeues,eo)};ETCp.setupDequeueing=defs.setupDequeueing({deqRedrawThreshold:deqRedrawThreshold$1,deqCost:deqCost$1,deqAvgCost:deqAvgCost$1,deqNoDrawCost:deqNoDrawCost$1,deqFastCost:deqFastCost$1,deq:function eo(to,no,io){return to.dequeue(no,io)},onDeqd:function eo(to,no){for(var io=0;io=maxZoom||no>maxLvl)return null}io.validateLayersElesOrdering(no,eo);var ho=io.layersByLevel,go=Math.pow(2,no),mo=ho[no]=ho[no]||[],yo,So=io.levelIsComplete(no,eo),_o,ko=function(){var Uo=function(ps){if(io.validateLayersElesOrdering(ps,eo),io.levelIsComplete(ps,eo))return _o=ho[ps],!0},Ho=function(ps){if(!_o)for(var Qo=no+ps;minLvl<=Qo&&Qo<=maxLvl&&!Uo(Qo);Qo+=ps);};Ho(1),Ho(-1);for(var Yo=mo.length-1;Yo>=0;Yo--){var qo=mo[Yo];qo.invalid&&removeFromArray(mo,qo)}};if(!So)ko();else return mo;var Co=function(){if(!yo){yo=makeBoundingBox();for(var Uo=0;UomaxLayerArea)return null;var qo=io.makeLayer(yo,no);if(Ho!=null){var Jo=mo.indexOf(Ho)+1;mo.splice(Jo,0,qo)}else(Uo.insert===void 0||Uo.insert)&&mo.unshift(qo);return qo};if(io.skipping&&!uo)return null;for(var Ro=null,Oo=eo.length/defNumLayers,No=!uo,Mo=0;Mo=Oo||!boundingBoxInBoundingBox(Ro.bb,Bo.boundingBox()))&&(Ro=$o({insert:!0,after:Ro}),!Ro))return null;_o||No?io.queueLayer(Ro,Bo):io.drawEleInLayer(Ro,Bo,no,to),Ro.eles.push(Bo),Lo[no]=Ro}return _o||(No?null:mo)};LTCp.getEleLevelForLayerLevel=function(eo,to){return eo};LTCp.drawEleInLayer=function(eo,to,no,io){var so=this,ao=this.renderer,lo=eo.context,uo=to.boundingBox();uo.w===0||uo.h===0||!to.visible()||(no=so.getEleLevelForLayerLevel(no,io),ao.setImgSmoothing(lo,!1),ao.drawCachedElement(lo,to,null,null,no,useHighQualityEleTxrReqs),ao.setImgSmoothing(lo,!0))};LTCp.levelIsComplete=function(eo,to){var no=this,io=no.layersByLevel[eo];if(!io||io.length===0)return!1;for(var so=0,ao=0;ao0||lo.invalid)return!1;so+=lo.eles.length}return so===to.length};LTCp.validateLayersElesOrdering=function(eo,to){var no=this.layersByLevel[eo];if(no)for(var io=0;io0){to=!0;break}}return to};LTCp.invalidateElements=function(eo){var to=this;eo.length!==0&&(to.lastInvalidationTime=performanceNow(),!(eo.length===0||!to.haveLayers())&&to.updateElementsInLayers(eo,function(io,so,ao){to.invalidateLayer(io)}))};LTCp.invalidateLayer=function(eo){if(this.lastInvalidationTime=performanceNow(),!eo.invalid){var to=eo.level,no=eo.eles,io=this.layersByLevel[to];removeFromArray(io,eo),eo.elesQueue=[],eo.invalid=!0,eo.replacement&&(eo.replacement.invalid=!0);for(var so=0;so3&&arguments[3]!==void 0?arguments[3]:!0,so=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,ao=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,lo=this,uo=to._private.rscratch;if(!(ao&&!to.visible())&&!(uo.badLine||uo.allpts==null||isNaN(uo.allpts[0]))){var ho;no&&(ho=no,eo.translate(-ho.x1,-ho.y1));var go=ao?to.pstyle("opacity").value:1,mo=ao?to.pstyle("line-opacity").value:1,yo=to.pstyle("curve-style").value,So=to.pstyle("line-style").value,_o=to.pstyle("width").pfValue,ko=to.pstyle("line-cap").value,Co=go*mo,$o=go*mo,Ro=function(){var Yo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Co;yo==="straight-triangle"?(lo.eleStrokeStyle(eo,to,Yo),lo.drawEdgeTrianglePath(to,eo,uo.allpts)):(eo.lineWidth=_o,eo.lineCap=ko,lo.eleStrokeStyle(eo,to,Yo),lo.drawEdgePath(to,eo,uo.allpts,So),eo.lineCap="butt")},Oo=function(){so&&lo.drawEdgeOverlay(eo,to)},No=function(){so&&lo.drawEdgeUnderlay(eo,to)},Mo=function(){var Yo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$o;lo.drawArrowheads(eo,to,Yo)},Bo=function(){lo.drawElementText(eo,to,null,io)};eo.lineJoin="round";var Po=to.pstyle("ghost").value==="yes";if(Po){var Lo=to.pstyle("ghost-offset-x").pfValue,Go=to.pstyle("ghost-offset-y").pfValue,Do=to.pstyle("ghost-opacity").value,Uo=Co*Do;eo.translate(Lo,Go),Ro(Uo),Mo(Uo),eo.translate(-Lo,-Go)}No(),Ro(),Mo(),Oo(),Bo(),no&&eo.translate(ho.x1,ho.y1)}};var drawEdgeOverlayUnderlay=function eo(to){if(!["overlay","underlay"].includes(to))throw new Error("Invalid state");return function(no,io){if(io.visible()){var so=io.pstyle("".concat(to,"-opacity")).value;if(so!==0){var ao=this,lo=ao.usePaths(),uo=io._private.rscratch,ho=io.pstyle("".concat(to,"-padding")).pfValue,go=2*ho,mo=io.pstyle("".concat(to,"-color")).value;no.lineWidth=go,uo.edgeType==="self"&&!lo?no.lineCap="butt":no.lineCap="round",ao.colorStrokeStyle(no,mo[0],mo[1],mo[2],so),ao.drawEdgePath(io,no,uo.allpts,"solid")}}}};CRp$8.drawEdgeOverlay=drawEdgeOverlayUnderlay("overlay");CRp$8.drawEdgeUnderlay=drawEdgeOverlayUnderlay("underlay");CRp$8.drawEdgePath=function(eo,to,no,io){var so=eo._private.rscratch,ao=to,lo,uo=!1,ho=this.usePaths(),go=eo.pstyle("line-dash-pattern").pfValue,mo=eo.pstyle("line-dash-offset").pfValue;if(ho){var yo=no.join("$"),So=so.pathCacheKey&&so.pathCacheKey===yo;So?(lo=to=so.pathCache,uo=!0):(lo=to=new Path2D,so.pathCacheKey=yo,so.pathCache=lo)}if(ao.setLineDash)switch(io){case"dotted":ao.setLineDash([1,1]);break;case"dashed":ao.setLineDash(go),ao.lineDashOffset=mo;break;case"solid":ao.setLineDash([]);break}if(!uo&&!so.badLine)switch(to.beginPath&&to.beginPath(),to.moveTo(no[0],no[1]),so.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var _o=2;_o+35&&arguments[5]!==void 0?arguments[5]:!0,lo=this;if(io==null){if(ao&&!lo.eleTextBiggerThanMin(to))return}else if(io===!1)return;if(to.isNode()){var uo=to.pstyle("label");if(!uo||!uo.value)return;var ho=lo.getLabelJustification(to);eo.textAlign=ho,eo.textBaseline="bottom"}else{var go=to.element()._private.rscratch.badLine,mo=to.pstyle("label"),yo=to.pstyle("source-label"),So=to.pstyle("target-label");if(go||(!mo||!mo.value)&&(!yo||!yo.value)&&(!So||!So.value))return;eo.textAlign="center",eo.textBaseline="bottom"}var _o=!no,ko;no&&(ko=no,eo.translate(-ko.x1,-ko.y1)),so==null?(lo.drawText(eo,to,null,_o,ao),to.isEdge()&&(lo.drawText(eo,to,"source",_o,ao),lo.drawText(eo,to,"target",_o,ao))):lo.drawText(eo,to,so,_o,ao),no&&eo.translate(ko.x1,ko.y1)};CRp$6.getFontCache=function(eo){var to;this.fontCaches=this.fontCaches||[];for(var no=0;no2&&arguments[2]!==void 0?arguments[2]:!0,io=to.pstyle("font-style").strValue,so=to.pstyle("font-size").pfValue+"px",ao=to.pstyle("font-family").strValue,lo=to.pstyle("font-weight").strValue,uo=no?to.effectiveOpacity()*to.pstyle("text-opacity").value:1,ho=to.pstyle("text-outline-opacity").value*uo,go=to.pstyle("color").value,mo=to.pstyle("text-outline-color").value;eo.font=io+" "+lo+" "+so+" "+ao,eo.lineJoin="round",this.colorFillStyle(eo,go[0],go[1],go[2],uo),this.colorStrokeStyle(eo,mo[0],mo[1],mo[2],ho)};function roundRect(eo,to,no,io,so){var ao=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,lo=arguments.length>6?arguments[6]:void 0;eo.beginPath(),eo.moveTo(to+ao,no),eo.lineTo(to+io-ao,no),eo.quadraticCurveTo(to+io,no,to+io,no+ao),eo.lineTo(to+io,no+so-ao),eo.quadraticCurveTo(to+io,no+so,to+io-ao,no+so),eo.lineTo(to+ao,no+so),eo.quadraticCurveTo(to,no+so,to,no+so-ao),eo.lineTo(to,no+ao),eo.quadraticCurveTo(to,no,to+ao,no),eo.closePath(),lo?eo.stroke():eo.fill()}CRp$6.getTextAngle=function(eo,to){var no,io=eo._private,so=io.rscratch,ao=to?to+"-":"",lo=eo.pstyle(ao+"text-rotation"),uo=getPrefixedProperty(so,"labelAngle",to);return lo.strValue==="autorotate"?no=eo.isEdge()?uo:0:lo.strValue==="none"?no=0:no=lo.pfValue,no};CRp$6.drawText=function(eo,to,no){var io=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,so=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,ao=to._private,lo=ao.rscratch,uo=so?to.effectiveOpacity():1;if(!(so&&(uo===0||to.pstyle("text-opacity").value===0))){no==="main"&&(no=null);var ho=getPrefixedProperty(lo,"labelX",no),go=getPrefixedProperty(lo,"labelY",no),mo,yo,So=this.getLabelText(to,no);if(So!=null&&So!==""&&!isNaN(ho)&&!isNaN(go)){this.setupTextStyle(eo,to,so);var _o=no?no+"-":"",ko=getPrefixedProperty(lo,"labelWidth",no),Co=getPrefixedProperty(lo,"labelHeight",no),$o=to.pstyle(_o+"text-margin-x").pfValue,Ro=to.pstyle(_o+"text-margin-y").pfValue,Oo=to.isEdge(),No=to.pstyle("text-halign").value,Mo=to.pstyle("text-valign").value;Oo&&(No="center",Mo="center"),ho+=$o,go+=Ro;var Bo;switch(io?Bo=this.getTextAngle(to,no):Bo=0,Bo!==0&&(mo=ho,yo=go,eo.translate(mo,yo),eo.rotate(Bo),ho=0,go=0),Mo){case"top":break;case"center":go+=Co/2;break;case"bottom":go+=Co;break}var Po=to.pstyle("text-background-opacity").value,Lo=to.pstyle("text-border-opacity").value,Go=to.pstyle("text-border-width").pfValue,Do=to.pstyle("text-background-padding").pfValue,Uo=to.pstyle("text-background-shape").strValue,Ho=Uo.indexOf("round")===0,Yo=2;if(Po>0||Go>0&&Lo>0){var qo=ho-Do;switch(No){case"left":qo-=ko;break;case"center":qo-=ko/2;break}var Jo=go-Co-Do,ps=ko+2*Do,Qo=Co+2*Do;if(Po>0){var hs=eo.fillStyle,gs=to.pstyle("text-background-color").value;eo.fillStyle="rgba("+gs[0]+","+gs[1]+","+gs[2]+","+Po*uo+")",Ho?roundRect(eo,qo,Jo,ps,Qo,Yo):eo.fillRect(qo,Jo,ps,Qo),eo.fillStyle=hs}if(Go>0&&Lo>0){var ys=eo.strokeStyle,vs=eo.lineWidth,ks=to.pstyle("text-border-color").value,Os=to.pstyle("text-border-style").value;if(eo.strokeStyle="rgba("+ks[0]+","+ks[1]+","+ks[2]+","+Lo*uo+")",eo.lineWidth=Go,eo.setLineDash)switch(Os){case"dotted":eo.setLineDash([1,1]);break;case"dashed":eo.setLineDash([4,2]);break;case"double":eo.lineWidth=Go/4,eo.setLineDash([]);break;case"solid":eo.setLineDash([]);break}if(Ho?roundRect(eo,qo,Jo,ps,Qo,Yo,"stroke"):eo.strokeRect(qo,Jo,ps,Qo),Os==="double"){var Ts=Go/2;Ho?roundRect(eo,qo+Ts,Jo+Ts,ps-Ts*2,Qo-Ts*2,Yo,"stroke"):eo.strokeRect(qo+Ts,Jo+Ts,ps-Ts*2,Qo-Ts*2)}eo.setLineDash&&eo.setLineDash([]),eo.lineWidth=vs,eo.strokeStyle=ys}}var Xs=2*to.pstyle("text-outline-width").pfValue;if(Xs>0&&(eo.lineWidth=Xs),to.pstyle("text-wrap").value==="wrap"){var Ws=getPrefixedProperty(lo,"labelWrapCachedLines",no),Ps=getPrefixedProperty(lo,"labelLineHeight",no),qs=ko/2,ga=this.getLabelJustification(to);switch(ga==="auto"||(No==="left"?ga==="left"?ho+=-ko:ga==="center"&&(ho+=-qs):No==="center"?ga==="left"?ho+=-qs:ga==="right"&&(ho+=qs):No==="right"&&(ga==="center"?ho+=qs:ga==="right"&&(ho+=ko))),Mo){case"top":go-=(Ws.length-1)*Ps;break;case"center":case"bottom":go-=(Ws.length-1)*Ps;break}for(var Fs=0;Fs0&&eo.strokeText(Ws[Fs],ho,go),eo.fillText(Ws[Fs],ho,go),go+=Ps}else Xs>0&&eo.strokeText(So,ho,go),eo.fillText(So,ho,go);Bo!==0&&(eo.rotate(-Bo),eo.translate(-mo,-yo))}}};var CRp$5={};CRp$5.drawNode=function(eo,to,no){var io=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,so=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,ao=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,lo=this,uo,ho,go=to._private,mo=go.rscratch,yo=to.position();if(!(!number$1(yo.x)||!number$1(yo.y))&&!(ao&&!to.visible())){var So=ao?to.effectiveOpacity():1,_o=lo.usePaths(),ko,Co=!1,$o=to.padding();uo=to.width()+2*$o,ho=to.height()+2*$o;var Ro;no&&(Ro=no,eo.translate(-Ro.x1,-Ro.y1));for(var Oo=to.pstyle("background-image"),No=Oo.value,Mo=new Array(No.length),Bo=new Array(No.length),Po=0,Lo=0;Lo0&&arguments[0]!==void 0?arguments[0]:qo;lo.eleFillStyle(eo,to,Cl)},Fs=function(){var Cl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ks;lo.colorStrokeStyle(eo,Jo[0],Jo[1],Jo[2],Cl)},Js=function(){var Cl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ws;lo.colorStrokeStyle(eo,Ts[0],Ts[1],Ts[2],Cl)},Vs=function(Cl,ba,fu,Lu){var e1=lo.nodePathCache=lo.nodePathCache||[],Gu=hashStrings(fu==="polygon"?fu+","+Lu.join(","):fu,""+ba,""+Cl,""+qs),w1=e1[Gu],Zu,L1=!1;return w1!=null?(Zu=w1,L1=!0,mo.pathCache=Zu):(Zu=new Path2D,e1[Gu]=mo.pathCache=Zu),{path:Zu,cacheHit:L1}},El=to.pstyle("shape").strValue,yl=to.pstyle("shape-polygon-points").pfValue;if(_o){eo.translate(yo.x,yo.y);var Gl=Vs(uo,ho,El,yl);ko=Gl.path,Co=Gl.cacheHit}var Qs=function(){if(!Co){var Cl=yo;_o&&(Cl={x:0,y:0}),lo.nodeShapes[lo.getNodeShape(to)].draw(ko||eo,Cl.x,Cl.y,uo,ho,qs,mo)}_o?eo.fill(ko):eo.fill()},du=function(){for(var Cl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:So,ba=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,fu=go.backgrounding,Lu=0,e1=0;e10&&arguments[0]!==void 0?arguments[0]:!1,ba=arguments.length>1&&arguments[1]!==void 0?arguments[1]:So;lo.hasPie(to)&&(lo.drawPie(eo,to,ba),Cl&&(_o||lo.nodeShapes[lo.getNodeShape(to)].draw(eo,yo.x,yo.y,uo,ho,qs,mo)))},Fu=function(){var Cl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:So,ba=(Ho>0?Ho:-Ho)*Cl,fu=Ho>0?0:255;Ho!==0&&(lo.colorFillStyle(eo,fu,fu,fu,ba),_o?eo.fill(ko):eo.fill())},ju=function(){if(Yo>0){if(eo.lineWidth=Yo,eo.lineCap=hs,eo.lineJoin=Qo,eo.setLineDash)switch(ps){case"dotted":eo.setLineDash([1,1]);break;case"dashed":eo.setLineDash(ys),eo.lineDashOffset=vs;break;case"solid":case"double":eo.setLineDash([]);break}if(gs!=="center"){if(eo.save(),eo.lineWidth*=2,gs==="inside")_o?eo.clip(ko):eo.clip();else{var Cl=new Path2D;Cl.rect(-uo/2-Yo,-ho/2-Yo,uo+2*Yo,ho+2*Yo),Cl.addPath(ko),eo.clip(Cl,"evenodd")}_o?eo.stroke(ko):eo.stroke(),eo.restore()}else _o?eo.stroke(ko):eo.stroke();if(ps==="double"){eo.lineWidth=Yo/3;var ba=eo.globalCompositeOperation;eo.globalCompositeOperation="destination-out",_o?eo.stroke(ko):eo.stroke(),eo.globalCompositeOperation=ba}eo.setLineDash&&eo.setLineDash([])}},F1=function(){if(Os>0){if(eo.lineWidth=Os,eo.lineCap="butt",eo.setLineDash)switch(Xs){case"dotted":eo.setLineDash([1,1]);break;case"dashed":eo.setLineDash([4,2]);break;case"solid":case"double":eo.setLineDash([]);break}var Cl=yo;_o&&(Cl={x:0,y:0});var ba=lo.getNodeShape(to),fu=Yo;gs==="inside"&&(fu=0),gs==="outside"&&(fu*=2);var Lu=(uo+fu+(Os+Ps))/uo,e1=(ho+fu+(Os+Ps))/ho,Gu=uo*Lu,w1=ho*e1,Zu=lo.nodeShapes[ba].points,L1;if(_o){var K1=Vs(Gu,w1,ba,Zu);L1=K1.path}if(ba==="ellipse")lo.drawEllipsePath(L1||eo,Cl.x,Cl.y,Gu,w1);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(ba)){var yp=0,wp=0,j0=0;ba==="round-diamond"?yp=(fu+Ps+Os)*1.4:ba==="round-heptagon"?(yp=(fu+Ps+Os)*1.075,j0=-(fu/2+Ps+Os)/35):ba==="round-hexagon"?yp=(fu+Ps+Os)*1.12:ba==="round-pentagon"?(yp=(fu+Ps+Os)*1.13,j0=-(fu/2+Ps+Os)/15):ba==="round-tag"?(yp=(fu+Ps+Os)*1.12,wp=(fu/2+Os+Ps)*.07):ba==="round-triangle"&&(yp=(fu+Ps+Os)*(Math.PI/2),j0=-(fu+Ps/2+Os)/Math.PI),yp!==0&&(Lu=(uo+yp)/uo,Gu=uo*Lu,["round-hexagon","round-tag"].includes(ba)||(e1=(ho+yp)/ho,w1=ho*e1)),qs=qs==="auto"?getRoundPolygonRadius(Gu,w1):qs;for(var h0=Gu/2,cp=w1/2,k0=qs+(fu+Os+Ps)/2,ap=new Array(Zu.length/2),x0=new Array(Zu.length/2),b0=0;b00){if(so=so||io.position(),ao==null||lo==null){var _o=io.padding();ao=io.width()+2*_o,lo=io.height()+2*_o}uo.colorFillStyle(no,mo[0],mo[1],mo[2],go),uo.nodeShapes[yo].draw(no,so.x,so.y,ao+ho*2,lo+ho*2,So),no.fill()}}}};CRp$5.drawNodeOverlay=drawNodeOverlayUnderlay("overlay");CRp$5.drawNodeUnderlay=drawNodeOverlayUnderlay("underlay");CRp$5.hasPie=function(eo){return eo=eo[0],eo._private.hasPie};CRp$5.drawPie=function(eo,to,no,io){to=to[0],io=io||to.position();var so=to.cy().style(),ao=to.pstyle("pie-size"),lo=io.x,uo=io.y,ho=to.width(),go=to.height(),mo=Math.min(ho,go)/2,yo=0,So=this.usePaths();So&&(lo=0,uo=0),ao.units==="%"?mo=mo*ao.pfValue:ao.pfValue!==void 0&&(mo=ao.pfValue/2);for(var _o=1;_o<=so.pieBackgroundN;_o++){var ko=to.pstyle("pie-"+_o+"-background-size").value,Co=to.pstyle("pie-"+_o+"-background-color").value,$o=to.pstyle("pie-"+_o+"-background-opacity").value*no,Ro=ko/100;Ro+yo>1&&(Ro=1-yo);var Oo=1.5*Math.PI+2*Math.PI*yo,No=2*Math.PI*Ro,Mo=Oo+No;ko===0||yo>=1||yo+Ro>1||(eo.beginPath(),eo.moveTo(lo,uo),eo.arc(lo,uo,mo,Oo,Mo),eo.closePath(),this.colorFillStyle(eo,Co[0],Co[1],Co[2],$o),eo.fill(),yo+=Ro)}};var CRp$4={},motionBlurDelay=100;CRp$4.getPixelRatio=function(){var eo=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var to=eo.backingStorePixelRatio||eo.webkitBackingStorePixelRatio||eo.mozBackingStorePixelRatio||eo.msBackingStorePixelRatio||eo.oBackingStorePixelRatio||eo.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/to};CRp$4.paintCache=function(eo){for(var to=this.paintCaches=this.paintCaches||[],no=!0,io,so=0;solo.minMbLowQualFrames&&(lo.motionBlurPxRatio=lo.mbPxRBlurry)),lo.clearingMotionBlur&&(lo.motionBlurPxRatio=1),lo.textureDrawLastFrame&&!yo&&(mo[lo.NODE]=!0,mo[lo.SELECT_BOX]=!0);var Oo=ho.style(),No=ho.zoom(),Mo=so!==void 0?so:No,Bo=ho.pan(),Po={x:Bo.x,y:Bo.y},Lo={zoom:No,pan:{x:Bo.x,y:Bo.y}},Go=lo.prevViewport,Do=Go===void 0||Lo.zoom!==Go.zoom||Lo.pan.x!==Go.pan.x||Lo.pan.y!==Go.pan.y;!Do&&!(Co&&!ko)&&(lo.motionBlurPxRatio=1),ao&&(Po=ao),Mo*=uo,Po.x*=uo,Po.y*=uo;var Uo=lo.getCachedZSortedEles();function Ho(Gl,Qs,du,Ol,Fu){var ju=Gl.globalCompositeOperation;Gl.globalCompositeOperation="destination-out",lo.colorFillStyle(Gl,255,255,255,lo.motionBlurTransparency),Gl.fillRect(Qs,du,Ol,Fu),Gl.globalCompositeOperation=ju}function Yo(Gl,Qs){var du,Ol,Fu,ju;!lo.clearingMotionBlur&&(Gl===go.bufferContexts[lo.MOTIONBLUR_BUFFER_NODE]||Gl===go.bufferContexts[lo.MOTIONBLUR_BUFFER_DRAG])?(du={x:Bo.x*_o,y:Bo.y*_o},Ol=No*_o,Fu=lo.canvasWidth*_o,ju=lo.canvasHeight*_o):(du=Po,Ol=Mo,Fu=lo.canvasWidth,ju=lo.canvasHeight),Gl.setTransform(1,0,0,1,0,0),Qs==="motionBlur"?Ho(Gl,0,0,Fu,ju):!to&&(Qs===void 0||Qs)&&Gl.clearRect(0,0,Fu,ju),no||(Gl.translate(du.x,du.y),Gl.scale(Ol,Ol)),ao&&Gl.translate(ao.x,ao.y),so&&Gl.scale(so,so)}if(yo||(lo.textureDrawLastFrame=!1),yo){if(lo.textureDrawLastFrame=!0,!lo.textureCache){lo.textureCache={},lo.textureCache.bb=ho.mutableElements().boundingBox(),lo.textureCache.texture=lo.data.bufferCanvases[lo.TEXTURE_BUFFER];var qo=lo.data.bufferContexts[lo.TEXTURE_BUFFER];qo.setTransform(1,0,0,1,0,0),qo.clearRect(0,0,lo.canvasWidth*lo.textureMult,lo.canvasHeight*lo.textureMult),lo.render({forcedContext:qo,drawOnlyNodeLayer:!0,forcedPxRatio:uo*lo.textureMult});var Lo=lo.textureCache.viewport={zoom:ho.zoom(),pan:ho.pan(),width:lo.canvasWidth,height:lo.canvasHeight};Lo.mpan={x:(0-Lo.pan.x)/Lo.zoom,y:(0-Lo.pan.y)/Lo.zoom}}mo[lo.DRAG]=!1,mo[lo.NODE]=!1;var Jo=go.contexts[lo.NODE],ps=lo.textureCache.texture,Lo=lo.textureCache.viewport;Jo.setTransform(1,0,0,1,0,0),So?Ho(Jo,0,0,Lo.width,Lo.height):Jo.clearRect(0,0,Lo.width,Lo.height);var Qo=Oo.core("outside-texture-bg-color").value,hs=Oo.core("outside-texture-bg-opacity").value;lo.colorFillStyle(Jo,Qo[0],Qo[1],Qo[2],hs),Jo.fillRect(0,0,Lo.width,Lo.height);var No=ho.zoom();Yo(Jo,!1),Jo.clearRect(Lo.mpan.x,Lo.mpan.y,Lo.width/Lo.zoom/uo,Lo.height/Lo.zoom/uo),Jo.drawImage(ps,Lo.mpan.x,Lo.mpan.y,Lo.width/Lo.zoom/uo,Lo.height/Lo.zoom/uo)}else lo.textureOnViewport&&!to&&(lo.textureCache=null);var gs=ho.extent(),ys=lo.pinching||lo.hoverData.dragging||lo.swipePanning||lo.data.wheelZooming||lo.hoverData.draggingEles||lo.cy.animated(),vs=lo.hideEdgesOnViewport&&ys,ks=[];if(ks[lo.NODE]=!mo[lo.NODE]&&So&&!lo.clearedForMotionBlur[lo.NODE]||lo.clearingMotionBlur,ks[lo.NODE]&&(lo.clearedForMotionBlur[lo.NODE]=!0),ks[lo.DRAG]=!mo[lo.DRAG]&&So&&!lo.clearedForMotionBlur[lo.DRAG]||lo.clearingMotionBlur,ks[lo.DRAG]&&(lo.clearedForMotionBlur[lo.DRAG]=!0),mo[lo.NODE]||no||io||ks[lo.NODE]){var Os=So&&!ks[lo.NODE]&&_o!==1,Jo=to||(Os?lo.data.bufferContexts[lo.MOTIONBLUR_BUFFER_NODE]:go.contexts[lo.NODE]),Ts=So&&!Os?"motionBlur":void 0;Yo(Jo,Ts),vs?lo.drawCachedNodes(Jo,Uo.nondrag,uo,gs):lo.drawLayeredElements(Jo,Uo.nondrag,uo,gs),lo.debug&&lo.drawDebugPoints(Jo,Uo.nondrag),!no&&!So&&(mo[lo.NODE]=!1)}if(!io&&(mo[lo.DRAG]||no||ks[lo.DRAG])){var Os=So&&!ks[lo.DRAG]&&_o!==1,Jo=to||(Os?lo.data.bufferContexts[lo.MOTIONBLUR_BUFFER_DRAG]:go.contexts[lo.DRAG]);Yo(Jo,So&&!Os?"motionBlur":void 0),vs?lo.drawCachedNodes(Jo,Uo.drag,uo,gs):lo.drawCachedElements(Jo,Uo.drag,uo,gs),lo.debug&&lo.drawDebugPoints(Jo,Uo.drag),!no&&!So&&(mo[lo.DRAG]=!1)}if(lo.showFps||!io&&mo[lo.SELECT_BOX]&&!no){var Jo=to||go.contexts[lo.SELECT_BOX];if(Yo(Jo),lo.selection[4]==1&&(lo.hoverData.selecting||lo.touchData.selecting)){var No=lo.cy.zoom(),Xs=Oo.core("selection-box-border-width").value/No;Jo.lineWidth=Xs,Jo.fillStyle="rgba("+Oo.core("selection-box-color").value[0]+","+Oo.core("selection-box-color").value[1]+","+Oo.core("selection-box-color").value[2]+","+Oo.core("selection-box-opacity").value+")",Jo.fillRect(lo.selection[0],lo.selection[1],lo.selection[2]-lo.selection[0],lo.selection[3]-lo.selection[1]),Xs>0&&(Jo.strokeStyle="rgba("+Oo.core("selection-box-border-color").value[0]+","+Oo.core("selection-box-border-color").value[1]+","+Oo.core("selection-box-border-color").value[2]+","+Oo.core("selection-box-opacity").value+")",Jo.strokeRect(lo.selection[0],lo.selection[1],lo.selection[2]-lo.selection[0],lo.selection[3]-lo.selection[1]))}if(go.bgActivePosistion&&!lo.hoverData.selecting){var No=lo.cy.zoom(),Ws=go.bgActivePosistion;Jo.fillStyle="rgba("+Oo.core("active-bg-color").value[0]+","+Oo.core("active-bg-color").value[1]+","+Oo.core("active-bg-color").value[2]+","+Oo.core("active-bg-opacity").value+")",Jo.beginPath(),Jo.arc(Ws.x,Ws.y,Oo.core("active-bg-size").pfValue/No,0,2*Math.PI),Jo.fill()}var Ps=lo.lastRedrawTime;if(lo.showFps&&Ps){Ps=Math.round(Ps);var qs=Math.round(1e3/Ps);Jo.setTransform(1,0,0,1,0,0),Jo.fillStyle="rgba(255, 0, 0, 0.75)",Jo.strokeStyle="rgba(255, 0, 0, 0.75)",Jo.lineWidth=1,Jo.fillText("1 frame = "+Ps+" ms = "+qs+" fps",0,20);var ga=60;Jo.strokeRect(0,30,250,20),Jo.fillRect(0,30,250*Math.min(qs/ga,1),20)}no||(mo[lo.SELECT_BOX]=!1)}if(So&&_o!==1){var Fs=go.contexts[lo.NODE],Js=lo.data.bufferCanvases[lo.MOTIONBLUR_BUFFER_NODE],Vs=go.contexts[lo.DRAG],El=lo.data.bufferCanvases[lo.MOTIONBLUR_BUFFER_DRAG],yl=function(Qs,du,Ol){Qs.setTransform(1,0,0,1,0,0),Ol||!Ro?Qs.clearRect(0,0,lo.canvasWidth,lo.canvasHeight):Ho(Qs,0,0,lo.canvasWidth,lo.canvasHeight);var Fu=_o;Qs.drawImage(du,0,0,lo.canvasWidth*Fu,lo.canvasHeight*Fu,0,0,lo.canvasWidth,lo.canvasHeight)};(mo[lo.NODE]||ks[lo.NODE])&&(yl(Fs,Js,ks[lo.NODE]),mo[lo.NODE]=!1),(mo[lo.DRAG]||ks[lo.DRAG])&&(yl(Vs,El,ks[lo.DRAG]),mo[lo.DRAG]=!1)}lo.prevViewport=Lo,lo.clearingMotionBlur&&(lo.clearingMotionBlur=!1,lo.motionBlurCleared=!0,lo.motionBlur=!0),So&&(lo.motionBlurTimeout=setTimeout(function(){lo.motionBlurTimeout=null,lo.clearedForMotionBlur[lo.NODE]=!1,lo.clearedForMotionBlur[lo.DRAG]=!1,lo.motionBlur=!1,lo.clearingMotionBlur=!yo,lo.mbFrames=0,mo[lo.NODE]=!0,mo[lo.DRAG]=!0,lo.redraw()},motionBlurDelay)),to||ho.emit("render")};var CRp$3={};CRp$3.drawPolygonPath=function(eo,to,no,io,so,ao){var lo=io/2,uo=so/2;eo.beginPath&&eo.beginPath(),eo.moveTo(to+lo*ao[0],no+uo*ao[1]);for(var ho=1;ho0&&lo>0){_o.clearRect(0,0,ao,lo),_o.globalCompositeOperation="source-over";var ko=this.getCachedZSortedEles();if(eo.full)_o.translate(-io.x1*go,-io.y1*go),_o.scale(go,go),this.drawElements(_o,ko),_o.scale(1/go,1/go),_o.translate(io.x1*go,io.y1*go);else{var Co=to.pan(),$o={x:Co.x*go,y:Co.y*go};go*=to.zoom(),_o.translate($o.x,$o.y),_o.scale(go,go),this.drawElements(_o,ko),_o.scale(1/go,1/go),_o.translate(-$o.x,-$o.y)}eo.bg&&(_o.globalCompositeOperation="destination-over",_o.fillStyle=eo.bg,_o.rect(0,0,ao,lo),_o.fill())}return So};function b64ToBlob(eo,to){for(var no=atob(eo),io=new ArrayBuffer(no.length),so=new Uint8Array(io),ao=0;ao"u"?"undefined":_typeof(OffscreenCanvas))!=="undefined"?no=new OffscreenCanvas(eo,to):(no=document.createElement("canvas"),no.width=eo,no.height=to),no};[CRp$a,CRp$9,CRp$8,CRp$7,CRp$6,CRp$5,CRp$4,CRp$3,CRp$2,CRp$1].forEach(function(eo){extend(CRp,eo)});var renderer$3=[{name:"null",impl:NullRenderer},{name:"base",impl:BR},{name:"canvas",impl:CR}],incExts=[{type:"layout",extensions:layout$1},{type:"renderer",extensions:renderer$3}],extensions={},modules={};function setExtension(eo,to,no){var io=no,so=function(Go){warn("Can not register `"+to+"` for `"+eo+"` since `"+Go+"` already exists in the prototype and can not be overridden")};if(eo==="core"){if(Core.prototype[to])return so(to);Core.prototype[to]=no}else if(eo==="collection"){if(Collection.prototype[to])return so(to);Collection.prototype[to]=no}else if(eo==="layout"){for(var ao=function(Go){this.options=Go,no.call(this,Go),plainObject(this._private)||(this._private={}),this._private.cy=Go.cy,this._private.listeners=[],this.createEmitter()},lo=ao.prototype=Object.create(no.prototype),uo=[],ho=0;hoko&&(this.rect.x-=(this.labelWidth-ko)/2,this.setWidth(this.labelWidth)),this.labelHeight>Co&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-Co)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-Co),this.setHeight(this.labelHeight))}}},yo.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==lo.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},yo.prototype.transform=function(_o){var ko=this.rect.x;ko>ho.WORLD_BOUNDARY?ko=ho.WORLD_BOUNDARY:ko<-ho.WORLD_BOUNDARY&&(ko=-ho.WORLD_BOUNDARY);var Co=this.rect.y;Co>ho.WORLD_BOUNDARY?Co=ho.WORLD_BOUNDARY:Co<-ho.WORLD_BOUNDARY&&(Co=-ho.WORLD_BOUNDARY);var $o=new mo(ko,Co),Ro=_o.inverseTransformPoint($o);this.setLocation(Ro.x,Ro.y)},yo.prototype.getLeft=function(){return this.rect.x},yo.prototype.getRight=function(){return this.rect.x+this.rect.width},yo.prototype.getTop=function(){return this.rect.y},yo.prototype.getBottom=function(){return this.rect.y+this.rect.height},yo.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},no.exports=yo},function(no,io,so){function ao(lo,uo){lo==null&&uo==null?(this.x=0,this.y=0):(this.x=lo,this.y=uo)}ao.prototype.getX=function(){return this.x},ao.prototype.getY=function(){return this.y},ao.prototype.setX=function(lo){this.x=lo},ao.prototype.setY=function(lo){this.y=lo},ao.prototype.getDifference=function(lo){return new DimensionD(this.x-lo.x,this.y-lo.y)},ao.prototype.getCopy=function(){return new ao(this.x,this.y)},ao.prototype.translate=function(lo){return this.x+=lo.width,this.y+=lo.height,this},no.exports=ao},function(no,io,so){var ao=so(2),lo=so(10),uo=so(0),ho=so(6),go=so(3),mo=so(1),yo=so(13),So=so(12),_o=so(11);function ko($o,Ro,Oo){ao.call(this,Oo),this.estimatedSize=lo.MIN_VALUE,this.margin=uo.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=$o,Ro!=null&&Ro instanceof ho?this.graphManager=Ro:Ro!=null&&Ro instanceof Layout&&(this.graphManager=Ro.graphManager)}ko.prototype=Object.create(ao.prototype);for(var Co in ao)ko[Co]=ao[Co];ko.prototype.getNodes=function(){return this.nodes},ko.prototype.getEdges=function(){return this.edges},ko.prototype.getGraphManager=function(){return this.graphManager},ko.prototype.getParent=function(){return this.parent},ko.prototype.getLeft=function(){return this.left},ko.prototype.getRight=function(){return this.right},ko.prototype.getTop=function(){return this.top},ko.prototype.getBottom=function(){return this.bottom},ko.prototype.isConnected=function(){return this.isConnected},ko.prototype.add=function($o,Ro,Oo){if(Ro==null&&Oo==null){var No=$o;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(No)>-1)throw"Node already in graph!";return No.owner=this,this.getNodes().push(No),No}else{var Mo=$o;if(!(this.getNodes().indexOf(Ro)>-1&&this.getNodes().indexOf(Oo)>-1))throw"Source or target not in graph!";if(!(Ro.owner==Oo.owner&&Ro.owner==this))throw"Both owners must be this graph!";return Ro.owner!=Oo.owner?null:(Mo.source=Ro,Mo.target=Oo,Mo.isInterGraph=!1,this.getEdges().push(Mo),Ro.edges.push(Mo),Oo!=Ro&&Oo.edges.push(Mo),Mo)}},ko.prototype.remove=function($o){var Ro=$o;if($o instanceof go){if(Ro==null)throw"Node is null!";if(!(Ro.owner!=null&&Ro.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var Oo=Ro.edges.slice(),No,Mo=Oo.length,Bo=0;Bo-1&&Go>-1))throw"Source and/or target doesn't know this edge!";No.source.edges.splice(Lo,1),No.target!=No.source&&No.target.edges.splice(Go,1);var Po=No.source.owner.getEdges().indexOf(No);if(Po==-1)throw"Not in owner's edge list!";No.source.owner.getEdges().splice(Po,1)}},ko.prototype.updateLeftTop=function(){for(var $o=lo.MAX_VALUE,Ro=lo.MAX_VALUE,Oo,No,Mo,Bo=this.getNodes(),Po=Bo.length,Lo=0;LoOo&&($o=Oo),Ro>No&&(Ro=No)}return $o==lo.MAX_VALUE?null:(Bo[0].getParent().paddingLeft!=null?Mo=Bo[0].getParent().paddingLeft:Mo=this.margin,this.left=Ro-Mo,this.top=$o-Mo,new So(this.left,this.top))},ko.prototype.updateBounds=function($o){for(var Ro=lo.MAX_VALUE,Oo=-lo.MAX_VALUE,No=lo.MAX_VALUE,Mo=-lo.MAX_VALUE,Bo,Po,Lo,Go,Do,Uo=this.nodes,Ho=Uo.length,Yo=0;YoBo&&(Ro=Bo),OoLo&&(No=Lo),MoBo&&(Ro=Bo),OoLo&&(No=Lo),Mo=this.nodes.length){var Ho=0;Oo.forEach(function(Yo){Yo.owner==$o&&Ho++}),Ho==this.nodes.length&&(this.isConnected=!0)}},no.exports=ko},function(no,io,so){var ao,lo=so(1);function uo(ho){ao=so(5),this.layout=ho,this.graphs=[],this.edges=[]}uo.prototype.addRoot=function(){var ho=this.layout.newGraph(),go=this.layout.newNode(null),mo=this.add(ho,go);return this.setRootGraph(mo),this.rootGraph},uo.prototype.add=function(ho,go,mo,yo,So){if(mo==null&&yo==null&&So==null){if(ho==null)throw"Graph is null!";if(go==null)throw"Parent node is null!";if(this.graphs.indexOf(ho)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(ho),ho.parent!=null)throw"Already has a parent!";if(go.child!=null)throw"Already has a child!";return ho.parent=go,go.child=ho,ho}else{So=mo,yo=go,mo=ho;var _o=yo.getOwner(),ko=So.getOwner();if(!(_o!=null&&_o.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(ko!=null&&ko.getGraphManager()==this))throw"Target not in this graph mgr!";if(_o==ko)return mo.isInterGraph=!1,_o.add(mo,yo,So);if(mo.isInterGraph=!0,mo.source=yo,mo.target=So,this.edges.indexOf(mo)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(mo),!(mo.source!=null&&mo.target!=null))throw"Edge source and/or target is null!";if(!(mo.source.edges.indexOf(mo)==-1&&mo.target.edges.indexOf(mo)==-1))throw"Edge already in source and/or target incidency list!";return mo.source.edges.push(mo),mo.target.edges.push(mo),mo}},uo.prototype.remove=function(ho){if(ho instanceof ao){var go=ho;if(go.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(go==this.rootGraph||go.parent!=null&&go.parent.graphManager==this))throw"Invalid parent node!";var mo=[];mo=mo.concat(go.getEdges());for(var yo,So=mo.length,_o=0;_o=ho.getRight()?go[0]+=Math.min(ho.getX()-uo.getX(),uo.getRight()-ho.getRight()):ho.getX()<=uo.getX()&&ho.getRight()>=uo.getRight()&&(go[0]+=Math.min(uo.getX()-ho.getX(),ho.getRight()-uo.getRight())),uo.getY()<=ho.getY()&&uo.getBottom()>=ho.getBottom()?go[1]+=Math.min(ho.getY()-uo.getY(),uo.getBottom()-ho.getBottom()):ho.getY()<=uo.getY()&&ho.getBottom()>=uo.getBottom()&&(go[1]+=Math.min(uo.getY()-ho.getY(),ho.getBottom()-uo.getBottom()));var So=Math.abs((ho.getCenterY()-uo.getCenterY())/(ho.getCenterX()-uo.getCenterX()));ho.getCenterY()===uo.getCenterY()&&ho.getCenterX()===uo.getCenterX()&&(So=1);var _o=So*go[0],ko=go[1]/So;go[0]_o)return go[0]=mo,go[1]=Co,go[2]=So,go[3]=Uo,!1;if(yo<_o)return go[0]=mo,go[1]=Oo,go[2]=So,go[3]=Lo,!1}else if(yo===_o){if(mo>So)return go[0]=ko,go[1]=yo,go[2]=Go,go[3]=_o,!1;if(moSo?(go[0]=Ro,go[1]=Oo,Jo=!0):(go[0]=$o,go[1]=Co,Jo=!0):Qo===gs&&(mo>So?(go[0]=ko,go[1]=Co,Jo=!0):(go[0]=No,go[1]=Oo,Jo=!0)),-hs===gs?So>mo?(go[2]=Do,go[3]=Uo,ps=!0):(go[2]=Go,go[3]=Lo,ps=!0):hs===gs&&(So>mo?(go[2]=Po,go[3]=Lo,ps=!0):(go[2]=Ho,go[3]=Uo,ps=!0)),Jo&&ps)return!1;if(mo>So?yo>_o?(ys=this.getCardinalDirection(Qo,gs,4),vs=this.getCardinalDirection(hs,gs,2)):(ys=this.getCardinalDirection(-Qo,gs,3),vs=this.getCardinalDirection(-hs,gs,1)):yo>_o?(ys=this.getCardinalDirection(-Qo,gs,1),vs=this.getCardinalDirection(-hs,gs,3)):(ys=this.getCardinalDirection(Qo,gs,2),vs=this.getCardinalDirection(hs,gs,4)),!Jo)switch(ys){case 1:Os=Co,ks=mo+-Bo/gs,go[0]=ks,go[1]=Os;break;case 2:ks=No,Os=yo+Mo*gs,go[0]=ks,go[1]=Os;break;case 3:Os=Oo,ks=mo+Bo/gs,go[0]=ks,go[1]=Os;break;case 4:ks=Ro,Os=yo+-Mo*gs,go[0]=ks,go[1]=Os;break}if(!ps)switch(vs){case 1:Xs=Lo,Ts=So+-qo/gs,go[2]=Ts,go[3]=Xs;break;case 2:Ts=Ho,Xs=_o+Yo*gs,go[2]=Ts,go[3]=Xs;break;case 3:Xs=Uo,Ts=So+qo/gs,go[2]=Ts,go[3]=Xs;break;case 4:Ts=Do,Xs=_o+-Yo*gs,go[2]=Ts,go[3]=Xs;break}}return!1},lo.getCardinalDirection=function(uo,ho,go){return uo>ho?go:1+go%4},lo.getIntersection=function(uo,ho,go,mo){if(mo==null)return this.getIntersection2(uo,ho,go);var yo=uo.x,So=uo.y,_o=ho.x,ko=ho.y,Co=go.x,$o=go.y,Ro=mo.x,Oo=mo.y,No=void 0,Mo=void 0,Bo=void 0,Po=void 0,Lo=void 0,Go=void 0,Do=void 0,Uo=void 0,Ho=void 0;return Bo=ko-So,Lo=yo-_o,Do=_o*So-yo*ko,Po=Oo-$o,Go=Co-Ro,Uo=Ro*$o-Co*Oo,Ho=Bo*Go-Po*Lo,Ho===0?null:(No=(Lo*Uo-Go*Do)/Ho,Mo=(Po*Do-Bo*Uo)/Ho,new ao(No,Mo))},lo.angleOfVector=function(uo,ho,go,mo){var yo=void 0;return uo!==go?(yo=Math.atan((mo-ho)/(go-uo)),go0?1:lo<0?-1:0},ao.floor=function(lo){return lo<0?Math.ceil(lo):Math.floor(lo)},ao.ceil=function(lo){return lo<0?Math.floor(lo):Math.ceil(lo)},no.exports=ao},function(no,io,so){function ao(){}ao.MAX_VALUE=2147483647,ao.MIN_VALUE=-2147483648,no.exports=ao},function(no,io,so){var ao=function(){function yo(So,_o){for(var ko=0;ko<_o.length;ko++){var Co=_o[ko];Co.enumerable=Co.enumerable||!1,Co.configurable=!0,"value"in Co&&(Co.writable=!0),Object.defineProperty(So,Co.key,Co)}}return function(So,_o,ko){return _o&&yo(So.prototype,_o),ko&&yo(So,ko),So}}();function lo(yo,So){if(!(yo instanceof So))throw new TypeError("Cannot call a class as a function")}var uo=function(So){return{value:So,next:null,prev:null}},ho=function(So,_o,ko,Co){return So!==null?So.next=_o:Co.head=_o,ko!==null?ko.prev=_o:Co.tail=_o,_o.prev=So,_o.next=ko,Co.length++,_o},go=function(So,_o){var ko=So.prev,Co=So.next;return ko!==null?ko.next=Co:_o.head=Co,Co!==null?Co.prev=ko:_o.tail=ko,So.prev=So.next=null,_o.length--,So},mo=function(){function yo(So){var _o=this;lo(this,yo),this.length=0,this.head=null,this.tail=null,So!=null&&So.forEach(function(ko){return _o.push(ko)})}return ao(yo,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(_o,ko){return ho(ko.prev,uo(_o),ko,this)}},{key:"insertAfter",value:function(_o,ko){return ho(ko,uo(_o),ko.next,this)}},{key:"insertNodeBefore",value:function(_o,ko){return ho(ko.prev,_o,ko,this)}},{key:"insertNodeAfter",value:function(_o,ko){return ho(ko,_o,ko.next,this)}},{key:"push",value:function(_o){return ho(this.tail,uo(_o),null,this)}},{key:"unshift",value:function(_o){return ho(null,uo(_o),this.head,this)}},{key:"remove",value:function(_o){return go(_o,this)}},{key:"pop",value:function(){return go(this.tail,this).value}},{key:"popNode",value:function(){return go(this.tail,this)}},{key:"shift",value:function(){return go(this.head,this).value}},{key:"shiftNode",value:function(){return go(this.head,this)}},{key:"get_object_at",value:function(_o){if(_o<=this.length()){for(var ko=1,Co=this.head;ko<_o;)Co=Co.next,ko++;return Co.value}}},{key:"set_object_at",value:function(_o,ko){if(_o<=this.length()){for(var Co=1,$o=this.head;Co<_o;)$o=$o.next,Co++;$o.value=ko}}}]),yo}();no.exports=mo},function(no,io,so){function ao(lo,uo,ho){this.x=null,this.y=null,lo==null&&uo==null&&ho==null?(this.x=0,this.y=0):typeof lo=="number"&&typeof uo=="number"&&ho==null?(this.x=lo,this.y=uo):lo.constructor.name=="Point"&&uo==null&&ho==null&&(ho=lo,this.x=ho.x,this.y=ho.y)}ao.prototype.getX=function(){return this.x},ao.prototype.getY=function(){return this.y},ao.prototype.getLocation=function(){return new ao(this.x,this.y)},ao.prototype.setLocation=function(lo,uo,ho){lo.constructor.name=="Point"&&uo==null&&ho==null?(ho=lo,this.setLocation(ho.x,ho.y)):typeof lo=="number"&&typeof uo=="number"&&ho==null&&(parseInt(lo)==lo&&parseInt(uo)==uo?this.move(lo,uo):(this.x=Math.floor(lo+.5),this.y=Math.floor(uo+.5)))},ao.prototype.move=function(lo,uo){this.x=lo,this.y=uo},ao.prototype.translate=function(lo,uo){this.x+=lo,this.y+=uo},ao.prototype.equals=function(lo){if(lo.constructor.name=="Point"){var uo=lo;return this.x==uo.x&&this.y==uo.y}return this==lo},ao.prototype.toString=function(){return new ao().constructor.name+"[x="+this.x+",y="+this.y+"]"},no.exports=ao},function(no,io,so){function ao(lo,uo,ho,go){this.x=0,this.y=0,this.width=0,this.height=0,lo!=null&&uo!=null&&ho!=null&&go!=null&&(this.x=lo,this.y=uo,this.width=ho,this.height=go)}ao.prototype.getX=function(){return this.x},ao.prototype.setX=function(lo){this.x=lo},ao.prototype.getY=function(){return this.y},ao.prototype.setY=function(lo){this.y=lo},ao.prototype.getWidth=function(){return this.width},ao.prototype.setWidth=function(lo){this.width=lo},ao.prototype.getHeight=function(){return this.height},ao.prototype.setHeight=function(lo){this.height=lo},ao.prototype.getRight=function(){return this.x+this.width},ao.prototype.getBottom=function(){return this.y+this.height},ao.prototype.intersects=function(lo){return!(this.getRight()"u"?"undefined":ao(uo);return uo==null||ho!="object"&&ho!="function"},no.exports=lo},function(no,io,so){function ao(Co){if(Array.isArray(Co)){for(var $o=0,Ro=Array(Co.length);$o0&&$o;){for(Bo.push(Lo[0]);Bo.length>0&&$o;){var Go=Bo[0];Bo.splice(0,1),Mo.add(Go);for(var Do=Go.getEdges(),No=0;No-1&&Lo.splice(qo,1)}Mo=new Set,Po=new Map}}return Co},ko.prototype.createDummyNodesForBendpoints=function(Co){for(var $o=[],Ro=Co.source,Oo=this.graphManager.calcLowestCommonAncestor(Co.source,Co.target),No=0;No0){for(var Oo=this.edgeToDummyNodes.get(Ro),No=0;No=0&&$o.splice(Uo,1);var Ho=Po.getNeighborsList();Ho.forEach(function(Jo){if(Ro.indexOf(Jo)<0){var ps=Oo.get(Jo),Qo=ps-1;Qo==1&&Go.push(Jo),Oo.set(Jo,Qo)}})}Ro=Ro.concat(Go),($o.length==1||$o.length==2)&&(No=!0,Mo=$o[0])}return Mo},ko.prototype.setGraphManager=function(Co){this.graphManager=Co},no.exports=ko},function(no,io,so){function ao(){}ao.seed=1,ao.x=0,ao.nextDouble=function(){return ao.x=Math.sin(ao.seed++)*1e4,ao.x-Math.floor(ao.x)},no.exports=ao},function(no,io,so){var ao=so(4);function lo(uo,ho){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}lo.prototype.getWorldOrgX=function(){return this.lworldOrgX},lo.prototype.setWorldOrgX=function(uo){this.lworldOrgX=uo},lo.prototype.getWorldOrgY=function(){return this.lworldOrgY},lo.prototype.setWorldOrgY=function(uo){this.lworldOrgY=uo},lo.prototype.getWorldExtX=function(){return this.lworldExtX},lo.prototype.setWorldExtX=function(uo){this.lworldExtX=uo},lo.prototype.getWorldExtY=function(){return this.lworldExtY},lo.prototype.setWorldExtY=function(uo){this.lworldExtY=uo},lo.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},lo.prototype.setDeviceOrgX=function(uo){this.ldeviceOrgX=uo},lo.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},lo.prototype.setDeviceOrgY=function(uo){this.ldeviceOrgY=uo},lo.prototype.getDeviceExtX=function(){return this.ldeviceExtX},lo.prototype.setDeviceExtX=function(uo){this.ldeviceExtX=uo},lo.prototype.getDeviceExtY=function(){return this.ldeviceExtY},lo.prototype.setDeviceExtY=function(uo){this.ldeviceExtY=uo},lo.prototype.transformX=function(uo){var ho=0,go=this.lworldExtX;return go!=0&&(ho=this.ldeviceOrgX+(uo-this.lworldOrgX)*this.ldeviceExtX/go),ho},lo.prototype.transformY=function(uo){var ho=0,go=this.lworldExtY;return go!=0&&(ho=this.ldeviceOrgY+(uo-this.lworldOrgY)*this.ldeviceExtY/go),ho},lo.prototype.inverseTransformX=function(uo){var ho=0,go=this.ldeviceExtX;return go!=0&&(ho=this.lworldOrgX+(uo-this.ldeviceOrgX)*this.lworldExtX/go),ho},lo.prototype.inverseTransformY=function(uo){var ho=0,go=this.ldeviceExtY;return go!=0&&(ho=this.lworldOrgY+(uo-this.ldeviceOrgY)*this.lworldExtY/go),ho},lo.prototype.inverseTransformPoint=function(uo){var ho=new ao(this.inverseTransformX(uo.x),this.inverseTransformY(uo.y));return ho},no.exports=lo},function(no,io,so){function ao(_o){if(Array.isArray(_o)){for(var ko=0,Co=Array(_o.length);ko<_o.length;ko++)Co[ko]=_o[ko];return Co}else return Array.from(_o)}var lo=so(15),uo=so(7),ho=so(0),go=so(8),mo=so(9);function yo(){lo.call(this),this.useSmartIdealEdgeLengthCalculation=uo.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=uo.DEFAULT_EDGE_LENGTH,this.springConstant=uo.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=uo.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=uo.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=uo.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=uo.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=uo.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*uo.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=uo.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=uo.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=uo.MAX_ITERATIONS}yo.prototype=Object.create(lo.prototype);for(var So in lo)yo[So]=lo[So];yo.prototype.initParameters=function(){lo.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=uo.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},yo.prototype.calcIdealEdgeLengths=function(){for(var _o,ko,Co,$o,Ro,Oo,No=this.getGraphManager().getAllEdges(),Mo=0;Mouo.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*uo.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(_o-uo.ADAPTATION_LOWER_NODE_LIMIT)/(uo.ADAPTATION_UPPER_NODE_LIMIT-uo.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-uo.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=uo.MAX_NODE_DISPLACEMENT_INCREMENTAL):(_o>uo.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(uo.COOLING_ADAPTATION_FACTOR,1-(_o-uo.ADAPTATION_LOWER_NODE_LIMIT)/(uo.ADAPTATION_UPPER_NODE_LIMIT-uo.ADAPTATION_LOWER_NODE_LIMIT)*(1-uo.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=uo.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},yo.prototype.calcSpringForces=function(){for(var _o=this.getAllEdges(),ko,Co=0;Co<_o.length;Co++)ko=_o[Co],this.calcSpringForce(ko,ko.idealLength)},yo.prototype.calcRepulsionForces=function(){var _o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,ko=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Co,$o,Ro,Oo,No=this.getAllNodes(),Mo;if(this.useFRGridVariant)for(this.totalIterations%uo.GRID_CALCULATION_CHECK_PERIOD==1&&_o&&this.updateGrid(),Mo=new Set,Co=0;CoBo||Mo>Bo)&&(_o.gravitationForceX=-this.gravityConstant*Ro,_o.gravitationForceY=-this.gravityConstant*Oo)):(Bo=ko.getEstimatedSize()*this.compoundGravityRangeFactor,(No>Bo||Mo>Bo)&&(_o.gravitationForceX=-this.gravityConstant*Ro*this.compoundGravityConstant,_o.gravitationForceY=-this.gravityConstant*Oo*this.compoundGravityConstant))},yo.prototype.isConverged=function(){var _o,ko=!1;return this.totalIterations>this.maxIterations/3&&(ko=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),_o=this.totalDisplacement=No.length||Bo>=No[0].length)){for(var Po=0;Poyo}}]),go}();no.exports=ho},function(no,io,so){var ao=function(){function ho(go,mo){for(var yo=0;yo2&&arguments[2]!==void 0?arguments[2]:1,So=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,_o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;lo(this,ho),this.sequence1=go,this.sequence2=mo,this.match_score=yo,this.mismatch_penalty=So,this.gap_penalty=_o,this.iMax=go.length+1,this.jMax=mo.length+1,this.grid=new Array(this.iMax);for(var ko=0;ko=0;go--){var mo=this.listeners[go];mo.event===uo&&mo.callback===ho&&this.listeners.splice(go,1)}},lo.emit=function(uo,ho){for(var go=0;gomo.coolingFactor*mo.maxNodeDisplacement&&(this.displacementX=mo.coolingFactor*mo.maxNodeDisplacement*uo.sign(this.displacementX)),Math.abs(this.displacementY)>mo.coolingFactor*mo.maxNodeDisplacement&&(this.displacementY=mo.coolingFactor*mo.maxNodeDisplacement*uo.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),mo.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},ho.prototype.propogateDisplacementToChildren=function(mo,yo){for(var So=this.getChild().getNodes(),_o,ko=0;ko0)this.positionNodesRadially(Lo);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var Go=new Set(this.getAllNodes()),Do=this.nodesWithGravity.filter(function(Uo){return Go.has(Uo)});this.graphManager.setAllNodesToApplyGravitation(Do),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},Bo.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%So.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var Lo=new Set(this.getAllNodes()),Go=this.nodesWithGravity.filter(function(Ho){return Lo.has(Ho)});this.graphManager.setAllNodesToApplyGravitation(Go),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=So.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=So.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var Do=!this.isTreeGrowing&&!this.isGrowthFinished,Uo=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(Do,Uo),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},Bo.prototype.getPositionsData=function(){for(var Lo=this.graphManager.getAllNodes(),Go={},Do=0;Do1){var Jo;for(Jo=0;JoUo&&(Uo=Math.floor(qo.y)),Yo=Math.floor(qo.x+yo.DEFAULT_COMPONENT_SEPERATION)}this.transform(new Co(_o.WORLD_CENTER_X-qo.x/2,_o.WORLD_CENTER_Y-qo.y/2))},Bo.radialLayout=function(Lo,Go,Do){var Uo=Math.max(this.maxDiagonalInTree(Lo),yo.DEFAULT_RADIAL_SEPARATION);Bo.branchRadialLayout(Go,null,0,359,0,Uo);var Ho=No.calculateBounds(Lo),Yo=new Mo;Yo.setDeviceOrgX(Ho.getMinX()),Yo.setDeviceOrgY(Ho.getMinY()),Yo.setWorldOrgX(Do.x),Yo.setWorldOrgY(Do.y);for(var qo=0;qo1;){var Xs=Ts[0];Ts.splice(0,1);var Ws=gs.indexOf(Xs);Ws>=0&&gs.splice(Ws,1),ks--,ys--}Go!=null?Os=(gs.indexOf(Ts[0])+1)%ks:Os=0;for(var Ps=Math.abs(Uo-Do)/ys,qs=Os;vs!=ys;qs=++qs%ks){var ga=gs[qs].getOtherEnd(Lo);if(ga!=Go){var Fs=(Do+vs*Ps)%360,Js=(Fs+Ps)%360;Bo.branchRadialLayout(ga,Lo,Fs,Js,Ho+Yo,Yo),vs++}}},Bo.maxDiagonalInTree=function(Lo){for(var Go=Ro.MIN_VALUE,Do=0;DoGo&&(Go=Ho)}return Go},Bo.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},Bo.prototype.groupZeroDegreeMembers=function(){var Lo=this,Go={};this.memberGroups={},this.idToDummyNode={};for(var Do=[],Uo=this.graphManager.getAllNodes(),Ho=0;Ho"u"&&(Go[Jo]=[]),Go[Jo]=Go[Jo].concat(Yo)}Object.keys(Go).forEach(function(ps){if(Go[ps].length>1){var Qo="DummyCompound_"+ps;Lo.memberGroups[Qo]=Go[ps];var hs=Go[ps][0].getParent(),gs=new go(Lo.graphManager);gs.id=Qo,gs.paddingLeft=hs.paddingLeft||0,gs.paddingRight=hs.paddingRight||0,gs.paddingBottom=hs.paddingBottom||0,gs.paddingTop=hs.paddingTop||0,Lo.idToDummyNode[Qo]=gs;var ys=Lo.getGraphManager().add(Lo.newGraph(),gs),vs=hs.getChild();vs.add(gs);for(var ks=0;ks=0;Lo--){var Go=this.compoundOrder[Lo],Do=Go.id,Uo=Go.paddingLeft,Ho=Go.paddingTop;this.adjustLocations(this.tiledMemberPack[Do],Go.rect.x,Go.rect.y,Uo,Ho)}},Bo.prototype.repopulateZeroDegreeMembers=function(){var Lo=this,Go=this.tiledZeroDegreePack;Object.keys(Go).forEach(function(Do){var Uo=Lo.idToDummyNode[Do],Ho=Uo.paddingLeft,Yo=Uo.paddingTop;Lo.adjustLocations(Go[Do],Uo.rect.x,Uo.rect.y,Ho,Yo)})},Bo.prototype.getToBeTiled=function(Lo){var Go=Lo.id;if(this.toBeTiled[Go]!=null)return this.toBeTiled[Go];var Do=Lo.getChild();if(Do==null)return this.toBeTiled[Go]=!1,!1;for(var Uo=Do.getNodes(),Ho=0;Ho0)return this.toBeTiled[Go]=!1,!1;if(Yo.getChild()==null){this.toBeTiled[Yo.id]=!1;continue}if(!this.getToBeTiled(Yo))return this.toBeTiled[Go]=!1,!1}return this.toBeTiled[Go]=!0,!0},Bo.prototype.getNodeDegree=function(Lo){Lo.id;for(var Go=Lo.getEdges(),Do=0,Uo=0;Uops&&(ps=hs.rect.height)}Do+=ps+Lo.verticalPadding}},Bo.prototype.tileCompoundMembers=function(Lo,Go){var Do=this;this.tiledMemberPack=[],Object.keys(Lo).forEach(function(Uo){var Ho=Go[Uo];Do.tiledMemberPack[Uo]=Do.tileNodes(Lo[Uo],Ho.paddingLeft+Ho.paddingRight),Ho.rect.width=Do.tiledMemberPack[Uo].width,Ho.rect.height=Do.tiledMemberPack[Uo].height})},Bo.prototype.tileNodes=function(Lo,Go){var Do=yo.TILING_PADDING_VERTICAL,Uo=yo.TILING_PADDING_HORIZONTAL,Ho={rows:[],rowWidth:[],rowHeight:[],width:0,height:Go,verticalPadding:Do,horizontalPadding:Uo};Lo.sort(function(Jo,ps){return Jo.rect.width*Jo.rect.height>ps.rect.width*ps.rect.height?-1:Jo.rect.width*Jo.rect.height0&&(qo+=Lo.horizontalPadding),Lo.rowWidth[Do]=qo,Lo.width0&&(Jo+=Lo.verticalPadding);var ps=0;Jo>Lo.rowHeight[Do]&&(ps=Lo.rowHeight[Do],Lo.rowHeight[Do]=Jo,ps=Lo.rowHeight[Do]-ps),Lo.height+=ps,Lo.rows[Do].push(Go)},Bo.prototype.getShortestRowIndex=function(Lo){for(var Go=-1,Do=Number.MAX_VALUE,Uo=0;UoDo&&(Go=Uo,Do=Lo.rowWidth[Uo]);return Go},Bo.prototype.canAddHorizontal=function(Lo,Go,Do){var Uo=this.getShortestRowIndex(Lo);if(Uo<0)return!0;var Ho=Lo.rowWidth[Uo];if(Ho+Lo.horizontalPadding+Go<=Lo.width)return!0;var Yo=0;Lo.rowHeight[Uo]0&&(Yo=Do+Lo.verticalPadding-Lo.rowHeight[Uo]);var qo;Lo.width-Ho>=Go+Lo.horizontalPadding?qo=(Lo.height+Yo)/(Ho+Go+Lo.horizontalPadding):qo=(Lo.height+Yo)/Lo.width,Yo=Do+Lo.verticalPadding;var Jo;return Lo.widthYo&&Go!=Do){Uo.splice(-1,1),Lo.rows[Do].push(Ho),Lo.rowWidth[Go]=Lo.rowWidth[Go]-Yo,Lo.rowWidth[Do]=Lo.rowWidth[Do]+Yo,Lo.width=Lo.rowWidth[instance.getLongestRowIndex(Lo)];for(var qo=Number.MIN_VALUE,Jo=0;Joqo&&(qo=Uo[Jo].height);Go>0&&(qo+=Lo.verticalPadding);var ps=Lo.rowHeight[Go]+Lo.rowHeight[Do];Lo.rowHeight[Go]=qo,Lo.rowHeight[Do]0)for(var vs=Ho;vs<=Yo;vs++)ys[0]+=this.grid[vs][qo-1].length+this.grid[vs][qo].length-1;if(Yo0)for(var vs=qo;vs<=Jo;vs++)ys[3]+=this.grid[Ho-1][vs].length+this.grid[Ho][vs].length-1;for(var ks=Ro.MAX_VALUE,Os,Ts,Xs=0;Xs0){var Jo;Jo=Mo.getGraphManager().add(Mo.newGraph(),Do),this.processChildrenList(Jo,Go,Mo)}}},Co.prototype.stop=function(){return this.stopped=!0,this};var Ro=function(No){No("layout","cose-bilkent",Co)};typeof cytoscape<"u"&&Ro(cytoscape),io.exports=Ro}])})})(cytoscapeCoseBilkent);var cytoscapeCoseBilkentExports=cytoscapeCoseBilkent.exports;const coseBilkent=getDefaultExportFromCjs(cytoscapeCoseBilkentExports);var parser$3=function(){var eo=function(Mo,Bo,Po,Lo){for(Po=Po||{},Lo=Mo.length;Lo--;Po[Mo[Lo]]=Bo);return Po},to=[1,4],no=[1,13],io=[1,12],so=[1,15],ao=[1,16],lo=[1,20],uo=[1,19],ho=[6,7,8],go=[1,26],mo=[1,24],yo=[1,25],So=[6,7,11],_o=[1,6,13,15,16,19,22],ko=[1,33],Co=[1,34],$o=[1,6,7,11,13,15,16,19,22],Ro={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(Bo,Po,Lo,Go,Do,Uo,Ho){var Yo=Uo.length-1;switch(Do){case 6:case 7:return Go;case 8:Go.getLogger().trace("Stop NL ");break;case 9:Go.getLogger().trace("Stop EOF ");break;case 11:Go.getLogger().trace("Stop NL2 ");break;case 12:Go.getLogger().trace("Stop EOF2 ");break;case 15:Go.getLogger().info("Node: ",Uo[Yo].id),Go.addNode(Uo[Yo-1].length,Uo[Yo].id,Uo[Yo].descr,Uo[Yo].type);break;case 16:Go.getLogger().trace("Icon: ",Uo[Yo]),Go.decorateNode({icon:Uo[Yo]});break;case 17:case 21:Go.decorateNode({class:Uo[Yo]});break;case 18:Go.getLogger().trace("SPACELIST");break;case 19:Go.getLogger().trace("Node: ",Uo[Yo].id),Go.addNode(0,Uo[Yo].id,Uo[Yo].descr,Uo[Yo].type);break;case 20:Go.decorateNode({icon:Uo[Yo]});break;case 25:Go.getLogger().trace("node found ..",Uo[Yo-2]),this.$={id:Uo[Yo-1],descr:Uo[Yo-1],type:Go.getType(Uo[Yo-2],Uo[Yo])};break;case 26:this.$={id:Uo[Yo],descr:Uo[Yo],type:Go.nodeType.DEFAULT};break;case 27:Go.getLogger().trace("node found ..",Uo[Yo-3]),this.$={id:Uo[Yo-3],descr:Uo[Yo-1],type:Go.getType(Uo[Yo-2],Uo[Yo])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:to},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:to},{6:no,7:[1,10],9:9,12:11,13:io,14:14,15:so,16:ao,17:17,18:18,19:lo,22:uo},eo(ho,[2,3]),{1:[2,2]},eo(ho,[2,4]),eo(ho,[2,5]),{1:[2,6],6:no,12:21,13:io,14:14,15:so,16:ao,17:17,18:18,19:lo,22:uo},{6:no,9:22,12:11,13:io,14:14,15:so,16:ao,17:17,18:18,19:lo,22:uo},{6:go,7:mo,10:23,11:yo},eo(So,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:lo,22:uo}),eo(So,[2,18]),eo(So,[2,19]),eo(So,[2,20]),eo(So,[2,21]),eo(So,[2,23]),eo(So,[2,24]),eo(So,[2,26],{19:[1,30]}),{20:[1,31]},{6:go,7:mo,10:32,11:yo},{1:[2,7],6:no,12:21,13:io,14:14,15:so,16:ao,17:17,18:18,19:lo,22:uo},eo(_o,[2,14],{7:ko,11:Co}),eo($o,[2,8]),eo($o,[2,9]),eo($o,[2,10]),eo(So,[2,15]),eo(So,[2,16]),eo(So,[2,17]),{20:[1,35]},{21:[1,36]},eo(_o,[2,13],{7:ko,11:Co}),eo($o,[2,11]),eo($o,[2,12]),{21:[1,37]},eo(So,[2,25]),eo(So,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(Bo,Po){if(Po.recoverable)this.trace(Bo);else{var Lo=new Error(Bo);throw Lo.hash=Po,Lo}},parse:function(Bo){var Po=this,Lo=[0],Go=[],Do=[null],Uo=[],Ho=this.table,Yo="",qo=0,Jo=0,ps=2,Qo=1,hs=Uo.slice.call(arguments,1),gs=Object.create(this.lexer),ys={yy:{}};for(var vs in this.yy)Object.prototype.hasOwnProperty.call(this.yy,vs)&&(ys.yy[vs]=this.yy[vs]);gs.setInput(Bo,ys.yy),ys.yy.lexer=gs,ys.yy.parser=this,typeof gs.yylloc>"u"&&(gs.yylloc={});var ks=gs.yylloc;Uo.push(ks);var Os=gs.options&&gs.options.ranges;typeof ys.yy.parseError=="function"?this.parseError=ys.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ts(){var Gl;return Gl=Go.pop()||gs.lex()||Qo,typeof Gl!="number"&&(Gl instanceof Array&&(Go=Gl,Gl=Go.pop()),Gl=Po.symbols_[Gl]||Gl),Gl}for(var Xs,Ws,Ps,qs,ga={},Fs,Js,Vs,El;;){if(Ws=Lo[Lo.length-1],this.defaultActions[Ws]?Ps=this.defaultActions[Ws]:((Xs===null||typeof Xs>"u")&&(Xs=Ts()),Ps=Ho[Ws]&&Ho[Ws][Xs]),typeof Ps>"u"||!Ps.length||!Ps[0]){var yl="";El=[];for(Fs in Ho[Ws])this.terminals_[Fs]&&Fs>ps&&El.push("'"+this.terminals_[Fs]+"'");gs.showPosition?yl="Parse error on line "+(qo+1)+`: +`),Ro=0;Ro<$o.length;Ro++){var Oo=$o[Ro],No=So.measureText(Oo),Mo=Math.ceil(No.width),Bo=ho;ko=Math.max(Mo,ko),Co+=Bo}return ko+=lo,Co+=lo,so[io]={width:ko,height:Co}};BRp$9.calculateLabelAngle=function(eo,to){var no=eo._private,io=no.rscratch,so=eo.isEdge(),ao=to?to+"-":"",lo=eo.pstyle(ao+"text-rotation"),uo=lo.strValue;return uo==="none"?0:so&&uo==="autorotate"?io.labelAutoAngle:uo==="autorotate"?0:lo.pfValue};BRp$9.calculateLabelAngles=function(eo){var to=this,no=eo.isEdge(),io=eo._private,so=io.rscratch;so.labelAngle=to.calculateLabelAngle(eo),no&&(so.sourceLabelAngle=to.calculateLabelAngle(eo,"source"),so.targetLabelAngle=to.calculateLabelAngle(eo,"target"))};var BRp$8={},TOO_SMALL_CUT_RECT=28,warnedCutRect=!1;BRp$8.getNodeShape=function(eo){var to=this,no=eo.pstyle("shape").value;if(no==="cutrectangle"&&(eo.width()1&&arguments[1]!==void 0?arguments[1]:!0;if(to.merge(lo),uo)for(var ho=0;ho=eo.desktopTapThreshold2}var ap=so(Is);yp&&(eo.hoverData.tapholdCancelled=!0);var x0=function(){var Gv=eo.hoverData.dragDelta=eo.hoverData.dragDelta||[];Gv.length===0?(Gv.push(L1[0]),Gv.push(L1[1])):(Gv[0]+=L1[0],Gv[1]+=L1[1])};Bs=!0,io(Gu,["mousemove","vmousemove","tapdrag"],Is,{x:ba[0],y:ba[1]});var b0=function(){eo.data.bgActivePosistion=void 0,eo.hoverData.selecting||Ds.emit({originalEvent:Is,type:"boxstart",position:{x:ba[0],y:ba[1]}}),e1[4]=1,eo.hoverData.selecting=!0,eo.redrawHint("select",!0),eo.redraw()};if(eo.hoverData.which===3){if(yp){var P1={originalEvent:Is,type:"cxtdrag",position:{x:ba[0],y:ba[1]}};Zu?Zu.emit(P1):Ds.emit(P1),eo.hoverData.cxtDragged=!0,(!eo.hoverData.cxtOver||Gu!==eo.hoverData.cxtOver)&&(eo.hoverData.cxtOver&&eo.hoverData.cxtOver.emit({originalEvent:Is,type:"cxtdragout",position:{x:ba[0],y:ba[1]}}),eo.hoverData.cxtOver=Gu,Gu&&Gu.emit({originalEvent:Is,type:"cxtdragover",position:{x:ba[0],y:ba[1]}}))}}else if(eo.hoverData.dragging){if(Bs=!0,Ds.panningEnabled()&&Ds.userPanningEnabled()){var c1;if(eo.hoverData.justStartedPan){var V0=eo.hoverData.mdownPos;c1={x:(ba[0]-V0[0])*Zs,y:(ba[1]-V0[1])*Zs},eo.hoverData.justStartedPan=!1}else c1={x:L1[0]*Zs,y:L1[1]*Zs};Ds.panBy(c1),Ds.emit("dragpan"),eo.hoverData.dragged=!0}ba=eo.projectIntoViewport(Is.clientX,Is.clientY)}else if(e1[4]==1&&(Zu==null||Zu.pannable())){if(yp){if(!eo.hoverData.dragging&&Ds.boxSelectionEnabled()&&(ap||!Ds.panningEnabled()||!Ds.userPanningEnabled()))b0();else if(!eo.hoverData.selecting&&Ds.panningEnabled()&&Ds.userPanningEnabled()){var P0=ao(Zu,eo.hoverData.downs);P0&&(eo.hoverData.dragging=!0,eo.hoverData.justStartedPan=!0,e1[4]=0,eo.data.bgActivePosistion=array2point(fu),eo.redrawHint("select",!0),eo.redraw())}Zu&&Zu.pannable()&&Zu.active()&&Zu.unactivate()}}else{if(Zu&&Zu.pannable()&&Zu.active()&&Zu.unactivate(),(!Zu||!Zu.grabbed())&&Gu!=w1&&(w1&&io(w1,["mouseout","tapdragout"],Is,{x:ba[0],y:ba[1]}),Gu&&io(Gu,["mouseover","tapdragover"],Is,{x:ba[0],y:ba[1]}),eo.hoverData.last=Gu),Zu)if(yp){if(Ds.boxSelectionEnabled()&&ap)Zu&&Zu.grabbed()&&($o(K1),Zu.emit("freeon"),K1.emit("free"),eo.dragData.didDrag&&(Zu.emit("dragfreeon"),K1.emit("dragfree"))),b0();else if(Zu&&Zu.grabbed()&&eo.nodeIsDraggable(Zu)){var up=!eo.dragData.didDrag;up&&eo.redrawHint("eles",!0),eo.dragData.didDrag=!0,eo.hoverData.draggingEles||ko(K1,{inDragLayer:!0});var Lp={x:0,y:0};if(number$1(L1[0])&&number$1(L1[1])&&(Lp.x+=L1[0],Lp.y+=L1[1],up)){var Mv=eo.hoverData.dragDelta;Mv&&number$1(Mv[0])&&number$1(Mv[1])&&(Lp.x+=Mv[0],Lp.y+=Mv[1])}eo.hoverData.draggingEles=!0,K1.silentShift(Lp).emit("position drag"),eo.redrawHint("drag",!0),eo.redraw()}}else x0();Bs=!0}if(e1[2]=ba[0],e1[3]=ba[1],Bs)return Is.stopPropagation&&Is.stopPropagation(),Is.preventDefault&&Is.preventDefault(),!1}},!1);var Uo,Ho,Yo;eo.registerBinding(to,"mouseup",function(Is){var Ks=eo.hoverData.capture;if(Ks){eo.hoverData.capture=!1;var Bs=eo.cy,Ds=eo.projectIntoViewport(Is.clientX,Is.clientY),Zs=eo.selection,Cl=eo.findNearestElement(Ds[0],Ds[1],!0,!1),ba=eo.dragData.possibleDragElements,fu=eo.hoverData.down,Lu=so(Is);if(eo.data.bgActivePosistion&&(eo.redrawHint("select",!0),eo.redraw()),eo.hoverData.tapholdCancelled=!0,eo.data.bgActivePosistion=void 0,fu&&fu.unactivate(),eo.hoverData.which===3){var e1={originalEvent:Is,type:"cxttapend",position:{x:Ds[0],y:Ds[1]}};if(fu?fu.emit(e1):Bs.emit(e1),!eo.hoverData.cxtDragged){var Gu={originalEvent:Is,type:"cxttap",position:{x:Ds[0],y:Ds[1]}};fu?fu.emit(Gu):Bs.emit(Gu)}eo.hoverData.cxtDragged=!1,eo.hoverData.which=null}else if(eo.hoverData.which===1){if(io(Cl,["mouseup","tapend","vmouseup"],Is,{x:Ds[0],y:Ds[1]}),!eo.dragData.didDrag&&!eo.hoverData.dragged&&!eo.hoverData.selecting&&!eo.hoverData.isOverThresholdDrag&&(io(fu,["click","tap","vclick"],Is,{x:Ds[0],y:Ds[1]}),Ho=!1,Is.timeStamp-Yo<=Bs.multiClickDebounceTime()?(Uo&&clearTimeout(Uo),Ho=!0,Yo=null,io(fu,["dblclick","dbltap","vdblclick"],Is,{x:Ds[0],y:Ds[1]})):(Uo=setTimeout(function(){Ho||io(fu,["oneclick","onetap","voneclick"],Is,{x:Ds[0],y:Ds[1]})},Bs.multiClickDebounceTime()),Yo=Is.timeStamp)),fu==null&&!eo.dragData.didDrag&&!eo.hoverData.selecting&&!eo.hoverData.dragged&&!so(Is)&&(Bs.$(no).unselect(["tapunselect"]),ba.length>0&&eo.redrawHint("eles",!0),eo.dragData.possibleDragElements=ba=Bs.collection()),Cl==fu&&!eo.dragData.didDrag&&!eo.hoverData.selecting&&Cl!=null&&Cl._private.selectable&&(eo.hoverData.dragging||(Bs.selectionType()==="additive"||Lu?Cl.selected()?Cl.unselect(["tapunselect"]):Cl.select(["tapselect"]):Lu||(Bs.$(no).unmerge(Cl).unselect(["tapunselect"]),Cl.select(["tapselect"]))),eo.redrawHint("eles",!0)),eo.hoverData.selecting){var w1=Bs.collection(eo.getAllInBox(Zs[0],Zs[1],Zs[2],Zs[3]));eo.redrawHint("select",!0),w1.length>0&&eo.redrawHint("eles",!0),Bs.emit({type:"boxend",originalEvent:Is,position:{x:Ds[0],y:Ds[1]}});var Zu=function(yp){return yp.selectable()&&!yp.selected()};Bs.selectionType()==="additive"||Lu||Bs.$(no).unmerge(w1).unselect(),w1.emit("box").stdFilter(Zu).select().emit("boxselect"),eo.redraw()}if(eo.hoverData.dragging&&(eo.hoverData.dragging=!1,eo.redrawHint("select",!0),eo.redrawHint("eles",!0),eo.redraw()),!Zs[4]){eo.redrawHint("drag",!0),eo.redrawHint("eles",!0);var L1=fu&&fu.grabbed();$o(ba),L1&&(fu.emit("freeon"),ba.emit("free"),eo.dragData.didDrag&&(fu.emit("dragfreeon"),ba.emit("dragfree")))}}Zs[4]=0,eo.hoverData.down=null,eo.hoverData.cxtStarted=!1,eo.hoverData.draggingEles=!1,eo.hoverData.selecting=!1,eo.hoverData.isOverThresholdDrag=!1,eo.dragData.didDrag=!1,eo.hoverData.dragged=!1,eo.hoverData.dragDelta=[],eo.hoverData.mdownPos=null,eo.hoverData.mdownGPos=null}},!1);var qo=function(Is){if(!eo.scrollingPage){var Ks=eo.cy,Bs=Ks.zoom(),Ds=Ks.pan(),Zs=eo.projectIntoViewport(Is.clientX,Is.clientY),Cl=[Zs[0]*Bs+Ds.x,Zs[1]*Bs+Ds.y];if(eo.hoverData.draggingEles||eo.hoverData.dragging||eo.hoverData.cxtStarted||Go()){Is.preventDefault();return}if(Ks.panningEnabled()&&Ks.userPanningEnabled()&&Ks.zoomingEnabled()&&Ks.userZoomingEnabled()){Is.preventDefault(),eo.data.wheelZooming=!0,clearTimeout(eo.data.wheelTimeout),eo.data.wheelTimeout=setTimeout(function(){eo.data.wheelZooming=!1,eo.redrawHint("eles",!0),eo.redraw()},150);var ba;Is.deltaY!=null?ba=Is.deltaY/-250:Is.wheelDeltaY!=null?ba=Is.wheelDeltaY/1e3:ba=Is.wheelDelta/1e3,ba=ba*eo.wheelSensitivity;var fu=Is.deltaMode===1;fu&&(ba*=33);var Lu=Ks.zoom()*Math.pow(10,ba);Is.type==="gesturechange"&&(Lu=eo.gestureStartZoom*Is.scale),Ks.zoom({level:Lu,renderedPosition:{x:Cl[0],y:Cl[1]}}),Ks.emit(Is.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};eo.registerBinding(eo.container,"wheel",qo,!0),eo.registerBinding(to,"scroll",function(Is){eo.scrollingPage=!0,clearTimeout(eo.scrollingPageTimeout),eo.scrollingPageTimeout=setTimeout(function(){eo.scrollingPage=!1},250)},!0),eo.registerBinding(eo.container,"gesturestart",function(Is){eo.gestureStartZoom=eo.cy.zoom(),eo.hasTouchStarted||Is.preventDefault()},!0),eo.registerBinding(eo.container,"gesturechange",function(Kl){eo.hasTouchStarted||qo(Kl)},!0),eo.registerBinding(eo.container,"mouseout",function(Is){var Ks=eo.projectIntoViewport(Is.clientX,Is.clientY);eo.cy.emit({originalEvent:Is,type:"mouseout",position:{x:Ks[0],y:Ks[1]}})},!1),eo.registerBinding(eo.container,"mouseover",function(Is){var Ks=eo.projectIntoViewport(Is.clientX,Is.clientY);eo.cy.emit({originalEvent:Is,type:"mouseover",position:{x:Ks[0],y:Ks[1]}})},!1);var Jo,ps,Qo,hs,gs,ys,vs,ks,Os,Ts,Xs,Ws,Ps,qs=function(Is,Ks,Bs,Ds){return Math.sqrt((Bs-Is)*(Bs-Is)+(Ds-Ks)*(Ds-Ks))},ga=function(Is,Ks,Bs,Ds){return(Bs-Is)*(Bs-Is)+(Ds-Ks)*(Ds-Ks)},Fs;eo.registerBinding(eo.container,"touchstart",Fs=function(Is){if(eo.hasTouchStarted=!0,!!Do(Is)){Oo(),eo.touchData.capture=!0,eo.data.bgActivePosistion=void 0;var Ks=eo.cy,Bs=eo.touchData.now,Ds=eo.touchData.earlier;if(Is.touches[0]){var Zs=eo.projectIntoViewport(Is.touches[0].clientX,Is.touches[0].clientY);Bs[0]=Zs[0],Bs[1]=Zs[1]}if(Is.touches[1]){var Zs=eo.projectIntoViewport(Is.touches[1].clientX,Is.touches[1].clientY);Bs[2]=Zs[0],Bs[3]=Zs[1]}if(Is.touches[2]){var Zs=eo.projectIntoViewport(Is.touches[2].clientX,Is.touches[2].clientY);Bs[4]=Zs[0],Bs[5]=Zs[1]}if(Is.touches[1]){eo.touchData.singleTouchMoved=!0,$o(eo.dragData.touchDragEles);var Cl=eo.findContainerClientCoords();Os=Cl[0],Ts=Cl[1],Xs=Cl[2],Ws=Cl[3],Jo=Is.touches[0].clientX-Os,ps=Is.touches[0].clientY-Ts,Qo=Is.touches[1].clientX-Os,hs=Is.touches[1].clientY-Ts,Ps=0<=Jo&&Jo<=Xs&&0<=Qo&&Qo<=Xs&&0<=ps&&ps<=Ws&&0<=hs&&hs<=Ws;var ba=Ks.pan(),fu=Ks.zoom();gs=qs(Jo,ps,Qo,hs),ys=ga(Jo,ps,Qo,hs),vs=[(Jo+Qo)/2,(ps+hs)/2],ks=[(vs[0]-ba.x)/fu,(vs[1]-ba.y)/fu];var Lu=200,e1=Lu*Lu;if(ys=1){for(var j0=eo.touchData.startPosition=[null,null,null,null,null,null],h0=0;h0=eo.touchTapThreshold2}if(Ks&&eo.touchData.cxt){Is.preventDefault();var j0=Is.touches[0].clientX-Os,h0=Is.touches[0].clientY-Ts,cp=Is.touches[1].clientX-Os,k0=Is.touches[1].clientY-Ts,ap=ga(j0,h0,cp,k0),x0=ap/ys,b0=150,P1=b0*b0,c1=1.5,V0=c1*c1;if(x0>=V0||ap>=P1){eo.touchData.cxt=!1,eo.data.bgActivePosistion=void 0,eo.redrawHint("select",!0);var P0={originalEvent:Is,type:"cxttapend",position:{x:Zs[0],y:Zs[1]}};eo.touchData.start?(eo.touchData.start.unactivate().emit(P0),eo.touchData.start=null):Ds.emit(P0)}}if(Ks&&eo.touchData.cxt){var P0={originalEvent:Is,type:"cxtdrag",position:{x:Zs[0],y:Zs[1]}};eo.data.bgActivePosistion=void 0,eo.redrawHint("select",!0),eo.touchData.start?eo.touchData.start.emit(P0):Ds.emit(P0),eo.touchData.start&&(eo.touchData.start._private.grabbed=!1),eo.touchData.cxtDragged=!0;var up=eo.findNearestElement(Zs[0],Zs[1],!0,!0);(!eo.touchData.cxtOver||up!==eo.touchData.cxtOver)&&(eo.touchData.cxtOver&&eo.touchData.cxtOver.emit({originalEvent:Is,type:"cxtdragout",position:{x:Zs[0],y:Zs[1]}}),eo.touchData.cxtOver=up,up&&up.emit({originalEvent:Is,type:"cxtdragover",position:{x:Zs[0],y:Zs[1]}}))}else if(Ks&&Is.touches[2]&&Ds.boxSelectionEnabled())Is.preventDefault(),eo.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,eo.touchData.selecting||Ds.emit({originalEvent:Is,type:"boxstart",position:{x:Zs[0],y:Zs[1]}}),eo.touchData.selecting=!0,eo.touchData.didSelect=!0,Bs[4]=1,!Bs||Bs.length===0||Bs[0]===void 0?(Bs[0]=(Zs[0]+Zs[2]+Zs[4])/3,Bs[1]=(Zs[1]+Zs[3]+Zs[5])/3,Bs[2]=(Zs[0]+Zs[2]+Zs[4])/3+1,Bs[3]=(Zs[1]+Zs[3]+Zs[5])/3+1):(Bs[2]=(Zs[0]+Zs[2]+Zs[4])/3,Bs[3]=(Zs[1]+Zs[3]+Zs[5])/3),eo.redrawHint("select",!0),eo.redraw();else if(Ks&&Is.touches[1]&&!eo.touchData.didSelect&&Ds.zoomingEnabled()&&Ds.panningEnabled()&&Ds.userZoomingEnabled()&&Ds.userPanningEnabled()){Is.preventDefault(),eo.data.bgActivePosistion=void 0,eo.redrawHint("select",!0);var Lp=eo.dragData.touchDragEles;if(Lp){eo.redrawHint("drag",!0);for(var Mv=0;Mv0&&!eo.hoverData.draggingEles&&!eo.swipePanning&&eo.data.bgActivePosistion!=null&&(eo.data.bgActivePosistion=void 0,eo.redrawHint("select",!0),eo.redraw())}},!1);var Vs;eo.registerBinding(to,"touchcancel",Vs=function(Is){var Ks=eo.touchData.start;eo.touchData.capture=!1,Ks&&Ks.unactivate()});var El,yl,Gl,Qs;if(eo.registerBinding(to,"touchend",El=function(Is){var Ks=eo.touchData.start,Bs=eo.touchData.capture;if(Bs)Is.touches.length===0&&(eo.touchData.capture=!1),Is.preventDefault();else return;var Ds=eo.selection;eo.swipePanning=!1,eo.hoverData.draggingEles=!1;var Zs=eo.cy,Cl=Zs.zoom(),ba=eo.touchData.now,fu=eo.touchData.earlier;if(Is.touches[0]){var Lu=eo.projectIntoViewport(Is.touches[0].clientX,Is.touches[0].clientY);ba[0]=Lu[0],ba[1]=Lu[1]}if(Is.touches[1]){var Lu=eo.projectIntoViewport(Is.touches[1].clientX,Is.touches[1].clientY);ba[2]=Lu[0],ba[3]=Lu[1]}if(Is.touches[2]){var Lu=eo.projectIntoViewport(Is.touches[2].clientX,Is.touches[2].clientY);ba[4]=Lu[0],ba[5]=Lu[1]}Ks&&Ks.unactivate();var e1;if(eo.touchData.cxt){if(e1={originalEvent:Is,type:"cxttapend",position:{x:ba[0],y:ba[1]}},Ks?Ks.emit(e1):Zs.emit(e1),!eo.touchData.cxtDragged){var Gu={originalEvent:Is,type:"cxttap",position:{x:ba[0],y:ba[1]}};Ks?Ks.emit(Gu):Zs.emit(Gu)}eo.touchData.start&&(eo.touchData.start._private.grabbed=!1),eo.touchData.cxt=!1,eo.touchData.start=null,eo.redraw();return}if(!Is.touches[2]&&Zs.boxSelectionEnabled()&&eo.touchData.selecting){eo.touchData.selecting=!1;var w1=Zs.collection(eo.getAllInBox(Ds[0],Ds[1],Ds[2],Ds[3]));Ds[0]=void 0,Ds[1]=void 0,Ds[2]=void 0,Ds[3]=void 0,Ds[4]=0,eo.redrawHint("select",!0),Zs.emit({type:"boxend",originalEvent:Is,position:{x:ba[0],y:ba[1]}});var Zu=function(P1){return P1.selectable()&&!P1.selected()};w1.emit("box").stdFilter(Zu).select().emit("boxselect"),w1.nonempty()&&eo.redrawHint("eles",!0),eo.redraw()}if(Ks!=null&&Ks.unactivate(),Is.touches[2])eo.data.bgActivePosistion=void 0,eo.redrawHint("select",!0);else if(!Is.touches[1]){if(!Is.touches[0]){if(!Is.touches[0]){eo.data.bgActivePosistion=void 0,eo.redrawHint("select",!0);var L1=eo.dragData.touchDragEles;if(Ks!=null){var K1=Ks._private.grabbed;$o(L1),eo.redrawHint("drag",!0),eo.redrawHint("eles",!0),K1&&(Ks.emit("freeon"),L1.emit("free"),eo.dragData.didDrag&&(Ks.emit("dragfreeon"),L1.emit("dragfree"))),io(Ks,["touchend","tapend","vmouseup","tapdragout"],Is,{x:ba[0],y:ba[1]}),Ks.unactivate(),eo.touchData.start=null}else{var yp=eo.findNearestElement(ba[0],ba[1],!0,!0);io(yp,["touchend","tapend","vmouseup","tapdragout"],Is,{x:ba[0],y:ba[1]})}var wp=eo.touchData.startPosition[0]-ba[0],j0=wp*wp,h0=eo.touchData.startPosition[1]-ba[1],cp=h0*h0,k0=j0+cp,ap=k0*Cl*Cl;eo.touchData.singleTouchMoved||(Ks||Zs.$(":selected").unselect(["tapunselect"]),io(Ks,["tap","vclick"],Is,{x:ba[0],y:ba[1]}),yl=!1,Is.timeStamp-Qs<=Zs.multiClickDebounceTime()?(Gl&&clearTimeout(Gl),yl=!0,Qs=null,io(Ks,["dbltap","vdblclick"],Is,{x:ba[0],y:ba[1]})):(Gl=setTimeout(function(){yl||io(Ks,["onetap","voneclick"],Is,{x:ba[0],y:ba[1]})},Zs.multiClickDebounceTime()),Qs=Is.timeStamp)),Ks!=null&&!eo.dragData.didDrag&&Ks._private.selectable&&ap"u"){var du=[],Ol=function(Is){return{clientX:Is.clientX,clientY:Is.clientY,force:1,identifier:Is.pointerId,pageX:Is.pageX,pageY:Is.pageY,radiusX:Is.width/2,radiusY:Is.height/2,screenX:Is.screenX,screenY:Is.screenY,target:Is.target}},Fu=function(Is){return{event:Is,touch:Ol(Is)}},ju=function(Is){du.push(Fu(Is))},F1=function(Is){for(var Ks=0;Ks0)return Os[0]}return null},ko=Object.keys(So),Co=0;Co0?_o:roundRectangleIntersectLine(ao,lo,to,no,io,so,uo,ho)},checkPoint:function(to,no,io,so,ao,lo,uo,ho){ho=ho==="auto"?getRoundRectangleRadius(so,ao):ho;var go=2*ho;if(pointInsidePolygon(to,no,this.points,lo,uo,so,ao-go,[0,-1],io)||pointInsidePolygon(to,no,this.points,lo,uo,so-go,ao,[0,-1],io))return!0;var mo=so/2+2*io,yo=ao/2+2*io,So=[lo-mo,uo-yo,lo-mo,uo,lo+mo,uo,lo+mo,uo-yo];return!!(pointInsidePolygonPoints(to,no,So)||checkInEllipse(to,no,go,go,lo+so/2-ho,uo+ao/2-ho,io)||checkInEllipse(to,no,go,go,lo-so/2+ho,uo+ao/2-ho,io))}}};BRp$2.registerNodeShapes=function(){var eo=this.nodeShapes={},to=this;this.generateEllipse(),this.generatePolygon("triangle",generateUnitNgonPointsFitToSquare(3,0)),this.generateRoundPolygon("round-triangle",generateUnitNgonPointsFitToSquare(3,0)),this.generatePolygon("rectangle",generateUnitNgonPointsFitToSquare(4,0)),eo.square=eo.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var no=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",no),this.generateRoundPolygon("round-diamond",no)}this.generatePolygon("pentagon",generateUnitNgonPointsFitToSquare(5,0)),this.generateRoundPolygon("round-pentagon",generateUnitNgonPointsFitToSquare(5,0)),this.generatePolygon("hexagon",generateUnitNgonPointsFitToSquare(6,0)),this.generateRoundPolygon("round-hexagon",generateUnitNgonPointsFitToSquare(6,0)),this.generatePolygon("heptagon",generateUnitNgonPointsFitToSquare(7,0)),this.generateRoundPolygon("round-heptagon",generateUnitNgonPointsFitToSquare(7,0)),this.generatePolygon("octagon",generateUnitNgonPointsFitToSquare(8,0)),this.generateRoundPolygon("round-octagon",generateUnitNgonPointsFitToSquare(8,0));var io=new Array(20);{var so=generateUnitNgonPoints(5,0),ao=generateUnitNgonPoints(5,Math.PI/5),lo=.5*(3-Math.sqrt(5));lo*=1.57;for(var uo=0;uo=to.deqFastCost*Mo)break}else if(go){if(Oo>=to.deqCost*_o||Oo>=to.deqAvgCost*So)break}else if(No>=to.deqNoDrawCost*fullFpsTime)break;var Bo=to.deq(io,$o,Co);if(Bo.length>0)for(var Fo=0;Fo0&&(to.onDeqd(io,ko),!go&&to.shouldRedraw(io,ko,$o,Co)&&ao())},uo=to.priority||noop$1;so.beforeRender(lo,uo(io))}}}},ElementTextureCacheLookup=function(){function eo(to){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:falsify;_classCallCheck(this,eo),this.idsByKey=new Map$2,this.keyForId=new Map$2,this.cachesByLvl=new Map$2,this.lvls=[],this.getKey=to,this.doesEleInvalidateKey=no}return _createClass(eo,[{key:"getIdsFor",value:function(no){no==null&&error("Can not get id list for null key");var io=this.idsByKey,so=this.idsByKey.get(no);return so||(so=new Set$1,io.set(no,so)),so}},{key:"addIdForKey",value:function(no,io){no!=null&&this.getIdsFor(no).add(io)}},{key:"deleteIdForKey",value:function(no,io){no!=null&&this.getIdsFor(no).delete(io)}},{key:"getNumberOfIdsForKey",value:function(no){return no==null?0:this.getIdsFor(no).size}},{key:"updateKeyMappingFor",value:function(no){var io=no.id(),so=this.keyForId.get(io),ao=this.getKey(no);this.deleteIdForKey(so,io),this.addIdForKey(ao,io),this.keyForId.set(io,ao)}},{key:"deleteKeyMappingFor",value:function(no){var io=no.id(),so=this.keyForId.get(io);this.deleteIdForKey(so,io),this.keyForId.delete(io)}},{key:"keyHasChangedFor",value:function(no){var io=no.id(),so=this.keyForId.get(io),ao=this.getKey(no);return so!==ao}},{key:"isInvalid",value:function(no){return this.keyHasChangedFor(no)||this.doesEleInvalidateKey(no)}},{key:"getCachesAt",value:function(no){var io=this.cachesByLvl,so=this.lvls,ao=io.get(no);return ao||(ao=new Map$2,io.set(no,ao),so.push(no)),ao}},{key:"getCache",value:function(no,io){return this.getCachesAt(io).get(no)}},{key:"get",value:function(no,io){var so=this.getKey(no),ao=this.getCache(so,io);return ao!=null&&this.updateKeyMappingFor(no),ao}},{key:"getForCachedKey",value:function(no,io){var so=this.keyForId.get(no.id()),ao=this.getCache(so,io);return ao}},{key:"hasCache",value:function(no,io){return this.getCachesAt(io).has(no)}},{key:"has",value:function(no,io){var so=this.getKey(no);return this.hasCache(so,io)}},{key:"setCache",value:function(no,io,so){so.key=no,this.getCachesAt(io).set(no,so)}},{key:"set",value:function(no,io,so){var ao=this.getKey(no);this.setCache(ao,io,so),this.updateKeyMappingFor(no)}},{key:"deleteCache",value:function(no,io){this.getCachesAt(io).delete(no)}},{key:"delete",value:function(no,io){var so=this.getKey(no);this.deleteCache(so,io)}},{key:"invalidateKey",value:function(no){var io=this;this.lvls.forEach(function(so){return io.deleteCache(no,so)})}},{key:"invalidate",value:function(no){var io=no.id(),so=this.keyForId.get(io);this.deleteKeyMappingFor(no);var ao=this.doesEleInvalidateKey(no);return ao&&this.invalidateKey(so),ao||this.getNumberOfIdsForKey(so)===0}}]),eo}(),minTxrH=25,txrStepH=50,minLvl$1=-4,maxLvl$1=3,maxZoom$1=7.99,eleTxrSpacing=8,defTxrWidth=1024,maxTxrW=1024,maxTxrH=1024,minUtility=.2,maxFullness=.8,maxFullnessChecks=10,deqCost$1=.15,deqAvgCost$1=.1,deqNoDrawCost$1=.9,deqFastCost$1=.9,deqRedrawThreshold$1=100,maxDeqSize$1=1,getTxrReasons={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},initDefaults=defaults$g({getKey:null,doesEleInvalidateKey:falsify,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:trueify,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),ElementTextureCache=function eo(to,no){var io=this;io.renderer=to,io.onDequeues=[];var so=initDefaults(no);extend(io,so),io.lookup=new ElementTextureCacheLookup(so.getKey,so.doesEleInvalidateKey),io.setupDequeueing()},ETCp=ElementTextureCache.prototype;ETCp.reasons=getTxrReasons;ETCp.getTextureQueue=function(eo){var to=this;return to.eleImgCaches=to.eleImgCaches||{},to.eleImgCaches[eo]=to.eleImgCaches[eo]||[]};ETCp.getRetiredTextureQueue=function(eo){var to=this,no=to.eleImgCaches.retired=to.eleImgCaches.retired||{},io=no[eo]=no[eo]||[];return io};ETCp.getElementQueue=function(){var eo=this,to=eo.eleCacheQueue=eo.eleCacheQueue||new heap(function(no,io){return io.reqs-no.reqs});return to};ETCp.getElementKeyToQueue=function(){var eo=this,to=eo.eleKeyToCacheQueue=eo.eleKeyToCacheQueue||{};return to};ETCp.getElement=function(eo,to,no,io,so){var ao=this,lo=this.renderer,uo=lo.cy.zoom(),ho=this.lookup;if(!to||to.w===0||to.h===0||isNaN(to.w)||isNaN(to.h)||!eo.visible()||eo.removed()||!ao.allowEdgeTxrCaching&&eo.isEdge()||!ao.allowParentTxrCaching&&eo.isParent())return null;if(io==null&&(io=Math.ceil(log2(uo*no))),io=maxZoom$1||io>maxLvl$1)return null;var go=Math.pow(2,io),mo=to.h*go,yo=to.w*go,So=lo.eleTextBiggerThanMin(eo,go);if(!this.isVisible(eo,So))return null;var _o=ho.get(eo,io);if(_o&&_o.invalidated&&(_o.invalidated=!1,_o.texture.invalidatedWidth-=_o.width),_o)return _o;var ko;if(mo<=minTxrH?ko=minTxrH:mo<=txrStepH?ko=txrStepH:ko=Math.ceil(mo/txrStepH)*txrStepH,mo>maxTxrH||yo>maxTxrW)return null;var Co=ao.getTextureQueue(ko),$o=Co[Co.length-2],Ro=function(){return ao.recycleTexture(ko,yo)||ao.addTexture(ko,yo)};$o||($o=Co[Co.length-1]),$o||($o=Ro()),$o.width-$o.usedWidthio;Ho--)Do=ao.getElement(eo,to,no,Ho,getTxrReasons.downscale);Uo()}else return ao.queueElement(eo,Fo.level-1),Fo;else{var Yo;if(!No&&!Mo&&!Bo)for(var qo=io-1;qo>=minLvl$1;qo--){var Jo=ho.get(eo,qo);if(Jo){Yo=Jo;break}}if(Oo(Yo))return ao.queueElement(eo,io),Yo;$o.context.translate($o.usedWidth,0),$o.context.scale(go,go),this.drawElement($o.context,eo,to,So,!1),$o.context.scale(1/go,1/go),$o.context.translate(-$o.usedWidth,0)}return _o={x:$o.usedWidth,texture:$o,level:io,scale:go,width:yo,height:mo,scaledLabelShown:So},$o.usedWidth+=Math.ceil(yo+eleTxrSpacing),$o.eleCaches.push(_o),ho.set(eo,io,_o),ao.checkTextureFullness($o),_o};ETCp.invalidateElements=function(eo){for(var to=0;to=minUtility*eo.width&&this.retireTexture(eo)};ETCp.checkTextureFullness=function(eo){var to=this,no=to.getTextureQueue(eo.height);eo.usedWidth/eo.width>maxFullness&&eo.fullnessChecks>=maxFullnessChecks?removeFromArray(no,eo):eo.fullnessChecks++};ETCp.retireTexture=function(eo){var to=this,no=eo.height,io=to.getTextureQueue(no),so=this.lookup;removeFromArray(io,eo),eo.retired=!0;for(var ao=eo.eleCaches,lo=0;lo=to)return lo.retired=!1,lo.usedWidth=0,lo.invalidatedWidth=0,lo.fullnessChecks=0,clearArray(lo.eleCaches),lo.context.setTransform(1,0,0,1,0,0),lo.context.clearRect(0,0,lo.width,lo.height),removeFromArray(so,lo),io.push(lo),lo}};ETCp.queueElement=function(eo,to){var no=this,io=no.getElementQueue(),so=no.getElementKeyToQueue(),ao=this.getKey(eo),lo=so[ao];if(lo)lo.level=Math.max(lo.level,to),lo.eles.merge(eo),lo.reqs++,io.updateItem(lo);else{var uo={eles:eo.spawn().merge(eo),level:to,reqs:1,key:ao};io.push(uo),so[ao]=uo}};ETCp.dequeue=function(eo){for(var to=this,no=to.getElementQueue(),io=to.getElementKeyToQueue(),so=[],ao=to.lookup,lo=0;lo0;lo++){var uo=no.pop(),ho=uo.key,go=uo.eles[0],mo=ao.hasCache(go,uo.level);if(io[ho]=null,mo)continue;so.push(uo);var yo=to.getBoundingBox(go);to.getElement(go,yo,eo,uo.level,getTxrReasons.dequeue)}return so};ETCp.removeFromQueue=function(eo){var to=this,no=to.getElementQueue(),io=to.getElementKeyToQueue(),so=this.getKey(eo),ao=io[so];ao!=null&&(ao.eles.length===1?(ao.reqs=MAX_INT$1,no.updateItem(ao),no.pop(),io[so]=null):ao.eles.unmerge(eo))};ETCp.onDequeue=function(eo){this.onDequeues.push(eo)};ETCp.offDequeue=function(eo){removeFromArray(this.onDequeues,eo)};ETCp.setupDequeueing=defs.setupDequeueing({deqRedrawThreshold:deqRedrawThreshold$1,deqCost:deqCost$1,deqAvgCost:deqAvgCost$1,deqNoDrawCost:deqNoDrawCost$1,deqFastCost:deqFastCost$1,deq:function eo(to,no,io){return to.dequeue(no,io)},onDeqd:function eo(to,no){for(var io=0;io=maxZoom||no>maxLvl)return null}io.validateLayersElesOrdering(no,eo);var ho=io.layersByLevel,go=Math.pow(2,no),mo=ho[no]=ho[no]||[],yo,So=io.levelIsComplete(no,eo),_o,ko=function(){var Uo=function(ps){if(io.validateLayersElesOrdering(ps,eo),io.levelIsComplete(ps,eo))return _o=ho[ps],!0},Ho=function(ps){if(!_o)for(var Qo=no+ps;minLvl<=Qo&&Qo<=maxLvl&&!Uo(Qo);Qo+=ps);};Ho(1),Ho(-1);for(var Yo=mo.length-1;Yo>=0;Yo--){var qo=mo[Yo];qo.invalid&&removeFromArray(mo,qo)}};if(!So)ko();else return mo;var Co=function(){if(!yo){yo=makeBoundingBox();for(var Uo=0;UomaxLayerArea)return null;var qo=io.makeLayer(yo,no);if(Ho!=null){var Jo=mo.indexOf(Ho)+1;mo.splice(Jo,0,qo)}else(Uo.insert===void 0||Uo.insert)&&mo.unshift(qo);return qo};if(io.skipping&&!uo)return null;for(var Ro=null,Oo=eo.length/defNumLayers,No=!uo,Mo=0;Mo=Oo||!boundingBoxInBoundingBox(Ro.bb,Bo.boundingBox()))&&(Ro=$o({insert:!0,after:Ro}),!Ro))return null;_o||No?io.queueLayer(Ro,Bo):io.drawEleInLayer(Ro,Bo,no,to),Ro.eles.push(Bo),Lo[no]=Ro}return _o||(No?null:mo)};LTCp.getEleLevelForLayerLevel=function(eo,to){return eo};LTCp.drawEleInLayer=function(eo,to,no,io){var so=this,ao=this.renderer,lo=eo.context,uo=to.boundingBox();uo.w===0||uo.h===0||!to.visible()||(no=so.getEleLevelForLayerLevel(no,io),ao.setImgSmoothing(lo,!1),ao.drawCachedElement(lo,to,null,null,no,useHighQualityEleTxrReqs),ao.setImgSmoothing(lo,!0))};LTCp.levelIsComplete=function(eo,to){var no=this,io=no.layersByLevel[eo];if(!io||io.length===0)return!1;for(var so=0,ao=0;ao0||lo.invalid)return!1;so+=lo.eles.length}return so===to.length};LTCp.validateLayersElesOrdering=function(eo,to){var no=this.layersByLevel[eo];if(no)for(var io=0;io0){to=!0;break}}return to};LTCp.invalidateElements=function(eo){var to=this;eo.length!==0&&(to.lastInvalidationTime=performanceNow(),!(eo.length===0||!to.haveLayers())&&to.updateElementsInLayers(eo,function(io,so,ao){to.invalidateLayer(io)}))};LTCp.invalidateLayer=function(eo){if(this.lastInvalidationTime=performanceNow(),!eo.invalid){var to=eo.level,no=eo.eles,io=this.layersByLevel[to];removeFromArray(io,eo),eo.elesQueue=[],eo.invalid=!0,eo.replacement&&(eo.replacement.invalid=!0);for(var so=0;so3&&arguments[3]!==void 0?arguments[3]:!0,so=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,ao=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,lo=this,uo=to._private.rscratch;if(!(ao&&!to.visible())&&!(uo.badLine||uo.allpts==null||isNaN(uo.allpts[0]))){var ho;no&&(ho=no,eo.translate(-ho.x1,-ho.y1));var go=ao?to.pstyle("opacity").value:1,mo=ao?to.pstyle("line-opacity").value:1,yo=to.pstyle("curve-style").value,So=to.pstyle("line-style").value,_o=to.pstyle("width").pfValue,ko=to.pstyle("line-cap").value,Co=go*mo,$o=go*mo,Ro=function(){var Yo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Co;yo==="straight-triangle"?(lo.eleStrokeStyle(eo,to,Yo),lo.drawEdgeTrianglePath(to,eo,uo.allpts)):(eo.lineWidth=_o,eo.lineCap=ko,lo.eleStrokeStyle(eo,to,Yo),lo.drawEdgePath(to,eo,uo.allpts,So),eo.lineCap="butt")},Oo=function(){so&&lo.drawEdgeOverlay(eo,to)},No=function(){so&&lo.drawEdgeUnderlay(eo,to)},Mo=function(){var Yo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$o;lo.drawArrowheads(eo,to,Yo)},Bo=function(){lo.drawElementText(eo,to,null,io)};eo.lineJoin="round";var Fo=to.pstyle("ghost").value==="yes";if(Fo){var Lo=to.pstyle("ghost-offset-x").pfValue,Go=to.pstyle("ghost-offset-y").pfValue,Do=to.pstyle("ghost-opacity").value,Uo=Co*Do;eo.translate(Lo,Go),Ro(Uo),Mo(Uo),eo.translate(-Lo,-Go)}No(),Ro(),Mo(),Oo(),Bo(),no&&eo.translate(ho.x1,ho.y1)}};var drawEdgeOverlayUnderlay=function eo(to){if(!["overlay","underlay"].includes(to))throw new Error("Invalid state");return function(no,io){if(io.visible()){var so=io.pstyle("".concat(to,"-opacity")).value;if(so!==0){var ao=this,lo=ao.usePaths(),uo=io._private.rscratch,ho=io.pstyle("".concat(to,"-padding")).pfValue,go=2*ho,mo=io.pstyle("".concat(to,"-color")).value;no.lineWidth=go,uo.edgeType==="self"&&!lo?no.lineCap="butt":no.lineCap="round",ao.colorStrokeStyle(no,mo[0],mo[1],mo[2],so),ao.drawEdgePath(io,no,uo.allpts,"solid")}}}};CRp$8.drawEdgeOverlay=drawEdgeOverlayUnderlay("overlay");CRp$8.drawEdgeUnderlay=drawEdgeOverlayUnderlay("underlay");CRp$8.drawEdgePath=function(eo,to,no,io){var so=eo._private.rscratch,ao=to,lo,uo=!1,ho=this.usePaths(),go=eo.pstyle("line-dash-pattern").pfValue,mo=eo.pstyle("line-dash-offset").pfValue;if(ho){var yo=no.join("$"),So=so.pathCacheKey&&so.pathCacheKey===yo;So?(lo=to=so.pathCache,uo=!0):(lo=to=new Path2D,so.pathCacheKey=yo,so.pathCache=lo)}if(ao.setLineDash)switch(io){case"dotted":ao.setLineDash([1,1]);break;case"dashed":ao.setLineDash(go),ao.lineDashOffset=mo;break;case"solid":ao.setLineDash([]);break}if(!uo&&!so.badLine)switch(to.beginPath&&to.beginPath(),to.moveTo(no[0],no[1]),so.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var _o=2;_o+35&&arguments[5]!==void 0?arguments[5]:!0,lo=this;if(io==null){if(ao&&!lo.eleTextBiggerThanMin(to))return}else if(io===!1)return;if(to.isNode()){var uo=to.pstyle("label");if(!uo||!uo.value)return;var ho=lo.getLabelJustification(to);eo.textAlign=ho,eo.textBaseline="bottom"}else{var go=to.element()._private.rscratch.badLine,mo=to.pstyle("label"),yo=to.pstyle("source-label"),So=to.pstyle("target-label");if(go||(!mo||!mo.value)&&(!yo||!yo.value)&&(!So||!So.value))return;eo.textAlign="center",eo.textBaseline="bottom"}var _o=!no,ko;no&&(ko=no,eo.translate(-ko.x1,-ko.y1)),so==null?(lo.drawText(eo,to,null,_o,ao),to.isEdge()&&(lo.drawText(eo,to,"source",_o,ao),lo.drawText(eo,to,"target",_o,ao))):lo.drawText(eo,to,so,_o,ao),no&&eo.translate(ko.x1,ko.y1)};CRp$6.getFontCache=function(eo){var to;this.fontCaches=this.fontCaches||[];for(var no=0;no2&&arguments[2]!==void 0?arguments[2]:!0,io=to.pstyle("font-style").strValue,so=to.pstyle("font-size").pfValue+"px",ao=to.pstyle("font-family").strValue,lo=to.pstyle("font-weight").strValue,uo=no?to.effectiveOpacity()*to.pstyle("text-opacity").value:1,ho=to.pstyle("text-outline-opacity").value*uo,go=to.pstyle("color").value,mo=to.pstyle("text-outline-color").value;eo.font=io+" "+lo+" "+so+" "+ao,eo.lineJoin="round",this.colorFillStyle(eo,go[0],go[1],go[2],uo),this.colorStrokeStyle(eo,mo[0],mo[1],mo[2],ho)};function roundRect(eo,to,no,io,so){var ao=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,lo=arguments.length>6?arguments[6]:void 0;eo.beginPath(),eo.moveTo(to+ao,no),eo.lineTo(to+io-ao,no),eo.quadraticCurveTo(to+io,no,to+io,no+ao),eo.lineTo(to+io,no+so-ao),eo.quadraticCurveTo(to+io,no+so,to+io-ao,no+so),eo.lineTo(to+ao,no+so),eo.quadraticCurveTo(to,no+so,to,no+so-ao),eo.lineTo(to,no+ao),eo.quadraticCurveTo(to,no,to+ao,no),eo.closePath(),lo?eo.stroke():eo.fill()}CRp$6.getTextAngle=function(eo,to){var no,io=eo._private,so=io.rscratch,ao=to?to+"-":"",lo=eo.pstyle(ao+"text-rotation"),uo=getPrefixedProperty(so,"labelAngle",to);return lo.strValue==="autorotate"?no=eo.isEdge()?uo:0:lo.strValue==="none"?no=0:no=lo.pfValue,no};CRp$6.drawText=function(eo,to,no){var io=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,so=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,ao=to._private,lo=ao.rscratch,uo=so?to.effectiveOpacity():1;if(!(so&&(uo===0||to.pstyle("text-opacity").value===0))){no==="main"&&(no=null);var ho=getPrefixedProperty(lo,"labelX",no),go=getPrefixedProperty(lo,"labelY",no),mo,yo,So=this.getLabelText(to,no);if(So!=null&&So!==""&&!isNaN(ho)&&!isNaN(go)){this.setupTextStyle(eo,to,so);var _o=no?no+"-":"",ko=getPrefixedProperty(lo,"labelWidth",no),Co=getPrefixedProperty(lo,"labelHeight",no),$o=to.pstyle(_o+"text-margin-x").pfValue,Ro=to.pstyle(_o+"text-margin-y").pfValue,Oo=to.isEdge(),No=to.pstyle("text-halign").value,Mo=to.pstyle("text-valign").value;Oo&&(No="center",Mo="center"),ho+=$o,go+=Ro;var Bo;switch(io?Bo=this.getTextAngle(to,no):Bo=0,Bo!==0&&(mo=ho,yo=go,eo.translate(mo,yo),eo.rotate(Bo),ho=0,go=0),Mo){case"top":break;case"center":go+=Co/2;break;case"bottom":go+=Co;break}var Fo=to.pstyle("text-background-opacity").value,Lo=to.pstyle("text-border-opacity").value,Go=to.pstyle("text-border-width").pfValue,Do=to.pstyle("text-background-padding").pfValue,Uo=to.pstyle("text-background-shape").strValue,Ho=Uo.indexOf("round")===0,Yo=2;if(Fo>0||Go>0&&Lo>0){var qo=ho-Do;switch(No){case"left":qo-=ko;break;case"center":qo-=ko/2;break}var Jo=go-Co-Do,ps=ko+2*Do,Qo=Co+2*Do;if(Fo>0){var hs=eo.fillStyle,gs=to.pstyle("text-background-color").value;eo.fillStyle="rgba("+gs[0]+","+gs[1]+","+gs[2]+","+Fo*uo+")",Ho?roundRect(eo,qo,Jo,ps,Qo,Yo):eo.fillRect(qo,Jo,ps,Qo),eo.fillStyle=hs}if(Go>0&&Lo>0){var ys=eo.strokeStyle,vs=eo.lineWidth,ks=to.pstyle("text-border-color").value,Os=to.pstyle("text-border-style").value;if(eo.strokeStyle="rgba("+ks[0]+","+ks[1]+","+ks[2]+","+Lo*uo+")",eo.lineWidth=Go,eo.setLineDash)switch(Os){case"dotted":eo.setLineDash([1,1]);break;case"dashed":eo.setLineDash([4,2]);break;case"double":eo.lineWidth=Go/4,eo.setLineDash([]);break;case"solid":eo.setLineDash([]);break}if(Ho?roundRect(eo,qo,Jo,ps,Qo,Yo,"stroke"):eo.strokeRect(qo,Jo,ps,Qo),Os==="double"){var Ts=Go/2;Ho?roundRect(eo,qo+Ts,Jo+Ts,ps-Ts*2,Qo-Ts*2,Yo,"stroke"):eo.strokeRect(qo+Ts,Jo+Ts,ps-Ts*2,Qo-Ts*2)}eo.setLineDash&&eo.setLineDash([]),eo.lineWidth=vs,eo.strokeStyle=ys}}var Xs=2*to.pstyle("text-outline-width").pfValue;if(Xs>0&&(eo.lineWidth=Xs),to.pstyle("text-wrap").value==="wrap"){var Ws=getPrefixedProperty(lo,"labelWrapCachedLines",no),Ps=getPrefixedProperty(lo,"labelLineHeight",no),qs=ko/2,ga=this.getLabelJustification(to);switch(ga==="auto"||(No==="left"?ga==="left"?ho+=-ko:ga==="center"&&(ho+=-qs):No==="center"?ga==="left"?ho+=-qs:ga==="right"&&(ho+=qs):No==="right"&&(ga==="center"?ho+=qs:ga==="right"&&(ho+=ko))),Mo){case"top":go-=(Ws.length-1)*Ps;break;case"center":case"bottom":go-=(Ws.length-1)*Ps;break}for(var Fs=0;Fs0&&eo.strokeText(Ws[Fs],ho,go),eo.fillText(Ws[Fs],ho,go),go+=Ps}else Xs>0&&eo.strokeText(So,ho,go),eo.fillText(So,ho,go);Bo!==0&&(eo.rotate(-Bo),eo.translate(-mo,-yo))}}};var CRp$5={};CRp$5.drawNode=function(eo,to,no){var io=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,so=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,ao=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,lo=this,uo,ho,go=to._private,mo=go.rscratch,yo=to.position();if(!(!number$1(yo.x)||!number$1(yo.y))&&!(ao&&!to.visible())){var So=ao?to.effectiveOpacity():1,_o=lo.usePaths(),ko,Co=!1,$o=to.padding();uo=to.width()+2*$o,ho=to.height()+2*$o;var Ro;no&&(Ro=no,eo.translate(-Ro.x1,-Ro.y1));for(var Oo=to.pstyle("background-image"),No=Oo.value,Mo=new Array(No.length),Bo=new Array(No.length),Fo=0,Lo=0;Lo0&&arguments[0]!==void 0?arguments[0]:qo;lo.eleFillStyle(eo,to,Cl)},Fs=function(){var Cl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ks;lo.colorStrokeStyle(eo,Jo[0],Jo[1],Jo[2],Cl)},Js=function(){var Cl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ws;lo.colorStrokeStyle(eo,Ts[0],Ts[1],Ts[2],Cl)},Vs=function(Cl,ba,fu,Lu){var e1=lo.nodePathCache=lo.nodePathCache||[],Gu=hashStrings(fu==="polygon"?fu+","+Lu.join(","):fu,""+ba,""+Cl,""+qs),w1=e1[Gu],Zu,L1=!1;return w1!=null?(Zu=w1,L1=!0,mo.pathCache=Zu):(Zu=new Path2D,e1[Gu]=mo.pathCache=Zu),{path:Zu,cacheHit:L1}},El=to.pstyle("shape").strValue,yl=to.pstyle("shape-polygon-points").pfValue;if(_o){eo.translate(yo.x,yo.y);var Gl=Vs(uo,ho,El,yl);ko=Gl.path,Co=Gl.cacheHit}var Qs=function(){if(!Co){var Cl=yo;_o&&(Cl={x:0,y:0}),lo.nodeShapes[lo.getNodeShape(to)].draw(ko||eo,Cl.x,Cl.y,uo,ho,qs,mo)}_o?eo.fill(ko):eo.fill()},du=function(){for(var Cl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:So,ba=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,fu=go.backgrounding,Lu=0,e1=0;e10&&arguments[0]!==void 0?arguments[0]:!1,ba=arguments.length>1&&arguments[1]!==void 0?arguments[1]:So;lo.hasPie(to)&&(lo.drawPie(eo,to,ba),Cl&&(_o||lo.nodeShapes[lo.getNodeShape(to)].draw(eo,yo.x,yo.y,uo,ho,qs,mo)))},Fu=function(){var Cl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:So,ba=(Ho>0?Ho:-Ho)*Cl,fu=Ho>0?0:255;Ho!==0&&(lo.colorFillStyle(eo,fu,fu,fu,ba),_o?eo.fill(ko):eo.fill())},ju=function(){if(Yo>0){if(eo.lineWidth=Yo,eo.lineCap=hs,eo.lineJoin=Qo,eo.setLineDash)switch(ps){case"dotted":eo.setLineDash([1,1]);break;case"dashed":eo.setLineDash(ys),eo.lineDashOffset=vs;break;case"solid":case"double":eo.setLineDash([]);break}if(gs!=="center"){if(eo.save(),eo.lineWidth*=2,gs==="inside")_o?eo.clip(ko):eo.clip();else{var Cl=new Path2D;Cl.rect(-uo/2-Yo,-ho/2-Yo,uo+2*Yo,ho+2*Yo),Cl.addPath(ko),eo.clip(Cl,"evenodd")}_o?eo.stroke(ko):eo.stroke(),eo.restore()}else _o?eo.stroke(ko):eo.stroke();if(ps==="double"){eo.lineWidth=Yo/3;var ba=eo.globalCompositeOperation;eo.globalCompositeOperation="destination-out",_o?eo.stroke(ko):eo.stroke(),eo.globalCompositeOperation=ba}eo.setLineDash&&eo.setLineDash([])}},F1=function(){if(Os>0){if(eo.lineWidth=Os,eo.lineCap="butt",eo.setLineDash)switch(Xs){case"dotted":eo.setLineDash([1,1]);break;case"dashed":eo.setLineDash([4,2]);break;case"solid":case"double":eo.setLineDash([]);break}var Cl=yo;_o&&(Cl={x:0,y:0});var ba=lo.getNodeShape(to),fu=Yo;gs==="inside"&&(fu=0),gs==="outside"&&(fu*=2);var Lu=(uo+fu+(Os+Ps))/uo,e1=(ho+fu+(Os+Ps))/ho,Gu=uo*Lu,w1=ho*e1,Zu=lo.nodeShapes[ba].points,L1;if(_o){var K1=Vs(Gu,w1,ba,Zu);L1=K1.path}if(ba==="ellipse")lo.drawEllipsePath(L1||eo,Cl.x,Cl.y,Gu,w1);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(ba)){var yp=0,wp=0,j0=0;ba==="round-diamond"?yp=(fu+Ps+Os)*1.4:ba==="round-heptagon"?(yp=(fu+Ps+Os)*1.075,j0=-(fu/2+Ps+Os)/35):ba==="round-hexagon"?yp=(fu+Ps+Os)*1.12:ba==="round-pentagon"?(yp=(fu+Ps+Os)*1.13,j0=-(fu/2+Ps+Os)/15):ba==="round-tag"?(yp=(fu+Ps+Os)*1.12,wp=(fu/2+Os+Ps)*.07):ba==="round-triangle"&&(yp=(fu+Ps+Os)*(Math.PI/2),j0=-(fu+Ps/2+Os)/Math.PI),yp!==0&&(Lu=(uo+yp)/uo,Gu=uo*Lu,["round-hexagon","round-tag"].includes(ba)||(e1=(ho+yp)/ho,w1=ho*e1)),qs=qs==="auto"?getRoundPolygonRadius(Gu,w1):qs;for(var h0=Gu/2,cp=w1/2,k0=qs+(fu+Os+Ps)/2,ap=new Array(Zu.length/2),x0=new Array(Zu.length/2),b0=0;b00){if(so=so||io.position(),ao==null||lo==null){var _o=io.padding();ao=io.width()+2*_o,lo=io.height()+2*_o}uo.colorFillStyle(no,mo[0],mo[1],mo[2],go),uo.nodeShapes[yo].draw(no,so.x,so.y,ao+ho*2,lo+ho*2,So),no.fill()}}}};CRp$5.drawNodeOverlay=drawNodeOverlayUnderlay("overlay");CRp$5.drawNodeUnderlay=drawNodeOverlayUnderlay("underlay");CRp$5.hasPie=function(eo){return eo=eo[0],eo._private.hasPie};CRp$5.drawPie=function(eo,to,no,io){to=to[0],io=io||to.position();var so=to.cy().style(),ao=to.pstyle("pie-size"),lo=io.x,uo=io.y,ho=to.width(),go=to.height(),mo=Math.min(ho,go)/2,yo=0,So=this.usePaths();So&&(lo=0,uo=0),ao.units==="%"?mo=mo*ao.pfValue:ao.pfValue!==void 0&&(mo=ao.pfValue/2);for(var _o=1;_o<=so.pieBackgroundN;_o++){var ko=to.pstyle("pie-"+_o+"-background-size").value,Co=to.pstyle("pie-"+_o+"-background-color").value,$o=to.pstyle("pie-"+_o+"-background-opacity").value*no,Ro=ko/100;Ro+yo>1&&(Ro=1-yo);var Oo=1.5*Math.PI+2*Math.PI*yo,No=2*Math.PI*Ro,Mo=Oo+No;ko===0||yo>=1||yo+Ro>1||(eo.beginPath(),eo.moveTo(lo,uo),eo.arc(lo,uo,mo,Oo,Mo),eo.closePath(),this.colorFillStyle(eo,Co[0],Co[1],Co[2],$o),eo.fill(),yo+=Ro)}};var CRp$4={},motionBlurDelay=100;CRp$4.getPixelRatio=function(){var eo=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var to=eo.backingStorePixelRatio||eo.webkitBackingStorePixelRatio||eo.mozBackingStorePixelRatio||eo.msBackingStorePixelRatio||eo.oBackingStorePixelRatio||eo.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/to};CRp$4.paintCache=function(eo){for(var to=this.paintCaches=this.paintCaches||[],no=!0,io,so=0;solo.minMbLowQualFrames&&(lo.motionBlurPxRatio=lo.mbPxRBlurry)),lo.clearingMotionBlur&&(lo.motionBlurPxRatio=1),lo.textureDrawLastFrame&&!yo&&(mo[lo.NODE]=!0,mo[lo.SELECT_BOX]=!0);var Oo=ho.style(),No=ho.zoom(),Mo=so!==void 0?so:No,Bo=ho.pan(),Fo={x:Bo.x,y:Bo.y},Lo={zoom:No,pan:{x:Bo.x,y:Bo.y}},Go=lo.prevViewport,Do=Go===void 0||Lo.zoom!==Go.zoom||Lo.pan.x!==Go.pan.x||Lo.pan.y!==Go.pan.y;!Do&&!(Co&&!ko)&&(lo.motionBlurPxRatio=1),ao&&(Fo=ao),Mo*=uo,Fo.x*=uo,Fo.y*=uo;var Uo=lo.getCachedZSortedEles();function Ho(Gl,Qs,du,Ol,Fu){var ju=Gl.globalCompositeOperation;Gl.globalCompositeOperation="destination-out",lo.colorFillStyle(Gl,255,255,255,lo.motionBlurTransparency),Gl.fillRect(Qs,du,Ol,Fu),Gl.globalCompositeOperation=ju}function Yo(Gl,Qs){var du,Ol,Fu,ju;!lo.clearingMotionBlur&&(Gl===go.bufferContexts[lo.MOTIONBLUR_BUFFER_NODE]||Gl===go.bufferContexts[lo.MOTIONBLUR_BUFFER_DRAG])?(du={x:Bo.x*_o,y:Bo.y*_o},Ol=No*_o,Fu=lo.canvasWidth*_o,ju=lo.canvasHeight*_o):(du=Fo,Ol=Mo,Fu=lo.canvasWidth,ju=lo.canvasHeight),Gl.setTransform(1,0,0,1,0,0),Qs==="motionBlur"?Ho(Gl,0,0,Fu,ju):!to&&(Qs===void 0||Qs)&&Gl.clearRect(0,0,Fu,ju),no||(Gl.translate(du.x,du.y),Gl.scale(Ol,Ol)),ao&&Gl.translate(ao.x,ao.y),so&&Gl.scale(so,so)}if(yo||(lo.textureDrawLastFrame=!1),yo){if(lo.textureDrawLastFrame=!0,!lo.textureCache){lo.textureCache={},lo.textureCache.bb=ho.mutableElements().boundingBox(),lo.textureCache.texture=lo.data.bufferCanvases[lo.TEXTURE_BUFFER];var qo=lo.data.bufferContexts[lo.TEXTURE_BUFFER];qo.setTransform(1,0,0,1,0,0),qo.clearRect(0,0,lo.canvasWidth*lo.textureMult,lo.canvasHeight*lo.textureMult),lo.render({forcedContext:qo,drawOnlyNodeLayer:!0,forcedPxRatio:uo*lo.textureMult});var Lo=lo.textureCache.viewport={zoom:ho.zoom(),pan:ho.pan(),width:lo.canvasWidth,height:lo.canvasHeight};Lo.mpan={x:(0-Lo.pan.x)/Lo.zoom,y:(0-Lo.pan.y)/Lo.zoom}}mo[lo.DRAG]=!1,mo[lo.NODE]=!1;var Jo=go.contexts[lo.NODE],ps=lo.textureCache.texture,Lo=lo.textureCache.viewport;Jo.setTransform(1,0,0,1,0,0),So?Ho(Jo,0,0,Lo.width,Lo.height):Jo.clearRect(0,0,Lo.width,Lo.height);var Qo=Oo.core("outside-texture-bg-color").value,hs=Oo.core("outside-texture-bg-opacity").value;lo.colorFillStyle(Jo,Qo[0],Qo[1],Qo[2],hs),Jo.fillRect(0,0,Lo.width,Lo.height);var No=ho.zoom();Yo(Jo,!1),Jo.clearRect(Lo.mpan.x,Lo.mpan.y,Lo.width/Lo.zoom/uo,Lo.height/Lo.zoom/uo),Jo.drawImage(ps,Lo.mpan.x,Lo.mpan.y,Lo.width/Lo.zoom/uo,Lo.height/Lo.zoom/uo)}else lo.textureOnViewport&&!to&&(lo.textureCache=null);var gs=ho.extent(),ys=lo.pinching||lo.hoverData.dragging||lo.swipePanning||lo.data.wheelZooming||lo.hoverData.draggingEles||lo.cy.animated(),vs=lo.hideEdgesOnViewport&&ys,ks=[];if(ks[lo.NODE]=!mo[lo.NODE]&&So&&!lo.clearedForMotionBlur[lo.NODE]||lo.clearingMotionBlur,ks[lo.NODE]&&(lo.clearedForMotionBlur[lo.NODE]=!0),ks[lo.DRAG]=!mo[lo.DRAG]&&So&&!lo.clearedForMotionBlur[lo.DRAG]||lo.clearingMotionBlur,ks[lo.DRAG]&&(lo.clearedForMotionBlur[lo.DRAG]=!0),mo[lo.NODE]||no||io||ks[lo.NODE]){var Os=So&&!ks[lo.NODE]&&_o!==1,Jo=to||(Os?lo.data.bufferContexts[lo.MOTIONBLUR_BUFFER_NODE]:go.contexts[lo.NODE]),Ts=So&&!Os?"motionBlur":void 0;Yo(Jo,Ts),vs?lo.drawCachedNodes(Jo,Uo.nondrag,uo,gs):lo.drawLayeredElements(Jo,Uo.nondrag,uo,gs),lo.debug&&lo.drawDebugPoints(Jo,Uo.nondrag),!no&&!So&&(mo[lo.NODE]=!1)}if(!io&&(mo[lo.DRAG]||no||ks[lo.DRAG])){var Os=So&&!ks[lo.DRAG]&&_o!==1,Jo=to||(Os?lo.data.bufferContexts[lo.MOTIONBLUR_BUFFER_DRAG]:go.contexts[lo.DRAG]);Yo(Jo,So&&!Os?"motionBlur":void 0),vs?lo.drawCachedNodes(Jo,Uo.drag,uo,gs):lo.drawCachedElements(Jo,Uo.drag,uo,gs),lo.debug&&lo.drawDebugPoints(Jo,Uo.drag),!no&&!So&&(mo[lo.DRAG]=!1)}if(lo.showFps||!io&&mo[lo.SELECT_BOX]&&!no){var Jo=to||go.contexts[lo.SELECT_BOX];if(Yo(Jo),lo.selection[4]==1&&(lo.hoverData.selecting||lo.touchData.selecting)){var No=lo.cy.zoom(),Xs=Oo.core("selection-box-border-width").value/No;Jo.lineWidth=Xs,Jo.fillStyle="rgba("+Oo.core("selection-box-color").value[0]+","+Oo.core("selection-box-color").value[1]+","+Oo.core("selection-box-color").value[2]+","+Oo.core("selection-box-opacity").value+")",Jo.fillRect(lo.selection[0],lo.selection[1],lo.selection[2]-lo.selection[0],lo.selection[3]-lo.selection[1]),Xs>0&&(Jo.strokeStyle="rgba("+Oo.core("selection-box-border-color").value[0]+","+Oo.core("selection-box-border-color").value[1]+","+Oo.core("selection-box-border-color").value[2]+","+Oo.core("selection-box-opacity").value+")",Jo.strokeRect(lo.selection[0],lo.selection[1],lo.selection[2]-lo.selection[0],lo.selection[3]-lo.selection[1]))}if(go.bgActivePosistion&&!lo.hoverData.selecting){var No=lo.cy.zoom(),Ws=go.bgActivePosistion;Jo.fillStyle="rgba("+Oo.core("active-bg-color").value[0]+","+Oo.core("active-bg-color").value[1]+","+Oo.core("active-bg-color").value[2]+","+Oo.core("active-bg-opacity").value+")",Jo.beginPath(),Jo.arc(Ws.x,Ws.y,Oo.core("active-bg-size").pfValue/No,0,2*Math.PI),Jo.fill()}var Ps=lo.lastRedrawTime;if(lo.showFps&&Ps){Ps=Math.round(Ps);var qs=Math.round(1e3/Ps);Jo.setTransform(1,0,0,1,0,0),Jo.fillStyle="rgba(255, 0, 0, 0.75)",Jo.strokeStyle="rgba(255, 0, 0, 0.75)",Jo.lineWidth=1,Jo.fillText("1 frame = "+Ps+" ms = "+qs+" fps",0,20);var ga=60;Jo.strokeRect(0,30,250,20),Jo.fillRect(0,30,250*Math.min(qs/ga,1),20)}no||(mo[lo.SELECT_BOX]=!1)}if(So&&_o!==1){var Fs=go.contexts[lo.NODE],Js=lo.data.bufferCanvases[lo.MOTIONBLUR_BUFFER_NODE],Vs=go.contexts[lo.DRAG],El=lo.data.bufferCanvases[lo.MOTIONBLUR_BUFFER_DRAG],yl=function(Qs,du,Ol){Qs.setTransform(1,0,0,1,0,0),Ol||!Ro?Qs.clearRect(0,0,lo.canvasWidth,lo.canvasHeight):Ho(Qs,0,0,lo.canvasWidth,lo.canvasHeight);var Fu=_o;Qs.drawImage(du,0,0,lo.canvasWidth*Fu,lo.canvasHeight*Fu,0,0,lo.canvasWidth,lo.canvasHeight)};(mo[lo.NODE]||ks[lo.NODE])&&(yl(Fs,Js,ks[lo.NODE]),mo[lo.NODE]=!1),(mo[lo.DRAG]||ks[lo.DRAG])&&(yl(Vs,El,ks[lo.DRAG]),mo[lo.DRAG]=!1)}lo.prevViewport=Lo,lo.clearingMotionBlur&&(lo.clearingMotionBlur=!1,lo.motionBlurCleared=!0,lo.motionBlur=!0),So&&(lo.motionBlurTimeout=setTimeout(function(){lo.motionBlurTimeout=null,lo.clearedForMotionBlur[lo.NODE]=!1,lo.clearedForMotionBlur[lo.DRAG]=!1,lo.motionBlur=!1,lo.clearingMotionBlur=!yo,lo.mbFrames=0,mo[lo.NODE]=!0,mo[lo.DRAG]=!0,lo.redraw()},motionBlurDelay)),to||ho.emit("render")};var CRp$3={};CRp$3.drawPolygonPath=function(eo,to,no,io,so,ao){var lo=io/2,uo=so/2;eo.beginPath&&eo.beginPath(),eo.moveTo(to+lo*ao[0],no+uo*ao[1]);for(var ho=1;ho0&&lo>0){_o.clearRect(0,0,ao,lo),_o.globalCompositeOperation="source-over";var ko=this.getCachedZSortedEles();if(eo.full)_o.translate(-io.x1*go,-io.y1*go),_o.scale(go,go),this.drawElements(_o,ko),_o.scale(1/go,1/go),_o.translate(io.x1*go,io.y1*go);else{var Co=to.pan(),$o={x:Co.x*go,y:Co.y*go};go*=to.zoom(),_o.translate($o.x,$o.y),_o.scale(go,go),this.drawElements(_o,ko),_o.scale(1/go,1/go),_o.translate(-$o.x,-$o.y)}eo.bg&&(_o.globalCompositeOperation="destination-over",_o.fillStyle=eo.bg,_o.rect(0,0,ao,lo),_o.fill())}return So};function b64ToBlob(eo,to){for(var no=atob(eo),io=new ArrayBuffer(no.length),so=new Uint8Array(io),ao=0;ao"u"?"undefined":_typeof(OffscreenCanvas))!=="undefined"?no=new OffscreenCanvas(eo,to):(no=document.createElement("canvas"),no.width=eo,no.height=to),no};[CRp$a,CRp$9,CRp$8,CRp$7,CRp$6,CRp$5,CRp$4,CRp$3,CRp$2,CRp$1].forEach(function(eo){extend(CRp,eo)});var renderer$3=[{name:"null",impl:NullRenderer},{name:"base",impl:BR},{name:"canvas",impl:CR}],incExts=[{type:"layout",extensions:layout$1},{type:"renderer",extensions:renderer$3}],extensions={},modules={};function setExtension(eo,to,no){var io=no,so=function(Go){warn("Can not register `"+to+"` for `"+eo+"` since `"+Go+"` already exists in the prototype and can not be overridden")};if(eo==="core"){if(Core.prototype[to])return so(to);Core.prototype[to]=no}else if(eo==="collection"){if(Collection.prototype[to])return so(to);Collection.prototype[to]=no}else if(eo==="layout"){for(var ao=function(Go){this.options=Go,no.call(this,Go),plainObject(this._private)||(this._private={}),this._private.cy=Go.cy,this._private.listeners=[],this.createEmitter()},lo=ao.prototype=Object.create(no.prototype),uo=[],ho=0;hoko&&(this.rect.x-=(this.labelWidth-ko)/2,this.setWidth(this.labelWidth)),this.labelHeight>Co&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-Co)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-Co),this.setHeight(this.labelHeight))}}},yo.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==lo.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},yo.prototype.transform=function(_o){var ko=this.rect.x;ko>ho.WORLD_BOUNDARY?ko=ho.WORLD_BOUNDARY:ko<-ho.WORLD_BOUNDARY&&(ko=-ho.WORLD_BOUNDARY);var Co=this.rect.y;Co>ho.WORLD_BOUNDARY?Co=ho.WORLD_BOUNDARY:Co<-ho.WORLD_BOUNDARY&&(Co=-ho.WORLD_BOUNDARY);var $o=new mo(ko,Co),Ro=_o.inverseTransformPoint($o);this.setLocation(Ro.x,Ro.y)},yo.prototype.getLeft=function(){return this.rect.x},yo.prototype.getRight=function(){return this.rect.x+this.rect.width},yo.prototype.getTop=function(){return this.rect.y},yo.prototype.getBottom=function(){return this.rect.y+this.rect.height},yo.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},no.exports=yo},function(no,io,so){function ao(lo,uo){lo==null&&uo==null?(this.x=0,this.y=0):(this.x=lo,this.y=uo)}ao.prototype.getX=function(){return this.x},ao.prototype.getY=function(){return this.y},ao.prototype.setX=function(lo){this.x=lo},ao.prototype.setY=function(lo){this.y=lo},ao.prototype.getDifference=function(lo){return new DimensionD(this.x-lo.x,this.y-lo.y)},ao.prototype.getCopy=function(){return new ao(this.x,this.y)},ao.prototype.translate=function(lo){return this.x+=lo.width,this.y+=lo.height,this},no.exports=ao},function(no,io,so){var ao=so(2),lo=so(10),uo=so(0),ho=so(6),go=so(3),mo=so(1),yo=so(13),So=so(12),_o=so(11);function ko($o,Ro,Oo){ao.call(this,Oo),this.estimatedSize=lo.MIN_VALUE,this.margin=uo.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=$o,Ro!=null&&Ro instanceof ho?this.graphManager=Ro:Ro!=null&&Ro instanceof Layout&&(this.graphManager=Ro.graphManager)}ko.prototype=Object.create(ao.prototype);for(var Co in ao)ko[Co]=ao[Co];ko.prototype.getNodes=function(){return this.nodes},ko.prototype.getEdges=function(){return this.edges},ko.prototype.getGraphManager=function(){return this.graphManager},ko.prototype.getParent=function(){return this.parent},ko.prototype.getLeft=function(){return this.left},ko.prototype.getRight=function(){return this.right},ko.prototype.getTop=function(){return this.top},ko.prototype.getBottom=function(){return this.bottom},ko.prototype.isConnected=function(){return this.isConnected},ko.prototype.add=function($o,Ro,Oo){if(Ro==null&&Oo==null){var No=$o;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(No)>-1)throw"Node already in graph!";return No.owner=this,this.getNodes().push(No),No}else{var Mo=$o;if(!(this.getNodes().indexOf(Ro)>-1&&this.getNodes().indexOf(Oo)>-1))throw"Source or target not in graph!";if(!(Ro.owner==Oo.owner&&Ro.owner==this))throw"Both owners must be this graph!";return Ro.owner!=Oo.owner?null:(Mo.source=Ro,Mo.target=Oo,Mo.isInterGraph=!1,this.getEdges().push(Mo),Ro.edges.push(Mo),Oo!=Ro&&Oo.edges.push(Mo),Mo)}},ko.prototype.remove=function($o){var Ro=$o;if($o instanceof go){if(Ro==null)throw"Node is null!";if(!(Ro.owner!=null&&Ro.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var Oo=Ro.edges.slice(),No,Mo=Oo.length,Bo=0;Bo-1&&Go>-1))throw"Source and/or target doesn't know this edge!";No.source.edges.splice(Lo,1),No.target!=No.source&&No.target.edges.splice(Go,1);var Fo=No.source.owner.getEdges().indexOf(No);if(Fo==-1)throw"Not in owner's edge list!";No.source.owner.getEdges().splice(Fo,1)}},ko.prototype.updateLeftTop=function(){for(var $o=lo.MAX_VALUE,Ro=lo.MAX_VALUE,Oo,No,Mo,Bo=this.getNodes(),Fo=Bo.length,Lo=0;LoOo&&($o=Oo),Ro>No&&(Ro=No)}return $o==lo.MAX_VALUE?null:(Bo[0].getParent().paddingLeft!=null?Mo=Bo[0].getParent().paddingLeft:Mo=this.margin,this.left=Ro-Mo,this.top=$o-Mo,new So(this.left,this.top))},ko.prototype.updateBounds=function($o){for(var Ro=lo.MAX_VALUE,Oo=-lo.MAX_VALUE,No=lo.MAX_VALUE,Mo=-lo.MAX_VALUE,Bo,Fo,Lo,Go,Do,Uo=this.nodes,Ho=Uo.length,Yo=0;YoBo&&(Ro=Bo),OoLo&&(No=Lo),MoBo&&(Ro=Bo),OoLo&&(No=Lo),Mo=this.nodes.length){var Ho=0;Oo.forEach(function(Yo){Yo.owner==$o&&Ho++}),Ho==this.nodes.length&&(this.isConnected=!0)}},no.exports=ko},function(no,io,so){var ao,lo=so(1);function uo(ho){ao=so(5),this.layout=ho,this.graphs=[],this.edges=[]}uo.prototype.addRoot=function(){var ho=this.layout.newGraph(),go=this.layout.newNode(null),mo=this.add(ho,go);return this.setRootGraph(mo),this.rootGraph},uo.prototype.add=function(ho,go,mo,yo,So){if(mo==null&&yo==null&&So==null){if(ho==null)throw"Graph is null!";if(go==null)throw"Parent node is null!";if(this.graphs.indexOf(ho)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(ho),ho.parent!=null)throw"Already has a parent!";if(go.child!=null)throw"Already has a child!";return ho.parent=go,go.child=ho,ho}else{So=mo,yo=go,mo=ho;var _o=yo.getOwner(),ko=So.getOwner();if(!(_o!=null&&_o.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(ko!=null&&ko.getGraphManager()==this))throw"Target not in this graph mgr!";if(_o==ko)return mo.isInterGraph=!1,_o.add(mo,yo,So);if(mo.isInterGraph=!0,mo.source=yo,mo.target=So,this.edges.indexOf(mo)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(mo),!(mo.source!=null&&mo.target!=null))throw"Edge source and/or target is null!";if(!(mo.source.edges.indexOf(mo)==-1&&mo.target.edges.indexOf(mo)==-1))throw"Edge already in source and/or target incidency list!";return mo.source.edges.push(mo),mo.target.edges.push(mo),mo}},uo.prototype.remove=function(ho){if(ho instanceof ao){var go=ho;if(go.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(go==this.rootGraph||go.parent!=null&&go.parent.graphManager==this))throw"Invalid parent node!";var mo=[];mo=mo.concat(go.getEdges());for(var yo,So=mo.length,_o=0;_o=ho.getRight()?go[0]+=Math.min(ho.getX()-uo.getX(),uo.getRight()-ho.getRight()):ho.getX()<=uo.getX()&&ho.getRight()>=uo.getRight()&&(go[0]+=Math.min(uo.getX()-ho.getX(),ho.getRight()-uo.getRight())),uo.getY()<=ho.getY()&&uo.getBottom()>=ho.getBottom()?go[1]+=Math.min(ho.getY()-uo.getY(),uo.getBottom()-ho.getBottom()):ho.getY()<=uo.getY()&&ho.getBottom()>=uo.getBottom()&&(go[1]+=Math.min(uo.getY()-ho.getY(),ho.getBottom()-uo.getBottom()));var So=Math.abs((ho.getCenterY()-uo.getCenterY())/(ho.getCenterX()-uo.getCenterX()));ho.getCenterY()===uo.getCenterY()&&ho.getCenterX()===uo.getCenterX()&&(So=1);var _o=So*go[0],ko=go[1]/So;go[0]_o)return go[0]=mo,go[1]=Co,go[2]=So,go[3]=Uo,!1;if(yo<_o)return go[0]=mo,go[1]=Oo,go[2]=So,go[3]=Lo,!1}else if(yo===_o){if(mo>So)return go[0]=ko,go[1]=yo,go[2]=Go,go[3]=_o,!1;if(moSo?(go[0]=Ro,go[1]=Oo,Jo=!0):(go[0]=$o,go[1]=Co,Jo=!0):Qo===gs&&(mo>So?(go[0]=ko,go[1]=Co,Jo=!0):(go[0]=No,go[1]=Oo,Jo=!0)),-hs===gs?So>mo?(go[2]=Do,go[3]=Uo,ps=!0):(go[2]=Go,go[3]=Lo,ps=!0):hs===gs&&(So>mo?(go[2]=Fo,go[3]=Lo,ps=!0):(go[2]=Ho,go[3]=Uo,ps=!0)),Jo&&ps)return!1;if(mo>So?yo>_o?(ys=this.getCardinalDirection(Qo,gs,4),vs=this.getCardinalDirection(hs,gs,2)):(ys=this.getCardinalDirection(-Qo,gs,3),vs=this.getCardinalDirection(-hs,gs,1)):yo>_o?(ys=this.getCardinalDirection(-Qo,gs,1),vs=this.getCardinalDirection(-hs,gs,3)):(ys=this.getCardinalDirection(Qo,gs,2),vs=this.getCardinalDirection(hs,gs,4)),!Jo)switch(ys){case 1:Os=Co,ks=mo+-Bo/gs,go[0]=ks,go[1]=Os;break;case 2:ks=No,Os=yo+Mo*gs,go[0]=ks,go[1]=Os;break;case 3:Os=Oo,ks=mo+Bo/gs,go[0]=ks,go[1]=Os;break;case 4:ks=Ro,Os=yo+-Mo*gs,go[0]=ks,go[1]=Os;break}if(!ps)switch(vs){case 1:Xs=Lo,Ts=So+-qo/gs,go[2]=Ts,go[3]=Xs;break;case 2:Ts=Ho,Xs=_o+Yo*gs,go[2]=Ts,go[3]=Xs;break;case 3:Xs=Uo,Ts=So+qo/gs,go[2]=Ts,go[3]=Xs;break;case 4:Ts=Do,Xs=_o+-Yo*gs,go[2]=Ts,go[3]=Xs;break}}return!1},lo.getCardinalDirection=function(uo,ho,go){return uo>ho?go:1+go%4},lo.getIntersection=function(uo,ho,go,mo){if(mo==null)return this.getIntersection2(uo,ho,go);var yo=uo.x,So=uo.y,_o=ho.x,ko=ho.y,Co=go.x,$o=go.y,Ro=mo.x,Oo=mo.y,No=void 0,Mo=void 0,Bo=void 0,Fo=void 0,Lo=void 0,Go=void 0,Do=void 0,Uo=void 0,Ho=void 0;return Bo=ko-So,Lo=yo-_o,Do=_o*So-yo*ko,Fo=Oo-$o,Go=Co-Ro,Uo=Ro*$o-Co*Oo,Ho=Bo*Go-Fo*Lo,Ho===0?null:(No=(Lo*Uo-Go*Do)/Ho,Mo=(Fo*Do-Bo*Uo)/Ho,new ao(No,Mo))},lo.angleOfVector=function(uo,ho,go,mo){var yo=void 0;return uo!==go?(yo=Math.atan((mo-ho)/(go-uo)),go0?1:lo<0?-1:0},ao.floor=function(lo){return lo<0?Math.ceil(lo):Math.floor(lo)},ao.ceil=function(lo){return lo<0?Math.floor(lo):Math.ceil(lo)},no.exports=ao},function(no,io,so){function ao(){}ao.MAX_VALUE=2147483647,ao.MIN_VALUE=-2147483648,no.exports=ao},function(no,io,so){var ao=function(){function yo(So,_o){for(var ko=0;ko<_o.length;ko++){var Co=_o[ko];Co.enumerable=Co.enumerable||!1,Co.configurable=!0,"value"in Co&&(Co.writable=!0),Object.defineProperty(So,Co.key,Co)}}return function(So,_o,ko){return _o&&yo(So.prototype,_o),ko&&yo(So,ko),So}}();function lo(yo,So){if(!(yo instanceof So))throw new TypeError("Cannot call a class as a function")}var uo=function(So){return{value:So,next:null,prev:null}},ho=function(So,_o,ko,Co){return So!==null?So.next=_o:Co.head=_o,ko!==null?ko.prev=_o:Co.tail=_o,_o.prev=So,_o.next=ko,Co.length++,_o},go=function(So,_o){var ko=So.prev,Co=So.next;return ko!==null?ko.next=Co:_o.head=Co,Co!==null?Co.prev=ko:_o.tail=ko,So.prev=So.next=null,_o.length--,So},mo=function(){function yo(So){var _o=this;lo(this,yo),this.length=0,this.head=null,this.tail=null,So!=null&&So.forEach(function(ko){return _o.push(ko)})}return ao(yo,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(_o,ko){return ho(ko.prev,uo(_o),ko,this)}},{key:"insertAfter",value:function(_o,ko){return ho(ko,uo(_o),ko.next,this)}},{key:"insertNodeBefore",value:function(_o,ko){return ho(ko.prev,_o,ko,this)}},{key:"insertNodeAfter",value:function(_o,ko){return ho(ko,_o,ko.next,this)}},{key:"push",value:function(_o){return ho(this.tail,uo(_o),null,this)}},{key:"unshift",value:function(_o){return ho(null,uo(_o),this.head,this)}},{key:"remove",value:function(_o){return go(_o,this)}},{key:"pop",value:function(){return go(this.tail,this).value}},{key:"popNode",value:function(){return go(this.tail,this)}},{key:"shift",value:function(){return go(this.head,this).value}},{key:"shiftNode",value:function(){return go(this.head,this)}},{key:"get_object_at",value:function(_o){if(_o<=this.length()){for(var ko=1,Co=this.head;ko<_o;)Co=Co.next,ko++;return Co.value}}},{key:"set_object_at",value:function(_o,ko){if(_o<=this.length()){for(var Co=1,$o=this.head;Co<_o;)$o=$o.next,Co++;$o.value=ko}}}]),yo}();no.exports=mo},function(no,io,so){function ao(lo,uo,ho){this.x=null,this.y=null,lo==null&&uo==null&&ho==null?(this.x=0,this.y=0):typeof lo=="number"&&typeof uo=="number"&&ho==null?(this.x=lo,this.y=uo):lo.constructor.name=="Point"&&uo==null&&ho==null&&(ho=lo,this.x=ho.x,this.y=ho.y)}ao.prototype.getX=function(){return this.x},ao.prototype.getY=function(){return this.y},ao.prototype.getLocation=function(){return new ao(this.x,this.y)},ao.prototype.setLocation=function(lo,uo,ho){lo.constructor.name=="Point"&&uo==null&&ho==null?(ho=lo,this.setLocation(ho.x,ho.y)):typeof lo=="number"&&typeof uo=="number"&&ho==null&&(parseInt(lo)==lo&&parseInt(uo)==uo?this.move(lo,uo):(this.x=Math.floor(lo+.5),this.y=Math.floor(uo+.5)))},ao.prototype.move=function(lo,uo){this.x=lo,this.y=uo},ao.prototype.translate=function(lo,uo){this.x+=lo,this.y+=uo},ao.prototype.equals=function(lo){if(lo.constructor.name=="Point"){var uo=lo;return this.x==uo.x&&this.y==uo.y}return this==lo},ao.prototype.toString=function(){return new ao().constructor.name+"[x="+this.x+",y="+this.y+"]"},no.exports=ao},function(no,io,so){function ao(lo,uo,ho,go){this.x=0,this.y=0,this.width=0,this.height=0,lo!=null&&uo!=null&&ho!=null&&go!=null&&(this.x=lo,this.y=uo,this.width=ho,this.height=go)}ao.prototype.getX=function(){return this.x},ao.prototype.setX=function(lo){this.x=lo},ao.prototype.getY=function(){return this.y},ao.prototype.setY=function(lo){this.y=lo},ao.prototype.getWidth=function(){return this.width},ao.prototype.setWidth=function(lo){this.width=lo},ao.prototype.getHeight=function(){return this.height},ao.prototype.setHeight=function(lo){this.height=lo},ao.prototype.getRight=function(){return this.x+this.width},ao.prototype.getBottom=function(){return this.y+this.height},ao.prototype.intersects=function(lo){return!(this.getRight()"u"?"undefined":ao(uo);return uo==null||ho!="object"&&ho!="function"},no.exports=lo},function(no,io,so){function ao(Co){if(Array.isArray(Co)){for(var $o=0,Ro=Array(Co.length);$o0&&$o;){for(Bo.push(Lo[0]);Bo.length>0&&$o;){var Go=Bo[0];Bo.splice(0,1),Mo.add(Go);for(var Do=Go.getEdges(),No=0;No-1&&Lo.splice(qo,1)}Mo=new Set,Fo=new Map}}return Co},ko.prototype.createDummyNodesForBendpoints=function(Co){for(var $o=[],Ro=Co.source,Oo=this.graphManager.calcLowestCommonAncestor(Co.source,Co.target),No=0;No0){for(var Oo=this.edgeToDummyNodes.get(Ro),No=0;No=0&&$o.splice(Uo,1);var Ho=Fo.getNeighborsList();Ho.forEach(function(Jo){if(Ro.indexOf(Jo)<0){var ps=Oo.get(Jo),Qo=ps-1;Qo==1&&Go.push(Jo),Oo.set(Jo,Qo)}})}Ro=Ro.concat(Go),($o.length==1||$o.length==2)&&(No=!0,Mo=$o[0])}return Mo},ko.prototype.setGraphManager=function(Co){this.graphManager=Co},no.exports=ko},function(no,io,so){function ao(){}ao.seed=1,ao.x=0,ao.nextDouble=function(){return ao.x=Math.sin(ao.seed++)*1e4,ao.x-Math.floor(ao.x)},no.exports=ao},function(no,io,so){var ao=so(4);function lo(uo,ho){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}lo.prototype.getWorldOrgX=function(){return this.lworldOrgX},lo.prototype.setWorldOrgX=function(uo){this.lworldOrgX=uo},lo.prototype.getWorldOrgY=function(){return this.lworldOrgY},lo.prototype.setWorldOrgY=function(uo){this.lworldOrgY=uo},lo.prototype.getWorldExtX=function(){return this.lworldExtX},lo.prototype.setWorldExtX=function(uo){this.lworldExtX=uo},lo.prototype.getWorldExtY=function(){return this.lworldExtY},lo.prototype.setWorldExtY=function(uo){this.lworldExtY=uo},lo.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},lo.prototype.setDeviceOrgX=function(uo){this.ldeviceOrgX=uo},lo.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},lo.prototype.setDeviceOrgY=function(uo){this.ldeviceOrgY=uo},lo.prototype.getDeviceExtX=function(){return this.ldeviceExtX},lo.prototype.setDeviceExtX=function(uo){this.ldeviceExtX=uo},lo.prototype.getDeviceExtY=function(){return this.ldeviceExtY},lo.prototype.setDeviceExtY=function(uo){this.ldeviceExtY=uo},lo.prototype.transformX=function(uo){var ho=0,go=this.lworldExtX;return go!=0&&(ho=this.ldeviceOrgX+(uo-this.lworldOrgX)*this.ldeviceExtX/go),ho},lo.prototype.transformY=function(uo){var ho=0,go=this.lworldExtY;return go!=0&&(ho=this.ldeviceOrgY+(uo-this.lworldOrgY)*this.ldeviceExtY/go),ho},lo.prototype.inverseTransformX=function(uo){var ho=0,go=this.ldeviceExtX;return go!=0&&(ho=this.lworldOrgX+(uo-this.ldeviceOrgX)*this.lworldExtX/go),ho},lo.prototype.inverseTransformY=function(uo){var ho=0,go=this.ldeviceExtY;return go!=0&&(ho=this.lworldOrgY+(uo-this.ldeviceOrgY)*this.lworldExtY/go),ho},lo.prototype.inverseTransformPoint=function(uo){var ho=new ao(this.inverseTransformX(uo.x),this.inverseTransformY(uo.y));return ho},no.exports=lo},function(no,io,so){function ao(_o){if(Array.isArray(_o)){for(var ko=0,Co=Array(_o.length);ko<_o.length;ko++)Co[ko]=_o[ko];return Co}else return Array.from(_o)}var lo=so(15),uo=so(7),ho=so(0),go=so(8),mo=so(9);function yo(){lo.call(this),this.useSmartIdealEdgeLengthCalculation=uo.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=uo.DEFAULT_EDGE_LENGTH,this.springConstant=uo.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=uo.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=uo.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=uo.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=uo.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=uo.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*uo.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=uo.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=uo.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=uo.MAX_ITERATIONS}yo.prototype=Object.create(lo.prototype);for(var So in lo)yo[So]=lo[So];yo.prototype.initParameters=function(){lo.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=uo.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},yo.prototype.calcIdealEdgeLengths=function(){for(var _o,ko,Co,$o,Ro,Oo,No=this.getGraphManager().getAllEdges(),Mo=0;Mouo.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*uo.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(_o-uo.ADAPTATION_LOWER_NODE_LIMIT)/(uo.ADAPTATION_UPPER_NODE_LIMIT-uo.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-uo.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=uo.MAX_NODE_DISPLACEMENT_INCREMENTAL):(_o>uo.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(uo.COOLING_ADAPTATION_FACTOR,1-(_o-uo.ADAPTATION_LOWER_NODE_LIMIT)/(uo.ADAPTATION_UPPER_NODE_LIMIT-uo.ADAPTATION_LOWER_NODE_LIMIT)*(1-uo.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=uo.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},yo.prototype.calcSpringForces=function(){for(var _o=this.getAllEdges(),ko,Co=0;Co<_o.length;Co++)ko=_o[Co],this.calcSpringForce(ko,ko.idealLength)},yo.prototype.calcRepulsionForces=function(){var _o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,ko=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Co,$o,Ro,Oo,No=this.getAllNodes(),Mo;if(this.useFRGridVariant)for(this.totalIterations%uo.GRID_CALCULATION_CHECK_PERIOD==1&&_o&&this.updateGrid(),Mo=new Set,Co=0;CoBo||Mo>Bo)&&(_o.gravitationForceX=-this.gravityConstant*Ro,_o.gravitationForceY=-this.gravityConstant*Oo)):(Bo=ko.getEstimatedSize()*this.compoundGravityRangeFactor,(No>Bo||Mo>Bo)&&(_o.gravitationForceX=-this.gravityConstant*Ro*this.compoundGravityConstant,_o.gravitationForceY=-this.gravityConstant*Oo*this.compoundGravityConstant))},yo.prototype.isConverged=function(){var _o,ko=!1;return this.totalIterations>this.maxIterations/3&&(ko=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),_o=this.totalDisplacement=No.length||Bo>=No[0].length)){for(var Fo=0;Foyo}}]),go}();no.exports=ho},function(no,io,so){var ao=function(){function ho(go,mo){for(var yo=0;yo2&&arguments[2]!==void 0?arguments[2]:1,So=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,_o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;lo(this,ho),this.sequence1=go,this.sequence2=mo,this.match_score=yo,this.mismatch_penalty=So,this.gap_penalty=_o,this.iMax=go.length+1,this.jMax=mo.length+1,this.grid=new Array(this.iMax);for(var ko=0;ko=0;go--){var mo=this.listeners[go];mo.event===uo&&mo.callback===ho&&this.listeners.splice(go,1)}},lo.emit=function(uo,ho){for(var go=0;gomo.coolingFactor*mo.maxNodeDisplacement&&(this.displacementX=mo.coolingFactor*mo.maxNodeDisplacement*uo.sign(this.displacementX)),Math.abs(this.displacementY)>mo.coolingFactor*mo.maxNodeDisplacement&&(this.displacementY=mo.coolingFactor*mo.maxNodeDisplacement*uo.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),mo.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},ho.prototype.propogateDisplacementToChildren=function(mo,yo){for(var So=this.getChild().getNodes(),_o,ko=0;ko0)this.positionNodesRadially(Lo);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var Go=new Set(this.getAllNodes()),Do=this.nodesWithGravity.filter(function(Uo){return Go.has(Uo)});this.graphManager.setAllNodesToApplyGravitation(Do),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},Bo.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%So.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var Lo=new Set(this.getAllNodes()),Go=this.nodesWithGravity.filter(function(Ho){return Lo.has(Ho)});this.graphManager.setAllNodesToApplyGravitation(Go),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=So.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=So.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var Do=!this.isTreeGrowing&&!this.isGrowthFinished,Uo=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(Do,Uo),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},Bo.prototype.getPositionsData=function(){for(var Lo=this.graphManager.getAllNodes(),Go={},Do=0;Do1){var Jo;for(Jo=0;JoUo&&(Uo=Math.floor(qo.y)),Yo=Math.floor(qo.x+yo.DEFAULT_COMPONENT_SEPERATION)}this.transform(new Co(_o.WORLD_CENTER_X-qo.x/2,_o.WORLD_CENTER_Y-qo.y/2))},Bo.radialLayout=function(Lo,Go,Do){var Uo=Math.max(this.maxDiagonalInTree(Lo),yo.DEFAULT_RADIAL_SEPARATION);Bo.branchRadialLayout(Go,null,0,359,0,Uo);var Ho=No.calculateBounds(Lo),Yo=new Mo;Yo.setDeviceOrgX(Ho.getMinX()),Yo.setDeviceOrgY(Ho.getMinY()),Yo.setWorldOrgX(Do.x),Yo.setWorldOrgY(Do.y);for(var qo=0;qo1;){var Xs=Ts[0];Ts.splice(0,1);var Ws=gs.indexOf(Xs);Ws>=0&&gs.splice(Ws,1),ks--,ys--}Go!=null?Os=(gs.indexOf(Ts[0])+1)%ks:Os=0;for(var Ps=Math.abs(Uo-Do)/ys,qs=Os;vs!=ys;qs=++qs%ks){var ga=gs[qs].getOtherEnd(Lo);if(ga!=Go){var Fs=(Do+vs*Ps)%360,Js=(Fs+Ps)%360;Bo.branchRadialLayout(ga,Lo,Fs,Js,Ho+Yo,Yo),vs++}}},Bo.maxDiagonalInTree=function(Lo){for(var Go=Ro.MIN_VALUE,Do=0;DoGo&&(Go=Ho)}return Go},Bo.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},Bo.prototype.groupZeroDegreeMembers=function(){var Lo=this,Go={};this.memberGroups={},this.idToDummyNode={};for(var Do=[],Uo=this.graphManager.getAllNodes(),Ho=0;Ho"u"&&(Go[Jo]=[]),Go[Jo]=Go[Jo].concat(Yo)}Object.keys(Go).forEach(function(ps){if(Go[ps].length>1){var Qo="DummyCompound_"+ps;Lo.memberGroups[Qo]=Go[ps];var hs=Go[ps][0].getParent(),gs=new go(Lo.graphManager);gs.id=Qo,gs.paddingLeft=hs.paddingLeft||0,gs.paddingRight=hs.paddingRight||0,gs.paddingBottom=hs.paddingBottom||0,gs.paddingTop=hs.paddingTop||0,Lo.idToDummyNode[Qo]=gs;var ys=Lo.getGraphManager().add(Lo.newGraph(),gs),vs=hs.getChild();vs.add(gs);for(var ks=0;ks=0;Lo--){var Go=this.compoundOrder[Lo],Do=Go.id,Uo=Go.paddingLeft,Ho=Go.paddingTop;this.adjustLocations(this.tiledMemberPack[Do],Go.rect.x,Go.rect.y,Uo,Ho)}},Bo.prototype.repopulateZeroDegreeMembers=function(){var Lo=this,Go=this.tiledZeroDegreePack;Object.keys(Go).forEach(function(Do){var Uo=Lo.idToDummyNode[Do],Ho=Uo.paddingLeft,Yo=Uo.paddingTop;Lo.adjustLocations(Go[Do],Uo.rect.x,Uo.rect.y,Ho,Yo)})},Bo.prototype.getToBeTiled=function(Lo){var Go=Lo.id;if(this.toBeTiled[Go]!=null)return this.toBeTiled[Go];var Do=Lo.getChild();if(Do==null)return this.toBeTiled[Go]=!1,!1;for(var Uo=Do.getNodes(),Ho=0;Ho0)return this.toBeTiled[Go]=!1,!1;if(Yo.getChild()==null){this.toBeTiled[Yo.id]=!1;continue}if(!this.getToBeTiled(Yo))return this.toBeTiled[Go]=!1,!1}return this.toBeTiled[Go]=!0,!0},Bo.prototype.getNodeDegree=function(Lo){Lo.id;for(var Go=Lo.getEdges(),Do=0,Uo=0;Uops&&(ps=hs.rect.height)}Do+=ps+Lo.verticalPadding}},Bo.prototype.tileCompoundMembers=function(Lo,Go){var Do=this;this.tiledMemberPack=[],Object.keys(Lo).forEach(function(Uo){var Ho=Go[Uo];Do.tiledMemberPack[Uo]=Do.tileNodes(Lo[Uo],Ho.paddingLeft+Ho.paddingRight),Ho.rect.width=Do.tiledMemberPack[Uo].width,Ho.rect.height=Do.tiledMemberPack[Uo].height})},Bo.prototype.tileNodes=function(Lo,Go){var Do=yo.TILING_PADDING_VERTICAL,Uo=yo.TILING_PADDING_HORIZONTAL,Ho={rows:[],rowWidth:[],rowHeight:[],width:0,height:Go,verticalPadding:Do,horizontalPadding:Uo};Lo.sort(function(Jo,ps){return Jo.rect.width*Jo.rect.height>ps.rect.width*ps.rect.height?-1:Jo.rect.width*Jo.rect.height0&&(qo+=Lo.horizontalPadding),Lo.rowWidth[Do]=qo,Lo.width0&&(Jo+=Lo.verticalPadding);var ps=0;Jo>Lo.rowHeight[Do]&&(ps=Lo.rowHeight[Do],Lo.rowHeight[Do]=Jo,ps=Lo.rowHeight[Do]-ps),Lo.height+=ps,Lo.rows[Do].push(Go)},Bo.prototype.getShortestRowIndex=function(Lo){for(var Go=-1,Do=Number.MAX_VALUE,Uo=0;UoDo&&(Go=Uo,Do=Lo.rowWidth[Uo]);return Go},Bo.prototype.canAddHorizontal=function(Lo,Go,Do){var Uo=this.getShortestRowIndex(Lo);if(Uo<0)return!0;var Ho=Lo.rowWidth[Uo];if(Ho+Lo.horizontalPadding+Go<=Lo.width)return!0;var Yo=0;Lo.rowHeight[Uo]0&&(Yo=Do+Lo.verticalPadding-Lo.rowHeight[Uo]);var qo;Lo.width-Ho>=Go+Lo.horizontalPadding?qo=(Lo.height+Yo)/(Ho+Go+Lo.horizontalPadding):qo=(Lo.height+Yo)/Lo.width,Yo=Do+Lo.verticalPadding;var Jo;return Lo.widthYo&&Go!=Do){Uo.splice(-1,1),Lo.rows[Do].push(Ho),Lo.rowWidth[Go]=Lo.rowWidth[Go]-Yo,Lo.rowWidth[Do]=Lo.rowWidth[Do]+Yo,Lo.width=Lo.rowWidth[instance.getLongestRowIndex(Lo)];for(var qo=Number.MIN_VALUE,Jo=0;Joqo&&(qo=Uo[Jo].height);Go>0&&(qo+=Lo.verticalPadding);var ps=Lo.rowHeight[Go]+Lo.rowHeight[Do];Lo.rowHeight[Go]=qo,Lo.rowHeight[Do]0)for(var vs=Ho;vs<=Yo;vs++)ys[0]+=this.grid[vs][qo-1].length+this.grid[vs][qo].length-1;if(Yo0)for(var vs=qo;vs<=Jo;vs++)ys[3]+=this.grid[Ho-1][vs].length+this.grid[Ho][vs].length-1;for(var ks=Ro.MAX_VALUE,Os,Ts,Xs=0;Xs0){var Jo;Jo=Mo.getGraphManager().add(Mo.newGraph(),Do),this.processChildrenList(Jo,Go,Mo)}}},Co.prototype.stop=function(){return this.stopped=!0,this};var Ro=function(No){No("layout","cose-bilkent",Co)};typeof cytoscape<"u"&&Ro(cytoscape),io.exports=Ro}])})})(cytoscapeCoseBilkent);var cytoscapeCoseBilkentExports=cytoscapeCoseBilkent.exports;const coseBilkent=getDefaultExportFromCjs(cytoscapeCoseBilkentExports);var parser$3=function(){var eo=function(Mo,Bo,Fo,Lo){for(Fo=Fo||{},Lo=Mo.length;Lo--;Fo[Mo[Lo]]=Bo);return Fo},to=[1,4],no=[1,13],io=[1,12],so=[1,15],ao=[1,16],lo=[1,20],uo=[1,19],ho=[6,7,8],go=[1,26],mo=[1,24],yo=[1,25],So=[6,7,11],_o=[1,6,13,15,16,19,22],ko=[1,33],Co=[1,34],$o=[1,6,7,11,13,15,16,19,22],Ro={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(Bo,Fo,Lo,Go,Do,Uo,Ho){var Yo=Uo.length-1;switch(Do){case 6:case 7:return Go;case 8:Go.getLogger().trace("Stop NL ");break;case 9:Go.getLogger().trace("Stop EOF ");break;case 11:Go.getLogger().trace("Stop NL2 ");break;case 12:Go.getLogger().trace("Stop EOF2 ");break;case 15:Go.getLogger().info("Node: ",Uo[Yo].id),Go.addNode(Uo[Yo-1].length,Uo[Yo].id,Uo[Yo].descr,Uo[Yo].type);break;case 16:Go.getLogger().trace("Icon: ",Uo[Yo]),Go.decorateNode({icon:Uo[Yo]});break;case 17:case 21:Go.decorateNode({class:Uo[Yo]});break;case 18:Go.getLogger().trace("SPACELIST");break;case 19:Go.getLogger().trace("Node: ",Uo[Yo].id),Go.addNode(0,Uo[Yo].id,Uo[Yo].descr,Uo[Yo].type);break;case 20:Go.decorateNode({icon:Uo[Yo]});break;case 25:Go.getLogger().trace("node found ..",Uo[Yo-2]),this.$={id:Uo[Yo-1],descr:Uo[Yo-1],type:Go.getType(Uo[Yo-2],Uo[Yo])};break;case 26:this.$={id:Uo[Yo],descr:Uo[Yo],type:Go.nodeType.DEFAULT};break;case 27:Go.getLogger().trace("node found ..",Uo[Yo-3]),this.$={id:Uo[Yo-3],descr:Uo[Yo-1],type:Go.getType(Uo[Yo-2],Uo[Yo])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:to},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:to},{6:no,7:[1,10],9:9,12:11,13:io,14:14,15:so,16:ao,17:17,18:18,19:lo,22:uo},eo(ho,[2,3]),{1:[2,2]},eo(ho,[2,4]),eo(ho,[2,5]),{1:[2,6],6:no,12:21,13:io,14:14,15:so,16:ao,17:17,18:18,19:lo,22:uo},{6:no,9:22,12:11,13:io,14:14,15:so,16:ao,17:17,18:18,19:lo,22:uo},{6:go,7:mo,10:23,11:yo},eo(So,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:lo,22:uo}),eo(So,[2,18]),eo(So,[2,19]),eo(So,[2,20]),eo(So,[2,21]),eo(So,[2,23]),eo(So,[2,24]),eo(So,[2,26],{19:[1,30]}),{20:[1,31]},{6:go,7:mo,10:32,11:yo},{1:[2,7],6:no,12:21,13:io,14:14,15:so,16:ao,17:17,18:18,19:lo,22:uo},eo(_o,[2,14],{7:ko,11:Co}),eo($o,[2,8]),eo($o,[2,9]),eo($o,[2,10]),eo(So,[2,15]),eo(So,[2,16]),eo(So,[2,17]),{20:[1,35]},{21:[1,36]},eo(_o,[2,13],{7:ko,11:Co}),eo($o,[2,11]),eo($o,[2,12]),{21:[1,37]},eo(So,[2,25]),eo(So,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(Bo,Fo){if(Fo.recoverable)this.trace(Bo);else{var Lo=new Error(Bo);throw Lo.hash=Fo,Lo}},parse:function(Bo){var Fo=this,Lo=[0],Go=[],Do=[null],Uo=[],Ho=this.table,Yo="",qo=0,Jo=0,ps=2,Qo=1,hs=Uo.slice.call(arguments,1),gs=Object.create(this.lexer),ys={yy:{}};for(var vs in this.yy)Object.prototype.hasOwnProperty.call(this.yy,vs)&&(ys.yy[vs]=this.yy[vs]);gs.setInput(Bo,ys.yy),ys.yy.lexer=gs,ys.yy.parser=this,typeof gs.yylloc>"u"&&(gs.yylloc={});var ks=gs.yylloc;Uo.push(ks);var Os=gs.options&&gs.options.ranges;typeof ys.yy.parseError=="function"?this.parseError=ys.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ts(){var Gl;return Gl=Go.pop()||gs.lex()||Qo,typeof Gl!="number"&&(Gl instanceof Array&&(Go=Gl,Gl=Go.pop()),Gl=Fo.symbols_[Gl]||Gl),Gl}for(var Xs,Ws,Ps,qs,ga={},Fs,Js,Vs,El;;){if(Ws=Lo[Lo.length-1],this.defaultActions[Ws]?Ps=this.defaultActions[Ws]:((Xs===null||typeof Xs>"u")&&(Xs=Ts()),Ps=Ho[Ws]&&Ho[Ws][Xs]),typeof Ps>"u"||!Ps.length||!Ps[0]){var yl="";El=[];for(Fs in Ho[Ws])this.terminals_[Fs]&&Fs>ps&&El.push("'"+this.terminals_[Fs]+"'");gs.showPosition?yl="Parse error on line "+(qo+1)+`: `+gs.showPosition()+` -Expecting `+El.join(", ")+", got '"+(this.terminals_[Xs]||Xs)+"'":yl="Parse error on line "+(qo+1)+": Unexpected "+(Xs==Qo?"end of input":"'"+(this.terminals_[Xs]||Xs)+"'"),this.parseError(yl,{text:gs.match,token:this.terminals_[Xs]||Xs,line:gs.yylineno,loc:ks,expected:El})}if(Ps[0]instanceof Array&&Ps.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ws+", token: "+Xs);switch(Ps[0]){case 1:Lo.push(Xs),Do.push(gs.yytext),Uo.push(gs.yylloc),Lo.push(Ps[1]),Xs=null,Jo=gs.yyleng,Yo=gs.yytext,qo=gs.yylineno,ks=gs.yylloc;break;case 2:if(Js=this.productions_[Ps[1]][1],ga.$=Do[Do.length-Js],ga._$={first_line:Uo[Uo.length-(Js||1)].first_line,last_line:Uo[Uo.length-1].last_line,first_column:Uo[Uo.length-(Js||1)].first_column,last_column:Uo[Uo.length-1].last_column},Os&&(ga._$.range=[Uo[Uo.length-(Js||1)].range[0],Uo[Uo.length-1].range[1]]),qs=this.performAction.apply(ga,[Yo,Jo,qo,ys.yy,Ps[1],Do,Uo].concat(hs)),typeof qs<"u")return qs;Js&&(Lo=Lo.slice(0,-1*Js*2),Do=Do.slice(0,-1*Js),Uo=Uo.slice(0,-1*Js)),Lo.push(this.productions_[Ps[1]][0]),Do.push(ga.$),Uo.push(ga._$),Vs=Ho[Lo[Lo.length-2]][Lo[Lo.length-1]],Lo.push(Vs);break;case 3:return!0}}return!0}},Oo=function(){var Mo={EOF:1,parseError:function(Po,Lo){if(this.yy.parser)this.yy.parser.parseError(Po,Lo);else throw new Error(Po)},setInput:function(Bo,Po){return this.yy=Po||this.yy||{},this._input=Bo,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Bo=this._input[0];this.yytext+=Bo,this.yyleng++,this.offset++,this.match+=Bo,this.matched+=Bo;var Po=Bo.match(/(?:\r\n?|\n).*/g);return Po?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Bo},unput:function(Bo){var Po=Bo.length,Lo=Bo.split(/(?:\r\n?|\n)/g);this._input=Bo+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Po),this.offset-=Po;var Go=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Lo.length-1&&(this.yylineno-=Lo.length-1);var Do=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Lo?(Lo.length===Go.length?this.yylloc.first_column:0)+Go[Go.length-Lo.length].length-Lo[0].length:this.yylloc.first_column-Po},this.options.ranges&&(this.yylloc.range=[Do[0],Do[0]+this.yyleng-Po]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Bo){this.unput(this.match.slice(Bo))},pastInput:function(){var Bo=this.matched.substr(0,this.matched.length-this.match.length);return(Bo.length>20?"...":"")+Bo.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Bo=this.match;return Bo.length<20&&(Bo+=this._input.substr(0,20-Bo.length)),(Bo.substr(0,20)+(Bo.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Bo=this.pastInput(),Po=new Array(Bo.length+1).join("-");return Bo+this.upcomingInput()+` -`+Po+"^"},test_match:function(Bo,Po){var Lo,Go,Do;if(this.options.backtrack_lexer&&(Do={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Do.yylloc.range=this.yylloc.range.slice(0))),Go=Bo[0].match(/(?:\r\n?|\n).*/g),Go&&(this.yylineno+=Go.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Go?Go[Go.length-1].length-Go[Go.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Bo[0].length},this.yytext+=Bo[0],this.match+=Bo[0],this.matches=Bo,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Bo[0].length),this.matched+=Bo[0],Lo=this.performAction.call(this,this.yy,this,Po,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Lo)return Lo;if(this._backtrack){for(var Uo in Do)this[Uo]=Do[Uo];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Bo,Po,Lo,Go;this._more||(this.yytext="",this.match="");for(var Do=this._currentRules(),Uo=0;UoPo[0].length)){if(Po=Lo,Go=Uo,this.options.backtrack_lexer){if(Bo=this.test_match(Lo,Do[Uo]),Bo!==!1)return Bo;if(this._backtrack){Po=!1;continue}else return!1}else if(!this.options.flex)break}return Po?(Bo=this.test_match(Po,Do[Go]),Bo!==!1?Bo:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Po=this.next();return Po||this.lex()},begin:function(Po){this.conditionStack.push(Po)},popState:function(){var Po=this.conditionStack.length-1;return Po>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Po){return Po=this.conditionStack.length-1-Math.abs(Po||0),Po>=0?this.conditionStack[Po]:"INITIAL"},pushState:function(Po){this.begin(Po)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Po,Lo,Go,Do){switch(Go){case 0:return Po.getLogger().trace("Found comment",Lo.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:Po.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return Po.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:Po.getLogger().trace("end icon"),this.popState();break;case 10:return Po.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return Po.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return Po.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return Po.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:Po.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return Po.getLogger().trace("description:",Lo.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),Po.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),Po.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),Po.getLogger().trace("node end ...",Lo.yytext),"NODE_DEND";case 30:return this.popState(),Po.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),Po.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),Po.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),Po.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),Po.getLogger().trace("node end (("),"NODE_DEND";case 35:return Po.getLogger().trace("Long description:",Lo.yytext),20;case 36:return Po.getLogger().trace("Long description:",Lo.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return Mo}();Ro.lexer=Oo;function No(){this.yy={}}return No.prototype=Ro,Ro.Parser=No,new No}();parser$3.parser=parser$3;const parser$1$2=parser$3;let nodes$1=[],cnt$1=0,elements={};const clear$2=()=>{nodes$1=[],cnt$1=0,elements={}},getParent=function(eo){for(let to=nodes$1.length-1;to>=0;to--)if(nodes$1[to].levelnodes$1.length>0?nodes$1[0]:null,addNode=(eo,to,no,io)=>{var so,ao;log$1.info("addNode",eo,to,no,io);const lo=getConfig$2();let uo=((so=lo.mindmap)==null?void 0:so.padding)??defaultConfig$2.mindmap.padding;switch(io){case nodeType.ROUNDED_RECT:case nodeType.RECT:case nodeType.HEXAGON:uo*=2}const ho={id:cnt$1++,nodeId:sanitizeText$2$1(to,lo),level:eo,descr:sanitizeText$2$1(no,lo),type:io,children:[],width:((ao=lo.mindmap)==null?void 0:ao.maxNodeWidth)??defaultConfig$2.mindmap.maxNodeWidth,padding:uo},go=getParent(eo);if(go)go.children.push(ho),nodes$1.push(ho);else if(nodes$1.length===0)nodes$1.push(ho);else throw new Error('There can be only one root. No parent could be found for ("'+ho.descr+'")')},nodeType={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},getType=(eo,to)=>{switch(log$1.debug("In get type",eo,to),eo){case"[":return nodeType.RECT;case"(":return to===")"?nodeType.ROUNDED_RECT:nodeType.CLOUD;case"((":return nodeType.CIRCLE;case")":return nodeType.CLOUD;case"))":return nodeType.BANG;case"{{":return nodeType.HEXAGON;default:return nodeType.DEFAULT}},setElementForId=(eo,to)=>{elements[eo]=to},decorateNode=eo=>{if(!eo)return;const to=getConfig$2(),no=nodes$1[nodes$1.length-1];eo.icon&&(no.icon=sanitizeText$2$1(eo.icon,to)),eo.class&&(no.class=sanitizeText$2$1(eo.class,to))},type2Str=eo=>{switch(eo){case nodeType.DEFAULT:return"no-border";case nodeType.RECT:return"rect";case nodeType.ROUNDED_RECT:return"rounded-rect";case nodeType.CIRCLE:return"circle";case nodeType.CLOUD:return"cloud";case nodeType.BANG:return"bang";case nodeType.HEXAGON:return"hexgon";default:return"no-border"}},getLogger$1=()=>log$1,getElementById=eo=>elements[eo],db$3={clear:clear$2,addNode,getMindmap,nodeType,getType,setElementForId,decorateNode,type2Str,getLogger:getLogger$1,getElementById},db$1$1=db$3,MAX_SECTIONS=12,defaultBkg=function(eo,to,no,io){to.append("path").attr("id","node-"+no.id).attr("class","node-bkg node-"+eo.type2Str(no.type)).attr("d",`M0 ${no.height-5} v${-no.height+2*5} q0,-5 5,-5 h${no.width-2*5} q5,0 5,5 v${no.height-5} H0 Z`),to.append("line").attr("class","node-line-"+io).attr("x1",0).attr("y1",no.height).attr("x2",no.width).attr("y2",no.height)},rectBkg=function(eo,to,no){to.append("rect").attr("id","node-"+no.id).attr("class","node-bkg node-"+eo.type2Str(no.type)).attr("height",no.height).attr("width",no.width)},cloudBkg=function(eo,to,no){const io=no.width,so=no.height,ao=.15*io,lo=.25*io,uo=.35*io,ho=.2*io;to.append("path").attr("id","node-"+no.id).attr("class","node-bkg node-"+eo.type2Str(no.type)).attr("d",`M0 0 a${ao},${ao} 0 0,1 ${io*.25},${-1*io*.1} +Expecting `+El.join(", ")+", got '"+(this.terminals_[Xs]||Xs)+"'":yl="Parse error on line "+(qo+1)+": Unexpected "+(Xs==Qo?"end of input":"'"+(this.terminals_[Xs]||Xs)+"'"),this.parseError(yl,{text:gs.match,token:this.terminals_[Xs]||Xs,line:gs.yylineno,loc:ks,expected:El})}if(Ps[0]instanceof Array&&Ps.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ws+", token: "+Xs);switch(Ps[0]){case 1:Lo.push(Xs),Do.push(gs.yytext),Uo.push(gs.yylloc),Lo.push(Ps[1]),Xs=null,Jo=gs.yyleng,Yo=gs.yytext,qo=gs.yylineno,ks=gs.yylloc;break;case 2:if(Js=this.productions_[Ps[1]][1],ga.$=Do[Do.length-Js],ga._$={first_line:Uo[Uo.length-(Js||1)].first_line,last_line:Uo[Uo.length-1].last_line,first_column:Uo[Uo.length-(Js||1)].first_column,last_column:Uo[Uo.length-1].last_column},Os&&(ga._$.range=[Uo[Uo.length-(Js||1)].range[0],Uo[Uo.length-1].range[1]]),qs=this.performAction.apply(ga,[Yo,Jo,qo,ys.yy,Ps[1],Do,Uo].concat(hs)),typeof qs<"u")return qs;Js&&(Lo=Lo.slice(0,-1*Js*2),Do=Do.slice(0,-1*Js),Uo=Uo.slice(0,-1*Js)),Lo.push(this.productions_[Ps[1]][0]),Do.push(ga.$),Uo.push(ga._$),Vs=Ho[Lo[Lo.length-2]][Lo[Lo.length-1]],Lo.push(Vs);break;case 3:return!0}}return!0}},Oo=function(){var Mo={EOF:1,parseError:function(Fo,Lo){if(this.yy.parser)this.yy.parser.parseError(Fo,Lo);else throw new Error(Fo)},setInput:function(Bo,Fo){return this.yy=Fo||this.yy||{},this._input=Bo,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Bo=this._input[0];this.yytext+=Bo,this.yyleng++,this.offset++,this.match+=Bo,this.matched+=Bo;var Fo=Bo.match(/(?:\r\n?|\n).*/g);return Fo?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Bo},unput:function(Bo){var Fo=Bo.length,Lo=Bo.split(/(?:\r\n?|\n)/g);this._input=Bo+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Fo),this.offset-=Fo;var Go=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Lo.length-1&&(this.yylineno-=Lo.length-1);var Do=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Lo?(Lo.length===Go.length?this.yylloc.first_column:0)+Go[Go.length-Lo.length].length-Lo[0].length:this.yylloc.first_column-Fo},this.options.ranges&&(this.yylloc.range=[Do[0],Do[0]+this.yyleng-Fo]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Bo){this.unput(this.match.slice(Bo))},pastInput:function(){var Bo=this.matched.substr(0,this.matched.length-this.match.length);return(Bo.length>20?"...":"")+Bo.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Bo=this.match;return Bo.length<20&&(Bo+=this._input.substr(0,20-Bo.length)),(Bo.substr(0,20)+(Bo.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Bo=this.pastInput(),Fo=new Array(Bo.length+1).join("-");return Bo+this.upcomingInput()+` +`+Fo+"^"},test_match:function(Bo,Fo){var Lo,Go,Do;if(this.options.backtrack_lexer&&(Do={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Do.yylloc.range=this.yylloc.range.slice(0))),Go=Bo[0].match(/(?:\r\n?|\n).*/g),Go&&(this.yylineno+=Go.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Go?Go[Go.length-1].length-Go[Go.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Bo[0].length},this.yytext+=Bo[0],this.match+=Bo[0],this.matches=Bo,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Bo[0].length),this.matched+=Bo[0],Lo=this.performAction.call(this,this.yy,this,Fo,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Lo)return Lo;if(this._backtrack){for(var Uo in Do)this[Uo]=Do[Uo];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Bo,Fo,Lo,Go;this._more||(this.yytext="",this.match="");for(var Do=this._currentRules(),Uo=0;UoFo[0].length)){if(Fo=Lo,Go=Uo,this.options.backtrack_lexer){if(Bo=this.test_match(Lo,Do[Uo]),Bo!==!1)return Bo;if(this._backtrack){Fo=!1;continue}else return!1}else if(!this.options.flex)break}return Fo?(Bo=this.test_match(Fo,Do[Go]),Bo!==!1?Bo:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Fo=this.next();return Fo||this.lex()},begin:function(Fo){this.conditionStack.push(Fo)},popState:function(){var Fo=this.conditionStack.length-1;return Fo>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Fo){return Fo=this.conditionStack.length-1-Math.abs(Fo||0),Fo>=0?this.conditionStack[Fo]:"INITIAL"},pushState:function(Fo){this.begin(Fo)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Fo,Lo,Go,Do){switch(Go){case 0:return Fo.getLogger().trace("Found comment",Lo.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:Fo.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return Fo.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:Fo.getLogger().trace("end icon"),this.popState();break;case 10:return Fo.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return Fo.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return Fo.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return Fo.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:Fo.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return Fo.getLogger().trace("description:",Lo.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),Fo.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),Fo.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),Fo.getLogger().trace("node end ...",Lo.yytext),"NODE_DEND";case 30:return this.popState(),Fo.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),Fo.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),Fo.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),Fo.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),Fo.getLogger().trace("node end (("),"NODE_DEND";case 35:return Fo.getLogger().trace("Long description:",Lo.yytext),20;case 36:return Fo.getLogger().trace("Long description:",Lo.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return Mo}();Ro.lexer=Oo;function No(){this.yy={}}return No.prototype=Ro,Ro.Parser=No,new No}();parser$3.parser=parser$3;const parser$1$2=parser$3;let nodes$1=[],cnt$1=0,elements={};const clear$2=()=>{nodes$1=[],cnt$1=0,elements={}},getParent=function(eo){for(let to=nodes$1.length-1;to>=0;to--)if(nodes$1[to].levelnodes$1.length>0?nodes$1[0]:null,addNode=(eo,to,no,io)=>{var so,ao;log$1.info("addNode",eo,to,no,io);const lo=getConfig$2();let uo=((so=lo.mindmap)==null?void 0:so.padding)??defaultConfig$2.mindmap.padding;switch(io){case nodeType.ROUNDED_RECT:case nodeType.RECT:case nodeType.HEXAGON:uo*=2}const ho={id:cnt$1++,nodeId:sanitizeText$2$1(to,lo),level:eo,descr:sanitizeText$2$1(no,lo),type:io,children:[],width:((ao=lo.mindmap)==null?void 0:ao.maxNodeWidth)??defaultConfig$2.mindmap.maxNodeWidth,padding:uo},go=getParent(eo);if(go)go.children.push(ho),nodes$1.push(ho);else if(nodes$1.length===0)nodes$1.push(ho);else throw new Error('There can be only one root. No parent could be found for ("'+ho.descr+'")')},nodeType={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},getType=(eo,to)=>{switch(log$1.debug("In get type",eo,to),eo){case"[":return nodeType.RECT;case"(":return to===")"?nodeType.ROUNDED_RECT:nodeType.CLOUD;case"((":return nodeType.CIRCLE;case")":return nodeType.CLOUD;case"))":return nodeType.BANG;case"{{":return nodeType.HEXAGON;default:return nodeType.DEFAULT}},setElementForId=(eo,to)=>{elements[eo]=to},decorateNode=eo=>{if(!eo)return;const to=getConfig$2(),no=nodes$1[nodes$1.length-1];eo.icon&&(no.icon=sanitizeText$2$1(eo.icon,to)),eo.class&&(no.class=sanitizeText$2$1(eo.class,to))},type2Str=eo=>{switch(eo){case nodeType.DEFAULT:return"no-border";case nodeType.RECT:return"rect";case nodeType.ROUNDED_RECT:return"rounded-rect";case nodeType.CIRCLE:return"circle";case nodeType.CLOUD:return"cloud";case nodeType.BANG:return"bang";case nodeType.HEXAGON:return"hexgon";default:return"no-border"}},getLogger$1=()=>log$1,getElementById=eo=>elements[eo],db$3={clear:clear$2,addNode,getMindmap,nodeType,getType,setElementForId,decorateNode,type2Str,getLogger:getLogger$1,getElementById},db$1$1=db$3,MAX_SECTIONS=12,defaultBkg=function(eo,to,no,io){to.append("path").attr("id","node-"+no.id).attr("class","node-bkg node-"+eo.type2Str(no.type)).attr("d",`M0 ${no.height-5} v${-no.height+2*5} q0,-5 5,-5 h${no.width-2*5} q5,0 5,5 v${no.height-5} H0 Z`),to.append("line").attr("class","node-line-"+io).attr("x1",0).attr("y1",no.height).attr("x2",no.width).attr("y2",no.height)},rectBkg=function(eo,to,no){to.append("rect").attr("id","node-"+no.id).attr("class","node-bkg node-"+eo.type2Str(no.type)).attr("height",no.height).attr("width",no.width)},cloudBkg=function(eo,to,no){const io=no.width,so=no.height,ao=.15*io,lo=.25*io,uo=.35*io,ho=.2*io;to.append("path").attr("id","node-"+no.id).attr("class","node-bkg node-"+eo.type2Str(no.type)).attr("d",`M0 0 a${ao},${ao} 0 0,1 ${io*.25},${-1*io*.1} a${uo},${uo} 1 0,1 ${io*.4},${-1*io*.1} a${lo},${lo} 1 0,1 ${io*.35},${1*io*.2} @@ -3838,19 +3838,19 @@ Expecting `+El.join(", ")+", got '"+(this.terminals_[Xs]||Xs)+"'":yl="Parse erro dominant-baseline: middle; text-align: center; } -`,styles=getStyles$1,diagram$2={db:db$1$1,renderer:renderer$2,parser:parser$1$2,styles},mindmapDefinitionF354de21=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$2},Symbol.toStringTag,{value:"Module"}));function max(eo,to){let no;if(to===void 0)for(const io of eo)io!=null&&(no=io)&&(no=io);else{let io=-1;for(let so of eo)(so=to(so,++io,eo))!=null&&(no=so)&&(no=so)}return no}function min(eo,to){let no;if(to===void 0)for(const io of eo)io!=null&&(no>io||no===void 0&&io>=io)&&(no=io);else{let io=-1;for(let so of eo)(so=to(so,++io,eo))!=null&&(no>so||no===void 0&&so>=so)&&(no=so)}return no}function sum(eo,to){let no=0;if(to===void 0)for(let io of eo)(io=+io)&&(no+=io);else{let io=-1;for(let so of eo)(so=+to(so,++io,eo))&&(no+=so)}return no}function targetDepth(eo){return eo.target.depth}function left(eo){return eo.depth}function right(eo,to){return to-1-eo.height}function justify(eo,to){return eo.sourceLinks.length?eo.depth:to-1}function center(eo){return eo.targetLinks.length?eo.depth:eo.sourceLinks.length?min(eo.sourceLinks,targetDepth)-1:0}function constant$1(eo){return function(){return eo}}function ascendingSourceBreadth(eo,to){return ascendingBreadth(eo.source,to.source)||eo.index-to.index}function ascendingTargetBreadth(eo,to){return ascendingBreadth(eo.target,to.target)||eo.index-to.index}function ascendingBreadth(eo,to){return eo.y0-to.y0}function value(eo){return eo.value}function defaultId(eo){return eo.index}function defaultNodes(eo){return eo.nodes}function defaultLinks(eo){return eo.links}function find(eo,to){const no=eo.get(to);if(!no)throw new Error("missing: "+to);return no}function computeLinkBreadths({nodes:eo}){for(const to of eo){let no=to.y0,io=no;for(const so of to.sourceLinks)so.y0=no+so.width/2,no+=so.width;for(const so of to.targetLinks)so.y1=io+so.width/2,io+=so.width}}function Sankey(){let eo=0,to=0,no=1,io=1,so=24,ao=8,lo,uo=defaultId,ho=justify,go,mo,yo=defaultNodes,So=defaultLinks,_o=6;function ko(){const ps={nodes:yo.apply(null,arguments),links:So.apply(null,arguments)};return Co(ps),$o(ps),Ro(ps),Oo(ps),Bo(ps),computeLinkBreadths(ps),ps}ko.update=function(ps){return computeLinkBreadths(ps),ps},ko.nodeId=function(ps){return arguments.length?(uo=typeof ps=="function"?ps:constant$1(ps),ko):uo},ko.nodeAlign=function(ps){return arguments.length?(ho=typeof ps=="function"?ps:constant$1(ps),ko):ho},ko.nodeSort=function(ps){return arguments.length?(go=ps,ko):go},ko.nodeWidth=function(ps){return arguments.length?(so=+ps,ko):so},ko.nodePadding=function(ps){return arguments.length?(ao=lo=+ps,ko):ao},ko.nodes=function(ps){return arguments.length?(yo=typeof ps=="function"?ps:constant$1(ps),ko):yo},ko.links=function(ps){return arguments.length?(So=typeof ps=="function"?ps:constant$1(ps),ko):So},ko.linkSort=function(ps){return arguments.length?(mo=ps,ko):mo},ko.size=function(ps){return arguments.length?(eo=to=0,no=+ps[0],io=+ps[1],ko):[no-eo,io-to]},ko.extent=function(ps){return arguments.length?(eo=+ps[0][0],no=+ps[1][0],to=+ps[0][1],io=+ps[1][1],ko):[[eo,to],[no,io]]},ko.iterations=function(ps){return arguments.length?(_o=+ps,ko):_o};function Co({nodes:ps,links:Qo}){for(const[gs,ys]of ps.entries())ys.index=gs,ys.sourceLinks=[],ys.targetLinks=[];const hs=new Map(ps.map((gs,ys)=>[uo(gs,ys,ps),gs]));for(const[gs,ys]of Qo.entries()){ys.index=gs;let{source:vs,target:ks}=ys;typeof vs!="object"&&(vs=ys.source=find(hs,vs)),typeof ks!="object"&&(ks=ys.target=find(hs,ks)),vs.sourceLinks.push(ys),ks.targetLinks.push(ys)}if(mo!=null)for(const{sourceLinks:gs,targetLinks:ys}of ps)gs.sort(mo),ys.sort(mo)}function $o({nodes:ps}){for(const Qo of ps)Qo.value=Qo.fixedValue===void 0?Math.max(sum(Qo.sourceLinks,value),sum(Qo.targetLinks,value)):Qo.fixedValue}function Ro({nodes:ps}){const Qo=ps.length;let hs=new Set(ps),gs=new Set,ys=0;for(;hs.size;){for(const vs of hs){vs.depth=ys;for(const{target:ks}of vs.sourceLinks)gs.add(ks)}if(++ys>Qo)throw new Error("circular link");hs=gs,gs=new Set}}function Oo({nodes:ps}){const Qo=ps.length;let hs=new Set(ps),gs=new Set,ys=0;for(;hs.size;){for(const vs of hs){vs.height=ys;for(const{source:ks}of vs.targetLinks)gs.add(ks)}if(++ys>Qo)throw new Error("circular link");hs=gs,gs=new Set}}function No({nodes:ps}){const Qo=max(ps,ys=>ys.depth)+1,hs=(no-eo-so)/(Qo-1),gs=new Array(Qo);for(const ys of ps){const vs=Math.max(0,Math.min(Qo-1,Math.floor(ho.call(null,ys,Qo))));ys.layer=vs,ys.x0=eo+vs*hs,ys.x1=ys.x0+so,gs[vs]?gs[vs].push(ys):gs[vs]=[ys]}if(go)for(const ys of gs)ys.sort(go);return gs}function Mo(ps){const Qo=min(ps,hs=>(io-to-(hs.length-1)*lo)/sum(hs,value));for(const hs of ps){let gs=to;for(const ys of hs){ys.y0=gs,ys.y1=gs+ys.value*Qo,gs=ys.y1+lo;for(const vs of ys.sourceLinks)vs.width=vs.value*Qo}gs=(io-gs+lo)/(hs.length+1);for(let ys=0;yshs.length)-1)),Mo(Qo);for(let hs=0;hs<_o;++hs){const gs=Math.pow(.99,hs),ys=Math.max(1-gs,(hs+1)/_o);Lo(Qo,gs,ys),Po(Qo,gs,ys)}}function Po(ps,Qo,hs){for(let gs=1,ys=ps.length;gs0))continue;let Xs=(Os/Ts-ks.y0)*Qo;ks.y0+=Xs,ks.y1+=Xs,Ho(ks)}go===void 0&&vs.sort(ascendingBreadth),Go(vs,hs)}}function Lo(ps,Qo,hs){for(let gs=ps.length,ys=gs-2;ys>=0;--ys){const vs=ps[ys];for(const ks of vs){let Os=0,Ts=0;for(const{target:Ws,value:Ps}of ks.sourceLinks){let qs=Ps*(Ws.layer-ks.layer);Os+=Jo(ks,Ws)*qs,Ts+=qs}if(!(Ts>0))continue;let Xs=(Os/Ts-ks.y0)*Qo;ks.y0+=Xs,ks.y1+=Xs,Ho(ks)}go===void 0&&vs.sort(ascendingBreadth),Go(vs,hs)}}function Go(ps,Qo){const hs=ps.length>>1,gs=ps[hs];Uo(ps,gs.y0-lo,hs-1,Qo),Do(ps,gs.y1+lo,hs+1,Qo),Uo(ps,io,ps.length-1,Qo),Do(ps,to,0,Qo)}function Do(ps,Qo,hs,gs){for(;hs1e-6&&(ys.y0+=vs,ys.y1+=vs),Qo=ys.y1+lo}}function Uo(ps,Qo,hs,gs){for(;hs>=0;--hs){const ys=ps[hs],vs=(ys.y1-Qo)*gs;vs>1e-6&&(ys.y0-=vs,ys.y1-=vs),Qo=ys.y0-lo}}function Ho({sourceLinks:ps,targetLinks:Qo}){if(mo===void 0){for(const{source:{sourceLinks:hs}}of Qo)hs.sort(ascendingTargetBreadth);for(const{target:{targetLinks:hs}}of ps)hs.sort(ascendingSourceBreadth)}}function Yo(ps){if(mo===void 0)for(const{sourceLinks:Qo,targetLinks:hs}of ps)Qo.sort(ascendingTargetBreadth),hs.sort(ascendingSourceBreadth)}function qo(ps,Qo){let hs=ps.y0-(ps.sourceLinks.length-1)*lo/2;for(const{target:gs,width:ys}of ps.sourceLinks){if(gs===Qo)break;hs+=ys+lo}for(const{source:gs,width:ys}of Qo.targetLinks){if(gs===ps)break;hs-=ys}return hs}function Jo(ps,Qo){let hs=Qo.y0-(Qo.targetLinks.length-1)*lo/2;for(const{source:gs,width:ys}of Qo.targetLinks){if(gs===ps)break;hs+=ys+lo}for(const{target:gs,width:ys}of ps.sourceLinks){if(gs===Qo)break;hs-=ys}return hs}return ko}var pi=Math.PI,tau=2*pi,epsilon=1e-6,tauEpsilon=tau-epsilon;function Path(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function path(){return new Path}Path.prototype=path.prototype={constructor:Path,moveTo:function(eo,to){this._+="M"+(this._x0=this._x1=+eo)+","+(this._y0=this._y1=+to)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(eo,to){this._+="L"+(this._x1=+eo)+","+(this._y1=+to)},quadraticCurveTo:function(eo,to,no,io){this._+="Q"+ +eo+","+ +to+","+(this._x1=+no)+","+(this._y1=+io)},bezierCurveTo:function(eo,to,no,io,so,ao){this._+="C"+ +eo+","+ +to+","+ +no+","+ +io+","+(this._x1=+so)+","+(this._y1=+ao)},arcTo:function(eo,to,no,io,so){eo=+eo,to=+to,no=+no,io=+io,so=+so;var ao=this._x1,lo=this._y1,uo=no-eo,ho=io-to,go=ao-eo,mo=lo-to,yo=go*go+mo*mo;if(so<0)throw new Error("negative radius: "+so);if(this._x1===null)this._+="M"+(this._x1=eo)+","+(this._y1=to);else if(yo>epsilon)if(!(Math.abs(mo*uo-ho*go)>epsilon)||!so)this._+="L"+(this._x1=eo)+","+(this._y1=to);else{var So=no-ao,_o=io-lo,ko=uo*uo+ho*ho,Co=So*So+_o*_o,$o=Math.sqrt(ko),Ro=Math.sqrt(yo),Oo=so*Math.tan((pi-Math.acos((ko+yo-Co)/(2*$o*Ro)))/2),No=Oo/Ro,Mo=Oo/$o;Math.abs(No-1)>epsilon&&(this._+="L"+(eo+No*go)+","+(to+No*mo)),this._+="A"+so+","+so+",0,0,"+ +(mo*So>go*_o)+","+(this._x1=eo+Mo*uo)+","+(this._y1=to+Mo*ho)}},arc:function(eo,to,no,io,so,ao){eo=+eo,to=+to,no=+no,ao=!!ao;var lo=no*Math.cos(io),uo=no*Math.sin(io),ho=eo+lo,go=to+uo,mo=1^ao,yo=ao?io-so:so-io;if(no<0)throw new Error("negative radius: "+no);this._x1===null?this._+="M"+ho+","+go:(Math.abs(this._x1-ho)>epsilon||Math.abs(this._y1-go)>epsilon)&&(this._+="L"+ho+","+go),no&&(yo<0&&(yo=yo%tau+tau),yo>tauEpsilon?this._+="A"+no+","+no+",0,1,"+mo+","+(eo-lo)+","+(to-uo)+"A"+no+","+no+",0,1,"+mo+","+(this._x1=ho)+","+(this._y1=go):yo>epsilon&&(this._+="A"+no+","+no+",0,"+ +(yo>=pi)+","+mo+","+(this._x1=eo+no*Math.cos(so))+","+(this._y1=to+no*Math.sin(so))))},rect:function(eo,to,no,io){this._+="M"+(this._x0=this._x1=+eo)+","+(this._y0=this._y1=+to)+"h"+ +no+"v"+ +io+"h"+-no+"Z"},toString:function(){return this._}};function constant(eo){return function(){return eo}}function x(eo){return eo[0]}function y(eo){return eo[1]}var slice=Array.prototype.slice;function linkSource(eo){return eo.source}function linkTarget(eo){return eo.target}function link(eo){var to=linkSource,no=linkTarget,io=x,so=y,ao=null;function lo(){var uo,ho=slice.call(arguments),go=to.apply(this,ho),mo=no.apply(this,ho);if(ao||(ao=uo=path()),eo(ao,+io.apply(this,(ho[0]=go,ho)),+so.apply(this,ho),+io.apply(this,(ho[0]=mo,ho)),+so.apply(this,ho)),uo)return ao=null,uo+""||null}return lo.source=function(uo){return arguments.length?(to=uo,lo):to},lo.target=function(uo){return arguments.length?(no=uo,lo):no},lo.x=function(uo){return arguments.length?(io=typeof uo=="function"?uo:constant(+uo),lo):io},lo.y=function(uo){return arguments.length?(so=typeof uo=="function"?uo:constant(+uo),lo):so},lo.context=function(uo){return arguments.length?(ao=uo??null,lo):ao},lo}function curveHorizontal(eo,to,no,io,so){eo.moveTo(to,no),eo.bezierCurveTo(to=(to+io)/2,no,to,so,io,so)}function linkHorizontal(){return link(curveHorizontal)}function horizontalSource(eo){return[eo.source.x1,eo.y0]}function horizontalTarget(eo){return[eo.target.x0,eo.y1]}function sankeyLinkHorizontal(){return linkHorizontal().source(horizontalSource).target(horizontalTarget)}var parser$2=function(){var eo=function(uo,ho,go,mo){for(go=go||{},mo=uo.length;mo--;go[uo[mo]]=ho);return go},to=[1,9],no=[1,10],io=[1,5,10,12],so={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(ho,go,mo,yo,So,_o,ko){var Co=_o.length-1;switch(So){case 7:const $o=yo.findOrCreateNode(_o[Co-4].trim().replaceAll('""','"')),Ro=yo.findOrCreateNode(_o[Co-2].trim().replaceAll('""','"')),Oo=parseFloat(_o[Co].trim());yo.addLink($o,Ro,Oo);break;case 8:case 9:case 11:this.$=_o[Co];break;case 10:this.$=_o[Co-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:to,20:no},{1:[2,6],7:11,10:[1,12]},eo(no,[2,4],{9:13,5:[1,14]}),{12:[1,15]},eo(io,[2,8]),eo(io,[2,9]),{19:[1,16]},eo(io,[2,11]),{1:[2,1]},{1:[2,5]},eo(no,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:to,20:no},{15:18,16:7,17:8,18:to,20:no},{18:[1,19]},eo(no,[2,3]),{12:[1,20]},eo(io,[2,10]),{15:21,16:7,17:8,18:to,20:no},eo([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(ho,go){if(go.recoverable)this.trace(ho);else{var mo=new Error(ho);throw mo.hash=go,mo}},parse:function(ho){var go=this,mo=[0],yo=[],So=[null],_o=[],ko=this.table,Co="",$o=0,Ro=0,Oo=2,No=1,Mo=_o.slice.call(arguments,1),Bo=Object.create(this.lexer),Po={yy:{}};for(var Lo in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Lo)&&(Po.yy[Lo]=this.yy[Lo]);Bo.setInput(ho,Po.yy),Po.yy.lexer=Bo,Po.yy.parser=this,typeof Bo.yylloc>"u"&&(Bo.yylloc={});var Go=Bo.yylloc;_o.push(Go);var Do=Bo.options&&Bo.options.ranges;typeof Po.yy.parseError=="function"?this.parseError=Po.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Uo(){var ks;return ks=yo.pop()||Bo.lex()||No,typeof ks!="number"&&(ks instanceof Array&&(yo=ks,ks=yo.pop()),ks=go.symbols_[ks]||ks),ks}for(var Ho,Yo,qo,Jo,ps={},Qo,hs,gs,ys;;){if(Yo=mo[mo.length-1],this.defaultActions[Yo]?qo=this.defaultActions[Yo]:((Ho===null||typeof Ho>"u")&&(Ho=Uo()),qo=ko[Yo]&&ko[Yo][Ho]),typeof qo>"u"||!qo.length||!qo[0]){var vs="";ys=[];for(Qo in ko[Yo])this.terminals_[Qo]&&Qo>Oo&&ys.push("'"+this.terminals_[Qo]+"'");Bo.showPosition?vs="Parse error on line "+($o+1)+`: +`,styles=getStyles$1,diagram$2={db:db$1$1,renderer:renderer$2,parser:parser$1$2,styles},mindmapDefinitionF354de21=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$2},Symbol.toStringTag,{value:"Module"}));function max(eo,to){let no;if(to===void 0)for(const io of eo)io!=null&&(no=io)&&(no=io);else{let io=-1;for(let so of eo)(so=to(so,++io,eo))!=null&&(no=so)&&(no=so)}return no}function min(eo,to){let no;if(to===void 0)for(const io of eo)io!=null&&(no>io||no===void 0&&io>=io)&&(no=io);else{let io=-1;for(let so of eo)(so=to(so,++io,eo))!=null&&(no>so||no===void 0&&so>=so)&&(no=so)}return no}function sum(eo,to){let no=0;if(to===void 0)for(let io of eo)(io=+io)&&(no+=io);else{let io=-1;for(let so of eo)(so=+to(so,++io,eo))&&(no+=so)}return no}function targetDepth(eo){return eo.target.depth}function left(eo){return eo.depth}function right(eo,to){return to-1-eo.height}function justify(eo,to){return eo.sourceLinks.length?eo.depth:to-1}function center(eo){return eo.targetLinks.length?eo.depth:eo.sourceLinks.length?min(eo.sourceLinks,targetDepth)-1:0}function constant$1(eo){return function(){return eo}}function ascendingSourceBreadth(eo,to){return ascendingBreadth(eo.source,to.source)||eo.index-to.index}function ascendingTargetBreadth(eo,to){return ascendingBreadth(eo.target,to.target)||eo.index-to.index}function ascendingBreadth(eo,to){return eo.y0-to.y0}function value(eo){return eo.value}function defaultId(eo){return eo.index}function defaultNodes(eo){return eo.nodes}function defaultLinks(eo){return eo.links}function find(eo,to){const no=eo.get(to);if(!no)throw new Error("missing: "+to);return no}function computeLinkBreadths({nodes:eo}){for(const to of eo){let no=to.y0,io=no;for(const so of to.sourceLinks)so.y0=no+so.width/2,no+=so.width;for(const so of to.targetLinks)so.y1=io+so.width/2,io+=so.width}}function Sankey(){let eo=0,to=0,no=1,io=1,so=24,ao=8,lo,uo=defaultId,ho=justify,go,mo,yo=defaultNodes,So=defaultLinks,_o=6;function ko(){const ps={nodes:yo.apply(null,arguments),links:So.apply(null,arguments)};return Co(ps),$o(ps),Ro(ps),Oo(ps),Bo(ps),computeLinkBreadths(ps),ps}ko.update=function(ps){return computeLinkBreadths(ps),ps},ko.nodeId=function(ps){return arguments.length?(uo=typeof ps=="function"?ps:constant$1(ps),ko):uo},ko.nodeAlign=function(ps){return arguments.length?(ho=typeof ps=="function"?ps:constant$1(ps),ko):ho},ko.nodeSort=function(ps){return arguments.length?(go=ps,ko):go},ko.nodeWidth=function(ps){return arguments.length?(so=+ps,ko):so},ko.nodePadding=function(ps){return arguments.length?(ao=lo=+ps,ko):ao},ko.nodes=function(ps){return arguments.length?(yo=typeof ps=="function"?ps:constant$1(ps),ko):yo},ko.links=function(ps){return arguments.length?(So=typeof ps=="function"?ps:constant$1(ps),ko):So},ko.linkSort=function(ps){return arguments.length?(mo=ps,ko):mo},ko.size=function(ps){return arguments.length?(eo=to=0,no=+ps[0],io=+ps[1],ko):[no-eo,io-to]},ko.extent=function(ps){return arguments.length?(eo=+ps[0][0],no=+ps[1][0],to=+ps[0][1],io=+ps[1][1],ko):[[eo,to],[no,io]]},ko.iterations=function(ps){return arguments.length?(_o=+ps,ko):_o};function Co({nodes:ps,links:Qo}){for(const[gs,ys]of ps.entries())ys.index=gs,ys.sourceLinks=[],ys.targetLinks=[];const hs=new Map(ps.map((gs,ys)=>[uo(gs,ys,ps),gs]));for(const[gs,ys]of Qo.entries()){ys.index=gs;let{source:vs,target:ks}=ys;typeof vs!="object"&&(vs=ys.source=find(hs,vs)),typeof ks!="object"&&(ks=ys.target=find(hs,ks)),vs.sourceLinks.push(ys),ks.targetLinks.push(ys)}if(mo!=null)for(const{sourceLinks:gs,targetLinks:ys}of ps)gs.sort(mo),ys.sort(mo)}function $o({nodes:ps}){for(const Qo of ps)Qo.value=Qo.fixedValue===void 0?Math.max(sum(Qo.sourceLinks,value),sum(Qo.targetLinks,value)):Qo.fixedValue}function Ro({nodes:ps}){const Qo=ps.length;let hs=new Set(ps),gs=new Set,ys=0;for(;hs.size;){for(const vs of hs){vs.depth=ys;for(const{target:ks}of vs.sourceLinks)gs.add(ks)}if(++ys>Qo)throw new Error("circular link");hs=gs,gs=new Set}}function Oo({nodes:ps}){const Qo=ps.length;let hs=new Set(ps),gs=new Set,ys=0;for(;hs.size;){for(const vs of hs){vs.height=ys;for(const{source:ks}of vs.targetLinks)gs.add(ks)}if(++ys>Qo)throw new Error("circular link");hs=gs,gs=new Set}}function No({nodes:ps}){const Qo=max(ps,ys=>ys.depth)+1,hs=(no-eo-so)/(Qo-1),gs=new Array(Qo);for(const ys of ps){const vs=Math.max(0,Math.min(Qo-1,Math.floor(ho.call(null,ys,Qo))));ys.layer=vs,ys.x0=eo+vs*hs,ys.x1=ys.x0+so,gs[vs]?gs[vs].push(ys):gs[vs]=[ys]}if(go)for(const ys of gs)ys.sort(go);return gs}function Mo(ps){const Qo=min(ps,hs=>(io-to-(hs.length-1)*lo)/sum(hs,value));for(const hs of ps){let gs=to;for(const ys of hs){ys.y0=gs,ys.y1=gs+ys.value*Qo,gs=ys.y1+lo;for(const vs of ys.sourceLinks)vs.width=vs.value*Qo}gs=(io-gs+lo)/(hs.length+1);for(let ys=0;yshs.length)-1)),Mo(Qo);for(let hs=0;hs<_o;++hs){const gs=Math.pow(.99,hs),ys=Math.max(1-gs,(hs+1)/_o);Lo(Qo,gs,ys),Fo(Qo,gs,ys)}}function Fo(ps,Qo,hs){for(let gs=1,ys=ps.length;gs0))continue;let Xs=(Os/Ts-ks.y0)*Qo;ks.y0+=Xs,ks.y1+=Xs,Ho(ks)}go===void 0&&vs.sort(ascendingBreadth),Go(vs,hs)}}function Lo(ps,Qo,hs){for(let gs=ps.length,ys=gs-2;ys>=0;--ys){const vs=ps[ys];for(const ks of vs){let Os=0,Ts=0;for(const{target:Ws,value:Ps}of ks.sourceLinks){let qs=Ps*(Ws.layer-ks.layer);Os+=Jo(ks,Ws)*qs,Ts+=qs}if(!(Ts>0))continue;let Xs=(Os/Ts-ks.y0)*Qo;ks.y0+=Xs,ks.y1+=Xs,Ho(ks)}go===void 0&&vs.sort(ascendingBreadth),Go(vs,hs)}}function Go(ps,Qo){const hs=ps.length>>1,gs=ps[hs];Uo(ps,gs.y0-lo,hs-1,Qo),Do(ps,gs.y1+lo,hs+1,Qo),Uo(ps,io,ps.length-1,Qo),Do(ps,to,0,Qo)}function Do(ps,Qo,hs,gs){for(;hs1e-6&&(ys.y0+=vs,ys.y1+=vs),Qo=ys.y1+lo}}function Uo(ps,Qo,hs,gs){for(;hs>=0;--hs){const ys=ps[hs],vs=(ys.y1-Qo)*gs;vs>1e-6&&(ys.y0-=vs,ys.y1-=vs),Qo=ys.y0-lo}}function Ho({sourceLinks:ps,targetLinks:Qo}){if(mo===void 0){for(const{source:{sourceLinks:hs}}of Qo)hs.sort(ascendingTargetBreadth);for(const{target:{targetLinks:hs}}of ps)hs.sort(ascendingSourceBreadth)}}function Yo(ps){if(mo===void 0)for(const{sourceLinks:Qo,targetLinks:hs}of ps)Qo.sort(ascendingTargetBreadth),hs.sort(ascendingSourceBreadth)}function qo(ps,Qo){let hs=ps.y0-(ps.sourceLinks.length-1)*lo/2;for(const{target:gs,width:ys}of ps.sourceLinks){if(gs===Qo)break;hs+=ys+lo}for(const{source:gs,width:ys}of Qo.targetLinks){if(gs===ps)break;hs-=ys}return hs}function Jo(ps,Qo){let hs=Qo.y0-(Qo.targetLinks.length-1)*lo/2;for(const{source:gs,width:ys}of Qo.targetLinks){if(gs===ps)break;hs+=ys+lo}for(const{target:gs,width:ys}of ps.sourceLinks){if(gs===Qo)break;hs-=ys}return hs}return ko}var pi=Math.PI,tau=2*pi,epsilon=1e-6,tauEpsilon=tau-epsilon;function Path(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function path(){return new Path}Path.prototype=path.prototype={constructor:Path,moveTo:function(eo,to){this._+="M"+(this._x0=this._x1=+eo)+","+(this._y0=this._y1=+to)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(eo,to){this._+="L"+(this._x1=+eo)+","+(this._y1=+to)},quadraticCurveTo:function(eo,to,no,io){this._+="Q"+ +eo+","+ +to+","+(this._x1=+no)+","+(this._y1=+io)},bezierCurveTo:function(eo,to,no,io,so,ao){this._+="C"+ +eo+","+ +to+","+ +no+","+ +io+","+(this._x1=+so)+","+(this._y1=+ao)},arcTo:function(eo,to,no,io,so){eo=+eo,to=+to,no=+no,io=+io,so=+so;var ao=this._x1,lo=this._y1,uo=no-eo,ho=io-to,go=ao-eo,mo=lo-to,yo=go*go+mo*mo;if(so<0)throw new Error("negative radius: "+so);if(this._x1===null)this._+="M"+(this._x1=eo)+","+(this._y1=to);else if(yo>epsilon)if(!(Math.abs(mo*uo-ho*go)>epsilon)||!so)this._+="L"+(this._x1=eo)+","+(this._y1=to);else{var So=no-ao,_o=io-lo,ko=uo*uo+ho*ho,Co=So*So+_o*_o,$o=Math.sqrt(ko),Ro=Math.sqrt(yo),Oo=so*Math.tan((pi-Math.acos((ko+yo-Co)/(2*$o*Ro)))/2),No=Oo/Ro,Mo=Oo/$o;Math.abs(No-1)>epsilon&&(this._+="L"+(eo+No*go)+","+(to+No*mo)),this._+="A"+so+","+so+",0,0,"+ +(mo*So>go*_o)+","+(this._x1=eo+Mo*uo)+","+(this._y1=to+Mo*ho)}},arc:function(eo,to,no,io,so,ao){eo=+eo,to=+to,no=+no,ao=!!ao;var lo=no*Math.cos(io),uo=no*Math.sin(io),ho=eo+lo,go=to+uo,mo=1^ao,yo=ao?io-so:so-io;if(no<0)throw new Error("negative radius: "+no);this._x1===null?this._+="M"+ho+","+go:(Math.abs(this._x1-ho)>epsilon||Math.abs(this._y1-go)>epsilon)&&(this._+="L"+ho+","+go),no&&(yo<0&&(yo=yo%tau+tau),yo>tauEpsilon?this._+="A"+no+","+no+",0,1,"+mo+","+(eo-lo)+","+(to-uo)+"A"+no+","+no+",0,1,"+mo+","+(this._x1=ho)+","+(this._y1=go):yo>epsilon&&(this._+="A"+no+","+no+",0,"+ +(yo>=pi)+","+mo+","+(this._x1=eo+no*Math.cos(so))+","+(this._y1=to+no*Math.sin(so))))},rect:function(eo,to,no,io){this._+="M"+(this._x0=this._x1=+eo)+","+(this._y0=this._y1=+to)+"h"+ +no+"v"+ +io+"h"+-no+"Z"},toString:function(){return this._}};function constant(eo){return function(){return eo}}function x(eo){return eo[0]}function y(eo){return eo[1]}var slice=Array.prototype.slice;function linkSource(eo){return eo.source}function linkTarget(eo){return eo.target}function link(eo){var to=linkSource,no=linkTarget,io=x,so=y,ao=null;function lo(){var uo,ho=slice.call(arguments),go=to.apply(this,ho),mo=no.apply(this,ho);if(ao||(ao=uo=path()),eo(ao,+io.apply(this,(ho[0]=go,ho)),+so.apply(this,ho),+io.apply(this,(ho[0]=mo,ho)),+so.apply(this,ho)),uo)return ao=null,uo+""||null}return lo.source=function(uo){return arguments.length?(to=uo,lo):to},lo.target=function(uo){return arguments.length?(no=uo,lo):no},lo.x=function(uo){return arguments.length?(io=typeof uo=="function"?uo:constant(+uo),lo):io},lo.y=function(uo){return arguments.length?(so=typeof uo=="function"?uo:constant(+uo),lo):so},lo.context=function(uo){return arguments.length?(ao=uo??null,lo):ao},lo}function curveHorizontal(eo,to,no,io,so){eo.moveTo(to,no),eo.bezierCurveTo(to=(to+io)/2,no,to,so,io,so)}function linkHorizontal(){return link(curveHorizontal)}function horizontalSource(eo){return[eo.source.x1,eo.y0]}function horizontalTarget(eo){return[eo.target.x0,eo.y1]}function sankeyLinkHorizontal(){return linkHorizontal().source(horizontalSource).target(horizontalTarget)}var parser$2=function(){var eo=function(uo,ho,go,mo){for(go=go||{},mo=uo.length;mo--;go[uo[mo]]=ho);return go},to=[1,9],no=[1,10],io=[1,5,10,12],so={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(ho,go,mo,yo,So,_o,ko){var Co=_o.length-1;switch(So){case 7:const $o=yo.findOrCreateNode(_o[Co-4].trim().replaceAll('""','"')),Ro=yo.findOrCreateNode(_o[Co-2].trim().replaceAll('""','"')),Oo=parseFloat(_o[Co].trim());yo.addLink($o,Ro,Oo);break;case 8:case 9:case 11:this.$=_o[Co];break;case 10:this.$=_o[Co-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:to,20:no},{1:[2,6],7:11,10:[1,12]},eo(no,[2,4],{9:13,5:[1,14]}),{12:[1,15]},eo(io,[2,8]),eo(io,[2,9]),{19:[1,16]},eo(io,[2,11]),{1:[2,1]},{1:[2,5]},eo(no,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:to,20:no},{15:18,16:7,17:8,18:to,20:no},{18:[1,19]},eo(no,[2,3]),{12:[1,20]},eo(io,[2,10]),{15:21,16:7,17:8,18:to,20:no},eo([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(ho,go){if(go.recoverable)this.trace(ho);else{var mo=new Error(ho);throw mo.hash=go,mo}},parse:function(ho){var go=this,mo=[0],yo=[],So=[null],_o=[],ko=this.table,Co="",$o=0,Ro=0,Oo=2,No=1,Mo=_o.slice.call(arguments,1),Bo=Object.create(this.lexer),Fo={yy:{}};for(var Lo in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Lo)&&(Fo.yy[Lo]=this.yy[Lo]);Bo.setInput(ho,Fo.yy),Fo.yy.lexer=Bo,Fo.yy.parser=this,typeof Bo.yylloc>"u"&&(Bo.yylloc={});var Go=Bo.yylloc;_o.push(Go);var Do=Bo.options&&Bo.options.ranges;typeof Fo.yy.parseError=="function"?this.parseError=Fo.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Uo(){var ks;return ks=yo.pop()||Bo.lex()||No,typeof ks!="number"&&(ks instanceof Array&&(yo=ks,ks=yo.pop()),ks=go.symbols_[ks]||ks),ks}for(var Ho,Yo,qo,Jo,ps={},Qo,hs,gs,ys;;){if(Yo=mo[mo.length-1],this.defaultActions[Yo]?qo=this.defaultActions[Yo]:((Ho===null||typeof Ho>"u")&&(Ho=Uo()),qo=ko[Yo]&&ko[Yo][Ho]),typeof qo>"u"||!qo.length||!qo[0]){var vs="";ys=[];for(Qo in ko[Yo])this.terminals_[Qo]&&Qo>Oo&&ys.push("'"+this.terminals_[Qo]+"'");Bo.showPosition?vs="Parse error on line "+($o+1)+`: `+Bo.showPosition()+` -Expecting `+ys.join(", ")+", got '"+(this.terminals_[Ho]||Ho)+"'":vs="Parse error on line "+($o+1)+": Unexpected "+(Ho==No?"end of input":"'"+(this.terminals_[Ho]||Ho)+"'"),this.parseError(vs,{text:Bo.match,token:this.terminals_[Ho]||Ho,line:Bo.yylineno,loc:Go,expected:ys})}if(qo[0]instanceof Array&&qo.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Yo+", token: "+Ho);switch(qo[0]){case 1:mo.push(Ho),So.push(Bo.yytext),_o.push(Bo.yylloc),mo.push(qo[1]),Ho=null,Ro=Bo.yyleng,Co=Bo.yytext,$o=Bo.yylineno,Go=Bo.yylloc;break;case 2:if(hs=this.productions_[qo[1]][1],ps.$=So[So.length-hs],ps._$={first_line:_o[_o.length-(hs||1)].first_line,last_line:_o[_o.length-1].last_line,first_column:_o[_o.length-(hs||1)].first_column,last_column:_o[_o.length-1].last_column},Do&&(ps._$.range=[_o[_o.length-(hs||1)].range[0],_o[_o.length-1].range[1]]),Jo=this.performAction.apply(ps,[Co,Ro,$o,Po.yy,qo[1],So,_o].concat(Mo)),typeof Jo<"u")return Jo;hs&&(mo=mo.slice(0,-1*hs*2),So=So.slice(0,-1*hs),_o=_o.slice(0,-1*hs)),mo.push(this.productions_[qo[1]][0]),So.push(ps.$),_o.push(ps._$),gs=ko[mo[mo.length-2]][mo[mo.length-1]],mo.push(gs);break;case 3:return!0}}return!0}},ao=function(){var uo={EOF:1,parseError:function(go,mo){if(this.yy.parser)this.yy.parser.parseError(go,mo);else throw new Error(go)},setInput:function(ho,go){return this.yy=go||this.yy||{},this._input=ho,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ho=this._input[0];this.yytext+=ho,this.yyleng++,this.offset++,this.match+=ho,this.matched+=ho;var go=ho.match(/(?:\r\n?|\n).*/g);return go?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ho},unput:function(ho){var go=ho.length,mo=ho.split(/(?:\r\n?|\n)/g);this._input=ho+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-go),this.offset-=go;var yo=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),mo.length-1&&(this.yylineno-=mo.length-1);var So=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:mo?(mo.length===yo.length?this.yylloc.first_column:0)+yo[yo.length-mo.length].length-mo[0].length:this.yylloc.first_column-go},this.options.ranges&&(this.yylloc.range=[So[0],So[0]+this.yyleng-go]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+ys.join(", ")+", got '"+(this.terminals_[Ho]||Ho)+"'":vs="Parse error on line "+($o+1)+": Unexpected "+(Ho==No?"end of input":"'"+(this.terminals_[Ho]||Ho)+"'"),this.parseError(vs,{text:Bo.match,token:this.terminals_[Ho]||Ho,line:Bo.yylineno,loc:Go,expected:ys})}if(qo[0]instanceof Array&&qo.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Yo+", token: "+Ho);switch(qo[0]){case 1:mo.push(Ho),So.push(Bo.yytext),_o.push(Bo.yylloc),mo.push(qo[1]),Ho=null,Ro=Bo.yyleng,Co=Bo.yytext,$o=Bo.yylineno,Go=Bo.yylloc;break;case 2:if(hs=this.productions_[qo[1]][1],ps.$=So[So.length-hs],ps._$={first_line:_o[_o.length-(hs||1)].first_line,last_line:_o[_o.length-1].last_line,first_column:_o[_o.length-(hs||1)].first_column,last_column:_o[_o.length-1].last_column},Do&&(ps._$.range=[_o[_o.length-(hs||1)].range[0],_o[_o.length-1].range[1]]),Jo=this.performAction.apply(ps,[Co,Ro,$o,Fo.yy,qo[1],So,_o].concat(Mo)),typeof Jo<"u")return Jo;hs&&(mo=mo.slice(0,-1*hs*2),So=So.slice(0,-1*hs),_o=_o.slice(0,-1*hs)),mo.push(this.productions_[qo[1]][0]),So.push(ps.$),_o.push(ps._$),gs=ko[mo[mo.length-2]][mo[mo.length-1]],mo.push(gs);break;case 3:return!0}}return!0}},ao=function(){var uo={EOF:1,parseError:function(go,mo){if(this.yy.parser)this.yy.parser.parseError(go,mo);else throw new Error(go)},setInput:function(ho,go){return this.yy=go||this.yy||{},this._input=ho,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ho=this._input[0];this.yytext+=ho,this.yyleng++,this.offset++,this.match+=ho,this.matched+=ho;var go=ho.match(/(?:\r\n?|\n).*/g);return go?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ho},unput:function(ho){var go=ho.length,mo=ho.split(/(?:\r\n?|\n)/g);this._input=ho+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-go),this.offset-=go;var yo=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),mo.length-1&&(this.yylineno-=mo.length-1);var So=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:mo?(mo.length===yo.length?this.yylloc.first_column:0)+yo[yo.length-mo.length].length-mo[0].length:this.yylloc.first_column-go},this.options.ranges&&(this.yylloc.range=[So[0],So[0]+this.yyleng-go]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(ho){this.unput(this.match.slice(ho))},pastInput:function(){var ho=this.matched.substr(0,this.matched.length-this.match.length);return(ho.length>20?"...":"")+ho.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ho=this.match;return ho.length<20&&(ho+=this._input.substr(0,20-ho.length)),(ho.substr(0,20)+(ho.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ho=this.pastInput(),go=new Array(ho.length+1).join("-");return ho+this.upcomingInput()+` `+go+"^"},test_match:function(ho,go){var mo,yo,So;if(this.options.backtrack_lexer&&(So={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(So.yylloc.range=this.yylloc.range.slice(0))),yo=ho[0].match(/(?:\r\n?|\n).*/g),yo&&(this.yylineno+=yo.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:yo?yo[yo.length-1].length-yo[yo.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ho[0].length},this.yytext+=ho[0],this.match+=ho[0],this.matches=ho,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ho[0].length),this.matched+=ho[0],mo=this.performAction.call(this,this.yy,this,go,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),mo)return mo;if(this._backtrack){for(var _o in So)this[_o]=So[_o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ho,go,mo,yo;this._more||(this.yytext="",this.match="");for(var So=this._currentRules(),_o=0;_ogo[0].length)){if(go=mo,yo=_o,this.options.backtrack_lexer){if(ho=this.test_match(mo,So[_o]),ho!==!1)return ho;if(this._backtrack){go=!1;continue}else return!1}else if(!this.options.flex)break}return go?(ho=this.test_match(go,So[yo]),ho!==!1?ho:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var go=this.next();return go||this.lex()},begin:function(go){this.conditionStack.push(go)},popState:function(){var go=this.conditionStack.length-1;return go>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(go){return go=this.conditionStack.length-1-Math.abs(go||0),go>=0?this.conditionStack[go]:"INITIAL"},pushState:function(go){this.begin(go)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(go,mo,yo,So){switch(yo){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return uo}();so.lexer=ao;function lo(){this.yy={}}return lo.prototype=so,so.Parser=lo,new lo}();parser$2.parser=parser$2;const parser$1$1=parser$2;let links=[],nodes=[],nodesMap={};const clear$1=()=>{links=[],nodes=[],nodesMap={},clear$k()};class SankeyLink{constructor(to,no,io=0){this.source=to,this.target=no,this.value=io}}const addLink=(eo,to,no)=>{links.push(new SankeyLink(eo,to,no))};class SankeyNode{constructor(to){this.ID=to}}const findOrCreateNode=eo=>(eo=common$1.sanitizeText(eo,getConfig$2()),nodesMap[eo]||(nodesMap[eo]=new SankeyNode(eo),nodes.push(nodesMap[eo])),nodesMap[eo]),getNodes=()=>nodes,getLinks=()=>links,getGraph=()=>({nodes:nodes.map(eo=>({id:eo.ID})),links:links.map(eo=>({source:eo.source.ID,target:eo.target.ID,value:eo.value}))}),db$2={nodesMap,getConfig:()=>getConfig$2().sankey,getNodes,getLinks,getGraph,addLink,findOrCreateNode,getAccTitle,setAccTitle,getAccDescription,setAccDescription,getDiagramTitle,setDiagramTitle,clear:clear$1},_Uid=class KMe{static next(to){return new KMe(to+ ++KMe.count)}constructor(to){this.id=to,this.href=`#${to}`}toString(){return"url("+this.href+")"}};_Uid.count=0;let Uid=_Uid;const alignmentsMap={left,right,center,justify},draw$1=function(eo,to,no,io){const{securityLevel:so,sankey:ao}=getConfig$2(),lo=defaultConfig$3.sankey;let uo;so==="sandbox"&&(uo=select("#i"+to));const ho=select(so==="sandbox"?uo.nodes()[0].contentDocument.body:"body"),go=so==="sandbox"?ho.select(`[id="${to}"]`):select(`[id="${to}"]`),mo=(ao==null?void 0:ao.width)??lo.width,yo=(ao==null?void 0:ao.height)??lo.width,So=(ao==null?void 0:ao.useMaxWidth)??lo.useMaxWidth,_o=(ao==null?void 0:ao.nodeAlignment)??lo.nodeAlignment,ko=(ao==null?void 0:ao.prefix)??lo.prefix,Co=(ao==null?void 0:ao.suffix)??lo.suffix,$o=(ao==null?void 0:ao.showValues)??lo.showValues,Ro=io.db.getGraph(),Oo=alignmentsMap[_o],No=10;Sankey().nodeId(Uo=>Uo.id).nodeWidth(No).nodePadding(10+($o?15:0)).nodeAlign(Oo).extent([[0,0],[mo,yo]])(Ro);const Bo=ordinal(schemeTableau10);go.append("g").attr("class","nodes").selectAll(".node").data(Ro.nodes).join("g").attr("class","node").attr("id",Uo=>(Uo.uid=Uid.next("node-")).id).attr("transform",function(Uo){return"translate("+Uo.x0+","+Uo.y0+")"}).attr("x",Uo=>Uo.x0).attr("y",Uo=>Uo.y0).append("rect").attr("height",Uo=>Uo.y1-Uo.y0).attr("width",Uo=>Uo.x1-Uo.x0).attr("fill",Uo=>Bo(Uo.id));const Po=({id:Uo,value:Ho})=>$o?`${Uo} -${ko}${Math.round(Ho*100)/100}${Co}`:Uo;go.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(Ro.nodes).join("text").attr("x",Uo=>Uo.x0(Uo.y1+Uo.y0)/2).attr("dy",`${$o?"0":"0.35"}em`).attr("text-anchor",Uo=>Uo.x0(Ho.uid=Uid.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",Ho=>Ho.source.x1).attr("x2",Ho=>Ho.target.x0);Uo.append("stop").attr("offset","0%").attr("stop-color",Ho=>Bo(Ho.source.id)),Uo.append("stop").attr("offset","100%").attr("stop-color",Ho=>Bo(Ho.target.id))}let Do;switch(Go){case"gradient":Do=Uo=>Uo.uid;break;case"source":Do=Uo=>Bo(Uo.source.id);break;case"target":Do=Uo=>Bo(Uo.target.id);break;default:Do=Go}Lo.append("path").attr("d",sankeyLinkHorizontal()).attr("stroke",Do).attr("stroke-width",Uo=>Math.max(1,Uo.width)),setupGraphViewbox$1(void 0,go,0,So)},renderer$1={draw:draw$1},prepareTextForParsing=eo=>eo.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` -`).trim(),originalParse=parser$1$1.parse.bind(parser$1$1);parser$1$1.parse=eo=>originalParse(prepareTextForParsing(eo));const diagram$1={parser:parser$1$1,db:db$2,renderer:renderer$1},sankeyDiagram97764748=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$1},Symbol.toStringTag,{value:"Module"}));var _a,_b,parser=function(){var eo=function(No,Mo,Bo,Po){for(Bo=Bo||{},Po=No.length;Po--;Bo[No[Po]]=Mo);return Bo},to=[1,7],no=[1,13],io=[1,14],so=[1,15],ao=[1,19],lo=[1,16],uo=[1,17],ho=[1,18],go=[8,30],mo=[8,21,28,29,30,31,32,40,44,47],yo=[1,23],So=[1,24],_o=[8,15,16,21,28,29,30,31,32,40,44,47],ko=[8,15,16,21,27,28,29,30,31,32,40,44,47],Co=[1,49],$o={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(Mo,Bo,Po,Lo,Go,Do,Uo){var Ho=Do.length-1;switch(Go){case 4:Lo.getLogger().debug("Rule: separator (NL) ");break;case 5:Lo.getLogger().debug("Rule: separator (Space) ");break;case 6:Lo.getLogger().debug("Rule: separator (EOF) ");break;case 7:Lo.getLogger().debug("Rule: hierarchy: ",Do[Ho-1]),Lo.setHierarchy(Do[Ho-1]);break;case 8:Lo.getLogger().debug("Stop NL ");break;case 9:Lo.getLogger().debug("Stop EOF ");break;case 10:Lo.getLogger().debug("Stop NL2 ");break;case 11:Lo.getLogger().debug("Stop EOF2 ");break;case 12:Lo.getLogger().debug("Rule: statement: ",Do[Ho]),typeof Do[Ho].length=="number"?this.$=Do[Ho]:this.$=[Do[Ho]];break;case 13:Lo.getLogger().debug("Rule: statement #2: ",Do[Ho-1]),this.$=[Do[Ho-1]].concat(Do[Ho]);break;case 14:Lo.getLogger().debug("Rule: link: ",Do[Ho],Mo),this.$={edgeTypeStr:Do[Ho],label:""};break;case 15:Lo.getLogger().debug("Rule: LABEL link: ",Do[Ho-3],Do[Ho-1],Do[Ho]),this.$={edgeTypeStr:Do[Ho],label:Do[Ho-1]};break;case 18:const Yo=parseInt(Do[Ho]),qo=Lo.generateId();this.$={id:qo,type:"space",label:"",width:Yo,children:[]};break;case 23:Lo.getLogger().debug("Rule: (nodeStatement link node) ",Do[Ho-2],Do[Ho-1],Do[Ho]," typestr: ",Do[Ho-1].edgeTypeStr);const Jo=Lo.edgeStrToEdgeData(Do[Ho-1].edgeTypeStr);this.$=[{id:Do[Ho-2].id,label:Do[Ho-2].label,type:Do[Ho-2].type,directions:Do[Ho-2].directions},{id:Do[Ho-2].id+"-"+Do[Ho].id,start:Do[Ho-2].id,end:Do[Ho].id,label:Do[Ho-1].label,type:"edge",directions:Do[Ho].directions,arrowTypeEnd:Jo,arrowTypeStart:"arrow_open"},{id:Do[Ho].id,label:Do[Ho].label,type:Lo.typeStr2Type(Do[Ho].typeStr),directions:Do[Ho].directions}];break;case 24:Lo.getLogger().debug("Rule: nodeStatement (abc88 node size) ",Do[Ho-1],Do[Ho]),this.$={id:Do[Ho-1].id,label:Do[Ho-1].label,type:Lo.typeStr2Type(Do[Ho-1].typeStr),directions:Do[Ho-1].directions,widthInColumns:parseInt(Do[Ho],10)};break;case 25:Lo.getLogger().debug("Rule: nodeStatement (node) ",Do[Ho]),this.$={id:Do[Ho].id,label:Do[Ho].label,type:Lo.typeStr2Type(Do[Ho].typeStr),directions:Do[Ho].directions,widthInColumns:1};break;case 26:Lo.getLogger().debug("APA123",this?this:"na"),Lo.getLogger().debug("COLUMNS: ",Do[Ho]),this.$={type:"column-setting",columns:Do[Ho]==="auto"?-1:parseInt(Do[Ho])};break;case 27:Lo.getLogger().debug("Rule: id-block statement : ",Do[Ho-2],Do[Ho-1]),Lo.generateId(),this.$={...Do[Ho-2],type:"composite",children:Do[Ho-1]};break;case 28:Lo.getLogger().debug("Rule: blockStatement : ",Do[Ho-2],Do[Ho-1],Do[Ho]);const ps=Lo.generateId();this.$={id:ps,type:"composite",label:"",children:Do[Ho-1]};break;case 29:Lo.getLogger().debug("Rule: node (NODE_ID separator): ",Do[Ho]),this.$={id:Do[Ho]};break;case 30:Lo.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",Do[Ho-1],Do[Ho]),this.$={id:Do[Ho-1],label:Do[Ho].label,typeStr:Do[Ho].typeStr,directions:Do[Ho].directions};break;case 31:Lo.getLogger().debug("Rule: dirList: ",Do[Ho]),this.$=[Do[Ho]];break;case 32:Lo.getLogger().debug("Rule: dirList: ",Do[Ho-1],Do[Ho]),this.$=[Do[Ho-1]].concat(Do[Ho]);break;case 33:Lo.getLogger().debug("Rule: nodeShapeNLabel: ",Do[Ho-2],Do[Ho-1],Do[Ho]),this.$={typeStr:Do[Ho-2]+Do[Ho],label:Do[Ho-1]};break;case 34:Lo.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",Do[Ho-3],Do[Ho-2]," #3:",Do[Ho-1],Do[Ho]),this.$={typeStr:Do[Ho-3]+Do[Ho],label:Do[Ho-2],directions:Do[Ho-1]};break;case 35:case 36:this.$={type:"classDef",id:Do[Ho-1].trim(),css:Do[Ho].trim()};break;case 37:this.$={type:"applyClass",id:Do[Ho-1].trim(),styleClass:Do[Ho].trim()};break;case 38:this.$={type:"applyStyles",id:Do[Ho-1].trim(),stylesStr:Do[Ho].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:to,22:8,23:9,24:10,25:11,26:12,28:no,29:io,31:so,32:ao,40:lo,44:uo,47:ho},{8:[1,20]},eo(go,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:to,28:no,29:io,31:so,32:ao,40:lo,44:uo,47:ho}),eo(mo,[2,16],{14:22,15:yo,16:So}),eo(mo,[2,17]),eo(mo,[2,18]),eo(mo,[2,19]),eo(mo,[2,20]),eo(mo,[2,21]),eo(mo,[2,22]),eo(_o,[2,25],{27:[1,25]}),eo(mo,[2,26]),{19:26,26:12,32:ao},{11:27,13:4,19:5,20:6,21:to,22:8,23:9,24:10,25:11,26:12,28:no,29:io,31:so,32:ao,40:lo,44:uo,47:ho},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},eo(ko,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},eo(go,[2,13]),{26:35,32:ao},{32:[2,14]},{17:[1,36]},eo(_o,[2,24]),{11:37,13:4,14:22,15:yo,16:So,19:5,20:6,21:to,22:8,23:9,24:10,25:11,26:12,28:no,29:io,31:so,32:ao,40:lo,44:uo,47:ho},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},eo(ko,[2,30]),{18:[1,43]},{18:[1,44]},eo(_o,[2,23]),{18:[1,45]},{30:[1,46]},eo(mo,[2,28]),eo(mo,[2,35]),eo(mo,[2,36]),eo(mo,[2,37]),eo(mo,[2,38]),{37:[1,47]},{34:48,35:Co},{15:[1,50]},eo(mo,[2,27]),eo(ko,[2,33]),{39:[1,51]},{34:52,35:Co,39:[2,31]},{32:[2,15]},eo(ko,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(Mo,Bo){if(Bo.recoverable)this.trace(Mo);else{var Po=new Error(Mo);throw Po.hash=Bo,Po}},parse:function(Mo){var Bo=this,Po=[0],Lo=[],Go=[null],Do=[],Uo=this.table,Ho="",Yo=0,qo=0,Jo=2,ps=1,Qo=Do.slice.call(arguments,1),hs=Object.create(this.lexer),gs={yy:{}};for(var ys in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ys)&&(gs.yy[ys]=this.yy[ys]);hs.setInput(Mo,gs.yy),gs.yy.lexer=hs,gs.yy.parser=this,typeof hs.yylloc>"u"&&(hs.yylloc={});var vs=hs.yylloc;Do.push(vs);var ks=hs.options&&hs.options.ranges;typeof gs.yy.parseError=="function"?this.parseError=gs.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Os(){var yl;return yl=Lo.pop()||hs.lex()||ps,typeof yl!="number"&&(yl instanceof Array&&(Lo=yl,yl=Lo.pop()),yl=Bo.symbols_[yl]||yl),yl}for(var Ts,Xs,Ws,Ps,qs={},ga,Fs,Js,Vs;;){if(Xs=Po[Po.length-1],this.defaultActions[Xs]?Ws=this.defaultActions[Xs]:((Ts===null||typeof Ts>"u")&&(Ts=Os()),Ws=Uo[Xs]&&Uo[Xs][Ts]),typeof Ws>"u"||!Ws.length||!Ws[0]){var El="";Vs=[];for(ga in Uo[Xs])this.terminals_[ga]&&ga>Jo&&Vs.push("'"+this.terminals_[ga]+"'");hs.showPosition?El="Parse error on line "+(Yo+1)+`: +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var go=this.next();return go||this.lex()},begin:function(go){this.conditionStack.push(go)},popState:function(){var go=this.conditionStack.length-1;return go>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(go){return go=this.conditionStack.length-1-Math.abs(go||0),go>=0?this.conditionStack[go]:"INITIAL"},pushState:function(go){this.begin(go)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(go,mo,yo,So){switch(yo){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return uo}();so.lexer=ao;function lo(){this.yy={}}return lo.prototype=so,so.Parser=lo,new lo}();parser$2.parser=parser$2;const parser$1$1=parser$2;let links=[],nodes=[],nodesMap={};const clear$1=()=>{links=[],nodes=[],nodesMap={},clear$k()};class SankeyLink{constructor(to,no,io=0){this.source=to,this.target=no,this.value=io}}const addLink=(eo,to,no)=>{links.push(new SankeyLink(eo,to,no))};class SankeyNode{constructor(to){this.ID=to}}const findOrCreateNode=eo=>(eo=common$1.sanitizeText(eo,getConfig$2()),nodesMap[eo]||(nodesMap[eo]=new SankeyNode(eo),nodes.push(nodesMap[eo])),nodesMap[eo]),getNodes=()=>nodes,getLinks=()=>links,getGraph=()=>({nodes:nodes.map(eo=>({id:eo.ID})),links:links.map(eo=>({source:eo.source.ID,target:eo.target.ID,value:eo.value}))}),db$2={nodesMap,getConfig:()=>getConfig$2().sankey,getNodes,getLinks,getGraph,addLink,findOrCreateNode,getAccTitle,setAccTitle,getAccDescription,setAccDescription,getDiagramTitle,setDiagramTitle,clear:clear$1},_Uid=class KMe{static next(to){return new KMe(to+ ++KMe.count)}constructor(to){this.id=to,this.href=`#${to}`}toString(){return"url("+this.href+")"}};_Uid.count=0;let Uid=_Uid;const alignmentsMap={left,right,center,justify},draw$1=function(eo,to,no,io){const{securityLevel:so,sankey:ao}=getConfig$2(),lo=defaultConfig$3.sankey;let uo;so==="sandbox"&&(uo=select("#i"+to));const ho=select(so==="sandbox"?uo.nodes()[0].contentDocument.body:"body"),go=so==="sandbox"?ho.select(`[id="${to}"]`):select(`[id="${to}"]`),mo=(ao==null?void 0:ao.width)??lo.width,yo=(ao==null?void 0:ao.height)??lo.width,So=(ao==null?void 0:ao.useMaxWidth)??lo.useMaxWidth,_o=(ao==null?void 0:ao.nodeAlignment)??lo.nodeAlignment,ko=(ao==null?void 0:ao.prefix)??lo.prefix,Co=(ao==null?void 0:ao.suffix)??lo.suffix,$o=(ao==null?void 0:ao.showValues)??lo.showValues,Ro=io.db.getGraph(),Oo=alignmentsMap[_o],No=10;Sankey().nodeId(Uo=>Uo.id).nodeWidth(No).nodePadding(10+($o?15:0)).nodeAlign(Oo).extent([[0,0],[mo,yo]])(Ro);const Bo=ordinal(schemeTableau10);go.append("g").attr("class","nodes").selectAll(".node").data(Ro.nodes).join("g").attr("class","node").attr("id",Uo=>(Uo.uid=Uid.next("node-")).id).attr("transform",function(Uo){return"translate("+Uo.x0+","+Uo.y0+")"}).attr("x",Uo=>Uo.x0).attr("y",Uo=>Uo.y0).append("rect").attr("height",Uo=>Uo.y1-Uo.y0).attr("width",Uo=>Uo.x1-Uo.x0).attr("fill",Uo=>Bo(Uo.id));const Fo=({id:Uo,value:Ho})=>$o?`${Uo} +${ko}${Math.round(Ho*100)/100}${Co}`:Uo;go.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(Ro.nodes).join("text").attr("x",Uo=>Uo.x0(Uo.y1+Uo.y0)/2).attr("dy",`${$o?"0":"0.35"}em`).attr("text-anchor",Uo=>Uo.x0(Ho.uid=Uid.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",Ho=>Ho.source.x1).attr("x2",Ho=>Ho.target.x0);Uo.append("stop").attr("offset","0%").attr("stop-color",Ho=>Bo(Ho.source.id)),Uo.append("stop").attr("offset","100%").attr("stop-color",Ho=>Bo(Ho.target.id))}let Do;switch(Go){case"gradient":Do=Uo=>Uo.uid;break;case"source":Do=Uo=>Bo(Uo.source.id);break;case"target":Do=Uo=>Bo(Uo.target.id);break;default:Do=Go}Lo.append("path").attr("d",sankeyLinkHorizontal()).attr("stroke",Do).attr("stroke-width",Uo=>Math.max(1,Uo.width)),setupGraphViewbox$1(void 0,go,0,So)},renderer$1={draw:draw$1},prepareTextForParsing=eo=>eo.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` +`).trim(),originalParse=parser$1$1.parse.bind(parser$1$1);parser$1$1.parse=eo=>originalParse(prepareTextForParsing(eo));const diagram$1={parser:parser$1$1,db:db$2,renderer:renderer$1},sankeyDiagram97764748=Object.freeze(Object.defineProperty({__proto__:null,diagram:diagram$1},Symbol.toStringTag,{value:"Module"}));var _a,_b,parser=function(){var eo=function(No,Mo,Bo,Fo){for(Bo=Bo||{},Fo=No.length;Fo--;Bo[No[Fo]]=Mo);return Bo},to=[1,7],no=[1,13],io=[1,14],so=[1,15],ao=[1,19],lo=[1,16],uo=[1,17],ho=[1,18],go=[8,30],mo=[8,21,28,29,30,31,32,40,44,47],yo=[1,23],So=[1,24],_o=[8,15,16,21,28,29,30,31,32,40,44,47],ko=[8,15,16,21,27,28,29,30,31,32,40,44,47],Co=[1,49],$o={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(Mo,Bo,Fo,Lo,Go,Do,Uo){var Ho=Do.length-1;switch(Go){case 4:Lo.getLogger().debug("Rule: separator (NL) ");break;case 5:Lo.getLogger().debug("Rule: separator (Space) ");break;case 6:Lo.getLogger().debug("Rule: separator (EOF) ");break;case 7:Lo.getLogger().debug("Rule: hierarchy: ",Do[Ho-1]),Lo.setHierarchy(Do[Ho-1]);break;case 8:Lo.getLogger().debug("Stop NL ");break;case 9:Lo.getLogger().debug("Stop EOF ");break;case 10:Lo.getLogger().debug("Stop NL2 ");break;case 11:Lo.getLogger().debug("Stop EOF2 ");break;case 12:Lo.getLogger().debug("Rule: statement: ",Do[Ho]),typeof Do[Ho].length=="number"?this.$=Do[Ho]:this.$=[Do[Ho]];break;case 13:Lo.getLogger().debug("Rule: statement #2: ",Do[Ho-1]),this.$=[Do[Ho-1]].concat(Do[Ho]);break;case 14:Lo.getLogger().debug("Rule: link: ",Do[Ho],Mo),this.$={edgeTypeStr:Do[Ho],label:""};break;case 15:Lo.getLogger().debug("Rule: LABEL link: ",Do[Ho-3],Do[Ho-1],Do[Ho]),this.$={edgeTypeStr:Do[Ho],label:Do[Ho-1]};break;case 18:const Yo=parseInt(Do[Ho]),qo=Lo.generateId();this.$={id:qo,type:"space",label:"",width:Yo,children:[]};break;case 23:Lo.getLogger().debug("Rule: (nodeStatement link node) ",Do[Ho-2],Do[Ho-1],Do[Ho]," typestr: ",Do[Ho-1].edgeTypeStr);const Jo=Lo.edgeStrToEdgeData(Do[Ho-1].edgeTypeStr);this.$=[{id:Do[Ho-2].id,label:Do[Ho-2].label,type:Do[Ho-2].type,directions:Do[Ho-2].directions},{id:Do[Ho-2].id+"-"+Do[Ho].id,start:Do[Ho-2].id,end:Do[Ho].id,label:Do[Ho-1].label,type:"edge",directions:Do[Ho].directions,arrowTypeEnd:Jo,arrowTypeStart:"arrow_open"},{id:Do[Ho].id,label:Do[Ho].label,type:Lo.typeStr2Type(Do[Ho].typeStr),directions:Do[Ho].directions}];break;case 24:Lo.getLogger().debug("Rule: nodeStatement (abc88 node size) ",Do[Ho-1],Do[Ho]),this.$={id:Do[Ho-1].id,label:Do[Ho-1].label,type:Lo.typeStr2Type(Do[Ho-1].typeStr),directions:Do[Ho-1].directions,widthInColumns:parseInt(Do[Ho],10)};break;case 25:Lo.getLogger().debug("Rule: nodeStatement (node) ",Do[Ho]),this.$={id:Do[Ho].id,label:Do[Ho].label,type:Lo.typeStr2Type(Do[Ho].typeStr),directions:Do[Ho].directions,widthInColumns:1};break;case 26:Lo.getLogger().debug("APA123",this?this:"na"),Lo.getLogger().debug("COLUMNS: ",Do[Ho]),this.$={type:"column-setting",columns:Do[Ho]==="auto"?-1:parseInt(Do[Ho])};break;case 27:Lo.getLogger().debug("Rule: id-block statement : ",Do[Ho-2],Do[Ho-1]),Lo.generateId(),this.$={...Do[Ho-2],type:"composite",children:Do[Ho-1]};break;case 28:Lo.getLogger().debug("Rule: blockStatement : ",Do[Ho-2],Do[Ho-1],Do[Ho]);const ps=Lo.generateId();this.$={id:ps,type:"composite",label:"",children:Do[Ho-1]};break;case 29:Lo.getLogger().debug("Rule: node (NODE_ID separator): ",Do[Ho]),this.$={id:Do[Ho]};break;case 30:Lo.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",Do[Ho-1],Do[Ho]),this.$={id:Do[Ho-1],label:Do[Ho].label,typeStr:Do[Ho].typeStr,directions:Do[Ho].directions};break;case 31:Lo.getLogger().debug("Rule: dirList: ",Do[Ho]),this.$=[Do[Ho]];break;case 32:Lo.getLogger().debug("Rule: dirList: ",Do[Ho-1],Do[Ho]),this.$=[Do[Ho-1]].concat(Do[Ho]);break;case 33:Lo.getLogger().debug("Rule: nodeShapeNLabel: ",Do[Ho-2],Do[Ho-1],Do[Ho]),this.$={typeStr:Do[Ho-2]+Do[Ho],label:Do[Ho-1]};break;case 34:Lo.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",Do[Ho-3],Do[Ho-2]," #3:",Do[Ho-1],Do[Ho]),this.$={typeStr:Do[Ho-3]+Do[Ho],label:Do[Ho-2],directions:Do[Ho-1]};break;case 35:case 36:this.$={type:"classDef",id:Do[Ho-1].trim(),css:Do[Ho].trim()};break;case 37:this.$={type:"applyClass",id:Do[Ho-1].trim(),styleClass:Do[Ho].trim()};break;case 38:this.$={type:"applyStyles",id:Do[Ho-1].trim(),stylesStr:Do[Ho].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:to,22:8,23:9,24:10,25:11,26:12,28:no,29:io,31:so,32:ao,40:lo,44:uo,47:ho},{8:[1,20]},eo(go,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:to,28:no,29:io,31:so,32:ao,40:lo,44:uo,47:ho}),eo(mo,[2,16],{14:22,15:yo,16:So}),eo(mo,[2,17]),eo(mo,[2,18]),eo(mo,[2,19]),eo(mo,[2,20]),eo(mo,[2,21]),eo(mo,[2,22]),eo(_o,[2,25],{27:[1,25]}),eo(mo,[2,26]),{19:26,26:12,32:ao},{11:27,13:4,19:5,20:6,21:to,22:8,23:9,24:10,25:11,26:12,28:no,29:io,31:so,32:ao,40:lo,44:uo,47:ho},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},eo(ko,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},eo(go,[2,13]),{26:35,32:ao},{32:[2,14]},{17:[1,36]},eo(_o,[2,24]),{11:37,13:4,14:22,15:yo,16:So,19:5,20:6,21:to,22:8,23:9,24:10,25:11,26:12,28:no,29:io,31:so,32:ao,40:lo,44:uo,47:ho},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},eo(ko,[2,30]),{18:[1,43]},{18:[1,44]},eo(_o,[2,23]),{18:[1,45]},{30:[1,46]},eo(mo,[2,28]),eo(mo,[2,35]),eo(mo,[2,36]),eo(mo,[2,37]),eo(mo,[2,38]),{37:[1,47]},{34:48,35:Co},{15:[1,50]},eo(mo,[2,27]),eo(ko,[2,33]),{39:[1,51]},{34:52,35:Co,39:[2,31]},{32:[2,15]},eo(ko,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(Mo,Bo){if(Bo.recoverable)this.trace(Mo);else{var Fo=new Error(Mo);throw Fo.hash=Bo,Fo}},parse:function(Mo){var Bo=this,Fo=[0],Lo=[],Go=[null],Do=[],Uo=this.table,Ho="",Yo=0,qo=0,Jo=2,ps=1,Qo=Do.slice.call(arguments,1),hs=Object.create(this.lexer),gs={yy:{}};for(var ys in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ys)&&(gs.yy[ys]=this.yy[ys]);hs.setInput(Mo,gs.yy),gs.yy.lexer=hs,gs.yy.parser=this,typeof hs.yylloc>"u"&&(hs.yylloc={});var vs=hs.yylloc;Do.push(vs);var ks=hs.options&&hs.options.ranges;typeof gs.yy.parseError=="function"?this.parseError=gs.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Os(){var yl;return yl=Lo.pop()||hs.lex()||ps,typeof yl!="number"&&(yl instanceof Array&&(Lo=yl,yl=Lo.pop()),yl=Bo.symbols_[yl]||yl),yl}for(var Ts,Xs,Ws,Ps,qs={},ga,Fs,Js,Vs;;){if(Xs=Fo[Fo.length-1],this.defaultActions[Xs]?Ws=this.defaultActions[Xs]:((Ts===null||typeof Ts>"u")&&(Ts=Os()),Ws=Uo[Xs]&&Uo[Xs][Ts]),typeof Ws>"u"||!Ws.length||!Ws[0]){var El="";Vs=[];for(ga in Uo[Xs])this.terminals_[ga]&&ga>Jo&&Vs.push("'"+this.terminals_[ga]+"'");hs.showPosition?El="Parse error on line "+(Yo+1)+`: `+hs.showPosition()+` -Expecting `+Vs.join(", ")+", got '"+(this.terminals_[Ts]||Ts)+"'":El="Parse error on line "+(Yo+1)+": Unexpected "+(Ts==ps?"end of input":"'"+(this.terminals_[Ts]||Ts)+"'"),this.parseError(El,{text:hs.match,token:this.terminals_[Ts]||Ts,line:hs.yylineno,loc:vs,expected:Vs})}if(Ws[0]instanceof Array&&Ws.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xs+", token: "+Ts);switch(Ws[0]){case 1:Po.push(Ts),Go.push(hs.yytext),Do.push(hs.yylloc),Po.push(Ws[1]),Ts=null,qo=hs.yyleng,Ho=hs.yytext,Yo=hs.yylineno,vs=hs.yylloc;break;case 2:if(Fs=this.productions_[Ws[1]][1],qs.$=Go[Go.length-Fs],qs._$={first_line:Do[Do.length-(Fs||1)].first_line,last_line:Do[Do.length-1].last_line,first_column:Do[Do.length-(Fs||1)].first_column,last_column:Do[Do.length-1].last_column},ks&&(qs._$.range=[Do[Do.length-(Fs||1)].range[0],Do[Do.length-1].range[1]]),Ps=this.performAction.apply(qs,[Ho,qo,Yo,gs.yy,Ws[1],Go,Do].concat(Qo)),typeof Ps<"u")return Ps;Fs&&(Po=Po.slice(0,-1*Fs*2),Go=Go.slice(0,-1*Fs),Do=Do.slice(0,-1*Fs)),Po.push(this.productions_[Ws[1]][0]),Go.push(qs.$),Do.push(qs._$),Js=Uo[Po[Po.length-2]][Po[Po.length-1]],Po.push(Js);break;case 3:return!0}}return!0}},Ro=function(){var No={EOF:1,parseError:function(Bo,Po){if(this.yy.parser)this.yy.parser.parseError(Bo,Po);else throw new Error(Bo)},setInput:function(Mo,Bo){return this.yy=Bo||this.yy||{},this._input=Mo,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Mo=this._input[0];this.yytext+=Mo,this.yyleng++,this.offset++,this.match+=Mo,this.matched+=Mo;var Bo=Mo.match(/(?:\r\n?|\n).*/g);return Bo?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Mo},unput:function(Mo){var Bo=Mo.length,Po=Mo.split(/(?:\r\n?|\n)/g);this._input=Mo+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Bo),this.offset-=Bo;var Lo=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Po.length-1&&(this.yylineno-=Po.length-1);var Go=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Po?(Po.length===Lo.length?this.yylloc.first_column:0)+Lo[Lo.length-Po.length].length-Po[0].length:this.yylloc.first_column-Bo},this.options.ranges&&(this.yylloc.range=[Go[0],Go[0]+this.yyleng-Bo]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+Vs.join(", ")+", got '"+(this.terminals_[Ts]||Ts)+"'":El="Parse error on line "+(Yo+1)+": Unexpected "+(Ts==ps?"end of input":"'"+(this.terminals_[Ts]||Ts)+"'"),this.parseError(El,{text:hs.match,token:this.terminals_[Ts]||Ts,line:hs.yylineno,loc:vs,expected:Vs})}if(Ws[0]instanceof Array&&Ws.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xs+", token: "+Ts);switch(Ws[0]){case 1:Fo.push(Ts),Go.push(hs.yytext),Do.push(hs.yylloc),Fo.push(Ws[1]),Ts=null,qo=hs.yyleng,Ho=hs.yytext,Yo=hs.yylineno,vs=hs.yylloc;break;case 2:if(Fs=this.productions_[Ws[1]][1],qs.$=Go[Go.length-Fs],qs._$={first_line:Do[Do.length-(Fs||1)].first_line,last_line:Do[Do.length-1].last_line,first_column:Do[Do.length-(Fs||1)].first_column,last_column:Do[Do.length-1].last_column},ks&&(qs._$.range=[Do[Do.length-(Fs||1)].range[0],Do[Do.length-1].range[1]]),Ps=this.performAction.apply(qs,[Ho,qo,Yo,gs.yy,Ws[1],Go,Do].concat(Qo)),typeof Ps<"u")return Ps;Fs&&(Fo=Fo.slice(0,-1*Fs*2),Go=Go.slice(0,-1*Fs),Do=Do.slice(0,-1*Fs)),Fo.push(this.productions_[Ws[1]][0]),Go.push(qs.$),Do.push(qs._$),Js=Uo[Fo[Fo.length-2]][Fo[Fo.length-1]],Fo.push(Js);break;case 3:return!0}}return!0}},Ro=function(){var No={EOF:1,parseError:function(Bo,Fo){if(this.yy.parser)this.yy.parser.parseError(Bo,Fo);else throw new Error(Bo)},setInput:function(Mo,Bo){return this.yy=Bo||this.yy||{},this._input=Mo,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Mo=this._input[0];this.yytext+=Mo,this.yyleng++,this.offset++,this.match+=Mo,this.matched+=Mo;var Bo=Mo.match(/(?:\r\n?|\n).*/g);return Bo?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Mo},unput:function(Mo){var Bo=Mo.length,Fo=Mo.split(/(?:\r\n?|\n)/g);this._input=Mo+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Bo),this.offset-=Bo;var Lo=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Fo.length-1&&(this.yylineno-=Fo.length-1);var Go=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Fo?(Fo.length===Lo.length?this.yylloc.first_column:0)+Lo[Lo.length-Fo.length].length-Fo[0].length:this.yylloc.first_column-Bo},this.options.ranges&&(this.yylloc.range=[Go[0],Go[0]+this.yyleng-Bo]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Mo){this.unput(this.match.slice(Mo))},pastInput:function(){var Mo=this.matched.substr(0,this.matched.length-this.match.length);return(Mo.length>20?"...":"")+Mo.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Mo=this.match;return Mo.length<20&&(Mo+=this._input.substr(0,20-Mo.length)),(Mo.substr(0,20)+(Mo.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Mo=this.pastInput(),Bo=new Array(Mo.length+1).join("-");return Mo+this.upcomingInput()+` -`+Bo+"^"},test_match:function(Mo,Bo){var Po,Lo,Go;if(this.options.backtrack_lexer&&(Go={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Go.yylloc.range=this.yylloc.range.slice(0))),Lo=Mo[0].match(/(?:\r\n?|\n).*/g),Lo&&(this.yylineno+=Lo.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Lo?Lo[Lo.length-1].length-Lo[Lo.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Mo[0].length},this.yytext+=Mo[0],this.match+=Mo[0],this.matches=Mo,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Mo[0].length),this.matched+=Mo[0],Po=this.performAction.call(this,this.yy,this,Bo,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Po)return Po;if(this._backtrack){for(var Do in Go)this[Do]=Go[Do];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Mo,Bo,Po,Lo;this._more||(this.yytext="",this.match="");for(var Go=this._currentRules(),Do=0;DoBo[0].length)){if(Bo=Po,Lo=Do,this.options.backtrack_lexer){if(Mo=this.test_match(Po,Go[Do]),Mo!==!1)return Mo;if(this._backtrack){Bo=!1;continue}else return!1}else if(!this.options.flex)break}return Bo?(Mo=this.test_match(Bo,Go[Lo]),Mo!==!1?Mo:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Bo=this.next();return Bo||this.lex()},begin:function(Bo){this.conditionStack.push(Bo)},popState:function(){var Bo=this.conditionStack.length-1;return Bo>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Bo){return Bo=this.conditionStack.length-1-Math.abs(Bo||0),Bo>=0?this.conditionStack[Bo]:"INITIAL"},pushState:function(Bo){this.begin(Bo)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Bo,Po,Lo,Go){switch(Lo){case 0:return 10;case 1:return Bo.getLogger().debug("Found space-block"),31;case 2:return Bo.getLogger().debug("Found nl-block"),31;case 3:return Bo.getLogger().debug("Found space-block"),29;case 4:Bo.getLogger().debug(".",Po.yytext);break;case 5:Bo.getLogger().debug("_",Po.yytext);break;case 6:return 5;case 7:return Po.yytext=-1,28;case 8:return Po.yytext=Po.yytext.replace(/columns\s+/,""),Bo.getLogger().debug("COLUMNS (LEX)",Po.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:Bo.getLogger().debug("LEX: POPPING STR:",Po.yytext),this.popState();break;case 14:return Bo.getLogger().debug("LEX: STR end:",Po.yytext),"STR";case 15:return Po.yytext=Po.yytext.replace(/space\:/,""),Bo.getLogger().debug("SPACE NUM (LEX)",Po.yytext),21;case 16:return Po.yytext="1",Bo.getLogger().debug("COLUMNS (LEX)",Po.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),Bo.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),Bo.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),Bo.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),Bo.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),Bo.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),Bo.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),Bo.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),Bo.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),Bo.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),Bo.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),Bo.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),Bo.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),Bo.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),Bo.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),Bo.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),Bo.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),Bo.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return Bo.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return Bo.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return Bo.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return Bo.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return Bo.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return Bo.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return Bo.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return Bo.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return Bo.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return Bo.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return Bo.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return Bo.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),Bo.getLogger().debug("LEX ARR START"),38;case 75:return Bo.getLogger().debug("Lex: NODE_ID",Po.yytext),32;case 76:return Bo.getLogger().debug("Lex: EOF",Po.yytext),8;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:Bo.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:Bo.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return Bo.getLogger().debug("LEX: NODE_DESCR:",Po.yytext),"NODE_DESCR";case 84:Bo.getLogger().debug("LEX POPPING"),this.popState();break;case 85:Bo.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return Po.yytext=Po.yytext.replace(/^,\s*/,""),Bo.getLogger().debug("Lex (right): dir:",Po.yytext),"DIR";case 87:return Po.yytext=Po.yytext.replace(/^,\s*/,""),Bo.getLogger().debug("Lex (left):",Po.yytext),"DIR";case 88:return Po.yytext=Po.yytext.replace(/^,\s*/,""),Bo.getLogger().debug("Lex (x):",Po.yytext),"DIR";case 89:return Po.yytext=Po.yytext.replace(/^,\s*/,""),Bo.getLogger().debug("Lex (y):",Po.yytext),"DIR";case 90:return Po.yytext=Po.yytext.replace(/^,\s*/,""),Bo.getLogger().debug("Lex (up):",Po.yytext),"DIR";case 91:return Po.yytext=Po.yytext.replace(/^,\s*/,""),Bo.getLogger().debug("Lex (down):",Po.yytext),"DIR";case 92:return Po.yytext="]>",Bo.getLogger().debug("Lex (ARROW_DIR end):",Po.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return Bo.getLogger().debug("Lex: LINK","#"+Po.yytext+"#"),15;case 94:return Bo.getLogger().debug("Lex: LINK",Po.yytext),15;case 95:return Bo.getLogger().debug("Lex: LINK",Po.yytext),15;case 96:return Bo.getLogger().debug("Lex: LINK",Po.yytext),15;case 97:return Bo.getLogger().debug("Lex: START_LINK",Po.yytext),this.pushState("LLABEL"),16;case 98:return Bo.getLogger().debug("Lex: START_LINK",Po.yytext),this.pushState("LLABEL"),16;case 99:return Bo.getLogger().debug("Lex: START_LINK",Po.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return Bo.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),Bo.getLogger().debug("Lex: LINK","#"+Po.yytext+"#"),15;case 103:return this.popState(),Bo.getLogger().debug("Lex: LINK",Po.yytext),15;case 104:return this.popState(),Bo.getLogger().debug("Lex: LINK",Po.yytext),15;case 105:return Bo.getLogger().debug("Lex: COLON",Po.yytext),Po.yytext=Po.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return No}();$o.lexer=Ro;function Oo(){this.yy={}}return Oo.prototype=$o,$o.Parser=Oo,new Oo}();parser.parser=parser;const parser$1=parser;let blockDatabase={},edgeList=[],edgeCount={};const COLOR_KEYWORD="color",FILL_KEYWORD="fill",BG_FILL="bgFill",STYLECLASS_SEP=",";let classes={};const addStyleClass=function(eo,to=""){classes[eo]===void 0&&(classes[eo]={id:eo,styles:[],textStyles:[]});const no=classes[eo];to!=null&&to.split(STYLECLASS_SEP).forEach(io=>{const so=io.replace(/([^;]*);/,"$1").trim();if(io.match(COLOR_KEYWORD)){const lo=so.replace(FILL_KEYWORD,BG_FILL).replace(COLOR_KEYWORD,FILL_KEYWORD);no.textStyles.push(lo)}no.styles.push(so)})},addStyle2Node=function(eo,to=""){const no=blockDatabase[eo];to!=null&&(no.styles=to.split(STYLECLASS_SEP))},setCssClass=function(eo,to){eo.split(",").forEach(function(no){let io=blockDatabase[no];if(io===void 0){const so=no.trim();blockDatabase[so]={id:so,type:"na",children:[]},io=blockDatabase[so]}io.classes||(io.classes=[]),io.classes.push(to)})},populateBlockDatabase=(eo,to)=>{const no=eo.flat(),io=[];for(const so of no){if(so.type==="classDef"){addStyleClass(so.id,so.css);continue}if(so.type==="applyClass"){setCssClass(so.id,(so==null?void 0:so.styleClass)||"");continue}if(so.type==="applyStyles"){so!=null&&so.stylesStr&&addStyle2Node(so.id,so==null?void 0:so.stylesStr);continue}if(so.type==="column-setting")to.columns=so.columns||-1;else if(so.type==="edge")edgeCount[so.id]?edgeCount[so.id]++:edgeCount[so.id]=1,so.id=edgeCount[so.id]+"-"+so.id,edgeList.push(so);else{so.label||(so.type==="composite"?so.label="":so.label=so.id);const ao=!blockDatabase[so.id];if(ao?blockDatabase[so.id]=so:(so.type!=="na"&&(blockDatabase[so.id].type=so.type),so.label!==so.id&&(blockDatabase[so.id].label=so.label)),so.children&&populateBlockDatabase(so.children,so),so.type==="space"){const lo=so.width||1;for(let uo=0;uo{log$1.debug("Clear called"),clear$k(),rootBlock={id:"root",type:"composite",children:[],columns:-1},blockDatabase={root:rootBlock},blocks=[],classes={},edgeList=[],edgeCount={}};function typeStr2Type(eo){switch(log$1.debug("typeStr2Type",eo),eo){case"[]":return"square";case"()":return log$1.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function edgeTypeStr2Type(eo){switch(log$1.debug("typeStr2Type",eo),eo){case"==":return"thick";default:return"normal"}}function edgeStrToEdgeData(eo){switch(eo.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}let cnt=0;const generateId=()=>(cnt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+cnt),setHierarchy=eo=>{rootBlock.children=eo,populateBlockDatabase(eo,rootBlock),blocks=rootBlock.children},getColumns=eo=>{const to=blockDatabase[eo];return to?to.columns?to.columns:to.children?to.children.length:-1:-1},getBlocksFlat=()=>[...Object.values(blockDatabase)],getBlocks=()=>blocks||[],getEdges=()=>edgeList,getBlock=eo=>blockDatabase[eo],setBlock=eo=>{blockDatabase[eo.id]=eo},getLogger=()=>console,getClasses$1=function(){return classes},db={getConfig:()=>getConfig$1$1().block,typeStr2Type,edgeTypeStr2Type,edgeStrToEdgeData,getLogger,getBlocksFlat,getBlocks,getEdges,setHierarchy,getBlock,setBlock,getColumns,getClasses:getClasses$1,clear,generateId},db$1=db,fade=(eo,to)=>{const no=channel$1,io=no(eo,"r"),so=no(eo,"g"),ao=no(eo,"b");return rgba$2(io,so,ao,to)},getStyles=eo=>`.label { +`+Bo+"^"},test_match:function(Mo,Bo){var Fo,Lo,Go;if(this.options.backtrack_lexer&&(Go={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Go.yylloc.range=this.yylloc.range.slice(0))),Lo=Mo[0].match(/(?:\r\n?|\n).*/g),Lo&&(this.yylineno+=Lo.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Lo?Lo[Lo.length-1].length-Lo[Lo.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Mo[0].length},this.yytext+=Mo[0],this.match+=Mo[0],this.matches=Mo,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Mo[0].length),this.matched+=Mo[0],Fo=this.performAction.call(this,this.yy,this,Bo,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Fo)return Fo;if(this._backtrack){for(var Do in Go)this[Do]=Go[Do];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Mo,Bo,Fo,Lo;this._more||(this.yytext="",this.match="");for(var Go=this._currentRules(),Do=0;DoBo[0].length)){if(Bo=Fo,Lo=Do,this.options.backtrack_lexer){if(Mo=this.test_match(Fo,Go[Do]),Mo!==!1)return Mo;if(this._backtrack){Bo=!1;continue}else return!1}else if(!this.options.flex)break}return Bo?(Mo=this.test_match(Bo,Go[Lo]),Mo!==!1?Mo:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Bo=this.next();return Bo||this.lex()},begin:function(Bo){this.conditionStack.push(Bo)},popState:function(){var Bo=this.conditionStack.length-1;return Bo>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Bo){return Bo=this.conditionStack.length-1-Math.abs(Bo||0),Bo>=0?this.conditionStack[Bo]:"INITIAL"},pushState:function(Bo){this.begin(Bo)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Bo,Fo,Lo,Go){switch(Lo){case 0:return 10;case 1:return Bo.getLogger().debug("Found space-block"),31;case 2:return Bo.getLogger().debug("Found nl-block"),31;case 3:return Bo.getLogger().debug("Found space-block"),29;case 4:Bo.getLogger().debug(".",Fo.yytext);break;case 5:Bo.getLogger().debug("_",Fo.yytext);break;case 6:return 5;case 7:return Fo.yytext=-1,28;case 8:return Fo.yytext=Fo.yytext.replace(/columns\s+/,""),Bo.getLogger().debug("COLUMNS (LEX)",Fo.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:Bo.getLogger().debug("LEX: POPPING STR:",Fo.yytext),this.popState();break;case 14:return Bo.getLogger().debug("LEX: STR end:",Fo.yytext),"STR";case 15:return Fo.yytext=Fo.yytext.replace(/space\:/,""),Bo.getLogger().debug("SPACE NUM (LEX)",Fo.yytext),21;case 16:return Fo.yytext="1",Bo.getLogger().debug("COLUMNS (LEX)",Fo.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),Bo.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),Bo.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),Bo.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),Bo.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),Bo.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),Bo.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),Bo.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),Bo.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),Bo.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),Bo.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),Bo.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),Bo.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),Bo.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),Bo.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),Bo.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),Bo.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),Bo.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return Bo.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return Bo.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return Bo.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return Bo.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return Bo.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return Bo.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return Bo.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return Bo.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return Bo.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return Bo.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return Bo.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return Bo.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),Bo.getLogger().debug("LEX ARR START"),38;case 75:return Bo.getLogger().debug("Lex: NODE_ID",Fo.yytext),32;case 76:return Bo.getLogger().debug("Lex: EOF",Fo.yytext),8;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:Bo.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:Bo.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return Bo.getLogger().debug("LEX: NODE_DESCR:",Fo.yytext),"NODE_DESCR";case 84:Bo.getLogger().debug("LEX POPPING"),this.popState();break;case 85:Bo.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return Fo.yytext=Fo.yytext.replace(/^,\s*/,""),Bo.getLogger().debug("Lex (right): dir:",Fo.yytext),"DIR";case 87:return Fo.yytext=Fo.yytext.replace(/^,\s*/,""),Bo.getLogger().debug("Lex (left):",Fo.yytext),"DIR";case 88:return Fo.yytext=Fo.yytext.replace(/^,\s*/,""),Bo.getLogger().debug("Lex (x):",Fo.yytext),"DIR";case 89:return Fo.yytext=Fo.yytext.replace(/^,\s*/,""),Bo.getLogger().debug("Lex (y):",Fo.yytext),"DIR";case 90:return Fo.yytext=Fo.yytext.replace(/^,\s*/,""),Bo.getLogger().debug("Lex (up):",Fo.yytext),"DIR";case 91:return Fo.yytext=Fo.yytext.replace(/^,\s*/,""),Bo.getLogger().debug("Lex (down):",Fo.yytext),"DIR";case 92:return Fo.yytext="]>",Bo.getLogger().debug("Lex (ARROW_DIR end):",Fo.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return Bo.getLogger().debug("Lex: LINK","#"+Fo.yytext+"#"),15;case 94:return Bo.getLogger().debug("Lex: LINK",Fo.yytext),15;case 95:return Bo.getLogger().debug("Lex: LINK",Fo.yytext),15;case 96:return Bo.getLogger().debug("Lex: LINK",Fo.yytext),15;case 97:return Bo.getLogger().debug("Lex: START_LINK",Fo.yytext),this.pushState("LLABEL"),16;case 98:return Bo.getLogger().debug("Lex: START_LINK",Fo.yytext),this.pushState("LLABEL"),16;case 99:return Bo.getLogger().debug("Lex: START_LINK",Fo.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return Bo.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),Bo.getLogger().debug("Lex: LINK","#"+Fo.yytext+"#"),15;case 103:return this.popState(),Bo.getLogger().debug("Lex: LINK",Fo.yytext),15;case 104:return this.popState(),Bo.getLogger().debug("Lex: LINK",Fo.yytext),15;case 105:return Bo.getLogger().debug("Lex: COLON",Fo.yytext),Fo.yytext=Fo.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return No}();$o.lexer=Ro;function Oo(){this.yy={}}return Oo.prototype=$o,$o.Parser=Oo,new Oo}();parser.parser=parser;const parser$1=parser;let blockDatabase={},edgeList=[],edgeCount={};const COLOR_KEYWORD="color",FILL_KEYWORD="fill",BG_FILL="bgFill",STYLECLASS_SEP=",";let classes={};const addStyleClass=function(eo,to=""){classes[eo]===void 0&&(classes[eo]={id:eo,styles:[],textStyles:[]});const no=classes[eo];to!=null&&to.split(STYLECLASS_SEP).forEach(io=>{const so=io.replace(/([^;]*);/,"$1").trim();if(io.match(COLOR_KEYWORD)){const lo=so.replace(FILL_KEYWORD,BG_FILL).replace(COLOR_KEYWORD,FILL_KEYWORD);no.textStyles.push(lo)}no.styles.push(so)})},addStyle2Node=function(eo,to=""){const no=blockDatabase[eo];to!=null&&(no.styles=to.split(STYLECLASS_SEP))},setCssClass=function(eo,to){eo.split(",").forEach(function(no){let io=blockDatabase[no];if(io===void 0){const so=no.trim();blockDatabase[so]={id:so,type:"na",children:[]},io=blockDatabase[so]}io.classes||(io.classes=[]),io.classes.push(to)})},populateBlockDatabase=(eo,to)=>{const no=eo.flat(),io=[];for(const so of no){if(so.type==="classDef"){addStyleClass(so.id,so.css);continue}if(so.type==="applyClass"){setCssClass(so.id,(so==null?void 0:so.styleClass)||"");continue}if(so.type==="applyStyles"){so!=null&&so.stylesStr&&addStyle2Node(so.id,so==null?void 0:so.stylesStr);continue}if(so.type==="column-setting")to.columns=so.columns||-1;else if(so.type==="edge")edgeCount[so.id]?edgeCount[so.id]++:edgeCount[so.id]=1,so.id=edgeCount[so.id]+"-"+so.id,edgeList.push(so);else{so.label||(so.type==="composite"?so.label="":so.label=so.id);const ao=!blockDatabase[so.id];if(ao?blockDatabase[so.id]=so:(so.type!=="na"&&(blockDatabase[so.id].type=so.type),so.label!==so.id&&(blockDatabase[so.id].label=so.label)),so.children&&populateBlockDatabase(so.children,so),so.type==="space"){const lo=so.width||1;for(let uo=0;uo{log$1.debug("Clear called"),clear$k(),rootBlock={id:"root",type:"composite",children:[],columns:-1},blockDatabase={root:rootBlock},blocks=[],classes={},edgeList=[],edgeCount={}};function typeStr2Type(eo){switch(log$1.debug("typeStr2Type",eo),eo){case"[]":return"square";case"()":return log$1.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function edgeTypeStr2Type(eo){switch(log$1.debug("typeStr2Type",eo),eo){case"==":return"thick";default:return"normal"}}function edgeStrToEdgeData(eo){switch(eo.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}let cnt=0;const generateId=()=>(cnt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+cnt),setHierarchy=eo=>{rootBlock.children=eo,populateBlockDatabase(eo,rootBlock),blocks=rootBlock.children},getColumns=eo=>{const to=blockDatabase[eo];return to?to.columns?to.columns:to.children?to.children.length:-1:-1},getBlocksFlat=()=>[...Object.values(blockDatabase)],getBlocks=()=>blocks||[],getEdges=()=>edgeList,getBlock=eo=>blockDatabase[eo],setBlock=eo=>{blockDatabase[eo.id]=eo},getLogger=()=>console,getClasses$1=function(){return classes},db={getConfig:()=>getConfig$1$1().block,typeStr2Type,edgeTypeStr2Type,edgeStrToEdgeData,getLogger,getBlocksFlat,getBlocks,getEdges,setHierarchy,getBlock,setBlock,getColumns,getClasses:getClasses$1,clear,generateId},db$1=db,fade=(eo,to)=>{const no=channel$1,io=no(eo,"r"),so=no(eo,"g"),ao=no(eo,"b");return rgba$2(io,so,ao,to)},getStyles=eo=>`.label { font-family: ${eo.fontFamily}; color: ${eo.nodeTextColor||eo.textColor}; } @@ -3962,7 +3962,7 @@ Expecting `+Vs.join(", ")+", got '"+(this.terminals_[Ts]||Ts)+"'":El="Parse erro font-size: 18px; fill: ${eo.textColor}; } -`,flowStyles=getStyles;function getNodeFromBlock(eo,to,no=!1){var io,so,ao;const lo=eo;let uo="default";(((io=lo==null?void 0:lo.classes)==null?void 0:io.length)||0)>0&&(uo=((lo==null?void 0:lo.classes)||[]).join(" ")),uo=uo+" flowchart-label";let ho=0,go="",mo;switch(lo.type){case"round":ho=5,go="rect";break;case"composite":ho=0,go="composite",mo=0;break;case"square":go="rect";break;case"diamond":go="question";break;case"hexagon":go="hexagon";break;case"block_arrow":go="block_arrow";break;case"odd":go="rect_left_inv_arrow";break;case"lean_right":go="lean_right";break;case"lean_left":go="lean_left";break;case"trapezoid":go="trapezoid";break;case"inv_trapezoid":go="inv_trapezoid";break;case"rect_left_inv_arrow":go="rect_left_inv_arrow";break;case"circle":go="circle";break;case"ellipse":go="ellipse";break;case"stadium":go="stadium";break;case"subroutine":go="subroutine";break;case"cylinder":go="cylinder";break;case"group":go="rect";break;case"doublecircle":go="doublecircle";break;default:go="rect"}const yo=getStylesFromArray((lo==null?void 0:lo.styles)||[]),So=lo.label,_o=lo.size||{width:0,height:0,x:0,y:0};return{labelStyle:yo.labelStyle,shape:go,labelText:So,rx:ho,ry:ho,class:uo,style:yo.style,id:lo.id,directions:lo.directions,width:_o.width,height:_o.height,x:_o.x,y:_o.y,positioned:no,intersect:void 0,type:lo.type,padding:mo??(((ao=(so=getConfig$1$1())==null?void 0:so.block)==null?void 0:ao.padding)||0)}}async function calculateBlockSize(eo,to,no){const io=getNodeFromBlock(to,no,!1);if(io.type==="group")return;const so=await insertNode(eo,io),ao=so.node().getBBox(),lo=no.getBlock(io.id);lo.size={width:ao.width,height:ao.height,x:0,y:0,node:so},no.setBlock(lo),so.remove()}async function insertBlockPositioned(eo,to,no){const io=getNodeFromBlock(to,no,!0);no.getBlock(io.id).type!=="space"&&(await insertNode(eo,io),to.intersect=io==null?void 0:io.intersect,positionNode$1(io))}async function performOperations(eo,to,no,io){for(const so of to)await io(eo,so,no),so.children&&await performOperations(eo,so.children,no,io)}async function calculateBlockSizes(eo,to,no){await performOperations(eo,to,no,calculateBlockSize)}async function insertBlocks(eo,to,no){await performOperations(eo,to,no,insertBlockPositioned)}async function insertEdges(eo,to,no,io,so){const ao=new Graph({multigraph:!0,compound:!0});ao.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const lo of no)lo.size&&ao.setNode(lo.id,{width:lo.size.width,height:lo.size.height,intersect:lo.intersect});for(const lo of to)if(lo.start&&lo.end){const uo=io.getBlock(lo.start),ho=io.getBlock(lo.end);if(uo!=null&&uo.size&&(ho!=null&&ho.size)){const go=uo.size,mo=ho.size,yo=[{x:go.x,y:go.y},{x:go.x+(mo.x-go.x)/2,y:go.y+(mo.y-go.y)/2},{x:mo.x,y:mo.y}];await insertEdge$1(eo,{v:lo.start,w:lo.end,name:lo.id},{...lo,arrowTypeEnd:lo.arrowTypeEnd,arrowTypeStart:lo.arrowTypeStart,points:yo,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",ao,so),lo.label&&(await insertEdgeLabel(eo,{...lo,label:lo.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:lo.arrowTypeEnd,arrowTypeStart:lo.arrowTypeStart,points:yo,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),await positionEdgeLabel({...lo,x:yo[1].x,y:yo[1].y},{originalPath:yo}))}}}const padding=((_b=(_a=getConfig$2())==null?void 0:_a.block)==null?void 0:_b.padding)||8;function calculateBlockPosition(eo,to){if(eo===0||!Number.isInteger(eo))throw new Error("Columns must be an integer !== 0.");if(to<0||!Number.isInteger(to))throw new Error("Position must be a non-negative integer."+to);if(eo<0)return{px:to,py:0};if(eo===1)return{px:0,py:to};const no=to%eo,io=Math.floor(to/eo);return{px:no,py:io}}const getMaxChildSize=eo=>{let to=0,no=0;for(const io of eo.children){const{width:so,height:ao,x:lo,y:uo}=io.size||{width:0,height:0,x:0,y:0};log$1.debug("getMaxChildSize abc95 child:",io.id,"width:",so,"height:",ao,"x:",lo,"y:",uo,io.type),io.type!=="space"&&(so>to&&(to=so/(eo.widthInColumns||1)),ao>no&&(no=ao))}return{width:to,height:no}};function setBlockSizes(eo,to,no=0,io=0){var so,ao,lo,uo,ho,go,mo,yo,So,_o,ko;log$1.debug("setBlockSizes abc95 (start)",eo.id,(so=eo==null?void 0:eo.size)==null?void 0:so.x,"block width =",eo==null?void 0:eo.size,"sieblingWidth",no),(ao=eo==null?void 0:eo.size)!=null&&ao.width||(eo.size={width:no,height:io,x:0,y:0});let Co=0,$o=0;if(((lo=eo.children)==null?void 0:lo.length)>0){for(const Go of eo.children)setBlockSizes(Go,to);const Ro=getMaxChildSize(eo);Co=Ro.width,$o=Ro.height,log$1.debug("setBlockSizes abc95 maxWidth of",eo.id,":s children is ",Co,$o);for(const Go of eo.children)Go.size&&(log$1.debug(`abc95 Setting size of children of ${eo.id} id=${Go.id} ${Co} ${$o} ${Go.size}`),Go.size.width=Co*(Go.widthInColumns||1)+padding*((Go.widthInColumns||1)-1),Go.size.height=$o,Go.size.x=0,Go.size.y=0,log$1.debug(`abc95 updating size of ${eo.id} children child:${Go.id} maxWidth:${Co} maxHeight:${$o}`));for(const Go of eo.children)setBlockSizes(Go,to,Co,$o);const Oo=eo.columns||-1;let No=0;for(const Go of eo.children)No+=Go.widthInColumns||1;let Mo=eo.children.length;Oo>0&&Oo0?Math.min(eo.children.length,Oo):eo.children.length;if(Go>0){const Do=(Po-Go*padding-padding)/Go;log$1.debug("abc95 (growing to fit) width",eo.id,Po,(mo=eo.size)==null?void 0:mo.width,Do);for(const Uo of eo.children)Uo.size&&(Uo.size.width=Do)}}eo.size={width:Po,height:Lo,x:0,y:0}}log$1.debug("setBlockSizes abc94 (done)",eo.id,(yo=eo==null?void 0:eo.size)==null?void 0:yo.x,(So=eo==null?void 0:eo.size)==null?void 0:So.width,(_o=eo==null?void 0:eo.size)==null?void 0:_o.y,(ko=eo==null?void 0:eo.size)==null?void 0:ko.height)}function layoutBlocks(eo,to){var no,io,so,ao,lo,uo,ho,go,mo,yo,So,_o,ko,Co,$o,Ro,Oo;log$1.debug(`abc85 layout blocks (=>layoutBlocks) ${eo.id} x: ${(no=eo==null?void 0:eo.size)==null?void 0:no.x} y: ${(io=eo==null?void 0:eo.size)==null?void 0:io.y} width: ${(so=eo==null?void 0:eo.size)==null?void 0:so.width}`);const No=eo.columns||-1;if(log$1.debug("layoutBlocks columns abc95",eo.id,"=>",No,eo),eo.children&&eo.children.length>0){const Mo=((lo=(ao=eo==null?void 0:eo.children[0])==null?void 0:ao.size)==null?void 0:lo.width)||0,Bo=eo.children.length*Mo+(eo.children.length-1)*padding;log$1.debug("widthOfChildren 88",Bo,"posX");let Po=0;log$1.debug("abc91 block?.size?.x",eo.id,(uo=eo==null?void 0:eo.size)==null?void 0:uo.x);let Lo=(ho=eo==null?void 0:eo.size)!=null&&ho.x?((go=eo==null?void 0:eo.size)==null?void 0:go.x)+(-((mo=eo==null?void 0:eo.size)==null?void 0:mo.width)/2||0):-padding,Go=0;for(const Do of eo.children){const Uo=eo;if(!Do.size)continue;const{width:Ho,height:Yo}=Do.size,{px:qo,py:Jo}=calculateBlockPosition(No,Po);if(Jo!=Go&&(Go=Jo,Lo=(yo=eo==null?void 0:eo.size)!=null&&yo.x?((So=eo==null?void 0:eo.size)==null?void 0:So.x)+(-((_o=eo==null?void 0:eo.size)==null?void 0:_o.width)/2||0):-padding,log$1.debug("New row in layout for block",eo.id," and child ",Do.id,Go)),log$1.debug(`abc89 layout blocks (child) id: ${Do.id} Pos: ${Po} (px, py) ${qo},${Jo} (${(ko=Uo==null?void 0:Uo.size)==null?void 0:ko.x},${(Co=Uo==null?void 0:Uo.size)==null?void 0:Co.y}) parent: ${Uo.id} width: ${Ho}${padding}`),Uo.size){const ps=Ho/2;Do.size.x=Lo+padding+ps,log$1.debug(`abc91 layout blocks (calc) px, pyid:${Do.id} startingPos=X${Lo} new startingPosX${Do.size.x} ${ps} padding=${padding} width=${Ho} halfWidth=${ps} => x:${Do.size.x} y:${Do.size.y} ${Do.widthInColumns} (width * (child?.w || 1)) / 2 ${Ho*((Do==null?void 0:Do.widthInColumns)||1)/2}`),Lo=Do.size.x+ps,Do.size.y=Uo.size.y-Uo.size.height/2+Jo*(Yo+padding)+Yo/2+padding,log$1.debug(`abc88 layout blocks (calc) px, pyid:${Do.id}startingPosX${Lo}${padding}${ps}=>x:${Do.size.x}y:${Do.size.y}${Do.widthInColumns}(width * (child?.w || 1)) / 2${Ho*((Do==null?void 0:Do.widthInColumns)||1)/2}`)}Do.children&&layoutBlocks(Do),Po+=(Do==null?void 0:Do.widthInColumns)||1,log$1.debug("abc88 columnsPos",Do,Po)}}log$1.debug(`layout blocks (<==layoutBlocks) ${eo.id} x: ${($o=eo==null?void 0:eo.size)==null?void 0:$o.x} y: ${(Ro=eo==null?void 0:eo.size)==null?void 0:Ro.y} width: ${(Oo=eo==null?void 0:eo.size)==null?void 0:Oo.width}`)}function findBounds(eo,{minX:to,minY:no,maxX:io,maxY:so}={minX:0,minY:0,maxX:0,maxY:0}){if(eo.size&&eo.id!=="root"){const{x:ao,y:lo,width:uo,height:ho}=eo.size;ao-uo/2io&&(io=ao+uo/2),lo+ho/2>so&&(so=lo+ho/2)}if(eo.children)for(const ao of eo.children)({minX:to,minY:no,maxX:io,maxY:so}=findBounds(ao,{minX:to,minY:no,maxX:io,maxY:so}));return{minX:to,minY:no,maxX:io,maxY:so}}function layout(eo){const to=eo.getBlock("root");if(!to)return;setBlockSizes(to,eo,0,0),layoutBlocks(to),log$1.debug("getBlocks",JSON.stringify(to,null,2));const{minX:no,minY:io,maxX:so,maxY:ao}=findBounds(to),lo=ao-io,uo=so-no;return{x:no,y:io,width:uo,height:lo}}const getClasses=function(eo,to){return to.db.getClasses()},draw=async function(eo,to,no,io){const{securityLevel:so,block:ao}=getConfig$1$1(),lo=io.db;let uo;so==="sandbox"&&(uo=select("#i"+to));const ho=select(so==="sandbox"?uo.nodes()[0].contentDocument.body:"body"),go=so==="sandbox"?ho.select(`[id="${to}"]`):select(`[id="${to}"]`);insertMarkers$1$1(go,["point","circle","cross"],io.type,to);const yo=lo.getBlocks(),So=lo.getBlocksFlat(),_o=lo.getEdges(),ko=go.insert("g").attr("class","block");await calculateBlockSizes(ko,yo,lo);const Co=layout(lo);if(await insertBlocks(ko,yo,lo),await insertEdges(ko,_o,So,lo,to),Co){const $o=Co,Ro=Math.max(1,Math.round(.125*($o.width/$o.height))),Oo=$o.height+Ro+10,No=$o.width+10,{useMaxWidth:Mo}=ao;configureSvgSize(go,Oo,No,!!Mo),log$1.debug("Here Bounds",Co,$o),go.attr("viewBox",`${$o.x-5} ${$o.y-5} ${$o.width+10} ${$o.height+10}`)}ordinal(schemeTableau10)},renderer={draw,getClasses},diagram={parser:parser$1,db:db$1,renderer,styles:flowStyles},blockDiagram91b80b7a=Object.freeze(Object.defineProperty({__proto__:null,diagram},Symbol.toStringTag,{value:"Module"}))});export default QXt(); +`,flowStyles=getStyles;function getNodeFromBlock(eo,to,no=!1){var io,so,ao;const lo=eo;let uo="default";(((io=lo==null?void 0:lo.classes)==null?void 0:io.length)||0)>0&&(uo=((lo==null?void 0:lo.classes)||[]).join(" ")),uo=uo+" flowchart-label";let ho=0,go="",mo;switch(lo.type){case"round":ho=5,go="rect";break;case"composite":ho=0,go="composite",mo=0;break;case"square":go="rect";break;case"diamond":go="question";break;case"hexagon":go="hexagon";break;case"block_arrow":go="block_arrow";break;case"odd":go="rect_left_inv_arrow";break;case"lean_right":go="lean_right";break;case"lean_left":go="lean_left";break;case"trapezoid":go="trapezoid";break;case"inv_trapezoid":go="inv_trapezoid";break;case"rect_left_inv_arrow":go="rect_left_inv_arrow";break;case"circle":go="circle";break;case"ellipse":go="ellipse";break;case"stadium":go="stadium";break;case"subroutine":go="subroutine";break;case"cylinder":go="cylinder";break;case"group":go="rect";break;case"doublecircle":go="doublecircle";break;default:go="rect"}const yo=getStylesFromArray((lo==null?void 0:lo.styles)||[]),So=lo.label,_o=lo.size||{width:0,height:0,x:0,y:0};return{labelStyle:yo.labelStyle,shape:go,labelText:So,rx:ho,ry:ho,class:uo,style:yo.style,id:lo.id,directions:lo.directions,width:_o.width,height:_o.height,x:_o.x,y:_o.y,positioned:no,intersect:void 0,type:lo.type,padding:mo??(((ao=(so=getConfig$1$1())==null?void 0:so.block)==null?void 0:ao.padding)||0)}}async function calculateBlockSize(eo,to,no){const io=getNodeFromBlock(to,no,!1);if(io.type==="group")return;const so=await insertNode(eo,io),ao=so.node().getBBox(),lo=no.getBlock(io.id);lo.size={width:ao.width,height:ao.height,x:0,y:0,node:so},no.setBlock(lo),so.remove()}async function insertBlockPositioned(eo,to,no){const io=getNodeFromBlock(to,no,!0);no.getBlock(io.id).type!=="space"&&(await insertNode(eo,io),to.intersect=io==null?void 0:io.intersect,positionNode$1(io))}async function performOperations(eo,to,no,io){for(const so of to)await io(eo,so,no),so.children&&await performOperations(eo,so.children,no,io)}async function calculateBlockSizes(eo,to,no){await performOperations(eo,to,no,calculateBlockSize)}async function insertBlocks(eo,to,no){await performOperations(eo,to,no,insertBlockPositioned)}async function insertEdges(eo,to,no,io,so){const ao=new Graph({multigraph:!0,compound:!0});ao.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const lo of no)lo.size&&ao.setNode(lo.id,{width:lo.size.width,height:lo.size.height,intersect:lo.intersect});for(const lo of to)if(lo.start&&lo.end){const uo=io.getBlock(lo.start),ho=io.getBlock(lo.end);if(uo!=null&&uo.size&&(ho!=null&&ho.size)){const go=uo.size,mo=ho.size,yo=[{x:go.x,y:go.y},{x:go.x+(mo.x-go.x)/2,y:go.y+(mo.y-go.y)/2},{x:mo.x,y:mo.y}];await insertEdge$1(eo,{v:lo.start,w:lo.end,name:lo.id},{...lo,arrowTypeEnd:lo.arrowTypeEnd,arrowTypeStart:lo.arrowTypeStart,points:yo,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",ao,so),lo.label&&(await insertEdgeLabel(eo,{...lo,label:lo.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:lo.arrowTypeEnd,arrowTypeStart:lo.arrowTypeStart,points:yo,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),await positionEdgeLabel({...lo,x:yo[1].x,y:yo[1].y},{originalPath:yo}))}}}const padding=((_b=(_a=getConfig$2())==null?void 0:_a.block)==null?void 0:_b.padding)||8;function calculateBlockPosition(eo,to){if(eo===0||!Number.isInteger(eo))throw new Error("Columns must be an integer !== 0.");if(to<0||!Number.isInteger(to))throw new Error("Position must be a non-negative integer."+to);if(eo<0)return{px:to,py:0};if(eo===1)return{px:0,py:to};const no=to%eo,io=Math.floor(to/eo);return{px:no,py:io}}const getMaxChildSize=eo=>{let to=0,no=0;for(const io of eo.children){const{width:so,height:ao,x:lo,y:uo}=io.size||{width:0,height:0,x:0,y:0};log$1.debug("getMaxChildSize abc95 child:",io.id,"width:",so,"height:",ao,"x:",lo,"y:",uo,io.type),io.type!=="space"&&(so>to&&(to=so/(eo.widthInColumns||1)),ao>no&&(no=ao))}return{width:to,height:no}};function setBlockSizes(eo,to,no=0,io=0){var so,ao,lo,uo,ho,go,mo,yo,So,_o,ko;log$1.debug("setBlockSizes abc95 (start)",eo.id,(so=eo==null?void 0:eo.size)==null?void 0:so.x,"block width =",eo==null?void 0:eo.size,"sieblingWidth",no),(ao=eo==null?void 0:eo.size)!=null&&ao.width||(eo.size={width:no,height:io,x:0,y:0});let Co=0,$o=0;if(((lo=eo.children)==null?void 0:lo.length)>0){for(const Go of eo.children)setBlockSizes(Go,to);const Ro=getMaxChildSize(eo);Co=Ro.width,$o=Ro.height,log$1.debug("setBlockSizes abc95 maxWidth of",eo.id,":s children is ",Co,$o);for(const Go of eo.children)Go.size&&(log$1.debug(`abc95 Setting size of children of ${eo.id} id=${Go.id} ${Co} ${$o} ${Go.size}`),Go.size.width=Co*(Go.widthInColumns||1)+padding*((Go.widthInColumns||1)-1),Go.size.height=$o,Go.size.x=0,Go.size.y=0,log$1.debug(`abc95 updating size of ${eo.id} children child:${Go.id} maxWidth:${Co} maxHeight:${$o}`));for(const Go of eo.children)setBlockSizes(Go,to,Co,$o);const Oo=eo.columns||-1;let No=0;for(const Go of eo.children)No+=Go.widthInColumns||1;let Mo=eo.children.length;Oo>0&&Oo0?Math.min(eo.children.length,Oo):eo.children.length;if(Go>0){const Do=(Fo-Go*padding-padding)/Go;log$1.debug("abc95 (growing to fit) width",eo.id,Fo,(mo=eo.size)==null?void 0:mo.width,Do);for(const Uo of eo.children)Uo.size&&(Uo.size.width=Do)}}eo.size={width:Fo,height:Lo,x:0,y:0}}log$1.debug("setBlockSizes abc94 (done)",eo.id,(yo=eo==null?void 0:eo.size)==null?void 0:yo.x,(So=eo==null?void 0:eo.size)==null?void 0:So.width,(_o=eo==null?void 0:eo.size)==null?void 0:_o.y,(ko=eo==null?void 0:eo.size)==null?void 0:ko.height)}function layoutBlocks(eo,to){var no,io,so,ao,lo,uo,ho,go,mo,yo,So,_o,ko,Co,$o,Ro,Oo;log$1.debug(`abc85 layout blocks (=>layoutBlocks) ${eo.id} x: ${(no=eo==null?void 0:eo.size)==null?void 0:no.x} y: ${(io=eo==null?void 0:eo.size)==null?void 0:io.y} width: ${(so=eo==null?void 0:eo.size)==null?void 0:so.width}`);const No=eo.columns||-1;if(log$1.debug("layoutBlocks columns abc95",eo.id,"=>",No,eo),eo.children&&eo.children.length>0){const Mo=((lo=(ao=eo==null?void 0:eo.children[0])==null?void 0:ao.size)==null?void 0:lo.width)||0,Bo=eo.children.length*Mo+(eo.children.length-1)*padding;log$1.debug("widthOfChildren 88",Bo,"posX");let Fo=0;log$1.debug("abc91 block?.size?.x",eo.id,(uo=eo==null?void 0:eo.size)==null?void 0:uo.x);let Lo=(ho=eo==null?void 0:eo.size)!=null&&ho.x?((go=eo==null?void 0:eo.size)==null?void 0:go.x)+(-((mo=eo==null?void 0:eo.size)==null?void 0:mo.width)/2||0):-padding,Go=0;for(const Do of eo.children){const Uo=eo;if(!Do.size)continue;const{width:Ho,height:Yo}=Do.size,{px:qo,py:Jo}=calculateBlockPosition(No,Fo);if(Jo!=Go&&(Go=Jo,Lo=(yo=eo==null?void 0:eo.size)!=null&&yo.x?((So=eo==null?void 0:eo.size)==null?void 0:So.x)+(-((_o=eo==null?void 0:eo.size)==null?void 0:_o.width)/2||0):-padding,log$1.debug("New row in layout for block",eo.id," and child ",Do.id,Go)),log$1.debug(`abc89 layout blocks (child) id: ${Do.id} Pos: ${Fo} (px, py) ${qo},${Jo} (${(ko=Uo==null?void 0:Uo.size)==null?void 0:ko.x},${(Co=Uo==null?void 0:Uo.size)==null?void 0:Co.y}) parent: ${Uo.id} width: ${Ho}${padding}`),Uo.size){const ps=Ho/2;Do.size.x=Lo+padding+ps,log$1.debug(`abc91 layout blocks (calc) px, pyid:${Do.id} startingPos=X${Lo} new startingPosX${Do.size.x} ${ps} padding=${padding} width=${Ho} halfWidth=${ps} => x:${Do.size.x} y:${Do.size.y} ${Do.widthInColumns} (width * (child?.w || 1)) / 2 ${Ho*((Do==null?void 0:Do.widthInColumns)||1)/2}`),Lo=Do.size.x+ps,Do.size.y=Uo.size.y-Uo.size.height/2+Jo*(Yo+padding)+Yo/2+padding,log$1.debug(`abc88 layout blocks (calc) px, pyid:${Do.id}startingPosX${Lo}${padding}${ps}=>x:${Do.size.x}y:${Do.size.y}${Do.widthInColumns}(width * (child?.w || 1)) / 2${Ho*((Do==null?void 0:Do.widthInColumns)||1)/2}`)}Do.children&&layoutBlocks(Do),Fo+=(Do==null?void 0:Do.widthInColumns)||1,log$1.debug("abc88 columnsPos",Do,Fo)}}log$1.debug(`layout blocks (<==layoutBlocks) ${eo.id} x: ${($o=eo==null?void 0:eo.size)==null?void 0:$o.x} y: ${(Ro=eo==null?void 0:eo.size)==null?void 0:Ro.y} width: ${(Oo=eo==null?void 0:eo.size)==null?void 0:Oo.width}`)}function findBounds(eo,{minX:to,minY:no,maxX:io,maxY:so}={minX:0,minY:0,maxX:0,maxY:0}){if(eo.size&&eo.id!=="root"){const{x:ao,y:lo,width:uo,height:ho}=eo.size;ao-uo/2io&&(io=ao+uo/2),lo+ho/2>so&&(so=lo+ho/2)}if(eo.children)for(const ao of eo.children)({minX:to,minY:no,maxX:io,maxY:so}=findBounds(ao,{minX:to,minY:no,maxX:io,maxY:so}));return{minX:to,minY:no,maxX:io,maxY:so}}function layout(eo){const to=eo.getBlock("root");if(!to)return;setBlockSizes(to,eo,0,0),layoutBlocks(to),log$1.debug("getBlocks",JSON.stringify(to,null,2));const{minX:no,minY:io,maxX:so,maxY:ao}=findBounds(to),lo=ao-io,uo=so-no;return{x:no,y:io,width:uo,height:lo}}const getClasses=function(eo,to){return to.db.getClasses()},draw=async function(eo,to,no,io){const{securityLevel:so,block:ao}=getConfig$1$1(),lo=io.db;let uo;so==="sandbox"&&(uo=select("#i"+to));const ho=select(so==="sandbox"?uo.nodes()[0].contentDocument.body:"body"),go=so==="sandbox"?ho.select(`[id="${to}"]`):select(`[id="${to}"]`);insertMarkers$1$1(go,["point","circle","cross"],io.type,to);const yo=lo.getBlocks(),So=lo.getBlocksFlat(),_o=lo.getEdges(),ko=go.insert("g").attr("class","block");await calculateBlockSizes(ko,yo,lo);const Co=layout(lo);if(await insertBlocks(ko,yo,lo),await insertEdges(ko,_o,So,lo,to),Co){const $o=Co,Ro=Math.max(1,Math.round(.125*($o.width/$o.height))),Oo=$o.height+Ro+10,No=$o.width+10,{useMaxWidth:Mo}=ao;configureSvgSize(go,Oo,No,!!Mo),log$1.debug("Here Bounds",Co,$o),go.attr("viewBox",`${$o.x-5} ${$o.y-5} ${$o.width+10} ${$o.height+10}`)}ordinal(schemeTableau10)},renderer={draw,getClasses},diagram={parser:parser$1,db:db$1,renderer,styles:flowStyles},blockDiagram91b80b7a=Object.freeze(Object.defineProperty({__proto__:null,diagram},Symbol.toStringTag,{value:"Module"}))});export default QXt(); function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = [] diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/trace/index.html b/src/promptflow-devkit/promptflow/_sdk/_service/static/trace/index.html index ceb438b8723..05e7ea0411a 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_service/static/trace/index.html +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/trace/index.html @@ -1,16 +1,16 @@ - - - - - - - - - Trace View - + + + + + + + + + Trace View + - - -
- - + + +
+ + diff --git a/src/promptflow/CHANGELOG.md b/src/promptflow/CHANGELOG.md index 16da2e49944..4eb83b56ddd 100644 --- a/src/promptflow/CHANGELOG.md +++ b/src/promptflow/CHANGELOG.md @@ -5,6 +5,7 @@ ### Bugs fixed - [promptflow-azure] Fixed `Connection aborted` error for local to cloud run when registering the run to cloud. - [promptflow-core] Fixed openai error handler not functioning for `AsyncPrompty`. +- [promptflow-devkit] Fixed trace view can't display boolean output (#3613) ## v1.14.0 (2024.07.25) ### Improvements