!function(t){conste=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"(may require <kbd>Fn</kbd>)":"(may require <kbd>Fn</kbd>)","%0 of %1":"%0 of %1",Accept:"Accept",Accessibility:"Accessibility","Accessibility help":"Accessibility help","Advanced options":"Advanced options","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",All:"All","Almost equal to":"Almost equal to",Angle:"Angle","Approximately equal to":"Approximately equal to",Aquamarine:"Aquamarine",Arrows:"Arrows","Asterisk operator":"Asterisk operator","Austral sign":"Austral sign","back with leftwards arrow above":"back with leftwards arrow above",Background:"Background","Below, you can find a list of keyboard shortcuts that can be used in the editor.":"Below, you can find a list of keyboard shortcuts that can be used in the editor.",Big:"Big","Bitcoin sign":"Bitcoin sign",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Bold text":"Bold text",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image",Category:"Category","Cedi sign":"Cedi sign","Cell properties":"Cell properties","Cent sign":"Cent sign","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Close:"Close","Close contextual balloons, dropdowns, and dialogs":"Close contextual balloons, dropdowns, and dialogs",Code:"Code","Code block":"Code block","Colon sign":"Colon sign",Color:"Color","Color picker":"Color picker",Column:"Column","Contains as member":"Contains as member","Content editing keystrokes":"Content editing keystrokes","Copy selected content":"Copy selected content","Copyright sign":"Copyright sign","Create link":"Create link","Cruzeiro sign":"Cruzeiro sign",Currency:"Currency","Currency sign":"Currency sign",Custom:"Custom","Custom image size":"Custom image size",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Decrease list item indent":"Decrease list item indent",Default:"Default","Degree sign":"Degree sign","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc","Division sign":"Division sign","Document colors":"Document colors","Dollar sign":"Dollar sign","Dong sign":"Dong sign",Dotted:"Dotted",Double:"Double","Double dagger":"Double dagger","Double exclamation mark":"Double exclamation mark","Double low-9 quotation mark":"Double low-9 quotation mark","Double question mark":"Double question mark",Downloadable:"Downloadable","downwards arrow to bar":"downwards arrow to bar","downwards dashed arrow":"downwards dashed arrow","downwards double arrow":"downwards double arrow","downwards simple arrow":"downwards simple arrow","Drachma sign":"Drachma sign","Drag to move":"Drag to move","Dropdown menu":"Dropdown menu","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor dialog":"Editor dialog","Editor menu bar":"Editor menu bar","Editor toolbar":"Editor toolbar","Element of":"Element of","Em dash":"Em dash","Empty set":"Empty set","En dash":"En dash","end with leftwards arrow above":"end with leftwards arrow above","Ente
/*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */
functionNu(t){return(Nu="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft})(t)}functionRu(t,e){return(Ru=Object.setPrototypeOf||function(t,e){returnt.__proto__=e,t})(t,e)}functionFu(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnBoolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}functionju(t,e,n){return(ju=Fu()?Reflect.construct:function(t,e,n){vari=[null];i.push.apply(i,e);varr=new(Function.bind.apply(t,i));returnn&&Ru(r,n.prototype),r}).apply(null,arguments)}function$u(t){returnzu(t)||Vu(t)||Hu(t)||Uu()}functionzu(t){if(Array.isArray(t))returnqu(t)}functionVu(t){if("undefined"!=typeofSymbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])returnArray.from(t)}functionHu(t,e){if(t){if("string"==typeoft)returnqu(t,e);varn=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qu(t,e):void0}}functionqu(t,e){(null==e||e>t.length)&&(e=t.length);for(varn=0,i=newArray(e);n<e;n++)i[n]=t[n];returni}functionUu(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}bu.prototype={areaStart:Wl,areaEnd:Wl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Cu.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){case2:this._context.lineTo(this._x1,this._y1);break;case3:_u(this,this._t0,yu(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){varn=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case1:this._point=2;break;case2:this._point=3,_u(this,yu(this,n=vu(this,t,e)),n);break;default:_u(this,this._t0,n=vu(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Au.prototype=Object.create(Cu.prototype)).point=function(t,e){Cu.prototype.point.call(this,e,t)},xu.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}},Su.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){vart=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);elsefor(vari=Du(t),r=Du(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Bu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._conte
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
functionUd(t){returnnull==t}functionGd(t){return"object"==typeoft&&null!==t}functionWd(t){returnArray.isArray(t)?t:Ud(t)?[]:[t]}functionKd(t,e){varn,i,r,o;if(e)for(n=0,i=(o=Object.keys(e)).length;n<i;n+=1)t[r=o[n]]=e[r];returnt}functionYd(t,e){varn,i="";for(n=0;n<e;n+=1)i+=t;returni}functionXd(t){return0===t&&Number.NEGATIVE_INFINITY===1/t}varZd={isNothing:Ud,isObject:Gd,toArray:Wd,repeat:Yd,isNegativeZero:Xd,extend:Kd};functionQd(t,e){varn="",i=t.reason||"(unknown reason)";returnt.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),i+" "+n):i}functionJd(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Qd(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(newError).stack||""}Jd.prototype=Object.create(Error.prototype),Jd.prototype.constructor=Jd,Jd.prototype.toString=function(t){returnthis.name+": "+Qd(this,t)};vartf=Jd;functionef(t,e,n,i,r){varo="",a="",s=Math.floor(r/2)-1;returni-e>s&&(e=i-s+(o=" ... ").length),n-i>s&&(n=i+s-(a=" ...").length),{str:o+t.slice(e,n).replace(/\t/g,"→")+a,pos:i-e+o.length}}functionnf(t,e){returnZd.repeat(" ",e-t.length)+t}functionrf(t,e){if(e=Object.create(e||null),!t.buffer)returnnull;e.maxLength||(e.maxLength=79),"number"!=typeofe.indent&&(e.indent=1),"number"!=typeofe.linesBefore&&(e.linesBefore=3),"number"!=typeofe.linesAfter&&(e.linesAfter=2);for(varn,i=/\r?\n|\r|\0/g,r=[0],o=[],a=-1;n=i.exec(t.buffer);)o.push(n.index),r.push(n.index+n[0].length),t.position<=n.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);vars,c,l="",u=Math.min(t.line+e.linesAfter,o.length).toString().length,h=e.maxLength-(e.indent+u+3);for(s=1;s<=e.linesBefore&&!(a-s<0);s++)c=ef(t.buffer,r[a-s],o[a-s],t.position-(r[a]-r[a-s]),h),l=Zd.repeat(" ",e.indent)+nf((t.line-s+1).toString(),u)+" | "+c.str+"\n"+l;for(c=ef(t.buffer,r[a],o[a],t.position,h),l+=Zd.repeat(" ",e.indent)+nf((t.line+1).toString(),u)+" | "+c.str+"\n",l+=Zd.repeat("-",e.indent+u+3+c.pos)+"^\n",s=1;s<=e.linesAfter&&!(a+s>=o.length);s++)c=ef(t.buffer,r[a+s],o[a+s],t.position-(r[a]-r[a+s]),h),l+=Zd.repeat(" ",e.indent)+nf((t.line+s+1).toString(),u)+" | "+c.str+"\n";returnl.replace(/\n$/,"")}varof=rf,af=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],sf=["scalar","sequence","mapping"];functioncf(t){vare={};returnnull!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}functionlf(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===af.indexOf(e))thrownewtf('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){returnt},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=cf(e.styleAliases||null),-1===sf.indexOf(this.kind))thrownewtf('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}varuf=lf;functionhf(t,e){varn=[];returnt[e].forEach((function(t){vare=n.length;n.forEach((function(n,i){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=i)})),n[e]=t})),n}functiondf(){vart,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};functioni(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);returnn}functionff(t){returnthis.extend(t)}ff.prototype.extend=function(t){vare=[],n=[];if(tinstanceofuf)n.push(t);elseif(Array.isArray(t))n=n.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))thrownewtf("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })")
/*! Check if previously processed */
if(h.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");conste=`mermaid-${a.next()}`;s=t.innerHTML,s=i(kb.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");constr=kb.detectInit(s);r&&h.debug("Detected early reinit: ",r);try{mH.render(e,s,((i,r)=>{t.innerHTML=i,void0!==n&&n(e),r&&r(t)}),t)}catch(t){wH(t,c,MH.parseError)}}if(c.length>0)throwc[0]},vH=async(...t)=>{h.debug(`Loading ${t.length} external diagrams`);conste=(awaitPromise.allSettled(t.map((async({id:t,detector:e,loader:n})=>{const{diagram:i}=awaitn();kk(t,i,e)})))).filter((t=>"rejected"===t.status));if(e.length>0){h.error(`Failed to load ${e.length} external diagrams`);for(consttofe)h.error(t);thrownewError(`Failed to load ${e.length} external diagrams`)}},yH=asyncfunction(t,e,n){constr=mH.getConfig();leto;if(t&&(MH.sequenceConfig=t),h.debug((n?"":"No ")+"Callback function found"),void0===e)o=document.querySelectorAll(".mermaid");elseif("string"==typeofe)o=document.querySelectorAll(e);elseif(einstanceofHTMLElement)o=[e];else{if(!(einstanceofNodeList))thrownewError("Invalid argument nodes for mermaid.init");o=e}h.debug(`Found ${o.length} diagrams`),void0!==(null==t?void0:t.startOnLoad)&&(h.debug("Start On Load: "+(null==t?void0:t.startOnLoad)),mH.updateSiteConfig({startOnLoad:null==t?void0:t.startOnLoad}));consta=newkb.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);lets;constc=[];for(consttofArray.from(o)){
/*! Check if previously processed */
if(h.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");conste=`mermaid-${a.next()}`;s=t.innerHTML,s=i(kb.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");constr=kb.detectInit(s);r&&h.debug("Detected early reinit: ",r);try{awaitmH.renderAsync(e,s,((i,r)=>{t.innerHTML=i,void0!==n&&n(e),r&&r(t)}),t)}catch(t){wH(t,c,MH.parseError)}}if(c.length>0)throwc[0]},_H=function(t){mH.initialize(t)},CH=async(t,{lazyLoad:e=!0}={})=>{e?Cp(...t):awaitvH(...t)},AH=function(){if(MH.startOnLoad){const{startOnLoad:t}=mH.getConfig();t&&MH.init().catch((t=>h.error("Mermaid failed to initialize",t)))}};"undefined"!=typeofdocument&&
/*!
*Waitfordocumentloadedbeforestartingtheexecution
*/
window.addEventListener("load",AH,!1);constxH=function(t){MH.parseError=t},EH=t=>mH.parse(t,MH.parseError),TH=[];letSH=!1;constDH=async()=>{if(!SH){for(SH=!0;TH.length>0;){constt=TH.shift();if(t)try{awaitt()}catch(t){h.error("Error executing queue",t)}}SH=!1}},IH=t=>newPromise(((e,n)=>{consti=()=>newPromise(((i,r)=>{mH.parseAsync(t,MH.parseError).then((t=>{i(t),e(t)}),(t=>{h.error("Error parsing",t),r(t),n(t)}))}));TH.push(i),DH().catch(n)})),BH=(t,e,n,i)=>newPromise(((r,o)=>{consta=()=>newPromise(((a,s)=>{mH.renderAsync(t,e,n,i).then((t=>{a(t),r(t)}),(t=>{h.error("Error parsing",t),s(t),o(t)}))}));TH.push(a),DH().catch(o)})),MH={startOnLoad:!0,diagrams:{},mermaidAPI:mH,parse:EH,parseAsync:IH,render:mH.render,renderAsync:BH,init:bH,initThrowsErrors:kH,initThrowsErrorsAsync:yH,registerExternalDiagrams:CH,initialize:_H,parseError:void0,contentLoaded:AH,setParseErrorHandler:xH},PH=(t,e,n)=>{const{parentById:i}=n,r=newSet;leto=t;for(;o;){if(r.add(o),o===e)returno;o=i[o]}for(o=e;o;){if(r.has(o))returno;o=i[o]}return"root"};functionLH(t){thrownewError('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}varOH={};!function(t){vare;e=function(){returnfunction(){functiont(e,n,i){functionr(a,s){if(!n[a]){if(!e[a]){varc="function"==typeofLH&&LH;if(!s&&c)returnc(a,!0);if(o)returno(a,!0);varl=newError("Cannot find module '"+a+"'");throwl.code="MODULE_NOT_FOUND",l}varu=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){returnr(e[a][1][t]||t)}),u,u.exports,t,e,n,i)}returnn[a].exports}for(varo="function"==typeofLH&&LH,a=0;a<i.length;a++)r(i[a]);returnr}returnt}()({1:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});vari=function(){functiont(t,e){for(varn=0;n<e.length;n++){vari=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}returnfunction(e,n,i){returnn&&t(e.prototype,n),i&&t(e,i),e}}();functionr(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}varo=function(){functiont(){vare=this,n=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},i=n.defaultLayoutOptions,o=void0===i?{}:i,s=n.algorithms,c=void0===s?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:s,l=n.workerFactory,u=n.workerUrl;if(r(this,t),this.defaultLayoutOptions=o,this.initialized=!1,void0===u&&void0===l)thrownewError("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");varh=l;void0!==u&&void0===l&&(h=function(t){returnnewWorker(t)});vard=h(u);if("function"!=typeofd.postMessage)thrownewTypeError("Created worker does not provide the required 'postMessage' function.");this.worker=newa(d),this.worker.postMessage({cmd:"register",algorithms:c}).then((function(t){returne.initialized=!0})).catch(console.err)}returni(t,[{key:"layout",value:function(t){vare=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},n=e.layoutOptions,i=void0===n?this.defaultLayoutOptions:n,r=e.logging,o=void0!==r&&r,a=e.measureExecutionTime,s=void0!==a&&a;returnt?this.worker.postMessage({cmd:"layout",graph:t,layoutOptions:i,options:{logging:o,measureExecutionTime:s}}):Promise.reject(newError("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){returnthis.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){returnthis.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){returnthis.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),t}();n.default=o;vara=function(){functiont(e){varn=this;if(r(this,t),void0===e)thrownewError("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=e,this.worker.onmessage=function(t){setTimeout((function(){n.receive(n,t)}),0)}}returni(t,[{key:"postMessage",value:function(t){vare=this.id||0;thi
varIr=0,Br=1,Mr=2,Pr=functiont(e){if(!(thisinstanceoft))returnnewt(e);this.id="Thenable/1.0.7",this.state=Ir,this.fulfillValue=void0,this.rejectReason=void0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeofe&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Pr.prototype={fulfill:function(t){returnLr(this,Br,"fulfillValue",t)},reject:function(t){returnLr(this,Mr,"rejectReason",t)},then:function(t,e){varn=this,i=newPr;returnn.onFulfilled.push(Rr(t,i,"fulfill")),n.onRejected.push(Rr(e,i,"reject")),Or(n),i.proxy}};varLr=function(t,e,n,i){returnt.state===Ir&&(t.state=e,t[n]=i,Or(t)),t},Or=function(t){t.state===Br?Nr(t,"onFulfilled",t.fulfillValue):t.state===Mr&&Nr(t,"onRejected",t.rejectReason)},Nr=function(t,e,n){if(0!==t[e].length){vari=t[e];t[e]=[];varr=function(){for(vart=0;t<i.length;t++)i[t](n)};"function"==typeofsetImmediate?setImmediate(r):setTimeout(r,0)}},Rr=function(t,e,n){returnfunction(i){if("function"!=typeoft)e[n].call(e,i);else{varr;try{r=t(i)}catch(t){returnvoide.reject(t)}Fr(e,r)}}},Fr=functione(n,i){if(n!==i&&n.proxy!==i){varr;if("object"===t(i)&&null!==i||"function"==typeofi)try{r=i.then}catch(t){returnvoidn.reject(t)}if("function"!=typeofr)n.fulfill(i);else{varo=!1;try{r.call(i,(function(t){o||(o=!0,t===i?n.reject(newTypeError("circular thenable chain")):e(n,t))}),(function(t){o||(o=!0,n.reject(t))}))}catch(t){o||n.reject(t)}}}elsen.reject(newTypeError("cannot resolve promise with itself"))};Pr.all=function(t){returnnewPr((function(e,n){for(vari=newArray(t.length),r=0,o=function(n,o){i[n]=o,++r===t.length&&e(i)},a=0;a<t.length;a++)!function(e){vari=t[e];null!=i&&null!=i.then?i.then((function(t){o(e,t)}),(function(t){n(t)})):o(e,i)}(a)}))},Pr.resolve=function(t){returnnewPr((function(e,n){e(t)}))},Pr.reject=function(t){returnnewPr((function(e,n){n(t)}))};varjr="undefined"!=typeofPromise?Promise:Pr,$r=function(t,e,n){vari=I(t),r=!i,o=this._private=Q({duration:1e3},e,n);if(o.target=t,o.style=o.style||o.css,o.started=!1,o.playing=!1,o.hooked=!1,o.applying=!1,o.progress=0,o.completes=[],o.frames=[],o.complete&&v(o.complete)&&o.completes.push(o.complete),r){vara=t.position();o.startPosition=o.startPosition||{x:a.x,y:a.y},o.startStyle=o.startStyle||t.cy().style().getAnimationStartStyle(t,o.style)}if(i){vars=t.pan();o.startPan={x:s.x,y:s.y},o.startZoom=t.zoom()}this.length=1,this[0]=this},zr=$r.prototype;Q(zr,{instanceString:function(){return"animation"},hook:function(){vart=this._private;if(!t.hooked){vare=t.target._private.animation;(t.queue?e.queue:e.current).push(this),T(t.target)&&t.target.cy().addToAnimationPool(t.target),t.hooked=!0}returnthis},play:function(){vart=this._private;return1===t.progress&&(t.progress=0),t.playing=!0,t.started=!1,t.stopped=!1,this.hook(),this},playing:function(){returnthis._private.playing},apply:function(){vart=this._private;returnt.applying=!0,t.started=!1,t.stopped=!1,this.hook(),this},applying:function(){returnthis._private.applying},pause:function(){vart=this._private;returnt.playing=!1,t.started=!1,this},stop:function(){vart=this._private;returnt.playing=!1,t.started=!1,t.stopped=!0,this},rewind:function(){returnthis.progress(0)},fastforward:function(){returnthis.progress(1)},time:function(t){vare=this._private;returnvoid0===t?e.progress*e.duration:this.progress(t/e.duration)},progress:function(t){vare=this._private,n=e.playing;returnvoid0===t?e.progress:(n&&this.pause(),e.progress=t,e.started=!1,n&&this.play(),this)},completed:function(){return1===this._private.progress},reverse:function(){vart=this._private,e=t.playing;e&&this.pause(),t.progress=1-t.progress,t.started=!1;varn=function(e,n){vari=t[e];null!=i&&(t[e]=t[n],t[n]=i)};if(n("zoom","startZoom"),n("pan","startPan"),n("position","startPosition"),t.style)for(vari=0;i<t.style.length;i++){varr=t.style[i],o=r.name,a=t.startStyle[o];t.startStyle[o]=r,t.style[i]=a}returne&&this.play(),this},promise:function(t){vare,n=this._private;returne="frame"===t?n.frames:n.completes,newjr((funct
/*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */functionvl(t,e,n,i){varr=4,o=.001,a=1e-7,s=10,c=11,l=1/(c-1),u="undefined"!=typeofFloat32Array;if(4!==arguments.length)return!1;for(varh=0;h<4;++h)if("number"!=typeofarguments[h]||isNaN(arguments[h])||!isFinite(arguments[h]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);vard=u?newFloat32Array(c):newArray(c);functionf(t,e){return1-3*e+3*t}functiong(t,e){return3*e-6*t}functionp(t){return3*t}functionm(t,e,n){return((f(e,n)*t+g(e,n))*t+p(e))*t}functionb(t,e,n){return3*f(e,n)*t*t+2*g(e,n)*t+p(e)}functionw(e,i){for(varo=0;o<r;++o){vara=b(i,t,n);if(0===a)returni;i-=(m(i,t,n)-e)/a}returni}functionk(){for(vare=0;e<c;++e)d[e]=m(e*l,t,n)}functionv(e,i,r){varo,c,l=0;do{(o=m(c=i+(r-i)/2,t,n)-e)>0?r=c:i=c}while(Math.abs(o)>a&&++l<s);returnc}functiony(e){for(vari=0,r=1,a=c-1;r!==a&&d[r]<=e;++r)i+=l;--r;vars=i+(e-d[r])/(d[r+1]-d[r])*l,u=b(s,t,n);returnu>=o?w(e,s):0===u?s:v(e,i,i+l)}var_=!1;functionC(){_=!0,t===e&&n===i||k()}varA=function(r){return_||C(),t===e&&n===i?r:0===r?0:1===r?1:m(y(r),e,i)};A.getControlPoints=function(){return[{x:t,y:e},{x:n,y:i}]};varx="generateBezier("+[t,e,n,i]+")";returnA.toString=function(){returnx},A}
/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */varyl=function(){functiont(t){return-t.tension*t.x-t.friction*t.v}functione(e,n,i){varr={x:e.x+i.dx*n,v:e.v+i.dv*n,tension:e.tension,friction:e.friction};return{dx:r.v,dv:t(r)}}functionn(n,i){varr={dx:n.v,dv:t(n)},o=e(n,.5*i,r),a=e(n,.5*i,o),s=e(n,i,a),c=1/6*(r.dx+2*(o.dx+a.dx)+s.dx),l=1/6*(r.dv+2*(o.dv+a.dv)+s.dv);returnn.x=n.x+c*i,n.v=n.v+l*i,n}returnfunctiont(e,i,r){varo,a,s,c={x:-1,v:0,tension:null,friction:null},l=[0],u=0,h=1e-4,d=.016;for(e=parseFloat(e)||500,i=parseFloat(i)||20,r=r||null,c.tension=e,c.friction=i,a=(o=null!==r)?(u=t(e,i))/r*d:d;s=n(s||c,a),l.push(1+s.x),u+=16,Math.abs(s.x)>h&&Math.abs(s.v)>h;);returno?function(t){returnl[t*(l.length-1)|0]}:u}}(),_l=function(t,e,n,i){varr=vl(t,e,n,i);returnfunction(t,e,n){returnt+(e-t)*r(n)}},Cl={linear:function(t,e,n){returnt+(e-t)*n},ease:_l(.25,.1,.25,1),"ease-in":_l(.42,0,1,1),"ease-out":_l(0,0,.58,1),"ease-in-out":_l(.42,0,.58,1),"ease-in-sine":_l(.47,0,.745,.715),"ease-out-sine":_l(.39,.575,.565,1),"ease-in-out-sine":_l(.445,.05,.55,.95),"ease-in-quad":_l(.55,.085,.68,.53),"ease-out-quad":_l(.25,.46,.45,.94),"ease-in-out-quad":_l(.455,.03,.515,.955),"ease-in-cubic":_l(.55,.055,.675,.19),"ease-out-cubic":_l(.215,.61,.355,1),"ease-in-out-cubic":_l(.645,.045,.355,1),"ease-in-quart":_l(.895,.03,.685,.22),"ease-out-quart":_l(.165,.84,.44,1),"ease-in-out-quart":_l(.77,0,.175,1),"ease-in-quint":_l(.755,.05,.855,.06),"ease-out-quint":_l(.23,1,.32,1),"ease-in-out-quint":_l(.86,0,.07,1),"ease-in-expo":_l(.95,.05,.795,.035),"ease-out-expo":_l(.19,1,.22,1),"ease-in-out-expo":_l(1,0,0,1),"ease-in-circ":_l(.6,.04,.98,.335),"ease-out-circ":_l(.075,.82,.165,1),"ease-in-out-circ":_l(.785,.135,.15,.86),spring:function(t,e,n){if(0===n)returnCl.linear;vari=yl(t,e,n);returnfunction(t,e,n){returnt+(e-t)*i(n)}},"cubic-bezier":_l};functionAl(t,e,n,i,r){if(1===i)returnn;if(e===n)returnn;varo=r(e,n,i);returnnull==t||((t.roundValue||t.color)&&(o=Math.round(o)),void0!==t.min&&(o=Math.max(o,t.min)),void0!==t.max&&(o=Math.min(o,t.max))),o}functionxl(t,e){returnnull!=t.pfValue||null!=t.value?null==t.pfValue||null!=e&&"%"===e.type.units?t.value:t.pfValue:t}functionEl(t,e,n,i,r){varo=null!=r?r.type:null;n<0?n=0:n>1&&(n=1);vara=xl(t,r),s=xl(e,r);if(A(a)&&A(s))returnAl(o,a,s,n,i);if(y(a)&&y(s)){for(varc=[],l=0;l<s.length;l++){varu=a[l],h=s[l];if(null!=u&&null!=h){vard=Al(o,u,h,n,i);c.push(d)}elsec.push(h)}returnc}}functionTl(t,e,n,i){varr=!i,o=t._private,a=e._private,s=a.easing,c=a.startTime,l=(i?t:t.cy()).style();if(!a.easingImpl)if(null==s)a.easingImpl=Cl.linear;else{varu,h,d;u=k(s)?l.parse("transition-timing-function",s).value:s,k(u)?(h=u,d=[]):(h=u[1],d=u.slice(2).map((function(t){return+t}))),d.length>0?("spring"===h&&d.push(a.duration),a.easingImpl=Cl[h].apply(null,d)):a.easingImpl=Cl[h]}varf,g=a.easingImpl;if(f=0===a.duration?1:(n-c)/a.duration,a.applying&&(f=a.progress),f<0?f=0:f>1&&(f=1),null==a.delay){varp=a.startPosition,m=a.position;if(m&&r&&!t.locked()){varb={};Sl(p.x,m.x)&&(b.x=El(p.x,m.x,f,g)),Sl(p.y,m.y)&&(b.y=El(p.y,m.y,f,g)),t.position(b)}varw=a.startPan,v=a.pan,y=o.pan,_=null!=v&&i;_&&(Sl(w.x,v.x)&&(y.x=El(w.x,v.x,f,g)),Sl(w.y,v.y)&&(y.y=El(w.y,v.y,f,g)),t.emit("pan"));varC=a.startZoom,A=a.zoom,x=null!=A&&i;x&&(Sl(C,A)&&(o.zoom=Tn(o.minZoom,El(C,A,f,g),o.maxZoom)),t.emit("zoom")),(_||x)&&t.emit("viewport");varE=a.style;if(E&&E.length>0&&r){for(varT=0;T<E.length;T++){varS=E[T],D=S.name,I=S,B=a.startStyle[D],M=El(B,I,f,g,l.properties[B.name]);l.overrideBypass(t,D,M)}t.emit("style")}}returna.progress=f,f}functionSl(t,e){return!!(null!=t&&null!=e&&(A(t)&&A(e)||t&&e))}functionDl(t,e,n,i){varr=e._private;r.started=!0,r.startTime=n-r.progress*r.duration}functionIl(t,e){varn=e._private.aniEles,i=[];functionr(e,n){varr=e._private,o=r.animation.current,a=r.animation.queue,s=!1;if(0===o.length){varc=a.shift();c&&o.push(c)}for(varl=function(t){for(vare=t.length-1;e>=0;e--)(0,t[e]