Files
mermaid-live-editor/_app/immutable/chunks/state-e537f134.js
T
2022-08-23 15:41:13 +00:00

1262 lines
1.2 MiB
Plaintext

import{w as writable,_ as __vitePreload,d as derived}from"./preload-helper-23bf4dac.js";import{O as get_store_value}from"./index-1530a265.js";const defaultLoading={loading:!1},loadingStateStore=writable(defaultLoading),initLoading=async(d,b)=>{loadingStateStore.set({loading:!0,message:d});const h=await b;return loadingStateStore.set({loading:!1}),h};function getDefaultExportFromCjs(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var browserCookies={};(function(d){d.defaults={},d.set=function(b,h,m){var f=m||{},v=d.defaults,_=f.expires||v.expires,S=f.domain||v.domain,M=f.path!==void 0?f.path:v.path!==void 0?v.path:"/",E=f.secure!==void 0?f.secure:v.secure,D=f.httponly!==void 0?f.httponly:v.httponly,B=f.samesite!==void 0?f.samesite:v.samesite,z=_?new Date(typeof _=="number"?new Date().getTime()+_*864e5:_):0;document.cookie=b.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+h.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(z&&z.getTime()>=0?";expires="+z.toUTCString():"")+(S?";domain="+S:"")+(M?";path="+M:"")+(E?";secure":"")+(D?";httponly":"")+(B?";samesite="+B:"")},d.get=function(b){for(var h=document.cookie.split(";");h.length;){var m=h.pop(),f=m.indexOf("=");f=f<0?m.length:f;var v=decodeURIComponent(m.slice(0,f).replace(/^\s+/,""));if(v===b)return decodeURIComponent(m.slice(f+1))}return null},d.erase=function(b,h){d.set(b,"",{expires:-1,domain:h&&h.domain,path:h&&h.path,secure:0,httponly:0})},d.all=function(){for(var b={},h=document.cookie.split(";");h.length;){var m=h.pop(),f=m.indexOf("=");f=f<0?m.length:f;var v=decodeURIComponent(m.slice(0,f).replace(/^\s+/,""));b[v]=decodeURIComponent(m.slice(f+1))}return b}})(browserCookies);var bundle={};(function(exports){(function(d,b){for(var h in b)d[h]=b[h];b.__esModule&&Object.defineProperty(d,"__esModule",{value:!0})})(exports,(()=>{var __webpack_modules__={607:(module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var serializer_1=__webpack_require__(810),deserializer_1=__webpack_require__(496),Module;typeof process<"u"&&process.release.name==="node"&&(Module=eval("require")("module"));var ESSerializer=function(){function d(){}return d.throwErrorIfInNonNodeEnvironment=function(){if(!Module)throw new Error("Cannot intercept require in non-Node environment.")},d.interceptRequire=function(){this.isRequireIntercepted||(this.isRequireIntercepted=!0,this.throwErrorIfInNonNodeEnvironment(),d.originRequire=Module.prototype.require,Module.prototype.require=function(){var b=d.originRequire.apply(this,arguments),h=b.name;return d.requiredClasses[h]||(d.requiredClasses[h]=b),b})},d.stopInterceptRequire=function(){this.throwErrorIfInNonNodeEnvironment(),Module.prototype.require=d.originRequire,this.isRequireIntercepted=!1},d.isInterceptingRequire=function(){return this.isRequireIntercepted},d.getRequiredClasses=function(){return this.requiredClasses},d.clearRequiredClasses=function(){this.requiredClasses={}},d.registerClass=function(b){this.registeredClasses.push(b)},d.registerClasses=function(b){this.registeredClasses=this.registeredClasses.concat(b)},d.clearRegisteredClasses=function(){this.registeredClasses=[]},d.serialize=function(b,h){return h===void 0&&(h={}),JSON.stringify(serializer_1.getSerializeValueWithClassName(b,h))},d.deserialize=function(b,h,m){return h===void 0&&(h=[]),m===void 0&&(m={}),deserializer_1.deserializeFromParsedObj(JSON.parse(b),Object.values(this.requiredClasses).concat(this.registeredClasses).concat(h),m)},d.originRequire=null,d.isRequireIntercepted=!1,d.requiredClasses={},d.registeredClasses=[],d}();module.exports=ESSerializer},917:function(d,b){var h=this&&this.__spreadArrays||function(){for(var St=0,Lt=0,Wt=arguments.length;Lt<Wt;Lt++)St+=arguments[Lt].length;var ye=Array(St),Ve=0;for(Lt=0;Lt<Wt;Lt++)for(var ke=arguments[Lt],fe=0,xe=ke.length;fe<xe;fe++,Ve++)ye[Ve]=ke[fe];return ye};Object.defineProperty(b,"__esModule",{value:!0}),b.TO_STRING_FIELD=b.TIMESTAMP_FIELD=b.OPTIONS_FIELD=b.CLASS_NAME_FIELD=b.BOOLEAN_FIELD=b.ARRAY_FIELD=b.BUILTIN_TYPE_UNDEFINED=b.BUILTIN_TYPE_NOT_FINITE=b.BUILTIN_TYPE_BIG_INT=b.BUILTIN_CLASS_AGGREGATE_ERROR=b.BUILTIN_CLASS_URI_ERROR=b.BUILTIN_CLASS_TYPE_ERROR=b.BUILTIN_CLASS_SYNTAX_ERROR=b.BUILTIN_CLASS_REFERENCE_ERROR=b.BUILTIN_CLASS_RANGE_ERROR=b.BUILTIN_CLASS_EVAL_ERROR=b.BUILTIN_CLASS_ERROR=b.BUILTIN_CLASS_STRING=b.BUILTIN_CLASS_SET=b.BUILTIN_CLASS_REGEXP=b.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT=b.BUILTIN_CLASS_INTL_PLURALRULES=b.BUILTIN_CLASS_INTL_NUMBERFORMAT=b.BUILTIN_CLASS_INTL_LOCALE=b.BUILTIN_CLASS_INTL_LISTFORMAT=b.BUILTIN_CLASS_INTL_DATETIMEFORMAT=b.BUILTIN_CLASS_INTL_COLLATOR=b.BUILTIN_CLASS_DATE=b.BUILTIN_CLASS_DATAVIEW=b.BUILTIN_CLASS_BOOLEAN=b.BUILTIN_CLASS_SHAREDARRAYBUFFER=b.BUILTIN_CLASS_ARRAYBUFFER=b.BUILTIN_CLASS_BIGUINT64ARRAY=b.BUILTIN_CLASS_BIGINT64ARRAY=b.BUILTIN_CLASS_FLOAT64ARRAY=b.BUILTIN_CLASS_FLOAT32ARRAY=b.BUILTIN_CLASS_UINT32ARRAY=b.BUILTIN_CLASS_INT32ARRAY=b.BUILTIN_CLASS_UINT16ARRAY=b.BUILTIN_CLASS_INT16ARRAY=b.BUILTIN_CLASS_UINT8CLAMPEDARRAY=b.BUILTIN_CLASS_UINT8ARRAY=b.BUILTIN_CLASS_INT8ARRAY=b.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED=b.ALL_BUILTIN_INTLS=b.ALL_BUILTIN_ERRORS=b.ALL_BUILTIN_ARRAYS=b.ESSERIALIZER_NULL=void 0,b.ESSERIALIZER_NULL="__ESSERIALIZER_NULL__",b.ARRAY_FIELD="ess_arr",b.BOOLEAN_FIELD="ess_bool",b.CLASS_NAME_FIELD="ess_cn",b.OPTIONS_FIELD="ess_opt",b.TIMESTAMP_FIELD="ess_ts",b.TO_STRING_FIELD="ess_str";var m="Int8Array";b.BUILTIN_CLASS_INT8ARRAY=m;var f="Uint8Array";b.BUILTIN_CLASS_UINT8ARRAY=f;var v="Uint8ClampedArray";b.BUILTIN_CLASS_UINT8CLAMPEDARRAY=v;var _="Int16Array";b.BUILTIN_CLASS_INT16ARRAY=_;var S="Uint16Array";b.BUILTIN_CLASS_UINT16ARRAY=S;var M="Int32Array";b.BUILTIN_CLASS_INT32ARRAY=M;var E="Uint32Array";b.BUILTIN_CLASS_UINT32ARRAY=E;var D="Float32Array";b.BUILTIN_CLASS_FLOAT32ARRAY=D;var B="Float64Array";b.BUILTIN_CLASS_FLOAT64ARRAY=B;var z="BigInt64Array";b.BUILTIN_CLASS_BIGINT64ARRAY=z;var H="BigUint64Array";b.BUILTIN_CLASS_BIGUINT64ARRAY=H,b.BUILTIN_CLASS_ARRAYBUFFER="ArrayBuffer",b.BUILTIN_CLASS_SHAREDARRAYBUFFER="SharedArrayBuffer",b.BUILTIN_CLASS_BOOLEAN="Boolean",b.BUILTIN_CLASS_DATAVIEW="DataView",b.BUILTIN_CLASS_DATE="Date";var J="Collator";b.BUILTIN_CLASS_INTL_COLLATOR=J;var rt="DateTimeFormat";b.BUILTIN_CLASS_INTL_DATETIMEFORMAT=rt;var dt="ListFormat";b.BUILTIN_CLASS_INTL_LISTFORMAT=dt,b.BUILTIN_CLASS_INTL_LOCALE="Locale";var K="NumberFormat";b.BUILTIN_CLASS_INTL_NUMBERFORMAT=K;var _t="PluralRules";b.BUILTIN_CLASS_INTL_PLURALRULES=_t;var at="RelativeTimeFormat";b.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT=at,b.BUILTIN_CLASS_REGEXP="RegExp",b.BUILTIN_CLASS_SET="Set";var ot="String";b.BUILTIN_CLASS_STRING=ot;var bt="Error";b.BUILTIN_CLASS_ERROR=bt;var zt="EvalError";b.BUILTIN_CLASS_EVAL_ERROR=zt;var Tt="RangeError";b.BUILTIN_CLASS_RANGE_ERROR=Tt;var mt="ReferenceError";b.BUILTIN_CLASS_REFERENCE_ERROR=mt;var Ct="SyntaxError";b.BUILTIN_CLASS_SYNTAX_ERROR=Ct;var xt="TypeError";b.BUILTIN_CLASS_TYPE_ERROR=xt;var gt="URIError";b.BUILTIN_CLASS_URI_ERROR=gt;var et="AggregateError";b.BUILTIN_CLASS_AGGREGATE_ERROR=et,b.BUILTIN_TYPE_BIG_INT="BI",b.BUILTIN_TYPE_NOT_FINITE="NF",b.BUILTIN_TYPE_UNDEFINED="UD";var ft=[m,f,v,_,S,M,E,D,B,z,H];b.ALL_BUILTIN_ARRAYS=ft;var q=[bt,zt,Tt,mt,Ct,xt,gt,et];b.ALL_BUILTIN_ERRORS=q;var wt=[J,rt,dt,K,_t,at];b.ALL_BUILTIN_INTLS=wt;var W=h([ot],ft);b.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED=W},496:function(d,b,h){var m=this&&this.__spreadArrays||function(){for(var K=0,_t=0,at=arguments.length;_t<at;_t++)K+=arguments[_t].length;var ot=Array(K),bt=0;for(_t=0;_t<at;_t++)for(var zt=arguments[_t],Tt=0,mt=zt.length;Tt<mt;Tt++,bt++)ot[bt]=zt[Tt];return ot};Object.defineProperty(b,"__esModule",{value:!0}),b.getParentClassName=b.getClassMappingFromClassArray=b.deserializeFromParsedObjWithClassMapping=b.deserializeFromParsedObj=void 0;var f=h(821),v=h(917),_=/^\s*class\s+/;function S(K,_t,at){if(at===void 0&&(at={}),f.notObject(K))return K;if(Array.isArray(K))return M(K,_t);var ot=K[v.CLASS_NAME_FIELD],bt=function(Tt,mt,Ct){switch(Tt){case v.BUILTIN_CLASS_INT8ARRAY:return E(mt[v.ARRAY_FIELD],Int8Array);case v.BUILTIN_CLASS_UINT8ARRAY:return E(mt[v.ARRAY_FIELD],Uint8Array);case v.BUILTIN_CLASS_UINT8CLAMPEDARRAY:return E(mt[v.ARRAY_FIELD],Uint8ClampedArray);case v.BUILTIN_CLASS_INT16ARRAY:return E(mt[v.ARRAY_FIELD],Int16Array);case v.BUILTIN_CLASS_UINT16ARRAY:return E(mt[v.ARRAY_FIELD],Uint16Array);case v.BUILTIN_CLASS_INT32ARRAY:return E(mt[v.ARRAY_FIELD],Int32Array);case v.BUILTIN_CLASS_UINT32ARRAY:return E(mt[v.ARRAY_FIELD],Uint32Array);case v.BUILTIN_CLASS_FLOAT32ARRAY:return E(mt[v.ARRAY_FIELD],Float32Array);case v.BUILTIN_CLASS_FLOAT64ARRAY:return E(mt[v.ARRAY_FIELD],Float64Array);case v.BUILTIN_CLASS_BIGINT64ARRAY:return D(mt[v.ARRAY_FIELD],BigInt64Array);case v.BUILTIN_CLASS_BIGUINT64ARRAY:return D(mt[v.ARRAY_FIELD],BigUint64Array);case v.BUILTIN_TYPE_BIG_INT:return B(mt[v.TO_STRING_FIELD]);case v.BUILTIN_TYPE_UNDEFINED:return;case v.BUILTIN_TYPE_NOT_FINITE:return f.getValueFromToStringResult(mt[v.TO_STRING_FIELD]);case v.BUILTIN_CLASS_ARRAYBUFFER:return xt=mt[v.ARRAY_FIELD],new Uint8Array(xt).buffer;case v.BUILTIN_CLASS_SHAREDARRAYBUFFER:return function(gt){var et=new SharedArrayBuffer(gt.length),ft=new Uint8Array(et);return gt.forEach(function(q,wt){ft[wt]=q}),et}(mt[v.ARRAY_FIELD]);case v.BUILTIN_CLASS_BOOLEAN:return function(gt){return new Boolean(gt[v.BOOLEAN_FIELD])}(mt);case v.BUILTIN_CLASS_DATAVIEW:return function(gt){return new DataView(new Uint8Array(gt).buffer)}(mt[v.ARRAY_FIELD]);case v.BUILTIN_CLASS_DATE:return function(gt){return typeof gt[v.TIMESTAMP_FIELD]=="number"?new Date(gt[v.TIMESTAMP_FIELD]):null}(mt);case v.BUILTIN_CLASS_INTL_COLLATOR:return z(mt,Intl.Collator);case v.BUILTIN_CLASS_INTL_DATETIMEFORMAT:return z(mt,Intl.DateTimeFormat);case v.BUILTIN_CLASS_INTL_LISTFORMAT:return z(mt,Intl.ListFormat);case v.BUILTIN_CLASS_INTL_LOCALE:return new Intl.Locale(mt[v.TO_STRING_FIELD]);case v.BUILTIN_CLASS_INTL_NUMBERFORMAT:return z(mt,Intl.NumberFormat);case v.BUILTIN_CLASS_INTL_PLURALRULES:return z(mt,Intl.PluralRules);case v.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT:return z(mt,Intl.RelativeTimeFormat);case v.BUILTIN_CLASS_REGEXP:return function(gt){var et=gt[v.TO_STRING_FIELD],ft=et.lastIndexOf("/");return new RegExp(et.substring(1,ft),et.substring(ft+1))}(mt);case v.BUILTIN_CLASS_SET:return function(gt,et){return new Set(M(gt[v.ARRAY_FIELD],et))}(mt,Ct);case v.BUILTIN_CLASS_STRING:return function(gt){return new String(gt[v.TO_STRING_FIELD])}(mt);case v.BUILTIN_CLASS_ERROR:return H(mt,Error);case v.BUILTIN_CLASS_EVAL_ERROR:return H(mt,EvalError);case v.BUILTIN_CLASS_RANGE_ERROR:return H(mt,RangeError);case v.BUILTIN_CLASS_REFERENCE_ERROR:return H(mt,ReferenceError);case v.BUILTIN_CLASS_SYNTAX_ERROR:return H(mt,SyntaxError);case v.BUILTIN_CLASS_TYPE_ERROR:return H(mt,TypeError);case v.BUILTIN_CLASS_URI_ERROR:return H(mt,URIError);case v.BUILTIN_CLASS_AGGREGATE_ERROR:return H(mt,AggregateError);default:return v.ESSERIALIZER_NULL}var xt}(ot,K,_t);if(bt!==v.ESSERIALIZER_NULL)return bt;if(ot&&!_t[ot])throw new Error("Class "+ot+" not found");var zt=[];return at.fieldsForConstructorParameters&&(zt=at.fieldsForConstructorParameters.map(function(Tt){return Tt in K?K[Tt]:{}})),function(Tt,mt,Ct,xt){for(var gt in mt){var et=mt[gt];if(!xt.ignoreProperties||!xt.ignoreProperties.includes(gt))if(xt.rawProperties&&xt.rawProperties.includes(gt))Tt[gt]=JSON.stringify(et);else{var ft=Object.getOwnPropertyDescriptor(Tt,gt);q=et,wt=ft,gt===v.CLASS_NAME_FIELD||wt&&(typeof wt.set=="function"||wt.writable===!1&&typeof q!="object")||(ft&&ft.writable===!1&&typeof et=="object"?rt(Tt[gt],et,Ct):Tt[gt]=S(et,Ct))}}var q,wt;return Tt}(function(Tt,mt){var Ct={};if(!Tt)return Ct;var xt=Tt.length-mt.length;if(xt>0&&(mt=mt.concat(Array.from(Array(xt),function(){return{}}))),_.test(Tt.toString()))try{Ct=new(Tt.bind.apply(Tt,m([void 0],mt)))}catch{J(Tt.name),Ct={},Object.setPrototypeOf(Ct,Tt?Tt.prototype:Object.prototype)}else{Ct=Object.create(Tt.prototype.constructor.prototype);try{Tt.prototype.constructor.call(Ct,mt)}catch{J(Tt.name)}}return Ct}(_t[ot],zt),K,_t,at)}function M(K,_t){return K.map(function(at){return S(at,_t)})}function E(K,_t){return new _t(K)}function D(K,_t){return new _t(K.map(function(at){return B(at[v.TO_STRING_FIELD])}))}function B(K){return BigInt(K)}function z(K,_t){var at=K[v.OPTIONS_FIELD],ot=at.locale;return delete at.locale,new _t(ot,at)}function H(K,_t){var at;return delete(at=K.message?new _t(K.message):new _t).stack,K.name&&(at.name=K.name),K.stack&&(at.stack=K.stack),_t===AggregateError&&(at.errors=S(K.errors,{})),at}function J(K){console.warn("Incorrect parameter type passed to constructor: "+K)}function rt(K,_t,at){for(var ot in _t){var bt=Object.getOwnPropertyDescriptor(K,ot);bt&&bt.writable!==!0&&typeof bt.set!="function"||(K[ot]=S(_t[ot],at))}}function dt(K){K===void 0&&(K=[]);var _t={};return K.forEach(function(at){if(f.isClass(at)){var ot=at.name,bt=_t[ot];bt&&bt!==at&&console.warn("WARNING: Found class definition with the same name: "+ot),_t[ot]=at}}),_t}b.deserializeFromParsedObj=function(K,_t,at){return S(K,dt(_t),at)},b.deserializeFromParsedObjWithClassMapping=S,b.getClassMappingFromClassArray=dt,b.getParentClassName=function(K){return K.prototype.__proto__.constructor.name}},821:(d,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isClass=b.notObject=b.getValueFromToStringResult=void 0,b.notObject=function(h){return h===null||typeof h!="object"},b.getValueFromToStringResult=function(h){switch(h){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN;default:return null}},b.isClass=function(h){if(function(m){return[Date].indexOf(m)>=0}(h))return!0;try{Reflect.construct(String,[],h)}catch{return!1}return!0}},810:(d,b,h)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.getSerializeValueWithClassName=void 0;var m=h(917),f=h(821);function v(S,M){M===void 0&&(M={});var E=function(H){var J,rt,dt;return H===void 0?((J={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_UNDEFINED,J):typeof H!="number"||isFinite(H)?typeof H=="bigint"?((dt={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_BIG_INT,dt[m.TO_STRING_FIELD]=H.toString(),dt):f.notObject(H)?H:m.ESSERIALIZER_NULL:((rt={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_NOT_FINITE,rt[m.TO_STRING_FIELD]=H.toString(),rt)}(S);if(E!==m.ESSERIALIZER_NULL)return E;if(Array.isArray(S))return _(S);var D={};if(!function(H){var J=H.__proto__.constructor.name;return m.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(J)}(S)){if(M.ignoreProperties&&M.ignoreProperties.forEach(function(H){delete S[H]}),M.interceptProperties)for(var B in M.interceptProperties)S[B]=M.interceptProperties[B].call(S,S[B]);for(var z in S)D[z]=v(S[z])}return function(H,J){var rt=H.__proto__.constructor.name;return rt!=="Object"&&(J[m.CLASS_NAME_FIELD]=rt,rt===m.BUILTIN_CLASS_ARRAYBUFFER||rt===m.BUILTIN_CLASS_SHAREDARRAYBUFFER?J[m.ARRAY_FIELD]=_(Array.from(new Uint8Array(H))):rt===m.BUILTIN_CLASS_BOOLEAN?J[m.BOOLEAN_FIELD]=H.valueOf():rt===m.BUILTIN_CLASS_DATAVIEW?J[m.ARRAY_FIELD]=_(Array.from(new Uint8Array(H.buffer))):rt===m.BUILTIN_CLASS_DATE?J[m.TIMESTAMP_FIELD]=H.getTime():rt===m.BUILTIN_CLASS_INTL_LOCALE||rt===m.BUILTIN_CLASS_REGEXP?J[m.TO_STRING_FIELD]=H.toString():rt===m.BUILTIN_CLASS_SET?J[m.ARRAY_FIELD]=_(Array.from(H)):rt===m.BUILTIN_CLASS_STRING?J[m.TO_STRING_FIELD]=H.toString():m.ALL_BUILTIN_ARRAYS.includes(rt)?J[m.ARRAY_FIELD]=_(Array.from(H)):m.ALL_BUILTIN_ERRORS.includes(rt)?function(dt,K,_t){dt.name!=="Error"&&(K.name=dt.name),dt.message&&(K.message=dt.message),dt.stack&&(K.stack=dt.stack),_t===m.BUILTIN_CLASS_AGGREGATE_ERROR&&(K.errors=v(dt.errors))}(H,J,rt):m.ALL_BUILTIN_INTLS.includes(rt)&&(J[m.OPTIONS_FIELD]=H.resolvedOptions())),J}(S,D)}function _(S){return S.map(function(M){return v(M)})}b.getSerializeValueWithClassName=v}},__webpack_module_cache__={};function __webpack_require__(d){if(__webpack_module_cache__[d])return __webpack_module_cache__[d].exports;var b=__webpack_module_cache__[d]={exports:{}};return __webpack_modules__[d].call(b.exports,b,b.exports,__webpack_require__),b.exports}return __webpack_require__(607)})())})(bundle);var ESSerializer=getDefaultExportFromCjs(bundle);const alreadyWarnFor=[],warnStorageNotFound=d=>{var b;const h=typeof process<"u"&&((b=process.env)===null||b===void 0?void 0:b.NODE_ENV)==="production";if(alreadyWarnFor.indexOf(d)===-1&&!h){let m=`Unable to find the ${d}. No data will be persisted.`;typeof window>"u"&&(m+=`
Are you running on a server? Most of storages are not available while running on a server.`),console.warn(m),alreadyWarnFor.push(d)}},allowedClasses=[],serialize=d=>ESSerializer.serialize(d),deserialize=d=>{if(d!=="undefined"){if(d!=null){try{return ESSerializer.deserialize(d,allowedClasses)}catch{}try{return JSON.parse(d)}catch{}}return d}};function persist(d,b,h){const m=b.getValue(h);return m!==null&&d.set(m),b.addListener&&b.addListener(h,f=>{d.set(f)}),d.subscribe(f=>{b.setValue(h,f)}),Object.assign(Object.assign({},d),{delete(){b.deleteValue(h)}})}function getBrowserStorage(d,b=!1){const h=[],m=_=>{const S=_.key;_.storageArea===d&&h.filter(({key:M})=>M===S).forEach(({listener:M})=>{M(deserialize(_.newValue))})},f=()=>{b&&typeof window<"u"&&(window==null?void 0:window.addEventListener)&&window.addEventListener("storage",m)},v=()=>{b&&typeof window<"u"&&(window==null?void 0:window.removeEventListener)&&window.removeEventListener("storage",m)};return{addListener(_,S){h.push({key:_,listener:S}),h.length===1&&f()},removeListener(_,S){const M=h.indexOf({key:_,listener:S});M!==-1&&h.splice(M,1),h.length===0&&v()},getValue(_){const S=d.getItem(_);return deserialize(S)},deleteValue(_){d.removeItem(_)},setValue(_,S){d.setItem(_,serialize(S))}}}function localStorage(d=!1){return typeof window<"u"&&(window==null?void 0:window.localStorage)?getBrowserStorage(window.localStorage,d):(warnStorageNotFound("window.localStorage"),noopStorage())}function noopStorage(){return{getValue(){return null},deleteValue(){},setValue(){}}}let analytics;const initAnalytics=async()=>{if(!analytics)try{const{Analytics:d}=await __vitePreload(()=>import("./analytics.browser.es-80770405.js"),[]),b=(await __vitePreload(()=>import("./analytics-plugin-ga.browser.es-594c52de.js"),[])).default,h=(await __vitePreload(()=>import("./plausible-b4c6fbe9.js").then(m=>m.p),[])).default;analytics=d({app:"mermaid-live-editor",plugins:[b({measurementIds:["UA-153180559-1"]}),h({domain:"mermaid.live",hashMode:!1,trackLocalhost:!1,apiHost:"https://plausible.io"})]})}catch(d){console.log(d),console.info("Analytics blocked ;)")}},detectType=d=>d.replace(/^\s*%%.*\n/g,`
`).trimStart().split(" ")[0];let timeout;const saveStatistics=d=>{analytics&&(clearTimeout(timeout),timeout=window.setTimeout(()=>{const b=detectType(d);console.debug(`ga: send event: render ${b}`),logEvent("render",{graphType:b})},5e3))},logEvent=async(d,b)=>{await(analytics==null?void 0:analytics.track(d,b))};/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(d){let b=d.length;for(;--b>=0;)d[b]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),extra_dbits=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(d,b,h,m,f){this.static_tree=d,this.extra_bits=b,this.extra_base=h,this.elems=m,this.max_length=f,this.has_stree=d&&d.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(d,b){this.dyn_tree=d,this.max_code=0,this.stat_desc=b}const d_code=d=>d<256?_dist_code[d]:_dist_code[256+(d>>>7)],put_short=(d,b)=>{d.pending_buf[d.pending++]=b&255,d.pending_buf[d.pending++]=b>>>8&255},send_bits=(d,b,h)=>{d.bi_valid>Buf_size-h?(d.bi_buf|=b<<d.bi_valid&65535,put_short(d,d.bi_buf),d.bi_buf=b>>Buf_size-d.bi_valid,d.bi_valid+=h-Buf_size):(d.bi_buf|=b<<d.bi_valid&65535,d.bi_valid+=h)},send_code=(d,b,h)=>{send_bits(d,h[b*2],h[b*2+1])},bi_reverse=(d,b)=>{let h=0;do h|=d&1,d>>>=1,h<<=1;while(--b>0);return h>>>1},bi_flush=d=>{d.bi_valid===16?(put_short(d,d.bi_buf),d.bi_buf=0,d.bi_valid=0):d.bi_valid>=8&&(d.pending_buf[d.pending++]=d.bi_buf&255,d.bi_buf>>=8,d.bi_valid-=8)},gen_bitlen=(d,b)=>{const h=b.dyn_tree,m=b.max_code,f=b.stat_desc.static_tree,v=b.stat_desc.has_stree,_=b.stat_desc.extra_bits,S=b.stat_desc.extra_base,M=b.stat_desc.max_length;let E,D,B,z,H,J,rt=0;for(z=0;z<=MAX_BITS$1;z++)d.bl_count[z]=0;for(h[d.heap[d.heap_max]*2+1]=0,E=d.heap_max+1;E<HEAP_SIZE$1;E++)D=d.heap[E],z=h[h[D*2+1]*2+1]+1,z>M&&(z=M,rt++),h[D*2+1]=z,!(D>m)&&(d.bl_count[z]++,H=0,D>=S&&(H=_[D-S]),J=h[D*2],d.opt_len+=J*(z+H),v&&(d.static_len+=J*(f[D*2+1]+H)));if(rt!==0){do{for(z=M-1;d.bl_count[z]===0;)z--;d.bl_count[z]--,d.bl_count[z+1]+=2,d.bl_count[M]--,rt-=2}while(rt>0);for(z=M;z!==0;z--)for(D=d.bl_count[z];D!==0;)B=d.heap[--E],!(B>m)&&(h[B*2+1]!==z&&(d.opt_len+=(z-h[B*2+1])*h[B*2],h[B*2+1]=z),D--)}},gen_codes=(d,b,h)=>{const m=new Array(MAX_BITS$1+1);let f=0,v,_;for(v=1;v<=MAX_BITS$1;v++)m[v]=f=f+h[v-1]<<1;for(_=0;_<=b;_++){let S=d[_*2+1];S!==0&&(d[_*2]=bi_reverse(m[S]++,S))}},tr_static_init=()=>{let d,b,h,m,f;const v=new Array(MAX_BITS$1+1);for(h=0,m=0;m<LENGTH_CODES$1-1;m++)for(base_length[m]=h,d=0;d<1<<extra_lbits[m];d++)_length_code[h++]=m;for(_length_code[h-1]=m,f=0,m=0;m<16;m++)for(base_dist[m]=f,d=0;d<1<<extra_dbits[m];d++)_dist_code[f++]=m;for(f>>=7;m<D_CODES$1;m++)for(base_dist[m]=f<<7,d=0;d<1<<extra_dbits[m]-7;d++)_dist_code[256+f++]=m;for(b=0;b<=MAX_BITS$1;b++)v[b]=0;for(d=0;d<=143;)static_ltree[d*2+1]=8,d++,v[8]++;for(;d<=255;)static_ltree[d*2+1]=9,d++,v[9]++;for(;d<=279;)static_ltree[d*2+1]=7,d++,v[7]++;for(;d<=287;)static_ltree[d*2+1]=8,d++,v[8]++;for(gen_codes(static_ltree,L_CODES$1+1,v),d=0;d<D_CODES$1;d++)static_dtree[d*2+1]=5,static_dtree[d*2]=bi_reverse(d,5);static_l_desc=new StaticTreeDesc(static_ltree,extra_lbits,LITERALS$1+1,L_CODES$1,MAX_BITS$1),static_d_desc=new StaticTreeDesc(static_dtree,extra_dbits,0,D_CODES$1,MAX_BITS$1),static_bl_desc=new StaticTreeDesc(new Array(0),extra_blbits,0,BL_CODES$1,MAX_BL_BITS)},init_block=d=>{let b;for(b=0;b<L_CODES$1;b++)d.dyn_ltree[b*2]=0;for(b=0;b<D_CODES$1;b++)d.dyn_dtree[b*2]=0;for(b=0;b<BL_CODES$1;b++)d.bl_tree[b*2]=0;d.dyn_ltree[END_BLOCK*2]=1,d.opt_len=d.static_len=0,d.last_lit=d.matches=0},bi_windup=d=>{d.bi_valid>8?put_short(d,d.bi_buf):d.bi_valid>0&&(d.pending_buf[d.pending++]=d.bi_buf),d.bi_buf=0,d.bi_valid=0},copy_block=(d,b,h,m)=>{bi_windup(d),m&&(put_short(d,h),put_short(d,~h)),d.pending_buf.set(d.window.subarray(b,b+h),d.pending),d.pending+=h},smaller=(d,b,h,m)=>{const f=b*2,v=h*2;return d[f]<d[v]||d[f]===d[v]&&m[b]<=m[h]},pqdownheap=(d,b,h)=>{const m=d.heap[h];let f=h<<1;for(;f<=d.heap_len&&(f<d.heap_len&&smaller(b,d.heap[f+1],d.heap[f],d.depth)&&f++,!smaller(b,m,d.heap[f],d.depth));)d.heap[h]=d.heap[f],h=f,f<<=1;d.heap[h]=m},compress_block=(d,b,h)=>{let m,f,v=0,_,S;if(d.last_lit!==0)do m=d.pending_buf[d.d_buf+v*2]<<8|d.pending_buf[d.d_buf+v*2+1],f=d.pending_buf[d.l_buf+v],v++,m===0?send_code(d,f,b):(_=_length_code[f],send_code(d,_+LITERALS$1+1,b),S=extra_lbits[_],S!==0&&(f-=base_length[_],send_bits(d,f,S)),m--,_=d_code(m),send_code(d,_,h),S=extra_dbits[_],S!==0&&(m-=base_dist[_],send_bits(d,m,S)));while(v<d.last_lit);send_code(d,END_BLOCK,b)},build_tree=(d,b)=>{const h=b.dyn_tree,m=b.stat_desc.static_tree,f=b.stat_desc.has_stree,v=b.stat_desc.elems;let _,S,M=-1,E;for(d.heap_len=0,d.heap_max=HEAP_SIZE$1,_=0;_<v;_++)h[_*2]!==0?(d.heap[++d.heap_len]=M=_,d.depth[_]=0):h[_*2+1]=0;for(;d.heap_len<2;)E=d.heap[++d.heap_len]=M<2?++M:0,h[E*2]=1,d.depth[E]=0,d.opt_len--,f&&(d.static_len-=m[E*2+1]);for(b.max_code=M,_=d.heap_len>>1;_>=1;_--)pqdownheap(d,h,_);E=v;do _=d.heap[1],d.heap[1]=d.heap[d.heap_len--],pqdownheap(d,h,1),S=d.heap[1],d.heap[--d.heap_max]=_,d.heap[--d.heap_max]=S,h[E*2]=h[_*2]+h[S*2],d.depth[E]=(d.depth[_]>=d.depth[S]?d.depth[_]:d.depth[S])+1,h[_*2+1]=h[S*2+1]=E,d.heap[1]=E++,pqdownheap(d,h,1);while(d.heap_len>=2);d.heap[--d.heap_max]=d.heap[1],gen_bitlen(d,b),gen_codes(h,M,d.bl_count)},scan_tree=(d,b,h)=>{let m,f=-1,v,_=b[0*2+1],S=0,M=7,E=4;for(_===0&&(M=138,E=3),b[(h+1)*2+1]=65535,m=0;m<=h;m++)v=_,_=b[(m+1)*2+1],!(++S<M&&v===_)&&(S<E?d.bl_tree[v*2]+=S:v!==0?(v!==f&&d.bl_tree[v*2]++,d.bl_tree[REP_3_6*2]++):S<=10?d.bl_tree[REPZ_3_10*2]++:d.bl_tree[REPZ_11_138*2]++,S=0,f=v,_===0?(M=138,E=3):v===_?(M=6,E=3):(M=7,E=4))},send_tree=(d,b,h)=>{let m,f=-1,v,_=b[0*2+1],S=0,M=7,E=4;for(_===0&&(M=138,E=3),m=0;m<=h;m++)if(v=_,_=b[(m+1)*2+1],!(++S<M&&v===_)){if(S<E)do send_code(d,v,d.bl_tree);while(--S!==0);else v!==0?(v!==f&&(send_code(d,v,d.bl_tree),S--),send_code(d,REP_3_6,d.bl_tree),send_bits(d,S-3,2)):S<=10?(send_code(d,REPZ_3_10,d.bl_tree),send_bits(d,S-3,3)):(send_code(d,REPZ_11_138,d.bl_tree),send_bits(d,S-11,7));S=0,f=v,_===0?(M=138,E=3):v===_?(M=6,E=3):(M=7,E=4)}},build_bl_tree=d=>{let b;for(scan_tree(d,d.dyn_ltree,d.l_desc.max_code),scan_tree(d,d.dyn_dtree,d.d_desc.max_code),build_tree(d,d.bl_desc),b=BL_CODES$1-1;b>=3&&d.bl_tree[bl_order[b]*2+1]===0;b--);return d.opt_len+=3*(b+1)+5+5+4,b},send_all_trees=(d,b,h,m)=>{let f;for(send_bits(d,b-257,5),send_bits(d,h-1,5),send_bits(d,m-4,4),f=0;f<m;f++)send_bits(d,d.bl_tree[bl_order[f]*2+1],3);send_tree(d,d.dyn_ltree,b-1),send_tree(d,d.dyn_dtree,h-1)},detect_data_type=d=>{let b=4093624447,h;for(h=0;h<=31;h++,b>>>=1)if(b&1&&d.dyn_ltree[h*2]!==0)return Z_BINARY;if(d.dyn_ltree[9*2]!==0||d.dyn_ltree[10*2]!==0||d.dyn_ltree[13*2]!==0)return Z_TEXT;for(h=32;h<LITERALS$1;h++)if(d.dyn_ltree[h*2]!==0)return Z_TEXT;return Z_BINARY};let static_init_done=!1;const _tr_init$1=d=>{static_init_done||(tr_static_init(),static_init_done=!0),d.l_desc=new TreeDesc(d.dyn_ltree,static_l_desc),d.d_desc=new TreeDesc(d.dyn_dtree,static_d_desc),d.bl_desc=new TreeDesc(d.bl_tree,static_bl_desc),d.bi_buf=0,d.bi_valid=0,init_block(d)},_tr_stored_block$1=(d,b,h,m)=>{send_bits(d,(STORED_BLOCK<<1)+(m?1:0),3),copy_block(d,b,h,!0)},_tr_align$1=d=>{send_bits(d,STATIC_TREES<<1,3),send_code(d,END_BLOCK,static_ltree),bi_flush(d)},_tr_flush_block$1=(d,b,h,m)=>{let f,v,_=0;d.level>0?(d.strm.data_type===Z_UNKNOWN$1&&(d.strm.data_type=detect_data_type(d)),build_tree(d,d.l_desc),build_tree(d,d.d_desc),_=build_bl_tree(d),f=d.opt_len+3+7>>>3,v=d.static_len+3+7>>>3,v<=f&&(f=v)):f=v=h+5,h+4<=f&&b!==-1?_tr_stored_block$1(d,b,h,m):d.strategy===Z_FIXED$1||v===f?(send_bits(d,(STATIC_TREES<<1)+(m?1:0),3),compress_block(d,static_ltree,static_dtree)):(send_bits(d,(DYN_TREES<<1)+(m?1:0),3),send_all_trees(d,d.l_desc.max_code+1,d.d_desc.max_code+1,_+1),compress_block(d,d.dyn_ltree,d.dyn_dtree)),init_block(d),m&&bi_windup(d)},_tr_tally$1=(d,b,h)=>(d.pending_buf[d.d_buf+d.last_lit*2]=b>>>8&255,d.pending_buf[d.d_buf+d.last_lit*2+1]=b&255,d.pending_buf[d.l_buf+d.last_lit]=h&255,d.last_lit++,b===0?d.dyn_ltree[h*2]++:(d.matches++,b--,d.dyn_ltree[(_length_code[h]+LITERALS$1+1)*2]++,d.dyn_dtree[d_code(b)*2]++),d.last_lit===d.lit_bufsize-1);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(d,b,h,m)=>{let f=d&65535|0,v=d>>>16&65535|0,_=0;for(;h!==0;){_=h>2e3?2e3:h,h-=_;do f=f+b[m++]|0,v=v+f|0;while(--_);f%=65521,v%=65521}return f|v<<16|0};var adler32_1=adler32;const makeTable=()=>{let d,b=[];for(var h=0;h<256;h++){d=h;for(var m=0;m<8;m++)d=d&1?3988292384^d>>>1:d>>>1;b[h]=d}return b},crcTable=new Uint32Array(makeTable()),crc32=(d,b,h,m)=>{const f=crcTable,v=m+h;d^=-1;for(let _=m;_<v;_++)d=d>>>8^f[(d^b[_])&255];return d^-1};var crc32_1=crc32,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(d,b)=>(d.msg=messages[b],b),rank=d=>(d<<1)-(d>4?9:0),zero=d=>{let b=d.length;for(;--b>=0;)d[b]=0};let HASH_ZLIB=(d,b,h)=>(b<<d.hash_shift^h)&d.hash_mask,HASH=HASH_ZLIB;const flush_pending=d=>{const b=d.state;let h=b.pending;h>d.avail_out&&(h=d.avail_out),h!==0&&(d.output.set(b.pending_buf.subarray(b.pending_out,b.pending_out+h),d.next_out),d.next_out+=h,b.pending_out+=h,d.total_out+=h,d.avail_out-=h,b.pending-=h,b.pending===0&&(b.pending_out=0))},flush_block_only=(d,b)=>{_tr_flush_block(d,d.block_start>=0?d.block_start:-1,d.strstart-d.block_start,b),d.block_start=d.strstart,flush_pending(d.strm)},put_byte=(d,b)=>{d.pending_buf[d.pending++]=b},putShortMSB=(d,b)=>{d.pending_buf[d.pending++]=b>>>8&255,d.pending_buf[d.pending++]=b&255},read_buf=(d,b,h,m)=>{let f=d.avail_in;return f>m&&(f=m),f===0?0:(d.avail_in-=f,b.set(d.input.subarray(d.next_in,d.next_in+f),h),d.state.wrap===1?d.adler=adler32_1(d.adler,b,f,h):d.state.wrap===2&&(d.adler=crc32_1(d.adler,b,f,h)),d.next_in+=f,d.total_in+=f,f)},longest_match=(d,b)=>{let h=d.max_chain_length,m=d.strstart,f,v,_=d.prev_length,S=d.nice_match;const M=d.strstart>d.w_size-MIN_LOOKAHEAD?d.strstart-(d.w_size-MIN_LOOKAHEAD):0,E=d.window,D=d.w_mask,B=d.prev,z=d.strstart+MAX_MATCH;let H=E[m+_-1],J=E[m+_];d.prev_length>=d.good_match&&(h>>=2),S>d.lookahead&&(S=d.lookahead);do if(f=b,!(E[f+_]!==J||E[f+_-1]!==H||E[f]!==E[m]||E[++f]!==E[m+1])){m+=2,f++;do;while(E[++m]===E[++f]&&E[++m]===E[++f]&&E[++m]===E[++f]&&E[++m]===E[++f]&&E[++m]===E[++f]&&E[++m]===E[++f]&&E[++m]===E[++f]&&E[++m]===E[++f]&&m<z);if(v=MAX_MATCH-(z-m),m=z-MAX_MATCH,v>_){if(d.match_start=b,_=v,v>=S)break;H=E[m+_-1],J=E[m+_]}}while((b=B[b&D])>M&&--h!==0);return _<=d.lookahead?_:d.lookahead},fill_window=d=>{const b=d.w_size;let h,m,f,v,_;do{if(v=d.window_size-d.lookahead-d.strstart,d.strstart>=b+(b-MIN_LOOKAHEAD)){d.window.set(d.window.subarray(b,b+b),0),d.match_start-=b,d.strstart-=b,d.block_start-=b,m=d.hash_size,h=m;do f=d.head[--h],d.head[h]=f>=b?f-b:0;while(--m);m=b,h=m;do f=d.prev[--h],d.prev[h]=f>=b?f-b:0;while(--m);v+=b}if(d.strm.avail_in===0)break;if(m=read_buf(d.strm,d.window,d.strstart+d.lookahead,v),d.lookahead+=m,d.lookahead+d.insert>=MIN_MATCH)for(_=d.strstart-d.insert,d.ins_h=d.window[_],d.ins_h=HASH(d,d.ins_h,d.window[_+1]);d.insert&&(d.ins_h=HASH(d,d.ins_h,d.window[_+MIN_MATCH-1]),d.prev[_&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=_,_++,d.insert--,!(d.lookahead+d.insert<MIN_MATCH)););}while(d.lookahead<MIN_LOOKAHEAD&&d.strm.avail_in!==0)},deflate_stored=(d,b)=>{let h=65535;for(h>d.pending_buf_size-5&&(h=d.pending_buf_size-5);;){if(d.lookahead<=1){if(fill_window(d),d.lookahead===0&&b===Z_NO_FLUSH$2)return BS_NEED_MORE;if(d.lookahead===0)break}d.strstart+=d.lookahead,d.lookahead=0;const m=d.block_start+h;if((d.strstart===0||d.strstart>=m)&&(d.lookahead=d.strstart-m,d.strstart=m,flush_block_only(d,!1),d.strm.avail_out===0)||d.strstart-d.block_start>=d.w_size-MIN_LOOKAHEAD&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):(d.strstart>d.block_start&&(flush_block_only(d,!1),d.strm.avail_out===0),BS_NEED_MORE)},deflate_fast=(d,b)=>{let h,m;for(;;){if(d.lookahead<MIN_LOOKAHEAD){if(fill_window(d),d.lookahead<MIN_LOOKAHEAD&&b===Z_NO_FLUSH$2)return BS_NEED_MORE;if(d.lookahead===0)break}if(h=0,d.lookahead>=MIN_MATCH&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),h=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),h!==0&&d.strstart-h<=d.w_size-MIN_LOOKAHEAD&&(d.match_length=longest_match(d,h)),d.match_length>=MIN_MATCH)if(m=_tr_tally(d,d.strstart-d.match_start,d.match_length-MIN_MATCH),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=MIN_MATCH){d.match_length--;do d.strstart++,d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),h=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart;while(--d.match_length!==0);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+1]);else m=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(m&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=d.strstart<MIN_MATCH-1?d.strstart:MIN_MATCH-1,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.last_lit&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_slow=(d,b)=>{let h,m,f;for(;;){if(d.lookahead<MIN_LOOKAHEAD){if(fill_window(d),d.lookahead<MIN_LOOKAHEAD&&b===Z_NO_FLUSH$2)return BS_NEED_MORE;if(d.lookahead===0)break}if(h=0,d.lookahead>=MIN_MATCH&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),h=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),d.prev_length=d.match_length,d.prev_match=d.match_start,d.match_length=MIN_MATCH-1,h!==0&&d.prev_length<d.max_lazy_match&&d.strstart-h<=d.w_size-MIN_LOOKAHEAD&&(d.match_length=longest_match(d,h),d.match_length<=5&&(d.strategy===Z_FILTERED||d.match_length===MIN_MATCH&&d.strstart-d.match_start>4096)&&(d.match_length=MIN_MATCH-1)),d.prev_length>=MIN_MATCH&&d.match_length<=d.prev_length){f=d.strstart+d.lookahead-MIN_MATCH,m=_tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-MIN_MATCH),d.lookahead-=d.prev_length-1,d.prev_length-=2;do++d.strstart<=f&&(d.ins_h=HASH(d,d.ins_h,d.window[d.strstart+MIN_MATCH-1]),h=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart);while(--d.prev_length!==0);if(d.match_available=0,d.match_length=MIN_MATCH-1,d.strstart++,m&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}else if(d.match_available){if(m=_tr_tally(d,0,d.window[d.strstart-1]),m&&flush_block_only(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return BS_NEED_MORE}else d.match_available=1,d.strstart++,d.lookahead--}return d.match_available&&(m=_tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart<MIN_MATCH-1?d.strstart:MIN_MATCH-1,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.last_lit&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_rle=(d,b)=>{let h,m,f,v;const _=d.window;for(;;){if(d.lookahead<=MAX_MATCH){if(fill_window(d),d.lookahead<=MAX_MATCH&&b===Z_NO_FLUSH$2)return BS_NEED_MORE;if(d.lookahead===0)break}if(d.match_length=0,d.lookahead>=MIN_MATCH&&d.strstart>0&&(f=d.strstart-1,m=_[f],m===_[++f]&&m===_[++f]&&m===_[++f])){v=d.strstart+MAX_MATCH;do;while(m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&m===_[++f]&&f<v);d.match_length=MAX_MATCH-(v-f),d.match_length>d.lookahead&&(d.match_length=d.lookahead)}if(d.match_length>=MIN_MATCH?(h=_tr_tally(d,1,d.match_length-MIN_MATCH),d.lookahead-=d.match_length,d.strstart+=d.match_length,d.match_length=0):(h=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++),h&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.last_lit&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(d,b)=>{let h;for(;;){if(d.lookahead===0&&(fill_window(d),d.lookahead===0)){if(b===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(d.match_length=0,h=_tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++,h&&(flush_block_only(d,!1),d.strm.avail_out===0))return BS_NEED_MORE}return d.insert=0,b===Z_FINISH$3?(flush_block_only(d,!0),d.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):d.last_lit&&(flush_block_only(d,!1),d.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(d,b,h,m,f){this.good_length=d,this.max_lazy=b,this.nice_length=h,this.max_chain=m,this.func=f}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=d=>{d.window_size=2*d.w_size,zero(d.head),d.max_lazy_match=configuration_table[d.level].max_lazy,d.good_match=configuration_table[d.level].good_length,d.nice_match=configuration_table[d.level].nice_length,d.max_chain_length=configuration_table[d.level].max_chain,d.strstart=0,d.block_start=0,d.lookahead=0,d.insert=0,d.match_length=d.prev_length=MIN_MATCH-1,d.match_available=0,d.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateResetKeep=d=>{if(!d||!d.state)return err(d,Z_STREAM_ERROR$2);d.total_in=d.total_out=0,d.data_type=Z_UNKNOWN;const b=d.state;return b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?INIT_STATE:BUSY_STATE,d.adler=b.wrap===2?0:1,b.last_flush=Z_NO_FLUSH$2,_tr_init(b),Z_OK$3},deflateReset=d=>{const b=deflateResetKeep(d);return b===Z_OK$3&&lm_init(d.state),b},deflateSetHeader=(d,b)=>!d||!d.state||d.state.wrap!==2?Z_STREAM_ERROR$2:(d.state.gzhead=b,Z_OK$3),deflateInit2=(d,b,h,m,f,v)=>{if(!d)return Z_STREAM_ERROR$2;let _=1;if(b===Z_DEFAULT_COMPRESSION$1&&(b=6),m<0?(_=0,m=-m):m>15&&(_=2,m-=16),f<1||f>MAX_MEM_LEVEL||h!==Z_DEFLATED$2||m<8||m>15||b<0||b>9||v<0||v>Z_FIXED)return err(d,Z_STREAM_ERROR$2);m===8&&(m=9);const S=new DeflateState;return d.state=S,S.strm=d,S.wrap=_,S.gzhead=null,S.w_bits=m,S.w_size=1<<S.w_bits,S.w_mask=S.w_size-1,S.hash_bits=f+7,S.hash_size=1<<S.hash_bits,S.hash_mask=S.hash_size-1,S.hash_shift=~~((S.hash_bits+MIN_MATCH-1)/MIN_MATCH),S.window=new Uint8Array(S.w_size*2),S.head=new Uint16Array(S.hash_size),S.prev=new Uint16Array(S.w_size),S.lit_bufsize=1<<f+6,S.pending_buf_size=S.lit_bufsize*4,S.pending_buf=new Uint8Array(S.pending_buf_size),S.d_buf=1*S.lit_bufsize,S.l_buf=(1+2)*S.lit_bufsize,S.level=b,S.strategy=v,S.method=h,deflateReset(d)},deflateInit=(d,b)=>deflateInit2(d,b,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(d,b)=>{let h,m;if(!d||!d.state||b>Z_BLOCK$1||b<0)return d?err(d,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const f=d.state;if(!d.output||!d.input&&d.avail_in!==0||f.status===FINISH_STATE&&b!==Z_FINISH$3)return err(d,d.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);f.strm=d;const v=f.last_flush;if(f.last_flush=b,f.status===INIT_STATE)if(f.wrap===2)d.adler=0,put_byte(f,31),put_byte(f,139),put_byte(f,8),f.gzhead?(put_byte(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),put_byte(f,f.gzhead.time&255),put_byte(f,f.gzhead.time>>8&255),put_byte(f,f.gzhead.time>>16&255),put_byte(f,f.gzhead.time>>24&255),put_byte(f,f.level===9?2:f.strategy>=Z_HUFFMAN_ONLY||f.level<2?4:0),put_byte(f,f.gzhead.os&255),f.gzhead.extra&&f.gzhead.extra.length&&(put_byte(f,f.gzhead.extra.length&255),put_byte(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=EXTRA_STATE):(put_byte(f,0),put_byte(f,0),put_byte(f,0),put_byte(f,0),put_byte(f,0),put_byte(f,f.level===9?2:f.strategy>=Z_HUFFMAN_ONLY||f.level<2?4:0),put_byte(f,OS_CODE),f.status=BUSY_STATE);else{let _=Z_DEFLATED$2+(f.w_bits-8<<4)<<8,S=-1;f.strategy>=Z_HUFFMAN_ONLY||f.level<2?S=0:f.level<6?S=1:f.level===6?S=2:S=3,_|=S<<6,f.strstart!==0&&(_|=PRESET_DICT),_+=31-_%31,f.status=BUSY_STATE,putShortMSB(f,_),f.strstart!==0&&(putShortMSB(f,d.adler>>>16),putShortMSB(f,d.adler&65535)),d.adler=1}if(f.status===EXTRA_STATE)if(f.gzhead.extra){for(h=f.pending;f.gzindex<(f.gzhead.extra.length&65535)&&!(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),flush_pending(d),h=f.pending,f.pending===f.pending_buf_size));)put_byte(f,f.gzhead.extra[f.gzindex]&255),f.gzindex++;f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=NAME_STATE)}else f.status=NAME_STATE;if(f.status===NAME_STATE)if(f.gzhead.name){h=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),flush_pending(d),h=f.pending,f.pending===f.pending_buf_size)){m=1;break}f.gzindex<f.gzhead.name.length?m=f.gzhead.name.charCodeAt(f.gzindex++)&255:m=0,put_byte(f,m)}while(m!==0);f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),m===0&&(f.gzindex=0,f.status=COMMENT_STATE)}else f.status=COMMENT_STATE;if(f.status===COMMENT_STATE)if(f.gzhead.comment){h=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),flush_pending(d),h=f.pending,f.pending===f.pending_buf_size)){m=1;break}f.gzindex<f.gzhead.comment.length?m=f.gzhead.comment.charCodeAt(f.gzindex++)&255:m=0,put_byte(f,m)}while(m!==0);f.gzhead.hcrc&&f.pending>h&&(d.adler=crc32_1(d.adler,f.pending_buf,f.pending-h,h)),m===0&&(f.status=HCRC_STATE)}else f.status=HCRC_STATE;if(f.status===HCRC_STATE&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&flush_pending(d),f.pending+2<=f.pending_buf_size&&(put_byte(f,d.adler&255),put_byte(f,d.adler>>8&255),d.adler=0,f.status=BUSY_STATE)):f.status=BUSY_STATE),f.pending!==0){if(flush_pending(d),d.avail_out===0)return f.last_flush=-1,Z_OK$3}else if(d.avail_in===0&&rank(b)<=rank(v)&&b!==Z_FINISH$3)return err(d,Z_BUF_ERROR$1);if(f.status===FINISH_STATE&&d.avail_in!==0)return err(d,Z_BUF_ERROR$1);if(d.avail_in!==0||f.lookahead!==0||b!==Z_NO_FLUSH$2&&f.status!==FINISH_STATE){let _=f.strategy===Z_HUFFMAN_ONLY?deflate_huff(f,b):f.strategy===Z_RLE?deflate_rle(f,b):configuration_table[f.level].func(f,b);if((_===BS_FINISH_STARTED||_===BS_FINISH_DONE)&&(f.status=FINISH_STATE),_===BS_NEED_MORE||_===BS_FINISH_STARTED)return d.avail_out===0&&(f.last_flush=-1),Z_OK$3;if(_===BS_BLOCK_DONE&&(b===Z_PARTIAL_FLUSH?_tr_align(f):b!==Z_BLOCK$1&&(_tr_stored_block(f,0,0,!1),b===Z_FULL_FLUSH$1&&(zero(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),flush_pending(d),d.avail_out===0))return f.last_flush=-1,Z_OK$3}return b!==Z_FINISH$3?Z_OK$3:f.wrap<=0?Z_STREAM_END$3:(f.wrap===2?(put_byte(f,d.adler&255),put_byte(f,d.adler>>8&255),put_byte(f,d.adler>>16&255),put_byte(f,d.adler>>24&255),put_byte(f,d.total_in&255),put_byte(f,d.total_in>>8&255),put_byte(f,d.total_in>>16&255),put_byte(f,d.total_in>>24&255)):(putShortMSB(f,d.adler>>>16),putShortMSB(f,d.adler&65535)),flush_pending(d),f.wrap>0&&(f.wrap=-f.wrap),f.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=d=>{if(!d||!d.state)return Z_STREAM_ERROR$2;const b=d.state.status;return b!==INIT_STATE&&b!==EXTRA_STATE&&b!==NAME_STATE&&b!==COMMENT_STATE&&b!==HCRC_STATE&&b!==BUSY_STATE&&b!==FINISH_STATE?err(d,Z_STREAM_ERROR$2):(d.state=null,b===BUSY_STATE?err(d,Z_DATA_ERROR$2):Z_OK$3)},deflateSetDictionary=(d,b)=>{let h=b.length;if(!d||!d.state)return Z_STREAM_ERROR$2;const m=d.state,f=m.wrap;if(f===2||f===1&&m.status!==INIT_STATE||m.lookahead)return Z_STREAM_ERROR$2;if(f===1&&(d.adler=adler32_1(d.adler,b,h,0)),m.wrap=0,h>=m.w_size){f===0&&(zero(m.head),m.strstart=0,m.block_start=0,m.insert=0);let M=new Uint8Array(m.w_size);M.set(b.subarray(h-m.w_size,h),0),b=M,h=m.w_size}const v=d.avail_in,_=d.next_in,S=d.input;for(d.avail_in=h,d.next_in=0,d.input=b,fill_window(m);m.lookahead>=MIN_MATCH;){let M=m.strstart,E=m.lookahead-(MIN_MATCH-1);do m.ins_h=HASH(m,m.ins_h,m.window[M+MIN_MATCH-1]),m.prev[M&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=M,M++;while(--E);m.strstart=M,m.lookahead=MIN_MATCH-1,fill_window(m)}return m.strstart+=m.lookahead,m.block_start=m.strstart,m.insert=m.lookahead,m.lookahead=0,m.match_length=m.prev_length=MIN_MATCH-1,m.match_available=0,d.next_in=_,d.input=S,d.avail_in=v,m.wrap=f,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(d,b)=>Object.prototype.hasOwnProperty.call(d,b);var assign=function(d){const b=Array.prototype.slice.call(arguments,1);for(;b.length;){const h=b.shift();if(!!h){if(typeof h!="object")throw new TypeError(h+"must be non-object");for(const m in h)_has(h,m)&&(d[m]=h[m])}}return d},flattenChunks=d=>{let b=0;for(let m=0,f=d.length;m<f;m++)b+=d[m].length;const h=new Uint8Array(b);for(let m=0,f=0,v=d.length;m<v;m++){let _=d[m];h.set(_,f),f+=_.length}return h},common={assign,flattenChunks};let STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(d){STR_APPLY_UIA_OK=!1}const _utf8len=new Uint8Array(256);for(let d=0;d<256;d++)_utf8len[d]=d>=252?6:d>=248?5:d>=240?4:d>=224?3:d>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=d=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(d);let b,h,m,f,v,_=d.length,S=0;for(f=0;f<_;f++)h=d.charCodeAt(f),(h&64512)===55296&&f+1<_&&(m=d.charCodeAt(f+1),(m&64512)===56320&&(h=65536+(h-55296<<10)+(m-56320),f++)),S+=h<128?1:h<2048?2:h<65536?3:4;for(b=new Uint8Array(S),v=0,f=0;v<S;f++)h=d.charCodeAt(f),(h&64512)===55296&&f+1<_&&(m=d.charCodeAt(f+1),(m&64512)===56320&&(h=65536+(h-55296<<10)+(m-56320),f++)),h<128?b[v++]=h:h<2048?(b[v++]=192|h>>>6,b[v++]=128|h&63):h<65536?(b[v++]=224|h>>>12,b[v++]=128|h>>>6&63,b[v++]=128|h&63):(b[v++]=240|h>>>18,b[v++]=128|h>>>12&63,b[v++]=128|h>>>6&63,b[v++]=128|h&63);return b};const buf2binstring=(d,b)=>{if(b<65534&&d.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,d.length===b?d:d.subarray(0,b));let h="";for(let m=0;m<b;m++)h+=String.fromCharCode(d[m]);return h};var buf2string=(d,b)=>{const h=b||d.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(d.subarray(0,b));let m,f;const v=new Array(h*2);for(f=0,m=0;m<h;){let _=d[m++];if(_<128){v[f++]=_;continue}let S=_utf8len[_];if(S>4){v[f++]=65533,m+=S-1;continue}for(_&=S===2?31:S===3?15:7;S>1&&m<h;)_=_<<6|d[m++]&63,S--;if(S>1){v[f++]=65533;continue}_<65536?v[f++]=_:(_-=65536,v[f++]=55296|_>>10&1023,v[f++]=56320|_&1023)}return buf2binstring(v,f)},utf8border=(d,b)=>{b=b||d.length,b>d.length&&(b=d.length);let h=b-1;for(;h>=0&&(d[h]&192)===128;)h--;return h<0||h===0?b:h+_utf8len[d[h]]>b?h:b},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const toString$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(d){this.options=common.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},d||{});let b=this.options;b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let h=deflate_1$2.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(h!==Z_OK$2)throw new Error(messages[h]);if(b.header&&deflate_1$2.deflateSetHeader(this.strm,b.header),b.dictionary){let m;if(typeof b.dictionary=="string"?m=strings.string2buf(b.dictionary):toString$1.call(b.dictionary)==="[object ArrayBuffer]"?m=new Uint8Array(b.dictionary):m=b.dictionary,h=deflate_1$2.deflateSetDictionary(this.strm,m),h!==Z_OK$2)throw new Error(messages[h]);this._dict_set=!0}}Deflate$1.prototype.push=function(d,b){const h=this.strm,m=this.options.chunkSize;let f,v;if(this.ended)return!1;for(b===~~b?v=b:v=b===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof d=="string"?h.input=strings.string2buf(d):toString$1.call(d)==="[object ArrayBuffer]"?h.input=new Uint8Array(d):h.input=d,h.next_in=0,h.avail_in=h.input.length;;){if(h.avail_out===0&&(h.output=new Uint8Array(m),h.next_out=0,h.avail_out=m),(v===Z_SYNC_FLUSH||v===Z_FULL_FLUSH)&&h.avail_out<=6){this.onData(h.output.subarray(0,h.next_out)),h.avail_out=0;continue}if(f=deflate_1$2.deflate(h,v),f===Z_STREAM_END$2)return h.next_out>0&&this.onData(h.output.subarray(0,h.next_out)),f=deflate_1$2.deflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===Z_OK$2;if(h.avail_out===0){this.onData(h.output);continue}if(v>0&&h.next_out>0){this.onData(h.output.subarray(0,h.next_out)),h.avail_out=0;continue}if(h.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(d){this.chunks.push(d)};Deflate$1.prototype.onEnd=function(d){d===Z_OK$2&&(this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function deflate$1(d,b){const h=new Deflate$1(b);if(h.push(d,!0),h.err)throw h.msg||messages[h.err];return h.result}function deflateRaw$1(d,b){return b=b||{},b.raw=!0,deflate$1(d,b)}function gzip$1(d,b){return b=b||{},b.gzip=!0,deflate$1(d,b)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,constants$1=constants$2,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1,constants:constants$1};const BAD$1=30,TYPE$1=12;var inffast=function d(b,h){let m,f,v,_,S,M,E,D,B,z,H,J,rt,dt,K,_t,at,ot,bt,zt,Tt,mt,Ct,xt;const gt=b.state;m=b.next_in,Ct=b.input,f=m+(b.avail_in-5),v=b.next_out,xt=b.output,_=v-(h-b.avail_out),S=v+(b.avail_out-257),M=gt.dmax,E=gt.wsize,D=gt.whave,B=gt.wnext,z=gt.window,H=gt.hold,J=gt.bits,rt=gt.lencode,dt=gt.distcode,K=(1<<gt.lenbits)-1,_t=(1<<gt.distbits)-1;t:do{J<15&&(H+=Ct[m++]<<J,J+=8,H+=Ct[m++]<<J,J+=8),at=rt[H&K];e:for(;;){if(ot=at>>>24,H>>>=ot,J-=ot,ot=at>>>16&255,ot===0)xt[v++]=at&65535;else if(ot&16){bt=at&65535,ot&=15,ot&&(J<ot&&(H+=Ct[m++]<<J,J+=8),bt+=H&(1<<ot)-1,H>>>=ot,J-=ot),J<15&&(H+=Ct[m++]<<J,J+=8,H+=Ct[m++]<<J,J+=8),at=dt[H&_t];r:for(;;){if(ot=at>>>24,H>>>=ot,J-=ot,ot=at>>>16&255,ot&16){if(zt=at&65535,ot&=15,J<ot&&(H+=Ct[m++]<<J,J+=8,J<ot&&(H+=Ct[m++]<<J,J+=8)),zt+=H&(1<<ot)-1,zt>M){b.msg="invalid distance too far back",gt.mode=BAD$1;break t}if(H>>>=ot,J-=ot,ot=v-_,zt>ot){if(ot=zt-ot,ot>D&&gt.sane){b.msg="invalid distance too far back",gt.mode=BAD$1;break t}if(Tt=0,mt=z,B===0){if(Tt+=E-ot,ot<bt){bt-=ot;do xt[v++]=z[Tt++];while(--ot);Tt=v-zt,mt=xt}}else if(B<ot){if(Tt+=E+B-ot,ot-=B,ot<bt){bt-=ot;do xt[v++]=z[Tt++];while(--ot);if(Tt=0,B<bt){ot=B,bt-=ot;do xt[v++]=z[Tt++];while(--ot);Tt=v-zt,mt=xt}}}else if(Tt+=B-ot,ot<bt){bt-=ot;do xt[v++]=z[Tt++];while(--ot);Tt=v-zt,mt=xt}for(;bt>2;)xt[v++]=mt[Tt++],xt[v++]=mt[Tt++],xt[v++]=mt[Tt++],bt-=3;bt&&(xt[v++]=mt[Tt++],bt>1&&(xt[v++]=mt[Tt++]))}else{Tt=v-zt;do xt[v++]=xt[Tt++],xt[v++]=xt[Tt++],xt[v++]=xt[Tt++],bt-=3;while(bt>2);bt&&(xt[v++]=xt[Tt++],bt>1&&(xt[v++]=xt[Tt++]))}}else if((ot&64)===0){at=dt[(at&65535)+(H&(1<<ot)-1)];continue r}else{b.msg="invalid distance code",gt.mode=BAD$1;break t}break}}else if((ot&64)===0){at=rt[(at&65535)+(H&(1<<ot)-1)];continue e}else if(ot&32){gt.mode=TYPE$1;break t}else{b.msg="invalid literal/length code",gt.mode=BAD$1;break t}break}}while(m<f&&v<S);bt=J>>3,m-=bt,J-=bt<<3,H&=(1<<J)-1,b.next_in=m,b.next_out=v,b.avail_in=m<f?5+(f-m):5-(m-f),b.avail_out=v<S?257+(S-v):257-(v-S),gt.hold=H,gt.bits=J};const MAXBITS=15,ENOUGH_LENS$1=852,ENOUGH_DISTS$1=592,CODES$1=0,LENS$1=1,DISTS$1=2,lbase=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),lext=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),dbase=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),dext=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),inflate_table=(d,b,h,m,f,v,_,S)=>{const M=S.bits;let E=0,D=0,B=0,z=0,H=0,J=0,rt=0,dt=0,K=0,_t=0,at,ot,bt,zt,Tt,mt=null,Ct=0,xt;const gt=new Uint16Array(MAXBITS+1),et=new Uint16Array(MAXBITS+1);let ft=null,q=0,wt,W,St;for(E=0;E<=MAXBITS;E++)gt[E]=0;for(D=0;D<m;D++)gt[b[h+D]]++;for(H=M,z=MAXBITS;z>=1&&gt[z]===0;z--);if(H>z&&(H=z),z===0)return f[v++]=1<<24|64<<16|0,f[v++]=1<<24|64<<16|0,S.bits=1,0;for(B=1;B<z&&gt[B]===0;B++);for(H<B&&(H=B),dt=1,E=1;E<=MAXBITS;E++)if(dt<<=1,dt-=gt[E],dt<0)return-1;if(dt>0&&(d===CODES$1||z!==1))return-1;for(et[1]=0,E=1;E<MAXBITS;E++)et[E+1]=et[E]+gt[E];for(D=0;D<m;D++)b[h+D]!==0&&(_[et[b[h+D]]++]=D);if(d===CODES$1?(mt=ft=_,xt=19):d===LENS$1?(mt=lbase,Ct-=257,ft=lext,q-=257,xt=256):(mt=dbase,ft=dext,xt=-1),_t=0,D=0,E=B,Tt=v,J=H,rt=0,bt=-1,K=1<<H,zt=K-1,d===LENS$1&&K>ENOUGH_LENS$1||d===DISTS$1&&K>ENOUGH_DISTS$1)return 1;for(;;){wt=E-rt,_[D]<xt?(W=0,St=_[D]):_[D]>xt?(W=ft[q+_[D]],St=mt[Ct+_[D]]):(W=32+64,St=0),at=1<<E-rt,ot=1<<J,B=ot;do ot-=at,f[Tt+(_t>>rt)+ot]=wt<<24|W<<16|St|0;while(ot!==0);for(at=1<<E-1;_t&at;)at>>=1;if(at!==0?(_t&=at-1,_t+=at):_t=0,D++,--gt[E]===0){if(E===z)break;E=b[h+_[D]]}if(E>H&&(_t&zt)!==bt){for(rt===0&&(rt=H),Tt+=B,J=E-rt,dt=1<<J;J+rt<z&&(dt-=gt[J+rt],!(dt<=0));)J++,dt<<=1;if(K+=1<<J,d===LENS$1&&K>ENOUGH_LENS$1||d===DISTS$1&&K>ENOUGH_DISTS$1)return 1;bt=_t&zt,f[bt]=H<<24|J<<16|Tt-v|0}}return _t!==0&&(f[Tt+_t]=E-rt<<24|64<<16|0),S.bits=H,0};var inftrees=inflate_table;const CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$2,HEAD=1,FLAGS=2,TIME=3,OS=4,EXLEN=5,EXTRA=6,NAME=7,COMMENT=8,HCRC=9,DICTID=10,DICT=11,TYPE=12,TYPEDO=13,STORED=14,COPY_=15,COPY=16,TABLE=17,LENLENS=18,CODELENS=19,LEN_=20,LEN=21,LENEXT=22,DIST=23,DISTEXT=24,MATCH=25,LIT=26,CHECK=27,LENGTH=28,DONE=29,BAD=30,MEM=31,SYNC=32,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=d=>(d>>>24&255)+(d>>>8&65280)+((d&65280)<<8)+((d&255)<<24);function InflateState(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateResetKeep=d=>{if(!d||!d.state)return Z_STREAM_ERROR$1;const b=d.state;return d.total_in=d.total_out=b.total=0,d.msg="",b.wrap&&(d.adler=b.wrap&1),b.mode=HEAD,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new Int32Array(ENOUGH_LENS),b.distcode=b.distdyn=new Int32Array(ENOUGH_DISTS),b.sane=1,b.back=-1,Z_OK$1},inflateReset=d=>{if(!d||!d.state)return Z_STREAM_ERROR$1;const b=d.state;return b.wsize=0,b.whave=0,b.wnext=0,inflateResetKeep(d)},inflateReset2=(d,b)=>{let h;if(!d||!d.state)return Z_STREAM_ERROR$1;const m=d.state;return b<0?(h=0,b=-b):(h=(b>>4)+1,b<48&&(b&=15)),b&&(b<8||b>15)?Z_STREAM_ERROR$1:(m.window!==null&&m.wbits!==b&&(m.window=null),m.wrap=h,m.wbits=b,inflateReset(d))},inflateInit2=(d,b)=>{if(!d)return Z_STREAM_ERROR$1;const h=new InflateState;d.state=h,h.window=null;const m=inflateReset2(d,b);return m!==Z_OK$1&&(d.state=null),m},inflateInit=d=>inflateInit2(d,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=d=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let b=0;for(;b<144;)d.lens[b++]=8;for(;b<256;)d.lens[b++]=9;for(;b<280;)d.lens[b++]=7;for(;b<288;)d.lens[b++]=8;for(inftrees(LENS,d.lens,0,288,lenfix,0,d.work,{bits:9}),b=0;b<32;)d.lens[b++]=5;inftrees(DISTS,d.lens,0,32,distfix,0,d.work,{bits:5}),virgin=!1}d.lencode=lenfix,d.lenbits=9,d.distcode=distfix,d.distbits=5},updatewindow=(d,b,h,m)=>{let f;const v=d.state;return v.window===null&&(v.wsize=1<<v.wbits,v.wnext=0,v.whave=0,v.window=new Uint8Array(v.wsize)),m>=v.wsize?(v.window.set(b.subarray(h-v.wsize,h),0),v.wnext=0,v.whave=v.wsize):(f=v.wsize-v.wnext,f>m&&(f=m),v.window.set(b.subarray(h-m,h-m+f),v.wnext),m-=f,m?(v.window.set(b.subarray(h-m,h),0),v.wnext=m,v.whave=v.wsize):(v.wnext+=f,v.wnext===v.wsize&&(v.wnext=0),v.whave<v.wsize&&(v.whave+=f))),0},inflate$2=(d,b)=>{let h,m,f,v,_,S,M,E,D,B,z,H,J,rt,dt=0,K,_t,at,ot,bt,zt,Tt,mt;const Ct=new Uint8Array(4);let xt,gt;const et=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!d||!d.state||!d.output||!d.input&&d.avail_in!==0)return Z_STREAM_ERROR$1;h=d.state,h.mode===TYPE&&(h.mode=TYPEDO),_=d.next_out,f=d.output,M=d.avail_out,v=d.next_in,m=d.input,S=d.avail_in,E=h.hold,D=h.bits,B=S,z=M,mt=Z_OK$1;t:for(;;)switch(h.mode){case HEAD:if(h.wrap===0){h.mode=TYPEDO;break}for(;D<16;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}if(h.wrap&2&&E===35615){h.check=0,Ct[0]=E&255,Ct[1]=E>>>8&255,h.check=crc32_1(h.check,Ct,2,0),E=0,D=0,h.mode=FLAGS;break}if(h.flags=0,h.head&&(h.head.done=!1),!(h.wrap&1)||(((E&255)<<8)+(E>>8))%31){d.msg="incorrect header check",h.mode=BAD;break}if((E&15)!==Z_DEFLATED){d.msg="unknown compression method",h.mode=BAD;break}if(E>>>=4,D-=4,Tt=(E&15)+8,h.wbits===0)h.wbits=Tt;else if(Tt>h.wbits){d.msg="invalid window size",h.mode=BAD;break}h.dmax=1<<h.wbits,d.adler=h.check=1,h.mode=E&512?DICTID:TYPE,E=0,D=0;break;case FLAGS:for(;D<16;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}if(h.flags=E,(h.flags&255)!==Z_DEFLATED){d.msg="unknown compression method",h.mode=BAD;break}if(h.flags&57344){d.msg="unknown header flags set",h.mode=BAD;break}h.head&&(h.head.text=E>>8&1),h.flags&512&&(Ct[0]=E&255,Ct[1]=E>>>8&255,h.check=crc32_1(h.check,Ct,2,0)),E=0,D=0,h.mode=TIME;case TIME:for(;D<32;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}h.head&&(h.head.time=E),h.flags&512&&(Ct[0]=E&255,Ct[1]=E>>>8&255,Ct[2]=E>>>16&255,Ct[3]=E>>>24&255,h.check=crc32_1(h.check,Ct,4,0)),E=0,D=0,h.mode=OS;case OS:for(;D<16;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}h.head&&(h.head.xflags=E&255,h.head.os=E>>8),h.flags&512&&(Ct[0]=E&255,Ct[1]=E>>>8&255,h.check=crc32_1(h.check,Ct,2,0)),E=0,D=0,h.mode=EXLEN;case EXLEN:if(h.flags&1024){for(;D<16;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}h.length=E,h.head&&(h.head.extra_len=E),h.flags&512&&(Ct[0]=E&255,Ct[1]=E>>>8&255,h.check=crc32_1(h.check,Ct,2,0)),E=0,D=0}else h.head&&(h.head.extra=null);h.mode=EXTRA;case EXTRA:if(h.flags&1024&&(H=h.length,H>S&&(H=S),H&&(h.head&&(Tt=h.head.extra_len-h.length,h.head.extra||(h.head.extra=new Uint8Array(h.head.extra_len)),h.head.extra.set(m.subarray(v,v+H),Tt)),h.flags&512&&(h.check=crc32_1(h.check,m,H,v)),S-=H,v+=H,h.length-=H),h.length))break t;h.length=0,h.mode=NAME;case NAME:if(h.flags&2048){if(S===0)break t;H=0;do Tt=m[v+H++],h.head&&Tt&&h.length<65536&&(h.head.name+=String.fromCharCode(Tt));while(Tt&&H<S);if(h.flags&512&&(h.check=crc32_1(h.check,m,H,v)),S-=H,v+=H,Tt)break t}else h.head&&(h.head.name=null);h.length=0,h.mode=COMMENT;case COMMENT:if(h.flags&4096){if(S===0)break t;H=0;do Tt=m[v+H++],h.head&&Tt&&h.length<65536&&(h.head.comment+=String.fromCharCode(Tt));while(Tt&&H<S);if(h.flags&512&&(h.check=crc32_1(h.check,m,H,v)),S-=H,v+=H,Tt)break t}else h.head&&(h.head.comment=null);h.mode=HCRC;case HCRC:if(h.flags&512){for(;D<16;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}if(E!==(h.check&65535)){d.msg="header crc mismatch",h.mode=BAD;break}E=0,D=0}h.head&&(h.head.hcrc=h.flags>>9&1,h.head.done=!0),d.adler=h.check=0,h.mode=TYPE;break;case DICTID:for(;D<32;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}d.adler=h.check=zswap32(E),E=0,D=0,h.mode=DICT;case DICT:if(h.havedict===0)return d.next_out=_,d.avail_out=M,d.next_in=v,d.avail_in=S,h.hold=E,h.bits=D,Z_NEED_DICT$1;d.adler=h.check=1,h.mode=TYPE;case TYPE:if(b===Z_BLOCK||b===Z_TREES)break t;case TYPEDO:if(h.last){E>>>=D&7,D-=D&7,h.mode=CHECK;break}for(;D<3;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}switch(h.last=E&1,E>>>=1,D-=1,E&3){case 0:h.mode=STORED;break;case 1:if(fixedtables(h),h.mode=LEN_,b===Z_TREES){E>>>=2,D-=2;break t}break;case 2:h.mode=TABLE;break;case 3:d.msg="invalid block type",h.mode=BAD}E>>>=2,D-=2;break;case STORED:for(E>>>=D&7,D-=D&7;D<32;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}if((E&65535)!==(E>>>16^65535)){d.msg="invalid stored block lengths",h.mode=BAD;break}if(h.length=E&65535,E=0,D=0,h.mode=COPY_,b===Z_TREES)break t;case COPY_:h.mode=COPY;case COPY:if(H=h.length,H){if(H>S&&(H=S),H>M&&(H=M),H===0)break t;f.set(m.subarray(v,v+H),_),S-=H,v+=H,M-=H,_+=H,h.length-=H;break}h.mode=TYPE;break;case TABLE:for(;D<14;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}if(h.nlen=(E&31)+257,E>>>=5,D-=5,h.ndist=(E&31)+1,E>>>=5,D-=5,h.ncode=(E&15)+4,E>>>=4,D-=4,h.nlen>286||h.ndist>30){d.msg="too many length or distance symbols",h.mode=BAD;break}h.have=0,h.mode=LENLENS;case LENLENS:for(;h.have<h.ncode;){for(;D<3;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}h.lens[et[h.have++]]=E&7,E>>>=3,D-=3}for(;h.have<19;)h.lens[et[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,xt={bits:h.lenbits},mt=inftrees(CODES,h.lens,0,19,h.lencode,0,h.work,xt),h.lenbits=xt.bits,mt){d.msg="invalid code lengths set",h.mode=BAD;break}h.have=0,h.mode=CODELENS;case CODELENS:for(;h.have<h.nlen+h.ndist;){for(;dt=h.lencode[E&(1<<h.lenbits)-1],K=dt>>>24,_t=dt>>>16&255,at=dt&65535,!(K<=D);){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}if(at<16)E>>>=K,D-=K,h.lens[h.have++]=at;else{if(at===16){for(gt=K+2;D<gt;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}if(E>>>=K,D-=K,h.have===0){d.msg="invalid bit length repeat",h.mode=BAD;break}Tt=h.lens[h.have-1],H=3+(E&3),E>>>=2,D-=2}else if(at===17){for(gt=K+3;D<gt;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}E>>>=K,D-=K,Tt=0,H=3+(E&7),E>>>=3,D-=3}else{for(gt=K+7;D<gt;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}E>>>=K,D-=K,Tt=0,H=11+(E&127),E>>>=7,D-=7}if(h.have+H>h.nlen+h.ndist){d.msg="invalid bit length repeat",h.mode=BAD;break}for(;H--;)h.lens[h.have++]=Tt}}if(h.mode===BAD)break;if(h.lens[256]===0){d.msg="invalid code -- missing end-of-block",h.mode=BAD;break}if(h.lenbits=9,xt={bits:h.lenbits},mt=inftrees(LENS,h.lens,0,h.nlen,h.lencode,0,h.work,xt),h.lenbits=xt.bits,mt){d.msg="invalid literal/lengths set",h.mode=BAD;break}if(h.distbits=6,h.distcode=h.distdyn,xt={bits:h.distbits},mt=inftrees(DISTS,h.lens,h.nlen,h.ndist,h.distcode,0,h.work,xt),h.distbits=xt.bits,mt){d.msg="invalid distances set",h.mode=BAD;break}if(h.mode=LEN_,b===Z_TREES)break t;case LEN_:h.mode=LEN;case LEN:if(S>=6&&M>=258){d.next_out=_,d.avail_out=M,d.next_in=v,d.avail_in=S,h.hold=E,h.bits=D,inffast(d,z),_=d.next_out,f=d.output,M=d.avail_out,v=d.next_in,m=d.input,S=d.avail_in,E=h.hold,D=h.bits,h.mode===TYPE&&(h.back=-1);break}for(h.back=0;dt=h.lencode[E&(1<<h.lenbits)-1],K=dt>>>24,_t=dt>>>16&255,at=dt&65535,!(K<=D);){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}if(_t&&(_t&240)===0){for(ot=K,bt=_t,zt=at;dt=h.lencode[zt+((E&(1<<ot+bt)-1)>>ot)],K=dt>>>24,_t=dt>>>16&255,at=dt&65535,!(ot+K<=D);){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}E>>>=ot,D-=ot,h.back+=ot}if(E>>>=K,D-=K,h.back+=K,h.length=at,_t===0){h.mode=LIT;break}if(_t&32){h.back=-1,h.mode=TYPE;break}if(_t&64){d.msg="invalid literal/length code",h.mode=BAD;break}h.extra=_t&15,h.mode=LENEXT;case LENEXT:if(h.extra){for(gt=h.extra;D<gt;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}h.length+=E&(1<<h.extra)-1,E>>>=h.extra,D-=h.extra,h.back+=h.extra}h.was=h.length,h.mode=DIST;case DIST:for(;dt=h.distcode[E&(1<<h.distbits)-1],K=dt>>>24,_t=dt>>>16&255,at=dt&65535,!(K<=D);){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}if((_t&240)===0){for(ot=K,bt=_t,zt=at;dt=h.distcode[zt+((E&(1<<ot+bt)-1)>>ot)],K=dt>>>24,_t=dt>>>16&255,at=dt&65535,!(ot+K<=D);){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}E>>>=ot,D-=ot,h.back+=ot}if(E>>>=K,D-=K,h.back+=K,_t&64){d.msg="invalid distance code",h.mode=BAD;break}h.offset=at,h.extra=_t&15,h.mode=DISTEXT;case DISTEXT:if(h.extra){for(gt=h.extra;D<gt;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}h.offset+=E&(1<<h.extra)-1,E>>>=h.extra,D-=h.extra,h.back+=h.extra}if(h.offset>h.dmax){d.msg="invalid distance too far back",h.mode=BAD;break}h.mode=MATCH;case MATCH:if(M===0)break t;if(H=z-M,h.offset>H){if(H=h.offset-H,H>h.whave&&h.sane){d.msg="invalid distance too far back",h.mode=BAD;break}H>h.wnext?(H-=h.wnext,J=h.wsize-H):J=h.wnext-H,H>h.length&&(H=h.length),rt=h.window}else rt=f,J=_-h.offset,H=h.length;H>M&&(H=M),M-=H,h.length-=H;do f[_++]=rt[J++];while(--H);h.length===0&&(h.mode=LEN);break;case LIT:if(M===0)break t;f[_++]=h.length,M--,h.mode=LEN;break;case CHECK:if(h.wrap){for(;D<32;){if(S===0)break t;S--,E|=m[v++]<<D,D+=8}if(z-=M,d.total_out+=z,h.total+=z,z&&(d.adler=h.check=h.flags?crc32_1(h.check,f,z,_-z):adler32_1(h.check,f,z,_-z)),z=M,(h.flags?E:zswap32(E))!==h.check){d.msg="incorrect data check",h.mode=BAD;break}E=0,D=0}h.mode=LENGTH;case LENGTH:if(h.wrap&&h.flags){for(;D<32;){if(S===0)break t;S--,E+=m[v++]<<D,D+=8}if(E!==(h.total&4294967295)){d.msg="incorrect length check",h.mode=BAD;break}E=0,D=0}h.mode=DONE;case DONE:mt=Z_STREAM_END$1;break t;case BAD:mt=Z_DATA_ERROR$1;break t;case MEM:return Z_MEM_ERROR$1;case SYNC:default:return Z_STREAM_ERROR$1}return d.next_out=_,d.avail_out=M,d.next_in=v,d.avail_in=S,h.hold=E,h.bits=D,(h.wsize||z!==d.avail_out&&h.mode<BAD&&(h.mode<CHECK||b!==Z_FINISH$1))&&updatewindow(d,d.output,d.next_out,z-d.avail_out),B-=d.avail_in,z-=d.avail_out,d.total_in+=B,d.total_out+=z,h.total+=z,h.wrap&&z&&(d.adler=h.check=h.flags?crc32_1(h.check,f,z,d.next_out-z):adler32_1(h.check,f,z,d.next_out-z)),d.data_type=h.bits+(h.last?64:0)+(h.mode===TYPE?128:0)+(h.mode===LEN_||h.mode===COPY_?256:0),(B===0&&z===0||b===Z_FINISH$1)&&mt===Z_OK$1&&(mt=Z_BUF_ERROR),mt},inflateEnd=d=>{if(!d||!d.state)return Z_STREAM_ERROR$1;let b=d.state;return b.window&&(b.window=null),d.state=null,Z_OK$1},inflateGetHeader=(d,b)=>{if(!d||!d.state)return Z_STREAM_ERROR$1;const h=d.state;return(h.wrap&2)===0?Z_STREAM_ERROR$1:(h.head=b,b.done=!1,Z_OK$1)},inflateSetDictionary=(d,b)=>{const h=b.length;let m,f,v;return!d||!d.state||(m=d.state,m.wrap!==0&&m.mode!==DICT)?Z_STREAM_ERROR$1:m.mode===DICT&&(f=1,f=adler32_1(f,b,h,0),f!==m.check)?Z_DATA_ERROR$1:(v=updatewindow(d,b,h,h),v?(m.mode=MEM,Z_MEM_ERROR$1):(m.havedict=1,Z_OK$1))};var inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo};function GZheader(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader;const toString=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$2;function Inflate$1(d){this.options=common.assign({chunkSize:1024*64,windowBits:15,to:""},d||{});const b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,b.windowBits===0&&(b.windowBits=-15)),b.windowBits>=0&&b.windowBits<16&&!(d&&d.windowBits)&&(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&(b.windowBits&15)===0&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let h=inflate_1$2.inflateInit2(this.strm,b.windowBits);if(h!==Z_OK)throw new Error(messages[h]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),b.dictionary&&(typeof b.dictionary=="string"?b.dictionary=strings.string2buf(b.dictionary):toString.call(b.dictionary)==="[object ArrayBuffer]"&&(b.dictionary=new Uint8Array(b.dictionary)),b.raw&&(h=inflate_1$2.inflateSetDictionary(this.strm,b.dictionary),h!==Z_OK)))throw new Error(messages[h])}Inflate$1.prototype.push=function(d,b){const h=this.strm,m=this.options.chunkSize,f=this.options.dictionary;let v,_,S;if(this.ended)return!1;for(b===~~b?_=b:_=b===!0?Z_FINISH:Z_NO_FLUSH,toString.call(d)==="[object ArrayBuffer]"?h.input=new Uint8Array(d):h.input=d,h.next_in=0,h.avail_in=h.input.length;;){for(h.avail_out===0&&(h.output=new Uint8Array(m),h.next_out=0,h.avail_out=m),v=inflate_1$2.inflate(h,_),v===Z_NEED_DICT&&f&&(v=inflate_1$2.inflateSetDictionary(h,f),v===Z_OK?v=inflate_1$2.inflate(h,_):v===Z_DATA_ERROR&&(v=Z_NEED_DICT));h.avail_in>0&&v===Z_STREAM_END&&h.state.wrap>0&&d[h.next_in]!==0;)inflate_1$2.inflateReset(h),v=inflate_1$2.inflate(h,_);switch(v){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(v),this.ended=!0,!1}if(S=h.avail_out,h.next_out&&(h.avail_out===0||v===Z_STREAM_END))if(this.options.to==="string"){let M=strings.utf8border(h.output,h.next_out),E=h.next_out-M,D=strings.buf2string(h.output,M);h.next_out=E,h.avail_out=m-E,E&&h.output.set(h.output.subarray(M,M+E),0),this.onData(D)}else this.onData(h.output.length===h.next_out?h.output:h.output.subarray(0,h.next_out));if(!(v===Z_OK&&S===0)){if(v===Z_STREAM_END)return v=inflate_1$2.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,!0;if(h.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(d){this.chunks.push(d)};Inflate$1.prototype.onEnd=function(d){d===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg};function inflate$1(d,b){const h=new Inflate$1(b);if(h.push(d),h.err)throw h.msg||messages[h.err];return h.result}function inflateRaw$1(d,b){return b=b||{},b.raw=!0,inflate$1(d,b)}var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflateRaw_1$1=inflateRaw$1,ungzip$1=inflate$1,constants=constants$2,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2,inflateRaw:inflateRaw_1$1,ungzip:ungzip$1,constants};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1,{Inflate,inflate,inflateRaw,ungzip}=inflate_1$1;var deflate_1=deflate,inflate_1=inflate;const _hasatob=typeof atob=="function",_hasbtoa=typeof btoa=="function",_hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0,_TE=typeof TextEncoder=="function"?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(d=>{let b={};return d.forEach((h,m)=>b[h]=m),b})(b64chs),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):(d,b=h=>h)=>new Uint8Array(Array.prototype.slice.call(d,0).map(b)),_mkUriSafe=d=>d.replace(/=/g,"").replace(/[+\/]/g,b=>b=="+"?"-":"_"),_tidyB64=d=>d.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=d=>{let b,h,m,f,v="";const _=d.length%3;for(let S=0;S<d.length;){if((h=d.charCodeAt(S++))>255||(m=d.charCodeAt(S++))>255||(f=d.charCodeAt(S++))>255)throw new TypeError("invalid character found");b=h<<16|m<<8|f,v+=b64chs[b>>18&63]+b64chs[b>>12&63]+b64chs[b>>6&63]+b64chs[b&63]}return _?v.slice(0,_-3)+"===".substring(_):v},_btoa=_hasbtoa?d=>btoa(d):_hasBuffer?d=>Buffer.from(d,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?d=>Buffer.from(d).toString("base64"):d=>{let h=[];for(let m=0,f=d.length;m<f;m+=4096)h.push(_fromCC.apply(null,d.subarray(m,m+4096)));return _btoa(h.join(""))},fromUint8Array=(d,b=!1)=>b?_mkUriSafe(_fromUint8Array(d)):_fromUint8Array(d),cb_utob=d=>{if(d.length<2){var b=d.charCodeAt(0);return b<128?d:b<2048?_fromCC(192|b>>>6)+_fromCC(128|b&63):_fromCC(224|b>>>12&15)+_fromCC(128|b>>>6&63)+_fromCC(128|b&63)}else{var b=65536+(d.charCodeAt(0)-55296)*1024+(d.charCodeAt(1)-56320);return _fromCC(240|b>>>18&7)+_fromCC(128|b>>>12&63)+_fromCC(128|b>>>6&63)+_fromCC(128|b&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=d=>d.replace(re_utob,cb_utob),_encode=_hasBuffer?d=>Buffer.from(d,"utf8").toString("base64"):_TE?d=>_fromUint8Array(_TE.encode(d)):d=>_btoa(utob(d)),encode=(d,b=!1)=>b?_mkUriSafe(_encode(d)):_encode(d),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=d=>{switch(d.length){case 4:var b=(7&d.charCodeAt(0))<<18|(63&d.charCodeAt(1))<<12|(63&d.charCodeAt(2))<<6|63&d.charCodeAt(3),h=b-65536;return _fromCC((h>>>10)+55296)+_fromCC((h&1023)+56320);case 3:return _fromCC((15&d.charCodeAt(0))<<12|(63&d.charCodeAt(1))<<6|63&d.charCodeAt(2));default:return _fromCC((31&d.charCodeAt(0))<<6|63&d.charCodeAt(1))}},btou=d=>d.replace(re_btou,cb_btou),atobPolyfill=d=>{if(d=d.replace(/\s+/g,""),!b64re.test(d))throw new TypeError("malformed base64.");d+="==".slice(2-(d.length&3));let b,h="",m,f;for(let v=0;v<d.length;)b=b64tab[d.charAt(v++)]<<18|b64tab[d.charAt(v++)]<<12|(m=b64tab[d.charAt(v++)])<<6|(f=b64tab[d.charAt(v++)]),h+=m===64?_fromCC(b>>16&255):f===64?_fromCC(b>>16&255,b>>8&255):_fromCC(b>>16&255,b>>8&255,b&255);return h},_atob=_hasatob?d=>atob(_tidyB64(d)):_hasBuffer?d=>Buffer.from(d,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?d=>_U8Afrom(Buffer.from(d,"base64")):d=>_U8Afrom(_atob(d),b=>b.charCodeAt(0)),toUint8Array=d=>_toUint8Array(_unURI(d)),_decode=_hasBuffer?d=>Buffer.from(d,"base64").toString("utf8"):_TD?d=>_TD.decode(_toUint8Array(d)):d=>btou(_atob(d)),_unURI=d=>_tidyB64(d.replace(/[-_]/g,b=>b=="-"?"+":"/")),decode=d=>_decode(_unURI(d)),base64Serde={serialize:d=>encode(d,!0),deserialize:d=>decode(d)},pakoSerde={serialize:d=>{const b=new TextEncoder().encode(d),h=deflate_1(b,{level:9});return fromUint8Array(h,!0)},deserialize:d=>{const b=toUint8Array(d);return inflate_1(b,{to:"string"})}},serdes={base64:base64Serde,pako:pakoSerde},serializeState=(d,b="pako")=>{if(serdes[b]===void 0)throw new Error(`Unknown serde type: ${b}`);const h=JSON.stringify(d),m=serdes[b].serialize(h);return`${b}:${m}`},deserializeState=d=>{let b,h;if(d.includes(":")){let f;if([f,h]=d.split(":"),f in serdes)b=f;else throw new Error(`Unknown serde type: ${f}`)}else b="base64",h=d;const m=serdes[b].deserialize(h);return JSON.parse(m)};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(d){var b=d.default;if(typeof b=="function"){var h=function(){return b.apply(this,arguments)};h.prototype=b.prototype}else h={};return Object.defineProperty(h,"__esModule",{value:!0}),Object.keys(d).forEach(function(m){var f=Object.getOwnPropertyDescriptor(d,m);Object.defineProperty(h,m,f.get?f:{enumerable:!0,get:function(){return d[m]}})}),h}var dist={},words={};(function(d){var b=commonjsGlobal&&commonjsGlobal.__values||function(m){var f=typeof Symbol=="function"&&Symbol.iterator,v=f&&m[f],_=0;if(v)return v.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&_>=m.length&&(m=void 0),{value:m&&m[_++],done:!m}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(d,"__esModule",{value:!0}),d.getWordsByCategory=d.wordList=void 0,d.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function h(m,f){var v,_;f===void 0&&(f=[]);var S=new Set(f),M=[];try{for(var E=b(d.wordList[m]),D=E.next();!D.done;D=E.next()){var B=D.value;(f.length===0||B.categories.some(function(z){return S.has(z)}))&&M.push(B.word)}}catch(z){v={error:z}}finally{try{D&&!D.done&&(_=E.return)&&_.call(E)}finally{if(v)throw v.error}}return M}d.getWordsByCategory=h})(words);var __assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(d){for(var b,h=1,m=arguments.length;h<m;h++){b=arguments[h];for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&(d[f]=b[f])}return d},__assign.apply(this,arguments)};Object.defineProperty(dist,"__esModule",{value:!0});dist.totalUniqueSlugs=generateSlug_1=dist.generateSlug=void 0;var words_1=words,DEFAULT_NUMBER_OF_WORDS=3;function generateSlug(d,b){for(var h=d||DEFAULT_NUMBER_OF_WORDS,m={partsOfSpeech:getDefaultPartsOfSpeech(h),categories:{},format:"kebab"},f=__assign(__assign({},m),b),v=[],_=0;_<h;_++){var S=f.partsOfSpeech[_],M=words_1.getWordsByCategory(f.partsOfSpeech[_],f.categories[S]),E=M[Math.floor(Math.random()*M.length)];v.push(E)}return formatter(v,f.format)}var generateSlug_1=dist.generateSlug=generateSlug;function getDefaultPartsOfSpeech(d){for(var b=[],h=0;h<d-1;h++)b.push("adjective");return b.push("noun"),b}function formatter(d,b){return b==="kebab"?d.join("-").toLowerCase():b==="camel"?d.map(function(h,m){return m===0?h.toLowerCase():h[0].toUpperCase()+h.slice(1).toLowerCase()}).join(""):b==="lower"?d.join(" ").toLowerCase():b==="sentence"?d.map(function(h,m){return m===0?h[0].toUpperCase()+h.slice(1).toLowerCase():h}).join(" "):d.map(function(h){return h[0].toUpperCase()+h.slice(1).toLowerCase()}).join(" ")}function totalUniqueSlugs(d,b){for(var h,m,f=words_1.getWordsByCategory("adjective",(h=b==null?void 0:b.categories)===null||h===void 0?void 0:h.adjective).length,v=words_1.getWordsByCategory("noun",(m=b==null?void 0:b.categories)===null||m===void 0?void 0:m.noun).length,_={adjective:f,noun:v},S=d||DEFAULT_NUMBER_OF_WORDS,M=(b==null?void 0:b.partsOfSpeech)||getDefaultPartsOfSpeech(S),E=1,D=0;D<S;D++)E*=_[M[D]];return E}dist.totalUniqueSlugs=totalUniqueSlugs;const MAX_AUTO_HISTORY_LENGTH=30,historyModeStore=persist(writable("manual"),localStorage(),"autoHistoryMode"),autoHistoryStore=persist(writable([]),localStorage(),"autoHistoryStore"),manualHistoryStore=persist(writable([]),localStorage(),"manualHistoryStore"),loaderHistoryStore=writable([]),historyStore=derived([historyModeStore,autoHistoryStore,manualHistoryStore,loaderHistoryStore],([d,b,h,m],f)=>{f(d==="auto"?b:d==="manual"?h:d==="loader"?m:b)}),addHistoryEntry=d=>{if(d.type==="loader"){loaderHistoryStore.update(b=>[d,...b]);return}if(d.name=generateSlug_1(2),d.type!=="auto"){manualHistoryStore.update(b=>[d,...b]);return}autoHistoryStore.update(b=>(b.length===MAX_AUTO_HISTORY_LENGTH&&b.pop(),[d,...b]))},clearHistoryData=d=>{(get_store_value(historyModeStore)==="auto"?autoHistoryStore:manualHistoryStore).update(b=>(get_store_value(historyModeStore)!=="loader"&&(b=b.filter(h=>d&&h.time!=d)),b))},getPreviousState=d=>{const b=get_store_value(d?autoHistoryStore:manualHistoryStore);return b.length>0?JSON.stringify(b[0].state):""},codeFileName="code.mmd",configFileName="config.json",isValidGist=d=>codeFileName in d,getFileContent=async d=>d.truncated?await(await fetch(d.raw_url)).text():d.content,getGistData=async d=>{const[b,h,m,f]=d.split("github.com").pop().split("/"),{html_url:v,files:_,history:S}=await(await fetch(`https://api.github.com/gists/${m}${f?"/"+f:""}`)).json();if(isValidGist(_)){const M=await getFileContent(_[codeFileName]);let E;configFileName in _&&(E=await getFileContent(_[configFileName]));const D=S[0];return{url:`${v}/${D.version}`,code:M,config:E,author:D.user.login,time:new Date(D.committed_at).getTime(),version:D.version.slice(-7)}}else throw"Invalid gist provided"},getStateFromGist=(d,b=d.url)=>{const h={...defaultState,code:d.code,loader:{type:"gist",config:{url:b}}};return d.config&&(h.mermaid=d.config),h},loadGistData=async d=>{try{const[b,h,m,f]=d.split("github.com").pop().split("/"),{history:v}=await(await fetch(`https://api.github.com/gists/${m}${f?"/"+f:""}`)).json(),_=[];for(const M of v){const E=await getGistData(M.url).catch(()=>{});E&&_.push(E)}if(_.length===0)throw"Invalid gist provided";_.reverse();const S=getStateFromGist(_.slice(-1).pop(),d);for(const M of _)addHistoryEntry({state:getStateFromGist(M),time:M.time,type:"loader",url:M.url,name:`${M.author} v${M.version}`});return S}catch(b){console.error(b)}},loaders={gist:loadGistData},loadDataFromUrl=async()=>{const d=new URLSearchParams(window.location.search);let b=defaultState,h,m,f=!1;const v=d.get("code"),_=d.get("config");if(v&&(h=await(await fetch(v)).text(),f=!0),_?m=await(await fetch(_)).text():m=defaultState.mermaid,h)b={code:h,mermaid:m,loader:{type:"files",config:{codeURL:v,configURL:_}}};else for(const[S,M]of d.entries())if(S in loaders)try{b=await loaders[S](M),f=!0;break}catch(E){console.error(E)}f&&updateCodeStore({...b,autoSync:!0,updateDiagram:!0,updateEditor:!0})},loadStateFromURL=()=>{loadState(window.location.hash.slice(1))},syncDiagram=()=>{updateCodeStore({updateDiagram:!0})},initHandler=async()=>{loadStateFromURL(),await initLoading("Loading Gist...",loadDataFromUrl().catch(console.error)),syncDiagram(),initURLSubscription(),await initAnalytics(),analytics==null||analytics.page()},isMac=navigator.platform.toUpperCase().indexOf("MAC")>=0,cmdKey=isMac?"Cmd":"Ctrl",debounceEnabled=window.localStorage.getItem("noDebounce")!=="true";/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var t={2536:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(Ie,Qe,rr,Se){for(rr=rr||{},Se=Ie.length;Se--;rr[Ie[Se]]=Qe);return rr},v=[1,6],_=[1,7],S=[1,8],M=[1,9],E=[1,16],D=[1,11],B=[1,12],z=[1,13],H=[1,14],J=[1,15],rt=[1,27],dt=[1,33],K=[1,34],_t=[1,35],at=[1,36],ot=[1,37],bt=[1,72],zt=[1,73],Tt=[1,74],mt=[1,75],Ct=[1,76],xt=[1,77],gt=[1,78],et=[1,38],ft=[1,39],q=[1,40],wt=[1,41],W=[1,42],St=[1,43],Lt=[1,44],Wt=[1,45],ye=[1,46],Ve=[1,47],ke=[1,48],fe=[1,49],xe=[1,50],Me=[1,51],Oe=[1,52],ve=[1,53],Sr=[1,54],_e=[1,55],Je=[1,56],Dt=[1,57],he=[1,59],re=[1,60],At=[1,61],Ee=[1,62],Q=[1,63],ce=[1,64],st=[1,65],Te=[1,66],ge=[1,67],Pe=[1,68],ar=[1,69],Ze=[24,52],lr=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],Ne=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],Re=[1,94],ze=[1,95],Fe=[1,96],be=[1,97],ae=[15,24,52],br=[7,8,9,10,18,22,25,26,27,28],qe=[15,24,43,52],sr=[15,24,43,52,86,87,89,90],$e=[15,43],Er=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],Jr={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(Ie,Qe,rr,Se,Ar,Rt,vn){var Gt=Rt.length-1;switch(Ar){case 4:Se.setDirection("TB");break;case 5:Se.setDirection("BT");break;case 6:Se.setDirection("RL");break;case 7:Se.setDirection("LR");break;case 11:console.log("open_directive: ",Rt[Gt]),Se.parseDirective("%%{","open_directive");break;case 12:break;case 13:Rt[Gt]=Rt[Gt].trim().replace(/'/g,'"'),console.log("arg_directive: ",Rt[Gt]),Se.parseDirective(Rt[Gt],"arg_directive");break;case 14:console.log("close_directive: ",Rt[Gt]),Se.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:Se.setC4Type(Rt[Gt-3]);break;case 26:Se.setTitle(Rt[Gt].substring(6)),this.$=Rt[Gt].substring(6);break;case 27:Se.setAccDescription(Rt[Gt].substring(15)),this.$=Rt[Gt].substring(15);break;case 28:this.$=Rt[Gt].trim(),Se.setTitle(this.$);break;case 29:case 30:this.$=Rt[Gt].trim(),Se.setAccDescription(this.$);break;case 35:case 36:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Rt[Gt].splice(2,0,"ENTERPRISE"),Se.addPersonOrSystemBoundary(...Rt[Gt]),this.$=Rt[Gt];break;case 37:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addPersonOrSystemBoundary(...Rt[Gt]),this.$=Rt[Gt];break;case 38:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Rt[Gt].splice(2,0,"CONTAINER"),Se.addContainerBoundary(...Rt[Gt]),this.$=Rt[Gt];break;case 39:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addDeploymentNode("node",...Rt[Gt]),this.$=Rt[Gt];break;case 40:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addDeploymentNode("nodeL",...Rt[Gt]),this.$=Rt[Gt];break;case 41:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addDeploymentNode("nodeR",...Rt[Gt]),this.$=Rt[Gt];break;case 42:Se.popBoundaryParseStack();break;case 46:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addPersonOrSystem("person",...Rt[Gt]),this.$=Rt[Gt];break;case 47:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addPersonOrSystem("external_person",...Rt[Gt]),this.$=Rt[Gt];break;case 48:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addPersonOrSystem("system",...Rt[Gt]),this.$=Rt[Gt];break;case 49:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addPersonOrSystem("system_db",...Rt[Gt]),this.$=Rt[Gt];break;case 50:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addPersonOrSystem("system_queue",...Rt[Gt]),this.$=Rt[Gt];break;case 51:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addPersonOrSystem("external_system",...Rt[Gt]),this.$=Rt[Gt];break;case 52:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addPersonOrSystem("external_system_db",...Rt[Gt]),this.$=Rt[Gt];break;case 53:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addPersonOrSystem("external_system_queue",...Rt[Gt]),this.$=Rt[Gt];break;case 54:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addContainer("container",...Rt[Gt]),this.$=Rt[Gt];break;case 55:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addContainer("container_db",...Rt[Gt]),this.$=Rt[Gt];break;case 56:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addContainer("container_queue",...Rt[Gt]),this.$=Rt[Gt];break;case 57:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addContainer("external_container",...Rt[Gt]),this.$=Rt[Gt];break;case 58:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addContainer("external_container_db",...Rt[Gt]),this.$=Rt[Gt];break;case 59:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addContainer("external_container_queue",...Rt[Gt]),this.$=Rt[Gt];break;case 60:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addComponent("component",...Rt[Gt]),this.$=Rt[Gt];break;case 61:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addComponent("component_db",...Rt[Gt]),this.$=Rt[Gt];break;case 62:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addComponent("component_queue",...Rt[Gt]),this.$=Rt[Gt];break;case 63:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addComponent("external_component",...Rt[Gt]),this.$=Rt[Gt];break;case 64:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addComponent("external_component_db",...Rt[Gt]),this.$=Rt[Gt];break;case 65:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addComponent("external_component_queue",...Rt[Gt]),this.$=Rt[Gt];break;case 67:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addRel("rel",...Rt[Gt]),this.$=Rt[Gt];break;case 68:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addRel("birel",...Rt[Gt]),this.$=Rt[Gt];break;case 69:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addRel("rel_u",...Rt[Gt]),this.$=Rt[Gt];break;case 70:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addRel("rel_d",...Rt[Gt]),this.$=Rt[Gt];break;case 71:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addRel("rel_l",...Rt[Gt]),this.$=Rt[Gt];break;case 72:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addRel("rel_r",...Rt[Gt]),this.$=Rt[Gt];break;case 73:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.addRel("rel_b",...Rt[Gt]),this.$=Rt[Gt];break;case 74:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Rt[Gt].splice(0,1),Se.addRel("rel",...Rt[Gt]),this.$=Rt[Gt];break;case 75:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.updateElStyle("update_el_style",...Rt[Gt]),this.$=Rt[Gt];break;case 76:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.updateRelStyle("update_rel_style",...Rt[Gt]),this.$=Rt[Gt];break;case 77:console.log(Rt[Gt-1],JSON.stringify(Rt[Gt])),Se.updateLayoutConfig("update_layout_config",...Rt[Gt]),this.$=Rt[Gt];break;case 78:console.log("PUSH ATTRIBUTE: ",Rt[Gt]),this.$=[Rt[Gt]];break;case 79:console.log("PUSH ATTRIBUTE: ",Rt[Gt-1]),Rt[Gt].unshift(Rt[Gt-1]),this.$=Rt[Gt];break;case 80:case 82:this.$=Rt[Gt].trim();break;case 81:console.log("kv: ",Rt[Gt-1],Rt[Gt]);let qr={};qr[Rt[Gt-1].trim()]=Rt[Gt].trim(),this.$=qr;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:v,8:_,9:S,10:M,11:5,12:10,18:E,22:D,25:B,26:z,27:H,28:J},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:v,8:_,9:S,10:M,11:5,12:10,18:E,22:D,25:B,26:z,27:H,28:J},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:rt},f([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:dt,33:K,34:_t,36:at,38:ot,39:58,40:70,42:71,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,53:32,54:et,55:ft,56:q,57:wt,58:W,59:St,60:Lt,61:Wt,62:ye,63:Ve,64:ke,65:fe,66:xe,67:Me,68:Oe,69:ve,70:Sr,71:_e,72:Je,73:Dt,74:he,75:re,76:At,77:Ee,78:Q,79:ce,80:st,81:Te,82:ge,83:Pe,84:ar},{23:79,29:29,30:30,31:31,32:dt,33:K,34:_t,36:at,38:ot,39:58,40:70,42:71,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,53:32,54:et,55:ft,56:q,57:wt,58:W,59:St,60:Lt,61:Wt,62:ye,63:Ve,64:ke,65:fe,66:xe,67:Me,68:Oe,69:ve,70:Sr,71:_e,72:Je,73:Dt,74:he,75:re,76:At,77:Ee,78:Q,79:ce,80:st,81:Te,82:ge,83:Pe,84:ar},{23:80,29:29,30:30,31:31,32:dt,33:K,34:_t,36:at,38:ot,39:58,40:70,42:71,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,53:32,54:et,55:ft,56:q,57:wt,58:W,59:St,60:Lt,61:Wt,62:ye,63:Ve,64:ke,65:fe,66:xe,67:Me,68:Oe,69:ve,70:Sr,71:_e,72:Je,73:Dt,74:he,75:re,76:At,77:Ee,78:Q,79:ce,80:st,81:Te,82:ge,83:Pe,84:ar},{23:81,29:29,30:30,31:31,32:dt,33:K,34:_t,36:at,38:ot,39:58,40:70,42:71,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,53:32,54:et,55:ft,56:q,57:wt,58:W,59:St,60:Lt,61:Wt,62:ye,63:Ve,64:ke,65:fe,66:xe,67:Me,68:Oe,69:ve,70:Sr,71:_e,72:Je,73:Dt,74:he,75:re,76:At,77:Ee,78:Q,79:ce,80:st,81:Te,82:ge,83:Pe,84:ar},{23:82,29:29,30:30,31:31,32:dt,33:K,34:_t,36:at,38:ot,39:58,40:70,42:71,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,53:32,54:et,55:ft,56:q,57:wt,58:W,59:St,60:Lt,61:Wt,62:ye,63:Ve,64:ke,65:fe,66:xe,67:Me,68:Oe,69:ve,70:Sr,71:_e,72:Je,73:Dt,74:he,75:re,76:At,77:Ee,78:Q,79:ce,80:st,81:Te,82:ge,83:Pe,84:ar},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},f(Ze,[2,20],{53:32,39:58,40:70,42:71,30:87,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,54:et,55:ft,56:q,57:wt,58:W,59:St,60:Lt,61:Wt,62:ye,63:Ve,64:ke,65:fe,66:xe,67:Me,68:Oe,69:ve,70:Sr,71:_e,72:Je,73:Dt,74:he,75:re,76:At,77:Ee,78:Q,79:ce,80:st,81:Te,82:ge,83:Pe,84:ar}),f(Ze,[2,21]),f(lr,[2,23],{15:[1,88]}),f(Ze,[2,43],{15:[1,89]}),f(Ne,[2,26]),f(Ne,[2,27]),{35:[1,90]},{37:[1,91]},f(Ne,[2,30]),{45:92,85:93,86:Re,87:ze,89:Fe,90:be},{45:98,85:93,86:Re,87:ze,89:Fe,90:be},{45:99,85:93,86:Re,87:ze,89:Fe,90:be},{45:100,85:93,86:Re,87:ze,89:Fe,90:be},{45:101,85:93,86:Re,87:ze,89:Fe,90:be},{45:102,85:93,86:Re,87:ze,89:Fe,90:be},{45:103,85:93,86:Re,87:ze,89:Fe,90:be},{45:104,85:93,86:Re,87:ze,89:Fe,90:be},{45:105,85:93,86:Re,87:ze,89:Fe,90:be},{45:106,85:93,86:Re,87:ze,89:Fe,90:be},{45:107,85:93,86:Re,87:ze,89:Fe,90:be},{45:108,85:93,86:Re,87:ze,89:Fe,90:be},{45:109,85:93,86:Re,87:ze,89:Fe,90:be},{45:110,85:93,86:Re,87:ze,89:Fe,90:be},{45:111,85:93,86:Re,87:ze,89:Fe,90:be},{45:112,85:93,86:Re,87:ze,89:Fe,90:be},{45:113,85:93,86:Re,87:ze,89:Fe,90:be},{45:114,85:93,86:Re,87:ze,89:Fe,90:be},{45:115,85:93,86:Re,87:ze,89:Fe,90:be},{45:116,85:93,86:Re,87:ze,89:Fe,90:be},f(ae,[2,66]),{45:117,85:93,86:Re,87:ze,89:Fe,90:be},{45:118,85:93,86:Re,87:ze,89:Fe,90:be},{45:119,85:93,86:Re,87:ze,89:Fe,90:be},{45:120,85:93,86:Re,87:ze,89:Fe,90:be},{45:121,85:93,86:Re,87:ze,89:Fe,90:be},{45:122,85:93,86:Re,87:ze,89:Fe,90:be},{45:123,85:93,86:Re,87:ze,89:Fe,90:be},{45:124,85:93,86:Re,87:ze,89:Fe,90:be},{45:125,85:93,86:Re,87:ze,89:Fe,90:be},{45:126,85:93,86:Re,87:ze,89:Fe,90:be},{45:127,85:93,86:Re,87:ze,89:Fe,90:be},{30:128,39:58,40:70,42:71,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,53:32,54:et,55:ft,56:q,57:wt,58:W,59:St,60:Lt,61:Wt,62:ye,63:Ve,64:ke,65:fe,66:xe,67:Me,68:Oe,69:ve,70:Sr,71:_e,72:Je,73:Dt,74:he,75:re,76:At,77:Ee,78:Q,79:ce,80:st,81:Te,82:ge,83:Pe,84:ar},{15:[1,130],43:[1,129]},{45:131,85:93,86:Re,87:ze,89:Fe,90:be},{45:132,85:93,86:Re,87:ze,89:Fe,90:be},{45:133,85:93,86:Re,87:ze,89:Fe,90:be},{45:134,85:93,86:Re,87:ze,89:Fe,90:be},{45:135,85:93,86:Re,87:ze,89:Fe,90:be},{45:136,85:93,86:Re,87:ze,89:Fe,90:be},{45:137,85:93,86:Re,87:ze,89:Fe,90:be},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},f(br,[2,9]),{14:142,21:rt},{21:[2,13]},{1:[2,15]},f(Ze,[2,22]),f(lr,[2,24],{31:31,29:143,32:dt,33:K,34:_t,36:at,38:ot}),f(Ze,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:dt,33:K,34:_t,36:at,38:ot,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,54:et,55:ft,56:q,57:wt,58:W,59:St,60:Lt,61:Wt,62:ye,63:Ve,64:ke,65:fe,66:xe,67:Me,68:Oe,69:ve,70:Sr,71:_e,72:Je,73:Dt,74:he,75:re,76:At,77:Ee,78:Q,79:ce,80:st,81:Te,82:ge,83:Pe,84:ar}),f(Ne,[2,28]),f(Ne,[2,29]),f(ae,[2,46]),f(qe,[2,78],{85:93,45:145,86:Re,87:ze,89:Fe,90:be}),f(sr,[2,80]),{88:[1,146]},f(sr,[2,82]),f(sr,[2,83]),f(ae,[2,47]),f(ae,[2,48]),f(ae,[2,49]),f(ae,[2,50]),f(ae,[2,51]),f(ae,[2,52]),f(ae,[2,53]),f(ae,[2,54]),f(ae,[2,55]),f(ae,[2,56]),f(ae,[2,57]),f(ae,[2,58]),f(ae,[2,59]),f(ae,[2,60]),f(ae,[2,61]),f(ae,[2,62]),f(ae,[2,63]),f(ae,[2,64]),f(ae,[2,65]),f(ae,[2,67]),f(ae,[2,68]),f(ae,[2,69]),f(ae,[2,70]),f(ae,[2,71]),f(ae,[2,72]),f(ae,[2,73]),f(ae,[2,74]),f(ae,[2,75]),f(ae,[2,76]),f(ae,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},f($e,[2,35]),f($e,[2,36]),f($e,[2,37]),f($e,[2,38]),f($e,[2,39]),f($e,[2,40]),f($e,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},f(lr,[2,25]),f(Ze,[2,45]),f(qe,[2,79]),f(sr,[2,81]),f(ae,[2,31]),f(ae,[2,42]),f(Er,[2,32]),f(Er,[2,33],{15:[1,152]}),f(br,[2,10]),f(Er,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(Ie,Qe){if(!Qe.recoverable){var rr=new Error(Ie);throw rr.hash=Qe,rr}this.trace(Ie)},parse:function(Ie){var Qe=this,rr=[0],Se=[],Ar=[null],Rt=[],vn=this.table,Gt="",qr=0,Yr=0,Gr=0,Dr=2,Vr=1,zr=Rt.slice.call(arguments,1),Ir=Object.create(this.lexer),Ur={yy:{}};for(var jr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,jr)&&(Ur.yy[jr]=this.yy[jr]);Ir.setInput(Ie,Ur.yy),Ur.yy.lexer=Ir,Ur.yy.parser=this,Ir.yylloc===void 0&&(Ir.yylloc={});var $r=Ir.yylloc;Rt.push($r);var ga=Ir.options&&Ir.options.ranges;function Mn(){var Zr;return typeof(Zr=Se.pop()||Ir.lex()||Vr)!="number"&&(Zr instanceof Array&&(Zr=(Se=Zr).pop()),Zr=Qe.symbols_[Zr]||Zr),Zr}typeof Ur.yy.parseError=="function"?this.parseError=Ur.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var An,Lr,ui,Fr,xn,Nn,bn,Xn,Bt,In={};;){if(ui=rr[rr.length-1],this.defaultActions[ui]?Fr=this.defaultActions[ui]:(An==null&&(An=Mn()),Fr=vn[ui]&&vn[ui][An]),Fr===void 0||!Fr.length||!Fr[0]){var On="";for(Nn in Bt=[],vn[ui])this.terminals_[Nn]&&Nn>Dr&&Bt.push("'"+this.terminals_[Nn]+"'");On=Ir.showPosition?"Parse error on line "+(qr+1)+`:
`+Ir.showPosition()+`
Expecting `+Bt.join(", ")+", got '"+(this.terminals_[An]||An)+"'":"Parse error on line "+(qr+1)+": Unexpected "+(An==Vr?"end of input":"'"+(this.terminals_[An]||An)+"'"),this.parseError(On,{text:Ir.match,token:this.terminals_[An]||An,line:Ir.yylineno,loc:$r,expected:Bt})}if(Fr[0]instanceof Array&&Fr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ui+", token: "+An);switch(Fr[0]){case 1:rr.push(An),Ar.push(Ir.yytext),Rt.push(Ir.yylloc),rr.push(Fr[1]),An=null,Lr?(An=Lr,Lr=null):(Yr=Ir.yyleng,Gt=Ir.yytext,qr=Ir.yylineno,$r=Ir.yylloc,Gr>0);break;case 2:if(bn=this.productions_[Fr[1]][1],In.$=Ar[Ar.length-bn],In._$={first_line:Rt[Rt.length-(bn||1)].first_line,last_line:Rt[Rt.length-1].last_line,first_column:Rt[Rt.length-(bn||1)].first_column,last_column:Rt[Rt.length-1].last_column},ga&&(In._$.range=[Rt[Rt.length-(bn||1)].range[0],Rt[Rt.length-1].range[1]]),(xn=this.performAction.apply(In,[Gt,Yr,qr,Ur.yy,Fr[1],Ar,Rt].concat(zr)))!==void 0)return xn;bn&&(rr=rr.slice(0,-1*bn*2),Ar=Ar.slice(0,-1*bn),Rt=Rt.slice(0,-1*bn)),rr.push(this.productions_[Fr[1]][0]),Ar.push(In.$),Rt.push(In._$),Xn=vn[rr[rr.length-2]][rr[rr.length-1]],rr.push(Xn);break;case 3:return!0}}return!0}},Nr={EOF:1,parseError:function(Ie,Qe){if(!this.yy.parser)throw new Error(Ie);this.yy.parser.parseError(Ie,Qe)},setInput:function(Ie,Qe){return this.yy=Qe||this.yy||{},this._input=Ie,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 Ie=this._input[0];return this.yytext+=Ie,this.yyleng++,this.offset++,this.match+=Ie,this.matched+=Ie,Ie.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ie},unput:function(Ie){var Qe=Ie.length,rr=Ie.split(/(?:\r\n?|\n)/g);this._input=Ie+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qe),this.offset-=Qe;var Se=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),rr.length-1&&(this.yylineno-=rr.length-1);var Ar=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:rr?(rr.length===Se.length?this.yylloc.first_column:0)+Se[Se.length-rr.length].length-rr[0].length:this.yylloc.first_column-Qe},this.options.ranges&&(this.yylloc.range=[Ar[0],Ar[0]+this.yyleng-Qe]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(Ie){this.unput(this.match.slice(Ie))},pastInput:function(){var Ie=this.matched.substr(0,this.matched.length-this.match.length);return(Ie.length>20?"...":"")+Ie.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ie=this.match;return Ie.length<20&&(Ie+=this._input.substr(0,20-Ie.length)),(Ie.substr(0,20)+(Ie.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ie=this.pastInput(),Qe=new Array(Ie.length+1).join("-");return Ie+this.upcomingInput()+`
`+Qe+"^"},test_match:function(Ie,Qe){var rr,Se,Ar;if(this.options.backtrack_lexer&&(Ar={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&&(Ar.yylloc.range=this.yylloc.range.slice(0))),(Se=Ie[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Se?Se[Se.length-1].length-Se[Se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ie[0].length},this.yytext+=Ie[0],this.match+=Ie[0],this.matches=Ie,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(Ie[0].length),this.matched+=Ie[0],rr=this.performAction.call(this,this.yy,this,Qe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),rr)return rr;if(this._backtrack){for(var Rt in Ar)this[Rt]=Ar[Rt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ie,Qe,rr,Se;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ar=this._currentRules(),Rt=0;Rt<Ar.length;Rt++)if((rr=this._input.match(this.rules[Ar[Rt]]))&&(!Qe||rr[0].length>Qe[0].length)){if(Qe=rr,Se=Rt,this.options.backtrack_lexer){if((Ie=this.test_match(rr,Ar[Rt]))!==!1)return Ie;if(this._backtrack){Qe=!1;continue}return!1}if(!this.options.flex)break}return Qe?(Ie=this.test_match(Qe,Ar[Se]))!==!1&&Ie: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(){return this.next()||this.lex()},begin:function(Ie){this.conditionStack.push(Ie)},popState:function(){return this.conditionStack.length-1>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(Ie){return(Ie=this.conditionStack.length-1-Math.abs(Ie||0))>=0?this.conditionStack[Ie]:"INITIAL"},pushState:function(Ie){this.begin(Ie)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Ie,Qe,rr,Se){switch(rr){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),console.log("begin person_ext"),55;case 28:return this.begin("person"),console.log("begin person"),54;case 29:return this.begin("system_ext_queue"),console.log("begin system_ext_queue"),61;case 30:return this.begin("system_ext_db"),console.log("begin system_ext_db"),60;case 31:return this.begin("system_ext"),console.log("begin system_ext"),59;case 32:return this.begin("system_queue"),console.log("begin system_queue"),58;case 33:return this.begin("system_db"),console.log("begin system_db"),57;case 34:return this.begin("system"),console.log("begin system"),56;case 35:return this.begin("boundary"),console.log("begin boundary"),47;case 36:return this.begin("enterprise_boundary"),console.log("begin enterprise_boundary"),44;case 37:return this.begin("system_boundary"),console.log("begin system_boundary"),46;case 38:return this.begin("container_ext_queue"),console.log("begin container_ext_queue"),67;case 39:return this.begin("container_ext_db"),console.log("begin container_ext_db"),66;case 40:return this.begin("container_ext"),console.log("begin container_ext"),65;case 41:return this.begin("container_queue"),console.log("begin container_queue"),64;case 42:return this.begin("container_db"),console.log("begin container_db"),63;case 43:return this.begin("container"),console.log("begin container"),62;case 44:return this.begin("container_boundary"),console.log("begin container_boundary"),48;case 45:return this.begin("component_ext_queue"),console.log("begin component_ext_queue"),73;case 46:return this.begin("component_ext_db"),console.log("begin component_ext_db"),72;case 47:return this.begin("component_ext"),console.log("begin component_ext"),71;case 48:return this.begin("component_queue"),console.log("begin component_queue"),70;case 49:return this.begin("component_db"),console.log("begin component_db"),69;case 50:return this.begin("component"),console.log("begin component"),68;case 51:case 52:return this.begin("node"),console.log("begin node"),49;case 53:return this.begin("node_l"),console.log("begin node_l"),50;case 54:return this.begin("node_r"),console.log("begin node_r"),51;case 55:return this.begin("rel"),console.log("begin rel"),74;case 56:return this.begin("birel"),console.log("begin birel"),75;case 57:case 58:return this.begin("rel_u"),console.log("begin rel_u"),76;case 59:case 60:return this.begin("rel_d"),console.log("begin rel_d"),77;case 61:case 62:return this.begin("rel_l"),console.log("begin rel_l"),78;case 63:case 64:return this.begin("rel_r"),console.log("begin rel_r"),79;case 65:return this.begin("rel_b"),console.log("begin rel_b"),80;case 66:return this.begin("rel_index"),console.log("begin rel_index"),81;case 67:return this.begin("update_el_style"),console.log("begin update_el_style"),82;case 68:return this.begin("update_rel_style"),console.log("begin update_rel_style"),83;case 69:return this.begin("update_layout_config"),console.log("begin update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return console.log("begin attribute with ATTRIBUTE_EMPTY"),this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:console.log("begin attribute"),this.begin("attribute");break;case 73:console.log("STOP attribute"),this.popState(),console.log("STOP diagram"),this.popState();break;case 74:return console.log(",,"),90;case 75:console.log(",");break;case 76:return console.log("ATTRIBUTE_EMPTY"),90;case 77:console.log("begin string"),this.begin("string");break;case 78:console.log("STOP string"),this.popState();break;case 79:return console.log("STR"),"STR";case 80:console.log("begin string_kv"),this.begin("string_kv");break;case 81:return console.log("STR_KEY"),this.begin("string_kv_key"),"STR_KEY";case 82:console.log("begin string_kv_value"),this.popState(),this.begin("string_kv_value");break;case 83:return console.log("STR_VALUE"),"STR_VALUE";case 84:console.log("STOP string_kv_value"),this.popState(),this.popState();break;case 85:return console.log("not STR"),"STR";case 86:return console.log("begin boundary block"),"LBRACE";case 87:return console.log("STOP boundary block"),"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,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,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};function Br(){this.yy={}}return Jr.lexer=Nr,Br.prototype=Jr,Jr.Parser=Br,new Br}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(555).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},1362:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(Dt,he,re,At){for(re=re||{},At=Dt.length;At--;re[Dt[At]]=he);return re},v=[1,3],_=[1,7],S=[1,8],M=[1,9],E=[1,10],D=[1,13],B=[1,12],z=[1,16,25],H=[1,20],J=[1,31],rt=[1,32],dt=[1,33],K=[1,35],_t=[1,38],at=[1,36],ot=[1,37],bt=[1,39],zt=[1,40],Tt=[1,41],mt=[1,42],Ct=[1,45],xt=[1,46],gt=[1,47],et=[1,48],ft=[16,25],q=[1,62],wt=[1,63],W=[1,64],St=[1,65],Lt=[1,66],Wt=[1,67],ye=[16,25,32,44,45,53,56,57,58,59,60,61,66,68],Ve=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,66,68,83,84,85,86],ke=[5,8,9,10,11,16,19,23,25],fe=[53,83,84,85,86],xe=[53,60,61,83,84,85,86],Me=[53,56,57,58,59,83,84,85,86],Oe=[16,25,32],ve=[1,99],Sr={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,CLASS:43,STYLE_SEPARATOR:44,STRUCT_START:45,members:46,STRUCT_STOP:47,ANNOTATION_START:48,ANNOTATION_END:49,MEMBER:50,SEPARATOR:51,relation:52,STR:53,relationType:54,lineType:55,AGGREGATION:56,EXTENSION:57,COMPOSITION:58,DEPENDENCY:59,LINE:60,DOTTED_LINE:61,CALLBACK:62,LINK:63,LINK_TARGET:64,CLICK:65,CALLBACK_NAME:66,CALLBACK_ARGS:67,HREF:68,CSSCLASS:69,commentToken:70,textToken:71,graphCodeTokens:72,textNoTagsToken:73,TAGSTART:74,TAGEND:75,"==":76,"--":77,PCT:78,DEFAULT:79,SPACE:80,MINUS:81,keywords:82,UNICODE_TEXT:83,NUM:84,ALPHA:85,BQUOTE_STR:86,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"CLASS",44:"STYLE_SEPARATOR",45:"STRUCT_START",47:"STRUCT_STOP",48:"ANNOTATION_START",49:"ANNOTATION_END",50:"MEMBER",51:"SEPARATOR",53:"STR",56:"AGGREGATION",57:"EXTENSION",58:"COMPOSITION",59:"DEPENDENCY",60:"LINE",61:"DOTTED_LINE",62:"CALLBACK",63:"LINK",64:"LINK_TARGET",65:"CLICK",66:"CALLBACK_NAME",67:"CALLBACK_ARGS",68:"HREF",69:"CSSCLASS",72:"graphCodeTokens",74:"TAGSTART",75:"TAGEND",76:"==",77:"--",78:"PCT",79:"DEFAULT",80:"SPACE",81:"MINUS",82:"keywords",83:"UNICODE_TEXT",84:"NUM",85:"ALPHA",86:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[46,1],[46,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[52,3],[52,2],[52,2],[52,1],[54,1],[54,1],[54,1],[54,1],[55,1],[55,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[70,1],[70,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[73,1],[73,1],[73,1],[73,1],[28,1],[28,1],[28,1],[29,1]],performAction:function(Dt,he,re,At,Ee,Q,ce){var st=Q.length-1;switch(Ee){case 5:At.setDirection("TB");break;case 6:At.setDirection("BT");break;case 7:At.setDirection("RL");break;case 8:At.setDirection("LR");break;case 12:At.parseDirective("%%{","open_directive");break;case 13:At.parseDirective(Q[st],"type_directive");break;case 14:Q[st]=Q[st].trim().replace(/'/g,'"'),At.parseDirective(Q[st],"arg_directive");break;case 15:At.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=Q[st];break;case 22:this.$=Q[st-1]+Q[st];break;case 23:case 24:this.$=Q[st-1]+"~"+Q[st];break;case 25:At.addRelation(Q[st]);break;case 26:Q[st-1].title=At.cleanupLabel(Q[st]),At.addRelation(Q[st-1]);break;case 34:this.$=Q[st].trim(),At.setAccTitle(this.$);break;case 35:case 36:this.$=Q[st].trim(),At.setAccDescription(this.$);break;case 37:At.addClass(Q[st]);break;case 38:At.addClass(Q[st-2]),At.setCssClass(Q[st-2],Q[st]);break;case 39:At.addClass(Q[st-3]),At.addMembers(Q[st-3],Q[st-1]);break;case 40:At.addClass(Q[st-5]),At.setCssClass(Q[st-5],Q[st-3]),At.addMembers(Q[st-5],Q[st-1]);break;case 41:At.addAnnotation(Q[st],Q[st-2]);break;case 42:this.$=[Q[st]];break;case 43:Q[st].push(Q[st-1]),this.$=Q[st];break;case 44:case 46:case 47:break;case 45:At.addMember(Q[st-1],At.cleanupLabel(Q[st]));break;case 48:this.$={id1:Q[st-2],id2:Q[st],relation:Q[st-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:Q[st-3],id2:Q[st],relation:Q[st-1],relationTitle1:Q[st-2],relationTitle2:"none"};break;case 50:this.$={id1:Q[st-3],id2:Q[st],relation:Q[st-2],relationTitle1:"none",relationTitle2:Q[st-1]};break;case 51:this.$={id1:Q[st-4],id2:Q[st],relation:Q[st-2],relationTitle1:Q[st-3],relationTitle2:Q[st-1]};break;case 52:this.$={type1:Q[st-2],type2:Q[st],lineType:Q[st-1]};break;case 53:this.$={type1:"none",type2:Q[st],lineType:Q[st-1]};break;case 54:this.$={type1:Q[st-1],type2:"none",lineType:Q[st]};break;case 55:this.$={type1:"none",type2:"none",lineType:Q[st]};break;case 56:this.$=At.relationType.AGGREGATION;break;case 57:this.$=At.relationType.EXTENSION;break;case 58:this.$=At.relationType.COMPOSITION;break;case 59:this.$=At.relationType.DEPENDENCY;break;case 60:this.$=At.lineType.LINE;break;case 61:this.$=At.lineType.DOTTED_LINE;break;case 62:case 68:this.$=Q[st-2],At.setClickEvent(Q[st-1],Q[st]);break;case 63:case 69:this.$=Q[st-3],At.setClickEvent(Q[st-2],Q[st-1]),At.setTooltip(Q[st-2],Q[st]);break;case 64:case 72:this.$=Q[st-2],At.setLink(Q[st-1],Q[st]);break;case 65:case 73:this.$=Q[st-3],At.setLink(Q[st-2],Q[st-1],Q[st]);break;case 66:case 74:this.$=Q[st-3],At.setLink(Q[st-2],Q[st-1]),At.setTooltip(Q[st-2],Q[st]);break;case 67:case 75:this.$=Q[st-4],At.setLink(Q[st-3],Q[st-2],Q[st]),At.setTooltip(Q[st-3],Q[st-1]);break;case 70:this.$=Q[st-3],At.setClickEvent(Q[st-2],Q[st-1],Q[st]);break;case 71:this.$=Q[st-4],At.setClickEvent(Q[st-3],Q[st-2],Q[st-1]),At.setTooltip(Q[st-3],Q[st]);break;case 76:At.setCssClass(Q[st-1],Q[st])}},table:[{3:1,4:2,5:v,6:4,7:5,8:_,9:S,10:M,11:E,12:6,13:11,19:D,23:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:v,6:4,7:5,8:_,9:S,10:M,11:E,12:6,13:11,19:D,23:B},{1:[2,9]},f(z,[2,5]),f(z,[2,6]),f(z,[2,7]),f(z,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:H},f([17,22],[2,13]),{6:30,7:29,8:_,9:S,10:M,11:E,13:11,19:D,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:J,40:rt,42:dt,43:K,48:_t,50:at,51:ot,62:bt,63:zt,65:Tt,69:mt,83:Ct,84:xt,85:gt,86:et},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},f(ft,[2,25],{32:[1,54]}),f(ft,[2,27]),f(ft,[2,28]),f(ft,[2,29]),f(ft,[2,30]),f(ft,[2,31]),f(ft,[2,32]),f(ft,[2,33]),{39:[1,55]},{41:[1,56]},f(ft,[2,36]),f(ft,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:q,57:wt,58:W,59:St,60:Lt,61:Wt}),{27:68,28:43,29:44,83:Ct,84:xt,85:gt,86:et},f(ft,[2,46]),f(ft,[2,47]),{28:69,83:Ct,84:xt,85:gt},{27:70,28:43,29:44,83:Ct,84:xt,85:gt,86:et},{27:71,28:43,29:44,83:Ct,84:xt,85:gt,86:et},{27:72,28:43,29:44,83:Ct,84:xt,85:gt,86:et},{53:[1,73]},f(ye,[2,20],{28:43,29:44,27:74,30:[1,75],83:Ct,84:xt,85:gt,86:et}),f(ye,[2,21],{30:[1,76]}),f(Ve,[2,90]),f(Ve,[2,91]),f(Ve,[2,92]),f([16,25,30,32,44,45,53,56,57,58,59,60,61,66,68],[2,93]),f(ke,[2,10]),{15:77,22:H},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:_,9:S,10:M,11:E,13:11,19:D,24:78,25:[2,18],26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:J,40:rt,42:dt,43:K,48:_t,50:at,51:ot,62:bt,63:zt,65:Tt,69:mt,83:Ct,84:xt,85:gt,86:et},f(ft,[2,26]),f(ft,[2,34]),f(ft,[2,35]),{27:79,28:43,29:44,53:[1,80],83:Ct,84:xt,85:gt,86:et},{52:81,54:60,55:61,56:q,57:wt,58:W,59:St,60:Lt,61:Wt},f(ft,[2,45]),{55:82,60:Lt,61:Wt},f(fe,[2,55],{54:83,56:q,57:wt,58:W,59:St}),f(xe,[2,56]),f(xe,[2,57]),f(xe,[2,58]),f(xe,[2,59]),f(Me,[2,60]),f(Me,[2,61]),f(ft,[2,37],{44:[1,84],45:[1,85]}),{49:[1,86]},{53:[1,87]},{53:[1,88]},{66:[1,89],68:[1,90]},{28:91,83:Ct,84:xt,85:gt},f(ye,[2,22]),f(ye,[2,23]),f(ye,[2,24]),{16:[1,92]},{25:[2,19]},f(Oe,[2,48]),{27:93,28:43,29:44,83:Ct,84:xt,85:gt,86:et},{27:94,28:43,29:44,53:[1,95],83:Ct,84:xt,85:gt,86:et},f(fe,[2,54],{54:96,56:q,57:wt,58:W,59:St}),f(fe,[2,53]),{28:97,83:Ct,84:xt,85:gt},{46:98,50:ve},{27:100,28:43,29:44,83:Ct,84:xt,85:gt,86:et},f(ft,[2,62],{53:[1,101]}),f(ft,[2,64],{53:[1,103],64:[1,102]}),f(ft,[2,68],{53:[1,104],67:[1,105]}),f(ft,[2,72],{53:[1,107],64:[1,106]}),f(ft,[2,76]),f(ke,[2,11]),f(Oe,[2,50]),f(Oe,[2,49]),{27:108,28:43,29:44,83:Ct,84:xt,85:gt,86:et},f(fe,[2,52]),f(ft,[2,38],{45:[1,109]}),{47:[1,110]},{46:111,47:[2,42],50:ve},f(ft,[2,41]),f(ft,[2,63]),f(ft,[2,65]),f(ft,[2,66],{64:[1,112]}),f(ft,[2,69]),f(ft,[2,70],{53:[1,113]}),f(ft,[2,73]),f(ft,[2,74],{64:[1,114]}),f(Oe,[2,51]),{46:115,50:ve},f(ft,[2,39]),{47:[2,43]},f(ft,[2,67]),f(ft,[2,71]),f(ft,[2,75]),{47:[1,116]},f(ft,[2,40])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],51:[2,14],52:[2,16],78:[2,19],111:[2,43]},parseError:function(Dt,he){if(!he.recoverable){var re=new Error(Dt);throw re.hash=he,re}this.trace(Dt)},parse:function(Dt){var he=this,re=[0],At=[],Ee=[null],Q=[],ce=this.table,st="",Te=0,ge=0,Pe=0,ar=2,Ze=1,lr=Q.slice.call(arguments,1),Ne=Object.create(this.lexer),Re={yy:{}};for(var ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ze)&&(Re.yy[ze]=this.yy[ze]);Ne.setInput(Dt,Re.yy),Re.yy.lexer=Ne,Re.yy.parser=this,Ne.yylloc===void 0&&(Ne.yylloc={});var Fe=Ne.yylloc;Q.push(Fe);var be=Ne.options&&Ne.options.ranges;function ae(){var Se;return typeof(Se=At.pop()||Ne.lex()||Ze)!="number"&&(Se instanceof Array&&(Se=(At=Se).pop()),Se=he.symbols_[Se]||Se),Se}typeof Re.yy.parseError=="function"?this.parseError=Re.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var br,qe,sr,$e,Er,Jr,Nr,Br,Ie,Qe={};;){if(sr=re[re.length-1],this.defaultActions[sr]?$e=this.defaultActions[sr]:(br==null&&(br=ae()),$e=ce[sr]&&ce[sr][br]),$e===void 0||!$e.length||!$e[0]){var rr="";for(Jr in Ie=[],ce[sr])this.terminals_[Jr]&&Jr>ar&&Ie.push("'"+this.terminals_[Jr]+"'");rr=Ne.showPosition?"Parse error on line "+(Te+1)+`:
`+Ne.showPosition()+`
Expecting `+Ie.join(", ")+", got '"+(this.terminals_[br]||br)+"'":"Parse error on line "+(Te+1)+": Unexpected "+(br==Ze?"end of input":"'"+(this.terminals_[br]||br)+"'"),this.parseError(rr,{text:Ne.match,token:this.terminals_[br]||br,line:Ne.yylineno,loc:Fe,expected:Ie})}if($e[0]instanceof Array&&$e.length>1)throw new Error("Parse Error: multiple actions possible at state: "+sr+", token: "+br);switch($e[0]){case 1:re.push(br),Ee.push(Ne.yytext),Q.push(Ne.yylloc),re.push($e[1]),br=null,qe?(br=qe,qe=null):(ge=Ne.yyleng,st=Ne.yytext,Te=Ne.yylineno,Fe=Ne.yylloc,Pe>0);break;case 2:if(Nr=this.productions_[$e[1]][1],Qe.$=Ee[Ee.length-Nr],Qe._$={first_line:Q[Q.length-(Nr||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(Nr||1)].first_column,last_column:Q[Q.length-1].last_column},be&&(Qe._$.range=[Q[Q.length-(Nr||1)].range[0],Q[Q.length-1].range[1]]),(Er=this.performAction.apply(Qe,[st,ge,Te,Re.yy,$e[1],Ee,Q].concat(lr)))!==void 0)return Er;Nr&&(re=re.slice(0,-1*Nr*2),Ee=Ee.slice(0,-1*Nr),Q=Q.slice(0,-1*Nr)),re.push(this.productions_[$e[1]][0]),Ee.push(Qe.$),Q.push(Qe._$),Br=ce[re[re.length-2]][re[re.length-1]],re.push(Br);break;case 3:return!0}}return!0}},_e={EOF:1,parseError:function(Dt,he){if(!this.yy.parser)throw new Error(Dt);this.yy.parser.parseError(Dt,he)},setInput:function(Dt,he){return this.yy=he||this.yy||{},this._input=Dt,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 Dt=this._input[0];return this.yytext+=Dt,this.yyleng++,this.offset++,this.match+=Dt,this.matched+=Dt,Dt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Dt},unput:function(Dt){var he=Dt.length,re=Dt.split(/(?:\r\n?|\n)/g);this._input=Dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var At=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),re.length-1&&(this.yylineno-=re.length-1);var Ee=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:re?(re.length===At.length?this.yylloc.first_column:0)+At[At.length-re.length].length-re[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(Dt){this.unput(this.match.slice(Dt))},pastInput:function(){var Dt=this.matched.substr(0,this.matched.length-this.match.length);return(Dt.length>20?"...":"")+Dt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Dt=this.match;return Dt.length<20&&(Dt+=this._input.substr(0,20-Dt.length)),(Dt.substr(0,20)+(Dt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Dt=this.pastInput(),he=new Array(Dt.length+1).join("-");return Dt+this.upcomingInput()+`
`+he+"^"},test_match:function(Dt,he){var re,At,Ee;if(this.options.backtrack_lexer&&(Ee={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&&(Ee.yylloc.range=this.yylloc.range.slice(0))),(At=Dt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=At.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:At?At[At.length-1].length-At[At.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Dt[0].length},this.yytext+=Dt[0],this.match+=Dt[0],this.matches=Dt,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(Dt[0].length),this.matched+=Dt[0],re=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),re)return re;if(this._backtrack){for(var Q in Ee)this[Q]=Ee[Q];return!1}return!1},next:function(){if(this.done)return this.EOF;var Dt,he,re,At;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),Q=0;Q<Ee.length;Q++)if((re=this._input.match(this.rules[Ee[Q]]))&&(!he||re[0].length>he[0].length)){if(he=re,At=Q,this.options.backtrack_lexer){if((Dt=this.test_match(re,Ee[Q]))!==!1)return Dt;if(this._backtrack){he=!1;continue}return!1}if(!this.options.flex)break}return he?(Dt=this.test_match(he,Ee[At]))!==!1&&Dt: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(){return this.next()||this.lex()},begin:function(Dt){this.conditionStack.push(Dt)},popState:function(){return this.conditionStack.length-1>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(Dt){return(Dt=this.conditionStack.length-1-Math.abs(Dt||0))>=0?this.conditionStack[Dt]:"INITIAL"},pushState:function(Dt){this.begin(Dt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Dt,he,re,At){switch(re){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 26:break;case 11:return this.begin("acc_title"),38;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),40;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 36:case 39:case 42:case 45:case 48:case 51:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin("struct"),45;case 23:return"EOF_IN_STRUCT";case 24:return"OPEN_IN_STRUCT";case 25:return this.popState(),47;case 27:return"MEMBER";case 28:return 43;case 29:return 69;case 30:return 62;case 31:return 63;case 32:return 65;case 33:return 48;case 34:return 49;case 35:this.begin("generic");break;case 37:return"GENERICTYPE";case 38:this.begin("string");break;case 40:return"STR";case 41:this.begin("bqstring");break;case 43:return"BQUOTE_STR";case 44:this.begin("href");break;case 46:return 68;case 47:this.begin("callback_name");break;case 49:this.popState(),this.begin("callback_args");break;case 50:return 66;case 52:return 67;case 53:case 54:case 55:case 56:return 64;case 57:case 58:return 57;case 59:case 60:return 59;case 61:return 58;case 62:return 56;case 63:return 60;case 64:return 61;case 65:return 32;case 66:return 44;case 67:return 81;case 68:return"DOT";case 69:return"PLUS";case 70:return 78;case 71:case 72:return"EQUALS";case 73:return 85;case 74:return"PUNCTUATION";case 75:return 84;case 76:return 83;case 77:return 80;case 78:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[51,52],inclusive:!1},callback_name:{rules:[48,49,50],inclusive:!1},href:{rules:[45,46],inclusive:!1},struct:{rules:[23,24,25,26,27],inclusive:!1},generic:{rules:[36,37],inclusive:!1},bqstring:{rules:[42,43],inclusive:!1},string:{rules:[39,40],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,28,29,30,31,32,33,34,35,38,41,44,47,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78],inclusive:!0}}};function Je(){this.yy={}}return Sr.lexer=_e,Je.prototype=Sr,Sr.Parser=Je,new Je}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(8218).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},5890:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(et,ft,q,wt){for(q=q||{},wt=et.length;wt--;q[et[wt]]=ft);return q},v=[1,2],_=[1,5],S=[6,9,11,23,25,27,29,30,49],M=[1,17],E=[1,18],D=[1,19],B=[1,20],z=[1,21],H=[1,24],J=[1,29],rt=[1,30],dt=[1,31],K=[1,32],_t=[6,9,11,15,20,23,25,27,29,30,42,43,44,45,49],at=[1,45],ot=[30,46,47],bt=[4,6,9,11,23,25,27,29,30,49],zt=[42,43,44,45],Tt=[22,37],mt=[1,64],Ct={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,".":31,attribute:32,attributeType:33,attributeName:34,attributeKeyType:35,attributeComment:36,ATTRIBUTE_WORD:37,ATTRIBUTE_KEY:38,COMMENT:39,cardinality:40,relType:41,ZERO_OR_ONE:42,ZERO_OR_MORE:43,ONE_OR_MORE:44,ONLY_ONE:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:".",37:"ATTRIBUTE_WORD",38:"ATTRIBUTE_KEY",39:"COMMENT",42:"ZERO_OR_ONE",43:"ZERO_OR_MORE",44:"ONE_OR_MORE",45:"ONLY_ONE",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,3],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[36,1],[18,3],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(et,ft,q,wt,W,St,Lt){var Wt=St.length-1;switch(W){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:St[Wt-1].push(St[Wt]),this.$=St[Wt-1];break;case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=St[Wt];break;case 12:wt.addEntity(St[Wt-4]),wt.addEntity(St[Wt-2]),wt.addRelationship(St[Wt-4],St[Wt],St[Wt-2],St[Wt-3]);break;case 13:wt.addEntity(St[Wt-3]),wt.addAttributes(St[Wt-3],St[Wt-1]);break;case 14:wt.addEntity(St[Wt-2]);break;case 15:wt.addEntity(St[Wt]);break;case 16:case 17:this.$=St[Wt].trim(),wt.setAccTitle(this.$);break;case 18:case 19:this.$=St[Wt].trim(),wt.setAccDescription(this.$);break;case 21:this.$=St[Wt-2]+St[Wt-1]+St[Wt];break;case 22:this.$=[St[Wt]];break;case 23:St[Wt].push(St[Wt-1]),this.$=St[Wt];break;case 24:this.$={attributeType:St[Wt-1],attributeName:St[Wt]};break;case 25:this.$={attributeType:St[Wt-2],attributeName:St[Wt-1],attributeKeyType:St[Wt]};break;case 26:this.$={attributeType:St[Wt-2],attributeName:St[Wt-1],attributeComment:St[Wt]};break;case 27:this.$={attributeType:St[Wt-3],attributeName:St[Wt-2],attributeKeyType:St[Wt-1],attributeComment:St[Wt]};break;case 31:case 39:this.$=St[Wt].replace(/"/g,"");break;case 32:this.$={cardA:St[Wt],relType:St[Wt-1],cardB:St[Wt-2]};break;case 33:this.$=wt.Cardinality.ZERO_OR_ONE;break;case 34:this.$=wt.Cardinality.ZERO_OR_MORE;break;case 35:this.$=wt.Cardinality.ONE_OR_MORE;break;case 36:this.$=wt.Cardinality.ONLY_ONE;break;case 37:this.$=wt.Identification.NON_IDENTIFYING;break;case 38:this.$=wt.Identification.IDENTIFYING;break;case 41:wt.parseDirective("%%{","open_directive");break;case 42:wt.parseDirective(St[Wt],"type_directive");break;case 43:St[Wt]=St[Wt].trim().replace(/'/g,'"'),wt.parseDirective(St[Wt],"arg_directive");break;case 44:wt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:v,7:3,12:4,49:_},{1:[3]},f(S,[2,3],{5:6}),{3:7,4:v,7:3,12:4,49:_},{13:8,50:[1,9]},{50:[2,41]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:M,25:E,27:D,29:B,30:z,49:_},{1:[2,2]},{14:22,15:[1,23],52:H},f([15,52],[2,42]),f(S,[2,8],{1:[2,1]}),f(S,[2,4]),{7:15,10:25,12:4,17:16,23:M,25:E,27:D,29:B,30:z,49:_},f(S,[2,6]),f(S,[2,7]),f(S,[2,11]),f(S,[2,15],{18:26,40:28,20:[1,27],42:J,43:rt,44:dt,45:K}),{24:[1,33]},{26:[1,34]},{28:[1,35]},f(S,[2,19]),f(_t,[2,20],{31:[1,36]}),{11:[1,37]},{16:38,51:[1,39]},{11:[2,44]},f(S,[2,5]),{17:40,30:z},{21:41,22:[1,42],32:43,33:44,37:at},{41:46,46:[1,47],47:[1,48]},f(ot,[2,33]),f(ot,[2,34]),f(ot,[2,35]),f(ot,[2,36]),f(S,[2,16]),f(S,[2,17]),f(S,[2,18]),{17:49,30:z},f(bt,[2,9]),{14:50,52:H},{52:[2,43]},{15:[1,51]},{22:[1,52]},f(S,[2,14]),{21:53,22:[2,22],32:43,33:44,37:at},{34:54,37:[1,55]},{37:[2,28]},{40:56,42:J,43:rt,44:dt,45:K},f(zt,[2,37]),f(zt,[2,38]),f(_t,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},f(S,[2,13]),{22:[2,23]},f(Tt,[2,24],{35:61,36:62,38:[1,63],39:mt}),f([22,37,38,39],[2,29]),{30:[2,32]},f(bt,[2,10]),f(S,[2,12]),f(S,[2,39]),f(S,[2,40]),f(Tt,[2,25],{36:65,39:mt}),f(Tt,[2,26]),f([22,37,39],[2,30]),f(Tt,[2,31]),f(Tt,[2,27])],defaultActions:{5:[2,41],7:[2,2],24:[2,44],39:[2,43],45:[2,28],53:[2,23],56:[2,32]},parseError:function(et,ft){if(!ft.recoverable){var q=new Error(et);throw q.hash=ft,q}this.trace(et)},parse:function(et){var ft=this,q=[0],wt=[],W=[null],St=[],Lt=this.table,Wt="",ye=0,Ve=0,ke=0,fe=2,xe=1,Me=St.slice.call(arguments,1),Oe=Object.create(this.lexer),ve={yy:{}};for(var Sr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Sr)&&(ve.yy[Sr]=this.yy[Sr]);Oe.setInput(et,ve.yy),ve.yy.lexer=Oe,ve.yy.parser=this,Oe.yylloc===void 0&&(Oe.yylloc={});var _e=Oe.yylloc;St.push(_e);var Je=Oe.options&&Oe.options.ranges;function Dt(){var Ze;return typeof(Ze=wt.pop()||Oe.lex()||xe)!="number"&&(Ze instanceof Array&&(Ze=(wt=Ze).pop()),Ze=ft.symbols_[Ze]||Ze),Ze}typeof ve.yy.parseError=="function"?this.parseError=ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var he,re,At,Ee,Q,ce,st,Te,ge,Pe={};;){if(At=q[q.length-1],this.defaultActions[At]?Ee=this.defaultActions[At]:(he==null&&(he=Dt()),Ee=Lt[At]&&Lt[At][he]),Ee===void 0||!Ee.length||!Ee[0]){var ar="";for(ce in ge=[],Lt[At])this.terminals_[ce]&&ce>fe&&ge.push("'"+this.terminals_[ce]+"'");ar=Oe.showPosition?"Parse error on line "+(ye+1)+`:
`+Oe.showPosition()+`
Expecting `+ge.join(", ")+", got '"+(this.terminals_[he]||he)+"'":"Parse error on line "+(ye+1)+": Unexpected "+(he==xe?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(ar,{text:Oe.match,token:this.terminals_[he]||he,line:Oe.yylineno,loc:_e,expected:ge})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+he);switch(Ee[0]){case 1:q.push(he),W.push(Oe.yytext),St.push(Oe.yylloc),q.push(Ee[1]),he=null,re?(he=re,re=null):(Ve=Oe.yyleng,Wt=Oe.yytext,ye=Oe.yylineno,_e=Oe.yylloc,ke>0);break;case 2:if(st=this.productions_[Ee[1]][1],Pe.$=W[W.length-st],Pe._$={first_line:St[St.length-(st||1)].first_line,last_line:St[St.length-1].last_line,first_column:St[St.length-(st||1)].first_column,last_column:St[St.length-1].last_column},Je&&(Pe._$.range=[St[St.length-(st||1)].range[0],St[St.length-1].range[1]]),(Q=this.performAction.apply(Pe,[Wt,Ve,ye,ve.yy,Ee[1],W,St].concat(Me)))!==void 0)return Q;st&&(q=q.slice(0,-1*st*2),W=W.slice(0,-1*st),St=St.slice(0,-1*st)),q.push(this.productions_[Ee[1]][0]),W.push(Pe.$),St.push(Pe._$),Te=Lt[q[q.length-2]][q[q.length-1]],q.push(Te);break;case 3:return!0}}return!0}},xt={EOF:1,parseError:function(et,ft){if(!this.yy.parser)throw new Error(et);this.yy.parser.parseError(et,ft)},setInput:function(et,ft){return this.yy=ft||this.yy||{},this._input=et,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 et=this._input[0];return this.yytext+=et,this.yyleng++,this.offset++,this.match+=et,this.matched+=et,et.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),et},unput:function(et){var ft=et.length,q=et.split(/(?:\r\n?|\n)/g);this._input=et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ft),this.offset-=ft;var wt=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),q.length-1&&(this.yylineno-=q.length-1);var W=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:q?(q.length===wt.length?this.yylloc.first_column:0)+wt[wt.length-q.length].length-q[0].length:this.yylloc.first_column-ft},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-ft]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(et){this.unput(this.match.slice(et))},pastInput:function(){var et=this.matched.substr(0,this.matched.length-this.match.length);return(et.length>20?"...":"")+et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var et=this.match;return et.length<20&&(et+=this._input.substr(0,20-et.length)),(et.substr(0,20)+(et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var et=this.pastInput(),ft=new Array(et.length+1).join("-");return et+this.upcomingInput()+`
`+ft+"^"},test_match:function(et,ft){var q,wt,W;if(this.options.backtrack_lexer&&(W={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&&(W.yylloc.range=this.yylloc.range.slice(0))),(wt=et[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=wt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:wt?wt[wt.length-1].length-wt[wt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+et[0].length},this.yytext+=et[0],this.match+=et[0],this.matches=et,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(et[0].length),this.matched+=et[0],q=this.performAction.call(this,this.yy,this,ft,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),q)return q;if(this._backtrack){for(var St in W)this[St]=W[St];return!1}return!1},next:function(){if(this.done)return this.EOF;var et,ft,q,wt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var W=this._currentRules(),St=0;St<W.length;St++)if((q=this._input.match(this.rules[W[St]]))&&(!ft||q[0].length>ft[0].length)){if(ft=q,wt=St,this.options.backtrack_lexer){if((et=this.test_match(q,W[St]))!==!1)return et;if(this._backtrack){ft=!1;continue}return!1}if(!this.options.flex)break}return ft?(et=this.test_match(ft,W[wt]))!==!1&&et: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(){return this.next()||this.lex()},begin:function(et){this.conditionStack.push(et)},popState:function(){return this.conditionStack.length-1>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(et){return(et=this.conditionStack.length-1-Math.abs(et||0))>=0?this.conditionStack[et]:"INITIAL"},pushState:function(et){this.begin(et)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(et,ft,q,wt){switch(q){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;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 this.begin("open_directive"),49;case 8:return this.begin("type_directive"),50;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),52;case 11:return 51;case 12:case 13:case 15:case 20:case 24:break;case 14:return 11;case 16:return 9;case 17:return 48;case 18:return 4;case 19:return this.begin("block"),20;case 21:return 38;case 22:return 37;case 23:return 39;case 25:return this.popState(),22;case 26:case 39:return ft.yytext[0];case 27:case 31:return 42;case 28:case 32:return 43;case 29:case 33:return 44;case 30:return 45;case 34:case 36:case 37:return 46;case 35:return 47;case 38:return 30;case 40:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK))\b)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/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},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[20,21,22,23,24,25,26],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,27,28,29,30,31,32,33,34,35,36,37,38,39,40],inclusive:!0}}};function gt(){this.yy={}}return Ct.lexer=xt,gt.prototype=Ct,Ct.Parser=gt,new gt}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(8009).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},3602:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(dr,yr,Xr,nr){for(Xr=Xr||{},nr=dr.length;nr--;Xr[dr[nr]]=yr);return Xr},v=[1,9],_=[1,7],S=[1,6],M=[1,8],E=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],D=[2,10],B=[1,20],z=[1,21],H=[1,22],J=[1,23],rt=[1,30],dt=[1,32],K=[1,33],_t=[1,34],at=[1,62],ot=[1,48],bt=[1,52],zt=[1,36],Tt=[1,37],mt=[1,38],Ct=[1,39],xt=[1,40],gt=[1,56],et=[1,63],ft=[1,51],q=[1,53],wt=[1,55],W=[1,59],St=[1,60],Lt=[1,41],Wt=[1,42],ye=[1,43],Ve=[1,44],ke=[1,61],fe=[1,50],xe=[1,54],Me=[1,57],Oe=[1,58],ve=[1,49],Sr=[1,66],_e=[1,71],Je=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Dt=[1,75],he=[1,74],re=[1,76],At=[20,21,23,81,82],Ee=[1,99],Q=[1,104],ce=[1,107],st=[1,108],Te=[1,101],ge=[1,106],Pe=[1,109],ar=[1,102],Ze=[1,114],lr=[1,113],Ne=[1,103],Re=[1,105],ze=[1,110],Fe=[1,111],be=[1,112],ae=[1,115],br=[20,21,22,23,81,82],qe=[20,21,22,23,53,81,82],sr=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],$e=[20,21,23],Er=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],Jr=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Nr=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],Br=[1,149],Ie=[1,157],Qe=[1,158],rr=[1,159],Se=[1,160],Ar=[1,144],Rt=[1,145],vn=[1,141],Gt=[1,152],qr=[1,153],Yr=[1,154],Gr=[1,155],Dr=[1,156],Vr=[1,161],zr=[1,162],Ir=[1,147],Ur=[1,150],jr=[1,146],$r=[1,143],ga=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Mn=[1,165],An=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Lr=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],ui=[12,21,22,24],Fr=[22,106],xn=[1,250],Nn=[1,245],bn=[1,246],Xn=[1,254],Bt=[1,251],In=[1,248],On=[1,247],Zr=[1,249],ei=[1,252],Hn=[1,253],Bn=[1,255],ri=[1,273],Ca=[20,21,23,106],dn=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],Si={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(dr,yr,Xr,nr,ln,Zt,Un){var te=Zt.length-1;switch(ln){case 5:nr.parseDirective("%%{","open_directive");break;case 6:nr.parseDirective(Zt[te],"type_directive");break;case 7:Zt[te]=Zt[te].trim().replace(/'/g,'"'),nr.parseDirective(Zt[te],"arg_directive");break;case 8:nr.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:Zt[te]!==[]&&Zt[te-1].push(Zt[te]),this.$=Zt[te-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=Zt[te];break;case 19:nr.setDirection("TB"),this.$="TB";break;case 20:nr.setDirection(Zt[te-1]),this.$=Zt[te-1];break;case 35:this.$=Zt[te-1].nodes;break;case 41:this.$=nr.addSubGraph(Zt[te-6],Zt[te-1],Zt[te-4]);break;case 42:this.$=nr.addSubGraph(Zt[te-3],Zt[te-1],Zt[te-3]);break;case 43:this.$=nr.addSubGraph(void 0,Zt[te-1],void 0);break;case 45:this.$=Zt[te].trim(),nr.setAccTitle(this.$);break;case 46:case 47:this.$=Zt[te].trim(),nr.setAccDescription(this.$);break;case 51:nr.addLink(Zt[te-2].stmt,Zt[te],Zt[te-1]),this.$={stmt:Zt[te],nodes:Zt[te].concat(Zt[te-2].nodes)};break;case 52:nr.addLink(Zt[te-3].stmt,Zt[te-1],Zt[te-2]),this.$={stmt:Zt[te-1],nodes:Zt[te-1].concat(Zt[te-3].nodes)};break;case 53:this.$={stmt:Zt[te-1],nodes:Zt[te-1]};break;case 54:this.$={stmt:Zt[te],nodes:Zt[te]};break;case 55:case 123:case 125:this.$=[Zt[te]];break;case 56:this.$=Zt[te-4].concat(Zt[te]);break;case 57:this.$=[Zt[te-2]],nr.setClass(Zt[te-2],Zt[te]);break;case 58:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"square");break;case 59:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"doublecircle");break;case 60:this.$=Zt[te-5],nr.addVertex(Zt[te-5],Zt[te-2],"circle");break;case 61:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"ellipse");break;case 62:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"stadium");break;case 63:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"subroutine");break;case 64:this.$=Zt[te-7],nr.addVertex(Zt[te-7],Zt[te-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Zt[te-5],Zt[te-3]]]));break;case 65:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"cylinder");break;case 66:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"round");break;case 67:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"diamond");break;case 68:this.$=Zt[te-5],nr.addVertex(Zt[te-5],Zt[te-2],"hexagon");break;case 69:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"odd");break;case 70:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"trapezoid");break;case 71:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"inv_trapezoid");break;case 72:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"lean_right");break;case 73:this.$=Zt[te-3],nr.addVertex(Zt[te-3],Zt[te-1],"lean_left");break;case 74:this.$=Zt[te],nr.addVertex(Zt[te]);break;case 75:Zt[te-1].text=Zt[te],this.$=Zt[te-1];break;case 76:case 77:Zt[te-2].text=Zt[te-1],this.$=Zt[te-2];break;case 79:var wn=nr.destructLink(Zt[te],Zt[te-2]);this.$={type:wn.type,stroke:wn.stroke,length:wn.length,text:Zt[te-1]};break;case 80:wn=nr.destructLink(Zt[te]),this.$={type:wn.type,stroke:wn.stroke,length:wn.length};break;case 81:this.$=Zt[te-1];break;case 83:case 97:case 153:case 151:this.$=Zt[te-1]+""+Zt[te];break;case 98:case 99:this.$=Zt[te-4],nr.addClass(Zt[te-2],Zt[te]);break;case 100:this.$=Zt[te-4],nr.setClass(Zt[te-2],Zt[te]);break;case 101:case 109:this.$=Zt[te-1],nr.setClickEvent(Zt[te-1],Zt[te]);break;case 102:case 110:this.$=Zt[te-3],nr.setClickEvent(Zt[te-3],Zt[te-2]),nr.setTooltip(Zt[te-3],Zt[te]);break;case 103:this.$=Zt[te-2],nr.setClickEvent(Zt[te-2],Zt[te-1],Zt[te]);break;case 104:this.$=Zt[te-4],nr.setClickEvent(Zt[te-4],Zt[te-3],Zt[te-2]),nr.setTooltip(Zt[te-4],Zt[te]);break;case 105:case 111:this.$=Zt[te-1],nr.setLink(Zt[te-1],Zt[te]);break;case 106:case 112:this.$=Zt[te-3],nr.setLink(Zt[te-3],Zt[te-2]),nr.setTooltip(Zt[te-3],Zt[te]);break;case 107:case 113:this.$=Zt[te-3],nr.setLink(Zt[te-3],Zt[te-2],Zt[te]);break;case 108:case 114:this.$=Zt[te-5],nr.setLink(Zt[te-5],Zt[te-4],Zt[te]),nr.setTooltip(Zt[te-5],Zt[te-2]);break;case 115:this.$=Zt[te-4],nr.addVertex(Zt[te-2],void 0,void 0,Zt[te]);break;case 116:case 118:this.$=Zt[te-4],nr.updateLink(Zt[te-2],Zt[te]);break;case 117:this.$=Zt[te-4],nr.updateLink([Zt[te-2]],Zt[te]);break;case 119:this.$=Zt[te-8],nr.updateLinkInterpolate([Zt[te-6]],Zt[te-2]),nr.updateLink([Zt[te-6]],Zt[te]);break;case 120:this.$=Zt[te-8],nr.updateLinkInterpolate(Zt[te-6],Zt[te-2]),nr.updateLink(Zt[te-6],Zt[te]);break;case 121:this.$=Zt[te-6],nr.updateLinkInterpolate([Zt[te-4]],Zt[te]);break;case 122:this.$=Zt[te-6],nr.updateLinkInterpolate(Zt[te-4],Zt[te]);break;case 124:case 126:Zt[te-2].push(Zt[te]),this.$=Zt[te-2];break;case 128:this.$=Zt[te-1]+Zt[te];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:v,16:4,21:_,22:S,24:M},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:v,16:4,21:_,22:S,24:M},f(E,D,{17:11}),{7:12,13:[1,13]},{16:14,21:_,22:S,24:M},{16:15,21:_,22:S,24:M},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:B,21:z,22:H,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,43:31,44:dt,46:K,48:_t,50:35,51:45,52:at,54:46,66:ot,67:bt,86:zt,87:Tt,88:mt,89:Ct,90:xt,91:gt,95:et,105:ft,106:q,109:wt,111:W,112:St,116:47,118:Lt,119:Wt,120:ye,121:Ve,122:ke,123:fe,124:xe,125:Me,126:Oe,127:ve},{8:64,10:[1,65],15:Sr},f([10,15],[2,6]),f(E,[2,17]),f(E,[2,18]),f(E,[2,19]),{20:[1,68],21:[1,69],22:_e,27:67,30:70},f(Je,[2,11]),f(Je,[2,12]),f(Je,[2,13]),f(Je,[2,14]),f(Je,[2,15]),f(Je,[2,16]),{9:72,20:Dt,21:he,23:re,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:Dt,21:he,23:re},{9:81,20:Dt,21:he,23:re},{9:82,20:Dt,21:he,23:re},{9:83,20:Dt,21:he,23:re},{9:84,20:Dt,21:he,23:re},{9:86,20:Dt,21:he,22:[1,85],23:re},f(Je,[2,44]),{45:[1,87]},{47:[1,88]},f(Je,[2,47]),f(At,[2,54],{30:89,22:_e}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:Ee,52:Q,66:ce,67:st,84:[1,97],91:Te,97:96,98:[1,94],100:[1,95],105:ge,106:Pe,109:ar,111:Ze,112:lr,115:100,117:98,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f(Je,[2,158]),f(Je,[2,159]),f(Je,[2,160]),f(Je,[2,161]),f(br,[2,55],{53:[1,116]}),f(qe,[2,74],{116:129,40:[1,117],52:at,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:ot,67:bt,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:gt,95:et,105:ft,106:q,109:wt,111:W,112:St,122:ke,123:fe,124:xe,125:Me,126:Oe,127:ve}),f(sr,[2,150]),f(sr,[2,175]),f(sr,[2,176]),f(sr,[2,177]),f(sr,[2,178]),f(sr,[2,179]),f(sr,[2,180]),f(sr,[2,181]),f(sr,[2,182]),f(sr,[2,183]),f(sr,[2,184]),f(sr,[2,185]),f(sr,[2,186]),f(sr,[2,187]),f(sr,[2,188]),f(sr,[2,189]),f(sr,[2,190]),{9:130,20:Dt,21:he,23:re},{11:131,14:[1,132]},f($e,[2,8]),f(E,[2,20]),f(E,[2,26]),f(E,[2,27]),{21:[1,133]},f(Er,[2,34],{30:134,22:_e}),f(Je,[2,35]),{50:135,51:45,52:at,54:46,66:ot,67:bt,91:gt,95:et,105:ft,106:q,109:wt,111:W,112:St,116:47,122:ke,123:fe,124:xe,125:Me,126:Oe,127:ve},f(Jr,[2,48]),f(Jr,[2,49]),f(Jr,[2,50]),f(Nr,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:Br,24:Ie,26:Qe,38:rr,39:139,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),f(Je,[2,36]),f(Je,[2,37]),f(Je,[2,38]),f(Je,[2,39]),f(Je,[2,40]),{22:Br,24:Ie,26:Qe,38:rr,39:163,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f(ga,D,{17:164}),f(Je,[2,45]),f(Je,[2,46]),f(At,[2,53],{52:Mn}),{26:Ee,52:Q,66:ce,67:st,91:Te,97:166,102:[1,167],105:ge,106:Pe,109:ar,111:Ze,112:lr,115:100,117:98,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{95:[1,168],103:169,105:[1,170]},{26:Ee,52:Q,66:ce,67:st,91:Te,95:[1,171],97:172,105:ge,106:Pe,109:ar,111:Ze,112:lr,115:100,117:98,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{26:Ee,52:Q,66:ce,67:st,91:Te,97:173,105:ge,106:Pe,109:ar,111:Ze,112:lr,115:100,117:98,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f($e,[2,101],{22:[1,174],99:[1,175]}),f($e,[2,105],{22:[1,176]}),f($e,[2,109],{115:100,117:178,22:[1,177],26:Ee,52:Q,66:ce,67:st,91:Te,105:ge,106:Pe,109:ar,111:Ze,112:lr,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae}),f($e,[2,111],{22:[1,179]}),f(An,[2,152]),f(An,[2,154]),f(An,[2,155]),f(An,[2,156]),f(An,[2,157]),f(Lr,[2,162]),f(Lr,[2,163]),f(Lr,[2,164]),f(Lr,[2,165]),f(Lr,[2,166]),f(Lr,[2,167]),f(Lr,[2,168]),f(Lr,[2,169]),f(Lr,[2,170]),f(Lr,[2,171]),f(Lr,[2,172]),f(Lr,[2,173]),f(Lr,[2,174]),{52:at,54:180,66:ot,67:bt,91:gt,95:et,105:ft,106:q,109:wt,111:W,112:St,116:47,122:ke,123:fe,124:xe,125:Me,126:Oe,127:ve},{22:Br,24:Ie,26:Qe,38:rr,39:181,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,39:182,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,39:184,42:Se,52:Q,57:[1,183],66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,39:185,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,39:186,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,39:187,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{66:[1,188]},{22:Br,24:Ie,26:Qe,38:rr,39:189,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,39:190,42:Se,52:Q,66:ce,67:st,71:[1,191],73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,39:192,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,39:193,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,39:194,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f(sr,[2,151]),f(ui,[2,3]),{8:195,15:Sr},{15:[2,7]},f(E,[2,28]),f(Er,[2,33]),f(At,[2,51],{30:196,22:_e}),f(Nr,[2,75],{22:[1,197]}),{22:[1,198]},{22:Br,24:Ie,26:Qe,38:rr,39:199,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,82:[1,200],83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f(Lr,[2,82]),f(Lr,[2,84]),f(Lr,[2,140]),f(Lr,[2,141]),f(Lr,[2,142]),f(Lr,[2,143]),f(Lr,[2,144]),f(Lr,[2,145]),f(Lr,[2,146]),f(Lr,[2,147]),f(Lr,[2,148]),f(Lr,[2,149]),f(Lr,[2,85]),f(Lr,[2,86]),f(Lr,[2,87]),f(Lr,[2,88]),f(Lr,[2,89]),f(Lr,[2,90]),f(Lr,[2,91]),f(Lr,[2,92]),f(Lr,[2,93]),f(Lr,[2,94]),f(Lr,[2,95]),{9:203,20:Dt,21:he,22:Br,23:re,24:Ie,26:Qe,38:rr,40:[1,202],42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{18:18,19:19,20:B,21:z,22:H,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,42:[1,204],43:31,44:dt,46:K,48:_t,50:35,51:45,52:at,54:46,66:ot,67:bt,86:zt,87:Tt,88:mt,89:Ct,90:xt,91:gt,95:et,105:ft,106:q,109:wt,111:W,112:St,116:47,118:Lt,119:Wt,120:ye,121:Ve,122:ke,123:fe,124:xe,125:Me,126:Oe,127:ve},{22:_e,30:205},{22:[1,206],26:Ee,52:Q,66:ce,67:st,91:Te,105:ge,106:Pe,109:ar,111:Ze,112:lr,115:100,117:178,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},f(Fr,[2,123]),{22:[1,211]},{22:[1,212],26:Ee,52:Q,66:ce,67:st,91:Te,105:ge,106:Pe,109:ar,111:Ze,112:lr,115:100,117:178,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:[1,213],26:Ee,52:Q,66:ce,67:st,91:Te,105:ge,106:Pe,109:ar,111:Ze,112:lr,115:100,117:178,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{84:[1,214]},f($e,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},f(An,[2,153]),{84:[1,219],101:[1,220]},f(br,[2,57],{116:129,52:at,66:ot,67:bt,91:gt,95:et,105:ft,106:q,109:wt,111:W,112:St,122:ke,123:fe,124:xe,125:Me,126:Oe,127:ve}),{22:Br,24:Ie,26:Qe,38:rr,41:[1,221],42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,56:[1,222],66:ce,67:st,73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,39:223,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,58:[1,224],66:ce,67:st,73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,60:[1,225],66:ce,67:st,73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,62:[1,226],66:ce,67:st,73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,64:[1,227],66:ce,67:st,73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{67:[1,228]},{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,66:ce,67:st,70:[1,229],73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,66:ce,67:st,72:[1,230],73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,39:231,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,41:[1,232],42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,66:ce,67:st,73:Ar,75:[1,233],77:[1,234],81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,66:ce,67:st,73:Ar,75:[1,236],77:[1,235],81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{9:237,20:Dt,21:he,23:re},f(At,[2,52],{52:Mn}),f(Nr,[2,77]),f(Nr,[2,76]),{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,66:ce,67:st,68:[1,238],73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f(Nr,[2,79]),f(Lr,[2,83]),{22:Br,24:Ie,26:Qe,38:rr,39:239,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f(ga,D,{17:240}),f(Je,[2,43]),{51:241,52:at,54:46,66:ot,67:bt,91:gt,95:et,105:ft,106:q,109:wt,111:W,112:St,116:47,122:ke,123:fe,124:xe,125:Me,126:Oe,127:ve},{22:xn,66:Nn,67:bn,86:Xn,96:242,102:Bt,105:In,107:243,108:244,109:On,110:Zr,111:ei,112:Hn,113:Bn},{22:xn,66:Nn,67:bn,86:Xn,96:256,102:Bt,105:In,107:243,108:244,109:On,110:Zr,111:ei,112:Hn,113:Bn},{22:xn,66:Nn,67:bn,86:Xn,96:257,102:Bt,104:[1,258],105:In,107:243,108:244,109:On,110:Zr,111:ei,112:Hn,113:Bn},{22:xn,66:Nn,67:bn,86:Xn,96:259,102:Bt,104:[1,260],105:In,107:243,108:244,109:On,110:Zr,111:ei,112:Hn,113:Bn},{105:[1,261]},{22:xn,66:Nn,67:bn,86:Xn,96:262,102:Bt,105:In,107:243,108:244,109:On,110:Zr,111:ei,112:Hn,113:Bn},{22:xn,66:Nn,67:bn,86:Xn,96:263,102:Bt,105:In,107:243,108:244,109:On,110:Zr,111:ei,112:Hn,113:Bn},{26:Ee,52:Q,66:ce,67:st,91:Te,97:264,105:ge,106:Pe,109:ar,111:Ze,112:lr,115:100,117:98,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f($e,[2,102]),{84:[1,265]},f($e,[2,106],{22:[1,266]}),f($e,[2,107]),f($e,[2,110]),f($e,[2,112],{22:[1,267]}),f($e,[2,113]),f(qe,[2,58]),f(qe,[2,59]),{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,58:[1,268],66:ce,67:st,73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f(qe,[2,66]),f(qe,[2,61]),f(qe,[2,62]),f(qe,[2,63]),{66:[1,269]},f(qe,[2,65]),f(qe,[2,67]),{22:Br,24:Ie,26:Qe,38:rr,42:Se,52:Q,66:ce,67:st,72:[1,270],73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f(qe,[2,69]),f(qe,[2,70]),f(qe,[2,72]),f(qe,[2,71]),f(qe,[2,73]),f(ui,[2,4]),f([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:Br,24:Ie,26:Qe,38:rr,41:[1,271],42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{18:18,19:19,20:B,21:z,22:H,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,42:[1,272],43:31,44:dt,46:K,48:_t,50:35,51:45,52:at,54:46,66:ot,67:bt,86:zt,87:Tt,88:mt,89:Ct,90:xt,91:gt,95:et,105:ft,106:q,109:wt,111:W,112:St,116:47,118:Lt,119:Wt,120:ye,121:Ve,122:ke,123:fe,124:xe,125:Me,126:Oe,127:ve},f(br,[2,56]),f($e,[2,115],{106:ri}),f(Ca,[2,125],{108:274,22:xn,66:Nn,67:bn,86:Xn,102:Bt,105:In,109:On,110:Zr,111:ei,112:Hn,113:Bn}),f(dn,[2,127]),f(dn,[2,129]),f(dn,[2,130]),f(dn,[2,131]),f(dn,[2,132]),f(dn,[2,133]),f(dn,[2,134]),f(dn,[2,135]),f(dn,[2,136]),f(dn,[2,137]),f(dn,[2,138]),f(dn,[2,139]),f($e,[2,116],{106:ri}),f($e,[2,117],{106:ri}),{22:[1,275]},f($e,[2,118],{106:ri}),{22:[1,276]},f(Fr,[2,124]),f($e,[2,98],{106:ri}),f($e,[2,99],{106:ri}),f($e,[2,100],{115:100,117:178,26:Ee,52:Q,66:ce,67:st,91:Te,105:ge,106:Pe,109:ar,111:Ze,112:lr,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae}),f($e,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:Dt,21:he,23:re},f(Je,[2,42]),{22:xn,66:Nn,67:bn,86:Xn,102:Bt,105:In,107:283,108:244,109:On,110:Zr,111:ei,112:Hn,113:Bn},f(dn,[2,128]),{26:Ee,52:Q,66:ce,67:st,91:Te,97:284,105:ge,106:Pe,109:ar,111:Ze,112:lr,115:100,117:98,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{26:Ee,52:Q,66:ce,67:st,91:Te,97:285,105:ge,106:Pe,109:ar,111:Ze,112:lr,115:100,117:98,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f($e,[2,108]),f($e,[2,114]),f(qe,[2,60]),{22:Br,24:Ie,26:Qe,38:rr,39:286,42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:140,84:vn,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},f(qe,[2,68]),f(ga,D,{17:287}),f(Ca,[2,126],{108:274,22:xn,66:Nn,67:bn,86:Xn,102:Bt,105:In,109:On,110:Zr,111:ei,112:Hn,113:Bn}),f($e,[2,121],{115:100,117:178,22:[1,288],26:Ee,52:Q,66:ce,67:st,91:Te,105:ge,106:Pe,109:ar,111:Ze,112:lr,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae}),f($e,[2,122],{115:100,117:178,22:[1,289],26:Ee,52:Q,66:ce,67:st,91:Te,105:ge,106:Pe,109:ar,111:Ze,112:lr,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae}),{22:Br,24:Ie,26:Qe,38:rr,41:[1,290],42:Se,52:Q,66:ce,67:st,73:Ar,81:Rt,83:201,85:151,86:Gt,87:qr,88:Yr,89:Gr,90:Dr,91:Vr,92:zr,94:142,95:Ir,105:ge,106:Pe,109:Ur,111:Ze,112:lr,113:jr,114:$r,115:148,122:Ne,123:Re,124:ze,125:Fe,126:be,127:ae},{18:18,19:19,20:B,21:z,22:H,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,42:[1,291],43:31,44:dt,46:K,48:_t,50:35,51:45,52:at,54:46,66:ot,67:bt,86:zt,87:Tt,88:mt,89:Ct,90:xt,91:gt,95:et,105:ft,106:q,109:wt,111:W,112:St,116:47,118:Lt,119:Wt,120:ye,121:Ve,122:ke,123:fe,124:xe,125:Me,126:Oe,127:ve},{22:xn,66:Nn,67:bn,86:Xn,96:292,102:Bt,105:In,107:243,108:244,109:On,110:Zr,111:ei,112:Hn,113:Bn},{22:xn,66:Nn,67:bn,86:Xn,96:293,102:Bt,105:In,107:243,108:244,109:On,110:Zr,111:ei,112:Hn,113:Bn},f(qe,[2,64]),f(Je,[2,41]),f($e,[2,119],{106:ri}),f($e,[2,120],{106:ri})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(dr,yr){if(!yr.recoverable){var Xr=new Error(dr);throw Xr.hash=yr,Xr}this.trace(dr)},parse:function(dr){var yr=this,Xr=[0],nr=[],ln=[null],Zt=[],Un=this.table,te="",wn=0,oi=0,hi=0,Na=2,Bi=1,wr=Zt.slice.call(arguments,1),Yn=Object.create(this.lexer),Rr={yy:{}};for(var ya in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ya)&&(Rr.yy[ya]=this.yy[ya]);Yn.setInput(dr,Rr.yy),Rr.yy.lexer=Yn,Rr.yy.parser=this,Yn.yylloc===void 0&&(Yn.yylloc={});var Fn=Yn.yylloc;Zt.push(Fn);var Fi=Yn.options&&Yn.options.ranges;function jn(){var Pi;return typeof(Pi=nr.pop()||Yn.lex()||Bi)!="number"&&(Pi instanceof Array&&(Pi=(nr=Pi).pop()),Pi=yr.symbols_[Pi]||Pi),Pi}typeof Rr.yy.parseError=="function"?this.parseError=Rr.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var yn,wi,qn,ni,Ji,Ci,ii,ma,Wn,Kn={};;){if(qn=Xr[Xr.length-1],this.defaultActions[qn]?ni=this.defaultActions[qn]:(yn==null&&(yn=jn()),ni=Un[qn]&&Un[qn][yn]),ni===void 0||!ni.length||!ni[0]){var si="";for(Ci in Wn=[],Un[qn])this.terminals_[Ci]&&Ci>Na&&Wn.push("'"+this.terminals_[Ci]+"'");si=Yn.showPosition?"Parse error on line "+(wn+1)+`:
`+Yn.showPosition()+`
Expecting `+Wn.join(", ")+", got '"+(this.terminals_[yn]||yn)+"'":"Parse error on line "+(wn+1)+": Unexpected "+(yn==Bi?"end of input":"'"+(this.terminals_[yn]||yn)+"'"),this.parseError(si,{text:Yn.match,token:this.terminals_[yn]||yn,line:Yn.yylineno,loc:Fn,expected:Wn})}if(ni[0]instanceof Array&&ni.length>1)throw new Error("Parse Error: multiple actions possible at state: "+qn+", token: "+yn);switch(ni[0]){case 1:Xr.push(yn),ln.push(Yn.yytext),Zt.push(Yn.yylloc),Xr.push(ni[1]),yn=null,wi?(yn=wi,wi=null):(oi=Yn.yyleng,te=Yn.yytext,wn=Yn.yylineno,Fn=Yn.yylloc,hi>0);break;case 2:if(ii=this.productions_[ni[1]][1],Kn.$=ln[ln.length-ii],Kn._$={first_line:Zt[Zt.length-(ii||1)].first_line,last_line:Zt[Zt.length-1].last_line,first_column:Zt[Zt.length-(ii||1)].first_column,last_column:Zt[Zt.length-1].last_column},Fi&&(Kn._$.range=[Zt[Zt.length-(ii||1)].range[0],Zt[Zt.length-1].range[1]]),(Ji=this.performAction.apply(Kn,[te,oi,wn,Rr.yy,ni[1],ln,Zt].concat(wr)))!==void 0)return Ji;ii&&(Xr=Xr.slice(0,-1*ii*2),ln=ln.slice(0,-1*ii),Zt=Zt.slice(0,-1*ii)),Xr.push(this.productions_[ni[1]][0]),ln.push(Kn.$),Zt.push(Kn._$),ma=Un[Xr[Xr.length-2]][Xr[Xr.length-1]],Xr.push(ma);break;case 3:return!0}}return!0}},Ri={EOF:1,parseError:function(dr,yr){if(!this.yy.parser)throw new Error(dr);this.yy.parser.parseError(dr,yr)},setInput:function(dr,yr){return this.yy=yr||this.yy||{},this._input=dr,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 dr=this._input[0];return this.yytext+=dr,this.yyleng++,this.offset++,this.match+=dr,this.matched+=dr,dr.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),dr},unput:function(dr){var yr=dr.length,Xr=dr.split(/(?:\r\n?|\n)/g);this._input=dr+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-yr),this.offset-=yr;var nr=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),Xr.length-1&&(this.yylineno-=Xr.length-1);var ln=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:Xr?(Xr.length===nr.length?this.yylloc.first_column:0)+nr[nr.length-Xr.length].length-Xr[0].length:this.yylloc.first_column-yr},this.options.ranges&&(this.yylloc.range=[ln[0],ln[0]+this.yyleng-yr]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(dr){this.unput(this.match.slice(dr))},pastInput:function(){var dr=this.matched.substr(0,this.matched.length-this.match.length);return(dr.length>20?"...":"")+dr.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var dr=this.match;return dr.length<20&&(dr+=this._input.substr(0,20-dr.length)),(dr.substr(0,20)+(dr.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var dr=this.pastInput(),yr=new Array(dr.length+1).join("-");return dr+this.upcomingInput()+`
`+yr+"^"},test_match:function(dr,yr){var Xr,nr,ln;if(this.options.backtrack_lexer&&(ln={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&&(ln.yylloc.range=this.yylloc.range.slice(0))),(nr=dr[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=nr.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:nr?nr[nr.length-1].length-nr[nr.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+dr[0].length},this.yytext+=dr[0],this.match+=dr[0],this.matches=dr,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(dr[0].length),this.matched+=dr[0],Xr=this.performAction.call(this,this.yy,this,yr,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Xr)return Xr;if(this._backtrack){for(var Zt in ln)this[Zt]=ln[Zt];return!1}return!1},next:function(){if(this.done)return this.EOF;var dr,yr,Xr,nr;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ln=this._currentRules(),Zt=0;Zt<ln.length;Zt++)if((Xr=this._input.match(this.rules[ln[Zt]]))&&(!yr||Xr[0].length>yr[0].length)){if(yr=Xr,nr=Zt,this.options.backtrack_lexer){if((dr=this.test_match(Xr,ln[Zt]))!==!1)return dr;if(this._backtrack){yr=!1;continue}return!1}if(!this.options.flex)break}return yr?(dr=this.test_match(yr,ln[nr]))!==!1&&dr: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(){return this.next()||this.lex()},begin:function(dr){this.conditionStack.push(dr)},popState:function(){return this.conditionStack.length-1>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(dr){return(dr=this.conditionStack.length-1-Math.abs(dr||0))>=0?this.conditionStack[dr]:"INITIAL"},pushState:function(dr){this.begin(dr)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(dr,yr,Xr,nr){switch(Xr){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 25:return 100;case 26:this.begin("callbackname");break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 31:return 99;case 32:this.begin("click");break;case 34:return 90;case 35:case 36:return dr.lex.firstGraph()&&this.begin("dir"),24;case 37:return 38;case 38:return 42;case 39:case 40:case 41:case 42:return 101;case 43:return this.popState(),25;case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:return this.popState(),26;case 54:return 118;case 55:return 119;case 56:return 120;case 57:return 121;case 58:return 105;case 59:return 111;case 60:return 53;case 61:return 67;case 62:return 52;case 63:return 20;case 64:return 106;case 65:return 126;case 66:case 67:case 68:return 82;case 69:case 70:case 71:return 81;case 72:return 59;case 73:return 60;case 74:return 61;case 75:return 62;case 76:return 63;case 77:return 64;case 78:return 65;case 79:return 69;case 80:return 70;case 81:return 55;case 82:return 56;case 83:return 109;case 84:return 112;case 85:return 127;case 86:return 124;case 87:return 113;case 88:case 89:return 125;case 90:return 114;case 91:return 73;case 92:return 92;case 93:return"SEP";case 94:return 91;case 95:return 66;case 96:return 75;case 97:return 74;case 98:return 77;case 99:return 76;case 100:return 122;case 101:return 123;case 102:return 68;case 103:return 57;case 104:return 58;case 105:return 40;case 106:return 41;case 107:return 71;case 108:return 72;case 109:return 133;case 110:return 21;case 111:return 22;case 112:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[43,44,45,46,47,48,49,50,51,52,53],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],inclusive:!0}}};function Ai(){this.yy={}}return Si.lexer=Ri,Ai.prototype=Si,Si.Parser=Ai,new Ai}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(5354).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},9959:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(gt,et,ft,q){for(ft=ft||{},q=gt.length;q--;ft[gt[q]]=et);return ft},v=[1,3],_=[1,5],S=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],M=[1,15],E=[1,16],D=[1,17],B=[1,18],z=[1,19],H=[1,20],J=[1,21],rt=[1,22],dt=[1,23],K=[1,24],_t=[1,25],at=[1,26],ot=[1,28],bt=[1,30],zt=[1,33],Tt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],mt={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,clickStatement:26,taskTxt:27,taskData:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,click:34,callbackname:35,callbackargs:36,href:37,clickStatementDebug:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"taskTxt",28:"taskData",32:":",34:"click",35:"callbackname",36:"callbackargs",37:"href",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[26,2],[26,3],[26,3],[26,4],[26,3],[26,4],[26,2],[38,2],[38,3],[38,3],[38,4],[38,3],[38,4],[38,2],[29,1],[30,1],[33,1],[31,1]],performAction:function(gt,et,ft,q,wt,W,St){var Lt=W.length-1;switch(wt){case 2:return W[Lt-1];case 3:case 7:case 8:this.$=[];break;case 4:W[Lt-1].push(W[Lt]),this.$=W[Lt-1];break;case 5:case 6:this.$=W[Lt];break;case 9:q.setDateFormat(W[Lt].substr(11)),this.$=W[Lt].substr(11);break;case 10:q.enableInclusiveEndDates(),this.$=W[Lt].substr(18);break;case 11:q.TopAxis(),this.$=W[Lt].substr(8);break;case 12:q.setAxisFormat(W[Lt].substr(11)),this.$=W[Lt].substr(11);break;case 13:q.setExcludes(W[Lt].substr(9)),this.$=W[Lt].substr(9);break;case 14:q.setIncludes(W[Lt].substr(9)),this.$=W[Lt].substr(9);break;case 15:q.setTodayMarker(W[Lt].substr(12)),this.$=W[Lt].substr(12);break;case 16:q.setDiagramTitle(W[Lt].substr(6)),this.$=W[Lt].substr(6);break;case 17:this.$=W[Lt].trim(),q.setAccTitle(this.$);break;case 18:case 19:this.$=W[Lt].trim(),q.setAccDescription(this.$);break;case 20:q.addSection(W[Lt].substr(8)),this.$=W[Lt].substr(8);break;case 22:q.addTask(W[Lt-1],W[Lt]),this.$="task";break;case 26:this.$=W[Lt-1],q.setClickEvent(W[Lt-1],W[Lt],null);break;case 27:this.$=W[Lt-2],q.setClickEvent(W[Lt-2],W[Lt-1],W[Lt]);break;case 28:this.$=W[Lt-2],q.setClickEvent(W[Lt-2],W[Lt-1],null),q.setLink(W[Lt-2],W[Lt]);break;case 29:this.$=W[Lt-3],q.setClickEvent(W[Lt-3],W[Lt-2],W[Lt-1]),q.setLink(W[Lt-3],W[Lt]);break;case 30:this.$=W[Lt-2],q.setClickEvent(W[Lt-2],W[Lt],null),q.setLink(W[Lt-2],W[Lt-1]);break;case 31:this.$=W[Lt-3],q.setClickEvent(W[Lt-3],W[Lt-1],W[Lt]),q.setLink(W[Lt-3],W[Lt-2]);break;case 32:this.$=W[Lt-1],q.setLink(W[Lt-1],W[Lt]);break;case 33:case 39:this.$=W[Lt-1]+" "+W[Lt];break;case 34:case 35:case 37:this.$=W[Lt-2]+" "+W[Lt-1]+" "+W[Lt];break;case 36:case 38:this.$=W[Lt-3]+" "+W[Lt-2]+" "+W[Lt-1]+" "+W[Lt];break;case 40:q.parseDirective("%%{","open_directive");break;case 41:q.parseDirective(W[Lt],"type_directive");break;case 42:W[Lt]=W[Lt].trim().replace(/'/g,'"'),q.parseDirective(W[Lt],"arg_directive");break;case 43:q.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:v,29:4,39:_},{1:[3]},{3:6,4:2,5:v,29:4,39:_},f(S,[2,3],{6:7}),{30:8,40:[1,9]},{40:[2,40]},{1:[2,1]},{4:29,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:M,13:E,14:D,15:B,16:z,17:H,18:J,19:rt,20:dt,22:K,24:_t,25:at,26:27,27:ot,29:4,34:bt,39:_},{31:31,32:[1,32],42:zt},f([32,42],[2,41]),f(S,[2,8],{1:[2,2]}),f(S,[2,4]),{4:29,10:34,12:M,13:E,14:D,15:B,16:z,17:H,18:J,19:rt,20:dt,22:K,24:_t,25:at,26:27,27:ot,29:4,34:bt,39:_},f(S,[2,6]),f(S,[2,7]),f(S,[2,9]),f(S,[2,10]),f(S,[2,11]),f(S,[2,12]),f(S,[2,13]),f(S,[2,14]),f(S,[2,15]),f(S,[2,16]),{21:[1,35]},{23:[1,36]},f(S,[2,19]),f(S,[2,20]),f(S,[2,21]),{28:[1,37]},f(S,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},f(S,[2,5]),f(S,[2,17]),f(S,[2,18]),f(S,[2,22]),f(S,[2,26],{36:[1,43],37:[1,44]}),f(S,[2,32],{35:[1,45]}),f(Tt,[2,24]),{31:46,42:zt},{42:[2,42]},f(S,[2,27],{37:[1,47]}),f(S,[2,28]),f(S,[2,30],{36:[1,48]}),{11:[1,49]},f(S,[2,29]),f(S,[2,31]),f(Tt,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(gt,et){if(!et.recoverable){var ft=new Error(gt);throw ft.hash=et,ft}this.trace(gt)},parse:function(gt){var et=this,ft=[0],q=[],wt=[null],W=[],St=this.table,Lt="",Wt=0,ye=0,Ve=0,ke=2,fe=1,xe=W.slice.call(arguments,1),Me=Object.create(this.lexer),Oe={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(Oe.yy[ve]=this.yy[ve]);Me.setInput(gt,Oe.yy),Oe.yy.lexer=Me,Oe.yy.parser=this,Me.yylloc===void 0&&(Me.yylloc={});var Sr=Me.yylloc;W.push(Sr);var _e=Me.options&&Me.options.ranges;function Je(){var ar;return typeof(ar=q.pop()||Me.lex()||fe)!="number"&&(ar instanceof Array&&(ar=(q=ar).pop()),ar=et.symbols_[ar]||ar),ar}typeof Oe.yy.parseError=="function"?this.parseError=Oe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Dt,he,re,At,Ee,Q,ce,st,Te,ge={};;){if(re=ft[ft.length-1],this.defaultActions[re]?At=this.defaultActions[re]:(Dt==null&&(Dt=Je()),At=St[re]&&St[re][Dt]),At===void 0||!At.length||!At[0]){var Pe="";for(Q in Te=[],St[re])this.terminals_[Q]&&Q>ke&&Te.push("'"+this.terminals_[Q]+"'");Pe=Me.showPosition?"Parse error on line "+(Wt+1)+`:
`+Me.showPosition()+`
Expecting `+Te.join(", ")+", got '"+(this.terminals_[Dt]||Dt)+"'":"Parse error on line "+(Wt+1)+": Unexpected "+(Dt==fe?"end of input":"'"+(this.terminals_[Dt]||Dt)+"'"),this.parseError(Pe,{text:Me.match,token:this.terminals_[Dt]||Dt,line:Me.yylineno,loc:Sr,expected:Te})}if(At[0]instanceof Array&&At.length>1)throw new Error("Parse Error: multiple actions possible at state: "+re+", token: "+Dt);switch(At[0]){case 1:ft.push(Dt),wt.push(Me.yytext),W.push(Me.yylloc),ft.push(At[1]),Dt=null,he?(Dt=he,he=null):(ye=Me.yyleng,Lt=Me.yytext,Wt=Me.yylineno,Sr=Me.yylloc,Ve>0);break;case 2:if(ce=this.productions_[At[1]][1],ge.$=wt[wt.length-ce],ge._$={first_line:W[W.length-(ce||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(ce||1)].first_column,last_column:W[W.length-1].last_column},_e&&(ge._$.range=[W[W.length-(ce||1)].range[0],W[W.length-1].range[1]]),(Ee=this.performAction.apply(ge,[Lt,ye,Wt,Oe.yy,At[1],wt,W].concat(xe)))!==void 0)return Ee;ce&&(ft=ft.slice(0,-1*ce*2),wt=wt.slice(0,-1*ce),W=W.slice(0,-1*ce)),ft.push(this.productions_[At[1]][0]),wt.push(ge.$),W.push(ge._$),st=St[ft[ft.length-2]][ft[ft.length-1]],ft.push(st);break;case 3:return!0}}return!0}},Ct={EOF:1,parseError:function(gt,et){if(!this.yy.parser)throw new Error(gt);this.yy.parser.parseError(gt,et)},setInput:function(gt,et){return this.yy=et||this.yy||{},this._input=gt,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 gt=this._input[0];return this.yytext+=gt,this.yyleng++,this.offset++,this.match+=gt,this.matched+=gt,gt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),gt},unput:function(gt){var et=gt.length,ft=gt.split(/(?:\r\n?|\n)/g);this._input=gt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-et),this.offset-=et;var q=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),ft.length-1&&(this.yylineno-=ft.length-1);var wt=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:ft?(ft.length===q.length?this.yylloc.first_column:0)+q[q.length-ft.length].length-ft[0].length:this.yylloc.first_column-et},this.options.ranges&&(this.yylloc.range=[wt[0],wt[0]+this.yyleng-et]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(gt){this.unput(this.match.slice(gt))},pastInput:function(){var gt=this.matched.substr(0,this.matched.length-this.match.length);return(gt.length>20?"...":"")+gt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var gt=this.match;return gt.length<20&&(gt+=this._input.substr(0,20-gt.length)),(gt.substr(0,20)+(gt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var gt=this.pastInput(),et=new Array(gt.length+1).join("-");return gt+this.upcomingInput()+`
`+et+"^"},test_match:function(gt,et){var ft,q,wt;if(this.options.backtrack_lexer&&(wt={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&&(wt.yylloc.range=this.yylloc.range.slice(0))),(q=gt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=q.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:q?q[q.length-1].length-q[q.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+gt[0].length},this.yytext+=gt[0],this.match+=gt[0],this.matches=gt,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(gt[0].length),this.matched+=gt[0],ft=this.performAction.call(this,this.yy,this,et,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ft)return ft;if(this._backtrack){for(var W in wt)this[W]=wt[W];return!1}return!1},next:function(){if(this.done)return this.EOF;var gt,et,ft,q;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var wt=this._currentRules(),W=0;W<wt.length;W++)if((ft=this._input.match(this.rules[wt[W]]))&&(!et||ft[0].length>et[0].length)){if(et=ft,q=W,this.options.backtrack_lexer){if((gt=this.test_match(ft,wt[W]))!==!1)return gt;if(this._backtrack){et=!1;continue}return!1}if(!this.options.flex)break}return et?(gt=this.test_match(et,wt[q]))!==!1&&gt: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(){return this.next()||this.lex()},begin:function(gt){this.conditionStack.push(gt)},popState:function(){return this.conditionStack.length-1>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(gt){return(gt=this.conditionStack.length-1-Math.abs(gt||0))>=0?this.conditionStack[gt]:"INITIAL"},pushState:function(gt){this.begin(gt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(gt,et,ft,q){switch(ft){case 0:return this.begin("open_directive"),39;case 1:return this.begin("type_directive"),40;case 2:return this.popState(),this.begin("arg_directive"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 37;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 35;case 27:return 36;case 28:this.begin("click");break;case 30:return 34;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 17;case 37:return 16;case 38:return 18;case 39:return"date";case 40:return 19;case 41:return"accDescription";case 42:return 25;case 43:return 27;case 44:return 28;case 45:return 32;case 46:return 7;case 47:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/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,/^(?:%[^\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,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/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:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],inclusive:!0}}};function xt(){this.yy={}}return mt.lexer=Ct,xt.prototype=mt,mt.Parser=xt,new xt}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(6878).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},2553:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(Ct,xt,gt,et){for(gt=gt||{},et=Ct.length;et--;gt[Ct[et]]=xt);return gt},v=[1,4],_=[1,7],S=[1,5],M=[1,9],E=[1,6],D=[2,6],B=[1,16],z=[6,8,14,20,22,24,25,27,29,32,35,37,49,53],H=[8,14,20,22,24,25,27,29,32,35,37],J=[8,13,14,20,22,24,25,27,29,32,35,37],rt=[1,26],dt=[6,8,14,49,53],K=[8,14,53],_t=[1,64],at=[1,65],ot=[1,66],bt=[8,14,33,36,41,53],zt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ID:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,MERGE:35,COMMIT_TAG:36,COMMIT:37,commit_arg:38,COMMIT_TYPE:39,commitType:40,COMMIT_MSG:41,NORMAL:42,REVERSE:43,HIGHLIGHT:44,openDirective:45,typeDirective:46,closeDirective:47,argDirective:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,";":53,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",28:"ID",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"MERGE",36:"COMMIT_TAG",37:"COMMIT",39:"COMMIT_TYPE",41:"COMMIT_MSG",42:"NORMAL",43:"REVERSE",44:"HIGHLIGHT",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive",53:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[18,2],[18,4],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[38,0],[38,1],[40,1],[40,1],[40,1],[5,3],[5,5],[45,1],[46,1],[48,1],[47,1],[4,1],[4,1],[4,1]],performAction:function(Ct,xt,gt,et,ft,q,wt){var W=q.length-1;switch(ft){case 3:return q[W];case 4:return q[W-1];case 5:return et.setDirection(q[W-3]),q[W-1];case 7:et.setOptions(q[W-1]),this.$=q[W];break;case 8:q[W-1]+=q[W],this.$=q[W-1];break;case 10:this.$=[];break;case 11:q[W-1].push(q[W]),this.$=q[W-1];break;case 12:this.$=q[W-1];break;case 17:this.$=q[W].trim(),et.setAccTitle(this.$);break;case 18:case 19:this.$=q[W].trim(),et.setAccDescription(this.$);break;case 20:et.addSection(q[W].substr(8)),this.$=q[W].substr(8);break;case 22:et.checkout(q[W]);break;case 23:et.branch(q[W]);break;case 24:et.branch(q[W-2],q[W]);break;case 25:et.cherryPick(q[W]);break;case 26:et.merge(q[W]);break;case 27:et.merge(q[W-2],q[W]);break;case 28:et.commit(q[W]);break;case 29:et.commit("","",et.commitType.NORMAL,q[W]);break;case 30:et.commit("","",q[W],"");break;case 31:et.commit("","",q[W],q[W-2]);break;case 32:et.commit("","",q[W-2],q[W]);break;case 33:et.commit("",q[W],et.commitType.NORMAL,"");break;case 34:et.commit("",q[W-2],et.commitType.NORMAL,q[W]);break;case 35:et.commit("",q[W],et.commitType.NORMAL,q[W-2]);break;case 36:et.commit("",q[W-2],q[W],"");break;case 37:et.commit("",q[W],q[W-2],"");break;case 38:et.commit("",q[W-4],q[W-2],q[W]);break;case 39:et.commit("",q[W-4],q[W],q[W-2]);break;case 40:et.commit("",q[W-2],q[W-4],q[W]);break;case 41:et.commit("",q[W],q[W-4],q[W-2]);break;case 42:et.commit("",q[W],q[W-2],q[W-4]);break;case 43:et.commit("",q[W-2],q[W],q[W-4]);break;case 44:et.commit(q[W],"",et.commitType.NORMAL,"");break;case 45:et.commit(q[W],"",et.commitType.NORMAL,q[W-2]);break;case 46:et.commit(q[W-2],"",et.commitType.NORMAL,q[W]);break;case 47:et.commit(q[W-2],"",q[W],"");break;case 48:et.commit(q[W],"",q[W-2],"");break;case 49:et.commit(q[W],q[W-2],et.commitType.NORMAL,"");break;case 50:et.commit(q[W-2],q[W],et.commitType.NORMAL,"");break;case 51:et.commit(q[W-4],"",q[W-2],q[W]);break;case 52:et.commit(q[W-4],"",q[W],q[W-2]);break;case 53:et.commit(q[W-2],"",q[W-4],q[W]);break;case 54:et.commit(q[W],"",q[W-4],q[W-2]);break;case 55:et.commit(q[W],"",q[W-2],q[W-4]);break;case 56:et.commit(q[W-2],"",q[W],q[W-4]);break;case 57:et.commit(q[W-4],q[W],q[W-2],"");break;case 58:et.commit(q[W-4],q[W-2],q[W],"");break;case 59:et.commit(q[W-2],q[W],q[W-4],"");break;case 60:et.commit(q[W],q[W-2],q[W-4],"");break;case 61:et.commit(q[W],q[W-4],q[W-2],"");break;case 62:et.commit(q[W-2],q[W-4],q[W],"");break;case 63:et.commit(q[W-4],q[W],et.commitType.NORMAL,q[W-2]);break;case 64:et.commit(q[W-4],q[W-2],et.commitType.NORMAL,q[W]);break;case 65:et.commit(q[W-2],q[W],et.commitType.NORMAL,q[W-4]);break;case 66:et.commit(q[W],q[W-2],et.commitType.NORMAL,q[W-4]);break;case 67:et.commit(q[W],q[W-4],et.commitType.NORMAL,q[W-2]);break;case 68:et.commit(q[W-2],q[W-4],et.commitType.NORMAL,q[W]);break;case 69:et.commit(q[W-6],q[W-4],q[W-2],q[W]);break;case 70:et.commit(q[W-6],q[W-4],q[W],q[W-2]);break;case 71:et.commit(q[W-6],q[W-2],q[W-4],q[W]);break;case 72:et.commit(q[W-6],q[W],q[W-4],q[W-2]);break;case 73:et.commit(q[W-6],q[W-2],q[W],q[W-4]);break;case 74:et.commit(q[W-6],q[W],q[W-2],q[W-4]);break;case 75:et.commit(q[W-4],q[W-6],q[W-2],q[W]);break;case 76:et.commit(q[W-4],q[W-6],q[W],q[W-2]);break;case 77:et.commit(q[W-2],q[W-6],q[W-4],q[W]);break;case 78:et.commit(q[W],q[W-6],q[W-4],q[W-2]);break;case 79:et.commit(q[W-2],q[W-6],q[W],q[W-4]);break;case 80:et.commit(q[W],q[W-6],q[W-2],q[W-4]);break;case 81:et.commit(q[W],q[W-4],q[W-2],q[W-6]);break;case 82:et.commit(q[W-2],q[W-4],q[W],q[W-6]);break;case 83:et.commit(q[W],q[W-2],q[W-4],q[W-6]);break;case 84:et.commit(q[W-2],q[W],q[W-4],q[W-6]);break;case 85:et.commit(q[W-4],q[W-2],q[W],q[W-6]);break;case 86:et.commit(q[W-4],q[W],q[W-2],q[W-6]);break;case 87:et.commit(q[W-2],q[W-4],q[W-6],q[W]);break;case 88:et.commit(q[W],q[W-4],q[W-6],q[W-2]);break;case 89:et.commit(q[W-2],q[W],q[W-6],q[W-4]);break;case 90:et.commit(q[W],q[W-2],q[W-6],q[W-4]);break;case 91:et.commit(q[W-4],q[W-2],q[W-6],q[W]);break;case 92:et.commit(q[W-4],q[W],q[W-6],q[W-2]);break;case 93:this.$="";break;case 94:this.$=q[W];break;case 95:this.$=et.commitType.NORMAL;break;case 96:this.$=et.commitType.REVERSE;break;case 97:this.$=et.commitType.HIGHLIGHT;break;case 100:et.parseDirective("%%{","open_directive");break;case 101:et.parseDirective(q[W],"type_directive");break;case 102:q[W]=q[W].trim().replace(/'/g,'"'),et.parseDirective(q[W],"arg_directive");break;case 103:et.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:v,8:_,14:S,45:8,49:M,53:E},{1:[3]},{3:10,4:2,5:3,6:v,8:_,14:S,45:8,49:M,53:E},{3:11,4:2,5:3,6:v,8:_,14:S,45:8,49:M,53:E},{7:12,8:D,9:[1,13],10:[1,14],11:15,14:B},f(z,[2,104]),f(z,[2,105]),f(z,[2,106]),{46:17,50:[1,18]},{50:[2,100]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:D,11:15,14:B},{9:[1,21]},f(H,[2,10],{12:22,13:[1,23]}),f(J,[2,9]),{9:[1,25],47:24,52:rt},f([9,52],[2,101]),{1:[2,3]},{8:[1,27]},{7:28,8:D,11:15,14:B},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],35:[1,42],37:[1,41]},f(J,[2,8]),f(dt,[2,98]),{48:45,51:[1,46]},f(dt,[2,103]),{1:[2,4]},{8:[1,47]},f(H,[2,11]),{4:48,8:_,14:S,53:E},f(H,[2,13]),f(K,[2,14]),f(K,[2,15]),f(K,[2,16]),{21:[1,49]},{23:[1,50]},f(K,[2,19]),f(K,[2,20]),f(K,[2,21]),{28:[1,51]},f(K,[2,93],{38:52,33:[1,55],34:[1,57],36:[1,53],39:[1,54],41:[1,56]}),{28:[1,58]},{33:[1,59]},{28:[1,60]},{47:61,52:rt},{52:[2,102]},{1:[2,5]},f(H,[2,12]),f(K,[2,17]),f(K,[2,18]),f(K,[2,22]),f(K,[2,28]),{34:[1,62]},{40:63,42:_t,43:at,44:ot},{34:[1,67]},{34:[1,68]},f(K,[2,94]),f(K,[2,26],{36:[1,69]}),{34:[1,70]},f(K,[2,23],{30:[1,71]}),f(dt,[2,99]),f(K,[2,29],{33:[1,73],39:[1,72],41:[1,74]}),f(K,[2,30],{33:[1,76],36:[1,75],41:[1,77]}),f(bt,[2,95]),f(bt,[2,96]),f(bt,[2,97]),f(K,[2,33],{36:[1,78],39:[1,79],41:[1,80]}),f(K,[2,44],{33:[1,83],36:[1,81],39:[1,82]}),{34:[1,84]},f(K,[2,25]),{31:[1,85]},{40:86,42:_t,43:at,44:ot},{34:[1,87]},{34:[1,88]},{34:[1,89]},{34:[1,90]},{34:[1,91]},{34:[1,92]},{40:93,42:_t,43:at,44:ot},{34:[1,94]},{34:[1,95]},{40:96,42:_t,43:at,44:ot},{34:[1,97]},f(K,[2,27]),f(K,[2,24]),f(K,[2,31],{33:[1,98],41:[1,99]}),f(K,[2,35],{39:[1,100],41:[1,101]}),f(K,[2,45],{33:[1,103],39:[1,102]}),f(K,[2,32],{33:[1,104],41:[1,105]}),f(K,[2,37],{36:[1,106],41:[1,107]}),f(K,[2,48],{33:[1,109],36:[1,108]}),f(K,[2,34],{39:[1,110],41:[1,111]}),f(K,[2,36],{36:[1,112],41:[1,113]}),f(K,[2,49],{36:[1,115],39:[1,114]}),f(K,[2,46],{33:[1,117],39:[1,116]}),f(K,[2,47],{33:[1,119],36:[1,118]}),f(K,[2,50],{36:[1,121],39:[1,120]}),{34:[1,122]},{34:[1,123]},{40:124,42:_t,43:at,44:ot},{34:[1,125]},{40:126,42:_t,43:at,44:ot},{34:[1,127]},{34:[1,128]},{34:[1,129]},{34:[1,130]},{34:[1,131]},{34:[1,132]},{34:[1,133]},{40:134,42:_t,43:at,44:ot},{34:[1,135]},{34:[1,136]},{34:[1,137]},{40:138,42:_t,43:at,44:ot},{34:[1,139]},{40:140,42:_t,43:at,44:ot},{34:[1,141]},{34:[1,142]},{34:[1,143]},{40:144,42:_t,43:at,44:ot},{34:[1,145]},f(K,[2,42],{41:[1,146]}),f(K,[2,55],{33:[1,147]}),f(K,[2,43],{41:[1,148]}),f(K,[2,66],{39:[1,149]}),f(K,[2,56],{33:[1,150]}),f(K,[2,65],{39:[1,151]}),f(K,[2,41],{41:[1,152]}),f(K,[2,54],{33:[1,153]}),f(K,[2,40],{41:[1,154]}),f(K,[2,60],{36:[1,155]}),f(K,[2,53],{33:[1,156]}),f(K,[2,59],{36:[1,157]}),f(K,[2,39],{41:[1,158]}),f(K,[2,67],{39:[1,159]}),f(K,[2,38],{41:[1,160]}),f(K,[2,61],{36:[1,161]}),f(K,[2,62],{36:[1,162]}),f(K,[2,68],{39:[1,163]}),f(K,[2,52],{33:[1,164]}),f(K,[2,63],{39:[1,165]}),f(K,[2,51],{33:[1,166]}),f(K,[2,57],{36:[1,167]}),f(K,[2,58],{36:[1,168]}),f(K,[2,64],{39:[1,169]}),{34:[1,170]},{34:[1,171]},{34:[1,172]},{40:173,42:_t,43:at,44:ot},{34:[1,174]},{40:175,42:_t,43:at,44:ot},{34:[1,176]},{34:[1,177]},{34:[1,178]},{34:[1,179]},{34:[1,180]},{34:[1,181]},{34:[1,182]},{40:183,42:_t,43:at,44:ot},{34:[1,184]},{34:[1,185]},{34:[1,186]},{40:187,42:_t,43:at,44:ot},{34:[1,188]},{40:189,42:_t,43:at,44:ot},{34:[1,190]},{34:[1,191]},{34:[1,192]},{40:193,42:_t,43:at,44:ot},f(K,[2,83]),f(K,[2,84]),f(K,[2,81]),f(K,[2,82]),f(K,[2,86]),f(K,[2,85]),f(K,[2,90]),f(K,[2,89]),f(K,[2,88]),f(K,[2,87]),f(K,[2,92]),f(K,[2,91]),f(K,[2,80]),f(K,[2,79]),f(K,[2,78]),f(K,[2,77]),f(K,[2,75]),f(K,[2,76]),f(K,[2,74]),f(K,[2,73]),f(K,[2,72]),f(K,[2,71]),f(K,[2,69]),f(K,[2,70])],defaultActions:{9:[2,100],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,102],47:[2,5]},parseError:function(Ct,xt){if(!xt.recoverable){var gt=new Error(Ct);throw gt.hash=xt,gt}this.trace(Ct)},parse:function(Ct){var xt=this,gt=[0],et=[],ft=[null],q=[],wt=this.table,W="",St=0,Lt=0,Wt=0,ye=2,Ve=1,ke=q.slice.call(arguments,1),fe=Object.create(this.lexer),xe={yy:{}};for(var Me in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Me)&&(xe.yy[Me]=this.yy[Me]);fe.setInput(Ct,xe.yy),xe.yy.lexer=fe,xe.yy.parser=this,fe.yylloc===void 0&&(fe.yylloc={});var Oe=fe.yylloc;q.push(Oe);var ve=fe.options&&fe.options.ranges;function Sr(){var ge;return typeof(ge=et.pop()||fe.lex()||Ve)!="number"&&(ge instanceof Array&&(ge=(et=ge).pop()),ge=xt.symbols_[ge]||ge),ge}typeof xe.yy.parseError=="function"?this.parseError=xe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _e,Je,Dt,he,re,At,Ee,Q,ce,st={};;){if(Dt=gt[gt.length-1],this.defaultActions[Dt]?he=this.defaultActions[Dt]:(_e==null&&(_e=Sr()),he=wt[Dt]&&wt[Dt][_e]),he===void 0||!he.length||!he[0]){var Te="";for(At in ce=[],wt[Dt])this.terminals_[At]&&At>ye&&ce.push("'"+this.terminals_[At]+"'");Te=fe.showPosition?"Parse error on line "+(St+1)+`:
`+fe.showPosition()+`
Expecting `+ce.join(", ")+", got '"+(this.terminals_[_e]||_e)+"'":"Parse error on line "+(St+1)+": Unexpected "+(_e==Ve?"end of input":"'"+(this.terminals_[_e]||_e)+"'"),this.parseError(Te,{text:fe.match,token:this.terminals_[_e]||_e,line:fe.yylineno,loc:Oe,expected:ce})}if(he[0]instanceof Array&&he.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Dt+", token: "+_e);switch(he[0]){case 1:gt.push(_e),ft.push(fe.yytext),q.push(fe.yylloc),gt.push(he[1]),_e=null,Je?(_e=Je,Je=null):(Lt=fe.yyleng,W=fe.yytext,St=fe.yylineno,Oe=fe.yylloc,Wt>0);break;case 2:if(Ee=this.productions_[he[1]][1],st.$=ft[ft.length-Ee],st._$={first_line:q[q.length-(Ee||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(Ee||1)].first_column,last_column:q[q.length-1].last_column},ve&&(st._$.range=[q[q.length-(Ee||1)].range[0],q[q.length-1].range[1]]),(re=this.performAction.apply(st,[W,Lt,St,xe.yy,he[1],ft,q].concat(ke)))!==void 0)return re;Ee&&(gt=gt.slice(0,-1*Ee*2),ft=ft.slice(0,-1*Ee),q=q.slice(0,-1*Ee)),gt.push(this.productions_[he[1]][0]),ft.push(st.$),q.push(st._$),Q=wt[gt[gt.length-2]][gt[gt.length-1]],gt.push(Q);break;case 3:return!0}}return!0}},Tt={EOF:1,parseError:function(Ct,xt){if(!this.yy.parser)throw new Error(Ct);this.yy.parser.parseError(Ct,xt)},setInput:function(Ct,xt){return this.yy=xt||this.yy||{},this._input=Ct,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 Ct=this._input[0];return this.yytext+=Ct,this.yyleng++,this.offset++,this.match+=Ct,this.matched+=Ct,Ct.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ct},unput:function(Ct){var xt=Ct.length,gt=Ct.split(/(?:\r\n?|\n)/g);this._input=Ct+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-xt),this.offset-=xt;var et=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),gt.length-1&&(this.yylineno-=gt.length-1);var ft=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:gt?(gt.length===et.length?this.yylloc.first_column:0)+et[et.length-gt.length].length-gt[0].length:this.yylloc.first_column-xt},this.options.ranges&&(this.yylloc.range=[ft[0],ft[0]+this.yyleng-xt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(Ct){this.unput(this.match.slice(Ct))},pastInput:function(){var Ct=this.matched.substr(0,this.matched.length-this.match.length);return(Ct.length>20?"...":"")+Ct.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ct=this.match;return Ct.length<20&&(Ct+=this._input.substr(0,20-Ct.length)),(Ct.substr(0,20)+(Ct.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ct=this.pastInput(),xt=new Array(Ct.length+1).join("-");return Ct+this.upcomingInput()+`
`+xt+"^"},test_match:function(Ct,xt){var gt,et,ft;if(this.options.backtrack_lexer&&(ft={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&&(ft.yylloc.range=this.yylloc.range.slice(0))),(et=Ct[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=et.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:et?et[et.length-1].length-et[et.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ct[0].length},this.yytext+=Ct[0],this.match+=Ct[0],this.matches=Ct,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(Ct[0].length),this.matched+=Ct[0],gt=this.performAction.call(this,this.yy,this,xt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),gt)return gt;if(this._backtrack){for(var q in ft)this[q]=ft[q];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ct,xt,gt,et;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ft=this._currentRules(),q=0;q<ft.length;q++)if((gt=this._input.match(this.rules[ft[q]]))&&(!xt||gt[0].length>xt[0].length)){if(xt=gt,et=q,this.options.backtrack_lexer){if((Ct=this.test_match(gt,ft[q]))!==!1)return Ct;if(this._backtrack){xt=!1;continue}return!1}if(!this.options.flex)break}return xt?(Ct=this.test_match(xt,ft[et]))!==!1&&Ct: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(){return this.next()||this.lex()},begin:function(Ct){this.conditionStack.push(Ct)},popState:function(){return this.conditionStack.length-1>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(Ct){return(Ct=this.conditionStack.length-1-Math.abs(Ct||0))>=0?this.conditionStack[Ct]:"INITIAL"},pushState:function(Ct){this.begin(Ct)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ct,xt,gt,et){switch(gt){case 0:return this.begin("open_directive"),49;case 1:return this.begin("type_directive"),50;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),52;case 4:return 51;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 35:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:case 15:break;case 16:return 6;case 17:return 37;case 18:return 33;case 19:return 39;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 36;case 25:return 29;case 26:return 30;case 27:return 35;case 28:return 32;case 29:return 27;case 30:case 31:return 10;case 32:return 9;case 33:return"CARET";case 34:this.begin("options");break;case 36:return 13;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 28;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch\b)/i,/^(?:order:)/i,/^(?:merge\b)/i,/^(?:cherry-pick\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z][-_\./a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[35,36],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,37,40,41,42],inclusive:!0}}};function mt(){this.yy={}}return zt.lexer=Tt,mt.prototype=zt,zt.Parser=mt,new mt}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(8183).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},6765:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(E,D,B,z){for(B=B||{},z=E.length;z--;B[E[z]]=D);return B},v=[6,9,10],_={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(E,D,B,z,H,J,rt){switch(J.length,H){case 1:return z;case 4:break;case 6:z.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},f(v,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},f(v,[2,3]),f(v,[2,4]),f(v,[2,5]),f(v,[2,6])],defaultActions:{4:[2,1]},parseError:function(E,D){if(!D.recoverable){var B=new Error(E);throw B.hash=D,B}this.trace(E)},parse:function(E){var D=this,B=[0],z=[],H=[null],J=[],rt=this.table,dt="",K=0,_t=0,at=0,ot=2,bt=1,zt=J.slice.call(arguments,1),Tt=Object.create(this.lexer),mt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(mt.yy[Ct]=this.yy[Ct]);Tt.setInput(E,mt.yy),mt.yy.lexer=Tt,mt.yy.parser=this,Tt.yylloc===void 0&&(Tt.yylloc={});var xt=Tt.yylloc;J.push(xt);var gt=Tt.options&&Tt.options.ranges;function et(){var xe;return typeof(xe=z.pop()||Tt.lex()||bt)!="number"&&(xe instanceof Array&&(xe=(z=xe).pop()),xe=D.symbols_[xe]||xe),xe}typeof mt.yy.parseError=="function"?this.parseError=mt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ft,q,wt,W,St,Lt,Wt,ye,Ve,ke={};;){if(wt=B[B.length-1],this.defaultActions[wt]?W=this.defaultActions[wt]:(ft==null&&(ft=et()),W=rt[wt]&&rt[wt][ft]),W===void 0||!W.length||!W[0]){var fe="";for(Lt in Ve=[],rt[wt])this.terminals_[Lt]&&Lt>ot&&Ve.push("'"+this.terminals_[Lt]+"'");fe=Tt.showPosition?"Parse error on line "+(K+1)+`:
`+Tt.showPosition()+`
Expecting `+Ve.join(", ")+", got '"+(this.terminals_[ft]||ft)+"'":"Parse error on line "+(K+1)+": Unexpected "+(ft==bt?"end of input":"'"+(this.terminals_[ft]||ft)+"'"),this.parseError(fe,{text:Tt.match,token:this.terminals_[ft]||ft,line:Tt.yylineno,loc:xt,expected:Ve})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+wt+", token: "+ft);switch(W[0]){case 1:B.push(ft),H.push(Tt.yytext),J.push(Tt.yylloc),B.push(W[1]),ft=null,q?(ft=q,q=null):(_t=Tt.yyleng,dt=Tt.yytext,K=Tt.yylineno,xt=Tt.yylloc,at>0);break;case 2:if(Wt=this.productions_[W[1]][1],ke.$=H[H.length-Wt],ke._$={first_line:J[J.length-(Wt||1)].first_line,last_line:J[J.length-1].last_line,first_column:J[J.length-(Wt||1)].first_column,last_column:J[J.length-1].last_column},gt&&(ke._$.range=[J[J.length-(Wt||1)].range[0],J[J.length-1].range[1]]),(St=this.performAction.apply(ke,[dt,_t,K,mt.yy,W[1],H,J].concat(zt)))!==void 0)return St;Wt&&(B=B.slice(0,-1*Wt*2),H=H.slice(0,-1*Wt),J=J.slice(0,-1*Wt)),B.push(this.productions_[W[1]][0]),H.push(ke.$),J.push(ke._$),ye=rt[B[B.length-2]][B[B.length-1]],B.push(ye);break;case 3:return!0}}return!0}},S={EOF:1,parseError:function(E,D){if(!this.yy.parser)throw new Error(E);this.yy.parser.parseError(E,D)},setInput:function(E,D){return this.yy=D||this.yy||{},this._input=E,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 E=this._input[0];return this.yytext+=E,this.yyleng++,this.offset++,this.match+=E,this.matched+=E,E.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),E},unput:function(E){var D=E.length,B=E.split(/(?:\r\n?|\n)/g);this._input=E+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-D),this.offset-=D;var z=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),B.length-1&&(this.yylineno-=B.length-1);var H=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:B?(B.length===z.length?this.yylloc.first_column:0)+z[z.length-B.length].length-B[0].length:this.yylloc.first_column-D},this.options.ranges&&(this.yylloc.range=[H[0],H[0]+this.yyleng-D]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(E){this.unput(this.match.slice(E))},pastInput:function(){var E=this.matched.substr(0,this.matched.length-this.match.length);return(E.length>20?"...":"")+E.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var E=this.match;return E.length<20&&(E+=this._input.substr(0,20-E.length)),(E.substr(0,20)+(E.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var E=this.pastInput(),D=new Array(E.length+1).join("-");return E+this.upcomingInput()+`
`+D+"^"},test_match:function(E,D){var B,z,H;if(this.options.backtrack_lexer&&(H={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&&(H.yylloc.range=this.yylloc.range.slice(0))),(z=E[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=z.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:z?z[z.length-1].length-z[z.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+E[0].length},this.yytext+=E[0],this.match+=E[0],this.matches=E,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(E[0].length),this.matched+=E[0],B=this.performAction.call(this,this.yy,this,D,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),B)return B;if(this._backtrack){for(var J in H)this[J]=H[J];return!1}return!1},next:function(){if(this.done)return this.EOF;var E,D,B,z;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var H=this._currentRules(),J=0;J<H.length;J++)if((B=this._input.match(this.rules[H[J]]))&&(!D||B[0].length>D[0].length)){if(D=B,z=J,this.options.backtrack_lexer){if((E=this.test_match(B,H[J]))!==!1)return E;if(this._backtrack){D=!1;continue}return!1}if(!this.options.flex)break}return D?(E=this.test_match(D,H[z]))!==!1&&E: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(){return this.next()||this.lex()},begin:function(E){this.conditionStack.push(E)},popState:function(){return this.conditionStack.length-1>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(E){return(E=this.conditionStack.length-1-Math.abs(E||0))>=0?this.conditionStack[E]:"INITIAL"},pushState:function(E){this.begin(E)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(E,D,B,z){switch(B){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}}};function M(){this.yy={}}return _.lexer=S,M.prototype=_,_.Parser=M,new M}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(1428).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},7062:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(xt,gt,et,ft){for(et=et||{},ft=xt.length;ft--;et[xt[ft]]=gt);return et},v=[1,4],_=[1,5],S=[1,6],M=[1,7],E=[1,9],D=[1,11,13,15,17,19,20,26,27,28,29],B=[2,5],z=[1,6,11,13,15,17,19,20,26,27,28,29],H=[26,27,28],J=[2,8],rt=[1,18],dt=[1,19],K=[1,20],_t=[1,21],at=[1,22],ot=[1,23],bt=[1,28],zt=[6,26,27,28,29],Tt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement: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,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",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",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(xt,gt,et,ft,q,wt,W){var St=wt.length-1;switch(q){case 4:ft.setShowData(!0);break;case 7:this.$=wt[St-1];break;case 9:ft.addSection(wt[St-1],ft.cleanupValue(wt[St]));break;case 10:this.$=wt[St].trim(),ft.setDiagramTitle(this.$);break;case 11:this.$=wt[St].trim(),ft.setAccTitle(this.$);break;case 12:case 13:this.$=wt[St].trim(),ft.setAccDescription(this.$);break;case 14:ft.addSection(wt[St].substr(8)),this.$=wt[St].substr(8);break;case 21:ft.parseDirective("%%{","open_directive");break;case 22:ft.parseDirective(wt[St],"type_directive");break;case 23:wt[St]=wt[St].trim().replace(/'/g,'"'),ft.parseDirective(wt[St],"arg_directive");break;case 24:ft.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:v,21:8,26:_,27:S,28:M,29:E},{1:[3]},{3:10,4:2,5:3,6:v,21:8,26:_,27:S,28:M,29:E},{3:11,4:2,5:3,6:v,21:8,26:_,27:S,28:M,29:E},f(D,B,{7:12,8:[1,13]}),f(z,[2,18]),f(z,[2,19]),f(z,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},f(H,J,{21:8,9:16,10:17,5:24,1:[2,3],11:rt,13:dt,15:K,17:_t,19:at,20:ot,29:E}),f(D,B,{7:25}),{23:26,24:[1,27],32:bt},f([24,32],[2,22]),f(D,[2,6]),{4:29,26:_,27:S,28:M},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},f(H,[2,13]),f(H,[2,14]),f(H,[2,15]),f(H,J,{21:8,9:16,10:17,5:24,1:[2,4],11:rt,13:dt,15:K,17:_t,19:at,20:ot,29:E}),f(zt,[2,16]),{25:34,31:[1,35]},f(zt,[2,24]),f(D,[2,7]),f(H,[2,9]),f(H,[2,10]),f(H,[2,11]),f(H,[2,12]),{23:36,32:bt},{32:[2,23]},f(zt,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(xt,gt){if(!gt.recoverable){var et=new Error(xt);throw et.hash=gt,et}this.trace(xt)},parse:function(xt){var gt=this,et=[0],ft=[],q=[null],wt=[],W=this.table,St="",Lt=0,Wt=0,ye=0,Ve=2,ke=1,fe=wt.slice.call(arguments,1),xe=Object.create(this.lexer),Me={yy:{}};for(var Oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Oe)&&(Me.yy[Oe]=this.yy[Oe]);xe.setInput(xt,Me.yy),Me.yy.lexer=xe,Me.yy.parser=this,xe.yylloc===void 0&&(xe.yylloc={});var ve=xe.yylloc;wt.push(ve);var Sr=xe.options&&xe.options.ranges;function _e(){var Pe;return typeof(Pe=ft.pop()||xe.lex()||ke)!="number"&&(Pe instanceof Array&&(Pe=(ft=Pe).pop()),Pe=gt.symbols_[Pe]||Pe),Pe}typeof Me.yy.parseError=="function"?this.parseError=Me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Je,Dt,he,re,At,Ee,Q,ce,st,Te={};;){if(he=et[et.length-1],this.defaultActions[he]?re=this.defaultActions[he]:(Je==null&&(Je=_e()),re=W[he]&&W[he][Je]),re===void 0||!re.length||!re[0]){var ge="";for(Ee in st=[],W[he])this.terminals_[Ee]&&Ee>Ve&&st.push("'"+this.terminals_[Ee]+"'");ge=xe.showPosition?"Parse error on line "+(Lt+1)+`:
`+xe.showPosition()+`
Expecting `+st.join(", ")+", got '"+(this.terminals_[Je]||Je)+"'":"Parse error on line "+(Lt+1)+": Unexpected "+(Je==ke?"end of input":"'"+(this.terminals_[Je]||Je)+"'"),this.parseError(ge,{text:xe.match,token:this.terminals_[Je]||Je,line:xe.yylineno,loc:ve,expected:st})}if(re[0]instanceof Array&&re.length>1)throw new Error("Parse Error: multiple actions possible at state: "+he+", token: "+Je);switch(re[0]){case 1:et.push(Je),q.push(xe.yytext),wt.push(xe.yylloc),et.push(re[1]),Je=null,Dt?(Je=Dt,Dt=null):(Wt=xe.yyleng,St=xe.yytext,Lt=xe.yylineno,ve=xe.yylloc,ye>0);break;case 2:if(Q=this.productions_[re[1]][1],Te.$=q[q.length-Q],Te._$={first_line:wt[wt.length-(Q||1)].first_line,last_line:wt[wt.length-1].last_line,first_column:wt[wt.length-(Q||1)].first_column,last_column:wt[wt.length-1].last_column},Sr&&(Te._$.range=[wt[wt.length-(Q||1)].range[0],wt[wt.length-1].range[1]]),(At=this.performAction.apply(Te,[St,Wt,Lt,Me.yy,re[1],q,wt].concat(fe)))!==void 0)return At;Q&&(et=et.slice(0,-1*Q*2),q=q.slice(0,-1*Q),wt=wt.slice(0,-1*Q)),et.push(this.productions_[re[1]][0]),q.push(Te.$),wt.push(Te._$),ce=W[et[et.length-2]][et[et.length-1]],et.push(ce);break;case 3:return!0}}return!0}},mt={EOF:1,parseError:function(xt,gt){if(!this.yy.parser)throw new Error(xt);this.yy.parser.parseError(xt,gt)},setInput:function(xt,gt){return this.yy=gt||this.yy||{},this._input=xt,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 xt=this._input[0];return this.yytext+=xt,this.yyleng++,this.offset++,this.match+=xt,this.matched+=xt,xt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),xt},unput:function(xt){var gt=xt.length,et=xt.split(/(?:\r\n?|\n)/g);this._input=xt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-gt),this.offset-=gt;var ft=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),et.length-1&&(this.yylineno-=et.length-1);var q=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:et?(et.length===ft.length?this.yylloc.first_column:0)+ft[ft.length-et.length].length-et[0].length:this.yylloc.first_column-gt},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-gt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(xt){this.unput(this.match.slice(xt))},pastInput:function(){var xt=this.matched.substr(0,this.matched.length-this.match.length);return(xt.length>20?"...":"")+xt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var xt=this.match;return xt.length<20&&(xt+=this._input.substr(0,20-xt.length)),(xt.substr(0,20)+(xt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var xt=this.pastInput(),gt=new Array(xt.length+1).join("-");return xt+this.upcomingInput()+`
`+gt+"^"},test_match:function(xt,gt){var et,ft,q;if(this.options.backtrack_lexer&&(q={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&&(q.yylloc.range=this.yylloc.range.slice(0))),(ft=xt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ft.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ft?ft[ft.length-1].length-ft[ft.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+xt[0].length},this.yytext+=xt[0],this.match+=xt[0],this.matches=xt,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(xt[0].length),this.matched+=xt[0],et=this.performAction.call(this,this.yy,this,gt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),et)return et;if(this._backtrack){for(var wt in q)this[wt]=q[wt];return!1}return!1},next:function(){if(this.done)return this.EOF;var xt,gt,et,ft;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),wt=0;wt<q.length;wt++)if((et=this._input.match(this.rules[q[wt]]))&&(!gt||et[0].length>gt[0].length)){if(gt=et,ft=wt,this.options.backtrack_lexer){if((xt=this.test_match(et,q[wt]))!==!1)return xt;if(this._backtrack){gt=!1;continue}return!1}if(!this.options.flex)break}return gt?(xt=this.test_match(gt,q[ft]))!==!1&&xt: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(){return this.next()||this.lex()},begin:function(xt){this.conditionStack.push(xt)},popState:function(){return this.conditionStack.length-1>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(xt){return(xt=this.conditionStack.length-1-Math.abs(xt||0))>=0?this.conditionStack[xt]:"INITIAL"},pushState:function(xt){this.begin(xt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(xt,gt,et,ft){switch(et){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\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:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};function Ct(){this.yy={}}return Tt.lexer=mt,Ct.prototype=Tt,Tt.Parser=Ct,new Ct}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(4551).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},3176:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(Dt,he,re,At){for(re=re||{},At=Dt.length;At--;re[Dt[At]]=he);return re},v=[1,3],_=[1,5],S=[1,6],M=[1,7],E=[1,8],D=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],B=[1,22],z=[2,13],H=[1,26],J=[1,27],rt=[1,28],dt=[1,29],K=[1,30],_t=[1,31],at=[1,24],ot=[1,32],bt=[1,33],zt=[1,36],Tt=[71,72],mt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],Ct=[1,56],xt=[1,57],gt=[1,58],et=[1,59],ft=[1,60],q=[1,61],wt=[1,62],W=[62,63],St=[1,74],Lt=[1,70],Wt=[1,71],ye=[1,72],Ve=[1,73],ke=[1,75],fe=[1,79],xe=[1,80],Me=[1,77],Oe=[1,78],ve=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Sr={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(Dt,he,re,At,Ee,Q,ce){var st=Q.length-1;switch(Ee){case 6:this.$=Q[st].trim(),At.setAccTitle(this.$);break;case 7:case 8:this.$=Q[st].trim(),At.setAccDescription(this.$);break;case 9:At.parseDirective("%%{","open_directive");break;case 10:At.parseDirective(Q[st],"type_directive");break;case 11:Q[st]=Q[st].trim().replace(/'/g,'"'),At.parseDirective(Q[st],"arg_directive");break;case 12:At.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:At.addRequirement(Q[st-3],Q[st-4]);break;case 20:At.setNewReqId(Q[st-2]);break;case 21:At.setNewReqText(Q[st-2]);break;case 22:At.setNewReqRisk(Q[st-2]);break;case 23:At.setNewReqVerifyMethod(Q[st-2]);break;case 26:this.$=At.RequirementType.REQUIREMENT;break;case 27:this.$=At.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=At.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=At.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=At.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=At.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=At.RiskLevel.LOW_RISK;break;case 33:this.$=At.RiskLevel.MED_RISK;break;case 34:this.$=At.RiskLevel.HIGH_RISK;break;case 35:this.$=At.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=At.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=At.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=At.VerifyType.VERIFY_TEST;break;case 39:At.addElement(Q[st-3]);break;case 40:At.setNewElementType(Q[st-2]);break;case 41:At.setNewElementDocRef(Q[st-2]);break;case 44:At.addRelationship(Q[st-2],Q[st],Q[st-4]);break;case 45:At.addRelationship(Q[st-2],Q[st-4],Q[st]);break;case 46:this.$=At.Relationships.CONTAINS;break;case 47:this.$=At.Relationships.COPIES;break;case 48:this.$=At.Relationships.DERIVES;break;case 49:this.$=At.Relationships.SATISFIES;break;case 50:this.$=At.Relationships.VERIFIES;break;case 51:this.$=At.Relationships.REFINES;break;case 52:this.$=At.Relationships.TRACES}},table:[{3:1,4:2,6:v,9:4,14:_,16:S,18:M,19:E},{1:[3]},{3:10,4:2,5:[1,9],6:v,9:4,14:_,16:S,18:M,19:E},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},f(D,[2,8]),{20:[2,9]},{3:16,4:2,6:v,9:4,14:_,16:S,18:M,19:E},{1:[2,2]},{4:21,5:B,7:17,8:z,9:4,14:_,16:S,18:M,19:E,23:18,24:19,25:20,26:23,32:25,40:H,41:J,42:rt,43:dt,44:K,45:_t,53:at,71:ot,72:bt},{11:34,12:[1,35],22:zt},f([12,22],[2,10]),f(D,[2,6]),f(D,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:B,7:38,8:z,9:4,14:_,16:S,18:M,19:E,23:18,24:19,25:20,26:23,32:25,40:H,41:J,42:rt,43:dt,44:K,45:_t,53:at,71:ot,72:bt},{4:21,5:B,7:39,8:z,9:4,14:_,16:S,18:M,19:E,23:18,24:19,25:20,26:23,32:25,40:H,41:J,42:rt,43:dt,44:K,45:_t,53:at,71:ot,72:bt},{4:21,5:B,7:40,8:z,9:4,14:_,16:S,18:M,19:E,23:18,24:19,25:20,26:23,32:25,40:H,41:J,42:rt,43:dt,44:K,45:_t,53:at,71:ot,72:bt},{4:21,5:B,7:41,8:z,9:4,14:_,16:S,18:M,19:E,23:18,24:19,25:20,26:23,32:25,40:H,41:J,42:rt,43:dt,44:K,45:_t,53:at,71:ot,72:bt},{4:21,5:B,7:42,8:z,9:4,14:_,16:S,18:M,19:E,23:18,24:19,25:20,26:23,32:25,40:H,41:J,42:rt,43:dt,44:K,45:_t,53:at,71:ot,72:bt},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},f(Tt,[2,26]),f(Tt,[2,27]),f(Tt,[2,28]),f(Tt,[2,29]),f(Tt,[2,30]),f(Tt,[2,31]),f(mt,[2,55]),f(mt,[2,56]),f(D,[2,4]),{13:51,21:[1,52]},f(D,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:Ct,65:xt,66:gt,67:et,68:ft,69:q,70:wt},{61:63,64:Ct,65:xt,66:gt,67:et,68:ft,69:q,70:wt},{11:64,22:zt},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},f(W,[2,46]),f(W,[2,47]),f(W,[2,48]),f(W,[2,49]),f(W,[2,50]),f(W,[2,51]),f(W,[2,52]),{63:[1,68]},f(D,[2,5]),{5:St,29:69,30:Lt,33:Wt,35:ye,37:Ve,39:ke},{5:fe,39:xe,55:76,56:Me,58:Oe},{32:81,71:ot,72:bt},{32:82,71:ot,72:bt},f(ve,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:St,29:87,30:Lt,33:Wt,35:ye,37:Ve,39:ke},f(ve,[2,25]),f(ve,[2,39]),{31:[1,88]},{31:[1,89]},{5:fe,39:xe,55:90,56:Me,58:Oe},f(ve,[2,43]),f(ve,[2,44]),f(ve,[2,45]),{32:91,71:ot,72:bt},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},f(ve,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},f(ve,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:St,29:116,30:Lt,33:Wt,35:ye,37:Ve,39:ke},{5:St,29:117,30:Lt,33:Wt,35:ye,37:Ve,39:ke},{5:St,29:118,30:Lt,33:Wt,35:ye,37:Ve,39:ke},{5:St,29:119,30:Lt,33:Wt,35:ye,37:Ve,39:ke},{5:fe,39:xe,55:120,56:Me,58:Oe},{5:fe,39:xe,55:121,56:Me,58:Oe},f(ve,[2,20]),f(ve,[2,21]),f(ve,[2,22]),f(ve,[2,23]),f(ve,[2,40]),f(ve,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(Dt,he){if(!he.recoverable){var re=new Error(Dt);throw re.hash=he,re}this.trace(Dt)},parse:function(Dt){var he=this,re=[0],At=[],Ee=[null],Q=[],ce=this.table,st="",Te=0,ge=0,Pe=0,ar=2,Ze=1,lr=Q.slice.call(arguments,1),Ne=Object.create(this.lexer),Re={yy:{}};for(var ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ze)&&(Re.yy[ze]=this.yy[ze]);Ne.setInput(Dt,Re.yy),Re.yy.lexer=Ne,Re.yy.parser=this,Ne.yylloc===void 0&&(Ne.yylloc={});var Fe=Ne.yylloc;Q.push(Fe);var be=Ne.options&&Ne.options.ranges;function ae(){var Se;return typeof(Se=At.pop()||Ne.lex()||Ze)!="number"&&(Se instanceof Array&&(Se=(At=Se).pop()),Se=he.symbols_[Se]||Se),Se}typeof Re.yy.parseError=="function"?this.parseError=Re.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var br,qe,sr,$e,Er,Jr,Nr,Br,Ie,Qe={};;){if(sr=re[re.length-1],this.defaultActions[sr]?$e=this.defaultActions[sr]:(br==null&&(br=ae()),$e=ce[sr]&&ce[sr][br]),$e===void 0||!$e.length||!$e[0]){var rr="";for(Jr in Ie=[],ce[sr])this.terminals_[Jr]&&Jr>ar&&Ie.push("'"+this.terminals_[Jr]+"'");rr=Ne.showPosition?"Parse error on line "+(Te+1)+`:
`+Ne.showPosition()+`
Expecting `+Ie.join(", ")+", got '"+(this.terminals_[br]||br)+"'":"Parse error on line "+(Te+1)+": Unexpected "+(br==Ze?"end of input":"'"+(this.terminals_[br]||br)+"'"),this.parseError(rr,{text:Ne.match,token:this.terminals_[br]||br,line:Ne.yylineno,loc:Fe,expected:Ie})}if($e[0]instanceof Array&&$e.length>1)throw new Error("Parse Error: multiple actions possible at state: "+sr+", token: "+br);switch($e[0]){case 1:re.push(br),Ee.push(Ne.yytext),Q.push(Ne.yylloc),re.push($e[1]),br=null,qe?(br=qe,qe=null):(ge=Ne.yyleng,st=Ne.yytext,Te=Ne.yylineno,Fe=Ne.yylloc,Pe>0);break;case 2:if(Nr=this.productions_[$e[1]][1],Qe.$=Ee[Ee.length-Nr],Qe._$={first_line:Q[Q.length-(Nr||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(Nr||1)].first_column,last_column:Q[Q.length-1].last_column},be&&(Qe._$.range=[Q[Q.length-(Nr||1)].range[0],Q[Q.length-1].range[1]]),(Er=this.performAction.apply(Qe,[st,ge,Te,Re.yy,$e[1],Ee,Q].concat(lr)))!==void 0)return Er;Nr&&(re=re.slice(0,-1*Nr*2),Ee=Ee.slice(0,-1*Nr),Q=Q.slice(0,-1*Nr)),re.push(this.productions_[$e[1]][0]),Ee.push(Qe.$),Q.push(Qe._$),Br=ce[re[re.length-2]][re[re.length-1]],re.push(Br);break;case 3:return!0}}return!0}},_e={EOF:1,parseError:function(Dt,he){if(!this.yy.parser)throw new Error(Dt);this.yy.parser.parseError(Dt,he)},setInput:function(Dt,he){return this.yy=he||this.yy||{},this._input=Dt,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 Dt=this._input[0];return this.yytext+=Dt,this.yyleng++,this.offset++,this.match+=Dt,this.matched+=Dt,Dt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Dt},unput:function(Dt){var he=Dt.length,re=Dt.split(/(?:\r\n?|\n)/g);this._input=Dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var At=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),re.length-1&&(this.yylineno-=re.length-1);var Ee=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:re?(re.length===At.length?this.yylloc.first_column:0)+At[At.length-re.length].length-re[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(Dt){this.unput(this.match.slice(Dt))},pastInput:function(){var Dt=this.matched.substr(0,this.matched.length-this.match.length);return(Dt.length>20?"...":"")+Dt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Dt=this.match;return Dt.length<20&&(Dt+=this._input.substr(0,20-Dt.length)),(Dt.substr(0,20)+(Dt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Dt=this.pastInput(),he=new Array(Dt.length+1).join("-");return Dt+this.upcomingInput()+`
`+he+"^"},test_match:function(Dt,he){var re,At,Ee;if(this.options.backtrack_lexer&&(Ee={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&&(Ee.yylloc.range=this.yylloc.range.slice(0))),(At=Dt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=At.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:At?At[At.length-1].length-At[At.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Dt[0].length},this.yytext+=Dt[0],this.match+=Dt[0],this.matches=Dt,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(Dt[0].length),this.matched+=Dt[0],re=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),re)return re;if(this._backtrack){for(var Q in Ee)this[Q]=Ee[Q];return!1}return!1},next:function(){if(this.done)return this.EOF;var Dt,he,re,At;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),Q=0;Q<Ee.length;Q++)if((re=this._input.match(this.rules[Ee[Q]]))&&(!he||re[0].length>he[0].length)){if(he=re,At=Q,this.options.backtrack_lexer){if((Dt=this.test_match(re,Ee[Q]))!==!1)return Dt;if(this._backtrack){he=!1;continue}return!1}if(!this.options.flex)break}return he?(Dt=this.test_match(he,Ee[At]))!==!1&&Dt: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(){return this.next()||this.lex()},begin:function(Dt){this.conditionStack.push(Dt)},popState:function(){return this.conditionStack.length-1>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(Dt){return(Dt=this.conditionStack.length-1-Math.abs(Dt||0))>=0?this.conditionStack[Dt]:"INITIAL"},pushState:function(Dt){this.begin(Dt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Dt,he,re,At){switch(re){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return he.yytext=he.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/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,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,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,55],inclusive:!0}}};function Je(){this.yy={}}return Sr.lexer=_e,Je.prototype=Sr,Sr.Parser=Je,new Je}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(8800).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},6876:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(Dt,he,re,At){for(re=re||{},At=Dt.length;At--;re[Dt[At]]=he);return re},v=[1,2],_=[1,3],S=[1,5],M=[1,7],E=[2,5],D=[1,15],B=[1,17],z=[1,18],H=[1,19],J=[1,21],rt=[1,22],dt=[1,23],K=[1,29],_t=[1,30],at=[1,31],ot=[1,32],bt=[1,33],zt=[1,34],Tt=[1,35],mt=[1,36],Ct=[1,37],xt=[1,38],gt=[1,39],et=[1,40],ft=[1,43],q=[1,44],wt=[1,45],W=[1,46],St=[1,47],Lt=[1,48],Wt=[1,51],ye=[1,4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],Ve=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,53,58,59,60,61,69,79],ke=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,52,53,58,59,60,61,69,79],fe=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,51,53,58,59,60,61,69,79],xe=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,53,58,59,60,61,69,79],Me=[67,68,69],Oe=[1,121],ve=[1,4,5,7,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],Sr={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,NUM:23,off:24,activate:25,deactivate:26,note_statement:27,links_statement:28,link_statement:29,properties_statement:30,details_statement:31,title:32,legacy_title:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,loop:39,end:40,rect:41,opt:42,alt:43,else_sections:44,par:45,par_sections:46,critical:47,option_sections:48,break:49,option:50,and:51,else:52,note:53,placement:54,text2:55,over:56,actor_pair:57,links:58,link:59,properties:60,details:61,spaceList:62,",":63,left_of:64,right_of:65,signaltype:66,"+":67,"-":68,ACTOR:69,SOLID_OPEN_ARROW:70,DOTTED_OPEN_ARROW:71,SOLID_ARROW:72,DOTTED_ARROW:73,SOLID_CROSS:74,DOTTED_CROSS:75,SOLID_POINT:76,DOTTED_POINT:77,TXT:78,open_directive:79,type_directive:80,arg_directive:81,close_directive:82,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"NUM",24:"off",25:"activate",26:"deactivate",32:"title",33:"legacy_title",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",39:"loop",40:"end",41:"rect",42:"opt",43:"alt",45:"par",47:"critical",49:"break",50:"option",51:"and",52:"else",53:"note",56:"over",58:"links",59:"link",60:"properties",61:"details",63:",",64:"left_of",65:"right_of",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:"open_directive",80:"type_directive",81:"arg_directive",82:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[48,1],[48,4],[46,1],[46,4],[44,1],[44,4],[27,4],[27,4],[28,3],[29,3],[30,3],[31,3],[62,2],[62,1],[57,3],[57,1],[54,1],[54,1],[21,5],[21,5],[21,4],[17,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[55,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(Dt,he,re,At,Ee,Q,ce){var st=Q.length-1;switch(Ee){case 4:return At.apply(Q[st]),Q[st];case 5:case 9:this.$=[];break;case 6:Q[st-1].push(Q[st]),this.$=Q[st-1];break;case 7:case 8:case 56:this.$=Q[st];break;case 12:Q[st-3].type="addParticipant",Q[st-3].description=At.parseMessage(Q[st-1]),this.$=Q[st-3];break;case 13:Q[st-1].type="addParticipant",this.$=Q[st-1];break;case 14:Q[st-3].type="addActor",Q[st-3].description=At.parseMessage(Q[st-1]),this.$=Q[st-3];break;case 15:Q[st-1].type="addActor",this.$=Q[st-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(Q[st-2]),sequenceIndexStep:Number(Q[st-1]),sequenceVisible:!0,signalType:At.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(Q[st-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:At.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:At.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:At.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:At.LINETYPE.ACTIVE_START,actor:Q[st-1]};break;case 22:this.$={type:"activeEnd",signalType:At.LINETYPE.ACTIVE_END,actor:Q[st-1]};break;case 28:At.setDiagramTitle(Q[st].substring(6)),this.$=Q[st].substring(6);break;case 29:At.setDiagramTitle(Q[st].substring(7)),this.$=Q[st].substring(7);break;case 30:this.$=Q[st].trim(),At.setAccTitle(this.$);break;case 31:case 32:this.$=Q[st].trim(),At.setAccDescription(this.$);break;case 33:Q[st-1].unshift({type:"loopStart",loopText:At.parseMessage(Q[st-2]),signalType:At.LINETYPE.LOOP_START}),Q[st-1].push({type:"loopEnd",loopText:Q[st-2],signalType:At.LINETYPE.LOOP_END}),this.$=Q[st-1];break;case 34:Q[st-1].unshift({type:"rectStart",color:At.parseMessage(Q[st-2]),signalType:At.LINETYPE.RECT_START}),Q[st-1].push({type:"rectEnd",color:At.parseMessage(Q[st-2]),signalType:At.LINETYPE.RECT_END}),this.$=Q[st-1];break;case 35:Q[st-1].unshift({type:"optStart",optText:At.parseMessage(Q[st-2]),signalType:At.LINETYPE.OPT_START}),Q[st-1].push({type:"optEnd",optText:At.parseMessage(Q[st-2]),signalType:At.LINETYPE.OPT_END}),this.$=Q[st-1];break;case 36:Q[st-1].unshift({type:"altStart",altText:At.parseMessage(Q[st-2]),signalType:At.LINETYPE.ALT_START}),Q[st-1].push({type:"altEnd",signalType:At.LINETYPE.ALT_END}),this.$=Q[st-1];break;case 37:Q[st-1].unshift({type:"parStart",parText:At.parseMessage(Q[st-2]),signalType:At.LINETYPE.PAR_START}),Q[st-1].push({type:"parEnd",signalType:At.LINETYPE.PAR_END}),this.$=Q[st-1];break;case 38:Q[st-1].unshift({type:"criticalStart",criticalText:At.parseMessage(Q[st-2]),signalType:At.LINETYPE.CRITICAL_START}),Q[st-1].push({type:"criticalEnd",signalType:At.LINETYPE.CRITICAL_END}),this.$=Q[st-1];break;case 39:Q[st-1].unshift({type:"breakStart",breakText:At.parseMessage(Q[st-2]),signalType:At.LINETYPE.BREAK_START}),Q[st-1].push({type:"breakEnd",optText:At.parseMessage(Q[st-2]),signalType:At.LINETYPE.BREAK_END}),this.$=Q[st-1];break;case 42:this.$=Q[st-3].concat([{type:"option",optionText:At.parseMessage(Q[st-1]),signalType:At.LINETYPE.CRITICAL_OPTION},Q[st]]);break;case 44:this.$=Q[st-3].concat([{type:"and",parText:At.parseMessage(Q[st-1]),signalType:At.LINETYPE.PAR_AND},Q[st]]);break;case 46:this.$=Q[st-3].concat([{type:"else",altText:At.parseMessage(Q[st-1]),signalType:At.LINETYPE.ALT_ELSE},Q[st]]);break;case 47:this.$=[Q[st-1],{type:"addNote",placement:Q[st-2],actor:Q[st-1].actor,text:Q[st]}];break;case 48:Q[st-2]=[].concat(Q[st-1],Q[st-1]).slice(0,2),Q[st-2][0]=Q[st-2][0].actor,Q[st-2][1]=Q[st-2][1].actor,this.$=[Q[st-1],{type:"addNote",placement:At.PLACEMENT.OVER,actor:Q[st-2].slice(0,2),text:Q[st]}];break;case 49:this.$=[Q[st-1],{type:"addLinks",actor:Q[st-1].actor,text:Q[st]}];break;case 50:this.$=[Q[st-1],{type:"addALink",actor:Q[st-1].actor,text:Q[st]}];break;case 51:this.$=[Q[st-1],{type:"addProperties",actor:Q[st-1].actor,text:Q[st]}];break;case 52:this.$=[Q[st-1],{type:"addDetails",actor:Q[st-1].actor,text:Q[st]}];break;case 55:this.$=[Q[st-2],Q[st]];break;case 57:this.$=At.PLACEMENT.LEFTOF;break;case 58:this.$=At.PLACEMENT.RIGHTOF;break;case 59:this.$=[Q[st-4],Q[st-1],{type:"addMessage",from:Q[st-4].actor,to:Q[st-1].actor,signalType:Q[st-3],msg:Q[st]},{type:"activeStart",signalType:At.LINETYPE.ACTIVE_START,actor:Q[st-1]}];break;case 60:this.$=[Q[st-4],Q[st-1],{type:"addMessage",from:Q[st-4].actor,to:Q[st-1].actor,signalType:Q[st-3],msg:Q[st]},{type:"activeEnd",signalType:At.LINETYPE.ACTIVE_END,actor:Q[st-4]}];break;case 61:this.$=[Q[st-3],Q[st-1],{type:"addMessage",from:Q[st-3].actor,to:Q[st-1].actor,signalType:Q[st-2],msg:Q[st]}];break;case 62:this.$={type:"addParticipant",actor:Q[st]};break;case 63:this.$=At.LINETYPE.SOLID_OPEN;break;case 64:this.$=At.LINETYPE.DOTTED_OPEN;break;case 65:this.$=At.LINETYPE.SOLID;break;case 66:this.$=At.LINETYPE.DOTTED;break;case 67:this.$=At.LINETYPE.SOLID_CROSS;break;case 68:this.$=At.LINETYPE.DOTTED_CROSS;break;case 69:this.$=At.LINETYPE.SOLID_POINT;break;case 70:this.$=At.LINETYPE.DOTTED_POINT;break;case 71:this.$=At.parseMessage(Q[st].trim().substring(1));break;case 72:At.parseDirective("%%{","open_directive");break;case 73:At.parseDirective(Q[st],"type_directive");break;case 74:Q[st]=Q[st].trim().replace(/'/g,'"'),At.parseDirective(Q[st],"arg_directive");break;case 75:At.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:v,5:_,6:4,7:S,11:6,79:M},{1:[3]},{3:8,4:v,5:_,6:4,7:S,11:6,79:M},{3:9,4:v,5:_,6:4,7:S,11:6,79:M},{3:10,4:v,5:_,6:4,7:S,11:6,79:M},f([1,4,5,16,20,22,25,26,32,33,34,36,38,39,41,42,43,45,47,49,53,58,59,60,61,69,79],E,{8:11}),{12:12,80:[1,13]},{80:[2,72]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:D,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:H,21:20,22:J,25:rt,26:dt,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:ot,38:bt,39:zt,41:Tt,42:mt,43:Ct,45:xt,47:gt,49:et,53:ft,58:q,59:wt,60:W,61:St,69:Lt,79:M},{13:49,14:[1,50],82:Wt},f([14,82],[2,73]),f(ye,[2,6]),{6:41,10:52,11:6,16:z,17:42,20:H,21:20,22:J,25:rt,26:dt,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:ot,38:bt,39:zt,41:Tt,42:mt,43:Ct,45:xt,47:gt,49:et,53:ft,58:q,59:wt,60:W,61:St,69:Lt,79:M},f(ye,[2,8]),f(ye,[2,9]),{17:53,69:Lt},{17:54,69:Lt},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:Lt},{17:60,69:Lt},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},f(ye,[2,28]),f(ye,[2,29]),{35:[1,66]},{37:[1,67]},f(ye,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},f(ye,[2,40]),{66:75,70:[1,76],71:[1,77],72:[1,78],73:[1,79],74:[1,80],75:[1,81],76:[1,82],77:[1,83]},{54:84,56:[1,85],64:[1,86],65:[1,87]},{17:88,69:Lt},{17:89,69:Lt},{17:90,69:Lt},{17:91,69:Lt},f([5,18,63,70,71,72,73,74,75,76,77,78],[2,62]),{5:[1,92]},{15:93,81:[1,94]},{5:[2,75]},f(ye,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},f(ye,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},f(ye,[2,20]),{5:[1,102]},{5:[1,103]},f(ye,[2,23]),f(ye,[2,24]),f(ye,[2,25]),f(ye,[2,26]),f(ye,[2,27]),f(ye,[2,30]),f(ye,[2,31]),f(Ve,E,{8:104}),f(Ve,E,{8:105}),f(Ve,E,{8:106}),f(ke,E,{44:107,8:108}),f(fe,E,{46:109,8:110}),f(xe,E,{48:111,8:112}),f(Ve,E,{8:113}),{17:116,67:[1,114],68:[1,115],69:Lt},f(Me,[2,63]),f(Me,[2,64]),f(Me,[2,65]),f(Me,[2,66]),f(Me,[2,67]),f(Me,[2,68]),f(Me,[2,69]),f(Me,[2,70]),{17:117,69:Lt},{17:119,57:118,69:Lt},{69:[2,57]},{69:[2,58]},{55:120,78:Oe},{55:122,78:Oe},{55:123,78:Oe},{55:124,78:Oe},f(ve,[2,10]),{13:125,82:Wt},{82:[2,74]},{19:[1,126]},f(ye,[2,13]),{19:[1,127]},f(ye,[2,15]),{5:[1,128]},f(ye,[2,18]),f(ye,[2,19]),f(ye,[2,21]),f(ye,[2,22]),{4:D,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:H,21:20,22:J,25:rt,26:dt,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:ot,38:bt,39:zt,40:[1,129],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:et,53:ft,58:q,59:wt,60:W,61:St,69:Lt,79:M},{4:D,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:H,21:20,22:J,25:rt,26:dt,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:ot,38:bt,39:zt,40:[1,130],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:et,53:ft,58:q,59:wt,60:W,61:St,69:Lt,79:M},{4:D,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:H,21:20,22:J,25:rt,26:dt,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:ot,38:bt,39:zt,40:[1,131],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:et,53:ft,58:q,59:wt,60:W,61:St,69:Lt,79:M},{40:[1,132]},{4:D,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:H,21:20,22:J,25:rt,26:dt,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:ot,38:bt,39:zt,40:[2,45],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:et,52:[1,133],53:ft,58:q,59:wt,60:W,61:St,69:Lt,79:M},{40:[1,134]},{4:D,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:H,21:20,22:J,25:rt,26:dt,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:ot,38:bt,39:zt,40:[2,43],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:et,51:[1,135],53:ft,58:q,59:wt,60:W,61:St,69:Lt,79:M},{40:[1,136]},{4:D,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:H,21:20,22:J,25:rt,26:dt,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:ot,38:bt,39:zt,40:[2,41],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:et,50:[1,137],53:ft,58:q,59:wt,60:W,61:St,69:Lt,79:M},{4:D,5:B,6:41,9:14,10:16,11:6,16:z,17:42,20:H,21:20,22:J,25:rt,26:dt,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:ot,38:bt,39:zt,40:[1,138],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:et,53:ft,58:q,59:wt,60:W,61:St,69:Lt,79:M},{17:139,69:Lt},{17:140,69:Lt},{55:141,78:Oe},{55:142,78:Oe},{55:143,78:Oe},{63:[1,144],78:[2,56]},{5:[2,49]},{5:[2,71]},{5:[2,50]},{5:[2,51]},{5:[2,52]},{5:[1,145]},{5:[1,146]},{5:[1,147]},f(ye,[2,17]),f(ye,[2,33]),f(ye,[2,34]),f(ye,[2,35]),f(ye,[2,36]),{19:[1,148]},f(ye,[2,37]),{19:[1,149]},f(ye,[2,38]),{19:[1,150]},f(ye,[2,39]),{55:151,78:Oe},{55:152,78:Oe},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:Lt},f(ve,[2,11]),f(ye,[2,12]),f(ye,[2,14]),f(ke,E,{8:108,44:154}),f(fe,E,{8:110,46:155}),f(xe,E,{8:112,48:156}),{5:[2,59]},{5:[2,60]},{78:[2,55]},{40:[2,46]},{40:[2,44]},{40:[2,42]}],defaultActions:{7:[2,72],8:[2,1],9:[2,2],10:[2,3],51:[2,75],86:[2,57],87:[2,58],94:[2,74],120:[2,49],121:[2,71],122:[2,50],123:[2,51],124:[2,52],141:[2,61],142:[2,47],143:[2,48],151:[2,59],152:[2,60],153:[2,55],154:[2,46],155:[2,44],156:[2,42]},parseError:function(Dt,he){if(!he.recoverable){var re=new Error(Dt);throw re.hash=he,re}this.trace(Dt)},parse:function(Dt){var he=this,re=[0],At=[],Ee=[null],Q=[],ce=this.table,st="",Te=0,ge=0,Pe=0,ar=2,Ze=1,lr=Q.slice.call(arguments,1),Ne=Object.create(this.lexer),Re={yy:{}};for(var ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ze)&&(Re.yy[ze]=this.yy[ze]);Ne.setInput(Dt,Re.yy),Re.yy.lexer=Ne,Re.yy.parser=this,Ne.yylloc===void 0&&(Ne.yylloc={});var Fe=Ne.yylloc;Q.push(Fe);var be=Ne.options&&Ne.options.ranges;function ae(){var Se;return typeof(Se=At.pop()||Ne.lex()||Ze)!="number"&&(Se instanceof Array&&(Se=(At=Se).pop()),Se=he.symbols_[Se]||Se),Se}typeof Re.yy.parseError=="function"?this.parseError=Re.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var br,qe,sr,$e,Er,Jr,Nr,Br,Ie,Qe={};;){if(sr=re[re.length-1],this.defaultActions[sr]?$e=this.defaultActions[sr]:(br==null&&(br=ae()),$e=ce[sr]&&ce[sr][br]),$e===void 0||!$e.length||!$e[0]){var rr="";for(Jr in Ie=[],ce[sr])this.terminals_[Jr]&&Jr>ar&&Ie.push("'"+this.terminals_[Jr]+"'");rr=Ne.showPosition?"Parse error on line "+(Te+1)+`:
`+Ne.showPosition()+`
Expecting `+Ie.join(", ")+", got '"+(this.terminals_[br]||br)+"'":"Parse error on line "+(Te+1)+": Unexpected "+(br==Ze?"end of input":"'"+(this.terminals_[br]||br)+"'"),this.parseError(rr,{text:Ne.match,token:this.terminals_[br]||br,line:Ne.yylineno,loc:Fe,expected:Ie})}if($e[0]instanceof Array&&$e.length>1)throw new Error("Parse Error: multiple actions possible at state: "+sr+", token: "+br);switch($e[0]){case 1:re.push(br),Ee.push(Ne.yytext),Q.push(Ne.yylloc),re.push($e[1]),br=null,qe?(br=qe,qe=null):(ge=Ne.yyleng,st=Ne.yytext,Te=Ne.yylineno,Fe=Ne.yylloc,Pe>0);break;case 2:if(Nr=this.productions_[$e[1]][1],Qe.$=Ee[Ee.length-Nr],Qe._$={first_line:Q[Q.length-(Nr||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(Nr||1)].first_column,last_column:Q[Q.length-1].last_column},be&&(Qe._$.range=[Q[Q.length-(Nr||1)].range[0],Q[Q.length-1].range[1]]),(Er=this.performAction.apply(Qe,[st,ge,Te,Re.yy,$e[1],Ee,Q].concat(lr)))!==void 0)return Er;Nr&&(re=re.slice(0,-1*Nr*2),Ee=Ee.slice(0,-1*Nr),Q=Q.slice(0,-1*Nr)),re.push(this.productions_[$e[1]][0]),Ee.push(Qe.$),Q.push(Qe._$),Br=ce[re[re.length-2]][re[re.length-1]],re.push(Br);break;case 3:return!0}}return!0}},_e={EOF:1,parseError:function(Dt,he){if(!this.yy.parser)throw new Error(Dt);this.yy.parser.parseError(Dt,he)},setInput:function(Dt,he){return this.yy=he||this.yy||{},this._input=Dt,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 Dt=this._input[0];return this.yytext+=Dt,this.yyleng++,this.offset++,this.match+=Dt,this.matched+=Dt,Dt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Dt},unput:function(Dt){var he=Dt.length,re=Dt.split(/(?:\r\n?|\n)/g);this._input=Dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var At=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),re.length-1&&(this.yylineno-=re.length-1);var Ee=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:re?(re.length===At.length?this.yylloc.first_column:0)+At[At.length-re.length].length-re[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(Dt){this.unput(this.match.slice(Dt))},pastInput:function(){var Dt=this.matched.substr(0,this.matched.length-this.match.length);return(Dt.length>20?"...":"")+Dt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Dt=this.match;return Dt.length<20&&(Dt+=this._input.substr(0,20-Dt.length)),(Dt.substr(0,20)+(Dt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Dt=this.pastInput(),he=new Array(Dt.length+1).join("-");return Dt+this.upcomingInput()+`
`+he+"^"},test_match:function(Dt,he){var re,At,Ee;if(this.options.backtrack_lexer&&(Ee={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&&(Ee.yylloc.range=this.yylloc.range.slice(0))),(At=Dt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=At.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:At?At[At.length-1].length-At[At.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Dt[0].length},this.yytext+=Dt[0],this.match+=Dt[0],this.matches=Dt,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(Dt[0].length),this.matched+=Dt[0],re=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),re)return re;if(this._backtrack){for(var Q in Ee)this[Q]=Ee[Q];return!1}return!1},next:function(){if(this.done)return this.EOF;var Dt,he,re,At;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),Q=0;Q<Ee.length;Q++)if((re=this._input.match(this.rules[Ee[Q]]))&&(!he||re[0].length>he[0].length)){if(he=re,At=Q,this.options.backtrack_lexer){if((Dt=this.test_match(re,Ee[Q]))!==!1)return Dt;if(this._backtrack){he=!1;continue}return!1}if(!this.options.flex)break}return he?(Dt=this.test_match(he,Ee[At]))!==!1&&Dt: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(){return this.next()||this.lex()},begin:function(Dt){this.conditionStack.push(Dt)},popState:function(){return this.conditionStack.length-1>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(Dt){return(Dt=this.conditionStack.length-1-Math.abs(Dt||0))>=0?this.conditionStack[Dt]:"INITIAL"},pushState:function(Dt){this.begin(Dt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Dt,he,re,At){switch(re){case 0:return this.begin("open_directive"),79;case 1:return this.begin("type_directive"),80;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),82;case 4:return 81;case 5:case 52:case 65:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 23;case 12:return this.begin("ID"),16;case 13:return this.begin("ID"),20;case 14:return he.yytext=he.yytext.trim(),this.begin("ALIAS"),69;case 15:return this.popState(),this.popState(),this.begin("LINE"),18;case 16:return this.popState(),this.popState(),5;case 17:return this.begin("LINE"),39;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),52;case 22:return this.begin("LINE"),45;case 23:return this.begin("LINE"),51;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),50;case 26:return this.begin("LINE"),49;case 27:return this.popState(),19;case 28:return 40;case 29:return 64;case 30:return 65;case 31:return 58;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 56;case 36:return 53;case 37:return this.begin("ID"),25;case 38:return this.begin("ID"),26;case 39:return 32;case 40:return 33;case 41:return this.begin("acc_title"),34;case 42:return this.popState(),"acc_title_value";case 43:return this.begin("acc_descr"),36;case 44:return this.popState(),"acc_descr_value";case 45:this.begin("acc_descr_multiline");break;case 46:this.popState();break;case 47:return"acc_descr_multiline_value";case 48:return 7;case 49:return 22;case 50:return 24;case 51:return 63;case 53:return he.yytext=he.yytext.trim(),69;case 54:return 72;case 55:return 73;case 56:return 70;case 57:return 71;case 58:return 74;case 59:return 75;case 60:return 76;case 61:return 77;case 62:return 78;case 63:return 67;case 64:return 68;case 66:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/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,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[46,47],inclusive:!1},acc_descr:{rules:[44],inclusive:!1},acc_title:{rules:[42],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,14],inclusive:!1},ALIAS:{rules:[7,8,15,16],inclusive:!1},LINE:{rules:[7,8,27],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66],inclusive:!0}}};function Je(){this.yy={}}return Sr.lexer=_e,Je.prototype=Sr,Sr.Parser=Je,new Je}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(1993).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},3584:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(ke,fe,xe,Me){for(xe=xe||{},Me=ke.length;Me--;xe[ke[Me]]=fe);return xe},v=[1,2],_=[1,3],S=[1,5],M=[1,7],E=[2,5],D=[1,15],B=[1,17],z=[1,19],H=[1,20],J=[1,21],rt=[1,22],dt=[1,33],K=[1,23],_t=[1,24],at=[1,25],ot=[1,26],bt=[1,27],zt=[1,30],Tt=[1,31],mt=[1,32],Ct=[1,35],xt=[1,36],gt=[1,37],et=[1,38],ft=[1,34],q=[1,41],wt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],W=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],St=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Lt=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Wt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"-->":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,openDirective:36,typeDirective:37,closeDirective:38,":":39,argDirective:40,direction_tb:41,direction_bt:42,direction_rl:43,direction_lr:44,eol:45,";":46,EDGE_STATE:47,left_of:48,right_of:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",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",29:"NOTE_TEXT",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",39:":",41:"direction_tb",42:"direction_bt",43:"direction_rl",44:"direction_lr",46:";",47:"EDGE_STATE",48:"left_of",49:"right_of",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[45,1],[45,1],[11,1],[11,1],[28,1],[28,1],[36,1],[37,1],[40,1],[38,1]],performAction:function(ke,fe,xe,Me,Oe,ve,Sr){var _e=ve.length-1;switch(Oe){case 4:return Me.setRootDoc(ve[_e]),ve[_e];case 5:this.$=[];break;case 6:ve[_e]!="nl"&&(ve[_e-1].push(ve[_e]),this.$=ve[_e-1]);break;case 7:case 8:case 39:case 40:this.$=ve[_e];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:ve[_e],type:"default",description:""};break;case 11:this.$={stmt:"state",id:ve[_e-1],type:"default",description:Me.trimColon(ve[_e])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:ve[_e-2],type:"default",description:""},state2:{stmt:"state",id:ve[_e],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:ve[_e-3],type:"default",description:""},state2:{stmt:"state",id:ve[_e-1],type:"default",description:""},description:ve[_e].substr(1).trim()};break;case 17:this.$={stmt:"state",id:ve[_e-3],type:"default",description:"",doc:ve[_e-1]};break;case 18:var Je=ve[_e],Dt=ve[_e-2].trim();if(ve[_e].match(":")){var he=ve[_e].split(":");Je=he[0],Dt=[Dt,he[1]]}this.$={stmt:"state",id:Je,type:"default",description:Dt};break;case 19:this.$={stmt:"state",id:ve[_e-3],type:"default",description:ve[_e-5],doc:ve[_e-1]};break;case 20:this.$={stmt:"state",id:ve[_e],type:"fork"};break;case 21:this.$={stmt:"state",id:ve[_e],type:"join"};break;case 22:this.$={stmt:"state",id:ve[_e],type:"choice"};break;case 23:this.$={stmt:"state",id:Me.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:ve[_e-1].trim(),note:{position:ve[_e-2].trim(),text:ve[_e].trim()}};break;case 28:this.$=ve[_e].trim(),Me.setAccTitle(this.$);break;case 29:case 30:this.$=ve[_e].trim(),Me.setAccDescription(this.$);break;case 33:Me.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:Me.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:Me.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:Me.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:Me.parseDirective("%%{","open_directive");break;case 44:Me.parseDirective(ve[_e],"type_directive");break;case 45:ve[_e]=ve[_e].trim().replace(/'/g,'"'),Me.parseDirective(ve[_e],"arg_directive");break;case 46:Me.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:v,5:_,6:4,7:S,36:6,50:M},{1:[3]},{3:8,4:v,5:_,6:4,7:S,36:6,50:M},{3:9,4:v,5:_,6:4,7:S,36:6,50:M},{3:10,4:v,5:_,6:4,7:S,36:6,50:M},f([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],E,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:D,5:B,6:28,9:14,10:16,11:18,14:z,15:H,17:J,20:rt,22:dt,23:K,24:_t,25:at,26:ot,27:bt,30:29,31:zt,33:Tt,35:mt,36:6,41:Ct,42:xt,43:gt,44:et,47:ft,50:M},{38:39,39:[1,40],53:q},f([39,53],[2,44]),f(wt,[2,6]),{6:28,10:42,11:18,14:z,15:H,17:J,20:rt,22:dt,23:K,24:_t,25:at,26:ot,27:bt,30:29,31:zt,33:Tt,35:mt,36:6,41:Ct,42:xt,43:gt,44:et,47:ft,50:M},f(wt,[2,8]),f(wt,[2,9]),f(wt,[2,10],{12:[1,43],13:[1,44]}),f(wt,[2,14]),{16:[1,45]},f(wt,[2,16],{18:[1,46]}),{21:[1,47]},f(wt,[2,20]),f(wt,[2,21]),f(wt,[2,22]),f(wt,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},f(wt,[2,26]),f(wt,[2,27]),{32:[1,52]},{34:[1,53]},f(wt,[2,30]),f(W,[2,39]),f(W,[2,40]),f(wt,[2,33]),f(wt,[2,34]),f(wt,[2,35]),f(wt,[2,36]),f(St,[2,31]),{40:54,52:[1,55]},f(St,[2,46]),f(wt,[2,7]),f(wt,[2,11]),{11:56,22:dt,47:ft},f(wt,[2,15]),f(Lt,E,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]},f(wt,[2,28]),f(wt,[2,29]),{38:61,53:q},{53:[2,45]},f(wt,[2,12],{12:[1,62]}),{4:D,5:B,6:28,9:14,10:16,11:18,14:z,15:H,17:J,19:[1,63],20:rt,22:dt,23:K,24:_t,25:at,26:ot,27:bt,30:29,31:zt,33:Tt,35:mt,36:6,41:Ct,42:xt,43:gt,44:et,47:ft,50:M},f(wt,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},f(St,[2,32]),f(wt,[2,13]),f(wt,[2,17]),f(Lt,E,{8:67}),f(wt,[2,24]),f(wt,[2,25]),{4:D,5:B,6:28,9:14,10:16,11:18,14:z,15:H,17:J,19:[1,68],20:rt,22:dt,23:K,24:_t,25:at,26:ot,27:bt,30:29,31:zt,33:Tt,35:mt,36:6,41:Ct,42:xt,43:gt,44:et,47:ft,50:M},f(wt,[2,19])],defaultActions:{7:[2,43],8:[2,1],9:[2,2],10:[2,3],50:[2,41],51:[2,42],55:[2,45]},parseError:function(ke,fe){if(!fe.recoverable){var xe=new Error(ke);throw xe.hash=fe,xe}this.trace(ke)},parse:function(ke){var fe=this,xe=[0],Me=[],Oe=[null],ve=[],Sr=this.table,_e="",Je=0,Dt=0,he=0,re=2,At=1,Ee=ve.slice.call(arguments,1),Q=Object.create(this.lexer),ce={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(ce.yy[st]=this.yy[st]);Q.setInput(ke,ce.yy),ce.yy.lexer=Q,ce.yy.parser=this,Q.yylloc===void 0&&(Q.yylloc={});var Te=Q.yylloc;ve.push(Te);var ge=Q.options&&Q.options.ranges;function Pe(){var sr;return typeof(sr=Me.pop()||Q.lex()||At)!="number"&&(sr instanceof Array&&(sr=(Me=sr).pop()),sr=fe.symbols_[sr]||sr),sr}typeof ce.yy.parseError=="function"?this.parseError=ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ar,Ze,lr,Ne,Re,ze,Fe,be,ae,br={};;){if(lr=xe[xe.length-1],this.defaultActions[lr]?Ne=this.defaultActions[lr]:(ar==null&&(ar=Pe()),Ne=Sr[lr]&&Sr[lr][ar]),Ne===void 0||!Ne.length||!Ne[0]){var qe="";for(ze in ae=[],Sr[lr])this.terminals_[ze]&&ze>re&&ae.push("'"+this.terminals_[ze]+"'");qe=Q.showPosition?"Parse error on line "+(Je+1)+`:
`+Q.showPosition()+`
Expecting `+ae.join(", ")+", got '"+(this.terminals_[ar]||ar)+"'":"Parse error on line "+(Je+1)+": Unexpected "+(ar==At?"end of input":"'"+(this.terminals_[ar]||ar)+"'"),this.parseError(qe,{text:Q.match,token:this.terminals_[ar]||ar,line:Q.yylineno,loc:Te,expected:ae})}if(Ne[0]instanceof Array&&Ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+lr+", token: "+ar);switch(Ne[0]){case 1:xe.push(ar),Oe.push(Q.yytext),ve.push(Q.yylloc),xe.push(Ne[1]),ar=null,Ze?(ar=Ze,Ze=null):(Dt=Q.yyleng,_e=Q.yytext,Je=Q.yylineno,Te=Q.yylloc,he>0);break;case 2:if(Fe=this.productions_[Ne[1]][1],br.$=Oe[Oe.length-Fe],br._$={first_line:ve[ve.length-(Fe||1)].first_line,last_line:ve[ve.length-1].last_line,first_column:ve[ve.length-(Fe||1)].first_column,last_column:ve[ve.length-1].last_column},ge&&(br._$.range=[ve[ve.length-(Fe||1)].range[0],ve[ve.length-1].range[1]]),(Re=this.performAction.apply(br,[_e,Dt,Je,ce.yy,Ne[1],Oe,ve].concat(Ee)))!==void 0)return Re;Fe&&(xe=xe.slice(0,-1*Fe*2),Oe=Oe.slice(0,-1*Fe),ve=ve.slice(0,-1*Fe)),xe.push(this.productions_[Ne[1]][0]),Oe.push(br.$),ve.push(br._$),be=Sr[xe[xe.length-2]][xe[xe.length-1]],xe.push(be);break;case 3:return!0}}return!0}},ye={EOF:1,parseError:function(ke,fe){if(!this.yy.parser)throw new Error(ke);this.yy.parser.parseError(ke,fe)},setInput:function(ke,fe){return this.yy=fe||this.yy||{},this._input=ke,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 ke=this._input[0];return this.yytext+=ke,this.yyleng++,this.offset++,this.match+=ke,this.matched+=ke,ke.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ke},unput:function(ke){var fe=ke.length,xe=ke.split(/(?:\r\n?|\n)/g);this._input=ke+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-fe),this.offset-=fe;var Me=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),xe.length-1&&(this.yylineno-=xe.length-1);var Oe=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:xe?(xe.length===Me.length?this.yylloc.first_column:0)+Me[Me.length-xe.length].length-xe[0].length:this.yylloc.first_column-fe},this.options.ranges&&(this.yylloc.range=[Oe[0],Oe[0]+this.yyleng-fe]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(ke){this.unput(this.match.slice(ke))},pastInput:function(){var ke=this.matched.substr(0,this.matched.length-this.match.length);return(ke.length>20?"...":"")+ke.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ke=this.match;return ke.length<20&&(ke+=this._input.substr(0,20-ke.length)),(ke.substr(0,20)+(ke.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ke=this.pastInput(),fe=new Array(ke.length+1).join("-");return ke+this.upcomingInput()+`
`+fe+"^"},test_match:function(ke,fe){var xe,Me,Oe;if(this.options.backtrack_lexer&&(Oe={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&&(Oe.yylloc.range=this.yylloc.range.slice(0))),(Me=ke[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Me.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Me?Me[Me.length-1].length-Me[Me.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ke[0].length},this.yytext+=ke[0],this.match+=ke[0],this.matches=ke,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(ke[0].length),this.matched+=ke[0],xe=this.performAction.call(this,this.yy,this,fe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),xe)return xe;if(this._backtrack){for(var ve in Oe)this[ve]=Oe[ve];return!1}return!1},next:function(){if(this.done)return this.EOF;var ke,fe,xe,Me;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Oe=this._currentRules(),ve=0;ve<Oe.length;ve++)if((xe=this._input.match(this.rules[Oe[ve]]))&&(!fe||xe[0].length>fe[0].length)){if(fe=xe,Me=ve,this.options.backtrack_lexer){if((ke=this.test_match(xe,Oe[ve]))!==!1)return ke;if(this._backtrack){fe=!1;continue}return!1}if(!this.options.flex)break}return fe?(ke=this.test_match(fe,Oe[Me]))!==!1&&ke: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(){return this.next()||this.lex()},begin:function(ke){this.conditionStack.push(ke)},popState:function(){return this.conditionStack.length-1>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(ke){return(ke=this.conditionStack.length-1-Math.abs(ke||0))>=0?this.conditionStack[ke]:"INITIAL"},pushState:function(ke){this.begin(ke)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ke,fe,xe,Me){switch(xe){case 0:case 33:return 41;case 1:case 34:return 42;case 2:case 35:return 43;case 3:case 36:return 44;case 4:return this.begin("open_directive"),50;case 5:return this.begin("type_directive"),51;case 6:return this.popState(),this.begin("arg_directive"),39;case 7:return this.popState(),this.popState(),53;case 8:return 52;case 9:case 10:case 12:case 13:case 14:case 15:case 46:case 52:break;case 11:case 66:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 24:case 40:case 43:this.popState();break;case 19:return this.begin("acc_title"),31;case 20:return this.popState(),"acc_title_value";case 21:return this.begin("acc_descr"),33;case 22:return this.popState(),"acc_descr_value";case 23:this.begin("acc_descr_multiline");break;case 25:return"acc_descr_multiline_value";case 26:this.pushState("STATE");break;case 27:case 30:return this.popState(),fe.yytext=fe.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),fe.yytext=fe.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),fe.yytext=fe.yytext.slice(0,-10).trim(),25;case 37:this.begin("STATE_STRING");break;case 38:return this.popState(),this.pushState("STATE_ID"),"AS";case 39:case 54:return this.popState(),"ID";case 41:return"STATE_DESCR";case 42:return 17;case 44:return this.popState(),this.pushState("struct"),18;case 45:return this.popState(),19;case 47:return this.begin("NOTE"),27;case 48:return this.popState(),this.pushState("NOTE_ID"),48;case 49:return this.popState(),this.pushState("NOTE_ID"),49;case 50:this.popState(),this.pushState("FLOATING_NOTE");break;case 51:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 53:return"NOTE_TEXT";case 55:return this.popState(),this.pushState("NOTE_TEXT"),22;case 56:return this.popState(),fe.yytext=fe.yytext.substr(2).trim(),29;case 57:return this.popState(),fe.yytext=fe.yytext.slice(0,-8).trim(),29;case 58:case 59:return 7;case 60:return 14;case 61:return 47;case 62:return 22;case 63:return fe.yytext=fe.yytext.trim(),12;case 64:return 13;case 65:return 26;case 67:return"INVALID"}},rules:[/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,26,33,34,35,36,45,46,47,61,62,63,64,65],inclusive:!1},FLOATING_NOTE_ID:{rules:[54],inclusive:!1},FLOATING_NOTE:{rules:[51,52,53],inclusive:!1},NOTE_TEXT:{rules:[56,57],inclusive:!1},NOTE_ID:{rules:[55],inclusive:!1},NOTE:{rules:[48,49,50],inclusive:!1},acc_descr_multiline:{rules:[24,25],inclusive:!1},acc_descr:{rules:[22],inclusive:!1},acc_title:{rules:[20],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[39],inclusive:!1},STATE_STRING:{rules:[40,41],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,27,28,29,30,31,32,37,38,42,43,44],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,21,23,26,44,47,58,59,60,61,62,63,64,66,67],inclusive:!0}}};function Ve(){this.yy={}}return Wt.lexer=ye,Ve.prototype=Wt,Wt.Parser=Ve,new Ve}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(3069).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},9763:(d,b,h)=>{d=h.nmd(d);var m=function(){var f=function(at,ot,bt,zt){for(bt=bt||{},zt=at.length;zt--;bt[at[zt]]=ot);return bt},v=[1,2],_=[1,5],S=[6,9,11,17,18,20,22,23,24,26],M=[1,15],E=[1,16],D=[1,17],B=[1,18],z=[1,19],H=[1,20],J=[1,24],rt=[4,6,9,11,17,18,20,22,23,24,26],dt={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(at,ot,bt,zt,Tt,mt,Ct){var xt=mt.length-1;switch(Tt){case 1:return mt[xt-1];case 3:case 7:case 8:this.$=[];break;case 4:mt[xt-1].push(mt[xt]),this.$=mt[xt-1];break;case 5:case 6:this.$=mt[xt];break;case 11:zt.setDiagramTitle(mt[xt].substr(6)),this.$=mt[xt].substr(6);break;case 12:this.$=mt[xt].trim(),zt.setAccTitle(this.$);break;case 13:case 14:this.$=mt[xt].trim(),zt.setAccDescription(this.$);break;case 15:zt.addSection(mt[xt].substr(8)),this.$=mt[xt].substr(8);break;case 16:zt.addTask(mt[xt-1],mt[xt]),this.$="task";break;case 18:zt.parseDirective("%%{","open_directive");break;case 19:zt.parseDirective(mt[xt],"type_directive");break;case 20:mt[xt]=mt[xt].trim().replace(/'/g,'"'),zt.parseDirective(mt[xt],"arg_directive");break;case 21:zt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:v,7:3,12:4,26:_},{1:[3]},f(S,[2,3],{5:6}),{3:7,4:v,7:3,12:4,26:_},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:M,18:E,20:D,22:B,23:z,24:H,26:_},{1:[2,2]},{14:22,15:[1,23],29:J},f([15,29],[2,19]),f(S,[2,8],{1:[2,1]}),f(S,[2,4]),{7:21,10:25,12:4,17:M,18:E,20:D,22:B,23:z,24:H,26:_},f(S,[2,6]),f(S,[2,7]),f(S,[2,11]),{19:[1,26]},{21:[1,27]},f(S,[2,14]),f(S,[2,15]),{25:[1,28]},f(S,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},f(S,[2,5]),f(S,[2,12]),f(S,[2,13]),f(S,[2,16]),f(rt,[2,9]),{14:32,29:J},{29:[2,20]},{11:[1,33]},f(rt,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(at,ot){if(!ot.recoverable){var bt=new Error(at);throw bt.hash=ot,bt}this.trace(at)},parse:function(at){var ot=this,bt=[0],zt=[],Tt=[null],mt=[],Ct=this.table,xt="",gt=0,et=0,ft=0,q=2,wt=1,W=mt.slice.call(arguments,1),St=Object.create(this.lexer),Lt={yy:{}};for(var Wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Wt)&&(Lt.yy[Wt]=this.yy[Wt]);St.setInput(at,Lt.yy),Lt.yy.lexer=St,Lt.yy.parser=this,St.yylloc===void 0&&(St.yylloc={});var ye=St.yylloc;mt.push(ye);var Ve=St.options&&St.options.ranges;function ke(){var At;return typeof(At=zt.pop()||St.lex()||wt)!="number"&&(At instanceof Array&&(At=(zt=At).pop()),At=ot.symbols_[At]||At),At}typeof Lt.yy.parseError=="function"?this.parseError=Lt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var fe,xe,Me,Oe,ve,Sr,_e,Je,Dt,he={};;){if(Me=bt[bt.length-1],this.defaultActions[Me]?Oe=this.defaultActions[Me]:(fe==null&&(fe=ke()),Oe=Ct[Me]&&Ct[Me][fe]),Oe===void 0||!Oe.length||!Oe[0]){var re="";for(Sr in Dt=[],Ct[Me])this.terminals_[Sr]&&Sr>q&&Dt.push("'"+this.terminals_[Sr]+"'");re=St.showPosition?"Parse error on line "+(gt+1)+`:
`+St.showPosition()+`
Expecting `+Dt.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":"Parse error on line "+(gt+1)+": Unexpected "+(fe==wt?"end of input":"'"+(this.terminals_[fe]||fe)+"'"),this.parseError(re,{text:St.match,token:this.terminals_[fe]||fe,line:St.yylineno,loc:ye,expected:Dt})}if(Oe[0]instanceof Array&&Oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Me+", token: "+fe);switch(Oe[0]){case 1:bt.push(fe),Tt.push(St.yytext),mt.push(St.yylloc),bt.push(Oe[1]),fe=null,xe?(fe=xe,xe=null):(et=St.yyleng,xt=St.yytext,gt=St.yylineno,ye=St.yylloc,ft>0);break;case 2:if(_e=this.productions_[Oe[1]][1],he.$=Tt[Tt.length-_e],he._$={first_line:mt[mt.length-(_e||1)].first_line,last_line:mt[mt.length-1].last_line,first_column:mt[mt.length-(_e||1)].first_column,last_column:mt[mt.length-1].last_column},Ve&&(he._$.range=[mt[mt.length-(_e||1)].range[0],mt[mt.length-1].range[1]]),(ve=this.performAction.apply(he,[xt,et,gt,Lt.yy,Oe[1],Tt,mt].concat(W)))!==void 0)return ve;_e&&(bt=bt.slice(0,-1*_e*2),Tt=Tt.slice(0,-1*_e),mt=mt.slice(0,-1*_e)),bt.push(this.productions_[Oe[1]][0]),Tt.push(he.$),mt.push(he._$),Je=Ct[bt[bt.length-2]][bt[bt.length-1]],bt.push(Je);break;case 3:return!0}}return!0}},K={EOF:1,parseError:function(at,ot){if(!this.yy.parser)throw new Error(at);this.yy.parser.parseError(at,ot)},setInput:function(at,ot){return this.yy=ot||this.yy||{},this._input=at,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 at=this._input[0];return this.yytext+=at,this.yyleng++,this.offset++,this.match+=at,this.matched+=at,at.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),at},unput:function(at){var ot=at.length,bt=at.split(/(?:\r\n?|\n)/g);this._input=at+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ot),this.offset-=ot;var zt=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),bt.length-1&&(this.yylineno-=bt.length-1);var Tt=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:bt?(bt.length===zt.length?this.yylloc.first_column:0)+zt[zt.length-bt.length].length-bt[0].length:this.yylloc.first_column-ot},this.options.ranges&&(this.yylloc.range=[Tt[0],Tt[0]+this.yyleng-ot]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},less:function(at){this.unput(this.match.slice(at))},pastInput:function(){var at=this.matched.substr(0,this.matched.length-this.match.length);return(at.length>20?"...":"")+at.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var at=this.match;return at.length<20&&(at+=this._input.substr(0,20-at.length)),(at.substr(0,20)+(at.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var at=this.pastInput(),ot=new Array(at.length+1).join("-");return at+this.upcomingInput()+`
`+ot+"^"},test_match:function(at,ot){var bt,zt,Tt;if(this.options.backtrack_lexer&&(Tt={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&&(Tt.yylloc.range=this.yylloc.range.slice(0))),(zt=at[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=zt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:zt?zt[zt.length-1].length-zt[zt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+at[0].length},this.yytext+=at[0],this.match+=at[0],this.matches=at,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(at[0].length),this.matched+=at[0],bt=this.performAction.call(this,this.yy,this,ot,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),bt)return bt;if(this._backtrack){for(var mt in Tt)this[mt]=Tt[mt];return!1}return!1},next:function(){if(this.done)return this.EOF;var at,ot,bt,zt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Tt=this._currentRules(),mt=0;mt<Tt.length;mt++)if((bt=this._input.match(this.rules[Tt[mt]]))&&(!ot||bt[0].length>ot[0].length)){if(ot=bt,zt=mt,this.options.backtrack_lexer){if((at=this.test_match(bt,Tt[mt]))!==!1)return at;if(this._backtrack){ot=!1;continue}return!1}if(!this.options.flex)break}return ot?(at=this.test_match(ot,Tt[zt]))!==!1&&at: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(){return this.next()||this.lex()},begin:function(at){this.conditionStack.push(at)},popState:function(){return this.conditionStack.length-1>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(at){return(at=this.conditionStack.length-1-Math.abs(at||0))>=0?this.conditionStack[at]:"INITIAL"},pushState:function(at){this.begin(at)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(at,ot,bt,zt){switch(bt){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\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,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};function _t(){this.yy={}}return dt.lexer=K,_t.prototype=dt,dt.Parser=_t,new _t}();b.parser=m,b.Parser=m.Parser,b.parse=function(){return m.parse.apply(m,arguments)},b.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var v=h(9143).readFileSync(h(6470).normalize(f[1]),"utf8");return b.parser.parse(v)},h.c[h.s]===d&&b.main(process.argv.slice(1))},7967:(d,b)=>{b.N=void 0;var h=/^([^\w]*)(javascript|data|vbscript)/im,m=/&#(\w+)(^\w|;)?/g,f=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,v=/^([^:]+):/gm,_=[".","/"];b.N=function(S){var M,E=(M=S||"",M.replace(m,function(z,H){return String.fromCharCode(H)})).replace(f,"").trim();if(!E)return"about:blank";if(function(z){return _.indexOf(z[0])>-1}(E))return E;var D=E.match(v);if(!D)return E;var B=D[0];return h.test(B)?"about:blank":E}},3841:d=>{d.exports=function(b,h){return b.intersect(h)}},6359:(d,b,h)=>{h.d(b,{Z:()=>Mr});var m=h(1941),f=h.n(m),v={debug:1,info:2,warn:3,error:4,fatal:5},_={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},S=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(l)&&(l=l.toLowerCase(),v[l]!==void 0&&(l=v[l])),_.trace=function(){},_.debug=function(){},_.info=function(){},_.warn=function(){},_.error=function(){},_.fatal=function(){},l<=v.fatal&&(_.fatal=console.error?console.error.bind(console,M("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",M("FATAL"))),l<=v.error&&(_.error=console.error?console.error.bind(console,M("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",M("ERROR"))),l<=v.warn&&(_.warn=console.warn?console.warn.bind(console,M("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",M("WARN"))),l<=v.info&&(_.info=console.info?console.info.bind(console,M("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",M("INFO"))),l<=v.debug&&(_.debug=console.debug?console.debug.bind(console,M("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",M("DEBUG")))},M=function(l){var o=f()().format("ss.SSS");return"%c".concat(o," : ").concat(l," : ")},E=h(7543),D="comm",B="rule",z="decl",H=Math.abs,J=String.fromCharCode;function rt(l){return l.trim()}function dt(l,o,y){return l.replace(o,y)}function K(l,o){return l.indexOf(o)}function _t(l,o){return 0|l.charCodeAt(o)}function at(l,o,y){return l.slice(o,y)}function ot(l){return l.length}function bt(l){return l.length}function zt(l,o){return o.push(l),l}function Tt(l,o){for(var y="",k=bt(l),A=0;A<k;A++)y+=o(l[A],A,l,o)||"";return y}function mt(l,o,y,k){switch(l.type){case"@import":case z:return l.return=l.return||l.value;case D:return"";case"@keyframes":return l.return=l.value+"{"+Tt(l.children,k)+"}";case B:l.value=l.props.join(",")}return ot(y=Tt(l.children,k))?l.return=l.value+"{"+y+"}":""}var Ct=1,xt=1,gt=0,et=0,ft=0,q="";function wt(l,o,y,k,A,N,L){return{value:l,root:o,parent:y,type:k,props:A,children:N,line:Ct,column:xt,length:L,return:""}}function W(){return ft=et>0?_t(q,--et):0,xt--,ft===10&&(xt=1,Ct--),ft}function St(){return ft=et<gt?_t(q,et++):0,xt++,ft===10&&(xt=1,Ct++),ft}function Lt(){return _t(q,et)}function Wt(){return et}function ye(l,o){return at(q,l,o)}function Ve(l){switch(l){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ke(l){return rt(ye(et-1,Me(l===91?l+2:l===40?l+1:l)))}function fe(l){for(;(ft=Lt())&&ft<33;)St();return Ve(l)>2||Ve(ft)>3?"":" "}function xe(l,o){for(;--o&&St()&&!(ft<48||ft>102||ft>57&&ft<65||ft>70&&ft<97););return ye(l,Wt()+(o<6&&Lt()==32&&St()==32))}function Me(l){for(;St();)switch(ft){case l:return et;case 34:case 39:l!==34&&l!==39&&Me(ft);break;case 40:l===41&&Me(l);break;case 92:St()}return et}function Oe(l,o){for(;St()&&l+ft!==57&&(l+ft!==84||Lt()!==47););return"/*"+ye(o,et-1)+"*"+J(l===47?l:St())}function ve(l){for(;!Ve(Lt());)St();return ye(l,et)}function Sr(l){return function(o){return q="",o}(_e("",null,null,null,[""],l=function(o){return Ct=xt=1,gt=ot(q=o),et=0,[]}(l),0,[0],l))}function _e(l,o,y,k,A,N,L,O,P){for(var Y=0,Z=0,nt=L,lt=0,ct=0,Mt=0,It=1,Ut=1,Ht=1,Nt=0,Pt="",Ot=A,Qt=N,De=k,we=Pt;Ut;)switch(Mt=Nt,Nt=St()){case 40:if(Mt!=108&&we.charCodeAt(nt-1)==58){K(we+=dt(ke(Nt),"&","&\f"),"&\f")!=-1&&(Ht=-1);break}case 34:case 39:case 91:we+=ke(Nt);break;case 9:case 10:case 13:case 32:we+=fe(Mt);break;case 92:we+=xe(Wt()-1,7);continue;case 47:switch(Lt()){case 42:case 47:zt(Dt(Oe(St(),Wt()),o,y),P);break;default:we+="/"}break;case 123*It:O[Y++]=ot(we)*Ht;case 125*It:case 59:case 0:switch(Nt){case 0:case 125:Ut=0;case 59+Z:ct>0&&ot(we)-nt&&zt(ct>32?he(we+";",k,y,nt-1):he(dt(we," ","")+";",k,y,nt-2),P);break;case 59:we+=";";default:if(zt(De=Je(we,o,y,Y,Z,A,O,Pt,Ot=[],Qt=[],nt),N),Nt===123)if(Z===0)_e(we,o,De,De,Ot,N,nt,O,Qt);else switch(lt){case 100:case 109:case 115:_e(l,De,De,k&&zt(Je(l,De,De,0,0,A,O,Pt,A,Ot=[],nt),Qt),A,Qt,nt,O,k?Ot:Qt);break;default:_e(we,De,De,De,[""],Qt,0,O,Qt)}}Y=Z=ct=0,It=Ht=1,Pt=we="",nt=L;break;case 58:nt=1+ot(we),ct=Mt;default:if(It<1){if(Nt==123)--It;else if(Nt==125&&It++==0&&W()==125)continue}switch(we+=J(Nt),Nt*It){case 38:Ht=Z>0?1:(we+="\f",-1);break;case 44:O[Y++]=(ot(we)-1)*Ht,Ht=1;break;case 64:Lt()===45&&(we+=ke(St())),lt=Lt(),Z=nt=ot(Pt=we+=ve(Wt())),Nt++;break;case 45:Mt===45&&ot(we)==2&&(It=0)}}return N}function Je(l,o,y,k,A,N,L,O,P,Y,Z){for(var nt=A-1,lt=A===0?N:[""],ct=bt(lt),Mt=0,It=0,Ut=0;Mt<k;++Mt)for(var Ht=0,Nt=at(l,nt+1,nt=H(It=L[Mt])),Pt=l;Ht<ct;++Ht)(Pt=rt(It>0?lt[Ht]+" "+Nt:dt(Nt,/&\f/g,lt[Ht])))&&(P[Ut++]=Pt);return wt(l,o,y,A===0?B:O,P,Y,Z)}function Dt(l,o,y){return wt(l,o,y,D,J(ft),at(l,2,-2),0)}function he(l,o,y,k){return wt(l,o,y,z,at(l,0,k),at(l,k+1,-1),k)}const re="9.1.6";function At(l){return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},At(l)}const Ee=function l(o,y,k){var A=Object.assign({depth:2,clobber:!1},k),N=A.depth,L=A.clobber;return Array.isArray(y)&&!Array.isArray(o)?(y.forEach(function(O){return l(o,O,k)}),o):Array.isArray(y)&&Array.isArray(o)?(y.forEach(function(O){o.indexOf(O)===-1&&o.push(O)}),o):o===void 0||N<=0?o!=null&&At(o)==="object"&&At(y)==="object"?Object.assign(o,y):y:(y!==void 0&&At(o)==="object"&&At(y)==="object"&&Object.keys(y).forEach(function(O){At(y[O])!=="object"||o[O]!==void 0&&At(o[O])!=="object"?(L||At(o[O])!=="object"&&At(y[O])!=="object")&&(o[O]=y[O]):(o[O]===void 0&&(o[O]=Array.isArray(y[O])?[]:{}),o[O]=l(o[O],y[O],{depth:N-1,clobber:L}))}),o)},Q={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:l=>l>=255?255:l<0?0:l,g:l=>l>=255?255:l<0?0:l,b:l=>l>=255?255:l<0?0:l,h:l=>l%360,s:l=>l>=100?100:l<0?0:l,l:l=>l>=100?100:l<0?0:l,a:l=>l>=1?1:l<0?0:l},toLinear:l=>{const o=l/255;return l>.03928?Math.pow((o+.055)/1.055,2.4):o/12.92},hue2rgb:(l,o,y)=>(y<0&&(y+=1),y>1&&(y-=1),y<1/6?l+6*(o-l)*y:y<.5?o:y<2/3?l+(o-l)*(2/3-y)*6:l),hsl2rgb:({h:l,s:o,l:y},k)=>{if(!o)return 2.55*y;l/=360,o/=100;const A=(y/=100)<.5?y*(1+o):y+o-y*o,N=2*y-A;switch(k){case"r":return 255*Q.hue2rgb(N,A,l+1/3);case"g":return 255*Q.hue2rgb(N,A,l);case"b":return 255*Q.hue2rgb(N,A,l-1/3)}},rgb2hsl:({r:l,g:o,b:y},k)=>{l/=255,o/=255,y/=255;const A=Math.max(l,o,y),N=Math.min(l,o,y),L=(A+N)/2;if(k==="l")return 100*L;if(A===N)return 0;const O=A-N;if(k==="s")return 100*(L>.5?O/(2-A-N):O/(A+N));switch(A){case l:return 60*((o-y)/O+(o<y?6:0));case o:return 60*((y-l)/O+2);case y:return 60*((l-o)/O+4);default:return-1}}},ce={channel:Q,lang:{clamp:(l,o,y)=>o>y?Math.min(o,Math.max(y,l)):Math.min(y,Math.max(o,l)),round:l=>Math.round(1e10*l)/1e10},unit:{dec2hex:l=>{const o=Math.round(l).toString(16);return o.length>1?o:`0${o}`}}},st={};for(let l=0;l<=255;l++)st[l]=ce.unit.dec2hex(l);const Te=new class{constructor(l,o){this.color=o,this.changed=!1,this.data=l,this.type=new class{constructor(){this.type=0}get(){return this.type}set(y){if(this.type&&this.type!==y)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=y}reset(){this.type=0}is(y){return this.type===y}}}set(l,o){return this.color=o,this.changed=!1,this.data=l,this.type.type=0,this}_ensureHSL(){const l=this.data,{h:o,s:y,l:k}=l;o===void 0&&(l.h=ce.channel.rgb2hsl(l,"h")),y===void 0&&(l.s=ce.channel.rgb2hsl(l,"s")),k===void 0&&(l.l=ce.channel.rgb2hsl(l,"l"))}_ensureRGB(){const l=this.data,{r:o,g:y,b:k}=l;o===void 0&&(l.r=ce.channel.hsl2rgb(l,"r")),y===void 0&&(l.g=ce.channel.hsl2rgb(l,"g")),k===void 0&&(l.b=ce.channel.hsl2rgb(l,"b"))}get r(){const l=this.data,o=l.r;return this.type.is(2)||o===void 0?(this._ensureHSL(),ce.channel.hsl2rgb(l,"r")):o}get g(){const l=this.data,o=l.g;return this.type.is(2)||o===void 0?(this._ensureHSL(),ce.channel.hsl2rgb(l,"g")):o}get b(){const l=this.data,o=l.b;return this.type.is(2)||o===void 0?(this._ensureHSL(),ce.channel.hsl2rgb(l,"b")):o}get h(){const l=this.data,o=l.h;return this.type.is(1)||o===void 0?(this._ensureRGB(),ce.channel.rgb2hsl(l,"h")):o}get s(){const l=this.data,o=l.s;return this.type.is(1)||o===void 0?(this._ensureRGB(),ce.channel.rgb2hsl(l,"s")):o}get l(){const l=this.data,o=l.l;return this.type.is(1)||o===void 0?(this._ensureRGB(),ce.channel.rgb2hsl(l,"l")):o}get a(){return this.data.a}set r(l){this.type.set(1),this.changed=!0,this.data.r=l}set g(l){this.type.set(1),this.changed=!0,this.data.g=l}set b(l){this.type.set(1),this.changed=!0,this.data.b=l}set h(l){this.type.set(2),this.changed=!0,this.data.h=l}set s(l){this.type.set(2),this.changed=!0,this.data.s=l}set l(l){this.type.set(2),this.changed=!0,this.data.l=l}set a(l){this.changed=!0,this.data.a=l}}({r:0,g:0,b:0,a:0},"transparent"),ge={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:l=>{if(l.charCodeAt(0)!==35)return;const o=l.match(ge.re);if(!o)return;const y=o[1],k=parseInt(y,16),A=y.length,N=A%4==0,L=A>4,O=L?1:17,P=L?8:4,Y=N?0:-1,Z=L?255:15;return Te.set({r:(k>>P*(Y+3)&Z)*O,g:(k>>P*(Y+2)&Z)*O,b:(k>>P*(Y+1)&Z)*O,a:N?(k&Z)*O/255:1},l)},stringify:l=>{const{r:o,g:y,b:k,a:A}=l;return A<1?`#${st[Math.round(o)]}${st[Math.round(y)]}${st[Math.round(k)]}${st[Math.round(255*A)]}`:`#${st[Math.round(o)]}${st[Math.round(y)]}${st[Math.round(k)]}`}},Pe=ge,ar={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:l=>{const o=l.match(ar.hueRe);if(o){const[,y,k]=o;switch(k){case"grad":return ce.channel.clamp.h(.9*parseFloat(y));case"rad":return ce.channel.clamp.h(180*parseFloat(y)/Math.PI);case"turn":return ce.channel.clamp.h(360*parseFloat(y))}}return ce.channel.clamp.h(parseFloat(l))},parse:l=>{const o=l.charCodeAt(0);if(o!==104&&o!==72)return;const y=l.match(ar.re);if(!y)return;const[,k,A,N,L,O]=y;return Te.set({h:ar._hue2deg(k),s:ce.channel.clamp.s(parseFloat(A)),l:ce.channel.clamp.l(parseFloat(N)),a:L?ce.channel.clamp.a(O?parseFloat(L)/100:parseFloat(L)):1},l)},stringify:l=>{const{h:o,s:y,l:k,a:A}=l;return A<1?`hsla(${ce.lang.round(o)}, ${ce.lang.round(y)}%, ${ce.lang.round(k)}%, ${A})`:`hsl(${ce.lang.round(o)}, ${ce.lang.round(y)}%, ${ce.lang.round(k)}%)`}},Ze=ar,lr={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:l=>{l=l.toLowerCase();const o=lr.colors[l];if(o)return Pe.parse(o)},stringify:l=>{const o=Pe.stringify(l);for(const y in lr.colors)if(lr.colors[y]===o)return y}},Ne=lr,Re={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:l=>{const o=l.charCodeAt(0);if(o!==114&&o!==82)return;const y=l.match(Re.re);if(!y)return;const[,k,A,N,L,O,P,Y,Z]=y;return Te.set({r:ce.channel.clamp.r(A?2.55*parseFloat(k):parseFloat(k)),g:ce.channel.clamp.g(L?2.55*parseFloat(N):parseFloat(N)),b:ce.channel.clamp.b(P?2.55*parseFloat(O):parseFloat(O)),a:Y?ce.channel.clamp.a(Z?parseFloat(Y)/100:parseFloat(Y)):1},l)},stringify:l=>{const{r:o,g:y,b:k,a:A}=l;return A<1?`rgba(${ce.lang.round(o)}, ${ce.lang.round(y)}, ${ce.lang.round(k)}, ${ce.lang.round(A)})`:`rgb(${ce.lang.round(o)}, ${ce.lang.round(y)}, ${ce.lang.round(k)})`}},ze=Re,Fe={format:{keyword:Ne,hex:Pe,rgb:ze,rgba:ze,hsl:Ze,hsla:Ze},parse:l=>{if(typeof l!="string")return l;const o=Pe.parse(l)||ze.parse(l)||Ze.parse(l)||Ne.parse(l);if(o)return o;throw new Error(`Unsupported color format: "${l}"`)},stringify:l=>!l.changed&&l.color?l.color:l.type.is(2)||l.data.r===void 0?Ze.stringify(l):l.a<1||!Number.isInteger(l.r)||!Number.isInteger(l.g)||!Number.isInteger(l.b)?ze.stringify(l):Pe.stringify(l)},be=(l,o)=>{const y=Fe.parse(l);for(const k in o)y[k]=ce.channel.clamp[k](o[k]);return Fe.stringify(y)},ae=(l,o)=>{const y=Fe.parse(l),k={};for(const A in o)o[A]&&(k[A]=y[A]+o[A]);return be(l,k)},br=(l,o,y=0,k=1)=>{if(typeof l!="number")return be(l,{a:o});const A=Te.set({r:ce.channel.clamp.r(l),g:ce.channel.clamp.g(o),b:ce.channel.clamp.b(y),a:ce.channel.clamp.a(k)});return Fe.stringify(A)},qe=(l,o=100)=>{const y=Fe.parse(l);return y.r=255-y.r,y.g=255-y.g,y.b=255-y.b,((k,A,N=50)=>{const{r:L,g:O,b:P,a:Y}=Fe.parse(k),{r:Z,g:nt,b:lt,a:ct}=Fe.parse(A),Mt=N/100,It=2*Mt-1,Ut=Y-ct,Ht=((It*Ut==-1?It:(It+Ut)/(1+It*Ut))+1)/2,Nt=1-Ht;return br(L*Ht+Z*Nt,O*Ht+nt*Nt,P*Ht+lt*Nt,Y*Mt+ct*(1-Mt))})(y,l,o)},sr=(l,o,y)=>{const k=Fe.parse(l),A=k[o],N=ce.channel.clamp[o](A+y);return A!==N&&(k[o]=N),Fe.stringify(k)},$e=(l,o)=>sr(l,"l",-o),Er=(l,o)=>sr(l,"l",o);var Jr=function(l,o){return ae(l,o?{s:-40,l:10}:{s:-40,l:-10})};function Nr(l){return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Nr(l)}function Br(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}var Ie=function(){function l(){(function(k,A){if(!(k instanceof A))throw new TypeError("Cannot call a class as a function")})(this,l),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var o,y;return o=l,y=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||ae(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ae(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Jr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Jr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Jr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Jr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||qe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qe(this.tertiaryColor),this.lineColor=this.lineColor||qe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$e(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$e(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qe(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Er(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||ae(this.primaryColor,{h:64}),this.fillType3=this.fillType3||ae(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||ae(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||ae(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||ae(this.primaryColor,{h:128}),this.fillType7=this.fillType7||ae(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||ae(this.primaryColor,{l:-10}),this.pie5=this.pie5||ae(this.secondaryColor,{l:-10}),this.pie6=this.pie6||ae(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||ae(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||ae(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||ae(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||ae(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||ae(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||ae(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$e(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||ae(this.primaryColor,{h:-30}),this.git4=this.git4||ae(this.primaryColor,{h:-60}),this.git5=this.git5||ae(this.primaryColor,{h:-90}),this.git6=this.git6||ae(this.primaryColor,{h:60}),this.git7=this.git7||ae(this.primaryColor,{h:120}),this.darkMode?(this.git0=Er(this.git0,25),this.git1=Er(this.git1,25),this.git2=Er(this.git2,25),this.git3=Er(this.git3,25),this.git4=Er(this.git4,25),this.git5=Er(this.git5,25),this.git6=Er(this.git6,25),this.git7=Er(this.git7,25)):(this.git0=$e(this.git0,25),this.git1=$e(this.git1,25),this.git2=$e(this.git2,25),this.git3=$e(this.git3,25),this.git4=$e(this.git4,25),this.git5=$e(this.git5,25),this.git6=$e(this.git6,25),this.git7=$e(this.git7,25)),this.gitInv0=this.gitInv0||qe(this.git0),this.gitInv1=this.gitInv1||qe(this.git1),this.gitInv2=this.gitInv2||qe(this.git2),this.gitInv3=this.gitInv3||qe(this.git3),this.gitInv4=this.gitInv4||qe(this.git4),this.gitInv5=this.gitInv5||qe(this.git5),this.gitInv6=this.gitInv6||qe(this.git6),this.gitInv7=this.gitInv7||qe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(k){var A=this;if(Nr(k)==="object"){var N=Object.keys(k);N.forEach(function(L){A[L]=k[L]}),this.updateColors(),N.forEach(function(L){A[L]=k[L]})}else this.updateColors()}}],y&&Br(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();function Qe(l){return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Qe(l)}function rr(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}var Se=function(){function l(){(function(k,A){if(!(k instanceof A))throw new TypeError("Cannot call a class as a function")})(this,l),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Er(this.primaryColor,16),this.tertiaryColor=ae(this.primaryColor,{h:-160}),this.primaryBorderColor=qe(this.background),this.secondaryBorderColor=Jr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jr(this.tertiaryColor,this.darkMode),this.primaryTextColor=qe(this.primaryColor),this.secondaryTextColor=qe(this.secondaryColor),this.tertiaryTextColor=qe(this.tertiaryColor),this.lineColor=qe(this.background),this.textColor=qe(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Er(qe("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=br(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=$e("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=br(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=br(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var o,y;return o=l,y=[{key:"updateColors",value:function(){this.secondBkg=Er(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Er(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Er(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=ae(this.primaryColor,{h:64}),this.fillType3=ae(this.secondaryColor,{h:64}),this.fillType4=ae(this.primaryColor,{h:-64}),this.fillType5=ae(this.secondaryColor,{h:-64}),this.fillType6=ae(this.primaryColor,{h:128}),this.fillType7=ae(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$e(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Er(this.secondaryColor,20),this.git1=Er(this.pie2||this.secondaryColor,20),this.git2=Er(this.pie3||this.tertiaryColor,20),this.git3=Er(this.pie4||ae(this.primaryColor,{h:-30}),20),this.git4=Er(this.pie5||ae(this.primaryColor,{h:-60}),20),this.git5=Er(this.pie6||ae(this.primaryColor,{h:-90}),10),this.git6=Er(this.pie7||ae(this.primaryColor,{h:60}),10),this.git7=Er(this.pie8||ae(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||qe(this.git0),this.gitInv1=this.gitInv1||qe(this.git1),this.gitInv2=this.gitInv2||qe(this.git2),this.gitInv3=this.gitInv3||qe(this.git3),this.gitInv4=this.gitInv4||qe(this.git4),this.gitInv5=this.gitInv5||qe(this.git5),this.gitInv6=this.gitInv6||qe(this.git6),this.gitInv7=this.gitInv7||qe(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(k){var A=this;if(Qe(k)==="object"){var N=Object.keys(k);N.forEach(function(L){A[L]=k[L]}),this.updateColors(),N.forEach(function(L){A[L]=k[L]})}else this.updateColors()}}],y&&rr(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();function Ar(l){return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ar(l)}function Rt(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}var vn=function(){function l(){(function(k,A){if(!(k instanceof A))throw new TypeError("Cannot call a class as a function")})(this,l),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=ae(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=ae(this.primaryColor,{h:-160}),this.primaryBorderColor=Jr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Jr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jr(this.tertiaryColor,this.darkMode),this.primaryTextColor=qe(this.primaryColor),this.secondaryTextColor=qe(this.secondaryColor),this.tertiaryTextColor=qe(this.tertiaryColor),this.lineColor=qe(this.background),this.textColor=qe(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=br(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var o,y;return o=l,y=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=Er(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=ae(this.primaryColor,{h:64}),this.fillType3=ae(this.secondaryColor,{h:64}),this.fillType4=ae(this.primaryColor,{h:-64}),this.fillType5=ae(this.secondaryColor,{h:-64}),this.fillType6=ae(this.primaryColor,{h:128}),this.fillType7=ae(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||ae(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||ae(this.primaryColor,{l:-10}),this.pie5=this.pie5||ae(this.secondaryColor,{l:-30}),this.pie6=this.pie6||ae(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||ae(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||ae(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||ae(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||ae(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||ae(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||ae(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||ae(this.primaryColor,{h:-30}),this.git4=this.git4||ae(this.primaryColor,{h:-60}),this.git5=this.git5||ae(this.primaryColor,{h:-90}),this.git6=this.git6||ae(this.primaryColor,{h:60}),this.git7=this.git7||ae(this.primaryColor,{h:120}),this.darkMode?(this.git0=Er(this.git0,25),this.git1=Er(this.git1,25),this.git2=Er(this.git2,25),this.git3=Er(this.git3,25),this.git4=Er(this.git4,25),this.git5=Er(this.git5,25),this.git6=Er(this.git6,25),this.git7=Er(this.git7,25)):(this.git0=$e(this.git0,25),this.git1=$e(this.git1,25),this.git2=$e(this.git2,25),this.git3=$e(this.git3,25),this.git4=$e(this.git4,25),this.git5=$e(this.git5,25),this.git6=$e(this.git6,25),this.git7=$e(this.git7,25)),this.gitInv0=this.gitInv0||$e(qe(this.git0),25),this.gitInv1=this.gitInv1||qe(this.git1),this.gitInv2=this.gitInv2||qe(this.git2),this.gitInv3=this.gitInv3||qe(this.git3),this.gitInv4=this.gitInv4||qe(this.git4),this.gitInv5=this.gitInv5||qe(this.git5),this.gitInv6=this.gitInv6||qe(this.git6),this.gitInv7=this.gitInv7||qe(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||qe(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||qe(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(k){var A=this;if(Ar(k)==="object"){var N=Object.keys(k);N.forEach(function(L){A[L]=k[L]}),this.updateColors(),N.forEach(function(L){A[L]=k[L]})}else this.updateColors()}}],y&&Rt(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();function Gt(l){return Gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Gt(l)}function qr(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}var Yr=function(){function l(){(function(k,A){if(!(k instanceof A))throw new TypeError("Cannot call a class as a function")})(this,l),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Er("#cde498",10),this.primaryBorderColor=Jr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Jr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jr(this.tertiaryColor,this.darkMode),this.primaryTextColor=qe(this.primaryColor),this.secondaryTextColor=qe(this.secondaryColor),this.tertiaryTextColor=qe(this.primaryColor),this.lineColor=qe(this.background),this.textColor=qe(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var o,y;return o=l,y=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=$e(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=ae(this.primaryColor,{h:64}),this.fillType3=ae(this.secondaryColor,{h:64}),this.fillType4=ae(this.primaryColor,{h:-64}),this.fillType5=ae(this.secondaryColor,{h:-64}),this.fillType6=ae(this.primaryColor,{h:128}),this.fillType7=ae(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||ae(this.primaryColor,{l:-30}),this.pie5=this.pie5||ae(this.secondaryColor,{l:-30}),this.pie6=this.pie6||ae(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||ae(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||ae(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||ae(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||ae(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||ae(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||ae(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||ae(this.primaryColor,{h:-30}),this.git4=this.git4||ae(this.primaryColor,{h:-60}),this.git5=this.git5||ae(this.primaryColor,{h:-90}),this.git6=this.git6||ae(this.primaryColor,{h:60}),this.git7=this.git7||ae(this.primaryColor,{h:120}),this.darkMode?(this.git0=Er(this.git0,25),this.git1=Er(this.git1,25),this.git2=Er(this.git2,25),this.git3=Er(this.git3,25),this.git4=Er(this.git4,25),this.git5=Er(this.git5,25),this.git6=Er(this.git6,25),this.git7=Er(this.git7,25)):(this.git0=$e(this.git0,25),this.git1=$e(this.git1,25),this.git2=$e(this.git2,25),this.git3=$e(this.git3,25),this.git4=$e(this.git4,25),this.git5=$e(this.git5,25),this.git6=$e(this.git6,25),this.git7=$e(this.git7,25)),this.gitInv0=this.gitInv0||qe(this.git0),this.gitInv1=this.gitInv1||qe(this.git1),this.gitInv2=this.gitInv2||qe(this.git2),this.gitInv3=this.gitInv3||qe(this.git3),this.gitInv4=this.gitInv4||qe(this.git4),this.gitInv5=this.gitInv5||qe(this.git5),this.gitInv6=this.gitInv6||qe(this.git6),this.gitInv7=this.gitInv7||qe(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(k){var A=this;if(Gt(k)==="object"){var N=Object.keys(k);N.forEach(function(L){A[L]=k[L]}),this.updateColors(),N.forEach(function(L){A[L]=k[L]})}else this.updateColors()}}],y&&qr(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();function Gr(l){return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Gr(l)}function Dr(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}var Vr=function(){function l(){(function(k,A){if(!(k instanceof A))throw new TypeError("Cannot call a class as a function")})(this,l),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Er(this.contrast,55),this.background="#ffffff",this.tertiaryColor=ae(this.primaryColor,{h:-160}),this.primaryBorderColor=Jr(this.primaryColor,this.darkMode),this.secondaryBorderColor=Jr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jr(this.tertiaryColor,this.darkMode),this.primaryTextColor=qe(this.primaryColor),this.secondaryTextColor=qe(this.secondaryColor),this.tertiaryTextColor=qe(this.tertiaryColor),this.lineColor=qe(this.background),this.textColor=qe(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var o,y;return o=l,y=[{key:"updateColors",value:function(){this.secondBkg=Er(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=Er(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=Er(this.contrast,30),this.sectionBkgColor2=Er(this.contrast,30),this.taskBorderColor=$e(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Er(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=$e(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=ae(this.primaryColor,{h:64}),this.fillType3=ae(this.secondaryColor,{h:64}),this.fillType4=ae(this.primaryColor,{h:-64}),this.fillType5=ae(this.secondaryColor,{h:-64}),this.fillType6=ae(this.primaryColor,{h:128}),this.fillType7=ae(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=$e(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||ae(this.primaryColor,{h:-30}),this.git4=this.pie5||ae(this.primaryColor,{h:-60}),this.git5=this.pie6||ae(this.primaryColor,{h:-90}),this.git6=this.pie7||ae(this.primaryColor,{h:60}),this.git7=this.pie8||ae(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||qe(this.git0),this.gitInv1=this.gitInv1||qe(this.git1),this.gitInv2=this.gitInv2||qe(this.git2),this.gitInv3=this.gitInv3||qe(this.git3),this.gitInv4=this.gitInv4||qe(this.git4),this.gitInv5=this.gitInv5||qe(this.git5),this.gitInv6=this.gitInv6||qe(this.git6),this.gitInv7=this.gitInv7||qe(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(k){var A=this;if(Gr(k)==="object"){var N=Object.keys(k);N.forEach(function(L){A[L]=k[L]}),this.updateColors(),N.forEach(function(L){A[L]=k[L]})}else this.updateColors()}}],y&&Dr(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();const zr={base:{getThemeVariables:function(l){var o=new Ie;return o.calculate(l),o}},dark:{getThemeVariables:function(l){var o=new Se;return o.calculate(l),o}},default:{getThemeVariables:function(l){var o=new vn;return o.calculate(l),o}},forest:{getThemeVariables:function(l){var o=new Yr;return o.calculate(l),o}},neutral:{getThemeVariables:function(l){var o=new Vr;return o.calculate(l),o}}};function Ir(l){return function(o){if(Array.isArray(o))return Ur(o)}(l)||function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}(l)||function(o,y){if(o){if(typeof o=="string")return Ur(o,y);var k=Object.prototype.toString.call(o).slice(8,-1);return k==="Object"&&o.constructor&&(k=o.constructor.name),k==="Map"||k==="Set"?Array.from(o):k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k)?Ur(o,y):void 0}}(l)||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.`)}()}function Ur(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}function jr(l){return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},jr(l)}var $r={theme:"default",themeVariables:zr.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"}};$r.class.arrowMarkerAbsolute=$r.arrowMarkerAbsolute,$r.gitGraph.arrowMarkerAbsolute=$r.arrowMarkerAbsolute;var ga=function l(o){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(o).reduce(function(k,A){return Array.isArray(o[A])?k:jr(o[A])==="object"&&o[A]!==null?[].concat(Ir(k),[y+A],Ir(l(o[A],""))):[].concat(Ir(k),[y+A])},[])}($r,"");const Mn=$r;function An(l){return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},An(l)}var Lr,ui=Object.freeze(Mn),Fr=Ee({},ui),xn=[],Nn=Ee({},ui),bn=function(l,o){for(var y=Ee({},l),k={},A=0;A<o.length;A++){var N=o[A];In(N),k=Ee(k,N)}if(y=Ee(y,k),k.theme&&zr[k.theme]){var L=Ee({},Lr),O=Ee(L.themeVariables||{},k.themeVariables);y.themeVariables=zr[y.theme].getThemeVariables(O)}return Nn=y,y},Xn=function(){return Ee({},Fr)},Bt=function(){return Ee({},Nn)},In=function l(o){Object.keys(Fr.secure).forEach(function(y){o[Fr.secure[y]]!==void 0&&(_.debug("Denied attempt to modify a secure key ".concat(Fr.secure[y]),o[Fr.secure[y]]),delete o[Fr.secure[y]])}),Object.keys(o).forEach(function(y){y.indexOf("__")===0&&delete o[y]}),Object.keys(o).forEach(function(y){typeof o[y]=="string"&&(o[y].indexOf("<")>-1||o[y].indexOf(">")>-1||o[y].indexOf("url(data:")>-1)&&delete o[y],An(o[y])==="object"&&l(o[y])})},On=function(l){l.fontFamily&&(l.themeVariables&&l.themeVariables.fontFamily||(l.themeVariables={fontFamily:l.fontFamily})),xn.push(l),bn(Fr,xn)},Zr=function(){bn(Fr,xn=[])},ei=h(7856),Hn=h.n(ei),Bn=function(l){var o=l.replace(/\\u[\dA-F]{4}/gi,function(y){return String.fromCharCode(parseInt(y.replace(/\\u/g,""),16))});return o=(o=(o=o.replace(/\\x([0-9a-f]{2})/gi,function(y,k){return String.fromCharCode(parseInt(k,16))})).replace(/\\[\d\d\d]{3}/gi,function(y){return String.fromCharCode(parseInt(y.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(y){return String.fromCharCode(parseInt(y.replace(/\\/g,""),8))})},ri=function(l){for(var o="",y=0;y>=0;){if(!((y=l.indexOf("<script"))>=0)){o+=l,y=-1;break}o+=l.substr(0,y),(y=(l=l.substr(y+1)).indexOf("<\/script>"))>=0&&(y+=9,l=l.substr(y))}var k=Bn(o);return(k=(k=(k=(k=k.replaceAll(/script>/gi,"#")).replaceAll(/javascript:/gi,"#")).replaceAll(/javascript&colon/gi,"#")).replaceAll(/onerror=/gi,"onerror:")).replaceAll(/<iframe/gi,"")},Ca=function(l,o){var y=l,k=!0;if(!o.flowchart||o.flowchart.htmlLabels!==!1&&o.flowchart.htmlLabels!=="false"||(k=!1),k){var A=o.securityLevel;A==="antiscript"||A==="strict"?y=ri(y):A!=="loose"&&(y=(y=(y=Ai(y)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),y=Ri(y))}return y},dn=function(l,o){return l&&(o.dompurifyConfig?Hn().sanitize(Ca(l,o),o.dompurifyConfig):Hn().sanitize(Ca(l,o)))},Si=/<br\s*\/?>/gi,Ri=function(l){return l.replace(/#br#/g,"<br/>")},Ai=function(l){return l.replace(Si,"#br#")},dr=function(l){return l!=="false"&&l!==!1};const yr={getRows:function(l){if(!l)return 1;var o=Ai(l);return(o=o.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:dn,sanitizeTextOrArray:function(l,o){return typeof l=="string"?dn(l,o):l.flat().map(function(y){return dn(y,o)})},hasBreaks:function(l){return Si.test(l)},splitBreaks:function(l){return l.split(Si)},lineBreakRegex:Si,removeScript:ri,getUrl:function(l){var o="";return l&&(o=(o=(o=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),o},evaluate:dr,removeEscapes:Bn};var Xr="",nr="",ln="",Zt=function(l){return dn(l,Bt())},Un=function(){Xr="",ln="",nr=""},te=function(l){Xr=Zt(l).replace(/^\s+/g,"")},wn=function(){return Xr||nr},oi=function(l){ln=Zt(l).replace(/\n\s+/g,`
`)},hi=function(){return ln},Na=function(l){nr=Zt(l)},Bi=function(){return nr};function wr(l,o){return function(y){if(Array.isArray(y))return y}(l)||function(y,k){var A=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(A!=null){var N,L,O=[],P=!0,Y=!1;try{for(A=A.call(y);!(P=(N=A.next()).done)&&(O.push(N.value),!k||O.length!==k);P=!0);}catch(Z){Y=!0,L=Z}finally{try{P||A.return==null||A.return()}finally{if(Y)throw L}}return O}}(l,o)||function(y,k){if(y){if(typeof y=="string")return Yn(y,k);var A=Object.prototype.toString.call(y).slice(8,-1);return A==="Object"&&y.constructor&&(A=y.constructor.name),A==="Map"||A==="Set"?Array.from(y):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?Yn(y,k):void 0}}(l,o)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yn(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}function Rr(l){return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Rr(l)}var ya,Fn=[],Fi=[""],jn="global",yn="",wi=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],qn=[],ni="",Ji=!1,Ci=4,ii=2,ma=function(l){return l==null?Fn:Fn.filter(function(o){return o.parentBoundary===l})},Wn=function(){return Ji};const Kn={addPersonOrSystem:function(l,o,y,k,A,N,L){if(o!==null&&y!==null){var O={},P=Fn.find(function(Qt){return Qt.alias===o});if(P&&o===P.alias?O=P:(O.alias=o,Fn.push(O)),O.label=y==null?{text:""}:{text:y},k==null)O.descr={text:""};else if(Rr(k)==="object"){var Y=wr(Object.entries(k)[0],2),Z=Y[0],nt=Y[1];O[Z]={text:nt}}else O.descr={text:k};if(Rr(A)==="object"){var lt=wr(Object.entries(A)[0],2),ct=lt[0],Mt=lt[1];O[ct]=Mt}else O.sprite=A;if(Rr(N)==="object"){var It=wr(Object.entries(N)[0],2),Ut=It[0],Ht=It[1];O[Ut]=Ht}else O.tags=N;if(Rr(L)==="object"){var Nt=wr(Object.entries(L)[0],2),Pt=Nt[0],Ot=Nt[1];O[Pt]=Ot}else O.link=L;O.typeC4Shape={text:l},O.parentBoundary=jn,O.wrap=Wn()}},addPersonOrSystemBoundary:function(l,o,y,k,A){if(l!==null&&o!==null){var N={},L=wi.find(function(Ut){return Ut.alias===l});if(L&&l===L.alias?N=L:(N.alias=l,wi.push(N)),N.label=o==null?{text:""}:{text:o},y==null)N.type={text:"system"};else if(Rr(y)==="object"){var O=wr(Object.entries(y)[0],2),P=O[0],Y=O[1];N[P]={text:Y}}else N.type={text:y};if(Rr(k)==="object"){var Z=wr(Object.entries(k)[0],2),nt=Z[0],lt=Z[1];N[nt]=lt}else N.tags=k;if(Rr(A)==="object"){var ct=wr(Object.entries(A)[0],2),Mt=ct[0],It=ct[1];N[Mt]=It}else N.link=A;N.parentBoundary=jn,N.wrap=Wn(),yn=jn,jn=l,Fi.push(yn)}},addContainer:function(l,o,y,k,A,N,L,O){if(o!==null&&y!==null){var P={},Y=Fn.find(function(Kt){return Kt.alias===o});if(Y&&o===Y.alias?P=Y:(P.alias=o,Fn.push(P)),P.label=y==null?{text:""}:{text:y},k==null)P.techn={text:""};else if(Rr(k)==="object"){var Z=wr(Object.entries(k)[0],2),nt=Z[0],lt=Z[1];P[nt]={text:lt}}else P.techn={text:k};if(A==null)P.descr={text:""};else if(Rr(A)==="object"){var ct=wr(Object.entries(A)[0],2),Mt=ct[0],It=ct[1];P[Mt]={text:It}}else P.descr={text:A};if(Rr(N)==="object"){var Ut=wr(Object.entries(N)[0],2),Ht=Ut[0],Nt=Ut[1];P[Ht]=Nt}else P.sprite=N;if(Rr(L)==="object"){var Pt=wr(Object.entries(L)[0],2),Ot=Pt[0],Qt=Pt[1];P[Ot]=Qt}else P.tags=L;if(Rr(O)==="object"){var De=wr(Object.entries(O)[0],2),we=De[0],ue=De[1];P[we]=ue}else P.link=O;P.wrap=Wn(),P.typeC4Shape={text:l},P.parentBoundary=jn}},addContainerBoundary:function(l,o,y,k,A){if(l!==null&&o!==null){var N={},L=wi.find(function(Ut){return Ut.alias===l});if(L&&l===L.alias?N=L:(N.alias=l,wi.push(N)),N.label=o==null?{text:""}:{text:o},y==null)N.type={text:"container"};else if(Rr(y)==="object"){var O=wr(Object.entries(y)[0],2),P=O[0],Y=O[1];N[P]={text:Y}}else N.type={text:y};if(Rr(k)==="object"){var Z=wr(Object.entries(k)[0],2),nt=Z[0],lt=Z[1];N[nt]=lt}else N.tags=k;if(Rr(A)==="object"){var ct=wr(Object.entries(A)[0],2),Mt=ct[0],It=ct[1];N[Mt]=It}else N.link=A;N.parentBoundary=jn,N.wrap=Wn(),yn=jn,jn=l,Fi.push(yn)}},addComponent:function(l,o,y,k,A,N,L,O){if(o!==null&&y!==null){var P={},Y=Fn.find(function(Kt){return Kt.alias===o});if(Y&&o===Y.alias?P=Y:(P.alias=o,Fn.push(P)),P.label=y==null?{text:""}:{text:y},k==null)P.techn={text:""};else if(Rr(k)==="object"){var Z=wr(Object.entries(k)[0],2),nt=Z[0],lt=Z[1];P[nt]={text:lt}}else P.techn={text:k};if(A==null)P.descr={text:""};else if(Rr(A)==="object"){var ct=wr(Object.entries(A)[0],2),Mt=ct[0],It=ct[1];P[Mt]={text:It}}else P.descr={text:A};if(Rr(N)==="object"){var Ut=wr(Object.entries(N)[0],2),Ht=Ut[0],Nt=Ut[1];P[Ht]=Nt}else P.sprite=N;if(Rr(L)==="object"){var Pt=wr(Object.entries(L)[0],2),Ot=Pt[0],Qt=Pt[1];P[Ot]=Qt}else P.tags=L;if(Rr(O)==="object"){var De=wr(Object.entries(O)[0],2),we=De[0],ue=De[1];P[we]=ue}else P.link=O;P.wrap=Wn(),P.typeC4Shape={text:l},P.parentBoundary=jn}},addDeploymentNode:function(l,o,y,k,A,N,L,O){if(o!==null&&y!==null){var P={},Y=wi.find(function(De){return De.alias===o});if(Y&&o===Y.alias?P=Y:(P.alias=o,wi.push(P)),P.label=y==null?{text:""}:{text:y},k==null)P.type={text:"node"};else if(Rr(k)==="object"){var Z=wr(Object.entries(k)[0],2),nt=Z[0],lt=Z[1];P[nt]={text:lt}}else P.type={text:k};if(A==null)P.descr={text:""};else if(Rr(A)==="object"){var ct=wr(Object.entries(A)[0],2),Mt=ct[0],It=ct[1];P[Mt]={text:It}}else P.descr={text:A};if(Rr(L)==="object"){var Ut=wr(Object.entries(L)[0],2),Ht=Ut[0],Nt=Ut[1];P[Ht]=Nt}else P.tags=L;if(Rr(O)==="object"){var Pt=wr(Object.entries(O)[0],2),Ot=Pt[0],Qt=Pt[1];P[Ot]=Qt}else P.link=O;P.nodeType=l,P.parentBoundary=jn,P.wrap=Wn(),yn=jn,jn=o,Fi.push(yn)}},popBoundaryParseStack:function(){jn=yn,Fi.pop(),yn=Fi.pop(),Fi.push(yn)},addRel:function(l,o,y,k,A,N,L,O,P){if(l!=null&&o!=null&&y!=null&&k!=null){var Y={},Z=qn.find(function(le){return le.from===o&&le.to===y});if(Z?Y=Z:qn.push(Y),Y.type=l,Y.from=o,Y.to=y,Y.label={text:k},A==null)Y.techn={text:""};else if(Rr(A)==="object"){var nt=wr(Object.entries(A)[0],2),lt=nt[0],ct=nt[1];Y[lt]={text:ct}}else Y.techn={text:A};if(N==null)Y.descr={text:""};else if(Rr(N)==="object"){var Mt=wr(Object.entries(N)[0],2),It=Mt[0],Ut=Mt[1];Y[It]={text:Ut}}else Y.descr={text:N};if(Rr(L)==="object"){var Ht=wr(Object.entries(L)[0],2),Nt=Ht[0],Pt=Ht[1];Y[Nt]=Pt}else Y.sprite=L;if(Rr(O)==="object"){var Ot=wr(Object.entries(O)[0],2),Qt=Ot[0],De=Ot[1];Y[Qt]=De}else Y.tags=O;if(Rr(P)==="object"){var we=wr(Object.entries(P)[0],2),ue=we[0],Kt=we[1];Y[ue]=Kt}else Y.link=P;Y.wrap=Wn()}},updateElStyle:function(l,o,y,k,A,N,L,O,P,Y,Z){var nt=Fn.find(function(Ge){return Ge.alias===o});if(nt!==void 0||(nt=wi.find(function(Ge){return Ge.alias===o}))!==void 0){if(y!=null)if(Rr(y)==="object"){var lt=wr(Object.entries(y)[0],2),ct=lt[0],Mt=lt[1];nt[ct]=Mt}else nt.bgColor=y;if(k!=null)if(Rr(k)==="object"){var It=wr(Object.entries(k)[0],2),Ut=It[0],Ht=It[1];nt[Ut]=Ht}else nt.fontColor=k;if(A!=null)if(Rr(A)==="object"){var Nt=wr(Object.entries(A)[0],2),Pt=Nt[0],Ot=Nt[1];nt[Pt]=Ot}else nt.borderColor=A;if(N!=null)if(Rr(N)==="object"){var Qt=wr(Object.entries(N)[0],2),De=Qt[0],we=Qt[1];nt[De]=we}else nt.shadowing=N;if(L!=null)if(Rr(L)==="object"){var ue=wr(Object.entries(L)[0],2),Kt=ue[0],le=ue[1];nt[Kt]=le}else nt.shape=L;if(O!=null)if(Rr(O)==="object"){var Yt=wr(Object.entries(O)[0],2),se=Yt[0],ie=Yt[1];nt[se]=ie}else nt.sprite=O;if(P!=null)if(Rr(P)==="object"){var de=wr(Object.entries(P)[0],2),Le=de[0],Be=de[1];nt[Le]=Be}else nt.techn=P;if(Y!=null)if(Rr(Y)==="object"){var Ue=wr(Object.entries(Y)[0],2),pr=Ue[0],Ye=Ue[1];nt[pr]=Ye}else nt.legendText=Y;if(Z!=null)if(Rr(Z)==="object"){var cr=wr(Object.entries(Z)[0],2),hr=cr[0],We=cr[1];nt[hr]=We}else nt.legendSprite=Z}},updateRelStyle:function(l,o,y,k,A,N,L){var O=qn.find(function(Ot){return Ot.from===o&&Ot.to===y});if(O!==void 0){if(k!=null)if(Rr(k)==="object"){var P=wr(Object.entries(k)[0],2),Y=P[0],Z=P[1];O[Y]=Z}else O.textColor=k;if(A!=null)if(Rr(A)==="object"){var nt=wr(Object.entries(A)[0],2),lt=nt[0],ct=nt[1];O[lt]=ct}else O.lineColor=A;if(N!=null)if(Rr(N)==="object"){var Mt=wr(Object.entries(N)[0],2),It=Mt[0],Ut=Mt[1];O[It]=parseInt(Ut)}else O.offsetX=parseInt(N);if(L!=null)if(Rr(L)==="object"){var Ht=wr(Object.entries(L)[0],2),Nt=Ht[0],Pt=Ht[1];O[Nt]=parseInt(Pt)}else O.offsetY=parseInt(L)}},updateLayoutConfig:function(l,o,y){var k=Ci,A=ii;if(Rr(o)==="object"){var N=wr(Object.entries(o)[0],2),L=(N[0],N[1]);k=parseInt(L)}else k=parseInt(o);if(Rr(y)==="object"){var O=wr(Object.entries(y)[0],2),P=(O[0],O[1]);A=parseInt(P)}else A=parseInt(y);k>=1&&(Ci=k),A>=1&&(ii=A)},autoWrap:Wn,setWrap:function(l){Ji=l},getC4ShapeArray:ma,getC4Shape:function(l){return Fn.find(function(o){return o.alias===l})},getC4ShapeKeys:function(l){return Object.keys(ma(l))},getBoundarys:function(l){return l==null?wi:wi.filter(function(o){return o.parentBoundary===l})},getCurrentBoundaryParse:function(){return jn},getParentBoundaryParse:function(){return yn},getRels:function(){return qn},getTitle:function(){return ni},getC4Type:function(){return ya},getC4ShapeInRow:function(){return Ci},getC4BoundaryInRow:function(){return ii},setAccTitle:te,getAccTitle:wn,getAccDescription:hi,setAccDescription:oi,parseDirective:function(l,o,y){xr.parseDirective(this,l,o,y)},getConfig:function(){return Bt().c4},clear:function(){Fn=[],wi=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],yn="",jn="global",Fi=[""],qn=[],Fi=[""],ni="",Ji=!1,Ci=4,ii=2},LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(l){var o=dn(l,Bt());ni=o},setC4Type:function(l){var o=dn(l,Bt());ya=o}};var si=h(7967);function Pi(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var Co=function(l,o){var y=l.append("rect");if(y.attr("x",o.x),y.attr("y",o.y),y.attr("fill",o.fill),y.attr("stroke",o.stroke),y.attr("width",o.width),y.attr("height",o.height),y.attr("rx",o.rx),y.attr("ry",o.ry),o.attrs!=="undefined"&&o.attrs!==null)for(var k in o.attrs)y.attr(k,o.attrs[k]);return o.class!=="undefined"&&y.attr("class",o.class),y},$i=function(){function l(A,N,L,O,P,Y,Z){k(N.append("text").attr("x",L+P/2).attr("y",O+Y/2+5).style("text-anchor","middle").text(A),Z)}function o(A,N,L,O,P,Y,Z,nt){for(var lt=nt.fontSize,ct=nt.fontFamily,Mt=nt.fontWeight,It=A.split(yr.lineBreakRegex),Ut=0;Ut<It.length;Ut++){var Ht=Ut*lt-lt*(It.length-1)/2,Nt=N.append("text").attr("x",L+P/2).attr("y",O).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",lt).style("font-weight",Mt).style("font-family",ct);Nt.append("tspan").attr("dy",Ht).text(It[Ut]).attr("alignment-baseline","mathematical"),k(Nt,Z)}}function y(A,N,L,O,P,Y,Z,nt){var lt=N.append("switch"),ct=lt.append("foreignObject").attr("x",L).attr("y",O).attr("width",P).attr("height",Y).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");ct.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(A),o(A,lt,L,O,P,0,Z,nt),k(ct,Z)}function k(A,N){for(var L in N)N.hasOwnProperty(L)&&A.attr(L,N[L])}return function(A){return A.textPlacement==="fo"?y:A.textPlacement==="old"?l:o}}();const Jt=function(l,o,y){var k=o.bgColor?o.bgColor:y[o.typeC4Shape.text+"_bg_color"],A=o.borderColor?o.borderColor:y[o.typeC4Shape.text+"_border_color"],N=o.fontColor?o.fontColor:"#FFFFFF",L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(o.typeC4Shape.text){case"person":L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var O=l.append("g");O.attr("class","person-man");var P={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};switch(o.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":P.x=o.x,P.y=o.y,P.fill=k,P.width=o.width,P.height=o.height,P.style="stroke:"+A+";stroke-width:0.5;",P.rx=2.5,P.ry=2.5,Co(O,P);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":O.append("path").attr("fill",k).attr("stroke-width","0.5").attr("stroke",A).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",o.x).replaceAll("starty",o.y).replaceAll("half",o.width/2).replaceAll("height",o.height)),O.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",A).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",o.x).replaceAll("starty",o.y).replaceAll("half",o.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":O.append("path").attr("fill",k).attr("stroke-width","0.5").attr("stroke",A).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",o.x).replaceAll("starty",o.y).replaceAll("width",o.width).replaceAll("half",o.height/2)),O.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",A).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",o.x+o.width).replaceAll("starty",o.y).replaceAll("half",o.height/2))}var Y,Z,nt=(Y=y,Z=o.typeC4Shape.text,{fontFamily:Y[Z+"FontFamily"],fontSize:Y[Z+"FontSize"],fontWeight:Y[Z+"FontWeight"]});switch(O.append("text").attr("fill",N).attr("font-family",nt.fontFamily).attr("font-size",nt.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",o.typeC4Shape.width).attr("x",o.x+o.width/2-o.typeC4Shape.width/2).attr("y",o.y+o.typeC4Shape.Y).text("<<"+o.typeC4Shape.text+">>"),o.typeC4Shape.text){case"person":case"external_person":(function(ct,Mt,It,Ut,Ht,Nt){var Pt=ct.append("image");Pt.attr("width",Mt),Pt.attr("height",It),Pt.attr("x",Ut),Pt.attr("y",Ht);var Ot=Nt.startsWith("data:image/png;base64")?Nt:(0,si.N)(Nt);Pt.attr("xlink:href",Ot)})(O,48,48,o.x+o.width/2-24,o.y+o.image.Y,L)}var lt=y[o.typeC4Shape.text+"Font"]();return lt.fontWeight="bold",lt.fontSize=lt.fontSize+2,lt.fontColor=N,$i(y)(o.label.text,O,o.x,o.y+o.label.Y,o.width,o.height,{fill:N},lt),(lt=y[o.typeC4Shape.text+"Font"]()).fontColor=N,o.thchn&&o.thchn.text!==""?$i(y)(o.thchn.text,O,o.x,o.y+o.thchn.Y,o.width,o.height,{fill:N,"font-style":"italic"},lt):o.type&&o.type.text!==""&&$i(y)(o.type.text,O,o.x,o.y+o.type.Y,o.width,o.height,{fill:N,"font-style":"italic"},lt),o.descr&&o.descr.text!==""&&((lt=y.personFont()).fontColor=N,$i(y)(o.descr.text,O,o.x,o.y+o.descr.Y,o.width,o.height,{fill:N},lt)),o.height},kr=function(l,o,y){var k,A=l.append("g"),N=0,L=function(It,Ut){var Ht=typeof Symbol<"u"&&It[Symbol.iterator]||It["@@iterator"];if(!Ht){if(Array.isArray(It)||(Ht=function(we,ue){if(we){if(typeof we=="string")return Pi(we,ue);var Kt=Object.prototype.toString.call(we).slice(8,-1);return Kt==="Object"&&we.constructor&&(Kt=we.constructor.name),Kt==="Map"||Kt==="Set"?Array.from(we):Kt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Kt)?Pi(we,ue):void 0}}(It))||Ut&&It&&typeof It.length=="number"){Ht&&(It=Ht);var Nt=0,Pt=function(){};return{s:Pt,n:function(){return Nt>=It.length?{done:!0}:{done:!1,value:It[Nt++]}},e:function(we){throw we},f:Pt}}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 Ot,Qt=!0,De=!1;return{s:function(){Ht=Ht.call(It)},n:function(){var we=Ht.next();return Qt=we.done,we},e:function(we){De=!0,Ot=we},f:function(){try{Qt||Ht.return==null||Ht.return()}finally{if(De)throw Ot}}}}(o);try{for(L.s();!(k=L.n()).done;){var O=k.value,P=O.textColor?O.textColor:"#444444",Y=O.lineColor?O.lineColor:"#444444",Z=O.offsetX?parseInt(O.offsetX):0,nt=O.offsetY?parseInt(O.offsetY):0;if(N===0){var lt=A.append("line");lt.attr("x1",O.startPoint.x),lt.attr("y1",O.startPoint.y),lt.attr("x2",O.endPoint.x),lt.attr("y2",O.endPoint.y),lt.attr("stroke-width","1"),lt.attr("stroke",Y),lt.style("fill","none"),O.type!=="rel_b"&&lt.attr("marker-end","url(#arrowhead)"),O.type!=="birel"&&O.type!=="rel_b"||lt.attr("marker-start","url(#arrowend)"),N=-1}else{var ct=A.append("path");ct.attr("fill","none").attr("stroke-width","1").attr("stroke",Y).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",O.startPoint.x).replaceAll("starty",O.startPoint.y).replaceAll("controlx",O.startPoint.x+(O.endPoint.x-O.startPoint.x)/2-(O.endPoint.x-O.startPoint.x)/4).replaceAll("controly",O.startPoint.y+(O.endPoint.y-O.startPoint.y)/2).replaceAll("stopx",O.endPoint.x).replaceAll("stopy",O.endPoint.y)),O.type!=="rel_b"&&ct.attr("marker-end","url(#arrowhead)"),O.type!=="birel"&&O.type!=="rel_b"||ct.attr("marker-start","url(#arrowend)")}var Mt=y.messageFont();$i(y)(O.label.text,A,Math.min(O.startPoint.x,O.endPoint.x)+Math.abs(O.endPoint.x-O.startPoint.x)/2+Z,Math.min(O.startPoint.y,O.endPoint.y)+Math.abs(O.endPoint.y-O.startPoint.y)/2+nt,O.label.width,O.label.height,{fill:P},Mt),O.techn&&O.techn.text!==""&&(Mt=y.messageFont(),$i(y)("["+O.techn.text+"]",A,Math.min(O.startPoint.x,O.endPoint.x)+Math.abs(O.endPoint.x-O.startPoint.x)/2+Z,Math.min(O.startPoint.y,O.endPoint.y)+Math.abs(O.endPoint.y-O.startPoint.y)/2+y.messageFontSize+5+nt,Math.max(O.label.width,O.techn.width),O.techn.height,{fill:P,"font-style":"italic"},Mt))}}catch(It){L.e(It)}finally{L.f()}};si.N;var or=h(2536),an=h.n(or),$n=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,pi=/\s*%%.*\n/gm,Jn={};const Hi=function(l,o){if((l=l.replace($n,"").replace(pi,`
`)).match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/))return"c4";if(l.match(/^\s*sequenceDiagram/))return"sequence";if(l.match(/^\s*gantt/))return"gantt";if(l.match(/^\s*classDiagram-v2/))return"classDiagram";if(l.match(/^\s*classDiagram/))return o&&o.class&&o.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class";if(l.match(/^\s*stateDiagram-v2/))return"stateDiagram";if(l.match(/^\s*stateDiagram/))return o&&o.class&&o.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state";if(l.match(/^\s*flowchart/))return"flowchart-v2";if(l.match(/^\s*info/))return"info";if(l.match(/^\s*pie/))return"pie";if(l.match(/^\s*erDiagram/))return"er";if(l.match(/^\s*journey/))return"journey";if(l.match(/^\s*requirement/)||l.match(/^\s*requirementDiagram/))return"requirement";if(o&&o.flowchart&&o.flowchart.defaultRenderer==="dagre-wrapper")return"flowchart-v2";for(var y=Object.keys(Jn),k=0;k<y.length;k++){var A=y[k],N=Jn[A];if(N&&N.detector(l))return A}return"flowchart"};var Qi=void 0;function di(l){return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},di(l)}function Ka(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}function as(l,o){var y=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!y){if(Array.isArray(l)||(y=tl(l))||o&&l&&typeof l.length=="number"){y&&(l=y);var k=0,A=function(){};return{s:A,n:function(){return k>=l.length?{done:!0}:{done:!1,value:l[k++]}},e:function(P){throw P},f:A}}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 N,L=!0,O=!1;return{s:function(){y=y.call(l)},n:function(){var P=y.next();return L=P.done,P},e:function(P){O=!0,N=P},f:function(){try{L||y.return==null||y.return()}finally{if(O)throw N}}}}function pc(l){return function(o){if(Array.isArray(o))return Ia(o)}(l)||function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}(l)||tl(l)||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.`)}()}function tl(l,o){if(l){if(typeof l=="string")return Ia(l,o);var y=Object.prototype.toString.call(l).slice(8,-1);return y==="Object"&&l.constructor&&(y=l.constructor.name),y==="Map"||y==="Set"?Array.from(l):y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?Ia(l,o):void 0}}function Ia(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var Cs,su={curveBasis:E.curveBasis,curveBasisClosed:E.curveBasisClosed,curveBasisOpen:E.curveBasisOpen,curveLinear:E.curveLinear,curveLinearClosed:E.curveLinearClosed,curveMonotoneX:E.curveMonotoneX,curveMonotoneY:E.curveMonotoneY,curveNatural:E.curveNatural,curveStep:E.curveStep,curveStepAfter:E.curveStepAfter,curveStepBefore:E.curveStepBefore},gc=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,ur=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,yc=function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var y=new RegExp("[%]{2}(?![{]".concat(ur.source,`)(?=[}][%]{2}).*
`),"ig");l=l.trim().replace(y,"").replace(/'/gm,'"'),_.debug("Detecting diagram directive".concat(o!==null?" type:"+o:""," based on the text:").concat(l));for(var k,A=[];(k=gc.exec(l))!==null;)if(k.index===gc.lastIndex&&gc.lastIndex++,k&&!o||o&&k[1]&&k[1].match(o)||o&&k[2]&&k[2].match(o)){var N=k[1]?k[1]:k[2],L=k[3]?k[3].trim():k[4]?JSON.parse(k[4].trim()):null;A.push({type:N,args:L})}return A.length===0&&A.push({type:l,args:null}),A.length===1?A[0]:A}catch(O){return _.error("ERROR: ".concat(O.message,` - Unable to parse directive
`).concat(o!==null?" type:"+o:""," based on the text:").concat(l)),{type:null,args:null}}},kn=function(l,o){var y={};return function(){for(var k=arguments.length,A=new Array(k),N=0;N<k;N++)A[N]=arguments[N];var L=o?o.apply(Qi,A):A[0];if(L in y)return y[L];var O=l.apply(void 0,A);return y[L]=O,O}},ta=function(l,o){if(!l)return o;var y="curve".concat(l.charAt(0).toUpperCase()+l.slice(1));return su[y]||o},uo=function(l,o){return l&&o?Math.sqrt(Math.pow(o.x-l.x,2)+Math.pow(o.y-l.y,2)):0},La=function(l){for(var o="",y="",k=0;k<l.length;k++)l[k]!==void 0&&(l[k].startsWith("color:")||l[k].startsWith("text-align:")?y=y+l[k]+";":o=o+l[k]+";");return{style:o,labelStyle:y}},Ma=0,No=function(){return Ma++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ma},mc=function(l){return function(o){for(var y="",k="0123456789abcdef",A=k.length,N=0;N<o;N++)y+=k.charAt(Math.floor(Math.random()*A));return y}(l.length)},el=function(l,o){var y=o.text.replace(yr.lineBreakRegex," "),k=l.append("text");k.attr("x",o.x),k.attr("y",o.y),k.style("text-anchor",o.anchor),k.style("font-family",o.fontFamily),k.style("font-size",o.fontSize),k.style("font-weight",o.fontWeight),k.attr("fill",o.fill),o.class!==void 0&&k.attr("class",o.class);var A=k.append("tspan");return A.attr("x",o.x+2*o.textMargin),A.attr("fill",o.fill),A.text(y),k},Ns=kn(function(l,o,y){if(!l||(y=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},y),yr.lineBreakRegex.test(l)))return l;var k=l.split(" "),A=[],N="";return k.forEach(function(L,O){var P=Oa("".concat(L," "),y),Y=Oa(N,y);if(P>o){var Z=ja(L,o,"-",y),nt=Z.hyphenatedStrings,lt=Z.remainingWord;A.push.apply(A,[N].concat(pc(nt))),N=lt}else Y+P>=o?(A.push(N),N=L):N=[N,L].filter(Boolean).join(" ");O+1===k.length&&A.push(N)}),A.filter(function(L){return L!==""}).join(y.joinWith)},function(l,o,y){return"".concat(l,"-").concat(o,"-").concat(y.fontSize,"-").concat(y.fontWeight,"-").concat(y.fontFamily,"-").concat(y.joinWith)}),ja=kn(function(l,o){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",k=arguments.length>3?arguments[3]:void 0;k=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},k);var A=l.split(""),N=[],L="";return A.forEach(function(O,P){var Y="".concat(L).concat(O);if(Oa(Y,k)>=o){var Z=P+1,nt=A.length===Z,lt="".concat(Y).concat(y);N.push(nt?Y:lt),L=""}else L=Y}),{hyphenatedStrings:N,remainingWord:L}},function(l,o){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",k=arguments.length>3?arguments[3]:void 0;return"".concat(l,"-").concat(o,"-").concat(y,"-").concat(k.fontSize,"-").concat(k.fontWeight,"-").concat(k.fontFamily)}),_c=function(l,o){return o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},o),bc(l,o).height},Oa=function(l,o){return o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},o),bc(l,o).width},bc=kn(function(l,o){var y=o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},o),k=y.fontSize,A=y.fontFamily,N=y.fontWeight;if(!l)return{width:0,height:0};var L=["sans-serif",A],O=l.split(yr.lineBreakRegex),P=[],Y=(0,E.select)("body");if(!Y.remove)return{width:0,height:0,lineHeight:0};for(var Z=Y.append("svg"),nt=0,lt=L;nt<lt.length;nt++){var ct,Mt=lt[nt],It=0,Ut={width:0,height:0,lineHeight:0},Ht=as(O);try{for(Ht.s();!(ct=Ht.n()).done;){var Nt=ct.value,Pt={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};Pt.text=Nt;var Ot=el(Z,Pt).style("font-size",k).style("font-weight",N).style("font-family",Mt),Qt=(Ot._groups||Ot)[0][0].getBBox();Ut.width=Math.round(Math.max(Ut.width,Qt.width)),It=Math.round(Qt.height),Ut.height+=It,Ut.lineHeight=Math.round(Math.max(Ut.lineHeight,It))}}catch(De){Ht.e(De)}finally{Ht.f()}P.push(Ut)}return Z.remove(),P[isNaN(P[1].height)||isNaN(P[1].width)||isNaN(P[1].lineHeight)||P[0].height>P[1].height&&P[0].width>P[1].width&&P[0].lineHeight>P[1].lineHeight?0:1]},function(l,o){return"".concat(l,"-").concat(o.fontSize,"-").concat(o.fontWeight,"-").concat(o.fontFamily)}),vc=function(l,o,y){var k=new Map;return k.set("height",l),y?(k.set("width","100%"),k.set("style","max-width: ".concat(o,"px;"))):k.set("width",o),k},ea=function(l,o,y,k){(function(A,N){var L,O=as(N);try{for(O.s();!(L=O.n()).done;){var P=L.value;A.attr(P[0],P[1])}}catch(Y){O.e(Y)}finally{O.f()}})(l,vc(o,y,k))},Is=function(l,o,y,k){var A=o.node().getBBox(),N=A.width,L=A.height,O=l._label.width,P=l._label.height,Y=0,Z=0;N>O?(Y=(N-O)/2+y,O=N+2*y):Math.abs(N-O)>=2*y+1&&(O-=y),L>P&&(Z=(L-P)/2+y,P=L+2*y),ea(o,P,O,k);var nt="0 0 ".concat(O," ").concat(P);_.debug("Graph.label",l._label,"swidth",N,"sheight",L,"width",O,"height",P,"tx",Y,"ty",Z,"vBox",nt),o.attr("viewBox",nt),o.select("g").attr("transform","translate(".concat(Y,", ").concat(Z,")"))},Io=function l(o){if(_.debug("directiveSanitizer called with",o),di(o)==="object"&&(o.length?o.forEach(function(L){return l(L)}):Object.keys(o).forEach(function(L){_.debug("Checking key",L),L.indexOf("__")===0&&(_.debug("sanitize deleting __ option",L),delete o[L]),L.indexOf("proto")>=0&&(_.debug("sanitize deleting proto option",L),delete o[L]),L.indexOf("constr")>=0&&(_.debug("sanitize deleting constr option",L),delete o[L]),L.indexOf("themeCSS")>=0&&(_.debug("sanitizing themeCss option"),o[L]=gi(o[L])),L.indexOf("fontFamily")>=0&&(_.debug("sanitizing fontFamily option"),o[L]=gi(o[L])),L.indexOf("altFontFamily")>=0&&(_.debug("sanitizing altFontFamily option"),o[L]=gi(o[L])),ga.indexOf(L)<0?(_.debug("sanitize deleting option",L),delete o[L]):di(o[L])==="object"&&(_.debug("sanitize deleting object",L),l(o[L]))})),o.themeVariables)for(var y=Object.keys(o.themeVariables),k=0;k<y.length;k++){var A=y[k],N=o.themeVariables[A];N&&N.match&&!N.match(/^[a-zA-Z0-9#,";()%. ]+$/)&&(o.themeVariables[A]="")}_.debug("After sanitization",o)},gi=function(l){for(var o=0,y=0,k=0;k<l.length;k++){if(o<y)return"{ /* ERROR: Unbalanced CSS */ }";l[k]==="{"?o++:l[k]==="}"&&y++}return o!==y?"{ /* ERROR: Unbalanced CSS */ }":l};const en={assignWithDepth:Ee,wrapLabel:Ns,calculateTextHeight:_c,calculateTextWidth:Oa,calculateTextDimensions:bc,calculateSvgSizeAttrs:vc,configureSvgSize:ea,setupGraphViewbox:Is,detectInit:function(l,o){var y=yc(l,/(?:init\b)|(?:initialize\b)/),k={};if(Array.isArray(y)){var A=y.map(function(L){return L.args});Io(A),k=Ee(k,pc(A))}else k=y.args;if(k){var N=Hi(l,o);["config"].forEach(function(L){k[L]!==void 0&&(N==="flowchart-v2"&&(N="flowchart"),k[N]=k[L],delete k[L])})}return k},detectDirective:yc,isSubstringInArray:function(l,o){for(var y=0;y<o.length;y++)if(o[y].match(l))return y;return-1},interpolateToCurve:ta,calcLabelPosition:function(l){return l.length===1?l[0]:function(o){var y,k=0;o.forEach(function(L){k+=uo(L,y),y=L});var A=k/2,N=void 0;return y=void 0,o.forEach(function(L){if(y&&!N){var O=uo(L,y);if(O<A)A-=O;else{var P=A/O;P<=0&&(N=y),P>=1&&(N={x:L.x,y:L.y}),P>0&&P<1&&(N={x:(1-P)*y.x+P*L.x,y:(1-P)*y.y+P*L.y})}}y=L}),N}(l)},calcCardinalityPosition:function(l,o,y){var k;_.info("our points",o),o[0]!==y&&(o=o.reverse()),o.forEach(function(Y){uo(Y,k),k=Y});var A,N=25;k=void 0,o.forEach(function(Y){if(k&&!A){var Z=uo(Y,k);if(Z<N)N-=Z;else{var nt=N/Z;nt<=0&&(A=k),nt>=1&&(A={x:Y.x,y:Y.y}),nt>0&&nt<1&&(A={x:(1-nt)*k.x+nt*Y.x,y:(1-nt)*k.y+nt*Y.y})}}k=Y});var L=l?10:5,O=Math.atan2(o[0].y-A.y,o[0].x-A.x),P={x:0,y:0};return P.x=Math.sin(O)*L+(o[0].x+A.x)/2,P.y=-Math.cos(O)*L+(o[0].y+A.y)/2,P},calcTerminalLabelPosition:function(l,o,y){var k,A=JSON.parse(JSON.stringify(y));_.info("our points",A),o!=="start_left"&&o!=="start_right"&&(A=A.reverse()),A.forEach(function(Z){uo(Z,k),k=Z});var N,L=25+l;k=void 0,A.forEach(function(Z){if(k&&!N){var nt=uo(Z,k);if(nt<L)L-=nt;else{var lt=L/nt;lt<=0&&(N=k),lt>=1&&(N={x:Z.x,y:Z.y}),lt>0&&lt<1&&(N={x:(1-lt)*k.x+lt*Z.x,y:(1-lt)*k.y+lt*Z.y})}}k=Z});var O=10+.5*l,P=Math.atan2(A[0].y-N.y,A[0].x-N.x),Y={x:0,y:0};return Y.x=Math.sin(P)*O+(A[0].x+N.x)/2,Y.y=-Math.cos(P)*O+(A[0].y+N.y)/2,o==="start_left"&&(Y.x=Math.sin(P+Math.PI)*O+(A[0].x+N.x)/2,Y.y=-Math.cos(P+Math.PI)*O+(A[0].y+N.y)/2),o==="end_right"&&(Y.x=Math.sin(P-Math.PI)*O+(A[0].x+N.x)/2-5,Y.y=-Math.cos(P-Math.PI)*O+(A[0].y+N.y)/2-5),o==="end_left"&&(Y.x=Math.sin(P)*O+(A[0].x+N.x)/2-5,Y.y=-Math.cos(P)*O+(A[0].y+N.y)/2-5),Y},formatUrl:function(l,o){var y=l.trim();if(y)return o.securityLevel!=="loose"?(0,si.N)(y):y},getStylesFromArray:La,generateId:No,random:mc,memoize:kn,runFunc:function(l){for(var o,y=l.split("."),k=y.length-1,A=y[k],N=window,L=0;L<k;L++)if(!(N=N[y[L]]))return;for(var O=arguments.length,P=new Array(O>1?O-1:0),Y=1;Y<O;Y++)P[Y-1]=arguments[Y];(o=N)[A].apply(o,P)},entityDecode:function(l){return Cs=Cs||document.createElement("div"),l=escape(l).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Cs.innerHTML=l,unescape(Cs.textContent)},initIdGenerator:function(){function l(k,A){(function(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")})(this,l),this.deterministic=k,this.seed=A,this.count=A?A.length:0}var o,y;return o=l,(y=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&Ka(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}(),directiveSanitizer:Io,sanitizeCss:gi};function Pn(l,o,y){if(o.insert!==void 0){var k=l.getAccTitle(),A=l.getAccDescription();o.attr("role","img").attr("aria-labelledby","chart-title-"+y+" chart-desc-"+y),o.insert("desc",":first-child").attr("id","chart-desc-"+y).text(A),o.insert("title",":first-child").attr("id","chart-title-"+y).text(k)}}function ki(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}function rl(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function Lo(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}function Ls(l,o,y){return o&&Lo(l.prototype,o),y&&Lo(l,y),Object.defineProperty(l,"prototype",{writable:!1}),l}var $a=0,ho=0,os=4,zi=2;or.parser.yy=Kn;var vr={},_a=function(){function l(o){rl(this,l),this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,qi(o.db.getConfig())}return Ls(l,[{key:"setData",value:function(o,y,k,A){this.nextData.startx=this.data.startx=o,this.nextData.stopx=this.data.stopx=y,this.nextData.starty=this.data.starty=k,this.nextData.stopy=this.data.stopy=A}},{key:"updateVal",value:function(o,y,k,A){o[y]===void 0?o[y]=k:o[y]=A(k,o[y])}},{key:"insert",value:function(o){this.nextData.cnt=this.nextData.cnt+1;var y=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+o.margin:this.nextData.stopx+2*o.margin,k=y+o.width,A=this.nextData.starty+2*o.margin,N=A+o.height;(y>=this.data.widthLimit||k>=this.data.widthLimit||this.nextData.cnt>os)&&(y=this.nextData.startx+o.margin+vr.nextLinePaddingX,A=this.nextData.stopy+2*o.margin,this.nextData.stopx=k=y+o.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=N=A+o.height,this.nextData.cnt=1),o.x=y,o.y=A,this.updateVal(this.data,"startx",y,Math.min),this.updateVal(this.data,"starty",A,Math.min),this.updateVal(this.data,"stopx",k,Math.max),this.updateVal(this.data,"stopy",N,Math.max),this.updateVal(this.nextData,"startx",y,Math.min),this.updateVal(this.nextData,"starty",A,Math.min),this.updateVal(this.nextData,"stopx",k,Math.max),this.updateVal(this.nextData,"stopy",N,Math.max)}},{key:"init",value:function(o){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},qi(o.db.getConfig())}},{key:"bumpLastMargin",value:function(o){this.data.stopx+=o,this.data.stopy+=o}}]),l}(),qi=function(l){Ee(vr,l),l.fontFamily&&(vr.personFontFamily=vr.systemFontFamily=vr.messageFontFamily=l.fontFamily),l.fontSize&&(vr.personFontSize=vr.systemFontSize=vr.messageFontSize=l.fontSize),l.fontWeight&&(vr.personFontWeight=vr.systemFontWeight=vr.messageFontWeight=l.fontWeight)},ra=function(l,o){return{fontFamily:l[o+"FontFamily"],fontSize:l[o+"FontSize"],fontWeight:l[o+"FontWeight"]}},Qr=function(l){return{fontFamily:l.boundaryFontFamily,fontSize:l.boundaryFontSize,fontWeight:l.boundaryFontWeight}};function I(l,o,y,k,A){if(!o[l].width)if(y)o[l].text=Ns(o[l].text,A,k),o[l].textLines=o[l].text.split(yr.lineBreakRegex).length,o[l].width=A,o[l].height=_c(o[l].text,k);else{var N=o[l].text.split(yr.lineBreakRegex);o[l].textLines=N.length;var L=0;o[l].height=0,o[l].width=0;for(var O=0;O<N.length;O++)o[l].width=Math.max(Oa(N[O],k),o[l].width),L=_c(N[O],k),o[l].height=o[l].height+L}}var U=function(l,o,y){o.x=y.data.startx,o.y=y.data.starty,o.width=y.data.stopx-y.data.startx,o.height=y.data.stopy-y.data.starty,o.label.y=vr.c4ShapeMargin-35;var k=o.wrap&&vr.wrap,A=Qr(vr);A.fontSize=A.fontSize+2,A.fontWeight="bold",I("label",o,k,A,Oa(o.label.text,A)),function(N,L,O){var P=N.append("g"),Y=L.bgColor?L.bgColor:"none",Z=L.borderColor?L.borderColor:"#444444",nt=L.fontColor?L.fontColor:"black",lt={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};L.nodeType&&(lt={"stroke-width":1});var ct={x:L.x,y:L.y,fill:Y,stroke:Z,width:L.width,height:L.height,rx:2.5,ry:2.5,attrs:lt};Co(P,ct);var Mt=O.boundaryFont();Mt.fontWeight="bold",Mt.fontSize=Mt.fontSize+2,Mt.fontColor=nt,$i(O)(L.label.text,P,L.x,L.y+L.label.Y,L.width,L.height,{fill:"#444444"},Mt),L.type&&L.type.text!==""&&((Mt=O.boundaryFont()).fontColor=nt,$i(O)(L.type.text,P,L.x,L.y+L.type.Y,L.width,L.height,{fill:"#444444"},Mt)),L.descr&&L.descr.text!==""&&((Mt=O.boundaryFont()).fontSize=Mt.fontSize-2,Mt.fontColor=nt,$i(O)(L.descr.text,P,L.x,L.y+L.descr.Y,L.width,L.height,{fill:"#444444"},Mt))}(l,o,vr)},tt=function(l,o,y,k){for(var A=0,N=0;N<k.length;N++){A=0;var L=y[k[N]],O=ra(vr,L.typeC4Shape.text);switch(O.fontSize=O.fontSize-2,L.typeC4Shape.width=Oa("<<"+L.typeC4Shape.text+">>",O),L.typeC4Shape.height=O.fontSize+2,L.typeC4Shape.Y=vr.c4ShapePadding,A=L.typeC4Shape.Y+L.typeC4Shape.height-4,L.image={width:0,height:0,Y:0},L.typeC4Shape.text){case"person":case"external_person":L.image.width=48,L.image.height=48,L.image.Y=A,A=L.image.Y+L.image.height}L.sprite&&(L.image.width=48,L.image.height=48,L.image.Y=A,A=L.image.Y+L.image.height);var P=L.wrap&&vr.wrap,Y=vr.width-2*vr.c4ShapePadding,Z=ra(vr,L.typeC4Shape.text);Z.fontSize=Z.fontSize+2,Z.fontWeight="bold",I("label",L,P,Z,Y),L.label.Y=A+8,A=L.label.Y+L.label.height,L.type&&L.type.text!==""?(L.type.text="["+L.type.text+"]",I("type",L,P,ra(vr,L.typeC4Shape.text),Y),L.type.Y=A+5,A=L.type.Y+L.type.height):L.techn&&L.techn.text!==""&&(L.techn.text="["+L.techn.text+"]",I("techn",L,P,ra(vr,L.techn.text),Y),L.techn.Y=A+5,A=L.techn.Y+L.techn.height);var nt=A,lt=L.label.width;L.descr&&L.descr.text!==""&&(I("descr",L,P,ra(vr,L.typeC4Shape.text),Y),L.descr.Y=A+20,A=L.descr.Y+L.descr.height,lt=Math.max(L.label.width,L.descr.width),nt=A-5*L.descr.textLines),lt+=vr.c4ShapePadding,L.width=Math.max(L.width||vr.width,lt,vr.width),L.height=Math.max(L.height||vr.height,nt,vr.height),L.margin=L.margin||vr.c4ShapeMargin,l.insert(L),Jt(o,L,vr)}l.bumpLastMargin(vr.c4ShapeMargin)},yt=Ls(function l(o,y){rl(this,l),this.x=o,this.y=y}),ne=function(l,o){var y=l.x,k=l.y,A=o.x,N=o.y,L=y+l.width/2,O=k+l.height/2,P=Math.abs(y-A),Y=Math.abs(k-N),Z=Y/P,nt=l.height/l.width,lt=null;return k==N&&y<A?lt=new yt(y+l.width,O):k==N&&y>A?lt=new yt(y,O):y==A&&k<N?lt=new yt(L,k+l.height):y==A&&k>N&&(lt=new yt(L,k)),y>A&&k<N?lt=nt>=Z?new yt(y,O+Z*l.width/2):new yt(L-P/Y*l.height/2,k+l.height):y<A&&k<N?lt=nt>=Z?new yt(y+l.width,O+Z*l.width/2):new yt(L+P/Y*l.height/2,k+l.height):y<A&&k>N?lt=nt>=Z?new yt(y+l.width,O-Z*l.width/2):new yt(L+l.height/2*P/Y,k):y>A&&k>N&&(lt=nt>=Z?new yt(y,O-l.width/2*Z):new yt(L-l.height/2*P/Y,k)),lt},Ce=function(l,o){var y={x:0,y:0};y.x=o.x+o.width/2,y.y=o.y+o.height/2;var k=ne(l,y);return y.x=l.x+l.width/2,y.y=l.y+l.height/2,{startPoint:k,endPoint:ne(o,y)}};function je(l,o,y,k,A){var N=new _a(A);N.data.widthLimit=y.data.widthLimit/Math.min(zi,k.length);for(var L=0;L<k.length;L++){var O=k[L],P=0;O.image={width:0,height:0,Y:0},O.sprite&&(O.image.width=48,O.image.height=48,O.image.Y=P,P=O.image.Y+O.image.height);var Y=O.wrap&&vr.wrap,Z=Qr(vr);if(Z.fontSize=Z.fontSize+2,Z.fontWeight="bold",I("label",O,Y,Z,N.data.widthLimit),O.label.Y=P+8,P=O.label.Y+O.label.height,O.type&&O.type.text!==""&&(O.type.text="["+O.type.text+"]",I("type",O,Y,Qr(vr),N.data.widthLimit),O.type.Y=P+5,P=O.type.Y+O.type.height),O.descr&&O.descr.text!==""){var nt=Qr(vr);nt.fontSize=nt.fontSize-2,I("descr",O,Y,nt,N.data.widthLimit),O.descr.Y=P+20,P=O.descr.Y+O.descr.height}if(L==0||L%zi==0){var lt=y.data.startx+vr.diagramMarginX,ct=y.data.stopy+vr.diagramMarginY+P;N.setData(lt,lt,ct,ct)}else{var Mt=N.data.stopx!==N.data.startx?N.data.stopx+vr.diagramMarginX:N.data.startx,It=N.data.starty;N.setData(Mt,Mt,It,It)}N.name=O.alias;var Ut=A.db.getC4ShapeArray(O.alias),Ht=A.db.getC4ShapeKeys(O.alias);Ht.length>0&&tt(N,l,Ut,Ht),o=O.alias;var Nt=A.db.getBoundarys(o);Nt.length>0&&je(l,o,N,Nt,A),O.alias!=="global"&&U(l,O,N),y.data.stopy=Math.max(N.data.stopy+vr.c4ShapeMargin,y.data.stopy),y.data.stopx=Math.max(N.data.stopx+vr.c4ShapeMargin,y.data.stopx),$a=Math.max($a,y.data.stopx),ho=Math.max(ho,y.data.stopy)}}const tr={drawPersonOrSystemArray:tt,drawBoundary:U,setConf:qi,draw:function(l,o,y,k){vr=Bt().c4;var A,N=Bt().securityLevel;N==="sandbox"&&(A=(0,E.select)("#i"+o));var L=N==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),O=k.db;k.db.setWrap(vr.wrap),os=O.getC4ShapeInRow(),zi=O.getC4BoundaryInRow(),_.debug("C:".concat(JSON.stringify(vr,null,2)));var P=N==="sandbox"?L.select('[id="'.concat(o,'"]')):(0,E.select)('[id="'.concat(o,'"]'));P.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"),function(It){It.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")}(P),function(It){It.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")}(P);var Y=new _a(k);Y.setData(vr.diagramMarginX,vr.diagramMarginX,vr.diagramMarginY,vr.diagramMarginY),Y.data.widthLimit=screen.availWidth,$a=vr.diagramMarginX,ho=vr.diagramMarginY;var Z=k.db.getTitle();k.db.getC4Type(),je(P,"",Y,k.db.getBoundarys(""),k),function(It){It.append("defs").append("marker").attr("id","arrowhead").attr("refX",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")}(P),function(It){It.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}(P),function(It){var Ut=It.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);Ut.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),Ut.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}(P),function(It){It.append("defs").append("marker").attr("id","filled-head").attr("refX",18).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")}(P),function(It,Ut,Ht,Nt){var Pt,Ot,Qt=0,De=function(de,Le){var Be=typeof Symbol<"u"&&de[Symbol.iterator]||de["@@iterator"];if(!Be){if(Array.isArray(de)||(Be=function(We,Ge){if(We){if(typeof We=="string")return ki(We,Ge);var _r=Object.prototype.toString.call(We).slice(8,-1);return _r==="Object"&&We.constructor&&(_r=We.constructor.name),_r==="Map"||_r==="Set"?Array.from(We):_r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_r)?ki(We,Ge):void 0}}(de))||Le&&de&&typeof de.length=="number"){Be&&(de=Be);var Ue=0,pr=function(){};return{s:pr,n:function(){return Ue>=de.length?{done:!0}:{done:!1,value:de[Ue++]}},e:function(We){throw We},f:pr}}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 Ye,cr=!0,hr=!1;return{s:function(){Be=Be.call(de)},n:function(){var We=Be.next();return cr=We.done,We},e:function(We){hr=!0,Ye=We},f:function(){try{cr||Be.return==null||Be.return()}finally{if(hr)throw Ye}}}}(Ut);try{for(De.s();!(Pt=De.n()).done;){var we=Pt.value;Qt+=1;var ue=we.wrap&&vr.wrap,Kt={fontFamily:(Ot=vr).messageFontFamily,fontSize:Ot.messageFontSize,fontWeight:Ot.messageFontWeight};Nt.db.getC4Type()==="C4Dynamic"&&(we.label.text=Qt+": "+we.label.text);var le=Oa(we.label.text,Kt);I("label",we,ue,Kt,le),we.techn&&we.techn.text!==""&&I("techn",we,ue,Kt,le=Oa(we.techn.text,Kt)),we.descr&&we.descr.text!==""&&I("descr",we,ue,Kt,le=Oa(we.descr.text,Kt));var Yt=Ht(we.from),se=Ht(we.to),ie=Ce(Yt,se);we.startPoint=ie.startPoint,we.endPoint=ie.endPoint}}catch(de){De.e(de)}finally{De.f()}kr(It,Ut,vr)}(P,k.db.getRels(),k.db.getC4Shape,k),Y.data.stopx=$a,Y.data.stopy=ho;var nt=Y.data,lt=nt.stopy-nt.starty+2*vr.diagramMarginY,ct=nt.stopx-nt.startx+2*vr.diagramMarginX;Z&&P.append("text").text(Z).attr("x",(nt.stopx-nt.startx)/2-4*vr.diagramMarginX).attr("y",nt.starty+vr.diagramMarginY),ea(P,lt,ct,vr.useMaxWidth);var Mt=Z?60:0;P.attr("viewBox",nt.startx-vr.diagramMarginX+" -"+(vr.diagramMarginY+Mt)+" "+ct+" "+(lt+Mt)),Pn(or.parser.yy,P,o),_.debug("models:",nt)}};function er(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var fr="classid-",mr=[],Tr={},Cr=0,mn=[],on=function(l){return yr.sanitizeText(l,Bt())},Gn=function(l){var o="",y=l;if(l.indexOf("~")>0){var k=l.split("~");y=k[0],o=yr.sanitizeText(k[1],Bt())}return{className:y,type:o}},yi=function(l){var o=Gn(l);Tr[o.className]===void 0&&(Tr[o.className]={id:o.className,type:o.type,cssClasses:[],methods:[],members:[],annotations:[],domId:fr+o.className+"-"+Cr},Cr++)},Vn=function(l){for(var o=Object.keys(Tr),y=0;y<o.length;y++)if(Tr[o[y]].id===l)return Tr[o[y]].domId},Ms=function(l,o){var y=Gn(l).className,k=Tr[y];if(typeof o=="string"){var A=o.trim();A.startsWith("<<")&&A.endsWith(">>")?k.annotations.push(on(A.substring(2,A.length-2))):A.indexOf(")")>0?k.methods.push(on(A)):A&&k.members.push(on(A))}},nl=function(l,o){l.split(",").forEach(function(y){var k=y;y[0].match(/\d/)&&(k=fr+k),Tr[k]!==void 0&&Tr[k].cssClasses.push(o)})},cu=function(l,o,y){var k=Bt(),A=l,N=Vn(A);if(k.securityLevel==="loose"&&o!==void 0&&Tr[A]!==void 0){var L=[];if(typeof y=="string"){L=y.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var O=0;O<L.length;O++){var P=L[O].trim();P.charAt(0)==='"'&&P.charAt(P.length-1)==='"'&&(P=P.substr(1,P.length-2)),L[O]=P}}L.length===0&&L.push(N),mn.push(function(){var Y=document.querySelector('[id="'.concat(N,'"]'));Y!==null&&Y.addEventListener("click",function(){var Z;en.runFunc.apply(en,[o].concat(function(nt){if(Array.isArray(nt))return er(nt)}(Z=L)||function(nt){if(typeof Symbol<"u"&&nt[Symbol.iterator]!=null||nt["@@iterator"]!=null)return Array.from(nt)}(Z)||function(nt,lt){if(nt){if(typeof nt=="string")return er(nt,lt);var ct=Object.prototype.toString.call(nt).slice(8,-1);return ct==="Object"&&nt.constructor&&(ct=nt.constructor.name),ct==="Map"||ct==="Set"?Array.from(nt):ct==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ct)?er(nt,lt):void 0}}(Z)||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.`)}()))},!1)})}},lu=function(l){var o=(0,E.select)(".mermaidTooltip");(o._groups||o)[0][0]===null&&(o=(0,E.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,E.select)(l).select("svg").selectAll("g.node").on("mouseover",function(){var y=(0,E.select)(this);if(y.attr("title")!==null){var k=this.getBoundingClientRect();o.transition().duration(200).style("opacity",".9"),o.text(y.attr("title")).style("left",window.scrollX+k.left+(k.right-k.left)/2+"px").style("top",window.scrollY+k.top-14+document.body.scrollTop+"px"),o.html(o.html().replace(/&lt;br\/&gt;/g,"<br/>")),y.classed("hover",!0)}}).on("mouseout",function(){o.transition().duration(500).style("opacity",0),(0,E.select)(this).classed("hover",!1)})};mn.push(lu);var uu="TB";const Mo={parseDirective:function(l,o,y){xr.parseDirective(this,l,o,y)},setAccTitle:te,getAccTitle:wn,getAccDescription:hi,setAccDescription:oi,getConfig:function(){return Bt().class},addClass:yi,bindFunctions:function(l){mn.forEach(function(o){o(l)})},clear:function(){mr=[],Tr={},(mn=[]).push(lu),Un()},getClass:function(l){return Tr[l]},getClasses:function(){return Tr},addAnnotation:function(l,o){var y=Gn(l).className;Tr[y].annotations.push(o)},getRelations:function(){return mr},addRelation:function(l){_.debug("Adding relation: "+JSON.stringify(l)),yi(l.id1),yi(l.id2),l.id1=Gn(l.id1).className,l.id2=Gn(l.id2).className,l.relationTitle1=yr.sanitizeText(l.relationTitle1.trim(),Bt()),l.relationTitle2=yr.sanitizeText(l.relationTitle2.trim(),Bt()),mr.push(l)},getDirection:function(){return uu},setDirection:function(l){uu=l},addMember:Ms,addMembers:function(l,o){Array.isArray(o)&&(o.reverse(),o.forEach(function(y){return Ms(l,y)}))},cleanupLabel:function(l){return l.substring(0,1)===":"?yr.sanitizeText(l.substr(1).trim(),Bt()):on(l.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},setClickEvent:function(l,o,y){l.split(",").forEach(function(k){cu(k,o,y),Tr[k].haveCallback=!0}),nl(l,"clickable")},setCssClass:nl,setLink:function(l,o,y){var k=Bt();l.split(",").forEach(function(A){var N=A;A[0].match(/\d/)&&(N=fr+N),Tr[N]!==void 0&&(Tr[N].link=en.formatUrl(o,k),k.securityLevel==="sandbox"?Tr[N].linkTarget="_top":Tr[N].linkTarget=typeof y=="string"?on(y):"_blank")}),nl(l,"clickable")},getTooltip:function(l){return Tr[l].tooltip},setTooltip:function(l,o){var y=Bt();l.split(",").forEach(function(k){o!==void 0&&(Tr[k].tooltip=yr.sanitizeText(o,y))})},lookUpDomId:Vn};var Ja=h(681),ss=h.n(Ja),Gh=h(8282),mi=h.n(Gh),hu=0,Os=function(l){var o=l.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),y=l.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return o&&!y?Vh(o):y?il(y):Ni(l)},Vh=function(l){var o="",y="";try{var k=l[1]?l[1].trim():"",A=l[2]?l[2].trim():"",N=l[3]?cs(l[3].trim()):"",L=l[4]?l[4].trim():"",O=l[5]?l[5].trim():"";y=k+A+N+" "+L,o=al(O)}catch{y=l}return{displayText:y,cssStyle:o}},il=function(l){var o="",y="";try{var k=l[1]?l[1].trim():"",A=l[2]?l[2].trim():"",N=l[3]?cs(l[3].trim()):"",L=l[4]?l[4].trim():"";y=k+A+"("+N+")"+(l[5]?" : "+cs(l[5]).trim():""),o=al(L)}catch{y=l}return{displayText:y,cssStyle:o}},Ni=function(l){var o="",y="",k="",A=l.indexOf("("),N=l.indexOf(")");if(A>1&&N>A&&N<=l.length){var L="",O="",P=l.substring(0,1);P.match(/\w/)?O=l.substring(0,A).trim():(P.match(/\+|-|~|#/)&&(L=P),O=l.substring(1,A).trim());var Y=l.substring(A+1,N),Z=l.substring(N+1,1);y=al(Z),o=L+O+"("+cs(Y.trim())+")",N<0&&(k=l.substring(N+2).trim())!==""&&(k=" : "+cs(k))}else o=cs(l);return{displayText:o,cssStyle:y}},Ds=function(l,o,y,k){var A=Os(o),N=l.append("tspan").attr("x",k.padding).text(A.displayText);A.cssStyle!==""&&N.attr("style",A.cssStyle),y||N.attr("dy",k.textHeight)},cs=function l(o){var y=o;return o.indexOf("~")!=-1?l(y=(y=y.replace("~","<")).replace("~",">")):y},al=function(l){switch(l){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const Q0=function(l,o,y,k){_.debug("Rendering class ",o,y);var A,N=o.id,L={id:N,label:o.id,width:0,height:0},O=l.append("g").attr("id",k.db.lookUpDomId(N)).attr("class","classGroup");A=o.link?O.append("svg:a").attr("xlink:href",o.link).attr("target",o.linkTarget).append("text").attr("y",y.textHeight+y.padding).attr("x",0):O.append("text").attr("y",y.textHeight+y.padding).attr("x",0);var P=!0;o.annotations.forEach(function(Ot){var Qt=A.append("tspan").text("\xAB"+Ot+"\xBB");P||Qt.attr("dy",y.textHeight),P=!1});var Y=o.id;o.type!==void 0&&o.type!==""&&(Y+="<"+o.type+">");var Z=A.append("tspan").text(Y).attr("class","title");P||Z.attr("dy",y.textHeight);var nt=A.node().getBBox().height,lt=O.append("line").attr("x1",0).attr("y1",y.padding+nt+y.dividerMargin/2).attr("y2",y.padding+nt+y.dividerMargin/2),ct=O.append("text").attr("x",y.padding).attr("y",nt+y.dividerMargin+y.textHeight).attr("fill","white").attr("class","classText");P=!0,o.members.forEach(function(Ot){Ds(ct,Ot,P,y),P=!1});var Mt=ct.node().getBBox(),It=O.append("line").attr("x1",0).attr("y1",y.padding+nt+y.dividerMargin+Mt.height).attr("y2",y.padding+nt+y.dividerMargin+Mt.height),Ut=O.append("text").attr("x",y.padding).attr("y",nt+2*y.dividerMargin+Mt.height+y.textHeight).attr("fill","white").attr("class","classText");P=!0,o.methods.forEach(function(Ot){Ds(Ut,Ot,P,y),P=!1});var Ht=O.node().getBBox(),Nt=" ";o.cssClasses.length>0&&(Nt+=o.cssClasses.join(" "));var Pt=O.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",Ht.width+2*y.padding).attr("height",Ht.height+y.padding+.5*y.dividerMargin).attr("class",Nt).node().getBBox().width;return A.node().childNodes.forEach(function(Ot){Ot.setAttribute("x",(Pt-Ot.getBBox().width)/2)}),o.tooltip&&A.insert("title").text(o.tooltip),lt.attr("x2",Pt),It.attr("x2",Pt),L.width=Pt,L.height=Ht.height+y.padding+.5*y.dividerMargin,L};var xc={},wc=function(l){var o=Object.entries(xc).find(function(y){return y[1].label===l});if(o)return o[0]};const td={draw:function(l,o,y,k){var A=Bt().class;xc={},_.info("Rendering diagram "+l);var N,L=Bt().securityLevel;L==="sandbox"&&(N=(0,E.select)("#i"+o));var O,P=L==="sandbox"?(0,E.select)(N.nodes()[0].contentDocument.body):(0,E.select)("body"),Y=(L==="sandbox"&&N.nodes()[0].contentDocument,P.select("[id='".concat(o,"']")));(O=Y).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"),O.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"),O.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"),O.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"),O.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"),O.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"),O.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"),O.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");var Z=new(mi()).Graph({multigraph:!0});Z.setGraph({isMultiGraph:!0}),Z.setDefaultEdgeLabel(function(){return{}});for(var nt=k.db.getClasses(),lt=Object.keys(nt),ct=0;ct<lt.length;ct++){var Mt=nt[lt[ct]],It=Q0(Y,Mt,A,k);xc[It.id]=It,Z.setNode(It.id,It),_.info("Org height: "+It.height)}k.db.getRelations().forEach(function(Ot){_.info("tjoho"+wc(Ot.id1)+wc(Ot.id2)+JSON.stringify(Ot)),Z.setEdge(wc(Ot.id1),wc(Ot.id2),{relation:Ot},Ot.title||"DEFAULT")}),ss().layout(Z),Z.nodes().forEach(function(Ot){Ot!==void 0&&Z.node(Ot)!==void 0&&(_.debug("Node "+Ot+": "+JSON.stringify(Z.node(Ot))),P.select("#"+k.db.lookUpDomId(Ot)).attr("transform","translate("+(Z.node(Ot).x-Z.node(Ot).width/2)+","+(Z.node(Ot).y-Z.node(Ot).height/2)+" )"))}),Z.edges().forEach(function(Ot){Ot!==void 0&&Z.edge(Ot)!==void 0&&(_.debug("Edge "+Ot.v+" -> "+Ot.w+": "+JSON.stringify(Z.edge(Ot))),function(Qt,De,we,ue,Kt){var le=function(fn){switch(fn){case Kt.db.relationType.AGGREGATION:return"aggregation";case Kt.db.EXTENSION:return"extension";case Kt.db.COMPOSITION:return"composition";case Kt.db.DEPENDENCY:return"dependency"}};De.points=De.points.filter(function(fn){return!Number.isNaN(fn.y)});var Yt,se,ie=De.points,de=(0,E.line)().x(function(fn){return fn.x}).y(function(fn){return fn.y}).curve(E.curveBasis),Le=Qt.append("path").attr("d",de(ie)).attr("id","edge"+hu).attr("class","relation"),Be="";ue.arrowMarkerAbsolute&&(Be=(Be=(Be=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),we.relation.lineType==1&&Le.attr("class","relation dashed-line"),we.relation.type1!=="none"&&Le.attr("marker-start","url("+Be+"#"+le(we.relation.type1)+"Start)"),we.relation.type2!=="none"&&Le.attr("marker-end","url("+Be+"#"+le(we.relation.type2)+"End)");var Ue,pr,Ye,cr,hr=De.points.length,We=en.calcLabelPosition(De.points);if(Yt=We.x,se=We.y,hr%2!=0&&hr>1){var Ge=en.calcCardinalityPosition(we.relation.type1!=="none",De.points,De.points[0]),_r=en.calcCardinalityPosition(we.relation.type2!=="none",De.points,De.points[hr-1]);_.debug("cardinality_1_point "+JSON.stringify(Ge)),_.debug("cardinality_2_point "+JSON.stringify(_r)),Ue=Ge.x,pr=Ge.y,Ye=_r.x,cr=_r.y}if(we.title!==void 0){var _n=Qt.append("g").attr("class","classLabel"),Tn=_n.append("text").attr("class","label").attr("x",Yt).attr("y",se).attr("fill","red").attr("text-anchor","middle").text(we.title);window.label=Tn;var ti=Tn.node().getBBox();_n.insert("rect",":first-child").attr("class","box").attr("x",ti.x-ue.padding/2).attr("y",ti.y-ue.padding/2).attr("width",ti.width+ue.padding).attr("height",ti.height+ue.padding)}_.info("Rendering relation "+JSON.stringify(we)),we.relationTitle1!==void 0&&we.relationTitle1!=="none"&&Qt.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",Ue).attr("y",pr).attr("fill","black").attr("font-size","6").text(we.relationTitle1),we.relationTitle2!==void 0&&we.relationTitle2!=="none"&&Qt.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",Ye).attr("y",cr).attr("fill","black").attr("font-size","6").text(we.relationTitle2),hu++}(Y,Z.edge(Ot),Z.edge(Ot).relation,A,k))});var Ut=Y.node().getBBox(),Ht=Ut.width+40,Nt=Ut.height+40;ea(Y,Nt,Ht,A.useMaxWidth);var Pt="".concat(Ut.x-20," ").concat(Ut.y-20," ").concat(Ht," ").concat(Nt);_.debug("viewBox ".concat(Pt)),Y.attr("viewBox",Pt),Pn(k.db,Y,o)}};var Zh={extension:function(l,o,y){_.trace("Making markers for ",y),l.append("defs").append("marker").attr("id",o+"-extensionStart").attr("class","marker extension "+o).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"),l.append("defs").append("marker").attr("id",o+"-extensionEnd").attr("class","marker extension "+o).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")},composition:function(l,o){l.append("defs").append("marker").attr("id",o+"-compositionStart").attr("class","marker composition "+o).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"),l.append("defs").append("marker").attr("id",o+"-compositionEnd").attr("class","marker composition "+o).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")},aggregation:function(l,o){l.append("defs").append("marker").attr("id",o+"-aggregationStart").attr("class","marker aggregation "+o).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"),l.append("defs").append("marker").attr("id",o+"-aggregationEnd").attr("class","marker aggregation "+o).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")},dependency:function(l,o){l.append("defs").append("marker").attr("id",o+"-dependencyStart").attr("class","marker dependency "+o).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"),l.append("defs").append("marker").attr("id",o+"-dependencyEnd").attr("class","marker dependency "+o).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")},point:function(l,o){l.append("marker").attr("id",o+"-pointEnd").attr("class","marker "+o).attr("viewBox","0 0 10 10").attr("refX",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").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),l.append("marker").attr("id",o+"-pointStart").attr("class","marker "+o).attr("viewBox","0 0 10 10").attr("refX",0).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:function(l,o){l.append("marker").attr("id",o+"-circleEnd").attr("class","marker "+o).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"),l.append("marker").attr("id",o+"-circleStart").attr("class","marker "+o).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:function(l,o){l.append("marker").attr("id",o+"-crossEnd").attr("class","marker cross "+o).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"),l.append("marker").attr("id",o+"-crossStart").attr("class","marker cross "+o).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:function(l,o){l.append("defs").append("marker").attr("id",o+"-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")}};const Xh=function(l,o,y,k){o.forEach(function(A){Zh[A](l,y,k)})};function la(l){return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},la(l)}const na=function(l,o,y,k){var A=l||"";if(la(A)==="object"&&(A=A[0]),dr(Bt().flowchart.htmlLabels)){A=A.replace(/\\n|\n/g,"<br />"),_.info("vertexText"+A);var N=function(Z){var nt,lt=(0,E.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),ct=lt.append("xhtml:div"),Mt=Z.label,It=Z.isNode?"nodeLabel":"edgeLabel";return ct.html('<span class="'+It+'" '+(Z.labelStyle?'style="'+Z.labelStyle+'"':"")+">"+Mt+"</span>"),(nt=Z.labelStyle)&&ct.attr("style",nt),ct.style("display","inline-block"),ct.style("white-space","nowrap"),ct.attr("xmlns","http://www.w3.org/1999/xhtml"),lt.node()}({isNode:k,label:Qn(A).replace(/fa[lrsb]?:fa-[\w-]+/g,function(Z){return"<i class='".concat(Z.replace(":"," "),"'></i>")}),labelStyle:o.replace("fill:","color:")});return N}var L=document.createElementNS("http://www.w3.org/2000/svg","text");L.setAttribute("style",o.replace("color:","fill:"));var O=[];O=typeof A=="string"?A.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(A)?A:[];for(var P=0;P<O.length;P++){var Y=document.createElementNS("http://www.w3.org/2000/svg","tspan");Y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Y.setAttribute("dy","1em"),Y.setAttribute("x","0"),y?Y.setAttribute("class","title-row"):Y.setAttribute("class","row"),Y.textContent=O[P].trim(),L.appendChild(Y)}return L};var Ii=function(l,o,y,k){var A;A=y||"node default";var N=l.insert("g").attr("class",A).attr("id",o.domId||o.id),L=N.insert("g").attr("class","label").attr("style",o.labelStyle),O=typeof o.labelText=="string"?o.labelText:o.labelText[0],P=L.node().appendChild(na(dn(Qn(O),Bt()),o.labelStyle,!1,k)),Y=P.getBBox();if(dr(Bt().flowchart.htmlLabels)){var Z=P.children[0],nt=(0,E.select)(P);Y=Z.getBoundingClientRect(),nt.attr("width",Y.width),nt.attr("height",Y.height)}var lt=o.padding/2;return L.attr("transform","translate("+-Y.width/2+", "+-Y.height/2+")"),{shapeSvg:N,bbox:Y,halfPadding:lt,label:L}},ai=function(l,o){var y=o.node().getBBox();l.width=y.width,l.height=y.height};function Ha(l,o,y,k){return l.insert("polygon",":first-child").attr("points",k.map(function(A){return A.x+","+A.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-o/2+","+y/2+")")}var tn={},Da={},ua={},ls=function(l,o){return _.trace("In isDecendant",o," ",l," = ",Da[o].indexOf(l)>=0),Da[o].indexOf(l)>=0},kc=function l(o,y,k,A){_.warn("Copying children of ",o,"root",A,"data",y.node(o),A);var N=y.children(o)||[];o!==A&&N.push(o),_.warn("Copying (nodes) clusterId",o,"nodes",N),N.forEach(function(L){if(y.children(L).length>0)l(L,y,k,A);else{var O=y.node(L);_.info("cp ",L," to ",A," with parent ",o),k.setNode(L,O),A!==y.parent(L)&&(_.warn("Setting parent",L,y.parent(L)),k.setParent(L,y.parent(L))),o!==A&&L!==o?(_.debug("Setting parent",L,o),k.setParent(L,o)):(_.info("In copy ",o,"root",A,"data",y.node(o),A),_.debug("Not Setting parent for node=",L,"cluster!==rootId",o!==A,"node!==clusterId",L!==o));var P=y.edges(L);_.debug("Copying Edges",P),P.forEach(function(Y){_.info("Edge",Y);var Z=y.edge(Y.v,Y.w,Y.name);_.info("Edge data",Z,A);try{(function(nt,lt){return _.info("Decendants of ",lt," is ",Da[lt]),_.info("Edge is ",nt),nt.v!==lt&&nt.w!==lt&&(Da[lt]?(_.info("Here "),Da[lt].indexOf(nt.v)>=0||!!ls(nt.v,lt)||!!ls(nt.w,lt)||Da[lt].indexOf(nt.w)>=0):(_.debug("Tilt, ",lt,",not in decendants"),!1))})(Y,A)?(_.info("Copying as ",Y.v,Y.w,Z,Y.name),k.setEdge(Y.v,Y.w,Z,Y.name),_.info("newGraph edges ",k.edges(),k.edge(k.edges()[0]))):_.info("Skipping copy of edge ",Y.v,"-->",Y.w," rootId: ",A," clusterId:",o)}catch(nt){_.error(nt)}})}_.debug("Removing node",L),y.removeNode(L)})},Rs=function l(o,y){for(var k=y.children(o),A=[].concat(k),N=0;N<k.length;N++)ua[k[N]]=o,A=A.concat(l(k[N],y));return A},Oo=function l(o,y){_.trace("Searching",o);var k=y.children(o);if(_.trace("Searching children of id ",o,k),k.length<1)return _.trace("This is a valid node",o),o;for(var A=0;A<k.length;A++){var N=l(k[A],y);if(N)return _.trace("Found replacement for",o," => ",N),N}},Do=function(l){return tn[l]&&tn[l].externalConnections&&tn[l]?tn[l].id:l},ol=function(l,o){!l||o>10?_.debug("Opting out, no graph "):(_.debug("Opting in, graph "),l.nodes().forEach(function(y){l.children(y).length>0&&(_.warn("Cluster identified",y," Replacement id in edges: ",Oo(y,l)),Da[y]=Rs(y,l),tn[y]={id:Oo(y,l),clusterData:l.node(y)})}),l.nodes().forEach(function(y){var k=l.children(y),A=l.edges();k.length>0?(_.debug("Cluster identified",y,Da),A.forEach(function(N){N.v!==y&&N.w!==y&&ls(N.v,y)^ls(N.w,y)&&(_.warn("Edge: ",N," leaves cluster ",y),_.warn("Decendants of XXX ",y,": ",Da[y]),tn[y].externalConnections=!0)})):_.debug("Not a cluster ",y,Da)}),l.edges().forEach(function(y){var k=l.edge(y);_.warn("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(y)),_.warn("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(l.edge(y)));var A=y.v,N=y.w;if(_.warn("Fix XXX",tn,"ids:",y.v,y.w,"Translateing: ",tn[y.v]," --- ",tn[y.w]),tn[y.v]&&tn[y.w]&&tn[y.v]===tn[y.w]){_.warn("Fixing and trixing link to self - removing XXX",y.v,y.w,y.name),_.warn("Fixing and trixing - removing XXX",y.v,y.w,y.name),A=Do(y.v),N=Do(y.w),l.removeEdge(y.v,y.w,y.name);var L=y.w+"---"+y.v;l.setNode(L,{domId:L,id:L,labelStyle:"",labelText:k.label,padding:0,shape:"labelRect",style:""});var O=JSON.parse(JSON.stringify(k)),P=JSON.parse(JSON.stringify(k));O.label="",O.arrowTypeEnd="none",P.label="",O.fromCluster=y.v,P.toCluster=y.v,l.setEdge(A,L,O,y.name+"-cyclic-special"),l.setEdge(L,N,P,y.name+"-cyclic-special")}else(tn[y.v]||tn[y.w])&&(_.warn("Fixing and trixing - removing XXX",y.v,y.w,y.name),A=Do(y.v),N=Do(y.w),l.removeEdge(y.v,y.w,y.name),A!==y.v&&(k.fromCluster=y.v),N!==y.w&&(k.toCluster=y.w),_.warn("Fix Replacing with XXX",A,N,y.name),l.setEdge(A,N,k,y.name))}),_.warn("Adjusted Graph",mi().json.write(l)),us(l,0),_.trace(tn))},us=function l(o,y){if(_.warn("extractor - ",y,mi().json.write(o),o.children("D")),y>10)_.error("Bailing out");else{for(var k=o.nodes(),A=!1,N=0;N<k.length;N++){var L=k[N],O=o.children(L);A=A||O.length>0}if(A){_.debug("Nodes = ",k,y);for(var P=0;P<k.length;P++){var Y=k[P];if(_.debug("Extracting node",Y,tn,tn[Y]&&!tn[Y].externalConnections,!o.parent(Y),o.node(Y),o.children("D")," Depth ",y),tn[Y])if(!tn[Y].externalConnections&&o.children(Y)&&o.children(Y).length>0){_.warn("Cluster without external connections, without a parent and with children",Y,y);var Z=o.graph().rankdir==="TB"?"LR":"TB";tn[Y]&&tn[Y].clusterData&&tn[Y].clusterData.dir&&(Z=tn[Y].clusterData.dir,_.warn("Fixing dir",tn[Y].clusterData.dir,Z));var nt=new(mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:Z,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});_.warn("Old graph before copy",mi().json.write(o)),kc(Y,o,nt,Y),o.setNode(Y,{clusterNode:!0,id:Y,clusterData:tn[Y].clusterData,labelText:tn[Y].labelText,graph:nt}),_.warn("New graph after copy node: (",Y,")",mi().json.write(nt)),_.debug("Old graph after copy",mi().json.write(o))}else _.warn("Cluster ** ",Y," **not meeting the criteria !externalConnections:",!tn[Y].externalConnections," no parent: ",!o.parent(Y)," children ",o.children(Y)&&o.children(Y).length>0,o.children("D"),y),_.debug(tn);else _.debug("Not a cluster",Y,y)}k=o.nodes(),_.warn("New list of nodes",k);for(var lt=0;lt<k.length;lt++){var ct=k[lt],Mt=o.node(ct);_.warn(" Now next level",ct,Mt),Mt.clusterNode&&l(Mt.graph,y+1)}}else _.debug("Done, no node has children",o.nodes())}},sl=function l(o,y){if(y.length===0)return[];var k=Object.assign(y);return y.forEach(function(A){var N=o.children(A),L=l(o,N);k=k.concat(L)}),k},Ec=function(l){return sl(l,l.children())},Kh=h(3841);const Tc=function(l,o,y,k){var A=l.x,N=l.y,L=A-k.x,O=N-k.y,P=Math.sqrt(o*o*O*O+y*y*L*L),Y=Math.abs(o*y*L/P);k.x<A&&(Y=-Y);var Z=Math.abs(o*y*O/P);return k.y<N&&(Z=-Z),{x:A+Y,y:N+Z}};function Jh(l,o){return l*o>0}const Sc=function(l,o,y,k){var A,N,L,O,P,Y,Z,nt,lt,ct,Mt,It,Ut;if(A=o.y-l.y,L=l.x-o.x,P=o.x*l.y-l.x*o.y,lt=A*y.x+L*y.y+P,ct=A*k.x+L*k.y+P,!(lt!==0&&ct!==0&&Jh(lt,ct)||(N=k.y-y.y,O=y.x-k.x,Y=k.x*y.y-y.x*k.y,Z=N*l.x+O*l.y+Y,nt=N*o.x+O*o.y+Y,Z!==0&&nt!==0&&Jh(Z,nt)||(Mt=A*O-N*L)==0)))return It=Math.abs(Mt/2),{x:(Ut=L*Y-O*P)<0?(Ut-It)/Mt:(Ut+It)/Mt,y:(Ut=N*P-A*Y)<0?(Ut-It)/Mt:(Ut+It)/Mt}},Ro=function(l,o){var y,k,A=l.x,N=l.y,L=o.x-A,O=o.y-N,P=l.width/2,Y=l.height/2;return Math.abs(O)*P>Math.abs(L)*Y?(O<0&&(Y=-Y),y=O===0?0:Y*L/O,k=Y):(L<0&&(P=-P),y=P,k=L===0?0:P*O/L),{x:A+y,y:N+k}},Bs=(h.n(Kh)(),function(l,o,y){return Tc(l,o,o,y)}),Qa=function(l,o,y){var k=l.x,A=l.y,N=[],L=Number.POSITIVE_INFINITY,O=Number.POSITIVE_INFINITY;typeof o.forEach=="function"?o.forEach(function(Mt){L=Math.min(L,Mt.x),O=Math.min(O,Mt.y)}):(L=Math.min(L,o.x),O=Math.min(O,o.y));for(var P=k-l.width/2-L,Y=A-l.height/2-O,Z=0;Z<o.length;Z++){var nt=o[Z],lt=o[Z<o.length-1?Z+1:0],ct=Sc(l,y,{x:P+nt.x,y:Y+nt.y},{x:P+lt.x,y:Y+lt.y});ct&&N.push(ct)}return N.length?(N.length>1&&N.sort(function(Mt,It){var Ut=Mt.x-y.x,Ht=Mt.y-y.y,Nt=Math.sqrt(Ut*Ut+Ht*Ht),Pt=It.x-y.x,Ot=It.y-y.y,Qt=Math.sqrt(Pt*Pt+Ot*Ot);return Nt<Qt?-1:Nt===Qt?0:1}),N[0]):l},Bo=Ro;function Fs(l){return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Fs(l)}function cl(l,o,y,k){var A=[],N=function(O){A.push(O),A.push(0)},L=function(O){A.push(0),A.push(O)};o.includes("t")?(_.debug("add top border"),N(y)):L(y),o.includes("r")?(_.debug("add right border"),N(k)):L(k),o.includes("b")?(_.debug("add bottom border"),N(y)):L(y),o.includes("l")?(_.debug("add left border"),N(k)):L(k),l.attr("stroke-dasharray",A.join(" "))}var Qh=function(l,o,y){var k=l.insert("g").attr("class","node default").attr("id",o.domId||o.id),A=70,N=10;y==="LR"&&(A=10,N=70);var L=k.append("rect").attr("x",-1*A/2).attr("y",-1*N/2).attr("width",A).attr("height",N).attr("class","fork-join");return ai(o,L),o.height=o.height+o.padding/2,o.width=o.width+o.padding/2,o.intersect=function(O){return Bo(o,O)},k},t1={question:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=A.width+o.padding+(A.height+o.padding),L=[{x:N/2,y:0},{x:N,y:-N/2},{x:N/2,y:-N},{x:0,y:-N/2}];_.info("Question main (Circle)");var O=Ha(k,N,N,L);return O.attr("style",o.style),ai(o,O),o.intersect=function(P){return _.warn("Intersect called"),Qa(o,L,P)},k},rect:function(l,o){var y=Ii(l,o,"node "+o.classes,!0),k=y.shapeSvg,A=y.bbox,N=y.halfPadding;_.trace("Classes = ",o.classes);var L=k.insert("rect",":first-child"),O=A.width+o.padding,P=A.height+o.padding;if(L.attr("class","basic label-container").attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("x",-A.width/2-N).attr("y",-A.height/2-N).attr("width",O).attr("height",P),o.props){var Y=new Set(Object.keys(o.props));o.props.borders&&(cl(L,o.props.borders,O,P),Y.delete("borders")),Y.forEach(function(Z){_.warn("Unknown node property ".concat(Z))})}return ai(o,L),o.intersect=function(Z){return Bo(o,Z)},k},labelRect:function(l,o){var y=Ii(l,o,"label",!0),k=y.shapeSvg;_.trace("Classes = ",o.classes);var A=k.insert("rect",":first-child");if(A.attr("width",0).attr("height",0),k.attr("class","label edgeLabel"),o.props){var N=new Set(Object.keys(o.props));o.props.borders&&(cl(A,o.props.borders,0,0),N.delete("borders")),N.forEach(function(L){_.warn("Unknown node property ".concat(L))})}return ai(o,A),o.intersect=function(L){return Bo(o,L)},k},rectWithTitle:function(l,o){var y;y=o.classes?"node "+o.classes:"node default";var k,A=l.insert("g").attr("class",y).attr("id",o.domId||o.id),N=A.insert("rect",":first-child"),L=A.insert("line"),O=A.insert("g").attr("class","label"),P=o.labelText.flat?o.labelText.flat():o.labelText;k=Fs(P)==="object"?P[0]:P,_.info("Label text abc79",k,P,Fs(P)==="object");var Y=O.node().appendChild(na(k,o.labelStyle,!0,!0)),Z={width:0,height:0};if(dr(Bt().flowchart.htmlLabels)){var nt=Y.children[0],lt=(0,E.select)(Y);Z=nt.getBoundingClientRect(),lt.attr("width",Z.width),lt.attr("height",Z.height)}_.info("Text 2",P);var ct=P.slice(1,P.length),Mt=Y.getBBox(),It=O.node().appendChild(na(ct.join?ct.join("<br/>"):ct,o.labelStyle,!0,!0));if(dr(Bt().flowchart.htmlLabels)){var Ut=It.children[0],Ht=(0,E.select)(It);Z=Ut.getBoundingClientRect(),Ht.attr("width",Z.width),Ht.attr("height",Z.height)}var Nt=o.padding/2;return(0,E.select)(It).attr("transform","translate( "+(Z.width>Mt.width?0:(Mt.width-Z.width)/2)+", "+(Mt.height+Nt+5)+")"),(0,E.select)(Y).attr("transform","translate( "+(Z.width<Mt.width?0:-(Mt.width-Z.width)/2)+", 0)"),Z=O.node().getBBox(),O.attr("transform","translate("+-Z.width/2+", "+(-Z.height/2-Nt+3)+")"),N.attr("class","outer title-state").attr("x",-Z.width/2-Nt).attr("y",-Z.height/2-Nt).attr("width",Z.width+o.padding).attr("height",Z.height+o.padding),L.attr("class","divider").attr("x1",-Z.width/2-Nt).attr("x2",Z.width/2+Nt).attr("y1",-Z.height/2-Nt+Mt.height+Nt).attr("y2",-Z.height/2-Nt+Mt.height+Nt),ai(o,N),o.intersect=function(Pt){return Bo(o,Pt)},A},choice:function(l,o){var y=l.insert("g").attr("class","node default").attr("id",o.domId||o.id);return y.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(k){return k.x+","+k.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),o.width=28,o.height=28,o.intersect=function(k){return Bs(o,14,k)},y},circle:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=y.halfPadding,L=k.insert("circle",":first-child");return L.attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("r",A.width/2+N).attr("width",A.width+o.padding).attr("height",A.height+o.padding),_.info("Circle main"),ai(o,L),o.intersect=function(O){return _.info("Circle intersect",o,A.width/2+N,O),Bs(o,A.width/2+N,O)},k},doublecircle:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=y.halfPadding,L=k.insert("g",":first-child"),O=L.insert("circle"),P=L.insert("circle");return O.attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("r",A.width/2+N+5).attr("width",A.width+o.padding+10).attr("height",A.height+o.padding+10),P.attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("r",A.width/2+N).attr("width",A.width+o.padding).attr("height",A.height+o.padding),_.info("DoubleCircle main"),ai(o,O),o.intersect=function(Y){return _.info("DoubleCircle intersect",o,A.width/2+N+5,Y),Bs(o,A.width/2+N+5,Y)},k},stadium:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=A.height+o.padding,L=A.width+N/4+o.padding,O=k.insert("rect",":first-child").attr("style",o.style).attr("rx",N/2).attr("ry",N/2).attr("x",-L/2).attr("y",-N/2).attr("width",L).attr("height",N);return ai(o,O),o.intersect=function(P){return Bo(o,P)},k},hexagon:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=A.height+o.padding,L=N/4,O=A.width+2*L+o.padding,P=[{x:L,y:0},{x:O-L,y:0},{x:O,y:-N/2},{x:O-L,y:-N},{x:L,y:-N},{x:0,y:-N/2}],Y=Ha(k,O,N,P);return Y.attr("style",o.style),ai(o,Y),o.intersect=function(Z){return Qa(o,P,Z)},k},rect_left_inv_arrow:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=A.width+o.padding,L=A.height+o.padding,O=[{x:-L/2,y:0},{x:N,y:0},{x:N,y:-L},{x:-L/2,y:-L},{x:0,y:-L/2}];return Ha(k,N,L,O).attr("style",o.style),o.width=N+L,o.height=L,o.intersect=function(P){return Qa(o,O,P)},k},lean_right:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=A.width+o.padding,L=A.height+o.padding,O=[{x:-2*L/6,y:0},{x:N-L/6,y:0},{x:N+2*L/6,y:-L},{x:L/6,y:-L}],P=Ha(k,N,L,O);return P.attr("style",o.style),ai(o,P),o.intersect=function(Y){return Qa(o,O,Y)},k},lean_left:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=A.width+o.padding,L=A.height+o.padding,O=[{x:2*L/6,y:0},{x:N+L/6,y:0},{x:N-2*L/6,y:-L},{x:-L/6,y:-L}],P=Ha(k,N,L,O);return P.attr("style",o.style),ai(o,P),o.intersect=function(Y){return Qa(o,O,Y)},k},trapezoid:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=A.width+o.padding,L=A.height+o.padding,O=[{x:-2*L/6,y:0},{x:N+2*L/6,y:0},{x:N-L/6,y:-L},{x:L/6,y:-L}],P=Ha(k,N,L,O);return P.attr("style",o.style),ai(o,P),o.intersect=function(Y){return Qa(o,O,Y)},k},inv_trapezoid:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=A.width+o.padding,L=A.height+o.padding,O=[{x:L/6,y:0},{x:N-L/6,y:0},{x:N+2*L/6,y:-L},{x:-2*L/6,y:-L}],P=Ha(k,N,L,O);return P.attr("style",o.style),ai(o,P),o.intersect=function(Y){return Qa(o,O,Y)},k},rect_right_inv_arrow:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=A.width+o.padding,L=A.height+o.padding,O=[{x:0,y:0},{x:N+L/2,y:0},{x:N,y:-L/2},{x:N+L/2,y:-L},{x:0,y:-L}],P=Ha(k,N,L,O);return P.attr("style",o.style),ai(o,P),o.intersect=function(Y){return Qa(o,O,Y)},k},cylinder:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=A.width+o.padding,L=N/2,O=L/(2.5+N/50),P=A.height+O+o.padding,Y="M 0,"+O+" a "+L+","+O+" 0,0,0 "+N+" 0 a "+L+","+O+" 0,0,0 "+-N+" 0 l 0,"+P+" a "+L+","+O+" 0,0,0 "+N+" 0 l 0,"+-P,Z=k.attr("label-offset-y",O).insert("path",":first-child").attr("style",o.style).attr("d",Y).attr("transform","translate("+-N/2+","+-(P/2+O)+")");return ai(o,Z),o.intersect=function(nt){var lt=Bo(o,nt),ct=lt.x-o.x;if(L!=0&&(Math.abs(ct)<o.width/2||Math.abs(ct)==o.width/2&&Math.abs(lt.y-o.y)>o.height/2-O)){var Mt=O*O*(1-ct*ct/(L*L));Mt!=0&&(Mt=Math.sqrt(Mt)),Mt=O-Mt,nt.y-o.y>0&&(Mt=-Mt),lt.y+=Mt}return lt},k},start:function(l,o){var y=l.insert("g").attr("class","node default").attr("id",o.domId||o.id),k=y.insert("circle",":first-child");return k.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),ai(o,k),o.intersect=function(A){return Bs(o,7,A)},y},end:function(l,o){var y=l.insert("g").attr("class","node default").attr("id",o.domId||o.id),k=y.insert("circle",":first-child"),A=y.insert("circle",":first-child");return A.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),k.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),ai(o,A),o.intersect=function(N){return Bs(o,7,N)},y},note:function(l,o){var y=Ii(l,o,"node "+o.classes,!0),k=y.shapeSvg,A=y.bbox,N=y.halfPadding;_.info("Classes = ",o.classes);var L=k.insert("rect",":first-child");return L.attr("rx",o.rx).attr("ry",o.ry).attr("x",-A.width/2-N).attr("y",-A.height/2-N).attr("width",A.width+o.padding).attr("height",A.height+o.padding),ai(o,L),o.intersect=function(O){return Bo(o,O)},k},subroutine:function(l,o){var y=Ii(l,o,void 0,!0),k=y.shapeSvg,A=y.bbox,N=A.width+o.padding,L=A.height+o.padding,O=[{x:0,y:0},{x:N,y:0},{x:N,y:-L},{x:0,y:-L},{x:0,y:0},{x:-8,y:0},{x:N+8,y:0},{x:N+8,y:-L},{x:-8,y:-L},{x:-8,y:0}],P=Ha(k,N,L,O);return P.attr("style",o.style),ai(o,P),o.intersect=function(Y){return Qa(o,O,Y)},k},fork:Qh,join:Qh,class_box:function(l,o){var y,k=o.padding/2;y=o.classes?"node "+o.classes:"node default";var A=l.insert("g").attr("class",y).attr("id",o.domId||o.id),N=A.insert("rect",":first-child"),L=A.insert("line"),O=A.insert("line"),P=0,Y=4,Z=A.insert("g").attr("class","label"),nt=0,lt=o.classData.annotations&&o.classData.annotations[0],ct=o.classData.annotations[0]?"\xAB"+o.classData.annotations[0]+"\xBB":"",Mt=Z.node().appendChild(na(ct,o.labelStyle,!0,!0)),It=Mt.getBBox();if(dr(Bt().flowchart.htmlLabels)){var Ut=Mt.children[0],Ht=(0,E.select)(Mt);It=Ut.getBoundingClientRect(),Ht.attr("width",It.width),Ht.attr("height",It.height)}o.classData.annotations[0]&&(Y+=It.height+4,P+=It.width);var Nt=o.classData.id;o.classData.type!==void 0&&o.classData.type!==""&&(Bt().flowchart.htmlLabels?Nt+="&lt;"+o.classData.type+"&gt;":Nt+="<"+o.classData.type+">");var Pt=Z.node().appendChild(na(Nt,o.labelStyle,!0,!0));(0,E.select)(Pt).attr("class","classTitle");var Ot=Pt.getBBox();if(dr(Bt().flowchart.htmlLabels)){var Qt=Pt.children[0],De=(0,E.select)(Pt);Ot=Qt.getBoundingClientRect(),De.attr("width",Ot.width),De.attr("height",Ot.height)}Y+=Ot.height+4,Ot.width>P&&(P=Ot.width);var we=[];o.classData.members.forEach(function(Yt){var se=Os(Yt),ie=se.displayText;Bt().flowchart.htmlLabels&&(ie=ie.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var de=Z.node().appendChild(na(ie,se.cssStyle?se.cssStyle:o.labelStyle,!0,!0)),Le=de.getBBox();if(dr(Bt().flowchart.htmlLabels)){var Be=de.children[0],Ue=(0,E.select)(de);Le=Be.getBoundingClientRect(),Ue.attr("width",Le.width),Ue.attr("height",Le.height)}Le.width>P&&(P=Le.width),Y+=Le.height+4,we.push(de)}),Y+=8;var ue=[];if(o.classData.methods.forEach(function(Yt){var se=Os(Yt),ie=se.displayText;Bt().flowchart.htmlLabels&&(ie=ie.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var de=Z.node().appendChild(na(ie,se.cssStyle?se.cssStyle:o.labelStyle,!0,!0)),Le=de.getBBox();if(dr(Bt().flowchart.htmlLabels)){var Be=de.children[0],Ue=(0,E.select)(de);Le=Be.getBoundingClientRect(),Ue.attr("width",Le.width),Ue.attr("height",Le.height)}Le.width>P&&(P=Le.width),Y+=Le.height+4,ue.push(de)}),Y+=8,lt){var Kt=(P-It.width)/2;(0,E.select)(Mt).attr("transform","translate( "+(-1*P/2+Kt)+", "+-1*Y/2+")"),nt=It.height+4}var le=(P-Ot.width)/2;return(0,E.select)(Pt).attr("transform","translate( "+(-1*P/2+le)+", "+(-1*Y/2+nt)+")"),nt+=Ot.height+4,L.attr("class","divider").attr("x1",-P/2-k).attr("x2",P/2+k).attr("y1",-Y/2-k+8+nt).attr("y2",-Y/2-k+8+nt),nt+=8,we.forEach(function(Yt){(0,E.select)(Yt).attr("transform","translate( "+-P/2+", "+(-1*Y/2+nt+4)+")"),nt+=Ot.height+4}),nt+=8,O.attr("class","divider").attr("x1",-P/2-k).attr("x2",P/2+k).attr("y1",-Y/2-k+8+nt).attr("y2",-Y/2-k+8+nt),nt+=8,ue.forEach(function(Yt){(0,E.select)(Yt).attr("transform","translate( "+-P/2+", "+(-1*Y/2+nt)+")"),nt+=Ot.height+4}),N.attr("class","outer title-state").attr("x",-P/2-k).attr("y",-Y/2-k).attr("width",P+o.padding).attr("height",Y+o.padding),ai(o,N),o.intersect=function(Yt){return Bo(o,Yt)},A}},fo={},ll=function(l){var o=fo[l.id];_.trace("Transforming node",l.diff,l,"translate("+(l.x-l.width/2-5)+", "+l.width/2+")");var y=l.diff||0;return l.clusterNode?o.attr("transform","translate("+(l.x+y-l.width/2)+", "+(l.y-l.height/2-8)+")"):o.attr("transform","translate("+l.x+", "+l.y+")"),y},to={rect:function(l,o){_.trace("Creating subgraph rect for ",o.id,o);var y=l.insert("g").attr("class","cluster"+(o.class?" "+o.class:"")).attr("id",o.id),k=y.insert("rect",":first-child"),A=y.insert("g").attr("class","cluster-label"),N=A.node().appendChild(na(o.labelText,o.labelStyle,void 0,!0)),L=N.getBBox();if(dr(Bt().flowchart.htmlLabels)){var O=N.children[0],P=(0,E.select)(N);L=O.getBoundingClientRect(),P.attr("width",L.width),P.attr("height",L.height)}var Y=0*o.padding,Z=Y/2,nt=o.width<=L.width+Y?L.width+Y:o.width;o.width<=L.width+Y?o.diff=(L.width-o.width)/2-o.padding/2:o.diff=-o.padding/2,_.trace("Data ",o,JSON.stringify(o)),k.attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("x",o.x-nt/2).attr("y",o.y-o.height/2-Z).attr("width",nt).attr("height",o.height+Y),A.attr("transform","translate("+(o.x-L.width/2)+", "+(o.y-o.height/2+o.padding/3)+")");var lt=k.node().getBBox();return o.width=lt.width,o.height=lt.height,o.intersect=function(ct){return Ro(o,ct)},y},roundedWithTitle:function(l,o){var y=l.insert("g").attr("class",o.classes).attr("id",o.id),k=y.insert("rect",":first-child"),A=y.insert("g").attr("class","cluster-label"),N=y.append("rect"),L=A.node().appendChild(na(o.labelText,o.labelStyle,void 0,!0)),O=L.getBBox();if(dr(Bt().flowchart.htmlLabels)){var P=L.children[0],Y=(0,E.select)(L);O=P.getBoundingClientRect(),Y.attr("width",O.width),Y.attr("height",O.height)}O=L.getBBox();var Z=0*o.padding,nt=Z/2,lt=o.width<=O.width+o.padding?O.width+o.padding:o.width;o.width<=O.width+o.padding?o.diff=(O.width+0*o.padding-o.width)/2:o.diff=-o.padding/2,k.attr("class","outer").attr("x",o.x-lt/2-nt).attr("y",o.y-o.height/2-nt).attr("width",lt+Z).attr("height",o.height+Z),N.attr("class","inner").attr("x",o.x-lt/2-nt).attr("y",o.y-o.height/2-nt+O.height-1).attr("width",lt+Z).attr("height",o.height+Z-O.height-3),A.attr("transform","translate("+(o.x-O.width/2)+", "+(o.y-o.height/2-o.padding/3+(dr(Bt().flowchart.htmlLabels)?5:3))+")");var ct=k.node().getBBox();return o.height=ct.height,o.intersect=function(Mt){return Ro(o,Mt)},y},noteGroup:function(l,o){var y=l.insert("g").attr("class","note-cluster").attr("id",o.id),k=y.insert("rect",":first-child"),A=0*o.padding,N=A/2;k.attr("rx",o.rx).attr("ry",o.ry).attr("x",o.x-o.width/2-N).attr("y",o.y-o.height/2-N).attr("width",o.width+A).attr("height",o.height+A).attr("fill","none");var L=k.node().getBBox();return o.width=L.width,o.height=L.height,o.intersect=function(O){return Ro(o,O)},y},divider:function(l,o){var y=l.insert("g").attr("class",o.classes).attr("id",o.id),k=y.insert("rect",":first-child"),A=0*o.padding,N=A/2;k.attr("class","divider").attr("x",o.x-o.width/2-N).attr("y",o.y-o.height/2).attr("width",o.width+A).attr("height",o.height+A);var L=k.node().getBBox();return o.width=L.width,o.height=L.height,o.diff=-o.padding/2,o.intersect=function(O){return Ro(o,O)},y}},Ra={},eo={},_i={},e1=function(l,o){var y=na(o.label,o.labelStyle),k=l.insert("g").attr("class","edgeLabel"),A=k.insert("g").attr("class","label");A.node().appendChild(y);var N,L=y.getBBox();if(dr(Bt().flowchart.htmlLabels)){var O=y.children[0],P=(0,E.select)(y);L=O.getBoundingClientRect(),P.attr("width",L.width),P.attr("height",L.height)}if(A.attr("transform","translate("+-L.width/2+", "+-L.height/2+")"),eo[o.id]=k,o.width=L.width,o.height=L.height,o.startLabelLeft){var Y=na(o.startLabelLeft,o.labelStyle),Z=l.insert("g").attr("class","edgeTerminals"),nt=Z.insert("g").attr("class","inner");N=nt.node().appendChild(Y);var lt=Y.getBBox();nt.attr("transform","translate("+-lt.width/2+", "+-lt.height/2+")"),_i[o.id]||(_i[o.id]={}),_i[o.id].startLeft=Z,Ps(N,o.startLabelLeft)}if(o.startLabelRight){var ct=na(o.startLabelRight,o.labelStyle),Mt=l.insert("g").attr("class","edgeTerminals"),It=Mt.insert("g").attr("class","inner");N=Mt.node().appendChild(ct),It.node().appendChild(ct);var Ut=ct.getBBox();It.attr("transform","translate("+-Ut.width/2+", "+-Ut.height/2+")"),_i[o.id]||(_i[o.id]={}),_i[o.id].startRight=Mt,Ps(N,o.startLabelRight)}if(o.endLabelLeft){var Ht=na(o.endLabelLeft,o.labelStyle),Nt=l.insert("g").attr("class","edgeTerminals"),Pt=Nt.insert("g").attr("class","inner");N=Pt.node().appendChild(Ht);var Ot=Ht.getBBox();Pt.attr("transform","translate("+-Ot.width/2+", "+-Ot.height/2+")"),Nt.node().appendChild(Ht),_i[o.id]||(_i[o.id]={}),_i[o.id].endLeft=Nt,Ps(N,o.endLabelLeft)}if(o.endLabelRight){var Qt=na(o.endLabelRight,o.labelStyle),De=l.insert("g").attr("class","edgeTerminals"),we=De.insert("g").attr("class","inner");N=we.node().appendChild(Qt);var ue=Qt.getBBox();we.attr("transform","translate("+-ue.width/2+", "+-ue.height/2+")"),De.node().appendChild(Qt),_i[o.id]||(_i[o.id]={}),_i[o.id].endRight=De,Ps(N,o.endLabelRight)}};function Ps(l,o){Bt().flowchart.htmlLabels&&l&&(l.style.width=9*o.length+"px",l.style.height="12px")}var r1=function(l,o){_.info("Moving label abc78 ",l.id,l.label,eo[l.id]);var y=o.updatedPath?o.updatedPath:o.originalPath;if(l.label){var k=eo[l.id],A=l.x,N=l.y;if(y){var L=en.calcLabelPosition(y);_.info("Moving label from (",A,",",N,") to (",L.x,",",L.y,") abc78")}k.attr("transform","translate("+A+", "+N+")")}if(l.startLabelLeft){var O=_i[l.id].startLeft,P=l.x,Y=l.y;if(y){var Z=en.calcTerminalLabelPosition(l.arrowTypeStart?10:0,"start_left",y);P=Z.x,Y=Z.y}O.attr("transform","translate("+P+", "+Y+")")}if(l.startLabelRight){var nt=_i[l.id].startRight,lt=l.x,ct=l.y;if(y){var Mt=en.calcTerminalLabelPosition(l.arrowTypeStart?10:0,"start_right",y);lt=Mt.x,ct=Mt.y}nt.attr("transform","translate("+lt+", "+ct+")")}if(l.endLabelLeft){var It=_i[l.id].endLeft,Ut=l.x,Ht=l.y;if(y){var Nt=en.calcTerminalLabelPosition(l.arrowTypeEnd?10:0,"end_left",y);Ut=Nt.x,Ht=Nt.y}It.attr("transform","translate("+Ut+", "+Ht+")")}if(l.endLabelRight){var Pt=_i[l.id].endRight,Ot=l.x,Qt=l.y;if(y){var De=en.calcTerminalLabelPosition(l.arrowTypeEnd?10:0,"end_right",y);Ot=De.x,Qt=De.y}Pt.attr("transform","translate("+Ot+", "+Qt+")")}},du=function(l,o){_.warn("abc88 cutPathAtIntersect",l,o);var y=[],k=l[0],A=!1;return l.forEach(function(N){if(_.info("abc88 checking point",N,o),function(P,Y){var Z=P.x,nt=P.y,lt=Math.abs(Y.x-Z),ct=Math.abs(Y.y-nt),Mt=P.width/2,It=P.height/2;return lt>=Mt||ct>=It}(o,N)||A)_.warn("abc88 outside",N,k),k=N,A||y.push(N);else{var L=function(P,Y,Z){_.warn(`intersection calc abc89:
outsidePoint: `.concat(JSON.stringify(Y),`
insidePoint : `).concat(JSON.stringify(Z),`
node : x:`).concat(P.x," y:").concat(P.y," w:").concat(P.width," h:").concat(P.height));var nt=P.x,lt=P.y,ct=Math.abs(nt-Z.x),Mt=P.width/2,It=Z.x<Y.x?Mt-ct:Mt+ct,Ut=P.height/2,Ht=Math.abs(Y.y-Z.y),Nt=Math.abs(Y.x-Z.x);if(Math.abs(lt-Y.y)*Mt>Math.abs(nt-Y.x)*Ut){var Pt=Z.y<Y.y?Y.y-Ut-lt:lt-Ut-Y.y;It=Nt*Pt/Ht;var Ot={x:Z.x<Y.x?Z.x+It:Z.x-Nt+It,y:Z.y<Y.y?Z.y+Ht-Pt:Z.y-Ht+Pt};return It===0&&(Ot.x=Y.x,Ot.y=Y.y),Nt===0&&(Ot.x=Y.x),Ht===0&&(Ot.y=Y.y),_.warn("abc89 topp/bott calc, Q ".concat(Ht,", q ").concat(Pt,", R ").concat(Nt,", r ").concat(It),Ot),Ot}var Qt=Ht*(It=Z.x<Y.x?Y.x-Mt-nt:nt-Mt-Y.x)/Nt,De=Z.x<Y.x?Z.x+Nt-It:Z.x-Nt+It,we=Z.y<Y.y?Z.y+Qt:Z.y-Qt;return _.warn("sides calc abc89, Q ".concat(Ht,", q ").concat(Qt,", R ").concat(Nt,", r ").concat(It),{_x:De,_y:we}),It===0&&(De=Y.x,we=Y.y),Nt===0&&(De=Y.x),Ht===0&&(we=Y.y),{x:De,y:we}}(o,k,N);_.warn("abc88 inside",N,k,L),_.warn("abc88 intersection",L);var O=!1;y.forEach(function(P){O=O||P.x===L.x&&P.y===L.y}),y.find(function(P){return P.x===L.x&&P.y===L.y})?_.warn("abc88 no intersect",L,y):y.push(L),A=!0}}),_.warn("abc88 returning points",y),y},n1=function l(o,y,k,A){_.info("Graph in recursive render: XXX",mi().json.write(y),A);var N=y.graph().rankdir;_.trace("Dir in recursive render - dir:",N);var L=o.insert("g").attr("class","root");y.nodes()?_.info("Recursive render XXX",y.nodes()):_.info("No nodes found for",y),y.edges().length>0&&_.trace("Recursive edges",y.edge(y.edges()[0]));var O=L.insert("g").attr("class","clusters"),P=L.insert("g").attr("class","edgePaths"),Y=L.insert("g").attr("class","edgeLabels"),Z=L.insert("g").attr("class","nodes");y.nodes().forEach(function(lt){var ct=y.node(lt);if(A!==void 0){var Mt=JSON.parse(JSON.stringify(A.clusterData));_.info("Setting data for cluster XXX (",lt,") ",Mt,A),y.setNode(A.id,Mt),y.parent(lt)||(_.trace("Setting parent",lt,A.id),y.setParent(lt,A.id,Mt))}if(_.info("(Insert) Node XXX"+lt+": "+JSON.stringify(y.node(lt))),ct&&ct.clusterNode){_.info("Cluster identified",lt,ct.width,y.node(lt));var It=l(Z,ct.graph,k,y.node(lt)),Ut=It.elem;ai(ct,Ut),ct.diff=It.diff||0,_.info("Node bounds (abc123)",lt,ct,ct.width,ct.x,ct.y),function(Ht,Nt){fo[Nt.id]=Ht}(Ut,ct),_.warn("Recursive render complete ",Ut,ct)}else y.children(lt).length>0?(_.info("Cluster - the non recursive path XXX",lt,ct.id,ct,y),_.info(Oo(ct.id,y)),tn[ct.id]={id:Oo(ct.id,y),node:ct}):(_.info("Node - the non recursive path",lt,ct.id,ct),function(Ht,Nt,Pt){var Ot,Qt,De;Nt.link?(Bt().securityLevel==="sandbox"?De="_top":Nt.linkTarget&&(De=Nt.linkTarget||"_blank"),Ot=Ht.insert("svg:a").attr("xlink:href",Nt.link).attr("target",De),Qt=t1[Nt.shape](Ot,Nt,Pt)):Ot=Qt=t1[Nt.shape](Ht,Nt,Pt),Nt.tooltip&&Qt.attr("title",Nt.tooltip),Nt.class&&Qt.attr("class","node default "+Nt.class),fo[Nt.id]=Ot,Nt.haveCallback&&fo[Nt.id].attr("class",fo[Nt.id].attr("class")+" clickable")}(Z,y.node(lt),N))}),y.edges().forEach(function(lt){var ct=y.edge(lt.v,lt.w,lt.name);_.info("Edge "+lt.v+" -> "+lt.w+": "+JSON.stringify(lt)),_.info("Edge "+lt.v+" -> "+lt.w+": ",lt," ",JSON.stringify(y.edge(lt))),_.info("Fix",tn,"ids:",lt.v,lt.w,"Translateing: ",tn[lt.v],tn[lt.w]),e1(Y,ct)}),y.edges().forEach(function(lt){_.info("Edge "+lt.v+" -> "+lt.w+": "+JSON.stringify(lt))}),_.info("#############################################"),_.info("### Layout ###"),_.info("#############################################"),_.info(y),ss().layout(y),_.info("Graph after layout:",mi().json.write(y));var nt=0;return Ec(y).forEach(function(lt){var ct=y.node(lt);_.info("Position "+lt+": "+JSON.stringify(y.node(lt))),_.info("Position "+lt+": ("+ct.x,","+ct.y,") width: ",ct.width," height: ",ct.height),ct&&ct.clusterNode?ll(ct):y.children(lt).length>0?(function(Mt,It){_.trace("Inserting cluster");var Ut=It.shape||"rect";Ra[It.id]=to[Ut](Mt,It)}(O,ct),tn[ct.id].node=ct):ll(ct)}),y.edges().forEach(function(lt){var ct=y.edge(lt);_.info("Edge "+lt.v+" -> "+lt.w+": "+JSON.stringify(ct),ct);var Mt=function(It,Ut,Ht,Nt,Pt,Ot){var Qt=Ht.points,De=!1,we=Ot.node(Ut.v),ue=Ot.node(Ut.w);_.info("abc88 InsertEdge: ",Ht),ue.intersect&&we.intersect&&((Qt=Qt.slice(1,Ht.points.length-1)).unshift(we.intersect(Qt[0])),_.info("Last point",Qt[Qt.length-1],ue,ue.intersect(Qt[Qt.length-1])),Qt.push(ue.intersect(Qt[Qt.length-1]))),Ht.toCluster&&(_.info("to cluster abc88",Nt[Ht.toCluster]),Qt=du(Ht.points,Nt[Ht.toCluster].node),De=!0),Ht.fromCluster&&(_.info("from cluster abc88",Nt[Ht.fromCluster]),Qt=du(Qt.reverse(),Nt[Ht.fromCluster].node).reverse(),De=!0);var Kt,le=Qt.filter(function(Be){return!Number.isNaN(Be.y)});Kt=(Pt==="graph"||Pt==="flowchart")&&Ht.curve||E.curveBasis;var Yt,se=(0,E.line)().x(function(Be){return Be.x}).y(function(Be){return Be.y}).curve(Kt);switch(Ht.thickness){case"normal":Yt="edge-thickness-normal";break;case"thick":Yt="edge-thickness-thick";break;default:Yt=""}switch(Ht.pattern){case"solid":Yt+=" edge-pattern-solid";break;case"dotted":Yt+=" edge-pattern-dotted";break;case"dashed":Yt+=" edge-pattern-dashed"}var ie=It.append("path").attr("d",se(le)).attr("id",Ht.id).attr("class"," "+Yt+(Ht.classes?" "+Ht.classes:"")).attr("style",Ht.style),de="";switch(Bt().state.arrowMarkerAbsolute&&(de=(de=(de=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),_.info("arrowTypeStart",Ht.arrowTypeStart),_.info("arrowTypeEnd",Ht.arrowTypeEnd),Ht.arrowTypeStart){case"arrow_cross":ie.attr("marker-start","url("+de+"#"+Pt+"-crossStart)");break;case"arrow_point":ie.attr("marker-start","url("+de+"#"+Pt+"-pointStart)");break;case"arrow_barb":ie.attr("marker-start","url("+de+"#"+Pt+"-barbStart)");break;case"arrow_circle":ie.attr("marker-start","url("+de+"#"+Pt+"-circleStart)");break;case"aggregation":ie.attr("marker-start","url("+de+"#"+Pt+"-aggregationStart)");break;case"extension":ie.attr("marker-start","url("+de+"#"+Pt+"-extensionStart)");break;case"composition":ie.attr("marker-start","url("+de+"#"+Pt+"-compositionStart)");break;case"dependency":ie.attr("marker-start","url("+de+"#"+Pt+"-dependencyStart)")}switch(Ht.arrowTypeEnd){case"arrow_cross":ie.attr("marker-end","url("+de+"#"+Pt+"-crossEnd)");break;case"arrow_point":ie.attr("marker-end","url("+de+"#"+Pt+"-pointEnd)");break;case"arrow_barb":ie.attr("marker-end","url("+de+"#"+Pt+"-barbEnd)");break;case"arrow_circle":ie.attr("marker-end","url("+de+"#"+Pt+"-circleEnd)");break;case"aggregation":ie.attr("marker-end","url("+de+"#"+Pt+"-aggregationEnd)");break;case"extension":ie.attr("marker-end","url("+de+"#"+Pt+"-extensionEnd)");break;case"composition":ie.attr("marker-end","url("+de+"#"+Pt+"-compositionEnd)");break;case"dependency":ie.attr("marker-end","url("+de+"#"+Pt+"-dependencyEnd)")}var Le={};return De&&(Le.updatedPath=Qt),Le.originalPath=Ht.points,Le}(P,lt,ct,tn,k,y);r1(ct,Mt)}),y.nodes().forEach(function(lt){var ct=y.node(lt);_.info(lt,ct.type,ct.diff),ct.type==="group"&&(nt=ct.diff)}),{elem:L,diff:nt}},ul=function(l,o,y,k,A){Xh(l,y,k,A),fo={},eo={},_i={},Ra={},Da={},ua={},tn={},_.warn("Graph at first:",mi().json.write(o)),ol(o),_.warn("Graph after:",mi().json.write(o)),n1(l,o,k)};function i1(l){var o;switch(l){case 0:o="aggregation";break;case 1:o="extension";break;case 2:o="composition";break;case 3:o="dependency";break;default:o="none"}return o}const ed={setConf:function(l){Object.keys(l).forEach(function(o){l[o]})},draw:function(l,o,y,k){_.info("Drawing class - ",o);var A=Bt().flowchart,N=Bt().securityLevel;_.info("config:",A);var L,O=A.nodeSpacing||50,P=A.rankSpacing||50,Y=new(mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:k.db.getDirection(),nodesep:O,ranksep:P,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),Z=k.db.getClasses(),nt=k.db.getRelations();_.info(nt),function(Qt,De,we,ue){var Kt=Object.keys(Qt);_.info("keys:",Kt),_.info(Qt),Kt.forEach(function(le){var Yt=Qt[le],se="";Yt.cssClasses.length>0&&(se=se+" "+Yt.cssClasses.join(" "));var ie,de,Le={labelStyle:""},Be=Yt.text!==void 0?Yt.text:Yt.id;Yt.type,de="class_box",De.setNode(Yt.id,{labelStyle:Le.labelStyle,shape:de,labelText:(ie=Be,yr.sanitizeText(ie,Bt())),classData:Yt,rx:0,ry:0,class:se,style:Le.style,id:Yt.id,domId:Yt.domId,tooltip:ue.db.getTooltip(Yt.id)||"",haveCallback:Yt.haveCallback,link:Yt.link,width:Yt.type==="group"?500:void 0,type:Yt.type,padding:Bt().flowchart.padding}),_.info("setNode",{labelStyle:Le.labelStyle,shape:de,labelText:Be,rx:0,ry:0,class:se,style:Le.style,id:Yt.id,width:Yt.type==="group"?500:void 0,type:Yt.type,padding:Bt().flowchart.padding})})}(Z,Y,0,k),function(Qt,De){var we=Bt().flowchart,ue=0;Qt.forEach(function(Kt){ue++;var le={classes:"relation"};le.pattern=Kt.relation.lineType==1?"dashed":"solid",le.id="id"+ue,Kt.type==="arrow_open"?le.arrowhead="none":le.arrowhead="normal",_.info(le,Kt),le.startLabelRight=Kt.relationTitle1==="none"?"":Kt.relationTitle1,le.endLabelLeft=Kt.relationTitle2==="none"?"":Kt.relationTitle2,le.arrowTypeStart=i1(Kt.relation.type1),le.arrowTypeEnd=i1(Kt.relation.type2);var Yt="",se="";if(Kt.style!==void 0){var ie=La(Kt.style);Yt=ie.style,se=ie.labelStyle}else Yt="fill:none";le.style=Yt,le.labelStyle=se,Kt.interpolate!==void 0?le.curve=ta(Kt.interpolate,E.curveLinear):Qt.defaultInterpolate!==void 0?le.curve=ta(Qt.defaultInterpolate,E.curveLinear):le.curve=ta(we.curve,E.curveLinear),Kt.text=Kt.title,Kt.text===void 0?Kt.style!==void 0&&(le.arrowheadStyle="fill: #333"):(le.arrowheadStyle="fill: #333",le.labelpos="c",Bt().flowchart.htmlLabels?(le.labelType="html",le.label='<span class="edgeLabel">'+Kt.text+"</span>"):(le.labelType="text",le.label=Kt.text.replace(yr.lineBreakRegex,`
`),Kt.style===void 0&&(le.style=le.style||"stroke: #333; stroke-width: 1.5px;fill:none"),le.labelStyle=le.labelStyle.replace("color:","fill:"))),De.setEdge(Kt.id1,Kt.id2,le,ue)})}(nt,Y),N==="sandbox"&&(L=(0,E.select)("#i"+o));var lt=N==="sandbox"?(0,E.select)(L.nodes()[0].contentDocument.body):(0,E.select)("body"),ct=lt.select('[id="'.concat(o,'"]')),Mt=lt.select("#"+o+" g");if(ul(Mt,Y,["aggregation","extension","composition","dependency"],"classDiagram",o),Is(Y,ct,A.diagramPadding,A.useMaxWidth),!A.htmlLabels)for(var It=N==="sandbox"?L.nodes()[0].contentDocument:document,Ut=It.querySelectorAll('[id="'+o+'"] .edgeLabel .label'),Ht=0;Ht<Ut.length;Ht++){var Nt=Ut[Ht],Pt=Nt.getBBox(),Ot=It.createElementNS("http://www.w3.org/2000/svg","rect");Ot.setAttribute("rx",0),Ot.setAttribute("ry",0),Ot.setAttribute("width",Pt.width),Ot.setAttribute("height",Pt.height),Nt.insertBefore(Ot,Nt.firstChild)}Pn(k.db,ct,o)}};var fu=h(1362),pu=h.n(fu),Ac={},gu=[],a1=function(l){return Ac[l]===void 0&&(Ac[l]={attributes:[]},_.info("Added new entity :",l)),Ac[l]};const rd={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(l,o,y){xr.parseDirective(this,l,o,y)},getConfig:function(){return Bt().er},addEntity:a1,addAttributes:function(l,o){var y,k=a1(l);for(y=o.length-1;y>=0;y--)k.attributes.push(o[y]),_.debug("Added attribute ",o[y].attributeName)},getEntities:function(){return Ac},addRelationship:function(l,o,y,k){var A={entityA:l,roleA:o,entityB:y,relSpec:k};gu.push(A),_.debug("Added new relationship :",A)},getRelationships:function(){return gu},clear:function(){Ac={},gu=[],Un()},setAccTitle:te,getAccTitle:wn,setAccDescription:oi,getAccDescription:hi};var po={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"};const Fo=po;var Dn={},o1=function(l){return(l.entityA+l.roleA+l.entityB).replace(/\s/g,"")},s1=0;const nd={setConf:function(l){for(var o=Object.keys(l),y=0;y<o.length;y++)Dn[o[y]]=l[o[y]]},draw:function(l,o,y,k){Dn=Bt().er,_.info("Drawing ER diagram");var A,N=Bt().securityLevel;N==="sandbox"&&(A=(0,E.select)("#i"+o));var L,O=(N==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body")).select("[id='".concat(o,"']"));(function(Ut,Ht){var Nt;Ut.append("defs").append("marker").attr("id",po.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",Ht.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),Ut.append("defs").append("marker").attr("id",po.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",Ht.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(Nt=Ut.append("defs").append("marker").attr("id",po.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",Ht.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),Nt.append("path").attr("stroke",Ht.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(Nt=Ut.append("defs").append("marker").attr("id",po.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",Ht.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),Nt.append("path").attr("stroke",Ht.stroke).attr("fill","none").attr("d","M21,0 L21,18"),Ut.append("defs").append("marker").attr("id",po.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",Ht.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),Ut.append("defs").append("marker").attr("id",po.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",Ht.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(Nt=Ut.append("defs").append("marker").attr("id",po.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",Ht.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),Nt.append("path").attr("stroke",Ht.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(Nt=Ut.append("defs").append("marker").attr("id",po.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",Ht.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),Nt.append("path").attr("stroke",Ht.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(O,Dn),L=new(mi()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Dn.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var P,Y,Z=function(Ut,Ht,Nt){var Pt;return Object.keys(Ht).forEach(function(Ot){var Qt=Ut.append("g").attr("id",Ot);Pt=Pt===void 0?Ot:Pt;var De="entity-"+Ot,we=Qt.append("text").attr("class","er entityLabel").attr("id",De).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Bt().fontFamily+"; font-size: "+Dn.fontSize+"px").text(Ot),ue=function(se,ie,de){var Le=Dn.entityPadding/3,Be=Dn.entityPadding/3,Ue=.85*Dn.fontSize,pr=ie.node().getBBox(),Ye=[],cr=!1,hr=!1,We=0,Ge=0,_r=0,_n=0,Tn=pr.height+2*Le,ti=1;de.forEach(function(Rn){Rn.attributeKeyType!==void 0&&(cr=!0),Rn.attributeComment!==void 0&&(hr=!0)}),de.forEach(function(Rn){var Ua="".concat(ie.node().id,"-attr-").concat(ti),ka=0,Ko=se.append("text").attr("class","er entityLabel").attr("id","".concat(Ua,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Bt().fontFamily+"; font-size: "+Ue+"px").text(Rn.attributeType),Jo=se.append("text").attr("class","er entityLabel").attr("id","".concat(Ua,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Bt().fontFamily+"; font-size: "+Ue+"px").text(Rn.attributeName),sa={};sa.tn=Ko,sa.nn=Jo;var Qo=Ko.node().getBBox(),Hc=Jo.node().getBBox();if(We=Math.max(We,Qo.width),Ge=Math.max(Ge,Hc.width),ka=Math.max(Qo.height,Hc.height),cr){var Wl=se.append("text").attr("class","er entityLabel").attr("id","".concat(Ua,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Bt().fontFamily+"; font-size: "+Ue+"px").text(Rn.attributeKeyType||"");sa.kn=Wl;var Gl=Wl.node().getBBox();_r=Math.max(_r,Gl.width),ka=Math.max(ka,Gl.height)}if(hr){var Vl=se.append("text").attr("class","er entityLabel").attr("id","".concat(Ua,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Bt().fontFamily+"; font-size: "+Ue+"px").text(Rn.attributeComment||"");sa.cn=Vl;var ph=Vl.node().getBBox();_n=Math.max(_n,ph.width),ka=Math.max(ka,ph.height)}sa.height=ka,Ye.push(sa),Tn+=ka+2*Le,ti+=1});var fn=4;cr&&(fn+=2),hr&&(fn+=2);var Di=We+Ge+_r+_n,un={width:Math.max(Dn.minEntityWidth,Math.max(pr.width+2*Dn.entityPadding,Di+Be*fn)),height:de.length>0?Tn:Math.max(Dn.minEntityHeight,pr.height+2*Dn.entityPadding)};if(de.length>0){var Za=Math.max(0,(un.width-Di-Be*fn)/(fn/2));ie.attr("transform","translate("+un.width/2+","+(Le+pr.height/2)+")");var da=pr.height+2*Le,fi="attributeBoxOdd";Ye.forEach(function(Rn){var Ua=da+Le+Rn.height/2;Rn.tn.attr("transform","translate("+Be+","+Ua+")");var ka=se.insert("rect","#"+Rn.tn.node().id).attr("class","er ".concat(fi)).attr("fill",Dn.fill).attr("fill-opacity","100%").attr("stroke",Dn.stroke).attr("x",0).attr("y",da).attr("width",We+2*Be+Za).attr("height",Rn.height+2*Le),Ko=parseFloat(ka.attr("x"))+parseFloat(ka.attr("width"));Rn.nn.attr("transform","translate("+(Ko+Be)+","+Ua+")");var Jo=se.insert("rect","#"+Rn.nn.node().id).attr("class","er ".concat(fi)).attr("fill",Dn.fill).attr("fill-opacity","100%").attr("stroke",Dn.stroke).attr("x",Ko).attr("y",da).attr("width",Ge+2*Be+Za).attr("height",Rn.height+2*Le),sa=parseFloat(Jo.attr("x"))+parseFloat(Jo.attr("width"));if(cr){Rn.kn.attr("transform","translate("+(sa+Be)+","+Ua+")");var Qo=se.insert("rect","#"+Rn.kn.node().id).attr("class","er ".concat(fi)).attr("fill",Dn.fill).attr("fill-opacity","100%").attr("stroke",Dn.stroke).attr("x",sa).attr("y",da).attr("width",_r+2*Be+Za).attr("height",Rn.height+2*Le);sa=parseFloat(Qo.attr("x"))+parseFloat(Qo.attr("width"))}hr&&(Rn.cn.attr("transform","translate("+(sa+Be)+","+Ua+")"),se.insert("rect","#"+Rn.cn.node().id).attr("class","er ".concat(fi)).attr("fill",Dn.fill).attr("fill-opacity","100%").attr("stroke",Dn.stroke).attr("x",sa).attr("y",da).attr("width",_n+2*Be+Za).attr("height",Rn.height+2*Le)),da+=Rn.height+2*Le,fi=fi=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else un.height=Math.max(Dn.minEntityHeight,Tn),ie.attr("transform","translate("+un.width/2+","+un.height/2+")");return un}(Qt,we,Ht[Ot].attributes),Kt=ue.width,le=ue.height,Yt=Qt.insert("rect","#"+De).attr("class","er entityBox").attr("fill",Dn.fill).attr("fill-opacity","100%").attr("stroke",Dn.stroke).attr("x",0).attr("y",0).attr("width",Kt).attr("height",le).node().getBBox();Nt.setNode(Ot,{width:Yt.width,height:Yt.height,shape:"rect",id:Ot})}),Pt}(O,k.db.getEntities(),L),nt=function(Ut,Ht){return Ut.forEach(function(Nt){Ht.setEdge(Nt.entityA,Nt.entityB,{relationship:Nt},o1(Nt))}),Ut}(k.db.getRelationships(),L);ss().layout(L),P=O,(Y=L).nodes().forEach(function(Ut){Ut!==void 0&&Y.node(Ut)!==void 0&&P.select("#"+Ut).attr("transform","translate("+(Y.node(Ut).x-Y.node(Ut).width/2)+","+(Y.node(Ut).y-Y.node(Ut).height/2)+" )")}),nt.forEach(function(Ut){(function(Ht,Nt,Pt,Ot,Qt){s1++;var De=Pt.edge(Nt.entityA,Nt.entityB,o1(Nt)),we=(0,E.line)().x(function(de){return de.x}).y(function(de){return de.y}).curve(E.curveBasis),ue=Ht.insert("path","#"+Ot).attr("class","er relationshipLine").attr("d",we(De.points)).attr("stroke",Dn.stroke).attr("fill","none");Nt.relSpec.relType===Qt.db.Identification.NON_IDENTIFYING&&ue.attr("stroke-dasharray","8,8");var Kt="";switch(Dn.arrowMarkerAbsolute&&(Kt=(Kt=(Kt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Nt.relSpec.cardA){case Qt.db.Cardinality.ZERO_OR_ONE:ue.attr("marker-end","url("+Kt+"#"+Fo.ZERO_OR_ONE_END+")");break;case Qt.db.Cardinality.ZERO_OR_MORE:ue.attr("marker-end","url("+Kt+"#"+Fo.ZERO_OR_MORE_END+")");break;case Qt.db.Cardinality.ONE_OR_MORE:ue.attr("marker-end","url("+Kt+"#"+Fo.ONE_OR_MORE_END+")");break;case Qt.db.Cardinality.ONLY_ONE:ue.attr("marker-end","url("+Kt+"#"+Fo.ONLY_ONE_END+")")}switch(Nt.relSpec.cardB){case Qt.db.Cardinality.ZERO_OR_ONE:ue.attr("marker-start","url("+Kt+"#"+Fo.ZERO_OR_ONE_START+")");break;case Qt.db.Cardinality.ZERO_OR_MORE:ue.attr("marker-start","url("+Kt+"#"+Fo.ZERO_OR_MORE_START+")");break;case Qt.db.Cardinality.ONE_OR_MORE:ue.attr("marker-start","url("+Kt+"#"+Fo.ONE_OR_MORE_START+")");break;case Qt.db.Cardinality.ONLY_ONE:ue.attr("marker-start","url("+Kt+"#"+Fo.ONLY_ONE_START+")")}var le=ue.node().getTotalLength(),Yt=ue.node().getPointAtLength(.5*le),se="rel"+s1,ie=Ht.append("text").attr("class","er relationshipLabel").attr("id",se).attr("x",Yt.x).attr("y",Yt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Bt().fontFamily+"; font-size: "+Dn.fontSize+"px").text(Nt.roleA).node().getBBox();Ht.insert("rect","#"+se).attr("class","er relationshipLabelBox").attr("x",Yt.x-ie.width/2).attr("y",Yt.y-ie.height/2).attr("width",ie.width).attr("height",ie.height).attr("fill","white").attr("fill-opacity","85%")})(O,Ut,L,Z,k)});var lt=Dn.diagramPadding,ct=O.node().getBBox(),Mt=ct.width+2*lt,It=ct.height+2*lt;ea(O,It,Mt,Dn.useMaxWidth),O.attr("viewBox","".concat(ct.x-lt," ").concat(ct.y-lt," ").concat(Mt," ").concat(It)),Pn(k.db,O,o)}};var id=h(5890),ad=h.n(id);function yu(l){return yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},yu(l)}function mu(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var go,hl,od="flowchart-",_u=0,bu=Bt(),ci={},hs=[],zs=[],ro=[],ba={},dl={},fl=0,qa=!0,pl=[],gl=function(l){return yr.sanitizeText(l,bu)},Us=function(l){for(var o=Object.keys(ci),y=0;y<o.length;y++)if(ci[o[y]].id===l)return ci[o[y]].domId;return l},sd=function(l,o,y,k){var A={start:l,end:o,type:void 0,text:""};(k=y.text)!==void 0&&(A.text=gl(k.trim()),A.text[0]==='"'&&A.text[A.text.length-1]==='"'&&(A.text=A.text.substring(1,A.text.length-1))),y!==void 0&&(A.type=y.type,A.stroke=y.stroke,A.length=y.length),hs.push(A)},vu=function(l,o){l.split(",").forEach(function(y){var k=y;ci[k]!==void 0&&ci[k].classes.push(o),ba[k]!==void 0&&ba[k].classes.push(o)})},c1=function(l){var o=(0,E.select)(".mermaidTooltip");(o._groups||o)[0][0]===null&&(o=(0,E.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,E.select)(l).select("svg").selectAll("g.node").on("mouseover",function(){var y=(0,E.select)(this);if(y.attr("title")!==null){var k=this.getBoundingClientRect();o.transition().duration(200).style("opacity",".9"),o.text(y.attr("title")).style("left",window.scrollX+k.left+(k.right-k.left)/2+"px").style("top",window.scrollY+k.top-14+document.body.scrollTop+"px"),o.html(o.html().replace(/&lt;br\/&gt;/g,"<br/>")),y.classed("hover",!0)}}).on("mouseout",function(){o.transition().duration(500).style("opacity",0),(0,E.select)(this).classed("hover",!1)})};pl.push(c1);var cd=function(l){for(var o=0;o<ro.length;o++)if(ro[o].id===l)return o;return-1},Cc=-1,l1=[],ld=function l(o,y){var k=ro[y].nodes;if(!((Cc+=1)>2e3)){if(l1[Cc]=y,ro[y].id===o)return{result:!0,count:0};for(var A=0,N=1;A<k.length;){var L=cd(k[A]);if(L>=0){var O=l(o,L);if(O.result)return{result:!0,count:N+O.count};N+=O.count}A+=1}return{result:!1,count:N}}},yl=function(l,o){var y=!1;return l.forEach(function(k){k.nodes.indexOf(o)>=0&&(y=!0)}),y},xu=function(l,o){var y=[];return l.nodes.forEach(function(k,A){yl(o,k)||y.push(l.nodes[A])}),{nodes:y}};const no={parseDirective:function(l,o,y){xr.parseDirective(this,l,o,y)},defaultConfig:function(){return ui.flowchart},setAccTitle:te,getAccTitle:wn,getAccDescription:hi,setAccDescription:oi,addVertex:function(l,o,y,k,A,N){var L,O=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},P=l;P!==void 0&&P.trim().length!==0&&(ci[P]===void 0&&(ci[P]={id:P,domId:od+P+"-"+_u,styles:[],classes:[]}),_u++,o!==void 0?(bu=Bt(),(L=gl(o.trim()))[0]==='"'&&L[L.length-1]==='"'&&(L=L.substring(1,L.length-1)),ci[P].text=L):ci[P].text===void 0&&(ci[P].text=l),y!==void 0&&(ci[P].type=y),k!=null&&k.forEach(function(Y){ci[P].styles.push(Y)}),A!=null&&A.forEach(function(Y){ci[P].classes.push(Y)}),N!==void 0&&(ci[P].dir=N),ci[P].props=O)},lookUpDomId:Us,addLink:function(l,o,y,k){var A,N;for(A=0;A<l.length;A++)for(N=0;N<o.length;N++)sd(l[A],o[N],y,k)},updateLinkInterpolate:function(l,o){l.forEach(function(y){y==="default"?hs.defaultInterpolate=o:hs[y].interpolate=o})},updateLink:function(l,o){l.forEach(function(y){y==="default"?hs.defaultStyle=o:(en.isSubstringInArray("fill",o)===-1&&o.push("fill:none"),hs[y].style=o)})},addClass:function(l,o){zs[l]===void 0&&(zs[l]={id:l,styles:[],textStyles:[]}),o!=null&&o.forEach(function(y){if(y.match("color")){var k=y.replace("fill","bgFill").replace("color","fill");zs[l].textStyles.push(k)}zs[l].styles.push(y)})},setDirection:function(l){(go=l).match(/.*</)&&(go="RL"),go.match(/.*\^/)&&(go="BT"),go.match(/.*>/)&&(go="LR"),go.match(/.*v/)&&(go="TB")},setClass:vu,setTooltip:function(l,o){l.split(",").forEach(function(y){o!==void 0&&(dl[hl==="gen-1"?Us(y):y]=gl(o))})},getTooltip:function(l){return dl[l]},setClickEvent:function(l,o,y){l.split(",").forEach(function(k){(function(A,N,L){var O=Us(A);if(Bt().securityLevel==="loose"&&N!==void 0){var P=[];if(typeof L=="string"){P=L.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var Y=0;Y<P.length;Y++){var Z=P[Y].trim();Z.charAt(0)==='"'&&Z.charAt(Z.length-1)==='"'&&(Z=Z.substr(1,Z.length-2)),P[Y]=Z}}P.length===0&&P.push(A),ci[A]!==void 0&&(ci[A].haveCallback=!0,pl.push(function(){var nt=document.querySelector('[id="'.concat(O,'"]'));nt!==null&&nt.addEventListener("click",function(){var lt;en.runFunc.apply(en,[N].concat(function(ct){if(Array.isArray(ct))return mu(ct)}(lt=P)||function(ct){if(typeof Symbol<"u"&&ct[Symbol.iterator]!=null||ct["@@iterator"]!=null)return Array.from(ct)}(lt)||function(ct,Mt){if(ct){if(typeof ct=="string")return mu(ct,Mt);var It=Object.prototype.toString.call(ct).slice(8,-1);return It==="Object"&&ct.constructor&&(It=ct.constructor.name),It==="Map"||It==="Set"?Array.from(ct):It==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(It)?mu(ct,Mt):void 0}}(lt)||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.`)}()))},!1)}))}})(k,o,y)}),vu(l,"clickable")},setLink:function(l,o,y){l.split(",").forEach(function(k){ci[k]!==void 0&&(ci[k].link=en.formatUrl(o,bu),ci[k].linkTarget=y)}),vu(l,"clickable")},bindFunctions:function(l){pl.forEach(function(o){o(l)})},getDirection:function(){return go.trim()},getVertices:function(){return ci},getEdges:function(){return hs},getClasses:function(){return zs},clear:function(l){ci={},zs={},hs=[],(pl=[]).push(c1),ro=[],ba={},fl=0,dl=[],qa=!0,hl=l||"gen-1",Un()},setGen:function(l){hl=l||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(l,o,y){var k=l.trim(),A=y;l===y&&y.match(/\s/)&&(k=void 0);var N=[],L=function(nt){var lt,ct={boolean:{},number:{},string:{}},Mt=[],It=nt.filter(function(Ut){var Ht=yu(Ut);return Ut.stmt&&Ut.stmt==="dir"?(lt=Ut.value,!1):Ut.trim()!==""&&(Ht in ct?!ct[Ht].hasOwnProperty(Ut)&&(ct[Ht][Ut]=!0):!(Mt.indexOf(Ut)>=0)&&Mt.push(Ut))});return{nodeList:It,dir:lt}}(N.concat.apply(N,o)),O=L.nodeList,P=L.dir;if(N=O,hl==="gen-1")for(var Y=0;Y<N.length;Y++)N[Y]=Us(N[Y]);k=k||"subGraph"+fl,A=gl(A=A||""),fl+=1;var Z={id:k,nodes:N,title:A.trim(),classes:[],dir:P};return _.info("Adding",Z.id,Z.nodes,Z.dir),Z.nodes=xu(Z,ro).nodes,ro.push(Z),ba[k]=Z,k},getDepthFirstPos:function(l){return l1[l]},indexNodes:function(){Cc=-1,ro.length>0&&ld("none",ro.length-1)},getSubGraphs:function(){return ro},destructLink:function(l,o){var y,k=function(A){var N=A.trim(),L=N.slice(0,-1),O="arrow_open";switch(N.slice(-1)){case"x":O="arrow_cross",N[0]==="x"&&(O="double_"+O,L=L.slice(1));break;case">":O="arrow_point",N[0]==="<"&&(O="double_"+O,L=L.slice(1));break;case"o":O="arrow_circle",N[0]==="o"&&(O="double_"+O,L=L.slice(1))}var P="normal",Y=L.length-1;L[0]==="="&&(P="thick");var Z=function(nt,lt){for(var ct=lt.length,Mt=0,It=0;It<ct;++It)lt[It]==="."&&++Mt;return Mt}(0,L);return Z&&(P="dotted",Y=Z),{type:O,stroke:P,length:Y}}(l);if(o){if(y=function(A){var N=A.trim(),L="arrow_open";switch(N[0]){case"<":L="arrow_point",N=N.slice(1);break;case"x":L="arrow_cross",N=N.slice(1);break;case"o":L="arrow_circle",N=N.slice(1)}var O="normal";return N.indexOf("=")!==-1&&(O="thick"),N.indexOf(".")!==-1&&(O="dotted"),{type:L,stroke:O}}(o),y.stroke!==k.stroke)return{type:"INVALID",stroke:"INVALID"};if(y.type==="arrow_open")y.type=k.type;else{if(y.type!==k.type)return{type:"INVALID",stroke:"INVALID"};y.type="double_"+y.type}return y.type==="double_arrow"&&(y.type="double_arrow_point"),y.length=k.length,y}return k},lex:{firstGraph:function(){return!!qa&&(qa=!1,!0)}},exists:yl,makeUniq:xu};var Ys=h(4949),Li=h.n(Ys),u1=h(8284),Ui=h.n(u1);function Wi(l,o,y){var k=.9*(o.width+o.height),A=[{x:k/2,y:0},{x:k,y:-k/2},{x:k/2,y:-k},{x:0,y:-k/2}],N=va(l,k,k,A);return y.intersect=function(L){return Li().intersect.polygon(y,A,L)},N}function h1(l,o,y){var k=o.height,A=k/4,N=o.width+2*A,L=[{x:A,y:0},{x:N-A,y:0},{x:N,y:-k/2},{x:N-A,y:-k},{x:A,y:-k},{x:0,y:-k/2}],O=va(l,N,k,L);return y.intersect=function(P){return Li().intersect.polygon(y,L,P)},O}function wu(l,o,y){var k=o.width,A=o.height,N=[{x:-A/2,y:0},{x:k,y:0},{x:k,y:-A},{x:-A/2,y:-A},{x:0,y:-A/2}],L=va(l,k,A,N);return y.intersect=function(O){return Li().intersect.polygon(y,N,O)},L}function ml(l,o,y){var k=o.width,A=o.height,N=[{x:-2*A/6,y:0},{x:k-A/6,y:0},{x:k+2*A/6,y:-A},{x:A/6,y:-A}],L=va(l,k,A,N);return y.intersect=function(O){return Li().intersect.polygon(y,N,O)},L}function _l(l,o,y){var k=o.width,A=o.height,N=[{x:2*A/6,y:0},{x:k+A/6,y:0},{x:k-2*A/6,y:-A},{x:-A/6,y:-A}],L=va(l,k,A,N);return y.intersect=function(O){return Li().intersect.polygon(y,N,O)},L}function ud(l,o,y){var k=o.width,A=o.height,N=[{x:-2*A/6,y:0},{x:k+2*A/6,y:0},{x:k-A/6,y:-A},{x:A/6,y:-A}],L=va(l,k,A,N);return y.intersect=function(O){return Li().intersect.polygon(y,N,O)},L}function yo(l,o,y){var k=o.width,A=o.height,N=[{x:A/6,y:0},{x:k-A/6,y:0},{x:k+2*A/6,y:-A},{x:-2*A/6,y:-A}],L=va(l,k,A,N);return y.intersect=function(O){return Li().intersect.polygon(y,N,O)},L}function d1(l,o,y){var k=o.width,A=o.height,N=[{x:0,y:0},{x:k+A/2,y:0},{x:k,y:-A/2},{x:k+A/2,y:-A},{x:0,y:-A}],L=va(l,k,A,N);return y.intersect=function(O){return Li().intersect.polygon(y,N,O)},L}function f1(l,o,y){var k=o.height,A=o.width+k/4,N=l.insert("rect",":first-child").attr("rx",k/2).attr("ry",k/2).attr("x",-A/2).attr("y",-k/2).attr("width",A).attr("height",k);return y.intersect=function(L){return Li().intersect.rect(y,L)},N}function hd(l,o,y){var k=o.width,A=o.height,N=[{x:0,y:0},{x:k,y:0},{x:k,y:-A},{x:0,y:-A},{x:0,y:0},{x:-8,y:0},{x:k+8,y:0},{x:k+8,y:-A},{x:-8,y:-A},{x:-8,y:0}],L=va(l,k,A,N);return y.intersect=function(O){return Li().intersect.polygon(y,N,O)},L}function dd(l,o,y){var k=o.width,A=k/2,N=A/(2.5+k/50),L=o.height+N,O="M 0,"+N+" a "+A+","+N+" 0,0,0 "+k+" 0 a "+A+","+N+" 0,0,0 "+-k+" 0 l 0,"+L+" a "+A+","+N+" 0,0,0 "+k+" 0 l 0,"+-L,P=l.attr("label-offset-y",N).insert("path",":first-child").attr("d",O).attr("transform","translate("+-k/2+","+-(L/2+N)+")");return y.intersect=function(Y){var Z=Li().intersect.rect(y,Y),nt=Z.x-y.x;if(A!=0&&(Math.abs(nt)<y.width/2||Math.abs(nt)==y.width/2&&Math.abs(Z.y-y.y)>y.height/2-N)){var lt=N*N*(1-nt*nt/(A*A));lt!=0&&(lt=Math.sqrt(lt)),lt=N-lt,Y.y-y.y>0&&(lt=-lt),Z.y+=lt}return Z},P}function va(l,o,y,k){return l.insert("polygon",":first-child").attr("points",k.map(function(A){return A.x+","+A.y}).join(" ")).attr("transform","translate("+-o/2+","+y/2+")")}const fd=function(l){l.shapes().question=Wi,l.shapes().hexagon=h1,l.shapes().stadium=f1,l.shapes().subroutine=hd,l.shapes().cylinder=dd,l.shapes().rect_left_inv_arrow=wu,l.shapes().lean_right=ml,l.shapes().lean_left=_l,l.shapes().trapezoid=ud,l.shapes().inv_trapezoid=yo,l.shapes().rect_right_inv_arrow=d1};var p1={},g1=function(l,o,y,k,A,N){Bt().securityLevel;var L=k?k.select('[id="'.concat(y,'"]')):(0,E.select)('[id="'.concat(y,'"]')),O=A||document;Object.keys(l).forEach(function(P){var Y=l[P],Z="default";Y.classes.length>0&&(Z=Y.classes.join(" "));var nt,lt=La(Y.styles),ct=Y.text!==void 0?Y.text:Y.id;if(dr(Bt().flowchart.htmlLabels)){var Mt={label:ct.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Qt){return"<i class='".concat(Qt.replace(":"," "),"'></i>")})};(nt=Ui()(L,Mt).node()).parentNode.removeChild(nt)}else{var It=O.createElementNS("http://www.w3.org/2000/svg","text");It.setAttribute("style",lt.labelStyle.replace("color:","fill:"));for(var Ut=ct.split(yr.lineBreakRegex),Ht=0;Ht<Ut.length;Ht++){var Nt=O.createElementNS("http://www.w3.org/2000/svg","tspan");Nt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Nt.setAttribute("dy","1em"),Nt.setAttribute("x","1"),Nt.textContent=Ut[Ht],It.appendChild(Nt)}nt=It}var Pt=0,Ot="";switch(Y.type){case"round":Pt=5,Ot="rect";break;case"square":case"group":default:Ot="rect";break;case"diamond":Ot="question";break;case"hexagon":Ot="hexagon";break;case"odd":case"odd_right":Ot="rect_left_inv_arrow";break;case"lean_right":Ot="lean_right";break;case"lean_left":Ot="lean_left";break;case"trapezoid":Ot="trapezoid";break;case"inv_trapezoid":Ot="inv_trapezoid";break;case"circle":Ot="circle";break;case"ellipse":Ot="ellipse";break;case"stadium":Ot="stadium";break;case"subroutine":Ot="subroutine";break;case"cylinder":Ot="cylinder"}_.warn("Adding node",Y.id,Y.domId),o.setNode(N.db.lookUpDomId(Y.id),{labelType:"svg",labelStyle:lt.labelStyle,shape:Ot,label:nt,rx:Pt,ry:Pt,class:Z,style:lt.style,id:N.db.lookUpDomId(Y.id)})})},bl=function(l,o,y){var k,A,N=0;if(l.defaultStyle!==void 0){var L=La(l.defaultStyle);k=L.style,A=L.labelStyle}l.forEach(function(O){N++;var P="L-"+O.start+"-"+O.end,Y="LS-"+O.start,Z="LE-"+O.end,nt={};O.type==="arrow_open"?nt.arrowhead="none":nt.arrowhead="normal";var lt="",ct="";if(O.style!==void 0){var Mt=La(O.style);lt=Mt.style,ct=Mt.labelStyle}else switch(O.stroke){case"normal":lt="fill:none",k!==void 0&&(lt=k),A!==void 0&&(ct=A);break;case"dotted":lt="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":lt=" stroke-width: 3.5px;fill:none"}nt.style=lt,nt.labelStyle=ct,O.interpolate!==void 0?nt.curve=ta(O.interpolate,E.curveLinear):l.defaultInterpolate!==void 0?nt.curve=ta(l.defaultInterpolate,E.curveLinear):nt.curve=ta(p1.curve,E.curveLinear),O.text===void 0?O.style!==void 0&&(nt.arrowheadStyle="fill: #333"):(nt.arrowheadStyle="fill: #333",nt.labelpos="c",dr(Bt().flowchart.htmlLabels)?(nt.labelType="html",nt.label='<span id="L-'.concat(P,'" class="edgeLabel L-').concat(Y,"' L-").concat(Z,'" style="').concat(nt.labelStyle,'">').concat(O.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(It){return"<i class='".concat(It.replace(":"," "),"'></i>")}),"</span>")):(nt.labelType="text",nt.label=O.text.replace(yr.lineBreakRegex,`
`),O.style===void 0&&(nt.style=nt.style||"stroke: #333; stroke-width: 1.5px;fill:none"),nt.labelStyle=nt.labelStyle.replace("color:","fill:"))),nt.id=P,nt.class=Y+" "+Z,nt.minlen=O.length||1,o.setEdge(y.db.lookUpDomId(O.start),y.db.lookUpDomId(O.end),nt,N)})};const vl={setConf:function(l){for(var o=Object.keys(l),y=0;y<o.length;y++)p1[o[y]]=l[o[y]]},addVertices:g1,addEdges:bl,getClasses:function(l,o){_.info("Extracting classes"),o.db.clear();try{return o.parse(l),o.db.getClasses()}catch{return}},draw:function(l,o,y,k){_.info("Drawing flowchart"),k.db.clear();var A,N=Bt().securityLevel;N==="sandbox"&&(A=(0,E.select)("#i"+o));var L=N==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),O=N==="sandbox"?A.nodes()[0].contentDocument:document;try{k.parser.parse(l)}catch{_.debug("Parsing failed")}var P=k.db.getDirection();P===void 0&&(P="TD");for(var Y,Z=Bt().flowchart,nt=Z.nodeSpacing||50,lt=Z.rankSpacing||50,ct=new(mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:P,nodesep:nt,ranksep:lt,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),Mt=k.db.getSubGraphs(),It=Mt.length-1;It>=0;It--)Y=Mt[It],k.db.addVertex(Y.id,Y.title,"group",void 0,Y.classes);var Ut=k.db.getVertices();_.warn("Get vertices",Ut);var Ht=k.db.getEdges(),Nt=0;for(Nt=Mt.length-1;Nt>=0;Nt--){Y=Mt[Nt],(0,E.selectAll)("cluster").append("text");for(var Pt=0;Pt<Y.nodes.length;Pt++)_.warn("Setting subgraph",Y.nodes[Pt],k.db.lookUpDomId(Y.nodes[Pt]),k.db.lookUpDomId(Y.id)),ct.setParent(k.db.lookUpDomId(Y.nodes[Pt]),k.db.lookUpDomId(Y.id))}g1(Ut,ct,o,L,O,k),bl(Ht,ct,k);var Ot=new(Li()).render;fd(Ot),Ot.arrows().none=function(Ye,cr,hr,We){var Ge=Ye.append("marker").attr("id",cr).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");Li().util.applyStyle(Ge,hr[We+"Style"])},Ot.arrows().normal=function(Ye,cr){Ye.append("marker").attr("id",cr).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")};var Qt=L.select('[id="'.concat(o,'"]'));Pn(k.db,Qt,o);var De=L.select("#"+o+" g");for(Ot(De,ct),De.selectAll("g.node").attr("title",function(){return k.db.getTooltip(this.id)}),k.db.indexNodes("subGraph"+Nt),Nt=0;Nt<Mt.length;Nt++)if((Y=Mt[Nt]).title!=="undefined"){var we=O.querySelectorAll("#"+o+' [id="'+k.db.lookUpDomId(Y.id)+'"] rect'),ue=O.querySelectorAll("#"+o+' [id="'+k.db.lookUpDomId(Y.id)+'"]'),Kt=we[0].x.baseVal.value,le=we[0].y.baseVal.value,Yt=we[0].width.baseVal.value,se=(0,E.select)(ue[0]).select(".label");se.attr("transform","translate(".concat(Kt+Yt/2,", ").concat(le+14,")")),se.attr("id",o+"Text");for(var ie=0;ie<Y.classes.length;ie++)ue[0].classList.add(Y.classes[ie])}dr(Z.htmlLabels);for(var de=O.querySelectorAll('[id="'+o+'"] .edgeLabel .label'),Le=0;Le<de.length;Le++){var Be=de[Le],Ue=Be.getBBox(),pr=O.createElementNS("http://www.w3.org/2000/svg","rect");pr.setAttribute("rx",0),pr.setAttribute("ry",0),pr.setAttribute("width",Ue.width),pr.setAttribute("height",Ue.height),Be.insertBefore(pr,Be.firstChild)}Is(ct,Qt,Z.diagramPadding,Z.useMaxWidth),Object.keys(Ut).forEach(function(Ye){var cr=Ut[Ye];if(cr.link){var hr=L.select("#"+o+' [id="'+k.db.lookUpDomId(Ye)+'"]');if(hr){var We=O.createElementNS("http://www.w3.org/2000/svg","a");We.setAttributeNS("http://www.w3.org/2000/svg","class",cr.classes.join(" ")),We.setAttributeNS("http://www.w3.org/2000/svg","href",cr.link),We.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),N==="sandbox"?We.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):cr.linkTarget&&We.setAttributeNS("http://www.w3.org/2000/svg","target",cr.linkTarget);var Ge=hr.insert(function(){return We},":first-child"),_r=hr.select(".label-container");_r&&Ge.append(function(){return _r.node()});var _n=hr.select(".label");_n&&Ge.append(function(){return _n.node()})}}})}};var y1={},m1=function(l,o,y,k,A,N){var L=k.select('[id="'.concat(y,'"]'));Object.keys(l).forEach(function(O){var P=l[O],Y="default";P.classes.length>0&&(Y=P.classes.join(" "));var Z,nt=La(P.styles),lt=P.text!==void 0?P.text:P.id;if(dr(Bt().flowchart.htmlLabels)){var ct={label:lt.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Ot){return"<i class='".concat(Ot.replace(":"," "),"'></i>")})};(Z=Ui()(L,ct).node()).parentNode.removeChild(Z)}else{var Mt=A.createElementNS("http://www.w3.org/2000/svg","text");Mt.setAttribute("style",nt.labelStyle.replace("color:","fill:"));for(var It=lt.split(yr.lineBreakRegex),Ut=0;Ut<It.length;Ut++){var Ht=A.createElementNS("http://www.w3.org/2000/svg","tspan");Ht.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Ht.setAttribute("dy","1em"),Ht.setAttribute("x","1"),Ht.textContent=It[Ut],Mt.appendChild(Ht)}Z=Mt}var Nt=0,Pt="";switch(P.type){case"round":Nt=5,Pt="rect";break;case"square":case"group":default:Pt="rect";break;case"diamond":Pt="question";break;case"hexagon":Pt="hexagon";break;case"odd":case"odd_right":Pt="rect_left_inv_arrow";break;case"lean_right":Pt="lean_right";break;case"lean_left":Pt="lean_left";break;case"trapezoid":Pt="trapezoid";break;case"inv_trapezoid":Pt="inv_trapezoid";break;case"circle":Pt="circle";break;case"ellipse":Pt="ellipse";break;case"stadium":Pt="stadium";break;case"subroutine":Pt="subroutine";break;case"cylinder":Pt="cylinder";break;case"doublecircle":Pt="doublecircle"}o.setNode(P.id,{labelStyle:nt.labelStyle,shape:Pt,labelText:lt,rx:Nt,ry:Nt,class:Y,style:nt.style,id:P.id,link:P.link,linkTarget:P.linkTarget,tooltip:N.db.getTooltip(P.id)||"",domId:N.db.lookUpDomId(P.id),haveCallback:P.haveCallback,width:P.type==="group"?500:void 0,dir:P.dir,type:P.type,props:P.props,padding:Bt().flowchart.padding}),_.info("setNode",{labelStyle:nt.labelStyle,shape:Pt,labelText:lt,rx:Nt,ry:Nt,class:Y,style:nt.style,id:P.id,domId:N.db.lookUpDomId(P.id),width:P.type==="group"?500:void 0,type:P.type,dir:P.dir,props:P.props,padding:Bt().flowchart.padding})})},_1=function(l,o,y){_.info("abc78 edges = ",l);var k,A,N=0,L={};if(l.defaultStyle!==void 0){var O=La(l.defaultStyle);k=O.style,A=O.labelStyle}l.forEach(function(P){N++;var Y="L-"+P.start+"-"+P.end;L[Y]===void 0?(L[Y]=0,_.info("abc78 new entry",Y,L[Y])):(L[Y]++,_.info("abc78 new entry",Y,L[Y]));var Z=Y+"-"+L[Y];_.info("abc78 new link id to be used is",Y,Z,L[Y]);var nt="LS-"+P.start,lt="LE-"+P.end,ct={style:"",labelStyle:""};switch(ct.minlen=P.length||1,P.type==="arrow_open"?ct.arrowhead="none":ct.arrowhead="normal",ct.arrowTypeStart="arrow_open",ct.arrowTypeEnd="arrow_open",P.type){case"double_arrow_cross":ct.arrowTypeStart="arrow_cross";case"arrow_cross":ct.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":ct.arrowTypeStart="arrow_point";case"arrow_point":ct.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":ct.arrowTypeStart="arrow_circle";case"arrow_circle":ct.arrowTypeEnd="arrow_circle"}var Mt="",It="";switch(P.stroke){case"normal":Mt="fill:none;",k!==void 0&&(Mt=k),A!==void 0&&(It=A),ct.thickness="normal",ct.pattern="solid";break;case"dotted":ct.thickness="normal",ct.pattern="dotted",ct.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":ct.thickness="thick",ct.pattern="solid",ct.style="stroke-width: 3.5px;fill:none;"}if(P.style!==void 0){var Ut=La(P.style);Mt=Ut.style,It=Ut.labelStyle}ct.style=ct.style+=Mt,ct.labelStyle=ct.labelStyle+=It,P.interpolate!==void 0?ct.curve=ta(P.interpolate,E.curveLinear):l.defaultInterpolate!==void 0?ct.curve=ta(l.defaultInterpolate,E.curveLinear):ct.curve=ta(y1.curve,E.curveLinear),P.text===void 0?P.style!==void 0&&(ct.arrowheadStyle="fill: #333"):(ct.arrowheadStyle="fill: #333",ct.labelpos="c"),ct.labelType="text",ct.label=P.text.replace(yr.lineBreakRegex,`
`),P.style===void 0&&(ct.style=ct.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),ct.labelStyle=ct.labelStyle.replace("color:","fill:"),ct.id=Z,ct.classes="flowchart-link "+nt+" "+lt,o.setEdge(P.start,P.end,ct,N)})};const ku={setConf:function(l){for(var o=Object.keys(l),y=0;y<o.length;y++)y1[o[y]]=l[o[y]]},addVertices:m1,addEdges:_1,getClasses:function(l,o){_.info("Extracting classes"),o.db.clear();try{return o.parse(l),o.db.getClasses()}catch{return}},draw:function(l,o,y,k){_.info("Drawing flowchart"),k.db.clear(),no.setGen("gen-2"),k.parser.parse(l);var A=k.db.getDirection();A===void 0&&(A="TD");var N,L=Bt().flowchart,O=L.nodeSpacing||50,P=L.rankSpacing||50,Y=Bt().securityLevel;Y==="sandbox"&&(N=(0,E.select)("#i"+o));var Z,nt=Y==="sandbox"?(0,E.select)(N.nodes()[0].contentDocument.body):(0,E.select)("body"),lt=Y==="sandbox"?N.nodes()[0].contentDocument:document,ct=new(mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:A,nodesep:O,ranksep:P,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),Mt=k.db.getSubGraphs();_.info("Subgraphs - ",Mt);for(var It=Mt.length-1;It>=0;It--)Z=Mt[It],_.info("Subgraph - ",Z),k.db.addVertex(Z.id,Z.title,"group",void 0,Z.classes,Z.dir);var Ut=k.db.getVertices(),Ht=k.db.getEdges();_.info(Ht);var Nt=0;for(Nt=Mt.length-1;Nt>=0;Nt--){Z=Mt[Nt],(0,E.selectAll)("cluster").append("text");for(var Pt=0;Pt<Z.nodes.length;Pt++)_.info("Setting up subgraphs",Z.nodes[Pt],Z.id),ct.setParent(Z.nodes[Pt],Z.id)}m1(Ut,ct,o,nt,lt,k),_1(Ht,ct);var Ot=nt.select('[id="'.concat(o,'"]'));Pn(k.db,Ot,o);var Qt=nt.select("#"+o+" g");if(ul(Qt,ct,["point","circle","cross"],"flowchart",o),Is(ct,Ot,L.diagramPadding,L.useMaxWidth),k.db.indexNodes("subGraph"+Nt),!L.htmlLabels)for(var De=lt.querySelectorAll('[id="'+o+'"] .edgeLabel .label'),we=0;we<De.length;we++){var ue=De[we],Kt=ue.getBBox(),le=lt.createElementNS("http://www.w3.org/2000/svg","rect");le.setAttribute("rx",0),le.setAttribute("ry",0),le.setAttribute("width",Kt.width),le.setAttribute("height",Kt.height),ue.insertBefore(le,ue.firstChild)}Object.keys(Ut).forEach(function(Yt){var se=Ut[Yt];if(se.link){var ie=(0,E.select)("#"+o+' [id="'+Yt+'"]');if(ie){var de=lt.createElementNS("http://www.w3.org/2000/svg","a");de.setAttributeNS("http://www.w3.org/2000/svg","class",se.classes.join(" ")),de.setAttributeNS("http://www.w3.org/2000/svg","href",se.link),de.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),Y==="sandbox"?de.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):se.linkTarget&&de.setAttributeNS("http://www.w3.org/2000/svg","target",se.linkTarget);var Le=ie.insert(function(){return de},":first-child"),Be=ie.select(".label-container");Be&&Le.append(function(){return Be.node()});var Ue=ie.select(".label");Ue&&Le.append(function(){return Ue.node()})}}})}};var Eu=h(3602),Tu=h.n(Eu);function Po(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var zo,Nc,xa="",xl="",wl="",ds=[],fs=[],Su={},Au=[],Cu=[],js="",kl=["active","done","crit","milestone"],$s=[],ps=!1,mo=!1,Nu=0,El=function(l,o,y,k){return!(k.indexOf(l.format(o.trim()))>=0)&&(l.isoWeekday()>=6&&y.indexOf("weekends")>=0||y.indexOf(l.format("dddd").toLowerCase())>=0||y.indexOf(l.format(o.trim()))>=0)},Iu=function(l,o,y,k){if(y.length&&!l.manualEndTime){var A=f()(l.startTime,o,!0);A.add(1,"d");var N=f()(l.endTime,o,!0),L=gs(A,N,o,y,k);l.endTime=N.toDate(),l.renderEndTime=L}},gs=function(l,o,y,k,A){for(var N=!1,L=null;l<=o;)N||(L=o.toDate()),(N=El(l,y,k,A))&&o.add(1,"d"),l.add(1,"d");return L},Lu=function(l,o,y){y=y.trim();var k=/^after\s+([\d\w- ]+)/.exec(y.trim());if(k!==null){var A=null;if(k[1].split(" ").forEach(function(O){var P=Hs(O);P!==void 0&&(A?P.endTime>A.endTime&&(A=P):A=P)}),A)return A.endTime;var N=new Date;return N.setHours(0,0,0,0),N}var L=f()(y,o.trim(),!0);return L.isValid()?L.toDate():(_.debug("Invalid date:"+y),_.debug("With date format:"+o.trim()),new Date)},Uo=function(l,o){if(l!==null)switch(l[2]){case"s":o.add(l[1],"seconds");break;case"m":o.add(l[1],"minutes");break;case"h":o.add(l[1],"hours");break;case"d":o.add(l[1],"days");break;case"w":o.add(l[1],"weeks")}return o.toDate()},b1=function(l,o,y,k){k=k||!1,y=y.trim();var A=f()(y,o.trim(),!0);return A.isValid()?(k&&A.add(1,"d"),A.toDate()):Uo(/^([\d]+)([wdhms])/.exec(y.trim()),f()(l))},v1=0,ys=function(l){return l===void 0?"task"+(v1+=1):l},bi=[],x1={},Hs=function(l){var o=x1[l];return bi[o]},w1=function(){for(var l=function(k){var A=bi[k],N="";switch(bi[k].raw.startTime.type){case"prevTaskEnd":var L=Hs(A.prevTaskId);A.startTime=L.endTime;break;case"getStartDate":(N=Lu(0,xa,bi[k].raw.startTime.startData))&&(bi[k].startTime=N)}return bi[k].startTime&&(bi[k].endTime=b1(bi[k].startTime,xa,bi[k].raw.endTime.data,ps),bi[k].endTime&&(bi[k].processed=!0,bi[k].manualEndTime=f()(bi[k].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Iu(bi[k],xa,fs,ds))),bi[k].processed},o=!0,y=0;y<bi.length;y++)l(y),o=o&&bi[y].processed;return o},Mu=function(l,o){l.split(",").forEach(function(y){var k=Hs(y);k!==void 0&&k.classes.push(o)})},k1=function(l,o){$s.push(function(){var y=document.querySelector('[id="'.concat(l,'"]'));y!==null&&y.addEventListener("click",function(){o()})}),$s.push(function(){var y=document.querySelector('[id="'.concat(l,'-text"]'));y!==null&&y.addEventListener("click",function(){o()})})};const E1={parseDirective:function(l,o,y){xr.parseDirective(this,l,o,y)},getConfig:function(){return Bt().gantt},clear:function(){Au=[],Cu=[],js="",$s=[],v1=0,zo=void 0,Nc=void 0,bi=[],xa="",xl="",wl="",ds=[],fs=[],ps=!1,mo=!1,Nu=0,Su={},Un()},setDateFormat:function(l){xa=l},getDateFormat:function(){return xa},enableInclusiveEndDates:function(){ps=!0},endDatesAreInclusive:function(){return ps},enableTopAxis:function(){mo=!0},topAxisEnabled:function(){return mo},setAxisFormat:function(l){xl=l},getAxisFormat:function(){return xl},setTodayMarker:function(l){wl=l},getTodayMarker:function(){return wl},setAccTitle:te,getAccTitle:wn,setDiagramTitle:Na,getDiagramTitle:Bi,setAccDescription:oi,getAccDescription:hi,addSection:function(l){js=l,Au.push(l)},getSections:function(){return Au},getTasks:function(){for(var l=w1(),o=0;!l&&o<10;)l=w1(),o++;return Cu=bi},addTask:function(l,o){var y={section:js,type:js,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:o},task:l,classes:[]},k=function(N,L){var O=(L.substr(0,1)===":"?L.substr(1,L.length):L).split(","),P={};Ou(O,P,kl);for(var Y=0;Y<O.length;Y++)O[Y]=O[Y].trim();switch(O.length){case 1:P.id=ys(),P.startTime={type:"prevTaskEnd",id:N},P.endTime={data:O[0]};break;case 2:P.id=ys(),P.startTime={type:"getStartDate",startData:O[0]},P.endTime={data:O[1]};break;case 3:P.id=ys(O[0]),P.startTime={type:"getStartDate",startData:O[1]},P.endTime={data:O[2]}}return P}(Nc,o);y.raw.startTime=k.startTime,y.raw.endTime=k.endTime,y.id=k.id,y.prevTaskId=Nc,y.active=k.active,y.done=k.done,y.crit=k.crit,y.milestone=k.milestone,y.order=Nu,Nu++;var A=bi.push(y);Nc=y.id,x1[y.id]=A-1},findTaskById:Hs,addTaskOrg:function(l,o){var y={section:js,type:js,description:l,task:l,classes:[]},k=function(A,N){var L=(N.substr(0,1)===":"?N.substr(1,N.length):N).split(","),O={};Ou(L,O,kl);for(var P=0;P<L.length;P++)L[P]=L[P].trim();var Y="";switch(L.length){case 1:O.id=ys(),O.startTime=A.endTime,Y=L[0];break;case 2:O.id=ys(),O.startTime=Lu(0,xa,L[0]),Y=L[1];break;case 3:O.id=ys(L[0]),O.startTime=Lu(0,xa,L[1]),Y=L[2]}return Y&&(O.endTime=b1(O.startTime,xa,Y,ps),O.manualEndTime=f()(Y,"YYYY-MM-DD",!0).isValid(),Iu(O,xa,fs,ds)),O}(zo,o);y.startTime=k.startTime,y.endTime=k.endTime,y.id=k.id,y.active=k.active,y.done=k.done,y.crit=k.crit,y.milestone=k.milestone,zo=y,Cu.push(y)},setIncludes:function(l){ds=l.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return ds},setExcludes:function(l){fs=l.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return fs},setClickEvent:function(l,o,y){l.split(",").forEach(function(k){(function(A,N,L){if(Bt().securityLevel==="loose"&&N!==void 0){var O=[];if(typeof L=="string"){O=L.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var P=0;P<O.length;P++){var Y=O[P].trim();Y.charAt(0)==='"'&&Y.charAt(Y.length-1)==='"'&&(Y=Y.substr(1,Y.length-2)),O[P]=Y}}O.length===0&&O.push(A),Hs(A)!==void 0&&k1(A,function(){var Z;en.runFunc.apply(en,[N].concat(function(nt){if(Array.isArray(nt))return Po(nt)}(Z=O)||function(nt){if(typeof Symbol<"u"&&nt[Symbol.iterator]!=null||nt["@@iterator"]!=null)return Array.from(nt)}(Z)||function(nt,lt){if(nt){if(typeof nt=="string")return Po(nt,lt);var ct=Object.prototype.toString.call(nt).slice(8,-1);return ct==="Object"&&nt.constructor&&(ct=nt.constructor.name),ct==="Map"||ct==="Set"?Array.from(nt):ct==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ct)?Po(nt,lt):void 0}}(Z)||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.`)}()))})}})(k,o,y)}),Mu(l,"clickable")},setLink:function(l,o){var y=o;Bt().securityLevel!=="loose"&&(y=(0,si.N)(o)),l.split(",").forEach(function(k){Hs(k)!==void 0&&(k1(k,function(){window.open(y,"_self")}),Su[k]=y)}),Mu(l,"clickable")},getLinks:function(){return Su},bindFunctions:function(l){$s.forEach(function(o){o(l)})},durationToDate:Uo,isInvalidDate:El};function Ou(l,o,y){for(var k=!0;k;)k=!1,y.forEach(function(A){var N=new RegExp("^\\s*"+A+"\\s*$");l[0].match(N)&&(o[A]=!0,l.shift(1),k=!0)})}var _o;const Tl={setConf:function(){_.debug("Something is calling, setConf, remove the call")},draw:function(l,o,y,k){var A,N=Bt().gantt,L=Bt().securityLevel;L==="sandbox"&&(A=(0,E.select)("#i"+o));var O=L==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),P=L==="sandbox"?A.nodes()[0].contentDocument:document,Y=P.getElementById(o);(_o=Y.parentElement.offsetWidth)===void 0&&(_o=1200),N.useWidth!==void 0&&(_o=N.useWidth);var Z=k.db.getTasks(),nt=Z.length*(N.barHeight+N.barGap)+2*N.topPadding;Y.setAttribute("viewBox","0 0 "+_o+" "+nt);for(var lt=O.select('[id="'.concat(o,'"]')),ct=(0,E.scaleTime)().domain([(0,E.min)(Z,function(Ht){return Ht.startTime}),(0,E.max)(Z,function(Ht){return Ht.endTime})]).rangeRound([0,_o-N.leftPadding-N.rightPadding]),Mt=[],It=0;It<Z.length;It++)Mt.push(Z[It].type);var Ut=Mt;Mt=function(Ht){for(var Nt={},Pt=[],Ot=0,Qt=Ht.length;Ot<Qt;++Ot)Object.prototype.hasOwnProperty.call(Nt,Ht[Ot])||(Nt[Ht[Ot]]=!0,Pt.push(Ht[Ot]));return Pt}(Mt),Z.sort(function(Ht,Nt){var Pt=Ht.startTime,Ot=Nt.startTime,Qt=0;return Pt>Ot?Qt=1:Pt<Ot&&(Qt=-1),Qt}),function(Ht,Nt,Pt){var Ot=N.barHeight,Qt=Ot+N.barGap,De=N.topPadding,we=N.leftPadding;(0,E.scaleLinear)().domain([0,Mt.length]).range(["#00B9FA","#F95002"]).interpolate(E.interpolateHcl),function(ue,Kt,le,Yt,se,ie,de,Le){var Be=ie.reduce(function(We,Ge){var _r=Ge.startTime;return We?Math.min(We,_r):_r},0),Ue=ie.reduce(function(We,Ge){var _r=Ge.endTime;return We?Math.max(We,_r):_r},0),pr=k.db.getDateFormat();if(Be&&Ue){for(var Ye=[],cr=null,hr=f()(Be);hr.valueOf()<=Ue;)k.db.isInvalidDate(hr,pr,de,Le)?cr?cr.end=hr.clone():cr={start:hr.clone(),end:hr.clone()}:cr&&(Ye.push(cr),cr=null),hr.add(1,"d");lt.append("g").selectAll("rect").data(Ye).enter().append("rect").attr("id",function(We){return"exclude-"+We.start.format("YYYY-MM-DD")}).attr("x",function(We){return ct(We.start)+le}).attr("y",N.gridLineStartPadding).attr("width",function(We){var Ge=We.end.clone().add(1,"day");return ct(Ge)-ct(We.start)}).attr("height",se-Kt-N.gridLineStartPadding).attr("transform-origin",function(We,Ge){return(ct(We.start)+le+.5*(ct(We.end)-ct(We.start))).toString()+"px "+(Ge*ue+.5*se).toString()+"px"}).attr("class","exclude-range")}}(Qt,De,we,0,Pt,Ht,k.db.getExcludes(),k.db.getIncludes()),function(ue,Kt,le,Yt){var se=(0,E.axisBottom)(ct).tickSize(-Yt+Kt+N.gridLineStartPadding).tickFormat((0,E.timeFormat)(k.db.getAxisFormat()||N.axisFormat||"%Y-%m-%d"));if(lt.append("g").attr("class","grid").attr("transform","translate("+ue+", "+(Yt-50)+")").call(se).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),k.db.topAxisEnabled()||N.topAxis){var ie=(0,E.axisTop)(ct).tickSize(-Yt+Kt+N.gridLineStartPadding).tickFormat((0,E.timeFormat)(k.db.getAxisFormat()||N.axisFormat||"%Y-%m-%d"));lt.append("g").attr("class","grid").attr("transform","translate("+ue+", "+Kt+")").call(ie).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(we,De,0,Pt),function(ue,Kt,le,Yt,se,ie,de){lt.append("g").selectAll("rect").data(ue).enter().append("rect").attr("x",0).attr("y",function(Ye,cr){return Ye.order*Kt+le-2}).attr("width",function(){return de-N.rightPadding/2}).attr("height",Kt).attr("class",function(Ye){for(var cr=0;cr<Mt.length;cr++)if(Ye.type===Mt[cr])return"section section"+cr%N.numberSectionStyles;return"section section0"});var Le=lt.append("g").selectAll("rect").data(ue).enter(),Be=k.db.getLinks();if(Le.append("rect").attr("id",function(Ye){return Ye.id}).attr("rx",3).attr("ry",3).attr("x",function(Ye){return Ye.milestone?ct(Ye.startTime)+Yt+.5*(ct(Ye.endTime)-ct(Ye.startTime))-.5*se:ct(Ye.startTime)+Yt}).attr("y",function(Ye,cr){return Ye.order*Kt+le}).attr("width",function(Ye){return Ye.milestone?se:ct(Ye.renderEndTime||Ye.endTime)-ct(Ye.startTime)}).attr("height",se).attr("transform-origin",function(Ye,cr){return cr=Ye.order,(ct(Ye.startTime)+Yt+.5*(ct(Ye.endTime)-ct(Ye.startTime))).toString()+"px "+(cr*Kt+le+.5*se).toString()+"px"}).attr("class",function(Ye){var cr="";Ye.classes.length>0&&(cr=Ye.classes.join(" "));for(var hr=0,We=0;We<Mt.length;We++)Ye.type===Mt[We]&&(hr=We%N.numberSectionStyles);var Ge="";return Ye.active?Ye.crit?Ge+=" activeCrit":Ge=" active":Ye.done?Ge=Ye.crit?" doneCrit":" done":Ye.crit&&(Ge+=" crit"),Ge.length===0&&(Ge=" task"),Ye.milestone&&(Ge=" milestone "+Ge),"task"+(Ge+=hr)+" "+cr}),Le.append("text").attr("id",function(Ye){return Ye.id+"-text"}).text(function(Ye){return Ye.task}).attr("font-size",N.fontSize).attr("x",function(Ye){var cr=ct(Ye.startTime),hr=ct(Ye.renderEndTime||Ye.endTime);Ye.milestone&&(cr+=.5*(ct(Ye.endTime)-ct(Ye.startTime))-.5*se),Ye.milestone&&(hr=cr+se);var We=this.getBBox().width;return We>hr-cr?hr+We+1.5*N.leftPadding>de?cr+Yt-5:hr+Yt+5:(hr-cr)/2+cr+Yt}).attr("y",function(Ye,cr){return Ye.order*Kt+N.barHeight/2+(N.fontSize/2-2)+le}).attr("text-height",se).attr("class",function(Ye){var cr=ct(Ye.startTime),hr=ct(Ye.endTime);Ye.milestone&&(hr=cr+se);var We=this.getBBox().width,Ge="";Ye.classes.length>0&&(Ge=Ye.classes.join(" "));for(var _r=0,_n=0;_n<Mt.length;_n++)Ye.type===Mt[_n]&&(_r=_n%N.numberSectionStyles);var Tn="";return Ye.active&&(Tn=Ye.crit?"activeCritText"+_r:"activeText"+_r),Ye.done?Tn=Ye.crit?Tn+" doneCritText"+_r:Tn+" doneText"+_r:Ye.crit&&(Tn=Tn+" critText"+_r),Ye.milestone&&(Tn+=" milestoneText"),We>hr-cr?hr+We+1.5*N.leftPadding>de?Ge+" taskTextOutsideLeft taskTextOutside"+_r+" "+Tn:Ge+" taskTextOutsideRight taskTextOutside"+_r+" "+Tn+" width-"+We:Ge+" taskText taskText"+_r+" "+Tn+" width-"+We}),Bt().securityLevel==="sandbox"){var Ue;Ue=(0,E.select)("#i"+o),(0,E.select)(Ue.nodes()[0].contentDocument.body);var pr=Ue.nodes()[0].contentDocument;Le.filter(function(Ye){return Be[Ye.id]!==void 0}).each(function(Ye){var cr=pr.querySelector("#"+Ye.id),hr=pr.querySelector("#"+Ye.id+"-text"),We=cr.parentNode,Ge=pr.createElement("a");Ge.setAttribute("xlink:href",Be[Ye.id]),Ge.setAttribute("target","_top"),We.appendChild(Ge),Ge.appendChild(cr),Ge.appendChild(hr)})}}(Ht,Qt,De,we,Ot,0,Nt),function(ue,Kt){for(var le=[],Yt=0,se=0;se<Mt.length;se++)le[se]=[Mt[se],(ie=Mt[se],de=Ut,function(Le){for(var Be=Le.length,Ue={};Be;)Ue[Le[--Be]]=(Ue[Le[Be]]||0)+1;return Ue}(de)[ie]||0)];var ie,de;lt.append("g").selectAll("text").data(le).enter().append(function(Le){var Be=Le[0].split(yr.lineBreakRegex),Ue=-(Be.length-1)/2,pr=P.createElementNS("http://www.w3.org/2000/svg","text");pr.setAttribute("dy",Ue+"em");for(var Ye=0;Ye<Be.length;Ye++){var cr=P.createElementNS("http://www.w3.org/2000/svg","tspan");cr.setAttribute("alignment-baseline","central"),cr.setAttribute("x","10"),Ye>0&&cr.setAttribute("dy","1em"),cr.textContent=Be[Ye],pr.appendChild(cr)}return pr}).attr("x",10).attr("y",function(Le,Be){if(!(Be>0))return Le[1]*ue/2+Kt;for(var Ue=0;Ue<Be;Ue++)return Yt+=le[Be-1][1],Le[1]*ue/2+Yt*ue+Kt}).attr("font-size",N.sectionFontSize).attr("font-size",N.sectionFontSize).attr("class",function(Le){for(var Be=0;Be<Mt.length;Be++)if(Le[0]===Mt[Be])return"sectionTitle sectionTitle"+Be%N.numberSectionStyles;return"sectionTitle"})}(Qt,De),function(ue,Kt,le,Yt){var se=k.db.getTodayMarker();if(se!=="off"){var ie=lt.append("g").attr("class","today"),de=new Date,Le=ie.append("line");Le.attr("x1",ct(de)+ue).attr("x2",ct(de)+ue).attr("y1",N.titleTopMargin).attr("y2",Yt-N.titleTopMargin).attr("class","today"),se!==""&&Le.attr("style",se.replace(/,/g,";"))}}(we,0,0,Pt)}(Z,_o,nt),ea(lt,nt,_o,N.useMaxWidth),lt.append("text").text(k.db.getDiagramTitle()).attr("x",_o/2).attr("y",N.titleTopMargin).attr("class","titleText"),Pn(k.db,lt,o)}};var T1=h(9959),S1=h.n(T1),Sl="",Du=!1;const A1={setMessage:function(l){_.debug("Setting message to: "+l),Sl=l},getMessage:function(){return Sl},setInfo:function(l){Du=l},getInfo:function(){return Du}},pd={draw:function(l,o,y,k){try{_.debug(`Renering info diagram
`+l);var A,N=Bt().securityLevel;N==="sandbox"&&(A=(0,E.select)("#i"+o));var L=N==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),O=(N==="sandbox"&&A.nodes()[0].contentDocument,L.select("#"+o));O.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+y),O.attr("height",100),O.attr("width",400)}catch(P){_.error("Error while rendering info diagram"),_.error(P.message)}}};var Al=h(6765),Wa=h.n(Al),Ru=h(7062),Bu=h.n(Ru),qs={},Ic=!1;const C1={parseDirective:function(l,o,y){xr.parseDirective(this,l,o,y)},getConfig:function(){return Bt().pie},addSection:function(l,o){l=yr.sanitizeText(l,Bt()),qs[l]===void 0&&(qs[l]=o,_.debug("Added new section :",l))},getSections:function(){return qs},cleanupValue:function(l){return l.substring(0,1)===":"&&(l=l.substring(1).trim()),Number(l.trim())},clear:function(){qs={},Ic=!1,Un()},setAccTitle:te,getAccTitle:wn,setDiagramTitle:Na,getDiagramTitle:Bi,setShowData:function(l){Ic=l},getShowData:function(){return Ic},getAccDescription:hi,setAccDescription:oi};var Yo,Ba=Bt();const io={draw:function(l,o,y,k){try{Ba=Bt(),_.debug(`Rendering info diagram
`+l);var A,N=Bt().securityLevel;N==="sandbox"&&(A=(0,E.select)("#i"+o));var L=N==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),O=N==="sandbox"?A.nodes()[0].contentDocument:document;k.db.clear(),k.parser.parse(l),_.debug("Parsed info diagram");var P=O.getElementById(o);(Yo=P.parentElement.offsetWidth)===void 0&&(Yo=1200),Ba.useWidth!==void 0&&(Yo=Ba.useWidth),Ba.pie.useWidth!==void 0&&(Yo=Ba.pie.useWidth);var Y=L.select("#"+o);ea(Y,450,Yo,Ba.pie.useMaxWidth),Pn(k.db,Y,o),P.setAttribute("viewBox","0 0 "+Yo+" 450");var Z=Math.min(Yo,450)/2-40,nt=Y.append("g").attr("transform","translate("+Yo/2+",225)"),lt=k.db.getSections(),ct=0;Object.keys(lt).forEach(function(Ot){ct+=lt[Ot]});var Mt=Ba.themeVariables,It=[Mt.pie1,Mt.pie2,Mt.pie3,Mt.pie4,Mt.pie5,Mt.pie6,Mt.pie7,Mt.pie8,Mt.pie9,Mt.pie10,Mt.pie11,Mt.pie12],Ut=(0,E.scaleOrdinal)().range(It),Ht=(0,E.pie)().value(function(Ot){return Ot[1]})(Object.entries(lt)),Nt=(0,E.arc)().innerRadius(0).outerRadius(Z);nt.selectAll("mySlices").data(Ht).enter().append("path").attr("d",Nt).attr("fill",function(Ot){return Ut(Ot.data[0])}).attr("class","pieCircle"),nt.selectAll("mySlices").data(Ht).enter().append("text").text(function(Ot){return(Ot.data[1]/ct*100).toFixed(0)+"%"}).attr("transform",function(Ot){return"translate("+Nt.centroid(Ot)+")"}).style("text-anchor","middle").attr("class","slice"),nt.append("text").text(k.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var Pt=nt.selectAll(".legend").data(Ut.domain()).enter().append("g").attr("class","legend").attr("transform",function(Ot,Qt){return"translate(216,"+(22*Qt-22*Ut.domain().length/2)+")"});Pt.append("rect").attr("width",18).attr("height",18).style("fill",Ut).style("stroke",Ut),Pt.data(Ht).append("text").attr("x",22).attr("y",14).text(function(Ot){return k.db.getShowData()||Ba.showData||Ba.pie.showData?Ot.data[0]+" ["+Ot.data[1]+"]":Ot.data[0]})}catch(Ot){_.error("Error while rendering info diagram"),_.error(Ot)}}};var N1=h(3176),I1=h.n(N1),Lc=[],Gi={},jo={},Fa={},Ws={};const L1={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(l,o,y){xr.parseDirective(this,l,o,y)},getConfig:function(){return Bt().req},addRequirement:function(l,o){return jo[l]===void 0&&(jo[l]={name:l,type:o,id:Gi.id,text:Gi.text,risk:Gi.risk,verifyMethod:Gi.verifyMethod}),Gi={},jo[l]},getRequirements:function(){return jo},setNewReqId:function(l){Gi!==void 0&&(Gi.id=l)},setNewReqText:function(l){Gi!==void 0&&(Gi.text=l)},setNewReqRisk:function(l){Gi!==void 0&&(Gi.risk=l)},setNewReqVerifyMethod:function(l){Gi!==void 0&&(Gi.verifyMethod=l)},setAccTitle:te,getAccTitle:wn,setAccDescription:oi,getAccDescription:hi,addElement:function(l){return Ws[l]===void 0&&(Ws[l]={name:l,type:Fa.type,docRef:Fa.docRef},_.info("Added new requirement: ",l)),Fa={},Ws[l]},getElements:function(){return Ws},setNewElementType:function(l){Fa!==void 0&&(Fa.type=l)},setNewElementDocRef:function(l){Fa!==void 0&&(Fa.docRef=l)},addRelationship:function(l,o,y){Lc.push({type:l,src:o,dst:y})},getRelationships:function(){return Lc},clear:function(){Lc=[],Gi={},jo={},Fa={},Ws={},Un()}};var Cl={CONTAINS:"contains",ARROW:"arrow"};const gd=Cl;var En={},$o=0,Fu=function(l,o){return l.insert("rect","#"+o).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",En.rect_min_width+"px").attr("height",En.rect_min_height+"px")},M1=function(l,o,y){var k=En.rect_min_width/2,A=l.append("text").attr("class","req reqLabel reqTitle").attr("id",o).attr("x",k).attr("y",En.rect_padding).attr("dominant-baseline","hanging"),N=0;y.forEach(function(O){N==0?A.append("tspan").attr("text-anchor","middle").attr("x",En.rect_min_width/2).attr("dy",0).text(O):A.append("tspan").attr("text-anchor","middle").attr("x",En.rect_min_width/2).attr("dy",.75*En.line_height).text(O),N++});var L=1.5*En.rect_padding+N*En.line_height*.75;return l.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",En.rect_min_width).attr("y1",L).attr("y2",L),{titleNode:A,y:L}},bo=function(l,o,y,k){var A=l.append("text").attr("class","req reqLabel").attr("id",o).attr("x",En.rect_padding).attr("y",k).attr("dominant-baseline","hanging"),N=0,L=[];return y.forEach(function(O){for(var P=O.length;P>30&&N<3;){var Y=O.substring(0,30);P=(O=O.substring(30,O.length)).length,L[L.length]=Y,N++}if(N==3){var Z=L[L.length-1];L[L.length-1]=Z.substring(0,Z.length-4)+"..."}else L[L.length]=O;N=0}),L.forEach(function(O){A.append("tspan").attr("x",En.rect_padding).attr("dy",En.line_height).text(O)}),A},Gs=function(l){return l.replace(/\s/g,"").replace(/\./g,"_")};const yd={draw:function(l,o,y,k){En=Bt().requirement,k.db.clear(),k.parser.parse(l);var A,N=En.securityLevel;N==="sandbox"&&(A=(0,E.select)("#i"+o));var L=N==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),O=(N==="sandbox"&&A.nodes()[0].contentDocument,L.select("[id='".concat(o,"']")));(function(Pt,Ot){var Qt=Pt.append("defs").append("marker").attr("id",Cl.CONTAINS+"_line_ending").attr("refX",0).attr("refY",Ot.line_height/2).attr("markerWidth",Ot.line_height).attr("markerHeight",Ot.line_height).attr("orient","auto").append("g");Qt.append("circle").attr("cx",Ot.line_height/2).attr("cy",Ot.line_height/2).attr("r",Ot.line_height/2).attr("fill","none"),Qt.append("line").attr("x1",0).attr("x2",Ot.line_height).attr("y1",Ot.line_height/2).attr("y2",Ot.line_height/2).attr("stroke-width",1),Qt.append("line").attr("y1",0).attr("y2",Ot.line_height).attr("x1",Ot.line_height/2).attr("x2",Ot.line_height/2).attr("stroke-width",1),Pt.append("defs").append("marker").attr("id",Cl.ARROW+"_line_ending").attr("refX",Ot.line_height).attr("refY",.5*Ot.line_height).attr("markerWidth",Ot.line_height).attr("markerHeight",Ot.line_height).attr("orient","auto").append("path").attr("d",`M0,0
L`.concat(Ot.line_height,",").concat(Ot.line_height/2,`
M`).concat(Ot.line_height,",").concat(Ot.line_height/2,`
L0,`).concat(Ot.line_height)).attr("stroke-width",1)})(O,En);var P,Y,Z,nt=new(mi()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:En.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),lt=k.db.getRequirements(),ct=k.db.getElements(),Mt=k.db.getRelationships();P=lt,Y=nt,Z=O,Object.keys(P).forEach(function(Pt){var Ot=P[Pt];Pt=Gs(Pt),_.info("Added new requirement: ",Pt);var Qt=Z.append("g").attr("id",Pt),De=Fu(Qt,"req-"+Pt),we=M1(Qt,Pt+"_title",["<<".concat(Ot.type,">>"),"".concat(Ot.name)]);bo(Qt,Pt+"_body",["Id: ".concat(Ot.id),"Text: ".concat(Ot.text),"Risk: ".concat(Ot.risk),"Verification: ".concat(Ot.verifyMethod)],we.y);var ue=De.node().getBBox();Y.setNode(Pt,{width:ue.width,height:ue.height,shape:"rect",id:Pt})}),function(Pt,Ot,Qt){Object.keys(Pt).forEach(function(De){var we=Pt[De],ue=Gs(De),Kt=Qt.append("g").attr("id",ue),le="element-"+ue,Yt=Fu(Kt,le),se=M1(Kt,le+"_title",["<<Element>>","".concat(De)]);bo(Kt,le+"_body",["Type: ".concat(we.type||"Not Specified"),"Doc Ref: ".concat(we.docRef||"None")],se.y);var ie=Yt.node().getBBox();Ot.setNode(ue,{width:ie.width,height:ie.height,shape:"rect",id:ue})})}(ct,nt,O),function(Pt,Ot){Pt.forEach(function(Qt){var De=Gs(Qt.src),we=Gs(Qt.dst);Ot.setEdge(De,we,{relationship:Qt})})}(Mt,nt),ss().layout(nt),function(Pt,Ot){Ot.nodes().forEach(function(Qt){Qt!==void 0&&Ot.node(Qt)!==void 0&&(Pt.select("#"+Qt),Pt.select("#"+Qt).attr("transform","translate("+(Ot.node(Qt).x-Ot.node(Qt).width/2)+","+(Ot.node(Qt).y-Ot.node(Qt).height/2)+" )"))})}(O,nt),Mt.forEach(function(Pt){(function(Ot,Qt,De,we,ue){var Kt=De.edge(Gs(Qt.src),Gs(Qt.dst)),le=(0,E.line)().x(function(se){return se.x}).y(function(se){return se.y}),Yt=Ot.insert("path","#"+we).attr("class","er relationshipLine").attr("d",le(Kt.points)).attr("fill","none");Qt.type==ue.db.Relationships.CONTAINS?Yt.attr("marker-start","url("+yr.getUrl(En.arrowMarkerAbsolute)+"#"+Qt.type+"_line_ending)"):(Yt.attr("stroke-dasharray","10,7"),Yt.attr("marker-end","url("+yr.getUrl(En.arrowMarkerAbsolute)+"#"+gd.ARROW+"_line_ending)")),function(se,ie,de,Le){var Be=ie.node().getTotalLength(),Ue=ie.node().getPointAtLength(.5*Be),pr="rel"+$o;$o++;var Ye=se.append("text").attr("class","req relationshipLabel").attr("id",pr).attr("x",Ue.x).attr("y",Ue.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(Le).node().getBBox();se.insert("rect","#"+pr).attr("class","req reqLabelBox").attr("x",Ue.x-Ye.width/2).attr("y",Ue.y-Ye.height/2).attr("width",Ye.width).attr("height",Ye.height).attr("fill","white").attr("fill-opacity","85%")}(Ot,Yt,0,"<<".concat(Qt.type,">>"))})(O,Pt,nt,o,k)});var It=En.rect_padding,Ut=O.node().getBBox(),Ht=Ut.width+2*It,Nt=Ut.height+2*It;ea(O,Nt,Ht,En.useMaxWidth),O.attr("viewBox","".concat(Ut.x-It," ").concat(Ut.y-It," ").concat(Ht," ").concat(Nt)),Pn(k.db,O,o)}};var Pu,md=h(6876),vo=h.n(md),Vs=void 0,ao={},wa=[],Nl=!1,zu=function(l,o,y,k){var A=ao[l];A&&o===A.name&&y==null||(y!=null&&y.text!=null||(y={text:o,wrap:null,type:k}),k!=null&&y.text!=null||(y={text:o,wrap:null,type:k}),ao[l]={name:o,description:y.text,wrap:y.wrap===void 0&&Ho()||!!y.wrap,prevActor:Vs,links:{},properties:{},actorCnt:null,rectData:null,type:k||"participant"},Vs&&ao[Vs]&&(ao[Vs].nextActor=l),Vs=l)},_d=function(l){var o,y=0;for(o=0;o<wa.length;o++)wa[o].type===xo.ACTIVE_START&&wa[o].from.actor===l&&y++,wa[o].type===xo.ACTIVE_END&&wa[o].from.actor===l&&y--;return y},Pa=function(l,o){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},k=arguments.length>3?arguments[3]:void 0;if(k===xo.ACTIVE_END){var A=_d(l.actor);if(A<1){var N=new Error("Trying to inactivate an inactive participant ("+l.actor+")");throw N.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},N}}return wa.push({from:l,to:o,message:y.text,wrap:y.wrap===void 0&&Ho()||!!y.wrap,type:k}),!0},vi=function(l){return ao[l]},Ho=function(){return Pu!==void 0?Pu:Bt().sequence.wrap},xo={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31},ms=function(l,o,y){y.text,y.wrap===void 0&&Ho()||y.wrap;var k=[].concat(l,l);wa.push({from:k[0],to:k[1],message:y.text,wrap:y.wrap===void 0&&Ho()||!!y.wrap,type:xo.NOTE,placement:o})},Uu=function(l,o){var y=vi(l);try{var k=dn(o.text,Bt());k=(k=k.replace(/&amp;/g,"&")).replace(/&equals;/g,"="),Il(y,JSON.parse(k))}catch(A){_.error("error while parsing actor link text",A)}};function Il(l,o){if(l.links==null)l.links=o;else for(var y in o)l.links[y]=o[y]}var Yu=function(l,o){var y=vi(l);try{var k=dn(o.text,Bt());Vi(y,JSON.parse(k))}catch(A){_.error("error while parsing actor properties text",A)}};function Vi(l,o){if(l.properties==null)l.properties=o;else for(var y in o)l.properties[y]=o[y]}var Mc=function(l,o){var y=vi(l),k=document.getElementById(o.text);try{var A=k.innerHTML,N=JSON.parse(A);N.properties&&Vi(y,N.properties),N.links&&Il(y,N.links)}catch(L){_.error("error while parsing actor details text",L)}};const ju={addActor:zu,addMessage:function(l,o,y,k){wa.push({from:l,to:o,message:y.text,wrap:y.wrap===void 0&&Ho()||!!y.wrap,answer:k})},addSignal:Pa,addLinks:Uu,addDetails:Mc,addProperties:Yu,autoWrap:Ho,setWrap:function(l){Pu=l},enableSequenceNumbers:function(){Nl=!0},disableSequenceNumbers:function(){Nl=!1},showSequenceNumbers:function(){return Nl},getMessages:function(){return wa},getActors:function(){return ao},getActor:vi,getActorKeys:function(){return Object.keys(ao)},getActorProperty:function(l,o){if(l!==void 0&&l.properties!==void 0)return l.properties[o]},getAccTitle:wn,getDiagramTitle:Bi,setDiagramTitle:Na,parseDirective:function(l,o,y){xr.parseDirective(this,l,o,y)},getConfig:function(){return Bt().sequence},clear:function(){ao={},wa=[],Nl=!1,Un()},parseMessage:function(l){var o=l.trim(),y={text:o.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:o.match(/^[:]?wrap:/)!==null||o.match(/^[:]?nowrap:/)===null&&void 0};return _.debug("parseMessage:",y),y},LINETYPE:xo,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:ms,setAccTitle:te,apply:function l(o){if(o instanceof Array)o.forEach(function(y){l(y)});else switch(o.type){case"sequenceIndex":wa.push({from:void 0,to:void 0,message:{start:o.sequenceIndex,step:o.sequenceIndexStep,visible:o.sequenceVisible},wrap:!1,type:o.signalType});break;case"addParticipant":zu(o.actor,o.actor,o.description,"participant");break;case"addActor":zu(o.actor,o.actor,o.description,"actor");break;case"activeStart":case"activeEnd":Pa(o.actor,void 0,void 0,o.signalType);break;case"addNote":ms(o.actor,o.placement,o.text);break;case"addLinks":Uu(o.actor,o.text);break;case"addALink":(function(y,k){var A=vi(y);try{var N={},L=dn(k.text,Bt()),O=L.indexOf("@"),P=(L=(L=L.replace(/&amp;/g,"&")).replace(/&equals;/g,"=")).slice(0,O-1).trim(),Y=L.slice(O+1).trim();N[P]=Y,Il(A,N)}catch(Z){_.error("error while parsing actor link text",Z)}})(o.actor,o.text);break;case"addProperties":Yu(o.actor,o.text);break;case"addDetails":Mc(o.actor,o.text);break;case"addMessage":Pa(o.from,o.to,o.msg,o.signalType);break;case"loopStart":Pa(void 0,void 0,o.loopText,o.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":Pa(void 0,void 0,void 0,o.signalType);break;case"rectStart":Pa(void 0,void 0,o.color,o.signalType);break;case"optStart":Pa(void 0,void 0,o.optText,o.signalType);break;case"altStart":case"else":Pa(void 0,void 0,o.altText,o.signalType);break;case"setAccTitle":te(o.text);break;case"parStart":case"and":Pa(void 0,void 0,o.parText,o.signalType);break;case"criticalStart":Pa(void 0,void 0,o.criticalText,o.signalType);break;case"option":Pa(void 0,void 0,o.optionText,o.signalType);break;case"breakStart":Pa(void 0,void 0,o.breakText,o.signalType)}},setAccDescription:oi,getAccDescription:hi};var Zs=[],_s=function(l,o){var y=l.append("rect");return y.attr("x",o.x),y.attr("y",o.y),y.attr("fill",o.fill),y.attr("stroke",o.stroke),y.attr("width",o.width),y.attr("height",o.height),y.attr("rx",o.rx),y.attr("ry",o.ry),o.class!==void 0&&y.attr("class",o.class),y},Ll=function(l,o){var y;y=function(){var k=document.querySelectorAll(l);k.length!==0&&(k[0].addEventListener("mouseover",function(){Xs("actor"+o+"_popup")}),k[0].addEventListener("mouseout",function(){Oc("actor"+o+"_popup")}))},Zs.push(y)},bd=function(l,o,y,k){var A=l.append("image");A.attr("x",o),A.attr("y",y);var N=(0,si.N)(k);A.attr("xlink:href",N)},vd=function(l,o,y,k){var A=l.append("use");A.attr("x",o),A.attr("y",y);var N=(0,si.N)(k);A.attr("xlink:href","#"+N)},Xs=function(l){var o=document.getElementById(l);o!=null&&(o.style.display="block")},Oc=function(l){var o=document.getElementById(l);o!=null&&(o.style.display="none")},Dc=function(l,o){var y=0,k=0,A=o.text.split(yr.lineBreakRegex),N=[],L=0,O=function(){return o.y};if(o.valign!==void 0&&o.textMargin!==void 0&&o.textMargin>0)switch(o.valign){case"top":case"start":O=function(){return Math.round(o.y+o.textMargin)};break;case"middle":case"center":O=function(){return Math.round(o.y+(y+k+o.textMargin)/2)};break;case"bottom":case"end":O=function(){return Math.round(o.y+(y+k+2*o.textMargin)-o.textMargin)}}if(o.anchor!==void 0&&o.textMargin!==void 0&&o.width!==void 0)switch(o.anchor){case"left":case"start":o.x=Math.round(o.x+o.textMargin),o.anchor="start",o.dominantBaseline="middle",o.alignmentBaseline="middle";break;case"middle":case"center":o.x=Math.round(o.x+o.width/2),o.anchor="middle",o.dominantBaseline="middle",o.alignmentBaseline="middle";break;case"right":case"end":o.x=Math.round(o.x+o.width-o.textMargin),o.anchor="end",o.dominantBaseline="middle",o.alignmentBaseline="middle"}for(var P=0;P<A.length;P++){var Y=A[P];o.textMargin!==void 0&&o.textMargin===0&&o.fontSize!==void 0&&(L=P*o.fontSize);var Z=l.append("text");if(Z.attr("x",o.x),Z.attr("y",O()),o.anchor!==void 0&&Z.attr("text-anchor",o.anchor).attr("dominant-baseline",o.dominantBaseline).attr("alignment-baseline",o.alignmentBaseline),o.fontFamily!==void 0&&Z.style("font-family",o.fontFamily),o.fontSize!==void 0&&Z.style("font-size",o.fontSize),o.fontWeight!==void 0&&Z.style("font-weight",o.fontWeight),o.fill!==void 0&&Z.attr("fill",o.fill),o.class!==void 0&&Z.attr("class",o.class),o.dy!==void 0?Z.attr("dy",o.dy):L!==0&&Z.attr("dy",L),o.tspan){var nt=Z.append("tspan");nt.attr("x",o.x),o.fill!==void 0&&nt.attr("fill",o.fill),nt.text(Y)}else Z.text(Y);o.valign!==void 0&&o.textMargin!==void 0&&o.textMargin>0&&(k+=(Z._groups||Z)[0][0].getBBox().height,y=k),N.push(Z)}return N},xd=function(l,o){var y=l.append("polygon");return y.attr("points",function(k,A,N,L,O){return k+","+A+" "+(k+N)+","+A+" "+(k+N)+","+(A+L-7)+" "+(k+N-8.4)+","+(A+L)+" "+k+","+(A+L)}(o.x,o.y,o.width,o.height)),y.attr("class","labelBox"),o.y=o.y+o.height/2,Dc(l,o),y},Ga=-1,bs=function(l,o){l.selectAll&&l.selectAll(".actor-line").attr("class","200").attr("y2",o-55)},$u=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}},O1=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},D1=function(){function l(A,N,L,O,P,Y,Z){k(N.append("text").attr("x",L+P/2).attr("y",O+Y/2+5).style("text-anchor","middle").text(A),Z)}function o(A,N,L,O,P,Y,Z,nt){for(var lt=nt.actorFontSize,ct=nt.actorFontFamily,Mt=nt.actorFontWeight,It=lt&&lt.replace?lt.replace("px",""):lt,Ut=A.split(yr.lineBreakRegex),Ht=0;Ht<Ut.length;Ht++){var Nt=Ht*It-It*(Ut.length-1)/2,Pt=N.append("text").attr("x",L+P/2).attr("y",O).style("text-anchor","middle").style("font-size",lt).style("font-weight",Mt).style("font-family",ct);Pt.append("tspan").attr("x",L+P/2).attr("dy",Nt).text(Ut[Ht]),Pt.attr("y",O+Y/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),k(Pt,Z)}}function y(A,N,L,O,P,Y,Z,nt){var lt=N.append("switch"),ct=lt.append("foreignObject").attr("x",L).attr("y",O).attr("width",P).attr("height",Y).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");ct.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(A),o(A,lt,L,O,P,Y,Z,nt),k(ct,Z)}function k(A,N){for(var L in N)N.hasOwnProperty(L)&&A.attr(L,N[L])}return function(A){return A.textPlacement==="fo"?y:A.textPlacement==="old"?l:o}}(),Ks=function(){function l(A,N,L,O,P,Y,Z){k(N.append("text").attr("x",L).attr("y",O).style("text-anchor","start").text(A),Z)}function o(A,N,L,O,P,Y,Z,nt){for(var lt=nt.actorFontSize,ct=nt.actorFontFamily,Mt=nt.actorFontWeight,It=A.split(yr.lineBreakRegex),Ut=0;Ut<It.length;Ut++){var Ht=Ut*lt-lt*(It.length-1)/2,Nt=N.append("text").attr("x",L).attr("y",O).style("text-anchor","start").style("font-size",lt).style("font-weight",Mt).style("font-family",ct);Nt.append("tspan").attr("x",L).attr("dy",Ht).text(It[Ut]),Nt.attr("y",O+Y/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),k(Nt,Z)}}function y(A,N,L,O,P,Y,Z,nt){var lt=N.append("switch"),ct=lt.append("foreignObject").attr("x",L).attr("y",O).attr("width",P).attr("height",Y).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");ct.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(A),o(A,lt,L,O,0,Y,Z,nt),k(ct,Z)}function k(A,N){for(var L in N)N.hasOwnProperty(L)&&A.attr(L,N[L])}return function(A){return A.textPlacement==="fo"?y:A.textPlacement==="old"?l:o}}();const wd=_s,kd=function(l,o,y){switch(o.type){case"actor":return function(k,A,N){var L=A.x+A.width/2;A.y===0&&(Ga++,k.append("line").attr("id","actor"+Ga).attr("x1",L).attr("y1",80).attr("x2",L).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var O=k.append("g");O.attr("class","actor-man");var P={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};P.x=A.x,P.y=A.y,P.fill="#eaeaea",P.width=A.width,P.height=A.height,P.class="actor",P.rx=3,P.ry=3,O.append("line").attr("id","actor-man-torso"+Ga).attr("x1",L).attr("y1",A.y+25).attr("x2",L).attr("y2",A.y+45),O.append("line").attr("id","actor-man-arms"+Ga).attr("x1",L-18).attr("y1",A.y+33).attr("x2",L+18).attr("y2",A.y+33),O.append("line").attr("x1",L-18).attr("y1",A.y+60).attr("x2",L).attr("y2",A.y+45),O.append("line").attr("x1",L).attr("y1",A.y+45).attr("x2",L+16).attr("y2",A.y+60);var Y=O.append("circle");Y.attr("cx",A.x+A.width/2),Y.attr("cy",A.y+10),Y.attr("r",15),Y.attr("width",A.width),Y.attr("height",A.height);var Z=O.node().getBBox();return A.height=Z.height,D1(N)(A.description,O,P.x,P.y+35,P.width,P.height,{class:"actor"},N),A.height}(l,o,y);case"participant":return function(k,A,N){var L=A.x+A.width/2,O=k.append("g"),P=O;A.y===0&&(Ga++,P.append("line").attr("id","actor"+Ga).attr("x1",L).attr("y1",5).attr("x2",L).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),P=O.append("g"),A.actorCnt=Ga,A.links!=null&&(P.attr("id","root-"+Ga),Ll("#root-"+Ga,Ga)));var Y={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},Z="actor";A.properties!=null&&A.properties.class?Z=A.properties.class:Y.fill="#eaeaea",Y.x=A.x,Y.y=A.y,Y.width=A.width,Y.height=A.height,Y.class=Z,Y.rx=3,Y.ry=3;var nt=_s(P,Y);if(A.rectData=Y,A.properties!=null&&A.properties.icon){var lt=A.properties.icon.trim();lt.charAt(0)==="@"?vd(P,Y.x+Y.width-20,Y.y+10,lt.substr(1)):bd(P,Y.x+Y.width-20,Y.y+10,lt)}D1(N)(A.description,P,Y.x,Y.y,Y.width,Y.height,{class:"actor"},N);var ct=A.height;if(nt.node){var Mt=nt.node().getBBox();A.height=Mt.height,ct=Mt.height}return ct}(l,o,y)}},Ed=function(l,o,y,k,A){if(o.links===void 0||o.links===null||Object.keys(o.links).length===0)return{height:0,width:0};var N=o.links,L=o.actorCnt,O=o.rectData,P="none";A&&(P="block !important");var Y=l.append("g");Y.attr("id","actor"+L+"_popup"),Y.attr("class","actorPopupMenu"),Y.attr("display",P),Ll("#actor"+L+"_popup",L);var Z="";O.class!==void 0&&(Z=" "+O.class);var nt=O.width>y?O.width:y,lt=Y.append("rect");if(lt.attr("class","actorPopupMenuPanel"+Z),lt.attr("x",O.x),lt.attr("y",O.height),lt.attr("fill",O.fill),lt.attr("stroke",O.stroke),lt.attr("width",nt),lt.attr("height",O.height),lt.attr("rx",O.rx),lt.attr("ry",O.ry),N!=null){var ct=20;for(var Mt in N){var It=Y.append("a"),Ut=(0,si.N)(N[Mt]);It.attr("xlink:href",Ut),It.attr("target","_blank"),Ks(k)(Mt,It,O.x+10,O.height+ct,nt,20,{class:"actor"},k),ct+=30}}return lt.attr("height",ct),{height:O.height+ct,width:nt}},Hu=function(l){return l.append("g")},Ml=function(l,o,y,k,A){var N={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},L=o.anchored;N.x=o.startx,N.y=o.starty,N.class="activation"+A%3,N.width=o.stopx-o.startx,N.height=y-o.starty,_s(L,N)},qo=function(l,o,y,k){var A=k.boxMargin,N=k.boxTextMargin,L=k.labelBoxHeight,O=k.labelBoxWidth,P=k.messageFontFamily,Y=k.messageFontSize,Z=k.messageFontWeight,nt=l.append("g"),lt=function(It,Ut,Ht,Nt){return nt.append("line").attr("x1",It).attr("y1",Ut).attr("x2",Ht).attr("y2",Nt).attr("class","loopLine")};lt(o.startx,o.starty,o.stopx,o.starty),lt(o.stopx,o.starty,o.stopx,o.stopy),lt(o.startx,o.stopy,o.stopx,o.stopy),lt(o.startx,o.starty,o.startx,o.stopy),o.sections!==void 0&&o.sections.forEach(function(It){lt(o.startx,It.y,o.stopx,It.y).style("stroke-dasharray","3, 3")});var ct={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};ct.text=y,ct.x=o.startx,ct.y=o.starty,ct.fontFamily=P,ct.fontSize=Y,ct.fontWeight=Z,ct.anchor="middle",ct.valign="middle",ct.tspan=!1,ct.width=O||50,ct.height=L||20,ct.textMargin=N,ct.class="labelText",xd(nt,ct),(ct={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}).text=o.title,ct.x=o.startx+O/2+(o.stopx-o.startx)/2,ct.y=o.starty+A+N,ct.anchor="middle",ct.valign="middle",ct.textMargin=N,ct.class="loopText",ct.fontFamily=P,ct.fontSize=Y,ct.fontWeight=Z,ct.wrap=!0;var Mt=Dc(nt,ct);return o.sectionTitles!==void 0&&o.sectionTitles.forEach(function(It,Ut){if(It.message){ct.text=It.message,ct.x=o.startx+(o.stopx-o.startx)/2,ct.y=o.sections[Ut].y+A+N,ct.class="loopText",ct.anchor="middle",ct.valign="middle",ct.tspan=!1,ct.fontFamily=P,ct.fontSize=Y,ct.fontWeight=Z,ct.wrap=o.wrap,Mt=Dc(nt,ct);var Ht=Math.round(Mt.map(function(Nt){return(Nt._groups||Nt)[0][0].getBBox().height}).reduce(function(Nt,Pt){return Nt+Pt}));o.sections[Ut].height+=Ht-(A+N)}}),o.height=Math.round(o.stopy-o.starty),nt},Td=function(l,o){_s(l,{x:o.startx,y:o.starty,width:o.stopx-o.startx,height:o.stopy-o.starty,fill:o.fill,class:"rect"}).lower()},Sd=function(l){l.append("defs").append("marker").attr("id","arrowhead").attr("refX",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")},Ad=function(l){l.append("defs").append("marker").attr("id","filled-head").attr("refX",18).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")},Cd=function(l){l.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)},Nd=function(l){var o=l.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);o.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),o.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},R1=function(l){l.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")},qu=function(l){l.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")},B1=function(l){l.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")},Wu=$u,ha=O1;si.N;var pe={},ir={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(function(l){return l.height||0}))+(this.loops.length===0?0:this.loops.map(function(l){return l.height||0}).reduce(function(l,o){return l+o}))+(this.messages.length===0?0:this.messages.map(function(l){return l.height||0}).reduce(function(l,o){return l+o}))+(this.notes.length===0?0:this.notes.map(function(l){return l.height||0}).reduce(function(l,o){return l+o}))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(l){this.actors.push(l)},addLoop:function(l){this.loops.push(l)},addMessage:function(l){this.messages.push(l)},addNote:function(l){this.notes.push(l)},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:[],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,P1(Bt())},updateVal:function(l,o,y,k){l[o]===void 0?l[o]=y:l[o]=k(y,l[o])},updateBounds:function(l,o,y,k){var A=this,N=0;function L(O){return function(P){N++;var Y=A.sequenceItems.length-N+1;A.updateVal(P,"starty",o-Y*pe.boxMargin,Math.min),A.updateVal(P,"stopy",k+Y*pe.boxMargin,Math.max),A.updateVal(ir.data,"startx",l-Y*pe.boxMargin,Math.min),A.updateVal(ir.data,"stopx",y+Y*pe.boxMargin,Math.max),O!=="activation"&&(A.updateVal(P,"startx",l-Y*pe.boxMargin,Math.min),A.updateVal(P,"stopx",y+Y*pe.boxMargin,Math.max),A.updateVal(ir.data,"starty",o-Y*pe.boxMargin,Math.min),A.updateVal(ir.data,"stopy",k+Y*pe.boxMargin,Math.max))}}this.sequenceItems.forEach(L()),this.activations.forEach(L("activation"))},insert:function(l,o,y,k){var A=Math.min(l,y),N=Math.max(l,y),L=Math.min(o,k),O=Math.max(o,k);this.updateVal(ir.data,"startx",A,Math.min),this.updateVal(ir.data,"starty",L,Math.min),this.updateVal(ir.data,"stopx",N,Math.max),this.updateVal(ir.data,"stopy",O,Math.max),this.updateBounds(A,L,N,O)},newActivation:function(l,o,y){var k=y[l.from.actor],A=Ol(l.from.actor).length||0,N=k.x+k.width/2+(A-1)*pe.activationWidth/2;this.activations.push({startx:N,starty:this.verticalPos+2,stopx:N+pe.activationWidth,stopy:void 0,actor:l.from.actor,anchored:Hu(o)})},endActivation:function(l){var o=this.activations.map(function(y){return y.actor}).lastIndexOf(l.from.actor);return this.activations.splice(o,1)[0]},createLoop:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},o=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:l.message,wrap:l.wrap,width:l.width,height:0,fill:o}},newLoop:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},o=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(l,o))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(l){var o=this.sequenceItems.pop();o.sections=o.sections||[],o.sectionTitles=o.sectionTitles||[],o.sections.push({y:ir.getVerticalPos(),height:0}),o.sectionTitles.push(l),this.sequenceItems.push(o)},bumpVerticalPos:function(l){this.verticalPos=this.verticalPos+l,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},vs=function(l){return{fontFamily:l.messageFontFamily,fontSize:l.messageFontSize,fontWeight:l.messageFontWeight}},Js=function(l){return{fontFamily:l.noteFontFamily,fontSize:l.noteFontSize,fontWeight:l.noteFontWeight}},Gu=function(l){return{fontFamily:l.actorFontFamily,fontSize:l.actorFontSize,fontWeight:l.actorFontWeight}},Vu=function(l,o,y,k,A,N){if(A.hideUnusedParticipants===!0){var L=new Set;N.forEach(function(ct){L.add(ct.from),L.add(ct.to)}),y=y.filter(function(ct){return L.has(ct)})}for(var O=0,P=0,Y=0,Z=0;Z<y.length;Z++){var nt=o[y[Z]];nt.width=nt.width||pe.width,nt.height=Math.max(nt.height||pe.height,pe.height),nt.margin=nt.margin||pe.actorMargin,nt.x=O+P,nt.y=k;var lt=kd(l,nt,pe);Y=Math.max(Y,lt),ir.insert(nt.x,k,nt.x+nt.width,nt.height),O+=nt.width,P+=nt.margin,ir.models.addActor(nt)}ir.bumpVerticalPos(Y)},F1=function(l,o,y,k){for(var A=0,N=0,L=0;L<y.length;L++){var O=o[y[L]],P=Id(O),Y=Ed(l,O,P,pe,pe.forceMenus);Y.height>A&&(A=Y.height),Y.width+O.x>N&&(N=Y.width+O.x)}return{maxHeight:A,maxWidth:N}},P1=function(l){Ee(pe,l),l.fontFamily&&(pe.actorFontFamily=pe.noteFontFamily=pe.messageFontFamily=l.fontFamily),l.fontSize&&(pe.actorFontSize=pe.noteFontSize=pe.messageFontSize=l.fontSize),l.fontWeight&&(pe.actorFontWeight=pe.noteFontWeight=pe.messageFontWeight=l.fontWeight)},Ol=function(l){return ir.activations.filter(function(o){return o.actor===l})},Wo=function(l,o){var y=o[l],k=Ol(l);return[k.reduce(function(A,N){return Math.min(A,N.startx)},y.x+y.width/2),k.reduce(function(A,N){return Math.max(A,N.stopx)},y.x+y.width/2)]};function Va(l,o,y,k,A){ir.bumpVerticalPos(y);var N=k;if(o.id&&o.message&&l[o.id]){var L=l[o.id].width,O=vs(pe);o.message=en.wrapLabel("[".concat(o.message,"]"),L-2*pe.wrapPadding,O),o.width=L,o.wrap=!0;var P=en.calculateTextDimensions(o.message,O),Y=Math.max(P.height,pe.labelBoxHeight);N=k+Y,_.debug("".concat(Y," - ").concat(o.message))}A(o),ir.bumpVerticalPos(N)}var Id=function(l){var o=0,y=Gu(pe);for(var k in l.links){var A=en.calculateTextDimensions(k,y).width+2*pe.wrapPadding+2*pe.boxMargin;o<A&&(o=A)}return o};const Rc={bounds:ir,drawActors:Vu,drawActorsPopup:F1,setConf:P1,draw:function(l,o,y,k){pe=Bt().sequence;var A,N=Bt().securityLevel;N==="sandbox"&&(A=(0,E.select)("#i"+o));var L=N==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body");N==="sandbox"&&A.nodes()[0].contentDocument,ir.init(),_.debug(k.db);var O=N==="sandbox"?L.select('[id="'.concat(o,'"]')):(0,E.select)('[id="'.concat(o,'"]')),P=k.db.getActors(),Y=k.db.getActorKeys(),Z=k.db.getMessages(),nt=k.db.getDiagramTitle(),lt=function(ue,Kt,le){var Yt={};return Kt.forEach(function(se){if(ue[se.to]&&ue[se.from]){var ie=ue[se.to];if(se.placement===le.db.PLACEMENT.LEFTOF&&!ie.prevActor||se.placement===le.db.PLACEMENT.RIGHTOF&&!ie.nextActor)return;var de=se.placement!==void 0,Le=!de,Be=de?Js(pe):vs(pe),Ue=se.wrap?en.wrapLabel(se.message,pe.width-2*pe.wrapPadding,Be):se.message,pr=en.calculateTextDimensions(Ue,Be).width+2*pe.wrapPadding;Le&&se.from===ie.nextActor?Yt[se.to]=Math.max(Yt[se.to]||0,pr):Le&&se.from===ie.prevActor?Yt[se.from]=Math.max(Yt[se.from]||0,pr):Le&&se.from===se.to?(Yt[se.from]=Math.max(Yt[se.from]||0,pr/2),Yt[se.to]=Math.max(Yt[se.to]||0,pr/2)):se.placement===le.db.PLACEMENT.RIGHTOF?Yt[se.from]=Math.max(Yt[se.from]||0,pr):se.placement===le.db.PLACEMENT.LEFTOF?Yt[ie.prevActor]=Math.max(Yt[ie.prevActor]||0,pr):se.placement===le.db.PLACEMENT.OVER&&(ie.prevActor&&(Yt[ie.prevActor]=Math.max(Yt[ie.prevActor]||0,pr/2)),ie.nextActor&&(Yt[se.from]=Math.max(Yt[se.from]||0,pr/2)))}}),_.debug("maxMessageWidthPerActor:",Yt),Yt}(P,Z,k);pe.height=function(ue,Kt){var le=0;for(var Yt in Object.keys(ue).forEach(function(Le){var Be=ue[Le];Be.wrap&&(Be.description=en.wrapLabel(Be.description,pe.width-2*pe.wrapPadding,Gu(pe)));var Ue=en.calculateTextDimensions(Be.description,Gu(pe));Be.width=Be.wrap?pe.width:Math.max(pe.width,Ue.width+2*pe.wrapPadding),Be.height=Be.wrap?Math.max(Ue.height,pe.height):pe.height,le=Math.max(le,Be.height)}),Kt){var se=ue[Yt];if(se){var ie=ue[se.nextActor];if(ie){var de=Kt[Yt]+pe.actorMargin-se.width/2-ie.width/2;se.margin=Math.max(de,pe.actorMargin)}}}return Math.max(le,pe.height)}(P,lt),qu(O),R1(O),B1(O),Vu(O,P,Y,0,pe,Z);var ct=function(ue,Kt,le,Yt){var se,ie,de,Le={},Be=[];return ue.forEach(function(Ue){switch(Ue.id=en.random({length:10}),Ue.type){case Yt.db.LINETYPE.LOOP_START:case Yt.db.LINETYPE.ALT_START:case Yt.db.LINETYPE.OPT_START:case Yt.db.LINETYPE.PAR_START:case Yt.db.LINETYPE.CRITICAL_START:case Yt.db.LINETYPE.BREAK_START:Be.push({id:Ue.id,msg:Ue.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case Yt.db.LINETYPE.ALT_ELSE:case Yt.db.LINETYPE.PAR_AND:case Yt.db.LINETYPE.CRITICAL_OPTION:Ue.message&&(se=Be.pop(),Le[se.id]=se,Le[Ue.id]=se,Be.push(se));break;case Yt.db.LINETYPE.LOOP_END:case Yt.db.LINETYPE.ALT_END:case Yt.db.LINETYPE.OPT_END:case Yt.db.LINETYPE.PAR_END:case Yt.db.LINETYPE.CRITICAL_END:case Yt.db.LINETYPE.BREAK_END:se=Be.pop(),Le[se.id]=se;break;case Yt.db.LINETYPE.ACTIVE_START:var pr=Kt[Ue.from?Ue.from.actor:Ue.to.actor],Ye=Ol(Ue.from?Ue.from.actor:Ue.to.actor).length,cr=pr.x+pr.width/2+(Ye-1)*pe.activationWidth/2,hr={startx:cr,stopx:cr+pe.activationWidth,actor:Ue.from.actor,enabled:!0};ir.activations.push(hr);break;case Yt.db.LINETYPE.ACTIVE_END:var We=ir.activations.map(function(Ge){return Ge.actor}).lastIndexOf(Ue.from.actor);delete ir.activations.splice(We,1)[0]}Ue.placement!==void 0?(ie=function(Ge,_r,_n){var Tn=_r[Ge.from].x,ti=_r[Ge.to].x,fn=Ge.wrap&&Ge.message,Di=en.calculateTextDimensions(fn?en.wrapLabel(Ge.message,pe.width,Js(pe)):Ge.message,Js(pe)),un={width:fn?pe.width:Math.max(pe.width,Di.width+2*pe.noteMargin),height:0,startx:_r[Ge.from].x,stopx:0,starty:0,stopy:0,message:Ge.message};return Ge.placement===_n.db.PLACEMENT.RIGHTOF?(un.width=fn?Math.max(pe.width,Di.width):Math.max(_r[Ge.from].width/2+_r[Ge.to].width/2,Di.width+2*pe.noteMargin),un.startx=Tn+(_r[Ge.from].width+pe.actorMargin)/2):Ge.placement===_n.db.PLACEMENT.LEFTOF?(un.width=Math.max(fn?pe.width:_r[Ge.from].width/2+_r[Ge.to].width/2,Di.width+2*pe.noteMargin),un.startx=Tn-un.width+(_r[Ge.from].width-pe.actorMargin)/2):Ge.to===Ge.from?(Di=en.calculateTextDimensions(fn?en.wrapLabel(Ge.message,Math.max(pe.width,_r[Ge.from].width),Js(pe)):Ge.message,Js(pe)),un.width=fn?Math.max(pe.width,_r[Ge.from].width):Math.max(_r[Ge.from].width,pe.width,Di.width+2*pe.noteMargin),un.startx=Tn+(_r[Ge.from].width-un.width)/2):(un.width=Math.abs(Tn+_r[Ge.from].width/2-(ti+_r[Ge.to].width/2))+pe.actorMargin,un.startx=Tn<ti?Tn+_r[Ge.from].width/2-pe.actorMargin/2:ti+_r[Ge.to].width/2-pe.actorMargin/2),fn&&(un.message=en.wrapLabel(Ge.message,un.width-2*pe.wrapPadding,Js(pe))),_.debug("NM:[".concat(un.startx,",").concat(un.stopx,",").concat(un.starty,",").concat(un.stopy,":").concat(un.width,",").concat(un.height,"=").concat(Ge.message,"]")),un}(Ue,Kt,Yt),Ue.noteModel=ie,Be.forEach(function(Ge){(se=Ge).from=Math.min(se.from,ie.startx),se.to=Math.max(se.to,ie.startx+ie.width),se.width=Math.max(se.width,Math.abs(se.from-se.to))-pe.labelBoxWidth})):(de=function(Ge,_r,_n){var Tn=!1;if([_n.db.LINETYPE.SOLID_OPEN,_n.db.LINETYPE.DOTTED_OPEN,_n.db.LINETYPE.SOLID,_n.db.LINETYPE.DOTTED,_n.db.LINETYPE.SOLID_CROSS,_n.db.LINETYPE.DOTTED_CROSS,_n.db.LINETYPE.SOLID_POINT,_n.db.LINETYPE.DOTTED_POINT].includes(Ge.type)&&(Tn=!0),!Tn)return{};var ti=Wo(Ge.from,_r),fn=Wo(Ge.to,_r),Di=ti[0]<=fn[0]?1:0,un=ti[0]<fn[0]?0:1,Za=ti.concat(fn),da=Math.abs(fn[un]-ti[Di]);Ge.wrap&&Ge.message&&(Ge.message=en.wrapLabel(Ge.message,Math.max(da+2*pe.wrapPadding,pe.width),vs(pe)));var fi=en.calculateTextDimensions(Ge.message,vs(pe));return{width:Math.max(Ge.wrap?0:fi.width+2*pe.wrapPadding,da+2*pe.wrapPadding,pe.width),height:0,startx:ti[Di],stopx:fn[un],starty:0,stopy:0,message:Ge.message,type:Ge.type,wrap:Ge.wrap,fromBounds:Math.min.apply(null,Za),toBounds:Math.max.apply(null,Za)}}(Ue,Kt,Yt),Ue.msgModel=de,de.startx&&de.stopx&&Be.length>0&&Be.forEach(function(Ge){if(se=Ge,de.startx===de.stopx){var _r=Kt[Ue.from],_n=Kt[Ue.to];se.from=Math.min(_r.x-de.width/2,_r.x-_r.width/2,se.from),se.to=Math.max(_n.x+de.width/2,_n.x+_r.width/2,se.to),se.width=Math.max(se.width,Math.abs(se.to-se.from))-pe.labelBoxWidth}else se.from=Math.min(de.startx,se.from),se.to=Math.max(de.stopx,se.to),se.width=Math.max(se.width,de.width)-pe.labelBoxWidth}))}),ir.activations=[],_.debug("Loop type widths:",Le),Le}(Z,P,0,k);Sd(O),Nd(O),Ad(O),Cd(O);var Mt=1,It=1,Ut=Array();Z.forEach(function(ue){var Kt,le,Yt;switch(ue.type){case k.db.LINETYPE.NOTE:le=ue.noteModel,function(ie,de){ir.bumpVerticalPos(pe.boxMargin),de.height=pe.boxMargin,de.starty=ir.getVerticalPos();var Le=ha();Le.x=de.startx,Le.y=de.starty,Le.width=de.width||pe.width,Le.class="note";var Be=ie.append("g"),Ue=wd(Be,Le),pr=Wu();pr.x=de.startx,pr.y=de.starty,pr.width=Le.width,pr.dy="1em",pr.text=de.message,pr.class="noteText",pr.fontFamily=pe.noteFontFamily,pr.fontSize=pe.noteFontSize,pr.fontWeight=pe.noteFontWeight,pr.anchor=pe.noteAlign,pr.textMargin=pe.noteMargin,pr.valign="center";var Ye=Dc(Be,pr),cr=Math.round(Ye.map(function(hr){return(hr._groups||hr)[0][0].getBBox().height}).reduce(function(hr,We){return hr+We}));Ue.attr("height",cr+2*pe.noteMargin),de.height+=cr+2*pe.noteMargin,ir.bumpVerticalPos(cr+2*pe.noteMargin),de.stopy=de.starty+cr+2*pe.noteMargin,de.stopx=de.startx+Le.width,ir.insert(de.startx,de.starty,de.stopx,de.stopy),ir.models.addNote(de)}(O,le);break;case k.db.LINETYPE.ACTIVE_START:ir.newActivation(ue,O,P);break;case k.db.LINETYPE.ACTIVE_END:(function(ie,de){var Le=ir.endActivation(ie);Le.starty+18>de&&(Le.starty=de-6,de+=12),Ml(O,Le,de,pe,Ol(ie.from.actor).length),ir.insert(Le.startx,de-10,Le.stopx,de)})(ue,ir.getVerticalPos());break;case k.db.LINETYPE.LOOP_START:Va(ct,ue,pe.boxMargin,pe.boxMargin+pe.boxTextMargin,function(ie){return ir.newLoop(ie)});break;case k.db.LINETYPE.LOOP_END:Kt=ir.endLoop(),qo(O,Kt,"loop",pe),ir.bumpVerticalPos(Kt.stopy-ir.getVerticalPos()),ir.models.addLoop(Kt);break;case k.db.LINETYPE.RECT_START:Va(ct,ue,pe.boxMargin,pe.boxMargin,function(ie){return ir.newLoop(void 0,ie.message)});break;case k.db.LINETYPE.RECT_END:Kt=ir.endLoop(),Td(O,Kt),ir.models.addLoop(Kt),ir.bumpVerticalPos(Kt.stopy-ir.getVerticalPos());break;case k.db.LINETYPE.OPT_START:Va(ct,ue,pe.boxMargin,pe.boxMargin+pe.boxTextMargin,function(ie){return ir.newLoop(ie)});break;case k.db.LINETYPE.OPT_END:Kt=ir.endLoop(),qo(O,Kt,"opt",pe),ir.bumpVerticalPos(Kt.stopy-ir.getVerticalPos()),ir.models.addLoop(Kt);break;case k.db.LINETYPE.ALT_START:Va(ct,ue,pe.boxMargin,pe.boxMargin+pe.boxTextMargin,function(ie){return ir.newLoop(ie)});break;case k.db.LINETYPE.ALT_ELSE:Va(ct,ue,pe.boxMargin+pe.boxTextMargin,pe.boxMargin,function(ie){return ir.addSectionToLoop(ie)});break;case k.db.LINETYPE.ALT_END:Kt=ir.endLoop(),qo(O,Kt,"alt",pe),ir.bumpVerticalPos(Kt.stopy-ir.getVerticalPos()),ir.models.addLoop(Kt);break;case k.db.LINETYPE.PAR_START:Va(ct,ue,pe.boxMargin,pe.boxMargin+pe.boxTextMargin,function(ie){return ir.newLoop(ie)});break;case k.db.LINETYPE.PAR_AND:Va(ct,ue,pe.boxMargin+pe.boxTextMargin,pe.boxMargin,function(ie){return ir.addSectionToLoop(ie)});break;case k.db.LINETYPE.PAR_END:Kt=ir.endLoop(),qo(O,Kt,"par",pe),ir.bumpVerticalPos(Kt.stopy-ir.getVerticalPos()),ir.models.addLoop(Kt);break;case k.db.LINETYPE.AUTONUMBER:Mt=ue.message.start||Mt,It=ue.message.step||It,ue.message.visible?k.db.enableSequenceNumbers():k.db.disableSequenceNumbers();break;case k.db.LINETYPE.CRITICAL_START:Va(ct,ue,pe.boxMargin,pe.boxMargin+pe.boxTextMargin,function(ie){return ir.newLoop(ie)});break;case k.db.LINETYPE.CRITICAL_OPTION:Va(ct,ue,pe.boxMargin+pe.boxTextMargin,pe.boxMargin,function(ie){return ir.addSectionToLoop(ie)});break;case k.db.LINETYPE.CRITICAL_END:Kt=ir.endLoop(),qo(O,Kt,"critical",pe),ir.bumpVerticalPos(Kt.stopy-ir.getVerticalPos()),ir.models.addLoop(Kt);break;case k.db.LINETYPE.BREAK_START:Va(ct,ue,pe.boxMargin,pe.boxMargin+pe.boxTextMargin,function(ie){return ir.newLoop(ie)});break;case k.db.LINETYPE.BREAK_END:Kt=ir.endLoop(),qo(O,Kt,"break",pe),ir.bumpVerticalPos(Kt.stopy-ir.getVerticalPos()),ir.models.addLoop(Kt);break;default:try{(Yt=ue.msgModel).starty=ir.getVerticalPos(),Yt.sequenceIndex=Mt,Yt.sequenceVisible=k.db.showSequenceNumbers();var se=function(ie,de){ir.bumpVerticalPos(10);var Le,Be=de.startx,Ue=de.stopx,pr=de.message,Ye=yr.splitBreaks(pr).length,cr=en.calculateTextDimensions(pr,vs(pe)),hr=cr.height/Ye;de.height+=hr,ir.bumpVerticalPos(hr);var We=cr.height-10,Ge=cr.width;if(Be===Ue){Le=ir.getVerticalPos()+We,pe.rightAngles||(We+=pe.boxMargin,Le=ir.getVerticalPos()+We),We+=30;var _r=Math.max(Ge/2,pe.width/2);ir.insert(Be-_r,ir.getVerticalPos()-10+We,Ue+_r,ir.getVerticalPos()+30+We)}else We+=pe.boxMargin,Le=ir.getVerticalPos()+We,ir.insert(Be,Le-10,Ue,Le);return ir.bumpVerticalPos(We),de.height+=We,de.stopy=de.starty+de.height,ir.insert(de.fromBounds,de.starty,de.toBounds,de.stopy),Le}(0,Yt);Ut.push({messageModel:Yt,lineStarty:se}),ir.models.addMessage(Yt)}catch(ie){_.error("error while drawing message",ie)}}[k.db.LINETYPE.SOLID_OPEN,k.db.LINETYPE.DOTTED_OPEN,k.db.LINETYPE.SOLID,k.db.LINETYPE.DOTTED,k.db.LINETYPE.SOLID_CROSS,k.db.LINETYPE.DOTTED_CROSS,k.db.LINETYPE.SOLID_POINT,k.db.LINETYPE.DOTTED_POINT].includes(ue.type)&&(Mt+=It)}),Ut.forEach(function(ue){return function(Kt,le,Yt,se){var ie=le.startx,de=le.stopx,Le=le.starty,Be=le.message,Ue=le.type,pr=le.sequenceIndex,Ye=le.sequenceVisible,cr=en.calculateTextDimensions(Be,vs(pe)),hr=Wu();hr.x=ie,hr.y=Le+10,hr.width=de-ie,hr.class="messageText",hr.dy="1em",hr.text=Be,hr.fontFamily=pe.messageFontFamily,hr.fontSize=pe.messageFontSize,hr.fontWeight=pe.messageFontWeight,hr.anchor=pe.messageAlign,hr.valign="center",hr.textMargin=pe.wrapPadding,hr.tspan=!1,Dc(Kt,hr);var We,Ge=cr.width;ie===de?We=pe.rightAngles?Kt.append("path").attr("d","M ".concat(ie,",").concat(Yt," H ").concat(ie+Math.max(pe.width/2,Ge/2)," V ").concat(Yt+25," H ").concat(ie)):Kt.append("path").attr("d","M "+ie+","+Yt+" C "+(ie+60)+","+(Yt-10)+" "+(ie+60)+","+(Yt+30)+" "+ie+","+(Yt+20)):((We=Kt.append("line")).attr("x1",ie),We.attr("y1",Yt),We.attr("x2",de),We.attr("y2",Yt)),Ue===se.db.LINETYPE.DOTTED||Ue===se.db.LINETYPE.DOTTED_CROSS||Ue===se.db.LINETYPE.DOTTED_POINT||Ue===se.db.LINETYPE.DOTTED_OPEN?(We.style("stroke-dasharray","3, 3"),We.attr("class","messageLine1")):We.attr("class","messageLine0");var _r="";pe.arrowMarkerAbsolute&&(_r=(_r=(_r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),We.attr("stroke-width",2),We.attr("stroke","none"),We.style("fill","none"),Ue!==se.db.LINETYPE.SOLID&&Ue!==se.db.LINETYPE.DOTTED||We.attr("marker-end","url("+_r+"#arrowhead)"),Ue!==se.db.LINETYPE.SOLID_POINT&&Ue!==se.db.LINETYPE.DOTTED_POINT||We.attr("marker-end","url("+_r+"#filled-head)"),Ue!==se.db.LINETYPE.SOLID_CROSS&&Ue!==se.db.LINETYPE.DOTTED_CROSS||We.attr("marker-end","url("+_r+"#crosshead)"),(Ye||pe.showSequenceNumbers)&&(We.attr("marker-start","url("+_r+"#sequencenumber)"),Kt.append("text").attr("x",ie).attr("y",Yt+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(pr))}(O,ue.messageModel,ue.lineStarty,k)}),pe.mirrorActors&&(ir.bumpVerticalPos(2*pe.boxMargin),Vu(O,P,Y,ir.getVerticalPos(),pe,Z),ir.bumpVerticalPos(pe.boxMargin),bs(O,ir.getVerticalPos()));var Ht=F1(O,P,Y),Nt=ir.getBounds().bounds;_.debug("For line height fix Querying: #"+o+" .actor-line"),(0,E.selectAll)("#"+o+" .actor-line").attr("y2",Nt.stopy);var Pt=Nt.stopy-Nt.starty;Pt<Ht.maxHeight&&(Pt=Ht.maxHeight);var Ot=Pt+2*pe.diagramMarginY;pe.mirrorActors&&(Ot=Ot-pe.boxMargin+pe.bottomMarginAdj);var Qt=Nt.stopx-Nt.startx;Qt<Ht.maxWidth&&(Qt=Ht.maxWidth);var De=Qt+2*pe.diagramMarginX;nt&&O.append("text").text(nt).attr("x",(Nt.stopx-Nt.startx)/2-2*pe.diagramMarginX).attr("y",-25),ea(O,Ot,De,pe.useMaxWidth);var we=nt?40:0;O.attr("viewBox",Nt.startx-pe.diagramMarginX+" -"+(pe.diagramMarginY+we)+" "+De+" "+(Ot+we)),Pn(k.db,O,o),_.debug("models:",ir.models)}};var Ld=h(3584),z1=h.n(Ld);function Zu(l){return Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Zu(l)}var Dl=function(l){return JSON.parse(JSON.stringify(l))},Rl=[],Md=function l(o,y,k){if(y.stmt==="relation")l(o,y.state1,!0),l(o,y.state2,!1);else if(y.stmt==="state"&&y.id==="[*]"&&(y.id=k?o.id+"_start":o.id+"_end",y.start=k),y.doc){var A=[],N=0,L=[];for(N=0;N<y.doc.length;N++)if(y.doc[N].type==="divider"){var O=Dl(y.doc[N]);O.doc=Dl(L),A.push(O),L=[]}else L.push(y.doc[N]);if(A.length>0&&L.length>0){var P={stmt:"state",id:No(),type:"divider",doc:Dl(L)};A.push(Dl(P)),y.doc=A}y.doc.forEach(function(Y){return l(y,Y,!0)})}},Bl={root:{relations:[],states:{},documents:{}}},Zi=Bl.root,Xu=0,Bc=function(l,o,y,k,A){Zi.states[l]===void 0?Zi.states[l]={id:l,descriptions:[],type:o,doc:y,note:A}:(Zi.states[l].doc||(Zi.states[l].doc=y),Zi.states[l].type||(Zi.states[l].type=o)),k&&(_.info("Adding state ",l,k),typeof k=="string"&&Ku(l,k.trim()),Zu(k)==="object"&&k.forEach(function(N){return Ku(l,N.trim())})),A&&(Zi.states[l].note=A,Zi.states[l].note.text=yr.sanitizeText(Zi.states[l].note.text,Bt()))},U1=function(l){Zi=(Bl={root:{relations:[],states:{},documents:{}}}).root,Zi=Bl.root,Xu=0,Ju=[],l||Un()},Y1=function(l,o,y){var k=l,A=o,N="default",L="default";l==="[*]"&&(k="start"+ ++Xu,N="start"),o==="[*]"&&(A="end"+Xu,L="end"),Bc(k,N),Bc(A,L),Zi.relations.push({id1:k,id2:A,title:yr.sanitizeText(y,Bt())})},Ku=function(l,o){var y=Zi.states[l],k=o;k[0]===":"&&(k=k.substr(1).trim()),y.descriptions.push(yr.sanitizeText(k,Bt()))},j1=0,Ju=[],$1="TB";const wo={parseDirective:function(l,o,y){xr.parseDirective(this,l,o,y)},getConfig:function(){return Bt().state},addState:Bc,clear:U1,getState:function(l){return Zi.states[l]},getStates:function(){return Zi.states},getRelations:function(){return Zi.relations},getClasses:function(){return Ju},getDirection:function(){return $1},addRelation:Y1,getDividerId:function(){return"divider-id-"+ ++j1},setDirection:function(l){$1=l},cleanupLabel:function(l){return l.substring(0,1)===":"?l.substr(2).trim():l.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){_.info("Documents = ",Bl)},getRootDoc:function(){return Rl},setRootDoc:function(l){_.info("Setting root doc",l),Rl=l},getRootDocV2:function(){return Md({id:"root"},{id:"root",doc:Rl},!0),{id:"root",doc:Rl}},extract:function(l){var o;o=l.doc?l.doc:l,_.info(o),U1(!0),_.info("Extract",o),o.forEach(function(y){y.stmt==="state"&&Bc(y.id,y.type,y.doc,y.description,y.note),y.stmt==="relation"&&Y1(y.state1.id,y.state2.id,y.description)})},trimColon:function(l){return l&&l[0]===":"?l.substr(1).trim():l.trim()},getAccTitle:wn,setAccTitle:te,getAccDescription:hi,setAccDescription:oi};function Qu(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var xi,Od=function(l,o,y){var k,A=Bt().state.padding,N=2*Bt().state.padding,L=l.node().getBBox(),O=L.width,P=L.x,Y=l.append("text").attr("x",0).attr("y",Bt().state.titleShift).attr("font-size",Bt().state.fontSize).attr("class","state-title").text(o.id),Z=Y.node().getBBox().width+N,nt=Math.max(Z,O);nt===O&&(nt+=N);var lt=l.node().getBBox();o.doc,k=P-A,Z>O&&(k=(O-nt)/2+A),Math.abs(P-lt.x)<A&&Z>O&&(k=P-(Z-O)/2);var ct=1-Bt().state.textHeight;return l.insert("rect",":first-child").attr("x",k).attr("y",ct).attr("class",y?"alt-composit":"composit").attr("width",nt).attr("height",lt.height+Bt().state.textHeight+Bt().state.titleShift+1).attr("rx","0"),Y.attr("x",k+A),Z<=O&&Y.attr("x",P+(nt-N)/2-Z/2+A),l.insert("rect",":first-child").attr("x",k).attr("y",Bt().state.titleShift-Bt().state.textHeight-Bt().state.padding).attr("width",nt).attr("height",3*Bt().state.textHeight).attr("rx",Bt().state.radius),l.insert("rect",":first-child").attr("x",k).attr("y",Bt().state.titleShift-Bt().state.textHeight-Bt().state.padding).attr("width",nt).attr("height",lt.height+3+2*Bt().state.textHeight).attr("rx",Bt().state.radius),l},Dd=function(l,o){o.attr("class","state-note");var y=o.append("rect").attr("x",0).attr("y",Bt().state.padding),k=function(L,O,P,Y){var Z=0,nt=Y.append("text");nt.style("text-anchor","start"),nt.attr("class","noteText");var lt,ct=L.replace(/\r\n/g,"<br/>"),Mt=(ct=ct.replace(/\n/g,"<br/>")).split(yr.lineBreakRegex),It=1.25*Bt().state.noteMargin,Ut=function(Pt,Ot){var Qt=typeof Symbol<"u"&&Pt[Symbol.iterator]||Pt["@@iterator"];if(!Qt){if(Array.isArray(Pt)||(Qt=function(Yt,se){if(Yt){if(typeof Yt=="string")return Qu(Yt,se);var ie=Object.prototype.toString.call(Yt).slice(8,-1);return ie==="Object"&&Yt.constructor&&(ie=Yt.constructor.name),ie==="Map"||ie==="Set"?Array.from(Yt):ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie)?Qu(Yt,se):void 0}}(Pt))||Ot&&Pt&&typeof Pt.length=="number"){Qt&&(Pt=Qt);var De=0,we=function(){};return{s:we,n:function(){return De>=Pt.length?{done:!0}:{done:!1,value:Pt[De++]}},e:function(Yt){throw Yt},f:we}}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 ue,Kt=!0,le=!1;return{s:function(){Qt=Qt.call(Pt)},n:function(){var Yt=Qt.next();return Kt=Yt.done,Yt},e:function(Yt){le=!0,ue=Yt},f:function(){try{Kt||Qt.return==null||Qt.return()}finally{if(le)throw ue}}}}(Mt);try{for(Ut.s();!(lt=Ut.n()).done;){var Ht=lt.value.trim();if(Ht.length>0){var Nt=nt.append("tspan");Nt.text(Ht),It===0&&(It+=Nt.node().getBBox().height),Z+=It,Nt.attr("x",0+Bt().state.noteMargin),Nt.attr("y",0+Z+1.25*Bt().state.noteMargin)}}}catch(Pt){Ut.e(Pt)}finally{Ut.f()}return{textWidth:nt.node().getBBox().width,textHeight:Z}}(l,0,0,o.append("g")),A=k.textWidth,N=k.textHeight;return y.attr("height",N+2*Bt().state.noteMargin),y.attr("width",A+2*Bt().state.noteMargin),y},th=function(l,o){var y=o.id,k={id:y,label:o.id,width:0,height:0},A=l.append("g").attr("id",y).attr("class","stateGroup");o.type==="start"&&function(L){L.append("circle").attr("class","start-state").attr("r",Bt().state.sizeUnit).attr("cx",Bt().state.padding+Bt().state.sizeUnit).attr("cy",Bt().state.padding+Bt().state.sizeUnit)}(A),o.type==="end"&&function(L){L.append("circle").attr("class","end-state-outer").attr("r",Bt().state.sizeUnit+Bt().state.miniPadding).attr("cx",Bt().state.padding+Bt().state.sizeUnit+Bt().state.miniPadding).attr("cy",Bt().state.padding+Bt().state.sizeUnit+Bt().state.miniPadding),L.append("circle").attr("class","end-state-inner").attr("r",Bt().state.sizeUnit).attr("cx",Bt().state.padding+Bt().state.sizeUnit+2).attr("cy",Bt().state.padding+Bt().state.sizeUnit+2)}(A),o.type!=="fork"&&o.type!=="join"||function(L,O){var P=Bt().state.forkWidth,Y=Bt().state.forkHeight;if(O.parentId){var Z=P;P=Y,Y=Z}L.append("rect").style("stroke","black").style("fill","black").attr("width",P).attr("height",Y).attr("x",Bt().state.padding).attr("y",Bt().state.padding)}(A,o),o.type==="note"&&Dd(o.note.text,A),o.type==="divider"&&function(L){L.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Bt().state.textHeight).attr("class","divider").attr("x2",2*Bt().state.textHeight).attr("y1",0).attr("y2",0)}(A),o.type==="default"&&o.descriptions.length===0&&function(L,O){var P=L.append("text").attr("x",2*Bt().state.padding).attr("y",Bt().state.textHeight+2*Bt().state.padding).attr("font-size",Bt().state.fontSize).attr("class","state-title").text(O.id).node().getBBox();L.insert("rect",":first-child").attr("x",Bt().state.padding).attr("y",Bt().state.padding).attr("width",P.width+2*Bt().state.padding).attr("height",P.height+2*Bt().state.padding).attr("rx",Bt().state.radius)}(A,o),o.type==="default"&&o.descriptions.length>0&&function(L,O){var P=L.append("text").attr("x",2*Bt().state.padding).attr("y",Bt().state.textHeight+1.3*Bt().state.padding).attr("font-size",Bt().state.fontSize).attr("class","state-title").text(O.descriptions[0]).node().getBBox(),Y=P.height,Z=L.append("text").attr("x",Bt().state.padding).attr("y",Y+.4*Bt().state.padding+Bt().state.dividerMargin+Bt().state.textHeight).attr("class","state-description"),nt=!0,lt=!0;O.descriptions.forEach(function(Ut){nt||(function(Ht,Nt,Pt){var Ot=Ht.append("tspan").attr("x",2*Bt().state.padding).text(Nt);Pt||Ot.attr("dy",Bt().state.textHeight)}(Z,Ut,lt),lt=!1),nt=!1});var ct=L.append("line").attr("x1",Bt().state.padding).attr("y1",Bt().state.padding+Y+Bt().state.dividerMargin/2).attr("y2",Bt().state.padding+Y+Bt().state.dividerMargin/2).attr("class","descr-divider"),Mt=Z.node().getBBox(),It=Math.max(Mt.width,P.width);ct.attr("x2",It+3*Bt().state.padding),L.insert("rect",":first-child").attr("x",Bt().state.padding).attr("y",Bt().state.padding).attr("width",It+2*Bt().state.padding).attr("height",Mt.height+Y+2*Bt().state.padding).attr("rx",Bt().state.radius)}(A,o);var N=A.node().getBBox();return k.width=N.width+2*Bt().state.padding,k.height=N.height+2*Bt().state.padding,k},H1=0,eh={},q1=function l(o,y,k,A,N,L,O){var P,Y=new(mi()).Graph({compound:!0,multigraph:!0}),Z=!0;for(P=0;P<o.length;P++)if(o[P].stmt==="relation"){Z=!1;break}k?Y.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:Z?1:xi.edgeLengthFactor,nodeSep:Z?1:50,isMultiGraph:!0}):Y.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:Z?1:xi.edgeLengthFactor,nodeSep:Z?1:50,ranker:"tight-tree",isMultiGraph:!0}),Y.setDefaultEdgeLabel(function(){return{}}),O.db.extract(o);for(var nt=O.db.getStates(),lt=O.db.getRelations(),ct=Object.keys(nt),Mt=0;Mt<ct.length;Mt++){var It=nt[ct[Mt]];k&&(It.parentId=k);var Ut=void 0;if(It.doc){var Ht=y.append("g").attr("id",It.id).attr("class","stateGroup");Ut=l(It.doc,Ht,It.id,!A,N,L,O);var Nt=(Ht=Od(Ht,It,A)).node().getBBox();Ut.width=Nt.width,Ut.height=Nt.height+xi.padding/2,eh[It.id]={y:xi.compositTitleSize}}else Ut=th(y,It);if(It.note){var Pt={descriptions:[],id:It.id+"-note",note:It.note,type:"note"},Ot=th(y,Pt);It.note.position==="left of"?(Y.setNode(Ut.id+"-note",Ot),Y.setNode(Ut.id,Ut)):(Y.setNode(Ut.id,Ut),Y.setNode(Ut.id+"-note",Ot)),Y.setParent(Ut.id,Ut.id+"-group"),Y.setParent(Ut.id+"-note",Ut.id+"-group")}else Y.setNode(Ut.id,Ut)}_.debug("Count=",Y.nodeCount(),Y);var Qt=0;lt.forEach(function(Kt){var le;Qt++,_.debug("Setting edge",Kt),Y.setEdge(Kt.id1,Kt.id2,{relation:Kt,width:(le=Kt.title,le?le.length*xi.fontSizeFactor:1),height:xi.labelHeight*yr.getRows(Kt.title).length,labelpos:"c"},"id"+Qt)}),ss().layout(Y),_.debug("Graph after layout",Y.nodes());var De=y.node();Y.nodes().forEach(function(Kt){Kt!==void 0&&Y.node(Kt)!==void 0?(_.warn("Node "+Kt+": "+JSON.stringify(Y.node(Kt))),N.select("#"+De.id+" #"+Kt).attr("transform","translate("+(Y.node(Kt).x-Y.node(Kt).width/2)+","+(Y.node(Kt).y+(eh[Kt]?eh[Kt].y:0)-Y.node(Kt).height/2)+" )"),N.select("#"+De.id+" #"+Kt).attr("data-x-shift",Y.node(Kt).x-Y.node(Kt).width/2),L.querySelectorAll("#"+De.id+" #"+Kt+" .divider").forEach(function(le){var Yt=le.parentElement,se=0,ie=0;Yt&&(Yt.parentElement&&(se=Yt.parentElement.getBBox().width),ie=parseInt(Yt.getAttribute("data-x-shift"),10),Number.isNaN(ie)&&(ie=0)),le.setAttribute("x1",0-ie+8),le.setAttribute("x2",se-ie-8)})):_.debug("No Node "+Kt+": "+JSON.stringify(Y.node(Kt)))});var we=De.getBBox();Y.edges().forEach(function(Kt){Kt!==void 0&&Y.edge(Kt)!==void 0&&(_.debug("Edge "+Kt.v+" -> "+Kt.w+": "+JSON.stringify(Y.edge(Kt))),function(le,Yt,se){Yt.points=Yt.points.filter(function(fi){return!Number.isNaN(fi.y)});var ie=Yt.points,de=(0,E.line)().x(function(fi){return fi.x}).y(function(fi){return fi.y}).curve(E.curveBasis),Le=le.append("path").attr("d",de(ie)).attr("id","edge"+H1).attr("class","transition"),Be="";if(Bt().state.arrowMarkerAbsolute&&(Be=(Be=(Be=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Le.attr("marker-end","url("+Be+"#"+function(fi){switch(fi){case wo.relationType.AGGREGATION:return"aggregation";case wo.relationType.EXTENSION:return"extension";case wo.relationType.COMPOSITION:return"composition";case wo.relationType.DEPENDENCY:return"dependency"}}(wo.relationType.DEPENDENCY)+"End)"),se.title!==void 0){for(var Ue=le.append("g").attr("class","stateLabel"),pr=en.calcLabelPosition(Yt.points),Ye=pr.x,cr=pr.y,hr=yr.getRows(se.title),We=0,Ge=[],_r=0,_n=0,Tn=0;Tn<=hr.length;Tn++){var ti=Ue.append("text").attr("text-anchor","middle").text(hr[Tn]).attr("x",Ye).attr("y",cr+We),fn=ti.node().getBBox();if(_r=Math.max(_r,fn.width),_n=Math.min(_n,fn.x),_.info(fn.x,Ye,cr+We),We===0){var Di=ti.node().getBBox();We=Di.height,_.info("Title height",We,cr)}Ge.push(ti)}var un=We*hr.length;if(hr.length>1){var Za=(hr.length-1)*We*.5;Ge.forEach(function(fi,Rn){return fi.attr("y",cr+Rn*We-Za)}),un=We*hr.length}var da=Ue.node().getBBox();Ue.insert("rect",":first-child").attr("class","box").attr("x",Ye-_r/2-Bt().state.padding/2).attr("y",cr-un/2-Bt().state.padding/2-3.5).attr("width",_r+Bt().state.padding).attr("height",un+Bt().state.padding),_.info(da)}H1++}(y,Y.edge(Kt),Y.edge(Kt).relation))}),we=De.getBBox();var ue={id:k||"root",label:k||"root",width:0,height:0};return ue.width=we.width+2*xi.padding,ue.height=we.height+2*xi.padding,_.debug("Doc rendered",ue,Y),ue};const Fc={setConf:function(){},draw:function(l,o,y,k){xi=Bt().state;var A,N=Bt().securityLevel;N==="sandbox"&&(A=(0,E.select)("#i"+o));var L=N==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),O=N==="sandbox"?A.nodes()[0].contentDocument:document;_.debug("Rendering diagram "+l);var P=L.select("[id='".concat(o,"']"));P.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"),new(mi()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var Y=k.db.getRootDoc();q1(Y,P,void 0,!1,L,O,k);var Z=xi.padding,nt=P.node().getBBox(),lt=nt.width+2*Z,ct=nt.height+2*Z;ea(P,ct,1.75*lt,xi.useMaxWidth),P.attr("viewBox","".concat(nt.x-xi.padding," ").concat(nt.y-xi.padding," ")+lt+" "+ct),Pn(k.db,P,o)}};var Rd={},pn={},Fl=function(l,o,y,k){if(y.id!=="root"){var A="rect";y.start===!0&&(A="start"),y.start===!1&&(A="end"),y.type!=="default"&&(A=y.type),pn[y.id]||(pn[y.id]={id:y.id,shape:A,description:yr.sanitizeText(y.id,Bt()),classes:"statediagram-state"}),y.description&&(Array.isArray(pn[y.id].description)?(pn[y.id].shape="rectWithTitle",pn[y.id].description.push(y.description)):pn[y.id].description.length>0?(pn[y.id].shape="rectWithTitle",pn[y.id].description===y.id?pn[y.id].description=[y.description]:pn[y.id].description=[pn[y.id].description,y.description]):(pn[y.id].shape="rect",pn[y.id].description=y.description),pn[y.id].description=yr.sanitizeTextOrArray(pn[y.id].description,Bt())),pn[y.id].description.length===1&&pn[y.id].shape==="rectWithTitle"&&(pn[y.id].shape="rect"),!pn[y.id].type&&y.doc&&(_.info("Setting cluster for ",y.id,rh(y)),pn[y.id].type="group",pn[y.id].dir=rh(y),pn[y.id].shape=y.type==="divider"?"divider":"roundedWithTitle",pn[y.id].classes=pn[y.id].classes+" "+(k?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var N={labelStyle:"",shape:pn[y.id].shape,labelText:pn[y.id].description,classes:pn[y.id].classes,style:"",id:y.id,dir:pn[y.id].dir,domId:"state-"+y.id+"-"+oo,type:pn[y.id].type,padding:15};if(y.note){var L={labelStyle:"",shape:"note",labelText:y.note.text,classes:"statediagram-note",style:"",id:y.id+"----note-"+oo,domId:"state-"+y.id+"----note-"+oo,type:pn[y.id].type,padding:15},O={labelStyle:"",shape:"noteGroup",labelText:y.note.text,classes:pn[y.id].classes,style:"",id:y.id+"----parent",domId:"state-"+y.id+"----parent-"+oo,type:"group",padding:0};oo++,l.setNode(y.id+"----parent",O),l.setNode(L.id,L),l.setNode(y.id,N),l.setParent(y.id,y.id+"----parent"),l.setParent(L.id,y.id+"----parent");var P=y.id,Y=L.id;y.note.position==="left of"&&(P=L.id,Y=y.id),l.setEdge(P,Y,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else l.setNode(y.id,N)}o&&o.id!=="root"&&(_.trace("Setting node ",y.id," to be child of its parent ",o.id),l.setParent(y.id,o.id)),y.doc&&(_.trace("Adding nodes children "),Bd(l,y,y.doc,!k))},oo=0,Bd=function(l,o,y,k){_.trace("items",y),y.forEach(function(A){if(A.stmt==="state"||A.stmt==="default")Fl(l,o,A,k);else if(A.stmt==="relation"){Fl(l,o,A.state1,k),Fl(l,o,A.state2,k);var N={id:"edge"+oo,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:yr.sanitizeText(A.description,Bt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},L=A.state1.id,O=A.state2.id;l.setEdge(L,O,N,oo),oo++}})},rh=function(l,o){var y=o||"TB";if(l.doc)for(var k=0;k<l.doc.length;k++){var A=l.doc[k];A.stmt==="dir"&&(y=A.value)}return y};const nh={setConf:function(l){for(var o=Object.keys(l),y=0;y<o.length;y++)Rd[o[y]]=l[o[y]]},getClasses:function(l,o){return _.trace("Extracting classes"),o.sb.clear(),o.parser.parse(l),o.sb.getClasses()},draw:function(l,o,y,k){_.info("Drawing state diagram (v2)",o),pn={},k.db.getDirection();var A=Bt().state,N=A.nodeSpacing||50,L=A.rankSpacing||50,O=Bt().securityLevel;_.info(k.db.getRootDocV2()),k.db.extract(k.db.getRootDocV2()),_.info(k.db.getRootDocV2());var P,Y=new(mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:rh(k.db.getRootDocV2()),nodesep:N,ranksep:L,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Fl(Y,void 0,k.db.getRootDocV2(),!0),O==="sandbox"&&(P=(0,E.select)("#i"+o));var Z=O==="sandbox"?(0,E.select)(P.nodes()[0].contentDocument.body):(0,E.select)("body"),nt=(O==="sandbox"&&P.nodes()[0].contentDocument,Z.select('[id="'.concat(o,'"]'))),lt=Z.select("#"+o+" g");ul(lt,Y,["barb"],"statediagram",o);var ct=nt.node().getBBox(),Mt=ct.width+16,It=ct.height+16;nt.attr("class","statediagram");var Ut=nt.node().getBBox();ea(nt,It,1.75*Mt,A.useMaxWidth);var Ht="".concat(Ut.x-8," ").concat(Ut.y-8," ").concat(Mt," ").concat(It);_.debug("viewBox ".concat(Ht)),nt.attr("viewBox",Ht);for(var Nt=document.querySelectorAll('[id="'+o+'"] .edgeLabel .label'),Pt=0;Pt<Nt.length;Pt++){var Ot=Nt[Pt],Qt=Ot.getBBox(),De=document.createElementNS("http://www.w3.org/2000/svg","rect");De.setAttribute("rx",0),De.setAttribute("ry",0),De.setAttribute("width",Qt.width),De.setAttribute("height",Qt.height),Ot.insertBefore(De,Ot.firstChild)}Pn(k.db,nt,o)}};function xs(l){return function(o){if(Array.isArray(o))return ih(o)}(l)||function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}(l)||function(o,y){if(o){if(typeof o=="string")return ih(o,y);var k=Object.prototype.toString.call(o).slice(8,-1);return k==="Object"&&o.constructor&&(k=o.constructor.name),k==="Map"||k==="Set"?Array.from(o):k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k)?ih(o,y):void 0}}(l)||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.`)}()}function ih(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,k=new Array(o);y<o;y++)k[y]=l[y];return k}var ws="",ah=[],Qs=[],tc=[],W1=function(){for(var l=!0,o=0;o<tc.length;o++)tc[o].processed,l=l&&tc[o].processed;return l};const G1={parseDirective:function(l,o,y){xr.parseDirective(this,l,o,y)},getConfig:function(){return Bt().journey},clear:function(){ah.length=0,Qs.length=0,ws="",tc.length=0,Un()},setDiagramTitle:Na,getDiagramTitle:Bi,setAccTitle:te,getAccTitle:wn,setAccDescription:oi,getAccDescription:hi,addSection:function(l){ws=l,ah.push(l)},getSections:function(){return ah},getTasks:function(){for(var l=W1(),o=0;!l&&o<100;)l=W1(),o++;return Qs.push.apply(Qs,tc),Qs},addTask:function(l,o){var y=o.substr(1).split(":"),k=0,A=[];y.length===1?(k=Number(y[0]),A=[]):(k=Number(y[0]),A=y[1].split(","));var N=A.map(function(O){return O.trim()}),L={section:ws,type:ws,people:N,task:l,score:k};tc.push(L)},addTaskOrg:function(l){var o={section:ws,type:ws,description:l,task:l,classes:[]};Qs.push(o)},getActors:function(){return l=[],Qs.forEach(function(o){o.people&&l.push.apply(l,xs(o.people))}),xs(new Set(l)).sort();var l}};var V1=function(l,o){var y=l.append("rect");return y.attr("x",o.x),y.attr("y",o.y),y.attr("fill",o.fill),y.attr("stroke",o.stroke),y.attr("width",o.width),y.attr("height",o.height),y.attr("rx",o.rx),y.attr("ry",o.ry),o.class!==void 0&&y.attr("class",o.class),y},Pc=function(l,o){var y=l.append("circle");return y.attr("cx",o.cx),y.attr("cy",o.cy),y.attr("class","actor-"+o.pos),y.attr("fill",o.fill),y.attr("stroke",o.stroke),y.attr("r",o.r),y.class!==void 0&&y.attr("class",y.class),o.title!==void 0&&y.append("title").text(o.title),y},oh=-1,Z1=function(){function l(A,N,L,O,P,Y,Z,nt){k(N.append("text").attr("x",L+P/2).attr("y",O+Y/2+5).style("font-color",nt).style("text-anchor","middle").text(A),Z)}function o(A,N,L,O,P,Y,Z,nt,lt){for(var ct=nt.taskFontSize,Mt=nt.taskFontFamily,It=A.split(/<br\s*\/?>/gi),Ut=0;Ut<It.length;Ut++){var Ht=Ut*ct-ct*(It.length-1)/2,Nt=N.append("text").attr("x",L+P/2).attr("y",O).attr("fill",lt).style("text-anchor","middle").style("font-size",ct).style("font-family",Mt);Nt.append("tspan").attr("x",L+P/2).attr("dy",Ht).text(It[Ut]),Nt.attr("y",O+Y/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),k(Nt,Z)}}function y(A,N,L,O,P,Y,Z,nt){var lt=N.append("switch"),ct=lt.append("foreignObject").attr("x",L).attr("y",O).attr("width",P).attr("height",Y).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");ct.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(A),o(A,lt,L,O,P,Y,Z,nt),k(ct,Z)}function k(A,N){for(var L in N)L in N&&A.attr(L,N[L])}return function(A){return A.textPlacement==="fo"?y:A.textPlacement==="old"?l:o}}();const Fd=Pc,Pd=function(l,o,y){var k=l.append("g"),A={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};A.x=o.x,A.y=o.y,A.fill=o.fill,A.width=y.width,A.height=y.height,A.class="journey-section section-type-"+o.num,A.rx=3,A.ry=3,V1(k,A),Z1(y)(o.text,k,A.x,A.y,A.width,A.height,{class:"journey-section section-type-"+o.num},y,o.colour)},zd=function(l,o){var y=o.text.replace(/<br\s*\/?>/gi," "),k=l.append("text");k.attr("x",o.x),k.attr("y",o.y),k.attr("class","legend"),k.style("text-anchor",o.anchor),o.class!==void 0&&k.attr("class",o.class);var A=k.append("tspan");return A.attr("x",o.x+2*o.textMargin),A.text(y),k},Ud=function(l,o,y){var k,A,N,L=o.x+y.width/2,O=l.append("g");oh++,O.append("line").attr("id","task"+oh).attr("x1",L).attr("y1",o.y).attr("x2",L).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),k=O,A={cx:L,cy:300+30*(5-o.score),score:o.score},k.append("circle").attr("cx",A.cx).attr("cy",A.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(N=k.append("g")).append("circle").attr("cx",A.cx-5).attr("cy",A.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),N.append("circle").attr("cx",A.cx+5).attr("cy",A.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),A.score>3?function(Z){var nt=(0,E.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);Z.append("path").attr("class","mouth").attr("d",nt).attr("transform","translate("+A.cx+","+(A.cy+2)+")")}(N):A.score<3?function(Z){var nt=(0,E.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);Z.append("path").attr("class","mouth").attr("d",nt).attr("transform","translate("+A.cx+","+(A.cy+7)+")")}(N):function(Z){Z.append("line").attr("class","mouth").attr("stroke",2).attr("x1",A.cx-5).attr("y1",A.cy+7).attr("x2",A.cx+5).attr("y2",A.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(N);var P={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};P.x=o.x,P.y=o.y,P.fill=o.fill,P.width=y.width,P.height=y.height,P.class="task task-type-"+o.num,P.rx=3,P.ry=3,V1(O,P);var Y=o.x+14;o.people.forEach(function(Z){var nt=o.actors[Z].color,lt={cx:Y,cy:o.y,r:7,fill:nt,stroke:"#000",title:Z,pos:o.actors[Z].position};Pc(O,lt),Y+=10}),Z1(y)(o.task,O,P.x,P.y,P.width,P.height,{class:"task"},y,o.colour)};var ko={},zc=Bt().journey,ks=Bt().journey.leftMargin,za={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(l,o,y,k){l[o]===void 0?l[o]=y:l[o]=k(y,l[o])},updateBounds:function(l,o,y,k){var A=Bt().journey,N=this,L=0;this.sequenceItems.forEach(function(O){L++;var P=N.sequenceItems.length-L+1;N.updateVal(O,"starty",o-P*A.boxMargin,Math.min),N.updateVal(O,"stopy",k+P*A.boxMargin,Math.max),N.updateVal(za.data,"startx",l-P*A.boxMargin,Math.min),N.updateVal(za.data,"stopx",y+P*A.boxMargin,Math.max),N.updateVal(O,"startx",l-P*A.boxMargin,Math.min),N.updateVal(O,"stopx",y+P*A.boxMargin,Math.max),N.updateVal(za.data,"starty",o-P*A.boxMargin,Math.min),N.updateVal(za.data,"stopy",k+P*A.boxMargin,Math.max)})},insert:function(l,o,y,k){var A=Math.min(l,y),N=Math.max(l,y),L=Math.min(o,k),O=Math.max(o,k);this.updateVal(za.data,"startx",A,Math.min),this.updateVal(za.data,"starty",L,Math.min),this.updateVal(za.data,"stopx",N,Math.max),this.updateVal(za.data,"stopy",O,Math.max),this.updateBounds(A,L,N,O)},bumpVerticalPos:function(l){this.verticalPos=this.verticalPos+l,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},sh=zc.sectionFills,X1=zc.sectionColours;const Pl={setConf:function(l){Object.keys(l).forEach(function(o){zc[o]=l[o]})},draw:function(l,o,y,k){var A=Bt().journey;k.db.clear(),k.parser.parse(l+`
`);var N,L=Bt().securityLevel;L==="sandbox"&&(N=(0,E.select)("#i"+o));var O=L==="sandbox"?(0,E.select)(N.nodes()[0].contentDocument.body):(0,E.select)("body");za.init();var P=O.select("#"+o);P.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z");var Y=k.db.getTasks(),Z=k.db.getDiagramTitle(),nt=k.db.getActors();for(var lt in ko)delete ko[lt];var ct=0;nt.forEach(function(Nt){ko[Nt]={color:A.actorColours[ct%A.actorColours.length],position:ct},ct++}),function(Nt){var Pt=Bt().journey,Ot=60;Object.keys(ko).forEach(function(Qt){var De=ko[Qt].color,we={cx:20,cy:Ot,r:7,fill:De,stroke:"#000",pos:ko[Qt].position};Fd(Nt,we);var ue={x:40,y:Ot+7,fill:"#666",text:Qt,textMargin:5|Pt.boxTextMargin};zd(Nt,ue),Ot+=20})}(P),za.insert(0,0,ks,50*Object.keys(ko).length),function(Nt,Pt,Ot){for(var Qt=Bt().journey,De="",we=Ot+(2*Qt.height+Qt.diagramMarginY),ue=0,Kt="#CCC",le="black",Yt=0,se=0;se<Pt.length;se++){var ie=Pt[se];if(De!==ie.section){Kt=sh[ue%sh.length],Yt=ue%sh.length,le=X1[ue%X1.length];var de={x:se*Qt.taskMargin+se*Qt.width+ks,y:50,text:ie.section,fill:Kt,num:Yt,colour:le};Pd(Nt,de,Qt),De=ie.section,ue++}var Le=ie.people.reduce(function(Be,Ue){return ko[Ue]&&(Be[Ue]=ko[Ue]),Be},{});ie.x=se*Qt.taskMargin+se*Qt.width+ks,ie.y=we,ie.width=Qt.diagramMarginX,ie.height=Qt.diagramMarginY,ie.colour=le,ie.fill=Kt,ie.num=Yt,ie.actors=Le,Ud(Nt,ie,Qt),za.insert(ie.x,ie.y,ie.x+ie.width+Qt.taskMargin,450)}}(P,Y,0);var Mt=za.getBounds();Z&&P.append("text").text(Z).attr("x",ks).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var It=Mt.stopy-Mt.starty+2*A.diagramMarginY,Ut=ks+Mt.stopx+2*A.diagramMarginX;ea(P,It,Ut,A.useMaxWidth),P.append("line").attr("x1",ks).attr("y1",4*A.height).attr("x2",Ut-ks-4).attr("y2",4*A.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var Ht=Z?70:0;P.attr("viewBox","".concat(Mt.startx," -25 ").concat(Ut," ").concat(It+Ht)),P.attr("preserveAspectRatio","xMinYMin meet"),P.attr("height",It+Ht+25),Pn(k.db,P,o)}};var ia=h(9763),Yd=h.n(ia),K1={c4:{db:Kn,renderer:tr,parser:an(),init:function(l){tr.setConf(l.c4)}},class:{db:Mo,renderer:td,parser:pu(),init:function(l){l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,Mo.clear()}},classDiagram:{db:Mo,renderer:ed,parser:pu(),init:function(l){l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,Mo.clear()}},er:{db:rd,renderer:nd,parser:ad()},flowchart:{db:no,renderer:vl,parser:Tu(),init:function(l){vl.setConf(l.flowchart),l.flowchart.arrowMarkerAbsolute=l.arrowMarkerAbsolute,no.clear(),no.setGen("gen-1")}},"flowchart-v2":{db:no,renderer:ku,parser:Tu(),init:function(l){ku.setConf(l.flowchart),l.flowchart.arrowMarkerAbsolute=l.arrowMarkerAbsolute,no.clear(),no.setGen("gen-2")}},gantt:{db:E1,renderer:Tl,parser:S1(),init:function(l){Tl.setConf(l.gantt)}},info:{db:A1,renderer:pd,parser:Wa()},pie:{db:C1,renderer:io,parser:Bu()},requirement:{db:L1,renderer:yd,parser:I1()},sequence:{db:ju,renderer:Rc,parser:vo(),init:function(l){l.sequence.arrowMarkerAbsolute=l.arrowMarkerAbsolute,l.sequenceDiagram&&(Rc.setConf(Object.assign(l.sequence,l.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")),ju.setWrap(l.wrap),Rc.setConf(l.sequence)}},state:{db:wo,renderer:Fc,parser:z1(),init:function(l){l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,wo.clear()}},stateDiagram:{db:wo,renderer:nh,parser:z1(),init:function(l){l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,wo.clear()}},journey:{db:G1,renderer:Pl,parser:Yd(),init:function(l){Pl.setConf(l.journey),G1.clear()}}},zl=function(){return K1};function Ul(l,o){var y=Object.keys(l);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(l);o&&(k=k.filter(function(A){return Object.getOwnPropertyDescriptor(l,A).enumerable})),y.push.apply(y,k)}return y}function ch(l){for(var o=1;o<arguments.length;o++){var y=arguments[o]!=null?arguments[o]:{};o%2?Ul(Object(y),!0).forEach(function(k){aa(l,k,y[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(y)):Ul(Object(y)).forEach(function(k){Object.defineProperty(l,k,Object.getOwnPropertyDescriptor(y,k))})}return l}function aa(l,o,y){return o in l?Object.defineProperty(l,o,{value:y,enumerable:!0,configurable:!0,writable:!0}):l[o]=y,l}var li=Bt().gitGraph.mainBranchName,Go=Bt().gitGraph.mainBranchOrder,Mi={},oa=null,Yl={};Yl[li]={name:li,order:Go};var Ei={};Ei[li]=oa;var Oi=li,J1="LR",Vo=0;function lh(){return mc({length:7})}var Q1={},t0=function(l){if(l=yr.sanitizeText(l,Bt()),Ei[l]===void 0){var o=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+l+'")');throw o.hash={text:"checkout "+l,token:"checkout "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+l+'"']},o}var y=Ei[Oi=l];oa=Mi[y]};function e0(l,o,y){var k=l.indexOf(o);k===-1?l.push(y):l.splice(k,1,y)}function r0(l){var o=l.reduce(function(Z,nt){return Z.seq>nt.seq?Z:nt},l[0]),y="";l.forEach(function(Z){y+=Z===o?" *":" |"});var k,A,N,L=[y,o.id,o.seq];for(var O in Ei)Ei[O]===o.id&&L.push(O);if(_.debug(L.join(" ")),o.parents&&o.parents.length==2){var P=Mi[o.parents[0]];e0(l,o,P),l.push(Mi[o.parents[1]])}else{if(o.parents.length==0)return;var Y=Mi[o.parents];e0(l,o,Y)}k=l,A=function(Z){return Z.id},N=Object.create(null),r0(l=k.reduce(function(Z,nt){var lt=A(nt);return N[lt]||(N[lt]=!0,Z.push(nt)),Z},[]))}var n0=function(){var l=Object.keys(Mi).map(function(o){return Mi[o]});return l.forEach(function(o){_.debug(o.id)}),l.sort(function(o,y){return o.seq-y.seq}),l},Uc={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};const jd={parseDirective:function(l,o,y){xr.parseDirective(this,l,o,y)},getConfig:function(){return Bt().gitGraph},setDirection:function(l){J1=l},setOptions:function(l){_.debug("options str",l),l=(l=l&&l.trim())||"{}";try{Q1=JSON.parse(l)}catch(o){_.error("error while parsing gitGraph options",o.message)}},getOptions:function(){return Q1},commit:function(l,o,y,k){_.debug("Entering commit:",l,o,y,k),o=yr.sanitizeText(o,Bt()),l=yr.sanitizeText(l,Bt()),k=yr.sanitizeText(k,Bt());var A={id:o||Vo+"-"+lh(),message:l,seq:Vo++,type:y||Uc.NORMAL,tag:k||"",parents:oa==null?[]:[oa.id],branch:Oi};oa=A,Mi[A.id]=A,Ei[Oi]=A.id,_.debug("in pushCommit "+A.id)},branch:function(l,o){if(l=yr.sanitizeText(l,Bt()),Ei[l]!==void 0){var y=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 '+l+'")');throw y.hash={text:"branch "+l,token:"branch "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+l+'"']},y}Ei[l]=oa!=null?oa.id:null,Yl[l]={name:l,order:o?parseInt(o,10):null},t0(l),_.debug("in createBranch")},merge:function(l,o){l=yr.sanitizeText(l,Bt());var y=Mi[Ei[Oi]],k=Mi[Ei[l]];if(Oi===l){var A=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw A.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},A}if(y===void 0||!y){var N=new Error('Incorrect usage of "merge". Current branch ('+Oi+")has no commits");throw N.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},N}if(Ei[l]===void 0){var L=new Error('Incorrect usage of "merge". Branch to be merged ('+l+") does not exist");throw L.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+l]},L}if(k===void 0||!k){var O=new Error('Incorrect usage of "merge". Branch to be merged ('+l+") has no commits");throw O.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},O}if(y===k){var P=new Error('Incorrect usage of "merge". Both branches have same head');throw P.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},P}var Y={id:Vo+"-"+lh(),message:"merged branch "+l+" into "+Oi,seq:Vo++,parents:[oa==null?null:oa.id,Ei[l]],branch:Oi,type:Uc.MERGE,tag:o||""};oa=Y,Mi[Y.id]=Y,Ei[Oi]=Y.id,_.debug(Ei),_.debug("in mergeBranch")},cherryPick:function(l,o){if(l=yr.sanitizeText(l,Bt()),o=yr.sanitizeText(o,Bt()),!l||Mi[l]===void 0){var y=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw y.hash={text:"cherryPick "+l+" "+o,token:"cherryPick "+l+" "+o,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}var k=Mi[l],A=k.branch;if(k.type===Uc.MERGE){var N=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw N.hash={text:"cherryPick "+l+" "+o,token:"cherryPick "+l+" "+o,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},N}if(!o||Mi[o]===void 0){if(A===Oi){var L=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw L.hash={text:"cherryPick "+l+" "+o,token:"cherryPick "+l+" "+o,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},L}var O=Mi[Ei[Oi]];if(O===void 0||!O){var P=new Error('Incorrect usage of "cherry-pick". Current branch ('+Oi+")has no commits");throw P.hash={text:"cherryPick "+l+" "+o,token:"cherryPick "+l+" "+o,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},P}var Y={id:Vo+"-"+lh(),message:"cherry-picked "+k+" into "+Oi,seq:Vo++,parents:[oa==null?null:oa.id,k.id],branch:Oi,type:Uc.CHERRY_PICK,tag:"cherry-pick:"+k.id};oa=Y,Mi[Y.id]=Y,Ei[Oi]=Y.id,_.debug(Ei),_.debug("in cheeryPick")}},checkout:t0,prettyPrint:function(){_.debug(Mi),r0([n0()[0]])},clear:function(){Mi={},oa=null;var l=Bt().gitGraph.mainBranchName,o=Bt().gitGraph.mainBranchOrder;(Ei={})[l]=null,(Yl={})[l]={name:l,order:o},Oi=l,Vo=0,Un()},getBranchesAsObjArray:function(){return Object.values(Yl).map(function(l,o){return l.order!==null?l:ch(ch({},l),{},{order:parseFloat("0.".concat(o),10)})}).sort(function(l,o){return l.order-o.order}).map(function(l){return{name:l.name}})},getBranches:function(){return Ei},getCommits:function(){return Mi},getCommitsArray:n0,getCurrentBranch:function(){return Oi},getDirection:function(){return J1},getHead:function(){return oa},setAccTitle:te,getAccTitle:wn,getAccDescription:hi,setAccDescription:oi,commitType:Uc};var Zo={},Ti={},Es={},Yc=[],Eo=0,jc=function(l,o,y){var k=Bt().gitGraph,A=l.append("g").attr("class","commit-bullets"),N=l.append("g").attr("class","commit-labels"),L=0;Object.keys(o).sort(function(O,P){return o[O].seq-o[P].seq}).forEach(function(O,P){var Y=o[O],Z=Ti[Y.branch].pos,nt=L+10;if(y){var lt;switch(Y.type){case 0:default:lt="commit-normal";break;case 1:lt="commit-reverse";break;case 2:lt="commit-highlight";break;case 3:lt="commit-merge";break;case 4:lt="commit-cherry-pick"}if(Y.type===2){var ct=A.append("rect");ct.attr("x",nt-10),ct.attr("y",Z-10),ct.attr("height",20),ct.attr("width",20),ct.attr("class","commit ".concat(Y.id," commit-highlight").concat(Ti[Y.branch].index%8," ").concat(lt,"-outer")),A.append("rect").attr("x",nt-6).attr("y",Z-6).attr("height",12).attr("width",12).attr("class","commit ".concat(Y.id," commit").concat(Ti[Y.branch].index%8," ").concat(lt,"-inner"))}else if(Y.type===4)A.append("circle").attr("cx",nt).attr("cy",Z).attr("r",10).attr("class","commit ".concat(Y.id," ").concat(lt)),A.append("circle").attr("cx",nt-3).attr("cy",Z+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(Y.id," ").concat(lt)),A.append("circle").attr("cx",nt+3).attr("cy",Z+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(Y.id," ").concat(lt)),A.append("line").attr("x1",nt+3).attr("y1",Z+1).attr("x2",nt).attr("y2",Z-5).attr("stroke","#fff").attr("class","commit ".concat(Y.id," ").concat(lt)),A.append("line").attr("x1",nt-3).attr("y1",Z+1).attr("x2",nt).attr("y2",Z-5).attr("stroke","#fff").attr("class","commit ".concat(Y.id," ").concat(lt));else{var Mt=A.append("circle");if(Mt.attr("cx",nt),Mt.attr("cy",Z),Mt.attr("r",Y.type===3?9:10),Mt.attr("class","commit ".concat(Y.id," commit").concat(Ti[Y.branch].index%8)),Y.type===3){var It=A.append("circle");It.attr("cx",nt),It.attr("cy",Z),It.attr("r",6),It.attr("class","commit ".concat(lt," ").concat(Y.id," commit").concat(Ti[Y.branch].index%8))}Y.type===1&&A.append("path").attr("d","M ".concat(nt-5,",").concat(Z-5,"L").concat(nt+5,",").concat(Z+5,"M").concat(nt-5,",").concat(Z+5,"L").concat(nt+5,",").concat(Z-5)).attr("class","commit ".concat(lt," ").concat(Y.id," commit").concat(Ti[Y.branch].index%8))}}if(Es[Y.id]={x:L+10,y:Z},y){if(Y.type!==4&&Y.type!==3&&k.showCommitLabel){var Ut=N.append("g"),Ht=Ut.insert("rect").attr("class","commit-label-bkg"),Nt=Ut.append("text").attr("x",L).attr("y",Z+25).attr("class","commit-label").text(Y.id),Pt=Nt.node().getBBox();if(Ht.attr("x",L+10-Pt.width/2-2).attr("y",Z+13.5).attr("width",Pt.width+4).attr("height",Pt.height+4),Nt.attr("x",L+10-Pt.width/2),k.rotateCommitLabel){var Ot=-7.5-(Pt.width+10)/25*9.5,Qt=10+Pt.width/25*8.5;Ut.attr("transform","translate("+Ot+", "+Qt+") rotate(-45, "+L+", "+Z+")")}}if(Y.tag){var De=N.insert("polygon"),we=N.append("circle"),ue=N.append("text").attr("y",Z-16).attr("class","tag-label").text(Y.tag),Kt=ue.node().getBBox();ue.attr("x",L+10-Kt.width/2);var le=Kt.height/2,Yt=Z-19.2;De.attr("class","tag-label-bkg").attr("points",`
`.concat(L-Kt.width/2-2,",").concat(Yt+2,`
`).concat(L-Kt.width/2-2,",").concat(Yt-2,`
`).concat(L+10-Kt.width/2-4,",").concat(Yt-le-2,`
`).concat(L+10+Kt.width/2+4,",").concat(Yt-le-2,`
`).concat(L+10+Kt.width/2+4,",").concat(Yt+le+2,`
`).concat(L+10-Kt.width/2-4,",").concat(Yt+le+2)),we.attr("cx",L-Kt.width/2+2).attr("cy",Yt).attr("r",1.5).attr("class","tag-hole")}}(L+=50)>Eo&&(Eo=L)})},uh=function l(o,y,k){var A=k||0,N=o+Math.abs(o-y)/2;if(A>5)return N;for(var L=!0,O=0;O<Yc.length;O++)Math.abs(Yc[O]-N)<10&&(L=!1);return L?(Yc.push(N),N):l(o,y-Math.abs(o-y)/5,A)};const i0={draw:function(l,o,y,k){Ti={},Es={},Zo={},Eo=0,Yc=[];var A=Bt(),N=Bt().gitGraph;_.debug("in gitgraph renderer",l+`
`,"id:",o,y),Zo=k.db.getCommits();var L=k.db.getBranchesAsObjArray(),O=0;L.forEach(function(Mt,It){Ti[Mt.name]={pos:O,index:It},O+=50+(N.rotateCommitLabel?40:0)});var P=(0,E.select)('[id="'.concat(o,'"]'));Pn(k.db,P,o),jc(P,Zo,!1),N.showBranches&&function(Mt,It){var Ut=Bt().gitGraph,Ht=Mt.append("g");It.forEach(function(Nt,Pt){var Ot=Pt%8,Qt=Ti[Nt.name].pos,De=Ht.append("line");De.attr("x1",0),De.attr("y1",Qt),De.attr("x2",Eo),De.attr("y2",Qt),De.attr("class","branch branch"+Ot),Yc.push(Qt);var we=function(Yt){var se=document.createElementNS("http://www.w3.org/2000/svg","text"),ie=[];ie=typeof Yt=="string"?Yt.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(Yt)?Yt:[];for(var de=0;de<ie.length;de++){var Le=document.createElementNS("http://www.w3.org/2000/svg","tspan");Le.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Le.setAttribute("dy","1em"),Le.setAttribute("x","0"),Le.setAttribute("class","row"),Le.textContent=ie[de].trim(),se.appendChild(Le)}return se}(Nt.name),ue=Ht.insert("rect"),Kt=Ht.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+Ot);Kt.node().appendChild(we);var le=we.getBBox();ue.attr("class","branchLabelBkg label"+Ot).attr("rx",4).attr("ry",4).attr("x",-le.width-4-(Ut.rotateCommitLabel===!0?30:0)).attr("y",-le.height/2+8).attr("width",le.width+18).attr("height",le.height+4),Kt.attr("transform","translate("+(-le.width-14-(Ut.rotateCommitLabel===!0?30:0))+", "+(Qt-le.height/2-1)+")"),ue.attr("transform","translate(-19, "+(Qt-le.height/2)+")")})}(P,L),function(Mt,It){var Ut=Mt.append("g").attr("class","commit-arrows");Object.keys(It).forEach(function(Ht,Nt){var Pt=It[Ht];Pt.parents&&Pt.parents.length>0&&Pt.parents.forEach(function(Ot){(function(Qt,De,we,ue){var Kt=Bt(),le=Es[De.id],Yt=Es[we.id],se=function(cr,hr,We){return Es[hr.id],Es[cr.id],Object.keys(We).filter(function(Ge){return We[Ge].branch===hr.branch&&We[Ge].seq>cr.seq&&We[Ge].seq<hr.seq}).length>0}(De,we,ue);Kt.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var ie,de="",Le="",Be=0,Ue=0,pr=Ti[we.branch].index;if(se){de="A 10 10, 0, 0, 0,",Le="A 10 10, 0, 0, 1,",Be=10,Ue=10,pr=Ti[we.branch].index;var Ye=le.y<Yt.y?uh(le.y,Yt.y):uh(Yt.y,le.y);ie=le.y<Yt.y?"M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Ye-Be," ").concat(de," ").concat(le.x+Ue," ").concat(Ye," L ").concat(Yt.x-Be," ").concat(Ye," ").concat(Le," ").concat(Yt.x," ").concat(Ye+Ue," L ").concat(Yt.x," ").concat(Yt.y):"M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Ye+Be," ").concat(Le," ").concat(le.x+Ue," ").concat(Ye," L ").concat(Yt.x-Be," ").concat(Ye," ").concat(de," ").concat(Yt.x," ").concat(Ye-Ue," L ").concat(Yt.x," ").concat(Yt.y)}else le.y<Yt.y&&(de="A 20 20, 0, 0, 0,",Be=20,Ue=20,pr=Ti[we.branch].index,ie="M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Yt.y-Be," ").concat(de," ").concat(le.x+Ue," ").concat(Yt.y," L ").concat(Yt.x," ").concat(Yt.y)),le.y>Yt.y&&(de="A 20 20, 0, 0, 0,",Be=20,Ue=20,pr=Ti[De.branch].index,ie="M ".concat(le.x," ").concat(le.y," L ").concat(Yt.x-Be," ").concat(le.y," ").concat(de," ").concat(Yt.x," ").concat(le.y-Ue," L ").concat(Yt.x," ").concat(Yt.y)),le.y===Yt.y&&(pr=Ti[De.branch].index,ie="M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Yt.y-Be," ").concat(de," ").concat(le.x+Ue," ").concat(Yt.y," L ").concat(Yt.x," ").concat(Yt.y));Qt.append("path").attr("d",ie).attr("class","arrow arrow"+pr%8)})(Ut,It[Ot],Pt,It)})})}(P,Zo),jc(P,Zo,!0);var Y=N.diagramPadding,Z=P.node().getBBox(),nt=Z.width+2*Y,lt=Z.height+2*Y;ea(P,lt,nt,A.useMaxWidth);var ct="".concat(Z.x-Y-(N.showBranches&&N.rotateCommitLabel===!0?30:0)," ").concat(Z.y-Y," ").concat(nt," ").concat(lt);P.attr("viewBox",ct)}};var a0=h(2553),jl=h.n(a0);const $l=function(l){return l.match(/^\s*gitGraph/)?"gitGraph":null},Hl=function(){var l,o,y,k,A,N;l="gitGraph",o=jl(),y=jd,k=i0,A=void 0,N=$l,K1[l]={parser:o,db:y,renderer:k,init:A},function(L,O){Jn[L]={detector:O}}(l,N)};function o0(l,o){for(var y=0;y<o.length;y++){var k=o[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(l,k.key,k)}}function $c(l,o,y){return o in l?Object.defineProperty(l,o,{value:y,enumerable:!0,configurable:!0,writable:!0}):l[o]=y,l}var s0=function(){function l(k){var A,N;(function(P,Y){if(!(P instanceof Y))throw new TypeError("Cannot call a class as a function")})(this,l),$c(this,"type","graph"),$c(this,"parser",void 0),$c(this,"renderer",void 0),$c(this,"db",void 0);var L=zl(),O=Bt();this.txt=k,this.type=Hi(k,O),_.debug("Type "+this.type),this.db=L[this.type].db,(A=(N=this.db).clear)===null||A===void 0||A.call(N),this.renderer=L[this.type].renderer,this.parser=L[this.type].parser,this.parser.parser.yy=this.db,typeof L[this.type].init=="function"&&(L[this.type].init(O),_.debug("Initialized diagram "+this.type,O)),this.txt=this.txt+`
`,this.parser.parser.yy.graphType=this.type,this.parser.parser.yy.parseError=function(P,Y){throw{str:P,hash:Y}},this.parser.parse(this.txt)}var o,y;return o=l,(y=[{key:"parse",value:function(k){var A=!1;try{k+=`
`,this.db.clear(),this.parser.parse(k)}catch(N){if(A=!0,!h.g.mermaid.parseError)throw N;N.str!=null?h.g.mermaid.parseError(N.str,N.hash):h.g.mermaid.parseError(N)}return!A}},{key:"getParser",value:function(){return this.parser}},{key:"getType",value:function(){return this.type}}])&&o0(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();const hh=s0,ql=function(l){return`g.classGroup text {
fill: `.concat(l.nodeBorder,`;
fill: `).concat(l.classText,`;
stroke: none;
font-family: `).concat(l.fontFamily,`;
font-size: 10px;
.title {
font-weight: bolder;
}
}
.nodeLabel, .edgeLabel {
color: `).concat(l.classText,`;
}
.edgeLabel .label rect {
fill: `).concat(l.mainBkg,`;
}
.label text {
fill: `).concat(l.classText,`;
}
.edgeLabel .label span {
background: `).concat(l.mainBkg,`;
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(l.mainBkg,`;
stroke: `).concat(l.nodeBorder,`;
stroke-width: 1px;
}
.divider {
stroke: `).concat(l.nodeBorder,`;
stroke: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: `).concat(l.mainBkg,`;
stroke: `).concat(l.nodeBorder,`;
}
g.classGroup line {
stroke: `).concat(l.nodeBorder,`;
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: `).concat(l.mainBkg,`;
opacity: 0.5;
}
.classLabel .label {
fill: `).concat(l.nodeBorder,`;
font-size: 10px;
}
.relation {
stroke: `).concat(l.lineColor,`;
stroke-width: 1;
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
#compositionStart, .composition {
fill: `).concat(l.lineColor,` !important;
stroke: `).concat(l.lineColor,` !important;
stroke-width: 1;
}
#compositionEnd, .composition {
fill: `).concat(l.lineColor,` !important;
stroke: `).concat(l.lineColor,` !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: `).concat(l.lineColor,` !important;
stroke: `).concat(l.lineColor,` !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: `).concat(l.lineColor,` !important;
stroke: `).concat(l.lineColor,` !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: `).concat(l.lineColor,` !important;
stroke: `).concat(l.lineColor,` !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: `).concat(l.lineColor,` !important;
stroke: `).concat(l.lineColor,` !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: `).concat(l.mainBkg,` !important;
stroke: `).concat(l.lineColor,` !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: `).concat(l.mainBkg,` !important;
stroke: `).concat(l.lineColor,` !important;
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
}
`)},dh=function(l){return`.label {
font-family: `.concat(l.fontFamily,`;
color: `).concat(l.nodeTextColor||l.textColor,`;
}
.cluster-label text {
fill: `).concat(l.titleColor,`;
}
.cluster-label span {
color: `).concat(l.titleColor,`;
}
.label text,span {
fill: `).concat(l.nodeTextColor||l.textColor,`;
color: `).concat(l.nodeTextColor||l.textColor,`;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(l.mainBkg,`;
stroke: `).concat(l.nodeBorder,`;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: `).concat(l.arrowheadColor,`;
}
.edgePath .path {
stroke: `).concat(l.lineColor,`;
stroke-width: 2.0px;
}
.flowchart-link {
stroke: `).concat(l.lineColor,`;
fill: none;
}
.edgeLabel {
background-color: `).concat(l.edgeLabelBackground,`;
rect {
opacity: 0.5;
background-color: `).concat(l.edgeLabelBackground,`;
fill: `).concat(l.edgeLabelBackground,`;
}
text-align: center;
}
.cluster rect {
fill: `).concat(l.clusterBkg,`;
stroke: `).concat(l.clusterBorder,`;
stroke-width: 1px;
}
.cluster text {
fill: `).concat(l.titleColor,`;
}
.cluster span {
color: `).concat(l.titleColor,`;
}
/* .cluster div {
color: `).concat(l.titleColor,`;
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: `).concat(l.fontFamily,`;
font-size: 12px;
background: `).concat(l.tertiaryColor,`;
border: 1px solid `).concat(l.border2,`;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
`)},fh=function(l){return`
defs #statediagram-barbEnd {
fill: `.concat(l.transitionColor,`;
stroke: `).concat(l.transitionColor,`;
}
g.stateGroup text {
fill: `).concat(l.nodeBorder,`;
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: `).concat(l.textColor,`;
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: `).concat(l.stateLabelColor,`;
}
g.stateGroup rect {
fill: `).concat(l.mainBkg,`;
stroke: `).concat(l.nodeBorder,`;
}
g.stateGroup line {
stroke: `).concat(l.lineColor,`;
stroke-width: 1;
}
.transition {
stroke: `).concat(l.transitionColor,`;
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
fill: `).concat(l.background,`;
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: `).concat(l.noteBorderColor,`;
fill: `).concat(l.noteBkgColor,`;
text {
fill: `).concat(l.noteTextColor,`;
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: `).concat(l.mainBkg,`;
opacity: 0.5;
}
.edgeLabel .label rect {
fill: `).concat(l.labelBackgroundColor,`;
opacity: 0.5;
}
.edgeLabel .label text {
fill: `).concat(l.transitionLabelColor||l.tertiaryTextColor,`;
}
.label div .edgeLabel {
color: `).concat(l.transitionLabelColor||l.tertiaryTextColor,`;
}
.stateLabel text {
fill: `).concat(l.stateLabelColor,`;
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: `).concat(l.specialStateColor,`;
stroke: `).concat(l.specialStateColor,`;
}
.node .fork-join {
fill: `).concat(l.specialStateColor,`;
stroke: `).concat(l.specialStateColor,`;
}
.node circle.state-end {
fill: `).concat(l.innerEndBackground,`;
stroke: `).concat(l.background,`;
stroke-width: 1.5
}
.end-state-inner {
fill: `).concat(l.compositeBackground||l.background,`;
// stroke: `).concat(l.background,`;
stroke-width: 1.5
}
.node rect {
fill: `).concat(l.stateBkg||l.mainBkg,`;
stroke: `).concat(l.stateBorder||l.nodeBorder,`;
stroke-width: 1px;
}
.node polygon {
fill: `).concat(l.mainBkg,`;
stroke: `).concat(l.stateBorder||l.nodeBorder,`;;
stroke-width: 1px;
}
#statediagram-barbEnd {
fill: `).concat(l.lineColor,`;
}
.statediagram-cluster rect {
fill: `).concat(l.compositeTitleBackground,`;
stroke: `).concat(l.stateBorder||l.nodeBorder,`;
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
color: `).concat(l.stateLabelColor,`;
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: `).concat(l.stateBorder||l.nodeBorder,`;
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: `).concat(l.compositeBackground||l.background,`;
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: `).concat(l.altBackground?l.altBackground:"#efefef",`;
}
.statediagram-cluster .inner {
rx:0;
ry:0;
}
.statediagram-state rect.basic {
rx: 5px;
ry: 5px;
}
.statediagram-state rect.divider {
stroke-dasharray: 10,10;
fill: `).concat(l.altBackground?l.altBackground:"#efefef",`;
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: `).concat(l.noteBkgColor,`;
stroke: `).concat(l.noteBorderColor,`;
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: `).concat(l.noteBkgColor,`;
stroke: `).concat(l.noteBorderColor,`;
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: `).concat(l.noteTextColor,`;
}
.statediagram-note .nodeLabel {
color: `).concat(l.noteTextColor,`;
}
.statediagram .edgeLabel {
color: red; // `).concat(l.noteTextColor,`;
}
#dependencyStart, #dependencyEnd {
fill: `).concat(l.lineColor,`;
stroke: `).concat(l.lineColor,`;
stroke-width: 1;
}
`)};var Kr={flowchart:dh,"flowchart-v2":dh,sequence:function(l){return`.actor {
stroke: `.concat(l.actorBorder,`;
fill: `).concat(l.actorBkg,`;
}
text.actor > tspan {
fill: `).concat(l.actorTextColor,`;
stroke: none;
}
.actor-line {
stroke: `).concat(l.actorLineColor,`;
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: `).concat(l.signalColor,`;
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: `).concat(l.signalColor,`;
}
#arrowhead path {
fill: `).concat(l.signalColor,`;
stroke: `).concat(l.signalColor,`;
}
.sequenceNumber {
fill: `).concat(l.sequenceNumberColor,`;
}
#sequencenumber {
fill: `).concat(l.signalColor,`;
}
#crosshead path {
fill: `).concat(l.signalColor,`;
stroke: `).concat(l.signalColor,`;
}
.messageText {
fill: `).concat(l.signalTextColor,`;
stroke: `).concat(l.signalTextColor,`;
}
.labelBox {
stroke: `).concat(l.labelBoxBorderColor,`;
fill: `).concat(l.labelBoxBkgColor,`;
}
.labelText, .labelText > tspan {
fill: `).concat(l.labelTextColor,`;
stroke: none;
}
.loopText, .loopText > tspan {
fill: `).concat(l.loopTextColor,`;
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: `).concat(l.labelBoxBorderColor,`;
fill: `).concat(l.labelBoxBorderColor,`;
}
.note {
//stroke: #decc93;
stroke: `).concat(l.noteBorderColor,`;
fill: `).concat(l.noteBkgColor,`;
}
.noteText, .noteText > tspan {
fill: `).concat(l.noteTextColor,`;
stroke: none;
}
.activation0 {
fill: `).concat(l.activationBkgColor,`;
stroke: `).concat(l.activationBorderColor,`;
}
.activation1 {
fill: `).concat(l.activationBkgColor,`;
stroke: `).concat(l.activationBorderColor,`;
}
.activation2 {
fill: `).concat(l.activationBkgColor,`;
stroke: `).concat(l.activationBorderColor,`;
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: `).concat(l.actorBkg,`;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}
.actor-man line {
stroke: `).concat(l.actorBorder,`;
fill: `).concat(l.actorBkg,`;
}
.actor-man circle, line {
stroke: `).concat(l.actorBorder,`;
fill: `).concat(l.actorBkg,`;
stroke-width: 2px;
}
`)},gantt:function(l){return`
.mermaid-main-font {
font-family: "trebuchet ms", verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.exclude-range {
fill: `.concat(l.excludeBkgColor,`;
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: `).concat(l.sectionBkgColor,`;
}
.section2 {
fill: `).concat(l.sectionBkgColor2,`;
}
.section1,
.section3 {
fill: `).concat(l.altSectionBkgColor,`;
opacity: 0.2;
}
.sectionTitle0 {
fill: `).concat(l.titleColor,`;
}
.sectionTitle1 {
fill: `).concat(l.titleColor,`;
}
.sectionTitle2 {
fill: `).concat(l.titleColor,`;
}
.sectionTitle3 {
fill: `).concat(l.titleColor,`;
}
.sectionTitle {
text-anchor: start;
// font-size: `).concat(l.ganttFontSize,`;
// text-height: 14px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
/* Grid and axis */
.grid .tick {
stroke: `).concat(l.gridColor,`;
opacity: 0.8;
shape-rendering: crispEdges;
text {
font-family: `).concat(l.fontFamily,`;
fill: `).concat(l.textColor,`;
}
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: `).concat(l.todayLineColor,`;
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
// .taskText:not([font-size]) {
// font-size: `).concat(l.ganttFontSize,`;
// }
.taskTextOutsideRight {
fill: `).concat(l.taskTextDarkColor,`;
text-anchor: start;
// font-size: `).concat(l.ganttFontSize,`;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.taskTextOutsideLeft {
fill: `).concat(l.taskTextDarkColor,`;
text-anchor: end;
// font-size: `).concat(l.ganttFontSize,`;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: `).concat(l.taskTextClickableColor,` !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: `).concat(l.taskTextClickableColor,` !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: `).concat(l.taskTextClickableColor,` !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: `).concat(l.taskTextColor,`;
}
.task0,
.task1,
.task2,
.task3 {
fill: `).concat(l.taskBkgColor,`;
stroke: `).concat(l.taskBorderColor,`;
}
.taskTextOutside0,
.taskTextOutside2
{
fill: `).concat(l.taskTextOutsideColor,`;
}
.taskTextOutside1,
.taskTextOutside3 {
fill: `).concat(l.taskTextOutsideColor,`;
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: `).concat(l.activeTaskBkgColor,`;
stroke: `).concat(l.activeTaskBorderColor,`;
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: `).concat(l.taskTextDarkColor,` !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: `).concat(l.doneTaskBorderColor,`;
fill: `).concat(l.doneTaskBkgColor,`;
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: `).concat(l.taskTextDarkColor,` !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: `).concat(l.critBorderColor,`;
fill: `).concat(l.critBkgColor,`;
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: `).concat(l.critBorderColor,`;
fill: `).concat(l.activeTaskBkgColor,`;
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: `).concat(l.critBorderColor,`;
fill: `).concat(l.doneTaskBkgColor,`;
stroke-width: 2;
cursor: pointer;
shape-rendering: crispEdges;
}
.milestone {
transform: rotate(45deg) scale(0.8,0.8);
}
.milestoneText {
font-style: italic;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: `).concat(l.taskTextDarkColor,` !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: `).concat(l.taskTextDarkColor,` !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: `).concat(l.textColor,` ;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`)},classDiagram:ql,"classDiagram-v2":ql,class:ql,stateDiagram:fh,state:fh,gitGraph:function(l){return`
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`.concat([0,1,2,3,4,5,6,7].map(function(o){return`
.branch-label`.concat(o," { fill: ").concat(l["gitBranchLabel"+o],`; }
.commit`).concat(o," { stroke: ").concat(l["git"+o],"; fill: ").concat(l["git"+o],`; }
.commit-highlight`).concat(o," { stroke: ").concat(l["gitInv"+o],"; fill: ").concat(l["gitInv"+o],`; }
.label`).concat(o," { fill: ").concat(l["git"+o],`; }
.arrow`).concat(o," { stroke: ").concat(l["git"+o],`; }
`)}).join(`
`),`
.branch {
stroke-width: 1;
stroke: `).concat(l.lineColor,`;
stroke-dasharray: 2;
}
.commit-label { font-size: `).concat(l.commitLabelFontSize,"; fill: ").concat(l.commitLabelColor,`;}
.commit-label-bkg { font-size: `).concat(l.commitLabelFontSize,"; fill: ").concat(l.commitLabelBackground,`; opacity: 0.5; }
.tag-label { font-size: `).concat(l.tagLabelFontSize,"; fill: ").concat(l.tagLabelColor,`;}
.tag-label-bkg { fill: `).concat(l.tagLabelBackground,"; stroke: ").concat(l.tagLabelBorder,`; }
.tag-hole { fill: `).concat(l.textColor,`; }
.commit-merge {
stroke: `).concat(l.primaryColor,`;
fill: `).concat(l.primaryColor,`;
}
.commit-reverse {
stroke: `).concat(l.primaryColor,`;
fill: `).concat(l.primaryColor,`;
stroke-width: 3;
}
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: `).concat(l.primaryColor,`;
fill: `).concat(l.primaryColor,`;
}
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
}
`)},info:function(){return""},pie:function(l){return`
.pieCircle{
stroke: `.concat(l.pieStrokeColor,`;
stroke-width : `).concat(l.pieStrokeWidth,`;
opacity : `).concat(l.pieOpacity,`;
}
.pieTitleText {
text-anchor: middle;
font-size: `).concat(l.pieTitleTextSize,`;
fill: `).concat(l.pieTitleTextColor,`;
font-family: `).concat(l.fontFamily,`;
}
.slice {
font-family: `).concat(l.fontFamily,`;
fill: `).concat(l.pieSectionTextColor,`;
font-size:`).concat(l.pieSectionTextSize,`;
// fill: white;
}
.legend text {
fill: `).concat(l.pieLegendTextColor,`;
font-family: `).concat(l.fontFamily,`;
font-size: `).concat(l.pieLegendTextSize,`;
}
`)},er:function(l){return`
.entityBox {
fill: `.concat(l.mainBkg,`;
stroke: `).concat(l.nodeBorder,`;
}
.attributeBoxOdd {
fill: #ffffff;
stroke: `).concat(l.nodeBorder,`;
}
.attributeBoxEven {
fill: #f2f2f2;
stroke: `).concat(l.nodeBorder,`;
}
.relationshipLabelBox {
fill: `).concat(l.tertiaryColor,`;
opacity: 0.7;
background-color: `).concat(l.tertiaryColor,`;
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: `).concat(l.lineColor,`;
}
`)},journey:function(l){return`.label {
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
color: `.concat(l.textColor,`;
}
.mouth {
stroke: #666;
}
line {
stroke: `).concat(l.textColor,`
}
.legend {
fill: `).concat(l.textColor,`;
}
.label text {
fill: #333;
}
.label {
color: `).concat(l.textColor,`
}
.face {
`).concat(l.faceColor?"fill: ".concat(l.faceColor):"fill: #FFF8DC",`;
stroke: #999;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(l.mainBkg,`;
stroke: `).concat(l.nodeBorder,`;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: `).concat(l.arrowheadColor,`;
}
.edgePath .path {
stroke: `).concat(l.lineColor,`;
stroke-width: 1.5px;
}
.flowchart-link {
stroke: `).concat(l.lineColor,`;
fill: none;
}
.edgeLabel {
background-color: `).concat(l.edgeLabelBackground,`;
rect {
opacity: 0.5;
}
text-align: center;
}
.cluster rect {
}
.cluster text {
fill: `).concat(l.titleColor,`;
}
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
font-size: 12px;
background: `).concat(l.tertiaryColor,`;
border: 1px solid `).concat(l.border2,`;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.task-type-0, .section-type-0 {
`).concat(l.fillType0?"fill: ".concat(l.fillType0):"",`;
}
.task-type-1, .section-type-1 {
`).concat(l.fillType0?"fill: ".concat(l.fillType1):"",`;
}
.task-type-2, .section-type-2 {
`).concat(l.fillType0?"fill: ".concat(l.fillType2):"",`;
}
.task-type-3, .section-type-3 {
`).concat(l.fillType0?"fill: ".concat(l.fillType3):"",`;
}
.task-type-4, .section-type-4 {
`).concat(l.fillType0?"fill: ".concat(l.fillType4):"",`;
}
.task-type-5, .section-type-5 {
`).concat(l.fillType0?"fill: ".concat(l.fillType5):"",`;
}
.task-type-6, .section-type-6 {
`).concat(l.fillType0?"fill: ".concat(l.fillType6):"",`;
}
.task-type-7, .section-type-7 {
`).concat(l.fillType0?"fill: ".concat(l.fillType7):"",`;
}
.actor-0 {
`).concat(l.actor0?"fill: ".concat(l.actor0):"",`;
}
.actor-1 {
`).concat(l.actor1?"fill: ".concat(l.actor1):"",`;
}
.actor-2 {
`).concat(l.actor2?"fill: ".concat(l.actor2):"",`;
}
.actor-3 {
`).concat(l.actor3?"fill: ".concat(l.actor3):"",`;
}
.actor-4 {
`).concat(l.actor4?"fill: ".concat(l.actor4):"",`;
}
.actor-5 {
`).concat(l.actor5?"fill: ".concat(l.actor5):"",`;
}
}
`)},requirement:function(l){return`
marker {
fill: `.concat(l.relationColor,`;
stroke: `).concat(l.relationColor,`;
}
marker.cross {
stroke: `).concat(l.lineColor,`;
}
svg {
font-family: `).concat(l.fontFamily,`;
font-size: `).concat(l.fontSize,`;
}
.reqBox {
fill: `).concat(l.requirementBackground,`;
fill-opacity: 100%;
stroke: `).concat(l.requirementBorderColor,`;
stroke-width: `).concat(l.requirementBorderSize,`;
}
.reqTitle, .reqLabel{
fill: `).concat(l.requirementTextColor,`;
}
.reqLabelBox {
fill: `).concat(l.relationLabelBackground,`;
fill-opacity: 100%;
}
.req-title-line {
stroke: `).concat(l.requirementBorderColor,`;
stroke-width: `).concat(l.requirementBorderSize,`;
}
.relationshipLine {
stroke: `).concat(l.relationColor,`;
stroke-width: 1;
}
.relationshipLabel {
fill: `).concat(l.relationLabelColor,`;
}
`)},c4:function(l){return`.person {
stroke: `.concat(l.personBorder,`;
fill: `).concat(l.personBkg,`;
}
`)}};function ec(l){return ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ec(l)}var rn=!1,Qn=function(l){var o=l;return(o=(o=o.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},Xo={};function Xi(l){var o;vl.setConf(l.flowchart),ku.setConf(l.flowchart),l.sequenceDiagram!==void 0&&Rc.setConf(Ee(l.sequence,l.sequenceDiagram)),Rc.setConf(l.sequence),Tl.setConf(l.gantt),Fc.setConf(l.state),nh.setConf(l.state),Pl.setConf(l.journey),o=l.class,Object.keys(o).forEach(function(y){o[y]})}var zn=Object.freeze({render:function(l,o,y,k){Zr();var A=o.replace(/\r\n?/g,`
`),N=en.detectInit(A);N&&(Io(N),On(N));var L=Bt();_.debug(L),o.length>L.maxTextSize&&(A="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var O=(0,E.select)("body");if(k!==void 0){if(L.securityLevel==="sandbox"){var P=(0,E.select)("body").append("iframe").attr("id","i"+l).attr("style","width: 100%; height: 100%;").attr("sandbox","");(O=(0,E.select)(P.nodes()[0].contentDocument.body)).node().style.margin=0}if(k.innerHTML="",L.securityLevel==="sandbox"){var Y=(0,E.select)(k).append("iframe").attr("id","i"+l).attr("style","width: 100%; height: 100%;").attr("sandbox","");(O=(0,E.select)(Y.nodes()[0].contentDocument.body)).node().style.margin=0}else O=(0,E.select)(k);O.append("div").attr("id","d"+l).attr("style","font-family: "+L.fontFamily).append("svg").attr("id",l).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").append("g")}else{var Z,nt=document.getElementById(l);if(nt&&nt.remove(),(Z=L.securityLevel!=="sandbox"?document.querySelector("#d"+l):document.querySelector("#i"+l))&&Z.remove(),L.securityLevel==="sandbox"){var lt=(0,E.select)("body").append("iframe").attr("id","i"+l).attr("style","width: 100%; height: 100%;").attr("sandbox","");(O=(0,E.select)(lt.nodes()[0].contentDocument.body)).node().style.margin=0}else O=(0,E.select)("body");O.append("div").attr("id","d"+l).append("svg").attr("id",l).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}A=A.replace(/style.*:\S*#.*;/g,function(ie){return ie.substring(0,ie.length-1)}).replace(/classDef.*:\S*#.*;/g,function(ie){return ie.substring(0,ie.length-1)}).replace(/#\w+;/g,function(ie){var de=ie.substring(1,ie.length-1);return/^\+?\d+$/.test(de)?"\uFB02\xB0\xB0"+de+"\xB6\xDF":"\uFB02\xB0"+de+"\xB6\xDF"});var ct=new hh(A),Mt=O.select("#d"+l).node(),It=ct.type,Ut=Mt.firstChild,Ht=Ut.firstChild,Nt="";if(L.themeCSS!==void 0&&(Nt+=`
`.concat(L.themeCSS)),L.fontFamily!==void 0&&(Nt+=`
:root { --mermaid-font-family: `.concat(L.fontFamily,"}")),L.altFontFamily!==void 0&&(Nt+=`
:root { --mermaid-alt-font-family: `.concat(L.altFontFamily,"}")),It==="flowchart"||It==="flowchart-v2"||It==="graph"){var Pt=vl.getClasses(A,ct),Ot=L.htmlLabels||L.flowchart.htmlLabels;for(var Qt in Pt)Ot?(Nt+=`
.`.concat(Qt," > * { ").concat(Pt[Qt].styles.join(" !important; ")," !important; }"),Nt+=`
.`.concat(Qt," span { ").concat(Pt[Qt].styles.join(" !important; ")," !important; }")):(Nt+=`
.`.concat(Qt," path { ").concat(Pt[Qt].styles.join(" !important; ")," !important; }"),Nt+=`
.`.concat(Qt," rect { ").concat(Pt[Qt].styles.join(" !important; ")," !important; }"),Nt+=`
.`.concat(Qt," polygon { ").concat(Pt[Qt].styles.join(" !important; ")," !important; }"),Nt+=`
.`.concat(Qt," ellipse { ").concat(Pt[Qt].styles.join(" !important; ")," !important; }"),Nt+=`
.`.concat(Qt," circle { ").concat(Pt[Qt].styles.join(" !important; ")," !important; }"),Pt[Qt].textStyles&&(Nt+=`
.`.concat(Qt," tspan { ").concat(Pt[Qt].textStyles.join(" !important; ")," !important; }")))}var De=function(ie,de){return Tt(Sr("".concat(ie,"{").concat(de,"}")),mt)}("#".concat(l),function(ie,de,Le){return` {
font-family: `.concat(Le.fontFamily,`;
font-size: `).concat(Le.fontSize,`;
fill: `).concat(Le.textColor,`
}
/* Classes common for multiple diagrams */
.error-icon {
fill: `).concat(Le.errorBkgColor,`;
}
.error-text {
fill: `).concat(Le.errorTextColor,`;
stroke: `).concat(Le.errorTextColor,`;
}
.edge-thickness-normal {
stroke-width: 2px;
}
.edge-thickness-thick {
stroke-width: 3.5px
}
.edge-pattern-solid {
stroke-dasharray: 0;
}
.edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
.marker {
fill: `).concat(Le.lineColor,`;
stroke: `).concat(Le.lineColor,`;
}
.marker.cross {
stroke: `).concat(Le.lineColor,`;
}
svg {
font-family: `).concat(Le.fontFamily,`;
font-size: `).concat(Le.fontSize,`;
}
`).concat(Kr[ie](Le),`
`).concat(de,`
`)}(It,Nt,L.themeVariables)),we=document.createElement("style");we.innerHTML="#".concat(l," ")+De,Ut.insertBefore(we,Ht);try{ct.renderer.draw(A,l,re,ct)}catch(ie){throw function(de,Le){try{_.debug(`Renering svg for syntax error
`);var Be=(0,E.select)("#"+de),Ue=Be.append("g");Ue.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),Ue.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),Ue.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),Ue.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),Ue.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),Ue.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),Ue.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),Ue.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+Le),Be.attr("height",100),Be.attr("width",400),Be.attr("viewBox","768 0 512 512")}catch(pr){_.error("Error while rendering info diagram"),_.error(pr.message)}}(l,re),ie}O.select('[id="'.concat(l,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var ue=O.select("#d"+l).node().innerHTML;if(_.debug("cnf.arrowMarkerAbsolute",L.arrowMarkerAbsolute),L.arrowMarkerAbsolute&&L.arrowMarkerAbsolute!=="false"||L.arrowMarkerAbsolute==="sandbox"||(ue=ue.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),ue=(ue=Qn(ue)).replace(/<br>/g,"<br/>"),L.securityLevel==="sandbox"){var Kt=O.select("#d"+l+" svg").node(),le="100%";Kt&&(le=Kt.viewBox.baseVal.height+"px"),ue='<iframe style="width:'.concat("100%",";height:").concat(le,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+ue+"</body>"),`" sandbox="allow-top-navigation-by-user-activation allow-popups">
The \u201Ciframe\u201D tag is not supported by your browser.
</iframe>`)}else L.securityLevel!=="loose"&&(ue=Hn().sanitize(ue,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(y!==void 0)switch(It){case"flowchart":case"flowchart-v2":y(ue,no.bindFunctions);break;case"gantt":y(ue,E1.bindFunctions);break;case"class":case"classDiagram":y(ue,Mo.bindFunctions);break;default:y(ue)}else _.debug("CB = undefined!");Zs.forEach(function(ie){ie()}),Zs=[];var Yt=L.securityLevel==="sandbox"?"#i"+l:"#d"+l,se=(0,E.select)(Yt).node();return se!==null&&typeof se.remove=="function"&&(0,E.select)(Yt).node().remove(),ue},parse:function(l,o){rn||(Hl(),rn=!0);var y=!1;try{var k=o||new hh(l);return k.db.clear(),k.parse(l)}catch(A){if(y=!0,!Mr.parseError)throw A;A.str!=null?Mr.parseError(A.str,A.hash):Mr.parseError(A)}return!y},parseDirective:function(l,o,y,k){try{if(o!==void 0)switch(o=o.trim(),y){case"open_directive":Xo={};break;case"type_directive":Xo.type=o.toLowerCase();break;case"arg_directive":Xo.args=JSON.parse(o);break;case"close_directive":(function(A,N,L){switch(_.debug("Directive type=".concat(N.type," with args:"),N.args),N.type){case"init":case"initialize":["config"].forEach(function(O){N.args[O]!==void 0&&(L==="flowchart-v2"&&(L="flowchart"),N.args[L]=N.args[O],delete N.args[O])}),_.debug("sanitize in handleDirective",N.args),Io(N.args),_.debug("sanitize in handleDirective (done)",N.args),On(N.args);break;case"wrap":case"nowrap":A&&A.setWrap&&A.setWrap(N.type==="wrap");break;case"themeCss":_.warn("themeCss encountered");break;default:_.warn("Unhandled directive: source: '%%{".concat(N.type,": ").concat(JSON.stringify(N.args?N.args:{}),"}%%"),N)}})(l,Xo,k),Xo=null}}catch(A){_.error("Error while rendering sequenceDiagram directive: ".concat(o," jison context: ").concat(y)),_.error(A.message)}},initialize:function(l){var o;l!=null&&l.fontFamily&&((o=l.themeVariables)!==null&&o!==void 0&&o.fontFamily||(l.themeVariables={fontFamily:l.fontFamily})),function(k){Lr=Ee({},k)}(l),l!=null&&l.theme&&zr[l.theme]?l.themeVariables=zr[l.theme].getThemeVariables(l.themeVariables):l&&(l.themeVariables=zr.default.getThemeVariables(l.themeVariables));var y=ec(l)==="object"?function(k){return Fr=Ee({},ui),Fr=Ee(Fr,k),k.theme&&zr[k.theme]&&(Fr.themeVariables=zr[k.theme].getThemeVariables(k.themeVariables)),Nn=bn(Fr,xn),Fr}(l):Xn();Xi(y),S(y.logLevel),rn||(Hl(),rn=!0)},getConfig:Bt,setConfig:function(l){return Ee(Nn,l),Bt()},getSiteConfig:Xn,updateSiteConfig:function(l){return Fr=Ee(Fr,l),bn(Fr,xn),Fr},reset:function(){Zr()},globalReset:function(){Zr(),Xi(Bt())},defaultConfig:ui});S(Bt().logLevel),Zr(Bt());const xr=zn;var gn=function(){var l,o,y=xr.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(Ln.sequenceConfig=arguments[0]),l=arguments[1]):l=arguments[0],typeof arguments[arguments.length-1]=="function"?(o=arguments[arguments.length-1],_.debug("Callback function found")):y.mermaid!==void 0&&(typeof y.mermaid.callback=="function"?(o=y.mermaid.callback,_.debug("Callback function found")):_.debug("No Callback function found")),l=l===void 0?document.querySelectorAll(".mermaid"):typeof l=="string"?document.querySelectorAll(l):l instanceof window.Node?[l]:l,_.debug("Start On Load before: "+Ln.startOnLoad),Ln.startOnLoad!==void 0&&(_.debug("Start On Load inner: "+Ln.startOnLoad),xr.updateSiteConfig({startOnLoad:Ln.startOnLoad})),Ln.ganttConfig!==void 0&&xr.updateSiteConfig({gantt:Ln.ganttConfig});for(var k,A=new en.initIdGenerator(y.deterministicIds,y.deterministicIDSeed),N=function(O){var P=l[O];if(P.getAttribute("data-processed"))return"continue";P.setAttribute("data-processed",!0);var Y="mermaid-".concat(A.next());k=P.innerHTML,k=en.entityDecode(k).trim().replace(/<br\s*\/?>/gi,"<br/>");var Z=en.detectInit(k);Z&&_.debug("Detected early reinit: ",Z);try{xr.render(Y,k,function(nt,lt){P.innerHTML=nt,o!==void 0&&o(Y),lt&&lt(P)},P)}catch(nt){throw _.warn("Catching Error (bootstrap)"),{error:nt,message:nt.str}}},L=0;L<l.length;L++)N(L)},Ts=function(){Ln.startOnLoad?xr.getConfig().startOnLoad&&Ln.init():Ln.startOnLoad===void 0&&(_.debug("In start, no config"),xr.getConfig().startOnLoad&&Ln.init())};typeof document<"u"&&window.addEventListener("load",function(){Ts()},!1);var Ln={startOnLoad:!0,htmlLabels:!0,diagrams:{},mermaidAPI:xr,parse:xr!=null?xr.parse:null,render:xr!=null?xr.render:null,init:function(){try{gn.apply(void 0,arguments)}catch(l){_.warn("Syntax Error rendering"),_.warn(l.str),this.parseError&&this.parseError(l)}},initThrowsErrors:gn,initialize:function(l){l.mermaid!==void 0&&(l.mermaid.startOnLoad!==void 0&&(Ln.startOnLoad=l.mermaid.startOnLoad),l.mermaid.htmlLabels!==void 0&&(Ln.htmlLabels=l.mermaid.htmlLabels!=="false"&&l.mermaid.htmlLabels!==!1)),xr.initialize(l)},contentLoaded:Ts,setParseErrorHandler:function(l){Ln.parseError=l}};const Mr=Ln},4949:(d,b,h)=>{d.exports={graphlib:h(6614),dagre:h(6478),intersect:h(8114),render:h(5787),util:h(8355),version:h(5689)}},9144:(d,b,h)=>{var m=h(8355);function f(v,_,S,M){var E=v.append("marker").attr("id",_).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").style("stroke-width",1).style("stroke-dasharray","1,0");m.applyStyle(E,S[M+"Style"]),S[M+"Class"]&&E.attr("class",S[M+"Class"])}d.exports={default:f,normal:f,vee:function(v,_,S,M){var E=v.append("marker").attr("id",_).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 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");m.applyStyle(E,S[M+"Style"]),S[M+"Class"]&&E.attr("class",S[M+"Class"])},undirected:function(v,_,S,M){var E=v.append("marker").attr("id",_).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 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");m.applyStyle(E,S[M+"Style"]),S[M+"Class"]&&E.attr("class",S[M+"Class"])}}},5632:(d,b,h)=>{var m=h(8355),f=h(4322),v=h(1322);d.exports=function(_,S){var M,E=S.nodes().filter(function(B){return m.isSubgraph(S,B)}),D=_.selectAll("g.cluster").data(E,function(B){return B});return D.selectAll("*").remove(),D.enter().append("g").attr("class","cluster").attr("id",function(B){return S.node(B).id}).style("opacity",0),D=_.selectAll("g.cluster"),m.applyTransition(D,S).style("opacity",1),D.each(function(B){var z=S.node(B),H=f.select(this);f.select(this).append("rect");var J=H.append("g").attr("class","label");v(J,z,z.clusterLabelPos)}),D.selectAll("rect").each(function(B){var z=S.node(B),H=f.select(this);m.applyStyle(H,z.style)}),M=D.exit?D.exit():D.selectAll(null),m.applyTransition(M,S).style("opacity",0).remove(),D}},6315:(d,b,h)=>{var m=h(1034),f=h(1322),v=h(8355),_=h(4322);d.exports=function(S,M){var E,D=S.selectAll("g.edgeLabel").data(M.edges(),function(B){return v.edgeToId(B)}).classed("update",!0);return D.exit().remove(),D.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(D=S.selectAll("g.edgeLabel")).each(function(B){var z=_.select(this);z.select(".label").remove();var H=M.edge(B),J=f(z,M.edge(B),0,0).classed("label",!0),rt=J.node().getBBox();H.labelId&&J.attr("id",H.labelId),m.has(H,"width")||(H.width=rt.width),m.has(H,"height")||(H.height=rt.height)}),E=D.exit?D.exit():D.selectAll(null),v.applyTransition(E,M).style("opacity",0).remove(),D}},940:(d,b,h)=>{var m=h(1034),f=h(3042),v=h(8355),_=h(4322);function S(M,E){var D=(_.line||_.svg.line)().x(function(B){return B.x}).y(function(B){return B.y});return(D.curve||D.interpolate)(M.curve),D(E)}d.exports=function(M,E,D){var B=M.selectAll("g.edgePath").data(E.edges(),function(J){return v.edgeToId(J)}).classed("update",!0),z=function(J,rt){var dt=J.enter().append("g").attr("class","edgePath").style("opacity",0);return dt.append("path").attr("class","path").attr("d",function(K){var _t=rt.edge(K),at=rt.node(K.v).elem;return S(_t,m.range(_t.points.length).map(function(){return bt=(ot=at).getBBox(),{x:(zt=ot.ownerSVGElement.getScreenCTM().inverse().multiply(ot.getScreenCTM()).translate(bt.width/2,bt.height/2)).e,y:zt.f};var ot,bt,zt}))}),dt.append("defs"),dt}(B,E);(function(J,rt){var dt=J.exit();v.applyTransition(dt,rt).style("opacity",0).remove()})(B,E);var H=B.merge!==void 0?B.merge(z):B;return v.applyTransition(H,E).style("opacity",1),H.each(function(J){var rt=_.select(this),dt=E.edge(J);dt.elem=this,dt.id&&rt.attr("id",dt.id),v.applyClass(rt,dt.class,(rt.classed("update")?"update ":"")+"edgePath")}),H.selectAll("path.path").each(function(J){var rt=E.edge(J);rt.arrowheadId=m.uniqueId("arrowhead");var dt=_.select(this).attr("marker-end",function(){return"url("+(K=location.href,_t=rt.arrowheadId,K.split("#")[0]+"#"+_t+")");var K,_t}).style("fill","none");v.applyTransition(dt,E).attr("d",function(K){return function(_t,at){var ot=_t.edge(at),bt=_t.node(at.v),zt=_t.node(at.w),Tt=ot.points.slice(1,ot.points.length-1);return Tt.unshift(f(bt,Tt[0])),Tt.push(f(zt,Tt[Tt.length-1])),S(ot,Tt)}(E,K)}),v.applyStyle(dt,rt.style)}),H.selectAll("defs *").remove(),H.selectAll("defs").each(function(J){var rt=E.edge(J);(0,D[rt.arrowhead])(_.select(this),rt.arrowheadId,rt,"arrowhead")}),H}},607:(d,b,h)=>{var m=h(1034),f=h(1322),v=h(8355),_=h(4322);d.exports=function(S,M,E){var D,B=M.nodes().filter(function(H){return!v.isSubgraph(M,H)}),z=S.selectAll("g.node").data(B,function(H){return H}).classed("update",!0);return z.exit().remove(),z.enter().append("g").attr("class","node").style("opacity",0),(z=S.selectAll("g.node")).each(function(H){var J=M.node(H),rt=_.select(this);v.applyClass(rt,J.class,(rt.classed("update")?"update ":"")+"node"),rt.select("g.label").remove();var dt=rt.append("g").attr("class","label"),K=f(dt,J),_t=E[J.shape],at=m.pick(K.node().getBBox(),"width","height");J.elem=this,J.id&&rt.attr("id",J.id),J.labelId&&dt.attr("id",J.labelId),m.has(J,"width")&&(at.width=J.width),m.has(J,"height")&&(at.height=J.height),at.width+=J.paddingLeft+J.paddingRight,at.height+=J.paddingTop+J.paddingBottom,dt.attr("transform","translate("+(J.paddingLeft-J.paddingRight)/2+","+(J.paddingTop-J.paddingBottom)/2+")");var ot=_.select(this);ot.select(".label-container").remove();var bt=_t(ot,at,J).classed("label-container",!0);v.applyStyle(bt,J.style);var zt=bt.node().getBBox();J.width=zt.width,J.height=zt.height}),D=z.exit?z.exit():z.selectAll(null),v.applyTransition(D,M).style("opacity",0).remove(),z}},4322:(d,b,h)=>{var m;if(!m)try{m=h(7543)}catch{}m||(m=window.d3),d.exports=m},6478:(d,b,h)=>{var m;try{m=h(681)}catch{}m||(m=window.dagre),d.exports=m},6614:(d,b,h)=>{var m;try{m=h(8282)}catch{}m||(m=window.graphlib),d.exports=m},8114:(d,b,h)=>{d.exports={node:h(3042),circle:h(6587),ellipse:h(3260),polygon:h(5337),rect:h(8049)}},6587:(d,b,h)=>{var m=h(3260);d.exports=function(f,v,_){return m(f,v,v,_)}},3260:d=>{d.exports=function(b,h,m,f){var v=b.x,_=b.y,S=v-f.x,M=_-f.y,E=Math.sqrt(h*h*M*M+m*m*S*S),D=Math.abs(h*m*S/E);f.x<v&&(D=-D);var B=Math.abs(h*m*M/E);return f.y<_&&(B=-B),{x:v+D,y:_+B}}},6808:d=>{function b(h,m){return h*m>0}d.exports=function(h,m,f,v){var _,S,M,E,D,B,z,H,J,rt,dt,K,_t;if(_=m.y-h.y,M=h.x-m.x,D=m.x*h.y-h.x*m.y,J=_*f.x+M*f.y+D,rt=_*v.x+M*v.y+D,!(J!==0&&rt!==0&&b(J,rt)||(S=v.y-f.y,E=f.x-v.x,B=v.x*f.y-f.x*v.y,z=S*h.x+E*h.y+B,H=S*m.x+E*m.y+B,z!==0&&H!==0&&b(z,H)||(dt=_*E-S*M)==0)))return K=Math.abs(dt/2),{x:(_t=M*B-E*D)<0?(_t-K)/dt:(_t+K)/dt,y:(_t=S*D-_*B)<0?(_t-K)/dt:(_t+K)/dt}}},3042:d=>{d.exports=function(b,h){return b.intersect(h)}},5337:(d,b,h)=>{var m=h(6808);d.exports=function(f,v,_){var S=f.x,M=f.y,E=[],D=Number.POSITIVE_INFINITY,B=Number.POSITIVE_INFINITY;v.forEach(function(_t){D=Math.min(D,_t.x),B=Math.min(B,_t.y)});for(var z=S-f.width/2-D,H=M-f.height/2-B,J=0;J<v.length;J++){var rt=v[J],dt=v[J<v.length-1?J+1:0],K=m(f,_,{x:z+rt.x,y:H+rt.y},{x:z+dt.x,y:H+dt.y});K&&E.push(K)}return E.length?(E.length>1&&E.sort(function(_t,at){var ot=_t.x-_.x,bt=_t.y-_.y,zt=Math.sqrt(ot*ot+bt*bt),Tt=at.x-_.x,mt=at.y-_.y,Ct=Math.sqrt(Tt*Tt+mt*mt);return zt<Ct?-1:zt===Ct?0:1}),E[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",f),f)}},8049:d=>{d.exports=function(b,h){var m,f,v=b.x,_=b.y,S=h.x-v,M=h.y-_,E=b.width/2,D=b.height/2;return Math.abs(M)*E>Math.abs(S)*D?(M<0&&(D=-D),m=M===0?0:D*S/M,f=D):(S<0&&(E=-E),m=E,f=S===0?0:E*M/S),{x:v+m,y:_+f}}},8284:(d,b,h)=>{var m=h(8355);d.exports=function(f,v){var _=f.append("foreignObject").attr("width","100000"),S=_.append("xhtml:div");S.attr("xmlns","http://www.w3.org/1999/xhtml");var M=v.label;switch(typeof M){case"function":S.insert(M);break;case"object":S.insert(function(){return M});break;default:S.html(M)}m.applyStyle(S,v.labelStyle),S.style("display","inline-block"),S.style("white-space","nowrap");var E=S.node().getBoundingClientRect();return _.attr("width",E.width).attr("height",E.height),_}},1322:(d,b,h)=>{var m=h(7318),f=h(8284),v=h(8287);d.exports=function(_,S,M){var E=S.label,D=_.append("g");S.labelType==="svg"?v(D,S):typeof E!="string"||S.labelType==="html"?f(D,S):m(D,S);var B,z=D.node().getBBox();switch(M){case"top":B=-S.height/2;break;case"bottom":B=S.height/2-z.height;break;default:B=-z.height/2}return D.attr("transform","translate("+-z.width/2+","+B+")"),D}},8287:(d,b,h)=>{var m=h(8355);d.exports=function(f,v){var _=f;return _.node().appendChild(v.label),m.applyStyle(_,v.labelStyle),_}},7318:(d,b,h)=>{var m=h(8355);d.exports=function(f,v){for(var _=f.append("text"),S=function(E){for(var D,B="",z=!1,H=0;H<E.length;++H)D=E[H],z?(B+=D==="n"?`
`:D,z=!1):D==="\\"?z=!0:B+=D;return B}(v.label).split(`
`),M=0;M<S.length;M++)_.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(S[M]);return m.applyStyle(_,v.labelStyle),_}},1034:(d,b,h)=>{var m;try{m={defaults:h(1747),each:h(6073),isFunction:h(3560),isPlainObject:h(8630),pick:h(9722),has:h(8721),range:h(6026),uniqueId:h(3955)}}catch{}m||(m=window._),d.exports=m},6381:(d,b,h)=>{var m=h(8355),f=h(4322);d.exports=function(v,_){var S=v.filter(function(){return!f.select(this).classed("update")});function M(E){var D=_.node(E);return"translate("+D.x+","+D.y+")"}S.attr("transform",M),m.applyTransition(v,_).style("opacity",1).attr("transform",M),m.applyTransition(S.selectAll("rect"),_).attr("width",function(E){return _.node(E).width}).attr("height",function(E){return _.node(E).height}).attr("x",function(E){return-_.node(E).width/2}).attr("y",function(E){return-_.node(E).height/2})}},4577:(d,b,h)=>{var m=h(8355),f=h(4322),v=h(1034);d.exports=function(_,S){function M(E){var D=S.edge(E);return v.has(D,"x")?"translate("+D.x+","+D.y+")":""}_.filter(function(){return!f.select(this).classed("update")}).attr("transform",M),m.applyTransition(_,S).style("opacity",1).attr("transform",M)}},4849:(d,b,h)=>{var m=h(8355),f=h(4322);d.exports=function(v,_){function S(M){var E=_.node(M);return"translate("+E.x+","+E.y+")"}v.filter(function(){return!f.select(this).classed("update")}).attr("transform",S),m.applyTransition(v,_).style("opacity",1).attr("transform",S)}},5787:(d,b,h)=>{var m=h(1034),f=h(4322),v=h(6478).layout;d.exports=function(){var E=h(607),D=h(5632),B=h(6315),z=h(940),H=h(4849),J=h(4577),rt=h(6381),dt=h(4418),K=h(9144),_t=function(at,ot){(function(gt){gt.nodes().forEach(function(et){var ft=gt.node(et);m.has(ft,"label")||gt.children(et).length||(ft.label=et),m.has(ft,"paddingX")&&m.defaults(ft,{paddingLeft:ft.paddingX,paddingRight:ft.paddingX}),m.has(ft,"paddingY")&&m.defaults(ft,{paddingTop:ft.paddingY,paddingBottom:ft.paddingY}),m.has(ft,"padding")&&m.defaults(ft,{paddingLeft:ft.padding,paddingRight:ft.padding,paddingTop:ft.padding,paddingBottom:ft.padding}),m.defaults(ft,_),m.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(q){ft[q]=Number(ft[q])}),m.has(ft,"width")&&(ft._prevWidth=ft.width),m.has(ft,"height")&&(ft._prevHeight=ft.height)}),gt.edges().forEach(function(et){var ft=gt.edge(et);m.has(ft,"label")||(ft.label=""),m.defaults(ft,S)})})(ot);var bt=M(at,"output"),zt=M(bt,"clusters"),Tt=M(bt,"edgePaths"),mt=B(M(bt,"edgeLabels"),ot),Ct=E(M(bt,"nodes"),ot,dt);v(ot),H(Ct,ot),J(mt,ot),z(Tt,ot,K);var xt=D(zt,ot);rt(xt,ot),function(gt){m.each(gt.nodes(),function(et){var ft=gt.node(et);m.has(ft,"_prevWidth")?ft.width=ft._prevWidth:delete ft.width,m.has(ft,"_prevHeight")?ft.height=ft._prevHeight:delete ft.height,delete ft._prevWidth,delete ft._prevHeight})}(ot)};return _t.createNodes=function(at){return arguments.length?(E=at,_t):E},_t.createClusters=function(at){return arguments.length?(D=at,_t):D},_t.createEdgeLabels=function(at){return arguments.length?(B=at,_t):B},_t.createEdgePaths=function(at){return arguments.length?(z=at,_t):z},_t.shapes=function(at){return arguments.length?(dt=at,_t):dt},_t.arrows=function(at){return arguments.length?(K=at,_t):K},_t};var _={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},S={arrowhead:"normal",curve:f.curveLinear};function M(E,D){var B=E.select("g."+D);return B.empty()&&(B=E.append("g").attr("class",D)),B}},4418:(d,b,h)=>{var m=h(8049),f=h(3260),v=h(6587),_=h(5337);d.exports={rect:function(S,M,E){var D=S.insert("rect",":first-child").attr("rx",E.rx).attr("ry",E.ry).attr("x",-M.width/2).attr("y",-M.height/2).attr("width",M.width).attr("height",M.height);return E.intersect=function(B){return m(E,B)},D},ellipse:function(S,M,E){var D=M.width/2,B=M.height/2,z=S.insert("ellipse",":first-child").attr("x",-M.width/2).attr("y",-M.height/2).attr("rx",D).attr("ry",B);return E.intersect=function(H){return f(E,D,B,H)},z},circle:function(S,M,E){var D=Math.max(M.width,M.height)/2,B=S.insert("circle",":first-child").attr("x",-M.width/2).attr("y",-M.height/2).attr("r",D);return E.intersect=function(z){return v(E,D,z)},B},diamond:function(S,M,E){var D=M.width*Math.SQRT2/2,B=M.height*Math.SQRT2/2,z=[{x:0,y:-B},{x:-D,y:0},{x:0,y:B},{x:D,y:0}],H=S.insert("polygon",":first-child").attr("points",z.map(function(J){return J.x+","+J.y}).join(" "));return E.intersect=function(J){return _(E,z,J)},H}}},8355:(d,b,h)=>{var m=h(1034);d.exports={isSubgraph:function(_,S){return!!_.children(S).length},edgeToId:function(_){return v(_.v)+":"+v(_.w)+":"+v(_.name)},applyStyle:function(_,S){S&&_.attr("style",S)},applyClass:function(_,S,M){S&&_.attr("class",S).attr("class",M+" "+_.attr("class"))},applyTransition:function(_,S){var M=S.graph();if(m.isPlainObject(M)){var E=M.transition;if(m.isFunction(E))return E(_)}return _}};var f=/:/g;function v(_){return _?String(_).replace(f,"\\:"):""}},5689:d=>{d.exports="0.6.4"},681:(d,b,h)=>{d.exports={graphlib:h(574),layout:h(8123),debug:h(7570),util:{time:h(1138).time,notime:h(1138).notime},version:h(8177)}},2188:(d,b,h)=>{var m=h(8436),f=h(4079);d.exports={run:function(v){var _=v.graph().acyclicer==="greedy"?f(v,function(S){return function(M){return S.edge(M).weight}}(v)):function(S){var M=[],E={},D={};return m.forEach(S.nodes(),function B(z){m.has(D,z)||(D[z]=!0,E[z]=!0,m.forEach(S.outEdges(z),function(H){m.has(E,H.w)?M.push(H):B(H.w)}),delete E[z])}),M}(v);m.forEach(_,function(S){var M=v.edge(S);v.removeEdge(S),M.forwardName=S.name,M.reversed=!0,v.setEdge(S.w,S.v,M,m.uniqueId("rev"))})},undo:function(v){m.forEach(v.edges(),function(_){var S=v.edge(_);if(S.reversed){v.removeEdge(_);var M=S.forwardName;delete S.reversed,delete S.forwardName,v.setEdge(_.w,_.v,S,M)}})}}},1133:(d,b,h)=>{var m=h(8436),f=h(1138);function v(_,S,M,E,D,B){var z={width:0,height:0,rank:B,borderType:S},H=D[S][B-1],J=f.addDummyNode(_,"border",z,M);D[S][B]=J,_.setParent(J,E),H&&_.setEdge(H,J,{weight:1})}d.exports=function(_){m.forEach(_.children(),function S(M){var E=_.children(M),D=_.node(M);if(E.length&&m.forEach(E,S),m.has(D,"minRank")){D.borderLeft=[],D.borderRight=[];for(var B=D.minRank,z=D.maxRank+1;B<z;++B)v(_,"borderLeft","_bl",M,D,B),v(_,"borderRight","_br",M,D,B)}})}},3258:(d,b,h)=>{var m=h(8436);function f(M){m.forEach(M.nodes(),function(E){v(M.node(E))}),m.forEach(M.edges(),function(E){v(M.edge(E))})}function v(M){var E=M.width;M.width=M.height,M.height=E}function _(M){M.y=-M.y}function S(M){var E=M.x;M.x=M.y,M.y=E}d.exports={adjust:function(M){var E=M.graph().rankdir.toLowerCase();E!=="lr"&&E!=="rl"||f(M)},undo:function(M){var E=M.graph().rankdir.toLowerCase();E!=="bt"&&E!=="rl"||function(D){m.forEach(D.nodes(),function(B){_(D.node(B))}),m.forEach(D.edges(),function(B){var z=D.edge(B);m.forEach(z.points,_),m.has(z,"y")&&_(z)})}(M),E!=="lr"&&E!=="rl"||(function(D){m.forEach(D.nodes(),function(B){S(D.node(B))}),m.forEach(D.edges(),function(B){var z=D.edge(B);m.forEach(z.points,S),m.has(z,"x")&&S(z)})}(M),f(M))}}},7822:d=>{function b(){var f={};f._next=f._prev=f,this._sentinel=f}function h(f){f._prev._next=f._next,f._next._prev=f._prev,delete f._next,delete f._prev}function m(f,v){if(f!=="_next"&&f!=="_prev")return v}d.exports=b,b.prototype.dequeue=function(){var f=this._sentinel,v=f._prev;if(v!==f)return h(v),v},b.prototype.enqueue=function(f){var v=this._sentinel;f._prev&&f._next&&h(f),f._next=v._next,v._next._prev=f,v._next=f,f._prev=v},b.prototype.toString=function(){for(var f=[],v=this._sentinel,_=v._prev;_!==v;)f.push(JSON.stringify(_,m)),_=_._prev;return"["+f.join(", ")+"]"}},7570:(d,b,h)=>{var m=h(8436),f=h(1138),v=h(574).Graph;d.exports={debugOrdering:function(_){var S=f.buildLayerMatrix(_),M=new v({compound:!0,multigraph:!0}).setGraph({});return m.forEach(_.nodes(),function(E){M.setNode(E,{label:E}),M.setParent(E,"layer"+_.node(E).rank)}),m.forEach(_.edges(),function(E){M.setEdge(E.v,E.w,{},E.name)}),m.forEach(S,function(E,D){var B="layer"+D;M.setNode(B,{rank:"same"}),m.reduce(E,function(z,H){return M.setEdge(z,H,{style:"invis"}),H})}),M}}},574:(d,b,h)=>{var m;try{m=h(8282)}catch{}m||(m=window.graphlib),d.exports=m},4079:(d,b,h)=>{var m=h(8436),f=h(574).Graph,v=h(7822);d.exports=function(E,D){if(E.nodeCount()<=1)return[];var B=function(H,J){var rt=new f,dt=0,K=0;m.forEach(H.nodes(),function(ot){rt.setNode(ot,{v:ot,in:0,out:0})}),m.forEach(H.edges(),function(ot){var bt=rt.edge(ot.v,ot.w)||0,zt=J(ot),Tt=bt+zt;rt.setEdge(ot.v,ot.w,Tt),K=Math.max(K,rt.node(ot.v).out+=zt),dt=Math.max(dt,rt.node(ot.w).in+=zt)});var _t=m.range(K+dt+3).map(function(){return new v}),at=dt+1;return m.forEach(rt.nodes(),function(ot){M(_t,at,rt.node(ot))}),{graph:rt,buckets:_t,zeroIdx:at}}(E,D||_),z=function(H,J,rt){for(var dt,K=[],_t=J[J.length-1],at=J[0];H.nodeCount();){for(;dt=at.dequeue();)S(H,J,rt,dt);for(;dt=_t.dequeue();)S(H,J,rt,dt);if(H.nodeCount()){for(var ot=J.length-2;ot>0;--ot)if(dt=J[ot].dequeue()){K=K.concat(S(H,J,rt,dt,!0));break}}}return K}(B.graph,B.buckets,B.zeroIdx);return m.flatten(m.map(z,function(H){return E.outEdges(H.v,H.w)}),!0)};var _=m.constant(1);function S(E,D,B,z,H){var J=H?[]:void 0;return m.forEach(E.inEdges(z.v),function(rt){var dt=E.edge(rt),K=E.node(rt.v);H&&J.push({v:rt.v,w:rt.w}),K.out-=dt,M(D,B,K)}),m.forEach(E.outEdges(z.v),function(rt){var dt=E.edge(rt),K=rt.w,_t=E.node(K);_t.in-=dt,M(D,B,_t)}),E.removeNode(z.v),J}function M(E,D,B){B.out?B.in?E[B.out-B.in+D].enqueue(B):E[E.length-1].enqueue(B):E[0].enqueue(B)}},8123:(d,b,h)=>{var m=h(8436),f=h(2188),v=h(5995),_=h(8093),S=h(1138).normalizeRanks,M=h(4219),E=h(1138).removeEmptyRanks,D=h(2981),B=h(1133),z=h(3258),H=h(3408),J=h(7873),rt=h(1138),dt=h(574).Graph;d.exports=function(gt,et){var ft=et&&et.debugTiming?rt.time:rt.notime;ft("layout",function(){var q=ft(" buildLayoutGraph",function(){return function(wt){var W=new dt({multigraph:!0,compound:!0}),St=xt(wt.graph());return W.setGraph(m.merge({},_t,Ct(St,K),m.pick(St,at))),m.forEach(wt.nodes(),function(Lt){var Wt=xt(wt.node(Lt));W.setNode(Lt,m.defaults(Ct(Wt,ot),bt)),W.setParent(Lt,wt.parent(Lt))}),m.forEach(wt.edges(),function(Lt){var Wt=xt(wt.edge(Lt));W.setEdge(Lt,m.merge({},Tt,Ct(Wt,zt),m.pick(Wt,mt)))}),W}(gt)});ft(" runLayout",function(){(function(wt,W){W(" makeSpaceForEdgeLabels",function(){(function(St){var Lt=St.graph();Lt.ranksep/=2,m.forEach(St.edges(),function(Wt){var ye=St.edge(Wt);ye.minlen*=2,ye.labelpos.toLowerCase()!=="c"&&(Lt.rankdir==="TB"||Lt.rankdir==="BT"?ye.width+=ye.labeloffset:ye.height+=ye.labeloffset)})})(wt)}),W(" removeSelfEdges",function(){(function(St){m.forEach(St.edges(),function(Lt){if(Lt.v===Lt.w){var Wt=St.node(Lt.v);Wt.selfEdges||(Wt.selfEdges=[]),Wt.selfEdges.push({e:Lt,label:St.edge(Lt)}),St.removeEdge(Lt)}})})(wt)}),W(" acyclic",function(){f.run(wt)}),W(" nestingGraph.run",function(){D.run(wt)}),W(" rank",function(){_(rt.asNonCompoundGraph(wt))}),W(" injectEdgeLabelProxies",function(){(function(St){m.forEach(St.edges(),function(Lt){var Wt=St.edge(Lt);if(Wt.width&&Wt.height){var ye=St.node(Lt.v),Ve={rank:(St.node(Lt.w).rank-ye.rank)/2+ye.rank,e:Lt};rt.addDummyNode(St,"edge-proxy",Ve,"_ep")}})})(wt)}),W(" removeEmptyRanks",function(){E(wt)}),W(" nestingGraph.cleanup",function(){D.cleanup(wt)}),W(" normalizeRanks",function(){S(wt)}),W(" assignRankMinMax",function(){(function(St){var Lt=0;m.forEach(St.nodes(),function(Wt){var ye=St.node(Wt);ye.borderTop&&(ye.minRank=St.node(ye.borderTop).rank,ye.maxRank=St.node(ye.borderBottom).rank,Lt=m.max(Lt,ye.maxRank))}),St.graph().maxRank=Lt})(wt)}),W(" removeEdgeLabelProxies",function(){(function(St){m.forEach(St.nodes(),function(Lt){var Wt=St.node(Lt);Wt.dummy==="edge-proxy"&&(St.edge(Wt.e).labelRank=Wt.rank,St.removeNode(Lt))})})(wt)}),W(" normalize.run",function(){v.run(wt)}),W(" parentDummyChains",function(){M(wt)}),W(" addBorderSegments",function(){B(wt)}),W(" order",function(){H(wt)}),W(" insertSelfEdges",function(){(function(St){var Lt=rt.buildLayerMatrix(St);m.forEach(Lt,function(Wt){var ye=0;m.forEach(Wt,function(Ve,ke){var fe=St.node(Ve);fe.order=ke+ye,m.forEach(fe.selfEdges,function(xe){rt.addDummyNode(St,"selfedge",{width:xe.label.width,height:xe.label.height,rank:fe.rank,order:ke+ ++ye,e:xe.e,label:xe.label},"_se")}),delete fe.selfEdges})})})(wt)}),W(" adjustCoordinateSystem",function(){z.adjust(wt)}),W(" position",function(){J(wt)}),W(" positionSelfEdges",function(){(function(St){m.forEach(St.nodes(),function(Lt){var Wt=St.node(Lt);if(Wt.dummy==="selfedge"){var ye=St.node(Wt.e.v),Ve=ye.x+ye.width/2,ke=ye.y,fe=Wt.x-Ve,xe=ye.height/2;St.setEdge(Wt.e,Wt.label),St.removeNode(Lt),Wt.label.points=[{x:Ve+2*fe/3,y:ke-xe},{x:Ve+5*fe/6,y:ke-xe},{x:Ve+fe,y:ke},{x:Ve+5*fe/6,y:ke+xe},{x:Ve+2*fe/3,y:ke+xe}],Wt.label.x=Wt.x,Wt.label.y=Wt.y}})})(wt)}),W(" removeBorderNodes",function(){(function(St){m.forEach(St.nodes(),function(Lt){if(St.children(Lt).length){var Wt=St.node(Lt),ye=St.node(Wt.borderTop),Ve=St.node(Wt.borderBottom),ke=St.node(m.last(Wt.borderLeft)),fe=St.node(m.last(Wt.borderRight));Wt.width=Math.abs(fe.x-ke.x),Wt.height=Math.abs(Ve.y-ye.y),Wt.x=ke.x+Wt.width/2,Wt.y=ye.y+Wt.height/2}}),m.forEach(St.nodes(),function(Lt){St.node(Lt).dummy==="border"&&St.removeNode(Lt)})})(wt)}),W(" normalize.undo",function(){v.undo(wt)}),W(" fixupEdgeLabelCoords",function(){(function(St){m.forEach(St.edges(),function(Lt){var Wt=St.edge(Lt);if(m.has(Wt,"x"))switch(Wt.labelpos!=="l"&&Wt.labelpos!=="r"||(Wt.width-=Wt.labeloffset),Wt.labelpos){case"l":Wt.x-=Wt.width/2+Wt.labeloffset;break;case"r":Wt.x+=Wt.width/2+Wt.labeloffset}})})(wt)}),W(" undoCoordinateSystem",function(){z.undo(wt)}),W(" translateGraph",function(){(function(St){var Lt=Number.POSITIVE_INFINITY,Wt=0,ye=Number.POSITIVE_INFINITY,Ve=0,ke=St.graph(),fe=ke.marginx||0,xe=ke.marginy||0;function Me(Oe){var ve=Oe.x,Sr=Oe.y,_e=Oe.width,Je=Oe.height;Lt=Math.min(Lt,ve-_e/2),Wt=Math.max(Wt,ve+_e/2),ye=Math.min(ye,Sr-Je/2),Ve=Math.max(Ve,Sr+Je/2)}m.forEach(St.nodes(),function(Oe){Me(St.node(Oe))}),m.forEach(St.edges(),function(Oe){var ve=St.edge(Oe);m.has(ve,"x")&&Me(ve)}),Lt-=fe,ye-=xe,m.forEach(St.nodes(),function(Oe){var ve=St.node(Oe);ve.x-=Lt,ve.y-=ye}),m.forEach(St.edges(),function(Oe){var ve=St.edge(Oe);m.forEach(ve.points,function(Sr){Sr.x-=Lt,Sr.y-=ye}),m.has(ve,"x")&&(ve.x-=Lt),m.has(ve,"y")&&(ve.y-=ye)}),ke.width=Wt-Lt+fe,ke.height=Ve-ye+xe})(wt)}),W(" assignNodeIntersects",function(){(function(St){m.forEach(St.edges(),function(Lt){var Wt,ye,Ve=St.edge(Lt),ke=St.node(Lt.v),fe=St.node(Lt.w);Ve.points?(Wt=Ve.points[0],ye=Ve.points[Ve.points.length-1]):(Ve.points=[],Wt=fe,ye=ke),Ve.points.unshift(rt.intersectRect(ke,Wt)),Ve.points.push(rt.intersectRect(fe,ye))})})(wt)}),W(" reversePoints",function(){(function(St){m.forEach(St.edges(),function(Lt){var Wt=St.edge(Lt);Wt.reversed&&Wt.points.reverse()})})(wt)}),W(" acyclic.undo",function(){f.undo(wt)})})(q,ft)}),ft(" updateInputGraph",function(){(function(wt,W){m.forEach(wt.nodes(),function(St){var Lt=wt.node(St),Wt=W.node(St);Lt&&(Lt.x=Wt.x,Lt.y=Wt.y,W.children(St).length&&(Lt.width=Wt.width,Lt.height=Wt.height))}),m.forEach(wt.edges(),function(St){var Lt=wt.edge(St),Wt=W.edge(St);Lt.points=Wt.points,m.has(Wt,"x")&&(Lt.x=Wt.x,Lt.y=Wt.y)}),wt.graph().width=W.graph().width,wt.graph().height=W.graph().height})(gt,q)})})};var K=["nodesep","edgesep","ranksep","marginx","marginy"],_t={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},at=["acyclicer","ranker","rankdir","align"],ot=["width","height"],bt={width:0,height:0},zt=["minlen","weight","width","height","labeloffset"],Tt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},mt=["labelpos"];function Ct(gt,et){return m.mapValues(m.pick(gt,et),Number)}function xt(gt){var et={};return m.forEach(gt,function(ft,q){et[q.toLowerCase()]=ft}),et}},8436:(d,b,h)=>{var m;try{m={cloneDeep:h(361),constant:h(5703),defaults:h(1747),each:h(6073),filter:h(3105),find:h(3311),flatten:h(5564),forEach:h(4486),forIn:h(2620),has:h(8721),isUndefined:h(2353),last:h(928),map:h(5161),mapValues:h(6604),max:h(6162),merge:h(3857),min:h(3632),minBy:h(2762),now:h(7771),pick:h(9722),range:h(6026),reduce:h(4061),sortBy:h(9734),uniqueId:h(3955),values:h(2628),zipObject:h(7287)}}catch{}m||(m=window._),d.exports=m},2981:(d,b,h)=>{var m=h(8436),f=h(1138);function v(_,S,M,E,D,B,z){var H=_.children(z);if(H.length){var J=f.addBorderNode(_,"_bt"),rt=f.addBorderNode(_,"_bb"),dt=_.node(z);_.setParent(J,z),dt.borderTop=J,_.setParent(rt,z),dt.borderBottom=rt,m.forEach(H,function(K){v(_,S,M,E,D,B,K);var _t=_.node(K),at=_t.borderTop?_t.borderTop:K,ot=_t.borderBottom?_t.borderBottom:K,bt=_t.borderTop?E:2*E,zt=at!==ot?1:D-B[z]+1;_.setEdge(J,at,{weight:bt,minlen:zt,nestingEdge:!0}),_.setEdge(ot,rt,{weight:bt,minlen:zt,nestingEdge:!0})}),_.parent(z)||_.setEdge(S,J,{weight:0,minlen:D+B[z]})}else z!==S&&_.setEdge(S,z,{weight:0,minlen:M})}d.exports={run:function(_){var S=f.addDummyNode(_,"root",{},"_root"),M=function(z){var H={};function J(rt,dt){var K=z.children(rt);K&&K.length&&m.forEach(K,function(_t){J(_t,dt+1)}),H[rt]=dt}return m.forEach(z.children(),function(rt){J(rt,1)}),H}(_),E=m.max(m.values(M))-1,D=2*E+1;_.graph().nestingRoot=S,m.forEach(_.edges(),function(z){_.edge(z).minlen*=D});var B=function(z){return m.reduce(z.edges(),function(H,J){return H+z.edge(J).weight},0)}(_)+1;m.forEach(_.children(),function(z){v(_,S,D,B,E,M,z)}),_.graph().nodeRankFactor=D},cleanup:function(_){var S=_.graph();_.removeNode(S.nestingRoot),delete S.nestingRoot,m.forEach(_.edges(),function(M){_.edge(M).nestingEdge&&_.removeEdge(M)})}}},5995:(d,b,h)=>{var m=h(8436),f=h(1138);d.exports={run:function(v){v.graph().dummyChains=[],m.forEach(v.edges(),function(_){(function(S,M){var E,D,B,z=M.v,H=S.node(z).rank,J=M.w,rt=S.node(J).rank,dt=M.name,K=S.edge(M),_t=K.labelRank;if(rt!==H+1){for(S.removeEdge(M),B=0,++H;H<rt;++B,++H)K.points=[],D={width:0,height:0,edgeLabel:K,edgeObj:M,rank:H},E=f.addDummyNode(S,"edge",D,"_d"),H===_t&&(D.width=K.width,D.height=K.height,D.dummy="edge-label",D.labelpos=K.labelpos),S.setEdge(z,E,{weight:K.weight},dt),B===0&&S.graph().dummyChains.push(E),z=E;S.setEdge(z,J,{weight:K.weight},dt)}})(v,_)})},undo:function(v){m.forEach(v.graph().dummyChains,function(_){var S,M=v.node(_),E=M.edgeLabel;for(v.setEdge(M.edgeObj,E);M.dummy;)S=v.successors(_)[0],v.removeNode(_),E.points.push({x:M.x,y:M.y}),M.dummy==="edge-label"&&(E.x=M.x,E.y=M.y,E.width=M.width,E.height=M.height),_=S,M=v.node(_)})}}},5093:(d,b,h)=>{var m=h(8436);d.exports=function(f,v,_){var S,M={};m.forEach(_,function(E){for(var D,B,z=f.parent(E);z;){if((D=f.parent(z))?(B=M[D],M[D]=z):(B=S,S=z),B&&B!==z)return void v.setEdge(B,z);z=D}})}},5439:(d,b,h)=>{var m=h(8436);d.exports=function(f,v){return m.map(v,function(_){var S=f.inEdges(_);if(S.length){var M=m.reduce(S,function(E,D){var B=f.edge(D),z=f.node(D.v);return{sum:E.sum+B.weight*z.order,weight:E.weight+B.weight}},{sum:0,weight:0});return{v:_,barycenter:M.sum/M.weight,weight:M.weight}}return{v:_}})}},3128:(d,b,h)=>{var m=h(8436),f=h(574).Graph;d.exports=function(v,_,S){var M=function(D){for(var B;D.hasNode(B=m.uniqueId("_root")););return B}(v),E=new f({compound:!0}).setGraph({root:M}).setDefaultNodeLabel(function(D){return v.node(D)});return m.forEach(v.nodes(),function(D){var B=v.node(D),z=v.parent(D);(B.rank===_||B.minRank<=_&&_<=B.maxRank)&&(E.setNode(D),E.setParent(D,z||M),m.forEach(v[S](D),function(H){var J=H.v===D?H.w:H.v,rt=E.edge(J,D),dt=m.isUndefined(rt)?0:rt.weight;E.setEdge(J,D,{weight:v.edge(H).weight+dt})}),m.has(B,"minRank")&&E.setNode(D,{borderLeft:B.borderLeft[_],borderRight:B.borderRight[_]}))}),E}},6630:(d,b,h)=>{var m=h(8436);function f(v,_,S){for(var M=m.zipObject(S,m.map(S,function(J,rt){return rt})),E=m.flatten(m.map(_,function(J){return m.sortBy(m.map(v.outEdges(J),function(rt){return{pos:M[rt.w],weight:v.edge(rt).weight}}),"pos")}),!0),D=1;D<S.length;)D<<=1;var B=2*D-1;D-=1;var z=m.map(new Array(B),function(){return 0}),H=0;return m.forEach(E.forEach(function(J){var rt=J.pos+D;z[rt]+=J.weight;for(var dt=0;rt>0;)rt%2&&(dt+=z[rt+1]),z[rt=rt-1>>1]+=J.weight;H+=J.weight*dt})),H}d.exports=function(v,_){for(var S=0,M=1;M<_.length;++M)S+=f(v,_[M-1],_[M]);return S}},3408:(d,b,h)=>{var m=h(8436),f=h(2588),v=h(6630),_=h(1026),S=h(3128),M=h(5093),E=h(574).Graph,D=h(1138);function B(J,rt,dt){return m.map(rt,function(K){return S(J,K,dt)})}function z(J,rt){var dt=new E;m.forEach(J,function(K){var _t=K.graph().root,at=_(K,_t,dt,rt);m.forEach(at.vs,function(ot,bt){K.node(ot).order=bt}),M(K,dt,at.vs)})}function H(J,rt){m.forEach(rt,function(dt){m.forEach(dt,function(K,_t){J.node(K).order=_t})})}d.exports=function(J){var rt=D.maxRank(J),dt=B(J,m.range(1,rt+1),"inEdges"),K=B(J,m.range(rt-1,-1,-1),"outEdges"),_t=f(J);H(J,_t);for(var at,ot=Number.POSITIVE_INFINITY,bt=0,zt=0;zt<4;++bt,++zt){z(bt%2?dt:K,bt%4>=2),_t=D.buildLayerMatrix(J);var Tt=v(J,_t);Tt<ot&&(zt=0,at=m.cloneDeep(_t),ot=Tt)}H(J,at)}},2588:(d,b,h)=>{var m=h(8436);d.exports=function(f){var v={},_=m.filter(f.nodes(),function(D){return!f.children(D).length}),S=m.max(m.map(_,function(D){return f.node(D).rank})),M=m.map(m.range(S+1),function(){return[]}),E=m.sortBy(_,function(D){return f.node(D).rank});return m.forEach(E,function D(B){if(!m.has(v,B)){v[B]=!0;var z=f.node(B);M[z.rank].push(B),m.forEach(f.successors(B),D)}}),M}},9567:(d,b,h)=>{var m=h(8436);d.exports=function(f,v){var _={};return m.forEach(f,function(S,M){var E=_[S.v]={indegree:0,in:[],out:[],vs:[S.v],i:M};m.isUndefined(S.barycenter)||(E.barycenter=S.barycenter,E.weight=S.weight)}),m.forEach(v.edges(),function(S){var M=_[S.v],E=_[S.w];m.isUndefined(M)||m.isUndefined(E)||(E.indegree++,M.out.push(_[S.w]))}),function(S){var M=[];function E(z){return function(H){var J,rt,dt,K;H.merged||(m.isUndefined(H.barycenter)||m.isUndefined(z.barycenter)||H.barycenter>=z.barycenter)&&(rt=H,dt=0,K=0,(J=z).weight&&(dt+=J.barycenter*J.weight,K+=J.weight),rt.weight&&(dt+=rt.barycenter*rt.weight,K+=rt.weight),J.vs=rt.vs.concat(J.vs),J.barycenter=dt/K,J.weight=K,J.i=Math.min(rt.i,J.i),rt.merged=!0)}}function D(z){return function(H){H.in.push(z),--H.indegree==0&&S.push(H)}}for(;S.length;){var B=S.pop();M.push(B),m.forEach(B.in.reverse(),E(B)),m.forEach(B.out,D(B))}return m.map(m.filter(M,function(z){return!z.merged}),function(z){return m.pick(z,["vs","i","barycenter","weight"])})}(m.filter(_,function(S){return!S.indegree}))}},1026:(d,b,h)=>{var m=h(8436),f=h(5439),v=h(9567),_=h(7304);d.exports=function S(M,E,D,B){var z=M.children(E),H=M.node(E),J=H?H.borderLeft:void 0,rt=H?H.borderRight:void 0,dt={};J&&(z=m.filter(z,function(zt){return zt!==J&&zt!==rt}));var K=f(M,z);m.forEach(K,function(zt){if(M.children(zt.v).length){var Tt=S(M,zt.v,D,B);dt[zt.v]=Tt,m.has(Tt,"barycenter")&&(mt=zt,Ct=Tt,m.isUndefined(mt.barycenter)?(mt.barycenter=Ct.barycenter,mt.weight=Ct.weight):(mt.barycenter=(mt.barycenter*mt.weight+Ct.barycenter*Ct.weight)/(mt.weight+Ct.weight),mt.weight+=Ct.weight))}var mt,Ct});var _t=v(K,D);(function(zt,Tt){m.forEach(zt,function(mt){mt.vs=m.flatten(mt.vs.map(function(Ct){return Tt[Ct]?Tt[Ct].vs:Ct}),!0)})})(_t,dt);var at=_(_t,B);if(J&&(at.vs=m.flatten([J,at.vs,rt],!0),M.predecessors(J).length)){var ot=M.node(M.predecessors(J)[0]),bt=M.node(M.predecessors(rt)[0]);m.has(at,"barycenter")||(at.barycenter=0,at.weight=0),at.barycenter=(at.barycenter*at.weight+ot.order+bt.order)/(at.weight+2),at.weight+=2}return at}},7304:(d,b,h)=>{var m=h(8436),f=h(1138);function v(_,S,M){for(var E;S.length&&(E=m.last(S)).i<=M;)S.pop(),_.push(E.vs),M++;return M}d.exports=function(_,S){var M,E=f.partition(_,function(K){return m.has(K,"barycenter")}),D=E.lhs,B=m.sortBy(E.rhs,function(K){return-K.i}),z=[],H=0,J=0,rt=0;D.sort((M=!!S,function(K,_t){return K.barycenter<_t.barycenter?-1:K.barycenter>_t.barycenter?1:M?_t.i-K.i:K.i-_t.i})),rt=v(z,B,rt),m.forEach(D,function(K){rt+=K.vs.length,z.push(K.vs),H+=K.barycenter*K.weight,J+=K.weight,rt=v(z,B,rt)});var dt={vs:m.flatten(z,!0)};return J&&(dt.barycenter=H/J,dt.weight=J),dt}},4219:(d,b,h)=>{var m=h(8436);d.exports=function(f){var v=function(_){var S={},M=0;return m.forEach(_.children(),function E(D){var B=M;m.forEach(_.children(D),E),S[D]={low:B,lim:M++}}),S}(f);m.forEach(f.graph().dummyChains,function(_){for(var S=f.node(_),M=S.edgeObj,E=function(rt,dt,K,_t){var at,ot,bt=[],zt=[],Tt=Math.min(dt[K].low,dt[_t].low),mt=Math.max(dt[K].lim,dt[_t].lim);at=K;do at=rt.parent(at),bt.push(at);while(at&&(dt[at].low>Tt||mt>dt[at].lim));for(ot=at,at=_t;(at=rt.parent(at))!==ot;)zt.push(at);return{path:bt.concat(zt.reverse()),lca:ot}}(f,v,M.v,M.w),D=E.path,B=E.lca,z=0,H=D[z],J=!0;_!==M.w;){if(S=f.node(_),J){for(;(H=D[z])!==B&&f.node(H).maxRank<S.rank;)z++;H===B&&(J=!1)}if(!J){for(;z<D.length-1&&f.node(H=D[z+1]).minRank<=S.rank;)z++;H=D[z]}f.setParent(_,H),_=f.successors(_)[0]}})}},3573:(d,b,h)=>{var m=h(8436),f=h(574).Graph,v=h(1138);function _(rt,dt){var K={};return m.reduce(dt,function(_t,at){var ot=0,bt=0,zt=_t.length,Tt=m.last(at);return m.forEach(at,function(mt,Ct){var xt=function(et,ft){if(et.node(ft).dummy)return m.find(et.predecessors(ft),function(q){return et.node(q).dummy})}(rt,mt),gt=xt?rt.node(xt).order:zt;(xt||mt===Tt)&&(m.forEach(at.slice(bt,Ct+1),function(et){m.forEach(rt.predecessors(et),function(ft){var q=rt.node(ft),wt=q.order;!(wt<ot||gt<wt)||q.dummy&&rt.node(et).dummy||M(K,ft,et)})}),bt=Ct+1,ot=gt)}),at}),K}function S(rt,dt){var K={};function _t(at,ot,bt,zt,Tt){var mt;m.forEach(m.range(ot,bt),function(Ct){mt=at[Ct],rt.node(mt).dummy&&m.forEach(rt.predecessors(mt),function(xt){var gt=rt.node(xt);gt.dummy&&(gt.order<zt||gt.order>Tt)&&M(K,xt,mt)})})}return m.reduce(dt,function(at,ot){var bt,zt=-1,Tt=0;return m.forEach(ot,function(mt,Ct){if(rt.node(mt).dummy==="border"){var xt=rt.predecessors(mt);xt.length&&(bt=rt.node(xt[0]).order,_t(ot,Tt,Ct,zt,bt),Tt=Ct,zt=bt)}_t(ot,Tt,ot.length,bt,at.length)}),ot}),K}function M(rt,dt,K){if(dt>K){var _t=dt;dt=K,K=_t}var at=rt[dt];at||(rt[dt]=at={}),at[K]=!0}function E(rt,dt,K){if(dt>K){var _t=dt;dt=K,K=_t}return m.has(rt[dt],K)}function D(rt,dt,K,_t){var at={},ot={},bt={};return m.forEach(dt,function(zt){m.forEach(zt,function(Tt,mt){at[Tt]=Tt,ot[Tt]=Tt,bt[Tt]=mt})}),m.forEach(dt,function(zt){var Tt=-1;m.forEach(zt,function(mt){var Ct=_t(mt);if(Ct.length){Ct=m.sortBy(Ct,function(q){return bt[q]});for(var xt=(Ct.length-1)/2,gt=Math.floor(xt),et=Math.ceil(xt);gt<=et;++gt){var ft=Ct[gt];ot[mt]===mt&&Tt<bt[ft]&&!E(K,mt,ft)&&(ot[ft]=mt,ot[mt]=at[mt]=at[ft],Tt=bt[ft])}}})}),{root:at,align:ot}}function B(rt,dt,K,_t,at){var ot={},bt=function(mt,Ct,xt,gt){var et=new f,ft=mt.graph(),q=function(wt,W,St){return function(Lt,Wt,ye){var Ve,ke=Lt.node(Wt),fe=Lt.node(ye),xe=0;if(xe+=ke.width/2,m.has(ke,"labelpos"))switch(ke.labelpos.toLowerCase()){case"l":Ve=-ke.width/2;break;case"r":Ve=ke.width/2}if(Ve&&(xe+=St?Ve:-Ve),Ve=0,xe+=(ke.dummy?W:wt)/2,xe+=(fe.dummy?W:wt)/2,xe+=fe.width/2,m.has(fe,"labelpos"))switch(fe.labelpos.toLowerCase()){case"l":Ve=fe.width/2;break;case"r":Ve=-fe.width/2}return Ve&&(xe+=St?Ve:-Ve),Ve=0,xe}}(ft.nodesep,ft.edgesep,gt);return m.forEach(Ct,function(wt){var W;m.forEach(wt,function(St){var Lt=xt[St];if(et.setNode(Lt),W){var Wt=xt[W],ye=et.edge(Wt,Lt);et.setEdge(Wt,Lt,Math.max(q(mt,St,W),ye||0))}W=St})}),et}(rt,dt,K,at),zt=at?"borderLeft":"borderRight";function Tt(mt,Ct){for(var xt=bt.nodes(),gt=xt.pop(),et={};gt;)et[gt]?mt(gt):(et[gt]=!0,xt.push(gt),xt=xt.concat(Ct(gt))),gt=xt.pop()}return Tt(function(mt){ot[mt]=bt.inEdges(mt).reduce(function(Ct,xt){return Math.max(Ct,ot[xt.v]+bt.edge(xt))},0)},bt.predecessors.bind(bt)),Tt(function(mt){var Ct=bt.outEdges(mt).reduce(function(gt,et){return Math.min(gt,ot[et.w]-bt.edge(et))},Number.POSITIVE_INFINITY),xt=rt.node(mt);Ct!==Number.POSITIVE_INFINITY&&xt.borderType!==zt&&(ot[mt]=Math.max(ot[mt],Ct))},bt.successors.bind(bt)),m.forEach(_t,function(mt){ot[mt]=ot[K[mt]]}),ot}function z(rt,dt){return m.minBy(m.values(dt),function(K){var _t=Number.NEGATIVE_INFINITY,at=Number.POSITIVE_INFINITY;return m.forIn(K,function(ot,bt){var zt=function(Tt,mt){return Tt.node(mt).width}(rt,bt)/2;_t=Math.max(ot+zt,_t),at=Math.min(ot-zt,at)}),_t-at})}function H(rt,dt){var K=m.values(dt),_t=m.min(K),at=m.max(K);m.forEach(["u","d"],function(ot){m.forEach(["l","r"],function(bt){var zt,Tt=ot+bt,mt=rt[Tt];if(mt!==dt){var Ct=m.values(mt);(zt=bt==="l"?_t-m.min(Ct):at-m.max(Ct))&&(rt[Tt]=m.mapValues(mt,function(xt){return xt+zt}))}})})}function J(rt,dt){return m.mapValues(rt.ul,function(K,_t){if(dt)return rt[dt.toLowerCase()][_t];var at=m.sortBy(m.map(rt,_t));return(at[1]+at[2])/2})}d.exports={positionX:function(rt){var dt,K=v.buildLayerMatrix(rt),_t=m.merge(_(rt,K),S(rt,K)),at={};m.forEach(["u","d"],function(bt){dt=bt==="u"?K:m.values(K).reverse(),m.forEach(["l","r"],function(zt){zt==="r"&&(dt=m.map(dt,function(xt){return m.values(xt).reverse()}));var Tt=(bt==="u"?rt.predecessors:rt.successors).bind(rt),mt=D(0,dt,_t,Tt),Ct=B(rt,dt,mt.root,mt.align,zt==="r");zt==="r"&&(Ct=m.mapValues(Ct,function(xt){return-xt})),at[bt+zt]=Ct})});var ot=z(rt,at);return H(at,ot),J(at,rt.graph().align)},findType1Conflicts:_,findType2Conflicts:S,addConflict:M,hasConflict:E,verticalAlignment:D,horizontalCompaction:B,alignCoordinates:H,findSmallestWidthAlignment:z,balance:J}},7873:(d,b,h)=>{var m=h(8436),f=h(1138),v=h(3573).positionX;d.exports=function(_){(function(S){var M=f.buildLayerMatrix(S),E=S.graph().ranksep,D=0;m.forEach(M,function(B){var z=m.max(m.map(B,function(H){return S.node(H).height}));m.forEach(B,function(H){S.node(H).y=D+z/2}),D+=z+E})})(_=f.asNonCompoundGraph(_)),m.forEach(v(_),function(S,M){_.node(M).x=S})}},300:(d,b,h)=>{var m=h(8436),f=h(574).Graph,v=h(6681).slack;function _(E,D){return m.forEach(E.nodes(),function B(z){m.forEach(D.nodeEdges(z),function(H){var J=H.v,rt=z===J?H.w:J;E.hasNode(rt)||v(D,H)||(E.setNode(rt,{}),E.setEdge(z,rt,{}),B(rt))})}),E.nodeCount()}function S(E,D){return m.minBy(D.edges(),function(B){if(E.hasNode(B.v)!==E.hasNode(B.w))return v(D,B)})}function M(E,D,B){m.forEach(E.nodes(),function(z){D.node(z).rank+=B})}d.exports=function(E){var D,B,z=new f({directed:!1}),H=E.nodes()[0],J=E.nodeCount();for(z.setNode(H,{});_(z,E)<J;)D=S(z,E),B=z.hasNode(D.v)?v(E,D):-v(E,D),M(z,E,B);return z}},8093:(d,b,h)=>{var m=h(6681).longestPath,f=h(300),v=h(2472);d.exports=function(S){switch(S.graph().ranker){case"network-simplex":default:(function(M){v(M)})(S);break;case"tight-tree":(function(M){m(M),f(M)})(S);break;case"longest-path":_(S)}};var _=m},2472:(d,b,h)=>{var m=h(8436),f=h(300),v=h(6681).slack,_=h(6681).longestPath,S=h(574).alg.preorder,M=h(574).alg.postorder,E=h(1138).simplify;function D(at){at=E(at),_(at);var ot,bt=f(at);for(H(bt),B(bt,at);ot=rt(bt);)K(bt,at,ot,dt(bt,at,ot))}function B(at,ot){var bt=M(at,at.nodes());bt=bt.slice(0,bt.length-1),m.forEach(bt,function(zt){(function(Tt,mt,Ct){var xt=Tt.node(Ct).parent;Tt.edge(Ct,xt).cutvalue=z(Tt,mt,Ct)})(at,ot,zt)})}function z(at,ot,bt){var zt=at.node(bt).parent,Tt=!0,mt=ot.edge(bt,zt),Ct=0;return mt||(Tt=!1,mt=ot.edge(zt,bt)),Ct=mt.weight,m.forEach(ot.nodeEdges(bt),function(xt){var gt,et,ft=xt.v===bt,q=ft?xt.w:xt.v;if(q!==zt){var wt=ft===Tt,W=ot.edge(xt).weight;if(Ct+=wt?W:-W,gt=bt,et=q,at.hasEdge(gt,et)){var St=at.edge(bt,q).cutvalue;Ct+=wt?-St:St}}}),Ct}function H(at,ot){arguments.length<2&&(ot=at.nodes()[0]),J(at,{},1,ot)}function J(at,ot,bt,zt,Tt){var mt=bt,Ct=at.node(zt);return ot[zt]=!0,m.forEach(at.neighbors(zt),function(xt){m.has(ot,xt)||(bt=J(at,ot,bt,xt,zt))}),Ct.low=mt,Ct.lim=bt++,Tt?Ct.parent=Tt:delete Ct.parent,bt}function rt(at){return m.find(at.edges(),function(ot){return at.edge(ot).cutvalue<0})}function dt(at,ot,bt){var zt=bt.v,Tt=bt.w;ot.hasEdge(zt,Tt)||(zt=bt.w,Tt=bt.v);var mt=at.node(zt),Ct=at.node(Tt),xt=mt,gt=!1;mt.lim>Ct.lim&&(xt=Ct,gt=!0);var et=m.filter(ot.edges(),function(ft){return gt===_t(0,at.node(ft.v),xt)&&gt!==_t(0,at.node(ft.w),xt)});return m.minBy(et,function(ft){return v(ot,ft)})}function K(at,ot,bt,zt){var Tt=bt.v,mt=bt.w;at.removeEdge(Tt,mt),at.setEdge(zt.v,zt.w,{}),H(at),B(at,ot),function(Ct,xt){var gt=m.find(Ct.nodes(),function(ft){return!xt.node(ft).parent}),et=S(Ct,gt);et=et.slice(1),m.forEach(et,function(ft){var q=Ct.node(ft).parent,wt=xt.edge(ft,q),W=!1;wt||(wt=xt.edge(q,ft),W=!0),xt.node(ft).rank=xt.node(q).rank+(W?wt.minlen:-wt.minlen)})}(at,ot)}function _t(at,ot,bt){return bt.low<=ot.lim&&ot.lim<=bt.lim}d.exports=D,D.initLowLimValues=H,D.initCutValues=B,D.calcCutValue=z,D.leaveEdge=rt,D.enterEdge=dt,D.exchangeEdges=K},6681:(d,b,h)=>{var m=h(8436);d.exports={longestPath:function(f){var v={};m.forEach(f.sources(),function _(S){var M=f.node(S);if(m.has(v,S))return M.rank;v[S]=!0;var E=m.min(m.map(f.outEdges(S),function(D){return _(D.w)-f.edge(D).minlen}));return E!==Number.POSITIVE_INFINITY&&E!=null||(E=0),M.rank=E})},slack:function(f,v){return f.node(v.w).rank-f.node(v.v).rank-f.edge(v).minlen}}},1138:(d,b,h)=>{var m=h(8436),f=h(574).Graph;function v(S,M,E,D){var B;do B=m.uniqueId(D);while(S.hasNode(B));return E.dummy=M,S.setNode(B,E),B}function _(S){return m.max(m.map(S.nodes(),function(M){var E=S.node(M).rank;if(!m.isUndefined(E))return E}))}d.exports={addDummyNode:v,simplify:function(S){var M=new f().setGraph(S.graph());return m.forEach(S.nodes(),function(E){M.setNode(E,S.node(E))}),m.forEach(S.edges(),function(E){var D=M.edge(E.v,E.w)||{weight:0,minlen:1},B=S.edge(E);M.setEdge(E.v,E.w,{weight:D.weight+B.weight,minlen:Math.max(D.minlen,B.minlen)})}),M},asNonCompoundGraph:function(S){var M=new f({multigraph:S.isMultigraph()}).setGraph(S.graph());return m.forEach(S.nodes(),function(E){S.children(E).length||M.setNode(E,S.node(E))}),m.forEach(S.edges(),function(E){M.setEdge(E,S.edge(E))}),M},successorWeights:function(S){var M=m.map(S.nodes(),function(E){var D={};return m.forEach(S.outEdges(E),function(B){D[B.w]=(D[B.w]||0)+S.edge(B).weight}),D});return m.zipObject(S.nodes(),M)},predecessorWeights:function(S){var M=m.map(S.nodes(),function(E){var D={};return m.forEach(S.inEdges(E),function(B){D[B.v]=(D[B.v]||0)+S.edge(B).weight}),D});return m.zipObject(S.nodes(),M)},intersectRect:function(S,M){var E,D,B=S.x,z=S.y,H=M.x-B,J=M.y-z,rt=S.width/2,dt=S.height/2;if(!H&&!J)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(J)*rt>Math.abs(H)*dt?(J<0&&(dt=-dt),E=dt*H/J,D=dt):(H<0&&(rt=-rt),E=rt,D=rt*J/H),{x:B+E,y:z+D}},buildLayerMatrix:function(S){var M=m.map(m.range(_(S)+1),function(){return[]});return m.forEach(S.nodes(),function(E){var D=S.node(E),B=D.rank;m.isUndefined(B)||(M[B][D.order]=E)}),M},normalizeRanks:function(S){var M=m.min(m.map(S.nodes(),function(E){return S.node(E).rank}));m.forEach(S.nodes(),function(E){var D=S.node(E);m.has(D,"rank")&&(D.rank-=M)})},removeEmptyRanks:function(S){var M=m.min(m.map(S.nodes(),function(z){return S.node(z).rank})),E=[];m.forEach(S.nodes(),function(z){var H=S.node(z).rank-M;E[H]||(E[H]=[]),E[H].push(z)});var D=0,B=S.graph().nodeRankFactor;m.forEach(E,function(z,H){m.isUndefined(z)&&H%B!=0?--D:D&&m.forEach(z,function(J){S.node(J).rank+=D})})},addBorderNode:function(S,M,E,D){var B={width:0,height:0};return arguments.length>=4&&(B.rank=E,B.order=D),v(S,"border",B,M)},maxRank:_,partition:function(S,M){var E={lhs:[],rhs:[]};return m.forEach(S,function(D){M(D)?E.lhs.push(D):E.rhs.push(D)}),E},time:function(S,M){var E=m.now();try{return M()}finally{console.log(S+" time: "+(m.now()-E)+"ms")}},notime:function(S,M){return M()}}},8177:d=>{d.exports="0.8.5"},7856:function(d){d.exports=function(){function b(st){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},b(st)}function h(st,Te){return h=Object.setPrototypeOf||function(ge,Pe){return ge.__proto__=Pe,ge},h(st,Te)}function m(){if(typeof Reflect>"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 f(st,Te,ge){return f=m()?Reflect.construct:function(Pe,ar,Ze){var lr=[null];lr.push.apply(lr,ar);var Ne=new(Function.bind.apply(Pe,lr));return Ze&&h(Ne,Ze.prototype),Ne},f.apply(null,arguments)}function v(st){return function(Te){if(Array.isArray(Te))return _(Te)}(st)||function(Te){if(typeof Symbol<"u"&&Te[Symbol.iterator]!=null||Te["@@iterator"]!=null)return Array.from(Te)}(st)||function(Te,ge){if(Te){if(typeof Te=="string")return _(Te,ge);var Pe=Object.prototype.toString.call(Te).slice(8,-1);return Pe==="Object"&&Te.constructor&&(Pe=Te.constructor.name),Pe==="Map"||Pe==="Set"?Array.from(Te):Pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pe)?_(Te,ge):void 0}}(st)||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.`)}()}function _(st,Te){(Te==null||Te>st.length)&&(Te=st.length);for(var ge=0,Pe=new Array(Te);ge<Te;ge++)Pe[ge]=st[ge];return Pe}var S=Object.hasOwnProperty,M=Object.setPrototypeOf,E=Object.isFrozen,D=Object.getPrototypeOf,B=Object.getOwnPropertyDescriptor,z=Object.freeze,H=Object.seal,J=Object.create,rt=typeof Reflect<"u"&&Reflect,dt=rt.apply,K=rt.construct;dt||(dt=function(st,Te,ge){return st.apply(Te,ge)}),z||(z=function(st){return st}),H||(H=function(st){return st}),K||(K=function(st,Te){return f(st,v(Te))});var _t,at=ft(Array.prototype.forEach),ot=ft(Array.prototype.pop),bt=ft(Array.prototype.push),zt=ft(String.prototype.toLowerCase),Tt=ft(String.prototype.match),mt=ft(String.prototype.replace),Ct=ft(String.prototype.indexOf),xt=ft(String.prototype.trim),gt=ft(RegExp.prototype.test),et=(_t=TypeError,function(){for(var st=arguments.length,Te=new Array(st),ge=0;ge<st;ge++)Te[ge]=arguments[ge];return K(_t,Te)});function ft(st){return function(Te){for(var ge=arguments.length,Pe=new Array(ge>1?ge-1:0),ar=1;ar<ge;ar++)Pe[ar-1]=arguments[ar];return dt(st,Te,Pe)}}function q(st,Te,ge){ge=ge||zt,M&&M(st,null);for(var Pe=Te.length;Pe--;){var ar=Te[Pe];if(typeof ar=="string"){var Ze=ge(ar);Ze!==ar&&(E(Te)||(Te[Pe]=Ze),ar=Ze)}st[ar]=!0}return st}function wt(st){var Te,ge=J(null);for(Te in st)dt(S,st,[Te])&&(ge[Te]=st[Te]);return ge}function W(st,Te){for(;st!==null;){var ge=B(st,Te);if(ge){if(ge.get)return ft(ge.get);if(typeof ge.value=="function")return ft(ge.value)}st=D(st)}return function(Pe){return console.warn("fallback value for",Pe),null}}var St=z(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Lt=z(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Wt=z(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ye=z(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ve=z(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),ke=z(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fe=z(["#text"]),xe=z(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Me=z(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Oe=z(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ve=z(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Sr=H(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_e=H(/<%[\w\W]*|[\w\W]*%>/gm),Je=H(/^data-[\-\w.\u00B7-\uFFFF]/),Dt=H(/^aria-[\-\w]+$/),he=H(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),re=H(/^(?:\w+script|data):/i),At=H(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ee=H(/^html$/i),Q=function(){return typeof window>"u"?null:window},ce=function(st,Te){if(b(st)!=="object"||typeof st.createPolicy!="function")return null;var ge=null,Pe="data-tt-policy-suffix";Te.currentScript&&Te.currentScript.hasAttribute(Pe)&&(ge=Te.currentScript.getAttribute(Pe));var ar="dompurify"+(ge?"#"+ge:"");try{return st.createPolicy(ar,{createHTML:function(Ze){return Ze},createScriptURL:function(Ze){return Ze}})}catch{return console.warn("TrustedTypes policy "+ar+" could not be created."),null}};return function st(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q(),ge=function(Jt){return st(Jt)};if(ge.version="2.3.10",ge.removed=[],!Te||!Te.document||Te.document.nodeType!==9)return ge.isSupported=!1,ge;var Pe=Te.document,ar=Te.document,Ze=Te.DocumentFragment,lr=Te.HTMLTemplateElement,Ne=Te.Node,Re=Te.Element,ze=Te.NodeFilter,Fe=Te.NamedNodeMap,be=Fe===void 0?Te.NamedNodeMap||Te.MozNamedAttrMap:Fe,ae=Te.HTMLFormElement,br=Te.DOMParser,qe=Te.trustedTypes,sr=Re.prototype,$e=W(sr,"cloneNode"),Er=W(sr,"nextSibling"),Jr=W(sr,"childNodes"),Nr=W(sr,"parentNode");if(typeof lr=="function"){var Br=ar.createElement("template");Br.content&&Br.content.ownerDocument&&(ar=Br.content.ownerDocument)}var Ie=ce(qe,Pe),Qe=Ie?Ie.createHTML(""):"",rr=ar,Se=rr.implementation,Ar=rr.createNodeIterator,Rt=rr.createDocumentFragment,vn=rr.getElementsByTagName,Gt=Pe.importNode,qr={};try{qr=wt(ar).documentMode?ar.documentMode:{}}catch{}var Yr={};ge.isSupported=typeof Nr=="function"&&Se&&Se.createHTMLDocument!==void 0&&qr!==9;var Gr,Dr,Vr=Sr,zr=_e,Ir=Je,Ur=Dt,jr=re,$r=At,ga=he,Mn=null,An=q({},[].concat(v(St),v(Lt),v(Wt),v(Ve),v(fe))),Lr=null,ui=q({},[].concat(v(xe),v(Me),v(Oe),v(ve))),Fr=Object.seal(Object.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}})),xn=null,Nn=null,bn=!0,Xn=!0,Bt=!1,In=!1,On=!1,Zr=!1,ei=!1,Hn=!1,Bn=!1,ri=!1,Ca=!0,dn=!0,Si=!1,Ri={},Ai=null,dr=q({},["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"]),yr=null,Xr=q({},["audio","video","img","source","image","track"]),nr=null,ln=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zt="http://www.w3.org/1998/Math/MathML",Un="http://www.w3.org/2000/svg",te="http://www.w3.org/1999/xhtml",wn=te,oi=!1,hi=["application/xhtml+xml","text/html"],Na="text/html",Bi=null,wr=ar.createElement("form"),Yn=function(Jt){return Jt instanceof RegExp||Jt instanceof Function},Rr=function(Jt){Bi&&Bi===Jt||(Jt&&b(Jt)==="object"||(Jt={}),Jt=wt(Jt),Gr=Gr=hi.indexOf(Jt.PARSER_MEDIA_TYPE)===-1?Na:Jt.PARSER_MEDIA_TYPE,Dr=Gr==="application/xhtml+xml"?function(kr){return kr}:zt,Mn="ALLOWED_TAGS"in Jt?q({},Jt.ALLOWED_TAGS,Dr):An,Lr="ALLOWED_ATTR"in Jt?q({},Jt.ALLOWED_ATTR,Dr):ui,nr="ADD_URI_SAFE_ATTR"in Jt?q(wt(ln),Jt.ADD_URI_SAFE_ATTR,Dr):ln,yr="ADD_DATA_URI_TAGS"in Jt?q(wt(Xr),Jt.ADD_DATA_URI_TAGS,Dr):Xr,Ai="FORBID_CONTENTS"in Jt?q({},Jt.FORBID_CONTENTS,Dr):dr,xn="FORBID_TAGS"in Jt?q({},Jt.FORBID_TAGS,Dr):{},Nn="FORBID_ATTR"in Jt?q({},Jt.FORBID_ATTR,Dr):{},Ri="USE_PROFILES"in Jt&&Jt.USE_PROFILES,bn=Jt.ALLOW_ARIA_ATTR!==!1,Xn=Jt.ALLOW_DATA_ATTR!==!1,Bt=Jt.ALLOW_UNKNOWN_PROTOCOLS||!1,In=Jt.SAFE_FOR_TEMPLATES||!1,On=Jt.WHOLE_DOCUMENT||!1,Hn=Jt.RETURN_DOM||!1,Bn=Jt.RETURN_DOM_FRAGMENT||!1,ri=Jt.RETURN_TRUSTED_TYPE||!1,ei=Jt.FORCE_BODY||!1,Ca=Jt.SANITIZE_DOM!==!1,dn=Jt.KEEP_CONTENT!==!1,Si=Jt.IN_PLACE||!1,ga=Jt.ALLOWED_URI_REGEXP||ga,wn=Jt.NAMESPACE||te,Jt.CUSTOM_ELEMENT_HANDLING&&Yn(Jt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Fr.tagNameCheck=Jt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Jt.CUSTOM_ELEMENT_HANDLING&&Yn(Jt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Fr.attributeNameCheck=Jt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Jt.CUSTOM_ELEMENT_HANDLING&&typeof Jt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Fr.allowCustomizedBuiltInElements=Jt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),In&&(Xn=!1),Bn&&(Hn=!0),Ri&&(Mn=q({},v(fe)),Lr=[],Ri.html===!0&&(q(Mn,St),q(Lr,xe)),Ri.svg===!0&&(q(Mn,Lt),q(Lr,Me),q(Lr,ve)),Ri.svgFilters===!0&&(q(Mn,Wt),q(Lr,Me),q(Lr,ve)),Ri.mathMl===!0&&(q(Mn,Ve),q(Lr,Oe),q(Lr,ve))),Jt.ADD_TAGS&&(Mn===An&&(Mn=wt(Mn)),q(Mn,Jt.ADD_TAGS,Dr)),Jt.ADD_ATTR&&(Lr===ui&&(Lr=wt(Lr)),q(Lr,Jt.ADD_ATTR,Dr)),Jt.ADD_URI_SAFE_ATTR&&q(nr,Jt.ADD_URI_SAFE_ATTR,Dr),Jt.FORBID_CONTENTS&&(Ai===dr&&(Ai=wt(Ai)),q(Ai,Jt.FORBID_CONTENTS,Dr)),dn&&(Mn["#text"]=!0),On&&q(Mn,["html","head","body"]),Mn.table&&(q(Mn,["tbody"]),delete xn.tbody),z&&z(Jt),Bi=Jt)},ya=q({},["mi","mo","mn","ms","mtext"]),Fn=q({},["foreignobject","desc","title","annotation-xml"]),Fi=q({},["title","style","font","a","script"]),jn=q({},Lt);q(jn,Wt),q(jn,ye);var yn=q({},Ve);q(yn,ke);var wi=function(Jt){var kr=Nr(Jt);kr&&kr.tagName||(kr={namespaceURI:te,tagName:"template"});var or=zt(Jt.tagName),an=zt(kr.tagName);return Jt.namespaceURI===Un?kr.namespaceURI===te?or==="svg":kr.namespaceURI===Zt?or==="svg"&&(an==="annotation-xml"||ya[an]):Boolean(jn[or]):Jt.namespaceURI===Zt?kr.namespaceURI===te?or==="math":kr.namespaceURI===Un?or==="math"&&Fn[an]:Boolean(yn[or]):Jt.namespaceURI===te&&!(kr.namespaceURI===Un&&!Fn[an])&&!(kr.namespaceURI===Zt&&!ya[an])&&!yn[or]&&(Fi[or]||!jn[or])},qn=function(Jt){bt(ge.removed,{element:Jt});try{Jt.parentNode.removeChild(Jt)}catch{try{Jt.outerHTML=Qe}catch{Jt.remove()}}},ni=function(Jt,kr){try{bt(ge.removed,{attribute:kr.getAttributeNode(Jt),from:kr})}catch{bt(ge.removed,{attribute:null,from:kr})}if(kr.removeAttribute(Jt),Jt==="is"&&!Lr[Jt])if(Hn||Bn)try{qn(kr)}catch{}else try{kr.setAttribute(Jt,"")}catch{}},Ji=function(Jt){var kr,or;if(ei)Jt="<remove></remove>"+Jt;else{var an=Tt(Jt,/^[\r\n\t ]+/);or=an&&an[0]}Gr==="application/xhtml+xml"&&(Jt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Jt+"</body></html>");var $n=Ie?Ie.createHTML(Jt):Jt;if(wn===te)try{kr=new br().parseFromString($n,Gr)}catch{}if(!kr||!kr.documentElement){kr=Se.createDocument(wn,"template",null);try{kr.documentElement.innerHTML=oi?"":$n}catch{}}var pi=kr.body||kr.documentElement;return Jt&&or&&pi.insertBefore(ar.createTextNode(or),pi.childNodes[0]||null),wn===te?vn.call(kr,On?"html":"body")[0]:On?kr.documentElement:pi},Ci=function(Jt){return Ar.call(Jt.ownerDocument||Jt,Jt,ze.SHOW_ELEMENT|ze.SHOW_COMMENT|ze.SHOW_TEXT,null,!1)},ii=function(Jt){return Jt instanceof ae&&(typeof Jt.nodeName!="string"||typeof Jt.textContent!="string"||typeof Jt.removeChild!="function"||!(Jt.attributes instanceof be)||typeof Jt.removeAttribute!="function"||typeof Jt.setAttribute!="function"||typeof Jt.namespaceURI!="string"||typeof Jt.insertBefore!="function")},ma=function(Jt){return b(Ne)==="object"?Jt instanceof Ne:Jt&&b(Jt)==="object"&&typeof Jt.nodeType=="number"&&typeof Jt.nodeName=="string"},Wn=function(Jt,kr,or){Yr[Jt]&&at(Yr[Jt],function(an){an.call(ge,kr,or,Bi)})},Kn=function(Jt){var kr;if(Wn("beforeSanitizeElements",Jt,null),ii(Jt)||gt(/[\u0080-\uFFFF]/,Jt.nodeName))return qn(Jt),!0;var or=Dr(Jt.nodeName);if(Wn("uponSanitizeElement",Jt,{tagName:or,allowedTags:Mn}),Jt.hasChildNodes()&&!ma(Jt.firstElementChild)&&(!ma(Jt.content)||!ma(Jt.content.firstElementChild))&&gt(/<[/\w]/g,Jt.innerHTML)&&gt(/<[/\w]/g,Jt.textContent)||or==="select"&&gt(/<template/i,Jt.innerHTML))return qn(Jt),!0;if(!Mn[or]||xn[or]){if(!xn[or]&&Pi(or)&&(Fr.tagNameCheck instanceof RegExp&&gt(Fr.tagNameCheck,or)||Fr.tagNameCheck instanceof Function&&Fr.tagNameCheck(or)))return!1;if(dn&&!Ai[or]){var an=Nr(Jt)||Jt.parentNode,$n=Jr(Jt)||Jt.childNodes;if($n&&an)for(var pi=$n.length-1;pi>=0;--pi)an.insertBefore($e($n[pi],!0),Er(Jt))}return qn(Jt),!0}return Jt instanceof Re&&!wi(Jt)?(qn(Jt),!0):or!=="noscript"&&or!=="noembed"||!gt(/<\/no(script|embed)/i,Jt.innerHTML)?(In&&Jt.nodeType===3&&(kr=Jt.textContent,kr=mt(kr,Vr," "),kr=mt(kr,zr," "),Jt.textContent!==kr&&(bt(ge.removed,{element:Jt.cloneNode()}),Jt.textContent=kr)),Wn("afterSanitizeElements",Jt,null),!1):(qn(Jt),!0)},si=function(Jt,kr,or){if(Ca&&(kr==="id"||kr==="name")&&(or in ar||or in wr))return!1;if(!(Xn&&!Nn[kr]&&gt(Ir,kr))){if(!(bn&&gt(Ur,kr))){if(!Lr[kr]||Nn[kr]){if(!(Pi(Jt)&&(Fr.tagNameCheck instanceof RegExp&&gt(Fr.tagNameCheck,Jt)||Fr.tagNameCheck instanceof Function&&Fr.tagNameCheck(Jt))&&(Fr.attributeNameCheck instanceof RegExp&&gt(Fr.attributeNameCheck,kr)||Fr.attributeNameCheck instanceof Function&&Fr.attributeNameCheck(kr))||kr==="is"&&Fr.allowCustomizedBuiltInElements&&(Fr.tagNameCheck instanceof RegExp&&gt(Fr.tagNameCheck,or)||Fr.tagNameCheck instanceof Function&&Fr.tagNameCheck(or))))return!1}else if(!nr[kr]){if(!gt(ga,mt(or,$r,""))){if((kr!=="src"&&kr!=="xlink:href"&&kr!=="href"||Jt==="script"||Ct(or,"data:")!==0||!yr[Jt])&&!(Bt&&!gt(jr,mt(or,$r,"")))){if(or)return!1}}}}}return!0},Pi=function(Jt){return Jt.indexOf("-")>0},Co=function(Jt){var kr,or,an,$n;Wn("beforeSanitizeAttributes",Jt,null);var pi=Jt.attributes;if(pi){var Jn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Lr};for($n=pi.length;$n--;){var Hi=kr=pi[$n],Qi=Hi.name,di=Hi.namespaceURI;if(or=Qi==="value"?kr.value:xt(kr.value),an=Dr(Qi),Jn.attrName=an,Jn.attrValue=or,Jn.keepAttr=!0,Jn.forceKeepAttr=void 0,Wn("uponSanitizeAttribute",Jt,Jn),or=Jn.attrValue,!Jn.forceKeepAttr&&(ni(Qi,Jt),Jn.keepAttr))if(gt(/\/>/i,or))ni(Qi,Jt);else{In&&(or=mt(or,Vr," "),or=mt(or,zr," "));var Ka=Dr(Jt.nodeName);if(si(Ka,an,or)){if(Ie&&b(qe)==="object"&&typeof qe.getAttributeType=="function"&&!di)switch(qe.getAttributeType(Ka,an)){case"TrustedHTML":or=Ie.createHTML(or);break;case"TrustedScriptURL":or=Ie.createScriptURL(or)}try{di?Jt.setAttributeNS(di,Qi,or):Jt.setAttribute(Qi,or),ot(ge.removed)}catch{}}}}Wn("afterSanitizeAttributes",Jt,null)}},$i=function Jt(kr){var or,an=Ci(kr);for(Wn("beforeSanitizeShadowDOM",kr,null);or=an.nextNode();)Wn("uponSanitizeShadowNode",or,null),Kn(or)||(or.content instanceof Ze&&Jt(or.content),Co(or));Wn("afterSanitizeShadowDOM",kr,null)};return ge.sanitize=function(Jt,kr){var or,an,$n,pi,Jn;if((oi=!Jt)&&(Jt="<!-->"),typeof Jt!="string"&&!ma(Jt)){if(typeof Jt.toString!="function")throw et("toString is not a function");if(typeof(Jt=Jt.toString())!="string")throw et("dirty is not a string, aborting")}if(!ge.isSupported){if(b(Te.toStaticHTML)==="object"||typeof Te.toStaticHTML=="function"){if(typeof Jt=="string")return Te.toStaticHTML(Jt);if(ma(Jt))return Te.toStaticHTML(Jt.outerHTML)}return Jt}if(Zr||Rr(kr),ge.removed=[],typeof Jt=="string"&&(Si=!1),Si){if(Jt.nodeName){var Hi=Dr(Jt.nodeName);if(!Mn[Hi]||xn[Hi])throw et("root node is forbidden and cannot be sanitized in-place")}}else if(Jt instanceof Ne)(an=(or=Ji("<!---->")).ownerDocument.importNode(Jt,!0)).nodeType===1&&an.nodeName==="BODY"||an.nodeName==="HTML"?or=an:or.appendChild(an);else{if(!Hn&&!In&&!On&&Jt.indexOf("<")===-1)return Ie&&ri?Ie.createHTML(Jt):Jt;if(!(or=Ji(Jt)))return Hn?null:ri?Qe:""}or&&ei&&qn(or.firstChild);for(var Qi=Ci(Si?Jt:or);$n=Qi.nextNode();)$n.nodeType===3&&$n===pi||Kn($n)||($n.content instanceof Ze&&$i($n.content),Co($n),pi=$n);if(pi=null,Si)return Jt;if(Hn){if(Bn)for(Jn=Rt.call(or.ownerDocument);or.firstChild;)Jn.appendChild(or.firstChild);else Jn=or;return Lr.shadowroot&&(Jn=Gt.call(Pe,Jn,!0)),Jn}var di=On?or.outerHTML:or.innerHTML;return On&&Mn["!doctype"]&&or.ownerDocument&&or.ownerDocument.doctype&&or.ownerDocument.doctype.name&&gt(Ee,or.ownerDocument.doctype.name)&&(di="<!DOCTYPE "+or.ownerDocument.doctype.name+`>
`+di),In&&(di=mt(di,Vr," "),di=mt(di,zr," ")),Ie&&ri?Ie.createHTML(di):di},ge.setConfig=function(Jt){Rr(Jt),Zr=!0},ge.clearConfig=function(){Bi=null,Zr=!1},ge.isValidAttribute=function(Jt,kr,or){Bi||Rr({});var an=Dr(Jt),$n=Dr(kr);return si(an,$n,or)},ge.addHook=function(Jt,kr){typeof kr=="function"&&(Yr[Jt]=Yr[Jt]||[],bt(Yr[Jt],kr))},ge.removeHook=function(Jt){if(Yr[Jt])return ot(Yr[Jt])},ge.removeHooks=function(Jt){Yr[Jt]&&(Yr[Jt]=[])},ge.removeAllHooks=function(){Yr={}},ge}()}()},8282:(d,b,h)=>{var m=h(2354);d.exports={Graph:m.Graph,json:h(8974),alg:h(2440),version:m.version}},2842:(d,b,h)=>{var m=h(9126);d.exports=function(f){var v,_={},S=[];function M(E){m.has(_,E)||(_[E]=!0,v.push(E),m.each(f.successors(E),M),m.each(f.predecessors(E),M))}return m.each(f.nodes(),function(E){v=[],M(E),v.length&&S.push(v)}),S}},3984:(d,b,h)=>{var m=h(9126);function f(v,_,S,M,E,D){m.has(M,_)||(M[_]=!0,S||D.push(_),m.each(E(_),function(B){f(v,B,S,M,E,D)}),S&&D.push(_))}d.exports=function(v,_,S){m.isArray(_)||(_=[_]);var M=(v.isDirected()?v.successors:v.neighbors).bind(v),E=[],D={};return m.each(_,function(B){if(!v.hasNode(B))throw new Error("Graph does not have node: "+B);f(v,B,S==="post",D,M,E)}),E}},4847:(d,b,h)=>{var m=h(3763),f=h(9126);d.exports=function(v,_,S){return f.transform(v.nodes(),function(M,E){M[E]=m(v,E,_,S)},{})}},3763:(d,b,h)=>{var m=h(9126),f=h(9675);d.exports=function(_,S,M,E){return function(D,B,z,H){var J,rt,dt={},K=new f,_t=function(at){var ot=at.v!==J?at.v:at.w,bt=dt[ot],zt=z(at),Tt=rt.distance+zt;if(zt<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+at+" Weight: "+zt);Tt<bt.distance&&(bt.distance=Tt,bt.predecessor=J,K.decrease(ot,Tt))};for(D.nodes().forEach(function(at){var ot=at===B?0:Number.POSITIVE_INFINITY;dt[at]={distance:ot},K.add(at,ot)});K.size()>0&&(J=K.removeMin(),(rt=dt[J]).distance!==Number.POSITIVE_INFINITY);)H(J).forEach(_t);return dt}(_,String(S),M||v,E||function(D){return _.outEdges(D)})};var v=m.constant(1)},9096:(d,b,h)=>{var m=h(9126),f=h(5023);d.exports=function(v){return m.filter(f(v),function(_){return _.length>1||_.length===1&&v.hasEdge(_[0],_[0])})}},8924:(d,b,h)=>{var m=h(9126);d.exports=function(v,_,S){return function(M,E,D){var B={},z=M.nodes();return z.forEach(function(H){B[H]={},B[H][H]={distance:0},z.forEach(function(J){H!==J&&(B[H][J]={distance:Number.POSITIVE_INFINITY})}),D(H).forEach(function(J){var rt=J.v===H?J.w:J.v,dt=E(J);B[H][rt]={distance:dt,predecessor:H}})}),z.forEach(function(H){var J=B[H];z.forEach(function(rt){var dt=B[rt];z.forEach(function(K){var _t=dt[H],at=J[K],ot=dt[K],bt=_t.distance+at.distance;bt<ot.distance&&(ot.distance=bt,ot.predecessor=at.predecessor)})})}),B}(v,_||f,S||function(M){return v.outEdges(M)})};var f=m.constant(1)},2440:(d,b,h)=>{d.exports={components:h(2842),dijkstra:h(3763),dijkstraAll:h(4847),findCycles:h(9096),floydWarshall:h(8924),isAcyclic:h(2707),postorder:h(8828),preorder:h(2648),prim:h(514),tarjan:h(5023),topsort:h(2166)}},2707:(d,b,h)=>{var m=h(2166);d.exports=function(f){try{m(f)}catch(v){if(v instanceof m.CycleException)return!1;throw v}return!0}},8828:(d,b,h)=>{var m=h(3984);d.exports=function(f,v){return m(f,v,"post")}},2648:(d,b,h)=>{var m=h(3984);d.exports=function(f,v){return m(f,v,"pre")}},514:(d,b,h)=>{var m=h(9126),f=h(771),v=h(9675);d.exports=function(_,S){var M,E=new f,D={},B=new v;function z(J){var rt=J.v===M?J.w:J.v,dt=B.priority(rt);if(dt!==void 0){var K=S(J);K<dt&&(D[rt]=M,B.decrease(rt,K))}}if(_.nodeCount()===0)return E;m.each(_.nodes(),function(J){B.add(J,Number.POSITIVE_INFINITY),E.setNode(J)}),B.decrease(_.nodes()[0],0);for(var H=!1;B.size()>0;){if(M=B.removeMin(),m.has(D,M))E.setEdge(M,D[M]);else{if(H)throw new Error("Input graph is not connected: "+_);H=!0}_.nodeEdges(M).forEach(z)}return E}},5023:(d,b,h)=>{var m=h(9126);d.exports=function(f){var v=0,_=[],S={},M=[];function E(D){var B=S[D]={onStack:!0,lowlink:v,index:v++};if(_.push(D),f.successors(D).forEach(function(J){m.has(S,J)?S[J].onStack&&(B.lowlink=Math.min(B.lowlink,S[J].index)):(E(J),B.lowlink=Math.min(B.lowlink,S[J].lowlink))}),B.lowlink===B.index){var z,H=[];do z=_.pop(),S[z].onStack=!1,H.push(z);while(D!==z);M.push(H)}}return f.nodes().forEach(function(D){m.has(S,D)||E(D)}),M}},2166:(d,b,h)=>{var m=h(9126);function f(_){var S={},M={},E=[];if(m.each(_.sinks(),function D(B){if(m.has(M,B))throw new v;m.has(S,B)||(M[B]=!0,S[B]=!0,m.each(_.predecessors(B),D),delete M[B],E.push(B))}),m.size(S)!==_.nodeCount())throw new v;return E}function v(){}d.exports=f,f.CycleException=v,v.prototype=new Error},9675:(d,b,h)=>{var m=h(9126);function f(){this._arr=[],this._keyIndices={}}d.exports=f,f.prototype.size=function(){return this._arr.length},f.prototype.keys=function(){return this._arr.map(function(v){return v.key})},f.prototype.has=function(v){return m.has(this._keyIndices,v)},f.prototype.priority=function(v){var _=this._keyIndices[v];if(_!==void 0)return this._arr[_].priority},f.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},f.prototype.add=function(v,_){var S=this._keyIndices;if(v=String(v),!m.has(S,v)){var M=this._arr,E=M.length;return S[v]=E,M.push({key:v,priority:_}),this._decrease(E),!0}return!1},f.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var v=this._arr.pop();return delete this._keyIndices[v.key],this._heapify(0),v.key},f.prototype.decrease=function(v,_){var S=this._keyIndices[v];if(_>this._arr[S].priority)throw new Error("New priority is greater than current priority. Key: "+v+" Old: "+this._arr[S].priority+" New: "+_);this._arr[S].priority=_,this._decrease(S)},f.prototype._heapify=function(v){var _=this._arr,S=2*v,M=S+1,E=v;S<_.length&&(E=_[S].priority<_[E].priority?S:E,M<_.length&&(E=_[M].priority<_[E].priority?M:E),E!==v&&(this._swap(v,E),this._heapify(E)))},f.prototype._decrease=function(v){for(var _,S=this._arr,M=S[v].priority;v!==0&&!(S[_=v>>1].priority<M);)this._swap(v,_),v=_},f.prototype._swap=function(v,_){var S=this._arr,M=this._keyIndices,E=S[v],D=S[_];S[v]=D,S[_]=E,M[D.key]=v,M[E.key]=_}},771:(d,b,h)=>{var m=h(9126);d.exports=v;var f="\0";function v(B){this._isDirected=!m.has(B,"directed")||B.directed,this._isMultigraph=!!m.has(B,"multigraph")&&B.multigraph,this._isCompound=!!m.has(B,"compound")&&B.compound,this._label=void 0,this._defaultNodeLabelFn=m.constant(void 0),this._defaultEdgeLabelFn=m.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function _(B,z){B[z]?B[z]++:B[z]=1}function S(B,z){--B[z]||delete B[z]}function M(B,z,H,J){var rt=""+z,dt=""+H;if(!B&&rt>dt){var K=rt;rt=dt,dt=K}return rt+""+dt+""+(m.isUndefined(J)?"\0":J)}function E(B,z,H,J){var rt=""+z,dt=""+H;if(!B&&rt>dt){var K=rt;rt=dt,dt=K}var _t={v:rt,w:dt};return J&&(_t.name=J),_t}function D(B,z){return M(B,z.v,z.w,z.name)}v.prototype._nodeCount=0,v.prototype._edgeCount=0,v.prototype.isDirected=function(){return this._isDirected},v.prototype.isMultigraph=function(){return this._isMultigraph},v.prototype.isCompound=function(){return this._isCompound},v.prototype.setGraph=function(B){return this._label=B,this},v.prototype.graph=function(){return this._label},v.prototype.setDefaultNodeLabel=function(B){return m.isFunction(B)||(B=m.constant(B)),this._defaultNodeLabelFn=B,this},v.prototype.nodeCount=function(){return this._nodeCount},v.prototype.nodes=function(){return m.keys(this._nodes)},v.prototype.sources=function(){var B=this;return m.filter(this.nodes(),function(z){return m.isEmpty(B._in[z])})},v.prototype.sinks=function(){var B=this;return m.filter(this.nodes(),function(z){return m.isEmpty(B._out[z])})},v.prototype.setNodes=function(B,z){var H=arguments,J=this;return m.each(B,function(rt){H.length>1?J.setNode(rt,z):J.setNode(rt)}),this},v.prototype.setNode=function(B,z){return m.has(this._nodes,B)?(arguments.length>1&&(this._nodes[B]=z),this):(this._nodes[B]=arguments.length>1?z:this._defaultNodeLabelFn(B),this._isCompound&&(this._parent[B]=f,this._children[B]={},this._children["\0"][B]=!0),this._in[B]={},this._preds[B]={},this._out[B]={},this._sucs[B]={},++this._nodeCount,this)},v.prototype.node=function(B){return this._nodes[B]},v.prototype.hasNode=function(B){return m.has(this._nodes,B)},v.prototype.removeNode=function(B){var z=this;if(m.has(this._nodes,B)){var H=function(J){z.removeEdge(z._edgeObjs[J])};delete this._nodes[B],this._isCompound&&(this._removeFromParentsChildList(B),delete this._parent[B],m.each(this.children(B),function(J){z.setParent(J)}),delete this._children[B]),m.each(m.keys(this._in[B]),H),delete this._in[B],delete this._preds[B],m.each(m.keys(this._out[B]),H),delete this._out[B],delete this._sucs[B],--this._nodeCount}return this},v.prototype.setParent=function(B,z){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(m.isUndefined(z))z=f;else{for(var H=z+="";!m.isUndefined(H);H=this.parent(H))if(H===B)throw new Error("Setting "+z+" as parent of "+B+" would create a cycle");this.setNode(z)}return this.setNode(B),this._removeFromParentsChildList(B),this._parent[B]=z,this._children[z][B]=!0,this},v.prototype._removeFromParentsChildList=function(B){delete this._children[this._parent[B]][B]},v.prototype.parent=function(B){if(this._isCompound){var z=this._parent[B];if(z!==f)return z}},v.prototype.children=function(B){if(m.isUndefined(B)&&(B=f),this._isCompound){var z=this._children[B];if(z)return m.keys(z)}else{if(B===f)return this.nodes();if(this.hasNode(B))return[]}},v.prototype.predecessors=function(B){var z=this._preds[B];if(z)return m.keys(z)},v.prototype.successors=function(B){var z=this._sucs[B];if(z)return m.keys(z)},v.prototype.neighbors=function(B){var z=this.predecessors(B);if(z)return m.union(z,this.successors(B))},v.prototype.isLeaf=function(B){return(this.isDirected()?this.successors(B):this.neighbors(B)).length===0},v.prototype.filterNodes=function(B){var z=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});z.setGraph(this.graph());var H=this;m.each(this._nodes,function(dt,K){B(K)&&z.setNode(K,dt)}),m.each(this._edgeObjs,function(dt){z.hasNode(dt.v)&&z.hasNode(dt.w)&&z.setEdge(dt,H.edge(dt))});var J={};function rt(dt){var K=H.parent(dt);return K===void 0||z.hasNode(K)?(J[dt]=K,K):K in J?J[K]:rt(K)}return this._isCompound&&m.each(z.nodes(),function(dt){z.setParent(dt,rt(dt))}),z},v.prototype.setDefaultEdgeLabel=function(B){return m.isFunction(B)||(B=m.constant(B)),this._defaultEdgeLabelFn=B,this},v.prototype.edgeCount=function(){return this._edgeCount},v.prototype.edges=function(){return m.values(this._edgeObjs)},v.prototype.setPath=function(B,z){var H=this,J=arguments;return m.reduce(B,function(rt,dt){return J.length>1?H.setEdge(rt,dt,z):H.setEdge(rt,dt),dt}),this},v.prototype.setEdge=function(){var B,z,H,J,rt=!1,dt=arguments[0];typeof dt=="object"&&dt!==null&&"v"in dt?(B=dt.v,z=dt.w,H=dt.name,arguments.length===2&&(J=arguments[1],rt=!0)):(B=dt,z=arguments[1],H=arguments[3],arguments.length>2&&(J=arguments[2],rt=!0)),B=""+B,z=""+z,m.isUndefined(H)||(H=""+H);var K=M(this._isDirected,B,z,H);if(m.has(this._edgeLabels,K))return rt&&(this._edgeLabels[K]=J),this;if(!m.isUndefined(H)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(B),this.setNode(z),this._edgeLabels[K]=rt?J:this._defaultEdgeLabelFn(B,z,H);var _t=E(this._isDirected,B,z,H);return B=_t.v,z=_t.w,Object.freeze(_t),this._edgeObjs[K]=_t,_(this._preds[z],B),_(this._sucs[B],z),this._in[z][K]=_t,this._out[B][K]=_t,this._edgeCount++,this},v.prototype.edge=function(B,z,H){var J=arguments.length===1?D(this._isDirected,arguments[0]):M(this._isDirected,B,z,H);return this._edgeLabels[J]},v.prototype.hasEdge=function(B,z,H){var J=arguments.length===1?D(this._isDirected,arguments[0]):M(this._isDirected,B,z,H);return m.has(this._edgeLabels,J)},v.prototype.removeEdge=function(B,z,H){var J=arguments.length===1?D(this._isDirected,arguments[0]):M(this._isDirected,B,z,H),rt=this._edgeObjs[J];return rt&&(B=rt.v,z=rt.w,delete this._edgeLabels[J],delete this._edgeObjs[J],S(this._preds[z],B),S(this._sucs[B],z),delete this._in[z][J],delete this._out[B][J],this._edgeCount--),this},v.prototype.inEdges=function(B,z){var H=this._in[B];if(H){var J=m.values(H);return z?m.filter(J,function(rt){return rt.v===z}):J}},v.prototype.outEdges=function(B,z){var H=this._out[B];if(H){var J=m.values(H);return z?m.filter(J,function(rt){return rt.w===z}):J}},v.prototype.nodeEdges=function(B,z){var H=this.inEdges(B,z);if(H)return H.concat(this.outEdges(B,z))}},2354:(d,b,h)=>{d.exports={Graph:h(771),version:h(9631)}},8974:(d,b,h)=>{var m=h(9126),f=h(771);function v(S){return m.map(S.nodes(),function(M){var E=S.node(M),D=S.parent(M),B={v:M};return m.isUndefined(E)||(B.value=E),m.isUndefined(D)||(B.parent=D),B})}function _(S){return m.map(S.edges(),function(M){var E=S.edge(M),D={v:M.v,w:M.w};return m.isUndefined(M.name)||(D.name=M.name),m.isUndefined(E)||(D.value=E),D})}d.exports={write:function(S){var M={options:{directed:S.isDirected(),multigraph:S.isMultigraph(),compound:S.isCompound()},nodes:v(S),edges:_(S)};return m.isUndefined(S.graph())||(M.value=m.clone(S.graph())),M},read:function(S){var M=new f(S.options).setGraph(S.value);return m.each(S.nodes,function(E){M.setNode(E.v,E.value),E.parent&&M.setParent(E.v,E.parent)}),m.each(S.edges,function(E){M.setEdge({v:E.v,w:E.w,name:E.name},E.value)}),M}}},9126:(d,b,h)=>{var m;try{m={clone:h(6678),constant:h(5703),each:h(6073),filter:h(3105),has:h(8721),isArray:h(1469),isEmpty:h(1609),isFunction:h(3560),isUndefined:h(2353),keys:h(3674),map:h(5161),reduce:h(4061),size:h(4238),transform:h(8718),union:h(3386),values:h(2628)}}catch{}m||(m=window._),d.exports=m},9631:d=>{d.exports="2.1.8"},8552:(d,b,h)=>{var m=h(852)(h(5639),"DataView");d.exports=m},1989:(d,b,h)=>{var m=h(1789),f=h(401),v=h(7667),_=h(1327),S=h(1866);function M(E){var D=-1,B=E==null?0:E.length;for(this.clear();++D<B;){var z=E[D];this.set(z[0],z[1])}}M.prototype.clear=m,M.prototype.delete=f,M.prototype.get=v,M.prototype.has=_,M.prototype.set=S,d.exports=M},8407:(d,b,h)=>{var m=h(7040),f=h(4125),v=h(2117),_=h(7518),S=h(4705);function M(E){var D=-1,B=E==null?0:E.length;for(this.clear();++D<B;){var z=E[D];this.set(z[0],z[1])}}M.prototype.clear=m,M.prototype.delete=f,M.prototype.get=v,M.prototype.has=_,M.prototype.set=S,d.exports=M},7071:(d,b,h)=>{var m=h(852)(h(5639),"Map");d.exports=m},3369:(d,b,h)=>{var m=h(4785),f=h(1285),v=h(6e3),_=h(9916),S=h(5265);function M(E){var D=-1,B=E==null?0:E.length;for(this.clear();++D<B;){var z=E[D];this.set(z[0],z[1])}}M.prototype.clear=m,M.prototype.delete=f,M.prototype.get=v,M.prototype.has=_,M.prototype.set=S,d.exports=M},3818:(d,b,h)=>{var m=h(852)(h(5639),"Promise");d.exports=m},8525:(d,b,h)=>{var m=h(852)(h(5639),"Set");d.exports=m},8668:(d,b,h)=>{var m=h(3369),f=h(619),v=h(2385);function _(S){var M=-1,E=S==null?0:S.length;for(this.__data__=new m;++M<E;)this.add(S[M])}_.prototype.add=_.prototype.push=f,_.prototype.has=v,d.exports=_},6384:(d,b,h)=>{var m=h(8407),f=h(7465),v=h(3779),_=h(7599),S=h(4758),M=h(4309);function E(D){var B=this.__data__=new m(D);this.size=B.size}E.prototype.clear=f,E.prototype.delete=v,E.prototype.get=_,E.prototype.has=S,E.prototype.set=M,d.exports=E},2705:(d,b,h)=>{var m=h(5639).Symbol;d.exports=m},1149:(d,b,h)=>{var m=h(5639).Uint8Array;d.exports=m},577:(d,b,h)=>{var m=h(852)(h(5639),"WeakMap");d.exports=m},6874:d=>{d.exports=function(b,h,m){switch(m.length){case 0:return b.call(h);case 1:return b.call(h,m[0]);case 2:return b.call(h,m[0],m[1]);case 3:return b.call(h,m[0],m[1],m[2])}return b.apply(h,m)}},7412:d=>{d.exports=function(b,h){for(var m=-1,f=b==null?0:b.length;++m<f&&h(b[m],m,b)!==!1;);return b}},4963:d=>{d.exports=function(b,h){for(var m=-1,f=b==null?0:b.length,v=0,_=[];++m<f;){var S=b[m];h(S,m,b)&&(_[v++]=S)}return _}},7443:(d,b,h)=>{var m=h(2118);d.exports=function(f,v){return!(f==null||!f.length)&&m(f,v,0)>-1}},1196:d=>{d.exports=function(b,h,m){for(var f=-1,v=b==null?0:b.length;++f<v;)if(m(h,b[f]))return!0;return!1}},4636:(d,b,h)=>{var m=h(2545),f=h(5694),v=h(1469),_=h(4144),S=h(5776),M=h(6719),E=Object.prototype.hasOwnProperty;d.exports=function(D,B){var z=v(D),H=!z&&f(D),J=!z&&!H&&_(D),rt=!z&&!H&&!J&&M(D),dt=z||H||J||rt,K=dt?m(D.length,String):[],_t=K.length;for(var at in D)!B&&!E.call(D,at)||dt&&(at=="length"||J&&(at=="offset"||at=="parent")||rt&&(at=="buffer"||at=="byteLength"||at=="byteOffset")||S(at,_t))||K.push(at);return K}},9932:d=>{d.exports=function(b,h){for(var m=-1,f=b==null?0:b.length,v=Array(f);++m<f;)v[m]=h(b[m],m,b);return v}},2488:d=>{d.exports=function(b,h){for(var m=-1,f=h.length,v=b.length;++m<f;)b[v+m]=h[m];return b}},2663:d=>{d.exports=function(b,h,m,f){var v=-1,_=b==null?0:b.length;for(f&&_&&(m=b[++v]);++v<_;)m=h(m,b[v],v,b);return m}},2908:d=>{d.exports=function(b,h){for(var m=-1,f=b==null?0:b.length;++m<f;)if(h(b[m],m,b))return!0;return!1}},8983:(d,b,h)=>{var m=h(371)("length");d.exports=m},6556:(d,b,h)=>{var m=h(9465),f=h(7813);d.exports=function(v,_,S){(S!==void 0&&!f(v[_],S)||S===void 0&&!(_ in v))&&m(v,_,S)}},4865:(d,b,h)=>{var m=h(9465),f=h(7813),v=Object.prototype.hasOwnProperty;d.exports=function(_,S,M){var E=_[S];v.call(_,S)&&f(E,M)&&(M!==void 0||S in _)||m(_,S,M)}},8470:(d,b,h)=>{var m=h(7813);d.exports=function(f,v){for(var _=f.length;_--;)if(m(f[_][0],v))return _;return-1}},4037:(d,b,h)=>{var m=h(8363),f=h(3674);d.exports=function(v,_){return v&&m(_,f(_),v)}},3886:(d,b,h)=>{var m=h(8363),f=h(1704);d.exports=function(v,_){return v&&m(_,f(_),v)}},9465:(d,b,h)=>{var m=h(8777);d.exports=function(f,v,_){v=="__proto__"&&m?m(f,v,{configurable:!0,enumerable:!0,value:_,writable:!0}):f[v]=_}},5990:(d,b,h)=>{var m=h(6384),f=h(7412),v=h(4865),_=h(4037),S=h(3886),M=h(4626),E=h(278),D=h(8805),B=h(1911),z=h(8234),H=h(6904),J=h(4160),rt=h(3824),dt=h(9148),K=h(8517),_t=h(1469),at=h(4144),ot=h(6688),bt=h(3218),zt=h(2928),Tt=h(3674),mt=h(1704),Ct="[object Arguments]",xt="[object Function]",gt="[object Object]",et={};et[Ct]=et["[object Array]"]=et["[object ArrayBuffer]"]=et["[object DataView]"]=et["[object Boolean]"]=et["[object Date]"]=et["[object Float32Array]"]=et["[object Float64Array]"]=et["[object Int8Array]"]=et["[object Int16Array]"]=et["[object Int32Array]"]=et["[object Map]"]=et["[object Number]"]=et[gt]=et["[object RegExp]"]=et["[object Set]"]=et["[object String]"]=et["[object Symbol]"]=et["[object Uint8Array]"]=et["[object Uint8ClampedArray]"]=et["[object Uint16Array]"]=et["[object Uint32Array]"]=!0,et["[object Error]"]=et[xt]=et["[object WeakMap]"]=!1,d.exports=function ft(q,wt,W,St,Lt,Wt){var ye,Ve=1&wt,ke=2&wt,fe=4&wt;if(W&&(ye=Lt?W(q,St,Lt,Wt):W(q)),ye!==void 0)return ye;if(!bt(q))return q;var xe=_t(q);if(xe){if(ye=rt(q),!Ve)return E(q,ye)}else{var Me=J(q),Oe=Me==xt||Me=="[object GeneratorFunction]";if(at(q))return M(q,Ve);if(Me==gt||Me==Ct||Oe&&!Lt){if(ye=ke||Oe?{}:K(q),!Ve)return ke?B(q,S(ye,q)):D(q,_(ye,q))}else{if(!et[Me])return Lt?q:{};ye=dt(q,Me,Ve)}}Wt||(Wt=new m);var ve=Wt.get(q);if(ve)return ve;Wt.set(q,ye),zt(q)?q.forEach(function(_e){ye.add(ft(_e,wt,W,_e,q,Wt))}):ot(q)&&q.forEach(function(_e,Je){ye.set(Je,ft(_e,wt,W,Je,q,Wt))});var Sr=xe?void 0:(fe?ke?H:z:ke?mt:Tt)(q);return f(Sr||q,function(_e,Je){Sr&&(_e=q[Je=_e]),v(ye,Je,ft(_e,wt,W,Je,q,Wt))}),ye}},3118:(d,b,h)=>{var m=h(3218),f=Object.create,v=function(){function _(){}return function(S){if(!m(S))return{};if(f)return f(S);_.prototype=S;var M=new _;return _.prototype=void 0,M}}();d.exports=v},9881:(d,b,h)=>{var m=h(7816),f=h(9291)(m);d.exports=f},6029:(d,b,h)=>{var m=h(3448);d.exports=function(f,v,_){for(var S=-1,M=f.length;++S<M;){var E=f[S],D=v(E);if(D!=null&&(B===void 0?D==D&&!m(D):_(D,B)))var B=D,z=E}return z}},760:(d,b,h)=>{var m=h(9881);d.exports=function(f,v){var _=[];return m(f,function(S,M,E){v(S,M,E)&&_.push(S)}),_}},1848:d=>{d.exports=function(b,h,m,f){for(var v=b.length,_=m+(f?1:-1);f?_--:++_<v;)if(h(b[_],_,b))return _;return-1}},1078:(d,b,h)=>{var m=h(2488),f=h(7285);d.exports=function v(_,S,M,E,D){var B=-1,z=_.length;for(M||(M=f),D||(D=[]);++B<z;){var H=_[B];S>0&&M(H)?S>1?v(H,S-1,M,E,D):m(D,H):E||(D[D.length]=H)}return D}},8483:(d,b,h)=>{var m=h(5063)();d.exports=m},7816:(d,b,h)=>{var m=h(8483),f=h(3674);d.exports=function(v,_){return v&&m(v,_,f)}},7786:(d,b,h)=>{var m=h(1811),f=h(327);d.exports=function(v,_){for(var S=0,M=(_=m(_,v)).length;v!=null&&S<M;)v=v[f(_[S++])];return S&&S==M?v:void 0}},8866:(d,b,h)=>{var m=h(2488),f=h(1469);d.exports=function(v,_,S){var M=_(v);return f(v)?M:m(M,S(v))}},4239:(d,b,h)=>{var m=h(2705),f=h(9607),v=h(2333),_=m?m.toStringTag:void 0;d.exports=function(S){return S==null?S===void 0?"[object Undefined]":"[object Null]":_&&_ in Object(S)?f(S):v(S)}},3325:d=>{d.exports=function(b,h){return b>h}},8565:d=>{var b=Object.prototype.hasOwnProperty;d.exports=function(h,m){return h!=null&&b.call(h,m)}},13:d=>{d.exports=function(b,h){return b!=null&&h in Object(b)}},2118:(d,b,h)=>{var m=h(1848),f=h(2722),v=h(2351);d.exports=function(_,S,M){return S==S?v(_,S,M):m(_,f,M)}},9454:(d,b,h)=>{var m=h(4239),f=h(7005);d.exports=function(v){return f(v)&&m(v)=="[object Arguments]"}},939:(d,b,h)=>{var m=h(2492),f=h(7005);d.exports=function v(_,S,M,E,D){return _===S||(_==null||S==null||!f(_)&&!f(S)?_!=_&&S!=S:m(_,S,M,E,v,D))}},2492:(d,b,h)=>{var m=h(6384),f=h(7114),v=h(8351),_=h(6096),S=h(4160),M=h(1469),E=h(4144),D=h(6719),B="[object Arguments]",z="[object Array]",H="[object Object]",J=Object.prototype.hasOwnProperty;d.exports=function(rt,dt,K,_t,at,ot){var bt=M(rt),zt=M(dt),Tt=bt?z:S(rt),mt=zt?z:S(dt),Ct=(Tt=Tt==B?H:Tt)==H,xt=(mt=mt==B?H:mt)==H,gt=Tt==mt;if(gt&&E(rt)){if(!E(dt))return!1;bt=!0,Ct=!1}if(gt&&!Ct)return ot||(ot=new m),bt||D(rt)?f(rt,dt,K,_t,at,ot):v(rt,dt,Tt,K,_t,at,ot);if(!(1&K)){var et=Ct&&J.call(rt,"__wrapped__"),ft=xt&&J.call(dt,"__wrapped__");if(et||ft){var q=et?rt.value():rt,wt=ft?dt.value():dt;return ot||(ot=new m),at(q,wt,K,_t,ot)}}return!!gt&&(ot||(ot=new m),_(rt,dt,K,_t,at,ot))}},5588:(d,b,h)=>{var m=h(4160),f=h(7005);d.exports=function(v){return f(v)&&m(v)=="[object Map]"}},2958:(d,b,h)=>{var m=h(6384),f=h(939);d.exports=function(v,_,S,M){var E=S.length,D=E,B=!M;if(v==null)return!D;for(v=Object(v);E--;){var z=S[E];if(B&&z[2]?z[1]!==v[z[0]]:!(z[0]in v))return!1}for(;++E<D;){var H=(z=S[E])[0],J=v[H],rt=z[1];if(B&&z[2]){if(J===void 0&&!(H in v))return!1}else{var dt=new m;if(M)var K=M(J,rt,H,v,_,dt);if(!(K===void 0?f(rt,J,3,M,dt):K))return!1}}return!0}},2722:d=>{d.exports=function(b){return b!=b}},8458:(d,b,h)=>{var m=h(3560),f=h(5346),v=h(3218),_=h(346),S=/^\[object .+?Constructor\]$/,M=Function.prototype,E=Object.prototype,D=M.toString,B=E.hasOwnProperty,z=RegExp("^"+D.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");d.exports=function(H){return!(!v(H)||f(H))&&(m(H)?z:S).test(_(H))}},9221:(d,b,h)=>{var m=h(4160),f=h(7005);d.exports=function(v){return f(v)&&m(v)=="[object Set]"}},8749:(d,b,h)=>{var m=h(4239),f=h(1780),v=h(7005),_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_["[object Arguments]"]=_["[object Array]"]=_["[object ArrayBuffer]"]=_["[object Boolean]"]=_["[object DataView]"]=_["[object Date]"]=_["[object Error]"]=_["[object Function]"]=_["[object Map]"]=_["[object Number]"]=_["[object Object]"]=_["[object RegExp]"]=_["[object Set]"]=_["[object String]"]=_["[object WeakMap]"]=!1,d.exports=function(S){return v(S)&&f(S.length)&&!!_[m(S)]}},7206:(d,b,h)=>{var m=h(1573),f=h(6432),v=h(6557),_=h(1469),S=h(9601);d.exports=function(M){return typeof M=="function"?M:M==null?v:typeof M=="object"?_(M)?f(M[0],M[1]):m(M):S(M)}},280:(d,b,h)=>{var m=h(5726),f=h(6916),v=Object.prototype.hasOwnProperty;d.exports=function(_){if(!m(_))return f(_);var S=[];for(var M in Object(_))v.call(_,M)&&M!="constructor"&&S.push(M);return S}},313:(d,b,h)=>{var m=h(3218),f=h(5726),v=h(3498),_=Object.prototype.hasOwnProperty;d.exports=function(S){if(!m(S))return v(S);var M=f(S),E=[];for(var D in S)(D!="constructor"||!M&&_.call(S,D))&&E.push(D);return E}},433:d=>{d.exports=function(b,h){return b<h}},9199:(d,b,h)=>{var m=h(9881),f=h(8612);d.exports=function(v,_){var S=-1,M=f(v)?Array(v.length):[];return m(v,function(E,D,B){M[++S]=_(E,D,B)}),M}},1573:(d,b,h)=>{var m=h(2958),f=h(1499),v=h(2634);d.exports=function(_){var S=f(_);return S.length==1&&S[0][2]?v(S[0][0],S[0][1]):function(M){return M===_||m(M,_,S)}}},6432:(d,b,h)=>{var m=h(939),f=h(7361),v=h(9095),_=h(5403),S=h(9162),M=h(2634),E=h(327);d.exports=function(D,B){return _(D)&&S(B)?M(E(D),B):function(z){var H=f(z,D);return H===void 0&&H===B?v(z,D):m(B,H,3)}}},2980:(d,b,h)=>{var m=h(6384),f=h(6556),v=h(8483),_=h(9783),S=h(3218),M=h(1704),E=h(6390);d.exports=function D(B,z,H,J,rt){B!==z&&v(z,function(dt,K){if(rt||(rt=new m),S(dt))_(B,z,K,H,D,J,rt);else{var _t=J?J(E(B,K),dt,K+"",B,z,rt):void 0;_t===void 0&&(_t=dt),f(B,K,_t)}},M)}},9783:(d,b,h)=>{var m=h(6556),f=h(4626),v=h(7133),_=h(278),S=h(8517),M=h(5694),E=h(1469),D=h(9246),B=h(4144),z=h(3560),H=h(3218),J=h(8630),rt=h(6719),dt=h(6390),K=h(3678);d.exports=function(_t,at,ot,bt,zt,Tt,mt){var Ct=dt(_t,ot),xt=dt(at,ot),gt=mt.get(xt);if(gt)m(_t,ot,gt);else{var et=Tt?Tt(Ct,xt,ot+"",_t,at,mt):void 0,ft=et===void 0;if(ft){var q=E(xt),wt=!q&&B(xt),W=!q&&!wt&&rt(xt);et=xt,q||wt||W?E(Ct)?et=Ct:D(Ct)?et=_(Ct):wt?(ft=!1,et=f(xt,!0)):W?(ft=!1,et=v(xt,!0)):et=[]:J(xt)||M(xt)?(et=Ct,M(Ct)?et=K(Ct):H(Ct)&&!z(Ct)||(et=S(xt))):ft=!1}ft&&(mt.set(xt,et),zt(et,xt,bt,Tt,mt),mt.delete(xt)),m(_t,ot,et)}}},9556:(d,b,h)=>{var m=h(9932),f=h(7786),v=h(7206),_=h(9199),S=h(1131),M=h(1717),E=h(5022),D=h(6557),B=h(1469);d.exports=function(z,H,J){H=H.length?m(H,function(K){return B(K)?function(_t){return f(_t,K.length===1?K[0]:K)}:K}):[D];var rt=-1;H=m(H,M(v));var dt=_(z,function(K,_t,at){return{criteria:m(H,function(ot){return ot(K)}),index:++rt,value:K}});return S(dt,function(K,_t){return E(K,_t,J)})}},5970:(d,b,h)=>{var m=h(3012),f=h(9095);d.exports=function(v,_){return m(v,_,function(S,M){return f(v,M)})}},3012:(d,b,h)=>{var m=h(7786),f=h(611),v=h(1811);d.exports=function(_,S,M){for(var E=-1,D=S.length,B={};++E<D;){var z=S[E],H=m(_,z);M(H,z)&&f(B,v(z,_),H)}return B}},371:d=>{d.exports=function(b){return function(h){return h==null?void 0:h[b]}}},9152:(d,b,h)=>{var m=h(7786);d.exports=function(f){return function(v){return m(v,f)}}},98:d=>{var b=Math.ceil,h=Math.max;d.exports=function(m,f,v,_){for(var S=-1,M=h(b((f-m)/(v||1)),0),E=Array(M);M--;)E[_?M:++S]=m,m+=v;return E}},107:d=>{d.exports=function(b,h,m,f,v){return v(b,function(_,S,M){m=f?(f=!1,_):h(m,_,S,M)}),m}},5976:(d,b,h)=>{var m=h(6557),f=h(5357),v=h(61);d.exports=function(_,S){return v(f(_,S,m),_+"")}},611:(d,b,h)=>{var m=h(4865),f=h(1811),v=h(5776),_=h(3218),S=h(327);d.exports=function(M,E,D,B){if(!_(M))return M;for(var z=-1,H=(E=f(E,M)).length,J=H-1,rt=M;rt!=null&&++z<H;){var dt=S(E[z]),K=D;if(dt==="__proto__"||dt==="constructor"||dt==="prototype")return M;if(z!=J){var _t=rt[dt];(K=B?B(_t,dt,rt):void 0)===void 0&&(K=_(_t)?_t:v(E[z+1])?[]:{})}m(rt,dt,K),rt=rt[dt]}return M}},6560:(d,b,h)=>{var m=h(5703),f=h(8777),v=h(6557),_=f?function(S,M){return f(S,"toString",{configurable:!0,enumerable:!1,value:m(M),writable:!0})}:v;d.exports=_},1131:d=>{d.exports=function(b,h){var m=b.length;for(b.sort(h);m--;)b[m]=b[m].value;return b}},2545:d=>{d.exports=function(b,h){for(var m=-1,f=Array(b);++m<b;)f[m]=h(m);return f}},531:(d,b,h)=>{var m=h(2705),f=h(9932),v=h(1469),_=h(3448),S=m?m.prototype:void 0,M=S?S.toString:void 0;d.exports=function E(D){if(typeof D=="string")return D;if(v(D))return f(D,E)+"";if(_(D))return M?M.call(D):"";var B=D+"";return B=="0"&&1/D==-1/0?"-0":B}},7561:(d,b,h)=>{var m=h(7990),f=/^\s+/;d.exports=function(v){return v&&v.slice(0,m(v)+1).replace(f,"")}},1717:d=>{d.exports=function(b){return function(h){return b(h)}}},5652:(d,b,h)=>{var m=h(8668),f=h(7443),v=h(1196),_=h(4757),S=h(3593),M=h(1814);d.exports=function(E,D,B){var z=-1,H=f,J=E.length,rt=!0,dt=[],K=dt;if(B)rt=!1,H=v;else if(J>=200){var _t=D?null:S(E);if(_t)return M(_t);rt=!1,H=_,K=new m}else K=D?[]:dt;t:for(;++z<J;){var at=E[z],ot=D?D(at):at;if(at=B||at!==0?at:0,rt&&ot==ot){for(var bt=K.length;bt--;)if(K[bt]===ot)continue t;D&&K.push(ot),dt.push(at)}else H(K,ot,B)||(K!==dt&&K.push(ot),dt.push(at))}return dt}},7415:(d,b,h)=>{var m=h(9932);d.exports=function(f,v){return m(v,function(_){return f[_]})}},1757:d=>{d.exports=function(b,h,m){for(var f=-1,v=b.length,_=h.length,S={};++f<v;){var M=f<_?h[f]:void 0;m(S,b[f],M)}return S}},4757:d=>{d.exports=function(b,h){return b.has(h)}},4290:(d,b,h)=>{var m=h(6557);d.exports=function(f){return typeof f=="function"?f:m}},1811:(d,b,h)=>{var m=h(1469),f=h(5403),v=h(5514),_=h(9833);d.exports=function(S,M){return m(S)?S:f(S,M)?[S]:v(_(S))}},4318:(d,b,h)=>{var m=h(1149);d.exports=function(f){var v=new f.constructor(f.byteLength);return new m(v).set(new m(f)),v}},4626:(d,b,h)=>{d=h.nmd(d);var m=h(5639),f=b&&!b.nodeType&&b,v=f&&d&&!d.nodeType&&d,_=v&&v.exports===f?m.Buffer:void 0,S=_?_.allocUnsafe:void 0;d.exports=function(M,E){if(E)return M.slice();var D=M.length,B=S?S(D):new M.constructor(D);return M.copy(B),B}},7157:(d,b,h)=>{var m=h(4318);d.exports=function(f,v){var _=v?m(f.buffer):f.buffer;return new f.constructor(_,f.byteOffset,f.byteLength)}},3147:d=>{var b=/\w*$/;d.exports=function(h){var m=new h.constructor(h.source,b.exec(h));return m.lastIndex=h.lastIndex,m}},419:(d,b,h)=>{var m=h(2705),f=m?m.prototype:void 0,v=f?f.valueOf:void 0;d.exports=function(_){return v?Object(v.call(_)):{}}},7133:(d,b,h)=>{var m=h(4318);d.exports=function(f,v){var _=v?m(f.buffer):f.buffer;return new f.constructor(_,f.byteOffset,f.length)}},6393:(d,b,h)=>{var m=h(3448);d.exports=function(f,v){if(f!==v){var _=f!==void 0,S=f===null,M=f==f,E=m(f),D=v!==void 0,B=v===null,z=v==v,H=m(v);if(!B&&!H&&!E&&f>v||E&&D&&z&&!B&&!H||S&&D&&z||!_&&z||!M)return 1;if(!S&&!E&&!H&&f<v||H&&_&&M&&!S&&!E||B&&_&&M||!D&&M||!z)return-1}return 0}},5022:(d,b,h)=>{var m=h(6393);d.exports=function(f,v,_){for(var S=-1,M=f.criteria,E=v.criteria,D=M.length,B=_.length;++S<D;){var z=m(M[S],E[S]);if(z)return S>=B?z:z*(_[S]=="desc"?-1:1)}return f.index-v.index}},278:d=>{d.exports=function(b,h){var m=-1,f=b.length;for(h||(h=Array(f));++m<f;)h[m]=b[m];return h}},8363:(d,b,h)=>{var m=h(4865),f=h(9465);d.exports=function(v,_,S,M){var E=!S;S||(S={});for(var D=-1,B=_.length;++D<B;){var z=_[D],H=M?M(S[z],v[z],z,S,v):void 0;H===void 0&&(H=v[z]),E?f(S,z,H):m(S,z,H)}return S}},8805:(d,b,h)=>{var m=h(8363),f=h(9551);d.exports=function(v,_){return m(v,f(v),_)}},1911:(d,b,h)=>{var m=h(8363),f=h(1442);d.exports=function(v,_){return m(v,f(v),_)}},4429:(d,b,h)=>{var m=h(5639)["__core-js_shared__"];d.exports=m},1463:(d,b,h)=>{var m=h(5976),f=h(6612);d.exports=function(v){return m(function(_,S){var M=-1,E=S.length,D=E>1?S[E-1]:void 0,B=E>2?S[2]:void 0;for(D=v.length>3&&typeof D=="function"?(E--,D):void 0,B&&f(S[0],S[1],B)&&(D=E<3?void 0:D,E=1),_=Object(_);++M<E;){var z=S[M];z&&v(_,z,M,D)}return _})}},9291:(d,b,h)=>{var m=h(8612);d.exports=function(f,v){return function(_,S){if(_==null)return _;if(!m(_))return f(_,S);for(var M=_.length,E=v?M:-1,D=Object(_);(v?E--:++E<M)&&S(D[E],E,D)!==!1;);return _}}},5063:d=>{d.exports=function(b){return function(h,m,f){for(var v=-1,_=Object(h),S=f(h),M=S.length;M--;){var E=S[b?M:++v];if(m(_[E],E,_)===!1)break}return h}}},7740:(d,b,h)=>{var m=h(7206),f=h(8612),v=h(3674);d.exports=function(_){return function(S,M,E){var D=Object(S);if(!f(S)){var B=m(M,3);S=v(S),M=function(H){return B(D[H],H,D)}}var z=_(S,M,E);return z>-1?D[B?S[z]:z]:void 0}}},7445:(d,b,h)=>{var m=h(98),f=h(6612),v=h(8601);d.exports=function(_){return function(S,M,E){return E&&typeof E!="number"&&f(S,M,E)&&(M=E=void 0),S=v(S),M===void 0?(M=S,S=0):M=v(M),E=E===void 0?S<M?1:-1:v(E),m(S,M,E,_)}}},3593:(d,b,h)=>{var m=h(8525),f=h(308),v=h(1814),_=m&&1/v(new m([,-0]))[1]==1/0?function(S){return new m(S)}:f;d.exports=_},8777:(d,b,h)=>{var m=h(852),f=function(){try{var v=m(Object,"defineProperty");return v({},"",{}),v}catch{}}();d.exports=f},7114:(d,b,h)=>{var m=h(8668),f=h(2908),v=h(4757);d.exports=function(_,S,M,E,D,B){var z=1&M,H=_.length,J=S.length;if(H!=J&&!(z&&J>H))return!1;var rt=B.get(_),dt=B.get(S);if(rt&&dt)return rt==S&&dt==_;var K=-1,_t=!0,at=2&M?new m:void 0;for(B.set(_,S),B.set(S,_);++K<H;){var ot=_[K],bt=S[K];if(E)var zt=z?E(bt,ot,K,S,_,B):E(ot,bt,K,_,S,B);if(zt!==void 0){if(zt)continue;_t=!1;break}if(at){if(!f(S,function(Tt,mt){if(!v(at,mt)&&(ot===Tt||D(ot,Tt,M,E,B)))return at.push(mt)})){_t=!1;break}}else if(ot!==bt&&!D(ot,bt,M,E,B)){_t=!1;break}}return B.delete(_),B.delete(S),_t}},8351:(d,b,h)=>{var m=h(2705),f=h(1149),v=h(7813),_=h(7114),S=h(8776),M=h(1814),E=m?m.prototype:void 0,D=E?E.valueOf:void 0;d.exports=function(B,z,H,J,rt,dt,K){switch(H){case"[object DataView]":if(B.byteLength!=z.byteLength||B.byteOffset!=z.byteOffset)return!1;B=B.buffer,z=z.buffer;case"[object ArrayBuffer]":return!(B.byteLength!=z.byteLength||!dt(new f(B),new f(z)));case"[object Boolean]":case"[object Date]":case"[object Number]":return v(+B,+z);case"[object Error]":return B.name==z.name&&B.message==z.message;case"[object RegExp]":case"[object String]":return B==z+"";case"[object Map]":var _t=S;case"[object Set]":var at=1&J;if(_t||(_t=M),B.size!=z.size&&!at)return!1;var ot=K.get(B);if(ot)return ot==z;J|=2,K.set(B,z);var bt=_(_t(B),_t(z),J,rt,dt,K);return K.delete(B),bt;case"[object Symbol]":if(D)return D.call(B)==D.call(z)}return!1}},6096:(d,b,h)=>{var m=h(8234),f=Object.prototype.hasOwnProperty;d.exports=function(v,_,S,M,E,D){var B=1&S,z=m(v),H=z.length;if(H!=m(_).length&&!B)return!1;for(var J=H;J--;){var rt=z[J];if(!(B?rt in _:f.call(_,rt)))return!1}var dt=D.get(v),K=D.get(_);if(dt&&K)return dt==_&&K==v;var _t=!0;D.set(v,_),D.set(_,v);for(var at=B;++J<H;){var ot=v[rt=z[J]],bt=_[rt];if(M)var zt=B?M(bt,ot,rt,_,v,D):M(ot,bt,rt,v,_,D);if(!(zt===void 0?ot===bt||E(ot,bt,S,M,D):zt)){_t=!1;break}at||(at=rt=="constructor")}if(_t&&!at){var Tt=v.constructor,mt=_.constructor;Tt==mt||!("constructor"in v)||!("constructor"in _)||typeof Tt=="function"&&Tt instanceof Tt&&typeof mt=="function"&&mt instanceof mt||(_t=!1)}return D.delete(v),D.delete(_),_t}},9021:(d,b,h)=>{var m=h(5564),f=h(5357),v=h(61);d.exports=function(_){return v(f(_,void 0,m),_+"")}},1957:(d,b,h)=>{var m=typeof h.g=="object"&&h.g&&h.g.Object===Object&&h.g;d.exports=m},8234:(d,b,h)=>{var m=h(8866),f=h(9551),v=h(3674);d.exports=function(_){return m(_,v,f)}},6904:(d,b,h)=>{var m=h(8866),f=h(1442),v=h(1704);d.exports=function(_){return m(_,v,f)}},5050:(d,b,h)=>{var m=h(7019);d.exports=function(f,v){var _=f.__data__;return m(v)?_[typeof v=="string"?"string":"hash"]:_.map}},1499:(d,b,h)=>{var m=h(9162),f=h(3674);d.exports=function(v){for(var _=f(v),S=_.length;S--;){var M=_[S],E=v[M];_[S]=[M,E,m(E)]}return _}},852:(d,b,h)=>{var m=h(8458),f=h(7801);d.exports=function(v,_){var S=f(v,_);return m(S)?S:void 0}},5924:(d,b,h)=>{var m=h(5569)(Object.getPrototypeOf,Object);d.exports=m},9607:(d,b,h)=>{var m=h(2705),f=Object.prototype,v=f.hasOwnProperty,_=f.toString,S=m?m.toStringTag:void 0;d.exports=function(M){var E=v.call(M,S),D=M[S];try{M[S]=void 0;var B=!0}catch{}var z=_.call(M);return B&&(E?M[S]=D:delete M[S]),z}},9551:(d,b,h)=>{var m=h(4963),f=h(479),v=Object.prototype.propertyIsEnumerable,_=Object.getOwnPropertySymbols,S=_?function(M){return M==null?[]:(M=Object(M),m(_(M),function(E){return v.call(M,E)}))}:f;d.exports=S},1442:(d,b,h)=>{var m=h(2488),f=h(5924),v=h(9551),_=h(479),S=Object.getOwnPropertySymbols?function(M){for(var E=[];M;)m(E,v(M)),M=f(M);return E}:_;d.exports=S},4160:(d,b,h)=>{var m=h(8552),f=h(7071),v=h(3818),_=h(8525),S=h(577),M=h(4239),E=h(346),D="[object Map]",B="[object Promise]",z="[object Set]",H="[object WeakMap]",J="[object DataView]",rt=E(m),dt=E(f),K=E(v),_t=E(_),at=E(S),ot=M;(m&&ot(new m(new ArrayBuffer(1)))!=J||f&&ot(new f)!=D||v&&ot(v.resolve())!=B||_&&ot(new _)!=z||S&&ot(new S)!=H)&&(ot=function(bt){var zt=M(bt),Tt=zt=="[object Object]"?bt.constructor:void 0,mt=Tt?E(Tt):"";if(mt)switch(mt){case rt:return J;case dt:return D;case K:return B;case _t:return z;case at:return H}return zt}),d.exports=ot},7801:d=>{d.exports=function(b,h){return b==null?void 0:b[h]}},222:(d,b,h)=>{var m=h(1811),f=h(5694),v=h(1469),_=h(5776),S=h(1780),M=h(327);d.exports=function(E,D,B){for(var z=-1,H=(D=m(D,E)).length,J=!1;++z<H;){var rt=M(D[z]);if(!(J=E!=null&&B(E,rt)))break;E=E[rt]}return J||++z!=H?J:!!(H=E==null?0:E.length)&&S(H)&&_(rt,H)&&(v(E)||f(E))}},2689:d=>{var b=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");d.exports=function(h){return b.test(h)}},1789:(d,b,h)=>{var m=h(4536);d.exports=function(){this.__data__=m?m(null):{},this.size=0}},401:d=>{d.exports=function(b){var h=this.has(b)&&delete this.__data__[b];return this.size-=h?1:0,h}},7667:(d,b,h)=>{var m=h(4536),f=Object.prototype.hasOwnProperty;d.exports=function(v){var _=this.__data__;if(m){var S=_[v];return S==="__lodash_hash_undefined__"?void 0:S}return f.call(_,v)?_[v]:void 0}},1327:(d,b,h)=>{var m=h(4536),f=Object.prototype.hasOwnProperty;d.exports=function(v){var _=this.__data__;return m?_[v]!==void 0:f.call(_,v)}},1866:(d,b,h)=>{var m=h(4536);d.exports=function(f,v){var _=this.__data__;return this.size+=this.has(f)?0:1,_[f]=m&&v===void 0?"__lodash_hash_undefined__":v,this}},3824:d=>{var b=Object.prototype.hasOwnProperty;d.exports=function(h){var m=h.length,f=new h.constructor(m);return m&&typeof h[0]=="string"&&b.call(h,"index")&&(f.index=h.index,f.input=h.input),f}},9148:(d,b,h)=>{var m=h(4318),f=h(7157),v=h(3147),_=h(419),S=h(7133);d.exports=function(M,E,D){var B=M.constructor;switch(E){case"[object ArrayBuffer]":return m(M);case"[object Boolean]":case"[object Date]":return new B(+M);case"[object DataView]":return f(M,D);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return S(M,D);case"[object Map]":case"[object Set]":return new B;case"[object Number]":case"[object String]":return new B(M);case"[object RegExp]":return v(M);case"[object Symbol]":return _(M)}}},8517:(d,b,h)=>{var m=h(3118),f=h(5924),v=h(5726);d.exports=function(_){return typeof _.constructor!="function"||v(_)?{}:m(f(_))}},7285:(d,b,h)=>{var m=h(2705),f=h(5694),v=h(1469),_=m?m.isConcatSpreadable:void 0;d.exports=function(S){return v(S)||f(S)||!!(_&&S&&S[_])}},5776:d=>{var b=/^(?:0|[1-9]\d*)$/;d.exports=function(h,m){var f=typeof h;return!!(m=m==null?9007199254740991:m)&&(f=="number"||f!="symbol"&&b.test(h))&&h>-1&&h%1==0&&h<m}},6612:(d,b,h)=>{var m=h(7813),f=h(8612),v=h(5776),_=h(3218);d.exports=function(S,M,E){if(!_(E))return!1;var D=typeof M;return!!(D=="number"?f(E)&&v(M,E.length):D=="string"&&M in E)&&m(E[M],S)}},5403:(d,b,h)=>{var m=h(1469),f=h(3448),v=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/;d.exports=function(S,M){if(m(S))return!1;var E=typeof S;return!(E!="number"&&E!="symbol"&&E!="boolean"&&S!=null&&!f(S))||_.test(S)||!v.test(S)||M!=null&&S in Object(M)}},7019:d=>{d.exports=function(b){var h=typeof b;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?b!=="__proto__":b===null}},5346:(d,b,h)=>{var m,f=h(4429),v=(m=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";d.exports=function(_){return!!v&&v in _}},5726:d=>{var b=Object.prototype;d.exports=function(h){var m=h&&h.constructor;return h===(typeof m=="function"&&m.prototype||b)}},9162:(d,b,h)=>{var m=h(3218);d.exports=function(f){return f==f&&!m(f)}},7040:d=>{d.exports=function(){this.__data__=[],this.size=0}},4125:(d,b,h)=>{var m=h(8470),f=Array.prototype.splice;d.exports=function(v){var _=this.__data__,S=m(_,v);return!(S<0||(S==_.length-1?_.pop():f.call(_,S,1),--this.size,0))}},2117:(d,b,h)=>{var m=h(8470);d.exports=function(f){var v=this.__data__,_=m(v,f);return _<0?void 0:v[_][1]}},7518:(d,b,h)=>{var m=h(8470);d.exports=function(f){return m(this.__data__,f)>-1}},4705:(d,b,h)=>{var m=h(8470);d.exports=function(f,v){var _=this.__data__,S=m(_,f);return S<0?(++this.size,_.push([f,v])):_[S][1]=v,this}},4785:(d,b,h)=>{var m=h(1989),f=h(8407),v=h(7071);d.exports=function(){this.size=0,this.__data__={hash:new m,map:new(v||f),string:new m}}},1285:(d,b,h)=>{var m=h(5050);d.exports=function(f){var v=m(this,f).delete(f);return this.size-=v?1:0,v}},6e3:(d,b,h)=>{var m=h(5050);d.exports=function(f){return m(this,f).get(f)}},9916:(d,b,h)=>{var m=h(5050);d.exports=function(f){return m(this,f).has(f)}},5265:(d,b,h)=>{var m=h(5050);d.exports=function(f,v){var _=m(this,f),S=_.size;return _.set(f,v),this.size+=_.size==S?0:1,this}},8776:d=>{d.exports=function(b){var h=-1,m=Array(b.size);return b.forEach(function(f,v){m[++h]=[v,f]}),m}},2634:d=>{d.exports=function(b,h){return function(m){return m!=null&&m[b]===h&&(h!==void 0||b in Object(m))}}},4523:(d,b,h)=>{var m=h(8306);d.exports=function(f){var v=m(f,function(S){return _.size===500&&_.clear(),S}),_=v.cache;return v}},4536:(d,b,h)=>{var m=h(852)(Object,"create");d.exports=m},6916:(d,b,h)=>{var m=h(5569)(Object.keys,Object);d.exports=m},3498:d=>{d.exports=function(b){var h=[];if(b!=null)for(var m in Object(b))h.push(m);return h}},1167:(d,b,h)=>{d=h.nmd(d);var m=h(1957),f=b&&!b.nodeType&&b,v=f&&d&&!d.nodeType&&d,_=v&&v.exports===f&&m.process,S=function(){try{return v&&v.require&&v.require("util").types||_&&_.binding&&_.binding("util")}catch{}}();d.exports=S},2333:d=>{var b=Object.prototype.toString;d.exports=function(h){return b.call(h)}},5569:d=>{d.exports=function(b,h){return function(m){return b(h(m))}}},5357:(d,b,h)=>{var m=h(6874),f=Math.max;d.exports=function(v,_,S){return _=f(_===void 0?v.length-1:_,0),function(){for(var M=arguments,E=-1,D=f(M.length-_,0),B=Array(D);++E<D;)B[E]=M[_+E];E=-1;for(var z=Array(_+1);++E<_;)z[E]=M[E];return z[_]=S(B),m(v,this,z)}}},5639:(d,b,h)=>{var m=h(1957),f=typeof self=="object"&&self&&self.Object===Object&&self,v=m||f||Function("return this")();d.exports=v},6390:d=>{d.exports=function(b,h){if((h!=="constructor"||typeof b[h]!="function")&&h!="__proto__")return b[h]}},619:d=>{d.exports=function(b){return this.__data__.set(b,"__lodash_hash_undefined__"),this}},2385:d=>{d.exports=function(b){return this.__data__.has(b)}},1814:d=>{d.exports=function(b){var h=-1,m=Array(b.size);return b.forEach(function(f){m[++h]=f}),m}},61:(d,b,h)=>{var m=h(6560),f=h(1275)(m);d.exports=f},1275:d=>{var b=Date.now;d.exports=function(h){var m=0,f=0;return function(){var v=b(),_=16-(v-f);if(f=v,_>0){if(++m>=800)return arguments[0]}else m=0;return h.apply(void 0,arguments)}}},7465:(d,b,h)=>{var m=h(8407);d.exports=function(){this.__data__=new m,this.size=0}},3779:d=>{d.exports=function(b){var h=this.__data__,m=h.delete(b);return this.size=h.size,m}},7599:d=>{d.exports=function(b){return this.__data__.get(b)}},4758:d=>{d.exports=function(b){return this.__data__.has(b)}},4309:(d,b,h)=>{var m=h(8407),f=h(7071),v=h(3369);d.exports=function(_,S){var M=this.__data__;if(M instanceof m){var E=M.__data__;if(!f||E.length<199)return E.push([_,S]),this.size=++M.size,this;M=this.__data__=new v(E)}return M.set(_,S),this.size=M.size,this}},2351:d=>{d.exports=function(b,h,m){for(var f=m-1,v=b.length;++f<v;)if(b[f]===h)return f;return-1}},8016:(d,b,h)=>{var m=h(8983),f=h(2689),v=h(1903);d.exports=function(_){return f(_)?v(_):m(_)}},5514:(d,b,h)=>{var m=h(4523),f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,_=m(function(S){var M=[];return S.charCodeAt(0)===46&&M.push(""),S.replace(f,function(E,D,B,z){M.push(B?z.replace(v,"$1"):D||E)}),M});d.exports=_},327:(d,b,h)=>{var m=h(3448);d.exports=function(f){if(typeof f=="string"||m(f))return f;var v=f+"";return v=="0"&&1/f==-1/0?"-0":v}},346:d=>{var b=Function.prototype.toString;d.exports=function(h){if(h!=null){try{return b.call(h)}catch{}try{return h+""}catch{}}return""}},7990:d=>{var b=/\s/;d.exports=function(h){for(var m=h.length;m--&&b.test(h.charAt(m)););return m}},1903:d=>{var b="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",h="\\ud83c[\\udffb-\\udfff]",m="[^\\ud800-\\udfff]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",_="(?:"+b+"|"+h+")?",S="[\\ufe0e\\ufe0f]?",M=S+_+"(?:\\u200d(?:"+[m,f,v].join("|")+")"+S+_+")*",E="(?:"+[m+b+"?",b,f,v,"[\\ud800-\\udfff]"].join("|")+")",D=RegExp(h+"(?="+h+")|"+E+M,"g");d.exports=function(B){for(var z=D.lastIndex=0;D.test(B);)++z;return z}},6678:(d,b,h)=>{var m=h(5990);d.exports=function(f){return m(f,4)}},361:(d,b,h)=>{var m=h(5990);d.exports=function(f){return m(f,5)}},5703:d=>{d.exports=function(b){return function(){return b}}},1747:(d,b,h)=>{var m=h(5976),f=h(7813),v=h(6612),_=h(1704),S=Object.prototype,M=S.hasOwnProperty,E=m(function(D,B){D=Object(D);var z=-1,H=B.length,J=H>2?B[2]:void 0;for(J&&v(B[0],B[1],J)&&(H=1);++z<H;)for(var rt=B[z],dt=_(rt),K=-1,_t=dt.length;++K<_t;){var at=dt[K],ot=D[at];(ot===void 0||f(ot,S[at])&&!M.call(D,at))&&(D[at]=rt[at])}return D});d.exports=E},6073:(d,b,h)=>{d.exports=h(4486)},7813:d=>{d.exports=function(b,h){return b===h||b!=b&&h!=h}},3105:(d,b,h)=>{var m=h(4963),f=h(760),v=h(7206),_=h(1469);d.exports=function(S,M){return(_(S)?m:f)(S,v(M,3))}},3311:(d,b,h)=>{var m=h(7740)(h(998));d.exports=m},998:(d,b,h)=>{var m=h(1848),f=h(7206),v=h(554),_=Math.max;d.exports=function(S,M,E){var D=S==null?0:S.length;if(!D)return-1;var B=E==null?0:v(E);return B<0&&(B=_(D+B,0)),m(S,f(M,3),B)}},5564:(d,b,h)=>{var m=h(1078);d.exports=function(f){return f!=null&&f.length?m(f,1):[]}},4486:(d,b,h)=>{var m=h(7412),f=h(9881),v=h(4290),_=h(1469);d.exports=function(S,M){return(_(S)?m:f)(S,v(M))}},2620:(d,b,h)=>{var m=h(8483),f=h(4290),v=h(1704);d.exports=function(_,S){return _==null?_:m(_,f(S),v)}},7361:(d,b,h)=>{var m=h(7786);d.exports=function(f,v,_){var S=f==null?void 0:m(f,v);return S===void 0?_:S}},8721:(d,b,h)=>{var m=h(8565),f=h(222);d.exports=function(v,_){return v!=null&&f(v,_,m)}},9095:(d,b,h)=>{var m=h(13),f=h(222);d.exports=function(v,_){return v!=null&&f(v,_,m)}},6557:d=>{d.exports=function(b){return b}},5694:(d,b,h)=>{var m=h(9454),f=h(7005),v=Object.prototype,_=v.hasOwnProperty,S=v.propertyIsEnumerable,M=m(function(){return arguments}())?m:function(E){return f(E)&&_.call(E,"callee")&&!S.call(E,"callee")};d.exports=M},1469:d=>{var b=Array.isArray;d.exports=b},8612:(d,b,h)=>{var m=h(3560),f=h(1780);d.exports=function(v){return v!=null&&f(v.length)&&!m(v)}},9246:(d,b,h)=>{var m=h(8612),f=h(7005);d.exports=function(v){return f(v)&&m(v)}},4144:(d,b,h)=>{d=h.nmd(d);var m=h(5639),f=h(5062),v=b&&!b.nodeType&&b,_=v&&d&&!d.nodeType&&d,S=_&&_.exports===v?m.Buffer:void 0,M=(S?S.isBuffer:void 0)||f;d.exports=M},1609:(d,b,h)=>{var m=h(280),f=h(4160),v=h(5694),_=h(1469),S=h(8612),M=h(4144),E=h(5726),D=h(6719),B=Object.prototype.hasOwnProperty;d.exports=function(z){if(z==null)return!0;if(S(z)&&(_(z)||typeof z=="string"||typeof z.splice=="function"||M(z)||D(z)||v(z)))return!z.length;var H=f(z);if(H=="[object Map]"||H=="[object Set]")return!z.size;if(E(z))return!m(z).length;for(var J in z)if(B.call(z,J))return!1;return!0}},3560:(d,b,h)=>{var m=h(4239),f=h(3218);d.exports=function(v){if(!f(v))return!1;var _=m(v);return _=="[object Function]"||_=="[object GeneratorFunction]"||_=="[object AsyncFunction]"||_=="[object Proxy]"}},1780:d=>{d.exports=function(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=9007199254740991}},6688:(d,b,h)=>{var m=h(5588),f=h(1717),v=h(1167),_=v&&v.isMap,S=_?f(_):m;d.exports=S},3218:d=>{d.exports=function(b){var h=typeof b;return b!=null&&(h=="object"||h=="function")}},7005:d=>{d.exports=function(b){return b!=null&&typeof b=="object"}},8630:(d,b,h)=>{var m=h(4239),f=h(5924),v=h(7005),_=Function.prototype,S=Object.prototype,M=_.toString,E=S.hasOwnProperty,D=M.call(Object);d.exports=function(B){if(!v(B)||m(B)!="[object Object]")return!1;var z=f(B);if(z===null)return!0;var H=E.call(z,"constructor")&&z.constructor;return typeof H=="function"&&H instanceof H&&M.call(H)==D}},2928:(d,b,h)=>{var m=h(9221),f=h(1717),v=h(1167),_=v&&v.isSet,S=_?f(_):m;d.exports=S},7037:(d,b,h)=>{var m=h(4239),f=h(1469),v=h(7005);d.exports=function(_){return typeof _=="string"||!f(_)&&v(_)&&m(_)=="[object String]"}},3448:(d,b,h)=>{var m=h(4239),f=h(7005);d.exports=function(v){return typeof v=="symbol"||f(v)&&m(v)=="[object Symbol]"}},6719:(d,b,h)=>{var m=h(8749),f=h(1717),v=h(1167),_=v&&v.isTypedArray,S=_?f(_):m;d.exports=S},2353:d=>{d.exports=function(b){return b===void 0}},3674:(d,b,h)=>{var m=h(4636),f=h(280),v=h(8612);d.exports=function(_){return v(_)?m(_):f(_)}},1704:(d,b,h)=>{var m=h(4636),f=h(313),v=h(8612);d.exports=function(_){return v(_)?m(_,!0):f(_)}},928:d=>{d.exports=function(b){var h=b==null?0:b.length;return h?b[h-1]:void 0}},5161:(d,b,h)=>{var m=h(9932),f=h(7206),v=h(9199),_=h(1469);d.exports=function(S,M){return(_(S)?m:v)(S,f(M,3))}},6604:(d,b,h)=>{var m=h(9465),f=h(7816),v=h(7206);d.exports=function(_,S){var M={};return S=v(S,3),f(_,function(E,D,B){m(M,D,S(E,D,B))}),M}},6162:(d,b,h)=>{var m=h(6029),f=h(3325),v=h(6557);d.exports=function(_){return _&&_.length?m(_,v,f):void 0}},8306:(d,b,h)=>{var m=h(3369);function f(v,_){if(typeof v!="function"||_!=null&&typeof _!="function")throw new TypeError("Expected a function");var S=function(){var M=arguments,E=_?_.apply(this,M):M[0],D=S.cache;if(D.has(E))return D.get(E);var B=v.apply(this,M);return S.cache=D.set(E,B)||D,B};return S.cache=new(f.Cache||m),S}f.Cache=m,d.exports=f},3857:(d,b,h)=>{var m=h(2980),f=h(1463)(function(v,_,S){m(v,_,S)});d.exports=f},3632:(d,b,h)=>{var m=h(6029),f=h(433),v=h(6557);d.exports=function(_){return _&&_.length?m(_,v,f):void 0}},2762:(d,b,h)=>{var m=h(6029),f=h(7206),v=h(433);d.exports=function(_,S){return _&&_.length?m(_,f(S,2),v):void 0}},308:d=>{d.exports=function(){}},7771:(d,b,h)=>{var m=h(5639);d.exports=function(){return m.Date.now()}},9722:(d,b,h)=>{var m=h(5970),f=h(9021)(function(v,_){return v==null?{}:m(v,_)});d.exports=f},9601:(d,b,h)=>{var m=h(371),f=h(9152),v=h(5403),_=h(327);d.exports=function(S){return v(S)?m(_(S)):f(S)}},6026:(d,b,h)=>{var m=h(7445)();d.exports=m},4061:(d,b,h)=>{var m=h(2663),f=h(9881),v=h(7206),_=h(107),S=h(1469);d.exports=function(M,E,D){var B=S(M)?m:_,z=arguments.length<3;return B(M,v(E,4),D,z,f)}},4238:(d,b,h)=>{var m=h(280),f=h(4160),v=h(8612),_=h(7037),S=h(8016);d.exports=function(M){if(M==null)return 0;if(v(M))return _(M)?S(M):M.length;var E=f(M);return E=="[object Map]"||E=="[object Set]"?M.size:m(M).length}},9734:(d,b,h)=>{var m=h(1078),f=h(9556),v=h(5976),_=h(6612),S=v(function(M,E){if(M==null)return[];var D=E.length;return D>1&&_(M,E[0],E[1])?E=[]:D>2&&_(E[0],E[1],E[2])&&(E=[E[0]]),f(M,m(E,1),[])});d.exports=S},479:d=>{d.exports=function(){return[]}},5062:d=>{d.exports=function(){return!1}},8601:(d,b,h)=>{var m=h(4841);d.exports=function(f){return f?(f=m(f))===1/0||f===-1/0?17976931348623157e292*(f<0?-1:1):f==f?f:0:f===0?f:0}},554:(d,b,h)=>{var m=h(8601);d.exports=function(f){var v=m(f),_=v%1;return v==v?_?v-_:v:0}},4841:(d,b,h)=>{var m=h(7561),f=h(3218),v=h(3448),_=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,M=/^0o[0-7]+$/i,E=parseInt;d.exports=function(D){if(typeof D=="number")return D;if(v(D))return NaN;if(f(D)){var B=typeof D.valueOf=="function"?D.valueOf():D;D=f(B)?B+"":B}if(typeof D!="string")return D===0?D:+D;D=m(D);var z=S.test(D);return z||M.test(D)?E(D.slice(2),z?2:8):_.test(D)?NaN:+D}},3678:(d,b,h)=>{var m=h(8363),f=h(1704);d.exports=function(v){return m(v,f(v))}},9833:(d,b,h)=>{var m=h(531);d.exports=function(f){return f==null?"":m(f)}},8718:(d,b,h)=>{var m=h(7412),f=h(3118),v=h(7816),_=h(7206),S=h(5924),M=h(1469),E=h(4144),D=h(3560),B=h(3218),z=h(6719);d.exports=function(H,J,rt){var dt=M(H),K=dt||E(H)||z(H);if(J=_(J,4),rt==null){var _t=H&&H.constructor;rt=K?dt?new _t:[]:B(H)&&D(_t)?f(S(H)):{}}return(K?m:v)(H,function(at,ot,bt){return J(rt,at,ot,bt)}),rt}},3386:(d,b,h)=>{var m=h(1078),f=h(5976),v=h(5652),_=h(9246),S=f(function(M){return v(m(M,1,_,!0))});d.exports=S},3955:(d,b,h)=>{var m=h(9833),f=0;d.exports=function(v){var _=++f;return m(v)+_}},2628:(d,b,h)=>{var m=h(7415),f=h(3674);d.exports=function(v){return v==null?[]:m(v,f(v))}},7287:(d,b,h)=>{var m=h(4865),f=h(1757);d.exports=function(v,_){return f(v||[],_||[],m)}},9234:()=>{},1748:(d,b,h)=>{var m={"./locale":9234,"./locale.js":9234};function f(_){var S=v(_);return h(S)}function v(_){if(!h.o(m,_)){var S=new Error("Cannot find module '"+_+"'");throw S.code="MODULE_NOT_FOUND",S}return m[_]}f.keys=function(){return Object.keys(m)},f.resolve=v,d.exports=f,f.id=1748},1941:function(d,b,h){(d=h.nmd(d)).exports=function(){var m,f;function v(){return m.apply(null,arguments)}function _(I){return I instanceof Array||Object.prototype.toString.call(I)==="[object Array]"}function S(I){return I!=null&&Object.prototype.toString.call(I)==="[object Object]"}function M(I){return I===void 0}function E(I){return typeof I=="number"||Object.prototype.toString.call(I)==="[object Number]"}function D(I){return I instanceof Date||Object.prototype.toString.call(I)==="[object Date]"}function B(I,U){var tt,yt=[];for(tt=0;tt<I.length;++tt)yt.push(U(I[tt],tt));return yt}function z(I,U){return Object.prototype.hasOwnProperty.call(I,U)}function H(I,U){for(var tt in U)z(U,tt)&&(I[tt]=U[tt]);return z(U,"toString")&&(I.toString=U.toString),z(U,"valueOf")&&(I.valueOf=U.valueOf),I}function J(I,U,tt,yt){return Bi(I,U,tt,yt,!0).utc()}function rt(I){return I._pf==null&&(I._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),I._pf}function dt(I){if(I._isValid==null){var U=rt(I),tt=f.call(U.parsedDateParts,function(ne){return ne!=null}),yt=!isNaN(I._d.getTime())&&U.overflow<0&&!U.empty&&!U.invalidMonth&&!U.invalidWeekday&&!U.weekdayMismatch&&!U.nullInput&&!U.invalidFormat&&!U.userInvalidated&&(!U.meridiem||U.meridiem&&tt);if(I._strict&&(yt=yt&&U.charsLeftOver===0&&U.unusedTokens.length===0&&U.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(I))return yt;I._isValid=yt}return I._isValid}function K(I){var U=J(NaN);return I!=null?H(rt(U),I):rt(U).userInvalidated=!0,U}f=Array.prototype.some?Array.prototype.some:function(I){for(var U=Object(this),tt=U.length>>>0,yt=0;yt<tt;yt++)if(yt in U&&I.call(this,U[yt],yt,U))return!0;return!1};var _t=v.momentProperties=[];function at(I,U){var tt,yt,ne;if(M(U._isAMomentObject)||(I._isAMomentObject=U._isAMomentObject),M(U._i)||(I._i=U._i),M(U._f)||(I._f=U._f),M(U._l)||(I._l=U._l),M(U._strict)||(I._strict=U._strict),M(U._tzm)||(I._tzm=U._tzm),M(U._isUTC)||(I._isUTC=U._isUTC),M(U._offset)||(I._offset=U._offset),M(U._pf)||(I._pf=rt(U)),M(U._locale)||(I._locale=U._locale),0<_t.length)for(tt=0;tt<_t.length;tt++)M(ne=U[yt=_t[tt]])||(I[yt]=ne);return I}var ot=!1;function bt(I){at(this,I),this._d=new Date(I._d!=null?I._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ot===!1&&(ot=!0,v.updateOffset(this),ot=!1)}function zt(I){return I instanceof bt||I!=null&&I._isAMomentObject!=null}function Tt(I){return I<0?Math.ceil(I)||0:Math.floor(I)}function mt(I){var U=+I,tt=0;return U!==0&&isFinite(U)&&(tt=Tt(U)),tt}function Ct(I,U,tt){var yt,ne=Math.min(I.length,U.length),Ce=Math.abs(I.length-U.length),je=0;for(yt=0;yt<ne;yt++)(tt&&I[yt]!==U[yt]||!tt&&mt(I[yt])!==mt(U[yt]))&&je++;return je+Ce}function xt(I){v.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+I)}function gt(I,U){var tt=!0;return H(function(){if(v.deprecationHandler!=null&&v.deprecationHandler(null,I),tt){for(var yt,ne=[],Ce=0;Ce<arguments.length;Ce++){if(yt="",typeof arguments[Ce]=="object"){for(var je in yt+=`
[`+Ce+"] ",arguments[0])yt+=je+": "+arguments[0][je]+", ";yt=yt.slice(0,-2)}else yt=arguments[Ce];ne.push(yt)}xt(I+`
Arguments: `+Array.prototype.slice.call(ne).join("")+`
`+new Error().stack),tt=!1}return U.apply(this,arguments)},U)}var et,ft={};function q(I,U){v.deprecationHandler!=null&&v.deprecationHandler(I,U),ft[I]||(xt(U),ft[I]=!0)}function wt(I){return I instanceof Function||Object.prototype.toString.call(I)==="[object Function]"}function W(I,U){var tt,yt=H({},I);for(tt in U)z(U,tt)&&(S(I[tt])&&S(U[tt])?(yt[tt]={},H(yt[tt],I[tt]),H(yt[tt],U[tt])):U[tt]!=null?yt[tt]=U[tt]:delete yt[tt]);for(tt in I)z(I,tt)&&!z(U,tt)&&S(I[tt])&&(yt[tt]=H({},yt[tt]));return yt}function St(I){I!=null&&this.set(I)}v.suppressDeprecationWarnings=!1,v.deprecationHandler=null,et=Object.keys?Object.keys:function(I){var U,tt=[];for(U in I)z(I,U)&&tt.push(U);return tt};var Lt={};function Wt(I,U){var tt=I.toLowerCase();Lt[tt]=Lt[tt+"s"]=Lt[U]=I}function ye(I){return typeof I=="string"?Lt[I]||Lt[I.toLowerCase()]:void 0}function Ve(I){var U,tt,yt={};for(tt in I)z(I,tt)&&(U=ye(tt))&&(yt[U]=I[tt]);return yt}var ke={};function fe(I,U){ke[I]=U}function xe(I,U,tt){var yt=""+Math.abs(I),ne=U-yt.length;return(0<=I?tt?"+":"":"-")+Math.pow(10,Math.max(0,ne)).toString().substr(1)+yt}var Me=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Oe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ve={},Sr={};function _e(I,U,tt,yt){var ne=yt;typeof yt=="string"&&(ne=function(){return this[yt]()}),I&&(Sr[I]=ne),U&&(Sr[U[0]]=function(){return xe(ne.apply(this,arguments),U[1],U[2])}),tt&&(Sr[tt]=function(){return this.localeData().ordinal(ne.apply(this,arguments),I)})}function Je(I,U){return I.isValid()?(U=Dt(U,I.localeData()),ve[U]=ve[U]||function(tt){var yt,ne,Ce,je=tt.match(Me);for(yt=0,ne=je.length;yt<ne;yt++)Sr[je[yt]]?je[yt]=Sr[je[yt]]:je[yt]=(Ce=je[yt]).match(/\[[\s\S]/)?Ce.replace(/^\[|\]$/g,""):Ce.replace(/\\/g,"");return function(tr){var er,fr="";for(er=0;er<ne;er++)fr+=wt(je[er])?je[er].call(tr,tt):je[er];return fr}}(U),ve[U](I)):I.localeData().invalidDate()}function Dt(I,U){var tt=5;function yt(ne){return U.longDateFormat(ne)||ne}for(Oe.lastIndex=0;0<=tt&&Oe.test(I);)I=I.replace(Oe,yt),Oe.lastIndex=0,tt-=1;return I}var he=/\d/,re=/\d\d/,At=/\d{3}/,Ee=/\d{4}/,Q=/[+-]?\d{6}/,ce=/\d\d?/,st=/\d\d\d\d?/,Te=/\d\d\d\d\d\d?/,ge=/\d{1,3}/,Pe=/\d{1,4}/,ar=/[+-]?\d{1,6}/,Ze=/\d+/,lr=/[+-]?\d+/,Ne=/Z|[+-]\d\d:?\d\d/gi,Re=/Z|[+-]\d\d(?::?\d\d)?/gi,ze=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Fe={};function be(I,U,tt){Fe[I]=wt(U)?U:function(yt,ne){return yt&&tt?tt:U}}function ae(I,U){return z(Fe,I)?Fe[I](U._strict,U._locale):new RegExp(br(I.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(tt,yt,ne,Ce,je){return yt||ne||Ce||je})))}function br(I){return I.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var qe={};function sr(I,U){var tt,yt=U;for(typeof I=="string"&&(I=[I]),E(U)&&(yt=function(ne,Ce){Ce[U]=mt(ne)}),tt=0;tt<I.length;tt++)qe[I[tt]]=yt}function $e(I,U){sr(I,function(tt,yt,ne,Ce){ne._w=ne._w||{},U(tt,ne._w,ne,Ce)})}function Er(I){return Jr(I)?366:365}function Jr(I){return I%4==0&&I%100!=0||I%400==0}_e("Y",0,0,function(){var I=this.year();return I<=9999?""+I:"+"+I}),_e(0,["YY",2],0,function(){return this.year()%100}),_e(0,["YYYY",4],0,"year"),_e(0,["YYYYY",5],0,"year"),_e(0,["YYYYYY",6,!0],0,"year"),Wt("year","y"),fe("year",1),be("Y",lr),be("YY",ce,re),be("YYYY",Pe,Ee),be("YYYYY",ar,Q),be("YYYYYY",ar,Q),sr(["YYYYY","YYYYYY"],0),sr("YYYY",function(I,U){U[0]=I.length===2?v.parseTwoDigitYear(I):mt(I)}),sr("YY",function(I,U){U[0]=v.parseTwoDigitYear(I)}),sr("Y",function(I,U){U[0]=parseInt(I,10)}),v.parseTwoDigitYear=function(I){return mt(I)+(68<mt(I)?1900:2e3)};var Nr,Br=Ie("FullYear",!0);function Ie(I,U){return function(tt){return tt!=null?(rr(this,I,tt),v.updateOffset(this,U),this):Qe(this,I)}}function Qe(I,U){return I.isValid()?I._d["get"+(I._isUTC?"UTC":"")+U]():NaN}function rr(I,U,tt){I.isValid()&&!isNaN(tt)&&(U==="FullYear"&&Jr(I.year())&&I.month()===1&&I.date()===29?I._d["set"+(I._isUTC?"UTC":"")+U](tt,I.month(),Se(tt,I.month())):I._d["set"+(I._isUTC?"UTC":"")+U](tt))}function Se(I,U){if(isNaN(I)||isNaN(U))return NaN;var tt=(U%12+12)%12;return I+=(U-tt)/12,tt===1?Jr(I)?29:28:31-tt%7%2}Nr=Array.prototype.indexOf?Array.prototype.indexOf:function(I){var U;for(U=0;U<this.length;++U)if(this[U]===I)return U;return-1},_e("M",["MM",2],"Mo",function(){return this.month()+1}),_e("MMM",0,0,function(I){return this.localeData().monthsShort(this,I)}),_e("MMMM",0,0,function(I){return this.localeData().months(this,I)}),Wt("month","M"),fe("month",8),be("M",ce),be("MM",ce,re),be("MMM",function(I,U){return U.monthsShortRegex(I)}),be("MMMM",function(I,U){return U.monthsRegex(I)}),sr(["M","MM"],function(I,U){U[1]=mt(I)-1}),sr(["MMM","MMMM"],function(I,U,tt,yt){var ne=tt._locale.monthsParse(I,yt,tt._strict);ne!=null?U[1]=ne:rt(tt).invalidMonth=I});var Ar=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),vn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Gt(I,U){var tt;if(!I.isValid())return I;if(typeof U=="string"){if(/^\d+$/.test(U))U=mt(U);else if(!E(U=I.localeData().monthsParse(U)))return I}return tt=Math.min(I.date(),Se(I.year(),U)),I._d["set"+(I._isUTC?"UTC":"")+"Month"](U,tt),I}function qr(I){return I!=null?(Gt(this,I),v.updateOffset(this,!0),this):Qe(this,"Month")}var Yr=ze,Gr=ze;function Dr(){function I(je,tr){return tr.length-je.length}var U,tt,yt=[],ne=[],Ce=[];for(U=0;U<12;U++)tt=J([2e3,U]),yt.push(this.monthsShort(tt,"")),ne.push(this.months(tt,"")),Ce.push(this.months(tt,"")),Ce.push(this.monthsShort(tt,""));for(yt.sort(I),ne.sort(I),Ce.sort(I),U=0;U<12;U++)yt[U]=br(yt[U]),ne[U]=br(ne[U]);for(U=0;U<24;U++)Ce[U]=br(Ce[U]);this._monthsRegex=new RegExp("^("+Ce.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+ne.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+yt.join("|")+")","i")}function Vr(I){var U;if(I<100&&0<=I){var tt=Array.prototype.slice.call(arguments);tt[0]=I+400,U=new Date(Date.UTC.apply(null,tt)),isFinite(U.getUTCFullYear())&&U.setUTCFullYear(I)}else U=new Date(Date.UTC.apply(null,arguments));return U}function zr(I,U,tt){var yt=7+U-tt;return-(7+Vr(I,0,yt).getUTCDay()-U)%7+yt-1}function Ir(I,U,tt,yt,ne){var Ce,je,tr=1+7*(U-1)+(7+tt-yt)%7+zr(I,yt,ne);return je=tr<=0?Er(Ce=I-1)+tr:tr>Er(I)?(Ce=I+1,tr-Er(I)):(Ce=I,tr),{year:Ce,dayOfYear:je}}function Ur(I,U,tt){var yt,ne,Ce=zr(I.year(),U,tt),je=Math.floor((I.dayOfYear()-Ce-1)/7)+1;return je<1?yt=je+jr(ne=I.year()-1,U,tt):je>jr(I.year(),U,tt)?(yt=je-jr(I.year(),U,tt),ne=I.year()+1):(ne=I.year(),yt=je),{week:yt,year:ne}}function jr(I,U,tt){var yt=zr(I,U,tt),ne=zr(I+1,U,tt);return(Er(I)-yt+ne)/7}function $r(I,U){return I.slice(U,7).concat(I.slice(0,U))}_e("w",["ww",2],"wo","week"),_e("W",["WW",2],"Wo","isoWeek"),Wt("week","w"),Wt("isoWeek","W"),fe("week",5),fe("isoWeek",5),be("w",ce),be("ww",ce,re),be("W",ce),be("WW",ce,re),$e(["w","ww","W","WW"],function(I,U,tt,yt){U[yt.substr(0,1)]=mt(I)}),_e("d",0,"do","day"),_e("dd",0,0,function(I){return this.localeData().weekdaysMin(this,I)}),_e("ddd",0,0,function(I){return this.localeData().weekdaysShort(this,I)}),_e("dddd",0,0,function(I){return this.localeData().weekdays(this,I)}),_e("e",0,0,"weekday"),_e("E",0,0,"isoWeekday"),Wt("day","d"),Wt("weekday","e"),Wt("isoWeekday","E"),fe("day",11),fe("weekday",11),fe("isoWeekday",11),be("d",ce),be("e",ce),be("E",ce),be("dd",function(I,U){return U.weekdaysMinRegex(I)}),be("ddd",function(I,U){return U.weekdaysShortRegex(I)}),be("dddd",function(I,U){return U.weekdaysRegex(I)}),$e(["dd","ddd","dddd"],function(I,U,tt,yt){var ne=tt._locale.weekdaysParse(I,yt,tt._strict);ne!=null?U.d=ne:rt(tt).invalidWeekday=I}),$e(["d","e","E"],function(I,U,tt,yt){U[yt]=mt(I)});var ga="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Mn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),An="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lr=ze,ui=ze,Fr=ze;function xn(){function I(mr,Tr){return Tr.length-mr.length}var U,tt,yt,ne,Ce,je=[],tr=[],er=[],fr=[];for(U=0;U<7;U++)tt=J([2e3,1]).day(U),yt=this.weekdaysMin(tt,""),ne=this.weekdaysShort(tt,""),Ce=this.weekdays(tt,""),je.push(yt),tr.push(ne),er.push(Ce),fr.push(yt),fr.push(ne),fr.push(Ce);for(je.sort(I),tr.sort(I),er.sort(I),fr.sort(I),U=0;U<7;U++)tr[U]=br(tr[U]),er[U]=br(er[U]),fr[U]=br(fr[U]);this._weekdaysRegex=new RegExp("^("+fr.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+er.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+tr.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+je.join("|")+")","i")}function Nn(){return this.hours()%12||12}function bn(I,U){_e(I,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),U)})}function Xn(I,U){return U._meridiemParse}_e("H",["HH",2],0,"hour"),_e("h",["hh",2],0,Nn),_e("k",["kk",2],0,function(){return this.hours()||24}),_e("hmm",0,0,function(){return""+Nn.apply(this)+xe(this.minutes(),2)}),_e("hmmss",0,0,function(){return""+Nn.apply(this)+xe(this.minutes(),2)+xe(this.seconds(),2)}),_e("Hmm",0,0,function(){return""+this.hours()+xe(this.minutes(),2)}),_e("Hmmss",0,0,function(){return""+this.hours()+xe(this.minutes(),2)+xe(this.seconds(),2)}),bn("a",!0),bn("A",!1),Wt("hour","h"),fe("hour",13),be("a",Xn),be("A",Xn),be("H",ce),be("h",ce),be("k",ce),be("HH",ce,re),be("hh",ce,re),be("kk",ce,re),be("hmm",st),be("hmmss",Te),be("Hmm",st),be("Hmmss",Te),sr(["H","HH"],3),sr(["k","kk"],function(I,U,tt){var yt=mt(I);U[3]=yt===24?0:yt}),sr(["a","A"],function(I,U,tt){tt._isPm=tt._locale.isPM(I),tt._meridiem=I}),sr(["h","hh"],function(I,U,tt){U[3]=mt(I),rt(tt).bigHour=!0}),sr("hmm",function(I,U,tt){var yt=I.length-2;U[3]=mt(I.substr(0,yt)),U[4]=mt(I.substr(yt)),rt(tt).bigHour=!0}),sr("hmmss",function(I,U,tt){var yt=I.length-4,ne=I.length-2;U[3]=mt(I.substr(0,yt)),U[4]=mt(I.substr(yt,2)),U[5]=mt(I.substr(ne)),rt(tt).bigHour=!0}),sr("Hmm",function(I,U,tt){var yt=I.length-2;U[3]=mt(I.substr(0,yt)),U[4]=mt(I.substr(yt))}),sr("Hmmss",function(I,U,tt){var yt=I.length-4,ne=I.length-2;U[3]=mt(I.substr(0,yt)),U[4]=mt(I.substr(yt,2)),U[5]=mt(I.substr(ne))});var Bt,In=Ie("Hours",!0),On={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Rt,monthsShort:vn,week:{dow:0,doy:6},weekdays:ga,weekdaysMin:An,weekdaysShort:Mn,meridiemParse:/[ap]\.?m?\.?/i},Zr={},ei={};function Hn(I){return I&&I.toLowerCase().replace("_","-")}function Bn(I){var U=null;if(!Zr[I]&&d&&d.exports)try{U=Bt._abbr,h(1748)("./"+I),ri(U)}catch{}return Zr[I]}function ri(I,U){var tt;return I&&((tt=M(U)?dn(I):Ca(I,U))?Bt=tt:typeof console<"u"&&console.warn&&console.warn("Locale "+I+" not found. Did you forget to load it?")),Bt._abbr}function Ca(I,U){if(U===null)return delete Zr[I],null;var tt,yt=On;if(U.abbr=I,Zr[I]!=null)q("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),yt=Zr[I]._config;else if(U.parentLocale!=null)if(Zr[U.parentLocale]!=null)yt=Zr[U.parentLocale]._config;else{if((tt=Bn(U.parentLocale))==null)return ei[U.parentLocale]||(ei[U.parentLocale]=[]),ei[U.parentLocale].push({name:I,config:U}),null;yt=tt._config}return Zr[I]=new St(W(yt,U)),ei[I]&&ei[I].forEach(function(ne){Ca(ne.name,ne.config)}),ri(I),Zr[I]}function dn(I){var U;if(I&&I._locale&&I._locale._abbr&&(I=I._locale._abbr),!I)return Bt;if(!_(I)){if(U=Bn(I))return U;I=[I]}return function(tt){for(var yt,ne,Ce,je,tr=0;tr<tt.length;){for(yt=(je=Hn(tt[tr]).split("-")).length,ne=(ne=Hn(tt[tr+1]))?ne.split("-"):null;0<yt;){if(Ce=Bn(je.slice(0,yt).join("-")))return Ce;if(ne&&ne.length>=yt&&Ct(je,ne,!0)>=yt-1)break;yt--}tr++}return Bt}(I)}function Si(I){var U,tt=I._a;return tt&&rt(I).overflow===-2&&(U=tt[1]<0||11<tt[1]?1:tt[2]<1||tt[2]>Se(tt[0],tt[1])?2:tt[3]<0||24<tt[3]||tt[3]===24&&(tt[4]!==0||tt[5]!==0||tt[6]!==0)?3:tt[4]<0||59<tt[4]?4:tt[5]<0||59<tt[5]?5:tt[6]<0||999<tt[6]?6:-1,rt(I)._overflowDayOfYear&&(U<0||2<U)&&(U=2),rt(I)._overflowWeeks&&U===-1&&(U=7),rt(I)._overflowWeekday&&U===-1&&(U=8),rt(I).overflow=U),I}function Ri(I,U,tt){return I!=null?I:U!=null?U:tt}function Ai(I){var U,tt,yt,ne,Ce,je=[];if(!I._d){var tr,er;for(tr=I,er=new Date(v.now()),yt=tr._useUTC?[er.getUTCFullYear(),er.getUTCMonth(),er.getUTCDate()]:[er.getFullYear(),er.getMonth(),er.getDate()],I._w&&I._a[2]==null&&I._a[1]==null&&function(fr){var mr,Tr,Cr,mn,on,Gn,yi,Vn;if((mr=fr._w).GG!=null||mr.W!=null||mr.E!=null)on=1,Gn=4,Tr=Ri(mr.GG,fr._a[0],Ur(wr(),1,4).year),Cr=Ri(mr.W,1),((mn=Ri(mr.E,1))<1||7<mn)&&(Vn=!0);else{on=fr._locale._week.dow,Gn=fr._locale._week.doy;var Ms=Ur(wr(),on,Gn);Tr=Ri(mr.gg,fr._a[0],Ms.year),Cr=Ri(mr.w,Ms.week),mr.d!=null?((mn=mr.d)<0||6<mn)&&(Vn=!0):mr.e!=null?(mn=mr.e+on,(mr.e<0||6<mr.e)&&(Vn=!0)):mn=on}Cr<1||Cr>jr(Tr,on,Gn)?rt(fr)._overflowWeeks=!0:Vn!=null?rt(fr)._overflowWeekday=!0:(yi=Ir(Tr,Cr,mn,on,Gn),fr._a[0]=yi.year,fr._dayOfYear=yi.dayOfYear)}(I),I._dayOfYear!=null&&(Ce=Ri(I._a[0],yt[0]),(I._dayOfYear>Er(Ce)||I._dayOfYear===0)&&(rt(I)._overflowDayOfYear=!0),tt=Vr(Ce,0,I._dayOfYear),I._a[1]=tt.getUTCMonth(),I._a[2]=tt.getUTCDate()),U=0;U<3&&I._a[U]==null;++U)I._a[U]=je[U]=yt[U];for(;U<7;U++)I._a[U]=je[U]=I._a[U]==null?U===2?1:0:I._a[U];I._a[3]===24&&I._a[4]===0&&I._a[5]===0&&I._a[6]===0&&(I._nextDay=!0,I._a[3]=0),I._d=(I._useUTC?Vr:function(fr,mr,Tr,Cr,mn,on,Gn){var yi;return fr<100&&0<=fr?(yi=new Date(fr+400,mr,Tr,Cr,mn,on,Gn),isFinite(yi.getFullYear())&&yi.setFullYear(fr)):yi=new Date(fr,mr,Tr,Cr,mn,on,Gn),yi}).apply(null,je),ne=I._useUTC?I._d.getUTCDay():I._d.getDay(),I._tzm!=null&&I._d.setUTCMinutes(I._d.getUTCMinutes()-I._tzm),I._nextDay&&(I._a[3]=24),I._w&&I._w.d!==void 0&&I._w.d!==ne&&(rt(I).weekdayMismatch=!0)}}var dr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xr=/Z|[+-]\d\d(?::?\d\d)?/,nr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ln=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Zt=/^\/?Date\((\-?\d+)/i;function Un(I){var U,tt,yt,ne,Ce,je,tr=I._i,er=dr.exec(tr)||yr.exec(tr);if(er){for(rt(I).iso=!0,U=0,tt=nr.length;U<tt;U++)if(nr[U][1].exec(er[1])){ne=nr[U][0],yt=nr[U][2]!==!1;break}if(ne==null)return void(I._isValid=!1);if(er[3]){for(U=0,tt=ln.length;U<tt;U++)if(ln[U][1].exec(er[3])){Ce=(er[2]||" ")+ln[U][0];break}if(Ce==null)return void(I._isValid=!1)}if(!yt&&Ce!=null)return void(I._isValid=!1);if(er[4]){if(!Xr.exec(er[4]))return void(I._isValid=!1);je="Z"}I._f=ne+(Ce||"")+(je||""),hi(I)}else I._isValid=!1}var te=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,wn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function oi(I){var U,tt,yt,ne=te.exec(I._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(ne){var Ce=function(je,tr,er,fr,mr,Tr){var Cr=[function(mn){var on=parseInt(mn,10);return on<=49?2e3+on:on<=999?1900+on:on}(je),vn.indexOf(tr),parseInt(er,10),parseInt(fr,10),parseInt(mr,10)];return Tr&&Cr.push(parseInt(Tr,10)),Cr}(ne[4],ne[3],ne[2],ne[5],ne[6],ne[7]);if(tt=Ce,yt=I,(U=ne[1])&&Mn.indexOf(U)!==new Date(tt[0],tt[1],tt[2]).getDay()&&(rt(yt).weekdayMismatch=!0,!(yt._isValid=!1)))return;I._a=Ce,I._tzm=function(je,tr,er){if(je)return wn[je];if(tr)return 0;var fr=parseInt(er,10),mr=fr%100;return(fr-mr)/100*60+mr}(ne[8],ne[9],ne[10]),I._d=Vr.apply(null,I._a),I._d.setUTCMinutes(I._d.getUTCMinutes()-I._tzm),rt(I).rfc2822=!0}else I._isValid=!1}function hi(I){if(I._f!==v.ISO_8601)if(I._f!==v.RFC_2822){I._a=[],rt(I).empty=!0;var U,tt,yt,ne,Ce,je,tr,er,fr=""+I._i,mr=fr.length,Tr=0;for(yt=Dt(I._f,I._locale).match(Me)||[],U=0;U<yt.length;U++)ne=yt[U],(tt=(fr.match(ae(ne,I))||[])[0])&&(0<(Ce=fr.substr(0,fr.indexOf(tt))).length&&rt(I).unusedInput.push(Ce),fr=fr.slice(fr.indexOf(tt)+tt.length),Tr+=tt.length),Sr[ne]?(tt?rt(I).empty=!1:rt(I).unusedTokens.push(ne),je=ne,er=I,(tr=tt)!=null&&z(qe,je)&&qe[je](tr,er._a,er,je)):I._strict&&!tt&&rt(I).unusedTokens.push(ne);rt(I).charsLeftOver=mr-Tr,0<fr.length&&rt(I).unusedInput.push(fr),I._a[3]<=12&&rt(I).bigHour===!0&&0<I._a[3]&&(rt(I).bigHour=void 0),rt(I).parsedDateParts=I._a.slice(0),rt(I).meridiem=I._meridiem,I._a[3]=function(Cr,mn,on){var Gn;return on==null?mn:Cr.meridiemHour!=null?Cr.meridiemHour(mn,on):(Cr.isPM!=null&&((Gn=Cr.isPM(on))&&mn<12&&(mn+=12),Gn||mn!==12||(mn=0)),mn)}(I._locale,I._a[3],I._meridiem),Ai(I),Si(I)}else oi(I);else Un(I)}function Na(I){var U,tt,yt,ne,Ce=I._i,je=I._f;return I._locale=I._locale||dn(I._l),Ce===null||je===void 0&&Ce===""?K({nullInput:!0}):(typeof Ce=="string"&&(I._i=Ce=I._locale.preparse(Ce)),zt(Ce)?new bt(Si(Ce)):(D(Ce)?I._d=Ce:_(je)?function(tr){var er,fr,mr,Tr,Cr;if(tr._f.length===0)return rt(tr).invalidFormat=!0,tr._d=new Date(NaN);for(Tr=0;Tr<tr._f.length;Tr++)Cr=0,er=at({},tr),tr._useUTC!=null&&(er._useUTC=tr._useUTC),er._f=tr._f[Tr],hi(er),dt(er)&&(Cr+=rt(er).charsLeftOver,Cr+=10*rt(er).unusedTokens.length,rt(er).score=Cr,(mr==null||Cr<mr)&&(mr=Cr,fr=er));H(tr,fr||er)}(I):je?hi(I):M(tt=(U=I)._i)?U._d=new Date(v.now()):D(tt)?U._d=new Date(tt.valueOf()):typeof tt=="string"?(yt=U,(ne=Zt.exec(yt._i))===null?(Un(yt),yt._isValid===!1&&(delete yt._isValid,oi(yt),yt._isValid===!1&&(delete yt._isValid,v.createFromInputFallback(yt)))):yt._d=new Date(+ne[1])):_(tt)?(U._a=B(tt.slice(0),function(tr){return parseInt(tr,10)}),Ai(U)):S(tt)?function(tr){if(!tr._d){var er=Ve(tr._i);tr._a=B([er.year,er.month,er.day||er.date,er.hour,er.minute,er.second,er.millisecond],function(fr){return fr&&parseInt(fr,10)}),Ai(tr)}}(U):E(tt)?U._d=new Date(tt):v.createFromInputFallback(U),dt(I)||(I._d=null),I))}function Bi(I,U,tt,yt,ne){var Ce,je={};return tt!==!0&&tt!==!1||(yt=tt,tt=void 0),(S(I)&&function(tr){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(tr).length===0;var er;for(er in tr)if(tr.hasOwnProperty(er))return!1;return!0}(I)||_(I)&&I.length===0)&&(I=void 0),je._isAMomentObject=!0,je._useUTC=je._isUTC=ne,je._l=tt,je._i=I,je._f=U,je._strict=yt,(Ce=new bt(Si(Na(je))))._nextDay&&(Ce.add(1,"d"),Ce._nextDay=void 0),Ce}function wr(I,U,tt,yt){return Bi(I,U,tt,yt,!1)}v.createFromInputFallback=gt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(I){I._d=new Date(I._i+(I._useUTC?" UTC":""))}),v.ISO_8601=function(){},v.RFC_2822=function(){};var Yn=gt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var I=wr.apply(null,arguments);return this.isValid()&&I.isValid()?I<this?this:I:K()}),Rr=gt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var I=wr.apply(null,arguments);return this.isValid()&&I.isValid()?this<I?this:I:K()});function ya(I,U){var tt,yt;if(U.length===1&&_(U[0])&&(U=U[0]),!U.length)return wr();for(tt=U[0],yt=1;yt<U.length;++yt)U[yt].isValid()&&!U[yt][I](tt)||(tt=U[yt]);return tt}var Fn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Fi(I){var U=Ve(I),tt=U.year||0,yt=U.quarter||0,ne=U.month||0,Ce=U.week||U.isoWeek||0,je=U.day||0,tr=U.hour||0,er=U.minute||0,fr=U.second||0,mr=U.millisecond||0;this._isValid=function(Tr){for(var Cr in Tr)if(Nr.call(Fn,Cr)===-1||Tr[Cr]!=null&&isNaN(Tr[Cr]))return!1;for(var mn=!1,on=0;on<Fn.length;++on)if(Tr[Fn[on]]){if(mn)return!1;parseFloat(Tr[Fn[on]])!==mt(Tr[Fn[on]])&&(mn=!0)}return!0}(U),this._milliseconds=+mr+1e3*fr+6e4*er+1e3*tr*60*60,this._days=+je+7*Ce,this._months=+ne+3*yt+12*tt,this._data={},this._locale=dn(),this._bubble()}function jn(I){return I instanceof Fi}function yn(I){return I<0?-1*Math.round(-1*I):Math.round(I)}function wi(I,U){_e(I,0,0,function(){var tt=this.utcOffset(),yt="+";return tt<0&&(tt=-tt,yt="-"),yt+xe(~~(tt/60),2)+U+xe(~~tt%60,2)})}wi("Z",":"),wi("ZZ",""),be("Z",Re),be("ZZ",Re),sr(["Z","ZZ"],function(I,U,tt){tt._useUTC=!0,tt._tzm=ni(Re,I)});var qn=/([\+\-]|\d\d)/gi;function ni(I,U){var tt=(U||"").match(I);if(tt===null)return null;var yt=((tt[tt.length-1]||[])+"").match(qn)||["-",0,0],ne=60*yt[1]+mt(yt[2]);return ne===0?0:yt[0]==="+"?ne:-ne}function Ji(I,U){var tt,yt;return U._isUTC?(tt=U.clone(),yt=(zt(I)||D(I)?I.valueOf():wr(I).valueOf())-tt.valueOf(),tt._d.setTime(tt._d.valueOf()+yt),v.updateOffset(tt,!1),tt):wr(I).local()}function Ci(I){return 15*-Math.round(I._d.getTimezoneOffset()/15)}function ii(){return!!this.isValid()&&this._isUTC&&this._offset===0}v.updateOffset=function(){};var ma=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Wn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Kn(I,U){var tt,yt,ne,Ce=I,je=null;return jn(I)?Ce={ms:I._milliseconds,d:I._days,M:I._months}:E(I)?(Ce={},U?Ce[U]=I:Ce.milliseconds=I):(je=ma.exec(I))?(tt=je[1]==="-"?-1:1,Ce={y:0,d:mt(je[2])*tt,h:mt(je[3])*tt,m:mt(je[4])*tt,s:mt(je[5])*tt,ms:mt(yn(1e3*je[6]))*tt}):(je=Wn.exec(I))?(tt=je[1]==="-"?-1:1,Ce={y:si(je[2],tt),M:si(je[3],tt),w:si(je[4],tt),d:si(je[5],tt),h:si(je[6],tt),m:si(je[7],tt),s:si(je[8],tt)}):Ce==null?Ce={}:typeof Ce=="object"&&("from"in Ce||"to"in Ce)&&(ne=function(tr,er){var fr;return tr.isValid()&&er.isValid()?(er=Ji(er,tr),tr.isBefore(er)?fr=Pi(tr,er):((fr=Pi(er,tr)).milliseconds=-fr.milliseconds,fr.months=-fr.months),fr):{milliseconds:0,months:0}}(wr(Ce.from),wr(Ce.to)),(Ce={}).ms=ne.milliseconds,Ce.M=ne.months),yt=new Fi(Ce),jn(I)&&z(I,"_locale")&&(yt._locale=I._locale),yt}function si(I,U){var tt=I&&parseFloat(I.replace(",","."));return(isNaN(tt)?0:tt)*U}function Pi(I,U){var tt={};return tt.months=U.month()-I.month()+12*(U.year()-I.year()),I.clone().add(tt.months,"M").isAfter(U)&&--tt.months,tt.milliseconds=+U-+I.clone().add(tt.months,"M"),tt}function Co(I,U){return function(tt,yt){var ne;return yt===null||isNaN(+yt)||(q(U,"moment()."+U+"(period, number) is deprecated. Please use moment()."+U+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),ne=tt,tt=yt,yt=ne),$i(this,Kn(tt=typeof tt=="string"?+tt:tt,yt),I),this}}function $i(I,U,tt,yt){var ne=U._milliseconds,Ce=yn(U._days),je=yn(U._months);I.isValid()&&(yt=yt==null||yt,je&&Gt(I,Qe(I,"Month")+je*tt),Ce&&rr(I,"Date",Qe(I,"Date")+Ce*tt),ne&&I._d.setTime(I._d.valueOf()+ne*tt),yt&&v.updateOffset(I,Ce||je))}Kn.fn=Fi.prototype,Kn.invalid=function(){return Kn(NaN)};var Jt=Co(1,"add"),kr=Co(-1,"subtract");function or(I,U){var tt=12*(U.year()-I.year())+(U.month()-I.month()),yt=I.clone().add(tt,"months");return-(tt+(U-yt<0?(U-yt)/(yt-I.clone().add(tt-1,"months")):(U-yt)/(I.clone().add(tt+1,"months")-yt)))||0}function an(I){var U;return I===void 0?this._locale._abbr:((U=dn(I))!=null&&(this._locale=U),this)}v.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",v.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $n=gt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(I){return I===void 0?this.localeData():this.locale(I)});function pi(){return this._locale}var Jn=126227808e5;function Hi(I,U){return(I%U+U)%U}function Qi(I,U,tt){return I<100&&0<=I?new Date(I+400,U,tt)-Jn:new Date(I,U,tt).valueOf()}function di(I,U,tt){return I<100&&0<=I?Date.UTC(I+400,U,tt)-Jn:Date.UTC(I,U,tt)}function Ka(I,U){_e(0,[I,I.length],0,U)}function as(I,U,tt,yt,ne){var Ce;return I==null?Ur(this,yt,ne).year:((Ce=jr(I,yt,ne))<U&&(U=Ce),function(je,tr,er,fr,mr){var Tr=Ir(je,tr,er,fr,mr),Cr=Vr(Tr.year,0,Tr.dayOfYear);return this.year(Cr.getUTCFullYear()),this.month(Cr.getUTCMonth()),this.date(Cr.getUTCDate()),this}.call(this,I,U,tt,yt,ne))}_e(0,["gg",2],0,function(){return this.weekYear()%100}),_e(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ka("gggg","weekYear"),Ka("ggggg","weekYear"),Ka("GGGG","isoWeekYear"),Ka("GGGGG","isoWeekYear"),Wt("weekYear","gg"),Wt("isoWeekYear","GG"),fe("weekYear",1),fe("isoWeekYear",1),be("G",lr),be("g",lr),be("GG",ce,re),be("gg",ce,re),be("GGGG",Pe,Ee),be("gggg",Pe,Ee),be("GGGGG",ar,Q),be("ggggg",ar,Q),$e(["gggg","ggggg","GGGG","GGGGG"],function(I,U,tt,yt){U[yt.substr(0,2)]=mt(I)}),$e(["gg","GG"],function(I,U,tt,yt){U[yt]=v.parseTwoDigitYear(I)}),_e("Q",0,"Qo","quarter"),Wt("quarter","Q"),fe("quarter",7),be("Q",he),sr("Q",function(I,U){U[1]=3*(mt(I)-1)}),_e("D",["DD",2],"Do","date"),Wt("date","D"),fe("date",9),be("D",ce),be("DD",ce,re),be("Do",function(I,U){return I?U._dayOfMonthOrdinalParse||U._ordinalParse:U._dayOfMonthOrdinalParseLenient}),sr(["D","DD"],2),sr("Do",function(I,U){U[2]=mt(I.match(ce)[0])});var pc=Ie("Date",!0);_e("DDD",["DDDD",3],"DDDo","dayOfYear"),Wt("dayOfYear","DDD"),fe("dayOfYear",4),be("DDD",ge),be("DDDD",At),sr(["DDD","DDDD"],function(I,U,tt){tt._dayOfYear=mt(I)}),_e("m",["mm",2],0,"minute"),Wt("minute","m"),fe("minute",14),be("m",ce),be("mm",ce,re),sr(["m","mm"],4);var tl=Ie("Minutes",!1);_e("s",["ss",2],0,"second"),Wt("second","s"),fe("second",15),be("s",ce),be("ss",ce,re),sr(["s","ss"],5);var Ia,Cs=Ie("Seconds",!1);for(_e("S",0,0,function(){return~~(this.millisecond()/100)}),_e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_e(0,["SSS",3],0,"millisecond"),_e(0,["SSSS",4],0,function(){return 10*this.millisecond()}),_e(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),_e(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),_e(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),_e(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),_e(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Wt("millisecond","ms"),fe("millisecond",16),be("S",ge,he),be("SS",ge,re),be("SSS",ge,At),Ia="SSSS";Ia.length<=9;Ia+="S")be(Ia,Ze);function su(I,U){U[6]=mt(1e3*("0."+I))}for(Ia="S";Ia.length<=9;Ia+="S")sr(Ia,su);var gc=Ie("Milliseconds",!1);_e("z",0,0,"zoneAbbr"),_e("zz",0,0,"zoneName");var ur=bt.prototype;function yc(I){return I}ur.add=Jt,ur.calendar=function(I,U){var tt=I||wr(),yt=Ji(tt,this).startOf("day"),ne=v.calendarFormat(this,yt)||"sameElse",Ce=U&&(wt(U[ne])?U[ne].call(this,tt):U[ne]);return this.format(Ce||this.localeData().calendar(ne,this,wr(tt)))},ur.clone=function(){return new bt(this)},ur.diff=function(I,U,tt){var yt,ne,Ce;if(!this.isValid())return NaN;if(!(yt=Ji(I,this)).isValid())return NaN;switch(ne=6e4*(yt.utcOffset()-this.utcOffset()),U=ye(U)){case"year":Ce=or(this,yt)/12;break;case"month":Ce=or(this,yt);break;case"quarter":Ce=or(this,yt)/3;break;case"second":Ce=(this-yt)/1e3;break;case"minute":Ce=(this-yt)/6e4;break;case"hour":Ce=(this-yt)/36e5;break;case"day":Ce=(this-yt-ne)/864e5;break;case"week":Ce=(this-yt-ne)/6048e5;break;default:Ce=this-yt}return tt?Ce:Tt(Ce)},ur.endOf=function(I){var U;if((I=ye(I))===void 0||I==="millisecond"||!this.isValid())return this;var tt=this._isUTC?di:Qi;switch(I){case"year":U=tt(this.year()+1,0,1)-1;break;case"quarter":U=tt(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":U=tt(this.year(),this.month()+1,1)-1;break;case"week":U=tt(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":U=tt(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":U=tt(this.year(),this.month(),this.date()+1)-1;break;case"hour":U=this._d.valueOf(),U+=36e5-Hi(U+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":U=this._d.valueOf(),U+=6e4-Hi(U,6e4)-1;break;case"second":U=this._d.valueOf(),U+=1e3-Hi(U,1e3)-1}return this._d.setTime(U),v.updateOffset(this,!0),this},ur.format=function(I){I||(I=this.isUtc()?v.defaultFormatUtc:v.defaultFormat);var U=Je(this,I);return this.localeData().postformat(U)},ur.from=function(I,U){return this.isValid()&&(zt(I)&&I.isValid()||wr(I).isValid())?Kn({to:this,from:I}).locale(this.locale()).humanize(!U):this.localeData().invalidDate()},ur.fromNow=function(I){return this.from(wr(),I)},ur.to=function(I,U){return this.isValid()&&(zt(I)&&I.isValid()||wr(I).isValid())?Kn({from:this,to:I}).locale(this.locale()).humanize(!U):this.localeData().invalidDate()},ur.toNow=function(I){return this.to(wr(),I)},ur.get=function(I){return wt(this[I=ye(I)])?this[I]():this},ur.invalidAt=function(){return rt(this).overflow},ur.isAfter=function(I,U){var tt=zt(I)?I:wr(I);return!(!this.isValid()||!tt.isValid())&&((U=ye(U)||"millisecond")==="millisecond"?this.valueOf()>tt.valueOf():tt.valueOf()<this.clone().startOf(U).valueOf())},ur.isBefore=function(I,U){var tt=zt(I)?I:wr(I);return!(!this.isValid()||!tt.isValid())&&((U=ye(U)||"millisecond")==="millisecond"?this.valueOf()<tt.valueOf():this.clone().endOf(U).valueOf()<tt.valueOf())},ur.isBetween=function(I,U,tt,yt){var ne=zt(I)?I:wr(I),Ce=zt(U)?U:wr(U);return!!(this.isValid()&&ne.isValid()&&Ce.isValid())&&((yt=yt||"()")[0]==="("?this.isAfter(ne,tt):!this.isBefore(ne,tt))&&(yt[1]===")"?this.isBefore(Ce,tt):!this.isAfter(Ce,tt))},ur.isSame=function(I,U){var tt,yt=zt(I)?I:wr(I);return!(!this.isValid()||!yt.isValid())&&((U=ye(U)||"millisecond")==="millisecond"?this.valueOf()===yt.valueOf():(tt=yt.valueOf(),this.clone().startOf(U).valueOf()<=tt&&tt<=this.clone().endOf(U).valueOf()))},ur.isSameOrAfter=function(I,U){return this.isSame(I,U)||this.isAfter(I,U)},ur.isSameOrBefore=function(I,U){return this.isSame(I,U)||this.isBefore(I,U)},ur.isValid=function(){return dt(this)},ur.lang=$n,ur.locale=an,ur.localeData=pi,ur.max=Rr,ur.min=Yn,ur.parsingFlags=function(){return H({},rt(this))},ur.set=function(I,U){if(typeof I=="object")for(var tt=function(ne){var Ce=[];for(var je in ne)Ce.push({unit:je,priority:ke[je]});return Ce.sort(function(tr,er){return tr.priority-er.priority}),Ce}(I=Ve(I)),yt=0;yt<tt.length;yt++)this[tt[yt].unit](I[tt[yt].unit]);else if(wt(this[I=ye(I)]))return this[I](U);return this},ur.startOf=function(I){var U;if((I=ye(I))===void 0||I==="millisecond"||!this.isValid())return this;var tt=this._isUTC?di:Qi;switch(I){case"year":U=tt(this.year(),0,1);break;case"quarter":U=tt(this.year(),this.month()-this.month()%3,1);break;case"month":U=tt(this.year(),this.month(),1);break;case"week":U=tt(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":U=tt(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":U=tt(this.year(),this.month(),this.date());break;case"hour":U=this._d.valueOf(),U-=Hi(U+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":U=this._d.valueOf(),U-=Hi(U,6e4);break;case"second":U=this._d.valueOf(),U-=Hi(U,1e3)}return this._d.setTime(U),v.updateOffset(this,!0),this},ur.subtract=kr,ur.toArray=function(){var I=this;return[I.year(),I.month(),I.date(),I.hour(),I.minute(),I.second(),I.millisecond()]},ur.toObject=function(){var I=this;return{years:I.year(),months:I.month(),date:I.date(),hours:I.hours(),minutes:I.minutes(),seconds:I.seconds(),milliseconds:I.milliseconds()}},ur.toDate=function(){return new Date(this.valueOf())},ur.toISOString=function(I){if(!this.isValid())return null;var U=I!==!0,tt=U?this.clone().utc():this;return tt.year()<0||9999<tt.year()?Je(tt,U?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):wt(Date.prototype.toISOString)?U?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Je(tt,"Z")):Je(tt,U?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ur.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I="moment",U="";this.isLocal()||(I=this.utcOffset()===0?"moment.utc":"moment.parseZone",U="Z");var tt="["+I+'("]',yt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ne=U+'[")]';return this.format(tt+yt+"-MM-DD[T]HH:mm:ss.SSS"+ne)},ur.toJSON=function(){return this.isValid()?this.toISOString():null},ur.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ur.unix=function(){return Math.floor(this.valueOf()/1e3)},ur.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ur.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ur.year=Br,ur.isLeapYear=function(){return Jr(this.year())},ur.weekYear=function(I){return as.call(this,I,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ur.isoWeekYear=function(I){return as.call(this,I,this.isoWeek(),this.isoWeekday(),1,4)},ur.quarter=ur.quarters=function(I){return I==null?Math.ceil((this.month()+1)/3):this.month(3*(I-1)+this.month()%3)},ur.month=qr,ur.daysInMonth=function(){return Se(this.year(),this.month())},ur.week=ur.weeks=function(I){var U=this.localeData().week(this);return I==null?U:this.add(7*(I-U),"d")},ur.isoWeek=ur.isoWeeks=function(I){var U=Ur(this,1,4).week;return I==null?U:this.add(7*(I-U),"d")},ur.weeksInYear=function(){var I=this.localeData()._week;return jr(this.year(),I.dow,I.doy)},ur.isoWeeksInYear=function(){return jr(this.year(),1,4)},ur.date=pc,ur.day=ur.days=function(I){if(!this.isValid())return I!=null?this:NaN;var U,tt,yt=this._isUTC?this._d.getUTCDay():this._d.getDay();return I!=null?(U=I,tt=this.localeData(),I=typeof U!="string"?U:isNaN(U)?typeof(U=tt.weekdaysParse(U))=="number"?U:null:parseInt(U,10),this.add(I-yt,"d")):yt},ur.weekday=function(I){if(!this.isValid())return I!=null?this:NaN;var U=(this.day()+7-this.localeData()._week.dow)%7;return I==null?U:this.add(I-U,"d")},ur.isoWeekday=function(I){if(!this.isValid())return I!=null?this:NaN;if(I==null)return this.day()||7;var U,tt,yt=(U=I,tt=this.localeData(),typeof U=="string"?tt.weekdaysParse(U)%7||7:isNaN(U)?null:U);return this.day(this.day()%7?yt:yt-7)},ur.dayOfYear=function(I){var U=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return I==null?U:this.add(I-U,"d")},ur.hour=ur.hours=In,ur.minute=ur.minutes=tl,ur.second=ur.seconds=Cs,ur.millisecond=ur.milliseconds=gc,ur.utcOffset=function(I,U,tt){var yt,ne=this._offset||0;if(!this.isValid())return I!=null?this:NaN;if(I==null)return this._isUTC?ne:Ci(this);if(typeof I=="string"){if((I=ni(Re,I))===null)return this}else Math.abs(I)<16&&!tt&&(I*=60);return!this._isUTC&&U&&(yt=Ci(this)),this._offset=I,this._isUTC=!0,yt!=null&&this.add(yt,"m"),ne!==I&&(!U||this._changeInProgress?$i(this,Kn(I-ne,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,v.updateOffset(this,!0),this._changeInProgress=null)),this},ur.utc=function(I){return this.utcOffset(0,I)},ur.local=function(I){return this._isUTC&&(this.utcOffset(0,I),this._isUTC=!1,I&&this.subtract(Ci(this),"m")),this},ur.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var I=ni(Ne,this._i);I!=null?this.utcOffset(I):this.utcOffset(0,!0)}return this},ur.hasAlignedHourOffset=function(I){return!!this.isValid()&&(I=I?wr(I).utcOffset():0,(this.utcOffset()-I)%60==0)},ur.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ur.isLocal=function(){return!!this.isValid()&&!this._isUTC},ur.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ur.isUtc=ii,ur.isUTC=ii,ur.zoneAbbr=function(){return this._isUTC?"UTC":""},ur.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ur.dates=gt("dates accessor is deprecated. Use date instead.",pc),ur.months=gt("months accessor is deprecated. Use month instead",qr),ur.years=gt("years accessor is deprecated. Use year instead",Br),ur.zone=gt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(I,U){return I!=null?(typeof I!="string"&&(I=-I),this.utcOffset(I,U),this):-this.utcOffset()}),ur.isDSTShifted=gt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!M(this._isDSTShifted))return this._isDSTShifted;var I={};if(at(I,this),(I=Na(I))._a){var U=I._isUTC?J(I._a):wr(I._a);this._isDSTShifted=this.isValid()&&0<Ct(I._a,U.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var kn=St.prototype;function ta(I,U,tt,yt){var ne=dn(),Ce=J().set(yt,U);return ne[tt](Ce,I)}function uo(I,U,tt){if(E(I)&&(U=I,I=void 0),I=I||"",U!=null)return ta(I,U,tt,"month");var yt,ne=[];for(yt=0;yt<12;yt++)ne[yt]=ta(I,yt,tt,"month");return ne}function La(I,U,tt,yt){typeof I=="boolean"?E(U)&&(tt=U,U=void 0):(U=I,I=!1,E(tt=U)&&(tt=U,U=void 0)),U=U||"";var ne,Ce=dn(),je=I?Ce._week.dow:0;if(tt!=null)return ta(U,(tt+je)%7,yt,"day");var tr=[];for(ne=0;ne<7;ne++)tr[ne]=ta(U,(ne+je)%7,yt,"day");return tr}kn.calendar=function(I,U,tt){var yt=this._calendar[I]||this._calendar.sameElse;return wt(yt)?yt.call(U,tt):yt},kn.longDateFormat=function(I){var U=this._longDateFormat[I],tt=this._longDateFormat[I.toUpperCase()];return U||!tt?U:(this._longDateFormat[I]=tt.replace(/MMMM|MM|DD|dddd/g,function(yt){return yt.slice(1)}),this._longDateFormat[I])},kn.invalidDate=function(){return this._invalidDate},kn.ordinal=function(I){return this._ordinal.replace("%d",I)},kn.preparse=yc,kn.postformat=yc,kn.relativeTime=function(I,U,tt,yt){var ne=this._relativeTime[tt];return wt(ne)?ne(I,U,tt,yt):ne.replace(/%d/i,I)},kn.pastFuture=function(I,U){var tt=this._relativeTime[0<I?"future":"past"];return wt(tt)?tt(U):tt.replace(/%s/i,U)},kn.set=function(I){var U,tt;for(tt in I)wt(U=I[tt])?this[tt]=U:this["_"+tt]=U;this._config=I,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kn.months=function(I,U){return I?_(this._months)?this._months[I.month()]:this._months[(this._months.isFormat||Ar).test(U)?"format":"standalone"][I.month()]:_(this._months)?this._months:this._months.standalone},kn.monthsShort=function(I,U){return I?_(this._monthsShort)?this._monthsShort[I.month()]:this._monthsShort[Ar.test(U)?"format":"standalone"][I.month()]:_(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kn.monthsParse=function(I,U,tt){var yt,ne,Ce;if(this._monthsParseExact)return function(je,tr,er){var fr,mr,Tr,Cr=je.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],fr=0;fr<12;++fr)Tr=J([2e3,fr]),this._shortMonthsParse[fr]=this.monthsShort(Tr,"").toLocaleLowerCase(),this._longMonthsParse[fr]=this.months(Tr,"").toLocaleLowerCase();return er?tr==="MMM"?(mr=Nr.call(this._shortMonthsParse,Cr))!==-1?mr:null:(mr=Nr.call(this._longMonthsParse,Cr))!==-1?mr:null:tr==="MMM"?(mr=Nr.call(this._shortMonthsParse,Cr))!==-1||(mr=Nr.call(this._longMonthsParse,Cr))!==-1?mr:null:(mr=Nr.call(this._longMonthsParse,Cr))!==-1||(mr=Nr.call(this._shortMonthsParse,Cr))!==-1?mr:null}.call(this,I,U,tt);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),yt=0;yt<12;yt++)if(ne=J([2e3,yt]),tt&&!this._longMonthsParse[yt]&&(this._longMonthsParse[yt]=new RegExp("^"+this.months(ne,"").replace(".","")+"$","i"),this._shortMonthsParse[yt]=new RegExp("^"+this.monthsShort(ne,"").replace(".","")+"$","i")),tt||this._monthsParse[yt]||(Ce="^"+this.months(ne,"")+"|^"+this.monthsShort(ne,""),this._monthsParse[yt]=new RegExp(Ce.replace(".",""),"i")),tt&&U==="MMMM"&&this._longMonthsParse[yt].test(I)||tt&&U==="MMM"&&this._shortMonthsParse[yt].test(I)||!tt&&this._monthsParse[yt].test(I))return yt},kn.monthsRegex=function(I){return this._monthsParseExact?(z(this,"_monthsRegex")||Dr.call(this),I?this._monthsStrictRegex:this._monthsRegex):(z(this,"_monthsRegex")||(this._monthsRegex=Gr),this._monthsStrictRegex&&I?this._monthsStrictRegex:this._monthsRegex)},kn.monthsShortRegex=function(I){return this._monthsParseExact?(z(this,"_monthsRegex")||Dr.call(this),I?this._monthsShortStrictRegex:this._monthsShortRegex):(z(this,"_monthsShortRegex")||(this._monthsShortRegex=Yr),this._monthsShortStrictRegex&&I?this._monthsShortStrictRegex:this._monthsShortRegex)},kn.week=function(I){return Ur(I,this._week.dow,this._week.doy).week},kn.firstDayOfYear=function(){return this._week.doy},kn.firstDayOfWeek=function(){return this._week.dow},kn.weekdays=function(I,U){var tt=_(this._weekdays)?this._weekdays:this._weekdays[I&&I!==!0&&this._weekdays.isFormat.test(U)?"format":"standalone"];return I===!0?$r(tt,this._week.dow):I?tt[I.day()]:tt},kn.weekdaysMin=function(I){return I===!0?$r(this._weekdaysMin,this._week.dow):I?this._weekdaysMin[I.day()]:this._weekdaysMin},kn.weekdaysShort=function(I){return I===!0?$r(this._weekdaysShort,this._week.dow):I?this._weekdaysShort[I.day()]:this._weekdaysShort},kn.weekdaysParse=function(I,U,tt){var yt,ne,Ce;if(this._weekdaysParseExact)return function(je,tr,er){var fr,mr,Tr,Cr=je.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],fr=0;fr<7;++fr)Tr=J([2e3,1]).day(fr),this._minWeekdaysParse[fr]=this.weekdaysMin(Tr,"").toLocaleLowerCase(),this._shortWeekdaysParse[fr]=this.weekdaysShort(Tr,"").toLocaleLowerCase(),this._weekdaysParse[fr]=this.weekdays(Tr,"").toLocaleLowerCase();return er?tr==="dddd"?(mr=Nr.call(this._weekdaysParse,Cr))!==-1?mr:null:tr==="ddd"?(mr=Nr.call(this._shortWeekdaysParse,Cr))!==-1?mr:null:(mr=Nr.call(this._minWeekdaysParse,Cr))!==-1?mr:null:tr==="dddd"?(mr=Nr.call(this._weekdaysParse,Cr))!==-1||(mr=Nr.call(this._shortWeekdaysParse,Cr))!==-1||(mr=Nr.call(this._minWeekdaysParse,Cr))!==-1?mr:null:tr==="ddd"?(mr=Nr.call(this._shortWeekdaysParse,Cr))!==-1||(mr=Nr.call(this._weekdaysParse,Cr))!==-1||(mr=Nr.call(this._minWeekdaysParse,Cr))!==-1?mr:null:(mr=Nr.call(this._minWeekdaysParse,Cr))!==-1||(mr=Nr.call(this._weekdaysParse,Cr))!==-1||(mr=Nr.call(this._shortWeekdaysParse,Cr))!==-1?mr:null}.call(this,I,U,tt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),yt=0;yt<7;yt++)if(ne=J([2e3,1]).day(yt),tt&&!this._fullWeekdaysParse[yt]&&(this._fullWeekdaysParse[yt]=new RegExp("^"+this.weekdays(ne,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[yt]=new RegExp("^"+this.weekdaysShort(ne,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[yt]=new RegExp("^"+this.weekdaysMin(ne,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[yt]||(Ce="^"+this.weekdays(ne,"")+"|^"+this.weekdaysShort(ne,"")+"|^"+this.weekdaysMin(ne,""),this._weekdaysParse[yt]=new RegExp(Ce.replace(".",""),"i")),tt&&U==="dddd"&&this._fullWeekdaysParse[yt].test(I)||tt&&U==="ddd"&&this._shortWeekdaysParse[yt].test(I)||tt&&U==="dd"&&this._minWeekdaysParse[yt].test(I)||!tt&&this._weekdaysParse[yt].test(I))return yt},kn.weekdaysRegex=function(I){return this._weekdaysParseExact?(z(this,"_weekdaysRegex")||xn.call(this),I?this._weekdaysStrictRegex:this._weekdaysRegex):(z(this,"_weekdaysRegex")||(this._weekdaysRegex=Lr),this._weekdaysStrictRegex&&I?this._weekdaysStrictRegex:this._weekdaysRegex)},kn.weekdaysShortRegex=function(I){return this._weekdaysParseExact?(z(this,"_weekdaysRegex")||xn.call(this),I?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(z(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ui),this._weekdaysShortStrictRegex&&I?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kn.weekdaysMinRegex=function(I){return this._weekdaysParseExact?(z(this,"_weekdaysRegex")||xn.call(this),I?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(z(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fr),this._weekdaysMinStrictRegex&&I?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kn.isPM=function(I){return(I+"").toLowerCase().charAt(0)==="p"},kn.meridiem=function(I,U,tt){return 11<I?tt?"pm":"PM":tt?"am":"AM"},ri("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(I){var U=I%10;return I+(mt(I%100/10)===1?"th":U===1?"st":U===2?"nd":U===3?"rd":"th")}}),v.lang=gt("moment.lang is deprecated. Use moment.locale instead.",ri),v.langData=gt("moment.langData is deprecated. Use moment.localeData instead.",dn);var Ma=Math.abs;function No(I,U,tt,yt){var ne=Kn(U,tt);return I._milliseconds+=yt*ne._milliseconds,I._days+=yt*ne._days,I._months+=yt*ne._months,I._bubble()}function mc(I){return I<0?Math.floor(I):Math.ceil(I)}function el(I){return 4800*I/146097}function Ns(I){return 146097*I/4800}function ja(I){return function(){return this.as(I)}}var _c=ja("ms"),Oa=ja("s"),bc=ja("m"),vc=ja("h"),ea=ja("d"),Is=ja("w"),Io=ja("M"),gi=ja("Q"),en=ja("y");function Pn(I){return function(){return this.isValid()?this._data[I]:NaN}}var ki=Pn("milliseconds"),rl=Pn("seconds"),Lo=Pn("minutes"),Ls=Pn("hours"),$a=Pn("days"),ho=Pn("months"),os=Pn("years"),zi=Math.round,vr={ss:44,s:45,m:45,h:22,d:26,M:11},_a=Math.abs;function qi(I){return(0<I)-(I<0)||+I}function ra(){if(!this.isValid())return this.localeData().invalidDate();var I,U,tt=_a(this._milliseconds)/1e3,yt=_a(this._days),ne=_a(this._months);U=Tt((I=Tt(tt/60))/60),tt%=60,I%=60;var Ce=Tt(ne/12),je=ne%=12,tr=yt,er=U,fr=I,mr=tt?tt.toFixed(3).replace(/\.?0+$/,""):"",Tr=this.asSeconds();if(!Tr)return"P0D";var Cr=Tr<0?"-":"",mn=qi(this._months)!==qi(Tr)?"-":"",on=qi(this._days)!==qi(Tr)?"-":"",Gn=qi(this._milliseconds)!==qi(Tr)?"-":"";return Cr+"P"+(Ce?mn+Ce+"Y":"")+(je?mn+je+"M":"")+(tr?on+tr+"D":"")+(er||fr||mr?"T":"")+(er?Gn+er+"H":"")+(fr?Gn+fr+"M":"")+(mr?Gn+mr+"S":"")}var Qr=Fi.prototype;return Qr.isValid=function(){return this._isValid},Qr.abs=function(){var I=this._data;return this._milliseconds=Ma(this._milliseconds),this._days=Ma(this._days),this._months=Ma(this._months),I.milliseconds=Ma(I.milliseconds),I.seconds=Ma(I.seconds),I.minutes=Ma(I.minutes),I.hours=Ma(I.hours),I.months=Ma(I.months),I.years=Ma(I.years),this},Qr.add=function(I,U){return No(this,I,U,1)},Qr.subtract=function(I,U){return No(this,I,U,-1)},Qr.as=function(I){if(!this.isValid())return NaN;var U,tt,yt=this._milliseconds;if((I=ye(I))==="month"||I==="quarter"||I==="year")switch(U=this._days+yt/864e5,tt=this._months+el(U),I){case"month":return tt;case"quarter":return tt/3;case"year":return tt/12}else switch(U=this._days+Math.round(Ns(this._months)),I){case"week":return U/7+yt/6048e5;case"day":return U+yt/864e5;case"hour":return 24*U+yt/36e5;case"minute":return 1440*U+yt/6e4;case"second":return 86400*U+yt/1e3;case"millisecond":return Math.floor(864e5*U)+yt;default:throw new Error("Unknown unit "+I)}},Qr.asMilliseconds=_c,Qr.asSeconds=Oa,Qr.asMinutes=bc,Qr.asHours=vc,Qr.asDays=ea,Qr.asWeeks=Is,Qr.asMonths=Io,Qr.asQuarters=gi,Qr.asYears=en,Qr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*mt(this._months/12):NaN},Qr._bubble=function(){var I,U,tt,yt,ne,Ce=this._milliseconds,je=this._days,tr=this._months,er=this._data;return 0<=Ce&&0<=je&&0<=tr||Ce<=0&&je<=0&&tr<=0||(Ce+=864e5*mc(Ns(tr)+je),tr=je=0),er.milliseconds=Ce%1e3,I=Tt(Ce/1e3),er.seconds=I%60,U=Tt(I/60),er.minutes=U%60,tt=Tt(U/60),er.hours=tt%24,tr+=ne=Tt(el(je+=Tt(tt/24))),je-=mc(Ns(ne)),yt=Tt(tr/12),tr%=12,er.days=je,er.months=tr,er.years=yt,this},Qr.clone=function(){return Kn(this)},Qr.get=function(I){return I=ye(I),this.isValid()?this[I+"s"]():NaN},Qr.milliseconds=ki,Qr.seconds=rl,Qr.minutes=Lo,Qr.hours=Ls,Qr.days=$a,Qr.weeks=function(){return Tt(this.days()/7)},Qr.months=ho,Qr.years=os,Qr.humanize=function(I){if(!this.isValid())return this.localeData().invalidDate();var U,tt,yt,ne,Ce,je,tr,er,fr,mr,Tr=this.localeData(),Cr=(U=!I,tt=Tr,yt=Kn(this).abs(),ne=zi(yt.as("s")),Ce=zi(yt.as("m")),je=zi(yt.as("h")),tr=zi(yt.as("d")),er=zi(yt.as("M")),fr=zi(yt.as("y")),(mr=ne<=vr.ss&&["s",ne]||ne<vr.s&&["ss",ne]||Ce<=1&&["m"]||Ce<vr.m&&["mm",Ce]||je<=1&&["h"]||je<vr.h&&["hh",je]||tr<=1&&["d"]||tr<vr.d&&["dd",tr]||er<=1&&["M"]||er<vr.M&&["MM",er]||fr<=1&&["y"]||["yy",fr])[2]=U,mr[3]=0<+this,mr[4]=tt,function(mn,on,Gn,yi,Vn){return Vn.relativeTime(on||1,!!Gn,mn,yi)}.apply(null,mr));return I&&(Cr=Tr.pastFuture(+this,Cr)),Tr.postformat(Cr)},Qr.toISOString=ra,Qr.toString=ra,Qr.toJSON=ra,Qr.locale=an,Qr.localeData=pi,Qr.toIsoString=gt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ra),Qr.lang=$n,_e("X",0,0,"unix"),_e("x",0,0,"valueOf"),be("x",lr),be("X",/[+-]?\d+(\.\d{1,3})?/),sr("X",function(I,U,tt){tt._d=new Date(1e3*parseFloat(I,10))}),sr("x",function(I,U,tt){tt._d=new Date(mt(I))}),v.version="2.24.0",m=wr,v.fn=ur,v.min=function(){return ya("isBefore",[].slice.call(arguments,0))},v.max=function(){return ya("isAfter",[].slice.call(arguments,0))},v.now=function(){return Date.now?Date.now():+new Date},v.utc=J,v.unix=function(I){return wr(1e3*I)},v.months=function(I,U){return uo(I,U,"months")},v.isDate=D,v.locale=ri,v.invalid=K,v.duration=Kn,v.isMoment=zt,v.weekdays=function(I,U,tt){return La(I,U,tt,"weekdays")},v.parseZone=function(){return wr.apply(null,arguments).parseZone()},v.localeData=dn,v.isDuration=jn,v.monthsShort=function(I,U){return uo(I,U,"monthsShort")},v.weekdaysMin=function(I,U,tt){return La(I,U,tt,"weekdaysMin")},v.defineLocale=Ca,v.updateLocale=function(I,U){if(U!=null){var tt,yt,ne=On;(yt=Bn(I))!=null&&(ne=yt._config),(tt=new St(U=W(ne,U))).parentLocale=Zr[I],Zr[I]=tt,ri(I)}else Zr[I]!=null&&(Zr[I].parentLocale!=null?Zr[I]=Zr[I].parentLocale:Zr[I]!=null&&delete Zr[I]);return Zr[I]},v.locales=function(){return et(Zr)},v.weekdaysShort=function(I,U,tt){return La(I,U,tt,"weekdaysShort")},v.normalizeUnits=ye,v.relativeTimeRounding=function(I){return I===void 0?zi:typeof I=="function"&&(zi=I,!0)},v.relativeTimeThreshold=function(I,U){return vr[I]!==void 0&&(U===void 0?vr[I]:(vr[I]=U,I==="s"&&(vr.ss=U-1),!0))},v.calendarFormat=function(I,U){var tt=I.diff(U,"days",!0);return tt<-6?"sameElse":tt<-1?"lastWeek":tt<0?"lastDay":tt<1?"sameDay":tt<2?"nextDay":tt<7?"nextWeek":"sameElse"},v.prototype=ur,v.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},v}()},6470:d=>{function b(f){if(typeof f!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(f))}function h(f,v){for(var _,S="",M=0,E=-1,D=0,B=0;B<=f.length;++B){if(B<f.length)_=f.charCodeAt(B);else{if(_===47)break;_=47}if(_===47){if(!(E===B-1||D===1))if(E!==B-1&&D===2){if(S.length<2||M!==2||S.charCodeAt(S.length-1)!==46||S.charCodeAt(S.length-2)!==46){if(S.length>2){var z=S.lastIndexOf("/");if(z!==S.length-1){z===-1?(S="",M=0):M=(S=S.slice(0,z)).length-1-S.lastIndexOf("/"),E=B,D=0;continue}}else if(S.length===2||S.length===1){S="",M=0,E=B,D=0;continue}}v&&(S.length>0?S+="/..":S="..",M=2)}else S.length>0?S+="/"+f.slice(E+1,B):S=f.slice(E+1,B),M=B-E-1;E=B,D=0}else _===46&&D!==-1?++D:D=-1}return S}var m={resolve:function(){for(var f,v="",_=!1,S=arguments.length-1;S>=-1&&!_;S--){var M;S>=0?M=arguments[S]:(f===void 0&&(f=process.cwd()),M=f),b(M),M.length!==0&&(v=M+"/"+v,_=M.charCodeAt(0)===47)}return v=h(v,!_),_?v.length>0?"/"+v:"/":v.length>0?v:"."},normalize:function(f){if(b(f),f.length===0)return".";var v=f.charCodeAt(0)===47,_=f.charCodeAt(f.length-1)===47;return(f=h(f,!v)).length!==0||v||(f="."),f.length>0&&_&&(f+="/"),v?"/"+f:f},isAbsolute:function(f){return b(f),f.length>0&&f.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var f,v=0;v<arguments.length;++v){var _=arguments[v];b(_),_.length>0&&(f===void 0?f=_:f+="/"+_)}return f===void 0?".":m.normalize(f)},relative:function(f,v){if(b(f),b(v),f===v||(f=m.resolve(f))===(v=m.resolve(v)))return"";for(var _=1;_<f.length&&f.charCodeAt(_)===47;++_);for(var S=f.length,M=S-_,E=1;E<v.length&&v.charCodeAt(E)===47;++E);for(var D=v.length-E,B=M<D?M:D,z=-1,H=0;H<=B;++H){if(H===B){if(D>B){if(v.charCodeAt(E+H)===47)return v.slice(E+H+1);if(H===0)return v.slice(E+H)}else M>B&&(f.charCodeAt(_+H)===47?z=H:H===0&&(z=0));break}var J=f.charCodeAt(_+H);if(J!==v.charCodeAt(E+H))break;J===47&&(z=H)}var rt="";for(H=_+z+1;H<=S;++H)H!==S&&f.charCodeAt(H)!==47||(rt.length===0?rt+="..":rt+="/..");return rt.length>0?rt+v.slice(E+z):(E+=z,v.charCodeAt(E)===47&&++E,v.slice(E))},_makeLong:function(f){return f},dirname:function(f){if(b(f),f.length===0)return".";for(var v=f.charCodeAt(0),_=v===47,S=-1,M=!0,E=f.length-1;E>=1;--E)if((v=f.charCodeAt(E))===47){if(!M){S=E;break}}else M=!1;return S===-1?_?"/":".":_&&S===1?"//":f.slice(0,S)},basename:function(f,v){if(v!==void 0&&typeof v!="string")throw new TypeError('"ext" argument must be a string');b(f);var _,S=0,M=-1,E=!0;if(v!==void 0&&v.length>0&&v.length<=f.length){if(v.length===f.length&&v===f)return"";var D=v.length-1,B=-1;for(_=f.length-1;_>=0;--_){var z=f.charCodeAt(_);if(z===47){if(!E){S=_+1;break}}else B===-1&&(E=!1,B=_+1),D>=0&&(z===v.charCodeAt(D)?--D==-1&&(M=_):(D=-1,M=B))}return S===M?M=B:M===-1&&(M=f.length),f.slice(S,M)}for(_=f.length-1;_>=0;--_)if(f.charCodeAt(_)===47){if(!E){S=_+1;break}}else M===-1&&(E=!1,M=_+1);return M===-1?"":f.slice(S,M)},extname:function(f){b(f);for(var v=-1,_=0,S=-1,M=!0,E=0,D=f.length-1;D>=0;--D){var B=f.charCodeAt(D);if(B!==47)S===-1&&(M=!1,S=D+1),B===46?v===-1?v=D:E!==1&&(E=1):v!==-1&&(E=-1);else if(!M){_=D+1;break}}return v===-1||S===-1||E===0||E===1&&v===S-1&&v===_+1?"":f.slice(v,S)},format:function(f){if(f===null||typeof f!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof f);return function(v,_){var S=_.dir||_.root,M=_.base||(_.name||"")+(_.ext||"");return S?S===_.root?S+M:S+"/"+M:M}(0,f)},parse:function(f){b(f);var v={root:"",dir:"",base:"",ext:"",name:""};if(f.length===0)return v;var _,S=f.charCodeAt(0),M=S===47;M?(v.root="/",_=1):_=0;for(var E=-1,D=0,B=-1,z=!0,H=f.length-1,J=0;H>=_;--H)if((S=f.charCodeAt(H))!==47)B===-1&&(z=!1,B=H+1),S===46?E===-1?E=H:J!==1&&(J=1):E!==-1&&(J=-1);else if(!z){D=H+1;break}return E===-1||B===-1||J===0||J===1&&E===B-1&&E===D+1?B!==-1&&(v.base=v.name=D===0&&M?f.slice(1,B):f.slice(D,B)):(D===0&&M?(v.name=f.slice(1,E),v.base=f.slice(1,B)):(v.name=f.slice(D,E),v.base=f.slice(D,B)),v.ext=f.slice(E,B)),D>0?v.dir=f.slice(0,D-1):M&&(v.dir="/"),v},sep:"/",delimiter:":",win32:null,posix:null};m.posix=m,d.exports=m},555:()=>{},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{},7543:(d,b,h)=>{function m(i,a){return i==null||a==null?NaN:i<a?-1:i>a?1:i>=a?0:NaN}function f(i){let a=i,s=i,u=i;function p(g,x,w=0,T=g.length){if(w<T){if(s(x,x)!==0)return T;do{const C=w+T>>>1;u(g[C],x)<0?w=C+1:T=C}while(w<T)}return w}return i.length!==2&&(a=(g,x)=>i(g)-x,s=m,u=(g,x)=>m(i(g),x)),{left:p,center:function(g,x,w=0,T=g.length){const C=p(g,x,w,T-1);return C>w&&a(g[C-1],x)>-a(g[C],x)?C-1:C},right:function(g,x,w=0,T=g.length){if(w<T){if(s(x,x)!==0)return T;do{const C=w+T>>>1;u(g[C],x)<=0?w=C+1:T=C}while(w<T)}return w}}}function v(i){return i===null?NaN:+i}h.r(b),h.d(b,{Adder:()=>bt,Delaunay:()=>Hu,FormatSpecifier:()=>jc,InternMap:()=>mt,InternSet:()=>Ct,Node:()=>Wc,Voronoi:()=>O1,ZoomTransform:()=>is,active:()=>cd,arc:()=>_v,area:()=>Zy,areaRadial:()=>Qy,ascending:()=>m,autoType:()=>Rl,axisBottom:()=>dn,axisLeft:()=>Si,axisRight:()=>Ca,axisTop:()=>ri,bin:()=>ar,bisect:()=>D,bisectCenter:()=>E,bisectLeft:()=>M,bisectRight:()=>S,bisector:()=>f,blob:()=>tc,brush:()=>ku,brushSelection:()=>y1,brushX:()=>m1,brushY:()=>_1,buffer:()=>G1,chord:()=>Au,chordDirected:()=>js,chordTranspose:()=>Cu,cluster:()=>I_,color:()=>Cr,contourDensity:()=>Pa,contours:()=>Vs,count:()=>B,create:()=>ov,creator:()=>No,cross:()=>rt,csv:()=>Fd,csvFormat:()=>Gu,csvFormatBody:()=>Vu,csvFormatRow:()=>P1,csvFormatRows:()=>F1,csvFormatValue:()=>Ol,csvParse:()=>vs,csvParseRows:()=>Js,cubehelix:()=>En,cumsum:()=>dt,curveBasis:()=>Fv,curveBasisClosed:()=>Pv,curveBasisOpen:()=>zv,curveBumpX:()=>Uv,curveBumpY:()=>Yv,curveBundle:()=>jv,curveCardinal:()=>$v,curveCardinalClosed:()=>Hv,curveCardinalOpen:()=>qv,curveCatmullRom:()=>Wv,curveCatmullRomClosed:()=>Gv,curveCatmullRomOpen:()=>Vv,curveLinear:()=>q0,curveLinearClosed:()=>Zv,curveMonotoneX:()=>Xv,curveMonotoneY:()=>Kv,curveNatural:()=>Jv,curveStep:()=>Qv,curveStepAfter:()=>e5,curveStepBefore:()=>t5,descending:()=>K,deviation:()=>at,difference:()=>Mn,disjoint:()=>An,dispatch:()=>ln,drag:()=>Nd,dragDisable:()=>ho,dragEnable:()=>os,dsv:()=>Z1,dsvFormat:()=>pe,easeBack:()=>nh,easeBackIn:()=>Bd,easeBackInOut:()=>nh,easeBackOut:()=>rh,easeBounce:()=>pn,easeBounceIn:()=>Rd,easeBounceInOut:()=>Fl,easeBounceOut:()=>pn,easeCircle:()=>q1,easeCircleIn:()=>H1,easeCircleInOut:()=>q1,easeCircleOut:()=>eh,easeCubic:()=>Us,easeCubicIn:()=>pl,easeCubicInOut:()=>Us,easeCubicOut:()=>gl,easeElastic:()=>ws,easeElasticIn:()=>ih,easeElasticInOut:()=>ah,easeElasticOut:()=>ws,easeExp:()=>th,easeExpIn:()=>Od,easeExpInOut:()=>th,easeExpOut:()=>Dd,easeLinear:()=>Bl,easePoly:()=>Ku,easePolyIn:()=>U1,easePolyInOut:()=>Ku,easePolyOut:()=>Y1,easeQuad:()=>Bc,easeQuadIn:()=>Zi,easeQuadInOut:()=>Bc,easeQuadOut:()=>Xu,easeSin:()=>Qu,easeSinIn:()=>$1,easeSinInOut:()=>Qu,easeSinOut:()=>wo,every:()=>zr,extent:()=>ot,fcumsum:()=>Tt,filter:()=>Ur,flatGroup:()=>Lt,flatRollup:()=>Wt,forceCenter:()=>X1,forceCollide:()=>Yl,forceLink:()=>J1,forceManyBody:()=>r0,forceRadial:()=>n0,forceSimulation:()=>e0,forceX:()=>Uc,forceY:()=>jd,format:()=>$l,formatDefaultLocale:()=>hh,formatLocale:()=>s0,formatPrefix:()=>Hl,formatSpecifier:()=>Eo,fsum:()=>zt,geoAlbers:()=>kp,geoAlbersUsa:()=>f_,geoArea:()=>Tn,geoAzimuthalEqualArea:()=>p_,geoAzimuthalEqualAreaRaw:()=>mf,geoAzimuthalEquidistant:()=>g_,geoAzimuthalEquidistantRaw:()=>_f,geoBounds:()=>Dm,geoCentroid:()=>Um,geoCircle:()=>Ym,geoClipAntimeridian:()=>Zd,geoClipCircle:()=>W2,geoClipExtent:()=>Hm,geoClipRectangle:()=>f0,geoConicConformal:()=>m_,geoConicConformalRaw:()=>Sp,geoConicEqualArea:()=>k0,geoConicEqualAreaRaw:()=>wp,geoConicEquidistant:()=>b_,geoConicEquidistantRaw:()=>Ap,geoContains:()=>Xm,geoDistance:()=>p0,geoEqualEarth:()=>v_,geoEqualEarthRaw:()=>bf,geoEquirectangular:()=>__,geoEquirectangularRaw:()=>Sh,geoGnomonic:()=>x_,geoGnomonicRaw:()=>vf,geoGraticule:()=>rp,geoGraticule10:()=>Km,geoIdentity:()=>w_,geoInterpolate:()=>Jm,geoLength:()=>G2,geoMercator:()=>y_,geoMercatorRaw:()=>Th,geoNaturalEarth1:()=>k_,geoNaturalEarth1Raw:()=>xf,geoOrthographic:()=>E_,geoOrthographicRaw:()=>wf,geoPath:()=>l_,geoProjection:()=>rs,geoProjectionMutator:()=>gf,geoRotation:()=>P2,geoStereographic:()=>T_,geoStereographicRaw:()=>kf,geoStream:()=>Nt,geoTransform:()=>u_,geoTransverseMercator:()=>S_,geoTransverseMercatorRaw:()=>Ef,gray:()=>pd,greatest:()=>Ar,greatestIndex:()=>Rt,group:()=>wt,groupSort:()=>Je,groups:()=>W,hcl:()=>Ba,hierarchy:()=>Tf,histogram:()=>ar,hsl:()=>Mo,html:()=>za,image:()=>zd,index:()=>ke,indexes:()=>fe,interpolate:()=>tn,interpolateArray:()=>td,interpolateBasis:()=>mi,interpolateBasisClosed:()=>hu,interpolateBlues:()=>Y4,interpolateBrBG:()=>v4,interpolateBuGn:()=>N4,interpolateBuPu:()=>I4,interpolateCividis:()=>G4,interpolateCool:()=>X4,interpolateCubehelix:()=>o3,interpolateCubehelixDefault:()=>V4,interpolateCubehelixLong:()=>M0,interpolateDate:()=>Xh,interpolateDiscrete:()=>Q_,interpolateGnBu:()=>L4,interpolateGreens:()=>j4,interpolateGreys:()=>$4,interpolateHcl:()=>i3,interpolateHclLong:()=>a3,interpolateHsl:()=>e3,interpolateHslLong:()=>r3,interpolateHue:()=>t3,interpolateInferno:()=>iv,interpolateLab:()=>n3,interpolateMagma:()=>nv,interpolateNumber:()=>la,interpolateNumberArray:()=>xc,interpolateObject:()=>na,interpolateOrRd:()=>M4,interpolateOranges:()=>W4,interpolatePRGn:()=>x4,interpolatePiYG:()=>w4,interpolatePlasma:()=>av,interpolatePuBu:()=>D4,interpolatePuBuGn:()=>O4,interpolatePuOr:()=>k4,interpolatePuRd:()=>R4,interpolatePurples:()=>H4,interpolateRainbow:()=>K4,interpolateRdBu:()=>E4,interpolateRdGy:()=>T4,interpolateRdPu:()=>B4,interpolateRdYlBu:()=>S4,interpolateRdYlGn:()=>A4,interpolateReds:()=>q4,interpolateRgb:()=>Ds,interpolateRgbBasis:()=>al,interpolateRgbBasisClosed:()=>Q0,interpolateRound:()=>L0,interpolateSinebow:()=>tv,interpolateSpectral:()=>C4,interpolateString:()=>Ha,interpolateTransformCss:()=>n1,interpolateTransformSvg:()=>ul,interpolateTurbo:()=>ev,interpolateViridis:()=>rv,interpolateWarm:()=>Z4,interpolateYlGn:()=>P4,interpolateYlGnBu:()=>F4,interpolateYlOrBr:()=>z4,interpolateYlOrRd:()=>U4,interpolateZoom:()=>Wp,interrupt:()=>eo,intersection:()=>Lr,interval:()=>m5,isoFormat:()=>p5,isoParse:()=>y5,json:()=>ko,lab:()=>Al,lch:()=>Yo,least:()=>rr,leastIndex:()=>Se,line:()=>p2,lineRadial:()=>Jy,linkHorizontal:()=>Cv,linkRadial:()=>Iv,linkVertical:()=>Nv,local:()=>qy,map:()=>jr,matcher:()=>hi,max:()=>Ze,maxIndex:()=>br,mean:()=>qe,median:()=>sr,merge:()=>$e,min:()=>lr,minIndex:()=>Er,mode:()=>Jr,namespace:()=>ii,namespaces:()=>Ci,nice:()=>ge,now:()=>Tc,pack:()=>z_,packEnclose:()=>Np,packSiblings:()=>F_,pairs:()=>Nr,partition:()=>U_,path:()=>gs,permute:()=>Oe,pie:()=>wv,piecewise:()=>Xp,pointRadial:()=>Hh,pointer:()=>ua,pointers:()=>cv,polygonArea:()=>c3,polygonCentroid:()=>l3,polygonContains:()=>f3,polygonHull:()=>d3,polygonLength:()=>p3,precisionFixed:()=>ql,precisionPrefix:()=>dh,precisionRound:()=>fh,quadtree:()=>zl,quantile:()=>ze,quantileSorted:()=>Fe,quantize:()=>s3,quickselect:()=>Ne,radialArea:()=>Qy,radialLine:()=>Jy,randomBates:()=>_3,randomBernoulli:()=>x3,randomBeta:()=>tg,randomBinomial:()=>eg,randomCauchy:()=>k3,randomExponential:()=>b3,randomGamma:()=>Of,randomGeometric:()=>Qp,randomInt:()=>y3,randomIrwinHall:()=>Jp,randomLcg:()=>S3,randomLogNormal:()=>m3,randomLogistic:()=>E3,randomNormal:()=>Mf,randomPareto:()=>v3,randomPoisson:()=>T3,randomUniform:()=>g3,randomWeibull:()=>w3,range:()=>Ie,rank:()=>Qe,reduce:()=>$r,reverse:()=>ga,rgb:()=>yi,ribbon:()=>k1,ribbonArrow:()=>E1,rollup:()=>ye,rollups:()=>Ve,scaleBand:()=>Bf,scaleDiverging:()=>gy,scaleDivergingLog:()=>yy,scaleDivergingPow:()=>l2,scaleDivergingSqrt:()=>l4,scaleDivergingSymlog:()=>my,scaleIdentity:()=>sg,scaleImplicit:()=>Df,scaleLinear:()=>og,scaleLog:()=>dg,scaleOrdinal:()=>Rf,scalePoint:()=>A3,scalePow:()=>jf,scaleQuantile:()=>bg,scaleQuantize:()=>vg,scaleRadial:()=>_g,scaleSequential:()=>hy,scaleSequentialLog:()=>dy,scaleSequentialPow:()=>c2,scaleSequentialQuantile:()=>py,scaleSequentialSqrt:()=>c4,scaleSequentialSymlog:()=>fy,scaleSqrt:()=>R3,scaleSymlog:()=>gg,scaleThreshold:()=>xg,scaleTime:()=>o4,scaleUtc:()=>s4,scan:()=>vn,schemeAccent:()=>h4,schemeBlues:()=>zy,schemeBrBG:()=>_y,schemeBuGn:()=>Ay,schemeBuPu:()=>Cy,schemeCategory10:()=>u4,schemeDark2:()=>d4,schemeGnBu:()=>Ny,schemeGreens:()=>Uy,schemeGreys:()=>Yy,schemeOrRd:()=>Iy,schemeOranges:()=>Hy,schemePRGn:()=>by,schemePaired:()=>f4,schemePastel1:()=>p4,schemePastel2:()=>g4,schemePiYG:()=>vy,schemePuBu:()=>My,schemePuBuGn:()=>Ly,schemePuOr:()=>xy,schemePuRd:()=>Oy,schemePurples:()=>jy,schemeRdBu:()=>wy,schemeRdGy:()=>ky,schemeRdPu:()=>Dy,schemeRdYlBu:()=>Ey,schemeRdYlGn:()=>Ty,schemeReds:()=>$y,schemeSet1:()=>y4,schemeSet2:()=>m4,schemeSet3:()=>_4,schemeSpectral:()=>Sy,schemeTableau10:()=>b4,schemeYlGn:()=>By,schemeYlGnBu:()=>Ry,schemeYlOrBr:()=>Fy,schemeYlOrRd:()=>Py,select:()=>ki,selectAll:()=>lv,selection:()=>Pn,selector:()=>Un,selectorAll:()=>oi,shuffle:()=>Gt,shuffler:()=>qr,some:()=>Ir,sort:()=>ve,stack:()=>i5,stackOffsetDiverging:()=>o5,stackOffsetExpand:()=>a5,stackOffsetNone:()=>iu,stackOffsetSilhouette:()=>s5,stackOffsetWiggle:()=>c5,stackOrderAppearance:()=>km,stackOrderAscending:()=>Em,stackOrderDescending:()=>u5,stackOrderInsideOut:()=>h5,stackOrderNone:()=>au,stackOrderReverse:()=>d5,stratify:()=>H_,style:()=>an,subset:()=>Nn,sum:()=>Yr,superset:()=>Fr,svg:()=>sh,symbol:()=>Bv,symbolCircle:()=>m2,symbolCross:()=>tm,symbolDiamond:()=>rm,symbolSquare:()=>am,symbolStar:()=>im,symbolTriangle:()=>om,symbolWye:()=>sm,symbols:()=>Rv,text:()=>Pc,thresholdFreedmanDiaconis:()=>be,thresholdScott:()=>ae,thresholdSturges:()=>Pe,tickFormat:()=>ag,tickIncrement:()=>st,tickStep:()=>Te,ticks:()=>ce,timeDay:()=>Bh,timeDays:()=>z3,timeFormat:()=>a2,timeFormatDefaultLocale:()=>uy,timeFormatLocale:()=>Vg,timeFriday:()=>Ig,timeFridays:()=>H3,timeHour:()=>Xf,timeHours:()=>P3,timeInterval:()=>Yi,timeMillisecond:()=>Vf,timeMilliseconds:()=>wg,timeMinute:()=>Zf,timeMinutes:()=>F3,timeMonday:()=>Fh,timeMondays:()=>U3,timeMonth:()=>Kf,timeMonths:()=>W3,timeParse:()=>Zg,timeSaturday:()=>Lg,timeSaturdays:()=>q3,timeSecond:()=>ac,timeSeconds:()=>Eg,timeSunday:()=>tu,timeSundays:()=>Mg,timeThursday:()=>Zc,timeThursdays:()=>$3,timeTickInterval:()=>Gg,timeTicks:()=>Wg,timeTuesday:()=>Cg,timeTuesdays:()=>Y3,timeWednesday:()=>Ng,timeWednesdays:()=>j3,timeWeek:()=>tu,timeWeeks:()=>Mg,timeYear:()=>oc,timeYears:()=>G3,timeout:()=>cl,timer:()=>Ro,timerFlush:()=>Bs,transition:()=>dl,transpose:()=>Gr,tree:()=>V_,treemap:()=>Z_,treemapBinary:()=>X_,treemapDice:()=>Mh,treemapResquarify:()=>J_,treemapSlice:()=>I0,treemapSliceDice:()=>K_,treemapSquarify:()=>Hp,tsv:()=>Pd,tsvFormat:()=>Rc,tsvFormatBody:()=>Ld,tsvFormatRow:()=>Zu,tsvFormatRows:()=>z1,tsvFormatValue:()=>Dl,tsvParse:()=>Va,tsvParseRows:()=>Id,union:()=>bn,utcDay:()=>Ph,utcDays:()=>X3,utcFormat:()=>B0,utcFriday:()=>zg,utcFridays:()=>eb,utcHour:()=>t2,utcHours:()=>Z3,utcMillisecond:()=>Vf,utcMilliseconds:()=>wg,utcMinute:()=>Qf,utcMinutes:()=>V3,utcMonday:()=>zh,utcMondays:()=>K3,utcMonth:()=>e2,utcMonths:()=>nb,utcParse:()=>o2,utcSaturday:()=>Ug,utcSaturdays:()=>rb,utcSecond:()=>ac,utcSeconds:()=>Eg,utcSunday:()=>eu,utcSundays:()=>Yg,utcThursday:()=>Kc,utcThursdays:()=>tb,utcTickInterval:()=>qg,utcTicks:()=>Hg,utcTuesday:()=>Fg,utcTuesdays:()=>J3,utcWednesday:()=>Pg,utcWednesdays:()=>Q3,utcWeek:()=>eu,utcWeeks:()=>Yg,utcYear:()=>sc,utcYears:()=>ib,variance:()=>_t,window:()=>$i,xml:()=>ks,zip:()=>Vr,zoom:()=>E5,zoomIdentity:()=>J0,zoomTransform:()=>Am});const _=f(m),S=_.right,M=_.left,E=f(v).center,D=S;function B(i,a){let s=0;if(a===void 0)for(let u of i)u!=null&&(u=+u)>=u&&++s;else{let u=-1;for(let p of i)(p=a(p,++u,i))!=null&&(p=+p)>=p&&++s}return s}function z(i){return 0|i.length}function H(i){return!(i>0)}function J(i){return typeof i!="object"||"length"in i?i:Array.from(i)}function rt(...i){const a=typeof i[i.length-1]=="function"&&function(x){return w=>x(...w)}(i.pop()),s=(i=i.map(J)).map(z),u=i.length-1,p=new Array(u+1).fill(0),g=[];if(u<0||s.some(H))return g;for(;;){g.push(p.map((w,T)=>i[T][w]));let x=u;for(;++p[x]===s[x];){if(x===0)return a?g.map(a):g;p[x--]=0}}}function dt(i,a){var s=0,u=0;return Float64Array.from(i,a===void 0?p=>s+=+p||0:p=>s+=+a(p,u++,i)||0)}function K(i,a){return i==null||a==null?NaN:a<i?-1:a>i?1:a>=i?0:NaN}function _t(i,a){let s,u=0,p=0,g=0;if(a===void 0)for(let x of i)x!=null&&(x=+x)>=x&&(s=x-p,p+=s/++u,g+=s*(x-p));else{let x=-1;for(let w of i)(w=a(w,++x,i))!=null&&(w=+w)>=w&&(s=w-p,p+=s/++u,g+=s*(w-p))}if(u>1)return g/(u-1)}function at(i,a){const s=_t(i,a);return s&&Math.sqrt(s)}function ot(i,a){let s,u;if(a===void 0)for(const p of i)p!=null&&(s===void 0?p>=p&&(s=u=p):(s>p&&(s=p),u<p&&(u=p)));else{let p=-1;for(let g of i)(g=a(g,++p,i))!=null&&(s===void 0?g>=g&&(s=u=g):(s>g&&(s=g),u<g&&(u=g)))}return[s,u]}class bt{constructor(){this._partials=new Float64Array(32),this._n=0}add(a){const s=this._partials;let u=0;for(let p=0;p<this._n&&p<32;p++){const g=s[p],x=a+g,w=Math.abs(a)<Math.abs(g)?a-(x-g):g-(x-a);w&&(s[u++]=w),a=x}return s[u]=a,this._n=u+1,this}valueOf(){const a=this._partials;let s,u,p,g=this._n,x=0;if(g>0){for(x=a[--g];g>0&&(s=x,u=a[--g],x=s+u,p=u-(x-s),!p););g>0&&(p<0&&a[g-1]<0||p>0&&a[g-1]>0)&&(u=2*p,s=x+u,u==s-x&&(x=s))}return x}}function zt(i,a){const s=new bt;if(a===void 0)for(let u of i)(u=+u)&&s.add(u);else{let u=-1;for(let p of i)(p=+a(p,++u,i))&&s.add(p)}return+s}function Tt(i,a){const s=new bt;let u=-1;return Float64Array.from(i,a===void 0?p=>s.add(+p||0):p=>s.add(+a(p,++u,i)||0))}class mt extends Map{constructor(a,s=ft){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:s}}),a!=null)for(const[u,p]of a)this.set(u,p)}get(a){return super.get(xt(this,a))}has(a){return super.has(xt(this,a))}set(a,s){return super.set(gt(this,a),s)}delete(a){return super.delete(et(this,a))}}class Ct extends Set{constructor(a,s=ft){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:s}}),a!=null)for(const u of a)this.add(u)}has(a){return super.has(xt(this,a))}add(a){return super.add(gt(this,a))}delete(a){return super.delete(et(this,a))}}function xt({_intern:i,_key:a},s){const u=a(s);return i.has(u)?i.get(u):s}function gt({_intern:i,_key:a},s){const u=a(s);return i.has(u)?i.get(u):(i.set(u,s),s)}function et({_intern:i,_key:a},s){const u=a(s);return i.has(u)&&(s=i.get(u),i.delete(u)),s}function ft(i){return i!==null&&typeof i=="object"?i.valueOf():i}function q(i){return i}function wt(i,...a){return Me(i,q,q,a)}function W(i,...a){return Me(i,Array.from,q,a)}function St(i,a){for(let s=1,u=a.length;s<u;++s)i=i.flatMap(p=>p.pop().map(([g,x])=>[...p,g,x]));return i}function Lt(i,...a){return St(W(i,...a),a)}function Wt(i,a,...s){return St(Ve(i,a,...s),s)}function ye(i,a,...s){return Me(i,q,a,s)}function Ve(i,a,...s){return Me(i,Array.from,a,s)}function ke(i,...a){return Me(i,q,xe,a)}function fe(i,...a){return Me(i,Array.from,xe,a)}function xe(i){if(i.length!==1)throw new Error("duplicate key");return i[0]}function Me(i,a,s,u){return function p(g,x){if(x>=u.length)return s(g);const w=new mt,T=u[x++];let C=-1;for(const R of g){const j=T(R,++C,g),F=w.get(j);F?F.push(R):w.set(j,[R])}for(const[R,j]of w)w.set(R,p(j,x));return a(w)}(i,0)}function Oe(i,a){return Array.from(a,s=>i[s])}function ve(i,...a){if(typeof i[Symbol.iterator]!="function")throw new TypeError("values is not iterable");i=Array.from(i);let[s]=a;if(s&&s.length!==2||a.length>1){const u=Uint32Array.from(i,(p,g)=>g);return a.length>1?(a=a.map(p=>i.map(p)),u.sort((p,g)=>{for(const x of a){const w=_e(x[p],x[g]);if(w)return w}})):(s=i.map(s),u.sort((p,g)=>_e(s[p],s[g]))),Oe(i,u)}return i.sort(Sr(s))}function Sr(i=m){if(i===m)return _e;if(typeof i!="function")throw new TypeError("compare is not a function");return(a,s)=>{const u=i(a,s);return u||u===0?u:(i(s,s)===0)-(i(a,a)===0)}}function _e(i,a){return(i==null||!(i>=i))-(a==null||!(a>=a))||(i<a?-1:i>a?1:0)}function Je(i,a,s){return(a.length!==2?ve(ye(i,a,s),([u,p],[g,x])=>m(p,x)||m(u,g)):ve(wt(i,s),([u,p],[g,x])=>a(p,x)||m(u,g))).map(([u])=>u)}var Dt=Array.prototype,he=Dt.slice;function re(i){return()=>i}var At=Math.sqrt(50),Ee=Math.sqrt(10),Q=Math.sqrt(2);function ce(i,a,s){var u,p,g,x,w=-1;if(s=+s,(i=+i)==(a=+a)&&s>0)return[i];if((u=a<i)&&(p=i,i=a,a=p),(x=st(i,a,s))===0||!isFinite(x))return[];if(x>0){let T=Math.round(i/x),C=Math.round(a/x);for(T*x<i&&++T,C*x>a&&--C,g=new Array(p=C-T+1);++w<p;)g[w]=(T+w)*x}else{x=-x;let T=Math.round(i*x),C=Math.round(a*x);for(T/x<i&&++T,C/x>a&&--C,g=new Array(p=C-T+1);++w<p;)g[w]=(T+w)/x}return u&&g.reverse(),g}function st(i,a,s){var u=(a-i)/Math.max(0,s),p=Math.floor(Math.log(u)/Math.LN10),g=u/Math.pow(10,p);return p>=0?(g>=At?10:g>=Ee?5:g>=Q?2:1)*Math.pow(10,p):-Math.pow(10,-p)/(g>=At?10:g>=Ee?5:g>=Q?2:1)}function Te(i,a,s){var u=Math.abs(a-i)/Math.max(0,s),p=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),g=u/p;return g>=At?p*=10:g>=Ee?p*=5:g>=Q&&(p*=2),a<i?-p:p}function ge(i,a,s){let u;for(;;){const p=st(i,a,s);if(p===u||p===0||!isFinite(p))return[i,a];p>0?(i=Math.floor(i/p)*p,a=Math.ceil(a/p)*p):p<0&&(i=Math.ceil(i*p)/p,a=Math.floor(a*p)/p),u=p}}function Pe(i){return Math.ceil(Math.log(B(i))/Math.LN2)+1}function ar(){var i=q,a=ot,s=Pe;function u(p){Array.isArray(p)||(p=Array.from(p));var g,x,w=p.length,T=new Array(w);for(g=0;g<w;++g)T[g]=i(p[g],g,p);var C=a(T),R=C[0],j=C[1],F=s(T,R,j);if(!Array.isArray(F)){const V=j,X=+F;if(a===ot&&([R,j]=ge(R,j,X)),(F=ce(R,j,X))[F.length-1]>=j)if(V>=j&&a===ot){const pt=st(R,j,X);isFinite(pt)&&(pt>0?j=(Math.floor(j/pt)+1)*pt:pt<0&&(j=(Math.ceil(j*-pt)+1)/-pt))}else F.pop()}for(var $=F.length;F[0]<=R;)F.shift(),--$;for(;F[$-1]>j;)F.pop(),--$;var it,G=new Array($+1);for(g=0;g<=$;++g)(it=G[g]=[]).x0=g>0?F[g-1]:R,it.x1=g<$?F[g]:j;for(g=0;g<w;++g)(x=T[g])!=null&&R<=x&&x<=j&&G[D(F,x,0,$)].push(p[g]);return G}return u.value=function(p){return arguments.length?(i=typeof p=="function"?p:re(p),u):i},u.domain=function(p){return arguments.length?(a=typeof p=="function"?p:re([p[0],p[1]]),u):a},u.thresholds=function(p){return arguments.length?(s=typeof p=="function"?p:Array.isArray(p)?re(he.call(p)):re(p),u):s},u}function Ze(i,a){let s;if(a===void 0)for(const u of i)u!=null&&(s<u||s===void 0&&u>=u)&&(s=u);else{let u=-1;for(let p of i)(p=a(p,++u,i))!=null&&(s<p||s===void 0&&p>=p)&&(s=p)}return s}function lr(i,a){let s;if(a===void 0)for(const u of i)u!=null&&(s>u||s===void 0&&u>=u)&&(s=u);else{let u=-1;for(let p of i)(p=a(p,++u,i))!=null&&(s>p||s===void 0&&p>=p)&&(s=p)}return s}function Ne(i,a,s=0,u=i.length-1,p){for(p=p===void 0?_e:Sr(p);u>s;){if(u-s>600){const T=u-s+1,C=a-s+1,R=Math.log(T),j=.5*Math.exp(2*R/3),F=.5*Math.sqrt(R*j*(T-j)/T)*(C-T/2<0?-1:1);Ne(i,a,Math.max(s,Math.floor(a-C*j/T+F)),Math.min(u,Math.floor(a+(T-C)*j/T+F)),p)}const g=i[a];let x=s,w=u;for(Re(i,s,a),p(i[u],g)>0&&Re(i,s,u);x<w;){for(Re(i,x,w),++x,--w;p(i[x],g)<0;)++x;for(;p(i[w],g)>0;)--w}p(i[s],g)===0?Re(i,s,w):(++w,Re(i,w,u)),w<=a&&(s=w+1),a<=w&&(u=w-1)}return i}function Re(i,a,s){const u=i[a];i[a]=i[s],i[s]=u}function ze(i,a,s){if(i=Float64Array.from(function*(w,T){if(T===void 0)for(let C of w)C!=null&&(C=+C)>=C&&(yield C);else{let C=-1;for(let R of w)(R=T(R,++C,w))!=null&&(R=+R)>=R&&(yield R)}}(i,s)),u=i.length){if((a=+a)<=0||u<2)return lr(i);if(a>=1)return Ze(i);var u,p=(u-1)*a,g=Math.floor(p),x=Ze(Ne(i,g).subarray(0,g+1));return x+(lr(i.subarray(g+1))-x)*(p-g)}}function Fe(i,a,s=v){if(u=i.length){if((a=+a)<=0||u<2)return+s(i[0],0,i);if(a>=1)return+s(i[u-1],u-1,i);var u,p=(u-1)*a,g=Math.floor(p),x=+s(i[g],g,i);return x+(+s(i[g+1],g+1,i)-x)*(p-g)}}function be(i,a,s){return Math.ceil((s-a)/(2*(ze(i,.75)-ze(i,.25))*Math.pow(B(i),-1/3)))}function ae(i,a,s){return Math.ceil((s-a)/(3.5*at(i)*Math.pow(B(i),-1/3)))}function br(i,a){let s,u=-1,p=-1;if(a===void 0)for(const g of i)++p,g!=null&&(s<g||s===void 0&&g>=g)&&(s=g,u=p);else for(let g of i)(g=a(g,++p,i))!=null&&(s<g||s===void 0&&g>=g)&&(s=g,u=p);return u}function qe(i,a){let s=0,u=0;if(a===void 0)for(let p of i)p!=null&&(p=+p)>=p&&(++s,u+=p);else{let p=-1;for(let g of i)(g=a(g,++p,i))!=null&&(g=+g)>=g&&(++s,u+=g)}if(s)return u/s}function sr(i,a){return ze(i,.5,a)}function $e(i){return Array.from(function*(a){for(const s of a)yield*s}(i))}function Er(i,a){let s,u=-1,p=-1;if(a===void 0)for(const g of i)++p,g!=null&&(s>g||s===void 0&&g>=g)&&(s=g,u=p);else for(let g of i)(g=a(g,++p,i))!=null&&(s>g||s===void 0&&g>=g)&&(s=g,u=p);return u}function Jr(i,a){const s=new mt;if(a===void 0)for(let g of i)g!=null&&g>=g&&s.set(g,(s.get(g)||0)+1);else{let g=-1;for(let x of i)(x=a(x,++g,i))!=null&&x>=x&&s.set(x,(s.get(x)||0)+1)}let u,p=0;for(const[g,x]of s)x>p&&(p=x,u=g);return u}function Nr(i,a=Br){const s=[];let u,p=!1;for(const g of i)p&&s.push(a(u,g)),u=g,p=!0;return s}function Br(i,a){return[i,a]}function Ie(i,a,s){i=+i,a=+a,s=(p=arguments.length)<2?(a=i,i=0,1):p<3?1:+s;for(var u=-1,p=0|Math.max(0,Math.ceil((a-i)/s)),g=new Array(p);++u<p;)g[u]=i+u*s;return g}function Qe(i,a=m){if(typeof i[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let s=Array.from(i);const u=new Float64Array(s.length);a.length!==2&&(s=s.map(a),a=m);const p=(w,T)=>a(s[w],s[T]);let g,x;return Uint32Array.from(s,(w,T)=>T).sort(a===m?(w,T)=>_e(s[w],s[T]):Sr(p)).forEach((w,T)=>{const C=p(w,g===void 0?w:g);C>=0?((g===void 0||C>0)&&(g=w,x=T),u[w]=x):u[w]=NaN}),u}function rr(i,a=m){let s,u=!1;if(a.length===1){let p;for(const g of i){const x=a(g);(u?m(x,p)<0:m(x,x)===0)&&(s=g,p=x,u=!0)}}else for(const p of i)(u?a(p,s)<0:a(p,p)===0)&&(s=p,u=!0);return s}function Se(i,a=m){if(a.length===1)return Er(i,a);let s,u=-1,p=-1;for(const g of i)++p,(u<0?a(g,g)===0:a(g,s)<0)&&(s=g,u=p);return u}function Ar(i,a=m){let s,u=!1;if(a.length===1){let p;for(const g of i){const x=a(g);(u?m(x,p)>0:m(x,x)===0)&&(s=g,p=x,u=!0)}}else for(const p of i)(u?a(p,s)>0:a(p,p)===0)&&(s=p,u=!0);return s}function Rt(i,a=m){if(a.length===1)return br(i,a);let s,u=-1,p=-1;for(const g of i)++p,(u<0?a(g,g)===0:a(g,s)>0)&&(s=g,u=p);return u}function vn(i,a){const s=Se(i,a);return s<0?void 0:s}const Gt=qr(Math.random);function qr(i){return function(a,s=0,u=a.length){let p=u-(s=+s);for(;p;){const g=i()*p--|0,x=a[p+s];a[p+s]=a[g+s],a[g+s]=x}return a}}function Yr(i,a){let s=0;if(a===void 0)for(let u of i)(u=+u)&&(s+=u);else{let u=-1;for(let p of i)(p=+a(p,++u,i))&&(s+=p)}return s}function Gr(i){if(!(p=i.length))return[];for(var a=-1,s=lr(i,Dr),u=new Array(s);++a<s;)for(var p,g=-1,x=u[a]=new Array(p);++g<p;)x[g]=i[g][a];return u}function Dr(i){return i.length}function Vr(){return Gr(arguments)}function zr(i,a){if(typeof a!="function")throw new TypeError("test is not a function");let s=-1;for(const u of i)if(!a(u,++s,i))return!1;return!0}function Ir(i,a){if(typeof a!="function")throw new TypeError("test is not a function");let s=-1;for(const u of i)if(a(u,++s,i))return!0;return!1}function Ur(i,a){if(typeof a!="function")throw new TypeError("test is not a function");const s=[];let u=-1;for(const p of i)a(p,++u,i)&&s.push(p);return s}function jr(i,a){if(typeof i[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof a!="function")throw new TypeError("mapper is not a function");return Array.from(i,(s,u)=>a(s,u,i))}function $r(i,a,s){if(typeof a!="function")throw new TypeError("reducer is not a function");const u=i[Symbol.iterator]();let p,g,x=-1;if(arguments.length<3){if({done:p,value:s}=u.next(),p)return;++x}for(;{done:p,value:g}=u.next(),!p;)s=a(s,g,++x,i);return s}function ga(i){if(typeof i[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(i).reverse()}function Mn(i,...a){i=new Ct(i);for(const s of a)for(const u of s)i.delete(u);return i}function An(i,a){const s=a[Symbol.iterator](),u=new Ct;for(const p of i){if(u.has(p))return!1;let g,x;for(;({value:g,done:x}=s.next())&&!x;){if(Object.is(p,g))return!1;u.add(g)}}return!0}function Lr(i,...a){i=new Ct(i),a=a.map(ui);t:for(const s of i)for(const u of a)if(!u.has(s)){i.delete(s);continue t}return i}function ui(i){return i instanceof Ct?i:new Ct(i)}function Fr(i,a){const s=i[Symbol.iterator](),u=new Set;for(const p of a){const g=xn(p);if(u.has(g))continue;let x,w;for(;{value:x,done:w}=s.next();){if(w)return!1;const T=xn(x);if(u.add(T),Object.is(g,T))break}}return!0}function xn(i){return i!==null&&typeof i=="object"?i.valueOf():i}function Nn(i,a){return Fr(a,i)}function bn(...i){const a=new Ct;for(const s of i)for(const u of s)a.add(u);return a}function Xn(i){return i}var Bt=1e-6;function In(i){return"translate("+i+",0)"}function On(i){return"translate(0,"+i+")"}function Zr(i){return a=>+i(a)}function ei(i,a){return a=Math.max(0,i.bandwidth()-2*a)/2,i.round()&&(a=Math.round(a)),s=>+i(s)+a}function Hn(){return!this.__axis}function Bn(i,a){var s=[],u=null,p=null,g=6,x=6,w=3,T=typeof window<"u"&&window.devicePixelRatio>1?0:.5,C=i===1||i===4?-1:1,R=i===4||i===2?"x":"y",j=i===1||i===3?In:On;function F($){var it=u==null?a.ticks?a.ticks.apply(a,s):a.domain():u,G=p==null?a.tickFormat?a.tickFormat.apply(a,s):Xn:p,V=Math.max(g,0)+w,X=a.range(),pt=+X[0]+T,ut=+X[X.length-1]+T,ht=(a.bandwidth?ei:Zr)(a.copy(),T),vt=$.selection?$.selection():$,kt=vt.selectAll(".domain").data([null]),ee=vt.selectAll(".tick").data(it,a).order(),me=ee.exit(),Vt=ee.enter().append("g").attr("class","tick"),jt=ee.select("line"),$t=ee.select("text");kt=kt.merge(kt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ee=ee.merge(Vt),jt=jt.merge(Vt.append("line").attr("stroke","currentColor").attr(R+"2",C*g)),$t=$t.merge(Vt.append("text").attr("fill","currentColor").attr(R,C*V).attr("dy",i===1?"0em":i===3?"0.71em":"0.32em")),$!==vt&&(kt=kt.transition($),ee=ee.transition($),jt=jt.transition($),$t=$t.transition($),me=me.transition($).attr("opacity",Bt).attr("transform",function(qt){return isFinite(qt=ht(qt))?j(qt+T):this.getAttribute("transform")}),Vt.attr("opacity",Bt).attr("transform",function(qt){var Et=this.parentNode.__axis;return j((Et&&isFinite(Et=Et(qt))?Et:ht(qt))+T)})),me.remove(),kt.attr("d",i===4||i===2?x?"M"+C*x+","+pt+"H"+T+"V"+ut+"H"+C*x:"M"+T+","+pt+"V"+ut:x?"M"+pt+","+C*x+"V"+T+"H"+ut+"V"+C*x:"M"+pt+","+T+"H"+ut),ee.attr("opacity",1).attr("transform",function(qt){return j(ht(qt)+T)}),jt.attr(R+"2",C*g),$t.attr(R,C*V).text(G),vt.filter(Hn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",i===2?"start":i===4?"end":"middle"),vt.each(function(){this.__axis=ht})}return F.scale=function($){return arguments.length?(a=$,F):a},F.ticks=function(){return s=Array.from(arguments),F},F.tickArguments=function($){return arguments.length?(s=$==null?[]:Array.from($),F):s.slice()},F.tickValues=function($){return arguments.length?(u=$==null?null:Array.from($),F):u&&u.slice()},F.tickFormat=function($){return arguments.length?(p=$,F):p},F.tickSize=function($){return arguments.length?(g=x=+$,F):g},F.tickSizeInner=function($){return arguments.length?(g=+$,F):g},F.tickSizeOuter=function($){return arguments.length?(x=+$,F):x},F.tickPadding=function($){return arguments.length?(w=+$,F):w},F.offset=function($){return arguments.length?(T=+$,F):T},F}function ri(i){return Bn(1,i)}function Ca(i){return Bn(2,i)}function dn(i){return Bn(3,i)}function Si(i){return Bn(4,i)}var Ri={value:()=>{}};function Ai(){for(var i,a=0,s=arguments.length,u={};a<s;++a){if(!(i=arguments[a]+"")||i in u||/[\s.]/.test(i))throw new Error("illegal type: "+i);u[i]=[]}return new dr(u)}function dr(i){this._=i}function yr(i,a){return i.trim().split(/^|\s+/).map(function(s){var u="",p=s.indexOf(".");if(p>=0&&(u=s.slice(p+1),s=s.slice(0,p)),s&&!a.hasOwnProperty(s))throw new Error("unknown type: "+s);return{type:s,name:u}})}function Xr(i,a){for(var s,u=0,p=i.length;u<p;++u)if((s=i[u]).name===a)return s.value}function nr(i,a,s){for(var u=0,p=i.length;u<p;++u)if(i[u].name===a){i[u]=Ri,i=i.slice(0,u).concat(i.slice(u+1));break}return s!=null&&i.push({name:a,value:s}),i}dr.prototype=Ai.prototype={constructor:dr,on:function(i,a){var s,u=this._,p=yr(i+"",u),g=-1,x=p.length;if(!(arguments.length<2)){if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++g<x;)if(s=(i=p[g]).type)u[s]=nr(u[s],i.name,a);else if(a==null)for(s in u)u[s]=nr(u[s],i.name,null);return this}for(;++g<x;)if((s=(i=p[g]).type)&&(s=Xr(u[s],i.name)))return s},copy:function(){var i={},a=this._;for(var s in a)i[s]=a[s].slice();return new dr(i)},call:function(i,a){if((s=arguments.length-2)>0)for(var s,u,p=new Array(s),g=0;g<s;++g)p[g]=arguments[g+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(g=0,s=(u=this._[i]).length;g<s;++g)u[g].value.apply(a,p)},apply:function(i,a,s){if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(var u=this._[i],p=0,g=u.length;p<g;++p)u[p].value.apply(a,s)}};const ln=Ai;function Zt(){}function Un(i){return i==null?Zt:function(){return this.querySelector(i)}}function te(i){return i==null?[]:Array.isArray(i)?i:Array.from(i)}function wn(){return[]}function oi(i){return i==null?wn:function(){return this.querySelectorAll(i)}}function hi(i){return function(){return this.matches(i)}}function Na(i){return function(a){return a.matches(i)}}var Bi=Array.prototype.find;function wr(){return this.firstElementChild}var Yn=Array.prototype.filter;function Rr(){return Array.from(this.children)}function ya(i){return new Array(i.length)}function Fn(i,a){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=a}function Fi(i){return function(){return i}}function jn(i,a,s,u,p,g){for(var x,w=0,T=a.length,C=g.length;w<C;++w)(x=a[w])?(x.__data__=g[w],u[w]=x):s[w]=new Fn(i,g[w]);for(;w<T;++w)(x=a[w])&&(p[w]=x)}function yn(i,a,s,u,p,g,x){var w,T,C,R=new Map,j=a.length,F=g.length,$=new Array(j);for(w=0;w<j;++w)(T=a[w])&&($[w]=C=x.call(T,T.__data__,w,a)+"",R.has(C)?p[w]=T:R.set(C,T));for(w=0;w<F;++w)C=x.call(i,g[w],w,g)+"",(T=R.get(C))?(u[w]=T,T.__data__=g[w],R.delete(C)):s[w]=new Fn(i,g[w]);for(w=0;w<j;++w)(T=a[w])&&R.get($[w])===T&&(p[w]=T)}function wi(i){return i.__data__}function qn(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function ni(i,a){return i<a?-1:i>a?1:i>=a?0:NaN}Fn.prototype={constructor:Fn,appendChild:function(i){return this._parent.insertBefore(i,this._next)},insertBefore:function(i,a){return this._parent.insertBefore(i,a)},querySelector:function(i){return this._parent.querySelector(i)},querySelectorAll:function(i){return this._parent.querySelectorAll(i)}};var Ji="http://www.w3.org/1999/xhtml";const Ci={svg:"http://www.w3.org/2000/svg",xhtml:Ji,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ii(i){var a=i+="",s=a.indexOf(":");return s>=0&&(a=i.slice(0,s))!=="xmlns"&&(i=i.slice(s+1)),Ci.hasOwnProperty(a)?{space:Ci[a],local:i}:i}function ma(i){return function(){this.removeAttribute(i)}}function Wn(i){return function(){this.removeAttributeNS(i.space,i.local)}}function Kn(i,a){return function(){this.setAttribute(i,a)}}function si(i,a){return function(){this.setAttributeNS(i.space,i.local,a)}}function Pi(i,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttribute(i):this.setAttribute(i,s)}}function Co(i,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttributeNS(i.space,i.local):this.setAttributeNS(i.space,i.local,s)}}function $i(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function Jt(i){return function(){this.style.removeProperty(i)}}function kr(i,a,s){return function(){this.style.setProperty(i,a,s)}}function or(i,a,s){return function(){var u=a.apply(this,arguments);u==null?this.style.removeProperty(i):this.style.setProperty(i,u,s)}}function an(i,a){return i.style.getPropertyValue(a)||$i(i).getComputedStyle(i,null).getPropertyValue(a)}function $n(i){return function(){delete this[i]}}function pi(i,a){return function(){this[i]=a}}function Jn(i,a){return function(){var s=a.apply(this,arguments);s==null?delete this[i]:this[i]=s}}function Hi(i){return i.trim().split(/^|\s+/)}function Qi(i){return i.classList||new di(i)}function di(i){this._node=i,this._names=Hi(i.getAttribute("class")||"")}function Ka(i,a){for(var s=Qi(i),u=-1,p=a.length;++u<p;)s.add(a[u])}function as(i,a){for(var s=Qi(i),u=-1,p=a.length;++u<p;)s.remove(a[u])}function pc(i){return function(){Ka(this,i)}}function tl(i){return function(){as(this,i)}}function Ia(i,a){return function(){(a.apply(this,arguments)?Ka:as)(this,i)}}function Cs(){this.textContent=""}function su(i){return function(){this.textContent=i}}function gc(i){return function(){var a=i.apply(this,arguments);this.textContent=a==null?"":a}}function ur(){this.innerHTML=""}function yc(i){return function(){this.innerHTML=i}}function kn(i){return function(){var a=i.apply(this,arguments);this.innerHTML=a==null?"":a}}function ta(){this.nextSibling&&this.parentNode.appendChild(this)}function uo(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function La(i){return function(){var a=this.ownerDocument,s=this.namespaceURI;return s===Ji&&a.documentElement.namespaceURI===Ji?a.createElement(i):a.createElementNS(s,i)}}function Ma(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function No(i){var a=ii(i);return(a.local?Ma:La)(a)}function mc(){return null}function el(){var i=this.parentNode;i&&i.removeChild(this)}function Ns(){var i=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function ja(){var i=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function _c(i){return i.trim().split(/^|\s+/).map(function(a){var s="",u=a.indexOf(".");return u>=0&&(s=a.slice(u+1),a=a.slice(0,u)),{type:a,name:s}})}function Oa(i){return function(){var a=this.__on;if(a){for(var s,u=0,p=-1,g=a.length;u<g;++u)s=a[u],i.type&&s.type!==i.type||s.name!==i.name?a[++p]=s:this.removeEventListener(s.type,s.listener,s.options);++p?a.length=p:delete this.__on}}}function bc(i,a,s){return function(){var u,p=this.__on,g=function(T){return function(C){T.call(this,C,this.__data__)}}(a);if(p){for(var x=0,w=p.length;x<w;++x)if((u=p[x]).type===i.type&&u.name===i.name)return this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=g,u.options=s),void(u.value=a)}this.addEventListener(i.type,g,s),u={type:i.type,name:i.name,value:a,listener:g,options:s},p?p.push(u):this.__on=[u]}}function vc(i,a,s){var u=$i(i),p=u.CustomEvent;typeof p=="function"?p=new p(a,s):(p=u.document.createEvent("Event"),s?(p.initEvent(a,s.bubbles,s.cancelable),p.detail=s.detail):p.initEvent(a,!1,!1)),i.dispatchEvent(p)}function ea(i,a){return function(){return vc(this,i,a)}}function Is(i,a){return function(){return vc(this,i,a.apply(this,arguments))}}di.prototype={add:function(i){this._names.indexOf(i)<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var a=this._names.indexOf(i);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};var Io=[null];function gi(i,a){this._groups=i,this._parents=a}function en(){return new gi([[document.documentElement]],Io)}gi.prototype=en.prototype={constructor:gi,select:function(i){typeof i!="function"&&(i=Un(i));for(var a=this._groups,s=a.length,u=new Array(s),p=0;p<s;++p)for(var g,x,w=a[p],T=w.length,C=u[p]=new Array(T),R=0;R<T;++R)(g=w[R])&&(x=i.call(g,g.__data__,R,w))&&("__data__"in g&&(x.__data__=g.__data__),C[R]=x);return new gi(u,this._parents)},selectAll:function(i){i=typeof i=="function"?function(R){return function(){return te(R.apply(this,arguments))}}(i):oi(i);for(var a=this._groups,s=a.length,u=[],p=[],g=0;g<s;++g)for(var x,w=a[g],T=w.length,C=0;C<T;++C)(x=w[C])&&(u.push(i.call(x,x.__data__,C,w)),p.push(x));return new gi(u,p)},selectChild:function(i){return this.select(i==null?wr:function(a){return function(){return Bi.call(this.children,a)}}(typeof i=="function"?i:Na(i)))},selectChildren:function(i){return this.selectAll(i==null?Rr:function(a){return function(){return Yn.call(this.children,a)}}(typeof i=="function"?i:Na(i)))},filter:function(i){typeof i!="function"&&(i=hi(i));for(var a=this._groups,s=a.length,u=new Array(s),p=0;p<s;++p)for(var g,x=a[p],w=x.length,T=u[p]=[],C=0;C<w;++C)(g=x[C])&&i.call(g,g.__data__,C,x)&&T.push(g);return new gi(u,this._parents)},data:function(i,a){if(!arguments.length)return Array.from(this,wi);var s=a?yn:jn,u=this._parents,p=this._groups;typeof i!="function"&&(i=Fi(i));for(var g=p.length,x=new Array(g),w=new Array(g),T=new Array(g),C=0;C<g;++C){var R=u[C],j=p[C],F=j.length,$=qn(i.call(R,R&&R.__data__,C,u)),it=$.length,G=w[C]=new Array(it),V=x[C]=new Array(it),X=T[C]=new Array(F);s(R,j,G,V,X,$,a);for(var pt,ut,ht=0,vt=0;ht<it;++ht)if(pt=G[ht]){for(ht>=vt&&(vt=ht+1);!(ut=V[vt])&&++vt<it;);pt._next=ut||null}}return(x=new gi(x,u))._enter=w,x._exit=T,x},enter:function(){return new gi(this._enter||this._groups.map(ya),this._parents)},exit:function(){return new gi(this._exit||this._groups.map(ya),this._parents)},join:function(i,a,s){var u=this.enter(),p=this,g=this.exit();return typeof i=="function"?(u=i(u))&&(u=u.selection()):u=u.append(i+""),a!=null&&(p=a(p))&&(p=p.selection()),s==null?g.remove():s(g),u&&p?u.merge(p).order():p},merge:function(i){for(var a=i.selection?i.selection():i,s=this._groups,u=a._groups,p=s.length,g=u.length,x=Math.min(p,g),w=new Array(p),T=0;T<x;++T)for(var C,R=s[T],j=u[T],F=R.length,$=w[T]=new Array(F),it=0;it<F;++it)(C=R[it]||j[it])&&($[it]=C);for(;T<p;++T)w[T]=s[T];return new gi(w,this._parents)},selection:function(){return this},order:function(){for(var i=this._groups,a=-1,s=i.length;++a<s;)for(var u,p=i[a],g=p.length-1,x=p[g];--g>=0;)(u=p[g])&&(x&&4^u.compareDocumentPosition(x)&&x.parentNode.insertBefore(u,x),x=u);return this},sort:function(i){function a(j,F){return j&&F?i(j.__data__,F.__data__):!j-!F}i||(i=ni);for(var s=this._groups,u=s.length,p=new Array(u),g=0;g<u;++g){for(var x,w=s[g],T=w.length,C=p[g]=new Array(T),R=0;R<T;++R)(x=w[R])&&(C[R]=x);C.sort(a)}return new gi(p,this._parents).order()},call:function(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var i=this._groups,a=0,s=i.length;a<s;++a)for(var u=i[a],p=0,g=u.length;p<g;++p){var x=u[p];if(x)return x}return null},size:function(){let i=0;for(const a of this)++i;return i},empty:function(){return!this.node()},each:function(i){for(var a=this._groups,s=0,u=a.length;s<u;++s)for(var p,g=a[s],x=0,w=g.length;x<w;++x)(p=g[x])&&i.call(p,p.__data__,x,g);return this},attr:function(i,a){var s=ii(i);if(arguments.length<2){var u=this.node();return s.local?u.getAttributeNS(s.space,s.local):u.getAttribute(s)}return this.each((a==null?s.local?Wn:ma:typeof a=="function"?s.local?Co:Pi:s.local?si:Kn)(s,a))},style:function(i,a,s){return arguments.length>1?this.each((a==null?Jt:typeof a=="function"?or:kr)(i,a,s==null?"":s)):an(this.node(),i)},property:function(i,a){return arguments.length>1?this.each((a==null?$n:typeof a=="function"?Jn:pi)(i,a)):this.node()[i]},classed:function(i,a){var s=Hi(i+"");if(arguments.length<2){for(var u=Qi(this.node()),p=-1,g=s.length;++p<g;)if(!u.contains(s[p]))return!1;return!0}return this.each((typeof a=="function"?Ia:a?pc:tl)(s,a))},text:function(i){return arguments.length?this.each(i==null?Cs:(typeof i=="function"?gc:su)(i)):this.node().textContent},html:function(i){return arguments.length?this.each(i==null?ur:(typeof i=="function"?kn:yc)(i)):this.node().innerHTML},raise:function(){return this.each(ta)},lower:function(){return this.each(uo)},append:function(i){var a=typeof i=="function"?i:No(i);return this.select(function(){return this.appendChild(a.apply(this,arguments))})},insert:function(i,a){var s=typeof i=="function"?i:No(i),u=a==null?mc:typeof a=="function"?a:Un(a);return this.select(function(){return this.insertBefore(s.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(el)},clone:function(i){return this.select(i?ja:Ns)},datum:function(i){return arguments.length?this.property("__data__",i):this.node().__data__},on:function(i,a,s){var u,p,g=_c(i+""),x=g.length;if(!(arguments.length<2)){for(w=a?bc:Oa,u=0;u<x;++u)this.each(w(g[u],a,s));return this}var w=this.node().__on;if(w){for(var T,C=0,R=w.length;C<R;++C)for(u=0,T=w[C];u<x;++u)if((p=g[u]).type===T.type&&p.name===T.name)return T.value}},dispatch:function(i,a){return this.each((typeof a=="function"?Is:ea)(i,a))},[Symbol.iterator]:function*(){for(var i=this._groups,a=0,s=i.length;a<s;++a)for(var u,p=i[a],g=0,x=p.length;g<x;++g)(u=p[g])&&(yield u)}};const Pn=en;function ki(i){return typeof i=="string"?new gi([[document.querySelector(i)]],[document.documentElement]):new gi([[i]],Io)}const rl={passive:!1},Lo={capture:!0,passive:!1};function Ls(i){i.stopImmediatePropagation()}function $a(i){i.preventDefault(),i.stopImmediatePropagation()}function ho(i){var a=i.document.documentElement,s=ki(i).on("dragstart.drag",$a,Lo);"onselectstart"in a?s.on("selectstart.drag",$a,Lo):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function os(i,a){var s=i.document.documentElement,u=ki(i).on("dragstart.drag",null);a&&(u.on("click.drag",$a,Lo),setTimeout(function(){u.on("click.drag",null)},0)),"onselectstart"in s?u.on("selectstart.drag",null):(s.style.MozUserSelect=s.__noselect,delete s.__noselect)}function zi(i,a,s){i.prototype=a.prototype=s,s.constructor=i}function vr(i,a){var s=Object.create(i.prototype);for(var u in a)s[u]=a[u];return s}function _a(){}var qi=.7,ra=1/qi,Qr="\\s*([+-]?\\d+)\\s*",I="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",U="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tt=/^#([0-9a-f]{3,8})$/,yt=new RegExp("^rgb\\("+[Qr,Qr,Qr]+"\\)$"),ne=new RegExp("^rgb\\("+[U,U,U]+"\\)$"),Ce=new RegExp("^rgba\\("+[Qr,Qr,Qr,I]+"\\)$"),je=new RegExp("^rgba\\("+[U,U,U,I]+"\\)$"),tr=new RegExp("^hsl\\("+[I,U,U]+"\\)$"),er=new RegExp("^hsla\\("+[I,U,U,I]+"\\)$"),fr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function mr(){return this.rgb().formatHex()}function Tr(){return this.rgb().formatRgb()}function Cr(i){var a,s;return i=(i+"").trim().toLowerCase(),(a=tt.exec(i))?(s=a[1].length,a=parseInt(a[1],16),s===6?mn(a):s===3?new Vn(a>>8&15|a>>4&240,a>>4&15|240&a,(15&a)<<4|15&a,1):s===8?on(a>>24&255,a>>16&255,a>>8&255,(255&a)/255):s===4?on(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|240&a,((15&a)<<4|15&a)/255):null):(a=yt.exec(i))?new Vn(a[1],a[2],a[3],1):(a=ne.exec(i))?new Vn(255*a[1]/100,255*a[2]/100,255*a[3]/100,1):(a=Ce.exec(i))?on(a[1],a[2],a[3],a[4]):(a=je.exec(i))?on(255*a[1]/100,255*a[2]/100,255*a[3]/100,a[4]):(a=tr.exec(i))?lu(a[1],a[2]/100,a[3]/100,1):(a=er.exec(i))?lu(a[1],a[2]/100,a[3]/100,a[4]):fr.hasOwnProperty(i)?mn(fr[i]):i==="transparent"?new Vn(NaN,NaN,NaN,0):null}function mn(i){return new Vn(i>>16&255,i>>8&255,255&i,1)}function on(i,a,s,u){return u<=0&&(i=a=s=NaN),new Vn(i,a,s,u)}function Gn(i){return i instanceof _a||(i=Cr(i)),i?new Vn((i=i.rgb()).r,i.g,i.b,i.opacity):new Vn}function yi(i,a,s,u){return arguments.length===1?Gn(i):new Vn(i,a,s,u==null?1:u)}function Vn(i,a,s,u){this.r=+i,this.g=+a,this.b=+s,this.opacity=+u}function Ms(){return"#"+cu(this.r)+cu(this.g)+cu(this.b)}function nl(){var i=this.opacity;return((i=isNaN(i)?1:Math.max(0,Math.min(1,i)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(i===1?")":", "+i+")")}function cu(i){return((i=Math.max(0,Math.min(255,Math.round(i)||0)))<16?"0":"")+i.toString(16)}function lu(i,a,s,u){return u<=0?i=a=s=NaN:s<=0||s>=1?i=a=NaN:a<=0&&(i=NaN),new Ja(i,a,s,u)}function uu(i){if(i instanceof Ja)return new Ja(i.h,i.s,i.l,i.opacity);if(i instanceof _a||(i=Cr(i)),!i)return new Ja;if(i instanceof Ja)return i;var a=(i=i.rgb()).r/255,s=i.g/255,u=i.b/255,p=Math.min(a,s,u),g=Math.max(a,s,u),x=NaN,w=g-p,T=(g+p)/2;return w?(x=a===g?(s-u)/w+6*(s<u):s===g?(u-a)/w+2:(a-s)/w+4,w/=T<.5?g+p:2-g-p,x*=60):w=T>0&&T<1?0:x,new Ja(x,w,T,i.opacity)}function Mo(i,a,s,u){return arguments.length===1?uu(i):new Ja(i,a,s,u==null?1:u)}function Ja(i,a,s,u){this.h=+i,this.s=+a,this.l=+s,this.opacity=+u}function ss(i,a,s){return 255*(i<60?a+(s-a)*i/60:i<180?s:i<240?a+(s-a)*(240-i)/60:a)}function Gh(i,a,s,u,p){var g=i*i,x=g*i;return((1-3*i+3*g-x)*a+(4-6*g+3*x)*s+(1+3*i+3*g-3*x)*u+x*p)/6}function mi(i){var a=i.length-1;return function(s){var u=s<=0?s=0:s>=1?(s=1,a-1):Math.floor(s*a),p=i[u],g=i[u+1],x=u>0?i[u-1]:2*p-g,w=u<a-1?i[u+2]:2*g-p;return Gh((s-u/a)*a,x,p,g,w)}}function hu(i){var a=i.length;return function(s){var u=Math.floor(((s%=1)<0?++s:s)*a),p=i[(u+a-1)%a],g=i[u%a],x=i[(u+1)%a],w=i[(u+2)%a];return Gh((s-u/a)*a,p,g,x,w)}}zi(_a,Cr,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:mr,formatHex:mr,formatHsl:function(){return uu(this).formatHsl()},formatRgb:Tr,toString:Tr}),zi(Vn,yi,vr(_a,{brighter:function(i){return i=i==null?ra:Math.pow(ra,i),new Vn(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?qi:Math.pow(qi,i),new Vn(this.r*i,this.g*i,this.b*i,this.opacity)},rgb:function(){return this},displayable:function(){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:Ms,formatHex:Ms,formatRgb:nl,toString:nl})),zi(Ja,Mo,vr(_a,{brighter:function(i){return i=i==null?ra:Math.pow(ra,i),new Ja(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?qi:Math.pow(qi,i),new Ja(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+360*(this.h<0),a=isNaN(i)||isNaN(this.s)?0:this.s,s=this.l,u=s+(s<.5?s:1-s)*a,p=2*s-u;return new Vn(ss(i>=240?i-240:i+120,p,u),ss(i,p,u),ss(i<120?i+240:i-120,p,u),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var i=this.opacity;return((i=isNaN(i)?1:Math.max(0,Math.min(1,i)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(i===1?")":", "+i+")")}}));const Os=i=>()=>i;function Vh(i,a){return function(s){return i+s*a}}function il(i,a){var s=a-i;return s?Vh(i,s>180||s<-180?s-360*Math.round(s/360):s):Os(isNaN(i)?a:i)}function Ni(i,a){var s=a-i;return s?Vh(i,s):Os(isNaN(i)?a:i)}const Ds=function i(a){var s=function(p){return(p=+p)==1?Ni:function(g,x){return x-g?function(w,T,C){return w=Math.pow(w,C),T=Math.pow(T,C)-w,C=1/C,function(R){return Math.pow(w+R*T,C)}}(g,x,p):Os(isNaN(g)?x:g)}}(a);function u(p,g){var x=s((p=yi(p)).r,(g=yi(g)).r),w=s(p.g,g.g),T=s(p.b,g.b),C=Ni(p.opacity,g.opacity);return function(R){return p.r=x(R),p.g=w(R),p.b=T(R),p.opacity=C(R),p+""}}return u.gamma=i,u}(1);function cs(i){return function(a){var s,u,p=a.length,g=new Array(p),x=new Array(p),w=new Array(p);for(s=0;s<p;++s)u=yi(a[s]),g[s]=u.r||0,x[s]=u.g||0,w[s]=u.b||0;return g=i(g),x=i(x),w=i(w),u.opacity=1,function(T){return u.r=g(T),u.g=x(T),u.b=w(T),u+""}}}var al=cs(mi),Q0=cs(hu);function xc(i,a){a||(a=[]);var s,u=i?Math.min(a.length,i.length):0,p=a.slice();return function(g){for(s=0;s<u;++s)p[s]=i[s]*(1-g)+a[s]*g;return p}}function wc(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function td(i,a){return(wc(a)?xc:Zh)(i,a)}function Zh(i,a){var s,u=a?a.length:0,p=i?Math.min(u,i.length):0,g=new Array(p),x=new Array(u);for(s=0;s<p;++s)g[s]=tn(i[s],a[s]);for(;s<u;++s)x[s]=a[s];return function(w){for(s=0;s<p;++s)x[s]=g[s](w);return x}}function Xh(i,a){var s=new Date;return i=+i,a=+a,function(u){return s.setTime(i*(1-u)+a*u),s}}function la(i,a){return i=+i,a=+a,function(s){return i*(1-s)+a*s}}function na(i,a){var s,u={},p={};for(s in i!==null&&typeof i=="object"||(i={}),a!==null&&typeof a=="object"||(a={}),a)s in i?u[s]=tn(i[s],a[s]):p[s]=a[s];return function(g){for(s in u)p[s]=u[s](g);return p}}var Ii=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ai=new RegExp(Ii.source,"g");function Ha(i,a){var s,u,p,g=Ii.lastIndex=ai.lastIndex=0,x=-1,w=[],T=[];for(i+="",a+="";(s=Ii.exec(i))&&(u=ai.exec(a));)(p=u.index)>g&&(p=a.slice(g,p),w[x]?w[x]+=p:w[++x]=p),(s=s[0])===(u=u[0])?w[x]?w[x]+=u:w[++x]=u:(w[++x]=null,T.push({i:x,x:la(s,u)})),g=ai.lastIndex;return g<a.length&&(p=a.slice(g),w[x]?w[x]+=p:w[++x]=p),w.length<2?T[0]?function(C){return function(R){return C(R)+""}}(T[0].x):function(C){return function(){return C}}(a):(a=T.length,function(C){for(var R,j=0;j<a;++j)w[(R=T[j]).i]=R.x(C);return w.join("")})}function tn(i,a){var s,u=typeof a;return a==null||u==="boolean"?Os(a):(u==="number"?la:u==="string"?(s=Cr(a))?(a=s,Ds):Ha:a instanceof Cr?Ds:a instanceof Date?Xh:wc(a)?xc:Array.isArray(a)?Zh:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?na:la)(i,a)}function Da(i){let a;for(;a=i.sourceEvent;)i=a;return i}function ua(i,a){if(i=Da(i),a===void 0&&(a=i.currentTarget),a){var s=a.ownerSVGElement||a;if(s.createSVGPoint){var u=s.createSVGPoint();return u.x=i.clientX,u.y=i.clientY,[(u=u.matrixTransform(a.getScreenCTM().inverse())).x,u.y]}if(a.getBoundingClientRect){var p=a.getBoundingClientRect();return[i.clientX-p.left-a.clientLeft,i.clientY-p.top-a.clientTop]}}return[i.pageX,i.pageY]}var ls,kc,Rs=0,Oo=0,Do=0,ol=0,us=0,sl=0,Ec=typeof performance=="object"&&performance.now?performance:Date,Kh=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function Tc(){return us||(Kh(Jh),us=Ec.now()+sl)}function Jh(){us=0}function Sc(){this._call=this._time=this._next=null}function Ro(i,a,s){var u=new Sc;return u.restart(i,a,s),u}function Bs(){Tc(),++Rs;for(var i,a=ls;a;)(i=us-a._time)>=0&&a._call.call(void 0,i),a=a._next;--Rs}function Qa(){us=(ol=Ec.now())+sl,Rs=Oo=0;try{Bs()}finally{Rs=0,function(){for(var i,a,s=ls,u=1/0;s;)s._call?(u>s._time&&(u=s._time),i=s,s=s._next):(a=s._next,s._next=null,s=i?i._next=a:ls=a);kc=i,Fs(u)}(),us=0}}function Bo(){var i=Ec.now(),a=i-ol;a>1e3&&(sl-=a,ol=i)}function Fs(i){Rs||(Oo&&(Oo=clearTimeout(Oo)),i-us>24?(i<1/0&&(Oo=setTimeout(Qa,i-Ec.now()-sl)),Do&&(Do=clearInterval(Do))):(Do||(ol=Ec.now(),Do=setInterval(Bo,1e3)),Rs=1,Kh(Qa)))}function cl(i,a,s){var u=new Sc;return a=a==null?0:+a,u.restart(p=>{u.stop(),i(p+a)},a,s),u}Sc.prototype=Ro.prototype={constructor:Sc,restart:function(i,a,s){if(typeof i!="function")throw new TypeError("callback is not a function");s=(s==null?Tc():+s)+(a==null?0:+a),this._next||kc===this||(kc?kc._next=this:ls=this,kc=this),this._call=i,this._time=s,Fs()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fs())}};var Qh=ln("start","end","cancel","interrupt"),t1=[];function fo(i,a,s,u,p,g){var x=i.__transition;if(x){if(s in x)return}else i.__transition={};(function(w,T,C){var R,j=w.__transition;function F(G){var V,X,pt,ut;if(C.state!==1)return it();for(V in j)if((ut=j[V]).name===C.name){if(ut.state===3)return cl(F);ut.state===4?(ut.state=6,ut.timer.stop(),ut.on.call("interrupt",w,w.__data__,ut.index,ut.group),delete j[V]):+V<T&&(ut.state=6,ut.timer.stop(),ut.on.call("cancel",w,w.__data__,ut.index,ut.group),delete j[V])}if(cl(function(){C.state===3&&(C.state=4,C.timer.restart($,C.delay,C.time),$(G))}),C.state=2,C.on.call("start",w,w.__data__,C.index,C.group),C.state===2){for(C.state=3,R=new Array(pt=C.tween.length),V=0,X=-1;V<pt;++V)(ut=C.tween[V].value.call(w,w.__data__,C.index,C.group))&&(R[++X]=ut);R.length=X+1}}function $(G){for(var V=G<C.duration?C.ease.call(null,G/C.duration):(C.timer.restart(it),C.state=5,1),X=-1,pt=R.length;++X<pt;)R[X].call(w,V);C.state===5&&(C.on.call("end",w,w.__data__,C.index,C.group),it())}function it(){for(var G in C.state=6,C.timer.stop(),delete j[T],j)return;delete w.__transition}j[T]=C,C.timer=Ro(function(G){C.state=1,C.timer.restart(F,C.delay,C.time),C.delay<=G&&F(G-C.delay)},0,C.time)})(i,s,{name:a,index:u,group:p,on:Qh,tween:t1,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:0})}function ll(i,a){var s=Ra(i,a);if(s.state>0)throw new Error("too late; already scheduled");return s}function to(i,a){var s=Ra(i,a);if(s.state>3)throw new Error("too late; already running");return s}function Ra(i,a){var s=i.__transition;if(!s||!(s=s[a]))throw new Error("transition not found");return s}function eo(i,a){var s,u,p,g=i.__transition,x=!0;if(g){for(p in a=a==null?null:a+"",g)(s=g[p]).name===a?(u=s.state>2&&s.state<5,s.state=6,s.timer.stop(),s.on.call(u?"interrupt":"cancel",i,i.__data__,s.index,s.group),delete g[p]):x=!1;x&&delete i.__transition}}var _i,e1=180/Math.PI,Ps={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function r1(i,a,s,u,p,g){var x,w,T;return(x=Math.sqrt(i*i+a*a))&&(i/=x,a/=x),(T=i*s+a*u)&&(s-=i*T,u-=a*T),(w=Math.sqrt(s*s+u*u))&&(s/=w,u/=w,T/=w),i*u<a*s&&(i=-i,a=-a,T=-T,x=-x),{translateX:p,translateY:g,rotate:Math.atan2(a,i)*e1,skewX:Math.atan(T)*e1,scaleX:x,scaleY:w}}function du(i,a,s,u){function p(g){return g.length?g.pop()+" ":""}return function(g,x){var w=[],T=[];return g=i(g),x=i(x),function(C,R,j,F,$,it){if(C!==j||R!==F){var G=$.push("translate(",null,a,null,s);it.push({i:G-4,x:la(C,j)},{i:G-2,x:la(R,F)})}else(j||F)&&$.push("translate("+j+a+F+s)}(g.translateX,g.translateY,x.translateX,x.translateY,w,T),function(C,R,j,F){C!==R?(C-R>180?R+=360:R-C>180&&(C+=360),F.push({i:j.push(p(j)+"rotate(",null,u)-2,x:la(C,R)})):R&&j.push(p(j)+"rotate("+R+u)}(g.rotate,x.rotate,w,T),function(C,R,j,F){C!==R?F.push({i:j.push(p(j)+"skewX(",null,u)-2,x:la(C,R)}):R&&j.push(p(j)+"skewX("+R+u)}(g.skewX,x.skewX,w,T),function(C,R,j,F,$,it){if(C!==j||R!==F){var G=$.push(p($)+"scale(",null,",",null,")");it.push({i:G-4,x:la(C,j)},{i:G-2,x:la(R,F)})}else j===1&&F===1||$.push(p($)+"scale("+j+","+F+")")}(g.scaleX,g.scaleY,x.scaleX,x.scaleY,w,T),g=x=null,function(C){for(var R,j=-1,F=T.length;++j<F;)w[(R=T[j]).i]=R.x(C);return w.join("")}}}var n1=du(function(i){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(i+"");return a.isIdentity?Ps:r1(a.a,a.b,a.c,a.d,a.e,a.f)},"px, ","px)","deg)"),ul=du(function(i){return i==null?Ps:(_i||(_i=document.createElementNS("http://www.w3.org/2000/svg","g")),_i.setAttribute("transform",i),(i=_i.transform.baseVal.consolidate())?r1((i=i.matrix).a,i.b,i.c,i.d,i.e,i.f):Ps)},", ",")",")");function i1(i,a){var s,u;return function(){var p=to(this,i),g=p.tween;if(g!==s){for(var x=0,w=(u=s=g).length;x<w;++x)if(u[x].name===a){(u=u.slice()).splice(x,1);break}}p.tween=u}}function ed(i,a,s){var u,p;if(typeof s!="function")throw new Error;return function(){var g=to(this,i),x=g.tween;if(x!==u){p=(u=x).slice();for(var w={name:a,value:s},T=0,C=p.length;T<C;++T)if(p[T].name===a){p[T]=w;break}T===C&&p.push(w)}g.tween=p}}function fu(i,a,s){var u=i._id;return i.each(function(){var p=to(this,u);(p.value||(p.value={}))[a]=s.apply(this,arguments)}),function(p){return Ra(p,u).value[a]}}function pu(i,a){var s;return(typeof a=="number"?la:a instanceof Cr?Ds:(s=Cr(a))?(a=s,Ds):Ha)(i,a)}function Ac(i){return function(){this.removeAttribute(i)}}function gu(i){return function(){this.removeAttributeNS(i.space,i.local)}}function a1(i,a,s){var u,p,g=s+"";return function(){var x=this.getAttribute(i);return x===g?null:x===u?p:p=a(u=x,s)}}function rd(i,a,s){var u,p,g=s+"";return function(){var x=this.getAttributeNS(i.space,i.local);return x===g?null:x===u?p:p=a(u=x,s)}}function po(i,a,s){var u,p,g;return function(){var x,w,T=s(this);if(T!=null)return(x=this.getAttribute(i))===(w=T+"")?null:x===u&&w===p?g:(p=w,g=a(u=x,T));this.removeAttribute(i)}}function Fo(i,a,s){var u,p,g;return function(){var x,w,T=s(this);if(T!=null)return(x=this.getAttributeNS(i.space,i.local))===(w=T+"")?null:x===u&&w===p?g:(p=w,g=a(u=x,T));this.removeAttributeNS(i.space,i.local)}}function Dn(i,a){return function(s){this.setAttribute(i,a.call(this,s))}}function o1(i,a){return function(s){this.setAttributeNS(i.space,i.local,a.call(this,s))}}function s1(i,a){var s,u;function p(){var g=a.apply(this,arguments);return g!==u&&(s=(u=g)&&o1(i,g)),s}return p._value=a,p}function nd(i,a){var s,u;function p(){var g=a.apply(this,arguments);return g!==u&&(s=(u=g)&&Dn(i,g)),s}return p._value=a,p}function id(i,a){return function(){ll(this,i).delay=+a.apply(this,arguments)}}function ad(i,a){return a=+a,function(){ll(this,i).delay=a}}function yu(i,a){return function(){to(this,i).duration=+a.apply(this,arguments)}}function mu(i,a){return a=+a,function(){to(this,i).duration=a}}function go(i,a){if(typeof a!="function")throw new Error;return function(){to(this,i).ease=a}}function hl(i,a,s){var u,p,g=function(x){return(x+"").trim().split(/^|\s+/).every(function(w){var T=w.indexOf(".");return T>=0&&(w=w.slice(0,T)),!w||w==="start"})}(a)?ll:to;return function(){var x=g(this,i),w=x.on;w!==u&&(p=(u=w).copy()).on(a,s),x.on=p}}var od=Pn.prototype.constructor;function _u(i){return function(){this.style.removeProperty(i)}}function bu(i,a,s){return function(u){this.style.setProperty(i,a.call(this,u),s)}}function ci(i,a,s){var u,p;function g(){var x=a.apply(this,arguments);return x!==p&&(u=(p=x)&&bu(i,x,s)),u}return g._value=a,g}function hs(i){return function(a){this.textContent=i.call(this,a)}}function zs(i){var a,s;function u(){var p=i.apply(this,arguments);return p!==s&&(a=(s=p)&&hs(p)),a}return u._value=i,u}var ro=0;function ba(i,a,s,u){this._groups=i,this._parents=a,this._name=s,this._id=u}function dl(i){return Pn().transition(i)}function fl(){return++ro}var qa=Pn.prototype;function pl(i){return i*i*i}function gl(i){return--i*i*i+1}function Us(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}ba.prototype=dl.prototype={constructor:ba,select:function(i){var a=this._name,s=this._id;typeof i!="function"&&(i=Un(i));for(var u=this._groups,p=u.length,g=new Array(p),x=0;x<p;++x)for(var w,T,C=u[x],R=C.length,j=g[x]=new Array(R),F=0;F<R;++F)(w=C[F])&&(T=i.call(w,w.__data__,F,C))&&("__data__"in w&&(T.__data__=w.__data__),j[F]=T,fo(j[F],a,s,F,j,Ra(w,s)));return new ba(g,this._parents,a,s)},selectAll:function(i){var a=this._name,s=this._id;typeof i!="function"&&(i=oi(i));for(var u=this._groups,p=u.length,g=[],x=[],w=0;w<p;++w)for(var T,C=u[w],R=C.length,j=0;j<R;++j)if(T=C[j]){for(var F,$=i.call(T,T.__data__,j,C),it=Ra(T,s),G=0,V=$.length;G<V;++G)(F=$[G])&&fo(F,a,s,G,$,it);g.push($),x.push(T)}return new ba(g,x,a,s)},selectChild:qa.selectChild,selectChildren:qa.selectChildren,filter:function(i){typeof i!="function"&&(i=hi(i));for(var a=this._groups,s=a.length,u=new Array(s),p=0;p<s;++p)for(var g,x=a[p],w=x.length,T=u[p]=[],C=0;C<w;++C)(g=x[C])&&i.call(g,g.__data__,C,x)&&T.push(g);return new ba(u,this._parents,this._name,this._id)},merge:function(i){if(i._id!==this._id)throw new Error;for(var a=this._groups,s=i._groups,u=a.length,p=s.length,g=Math.min(u,p),x=new Array(u),w=0;w<g;++w)for(var T,C=a[w],R=s[w],j=C.length,F=x[w]=new Array(j),$=0;$<j;++$)(T=C[$]||R[$])&&(F[$]=T);for(;w<u;++w)x[w]=a[w];return new ba(x,this._parents,this._name,this._id)},selection:function(){return new od(this._groups,this._parents)},transition:function(){for(var i=this._name,a=this._id,s=fl(),u=this._groups,p=u.length,g=0;g<p;++g)for(var x,w=u[g],T=w.length,C=0;C<T;++C)if(x=w[C]){var R=Ra(x,a);fo(x,i,s,C,w,{time:R.time+R.delay+R.duration,delay:0,duration:R.duration,ease:R.ease})}return new ba(u,this._parents,i,s)},call:qa.call,nodes:qa.nodes,node:qa.node,size:qa.size,empty:qa.empty,each:qa.each,on:function(i,a){var s=this._id;return arguments.length<2?Ra(this.node(),s).on.on(i):this.each(hl(s,i,a))},attr:function(i,a){var s=ii(i),u=s==="transform"?ul:pu;return this.attrTween(i,typeof a=="function"?(s.local?Fo:po)(s,u,fu(this,"attr."+i,a)):a==null?(s.local?gu:Ac)(s):(s.local?rd:a1)(s,u,a))},attrTween:function(i,a){var s="attr."+i;if(arguments.length<2)return(s=this.tween(s))&&s._value;if(a==null)return this.tween(s,null);if(typeof a!="function")throw new Error;var u=ii(i);return this.tween(s,(u.local?s1:nd)(u,a))},style:function(i,a,s){var u=(i+="")=="transform"?n1:pu;return a==null?this.styleTween(i,function(p,g){var x,w,T;return function(){var C=an(this,p),R=(this.style.removeProperty(p),an(this,p));return C===R?null:C===x&&R===w?T:T=g(x=C,w=R)}}(i,u)).on("end.style."+i,_u(i)):typeof a=="function"?this.styleTween(i,function(p,g,x){var w,T,C;return function(){var R=an(this,p),j=x(this),F=j+"";return j==null&&(this.style.removeProperty(p),F=j=an(this,p)),R===F?null:R===w&&F===T?C:(T=F,C=g(w=R,j))}}(i,u,fu(this,"style."+i,a))).each(function(p,g){var x,w,T,C,R="style."+g,j="end."+R;return function(){var F=to(this,p),$=F.on,it=F.value[R]==null?C||(C=_u(g)):void 0;$===x&&T===it||(w=(x=$).copy()).on(j,T=it),F.on=w}}(this._id,i)):this.styleTween(i,function(p,g,x){var w,T,C=x+"";return function(){var R=an(this,p);return R===C?null:R===w?T:T=g(w=R,x)}}(i,u,a),s).on("end.style."+i,null)},styleTween:function(i,a,s){var u="style."+(i+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(a==null)return this.tween(u,null);if(typeof a!="function")throw new Error;return this.tween(u,ci(i,a,s==null?"":s))},text:function(i){return this.tween("text",typeof i=="function"?function(a){return function(){var s=a(this);this.textContent=s==null?"":s}}(fu(this,"text",i)):function(a){return function(){this.textContent=a}}(i==null?"":i+""))},textTween:function(i){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(i==null)return this.tween(a,null);if(typeof i!="function")throw new Error;return this.tween(a,zs(i))},remove:function(){return this.on("end.remove",function(i){return function(){var a=this.parentNode;for(var s in this.__transition)if(+s!==i)return;a&&a.removeChild(this)}}(this._id))},tween:function(i,a){var s=this._id;if(i+="",arguments.length<2){for(var u,p=Ra(this.node(),s).tween,g=0,x=p.length;g<x;++g)if((u=p[g]).name===i)return u.value;return null}return this.each((a==null?i1:ed)(s,i,a))},delay:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?id:ad)(a,i)):Ra(this.node(),a).delay},duration:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?yu:mu)(a,i)):Ra(this.node(),a).duration},ease:function(i){var a=this._id;return arguments.length?this.each(go(a,i)):Ra(this.node(),a).ease},easeVarying:function(i){if(typeof i!="function")throw new Error;return this.each(function(a,s){return function(){var u=s.apply(this,arguments);if(typeof u!="function")throw new Error;to(this,a).ease=u}}(this._id,i))},end:function(){var i,a,s=this,u=s._id,p=s.size();return new Promise(function(g,x){var w={value:x},T={value:function(){--p==0&&g()}};s.each(function(){var C=to(this,u),R=C.on;R!==i&&((a=(i=R).copy())._.cancel.push(w),a._.interrupt.push(w),a._.end.push(T)),C.on=a}),p===0&&g()})},[Symbol.iterator]:qa[Symbol.iterator]};var sd={time:null,delay:0,duration:250,ease:Us};function vu(i,a){for(var s;!(s=i.__transition)||!(s=s[a]);)if(!(i=i.parentNode))throw new Error(`transition ${a} not found`);return s}Pn.prototype.interrupt=function(i){return this.each(function(){eo(this,i)})},Pn.prototype.transition=function(i){var a,s;i instanceof ba?(a=i._id,i=i._name):(a=fl(),(s=sd).time=Tc(),i=i==null?null:i+"");for(var u=this._groups,p=u.length,g=0;g<p;++g)for(var x,w=u[g],T=w.length,C=0;C<T;++C)(x=w[C])&&fo(x,i,a,C,w,s||vu(x,a));return new ba(u,this._parents,i,a)};var c1=[null];function cd(i,a){var s,u,p=i.__transition;if(p){for(u in a=a==null?null:a+"",p)if((s=p[u]).state>1&&s.name===a)return new ba([[i]],c1,a,+u)}return null}const Cc=i=>()=>i;function l1(i,{sourceEvent:a,target:s,selection:u,mode:p,dispatch:g}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:s,enumerable:!0,configurable:!0},selection:{value:u,enumerable:!0,configurable:!0},mode:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}function ld(i){i.stopImmediatePropagation()}function yl(i){i.preventDefault(),i.stopImmediatePropagation()}var xu={name:"drag"},no={name:"space"},Ys={name:"handle"},Li={name:"center"};const{abs:u1,max:Ui,min:Wi}=Math;function h1(i){return[+i[0],+i[1]]}function wu(i){return[h1(i[0]),h1(i[1])]}var ml={name:"x",handles:["w","e"].map(va),input:function(i,a){return i==null?null:[[+i[0],a[0][1]],[+i[1],a[1][1]]]},output:function(i){return i&&[i[0][0],i[1][0]]}},_l={name:"y",handles:["n","s"].map(va),input:function(i,a){return i==null?null:[[a[0][0],+i[0]],[a[1][0],+i[1]]]},output:function(i){return i&&[i[0][1],i[1][1]]}},ud={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(va),input:function(i){return i==null?null:wu(i)},output:function(i){return i}},yo={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},d1={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},f1={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},hd={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},dd={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function va(i){return{type:i}}function fd(i){return!i.ctrlKey&&!i.button}function p1(){var i=this.ownerSVGElement||this;return i.hasAttribute("viewBox")?[[(i=i.viewBox.baseVal).x,i.y],[i.x+i.width,i.y+i.height]]:[[0,0],[i.width.baseVal.value,i.height.baseVal.value]]}function g1(){return navigator.maxTouchPoints||"ontouchstart"in this}function bl(i){for(;!i.__brush;)if(!(i=i.parentNode))return;return i.__brush}function vl(i){return i[0][0]===i[1][0]||i[0][1]===i[1][1]}function y1(i){var a=i.__brush;return a?a.dim.output(a.selection):null}function m1(){return Eu(ml)}function _1(){return Eu(_l)}function ku(){return Eu(ud)}function Eu(i){var a,s=p1,u=fd,p=g1,g=!0,x=ln("start","brush","end"),w=6;function T(V){var X=V.property("__brush",G).selectAll(".overlay").data([va("overlay")]);X.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",yo.overlay).merge(X).each(function(){var ut=bl(this).extent;ki(this).attr("x",ut[0][0]).attr("y",ut[0][1]).attr("width",ut[1][0]-ut[0][0]).attr("height",ut[1][1]-ut[0][1])}),V.selectAll(".selection").data([va("selection")]).enter().append("rect").attr("class","selection").attr("cursor",yo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var pt=V.selectAll(".handle").data(i.handles,function(ut){return ut.type});pt.exit().remove(),pt.enter().append("rect").attr("class",function(ut){return"handle handle--"+ut.type}).attr("cursor",function(ut){return yo[ut.type]}),V.each(C).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",F).filter(p).on("touchstart.brush",F).on("touchmove.brush",$).on("touchend.brush touchcancel.brush",it).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function C(){var V=ki(this),X=bl(this).selection;X?(V.selectAll(".selection").style("display",null).attr("x",X[0][0]).attr("y",X[0][1]).attr("width",X[1][0]-X[0][0]).attr("height",X[1][1]-X[0][1]),V.selectAll(".handle").style("display",null).attr("x",function(pt){return pt.type[pt.type.length-1]==="e"?X[1][0]-w/2:X[0][0]-w/2}).attr("y",function(pt){return pt.type[0]==="s"?X[1][1]-w/2:X[0][1]-w/2}).attr("width",function(pt){return pt.type==="n"||pt.type==="s"?X[1][0]-X[0][0]+w:w}).attr("height",function(pt){return pt.type==="e"||pt.type==="w"?X[1][1]-X[0][1]+w:w})):V.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function R(V,X,pt){var ut=V.__brush.emitter;return!ut||pt&&ut.clean?new j(V,X,pt):ut}function j(V,X,pt){this.that=V,this.args=X,this.state=V.__brush,this.active=0,this.clean=pt}function F(V){if((!a||V.touches)&&u.apply(this,arguments)){var X,pt,ut,ht,vt,kt,ee,me,Vt,jt,$t,qt=this,Et=V.target.__data__.type,Ft=(g&&V.metaKey?Et="overlay":Et)==="selection"?xu:g&&V.altKey?Li:Ys,Xt=i===_l?null:hd[Et],oe=i===ml?null:dd[Et],Ae=bl(qt),He=Ae.extent,Xe=Ae.selection,gr=He[0][0],Ke=He[0][1],Hr=He[1][0],Wr=He[1][1],Or=0,Pr=0,Sn=Xt&&oe&&g&&V.shiftKey,cn=Array.from(V.touches||[V],hn=>{const ji=hn.identifier;return(hn=ua(hn,qt)).point0=hn.slice(),hn.identifier=ji,hn});eo(qt);var Ya=R(qt,arguments,!0).beforestart();if(Et==="overlay"){Xe&&(Vt=!0);const hn=[cn[0],cn[1]||cn[0]];Ae.selection=Xe=[[X=i===_l?gr:Wi(hn[0][0],hn[1][0]),ut=i===ml?Ke:Wi(hn[0][1],hn[1][1])],[vt=i===_l?Hr:Ui(hn[0][0],hn[1][0]),ee=i===ml?Wr:Ui(hn[0][1],hn[1][1])]],cn.length>1&&Qc(V)}else X=Xe[0][0],ut=Xe[0][1],vt=Xe[1][0],ee=Xe[1][1];pt=X,ht=ut,kt=vt,me=ee;var dc=ki(qt).attr("pointer-events","none"),Ao=dc.selectAll(".overlay").attr("cursor",yo[Et]);if(V.touches)Ya.moved=Nm,Ya.ended=Im;else{var ou=ki(V.view).on("mousemove.brush",Nm,!0).on("mouseup.brush",Im,!0);g&&ou.on("keydown.brush",T5,!0).on("keyup.brush",S5,!0),ho(V.view)}C.call(qt),Ya.start(V,Ft.name)}function Nm(hn){for(const ji of hn.changedTouches||[hn])for(const Wh of cn)Wh.identifier===ji.identifier&&(Wh.cur=ua(ji,qt));if(Sn&&!jt&&!$t&&cn.length===1){const ji=cn[0];u1(ji.cur[0]-ji[0])>u1(ji.cur[1]-ji[1])?$t=!0:jt=!0}for(const ji of cn)ji.cur&&(ji[0]=ji.cur[0],ji[1]=ji.cur[1]);Vt=!0,yl(hn),Qc(hn)}function Qc(hn){const ji=cn[0],Wh=ji.point0;var fc;switch(Or=ji[0]-Wh[0],Pr=ji[1]-Wh[1],Ft){case no:case xu:Xt&&(Or=Ui(gr-X,Wi(Hr-vt,Or)),pt=X+Or,kt=vt+Or),oe&&(Pr=Ui(Ke-ut,Wi(Wr-ee,Pr)),ht=ut+Pr,me=ee+Pr);break;case Ys:cn[1]?(Xt&&(pt=Ui(gr,Wi(Hr,cn[0][0])),kt=Ui(gr,Wi(Hr,cn[1][0])),Xt=1),oe&&(ht=Ui(Ke,Wi(Wr,cn[0][1])),me=Ui(Ke,Wi(Wr,cn[1][1])),oe=1)):(Xt<0?(Or=Ui(gr-X,Wi(Hr-X,Or)),pt=X+Or,kt=vt):Xt>0&&(Or=Ui(gr-vt,Wi(Hr-vt,Or)),pt=X,kt=vt+Or),oe<0?(Pr=Ui(Ke-ut,Wi(Wr-ut,Pr)),ht=ut+Pr,me=ee):oe>0&&(Pr=Ui(Ke-ee,Wi(Wr-ee,Pr)),ht=ut,me=ee+Pr));break;case Li:Xt&&(pt=Ui(gr,Wi(Hr,X-Or*Xt)),kt=Ui(gr,Wi(Hr,vt+Or*Xt))),oe&&(ht=Ui(Ke,Wi(Wr,ut-Pr*oe)),me=Ui(Ke,Wi(Wr,ee+Pr*oe)))}kt<pt&&(Xt*=-1,fc=X,X=vt,vt=fc,fc=pt,pt=kt,kt=fc,Et in d1&&Ao.attr("cursor",yo[Et=d1[Et]])),me<ht&&(oe*=-1,fc=ut,ut=ee,ee=fc,fc=ht,ht=me,me=fc,Et in f1&&Ao.attr("cursor",yo[Et=f1[Et]])),Ae.selection&&(Xe=Ae.selection),jt&&(pt=Xe[0][0],kt=Xe[1][0]),$t&&(ht=Xe[0][1],me=Xe[1][1]),Xe[0][0]===pt&&Xe[0][1]===ht&&Xe[1][0]===kt&&Xe[1][1]===me||(Ae.selection=[[pt,ht],[kt,me]],C.call(qt),Ya.brush(hn,Ft.name))}function Im(hn){if(ld(hn),hn.touches){if(hn.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500)}else os(hn.view,Vt),ou.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);dc.attr("pointer-events","all"),Ao.attr("cursor",yo.overlay),Ae.selection&&(Xe=Ae.selection),vl(Xe)&&(Ae.selection=null,C.call(qt)),Ya.end(hn,Ft.name)}function T5(hn){switch(hn.keyCode){case 16:Sn=Xt&&oe;break;case 18:Ft===Ys&&(Xt&&(vt=kt-Or*Xt,X=pt+Or*Xt),oe&&(ee=me-Pr*oe,ut=ht+Pr*oe),Ft=Li,Qc(hn));break;case 32:Ft!==Ys&&Ft!==Li||(Xt<0?vt=kt-Or:Xt>0&&(X=pt-Or),oe<0?ee=me-Pr:oe>0&&(ut=ht-Pr),Ft=no,Ao.attr("cursor",yo.selection),Qc(hn));break;default:return}yl(hn)}function S5(hn){switch(hn.keyCode){case 16:Sn&&(jt=$t=Sn=!1,Qc(hn));break;case 18:Ft===Li&&(Xt<0?vt=kt:Xt>0&&(X=pt),oe<0?ee=me:oe>0&&(ut=ht),Ft=Ys,Qc(hn));break;case 32:Ft===no&&(hn.altKey?(Xt&&(vt=kt-Or*Xt,X=pt+Or*Xt),oe&&(ee=me-Pr*oe,ut=ht+Pr*oe),Ft=Li):(Xt<0?vt=kt:Xt>0&&(X=pt),oe<0?ee=me:oe>0&&(ut=ht),Ft=Ys),Ao.attr("cursor",yo[Et]),Qc(hn));break;default:return}yl(hn)}}function $(V){R(this,arguments).moved(V)}function it(V){R(this,arguments).ended(V)}function G(){var V=this.__brush||{selection:null};return V.extent=wu(s.apply(this,arguments)),V.dim=i,V}return T.move=function(V,X,pt){V.tween?V.on("start.brush",function(ut){R(this,arguments).beforestart().start(ut)}).on("interrupt.brush end.brush",function(ut){R(this,arguments).end(ut)}).tween("brush",function(){var ut=this,ht=ut.__brush,vt=R(ut,arguments),kt=ht.selection,ee=i.input(typeof X=="function"?X.apply(this,arguments):X,ht.extent),me=tn(kt,ee);function Vt(jt){ht.selection=jt===1&&ee===null?null:me(jt),C.call(ut),vt.brush()}return kt!==null&&ee!==null?Vt:Vt(1)}):V.each(function(){var ut=this,ht=arguments,vt=ut.__brush,kt=i.input(typeof X=="function"?X.apply(ut,ht):X,vt.extent),ee=R(ut,ht).beforestart();eo(ut),vt.selection=kt===null?null:kt,C.call(ut),ee.start(pt).brush(pt).end(pt)})},T.clear=function(V,X){T.move(V,null,X)},j.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function(V,X){return this.starting?(this.starting=!1,this.emit("start",V,X)):this.emit("brush",V),this},brush:function(V,X){return this.emit("brush",V,X),this},end:function(V,X){return--this.active==0&&(delete this.state.emitter,this.emit("end",V,X)),this},emit:function(V,X,pt){var ut=ki(this.that).datum();x.call(V,this.that,new l1(V,{sourceEvent:X,target:T,selection:i.output(this.state.selection),mode:pt,dispatch:x}),ut)}},T.extent=function(V){return arguments.length?(s=typeof V=="function"?V:Cc(wu(V)),T):s},T.filter=function(V){return arguments.length?(u=typeof V=="function"?V:Cc(!!V),T):u},T.touchable=function(V){return arguments.length?(p=typeof V=="function"?V:Cc(!!V),T):p},T.handleSize=function(V){return arguments.length?(w=+V,T):w},T.keyModifiers=function(V){return arguments.length?(g=!!V,T):g},T.on=function(){var V=x.on.apply(x,arguments);return V===x?T:V},T}var Tu=Math.abs,Po=Math.cos,zo=Math.sin,Nc=Math.PI,xa=Nc/2,xl=2*Nc,wl=Math.max,ds=1e-12;function fs(i,a){return Array.from({length:a-i},(s,u)=>i+u)}function Su(i){return function(a,s){return i(a.source.value+a.target.value,s.source.value+s.target.value)}}function Au(){return kl(!1,!1)}function Cu(){return kl(!1,!0)}function js(){return kl(!0,!1)}function kl(i,a){var s=0,u=null,p=null,g=null;function x(w){var T,C=w.length,R=new Array(C),j=fs(0,C),F=new Array(C*C),$=new Array(C),it=0;w=Float64Array.from({length:C*C},a?(G,V)=>w[V%C][V/C|0]:(G,V)=>w[V/C|0][V%C]);for(let G=0;G<C;++G){let V=0;for(let X=0;X<C;++X)V+=w[G*C+X]+i*w[X*C+G];it+=R[G]=V}T=(it=wl(0,xl-s*C)/it)?s:xl/C;{let G=0;u&&j.sort((V,X)=>u(R[V],R[X]));for(const V of j){const X=G;if(i){const pt=fs(1+~C,C).filter(ut=>ut<0?w[~ut*C+V]:w[V*C+ut]);p&&pt.sort((ut,ht)=>p(ut<0?-w[~ut*C+V]:w[V*C+ut],ht<0?-w[~ht*C+V]:w[V*C+ht]));for(const ut of pt)ut<0?(F[~ut*C+V]||(F[~ut*C+V]={source:null,target:null})).target={index:V,startAngle:G,endAngle:G+=w[~ut*C+V]*it,value:w[~ut*C+V]}:(F[V*C+ut]||(F[V*C+ut]={source:null,target:null})).source={index:V,startAngle:G,endAngle:G+=w[V*C+ut]*it,value:w[V*C+ut]};$[V]={index:V,startAngle:X,endAngle:G,value:R[V]}}else{const pt=fs(0,C).filter(ut=>w[V*C+ut]||w[ut*C+V]);p&&pt.sort((ut,ht)=>p(w[V*C+ut],w[V*C+ht]));for(const ut of pt){let ht;if(V<ut?(ht=F[V*C+ut]||(F[V*C+ut]={source:null,target:null}),ht.source={index:V,startAngle:G,endAngle:G+=w[V*C+ut]*it,value:w[V*C+ut]}):(ht=F[ut*C+V]||(F[ut*C+V]={source:null,target:null}),ht.target={index:V,startAngle:G,endAngle:G+=w[V*C+ut]*it,value:w[V*C+ut]},V===ut&&(ht.source=ht.target)),ht.source&&ht.target&&ht.source.value<ht.target.value){const vt=ht.source;ht.source=ht.target,ht.target=vt}}$[V]={index:V,startAngle:X,endAngle:G,value:R[V]}}G+=T}}return(F=Object.values(F)).groups=$,g?F.sort(g):F}return x.padAngle=function(w){return arguments.length?(s=wl(0,w),x):s},x.sortGroups=function(w){return arguments.length?(u=w,x):u},x.sortSubgroups=function(w){return arguments.length?(p=w,x):p},x.sortChords=function(w){return arguments.length?(w==null?g=null:(g=Su(w))._=w,x):g&&g._},x}const $s=Math.PI,ps=2*$s,mo=1e-6,Nu=ps-mo;function El(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Iu(){return new El}El.prototype=Iu.prototype={constructor:El,moveTo:function(i,a){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+a)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(i,a){this._+="L"+(this._x1=+i)+","+(this._y1=+a)},quadraticCurveTo:function(i,a,s,u){this._+="Q"+ +i+","+ +a+","+(this._x1=+s)+","+(this._y1=+u)},bezierCurveTo:function(i,a,s,u,p,g){this._+="C"+ +i+","+ +a+","+ +s+","+ +u+","+(this._x1=+p)+","+(this._y1=+g)},arcTo:function(i,a,s,u,p){i=+i,a=+a,s=+s,u=+u,p=+p;var g=this._x1,x=this._y1,w=s-i,T=u-a,C=g-i,R=x-a,j=C*C+R*R;if(p<0)throw new Error("negative radius: "+p);if(this._x1===null)this._+="M"+(this._x1=i)+","+(this._y1=a);else if(j>mo)if(Math.abs(R*w-T*C)>mo&&p){var F=s-g,$=u-x,it=w*w+T*T,G=F*F+$*$,V=Math.sqrt(it),X=Math.sqrt(j),pt=p*Math.tan(($s-Math.acos((it+j-G)/(2*V*X)))/2),ut=pt/X,ht=pt/V;Math.abs(ut-1)>mo&&(this._+="L"+(i+ut*C)+","+(a+ut*R)),this._+="A"+p+","+p+",0,0,"+ +(R*F>C*$)+","+(this._x1=i+ht*w)+","+(this._y1=a+ht*T)}else this._+="L"+(this._x1=i)+","+(this._y1=a)},arc:function(i,a,s,u,p,g){i=+i,a=+a,g=!!g;var x=(s=+s)*Math.cos(u),w=s*Math.sin(u),T=i+x,C=a+w,R=1^g,j=g?u-p:p-u;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+T+","+C:(Math.abs(this._x1-T)>mo||Math.abs(this._y1-C)>mo)&&(this._+="L"+T+","+C),s&&(j<0&&(j=j%ps+ps),j>Nu?this._+="A"+s+","+s+",0,1,"+R+","+(i-x)+","+(a-w)+"A"+s+","+s+",0,1,"+R+","+(this._x1=T)+","+(this._y1=C):j>mo&&(this._+="A"+s+","+s+",0,"+ +(j>=$s)+","+R+","+(this._x1=i+s*Math.cos(p))+","+(this._y1=a+s*Math.sin(p))))},rect:function(i,a,s,u){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+a)+"h"+ +s+"v"+ +u+"h"+-s+"Z"},toString:function(){return this._}};const gs=Iu;var Lu=Array.prototype.slice;function Uo(i){return function(){return i}}function b1(i){return i.source}function v1(i){return i.target}function ys(i){return i.radius}function bi(i){return i.startAngle}function x1(i){return i.endAngle}function Hs(){return 0}function w1(){return 10}function Mu(i){var a=b1,s=v1,u=ys,p=ys,g=bi,x=x1,w=Hs,T=null;function C(){var R,j=a.apply(this,arguments),F=s.apply(this,arguments),$=w.apply(this,arguments)/2,it=Lu.call(arguments),G=+u.apply(this,(it[0]=j,it)),V=g.apply(this,it)-xa,X=x.apply(this,it)-xa,pt=+p.apply(this,(it[0]=F,it)),ut=g.apply(this,it)-xa,ht=x.apply(this,it)-xa;if(T||(T=R=gs()),$>ds&&(Tu(X-V)>2*$+ds?X>V?(V+=$,X-=$):(V-=$,X+=$):V=X=(V+X)/2,Tu(ht-ut)>2*$+ds?ht>ut?(ut+=$,ht-=$):(ut-=$,ht+=$):ut=ht=(ut+ht)/2),T.moveTo(G*Po(V),G*zo(V)),T.arc(0,0,G,V,X),V!==ut||X!==ht)if(i){var vt=+i.apply(this,arguments),kt=pt-vt,ee=(ut+ht)/2;T.quadraticCurveTo(0,0,kt*Po(ut),kt*zo(ut)),T.lineTo(pt*Po(ee),pt*zo(ee)),T.lineTo(kt*Po(ht),kt*zo(ht))}else T.quadraticCurveTo(0,0,pt*Po(ut),pt*zo(ut)),T.arc(0,0,pt,ut,ht);if(T.quadraticCurveTo(0,0,G*Po(V),G*zo(V)),T.closePath(),R)return T=null,R+""||null}return i&&(C.headRadius=function(R){return arguments.length?(i=typeof R=="function"?R:Uo(+R),C):i}),C.radius=function(R){return arguments.length?(u=p=typeof R=="function"?R:Uo(+R),C):u},C.sourceRadius=function(R){return arguments.length?(u=typeof R=="function"?R:Uo(+R),C):u},C.targetRadius=function(R){return arguments.length?(p=typeof R=="function"?R:Uo(+R),C):p},C.startAngle=function(R){return arguments.length?(g=typeof R=="function"?R:Uo(+R),C):g},C.endAngle=function(R){return arguments.length?(x=typeof R=="function"?R:Uo(+R),C):x},C.padAngle=function(R){return arguments.length?(w=typeof R=="function"?R:Uo(+R),C):w},C.source=function(R){return arguments.length?(a=R,C):a},C.target=function(R){return arguments.length?(s=R,C):s},C.context=function(R){return arguments.length?(T=R==null?null:R,C):T},C}function k1(){return Mu()}function E1(){return Mu(w1)}const Ou=Math.PI/180,_o=180/Math.PI,Tl=.96422,T1=.82521,S1=4/29,Sl=6/29,Du=3*Sl*Sl;function A1(i){if(i instanceof Wa)return new Wa(i.l,i.a,i.b,i.opacity);if(i instanceof io)return N1(i);i instanceof Vn||(i=Gn(i));var a,s,u=Ic(i.r),p=Ic(i.g),g=Ic(i.b),x=Ru((.2225045*u+.7168786*p+.0606169*g)/1);return u===p&&p===g?a=s=x:(a=Ru((.4360747*u+.3850649*p+.1430804*g)/Tl),s=Ru((.0139322*u+.0971045*p+.7141733*g)/T1)),new Wa(116*x-16,500*(a-x),200*(x-s),i.opacity)}function pd(i,a){return new Wa(i,0,0,a==null?1:a)}function Al(i,a,s,u){return arguments.length===1?A1(i):new Wa(i,a,s,u==null?1:u)}function Wa(i,a,s,u){this.l=+i,this.a=+a,this.b=+s,this.opacity=+u}function Ru(i){return i>.008856451679035631?Math.pow(i,1/3):i/Du+S1}function Bu(i){return i>Sl?i*i*i:Du*(i-S1)}function qs(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function Ic(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function C1(i){if(i instanceof io)return new io(i.h,i.c,i.l,i.opacity);if(i instanceof Wa||(i=A1(i)),i.a===0&&i.b===0)return new io(NaN,0<i.l&&i.l<100?0:NaN,i.l,i.opacity);var a=Math.atan2(i.b,i.a)*_o;return new io(a<0?a+360:a,Math.sqrt(i.a*i.a+i.b*i.b),i.l,i.opacity)}function Yo(i,a,s,u){return arguments.length===1?C1(i):new io(s,a,i,u==null?1:u)}function Ba(i,a,s,u){return arguments.length===1?C1(i):new io(i,a,s,u==null?1:u)}function io(i,a,s,u){this.h=+i,this.c=+a,this.l=+s,this.opacity=+u}function N1(i){if(isNaN(i.h))return new Wa(i.l,0,0,i.opacity);var a=i.h*Ou;return new Wa(i.l,Math.cos(a)*i.c,Math.sin(a)*i.c,i.opacity)}zi(Wa,Al,vr(_a,{brighter:function(i){return new Wa(this.l+18*(i==null?1:i),this.a,this.b,this.opacity)},darker:function(i){return new Wa(this.l-18*(i==null?1:i),this.a,this.b,this.opacity)},rgb:function(){var i=(this.l+16)/116,a=isNaN(this.a)?i:i+this.a/500,s=isNaN(this.b)?i:i-this.b/200;return new Vn(qs(3.1338561*(a=Tl*Bu(a))-1.6168667*(i=1*Bu(i))-.4906146*(s=T1*Bu(s))),qs(-.9787684*a+1.9161415*i+.033454*s),qs(.0719453*a-.2289914*i+1.4052427*s),this.opacity)}})),zi(io,Ba,vr(_a,{brighter:function(i){return new io(this.h,this.c,this.l+18*(i==null?1:i),this.opacity)},darker:function(i){return new io(this.h,this.c,this.l-18*(i==null?1:i),this.opacity)},rgb:function(){return N1(this).rgb()}}));var I1=-.14861,Lc=1.78277,Gi=-.29227,jo=-.90649,Fa=1.97294,Ws=Fa*jo,L1=Fa*Lc,Cl=Lc*Gi-jo*I1;function gd(i){if(i instanceof $o)return new $o(i.h,i.s,i.l,i.opacity);i instanceof Vn||(i=Gn(i));var a=i.r/255,s=i.g/255,u=i.b/255,p=(Cl*u+Ws*a-L1*s)/(Cl+Ws-L1),g=u-p,x=(Fa*(s-p)-Gi*g)/jo,w=Math.sqrt(x*x+g*g)/(Fa*p*(1-p)),T=w?Math.atan2(x,g)*_o-120:NaN;return new $o(T<0?T+360:T,w,p,i.opacity)}function En(i,a,s,u){return arguments.length===1?gd(i):new $o(i,a,s,u==null?1:u)}function $o(i,a,s,u){this.h=+i,this.s=+a,this.l=+s,this.opacity=+u}zi($o,En,vr(_a,{brighter:function(i){return i=i==null?ra:Math.pow(ra,i),new $o(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?qi:Math.pow(qi,i),new $o(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=isNaN(this.h)?0:(this.h+120)*Ou,a=+this.l,s=isNaN(this.s)?0:this.s*a*(1-a),u=Math.cos(i),p=Math.sin(i);return new Vn(255*(a+s*(I1*u+Lc*p)),255*(a+s*(Gi*u+jo*p)),255*(a+s*(Fa*u)),this.opacity)}}));var Fu=Array.prototype.slice;function M1(i,a){return i-a}const bo=i=>()=>i;function Gs(i,a){for(var s,u=-1,p=a.length;++u<p;)if(s=yd(i,a[u]))return s;return 0}function yd(i,a){for(var s=a[0],u=a[1],p=-1,g=0,x=i.length,w=x-1;g<x;w=g++){var T=i[g],C=T[0],R=T[1],j=i[w],F=j[0],$=j[1];if(Pu(T,j,a))return 0;R>u!=$>u&&s<(F-C)*(u-R)/($-R)+C&&(p=-p)}return p}function Pu(i,a,s){var u,p,g,x;return function(w,T,C){return(T[0]-w[0])*(C[1]-w[1])==(C[0]-w[0])*(T[1]-w[1])}(i,a,s)&&(p=i[u=+(i[0]===a[0])],g=s[u],x=a[u],p<=g&&g<=x||x<=g&&g<=p)}function md(){}var vo=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Vs(){var i=1,a=1,s=Pe,u=w;function p(T){var C=s(T);if(Array.isArray(C))C=C.slice().sort(M1);else{const R=ot(T),j=Te(R[0],R[1],C);C=ce(Math.floor(R[0]/j)*j,Math.floor(R[1]/j-1)*j,C)}return C.map(R=>g(T,R))}function g(T,C){var R=[],j=[];return function(F,$,it){var G,V,X,pt,ut,ht,vt=new Array,kt=new Array;for(G=V=-1,pt=F[0]>=$,vo[pt<<1].forEach(ee);++G<i-1;)X=pt,pt=F[G+1]>=$,vo[X|pt<<1].forEach(ee);for(vo[pt<<0].forEach(ee);++V<a-1;){for(G=-1,pt=F[V*i+i]>=$,ut=F[V*i]>=$,vo[pt<<1|ut<<2].forEach(ee);++G<i-1;)X=pt,pt=F[V*i+i+G+1]>=$,ht=ut,ut=F[V*i+G+1]>=$,vo[X|pt<<1|ut<<2|ht<<3].forEach(ee);vo[pt|ut<<3].forEach(ee)}for(G=-1,ut=F[V*i]>=$,vo[ut<<2].forEach(ee);++G<i-1;)ht=ut,ut=F[V*i+G+1]>=$,vo[ut<<2|ht<<3].forEach(ee);function ee(me){var Vt,jt,$t=[me[0][0]+G,me[0][1]+V],qt=[me[1][0]+G,me[1][1]+V],Et=x($t),Ft=x(qt);(Vt=kt[Et])?(jt=vt[Ft])?(delete kt[Vt.end],delete vt[jt.start],Vt===jt?(Vt.ring.push(qt),it(Vt.ring)):vt[Vt.start]=kt[jt.end]={start:Vt.start,end:jt.end,ring:Vt.ring.concat(jt.ring)}):(delete kt[Vt.end],Vt.ring.push(qt),kt[Vt.end=Ft]=Vt):(Vt=vt[Ft])?(jt=kt[Et])?(delete vt[Vt.start],delete kt[jt.end],Vt===jt?(Vt.ring.push(qt),it(Vt.ring)):vt[jt.start]=kt[Vt.end]={start:jt.start,end:Vt.end,ring:jt.ring.concat(Vt.ring)}):(delete vt[Vt.start],Vt.ring.unshift($t),vt[Vt.start=Et]=Vt):vt[Et]=kt[Ft]={start:Et,end:Ft,ring:[$t,qt]}}vo[ut<<3].forEach(ee)}(T,C,function(F){u(F,T,C),function($){for(var it=0,G=$.length,V=$[G-1][1]*$[0][0]-$[G-1][0]*$[0][1];++it<G;)V+=$[it-1][1]*$[it][0]-$[it-1][0]*$[it][1];return V}(F)>0?R.push([F]):j.push(F)}),j.forEach(function(F){for(var $,it=0,G=R.length;it<G;++it)if(Gs(($=R[it])[0],F)!==-1)return void $.push(F)}),{type:"MultiPolygon",value:C,coordinates:R}}function x(T){return 2*T[0]+T[1]*(i+1)*4}function w(T,C,R){T.forEach(function(j){var F,$=j[0],it=j[1],G=0|$,V=0|it,X=C[V*i+G];$>0&&$<i&&G===$&&(F=C[V*i+G-1],j[0]=$+(R-F)/(X-F)-.5),it>0&&it<a&&V===it&&(F=C[(V-1)*i+G],j[1]=it+(R-F)/(X-F)-.5)})}return p.contour=g,p.size=function(T){if(!arguments.length)return[i,a];var C=Math.floor(T[0]),R=Math.floor(T[1]);if(!(C>=0&&R>=0))throw new Error("invalid size");return i=C,a=R,p},p.thresholds=function(T){return arguments.length?(s=typeof T=="function"?T:Array.isArray(T)?bo(Fu.call(T)):bo(T),p):s},p.smooth=function(T){return arguments.length?(u=T?w:md,p):u===w},p}function ao(i,a,s){for(var u=i.width,p=i.height,g=1+(s<<1),x=0;x<p;++x)for(var w=0,T=0;w<u+s;++w)w<u&&(T+=i.data[w+x*u]),w>=s&&(w>=g&&(T-=i.data[w-g+x*u]),a.data[w-s+x*u]=T/Math.min(w+1,u-1+g-w,g))}function wa(i,a,s){for(var u=i.width,p=i.height,g=1+(s<<1),x=0;x<u;++x)for(var w=0,T=0;w<p+s;++w)w<p&&(T+=i.data[x+w*u]),w>=s&&(w>=g&&(T-=i.data[x+(w-g)*u]),a.data[x+(w-s)*u]=T/Math.min(w+1,p-1+g-w,g))}function Nl(i){return i[0]}function zu(i){return i[1]}function _d(){return 1}function Pa(){var i=Nl,a=zu,s=_d,u=960,p=500,g=20,x=2,w=3*g,T=u+2*w>>x,C=p+2*w>>x,R=bo(20);function j(X){var pt=new Float32Array(T*C),ut=new Float32Array(T*C),ht=Math.pow(2,-x);X.forEach(function(ee,me,Vt){var jt=(i(ee,me,Vt)+w)*ht,$t=(a(ee,me,Vt)+w)*ht,qt=+s(ee,me,Vt);if(jt>=0&&jt<T&&$t>=0&&$t<C){var Et=Math.floor(jt),Ft=Math.floor($t),Xt=jt-Et-.5,oe=$t-Ft-.5;pt[Et+Ft*T]+=(1-Xt)*(1-oe)*qt,pt[Et+1+Ft*T]+=Xt*(1-oe)*qt,pt[Et+1+(Ft+1)*T]+=Xt*oe*qt,pt[Et+(Ft+1)*T]+=(1-Xt)*oe*qt}}),ao({width:T,height:C,data:pt},{width:T,height:C,data:ut},g>>x),wa({width:T,height:C,data:ut},{width:T,height:C,data:pt},g>>x),ao({width:T,height:C,data:pt},{width:T,height:C,data:ut},g>>x),wa({width:T,height:C,data:ut},{width:T,height:C,data:pt},g>>x),ao({width:T,height:C,data:pt},{width:T,height:C,data:ut},g>>x),wa({width:T,height:C,data:ut},{width:T,height:C,data:pt},g>>x);var vt=R(pt);if(!Array.isArray(vt)){var kt=Ze(pt);vt=Te(0,kt,vt),(vt=Ie(0,Math.floor(kt/vt)*vt,vt)).shift()}return Vs().thresholds(vt).size([T,C])(pt).map(F)}function F(X){return X.value*=Math.pow(2,-2*x),X.coordinates.forEach($),X}function $(X){X.forEach(it)}function it(X){X.forEach(G)}function G(X){X[0]=X[0]*Math.pow(2,x)-w,X[1]=X[1]*Math.pow(2,x)-w}function V(){return T=u+2*(w=3*g)>>x,C=p+2*w>>x,j}return j.x=function(X){return arguments.length?(i=typeof X=="function"?X:bo(+X),j):i},j.y=function(X){return arguments.length?(a=typeof X=="function"?X:bo(+X),j):a},j.weight=function(X){return arguments.length?(s=typeof X=="function"?X:bo(+X),j):s},j.size=function(X){if(!arguments.length)return[u,p];var pt=+X[0],ut=+X[1];if(!(pt>=0&&ut>=0))throw new Error("invalid size");return u=pt,p=ut,V()},j.cellSize=function(X){if(!arguments.length)return 1<<x;if(!((X=+X)>=1))throw new Error("invalid cell size");return x=Math.floor(Math.log(X)/Math.LN2),V()},j.thresholds=function(X){return arguments.length?(R=typeof X=="function"?X:Array.isArray(X)?bo(Fu.call(X)):bo(X),j):R},j.bandwidth=function(X){if(!arguments.length)return Math.sqrt(g*(g+1));if(!((X=+X)>=0))throw new Error("invalid bandwidth");return g=Math.round((Math.sqrt(4*X*X+1)-1)/2),V()},j}const vi=134217729;function Ho(i,a,s,u,p){let g,x,w,T,C=a[0],R=u[0],j=0,F=0;R>C==R>-C?(g=C,C=a[++j]):(g=R,R=u[++F]);let $=0;if(j<i&&F<s)for(R>C==R>-C?(x=C+g,w=g-(x-C),C=a[++j]):(x=R+g,w=g-(x-R),R=u[++F]),g=x,w!==0&&(p[$++]=w);j<i&&F<s;)R>C==R>-C?(x=g+C,T=x-g,w=g-(x-T)+(C-T),C=a[++j]):(x=g+R,T=x-g,w=g-(x-T)+(R-T),R=u[++F]),g=x,w!==0&&(p[$++]=w);for(;j<i;)x=g+C,T=x-g,w=g-(x-T)+(C-T),C=a[++j],g=x,w!==0&&(p[$++]=w);for(;F<s;)x=g+R,T=x-g,w=g-(x-T)+(R-T),R=u[++F],g=x,w!==0&&(p[$++]=w);return g===0&&$!==0||(p[$++]=g),$}function xo(i){return new Float64Array(i)}const ms=xo(4),Uu=xo(8),Il=xo(12),Yu=xo(16),Vi=xo(4);function Mc(i,a,s,u,p,g){const x=(a-g)*(s-p),w=(i-p)*(u-g),T=x-w;if(x===0||w===0||x>0!=w>0)return T;const C=Math.abs(x+w);return Math.abs(T)>=33306690738754716e-32*C?T:-function(R,j,F,$,it,G,V){let X,pt,ut,ht,vt,kt,ee,me,Vt,jt,$t,qt,Et,Ft,Xt,oe,Ae,He;const Xe=R-it,gr=F-it,Ke=j-G,Hr=$-G;Ft=Xe*Hr,kt=vi*Xe,ee=kt-(kt-Xe),me=Xe-ee,kt=vi*Hr,Vt=kt-(kt-Hr),jt=Hr-Vt,Xt=me*jt-(Ft-ee*Vt-me*Vt-ee*jt),oe=Ke*gr,kt=vi*Ke,ee=kt-(kt-Ke),me=Ke-ee,kt=vi*gr,Vt=kt-(kt-gr),jt=gr-Vt,Ae=me*jt-(oe-ee*Vt-me*Vt-ee*jt),$t=Xt-Ae,vt=Xt-$t,ms[0]=Xt-($t+vt)+(vt-Ae),qt=Ft+$t,vt=qt-Ft,Et=Ft-(qt-vt)+($t-vt),$t=Et-oe,vt=Et-$t,ms[1]=Et-($t+vt)+(vt-oe),He=qt+$t,vt=He-qt,ms[2]=qt-(He-vt)+($t-vt),ms[3]=He;let Wr=function(Ya,dc){let Ao=dc[0];for(let ou=1;ou<4;ou++)Ao+=dc[ou];return Ao}(0,ms),Or=22204460492503146e-32*V;if(Wr>=Or||-Wr>=Or||(vt=R-Xe,X=R-(Xe+vt)+(vt-it),vt=F-gr,ut=F-(gr+vt)+(vt-it),vt=j-Ke,pt=j-(Ke+vt)+(vt-G),vt=$-Hr,ht=$-(Hr+vt)+(vt-G),X===0&&pt===0&&ut===0&&ht===0)||(Or=11093356479670487e-47*V+33306690738754706e-32*Math.abs(Wr),Wr+=Xe*ht+Hr*X-(Ke*ut+gr*pt),Wr>=Or||-Wr>=Or))return Wr;Ft=X*Hr,kt=vi*X,ee=kt-(kt-X),me=X-ee,kt=vi*Hr,Vt=kt-(kt-Hr),jt=Hr-Vt,Xt=me*jt-(Ft-ee*Vt-me*Vt-ee*jt),oe=pt*gr,kt=vi*pt,ee=kt-(kt-pt),me=pt-ee,kt=vi*gr,Vt=kt-(kt-gr),jt=gr-Vt,Ae=me*jt-(oe-ee*Vt-me*Vt-ee*jt),$t=Xt-Ae,vt=Xt-$t,Vi[0]=Xt-($t+vt)+(vt-Ae),qt=Ft+$t,vt=qt-Ft,Et=Ft-(qt-vt)+($t-vt),$t=Et-oe,vt=Et-$t,Vi[1]=Et-($t+vt)+(vt-oe),He=qt+$t,vt=He-qt,Vi[2]=qt-(He-vt)+($t-vt),Vi[3]=He;const Pr=Ho(4,ms,4,Vi,Uu);Ft=Xe*ht,kt=vi*Xe,ee=kt-(kt-Xe),me=Xe-ee,kt=vi*ht,Vt=kt-(kt-ht),jt=ht-Vt,Xt=me*jt-(Ft-ee*Vt-me*Vt-ee*jt),oe=Ke*ut,kt=vi*Ke,ee=kt-(kt-Ke),me=Ke-ee,kt=vi*ut,Vt=kt-(kt-ut),jt=ut-Vt,Ae=me*jt-(oe-ee*Vt-me*Vt-ee*jt),$t=Xt-Ae,vt=Xt-$t,Vi[0]=Xt-($t+vt)+(vt-Ae),qt=Ft+$t,vt=qt-Ft,Et=Ft-(qt-vt)+($t-vt),$t=Et-oe,vt=Et-$t,Vi[1]=Et-($t+vt)+(vt-oe),He=qt+$t,vt=He-qt,Vi[2]=qt-(He-vt)+($t-vt),Vi[3]=He;const Sn=Ho(Pr,Uu,4,Vi,Il);Ft=X*ht,kt=vi*X,ee=kt-(kt-X),me=X-ee,kt=vi*ht,Vt=kt-(kt-ht),jt=ht-Vt,Xt=me*jt-(Ft-ee*Vt-me*Vt-ee*jt),oe=pt*ut,kt=vi*pt,ee=kt-(kt-pt),me=pt-ee,kt=vi*ut,Vt=kt-(kt-ut),jt=ut-Vt,Ae=me*jt-(oe-ee*Vt-me*Vt-ee*jt),$t=Xt-Ae,vt=Xt-$t,Vi[0]=Xt-($t+vt)+(vt-Ae),qt=Ft+$t,vt=qt-Ft,Et=Ft-(qt-vt)+($t-vt),$t=Et-oe,vt=Et-$t,Vi[1]=Et-($t+vt)+(vt-oe),He=qt+$t,vt=He-qt,Vi[2]=qt-(He-vt)+($t-vt),Vi[3]=He;const cn=Ho(Sn,Il,4,Vi,Yu);return Yu[cn-1]}(i,a,s,u,p,g,C)}const ju=Math.pow(2,-52),Zs=new Uint32Array(512);class _s{static from(a,s=Dc,u=xd){const p=a.length,g=new Float64Array(2*p);for(let x=0;x<p;x++){const w=a[x];g[2*x]=s(w),g[2*x+1]=u(w)}return new _s(g)}constructor(a){const s=a.length>>1;if(s>0&&typeof a[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=a;const u=Math.max(2*s-5,0);this._triangles=new Uint32Array(3*u),this._halfedges=new Int32Array(3*u),this._hashSize=Math.ceil(Math.sqrt(s)),this._hullPrev=new Uint32Array(s),this._hullNext=new Uint32Array(s),this._hullTri=new Uint32Array(s),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(s),this._dists=new Float64Array(s),this.update()}update(){const{coords:a,_hullPrev:s,_hullNext:u,_hullTri:p,_hullHash:g}=this,x=a.length>>1;let w=1/0,T=1/0,C=-1/0,R=-1/0;for(let jt=0;jt<x;jt++){const $t=a[2*jt],qt=a[2*jt+1];$t<w&&(w=$t),qt<T&&(T=qt),$t>C&&(C=$t),qt>R&&(R=qt),this._ids[jt]=jt}const j=(w+C)/2,F=(T+R)/2;let $,it,G,V=1/0;for(let jt=0;jt<x;jt++){const $t=Ll(j,F,a[2*jt],a[2*jt+1]);$t<V&&($=jt,V=$t)}const X=a[2*$],pt=a[2*$+1];V=1/0;for(let jt=0;jt<x;jt++){if(jt===$)continue;const $t=Ll(X,pt,a[2*jt],a[2*jt+1]);$t<V&&$t>0&&(it=jt,V=$t)}let ut=a[2*it],ht=a[2*it+1],vt=1/0;for(let jt=0;jt<x;jt++){if(jt===$||jt===it)continue;const $t=vd(X,pt,ut,ht,a[2*jt],a[2*jt+1]);$t<vt&&(G=jt,vt=$t)}let kt=a[2*G],ee=a[2*G+1];if(vt===1/0){for(let qt=0;qt<x;qt++)this._dists[qt]=a[2*qt]-a[0]||a[2*qt+1]-a[1];Xs(this._ids,this._dists,0,x-1);const jt=new Uint32Array(x);let $t=0;for(let qt=0,Et=-1/0;qt<x;qt++){const Ft=this._ids[qt];this._dists[Ft]>Et&&(jt[$t++]=Ft,Et=this._dists[Ft])}return this.hull=jt.subarray(0,$t),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Mc(X,pt,ut,ht,kt,ee)<0){const jt=it,$t=ut,qt=ht;it=G,ut=kt,ht=ee,G=jt,kt=$t,ee=qt}const me=function(jt,$t,qt,Et,Ft,Xt){const oe=qt-jt,Ae=Et-$t,He=Ft-jt,Xe=Xt-$t,gr=oe*oe+Ae*Ae,Ke=He*He+Xe*Xe,Hr=.5/(oe*Xe-Ae*He);return{x:jt+(Xe*gr-Ae*Ke)*Hr,y:$t+(oe*Ke-He*gr)*Hr}}(X,pt,ut,ht,kt,ee);this._cx=me.x,this._cy=me.y;for(let jt=0;jt<x;jt++)this._dists[jt]=Ll(a[2*jt],a[2*jt+1],me.x,me.y);Xs(this._ids,this._dists,0,x-1),this._hullStart=$;let Vt=3;u[$]=s[G]=it,u[it]=s[$]=G,u[G]=s[it]=$,p[$]=0,p[it]=1,p[G]=2,g.fill(-1),g[this._hashKey(X,pt)]=$,g[this._hashKey(ut,ht)]=it,g[this._hashKey(kt,ee)]=G,this.trianglesLen=0,this._addTriangle($,it,G,-1,-1,-1);for(let jt,$t,qt=0;qt<this._ids.length;qt++){const Et=this._ids[qt],Ft=a[2*Et],Xt=a[2*Et+1];if(qt>0&&Math.abs(Ft-jt)<=ju&&Math.abs(Xt-$t)<=ju||(jt=Ft,$t=Xt,Et===$||Et===it||Et===G))continue;let oe=0;for(let Ke=0,Hr=this._hashKey(Ft,Xt);Ke<this._hashSize&&(oe=g[(Hr+Ke)%this._hashSize],oe===-1||oe===u[oe]);Ke++);oe=s[oe];let Ae,He=oe;for(;Ae=u[He],Mc(Ft,Xt,a[2*He],a[2*He+1],a[2*Ae],a[2*Ae+1])>=0;)if(He=Ae,He===oe){He=-1;break}if(He===-1)continue;let Xe=this._addTriangle(He,Et,u[He],-1,-1,p[He]);p[Et]=this._legalize(Xe+2),p[He]=Xe,Vt++;let gr=u[He];for(;Ae=u[gr],Mc(Ft,Xt,a[2*gr],a[2*gr+1],a[2*Ae],a[2*Ae+1])<0;)Xe=this._addTriangle(gr,Et,Ae,p[Et],-1,p[gr]),p[Et]=this._legalize(Xe+2),u[gr]=gr,Vt--,gr=Ae;if(He===oe)for(;Ae=s[He],Mc(Ft,Xt,a[2*Ae],a[2*Ae+1],a[2*He],a[2*He+1])<0;)Xe=this._addTriangle(Ae,Et,He,-1,p[He],p[Ae]),this._legalize(Xe+2),p[Ae]=Xe,u[He]=He,Vt--,He=Ae;this._hullStart=s[Et]=He,u[He]=s[gr]=Et,u[Et]=gr,g[this._hashKey(Ft,Xt)]=Et,g[this._hashKey(a[2*He],a[2*He+1])]=He}this.hull=new Uint32Array(Vt);for(let jt=0,$t=this._hullStart;jt<Vt;jt++)this.hull[jt]=$t,$t=u[$t];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(a,s){return Math.floor(function(u,p){const g=u/(Math.abs(u)+Math.abs(p));return(p>0?3-g:1+g)/4}(a-this._cx,s-this._cy)*this._hashSize)%this._hashSize}_legalize(a){const{_triangles:s,_halfedges:u,coords:p}=this;let g=0,x=0;for(;;){const w=u[a],T=a-a%3;if(x=T+(a+2)%3,w===-1){if(g===0)break;a=Zs[--g];continue}const C=w-w%3,R=T+(a+1)%3,j=C+(w+2)%3,F=s[x],$=s[a],it=s[R],G=s[j];if(bd(p[2*F],p[2*F+1],p[2*$],p[2*$+1],p[2*it],p[2*it+1],p[2*G],p[2*G+1])){s[a]=G,s[w]=F;const V=u[j];if(V===-1){let pt=this._hullStart;do{if(this._hullTri[pt]===j){this._hullTri[pt]=a;break}pt=this._hullPrev[pt]}while(pt!==this._hullStart)}this._link(a,V),this._link(w,u[x]),this._link(x,j);const X=C+(w+1)%3;g<Zs.length&&(Zs[g++]=X)}else{if(g===0)break;a=Zs[--g]}}return x}_link(a,s){this._halfedges[a]=s,s!==-1&&(this._halfedges[s]=a)}_addTriangle(a,s,u,p,g,x){const w=this.trianglesLen;return this._triangles[w]=a,this._triangles[w+1]=s,this._triangles[w+2]=u,this._link(w,p),this._link(w+1,g),this._link(w+2,x),this.trianglesLen+=3,w}}function Ll(i,a,s,u){const p=i-s,g=a-u;return p*p+g*g}function bd(i,a,s,u,p,g,x,w){const T=i-x,C=a-w,R=s-x,j=u-w,F=p-x,$=g-w,it=R*R+j*j,G=F*F+$*$;return T*(j*G-it*$)-C*(R*G-it*F)+(T*T+C*C)*(R*$-j*F)<0}function vd(i,a,s,u,p,g){const x=s-i,w=u-a,T=p-i,C=g-a,R=x*x+w*w,j=T*T+C*C,F=.5/(x*C-w*T),$=(C*R-w*j)*F,it=(x*j-T*R)*F;return $*$+it*it}function Xs(i,a,s,u){if(u-s<=20)for(let p=s+1;p<=u;p++){const g=i[p],x=a[g];let w=p-1;for(;w>=s&&a[i[w]]>x;)i[w+1]=i[w--];i[w+1]=g}else{let p=s+1,g=u;Oc(i,s+u>>1,p),a[i[s]]>a[i[u]]&&Oc(i,s,u),a[i[p]]>a[i[u]]&&Oc(i,p,u),a[i[s]]>a[i[p]]&&Oc(i,s,p);const x=i[p],w=a[x];for(;;){do p++;while(a[i[p]]<w);do g--;while(a[i[g]]>w);if(g<p)break;Oc(i,p,g)}i[s+1]=i[g],i[g]=x,u-p+1>=g-s?(Xs(i,a,p,u),Xs(i,a,s,g-1)):(Xs(i,a,s,g-1),Xs(i,a,p,u))}}function Oc(i,a,s){const u=i[a];i[a]=i[s],i[s]=u}function Dc(i){return i[0]}function xd(i){return i[1]}const Ga=1e-6;class bs{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(a,s){this._+=`M${this._x0=this._x1=+a},${this._y0=this._y1=+s}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(a,s){this._+=`L${this._x1=+a},${this._y1=+s}`}arc(a,s,u){const p=(a=+a)+(u=+u),g=s=+s;if(u<0)throw new Error("negative radius");this._x1===null?this._+=`M${p},${g}`:(Math.abs(this._x1-p)>Ga||Math.abs(this._y1-g)>Ga)&&(this._+="L"+p+","+g),u&&(this._+=`A${u},${u},0,1,1,${a-u},${s}A${u},${u},0,1,1,${this._x1=p},${this._y1=g}`)}rect(a,s,u,p){this._+=`M${this._x0=this._x1=+a},${this._y0=this._y1=+s}h${+u}v${+p}h${-u}Z`}value(){return this._||null}}class $u{constructor(){this._=[]}moveTo(a,s){this._.push([a,s])}closePath(){this._.push(this._[0].slice())}lineTo(a,s){this._.push([a,s])}value(){return this._.length?this._:null}}class O1{constructor(a,[s,u,p,g]=[0,0,960,500]){if(!((p=+p)>=(s=+s)&&(g=+g)>=(u=+u)))throw new Error("invalid bounds");this.delaunay=a,this._circumcenters=new Float64Array(2*a.points.length),this.vectors=new Float64Array(2*a.points.length),this.xmax=p,this.xmin=s,this.ymax=g,this.ymin=u,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:a,hull:s,triangles:u},vectors:p}=this,g=this.circumcenters=this._circumcenters.subarray(0,u.length/3*2);for(let $,it,G=0,V=0,X=u.length;G<X;G+=3,V+=2){const pt=2*u[G],ut=2*u[G+1],ht=2*u[G+2],vt=a[pt],kt=a[pt+1],ee=a[ut],me=a[ut+1],Vt=a[ht],jt=a[ht+1],$t=ee-vt,qt=me-kt,Et=Vt-vt,Ft=jt-kt,Xt=2*($t*Ft-qt*Et);if(Math.abs(Xt)<1e-9){let oe=1e9;const Ae=2*u[0];oe*=Math.sign((a[Ae]-vt)*Ft-(a[Ae+1]-kt)*Et),$=(vt+Vt)/2-oe*Ft,it=(kt+jt)/2+oe*Et}else{const oe=1/Xt,Ae=$t*$t+qt*qt,He=Et*Et+Ft*Ft;$=vt+(Ft*Ae-qt*He)*oe,it=kt+($t*He-Et*Ae)*oe}g[V]=$,g[V+1]=it}let x,w,T,C=s[s.length-1],R=4*C,j=a[2*C],F=a[2*C+1];p.fill(0);for(let $=0;$<s.length;++$)C=s[$],x=R,w=j,T=F,R=4*C,j=a[2*C],F=a[2*C+1],p[x+2]=p[R]=T-F,p[x+3]=p[R+1]=j-w}render(a){const s=a==null?a=new bs:void 0,{delaunay:{halfedges:u,inedges:p,hull:g},circumcenters:x,vectors:w}=this;if(g.length<=1)return null;for(let R=0,j=u.length;R<j;++R){const F=u[R];if(F<R)continue;const $=2*Math.floor(R/3),it=2*Math.floor(F/3),G=x[$],V=x[$+1],X=x[it],pt=x[it+1];this._renderSegment(G,V,X,pt,a)}let T,C=g[g.length-1];for(let R=0;R<g.length;++R){T=C,C=g[R];const j=2*Math.floor(p[C]/3),F=x[j],$=x[j+1],it=4*T,G=this._project(F,$,w[it+2],w[it+3]);G&&this._renderSegment(F,$,G[0],G[1],a)}return s&&s.value()}renderBounds(a){const s=a==null?a=new bs:void 0;return a.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),s&&s.value()}renderCell(a,s){const u=s==null?s=new bs:void 0,p=this._clip(a);if(p===null||!p.length)return;s.moveTo(p[0],p[1]);let g=p.length;for(;p[0]===p[g-2]&&p[1]===p[g-1]&&g>1;)g-=2;for(let x=2;x<g;x+=2)p[x]===p[x-2]&&p[x+1]===p[x-1]||s.lineTo(p[x],p[x+1]);return s.closePath(),u&&u.value()}*cellPolygons(){const{delaunay:{points:a}}=this;for(let s=0,u=a.length/2;s<u;++s){const p=this.cellPolygon(s);p&&(p.index=s,yield p)}}cellPolygon(a){const s=new $u;return this.renderCell(a,s),s.value()}_renderSegment(a,s,u,p,g){let x;const w=this._regioncode(a,s),T=this._regioncode(u,p);w===0&&T===0?(g.moveTo(a,s),g.lineTo(u,p)):(x=this._clipSegment(a,s,u,p,w,T))&&(g.moveTo(x[0],x[1]),g.lineTo(x[2],x[3]))}contains(a,s,u){return(s=+s)==s&&(u=+u)==u&&this.delaunay._step(a,s,u)===a}*neighbors(a){const s=this._clip(a);if(s)for(const u of this.delaunay.neighbors(a)){const p=this._clip(u);if(p){t:for(let g=0,x=s.length;g<x;g+=2)for(let w=0,T=p.length;w<T;w+=2)if(s[g]==p[w]&&s[g+1]==p[w+1]&&s[(g+2)%x]==p[(w+T-2)%T]&&s[(g+3)%x]==p[(w+T-1)%T]){yield u;break t}}}}_cell(a){const{circumcenters:s,delaunay:{inedges:u,halfedges:p,triangles:g}}=this,x=u[a];if(x===-1)return null;const w=[];let T=x;do{const C=Math.floor(T/3);if(w.push(s[2*C],s[2*C+1]),T=T%3==2?T-2:T+1,g[T]!==a)break;T=p[T]}while(T!==x&&T!==-1);return w}_clip(a){if(a===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const s=this._cell(a);if(s===null)return null;const{vectors:u}=this,p=4*a;return u[p]||u[p+1]?this._clipInfinite(a,s,u[p],u[p+1],u[p+2],u[p+3]):this._clipFinite(a,s)}_clipFinite(a,s){const u=s.length;let p,g,x,w,T=null,C=s[u-2],R=s[u-1],j=this._regioncode(C,R),F=0;for(let $=0;$<u;$+=2)if(p=C,g=R,C=s[$],R=s[$+1],x=j,j=this._regioncode(C,R),x===0&&j===0)w=F,F=0,T?T.push(C,R):T=[C,R];else{let it,G,V,X,pt;if(x===0){if((it=this._clipSegment(p,g,C,R,x,j))===null)continue;[G,V,X,pt]=it}else{if((it=this._clipSegment(C,R,p,g,j,x))===null)continue;[X,pt,G,V]=it,w=F,F=this._edgecode(G,V),w&&F&&this._edge(a,w,F,T,T.length),T?T.push(G,V):T=[G,V]}w=F,F=this._edgecode(X,pt),w&&F&&this._edge(a,w,F,T,T.length),T?T.push(X,pt):T=[X,pt]}if(T)w=F,F=this._edgecode(T[0],T[1]),w&&F&&this._edge(a,w,F,T,T.length);else if(this.contains(a,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return T}_clipSegment(a,s,u,p,g,x){for(;;){if(g===0&&x===0)return[a,s,u,p];if(g&x)return null;let w,T,C=g||x;8&C?(w=a+(u-a)*(this.ymax-s)/(p-s),T=this.ymax):4&C?(w=a+(u-a)*(this.ymin-s)/(p-s),T=this.ymin):2&C?(T=s+(p-s)*(this.xmax-a)/(u-a),w=this.xmax):(T=s+(p-s)*(this.xmin-a)/(u-a),w=this.xmin),g?(a=w,s=T,g=this._regioncode(a,s)):(u=w,p=T,x=this._regioncode(u,p))}}_clipInfinite(a,s,u,p,g,x){let w,T=Array.from(s);if((w=this._project(T[0],T[1],u,p))&&T.unshift(w[0],w[1]),(w=this._project(T[T.length-2],T[T.length-1],g,x))&&T.push(w[0],w[1]),T=this._clipFinite(a,T))for(let C,R=0,j=T.length,F=this._edgecode(T[j-2],T[j-1]);R<j;R+=2)C=F,F=this._edgecode(T[R],T[R+1]),C&&F&&(R=this._edge(a,C,F,T,R),j=T.length);else this.contains(a,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(T=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return T}_edge(a,s,u,p,g){for(;s!==u;){let x,w;switch(s){case 5:s=4;continue;case 4:s=6,x=this.xmax,w=this.ymin;break;case 6:s=2;continue;case 2:s=10,x=this.xmax,w=this.ymax;break;case 10:s=8;continue;case 8:s=9,x=this.xmin,w=this.ymax;break;case 9:s=1;continue;case 1:s=5,x=this.xmin,w=this.ymin}p[g]===x&&p[g+1]===w||!this.contains(a,x,w)||(p.splice(g,0,x,w),g+=2)}if(p.length>4)for(let x=0;x<p.length;x+=2){const w=(x+2)%p.length,T=(x+4)%p.length;(p[x]===p[w]&&p[w]===p[T]||p[x+1]===p[w+1]&&p[w+1]===p[T+1])&&(p.splice(w,2),x-=2)}return g}_project(a,s,u,p){let g,x,w,T=1/0;if(p<0){if(s<=this.ymin)return null;(g=(this.ymin-s)/p)<T&&(w=this.ymin,x=a+(T=g)*u)}else if(p>0){if(s>=this.ymax)return null;(g=(this.ymax-s)/p)<T&&(w=this.ymax,x=a+(T=g)*u)}if(u>0){if(a>=this.xmax)return null;(g=(this.xmax-a)/u)<T&&(x=this.xmax,w=s+(T=g)*p)}else if(u<0){if(a<=this.xmin)return null;(g=(this.xmin-a)/u)<T&&(x=this.xmin,w=s+(T=g)*p)}return[x,w]}_edgecode(a,s){return(a===this.xmin?1:a===this.xmax?2:0)|(s===this.ymin?4:s===this.ymax?8:0)}_regioncode(a,s){return(a<this.xmin?1:a>this.xmax?2:0)|(s<this.ymin?4:s>this.ymax?8:0)}}const D1=2*Math.PI,Ks=Math.pow;function wd(i){return i[0]}function kd(i){return i[1]}function Ed(i,a,s){return[i+Math.sin(i+a)*s,a+Math.cos(i-a)*s]}class Hu{static from(a,s=wd,u=kd,p){return new Hu("length"in a?function(g,x,w,T){const C=g.length,R=new Float64Array(2*C);for(let j=0;j<C;++j){const F=g[j];R[2*j]=x.call(T,F,j,g),R[2*j+1]=w.call(T,F,j,g)}return R}(a,s,u,p):Float64Array.from(function*(g,x,w,T){let C=0;for(const R of g)yield x.call(T,R,C,g),yield w.call(T,R,C,g),++C}(a,s,u,p)))}constructor(a){this._delaunator=new _s(a),this.inedges=new Int32Array(a.length/2),this._hullIndex=new Int32Array(a.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const a=this._delaunator,s=this.points;if(a.hull&&a.hull.length>2&&function(T){const{triangles:C,coords:R}=T;for(let j=0;j<C.length;j+=3){const F=2*C[j],$=2*C[j+1],it=2*C[j+2];if((R[it]-R[F])*(R[$+1]-R[F+1])-(R[$]-R[F])*(R[it+1]-R[F+1])>1e-10)return!1}return!0}(a)){this.collinear=Int32Array.from({length:s.length/2},(F,$)=>$).sort((F,$)=>s[2*F]-s[2*$]||s[2*F+1]-s[2*$+1]);const T=this.collinear[0],C=this.collinear[this.collinear.length-1],R=[s[2*T],s[2*T+1],s[2*C],s[2*C+1]],j=1e-8*Math.hypot(R[3]-R[1],R[2]-R[0]);for(let F=0,$=s.length/2;F<$;++F){const it=Ed(s[2*F],s[2*F+1],j);s[2*F]=it[0],s[2*F+1]=it[1]}this._delaunator=new _s(s)}else delete this.collinear;const u=this.halfedges=this._delaunator.halfedges,p=this.hull=this._delaunator.hull,g=this.triangles=this._delaunator.triangles,x=this.inedges.fill(-1),w=this._hullIndex.fill(-1);for(let T=0,C=u.length;T<C;++T){const R=g[T%3==2?T-2:T+1];u[T]!==-1&&x[R]!==-1||(x[R]=T)}for(let T=0,C=p.length;T<C;++T)w[p[T]]=T;p.length<=2&&p.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=p[0],x[p[0]]=1,p.length===2&&(x[p[1]]=0,this.triangles[1]=p[1],this.triangles[2]=p[1]))}voronoi(a){return new O1(this,a)}*neighbors(a){const{inedges:s,hull:u,_hullIndex:p,halfedges:g,triangles:x,collinear:w}=this;if(w){const j=w.indexOf(a);return j>0&&(yield w[j-1]),void(j<w.length-1&&(yield w[j+1]))}const T=s[a];if(T===-1)return;let C=T,R=-1;do{if(yield R=x[C],C=C%3==2?C-2:C+1,x[C]!==a)return;if(C=g[C],C===-1){const j=u[(p[a]+1)%u.length];return void(j!==R&&(yield j))}}while(C!==T)}find(a,s,u=0){if((a=+a)!=a||(s=+s)!=s)return-1;const p=u;let g;for(;(g=this._step(u,a,s))>=0&&g!==u&&g!==p;)u=g;return g}_step(a,s,u){const{inedges:p,hull:g,_hullIndex:x,halfedges:w,triangles:T,points:C}=this;if(p[a]===-1||!C.length)return(a+1)%(C.length>>1);let R=a,j=Ks(s-C[2*a],2)+Ks(u-C[2*a+1],2);const F=p[a];let $=F;do{let it=T[$];const G=Ks(s-C[2*it],2)+Ks(u-C[2*it+1],2);if(G<j&&(j=G,R=it),$=$%3==2?$-2:$+1,T[$]!==a)break;if($=w[$],$===-1){if($=g[(x[a]+1)%g.length],$!==it&&Ks(s-C[2*$],2)+Ks(u-C[2*$+1],2)<j)return $;break}}while($!==F);return R}render(a){const s=a==null?a=new bs:void 0,{points:u,halfedges:p,triangles:g}=this;for(let x=0,w=p.length;x<w;++x){const T=p[x];if(T<x)continue;const C=2*g[x],R=2*g[T];a.moveTo(u[C],u[C+1]),a.lineTo(u[R],u[R+1])}return this.renderHull(a),s&&s.value()}renderPoints(a,s){s!==void 0||a&&typeof a.moveTo=="function"||(s=a,a=null),s=s==null?2:+s;const u=a==null?a=new bs:void 0,{points:p}=this;for(let g=0,x=p.length;g<x;g+=2){const w=p[g],T=p[g+1];a.moveTo(w+s,T),a.arc(w,T,s,0,D1)}return u&&u.value()}renderHull(a){const s=a==null?a=new bs:void 0,{hull:u,points:p}=this,g=2*u[0],x=u.length;a.moveTo(p[g],p[g+1]);for(let w=1;w<x;++w){const T=2*u[w];a.lineTo(p[T],p[T+1])}return a.closePath(),s&&s.value()}hullPolygon(){const a=new $u;return this.renderHull(a),a.value()}renderTriangle(a,s){const u=s==null?s=new bs:void 0,{points:p,triangles:g}=this,x=2*g[a*=3],w=2*g[a+1],T=2*g[a+2];return s.moveTo(p[x],p[x+1]),s.lineTo(p[w],p[w+1]),s.lineTo(p[T],p[T+1]),s.closePath(),u&&u.value()}*trianglePolygons(){const{triangles:a}=this;for(let s=0,u=a.length/3;s<u;++s)yield this.trianglePolygon(s)}trianglePolygon(a){const s=new $u;return this.renderTriangle(a,s),s.value()}}const Ml=i=>()=>i;function qo(i,{sourceEvent:a,subject:s,target:u,identifier:p,active:g,x,y:w,dx:T,dy:C,dispatch:R}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},subject:{value:s,enumerable:!0,configurable:!0},target:{value:u,enumerable:!0,configurable:!0},identifier:{value:p,enumerable:!0,configurable:!0},active:{value:g,enumerable:!0,configurable:!0},x:{value:x,enumerable:!0,configurable:!0},y:{value:w,enumerable:!0,configurable:!0},dx:{value:T,enumerable:!0,configurable:!0},dy:{value:C,enumerable:!0,configurable:!0},_:{value:R}})}function Td(i){return!i.ctrlKey&&!i.button}function Sd(){return this.parentNode}function Ad(i,a){return a==null?{x:i.x,y:i.y}:a}function Cd(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nd(){var i,a,s,u,p=Td,g=Sd,x=Ad,w=Cd,T={},C=ln("start","drag","end"),R=0,j=0;function F(ht){ht.on("mousedown.drag",$).filter(w).on("touchstart.drag",V).on("touchmove.drag",X,rl).on("touchend.drag touchcancel.drag",pt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function $(ht,vt){if(!u&&p.call(this,ht,vt)){var kt=ut(this,g.call(this,ht,vt),ht,vt,"mouse");kt&&(ki(ht.view).on("mousemove.drag",it,Lo).on("mouseup.drag",G,Lo),ho(ht.view),Ls(ht),s=!1,i=ht.clientX,a=ht.clientY,kt("start",ht))}}function it(ht){if($a(ht),!s){var vt=ht.clientX-i,kt=ht.clientY-a;s=vt*vt+kt*kt>j}T.mouse("drag",ht)}function G(ht){ki(ht.view).on("mousemove.drag mouseup.drag",null),os(ht.view,s),$a(ht),T.mouse("end",ht)}function V(ht,vt){if(p.call(this,ht,vt)){var kt,ee,me=ht.changedTouches,Vt=g.call(this,ht,vt),jt=me.length;for(kt=0;kt<jt;++kt)(ee=ut(this,Vt,ht,vt,me[kt].identifier,me[kt]))&&(Ls(ht),ee("start",ht,me[kt]))}}function X(ht){var vt,kt,ee=ht.changedTouches,me=ee.length;for(vt=0;vt<me;++vt)(kt=T[ee[vt].identifier])&&($a(ht),kt("drag",ht,ee[vt]))}function pt(ht){var vt,kt,ee=ht.changedTouches,me=ee.length;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),vt=0;vt<me;++vt)(kt=T[ee[vt].identifier])&&(Ls(ht),kt("end",ht,ee[vt]))}function ut(ht,vt,kt,ee,me,Vt){var jt,$t,qt,Et=C.copy(),Ft=ua(Vt||kt,vt);if((qt=x.call(ht,new qo("beforestart",{sourceEvent:kt,target:F,identifier:me,active:R,x:Ft[0],y:Ft[1],dx:0,dy:0,dispatch:Et}),ee))!=null)return jt=qt.x-Ft[0]||0,$t=qt.y-Ft[1]||0,function Xt(oe,Ae,He){var Xe,gr=Ft;switch(oe){case"start":T[me]=Xt,Xe=R++;break;case"end":delete T[me],--R;case"drag":Ft=ua(He||Ae,vt),Xe=R}Et.call(oe,ht,new qo(oe,{sourceEvent:Ae,subject:qt,target:F,identifier:me,active:Xe,x:Ft[0]+jt,y:Ft[1]+$t,dx:Ft[0]-gr[0],dy:Ft[1]-gr[1],dispatch:Et}),ee)}}return F.filter=function(ht){return arguments.length?(p=typeof ht=="function"?ht:Ml(!!ht),F):p},F.container=function(ht){return arguments.length?(g=typeof ht=="function"?ht:Ml(ht),F):g},F.subject=function(ht){return arguments.length?(x=typeof ht=="function"?ht:Ml(ht),F):x},F.touchable=function(ht){return arguments.length?(w=typeof ht=="function"?ht:Ml(!!ht),F):w},F.on=function(){var ht=C.on.apply(C,arguments);return ht===C?F:ht},F.clickDistance=function(ht){return arguments.length?(j=(ht=+ht)*ht,F):Math.sqrt(j)},F}qo.prototype.on=function(){var i=this._.on.apply(this._,arguments);return i===this._?this:i};var R1={},qu={};function B1(i){return new Function("d","return {"+i.map(function(a,s){return JSON.stringify(a)+": d["+s+'] || ""'}).join(",")+"}")}function Wu(i){var a=Object.create(null),s=[];return i.forEach(function(u){for(var p in u)p in a||s.push(a[p]=p)}),s}function ha(i,a){var s=i+"",u=s.length;return u<a?new Array(a-u+1).join(0)+s:s}function pe(i){var a=new RegExp('["'+i+`
\r]`),s=i.charCodeAt(0);function u(w,T){var C,R=[],j=w.length,F=0,$=0,it=j<=0,G=!1;function V(){if(it)return qu;if(G)return G=!1,R1;var pt,ut,ht=F;if(w.charCodeAt(ht)===34){for(;F++<j&&w.charCodeAt(F)!==34||w.charCodeAt(++F)===34;);return(pt=F)>=j?it=!0:(ut=w.charCodeAt(F++))===10?G=!0:ut===13&&(G=!0,w.charCodeAt(F)===10&&++F),w.slice(ht+1,pt-1).replace(/""/g,'"')}for(;F<j;){if((ut=w.charCodeAt(pt=F++))===10)G=!0;else if(ut===13)G=!0,w.charCodeAt(F)===10&&++F;else if(ut!==s)continue;return w.slice(ht,pt)}return it=!0,w.slice(ht,j)}for(w.charCodeAt(j-1)===10&&--j,w.charCodeAt(j-1)===13&&--j;(C=V())!==qu;){for(var X=[];C!==R1&&C!==qu;)X.push(C),C=V();T&&(X=T(X,$++))==null||R.push(X)}return R}function p(w,T){return w.map(function(C){return T.map(function(R){return x(C[R])}).join(i)})}function g(w){return w.map(x).join(i)}function x(w){return w==null?"":w instanceof Date?function(T){var C=T.getUTCHours(),R=T.getUTCMinutes(),j=T.getUTCSeconds(),F=T.getUTCMilliseconds();return isNaN(T)?"Invalid Date":function($){return $<0?"-"+ha(-$,6):$>9999?"+"+ha($,6):ha($,4)}(T.getUTCFullYear())+"-"+ha(T.getUTCMonth()+1,2)+"-"+ha(T.getUTCDate(),2)+(F?"T"+ha(C,2)+":"+ha(R,2)+":"+ha(j,2)+"."+ha(F,3)+"Z":j?"T"+ha(C,2)+":"+ha(R,2)+":"+ha(j,2)+"Z":R||C?"T"+ha(C,2)+":"+ha(R,2)+"Z":"")}(w):a.test(w+="")?'"'+w.replace(/"/g,'""')+'"':w}return{parse:function(w,T){var C,R,j=u(w,function(F,$){if(C)return C(F,$-1);R=F,C=T?function(it,G){var V=B1(it);return function(X,pt){return G(V(X),pt,it)}}(F,T):B1(F)});return j.columns=R||[],j},parseRows:u,format:function(w,T){return T==null&&(T=Wu(w)),[T.map(x).join(i)].concat(p(w,T)).join(`
`)},formatBody:function(w,T){return T==null&&(T=Wu(w)),p(w,T).join(`
`)},formatRows:function(w){return w.map(g).join(`
`)},formatRow:g,formatValue:x}}var ir=pe(","),vs=ir.parse,Js=ir.parseRows,Gu=ir.format,Vu=ir.formatBody,F1=ir.formatRows,P1=ir.formatRow,Ol=ir.formatValue,Wo=pe(" "),Va=Wo.parse,Id=Wo.parseRows,Rc=Wo.format,Ld=Wo.formatBody,z1=Wo.formatRows,Zu=Wo.formatRow,Dl=Wo.formatValue;function Rl(i){for(var a in i){var s,u,p=i[a].trim();if(p)if(p==="true")p=!0;else if(p==="false")p=!1;else if(p==="NaN")p=NaN;else if(isNaN(s=+p)){if(!(u=p.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Md&&u[4]&&!u[7]&&(p=p.replace(/-/g,"/").replace(/T/," ")),p=new Date(p)}else p=s;else p=null;i[a]=p}return i}const Md=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Bl=i=>+i;function Zi(i){return i*i}function Xu(i){return i*(2-i)}function Bc(i){return((i*=2)<=1?i*i:--i*(2-i)+1)/2}var U1=function i(a){function s(u){return Math.pow(u,a)}return a=+a,s.exponent=i,s}(3),Y1=function i(a){function s(u){return 1-Math.pow(1-u,a)}return a=+a,s.exponent=i,s}(3),Ku=function i(a){function s(u){return((u*=2)<=1?Math.pow(u,a):2-Math.pow(2-u,a))/2}return a=+a,s.exponent=i,s}(3),j1=Math.PI,Ju=j1/2;function $1(i){return+i==1?1:1-Math.cos(i*Ju)}function wo(i){return Math.sin(i*Ju)}function Qu(i){return(1-Math.cos(j1*i))/2}function xi(i){return 1.0009775171065494*(Math.pow(2,-10*i)-.0009765625)}function Od(i){return xi(1-+i)}function Dd(i){return 1-xi(i)}function th(i){return((i*=2)<=1?xi(1-i):2-xi(i-1))/2}function H1(i){return 1-Math.sqrt(1-i*i)}function eh(i){return Math.sqrt(1- --i*i)}function q1(i){return((i*=2)<=1?1-Math.sqrt(1-i*i):Math.sqrt(1-(i-=2)*i)+1)/2}var Fc=7.5625;function Rd(i){return 1-pn(1-i)}function pn(i){return(i=+i)<.36363636363636365?Fc*i*i:i<.7272727272727273?Fc*(i-=.5454545454545454)*i+.75:i<.9090909090909091?Fc*(i-=.8181818181818182)*i+.9375:Fc*(i-=.9545454545454546)*i+.984375}function Fl(i){return((i*=2)<=1?1-pn(1-i):pn(i-1)+1)/2}var oo=1.70158,Bd=function i(a){function s(u){return(u=+u)*u*(a*(u-1)+u)}return a=+a,s.overshoot=i,s}(oo),rh=function i(a){function s(u){return--u*u*((u+1)*a+u)+1}return a=+a,s.overshoot=i,s}(oo),nh=function i(a){function s(u){return((u*=2)<1?u*u*((a+1)*u-a):(u-=2)*u*((a+1)*u+a)+2)/2}return a=+a,s.overshoot=i,s}(oo),xs=2*Math.PI,ih=function i(a,s){var u=Math.asin(1/(a=Math.max(1,a)))*(s/=xs);function p(g){return a*xi(- --g)*Math.sin((u-g)/s)}return p.amplitude=function(g){return i(g,s*xs)},p.period=function(g){return i(a,g)},p}(1,.3),ws=function i(a,s){var u=Math.asin(1/(a=Math.max(1,a)))*(s/=xs);function p(g){return 1-a*xi(g=+g)*Math.sin((g+u)/s)}return p.amplitude=function(g){return i(g,s*xs)},p.period=function(g){return i(a,g)},p}(1,.3),ah=function i(a,s){var u=Math.asin(1/(a=Math.max(1,a)))*(s/=xs);function p(g){return((g=2*g-1)<0?a*xi(-g)*Math.sin((u-g)/s):2-a*xi(g)*Math.sin((u+g)/s))/2}return p.amplitude=function(g){return i(g,s*xs)},p.period=function(g){return i(a,g)},p}(1,.3);function Qs(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.blob()}function tc(i,a){return fetch(i,a).then(Qs)}function W1(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.arrayBuffer()}function G1(i,a){return fetch(i,a).then(W1)}function V1(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.text()}function Pc(i,a){return fetch(i,a).then(V1)}function oh(i){return function(a,s,u){return arguments.length===2&&typeof s=="function"&&(u=s,s=void 0),Pc(a,s).then(function(p){return i(p,u)})}}function Z1(i,a,s,u){arguments.length===3&&typeof s=="function"&&(u=s,s=void 0);var p=pe(i);return Pc(a,s).then(function(g){return p.parse(g,u)})}var Fd=oh(vs),Pd=oh(Va);function zd(i,a){return new Promise(function(s,u){var p=new Image;for(var g in a)p[g]=a[g];p.onerror=u,p.onload=function(){s(p)},p.src=i})}function Ud(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);if(i.status!==204&&i.status!==205)return i.json()}function ko(i,a){return fetch(i,a).then(Ud)}function zc(i){return(a,s)=>Pc(a,s).then(u=>new DOMParser().parseFromString(u,i))}const ks=zc("application/xml");var za=zc("text/html"),sh=zc("image/svg+xml");function X1(i,a){var s,u=1;function p(){var g,x,w=s.length,T=0,C=0;for(g=0;g<w;++g)T+=(x=s[g]).x,C+=x.y;for(T=(T/w-i)*u,C=(C/w-a)*u,g=0;g<w;++g)(x=s[g]).x-=T,x.y-=C}return i==null&&(i=0),a==null&&(a=0),p.initialize=function(g){s=g},p.x=function(g){return arguments.length?(i=+g,p):i},p.y=function(g){return arguments.length?(a=+g,p):a},p.strength=function(g){return arguments.length?(u=+g,p):u},p}function Pl(i,a,s,u){if(isNaN(a)||isNaN(s))return i;var p,g,x,w,T,C,R,j,F,$=i._root,it={data:u},G=i._x0,V=i._y0,X=i._x1,pt=i._y1;if(!$)return i._root=it,i;for(;$.length;)if((C=a>=(g=(G+X)/2))?G=g:X=g,(R=s>=(x=(V+pt)/2))?V=x:pt=x,p=$,!($=$[j=R<<1|C]))return p[j]=it,i;if(w=+i._x.call(null,$.data),T=+i._y.call(null,$.data),a===w&&s===T)return it.next=$,p?p[j]=it:i._root=it,i;do p=p?p[j]=new Array(4):i._root=new Array(4),(C=a>=(g=(G+X)/2))?G=g:X=g,(R=s>=(x=(V+pt)/2))?V=x:pt=x;while((j=R<<1|C)==(F=(T>=x)<<1|w>=g));return p[F]=$,p[j]=it,i}function ia(i,a,s,u,p){this.node=i,this.x0=a,this.y0=s,this.x1=u,this.y1=p}function Yd(i){return i[0]}function K1(i){return i[1]}function zl(i,a,s){var u=new Ul(a==null?Yd:a,s==null?K1:s,NaN,NaN,NaN,NaN);return i==null?u:u.addAll(i)}function Ul(i,a,s,u,p,g){this._x=i,this._y=a,this._x0=s,this._y0=u,this._x1=p,this._y1=g,this._root=void 0}function ch(i){for(var a={data:i.data},s=a;i=i.next;)s=s.next={data:i.data};return a}var aa=zl.prototype=Ul.prototype;function li(i){return function(){return i}}function Go(i){return 1e-6*(i()-.5)}function Mi(i){return i.x+i.vx}function oa(i){return i.y+i.vy}function Yl(i){var a,s,u,p=1,g=1;function x(){for(var C,R,j,F,$,it,G,V=a.length,X=0;X<g;++X)for(R=zl(a,Mi,oa).visitAfter(w),C=0;C<V;++C)j=a[C],it=s[j.index],G=it*it,F=j.x+j.vx,$=j.y+j.vy,R.visit(pt);function pt(ut,ht,vt,kt,ee){var me=ut.data,Vt=ut.r,jt=it+Vt;if(!me)return ht>F+jt||kt<F-jt||vt>$+jt||ee<$-jt;if(me.index>j.index){var $t=F-me.x-me.vx,qt=$-me.y-me.vy,Et=$t*$t+qt*qt;Et<jt*jt&&($t===0&&(Et+=($t=Go(u))*$t),qt===0&&(Et+=(qt=Go(u))*qt),Et=(jt-(Et=Math.sqrt(Et)))/Et*p,j.vx+=($t*=Et)*(jt=(Vt*=Vt)/(G+Vt)),j.vy+=(qt*=Et)*jt,me.vx-=$t*(jt=1-jt),me.vy-=qt*jt)}}}function w(C){if(C.data)return C.r=s[C.data.index];for(var R=C.r=0;R<4;++R)C[R]&&C[R].r>C.r&&(C.r=C[R].r)}function T(){if(a){var C,R,j=a.length;for(s=new Array(j),C=0;C<j;++C)R=a[C],s[R.index]=+i(R,C,a)}}return typeof i!="function"&&(i=li(i==null?1:+i)),x.initialize=function(C,R){a=C,u=R,T()},x.iterations=function(C){return arguments.length?(g=+C,x):g},x.strength=function(C){return arguments.length?(p=+C,x):p},x.radius=function(C){return arguments.length?(i=typeof C=="function"?C:li(+C),T(),x):i},x}function Ei(i){return i.index}function Oi(i,a){var s=i.get(a);if(!s)throw new Error("node not found: "+a);return s}function J1(i){var a,s,u,p,g,x,w=Ei,T=function(G){return 1/Math.min(p[G.source.index],p[G.target.index])},C=li(30),R=1;function j(G){for(var V=0,X=i.length;V<R;++V)for(var pt,ut,ht,vt,kt,ee,me,Vt=0;Vt<X;++Vt)ut=(pt=i[Vt]).source,vt=(ht=pt.target).x+ht.vx-ut.x-ut.vx||Go(x),kt=ht.y+ht.vy-ut.y-ut.vy||Go(x),vt*=ee=((ee=Math.sqrt(vt*vt+kt*kt))-s[Vt])/ee*G*a[Vt],kt*=ee,ht.vx-=vt*(me=g[Vt]),ht.vy-=kt*me,ut.vx+=vt*(me=1-me),ut.vy+=kt*me}function F(){if(u){var G,V,X=u.length,pt=i.length,ut=new Map(u.map((ht,vt)=>[w(ht,vt,u),ht]));for(G=0,p=new Array(X);G<pt;++G)(V=i[G]).index=G,typeof V.source!="object"&&(V.source=Oi(ut,V.source)),typeof V.target!="object"&&(V.target=Oi(ut,V.target)),p[V.source.index]=(p[V.source.index]||0)+1,p[V.target.index]=(p[V.target.index]||0)+1;for(G=0,g=new Array(pt);G<pt;++G)V=i[G],g[G]=p[V.source.index]/(p[V.source.index]+p[V.target.index]);a=new Array(pt),$(),s=new Array(pt),it()}}function $(){if(u)for(var G=0,V=i.length;G<V;++G)a[G]=+T(i[G],G,i)}function it(){if(u)for(var G=0,V=i.length;G<V;++G)s[G]=+C(i[G],G,i)}return i==null&&(i=[]),j.initialize=function(G,V){u=G,x=V,F()},j.links=function(G){return arguments.length?(i=G,F(),j):i},j.id=function(G){return arguments.length?(w=G,j):w},j.iterations=function(G){return arguments.length?(R=+G,j):R},j.strength=function(G){return arguments.length?(T=typeof G=="function"?G:li(+G),$(),j):T},j.distance=function(G){return arguments.length?(C=typeof G=="function"?G:li(+G),it(),j):C},j}aa.copy=function(){var i,a,s=new Ul(this._x,this._y,this._x0,this._y0,this._x1,this._y1),u=this._root;if(!u)return s;if(!u.length)return s._root=ch(u),s;for(i=[{source:u,target:s._root=new Array(4)}];u=i.pop();)for(var p=0;p<4;++p)(a=u.source[p])&&(a.length?i.push({source:a,target:u.target[p]=new Array(4)}):u.target[p]=ch(a));return s},aa.add=function(i){const a=+this._x.call(null,i),s=+this._y.call(null,i);return Pl(this.cover(a,s),a,s,i)},aa.addAll=function(i){var a,s,u,p,g=i.length,x=new Array(g),w=new Array(g),T=1/0,C=1/0,R=-1/0,j=-1/0;for(s=0;s<g;++s)isNaN(u=+this._x.call(null,a=i[s]))||isNaN(p=+this._y.call(null,a))||(x[s]=u,w[s]=p,u<T&&(T=u),u>R&&(R=u),p<C&&(C=p),p>j&&(j=p));if(T>R||C>j)return this;for(this.cover(T,C).cover(R,j),s=0;s<g;++s)Pl(this,x[s],w[s],i[s]);return this},aa.cover=function(i,a){if(isNaN(i=+i)||isNaN(a=+a))return this;var s=this._x0,u=this._y0,p=this._x1,g=this._y1;if(isNaN(s))p=(s=Math.floor(i))+1,g=(u=Math.floor(a))+1;else{for(var x,w,T=p-s||1,C=this._root;s>i||i>=p||u>a||a>=g;)switch(w=(a<u)<<1|i<s,(x=new Array(4))[w]=C,C=x,T*=2,w){case 0:p=s+T,g=u+T;break;case 1:s=p-T,g=u+T;break;case 2:p=s+T,u=g-T;break;case 3:s=p-T,u=g-T}this._root&&this._root.length&&(this._root=C)}return this._x0=s,this._y0=u,this._x1=p,this._y1=g,this},aa.data=function(){var i=[];return this.visit(function(a){if(!a.length)do i.push(a.data);while(a=a.next)}),i},aa.extent=function(i){return arguments.length?this.cover(+i[0][0],+i[0][1]).cover(+i[1][0],+i[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},aa.find=function(i,a,s){var u,p,g,x,w,T,C,R=this._x0,j=this._y0,F=this._x1,$=this._y1,it=[],G=this._root;for(G&&it.push(new ia(G,R,j,F,$)),s==null?s=1/0:(R=i-s,j=a-s,F=i+s,$=a+s,s*=s);T=it.pop();)if(!(!(G=T.node)||(p=T.x0)>F||(g=T.y0)>$||(x=T.x1)<R||(w=T.y1)<j))if(G.length){var V=(p+x)/2,X=(g+w)/2;it.push(new ia(G[3],V,X,x,w),new ia(G[2],p,X,V,w),new ia(G[1],V,g,x,X),new ia(G[0],p,g,V,X)),(C=(a>=X)<<1|i>=V)&&(T=it[it.length-1],it[it.length-1]=it[it.length-1-C],it[it.length-1-C]=T)}else{var pt=i-+this._x.call(null,G.data),ut=a-+this._y.call(null,G.data),ht=pt*pt+ut*ut;if(ht<s){var vt=Math.sqrt(s=ht);R=i-vt,j=a-vt,F=i+vt,$=a+vt,u=G.data}}return u},aa.remove=function(i){if(isNaN(g=+this._x.call(null,i))||isNaN(x=+this._y.call(null,i)))return this;var a,s,u,p,g,x,w,T,C,R,j,F,$=this._root,it=this._x0,G=this._y0,V=this._x1,X=this._y1;if(!$)return this;if($.length)for(;;){if((C=g>=(w=(it+V)/2))?it=w:V=w,(R=x>=(T=(G+X)/2))?G=T:X=T,a=$,!($=$[j=R<<1|C]))return this;if(!$.length)break;(a[j+1&3]||a[j+2&3]||a[j+3&3])&&(s=a,F=j)}for(;$.data!==i;)if(u=$,!($=$.next))return this;return(p=$.next)&&delete $.next,u?(p?u.next=p:delete u.next,this):a?(p?a[j]=p:delete a[j],($=a[0]||a[1]||a[2]||a[3])&&$===(a[3]||a[2]||a[1]||a[0])&&!$.length&&(s?s[F]=$:this._root=$),this):(this._root=p,this)},aa.removeAll=function(i){for(var a=0,s=i.length;a<s;++a)this.remove(i[a]);return this},aa.root=function(){return this._root},aa.size=function(){var i=0;return this.visit(function(a){if(!a.length)do++i;while(a=a.next)}),i},aa.visit=function(i){var a,s,u,p,g,x,w=[],T=this._root;for(T&&w.push(new ia(T,this._x0,this._y0,this._x1,this._y1));a=w.pop();)if(!i(T=a.node,u=a.x0,p=a.y0,g=a.x1,x=a.y1)&&T.length){var C=(u+g)/2,R=(p+x)/2;(s=T[3])&&w.push(new ia(s,C,R,g,x)),(s=T[2])&&w.push(new ia(s,u,R,C,x)),(s=T[1])&&w.push(new ia(s,C,p,g,R)),(s=T[0])&&w.push(new ia(s,u,p,C,R))}return this},aa.visitAfter=function(i){var a,s=[],u=[];for(this._root&&s.push(new ia(this._root,this._x0,this._y0,this._x1,this._y1));a=s.pop();){var p=a.node;if(p.length){var g,x=a.x0,w=a.y0,T=a.x1,C=a.y1,R=(x+T)/2,j=(w+C)/2;(g=p[0])&&s.push(new ia(g,x,w,R,j)),(g=p[1])&&s.push(new ia(g,R,w,T,j)),(g=p[2])&&s.push(new ia(g,x,j,R,C)),(g=p[3])&&s.push(new ia(g,R,j,T,C))}u.push(a)}for(;a=u.pop();)i(a.node,a.x0,a.y0,a.x1,a.y1);return this},aa.x=function(i){return arguments.length?(this._x=i,this):this._x},aa.y=function(i){return arguments.length?(this._y=i,this):this._y};const Vo=4294967296;function lh(i){return i.x}function Q1(i){return i.y}var t0=Math.PI*(3-Math.sqrt(5));function e0(i){var a,s=1,u=.001,p=1-Math.pow(u,1/300),g=0,x=.6,w=new Map,T=Ro(j),C=ln("tick","end"),R=function(){let G=1;return()=>(G=(1664525*G+1013904223)%Vo)/Vo}();function j(){F(),C.call("tick",a),s<u&&(T.stop(),C.call("end",a))}function F(G){var V,X,pt=i.length;G===void 0&&(G=1);for(var ut=0;ut<G;++ut)for(s+=(g-s)*p,w.forEach(function(ht){ht(s)}),V=0;V<pt;++V)(X=i[V]).fx==null?X.x+=X.vx*=x:(X.x=X.fx,X.vx=0),X.fy==null?X.y+=X.vy*=x:(X.y=X.fy,X.vy=0);return a}function $(){for(var G,V=0,X=i.length;V<X;++V){if((G=i[V]).index=V,G.fx!=null&&(G.x=G.fx),G.fy!=null&&(G.y=G.fy),isNaN(G.x)||isNaN(G.y)){var pt=10*Math.sqrt(.5+V),ut=V*t0;G.x=pt*Math.cos(ut),G.y=pt*Math.sin(ut)}(isNaN(G.vx)||isNaN(G.vy))&&(G.vx=G.vy=0)}}function it(G){return G.initialize&&G.initialize(i,R),G}return i==null&&(i=[]),$(),a={tick:F,restart:function(){return T.restart(j),a},stop:function(){return T.stop(),a},nodes:function(G){return arguments.length?(i=G,$(),w.forEach(it),a):i},alpha:function(G){return arguments.length?(s=+G,a):s},alphaMin:function(G){return arguments.length?(u=+G,a):u},alphaDecay:function(G){return arguments.length?(p=+G,a):+p},alphaTarget:function(G){return arguments.length?(g=+G,a):g},velocityDecay:function(G){return arguments.length?(x=1-G,a):1-x},randomSource:function(G){return arguments.length?(R=G,w.forEach(it),a):R},force:function(G,V){return arguments.length>1?(V==null?w.delete(G):w.set(G,it(V)),a):w.get(G)},find:function(G,V,X){var pt,ut,ht,vt,kt,ee=0,me=i.length;for(X==null?X=1/0:X*=X,ee=0;ee<me;++ee)(ht=(pt=G-(vt=i[ee]).x)*pt+(ut=V-vt.y)*ut)<X&&(kt=vt,X=ht);return kt},on:function(G,V){return arguments.length>1?(C.on(G,V),a):C.on(G)}}}function r0(){var i,a,s,u,p,g=li(-30),x=1,w=1/0,T=.81;function C($){var it,G=i.length,V=zl(i,lh,Q1).visitAfter(j);for(u=$,it=0;it<G;++it)a=i[it],V.visit(F)}function R(){if(i){var $,it,G=i.length;for(p=new Array(G),$=0;$<G;++$)it=i[$],p[it.index]=+g(it,$,i)}}function j($){var it,G,V,X,pt,ut=0,ht=0;if($.length){for(V=X=pt=0;pt<4;++pt)(it=$[pt])&&(G=Math.abs(it.value))&&(ut+=it.value,ht+=G,V+=G*it.x,X+=G*it.y);$.x=V/ht,$.y=X/ht}else{(it=$).x=it.data.x,it.y=it.data.y;do ut+=p[it.data.index];while(it=it.next)}$.value=ut}function F($,it,G,V){if(!$.value)return!0;var X=$.x-a.x,pt=$.y-a.y,ut=V-it,ht=X*X+pt*pt;if(ut*ut/T<ht)return ht<w&&(X===0&&(ht+=(X=Go(s))*X),pt===0&&(ht+=(pt=Go(s))*pt),ht<x&&(ht=Math.sqrt(x*ht)),a.vx+=X*$.value*u/ht,a.vy+=pt*$.value*u/ht),!0;if(!($.length||ht>=w)){($.data!==a||$.next)&&(X===0&&(ht+=(X=Go(s))*X),pt===0&&(ht+=(pt=Go(s))*pt),ht<x&&(ht=Math.sqrt(x*ht)));do $.data!==a&&(ut=p[$.data.index]*u/ht,a.vx+=X*ut,a.vy+=pt*ut);while($=$.next)}}return C.initialize=function($,it){i=$,s=it,R()},C.strength=function($){return arguments.length?(g=typeof $=="function"?$:li(+$),R(),C):g},C.distanceMin=function($){return arguments.length?(x=$*$,C):Math.sqrt(x)},C.distanceMax=function($){return arguments.length?(w=$*$,C):Math.sqrt(w)},C.theta=function($){return arguments.length?(T=$*$,C):Math.sqrt(T)},C}function n0(i,a,s){var u,p,g,x=li(.1);function w(C){for(var R=0,j=u.length;R<j;++R){var F=u[R],$=F.x-a||1e-6,it=F.y-s||1e-6,G=Math.sqrt($*$+it*it),V=(g[R]-G)*p[R]*C/G;F.vx+=$*V,F.vy+=it*V}}function T(){if(u){var C,R=u.length;for(p=new Array(R),g=new Array(R),C=0;C<R;++C)g[C]=+i(u[C],C,u),p[C]=isNaN(g[C])?0:+x(u[C],C,u)}}return typeof i!="function"&&(i=li(+i)),a==null&&(a=0),s==null&&(s=0),w.initialize=function(C){u=C,T()},w.strength=function(C){return arguments.length?(x=typeof C=="function"?C:li(+C),T(),w):x},w.radius=function(C){return arguments.length?(i=typeof C=="function"?C:li(+C),T(),w):i},w.x=function(C){return arguments.length?(a=+C,w):a},w.y=function(C){return arguments.length?(s=+C,w):s},w}function Uc(i){var a,s,u,p=li(.1);function g(w){for(var T,C=0,R=a.length;C<R;++C)(T=a[C]).vx+=(u[C]-T.x)*s[C]*w}function x(){if(a){var w,T=a.length;for(s=new Array(T),u=new Array(T),w=0;w<T;++w)s[w]=isNaN(u[w]=+i(a[w],w,a))?0:+p(a[w],w,a)}}return typeof i!="function"&&(i=li(i==null?0:+i)),g.initialize=function(w){a=w,x()},g.strength=function(w){return arguments.length?(p=typeof w=="function"?w:li(+w),x(),g):p},g.x=function(w){return arguments.length?(i=typeof w=="function"?w:li(+w),x(),g):i},g}function jd(i){var a,s,u,p=li(.1);function g(w){for(var T,C=0,R=a.length;C<R;++C)(T=a[C]).vy+=(u[C]-T.y)*s[C]*w}function x(){if(a){var w,T=a.length;for(s=new Array(T),u=new Array(T),w=0;w<T;++w)s[w]=isNaN(u[w]=+i(a[w],w,a))?0:+p(a[w],w,a)}}return typeof i!="function"&&(i=li(i==null?0:+i)),g.initialize=function(w){a=w,x()},g.strength=function(w){return arguments.length?(p=typeof w=="function"?w:li(+w),x(),g):p},g.y=function(w){return arguments.length?(i=typeof w=="function"?w:li(+w),x(),g):i},g}function Zo(i,a){if((s=(i=a?i.toExponential(a-1):i.toExponential()).indexOf("e"))<0)return null;var s,u=i.slice(0,s);return[u.length>1?u[0]+u.slice(2):u,+i.slice(s+1)]}function Ti(i){return(i=Zo(Math.abs(i)))?i[1]:NaN}var Es,Yc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Eo(i){if(!(a=Yc.exec(i)))throw new Error("invalid format: "+i);var a;return new jc({fill:a[1],align:a[2],sign:a[3],symbol:a[4],zero:a[5],width:a[6],comma:a[7],precision:a[8]&&a[8].slice(1),trim:a[9],type:a[10]})}function jc(i){this.fill=i.fill===void 0?" ":i.fill+"",this.align=i.align===void 0?">":i.align+"",this.sign=i.sign===void 0?"-":i.sign+"",this.symbol=i.symbol===void 0?"":i.symbol+"",this.zero=!!i.zero,this.width=i.width===void 0?void 0:+i.width,this.comma=!!i.comma,this.precision=i.precision===void 0?void 0:+i.precision,this.trim=!!i.trim,this.type=i.type===void 0?"":i.type+""}function uh(i,a){var s=Zo(i,a);if(!s)return i+"";var u=s[0],p=s[1];return p<0?"0."+new Array(-p).join("0")+u:u.length>p+1?u.slice(0,p+1)+"."+u.slice(p+1):u+new Array(p-u.length+2).join("0")}Eo.prototype=jc.prototype,jc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const i0={"%":(i,a)=>(100*i).toFixed(a),b:i=>Math.round(i).toString(2),c:i=>i+"",d:function(i){return Math.abs(i=Math.round(i))>=1e21?i.toLocaleString("en").replace(/,/g,""):i.toString(10)},e:(i,a)=>i.toExponential(a),f:(i,a)=>i.toFixed(a),g:(i,a)=>i.toPrecision(a),o:i=>Math.round(i).toString(8),p:(i,a)=>uh(100*i,a),r:uh,s:function(i,a){var s=Zo(i,a);if(!s)return i+"";var u=s[0],p=s[1],g=p-(Es=3*Math.max(-8,Math.min(8,Math.floor(p/3))))+1,x=u.length;return g===x?u:g>x?u+new Array(g-x+1).join("0"):g>0?u.slice(0,g)+"."+u.slice(g):"0."+new Array(1-g).join("0")+Zo(i,Math.max(0,a+g-1))[0]},X:i=>Math.round(i).toString(16).toUpperCase(),x:i=>Math.round(i).toString(16)};function a0(i){return i}var jl,$l,Hl,o0=Array.prototype.map,$c=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function s0(i){var a,s,u=i.grouping===void 0||i.thousands===void 0?a0:(a=o0.call(i.grouping,Number),s=i.thousands+"",function(F,$){for(var it=F.length,G=[],V=0,X=a[0],pt=0;it>0&&X>0&&(pt+X+1>$&&(X=Math.max(1,$-pt)),G.push(F.substring(it-=X,it+X)),!((pt+=X+1)>$));)X=a[V=(V+1)%a.length];return G.reverse().join(s)}),p=i.currency===void 0?"":i.currency[0]+"",g=i.currency===void 0?"":i.currency[1]+"",x=i.decimal===void 0?".":i.decimal+"",w=i.numerals===void 0?a0:function(F){return function($){return $.replace(/[0-9]/g,function(it){return F[+it]})}}(o0.call(i.numerals,String)),T=i.percent===void 0?"%":i.percent+"",C=i.minus===void 0?"\u2212":i.minus+"",R=i.nan===void 0?"NaN":i.nan+"";function j(F){var $=(F=Eo(F)).fill,it=F.align,G=F.sign,V=F.symbol,X=F.zero,pt=F.width,ut=F.comma,ht=F.precision,vt=F.trim,kt=F.type;kt==="n"?(ut=!0,kt="g"):i0[kt]||(ht===void 0&&(ht=12),vt=!0,kt="g"),(X||$==="0"&&it==="=")&&(X=!0,$="0",it="=");var ee=V==="$"?p:V==="#"&&/[boxX]/.test(kt)?"0"+kt.toLowerCase():"",me=V==="$"?g:/[%p]/.test(kt)?T:"",Vt=i0[kt],jt=/[defgprs%]/.test(kt);function $t(qt){var Et,Ft,Xt,oe=ee,Ae=me;if(kt==="c")Ae=Vt(qt)+Ae,qt="";else{var He=(qt=+qt)<0||1/qt<0;if(qt=isNaN(qt)?R:Vt(Math.abs(qt),ht),vt&&(qt=function(Ke){t:for(var Hr,Wr=Ke.length,Or=1,Pr=-1;Or<Wr;++Or)switch(Ke[Or]){case".":Pr=Hr=Or;break;case"0":Pr===0&&(Pr=Or),Hr=Or;break;default:if(!+Ke[Or])break t;Pr>0&&(Pr=0)}return Pr>0?Ke.slice(0,Pr)+Ke.slice(Hr+1):Ke}(qt)),He&&+qt==0&&G!=="+"&&(He=!1),oe=(He?G==="("?G:C:G==="-"||G==="("?"":G)+oe,Ae=(kt==="s"?$c[8+Es/3]:"")+Ae+(He&&G==="("?")":""),jt){for(Et=-1,Ft=qt.length;++Et<Ft;)if(48>(Xt=qt.charCodeAt(Et))||Xt>57){Ae=(Xt===46?x+qt.slice(Et+1):qt.slice(Et))+Ae,qt=qt.slice(0,Et);break}}}ut&&!X&&(qt=u(qt,1/0));var Xe=oe.length+qt.length+Ae.length,gr=Xe<pt?new Array(pt-Xe+1).join($):"";switch(ut&&X&&(qt=u(gr+qt,gr.length?pt-Ae.length:1/0),gr=""),it){case"<":qt=oe+qt+Ae+gr;break;case"=":qt=oe+gr+qt+Ae;break;case"^":qt=gr.slice(0,Xe=gr.length>>1)+oe+qt+Ae+gr.slice(Xe);break;default:qt=gr+oe+qt+Ae}return w(qt)}return ht=ht===void 0?6:/[gprs]/.test(kt)?Math.max(1,Math.min(21,ht)):Math.max(0,Math.min(20,ht)),$t.toString=function(){return F+""},$t}return{format:j,formatPrefix:function(F,$){var it=j(((F=Eo(F)).type="f",F)),G=3*Math.max(-8,Math.min(8,Math.floor(Ti($)/3))),V=Math.pow(10,-G),X=$c[8+G/3];return function(pt){return it(V*pt)+X}}}}function hh(i){return jl=s0(i),$l=jl.format,Hl=jl.formatPrefix,jl}function ql(i){return Math.max(0,-Ti(Math.abs(i)))}function dh(i,a){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ti(a)/3)))-Ti(Math.abs(i)))}function fh(i,a){return i=Math.abs(i),a=Math.abs(a)-i,Math.max(0,Ti(a)-Ti(i))+1}hh({thousands:",",grouping:[3],currency:["$",""]});var Kr=1e-6,ec=1e-12,rn=Math.PI,Qn=rn/2,Xo=rn/4,Xi=2*rn,zn=180/rn,xr=rn/180,gn=Math.abs,Ts=Math.atan,Ln=Math.atan2,Mr=Math.cos,l=Math.ceil,o=Math.exp,y=Math.hypot,k=Math.log,A=Math.pow,N=Math.sin,L=Math.sign||function(i){return i>0?1:i<0?-1:0},O=Math.sqrt,P=Math.tan;function Y(i){return i>1?0:i<-1?rn:Math.acos(i)}function Z(i){return i>1?Qn:i<-1?-Qn:Math.asin(i)}function nt(i){return(i=N(i/2))*i}function lt(){}function ct(i,a){i&&It.hasOwnProperty(i.type)&&It[i.type](i,a)}var Mt={Feature:function(i,a){ct(i.geometry,a)},FeatureCollection:function(i,a){for(var s=i.features,u=-1,p=s.length;++u<p;)ct(s[u].geometry,a)}},It={Sphere:function(i,a){a.sphere()},Point:function(i,a){i=i.coordinates,a.point(i[0],i[1],i[2])},MultiPoint:function(i,a){for(var s=i.coordinates,u=-1,p=s.length;++u<p;)i=s[u],a.point(i[0],i[1],i[2])},LineString:function(i,a){Ut(i.coordinates,a,0)},MultiLineString:function(i,a){for(var s=i.coordinates,u=-1,p=s.length;++u<p;)Ut(s[u],a,0)},Polygon:function(i,a){Ht(i.coordinates,a)},MultiPolygon:function(i,a){for(var s=i.coordinates,u=-1,p=s.length;++u<p;)Ht(s[u],a)},GeometryCollection:function(i,a){for(var s=i.geometries,u=-1,p=s.length;++u<p;)ct(s[u],a)}};function Ut(i,a,s){var u,p=-1,g=i.length-s;for(a.lineStart();++p<g;)u=i[p],a.point(u[0],u[1],u[2]);a.lineEnd()}function Ht(i,a){var s=-1,u=i.length;for(a.polygonStart();++s<u;)Ut(i[s],a,1);a.polygonEnd()}function Nt(i,a){i&&Mt.hasOwnProperty(i.type)?Mt[i.type](i,a):ct(i,a)}var Pt,Ot,Qt,De,we,ue,Kt,le,Yt,se,ie,de,Le,Be,Ue,pr,Ye=new bt,cr=new bt,hr={point:lt,lineStart:lt,lineEnd:lt,polygonStart:function(){Ye=new bt,hr.lineStart=We,hr.lineEnd=Ge},polygonEnd:function(){var i=+Ye;cr.add(i<0?Xi+i:i),this.lineStart=this.lineEnd=this.point=lt},sphere:function(){cr.add(Xi)}};function We(){hr.point=_r}function Ge(){_n(Pt,Ot)}function _r(i,a){hr.point=_n,Pt=i,Ot=a,Qt=i*=xr,De=Mr(a=(a*=xr)/2+Xo),we=N(a)}function _n(i,a){var s=(i*=xr)-Qt,u=s>=0?1:-1,p=u*s,g=Mr(a=(a*=xr)/2+Xo),x=N(a),w=we*x,T=De*g+w*Mr(p),C=w*u*N(p);Ye.add(Ln(C,T)),Qt=i,De=g,we=x}function Tn(i){return cr=new bt,Nt(i,hr),2*cr}function ti(i){return[Ln(i[1],i[0]),Z(i[2])]}function fn(i){var a=i[0],s=i[1],u=Mr(s);return[u*Mr(a),u*N(a),N(s)]}function Di(i,a){return i[0]*a[0]+i[1]*a[1]+i[2]*a[2]}function un(i,a){return[i[1]*a[2]-i[2]*a[1],i[2]*a[0]-i[0]*a[2],i[0]*a[1]-i[1]*a[0]]}function Za(i,a){i[0]+=a[0],i[1]+=a[1],i[2]+=a[2]}function da(i,a){return[i[0]*a,i[1]*a,i[2]*a]}function fi(i){var a=O(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]);i[0]/=a,i[1]/=a,i[2]/=a}var Rn,Ua,ka,Ko,Jo,sa,Qo,Hc,Wl,Gl,Vl,ph,S2,Ea,Ta,Sa,Ss={point:$d,lineStart:C2,lineEnd:N2,polygonStart:function(){Ss.point=I2,Ss.lineStart=Lm,Ss.lineEnd=Mm,Be=new bt,hr.polygonStart()},polygonEnd:function(){hr.polygonEnd(),Ss.point=$d,Ss.lineStart=C2,Ss.lineEnd=N2,Ye<0?(ue=-(le=180),Kt=-(Yt=90)):Be>Kr?Yt=90:Be<-1e-6&&(Kt=-90),pr[0]=ue,pr[1]=le},sphere:function(){ue=-(le=180),Kt=-(Yt=90)}};function $d(i,a){Ue.push(pr=[ue=i,le=i]),a<Kt&&(Kt=a),a>Yt&&(Yt=a)}function A2(i,a){var s=fn([i*xr,a*xr]);if(Le){var u=un(Le,s),p=un([u[1],-u[0],0],u);fi(p),p=ti(p);var g,x=i-se,w=x>0?1:-1,T=p[0]*zn*w,C=gn(x)>180;C^(w*se<T&&T<w*i)?(g=p[1]*zn)>Yt&&(Yt=g):C^(w*se<(T=(T+360)%360-180)&&T<w*i)?(g=-p[1]*zn)<Kt&&(Kt=g):(a<Kt&&(Kt=a),a>Yt&&(Yt=a)),C?i<se?Xa(ue,i)>Xa(ue,le)&&(le=i):Xa(i,le)>Xa(ue,le)&&(ue=i):le>=ue?(i<ue&&(ue=i),i>le&&(le=i)):i>se?Xa(ue,i)>Xa(ue,le)&&(le=i):Xa(i,le)>Xa(ue,le)&&(ue=i)}else Ue.push(pr=[ue=i,le=i]);a<Kt&&(Kt=a),a>Yt&&(Yt=a),Le=s,se=i}function C2(){Ss.point=A2}function N2(){pr[0]=ue,pr[1]=le,Ss.point=$d,Le=null}function I2(i,a){if(Le){var s=i-se;Be.add(gn(s)>180?s+(s>0?360:-360):s)}else ie=i,de=a;hr.point(i,a),A2(i,a)}function Lm(){hr.lineStart()}function Mm(){I2(ie,de),hr.lineEnd(),gn(Be)>Kr&&(ue=-(le=180)),pr[0]=ue,pr[1]=le,Le=null}function Xa(i,a){return(a-=i)<0?a+360:a}function Om(i,a){return i[0]-a[0]}function L2(i,a){return i[0]<=i[1]?i[0]<=a&&a<=i[1]:a<i[0]||i[1]<a}function Dm(i){var a,s,u,p,g,x,w;if(Yt=le=-(ue=Kt=1/0),Ue=[],Nt(i,Ss),s=Ue.length){for(Ue.sort(Om),a=1,g=[u=Ue[0]];a<s;++a)L2(u,(p=Ue[a])[0])||L2(u,p[1])?(Xa(u[0],p[1])>Xa(u[0],u[1])&&(u[1]=p[1]),Xa(p[0],u[1])>Xa(u[0],u[1])&&(u[0]=p[0])):g.push(u=p);for(x=-1/0,a=0,u=g[s=g.length-1];a<=s;u=p,++a)p=g[a],(w=Xa(u[1],p[0]))>x&&(x=w,ue=p[0],le=u[1])}return Ue=pr=null,ue===1/0||Kt===1/0?[[NaN,NaN],[NaN,NaN]]:[[ue,Kt],[le,Yt]]}var To={sphere:lt,point:Hd,lineStart:M2,lineEnd:O2,polygonStart:function(){To.lineStart=Fm,To.lineEnd=Pm},polygonEnd:function(){To.lineStart=M2,To.lineEnd=O2}};function Hd(i,a){i*=xr;var s=Mr(a*=xr);gh(s*Mr(i),s*N(i),N(a))}function gh(i,a,s){++Rn,ka+=(i-ka)/Rn,Ko+=(a-Ko)/Rn,Jo+=(s-Jo)/Rn}function M2(){To.point=Rm}function Rm(i,a){i*=xr;var s=Mr(a*=xr);Ea=s*Mr(i),Ta=s*N(i),Sa=N(a),To.point=Bm,gh(Ea,Ta,Sa)}function Bm(i,a){i*=xr;var s=Mr(a*=xr),u=s*Mr(i),p=s*N(i),g=N(a),x=Ln(O((x=Ta*g-Sa*p)*x+(x=Sa*u-Ea*g)*x+(x=Ea*p-Ta*u)*x),Ea*u+Ta*p+Sa*g);Ua+=x,sa+=x*(Ea+(Ea=u)),Qo+=x*(Ta+(Ta=p)),Hc+=x*(Sa+(Sa=g)),gh(Ea,Ta,Sa)}function O2(){To.point=Hd}function Fm(){To.point=zm}function Pm(){D2(ph,S2),To.point=Hd}function zm(i,a){ph=i,S2=a,i*=xr,a*=xr,To.point=D2;var s=Mr(a);Ea=s*Mr(i),Ta=s*N(i),Sa=N(a),gh(Ea,Ta,Sa)}function D2(i,a){i*=xr;var s=Mr(a*=xr),u=s*Mr(i),p=s*N(i),g=N(a),x=Ta*g-Sa*p,w=Sa*u-Ea*g,T=Ea*p-Ta*u,C=y(x,w,T),R=Z(C),j=C&&-R/C;Wl.add(j*x),Gl.add(j*w),Vl.add(j*T),Ua+=R,sa+=R*(Ea+(Ea=u)),Qo+=R*(Ta+(Ta=p)),Hc+=R*(Sa+(Sa=g)),gh(Ea,Ta,Sa)}function Um(i){Rn=Ua=ka=Ko=Jo=sa=Qo=Hc=0,Wl=new bt,Gl=new bt,Vl=new bt,Nt(i,To);var a=+Wl,s=+Gl,u=+Vl,p=y(a,s,u);return p<ec&&(a=sa,s=Qo,u=Hc,Ua<Kr&&(a=ka,s=Ko,u=Jo),(p=y(a,s,u))<ec)?[NaN,NaN]:[Ln(s,a)*zn,Z(u/p)*zn]}function Zl(i){return function(){return i}}function qd(i,a){function s(u,p){return u=i(u,p),a(u[0],u[1])}return i.invert&&a.invert&&(s.invert=function(u,p){return(u=a.invert(u,p))&&i.invert(u[0],u[1])}),s}function Wd(i,a){return[gn(i)>rn?i+Math.round(-i/Xi)*Xi:i,a]}function Gd(i,a,s){return(i%=Xi)?a||s?qd(B2(i),F2(a,s)):B2(i):a||s?F2(a,s):Wd}function R2(i){return function(a,s){return[(a+=i)>rn?a-Xi:a<-rn?a+Xi:a,s]}}function B2(i){var a=R2(i);return a.invert=R2(-i),a}function F2(i,a){var s=Mr(i),u=N(i),p=Mr(a),g=N(a);function x(w,T){var C=Mr(T),R=Mr(w)*C,j=N(w)*C,F=N(T),$=F*s+R*u;return[Ln(j*p-$*g,R*s-F*u),Z($*p+j*g)]}return x.invert=function(w,T){var C=Mr(T),R=Mr(w)*C,j=N(w)*C,F=N(T),$=F*p-j*g;return[Ln(j*p+F*g,R*s+$*u),Z($*s-R*u)]},x}function P2(i){function a(s){return(s=i(s[0]*xr,s[1]*xr))[0]*=zn,s[1]*=zn,s}return i=Gd(i[0]*xr,i[1]*xr,i.length>2?i[2]*xr:0),a.invert=function(s){return(s=i.invert(s[0]*xr,s[1]*xr))[0]*=zn,s[1]*=zn,s},a}function z2(i,a,s,u,p,g){if(s){var x=Mr(a),w=N(a),T=u*s;p==null?(p=a+u*Xi,g=a-T/2):(p=U2(x,p),g=U2(x,g),(u>0?p<g:p>g)&&(p+=u*Xi));for(var C,R=p;u>0?R>g:R<g;R-=T)C=ti([x,-w*Mr(R),-w*N(R)]),i.point(C[0],C[1])}}function U2(i,a){(a=fn(a))[0]-=i,fi(a);var s=Y(-a[1]);return((-a[2]<0?-s:s)+Xi-Kr)%Xi}function Ym(){var i,a,s=Zl([0,0]),u=Zl(90),p=Zl(6),g={point:function(w,T){i.push(w=a(w,T)),w[0]*=zn,w[1]*=zn}};function x(){var w=s.apply(this,arguments),T=u.apply(this,arguments)*xr,C=p.apply(this,arguments)*xr;return i=[],a=Gd(-w[0]*xr,-w[1]*xr,0).invert,z2(g,T,C,1),w={type:"Polygon",coordinates:[i]},i=a=null,w}return x.center=function(w){return arguments.length?(s=typeof w=="function"?w:Zl([+w[0],+w[1]]),x):s},x.radius=function(w){return arguments.length?(u=typeof w=="function"?w:Zl(+w),x):u},x.precision=function(w){return arguments.length?(p=typeof w=="function"?w:Zl(+w),x):p},x}function Y2(){var i,a=[];return{point:function(s,u,p){i.push([s,u,p])},lineStart:function(){a.push(i=[])},lineEnd:lt,rejoin:function(){a.length>1&&a.push(a.pop().concat(a.shift()))},result:function(){var s=a;return a=[],i=null,s}}}function c0(i,a){return gn(i[0]-a[0])<Kr&&gn(i[1]-a[1])<Kr}function l0(i,a,s,u){this.x=i,this.z=a,this.o=s,this.e=u,this.v=!1,this.n=this.p=null}function j2(i,a,s,u,p){var g,x,w=[],T=[];if(i.forEach(function(it){if(!((G=it.length-1)<=0)){var G,V,X=it[0],pt=it[G];if(c0(X,pt)){if(!X[2]&&!pt[2]){for(p.lineStart(),g=0;g<G;++g)p.point((X=it[g])[0],X[1]);return void p.lineEnd()}pt[0]+=2e-6}w.push(V=new l0(X,it,null,!0)),T.push(V.o=new l0(X,null,V,!1)),w.push(V=new l0(pt,it,null,!1)),T.push(V.o=new l0(pt,null,V,!0))}}),w.length){for(T.sort(a),$2(w),$2(T),g=0,x=T.length;g<x;++g)T[g].e=s=!s;for(var C,R,j=w[0];;){for(var F=j,$=!0;F.v;)if((F=F.n)===j)return;C=F.z,p.lineStart();do{if(F.v=F.o.v=!0,F.e){if($)for(g=0,x=C.length;g<x;++g)p.point((R=C[g])[0],R[1]);else u(F.x,F.n.x,1,p);F=F.n}else{if($)for(C=F.p.z,g=C.length-1;g>=0;--g)p.point((R=C[g])[0],R[1]);else u(F.x,F.p.x,-1,p);F=F.p}C=(F=F.o).z,$=!$}while(!F.v);p.lineEnd()}}}function $2(i){if(a=i.length){for(var a,s,u=0,p=i[0];++u<a;)p.n=s=i[u],s.p=p,p=s;p.n=s=i[0],s.p=p}}function Vd(i){return gn(i[0])<=rn?i[0]:L(i[0])*((gn(i[0])+rn)%Xi-rn)}function H2(i,a){var s=Vd(a),u=a[1],p=N(u),g=[N(s),-Mr(s),0],x=0,w=0,T=new bt;p===1?u=Qn+Kr:p===-1&&(u=-Qn-Kr);for(var C=0,R=i.length;C<R;++C)if(F=(j=i[C]).length)for(var j,F,$=j[F-1],it=Vd($),G=$[1]/2+Xo,V=N(G),X=Mr(G),pt=0;pt<F;++pt,it=ht,V=kt,X=ee,$=ut){var ut=j[pt],ht=Vd(ut),vt=ut[1]/2+Xo,kt=N(vt),ee=Mr(vt),me=ht-it,Vt=me>=0?1:-1,jt=Vt*me,$t=jt>rn,qt=V*kt;if(T.add(Ln(qt*Vt*N(jt),X*ee+qt*Mr(jt))),x+=$t?me+Vt*Xi:me,$t^it>=s^ht>=s){var Et=un(fn($),fn(ut));fi(Et);var Ft=un(g,Et);fi(Ft);var Xt=($t^me>=0?-1:1)*Z(Ft[2]);(u>Xt||u===Xt&&(Et[0]||Et[1]))&&(w+=$t^me>=0?1:-1)}}return(x<-1e-6||x<Kr&&T<-1e-12)^1&w}function q2(i,a,s,u){return function(p){var g,x,w,T=a(p),C=Y2(),R=a(C),j=!1,F={point:$,lineStart:G,lineEnd:V,polygonStart:function(){F.point=X,F.lineStart=pt,F.lineEnd=ut,x=[],g=[]},polygonEnd:function(){F.point=$,F.lineStart=G,F.lineEnd=V,x=$e(x);var ht=H2(g,u);x.length?(j||(p.polygonStart(),j=!0),j2(x,$m,ht,s,p)):ht&&(j||(p.polygonStart(),j=!0),p.lineStart(),s(null,null,1,p),p.lineEnd()),j&&(p.polygonEnd(),j=!1),x=g=null},sphere:function(){p.polygonStart(),p.lineStart(),s(null,null,1,p),p.lineEnd(),p.polygonEnd()}};function $(ht,vt){i(ht,vt)&&p.point(ht,vt)}function it(ht,vt){T.point(ht,vt)}function G(){F.point=it,T.lineStart()}function V(){F.point=$,T.lineEnd()}function X(ht,vt){w.push([ht,vt]),R.point(ht,vt)}function pt(){R.lineStart(),w=[]}function ut(){X(w[0][0],w[0][1]),R.lineEnd();var ht,vt,kt,ee,me=R.clean(),Vt=C.result(),jt=Vt.length;if(w.pop(),g.push(w),w=null,jt)if(1&me){if((vt=(kt=Vt[0]).length-1)>0){for(j||(p.polygonStart(),j=!0),p.lineStart(),ht=0;ht<vt;++ht)p.point((ee=kt[ht])[0],ee[1]);p.lineEnd()}}else jt>1&&2&me&&Vt.push(Vt.pop().concat(Vt.shift())),x.push(Vt.filter(jm))}return F}}function jm(i){return i.length>1}function $m(i,a){return((i=i.x)[0]<0?i[1]-Qn-Kr:Qn-i[1])-((a=a.x)[0]<0?a[1]-Qn-Kr:Qn-a[1])}Wd.invert=Wd;const Zd=q2(function(){return!0},function(i){var a,s=NaN,u=NaN,p=NaN;return{lineStart:function(){i.lineStart(),a=1},point:function(g,x){var w=g>0?rn:-rn,T=gn(g-s);gn(T-rn)<Kr?(i.point(s,u=(u+x)/2>0?Qn:-Qn),i.point(p,u),i.lineEnd(),i.lineStart(),i.point(w,u),i.point(g,u),a=0):p!==w&&T>=rn&&(gn(s-p)<Kr&&(s-=p*Kr),gn(g-w)<Kr&&(g-=w*Kr),u=function(C,R,j,F){var $,it,G=N(C-j);return gn(G)>Kr?Ts((N(R)*(it=Mr(F))*N(j)-N(F)*($=Mr(R))*N(C))/($*it*G)):(R+F)/2}(s,u,g,x),i.point(p,u),i.lineEnd(),i.lineStart(),i.point(w,u),a=0),i.point(s=g,u=x),p=w},lineEnd:function(){i.lineEnd(),s=u=NaN},clean:function(){return 2-a}}},function(i,a,s,u){var p;if(i==null)p=s*Qn,u.point(-rn,p),u.point(0,p),u.point(rn,p),u.point(rn,0),u.point(rn,-p),u.point(0,-p),u.point(-rn,-p),u.point(-rn,0),u.point(-rn,p);else if(gn(i[0]-a[0])>Kr){var g=i[0]<a[0]?rn:-rn;p=s*g/2,u.point(-g,p),u.point(0,p),u.point(g,p)}else u.point(a[0],a[1])},[-rn,-Qn]);function W2(i){var a=Mr(i),s=6*xr,u=a>0,p=gn(a)>Kr;function g(T,C){return Mr(T)*Mr(C)>a}function x(T,C,R){var j=[1,0,0],F=un(fn(T),fn(C)),$=Di(F,F),it=F[0],G=$-it*it;if(!G)return!R&&T;var V=a*$/G,X=-a*it/G,pt=un(j,F),ut=da(j,V);Za(ut,da(F,X));var ht=pt,vt=Di(ut,ht),kt=Di(ht,ht),ee=vt*vt-kt*(Di(ut,ut)-1);if(!(ee<0)){var me=O(ee),Vt=da(ht,(-vt-me)/kt);if(Za(Vt,ut),Vt=ti(Vt),!R)return Vt;var jt,$t=T[0],qt=C[0],Et=T[1],Ft=C[1];qt<$t&&(jt=$t,$t=qt,qt=jt);var Xt=qt-$t,oe=gn(Xt-rn)<Kr;if(!oe&&Ft<Et&&(jt=Et,Et=Ft,Ft=jt),oe||Xt<Kr?oe?Et+Ft>0^Vt[1]<(gn(Vt[0]-$t)<Kr?Et:Ft):Et<=Vt[1]&&Vt[1]<=Ft:Xt>rn^($t<=Vt[0]&&Vt[0]<=qt)){var Ae=da(ht,(-vt+me)/kt);return Za(Ae,ut),[Vt,ti(Ae)]}}}function w(T,C){var R=u?i:rn-i,j=0;return T<-R?j|=1:T>R&&(j|=2),C<-R?j|=4:C>R&&(j|=8),j}return q2(g,function(T){var C,R,j,F,$;return{lineStart:function(){F=j=!1,$=1},point:function(it,G){var V,X=[it,G],pt=g(it,G),ut=u?pt?0:w(it,G):pt?w(it+(it<0?rn:-rn),G):0;if(!C&&(F=j=pt)&&T.lineStart(),pt!==j&&(!(V=x(C,X))||c0(C,V)||c0(X,V))&&(X[2]=1),pt!==j)$=0,pt?(T.lineStart(),V=x(X,C),T.point(V[0],V[1])):(V=x(C,X),T.point(V[0],V[1],2),T.lineEnd()),C=V;else if(p&&C&&u^pt){var ht;ut&R||!(ht=x(X,C,!0))||($=0,u?(T.lineStart(),T.point(ht[0][0],ht[0][1]),T.point(ht[1][0],ht[1][1]),T.lineEnd()):(T.point(ht[1][0],ht[1][1]),T.lineEnd(),T.lineStart(),T.point(ht[0][0],ht[0][1],3)))}!pt||C&&c0(C,X)||T.point(X[0],X[1]),C=X,j=pt,R=ut},lineEnd:function(){j&&T.lineEnd(),C=null},clean:function(){return $|(F&&j)<<1}}},function(T,C,R,j){z2(j,i,s,R,T,C)},u?[0,-i]:[-rn,i-rn])}var Xd,Kd,u0,h0,yh=1e9,d0=-yh;function f0(i,a,s,u){function p(C,R){return i<=C&&C<=s&&a<=R&&R<=u}function g(C,R,j,F){var $=0,it=0;if(C==null||($=x(C,j))!==(it=x(R,j))||T(C,R)<0^j>0)do F.point($===0||$===3?i:s,$>1?u:a);while(($=($+j+4)%4)!==it);else F.point(R[0],R[1])}function x(C,R){return gn(C[0]-i)<Kr?R>0?0:3:gn(C[0]-s)<Kr?R>0?2:1:gn(C[1]-a)<Kr?R>0?1:0:R>0?3:2}function w(C,R){return T(C.x,R.x)}function T(C,R){var j=x(C,1),F=x(R,1);return j!==F?j-F:j===0?R[1]-C[1]:j===1?C[0]-R[0]:j===2?C[1]-R[1]:R[0]-C[0]}return function(C){var R,j,F,$,it,G,V,X,pt,ut,ht,vt=C,kt=Y2(),ee={point:me,lineStart:function(){ee.point=Vt,j&&j.push(F=[]),ut=!0,pt=!1,V=X=NaN},lineEnd:function(){R&&(Vt($,it),G&&pt&&kt.rejoin(),R.push(kt.result())),ee.point=me,pt&&vt.lineEnd()},polygonStart:function(){vt=kt,R=[],j=[],ht=!0},polygonEnd:function(){var jt=function(){for(var Et=0,Ft=0,Xt=j.length;Ft<Xt;++Ft)for(var oe,Ae,He=j[Ft],Xe=1,gr=He.length,Ke=He[0],Hr=Ke[0],Wr=Ke[1];Xe<gr;++Xe)oe=Hr,Ae=Wr,Hr=(Ke=He[Xe])[0],Wr=Ke[1],Ae<=u?Wr>u&&(Hr-oe)*(u-Ae)>(Wr-Ae)*(i-oe)&&++Et:Wr<=u&&(Hr-oe)*(u-Ae)<(Wr-Ae)*(i-oe)&&--Et;return Et}(),$t=ht&&jt,qt=(R=$e(R)).length;($t||qt)&&(C.polygonStart(),$t&&(C.lineStart(),g(null,null,1,C),C.lineEnd()),qt&&j2(R,w,jt,g,C),C.polygonEnd()),vt=C,R=j=F=null}};function me(jt,$t){p(jt,$t)&&vt.point(jt,$t)}function Vt(jt,$t){var qt=p(jt,$t);if(j&&F.push([jt,$t]),ut)$=jt,it=$t,G=qt,ut=!1,qt&&(vt.lineStart(),vt.point(jt,$t));else if(qt&&pt)vt.point(jt,$t);else{var Et=[V=Math.max(d0,Math.min(yh,V)),X=Math.max(d0,Math.min(yh,X))],Ft=[jt=Math.max(d0,Math.min(yh,jt)),$t=Math.max(d0,Math.min(yh,$t))];(function(Xt,oe,Ae,He,Xe,gr){var Ke,Hr=Xt[0],Wr=Xt[1],Or=0,Pr=1,Sn=oe[0]-Hr,cn=oe[1]-Wr;if(Ke=Ae-Hr,Sn||!(Ke>0)){if(Ke/=Sn,Sn<0){if(Ke<Or)return;Ke<Pr&&(Pr=Ke)}else if(Sn>0){if(Ke>Pr)return;Ke>Or&&(Or=Ke)}if(Ke=Xe-Hr,Sn||!(Ke<0)){if(Ke/=Sn,Sn<0){if(Ke>Pr)return;Ke>Or&&(Or=Ke)}else if(Sn>0){if(Ke<Or)return;Ke<Pr&&(Pr=Ke)}if(Ke=He-Wr,cn||!(Ke>0)){if(Ke/=cn,cn<0){if(Ke<Or)return;Ke<Pr&&(Pr=Ke)}else if(cn>0){if(Ke>Pr)return;Ke>Or&&(Or=Ke)}if(Ke=gr-Wr,cn||!(Ke<0)){if(Ke/=cn,cn<0){if(Ke>Pr)return;Ke>Or&&(Or=Ke)}else if(cn>0){if(Ke<Or)return;Ke<Pr&&(Pr=Ke)}return Or>0&&(Xt[0]=Hr+Or*Sn,Xt[1]=Wr+Or*cn),Pr<1&&(oe[0]=Hr+Pr*Sn,oe[1]=Wr+Pr*cn),!0}}}}})(Et,Ft,i,a,s,u)?(pt||(vt.lineStart(),vt.point(Et[0],Et[1])),vt.point(Ft[0],Ft[1]),qt||vt.lineEnd(),ht=!1):qt&&(vt.lineStart(),vt.point(jt,$t),ht=!1)}V=jt,X=$t,pt=qt}return ee}}function Hm(){var i,a,s,u=0,p=0,g=960,x=500;return s={stream:function(w){return i&&a===w?i:i=f0(u,p,g,x)(a=w)},extent:function(w){return arguments.length?(u=+w[0][0],p=+w[0][1],g=+w[1][0],x=+w[1][1],i=a=null,s):[[u,p],[g,x]]}}}var Xl={sphere:lt,point:lt,lineStart:function(){Xl.point=Wm,Xl.lineEnd=qm},lineEnd:lt,polygonStart:lt,polygonEnd:lt};function qm(){Xl.point=Xl.lineEnd=lt}function Wm(i,a){Kd=i*=xr,u0=N(a*=xr),h0=Mr(a),Xl.point=Gm}function Gm(i,a){i*=xr;var s=N(a*=xr),u=Mr(a),p=gn(i-Kd),g=Mr(p),x=u*N(p),w=h0*s-u0*u*g,T=u0*s+h0*u*g;Xd.add(Ln(O(x*x+w*w),T)),Kd=i,u0=s,h0=u}function G2(i){return Xd=new bt,Nt(i,Xl),+Xd}var Jd=[null,null],Vm={type:"LineString",coordinates:Jd};function p0(i,a){return Jd[0]=i,Jd[1]=a,G2(Vm)}var V2={Feature:function(i,a){return g0(i.geometry,a)},FeatureCollection:function(i,a){for(var s=i.features,u=-1,p=s.length;++u<p;)if(g0(s[u].geometry,a))return!0;return!1}},Z2={Sphere:function(){return!0},Point:function(i,a){return X2(i.coordinates,a)},MultiPoint:function(i,a){for(var s=i.coordinates,u=-1,p=s.length;++u<p;)if(X2(s[u],a))return!0;return!1},LineString:function(i,a){return K2(i.coordinates,a)},MultiLineString:function(i,a){for(var s=i.coordinates,u=-1,p=s.length;++u<p;)if(K2(s[u],a))return!0;return!1},Polygon:function(i,a){return J2(i.coordinates,a)},MultiPolygon:function(i,a){for(var s=i.coordinates,u=-1,p=s.length;++u<p;)if(J2(s[u],a))return!0;return!1},GeometryCollection:function(i,a){for(var s=i.geometries,u=-1,p=s.length;++u<p;)if(g0(s[u],a))return!0;return!1}};function g0(i,a){return!(!i||!Z2.hasOwnProperty(i.type))&&Z2[i.type](i,a)}function X2(i,a){return p0(i,a)===0}function K2(i,a){for(var s,u,p,g=0,x=i.length;g<x;g++){if((u=p0(i[g],a))===0||g>0&&(p=p0(i[g],i[g-1]))>0&&s<=p&&u<=p&&(s+u-p)*(1-Math.pow((s-u)/p,2))<ec*p)return!0;s=u}return!1}function J2(i,a){return!!H2(i.map(Zm),Q2(a))}function Zm(i){return(i=i.map(Q2)).pop(),i}function Q2(i){return[i[0]*xr,i[1]*xr]}function Xm(i,a){return(i&&V2.hasOwnProperty(i.type)?V2[i.type]:g0)(i,a)}function tp(i,a,s){var u=Ie(i,a-Kr,s).concat(a);return function(p){return u.map(function(g){return[p,g]})}}function ep(i,a,s){var u=Ie(i,a-Kr,s).concat(a);return function(p){return u.map(function(g){return[g,p]})}}function rp(){var i,a,s,u,p,g,x,w,T,C,R,j,F=10,$=F,it=90,G=360,V=2.5;function X(){return{type:"MultiLineString",coordinates:pt()}}function pt(){return Ie(l(u/it)*it,s,it).map(R).concat(Ie(l(w/G)*G,x,G).map(j)).concat(Ie(l(a/F)*F,i,F).filter(function(ut){return gn(ut%it)>Kr}).map(T)).concat(Ie(l(g/$)*$,p,$).filter(function(ut){return gn(ut%G)>Kr}).map(C))}return X.lines=function(){return pt().map(function(ut){return{type:"LineString",coordinates:ut}})},X.outline=function(){return{type:"Polygon",coordinates:[R(u).concat(j(x).slice(1),R(s).reverse().slice(1),j(w).reverse().slice(1))]}},X.extent=function(ut){return arguments.length?X.extentMajor(ut).extentMinor(ut):X.extentMinor()},X.extentMajor=function(ut){return arguments.length?(u=+ut[0][0],s=+ut[1][0],w=+ut[0][1],x=+ut[1][1],u>s&&(ut=u,u=s,s=ut),w>x&&(ut=w,w=x,x=ut),X.precision(V)):[[u,w],[s,x]]},X.extentMinor=function(ut){return arguments.length?(a=+ut[0][0],i=+ut[1][0],g=+ut[0][1],p=+ut[1][1],a>i&&(ut=a,a=i,i=ut),g>p&&(ut=g,g=p,p=ut),X.precision(V)):[[a,g],[i,p]]},X.step=function(ut){return arguments.length?X.stepMajor(ut).stepMinor(ut):X.stepMinor()},X.stepMajor=function(ut){return arguments.length?(it=+ut[0],G=+ut[1],X):[it,G]},X.stepMinor=function(ut){return arguments.length?(F=+ut[0],$=+ut[1],X):[F,$]},X.precision=function(ut){return arguments.length?(V=+ut,T=tp(g,p,90),C=ep(a,i,V),R=tp(w,x,90),j=ep(u,s,V),X):V},X.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Km(){return rp()()}function Jm(i,a){var s=i[0]*xr,u=i[1]*xr,p=a[0]*xr,g=a[1]*xr,x=Mr(u),w=N(u),T=Mr(g),C=N(g),R=x*Mr(s),j=x*N(s),F=T*Mr(p),$=T*N(p),it=2*Z(O(nt(g-u)+x*T*nt(p-s))),G=N(it),V=it?function(X){var pt=N(X*=it)/G,ut=N(it-X)/G,ht=ut*R+pt*F,vt=ut*j+pt*$,kt=ut*w+pt*C;return[Ln(vt,ht)*zn,Ln(kt,O(ht*ht+vt*vt))*zn]}:function(){return[s*zn,u*zn]};return V.distance=it,V}const mh=i=>i;var np,ip,Qd,tf,ef=new bt,rf=new bt,rc={point:lt,lineStart:lt,lineEnd:lt,polygonStart:function(){rc.lineStart=Qm,rc.lineEnd=e_},polygonEnd:function(){rc.lineStart=rc.lineEnd=rc.point=lt,ef.add(gn(rf)),rf=new bt},result:function(){var i=ef/2;return ef=new bt,i}};function Qm(){rc.point=t_}function t_(i,a){rc.point=ap,np=Qd=i,ip=tf=a}function ap(i,a){rf.add(tf*i-Qd*a),Qd=i,tf=a}function e_(){ap(np,ip)}const op=rc;var Kl=1/0,y0=Kl,_h=-Kl,m0=_h,r_={point:function(i,a){i<Kl&&(Kl=i),i>_h&&(_h=i),a<y0&&(y0=a),a>m0&&(m0=a)},lineStart:lt,lineEnd:lt,polygonStart:lt,polygonEnd:lt,result:function(){var i=[[Kl,y0],[_h,m0]];return _h=m0=-(y0=Kl=1/0),i}};const _0=r_;var sp,cp,ts,es,nf=0,af=0,bh=0,b0=0,v0=0,Jl=0,of=0,sf=0,vh=0,So={point:qc,lineStart:lp,lineEnd:up,polygonStart:function(){So.lineStart=a_,So.lineEnd=o_},polygonEnd:function(){So.point=qc,So.lineStart=lp,So.lineEnd=up},result:function(){var i=vh?[of/vh,sf/vh]:Jl?[b0/Jl,v0/Jl]:bh?[nf/bh,af/bh]:[NaN,NaN];return nf=af=bh=b0=v0=Jl=of=sf=vh=0,i}};function qc(i,a){nf+=i,af+=a,++bh}function lp(){So.point=n_}function n_(i,a){So.point=i_,qc(ts=i,es=a)}function i_(i,a){var s=i-ts,u=a-es,p=O(s*s+u*u);b0+=p*(ts+i)/2,v0+=p*(es+a)/2,Jl+=p,qc(ts=i,es=a)}function up(){So.point=qc}function a_(){So.point=s_}function o_(){hp(sp,cp)}function s_(i,a){So.point=hp,qc(sp=ts=i,cp=es=a)}function hp(i,a){var s=i-ts,u=a-es,p=O(s*s+u*u);b0+=p*(ts+i)/2,v0+=p*(es+a)/2,Jl+=p,of+=(p=es*i-ts*a)*(ts+i),sf+=p*(es+a),vh+=3*p,qc(ts=i,es=a)}const dp=So;function fp(i){this._context=i}fp.prototype={_radius:4.5,pointRadius:function(i){return this._radius=i,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(i,a){switch(this._point){case 0:this._context.moveTo(i,a),this._point=1;break;case 1:this._context.lineTo(i,a);break;default:this._context.moveTo(i+this._radius,a),this._context.arc(i,a,this._radius,0,Xi)}},result:lt};var cf,pp,gp,xh,wh,lf=new bt,x0={point:lt,lineStart:function(){x0.point=c_},lineEnd:function(){cf&&yp(pp,gp),x0.point=lt},polygonStart:function(){cf=!0},polygonEnd:function(){cf=null},result:function(){var i=+lf;return lf=new bt,i}};function c_(i,a){x0.point=yp,pp=xh=i,gp=wh=a}function yp(i,a){xh-=i,wh-=a,lf.add(O(xh*xh+wh*wh)),xh=i,wh=a}const mp=x0;function _p(){this._string=[]}function bp(i){return"m0,"+i+"a"+i+","+i+" 0 1,1 0,"+-2*i+"a"+i+","+i+" 0 1,1 0,"+2*i+"z"}function l_(i,a){var s,u,p=4.5;function g(x){return x&&(typeof p=="function"&&u.pointRadius(+p.apply(this,arguments)),Nt(x,s(u))),u.result()}return g.area=function(x){return Nt(x,s(op)),op.result()},g.measure=function(x){return Nt(x,s(mp)),mp.result()},g.bounds=function(x){return Nt(x,s(_0)),_0.result()},g.centroid=function(x){return Nt(x,s(dp)),dp.result()},g.projection=function(x){return arguments.length?(s=x==null?(i=null,mh):(i=x).stream,g):i},g.context=function(x){return arguments.length?(u=x==null?(a=null,new _p):new fp(a=x),typeof p!="function"&&u.pointRadius(p),g):a},g.pointRadius=function(x){return arguments.length?(p=typeof x=="function"?x:(u.pointRadius(+x),+x),g):p},g.projection(i).context(a)}function u_(i){return{stream:kh(i)}}function kh(i){return function(a){var s=new uf;for(var u in i)s[u]=i[u];return s.stream=a,s}}function uf(){}function hf(i,a,s){var u=i.clipExtent&&i.clipExtent();return i.scale(150).translate([0,0]),u!=null&&i.clipExtent(null),Nt(s,i.stream(_0)),a(_0.result()),u!=null&&i.clipExtent(u),i}function w0(i,a,s){return hf(i,function(u){var p=a[1][0]-a[0][0],g=a[1][1]-a[0][1],x=Math.min(p/(u[1][0]-u[0][0]),g/(u[1][1]-u[0][1])),w=+a[0][0]+(p-x*(u[1][0]+u[0][0]))/2,T=+a[0][1]+(g-x*(u[1][1]+u[0][1]))/2;i.scale(150*x).translate([w,T])},s)}function df(i,a,s){return w0(i,[[0,0],a],s)}function ff(i,a,s){return hf(i,function(u){var p=+a,g=p/(u[1][0]-u[0][0]),x=(p-g*(u[1][0]+u[0][0]))/2,w=-g*u[0][1];i.scale(150*g).translate([x,w])},s)}function pf(i,a,s){return hf(i,function(u){var p=+a,g=p/(u[1][1]-u[0][1]),x=-g*u[0][0],w=(p-g*(u[1][1]+u[0][1]))/2;i.scale(150*g).translate([x,w])},s)}_p.prototype={_radius:4.5,_circle:bp(4.5),pointRadius:function(i){return(i=+i)!==this._radius&&(this._radius=i,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(i,a){switch(this._point){case 0:this._string.push("M",i,",",a),this._point=1;break;case 1:this._string.push("L",i,",",a);break;default:this._circle==null&&(this._circle=bp(this._radius)),this._string.push("M",i,",",a,this._circle)}},result:function(){if(this._string.length){var i=this._string.join("");return this._string=[],i}return null}},uf.prototype={constructor:uf,point:function(i,a){this.stream.point(i,a)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var h_=Mr(30*xr);function vp(i,a){return+a?function(s,u){function p(g,x,w,T,C,R,j,F,$,it,G,V,X,pt){var ut=j-g,ht=F-x,vt=ut*ut+ht*ht;if(vt>4*u&&X--){var kt=T+it,ee=C+G,me=R+V,Vt=O(kt*kt+ee*ee+me*me),jt=Z(me/=Vt),$t=gn(gn(me)-1)<Kr||gn(w-$)<Kr?(w+$)/2:Ln(ee,kt),qt=s($t,jt),Et=qt[0],Ft=qt[1],Xt=Et-g,oe=Ft-x,Ae=ht*Xt-ut*oe;(Ae*Ae/vt>u||gn((ut*Xt+ht*oe)/vt-.5)>.3||T*it+C*G+R*V<h_)&&(p(g,x,w,T,C,R,Et,Ft,$t,kt/=Vt,ee/=Vt,me,X,pt),pt.point(Et,Ft),p(Et,Ft,$t,kt,ee,me,j,F,$,it,G,V,X,pt))}}return function(g){var x,w,T,C,R,j,F,$,it,G,V,X,pt={point:ut,lineStart:ht,lineEnd:kt,polygonStart:function(){g.polygonStart(),pt.lineStart=ee},polygonEnd:function(){g.polygonEnd(),pt.lineStart=ht}};function ut(jt,$t){jt=s(jt,$t),g.point(jt[0],jt[1])}function ht(){$=NaN,pt.point=vt,g.lineStart()}function vt(jt,$t){var qt=fn([jt,$t]),Et=s(jt,$t);p($,it,F,G,V,X,$=Et[0],it=Et[1],F=jt,G=qt[0],V=qt[1],X=qt[2],16,g),g.point($,it)}function kt(){pt.point=ut,g.lineEnd()}function ee(){ht(),pt.point=me,pt.lineEnd=Vt}function me(jt,$t){vt(x=jt,$t),w=$,T=it,C=G,R=V,j=X,pt.point=vt}function Vt(){p($,it,F,G,V,X,w,T,x,C,R,j,16,g),pt.lineEnd=kt,kt()}return pt}}(i,a):function(s){return kh({point:function(u,p){u=s(u,p),this.stream.point(u[0],u[1])}})}(i)}var d_=kh({point:function(i,a){this.stream.point(i*xr,a*xr)}});function xp(i,a,s,u,p,g){if(!g)return function(G,V,X,pt,ut){function ht(vt,kt){return[V+G*(vt*=pt),X-G*(kt*=ut)]}return ht.invert=function(vt,kt){return[(vt-V)/G*pt,(X-kt)/G*ut]},ht}(i,a,s,u,p);var x=Mr(g),w=N(g),T=x*i,C=w*i,R=x/i,j=w/i,F=(w*s-x*a)/i,$=(w*a+x*s)/i;function it(G,V){return[T*(G*=u)-C*(V*=p)+a,s-C*G-T*V]}return it.invert=function(G,V){return[u*(R*G-j*V+F),p*($-j*G-R*V)]},it}function rs(i){return gf(function(){return i})()}function gf(i){var a,s,u,p,g,x,w,T,C,R,j=150,F=480,$=250,it=0,G=0,V=0,X=0,pt=0,ut=0,ht=1,vt=1,kt=null,ee=Zd,me=null,Vt=mh,jt=.5;function $t(Xt){return T(Xt[0]*xr,Xt[1]*xr)}function qt(Xt){return(Xt=T.invert(Xt[0],Xt[1]))&&[Xt[0]*zn,Xt[1]*zn]}function Et(){var Xt=xp(j,0,0,ht,vt,ut).apply(null,a(it,G)),oe=xp(j,F-Xt[0],$-Xt[1],ht,vt,ut);return s=Gd(V,X,pt),w=qd(a,oe),T=qd(s,w),x=vp(w,jt),Ft()}function Ft(){return C=R=null,$t}return $t.stream=function(Xt){return C&&R===Xt?C:C=d_(function(oe){return kh({point:function(Ae,He){var Xe=oe(Ae,He);return this.stream.point(Xe[0],Xe[1])}})}(s)(ee(x(Vt(R=Xt)))))},$t.preclip=function(Xt){return arguments.length?(ee=Xt,kt=void 0,Ft()):ee},$t.postclip=function(Xt){return arguments.length?(Vt=Xt,me=u=p=g=null,Ft()):Vt},$t.clipAngle=function(Xt){return arguments.length?(ee=+Xt?W2(kt=Xt*xr):(kt=null,Zd),Ft()):kt*zn},$t.clipExtent=function(Xt){return arguments.length?(Vt=Xt==null?(me=u=p=g=null,mh):f0(me=+Xt[0][0],u=+Xt[0][1],p=+Xt[1][0],g=+Xt[1][1]),Ft()):me==null?null:[[me,u],[p,g]]},$t.scale=function(Xt){return arguments.length?(j=+Xt,Et()):j},$t.translate=function(Xt){return arguments.length?(F=+Xt[0],$=+Xt[1],Et()):[F,$]},$t.center=function(Xt){return arguments.length?(it=Xt[0]%360*xr,G=Xt[1]%360*xr,Et()):[it*zn,G*zn]},$t.rotate=function(Xt){return arguments.length?(V=Xt[0]%360*xr,X=Xt[1]%360*xr,pt=Xt.length>2?Xt[2]%360*xr:0,Et()):[V*zn,X*zn,pt*zn]},$t.angle=function(Xt){return arguments.length?(ut=Xt%360*xr,Et()):ut*zn},$t.reflectX=function(Xt){return arguments.length?(ht=Xt?-1:1,Et()):ht<0},$t.reflectY=function(Xt){return arguments.length?(vt=Xt?-1:1,Et()):vt<0},$t.precision=function(Xt){return arguments.length?(x=vp(w,jt=Xt*Xt),Ft()):O(jt)},$t.fitExtent=function(Xt,oe){return w0($t,Xt,oe)},$t.fitSize=function(Xt,oe){return df($t,Xt,oe)},$t.fitWidth=function(Xt,oe){return ff($t,Xt,oe)},$t.fitHeight=function(Xt,oe){return pf($t,Xt,oe)},function(){return a=i.apply(this,arguments),$t.invert=a.invert&&qt,Et()}}function yf(i){var a=0,s=rn/3,u=gf(i),p=u(a,s);return p.parallels=function(g){return arguments.length?u(a=g[0]*xr,s=g[1]*xr):[a*zn,s*zn]},p}function wp(i,a){var s=N(i),u=(s+N(a))/2;if(gn(u)<Kr)return function(w){var T=Mr(w);function C(R,j){return[R*T,N(j)/T]}return C.invert=function(R,j){return[R/T,Z(j*T)]},C}(i);var p=1+s*(2*u-s),g=O(p)/u;function x(w,T){var C=O(p-2*u*N(T))/u;return[C*N(w*=u),g-C*Mr(w)]}return x.invert=function(w,T){var C=g-T,R=Ln(w,gn(C))*L(C);return C*u<0&&(R-=rn*L(w)*L(C)),[R/u,Z((p-(w*w+C*C)*u*u)/(2*u))]},x}function k0(){return yf(wp).scale(155.424).center([0,33.6442])}function kp(){return k0().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function f_(){var i,a,s,u,p,g,x=kp(),w=k0().rotate([154,0]).center([-2,58.5]).parallels([55,65]),T=k0().rotate([157,0]).center([-3,19.9]).parallels([8,18]),C={point:function(F,$){g=[F,$]}};function R(F){var $=F[0],it=F[1];return g=null,s.point($,it),g||(u.point($,it),g)||(p.point($,it),g)}function j(){return i=a=null,R}return R.invert=function(F){var $=x.scale(),it=x.translate(),G=(F[0]-it[0])/$,V=(F[1]-it[1])/$;return(V>=.12&&V<.234&&G>=-.425&&G<-.214?w:V>=.166&&V<.234&&G>=-.214&&G<-.115?T:x).invert(F)},R.stream=function(F){return i&&a===F?i:($=[x.stream(a=F),w.stream(F),T.stream(F)],it=$.length,i={point:function(G,V){for(var X=-1;++X<it;)$[X].point(G,V)},sphere:function(){for(var G=-1;++G<it;)$[G].sphere()},lineStart:function(){for(var G=-1;++G<it;)$[G].lineStart()},lineEnd:function(){for(var G=-1;++G<it;)$[G].lineEnd()},polygonStart:function(){for(var G=-1;++G<it;)$[G].polygonStart()},polygonEnd:function(){for(var G=-1;++G<it;)$[G].polygonEnd()}});var $,it},R.precision=function(F){return arguments.length?(x.precision(F),w.precision(F),T.precision(F),j()):x.precision()},R.scale=function(F){return arguments.length?(x.scale(F),w.scale(.35*F),T.scale(F),R.translate(x.translate())):x.scale()},R.translate=function(F){if(!arguments.length)return x.translate();var $=x.scale(),it=+F[0],G=+F[1];return s=x.translate(F).clipExtent([[it-.455*$,G-.238*$],[it+.455*$,G+.238*$]]).stream(C),u=w.translate([it-.307*$,G+.201*$]).clipExtent([[it-.425*$+Kr,G+.12*$+Kr],[it-.214*$-Kr,G+.234*$-Kr]]).stream(C),p=T.translate([it-.205*$,G+.212*$]).clipExtent([[it-.214*$+Kr,G+.166*$+Kr],[it-.115*$-Kr,G+.234*$-Kr]]).stream(C),j()},R.fitExtent=function(F,$){return w0(R,F,$)},R.fitSize=function(F,$){return df(R,F,$)},R.fitWidth=function(F,$){return ff(R,F,$)},R.fitHeight=function(F,$){return pf(R,F,$)},R.scale(1070)}function Ep(i){return function(a,s){var u=Mr(a),p=Mr(s),g=i(u*p);return g===1/0?[2,0]:[g*p*N(a),g*N(s)]}}function Eh(i){return function(a,s){var u=O(a*a+s*s),p=i(u),g=N(p),x=Mr(p);return[Ln(a*g,u*x),Z(u&&s*g/u)]}}var mf=Ep(function(i){return O(2/(1+i))});function p_(){return rs(mf).scale(124.75).clipAngle(179.999)}mf.invert=Eh(function(i){return 2*Z(i/2)});var _f=Ep(function(i){return(i=Y(i))&&i/N(i)});function g_(){return rs(_f).scale(79.4188).clipAngle(179.999)}function Th(i,a){return[i,k(P((Qn+a)/2))]}function y_(){return Tp(Th).scale(961/Xi)}function Tp(i){var a,s,u,p=rs(i),g=p.center,x=p.scale,w=p.translate,T=p.clipExtent,C=null;function R(){var j=rn*x(),F=p(P2(p.rotate()).invert([0,0]));return T(C==null?[[F[0]-j,F[1]-j],[F[0]+j,F[1]+j]]:i===Th?[[Math.max(F[0]-j,C),a],[Math.min(F[0]+j,s),u]]:[[C,Math.max(F[1]-j,a)],[s,Math.min(F[1]+j,u)]])}return p.scale=function(j){return arguments.length?(x(j),R()):x()},p.translate=function(j){return arguments.length?(w(j),R()):w()},p.center=function(j){return arguments.length?(g(j),R()):g()},p.clipExtent=function(j){return arguments.length?(j==null?C=a=s=u=null:(C=+j[0][0],a=+j[0][1],s=+j[1][0],u=+j[1][1]),R()):C==null?null:[[C,a],[s,u]]},R()}function E0(i){return P((Qn+i)/2)}function Sp(i,a){var s=Mr(i),u=i===a?N(i):k(s/Mr(a))/k(E0(a)/E0(i)),p=s*A(E0(i),u)/u;if(!u)return Th;function g(x,w){p>0?w<-Qn+Kr&&(w=-Qn+Kr):w>Qn-Kr&&(w=Qn-Kr);var T=p/A(E0(w),u);return[T*N(u*x),p-T*Mr(u*x)]}return g.invert=function(x,w){var T=p-w,C=L(u)*O(x*x+T*T),R=Ln(x,gn(T))*L(T);return T*u<0&&(R-=rn*L(x)*L(T)),[R/u,2*Ts(A(p/C,1/u))-Qn]},g}function m_(){return yf(Sp).scale(109.5).parallels([30,30])}function Sh(i,a){return[i,a]}function __(){return rs(Sh).scale(152.63)}function Ap(i,a){var s=Mr(i),u=i===a?N(i):(s-Mr(a))/(a-i),p=s/u+i;if(gn(u)<Kr)return Sh;function g(x,w){var T=p-w,C=u*x;return[T*N(C),p-T*Mr(C)]}return g.invert=function(x,w){var T=p-w,C=Ln(x,gn(T))*L(T);return T*u<0&&(C-=rn*L(x)*L(T)),[C/u,p-L(u)*O(x*x+T*T)]},g}function b_(){return yf(Ap).scale(131.154).center([0,13.9389])}_f.invert=Eh(function(i){return i}),Th.invert=function(i,a){return[i,2*Ts(o(a))-Qn]},Sh.invert=Sh;var Ah=1.340264,Ch=-.081106,Nh=893e-6,Ih=.003796,T0=O(3)/2;function bf(i,a){var s=Z(T0*N(a)),u=s*s,p=u*u*u;return[i*Mr(s)/(T0*(Ah+3*Ch*u+p*(7*Nh+9*Ih*u))),s*(Ah+Ch*u+p*(Nh+Ih*u))]}function v_(){return rs(bf).scale(177.158)}function vf(i,a){var s=Mr(a),u=Mr(i)*s;return[s*N(i)/u,N(a)/u]}function x_(){return rs(vf).scale(144.049).clipAngle(60)}function w_(){var i,a,s,u,p,g,x,w=1,T=0,C=0,R=1,j=1,F=0,$=null,it=1,G=1,V=kh({point:function(ht,vt){var kt=ut([ht,vt]);this.stream.point(kt[0],kt[1])}}),X=mh;function pt(){return it=w*R,G=w*j,g=x=null,ut}function ut(ht){var vt=ht[0]*it,kt=ht[1]*G;if(F){var ee=kt*i-vt*a;vt=vt*i+kt*a,kt=ee}return[vt+T,kt+C]}return ut.invert=function(ht){var vt=ht[0]-T,kt=ht[1]-C;if(F){var ee=kt*i+vt*a;vt=vt*i-kt*a,kt=ee}return[vt/it,kt/G]},ut.stream=function(ht){return g&&x===ht?g:g=V(X(x=ht))},ut.postclip=function(ht){return arguments.length?(X=ht,$=s=u=p=null,pt()):X},ut.clipExtent=function(ht){return arguments.length?(X=ht==null?($=s=u=p=null,mh):f0($=+ht[0][0],s=+ht[0][1],u=+ht[1][0],p=+ht[1][1]),pt()):$==null?null:[[$,s],[u,p]]},ut.scale=function(ht){return arguments.length?(w=+ht,pt()):w},ut.translate=function(ht){return arguments.length?(T=+ht[0],C=+ht[1],pt()):[T,C]},ut.angle=function(ht){return arguments.length?(a=N(F=ht%360*xr),i=Mr(F),pt()):F*zn},ut.reflectX=function(ht){return arguments.length?(R=ht?-1:1,pt()):R<0},ut.reflectY=function(ht){return arguments.length?(j=ht?-1:1,pt()):j<0},ut.fitExtent=function(ht,vt){return w0(ut,ht,vt)},ut.fitSize=function(ht,vt){return df(ut,ht,vt)},ut.fitWidth=function(ht,vt){return ff(ut,ht,vt)},ut.fitHeight=function(ht,vt){return pf(ut,ht,vt)},ut}function xf(i,a){var s=a*a,u=s*s;return[i*(.8707-.131979*s+u*(u*(.003971*s-.001529*u)-.013791)),a*(1.007226+s*(.015085+u*(.028874*s-.044475-.005916*u)))]}function k_(){return rs(xf).scale(175.295)}function wf(i,a){return[Mr(a)*N(i),N(a)]}function E_(){return rs(wf).scale(249.5).clipAngle(90.000001)}function kf(i,a){var s=Mr(a),u=1+Mr(i)*s;return[s*N(i)/u,N(a)/u]}function T_(){return rs(kf).scale(250).clipAngle(142)}function Ef(i,a){return[k(P((Qn+a)/2)),-i]}function S_(){var i=Tp(Ef),a=i.center,s=i.rotate;return i.center=function(u){return arguments.length?a([-u[1],u[0]]):[(u=a())[1],-u[0]]},i.rotate=function(u){return arguments.length?s([u[0],u[1],u.length>2?u[2]+90:90]):[(u=s())[0],u[1],u[2]-90]},s([0,0,90]).scale(159.155)}function A_(i,a){return i.parent===a.parent?1:2}function C_(i,a){return i+a.x}function N_(i,a){return Math.max(i,a.y)}function I_(){var i=A_,a=1,s=1,u=!1;function p(g){var x,w=0;g.eachAfter(function(F){var $=F.children;$?(F.x=function(it){return it.reduce(C_,0)/it.length}($),F.y=function(it){return 1+it.reduce(N_,0)}($)):(F.x=x?w+=i(F,x):0,F.y=0,x=F)});var T=function(F){for(var $;$=F.children;)F=$[0];return F}(g),C=function(F){for(var $;$=F.children;)F=$[$.length-1];return F}(g),R=T.x-i(T,C)/2,j=C.x+i(C,T)/2;return g.eachAfter(u?function(F){F.x=(F.x-g.x)*a,F.y=(g.y-F.y)*s}:function(F){F.x=(F.x-R)/(j-R)*a,F.y=(1-(g.y?F.y/g.y:1))*s})}return p.separation=function(g){return arguments.length?(i=g,p):i},p.size=function(g){return arguments.length?(u=!1,a=+g[0],s=+g[1],p):u?null:[a,s]},p.nodeSize=function(g){return arguments.length?(u=!0,a=+g[0],s=+g[1],p):u?[a,s]:null},p}function L_(i){var a=0,s=i.children,u=s&&s.length;if(u)for(;--u>=0;)a+=s[u].value;else a=1;i.value=a}function Tf(i,a){i instanceof Map?(i=[void 0,i],a===void 0&&(a=O_)):a===void 0&&(a=M_);for(var s,u,p,g,x,w=new Wc(i),T=[w];s=T.pop();)if((p=a(s.data))&&(x=(p=Array.from(p)).length))for(s.children=p,g=x-1;g>=0;--g)T.push(u=p[g]=new Wc(p[g])),u.parent=s,u.depth=s.depth+1;return w.eachBefore(Cp)}function M_(i){return i.children}function O_(i){return Array.isArray(i)?i[1]:null}function D_(i){i.data.value!==void 0&&(i.value=i.data.value),i.data=i.data.data}function Cp(i){var a=0;do i.height=a;while((i=i.parent)&&i.height<++a)}function Wc(i){this.data=i,this.depth=this.height=0,this.parent=null}function Np(i){for(var a,s,u=0,p=(i=function(x){for(var w,T,C=x.length;C;)T=Math.random()*C--|0,w=x[C],x[C]=x[T],x[T]=w;return x}(Array.from(i))).length,g=[];u<p;)a=i[u],s&&Ip(s,a)?++u:(s=B_(g=R_(g,a)),u=0);return s}function R_(i,a){var s,u;if(Sf(a,i))return[a];for(s=0;s<i.length;++s)if(S0(a,i[s])&&Sf(Lh(i[s],a),i))return[i[s],a];for(s=0;s<i.length-1;++s)for(u=s+1;u<i.length;++u)if(S0(Lh(i[s],i[u]),a)&&S0(Lh(i[s],a),i[u])&&S0(Lh(i[u],a),i[s])&&Sf(Lp(i[s],i[u],a),i))return[i[s],i[u],a];throw new Error}function S0(i,a){var s=i.r-a.r,u=a.x-i.x,p=a.y-i.y;return s<0||s*s<u*u+p*p}function Ip(i,a){var s=i.r-a.r+1e-9*Math.max(i.r,a.r,1),u=a.x-i.x,p=a.y-i.y;return s>0&&s*s>u*u+p*p}function Sf(i,a){for(var s=0;s<a.length;++s)if(!Ip(i,a[s]))return!1;return!0}function B_(i){switch(i.length){case 1:return{x:(a=i[0]).x,y:a.y,r:a.r};case 2:return Lh(i[0],i[1]);case 3:return Lp(i[0],i[1],i[2])}var a}function Lh(i,a){var s=i.x,u=i.y,p=i.r,g=a.x,x=a.y,w=a.r,T=g-s,C=x-u,R=w-p,j=Math.sqrt(T*T+C*C);return{x:(s+g+T/j*R)/2,y:(u+x+C/j*R)/2,r:(j+p+w)/2}}function Lp(i,a,s){var u=i.x,p=i.y,g=i.r,x=a.x,w=a.y,T=a.r,C=s.x,R=s.y,j=s.r,F=u-x,$=u-C,it=p-w,G=p-R,V=T-g,X=j-g,pt=u*u+p*p-g*g,ut=pt-x*x-w*w+T*T,ht=pt-C*C-R*R+j*j,vt=$*it-F*G,kt=(it*ht-G*ut)/(2*vt)-u,ee=(G*V-it*X)/vt,me=($*ut-F*ht)/(2*vt)-p,Vt=(F*X-$*V)/vt,jt=ee*ee+Vt*Vt-1,$t=2*(g+kt*ee+me*Vt),qt=kt*kt+me*me-g*g,Et=-(jt?($t+Math.sqrt($t*$t-4*jt*qt))/(2*jt):qt/$t);return{x:u+kt+ee*Et,y:p+me+Vt*Et,r:Et}}function Mp(i,a,s){var u,p,g,x,w=i.x-a.x,T=i.y-a.y,C=w*w+T*T;C?(p=a.r+s.r,p*=p,x=i.r+s.r,p>(x*=x)?(u=(C+x-p)/(2*C),g=Math.sqrt(Math.max(0,x/C-u*u)),s.x=i.x-u*w-g*T,s.y=i.y-u*T+g*w):(u=(C+p-x)/(2*C),g=Math.sqrt(Math.max(0,p/C-u*u)),s.x=a.x+u*w-g*T,s.y=a.y+u*T+g*w)):(s.x=a.x+s.r,s.y=a.y)}function Op(i,a){var s=i.r+a.r-1e-6,u=a.x-i.x,p=a.y-i.y;return s>0&&s*s>u*u+p*p}function Dp(i){var a=i._,s=i.next._,u=a.r+s.r,p=(a.x*s.r+s.x*a.r)/u,g=(a.y*s.r+s.y*a.r)/u;return p*p+g*g}function A0(i){this._=i,this.next=null,this.previous=null}function Rp(i){if(!(g=(a=i,i=typeof a=="object"&&"length"in a?a:Array.from(a)).length))return 0;var a,s,u,p,g,x,w,T,C,R,j,F;if((s=i[0]).x=0,s.y=0,!(g>1))return s.r;if(u=i[1],s.x=-u.r,u.x=s.r,u.y=0,!(g>2))return s.r+u.r;Mp(u,s,p=i[2]),s=new A0(s),u=new A0(u),p=new A0(p),s.next=p.previous=u,u.next=s.previous=p,p.next=u.previous=s;t:for(T=3;T<g;++T){Mp(s._,u._,p=i[T]),p=new A0(p),C=u.next,R=s.previous,j=u._.r,F=s._.r;do if(j<=F){if(Op(C._,p._)){u=C,s.next=u,u.previous=s,--T;continue t}j+=C._.r,C=C.next}else{if(Op(R._,p._)){(s=R).next=u,u.previous=s,--T;continue t}F+=R._.r,R=R.previous}while(C!==R.next);for(p.previous=s,p.next=u,s.next=u.previous=u=p,x=Dp(s);(p=p.next)!==u;)(w=Dp(p))<x&&(s=p,x=w);u=s.next}for(s=[u._],p=u;(p=p.next)!==u;)s.push(p._);for(p=Np(s),T=0;T<g;++T)(s=i[T]).x-=p.x,s.y-=p.y;return p.r}function F_(i){return Rp(i),i}function C0(i){return i==null?null:Bp(i)}function Bp(i){if(typeof i!="function")throw new Error;return i}function Gc(){return 0}function Ql(i){return function(){return i}}function P_(i){return Math.sqrt(i.value)}function z_(){var i=null,a=1,s=1,u=Gc;function p(g){return g.x=a/2,g.y=s/2,i?g.eachBefore(Fp(i)).eachAfter(Af(u,.5)).eachBefore(Pp(1)):g.eachBefore(Fp(P_)).eachAfter(Af(Gc,1)).eachAfter(Af(u,g.r/Math.min(a,s))).eachBefore(Pp(Math.min(a,s)/(2*g.r))),g}return p.radius=function(g){return arguments.length?(i=C0(g),p):i},p.size=function(g){return arguments.length?(a=+g[0],s=+g[1],p):[a,s]},p.padding=function(g){return arguments.length?(u=typeof g=="function"?g:Ql(+g),p):u},p}function Fp(i){return function(a){a.children||(a.r=Math.max(0,+i(a)||0))}}function Af(i,a){return function(s){if(u=s.children){var u,p,g,x=u.length,w=i(s)*a||0;if(w)for(p=0;p<x;++p)u[p].r+=w;if(g=Rp(u),w)for(p=0;p<x;++p)u[p].r-=w;s.r=g+w}}}function Pp(i){return function(a){var s=a.parent;a.r*=i,s&&(a.x=s.x+i*a.x,a.y=s.y+i*a.y)}}function zp(i){i.x0=Math.round(i.x0),i.y0=Math.round(i.y0),i.x1=Math.round(i.x1),i.y1=Math.round(i.y1)}function Mh(i,a,s,u,p){for(var g,x=i.children,w=-1,T=x.length,C=i.value&&(u-a)/i.value;++w<T;)(g=x[w]).y0=s,g.y1=p,g.x0=a,g.x1=a+=g.value*C}function U_(){var i=1,a=1,s=0,u=!1;function p(g){var x=g.height+1;return g.x0=g.y0=s,g.x1=i,g.y1=a/x,g.eachBefore(function(w,T){return function(C){C.children&&Mh(C,C.x0,w*(C.depth+1)/T,C.x1,w*(C.depth+2)/T);var R=C.x0,j=C.y0,F=C.x1-s,$=C.y1-s;F<R&&(R=F=(R+F)/2),$<j&&(j=$=(j+$)/2),C.x0=R,C.y0=j,C.x1=F,C.y1=$}}(a,x)),u&&g.eachBefore(zp),g}return p.round=function(g){return arguments.length?(u=!!g,p):u},p.size=function(g){return arguments.length?(i=+g[0],a=+g[1],p):[i,a]},p.padding=function(g){return arguments.length?(s=+g,p):s},p}bf.invert=function(i,a){for(var s,u=a,p=u*u,g=p*p*p,x=0;x<12&&(g=(p=(u-=s=(u*(Ah+Ch*p+g*(Nh+Ih*p))-a)/(Ah+3*Ch*p+g*(7*Nh+9*Ih*p)))*u)*p*p,!(gn(s)<ec));++x);return[T0*i*(Ah+3*Ch*p+g*(7*Nh+9*Ih*p))/Mr(u),Z(N(u)/T0)]},vf.invert=Eh(Ts),xf.invert=function(i,a){var s,u=a,p=25;do{var g=u*u,x=g*g;u-=s=(u*(1.007226+g*(.015085+x*(.028874*g-.044475-.005916*x)))-a)/(1.007226+g*(.045255+x*(.259866*g-.311325-.005916*11*x)))}while(gn(s)>Kr&&--p>0);return[i/(.8707+(g=u*u)*(g*(g*g*g*(.003971-.001529*g)-.013791)-.131979)),u]},wf.invert=Eh(Z),kf.invert=Eh(function(i){return 2*Ts(i)}),Ef.invert=function(i,a){return[-a,2*Ts(o(i))-Qn]},Wc.prototype=Tf.prototype={constructor:Wc,count:function(){return this.eachAfter(L_)},each:function(i,a){let s=-1;for(const u of this)i.call(a,u,++s,this);return this},eachAfter:function(i,a){for(var s,u,p,g=this,x=[g],w=[],T=-1;g=x.pop();)if(w.push(g),s=g.children)for(u=0,p=s.length;u<p;++u)x.push(s[u]);for(;g=w.pop();)i.call(a,g,++T,this);return this},eachBefore:function(i,a){for(var s,u,p=this,g=[p],x=-1;p=g.pop();)if(i.call(a,p,++x,this),s=p.children)for(u=s.length-1;u>=0;--u)g.push(s[u]);return this},find:function(i,a){let s=-1;for(const u of this)if(i.call(a,u,++s,this))return u},sum:function(i){return this.eachAfter(function(a){for(var s=+i(a.data)||0,u=a.children,p=u&&u.length;--p>=0;)s+=u[p].value;a.value=s})},sort:function(i){return this.eachBefore(function(a){a.children&&a.children.sort(i)})},path:function(i){for(var a=this,s=function(g,x){if(g===x)return g;var w=g.ancestors(),T=x.ancestors(),C=null;for(g=w.pop(),x=T.pop();g===x;)C=g,g=w.pop(),x=T.pop();return C}(a,i),u=[a];a!==s;)a=a.parent,u.push(a);for(var p=u.length;i!==s;)u.splice(p,0,i),i=i.parent;return u},ancestors:function(){for(var i=this,a=[i];i=i.parent;)a.push(i);return a},descendants:function(){return Array.from(this)},leaves:function(){var i=[];return this.eachBefore(function(a){a.children||i.push(a)}),i},links:function(){var i=this,a=[];return i.each(function(s){s!==i&&a.push({source:s.parent,target:s})}),a},copy:function(){return Tf(this).eachBefore(D_)},[Symbol.iterator]:function*(){var i,a,s,u,p=this,g=[p];do for(i=g.reverse(),g=[];p=i.pop();)if(yield p,a=p.children)for(s=0,u=a.length;s<u;++s)g.push(a[s]);while(g.length)}};var Y_={depth:-1},Up={},Cf={};function j_(i){return i.id}function $_(i){return i.parentId}function H_(){var i,a=j_,s=$_;function u(p){var g,x,w,T,C,R,j,F,$=Array.from(p),it=a,G=s,V=new Map;if(i!=null){const X=$.map((ht,vt)=>function(kt){let ee=(kt=`${kt}`).length;return Nf(kt,ee-1)&&!Nf(kt,ee-2)&&(kt=kt.slice(0,-1)),kt[0]==="/"?kt:`/${kt}`}(i(ht,vt,p))),pt=X.map(Yp),ut=new Set(X).add("");for(const ht of pt)ut.has(ht)||(ut.add(ht),X.push(ht),pt.push(Yp(ht)),$.push(Cf));it=(ht,vt)=>X[vt],G=(ht,vt)=>pt[vt]}for(w=0,g=$.length;w<g;++w)x=$[w],R=$[w]=new Wc(x),(j=it(x,w,p))!=null&&(j+="")&&(F=R.id=j,V.set(F,V.has(F)?Up:R)),(j=G(x,w,p))!=null&&(j+="")&&(R.parent=j);for(w=0;w<g;++w)if(j=(R=$[w]).parent){if(!(C=V.get(j)))throw new Error("missing: "+j);if(C===Up)throw new Error("ambiguous: "+j);C.children?C.children.push(R):C.children=[R],R.parent=C}else{if(T)throw new Error("multiple roots");T=R}if(!T)throw new Error("no root");if(i!=null){for(;T.data===Cf&&T.children.length===1;)T=T.children[0],--g;for(let X=$.length-1;X>=0&&(R=$[X],R.data===Cf);--X)R.data=null}if(T.parent=Y_,T.eachBefore(function(X){X.depth=X.parent.depth+1,--g}).eachBefore(Cp),T.parent=null,g>0)throw new Error("cycle");return T}return u.id=function(p){return arguments.length?(a=C0(p),u):a},u.parentId=function(p){return arguments.length?(s=C0(p),u):s},u.path=function(p){return arguments.length?(i=C0(p),u):i},u}function Yp(i){let a=i.length;if(a<2)return"";for(;--a>1&&!Nf(i,a););return i.slice(0,a)}function Nf(i,a){if(i[a]==="/"){let s=0;for(;a>0&&i[--a]==="\\";)++s;if((1&s)==0)return!0}return!1}function q_(i,a){return i.parent===a.parent?1:2}function If(i){var a=i.children;return a?a[0]:i.t}function Lf(i){var a=i.children;return a?a[a.length-1]:i.t}function W_(i,a,s){var u=s/(a.i-i.i);a.c-=u,a.s+=s,i.c+=u,a.z+=s,a.m+=s}function G_(i,a,s){return i.a.parent===a.parent?i.a:s}function N0(i,a){this._=i,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=a}function V_(){var i=q_,a=1,s=1,u=null;function p(T){var C=function(X){for(var pt,ut,ht,vt,kt,ee=new N0(X,0),me=[ee];pt=me.pop();)if(ht=pt._.children)for(pt.children=new Array(kt=ht.length),vt=kt-1;vt>=0;--vt)me.push(ut=pt.children[vt]=new N0(ht[vt],vt)),ut.parent=pt;return(ee.parent=new N0(null,0)).children=[ee],ee}(T);if(C.eachAfter(g),C.parent.m=-C.z,C.eachBefore(x),u)T.eachBefore(w);else{var R=T,j=T,F=T;T.eachBefore(function(X){X.x<R.x&&(R=X),X.x>j.x&&(j=X),X.depth>F.depth&&(F=X)});var $=R===j?1:i(R,j)/2,it=$-R.x,G=a/(j.x+$+it),V=s/(F.depth||1);T.eachBefore(function(X){X.x=(X.x+it)*G,X.y=X.depth*V})}return T}function g(T){var C=T.children,R=T.parent.children,j=T.i?R[T.i-1]:null;if(C){(function($){for(var it,G=0,V=0,X=$.children,pt=X.length;--pt>=0;)(it=X[pt]).z+=G,it.m+=G,G+=it.s+(V+=it.c)})(T);var F=(C[0].z+C[C.length-1].z)/2;j?(T.z=j.z+i(T._,j._),T.m=T.z-F):T.z=F}else j&&(T.z=j.z+i(T._,j._));T.parent.A=function($,it,G){if(it){for(var V,X=$,pt=$,ut=it,ht=X.parent.children[0],vt=X.m,kt=pt.m,ee=ut.m,me=ht.m;ut=Lf(ut),X=If(X),ut&&X;)ht=If(ht),(pt=Lf(pt)).a=$,(V=ut.z+ee-X.z-vt+i(ut._,X._))>0&&(W_(G_(ut,$,G),$,V),vt+=V,kt+=V),ee+=ut.m,vt+=X.m,me+=ht.m,kt+=pt.m;ut&&!Lf(pt)&&(pt.t=ut,pt.m+=ee-kt),X&&!If(ht)&&(ht.t=X,ht.m+=vt-me,G=$)}return G}(T,j,T.parent.A||R[0])}function x(T){T._.x=T.z+T.parent.m,T.m+=T.parent.m}function w(T){T.x*=a,T.y=T.depth*s}return p.separation=function(T){return arguments.length?(i=T,p):i},p.size=function(T){return arguments.length?(u=!1,a=+T[0],s=+T[1],p):u?null:[a,s]},p.nodeSize=function(T){return arguments.length?(u=!0,a=+T[0],s=+T[1],p):u?[a,s]:null},p}function I0(i,a,s,u,p){for(var g,x=i.children,w=-1,T=x.length,C=i.value&&(p-s)/i.value;++w<T;)(g=x[w]).x0=a,g.x1=u,g.y0=s,g.y1=s+=g.value*C}N0.prototype=Object.create(Wc.prototype);var jp=(1+Math.sqrt(5))/2;function $p(i,a,s,u,p,g){for(var x,w,T,C,R,j,F,$,it,G,V,X=[],pt=a.children,ut=0,ht=0,vt=pt.length,kt=a.value;ut<vt;){T=p-s,C=g-u;do R=pt[ht++].value;while(!R&&ht<vt);for(j=F=R,V=R*R*(G=Math.max(C/T,T/C)/(kt*i)),it=Math.max(F/V,V/j);ht<vt;++ht){if(R+=w=pt[ht].value,w<j&&(j=w),w>F&&(F=w),V=R*R*G,($=Math.max(F/V,V/j))>it){R-=w;break}it=$}X.push(x={value:R,dice:T<C,children:pt.slice(ut,ht)}),x.dice?Mh(x,s,u,p,kt?u+=C*R/kt:g):I0(x,s,u,kt?s+=T*R/kt:p,g),kt-=R,ut=ht}return X}const Hp=function i(a){function s(u,p,g,x,w){$p(a,u,p,g,x,w)}return s.ratio=function(u){return i((u=+u)>1?u:1)},s}(jp);function Z_(){var i=Hp,a=!1,s=1,u=1,p=[0],g=Gc,x=Gc,w=Gc,T=Gc,C=Gc;function R(F){return F.x0=F.y0=0,F.x1=s,F.y1=u,F.eachBefore(j),p=[0],a&&F.eachBefore(zp),F}function j(F){var $=p[F.depth],it=F.x0+$,G=F.y0+$,V=F.x1-$,X=F.y1-$;V<it&&(it=V=(it+V)/2),X<G&&(G=X=(G+X)/2),F.x0=it,F.y0=G,F.x1=V,F.y1=X,F.children&&($=p[F.depth+1]=g(F)/2,it+=C(F)-$,G+=x(F)-$,(V-=w(F)-$)<it&&(it=V=(it+V)/2),(X-=T(F)-$)<G&&(G=X=(G+X)/2),i(F,it,G,V,X))}return R.round=function(F){return arguments.length?(a=!!F,R):a},R.size=function(F){return arguments.length?(s=+F[0],u=+F[1],R):[s,u]},R.tile=function(F){return arguments.length?(i=Bp(F),R):i},R.padding=function(F){return arguments.length?R.paddingInner(F).paddingOuter(F):R.paddingInner()},R.paddingInner=function(F){return arguments.length?(g=typeof F=="function"?F:Ql(+F),R):g},R.paddingOuter=function(F){return arguments.length?R.paddingTop(F).paddingRight(F).paddingBottom(F).paddingLeft(F):R.paddingTop()},R.paddingTop=function(F){return arguments.length?(x=typeof F=="function"?F:Ql(+F),R):x},R.paddingRight=function(F){return arguments.length?(w=typeof F=="function"?F:Ql(+F),R):w},R.paddingBottom=function(F){return arguments.length?(T=typeof F=="function"?F:Ql(+F),R):T},R.paddingLeft=function(F){return arguments.length?(C=typeof F=="function"?F:Ql(+F),R):C},R}function X_(i,a,s,u,p){var g,x,w=i.children,T=w.length,C=new Array(T+1);for(C[0]=x=g=0;g<T;++g)C[g+1]=x+=w[g].value;(function R(j,F,$,it,G,V,X){if(j>=F-1){var pt=w[j];return pt.x0=it,pt.y0=G,pt.x1=V,void(pt.y1=X)}for(var ut=C[j],ht=$/2+ut,vt=j+1,kt=F-1;vt<kt;){var ee=vt+kt>>>1;C[ee]<ht?vt=ee+1:kt=ee}ht-C[vt-1]<C[vt]-ht&&j+1<vt&&--vt;var me=C[vt]-ut,Vt=$-me;if(V-it>X-G){var jt=$?(it*Vt+V*me)/$:V;R(j,vt,me,it,G,jt,X),R(vt,F,Vt,jt,G,V,X)}else{var $t=$?(G*Vt+X*me)/$:X;R(j,vt,me,it,G,V,$t),R(vt,F,Vt,it,$t,V,X)}})(0,T,i.value,a,s,u,p)}function K_(i,a,s,u,p){(1&i.depth?I0:Mh)(i,a,s,u,p)}const J_=function i(a){function s(u,p,g,x,w){if((T=u._squarify)&&T.ratio===a)for(var T,C,R,j,F,$=-1,it=T.length,G=u.value;++$<it;){for(R=(C=T[$]).children,j=C.value=0,F=R.length;j<F;++j)C.value+=R[j].value;C.dice?Mh(C,p,g,x,G?g+=(w-g)*C.value/G:w):I0(C,p,g,G?p+=(x-p)*C.value/G:x,w),G-=C.value}else u._squarify=T=$p(a,u,p,g,x,w),T.ratio=a}return s.ratio=function(u){return i((u=+u)>1?u:1)},s}(jp);function Q_(i){var a=i.length;return function(s){return i[Math.max(0,Math.min(a-1,Math.floor(s*a)))]}}function t3(i,a){var s=il(+i,+a);return function(u){var p=s(u);return p-360*Math.floor(p/360)}}function L0(i,a){return i=+i,a=+a,function(s){return Math.round(i*(1-s)+a*s)}}function qp(i){return((i=Math.exp(i))+1/i)/2}const Wp=function i(a,s,u){function p(g,x){var w,T,C=g[0],R=g[1],j=g[2],F=x[0],$=x[1],it=x[2],G=F-C,V=$-R,X=G*G+V*V;if(X<1e-12)T=Math.log(it/j)/a,w=function(ee){return[C+ee*G,R+ee*V,j*Math.exp(a*ee*T)]};else{var pt=Math.sqrt(X),ut=(it*it-j*j+u*X)/(2*j*s*pt),ht=(it*it-j*j-u*X)/(2*it*s*pt),vt=Math.log(Math.sqrt(ut*ut+1)-ut),kt=Math.log(Math.sqrt(ht*ht+1)-ht);T=(kt-vt)/a,w=function(ee){var me,Vt=ee*T,jt=qp(vt),$t=j/(s*pt)*(jt*(me=a*Vt+vt,((me=Math.exp(2*me))-1)/(me+1))-function(qt){return((qt=Math.exp(qt))-1/qt)/2}(vt));return[C+$t*G,R+$t*V,j*jt/qp(a*Vt+vt)]}}return w.duration=1e3*T*a/Math.SQRT2,w}return p.rho=function(g){var x=Math.max(.001,+g),w=x*x;return i(x,w,w*w)},p}(Math.SQRT2,2,4);function Gp(i){return function(a,s){var u=i((a=Mo(a)).h,(s=Mo(s)).h),p=Ni(a.s,s.s),g=Ni(a.l,s.l),x=Ni(a.opacity,s.opacity);return function(w){return a.h=u(w),a.s=p(w),a.l=g(w),a.opacity=x(w),a+""}}}const e3=Gp(il);var r3=Gp(Ni);function n3(i,a){var s=Ni((i=Al(i)).l,(a=Al(a)).l),u=Ni(i.a,a.a),p=Ni(i.b,a.b),g=Ni(i.opacity,a.opacity);return function(x){return i.l=s(x),i.a=u(x),i.b=p(x),i.opacity=g(x),i+""}}function Vp(i){return function(a,s){var u=i((a=Ba(a)).h,(s=Ba(s)).h),p=Ni(a.c,s.c),g=Ni(a.l,s.l),x=Ni(a.opacity,s.opacity);return function(w){return a.h=u(w),a.c=p(w),a.l=g(w),a.opacity=x(w),a+""}}}const i3=Vp(il);var a3=Vp(Ni);function Zp(i){return function a(s){function u(p,g){var x=i((p=En(p)).h,(g=En(g)).h),w=Ni(p.s,g.s),T=Ni(p.l,g.l),C=Ni(p.opacity,g.opacity);return function(R){return p.h=x(R),p.s=w(R),p.l=T(Math.pow(R,s)),p.opacity=C(R),p+""}}return s=+s,u.gamma=a,u}(1)}const o3=Zp(il);var M0=Zp(Ni);function Xp(i,a){a===void 0&&(a=i,i=tn);for(var s=0,u=a.length-1,p=a[0],g=new Array(u<0?0:u);s<u;)g[s]=i(p,p=a[++s]);return function(x){var w=Math.max(0,Math.min(u-1,Math.floor(x*=u)));return g[w](x-w)}}function s3(i,a){for(var s=new Array(a),u=0;u<a;++u)s[u]=i(u/(a-1));return s}function c3(i){for(var a,s=-1,u=i.length,p=i[u-1],g=0;++s<u;)a=p,p=i[s],g+=a[1]*p[0]-a[0]*p[1];return g/2}function l3(i){for(var a,s,u=-1,p=i.length,g=0,x=0,w=i[p-1],T=0;++u<p;)a=w,w=i[u],T+=s=a[0]*w[1]-w[0]*a[1],g+=(a[0]+w[0])*s,x+=(a[1]+w[1])*s;return[g/(T*=3),x/T]}function u3(i,a,s){return(a[0]-i[0])*(s[1]-i[1])-(a[1]-i[1])*(s[0]-i[0])}function h3(i,a){return i[0]-a[0]||i[1]-a[1]}function Kp(i){const a=i.length,s=[0,1];let u,p=2;for(u=2;u<a;++u){for(;p>1&&u3(i[s[p-2]],i[s[p-1]],i[u])<=0;)--p;s[p++]=u}return s.slice(0,p)}function d3(i){if((s=i.length)<3)return null;var a,s,u=new Array(s),p=new Array(s);for(a=0;a<s;++a)u[a]=[+i[a][0],+i[a][1],a];for(u.sort(h3),a=0;a<s;++a)p[a]=[u[a][0],-u[a][1]];var g=Kp(u),x=Kp(p),w=x[0]===g[0],T=x[x.length-1]===g[g.length-1],C=[];for(a=g.length-1;a>=0;--a)C.push(i[u[g[a]][2]]);for(a=+w;a<x.length-T;++a)C.push(i[u[x[a]][2]]);return C}function f3(i,a){for(var s,u,p=i.length,g=i[p-1],x=a[0],w=a[1],T=g[0],C=g[1],R=!1,j=0;j<p;++j)s=(g=i[j])[0],(u=g[1])>w!=C>w&&x<(T-s)*(w-u)/(C-u)+s&&(R=!R),T=s,C=u;return R}function p3(i){for(var a,s,u=-1,p=i.length,g=i[p-1],x=g[0],w=g[1],T=0;++u<p;)a=x,s=w,a-=x=(g=i[u])[0],s-=w=g[1],T+=Math.hypot(a,s);return T}const ca=Math.random,g3=function i(a){function s(u,p){return u=u==null?0:+u,p=p==null?1:+p,arguments.length===1?(p=u,u=0):p-=u,function(){return a()*p+u}}return s.source=i,s}(ca),y3=function i(a){function s(u,p){return arguments.length<2&&(p=u,u=0),u=Math.floor(u),p=Math.floor(p)-u,function(){return Math.floor(a()*p+u)}}return s.source=i,s}(ca),Mf=function i(a){function s(u,p){var g,x;return u=u==null?0:+u,p=p==null?1:+p,function(){var w;if(g!=null)w=g,g=null;else do g=2*a()-1,w=2*a()-1,x=g*g+w*w;while(!x||x>1);return u+p*w*Math.sqrt(-2*Math.log(x)/x)}}return s.source=i,s}(ca),m3=function i(a){var s=Mf.source(a);function u(){var p=s.apply(this,arguments);return function(){return Math.exp(p())}}return u.source=i,u}(ca),Jp=function i(a){function s(u){return(u=+u)<=0?()=>0:function(){for(var p=0,g=u;g>1;--g)p+=a();return p+g*a()}}return s.source=i,s}(ca),_3=function i(a){var s=Jp.source(a);function u(p){if((p=+p)==0)return a;var g=s(p);return function(){return g()/p}}return u.source=i,u}(ca),b3=function i(a){function s(u){return function(){return-Math.log1p(-a())/u}}return s.source=i,s}(ca),v3=function i(a){function s(u){if((u=+u)<0)throw new RangeError("invalid alpha");return u=1/-u,function(){return Math.pow(1-a(),u)}}return s.source=i,s}(ca),x3=function i(a){function s(u){if((u=+u)<0||u>1)throw new RangeError("invalid p");return function(){return Math.floor(a()+u)}}return s.source=i,s}(ca),Qp=function i(a){function s(u){if((u=+u)<0||u>1)throw new RangeError("invalid p");return u===0?()=>1/0:u===1?()=>1:(u=Math.log1p(-u),function(){return 1+Math.floor(Math.log1p(-a())/u)})}return s.source=i,s}(ca),Of=function i(a){var s=Mf.source(a)();function u(p,g){if((p=+p)<0)throw new RangeError("invalid k");if(p===0)return()=>0;if(g=g==null?1:+g,p===1)return()=>-Math.log1p(-a())*g;var x=(p<1?p+1:p)-1/3,w=1/(3*Math.sqrt(x)),T=p<1?()=>Math.pow(a(),1/p):()=>1;return function(){do{do var C=s(),R=1+w*C;while(R<=0);R*=R*R;var j=1-a()}while(j>=1-.0331*C*C*C*C&&Math.log(j)>=.5*C*C+x*(1-R+Math.log(R)));return x*R*T()*g}}return u.source=i,u}(ca),tg=function i(a){var s=Of.source(a);function u(p,g){var x=s(p),w=s(g);return function(){var T=x();return T===0?0:T/(T+w())}}return u.source=i,u}(ca),eg=function i(a){var s=Qp.source(a),u=tg.source(a);function p(g,x){return g=+g,(x=+x)>=1?()=>g:x<=0?()=>0:function(){for(var w=0,T=g,C=x;T*C>16&&T*(1-C)>16;){var R=Math.floor((T+1)*C),j=u(R,T-R+1)();j<=C?(w+=R,T-=R,C=(C-j)/(1-j)):(T=R-1,C/=j)}for(var F=C<.5,$=s(F?C:1-C),it=$(),G=0;it<=T;++G)it+=$();return w+(F?G:T-G)}}return p.source=i,p}(ca),w3=function i(a){function s(u,p,g){var x;return(u=+u)==0?x=w=>-Math.log(w):(u=1/u,x=w=>Math.pow(w,u)),p=p==null?0:+p,g=g==null?1:+g,function(){return p+g*x(-Math.log1p(-a()))}}return s.source=i,s}(ca),k3=function i(a){function s(u,p){return u=u==null?0:+u,p=p==null?1:+p,function(){return u+p*Math.tan(Math.PI*a())}}return s.source=i,s}(ca),E3=function i(a){function s(u,p){return u=u==null?0:+u,p=p==null?1:+p,function(){var g=a();return u+p*Math.log(g/(1-g))}}return s.source=i,s}(ca),T3=function i(a){var s=Of.source(a),u=eg.source(a);function p(g){return function(){for(var x=0,w=g;w>16;){var T=Math.floor(.875*w),C=s(T)();if(C>w)return x+u(T-1,w/C)();x+=T,w-=C}for(var R=-Math.log1p(-a()),j=0;R<=w;++j)R-=Math.log1p(-a());return x+j}}return p.source=i,p}(ca),rg=1/4294967296;function S3(i=Math.random()){let a=0|(0<=i&&i<1?i/rg:Math.abs(i));return()=>(a=1664525*a+1013904223|0,rg*(a>>>0))}function so(i,a){switch(arguments.length){case 0:break;case 1:this.range(i);break;default:this.range(a).domain(i)}return this}function As(i,a){switch(arguments.length){case 0:break;case 1:typeof i=="function"?this.interpolator(i):this.range(i);break;default:this.domain(i),typeof a=="function"?this.interpolator(a):this.range(a)}return this}const Df=Symbol("implicit");function Rf(){var i=new mt,a=[],s=[],u=Df;function p(g){let x=i.get(g);if(x===void 0){if(u!==Df)return u;i.set(g,x=a.push(g)-1)}return s[x%s.length]}return p.domain=function(g){if(!arguments.length)return a.slice();a=[],i=new mt;for(const x of g)i.has(x)||i.set(x,a.push(x)-1);return p},p.range=function(g){return arguments.length?(s=Array.from(g),p):s.slice()},p.unknown=function(g){return arguments.length?(u=g,p):u},p.copy=function(){return Rf(a,s).unknown(u)},so.apply(p,arguments),p}function Bf(){var i,a,s=Rf().unknown(void 0),u=s.domain,p=s.range,g=0,x=1,w=!1,T=0,C=0,R=.5;function j(){var F=u().length,$=x<g,it=$?x:g,G=$?g:x;i=(G-it)/Math.max(1,F-T+2*C),w&&(i=Math.floor(i)),it+=(G-it-i*(F-T))*R,a=i*(1-T),w&&(it=Math.round(it),a=Math.round(a));var V=Ie(F).map(function(X){return it+i*X});return p($?V.reverse():V)}return delete s.unknown,s.domain=function(F){return arguments.length?(u(F),j()):u()},s.range=function(F){return arguments.length?([g,x]=F,g=+g,x=+x,j()):[g,x]},s.rangeRound=function(F){return[g,x]=F,g=+g,x=+x,w=!0,j()},s.bandwidth=function(){return a},s.step=function(){return i},s.round=function(F){return arguments.length?(w=!!F,j()):w},s.padding=function(F){return arguments.length?(T=Math.min(1,C=+F),j()):T},s.paddingInner=function(F){return arguments.length?(T=Math.min(1,F),j()):T},s.paddingOuter=function(F){return arguments.length?(C=+F,j()):C},s.align=function(F){return arguments.length?(R=Math.max(0,Math.min(1,F)),j()):R},s.copy=function(){return Bf(u(),[g,x]).round(w).paddingInner(T).paddingOuter(C).align(R)},so.apply(j(),arguments)}function ng(i){var a=i.copy;return i.padding=i.paddingOuter,delete i.paddingInner,delete i.paddingOuter,i.copy=function(){return ng(a())},i}function A3(){return ng(Bf.apply(null,arguments).paddingInner(1))}function O0(i){return+i}var ig=[0,1];function Aa(i){return i}function Ff(i,a){return(a-=i=+i)?function(u){return(u-i)/a}:(s=isNaN(a)?NaN:.5,function(){return s});var s}function C3(i,a,s){var u=i[0],p=i[1],g=a[0],x=a[1];return p<u?(u=Ff(p,u),g=s(x,g)):(u=Ff(u,p),g=s(g,x)),function(w){return g(u(w))}}function N3(i,a,s){var u=Math.min(i.length,a.length)-1,p=new Array(u),g=new Array(u),x=-1;for(i[u]<i[0]&&(i=i.slice().reverse(),a=a.slice().reverse());++x<u;)p[x]=Ff(i[x],i[x+1]),g[x]=s(a[x],a[x+1]);return function(w){var T=D(i,w,1,u)-1;return g[T](p[T](w))}}function Oh(i,a){return a.domain(i.domain()).range(i.range()).interpolate(i.interpolate()).clamp(i.clamp()).unknown(i.unknown())}function D0(){var i,a,s,u,p,g,x=ig,w=ig,T=tn,C=Aa;function R(){var F,$,it,G=Math.min(x.length,w.length);return C!==Aa&&(F=x[0],$=x[G-1],F>$&&(it=F,F=$,$=it),C=function(V){return Math.max(F,Math.min($,V))}),u=G>2?N3:C3,p=g=null,j}function j(F){return F==null||isNaN(F=+F)?s:(p||(p=u(x.map(i),w,T)))(i(C(F)))}return j.invert=function(F){return C(a((g||(g=u(w,x.map(i),la)))(F)))},j.domain=function(F){return arguments.length?(x=Array.from(F,O0),R()):x.slice()},j.range=function(F){return arguments.length?(w=Array.from(F),R()):w.slice()},j.rangeRound=function(F){return w=Array.from(F),T=L0,R()},j.clamp=function(F){return arguments.length?(C=!!F||Aa,R()):C!==Aa},j.interpolate=function(F){return arguments.length?(T=F,R()):T},j.unknown=function(F){return arguments.length?(s=F,j):s},function(F,$){return i=F,a=$,R()}}function Pf(){return D0()(Aa,Aa)}function ag(i,a,s,u){var p,g=Te(i,a,s);switch((u=Eo(u==null?",f":u)).type){case"s":var x=Math.max(Math.abs(i),Math.abs(a));return u.precision!=null||isNaN(p=dh(g,x))||(u.precision=p),Hl(u,x);case"":case"e":case"g":case"p":case"r":u.precision!=null||isNaN(p=fh(g,Math.max(Math.abs(i),Math.abs(a))))||(u.precision=p-(u.type==="e"));break;case"f":case"%":u.precision!=null||isNaN(p=ql(g))||(u.precision=p-2*(u.type==="%"))}return $l(u)}function nc(i){var a=i.domain;return i.ticks=function(s){var u=a();return ce(u[0],u[u.length-1],s==null?10:s)},i.tickFormat=function(s,u){var p=a();return ag(p[0],p[p.length-1],s==null?10:s,u)},i.nice=function(s){s==null&&(s=10);var u,p,g=a(),x=0,w=g.length-1,T=g[x],C=g[w],R=10;for(C<T&&(p=T,T=C,C=p,p=x,x=w,w=p);R-- >0;){if((p=st(T,C,s))===u)return g[x]=T,g[w]=C,a(g);if(p>0)T=Math.floor(T/p)*p,C=Math.ceil(C/p)*p;else{if(!(p<0))break;T=Math.ceil(T*p)/p,C=Math.floor(C*p)/p}u=p}return i},i}function og(){var i=Pf();return i.copy=function(){return Oh(i,og())},so.apply(i,arguments),nc(i)}function sg(i){var a;function s(u){return u==null||isNaN(u=+u)?a:u}return s.invert=s,s.domain=s.range=function(u){return arguments.length?(i=Array.from(u,O0),s):i.slice()},s.unknown=function(u){return arguments.length?(a=u,s):a},s.copy=function(){return sg(i).unknown(a)},i=arguments.length?Array.from(i,O0):[0,1],nc(s)}function cg(i,a){var s,u=0,p=(i=i.slice()).length-1,g=i[u],x=i[p];return x<g&&(s=u,u=p,p=s,s=g,g=x,x=s),i[u]=a.floor(g),i[p]=a.ceil(x),i}function lg(i){return Math.log(i)}function ug(i){return Math.exp(i)}function I3(i){return-Math.log(-i)}function L3(i){return-Math.exp(-i)}function M3(i){return isFinite(i)?+("1e"+i):i<0?0:i}function hg(i){return(a,s)=>-i(-a,s)}function zf(i){const a=i(lg,ug),s=a.domain;let u,p,g=10;function x(){return u=function(w){return w===Math.E?Math.log:w===10&&Math.log10||w===2&&Math.log2||(w=Math.log(w),T=>Math.log(T)/w)}(g),p=function(w){return w===10?M3:w===Math.E?Math.exp:T=>Math.pow(w,T)}(g),s()[0]<0?(u=hg(u),p=hg(p),i(I3,L3)):i(lg,ug),a}return a.base=function(w){return arguments.length?(g=+w,x()):g},a.domain=function(w){return arguments.length?(s(w),x()):s()},a.ticks=w=>{const T=s();let C=T[0],R=T[T.length-1];const j=R<C;j&&([C,R]=[R,C]);let F,$,it=u(C),G=u(R);const V=w==null?10:+w;let X=[];if(!(g%1)&&G-it<V){if(it=Math.floor(it),G=Math.ceil(G),C>0){for(;it<=G;++it)for(F=1;F<g;++F)if($=it<0?F/p(-it):F*p(it),!($<C)){if($>R)break;X.push($)}}else for(;it<=G;++it)for(F=g-1;F>=1;--F)if($=it>0?F/p(-it):F*p(it),!($<C)){if($>R)break;X.push($)}2*X.length<V&&(X=ce(C,R,V))}else X=ce(it,G,Math.min(G-it,V)).map(p);return j?X.reverse():X},a.tickFormat=(w,T)=>{if(w==null&&(w=10),T==null&&(T=g===10?"s":","),typeof T!="function"&&(g%1||(T=Eo(T)).precision!=null||(T.trim=!0),T=$l(T)),w===1/0)return T;const C=Math.max(1,g*w/a.ticks().length);return R=>{let j=R/p(Math.round(u(R)));return j*g<g-.5&&(j*=g),j<=C?T(R):""}},a.nice=()=>s(cg(s(),{floor:w=>p(Math.floor(u(w))),ceil:w=>p(Math.ceil(u(w)))})),a}function dg(){const i=zf(D0()).domain([1,10]);return i.copy=()=>Oh(i,dg()).base(i.base()),so.apply(i,arguments),i}function fg(i){return function(a){return Math.sign(a)*Math.log1p(Math.abs(a/i))}}function pg(i){return function(a){return Math.sign(a)*Math.expm1(Math.abs(a))*i}}function Uf(i){var a=1,s=i(fg(a),pg(a));return s.constant=function(u){return arguments.length?i(fg(a=+u),pg(a)):a},nc(s)}function gg(){var i=Uf(D0());return i.copy=function(){return Oh(i,gg()).constant(i.constant())},so.apply(i,arguments)}function yg(i){return function(a){return a<0?-Math.pow(-a,i):Math.pow(a,i)}}function O3(i){return i<0?-Math.sqrt(-i):Math.sqrt(i)}function D3(i){return i<0?-i*i:i*i}function Yf(i){var a=i(Aa,Aa),s=1;function u(){return s===1?i(Aa,Aa):s===.5?i(O3,D3):i(yg(s),yg(1/s))}return a.exponent=function(p){return arguments.length?(s=+p,u()):s},nc(a)}function jf(){var i=Yf(D0());return i.copy=function(){return Oh(i,jf()).exponent(i.exponent())},so.apply(i,arguments),i}function R3(){return jf.apply(null,arguments).exponent(.5)}function mg(i){return Math.sign(i)*i*i}function B3(i){return Math.sign(i)*Math.sqrt(Math.abs(i))}function _g(){var i,a=Pf(),s=[0,1],u=!1;function p(g){var x=B3(a(g));return isNaN(x)?i:u?Math.round(x):x}return p.invert=function(g){return a.invert(mg(g))},p.domain=function(g){return arguments.length?(a.domain(g),p):a.domain()},p.range=function(g){return arguments.length?(a.range((s=Array.from(g,O0)).map(mg)),p):s.slice()},p.rangeRound=function(g){return p.range(g).round(!0)},p.round=function(g){return arguments.length?(u=!!g,p):u},p.clamp=function(g){return arguments.length?(a.clamp(g),p):a.clamp()},p.unknown=function(g){return arguments.length?(i=g,p):i},p.copy=function(){return _g(a.domain(),s).round(u).clamp(a.clamp()).unknown(i)},so.apply(p,arguments),nc(p)}function bg(){var i,a=[],s=[],u=[];function p(){var x=0,w=Math.max(1,s.length);for(u=new Array(w-1);++x<w;)u[x-1]=Fe(a,x/w);return g}function g(x){return x==null||isNaN(x=+x)?i:s[D(u,x)]}return g.invertExtent=function(x){var w=s.indexOf(x);return w<0?[NaN,NaN]:[w>0?u[w-1]:a[0],w<u.length?u[w]:a[a.length-1]]},g.domain=function(x){if(!arguments.length)return a.slice();a=[];for(let w of x)w==null||isNaN(w=+w)||a.push(w);return a.sort(m),p()},g.range=function(x){return arguments.length?(s=Array.from(x),p()):s.slice()},g.unknown=function(x){return arguments.length?(i=x,g):i},g.quantiles=function(){return u.slice()},g.copy=function(){return bg().domain(a).range(s).unknown(i)},so.apply(g,arguments)}function vg(){var i,a=0,s=1,u=1,p=[.5],g=[0,1];function x(T){return T!=null&&T<=T?g[D(p,T,0,u)]:i}function w(){var T=-1;for(p=new Array(u);++T<u;)p[T]=((T+1)*s-(T-u)*a)/(u+1);return x}return x.domain=function(T){return arguments.length?([a,s]=T,a=+a,s=+s,w()):[a,s]},x.range=function(T){return arguments.length?(u=(g=Array.from(T)).length-1,w()):g.slice()},x.invertExtent=function(T){var C=g.indexOf(T);return C<0?[NaN,NaN]:C<1?[a,p[0]]:C>=u?[p[u-1],s]:[p[C-1],p[C]]},x.unknown=function(T){return arguments.length&&(i=T),x},x.thresholds=function(){return p.slice()},x.copy=function(){return vg().domain([a,s]).range(g).unknown(i)},so.apply(nc(x),arguments)}function xg(){var i,a=[.5],s=[0,1],u=1;function p(g){return g!=null&&g<=g?s[D(a,g,0,u)]:i}return p.domain=function(g){return arguments.length?(a=Array.from(g),u=Math.min(a.length,s.length-1),p):a.slice()},p.range=function(g){return arguments.length?(s=Array.from(g),u=Math.min(a.length,s.length-1),p):s.slice()},p.invertExtent=function(g){var x=s.indexOf(g);return[a[x-1],a[x]]},p.unknown=function(g){return arguments.length?(i=g,p):i},p.copy=function(){return xg().domain(a).range(s).unknown(i)},so.apply(p,arguments)}const Dh=1e3,ic=6e4,Rh=36e5,$f=864e5,Hf=6048e5,qf=31536e6;var Wf=new Date,Gf=new Date;function Yi(i,a,s,u){function p(g){return i(g=arguments.length===0?new Date:new Date(+g)),g}return p.floor=function(g){return i(g=new Date(+g)),g},p.ceil=function(g){return i(g=new Date(g-1)),a(g,1),i(g),g},p.round=function(g){var x=p(g),w=p.ceil(g);return g-x<w-g?x:w},p.offset=function(g,x){return a(g=new Date(+g),x==null?1:Math.floor(x)),g},p.range=function(g,x,w){var T,C=[];if(g=p.ceil(g),w=w==null?1:Math.floor(w),!(g<x&&w>0))return C;do C.push(T=new Date(+g)),a(g,w),i(g);while(T<g&&g<x);return C},p.filter=function(g){return Yi(function(x){if(x>=x)for(;i(x),!g(x);)x.setTime(x-1)},function(x,w){if(x>=x)if(w<0)for(;++w<=0;)for(;a(x,-1),!g(x););else for(;--w>=0;)for(;a(x,1),!g(x););})},s&&(p.count=function(g,x){return Wf.setTime(+g),Gf.setTime(+x),i(Wf),i(Gf),Math.floor(s(Wf,Gf))},p.every=function(g){return g=Math.floor(g),isFinite(g)&&g>0?g>1?p.filter(u?function(x){return u(x)%g==0}:function(x){return p.count(0,x)%g==0}):p:null}),p}var R0=Yi(function(){},function(i,a){i.setTime(+i+a)},function(i,a){return a-i});R0.every=function(i){return i=Math.floor(i),isFinite(i)&&i>0?i>1?Yi(function(a){a.setTime(Math.floor(a/i)*i)},function(a,s){a.setTime(+a+s*i)},function(a,s){return(s-a)/i}):R0:null};const Vf=R0;var wg=R0.range,kg=Yi(function(i){i.setTime(i-i.getMilliseconds())},function(i,a){i.setTime(+i+a*Dh)},function(i,a){return(a-i)/Dh},function(i){return i.getUTCSeconds()});const ac=kg;var Eg=kg.range,Tg=Yi(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*Dh)},function(i,a){i.setTime(+i+a*ic)},function(i,a){return(a-i)/ic},function(i){return i.getMinutes()});const Zf=Tg;var F3=Tg.range,Sg=Yi(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*Dh-i.getMinutes()*ic)},function(i,a){i.setTime(+i+a*Rh)},function(i,a){return(a-i)/Rh},function(i){return i.getHours()});const Xf=Sg;var P3=Sg.range,Ag=Yi(i=>i.setHours(0,0,0,0),(i,a)=>i.setDate(i.getDate()+a),(i,a)=>(a-i-(a.getTimezoneOffset()-i.getTimezoneOffset())*ic)/$f,i=>i.getDate()-1);const Bh=Ag;var z3=Ag.range;function Vc(i){return Yi(function(a){a.setDate(a.getDate()-(a.getDay()+7-i)%7),a.setHours(0,0,0,0)},function(a,s){a.setDate(a.getDate()+7*s)},function(a,s){return(s-a-(s.getTimezoneOffset()-a.getTimezoneOffset())*ic)/Hf})}var tu=Vc(0),Fh=Vc(1),Cg=Vc(2),Ng=Vc(3),Zc=Vc(4),Ig=Vc(5),Lg=Vc(6),Mg=tu.range,U3=Fh.range,Y3=Cg.range,j3=Ng.range,$3=Zc.range,H3=Ig.range,q3=Lg.range,Og=Yi(function(i){i.setDate(1),i.setHours(0,0,0,0)},function(i,a){i.setMonth(i.getMonth()+a)},function(i,a){return a.getMonth()-i.getMonth()+12*(a.getFullYear()-i.getFullYear())},function(i){return i.getMonth()});const Kf=Og;var W3=Og.range,Jf=Yi(function(i){i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,a){i.setFullYear(i.getFullYear()+a)},function(i,a){return a.getFullYear()-i.getFullYear()},function(i){return i.getFullYear()});Jf.every=function(i){return isFinite(i=Math.floor(i))&&i>0?Yi(function(a){a.setFullYear(Math.floor(a.getFullYear()/i)*i),a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,s){a.setFullYear(a.getFullYear()+s*i)}):null};const oc=Jf;var G3=Jf.range,Dg=Yi(function(i){i.setUTCSeconds(0,0)},function(i,a){i.setTime(+i+a*ic)},function(i,a){return(a-i)/ic},function(i){return i.getUTCMinutes()});const Qf=Dg;var V3=Dg.range,Rg=Yi(function(i){i.setUTCMinutes(0,0,0)},function(i,a){i.setTime(+i+a*Rh)},function(i,a){return(a-i)/Rh},function(i){return i.getUTCHours()});const t2=Rg;var Z3=Rg.range,Bg=Yi(function(i){i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCDate(i.getUTCDate()+a)},function(i,a){return(a-i)/$f},function(i){return i.getUTCDate()-1});const Ph=Bg;var X3=Bg.range;function Xc(i){return Yi(function(a){a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-i)%7),a.setUTCHours(0,0,0,0)},function(a,s){a.setUTCDate(a.getUTCDate()+7*s)},function(a,s){return(s-a)/Hf})}var eu=Xc(0),zh=Xc(1),Fg=Xc(2),Pg=Xc(3),Kc=Xc(4),zg=Xc(5),Ug=Xc(6),Yg=eu.range,K3=zh.range,J3=Fg.range,Q3=Pg.range,tb=Kc.range,eb=zg.range,rb=Ug.range,jg=Yi(function(i){i.setUTCDate(1),i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCMonth(i.getUTCMonth()+a)},function(i,a){return a.getUTCMonth()-i.getUTCMonth()+12*(a.getUTCFullYear()-i.getUTCFullYear())},function(i){return i.getUTCMonth()});const e2=jg;var nb=jg.range,r2=Yi(function(i){i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCFullYear(i.getUTCFullYear()+a)},function(i,a){return a.getUTCFullYear()-i.getUTCFullYear()},function(i){return i.getUTCFullYear()});r2.every=function(i){return isFinite(i=Math.floor(i))&&i>0?Yi(function(a){a.setUTCFullYear(Math.floor(a.getUTCFullYear()/i)*i),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,s){a.setUTCFullYear(a.getUTCFullYear()+s*i)}):null};const sc=r2;var ib=r2.range;function $g(i,a,s,u,p,g){const x=[[ac,1,Dh],[ac,5,5e3],[ac,15,15e3],[ac,30,3e4],[g,1,ic],[g,5,3e5],[g,15,9e5],[g,30,18e5],[p,1,Rh],[p,3,108e5],[p,6,216e5],[p,12,432e5],[u,1,$f],[u,2,1728e5],[s,1,Hf],[a,1,2592e6],[a,3,7776e6],[i,1,qf]];function w(T,C,R){const j=Math.abs(C-T)/R,F=f(([,,G])=>G).right(x,j);if(F===x.length)return i.every(Te(T/qf,C/qf,R));if(F===0)return Vf.every(Math.max(Te(T,C,R),1));const[$,it]=x[j/x[F-1][2]<x[F][2]/j?F-1:F];return $.every(it)}return[function(T,C,R){const j=C<T;j&&([T,C]=[C,T]);const F=R&&typeof R.range=="function"?R:w(T,C,R),$=F?F.range(T,+C+1):[];return j?$.reverse():$},w]}const[Hg,qg]=$g(sc,e2,eu,Ph,t2,Qf),[Wg,Gg]=$g(oc,Kf,tu,Bh,Xf,Zf);function n2(i){if(0<=i.y&&i.y<100){var a=new Date(-1,i.m,i.d,i.H,i.M,i.S,i.L);return a.setFullYear(i.y),a}return new Date(i.y,i.m,i.d,i.H,i.M,i.S,i.L)}function i2(i){if(0<=i.y&&i.y<100){var a=new Date(Date.UTC(-1,i.m,i.d,i.H,i.M,i.S,i.L));return a.setUTCFullYear(i.y),a}return new Date(Date.UTC(i.y,i.m,i.d,i.H,i.M,i.S,i.L))}function Uh(i,a,s){return{y:i,m:a,d:s,H:0,M:0,S:0,L:0}}function Vg(i){var a=i.dateTime,s=i.date,u=i.time,p=i.periods,g=i.days,x=i.shortDays,w=i.months,T=i.shortMonths,C=Yh(p),R=jh(p),j=Yh(g),F=jh(g),$=Yh(x),it=jh(x),G=Yh(w),V=jh(w),X=Yh(T),pt=jh(T),ut={a:function(Vt){return x[Vt.getDay()]},A:function(Vt){return g[Vt.getDay()]},b:function(Vt){return T[Vt.getMonth()]},B:function(Vt){return w[Vt.getMonth()]},c:null,d:ey,e:ey,f:Ab,g:Fb,G:zb,H:Eb,I:Tb,j:Sb,L:ry,m:Cb,M:Nb,p:function(Vt){return p[+(Vt.getHours()>=12)]},q:function(Vt){return 1+~~(Vt.getMonth()/3)},Q:cy,s:ly,S:Ib,u:Lb,U:Mb,V:Ob,w:Db,W:Rb,x:null,X:null,y:Bb,Y:Pb,Z:Ub,"%":sy},ht={a:function(Vt){return x[Vt.getUTCDay()]},A:function(Vt){return g[Vt.getUTCDay()]},b:function(Vt){return T[Vt.getUTCMonth()]},B:function(Vt){return w[Vt.getUTCMonth()]},c:null,d:iy,e:iy,f:Hb,g:t4,G:r4,H:Yb,I:jb,j:$b,L:ay,m:qb,M:Wb,p:function(Vt){return p[+(Vt.getUTCHours()>=12)]},q:function(Vt){return 1+~~(Vt.getUTCMonth()/3)},Q:cy,s:ly,S:Gb,u:Vb,U:Zb,V:Xb,w:Kb,W:Jb,x:null,X:null,y:Qb,Y:e4,Z:n4,"%":sy},vt={a:function(Vt,jt,$t){var qt=$.exec(jt.slice($t));return qt?(Vt.w=it.get(qt[0].toLowerCase()),$t+qt[0].length):-1},A:function(Vt,jt,$t){var qt=j.exec(jt.slice($t));return qt?(Vt.w=F.get(qt[0].toLowerCase()),$t+qt[0].length):-1},b:function(Vt,jt,$t){var qt=X.exec(jt.slice($t));return qt?(Vt.m=pt.get(qt[0].toLowerCase()),$t+qt[0].length):-1},B:function(Vt,jt,$t){var qt=G.exec(jt.slice($t));return qt?(Vt.m=V.get(qt[0].toLowerCase()),$t+qt[0].length):-1},c:function(Vt,jt,$t){return me(Vt,a,jt,$t)},d:Qg,e:Qg,f:vb,g:Jg,G:Kg,H:ty,I:ty,j:yb,L:bb,m:gb,M:mb,p:function(Vt,jt,$t){var qt=C.exec(jt.slice($t));return qt?(Vt.p=R.get(qt[0].toLowerCase()),$t+qt[0].length):-1},q:pb,Q:wb,s:kb,S:_b,u:lb,U:ub,V:hb,w:cb,W:db,x:function(Vt,jt,$t){return me(Vt,s,jt,$t)},X:function(Vt,jt,$t){return me(Vt,u,jt,$t)},y:Jg,Y:Kg,Z:fb,"%":xb};function kt(Vt,jt){return function($t){var qt,Et,Ft,Xt=[],oe=-1,Ae=0,He=Vt.length;for($t instanceof Date||($t=new Date(+$t));++oe<He;)Vt.charCodeAt(oe)===37&&(Xt.push(Vt.slice(Ae,oe)),(Et=Xg[qt=Vt.charAt(++oe)])!=null?qt=Vt.charAt(++oe):Et=qt==="e"?" ":"0",(Ft=jt[qt])&&(qt=Ft($t,Et)),Xt.push(qt),Ae=oe+1);return Xt.push(Vt.slice(Ae,oe)),Xt.join("")}}function ee(Vt,jt){return function($t){var qt,Et,Ft=Uh(1900,void 0,1);if(me(Ft,Vt,$t+="",0)!=$t.length)return null;if("Q"in Ft)return new Date(Ft.Q);if("s"in Ft)return new Date(1e3*Ft.s+("L"in Ft?Ft.L:0));if(jt&&!("Z"in Ft)&&(Ft.Z=0),"p"in Ft&&(Ft.H=Ft.H%12+12*Ft.p),Ft.m===void 0&&(Ft.m="q"in Ft?Ft.q:0),"V"in Ft){if(Ft.V<1||Ft.V>53)return null;"w"in Ft||(Ft.w=1),"Z"in Ft?(Et=(qt=i2(Uh(Ft.y,0,1))).getUTCDay(),qt=Et>4||Et===0?zh.ceil(qt):zh(qt),qt=Ph.offset(qt,7*(Ft.V-1)),Ft.y=qt.getUTCFullYear(),Ft.m=qt.getUTCMonth(),Ft.d=qt.getUTCDate()+(Ft.w+6)%7):(Et=(qt=n2(Uh(Ft.y,0,1))).getDay(),qt=Et>4||Et===0?Fh.ceil(qt):Fh(qt),qt=Bh.offset(qt,7*(Ft.V-1)),Ft.y=qt.getFullYear(),Ft.m=qt.getMonth(),Ft.d=qt.getDate()+(Ft.w+6)%7)}else("W"in Ft||"U"in Ft)&&("w"in Ft||(Ft.w="u"in Ft?Ft.u%7:"W"in Ft?1:0),Et="Z"in Ft?i2(Uh(Ft.y,0,1)).getUTCDay():n2(Uh(Ft.y,0,1)).getDay(),Ft.m=0,Ft.d="W"in Ft?(Ft.w+6)%7+7*Ft.W-(Et+5)%7:Ft.w+7*Ft.U-(Et+6)%7);return"Z"in Ft?(Ft.H+=Ft.Z/100|0,Ft.M+=Ft.Z%100,i2(Ft)):n2(Ft)}}function me(Vt,jt,$t,qt){for(var Et,Ft,Xt=0,oe=jt.length,Ae=$t.length;Xt<oe;){if(qt>=Ae)return-1;if((Et=jt.charCodeAt(Xt++))===37){if(Et=jt.charAt(Xt++),!(Ft=vt[Et in Xg?jt.charAt(Xt++):Et])||(qt=Ft(Vt,$t,qt))<0)return-1}else if(Et!=$t.charCodeAt(qt++))return-1}return qt}return ut.x=kt(s,ut),ut.X=kt(u,ut),ut.c=kt(a,ut),ht.x=kt(s,ht),ht.X=kt(u,ht),ht.c=kt(a,ht),{format:function(Vt){var jt=kt(Vt+="",ut);return jt.toString=function(){return Vt},jt},parse:function(Vt){var jt=ee(Vt+="",!1);return jt.toString=function(){return Vt},jt},utcFormat:function(Vt){var jt=kt(Vt+="",ht);return jt.toString=function(){return Vt},jt},utcParse:function(Vt){var jt=ee(Vt+="",!0);return jt.toString=function(){return Vt},jt}}}var ru,a2,Zg,B0,o2,Xg={"-":"",_:" ",0:"0"},Ki=/^\s*\d+/,ab=/^%/,ob=/[\\^$*+?|[\]().{}]/g;function Cn(i,a,s){var u=i<0?"-":"",p=(u?-i:i)+"",g=p.length;return u+(g<s?new Array(s-g+1).join(a)+p:p)}function sb(i){return i.replace(ob,"\\$&")}function Yh(i){return new RegExp("^(?:"+i.map(sb).join("|")+")","i")}function jh(i){return new Map(i.map((a,s)=>[a.toLowerCase(),s]))}function cb(i,a,s){var u=Ki.exec(a.slice(s,s+1));return u?(i.w=+u[0],s+u[0].length):-1}function lb(i,a,s){var u=Ki.exec(a.slice(s,s+1));return u?(i.u=+u[0],s+u[0].length):-1}function ub(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.U=+u[0],s+u[0].length):-1}function hb(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.V=+u[0],s+u[0].length):-1}function db(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.W=+u[0],s+u[0].length):-1}function Kg(i,a,s){var u=Ki.exec(a.slice(s,s+4));return u?(i.y=+u[0],s+u[0].length):-1}function Jg(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.y=+u[0]+(+u[0]>68?1900:2e3),s+u[0].length):-1}function fb(i,a,s){var u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(s,s+6));return u?(i.Z=u[1]?0:-(u[2]+(u[3]||"00")),s+u[0].length):-1}function pb(i,a,s){var u=Ki.exec(a.slice(s,s+1));return u?(i.q=3*u[0]-3,s+u[0].length):-1}function gb(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.m=u[0]-1,s+u[0].length):-1}function Qg(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.d=+u[0],s+u[0].length):-1}function yb(i,a,s){var u=Ki.exec(a.slice(s,s+3));return u?(i.m=0,i.d=+u[0],s+u[0].length):-1}function ty(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.H=+u[0],s+u[0].length):-1}function mb(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.M=+u[0],s+u[0].length):-1}function _b(i,a,s){var u=Ki.exec(a.slice(s,s+2));return u?(i.S=+u[0],s+u[0].length):-1}function bb(i,a,s){var u=Ki.exec(a.slice(s,s+3));return u?(i.L=+u[0],s+u[0].length):-1}function vb(i,a,s){var u=Ki.exec(a.slice(s,s+6));return u?(i.L=Math.floor(u[0]/1e3),s+u[0].length):-1}function xb(i,a,s){var u=ab.exec(a.slice(s,s+1));return u?s+u[0].length:-1}function wb(i,a,s){var u=Ki.exec(a.slice(s));return u?(i.Q=+u[0],s+u[0].length):-1}function kb(i,a,s){var u=Ki.exec(a.slice(s));return u?(i.s=+u[0],s+u[0].length):-1}function ey(i,a){return Cn(i.getDate(),a,2)}function Eb(i,a){return Cn(i.getHours(),a,2)}function Tb(i,a){return Cn(i.getHours()%12||12,a,2)}function Sb(i,a){return Cn(1+Bh.count(oc(i),i),a,3)}function ry(i,a){return Cn(i.getMilliseconds(),a,3)}function Ab(i,a){return ry(i,a)+"000"}function Cb(i,a){return Cn(i.getMonth()+1,a,2)}function Nb(i,a){return Cn(i.getMinutes(),a,2)}function Ib(i,a){return Cn(i.getSeconds(),a,2)}function Lb(i){var a=i.getDay();return a===0?7:a}function Mb(i,a){return Cn(tu.count(oc(i)-1,i),a,2)}function ny(i){var a=i.getDay();return a>=4||a===0?Zc(i):Zc.ceil(i)}function Ob(i,a){return i=ny(i),Cn(Zc.count(oc(i),i)+(oc(i).getDay()===4),a,2)}function Db(i){return i.getDay()}function Rb(i,a){return Cn(Fh.count(oc(i)-1,i),a,2)}function Bb(i,a){return Cn(i.getFullYear()%100,a,2)}function Fb(i,a){return Cn((i=ny(i)).getFullYear()%100,a,2)}function Pb(i,a){return Cn(i.getFullYear()%1e4,a,4)}function zb(i,a){var s=i.getDay();return Cn((i=s>=4||s===0?Zc(i):Zc.ceil(i)).getFullYear()%1e4,a,4)}function Ub(i){var a=i.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+Cn(a/60|0,"0",2)+Cn(a%60,"0",2)}function iy(i,a){return Cn(i.getUTCDate(),a,2)}function Yb(i,a){return Cn(i.getUTCHours(),a,2)}function jb(i,a){return Cn(i.getUTCHours()%12||12,a,2)}function $b(i,a){return Cn(1+Ph.count(sc(i),i),a,3)}function ay(i,a){return Cn(i.getUTCMilliseconds(),a,3)}function Hb(i,a){return ay(i,a)+"000"}function qb(i,a){return Cn(i.getUTCMonth()+1,a,2)}function Wb(i,a){return Cn(i.getUTCMinutes(),a,2)}function Gb(i,a){return Cn(i.getUTCSeconds(),a,2)}function Vb(i){var a=i.getUTCDay();return a===0?7:a}function Zb(i,a){return Cn(eu.count(sc(i)-1,i),a,2)}function oy(i){var a=i.getUTCDay();return a>=4||a===0?Kc(i):Kc.ceil(i)}function Xb(i,a){return i=oy(i),Cn(Kc.count(sc(i),i)+(sc(i).getUTCDay()===4),a,2)}function Kb(i){return i.getUTCDay()}function Jb(i,a){return Cn(zh.count(sc(i)-1,i),a,2)}function Qb(i,a){return Cn(i.getUTCFullYear()%100,a,2)}function t4(i,a){return Cn((i=oy(i)).getUTCFullYear()%100,a,2)}function e4(i,a){return Cn(i.getUTCFullYear()%1e4,a,4)}function r4(i,a){var s=i.getUTCDay();return Cn((i=s>=4||s===0?Kc(i):Kc.ceil(i)).getUTCFullYear()%1e4,a,4)}function n4(){return"+0000"}function sy(){return"%"}function cy(i){return+i}function ly(i){return Math.floor(+i/1e3)}function uy(i){return ru=Vg(i),a2=ru.format,Zg=ru.parse,B0=ru.utcFormat,o2=ru.utcParse,ru}function i4(i){return new Date(i)}function a4(i){return i instanceof Date?+i:+new Date(+i)}function s2(i,a,s,u,p,g,x,w,T,C){var R=Pf(),j=R.invert,F=R.domain,$=C(".%L"),it=C(":%S"),G=C("%I:%M"),V=C("%I %p"),X=C("%a %d"),pt=C("%b %d"),ut=C("%B"),ht=C("%Y");function vt(kt){return(T(kt)<kt?$:w(kt)<kt?it:x(kt)<kt?G:g(kt)<kt?V:u(kt)<kt?p(kt)<kt?X:pt:s(kt)<kt?ut:ht)(kt)}return R.invert=function(kt){return new Date(j(kt))},R.domain=function(kt){return arguments.length?F(Array.from(kt,a4)):F().map(i4)},R.ticks=function(kt){var ee=F();return i(ee[0],ee[ee.length-1],kt==null?10:kt)},R.tickFormat=function(kt,ee){return ee==null?vt:C(ee)},R.nice=function(kt){var ee=F();return kt&&typeof kt.range=="function"||(kt=a(ee[0],ee[ee.length-1],kt==null?10:kt)),kt?F(cg(ee,kt)):R},R.copy=function(){return Oh(R,s2(i,a,s,u,p,g,x,w,T,C))},R}function o4(){return so.apply(s2(Wg,Gg,oc,Kf,tu,Bh,Xf,Zf,ac,a2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function s4(){return so.apply(s2(Hg,qg,sc,e2,eu,Ph,t2,Qf,ac,B0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function F0(){var i,a,s,u,p,g=0,x=1,w=Aa,T=!1;function C(j){return j==null||isNaN(j=+j)?p:w(s===0?.5:(j=(u(j)-i)*s,T?Math.max(0,Math.min(1,j)):j))}function R(j){return function(F){var $,it;return arguments.length?([$,it]=F,w=j($,it),C):[w(0),w(1)]}}return C.domain=function(j){return arguments.length?([g,x]=j,i=u(g=+g),a=u(x=+x),s=i===a?0:1/(a-i),C):[g,x]},C.clamp=function(j){return arguments.length?(T=!!j,C):T},C.interpolator=function(j){return arguments.length?(w=j,C):w},C.range=R(tn),C.rangeRound=R(L0),C.unknown=function(j){return arguments.length?(p=j,C):p},function(j){return u=j,i=j(g),a=j(x),s=i===a?0:1/(a-i),C}}function cc(i,a){return a.domain(i.domain()).interpolator(i.interpolator()).clamp(i.clamp()).unknown(i.unknown())}function hy(){var i=nc(F0()(Aa));return i.copy=function(){return cc(i,hy())},As.apply(i,arguments)}function dy(){var i=zf(F0()).domain([1,10]);return i.copy=function(){return cc(i,dy()).base(i.base())},As.apply(i,arguments)}function fy(){var i=Uf(F0());return i.copy=function(){return cc(i,fy()).constant(i.constant())},As.apply(i,arguments)}function c2(){var i=Yf(F0());return i.copy=function(){return cc(i,c2()).exponent(i.exponent())},As.apply(i,arguments)}function c4(){return c2.apply(null,arguments).exponent(.5)}function py(){var i=[],a=Aa;function s(u){if(u!=null&&!isNaN(u=+u))return a((D(i,u,1)-1)/(i.length-1))}return s.domain=function(u){if(!arguments.length)return i.slice();i=[];for(let p of u)p==null||isNaN(p=+p)||i.push(p);return i.sort(m),s},s.interpolator=function(u){return arguments.length?(a=u,s):a},s.range=function(){return i.map((u,p)=>a(p/(i.length-1)))},s.quantiles=function(u){return Array.from({length:u+1},(p,g)=>ze(i,g/u))},s.copy=function(){return py(a).domain(i)},As.apply(s,arguments)}function P0(){var i,a,s,u,p,g,x,w=0,T=.5,C=1,R=1,j=Aa,F=!1;function $(G){return isNaN(G=+G)?x:(G=.5+((G=+g(G))-a)*(R*G<R*a?u:p),j(F?Math.max(0,Math.min(1,G)):G))}function it(G){return function(V){var X,pt,ut;return arguments.length?([X,pt,ut]=V,j=Xp(G,[X,pt,ut]),$):[j(0),j(.5),j(1)]}}return $.domain=function(G){return arguments.length?([w,T,C]=G,i=g(w=+w),a=g(T=+T),s=g(C=+C),u=i===a?0:.5/(a-i),p=a===s?0:.5/(s-a),R=a<i?-1:1,$):[w,T,C]},$.clamp=function(G){return arguments.length?(F=!!G,$):F},$.interpolator=function(G){return arguments.length?(j=G,$):j},$.range=it(tn),$.rangeRound=it(L0),$.unknown=function(G){return arguments.length?(x=G,$):x},function(G){return g=G,i=G(w),a=G(T),s=G(C),u=i===a?0:.5/(a-i),p=a===s?0:.5/(s-a),R=a<i?-1:1,$}}function gy(){var i=nc(P0()(Aa));return i.copy=function(){return cc(i,gy())},As.apply(i,arguments)}function yy(){var i=zf(P0()).domain([.1,1,10]);return i.copy=function(){return cc(i,yy()).base(i.base())},As.apply(i,arguments)}function my(){var i=Uf(P0());return i.copy=function(){return cc(i,my()).constant(i.constant())},As.apply(i,arguments)}function l2(){var i=Yf(P0());return i.copy=function(){return cc(i,l2()).exponent(i.exponent())},As.apply(i,arguments)}function l4(){return l2.apply(null,arguments).exponent(.5)}function sn(i){for(var a=i.length/6|0,s=new Array(a),u=0;u<a;)s[u]="#"+i.slice(6*u,6*++u);return s}uy({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"]});const u4=sn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),h4=sn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),d4=sn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),f4=sn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),p4=sn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),g4=sn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),y4=sn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),m4=sn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),_4=sn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),b4=sn("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Zn=i=>al(i[i.length-1]);var _y=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(sn);const v4=Zn(_y);var by=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(sn);const x4=Zn(by);var vy=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(sn);const w4=Zn(vy);var xy=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(sn);const k4=Zn(xy);var wy=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(sn);const E4=Zn(wy);var ky=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(sn);const T4=Zn(ky);var Ey=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(sn);const S4=Zn(Ey);var Ty=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(sn);const A4=Zn(Ty);var Sy=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(sn);const C4=Zn(Sy);var Ay=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(sn);const N4=Zn(Ay);var Cy=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(sn);const I4=Zn(Cy);var Ny=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(sn);const L4=Zn(Ny);var Iy=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(sn);const M4=Zn(Iy);var Ly=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(sn);const O4=Zn(Ly);var My=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(sn);const D4=Zn(My);var Oy=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(sn);const R4=Zn(Oy);var Dy=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(sn);const B4=Zn(Dy);var Ry=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(sn);const F4=Zn(Ry);var By=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(sn);const P4=Zn(By);var Fy=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(sn);const z4=Zn(Fy);var Py=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(sn);const U4=Zn(Py);var zy=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(sn);const Y4=Zn(zy);var Uy=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(sn);const j4=Zn(Uy);var Yy=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(sn);const $4=Zn(Yy);var jy=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(sn);const H4=Zn(jy);var $y=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(sn);const q4=Zn($y);var Hy=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(sn);const W4=Zn(Hy);function G4(i){return i=Math.max(0,Math.min(1,i)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-i*(35.34-i*(2381.73-i*(6402.7-i*(7024.72-2710.57*i)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+i*(170.73+i*(52.82-i*(131.46-i*(176.58-67.37*i)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+i*(442.36-i*(2482.43-i*(6167.24-i*(6614.94-2475.67*i)))))))+")"}const V4=M0(En(300,.5,0),En(-240,.5,1));var Z4=M0(En(-100,.75,.35),En(80,1.5,.8)),X4=M0(En(260,.75,.35),En(80,1.5,.8)),z0=En();function K4(i){(i<0||i>1)&&(i-=Math.floor(i));var a=Math.abs(i-.5);return z0.h=360*i-100,z0.s=1.5-1.5*a,z0.l=.8-.9*a,z0+""}var U0=yi(),J4=Math.PI/3,Q4=2*Math.PI/3;function tv(i){var a;return i=(.5-i)*Math.PI,U0.r=255*(a=Math.sin(i))*a,U0.g=255*(a=Math.sin(i+J4))*a,U0.b=255*(a=Math.sin(i+Q4))*a,U0+""}function ev(i){return i=Math.max(0,Math.min(1,i)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+i*(1172.33-i*(10793.56-i*(33300.12-i*(38394.49-14825.05*i)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+i*(557.33+i*(1225.33-i*(3574.96-i*(1073.77+707.56*i)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+i*(3211.1-i*(15327.97-i*(27814-i*(22569.18-6838.66*i)))))))+")"}function Y0(i){var a=i.length;return function(s){return i[Math.max(0,Math.min(a-1,Math.floor(s*a)))]}}const rv=Y0(sn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var nv=Y0(sn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),iv=Y0(sn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),av=Y0(sn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function ov(i){return ki(No(i).call(document.documentElement))}var sv=0;function qy(){return new u2}function u2(){this._="@"+(++sv).toString(36)}function cv(i,a){return i.target&&(i=Da(i),a===void 0&&(a=i.currentTarget),i=i.touches||[i]),Array.from(i,s=>ua(s,a))}function lv(i){return typeof i=="string"?new gi([document.querySelectorAll(i)],[document.documentElement]):new gi([te(i)],Io)}function nn(i){return function(){return i}}u2.prototype=qy.prototype={constructor:u2,get:function(i){for(var a=this._;!(a in i);)if(!(i=i.parentNode))return;return i[a]},set:function(i,a){return i[this._]=a},remove:function(i){return this._ in i&&delete i[this._]},toString:function(){return this._}};var Wy=Math.abs,fa=Math.atan2,Jc=Math.cos,uv=Math.max,h2=Math.min,ns=Math.sin,nu=Math.sqrt,pa=1e-12,lc=Math.PI,j0=lc/2,uc=2*lc;function hv(i){return i>1?0:i<-1?lc:Math.acos(i)}function Gy(i){return i>=1?j0:i<=-1?-j0:Math.asin(i)}function dv(i){return i.innerRadius}function fv(i){return i.outerRadius}function pv(i){return i.startAngle}function gv(i){return i.endAngle}function yv(i){return i&&i.padAngle}function mv(i,a,s,u,p,g,x,w){var T=s-i,C=u-a,R=x-p,j=w-g,F=j*T-R*C;if(!(F*F<pa))return[i+(F=(R*(a-g)-j*(i-p))/F)*T,a+F*C]}function $0(i,a,s,u,p,g,x){var w=i-s,T=a-u,C=(x?g:-g)/nu(w*w+T*T),R=C*T,j=-C*w,F=i+R,$=a+j,it=s+R,G=u+j,V=(F+it)/2,X=($+G)/2,pt=it-F,ut=G-$,ht=pt*pt+ut*ut,vt=p-g,kt=F*G-it*$,ee=(ut<0?-1:1)*nu(uv(0,vt*vt*ht-kt*kt)),me=(kt*ut-pt*ee)/ht,Vt=(-kt*pt-ut*ee)/ht,jt=(kt*ut+pt*ee)/ht,$t=(-kt*pt+ut*ee)/ht,qt=me-V,Et=Vt-X,Ft=jt-V,Xt=$t-X;return qt*qt+Et*Et>Ft*Ft+Xt*Xt&&(me=jt,Vt=$t),{cx:me,cy:Vt,x01:-R,y01:-j,x11:me*(p/vt-1),y11:Vt*(p/vt-1)}}function _v(){var i=dv,a=fv,s=nn(0),u=null,p=pv,g=gv,x=yv,w=null;function T(){var C,R,j=+i.apply(this,arguments),F=+a.apply(this,arguments),$=p.apply(this,arguments)-j0,it=g.apply(this,arguments)-j0,G=Wy(it-$),V=it>$;if(w||(w=C=gs()),F<j&&(R=F,F=j,j=R),F>pa)if(G>uc-pa)w.moveTo(F*Jc($),F*ns($)),w.arc(0,0,F,$,it,!V),j>pa&&(w.moveTo(j*Jc(it),j*ns(it)),w.arc(0,0,j,it,$,V));else{var X,pt,ut=$,ht=it,vt=$,kt=it,ee=G,me=G,Vt=x.apply(this,arguments)/2,jt=Vt>pa&&(u?+u.apply(this,arguments):nu(j*j+F*F)),$t=h2(Wy(F-j)/2,+s.apply(this,arguments)),qt=$t,Et=$t;if(jt>pa){var Ft=Gy(jt/j*ns(Vt)),Xt=Gy(jt/F*ns(Vt));(ee-=2*Ft)>pa?(vt+=Ft*=V?1:-1,kt-=Ft):(ee=0,vt=kt=($+it)/2),(me-=2*Xt)>pa?(ut+=Xt*=V?1:-1,ht-=Xt):(me=0,ut=ht=($+it)/2)}var oe=F*Jc(ut),Ae=F*ns(ut),He=j*Jc(kt),Xe=j*ns(kt);if($t>pa){var gr,Ke=F*Jc(ht),Hr=F*ns(ht),Wr=j*Jc(vt),Or=j*ns(vt);if(G<lc&&(gr=mv(oe,Ae,Wr,Or,Ke,Hr,He,Xe))){var Pr=oe-gr[0],Sn=Ae-gr[1],cn=Ke-gr[0],Ya=Hr-gr[1],dc=1/ns(hv((Pr*cn+Sn*Ya)/(nu(Pr*Pr+Sn*Sn)*nu(cn*cn+Ya*Ya)))/2),Ao=nu(gr[0]*gr[0]+gr[1]*gr[1]);qt=h2($t,(j-Ao)/(dc-1)),Et=h2($t,(F-Ao)/(dc+1))}}me>pa?Et>pa?(X=$0(Wr,Or,oe,Ae,F,Et,V),pt=$0(Ke,Hr,He,Xe,F,Et,V),w.moveTo(X.cx+X.x01,X.cy+X.y01),Et<$t?w.arc(X.cx,X.cy,Et,fa(X.y01,X.x01),fa(pt.y01,pt.x01),!V):(w.arc(X.cx,X.cy,Et,fa(X.y01,X.x01),fa(X.y11,X.x11),!V),w.arc(0,0,F,fa(X.cy+X.y11,X.cx+X.x11),fa(pt.cy+pt.y11,pt.cx+pt.x11),!V),w.arc(pt.cx,pt.cy,Et,fa(pt.y11,pt.x11),fa(pt.y01,pt.x01),!V))):(w.moveTo(oe,Ae),w.arc(0,0,F,ut,ht,!V)):w.moveTo(oe,Ae),j>pa&&ee>pa?qt>pa?(X=$0(He,Xe,Ke,Hr,j,-qt,V),pt=$0(oe,Ae,Wr,Or,j,-qt,V),w.lineTo(X.cx+X.x01,X.cy+X.y01),qt<$t?w.arc(X.cx,X.cy,qt,fa(X.y01,X.x01),fa(pt.y01,pt.x01),!V):(w.arc(X.cx,X.cy,qt,fa(X.y01,X.x01),fa(X.y11,X.x11),!V),w.arc(0,0,j,fa(X.cy+X.y11,X.cx+X.x11),fa(pt.cy+pt.y11,pt.cx+pt.x11),V),w.arc(pt.cx,pt.cy,qt,fa(pt.y11,pt.x11),fa(pt.y01,pt.x01),!V))):w.arc(0,0,j,kt,vt,V):w.lineTo(He,Xe)}else w.moveTo(0,0);if(w.closePath(),C)return w=null,C+""||null}return T.centroid=function(){var C=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2,R=(+p.apply(this,arguments)+ +g.apply(this,arguments))/2-lc/2;return[Jc(R)*C,ns(R)*C]},T.innerRadius=function(C){return arguments.length?(i=typeof C=="function"?C:nn(+C),T):i},T.outerRadius=function(C){return arguments.length?(a=typeof C=="function"?C:nn(+C),T):a},T.cornerRadius=function(C){return arguments.length?(s=typeof C=="function"?C:nn(+C),T):s},T.padRadius=function(C){return arguments.length?(u=C==null?null:typeof C=="function"?C:nn(+C),T):u},T.startAngle=function(C){return arguments.length?(p=typeof C=="function"?C:nn(+C),T):p},T.endAngle=function(C){return arguments.length?(g=typeof C=="function"?C:nn(+C),T):g},T.padAngle=function(C){return arguments.length?(x=typeof C=="function"?C:nn(+C),T):x},T.context=function(C){return arguments.length?(w=C==null?null:C,T):w},T}var bv=Array.prototype.slice;function H0(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function Vy(i){this._context=i}function q0(i){return new Vy(i)}function d2(i){return i[0]}function f2(i){return i[1]}function p2(i,a){var s=nn(!0),u=null,p=q0,g=null;function x(w){var T,C,R,j=(w=H0(w)).length,F=!1;for(u==null&&(g=p(R=gs())),T=0;T<=j;++T)!(T<j&&s(C=w[T],T,w))===F&&((F=!F)?g.lineStart():g.lineEnd()),F&&g.point(+i(C,T,w),+a(C,T,w));if(R)return g=null,R+""||null}return i=typeof i=="function"?i:i===void 0?d2:nn(i),a=typeof a=="function"?a:a===void 0?f2:nn(a),x.x=function(w){return arguments.length?(i=typeof w=="function"?w:nn(+w),x):i},x.y=function(w){return arguments.length?(a=typeof w=="function"?w:nn(+w),x):a},x.defined=function(w){return arguments.length?(s=typeof w=="function"?w:nn(!!w),x):s},x.curve=function(w){return arguments.length?(p=w,u!=null&&(g=p(u)),x):p},x.context=function(w){return arguments.length?(w==null?u=g=null:g=p(u=w),x):u},x}function Zy(i,a,s){var u=null,p=nn(!0),g=null,x=q0,w=null;function T(R){var j,F,$,it,G,V=(R=H0(R)).length,X=!1,pt=new Array(V),ut=new Array(V);for(g==null&&(w=x(G=gs())),j=0;j<=V;++j){if(!(j<V&&p(it=R[j],j,R))===X)if(X=!X)F=j,w.areaStart(),w.lineStart();else{for(w.lineEnd(),w.lineStart(),$=j-1;$>=F;--$)w.point(pt[$],ut[$]);w.lineEnd(),w.areaEnd()}X&&(pt[j]=+i(it,j,R),ut[j]=+a(it,j,R),w.point(u?+u(it,j,R):pt[j],s?+s(it,j,R):ut[j]))}if(G)return w=null,G+""||null}function C(){return p2().defined(p).curve(x).context(g)}return i=typeof i=="function"?i:i===void 0?d2:nn(+i),a=typeof a=="function"?a:nn(a===void 0?0:+a),s=typeof s=="function"?s:s===void 0?f2:nn(+s),T.x=function(R){return arguments.length?(i=typeof R=="function"?R:nn(+R),u=null,T):i},T.x0=function(R){return arguments.length?(i=typeof R=="function"?R:nn(+R),T):i},T.x1=function(R){return arguments.length?(u=R==null?null:typeof R=="function"?R:nn(+R),T):u},T.y=function(R){return arguments.length?(a=typeof R=="function"?R:nn(+R),s=null,T):a},T.y0=function(R){return arguments.length?(a=typeof R=="function"?R:nn(+R),T):a},T.y1=function(R){return arguments.length?(s=R==null?null:typeof R=="function"?R:nn(+R),T):s},T.lineX0=T.lineY0=function(){return C().x(i).y(a)},T.lineY1=function(){return C().x(i).y(s)},T.lineX1=function(){return C().x(u).y(a)},T.defined=function(R){return arguments.length?(p=typeof R=="function"?R:nn(!!R),T):p},T.curve=function(R){return arguments.length?(x=R,g!=null&&(w=x(g)),T):x},T.context=function(R){return arguments.length?(R==null?g=w=null:w=x(g=R),T):g},T}function vv(i,a){return a<i?-1:a>i?1:a>=i?0:NaN}function xv(i){return i}function wv(){var i=xv,a=vv,s=null,u=nn(0),p=nn(uc),g=nn(0);function x(w){var T,C,R,j,F,$=(w=H0(w)).length,it=0,G=new Array($),V=new Array($),X=+u.apply(this,arguments),pt=Math.min(uc,Math.max(-uc,p.apply(this,arguments)-X)),ut=Math.min(Math.abs(pt)/$,g.apply(this,arguments)),ht=ut*(pt<0?-1:1);for(T=0;T<$;++T)(F=V[G[T]=T]=+i(w[T],T,w))>0&&(it+=F);for(a!=null?G.sort(function(vt,kt){return a(V[vt],V[kt])}):s!=null&&G.sort(function(vt,kt){return s(w[vt],w[kt])}),T=0,R=it?(pt-$*ht)/it:0;T<$;++T,X=j)C=G[T],j=X+((F=V[C])>0?F*R:0)+ht,V[C]={data:w[C],index:T,value:F,startAngle:X,endAngle:j,padAngle:ut};return V}return x.value=function(w){return arguments.length?(i=typeof w=="function"?w:nn(+w),x):i},x.sortValues=function(w){return arguments.length?(a=w,s=null,x):a},x.sort=function(w){return arguments.length?(s=w,a=null,x):s},x.startAngle=function(w){return arguments.length?(u=typeof w=="function"?w:nn(+w),x):u},x.endAngle=function(w){return arguments.length?(p=typeof w=="function"?w:nn(+w),x):p},x.padAngle=function(w){return arguments.length?(g=typeof w=="function"?w:nn(+w),x):g},x}Vy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;default:this._context.lineTo(i,a)}}};var Xy=g2(q0);function Ky(i){this._curve=i}function g2(i){function a(s){return new Ky(i(s))}return a._curve=i,a}function $h(i){var a=i.curve;return i.angle=i.x,delete i.x,i.radius=i.y,delete i.y,i.curve=function(s){return arguments.length?a(g2(s)):a()._curve},i}function Jy(){return $h(p2().curve(Xy))}function Qy(){var i=Zy().curve(Xy),a=i.curve,s=i.lineX0,u=i.lineX1,p=i.lineY0,g=i.lineY1;return i.angle=i.x,delete i.x,i.startAngle=i.x0,delete i.x0,i.endAngle=i.x1,delete i.x1,i.radius=i.y,delete i.y,i.innerRadius=i.y0,delete i.y0,i.outerRadius=i.y1,delete i.y1,i.lineStartAngle=function(){return $h(s())},delete i.lineX0,i.lineEndAngle=function(){return $h(u())},delete i.lineX1,i.lineInnerRadius=function(){return $h(p())},delete i.lineY0,i.lineOuterRadius=function(){return $h(g())},delete i.lineY1,i.curve=function(x){return arguments.length?a(g2(x)):a()._curve},i}function Hh(i,a){return[(a=+a)*Math.cos(i-=Math.PI/2),a*Math.sin(i)]}function kv(i){return i.source}function Ev(i){return i.target}function y2(i){var a=kv,s=Ev,u=d2,p=f2,g=null;function x(){var w,T=bv.call(arguments),C=a.apply(this,T),R=s.apply(this,T);if(g||(g=w=gs()),i(g,+u.apply(this,(T[0]=C,T)),+p.apply(this,T),+u.apply(this,(T[0]=R,T)),+p.apply(this,T)),w)return g=null,w+""||null}return x.source=function(w){return arguments.length?(a=w,x):a},x.target=function(w){return arguments.length?(s=w,x):s},x.x=function(w){return arguments.length?(u=typeof w=="function"?w:nn(+w),x):u},x.y=function(w){return arguments.length?(p=typeof w=="function"?w:nn(+w),x):p},x.context=function(w){return arguments.length?(g=w==null?null:w,x):g},x}function Tv(i,a,s,u,p){i.moveTo(a,s),i.bezierCurveTo(a=(a+u)/2,s,a,p,u,p)}function Sv(i,a,s,u,p){i.moveTo(a,s),i.bezierCurveTo(a,s=(s+p)/2,u,s,u,p)}function Av(i,a,s,u,p){var g=Hh(a,s),x=Hh(a,s=(s+p)/2),w=Hh(u,s),T=Hh(u,p);i.moveTo(g[0],g[1]),i.bezierCurveTo(x[0],x[1],w[0],w[1],T[0],T[1])}function Cv(){return y2(Tv)}function Nv(){return y2(Sv)}function Iv(){var i=y2(Av);return i.angle=i.x,delete i.x,i.radius=i.y,delete i.y,i}Ky.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(i,a){this._curve.point(a*Math.sin(i),a*-Math.cos(i))}};const m2={draw:function(i,a){var s=Math.sqrt(a/lc);i.moveTo(s,0),i.arc(0,0,s,0,uc)}},tm={draw:function(i,a){var s=Math.sqrt(a/5)/2;i.moveTo(-3*s,-s),i.lineTo(-s,-s),i.lineTo(-s,-3*s),i.lineTo(s,-3*s),i.lineTo(s,-s),i.lineTo(3*s,-s),i.lineTo(3*s,s),i.lineTo(s,s),i.lineTo(s,3*s),i.lineTo(-s,3*s),i.lineTo(-s,s),i.lineTo(-3*s,s),i.closePath()}};var em=Math.sqrt(1/3),Lv=2*em;const rm={draw:function(i,a){var s=Math.sqrt(a/Lv),u=s*em;i.moveTo(0,-s),i.lineTo(u,0),i.lineTo(0,s),i.lineTo(-u,0),i.closePath()}};var nm=Math.sin(lc/10)/Math.sin(7*lc/10),Mv=Math.sin(uc/10)*nm,Ov=-Math.cos(uc/10)*nm;const im={draw:function(i,a){var s=Math.sqrt(.8908130915292852*a),u=Mv*s,p=Ov*s;i.moveTo(0,-s),i.lineTo(u,p);for(var g=1;g<5;++g){var x=uc*g/5,w=Math.cos(x),T=Math.sin(x);i.lineTo(T*s,-w*s),i.lineTo(w*u-T*p,T*u+w*p)}i.closePath()}},am={draw:function(i,a){var s=Math.sqrt(a),u=-s/2;i.rect(u,u,s,s)}};var _2=Math.sqrt(3);const om={draw:function(i,a){var s=-Math.sqrt(a/(3*_2));i.moveTo(0,2*s),i.lineTo(-_2*s,-s),i.lineTo(_2*s,-s),i.closePath()}};var co=-.5,lo=Math.sqrt(3)/2,b2=1/Math.sqrt(12),Dv=3*(b2/2+1);const sm={draw:function(i,a){var s=Math.sqrt(a/Dv),u=s/2,p=s*b2,g=u,x=s*b2+s,w=-g,T=x;i.moveTo(u,p),i.lineTo(g,x),i.lineTo(w,T),i.lineTo(co*u-lo*p,lo*u+co*p),i.lineTo(co*g-lo*x,lo*g+co*x),i.lineTo(co*w-lo*T,lo*w+co*T),i.lineTo(co*u+lo*p,co*p-lo*u),i.lineTo(co*g+lo*x,co*x-lo*g),i.lineTo(co*w+lo*T,co*T-lo*w),i.closePath()}};var Rv=[m2,tm,rm,am,im,om,sm];function Bv(i,a){var s=null;function u(){var p;if(s||(s=p=gs()),i.apply(this,arguments).draw(s,+a.apply(this,arguments)),p)return s=null,p+""||null}return i=typeof i=="function"?i:nn(i||m2),a=typeof a=="function"?a:nn(a===void 0?64:+a),u.type=function(p){return arguments.length?(i=typeof p=="function"?p:nn(p),u):i},u.size=function(p){return arguments.length?(a=typeof p=="function"?p:nn(+p),u):a},u.context=function(p){return arguments.length?(s=p==null?null:p,u):s},u}function hc(){}function W0(i,a,s){i._context.bezierCurveTo((2*i._x0+i._x1)/3,(2*i._y0+i._y1)/3,(i._x0+2*i._x1)/3,(i._y0+2*i._y1)/3,(i._x0+4*i._x1+a)/6,(i._y0+4*i._y1+s)/6)}function G0(i){this._context=i}function Fv(i){return new G0(i)}function cm(i){this._context=i}function Pv(i){return new cm(i)}function lm(i){this._context=i}function zv(i){return new lm(i)}G0.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:W0(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);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:W0(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}},cm.prototype={areaStart:hc,areaEnd:hc,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)}},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._x2=i,this._y2=a;break;case 1:this._point=2,this._x3=i,this._y3=a;break;case 2:this._point=3,this._x4=i,this._y4=a,this._context.moveTo((this._x0+4*this._x1+i)/6,(this._y0+4*this._y1+a)/6);break;default:W0(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}},lm.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(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var s=(this._x0+4*this._x1+i)/6,u=(this._y0+4*this._y1+a)/6;this._line?this._context.lineTo(s,u):this._context.moveTo(s,u);break;case 3:this._point=4;default:W0(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}};class um{constructor(a,s){this._context=a,this._x=s}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(a,s){switch(a=+a,s=+s,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,s):this._context.moveTo(a,s);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+a)/2,this._y0,this._x0,s,a,s):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+s)/2,a,this._y0,a,s)}this._x0=a,this._y0=s}}function Uv(i){return new um(i,!0)}function Yv(i){return new um(i,!1)}function hm(i,a){this._basis=new G0(i),this._beta=a}hm.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var i=this._x,a=this._y,s=i.length-1;if(s>0)for(var u,p=i[0],g=a[0],x=i[s]-p,w=a[s]-g,T=-1;++T<=s;)u=T/s,this._basis.point(this._beta*i[T]+(1-this._beta)*(p+u*x),this._beta*a[T]+(1-this._beta)*(g+u*w));this._x=this._y=null,this._basis.lineEnd()},point:function(i,a){this._x.push(+i),this._y.push(+a)}};const jv=function i(a){function s(u){return a===1?new G0(u):new hm(u,a)}return s.beta=function(u){return i(+u)},s}(.85);function V0(i,a,s){i._context.bezierCurveTo(i._x1+i._k*(i._x2-i._x0),i._y1+i._k*(i._y2-i._y0),i._x2+i._k*(i._x1-a),i._y2+i._k*(i._y1-s),i._x2,i._y2)}function v2(i,a){this._context=i,this._k=(1-a)/6}v2.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:V0(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2,this._x1=i,this._y1=a;break;case 2:this._point=3;default:V0(this,i,a)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const $v=function i(a){function s(u){return new v2(u,a)}return s.tension=function(u){return i(+u)},s}(0);function x2(i,a){this._context=i,this._k=(1-a)/6}x2.prototype={areaStart:hc,areaEnd:hc,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)}},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._x3=i,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=i,this._y4=a);break;case 2:this._point=3,this._x5=i,this._y5=a;break;default:V0(this,i,a)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const Hv=function i(a){function s(u){return new x2(u,a)}return s.tension=function(u){return i(+u)},s}(0);function w2(i,a){this._context=i,this._k=(1-a)/6}w2.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(i,a){switch(i=+i,a=+a,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:V0(this,i,a)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const qv=function i(a){function s(u){return new w2(u,a)}return s.tension=function(u){return i(+u)},s}(0);function k2(i,a,s){var u=i._x1,p=i._y1,g=i._x2,x=i._y2;if(i._l01_a>pa){var w=2*i._l01_2a+3*i._l01_a*i._l12_a+i._l12_2a,T=3*i._l01_a*(i._l01_a+i._l12_a);u=(u*w-i._x0*i._l12_2a+i._x2*i._l01_2a)/T,p=(p*w-i._y0*i._l12_2a+i._y2*i._l01_2a)/T}if(i._l23_a>pa){var C=2*i._l23_2a+3*i._l23_a*i._l12_a+i._l12_2a,R=3*i._l23_a*(i._l23_a+i._l12_a);g=(g*C+i._x1*i._l23_2a-a*i._l12_2a)/R,x=(x*C+i._y1*i._l23_2a-s*i._l12_2a)/R}i._context.bezierCurveTo(u,p,g,x,i._x2,i._y2)}function dm(i,a){this._context=i,this._alpha=a}dm.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)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){if(i=+i,a=+a,this._point){var s=this._x2-i,u=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+u*u,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;break;case 2:this._point=3;default:k2(this,i,a)}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=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const Wv=function i(a){function s(u){return a?new dm(u,a):new v2(u,0)}return s.alpha=function(u){return i(+u)},s}(.5);function fm(i,a){this._context=i,this._alpha=a}fm.prototype={areaStart:hc,areaEnd:hc,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)}},point:function(i,a){if(i=+i,a=+a,this._point){var s=this._x2-i,u=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+u*u,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=i,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=i,this._y4=a);break;case 2:this._point=3,this._x5=i,this._y5=a;break;default:k2(this,i,a)}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=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const Gv=function i(a){function s(u){return a?new fm(u,a):new x2(u,0)}return s.alpha=function(u){return i(+u)},s}(.5);function pm(i,a){this._context=i,this._alpha=a}pm.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(i,a){if(i=+i,a=+a,this._point){var s=this._x2-i,u=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+u*u,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:k2(this,i,a)}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=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const Vv=function i(a){function s(u){return a?new pm(u,a):new w2(u,0)}return s.alpha=function(u){return i(+u)},s}(.5);function gm(i){this._context=i}function Zv(i){return new gm(i)}function ym(i){return i<0?-1:1}function mm(i,a,s){var u=i._x1-i._x0,p=a-i._x1,g=(i._y1-i._y0)/(u||p<0&&-0),x=(s-i._y1)/(p||u<0&&-0),w=(g*p+x*u)/(u+p);return(ym(g)+ym(x))*Math.min(Math.abs(g),Math.abs(x),.5*Math.abs(w))||0}function _m(i,a){var s=i._x1-i._x0;return s?(3*(i._y1-i._y0)/s-a)/2:a}function E2(i,a,s){var u=i._x0,p=i._y0,g=i._x1,x=i._y1,w=(g-u)/3;i._context.bezierCurveTo(u+w,p+w*a,g-w,x-w*s,g,x)}function Z0(i){this._context=i}function bm(i){this._context=new vm(i)}function vm(i){this._context=i}function Xv(i){return new Z0(i)}function Kv(i){return new bm(i)}function xm(i){this._context=i}function wm(i){var a,s,u=i.length-1,p=new Array(u),g=new Array(u),x=new Array(u);for(p[0]=0,g[0]=2,x[0]=i[0]+2*i[1],a=1;a<u-1;++a)p[a]=1,g[a]=4,x[a]=4*i[a]+2*i[a+1];for(p[u-1]=2,g[u-1]=7,x[u-1]=8*i[u-1]+i[u],a=1;a<u;++a)s=p[a]/g[a-1],g[a]-=s,x[a]-=s*x[a-1];for(p[u-1]=x[u-1]/g[u-1],a=u-2;a>=0;--a)p[a]=(x[a]-p[a+1])/g[a];for(g[u-1]=(i[u]+p[u-1])/2,a=0;a<u-1;++a)g[a]=2*i[a+1]-p[a+1];return[p,g]}function Jv(i){return new xm(i)}function X0(i,a){this._context=i,this._t=a}function Qv(i){return new X0(i,.5)}function t5(i){return new X0(i,0)}function e5(i){return new X0(i,1)}function iu(i,a){if((p=i.length)>1)for(var s,u,p,g=1,x=i[a[0]],w=x.length;g<p;++g)for(u=x,x=i[a[g]],s=0;s<w;++s)x[s][1]+=x[s][0]=isNaN(u[s][1])?u[s][0]:u[s][1]}function au(i){for(var a=i.length,s=new Array(a);--a>=0;)s[a]=a;return s}function r5(i,a){return i[a]}function n5(i){const a=[];return a.key=i,a}function i5(){var i=nn([]),a=au,s=iu,u=r5;function p(g){var x,w,T=Array.from(i.apply(this,arguments),n5),C=T.length,R=-1;for(const j of g)for(x=0,++R;x<C;++x)(T[x][R]=[0,+u(j,T[x].key,R,g)]).data=j;for(x=0,w=H0(a(T));x<C;++x)T[w[x]].index=x;return s(T,w),T}return p.keys=function(g){return arguments.length?(i=typeof g=="function"?g:nn(Array.from(g)),p):i},p.value=function(g){return arguments.length?(u=typeof g=="function"?g:nn(+g),p):u},p.order=function(g){return arguments.length?(a=g==null?au:typeof g=="function"?g:nn(Array.from(g)),p):a},p.offset=function(g){return arguments.length?(s=g==null?iu:g,p):s},p}function a5(i,a){if((u=i.length)>0){for(var s,u,p,g=0,x=i[0].length;g<x;++g){for(p=s=0;s<u;++s)p+=i[s][g][1]||0;if(p)for(s=0;s<u;++s)i[s][g][1]/=p}iu(i,a)}}function o5(i,a){if((w=i.length)>0)for(var s,u,p,g,x,w,T=0,C=i[a[0]].length;T<C;++T)for(g=x=0,s=0;s<w;++s)(p=(u=i[a[s]][T])[1]-u[0])>0?(u[0]=g,u[1]=g+=p):p<0?(u[1]=x,u[0]=x+=p):(u[0]=0,u[1]=p)}function s5(i,a){if((s=i.length)>0){for(var s,u=0,p=i[a[0]],g=p.length;u<g;++u){for(var x=0,w=0;x<s;++x)w+=i[x][u][1]||0;p[u][1]+=p[u][0]=-w/2}iu(i,a)}}function c5(i,a){if((p=i.length)>0&&(u=(s=i[a[0]]).length)>0){for(var s,u,p,g=0,x=1;x<u;++x){for(var w=0,T=0,C=0;w<p;++w){for(var R=i[a[w]],j=R[x][1]||0,F=(j-(R[x-1][1]||0))/2,$=0;$<w;++$){var it=i[a[$]];F+=(it[x][1]||0)-(it[x-1][1]||0)}T+=j,C+=F*j}s[x-1][1]+=s[x-1][0]=g,T&&(g-=C/T)}s[x-1][1]+=s[x-1][0]=g,iu(i,a)}}function km(i){var a=i.map(l5);return au(i).sort(function(s,u){return a[s]-a[u]})}function l5(i){for(var a,s=-1,u=0,p=i.length,g=-1/0;++s<p;)(a=+i[s][1])>g&&(g=a,u=s);return u}function Em(i){var a=i.map(Tm);return au(i).sort(function(s,u){return a[s]-a[u]})}function Tm(i){for(var a,s=0,u=-1,p=i.length;++u<p;)(a=+i[u][1])&&(s+=a);return s}function u5(i){return Em(i).reverse()}function h5(i){var a,s,u=i.length,p=i.map(Tm),g=km(i),x=0,w=0,T=[],C=[];for(a=0;a<u;++a)s=g[a],x<w?(x+=p[s],T.push(s)):(w+=p[s],C.push(s));return C.reverse().concat(T)}function d5(i){return au(i).reverse()}gm.prototype={areaStart:hc,areaEnd:hc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(i,a){i=+i,a=+a,this._point?this._context.lineTo(i,a):(this._point=1,this._context.moveTo(i,a))}},Z0.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:E2(this,this._t0,_m(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){var s=NaN;if(a=+a,(i=+i)!==this._x1||a!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;break;case 2:this._point=3,E2(this,_m(this,s=mm(this,i,a)),s);break;default:E2(this,this._t0,s=mm(this,i,a))}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a,this._t0=s}}},(bm.prototype=Object.create(Z0.prototype)).point=function(i,a){Z0.prototype.point.call(this,a,i)},vm.prototype={moveTo:function(i,a){this._context.moveTo(a,i)},closePath:function(){this._context.closePath()},lineTo:function(i,a){this._context.lineTo(a,i)},bezierCurveTo:function(i,a,s,u,p,g){this._context.bezierCurveTo(a,i,u,s,g,p)}},xm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var i=this._x,a=this._y,s=i.length;if(s)if(this._line?this._context.lineTo(i[0],a[0]):this._context.moveTo(i[0],a[0]),s===2)this._context.lineTo(i[1],a[1]);else for(var u=wm(i),p=wm(a),g=0,x=1;x<s;++g,++x)this._context.bezierCurveTo(u[0][g],p[0][g],u[1][g],p[1][g],i[x],a[x]);(this._line||this._line!==0&&s===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(i,a){this._x.push(+i),this._y.push(+a)}},X0.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,a),this._context.lineTo(i,a);else{var s=this._x*(1-this._t)+i*this._t;this._context.lineTo(s,this._y),this._context.lineTo(s,a)}}this._x=i,this._y=a}};var Sm="%Y-%m-%dT%H:%M:%S.%LZ",f5=Date.prototype.toISOString?function(i){return i.toISOString()}:B0(Sm);const p5=f5;var g5=+new Date("2000-01-01T00:00:00.000Z")?function(i){var a=new Date(i);return isNaN(a)?null:a}:o2(Sm);const y5=g5;function m5(i,a,s){var u=new Sc,p=a;return a==null?(u.restart(i,a,s),u):(u._restart=u.restart,u.restart=function(g,x,w){x=+x,w=w==null?Tc():+w,u._restart(function T(C){C+=p,u._restart(T,p+=x,w),g(C)},x,w)},u.restart(i,a,s),u)}const K0=i=>()=>i;function _5(i,{sourceEvent:a,target:s,transform:u,dispatch:p}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:s,enumerable:!0,configurable:!0},transform:{value:u,enumerable:!0,configurable:!0},_:{value:p}})}function is(i,a,s){this.k=i,this.x=a,this.y=s}is.prototype={constructor:is,scale:function(i){return i===1?this:new is(this.k*i,this.x,this.y)},translate:function(i,a){return i===0&a===0?this:new is(this.k,this.x+this.k*i,this.y+this.k*a)},apply:function(i){return[i[0]*this.k+this.x,i[1]*this.k+this.y]},applyX:function(i){return i*this.k+this.x},applyY:function(i){return i*this.k+this.y},invert:function(i){return[(i[0]-this.x)/this.k,(i[1]-this.y)/this.k]},invertX:function(i){return(i-this.x)/this.k},invertY:function(i){return(i-this.y)/this.k},rescaleX:function(i){return i.copy().domain(i.range().map(this.invertX,this).map(i.invert,i))},rescaleY:function(i){return i.copy().domain(i.range().map(this.invertY,this).map(i.invert,i))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var J0=new is(1,0,0);function Am(i){for(;!i.__zoom;)if(!(i=i.parentNode))return J0;return i.__zoom}function T2(i){i.stopImmediatePropagation()}function qh(i){i.preventDefault(),i.stopImmediatePropagation()}function b5(i){return!(i.ctrlKey&&i.type!=="wheel"||i.button)}function v5(){var i=this;return i instanceof SVGElement?(i=i.ownerSVGElement||i).hasAttribute("viewBox")?[[(i=i.viewBox.baseVal).x,i.y],[i.x+i.width,i.y+i.height]]:[[0,0],[i.width.baseVal.value,i.height.baseVal.value]]:[[0,0],[i.clientWidth,i.clientHeight]]}function Cm(){return this.__zoom||J0}function x5(i){return-i.deltaY*(i.deltaMode===1?.05:i.deltaMode?1:.002)*(i.ctrlKey?10:1)}function w5(){return navigator.maxTouchPoints||"ontouchstart"in this}function k5(i,a,s){var u=i.invertX(a[0][0])-s[0][0],p=i.invertX(a[1][0])-s[1][0],g=i.invertY(a[0][1])-s[0][1],x=i.invertY(a[1][1])-s[1][1];return i.translate(p>u?(u+p)/2:Math.min(0,u)||Math.max(0,p),x>g?(g+x)/2:Math.min(0,g)||Math.max(0,x))}function E5(){var i,a,s,u=b5,p=v5,g=k5,x=x5,w=w5,T=[0,1/0],C=[[-1/0,-1/0],[1/0,1/0]],R=250,j=Wp,F=ln("start","zoom","end"),$=500,it=0,G=10;function V(Et){Et.property("__zoom",Cm).on("wheel.zoom",ee,{passive:!1}).on("mousedown.zoom",me).on("dblclick.zoom",Vt).filter(w).on("touchstart.zoom",jt).on("touchmove.zoom",$t).on("touchend.zoom touchcancel.zoom",qt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function X(Et,Ft){return(Ft=Math.max(T[0],Math.min(T[1],Ft)))===Et.k?Et:new is(Ft,Et.x,Et.y)}function pt(Et,Ft,Xt){var oe=Ft[0]-Xt[0]*Et.k,Ae=Ft[1]-Xt[1]*Et.k;return oe===Et.x&&Ae===Et.y?Et:new is(Et.k,oe,Ae)}function ut(Et){return[(+Et[0][0]+ +Et[1][0])/2,(+Et[0][1]+ +Et[1][1])/2]}function ht(Et,Ft,Xt,oe){Et.on("start.zoom",function(){vt(this,arguments).event(oe).start()}).on("interrupt.zoom end.zoom",function(){vt(this,arguments).event(oe).end()}).tween("zoom",function(){var Ae=this,He=arguments,Xe=vt(Ae,He).event(oe),gr=p.apply(Ae,He),Ke=Xt==null?ut(gr):typeof Xt=="function"?Xt.apply(Ae,He):Xt,Hr=Math.max(gr[1][0]-gr[0][0],gr[1][1]-gr[0][1]),Wr=Ae.__zoom,Or=typeof Ft=="function"?Ft.apply(Ae,He):Ft,Pr=j(Wr.invert(Ke).concat(Hr/Wr.k),Or.invert(Ke).concat(Hr/Or.k));return function(Sn){if(Sn===1)Sn=Or;else{var cn=Pr(Sn),Ya=Hr/cn[2];Sn=new is(Ya,Ke[0]-cn[0]*Ya,Ke[1]-cn[1]*Ya)}Xe.zoom(null,Sn)}})}function vt(Et,Ft,Xt){return!Xt&&Et.__zooming||new kt(Et,Ft)}function kt(Et,Ft){this.that=Et,this.args=Ft,this.active=0,this.sourceEvent=null,this.extent=p.apply(Et,Ft),this.taps=0}function ee(Et,...Ft){if(u.apply(this,arguments)){var Xt=vt(this,Ft).event(Et),oe=this.__zoom,Ae=Math.max(T[0],Math.min(T[1],oe.k*Math.pow(2,x.apply(this,arguments)))),He=ua(Et);if(Xt.wheel)Xt.mouse[0][0]===He[0]&&Xt.mouse[0][1]===He[1]||(Xt.mouse[1]=oe.invert(Xt.mouse[0]=He)),clearTimeout(Xt.wheel);else{if(oe.k===Ae)return;Xt.mouse=[He,oe.invert(He)],eo(this),Xt.start()}qh(Et),Xt.wheel=setTimeout(Xe,150),Xt.zoom("mouse",g(pt(X(oe,Ae),Xt.mouse[0],Xt.mouse[1]),Xt.extent,C))}function Xe(){Xt.wheel=null,Xt.end()}}function me(Et,...Ft){if(!s&&u.apply(this,arguments)){var Xt=Et.currentTarget,oe=vt(this,Ft,!0).event(Et),Ae=ki(Et.view).on("mousemove.zoom",Ke,!0).on("mouseup.zoom",Hr,!0),He=ua(Et,Xt),Xe=Et.clientX,gr=Et.clientY;ho(Et.view),T2(Et),oe.mouse=[He,this.__zoom.invert(He)],eo(this),oe.start()}function Ke(Wr){if(qh(Wr),!oe.moved){var Or=Wr.clientX-Xe,Pr=Wr.clientY-gr;oe.moved=Or*Or+Pr*Pr>it}oe.event(Wr).zoom("mouse",g(pt(oe.that.__zoom,oe.mouse[0]=ua(Wr,Xt),oe.mouse[1]),oe.extent,C))}function Hr(Wr){Ae.on("mousemove.zoom mouseup.zoom",null),os(Wr.view,oe.moved),qh(Wr),oe.event(Wr).end()}}function Vt(Et,...Ft){if(u.apply(this,arguments)){var Xt=this.__zoom,oe=ua(Et.changedTouches?Et.changedTouches[0]:Et,this),Ae=Xt.invert(oe),He=Xt.k*(Et.shiftKey?.5:2),Xe=g(pt(X(Xt,He),oe,Ae),p.apply(this,Ft),C);qh(Et),R>0?ki(this).transition().duration(R).call(ht,Xe,oe,Et):ki(this).call(V.transform,Xe,oe,Et)}}function jt(Et,...Ft){if(u.apply(this,arguments)){var Xt,oe,Ae,He,Xe=Et.touches,gr=Xe.length,Ke=vt(this,Ft,Et.changedTouches.length===gr).event(Et);for(T2(Et),oe=0;oe<gr;++oe)He=[He=ua(Ae=Xe[oe],this),this.__zoom.invert(He),Ae.identifier],Ke.touch0?Ke.touch1||Ke.touch0[2]===He[2]||(Ke.touch1=He,Ke.taps=0):(Ke.touch0=He,Xt=!0,Ke.taps=1+!!i);i&&(i=clearTimeout(i)),Xt&&(Ke.taps<2&&(a=He[0],i=setTimeout(function(){i=null},$)),eo(this),Ke.start())}}function $t(Et,...Ft){if(this.__zooming){var Xt,oe,Ae,He,Xe=vt(this,Ft).event(Et),gr=Et.changedTouches,Ke=gr.length;for(qh(Et),Xt=0;Xt<Ke;++Xt)Ae=ua(oe=gr[Xt],this),Xe.touch0&&Xe.touch0[2]===oe.identifier?Xe.touch0[0]=Ae:Xe.touch1&&Xe.touch1[2]===oe.identifier&&(Xe.touch1[0]=Ae);if(oe=Xe.that.__zoom,Xe.touch1){var Hr=Xe.touch0[0],Wr=Xe.touch0[1],Or=Xe.touch1[0],Pr=Xe.touch1[1],Sn=(Sn=Or[0]-Hr[0])*Sn+(Sn=Or[1]-Hr[1])*Sn,cn=(cn=Pr[0]-Wr[0])*cn+(cn=Pr[1]-Wr[1])*cn;oe=X(oe,Math.sqrt(Sn/cn)),Ae=[(Hr[0]+Or[0])/2,(Hr[1]+Or[1])/2],He=[(Wr[0]+Pr[0])/2,(Wr[1]+Pr[1])/2]}else{if(!Xe.touch0)return;Ae=Xe.touch0[0],He=Xe.touch0[1]}Xe.zoom("touch",g(pt(oe,Ae,He),Xe.extent,C))}}function qt(Et,...Ft){if(this.__zooming){var Xt,oe,Ae=vt(this,Ft).event(Et),He=Et.changedTouches,Xe=He.length;for(T2(Et),s&&clearTimeout(s),s=setTimeout(function(){s=null},$),Xt=0;Xt<Xe;++Xt)oe=He[Xt],Ae.touch0&&Ae.touch0[2]===oe.identifier?delete Ae.touch0:Ae.touch1&&Ae.touch1[2]===oe.identifier&&delete Ae.touch1;if(Ae.touch1&&!Ae.touch0&&(Ae.touch0=Ae.touch1,delete Ae.touch1),Ae.touch0)Ae.touch0[1]=this.__zoom.invert(Ae.touch0[0]);else if(Ae.end(),Ae.taps===2&&(oe=ua(oe,this),Math.hypot(a[0]-oe[0],a[1]-oe[1])<G)){var gr=ki(this).on("dblclick.zoom");gr&&gr.apply(this,arguments)}}}return V.transform=function(Et,Ft,Xt,oe){var Ae=Et.selection?Et.selection():Et;Ae.property("__zoom",Cm),Et!==Ae?ht(Et,Ft,Xt,oe):Ae.interrupt().each(function(){vt(this,arguments).event(oe).start().zoom(null,typeof Ft=="function"?Ft.apply(this,arguments):Ft).end()})},V.scaleBy=function(Et,Ft,Xt,oe){V.scaleTo(Et,function(){var Ae=this.__zoom.k,He=typeof Ft=="function"?Ft.apply(this,arguments):Ft;return Ae*He},Xt,oe)},V.scaleTo=function(Et,Ft,Xt,oe){V.transform(Et,function(){var Ae=p.apply(this,arguments),He=this.__zoom,Xe=Xt==null?ut(Ae):typeof Xt=="function"?Xt.apply(this,arguments):Xt,gr=He.invert(Xe),Ke=typeof Ft=="function"?Ft.apply(this,arguments):Ft;return g(pt(X(He,Ke),Xe,gr),Ae,C)},Xt,oe)},V.translateBy=function(Et,Ft,Xt,oe){V.transform(Et,function(){return g(this.__zoom.translate(typeof Ft=="function"?Ft.apply(this,arguments):Ft,typeof Xt=="function"?Xt.apply(this,arguments):Xt),p.apply(this,arguments),C)},null,oe)},V.translateTo=function(Et,Ft,Xt,oe,Ae){V.transform(Et,function(){var He=p.apply(this,arguments),Xe=this.__zoom,gr=oe==null?ut(He):typeof oe=="function"?oe.apply(this,arguments):oe;return g(J0.translate(gr[0],gr[1]).scale(Xe.k).translate(typeof Ft=="function"?-Ft.apply(this,arguments):-Ft,typeof Xt=="function"?-Xt.apply(this,arguments):-Xt),He,C)},oe,Ae)},kt.prototype={event:function(Et){return Et&&(this.sourceEvent=Et),this},start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Et,Ft){return this.mouse&&Et!=="mouse"&&(this.mouse[1]=Ft.invert(this.mouse[0])),this.touch0&&Et!=="touch"&&(this.touch0[1]=Ft.invert(this.touch0[0])),this.touch1&&Et!=="touch"&&(this.touch1[1]=Ft.invert(this.touch1[0])),this.that.__zoom=Ft,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Et){var Ft=ki(this.that).datum();F.call(Et,this.that,new _5(Et,{sourceEvent:this.sourceEvent,target:V,type:Et,transform:this.that.__zoom,dispatch:F}),Ft)}},V.wheelDelta=function(Et){return arguments.length?(x=typeof Et=="function"?Et:K0(+Et),V):x},V.filter=function(Et){return arguments.length?(u=typeof Et=="function"?Et:K0(!!Et),V):u},V.touchable=function(Et){return arguments.length?(w=typeof Et=="function"?Et:K0(!!Et),V):w},V.extent=function(Et){return arguments.length?(p=typeof Et=="function"?Et:K0([[+Et[0][0],+Et[0][1]],[+Et[1][0],+Et[1][1]]]),V):p},V.scaleExtent=function(Et){return arguments.length?(T[0]=+Et[0],T[1]=+Et[1],V):[T[0],T[1]]},V.translateExtent=function(Et){return arguments.length?(C[0][0]=+Et[0][0],C[1][0]=+Et[1][0],C[0][1]=+Et[0][1],C[1][1]=+Et[1][1],V):[[C[0][0],C[0][1]],[C[1][0],C[1][1]]]},V.constrain=function(Et){return arguments.length?(g=Et,V):g},V.duration=function(Et){return arguments.length?(R=+Et,V):R},V.interpolate=function(Et){return arguments.length?(j=Et,V):j},V.on=function(){var Et=F.on.apply(F,arguments);return Et===F?V:Et},V.clickDistance=function(Et){return arguments.length?(it=(Et=+Et)*Et,V):Math.sqrt(it)},V.tapDistance=function(Et){return arguments.length?(G=+Et,V):G},V}Am.prototype=is.prototype}},e={};function n(d){var b=e[d];if(b!==void 0)return b.exports;var h=e[d]={id:d,loaded:!1,exports:{}};return t[d].call(h.exports,h,h.exports,n),h.loaded=!0,h.exports}n.c=e,n.n=d=>{var b=d&&d.__esModule?()=>d.default:()=>d;return n.d(b,{a:b}),b},n.d=(d,b)=>{for(var h in b)n.o(b,h)&&!n.o(d,h)&&Object.defineProperty(d,h,{enumerable:!0,get:b[h]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(d,b)=>Object.prototype.hasOwnProperty.call(d,b),n.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},n.nmd=d=>(d.paths=[],d.children||(d.children=[]),d);var r=n(n.s=6359).Z;const defaultState={code:`graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
`,mermaid:JSON.stringify({theme:"default"},null,2),updateEditor:!1,autoSync:!0,updateDiagram:!0},urlParseFailedState=`graph TD
A[Loading URL failed. We can try to figure out why.] -->|Decode JSON| B(Please check the console to see the JSON and error details.)
B --> C{Is the JSON correct?}
C -->|Yes| D(Please Click here to Raise an issue in github.<br/>Including the broken link in the issue <br/> will speed up the fix.)
C -->|No| E{Did someone <br/>send you this link?}
E -->|Yes| F[Ask them to send <br/>you the complete link]
E -->|No| G{Did you copy <br/> the complete URL?}
G --> |Yes| D
G --> |"No :("| H(Try using the Timeline tab in History <br/>from same browser you used to create the diagram.)
click D href "https://github.com/mermaid-js/mermaid-live-editor/issues/new?assignees=&labels=bug&template=bug_report.md&title=Broken%20link" "Raise issue"`,inputStateStore=persist(writable(defaultState),localStorage(),"codeStore"),stateStore=derived([inputStateStore],([d])=>{const b={...d,serialized:"",errorMarkers:[],error:void 0};try{b.serialized=serializeState(d),r.parse(d.code),JSON.parse(d.mermaid)}catch(h){if(b.error=h,console.error(h),h.hash)try{const m={severity:8,startLineNumber:h.hash.loc.first_line,startColumn:h.hash.loc.first_column,endLineNumber:h.hash.loc.last_line,endColumn:h.hash.loc.last_column+1,message:h.str};b.errorMarkers=[m]}catch(m){console.error("Error without line helper",m)}}return b}),loadState=d=>{let b;console.log(`Loading '${d}'`);try{b=deserializeState(d);const h=typeof b.mermaid=="string"?JSON.parse(b.mermaid):b.mermaid;h.securityLevel&&h.securityLevel!=="strict"&&confirm(`Removing "securityLevel":"${h.securityLevel}" from the config for safety.
Click Cancel if you trust the source of this Diagram.`)&&delete h.securityLevel,b.mermaid=JSON.stringify(h,null,2)}catch(h){b=get_store_value(inputStateStore),d&&(console.error("Init error",h),b.code=urlParseFailedState,b.mermaid=defaultState.mermaid)}updateCodeStore({...b,updateEditor:!0})},updateCodeStore=d=>{inputStateStore.update(b=>({...b,...d}))};let prompted=!1;const updateCode=(d,{updateEditor:b,updateDiagram:h=!1,resetPanZoom:m=!1})=>{if(saveStatistics(d),(d.match(/\n/g)||"").length+1>50&&!prompted&&get_store_value(stateStore).autoSync){const v=confirm(`Long diagram detected. Turn off Auto Sync? Use ${cmdKey} + Enter or click the sync logo to manually sync.`);prompted=!0,v&&updateCodeStore({autoSync:!1})}inputStateStore.update(v=>(m&&(v.pan=void 0,v.zoom=void 0),{...v,code:d,updateEditor:b,updateDiagram:h}))},updateConfig=(d,b)=>{inputStateStore.update(h=>({...h,mermaid:d,updateEditor:b}))},toggleDarkTheme=d=>{inputStateStore.update(b=>{const h=JSON.parse(b.mermaid);return(!h.theme||["dark","default"].includes(h.theme))&&(h.theme=d?"dark":"default"),{...b,mermaid:JSON.stringify(h,null,2),updateEditor:!0}})},initURLSubscription=()=>{stateStore.subscribe(({serialized:d})=>{history.replaceState(void 0,void 0,`#${d}`)})},getStateString=()=>JSON.stringify(get_store_value(inputStateStore));export{getAugmentedNamespace as A,localStorage as a,logEvent as b,syncDiagram as c,analytics as d,pakoSerde as e,encode as f,inputStateStore as g,historyModeStore as h,initHandler as i,historyStore as j,loaderHistoryStore as k,loadingStateStore as l,getStateString as m,getPreviousState as n,addHistoryEntry as o,persist as p,clearHistoryData as q,debounceEnabled as r,stateStore as s,toggleDarkTheme as t,updateCode as u,cmdKey as v,updateConfig as w,commonjsGlobal as x,r as y,updateCodeStore as z};